@element-plus/nightly 0.0.20260822 → 0.0.20260824
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 +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- 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 +2 -2
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +2 -2
- package/es/components/anchor/src/anchor.vue.d.ts +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
- package/es/components/avatar/src/avatar-group-props.d.ts +2 -2
- package/es/components/avatar/src/avatar-group.d.ts +6 -6
- package/es/components/avatar/src/avatar.d.ts +3 -3
- 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 +3 -3
- package/es/components/button/src/use-button.d.ts +2 -2
- package/es/components/calendar/src/calendar.vue.d.ts +1 -1
- package/es/components/card/src/card.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +3 -3
- package/es/components/cascader/src/cascader.d.ts +3 -3
- 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/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -4
- 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 +2 -2
- package/es/components/color-picker/src/color-picker.vue.d.ts +12 -12
- package/es/components/color-picker-panel/src/color-picker-panel.d.ts +1 -1
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +4 -4
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +16 -16
- package/es/components/date-picker/src/props.d.ts +3 -3
- 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 +3 -3
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
- package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +10 -10
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +3 -3
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +4 -4
- 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 +65 -65
- package/es/components/empty/src/empty.vue.d.ts +1 -1
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- package/es/components/form/src/form.d.ts +2 -2
- package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/image/src/image.vue.d.ts +2 -2
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +9 -9
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +9 -9
- package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
- 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 +9 -9
- package/es/components/link/src/link.vue.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +2 -2
- package/es/components/mention/src/mention.vue.d.ts +4 -4
- package/es/components/menu/src/menu.d.ts +3 -3
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/message/src/instance.d.ts +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.vue.d.ts +38 -38
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +5 -5
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- 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 +3 -3
- package/es/components/pagination/src/pagination.d.ts +6 -6
- 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 +48 -48
- package/es/components/popover/src/popover.vue.d.ts +11 -11
- package/es/components/popper/src/composables/use-content.d.ts +2 -2
- package/es/components/popper/src/content.vue.d.ts +7 -7
- 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 +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +3 -3
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +5 -5
- package/es/components/radio/src/radio.d.ts +2 -2
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- 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 +2 -2
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.vue.d.ts +1 -1
- package/es/components/row/src/row.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/es/components/segmented/index.d.ts +3 -3
- package/es/components/segmented/src/segmented.d.ts +1 -1
- package/es/components/select/src/select.d.ts +3 -3
- package/es/components/select/src/select.vue.d.ts +61 -61
- package/es/components/select/src/useSelect.d.ts +2 -2
- package/es/components/select-v2/src/defaults.d.ts +3 -3
- package/es/components/select-v2/src/select.vue.d.ts +58 -58
- 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/button.vue.d.ts +1 -1
- package/es/components/slider/src/slider.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +12 -12
- package/es/components/space/src/space.d.ts +7 -7
- package/es/components/statistic/src/statistic.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 +3 -3
- package/es/components/table/src/filter-panel.mjs +2 -0
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +58 -57
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs +7 -10
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/table/defaults.d.ts +1 -1
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +14 -14
- package/es/components/table/src/table.vue.d.ts +3 -3
- package/es/components/tabs/src/tab-nav.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +6 -6
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/text/src/text.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +18 -18
- package/es/components/time-picker/src/common/props.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +14 -14
- package/es/components/time-picker/src/utils.d.ts +1 -1
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +9 -9
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +7 -7
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +11 -11
- package/es/components/tour/src/content.d.ts +1 -1
- package/es/components/tour/src/content.vue.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 +4 -4
- package/es/components/tree/src/tree-node.vue.d.ts +13 -13
- package/es/components/tree/src/tree.vue.d.ts +14 -14
- package/es/components/tree-select/src/tree-select.vue.d.ts +22 -22
- package/es/components/tree-v2/src/composables/useTree.d.ts +4 -4
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- 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 +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/es/components/watermark/src/watermark.vue.d.ts +1 -1
- 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/size.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.d.ts +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +2 -2
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +2 -2
- package/lib/components/anchor/src/anchor.vue.d.ts +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
- package/lib/components/avatar/src/avatar-group-props.d.ts +2 -2
- package/lib/components/avatar/src/avatar-group.d.ts +6 -6
- package/lib/components/avatar/src/avatar.d.ts +3 -3
- 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 +3 -3
- package/lib/components/button/src/use-button.d.ts +2 -2
- package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
- package/lib/components/card/src/card.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
- package/lib/components/cascader/src/cascader.d.ts +3 -3
- 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/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- 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 +2 -2
- package/lib/components/color-picker/src/color-picker.vue.d.ts +12 -12
- package/lib/components/color-picker-panel/src/color-picker-panel.d.ts +1 -1
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +4 -4
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +16 -16
- package/lib/components/date-picker/src/props.d.ts +3 -3
- 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 +3 -3
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +10 -10
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +3 -3
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +4 -4
- 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 +65 -65
- package/lib/components/empty/src/empty.vue.d.ts +1 -1
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- package/lib/components/form/src/form.d.ts +2 -2
- package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/image/src/image.vue.d.ts +2 -2
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +9 -9
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +9 -9
- package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
- 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 +9 -9
- package/lib/components/link/src/link.vue.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +2 -2
- package/lib/components/mention/src/mention.vue.d.ts +4 -4
- package/lib/components/menu/src/menu.d.ts +3 -3
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/message/src/instance.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.vue.d.ts +38 -38
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +5 -5
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- 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 +3 -3
- package/lib/components/pagination/src/pagination.d.ts +6 -6
- 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 +48 -48
- package/lib/components/popover/src/popover.vue.d.ts +11 -11
- package/lib/components/popper/src/composables/use-content.d.ts +2 -2
- package/lib/components/popper/src/content.vue.d.ts +7 -7
- 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 +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +3 -3
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +5 -5
- package/lib/components/radio/src/radio.d.ts +2 -2
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- 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 +2 -2
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.vue.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +3 -3
- package/lib/components/segmented/src/segmented.d.ts +1 -1
- package/lib/components/select/src/select.d.ts +3 -3
- package/lib/components/select/src/select.vue.d.ts +61 -61
- package/lib/components/select/src/useSelect.d.ts +2 -2
- package/lib/components/select-v2/src/defaults.d.ts +3 -3
- package/lib/components/select-v2/src/select.vue.d.ts +58 -58
- 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/button.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +12 -12
- package/lib/components/space/src/space.d.ts +7 -7
- package/lib/components/statistic/src/statistic.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 +3 -3
- package/lib/components/table/src/filter-panel.js +2 -0
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +58 -57
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js +7 -10
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/table/defaults.d.ts +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +14 -14
- package/lib/components/table/src/table.vue.d.ts +3 -3
- package/lib/components/tabs/src/tab-nav.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +6 -6
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/text/src/text.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +18 -18
- package/lib/components/time-picker/src/common/props.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +14 -14
- package/lib/components/time-picker/src/utils.d.ts +1 -1
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +9 -9
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +7 -7
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +11 -11
- package/lib/components/tour/src/content.d.ts +1 -1
- package/lib/components/tour/src/content.vue.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 +4 -4
- package/lib/components/tree/src/tree-node.vue.d.ts +13 -13
- package/lib/components/tree/src/tree.vue.d.ts +14 -14
- package/lib/components/tree-select/src/tree-select.vue.d.ts +22 -22
- package/lib/components/tree-v2/src/composables/useTree.d.ts +4 -4
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- 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 +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
- 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/size.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-panel.mjs","names":[],"sources":["../../../../../../packages/components/table/src/filter-panel.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n trigger=\"click\"\n role=\"dialog\"\n teleported\n effect=\"light\"\n pure\n loop\n :popper-class=\"filterClassName\"\n persistent\n :append-to=\"appendTo\"\n @show=\"handleShowTooltip\"\n @hide=\"handleHideTooltip\"\n >\n <template #content>\n <div\n v-if=\"multiple\"\n ref=\"rootRef\"\n tabindex=\"-1\"\n :class=\"ns.e('multiple')\"\n >\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :value=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"ns.is('disabled', filteredValue.length === 0)\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul\n v-else\n ref=\"rootRef\"\n tabindex=\"-1\"\n role=\"radiogroup\"\n :class=\"ns.e('list')\"\n @keydown=\"handleKeydown\"\n >\n <li\n role=\"radio\"\n :class=\"[\n ns.e('list-item'),\n ns.is('active', isPropAbsent(filterValue)),\n ]\"\n :tabindex=\"checkedIndex === 0 ? 0 : -1\"\n :aria-checked=\"isPropAbsent(filterValue)\"\n @click=\"handleSelect(null, 0)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"(filter, idx) in filters\"\n :key=\"filter.value\"\n role=\"radio\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :tabindex=\"checkedIndex === idx + 1 ? 0 : -1\"\n :aria-checked=\"isActive(filter)\"\n @click=\"handleSelect(filter.value, idx + 1)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <button\n type=\"button\"\n :class=\"`${ns.namespace.value}-table__column-filter-trigger`\"\n :aria-label=\"t('el.table.filterLabel', { column: column?.label || '' })\"\n >\n <el-icon>\n <slot name=\"filter-icon\">\n <arrow-up v-if=\"column?.filterOpened\" />\n <arrow-down v-else />\n </slot>\n </el-icon>\n </button>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, ref } from 'vue'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n ElTooltip,\n useTooltipContentProps,\n} from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { getEventCode, isPropAbsent } from '@element-plus/utils'\n\nimport type { DefaultRow } from './table/defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { PropType, WritableComputedRef } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<DefaultRow>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<DefaultRow>>,\n },\n upDataColumn: {\n type: Function,\n },\n appendTo: useTooltipContentProps.appendTo,\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (props.column && !parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n\n const tooltipRef = ref<TooltipInstance | null>(null)\n const rootRef = ref<HTMLElement | null>(null)\n const checkedIndex = ref(0)\n\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterClassName = computed(() => {\n if (props.column && props.column.filterClassName) {\n return `${ns.b()} ${props.column.filterClassName}`\n }\n return ns.b()\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value?: string | null) => {\n if (props.column) {\n const arr = [...(props.column.filteredValue ?? [])]\n if (!isPropAbsent(value)) {\n arr.splice(0, 1, value)\n } else {\n arr.splice(0, 1)\n }\n props.upDataColumn?.('filteredValue', arr)\n }\n },\n })\n const filteredValue: WritableComputedRef<string[]> = computed({\n get() {\n if (props.column) {\n return props.column.filteredValue || []\n }\n return []\n },\n set(value: string[]) {\n if (props.column) {\n props.upDataColumn?.('filteredValue', value)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter: { value: string; text: string }) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipRef.value?.onClose()\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue: string | null, index: number) => {\n filterValue.value = _filterValue!\n checkedIndex.value = index\n if (!isPropAbsent(_filterValue)) {\n confirmFilter(filteredValue.value)\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.store?.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store?.updateAllSelected()\n }\n const handleShowTooltip = () => {\n rootRef.value?.focus()\n !multiple.value && initCheckedIndex()\n if (props.column) {\n props.upDataColumn?.('filterOpened', true)\n }\n }\n const handleHideTooltip = () => {\n if (props.column) {\n props.upDataColumn?.('filterOpened', false)\n }\n }\n\n const initCheckedIndex = () => {\n if (isPropAbsent(filterValue)) {\n checkedIndex.value = 0\n return\n }\n const idx = (filters.value || []).findIndex((item) => {\n return item.value === filterValue.value\n })\n checkedIndex.value = idx >= 0 ? idx + 1 : 0\n }\n\n const handleKeydown = (event: KeyboardEvent) => {\n const code = getEventCode(event)\n const len = (filters.value ? filters.value.length : 0) + 1\n let index = checkedIndex.value\n let isPreventDefault = true\n\n switch (code) {\n case EVENT_CODE.down:\n case EVENT_CODE.right:\n index = (index + 1) % len\n break\n case EVENT_CODE.up:\n case EVENT_CODE.left:\n index = (index - 1 + len) % len\n break\n case EVENT_CODE.tab:\n hidden()\n isPreventDefault = false\n break\n case EVENT_CODE.enter:\n case EVENT_CODE.space:\n if (index === 0) {\n handleSelect(null, 0)\n } else {\n const item = (filters.value || [])[index - 1]\n item.value && handleSelect(item.value, index)\n }\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n checkedIndex.value = index\n rootRef.value\n ?.querySelector<HTMLElement>(\n `.${ns.e('list-item')}:nth-child(${index + 1})`\n )\n ?.focus()\n }\n\n return {\n multiple,\n filterClassName,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isPropAbsent,\n isActive,\n t,\n ns,\n tooltipRef,\n rootRef,\n checkedIndex,\n handleShowTooltip,\n handleHideTooltip,\n handleKeydown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;CACE,OAAA,WAAA,EAAA,YAqGa,uBAAA;EApGX,KAAI;EACH,QAAQ;EACR,WAAW,KAAA;EACX,cAAY;EACb,SAAQ;EACR,MAAK;EACL,YAAA;EACA,QAAO;EACP,MAAA;EACA,MAAA;EACC,gBAAc,KAAA;EACf,YAAA;EACC,aAAW,KAAA;EACX,QAAM,KAAA;EACN,QAAM,KAAA;;EAEI,SAAO,cAoCV,CAlCE,KAAA,YADR,WAAA,EAAA,mBAmCM,OAAA;;GAjCJ,KAAI;GACJ,UAAS;GACR,OAAK,eAAE,KAAA,GAAG,EAAC,WAAA,CAAA;MAEZ,mBAeM,OAAA,EAfA,OAAK,eAAE,KAAA,GAAG,EAAC,UAAA,CAAA,EAAA,EAAA,CACf,YAae,yBAAA,EAbA,cAAY,KAAA,GAAG,EAAC,OAAA,EAAA,EAAA;GAC7B,SAAA,cAWoB,CAXpB,YAWoB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":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n trigger=\"click\"\n role=\"dialog\"\n teleported\n effect=\"light\"\n pure\n loop\n :popper-class=\"filterClassName\"\n persistent\n :append-to=\"appendTo\"\n @before-show=\"handleBeforeShowTooltip\"\n @show=\"handleShowTooltip\"\n @hide=\"handleHideTooltip\"\n >\n <template #content>\n <div\n v-if=\"multiple\"\n ref=\"rootRef\"\n tabindex=\"-1\"\n :class=\"ns.e('multiple')\"\n >\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :value=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"ns.is('disabled', filteredValue.length === 0)\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul\n v-else\n ref=\"rootRef\"\n tabindex=\"-1\"\n role=\"radiogroup\"\n :class=\"ns.e('list')\"\n @keydown=\"handleKeydown\"\n >\n <li\n role=\"radio\"\n :class=\"[\n ns.e('list-item'),\n ns.is('active', isPropAbsent(filterValue)),\n ]\"\n :tabindex=\"checkedIndex === 0 ? 0 : -1\"\n :aria-checked=\"isPropAbsent(filterValue)\"\n @click=\"handleSelect(null, 0)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"(filter, idx) in filters\"\n :key=\"filter.value\"\n role=\"radio\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :tabindex=\"checkedIndex === idx + 1 ? 0 : -1\"\n :aria-checked=\"isActive(filter)\"\n @click=\"handleSelect(filter.value, idx + 1)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <button\n type=\"button\"\n :class=\"`${ns.namespace.value}-table__column-filter-trigger`\"\n :aria-label=\"t('el.table.filterLabel', { column: column?.label || '' })\"\n >\n <el-icon>\n <slot name=\"filter-icon\">\n <arrow-up v-if=\"column?.filterOpened\" />\n <arrow-down v-else />\n </slot>\n </el-icon>\n </button>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, ref } from 'vue'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n ElTooltip,\n useTooltipContentProps,\n} from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { getEventCode, isPropAbsent } from '@element-plus/utils'\n\nimport type { DefaultRow } from './table/defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { PropType } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<DefaultRow>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<DefaultRow>>,\n },\n upDataColumn: {\n type: Function,\n },\n appendTo: useTooltipContentProps.appendTo,\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (props.column && !parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n\n const tooltipRef = ref<TooltipInstance | null>(null)\n const rootRef = ref<HTMLElement | null>(null)\n const checkedIndex = ref(0)\n const filteredValue = ref<string[]>([])\n\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterClassName = computed(() => {\n if (props.column && props.column.filterClassName) {\n return `${ns.b()} ${props.column.filterClassName}`\n }\n return ns.b()\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value?: string | null) => {\n if (props.column) {\n const arr = [...(props.column.filteredValue ?? [])]\n if (!isPropAbsent(value)) {\n arr.splice(0, 1, value)\n } else {\n arr.splice(0, 1)\n }\n props.upDataColumn?.('filteredValue', arr)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter: { value: string; text: string }) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipRef.value?.onClose()\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue: string | null, index: number) => {\n filterValue.value = _filterValue!\n checkedIndex.value = index\n if (!isPropAbsent(_filterValue)) {\n confirmFilter([_filterValue])\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.upDataColumn?.('filteredValue', filteredValue)\n props.store?.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store?.updateAllSelected()\n }\n const handleBeforeShowTooltip = () => {\n filteredValue.value = [...(props.column?.filteredValue || [])]\n }\n const handleShowTooltip = () => {\n rootRef.value?.focus()\n !multiple.value && initCheckedIndex()\n if (props.column) {\n props.upDataColumn?.('filterOpened', true)\n }\n }\n const handleHideTooltip = () => {\n if (props.column) {\n props.upDataColumn?.('filterOpened', false)\n }\n }\n\n const initCheckedIndex = () => {\n if (isPropAbsent(filterValue)) {\n checkedIndex.value = 0\n return\n }\n const idx = (filters.value || []).findIndex((item) => {\n return item.value === filterValue.value\n })\n checkedIndex.value = idx >= 0 ? idx + 1 : 0\n }\n\n const handleKeydown = (event: KeyboardEvent) => {\n const code = getEventCode(event)\n const len = (filters.value ? filters.value.length : 0) + 1\n let index = checkedIndex.value\n let isPreventDefault = true\n\n switch (code) {\n case EVENT_CODE.down:\n case EVENT_CODE.right:\n index = (index + 1) % len\n break\n case EVENT_CODE.up:\n case EVENT_CODE.left:\n index = (index - 1 + len) % len\n break\n case EVENT_CODE.tab:\n hidden()\n isPreventDefault = false\n break\n case EVENT_CODE.enter:\n case EVENT_CODE.space:\n if (index === 0) {\n handleSelect(null, 0)\n } else {\n const item = (filters.value || [])[index - 1]\n item.value && handleSelect(item.value, index)\n }\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n checkedIndex.value = index\n rootRef.value\n ?.querySelector<HTMLElement>(\n `.${ns.e('list-item')}:nth-child(${index + 1})`\n )\n ?.focus()\n }\n\n return {\n multiple,\n filterClassName,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isPropAbsent,\n isActive,\n t,\n ns,\n tooltipRef,\n rootRef,\n checkedIndex,\n handleBeforeShowTooltip,\n handleShowTooltip,\n handleHideTooltip,\n handleKeydown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;CACE,OAAA,WAAA,EAAA,YAsGa,uBAAA;EArGX,KAAI;EACH,QAAQ;EACR,WAAW,KAAA;EACX,cAAY;EACb,SAAQ;EACR,MAAK;EACL,YAAA;EACA,QAAO;EACP,MAAA;EACA,MAAA;EACC,gBAAc,KAAA;EACf,YAAA;EACC,aAAW,KAAA;EACX,cAAa,KAAA;EACb,QAAM,KAAA;EACN,QAAM,KAAA;;EAEI,SAAO,cAoCV,CAlCE,KAAA,YADR,WAAA,E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A,QAAA,eAAA,EAAA,QAAA,CAFW,KAAA,QAAQ,gBAAxB,WAAA,EAAA,YAAwC,qBAAA,EAAA,KAAA,GAAA,CAAA,KACxC,WAAA,EAAA,YAAqB,uBAAA,EAAA,KAAA,GAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
|
|
@@ -17,7 +17,7 @@ import { DefaultRow } from "./table/defaults.js";
|
|
|
17
17
|
import { IconProps } from "../../icon/src/icon.js";
|
|
18
18
|
import { ScrollbarDirection, ScrollbarProps } from "../../scrollbar/src/scrollbar.js";
|
|
19
19
|
import * as _$vue from "vue";
|
|
20
|
-
import { PropType
|
|
20
|
+
import { PropType } from "vue";
|
|
21
21
|
|
|
22
22
|
//#region ../../packages/components/table/src/filter-panel.vue.d.ts
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -44,8 +44,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
44
44
|
}>, {
|
|
45
45
|
multiple: _$vue.ComputedRef<boolean>;
|
|
46
46
|
filterClassName: _$vue.ComputedRef<string>;
|
|
47
|
-
filteredValue:
|
|
48
|
-
filterValue: WritableComputedRef<string, string | null | undefined>;
|
|
47
|
+
filteredValue: _$vue.Ref<string[], string[]>;
|
|
48
|
+
filterValue: _$vue.WritableComputedRef<string, string | null | undefined>;
|
|
49
49
|
filters: _$vue.ComputedRef<Filters | undefined>;
|
|
50
50
|
handleConfirm: () => void;
|
|
51
51
|
handleReset: () => void;
|
|
@@ -77,6 +77,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
77
77
|
tooltipRef: _$vue.Ref<TooltipInstance | null, TooltipInstance | null>;
|
|
78
78
|
rootRef: _$vue.Ref<HTMLElement | null, HTMLElement | null>;
|
|
79
79
|
checkedIndex: _$vue.Ref<number, number>;
|
|
80
|
+
handleBeforeShowTooltip: () => void;
|
|
80
81
|
handleShowTooltip: () => void;
|
|
81
82
|
handleHideTooltip: () => void;
|
|
82
83
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
@@ -111,13 +112,13 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
111
112
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
112
113
|
change: (val: CheckboxValueType) => void;
|
|
113
114
|
}, _$vue.PublicProps, {
|
|
114
|
-
label: string | boolean | number | object;
|
|
115
|
-
name: string;
|
|
116
|
-
disabled: boolean;
|
|
117
|
-
id: string;
|
|
118
115
|
modelValue: number | string | boolean;
|
|
116
|
+
id: string;
|
|
117
|
+
disabled: boolean;
|
|
119
118
|
validateEvent: boolean;
|
|
119
|
+
name: string;
|
|
120
120
|
value: string | boolean | number | object;
|
|
121
|
+
label: string | boolean | number | object;
|
|
121
122
|
trueValue: string | number;
|
|
122
123
|
falseValue: string | number;
|
|
123
124
|
trueLabel: string | number;
|
|
@@ -133,13 +134,13 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
133
134
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
134
135
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
135
136
|
}>, {}, {}, {}, {}, {
|
|
136
|
-
label: string | boolean | number | object;
|
|
137
|
-
name: string;
|
|
138
|
-
disabled: boolean;
|
|
139
|
-
id: string;
|
|
140
137
|
modelValue: number | string | boolean;
|
|
138
|
+
id: string;
|
|
139
|
+
disabled: boolean;
|
|
141
140
|
validateEvent: boolean;
|
|
141
|
+
name: string;
|
|
142
142
|
value: string | boolean | number | object;
|
|
143
|
+
label: string | boolean | number | object;
|
|
143
144
|
trueValue: string | number;
|
|
144
145
|
falseValue: string | number;
|
|
145
146
|
trueLabel: string | number;
|
|
@@ -155,13 +156,13 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
155
156
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
156
157
|
change: (val: CheckboxValueType) => void;
|
|
157
158
|
}, string, {
|
|
158
|
-
label: string | boolean | number | object;
|
|
159
|
-
name: string;
|
|
160
|
-
disabled: boolean;
|
|
161
|
-
id: string;
|
|
162
159
|
modelValue: number | string | boolean;
|
|
160
|
+
id: string;
|
|
161
|
+
disabled: boolean;
|
|
163
162
|
validateEvent: boolean;
|
|
163
|
+
name: string;
|
|
164
164
|
value: string | boolean | number | object;
|
|
165
|
+
label: string | boolean | number | object;
|
|
165
166
|
trueValue: string | number;
|
|
166
167
|
falseValue: string | number;
|
|
167
168
|
trueLabel: string | number;
|
|
@@ -185,7 +186,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
185
186
|
readonly falseLabel?: string | number | (() => string | number) | undefined;
|
|
186
187
|
readonly id?: string | (() => string) | undefined;
|
|
187
188
|
readonly border?: boolean | (() => boolean) | undefined;
|
|
188
|
-
readonly size?: "" | "
|
|
189
|
+
readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
|
|
189
190
|
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
190
191
|
readonly validateEvent?: boolean | (() => boolean) | undefined;
|
|
191
192
|
readonly ariaLabel?: string | (() => string) | undefined;
|
|
@@ -203,15 +204,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
203
204
|
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
204
205
|
change: (val: CheckboxValueType[]) => void;
|
|
205
206
|
}, _$vue.PublicProps, {
|
|
207
|
+
modelValue: CheckboxGroupValueType;
|
|
206
208
|
disabled: boolean;
|
|
209
|
+
validateEvent: boolean;
|
|
207
210
|
props: {
|
|
208
211
|
value?: string;
|
|
209
212
|
label?: string;
|
|
210
213
|
disabled?: string;
|
|
211
214
|
};
|
|
212
215
|
type: "checkbox" | "button";
|
|
213
|
-
modelValue: CheckboxGroupValueType;
|
|
214
|
-
validateEvent: boolean;
|
|
215
216
|
tag: string;
|
|
216
217
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
217
218
|
P: {};
|
|
@@ -224,15 +225,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
224
225
|
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
225
226
|
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
226
227
|
}>, {}, {}, {}, {}, {
|
|
228
|
+
modelValue: CheckboxGroupValueType;
|
|
227
229
|
disabled: boolean;
|
|
230
|
+
validateEvent: boolean;
|
|
228
231
|
props: {
|
|
229
232
|
value?: string;
|
|
230
233
|
label?: string;
|
|
231
234
|
disabled?: string;
|
|
232
235
|
};
|
|
233
236
|
type: "checkbox" | "button";
|
|
234
|
-
modelValue: CheckboxGroupValueType;
|
|
235
|
-
validateEvent: boolean;
|
|
236
237
|
tag: string;
|
|
237
238
|
}>;
|
|
238
239
|
__isFragment?: never;
|
|
@@ -245,15 +246,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
245
246
|
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
246
247
|
change: (val: CheckboxValueType[]) => void;
|
|
247
248
|
}, string, {
|
|
249
|
+
modelValue: CheckboxGroupValueType;
|
|
248
250
|
disabled: boolean;
|
|
251
|
+
validateEvent: boolean;
|
|
249
252
|
props: {
|
|
250
253
|
value?: string;
|
|
251
254
|
label?: string;
|
|
252
255
|
disabled?: string;
|
|
253
256
|
};
|
|
254
257
|
type: "checkbox" | "button";
|
|
255
|
-
modelValue: CheckboxGroupValueType;
|
|
256
|
-
validateEvent: boolean;
|
|
257
258
|
tag: string;
|
|
258
259
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
259
260
|
$slots: {
|
|
@@ -284,8 +285,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
284
285
|
}) => void;
|
|
285
286
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
286
287
|
}, _$vue.PublicProps, {
|
|
287
|
-
height: number | string;
|
|
288
288
|
tabindex: number | string;
|
|
289
|
+
height: number | string;
|
|
289
290
|
maxHeight: number | string;
|
|
290
291
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
291
292
|
distance: number;
|
|
@@ -318,8 +319,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
318
319
|
setScrollLeft: (value: number) => void;
|
|
319
320
|
handleScroll: () => void;
|
|
320
321
|
}, {}, {}, {}, {
|
|
321
|
-
height: number | string;
|
|
322
322
|
tabindex: number | string;
|
|
323
|
+
height: number | string;
|
|
323
324
|
maxHeight: number | string;
|
|
324
325
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
325
326
|
distance: number;
|
|
@@ -355,8 +356,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
355
356
|
}) => void;
|
|
356
357
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
357
358
|
}, string, {
|
|
358
|
-
height: number | string;
|
|
359
359
|
tabindex: number | string;
|
|
360
|
+
height: number | string;
|
|
360
361
|
maxHeight: number | string;
|
|
361
362
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
362
363
|
distance: number;
|
|
@@ -374,8 +375,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
374
375
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<UseTooltipProps> & Readonly<{
|
|
375
376
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
376
377
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
377
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
378
378
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
379
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
379
380
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
380
381
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
381
382
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -390,38 +391,38 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
390
391
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
391
392
|
show: (...args: any[]) => void;
|
|
392
393
|
hide: (...args: any[]) => void;
|
|
393
|
-
close: (...args: any[]) => void;
|
|
394
394
|
open: (...args: any[]) => void;
|
|
395
|
+
close: (...args: any[]) => void;
|
|
395
396
|
"update:visible": (...args: any[]) => void;
|
|
396
397
|
"before-show": (...args: any[]) => void;
|
|
397
398
|
"before-hide": (...args: any[]) => void;
|
|
398
399
|
}, _$vue.PublicProps, {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
placement: Placement;
|
|
402
|
-
offset: number;
|
|
400
|
+
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
401
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
403
402
|
teleported: boolean;
|
|
404
|
-
effect: PopperEffect;
|
|
405
403
|
visible: boolean | null;
|
|
404
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
405
|
+
effect: PopperEffect;
|
|
406
406
|
enterable: boolean;
|
|
407
407
|
pure: boolean;
|
|
408
408
|
focusOnShow: boolean;
|
|
409
409
|
trapping: boolean;
|
|
410
|
-
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
411
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
412
410
|
stopPopperMouseEvent: boolean;
|
|
413
411
|
virtualTriggering: boolean;
|
|
414
412
|
loop: boolean;
|
|
415
413
|
boundariesPadding: number;
|
|
416
414
|
gpuAcceleration: boolean;
|
|
415
|
+
offset: number;
|
|
416
|
+
placement: Placement;
|
|
417
417
|
popperOptions: Partial<Options>;
|
|
418
418
|
strategy: "fixed" | "absolute";
|
|
419
419
|
arrowOffset: number;
|
|
420
|
-
|
|
421
|
-
role: typeof roleTypes[number];
|
|
420
|
+
content: string;
|
|
422
421
|
showAfter: number;
|
|
423
422
|
hideAfter: number;
|
|
424
423
|
autoClose: number;
|
|
424
|
+
showArrow: boolean;
|
|
425
|
+
role: typeof roleTypes[number];
|
|
425
426
|
trigger: Arrayable<TooltipTriggerType>;
|
|
426
427
|
triggerKeys: string[];
|
|
427
428
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
@@ -434,8 +435,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
434
435
|
}, Readonly<UseTooltipProps> & Readonly<{
|
|
435
436
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
436
437
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
437
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
438
438
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
439
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
439
440
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
440
441
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
441
442
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -448,32 +449,32 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
448
449
|
onClose: (event?: Event, delay?: number) => void;
|
|
449
450
|
hide: (event?: Event) => void;
|
|
450
451
|
}, {}, {}, {}, {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
placement: Placement;
|
|
454
|
-
offset: number;
|
|
452
|
+
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
453
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
455
454
|
teleported: boolean;
|
|
456
|
-
effect: PopperEffect;
|
|
457
455
|
visible: boolean | null;
|
|
456
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
457
|
+
effect: PopperEffect;
|
|
458
458
|
enterable: boolean;
|
|
459
459
|
pure: boolean;
|
|
460
460
|
focusOnShow: boolean;
|
|
461
461
|
trapping: boolean;
|
|
462
|
-
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
463
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
464
462
|
stopPopperMouseEvent: boolean;
|
|
465
463
|
virtualTriggering: boolean;
|
|
466
464
|
loop: boolean;
|
|
467
465
|
boundariesPadding: number;
|
|
468
466
|
gpuAcceleration: boolean;
|
|
467
|
+
offset: number;
|
|
468
|
+
placement: Placement;
|
|
469
469
|
popperOptions: Partial<Options>;
|
|
470
470
|
strategy: "fixed" | "absolute";
|
|
471
471
|
arrowOffset: number;
|
|
472
|
-
|
|
473
|
-
role: typeof roleTypes[number];
|
|
472
|
+
content: string;
|
|
474
473
|
showAfter: number;
|
|
475
474
|
hideAfter: number;
|
|
476
475
|
autoClose: number;
|
|
476
|
+
showArrow: boolean;
|
|
477
|
+
role: typeof roleTypes[number];
|
|
477
478
|
trigger: Arrayable<TooltipTriggerType>;
|
|
478
479
|
triggerKeys: string[];
|
|
479
480
|
}>;
|
|
@@ -483,8 +484,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
483
484
|
} & _$vue.ComponentOptionsBase<Readonly<UseTooltipProps> & Readonly<{
|
|
484
485
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
485
486
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
486
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
487
487
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
488
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
488
489
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
489
490
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
490
491
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -499,38 +500,38 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
499
500
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
500
501
|
show: (...args: any[]) => void;
|
|
501
502
|
hide: (...args: any[]) => void;
|
|
502
|
-
close: (...args: any[]) => void;
|
|
503
503
|
open: (...args: any[]) => void;
|
|
504
|
+
close: (...args: any[]) => void;
|
|
504
505
|
"update:visible": (...args: any[]) => void;
|
|
505
506
|
"before-show": (...args: any[]) => void;
|
|
506
507
|
"before-hide": (...args: any[]) => void;
|
|
507
508
|
}, string, {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
placement: Placement;
|
|
511
|
-
offset: number;
|
|
509
|
+
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
510
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
512
511
|
teleported: boolean;
|
|
513
|
-
effect: PopperEffect;
|
|
514
512
|
visible: boolean | null;
|
|
513
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
514
|
+
effect: PopperEffect;
|
|
515
515
|
enterable: boolean;
|
|
516
516
|
pure: boolean;
|
|
517
517
|
focusOnShow: boolean;
|
|
518
518
|
trapping: boolean;
|
|
519
|
-
popperClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
520
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
521
519
|
stopPopperMouseEvent: boolean;
|
|
522
520
|
virtualTriggering: boolean;
|
|
523
521
|
loop: boolean;
|
|
524
522
|
boundariesPadding: number;
|
|
525
523
|
gpuAcceleration: boolean;
|
|
524
|
+
offset: number;
|
|
525
|
+
placement: Placement;
|
|
526
526
|
popperOptions: Partial<Options>;
|
|
527
527
|
strategy: "fixed" | "absolute";
|
|
528
528
|
arrowOffset: number;
|
|
529
|
-
|
|
530
|
-
role: typeof roleTypes[number];
|
|
529
|
+
content: string;
|
|
531
530
|
showAfter: number;
|
|
532
531
|
hideAfter: number;
|
|
533
532
|
autoClose: number;
|
|
533
|
+
showArrow: boolean;
|
|
534
|
+
role: typeof roleTypes[number];
|
|
534
535
|
trigger: Arrayable<TooltipTriggerType>;
|
|
535
536
|
triggerKeys: string[];
|
|
536
537
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
@@ -41,6 +41,7 @@ var filter_panel_vue_vue_type_script_lang_default = defineComponent({
|
|
|
41
41
|
const tooltipRef = ref(null);
|
|
42
42
|
const rootRef = ref(null);
|
|
43
43
|
const checkedIndex = ref(0);
|
|
44
|
+
const filteredValue = ref([]);
|
|
44
45
|
const filters = computed(() => {
|
|
45
46
|
return props.column && props.column.filters;
|
|
46
47
|
});
|
|
@@ -59,15 +60,6 @@ var filter_panel_vue_vue_type_script_lang_default = defineComponent({
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
});
|
|
62
|
-
const filteredValue = computed({
|
|
63
|
-
get() {
|
|
64
|
-
if (props.column) return props.column.filteredValue || [];
|
|
65
|
-
return [];
|
|
66
|
-
},
|
|
67
|
-
set(value) {
|
|
68
|
-
if (props.column) props.upDataColumn?.("filteredValue", value);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
63
|
const multiple = computed(() => {
|
|
72
64
|
if (props.column) return props.column.filterMultiple;
|
|
73
65
|
return true;
|
|
@@ -90,17 +82,21 @@ var filter_panel_vue_vue_type_script_lang_default = defineComponent({
|
|
|
90
82
|
const handleSelect = (_filterValue, index) => {
|
|
91
83
|
filterValue.value = _filterValue;
|
|
92
84
|
checkedIndex.value = index;
|
|
93
|
-
if (!isPropAbsent(_filterValue)) confirmFilter(
|
|
85
|
+
if (!isPropAbsent(_filterValue)) confirmFilter([_filterValue]);
|
|
94
86
|
else confirmFilter([]);
|
|
95
87
|
hidden();
|
|
96
88
|
};
|
|
97
89
|
const confirmFilter = (filteredValue) => {
|
|
90
|
+
props.upDataColumn?.("filteredValue", filteredValue);
|
|
98
91
|
props.store?.commit("filterChange", {
|
|
99
92
|
column: props.column,
|
|
100
93
|
values: filteredValue
|
|
101
94
|
});
|
|
102
95
|
props.store?.updateAllSelected();
|
|
103
96
|
};
|
|
97
|
+
const handleBeforeShowTooltip = () => {
|
|
98
|
+
filteredValue.value = [...props.column?.filteredValue || []];
|
|
99
|
+
};
|
|
104
100
|
const handleShowTooltip = () => {
|
|
105
101
|
rootRef.value?.focus();
|
|
106
102
|
!multiple.value && initCheckedIndex();
|
|
@@ -169,6 +165,7 @@ var filter_panel_vue_vue_type_script_lang_default = defineComponent({
|
|
|
169
165
|
tooltipRef,
|
|
170
166
|
rootRef,
|
|
171
167
|
checkedIndex,
|
|
168
|
+
handleBeforeShowTooltip,
|
|
172
169
|
handleShowTooltip,
|
|
173
170
|
handleHideTooltip,
|
|
174
171
|
handleKeydown
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-panel.vue_vue_type_script_lang.mjs","names":[],"sources":["../../../../../../packages/components/table/src/filter-panel.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n trigger=\"click\"\n role=\"dialog\"\n teleported\n effect=\"light\"\n pure\n loop\n :popper-class=\"filterClassName\"\n persistent\n :append-to=\"appendTo\"\n @show=\"handleShowTooltip\"\n @hide=\"handleHideTooltip\"\n >\n <template #content>\n <div\n v-if=\"multiple\"\n ref=\"rootRef\"\n tabindex=\"-1\"\n :class=\"ns.e('multiple')\"\n >\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :value=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"ns.is('disabled', filteredValue.length === 0)\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul\n v-else\n ref=\"rootRef\"\n tabindex=\"-1\"\n role=\"radiogroup\"\n :class=\"ns.e('list')\"\n @keydown=\"handleKeydown\"\n >\n <li\n role=\"radio\"\n :class=\"[\n ns.e('list-item'),\n ns.is('active', isPropAbsent(filterValue)),\n ]\"\n :tabindex=\"checkedIndex === 0 ? 0 : -1\"\n :aria-checked=\"isPropAbsent(filterValue)\"\n @click=\"handleSelect(null, 0)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"(filter, idx) in filters\"\n :key=\"filter.value\"\n role=\"radio\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :tabindex=\"checkedIndex === idx + 1 ? 0 : -1\"\n :aria-checked=\"isActive(filter)\"\n @click=\"handleSelect(filter.value, idx + 1)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <button\n type=\"button\"\n :class=\"`${ns.namespace.value}-table__column-filter-trigger`\"\n :aria-label=\"t('el.table.filterLabel', { column: column?.label || '' })\"\n >\n <el-icon>\n <slot name=\"filter-icon\">\n <arrow-up v-if=\"column?.filterOpened\" />\n <arrow-down v-else />\n </slot>\n </el-icon>\n </button>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, ref } from 'vue'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n ElTooltip,\n useTooltipContentProps,\n} from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { getEventCode, isPropAbsent } from '@element-plus/utils'\n\nimport type { DefaultRow } from './table/defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { PropType, WritableComputedRef } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<DefaultRow>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<DefaultRow>>,\n },\n upDataColumn: {\n type: Function,\n },\n appendTo: useTooltipContentProps.appendTo,\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (props.column && !parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n\n const tooltipRef = ref<TooltipInstance | null>(null)\n const rootRef = ref<HTMLElement | null>(null)\n const checkedIndex = ref(0)\n\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterClassName = computed(() => {\n if (props.column && props.column.filterClassName) {\n return `${ns.b()} ${props.column.filterClassName}`\n }\n return ns.b()\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value?: string | null) => {\n if (props.column) {\n const arr = [...(props.column.filteredValue ?? [])]\n if (!isPropAbsent(value)) {\n arr.splice(0, 1, value)\n } else {\n arr.splice(0, 1)\n }\n props.upDataColumn?.('filteredValue', arr)\n }\n },\n })\n const filteredValue: WritableComputedRef<string[]> = computed({\n get() {\n if (props.column) {\n return props.column.filteredValue || []\n }\n return []\n },\n set(value: string[]) {\n if (props.column) {\n props.upDataColumn?.('filteredValue', value)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter: { value: string; text: string }) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipRef.value?.onClose()\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue: string | null, index: number) => {\n filterValue.value = _filterValue!\n checkedIndex.value = index\n if (!isPropAbsent(_filterValue)) {\n confirmFilter(filteredValue.value)\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.store?.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store?.updateAllSelected()\n }\n const handleShowTooltip = () => {\n rootRef.value?.focus()\n !multiple.value && initCheckedIndex()\n if (props.column) {\n props.upDataColumn?.('filterOpened', true)\n }\n }\n const handleHideTooltip = () => {\n if (props.column) {\n props.upDataColumn?.('filterOpened', false)\n }\n }\n\n const initCheckedIndex = () => {\n if (isPropAbsent(filterValue)) {\n checkedIndex.value = 0\n return\n }\n const idx = (filters.value || []).findIndex((item) => {\n return item.value === filterValue.value\n })\n checkedIndex.value = idx >= 0 ? idx + 1 : 0\n }\n\n const handleKeydown = (event: KeyboardEvent) => {\n const code = getEventCode(event)\n const len = (filters.value ? filters.value.length : 0) + 1\n let index = checkedIndex.value\n let isPreventDefault = true\n\n switch (code) {\n case EVENT_CODE.down:\n case EVENT_CODE.right:\n index = (index + 1) % len\n break\n case EVENT_CODE.up:\n case EVENT_CODE.left:\n index = (index - 1 + len) % len\n break\n case EVENT_CODE.tab:\n hidden()\n isPreventDefault = false\n break\n case EVENT_CODE.enter:\n case EVENT_CODE.space:\n if (index === 0) {\n handleSelect(null, 0)\n } else {\n const item = (filters.value || [])[index - 1]\n item.value && handleSelect(item.value, index)\n }\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n checkedIndex.value = index\n rootRef.value\n ?.querySelector<HTMLElement>(\n `.${ns.e('list-item')}:nth-child(${index + 1})`\n )\n ?.focus()\n }\n\n return {\n multiple,\n filterClassName,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isPropAbsent,\n isActive,\n t,\n ns,\n tooltipRef,\n rootRef,\n checkedIndex,\n handleShowTooltip,\n handleHideTooltip,\n handleKeydown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;AA+HA,IAAA,gDAAe,gBAAgB;CAC7B,MAAM;CACN,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,OAAO;EACL,WAAW;GACT,MAAM;GACN,SAAS;GACV;EACD,OAAO,EACL,MAAM,QACP;EACD,QAAQ,EACN,MAAM,QACP;EACD,cAAc,EACZ,MAAM,UACP;EACD,UAAU,uBAAuB;EAClC;CACD,MAAM,OAAO;EACX,MAAM,WAAW,oBAAmB;EACpC,MAAM,EAAE,MAAM,WAAU;EACxB,MAAM,KAAK,aAAa,eAAc;EACtC,MAAM,SAAS,UAAU;EACzB,IAAI,MAAM,UAAU,CAAC,OAAO,aAAa,MAAM,MAAM,OAAO,KAC1D,OAAO,aAAa,MAAM,MAAM,OAAO,MAAM;EAG/C,MAAM,aAAa,IAA4B,KAAI;EACnD,MAAM,UAAU,IAAwB,KAAI;EAC5C,MAAM,eAAe,IAAI,EAAC;EAE1B,MAAM,UAAU,eAAe;GAC7B,OAAO,MAAM,UAAU,MAAM,OAAO;I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ACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACF;;CAEH,CAAA"}
|
|
1
|
+
{"version":3,"file":"filter-panel.vue_vue_type_script_lang.mjs","names":[],"sources":["../../../../../../packages/components/table/src/filter-panel.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n :offset=\"0\"\n :placement=\"placement\"\n :show-arrow=\"false\"\n trigger=\"click\"\n role=\"dialog\"\n teleported\n effect=\"light\"\n pure\n loop\n :popper-class=\"filterClassName\"\n persistent\n :append-to=\"appendTo\"\n @before-show=\"handleBeforeShowTooltip\"\n @show=\"handleShowTooltip\"\n @hide=\"handleHideTooltip\"\n >\n <template #content>\n <div\n v-if=\"multiple\"\n ref=\"rootRef\"\n tabindex=\"-1\"\n :class=\"ns.e('multiple')\"\n >\n <div :class=\"ns.e('content')\">\n <el-scrollbar :wrap-class=\"ns.e('wrap')\">\n <el-checkbox-group\n v-model=\"filteredValue\"\n :class=\"ns.e('checkbox-group')\"\n >\n <el-checkbox\n v-for=\"filter in filters\"\n :key=\"filter.value\"\n :value=\"filter.value\"\n >\n {{ filter.text }}\n </el-checkbox>\n </el-checkbox-group>\n </el-scrollbar>\n </div>\n <div :class=\"ns.e('bottom')\">\n <button\n :class=\"ns.is('disabled', filteredValue.length === 0)\"\n :disabled=\"filteredValue.length === 0\"\n type=\"button\"\n @click=\"handleConfirm\"\n >\n {{ t('el.table.confirmFilter') }}\n </button>\n <button type=\"button\" @click=\"handleReset\">\n {{ t('el.table.resetFilter') }}\n </button>\n </div>\n </div>\n <ul\n v-else\n ref=\"rootRef\"\n tabindex=\"-1\"\n role=\"radiogroup\"\n :class=\"ns.e('list')\"\n @keydown=\"handleKeydown\"\n >\n <li\n role=\"radio\"\n :class=\"[\n ns.e('list-item'),\n ns.is('active', isPropAbsent(filterValue)),\n ]\"\n :tabindex=\"checkedIndex === 0 ? 0 : -1\"\n :aria-checked=\"isPropAbsent(filterValue)\"\n @click=\"handleSelect(null, 0)\"\n >\n {{ t('el.table.clearFilter') }}\n </li>\n <li\n v-for=\"(filter, idx) in filters\"\n :key=\"filter.value\"\n role=\"radio\"\n :class=\"[ns.e('list-item'), ns.is('active', isActive(filter))]\"\n :tabindex=\"checkedIndex === idx + 1 ? 0 : -1\"\n :aria-checked=\"isActive(filter)\"\n @click=\"handleSelect(filter.value, idx + 1)\"\n >\n {{ filter.text }}\n </li>\n </ul>\n </template>\n <template #default>\n <button\n type=\"button\"\n :class=\"`${ns.namespace.value}-table__column-filter-trigger`\"\n :aria-label=\"t('el.table.filterLabel', { column: column?.label || '' })\"\n >\n <el-icon>\n <slot name=\"filter-icon\">\n <arrow-up v-if=\"column?.filterOpened\" />\n <arrow-down v-else />\n </slot>\n </el-icon>\n </button>\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, ref } from 'vue'\nimport { ElCheckbox, ElCheckboxGroup } from '@element-plus/components/checkbox'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n ElTooltip,\n useTooltipContentProps,\n} from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport { getEventCode, isPropAbsent } from '@element-plus/utils'\n\nimport type { DefaultRow } from './table/defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { PropType } from 'vue'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { TableHeader } from './table-header'\nimport type { Store } from './store'\n\nexport default defineComponent({\n name: 'ElTableFilterPanel',\n components: {\n ElCheckbox,\n ElCheckboxGroup,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n ArrowDown,\n ArrowUp,\n },\n props: {\n placement: {\n type: String as PropType<Placement>,\n default: 'bottom-start',\n },\n store: {\n type: Object as PropType<Store<DefaultRow>>,\n },\n column: {\n type: Object as PropType<TableColumnCtx<DefaultRow>>,\n },\n upDataColumn: {\n type: Function,\n },\n appendTo: useTooltipContentProps.appendTo,\n },\n setup(props) {\n const instance = getCurrentInstance()\n const { t } = useLocale()\n const ns = useNamespace('table-filter')\n const parent = instance?.parent as TableHeader\n if (props.column && !parent.filterPanels.value[props.column.id]) {\n parent.filterPanels.value[props.column.id] = instance\n }\n\n const tooltipRef = ref<TooltipInstance | null>(null)\n const rootRef = ref<HTMLElement | null>(null)\n const checkedIndex = ref(0)\n const filteredValue = ref<string[]>([])\n\n const filters = computed(() => {\n return props.column && props.column.filters\n })\n const filterClassName = computed(() => {\n if (props.column && props.column.filterClassName) {\n return `${ns.b()} ${props.column.filterClassName}`\n }\n return ns.b()\n })\n const filterValue = computed({\n get: () => (props.column?.filteredValue || [])[0],\n set: (value?: string | null) => {\n if (props.column) {\n const arr = [...(props.column.filteredValue ?? [])]\n if (!isPropAbsent(value)) {\n arr.splice(0, 1, value)\n } else {\n arr.splice(0, 1)\n }\n props.upDataColumn?.('filteredValue', arr)\n }\n },\n })\n const multiple = computed(() => {\n if (props.column) {\n return props.column.filterMultiple\n }\n return true\n })\n const isActive = (filter: { value: string; text: string }) => {\n return filter.value === filterValue.value\n }\n const hidden = () => {\n tooltipRef.value?.onClose()\n }\n const handleConfirm = () => {\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleReset = () => {\n filteredValue.value = []\n confirmFilter(filteredValue.value)\n hidden()\n }\n const handleSelect = (_filterValue: string | null, index: number) => {\n filterValue.value = _filterValue!\n checkedIndex.value = index\n if (!isPropAbsent(_filterValue)) {\n confirmFilter([_filterValue])\n } else {\n confirmFilter([])\n }\n hidden()\n }\n const confirmFilter = (filteredValue: unknown[]) => {\n props.upDataColumn?.('filteredValue', filteredValue)\n props.store?.commit('filterChange', {\n column: props.column,\n values: filteredValue,\n })\n props.store?.updateAllSelected()\n }\n const handleBeforeShowTooltip = () => {\n filteredValue.value = [...(props.column?.filteredValue || [])]\n }\n const handleShowTooltip = () => {\n rootRef.value?.focus()\n !multiple.value && initCheckedIndex()\n if (props.column) {\n props.upDataColumn?.('filterOpened', true)\n }\n }\n const handleHideTooltip = () => {\n if (props.column) {\n props.upDataColumn?.('filterOpened', false)\n }\n }\n\n const initCheckedIndex = () => {\n if (isPropAbsent(filterValue)) {\n checkedIndex.value = 0\n return\n }\n const idx = (filters.value || []).findIndex((item) => {\n return item.value === filterValue.value\n })\n checkedIndex.value = idx >= 0 ? idx + 1 : 0\n }\n\n const handleKeydown = (event: KeyboardEvent) => {\n const code = getEventCode(event)\n const len = (filters.value ? filters.value.length : 0) + 1\n let index = checkedIndex.value\n let isPreventDefault = true\n\n switch (code) {\n case EVENT_CODE.down:\n case EVENT_CODE.right:\n index = (index + 1) % len\n break\n case EVENT_CODE.up:\n case EVENT_CODE.left:\n index = (index - 1 + len) % len\n break\n case EVENT_CODE.tab:\n hidden()\n isPreventDefault = false\n break\n case EVENT_CODE.enter:\n case EVENT_CODE.space:\n if (index === 0) {\n handleSelect(null, 0)\n } else {\n const item = (filters.value || [])[index - 1]\n item.value && handleSelect(item.value, index)\n }\n break\n default:\n isPreventDefault = false\n break\n }\n\n isPreventDefault && event.preventDefault()\n checkedIndex.value = index\n rootRef.value\n ?.querySelector<HTMLElement>(\n `.${ns.e('list-item')}:nth-child(${index + 1})`\n )\n ?.focus()\n }\n\n return {\n multiple,\n filterClassName,\n filteredValue,\n filterValue,\n filters,\n handleConfirm,\n handleReset,\n handleSelect,\n isPropAbsent,\n isActive,\n t,\n ns,\n tooltipRef,\n rootRef,\n checkedIndex,\n handleBeforeShowTooltip,\n handleShowTooltip,\n handleHideTooltip,\n handleKeydown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;AAgIA,IAAA,gDAAe,gBAAgB;CAC7B,MAAM;CACN,YAAY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,OAAO;EACL,WAAW;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KAAK,WAAW;IAChB,KAAK,WAAW;KACd,SAAS,QAAQ,IAAI,OAAO;KAC5B;IACF,KAAK,WAAW;KACd,QAAO;KACP,mBAAmB;KACnB;IACF,KAAK,WAAW;IAChB,KAAK,WAAW;KACd,IAAI,UAAU,GACZ,aAAa,MAAM,EAAC;UACf;MACL,MAAM,QAAQ,QAAQ,SAAS,EAAE,EAAE,QAAQ;MAC3C,KAAK,SAAS,aAAa,KAAK,OAAO,MAAK;;KAE9C;IACF;KACE,mBAAmB;KACnB;;GAGJ,oBAAoB,MAAM,gBAAe;GACzC,aAAa,QAAQ;GACrB,QAAQ,OACJ,cACA,IAAI,GAAG,EAAE,YAAY,CAAC,aAAa,QAAQ,EAAE,GAC/C,EACE,OAAM;;EAGZ,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACF;;CAEH,CAAA"}
|
|
@@ -350,7 +350,7 @@ declare const tableProps: {
|
|
|
350
350
|
* @description size of Table
|
|
351
351
|
*/
|
|
352
352
|
size: {
|
|
353
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "
|
|
353
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
354
354
|
readonly required: false;
|
|
355
355
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
356
356
|
__epPropKey: true;
|
|
@@ -11,7 +11,7 @@ declare function useStyle<T extends DefaultRow>(props: TableProps<T>, layout: Ta
|
|
|
11
11
|
isGroup: _$vue.Ref<boolean, boolean>;
|
|
12
12
|
handleMouseLeave: () => void;
|
|
13
13
|
handleHeaderFooterMousewheel: (_event: WheelEvent, data: any) => void;
|
|
14
|
-
tableSize: _$vue.ComputedRef<"" | "
|
|
14
|
+
tableSize: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
15
15
|
emptyBlockStyle: _$vue.ComputedRef<{
|
|
16
16
|
width: string;
|
|
17
17
|
height: string;
|
|
@@ -77,8 +77,8 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
}>> & Readonly<{}>, {
|
|
80
|
-
fixed: string;
|
|
81
80
|
border: boolean;
|
|
81
|
+
fixed: string;
|
|
82
82
|
defaultSort: Sort;
|
|
83
83
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
//#endregion
|
|
@@ -112,8 +112,8 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
112
112
|
type: BooleanConstructor;
|
|
113
113
|
};
|
|
114
114
|
}>> & Readonly<{}>, {
|
|
115
|
-
fixed: string;
|
|
116
115
|
border: boolean;
|
|
116
|
+
fixed: string;
|
|
117
117
|
defaultSort: Sort;
|
|
118
118
|
allowDragLastColumn: boolean;
|
|
119
119
|
}, {}, {
|
|
@@ -125,13 +125,13 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
125
125
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
126
126
|
change: (val: CheckboxValueType) => void;
|
|
127
127
|
}, _$vue.PublicProps, {
|
|
128
|
-
label: string | boolean | number | object;
|
|
129
|
-
name: string;
|
|
130
|
-
disabled: boolean;
|
|
131
|
-
id: string;
|
|
132
128
|
modelValue: number | string | boolean;
|
|
129
|
+
id: string;
|
|
130
|
+
disabled: boolean;
|
|
133
131
|
validateEvent: boolean;
|
|
132
|
+
name: string;
|
|
134
133
|
value: string | boolean | number | object;
|
|
134
|
+
label: string | boolean | number | object;
|
|
135
135
|
trueValue: string | number;
|
|
136
136
|
falseValue: string | number;
|
|
137
137
|
trueLabel: string | number;
|
|
@@ -147,13 +147,13 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
147
147
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
148
148
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, {
|
|
150
|
-
label: string | boolean | number | object;
|
|
151
|
-
name: string;
|
|
152
|
-
disabled: boolean;
|
|
153
|
-
id: string;
|
|
154
150
|
modelValue: number | string | boolean;
|
|
151
|
+
id: string;
|
|
152
|
+
disabled: boolean;
|
|
155
153
|
validateEvent: boolean;
|
|
154
|
+
name: string;
|
|
156
155
|
value: string | boolean | number | object;
|
|
156
|
+
label: string | boolean | number | object;
|
|
157
157
|
trueValue: string | number;
|
|
158
158
|
falseValue: string | number;
|
|
159
159
|
trueLabel: string | number;
|
|
@@ -169,13 +169,13 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
169
169
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
170
170
|
change: (val: CheckboxValueType) => void;
|
|
171
171
|
}, string, {
|
|
172
|
-
label: string | boolean | number | object;
|
|
173
|
-
name: string;
|
|
174
|
-
disabled: boolean;
|
|
175
|
-
id: string;
|
|
176
172
|
modelValue: number | string | boolean;
|
|
173
|
+
id: string;
|
|
174
|
+
disabled: boolean;
|
|
177
175
|
validateEvent: boolean;
|
|
176
|
+
name: string;
|
|
178
177
|
value: string | boolean | number | object;
|
|
178
|
+
label: string | boolean | number | object;
|
|
179
179
|
trueValue: string | number;
|
|
180
180
|
falseValue: string | number;
|
|
181
181
|
trueLabel: string | number;
|
|
@@ -199,7 +199,7 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
199
199
|
readonly falseLabel?: string | number | (() => string | number) | undefined;
|
|
200
200
|
readonly id?: string | (() => string) | undefined;
|
|
201
201
|
readonly border?: boolean | (() => boolean) | undefined;
|
|
202
|
-
readonly size?: "" | "
|
|
202
|
+
readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
|
|
203
203
|
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
204
204
|
readonly validateEvent?: boolean | (() => boolean) | undefined;
|
|
205
205
|
readonly ariaLabel?: string | (() => string) | undefined;
|