vft 0.0.136 → 0.0.138
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/comp-resolver.js +1 -3
- package/es/component.js +29 -25
- package/es/components/alert/alert.vue2.js +1 -4
- package/es/components/autocomplete/autocomplete.vue2.js +2 -8
- package/es/components/backtop/backtop.vue2.js +3 -2
- package/es/components/backtop/use-backtop.js +9 -5
- package/es/components/button/constants.js +1 -3
- package/es/components/button/use-button.js +4 -6
- package/es/components/carousel/carousel.vue2.js +3 -13
- package/es/components/carousel/use-carousel-item.js +2 -10
- package/es/components/carousel/use-carousel.js +2 -9
- package/es/components/checkbox/checkbox-button.vue2.js +1 -8
- package/es/components/checkbox/checkbox-group.vue2.js +1 -9
- package/es/components/checkbox/composables/use-checkbox-disabled.js +1 -3
- package/es/components/checkbox/composables/use-checkbox-event.js +2 -8
- package/es/components/checkbox/composables/use-checkbox.js +3 -7
- package/es/components/clamp/clamp.vue2.js +1 -4
- package/es/components/col/col.vue2.js +1 -3
- package/es/components/collection/collection.js +2 -6
- package/es/components/color-picker/color-picker.vue2.js +1 -5
- package/es/components/color-picker/components/hue-slider.vue2.js +4 -12
- package/es/components/color-picker/components/predefine.vue.js +1 -5
- package/es/components/color-picker/composables/use-alpha-slider.js +5 -17
- package/es/components/color-picker/contants.js +1 -3
- package/es/components/color-picker/utils/color.js +9 -29
- package/es/components/config-provider/hooks/use-global-config.js +5 -10
- package/es/components/container/footer.vue2.js +1 -3
- package/es/components/context-menu/context-menu.vue2.js +30 -15
- package/es/components/date-picker/composables/use-shortcut.js +1 -4
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +2 -6
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +3 -11
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +6 -20
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +2 -14
- package/es/components/descriptions/description.vue2.js +4 -6
- package/es/components/descriptions/descriptions-cell.js +1 -3
- package/es/components/dialog/dialog.vue.d.ts +1 -1
- package/es/components/drawer/drawer.vue2.js +1 -3
- package/es/components/dropdown/dropdown-item-impl.vue2.js +2 -9
- package/es/components/dropdown/dropdown-item.vue2.js +1 -4
- package/es/components/dropdown/dropdown-menu.vue2.js +5 -25
- package/es/components/dropdown/dropdown.vue2.js +2 -14
- package/es/components/dropdown/types.js +1 -10
- package/es/components/dropdown/useDropdown.js +1 -3
- package/es/components/exception/exception.vue2.js +6 -3
- package/es/components/focus-trap/focus-trap.vue2.js +4 -19
- package/es/components/footer-layout/footer-layout.vue2.js +3 -2
- package/es/components/form/form-item.vue2.js +7 -15
- package/es/components/form/hooks/use-form-common-props.js +1 -3
- package/es/components/form/types.d.ts +1 -1
- package/es/components/form/types.js +1 -6
- package/es/components/header-layout/header-layout.vue2.js +3 -2
- package/es/components/icon/icon.vue2.js +12 -7
- package/es/components/icon-text/icon-text.vue2.js +9 -6
- package/es/components/image/image.vue2.js +2 -10
- package/es/components/image/index.d.ts +49 -0
- package/es/components/image/index.js +3 -1
- package/es/components/image/p-image.vue.d.ts +51 -0
- package/es/components/image/p-image.vue.js +4 -0
- package/es/components/image/p-image.vue2.js +57 -0
- package/es/components/image/types.d.ts +1 -0
- package/es/components/image-viewer/image-viewer.vue2.js +4 -16
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +277 -274
- package/es/components/infinite-scroll/infinite-scroll.js +1 -3
- package/es/components/input/input.vue2.js +17 -9
- package/es/components/input-number/directives.js +1 -3
- package/es/components/input-number/input-number.vue2.js +2 -9
- package/es/components/link/link.vue2.js +1 -6
- package/es/components/list-cell/list-cell.vue2.js +7 -4
- package/es/components/loading/directive.js +1 -3
- package/es/components/md-code-demo/code-demo/code.js +14 -7
- package/es/components/md-code-demo/md-code-demo.js +97 -85
- package/es/components/md-code-tabs/md-code-tabs.js +3 -1
- package/es/components/md-container/md-container.vue2.js +3 -2
- package/es/components/md-container/toc.js +6 -1
- package/es/components/md-container/use/useActiveHeaderLinks.js +1 -7
- package/es/components/md-tabs/md-tabs.js +3 -1
- package/es/components/menu/menu-item.vue2.js +7 -3
- package/es/components/menu/menu.vue2.js +6 -14
- package/es/components/menu/sub-menu.vue2.js +3 -2
- package/es/components/message/message.vue2.js +1 -3
- package/es/components/message/method.js +5 -1
- package/es/components/modal/modal-footer-action.vue2.js +3 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -36
- package/es/components/overlay/overlay.vue2.js +1 -5
- package/es/components/p-image/style/css.d.ts +0 -0
- package/es/components/p-image/style/css.js +2 -0
- package/es/components/p-image/style/index.d.ts +0 -0
- package/es/components/p-image/style/index.js +2 -0
- package/es/components/pagination/components/next.vue2.js +1 -3
- package/es/components/pagination/components/pager.vue2.js +5 -24
- package/es/components/pagination/components/prev.vue2.js +1 -3
- package/es/components/popconfirm/popconfirm.vue2.js +1 -5
- package/es/components/popper/arrow.vue2.js +1 -4
- package/es/components/popper/composables/use-content-dom.js +3 -16
- package/es/components/popper/composables/use-content.js +7 -11
- package/es/components/popper/content.vue.d.ts +2 -4
- package/es/components/popper/content.vue2.js +8 -12
- package/es/components/popper/trigger.vue2.js +6 -29
- package/es/components/progress/progress.vue2.js +1 -6
- package/es/components/progress-i/index.d.ts +2 -0
- package/es/components/progress-i/index.js +12 -0
- package/es/components/progress-i/progress-i.vue.d.ts +2 -0
- package/es/components/progress-i/progress-i.vue.js +4 -0
- package/es/components/progress-i/progress-i.vue2.js +10 -0
- package/es/components/progress-i/style/css.d.ts +0 -0
- package/es/components/progress-i/style/css.js +2 -0
- package/es/components/progress-i/style/index.d.ts +0 -0
- package/es/components/progress-i/style/index.js +2 -0
- package/es/components/qrcode/drawLogo.js +8 -1
- package/es/components/qrcode/qrcode.vue2.js +7 -3
- package/es/components/radio/radio.vue2.js +2 -9
- package/es/components/result/result.vue2.js +10 -5
- package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +2 -11
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -10
- package/es/components/roving-focus-group/types.js +1 -6
- package/es/components/scrollbar/constants.js +1 -3
- package/es/components/scrollbar/scrollbar.vue2.js +2 -9
- package/es/components/scrollbar/thumb.vue2.js +2 -12
- package/es/components/search/index.d.ts +2 -0
- package/es/components/search/search.vue.d.ts +1 -1
- package/es/components/select/select.vue.js +5 -20
- package/es/components/select/select.vue2.js +1 -9
- package/es/components/select/token.js +1 -3
- package/es/components/select/useAllowCreate.js +1 -3
- package/es/components/select/useSelect.js +10 -48
- package/es/components/side-menu/side-menu.vue2.js +19 -18
- package/es/components/skeleton/skeleton.vue2.js +5 -5
- package/es/components/slider/composables/use-lifecycle.js +1 -4
- package/es/components/slider/composables/use-slide.js +1 -4
- package/es/components/slider/composables/use-slider-button.js +5 -1
- package/es/components/slider/composables/use-stops.js +2 -6
- package/es/components/slider/composables/use-watch.js +1 -3
- package/es/components/slider/marker.js +1 -3
- package/es/components/slider/slider.vue2.js +2 -8
- package/es/components/space/space.js +25 -39
- package/es/components/super-form/component-map.js +13 -10
- package/es/components/super-form/index.d.ts +10 -7
- package/es/components/super-form/super-form-action.vue2.js +4 -6
- package/es/components/super-form/super-form-item.vue.d.ts +1 -1
- package/es/components/super-form/super-form-item.vue2.js +26 -25
- package/es/components/super-form/super-form.vue.d.ts +4 -3
- package/es/components/super-form/super-form.vue2.js +5 -3
- package/es/components/super-form/use/use-auto-focus.js +1 -6
- package/es/components/super-form/use/use-form-events.js +2 -6
- package/es/components/super-form/use/use-form-values.js +1 -6
- package/es/components/switch/switch.vue2.js +3 -17
- package/es/components/table/field.js +21 -20
- package/es/components/table/index.d.ts +357 -82
- package/es/components/table/table.vue.d.ts +91 -30
- package/es/components/table/table.vue2.js +128 -113
- package/es/components/table/types.d.ts +2 -2
- package/es/components/table/use/use-data-source.js +91 -92
- package/es/components/table/use/use-table.d.ts +1 -4
- package/es/components/table/use/use-table.js +3 -1
- package/es/components/tabs/tab-nav.vue2.js +18 -17
- package/es/components/time-picker/common/picker.vue2.js +8 -26
- package/es/components/time-picker/composables/use-time-panel.js +3 -14
- package/es/components/time-picker/composables/use-time-picker.js +2 -8
- package/es/components/time-picker/constants.d.ts +1 -1
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -9
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +6 -10
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -14
- package/es/components/time-picker/utils.js +1 -5
- package/es/components/tooltip/content.vue2.js +4 -12
- package/es/components/tooltip/trigger.vue2.js +7 -25
- package/es/components/tooltip/utils.js +1 -3
- package/es/components/tree/model/node.js +2 -8
- package/es/components/tree/model/useDragNode.js +2 -12
- package/es/components/tree/model/useKeydown.js +5 -17
- package/es/components/tree/tree-node.vue2.js +2 -12
- package/es/components/tree/tree.vue2.js +2 -10
- package/es/components/upload/upload-content.vue2.js +2 -6
- package/es/components/upload/upload-dragger.vue2.js +1 -4
- package/es/components/upload/upload-list.vue2.js +2 -10
- package/es/components/upload/use-handlers.js +1 -3
- package/es/components/virtual-list/builders/build-grid.js +14 -77
- package/es/components/virtual-list/builders/build-list.js +9 -46
- package/es/components/virtual-list/components/dynamic-size-grid.js +4 -29
- package/es/components/virtual-list/components/dynamic-size-list.js +2 -11
- package/es/components/virtual-list/components/fixed-size-grid.js +9 -40
- package/es/components/virtual-list/components/fixed-size-list.js +1 -3
- package/es/components/virtual-list/components/scrollbar.js +3 -14
- package/es/components/virtual-list/props.js +1 -4
- package/es/constants/date.d.ts +1 -1
- package/es/constants/date.js +1 -9
- package/es/constants/size.d.ts +1 -1
- package/es/hooks/use-draggable/index.js +2 -10
- package/es/hooks/use-lockscreen/index.js +1 -4
- package/es/hooks/use-model-toggle/index.js +1 -3
- package/es/hooks/use-ordered-children/index.js +1 -3
- package/es/hooks/use-popper/index.js +5 -18
- package/es/index.js +408 -405
- package/es/package.json.d.ts +77 -0
- package/es/package.json.js +1 -1
- package/es/plugin.js +1 -5
- package/es/utils/ns-cover.js +16 -7
- package/es/utils/vue/install.d.ts +3 -0
- package/es/utils/vue/props/runtime.js +2 -9
- package/lib/component.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue.d.ts +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/types.d.ts +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/image/index.cjs +1 -1
- package/lib/components/image/index.d.ts +49 -0
- package/lib/components/image/p-image.vue.cjs +1 -0
- package/lib/components/image/p-image.vue.d.ts +51 -0
- package/lib/components/image/p-image.vue2.cjs +1 -0
- package/lib/components/image/types.d.ts +1 -0
- 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/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/p-image/style/css.cjs +1 -0
- package/lib/components/p-image/style/css.d.ts +0 -0
- package/lib/components/p-image/style/index.cjs +1 -0
- package/lib/components/p-image/style/index.d.ts +0 -0
- package/lib/components/popper/content.vue.d.ts +2 -4
- package/lib/components/progress-i/index.cjs +1 -0
- package/lib/components/progress-i/index.d.ts +2 -0
- package/lib/components/progress-i/progress-i.vue.cjs +1 -0
- package/lib/components/progress-i/progress-i.vue.d.ts +2 -0
- package/lib/components/progress-i/progress-i.vue2.cjs +1 -0
- package/lib/components/progress-i/style/css.cjs +1 -0
- package/lib/components/progress-i/style/css.d.ts +0 -0
- package/lib/components/progress-i/style/index.cjs +1 -0
- package/lib/components/progress-i/style/index.d.ts +0 -0
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/search/index.d.ts +2 -0
- package/lib/components/search/search.vue.d.ts +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/index.d.ts +10 -7
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +4 -3
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +357 -82
- package/lib/components/table/table.vue.d.ts +91 -30
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/types.d.ts +2 -2
- package/lib/components/table/use/use-data-source.cjs +1 -1
- package/lib/components/table/use/use-table.d.ts +1 -4
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/time-picker/constants.d.ts +1 -1
- package/lib/constants/date.d.ts +1 -1
- package/lib/constants/size.d.ts +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +77 -0
- package/lib/utils/vue/install.d.ts +3 -0
- package/package.json +4 -4
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/index.scss +4 -0
- package/theme-style/src/input.scss +1 -0
- package/theme-style/src/p-image.scss +18 -0
- package/theme-style/src/progress-i.scss +0 -0
- package/theme-style/src/table.scss +7 -0
- package/theme-style/src/tabs.scss +120 -3
- package/theme-style/vft-input.css +1 -1
- package/theme-style/vft-md-comment.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-md-vue-playground.css +1 -1
- package/theme-style/vft-p-image.css +1 -0
- package/theme-style/vft-progress-i.css +0 -0
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-table.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { hasOwn as b } from "@vft/utils";
|
|
2
2
|
const _ = function(a, t, e) {
|
|
3
|
-
return [
|
|
4
|
-
a,
|
|
5
|
-
t * e / ((a = (2 - t) * e) < 1 ? a : 2 - a) || 0,
|
|
6
|
-
a / 2
|
|
7
|
-
];
|
|
3
|
+
return [a, t * e / ((a = (2 - t) * e) < 1 ? a : 2 - a) || 0, a / 2];
|
|
8
4
|
}, F = function(a) {
|
|
9
5
|
return typeof a == "string" && a.includes(".") && Number.parseFloat(a) === 1;
|
|
10
6
|
}, C = function(a) {
|
|
@@ -110,22 +106,16 @@ class O {
|
|
|
110
106
|
this._hue = Math.max(0, Math.min(360, s)), this._saturation = Math.max(0, Math.min(100, n)), this._value = Math.max(0, Math.min(100, h)), this.doOnChange();
|
|
111
107
|
};
|
|
112
108
|
if (t.includes("hsl")) {
|
|
113
|
-
const s = t.replace(/hsla|hsl|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map(
|
|
114
|
-
(n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10)
|
|
115
|
-
);
|
|
109
|
+
const s = t.replace(/hsla|hsl|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map((n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10));
|
|
116
110
|
if (s.length === 4 ? this._alpha = Number.parseFloat(s[3]) * 100 : s.length === 3 && (this._alpha = 100), s.length >= 3) {
|
|
117
111
|
const { h: n, s: h, v: r } = k(s[0], s[1], s[2]);
|
|
118
112
|
e(n, h, r);
|
|
119
113
|
}
|
|
120
114
|
} else if (t.includes("hsv")) {
|
|
121
|
-
const s = t.replace(/hsva|hsv|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map(
|
|
122
|
-
(n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10)
|
|
123
|
-
);
|
|
115
|
+
const s = t.replace(/hsva|hsv|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map((n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10));
|
|
124
116
|
s.length === 4 ? this._alpha = Number.parseFloat(s[3]) * 100 : s.length === 3 && (this._alpha = 100), s.length >= 3 && e(s[0], s[1], s[2]);
|
|
125
117
|
} else if (t.includes("rgb")) {
|
|
126
|
-
const s = t.replace(/rgba|rgb|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map(
|
|
127
|
-
(n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10)
|
|
128
|
-
);
|
|
118
|
+
const s = t.replace(/rgba|rgb|\(|\)/g, "").split(/\s|,/g).filter((n) => n !== "").map((n, h) => h > 2 ? Number.parseFloat(n) : Number.parseInt(n, 10));
|
|
129
119
|
if (s.length === 4 ? this._alpha = Number.parseFloat(s[3]) * 100 : s.length === 3 && (this._alpha = 100), s.length >= 3) {
|
|
130
120
|
const { h: n, s: h, v: r } = M(s[0], s[1], s[2]);
|
|
131
121
|
e(n, h, r);
|
|
@@ -149,21 +139,15 @@ class O {
|
|
|
149
139
|
switch (h) {
|
|
150
140
|
case "hsl": {
|
|
151
141
|
const r = _(t, e / 100, s / 100);
|
|
152
|
-
this.value = `hsla(${t}, ${Math.round(
|
|
153
|
-
r[1] * 100
|
|
154
|
-
)}%, ${Math.round(r[2] * 100)}%, ${this.get("alpha") / 100})`;
|
|
142
|
+
this.value = `hsla(${t}, ${Math.round(r[1] * 100)}%, ${Math.round(r[2] * 100)}%, ${this.get("alpha") / 100})`;
|
|
155
143
|
break;
|
|
156
144
|
}
|
|
157
145
|
case "hsv": {
|
|
158
|
-
this.value = `hsva(${t}, ${Math.round(e)}%, ${Math.round(
|
|
159
|
-
s
|
|
160
|
-
)}%, ${this.get("alpha") / 100})`;
|
|
146
|
+
this.value = `hsva(${t}, ${Math.round(e)}%, ${Math.round(s)}%, ${this.get("alpha") / 100})`;
|
|
161
147
|
break;
|
|
162
148
|
}
|
|
163
149
|
case "hex": {
|
|
164
|
-
this.value = `${$(u(t, e, s))}${f(
|
|
165
|
-
n * 255 / 100
|
|
166
|
-
)}`;
|
|
150
|
+
this.value = `${$(u(t, e, s))}${f(n * 255 / 100)}`;
|
|
167
151
|
break;
|
|
168
152
|
}
|
|
169
153
|
default: {
|
|
@@ -175,15 +159,11 @@ class O {
|
|
|
175
159
|
switch (h) {
|
|
176
160
|
case "hsl": {
|
|
177
161
|
const r = _(t, e / 100, s / 100);
|
|
178
|
-
this.value = `hsl(${t}, ${Math.round(r[1] * 100)}%, ${Math.round(
|
|
179
|
-
r[2] * 100
|
|
180
|
-
)}%)`;
|
|
162
|
+
this.value = `hsl(${t}, ${Math.round(r[1] * 100)}%, ${Math.round(r[2] * 100)}%)`;
|
|
181
163
|
break;
|
|
182
164
|
}
|
|
183
165
|
case "hsv": {
|
|
184
|
-
this.value = `hsv(${t}, ${Math.round(e)}%, ${Math.round(
|
|
185
|
-
s
|
|
186
|
-
)}%)`;
|
|
166
|
+
this.value = `hsv(${t}, ${Math.round(e)}%, ${Math.round(s)}%)`;
|
|
187
167
|
break;
|
|
188
168
|
}
|
|
189
169
|
case "rgb": {
|
|
@@ -23,12 +23,10 @@ function q(t) {
|
|
|
23
23
|
var e;
|
|
24
24
|
return ((e = o.value) == null ? void 0 : e.namespace) || I;
|
|
25
25
|
})
|
|
26
|
-
), n = G(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
);
|
|
26
|
+
), n = G(i(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return ((e = o.value) == null ? void 0 : e.zIndex) || z;
|
|
29
|
+
}));
|
|
32
30
|
return {
|
|
33
31
|
ns: r,
|
|
34
32
|
zIndex: n
|
|
@@ -37,10 +35,7 @@ function q(t) {
|
|
|
37
35
|
const A = (t, o, r = !1) => {
|
|
38
36
|
const n = !!l(), e = n ? d() : void 0, u = (o == null ? void 0 : o.provide) ?? (n ? x : void 0);
|
|
39
37
|
if (!u) {
|
|
40
|
-
v(
|
|
41
|
-
"provideGlobalConfig",
|
|
42
|
-
"provideGlobalConfig() can only be used inside setup()."
|
|
43
|
-
);
|
|
38
|
+
v("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
44
39
|
return;
|
|
45
40
|
}
|
|
46
41
|
const s = i(() => {
|
|
@@ -17,9 +17,7 @@ const t = (
|
|
|
17
17
|
height: {}
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
const r = m(
|
|
21
|
-
() => e.height ? t.cssVarBlock({ height: f(e.height) }) : {}
|
|
22
|
-
);
|
|
20
|
+
const r = m(() => e.height ? t.cssVarBlock({ height: f(e.height) }) : {});
|
|
23
21
|
return (s, d) => (n(), a("footer", {
|
|
24
22
|
class: i(l(t).b()),
|
|
25
23
|
style: c(r.value)
|
|
@@ -92,12 +92,13 @@ import "@popperjs/core";
|
|
|
92
92
|
import "../../hooks/use-z-index/index.js";
|
|
93
93
|
import "../message/index.js";
|
|
94
94
|
import "../infinite-scroll/index.js";
|
|
95
|
+
import "../progress-i/index.js";
|
|
95
96
|
const L = { class: "vft-sub-menu" }, N = (
|
|
96
97
|
/* hoist-static*/
|
|
97
98
|
I("context-menu")
|
|
98
99
|
), R = f({
|
|
99
100
|
name: "vft-context-menu"
|
|
100
|
-
}),
|
|
101
|
+
}), Mo = /* @__PURE__ */ f({
|
|
101
102
|
...R,
|
|
102
103
|
props: {
|
|
103
104
|
axis: {},
|
|
@@ -121,21 +122,35 @@ const L = { class: "vft-sub-menu" }, N = (
|
|
|
121
122
|
let r = u(!1);
|
|
122
123
|
A(() => {
|
|
123
124
|
r.value = !0;
|
|
124
|
-
}, 0), F(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
}, 0), F(
|
|
126
|
+
s,
|
|
127
|
+
() => {
|
|
128
|
+
r.value = !1;
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
listenerOptions: {
|
|
132
|
+
capture: !0
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
), c(
|
|
136
|
+
window,
|
|
137
|
+
"scroll",
|
|
138
|
+
() => {
|
|
139
|
+
r.value = !1;
|
|
140
|
+
},
|
|
141
|
+
{
|
|
128
142
|
capture: !0
|
|
129
143
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
), c(
|
|
145
|
+
window,
|
|
146
|
+
"drag",
|
|
147
|
+
() => {
|
|
148
|
+
r.value = !1;
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
capture: !0
|
|
152
|
+
}
|
|
153
|
+
);
|
|
139
154
|
function x(t) {
|
|
140
155
|
var o;
|
|
141
156
|
t != null && t.disabled || ((o = t.handler) == null || o.call(t), r.value = !1);
|
|
@@ -171,5 +186,5 @@ const L = { class: "vft-sub-menu" }, N = (
|
|
|
171
186
|
}
|
|
172
187
|
});
|
|
173
188
|
export {
|
|
174
|
-
|
|
189
|
+
Mo as default
|
|
175
190
|
};
|
|
@@ -6,10 +6,7 @@ const v = (o) => {
|
|
|
6
6
|
return (t) => {
|
|
7
7
|
const e = s(t.value) ? t.value() : t.value;
|
|
8
8
|
if (e) {
|
|
9
|
-
l("pick", [
|
|
10
|
-
n(e[0]).locale(o.value),
|
|
11
|
-
n(e[1]).locale(o.value)
|
|
12
|
-
]);
|
|
9
|
+
l("pick", [n(e[0]).locale(o.value), n(e[1]).locale(o.value)]);
|
|
13
10
|
return;
|
|
14
11
|
}
|
|
15
12
|
t.onClick && t.onClick({
|
|
@@ -50,9 +50,7 @@ const he = ["onMousedown"], ye = {
|
|
|
50
50
|
rowIndex: s
|
|
51
51
|
}, n) => {
|
|
52
52
|
const { disabledDate: r, cellClassName: i } = a, o = l(U), c = G(e, { count: n, rowIndex: s, columnIndex: t }), u = e.dayjs.toDate();
|
|
53
|
-
return e.selected = o.find(
|
|
54
|
-
(te) => te.valueOf() === e.dayjs.valueOf()
|
|
55
|
-
), e.isSelected = !!e.selected, e.isCurrent = W(e), e.disabled = r == null ? void 0 : r(u), e.customClass = i == null ? void 0 : i(u), c;
|
|
53
|
+
return e.selected = o.find((te) => te.valueOf() === e.dayjs.valueOf()), e.isSelected = !!e.selected, e.isCurrent = W(e), e.disabled = r == null ? void 0 : r(u), e.customClass = i == null ? void 0 : i(u), c;
|
|
56
54
|
}, q = (e) => {
|
|
57
55
|
if (a.selectionMode === "week") {
|
|
58
56
|
const [t, s] = a.showWeekNumber ? [1, 7] : [0, 6], n = F(e[t + 1]);
|
|
@@ -135,9 +133,7 @@ const he = ["onMousedown"], ye = {
|
|
|
135
133
|
date: o.startOf("week")
|
|
136
134
|
});
|
|
137
135
|
} else if (a.selectionMode === "dates") {
|
|
138
|
-
const c = i.selected ? O(a.parsedValue).filter(
|
|
139
|
-
(u) => (u == null ? void 0 : u.valueOf()) !== o.valueOf()
|
|
140
|
-
) : O(a.parsedValue).concat([o]);
|
|
136
|
+
const c = i.selected ? O(a.parsedValue).filter((u) => (u == null ? void 0 : u.valueOf()) !== o.valueOf()) : O(a.parsedValue).concat([o]);
|
|
141
137
|
d("pick", c);
|
|
142
138
|
}
|
|
143
139
|
}, F = (e) => {
|
|
@@ -20,11 +20,7 @@ const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe
|
|
|
20
20
|
const t = A, B = (n, e, o) => {
|
|
21
21
|
const r = b().locale(o).startOf("month").month(e).year(n), a = r.daysInMonth();
|
|
22
22
|
return U(a).map((s) => r.add(s, "day").toDate());
|
|
23
|
-
}, K = H("month-table"), x = f("zh-cn"), v = f(), h = f(), V = f([
|
|
24
|
-
[],
|
|
25
|
-
[],
|
|
26
|
-
[]
|
|
27
|
-
]), w = f(), S = f(), k = L(() => {
|
|
23
|
+
}, K = H("month-table"), x = f("zh-cn"), v = f(), h = f(), V = f([[], [], []]), w = f(), S = f(), k = L(() => {
|
|
28
24
|
var o, r;
|
|
29
25
|
const n = V.value, e = b().locale(x.value).startOf("month");
|
|
30
26
|
for (let a = 0; a < 3; a++) {
|
|
@@ -56,9 +52,7 @@ const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe
|
|
|
56
52
|
) >= 0, e.today = r.getFullYear() === o && r.getMonth() === a, n.inRange && (e["in-range"] = !0, n.start && (e["start-date"] = !0), n.end && (e["end-date"] = !0)), e;
|
|
57
53
|
}, y = (n) => {
|
|
58
54
|
const e = t.date.year(), o = n.text;
|
|
59
|
-
return T(t.date).findIndex(
|
|
60
|
-
(r) => r.year() === e && r.month() === o
|
|
61
|
-
) >= 0;
|
|
55
|
+
return T(t.date).findIndex((r) => r.year() === e && r.month() === o) >= 0;
|
|
62
56
|
}, P = (n) => {
|
|
63
57
|
var a;
|
|
64
58
|
if (!t.rangeState.selecting)
|
|
@@ -73,9 +67,7 @@ const W = ["aria-selected", "tabindex", "onKeydown"], X = { class: "cell" }, pe
|
|
|
73
67
|
}));
|
|
74
68
|
}, D = (n) => {
|
|
75
69
|
var i;
|
|
76
|
-
const e = (i = n.target) == null ? void 0 : i.closest(
|
|
77
|
-
"td"
|
|
78
|
-
);
|
|
70
|
+
const e = (i = n.target) == null ? void 0 : i.closest("td");
|
|
79
71
|
if ((e == null ? void 0 : e.tagName) !== "TD" || G(e, "disabled"))
|
|
80
72
|
return;
|
|
81
73
|
const o = e.cellIndex, a = e.parentNode.rowIndex * 4 + o, s = t.date.startOf("year").month(a);
|
|
@@ -76,9 +76,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
|
|
|
76
76
|
i.value === "year" ? (t.value = t.value.startOf("year").year(e), c(t.value, !1)) : (t.value = t.value.year(e), s.value = "month", ["month", "year", "date", "week"].includes(i.value) && (c(t.value, !0), await ee(), _())), z("year");
|
|
77
77
|
}, Y = async (e) => {
|
|
78
78
|
s.value = e, await ee(), _();
|
|
79
|
-
}, R = m(
|
|
80
|
-
() => u.type === "datetime" || u.type === "datetimerange"
|
|
81
|
-
), Se = m(() => R.value || i.value === "dates"), Be = () => {
|
|
79
|
+
}, R = m(() => u.type === "datetime" || u.type === "datetimerange"), Se = m(() => R.value || i.value === "dates"), Be = () => {
|
|
82
80
|
if (i.value === "dates")
|
|
83
81
|
c(u.parsedValue);
|
|
84
82
|
else {
|
|
@@ -96,16 +94,12 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
|
|
|
96
94
|
if (F.value)
|
|
97
95
|
return F.value;
|
|
98
96
|
if (!(!u.parsedValue && !M.value))
|
|
99
|
-
return (u.parsedValue || t.value).format(
|
|
100
|
-
q.value
|
|
101
|
-
);
|
|
97
|
+
return (u.parsedValue || t.value).format(q.value);
|
|
102
98
|
}), Oe = m(() => {
|
|
103
99
|
if ($.value)
|
|
104
100
|
return $.value;
|
|
105
101
|
if (!(!u.parsedValue && !M.value))
|
|
106
|
-
return (u.parsedValue || t.value).format(
|
|
107
|
-
ie.value
|
|
108
|
-
);
|
|
102
|
+
return (u.parsedValue || t.value).format(ie.value);
|
|
109
103
|
}), S = D(!1), Ye = () => {
|
|
110
104
|
S.value = !0;
|
|
111
105
|
}, _e = () => {
|
|
@@ -155,9 +149,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
|
|
|
155
149
|
f.end,
|
|
156
150
|
f.pageUp,
|
|
157
151
|
f.pageDown
|
|
158
|
-
].includes(a) && (de(a), e.stopPropagation(), e.preventDefault()), [f.enter, f.space, f.numpadEnter].includes(
|
|
159
|
-
a
|
|
160
|
-
) && $.value === null && F.value === null && (e.preventDefault(), c(t.value, !1));
|
|
152
|
+
].includes(a) && (de(a), e.stopPropagation(), e.preventDefault()), [f.enter, f.space, f.numpadEnter].includes(a) && $.value === null && F.value === null && (e.preventDefault(), c(t.value, !1));
|
|
161
153
|
}, de = (e) => {
|
|
162
154
|
const { up: a, down: l, left: y, right: b, home: X, end: Z, pageUp: Je, pageDown: qe } = f, Ge = {
|
|
163
155
|
year: {
|
|
@@ -311,10 +303,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
|
|
|
311
303
|
])
|
|
312
304
|
], 2)) : K("", !0),
|
|
313
305
|
P(v("div", {
|
|
314
|
-
class: r([
|
|
315
|
-
n(g).e("header"),
|
|
316
|
-
(s.value === "year" || s.value === "month") && n(g).e("header--bordered")
|
|
317
|
-
])
|
|
306
|
+
class: r([n(g).e("header"), (s.value === "year" || s.value === "month") && n(g).e("header--bordered")])
|
|
318
307
|
}, [
|
|
319
308
|
v("span", {
|
|
320
309
|
class: r(n(g).e("prev-btn"))
|
|
@@ -348,10 +337,7 @@ const ma = ["onClick"], _a = /* @__PURE__ */ Qe({
|
|
|
348
337
|
role: "button",
|
|
349
338
|
"aria-live": "polite",
|
|
350
339
|
tabindex: "0",
|
|
351
|
-
class: r([
|
|
352
|
-
n(g).e("header-label"),
|
|
353
|
-
{ active: s.value === "month" }
|
|
354
|
-
]),
|
|
340
|
+
class: r([n(g).e("header-label"), { active: s.value === "month" }]),
|
|
355
341
|
onKeydown: a[6] || (a[6] = me((l) => Y("month"), ["enter"])),
|
|
356
342
|
onClick: a[7] || (a[7] = (l) => Y("month"))
|
|
357
343
|
}, j(n(na)["month" + (Pe.value + 1)]), 35), [
|
|
@@ -28,16 +28,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
|
|
|
28
28
|
rightDate: u,
|
|
29
29
|
unit: k,
|
|
30
30
|
onParsedValueChanged: X
|
|
31
|
-
}), x = j(() => !!R.length), {
|
|
32
|
-
leftPrevYear: D,
|
|
33
|
-
rightNextYear: E,
|
|
34
|
-
leftNextYear: B,
|
|
35
|
-
rightPrevYear: M,
|
|
36
|
-
leftLabel: J,
|
|
37
|
-
rightLabel: O,
|
|
38
|
-
leftYear: Q,
|
|
39
|
-
rightYear: U
|
|
40
|
-
} = ae({
|
|
31
|
+
}), x = j(() => !!R.length), { leftPrevYear: D, rightNextYear: E, leftNextYear: B, rightPrevYear: M, leftLabel: J, rightLabel: O, leftYear: Q, rightYear: U } = ae({
|
|
41
32
|
unlinkPanels: L(g, "unlinkPanels"),
|
|
42
33
|
leftDate: p,
|
|
43
34
|
rightDate: u
|
|
@@ -99,10 +90,7 @@ const se = ["onClick"], ie = ["disabled"], de = ["disabled"], k = "year", ce = I
|
|
|
99
90
|
key: 0,
|
|
100
91
|
type: "button",
|
|
101
92
|
disabled: !v.value,
|
|
102
|
-
class: a([[
|
|
103
|
-
e(o).e("icon-btn"),
|
|
104
|
-
{ [e(o).is("disabled")]: !v.value }
|
|
105
|
-
], "d-arrow-right"]),
|
|
93
|
+
class: a([[e(o).e("icon-btn"), { [e(o).is("disabled")]: !v.value }], "d-arrow-right"]),
|
|
106
94
|
onClick: t[1] || (t[1] = //@ts-ignore
|
|
107
95
|
(...n) => e(B) && e(B)(...n))
|
|
108
96
|
}, [
|
|
@@ -29,12 +29,10 @@ const l = (
|
|
|
29
29
|
V(q, S.props);
|
|
30
30
|
const $ = D(() => [l.b(), l.m("small")]), h = (e, o, t, r = !1) => (e.props || (e.props = {}), o > t && (e.props.span = t), r && (e.props.span = o), e), B = () => {
|
|
31
31
|
var v;
|
|
32
|
-
const e = R((v = f.default) == null ? void 0 : v.call(f)).filter(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
), o = [];
|
|
32
|
+
const e = R((v = f.default) == null ? void 0 : v.call(f)).filter((s) => {
|
|
33
|
+
var n;
|
|
34
|
+
return ((n = s == null ? void 0 : s.type) == null ? void 0 : n.name) === "ElDescriptionsItem";
|
|
35
|
+
}), o = [];
|
|
38
36
|
let t = [], r = m.column, b = 0;
|
|
39
37
|
return e.forEach((s, n) => {
|
|
40
38
|
var y;
|
|
@@ -28,9 +28,7 @@ const q = v({
|
|
|
28
28
|
},
|
|
29
29
|
render() {
|
|
30
30
|
var h, n, g, f, c, u;
|
|
31
|
-
const e = A(
|
|
32
|
-
this.cell
|
|
33
|
-
), { border: p, direction: N } = this.descriptions, l = N === "vertical", o = ((g = (n = (h = this.cell) == null ? void 0 : h.children) == null ? void 0 : n.label) == null ? void 0 : g.call(n)) || e.label, d = (u = (c = (f = this.cell) == null ? void 0 : f.children) == null ? void 0 : c.default) == null ? void 0 : u.call(c), i = e.span, a = e.align ? `is-${e.align}` : "", C = e.labelAlign ? `is-${e.labelAlign}` : a, m = e.className, b = e.labelClassName, r = {
|
|
31
|
+
const e = A(this.cell), { border: p, direction: N } = this.descriptions, l = N === "vertical", o = ((g = (n = (h = this.cell) == null ? void 0 : h.children) == null ? void 0 : n.label) == null ? void 0 : g.call(n)) || e.label, d = (u = (c = (f = this.cell) == null ? void 0 : f.children) == null ? void 0 : c.default) == null ? void 0 : u.call(c), i = e.span, a = e.align ? `is-${e.align}` : "", C = e.labelAlign ? `is-${e.labelAlign}` : a, m = e.className, b = e.labelClassName, r = {
|
|
34
32
|
width: y(e.width),
|
|
35
33
|
minWidth: y(e.minWidth)
|
|
36
34
|
}, t = j("descriptions");
|
|
@@ -79,9 +79,7 @@ const Z = ["aria-label", "aria-labelledby", "aria-describedby"], _ = ["id"], x =
|
|
|
79
79
|
rendered: I,
|
|
80
80
|
visible: m,
|
|
81
81
|
zIndex: S
|
|
82
|
-
} = Y(E.props, c), v = B(), V = k(
|
|
83
|
-
() => s.direction === "rtl" || s.direction === "ltr"
|
|
84
|
-
), C = k(() => G(s.size));
|
|
82
|
+
} = Y(E.props, c), v = B(), V = k(() => s.direction === "rtl" || s.direction === "ltr"), C = k(() => G(s.size));
|
|
85
83
|
return g({
|
|
86
84
|
close: n
|
|
87
85
|
}), (o, i) => (a(), T(O, {
|
|
@@ -35,10 +35,7 @@ const z = N({
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
37
37
|
setup(D, { emit: m }) {
|
|
38
|
-
const i = K("dropdown"), { role: t } = e(g, void 0), { collectionItemRef: p } = e(
|
|
39
|
-
w,
|
|
40
|
-
void 0
|
|
41
|
-
), { collectionItemRef: c } = e(
|
|
38
|
+
const i = K("dropdown"), { role: t } = e(g, void 0), { collectionItemRef: p } = e(w, void 0), { collectionItemRef: c } = e(
|
|
42
39
|
T,
|
|
43
40
|
void 0
|
|
44
41
|
), {
|
|
@@ -47,11 +44,7 @@ const z = N({
|
|
|
47
44
|
handleFocus: s,
|
|
48
45
|
handleKeydown: a,
|
|
49
46
|
handleMousedown: d
|
|
50
|
-
} = e(v, void 0), _ = L(
|
|
51
|
-
p,
|
|
52
|
-
c,
|
|
53
|
-
I
|
|
54
|
-
), f = C(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), E = R((o) => {
|
|
47
|
+
} = e(v, void 0), _ = L(p, c, I), f = C(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), E = R((o) => {
|
|
55
48
|
const { code: n } = o;
|
|
56
49
|
if (n === r.enter || n === r.space)
|
|
57
50
|
return o.preventDefault(), o.stopImmediatePropagation(), m("clickimpl", o), !0;
|
|
@@ -35,10 +35,7 @@ const W = b({
|
|
|
35
35
|
const { elDropdown: e } = A(), u = g(), f = k(null), p = d(() => {
|
|
36
36
|
var t;
|
|
37
37
|
return ((t = E(f)) == null ? void 0 : t.textContent) ?? "";
|
|
38
|
-
}), { onItemEnter: v, onItemLeave: m } = O(
|
|
39
|
-
N,
|
|
40
|
-
void 0
|
|
41
|
-
), I = i(
|
|
38
|
+
}), { onItemEnter: v, onItemLeave: m } = O(N, void 0), I = i(
|
|
42
39
|
(t) => (r("pointermove", t), t.defaultPrevented),
|
|
43
40
|
l((t) => {
|
|
44
41
|
if (o.disabled) {
|
|
@@ -29,26 +29,10 @@ const Io = F({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(n) {
|
|
32
|
-
const s = V("dropdown"), { _elDropdownSize: f } = M(), e = f.value, { focusTrapRef: u, onKeydown: a } = t(
|
|
33
|
-
|
|
32
|
+
const s = V("dropdown"), { _elDropdownSize: f } = M(), e = f.value, { focusTrapRef: u, onKeydown: a } = t(Y, void 0), { contentRef: p, role: _, triggerId: O } = t(A, void 0), { collectionRef: I, getItems: l } = t(W, void 0), { rovingFocusGroupRef: E, rovingFocusGroupRootStyle: N, tabIndex: C, onBlur: T, onFocus: R, onMousedown: K } = t(
|
|
33
|
+
J,
|
|
34
34
|
void 0
|
|
35
|
-
), {
|
|
36
|
-
A,
|
|
37
|
-
void 0
|
|
38
|
-
), { collectionRef: I, getItems: l } = t(
|
|
39
|
-
W,
|
|
40
|
-
void 0
|
|
41
|
-
), {
|
|
42
|
-
rovingFocusGroupRef: E,
|
|
43
|
-
rovingFocusGroupRootStyle: N,
|
|
44
|
-
tabIndex: C,
|
|
45
|
-
onBlur: T,
|
|
46
|
-
onFocus: R,
|
|
47
|
-
onMousedown: K
|
|
48
|
-
} = t(J, void 0), { collectionRef: w } = t(
|
|
49
|
-
y,
|
|
50
|
-
void 0
|
|
51
|
-
), v = S(() => [s.b("menu"), s.bm("menu", e == null ? void 0 : e.value)]), L = U(
|
|
35
|
+
), { collectionRef: w } = t(y, void 0), v = S(() => [s.b("menu"), s.bm("menu", e == null ? void 0 : e.value)]), L = U(
|
|
52
36
|
p,
|
|
53
37
|
I,
|
|
54
38
|
u,
|
|
@@ -61,13 +45,9 @@ const Io = F({
|
|
|
61
45
|
},
|
|
62
46
|
(o) => {
|
|
63
47
|
const { currentTarget: r, code: i, target: c } = o;
|
|
64
|
-
if (r.contains(
|
|
65
|
-
c
|
|
66
|
-
), b.tab === i && o.stopImmediatePropagation(), o.preventDefault(), c !== D(p) || !h.includes(i))
|
|
48
|
+
if (r.contains(c), b.tab === i && o.stopImmediatePropagation(), o.preventDefault(), c !== D(p) || !h.includes(i))
|
|
67
49
|
return;
|
|
68
|
-
const d = l().filter(
|
|
69
|
-
(m) => !m.disabled
|
|
70
|
-
).map((m) => m.ref);
|
|
50
|
+
const d = l().filter((m) => !m.disabled).map((m) => m.ref);
|
|
71
51
|
x.includes(i) && d.reverse(), G(d);
|
|
72
52
|
}
|
|
73
53
|
);
|
|
@@ -59,24 +59,12 @@ const s = (
|
|
|
59
59
|
([e, o], [r]) => {
|
|
60
60
|
var I, O, R;
|
|
61
61
|
const c = se(o) ? o : [o];
|
|
62
|
-
(I = r == null ? void 0 : r.$el) != null && I.removeEventListener && r.$el.removeEventListener(
|
|
63
|
-
"pointerenter",
|
|
64
|
-
f
|
|
65
|
-
), (O = e == null ? void 0 : e.$el) != null && O.removeEventListener && e.$el.removeEventListener(
|
|
66
|
-
"pointerenter",
|
|
67
|
-
f
|
|
68
|
-
), (R = e == null ? void 0 : e.$el) != null && R.addEventListener && c.includes("hover") && e.$el.addEventListener(
|
|
69
|
-
"pointerenter",
|
|
70
|
-
f
|
|
71
|
-
);
|
|
62
|
+
(I = r == null ? void 0 : r.$el) != null && I.removeEventListener && r.$el.removeEventListener("pointerenter", f), (O = e == null ? void 0 : e.$el) != null && O.removeEventListener && e.$el.removeEventListener("pointerenter", f), (R = e == null ? void 0 : e.$el) != null && R.addEventListener && c.includes("hover") && e.$el.addEventListener("pointerenter", f);
|
|
72
63
|
},
|
|
73
64
|
{ immediate: !0 }
|
|
74
65
|
), oe(() => {
|
|
75
66
|
var e, o;
|
|
76
|
-
(o = (e = a.value) == null ? void 0 : e.$el) != null && o.removeEventListener && a.value.$el.removeEventListener(
|
|
77
|
-
"pointerenter",
|
|
78
|
-
f
|
|
79
|
-
);
|
|
67
|
+
(o = (e = a.value) == null ? void 0 : e.$el) != null && o.removeEventListener && a.value.$el.removeEventListener("pointerenter", f);
|
|
80
68
|
});
|
|
81
69
|
function U() {
|
|
82
70
|
$();
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { EVENT_CODE as o } from "@vft/constants";
|
|
2
2
|
import { createCollectionWithScope as E } from "../collection/collection.js";
|
|
3
|
-
const I = [
|
|
4
|
-
o.down,
|
|
5
|
-
o.pageDown,
|
|
6
|
-
o.home
|
|
7
|
-
], O = [o.up, o.pageUp, o.end], t = [...I, ...O], {
|
|
8
|
-
VftCollection: N,
|
|
9
|
-
VftCollectionItem: T,
|
|
10
|
-
COLLECTION_INJECTION_KEY: e,
|
|
11
|
-
COLLECTION_ITEM_INJECTION_KEY: n
|
|
12
|
-
} = E("Dropdown");
|
|
3
|
+
const I = [o.down, o.pageDown, o.home], O = [o.up, o.pageUp, o.end], t = [...I, ...O], { VftCollection: N, VftCollectionItem: T, COLLECTION_INJECTION_KEY: e, COLLECTION_ITEM_INJECTION_KEY: n } = E("Dropdown");
|
|
13
4
|
export {
|
|
14
5
|
e as DROPDOWN_COLLECTION_INJECTION_KEY,
|
|
15
6
|
n as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY,
|
|
@@ -42,9 +42,7 @@ const V = () => {
|
|
|
42
42
|
e == null || e.addEventListener("keydown", D), (t = c.value) == null || t.addEventListener("keydown", w, !0);
|
|
43
43
|
}
|
|
44
44
|
function I() {
|
|
45
|
-
s.value = c.value.querySelectorAll(
|
|
46
|
-
"[tabindex='-1']"
|
|
47
|
-
), a.value = Array.from(s.value), y(), h();
|
|
45
|
+
s.value = c.value.querySelectorAll("[tabindex='-1']"), a.value = Array.from(s.value), y(), h();
|
|
48
46
|
}
|
|
49
47
|
function v() {
|
|
50
48
|
e.focus();
|
|
@@ -17,9 +17,12 @@ const N = /* @__PURE__ */ f({
|
|
|
17
17
|
},
|
|
18
18
|
setup(w) {
|
|
19
19
|
const l = d(), { goRoot: n } = y(l), { refreshPage: s } = k(), u = {
|
|
20
|
-
...R(
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
...R(
|
|
21
|
+
{
|
|
22
|
+
"title-font-size": "16px"
|
|
23
|
+
},
|
|
24
|
+
"result"
|
|
25
|
+
)
|
|
23
26
|
};
|
|
24
27
|
return (o, t) => (i(), a(e(C), {
|
|
25
28
|
title: o.title,
|
|
@@ -17,14 +17,7 @@ const ce = J({
|
|
|
17
17
|
default: "first"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
emits: [
|
|
21
|
-
U,
|
|
22
|
-
K,
|
|
23
|
-
"focusin",
|
|
24
|
-
"focusout",
|
|
25
|
-
"focusout-prevented",
|
|
26
|
-
"release-requested"
|
|
27
|
-
],
|
|
20
|
+
emits: [U, K, "focusin", "focusout", "focusout-prevented", "release-requested"],
|
|
28
21
|
setup(n, { emit: r }) {
|
|
29
22
|
const c = M();
|
|
30
23
|
let l, T;
|
|
@@ -109,20 +102,12 @@ const ce = J({
|
|
|
109
102
|
const e = E(c);
|
|
110
103
|
if (e) {
|
|
111
104
|
N.push(i);
|
|
112
|
-
const t = e.contains(
|
|
113
|
-
document.activeElement
|
|
114
|
-
) ? l : document.activeElement;
|
|
105
|
+
const t = e.contains(document.activeElement) ? l : document.activeElement;
|
|
115
106
|
if (l = t, !e.contains(t)) {
|
|
116
|
-
const o = new Event(
|
|
117
|
-
b,
|
|
118
|
-
k
|
|
119
|
-
);
|
|
107
|
+
const o = new Event(b, k);
|
|
120
108
|
e.addEventListener(b, F), e.dispatchEvent(o), o.defaultPrevented || I(() => {
|
|
121
109
|
let a = n.focusStartEl;
|
|
122
|
-
q(a) || (f(a), document.activeElement !== a && (a = "first")), a === "first" && X(
|
|
123
|
-
Z(e),
|
|
124
|
-
!0
|
|
125
|
-
), (document.activeElement === t || a === "container") && f(e);
|
|
110
|
+
q(a) || (f(a), document.activeElement !== a && (a = "first")), a === "first" && X(Z(e), !0), (document.activeElement === t || a === "container") && f(e);
|
|
126
111
|
});
|
|
127
112
|
}
|
|
128
113
|
}
|
|
@@ -92,12 +92,13 @@ import "@popperjs/core";
|
|
|
92
92
|
import "../../hooks/use-z-index/index.js";
|
|
93
93
|
import "../message/index.js";
|
|
94
94
|
import "../infinite-scroll/index.js";
|
|
95
|
+
import "../progress-i/index.js";
|
|
95
96
|
const r = (
|
|
96
97
|
/* hoist-static*/
|
|
97
98
|
f("footer-layout")
|
|
98
99
|
), c = e({
|
|
99
100
|
name: "vft-footer-layout"
|
|
100
|
-
}),
|
|
101
|
+
}), ro = /* @__PURE__ */ e({
|
|
101
102
|
...c,
|
|
102
103
|
setup(u) {
|
|
103
104
|
return (i, d) => (s(), l(t(n), {
|
|
@@ -125,5 +126,5 @@ const r = (
|
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
export {
|
|
128
|
-
|
|
129
|
+
ro as default
|
|
129
130
|
};
|