vft 0.0.509 → 0.0.513
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.vue.d.ts +2 -2
- package/es/components/autocomplete/autocomplete.vue2.js +1 -1
- package/es/components/autocomplete/index.d.ts +6 -6
- 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/index.d.ts +9 -9
- 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 +202 -203
- package/es/components/cascader-panel/index.vue2.js +1 -1
- package/es/components/cascader-panel/menu.vue2.js +49 -50
- 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 +18 -19
- 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 +133 -134
- 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 +0 -2
- package/es/components/config-provider/config-provider.vue2.js +4 -5
- package/es/components/config-provider/constants.d.ts +0 -1
- package/es/components/config-provider/constants.js +2 -3
- package/es/components/config-provider/hooks/use-global-config.js +30 -33
- package/es/components/config-provider/index.d.ts +0 -9
- package/es/components/config-provider/index.js +5 -6
- 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 +123 -124
- package/es/components/date-picker/composables/use-month-range-header.js +14 -15
- package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
- 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 +39 -40
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +40 -41
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +178 -179
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
- 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 +36 -39
- 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.vue2.js +3 -3
- 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.vue2.js +66 -67
- package/es/components/empty/empty.vue2.js +36 -37
- 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 +17 -18
- 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 +59 -60
- package/es/components/image-viewer/image-viewer.vue2.js +44 -45
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +213 -211
- 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 +74 -75
- package/es/components/md-container/toc.js +36 -37
- 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 +100 -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/modal/index.d.ts +1 -0
- package/es/components/modal/modal-footer-action.vue2.js +24 -25
- 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 +16 -17
- package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
- 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/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/popconfirm/popconfirm.vue2.js +39 -40
- 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 +50 -51
- package/es/components/segmented/segmented.vue2.js +7 -7
- package/es/components/select/group-item.vue.js +2 -2
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/option-item.vue.js +2 -2
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/select.vue.js +1 -1
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/select/useSelect.js +231 -232
- 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 +65 -66
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
- 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 +58 -59
- package/es/components/transfer/transfer.vue2.js +69 -70
- package/es/components/tree/tree-node.vue.js +1 -1
- package/es/components/tree/tree.vue2.js +59 -60
- package/es/components/upload/upload-content.vue2.js +47 -48
- package/es/components/upload/upload-dragger.vue2.js +2 -2
- package/es/components/upload/upload-list.vue2.js +45 -46
- package/es/components/upload/upload.vue2.js +98 -99
- 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/hooks/use-z-index/index.js +3 -3
- package/es/index.d.ts +0 -1
- package/es/index.js +39 -42
- 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/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- 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 +0 -2
- 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 +0 -1
- 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 +0 -9
- 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.vue2.cjs +1 -1
- 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.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/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/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +4 -4
- 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/index.d.ts +0 -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 +3 -3
- package/theme-style/index.css +1 -1
- package/theme-style/src/message-box.scss +2 -2
- package/theme-style/src/table.scss +6 -0
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
- package/es/locale/index.d.ts +0 -26
- package/es/locale/index.js +0 -10
- package/es/locale/lang/en.d.ts +0 -183
- package/es/locale/lang/en.js +0 -241
- package/es/locale/lang/zh-cn.d.ts +0 -183
- package/es/locale/lang/zh-cn.js +0 -241
- package/es/locale/lang/zh-tw.d.ts +0 -183
- package/es/locale/lang/zh-tw.js +0 -241
- package/es/locale/use-locale.d.ts +0 -17
- package/es/locale/use-locale.js +0 -56
- package/lib/locale/index.cjs +0 -1
- package/lib/locale/index.d.ts +0 -26
- package/lib/locale/lang/en.cjs +0 -1
- package/lib/locale/lang/en.d.ts +0 -183
- package/lib/locale/lang/zh-cn.cjs +0 -1
- package/lib/locale/lang/zh-cn.d.ts +0 -183
- package/lib/locale/lang/zh-tw.cjs +0 -1
- package/lib/locale/lang/zh-tw.d.ts +0 -183
- package/lib/locale/use-locale.cjs +0 -1
- package/lib/locale/use-locale.d.ts +0 -17
- /package/es/{locale/index.d.js → components/message-box/types.js} +0 -0
- /package/lib/{locale/index.d.cjs → components/message-box/types.cjs} +0 -0
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ClickOutside as
|
|
3
|
-
import { VftButton as
|
|
1
|
+
import { defineComponent as W, ref as c, reactive as ie, computed as b, onMounted as se, watch as g, nextTick as C, provide as ce, openBlock as m, createBlock as V, unref as e, withCtx as y, createElementVNode as u, withKeys as L, normalizeClass as n, createElementBlock as H, createCommentVNode as E, normalizeStyle as ue, withDirectives as M, createVNode as p, vShow as de, createTextVNode as O } from "vue";
|
|
2
|
+
import { ClickOutside as me } from "@vft/directives";
|
|
3
|
+
import { VftButton as R } from "../button/index.js";
|
|
4
4
|
import "../form/index.js";
|
|
5
|
-
import { VftIcon as
|
|
6
|
-
import { VftInput as
|
|
7
|
-
import { VftTooltip as
|
|
8
|
-
import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as
|
|
5
|
+
import { VftIcon as U } from "../icon/index.js";
|
|
6
|
+
import { VftInput as pe } from "../input/index.js";
|
|
7
|
+
import { VftTooltip as fe } from "../tooltip/index.js";
|
|
8
|
+
import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as ve } from "../../constants/event.js";
|
|
9
9
|
import "@vueuse/core";
|
|
10
10
|
import "@vft/utils";
|
|
11
|
-
import { debugWarn as
|
|
11
|
+
import { debugWarn as G } from "../../utils/error.js";
|
|
12
12
|
import "../config-provider/hooks/use-global-config.js";
|
|
13
|
-
import { debounce as
|
|
14
|
-
import { useNamespace as
|
|
13
|
+
import { debounce as be } from "lodash-es";
|
|
14
|
+
import { useNamespace as he } from "../../hooks/use-namespace/index.js";
|
|
15
15
|
import "../../hooks/use-model-toggle/index.js";
|
|
16
16
|
import "@popperjs/core";
|
|
17
17
|
import "../../hooks/use-z-index/index.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { colorPickerContextKey as
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], ze = j({
|
|
18
|
+
import ke from "./components/alpha-slider.vue2.js";
|
|
19
|
+
import we from "./components/hue-slider.vue.js";
|
|
20
|
+
import ge from "./components/predefine.vue.js";
|
|
21
|
+
import Ce from "./components/sv-panel.vue.js";
|
|
22
|
+
import { colorPickerContextKey as Ve } from "./contants.js";
|
|
23
|
+
import $ from "./utils/color.js";
|
|
24
|
+
import { useFormItem as ye, useFormItemInputId as Ee } from "../form/hooks/use-form-item.js";
|
|
25
|
+
import { useFormSize as xe, useFormDisabled as Ae } from "../form/hooks/use-form-common-props.js";
|
|
26
|
+
const Ie = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], Se = W({
|
|
28
27
|
name: "VftColorPicker"
|
|
29
|
-
}),
|
|
30
|
-
...
|
|
28
|
+
}), eo = /* @__PURE__ */ W({
|
|
29
|
+
...Se,
|
|
31
30
|
props: {
|
|
32
31
|
modelValue: {},
|
|
33
32
|
id: {},
|
|
@@ -43,232 +42,232 @@ const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
|
|
|
43
42
|
},
|
|
44
43
|
emits: [
|
|
45
44
|
P,
|
|
46
|
-
|
|
45
|
+
ve,
|
|
47
46
|
"activeChange",
|
|
48
47
|
"click-outside"
|
|
49
48
|
],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
formItemContext:
|
|
53
|
-
}),
|
|
54
|
-
let
|
|
55
|
-
const t =
|
|
56
|
-
new
|
|
49
|
+
setup(i, { expose: j, emit: q }) {
|
|
50
|
+
const a = i, d = q, l = he("color"), { formItem: h } = ye(), J = xe(), x = Ae(), { inputId: Q, isLabeledByFormItem: z } = Ee(a, {
|
|
51
|
+
formItemContext: h
|
|
52
|
+
}), B = c(), X = c(), F = c(), Y = c();
|
|
53
|
+
let A = !0;
|
|
54
|
+
const t = ie(
|
|
55
|
+
new $({
|
|
57
56
|
enableAlpha: a.showAlpha,
|
|
58
57
|
format: a.colorFormat || "",
|
|
59
58
|
value: a.modelValue
|
|
60
59
|
})
|
|
61
|
-
),
|
|
60
|
+
), f = c(!1), s = c(!1), v = c(""), Z = b(() => !a.modelValue && !s.value ? "transparent" : le(t, a.showAlpha)), I = b(() => !a.modelValue && !s.value ? "" : t.value), _ = b(() => z.value ? void 0 : a.label || "色彩选择器"), ee = b(() => z.value ? h?.labelId : void 0), oe = b(() => [
|
|
62
61
|
l.b("picker"),
|
|
63
|
-
l.is("disabled",
|
|
64
|
-
l.bm("picker",
|
|
62
|
+
l.is("disabled", x.value),
|
|
63
|
+
l.bm("picker", J.value)
|
|
65
64
|
]);
|
|
66
|
-
function
|
|
67
|
-
if (!(o instanceof
|
|
65
|
+
function le(o, r) {
|
|
66
|
+
if (!(o instanceof $))
|
|
68
67
|
throw new TypeError("color should be instance of _color Class");
|
|
69
|
-
const { r:
|
|
70
|
-
return
|
|
68
|
+
const { r: w, g: D, b: K } = o.toRgb();
|
|
69
|
+
return r ? `rgba(${w}, ${D}, ${K}, ${o.get("alpha") / 100})` : `rgb(${w}, ${D}, ${K})`;
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
71
|
+
function ae(o) {
|
|
72
|
+
f.value = o;
|
|
74
73
|
}
|
|
75
|
-
const
|
|
76
|
-
function
|
|
77
|
-
|
|
74
|
+
const k = be(ae, 100);
|
|
75
|
+
function te(o) {
|
|
76
|
+
k(!1), S(), d("click-outside", o);
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
a.modelValue ? t.fromString(a.modelValue) : (t.value = "",
|
|
82
|
-
|
|
78
|
+
function S() {
|
|
79
|
+
C(() => {
|
|
80
|
+
a.modelValue ? t.fromString(a.modelValue) : (t.value = "", C(() => {
|
|
81
|
+
s.value = !1;
|
|
83
82
|
}));
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
85
|
+
function N() {
|
|
86
|
+
x.value || k(!f.value);
|
|
88
87
|
}
|
|
89
|
-
function
|
|
90
|
-
t.fromString(
|
|
88
|
+
function T() {
|
|
89
|
+
t.fromString(v.value);
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function re() {
|
|
93
92
|
const o = t.value;
|
|
94
|
-
|
|
95
|
-
const
|
|
93
|
+
d(P, o), d("change", o), a.validateEvent && h?.validate("change").catch((r) => G(r)), k(!1), C(() => {
|
|
94
|
+
const r = new $({
|
|
96
95
|
enableAlpha: a.showAlpha,
|
|
97
96
|
format: a.colorFormat || "",
|
|
98
97
|
value: a.modelValue
|
|
99
98
|
});
|
|
100
|
-
t.compare(
|
|
99
|
+
t.compare(r) || S();
|
|
101
100
|
});
|
|
102
101
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
102
|
+
function ne() {
|
|
103
|
+
k(!1), d(P, null), d("change", null), a.modelValue !== null && a.validateEvent && h?.validate("change").catch((o) => G(o)), S();
|
|
105
104
|
}
|
|
106
|
-
return
|
|
107
|
-
a.modelValue && (
|
|
108
|
-
}),
|
|
105
|
+
return se(() => {
|
|
106
|
+
a.modelValue && (v.value = I.value);
|
|
107
|
+
}), g(
|
|
109
108
|
() => a.modelValue,
|
|
110
109
|
(o) => {
|
|
111
|
-
o ? o && o !== t.value && (
|
|
110
|
+
o ? o && o !== t.value && (A = !1, t.fromString(o)) : s.value = !1;
|
|
112
111
|
}
|
|
113
|
-
),
|
|
114
|
-
() =>
|
|
112
|
+
), g(
|
|
113
|
+
() => I.value,
|
|
115
114
|
(o) => {
|
|
116
|
-
|
|
115
|
+
v.value = o, A && d("activeChange", o), A = !0;
|
|
117
116
|
}
|
|
118
|
-
),
|
|
117
|
+
), g(
|
|
119
118
|
() => t.value,
|
|
120
119
|
() => {
|
|
121
|
-
!a.modelValue && !
|
|
120
|
+
!a.modelValue && !s.value && (s.value = !0);
|
|
122
121
|
}
|
|
123
|
-
),
|
|
124
|
-
() =>
|
|
122
|
+
), g(
|
|
123
|
+
() => f.value,
|
|
125
124
|
() => {
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
C(() => {
|
|
126
|
+
B.value?.update(), X.value?.update(), F.value?.update();
|
|
128
127
|
});
|
|
129
128
|
}
|
|
130
|
-
),
|
|
131
|
-
currentColor:
|
|
132
|
-
}),
|
|
129
|
+
), ce(Ve, {
|
|
130
|
+
currentColor: I
|
|
131
|
+
}), j({
|
|
133
132
|
/**
|
|
134
133
|
* @description current color object
|
|
135
134
|
*/
|
|
136
135
|
color: t,
|
|
137
|
-
showPicker:
|
|
138
|
-
}), (o,
|
|
136
|
+
showPicker: f
|
|
137
|
+
}), (o, r) => (m(), V(e(fe), {
|
|
139
138
|
ref_key: "popper",
|
|
140
|
-
ref:
|
|
141
|
-
visible:
|
|
139
|
+
ref: Y,
|
|
140
|
+
visible: f.value,
|
|
142
141
|
"show-arrow": !1,
|
|
143
142
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
144
143
|
offset: 0,
|
|
145
144
|
"gpu-acceleration": !1,
|
|
146
|
-
"popper-class": [e(l).be("picker", "panel"), e(l).b("dropdown"),
|
|
145
|
+
"popper-class": [e(l).be("picker", "panel"), e(l).b("dropdown"), i.popperClass],
|
|
147
146
|
"stop-popper-mouse-event": !1,
|
|
148
147
|
effect: "light",
|
|
149
148
|
trigger: "click",
|
|
150
149
|
transition: `${e(l).namespace.value}-zoom-in-top`,
|
|
151
150
|
persistent: ""
|
|
152
151
|
}, {
|
|
153
|
-
content:
|
|
154
|
-
|
|
152
|
+
content: y(() => [
|
|
153
|
+
M((m(), H("div", null, [
|
|
155
154
|
u("div", {
|
|
156
|
-
class:
|
|
155
|
+
class: n(e(l).be("dropdown", "main-wrapper"))
|
|
157
156
|
}, [
|
|
158
|
-
p(
|
|
157
|
+
p(we, {
|
|
159
158
|
ref_key: "hue",
|
|
160
|
-
ref:
|
|
159
|
+
ref: B,
|
|
161
160
|
class: "hue-slider",
|
|
162
161
|
color: t,
|
|
163
162
|
vertical: ""
|
|
164
163
|
}, null, 8, ["color"]),
|
|
165
|
-
p(
|
|
164
|
+
p(Ce, {
|
|
166
165
|
ref: "svPanel",
|
|
167
166
|
color: t
|
|
168
167
|
}, null, 8, ["color"])
|
|
169
168
|
], 2),
|
|
170
|
-
|
|
169
|
+
i.showAlpha ? (m(), V(ke, {
|
|
171
170
|
key: 0,
|
|
172
171
|
ref_key: "alpha",
|
|
173
|
-
ref:
|
|
172
|
+
ref: F,
|
|
174
173
|
color: t
|
|
175
|
-
}, null, 8, ["color"])) :
|
|
176
|
-
|
|
174
|
+
}, null, 8, ["color"])) : E("", !0),
|
|
175
|
+
i.predefine ? (m(), V(ge, {
|
|
177
176
|
key: 1,
|
|
178
177
|
ref: "predefine",
|
|
179
178
|
color: t,
|
|
180
|
-
colors:
|
|
181
|
-
}, null, 8, ["color", "colors"])) :
|
|
179
|
+
colors: i.predefine
|
|
180
|
+
}, null, 8, ["color", "colors"])) : E("", !0),
|
|
182
181
|
u("div", {
|
|
183
|
-
class:
|
|
182
|
+
class: n(e(l).be("dropdown", "btns"))
|
|
184
183
|
}, [
|
|
185
184
|
u("span", {
|
|
186
|
-
class:
|
|
185
|
+
class: n(e(l).be("dropdown", "value"))
|
|
187
186
|
}, [
|
|
188
|
-
p(e(
|
|
189
|
-
modelValue:
|
|
190
|
-
"onUpdate:modelValue":
|
|
187
|
+
p(e(pe), {
|
|
188
|
+
modelValue: v.value,
|
|
189
|
+
"onUpdate:modelValue": r[0] || (r[0] = (w) => v.value = w),
|
|
191
190
|
"validate-event": !1,
|
|
192
191
|
size: "small",
|
|
193
|
-
onKeyup:
|
|
194
|
-
onBlur:
|
|
192
|
+
onKeyup: L(T, ["enter"]),
|
|
193
|
+
onBlur: T
|
|
195
194
|
}, null, 8, ["modelValue"])
|
|
196
195
|
], 2),
|
|
197
|
-
p(e(
|
|
198
|
-
class:
|
|
196
|
+
p(e(R), {
|
|
197
|
+
class: n(e(l).be("dropdown", "link-btn")),
|
|
199
198
|
text: "",
|
|
200
199
|
size: "small",
|
|
201
|
-
onClick:
|
|
200
|
+
onClick: ne
|
|
202
201
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
205
|
-
]),
|
|
202
|
+
default: y(() => [...r[1] || (r[1] = [
|
|
203
|
+
O(" 清空 ", -1)
|
|
204
|
+
])]),
|
|
206
205
|
_: 1
|
|
207
206
|
}, 8, ["class"]),
|
|
208
|
-
p(e(
|
|
207
|
+
p(e(R), {
|
|
209
208
|
plain: "",
|
|
210
209
|
size: "small",
|
|
211
|
-
class:
|
|
212
|
-
onClick:
|
|
210
|
+
class: n(e(l).be("dropdown", "btn")),
|
|
211
|
+
onClick: re
|
|
213
212
|
}, {
|
|
214
|
-
default:
|
|
215
|
-
|
|
216
|
-
]),
|
|
213
|
+
default: y(() => [...r[2] || (r[2] = [
|
|
214
|
+
O(" 确认 ", -1)
|
|
215
|
+
])]),
|
|
217
216
|
_: 1
|
|
218
217
|
}, 8, ["class"])
|
|
219
218
|
], 2)
|
|
220
219
|
])), [
|
|
221
|
-
[e(
|
|
220
|
+
[e(me), te]
|
|
222
221
|
])
|
|
223
222
|
]),
|
|
224
|
-
default:
|
|
223
|
+
default: y(() => [
|
|
225
224
|
u("div", {
|
|
226
|
-
id: e(
|
|
227
|
-
class:
|
|
225
|
+
id: e(Q),
|
|
226
|
+
class: n(oe.value),
|
|
228
227
|
role: "button",
|
|
229
|
-
"aria-label":
|
|
230
|
-
"aria-labelledby":
|
|
231
|
-
"aria-description":
|
|
232
|
-
tabindex:
|
|
233
|
-
onKeydown:
|
|
228
|
+
"aria-label": _.value,
|
|
229
|
+
"aria-labelledby": ee.value,
|
|
230
|
+
"aria-description": `当前色彩为 {color}。按 Enter 确认选择 ${i.modelValue}`,
|
|
231
|
+
tabindex: i.tabindex,
|
|
232
|
+
onKeydown: L(N, ["enter"])
|
|
234
233
|
}, [
|
|
235
|
-
e(
|
|
234
|
+
e(x) ? (m(), H("div", {
|
|
236
235
|
key: 0,
|
|
237
|
-
class:
|
|
238
|
-
}, null, 2)) :
|
|
236
|
+
class: n(e(l).be("picker", "mask"))
|
|
237
|
+
}, null, 2)) : E("", !0),
|
|
239
238
|
u("div", {
|
|
240
|
-
class:
|
|
241
|
-
onClick:
|
|
239
|
+
class: n(e(l).be("picker", "trigger")),
|
|
240
|
+
onClick: N
|
|
242
241
|
}, [
|
|
243
242
|
u("span", {
|
|
244
|
-
class:
|
|
243
|
+
class: n([e(l).be("picker", "color"), e(l).is("alpha", i.showAlpha)])
|
|
245
244
|
}, [
|
|
246
245
|
u("span", {
|
|
247
|
-
class:
|
|
248
|
-
style:
|
|
249
|
-
backgroundColor:
|
|
246
|
+
class: n(e(l).be("picker", "color-inner")),
|
|
247
|
+
style: ue({
|
|
248
|
+
backgroundColor: Z.value
|
|
250
249
|
})
|
|
251
250
|
}, [
|
|
252
|
-
|
|
251
|
+
M(p(e(U), {
|
|
253
252
|
icon: "icon-arrow-down",
|
|
254
|
-
class:
|
|
253
|
+
class: n([e(l).be("picker", "icon"), e(l).is("icon-arrow-down")])
|
|
255
254
|
}, null, 8, ["class"]), [
|
|
256
|
-
[
|
|
255
|
+
[de, i.modelValue || s.value]
|
|
257
256
|
]),
|
|
258
|
-
!
|
|
257
|
+
!i.modelValue && !s.value ? (m(), V(e(U), {
|
|
259
258
|
key: 0,
|
|
260
259
|
icon: "icon-circle-close",
|
|
261
|
-
class:
|
|
262
|
-
}, null, 8, ["class"])) :
|
|
260
|
+
class: n([e(l).be("picker", "empty"), e(l).is("icon-close")])
|
|
261
|
+
}, null, 8, ["class"])) : E("", !0)
|
|
263
262
|
], 6)
|
|
264
263
|
], 2)
|
|
265
264
|
], 2)
|
|
266
|
-
], 42,
|
|
265
|
+
], 42, Ie)
|
|
267
266
|
]),
|
|
268
267
|
_: 1
|
|
269
268
|
}, 8, ["visible", "popper-class", "transition"]));
|
|
270
269
|
}
|
|
271
270
|
});
|
|
272
271
|
export {
|
|
273
|
-
|
|
272
|
+
eo as default
|
|
274
273
|
};
|
|
@@ -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
|
|
1
|
+
import { defineComponent as s, watch as m, computed as l, 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";
|
|
@@ -22,7 +22,6 @@ const z = s({
|
|
|
22
22
|
iconifyPrefixClass: { default: "ico-" },
|
|
23
23
|
namespace: { default: "vft" },
|
|
24
24
|
zIndex: {},
|
|
25
|
-
locale: {},
|
|
26
25
|
message: {},
|
|
27
26
|
dialog: {},
|
|
28
27
|
projectCfg: {},
|
|
@@ -41,7 +40,7 @@ const z = s({
|
|
|
41
40
|
},
|
|
42
41
|
{ immediate: !0, deep: !0 }
|
|
43
42
|
);
|
|
44
|
-
const c =
|
|
43
|
+
const c = l(() => {
|
|
45
44
|
const e = t.theme === "dark";
|
|
46
45
|
return f({
|
|
47
46
|
...t.themeVars,
|
|
@@ -68,8 +67,8 @@ const z = s({
|
|
|
68
67
|
a[`--${t.namespace}-${B(o)}`] = e[o];
|
|
69
68
|
}), a;
|
|
70
69
|
}
|
|
71
|
-
const
|
|
72
|
-
return E(
|
|
70
|
+
const d = p();
|
|
71
|
+
return E(d.props), (e, a) => (v(), b("div", {
|
|
73
72
|
class: C([V(i).b(), { "vft-dark": t.theme === "dark" }]),
|
|
74
73
|
style: k(c.value)
|
|
75
74
|
}, [
|
|
@@ -3,5 +3,4 @@ import type { InjectionKey, Ref } from 'vue';
|
|
|
3
3
|
import type { ConfigProviderProps } from './config-provider.vue';
|
|
4
4
|
export type ConfigProviderContext = Partial<ConfigProviderProps>;
|
|
5
5
|
export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
|
|
6
|
-
export declare const localeContextKey: InjectionKey<Ref<any>>;
|
|
7
6
|
export declare const messageConfig: MessageConfigContext;
|
|
@@ -1,62 +1,59 @@
|
|
|
1
|
-
import { keysOf as
|
|
1
|
+
import { keysOf as f } 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
|
|
4
|
+
import { ref as g, getCurrentInstance as l, computed as i, 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";
|
|
8
8
|
import "../../../hooks/use-model-toggle/index.js";
|
|
9
9
|
import "@popperjs/core";
|
|
10
10
|
import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
|
|
11
|
-
import { configProviderContextKey as m
|
|
12
|
-
const
|
|
11
|
+
import { configProviderContextKey as m } from "../constants.js";
|
|
12
|
+
const a = g();
|
|
13
13
|
function d(o, e = void 0) {
|
|
14
|
-
const n =
|
|
15
|
-
return o ?
|
|
14
|
+
const n = l() ? C(m, a) : a;
|
|
15
|
+
return o ? i(() => n?.value?.[o] ?? e) : n;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function B(o) {
|
|
18
18
|
const e = d(), n = b(
|
|
19
19
|
o,
|
|
20
|
-
|
|
21
|
-
),
|
|
22
|
-
|
|
20
|
+
i(() => e.value?.namespace || y)
|
|
21
|
+
), t = z(
|
|
22
|
+
i(() => e.value?.zIndex || K)
|
|
23
23
|
);
|
|
24
|
-
return
|
|
24
|
+
return S(i(() => p(e) || {})), {
|
|
25
25
|
ns: n,
|
|
26
|
-
zIndex:
|
|
26
|
+
zIndex: t
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
29
|
+
const S = (o, e, n = !1) => {
|
|
30
|
+
const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? x : void 0);
|
|
31
|
+
if (!u) {
|
|
32
32
|
v(
|
|
33
33
|
"provideGlobalConfig",
|
|
34
34
|
"provideGlobalConfig() can only be used inside setup()."
|
|
35
35
|
);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
return
|
|
38
|
+
const s = i(() => {
|
|
39
|
+
const c = p(o);
|
|
40
|
+
return r?.value ? j(r.value, c) : c;
|
|
41
41
|
});
|
|
42
|
-
return
|
|
42
|
+
return u(m, s), u(
|
|
43
43
|
I,
|
|
44
|
-
|
|
45
|
-
),
|
|
44
|
+
i(() => s.value.namespace)
|
|
45
|
+
), u(
|
|
46
46
|
G,
|
|
47
|
-
|
|
48
|
-
),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
for (const i of n)
|
|
55
|
-
r[i] = e[i] !== void 0 ? e[i] : o[i];
|
|
56
|
-
return r;
|
|
47
|
+
i(() => s.value.zIndex)
|
|
48
|
+
), (n || !a.value) && (a.value = s.value), s;
|
|
49
|
+
}, j = (o, e) => {
|
|
50
|
+
const n = [.../* @__PURE__ */ new Set([...f(o), ...f(e)])], t = {};
|
|
51
|
+
for (const r of n)
|
|
52
|
+
t[r] = e[r] !== void 0 ? e[r] : o[r];
|
|
53
|
+
return t;
|
|
57
54
|
};
|
|
58
55
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
S as provideGlobalConfig,
|
|
57
|
+
B as useGlobalComponentSettings,
|
|
61
58
|
d as useGlobalConfig
|
|
62
59
|
};
|