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 o,
|
|
1
|
+
import { defineComponent as o, openBlock as m, createElementBlock as i, normalizeClass as f, unref as u, renderSlot as _ } from "vue";
|
|
2
2
|
import { collapseEmits as d, collapseProps as C } from "./collapse.js";
|
|
3
3
|
import { useCollapse as v, useCollapseDOM as k } from "./use-collapse.js";
|
|
4
4
|
const x = o({
|
|
@@ -14,7 +14,7 @@ const x = o({
|
|
|
14
14
|
activeNames: a,
|
|
15
15
|
/** @description set active names */
|
|
16
16
|
setActiveNames: n
|
|
17
|
-
}), (c, B) => (
|
|
17
|
+
}), (c, B) => (m(), i("div", {
|
|
18
18
|
class: f(u(p))
|
|
19
19
|
}, [
|
|
20
20
|
_(c.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -33,7 +33,7 @@ const f = o({
|
|
|
33
33
|
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
return (t, c) => (
|
|
36
|
+
return (t, c) => (e(), s(i, n({
|
|
37
37
|
name: r(a).b()
|
|
38
38
|
}, p(d)), {
|
|
39
39
|
default: m(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, ref as c, reactive as ce, computed as h, onMounted as ue, watch as C, nextTick as V, provide as me,
|
|
1
|
+
import { defineComponent as j, ref as c, reactive as ce, computed as h, onMounted as ue, watch as C, nextTick as V, provide as me, openBlock as d, createBlock as y, unref as e, withCtx as E, createElementVNode as u, withKeys as H, normalizeClass as r, createElementBlock as M, createCommentVNode as x, normalizeStyle as de, withDirectives as O, createVNode as p, vShow as pe, createTextVNode as R, toDisplayString as U } from "vue";
|
|
2
2
|
import { ClickOutside as fe } from "@vft/directives";
|
|
3
3
|
import { VftButton as _ } from "../button/index.js";
|
|
4
4
|
import "../form/index.js";
|
|
@@ -21,7 +21,7 @@ import Ve from "./components/predefine.vue.js";
|
|
|
21
21
|
import ye from "./components/sv-panel.vue.js";
|
|
22
22
|
import { colorPickerContextKey as Ee } from "./contants.js";
|
|
23
23
|
import z from "./utils/color.js";
|
|
24
|
-
import
|
|
24
|
+
import xe from "../../locale/use-locale.js";
|
|
25
25
|
import { useFormItem as Ae, useFormItemInputId as Ie } from "../form/hooks/use-form-item.js";
|
|
26
26
|
import { useFormSize as Se, useFormDisabled as $e } from "../form/hooks/use-form-common-props.js";
|
|
27
27
|
const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], ze = j({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p,
|
|
1
|
+
import { defineComponent as p, openBlock as C, createElementBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
|
|
2
2
|
import { useAlphaSlider as v, useAlphaSliderDOM as A } from "../composables/use-alpha-slider.js";
|
|
3
3
|
const E = "VftColorAlphaSlider", N = p({
|
|
4
4
|
name: E
|
|
@@ -30,7 +30,7 @@ const E = "VftColorAlphaSlider", N = p({
|
|
|
30
30
|
* @type {HTMLElement}
|
|
31
31
|
*/
|
|
32
32
|
thumb: t
|
|
33
|
-
}), (x, a) => (
|
|
33
|
+
}), (x, a) => (C(), S("div", {
|
|
34
34
|
class: r(e(d))
|
|
35
35
|
}, [
|
|
36
36
|
n("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import s from "./hue-slider.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as t, createElementBlock as a, normalizeClass as l, createElementVNode as n, normalizeStyle as i } from "vue";
|
|
3
3
|
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function p(e, r, f, d, u, b) {
|
|
5
|
-
return
|
|
5
|
+
return t(), a("div", {
|
|
6
6
|
class: l([e.ns.b(), e.ns.is("vertical", e.vertical)])
|
|
7
7
|
}, [
|
|
8
8
|
n("div", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t from "./predefine.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as r, createElementBlock as l, normalizeClass as s, createElementVNode as a, Fragment as c, renderList as d, normalizeStyle as i } from "vue";
|
|
3
3
|
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const m = ["onClick"];
|
|
5
5
|
function u(e, f, k, v, h, C) {
|
|
6
|
-
return
|
|
6
|
+
return r(), l("div", {
|
|
7
7
|
class: s(e.ns.b())
|
|
8
8
|
}, [
|
|
9
9
|
a("div", {
|
|
10
10
|
class: s(e.ns.e("colors"))
|
|
11
11
|
}, [
|
|
12
|
-
(
|
|
12
|
+
(r(!0), l(c, null, d(e.rgbaColors, (o, n) => (r(), l("div", {
|
|
13
13
|
key: e.colors[n],
|
|
14
14
|
class: s([
|
|
15
15
|
e.ns.e("color-selector"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import n from "./sv-panel.vue2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as a, createElementBlock as t, normalizeStyle as s, normalizeClass as o, createElementVNode as r } from "vue";
|
|
3
3
|
import i from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
function p(e, l, u, d, c, m) {
|
|
5
|
-
return
|
|
5
|
+
return a(), t("div", {
|
|
6
6
|
class: o(e.ns.b()),
|
|
7
7
|
style: s({
|
|
8
8
|
backgroundColor: e.background
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, watch as m, computed as d, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p,
|
|
1
|
+
import { defineComponent as s, watch as m, computed as d, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, openBlock as v, createElementBlock as b, normalizeStyle as k, normalizeClass as C, unref as V, renderSlot as y } from "vue";
|
|
2
2
|
import { inBrowser as S, kebabCase as B } from "@vft/utils";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import { provideGlobalConfig as E } from "./hooks/use-global-config.js";
|
|
@@ -69,7 +69,7 @@ const z = s({
|
|
|
69
69
|
}), a;
|
|
70
70
|
}
|
|
71
71
|
const l = p();
|
|
72
|
-
return E(l.props), (e, a) => (
|
|
72
|
+
return E(l.props), (e, a) => (v(), b("div", {
|
|
73
73
|
class: C([V(i).b(), { "vft-dark": t.theme === "dark" }]),
|
|
74
74
|
style: k(c.value)
|
|
75
75
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keysOf as c } from "@vft/utils";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import { debugWarn as v } from "../../../utils/error.js";
|
|
4
|
-
import { ref as g, getCurrentInstance as f, computed as t, unref as p,
|
|
4
|
+
import { ref as g, getCurrentInstance as f, computed as t, unref as p, inject as C, provide as x } from "vue";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "../../form/index.js";
|
|
7
7
|
import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
|
|
@@ -11,7 +11,7 @@ import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from
|
|
|
11
11
|
import { configProviderContextKey as m, localeContextKey as S } from "../constants.js";
|
|
12
12
|
const s = g();
|
|
13
13
|
function d(o, e = void 0) {
|
|
14
|
-
const n = f() ?
|
|
14
|
+
const n = f() ? C(m, s) : s;
|
|
15
15
|
return o ? t(() => n?.value?.[o] ?? e) : n;
|
|
16
16
|
}
|
|
17
17
|
function D(o) {
|
|
@@ -27,7 +27,7 @@ function D(o) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const j = (o, e, n = !1) => {
|
|
30
|
-
const r = !!f(), i = r ? d() : void 0, l = e?.provide ?? (r ?
|
|
30
|
+
const r = !!f(), i = r ? d() : void 0, l = e?.provide ?? (r ? x : void 0);
|
|
31
31
|
if (!l) {
|
|
32
32
|
v(
|
|
33
33
|
"provideGlobalConfig",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, computed as i,
|
|
1
|
+
import { defineComponent as o, computed as i, openBlock as m, createElementBlock as a, normalizeStyle as n, normalizeClass as l, unref as p, renderSlot as c } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { addUnit as d } from "../../utils/helper.js";
|
|
@@ -19,7 +19,7 @@ const u = o({
|
|
|
19
19
|
const e = f("aside"), r = i(
|
|
20
20
|
() => t.width ? e.cssVarBlock({ width: d(t.width) }) : {}
|
|
21
21
|
);
|
|
22
|
-
return (s, h) => (
|
|
22
|
+
return (s, h) => (m(), a("aside", {
|
|
23
23
|
class: l(p(e).b()),
|
|
24
24
|
style: n(r.value)
|
|
25
25
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, useSlots as l, computed as m,
|
|
1
|
+
import { defineComponent as a, useSlots as l, computed as m, openBlock as f, createElementBlock as u, normalizeClass as p, unref as i, renderSlot as d } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -20,7 +20,7 @@ const _ = a({
|
|
|
20
20
|
const s = n.type.name;
|
|
21
21
|
return s === "vft-header" || s === "vft-footer";
|
|
22
22
|
}) : !1);
|
|
23
|
-
return (r, n) => (
|
|
23
|
+
return (r, n) => (f(), u("section", {
|
|
24
24
|
class: p([i(o).b(), i(o).is("vertical", c.value)])
|
|
25
25
|
}, [
|
|
26
26
|
d(r.$slots, "default")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, computed as s,
|
|
1
|
+
import { defineComponent as o, computed as s, openBlock as i, createElementBlock as n, normalizeStyle as a, normalizeClass as l, unref as p, renderSlot as c } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { addUnit as f } from "../../utils/helper.js";
|
|
@@ -19,7 +19,7 @@ const h = o({
|
|
|
19
19
|
const e = u("footer"), r = s(
|
|
20
20
|
() => t.height ? e.cssVarBlock({ height: f(t.height) }) : {}
|
|
21
21
|
);
|
|
22
|
-
return (m, d) => (
|
|
22
|
+
return (m, d) => (i(), n("footer", {
|
|
23
23
|
class: l(p(e).b()),
|
|
24
24
|
style: a(r.value)
|
|
25
25
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r, computed as a,
|
|
1
|
+
import { defineComponent as r, computed as a, openBlock as n, createElementBlock as s, normalizeStyle as i, normalizeClass as l, unref as p, renderSlot as c } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import { addUnit as h } from "../../utils/helper.js";
|
|
@@ -19,7 +19,7 @@ const u = r({
|
|
|
19
19
|
const t = d("header"), o = a(() => e.height ? t.cssVarBlock({
|
|
20
20
|
height: h(e.height)
|
|
21
21
|
}) : {});
|
|
22
|
-
return (m, f) => (
|
|
22
|
+
return (m, f) => (n(), s("header", {
|
|
23
23
|
class: l(p(t).b()),
|
|
24
24
|
style: i(o.value)
|
|
25
25
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, openBlock as r, createElementBlock as m, normalizeClass as n, unref as p, renderSlot as s } from "vue";
|
|
2
2
|
import "@vueuse/core";
|
|
3
3
|
import "@vft/utils";
|
|
4
4
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -14,7 +14,7 @@ const i = t({
|
|
|
14
14
|
...i,
|
|
15
15
|
setup(c) {
|
|
16
16
|
const e = a("main");
|
|
17
|
-
return (o, f) => (
|
|
17
|
+
return (o, f) => (r(), m("main", {
|
|
18
18
|
ref: "testRef",
|
|
19
19
|
class: n(p(e).b())
|
|
20
20
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as a, computed as k,
|
|
1
|
+
import { defineComponent as p, ref as a, computed as k, openBlock as r, createBlock as c, Transition as C, withCtx as b, withDirectives as g, createElementVNode as d, normalizeClass as z, unref as m, withModifiers as M, normalizeStyle as $, createElementBlock as B, Fragment as E, renderList as S, vShow as F } from "vue";
|
|
2
2
|
import { useTimeoutFn as H, useClickAway as I, useEventListener as f } from "@vft/use";
|
|
3
3
|
import { VftMenuItem as L } from "../menu/index.js";
|
|
4
4
|
import "@vueuse/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as _, computed as h, onMounted as x, watch as y, onBeforeUnmount as C,
|
|
1
|
+
import { defineComponent as p, ref as _, computed as h, onMounted as x, watch as y, onBeforeUnmount as C, openBlock as E, createBlock as S, unref as A, createSlots as B, renderList as F, withCtx as k, renderSlot as D } from "vue";
|
|
2
2
|
import { VftStatistic as N } from "../statistic/index.js";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "@vft/utils";
|
|
@@ -44,7 +44,7 @@ const L = p({
|
|
|
44
44
|
* @description current display value
|
|
45
45
|
*/
|
|
46
46
|
displayValue: w
|
|
47
|
-
}), (t, n) => (
|
|
47
|
+
}), (t, n) => (E(), S(A(N), {
|
|
48
48
|
value: i.value,
|
|
49
49
|
title: t.title,
|
|
50
50
|
prefix: t.prefix,
|
|
@@ -179,7 +179,7 @@ export declare const useBasicDateTableDOM: (props: BasicDateTableProps, { isCurr
|
|
|
179
179
|
tableKls: import("vue").ComputedRef<(string | {
|
|
180
180
|
'is-week-mode': boolean;
|
|
181
181
|
})[]>;
|
|
182
|
-
tableLabel: import("vue").ComputedRef<
|
|
182
|
+
tableLabel: import("vue").ComputedRef<string>;
|
|
183
183
|
weekHeaderClass: string;
|
|
184
184
|
getCellClasses: (cell: DateCell) => string;
|
|
185
185
|
getRowKls: (cell: DateCell) => (string | {
|
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
1
|
+
import { ref as k, computed as m, unref as r, watch as Z, nextTick as ee } from "vue";
|
|
2
|
+
import A from "dayjs";
|
|
3
3
|
import { flatten as te, isArray as ae } from "lodash-es";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import "@vft/utils";
|
|
6
|
-
import { castArray as
|
|
6
|
+
import { castArray as x } from "../../../utils/helper.js";
|
|
7
7
|
import "../../form/index.js";
|
|
8
8
|
import { useNamespace as se } 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
|
|
13
|
-
import { buildPickerTable as
|
|
14
|
-
const
|
|
15
|
-
const { t:
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
const e =
|
|
12
|
+
import E from "../../../locale/use-locale.js";
|
|
13
|
+
import { buildPickerTable as ne } from "../utils.js";
|
|
14
|
+
const N = (a = "") => ["normal", "today"].includes(a), be = (a, f) => {
|
|
15
|
+
const { t: v } = E(), D = k("zh-cn"), y = k(), b = k(), g = k(), w = k(), C = k([[], [], [], [], [], []]);
|
|
16
|
+
let o = !1;
|
|
17
|
+
const c = a.date.$locale().weekStart || 7, S = a.date.locale("zh-cn").localeData().weekdaysShort().map((e) => e.toLowerCase()), O = m(() => c > 3 ? 7 - c : -c), R = m(() => {
|
|
18
|
+
const e = a.date.startOf("month");
|
|
19
19
|
return e.subtract(e.day() || 7, "day");
|
|
20
|
-
}), L =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
)),
|
|
24
|
-
const e =
|
|
20
|
+
}), L = m(() => S.concat(S).slice(
|
|
21
|
+
c,
|
|
22
|
+
c + 7
|
|
23
|
+
)), V = m(() => te(r(M)).some((e) => e.isCurrent)), K = m(() => {
|
|
24
|
+
const e = a.date.startOf("month"), t = e.day() || 7, s = e.daysInMonth(), n = e.subtract(1, "month").daysInMonth();
|
|
25
25
|
return {
|
|
26
|
-
startOfMonthDay:
|
|
27
|
-
dateCountOfMonth:
|
|
28
|
-
dateCountOfLastMonth:
|
|
26
|
+
startOfMonthDay: t,
|
|
27
|
+
dateCountOfMonth: s,
|
|
28
|
+
dateCountOfLastMonth: n
|
|
29
29
|
};
|
|
30
|
-
}), F =
|
|
31
|
-
const { startOfMonthDay:
|
|
32
|
-
if (
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
return e.text =
|
|
36
|
-
e.text =
|
|
30
|
+
}), F = m(() => a.selectionMode === "dates" ? x(a.parsedValue) : []), _ = (e, { count: t, rowIndex: s, columnIndex: n }) => {
|
|
31
|
+
const { startOfMonthDay: l, dateCountOfMonth: i, dateCountOfLastMonth: u } = r(K), h = r(O);
|
|
32
|
+
if (s >= 0 && s <= 1) {
|
|
33
|
+
const d = l + h < 0 ? 7 + l + h : l + h;
|
|
34
|
+
if (n + s * 7 >= d)
|
|
35
|
+
return e.text = t, !0;
|
|
36
|
+
e.text = u - (d - n % 7) + 1 + s * 7, e.type = "prev-month";
|
|
37
37
|
} else
|
|
38
|
-
return
|
|
38
|
+
return t <= i ? e.text = t : (e.text = t - i, e.type = "next-month"), !0;
|
|
39
39
|
return !1;
|
|
40
|
-
}, $ = (e, { columnIndex:
|
|
41
|
-
const { disabledDate:
|
|
42
|
-
return e.selected =
|
|
40
|
+
}, $ = (e, { columnIndex: t, rowIndex: s }, n) => {
|
|
41
|
+
const { disabledDate: l, cellClassName: i } = a, u = r(F), h = _(e, { count: n, rowIndex: s, columnIndex: t }), d = e.dayjs.toDate();
|
|
42
|
+
return e.selected = u.find((Y) => Y.isSame(e.dayjs, "day")), e.isSelected = !!e.selected, e.isCurrent = W(e), e.disabled = l?.(d), e.customClass = i?.(d), h;
|
|
43
43
|
}, z = (e) => {
|
|
44
|
-
if (
|
|
45
|
-
const [
|
|
46
|
-
e[
|
|
44
|
+
if (a.selectionMode === "week") {
|
|
45
|
+
const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = j(e[t + 1]);
|
|
46
|
+
e[t].inRange = n, e[t].start = n, e[s].inRange = n, e[s].end = n;
|
|
47
47
|
}
|
|
48
|
-
},
|
|
49
|
-
const { minDate: e, maxDate:
|
|
50
|
-
let
|
|
51
|
-
if (
|
|
48
|
+
}, M = m(() => {
|
|
49
|
+
const { minDate: e, maxDate: t, rangeState: s, showWeekNumber: n } = a, l = r(O), i = r(C), u = "day";
|
|
50
|
+
let h = 1;
|
|
51
|
+
if (ne({ row: 6, column: 7 }, i, {
|
|
52
52
|
startDate: e,
|
|
53
|
-
columnIndexOffset:
|
|
54
|
-
nextEndDate:
|
|
55
|
-
now:
|
|
56
|
-
unit:
|
|
57
|
-
relativeDateGetter: (
|
|
58
|
-
setCellMetadata: (...
|
|
59
|
-
$(...
|
|
53
|
+
columnIndexOffset: n ? 1 : 0,
|
|
54
|
+
nextEndDate: s.endDate || t || s.selecting && e || null,
|
|
55
|
+
now: A().locale(r(D)).startOf(u),
|
|
56
|
+
unit: u,
|
|
57
|
+
relativeDateGetter: (d) => r(R).add(d - l, u),
|
|
58
|
+
setCellMetadata: (...d) => {
|
|
59
|
+
$(...d, h) && (h += 1);
|
|
60
60
|
},
|
|
61
61
|
setRowMetadata: z
|
|
62
|
-
}),
|
|
63
|
-
for (let
|
|
64
|
-
|
|
62
|
+
}), n)
|
|
63
|
+
for (let d = 0; d < 6; d++)
|
|
64
|
+
i[d][1].dayjs && (i[d][0] = {
|
|
65
65
|
type: "week",
|
|
66
|
-
text:
|
|
66
|
+
text: i[d][1].dayjs.week()
|
|
67
67
|
});
|
|
68
|
-
return
|
|
68
|
+
return i;
|
|
69
69
|
});
|
|
70
70
|
Z(
|
|
71
|
-
() =>
|
|
71
|
+
() => a.date,
|
|
72
72
|
async () => {
|
|
73
|
-
r(
|
|
73
|
+
r(y)?.contains(document.activeElement) && (await ee(), await T());
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
return r(
|
|
76
|
+
const T = async () => r(b)?.focus(), W = (e) => a.selectionMode === "date" && N(e.type) && B(e, a.parsedValue), B = (e, t) => t ? A(t).locale(r(D)).isSame(a.date.date(Number(e.text)), "day") : !1, P = (e, t) => {
|
|
77
|
+
const s = e * 7 + (t - (a.showWeekNumber ? 1 : 0)) - r(O);
|
|
78
|
+
return r(R).add(s, "day");
|
|
79
79
|
}, U = (e) => {
|
|
80
|
-
if (!
|
|
81
|
-
let
|
|
82
|
-
if (
|
|
83
|
-
const
|
|
84
|
-
r(
|
|
80
|
+
if (!a.rangeState.selecting) return;
|
|
81
|
+
let t = e.target;
|
|
82
|
+
if (t.tagName === "SPAN" && (t = t.parentNode?.parentNode), t.tagName === "DIV" && (t = t.parentNode), t.tagName !== "TD") return;
|
|
83
|
+
const s = t.parentNode.rowIndex - 1, n = t.cellIndex;
|
|
84
|
+
r(M)[s][n].disabled || (s !== r(g) || n !== r(w)) && (g.value = s, w.value = n, f("changerange", {
|
|
85
85
|
selecting: !0,
|
|
86
|
-
endDate:
|
|
86
|
+
endDate: P(s, n)
|
|
87
87
|
}));
|
|
88
|
-
}, G = (e) => !r(
|
|
89
|
-
|
|
88
|
+
}, G = (e) => !r(V) && e?.text === 1 && e.type === "normal" || e.isCurrent, H = (e) => {
|
|
89
|
+
o || r(V) || a.selectionMode !== "date" || I(e, !0);
|
|
90
90
|
}, p = (e) => {
|
|
91
|
-
e.target.closest("td") && (
|
|
91
|
+
e.target.closest("td") && (o = !0);
|
|
92
92
|
}, q = (e) => {
|
|
93
|
-
e.target.closest("td") && (
|
|
93
|
+
e.target.closest("td") && (o = !1);
|
|
94
94
|
}, J = (e) => {
|
|
95
|
-
!
|
|
95
|
+
!a.rangeState.selecting || !a.minDate ? (f("pick", { minDate: e, maxDate: null }), f("select", !0)) : (e >= a.minDate ? f("pick", { minDate: a.minDate, maxDate: e }) : f("pick", { minDate: e, maxDate: a.minDate }), f("select", !1));
|
|
96
96
|
}, Q = (e) => {
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
const t = e.week(), s = `${e.year()}w${t}`;
|
|
98
|
+
f("pick", {
|
|
99
99
|
year: e.year(),
|
|
100
|
-
week:
|
|
101
|
-
value:
|
|
100
|
+
week: t,
|
|
101
|
+
value: s,
|
|
102
102
|
date: e.startOf("week")
|
|
103
103
|
});
|
|
104
|
-
}, X = (e,
|
|
105
|
-
const
|
|
106
|
-
(
|
|
107
|
-
) :
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
const
|
|
111
|
-
if (!
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
const
|
|
115
|
-
switch (
|
|
104
|
+
}, X = (e, t) => {
|
|
105
|
+
const s = t ? x(a.parsedValue).filter(
|
|
106
|
+
(n) => n?.valueOf() !== e.valueOf()
|
|
107
|
+
) : x(a.parsedValue).concat([e]);
|
|
108
|
+
f("pick", s);
|
|
109
|
+
}, I = (e, t = !1) => {
|
|
110
|
+
const s = e.target.closest("td");
|
|
111
|
+
if (!s) return;
|
|
112
|
+
const n = s.parentNode.rowIndex - 1, l = s.cellIndex, i = r(M)[n][l];
|
|
113
|
+
if (i.disabled || i.type === "week") return;
|
|
114
|
+
const u = P(n, l);
|
|
115
|
+
switch (a.selectionMode) {
|
|
116
116
|
case "range": {
|
|
117
|
-
J(
|
|
117
|
+
J(u);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
case "date": {
|
|
121
|
-
|
|
121
|
+
f("pick", u, t);
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
case "week": {
|
|
125
|
-
Q(
|
|
125
|
+
Q(u);
|
|
126
126
|
break;
|
|
127
127
|
}
|
|
128
128
|
case "dates": {
|
|
129
|
-
X(
|
|
129
|
+
X(u, !!i.selected);
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
},
|
|
134
|
-
if (
|
|
135
|
-
let
|
|
136
|
-
if (e.type === "prev-month" && (
|
|
137
|
-
const
|
|
138
|
-
return
|
|
133
|
+
}, j = (e) => {
|
|
134
|
+
if (a.selectionMode !== "week") return !1;
|
|
135
|
+
let t = a.date.startOf("day");
|
|
136
|
+
if (e.type === "prev-month" && (t = t.subtract(1, "month")), e.type === "next-month" && (t = t.add(1, "month")), t = t.date(Number.parseInt(e.text, 10)), a.parsedValue && !ae(a.parsedValue)) {
|
|
137
|
+
const s = (a.parsedValue.day() - c + 7) % 7 - 1;
|
|
138
|
+
return a.parsedValue.subtract(s, "day").isSame(t, "day");
|
|
139
139
|
}
|
|
140
140
|
return !1;
|
|
141
141
|
};
|
|
142
142
|
return {
|
|
143
143
|
WEEKS: L,
|
|
144
|
-
rows:
|
|
145
|
-
tbodyRef:
|
|
146
|
-
currentCellRef:
|
|
144
|
+
rows: M,
|
|
145
|
+
tbodyRef: y,
|
|
146
|
+
currentCellRef: b,
|
|
147
147
|
// cellMatchesDate,
|
|
148
148
|
// getDateOfCell,
|
|
149
|
-
focus:
|
|
150
|
-
isCurrent:
|
|
151
|
-
isWeekActive:
|
|
149
|
+
focus: T,
|
|
150
|
+
isCurrent: W,
|
|
151
|
+
isWeekActive: j,
|
|
152
152
|
isSelectedCell: G,
|
|
153
|
-
handlePickDate:
|
|
153
|
+
handlePickDate: I,
|
|
154
154
|
handleMouseUp: q,
|
|
155
155
|
handleMouseDown: p,
|
|
156
156
|
handleMouseMove: U,
|
|
157
157
|
handleFocus: H
|
|
158
158
|
};
|
|
159
|
-
},
|
|
160
|
-
isCurrent:
|
|
161
|
-
isWeekActive:
|
|
159
|
+
}, ge = (a, {
|
|
160
|
+
isCurrent: f,
|
|
161
|
+
isWeekActive: v
|
|
162
162
|
}) => {
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
{ "is-week-mode":
|
|
166
|
-
]),
|
|
167
|
-
const
|
|
168
|
-
return
|
|
169
|
-
}, C = (
|
|
170
|
-
|
|
171
|
-
{ current:
|
|
163
|
+
const { t: D } = E(), y = se("date-table"), b = m(() => [
|
|
164
|
+
y.b(),
|
|
165
|
+
{ "is-week-mode": a.selectionMode === "week" }
|
|
166
|
+
]), g = m(() => D("vft.datePicker.dateTableLabel")), w = (o) => {
|
|
167
|
+
const c = [];
|
|
168
|
+
return N(o.type) && !o.disabled ? (c.push("available"), o.type === "today" && c.push("today")) : c.push(o.type), f(o) && c.push("current"), o.inRange && (N(o.type) || a.selectionMode === "week") && (c.push("in-range"), o.start && c.push("start-date"), o.end && c.push("end-date")), o.disabled && c.push("disabled"), o.selected && c.push("selected"), o.customClass && c.push(o.customClass), c.join(" ");
|
|
169
|
+
}, C = (o) => [
|
|
170
|
+
y.e("row"),
|
|
171
|
+
{ current: v(o) }
|
|
172
172
|
];
|
|
173
173
|
return {
|
|
174
|
-
tableKls:
|
|
175
|
-
tableLabel:
|
|
176
|
-
weekHeaderClass:
|
|
177
|
-
getCellClasses:
|
|
174
|
+
tableKls: b,
|
|
175
|
+
tableLabel: g,
|
|
176
|
+
weekHeaderClass: y.e("week-header"),
|
|
177
|
+
getCellClasses: w,
|
|
178
178
|
getRowKls: C
|
|
179
179
|
};
|
|
180
180
|
};
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
be as useBasicDateTable,
|
|
183
|
+
ge as useBasicDateTableDOM
|
|
184
184
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as i, inject as _, computed as o, nextTick as Y } from "vue";
|
|
2
2
|
import "../../time-picker/index.js";
|
|
3
|
-
import
|
|
3
|
+
import j from "../../../locale/use-locale.js";
|
|
4
4
|
import { getValidDateOfYear as x, getValidDateOfMonth as K } from "../utils.js";
|
|
5
5
|
import { PICKER_BASE_INJECTION_KEY as N } from "../../time-picker/constants.js";
|
|
6
6
|
const T = (R, p, c, u) => {
|