@wfrog/vc-ui 1.0.0 → 1.1.0
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/README.md +2 -2
- package/dist/es/chunk/{BMzd-IS6.mjs → 09Ec85_u.mjs} +13 -13
- package/dist/es/chunk/{su2Zrql0.mjs → 4eyJqDa9.mjs} +1 -1
- package/dist/es/chunk/{Dqz1zvKN.mjs → 73YgKz3H.mjs} +1 -1
- package/dist/es/chunk/{Dh4jaUSg.mjs → B5UQmWXg.mjs} +5 -5
- package/dist/es/chunk/{CVlj9F0I.mjs → BHsNc7jl.mjs} +4 -3
- package/dist/es/chunk/{CEm0brzD.mjs → BI0vrXwX.mjs} +2 -1
- package/dist/es/chunk/{BJS5Pdfp.mjs → BTpNRPQW.mjs} +1 -1
- package/dist/es/chunk/{De_EXLIy.mjs → BUEEWLrd.mjs} +1 -1
- package/dist/es/chunk/{C5hWsUfD.mjs → BcTuAX8r.mjs} +2 -2
- package/dist/es/chunk/{DyDMGLoF.mjs → Bl2KlMdP.mjs} +3 -2
- package/dist/es/chunk/{ViP2SEY4.mjs → Bp9jXKX0.mjs} +2 -3
- package/dist/es/chunk/{C2LgraHx.mjs → BpqBBo4z.mjs} +2 -3
- package/dist/es/chunk/{CS4VKsqy.mjs → BsGCX4td.mjs} +1 -1
- package/dist/es/chunk/{-EkpfdcW.mjs → BsLJxiSC.mjs} +46 -8
- package/dist/es/chunk/{zfg5SOj1.mjs → BtTIs3tG.mjs} +3 -3
- package/dist/es/chunk/{B_tU9Nax.mjs → BzedaLtg.mjs} +1 -1
- package/dist/es/chunk/{Dvi7RsXg.mjs → C7wQNvSS.mjs} +10 -9
- package/dist/es/chunk/{8rLUmOVR.mjs → CBSopeeE.mjs} +3 -2
- package/dist/es/chunk/{Coex0GxM.mjs → CLCfXfvv.mjs} +10 -10
- package/dist/es/chunk/{DqUIKX7f.mjs → CLMc8GzD.mjs} +8 -7
- package/dist/es/chunk/{D3uV7vm-.mjs → CLbj8G-F.mjs} +3 -3
- package/dist/es/chunk/{C7iSSBUr.mjs → CPERtDRX.mjs} +5 -5
- package/dist/es/chunk/{VAdRxe-1.mjs → Cbhe4I9Z.mjs} +1 -1
- package/dist/es/chunk/{D5259bwd.mjs → CizMbf5K.mjs} +2 -1
- package/dist/es/chunk/CsLIbnzG.mjs +64 -0
- package/dist/es/chunk/{Ce9ApjrT.mjs → Cu6erWl4.mjs} +4 -4
- package/dist/es/chunk/{VCrtRnxt.mjs → D0LB3gF-.mjs} +7 -7
- package/dist/es/chunk/{D3DXeVfC.mjs → DFOLES4O.mjs} +60 -16
- package/dist/es/chunk/{E_WRn0OP.mjs → DRoyW749.mjs} +58 -264
- package/dist/es/chunk/{D389hx_T.mjs → DTLPXrjb.mjs} +1 -1
- package/dist/es/chunk/{DZACQ9LT.mjs → DXPWe_a5.mjs} +2 -2
- package/dist/es/chunk/{BWcCXRRK.mjs → DZD-YnCt.mjs} +4 -4
- package/dist/es/chunk/{BdDihk0t.mjs → DaCDeO95.mjs} +591 -562
- package/dist/es/chunk/{CZ4ggqDE.mjs → DihosKp1.mjs} +6 -6
- package/dist/es/chunk/{aibQ9WSZ.mjs → Dk6Bx0KT.mjs} +1 -1
- package/dist/es/chunk/{CyxEcbcy.mjs → DouIsSPi.mjs} +1 -1
- package/dist/es/chunk/{HSv8BL8o.mjs → DrgvuOYH.mjs} +2 -1
- package/dist/es/chunk/{DhhdKtyu.mjs → DwKWIlzw.mjs} +9 -8
- package/dist/es/chunk/{BX-Ogf7p.mjs → FHvLvzEB.mjs} +23 -23
- package/dist/es/chunk/{CMABHk8B.mjs → HAog8AWU.mjs} +22 -22
- package/dist/es/chunk/{Spa-JKB4.mjs → NQBKROII.mjs} +127 -2
- package/dist/es/chunk/{BAtns-Mc.mjs → OEa4tYPF.mjs} +1 -1
- package/dist/es/chunk/{JCIyOUEY.mjs → XwSiBVsA.mjs} +3 -2
- package/dist/es/chunk/{CaTfZePA.mjs → axpwSky6.mjs} +5 -5
- package/dist/es/chunk/{DMHNh_tw.mjs → cPBw23yt.mjs} +3 -3
- package/dist/es/chunk/{nWBcrYxV.mjs → f0-vIQGp.mjs} +3 -5
- package/dist/es/components/awesome-icon/awesome-icon.mjs +4 -6
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.mjs +8 -8
- package/dist/es/components/choice/choice.mjs +2 -2
- package/dist/es/components/choice-boolean/choice-boolean.mjs +1 -1
- package/dist/es/components/config-provider/config-provider.mjs +1 -1
- package/dist/es/components/config-provider/config-provider2.mjs +1 -1
- package/dist/es/components/cropper/cropper.mjs +150 -15
- package/dist/es/components/currency/currency.mjs +6 -6
- package/dist/es/components/daterange-picker/daterange-picker.mjs +25 -23
- package/dist/es/components/dialog/dialog.mjs +11 -12
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +20 -23
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +8 -13
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +12 -16
- package/dist/es/components/drag-verify/components/image.vue.d.ts +54 -0
- package/dist/es/components/drag-verify/components/text.vue.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.d.ts +22 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +475 -0
- package/dist/es/components/drag-verify/drag-verify.vue.d.ts +123 -0
- package/dist/es/components/drag-verify/helper.d.ts +2 -0
- package/dist/es/components/drag-verify/index.css +117 -0
- package/dist/es/components/drag-verify/index.d.ts +4 -0
- package/dist/es/components/drag-verify/index.mjs +6 -0
- package/dist/es/components/drawer/drawer.mjs +12 -13
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/flag/flag.mjs +1 -1
- package/dist/es/components/icon/icon.mjs +2 -2
- package/dist/es/components/icon/icon2.mjs +1 -1
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/input/input.mjs +4 -4
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -23
- package/dist/es/components/qr-code/qr-code.mjs +1 -1
- package/dist/es/components/screenfull/screenfull.mjs +5 -5
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/single-player.mjs +16 -16
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +3 -3
- package/dist/es/components/tags/tags.mjs +9 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/thousand-input/thousand-input.mjs +4 -4
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +7 -10
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -12
- package/dist/es/components/upload-file/upload-file.mjs +6 -9
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.mjs +26 -24
- package/dist/es/use/useSmallScreen/index.mjs +1 -1
- package/dist/global.d.ts +1 -0
- package/dist/index.css +118 -1
- package/package.json +3 -6
- package/dist/es/chunk/BAGoDD49.mjs +0 -36
- package/dist/es/chunk/CD98REcR.mjs +0 -666
- package/dist/es/chunk/CEClY-_T.mjs +0 -445
- package/dist/es/chunk/Fo0dZYnz.mjs +0 -128
- package/dist/es/chunk/O-uhUKF4.mjs +0 -43
- package/dist/es/chunk/qY9OvNHY.mjs +0 -283
- package/dist/es/components/cdn-tag.vue.d.ts +0 -5
- package/dist/es/components/document.vue.d.ts +0 -14
- package/dist/es/components/example-wrapper.vue.d.ts +0 -19
|
@@ -1,445 +0,0 @@
|
|
|
1
|
-
import { y as tryOnScopeDispose, L as isString, M as noop, O as resolveUnref, o as isClient, P as tryOnMounted, v as isIOS, Q as isDef, R as isFunction, S as identity } from './E_WRn0OP.mjs';
|
|
2
|
-
import { watch, ref, getCurrentInstance, computed } from 'vue';
|
|
3
|
-
|
|
4
|
-
function unrefElement(elRef) {
|
|
5
|
-
var _a;
|
|
6
|
-
const plain = resolveUnref(elRef);
|
|
7
|
-
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const defaultWindow = isClient ? window : void 0;
|
|
11
|
-
|
|
12
|
-
function useEventListener(...args) {
|
|
13
|
-
let target;
|
|
14
|
-
let events;
|
|
15
|
-
let listeners;
|
|
16
|
-
let options;
|
|
17
|
-
if (isString(args[0]) || Array.isArray(args[0])) {
|
|
18
|
-
[events, listeners, options] = args;
|
|
19
|
-
target = defaultWindow;
|
|
20
|
-
} else {
|
|
21
|
-
[target, events, listeners, options] = args;
|
|
22
|
-
}
|
|
23
|
-
if (!target)
|
|
24
|
-
return noop;
|
|
25
|
-
if (!Array.isArray(events))
|
|
26
|
-
events = [events];
|
|
27
|
-
if (!Array.isArray(listeners))
|
|
28
|
-
listeners = [listeners];
|
|
29
|
-
const cleanups = [];
|
|
30
|
-
const cleanup = () => {
|
|
31
|
-
cleanups.forEach((fn) => fn());
|
|
32
|
-
cleanups.length = 0;
|
|
33
|
-
};
|
|
34
|
-
const register = (el, event, listener, options2) => {
|
|
35
|
-
el.addEventListener(event, listener, options2);
|
|
36
|
-
return () => el.removeEventListener(event, listener, options2);
|
|
37
|
-
};
|
|
38
|
-
const stopWatch = watch(() => [unrefElement(target), resolveUnref(options)], ([el, options2]) => {
|
|
39
|
-
cleanup();
|
|
40
|
-
if (!el)
|
|
41
|
-
return;
|
|
42
|
-
cleanups.push(...events.flatMap((event) => {
|
|
43
|
-
return listeners.map((listener) => register(el, event, listener, options2));
|
|
44
|
-
}));
|
|
45
|
-
}, { immediate: true, flush: "post" });
|
|
46
|
-
const stop = () => {
|
|
47
|
-
stopWatch();
|
|
48
|
-
cleanup();
|
|
49
|
-
};
|
|
50
|
-
tryOnScopeDispose(stop);
|
|
51
|
-
return stop;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
let _iOSWorkaround = false;
|
|
55
|
-
function onClickOutside(target, handler, options = {}) {
|
|
56
|
-
const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
|
|
57
|
-
if (!window)
|
|
58
|
-
return;
|
|
59
|
-
if (isIOS && !_iOSWorkaround) {
|
|
60
|
-
_iOSWorkaround = true;
|
|
61
|
-
Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop));
|
|
62
|
-
}
|
|
63
|
-
let shouldListen = true;
|
|
64
|
-
const shouldIgnore = (event) => {
|
|
65
|
-
return ignore.some((target2) => {
|
|
66
|
-
if (typeof target2 === "string") {
|
|
67
|
-
return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
|
|
68
|
-
} else {
|
|
69
|
-
const el = unrefElement(target2);
|
|
70
|
-
return el && (event.target === el || event.composedPath().includes(el));
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
const listener = (event) => {
|
|
75
|
-
const el = unrefElement(target);
|
|
76
|
-
if (!el || el === event.target || event.composedPath().includes(el))
|
|
77
|
-
return;
|
|
78
|
-
if (event.detail === 0)
|
|
79
|
-
shouldListen = !shouldIgnore(event);
|
|
80
|
-
if (!shouldListen) {
|
|
81
|
-
shouldListen = true;
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
handler(event);
|
|
85
|
-
};
|
|
86
|
-
const cleanup = [
|
|
87
|
-
useEventListener(window, "click", listener, { passive: true, capture }),
|
|
88
|
-
useEventListener(window, "pointerdown", (e) => {
|
|
89
|
-
const el = unrefElement(target);
|
|
90
|
-
if (el)
|
|
91
|
-
shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
|
|
92
|
-
}, { passive: true }),
|
|
93
|
-
detectIframe && useEventListener(window, "blur", (event) => {
|
|
94
|
-
var _a;
|
|
95
|
-
const el = unrefElement(target);
|
|
96
|
-
if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
|
|
97
|
-
handler(event);
|
|
98
|
-
})
|
|
99
|
-
].filter(Boolean);
|
|
100
|
-
const stop = () => cleanup.forEach((fn) => fn());
|
|
101
|
-
return stop;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function useSupported(callback, sync = false) {
|
|
105
|
-
const isSupported = ref();
|
|
106
|
-
const update = () => isSupported.value = Boolean(callback());
|
|
107
|
-
update();
|
|
108
|
-
tryOnMounted(update, sync);
|
|
109
|
-
return isSupported;
|
|
110
|
-
}
|
|
111
|
-
function cloneFnJSON(source) {
|
|
112
|
-
return JSON.parse(JSON.stringify(source));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
116
|
-
const globalKey = "__vueuse_ssr_handlers__";
|
|
117
|
-
_global[globalKey] = _global[globalKey] || {};
|
|
118
|
-
|
|
119
|
-
function useCssVar(prop, target, { window = defaultWindow, initialValue = "" } = {}) {
|
|
120
|
-
const variable = ref(initialValue);
|
|
121
|
-
const elRef = computed(() => {
|
|
122
|
-
var _a;
|
|
123
|
-
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
|
124
|
-
});
|
|
125
|
-
watch([elRef, () => resolveUnref(prop)], ([el, prop2]) => {
|
|
126
|
-
var _a;
|
|
127
|
-
if (el && window) {
|
|
128
|
-
const value = (_a = window.getComputedStyle(el).getPropertyValue(prop2)) == null ? void 0 : _a.trim();
|
|
129
|
-
variable.value = value || initialValue;
|
|
130
|
-
}
|
|
131
|
-
}, { immediate: true });
|
|
132
|
-
watch(variable, (val) => {
|
|
133
|
-
var _a;
|
|
134
|
-
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
|
135
|
-
elRef.value.style.setProperty(resolveUnref(prop), val);
|
|
136
|
-
});
|
|
137
|
-
return variable;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
141
|
-
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
142
|
-
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
143
|
-
var __objRest$2 = (source, exclude) => {
|
|
144
|
-
var target = {};
|
|
145
|
-
for (var prop in source)
|
|
146
|
-
if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
147
|
-
target[prop] = source[prop];
|
|
148
|
-
if (source != null && __getOwnPropSymbols$g)
|
|
149
|
-
for (var prop of __getOwnPropSymbols$g(source)) {
|
|
150
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
|
|
151
|
-
target[prop] = source[prop];
|
|
152
|
-
}
|
|
153
|
-
return target;
|
|
154
|
-
};
|
|
155
|
-
function useResizeObserver(target, callback, options = {}) {
|
|
156
|
-
const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
|
|
157
|
-
let observer;
|
|
158
|
-
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
|
159
|
-
const cleanup = () => {
|
|
160
|
-
if (observer) {
|
|
161
|
-
observer.disconnect();
|
|
162
|
-
observer = void 0;
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
166
|
-
cleanup();
|
|
167
|
-
if (isSupported.value && window && el) {
|
|
168
|
-
observer = new ResizeObserver(callback);
|
|
169
|
-
observer.observe(el, observerOptions);
|
|
170
|
-
}
|
|
171
|
-
}, { immediate: true, flush: "post" });
|
|
172
|
-
const stop = () => {
|
|
173
|
-
cleanup();
|
|
174
|
-
stopWatch();
|
|
175
|
-
};
|
|
176
|
-
tryOnScopeDispose(stop);
|
|
177
|
-
return {
|
|
178
|
-
isSupported,
|
|
179
|
-
stop
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function useIntersectionObserver(target, callback, options = {}) {
|
|
184
|
-
const {
|
|
185
|
-
root,
|
|
186
|
-
rootMargin = "0px",
|
|
187
|
-
threshold = 0.1,
|
|
188
|
-
window = defaultWindow
|
|
189
|
-
} = options;
|
|
190
|
-
const isSupported = useSupported(() => window && "IntersectionObserver" in window);
|
|
191
|
-
let cleanup = noop;
|
|
192
|
-
const stopWatch = isSupported.value ? watch(() => ({
|
|
193
|
-
el: unrefElement(target),
|
|
194
|
-
root: unrefElement(root)
|
|
195
|
-
}), ({ el, root: root2 }) => {
|
|
196
|
-
cleanup();
|
|
197
|
-
if (!el)
|
|
198
|
-
return;
|
|
199
|
-
const observer = new IntersectionObserver(callback, {
|
|
200
|
-
root: root2,
|
|
201
|
-
rootMargin,
|
|
202
|
-
threshold
|
|
203
|
-
});
|
|
204
|
-
observer.observe(el);
|
|
205
|
-
cleanup = () => {
|
|
206
|
-
observer.disconnect();
|
|
207
|
-
cleanup = noop;
|
|
208
|
-
};
|
|
209
|
-
}, { immediate: true, flush: "post" }) : noop;
|
|
210
|
-
const stop = () => {
|
|
211
|
-
cleanup();
|
|
212
|
-
stopWatch();
|
|
213
|
-
};
|
|
214
|
-
tryOnScopeDispose(stop);
|
|
215
|
-
return {
|
|
216
|
-
isSupported,
|
|
217
|
-
stop
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
222
|
-
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
223
|
-
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
224
|
-
var __objRest$1 = (source, exclude) => {
|
|
225
|
-
var target = {};
|
|
226
|
-
for (var prop in source)
|
|
227
|
-
if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
228
|
-
target[prop] = source[prop];
|
|
229
|
-
if (source != null && __getOwnPropSymbols$8)
|
|
230
|
-
for (var prop of __getOwnPropSymbols$8(source)) {
|
|
231
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
|
|
232
|
-
target[prop] = source[prop];
|
|
233
|
-
}
|
|
234
|
-
return target;
|
|
235
|
-
};
|
|
236
|
-
function useMutationObserver(target, callback, options = {}) {
|
|
237
|
-
const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$1(_a, ["window"]);
|
|
238
|
-
let observer;
|
|
239
|
-
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
|
240
|
-
const cleanup = () => {
|
|
241
|
-
if (observer) {
|
|
242
|
-
observer.disconnect();
|
|
243
|
-
observer = void 0;
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
const stopWatch = watch(() => unrefElement(target), (el) => {
|
|
247
|
-
cleanup();
|
|
248
|
-
if (isSupported.value && window && el) {
|
|
249
|
-
observer = new MutationObserver(callback);
|
|
250
|
-
observer.observe(el, mutationOptions);
|
|
251
|
-
}
|
|
252
|
-
}, { immediate: true });
|
|
253
|
-
const stop = () => {
|
|
254
|
-
cleanup();
|
|
255
|
-
stopWatch();
|
|
256
|
-
};
|
|
257
|
-
tryOnScopeDispose(stop);
|
|
258
|
-
return {
|
|
259
|
-
isSupported,
|
|
260
|
-
stop
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
var SwipeDirection;
|
|
265
|
-
(function(SwipeDirection2) {
|
|
266
|
-
SwipeDirection2["UP"] = "UP";
|
|
267
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
|
268
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
|
269
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
|
270
|
-
SwipeDirection2["NONE"] = "NONE";
|
|
271
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
|
272
|
-
|
|
273
|
-
var __defProp = Object.defineProperty;
|
|
274
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
275
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
276
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
277
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
278
|
-
var __spreadValues = (a, b) => {
|
|
279
|
-
for (var prop in b || (b = {}))
|
|
280
|
-
if (__hasOwnProp.call(b, prop))
|
|
281
|
-
__defNormalProp(a, prop, b[prop]);
|
|
282
|
-
if (__getOwnPropSymbols)
|
|
283
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
284
|
-
if (__propIsEnum.call(b, prop))
|
|
285
|
-
__defNormalProp(a, prop, b[prop]);
|
|
286
|
-
}
|
|
287
|
-
return a;
|
|
288
|
-
};
|
|
289
|
-
const _TransitionPresets = {
|
|
290
|
-
easeInSine: [0.12, 0, 0.39, 0],
|
|
291
|
-
easeOutSine: [0.61, 1, 0.88, 1],
|
|
292
|
-
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
293
|
-
easeInQuad: [0.11, 0, 0.5, 0],
|
|
294
|
-
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
295
|
-
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
296
|
-
easeInCubic: [0.32, 0, 0.67, 0],
|
|
297
|
-
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
298
|
-
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
299
|
-
easeInQuart: [0.5, 0, 0.75, 0],
|
|
300
|
-
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
301
|
-
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
302
|
-
easeInQuint: [0.64, 0, 0.78, 0],
|
|
303
|
-
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
304
|
-
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
305
|
-
easeInExpo: [0.7, 0, 0.84, 0],
|
|
306
|
-
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
307
|
-
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
308
|
-
easeInCirc: [0.55, 0, 1, 0.45],
|
|
309
|
-
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
310
|
-
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
311
|
-
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
312
|
-
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
313
|
-
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
314
|
-
};
|
|
315
|
-
__spreadValues({
|
|
316
|
-
linear: identity
|
|
317
|
-
}, _TransitionPresets);
|
|
318
|
-
|
|
319
|
-
function useVModel(props, key, emit, options = {}) {
|
|
320
|
-
var _a, _b, _c;
|
|
321
|
-
const {
|
|
322
|
-
clone = false,
|
|
323
|
-
passive = false,
|
|
324
|
-
eventName,
|
|
325
|
-
deep = false,
|
|
326
|
-
defaultValue
|
|
327
|
-
} = options;
|
|
328
|
-
const vm = getCurrentInstance();
|
|
329
|
-
const _emit = (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
|
|
330
|
-
let event = eventName;
|
|
331
|
-
event = eventName || event || `update:${key.toString()}`;
|
|
332
|
-
const cloneFn = (val) => !clone ? val : isFunction(clone) ? clone(val) : cloneFnJSON(val);
|
|
333
|
-
const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
|
|
334
|
-
if (passive) {
|
|
335
|
-
const initialValue = getValue();
|
|
336
|
-
const proxy = ref(initialValue);
|
|
337
|
-
watch(() => props[key], (v) => proxy.value = cloneFn(v));
|
|
338
|
-
watch(proxy, (v) => {
|
|
339
|
-
if (v !== props[key] || deep)
|
|
340
|
-
_emit(event, v);
|
|
341
|
-
}, { deep });
|
|
342
|
-
return proxy;
|
|
343
|
-
} else {
|
|
344
|
-
return computed({
|
|
345
|
-
get() {
|
|
346
|
-
return getValue();
|
|
347
|
-
},
|
|
348
|
-
set(value) {
|
|
349
|
-
_emit(event, value);
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
function useWindowSize(options = {}) {
|
|
356
|
-
const {
|
|
357
|
-
window = defaultWindow,
|
|
358
|
-
initialWidth = Infinity,
|
|
359
|
-
initialHeight = Infinity,
|
|
360
|
-
listenOrientation = true,
|
|
361
|
-
includeScrollbar = true
|
|
362
|
-
} = options;
|
|
363
|
-
const width = ref(initialWidth);
|
|
364
|
-
const height = ref(initialHeight);
|
|
365
|
-
const update = () => {
|
|
366
|
-
if (window) {
|
|
367
|
-
if (includeScrollbar) {
|
|
368
|
-
width.value = window.innerWidth;
|
|
369
|
-
height.value = window.innerHeight;
|
|
370
|
-
} else {
|
|
371
|
-
width.value = window.document.documentElement.clientWidth;
|
|
372
|
-
height.value = window.document.documentElement.clientHeight;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
update();
|
|
377
|
-
tryOnMounted(update);
|
|
378
|
-
useEventListener("resize", update, { passive: true });
|
|
379
|
-
if (listenOrientation)
|
|
380
|
-
useEventListener("orientationchange", update, { passive: true });
|
|
381
|
-
return { width, height };
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
const isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
|
|
385
|
-
const isAndroid = () => isClient && /android/i.test(window.navigator.userAgent);
|
|
386
|
-
|
|
387
|
-
const isHTMLElement = (e) => {
|
|
388
|
-
if (typeof Element === "undefined")
|
|
389
|
-
return false;
|
|
390
|
-
return e instanceof Element;
|
|
391
|
-
};
|
|
392
|
-
const isFocusable = (element) => {
|
|
393
|
-
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
|
|
394
|
-
return true;
|
|
395
|
-
}
|
|
396
|
-
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
397
|
-
return false;
|
|
398
|
-
}
|
|
399
|
-
switch (element.nodeName) {
|
|
400
|
-
case "A": {
|
|
401
|
-
return !!element.href && element.rel !== "ignore";
|
|
402
|
-
}
|
|
403
|
-
case "INPUT": {
|
|
404
|
-
return !(element.type === "hidden" || element.type === "file");
|
|
405
|
-
}
|
|
406
|
-
case "BUTTON":
|
|
407
|
-
case "SELECT":
|
|
408
|
-
case "TEXTAREA": {
|
|
409
|
-
return true;
|
|
410
|
-
}
|
|
411
|
-
default: {
|
|
412
|
-
return false;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
const isLeaf = (el) => !el.getAttribute("aria-owns");
|
|
417
|
-
const getSibling = (el, distance, elClass) => {
|
|
418
|
-
const { parentNode } = el;
|
|
419
|
-
if (!parentNode)
|
|
420
|
-
return null;
|
|
421
|
-
const siblings = parentNode.querySelectorAll(elClass);
|
|
422
|
-
const index = Array.prototype.indexOf.call(siblings, el);
|
|
423
|
-
return siblings[index + distance] || null;
|
|
424
|
-
};
|
|
425
|
-
const focusElement = (el, options) => {
|
|
426
|
-
if (!el || !el.focus)
|
|
427
|
-
return;
|
|
428
|
-
let cleanup = false;
|
|
429
|
-
if (isHTMLElement(el) && !isFocusable(el) && !el.getAttribute("tabindex")) {
|
|
430
|
-
el.setAttribute("tabindex", "-1");
|
|
431
|
-
cleanup = true;
|
|
432
|
-
}
|
|
433
|
-
el.focus(options);
|
|
434
|
-
if (isHTMLElement(el) && cleanup) {
|
|
435
|
-
el.removeAttribute("tabindex");
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
const focusNode = (el) => {
|
|
439
|
-
if (!el)
|
|
440
|
-
return;
|
|
441
|
-
focusElement(el);
|
|
442
|
-
!isLeaf(el) && el.click();
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
export { useVModel as a, useWindowSize as b, useEventListener as c, useIntersectionObserver as d, useResizeObserver as e, useMutationObserver as f, isFocusable as g, focusElement as h, isFirefox as i, isLeaf as j, focusNode as k, getSibling as l, useCssVar as m, isAndroid as n, onClickOutside as o, unrefElement as u };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/** Detect free variable `global` from Node.js. */
|
|
2
|
-
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
3
|
-
|
|
4
|
-
/** Detect free variable `self`. */
|
|
5
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
6
|
-
|
|
7
|
-
/** Used as a reference to the global object. */
|
|
8
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
9
|
-
|
|
10
|
-
/** Built-in value references. */
|
|
11
|
-
var Symbol$1 = root.Symbol;
|
|
12
|
-
|
|
13
|
-
/** Used for built-in method references. */
|
|
14
|
-
var objectProto$1 = Object.prototype;
|
|
15
|
-
|
|
16
|
-
/** Used to check objects for own properties. */
|
|
17
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Used to resolve the
|
|
21
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
22
|
-
* of values.
|
|
23
|
-
*/
|
|
24
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
25
|
-
|
|
26
|
-
/** Built-in value references. */
|
|
27
|
-
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
31
|
-
*
|
|
32
|
-
* @private
|
|
33
|
-
* @param {*} value The value to query.
|
|
34
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
35
|
-
*/
|
|
36
|
-
function getRawTag(value) {
|
|
37
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
38
|
-
tag = value[symToStringTag$1];
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
value[symToStringTag$1] = undefined;
|
|
42
|
-
var unmasked = true;
|
|
43
|
-
} catch (e) {}
|
|
44
|
-
|
|
45
|
-
var result = nativeObjectToString$1.call(value);
|
|
46
|
-
if (unmasked) {
|
|
47
|
-
if (isOwn) {
|
|
48
|
-
value[symToStringTag$1] = tag;
|
|
49
|
-
} else {
|
|
50
|
-
delete value[symToStringTag$1];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** Used for built-in method references. */
|
|
57
|
-
var objectProto = Object.prototype;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Used to resolve the
|
|
61
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
62
|
-
* of values.
|
|
63
|
-
*/
|
|
64
|
-
var nativeObjectToString = objectProto.toString;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
68
|
-
*
|
|
69
|
-
* @private
|
|
70
|
-
* @param {*} value The value to convert.
|
|
71
|
-
* @returns {string} Returns the converted string.
|
|
72
|
-
*/
|
|
73
|
-
function objectToString(value) {
|
|
74
|
-
return nativeObjectToString.call(value);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** `Object#toString` result references. */
|
|
78
|
-
var nullTag = '[object Null]',
|
|
79
|
-
undefinedTag = '[object Undefined]';
|
|
80
|
-
|
|
81
|
-
/** Built-in value references. */
|
|
82
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
86
|
-
*
|
|
87
|
-
* @private
|
|
88
|
-
* @param {*} value The value to query.
|
|
89
|
-
* @returns {string} Returns the `toStringTag`.
|
|
90
|
-
*/
|
|
91
|
-
function baseGetTag(value) {
|
|
92
|
-
if (value == null) {
|
|
93
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
94
|
-
}
|
|
95
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
96
|
-
? getRawTag(value)
|
|
97
|
-
: objectToString(value);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
102
|
-
* and has a `typeof` result of "object".
|
|
103
|
-
*
|
|
104
|
-
* @static
|
|
105
|
-
* @memberOf _
|
|
106
|
-
* @since 4.0.0
|
|
107
|
-
* @category Lang
|
|
108
|
-
* @param {*} value The value to check.
|
|
109
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
110
|
-
* @example
|
|
111
|
-
*
|
|
112
|
-
* _.isObjectLike({});
|
|
113
|
-
* // => true
|
|
114
|
-
*
|
|
115
|
-
* _.isObjectLike([1, 2, 3]);
|
|
116
|
-
* // => true
|
|
117
|
-
*
|
|
118
|
-
* _.isObjectLike(_.noop);
|
|
119
|
-
* // => false
|
|
120
|
-
*
|
|
121
|
-
* _.isObjectLike(null);
|
|
122
|
-
* // => false
|
|
123
|
-
*/
|
|
124
|
-
function isObjectLike(value) {
|
|
125
|
-
return value != null && typeof value == 'object';
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export { Symbol$1 as S, baseGetTag as b, freeGlobal as f, isObjectLike as i, root as r };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { f as freeGlobal } from './Fo0dZYnz.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
5
|
-
*
|
|
6
|
-
* @private
|
|
7
|
-
* @param {Function} func The function to cap arguments for.
|
|
8
|
-
* @returns {Function} Returns the new capped function.
|
|
9
|
-
*/
|
|
10
|
-
function baseUnary(func) {
|
|
11
|
-
return function(value) {
|
|
12
|
-
return func(value);
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/** Detect free variable `exports`. */
|
|
17
|
-
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
18
|
-
|
|
19
|
-
/** Detect free variable `module`. */
|
|
20
|
-
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
21
|
-
|
|
22
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
23
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
24
|
-
|
|
25
|
-
/** Detect free variable `process` from Node.js. */
|
|
26
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
27
|
-
|
|
28
|
-
/** Used to access faster Node.js helpers. */
|
|
29
|
-
var nodeUtil = (function() {
|
|
30
|
-
try {
|
|
31
|
-
// Use `util.types` for Node.js 10+.
|
|
32
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
33
|
-
|
|
34
|
-
if (types) {
|
|
35
|
-
return types;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
39
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
40
|
-
} catch (e) {}
|
|
41
|
-
}());
|
|
42
|
-
|
|
43
|
-
export { baseUnary as b, nodeUtil as n };
|