Commit Graph

77 Commits

Author SHA1 Message Date
gjfei
a920e1577c
fix(components): [date-picker] valid value error (#8187) 2022-06-11 22:26:01 +08:00
gjfei
884b0d71b7
fix(components): [time-picker] filter invalid value (#8119) 2022-06-08 11:16:44 +08:00
Jeremy
5b233da008
refactor(components): [time-picker] time-picker (#8160)
* refactor(components): [time-picker] time-picker

* Refactor `time-picker` to tsx.

* chore: refactor  to script setup

* chore: fix typing issue in `picker`

* chore: fix API exposing

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-08 09:17:23 +08:00
qiang
740f829acd
fix(components): import dayjs by a more compatible way (#8144) 2022-06-07 21:53:05 +08:00
Jeremy
6cde29f559
refactor(components): [date-picker] basic-date-table (#8095)
* Refactor `basic-date-table` to script setup.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-05 21:03:24 +08:00
Xc
68d858faa0
fix(components): [date-picker] circular dependency (#8093) 2022-06-05 00:38:06 +08:00
Jeremy
4662a37bbe
refactor(components): [date-picker] basic-month-table (#8053)
* Refactor `basic-month-table` to script setup.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-04 21:40:52 +08:00
Giwayume
1758b12c7d
Fix/focus trap datepicker pick (#8085)
* fix(components): [focus-trap] escape while trapped

* fix(components): [date-picker] click to reopen while focused input

Co-authored-by: OpenGraphica <opengraphica@gmail.com>
2022-06-04 14:58:01 +08:00
Jeremy
2b915c7457
refactor(components): [date-picker] basic-year-table (#8045)
* Refactor `basic-year-table` to script setup.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-02 03:26:42 +00:00
Jeremy
809923ceb1
refactor(components): [date-picker] panel-date-pick (#8043)
* Simplify code.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-02 10:54:31 +08:00
Jeremy
97eae00e65
refactor(components): [date-picker] panel-date-pick (#8011)
* refactor(components): [date-picker] panel-date-pick

* Enhance typing.

* chore: restore handle shortcut click

* chore: fix format

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-31 16:40:19 +08:00
opengraphica
cced377628
fix(components): [picker] Click to focus fires emit (#8001) 2022-05-31 10:04:45 +08:00
Jeremy
efd6c2b2a7
refactor(components): [date-picker] panel-date-pick (#7998)
- Refactor `defineComponent` to script `setup`.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-30 21:22:03 +08:00
Jeremy
eb599f8f65
refactor(components): [date-picker] range picker (#7994)
- Encapsulate shared code to reduce duplication.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-30 20:15:04 +08:00
Jeremy
39e273fbdb
refactor(components): [date-picker] month range (#7948)
- Use composable `use-range-picker`.
- Remove duplicated code.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-30 09:03:05 +08:00
banbri
07cae24985
fix(components): [date-picker] Make shortcuts reactive (#7698) 2022-05-28 20:14:43 +00:00
iamkun
dd0f8bcf3c
refactor: add useMonthRangeHeader hook (#7936) 2022-05-28 13:04:36 +08:00
JeremyWuuuuu
bea3b1e7d7
refactor(components): [date-picker] date-range (#7931) 2022-05-27 21:19:42 +08:00
JeremyWuuuuu
c28a26800a
refactor(components): [date-picker] basic cell (#7924)
- Refactor `h` function to `jsx`.
- Extract props out of `basic-cell-render`
2022-05-27 17:33:19 +08:00
JeremyWuuuuu
eb07d7c7ac
refactor(components): [time-picker] date-picker (#7923)
- Refactor date-picker with tsx.
- Move injection key to tokens bundle.
- Add entry for type `dates`.
- Update provide content for root picker.
2022-05-27 15:46:05 +08:00
JeremyWuuuuu
3c0496f1a8
refactor(components): [time-picker] setup migration (#7908)
* refactor(components): [time-picker] setup migration

- Migrate panel-month-range to setup

* chore: remove return expression

* chore: change Array.isArray to isArray

* chore: remove required parsedValue
2022-05-27 13:55:03 +08:00
云游君
49ed2f6907
refactor(components): useNamespace for date-picker (#7911) 2022-05-27 11:45:04 +08:00
JeremyWuuuuu
4177e54964
refactor(components): [date-picker] extract props (#7899)
* refactor(components): [date-picker] extract props

- Extract props for panel-month-range

* chore: remove unused type
2022-05-26 15:12:17 +08:00
JeremyWuuuuu
ad262520cf
chore(components): [date-picker] extract props (#7895)
* Extract shared props for picker/range

* Restore parsedValue

* Update commit picker
2022-05-26 13:06:00 +08:00
JeremyWuuuuu
66a6d0dc70
chore(components): [date-picker] extract props (#7894)
- Extract props on basic-year-table
- Update the function signature of utils.castArray
2022-05-25 23:05:17 +08:00
JeremyWuuuuu
607819c54a
feat(components): [date-picker] extract props (#7893)
- Extract props from basic-month-table.
- Extract common props to shared.
2022-05-25 22:39:30 +08:00
JeremyWuuuuu
46174bc411
refactor(components): [date-picker] extract props (#7884)
- Extract props for basic-date-table.vue
2022-05-25 12:46:12 +08:00
Zivvvv
ec8ac5e47b
fix(components): [date-picker] fix error when type="daterange" (#7858) 2022-05-25 11:41:12 +08:00
云游君
eafb60f89f
fix(theme-chalk): [DatetimePicker] change inner to wrapper & use css var (#7703)
* fix(theme-chalk): [DatetimePicker] change inner to wrapper & use css var for width

* test: use wrapper to fix test
2022-05-19 13:57:15 +08:00
lily-elephant
89b3239528
fix(components): date-picker add keydown events(#7506) (#7536)
* fix(components): date-picker add keyup events(#7506)

* Update picker.vue

feat(components): keyup变更为keydown

* Update picker.vue

fix(components): picker delete superfluous code

* Update picker.vue

fix(components): emit事件

* feat: date-picker & timer-picker add unit test

* feat: picker add unit test expected results

* Update time-picker.test.ts

feat: 去除lint error
2022-05-16 21:10:06 +08:00
云游君
7a45b88783
fix(components): [date-picker] date-table-cell namespace (#7684)
* fix(components): date-table-cell & scrollbar namespace

* fix(components): revert scroll className & add comment
2022-05-16 20:58:50 +08:00
opengraphica
42ff59fc39
feat(components): [date-picker] work with modal focus trap; a11y controls and attributes (#7598)
* feat(components): [date-picker] a11y controls and attributes

* feat(components): [date-picker] keyboard controls for picker

* feat(components): [date-picker] unit test complete

* feat(components): [date-picker] remove immediate watch date
2022-05-10 21:51:17 +08:00
JeremyWuuuuu
7dc51f57e6
fix(components): [pickers] text button issue (#7530) 2022-05-06 13:16:44 +08:00
opengraphica
7173e402b7
feat(components): [form-item] auto attach labels to inputs (#7450)
* feat(components): [form-item] auto attach labels to inputs

* feat(components): [form-item] auto-attach up through select

* feat(components): [form-item] auto id complete for all inputs

* feat(components): [form-item] fix lint, remove unused usePopper hook

* feat(components): [form-item] PR comments
2022-05-05 22:04:32 +08:00
三咲智子
1d13ebb05d
feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0
test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
Zhongxiang Wang
b462802824
fix(components): [date-picker] fix cell-class-name not work (#7149) 2022-04-13 22:29:46 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
2c72c2ef37 fix: import dayjs 2022-03-24 20:57:45 +08:00
gjfei
e179ee6960
refactor(components): [time-picker] use useNamespace (#6523)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-23 22:58:43 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
三咲智子
b80e5c69e9
refactor(hooks): refactor popup manager to useZIndex (#5701) 2022-02-09 16:31:31 +08:00
Alan Wang
a73f34844c
fix(components): [el-date-picker]make defaultValue be reactive (#4808)
* fix(components): [el-date-picker]make defaultValue be reactive

* fix(components): [el-date-picker]change toRefs to toRef

* Update packages/components/date-picker/__tests__/date-picker.spec.ts

Co-authored-by: btea <2356281422@qq.com>

* update date-picker.spec.ts

Co-authored-by: btea <2356281422@qq.com>
2022-01-19 16:48:22 +08:00
msidolphin
8a9747310e
feat(components): [el-date-picker] add panel change event (#5304)
* feat(components): [el-date-picker] add panel change event

* docs: [el-date-picker] add panel change event
2022-01-18 10:37:27 +08:00
0song
2606778d30
fix: fix DateRangePicker custom style & class bug (#5300) 2022-01-11 14:27:45 +08:00
msidolphin
82182a91aa
fix(components): [el-date-picker] panel position error after view switch (#5277)
* fix(components): [el-date-picker] panel position error after view switch

* fix: [el-popper] zIndex not update issue
2022-01-11 10:40:40 +08:00
Carter Li
5062ff106b
fix(components): make Datepicker value-format="x" emit number timestamp value (#5187) 2022-01-09 12:42:08 +08:00