Commit Graph

63 Commits

Author SHA1 Message Date
LIUCHAO
9a961425b5
fix(components): picker-panel not pop up when disabled/readonly (#8139)
closed #8139
2022-06-08 16:13:45 +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
Jeremy
80c6eebd12
refactor(components): [time-picker] basic-time-spinner (#8132)
* refactor(components): [time-picker] basic-time-spinner

* Refactor `basic-time-spinner` to script setup.

* refactor(components): [time-picker] basic-time-spinner

* Resolve typing issues in `basic-time-spinner`.
* Extract code from `basic-time-spinner`.

* chore: remove parallel

* chore: set node space size

* chore: remove parallel jobs

* chore: update pr-docs-build.yml

* chore: revert remove parallel

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-06 22:02:56 +08:00
Jeremy
beacaf6ce4
refactor(components): [time-picker] script setup (#8128)
* refactor(components): [time-picker] panel-time-range

* Refactor `panel-time-range` to script setup.

* refactor(components): [time-picker] panel-time-range

* Fix typing issues in `panel-time-range`.
* Extract common code to `use-time-panel`.

* refactor(components): [time-picker] panel-time-picker

* Replace duplicated logic with `use-time-panel`.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-06 17:35:10 +08:00
Jeremy
207baf89c4
refactor(components): [time-picker] panel-time-pick (#8115)
* Refactor `panel-time-pick` to script setup.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-06 11:53:56 +08:00
Jeremy
364014a35a
refactor(components): [time-picker] props (#8108)
* Extract props to separate files.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-06 09:05:41 +08:00
Jeremy
074c94ff3b
fix(components): [time-picker] picker missing (#8082)
* Fix picker went missing when clear date.
* Add test for changes.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-06-04 21:40:09 +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
opengraphica
cced377628
fix(components): [picker] Click to focus fires emit (#8001) 2022-05-31 10:04:45 +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
bqy_fe
488eaf5211
fix(components): [time-picker] can not hide panel when click frequently (#7779) 2022-05-20 08:26: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
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
9a88fb4e46
fix(components): [popper] appendToBody API deprecation (#7534)
* fix(components): [popper] appendToBody API deprecation

- Remove `appendToBody` for components still using it.

* Remove duplicated attribute
2022-05-06 18:41:50 +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
iamkun
703ab33e34
fix: time-picker spinner error style (#6850) 2022-03-27 15:52:18 +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
Hefty
0d11c121b6
fix(components): [time-picker] cancel button not work correctly (#6735) 2022-03-22 17:03:39 +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
三咲智子
c72679e4e9
refactor(components)!: refactor form (#5401)
* refactor(components): refactor form

* refactor: resolve PR comments

* refactor(components): refactor isNested

* refactor: resolve PR comments
2022-03-06 22:20:56 +08:00
msidolphin
3062aecfb8
fix(components): [el-time-picker] lags when open range picker (#6249) 2022-02-24 11:12:46 +08:00
Zong
8ef1e305bb
fix: formatter func parameter type miss (#6186)
* fix: formatter func parameter type miss

* fix: lint prettier and other type miss
2022-02-21 14:19:07 +08:00
weidehai
8945e21ec7
feat(components): [el-time-picker] add visibleChange event (#5704) 2022-02-11 11:24:46 +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
三咲智子
426a6a686c
feat: switch to lodash-unified (#5734)
* feat: switch to lodash-unified

* chore: move lodash mocks
2022-02-08 10:37:21 +08:00
msidolphin
9117cb6fff
fix(components): [el-time-picker] fix adjust scroll position fail issue (#5312) 2022-01-18 10:53:47 +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
三咲智子
4d470d062c
fix(components): time picker when midnight (#5403) 2022-01-17 10:35:26 +08:00
0song
2606778d30
fix: fix DateRangePicker custom style & class bug (#5300) 2022-01-11 14:27:45 +08:00
jeremywu
df57ddfe39
fix(components): [el-dropdown] cannot be closed by clicking outside (#5287)
- Fix the issue that dropdown with trigger 'click' cannot be closed when clicking outside content
- Fix the same issue for popover popconfirm
- Remove useless code from `el-tooltip-content` which can be much simpler
- Use `onClick` to replace `onMousedown` because `onMousedown` is triggered prior than `onClick`
- Adjust test cases against these changes above
2022-01-11 10:24:48 +08:00
kooriookami
c2ee36a7fc
fix: tooltip with compoents add persistent (#5250) 2022-01-09 17:38:51 +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
jeremywu
dd19cae2bc
refactor(components): popper composables (#5035)
* refactor(components): popper composables

- Refactor popper composables

* updates

* updates for tooltip

* Updates for popper. TODO: fix controlled tooltip animation

* Fix controlled mode popper animation issue

* Add new feature for customizing tooltip theme

* Fix popover and popconfirm error

* - Add Collection component for wrapping a collection of component
- Add FocusTrap component for trap focus for popups
- Add RovingFocus component for roving focus component type
- Adjust dropdown component based on these newly added components
- Add popper-trigger component for placing the trigger
- TODO: Finish current dropdown component, and all component's tests plus documents

* Refactor popper

* Complete organizing popper

* Almost finish dropdown

* Update popper tests

* update only-child test

* Finish focus trap component test

* Finish tooltip content test

* Finish tooltip trigger tests

* Finish tooltip tests

* finish tests for Collection and RovingFocusGroup

* Fix test cases for timeselect & select & popover

* Fix popover, popconfirm, menu bug and test cases

* Fix select-v2 test error caused by updating popper

* Fix date-picker test issue for updating popper

* fix test cases

* Fix eslint

* Rebase dev & fix tests

* Remove unused code
2022-01-04 09:15:15 +08:00
Carter Li
7ea5c85138
fix(components): [time-picker] improve typings (#4810) 2021-12-30 19:03:34 +08:00
Delyan Haralanov
542ea5ee7e
feat(components): [date/time-picker] add id attribute to the inputs (#4972)
* feat(components): [date/time-picker] add id attribute to the inputs

* docs(components): [date/time-picker] add id to attributes
2021-12-27 16:04:39 +08:00
Herrington Darkholme
1682b18684
test(components): fix time picker default value in cancel test (#4938) 2021-12-23 13:32:30 +08:00
云游君
4560adfdf8
refactor(style): adjust component size to large/default/small (#4491)
* refactor(style): adjust component size to large/default/small

* refactor(components): avatar size & use flex instead of block

* refactor(components): adjust check button size

* refactor(components): adjust tag size

* refactor(components): adjust size doc

* fix(components): datetime-picker demo style width

* refactor(components): color-picker size & block to flex

* refactor(components): adjust slider input size

* refactor(components): adjust radio input size for demo

* refactor(components): adjust select size & docs

* refactor(components): adjust form radio size & docs

* refactor(components): add windicss for docs

* refactor(components): adjust skeleton avatar size to css var

* refactor(components): simplify typography size demo

* refactor(components): adjust dropdown size & demo

* refactor(components): adjust descriptions size

* fix(components): datetime-picker showcase class pollute global button

* chore(ci): upgrade docs dependencies to fix ci

* fix(ci): add highlight because vitepress not export it

* fix(ci): disable line for no-console

* fix(ci): remove mini to fix test

* fix(style): code font size

* fix(style): button span flex style

* fix(style): button padding horizontal default 15px

* refactor(components): adjust tag padding size & demo

* refactor(components): adjust form line-height for input

* refactor(components): adjust dropdown menu size & button padding

* fix(style): picker separator block to flex center

* fix: dropdown button span items-center

* style: adjust input-with-icon & size demo & fix input vitepress load

* chore: upgrade dependencies

* chore: upgrade dependencies

* ci: fix website build

* ci: regenerate pnpm-lock.yaml

* ci: use dev pnpm-lock

* ci: update pnpm-lock.yaml
2021-12-12 17:54:21 +08:00
msidolphin
4f6cac4252
fix: [el-date-picker] focus input box when focus method is called (#4343)
fix #4327
2021-12-11 06:56:40 +08:00
Carter Li
fcd11d9bb0
fix(components): [table-column, time-picker] improve typings (#4761) 2021-12-10 18:14:31 +08:00
三咲智子
db1d9401fe
feat(components): [el-config-provider] add size (#4730) 2021-12-10 17:21:01 +08:00
Alan Wang
8600be1cd1
refactor(components): refactor calendar (#4325)
Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-12-10 02:41:46 +08:00
三咲智子
5087026948
refactor: change icon package name (#4625) 2021-12-04 11:20:06 +08:00