@wfrog/vc-ui 1.0.0 → 1.1.1
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 +3 -3
- 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/BaJ7k5Lg.mjs +209 -0
- 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/{BdDihk0t.mjs → D9iEroQw.mjs} +387 -564
- 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/{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 +5 -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.d.ts +1 -0
- package/dist/es/components/config-provider/config-provider.mjs +13 -5
- package/dist/es/components/config-provider/config-provider2.mjs +1 -1
- package/dist/es/components/cropper/cropper.mjs +151 -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 +9 -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 +2 -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 +2 -1
- package/dist/es/components/screenfull/screenfull.mjs +6 -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 +5 -4
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.mjs +9 -11
- 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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { isClient } from '@vueuse/core';
|
|
2
|
+
|
|
3
|
+
const isFirefox = () => isClient && /firefox/i.test(window.navigator.userAgent);
|
|
4
|
+
const isAndroid = () => isClient && /android/i.test(window.navigator.userAgent);
|
|
5
|
+
|
|
6
|
+
const isHTMLElement = (e) => {
|
|
7
|
+
if (typeof Element === "undefined")
|
|
8
|
+
return false;
|
|
9
|
+
return e instanceof Element;
|
|
10
|
+
};
|
|
11
|
+
const isFocusable = (element) => {
|
|
12
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
if (element.tabIndex < 0 || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true") {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
switch (element.nodeName) {
|
|
19
|
+
case "A": {
|
|
20
|
+
return !!element.href && element.rel !== "ignore";
|
|
21
|
+
}
|
|
22
|
+
case "INPUT": {
|
|
23
|
+
return !(element.type === "hidden" || element.type === "file");
|
|
24
|
+
}
|
|
25
|
+
case "BUTTON":
|
|
26
|
+
case "SELECT":
|
|
27
|
+
case "TEXTAREA": {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
default: {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const isLeaf = (el) => !el.getAttribute("aria-owns");
|
|
36
|
+
const getSibling = (el, distance, elClass) => {
|
|
37
|
+
const { parentNode } = el;
|
|
38
|
+
if (!parentNode)
|
|
39
|
+
return null;
|
|
40
|
+
const siblings = parentNode.querySelectorAll(elClass);
|
|
41
|
+
const index = Array.prototype.indexOf.call(siblings, el);
|
|
42
|
+
return siblings[index + distance] || null;
|
|
43
|
+
};
|
|
44
|
+
const focusElement = (el, options) => {
|
|
45
|
+
if (!el || !el.focus)
|
|
46
|
+
return;
|
|
47
|
+
let cleanup = false;
|
|
48
|
+
if (isHTMLElement(el) && !isFocusable(el) && !el.getAttribute("tabindex")) {
|
|
49
|
+
el.setAttribute("tabindex", "-1");
|
|
50
|
+
cleanup = true;
|
|
51
|
+
}
|
|
52
|
+
el.focus(options);
|
|
53
|
+
if (isHTMLElement(el) && cleanup) {
|
|
54
|
+
el.removeAttribute("tabindex");
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const focusNode = (el) => {
|
|
58
|
+
if (!el)
|
|
59
|
+
return;
|
|
60
|
+
focusElement(el);
|
|
61
|
+
!isLeaf(el) && el.click();
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { isFocusable as a, isLeaf as b, focusNode as c, isAndroid as d, focusElement as f, getSibling as g, isFirefox as i };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, h, renderSlot, ref, watchEffect, createVNode, createTextVNode, isVNode, Comment } from 'vue';
|
|
2
|
-
import { c as buildProps, u as useNamespace, i as isArray, f as isNumber, h as isString, d as definePropType } from './
|
|
3
|
-
import { P as PatchFlags, i as isFragment, a as isValidElementNode } from './
|
|
4
|
-
import { c as componentSizes } from './
|
|
5
|
-
import { w as withInstall } from './
|
|
2
|
+
import { c as buildProps, u as useNamespace, i as isArray, f as isNumber, h as isString, d as definePropType } from './DRoyW749.mjs';
|
|
3
|
+
import { P as PatchFlags, i as isFragment, a as isValidElementNode } from './BzedaLtg.mjs';
|
|
4
|
+
import { c as componentSizes } from './BsGCX4td.mjs';
|
|
5
|
+
import { w as withInstall } from './DTLPXrjb.mjs';
|
|
6
6
|
|
|
7
7
|
const spaceItemProps = buildProps({
|
|
8
8
|
prefixCls: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed, inject, ref, useSlots, Text, defineComponent, createBlock, openBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementBlock, createCommentVNode, Fragment, renderSlot, normalizeClass, provide, reactive, toRef } from 'vue';
|
|
2
|
-
import { E as ElIcon } from './
|
|
3
|
-
import { u as useDeprecated } from './
|
|
4
|
-
import { u as useGlobalConfig } from './
|
|
5
|
-
import { u as useFormItem, c as useFormSize, b as useFormDisabled } from './
|
|
2
|
+
import { E as ElIcon } from './cPBw23yt.mjs';
|
|
3
|
+
import { u as useDeprecated } from './Cbhe4I9Z.mjs';
|
|
4
|
+
import { u as useGlobalConfig } from './B5UQmWXg.mjs';
|
|
5
|
+
import { u as useFormItem, c as useFormSize, b as useFormDisabled } from './DXPWe_a5.mjs';
|
|
6
6
|
import { Loading } from '@element-plus/icons-vue';
|
|
7
|
-
import { c as buildProps, d as definePropType, u as useNamespace } from './
|
|
8
|
-
import { u as useSizeProp } from './
|
|
7
|
+
import { c as buildProps, d as definePropType, u as useNamespace } from './DRoyW749.mjs';
|
|
8
|
+
import { u as useSizeProp } from './BsGCX4td.mjs';
|
|
9
9
|
import { i as iconPropType } from '../components/icon/icon2.mjs';
|
|
10
|
-
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './
|
|
10
|
+
import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './DTLPXrjb.mjs';
|
|
11
11
|
|
|
12
12
|
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
13
13
|
|