Skip to content

Commit

Permalink
refactor(Drawer): Document optimization & Upgrade testing tools and o…
Browse files Browse the repository at this point in the history
…ptimize use cases

fix(Overlay): solve problems caused by numerical floating, close alibaba-fusion#4740

chore(*): Release-1.27.5-beta.1

fix(*): rollback alibaba-fusion#4746 and fix textarea clear spec

chore(*): Release-1.27.5

fix(Drawer): not to change package-lock.json

Update stale.yml

chore(BuildTool): 支持指定主题包调试`run start --theme xxx`

chore(DatePicker): fix theme demo margin, close alibaba-fusion#3627

chore(Shell): fix spell error "palceholder -> placeholder", close alibaba-fusion#3564

docs(Field): improve document description of parseName, close alibaba-fusion#3453

chore(Pagination): improve document of pageSizeSelector, fix pageJump runtime error, close alibaba-fusion#3306

docs(Calendar2): remove legacy api, close alibaba-fusion#3100

fix(Table): fix merging cell width in locked columns, close alibaba-fusion#4716 (alibaba-fusion#4752)

* fix(Table): 修复合并单元格的锁列滑动问题

* fix(Table): should support for merging cells in locked columns, close alibaba-fusion#4716

* fix(Table): 修复测试用例

chore(*): update lock

fix(Shell): phone shell should hidden when collapsed, close alibaba-fusion#3886 (alibaba-fusion#4766)

Co-authored-by: lancely <[email protected]>

refactor(Timeline): rename timeline file to ts

refactor(Timeline): ts & doc improvement

refactor(Timeline): test improve

refactor(Timeline): fix cr comments

fix(Upload): should hide trigger when limit is reached for Upload.Dragger, close alibaba-fusion#3951 (alibaba-fusion#4761)

Co-authored-by: lancely <[email protected]>

feat(DatePicker): improve focus logic, close alibaba-fusion#3998 (alibaba-fusion#4769)

* feat(DatePicker): interactive optimization of date selection box close alibaba-fusion#3998

* feat(DatePicker): improve focus logic

---------

Co-authored-by: WB01081293 <[email protected]>
Co-authored-by: 珵之 <[email protected]>

refactor(Field): rename to ts

refactor(Field): convert to TypeScript, impove docs and tests

refactor(Field): convert to TypeScript, impove docs and tests

chore(Field): improve for codereview

chore(Field): fix dependency version

feat(TreeSelect): support useDetailValue, close alibaba-fusion#3531 (alibaba-fusion#4771)

* feat(TreeSelect): support useDetailValue, close alibaba-fusion#3531

* chore(TreeSelect): improve useDetailValue tc and demos by codereview

* test(TreeSelect): add control mode spec for useDetailValue

refactor(Collapse): rename to ts

refactor(Collapse): convert to TypeScript, impove docs and tests

refactor(Collapse): imporve docs and types

chore(Collapse): improve by codereview

chore(Collapse): remove useless propTypes comments

chore(*): Release-1.27.6

fix(Collapse): hotfix panel className missing

chore(*): Release-1.27.7

chore(Divider): adjust ts types

chore(Divider): adjust ts & docs & test
  • Loading branch information
骆林 committed Mar 15, 2024
1 parent 2ec9f34 commit 142d089
Show file tree
Hide file tree
Showing 135 changed files with 5,222 additions and 4,273 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["@alifd/eslint-config-next", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"settings": {
Expand All @@ -30,10 +33,13 @@
"max-statements": "off",
"max-len": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": ["warn", {"ignoreRestSiblings": true}],
"import/prefer-default-export": "off",
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": true }],
"@typescript-eslint/ban-ts-comment": "error",
"import/export": "off",
"@typescript-eslint/consistent-type-exports": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error",
"react/no-deprecated": "error",
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
start-date: '2023-10-12'
exempt-pr-labels: Technical Upgrade
exempt-issue-labels: Technical Upgrade,PR welcome,Easy to solve
stale-issue-message: '你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭'
stale-pr-message: '你好,该 pr 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 pr 将被自动关闭'
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# Change Log

## [1.27.7](https://github.com/alibaba-fusion/next/compare/1.27.6...1.27.7) (2024-03-08)


### Bug Fixes

* **Collapse:** hotfix panel className missing ([8430d71](https://github.com/alibaba-fusion/next/commit/8430d71ab58a13024b17a20298d2e7cef50ce9ad))


## [1.27.6](https://github.com/alibaba-fusion/next/compare/1.27.5...1.27.6) (2024-03-07)


### Features

* **DatePicker:** improve focus logic, close [#3998](https://github.com/alibaba-fusion/next/issues/3998) ([#4769](https://github.com/alibaba-fusion/next/issues/4769)) ([1cdd236](https://github.com/alibaba-fusion/next/commit/1cdd236486305ff8940498d24f7f396d46a40746))
* **TreeSelect:** support useDetailValue, close [#3531](https://github.com/alibaba-fusion/next/issues/3531) ([#4771](https://github.com/alibaba-fusion/next/issues/4771)) ([d19ebdd](https://github.com/alibaba-fusion/next/commit/d19ebdd78c699f8e525a8694a6599f18ff0beec2))


### Bug Fixes

* **Shell:** phone shell should hidden when collapsed, close [#3886](https://github.com/alibaba-fusion/next/issues/3886) ([#4766](https://github.com/alibaba-fusion/next/issues/4766)) ([94d3030](https://github.com/alibaba-fusion/next/commit/94d3030682a64de37f5a62b6766ac46b3b209695))
* **Table:** fix merging cell width in locked columns, close [#4716](https://github.com/alibaba-fusion/next/issues/4716) ([#4752](https://github.com/alibaba-fusion/next/issues/4752)) ([9bda719](https://github.com/alibaba-fusion/next/commit/9bda719c7dae5e47d7f3ade3ef05cd00ca5a11b1))
* **Upload:** should hide trigger when limit is reached for Upload.Dragger, close [#3951](https://github.com/alibaba-fusion/next/issues/3951) ([#4761](https://github.com/alibaba-fusion/next/issues/4761)) ([f2d5303](https://github.com/alibaba-fusion/next/commit/f2d5303214984891cd8b638c43f1005d21364f7d))


### Documentation

* **Calendar2:** remove legacy api, close [#3100](https://github.com/alibaba-fusion/next/issues/3100) ([8a6536f](https://github.com/alibaba-fusion/next/commit/8a6536fdb4b0fe83756ed2b1e1e8f40953401da4))
* **Field:** improve document description of parseName, close [#3453](https://github.com/alibaba-fusion/next/issues/3453) ([004fa0e](https://github.com/alibaba-fusion/next/commit/004fa0e9e3ad085209859e5eb78b76caaf48ad3e))


### Code Refactoring

* **Collapse:** convert to TypeScript, impove docs and tests ([#4713](https://github.com/alibaba-fusion/next/pull/4713))
* **Field:** convert to TypeScript, impove docs and tests ([#4710](https://github.com/alibaba-fusion/next/pull/4710))
* **Timeline:** convert to TypeScript, impove docs and tests ([#4715](https://github.com/alibaba-fusion/next/pull/4715))


## [1.27.5](https://github.com/alibaba-fusion/next/compare/1.27.4...1.27.5) (2024-02-22)

### Bug Fixes

* **ConfigProvider:** improve config types, close [#4751](https://github.com/alibaba-fusion/next/issues/4751) ([b442d93](https://github.com/alibaba-fusion/next/commit/b442d9310bf503203ba4cc36ac6fb5766f030289))
* **TimePicker2:** should has focus style when visible, close [#4657](https://github.com/alibaba-fusion/next/issues/4657) ([#4738](https://github.com/alibaba-fusion/next/issues/4738)) ([228b621](https://github.com/alibaba-fusion/next/commit/228b621023fb8e63d79b5783393954b8a6e12db5))
* **Overlay:** solve problems caused by numerical floating, close [#4740](https://github.com/alibaba-fusion/next/issues/4740) ([8f29094](https://github.com/alibaba-fusion/next/commit/8f290948b08d6fda23121f6c75178b738b2b84c2))
* rollback [#4746](https://github.com/alibaba-fusion/next/issues/4746) and fix textarea clear spec ([e486542](https://github.com/alibaba-fusion/next/commit/e486542d786f63ce189adc8c1908f782a2082a03))


### Code Refactoring

* **Cascader:** convert to TypeScript, impove docs and tests ([#4730](https://github.com/alibaba-fusion/next/pull/4730))
* **Grid:** convert to TypeScript, impove docs and tests ([#4703](https://github.com/alibaba-fusion/next/pull/4703))
* **List:** convert to TypeScript, impove docs and tests ([#4702](https://github.com/alibaba-fusion/next/pull/4702))
* **Validate:** convert to TypeScript, improve tests ([910c957](https://github.com/alibaba-fusion/next/commit/910c957fc9623f642c5400f680af497bc1e5c4c6))


## [1.27.5-beta.1](https://github.com/alibaba-fusion/next/compare/1.27.5-beta.0...1.27.5-beta.1) (2024-02-22)


## [1.27.5-beta.0](https://github.com/alibaba-fusion/next/compare/1.27.4...1.27.5-beta.0) (2024-02-22)


Expand Down
7 changes: 6 additions & 1 deletion LATESTLOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Latest Log

## [1.27.5-beta.0](https://github.com/alibaba-fusion/next/compare/1.27.4...1.27.5-beta.0) (2024-02-22)
## [1.27.7](https://github.com/alibaba-fusion/next/compare/1.27.6...1.27.7) (2024-03-08)


### Bug Fixes

* **Collapse:** hotfix panel className missing ([8430d71](https://github.com/alibaba-fusion/next/commit/8430d71ab58a13024b17a20298d2e7cef50ce9ad))

12 changes: 11 additions & 1 deletion components/animate/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,17 @@ export interface AnimateProps extends React.HTMLAttributes<HTMLElement>, CommonP
/**
* @api Animate.Expand
*/
export interface ExpandProps {
export interface ExpandProps
extends Omit<
AnimateProps,
| 'animation'
| 'beforeEnter'
| 'onEnter'
| 'afterEnter'
| 'beforeLeave'
| 'onLeave'
| 'afterLeave'
> {
/**
* 动画 className
* @en The animation className
Expand Down
35 changes: 17 additions & 18 deletions components/calendar2/__docs__/index.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,36 @@ Calendar could be used to display dates, such as schedules, timetables, price ca

Calendar use dayjs as a core part to manipulate and display time values. For real usage, it could be used with the latest `dayjs` package. Setting dayjs's locale by:

````js
```js
import { DatePicker2, ConfigProvider } from '@alifd/next';
import 'dayjs/locale/en';
import en from '@alifd/next/lib/locale/en-us';

function App() {
return (
<ConfigProvider locale={en}>
<DatePicker2 />
<DatePicker2 />
</ConfigProvider>
);
}
ReactDOM.render(<App />, mountNode);
````
```

## API

### Calendar

| Param | Description | Type | Default Value |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------- |
| defaultValue | Default value of calendar | custom | - |
| shape | Shape of calendar<br><br>**option**:<br>'card', 'fullscreen', 'panel' | Enum | 'fullscreen' |
| value | Value of calendar | custom | - |
| mode | Mode of panel <br><br>**option**:<br>'date', 'month', 'year' | Enum | 'date' |
| showOtherMonth | Show dates of other month in current date | Boolean | true |
| defaultVisibleMonth | Default visible month of panel<br><br>**signature**:<br>Function() => void | Function | - |
| onSelect | Callback when select a date <br><br>**signature**:<br>Function(value: Object) => void<br>**parameter**:<br>_value_: {Object} date object | Function | func.noop |
| onModeChange | Callback when change mode <br><br>**签名**:<br>Function(mode: string) => void<br>**参数**:<br>_mode_: {string} mode type: date month year | Function | func.noop |
| dateCellRender | Render function for date cell<br><br>**signature**:<br>Function(value: Object) => ReactNode<br>**parameter**:<br>_value_: {Object} date object<br>**return**:<br>{ReactNode} null<br> | Function | (value) => value.date() |
| monthCellRender | Render function for month cell<br><br>**signature**:<br>Function(calendarDate: Object) => ReactNode<br>**parameter**:<br>_calendarDate_: {Object} current date object<br>**return**:<br>{ReactNode} null<br> | Function | - |
| yearRange | Year Range,[START_YEAR, END_YEAR] \(only shape in ‘card’, 'fullscreen') | Array&lt;Number> | - |
| disabledDate | Function to disable dates <br><br>**signature**:<br>Function(calendarDate: Object) => Boolean<br>**parameter**:<br>_calendarDate_: {Object} current date object<br>_view_: {Enum} current view type: 'year', 'month', 'date' <br>**return**:<br>{Boolean} null<br> | Function | - |

| Param | Description | Type | Default Value |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------- | ----------------------- |
| defaultValue | Default value of calendar | custom | - |
| shape | Shape of calendar<br><br>**option**:<br>'card', 'fullscreen', 'panel' | Enum | 'fullscreen' |
| value | Value of calendar | custom | - |
| mode | Mode of panel <br><br>**option**:<br>'date', 'month', 'year' | Enum | 'date' |
| showOtherMonth | Show dates of other month in current date | Boolean | true |
| defaultVisibleMonth | Default visible month of panel<br><br>**signature**:<br>Function() => void | Function | - |
| onSelect | Callback when select a date <br><br>**signature**:<br>Function(value: Object) => void<br>**parameter**:<br>_value_: {Object} date object | Function | func.noop |
| onPanelChange | Callback when the pane changed <br><br>**签名**:<br>Function(value: Object, mode: string) => void<br>**参数**:<br>_value_: {Object} date object<br>_mode_: {string} mode type: date month | Function | func.noop |
| dateCellRender | Render function for date cell<br><br>**signature**:<br>Function(value: Object) => ReactNode<br>**parameter**:<br>_value_: {Object} date object<br>**return**:<br>{ReactNode} null<br> | Function | (value) => value.date() |
| monthCellRender | Render function for month cell<br><br>**signature**:<br>Function(calendarDate: Object) => ReactNode<br>**parameter**:<br>_calendarDate_: {Object} current date object<br>**return**:<br>{ReactNode} null<br> | Function | - |
| yearRange | Year Range,[START_YEAR, END_YEAR] \(only shape in ‘card’, 'fullscreen') | Array&lt;Number> | - |
| disabledDate | Function to disable dates <br><br>**signature**:<br>Function(calendarDate: Object) => Boolean<br>**parameter**:<br>_calendarDate_: {Object} current date object<br>_view_: {Enum} current view type: 'year', 'month', 'date' <br>**return**:<br>{Boolean} null<br> | Function | - |
Loading

0 comments on commit 142d089

Please sign in to comment.