@wfrog/vc-ui 1.1.1 → 1.2.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.
Files changed (124) hide show
  1. package/README.md +1 -1
  2. package/dist/es/chunk/{OEa4tYPF.mjs → -ga82G_B.mjs} +1 -1
  3. package/dist/es/chunk/B1BnPYNG.mjs +163 -0
  4. package/dist/es/chunk/{DFOLES4O.mjs → BA2yoAwy.mjs} +403 -502
  5. package/dist/es/chunk/{BpqBBo4z.mjs → BDyXj_90.mjs} +2 -2
  6. package/dist/es/chunk/{BI0vrXwX.mjs → BI-fNJhk.mjs} +6 -3
  7. package/dist/es/chunk/{BsGCX4td.mjs → BK4T_2ha.mjs} +1 -1
  8. package/dist/es/chunk/{73YgKz3H.mjs → BLLKi_0v.mjs} +1 -1
  9. package/dist/es/chunk/{DTLPXrjb.mjs → BTsEMnf_.mjs} +1 -1
  10. package/dist/es/chunk/{B5UQmWXg.mjs → BUf50Y7Y.mjs} +41 -21
  11. package/dist/es/chunk/{BzedaLtg.mjs → BYVaz5Or.mjs} +2 -2
  12. package/dist/es/chunk/{Bp9jXKX0.mjs → BambM7zX.mjs} +2 -2
  13. package/dist/es/chunk/{CizMbf5K.mjs → Bl0WQiki.mjs} +1 -1
  14. package/dist/es/chunk/{CLbj8G-F.mjs → Bnot0Gwc.mjs} +12 -4
  15. package/dist/es/chunk/{4eyJqDa9.mjs → BoGGHTrJ.mjs} +4 -2
  16. package/dist/es/chunk/C7Dgjpd1.mjs +242 -0
  17. package/dist/es/chunk/{D0LB3gF-.mjs → CKbkzlkO.mjs} +104 -72
  18. package/dist/es/chunk/{DrgvuOYH.mjs → CL5WTCB3.mjs} +4 -2
  19. package/dist/es/chunk/{XwSiBVsA.mjs → CM_I1FoA.mjs} +2 -2
  20. package/dist/es/chunk/{DouIsSPi.mjs → CNILa-hz.mjs} +1 -1
  21. package/dist/es/chunk/{DRoyW749.mjs → CcKUdl3e.mjs} +12 -6
  22. package/dist/es/chunk/CidLkmft.mjs +188 -0
  23. package/dist/es/chunk/{HAog8AWU.mjs → CitH0taR.mjs} +816 -539
  24. package/dist/es/chunk/{Cu6erWl4.mjs → CzqeSQn4.mjs} +73 -38
  25. package/dist/es/chunk/{CLCfXfvv.mjs → D7JQbDFE.mjs} +154 -118
  26. package/dist/es/chunk/{cPBw23yt.mjs → DEPZhJ0Z.mjs} +21 -16
  27. package/dist/es/chunk/{CPERtDRX.mjs → DHpbQMGk.mjs} +32 -22
  28. package/dist/es/chunk/{BHsNc7jl.mjs → DKpRXDRE.mjs} +82 -55
  29. package/dist/es/chunk/{CLMc8GzD.mjs → DMYHOxhk.mjs} +462 -311
  30. package/dist/es/chunk/{CBSopeeE.mjs → DQHGjqG5.mjs} +9 -4
  31. package/dist/es/chunk/DTEM_vYZ.mjs +23 -0
  32. package/dist/es/chunk/{NQBKROII.mjs → DWcIzeMM.mjs} +1 -1
  33. package/dist/es/chunk/{FHvLvzEB.mjs → DX38FfmL.mjs} +1088 -697
  34. package/dist/es/chunk/{DZD-YnCt.mjs → Dcm-lOj8.mjs} +4 -4
  35. package/dist/es/chunk/{09Ec85_u.mjs → DdmNdV7I.mjs} +398 -278
  36. package/dist/es/chunk/{f0-vIQGp.mjs → DfHTA5LW.mjs} +3 -3
  37. package/dist/es/chunk/DgFT6snA.mjs +835 -0
  38. package/dist/es/chunk/{DwKWIlzw.mjs → DgSzI6Fw.mjs} +106 -71
  39. package/dist/es/chunk/{BcTuAX8r.mjs → Dsye5ZEp.mjs} +5 -3
  40. package/dist/es/chunk/{BsLJxiSC.mjs → Dw-yyl2m.mjs} +1 -1
  41. package/dist/es/chunk/{DXPWe_a5.mjs → U13Qpiki.mjs} +19 -13
  42. package/dist/es/chunk/{axpwSky6.mjs → _8u_XVHh.mjs} +168 -120
  43. package/dist/es/chunk/egk9EEzo.mjs +66 -0
  44. package/dist/es/chunk/{BUEEWLrd.mjs → ezK_XQQd.mjs} +15 -6
  45. package/dist/es/chunk/{Bl2KlMdP.mjs → oW98L-44.mjs} +8 -3
  46. package/dist/es/chunk/{Dk6Bx0KT.mjs → plK2vnjp.mjs} +8 -5
  47. package/dist/es/components/backbottom/backbottom.mjs +2 -2
  48. package/dist/es/components/button/button.mjs +105 -76
  49. package/dist/es/components/choice/choice.mjs +2 -2
  50. package/dist/es/components/cropper/cropper.mjs +42 -32
  51. package/dist/es/components/currency/currency.mjs +5 -5
  52. package/dist/es/components/daterange-picker/daterange-picker.mjs +2267 -1522
  53. package/dist/es/components/dialog/dialog.mjs +213 -172
  54. package/dist/es/components/dialog/index.css +1 -1
  55. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -10
  56. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +3 -3
  57. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +495 -314
  58. package/dist/es/components/dialog-upload-images/index.css +1 -1
  59. package/dist/es/components/drag-verify/drag-verify.mjs +2 -2
  60. package/dist/es/components/drawer/drawer.mjs +136 -94
  61. package/dist/es/components/drawer/index.css +1 -1
  62. package/dist/es/components/easy-pagination/easy-pagination.mjs +2 -2
  63. package/dist/es/components/el-icon/el-icon.mjs +1 -1
  64. package/dist/es/components/el-icon/index.css +3 -2
  65. package/dist/es/components/icon/icon.mjs +10 -31
  66. package/dist/es/components/icon/icon.vue.d.ts +1 -1
  67. package/dist/es/components/icon/icon2.mjs +1 -1
  68. package/dist/es/components/icon/index.mjs +2 -2
  69. package/dist/es/components/icon-picker/components/collections.vue.d.ts +625 -0
  70. package/dist/es/components/icon-picker/components/panel.vue.d.ts +9 -0
  71. package/dist/es/components/icon-picker/icon-picker.d.ts +40 -0
  72. package/dist/es/components/icon-picker/icon-picker.mjs +1375 -0
  73. package/dist/es/components/icon-picker/icon-picker.vue.d.ts +9 -0
  74. package/dist/es/components/icon-picker/index.css +121 -0
  75. package/dist/es/components/icon-picker/index.d.ts +4 -0
  76. package/dist/es/components/icon-picker/index.mjs +6 -0
  77. package/dist/es/components/iconify-icon/iconify-icon.d.ts +5 -0
  78. package/dist/es/components/iconify-icon/iconify-icon.mjs +1860 -0
  79. package/dist/es/components/iconify-icon/iconify-icon.vue.d.ts +6 -0
  80. package/dist/es/components/iconify-icon/index.css +11 -0
  81. package/dist/es/components/iconify-icon/index.d.ts +4 -0
  82. package/dist/es/components/iconify-icon/index.mjs +6 -0
  83. package/dist/es/components/image/image.mjs +5 -5
  84. package/dist/es/components/input/input.mjs +4 -4
  85. package/dist/es/components/input/input.vue.d.ts +63 -54
  86. package/dist/es/components/input-number/input-number.mjs +5 -5
  87. package/dist/es/components/pca-picker/components/c.vue.d.ts +4 -4
  88. package/dist/es/components/pca-picker/index.css +1 -1
  89. package/dist/es/components/pca-picker/pca-picker.mjs +153 -159
  90. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +12 -11
  91. package/dist/es/components/screenfull/screenfull.mjs +4 -4
  92. package/dist/es/components/scrollbar/index.css +18 -0
  93. package/dist/es/components/scrollbar/index.d.ts +4 -0
  94. package/dist/es/components/scrollbar/index.mjs +6 -0
  95. package/dist/es/components/scrollbar/scrollbar.d.ts +4 -0
  96. package/dist/es/components/scrollbar/scrollbar.mjs +65 -0
  97. package/dist/es/components/scrollbar/scrollbar.vue.d.ts +588 -0
  98. package/dist/es/components/select/select.mjs +7 -7
  99. package/dist/es/components/single-player/index.css +1 -1
  100. package/dist/es/components/single-player/single-player.mjs +265 -166
  101. package/dist/es/components/svg-icon/index.css +3 -2
  102. package/dist/es/components/svg-icon/svg-icon.mjs +3 -3
  103. package/dist/es/components/switch/switch.mjs +2 -2
  104. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
  105. package/dist/es/components/tags/tags.mjs +9 -9
  106. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
  107. package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
  108. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +126 -108
  109. package/dist/es/components/tinymce/tinymce.mjs +4 -4
  110. package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +179 -141
  111. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  112. package/dist/es/components/tree-picker/tree-picker.mjs +10 -10
  113. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +12 -11
  114. package/dist/es/components/upload-file/upload-file.mjs +2 -2
  115. package/dist/es/index.d.ts +3 -0
  116. package/dist/es/index.mjs +41 -31
  117. package/dist/global.d.ts +3 -0
  118. package/dist/index.css +165 -21
  119. package/package.json +8 -2
  120. package/dist/es/chunk/BtTIs3tG.mjs +0 -138
  121. package/dist/es/chunk/C7wQNvSS.mjs +0 -728
  122. package/dist/es/chunk/Cbhe4I9Z.mjs +0 -16
  123. package/dist/es/chunk/DihosKp1.mjs +0 -140
  124. package/dist/es/components/icon/index.css +0 -9
@@ -1,8 +1,8 @@
1
1
  import { ref, reactive, defineComponent, h, Transition, withCtx, withDirectives, createVNode, vShow, createApp, toRefs, nextTick, isRef } from 'vue';
2
- import { a as useGlobalComponentSettings } from './B5UQmWXg.mjs';
3
- import { r as removeClass, g as getStyle, b as addClass } from './CizMbf5K.mjs';
2
+ import { a as useGlobalComponentSettings } from './BUf50Y7Y.mjs';
3
+ import { r as removeClass, g as getStyle, b as addClass } from './Bl0WQiki.mjs';
4
4
  import { isClient } from '@vueuse/core';
5
- import { h as isString, p as isObject, w as hyphenate } from './DRoyW749.mjs';
5
+ import { h as isString, p as isObject, w as hyphenate } from './CcKUdl3e.mjs';
6
6
 
7
7
  function createLoadingComponent(options, appContext) {
8
8
  let afterLeaveTimer;
@@ -65,41 +65,60 @@ function createLoadingComponent(options, appContext) {
65
65
  });
66
66
  return () => {
67
67
  const svg = data.spinner || data.svg;
68
- const spinner = h("svg", {
69
- class: "circular",
70
- viewBox: data.svgViewBox ? data.svgViewBox : "0 0 50 50",
71
- ...svg ? { innerHTML: svg } : {}
72
- }, [
73
- h("circle", {
74
- class: "path",
75
- cx: "25",
76
- cy: "25",
77
- r: "20",
78
- fill: "none"
79
- })
80
- ]);
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
+ );
81
85
  const spinnerText = data.text ? h("p", { class: ns.b("text") }, [data.text]) : void 0;
82
- return h(Transition, {
83
- name: ns.b("fade"),
84
- onAfterLeave: handleAfterLeave
85
- }, {
86
- default: withCtx(() => [
87
- withDirectives(createVNode("div", {
88
- style: {
89
- backgroundColor: data.background || ""
90
- },
91
- class: [
92
- ns.b("mask"),
93
- data.customClass,
94
- ns.is("fullscreen", data.fullscreen)
95
- ]
96
- }, [
97
- h("div", {
98
- class: ns.b("spinner")
99
- }, [spinner, spinnerText])
100
- ]), [[vShow, data.visible]])
101
- ])
102
- });
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
+ );
103
122
  };
104
123
  }
105
124
  });
@@ -127,15 +146,18 @@ const Loading = function(options = {}, context) {
127
146
  if (resolved.fullscreen && fullscreenInstance) {
128
147
  return fullscreenInstance;
129
148
  }
130
- const instance = createLoadingComponent({
131
- ...resolved,
132
- closed: () => {
133
- var _a;
134
- (_a = resolved.closed) == null ? void 0 : _a.call(resolved);
135
- if (resolved.fullscreen)
136
- fullscreenInstance = void 0;
137
- }
138
- }, context != null ? context : Loading._context);
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
+ );
139
161
  addStyle(resolved, resolved.parent, instance);
140
162
  addClassList(resolved, resolved.parent, instance);
141
163
  resolved.parent.vLoadingAddClassList = () => addClassList(resolved, resolved.parent, instance);
@@ -228,7 +250,9 @@ const createInstance = (el, binding) => {
228
250
  const data = isString(key) && (vm == null ? void 0 : vm[key]) || key;
229
251
  return ref(data);
230
252
  };
231
- const getProp = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
253
+ const getProp = (name) => resolveExpression(
254
+ getBindingProp(name) || el.getAttribute(getAttributeName(name))
255
+ );
232
256
  const fullscreen = (_a = getBindingProp("fullscreen")) != null ? _a : binding.modifiers.fullscreen;
233
257
  const options = {
234
258
  text: getProp("text"),
@@ -271,14 +295,17 @@ const vLoading = {
271
295
  if (!instance)
272
296
  createInstance(el, binding);
273
297
  else {
274
- updateOptions(instance.options, isObject(binding.value) ? binding.value : {
275
- text: el.getAttribute(getAttributeName("text")),
276
- svg: el.getAttribute(getAttributeName("svg")),
277
- svgViewBox: el.getAttribute(getAttributeName("svgViewBox")),
278
- spinner: el.getAttribute(getAttributeName("spinner")),
279
- background: el.getAttribute(getAttributeName("background")),
280
- customClass: el.getAttribute(getAttributeName("customClass"))
281
- });
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
+ );
282
309
  }
283
310
  },
284
311
  unmounted(el) {