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