Commit Graph

267 Commits

Author SHA1 Message Date
Jeremy
c2710d97d0 fix(components): [global-config] (#11847)
* fix(components): [loading]

* Remove inappropriate way of using injection in directives.

* chore: rewrite implementation

* fix(components): [global-config]

* Fix global config injection in global components.

* chore: fix format

* chore: remove .only modifier

* chore: fix failing tests
2023-03-06 23:20:21 +08:00
井柏然
2f5629a2f8 fix(components): [select] support custom height (#10840) (#10847)
* fix(components): [select] support custom height (#10840)

fix(components): [select] support custom height (#10840)

* fix(components): [select] support custom height (#10840)
2023-02-27 22:05:14 +08:00
류한경
8de2c9c450 fix(components): [select] add popper-options prop (#11734) 2023-02-27 19:20:18 +09:00
Jeremy
11925c8231 refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
btea
842fb2b286 fix(components): [select] fix the hoverIndex display error (#11297)
* fix(components): [select] fix the hoverIndex display error

* fix: update useSelect
2023-02-25 16:43:40 +08:00
wonderl17
af9302c887 fix(components): [select] i18n issue of select placeholder (#11508) 2023-02-13 23:06:57 +08:00
Jacob Alspaw
7b64807ff2 fix(components): [select] ensure select options respect filter query during initialization (#11205)
* fix(components): [select] ensure select options respect query immediately during initialization

When the select option is created, the option does not immediately calculate its `visible` state attribute. This can result in the visible select options being out of sync with the filter text. If the options are loaded asynchronously and a user is quick to enter filter text, then the options will show regardless of the filter value once they have completed loading. Fix this by updating the `visible` attribute immediately.

* fix: lint

---------

Co-authored-by: zz <2418184580@qq.com>
2023-02-12 20:39:11 +08:00
dopamine
6799618f79 fix(components): [select] recalculate input height when display change (#11374)
* fix(components): [select] recalculate input height when display change

* fix
2023-02-05 14:00:34 +08:00
Naeemo
702c71b352 refactor(tokens): use Symbol as injection key (#11251) 2023-02-05 13:10:33 +08:00
zz
73a9010e37 fix(components): [select] display tags correctly (#11149)
* fix(components): [select] display tags correctly

* fix: test cases
2023-01-10 22:38:44 +08:00
qiang
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
btea
874aa0a284 refactor(components): [select] use util function (#10286) 2022-10-27 21:41:27 +08:00
btea
6d839aeb96 fix(components): [select] blur trigger remote event should pass string (#10218) 2022-10-26 16:39:05 +08:00
Giwayume
8f1285f880 fix(components): [time-picker] fix popup not showing (#9941)
* fix(components): [time-picker] fix popup not showing

* fix(components): [focus-trap] track last active element automatically

* fix(components): linting

* fix(components): add preventDefault to focusout-prevented

* fix(components): sSR and typecheck

* fix(components): focus trap attach document events in mount

* fix(components): remove document undefined check

* fix(components): [select] fix click scrollbar closes popup

* fix(components): allow focus-trap to refocus after pick

Co-authored-by: OpenGraphica <opengraphica@gmail.com>
2022-10-13 14:42:27 +08:00
Xc
817ec60b71 feat(components): [select] Simplified API (#9994) 2022-10-09 16:04:11 +08:00
Xc
91f1c63e6a fix(components): [select] click label only focus in form (#9798) 2022-09-30 14:35:09 +00:00
Circkoooooo
6f90007f77 fix(components): [select] excute filter/remoteMethod when blur (#9587)
* fix(components): [select] excute filter/remoteMethod when blur event

when select component trigger blur event, it need excute the filterMethod or remoteMethod,
otherwise, the next time you click select, you may filter the result to the previous one.

* fix(components): [select] excute filter/remoteMethod when blur event

* fix(components): [select] excute filter/remoteMethod when blur event

when select component trigger blur event, it need excute the filterMethod or remoteMethod,
otherwise, the next time you click select, you may filter the result to the previous one.

* fix(components): [select] excute filter/remoteMethod when blur event

Co-authored-by: qiang <qw13131wang@gmail.com>
2022-09-23 14:21:23 +08:00
init-qy
c64ea617ef fix(components): [select] fix option-group get wrong visible (#9726)
* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

* fix(components): [select] fix option-group get wrong visible

Co-authored-by: qinye <953218204@qq.com>
2022-09-10 22:07:06 +08:00
Chen_Z
838001aadd fix(components): [select] fix select hover flicker (#9521)
* fix(components): [select] fix select hover flicker

closed #9500

* fix(components): [select] fix select hover flicker

closed #9500
2022-09-09 12:35:36 +08:00
Xc
e8817aae06 feat(components): [select] enhanced suffix (#9619)
* feat(components): [select] enhanced suffix

* docs: remove useless characters

* docs(components): [select] add remote suffix demo
2022-09-06 23:12:52 +08:00
Xc
dee98ed32a fix(components): [select] keep hover after clearing (#9644) 2022-09-06 12:19:52 +08:00
LIUCHAO
328cb574ae fix(components): [select] fix content overflow (#9633)
closed #9560
2022-09-05 22:29:45 +08:00
Xc
2a1cdbd8eb feat(components): [select] add placement (#9621) 2022-09-04 19:25:01 +08:00
Xc
262bb786c8 docs(components): adjust the type of focus event (#9620) 2022-09-04 17:07:19 +08:00
LIUCHAO
8532dbec11 fix(components): [select] fix typo (#9578) 2022-09-01 14:53:32 +08:00
bqy_fe
7160a5a0e1 fix(components): [select] support dynamic value for option (#9220) 2022-08-31 13:56:04 +08:00
LIUCHAO
6e3774f94c fix(components): [select] update finished calculating optionsInDropdown (#9475)
closed #7507
2022-08-31 13:35:36 +08:00
Xc
92d0f9404b fix(components): [select] option value is object (#9287)
* fix(components): [select] option value is object

* fix(components): [select] option value is object
2022-08-18 23:49:40 +08:00
zz
1f89174ddd fix(components): [select] injected form context may be undefined (#8860) 2022-08-05 21:00:31 +08:00
qiang
8387f6dac6 fix(components): [select] sync the tooltip component change (#8998)
closed #8989, #8994
2022-07-26 09:05:49 +08:00
白雾三语
5f041f47a8 fix: [select] label can be displayed correctly after selecting operation (#8589)
* fix: [select] label can be displayed correctly after selecting operation

* fix: [select] label can be displayed correctly after selecting operation

* fix: [select] modify unit test

* fix: [select] modify unit test
2022-07-20 20:47:34 +08:00
gjfei
c2ca7cd16a fix(components): [select] fix select tooltip zIndex (#8768)
* fix(components): [select] fix select tooltip zIndex (#8753)

* fix(components): [select] fix select test

* fix(components): [select] fix select
2022-07-14 23:21:38 +08:00
Xc
2680d67523 fix(components): [select] automatic-dropdown next focus invalid (#8398) 2022-07-10 18:04:31 +08:00
Hefty
72d0bc2177 fix(components): add validate-event for form types component (#8173)
* fix(components): add validate-event for form types component

* chore: format code
2022-07-02 21:01:05 +08:00
Cheerwhy
4abd29c597 fix(components): [select] fix select dropdown width (#8396) (#8435) 2022-06-24 21:26:10 +08:00
Xc
2b71f2c561 fix(components): [select] multiple init height (#8423) 2022-06-23 01:34:05 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
Xc
d536b7cb7a fix(components): [select] collapse-tags-tooltip drop first item (#8344)
* fix(components): [select] collapse-tag-tooltip drop first item

* fix(components): [select] collapse-tags-tooltip drop first item test
2022-06-18 18:38:15 +08:00
Carter Li
8413f8ea31 refactor(components): use useResizeObserver (#8124) 2022-06-08 02:04:48 +08:00
Xc
4339802fed fix(components): [select] input height is 2px more (#7958)
* fix(components): [select]  input height is 2px more

* fix(components): [select] inner input height

* fix(components): [select] inner input height
2022-05-31 23:41:36 +08:00
opengraphica
e1b88263e3 feat(components): [popper] focus trap and a11y (#7736)
* feat(components): [popper] fix focus traps

* feat(components): [popper] add focus trap tests

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-20 18:13:27 +08:00
Xc
07d934e29f fix(components): [select] in form change size (#7599)
* fix: select in form change size

* fix: unuser
2022-05-11 08:21:52 +08:00
JeremyWuuuuu
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +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
Xc
334117c2cb fix(components): [select] The problem that the size changes and the height does not change (#7471)
* fix: select size height change

* fix: add select size test

* fix: del unuse
2022-05-05 09:49:07 +08:00
Herb Brewer
1700cdc05e fix(components): [select]label is not shown when value is a object (#7054) 2022-05-03 00:01:08 +08:00
三咲智子
9de79794a3 refactor(utils): move function (#7336) 2022-04-23 21:59:17 +08:00
Zhongxiang Wang
de29873f40 fix(components): [select] not set input padding anymore (#7269) 2022-04-20 17:01:29 +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