@element-plus/nightly 0.0.20220525 → 0.0.20220528
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.css +1 -1
- package/dist/index.full.js +1239 -1170
- package/dist/index.full.min.js +21 -21
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +24 -24
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +1239 -1171
- 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.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/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/date-picker/index2.mjs +1 -1
- package/es/components/date-picker/src/composables/use-month-range-header.mjs +2 -0
- package/es/components/date-picker/src/composables/use-month-range-header.mjs.map +1 -0
- package/es/components/date-picker/src/composables/use-month-range-header2.mjs +54 -0
- package/es/components/date-picker/src/composables/use-month-range-header2.mjs.map +1 -0
- package/es/components/date-picker/src/composables/use-range-picker.mjs +2 -0
- package/es/components/date-picker/src/composables/use-range-picker.mjs.map +1 -0
- package/es/components/date-picker/src/composables/use-range-picker2.mjs +74 -0
- package/es/components/date-picker/src/composables/use-range-picker2.mjs.map +1 -0
- package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs +37 -1
- package/es/components/date-picker/src/date-picker-com/basic-cell-render.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table2.mjs +6 -3
- package/es/components/date-picker/src/date-picker-com/basic-date-table2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table2.mjs +6 -3
- package/es/components/date-picker/src/date-picker-com/basic-month-table2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table2.mjs +6 -3
- package/es/components/date-picker/src/date-picker-com/basic-year-table2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick2.mjs +83 -82
- package/es/components/date-picker/src/date-picker-com/panel-date-pick2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range2.mjs +366 -445
- package/es/components/date-picker/src/date-picker-com/panel-date-range2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range2.mjs +186 -202
- package/es/components/date-picker/src/date-picker-com/panel-month-range2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.mjs +78 -1
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.type.mjs +1 -1
- package/es/components/date-picker/src/date-picker.type2.mjs +0 -2
- package/es/components/date-picker/src/date-picker.type2.mjs.map +1 -1
- package/es/components/date-picker/src/props/basic-cell.mjs +2 -0
- package/es/components/date-picker/src/props/basic-cell.mjs.map +1 -0
- package/es/components/date-picker/src/props/basic-cell2.mjs +11 -0
- package/es/components/date-picker/src/props/basic-cell2.mjs.map +1 -0
- package/es/components/date-picker/src/props/date-picker.mjs +2 -0
- package/es/components/date-picker/src/props/date-picker.mjs.map +1 -0
- package/es/components/date-picker/src/props/date-picker2.mjs +12 -0
- package/es/components/date-picker/src/props/date-picker2.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-date-pick.mjs +2 -0
- package/es/components/date-picker/src/props/panel-date-pick.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-date-pick2.mjs +20 -0
- package/es/components/date-picker/src/props/panel-date-pick2.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-date-range.mjs +2 -0
- package/es/components/date-picker/src/props/panel-date-range.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-date-range2.mjs +11 -0
- package/es/components/date-picker/src/props/panel-date-range2.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-month-range.mjs +2 -0
- package/es/components/date-picker/src/props/panel-month-range.mjs.map +1 -0
- package/es/components/date-picker/src/props/panel-month-range2.mjs +11 -0
- package/es/components/date-picker/src/props/panel-month-range2.mjs.map +1 -0
- package/es/components/date-picker/src/props/shared.mjs +1 -1
- package/es/components/date-picker/src/props/shared2.mjs +22 -4
- package/es/components/date-picker/src/props/shared2.mjs.map +1 -1
- package/es/components/date-picker/src/utils.mjs +2 -0
- package/es/components/date-picker/src/utils.mjs.map +1 -0
- package/es/components/date-picker/src/utils2.mjs +30 -0
- package/es/components/date-picker/src/utils2.mjs.map +1 -0
- package/es/components/focus-trap/src/focus-trap2.mjs +3 -1
- package/es/components/focus-trap/src/focus-trap2.mjs.map +1 -1
- package/es/components/input-number/src/input-number3.mjs +6 -17
- package/es/components/input-number/src/input-number3.mjs.map +1 -1
- package/es/components/result/src/result3.mjs +1 -0
- package/es/components/result/src/result3.mjs.map +1 -1
- package/es/components/result/src/result4.mjs +46 -47
- package/es/components/result/src/result4.mjs.map +1 -1
- package/es/components/time-picker/src/common/constant2.mjs +1 -0
- package/es/components/time-picker/src/common/constant2.mjs.map +1 -1
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/packages/components/date-picker/index.d.ts +8 -24
- package/es/packages/components/date-picker/src/composables/use-month-range-header.d.ts +16 -0
- package/es/packages/components/date-picker/src/composables/use-range-picker.d.ts +129 -0
- package/es/packages/components/date-picker/src/date-picker-com/basic-cell-render.d.ts +4 -7
- package/es/packages/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +24 -14
- package/es/packages/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +24 -14
- package/es/packages/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +21 -2
- package/es/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +47 -35
- package/es/packages/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1059 -62
- package/es/packages/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +268 -31
- package/es/packages/components/date-picker/src/date-picker.d.ts +20 -30
- package/es/packages/components/date-picker/src/date-picker.type.d.ts +0 -5
- package/es/packages/components/date-picker/src/props/basic-cell.d.ts +6 -0
- package/es/packages/components/date-picker/src/props/basic-date-table.d.ts +2 -5
- package/es/packages/components/date-picker/src/props/basic-month-table.d.ts +2 -5
- package/es/packages/components/date-picker/src/props/basic-year-table.d.ts +1 -1
- package/es/packages/components/date-picker/src/props/date-picker.d.ts +6 -0
- package/es/packages/components/date-picker/src/props/panel-date-pick.d.ts +9 -0
- package/es/packages/components/date-picker/src/props/panel-date-range.d.ts +7 -0
- package/es/packages/components/date-picker/src/props/panel-month-range.d.ts +7 -0
- package/es/packages/components/date-picker/src/props/shared.d.ts +13 -2
- package/es/packages/components/date-picker/src/utils.d.ts +1795 -0
- package/es/packages/components/dialog/index.d.ts +2 -2
- package/es/packages/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/packages/components/dialog/src/dialog.vue.d.ts +2 -2
- package/es/packages/components/drawer/index.d.ts +1 -1
- package/es/packages/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/packages/components/input-number/index.d.ts +11 -12
- package/es/packages/components/input-number/src/input-number.d.ts +9 -4
- package/es/packages/components/input-number/src/input-number.vue.d.ts +11 -12
- package/es/packages/components/message/src/message.vue.d.ts +1 -1
- package/es/packages/components/notification/src/notification.vue.d.ts +1 -1
- package/es/packages/components/result/index.d.ts +10 -3
- package/es/packages/components/result/src/result.d.ts +1 -1
- package/es/packages/components/result/src/result.vue.d.ts +10 -3
- package/es/packages/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/packages/components/time-picker/src/common/constant.d.ts +1 -0
- package/es/packages/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/es/packages/components/tooltip-v2/index.d.ts +10 -10
- package/es/packages/components/tooltip-v2/src/tooltip.vue.d.ts +10 -10
- package/es/packages/tokens/date-picker.d.ts +8 -0
- package/es/packages/tokens/index.d.ts +1 -0
- package/es/packages/version.d.ts +1 -1
- package/es/tokens/date-picker.mjs +2 -0
- package/es/tokens/date-picker.mjs.map +1 -0
- package/es/tokens/date-picker2.mjs +4 -0
- package/es/tokens/date-picker2.mjs.map +1 -0
- package/es/tokens/index.mjs +1 -0
- package/es/tokens/index.mjs.map +1 -1
- package/es/tokens/index2.mjs +1 -0
- package/es/tokens/index2.mjs.map +1 -1
- package/es/version2.mjs +1 -1
- package/es/version2.mjs.map +1 -1
- package/lib/components/date-picker/index2.js +1 -1
- package/lib/components/date-picker/src/composables/use-month-range-header.js +10 -0
- package/lib/components/date-picker/src/composables/use-month-range-header.js.map +1 -0
- package/lib/components/date-picker/src/composables/use-month-range-header2.js +58 -0
- package/lib/components/date-picker/src/composables/use-month-range-header2.js.map +1 -0
- package/lib/components/date-picker/src/composables/use-range-picker.js +10 -0
- package/lib/components/date-picker/src/composables/use-range-picker.js.map +1 -0
- package/lib/components/date-picker/src/composables/use-range-picker2.js +82 -0
- package/lib/components/date-picker/src/composables/use-range-picker2.js.map +1 -0
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js +35 -3
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table2.js +8 -5
- package/lib/components/date-picker/src/date-picker-com/basic-date-table2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table2.js +7 -4
- package/lib/components/date-picker/src/date-picker-com/basic-month-table2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table2.js +7 -4
- package/lib/components/date-picker/src/date-picker-com/basic-year-table2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick2.js +85 -84
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range2.js +366 -445
- package/lib/components/date-picker/src/date-picker-com/panel-date-range2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range2.js +186 -202
- package/lib/components/date-picker/src/date-picker-com/panel-month-range2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.js +87 -2
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.type.js +1 -6
- package/lib/components/date-picker/src/date-picker.type.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.type2.js +0 -5
- package/lib/components/date-picker/src/date-picker.type2.js.map +1 -1
- package/lib/components/date-picker/src/props/basic-cell.js +10 -0
- package/lib/components/date-picker/src/props/basic-cell.js.map +1 -0
- package/lib/components/date-picker/src/props/basic-cell2.js +15 -0
- package/lib/components/date-picker/src/props/basic-cell2.js.map +1 -0
- package/lib/components/date-picker/src/props/date-picker.js +10 -0
- package/lib/components/date-picker/src/props/date-picker.js.map +1 -0
- package/lib/components/date-picker/src/props/date-picker2.js +16 -0
- package/lib/components/date-picker/src/props/date-picker2.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-date-pick.js +10 -0
- package/lib/components/date-picker/src/props/panel-date-pick.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-date-pick2.js +24 -0
- package/lib/components/date-picker/src/props/panel-date-pick2.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-date-range.js +10 -0
- package/lib/components/date-picker/src/props/panel-date-range.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-date-range2.js +15 -0
- package/lib/components/date-picker/src/props/panel-date-range2.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-month-range.js +11 -0
- package/lib/components/date-picker/src/props/panel-month-range.js.map +1 -0
- package/lib/components/date-picker/src/props/panel-month-range2.js +16 -0
- package/lib/components/date-picker/src/props/panel-month-range2.js.map +1 -0
- package/lib/components/date-picker/src/props/shared.js +3 -0
- package/lib/components/date-picker/src/props/shared.js.map +1 -1
- package/lib/components/date-picker/src/props/shared2.js +24 -3
- package/lib/components/date-picker/src/props/shared2.js.map +1 -1
- package/lib/components/date-picker/src/utils.js +11 -0
- package/lib/components/date-picker/src/utils.js.map +1 -0
- package/lib/components/date-picker/src/utils2.js +35 -0
- package/lib/components/date-picker/src/utils2.js.map +1 -0
- package/lib/components/focus-trap/src/focus-trap2.js +3 -1
- package/lib/components/focus-trap/src/focus-trap2.js.map +1 -1
- package/lib/components/input-number/src/input-number3.js +6 -17
- package/lib/components/input-number/src/input-number3.js.map +1 -1
- package/lib/components/result/src/result3.js +1 -0
- package/lib/components/result/src/result3.js.map +1 -1
- package/lib/components/result/src/result4.js +45 -46
- package/lib/components/result/src/result4.js.map +1 -1
- package/lib/components/time-picker/src/common/constant2.js +1 -0
- package/lib/components/time-picker/src/common/constant2.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/packages/components/date-picker/index.d.ts +8 -24
- package/lib/packages/components/date-picker/src/composables/use-month-range-header.d.ts +16 -0
- package/lib/packages/components/date-picker/src/composables/use-range-picker.d.ts +129 -0
- package/lib/packages/components/date-picker/src/date-picker-com/basic-cell-render.d.ts +4 -7
- package/lib/packages/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +24 -14
- package/lib/packages/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +24 -14
- package/lib/packages/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +21 -2
- package/lib/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +47 -35
- package/lib/packages/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1059 -62
- package/lib/packages/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +268 -31
- package/lib/packages/components/date-picker/src/date-picker.d.ts +20 -30
- package/lib/packages/components/date-picker/src/date-picker.type.d.ts +0 -5
- package/lib/packages/components/date-picker/src/props/basic-cell.d.ts +6 -0
- package/lib/packages/components/date-picker/src/props/basic-date-table.d.ts +2 -5
- package/lib/packages/components/date-picker/src/props/basic-month-table.d.ts +2 -5
- package/lib/packages/components/date-picker/src/props/basic-year-table.d.ts +1 -1
- package/lib/packages/components/date-picker/src/props/date-picker.d.ts +6 -0
- package/lib/packages/components/date-picker/src/props/panel-date-pick.d.ts +9 -0
- package/lib/packages/components/date-picker/src/props/panel-date-range.d.ts +7 -0
- package/lib/packages/components/date-picker/src/props/panel-month-range.d.ts +7 -0
- package/lib/packages/components/date-picker/src/props/shared.d.ts +13 -2
- package/lib/packages/components/date-picker/src/utils.d.ts +1795 -0
- package/lib/packages/components/dialog/index.d.ts +2 -2
- package/lib/packages/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/packages/components/dialog/src/dialog.vue.d.ts +2 -2
- package/lib/packages/components/drawer/index.d.ts +1 -1
- package/lib/packages/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/packages/components/input-number/index.d.ts +11 -12
- package/lib/packages/components/input-number/src/input-number.d.ts +9 -4
- package/lib/packages/components/input-number/src/input-number.vue.d.ts +11 -12
- package/lib/packages/components/message/src/message.vue.d.ts +1 -1
- package/lib/packages/components/notification/src/notification.vue.d.ts +1 -1
- package/lib/packages/components/result/index.d.ts +10 -3
- package/lib/packages/components/result/src/result.d.ts +1 -1
- package/lib/packages/components/result/src/result.vue.d.ts +10 -3
- package/lib/packages/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/packages/components/time-picker/src/common/constant.d.ts +1 -0
- package/lib/packages/components/time-picker/src/common/picker.vue.d.ts +1 -1
- package/lib/packages/components/tooltip-v2/index.d.ts +10 -10
- package/lib/packages/components/tooltip-v2/src/tooltip.vue.d.ts +10 -10
- package/lib/packages/tokens/date-picker.d.ts +8 -0
- package/lib/packages/tokens/index.d.ts +1 -0
- package/lib/packages/version.d.ts +1 -1
- package/lib/tokens/date-picker.js +10 -0
- package/lib/tokens/date-picker.js.map +1 -0
- package/lib/tokens/date-picker2.js +8 -0
- package/lib/tokens/date-picker2.js.map +1 -0
- package/lib/tokens/index.js +2 -0
- package/lib/tokens/index.js.map +1 -1
- package/lib/tokens/index2.js +2 -0
- package/lib/tokens/index2.js.map +1 -1
- package/lib/version2.js +1 -1
- package/lib/version2.js.map +1 -1
- package/package.json +4 -4
- package/theme-chalk/el-button.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/button.scss +1 -1
- package/web-types.json +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-cell-render2.mjs +0 -40
- package/es/components/date-picker/src/date-picker-com/basic-cell-render2.mjs.map +0 -1
- package/es/components/date-picker/src/date-picker2.mjs +0 -79
- package/es/components/date-picker/src/date-picker2.mjs.map +0 -1
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render2.js +0 -44
- package/lib/components/date-picker/src/date-picker-com/basic-cell-render2.js.map +0 -1
- package/lib/components/date-picker/src/date-picker2.js +0 -95
- package/lib/components/date-picker/src/date-picker2.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-year-table2.js","sources":["../../../../../../../packages/components/date-picker/src/date-picker-com/basic-year-table.vue"],"sourcesContent":["<template>\n <table\n role=\"grid\"\n :aria-label=\"t('el.datepicker.yearTablePrompt')\"\n class=\"
|
|
1
|
+
{"version":3,"file":"basic-year-table2.js","sources":["../../../../../../../packages/components/date-picker/src/date-picker-com/basic-year-table.vue"],"sourcesContent":["<template>\n <table\n role=\"grid\"\n :aria-label=\"t('el.datepicker.yearTablePrompt')\"\n :class=\"ns.b()\"\n @click=\"handleYearTableClick\"\n >\n <tbody ref=\"tbodyRef\">\n <tr v-for=\"(_, i) in 3\" :key=\"i\">\n <template v-for=\"(__, j) in 4\" :key=\"i + '_' + j\">\n <td\n v-if=\"i * 4 + j < 10\"\n :ref=\"\n (el) =>\n isSelectedCell(startYear + i * 4 + j) && (currentCellRef = el as HTMLElement)\n \"\n class=\"available\"\n :class=\"getCellStyle(startYear + i * 4 + j)\"\n :aria-selected=\"`${isSelectedCell(startYear + i * 4 + j)}`\"\n :tabindex=\"isSelectedCell(startYear + i * 4 + j) ? 0 : -1\"\n @keydown.space.prevent.stop=\"handleYearTableClick\"\n @keydown.enter.prevent.stop=\"handleYearTableClick\"\n >\n <span class=\"cell\">{{ startYear + i * 4 + j }}</span>\n </td>\n <td v-else />\n </template>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, nextTick, ref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport { castArray, hasClass } from '@element-plus/utils'\nimport { basicYearTableProps } from '../props/basic-year-table'\n\nconst datesInYear = (year: number, lang: string) => {\n const firstDay = dayjs(String(year)).locale(lang).startOf('year')\n const lastDay = firstDay.endOf('year')\n const numOfDays = lastDay.dayOfYear()\n return rangeArr(numOfDays).map((n) => firstDay.add(n, 'day').toDate())\n}\n\nexport default defineComponent({\n props: basicYearTableProps,\n\n emits: ['pick'],\n expose: ['focus'],\n\n setup(props, ctx) {\n const ns = useNamespace('year-table')\n\n const { t, lang } = useLocale()\n const tbodyRef = ref<HTMLElement>()\n const currentCellRef = ref<HTMLElement>()\n const startYear = computed(() => {\n return Math.floor(props.date.year() / 10) * 10\n })\n\n watch(\n () => props.date,\n async () => {\n if (tbodyRef.value?.contains(document.activeElement)) {\n await nextTick()\n currentCellRef.value?.focus()\n }\n }\n )\n\n const focus = () => {\n currentCellRef.value?.focus()\n }\n\n const getCellStyle = (year: number) => {\n const style: Record<string, boolean> = {}\n const today = dayjs().locale(lang.value)\n\n style.disabled = props.disabledDate\n ? datesInYear(year, lang.value).every(props.disabledDate)\n : false\n\n style.current =\n castArray(props.parsedValue).findIndex((_) => _.year() === year) >= 0\n\n style.today = today.year() === year\n\n return style\n }\n\n const isSelectedCell = (year: number) => {\n return (\n (year === startYear.value &&\n props.date.year() < startYear.value &&\n props.date.year() > startYear.value + 9) ||\n castArray(props.date).findIndex((date) => date.year() === year) >= 0\n )\n }\n\n const handleYearTableClick = (event: MouseEvent | KeyboardEvent) => {\n const clickTarget = event.target as HTMLDivElement\n const target = clickTarget.closest('td')\n if (target) {\n if (hasClass((target as any).parentNode, 'disabled')) return\n const year = target.textContent || target.innerText\n ctx.emit('pick', Number(year))\n }\n }\n return {\n ns,\n t,\n tbodyRef,\n currentCellRef,\n startYear,\n focus,\n isSelectedCell,\n getCellStyle,\n handleYearTableClick,\n }\n },\n})\n</script>\n"],"names":["dayjs","rangeArr","defineComponent","basicYearTableProps","useNamespace","useLocale","ref","computed","watch","nextTick","castArray","hasClass","_createElementBlock","_normalizeClass","_openBlock","_Fragment","_renderList","_withKeys","_withModifiers","_createElementVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwCA,MAAM,WAAA,GAAc,CAAC,IAAA,EAAc,IAAiB,KAAA;AAClD,EAAM,MAAA,QAAA,GAAWA,yBAAM,CAAA,MAAA,CAAO,IAAI,CAAC,EAAE,MAAO,CAAA,IAAI,CAAE,CAAA,OAAA,CAAQ,MAAM,CAAA,CAAA;AAChE,EAAM,MAAA,OAAA,GAAU,QAAS,CAAA,KAAA,CAAM,MAAM,CAAA,CAAA;AACrC,EAAM,MAAA,SAAA,GAAY,QAAQ,SAAU,EAAA,CAAA;AACpC,EAAA,OAAOC,kBAAS,CAAA,SAAS,CAAE,CAAA,GAAA,CAAI,CAAC,CAAA,KAAM,QAAS,CAAA,GAAA,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AAA,MAAA,CAAA,CAAA,EAAA,CAAA,OAAA,CAAA,CAAA,CAAA;;AAEjD,iBAAA;AAA2C,eAAA,EAAA;AAEhC,gBAAAC,sBAAA,CAAA,MAAA,EAAA,UAAA,EAAAC,mBAAA,CAAA,IAAA,CAAA,SAAA,GAAA,CAAA,GAAA,CAAA,GAAA,CAAA,CAAA,EAAA,CAAA,CAAA;;;;;;;;;;;;;"}
|
|
@@ -14,14 +14,15 @@ require('../../../../utils/index2.js');
|
|
|
14
14
|
require('../../../../constants/index2.js');
|
|
15
15
|
var iconsVue = require('@element-plus/icons-vue');
|
|
16
16
|
require('../../../tooltip/index2.js');
|
|
17
|
+
var panelDatePick = require('../props/panel-date-pick2.js');
|
|
17
18
|
var basicDateTable = require('./basic-date-table2.js');
|
|
18
19
|
var basicMonthTable = require('./basic-month-table2.js');
|
|
19
20
|
var basicYearTable = require('./basic-year-table2.js');
|
|
20
21
|
var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
|
|
21
22
|
var panelTimePick = require('../../../time-picker/src/time-picker-com/panel-time-pick2.js');
|
|
22
23
|
var index$3 = require('../../../../directives/click-outside/index2.js');
|
|
23
|
-
var
|
|
24
|
-
var index$
|
|
24
|
+
var index$4 = require('../../../../hooks/use-namespace/index2.js');
|
|
25
|
+
var index$5 = require('../../../../hooks/use-locale/index2.js');
|
|
25
26
|
var tokens = require('../../../tooltip/src/tokens2.js');
|
|
26
27
|
var dateUtils = require('../../../time-picker/src/common/date-utils2.js');
|
|
27
28
|
var aria = require('../../../../constants/aria2.js');
|
|
@@ -47,27 +48,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
48
|
ArrowRight: iconsVue.ArrowRight
|
|
48
49
|
},
|
|
49
50
|
directives: { clickoutside: index$3["default"] },
|
|
50
|
-
props:
|
|
51
|
-
visible: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: false
|
|
54
|
-
},
|
|
55
|
-
parsedValue: {
|
|
56
|
-
type: [Object, Array]
|
|
57
|
-
},
|
|
58
|
-
format: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: ""
|
|
61
|
-
},
|
|
62
|
-
type: {
|
|
63
|
-
type: String,
|
|
64
|
-
required: true,
|
|
65
|
-
validator: validator.isValidDatePickType
|
|
66
|
-
}
|
|
67
|
-
},
|
|
51
|
+
props: panelDatePick.panelDatePickProps,
|
|
68
52
|
emits: ["pick", "set-picker-option", "panel-change"],
|
|
69
53
|
setup(props, ctx) {
|
|
70
|
-
const
|
|
54
|
+
const ppNs = index$4.useNamespace("picker-panel");
|
|
55
|
+
const dpNs = index$4.useNamespace("date-picker");
|
|
56
|
+
const { t, lang } = index$5.useLocale();
|
|
71
57
|
const pickerBase = vue.inject("EP_PICKER_BASE");
|
|
72
58
|
const popper = vue.inject(tokens.TOOLTIP_INJECTION_KEY);
|
|
73
59
|
const {
|
|
@@ -442,6 +428,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
442
428
|
}
|
|
443
429
|
}, { immediate: true });
|
|
444
430
|
return {
|
|
431
|
+
ppNs,
|
|
432
|
+
dpNs,
|
|
445
433
|
currentViewRef,
|
|
446
434
|
handleTimePick,
|
|
447
435
|
handleTimePickClose,
|
|
@@ -483,26 +471,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
483
471
|
};
|
|
484
472
|
}
|
|
485
473
|
});
|
|
486
|
-
const _hoisted_1 =
|
|
487
|
-
const _hoisted_2 =
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const _hoisted_3 = ["onClick"];
|
|
492
|
-
const _hoisted_4 = { class: "el-picker-panel__body" };
|
|
493
|
-
const _hoisted_5 = {
|
|
494
|
-
key: 0,
|
|
495
|
-
class: "el-date-picker__time-header"
|
|
496
|
-
};
|
|
497
|
-
const _hoisted_6 = { class: "el-date-picker__editor-wrap" };
|
|
498
|
-
const _hoisted_7 = { class: "el-date-picker__editor-wrap" };
|
|
499
|
-
const _hoisted_8 = { class: "el-date-picker__prev-btn" };
|
|
500
|
-
const _hoisted_9 = ["aria-label"];
|
|
501
|
-
const _hoisted_10 = ["aria-label"];
|
|
502
|
-
const _hoisted_11 = { class: "el-date-picker__next-btn" };
|
|
503
|
-
const _hoisted_12 = ["aria-label"];
|
|
504
|
-
const _hoisted_13 = ["aria-label"];
|
|
505
|
-
const _hoisted_14 = { class: "el-picker-panel__footer" };
|
|
474
|
+
const _hoisted_1 = ["onClick"];
|
|
475
|
+
const _hoisted_2 = ["aria-label"];
|
|
476
|
+
const _hoisted_3 = ["aria-label"];
|
|
477
|
+
const _hoisted_4 = ["aria-label"];
|
|
478
|
+
const _hoisted_5 = ["aria-label"];
|
|
506
479
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
507
480
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
508
481
|
const _component_time_pick_panel = vue.resolveComponent("time-pick-panel");
|
|
@@ -517,28 +490,44 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
517
490
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
518
491
|
const _directive_clickoutside = vue.resolveDirective("clickoutside");
|
|
519
492
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
520
|
-
class: vue.normalizeClass([
|
|
493
|
+
class: vue.normalizeClass([
|
|
494
|
+
_ctx.ppNs.b(),
|
|
495
|
+
_ctx.dpNs.b(),
|
|
521
496
|
{
|
|
522
497
|
"has-sidebar": _ctx.$slots.sidebar || _ctx.hasShortcuts,
|
|
523
498
|
"has-time": _ctx.showTime
|
|
524
499
|
}
|
|
525
|
-
]
|
|
500
|
+
])
|
|
526
501
|
}, [
|
|
527
|
-
vue.createElementVNode("div",
|
|
528
|
-
vue.
|
|
529
|
-
|
|
502
|
+
vue.createElementVNode("div", {
|
|
503
|
+
class: vue.normalizeClass(_ctx.ppNs.e("body-wrapper"))
|
|
504
|
+
}, [
|
|
505
|
+
vue.renderSlot(_ctx.$slots, "sidebar", {
|
|
506
|
+
class: vue.normalizeClass(_ctx.ppNs.e("sidebar"))
|
|
507
|
+
}),
|
|
508
|
+
_ctx.hasShortcuts ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
509
|
+
key: 0,
|
|
510
|
+
class: vue.normalizeClass(_ctx.ppNs.e("sidebar"))
|
|
511
|
+
}, [
|
|
530
512
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.shortcuts, (shortcut, key) => {
|
|
531
513
|
return vue.openBlock(), vue.createElementBlock("button", {
|
|
532
514
|
key,
|
|
533
515
|
type: "button",
|
|
534
|
-
class: "
|
|
516
|
+
class: vue.normalizeClass(_ctx.ppNs.e("shortcut")),
|
|
535
517
|
onClick: ($event) => _ctx.handleShortcutClick(shortcut)
|
|
536
|
-
}, vue.toDisplayString(shortcut.text),
|
|
518
|
+
}, vue.toDisplayString(shortcut.text), 11, _hoisted_1);
|
|
537
519
|
}), 128))
|
|
538
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
539
|
-
vue.createElementVNode("div",
|
|
540
|
-
|
|
541
|
-
|
|
520
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
521
|
+
vue.createElementVNode("div", {
|
|
522
|
+
class: vue.normalizeClass(_ctx.ppNs.e("body"))
|
|
523
|
+
}, [
|
|
524
|
+
_ctx.showTime ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
525
|
+
key: 0,
|
|
526
|
+
class: vue.normalizeClass(_ctx.dpNs.e("time-header"))
|
|
527
|
+
}, [
|
|
528
|
+
vue.createElementVNode("span", {
|
|
529
|
+
class: vue.normalizeClass(_ctx.dpNs.e("editor-wrap"))
|
|
530
|
+
}, [
|
|
542
531
|
vue.createVNode(_component_el_input, {
|
|
543
532
|
placeholder: _ctx.t("el.datepicker.selectDate"),
|
|
544
533
|
"model-value": _ctx.visibleDate,
|
|
@@ -546,8 +535,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
546
535
|
onInput: _cache[0] || (_cache[0] = (val) => _ctx.userInputDate = val),
|
|
547
536
|
onChange: _ctx.handleVisibleDateChange
|
|
548
537
|
}, null, 8, ["placeholder", "model-value", "onChange"])
|
|
549
|
-
]),
|
|
550
|
-
vue.withDirectives((vue.openBlock(), vue.createElementBlock("span",
|
|
538
|
+
], 2),
|
|
539
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
|
|
540
|
+
class: vue.normalizeClass(_ctx.dpNs.e("editor-wrap"))
|
|
541
|
+
}, [
|
|
551
542
|
vue.createVNode(_component_el_input, {
|
|
552
543
|
placeholder: _ctx.t("el.datepicker.selectTime"),
|
|
553
544
|
"model-value": _ctx.visibleTime,
|
|
@@ -563,20 +554,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
563
554
|
"parsed-value": _ctx.innerDate,
|
|
564
555
|
onPick: _ctx.handleTimePick
|
|
565
556
|
}, null, 8, ["visible", "format", "time-arrow-control", "parsed-value", "onPick"])
|
|
566
|
-
])), [
|
|
557
|
+
], 2)), [
|
|
567
558
|
[_directive_clickoutside, _ctx.handleTimePickClose]
|
|
568
559
|
])
|
|
569
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
560
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
570
561
|
vue.withDirectives(vue.createElementVNode("div", {
|
|
571
|
-
class: vue.normalizeClass([
|
|
572
|
-
|
|
573
|
-
|
|
562
|
+
class: vue.normalizeClass([
|
|
563
|
+
_ctx.dpNs.e("header"),
|
|
564
|
+
(_ctx.currentView === "year" || _ctx.currentView === "month") && _ctx.dpNs.e("header--bordered")
|
|
565
|
+
])
|
|
574
566
|
}, [
|
|
575
|
-
vue.createElementVNode("span",
|
|
567
|
+
vue.createElementVNode("span", {
|
|
568
|
+
class: vue.normalizeClass(_ctx.dpNs.e("prev-btn"))
|
|
569
|
+
}, [
|
|
576
570
|
vue.createElementVNode("button", {
|
|
577
571
|
type: "button",
|
|
578
572
|
"aria-label": _ctx.t(`el.datepicker.prevYear`),
|
|
579
|
-
class: "
|
|
573
|
+
class: vue.normalizeClass(["d-arrow-left", _ctx.ppNs.e("icon-btn")]),
|
|
580
574
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.prevYear_ && _ctx.prevYear_(...args))
|
|
581
575
|
}, [
|
|
582
576
|
vue.createVNode(_component_el_icon, null, {
|
|
@@ -585,11 +579,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
585
579
|
]),
|
|
586
580
|
_: 1
|
|
587
581
|
})
|
|
588
|
-
],
|
|
582
|
+
], 10, _hoisted_2),
|
|
589
583
|
vue.withDirectives(vue.createElementVNode("button", {
|
|
590
584
|
type: "button",
|
|
591
585
|
"aria-label": _ctx.t(`el.datepicker.prevMonth`),
|
|
592
|
-
class: "
|
|
586
|
+
class: vue.normalizeClass([_ctx.ppNs.e("icon-btn"), "arrow-left"]),
|
|
593
587
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.prevMonth_ && _ctx.prevMonth_(...args))
|
|
594
588
|
}, [
|
|
595
589
|
vue.createVNode(_component_el_icon, null, {
|
|
@@ -598,33 +592,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
598
592
|
]),
|
|
599
593
|
_: 1
|
|
600
594
|
})
|
|
601
|
-
],
|
|
595
|
+
], 10, _hoisted_3), [
|
|
602
596
|
[vue.vShow, _ctx.currentView === "date"]
|
|
603
597
|
])
|
|
604
|
-
]),
|
|
598
|
+
], 2),
|
|
605
599
|
vue.createElementVNode("span", {
|
|
606
600
|
role: "button",
|
|
607
|
-
class: "
|
|
601
|
+
class: vue.normalizeClass(_ctx.dpNs.e("header-label")),
|
|
608
602
|
"aria-live": "polite",
|
|
609
603
|
tabindex: "0",
|
|
610
604
|
onKeydown: _cache[4] || (_cache[4] = vue.withKeys((...args) => _ctx.showYearPicker && _ctx.showYearPicker(...args), ["enter"])),
|
|
611
605
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.showYearPicker && _ctx.showYearPicker(...args))
|
|
612
|
-
}, vue.toDisplayString(_ctx.yearLabel),
|
|
606
|
+
}, vue.toDisplayString(_ctx.yearLabel), 35),
|
|
613
607
|
vue.withDirectives(vue.createElementVNode("span", {
|
|
614
608
|
role: "button",
|
|
615
|
-
class: vue.normalizeClass(["el-date-picker__header-label", { active: _ctx.currentView === "month" }]),
|
|
616
609
|
"aria-live": "polite",
|
|
617
610
|
tabindex: "0",
|
|
611
|
+
class: vue.normalizeClass([
|
|
612
|
+
_ctx.dpNs.e("header-label"),
|
|
613
|
+
{ active: _ctx.currentView === "month" }
|
|
614
|
+
]),
|
|
618
615
|
onKeydown: _cache[6] || (_cache[6] = vue.withKeys((...args) => _ctx.showMonthPicker && _ctx.showMonthPicker(...args), ["enter"])),
|
|
619
616
|
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.showMonthPicker && _ctx.showMonthPicker(...args))
|
|
620
617
|
}, vue.toDisplayString(_ctx.t(`el.datepicker.month${_ctx.month + 1}`)), 35), [
|
|
621
618
|
[vue.vShow, _ctx.currentView === "date"]
|
|
622
619
|
]),
|
|
623
|
-
vue.createElementVNode("span",
|
|
620
|
+
vue.createElementVNode("span", {
|
|
621
|
+
class: vue.normalizeClass(_ctx.dpNs.e("next-btn"))
|
|
622
|
+
}, [
|
|
624
623
|
vue.withDirectives(vue.createElementVNode("button", {
|
|
625
624
|
type: "button",
|
|
626
625
|
"aria-label": _ctx.t(`el.datepicker.nextMonth`),
|
|
627
|
-
class: "
|
|
626
|
+
class: vue.normalizeClass([_ctx.ppNs.e("icon-btn"), "arrow-right"]),
|
|
628
627
|
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.nextMonth_ && _ctx.nextMonth_(...args))
|
|
629
628
|
}, [
|
|
630
629
|
vue.createVNode(_component_el_icon, null, {
|
|
@@ -633,13 +632,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
633
632
|
]),
|
|
634
633
|
_: 1
|
|
635
634
|
})
|
|
636
|
-
],
|
|
635
|
+
], 10, _hoisted_4), [
|
|
637
636
|
[vue.vShow, _ctx.currentView === "date"]
|
|
638
637
|
]),
|
|
639
638
|
vue.createElementVNode("button", {
|
|
640
639
|
type: "button",
|
|
641
640
|
"aria-label": _ctx.t(`el.datepicker.nextYear`),
|
|
642
|
-
class: "
|
|
641
|
+
class: vue.normalizeClass([_ctx.ppNs.e("icon-btn"), "d-arrow-right"]),
|
|
643
642
|
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.nextYear_ && _ctx.nextYear_(...args))
|
|
644
643
|
}, [
|
|
645
644
|
vue.createVNode(_component_el_icon, null, {
|
|
@@ -648,13 +647,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
648
647
|
]),
|
|
649
648
|
_: 1
|
|
650
649
|
})
|
|
651
|
-
],
|
|
652
|
-
])
|
|
650
|
+
], 10, _hoisted_5)
|
|
651
|
+
], 2)
|
|
653
652
|
], 2), [
|
|
654
653
|
[vue.vShow, _ctx.currentView !== "time"]
|
|
655
654
|
]),
|
|
656
655
|
vue.createElementVNode("div", {
|
|
657
|
-
class: "
|
|
656
|
+
class: vue.normalizeClass(_ctx.ppNs.e("content")),
|
|
658
657
|
onKeydown: _cache[10] || (_cache[10] = (...args) => _ctx.handleKeydownTable && _ctx.handleKeydownTable(...args))
|
|
659
658
|
}, [
|
|
660
659
|
_ctx.currentView === "date" ? (vue.openBlock(), vue.createBlock(_component_date_table, {
|
|
@@ -683,35 +682,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
683
682
|
"disabled-date": _ctx.disabledDate,
|
|
684
683
|
onPick: _ctx.handleMonthPick
|
|
685
684
|
}, null, 8, ["date", "parsed-value", "disabled-date", "onPick"])) : vue.createCommentVNode("v-if", true)
|
|
686
|
-
],
|
|
687
|
-
])
|
|
688
|
-
]),
|
|
689
|
-
vue.withDirectives(vue.createElementVNode("div",
|
|
685
|
+
], 34)
|
|
686
|
+
], 2)
|
|
687
|
+
], 2),
|
|
688
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
|
689
|
+
class: vue.normalizeClass(_ctx.ppNs.e("footer"))
|
|
690
|
+
}, [
|
|
690
691
|
vue.withDirectives(vue.createVNode(_component_el_button, {
|
|
691
692
|
text: "",
|
|
692
693
|
size: "small",
|
|
693
|
-
class: "
|
|
694
|
+
class: vue.normalizeClass(_ctx.ppNs.e("link-btn")),
|
|
694
695
|
onClick: _ctx.changeToNow
|
|
695
696
|
}, {
|
|
696
697
|
default: vue.withCtx(() => [
|
|
697
698
|
vue.createTextVNode(vue.toDisplayString(_ctx.t("el.datepicker.now")), 1)
|
|
698
699
|
]),
|
|
699
700
|
_: 1
|
|
700
|
-
}, 8, ["onClick"]), [
|
|
701
|
+
}, 8, ["class", "onClick"]), [
|
|
701
702
|
[vue.vShow, _ctx.selectionMode !== "dates"]
|
|
702
703
|
]),
|
|
703
704
|
vue.createVNode(_component_el_button, {
|
|
704
705
|
plain: "",
|
|
705
706
|
size: "small",
|
|
706
|
-
class: "
|
|
707
|
+
class: vue.normalizeClass(_ctx.ppNs.e("link-btn")),
|
|
707
708
|
onClick: _ctx.onConfirm
|
|
708
709
|
}, {
|
|
709
710
|
default: vue.withCtx(() => [
|
|
710
711
|
vue.createTextVNode(vue.toDisplayString(_ctx.t("el.datepicker.confirm")), 1)
|
|
711
712
|
]),
|
|
712
713
|
_: 1
|
|
713
|
-
}, 8, ["onClick"])
|
|
714
|
-
],
|
|
714
|
+
}, 8, ["class", "onClick"])
|
|
715
|
+
], 2), [
|
|
715
716
|
[vue.vShow, _ctx.footerVisible && _ctx.currentView === "date"]
|
|
716
717
|
])
|
|
717
718
|
], 2);
|