Commit Graph

154 Commits

Author SHA1 Message Date
Noblet Ouways
6eb677fa00 refactor(components): [date-picker] externalize formatToString (#22349)
* refactor(components): [date-picker] externalize formatToString

Co-authored-by: inottn <inottn@outlook.com>

* chore: add rebase lost code

---------

Co-authored-by: inottn <inottn@outlook.com>
2025-09-29 17:39:32 +08:00
一只前端汪
7c16480bcd refactor(style): Update Eslint to V9 and Prettier to V3 (#21949)
* refactor(style): Update Eslint to V9 and Prettier to V3

* fix: vscode color

* fix: vscode color

* chore: remove Useless dependence and old config file

* chore: format

* Merge branch 'dev' into eslintV9

* fix: fix

* fix: ssr test

* fix: ssr test

* fix: use defineConfig

* fix: prettier format and ignore docs dist

* fix: index.mjs => index.js

* fix: Vscode color

* fix: prettier ignore global.d.ts

* fix: format

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-09-29 14:14:30 +08:00
qiang
e5dd4ea86e fix(components): [date-picker] display value error when persistent:false (#22356)
closed #12689
2025-09-28 12:54:33 +02:00
Noblet Ouways
0e8b017874 fix(components): [date-picker] allow plain array for modelValue (#22140)
* fix(components): [date-picker] allow array model value type

Co-authored-by: DDDDD12138 <43703884+DDDDD12138@users.noreply.github.com>

* chore: rebase

* chore: docs tweak

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

---------

Co-authored-by: DDDDD12138 <43703884+DDDDD12138@users.noreply.github.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2025-09-26 21:29:41 +08:00
btea
ec86b5d6ad feat(components): [date-picker] add automatic-dropdown prop (#21764)
* fix(components): [date-picker] refocue the window causes panel to pop up

* fix: remove console

* feat: add `automatic-dropdown` prop

* fix: update

* fix: update

* docs: update

* docs: update

* docs: update

* docs: update

* docs: update
2025-09-22 17:40:20 +08:00
Zhong
a4cdb69638 fix(components): replace KeyboardEvent.code with getEventCode (#22268)
fix(components): replace `event.code` with `getEventCode`
2025-09-21 20:57:25 +08:00
sea
6d8045e625 improvement(components): trigger enter open tooltip (#19830)
* feat(components): [autocomplete] trigger-on-enter attributes

* feat: update test

* feat: update

* feat: update

* test: update

* chore: fix

Co-authored-by: Dsaquel <291874700n@gmail.com>

* chore: deplace preventDefault for date pickers

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-21 11:04:46 +02:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
Zhong
1ba0a6c9b5 refactor(components): unify BEM & CSS vars via helpers (#22226) 2025-09-19 16:46:50 +08:00
micaiguai
eef0aed8bc fix(components): [date-picker-panel] sync clear value with valueOnClear (#22059)
* fix(components): [date-picker-panel] The value after cleared

* chore: refactor logic to isEmptyValue method
2025-09-16 14:19:40 +02:00
catanswer
3fef855fc0 fix(components): [time-picker] range type add id automatically (#21746)
* fix(components): [time-picker] range type add id automatically

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

* fix: [time-picker] sort the import declaration

* Update packages/components/time-picker/src/common/picker-range-trigger.vue

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

* Update picker-range-trigger.vue

---------

Co-authored-by: yinshenghao <--global>
Co-authored-by: Zhong <cszhjh@gmail.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-09-04 17:28:04 +08:00
Noblet Ouways
a985f511a0 chore: date-picker-panel tweaks (#21827)
* docs(components): [date-picker-panel] add missing props & make the doc clearer

* fix(components): [date-picker-panel] set default time-format & date-format

* refactor(components): [date-picker-panel] remove `format` property
2025-08-21 20:01:27 +08:00
Noblet Ouways
7644c1fe4a feat(components): [cascader/select/date-picker] add popper-style (#21807)
* feat(components): add popper style

* test: enforce ci passing

* chore: handle select-v2 & apply review

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

* chore: bump for select component

---------

Co-authored-by: btea <2356281422@qq.com>
2025-08-21 10:46:06 +02:00
Noblet Ouways
a1b0e504a3 feat(components): [date-picker-panel] externalize date-picker core component (#21331)
* feat(components): [date-picker-panel] add `date-picker` core component

Revert "feat(components): [date-picker] flat picker PoC"

This reverts commit 9952c7fc0f9aedd72723d553878f4282f9448951.

chore: get visual panel

chore: wip

chore: wip

chore: wip

chore: wip

chore: handleChange portable

chore: prettier

Revert "chore: prettier"

This reverts commit 87f1585e27f39c580d5f1f3439670bca44cedb6b.

Revert "chore: handleChange portable"

This reverts commit 99c1c1fc2e541703481c3933d154ab80677181c1.

chore: revert & be good

chore: prettier & lint

chore: some cleanup

chore: refine a bit

chore: refine

chore: style tweaks for panel

chore: handle disabled

chore: fix test

test: add disabled

chore: update

chore: refine

chore: save

chore: temp undo diff docs

chore: rename bordered => border

test: add time pickers

Revert "chore: temp undo diff docs"

This reverts commit ddf11fae1ab26d63e85b0fd5ab6f7739e90bbfb7.

chore: save

* chore: set `show-footer` default to false

* chore: review & simplify

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

* chore: add overview icon

* fix: doc typo

* chore: doc tweaks

* chore: rebase tweaks

* chore: remove change event for panel

* fix: css import path

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

* chore: rebase & doc tweak

* chore: fix review

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

* fix: apply review

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

* chore: remove popper injection 1/2

* chore: remove popper injection 2/2

* chore: address same import

* docs: delete format example

* chore: remove useless passing prop

* chore: resolve conflict

* docs: update datetime props

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2025-08-19 10:08:07 +02:00
Noblet Ouways
c83b99d2f2 feat(components): unify clear btn display on focus (#21732)
* feat(components): unify clear btn display on focus

* test: add tests

* chore: apply review
2025-08-18 10:54:32 +02:00
Noblet Ouways
bce22dd10d fix(components): allow null type on empty-values components (#21582)
* fix(components): allow null type on empty-values components

* refactor(hooks): [empty-values]: allow plain null for `value-on-clear`
2025-08-01 12:27:19 +02:00
Dsaquel
9586d0efa8 feat(components): [date-picker] add show-footer prop 2025-07-27 19:00:25 +02:00
thinkasany
59374e86d0 refactor(components): [timePicker] touch start event (#21458) 2025-07-24 11:34:42 +02:00
dhj-l
6e419e9b9a fix(components): [time-picker] fix keyboard arrow controls (#21215) 2025-07-23 17:36:38 +08: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
yuhengshen
a579224896 fix(components): [autocomplete] add placeholder prop type definition (#21206)
* fix(components): [autocomplete] add placeholder prop type definition

* feat(components): [autocomplete] add inputProps and merge properties

* docs: [input] description typo

* feat: explicitly using the `model` & `disabled`

* fix(components): [time-picker] single input name type

* docs: add input attrs link

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-03 00:15:53 +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
fratzinger
667726b128 fix(components): [date-picker] pass showWeekNumber to panel (#21049)
* fix(components): prop show-week-number

* docs: [date-time-picker] add attribute showWeekNumber

* fix(components): [date-picker] range showWeekNumber

* refactor(components): date-table use ns class for week number header

* refactor: BooleanConstructor casts to false by default

* test(components): [date-picker] add showWeekNumber

* test(components): [date-picker] datetime showsWeekNumber
2025-06-18 22:59:01 +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
betavs
8f380ce884 refactor(components): standardize injection keys (#20616) 2025-06-06 14:45:39 +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
sea
1084071fcf chore(eslint-config): add newline-after-import rules (#20309)
chore: add `newline-after-import` rules
2025-03-31 20:48:10 +08:00
sheepie
5ae65bbcb5 fix(components): [time-picker] custom format causes highlight errors (#20161)
fix(components): [time-picker] Don't show highlights with custom format (#20151)
2025-03-19 09:35:47 +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
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
xingyixiang
f932ea2dcb fix(components): [date-picker] change triggers twice when clearing (#19804)
* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] change triggers twice when clearing

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test

* fix(components): [date-picker] add test
2025-03-03 15:47:34 +08:00
sea
31f08e0954 test: use test fn replace sleep (#19977)
* test: use test fn replace sleep

* test: update
2025-02-26 16:21:04 +08:00
jiaxiang
7662aa05a2 refactor: [time-picker] optimize type declaration (#19875)
chore: [time-picker] optimize type declaration
2025-02-16 09:14:06 +08:00
DDDDD12138
535c6e34f6 chore: [time-picker] correct typo in timePickerRangeTriggerProps (#19487)
* fix: correct typo in timePickerRangeTriggerProps

* chore: deprecate misspelled export `timePickerRngeTriggerProps`

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-11 01:00:24 +00:00
thinkasany
1cf151575d fix(components): [time-picker] click the Cancel button twice to close time picker (#18938)
* fix(components): [time-picker] Cancel button twice to close

Co-authored-by: xingyixiang <452282988@qq.com>
Co-authored-by: cdk1025 <cdk1025@foxmail.com>

* Update packages/components/time-picker/src/time-picker-com/panel-time-range.vue

---------

Co-authored-by: xingyixiang <452282988@qq.com>
Co-authored-by: cdk1025 <cdk1025@foxmail.com>
2024-11-29 10:20:37 +08:00
Noblet Ouways
3c734df53e fix(components): [time-picker] add passive modifier on touchstart event (#19046)
fix(components): [time-picker]

add passive modifier on touchstart event

closed #19045
2024-11-29 09:22:01 +08:00
DDDDD12138
776ae477fe fix(components): [date-picker] resolve v-model type inconsistency (#18888)
* fix(components): [date-picker] resolve  v-model type inconsistency

* test: add unit test form CommonPicker
2024-11-23 17:44:43 +08:00
btea
20ad79cc98 chore(components): [time-picker] fix ts error (#18993)
chore: fix ts error
2024-11-22 22:36:33 +08:00
thinkasany
55dd94b395 fix(types): improve styles type by CSSProperties (#18942) 2024-11-19 21:21:28 +08:00
Stephen.K
9e763f77fa fix(components): time-picker disabled-[hours/minutes/seconds] (#13364) (#14216)
* fix(components): time-picker disabled-[hours/minutes/seconds] (#13364)

* feat(components): callback compareDate not support range time picker

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-11-13 17:10:19 +08:00
DDDDD12138
fe881ff337 fix(components): [picker] fix popup not opening when editable is false (#18767) 2024-11-05 11:32:35 +08:00
jiaxiang
eb899f0702 refactor: replace typeof number with the built-in isNumber (#18706)
* refactor: replace typeof number with the built-in isNumber

* style: format
2024-10-30 14:54:49 +08:00
Jungzl
7bba5332f1 chore: update dependencies (#18573)
* chore: update dependencies

typescript: v5.5
vue-tsc: v2
eslint: v8-latest
@commitlint/*: v18

* fix: apply suggestions

* fix: ignore some ts errors
2024-10-29 10:01:58 +08:00
qiang
845c07adef feat(components): [date-picker] accessibility enhancement (#18109)
* feat(components): [date-picker] accessibility enhancement

closed #14150

* docs: update

* test: add test

* chore: change prevent to passive

* fix: long press the clear icon to open the time panel

* fix: cannot read $el

* fix: cannot read $el

* docs: updata
2024-10-27 12:14:53 +08:00
btea
60b899d9bc feat(components): [date-picker] add show-now prop (#18625) 2024-10-23 08:53:48 +08:00
btea
a8bdeb4f1d feat(components): [date-picker] add placement & fallback-placements (#18310)
* feat(components): [date-picker] add `placement` & `fallback-placements`

* chore: remove console

* docs: add type Placement

* fix: update
2024-09-22 15:35:16 +08:00
wzc520pyfm
2a568113a3 fix(components): [time-picker] close pick when click clear on pick open (#15390)
closed #15355

Co-authored-by: warmthsea <2586244885@qq.com>
2024-09-12 21:50:31 +08:00
qiang
7017d19260 fix(components): [tooltip] change ariaHidden value after closed the dropdown (#18207)
* fix(components): [tooltip] change ariaHidden value after closed dropdown

closed #17720

* test: fix test
2024-09-10 15:58:53 +08:00
momei
b4c969ca29 fix(components): [time-picker] avoid update initial value when using disabledHours & isRange (#17813)
* fix(components): [time-picker] fix wrong trigger

* fix(components): [time-picker] add test for time-picker

* fix(components): [time-picker] add a test for time-picker

* fix(components): [time-picker] add test for time-picker
2024-08-15 22:50:43 +08:00