vft 0.0.507 → 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/carousel/use-carousel.js +1 -1
- package/es/components/cascader/cascader.vue2.js +203 -202
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +50 -49
- 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 +21 -17
- 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 +134 -133
- 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.vue.d.ts +2 -0
- package/es/components/config-provider/config-provider.vue2.js +5 -4
- package/es/components/config-provider/constants.d.ts +1 -0
- package/es/components/config-provider/constants.js +3 -2
- package/es/components/config-provider/hooks/use-global-config.js +33 -30
- package/es/components/config-provider/index.d.ts +9 -0
- package/es/components/config-provider/index.js +6 -5
- 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.js +83 -82
- package/es/components/date-picker/composables/use-month-range-header.js +15 -14
- package/es/components/date-picker/composables/use-panel-date-range.js +24 -23
- 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 +40 -39
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +41 -40
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +184 -183
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +225 -224
- 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 +39 -36
- 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 +68 -67
- package/es/components/dropdown/index.d.ts +33 -33
- package/es/components/empty/empty.vue2.js +39 -38
- 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 +18 -17
- 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 +60 -59
- package/es/components/image-viewer/image-viewer.vue2.js +43 -42
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +214 -210
- package/es/components/input/input.vue2.js +2 -2
- package/es/components/input-number/input-number.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- 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 +75 -74
- package/es/components/md-container/toc.js +37 -36
- 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 +25 -24
- 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 +17 -16
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +54 -53
- 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 +2 -2
- 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 +2 -2
- package/es/components/pagination/components/total.vue2.js +2 -2
- package/es/components/popconfirm/popconfirm.vue2.js +40 -39
- 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 +78 -76
- 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 +232 -231
- 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 +11 -11
- package/es/components/super-form/super-form-item.vue2.js +5 -4
- package/es/components/super-form/super-form.vue2.js +7 -7
- package/es/components/super-form/use/helper.js +12 -12
- 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 +34 -33
- package/es/components/table/table.vue2.js +154 -157
- package/es/components/table/use/use-data-source.js +90 -90
- 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 +66 -65
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +134 -133
- 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 +59 -58
- package/es/components/transfer/transfer.vue2.js +70 -69
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +60 -59
- package/es/components/upload/index.d.ts +3 -3
- package/es/components/upload/upload-content.vue.d.ts +2 -2
- package/es/components/upload/upload-content.vue2.js +76 -73
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +46 -45
- package/es/components/upload/upload.vue.d.ts +2 -2
- package/es/components/upload/upload.vue2.js +87 -85
- package/es/components/upload/utils.js +29 -29
- package/es/components/verify-code/verify-code.vue2.js +2 -2
- package/es/components/watermark/watermark.vue2.js +2 -2
- package/es/constants/date.d.ts +1 -1
- package/es/constants/date.js +9 -1
- package/es/hooks/use-id/index.js +2 -2
- package/es/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +1 -0
- package/es/index.js +43 -38
- package/es/locale/index.d.js +1 -0
- package/es/locale/index.d.ts +26 -0
- package/es/locale/index.js +10 -0
- package/es/locale/lang/en.d.ts +183 -0
- package/es/locale/lang/en.js +241 -0
- package/es/locale/lang/zh-cn.d.ts +183 -0
- package/es/locale/lang/zh-cn.js +241 -0
- package/es/locale/lang/zh-tw.d.ts +183 -0
- package/es/locale/lang/zh-tw.js +241 -0
- package/es/locale/use-locale.d.ts +17 -0
- package/es/locale/use-locale.js +56 -0
- 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 +4 -4
- 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 +4 -4
- 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/config-provider/config-provider.vue.d.ts +2 -0
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/config-provider/constants.cjs +1 -1
- package/lib/components/config-provider/constants.d.ts +1 -0
- package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
- package/lib/components/config-provider/index.cjs +1 -1
- package/lib/components/config-provider/index.d.ts +9 -0
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +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/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/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.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-item.vue2.cjs +1 -1
- package/lib/components/super-form/use/helper.cjs +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-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/index.d.ts +3 -3
- package/lib/components/upload/upload-content.vue.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/lib/components/upload/upload.vue2.cjs +1 -1
- package/lib/components/upload/utils.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/constants/date.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/locale/index.cjs +1 -0
- package/lib/locale/index.d.cjs +1 -0
- package/lib/locale/index.d.ts +26 -0
- package/lib/locale/lang/en.cjs +1 -0
- package/lib/locale/lang/en.d.ts +183 -0
- package/lib/locale/lang/zh-cn.cjs +1 -0
- package/lib/locale/lang/zh-cn.d.ts +183 -0
- package/lib/locale/lang/zh-tw.cjs +1 -0
- package/lib/locale/lang/zh-tw.d.ts +183 -0
- package/lib/locale/use-locale.cjs +1 -0
- package/lib/locale/use-locale.d.ts +17 -0
- 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/super-form.scss +0 -1
- package/theme-style/src/table.scss +4 -0
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -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
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { defineComponent as F, ref as u, computed as A, createVNode as e, Fragment as E } from "vue";
|
|
2
2
|
import { isArray as Y } from "@vft/utils";
|
|
3
|
-
import { VftDatePicker as
|
|
4
|
-
import { VftDropdown as
|
|
3
|
+
import { VftDatePicker as q } from "../date-picker/index.js";
|
|
4
|
+
import { VftDropdown as z } from "../dropdown/index.js";
|
|
5
5
|
import { VftIcon as k } from "../icon/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "../config-provider/hooks/use-global-config.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "../form/index.js";
|
|
10
|
-
import { useNamespace as
|
|
10
|
+
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 G from "../../locale/use-locale.js";
|
|
14
15
|
import v from "dayjs";
|
|
15
|
-
const
|
|
16
|
+
const J = F({
|
|
16
17
|
name: "vft-date-time-select"
|
|
17
|
-
}),
|
|
18
|
-
...
|
|
18
|
+
}), ce = /* @__PURE__ */ F({
|
|
19
|
+
...J,
|
|
19
20
|
props: {
|
|
20
21
|
dateList: {
|
|
21
22
|
default: () => []
|
|
@@ -28,70 +29,72 @@ const B = F({
|
|
|
28
29
|
setup(d, {
|
|
29
30
|
emit: x
|
|
30
31
|
}) {
|
|
31
|
-
const H = x,
|
|
32
|
-
|
|
32
|
+
const H = x, l = B("date-time-select"), {
|
|
33
|
+
t: I
|
|
34
|
+
} = G(), C = u(!1), g = u(), M = u(I("vft.dateTimeSelect.placeholder")), t = u("");
|
|
35
|
+
function N(o) {
|
|
33
36
|
const {
|
|
34
37
|
count: a,
|
|
35
38
|
type: h,
|
|
36
39
|
format: f,
|
|
37
|
-
dateRange:
|
|
40
|
+
dateRange: n = !0,
|
|
38
41
|
startOfType: O,
|
|
39
42
|
endOfType: V
|
|
40
|
-
} =
|
|
43
|
+
} = o;
|
|
41
44
|
let m, r, L;
|
|
42
|
-
const p = f || d.defaultFormat, s = v().format(p),
|
|
45
|
+
const p = f || d.defaultFormat, s = v().format(p), T = (i, j = !0) => {
|
|
43
46
|
let D;
|
|
44
|
-
const
|
|
45
|
-
return i === "week" ? D = v().add(a, i)[
|
|
47
|
+
const R = j ? "startOf" : "endOf";
|
|
48
|
+
return i === "week" ? D = v().add(a, i)[R](i).add(1, "day").format(p) : D = v().add(a, i)[R](i).format(p), D;
|
|
46
49
|
};
|
|
47
|
-
O && (m =
|
|
50
|
+
O && (m = T(O)), V && (r = T(V, !1)), L = v().add(a, h).format(p);
|
|
48
51
|
const c = m || r || L;
|
|
49
|
-
return
|
|
52
|
+
return n ? m && r ? [c, r] : a > 0 ? [c !== r && r || s, c] : a === 0 ? [m || s, r || s] : [c, c !== r && r || s] : c;
|
|
50
53
|
}
|
|
51
|
-
function
|
|
52
|
-
g.value =
|
|
54
|
+
function P(o, a) {
|
|
55
|
+
g.value = o, y.value.handleClose(), t.value = N(a), H("change", t.value);
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function S() {
|
|
55
58
|
t.value = "";
|
|
56
59
|
}
|
|
57
60
|
const w = A(() => Y(t.value) && t.value?.length ? `${t.value[0]} - ${t.value[1]}` : t.value), y = u();
|
|
58
|
-
function $(
|
|
59
|
-
C.value =
|
|
61
|
+
function $(o) {
|
|
62
|
+
C.value = o;
|
|
60
63
|
}
|
|
61
64
|
const b = () => {
|
|
62
|
-
const
|
|
65
|
+
const o = Y(d.dateList[0]) ? d.dateList : [d.dateList];
|
|
63
66
|
return e("div", {
|
|
64
|
-
class:
|
|
65
|
-
}, [e(E, null, [
|
|
67
|
+
class: l.e("content")
|
|
68
|
+
}, [e(E, null, [o.map((a, h) => e("div", {
|
|
66
69
|
key: h,
|
|
67
|
-
class:
|
|
68
|
-
}, [a.map((f,
|
|
69
|
-
class: [
|
|
70
|
-
onClick: () =>
|
|
70
|
+
class: l.e("item-container")
|
|
71
|
+
}, [a.map((f, n) => e("div", {
|
|
72
|
+
class: [l.e("item"), l.is("active", g.value === n)],
|
|
73
|
+
onClick: () => P(n, f)
|
|
71
74
|
}, [e("span", {
|
|
72
|
-
key:
|
|
73
|
-
}, [f.text]), g.value ===
|
|
75
|
+
key: n
|
|
76
|
+
}, [f.text]), g.value === n ? e(k, {
|
|
74
77
|
icon: "icon-check"
|
|
75
|
-
}, null) : null])), e(
|
|
78
|
+
}, null) : null])), e(q, {
|
|
76
79
|
type: "daterange",
|
|
77
80
|
"range-separator": "To",
|
|
78
81
|
"start-placeholder": "Start date",
|
|
79
82
|
"end-placeholder": "End date"
|
|
80
83
|
}, null)]))])]);
|
|
81
84
|
};
|
|
82
|
-
return () => e(
|
|
85
|
+
return () => e(z, {
|
|
83
86
|
ref: y,
|
|
84
87
|
trigger: "click",
|
|
85
88
|
teleported: !1,
|
|
86
|
-
class:
|
|
89
|
+
class: l.b(),
|
|
87
90
|
onVisibleChange: $
|
|
88
91
|
}, {
|
|
89
92
|
default: () => [e("span", {
|
|
90
|
-
class: [
|
|
93
|
+
class: [l.e("trigger"), "cursor-pointer"]
|
|
91
94
|
}, [e("span", {
|
|
92
95
|
class: [w.value ? "text" : "placeholder"]
|
|
93
|
-
}, [w.value ||
|
|
94
|
-
onClick:
|
|
96
|
+
}, [w.value || M.value]), t.value ? e(k, {
|
|
97
|
+
onClick: S,
|
|
95
98
|
icon: "icon-circle-close",
|
|
96
99
|
class: "hover:text-black"
|
|
97
100
|
}, null) : null, t.value ? e(k, {
|
|
@@ -105,5 +108,5 @@ const B = F({
|
|
|
105
108
|
}
|
|
106
109
|
});
|
|
107
110
|
export {
|
|
108
|
-
|
|
111
|
+
ce as default
|
|
109
112
|
};
|
|
@@ -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
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, getCurrentInstance as q, ref as m, computed as x,
|
|
1
|
+
import { defineComponent as F, getCurrentInstance as q, ref as m, computed as x, openBlock as a, createBlock as A, unref as e, withCtx as n, createVNode as y, Transition as H, withDirectives as j, createElementVNode as b, mergeProps as R, withModifiers as U, normalizeClass as s, createElementBlock as d, renderSlot as i, toDisplayString as G, createCommentVNode as r, normalizeStyle as J, vShow as K } from "vue";
|
|
2
2
|
import "../dialog/index.js";
|
|
3
3
|
import Q from "../focus-trap/focus-trap.vue.js";
|
|
4
4
|
import "../focus-trap/utils.js";
|
|
@@ -7,7 +7,7 @@ import { VftOverlay as X } from "../overlay/index.js";
|
|
|
7
7
|
import { VftTeleport as Y } from "../teleport/index.js";
|
|
8
8
|
import { UPDATE_MODEL_EVENT as Z } from "../../constants/event.js";
|
|
9
9
|
import "@vueuse/core";
|
|
10
|
-
import {
|
|
10
|
+
import { singleAttrToObj as _, isBoolean as ee } from "@vft/utils";
|
|
11
11
|
import "../config-provider/hooks/use-global-config.js";
|
|
12
12
|
import "lodash-es";
|
|
13
13
|
import "../form/index.js";
|
|
@@ -60,7 +60,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], se = ["id"], r
|
|
|
60
60
|
footerClass: {}
|
|
61
61
|
},
|
|
62
62
|
emits: {
|
|
63
|
-
[Z]: (o) =>
|
|
63
|
+
[Z]: (o) => ee(o),
|
|
64
64
|
open: () => !0,
|
|
65
65
|
opened: () => !0,
|
|
66
66
|
close: () => !0,
|
|
@@ -88,7 +88,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], se = ["id"], r
|
|
|
88
88
|
isHorizontal: S,
|
|
89
89
|
size: $,
|
|
90
90
|
isResizing: N
|
|
91
|
-
} = te(C.props, B), M = x(() =>
|
|
91
|
+
} = te(C.props, B), M = x(() => _(o.closeIcon, "icon", {
|
|
92
92
|
icon: "icon-close",
|
|
93
93
|
pointer: !0
|
|
94
94
|
}));
|
|
@@ -32,8 +32,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
32
32
|
onClickimpl?: ((event: MouseEvent) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
disabled: boolean;
|
|
35
|
-
icon: string;
|
|
36
35
|
command: object | string | number;
|
|
36
|
+
icon: string;
|
|
37
37
|
divided: boolean;
|
|
38
38
|
textValue: string;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, computed as l, inject as r,
|
|
1
|
+
import { defineComponent as O, computed as l, inject as r, openBlock as d, createElementBlock as I, Fragment as y, mergeProps as s, unref as o, createCommentVNode as c, createElementVNode as P, withModifiers as g, createBlock as D, normalizeProps as F, renderSlot as V } from "vue";
|
|
2
2
|
import { COLLECTION_ITEM_SIGN as $ } from "../collection/collection.js";
|
|
3
3
|
import { VftIcon as J } from "../icon/index.js";
|
|
4
4
|
import "../roving-focus-group/roving-focus-group.vue2.js";
|
|
@@ -80,8 +80,8 @@ const A = ["aria-disabled", "tabindex", "role"], H = O({
|
|
|
80
80
|
onPointermove: e[4] || (e[4] = (n) => t.$emit("pointermove", n)),
|
|
81
81
|
onPointerleave: e[5] || (e[5] = (n) => t.$emit("pointerleave", n))
|
|
82
82
|
}), [
|
|
83
|
-
i.icon ? (d(), D(o(J),
|
|
84
|
-
|
|
83
|
+
i.icon ? (d(), D(o(J), F(s({ key: 0 }, T.value)), null, 16)) : c("", !0),
|
|
84
|
+
V(t.$slots, "default")
|
|
85
85
|
], 16, A)
|
|
86
86
|
], 64));
|
|
87
87
|
}
|
|
@@ -30,8 +30,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
30
30
|
onPointermove?: ((event: PointerEvent) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
disabled: boolean;
|
|
33
|
-
icon: string;
|
|
34
33
|
command: object | string | number;
|
|
34
|
+
icon: string;
|
|
35
35
|
divided: boolean;
|
|
36
36
|
textValue: string;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, useAttrs as w, getCurrentInstance as E, ref as g, computed as c, unref as t, inject as D,
|
|
1
|
+
import { defineComponent as f, useAttrs as w, getCurrentInstance as E, ref as g, computed as c, unref as t, inject as D, openBlock as V, createBlock as y, withCtx as l, createVNode as s, mergeProps as A, renderSlot as B } from "vue";
|
|
2
2
|
import "../roving-focus-group/roving-focus-group.vue2.js";
|
|
3
3
|
import "../roving-focus-group/roving-focus-group-impl.vue2.js";
|
|
4
4
|
import N from "../roving-focus-group/roving-focus-item.vue2.js";
|
|
@@ -55,7 +55,7 @@ const M = f({
|
|
|
55
55
|
a?.hideOnClick?.value && a.handleClick?.(), a.commandHandler?.(o.command, P, e);
|
|
56
56
|
}
|
|
57
57
|
), I = c(() => ({ ...o, ...v }));
|
|
58
|
-
return (e, r) => (
|
|
58
|
+
return (e, r) => (V(), y(t(H), {
|
|
59
59
|
disabled: n.disabled,
|
|
60
60
|
"text-value": n.textValue ?? _.value
|
|
61
61
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, inject as n, computed as D, unref as o,
|
|
1
|
+
import { defineComponent as a, inject as n, computed as D, unref as o, openBlock as Y, createElementBlock as J, withModifiers as u, normalizeStyle as G, normalizeClass as P, renderSlot as z } from "vue";
|
|
2
2
|
import "../focus-trap/focus-trap.vue2.js";
|
|
3
3
|
import { FOCUS_TRAP_INJECTION_KEY as B } from "../focus-trap/tokens.js";
|
|
4
4
|
import "../focus-trap/utils.js";
|
|
@@ -71,7 +71,7 @@ const X = ["role", "aria-labelledby"], Z = a({
|
|
|
71
71
|
), g = (e) => {
|
|
72
72
|
b(e), C(e);
|
|
73
73
|
};
|
|
74
|
-
return (e, r) => (
|
|
74
|
+
return (e, r) => (Y(), J("ul", {
|
|
75
75
|
ref: o(L),
|
|
76
76
|
class: P(F.value),
|
|
77
77
|
style: G(o(y)),
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
teleported: boolean;
|
|
44
44
|
}>>> & Readonly<{
|
|
45
45
|
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
46
|
-
"onVisible-change"?: ((val: boolean) => any) | undefined;
|
|
47
46
|
onCommand?: ((val: string) => any) | undefined;
|
|
47
|
+
"onVisible-change"?: ((val: boolean) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
disabled: boolean;
|
|
50
50
|
maxHeight: number | string;
|