@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.
Files changed (111) hide show
  1. package/README.md +3 -3
  2. package/dist/es/chunk/{BMzd-IS6.mjs → 09Ec85_u.mjs} +13 -13
  3. package/dist/es/chunk/{su2Zrql0.mjs → 4eyJqDa9.mjs} +1 -1
  4. package/dist/es/chunk/{Dqz1zvKN.mjs → 73YgKz3H.mjs} +1 -1
  5. package/dist/es/chunk/{Dh4jaUSg.mjs → B5UQmWXg.mjs} +5 -5
  6. package/dist/es/chunk/{CVlj9F0I.mjs → BHsNc7jl.mjs} +4 -3
  7. package/dist/es/chunk/{CEm0brzD.mjs → BI0vrXwX.mjs} +2 -1
  8. package/dist/es/chunk/{BJS5Pdfp.mjs → BTpNRPQW.mjs} +1 -1
  9. package/dist/es/chunk/{De_EXLIy.mjs → BUEEWLrd.mjs} +1 -1
  10. package/dist/es/chunk/BaJ7k5Lg.mjs +209 -0
  11. package/dist/es/chunk/{C5hWsUfD.mjs → BcTuAX8r.mjs} +2 -2
  12. package/dist/es/chunk/{DyDMGLoF.mjs → Bl2KlMdP.mjs} +3 -2
  13. package/dist/es/chunk/{ViP2SEY4.mjs → Bp9jXKX0.mjs} +2 -3
  14. package/dist/es/chunk/{C2LgraHx.mjs → BpqBBo4z.mjs} +2 -3
  15. package/dist/es/chunk/{CS4VKsqy.mjs → BsGCX4td.mjs} +1 -1
  16. package/dist/es/chunk/{-EkpfdcW.mjs → BsLJxiSC.mjs} +46 -8
  17. package/dist/es/chunk/{zfg5SOj1.mjs → BtTIs3tG.mjs} +3 -3
  18. package/dist/es/chunk/{B_tU9Nax.mjs → BzedaLtg.mjs} +1 -1
  19. package/dist/es/chunk/{Dvi7RsXg.mjs → C7wQNvSS.mjs} +10 -9
  20. package/dist/es/chunk/{8rLUmOVR.mjs → CBSopeeE.mjs} +3 -2
  21. package/dist/es/chunk/{Coex0GxM.mjs → CLCfXfvv.mjs} +10 -10
  22. package/dist/es/chunk/{DqUIKX7f.mjs → CLMc8GzD.mjs} +8 -7
  23. package/dist/es/chunk/{D3uV7vm-.mjs → CLbj8G-F.mjs} +3 -3
  24. package/dist/es/chunk/{C7iSSBUr.mjs → CPERtDRX.mjs} +5 -5
  25. package/dist/es/chunk/{VAdRxe-1.mjs → Cbhe4I9Z.mjs} +1 -1
  26. package/dist/es/chunk/{D5259bwd.mjs → CizMbf5K.mjs} +2 -1
  27. package/dist/es/chunk/CsLIbnzG.mjs +64 -0
  28. package/dist/es/chunk/{Ce9ApjrT.mjs → Cu6erWl4.mjs} +4 -4
  29. package/dist/es/chunk/{VCrtRnxt.mjs → D0LB3gF-.mjs} +7 -7
  30. package/dist/es/chunk/{BdDihk0t.mjs → D9iEroQw.mjs} +387 -564
  31. package/dist/es/chunk/{D3DXeVfC.mjs → DFOLES4O.mjs} +60 -16
  32. package/dist/es/chunk/{E_WRn0OP.mjs → DRoyW749.mjs} +58 -264
  33. package/dist/es/chunk/{D389hx_T.mjs → DTLPXrjb.mjs} +1 -1
  34. package/dist/es/chunk/{DZACQ9LT.mjs → DXPWe_a5.mjs} +2 -2
  35. package/dist/es/chunk/{BWcCXRRK.mjs → DZD-YnCt.mjs} +4 -4
  36. package/dist/es/chunk/{CZ4ggqDE.mjs → DihosKp1.mjs} +6 -6
  37. package/dist/es/chunk/{aibQ9WSZ.mjs → Dk6Bx0KT.mjs} +1 -1
  38. package/dist/es/chunk/{CyxEcbcy.mjs → DouIsSPi.mjs} +1 -1
  39. package/dist/es/chunk/{HSv8BL8o.mjs → DrgvuOYH.mjs} +2 -1
  40. package/dist/es/chunk/{DhhdKtyu.mjs → DwKWIlzw.mjs} +9 -8
  41. package/dist/es/chunk/{BX-Ogf7p.mjs → FHvLvzEB.mjs} +23 -23
  42. package/dist/es/chunk/{CMABHk8B.mjs → HAog8AWU.mjs} +22 -22
  43. package/dist/es/chunk/{Spa-JKB4.mjs → NQBKROII.mjs} +127 -2
  44. package/dist/es/chunk/{BAtns-Mc.mjs → OEa4tYPF.mjs} +1 -1
  45. package/dist/es/chunk/{JCIyOUEY.mjs → XwSiBVsA.mjs} +3 -2
  46. package/dist/es/chunk/{CaTfZePA.mjs → axpwSky6.mjs} +5 -5
  47. package/dist/es/chunk/{DMHNh_tw.mjs → cPBw23yt.mjs} +3 -3
  48. package/dist/es/chunk/{nWBcrYxV.mjs → f0-vIQGp.mjs} +3 -5
  49. package/dist/es/components/awesome-icon/awesome-icon.mjs +5 -6
  50. package/dist/es/components/backbottom/backbottom.mjs +2 -2
  51. package/dist/es/components/button/button.mjs +8 -8
  52. package/dist/es/components/choice/choice.mjs +2 -2
  53. package/dist/es/components/choice-boolean/choice-boolean.mjs +1 -1
  54. package/dist/es/components/config-provider/config-provider.d.ts +1 -0
  55. package/dist/es/components/config-provider/config-provider.mjs +13 -5
  56. package/dist/es/components/config-provider/config-provider2.mjs +1 -1
  57. package/dist/es/components/cropper/cropper.mjs +151 -15
  58. package/dist/es/components/currency/currency.mjs +6 -6
  59. package/dist/es/components/daterange-picker/daterange-picker.mjs +25 -23
  60. package/dist/es/components/dialog/dialog.mjs +11 -12
  61. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +20 -23
  62. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +9 -13
  63. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +12 -16
  64. package/dist/es/components/drag-verify/components/image.vue.d.ts +54 -0
  65. package/dist/es/components/drag-verify/components/text.vue.d.ts +22 -0
  66. package/dist/es/components/drag-verify/drag-verify.d.ts +22 -0
  67. package/dist/es/components/drag-verify/drag-verify.mjs +475 -0
  68. package/dist/es/components/drag-verify/drag-verify.vue.d.ts +123 -0
  69. package/dist/es/components/drag-verify/helper.d.ts +2 -0
  70. package/dist/es/components/drag-verify/index.css +117 -0
  71. package/dist/es/components/drag-verify/index.d.ts +4 -0
  72. package/dist/es/components/drag-verify/index.mjs +6 -0
  73. package/dist/es/components/drawer/drawer.mjs +12 -13
  74. package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
  75. package/dist/es/components/el-icon/el-icon.mjs +2 -2
  76. package/dist/es/components/flag/flag.mjs +2 -1
  77. package/dist/es/components/icon/icon.mjs +2 -2
  78. package/dist/es/components/icon/icon2.mjs +1 -1
  79. package/dist/es/components/image/image.mjs +5 -5
  80. package/dist/es/components/input/input.mjs +4 -4
  81. package/dist/es/components/input-number/input-number.mjs +5 -5
  82. package/dist/es/components/pca-picker/pca-picker.mjs +21 -23
  83. package/dist/es/components/qr-code/qr-code.mjs +2 -1
  84. package/dist/es/components/screenfull/screenfull.mjs +6 -5
  85. package/dist/es/components/select/select.mjs +7 -7
  86. package/dist/es/components/single-player/single-player.mjs +16 -16
  87. package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
  88. package/dist/es/components/switch/switch.mjs +2 -2
  89. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +3 -3
  90. package/dist/es/components/tags/tags.mjs +9 -9
  91. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
  92. package/dist/es/components/thousand-input/thousand-input.mjs +5 -4
  93. package/dist/es/components/tinymce/index.css +1 -1
  94. package/dist/es/components/tinymce/tinymce.mjs +9 -11
  95. package/dist/es/components/tree-picker/tree-picker.mjs +11 -12
  96. package/dist/es/components/upload-file/upload-file.mjs +6 -9
  97. package/dist/es/index.d.ts +1 -0
  98. package/dist/es/index.mjs +26 -24
  99. package/dist/es/use/useSmallScreen/index.mjs +1 -1
  100. package/dist/global.d.ts +1 -0
  101. package/dist/index.css +118 -1
  102. package/package.json +3 -6
  103. package/dist/es/chunk/BAGoDD49.mjs +0 -36
  104. package/dist/es/chunk/CD98REcR.mjs +0 -666
  105. package/dist/es/chunk/CEClY-_T.mjs +0 -445
  106. package/dist/es/chunk/Fo0dZYnz.mjs +0 -128
  107. package/dist/es/chunk/O-uhUKF4.mjs +0 -43
  108. package/dist/es/chunk/qY9OvNHY.mjs +0 -283
  109. package/dist/es/components/cdn-tag.vue.d.ts +0 -5
  110. package/dist/es/components/document.vue.d.ts +0 -14
  111. 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 './E_WRn0OP.mjs';
3
- import { P as PatchFlags, i as isFragment, a as isValidElementNode } from './B_tU9Nax.mjs';
4
- import { c as componentSizes } from './CS4VKsqy.mjs';
5
- import { w as withInstall } from './D389hx_T.mjs';
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 './DMHNh_tw.mjs';
3
- import { u as useDeprecated } from './VAdRxe-1.mjs';
4
- import { u as useGlobalConfig } from './Dh4jaUSg.mjs';
5
- import { u as useFormItem, c as useFormSize, b as useFormDisabled } from './DZACQ9LT.mjs';
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 './E_WRn0OP.mjs';
8
- import { u as useSizeProp } from './CS4VKsqy.mjs';
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 './D389hx_T.mjs';
10
+ import { _ as _export_sfc, w as withInstall, a as withNoopInstall } from './DTLPXrjb.mjs';
11
11
 
12
12
  const buttonGroupContextKey = Symbol("buttonGroupContextKey");
13
13