@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,102 +1,102 @@
1
- import { defineComponent as q, ref as m, computed as N, watch as W, createVNode as d, inject as J, onMounted as G } from "vue";
2
- import { isPlainObject as F, cloneDeep as H } from "lodash-es";
3
- const _ = {}, C = {};
1
+ import { defineComponent as V, ref as O, computed as R, watch as G, createVNode as d, inject as H, onMounted as J } from "vue";
2
+ import { isPlainObject as z, cloneDeep as Q } from "lodash-es";
3
+ const q = {}, W = {};
4
4
  function B(t) {
5
- const { properties: e, title: o, ignore: l } = t, i = l && Array.isArray(l), y = Object.keys(e).reduce((f, O) => ((!i || !l.find((b) => b == O)) && (f[O] = e[O].type === "object" && e[O].properties ? B(e[O]) : H(e[O].default)), f), {});
6
- return (!i || !l.find((f) => f == "id")) && (y.id = `${o}-${Date.now()}`), y;
5
+ const { properties: e, title: i, ignore: n } = t, l = n && Array.isArray(n), y = Object.keys(e).reduce((f, j) => ((!l || !n.find((b) => b == j)) && (f[j] = e[j].type === "object" && e[j].properties ? B(e[j]) : Q(e[j].default)), f), {});
6
+ return i && (!l || !n.find((f) => f == "id")) && (y.id = `${i}-${Date.now()}`), y;
7
7
  }
8
- function L(t, e = {}, o) {
9
- const l = _[t];
10
- if (l) {
11
- let i = B(l);
12
- const y = C[t];
13
- return i = y ? y({ getSchemaByType: L }, i, e, o) : i, i;
8
+ function _(t, e = {}, i) {
9
+ const n = q[t];
10
+ if (n) {
11
+ let l = B(n);
12
+ const y = W[t];
13
+ return l = y ? y({ getSchemaByType: _ }, l, e, i) : l, l;
14
14
  }
15
15
  return null;
16
16
  }
17
- function Q(t, e) {
18
- const o = B(e);
19
- return Object.keys(t).reduce((l, i) => (l[i] && F(l[i]) && F(t[i]) ? Object.assign(l[i], t[i]) : l[i] = t[i], l), o), o;
20
- }
21
17
  function U(t, e) {
22
- return Object.keys(t).filter((l) => t[l] != null).reduce((l, i) => {
23
- if (e.has(i)) {
24
- const y = e.get(i);
18
+ const i = B(e);
19
+ return Object.keys(t).reduce((n, l) => (n[l] && z(n[l]) && z(t[l]) ? Object.assign(n[l], t[l]) : n[l] = t[l], n), i), i;
20
+ }
21
+ function X(t, e) {
22
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, l) => {
23
+ if (e.has(l)) {
24
+ const y = e.get(l);
25
25
  if (typeof y == "string")
26
- l[y] = t[i];
26
+ n[y] = t[l];
27
27
  else {
28
- const f = y(i, t[i], t);
29
- Object.assign(l, f);
28
+ const f = y(l, t[l], t);
29
+ Object.assign(n, f);
30
30
  }
31
31
  } else
32
- l[i] = t[i];
33
- return l;
32
+ n[l] = t[l];
33
+ return n;
34
34
  }, {});
35
35
  }
36
- function X(t, e, o = /* @__PURE__ */ new Map()) {
37
- const l = Q(t, e);
38
- return U(l, o);
36
+ function Y(t, e, i = /* @__PURE__ */ new Map()) {
37
+ const n = U(t, e);
38
+ return X(n, i);
39
39
  }
40
- function Y(t = {}) {
41
- function e(c, v, u, h) {
40
+ function Z(t = {}) {
41
+ function e(r, p, u, v) {
42
42
  if (typeof u == "number")
43
- return h[c].length === u;
43
+ return v[r].length === u;
44
44
  if (typeof u == "object") {
45
- const j = Object.keys(u)[0], k = u[j];
46
- if (j === "not")
47
- return Number(h[c].length) !== Number(k);
48
- if (j === "moreThan")
49
- return Number(h[c].length) >= Number(k);
50
- if (j === "lessThan")
51
- return Number(h[c].length) <= Number(k);
45
+ const k = Object.keys(u)[0], S = u[k];
46
+ if (k === "not")
47
+ return Number(v[r].length) !== Number(S);
48
+ if (k === "moreThan")
49
+ return Number(v[r].length) >= Number(S);
50
+ if (k === "lessThan")
51
+ return Number(v[r].length) <= Number(S);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function o(c, v, u, h) {
56
- return h[c] && h[c].propertyValue && String(h[c].propertyValue.value) === String(u);
55
+ function i(r, p, u, v) {
56
+ return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(u);
57
57
  }
58
- const l = /* @__PURE__ */ new Map([
58
+ const n = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
- ["getProperty", o]
60
+ ["getProperty", i]
61
61
  ]);
62
- Object.keys(t).reduce((c, v) => (c.set(v, t[v]), c), l);
63
- function i(c, v) {
64
- const u = c;
65
- return typeof v == "number" ? [{ target: u, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!v }] : typeof v == "object" ? Object.keys(v).map((h) => {
66
- if (h === "length")
67
- return { target: u, operator: "length", param: null, value: v[h] };
68
- const j = h, k = v[h];
69
- return { target: u, operator: "getProperty", param: j, value: k };
62
+ Object.keys(t).reduce((r, p) => (r.set(p, t[p]), r), n);
63
+ function l(r, p) {
64
+ const u = r;
65
+ return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: r, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
66
+ if (v === "length")
67
+ return { target: u, operator: "length", param: null, value: p[v] };
68
+ const k = v, S = p[v];
69
+ return { target: u, operator: "getProperty", param: k, value: S };
70
70
  }) : [];
71
71
  }
72
- function y(c) {
73
- return Object.keys(c).reduce((u, h) => {
74
- const j = i(h, c[h]);
75
- return u.push(...j), u;
72
+ function y(r) {
73
+ return Object.keys(r).reduce((u, v) => {
74
+ const k = l(v, r[v]);
75
+ return u.push(...k), u;
76
76
  }, []);
77
77
  }
78
- function f(c, v) {
79
- if (l.has(c.operator)) {
80
- const u = l.get(c.operator);
81
- return u && u(c.target, c.param, c.value, v) || !1;
78
+ function f(r, p) {
79
+ if (n.has(r.operator)) {
80
+ const u = n.get(r.operator);
81
+ return u && u(r.target, r.param, r.value, p) || !1;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function O(c, v) {
86
- return y(c).reduce((j, k) => j && f(k, v), !0);
85
+ function j(r, p) {
86
+ return y(r).reduce((k, S) => k && f(S, p), !0);
87
87
  }
88
- function b(c, v) {
89
- const u = Object.keys(c), h = u.includes("allOf"), j = u.includes("anyOf"), k = h || j, S = (k ? c[k ? h ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => O(T, v));
90
- return h ? !S.includes(!1) : S.includes(!0);
88
+ function b(r, p) {
89
+ const u = Object.keys(r), v = u.includes("allOf"), k = u.includes("anyOf"), S = v || k, T = (S ? r[S ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((D) => j(D, p));
90
+ return v ? !T.includes(!1) : T.includes(!0);
91
91
  }
92
92
  return { parseValueSchema: b };
93
93
  }
94
- const Z = {}, K = {};
95
- Y();
96
- function x(t, e, o = /* @__PURE__ */ new Map(), l = (f, O, b) => O, i = {}, y = (f) => f) {
97
- return _[e.title] = e, C[e.title] = l, Z[e.title] = i, K[e.title] = y, (f = {}) => {
98
- const O = X(f, e, o), b = Object.keys(t).reduce((c, v) => (c[v] = t[v].default, c), {});
99
- return Object.assign(b, O);
94
+ const C = {}, K = {};
95
+ Z();
96
+ function x(t, e, i = /* @__PURE__ */ new Map(), n = (f, j, b) => j, l = {}, y = (f) => f) {
97
+ return q[e.title] = e, W[e.title] = n, C[e.title] = l, K[e.title] = y, (f = {}) => {
98
+ const j = Y(f, e, i), b = Object.keys(t).reduce((r, p) => (r[p] = t[p].default, r), {});
99
+ return Object.assign(b, j);
100
100
  };
101
101
  }
102
102
  function I(t, e) {
@@ -105,7 +105,7 @@ function I(t, e) {
105
105
  const ee = /* @__PURE__ */ new Map([
106
106
  ["appearance", I]
107
107
  ]);
108
- function te(t, e, o) {
108
+ function te(t, e, i) {
109
109
  return e;
110
110
  }
111
111
  const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-design.gitee.io/step.schema.json", ne = "step", ce = "A Farris Component", le = "object", ae = {
@@ -208,7 +208,7 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
208
208
  description: pe,
209
209
  type: fe,
210
210
  categories: ve
211
- }, z = {
211
+ }, L = {
212
212
  /** 步骤条方向 */
213
213
  direction: { type: String, default: "horizontal" },
214
214
  /** 是否平铺 */
@@ -238,310 +238,302 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
238
238
  /** 步骤条点击后事件 */
239
239
  onClick: { type: Function, default: () => {
240
240
  } }
241
- }, V = x(z, oe, ee, te, he), A = /* @__PURE__ */ q({
241
+ }, F = x(L, oe, ee, te, he), A = /* @__PURE__ */ V({
242
242
  name: "FStep",
243
- props: z,
243
+ props: L,
244
244
  emits: ["click"],
245
245
  setup(t, e) {
246
- const o = m(t.direction), l = m(t.fill), i = m(t.height), y = m(t.steps), f = m(t.clickable), O = m(0), b = m(t.activeIndex), c = N(() => ({
247
- "f-progress-step-list": o.value === "horizontal",
248
- "f-progress-step-list-block": o.value === "vertical",
249
- "f-progress-step-horizontal-fill": o.value === "horizontal" && l.value,
250
- "f-progress-step-vertical-fill": o.value === "vertical" && l.value
251
- })), v = N(() => ({
252
- height: o.value === "vertical" ? `${i.value}px` : ""
246
+ const i = O(t.direction), n = O(t.fill), l = O(t.height), y = O(t.steps), f = O(t.clickable), j = O(0), b = O(t.activeIndex), r = R(() => ({
247
+ "f-progress-step-list": i.value === "horizontal",
248
+ "f-progress-step-list-block": i.value === "vertical",
249
+ "f-progress-step-horizontal-fill": i.value === "horizontal" && n.value,
250
+ "f-progress-step-vertical-fill": i.value === "vertical" && n.value
251
+ })), p = R(() => ({
252
+ height: i.value === "vertical" ? `${l.value}px` : ""
253
253
  }));
254
- function u(s, r) {
255
- const p = {
254
+ function u(c, s) {
255
+ const g = {
256
256
  step: !0,
257
- active: r === b.value,
257
+ active: s === b.value,
258
258
  clickable: f.value,
259
259
  // 'click-disable': step.disable,
260
- current: r === b.value
260
+ current: s === b.value
261
261
  };
262
- return r < b.value && (p.finish = !0), p;
262
+ return s < b.value && (g.finish = !0), g;
263
263
  }
264
- function h(s, r) {
265
- const p = {
266
- step: s,
267
- stepIndex: r
264
+ function v(c, s) {
265
+ const g = {
266
+ step: c,
267
+ stepIndex: s
268
268
  };
269
- e.emit("click", p);
269
+ e.emit("click", g);
270
270
  }
271
- function j(s, r) {
272
- const p = {
271
+ function k(c, s) {
272
+ const g = {
273
273
  "f-progressstep-row": !0,
274
- "step-active": r === b.value,
275
- "step-current": r === b.value
274
+ "step-active": s === b.value,
275
+ "step-current": s === b.value
276
276
  };
277
- return r < b.value && (p["step-finish"] = !0), p;
277
+ return s < b.value && (g["step-finish"] = !0), g;
278
278
  }
279
- function k(s, r) {
279
+ function S(c, s) {
280
280
  return {
281
281
  "step-icon": !0,
282
- "step-success": r,
283
- "f-icon": r,
284
- "f-icon-check": r
282
+ "step-success": s,
283
+ "f-icon": s,
284
+ "f-icon-check": s
285
285
  };
286
286
  }
287
- function P(s, r) {
288
- const p = [];
289
- return r >= b.value || r === O.value ? p.push(d("span", {
287
+ function M(c, s) {
288
+ const g = [];
289
+ return s >= b.value || s === j.value ? g.push(d("span", {
290
290
  class: "step-icon"
291
- }, [r + 1])) : p.push(d("span", {
292
- class: k(s, !0)
293
- }, null)), p;
291
+ }, [s + 1])) : g.push(d("span", {
292
+ class: S(c, !0)
293
+ }, null)), g;
294
294
  }
295
- function w(s, r) {
295
+ function P(c, s) {
296
296
  return {
297
297
  "step-name": !0,
298
- "step-name-success": r < b.value
298
+ "step-name-success": s < b.value
299
299
  };
300
300
  }
301
- function S(s, r) {
301
+ function T(c, s) {
302
302
  return d("div", {
303
303
  class: "f-progress-step-title"
304
304
  }, [d("p", {
305
- class: w(s, r)
306
- }, [s.title])]);
305
+ class: P(c, s)
306
+ }, [c.title])]);
307
307
  }
308
- function E(s, r) {
308
+ function E(c, s) {
309
309
  return {
310
310
  "f-progress-step-line": !0,
311
- "f-progress-step-line-success": r === b.value
311
+ "f-progress-step-line-success": s === b.value
312
312
  };
313
313
  }
314
- function T(s, r) {
315
- return r !== y.value.length - 1;
314
+ function D(c, s) {
315
+ return s !== y.value.length - 1;
316
316
  }
317
- const $ = N(() => ({
317
+ const w = R(() => ({
318
318
  triangle: !0,
319
- "": o.value === "vertical"
319
+ "": i.value === "vertical"
320
320
  }));
321
- function M() {
322
- return y.value.map((s, r) => d("li", {
323
- class: u(s, r),
324
- onClick: (p) => h(s, r)
321
+ function h() {
322
+ return y.value.map((c, s) => d("li", {
323
+ class: u(c, s),
324
+ onClick: (g) => v(c, s)
325
325
  }, [d("div", {
326
- class: j(s, r)
326
+ class: k(c, s)
327
327
  }, [d("div", {
328
328
  class: "f-progress-step-content"
329
- }, [P(s, r), S(s, r)]), T(s, r) && d("div", {
330
- class: E(s, r)
329
+ }, [M(c, s), T(c, s)]), D(c, s) && d("div", {
330
+ class: E(c, s)
331
331
  }, [d("span", {
332
- class: $.value
332
+ class: w.value
333
333
  }, null)])])]));
334
334
  }
335
- return W(() => t.activeIndex, () => {
336
- t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, M());
335
+ return G(() => t.activeIndex, () => {
336
+ t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, h());
337
337
  }), () => d("div", {
338
338
  class: "f-progress-step"
339
339
  }, [d("ul", {
340
- class: c.value,
341
- style: v.value
342
- }, [M()])]);
340
+ class: r.value,
341
+ style: p.value
342
+ }, [h()])]);
343
343
  }
344
344
  });
345
- function ge(t, e, o) {
346
- var M;
347
- function l() {
345
+ function ge(t, e, i) {
346
+ var w;
347
+ function n() {
348
348
  }
349
- const i = "", y = "", f = m();
350
- function O() {
349
+ const l = "", y = "", f = O();
350
+ function j() {
351
351
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
352
352
  }
353
353
  function b() {
354
354
  return !1;
355
355
  }
356
- function c() {
356
+ function r() {
357
357
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
358
358
  }
359
- function v() {
359
+ function p() {
360
360
  return (e == null ? void 0 : e.schema.componentType) === "frame";
361
361
  }
362
- function u(s) {
363
- if (!s || !s.value)
362
+ function u(h) {
363
+ if (!h || !h.value)
364
364
  return null;
365
- if (s.value.schema && s.value.schema.type === "component")
366
- return s.value;
367
- const r = m(s == null ? void 0 : s.value.parent), p = u(r);
368
- return p || null;
365
+ if (h.value.schema && h.value.schema.type === "component")
366
+ return h.value;
367
+ const c = O(h == null ? void 0 : h.value.parent), s = u(c);
368
+ return s || null;
369
369
  }
370
- function h(s = e) {
371
- const { componentInstance: r, designerItemElementRef: p } = s;
372
- return !r || !r.value ? null : r.value.canMove ? p : h(s.parent);
370
+ function v(h = e) {
371
+ const { componentInstance: c, designerItemElementRef: s } = h;
372
+ return !c || !c.value ? null : c.value.canMove ? s : v(h.parent);
373
373
  }
374
- function j(s) {
375
- return !!o;
374
+ function k(h) {
375
+ return !!i;
376
376
  }
377
- function k() {
377
+ function S() {
378
378
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
379
379
  }
380
- function P() {
380
+ function M() {
381
381
  }
382
- function w(s, r) {
382
+ function P(h, c) {
383
383
  }
384
- function S(s, r) {
385
- const { componentType: p } = s;
386
- let n = L(p, s, r);
387
- const a = p.toLowerCase().replace("-", "_");
388
- return n && !n.id && n.type === p && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
384
+ function T(h, c) {
385
+ const { componentType: s } = h;
386
+ let g = _(s, h, c);
387
+ const a = s.toLowerCase().replace("-", "_");
388
+ return g && !g.id && g.type === s && (g.id = `${a}_${Math.random().toString().slice(2, 6)}`), g;
389
389
  }
390
- function E(s, r) {
391
- const p = String(s.getAttribute("data-controltype")), n = s.getAttribute("data-feature"), a = n ? JSON.parse(n) : {};
392
- a.parentComponentInstance = f.value;
393
- let g = L(p, a);
394
- const D = p.toLowerCase().replace("-", "_");
395
- return g && !g.id && g.type === p && (g.id = `${D}_${Math.random().toString().slice(2, 6)}`), g;
390
+ function E(h) {
396
391
  }
397
- function T(s) {
398
- }
399
- function $(...s) {
392
+ function D(...h) {
400
393
  }
401
394
  return f.value = {
402
- canMove: O(),
395
+ canMove: j(),
403
396
  canSelectParent: b(),
404
- canDelete: c(),
405
- canNested: !v(),
397
+ canDelete: r(),
398
+ canNested: !p(),
406
399
  contents: e == null ? void 0 : e.schema.contents,
407
400
  elementRef: t,
408
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
401
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
409
402
  schema: e == null ? void 0 : e.schema,
410
- styles: i,
403
+ styles: l,
411
404
  designerClass: y,
412
- canAccepts: j,
405
+ canAccepts: k,
413
406
  getBelongedComponentInstance: u,
414
- getDraggableDesignItemElement: h,
415
- getDraggingDisplayText: k,
416
- getPropConfig: $,
417
- getDragScopeElement: P,
418
- onAcceptMovedChildElement: w,
419
- onAcceptNewChildElement: E,
420
- onChildElementMovedOut: T,
421
- addNewChildComponentSchema: S,
422
- updateDragAndDropRules: l,
423
- triggerBelongedComponentToMoveWhenMoved: m(!1),
424
- triggerBelongedComponentToDeleteWhenDeleted: m(!1)
407
+ getDraggableDesignItemElement: v,
408
+ getDraggingDisplayText: S,
409
+ getPropConfig: D,
410
+ getDragScopeElement: M,
411
+ onAcceptMovedChildElement: P,
412
+ onChildElementMovedOut: E,
413
+ addNewChildComponentSchema: T,
414
+ updateDragAndDropRules: n,
415
+ triggerBelongedComponentToMoveWhenMoved: O(!1),
416
+ triggerBelongedComponentToDeleteWhenDeleted: O(!1)
425
417
  }, f;
426
418
  }
427
- const de = /* @__PURE__ */ q({
419
+ const de = /* @__PURE__ */ V({
428
420
  name: "FStepDesign",
429
- props: z,
421
+ props: L,
430
422
  emits: [],
431
423
  setup(t, e) {
432
- const o = m(t.direction), l = m(t.fill), i = m(t.height), y = m(t.steps), f = m(0), O = m(t.clickable), b = m(0), c = m(), v = J("design-item-context"), u = ge(c, v);
433
- G(() => {
434
- c.value.componentInstance = u;
424
+ const i = O(t.direction), n = O(t.fill), l = O(t.height), y = O(t.steps), f = O(0), j = O(t.clickable), b = O(0), r = O(), p = H("design-item-context"), u = ge(r, p);
425
+ J(() => {
426
+ r.value.componentInstance = u;
435
427
  }), e.expose(u.value);
436
- const h = N(() => ({
437
- "f-progress-step-list": o.value === "horizontal",
438
- "f-progress-step-list-block": o.value === "vertical",
439
- "f-progress-step-horizontal-fill": o.value === "horizontal" && l.value,
440
- "f-progress-step-vertical-fill": o.value === "vertical" && l.value
441
- })), j = N(() => ({
442
- height: o.value === "vertical" ? `${i.value}px` : ""
428
+ const v = R(() => ({
429
+ "f-progress-step-list": i.value === "horizontal",
430
+ "f-progress-step-list-block": i.value === "vertical",
431
+ "f-progress-step-horizontal-fill": i.value === "horizontal" && n.value,
432
+ "f-progress-step-vertical-fill": i.value === "vertical" && n.value
433
+ })), k = R(() => ({
434
+ height: i.value === "vertical" ? `${l.value}px` : ""
443
435
  }));
444
- function k(n, a) {
445
- const g = {
436
+ function S(a, o) {
437
+ const m = {
446
438
  step: !0,
447
- active: a === f.value,
448
- clickable: O.value,
449
- "click-disable": n.disable,
450
- current: a === f.value
439
+ active: o === f.value,
440
+ clickable: j.value,
441
+ "click-disable": a.disable,
442
+ current: o === f.value
451
443
  };
452
- return a < f.value && (g.finish = !0), n.status && (g[n.status] = !0), n.hasOwnProperty("class") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
444
+ return o < f.value && (m.finish = !0), a.status && (m[a.status] = !0), a.hasOwnProperty("class") && a.class.split(" ").reduce((N, $) => (N[$] = !0, N), m), m;
453
445
  }
454
- function P(n, a) {
446
+ function M(a, o) {
455
447
  }
456
- function w(n, a) {
457
- const g = {
448
+ function P(a, o) {
449
+ const m = {
458
450
  "f-progressstep-row": !0,
459
- "step-active": a === f.value,
460
- "step-current": a === f.value
451
+ "step-active": o === f.value,
452
+ "step-current": o === f.value
461
453
  };
462
- return a < f.value && (g["step-finish"] = !0), n.status && (g["step-" + n.status] = !0), g;
454
+ return o < f.value && (m["step-finish"] = !0), a.status && (m["step-" + a.status] = !0), m;
463
455
  }
464
- function S(n, a) {
465
- const g = {
456
+ function T(a, o) {
457
+ const m = {
466
458
  "step-icon": !0,
467
- "step-success": a,
468
- "k-icon": a,
469
- "k-i-check": a
459
+ "step-success": o,
460
+ "k-icon": o,
461
+ "k-i-check": o
470
462
  };
471
- return n.hasOwnProperty("icon") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
463
+ return a.hasOwnProperty("icon") && a.class.split(" ").reduce((N, $) => (N[$] = !0, N), m), m;
472
464
  }
473
- function E(n, a) {
474
- const g = [];
475
- return n.icon ? g.push(d("span", {
476
- class: S(n, !1)
477
- }, null)) : a >= f.value || a === b.value ? g.push(d("span", {
465
+ function E(a, o) {
466
+ const m = [];
467
+ return a.icon ? m.push(d("span", {
468
+ class: T(a, !1)
469
+ }, null)) : o >= f.value || o === b.value ? m.push(d("span", {
478
470
  class: "step-icon"
479
- }, [a + 1])) : g.push(d("span", {
480
- class: S(n, !0)
481
- }, null)), g;
471
+ }, [o + 1])) : m.push(d("span", {
472
+ class: T(a, !0)
473
+ }, null)), m;
482
474
  }
483
- function T(n, a) {
475
+ function D(a, o) {
484
476
  return {
485
477
  "step-name": !0,
486
- "step-name-success": a < f.value
478
+ "step-name-success": o < f.value
487
479
  };
488
480
  }
489
- function $(n, a) {
481
+ function w(a, o) {
490
482
  return d("div", {
491
483
  class: "f-progress-step-title"
492
484
  }, [d("p", {
493
- class: T(n, a)
494
- }, [n.title])]);
485
+ class: D(a, o)
486
+ }, [a.title])]);
495
487
  }
496
- function M(n, a) {
488
+ function h(a, o) {
497
489
  return {
498
490
  "f-progress-step-line": !0,
499
- "f-progress-step-line-success": a === f.value
491
+ "f-progress-step-line-success": o === f.value
500
492
  };
501
493
  }
502
- function s(n, a) {
503
- return a !== y.value.length - 1;
494
+ function c(a, o) {
495
+ return o !== y.value.length - 1;
504
496
  }
505
- const r = N(() => ({
497
+ const s = R(() => ({
506
498
  triangle: !0,
507
- "": o.value === "vertical"
499
+ "": i.value === "vertical"
508
500
  }));
509
- function p() {
510
- return y.value.map((n, a) => d("li", {
511
- class: k(n, a),
512
- onClick: (g) => void 0
501
+ function g() {
502
+ return y.value.map((a, o) => d("li", {
503
+ class: S(a, o),
504
+ onClick: (m) => void 0
513
505
  }, [d("div", {
514
- class: w(n, a)
506
+ class: P(a, o)
515
507
  }, [d("div", {
516
508
  class: "f-progress-step-content"
517
- }, [E(n, a), $(n, a)]), s(n, a) && d("div", {
518
- class: M(n, a)
509
+ }, [E(a, o), w(a, o)]), c(a, o) && d("div", {
510
+ class: h(a, o)
519
511
  }, [d("span", {
520
- class: r.value
512
+ class: s.value
521
513
  }, null)])])]));
522
514
  }
523
515
  return () => d("div", {
524
- ref: c,
516
+ ref: r,
525
517
  class: "f-progress-step"
526
518
  }, [d("ul", {
527
- class: h.value,
528
- style: j.value
529
- }, [p()])]);
519
+ class: v.value,
520
+ style: k.value
521
+ }, [g()])]);
530
522
  }
531
523
  }), me = {
532
524
  install(t) {
533
525
  t.component(A.name, A);
534
526
  },
535
- register(t, e, o, l) {
536
- t.step = A, e.step = V;
527
+ register(t, e, i, n) {
528
+ t.step = A, e.step = F;
537
529
  },
538
- registerDesigner(t, e, o) {
539
- t.step = de, e.step = V;
530
+ registerDesigner(t, e, i) {
531
+ t.step = de, e.step = F;
540
532
  }
541
533
  };
542
534
  export {
543
535
  A as Step,
544
536
  me as default,
545
- V as propsResolver,
546
- z as stepProps
537
+ F as propsResolver,
538
+ L as stepProps
547
539
  };