@wfrog/vc-ui 1.11.9 → 1.11.11

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.
Files changed (135) hide show
  1. package/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
  2. package/dist/es/chunk/CqTdDZkE.mjs +31 -0
  3. package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
  4. package/dist/es/chunk/D229kQ56.mjs +28 -0
  5. package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
  6. package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
  7. package/dist/es/chunk/KanuIcmc.mjs +412 -0
  8. package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
  9. package/dist/es/components/backbottom/backbottom.mjs +3 -2
  10. package/dist/es/components/button/button.mjs +4 -5
  11. package/dist/es/components/choice/choice.mjs +4 -4
  12. package/dist/es/components/choice/index.css +1 -1
  13. package/dist/es/components/color-switch/color-switch.mjs +73 -1046
  14. package/dist/es/components/color-switch/index.css +1 -1
  15. package/dist/es/components/cropper/cropper.mjs +11 -117
  16. package/dist/es/components/cropper/index.css +1 -1
  17. package/dist/es/components/currency/currency.mjs +4 -5
  18. package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
  19. package/dist/es/components/dialog/dialog.mjs +7 -400
  20. package/dist/es/components/dialog/index.css +1 -1
  21. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
  22. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
  23. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
  24. package/dist/es/components/dialog-upload-images/index.css +1 -1
  25. package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
  26. package/dist/es/components/drawer/drawer.mjs +10 -352
  27. package/dist/es/components/drawer/index.css +1 -1
  28. package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
  29. package/dist/es/components/explorer/explorer.mjs +3 -3
  30. package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
  31. package/dist/es/components/explorer-column-table/index.css +1 -1
  32. package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
  33. package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
  34. package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
  35. package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
  36. package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
  37. package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
  38. package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
  39. package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
  40. package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
  41. package/dist/es/components/explorer-query/index.css +1 -1
  42. package/dist/es/components/explorer-table/explorer-table.mjs +20 -24
  43. package/dist/es/components/explorer-table/index.css +16 -9
  44. package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
  45. package/dist/es/components/explorer-tools/index.css +1 -1
  46. package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
  47. package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
  48. package/dist/es/components/image/image.mjs +4 -4
  49. package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
  50. package/dist/es/components/input/input.mjs +3 -2
  51. package/dist/es/components/input-number/input-number.mjs +3 -3
  52. package/dist/es/components/pca-picker/index.css +1 -1
  53. package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
  54. package/dist/es/components/screenfull/screenfull.mjs +4 -3
  55. package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
  56. package/dist/es/components/select/select.mjs +3 -5
  57. package/dist/es/components/single-player/index.css +1 -1
  58. package/dist/es/components/single-player/single-player.mjs +10 -1087
  59. package/dist/es/components/splitter/splitter.mjs +3 -3
  60. package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
  61. package/dist/es/components/switch/index.css +1 -1
  62. package/dist/es/components/switch/switch.mjs +9 -395
  63. package/dist/es/components/tags/tags.mjs +7 -9
  64. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
  65. package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
  66. package/dist/es/components/tinymce/tinymce.mjs +4 -3
  67. package/dist/es/components/transfer/transfer.mjs +3 -4
  68. package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
  69. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  70. package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
  71. package/dist/es/index.mjs +1 -1
  72. package/dist/index.css +29 -49
  73. package/package.json +1 -1
  74. package/dist/es/chunk/B-rxnVJv.mjs +0 -3
  75. package/dist/es/chunk/B5HpgPRt.mjs +0 -69
  76. package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
  77. package/dist/es/chunk/BDcsaNYa.mjs +0 -59
  78. package/dist/es/chunk/BTSSEFfD.mjs +0 -319
  79. package/dist/es/chunk/BTpNRPQW.mjs +0 -55
  80. package/dist/es/chunk/BVBK1U57.mjs +0 -96
  81. package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
  82. package/dist/es/chunk/BjVI1XMz.mjs +0 -40
  83. package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
  84. package/dist/es/chunk/BpJKnxlF.mjs +0 -476
  85. package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
  86. package/dist/es/chunk/BunQI8Jb.mjs +0 -390
  87. package/dist/es/chunk/C0XgBrDz.mjs +0 -775
  88. package/dist/es/chunk/C0pTANRX.mjs +0 -109
  89. package/dist/es/chunk/CBMjhoFP.mjs +0 -101
  90. package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
  91. package/dist/es/chunk/CBlJeNBO.mjs +0 -890
  92. package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
  93. package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
  94. package/dist/es/chunk/CJK5_jsA.mjs +0 -53
  95. package/dist/es/chunk/CKOcwq5V.mjs +0 -44
  96. package/dist/es/chunk/COs9dJZa.mjs +0 -66
  97. package/dist/es/chunk/CPt6MxJW.mjs +0 -375
  98. package/dist/es/chunk/CVqW0jzp.mjs +0 -107
  99. package/dist/es/chunk/CccIsEqA.mjs +0 -128
  100. package/dist/es/chunk/CjLR27-a.mjs +0 -582
  101. package/dist/es/chunk/CoGexPPD.mjs +0 -2192
  102. package/dist/es/chunk/CsLIbnzG.mjs +0 -64
  103. package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
  104. package/dist/es/chunk/Cuq5meQh.mjs +0 -184
  105. package/dist/es/chunk/CvYIOfT1.mjs +0 -23
  106. package/dist/es/chunk/CxHJBf4l.mjs +0 -31
  107. package/dist/es/chunk/CzdaOBtA.mjs +0 -66
  108. package/dist/es/chunk/D0QTifnI.mjs +0 -54
  109. package/dist/es/chunk/D1QnA2iT.mjs +0 -229
  110. package/dist/es/chunk/D3AvJlVX.mjs +0 -188
  111. package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
  112. package/dist/es/chunk/DCkPv0hy.mjs +0 -29
  113. package/dist/es/chunk/DRwwUUhy.mjs +0 -49
  114. package/dist/es/chunk/DX-2VRY2.mjs +0 -836
  115. package/dist/es/chunk/DZ2oTFad.mjs +0 -687
  116. package/dist/es/chunk/D_bou1py.mjs +0 -55
  117. package/dist/es/chunk/Da199A5L.mjs +0 -314
  118. package/dist/es/chunk/DbhQlaOz.mjs +0 -94
  119. package/dist/es/chunk/Dgu95mOy.mjs +0 -237
  120. package/dist/es/chunk/DhGOsWxx.mjs +0 -6
  121. package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
  122. package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
  123. package/dist/es/chunk/DodoD9a9.mjs +0 -52
  124. package/dist/es/chunk/DrrVDcwm.mjs +0 -955
  125. package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
  126. package/dist/es/chunk/DxxbB5jY.mjs +0 -34
  127. package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
  128. package/dist/es/chunk/NsldgdCh.mjs +0 -704
  129. package/dist/es/chunk/V6KjsUQN.mjs +0 -35
  130. package/dist/es/chunk/eEsLFV3s.mjs +0 -76
  131. package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
  132. package/dist/es/chunk/nxVM7re4.mjs +0 -35
  133. package/dist/es/chunk/s7HLrANj.mjs +0 -215
  134. package/dist/es/chunk/vPhxogl3.mjs +0 -19
  135. package/dist/es/components/icon/icon2.mjs +0 -27
@@ -1,59 +0,0 @@
1
- import { t as toNumber } from './BVBK1U57.mjs';
2
-
3
- /**
4
- * The base implementation of `_.clamp` which doesn't coerce arguments.
5
- *
6
- * @private
7
- * @param {number} number The number to clamp.
8
- * @param {number} [lower] The lower bound.
9
- * @param {number} upper The upper bound.
10
- * @returns {number} Returns the clamped number.
11
- */
12
- function baseClamp(number, lower, upper) {
13
- if (number === number) {
14
- if (upper !== undefined) {
15
- number = number <= upper ? number : upper;
16
- }
17
- if (lower !== undefined) {
18
- number = number >= lower ? number : lower;
19
- }
20
- }
21
- return number;
22
- }
23
-
24
- /**
25
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
26
- *
27
- * @static
28
- * @memberOf _
29
- * @since 4.0.0
30
- * @category Number
31
- * @param {number} number The number to clamp.
32
- * @param {number} [lower] The lower bound.
33
- * @param {number} upper The upper bound.
34
- * @returns {number} Returns the clamped number.
35
- * @example
36
- *
37
- * _.clamp(-10, -5, 5);
38
- * // => -5
39
- *
40
- * _.clamp(10, -5, 5);
41
- * // => 5
42
- */
43
- function clamp(number, lower, upper) {
44
- if (upper === undefined) {
45
- upper = lower;
46
- lower = undefined;
47
- }
48
- if (upper !== undefined) {
49
- upper = toNumber(upper);
50
- upper = upper === upper ? upper : 0;
51
- }
52
- if (lower !== undefined) {
53
- lower = toNumber(lower);
54
- lower = lower === lower ? lower : 0;
55
- }
56
- return baseClamp(toNumber(number), lower, upper);
57
- }
58
-
59
- export { clamp as c };
@@ -1,319 +0,0 @@
1
- import { ref, reactive, defineComponent, h, Transition, withCtx, withDirectives, createVNode, vShow, createApp, toRefs, nextTick, isRef } from 'vue';
2
- import { a as useGlobalComponentSettings } from './C0pTANRX.mjs';
3
- import { r as removeClass, g as getStyle, b as addClass } from './DodoD9a9.mjs';
4
- import { isClient } from '@vueuse/core';
5
- import { i as isString, j as isObject, o as hyphenate } from './Gk1J52Yw.mjs';
6
-
7
- function createLoadingComponent(options, appContext) {
8
- let afterLeaveTimer;
9
- const afterLeaveFlag = ref(false);
10
- const data = reactive({
11
- ...options,
12
- originalPosition: "",
13
- originalOverflow: "",
14
- visible: false
15
- });
16
- function setText(text) {
17
- data.text = text;
18
- }
19
- function destroySelf() {
20
- const target = data.parent;
21
- const ns = vm.ns;
22
- if (!target.vLoadingAddClassList) {
23
- let loadingNumber = target.getAttribute("loading-number");
24
- loadingNumber = Number.parseInt(loadingNumber) - 1;
25
- if (!loadingNumber) {
26
- removeClass(target, ns.bm("parent", "relative"));
27
- target.removeAttribute("loading-number");
28
- } else {
29
- target.setAttribute("loading-number", loadingNumber.toString());
30
- }
31
- removeClass(target, ns.bm("parent", "hidden"));
32
- }
33
- removeElLoadingChild();
34
- loadingInstance.unmount();
35
- }
36
- function removeElLoadingChild() {
37
- var _a, _b;
38
- (_b = (_a = vm.$el) == null ? void 0 : _a.parentNode) == null ? void 0 : _b.removeChild(vm.$el);
39
- }
40
- function close() {
41
- var _a;
42
- if (options.beforeClose && !options.beforeClose())
43
- return;
44
- afterLeaveFlag.value = true;
45
- clearTimeout(afterLeaveTimer);
46
- afterLeaveTimer = setTimeout(handleAfterLeave, 400);
47
- data.visible = false;
48
- (_a = options.closed) == null ? void 0 : _a.call(options);
49
- }
50
- function handleAfterLeave() {
51
- if (!afterLeaveFlag.value)
52
- return;
53
- const target = data.parent;
54
- afterLeaveFlag.value = false;
55
- target.vLoadingAddClassList = void 0;
56
- destroySelf();
57
- }
58
- const elLoadingComponent = defineComponent({
59
- name: "ElLoading",
60
- setup(_, { expose }) {
61
- const { ns, zIndex } = useGlobalComponentSettings("loading");
62
- expose({
63
- ns,
64
- zIndex
65
- });
66
- return () => {
67
- const svg = data.spinner || data.svg;
68
- const spinner = h(
69
- "svg",
70
- {
71
- class: "circular",
72
- viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
73
- ...svg ? { innerHTML: svg } : {}
74
- },
75
- [
76
- h("circle", {
77
- class: "path",
78
- cx: "25",
79
- cy: "25",
80
- r: "20",
81
- fill: "none"
82
- })
83
- ]
84
- );
85
- const spinnerText = data.text ? h("p", { class: ns.b("text") }, [data.text]) : void 0;
86
- return h(
87
- Transition,
88
- {
89
- name: ns.b("fade"),
90
- onAfterLeave: handleAfterLeave
91
- },
92
- {
93
- default: withCtx(() => [
94
- withDirectives(
95
- createVNode(
96
- "div",
97
- {
98
- style: {
99
- backgroundColor: data.background || ""
100
- },
101
- class: [
102
- ns.b("mask"),
103
- data.customClass,
104
- ns.is("fullscreen", data.fullscreen)
105
- ]
106
- },
107
- [
108
- h(
109
- "div",
110
- {
111
- class: ns.b("spinner")
112
- },
113
- [spinner, spinnerText]
114
- )
115
- ]
116
- ),
117
- [[vShow, data.visible]]
118
- )
119
- ])
120
- }
121
- );
122
- };
123
- }
124
- });
125
- const loadingInstance = createApp(elLoadingComponent);
126
- Object.assign(loadingInstance._context, appContext != null ? appContext : {});
127
- const vm = loadingInstance.mount(document.createElement("div"));
128
- return {
129
- ...toRefs(data),
130
- setText,
131
- removeElLoadingChild,
132
- close,
133
- handleAfterLeave,
134
- vm,
135
- get $el() {
136
- return vm.$el;
137
- }
138
- };
139
- }
140
-
141
- let fullscreenInstance = void 0;
142
- const Loading = function(options = {}, context) {
143
- if (!isClient)
144
- return void 0;
145
- const resolved = resolveOptions(options);
146
- if (resolved.fullscreen && fullscreenInstance) {
147
- return fullscreenInstance;
148
- }
149
- const instance = createLoadingComponent(
150
- {
151
- ...resolved,
152
- closed: () => {
153
- var _a;
154
- (_a = resolved.closed) == null ? void 0 : _a.call(resolved);
155
- if (resolved.fullscreen)
156
- fullscreenInstance = void 0;
157
- }
158
- },
159
- context != null ? context : Loading._context
160
- );
161
- addStyle(resolved, resolved.parent, instance);
162
- addClassList(resolved, resolved.parent, instance);
163
- resolved.parent.vLoadingAddClassList = () => addClassList(resolved, resolved.parent, instance);
164
- let loadingNumber = resolved.parent.getAttribute("loading-number");
165
- if (!loadingNumber) {
166
- loadingNumber = "1";
167
- } else {
168
- loadingNumber = `${Number.parseInt(loadingNumber) + 1}`;
169
- }
170
- resolved.parent.setAttribute("loading-number", loadingNumber);
171
- resolved.parent.appendChild(instance.$el);
172
- nextTick(() => instance.visible.value = resolved.visible);
173
- if (resolved.fullscreen) {
174
- fullscreenInstance = instance;
175
- }
176
- return instance;
177
- };
178
- const resolveOptions = (options) => {
179
- var _a, _b, _c, _d;
180
- let target;
181
- if (isString(options.target)) {
182
- target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
183
- } else {
184
- target = options.target || document.body;
185
- }
186
- return {
187
- parent: target === document.body || options.body ? document.body : target,
188
- background: options.background || "",
189
- svg: options.svg || "",
190
- svgViewBox: options.svgViewBox || "",
191
- spinner: options.spinner || false,
192
- text: options.text || "",
193
- fullscreen: target === document.body && ((_b = options.fullscreen) != null ? _b : true),
194
- lock: (_c = options.lock) != null ? _c : false,
195
- customClass: options.customClass || "",
196
- visible: (_d = options.visible) != null ? _d : true,
197
- beforeClose: options.beforeClose,
198
- closed: options.closed,
199
- target
200
- };
201
- };
202
- const addStyle = async (options, parent, instance) => {
203
- const { nextZIndex } = instance.vm.zIndex || instance.vm._.exposed.zIndex;
204
- const maskStyle = {};
205
- if (options.fullscreen) {
206
- instance.originalPosition.value = getStyle(document.body, "position");
207
- instance.originalOverflow.value = getStyle(document.body, "overflow");
208
- maskStyle.zIndex = nextZIndex();
209
- } else if (options.parent === document.body) {
210
- instance.originalPosition.value = getStyle(document.body, "position");
211
- await nextTick();
212
- for (const property of ["top", "left"]) {
213
- const scroll = property === "top" ? "scrollTop" : "scrollLeft";
214
- maskStyle[property] = `${options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - Number.parseInt(getStyle(document.body, `margin-${property}`), 10)}px`;
215
- }
216
- for (const property of ["height", "width"]) {
217
- maskStyle[property] = `${options.target.getBoundingClientRect()[property]}px`;
218
- }
219
- } else {
220
- instance.originalPosition.value = getStyle(parent, "position");
221
- }
222
- for (const [key, value] of Object.entries(maskStyle)) {
223
- instance.$el.style[key] = value;
224
- }
225
- };
226
- const addClassList = (options, parent, instance) => {
227
- const ns = instance.vm.ns || instance.vm._.exposed.ns;
228
- if (!["absolute", "fixed", "sticky"].includes(instance.originalPosition.value)) {
229
- addClass(parent, ns.bm("parent", "relative"));
230
- } else {
231
- removeClass(parent, ns.bm("parent", "relative"));
232
- }
233
- if (options.fullscreen && options.lock) {
234
- addClass(parent, ns.bm("parent", "hidden"));
235
- } else {
236
- removeClass(parent, ns.bm("parent", "hidden"));
237
- }
238
- };
239
- Loading._context = null;
240
-
241
- const INSTANCE_KEY = Symbol("ElLoading");
242
- const getAttributeName = (name) => {
243
- return `element-loading-${hyphenate(name)}`;
244
- };
245
- const createInstance = (el, binding) => {
246
- var _a, _b, _c, _d;
247
- const vm = binding.instance;
248
- const getBindingProp = (key) => isObject(binding.value) ? binding.value[key] : void 0;
249
- const resolveExpression = (key) => {
250
- const data = isString(key) && (vm == null ? void 0 : vm[key]) || key;
251
- return ref(data);
252
- };
253
- const getProp = (name) => resolveExpression(
254
- getBindingProp(name) || el.getAttribute(getAttributeName(name))
255
- );
256
- const fullscreen = (_a = getBindingProp("fullscreen")) != null ? _a : binding.modifiers.fullscreen;
257
- const options = {
258
- text: getProp("text"),
259
- svg: getProp("svg"),
260
- svgViewBox: getProp("svgViewBox"),
261
- spinner: getProp("spinner"),
262
- background: getProp("background"),
263
- customClass: getProp("customClass"),
264
- fullscreen,
265
- target: (_b = getBindingProp("target")) != null ? _b : fullscreen ? void 0 : el,
266
- body: (_c = getBindingProp("body")) != null ? _c : binding.modifiers.body,
267
- lock: (_d = getBindingProp("lock")) != null ? _d : binding.modifiers.lock
268
- };
269
- const instance = Loading(options);
270
- instance._context = vLoading._context;
271
- el[INSTANCE_KEY] = {
272
- options,
273
- instance
274
- };
275
- };
276
- const updateOptions = (originalOptions, newOptions) => {
277
- for (const key of Object.keys(originalOptions)) {
278
- if (isRef(originalOptions[key]))
279
- originalOptions[key].value = newOptions[key];
280
- }
281
- };
282
- const vLoading = {
283
- mounted(el, binding) {
284
- if (binding.value) {
285
- createInstance(el, binding);
286
- }
287
- },
288
- updated(el, binding) {
289
- const instance = el[INSTANCE_KEY];
290
- if (!binding.value) {
291
- instance == null ? void 0 : instance.instance.close();
292
- el[INSTANCE_KEY] = null;
293
- return;
294
- }
295
- if (!instance)
296
- createInstance(el, binding);
297
- else {
298
- updateOptions(
299
- instance.options,
300
- isObject(binding.value) ? binding.value : {
301
- text: el.getAttribute(getAttributeName("text")),
302
- svg: el.getAttribute(getAttributeName("svg")),
303
- svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
304
- spinner: el.getAttribute(getAttributeName("spinner")),
305
- background: el.getAttribute(getAttributeName("background")),
306
- customClass: el.getAttribute(getAttributeName("customClass"))
307
- }
308
- );
309
- }
310
- },
311
- unmounted(el) {
312
- var _a;
313
- (_a = el[INSTANCE_KEY]) == null ? void 0 : _a.instance.close();
314
- el[INSTANCE_KEY] = null;
315
- }
316
- };
317
- vLoading._context = null;
318
-
319
- export { vLoading as v };
@@ -1,55 +0,0 @@
1
- import { d as isAndroid } from './CsLIbnzG.mjs';
2
-
3
- const EVENT_CODE = {
4
- tab: "Tab",
5
- enter: "Enter",
6
- space: "Space",
7
- left: "ArrowLeft",
8
- up: "ArrowUp",
9
- right: "ArrowRight",
10
- down: "ArrowDown",
11
- esc: "Escape",
12
- delete: "Delete",
13
- backspace: "Backspace",
14
- numpadEnter: "NumpadEnter",
15
- pageUp: "PageUp",
16
- pageDown: "PageDown",
17
- home: "Home",
18
- end: "End"
19
- };
20
-
21
- const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
22
- const handleEvent = (event) => {
23
- const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
24
- if (checkForDefaultPrevented === false || !shouldPrevent) {
25
- return oursHandler == null ? void 0 : oursHandler(event);
26
- }
27
- };
28
- return handleEvent;
29
- };
30
- const getEventCode = (event) => {
31
- if (event.code && event.code !== "Unidentified")
32
- return event.code;
33
- const key = getEventKey(event);
34
- if (key) {
35
- if (Object.values(EVENT_CODE).includes(key))
36
- return key;
37
- switch (key) {
38
- case " ":
39
- return EVENT_CODE.space;
40
- default:
41
- return "";
42
- }
43
- }
44
- return "";
45
- };
46
- const getEventKey = (event) => {
47
- let key = event.key && event.key !== "Unidentified" ? event.key : "";
48
- if (!key && event.type === "keyup" && isAndroid()) {
49
- const target = event.target;
50
- key = target.value.charAt(target.selectionStart - 1);
51
- }
52
- return key;
53
- };
54
-
55
- export { EVENT_CODE as E, getEventKey as a, composeEventHandlers as c, getEventCode as g };
@@ -1,96 +0,0 @@
1
- import { v as isSymbol, a as isObject } from './Cxx_YWUC.mjs';
2
-
3
- /** Used to match a single whitespace character. */
4
- var reWhitespace = /\s/;
5
-
6
- /**
7
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
8
- * character of `string`.
9
- *
10
- * @private
11
- * @param {string} string The string to inspect.
12
- * @returns {number} Returns the index of the last non-whitespace character.
13
- */
14
- function trimmedEndIndex(string) {
15
- var index = string.length;
16
-
17
- while (index-- && reWhitespace.test(string.charAt(index))) {}
18
- return index;
19
- }
20
-
21
- /** Used to match leading whitespace. */
22
- var reTrimStart = /^\s+/;
23
-
24
- /**
25
- * The base implementation of `_.trim`.
26
- *
27
- * @private
28
- * @param {string} string The string to trim.
29
- * @returns {string} Returns the trimmed string.
30
- */
31
- function baseTrim(string) {
32
- return string
33
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
34
- : string;
35
- }
36
-
37
- /** Used as references for various `Number` constants. */
38
- var NAN = 0 / 0;
39
-
40
- /** Used to detect bad signed hexadecimal string values. */
41
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
42
-
43
- /** Used to detect binary string values. */
44
- var reIsBinary = /^0b[01]+$/i;
45
-
46
- /** Used to detect octal string values. */
47
- var reIsOctal = /^0o[0-7]+$/i;
48
-
49
- /** Built-in method references without a dependency on `root`. */
50
- var freeParseInt = parseInt;
51
-
52
- /**
53
- * Converts `value` to a number.
54
- *
55
- * @static
56
- * @memberOf _
57
- * @since 4.0.0
58
- * @category Lang
59
- * @param {*} value The value to process.
60
- * @returns {number} Returns the number.
61
- * @example
62
- *
63
- * _.toNumber(3.2);
64
- * // => 3.2
65
- *
66
- * _.toNumber(Number.MIN_VALUE);
67
- * // => 5e-324
68
- *
69
- * _.toNumber(Infinity);
70
- * // => Infinity
71
- *
72
- * _.toNumber('3.2');
73
- * // => 3.2
74
- */
75
- function toNumber(value) {
76
- if (typeof value == 'number') {
77
- return value;
78
- }
79
- if (isSymbol(value)) {
80
- return NAN;
81
- }
82
- if (isObject(value)) {
83
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
84
- value = isObject(other) ? (other + '') : other;
85
- }
86
- if (typeof value != 'string') {
87
- return value === 0 ? value : +value;
88
- }
89
- value = baseTrim(value);
90
- var isBinary = reIsBinary.test(value);
91
- return (isBinary || reIsOctal.test(value))
92
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
93
- : (reIsBadHex.test(value) ? NAN : +value);
94
- }
95
-
96
- export { toNumber as t };
@@ -1,45 +0,0 @@
1
- import { i as isString, c as isArray, j as isObject } from './Gk1J52Yw.mjs';
2
-
3
- /**
4
- * Checks if `value` is `null` or `undefined`.
5
- *
6
- * @static
7
- * @memberOf _
8
- * @since 4.0.0
9
- * @category Lang
10
- * @param {*} value The value to check.
11
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
12
- * @example
13
- *
14
- * _.isNil(null);
15
- * // => true
16
- *
17
- * _.isNil(void 0);
18
- * // => true
19
- *
20
- * _.isNil(NaN);
21
- * // => false
22
- */
23
- function isNil(value) {
24
- return value == null;
25
- }
26
-
27
- const isUndefined = (val) => val === void 0;
28
- const isBoolean = (val) => typeof val === "boolean";
29
- const isNumber = (val) => typeof val === "number";
30
- const isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
31
- const isElement = (e) => {
32
- if (typeof Element === "undefined")
33
- return false;
34
- return e instanceof Element;
35
- };
36
- const isPropAbsent = (prop) => isNil(prop);
37
- const isStringNumber = (val) => {
38
- if (!isString(val)) {
39
- return false;
40
- }
41
- return !Number.isNaN(Number(val));
42
- };
43
- const isWindow = (val) => val === window;
44
-
45
- export { isEmpty as a, isNumber as b, isUndefined as c, isBoolean as d, isWindow as e, isElement as f, isPropAbsent as g, isStringNumber as h, isNil as i };
@@ -1,40 +0,0 @@
1
- import { getCurrentInstance, inject, computed, unref, ref } from 'vue';
2
- import { b as isNumber } from './Bc6yUGLs.mjs';
3
- import { isClient } from '@vueuse/core';
4
- import { a as debugWarn } from './Gk1J52Yw.mjs';
5
-
6
- const initial = {
7
- current: 0
8
- };
9
- const zIndex = ref(0);
10
- const defaultInitialZIndex = 2e3;
11
- const ZINDEX_INJECTION_KEY = Symbol("elZIndexContextKey");
12
- const zIndexContextKey = Symbol("zIndexContextKey");
13
- const useZIndex = (zIndexOverrides) => {
14
- const increasingInjection = getCurrentInstance() ? inject(ZINDEX_INJECTION_KEY, initial) : initial;
15
- const zIndexInjection = zIndexOverrides || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
16
- const initialZIndex = computed(() => {
17
- const zIndexFromInjection = unref(zIndexInjection);
18
- return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
19
- });
20
- const currentZIndex = computed(() => initialZIndex.value + zIndex.value);
21
- const nextZIndex = () => {
22
- increasingInjection.current++;
23
- zIndex.value = increasingInjection.current;
24
- return currentZIndex.value;
25
- };
26
- if (!isClient && !inject(ZINDEX_INJECTION_KEY)) {
27
- debugWarn(
28
- "ZIndexInjection",
29
- `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
30
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`
31
- );
32
- }
33
- return {
34
- initialZIndex,
35
- currentZIndex,
36
- nextZIndex
37
- };
38
- };
39
-
40
- export { defaultInitialZIndex as d, useZIndex as u, zIndexContextKey as z };