89 Commits

Author SHA1 Message Date
E66
0192470da6 fix(components): [color-picker] add colorFormat prop validation (#23587)
* feat(components): [color-picker] add type hints for colorFormat prop

* feat(components): [color-picker] add type hints for colorFormat prop

* docs: align color-format type with ColorFormats
2026-02-15 13:51:57 +01:00
草莓啵啵奶
f46ddc2955 refactor(components): [color-picker] use type-based definitions (#23488)
* refactor(components): [color-picker] use type-based definitions

* refactor(components): [color-picker] use type-based definitions

* refactor(components): [color-picker] use type-based definitions

* refactor: tweaks

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-20 14:33:11 +08:00
Rainbow
a4c0a779cf feat(components): [color-picker] add clearable prop and clear event (#22999)
* feat(components): [color-picker] support clearable prop and expose clear

* docs: update version number

* docs: update version number

* docs: update version number

* feat: add clear event

* test: update test case
2025-12-23 23:54:17 +01:00
dopamine
0ca1570aa1 chore: upgrade to Vue 3.5 (#22096)
* chore: upgrade deps

* chore: replace __ExtractPublicPropTypes with ExtractPublicPropTypes

* fix: get rid of type errors

* fix: resolve test errors with @vue/test-utils v2.4.6

* fix: resolve test errors with Vue 3.5.22

* ci: set pnpm flag

* chore: update the Vue peer dependency version

* Apply suggestion from @tolking

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

* docs: update example code

Co-authored-by: warmthsea <2586244885@qq.com>

* chore: remove csstype (#22487)

* chore: fix merge code type error

* chore: fix test:ssr error

- Cannot read properties of undefined (reading 'getSSRProps')

* chore: fix typecheck:vitest error

* chore: update pnpm yaml file

* test: fix collapse accordion error

* chore: update deps

* chore: fix type error

* chore: lock file

* chore: sync change

sync with the remove of vue macro

* refactor: use computed instead of eagerComputed

* fix: timeline.test.tsx typecheck

* chore: clean lock file

try dont throw CodeFactor issues in ci

did:
- rm pnpm-lock.yaml
- rm -rf ./**/node_modules
- pnpm store prune
- pnpm cache delete
- pnpm install

Also stay in 3.1.0 for vue-tsc in order to avoid the warnings of
template refs, see https://github.com/vuejs/language-tools/issues/5815

* chore: format code

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-16 09:34:03 +08:00
btea
2d64179491 refactor!: the disabled value of component has the highest priority (#18739)
* refactor!: the disabled value of component has the highest priority

* fix: update

* fix: compatible with switch loading

* feat: apply to cascader, select, select-v2

* fix: update

* fix: update selectv2

* fix: update autocomplete

* fix: date-picker-panel

* fix: update rate/slider/upload

* fix: slider error

* fix: update checkbox

* fix: checkbox error
2025-12-01 21:20:57 +08:00
qiang
d042674220 feat(components): [color-picker-panel] add validateEvent prop (#22522)
* feat(components): [color-picker-panel] add validateEvent prop

* docs: update
2025-10-19 11:18:21 +08:00
qiang
a228b3a514 fix(components): [color-picker] the panel does not capture focus (#22483)
* fix(components): [color-picker] the panel does not capture focus

* chore: test

---------

Co-authored-by: btea <2356281422@qq.com>
2025-10-16 23:08:04 +08:00
Noblet Ouways
6724cce7db fix(components): [color-picker] incorrect thumb offset (#22266)
* fix(components): [color-picker] incorrect thumb offset

* chore: expose

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

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-09-21 20:59:31 +08:00
Rainbow
2adc067bee feat(components): [autocomplete/time-select/color-picker] add popper-style (#22263)
feat(components): add popper-style
2025-09-21 10:03:35 +08:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
qiang
f922d6a67e feat(components): [color-picker] add validation on blur event (#22247) 2025-09-20 08:55:27 +08:00
Noblet Ouways
2144a78880 feat(components): [color-picker-panel] externalize color-picker core component (#21668)
* feat(components): [color-picker-panel] externalize color-picker

chore: save

chore: save

chore: save

test passing

chore: save

chore: save

chore: save

chore: save

chore: save

styles

chore: save

chore: save

chore: save

chore: save

chore: save

chore: cleanup

chore: save

chore: minor tweaks

* chore: better doc

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

* chore: address pr review

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

* chore: fix

* chore: remove extra ̀`.valuè`

* docs: delete useless class in the examples

* chore: apply review

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* style: add content-box

* chore: use gap instead of margin

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* chore: use pure

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* chore: remove extra style

* chore: apply koo review

Co-authored-by: kooriookami
<38392315+kooriookami@users.noreply.github.com>

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* chore: apply narrow screen style

Co-authored-by: 知晓同丶 <zhixiaotong.me@qq.com>

* docs: delete redundant types

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
Co-authored-by: 知晓同丶 <zhixiaotong.me@qq.com>
2025-08-22 14:13:59 +08:00
btea
5cc42ad9fc feat(components): [color-picker] add persistent and append-to prop (#21393) 2025-07-18 02:10:05 +02:00
yuhengshen
cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00
Zhong
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02:00
qiang
b881ef25cb refactor(hooks): [useFocusController] add disabled attribute (#21032)
refactor(hooks): [useFocusController] add disabled prop

Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-01 08:41:35 +00:00
Noblet Ouways
ffe42ae401 feat(components): [color-picker] add empty values attributes (#20962)
* feat(components): [color-picker] add empty values attributes

* chore: better

* test: add test case

* docs: update version

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-06-24 16:58:38 +08:00
JCL206312
1fd8c4b3b2 fix(components): [color-picker] Improve modelValue prop type (#20880)
* fix(components): [color-picker] Improve modelValue prop type

* Revert "fix(components): [color-picker] Improve modelValue prop type"

This reverts commit 450fdfa1da.

* fix(components): [color-picker] Improve modelValue prop type

* Update packages/components/color-picker/src/color-picker.ts

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* fix: typecheck

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-06-24 16:35:57 +08:00
Noblet Ouways
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
kooriookami
cacd8ea53a refactor(components): [color-picker] Use tinycolor to calculate color (#20847)
* refactor(components): [color-picker] Use tinycolor to calculate color

* refactor(components): update

* refactor(components): update

* refactor(components): update

* fix(components): fix

closed #13239
2025-06-03 23:05:00 +08:00
DDDDD12138
e01a1439c0 style(components): [colorPicker] enhance disabled styles (#19432)
* feat: remove mask and add disabled style

* feat: set `width` and `height` on the warp container

* feat: update style

* feat: update style

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2025-05-29 15:54:16 +08:00
张海峰
34525a5e6e fix: [color-picker] Fix invalid color code clearing (#20832)
* fix: [color-picker] Fix invalid color code clearing

Enable clearing of invalid input when incorrect code is entered

* fix: fix customInput should be currentColor

---------

Co-authored-by: zhanghaifeng <751434992@qq.com>
2025-05-24 22:10:26 +08:00
DDDDD12138
16d7e64b24 fix(component): resolve 'cursor' style loss caused by 'pointer-events: none' (#19464)
* feat: remove tabindex when disabled

* fix: resolve 'cursor' style loss caused by 'pointer-events: none'

* Update packages/components/mention/src/mention.vue

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

* chore: update use-focus-controller watch

* chore: remove unnecessary styles

* feat: [select] restore and remove cursor: not-allowed

* feat: override input:disabled use agent stylesheet

* Update packages/theme-chalk/src/select.scss

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

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-04-17 07:48:53 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
thinkasany
7dbac0e1bc chore: use event constants instead string (#20104)
* chore: use UPDATE_MODEL_EVENT constants

* chore: update INPUT_EVENT & CHANGE_EVENT
2025-03-12 15:52:07 +08:00
momei
515359004b fix(components): [color-picker] optimize the flickering issue (#18872)
* fix(components): [color-picker] Optimize the flickering issue

* fix(components): [color-picker] remove meaningless comments
2024-12-24 22:01:38 +08:00
qiang
343cacf5cc fix(components): numpadEnter does not work like the Enter (#18855) 2024-11-14 21:14:51 +08:00
jiaxiang
dab6b73040 refactor: replace type checking with built-in functions (#18720)
* refactor: replace typeof string with the built-in isString

* refactor: replace typeof boolean with the built-in isBoolean

* refactor: replace typeof undefined with the built-in isUndefined

* chore: style

* chore: style
2024-10-31 09:21:21 +08:00
尘随风染
6f1f506bcb fix(components): [color-picker] support dynamic change of showAlpha prop (#18280)
* feat(components): [color-picker] supports dynamic change of colorFormat

* test(components): [color-picker] test cases with fixes added

* fix(components): [color-picker] support dynamic change of showAlpha prop

---------

Co-authored-by: SKSQ2529720581 <83899365+SKSQ2529720581@users.noreply.github.com>
2024-09-23 11:24:48 +08:00
尘随风染
30a6d3b7a3 fix(components): [color-picker] supports dynamic change of colorFormat (#18135)
* feat(components): [color-picker] supports dynamic change of colorFormat

* test(components): [color-picker] test cases with fixes added
2024-09-12 14:59:46 +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
kooriookami
0f8282520f chore(components): remove deprecated 2.8.0 (#17735)
* chore(components): remove deprecated 2.8.0

* chore(components): update
2024-08-02 11:08:24 +08:00
qiang
0670bba618 feat(components): [color-picker] alpha-slider a11y (#14245)
* feat(components): [color-picker] alpha-slider a11y

* feat(components): [color-picker] support for adjust step through shift

* feat(components): [color-picker] focus
2024-07-31 15:54:14 +08:00
sea
606ff06322 improvement(components): @touchstart @touchmove @wheel add passive (#16741)
* perf(components): @touchstart @touchmove add passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* perf(components): update passive

* style: fix lint

* perf(components): update passive

* perf(components): update passive

* perf:  delete useless code
2024-07-26 21:01:17 +08:00
Aaron-zon
725349a295 fix(components): [color-picker/tree-v2] build error typechecking fails with error TS2300 (#17545)
fix(components): build error typechecking fails with error TS2300
2024-07-17 15:27:46 +08:00
sea
d9c4634885 fix(components): [color-picker] replenish enableAlpha contral (#17015) 2024-06-07 20:44:02 +08:00
Liao-js
a8d2a5f0b3 fix(components): [color-picker] attrs class (#16887)
* fix(components): [color-picker] attrs class

* fix(components): [color-picker] v-bind attrs
2024-05-25 12:55:02 +08:00
知晓同丶
53b6e16080 feat(components): [color-picker] add teleported prop (#16634)
* feat(components): [color-picker] add `teleported` prop

closed #15357

* refactor: use tooltip hooks
2024-04-24 12:07:20 +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
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
wonderl17
0a46c24da9 fix(components): [color-picker] exposed show method wrong behavior (#14064)
fix(components): [color-picker] fix show method wrong behavior
2023-10-09 19:51:47 +08:00
wonderl17
82e9d07607 fix(components): [color-picker] first click should be trigger (#14209) 2023-09-08 15:30:07 +08:00
kooriookami
445be31228 fix(components): [color-picker] fix incorrect cursor position (#13516)
fix(components): [color-picker] fix incorrect cursor position. Closes #12581 #12901
2023-07-08 07:12:52 +00: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
xiterjia
e6be1bc3cb feat(components): [color-picker] add show hide expose (#11942)
* feat(components): [color-picker]

add handleTrigger expose

closed #11926
2023-04-01 21:24:03 +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
105d41799e refactor(components): [color-picker] alpha-slider (#10332)
* refactor(components): [color-picker] alpha-slider

* Extract logic code out of color-picker/alpha-slider

* fix: exposing methods

* chore: expose refs

---------

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-03-01 14:32:26 +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
Xc
69895aeccb docs(components): [color-picker] (#10889)
* docs(components): [color-picker]
* Adjust API style
* classname

* Update docs/en-US/component/color-picker.md

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

Co-authored-by: qiang <qw13131wang@gmail.com>
2022-12-09 14:46:58 +08:00
zz
2725dca47a fix(components): [color-picker] correct event validation (#9814) 2022-09-18 18:41:44 +08:00