Commit Graph

202 Commits

Author SHA1 Message Date
qiang
f2a65850b4
fix(hooks): [useId] SSR hydration error caused by id in vue@3.5+ (#18647) 2024-10-27 15:49:43 +08:00
qiang
f23ae6237a
fix(hooks): rendering multiple popper container DOM in SSR/SSG (#18482) 2024-10-11 09:49:23 +08:00
btea
ef822ded7a
fix(hooks): [lockscreen] compatible with document non-existence (#18445) 2024-10-04 21:59:47 +08:00
kimverchan
29a21e86ba
fix(hooks): PopperContainer cannot be recreated when body is recreated (#18121)
In the micro-front-end scenario, the body is recreated; Because PopperContainer determines that the
cache exists and does not recreate it, teleport cannot find the element to mount.

closed #18115,#17710

Co-authored-by: chenjingwen <chenjingwen@sie.com>
2024-09-03 20:25:15 +08:00
btea
d7e5f193cd
fix: the disabled state should not trigger focus (#18108) 2024-08-31 19:48:48 +08:00
dopamine
8618a6bcd0
refactor: import shared utilities from @element-plus/utils (#18048)
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
btea
19eaae7171
fix: the disabled state should not trigger focus (#18012)
* fix: the disabled state should not trigger focus

* fix: update

* chore: update

* chore: update test

* Update packages/hooks/__tests__/use-focus-controller.test.tsx

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-26 20:46:15 +08:00
于智勇
6b7e204e5b
fix(components): [dialog] rename resetPostion to resetPosition (#17900)
* fix(components): [dialog] rename resetPostion to resetPosition

* chore: fix lint

* chore: reset CHANGELOG.en-US.md

---------

Co-authored-by: tolking <qw13131wang@gmail.com>
2024-08-21 22:34:12 +08:00
qiang
949479699b
refactor(hooks): determine the focus by event listening (#17719)
* refactor(hooks): determine the focus by event listening

* test: skip the focus test

* test: fix test

* feat(hooks): add beforeFocus

* fix: optimize blur

* chore(components): [mention] remove focus & blur
2024-08-07 18:35:30 +08:00
donga-gao
77920735cc
feat(hooks): use-draggable support resetPostion (#17699)
* feat(hooks): use-draggable support resetPostion

* Update docs/en-US/component/dialog.md

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

* fix: lint

---------

Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 17:11:59 +08:00
thinkasany
785761ab89
chore(utils): improve setTimeout type (#17763)
* chore(utils): improve setTimeout type

* revert
2024-08-05 21:10:14 +08:00
赵添
0456c790db
feat: add mention component (#17586)
* feat: add mention component

* fix: build error

* fix: build error

* feat: delete as a whole

* fix: update docs

* fix: update global.d.ts

* fix: update

* fix: update code

* fix: update code

* fix: update code

* fix: rename

* fix: update code

* fix: upload code

* fix: update code

* fix: fixed cursor position abnormality

* fix: update code

* fix: docs add avatar

* fix: tooltip position is wrong when placing on top

* feat: add overview icon

* fix: overview icon color
2024-08-02 11:00:26 +08:00
wzc520pyfm
a9b91d1f0f
fix(components): [select-v2] corrent focus to input when select clicked (#17362)
* fix(components): [select-v2] fix remote init

remote-search scenarios shoule be not initialized

* Revert "fix(components): [select-v2] fix remote init"

This reverts commit d8326888e3df96dee482b9c8098738bc698215af.

* fix(components): [select-v2] no trigger init-states when filter/remote

* test(components): [select-v2] add test for no init when remote search

* fix(components): [select-v2] add back the necessary condition

* fix(components): [select-v2] correct input focus

input shoule be fouce when click el-select

* fix(components): [select-v2] focus first and then completed taggle-menu
2024-07-30 10:49:46 +08:00
dopamine
ae0439df9f
fix(components): [tabs] optimize SSR (#15183) 2024-07-29 18:01:07 +08:00
qiang
233d38b631
refactor(hooks): rewrite composition as a composable function (#14240)
* refactor(hooks): rewrite composition as a composable function

* fix(components): [select] avoid navigateOptions when composing Chinese

* fix: error

* chore: change afterComposition
2024-07-28 21:11:20 +08:00
Polaris-tl
ce0220612e
perf(hooks): replace the ref object with a plain object (#15061)
Co-authored-by: 唐铃 <ling.tang01@geely.com>
2024-07-28 18:22:44 +08:00
qiang
10ae88b73c
fix(hooks): cannot access 'useEmptyValuesProps' before initialization (#17448) 2024-07-09 19:02:05 +08:00
sea / 神秘海
7bcaf29d06
refactor(hooks): unite import origin (#16872)
refactor(hooks): unite import origin
2024-05-16 13:00:58 +08:00
kooriookami
bd1613d599
feat(hooks): add use-aria hooks (#16598)
* feat(hooks): add use-aria hooks

* feat(components): update

* feat(hooks): update

* feat(hooks): update
2024-04-23 13:56:44 +08:00
wzc520pyfm
e83a18ea27
test(hooks): add use-throttle-render test (#16499)
* test(hooks): add use-throttle-render test

* chore(hooks): [use-throttle-render] fix lint err

* chore(hooks): use sleep and concurrent

* fix(hooks): [use-throttle-render] fix import error

* fix(hooks): fix concurrent interfere
2024-04-15 18:03:02 +08:00
btea
e4306b2eb1
fix(hooks): [empty-values] warning on modifying computead value (#16508)
* fix(hooks): [empty-values] warning on modifying computead value

* chore: update

* fix: update

* fix: update
2024-04-15 09:27:12 +08:00
wzc520pyfm
84f49de955
test(hooks): [use-teleport] add no-client test (#16498) 2024-04-14 11:35:04 +08:00
kooriookami
1163d27f71
feat(components): add empty-values and value-on-clear props (#16361)
* feat(components): add empty values

* feat(hooks): update

* feat(components): update

* feat(components): update

* feat: update

* feat(components): update

* feat(components): update

* feat(components): update

* feat: update doc

* feat: add doc
2024-04-12 13:33:21 +08:00
wzc520pyfm
dd2a4f6546
test(hooks): add test for use-intermediate-render (#16395) 2024-04-11 20:38:51 +08:00
btea
d0eb6c3d1a
feat: support node 18+ & update tsx and vitest (#16190)
* feat: support node 18+ & update tsx and vitest

* chore: update

* chore: remove

* fix: update dep

* test: fix autocomplete

* test: update

* test: update

* chore: update

* chore: update

* chore: update
2024-04-11 17:48:34 +08:00
wzc520pyfm
79b6235fdf
test(hooks): [use-id] add debug-warn test (#16194) 2024-03-23 09:43:22 +08:00
qiang
1621b6a2d5
fix(hooks): SSR hydration error caused by z-index (#16175)
* fix(hooks): SSR hydration error caused by z-index

* test(hooks): test error

* chore: optimize name

* update

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

---------

Co-authored-by: btea <2356281422@qq.com>
2024-03-22 16:36:25 +08:00
kooriookami
67cd7e95e6
feat(components): [dialog] Dialog can drag overflow the viewport (#15643)
* style(components): [dialog] Modify dialog style and docs

* chore: update

* feat(components): [dialog] add overflow prop

* feat(components): update
2024-01-25 15:03:34 +08:00
小林不是coder
a778a9c6ee
test(hooks): fix typo (#15113)
test(hooks): fix typo
2023-12-13 09:07:57 +08:00
betavs
3a152cbc0e
fix(components): [message-box] uncaught on draggable (#14618) 2023-10-27 13:51:50 +08:00
qiang
351774f418
feat(components): [color-picker] add focus and blur event (#14244)
* feat(components): [color-picker] add focus blur event

* docs: updata
2023-10-11 14:13:59 +00:00
qiang
014a99e3e7
fix(hooks): [use-focus-controller] remove unnecessary role attributes (#13749)
fix(hooks): [a11y] remove unnecessary role attributes
2023-07-28 21:25:33 +08:00
dopamine
ee705e5c2d
chore: prevent warnings while running test cases (#12189)
* chore: prevent warnings while running test cases

* fix: overlook a test case
2023-07-22 23:19:33 +08:00
qiang
704399fadd
fix(components): [input] lose focus when click suffix icon (#13264)
* feat(hooks): add useFocusController

* fix(components): [input] lose focus when click suffix icon

closed #13153, #13159

* refactor(hooks): use-focus-controller

* test: fix test

* test: update

* fix(theme-chalk): [input] add cursor style to the wrapper
2023-07-13 16:41:18 +08:00
qiang
6222629007
refactor(components): [message-box] remove useRestoreActive (#11646) 2023-05-28 09:57:29 +08:00
btea
105d79b0d9
refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
Dave
8306138159
fix(hooks): [use-delayed-toggle] clear timer when call onClose (#12056)
* fix(hooks): [use-delayed-toggle] clear timer when call onClose

* test(hooks): [use-delayed-toggle] coverage 100%
2023-03-16 22:29:24 +08:00
Liu Bo
8b3250217e
fix(hooks): vm may be null (#12058) 2023-03-16 21:31:16 +08:00
btea
4390661bb9
fix(components): [loading] namespace config (#11956)
* fix(components): [loading] namespace config

* fix: use useGlobalComponentSettings
2023-03-10 14:55:17 +08:00
Dave
a99bc4fb49
fix(components): [popover | tooltip] keep autoClose prop (#11833)
* feat(hooks): [use-delayed-toggle] add autoClose option

* fix(components): [tooltip] keep autoClose prop
2023-03-10 14:48:12 +08:00
Xc
a67b52ccce
docs(components): [tooltip] (#11850)
* docs(components): [tooltip]
* Update popconfirm docs with new syntax.
* Remove tabindex and manual api

* docs(components): [tooltip]
* add Exposes

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]

* docs(components): [tooltip]
2023-03-10 14:42:46 +08:00
Jeremy
3eda7fc603
fix(components): [overlay] namespace issue (#11881)
* Fix namespace issue on global components overlay.
* Closes #11877
2023-03-07 22:51:31 +08:00
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
Jeremy
4c27822ef0
fix(components): circular referencing issue (#11777)
* fix(components): circular referencing issue

* Move sizes related into hooks.
* Remove size definitions in forms only re-exports.

* chore: fix failing tests
2023-03-01 16:44:09 +08:00
Jeremy
a30ae9d103
refactor(project): removing packages/tokens (#11769)
* refactor(tokens): remove tokens

* Remove tokens/breadcrumb.

* refactor(tokens): remove tokens/button

* refactor(tokens): remove tokens/carousel

* refactor(tokens): removing tokens/checkbox

* refactor(tokens): removing tokens/collapse

* refactor(tokens): removing tokens/dialog

* refactor(tokens): removing tokens/pagination

* refactor(tokens): removing tokens/radio

* refactor(tokens): removing tokens/row

* refactor(tokens): removing tokens/scrollbar

* refactor(tokens): removing tokens/slider

* refactor(tokens): removing tokens/tabs

* refactor(tokens): removing tokens/upload

* refactor(tokens): removing tokens/popper

* refactor(tokens): removing tokens/tooltip

* refactor(tokens): removing tokens/tooltip-v2

* refactor(tokens): removing tokens/date-picker

* refactor(project): removing tokens/experimentals

* Remove tokens/experimentals
* Remove package/tokens
* Remove tokens related parts

* refactor(project): removing packages/tokens completely

* chore: update import statement
2023-03-01 13:59:21 +08:00
Jeremy
d58149f4bb
refactor(components): [config-provider] (#11749)
* refactor(components): [config-provider]

* Port useConfigProviders and tokens to components/.

* refactor(hooks): [global-config]

* Reimplement a few coupled hooks.
* Remove hooks/globa-config and tokens/&.
* Update import paths based on the changes.

* chore: fix a failing test case
2023-02-28 10:35:56 +08: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
acyza
1b634705c8
fix(components): [tooltip] display tooltip correctly (#11643)
* fix(components): [tooltip] display tooltip correctly

* Update packages/hooks/use-popper/index.ts

Co-authored-by: Jeremy <15975785+jw-foss@users.noreply.github.com>

---------

Co-authored-by: Jeremy <15975785+jw-foss@users.noreply.github.com>
2023-02-22 12:27:48 +00:00
Robert Wloch
1e3fdde6d8
fix(hooks): [use-lockscreen] prevent flaky unit tests (#11404) 2023-02-11 23:45:36 +08:00
Jeremy
e8bbdf974b
feat: integrate use popper (#11045)
* feat: integrate use popper

* Integrate popper with use popper hook.
* Reorganize code for better readabilities.

* fix: contentStyle typing

* fix: test failure

* fix: slider placement testing

* refactor: slider test case refactoring

* fix: virtual triggering

---------

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-01-31 11:58:52 +08:00