@element-plus/nightly 0.0.20240726 → 0.0.20240728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +116 -112
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +23 -23
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +117 -114
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +5 -3
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -3
- package/es/components/cascader/index.d.ts +22 -10
- package/es/components/cascader/src/cascader.vue.d.ts +11 -5
- package/es/components/cascader/src/cascader2.mjs +22 -27
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +4 -4
- package/es/components/collapse/src/collapse-item.mjs +91 -13
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +13 -91
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs +28 -18
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +18 -28
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +23 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +23 -1
- package/es/components/date-picker/src/panel-utils.d.ts +46 -2
- package/es/components/index.mjs +3 -3
- package/es/components/input/index.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +1 -1
- package/es/components/input/src/input2.mjs +17 -30
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +3 -3
- package/es/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +87 -269
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +269 -87
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +2 -0
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -0
- package/es/components/scrollbar/src/scrollbar2.mjs +9 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/index.d.ts +3 -3
- package/es/components/select/src/option.mjs +1 -1
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +3 -3
- package/es/components/select/src/useSelect.d.ts +3 -3
- package/es/components/select/src/useSelect.mjs +11 -8
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +6 -6
- package/es/components/select-v2/src/select.vue.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.d.ts +3 -3
- package/es/components/select-v2/src/useSelect.mjs +11 -8
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/index.d.ts +3 -3
- package/es/components/slider/src/slider.vue.d.ts +3 -3
- package/es/components/slider/src/slider2.mjs +2 -1
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.mjs +2 -10
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs +4 -0
- package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +18 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +22 -0
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +22 -0
- package/es/components/time-select/index.d.ts +6 -6
- package/es/components/time-select/src/time-select.vue.d.ts +6 -6
- package/es/components/transfer/index.d.ts +5 -5
- package/es/components/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +5 -5
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-composition/index.d.ts +12 -0
- package/es/hooks/use-composition/index.mjs +41 -0
- package/es/hooks/use-composition/index.mjs.map +1 -0
- package/es/hooks/use-cursor/index.mjs +4 -6
- package/es/hooks/use-cursor/index.mjs.map +1 -1
- package/es/index.mjs +4 -3
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +5 -3
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -3
- package/lib/components/cascader/index.d.ts +22 -10
- package/lib/components/cascader/src/cascader.vue.d.ts +11 -5
- package/lib/components/cascader/src/cascader2.js +40 -45
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/collapse/index.js +4 -4
- package/lib/components/collapse/src/collapse-item.js +91 -13
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +13 -91
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse.js +28 -20
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +20 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +23 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +23 -1
- package/lib/components/date-picker/src/panel-utils.d.ts +46 -2
- package/lib/components/index.js +3 -3
- package/lib/components/input/index.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +1 -1
- package/lib/components/input/src/input2.js +25 -38
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +3 -3
- package/lib/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +87 -268
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +268 -87
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +2 -0
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -0
- package/lib/components/scrollbar/src/scrollbar2.js +8 -0
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/index.d.ts +3 -3
- package/lib/components/select/src/option.js +1 -1
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +3 -3
- package/lib/components/select/src/useSelect.d.ts +3 -3
- package/lib/components/select/src/useSelect.js +15 -12
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +6 -6
- package/lib/components/select-v2/src/select.vue.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.d.ts +3 -3
- package/lib/components/select-v2/src/useSelect.js +13 -10
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/index.d.ts +3 -3
- package/lib/components/slider/src/slider.vue.d.ts +3 -3
- package/lib/components/slider/src/slider2.js +2 -1
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.js +2 -10
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-header/event-helper.js +4 -0
- package/lib/components/table/src/table-header/event-helper.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +18 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +22 -0
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +22 -0
- package/lib/components/time-select/index.d.ts +6 -6
- package/lib/components/time-select/src/time-select.vue.d.ts +6 -6
- package/lib/components/transfer/index.d.ts +5 -5
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +5 -5
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +12 -10
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-composition/index.d.ts +12 -0
- package/lib/hooks/use-composition/index.js +45 -0
- package/lib/hooks/use-composition/index.js.map +1 -0
- package/lib/hooks/use-cursor/index.js +4 -6
- package/lib/hooks/use-cursor/index.js.map +1 -1
- package/lib/index.js +15 -13
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
- package/es/components/select-v2/src/useInput.d.ts +0 -5
- package/es/components/select-v2/src/useInput.mjs +0 -32
- package/es/components/select-v2/src/useInput.mjs.map +0 -1
- package/lib/components/select-v2/src/useInput.d.ts +0 -5
- package/lib/components/select-v2/src/useInput.js +0 -36
- package/lib/components/select-v2/src/useInput.js.map +0 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20240728 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -11199,7 +11199,7 @@
|
|
|
11199
11199
|
};
|
|
11200
11200
|
|
|
11201
11201
|
function useCursor(input) {
|
|
11202
|
-
|
|
11202
|
+
let selectionInfo;
|
|
11203
11203
|
function recordCursor() {
|
|
11204
11204
|
if (input.value == void 0)
|
|
11205
11205
|
return;
|
|
@@ -11208,7 +11208,7 @@
|
|
|
11208
11208
|
return;
|
|
11209
11209
|
const beforeTxt = value.slice(0, Math.max(0, selectionStart));
|
|
11210
11210
|
const afterTxt = value.slice(Math.max(0, selectionEnd));
|
|
11211
|
-
|
|
11211
|
+
selectionInfo = {
|
|
11212
11212
|
selectionStart,
|
|
11213
11213
|
selectionEnd,
|
|
11214
11214
|
value,
|
|
@@ -11217,10 +11217,10 @@
|
|
|
11217
11217
|
};
|
|
11218
11218
|
}
|
|
11219
11219
|
function setCursor() {
|
|
11220
|
-
if (input.value == void 0 ||
|
|
11220
|
+
if (input.value == void 0 || selectionInfo == void 0)
|
|
11221
11221
|
return;
|
|
11222
11222
|
const { value } = input.value;
|
|
11223
|
-
const { beforeTxt, afterTxt, selectionStart } =
|
|
11223
|
+
const { beforeTxt, afterTxt, selectionStart } = selectionInfo;
|
|
11224
11224
|
if (beforeTxt == void 0 || afterTxt == void 0 || selectionStart == void 0)
|
|
11225
11225
|
return;
|
|
11226
11226
|
let startPos = value.length;
|
|
@@ -11321,6 +11321,41 @@
|
|
|
11321
11321
|
};
|
|
11322
11322
|
}
|
|
11323
11323
|
|
|
11324
|
+
function useComposition({
|
|
11325
|
+
afterComposition,
|
|
11326
|
+
emit
|
|
11327
|
+
}) {
|
|
11328
|
+
const isComposing = vue.ref(false);
|
|
11329
|
+
const handleCompositionStart = (event) => {
|
|
11330
|
+
emit == null ? void 0 : emit("compositionstart", event);
|
|
11331
|
+
isComposing.value = true;
|
|
11332
|
+
};
|
|
11333
|
+
const handleCompositionUpdate = (event) => {
|
|
11334
|
+
var _a;
|
|
11335
|
+
emit == null ? void 0 : emit("compositionupdate", event);
|
|
11336
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
11337
|
+
const lastCharacter = text[text.length - 1] || "";
|
|
11338
|
+
isComposing.value = !isKorean(lastCharacter);
|
|
11339
|
+
};
|
|
11340
|
+
const handleCompositionEnd = (event) => {
|
|
11341
|
+
emit == null ? void 0 : emit("compositionend", event);
|
|
11342
|
+
if (isComposing.value) {
|
|
11343
|
+
isComposing.value = false;
|
|
11344
|
+
vue.nextTick(() => afterComposition(event));
|
|
11345
|
+
}
|
|
11346
|
+
};
|
|
11347
|
+
const handleComposition = (event) => {
|
|
11348
|
+
event.type === "compositionend" ? handleCompositionEnd(event) : handleCompositionUpdate(event);
|
|
11349
|
+
};
|
|
11350
|
+
return {
|
|
11351
|
+
isComposing,
|
|
11352
|
+
handleComposition,
|
|
11353
|
+
handleCompositionStart,
|
|
11354
|
+
handleCompositionUpdate,
|
|
11355
|
+
handleCompositionEnd
|
|
11356
|
+
};
|
|
11357
|
+
}
|
|
11358
|
+
|
|
11324
11359
|
const emptyValuesContextKey = Symbol("emptyValuesContextKey");
|
|
11325
11360
|
const SCOPE$3 = "use-empty-values";
|
|
11326
11361
|
const DEFAULT_EMPTY_VALUES = ["", void 0, null];
|
|
@@ -11495,7 +11530,7 @@
|
|
|
11495
11530
|
|
|
11496
11531
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11497
11532
|
|
|
11498
|
-
const version$1 = "0.0.
|
|
11533
|
+
const version$1 = "0.0.20240728";
|
|
11499
11534
|
|
|
11500
11535
|
const makeInstaller = (components = []) => {
|
|
11501
11536
|
const install = (app, options) => {
|
|
@@ -13853,7 +13888,6 @@
|
|
|
13853
13888
|
const input = vue.shallowRef();
|
|
13854
13889
|
const textarea = vue.shallowRef();
|
|
13855
13890
|
const hovering = vue.ref(false);
|
|
13856
|
-
const isComposing = vue.ref(false);
|
|
13857
13891
|
const passwordVisible = vue.ref(false);
|
|
13858
13892
|
const countStyle = vue.ref();
|
|
13859
13893
|
const textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
@@ -13963,24 +13997,12 @@
|
|
|
13963
13997
|
const handleChange = (event) => {
|
|
13964
13998
|
emit("change", event.target.value);
|
|
13965
13999
|
};
|
|
13966
|
-
const
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
emit("compositionupdate", event);
|
|
13973
|
-
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
13974
|
-
const lastCharacter = text[text.length - 1] || "";
|
|
13975
|
-
isComposing.value = !isKorean(lastCharacter);
|
|
13976
|
-
};
|
|
13977
|
-
const handleCompositionEnd = (event) => {
|
|
13978
|
-
emit("compositionend", event);
|
|
13979
|
-
if (isComposing.value) {
|
|
13980
|
-
isComposing.value = false;
|
|
13981
|
-
handleInput(event);
|
|
13982
|
-
}
|
|
13983
|
-
};
|
|
14000
|
+
const {
|
|
14001
|
+
isComposing,
|
|
14002
|
+
handleCompositionStart,
|
|
14003
|
+
handleCompositionUpdate,
|
|
14004
|
+
handleCompositionEnd
|
|
14005
|
+
} = useComposition({ emit, afterComposition: handleInput });
|
|
13984
14006
|
const handlePasswordVisible = () => {
|
|
13985
14007
|
passwordVisible.value = !passwordVisible.value;
|
|
13986
14008
|
focus();
|
|
@@ -14118,12 +14140,12 @@
|
|
|
14118
14140
|
style: _ctx.inputStyle,
|
|
14119
14141
|
form: _ctx.form,
|
|
14120
14142
|
autofocus: _ctx.autofocus,
|
|
14121
|
-
onCompositionstart: handleCompositionStart,
|
|
14122
|
-
onCompositionupdate: handleCompositionUpdate,
|
|
14123
|
-
onCompositionend: handleCompositionEnd,
|
|
14143
|
+
onCompositionstart: _cache[0] || (_cache[0] = (...args) => vue.unref(handleCompositionStart) && vue.unref(handleCompositionStart)(...args)),
|
|
14144
|
+
onCompositionupdate: _cache[1] || (_cache[1] = (...args) => vue.unref(handleCompositionUpdate) && vue.unref(handleCompositionUpdate)(...args)),
|
|
14145
|
+
onCompositionend: _cache[2] || (_cache[2] = (...args) => vue.unref(handleCompositionEnd) && vue.unref(handleCompositionEnd)(...args)),
|
|
14124
14146
|
onInput: handleInput,
|
|
14125
|
-
onFocus: _cache[
|
|
14126
|
-
onBlur: _cache[
|
|
14147
|
+
onFocus: _cache[3] || (_cache[3] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
|
|
14148
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
|
|
14127
14149
|
onChange: handleChange,
|
|
14128
14150
|
onKeydown: handleKeydown
|
|
14129
14151
|
}), null, 16, _hoisted_2$J),
|
|
@@ -14219,12 +14241,12 @@
|
|
|
14219
14241
|
form: _ctx.form,
|
|
14220
14242
|
autofocus: _ctx.autofocus,
|
|
14221
14243
|
rows: _ctx.rows,
|
|
14222
|
-
onCompositionstart: handleCompositionStart,
|
|
14223
|
-
onCompositionupdate: handleCompositionUpdate,
|
|
14224
|
-
onCompositionend: handleCompositionEnd,
|
|
14244
|
+
onCompositionstart: _cache[5] || (_cache[5] = (...args) => vue.unref(handleCompositionStart) && vue.unref(handleCompositionStart)(...args)),
|
|
14245
|
+
onCompositionupdate: _cache[6] || (_cache[6] = (...args) => vue.unref(handleCompositionUpdate) && vue.unref(handleCompositionUpdate)(...args)),
|
|
14246
|
+
onCompositionend: _cache[7] || (_cache[7] = (...args) => vue.unref(handleCompositionEnd) && vue.unref(handleCompositionEnd)(...args)),
|
|
14225
14247
|
onInput: handleInput,
|
|
14226
|
-
onFocus: _cache[
|
|
14227
|
-
onBlur: _cache[
|
|
14248
|
+
onFocus: _cache[8] || (_cache[8] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
|
|
14249
|
+
onBlur: _cache[9] || (_cache[9] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
|
|
14228
14250
|
onChange: handleChange,
|
|
14229
14251
|
onKeydown: handleKeydown
|
|
14230
14252
|
}), null, 16, _hoisted_3$l),
|
|
@@ -14543,6 +14565,8 @@
|
|
|
14543
14565
|
const ns = useNamespace("scrollbar");
|
|
14544
14566
|
let stopResizeObserver = void 0;
|
|
14545
14567
|
let stopResizeListener = void 0;
|
|
14568
|
+
let wrapScrollTop = 0;
|
|
14569
|
+
let wrapScrollLeft = 0;
|
|
14546
14570
|
const scrollbarRef = vue.ref();
|
|
14547
14571
|
const wrapRef = vue.ref();
|
|
14548
14572
|
const resizeRef = vue.ref();
|
|
@@ -14569,6 +14593,8 @@
|
|
|
14569
14593
|
var _a;
|
|
14570
14594
|
if (wrapRef.value) {
|
|
14571
14595
|
(_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
|
|
14596
|
+
wrapScrollTop = wrapRef.value.scrollTop;
|
|
14597
|
+
wrapScrollLeft = wrapRef.value.scrollLeft;
|
|
14572
14598
|
emit("scroll", {
|
|
14573
14599
|
scrollTop: wrapRef.value.scrollTop,
|
|
14574
14600
|
scrollLeft: wrapRef.value.scrollLeft
|
|
@@ -14621,6 +14647,10 @@
|
|
|
14621
14647
|
scrollbarElement: scrollbarRef,
|
|
14622
14648
|
wrapElement: wrapRef
|
|
14623
14649
|
}));
|
|
14650
|
+
vue.onActivated(() => {
|
|
14651
|
+
wrapRef.value.scrollTop = wrapScrollTop;
|
|
14652
|
+
wrapRef.value.scrollLeft = wrapScrollLeft;
|
|
14653
|
+
});
|
|
14624
14654
|
vue.onMounted(() => {
|
|
14625
14655
|
if (!props.native)
|
|
14626
14656
|
vue.nextTick(() => {
|
|
@@ -23835,6 +23865,13 @@
|
|
|
23835
23865
|
const { t } = useLocale();
|
|
23836
23866
|
const { form, formItem } = useFormItem();
|
|
23837
23867
|
const { valueOnClear } = useEmptyValues(props);
|
|
23868
|
+
const { isComposing, handleComposition } = useComposition({
|
|
23869
|
+
afterComposition(event) {
|
|
23870
|
+
var _a;
|
|
23871
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
23872
|
+
handleInput(text);
|
|
23873
|
+
}
|
|
23874
|
+
});
|
|
23838
23875
|
const tooltipRef = vue.ref(null);
|
|
23839
23876
|
const input = vue.ref(null);
|
|
23840
23877
|
const tagWrapper = vue.ref(null);
|
|
@@ -23849,13 +23886,12 @@
|
|
|
23849
23886
|
const presentTags = vue.ref([]);
|
|
23850
23887
|
const allPresentTags = vue.ref([]);
|
|
23851
23888
|
const suggestions = vue.ref([]);
|
|
23852
|
-
const isOnComposition = vue.ref(false);
|
|
23853
23889
|
const cascaderStyle = vue.computed(() => {
|
|
23854
23890
|
return attrs.style;
|
|
23855
23891
|
});
|
|
23856
23892
|
const isDisabled = vue.computed(() => props.disabled || (form == null ? void 0 : form.disabled));
|
|
23857
23893
|
const inputPlaceholder = vue.computed(() => props.placeholder || t("el.cascader.placeholder"));
|
|
23858
|
-
const currentPlaceholder = vue.computed(() => searchInputValue.value || presentTags.value.length > 0 ||
|
|
23894
|
+
const currentPlaceholder = vue.computed(() => searchInputValue.value || presentTags.value.length > 0 || isComposing.value ? "" : inputPlaceholder.value);
|
|
23859
23895
|
const realSize = useFormSize();
|
|
23860
23896
|
const tagSize = vue.computed(() => ["small"].includes(realSize.value) ? "small" : "default");
|
|
23861
23897
|
const multiple = vue.computed(() => !!props.props.multiple);
|
|
@@ -24042,19 +24078,8 @@
|
|
|
24042
24078
|
updatePopperPosition();
|
|
24043
24079
|
emit("expandChange", value);
|
|
24044
24080
|
};
|
|
24045
|
-
const handleComposition = (event) => {
|
|
24046
|
-
var _a;
|
|
24047
|
-
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
24048
|
-
if (event.type === "compositionend") {
|
|
24049
|
-
isOnComposition.value = false;
|
|
24050
|
-
vue.nextTick(() => handleInput(text));
|
|
24051
|
-
} else {
|
|
24052
|
-
const lastCharacter = text[text.length - 1] || "";
|
|
24053
|
-
isOnComposition.value = !isKorean(lastCharacter);
|
|
24054
|
-
}
|
|
24055
|
-
};
|
|
24056
24081
|
const handleKeyDown = (e) => {
|
|
24057
|
-
if (
|
|
24082
|
+
if (isComposing.value)
|
|
24058
24083
|
return;
|
|
24059
24084
|
switch (e.code) {
|
|
24060
24085
|
case EVENT_CODE.enter:
|
|
@@ -24214,10 +24239,10 @@
|
|
|
24214
24239
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
24215
24240
|
class: vue.normalizeClass(vue.unref(cascaderKls)),
|
|
24216
24241
|
style: vue.normalizeStyle(vue.unref(cascaderStyle)),
|
|
24217
|
-
onClick: _cache[
|
|
24242
|
+
onClick: _cache[8] || (_cache[8] = () => togglePopperVisible(vue.unref(readonly) ? void 0 : true)),
|
|
24218
24243
|
onKeydown: handleKeyDown,
|
|
24219
|
-
onMouseenter: _cache[
|
|
24220
|
-
onMouseleave: _cache[
|
|
24244
|
+
onMouseenter: _cache[9] || (_cache[9] = ($event) => inputHover.value = true),
|
|
24245
|
+
onMouseleave: _cache[10] || (_cache[10] = ($event) => inputHover.value = false)
|
|
24221
24246
|
}, [
|
|
24222
24247
|
vue.createVNode(vue.unref(ElInput), {
|
|
24223
24248
|
ref_key: "input",
|
|
@@ -24231,9 +24256,9 @@
|
|
|
24231
24256
|
size: vue.unref(realSize),
|
|
24232
24257
|
class: vue.normalizeClass(vue.unref(inputClass)),
|
|
24233
24258
|
tabindex: vue.unref(multiple) && _ctx.filterable && !vue.unref(isDisabled) ? -1 : void 0,
|
|
24234
|
-
onCompositionstart: handleComposition,
|
|
24235
|
-
onCompositionupdate: handleComposition,
|
|
24236
|
-
onCompositionend: handleComposition,
|
|
24259
|
+
onCompositionstart: vue.unref(handleComposition),
|
|
24260
|
+
onCompositionupdate: vue.unref(handleComposition),
|
|
24261
|
+
onCompositionend: vue.unref(handleComposition),
|
|
24237
24262
|
onFocus: handleFocus,
|
|
24238
24263
|
onBlur: handleBlur,
|
|
24239
24264
|
onInput: handleInput
|
|
@@ -24260,7 +24285,7 @@
|
|
|
24260
24285
|
}, 8, ["class"]))
|
|
24261
24286
|
]),
|
|
24262
24287
|
_: 1
|
|
24263
|
-
}, 8, ["modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex"]),
|
|
24288
|
+
}, 8, ["modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
|
24264
24289
|
vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
24265
24290
|
key: 0,
|
|
24266
24291
|
ref_key: "tagWrapper",
|
|
@@ -24336,9 +24361,9 @@
|
|
|
24336
24361
|
onInput: _cache[3] || (_cache[3] = (e) => handleInput(searchInputValue.value, e)),
|
|
24337
24362
|
onClick: _cache[4] || (_cache[4] = vue.withModifiers(($event) => togglePopperVisible(true), ["stop"])),
|
|
24338
24363
|
onKeydown: vue.withKeys(handleDelete, ["delete"]),
|
|
24339
|
-
onCompositionstart: handleComposition,
|
|
24340
|
-
onCompositionupdate: handleComposition,
|
|
24341
|
-
onCompositionend: handleComposition,
|
|
24364
|
+
onCompositionstart: _cache[5] || (_cache[5] = (...args) => vue.unref(handleComposition) && vue.unref(handleComposition)(...args)),
|
|
24365
|
+
onCompositionupdate: _cache[6] || (_cache[6] = (...args) => vue.unref(handleComposition) && vue.unref(handleComposition)(...args)),
|
|
24366
|
+
onCompositionend: _cache[7] || (_cache[7] = (...args) => vue.unref(handleComposition) && vue.unref(handleComposition)(...args)),
|
|
24342
24367
|
onFocus: handleFocus,
|
|
24343
24368
|
onBlur: handleBlur
|
|
24344
24369
|
}, null, 42, _hoisted_2$z)), [
|
|
@@ -24354,13 +24379,13 @@
|
|
|
24354
24379
|
ref_key: "cascaderPanelRef",
|
|
24355
24380
|
ref: cascaderPanelRef,
|
|
24356
24381
|
modelValue: vue.unref(checkedValue),
|
|
24357
|
-
"onUpdate:modelValue": _cache[
|
|
24382
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => vue.isRef(checkedValue) ? checkedValue.value = $event : null),
|
|
24358
24383
|
options: _ctx.options,
|
|
24359
24384
|
props: props.props,
|
|
24360
24385
|
border: false,
|
|
24361
24386
|
"render-label": _ctx.$slots.default,
|
|
24362
24387
|
onExpandChange: handleExpandChange,
|
|
24363
|
-
onClose: _cache[
|
|
24388
|
+
onClose: _cache[12] || (_cache[12] = ($event) => _ctx.$nextTick(() => togglePopperVisible(false)))
|
|
24364
24389
|
}, null, 8, ["modelValue", "options", "props", "render-label"]), [
|
|
24365
24390
|
[vue.vShow, !filtering.value]
|
|
24366
24391
|
]),
|
|
@@ -34114,7 +34139,7 @@
|
|
|
34114
34139
|
select.onOptionDestroy(key, vm);
|
|
34115
34140
|
});
|
|
34116
34141
|
function selectOptionClick() {
|
|
34117
|
-
if (
|
|
34142
|
+
if (!isDisabled.value) {
|
|
34118
34143
|
select.handleOptionSelect(vm);
|
|
34119
34144
|
}
|
|
34120
34145
|
}
|
|
@@ -34204,31 +34229,6 @@
|
|
|
34204
34229
|
}
|
|
34205
34230
|
var ElSelectMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$a], ["__file", "select-dropdown.vue"]]);
|
|
34206
34231
|
|
|
34207
|
-
function useInput(handleInput) {
|
|
34208
|
-
const isComposing = vue.ref(false);
|
|
34209
|
-
const handleCompositionStart = () => {
|
|
34210
|
-
isComposing.value = true;
|
|
34211
|
-
};
|
|
34212
|
-
const handleCompositionUpdate = (event) => {
|
|
34213
|
-
const text = event.target.value;
|
|
34214
|
-
const lastCharacter = text[text.length - 1] || "";
|
|
34215
|
-
isComposing.value = !isKorean(lastCharacter);
|
|
34216
|
-
};
|
|
34217
|
-
const handleCompositionEnd = (event) => {
|
|
34218
|
-
if (isComposing.value) {
|
|
34219
|
-
isComposing.value = false;
|
|
34220
|
-
if (isFunction$1(handleInput)) {
|
|
34221
|
-
handleInput(event);
|
|
34222
|
-
}
|
|
34223
|
-
}
|
|
34224
|
-
};
|
|
34225
|
-
return {
|
|
34226
|
-
handleCompositionStart,
|
|
34227
|
-
handleCompositionUpdate,
|
|
34228
|
-
handleCompositionEnd
|
|
34229
|
-
};
|
|
34230
|
-
}
|
|
34231
|
-
|
|
34232
34232
|
const MINIMUM_INPUT_WIDTH$1 = 11;
|
|
34233
34233
|
const useSelect$3 = (props, emit) => {
|
|
34234
34234
|
const { t } = useLocale();
|
|
@@ -34264,6 +34264,14 @@
|
|
|
34264
34264
|
const tagMenuRef = vue.ref(null);
|
|
34265
34265
|
const collapseItemRef = vue.ref(null);
|
|
34266
34266
|
const scrollbarRef = vue.ref(null);
|
|
34267
|
+
const {
|
|
34268
|
+
isComposing,
|
|
34269
|
+
handleCompositionStart,
|
|
34270
|
+
handleCompositionUpdate,
|
|
34271
|
+
handleCompositionEnd
|
|
34272
|
+
} = useComposition({
|
|
34273
|
+
afterComposition: (e) => onInput(e)
|
|
34274
|
+
});
|
|
34267
34275
|
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
|
|
34268
34276
|
afterFocus() {
|
|
34269
34277
|
if (props.automaticDropdown && !expanded.value) {
|
|
@@ -34422,7 +34430,7 @@
|
|
|
34422
34430
|
updateOptions();
|
|
34423
34431
|
});
|
|
34424
34432
|
const handleQueryChange = (val) => {
|
|
34425
|
-
if (states.previousQuery === val) {
|
|
34433
|
+
if (states.previousQuery === val || isComposing.value) {
|
|
34426
34434
|
return;
|
|
34427
34435
|
}
|
|
34428
34436
|
states.previousQuery = val;
|
|
@@ -34653,11 +34661,6 @@
|
|
|
34653
34661
|
states.options.delete(key);
|
|
34654
34662
|
}
|
|
34655
34663
|
};
|
|
34656
|
-
const {
|
|
34657
|
-
handleCompositionStart,
|
|
34658
|
-
handleCompositionUpdate,
|
|
34659
|
-
handleCompositionEnd
|
|
34660
|
-
} = useInput((e) => onInput(e));
|
|
34661
34664
|
const popperRef = vue.computed(() => {
|
|
34662
34665
|
var _a, _b;
|
|
34663
34666
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
@@ -34731,7 +34734,7 @@
|
|
|
34731
34734
|
expanded.value = true;
|
|
34732
34735
|
return;
|
|
34733
34736
|
}
|
|
34734
|
-
if (states.options.size === 0 || filteredOptionsCount
|
|
34737
|
+
if (states.options.size === 0 || states.filteredOptionsCount === 0 || isComposing.value)
|
|
34735
34738
|
return;
|
|
34736
34739
|
if (!optionsAllDisabled.value) {
|
|
34737
34740
|
if (direction === "next") {
|
|
@@ -39530,6 +39533,14 @@
|
|
|
39530
39533
|
const menuRef = vue.ref(null);
|
|
39531
39534
|
const tagMenuRef = vue.ref(null);
|
|
39532
39535
|
const collapseItemRef = vue.ref(null);
|
|
39536
|
+
const {
|
|
39537
|
+
isComposing,
|
|
39538
|
+
handleCompositionStart,
|
|
39539
|
+
handleCompositionEnd,
|
|
39540
|
+
handleCompositionUpdate
|
|
39541
|
+
} = useComposition({
|
|
39542
|
+
afterComposition: (e) => onInput(e)
|
|
39543
|
+
});
|
|
39533
39544
|
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
|
|
39534
39545
|
afterFocus() {
|
|
39535
39546
|
if (props.automaticDropdown && !expanded.value) {
|
|
@@ -39706,11 +39717,6 @@
|
|
|
39706
39717
|
selectNewOption,
|
|
39707
39718
|
clearAllNewOption
|
|
39708
39719
|
} = useAllowCreate(props, states);
|
|
39709
|
-
const {
|
|
39710
|
-
handleCompositionStart,
|
|
39711
|
-
handleCompositionUpdate,
|
|
39712
|
-
handleCompositionEnd
|
|
39713
|
-
} = useInput((e) => onInput(e));
|
|
39714
39720
|
const toggleMenu = () => {
|
|
39715
39721
|
if (selectDisabled.value)
|
|
39716
39722
|
return;
|
|
@@ -39729,7 +39735,7 @@
|
|
|
39729
39735
|
};
|
|
39730
39736
|
const debouncedOnInputChange = debounce(onInputChange, debounce$1.value);
|
|
39731
39737
|
const handleQueryChange = (val) => {
|
|
39732
|
-
if (states.previousQuery === val) {
|
|
39738
|
+
if (states.previousQuery === val || isComposing.value) {
|
|
39733
39739
|
return;
|
|
39734
39740
|
}
|
|
39735
39741
|
states.previousQuery = val;
|
|
@@ -39904,7 +39910,7 @@
|
|
|
39904
39910
|
};
|
|
39905
39911
|
const onKeyboardNavigate = (direction, hoveringIndex = void 0) => {
|
|
39906
39912
|
const options = filteredOptions.value;
|
|
39907
|
-
if (!["forward", "backward"].includes(direction) || selectDisabled.value || options.length <= 0 || optionsAllDisabled.value) {
|
|
39913
|
+
if (!["forward", "backward"].includes(direction) || selectDisabled.value || options.length <= 0 || optionsAllDisabled.value || isComposing.value) {
|
|
39908
39914
|
return;
|
|
39909
39915
|
}
|
|
39910
39916
|
if (!expanded.value) {
|
|
@@ -41589,11 +41595,12 @@
|
|
|
41589
41595
|
controls: _ctx.showInputControls,
|
|
41590
41596
|
min: _ctx.min,
|
|
41591
41597
|
max: _ctx.max,
|
|
41598
|
+
precision: vue.unref(precision),
|
|
41592
41599
|
debounce: _ctx.debounce,
|
|
41593
41600
|
size: vue.unref(sliderInputSize),
|
|
41594
41601
|
"onUpdate:modelValue": vue.unref(setFirstValue),
|
|
41595
41602
|
onChange: vue.unref(emitChange)
|
|
41596
|
-
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "debounce", "size", "onUpdate:modelValue", "onChange"])) : vue.createCommentVNode("v-if", true)
|
|
41603
|
+
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : vue.createCommentVNode("v-if", true)
|
|
41597
41604
|
], 10, _hoisted_1$i);
|
|
41598
41605
|
};
|
|
41599
41606
|
}
|
|
@@ -44598,6 +44605,10 @@
|
|
|
44598
44605
|
}
|
|
44599
44606
|
if (!column.sortable)
|
|
44600
44607
|
return;
|
|
44608
|
+
const clickTarget = event.currentTarget;
|
|
44609
|
+
if (["ascending", "descending"].some((str) => hasClass(clickTarget, str) && !column.sortOrders.includes(str))) {
|
|
44610
|
+
return;
|
|
44611
|
+
}
|
|
44601
44612
|
const states = props.store.states;
|
|
44602
44613
|
let sortProp = states.sortProp.value;
|
|
44603
44614
|
let sortOrder;
|
|
@@ -44946,7 +44957,7 @@
|
|
|
44946
44957
|
}
|
|
44947
44958
|
});
|
|
44948
44959
|
|
|
44949
|
-
function isGreaterThan(a, b, epsilon = 0.
|
|
44960
|
+
function isGreaterThan(a, b, epsilon = 0.03) {
|
|
44950
44961
|
return a - b > epsilon;
|
|
44951
44962
|
}
|
|
44952
44963
|
function useEvents(props) {
|
|
@@ -45033,16 +45044,8 @@
|
|
|
45033
45044
|
const range = document.createRange();
|
|
45034
45045
|
range.setStart(cellChild, 0);
|
|
45035
45046
|
range.setEnd(cellChild, cellChild.childNodes.length);
|
|
45036
|
-
|
|
45037
|
-
const offsetWidth = rangeWidth - Math.floor(rangeWidth);
|
|
45047
|
+
const { width: rangeWidth, height: rangeHeight } = range.getBoundingClientRect();
|
|
45038
45048
|
const { width: cellChildWidth, height: cellChildHeight } = cellChild.getBoundingClientRect();
|
|
45039
|
-
if (offsetWidth < 1e-3) {
|
|
45040
|
-
rangeWidth = Math.floor(rangeWidth);
|
|
45041
|
-
}
|
|
45042
|
-
const offsetHeight = rangeHeight - Math.floor(rangeHeight);
|
|
45043
|
-
if (offsetHeight < 1e-3) {
|
|
45044
|
-
rangeHeight = Math.floor(rangeHeight);
|
|
45045
|
-
}
|
|
45046
45049
|
const { top, left, right, bottom } = getPadding(cellChild);
|
|
45047
45050
|
const horizontalPadding = left + right;
|
|
45048
45051
|
const verticalPadding = top + bottom;
|
|
@@ -58895,6 +58898,7 @@
|
|
|
58895
58898
|
exports.useAriaProps = useAriaProps;
|
|
58896
58899
|
exports.useAttrs = useAttrs;
|
|
58897
58900
|
exports.useCascaderConfig = useCascaderConfig;
|
|
58901
|
+
exports.useComposition = useComposition;
|
|
58898
58902
|
exports.useCursor = useCursor;
|
|
58899
58903
|
exports.useDelayedRender = useDelayedRender;
|
|
58900
58904
|
exports.useDelayedToggle = useDelayedToggle;
|