@element-plus/nightly 0.0.20220610 → 0.0.20220611
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/README.md +20 -3
- package/dist/index.css +1 -1
- package/dist/index.full.js +116 -101
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +116 -102
- 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/index.d.ts +104 -104
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +66 -66
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +66 -66
- package/es/components/date-picker/src/date-picker-com/panel-date-range2.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +52 -52
- package/es/components/date-picker/src/panel-utils.d.ts +132 -132
- package/es/components/index.mjs +1 -1
- package/es/components/pagination/src/components/pager.vue.d.ts +4 -1
- package/es/components/pagination/src/components/pager4.mjs +25 -8
- package/es/components/pagination/src/components/pager4.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +110 -110
- package/es/components/time-picker/index.mjs +1 -1
- package/es/components/time-picker/index2.mjs +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +109 -109
- package/es/components/time-picker/src/common/picker2.mjs +1 -1
- package/es/components/time-picker/src/common/picker2.mjs.map +1 -1
- package/es/components/time-picker/src/common/props.d.ts +39 -36
- package/es/components/time-picker/src/common/props2.mjs +2 -9
- package/es/components/time-picker/src/common/props2.mjs.map +1 -1
- package/es/components/time-picker/src/composables/use-time-panel.d.ts +4 -3
- package/es/components/time-picker/src/composables/use-time-panel2.mjs.map +1 -1
- package/es/components/time-picker/src/{time-picker-com/useTimePicker.d.ts → composables/use-time-picker.d.ts} +10 -8
- package/es/components/time-picker/src/composables/use-time-picker.mjs +2 -0
- package/es/components/time-picker/src/composables/use-time-picker.mjs.map +1 -0
- package/es/components/time-picker/src/{time-picker-com/useTimePicker2.mjs → composables/use-time-picker2.mjs} +11 -16
- package/es/components/time-picker/src/composables/use-time-picker2.mjs.map +1 -0
- package/es/components/time-picker/src/props/basic-time-spinner.d.ts +17 -17
- package/es/components/time-picker/src/props/basic-time-spinner2.mjs +2 -9
- package/es/components/time-picker/src/props/basic-time-spinner2.mjs.map +1 -1
- package/es/components/time-picker/src/props/panel-time-picker.d.ts +2 -2
- package/es/components/time-picker/src/props/panel-time-picker2.mjs +2 -9
- package/es/components/time-picker/src/props/panel-time-picker2.mjs.map +1 -1
- package/es/components/time-picker/src/props/panel-time-range.d.ts +2 -2
- package/es/components/time-picker/src/props/panel-time-range2.mjs +2 -6
- package/es/components/time-picker/src/props/panel-time-range2.mjs.map +1 -1
- package/es/components/time-picker/src/props/shared.d.ts +32 -0
- package/es/components/time-picker/src/props/shared.mjs +2 -0
- package/es/components/time-picker/src/props/shared.mjs.map +1 -0
- package/es/components/time-picker/src/props/shared2.mjs +28 -0
- package/es/components/time-picker/src/props/shared2.mjs.map +1 -0
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +57 -57
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner2.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner2.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +66 -66
- package/es/components/time-picker/src/time-picker-com/panel-time-pick2.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick2.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +69 -69
- package/es/components/time-picker/src/time-picker-com/panel-time-range2.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range2.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +55 -55
- package/es/components/time-picker/src/types.d.ts +4 -0
- package/es/components/time-picker/src/types.mjs +2 -0
- package/es/components/time-picker/src/types.mjs.map +1 -0
- package/es/components/time-picker/src/types2.mjs +2 -0
- package/es/components/time-picker/src/types2.mjs.map +1 -0
- package/es/components/time-picker/src/utils.d.ts +2 -1
- package/es/components/time-picker/src/utils.mjs +1 -1
- package/es/components/time-picker/src/utils2.mjs +10 -1
- package/es/components/time-picker/src/utils2.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version2.mjs +1 -1
- package/es/version2.mjs.map +1 -1
- package/lib/components/date-picker/index.d.ts +104 -104
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +66 -66
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +66 -66
- package/lib/components/date-picker/src/date-picker-com/panel-date-range2.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +52 -52
- package/lib/components/date-picker/src/panel-utils.d.ts +132 -132
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/pagination/src/components/pager.vue.d.ts +4 -1
- package/lib/components/pagination/src/components/pager4.js +25 -8
- package/lib/components/pagination/src/components/pager4.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +110 -110
- package/lib/components/time-picker/index.js +1 -0
- package/lib/components/time-picker/index.js.map +1 -1
- package/lib/components/time-picker/index2.js +1 -0
- package/lib/components/time-picker/index2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +109 -109
- package/lib/components/time-picker/src/common/picker2.js +1 -1
- package/lib/components/time-picker/src/common/picker2.js.map +1 -1
- package/lib/components/time-picker/src/common/props.d.ts +39 -36
- package/lib/components/time-picker/src/common/props2.js +2 -9
- package/lib/components/time-picker/src/common/props2.js.map +1 -1
- package/lib/components/time-picker/src/composables/use-time-panel.d.ts +4 -3
- package/lib/components/time-picker/src/composables/use-time-panel2.js.map +1 -1
- package/lib/components/time-picker/src/{time-picker-com/useTimePicker.d.ts → composables/use-time-picker.d.ts} +10 -8
- package/lib/components/time-picker/src/{time-picker-com/useTimePicker.js → composables/use-time-picker.js} +3 -3
- package/lib/components/time-picker/src/composables/use-time-picker.js.map +1 -0
- package/lib/components/time-picker/src/{time-picker-com/useTimePicker2.js → composables/use-time-picker2.js} +11 -16
- package/lib/components/time-picker/src/composables/use-time-picker2.js.map +1 -0
- package/lib/components/time-picker/src/props/basic-time-spinner.d.ts +17 -17
- package/lib/components/time-picker/src/props/basic-time-spinner2.js +2 -9
- package/lib/components/time-picker/src/props/basic-time-spinner2.js.map +1 -1
- package/lib/components/time-picker/src/props/panel-time-picker.d.ts +2 -2
- package/lib/components/time-picker/src/props/panel-time-picker2.js +2 -9
- package/lib/components/time-picker/src/props/panel-time-picker2.js.map +1 -1
- package/lib/components/time-picker/src/props/panel-time-range.d.ts +2 -2
- package/lib/components/time-picker/src/props/panel-time-range2.js +2 -6
- package/lib/components/time-picker/src/props/panel-time-range2.js.map +1 -1
- package/lib/components/time-picker/src/props/shared.d.ts +32 -0
- package/lib/components/time-picker/src/props/shared.js +11 -0
- package/lib/components/time-picker/src/props/shared.js.map +1 -0
- package/lib/components/time-picker/src/props/shared2.js +33 -0
- package/lib/components/time-picker/src/props/shared2.js.map +1 -0
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +57 -57
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner2.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner2.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +66 -66
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick2.js +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick2.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +69 -69
- package/lib/components/time-picker/src/time-picker-com/panel-time-range2.js +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range2.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +55 -55
- package/lib/components/time-picker/src/types.d.ts +4 -0
- package/lib/components/time-picker/src/types.js +5 -0
- package/lib/components/time-picker/src/types.js.map +1 -0
- package/lib/components/time-picker/src/types2.js +3 -0
- package/lib/components/time-picker/src/types2.js.map +1 -0
- package/lib/components/time-picker/src/utils.d.ts +2 -1
- package/lib/components/time-picker/src/utils.js +1 -0
- package/lib/components/time-picker/src/utils.js.map +1 -1
- package/lib/components/time-picker/src/utils2.js +10 -0
- package/lib/components/time-picker/src/utils2.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version2.js +1 -1
- package/lib/version2.js.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/el-button.css +1 -1
- package/theme-chalk/el-pagination.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/button.scss +2 -4
- package/theme-chalk/src/pagination.scss +10 -0
- package/web-types.json +1 -1
- package/es/components/time-picker/src/time-picker-com/useTimePicker.mjs +0 -2
- package/es/components/time-picker/src/time-picker-com/useTimePicker.mjs.map +0 -1
- package/es/components/time-picker/src/time-picker-com/useTimePicker2.mjs.map +0 -1
- package/lib/components/time-picker/src/time-picker-com/useTimePicker.js.map +0 -1
- package/lib/components/time-picker/src/time-picker-com/useTimePicker2.js.map +0 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220611 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -10681,7 +10681,7 @@
|
|
|
10681
10681
|
return [recordCursor, setCursor];
|
|
10682
10682
|
}
|
|
10683
10683
|
|
|
10684
|
-
const version$1 = "0.0.
|
|
10684
|
+
const version$1 = "0.0.20220611";
|
|
10685
10685
|
|
|
10686
10686
|
const makeInstaller = (components = []) => {
|
|
10687
10687
|
const install = (app, options) => {
|
|
@@ -15835,6 +15835,38 @@
|
|
|
15835
15835
|
return +date;
|
|
15836
15836
|
return dayjs(date).locale(lang).format(format);
|
|
15837
15837
|
};
|
|
15838
|
+
const makeList = (total, method) => {
|
|
15839
|
+
var _a;
|
|
15840
|
+
const arr = [];
|
|
15841
|
+
const disabledArr = method == null ? void 0 : method();
|
|
15842
|
+
for (let i = 0; i < total; i++) {
|
|
15843
|
+
arr.push((_a = disabledArr == null ? void 0 : disabledArr.includes(i)) != null ? _a : false);
|
|
15844
|
+
}
|
|
15845
|
+
return arr;
|
|
15846
|
+
};
|
|
15847
|
+
|
|
15848
|
+
const disabledTimeListsProps = buildProps({
|
|
15849
|
+
disabledHours: {
|
|
15850
|
+
type: definePropType(Function)
|
|
15851
|
+
},
|
|
15852
|
+
disabledMinutes: {
|
|
15853
|
+
type: definePropType(Function)
|
|
15854
|
+
},
|
|
15855
|
+
disabledSeconds: {
|
|
15856
|
+
type: definePropType(Function)
|
|
15857
|
+
}
|
|
15858
|
+
});
|
|
15859
|
+
const timePanelSharedProps = buildProps({
|
|
15860
|
+
visible: Boolean,
|
|
15861
|
+
actualVisible: {
|
|
15862
|
+
type: Boolean,
|
|
15863
|
+
default: void 0
|
|
15864
|
+
},
|
|
15865
|
+
format: {
|
|
15866
|
+
type: String,
|
|
15867
|
+
default: ""
|
|
15868
|
+
}
|
|
15869
|
+
});
|
|
15838
15870
|
|
|
15839
15871
|
const timePickerDefaultProps = buildProps({
|
|
15840
15872
|
id: {
|
|
@@ -15907,15 +15939,7 @@
|
|
|
15907
15939
|
type: Boolean,
|
|
15908
15940
|
default: false
|
|
15909
15941
|
},
|
|
15910
|
-
|
|
15911
|
-
type: Function
|
|
15912
|
-
},
|
|
15913
|
-
disabledMinutes: {
|
|
15914
|
-
type: Function
|
|
15915
|
-
},
|
|
15916
|
-
disabledSeconds: {
|
|
15917
|
-
type: Function
|
|
15918
|
-
},
|
|
15942
|
+
...disabledTimeListsProps,
|
|
15919
15943
|
disabledDate: {
|
|
15920
15944
|
type: Function
|
|
15921
15945
|
},
|
|
@@ -16083,7 +16107,7 @@
|
|
|
16083
16107
|
pickerVisible.value = true;
|
|
16084
16108
|
emit("focus", e);
|
|
16085
16109
|
};
|
|
16086
|
-
let currentHandleBlurDeferCallback;
|
|
16110
|
+
let currentHandleBlurDeferCallback = void 0;
|
|
16087
16111
|
const handleBlurInput = (e) => {
|
|
16088
16112
|
const handleBlurDefer = async () => {
|
|
16089
16113
|
setTimeout(() => {
|
|
@@ -16562,18 +16586,10 @@
|
|
|
16562
16586
|
var CommonPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1W, [["__file", "picker.vue"]]);
|
|
16563
16587
|
|
|
16564
16588
|
const panelTimePickerProps = buildProps({
|
|
16565
|
-
|
|
16566
|
-
actualVisible: {
|
|
16567
|
-
type: Boolean,
|
|
16568
|
-
default: void 0
|
|
16569
|
-
},
|
|
16589
|
+
...timePanelSharedProps,
|
|
16570
16590
|
datetimeRole: String,
|
|
16571
16591
|
parsedValue: {
|
|
16572
16592
|
type: definePropType(Object)
|
|
16573
|
-
},
|
|
16574
|
-
format: {
|
|
16575
|
-
type: String,
|
|
16576
|
-
default: ""
|
|
16577
16593
|
}
|
|
16578
16594
|
});
|
|
16579
16595
|
|
|
@@ -16626,6 +16642,54 @@
|
|
|
16626
16642
|
};
|
|
16627
16643
|
};
|
|
16628
16644
|
|
|
16645
|
+
const makeAvailableArr = (disabledList) => {
|
|
16646
|
+
const trueOrNumber = (isDisabled, index) => isDisabled || index;
|
|
16647
|
+
const getNumber = (predicate) => predicate !== true;
|
|
16648
|
+
return disabledList.map(trueOrNumber).filter(getNumber);
|
|
16649
|
+
};
|
|
16650
|
+
const getTimeLists = (disabledHours, disabledMinutes, disabledSeconds) => {
|
|
16651
|
+
const getHoursList = (role, compare) => {
|
|
16652
|
+
return makeList(24, disabledHours && (() => disabledHours == null ? void 0 : disabledHours(role, compare)));
|
|
16653
|
+
};
|
|
16654
|
+
const getMinutesList = (hour, role, compare) => {
|
|
16655
|
+
return makeList(60, disabledMinutes && (() => disabledMinutes == null ? void 0 : disabledMinutes(hour, role, compare)));
|
|
16656
|
+
};
|
|
16657
|
+
const getSecondsList = (hour, minute, role, compare) => {
|
|
16658
|
+
return makeList(60, disabledSeconds && (() => disabledSeconds == null ? void 0 : disabledSeconds(hour, minute, role, compare)));
|
|
16659
|
+
};
|
|
16660
|
+
return {
|
|
16661
|
+
getHoursList,
|
|
16662
|
+
getMinutesList,
|
|
16663
|
+
getSecondsList
|
|
16664
|
+
};
|
|
16665
|
+
};
|
|
16666
|
+
const buildAvailableTimeSlotGetter = (disabledHours, disabledMinutes, disabledSeconds) => {
|
|
16667
|
+
const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(disabledHours, disabledMinutes, disabledSeconds);
|
|
16668
|
+
const getAvailableHours = (role, compare) => {
|
|
16669
|
+
return makeAvailableArr(getHoursList(role, compare));
|
|
16670
|
+
};
|
|
16671
|
+
const getAvailableMinutes = (hour, role, compare) => {
|
|
16672
|
+
return makeAvailableArr(getMinutesList(hour, role, compare));
|
|
16673
|
+
};
|
|
16674
|
+
const getAvailableSeconds = (hour, minute, role, compare) => {
|
|
16675
|
+
return makeAvailableArr(getSecondsList(hour, minute, role, compare));
|
|
16676
|
+
};
|
|
16677
|
+
return {
|
|
16678
|
+
getAvailableHours,
|
|
16679
|
+
getAvailableMinutes,
|
|
16680
|
+
getAvailableSeconds
|
|
16681
|
+
};
|
|
16682
|
+
};
|
|
16683
|
+
const useOldValue = (props) => {
|
|
16684
|
+
const oldValue = vue.ref(props.parsedValue);
|
|
16685
|
+
vue.watch(() => props.visible, (val) => {
|
|
16686
|
+
if (!val) {
|
|
16687
|
+
oldValue.value = props.parsedValue;
|
|
16688
|
+
}
|
|
16689
|
+
});
|
|
16690
|
+
return oldValue;
|
|
16691
|
+
};
|
|
16692
|
+
|
|
16629
16693
|
const nodeList = /* @__PURE__ */ new Map();
|
|
16630
16694
|
let startClick;
|
|
16631
16695
|
if (isClient) {
|
|
@@ -16824,71 +16888,9 @@
|
|
|
16824
16888
|
type: definePropType(String),
|
|
16825
16889
|
default: ""
|
|
16826
16890
|
},
|
|
16827
|
-
|
|
16828
|
-
type: definePropType(Function)
|
|
16829
|
-
},
|
|
16830
|
-
disabledMinutes: {
|
|
16831
|
-
type: definePropType(Function)
|
|
16832
|
-
},
|
|
16833
|
-
disabledSeconds: {
|
|
16834
|
-
type: definePropType(Function)
|
|
16835
|
-
}
|
|
16891
|
+
...disabledTimeListsProps
|
|
16836
16892
|
});
|
|
16837
16893
|
|
|
16838
|
-
const makeList = (total, method, methodFunc) => {
|
|
16839
|
-
const arr = [];
|
|
16840
|
-
const disabledArr = method && methodFunc();
|
|
16841
|
-
for (let i = 0; i < total; i++) {
|
|
16842
|
-
arr[i] = disabledArr ? disabledArr.includes(i) : false;
|
|
16843
|
-
}
|
|
16844
|
-
return arr;
|
|
16845
|
-
};
|
|
16846
|
-
const makeAvailableArr = (list) => {
|
|
16847
|
-
return list.map((_, index) => !_ ? index : _).filter((_) => _ !== true);
|
|
16848
|
-
};
|
|
16849
|
-
const getTimeLists = (disabledHours, disabledMinutes, disabledSeconds) => {
|
|
16850
|
-
const getHoursList = (role, compare) => {
|
|
16851
|
-
return makeList(24, disabledHours, () => disabledHours(role, compare));
|
|
16852
|
-
};
|
|
16853
|
-
const getMinutesList = (hour, role, compare) => {
|
|
16854
|
-
return makeList(60, disabledMinutes, () => disabledMinutes(hour, role, compare));
|
|
16855
|
-
};
|
|
16856
|
-
const getSecondsList = (hour, minute, role, compare) => {
|
|
16857
|
-
return makeList(60, disabledSeconds, () => disabledSeconds(hour, minute, role, compare));
|
|
16858
|
-
};
|
|
16859
|
-
return {
|
|
16860
|
-
getHoursList,
|
|
16861
|
-
getMinutesList,
|
|
16862
|
-
getSecondsList
|
|
16863
|
-
};
|
|
16864
|
-
};
|
|
16865
|
-
const getAvailableArrs = (disabledHours, disabledMinutes, disabledSeconds) => {
|
|
16866
|
-
const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(disabledHours, disabledMinutes, disabledSeconds);
|
|
16867
|
-
const getAvailableHours = (role, compare) => {
|
|
16868
|
-
return makeAvailableArr(getHoursList(role, compare));
|
|
16869
|
-
};
|
|
16870
|
-
const getAvailableMinutes = (hour, role, compare) => {
|
|
16871
|
-
return makeAvailableArr(getMinutesList(hour, role, compare));
|
|
16872
|
-
};
|
|
16873
|
-
const getAvailableSeconds = (hour, minute, role, compare) => {
|
|
16874
|
-
return makeAvailableArr(getSecondsList(hour, minute, role, compare));
|
|
16875
|
-
};
|
|
16876
|
-
return {
|
|
16877
|
-
getAvailableHours,
|
|
16878
|
-
getAvailableMinutes,
|
|
16879
|
-
getAvailableSeconds
|
|
16880
|
-
};
|
|
16881
|
-
};
|
|
16882
|
-
const useOldValue = (props) => {
|
|
16883
|
-
const oldValue = vue.ref(props.parsedValue);
|
|
16884
|
-
vue.watch(() => props.visible, (val) => {
|
|
16885
|
-
if (!val) {
|
|
16886
|
-
oldValue.value = props.parsedValue;
|
|
16887
|
-
}
|
|
16888
|
-
});
|
|
16889
|
-
return oldValue;
|
|
16890
|
-
};
|
|
16891
|
-
|
|
16892
16894
|
const _hoisted_1$W = ["onClick"];
|
|
16893
16895
|
const _hoisted_2$D = ["onMouseenter"];
|
|
16894
16896
|
const _sfc_main$1V = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -17181,7 +17183,7 @@
|
|
|
17181
17183
|
disabledSeconds,
|
|
17182
17184
|
defaultValue
|
|
17183
17185
|
} = pickerBase.props;
|
|
17184
|
-
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } =
|
|
17186
|
+
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours, disabledMinutes, disabledSeconds);
|
|
17185
17187
|
const ns = useNamespace("time");
|
|
17186
17188
|
const { t, lang } = useLocale();
|
|
17187
17189
|
const selectionRange = vue.ref([0, 2]);
|
|
@@ -17322,14 +17324,9 @@
|
|
|
17322
17324
|
var TimePickPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["__file", "panel-time-pick.vue"]]);
|
|
17323
17325
|
|
|
17324
17326
|
const panelTimeRangeProps = buildProps({
|
|
17325
|
-
|
|
17326
|
-
actualVisible: Boolean,
|
|
17327
|
+
...timePanelSharedProps,
|
|
17327
17328
|
parsedValue: {
|
|
17328
17329
|
type: definePropType(Array)
|
|
17329
|
-
},
|
|
17330
|
-
format: {
|
|
17331
|
-
type: String,
|
|
17332
|
-
default: ""
|
|
17333
17330
|
}
|
|
17334
17331
|
});
|
|
17335
17332
|
|
|
@@ -17473,7 +17470,7 @@
|
|
|
17473
17470
|
getAvailableTime(end, "end", false, start)
|
|
17474
17471
|
];
|
|
17475
17472
|
};
|
|
17476
|
-
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } =
|
|
17473
|
+
const { getAvailableHours, getAvailableMinutes, getAvailableSeconds } = buildAvailableTimeSlotGetter(disabledHours_, disabledMinutes_, disabledSeconds_);
|
|
17477
17474
|
const {
|
|
17478
17475
|
timePickerOptions,
|
|
17479
17476
|
getAvailableTime,
|
|
@@ -24775,7 +24772,7 @@
|
|
|
24775
24772
|
}
|
|
24776
24773
|
}
|
|
24777
24774
|
}
|
|
24778
|
-
emit("set-picker-option", ["
|
|
24775
|
+
emit("set-picker-option", ["isValidValue", isValidRange]);
|
|
24779
24776
|
emit("set-picker-option", ["parseUserInput", parseUserInput]);
|
|
24780
24777
|
emit("set-picker-option", ["formatToString", formatToString]);
|
|
24781
24778
|
emit("set-picker-option", ["handleClear", handleClear]);
|
|
@@ -33349,6 +33346,8 @@
|
|
|
33349
33346
|
const showNextMore = vue.ref(false);
|
|
33350
33347
|
const quickPrevHover = vue.ref(false);
|
|
33351
33348
|
const quickNextHover = vue.ref(false);
|
|
33349
|
+
const quickPrevFocus = vue.ref(false);
|
|
33350
|
+
const quickNextFocus = vue.ref(false);
|
|
33352
33351
|
const pagers = vue.computed(() => {
|
|
33353
33352
|
const pagerCount = props.pagerCount;
|
|
33354
33353
|
const halfPagerCount = (pagerCount - 1) / 2;
|
|
@@ -33399,15 +33398,22 @@
|
|
|
33399
33398
|
}
|
|
33400
33399
|
}
|
|
33401
33400
|
});
|
|
33402
|
-
function
|
|
33401
|
+
function onMouseEnter(forward = false) {
|
|
33403
33402
|
if (props.disabled)
|
|
33404
33403
|
return;
|
|
33405
|
-
if (
|
|
33404
|
+
if (forward) {
|
|
33406
33405
|
quickPrevHover.value = true;
|
|
33407
33406
|
} else {
|
|
33408
33407
|
quickNextHover.value = true;
|
|
33409
33408
|
}
|
|
33410
33409
|
}
|
|
33410
|
+
function onFocus(forward = false) {
|
|
33411
|
+
if (forward) {
|
|
33412
|
+
quickPrevFocus.value = true;
|
|
33413
|
+
} else {
|
|
33414
|
+
quickNextFocus.value = true;
|
|
33415
|
+
}
|
|
33416
|
+
}
|
|
33411
33417
|
function onEnter(e) {
|
|
33412
33418
|
const target = e.target;
|
|
33413
33419
|
if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
|
|
@@ -33415,6 +33421,8 @@
|
|
|
33415
33421
|
if (newPage !== props.currentPage) {
|
|
33416
33422
|
emit("change", newPage);
|
|
33417
33423
|
}
|
|
33424
|
+
} else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) {
|
|
33425
|
+
onPagerClick(e);
|
|
33418
33426
|
}
|
|
33419
33427
|
}
|
|
33420
33428
|
function onPagerClick(event) {
|
|
@@ -33468,10 +33476,13 @@
|
|
|
33468
33476
|
vue.unref(nsIcon).b(),
|
|
33469
33477
|
vue.unref(nsPager).is("disabled", _ctx.disabled)
|
|
33470
33478
|
]),
|
|
33471
|
-
|
|
33472
|
-
|
|
33479
|
+
tabindex: "0",
|
|
33480
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
|
|
33481
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
|
|
33482
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
|
|
33483
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
33473
33484
|
}, [
|
|
33474
|
-
quickPrevHover.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_left_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
33485
|
+
quickPrevHover.value || quickPrevFocus.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_left_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
33475
33486
|
], 34)) : vue.createCommentVNode("v-if", true),
|
|
33476
33487
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(pagers), (pager) => {
|
|
33477
33488
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
@@ -33492,10 +33503,13 @@
|
|
|
33492
33503
|
vue.unref(nsIcon).b(),
|
|
33493
33504
|
vue.unref(nsPager).is("disabled", _ctx.disabled)
|
|
33494
33505
|
]),
|
|
33495
|
-
|
|
33496
|
-
|
|
33506
|
+
tabindex: "0",
|
|
33507
|
+
onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
|
|
33508
|
+
onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
|
|
33509
|
+
onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
|
|
33510
|
+
onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
|
|
33497
33511
|
}, [
|
|
33498
|
-
quickNextHover.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_right_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
33512
|
+
quickNextHover.value || quickNextFocus.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_right_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
33499
33513
|
], 34)) : vue.createCommentVNode("v-if", true),
|
|
33500
33514
|
_ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
|
|
33501
33515
|
key: 3,
|
|
@@ -54160,6 +54174,7 @@
|
|
|
54160
54174
|
exports.linkEmits = linkEmits;
|
|
54161
54175
|
exports.linkProps = linkProps;
|
|
54162
54176
|
exports.makeInstaller = makeInstaller;
|
|
54177
|
+
exports.makeList = makeList;
|
|
54163
54178
|
exports.menuEmits = menuEmits;
|
|
54164
54179
|
exports.menuItemEmits = menuItemEmits;
|
|
54165
54180
|
exports.menuItemGroupProps = menuItemGroupProps;
|