@farris/ui-vue 1.2.7 → 1.2.9

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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,103 +1,103 @@
1
- import { computed as h, defineComponent as A, ref as d, watch as F, createVNode as y, Fragment as x, inject as H, onMounted as Q } from "vue";
1
+ import { computed as h, defineComponent as R, ref as d, watch as F, createVNode as y, Fragment as x, inject as H, onMounted as Q } from "vue";
2
2
  import { cloneDeep as U } from "lodash-es";
3
- import { withInstall as Z } from "@farris/ui-vue/components/common";
3
+ import { withInstall as Z } from "../common/index.esm.js";
4
4
  const V = {}, z = {};
5
5
  function L(e) {
6
- const { properties: r, title: i } = e, s = Object.keys(r).reduce((n, u) => (n[u] = r[u].type === "object" && r[u].properties ? L(r[u]) : U(r[u].default), n), {});
7
- return s.id = `${i}-${Date.now()}`, s;
6
+ const { properties: r, title: g, ignore: s } = e, n = s && Array.isArray(s), i = Object.keys(r).reduce((f, a) => ((!n || !s.find((v) => v == a)) && (f[a] = r[a].type === "object" && r[a].properties ? L(r[a]) : U(r[a].default)), f), {});
7
+ return (!n || !s.find((f) => f == "id")) && (i.id = `${g}-${Date.now()}`), i;
8
8
  }
9
- function W(e, r = {}) {
10
- const i = V[e];
11
- if (i) {
12
- let s = L(i);
13
- const n = z[e];
14
- return s = n ? n({ getSchemaByType: W }, s, r) : s, s;
9
+ function W(e, r = {}, g) {
10
+ const s = V[e];
11
+ if (s) {
12
+ let n = L(s);
13
+ const i = z[e];
14
+ return n = i ? i({ getSchemaByType: W }, n, r, g) : n, n;
15
15
  }
16
16
  return null;
17
17
  }
18
- function K(e, r) {
19
- const i = L(r);
20
- return Object.keys(e).reduce((s, n) => (s[n] = e[n], s), i), i;
21
- }
22
18
  function I(e, r) {
19
+ const g = L(r);
20
+ return Object.keys(e).reduce((s, n) => (s[n] && typeof s[n] == "object" ? Object.assign(s[n], e[n]) : s[n] = e[n], s), g), g;
21
+ }
22
+ function K(e, r) {
23
23
  return Object.keys(e).filter((s) => e[s] != null).reduce((s, n) => {
24
24
  if (r.has(n)) {
25
- const u = r.get(n);
26
- if (typeof u == "string")
27
- s[u] = e[n];
25
+ const i = r.get(n);
26
+ if (typeof i == "string")
27
+ s[i] = e[n];
28
28
  else {
29
- const p = u(n, e[n], e);
30
- Object.assign(s, p);
29
+ const f = i(n, e[n], e);
30
+ Object.assign(s, f);
31
31
  }
32
32
  } else
33
33
  s[n] = e[n];
34
34
  return s;
35
35
  }, {});
36
36
  }
37
- function ee(e, r, i = /* @__PURE__ */ new Map()) {
38
- const s = K(e, r);
39
- return I(s, i);
37
+ function ee(e, r, g = /* @__PURE__ */ new Map()) {
38
+ const s = I(e, r);
39
+ return K(s, g);
40
40
  }
41
41
  function re(e = {}) {
42
- function r(t, o, c, a) {
43
- if (typeof c == "number")
44
- return a[t].length === c;
45
- if (typeof c == "object") {
46
- const m = Object.keys(c)[0], S = c[m];
42
+ function r(t, o, l, c) {
43
+ if (typeof l == "number")
44
+ return c[t].length === l;
45
+ if (typeof l == "object") {
46
+ const m = Object.keys(l)[0], b = l[m];
47
47
  if (m === "not")
48
- return Number(a[t].length) !== Number(S);
48
+ return Number(c[t].length) !== Number(b);
49
49
  if (m === "moreThan")
50
- return Number(a[t].length) >= Number(S);
50
+ return Number(c[t].length) >= Number(b);
51
51
  if (m === "lessThan")
52
- return Number(a[t].length) <= Number(S);
52
+ return Number(c[t].length) <= Number(b);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function i(t, o, c, a) {
57
- return a[t] && a[t].propertyValue && String(a[t].propertyValue.value) === String(c);
56
+ function g(t, o, l, c) {
57
+ return c[t] && c[t].propertyValue && String(c[t].propertyValue.value) === String(l);
58
58
  }
59
59
  const s = /* @__PURE__ */ new Map([
60
60
  ["length", r],
61
- ["getProperty", i]
61
+ ["getProperty", g]
62
62
  ]);
63
63
  Object.keys(e).reduce((t, o) => (t.set(o, e[o]), t), s);
64
64
  function n(t, o) {
65
- const c = t;
66
- return typeof o == "number" ? [{ target: c, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: c, operator: "getProperty", param: t, value: !!o }] : typeof o == "object" ? Object.keys(o).map((a) => {
67
- if (a === "length")
68
- return { target: c, operator: "length", param: null, value: o[a] };
69
- const m = a, S = o[a];
70
- return { target: c, operator: "getProperty", param: m, value: S };
65
+ const l = t;
66
+ return typeof o == "number" ? [{ target: l, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: l, operator: "getProperty", param: t, value: !!o }] : typeof o == "object" ? Object.keys(o).map((c) => {
67
+ if (c === "length")
68
+ return { target: l, operator: "length", param: null, value: o[c] };
69
+ const m = c, b = o[c];
70
+ return { target: l, operator: "getProperty", param: m, value: b };
71
71
  }) : [];
72
72
  }
73
- function u(t) {
74
- return Object.keys(t).reduce((c, a) => {
75
- const m = n(a, t[a]);
76
- return c.push(...m), c;
73
+ function i(t) {
74
+ return Object.keys(t).reduce((l, c) => {
75
+ const m = n(c, t[c]);
76
+ return l.push(...m), l;
77
77
  }, []);
78
78
  }
79
- function p(t, o) {
79
+ function f(t, o) {
80
80
  if (s.has(t.operator)) {
81
- const c = s.get(t.operator);
82
- return c && c(t.target, t.param, t.value, o) || !1;
81
+ const l = s.get(t.operator);
82
+ return l && l(t.target, t.param, t.value, o) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function g(t, o) {
87
- return u(t).reduce((m, S) => m && p(S, o), !0);
86
+ function a(t, o) {
87
+ return i(t).reduce((m, b) => m && f(b, o), !0);
88
88
  }
89
89
  function v(t, o) {
90
- const c = Object.keys(t), a = c.includes("allOf"), m = c.includes("anyOf"), S = a || m, f = (S ? t[S ? a ? "allOf" : "anyOf" : "allOf"] : [t]).map((P) => g(P, o));
91
- return a ? !f.includes(!1) : f.includes(!0);
90
+ const l = Object.keys(t), c = l.includes("allOf"), m = l.includes("anyOf"), b = c || m, p = (b ? t[b ? c ? "allOf" : "anyOf" : "allOf"] : [t]).map((P) => a(P, o));
91
+ return c ? !p.includes(!1) : p.includes(!0);
92
92
  }
93
93
  return { parseValueSchema: v };
94
94
  }
95
95
  const te = {}, se = {};
96
96
  re();
97
- function ne(e, r, i = /* @__PURE__ */ new Map(), s = (p, g, v) => g, n = {}, u = (p) => p) {
98
- return V[r.title] = r, z[r.title] = s, te[r.title] = n, se[r.title] = u, (p = {}) => {
99
- const g = ee(p, r, i), v = Object.keys(e).reduce((t, o) => (t[o] = e[o].default, t), {});
100
- return Object.assign(v, g);
97
+ function ne(e, r, g = /* @__PURE__ */ new Map(), s = (f, a, v) => a, n = {}, i = (f) => f) {
98
+ return V[r.title] = r, z[r.title] = s, te[r.title] = n, se[r.title] = i, (f = {}) => {
99
+ const a = ee(f, r, g), v = Object.keys(e).reduce((t, o) => (t[o] = e[o].default, t), {});
100
+ return Object.assign(v, a);
101
101
  };
102
102
  }
103
103
  function oe(e, r) {
@@ -106,7 +106,7 @@ function oe(e, r) {
106
106
  const ae = /* @__PURE__ */ new Map([
107
107
  ["appearance", oe]
108
108
  ]);
109
- function ce(e, r, i) {
109
+ function ce(e, r, g) {
110
110
  return r;
111
111
  }
112
112
  const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/progress.schema.json", ie = "progress", fe = "A Farris Component", ge = "object", pe = {
@@ -209,7 +209,7 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
209
209
  description: ve,
210
210
  type: me,
211
211
  categories: ke
212
- }, R = {
212
+ }, A = {
213
213
  progressType: { type: String, default: "line" },
214
214
  strokeWidth: { type: Number, default: 0 },
215
215
  size: { type: String, default: "default" },
@@ -240,113 +240,113 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
240
240
  * 格式化进度信息
241
241
  */
242
242
  format: { type: Function, default: (e, r) => `${e}%` }
243
- }, q = ne(R, ye, ae, ce, be);
244
- function Se(e) {
245
- function r(p) {
246
- return +p.replace("%", "");
243
+ }, q = ne(A, ye, ae, ce, be);
244
+ function Pe(e) {
245
+ function r(f) {
246
+ return +f.replace("%", "");
247
247
  }
248
- function i(p) {
249
- let g = [];
250
- return Object.keys(p).forEach((v) => {
251
- const t = p[v], o = r(v);
252
- isNaN(o) || g.push({
248
+ function g(f) {
249
+ let a = [];
250
+ return Object.keys(f).forEach((v) => {
251
+ const t = f[v], o = r(v);
252
+ isNaN(o) || a.push({
253
253
  key: o,
254
254
  value: t
255
255
  });
256
- }), g = g.sort((v, t) => v.key - t.key), g;
256
+ }), a = a.sort((v, t) => v.key - t.key), a;
257
257
  }
258
258
  const s = h(() => !!e.strokeColor && typeof e.strokeColor != "string"), n = h(() => {
259
- const { from: p = "#59a1ff", to: g = "#59a1ff", direction: v = "to right", ...t } = e.strokeColor;
259
+ const { from: f = "#59a1ff", to: a = "#59a1ff", direction: v = "to right", ...t } = e.strokeColor;
260
260
  if (Object.keys(t).length !== 0) {
261
- const o = i(t).map(({ key: c, value: a }) => `${a} ${c}%`).join(", ");
261
+ const o = g(t).map(({ key: l, value: c }) => `${c} ${l}%`).join(", ");
262
262
  return `linear-gradient(${v}, ${o})`;
263
263
  }
264
- return `linear-gradient(${v}, ${p}, ${g})`;
265
- }), u = h(() => i(e.strokeColor).map(({ key: p, value: g }) => ({ offset: `${p}%`, color: g })));
264
+ return `linear-gradient(${v}, ${f}, ${a})`;
265
+ }), i = h(() => g(e.strokeColor).map(({ key: f, value: a }) => ({ offset: `${f}%`, color: a })));
266
266
  return {
267
267
  isGradient: s,
268
268
  linearGradient: n,
269
- circleGradient: u
269
+ circleGradient: i
270
270
  };
271
271
  }
272
- function Pe(e) {
272
+ function Se(e) {
273
273
  return { strokeWidth: h(() => e.strokeWidth || (e.progressType === "line" && e.size !== "small" ? 8 : 6)) };
274
274
  }
275
275
  function $e(e) {
276
276
  return { formatPercentageText: h(() => e.format(e.percent, e.successPercent)) };
277
277
  }
278
- function we(e, r, i, s) {
279
- const { isCircleStyle: n } = r, { isGradient: u, linearGradient: p } = i, { strokeWidth: g } = s, v = h(() => {
280
- const f = {
278
+ function we(e, r, g, s) {
279
+ const { isCircleStyle: n } = r, { isGradient: i, linearGradient: f } = g, { strokeWidth: a } = s, v = h(() => {
280
+ const p = {
281
281
  "f-progress": !0,
282
282
  "f-progress-line": e.progressType === "line",
283
283
  "ant-progress-small": e.size === "small",
284
284
  "f-progress-show-info": e.showInfo,
285
285
  "f-progress-circle": n.value
286
286
  }, $ = `f-progress-status-${e.progressStatus}`;
287
- return f[$] = !0, f;
287
+ return p[$] = !0, p;
288
288
  }), t = h(() => ({
289
289
  width: `${e.width}px`,
290
290
  height: `${e.width}px`,
291
291
  "font-size": `${e.width * 0.15 + 6}px`,
292
- "f-progress-circle-gradient": u.value
292
+ "f-progress-circle-gradient": i.value
293
293
  })), o = h(() => ({
294
294
  "f-progress-inner": !0,
295
- "f-progress-circle-gradient": u.value
296
- })), c = 0, a = h(() => c + 1), m = h(() => {
297
- const f = 50 - g.value / 2, $ = e.gapPosition || (e.progressType === "circle" ? "top" : "bottom");
298
- let P = 0, w = -f, O = 0, l = f * -2;
295
+ "f-progress-circle-gradient": i.value
296
+ })), l = 0, c = h(() => l + 1), m = h(() => {
297
+ const p = 50 - a.value / 2, $ = e.gapPosition || (e.progressType === "circle" ? "top" : "bottom");
298
+ let P = 0, w = -p, O = 0, u = p * -2;
299
299
  switch ($) {
300
300
  case "left":
301
- P = -f, w = 0, O = f * 2, l = 0;
301
+ P = -p, w = 0, O = p * 2, u = 0;
302
302
  break;
303
303
  case "right":
304
- P = f, w = 0, O = f * -2, l = 0;
304
+ P = p, w = 0, O = p * -2, u = 0;
305
305
  break;
306
306
  case "bottom":
307
- w = f, l = f * 2;
307
+ w = p, u = p * 2;
308
308
  break;
309
309
  }
310
310
  return `M 50,50 m ${P},${w}
311
- a ${f},${f} 0 1 1 ${O},${-l}
312
- a ${f},${f} 0 1 1 ${-O},${l}`;
313
- }), S = h(() => {
314
- const f = 50 - g.value / 2, $ = Math.PI * 2 * f, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75);
311
+ a ${p},${p} 0 1 1 ${O},${-u}
312
+ a ${p},${p} 0 1 1 ${-O},${u}`;
313
+ }), b = h(() => {
314
+ const p = 50 - a.value / 2, $ = Math.PI * 2 * p, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75);
315
315
  return {
316
316
  strokeDasharray: `${$ - P}px ${$}px`,
317
317
  strokeDashoffset: `-${P / 2}px`,
318
318
  transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
319
319
  };
320
- }), T = h(() => {
321
- const f = 50 - g.value / 2, $ = Math.PI * 2 * f, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75), w = e.successPercent !== void 0 && e.successPercent !== null ? [e.successPercent, e.percent] : [e.percent];
322
- return w.map((O, l) => {
323
- const k = w.length === 2 && l === 0;
320
+ }), D = h(() => {
321
+ const p = 50 - a.value / 2, $ = Math.PI * 2 * p, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75), w = e.successPercent !== void 0 && e.successPercent !== null ? [e.successPercent, e.percent] : [e.percent];
322
+ return w.map((O, u) => {
323
+ const k = w.length === 2 && u === 0;
324
324
  return {
325
- stroke: u.value && !k ? `url(#gradient-${a.value})` : null,
325
+ stroke: i.value && !k ? `url(#gradient-${c.value})` : null,
326
326
  strokePathStyle: {
327
- stroke: u.value ? null : k ? "default" : e.strokeColor,
327
+ stroke: i.value ? null : k ? "default" : e.strokeColor,
328
328
  transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",
329
329
  strokeDasharray: `${(O || 0) / 100 * ($ - P)}px ${$}px`,
330
330
  strokeDashoffset: `-${P / 2}px`
331
331
  }
332
332
  };
333
333
  }).reverse();
334
- }), B = h(() => ({
334
+ }), T = h(() => ({
335
335
  width: `${e.percent}%`,
336
336
  "border-radius": e.strokeLinecap === "round" ? "100px" : "0",
337
- background: u.value ? null : e.strokeColor,
338
- "background-image": u.value ? p.value : null,
339
- height: `${g.value}px`
337
+ background: i.value ? null : e.strokeColor,
338
+ "background-image": i.value ? f.value : null,
339
+ height: `${a.value}px`
340
340
  }));
341
341
  return {
342
342
  progressClass: v,
343
343
  inCircleProgressBarStyle: t,
344
344
  inCircleProgressBarClass: o,
345
345
  pathString: m,
346
- trailPathStyle: S,
347
- progressCirclePaths: T,
348
- gradientId: a,
349
- inlineProgressBackgroundStyle: B
346
+ trailPathStyle: b,
347
+ progressCirclePaths: D,
348
+ gradientId: c,
349
+ inlineProgressBackgroundStyle: T
350
350
  };
351
351
  }
352
352
  function je(e) {
@@ -357,18 +357,18 @@ function Oe(e) {
357
357
  const n = {
358
358
  "f-progress-text-icon": !0,
359
359
  "f-icon": !0
360
- }, u = `f-icon-${e.progressStatus}`;
361
- return n[u] = !0, n;
362
- }), i = h(() => {
360
+ }, i = `f-icon-${e.progressStatus}`;
361
+ return n[i] = !0, n;
362
+ }), g = h(() => {
363
363
  const n = {
364
364
  "f-progress-text-icon": !0,
365
365
  "f-icon": !0
366
- }, u = e.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
367
- return n[u] = !0, n;
366
+ }, i = e.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
367
+ return n[i] = !0, n;
368
368
  }), s = h(() => e.progressStatus === "error" || e.progressStatus === "success");
369
369
  return {
370
370
  inlineProgrssStatusClass: r,
371
- circleProgrssStatusClass: i,
371
+ circleProgrssStatusClass: g,
372
372
  shouldShowStatus: s
373
373
  };
374
374
  }
@@ -378,51 +378,51 @@ function Be(e) {
378
378
  "border-radius": e.strokeLinecap === "round" ? "100px" : "0",
379
379
  height: `${e.strokeWidth}px`,
380
380
  "background-image": e.enableBackgroundImg ? `url(${e.backgroundImg})` : null
381
- })), i = h(() => e.successPercent || e.successPercent === 0);
382
- return { inlineProgressSuccessBackgroundStyle: r, shouldShowSuccessInlineProgressBackground: i };
381
+ })), g = h(() => e.successPercent || e.successPercent === 0);
382
+ return { inlineProgressSuccessBackgroundStyle: r, shouldShowSuccessInlineProgressBackground: g };
383
383
  }
384
- const G = /* @__PURE__ */ A({
384
+ const G = /* @__PURE__ */ R({
385
385
  name: "FProgress",
386
- props: R,
386
+ props: A,
387
387
  emits: [],
388
388
  setup(e) {
389
- const r = d(e.progressType), i = d(e.showInfo), s = d(e.percent), n = d(e.strokeLinecap), u = Se(e), {
390
- isGradient: p,
391
- circleGradient: g
392
- } = u, v = Pe(e), {
389
+ const r = d(e.progressType), g = d(e.showInfo), s = d(e.percent), n = d(e.strokeLinecap), i = Pe(e), {
390
+ isGradient: f,
391
+ circleGradient: a
392
+ } = i, v = Se(e), {
393
393
  strokeWidth: t
394
394
  } = v, {
395
395
  formatPercentageText: o
396
- } = $e(e), c = je(e), {
397
- isCircleStyle: a
398
- } = c, {
396
+ } = $e(e), l = je(e), {
397
+ isCircleStyle: c
398
+ } = l, {
399
399
  progressClass: m,
400
- inCircleProgressBarStyle: S,
401
- inCircleProgressBarClass: T,
402
- pathString: B,
403
- trailPathStyle: f,
400
+ inCircleProgressBarStyle: b,
401
+ inCircleProgressBarClass: D,
402
+ pathString: T,
403
+ trailPathStyle: p,
404
404
  progressCirclePaths: $,
405
405
  gradientId: P,
406
406
  inlineProgressBackgroundStyle: w
407
- } = we(e, c, u, v), {
407
+ } = we(e, l, i, v), {
408
408
  inlineProgrssStatusClass: O,
409
- circleProgrssStatusClass: l,
409
+ circleProgrssStatusClass: u,
410
410
  shouldShowStatus: k
411
411
  } = Oe(e), {
412
- inlineProgressSuccessBackgroundStyle: b,
413
- shouldShowSuccessInlineProgressBackground: M
412
+ inlineProgressSuccessBackgroundStyle: S,
413
+ shouldShowSuccessInlineProgressBackground: B
414
414
  } = Be(e);
415
- F(() => e.percent, (C) => {
416
- s.value = C || 0;
415
+ F(() => e.percent, (N) => {
416
+ s.value = N || 0;
417
417
  });
418
- function N() {
419
- return i.value && y("span", {
418
+ function C() {
419
+ return g.value && y("span", {
420
420
  class: "f-progress-text"
421
421
  }, [k.value ? y("span", {
422
- class: a.value ? l.value : O.value
422
+ class: c.value ? u.value : O.value
423
423
  }, null) : o.value]);
424
424
  }
425
- function D() {
425
+ function M() {
426
426
  return y(x, null, [y("div", {
427
427
  class: "f-progress-outer"
428
428
  }, [y("div", {
@@ -430,55 +430,55 @@ const G = /* @__PURE__ */ A({
430
430
  }, [y("div", {
431
431
  class: "f-progress-bg",
432
432
  style: w.value
433
- }, null), M.value && y("div", {
433
+ }, null), B.value && y("div", {
434
434
  class: "f-progress-success-bg",
435
- style: b.value
436
- }, null)])]), N()]);
435
+ style: S.value
436
+ }, null)])]), C()]);
437
437
  }
438
438
  function E() {
439
439
  return y("div", {
440
- class: T.value,
441
- style: S.value
440
+ class: D.value,
441
+ style: b.value
442
442
  }, [y("svg", {
443
443
  class: "f-progress-circle",
444
444
  viewBox: "0 0 100 100"
445
- }, [p.value && y("defs", null, [y("linearGradient", {
445
+ }, [f.value && y("defs", null, [y("linearGradient", {
446
446
  id: "gradient-" + P.value,
447
447
  x1: "100%",
448
448
  y1: "0%",
449
449
  x2: "0%",
450
450
  y2: "0%"
451
- }, [g.value.map((C) => y("stop", {
452
- offset: C.offset,
453
- "stop-color": C.color
451
+ }, [a.value.map((N) => y("stop", {
452
+ offset: N.offset,
453
+ "stop-color": N.color
454
454
  }, null))])]), y("path", {
455
455
  class: "f-progress-circle-trail",
456
456
  stroke: "#efefef",
457
457
  "fill-opacity": "0",
458
458
  "stroke-width": t.value,
459
- d: B.value,
460
- style: f.value
461
- }, null), $.value.map((C) => y("path", {
459
+ d: T.value,
460
+ style: p.value
461
+ }, null), $.value.map((N) => y("path", {
462
462
  class: "f-progress-circle-path",
463
463
  "fill-opacity": "0",
464
- d: B.value,
464
+ d: T.value,
465
465
  "stroke-linecap": n.value,
466
- stroke: C.stroke,
466
+ stroke: N.stroke,
467
467
  "stroke-width": s.value ? t.value : 0,
468
- style: C.strokePathStyle
469
- }, null))]), N()]);
468
+ style: N.strokePathStyle
469
+ }, null))]), C()]);
470
470
  }
471
471
  return () => y("div", {
472
472
  class: m.value
473
- }, [r.value === "line" && D(), a.value && E()]);
473
+ }, [r.value === "line" && M(), c.value && E()]);
474
474
  }
475
475
  });
476
- function Te(e, r, i) {
476
+ function Te(e, r, g) {
477
477
  var O;
478
478
  function s() {
479
479
  }
480
- const n = "", u = "", p = d();
481
- function g() {
480
+ const n = "", i = "", f = d();
481
+ function a() {
482
482
  return (r == null ? void 0 : r.schema.componentType) !== "frame";
483
483
  }
484
484
  function v() {
@@ -490,47 +490,47 @@ function Te(e, r, i) {
490
490
  function o() {
491
491
  return (r == null ? void 0 : r.schema.componentType) === "frame";
492
492
  }
493
- function c(l) {
494
- if (!l || !l.value)
493
+ function l(u) {
494
+ if (!u || !u.value)
495
495
  return null;
496
- if (l.value.schema && l.value.schema.type === "component")
497
- return l.value;
498
- const k = d(l == null ? void 0 : l.value.parent), b = c(k);
499
- return b || null;
496
+ if (u.value.schema && u.value.schema.type === "component")
497
+ return u.value;
498
+ const k = d(u == null ? void 0 : u.value.parent), S = l(k);
499
+ return S || null;
500
500
  }
501
- function a(l = r) {
502
- const { componentInstance: k, designerItemElementRef: b } = l;
503
- return !k || !k.value ? null : k.value.canMove ? b : a(l.parent);
501
+ function c(u = r) {
502
+ const { componentInstance: k, designerItemElementRef: S } = u;
503
+ return !k || !k.value ? null : k.value.canMove ? S : c(u.parent);
504
504
  }
505
- function m(l) {
506
- return !!i;
505
+ function m(u) {
506
+ return !!g;
507
507
  }
508
- function S() {
508
+ function b() {
509
509
  return (r == null ? void 0 : r.schema.label) || (r == null ? void 0 : r.schema.title) || (r == null ? void 0 : r.schema.name);
510
510
  }
511
- function T() {
511
+ function D() {
512
512
  }
513
- function B(l, k) {
513
+ function T(u, k) {
514
514
  }
515
- function f(l) {
516
- const { componentType: k } = l;
517
- let b = W(k, l);
518
- const M = k.toLowerCase().replace("-", "_");
519
- return b && !b.id && b.type === k && (b.id = `${M}_${Math.random().toString().slice(2, 6)}`), b;
515
+ function p(u, k) {
516
+ const { componentType: S } = u;
517
+ let B = W(S, u, k);
518
+ const C = S.toLowerCase().replace("-", "_");
519
+ return B && !B.id && B.type === S && (B.id = `${C}_${Math.random().toString().slice(2, 6)}`), B;
520
520
  }
521
- function $(l, k) {
522
- const b = String(l.getAttribute("data-controltype")), M = l.getAttribute("data-feature"), N = M ? JSON.parse(M) : {};
523
- N.parentComponentInstance = p.value;
524
- let D = W(b, N);
525
- const E = b.toLowerCase().replace("-", "_");
526
- return D && !D.id && D.type === b && (D.id = `${E}_${Math.random().toString().slice(2, 6)}`), D;
521
+ function $(u, k) {
522
+ const S = String(u.getAttribute("data-controltype")), B = u.getAttribute("data-feature"), C = B ? JSON.parse(B) : {};
523
+ C.parentComponentInstance = f.value;
524
+ let M = W(S, C);
525
+ const E = S.toLowerCase().replace("-", "_");
526
+ return M && !M.id && M.type === S && (M.id = `${E}_${Math.random().toString().slice(2, 6)}`), M;
527
527
  }
528
- function P(l) {
528
+ function P(u) {
529
529
  }
530
- function w(...l) {
530
+ function w(...u) {
531
531
  }
532
- return p.value = {
533
- canMove: g(),
532
+ return f.value = {
533
+ canMove: a(),
534
534
  canSelectParent: v(),
535
535
  canDelete: t(),
536
536
  canNested: !o(),
@@ -539,65 +539,65 @@ function Te(e, r, i) {
539
539
  parent: (O = r == null ? void 0 : r.parent) == null ? void 0 : O.componentInstance,
540
540
  schema: r == null ? void 0 : r.schema,
541
541
  styles: n,
542
- designerClass: u,
542
+ designerClass: i,
543
543
  canAccepts: m,
544
- getBelongedComponentInstance: c,
545
- getDraggableDesignItemElement: a,
546
- getDraggingDisplayText: S,
544
+ getBelongedComponentInstance: l,
545
+ getDraggableDesignItemElement: c,
546
+ getDraggingDisplayText: b,
547
547
  getPropConfig: w,
548
- getDragScopeElement: T,
549
- onAcceptMovedChildElement: B,
548
+ getDragScopeElement: D,
549
+ onAcceptMovedChildElement: T,
550
550
  onAcceptNewChildElement: $,
551
551
  onChildElementMovedOut: P,
552
- addNewChildComponentSchema: f,
552
+ addNewChildComponentSchema: p,
553
553
  updateDragAndDropRules: s,
554
554
  triggerBelongedComponentToMoveWhenMoved: d(!1),
555
555
  triggerBelongedComponentToDeleteWhenDeleted: d(!1)
556
- }, p;
556
+ }, f;
557
557
  }
558
- const De = /* @__PURE__ */ A({
558
+ const De = /* @__PURE__ */ R({
559
559
  name: "FProgressDesign",
560
- props: R,
560
+ props: A,
561
561
  emits: [],
562
562
  setup(e, r) {
563
- const i = d(e.progressStatus), s = d(e.progressType), n = d(e.size), u = d(e.showInfo), p = d(e.strokeWidth), g = d(e.percent), v = d(e.strokeLinecap), t = d(!1), o = d(e.strokeColor), c = d(null), a = d(0), m = d(e.width), S = d(""), T = d([]), B = d(""), f = d([]), $ = d(e.enableBackgroundImg), P = d(e.backgroundImg), w = d(), O = H("design-item-context"), l = Te(w, O);
563
+ const g = d(e.progressStatus), s = d(e.progressType), n = d(e.size), i = d(e.showInfo), f = d(e.strokeWidth), a = d(e.percent), v = d(e.strokeLinecap), t = d(!1), o = d(e.strokeColor), l = d(null), c = d(0), m = d(e.width), b = d(""), D = d([]), T = d(""), p = d([]), $ = d(e.enableBackgroundImg), P = d(e.backgroundImg), w = d(), O = H("design-item-context"), u = Te(w, O);
564
564
  Q(() => {
565
- w.value.componentInstance = l;
566
- }), r.expose(l.value), F(() => e.percent, (j) => {
567
- g.value = j || 0;
565
+ w.value.componentInstance = u;
566
+ }), r.expose(u.value), F(() => e.percent, (j) => {
567
+ a.value = j || 0;
568
568
  });
569
- const k = h(() => p.value || (s.value === "line" && n.value !== "small" ? 8 : 6)), b = h(() => s.value === "circle" || s.value === "dashboard"), M = h(() => {
569
+ const k = h(() => f.value || (s.value === "line" && n.value !== "small" ? 8 : 6)), S = h(() => s.value === "circle" || s.value === "dashboard"), B = h(() => {
570
570
  const j = {
571
571
  "f-progress": !0,
572
572
  "f-progress-line": s.value === "line",
573
573
  "ant-progress-small": n.value === "small",
574
- "f-progress-show-info": u.value,
575
- ".f-progress-circle": b.value
576
- }, J = `f-progress-status-${i.value}`;
574
+ "f-progress-show-info": i.value,
575
+ ".f-progress-circle": S.value
576
+ }, J = `f-progress-status-${g.value}`;
577
577
  return j[J] = !0, j;
578
- }), N = h(() => ({
579
- width: `${g.value}%`,
578
+ }), C = h(() => ({
579
+ width: `${a.value}%`,
580
580
  "border-radius": v.value === "round" ? "100px" : "0",
581
581
  backgroud: t.value ? null : o.value,
582
- "background-image": t.value ? c.value : null,
582
+ "background-image": t.value ? l.value : null,
583
583
  height: `${k.value}px`
584
- })), D = h(() => ({
585
- width: `${g.value}%`,
584
+ })), M = h(() => ({
585
+ width: `${a.value}%`,
586
586
  "border-radius": v.value === "round" ? "100px" : "0",
587
587
  height: `${k.value}px`,
588
588
  "background-image": $.value ? P.value : null
589
- })), E = h(() => a.value || a.value === 0);
590
- function C() {
589
+ })), E = h(() => c.value || c.value === 0);
590
+ function N() {
591
591
  return y("div", {
592
592
  class: "f-progress-outer"
593
593
  }, [y("div", {
594
594
  class: "f-progress-inner"
595
595
  }, [y("div", {
596
596
  class: "f-progress-bg",
597
- style: N.value
597
+ style: C.value
598
598
  }, null), E.value && y("div", {
599
599
  class: "f-progress-success-bg",
600
- style: D.value
600
+ style: M.value
601
601
  }, null)])]);
602
602
  }
603
603
  const _ = h(() => ({
@@ -614,12 +614,12 @@ const De = /* @__PURE__ */ A({
614
614
  class: "f-progress-circle",
615
615
  viewBox: "0 0 100 100"
616
616
  }, [t.value && y("defs", null, [y("linearGradient", {
617
- id: "gradient-" + S.value,
617
+ id: "gradient-" + b.value,
618
618
  x1: "100%",
619
619
  y1: "0%",
620
620
  x2: "0%",
621
621
  y2: "0%"
622
- }, [T.value.map((j) => y("stop", {
622
+ }, [D.value.map((j) => y("stop", {
623
623
  offset: j.offset,
624
624
  "stop-color": j.color
625
625
  }, null))])]), y("path", {
@@ -627,34 +627,34 @@ const De = /* @__PURE__ */ A({
627
627
  stroke: "#efefef",
628
628
  "fill-opacity": "0",
629
629
  "stroke-width": k.value,
630
- d: B.value,
630
+ d: T.value,
631
631
  style: X.value
632
- }, null), f.value.map((j) => y("path", {
632
+ }, null), p.value.map((j) => y("path", {
633
633
  class: "f-progress-circle-path",
634
634
  "fill-opacity": "0",
635
- d: B.value,
635
+ d: T.value,
636
636
  "stroke-linecap": v.value,
637
637
  stroke: j.stroke,
638
- "stroke-width": g.value ? k.value : 0,
638
+ "stroke-width": a.value ? k.value : 0,
639
639
  style: j.strokePathStyle
640
640
  }, null))])]);
641
641
  }
642
642
  return () => y("div", {
643
643
  ref: w,
644
- class: M.value
645
- }, [s.value === "line" && C(), b.value && Y()]);
644
+ class: B.value
645
+ }, [s.value === "line" && N(), S.value && Y()]);
646
646
  }
647
647
  });
648
- G.register = (e, r, i) => {
648
+ G.register = (e, r, g) => {
649
649
  e.progress = G, r.progress = q;
650
650
  };
651
- G.registerDesigner = (e, r, i) => {
651
+ G.registerDesigner = (e, r, g) => {
652
652
  e.progress = De, r.progress = q;
653
653
  };
654
654
  const Ee = Z(G);
655
655
  export {
656
656
  G as Progress,
657
657
  Ee as default,
658
- R as progressProps,
658
+ A as progressProps,
659
659
  q as propsResolver
660
660
  };