vft 0.0.509 → 0.0.511
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/es/components/affix/affix.vue2.js +2 -2
- package/es/components/alert/alert.vue2.js +1 -1
- package/es/components/autocomplete/autocomplete.vue2.js +1 -1
- package/es/components/avatar/avatar.vue2.js +2 -2
- package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
- package/es/components/backtop/backtop.vue2.js +1 -1
- package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
- package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
- package/es/components/button/button-group.vue2.js +2 -2
- package/es/components/button/button.vue2.js +7 -7
- package/es/components/button/use-button.js +3 -3
- package/es/components/card/card.vue2.js +6 -6
- package/es/components/carousel/carousel-item.vue2.js +3 -3
- package/es/components/carousel/carousel.vue2.js +1 -1
- package/es/components/cascader/cascader.vue2.js +2 -2
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +6 -6
- package/es/components/cascader-panel/node.vue2.js +8 -8
- package/es/components/check-tag/check-tag.vue2.js +2 -2
- package/es/components/checkbox/checkbox-button.vue2.js +13 -13
- package/es/components/checkbox/checkbox-group.vue2.js +3 -3
- package/es/components/checkbox/checkbox.vue2.js +1 -1
- package/es/components/clamp/clamp.vue2.js +2 -2
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +4 -4
- package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
- package/es/components/col/col.vue2.js +2 -2
- package/es/components/collapse/collapse-item.vue2.js +2 -2
- package/es/components/collapse/collapse.vue2.js +2 -2
- package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
- package/es/components/color-picker/color-picker.vue2.js +2 -2
- package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
- package/es/components/color-picker/components/hue-slider.vue.js +2 -2
- package/es/components/color-picker/components/predefine.vue.js +3 -3
- package/es/components/color-picker/components/sv-panel.vue.js +2 -2
- package/es/components/config-provider/config-provider.vue2.js +2 -2
- package/es/components/config-provider/hooks/use-global-config.js +3 -3
- package/es/components/container/aside.vue2.js +2 -2
- package/es/components/container/container.vue2.js +2 -2
- package/es/components/container/footer.vue2.js +2 -2
- package/es/components/container/header.vue2.js +2 -2
- package/es/components/container/main.vue2.js +2 -2
- package/es/components/context-menu/context-menu.vue2.js +1 -1
- package/es/components/countdown/countdown.vue2.js +2 -2
- package/es/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker/composables/use-basic-date-table.js +115 -115
- package/es/components/date-picker/composables/use-month-range-header.js +1 -1
- package/es/components/date-picker/composables/use-panel-date-range.js +1 -1
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +5 -5
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +5 -5
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +12 -12
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +3 -3
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
- package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
- package/es/components/date-picker/props/basic-date-table.js +3 -3
- package/es/components/date-picker/props/basic-month-table.js +3 -3
- package/es/components/date-picker/props/basic-year-table.js +3 -3
- package/es/components/date-time-select/date-time-select.vue2.js +1 -1
- package/es/components/descriptions/description.vue2.js +1 -1
- package/es/components/descriptions/descriptions-row.vue2.js +10 -10
- package/es/components/dialog/dialog-content.vue2.js +3 -3
- package/es/components/dialog/dialog.vue2.js +5 -5
- package/es/components/divider/divider.vue2.js +5 -5
- package/es/components/drawer/drawer.vue2.js +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
- package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown-item.vue2.js +2 -2
- package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
- package/es/components/dropdown/dropdown.vue.d.ts +1 -1
- package/es/components/dropdown/dropdown.vue2.js +5 -5
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +6 -6
- package/es/components/footer-layout/footer-layout.vue2.js +2 -2
- package/es/components/form/form-item.vue2.js +16 -16
- package/es/components/form/form.vue2.js +2 -2
- package/es/components/full-screen/full-screen.vue2.js +3 -3
- package/es/components/header-layout/header-layout.vue2.js +1 -1
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
- package/es/components/icon/icon.vue2.js +3 -3
- package/es/components/icon-text/icon-text.vue2.js +1 -1
- package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
- package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
- package/es/components/image/image.vue2.js +2 -2
- package/es/components/image-viewer/image-viewer.vue2.js +7 -7
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +206 -203
- package/es/components/input/input.vue2.js +6 -6
- package/es/components/input-number/input-number.vue2.js +4 -4
- package/es/components/input-tag/input-tag.vue2.js +7 -7
- package/es/components/link/link.vue2.js +1 -1
- package/es/components/list-cell/list-cell.vue2.js +1 -1
- package/es/components/logo/logo.vue2.js +10 -10
- package/es/components/md-comment/md-comment.vue2.js +2 -2
- package/es/components/md-container/md-container.vue2.js +2 -2
- package/es/components/md-container/toc.js +1 -1
- package/es/components/menu/menu-collapse-transition.vue.js +2 -2
- package/es/components/menu/menu-item-group.vue2.js +7 -7
- package/es/components/menu/menu-item.vue2.js +1 -1
- package/es/components/message/message.vue2.js +3 -3
- package/es/components/message-box/index.d.ts +4 -0
- package/es/components/message-box/index.js +14 -0
- package/es/components/message-box/message-box.vue.d.ts +103 -0
- package/es/components/message-box/message-box.vue.js +4 -0
- package/es/components/message-box/message-box.vue2.js +358 -0
- package/es/components/message-box/method.d.ts +3 -0
- package/es/components/message-box/method.js +101 -0
- package/es/components/message-box/style/css.d.ts +2 -0
- package/es/components/message-box/style/css.js +3 -0
- package/es/components/message-box/style/index.d.ts +2 -0
- package/es/components/message-box/style/index.js +3 -0
- package/es/components/message-box/types.d.ts +202 -0
- package/es/components/message-box/types.js +1 -0
- package/es/components/modal/index.d.ts +1 -0
- package/es/components/modal/modal-footer-action.vue2.js +11 -11
- package/es/components/modal/modal.vue.d.ts +1 -0
- package/es/components/modal/modal.vue2.js +30 -28
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
- package/es/components/notification/notification.vue2.js +1 -1
- package/es/components/overlay/overlay.vue2.js +1 -1
- package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
- package/es/components/pagination/components/jumper.vue2.js +28 -29
- package/es/components/pagination/components/next.vue2.js +4 -4
- package/es/components/pagination/components/pager.vue2.js +1 -1
- package/es/components/pagination/components/prev.vue2.js +4 -4
- package/es/components/pagination/components/sizes.vue2.js +20 -21
- package/es/components/pagination/components/total.vue2.js +10 -11
- package/es/components/popconfirm/popconfirm.vue2.js +4 -4
- package/es/components/popover/popover.vue2.js +1 -1
- package/es/components/popper/arrow.vue2.js +2 -2
- package/es/components/popper/content.vue2.js +2 -2
- package/es/components/popper/trigger.vue2.js +4 -4
- package/es/components/progress/progress.vue2.js +1 -1
- package/es/components/progress-i/progress-i.vue2.js +2 -2
- package/es/components/qrcode/qrcode.vue2.js +1 -1
- package/es/components/radio/radio-button.vue2.js +2 -2
- package/es/components/radio/radio-group.vue2.js +3 -3
- package/es/components/radio/radio.vue2.js +2 -2
- package/es/components/rate/rate.vue2.js +6 -6
- package/es/components/router-view-content/router-view-content.vue2.js +7 -7
- package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
- package/es/components/row/row.vue2.js +2 -2
- package/es/components/scrollbar/bar.vue2.js +2 -2
- package/es/components/scrollbar/scrollbar.vue2.js +7 -7
- package/es/components/scrollbar/thumb.vue2.js +2 -2
- package/es/components/search/search.vue2.js +8 -8
- package/es/components/segmented/segmented.vue2.js +7 -7
- package/es/components/select/group-item.vue.js +2 -2
- package/es/components/select/option-item.vue.js +2 -2
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/useSelect.js +1 -1
- package/es/components/skeleton/skeleton-item.vue2.js +2 -2
- package/es/components/skeleton/skeleton.vue2.js +8 -8
- package/es/components/slider/button.vue2.js +2 -2
- package/es/components/slider/slider.vue2.js +1 -1
- package/es/components/space/space.js +1 -1
- package/es/components/statistic/statistic.vue2.js +17 -17
- package/es/components/steps/item.vue2.js +11 -11
- package/es/components/steps/steps.vue2.js +2 -2
- package/es/components/super-form/super-form-action.vue2.js +47 -48
- package/es/components/super-form/super-form-item.vue2.js +204 -206
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/super-form/use/helper.d.ts +1 -1
- package/es/components/super-form/use/helper.js +63 -63
- package/es/components/super-form/use/use-form.js +8 -8
- package/es/components/switch/switch.vue2.js +1 -1
- package/es/components/table/field.js +111 -130
- package/es/components/table/table.vue2.js +128 -133
- package/es/components/table/use/use-columns.js +26 -29
- package/es/components/table/use/use-data-source.js +59 -60
- package/es/components/tabs/tab-bar.vue2.js +2 -2
- package/es/components/tabs/tab-pane.vue2.js +6 -6
- package/es/components/teleport/teleport.vue2.js +2 -2
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
- package/es/components/time-picker/common/picker.vue2.js +8 -8
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +4 -4
- package/es/components/time-select/time-select.vue2.js +3 -3
- package/es/components/timeline/timeline-item.vue2.js +1 -1
- package/es/components/tooltip/content.vue2.js +6 -6
- package/es/components/tooltip/tooltip.vue2.js +1 -1
- package/es/components/tooltip/trigger.vue2.js +2 -2
- package/es/components/transfer/transfer-panel.vue2.js +8 -8
- package/es/components/transfer/transfer.vue2.js +5 -5
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +7 -7
- package/es/components/upload/upload-content.vue2.js +8 -8
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +2 -2
- package/es/components/upload/upload.vue2.js +20 -20
- package/es/components/verify-code/verify-code.vue2.js +2 -2
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/hooks/use-id/index.js +2 -2
- package/es/index.js +40 -39
- package/es/locale/index.js +6 -6
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/plugin.js +5 -3
- package/es/utils/helper.js +2 -2
- package/es/utils/ns-cover.js +1 -1
- package/es/utils/vue/vnode.js +3 -3
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/cascader/cascader.vue2.cjs +1 -1
- package/lib/components/cascader-panel/menu.vue2.cjs +2 -2
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/dropdown/index.d.ts +33 -33
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/message-box/index.cjs +1 -0
- package/lib/components/message-box/index.d.ts +4 -0
- package/lib/components/message-box/message-box.vue.cjs +1 -0
- package/lib/components/message-box/message-box.vue.d.ts +103 -0
- package/lib/components/message-box/message-box.vue2.cjs +1 -0
- package/lib/components/message-box/method.cjs +1 -0
- package/lib/components/message-box/method.d.ts +3 -0
- package/lib/components/message-box/style/css.cjs +1 -0
- package/lib/components/message-box/style/css.d.ts +2 -0
- package/lib/components/message-box/style/index.cjs +1 -0
- package/lib/components/message-box/style/index.d.ts +2 -0
- package/lib/components/message-box/types.cjs +1 -0
- package/lib/components/message-box/types.d.ts +202 -0
- package/lib/components/modal/index.d.ts +1 -0
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +1 -0
- package/lib/components/modal/modal.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
- package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
- package/lib/components/pagination/components/total.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/use/helper.cjs +1 -1
- package/lib/components/super-form/use/helper.d.ts +1 -1
- package/lib/components/super-form/use/use-form.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-columns.cjs +1 -1
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
- package/lib/components/transfer/transfer.vue2.cjs +1 -1
- package/lib/components/tree/tree.vue2.cjs +1 -1
- package/lib/components/upload/upload-content.vue2.cjs +1 -1
- package/lib/components/upload/upload-list.vue2.cjs +1 -1
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/locale/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/plugin.cjs +1 -1
- package/package.json +2 -2
- package/theme-style/index.css +1 -1
- package/theme-style/src/table.scss +4 -0
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, onBeforeUnmount as L,
|
|
1
|
+
import { defineComponent as K, onBeforeUnmount as L, openBlock as s, createElementBlock as o, unref as e, withModifiers as $, normalizeClass as n, createElementVNode as M, createCommentVNode as z, Fragment as u, renderList as d, toDisplayString as A, createVNode as H } from "vue";
|
|
2
2
|
import { basicDateTableEmits as O, basicDateTableProps as j } from "../props/basic-date-table.js";
|
|
3
3
|
import { useBasicDateTable as q, useBasicDateTableDOM as G } from "../composables/use-basic-date-table.js";
|
|
4
4
|
import I from "./basic-cell-render.js";
|
|
@@ -33,7 +33,7 @@ const J = ["aria-label"], Q = ["aria-label"], X = ["aria-current", "aria-selecte
|
|
|
33
33
|
* @description focus on current cell
|
|
34
34
|
*/
|
|
35
35
|
focus: R
|
|
36
|
-
}), (W, r) => (
|
|
36
|
+
}), (W, r) => (s(), o("table", {
|
|
37
37
|
"aria-label": e(F),
|
|
38
38
|
class: n(e(P)),
|
|
39
39
|
cellspacing: "0",
|
|
@@ -56,22 +56,22 @@ const J = ["aria-label"], Q = ["aria-label"], X = ["aria-current", "aria-selecte
|
|
|
56
56
|
ref: x
|
|
57
57
|
}, [
|
|
58
58
|
M("tr", null, [
|
|
59
|
-
W.showWeekNumber ? (
|
|
59
|
+
W.showWeekNumber ? (s(), o("th", {
|
|
60
60
|
key: 0,
|
|
61
61
|
scope: "col",
|
|
62
62
|
class: n(e(V))
|
|
63
63
|
}, null, 2)) : z("", !0),
|
|
64
|
-
(
|
|
64
|
+
(s(!0), o(u, null, d(e(B), (t, a) => (s(), o("th", {
|
|
65
65
|
key: a,
|
|
66
66
|
"aria-label": t,
|
|
67
67
|
scope: "col"
|
|
68
68
|
}, A(t), 9, Q))), 128))
|
|
69
69
|
]),
|
|
70
|
-
(
|
|
70
|
+
(s(!0), o(u, null, d(e(w), (t, a) => (s(), o("tr", {
|
|
71
71
|
key: a,
|
|
72
72
|
class: n(e(U)(t[1]))
|
|
73
73
|
}, [
|
|
74
|
-
(
|
|
74
|
+
(s(!0), o(u, null, d(t, (l, _) => (s(), o("td", {
|
|
75
75
|
key: `${a}.${_}`,
|
|
76
76
|
ref_for: !0,
|
|
77
77
|
ref: (i) => !e(D) && e(b)(l) && (N.value = i),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, ref as d, computed as F, watch as Y, nextTick as $,
|
|
1
|
+
import { defineComponent as K, ref as d, computed as F, watch as Y, nextTick as $, openBlock as f, createElementBlock as u, normalizeClass as N, unref as b, createElementVNode as q, Fragment as M, renderList as _, withKeys as C, withModifiers as O, createVNode as G } from "vue";
|
|
2
2
|
import w from "dayjs";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { hasClass as T } from "@vft/utils";
|
|
@@ -9,7 +9,7 @@ import { useNamespace as H } from "../../../hooks/use-namespace/index.js";
|
|
|
9
9
|
import "../../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
12
|
+
import J from "../../../locale/use-locale.js";
|
|
13
13
|
import { basicMonthTableProps as Q } from "../props/basic-month-table.js";
|
|
14
14
|
import { datesInMonth as U, getValidDateOfMonth as W } from "../utils.js";
|
|
15
15
|
import X from "./basic-cell-render.js";
|
|
@@ -105,7 +105,7 @@ const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye =
|
|
|
105
105
|
* @description focus current cell
|
|
106
106
|
*/
|
|
107
107
|
focus: P
|
|
108
|
-
}), (r, t) => (
|
|
108
|
+
}), (r, t) => (f(), u("table", {
|
|
109
109
|
role: "grid",
|
|
110
110
|
"aria-label": b(E)("vft.datePicker.monthTableLabel"),
|
|
111
111
|
class: N(b(A).b()),
|
|
@@ -116,8 +116,8 @@ const Z = ["aria-label"], ee = ["aria-selected", "tabindex", "onKeydown"], ye =
|
|
|
116
116
|
ref_key: "tbodyRef",
|
|
117
117
|
ref: x
|
|
118
118
|
}, [
|
|
119
|
-
(
|
|
120
|
-
(
|
|
119
|
+
(f(!0), u(M, null, _(k.value, (a, s) => (f(), u("tr", { key: s }, [
|
|
120
|
+
(f(!0), u(M, null, _(a, (n, o) => (f(), u("td", {
|
|
121
121
|
key: o,
|
|
122
122
|
ref_for: !0,
|
|
123
123
|
ref: (m) => y(n) && (D.value = m),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, ref as m, computed as O, watch as q, nextTick as G,
|
|
1
|
+
import { defineComponent as F, ref as m, computed as O, watch as q, nextTick as G, openBlock as u, createElementBlock as y, normalizeClass as C, unref as k, createElementVNode as H, Fragment as R, renderList as V, withKeys as Y, withModifiers as I, createVNode as J } from "vue";
|
|
2
2
|
import f from "dayjs";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { hasClass as M } from "@vft/utils";
|
|
@@ -9,7 +9,7 @@ import { useNamespace as Q } from "../../../hooks/use-namespace/index.js";
|
|
|
9
9
|
import "../../../hooks/use-model-toggle/index.js";
|
|
10
10
|
import "@popperjs/core";
|
|
11
11
|
import "../../../hooks/use-z-index/index.js";
|
|
12
|
-
import
|
|
12
|
+
import U from "../../../locale/use-locale.js";
|
|
13
13
|
import "../../time-picker/index.js";
|
|
14
14
|
import { basicYearTableProps as W } from "../props/basic-year-table.js";
|
|
15
15
|
import { getValidDateOfYear as X } from "../utils.js";
|
|
@@ -97,7 +97,7 @@ const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onK
|
|
|
97
97
|
* @description focus on the current cell
|
|
98
98
|
*/
|
|
99
99
|
focus: P
|
|
100
|
-
}), (s, t) => (
|
|
100
|
+
}), (s, t) => (u(), y("table", {
|
|
101
101
|
role: "grid",
|
|
102
102
|
"aria-label": k(N)("vft.datePicker.yearTableLabel"),
|
|
103
103
|
class: C(k(K).b()),
|
|
@@ -108,8 +108,8 @@ const te = ["aria-label"], ae = ["aria-selected", "aria-label", "tabindex", "onK
|
|
|
108
108
|
ref_key: "tbodyRef",
|
|
109
109
|
ref: w
|
|
110
110
|
}, [
|
|
111
|
-
(
|
|
112
|
-
(
|
|
111
|
+
(u(!0), y(R, null, V(_.value, (a, o) => (u(), y("tr", { key: o }, [
|
|
112
|
+
(u(!0), y(R, null, V(a, (r, n) => (u(), y("td", {
|
|
113
113
|
key: `${o}_${n}`,
|
|
114
114
|
ref_for: !0,
|
|
115
115
|
ref: (d) => v(r) && (b.value = d),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as rt, useAttrs as st, useSlots as ut, ref as g, inject as ae, toRef as it, computed as m, watch as A,
|
|
1
|
+
import { defineComponent as rt, useAttrs as st, useSlots as ut, ref as g, inject as ae, toRef as it, computed as m, watch as A, openBlock as C, createElementBlock as I, normalizeClass as i, unref as o, createElementVNode as h, renderSlot as ct, Fragment as dt, renderList as vt, toDisplayString as S, createCommentVNode as B, createVNode as T, withDirectives as P, vShow as N, withKeys as ye, createBlock as le, withCtx as ke, createTextVNode as we, nextTick as L } from "vue";
|
|
2
2
|
import w from "dayjs";
|
|
3
3
|
import { VftButton as be } from "../../button/index.js";
|
|
4
4
|
import { ClickOutside as mt } from "@vft/directives";
|
|
@@ -22,7 +22,7 @@ import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as pt } from "../constants.
|
|
|
22
22
|
import ht from "./basic-date-table.vue2.js";
|
|
23
23
|
import yt from "./basic-month-table.vue2.js";
|
|
24
24
|
import kt from "./basic-year-table.vue2.js";
|
|
25
|
-
import
|
|
25
|
+
import wt from "../../../locale/use-locale.js";
|
|
26
26
|
import { PICKER_BASE_INJECTION_KEY as bt } from "../../time-picker/constants.js";
|
|
27
27
|
import { TOOLTIP_INJECTION_KEY as Vt } from "../../tooltip/constants.js";
|
|
28
28
|
import { extractTimeFormat as Dt, extractDateFormat as gt } from "../../time-picker/utils.js";
|
|
@@ -316,8 +316,8 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
316
316
|
type: "button",
|
|
317
317
|
class: i(o(f).e("shortcut")),
|
|
318
318
|
onClick: (y) => Ke(l)
|
|
319
|
-
},
|
|
320
|
-
], 2)) :
|
|
319
|
+
}, S(l.text), 11, Tt))), 128))
|
|
320
|
+
], 2)) : B("", !0),
|
|
321
321
|
h("div", {
|
|
322
322
|
class: i(o(f).e("body"))
|
|
323
323
|
}, [
|
|
@@ -358,7 +358,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
358
358
|
], 2)), [
|
|
359
359
|
[o(mt), qe]
|
|
360
360
|
])
|
|
361
|
-
], 2)) :
|
|
361
|
+
], 2)) : B("", !0),
|
|
362
362
|
P(h("div", {
|
|
363
363
|
class: i([
|
|
364
364
|
o(V).e("header"),
|
|
@@ -392,7 +392,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
392
392
|
tabindex: "0",
|
|
393
393
|
onKeydown: t[4] || (t[4] = ye((l) => x("year"), ["enter"])),
|
|
394
394
|
onClick: t[5] || (t[5] = (l) => x("year"))
|
|
395
|
-
},
|
|
395
|
+
}, S(Re.value), 35),
|
|
396
396
|
P(h("span", {
|
|
397
397
|
role: "button",
|
|
398
398
|
"aria-live": "polite",
|
|
@@ -403,7 +403,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
403
403
|
]),
|
|
404
404
|
onKeydown: t[6] || (t[6] = ye((l) => x("month"), ["enter"])),
|
|
405
405
|
onClick: t[7] || (t[7] = (l) => x("month"))
|
|
406
|
-
},
|
|
406
|
+
}, S(Ye.value + 1), 35), [
|
|
407
407
|
[N, s.value === "date"]
|
|
408
408
|
]),
|
|
409
409
|
h("span", {
|
|
@@ -444,7 +444,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
444
444
|
"cell-class-name": o(Oe),
|
|
445
445
|
"show-week-number": e.showWeekNumber,
|
|
446
446
|
onPick: _e
|
|
447
|
-
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "cell-class-name", "show-week-number"])) :
|
|
447
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "cell-class-name", "show-week-number"])) : B("", !0),
|
|
448
448
|
s.value === "year" ? (C(), le(kt, {
|
|
449
449
|
key: 1,
|
|
450
450
|
ref_key: "currentViewRef",
|
|
@@ -454,7 +454,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
454
454
|
"disabled-date": o(c),
|
|
455
455
|
"parsed-value": e.parsedValue,
|
|
456
456
|
onPick: Ue
|
|
457
|
-
}, null, 8, ["selection-mode", "date", "disabled-date", "parsed-value"])) :
|
|
457
|
+
}, null, 8, ["selection-mode", "date", "disabled-date", "parsed-value"])) : B("", !0),
|
|
458
458
|
s.value === "month" ? (C(), le(yt, {
|
|
459
459
|
key: 2,
|
|
460
460
|
ref_key: "currentViewRef",
|
|
@@ -464,7 +464,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
464
464
|
"parsed-value": e.parsedValue,
|
|
465
465
|
"disabled-date": o(c),
|
|
466
466
|
onPick: Be
|
|
467
|
-
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date"])) :
|
|
467
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date"])) : B("", !0)
|
|
468
468
|
], 34)
|
|
469
469
|
], 2)
|
|
470
470
|
], 2),
|
|
@@ -479,7 +479,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
479
479
|
onClick: Je
|
|
480
480
|
}, {
|
|
481
481
|
default: ke(() => [
|
|
482
|
-
we(
|
|
482
|
+
we(S(o(E)("now")), 1)
|
|
483
483
|
]),
|
|
484
484
|
_: 1
|
|
485
485
|
}, 8, ["class", "disabled"]), [
|
|
@@ -493,7 +493,7 @@ const Tt = ["onClick"], ta = /* @__PURE__ */ rt({
|
|
|
493
493
|
onClick: Ae
|
|
494
494
|
}, {
|
|
495
495
|
default: ke(() => [
|
|
496
|
-
we(
|
|
496
|
+
we(S(o(E)("confirm")), 1)
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
499
499
|
}, 8, ["class", "disabled"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as da, inject as ye, toRef as ne, ref as x, watch as va, computed as k,
|
|
1
|
+
import { defineComponent as da, inject as ye, toRef as ne, ref as x, watch as va, computed as k, openBlock as m, createElementBlock as h, normalizeClass as r, unref as e, createElementVNode as s, renderSlot as ma, Fragment as ca, renderList as fa, toDisplayString as I, createCommentVNode as p, createVNode as f, withDirectives as B, vShow as Q, withKeys as X, createBlock as $, withCtx as Ce, createTextVNode as Pe } from "vue";
|
|
2
2
|
import L from "dayjs";
|
|
3
3
|
import { ClickOutside as Ve } from "@vft/directives";
|
|
4
4
|
import { isArray as pa } from "@vft/utils";
|
|
@@ -14,10 +14,10 @@ import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as ya } from "../constants.
|
|
|
14
14
|
import Re from "./basic-year-table.vue2.js";
|
|
15
15
|
import xe from "./basic-month-table.vue2.js";
|
|
16
16
|
import Ie from "./basic-date-table.vue2.js";
|
|
17
|
-
import
|
|
18
|
-
import $e from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
17
|
+
import Ca from "../../../locale/use-locale.js";
|
|
19
18
|
import { PICKER_BASE_INJECTION_KEY as Pa } from "../../time-picker/constants.js";
|
|
20
19
|
import { extractTimeFormat as Va, extractDateFormat as Da } from "../../time-picker/utils.js";
|
|
20
|
+
import $e from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
21
21
|
const Ta = ["onClick"], Ra = ["disabled"], xa = ["disabled"], Ia = ["disabled"], $a = ["disabled"], j = "month", Za = /* @__PURE__ */ da({
|
|
22
22
|
__name: "panel-date-range",
|
|
23
23
|
props: ha,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, ref as S, inject as K, toRef as V, computed as L, watch as re,
|
|
1
|
+
import { defineComponent as j, ref as S, inject as K, toRef as V, computed as L, watch as re, openBlock as m, createElementBlock as p, normalizeClass as o, unref as e, createElementVNode as l, renderSlot as le, Fragment as se, renderList as ie, toDisplayString as w, createCommentVNode as E, createVNode as f } from "vue";
|
|
2
2
|
import U from "dayjs";
|
|
3
3
|
import { VftIcon as C } from "../../icon/index.js";
|
|
4
4
|
import { isArray as de } from "@vft/utils";
|
|
@@ -76,7 +76,7 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
76
76
|
(t) => {
|
|
77
77
|
!t && R.value.selecting && (Q(i.parsedValue), _(!1));
|
|
78
78
|
}
|
|
79
|
-
), d("set-picker-option", ["isValidValue", ce]), d("set-picker-option", ["formatToString", ae]), d("set-picker-option", ["parseUserInput", ne]), d("set-picker-option", ["handleClear", te]), (t, a) => (
|
|
79
|
+
), d("set-picker-option", ["isValidValue", ce]), d("set-picker-option", ["formatToString", ae]), d("set-picker-option", ["parseUserInput", ne]), d("set-picker-option", ["handleClear", te]), (t, a) => (m(), p("div", {
|
|
80
80
|
class: o([
|
|
81
81
|
e(r).b(),
|
|
82
82
|
e(g).b(),
|
|
@@ -91,17 +91,17 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
91
91
|
le(t.$slots, "sidebar", {
|
|
92
92
|
class: o(e(r).e("sidebar"))
|
|
93
93
|
}),
|
|
94
|
-
x.value ? (
|
|
94
|
+
x.value ? (m(), p("div", {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: o(e(r).e("sidebar"))
|
|
97
97
|
}, [
|
|
98
|
-
(
|
|
98
|
+
(m(!0), p(se, null, ie(e(I), (n, s) => (m(), p("button", {
|
|
99
99
|
key: s,
|
|
100
100
|
type: "button",
|
|
101
101
|
class: o(e(r).e("shortcut")),
|
|
102
102
|
onClick: (De) => e(G)(n)
|
|
103
|
-
},
|
|
104
|
-
], 2)) :
|
|
103
|
+
}, w(n.text), 11, ke))), 128))
|
|
104
|
+
], 2)) : E("", !0),
|
|
105
105
|
l("div", {
|
|
106
106
|
class: o(e(r).e("body"))
|
|
107
107
|
}, [
|
|
@@ -119,7 +119,7 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
119
119
|
}, [
|
|
120
120
|
f(e(C), { icon: "icon-d-arrow-left" })
|
|
121
121
|
], 2),
|
|
122
|
-
t.unlinkPanels ? (
|
|
122
|
+
t.unlinkPanels ? (m(), p("button", {
|
|
123
123
|
key: 0,
|
|
124
124
|
type: "button",
|
|
125
125
|
disabled: !k.value,
|
|
@@ -131,8 +131,8 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
131
131
|
(...n) => e(M) && e(M)(...n))
|
|
132
132
|
}, [
|
|
133
133
|
f(e(C), { icon: "icon-d-arrow-right" })
|
|
134
|
-
], 10, Ce)) :
|
|
135
|
-
l("div", null,
|
|
134
|
+
], 10, Ce)) : E("", !0),
|
|
135
|
+
l("div", null, w(e(W)), 1)
|
|
136
136
|
], 2),
|
|
137
137
|
f($, {
|
|
138
138
|
"selection-mode": "range",
|
|
@@ -152,7 +152,7 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
152
152
|
l("div", {
|
|
153
153
|
class: o(e(g).e("header"))
|
|
154
154
|
}, [
|
|
155
|
-
t.unlinkPanels ? (
|
|
155
|
+
t.unlinkPanels ? (m(), p("button", {
|
|
156
156
|
key: 0,
|
|
157
157
|
type: "button",
|
|
158
158
|
disabled: !k.value,
|
|
@@ -161,7 +161,7 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
161
161
|
(...n) => e(O) && e(O)(...n))
|
|
162
162
|
}, [
|
|
163
163
|
f(e(C), { icon: "icon-d-arrow-left" })
|
|
164
|
-
], 10, Pe)) :
|
|
164
|
+
], 10, Pe)) : E("", !0),
|
|
165
165
|
l("button", {
|
|
166
166
|
type: "button",
|
|
167
167
|
class: o([e(r).e("icon-btn"), "d-arrow-right"]),
|
|
@@ -170,7 +170,7 @@ const ke = ["onClick"], Ce = ["disabled"], Pe = ["disabled"], P = "year", ye = j
|
|
|
170
170
|
}, [
|
|
171
171
|
f(e(C), { icon: "icon-d-arrow-right" })
|
|
172
172
|
], 2),
|
|
173
|
-
l("div", null,
|
|
173
|
+
l("div", null, w(e(X)), 1)
|
|
174
174
|
], 2),
|
|
175
175
|
f($, {
|
|
176
176
|
"selection-mode": "range",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, ref as E, inject as z, toRef as I, computed as h, useSlots as ce, watch as ue,
|
|
1
|
+
import { defineComponent as M, ref as E, inject as z, toRef as I, computed as h, useSlots as ce, watch as ue, openBlock as u, createElementBlock as m, normalizeClass as r, createElementVNode as l, unref as e, renderSlot as me, Fragment as pe, renderList as fe, toDisplayString as N, createCommentVNode as L, createVNode as p } from "vue";
|
|
2
2
|
import J from "dayjs";
|
|
3
3
|
import { isArray as ge } from "@vft/utils";
|
|
4
4
|
import { VftIcon as y } from "../../icon/index.js";
|
|
@@ -101,7 +101,7 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
101
101
|
(t) => {
|
|
102
102
|
!t && S.value.selecting && (Z(i.parsedValue), Y(!1));
|
|
103
103
|
}
|
|
104
|
-
), d("set-picker-option", ["isValidValue", se]), d("set-picker-option", ["parseUserInput", oe]), d("set-picker-option", ["formatToString", le]), d("set-picker-option", ["handleClear", ie]), (t, a) => (
|
|
104
|
+
), d("set-picker-option", ["isValidValue", se]), d("set-picker-option", ["parseUserInput", oe]), d("set-picker-option", ["formatToString", le]), d("set-picker-option", ["handleClear", ie]), (t, a) => (u(), m("div", {
|
|
105
105
|
class: r(re.value)
|
|
106
106
|
}, [
|
|
107
107
|
l("div", {
|
|
@@ -110,17 +110,17 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
110
110
|
me(t.$slots, "sidebar", {
|
|
111
111
|
class: r(e(o).e("sidebar"))
|
|
112
112
|
}),
|
|
113
|
-
$.value ? (
|
|
113
|
+
$.value ? (u(), m("div", {
|
|
114
114
|
key: 0,
|
|
115
115
|
class: r(e(o).e("sidebar"))
|
|
116
116
|
}, [
|
|
117
|
-
(
|
|
117
|
+
(u(!0), m(pe, null, fe(e(x), (n, s) => (u(), m("button", {
|
|
118
118
|
key: s,
|
|
119
119
|
type: "button",
|
|
120
120
|
class: r(e(o).e("shortcut")),
|
|
121
121
|
onClick: (Ve) => e(X)(n)
|
|
122
|
-
},
|
|
123
|
-
], 2)) :
|
|
122
|
+
}, N(n.text), 11, De))), 128))
|
|
123
|
+
], 2)) : L("", !0),
|
|
124
124
|
l("div", {
|
|
125
125
|
class: r(e(o).e("body"))
|
|
126
126
|
}, [
|
|
@@ -138,7 +138,7 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
138
138
|
}, [
|
|
139
139
|
p(e(y), { icon: "icon-d-arrow-left" })
|
|
140
140
|
], 2),
|
|
141
|
-
t.unlinkPanels ? (
|
|
141
|
+
t.unlinkPanels ? (u(), m("button", {
|
|
142
142
|
key: 0,
|
|
143
143
|
type: "button",
|
|
144
144
|
disabled: !R.value,
|
|
@@ -147,8 +147,8 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
147
147
|
(...n) => e(F) && e(F)(...n))
|
|
148
148
|
}, [
|
|
149
149
|
p(e(y), { icon: "icon-d-arrow-right" })
|
|
150
|
-
], 10, _e)) :
|
|
151
|
-
l("div", null,
|
|
150
|
+
], 10, _e)) : L("", !0),
|
|
151
|
+
l("div", null, N(e(ee)), 1)
|
|
152
152
|
], 2),
|
|
153
153
|
p(H, {
|
|
154
154
|
"selection-mode": "range",
|
|
@@ -168,7 +168,7 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
168
168
|
l("div", {
|
|
169
169
|
class: r(e(b).e("header"))
|
|
170
170
|
}, [
|
|
171
|
-
t.unlinkPanels ? (
|
|
171
|
+
t.unlinkPanels ? (u(), m("button", {
|
|
172
172
|
key: 0,
|
|
173
173
|
type: "button",
|
|
174
174
|
disabled: !R.value,
|
|
@@ -177,7 +177,7 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
177
177
|
(...n) => e(U) && e(U)(...n))
|
|
178
178
|
}, [
|
|
179
179
|
p(e(y), { icon: "icon-d-arrow-left" })
|
|
180
|
-
], 10, Se)) :
|
|
180
|
+
], 10, Se)) : L("", !0),
|
|
181
181
|
l("button", {
|
|
182
182
|
type: "button",
|
|
183
183
|
class: r(B.value.arrowRightBtn),
|
|
@@ -186,7 +186,7 @@ const De = ["onClick"], _e = ["disabled"], Se = ["disabled"], f = 10, k = "year"
|
|
|
186
186
|
}, [
|
|
187
187
|
p(e(y), { icon: "icon-d-arrow-right" })
|
|
188
188
|
], 2),
|
|
189
|
-
l("div", null,
|
|
189
|
+
l("div", null, N(e(te)), 1)
|
|
190
190
|
], 2),
|
|
191
191
|
p(H, {
|
|
192
192
|
"selection-mode": "range",
|
|
@@ -4,14 +4,14 @@ import "../../config-provider/hooks/use-global-config.js";
|
|
|
4
4
|
import "vue";
|
|
5
5
|
import { buildProps as e, definePropType as o } from "../../../utils/vue/props/runtime.js";
|
|
6
6
|
import "../../form/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { datePickerSharedProps as t, selectionModeWithDefault as i } from "./shared.js";
|
|
8
8
|
const n = e({
|
|
9
|
-
...
|
|
9
|
+
...t,
|
|
10
10
|
cellClassName: {
|
|
11
11
|
type: o(Function)
|
|
12
12
|
},
|
|
13
13
|
showWeekNumber: Boolean,
|
|
14
|
-
selectionMode:
|
|
14
|
+
selectionMode: i("date")
|
|
15
15
|
}), d = ["changerange", "pick", "select"];
|
|
16
16
|
export {
|
|
17
17
|
d as basicDateTableEmits,
|
|
@@ -4,10 +4,10 @@ import "../../config-provider/hooks/use-global-config.js";
|
|
|
4
4
|
import "vue";
|
|
5
5
|
import { buildProps as o } from "../../../utils/vue/props/runtime.js";
|
|
6
6
|
import "../../form/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { datePickerSharedProps as t, selectionModeWithDefault as r } from "./shared.js";
|
|
8
8
|
const d = o({
|
|
9
|
-
...
|
|
10
|
-
selectionMode:
|
|
9
|
+
...t,
|
|
10
|
+
selectionMode: r("month")
|
|
11
11
|
});
|
|
12
12
|
export {
|
|
13
13
|
d as basicMonthTableProps
|
|
@@ -4,10 +4,10 @@ import "../../config-provider/hooks/use-global-config.js";
|
|
|
4
4
|
import "vue";
|
|
5
5
|
import { buildProps as o } from "../../../utils/vue/props/runtime.js";
|
|
6
6
|
import "../../form/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { datePickerSharedProps as r, selectionModeWithDefault as e } from "./shared.js";
|
|
8
8
|
const d = o({
|
|
9
|
-
...
|
|
10
|
-
selectionMode:
|
|
9
|
+
...r,
|
|
10
|
+
selectionMode: e("year")
|
|
11
11
|
});
|
|
12
12
|
export {
|
|
13
13
|
d as basicYearTableProps
|
|
@@ -11,7 +11,7 @@ import { useNamespace as B } from "../../hooks/use-namespace/index.js";
|
|
|
11
11
|
import "../../hooks/use-model-toggle/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import
|
|
14
|
+
import G from "../../locale/use-locale.js";
|
|
15
15
|
import v from "dayjs";
|
|
16
16
|
const J = F({
|
|
17
17
|
name: "vft-date-time-select"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, useSlots as x, getCurrentInstance as B, provide as E, computed as w,
|
|
1
|
+
import { defineComponent as g, useSlots as x, getCurrentInstance as B, provide as E, computed as w, openBlock as p, createElementBlock as u, normalizeClass as i, unref as a, createElementVNode as m, renderSlot as b, createTextVNode as v, toDisplayString as y, createCommentVNode as z, Fragment as V, renderList as D, createBlock as I } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, inject as m,
|
|
1
|
+
import { defineComponent as y, inject as m, unref as r, openBlock as e, createElementBlock as l, Fragment as n, createElementVNode as s, renderList as a, createBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import c from "./descriptions-cell.js";
|
|
3
3
|
import { descriptionsKey as f } from "./token.js";
|
|
4
4
|
const k = { key: 1 }, g = y({
|
|
@@ -10,9 +10,9 @@ const k = { key: 1 }, g = y({
|
|
|
10
10
|
},
|
|
11
11
|
setup(u) {
|
|
12
12
|
const d = m(f, {});
|
|
13
|
-
return (_, w) =>
|
|
13
|
+
return (_, w) => r(d).direction === "vertical" ? (e(), l(n, { key: 0 }, [
|
|
14
14
|
s("tr", null, [
|
|
15
|
-
(e(!0),
|
|
15
|
+
(e(!0), l(n, null, a(u.row, (t, o) => (e(), i(r(c), {
|
|
16
16
|
key: `tr1-${o}`,
|
|
17
17
|
cell: t,
|
|
18
18
|
tag: "th",
|
|
@@ -20,29 +20,29 @@ const k = { key: 1 }, g = y({
|
|
|
20
20
|
}, null, 8, ["cell"]))), 128))
|
|
21
21
|
]),
|
|
22
22
|
s("tr", null, [
|
|
23
|
-
(e(!0),
|
|
23
|
+
(e(!0), l(n, null, a(u.row, (t, o) => (e(), i(r(c), {
|
|
24
24
|
key: `tr2-${o}`,
|
|
25
25
|
cell: t,
|
|
26
26
|
tag: "td",
|
|
27
27
|
type: "content"
|
|
28
28
|
}, null, 8, ["cell"]))), 128))
|
|
29
29
|
])
|
|
30
|
-
], 64)) : (e(),
|
|
31
|
-
(e(!0),
|
|
30
|
+
], 64)) : (e(), l("tr", k, [
|
|
31
|
+
(e(!0), l(n, null, a(u.row, (t, o) => (e(), l(n, {
|
|
32
32
|
key: `tr3-${o}`
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
p(
|
|
34
|
+
r(d).border ? (e(), l(n, { key: 0 }, [
|
|
35
|
+
p(r(c), {
|
|
36
36
|
cell: t,
|
|
37
37
|
tag: "td",
|
|
38
38
|
type: "label"
|
|
39
39
|
}, null, 8, ["cell"]),
|
|
40
|
-
p(
|
|
40
|
+
p(r(c), {
|
|
41
41
|
cell: t,
|
|
42
42
|
tag: "td",
|
|
43
43
|
type: "content"
|
|
44
44
|
}, null, 8, ["cell"])
|
|
45
|
-
], 64)) : (e(), i(
|
|
45
|
+
], 64)) : (e(), i(r(c), {
|
|
46
46
|
key: 1,
|
|
47
47
|
cell: t,
|
|
48
48
|
tag: "td",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, inject as u, computed as a,
|
|
1
|
+
import { defineComponent as C, inject as u, computed as a, openBlock as r, createElementBlock as g, normalizeStyle as E, unref as t, normalizeClass as s, createElementVNode as n, renderSlot as i, toDisplayString as N, createBlock as P, mergeProps as S, createCommentVNode as y } from "vue";
|
|
2
2
|
import { singleAttrToObj as T } from "@vft/utils";
|
|
3
3
|
import { VftIcon as j } from "../icon/index.js";
|
|
4
4
|
import "../focus-trap/focus-trap.vue2.js";
|
|
@@ -69,9 +69,9 @@ const A = ["id"], F = C({
|
|
|
69
69
|
n("span", {
|
|
70
70
|
role: "heading",
|
|
71
71
|
class: s(t(o).e("title"))
|
|
72
|
-
},
|
|
72
|
+
}, N(e.title), 3)
|
|
73
73
|
]),
|
|
74
|
-
e.showClose ? (r(),
|
|
74
|
+
e.showClose ? (r(), P(t(j), S({
|
|
75
75
|
key: 0,
|
|
76
76
|
class: [t(o).e("headerbtn")],
|
|
77
77
|
onClick: m[0] || (m[0] = (J) => l.$emit("close"))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, ref as c, getCurrentInstance as O, provide as N, computed as q,
|
|
1
|
+
import { defineComponent as B, ref as c, getCurrentInstance as O, provide as N, computed as q, openBlock as b, createBlock as g, unref as e, withCtx as t, createVNode as m, Transition as j, normalizeProps as x, guardReactiveProps as K, withDirectives as L, createElementVNode as U, normalizeStyle as G, normalizeClass as H, mergeProps as J, createSlots as Q, renderSlot as d, createCommentVNode as W, vShow as X } from "vue";
|
|
2
2
|
import Y from "../focus-trap/focus-trap.vue.js";
|
|
3
3
|
import "../focus-trap/utils.js";
|
|
4
4
|
import { VftOverlay as Z } from "../overlay/index.js";
|
|
@@ -100,7 +100,7 @@ const re = ["aria-label", "aria-labelledby", "aria-describedby"], de = B({
|
|
|
100
100
|
i.value?.resetPosition();
|
|
101
101
|
},
|
|
102
102
|
handleClose: f
|
|
103
|
-
}), (l, s) => (
|
|
103
|
+
}), (l, s) => (b(), g(e(_), {
|
|
104
104
|
to: o.appendTo,
|
|
105
105
|
disabled: o.appendTo !== "body" ? !1 : !o.appendToBody
|
|
106
106
|
}, {
|
|
@@ -143,7 +143,7 @@ const re = ["aria-label", "aria-labelledby", "aria-describedby"], de = B({
|
|
|
143
143
|
onReleaseRequested: e(D)
|
|
144
144
|
}, {
|
|
145
145
|
default: t(() => [
|
|
146
|
-
e(v) ? (
|
|
146
|
+
e(v) ? (b(), g(se, J({
|
|
147
147
|
key: 0,
|
|
148
148
|
ref_key: "dialogContentRef",
|
|
149
149
|
ref: i
|
|
@@ -160,7 +160,7 @@ const re = ["aria-label", "aria-labelledby", "aria-describedby"], de = B({
|
|
|
160
160
|
"show-close": o.showClose,
|
|
161
161
|
title: o.title,
|
|
162
162
|
onClose: e(f)
|
|
163
|
-
}),
|
|
163
|
+
}), Q({
|
|
164
164
|
header: t(() => [
|
|
165
165
|
l.$slots.title ? d(l.$slots, "title", { key: 1 }) : d(l.$slots, "header", {
|
|
166
166
|
key: 0,
|
|
@@ -181,7 +181,7 @@ const re = ["aria-label", "aria-labelledby", "aria-describedby"], de = B({
|
|
|
181
181
|
]),
|
|
182
182
|
key: "0"
|
|
183
183
|
} : void 0
|
|
184
|
-
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "onClose"])) :
|
|
184
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "onClose"])) : W("", !0)
|
|
185
185
|
]),
|
|
186
186
|
_: 3
|
|
187
187
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, computed as m,
|
|
1
|
+
import { defineComponent as a, computed as m, openBlock as i, createElementBlock as n, normalizeStyle as c, normalizeClass as l, unref as r, renderSlot as s, createCommentVNode as u } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -29,17 +29,17 @@ const v = a({
|
|
|
29
29
|
"margin-x": e.marginX
|
|
30
30
|
})
|
|
31
31
|
}));
|
|
32
|
-
return (o, y) => (
|
|
32
|
+
return (o, y) => (i(), n("div", {
|
|
33
33
|
class: l([r(t).b(), r(t).m(e.direction)]),
|
|
34
34
|
style: c(d.value),
|
|
35
35
|
role: "separator"
|
|
36
36
|
}, [
|
|
37
|
-
o.$slots.default && e.direction !== "vertical" ? (
|
|
37
|
+
o.$slots.default && e.direction !== "vertical" ? (i(), n("div", {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: l([r(t).e("text"), r(t).is(e.contentPosition)])
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
], 2)) :
|
|
41
|
+
s(o.$slots, "default")
|
|
42
|
+
], 2)) : u("", !0)
|
|
43
43
|
], 6));
|
|
44
44
|
}
|
|
45
45
|
});
|