@element-plus/nightly 0.0.20260520 → 0.0.20260522
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 +11 -12
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +11 -12
- 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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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/affix/src/affix.d.ts +1 -1
- package/es/components/affix/src/affix.vue.d.ts +1 -1
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +1 -1
- package/es/components/anchor/src/anchor.vue.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +2 -2
- package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +3 -3
- package/es/components/avatar/src/avatar.d.ts +2 -2
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button-group.d.ts +2 -2
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +2 -2
- package/es/components/button/src/button.vue.d.ts +6 -6
- package/es/components/button/src/use-button.d.ts +2 -2
- package/es/components/calendar/src/select-controller.vue.d.ts +2 -2
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +4 -4
- package/es/components/cascader/src/cascader.vue.d.ts +14 -14
- package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
- package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/es/components/checkbox/src/checkbox.d.ts +9 -9
- package/es/components/checkbox/src/checkbox.vue.d.ts +3 -3
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/es/components/col/src/col.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +6 -6
- package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +3 -3
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +15 -15
- package/es/components/date-picker/src/props.d.ts +2 -2
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +1 -1
- package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/es/components/descriptions/src/description-item.d.ts +20 -20
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +2 -2
- package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +7 -7
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +8 -8
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.vue.d.ts +92 -92
- package/es/components/form/src/form-item.d.ts +2 -2
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- package/es/components/form/src/form.d.ts +3 -3
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/image/src/image.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +9 -9
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +5 -5
- package/es/components/input/src/input.d.ts +2 -2
- package/es/components/input/src/input.vue.d.ts +6 -6
- package/es/components/input-number/src/input-number.d.ts +4 -4
- package/es/components/input-number/src/input-number.vue.d.ts +6 -6
- package/es/components/input-otp/src/input-otp.vue.d.ts +3 -3
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +2 -2
- package/es/components/input-tag/src/input-tag.vue.d.ts +8 -8
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +2 -2
- package/es/components/message/src/instance.d.ts +1 -1
- package/es/components/message/src/message.d.ts +2 -2
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.mjs +5 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/message-box/src/index.vue.d.ts +44 -44
- package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +5 -5
- package/es/components/pagination/src/components/jumper.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/es/components/pagination/src/components/sizes.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +7 -7
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/src/popover.d.ts +1 -1
- package/es/components/popover/src/popover.vue.d.ts +14 -14
- package/es/components/popper/src/composables/use-content.d.ts +2 -2
- package/es/components/popper/src/content.vue.d.ts +9 -9
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/progress/src/progress.vue.d.ts +2 -2
- package/es/components/radio/src/radio-button.d.ts +4 -4
- package/es/components/radio/src/radio-button.vue.d.ts +2 -2
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +3 -3
- package/es/components/radio/src/radio.d.ts +8 -8
- package/es/components/radio/src/radio.vue.d.ts +3 -3
- package/es/components/radio/src/use-radio.d.ts +1 -1
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +1 -1
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/row/src/row.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/segmented/index.d.ts +2 -2
- package/es/components/segmented/src/segmented.d.ts +2 -2
- package/es/components/select/src/option.d.ts +2 -2
- package/es/components/select/src/option.vue.d.ts +5 -5
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.vue.d.ts +99 -99
- package/es/components/select/src/useOption.d.ts +2 -2
- package/es/components/select/src/useSelect.d.ts +5 -5
- package/es/components/select-v2/src/defaults.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +80 -80
- package/es/components/select-v2/src/useSelect.d.ts +1 -1
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/slider/src/slider.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +8 -8
- package/es/components/space/src/space.d.ts +5 -5
- package/es/components/splitter/src/splitter.vue.d.ts +2 -2
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +1 -1
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +72 -72
- package/es/components/table/src/store/helper.d.ts +1 -1
- package/es/components/table/src/store/index.d.ts +2 -2
- package/es/components/table/src/table/defaults.d.ts +6 -6
- package/es/components/table/src/table/style-helper.d.ts +2 -2
- package/es/components/table/src/table-column/defaults.d.ts +2 -2
- package/es/components/table/src/table-header/index.d.ts +10 -10
- package/es/components/table/src/table.vue.d.ts +7 -7
- package/es/components/table/src/util.d.ts +2 -2
- package/es/components/table/src/util.mjs +4 -8
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/src/components/row.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +2 -2
- package/es/components/table-v2/src/table-v2.d.ts +4 -4
- package/es/components/tabs/src/tab-nav.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +7 -7
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/text/src/text.d.ts +2 -2
- package/es/components/text/src/text.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +17 -17
- package/es/components/time-picker/src/common/props.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +15 -15
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +7 -7
- package/es/components/timeline/src/timeline-item.d.ts +2 -2
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +13 -13
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +16 -16
- package/es/components/tour/src/content.d.ts +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/step.vue.d.ts +1 -1
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +5 -5
- package/es/components/tree/src/tree-node.vue.d.ts +11 -11
- package/es/components/tree/src/tree.vue.d.ts +17 -17
- package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/es/components/tree-select/src/tree-select.vue.d.ts +43 -43
- package/es/components/tree-v2/src/composables/useTree.d.ts +6 -6
- package/es/components/tree-v2/src/tree-node.vue.d.ts +3 -3
- package/es/components/tree-v2/src/tree.vue.d.ts +4 -4
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +2 -2
- package/es/components/upload/src/upload-list.d.ts +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/es/hooks/use-floating/index.d.ts +4 -4
- package/es/hooks/use-popper/index.d.ts +2 -2
- package/es/hooks/use-size/index.d.ts +3 -3
- package/es/utils/vue/vnode.d.ts +4 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.d.ts +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +1 -1
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +1 -1
- package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +2 -2
- package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +3 -3
- package/lib/components/avatar/src/avatar.d.ts +2 -2
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button-group.d.ts +2 -2
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +2 -2
- package/lib/components/button/src/button.vue.d.ts +6 -6
- package/lib/components/button/src/use-button.d.ts +2 -2
- package/lib/components/calendar/src/select-controller.vue.d.ts +2 -2
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +4 -4
- package/lib/components/cascader/src/cascader.vue.d.ts +14 -14
- package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
- package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/lib/components/checkbox/src/checkbox.d.ts +9 -9
- package/lib/components/checkbox/src/checkbox.vue.d.ts +3 -3
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/lib/components/col/src/col.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +6 -6
- package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +3 -3
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +15 -15
- package/lib/components/date-picker/src/props.d.ts +2 -2
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +1 -1
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/lib/components/descriptions/src/description-item.d.ts +20 -20
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +2 -2
- package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +8 -8
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.vue.d.ts +92 -92
- package/lib/components/form/src/form-item.d.ts +2 -2
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- package/lib/components/form/src/form.d.ts +3 -3
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/image/src/image.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +9 -9
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +5 -5
- package/lib/components/input/src/input.d.ts +2 -2
- package/lib/components/input/src/input.vue.d.ts +6 -6
- package/lib/components/input-number/src/input-number.d.ts +4 -4
- package/lib/components/input-number/src/input-number.vue.d.ts +6 -6
- package/lib/components/input-otp/src/input-otp.vue.d.ts +3 -3
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +2 -2
- package/lib/components/input-tag/src/input-tag.vue.d.ts +8 -8
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +2 -2
- package/lib/components/message/src/instance.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +2 -2
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.js +5 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +44 -44
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +5 -5
- package/lib/components/pagination/src/components/jumper.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/lib/components/pagination/src/components/sizes.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +7 -7
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/src/popover.d.ts +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +14 -14
- package/lib/components/popper/src/composables/use-content.d.ts +2 -2
- package/lib/components/popper/src/content.vue.d.ts +9 -9
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/progress/src/progress.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-button.d.ts +4 -4
- package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +3 -3
- package/lib/components/radio/src/radio.d.ts +8 -8
- package/lib/components/radio/src/radio.vue.d.ts +3 -3
- package/lib/components/radio/src/use-radio.d.ts +1 -1
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +1 -1
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +2 -2
- package/lib/components/segmented/src/segmented.d.ts +2 -2
- package/lib/components/select/src/option.d.ts +2 -2
- package/lib/components/select/src/option.vue.d.ts +5 -5
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.vue.d.ts +99 -99
- package/lib/components/select/src/useOption.d.ts +2 -2
- package/lib/components/select/src/useSelect.d.ts +5 -5
- package/lib/components/select-v2/src/defaults.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +80 -80
- package/lib/components/select-v2/src/useSelect.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +8 -8
- package/lib/components/space/src/space.d.ts +5 -5
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +72 -72
- package/lib/components/table/src/store/helper.d.ts +1 -1
- package/lib/components/table/src/store/index.d.ts +2 -2
- package/lib/components/table/src/table/defaults.d.ts +6 -6
- package/lib/components/table/src/table/style-helper.d.ts +2 -2
- package/lib/components/table/src/table-column/defaults.d.ts +2 -2
- package/lib/components/table/src/table-header/index.d.ts +10 -10
- package/lib/components/table/src/table.vue.d.ts +7 -7
- package/lib/components/table/src/util.d.ts +2 -2
- package/lib/components/table/src/util.js +4 -8
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/src/components/row.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +2 -2
- package/lib/components/table-v2/src/table-v2.d.ts +4 -4
- package/lib/components/tabs/src/tab-nav.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +7 -7
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/text/src/text.d.ts +2 -2
- package/lib/components/text/src/text.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +17 -17
- package/lib/components/time-picker/src/common/props.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +15 -15
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +7 -7
- package/lib/components/timeline/src/timeline-item.d.ts +2 -2
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +13 -13
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +16 -16
- package/lib/components/tour/src/content.d.ts +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/step.vue.d.ts +1 -1
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +5 -5
- package/lib/components/tree/src/tree-node.vue.d.ts +11 -11
- package/lib/components/tree/src/tree.vue.d.ts +17 -17
- package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/lib/components/tree-select/src/tree-select.vue.d.ts +43 -43
- package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -6
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +3 -3
- package/lib/components/tree-v2/src/tree.vue.d.ts +4 -4
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/src/upload-list.d.ts +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/lib/hooks/use-floating/index.d.ts +4 -4
- package/lib/hooks/use-popper/index.d.ts +2 -2
- package/lib/hooks/use-size/index.d.ts +3 -3
- package/lib/utils/vue/vnode.d.ts +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.mjs","names":["isUndefined"],"sources":["../../../../../../packages/components/table/src/util.ts"],"sourcesContent":["import { Comment, Fragment, createVNode, isVNode, render } from 'vue'\nimport { flatMap, get, isNull, merge } from 'lodash-unified'\nimport {\n ensureArray,\n getProp,\n hasOwn,\n isArray,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport ElTooltip, {\n type ElTooltipProps,\n} from '@element-plus/components/tooltip'\n\nimport type { DefaultRow, Table, TreeProps } from './table/defaults'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { CSSProperties, VNode, VNodeArrayChildren } from 'vue'\n\nlet tableIdSeed = 1\nlet columnIdSeed = 1\n\nexport const createTableId = (namespace: string) =>\n `${namespace}-table_${tableIdSeed++}`\n\nexport const createTableColumnId = (parentId: string) =>\n `${parentId}_column_${columnIdSeed++}`\n\nexport type TableOverflowTooltipOptions = Partial<\n Pick<\n ElTooltipProps,\n | 'appendTo'\n | 'effect'\n | 'enterable'\n | 'hideAfter'\n | 'offset'\n | 'placement'\n | 'popperClass'\n | 'popperOptions'\n | 'showAfter'\n | 'showArrow'\n | 'transition'\n >\n>\n\nexport type TableOverflowTooltipFormatter<T extends DefaultRow> = (data: {\n row: T\n column: TableColumnCtx<T>\n cellValue: any\n}) => VNode | string\n\ntype RemovePopperFn = (() => void) & {\n trigger?: HTMLElement\n vm?: VNode\n}\n\ntype CompareValue<T> = {\n value: T\n index: number\n key: any[] | null\n}\n\nexport const getCell = function (event: Event) {\n return (event.target as HTMLElement)?.closest('td')\n}\n\nexport const orderBy = function <T extends DefaultRow>(\n array: T[],\n sortKey: string | null,\n reverse: string | number | null,\n sortMethod: TableColumnCtx<T>['sortMethod'] | null,\n sortBy: string | string[] | ((a: T, index: number, array?: T[]) => string)\n) {\n if (\n !sortKey &&\n !sortMethod &&\n (!sortBy || (isArray(sortBy) && !sortBy.length))\n ) {\n return array\n }\n if (isString(reverse)) {\n reverse = reverse === 'descending' ? -1 : 1\n } else {\n reverse = reverse && reverse < 0 ? -1 : 1\n }\n const getKey = sortMethod\n ? null\n : function (value: T, index: number) {\n if (sortBy) {\n return flatMap(ensureArray(sortBy), (by) => {\n if (isString(by)) {\n return get(value, by)\n } else {\n return by(value, index, array)\n }\n })\n }\n if (sortKey !== '$key') {\n if (isObject(value) && '$value' in value) value = value.$value\n }\n return [\n isObject(value) ? (sortKey ? get(value, sortKey) : null) : value,\n ]\n }\n const compare = function (a: CompareValue<T>, b: CompareValue<T>) {\n if (sortMethod) {\n return sortMethod(a.value, b.value)\n }\n for (let i = 0, len = a.key?.length ?? 0; i < len; i++) {\n if (a.key?.[i] < b.key?.[i]) {\n return -1\n }\n if (a.key?.[i] > b.key?.[i]) {\n return 1\n }\n }\n return 0\n }\n return array\n .map<CompareValue<T>>((value: T, index) => {\n return {\n value,\n index,\n key: getKey ? getKey(value, index) : null,\n }\n })\n .sort((a, b) => {\n let order = compare(a, b)\n if (!order) {\n // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\n order = a.index - b.index\n }\n return order * +reverse\n })\n .map((item) => item.value)\n}\n\nexport const getColumnById = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnId: string\n): null | TableColumnCtx<T> {\n let column = null\n table.columns.forEach((item) => {\n if (item.id === columnId) {\n column = item\n }\n })\n return column\n}\n\nexport const getColumnByKey = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnKey: string\n): TableColumnCtx<T> {\n let column = null\n for (let i = 0; i < table.columns.length; i++) {\n const item = table.columns[i]\n if (item.columnKey === columnKey) {\n column = item\n break\n }\n }\n if (!column)\n throwError('ElTable', `No column matching with column-key: ${columnKey}`)\n return column\n}\n\nexport const getColumnByCell = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n cell: HTMLElement,\n namespace: string\n): null | TableColumnCtx<T> {\n const matches = (cell.className || '').match(\n new RegExp(`${namespace}-table_[^\\\\s]+`, 'gm')\n )\n if (matches) {\n return getColumnById(table, matches[0])\n }\n return null\n}\n\nexport const getRowIdentity = <T extends DefaultRow>(\n row: T,\n rowKey: string | ((row: T) => string) | null\n): string => {\n if (!row) throw new Error('Row is required when get row identity')\n if (isString(rowKey)) {\n if (!rowKey.includes('.')) {\n return `${row[rowKey]}`\n }\n const key = rowKey.split('.')\n let current: any = row\n for (const element of key) {\n current = current[element]\n }\n //TODO: \"current\" is now any, we just satisfies typecheck here\n // but this function can actually return a number\n return `${current}`\n } else if (isFunction(rowKey)) {\n return rowKey.call(null, row)\n }\n return ''\n}\n\nexport const getKeysMap = function <T extends DefaultRow>(\n array: T[],\n rowKey: string | null,\n flatten = false,\n childrenKey = 'children'\n): Record<PropertyKey, { row: T; index: number }> {\n const data = array || []\n const arrayMap: Record<string, { row: T; index: number }> = {}\n\n data.forEach((row, index) => {\n arrayMap[getRowIdentity(row, rowKey)] = { row, index }\n\n if (flatten) {\n const children = row[childrenKey]\n if (isArray(children)) {\n Object.assign(arrayMap, getKeysMap(children, rowKey, true, childrenKey))\n }\n }\n })\n\n return arrayMap\n}\n\nexport function mergeOptions<T extends DefaultRow, K extends DefaultRow>(\n defaults: T,\n config: K\n): T & K {\n const options = {} as T & K\n let key: keyof T & keyof K\n for (key in defaults) {\n options[key] = defaults[key]\n }\n for (key in config) {\n if (hasOwn(config, key)) {\n const value = config[key]\n if (!isUndefined(value)) {\n options[key as keyof K] = value\n }\n }\n }\n return options\n}\n\nexport function parseWidth(width?: number | string): number | string {\n if (width === '') return width\n if (!isUndefined(width)) {\n width = Number.parseInt(width as string, 10)\n if (Number.isNaN(width)) {\n width = ''\n }\n }\n return width!\n}\n\nexport function parseMinWidth(minWidth: number | string): number | string {\n if (minWidth === '') return minWidth\n if (!isUndefined(minWidth)) {\n minWidth = parseWidth(minWidth)\n if (Number.isNaN(minWidth)) {\n minWidth = 80\n }\n }\n return minWidth\n}\n\nexport function parseHeight(height: number | string | null) {\n if (isNumber(height)) {\n return height\n }\n if (isString(height)) {\n if (/^\\d+(?:px)?$/.test(height)) {\n return Number.parseInt(height, 10)\n } else {\n return height\n }\n }\n return null\n}\n\n// https://github.com/reduxjs/redux/blob/master/src/compose.ts\nexport function compose(...funcs: ((...args: any[]) => void)[]) {\n if (funcs.length === 0) {\n return <T>(arg: T) => arg\n }\n if (funcs.length === 1) {\n return funcs[0]\n }\n return funcs.reduce(\n (a, b) =>\n (...args: any[]) =>\n a(b(...args))\n )\n}\n\nexport function toggleRowStatus<T extends DefaultRow>(\n statusArr: T[],\n row: T,\n newVal?: boolean,\n tableTreeProps?: TreeProps,\n selectable?: ((row: T, index: number) => boolean) | null,\n rowIndex?: number,\n rowKey?: string | null\n): boolean {\n let _rowIndex = rowIndex ?? 0\n let changed = false\n\n const getIndex = () => {\n if (!rowKey) {\n return statusArr.indexOf(row)\n }\n\n const id = getRowIdentity(row, rowKey)\n\n return statusArr.findIndex((item) => getRowIdentity(item, rowKey) === id)\n }\n\n const index = getIndex()\n\n const included = index !== -1\n const isRowSelectable = selectable?.call(null, row, _rowIndex)\n\n const toggleStatus = (type: 'add' | 'remove') => {\n if (type === 'add') {\n statusArr.push(row)\n } else {\n statusArr.splice(index, 1)\n }\n changed = true\n }\n const getChildrenCount = <T extends DefaultRow>(row: T) => {\n let count = 0\n const children = tableTreeProps?.children && row[tableTreeProps.children]\n if (children && isArray(children)) {\n count += children.length\n children.forEach((item) => {\n count += getChildrenCount(item)\n })\n }\n return count\n }\n\n if (!selectable || isRowSelectable) {\n if (isBoolean(newVal)) {\n if (newVal && !included) {\n toggleStatus('add')\n } else if (!newVal && included) {\n toggleStatus('remove')\n }\n } else {\n included ? toggleStatus('remove') : toggleStatus('add')\n }\n }\n\n if (\n !tableTreeProps?.checkStrictly &&\n tableTreeProps?.children &&\n isArray(row[tableTreeProps.children])\n ) {\n row[tableTreeProps.children].forEach((item: T) => {\n const childChanged = toggleRowStatus(\n statusArr,\n item,\n newVal ?? !included,\n tableTreeProps,\n selectable,\n _rowIndex + 1,\n rowKey\n )\n _rowIndex += getChildrenCount(item) + 1\n if (childChanged) {\n changed = childChanged\n }\n })\n }\n return changed\n}\n\nexport function walkTreeNode<T extends DefaultRow>(\n root: T[],\n cb: (parent: any, children: T | T[] | null, level: number) => void,\n childrenKey = 'children',\n lazyKey = 'hasChildren',\n lazy = false\n) {\n const isNil = (array: any): array is null => !(isArray(array) && array.length)\n\n function _walker(parent: any, children: T | T[], level: number) {\n cb(parent, children, level)\n children.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, level + 1)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, level + 1)\n }\n })\n }\n\n root.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, 0)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, 0)\n }\n })\n}\n\nconst getTableOverflowTooltipProps = <T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n innerText: string,\n row: T,\n column: TableColumnCtx<T> | null\n) => {\n // merge popperOptions\n const popperOptions = {\n strategy: 'fixed',\n ...props.popperOptions,\n }\n\n const tooltipFormatterContent = isFunction(column?.tooltipFormatter)\n ? column.tooltipFormatter({\n row,\n column,\n cellValue: getProp(row, column.property).value,\n })\n : undefined\n\n if (isVNode(tooltipFormatterContent)) {\n return {\n slotContent: tooltipFormatterContent,\n content: null,\n ...props,\n popperOptions,\n }\n }\n\n return {\n slotContent: null,\n content: tooltipFormatterContent ?? innerText,\n ...props,\n popperOptions,\n }\n}\n\nexport let removePopper: RemovePopperFn | null = null\n\nexport function createTablePopper<T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n popperContent: string,\n row: T,\n column: TableColumnCtx<T> | null,\n trigger: HTMLElement | null,\n table: Table<DefaultRow>\n) {\n const tableOverflowTooltipProps = getTableOverflowTooltipProps(\n props,\n popperContent,\n row,\n column\n )\n const mergedProps = {\n ...tableOverflowTooltipProps,\n slotContent: undefined,\n }\n if (removePopper?.trigger === trigger) {\n const comp = removePopper.vm?.component\n merge(comp?.props, mergedProps)\n if (comp && tableOverflowTooltipProps.slotContent) {\n comp.slots.content = () => [tableOverflowTooltipProps.slotContent]\n }\n return\n }\n removePopper?.()\n const parentNode = table?.refs.tableWrapper\n const ns = parentNode?.dataset.prefix\n const vm = createVNode(\n ElTooltip,\n {\n virtualTriggering: true,\n virtualRef: trigger,\n appendTo: parentNode,\n placement: 'top',\n transition: 'none', // Default does not require transition\n offset: 0,\n hideAfter: 0,\n ...mergedProps,\n },\n tableOverflowTooltipProps.slotContent\n ? {\n content: () => tableOverflowTooltipProps.slotContent,\n }\n : undefined\n )\n vm.appContext = { ...table.appContext, ...table }\n const container = document.createElement('div')\n render(vm, container)\n vm.component!.exposed!.onOpen()\n const scrollContainer = parentNode?.querySelector(`.${ns}-scrollbar__wrap`)\n removePopper = () => {\n if (vm.component?.exposed?.onClose) {\n vm.component.exposed.onClose()\n }\n render(null, container)\n const currentRemovePopper = removePopper as RemovePopperFn\n scrollContainer?.removeEventListener('scroll', currentRemovePopper)\n currentRemovePopper.trigger = undefined\n currentRemovePopper.vm = undefined\n removePopper = null\n }\n removePopper.trigger = trigger ?? undefined\n removePopper.vm = vm\n scrollContainer?.addEventListener('scroll', removePopper)\n}\n\nfunction getCurrentColumns<T extends DefaultRow>(\n column: TableColumnCtx<T>\n): TableColumnCtx<T>[] {\n if (column.children) {\n return flatMap(column.children, getCurrentColumns)\n } else {\n return [column]\n }\n}\n\nfunction getColSpan<T extends DefaultRow>(\n colSpan: number,\n column: TableColumnCtx<T>\n) {\n return colSpan + column.colSpan\n}\n\nexport const isFixedColumn = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n let start = 0\n let after = index\n const columns = store.states.columns.value\n if (realColumns) {\n // fixed column supported in grouped header\n const curColumns = getCurrentColumns(realColumns[index])\n const preColumns = columns.slice(0, columns.indexOf(curColumns[0]))\n\n start = preColumns.reduce(getColSpan, 0)\n after = start + curColumns.reduce(getColSpan, 0) - 1\n } else {\n start = index\n }\n let fixedLayout\n switch (fixed) {\n case 'left':\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n }\n break\n case 'right':\n if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n break\n default:\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n } else if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n }\n return fixedLayout\n ? {\n direction: fixedLayout,\n start,\n after,\n }\n : {}\n}\n\nexport const getFixedColumnsClass = <T extends DefaultRow>(\n namespace: string,\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[],\n offset = 0\n) => {\n const classes: string[] = []\n const { direction, start, after } = isFixedColumn(\n index,\n fixed,\n store,\n realColumns\n )\n if (direction) {\n const isLeft = direction === 'left'\n classes.push(`${namespace}-fixed-column--${direction}`)\n if (\n isLeft &&\n after + offset === store.states.fixedLeafColumnsLength.value - 1\n ) {\n classes.push('is-last-column')\n } else if (\n !isLeft &&\n start - offset ===\n store.states.columns.value.length -\n store.states.rightFixedLeafColumnsLength.value\n ) {\n classes.push('is-first-column')\n }\n }\n return classes\n}\n\nfunction getOffset<T extends DefaultRow>(\n offset: number,\n column: TableColumnCtx<T>\n) {\n return (\n offset +\n (isNull(column.realWidth) || Number.isNaN(column.realWidth)\n ? Number(column.width)\n : column.realWidth)\n )\n}\n\nexport const getFixedColumnOffset = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n const {\n direction,\n start = 0,\n after = 0,\n } = isFixedColumn(index, fixed, store, realColumns)\n if (!direction) {\n return\n }\n const styles: CSSProperties = {}\n const isLeft = direction === 'left'\n const columns = store.states.columns.value\n if (isLeft) {\n styles.left = columns.slice(0, start).reduce(getOffset, 0)\n } else {\n styles.right = columns\n .slice(after + 1)\n .reverse()\n .reduce(getOffset, 0)\n }\n return styles\n}\n\nexport const ensurePosition = <T extends CSSProperties>(\n style: T | undefined,\n key: keyof T\n) => {\n if (!style) return\n if (!Number.isNaN(style[key])) {\n style[key] = `${style[key]}px` as any\n }\n}\n\nexport function ensureValidVNode(\n vnodes: VNodeArrayChildren\n): VNodeArrayChildren | null {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true\n if (child.type === Comment) return false\n if (\n child.type === Fragment &&\n !ensureValidVNode(child.children as VNodeArrayChildren)\n ) {\n return false\n }\n return true\n })\n ? vnodes\n : null\n}\n"],"mappings":";;;;;;;;AAuBA,IAAI,cAAc;AAClB,IAAI,eAAe;AAEnB,MAAa,iBAAiB,cAC5B,GAAG,UAAU,SAAS;AAExB,MAAa,uBAAuB,aAClC,GAAG,SAAS,UAAU;AAoCxB,MAAa,UAAU,SAAU,OAAc;CAC7C,OAAQ,MAAM,QAAwB,QAAQ,KAAK;;AAGrD,MAAa,UAAU,SACrB,OACA,SACA,SACA,YACA,QACA;CACA,IACE,CAAC,WACD,CAAC,eACA,CAAC,UAAW,QAAQ,OAAO,IAAI,CAAC,OAAO,SAExC,OAAO;CAET,IAAI,SAAS,QAAQ,EACnB,UAAU,YAAY,eAAe,KAAK;MAE1C,UAAU,WAAW,UAAU,IAAI,KAAK;CAE1C,MAAM,SAAS,aACX,OACA,SAAU,OAAU,OAAe;EACjC,IAAI,QACF,OAAO,QAAQ,YAAY,OAAO,GAAG,OAAO;GAC1C,IAAI,SAAS,GAAG,EACd,OAAO,IAAI,OAAO,GAAG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WAAW,MAAM,OAAO,uBAAuB,QAAQ,GAE/D,QAAQ,KAAK,iBAAiB;OACzB,IACL,CAAC,UACD,QAAQ,WACN,MAAM,OAAO,QAAQ,MAAM,SACzB,MAAM,OAAO,4BAA4B,OAE7C,QAAQ,KAAK,kBAAkB;;CAGnC,OAAO;;AAGT,SAAS,UACP,QACA,QACA;CACA,OACE,UACC,OAAO,OAAO,UAAU,IAAI,OAAO,MAAM,OAAO,UAAU,GACvD,OAAO,OAAO,MAAM,GACpB,OAAO;;AAIf,MAAa,wBACX,OACA,OACA,OACA,gBACG;CACH,MAAM,EACJ,WACA,QAAQ,GACR,QAAQ,MACN,cAAc,OAAO,OAAO,OAAO,YAAY;CACnD,IAAI,CAAC,WACH;CAEF,MAAM,SAAwB,EAAE;CAChC,MAAM,SAAS,cAAc;CAC7B,MAAM,UAAU,MAAM,OAAO,QAAQ;CACrC,IAAI,QACF,OAAO,OAAO,QAAQ,MAAM,GAAG,MAAM,CAAC,OAAO,WAAW,EAAE;MAE1D,OAAO,QAAQ,QACZ,MAAM,QAAQ,EAAE,CAChB,SAAS,CACT,OAAO,WAAW,EAAE;CAEzB,OAAO;;AAGT,MAAa,kBACX,OACA,QACG;CACH,IAAI,CAAC,OAAO;CACZ,IAAI,CAAC,OAAO,MAAM,MAAM,KAAK,EAC3B,MAAM,OAAO,GAAG,MAAM,KAAK;;AAI/B,SAAgB,iBACd,QAC2B;CAC3B,OAAO,OAAO,MAAM,UAAU;EAC5B,IAAI,CAAC,QAAQ,MAAM,EAAE,OAAO;EAC5B,IAAI,MAAM,SAAS,SAAS,OAAO;EACnC,IACE,MAAM,SAAS,YACf,CAAC,iBAAiB,MAAM,SAA+B,EAEvD,OAAO;EAET,OAAO;GACP,GACE,SACA"}
|
|
1
|
+
{"version":3,"file":"util.mjs","names":["isUndefined"],"sources":["../../../../../../packages/components/table/src/util.ts"],"sourcesContent":["import { Comment, Fragment, createVNode, isVNode, render } from 'vue'\nimport { flatMap, get, isNull, merge } from 'lodash-unified'\nimport {\n ensureArray,\n getProp,\n hasOwn,\n isArray,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport ElTooltip from '@element-plus/components/tooltip'\n\nimport type { UseTooltipProps } from '@element-plus/components/tooltip'\nimport type { DefaultRow, Table, TreeProps } from './table/defaults'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { CSSProperties, VNode, VNodeArrayChildren } from 'vue'\n\nlet tableIdSeed = 1\nlet columnIdSeed = 1\n\nexport const createTableId = (namespace: string) =>\n `${namespace}-table_${tableIdSeed++}`\n\nexport const createTableColumnId = (parentId: string) =>\n `${parentId}_column_${columnIdSeed++}`\n\nexport type TableOverflowTooltipOptions = Partial<\n Omit<\n UseTooltipProps,\n | 'content'\n | 'rawContent'\n | 'persistent'\n | 'visible'\n | 'autoClose'\n | 'referenceEl'\n | 'triggerTargetEl'\n | 'virtualRef'\n | 'virtualTriggering'\n >\n>\n\nexport type TableOverflowTooltipFormatter<T extends DefaultRow> = (data: {\n row: T\n column: TableColumnCtx<T>\n cellValue: any\n}) => VNode | string\n\ntype RemovePopperFn = (() => void) & {\n trigger?: HTMLElement\n vm?: VNode\n}\n\ntype CompareValue<T> = {\n value: T\n index: number\n key: any[] | null\n}\n\nexport const getCell = function (event: Event) {\n return (event.target as HTMLElement)?.closest('td')\n}\n\nexport const orderBy = function <T extends DefaultRow>(\n array: T[],\n sortKey: string | null,\n reverse: string | number | null,\n sortMethod: TableColumnCtx<T>['sortMethod'] | null,\n sortBy: string | string[] | ((a: T, index: number, array?: T[]) => string)\n) {\n if (\n !sortKey &&\n !sortMethod &&\n (!sortBy || (isArray(sortBy) && !sortBy.length))\n ) {\n return array\n }\n if (isString(reverse)) {\n reverse = reverse === 'descending' ? -1 : 1\n } else {\n reverse = reverse && reverse < 0 ? -1 : 1\n }\n const getKey = sortMethod\n ? null\n : function (value: T, index: number) {\n if (sortBy) {\n return flatMap(ensureArray(sortBy), (by) => {\n if (isString(by)) {\n return get(value, by)\n } else {\n return by(value, index, array)\n }\n })\n }\n if (sortKey !== '$key') {\n if (isObject(value) && '$value' in value) value = value.$value\n }\n return [\n isObject(value) ? (sortKey ? get(value, sortKey) : null) : value,\n ]\n }\n const compare = function (a: CompareValue<T>, b: CompareValue<T>) {\n if (sortMethod) {\n return sortMethod(a.value, b.value)\n }\n for (let i = 0, len = a.key?.length ?? 0; i < len; i++) {\n if (a.key?.[i] < b.key?.[i]) {\n return -1\n }\n if (a.key?.[i] > b.key?.[i]) {\n return 1\n }\n }\n return 0\n }\n return array\n .map<CompareValue<T>>((value: T, index) => {\n return {\n value,\n index,\n key: getKey ? getKey(value, index) : null,\n }\n })\n .sort((a, b) => {\n let order = compare(a, b)\n if (!order) {\n // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\n order = a.index - b.index\n }\n return order * +reverse\n })\n .map((item) => item.value)\n}\n\nexport const getColumnById = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnId: string\n): null | TableColumnCtx<T> {\n let column = null\n table.columns.forEach((item) => {\n if (item.id === columnId) {\n column = item\n }\n })\n return column\n}\n\nexport const getColumnByKey = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnKey: string\n): TableColumnCtx<T> {\n let column = null\n for (let i = 0; i < table.columns.length; i++) {\n const item = table.columns[i]\n if (item.columnKey === columnKey) {\n column = item\n break\n }\n }\n if (!column)\n throwError('ElTable', `No column matching with column-key: ${columnKey}`)\n return column\n}\n\nexport const getColumnByCell = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n cell: HTMLElement,\n namespace: string\n): null | TableColumnCtx<T> {\n const matches = (cell.className || '').match(\n new RegExp(`${namespace}-table_[^\\\\s]+`, 'gm')\n )\n if (matches) {\n return getColumnById(table, matches[0])\n }\n return null\n}\n\nexport const getRowIdentity = <T extends DefaultRow>(\n row: T,\n rowKey: string | ((row: T) => string) | null\n): string => {\n if (!row) throw new Error('Row is required when get row identity')\n if (isString(rowKey)) {\n if (!rowKey.includes('.')) {\n return `${row[rowKey]}`\n }\n const key = rowKey.split('.')\n let current: any = row\n for (const element of key) {\n current = current[element]\n }\n //TODO: \"current\" is now any, we just satisfies typecheck here\n // but this function can actually return a number\n return `${current}`\n } else if (isFunction(rowKey)) {\n return rowKey.call(null, row)\n }\n return ''\n}\n\nexport const getKeysMap = function <T extends DefaultRow>(\n array: T[],\n rowKey: string | null,\n flatten = false,\n childrenKey = 'children'\n): Record<PropertyKey, { row: T; index: number }> {\n const data = array || []\n const arrayMap: Record<string, { row: T; index: number }> = {}\n\n data.forEach((row, index) => {\n arrayMap[getRowIdentity(row, rowKey)] = { row, index }\n\n if (flatten) {\n const children = row[childrenKey]\n if (isArray(children)) {\n Object.assign(arrayMap, getKeysMap(children, rowKey, true, childrenKey))\n }\n }\n })\n\n return arrayMap\n}\n\nexport function mergeOptions<T extends DefaultRow, K extends DefaultRow>(\n defaults: T,\n config: K\n): T & K {\n const options = {} as T & K\n let key: keyof T & keyof K\n for (key in defaults) {\n options[key] = defaults[key]\n }\n for (key in config) {\n if (hasOwn(config, key)) {\n const value = config[key]\n if (!isUndefined(value)) {\n options[key as keyof K] = value\n }\n }\n }\n return options\n}\n\nexport function parseWidth(width?: number | string): number | string {\n if (width === '') return width\n if (!isUndefined(width)) {\n width = Number.parseInt(width as string, 10)\n if (Number.isNaN(width)) {\n width = ''\n }\n }\n return width!\n}\n\nexport function parseMinWidth(minWidth: number | string): number | string {\n if (minWidth === '') return minWidth\n if (!isUndefined(minWidth)) {\n minWidth = parseWidth(minWidth)\n if (Number.isNaN(minWidth)) {\n minWidth = 80\n }\n }\n return minWidth\n}\n\nexport function parseHeight(height: number | string | null) {\n if (isNumber(height)) {\n return height\n }\n if (isString(height)) {\n if (/^\\d+(?:px)?$/.test(height)) {\n return Number.parseInt(height, 10)\n } else {\n return height\n }\n }\n return null\n}\n\n// https://github.com/reduxjs/redux/blob/master/src/compose.ts\nexport function compose(...funcs: ((...args: any[]) => void)[]) {\n if (funcs.length === 0) {\n return <T>(arg: T) => arg\n }\n if (funcs.length === 1) {\n return funcs[0]\n }\n return funcs.reduce(\n (a, b) =>\n (...args: any[]) =>\n a(b(...args))\n )\n}\n\nexport function toggleRowStatus<T extends DefaultRow>(\n statusArr: T[],\n row: T,\n newVal?: boolean,\n tableTreeProps?: TreeProps,\n selectable?: ((row: T, index: number) => boolean) | null,\n rowIndex?: number,\n rowKey?: string | null\n): boolean {\n let _rowIndex = rowIndex ?? 0\n let changed = false\n\n const getIndex = () => {\n if (!rowKey) {\n return statusArr.indexOf(row)\n }\n\n const id = getRowIdentity(row, rowKey)\n\n return statusArr.findIndex((item) => getRowIdentity(item, rowKey) === id)\n }\n\n const index = getIndex()\n\n const included = index !== -1\n const isRowSelectable = selectable?.call(null, row, _rowIndex)\n\n const toggleStatus = (type: 'add' | 'remove') => {\n if (type === 'add') {\n statusArr.push(row)\n } else {\n statusArr.splice(index, 1)\n }\n changed = true\n }\n const getChildrenCount = <T extends DefaultRow>(row: T) => {\n let count = 0\n const children = tableTreeProps?.children && row[tableTreeProps.children]\n if (children && isArray(children)) {\n count += children.length\n children.forEach((item) => {\n count += getChildrenCount(item)\n })\n }\n return count\n }\n\n if (!selectable || isRowSelectable) {\n if (isBoolean(newVal)) {\n if (newVal && !included) {\n toggleStatus('add')\n } else if (!newVal && included) {\n toggleStatus('remove')\n }\n } else {\n included ? toggleStatus('remove') : toggleStatus('add')\n }\n }\n\n if (\n !tableTreeProps?.checkStrictly &&\n tableTreeProps?.children &&\n isArray(row[tableTreeProps.children])\n ) {\n row[tableTreeProps.children].forEach((item: T) => {\n const childChanged = toggleRowStatus(\n statusArr,\n item,\n newVal ?? !included,\n tableTreeProps,\n selectable,\n _rowIndex + 1,\n rowKey\n )\n _rowIndex += getChildrenCount(item) + 1\n if (childChanged) {\n changed = childChanged\n }\n })\n }\n return changed\n}\n\nexport function walkTreeNode<T extends DefaultRow>(\n root: T[],\n cb: (parent: any, children: T | T[] | null, level: number) => void,\n childrenKey = 'children',\n lazyKey = 'hasChildren',\n lazy = false\n) {\n const isNil = (array: any): array is null => !(isArray(array) && array.length)\n\n function _walker(parent: any, children: T | T[], level: number) {\n cb(parent, children, level)\n children.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, level + 1)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, level + 1)\n }\n })\n }\n\n root.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, 0)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, 0)\n }\n })\n}\n\nconst getTableOverflowTooltipProps = <T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n innerText: string,\n row: T,\n column: TableColumnCtx<T> | null\n) => {\n const tooltipFormatterContent = isFunction(column?.tooltipFormatter)\n ? column.tooltipFormatter({\n row,\n column,\n cellValue: getProp(row, column.property).value,\n })\n : undefined\n\n if (isVNode(tooltipFormatterContent)) {\n return {\n slotContent: tooltipFormatterContent,\n content: null,\n strategy: 'fixed',\n ...props,\n }\n }\n\n return {\n slotContent: null,\n content: tooltipFormatterContent ?? innerText,\n strategy: 'fixed',\n ...props,\n }\n}\n\nexport let removePopper: RemovePopperFn | null = null\n\nexport function createTablePopper<T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n popperContent: string,\n row: T,\n column: TableColumnCtx<T> | null,\n trigger: HTMLElement | null,\n table: Table<DefaultRow>\n) {\n const tableOverflowTooltipProps = getTableOverflowTooltipProps(\n props,\n popperContent,\n row,\n column\n )\n const mergedProps = {\n ...tableOverflowTooltipProps,\n slotContent: undefined,\n }\n if (removePopper?.trigger === trigger) {\n const comp = removePopper.vm?.component\n merge(comp?.props, mergedProps)\n if (comp && tableOverflowTooltipProps.slotContent) {\n comp.slots.content = () => [tableOverflowTooltipProps.slotContent]\n }\n return\n }\n removePopper?.()\n const parentNode = table?.refs.tableWrapper\n const ns = parentNode?.dataset.prefix\n const vm = createVNode(\n ElTooltip,\n {\n virtualTriggering: true,\n virtualRef: trigger,\n appendTo: parentNode,\n placement: 'top',\n transition: 'none', // Default does not require transition\n offset: 0,\n hideAfter: 0,\n ...mergedProps,\n },\n tableOverflowTooltipProps.slotContent\n ? {\n content: () => tableOverflowTooltipProps.slotContent,\n }\n : undefined\n )\n vm.appContext = { ...table.appContext, ...table }\n const container = document.createElement('div')\n render(vm, container)\n vm.component!.exposed!.onOpen()\n const scrollContainer = parentNode?.querySelector(`.${ns}-scrollbar__wrap`)\n removePopper = () => {\n if (vm.component?.exposed?.onClose) {\n vm.component.exposed.onClose()\n }\n render(null, container)\n const currentRemovePopper = removePopper as RemovePopperFn\n scrollContainer?.removeEventListener('scroll', currentRemovePopper)\n currentRemovePopper.trigger = undefined\n currentRemovePopper.vm = undefined\n removePopper = null\n }\n removePopper.trigger = trigger ?? undefined\n removePopper.vm = vm\n scrollContainer?.addEventListener('scroll', removePopper)\n}\n\nfunction getCurrentColumns<T extends DefaultRow>(\n column: TableColumnCtx<T>\n): TableColumnCtx<T>[] {\n if (column.children) {\n return flatMap(column.children, getCurrentColumns)\n } else {\n return [column]\n }\n}\n\nfunction getColSpan<T extends DefaultRow>(\n colSpan: number,\n column: TableColumnCtx<T>\n) {\n return colSpan + column.colSpan\n}\n\nexport const isFixedColumn = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n let start = 0\n let after = index\n const columns = store.states.columns.value\n if (realColumns) {\n // fixed column supported in grouped header\n const curColumns = getCurrentColumns(realColumns[index])\n const preColumns = columns.slice(0, columns.indexOf(curColumns[0]))\n\n start = preColumns.reduce(getColSpan, 0)\n after = start + curColumns.reduce(getColSpan, 0) - 1\n } else {\n start = index\n }\n let fixedLayout\n switch (fixed) {\n case 'left':\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n }\n break\n case 'right':\n if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n break\n default:\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n } else if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n }\n return fixedLayout\n ? {\n direction: fixedLayout,\n start,\n after,\n }\n : {}\n}\n\nexport const getFixedColumnsClass = <T extends DefaultRow>(\n namespace: string,\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[],\n offset = 0\n) => {\n const classes: string[] = []\n const { direction, start, after } = isFixedColumn(\n index,\n fixed,\n store,\n realColumns\n )\n if (direction) {\n const isLeft = direction === 'left'\n classes.push(`${namespace}-fixed-column--${direction}`)\n if (\n isLeft &&\n after + offset === store.states.fixedLeafColumnsLength.value - 1\n ) {\n classes.push('is-last-column')\n } else if (\n !isLeft &&\n start - offset ===\n store.states.columns.value.length -\n store.states.rightFixedLeafColumnsLength.value\n ) {\n classes.push('is-first-column')\n }\n }\n return classes\n}\n\nfunction getOffset<T extends DefaultRow>(\n offset: number,\n column: TableColumnCtx<T>\n) {\n return (\n offset +\n (isNull(column.realWidth) || Number.isNaN(column.realWidth)\n ? Number(column.width)\n : column.realWidth)\n )\n}\n\nexport const getFixedColumnOffset = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n const {\n direction,\n start = 0,\n after = 0,\n } = isFixedColumn(index, fixed, store, realColumns)\n if (!direction) {\n return\n }\n const styles: CSSProperties = {}\n const isLeft = direction === 'left'\n const columns = store.states.columns.value\n if (isLeft) {\n styles.left = columns.slice(0, start).reduce(getOffset, 0)\n } else {\n styles.right = columns\n .slice(after + 1)\n .reverse()\n .reduce(getOffset, 0)\n }\n return styles\n}\n\nexport const ensurePosition = <T extends CSSProperties>(\n style: T | undefined,\n key: keyof T\n) => {\n if (!style) return\n if (!Number.isNaN(style[key])) {\n style[key] = `${style[key]}px` as any\n }\n}\n\nexport function ensureValidVNode(\n vnodes: VNodeArrayChildren\n): VNodeArrayChildren | null {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true\n if (child.type === Comment) return false\n if (\n child.type === Fragment &&\n !ensureValidVNode(child.children as VNodeArrayChildren)\n ) {\n return false\n }\n return true\n })\n ? vnodes\n : null\n}\n"],"mappings":";;;;;;;;AAsBA,IAAI,cAAc;AAClB,IAAI,eAAe;AAEnB,MAAa,iBAAiB,cAC5B,GAAG,UAAU,SAAS;AAExB,MAAa,uBAAuB,aAClC,GAAG,SAAS,UAAU;AAkCxB,MAAa,UAAU,SAAU,OAAc;CAC7C,OAAQ,MAAM,QAAwB,QAAQ,KAAK;;AAGrD,MAAa,UAAU,SACrB,OACA,SACA,SACA,YACA,QACA;CACA,IACE,CAAC,WACD,CAAC,eACA,CAAC,UAAW,QAAQ,OAAO,IAAI,CAAC,OAAO,SAExC,OAAO;CAET,IAAI,SAAS,QAAQ,EACnB,UAAU,YAAY,eAAe,KAAK;MAE1C,UAAU,WAAW,UAAU,IAAI,KAAK;CAE1C,MAAM,SAAS,aACX,OACA,SAAU,OAAU,OAAe;EACjC,IAAI,QACF,OAAO,QAAQ,YAAY,OAAO,GAAG,OAAO;GAC1C,IAAI,SAAS,GAAG,EACd,OAAO,IAAI,OAAO,GAAG;QAErB,OAAO,GAAG,OAAO,OAAO,MAAM;IAEhC;EAEJ,IAAI,YAAY;OACV,SAAS,MAAM,IAAI,YAAY,OAAO,QAAQ,MAAM;;EAE1D,OAAO,CACL,SAAS,MAAM,GAAI,UAAU,IAAI,OAAO,QAAQ,GAAG,OAAQ,MAC5D;;CAEP,MAAM,UAAU,SAAU,GAAoB,GAAoB;EAChE,IAAI,YACF,OAAO,WAAW,EAAE,OAAO,EAAE,MAAM;EAErC,KAAK,IAAI,IAAI,GAAG,MAAM,EAAE,KAAK,UAAU,GAAG,IAAI,KAAK,KAAK;GACtD,IAAI,EA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,OAAO,YAAY;CACnD,IAAI,CAAC,WACH;CAEF,MAAM,SAAwB,EAAE;CAChC,MAAM,SAAS,cAAc;CAC7B,MAAM,UAAU,MAAM,OAAO,QAAQ;CACrC,IAAI,QACF,OAAO,OAAO,QAAQ,MAAM,GAAG,MAAM,CAAC,OAAO,WAAW,EAAE;MAE1D,OAAO,QAAQ,QACZ,MAAM,QAAQ,EAAE,CAChB,SAAS,CACT,OAAO,WAAW,EAAE;CAEzB,OAAO;;AAGT,MAAa,kBACX,OACA,QACG;CACH,IAAI,CAAC,OAAO;CACZ,IAAI,CAAC,OAAO,MAAM,MAAM,KAAK,EAC3B,MAAM,OAAO,GAAG,MAAM,KAAK;;AAI/B,SAAgB,iBACd,QAC2B;CAC3B,OAAO,OAAO,MAAM,UAAU;EAC5B,IAAI,CAAC,QAAQ,MAAM,EAAE,OAAO;EAC5B,IAAI,MAAM,SAAS,SAAS,OAAO;EACnC,IACE,MAAM,SAAS,YACf,CAAC,iBAAiB,MAAM,SAA+B,EAEvD,OAAO;EAET,OAAO;GACP,GACE,SACA"}
|
|
@@ -142,8 +142,8 @@ declare const TableV2Row: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
142
142
|
__epPropKey: true;
|
|
143
143
|
};
|
|
144
144
|
}>> & Readonly<{}>, {
|
|
145
|
-
readonly estimatedRowHeight: number;
|
|
146
145
|
readonly isScrolling: boolean;
|
|
146
|
+
readonly estimatedRowHeight: number;
|
|
147
147
|
readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
|
|
148
148
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
149
149
|
type TableV2RowCellRenderParam = {
|
|
@@ -198,14 +198,14 @@ declare const TableGrid: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
198
198
|
__epPropKey: true;
|
|
199
199
|
};
|
|
200
200
|
}>> & Readonly<{}>, {
|
|
201
|
-
readonly estimatedRowHeight: number;
|
|
202
201
|
readonly useIsScrolling: boolean;
|
|
203
202
|
readonly scrollbarAlwaysOn: boolean;
|
|
203
|
+
readonly cache: number;
|
|
204
|
+
readonly estimatedRowHeight: number;
|
|
204
205
|
readonly scrollbarStartGap: number;
|
|
205
206
|
readonly scrollbarEndGap: number;
|
|
206
207
|
readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
|
|
207
208
|
readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
|
|
208
|
-
readonly cache: number;
|
|
209
209
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
210
210
|
type TableGridRowSlotParams = {
|
|
211
211
|
columns: TableV2GridProps['columns'];
|
|
@@ -323,20 +323,20 @@ declare const TableV2: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
323
323
|
__epPropKey: true;
|
|
324
324
|
};
|
|
325
325
|
}>> & Readonly<{}>, {
|
|
326
|
-
readonly fixed: boolean;
|
|
327
|
-
readonly estimatedRowHeight: number;
|
|
328
326
|
readonly useIsScrolling: boolean;
|
|
329
327
|
readonly scrollbarAlwaysOn: boolean;
|
|
328
|
+
readonly cache: number;
|
|
329
|
+
readonly fixed: boolean;
|
|
330
|
+
readonly estimatedRowHeight: number;
|
|
330
331
|
readonly rowHeight: number;
|
|
331
332
|
readonly hScrollbarSize: number;
|
|
332
333
|
readonly vScrollbarSize: number;
|
|
333
334
|
readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
|
|
334
335
|
readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
|
|
335
|
-
readonly
|
|
336
|
+
readonly sortBy: SortBy;
|
|
336
337
|
readonly footerHeight: number;
|
|
337
338
|
readonly indentSize: number;
|
|
338
339
|
readonly iconSize: number;
|
|
339
|
-
readonly sortBy: SortBy;
|
|
340
340
|
readonly sortState: SortState;
|
|
341
341
|
readonly expandedRowKeys: KeyType[];
|
|
342
342
|
readonly defaultExpandedRowKeys: KeyType[];
|
|
@@ -268,8 +268,8 @@ declare const TabNav: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
268
268
|
}>, {
|
|
269
269
|
readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
|
270
270
|
readonly stretch: boolean;
|
|
271
|
-
readonly editable: boolean;
|
|
272
271
|
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
272
|
+
readonly editable: boolean;
|
|
273
273
|
readonly panes: {
|
|
274
274
|
uid: number;
|
|
275
275
|
getVnode: () => _$vue.VNode;
|
|
@@ -24,7 +24,7 @@ declare const tabsProps: {
|
|
|
24
24
|
__epPropKey: true;
|
|
25
25
|
};
|
|
26
26
|
readonly editable: BooleanConstructor;
|
|
27
|
-
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "
|
|
27
|
+
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
|
|
28
28
|
readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
|
29
29
|
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
30
30
|
new (): any;
|
|
@@ -66,7 +66,7 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
66
66
|
__epPropKey: true;
|
|
67
67
|
};
|
|
68
68
|
readonly editable: BooleanConstructor;
|
|
69
|
-
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "
|
|
69
|
+
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
|
|
70
70
|
readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
|
71
71
|
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
72
72
|
new (): any;
|
|
@@ -102,7 +102,7 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
102
102
|
__epPropKey: true;
|
|
103
103
|
};
|
|
104
104
|
readonly editable: BooleanConstructor;
|
|
105
|
-
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "
|
|
105
|
+
readonly tabPosition: EpPropFinalized<StringConstructor, "left" | "right" | "bottom" | "top", unknown, "top", boolean>;
|
|
106
106
|
readonly beforeLeave: EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
|
107
107
|
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
108
108
|
new (): any;
|
|
@@ -134,16 +134,16 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
134
134
|
isFocusInsidePane: () => boolean | undefined;
|
|
135
135
|
}, ev: Event) => any) | undefined;
|
|
136
136
|
onTabChange?: ((name: TabPaneName) => any) | undefined;
|
|
137
|
-
onEdit?: ((paneName: TabPaneName | undefined, action: "
|
|
137
|
+
onEdit?: ((paneName: TabPaneName | undefined, action: "remove" | "add") => any) | undefined;
|
|
138
138
|
onTabRemove?: ((name: TabPaneName) => any) | undefined;
|
|
139
139
|
onTabAdd?: (() => any) | undefined;
|
|
140
140
|
}>, {
|
|
141
141
|
readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
|
142
142
|
readonly stretch: boolean;
|
|
143
|
-
readonly editable: boolean;
|
|
144
|
-
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
145
143
|
readonly closable: boolean;
|
|
146
|
-
readonly
|
|
144
|
+
readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
145
|
+
readonly editable: boolean;
|
|
146
|
+
readonly tabPosition: EpPropMergeType<StringConstructor, "left" | "right" | "bottom" | "top", unknown>;
|
|
147
147
|
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
148
148
|
readonly addable: boolean;
|
|
149
149
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -43,13 +43,13 @@ interface TagProps {
|
|
|
43
43
|
* @deprecated Removed after 3.0.0, Use `TagProps` instead.
|
|
44
44
|
*/
|
|
45
45
|
declare const tagProps: {
|
|
46
|
-
readonly type: EpPropFinalized<StringConstructor, "
|
|
46
|
+
readonly type: EpPropFinalized<StringConstructor, "info" | "primary" | "success" | "warning" | "danger", unknown, "primary", boolean>;
|
|
47
47
|
readonly closable: BooleanConstructor;
|
|
48
48
|
readonly disableTransitions: BooleanConstructor;
|
|
49
49
|
readonly hit: BooleanConstructor;
|
|
50
50
|
readonly color: StringConstructor;
|
|
51
51
|
readonly size: {
|
|
52
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
52
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", unknown>>;
|
|
53
53
|
readonly required: false;
|
|
54
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
55
|
__epPropKey: true;
|
|
@@ -30,8 +30,8 @@ interface TextProps {
|
|
|
30
30
|
* @deprecated Removed after 3.0.0, Use `TextProps` instead.
|
|
31
31
|
*/
|
|
32
32
|
declare const textProps: {
|
|
33
|
-
readonly type: EpPropFinalized<StringConstructor, "" | "
|
|
34
|
-
readonly size: EpPropFinalized<StringConstructor, "" | "default" | "
|
|
33
|
+
readonly type: EpPropFinalized<StringConstructor, "" | "info" | "primary" | "success" | "warning" | "danger", unknown, "", boolean>;
|
|
34
|
+
readonly size: EpPropFinalized<StringConstructor, "" | "default" | "large" | "small", unknown, "", boolean>;
|
|
35
35
|
readonly truncated: BooleanConstructor;
|
|
36
36
|
readonly lineClamp: {
|
|
37
37
|
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_9) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<TextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TextProps> & Readonly<{}>, {
|
|
11
|
-
type: "primary" | "success" | "info" | "warning" | "danger" | "";
|
|
12
11
|
size: ComponentSize;
|
|
12
|
+
type: "primary" | "success" | "info" | "warning" | "danger" | "";
|
|
13
13
|
tag: string;
|
|
14
14
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -60,7 +60,7 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
60
60
|
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
61
61
|
readonly unlinkPanels: BooleanConstructor;
|
|
62
62
|
readonly singlePanel: BooleanConstructor;
|
|
63
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "
|
|
63
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown, "bottom", boolean>;
|
|
64
64
|
readonly fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement$1[]) | (() => Placement$1[]) | (((new (...args: any[]) => Placement$1[]) | (() => Placement$1[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
65
65
|
readonly disabledHours: {
|
|
66
66
|
readonly type: _$vue.PropType<GetDisabledHours>;
|
|
@@ -207,7 +207,7 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
207
207
|
readonly saveOnBlur: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
208
208
|
readonly prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, "", boolean>;
|
|
209
209
|
readonly size: {
|
|
210
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
210
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
211
211
|
readonly required: false;
|
|
212
212
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
213
213
|
__epPropKey: true;
|
|
@@ -255,11 +255,11 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
255
255
|
*/
|
|
256
256
|
onPick: (date?: any, visible?: boolean) => void;
|
|
257
257
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
258
|
+
clear: (...args: any[]) => void;
|
|
258
259
|
blur: (...args: any[]) => void;
|
|
259
260
|
change: (...args: any[]) => void;
|
|
260
261
|
focus: (...args: any[]) => void;
|
|
261
262
|
keydown: (...args: any[]) => void;
|
|
262
|
-
clear: (...args: any[]) => void;
|
|
263
263
|
"update:modelValue": (...args: any[]) => void;
|
|
264
264
|
"calendar-change": (...args: any[]) => void;
|
|
265
265
|
"panel-change": (...args: any[]) => void;
|
|
@@ -290,7 +290,7 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
290
290
|
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
291
291
|
readonly unlinkPanels: BooleanConstructor;
|
|
292
292
|
readonly singlePanel: BooleanConstructor;
|
|
293
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "
|
|
293
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown, "bottom", boolean>;
|
|
294
294
|
readonly fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement$1[]) | (() => Placement$1[]) | (((new (...args: any[]) => Placement$1[]) | (() => Placement$1[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
295
295
|
readonly disabledHours: {
|
|
296
296
|
readonly type: _$vue.PropType<GetDisabledHours>;
|
|
@@ -437,7 +437,7 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
437
437
|
readonly saveOnBlur: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
438
438
|
readonly prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, "", boolean>;
|
|
439
439
|
readonly size: {
|
|
440
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
440
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
441
441
|
readonly required: false;
|
|
442
442
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
443
443
|
__epPropKey: true;
|
|
@@ -464,35 +464,36 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
464
464
|
};
|
|
465
465
|
readonly isRange: BooleanConstructor;
|
|
466
466
|
}>> & Readonly<{
|
|
467
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
467
468
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
468
469
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
469
470
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
470
471
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
471
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
472
472
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
473
473
|
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
474
474
|
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
475
475
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
476
476
|
}>, {
|
|
477
|
-
readonly type: string;
|
|
478
477
|
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
478
|
+
readonly type: string;
|
|
479
479
|
readonly placeholder: string;
|
|
480
|
+
readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
480
481
|
readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null)) | null)[], unknown, unknown>;
|
|
481
|
-
readonly
|
|
482
|
-
readonly fallbackPlacements: Placement$1[];
|
|
483
|
-
readonly placement: EpPropMergeType<(new (...args: any[]) => "left" | "top" | "auto" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "left" | "top" | "auto" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown>;
|
|
484
|
-
readonly popperOptions: Partial<Options>;
|
|
485
|
-
readonly popperStyle: _$vue.StyleValue;
|
|
482
|
+
readonly readonly: boolean;
|
|
486
483
|
readonly clearable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
487
484
|
readonly clearIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
485
|
+
readonly prefixIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
486
|
+
readonly tabindex: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
487
|
+
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
488
|
+
readonly popperStyle: _$vue.StyleValue;
|
|
489
|
+
readonly fallbackPlacements: Placement$1[];
|
|
490
|
+
readonly placement: EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown>;
|
|
491
|
+
readonly popperOptions: Partial<Options>;
|
|
492
|
+
readonly automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
488
493
|
readonly editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
489
494
|
readonly saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
490
|
-
readonly prefixIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
491
495
|
readonly rangeSeparator: string;
|
|
492
496
|
readonly shortcuts: unknown[];
|
|
493
|
-
readonly tabindex: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
494
|
-
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
495
|
-
readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
496
497
|
readonly showNow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
497
498
|
readonly showConfirm: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
498
499
|
readonly showFooter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -500,7 +501,6 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
500
501
|
readonly arrowControl: boolean;
|
|
501
502
|
readonly unlinkPanels: boolean;
|
|
502
503
|
readonly singlePanel: boolean;
|
|
503
|
-
readonly readonly: boolean;
|
|
504
504
|
readonly isRange: boolean;
|
|
505
505
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
506
506
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -41,7 +41,7 @@ declare const timePickerDefaultProps: {
|
|
|
41
41
|
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
42
42
|
readonly unlinkPanels: BooleanConstructor;
|
|
43
43
|
readonly singlePanel: BooleanConstructor;
|
|
44
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "
|
|
44
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown, "bottom", boolean>;
|
|
45
45
|
readonly fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement$1[]) | (() => Placement$1[]) | (((new (...args: any[]) => Placement$1[]) | (() => Placement$1[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
46
46
|
readonly disabledHours: {
|
|
47
47
|
readonly type: _$vue.PropType<GetDisabledHours>;
|
|
@@ -188,7 +188,7 @@ declare const timePickerDefaultProps: {
|
|
|
188
188
|
readonly saveOnBlur: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
189
189
|
readonly prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, "", boolean>;
|
|
190
190
|
readonly size: {
|
|
191
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
191
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
192
192
|
readonly required: false;
|
|
193
193
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
194
194
|
__epPropKey: true;
|
|
@@ -15,9 +15,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
15
15
|
readonly actualVisible: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
16
16
|
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
17
17
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
18
|
-
"select-range": (...args: any[]) => void;
|
|
19
18
|
pick: (...args: any[]) => void;
|
|
20
19
|
"set-picker-option": (...args: any[]) => void;
|
|
20
|
+
"select-range": (...args: any[]) => void;
|
|
21
21
|
}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
22
22
|
readonly datetimeRole: StringConstructor;
|
|
23
23
|
readonly parsedValue: {
|
|
@@ -30,9 +30,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
30
30
|
readonly actualVisible: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
31
31
|
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
32
32
|
}>> & Readonly<{
|
|
33
|
-
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
|
34
33
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
35
34
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
readonly visible: boolean;
|
|
38
38
|
readonly format: string;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
14
14
|
readonly actualVisible: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
15
15
|
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
16
16
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
17
|
-
"select-range": (...args: any[]) => void;
|
|
18
17
|
pick: (...args: any[]) => void;
|
|
19
18
|
"set-picker-option": (...args: any[]) => void;
|
|
19
|
+
"select-range": (...args: any[]) => void;
|
|
20
20
|
}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
21
21
|
readonly parsedValue: {
|
|
22
22
|
readonly type: _$vue.PropType<[dayjs.Dayjs, dayjs.Dayjs]>;
|
|
@@ -28,9 +28,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
28
28
|
readonly actualVisible: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
29
29
|
readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
30
30
|
}>> & Readonly<{
|
|
31
|
-
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
|
32
31
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
33
32
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onSelect-range"?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
readonly visible: boolean;
|
|
36
36
|
readonly format: string;
|
|
@@ -35,7 +35,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
35
35
|
validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
36
36
|
unlinkPanels: BooleanConstructor;
|
|
37
37
|
singlePanel: BooleanConstructor;
|
|
38
|
-
placement: EpPropFinalized<(new (...args: any[]) => "
|
|
38
|
+
placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown, "bottom", boolean>;
|
|
39
39
|
fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | (((new (...args: any[]) => Placement[]) | (() => Placement[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
40
40
|
disabledHours: {
|
|
41
41
|
readonly type: _$vue.PropType<GetDisabledHours>;
|
|
@@ -182,7 +182,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
182
182
|
saveOnBlur: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
183
183
|
prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, "", boolean>;
|
|
184
184
|
size: {
|
|
185
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
185
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
186
186
|
readonly required: false;
|
|
187
187
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
188
188
|
__epPropKey: true;
|
|
@@ -237,7 +237,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
237
237
|
validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
238
238
|
unlinkPanels: BooleanConstructor;
|
|
239
239
|
singlePanel: BooleanConstructor;
|
|
240
|
-
placement: EpPropFinalized<(new (...args: any[]) => "
|
|
240
|
+
placement: EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown, "bottom", boolean>;
|
|
241
241
|
fallbackPlacements: EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | (((new (...args: any[]) => Placement[]) | (() => Placement[])) | null)[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
242
242
|
disabledHours: {
|
|
243
243
|
readonly type: _$vue.PropType<GetDisabledHours>;
|
|
@@ -384,7 +384,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
384
384
|
saveOnBlur: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
385
385
|
prefixIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, "", boolean>;
|
|
386
386
|
size: {
|
|
387
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
387
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
388
388
|
readonly required: false;
|
|
389
389
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
390
390
|
__epPropKey: true;
|
|
@@ -412,25 +412,26 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
412
412
|
}>> & Readonly<{
|
|
413
413
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
414
414
|
}>, {
|
|
415
|
-
type: string;
|
|
416
415
|
disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
416
|
+
type: string;
|
|
417
417
|
placeholder: string;
|
|
418
|
+
valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
418
419
|
modelValue: EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null)) | null)[], unknown, unknown>;
|
|
419
|
-
|
|
420
|
-
fallbackPlacements: Placement[];
|
|
421
|
-
placement: EpPropMergeType<(new (...args: any[]) => "left" | "top" | "auto" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "left" | "top" | "auto" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown>;
|
|
422
|
-
popperOptions: Partial<Options>;
|
|
423
|
-
popperStyle: _$vue.StyleValue;
|
|
420
|
+
readonly: boolean;
|
|
424
421
|
clearable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
425
422
|
clearIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
423
|
+
prefixIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
424
|
+
tabindex: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
425
|
+
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
426
|
+
popperStyle: _$vue.StyleValue;
|
|
427
|
+
fallbackPlacements: Placement[];
|
|
428
|
+
placement: EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown>;
|
|
429
|
+
popperOptions: Partial<Options>;
|
|
430
|
+
automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
426
431
|
editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
427
432
|
saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
428
|
-
prefixIcon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>;
|
|
429
433
|
rangeSeparator: string;
|
|
430
434
|
shortcuts: unknown[];
|
|
431
|
-
tabindex: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
|
432
|
-
validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
433
|
-
valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
|
|
434
435
|
showNow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
435
436
|
showConfirm: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
436
437
|
showFooter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -438,7 +439,6 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
438
439
|
arrowControl: boolean;
|
|
439
440
|
unlinkPanels: boolean;
|
|
440
441
|
singlePanel: boolean;
|
|
441
|
-
readonly: boolean;
|
|
442
442
|
isRange: boolean;
|
|
443
443
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
444
444
|
//#endregion
|
|
@@ -105,7 +105,7 @@ declare const timeSelectProps: {
|
|
|
105
105
|
readonly effect: EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown, "light", boolean>;
|
|
106
106
|
readonly clearable: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
107
107
|
readonly size: {
|
|
108
|
-
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
108
|
+
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
109
109
|
readonly required: false;
|
|
110
110
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
111
|
__epPropKey: true;
|
|
@@ -14,29 +14,29 @@ declare const __VLS_export: _$vue.DefineComponent<TimeSelectProps, {
|
|
|
14
14
|
*/
|
|
15
15
|
focus: () => void;
|
|
16
16
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
17
|
+
clear: (...args: any[]) => void;
|
|
17
18
|
blur: (...args: any[]) => void;
|
|
18
19
|
change: (...args: any[]) => void;
|
|
19
20
|
focus: (...args: any[]) => void;
|
|
20
|
-
clear: (...args: any[]) => void;
|
|
21
21
|
"update:modelValue": (...args: any[]) => void;
|
|
22
22
|
}, string, _$vue.PublicProps, Readonly<TimeSelectProps> & Readonly<{
|
|
23
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
23
24
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
24
25
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
26
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
+
disabled: boolean;
|
|
29
30
|
end: string;
|
|
30
31
|
start: string;
|
|
31
|
-
|
|
32
|
+
valueOnClear: string | number | boolean | Function | null;
|
|
32
33
|
effect: PopperEffect;
|
|
33
|
-
popperClass: string;
|
|
34
|
-
popperStyle: string | _$vue.CSSProperties;
|
|
35
34
|
clearable: boolean;
|
|
36
35
|
clearIcon: IconPropType;
|
|
37
|
-
editable: boolean;
|
|
38
36
|
prefixIcon: IconPropType;
|
|
39
|
-
|
|
37
|
+
popperClass: string;
|
|
38
|
+
popperStyle: string | _$vue.CSSProperties;
|
|
39
|
+
editable: boolean;
|
|
40
40
|
format: string;
|
|
41
41
|
step: string;
|
|
42
42
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|