@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,114 +1,114 @@
1
- var z = Object.defineProperty;
2
- var G = (i, e, l) => e in i ? z(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
3
- var V = (i, e, l) => G(i, typeof e != "symbol" ? e + "" : e, l);
4
- import { defineComponent as F, ref as b, computed as C, createVNode as r, onBeforeMount as _, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
5
- import { isPlainObject as R, cloneDeep as K } from "lodash-es";
6
- const q = {}, W = {};
7
- function $(i) {
8
- const { properties: e, title: l, ignore: s } = i, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, u) => ((!o || !s.find((D) => D == u)) && (h[u] = e[u].type === "object" && e[u].properties ? $(e[u]) : K(e[u].default)), h), {});
9
- return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
1
+ var G = Object.defineProperty;
2
+ var J = (t, e, l) => e in t ? G(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l;
3
+ var H = (t, e, l) => J(t, typeof e != "symbol" ? e + "" : e, l);
4
+ import { defineComponent as $, ref as b, computed as N, createVNode as r, onBeforeMount as B, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
5
+ import { isPlainObject as V, cloneDeep as K } from "lodash-es";
6
+ const F = {}, q = {};
7
+ function P(t) {
8
+ const { properties: e, title: l, ignore: s } = t, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, c) => ((!o || !s.find((T) => T == c)) && (h[c] = e[c].type === "object" && e[c].properties ? P(e[c]) : K(e[c].default)), h), {});
9
+ return l && (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
10
10
  }
11
- function P(i, e = {}, l) {
12
- const s = q[i];
11
+ function _(t, e = {}, l) {
12
+ const s = F[t];
13
13
  if (s) {
14
- let o = $(s);
15
- const d = W[i];
16
- return o = d ? d({ getSchemaByType: P }, o, e, l) : o, o;
14
+ let o = P(s);
15
+ const d = q[t];
16
+ return o = d ? d({ getSchemaByType: _ }, o, e, l) : o, o;
17
17
  }
18
18
  return null;
19
19
  }
20
- function x(i, e) {
21
- const l = $(e);
22
- return Object.keys(i).reduce((s, o) => (s[o] && R(s[o]) && R(i[o]) ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
20
+ function x(t, e) {
21
+ const l = P(e);
22
+ return Object.keys(t).reduce((s, o) => (s[o] && V(s[o]) && V(t[o]) ? Object.assign(s[o], t[o]) : s[o] = t[o], s), l), l;
23
23
  }
24
- function I(i, e) {
25
- return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
24
+ function I(t, e) {
25
+ return Object.keys(t).filter((s) => t[s] != null).reduce((s, o) => {
26
26
  if (e.has(o)) {
27
27
  const d = e.get(o);
28
28
  if (typeof d == "string")
29
- s[d] = i[o];
29
+ s[d] = t[o];
30
30
  else {
31
- const h = d(o, i[o], i);
31
+ const h = d(o, t[o], t);
32
32
  Object.assign(s, h);
33
33
  }
34
34
  } else
35
- s[o] = i[o];
35
+ s[o] = t[o];
36
36
  return s;
37
37
  }, {});
38
38
  }
39
- function ee(i, e, l = /* @__PURE__ */ new Map()) {
40
- const s = x(i, e);
39
+ function ee(t, e, l = /* @__PURE__ */ new Map()) {
40
+ const s = x(t, e);
41
41
  return I(s, l);
42
42
  }
43
- function te(i = {}) {
44
- function e(a, f, p, y) {
45
- if (typeof p == "number")
46
- return y[a].length === p;
47
- if (typeof p == "object") {
48
- const m = Object.keys(p)[0], g = p[m];
49
- if (m === "not")
50
- return Number(y[a].length) !== Number(g);
51
- if (m === "moreThan")
52
- return Number(y[a].length) >= Number(g);
53
- if (m === "lessThan")
54
- return Number(y[a].length) <= Number(g);
43
+ function te(t = {}) {
44
+ function e(a, u, f, p) {
45
+ if (typeof f == "number")
46
+ return p[a].length === f;
47
+ if (typeof f == "object") {
48
+ const g = Object.keys(f)[0], w = f[g];
49
+ if (g === "not")
50
+ return Number(p[a].length) !== Number(w);
51
+ if (g === "moreThan")
52
+ return Number(p[a].length) >= Number(w);
53
+ if (g === "lessThan")
54
+ return Number(p[a].length) <= Number(w);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function l(a, f, p, y) {
59
- return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(p);
58
+ function l(a, u, f, p) {
59
+ return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(f);
60
60
  }
61
61
  const s = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
63
  ["getProperty", l]
64
64
  ]);
65
- Object.keys(i).reduce((a, f) => (a.set(f, i[f]), a), s);
66
- function o(a, f) {
67
- const p = a;
68
- return typeof f == "number" ? [{ target: p, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
69
- if (y === "length")
70
- return { target: p, operator: "length", param: null, value: f[y] };
71
- const m = y, g = f[y];
72
- return { target: p, operator: "getProperty", param: m, value: g };
65
+ Object.keys(t).reduce((a, u) => (a.set(u, t[u]), a), s);
66
+ function o(a, u) {
67
+ const f = a;
68
+ return typeof u == "number" ? [{ target: f, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: f, operator: "getProperty", param: a, value: !!u }] : typeof u == "object" ? Object.keys(u).map((p) => {
69
+ if (p === "length")
70
+ return { target: f, operator: "length", param: null, value: u[p] };
71
+ const g = p, w = u[p];
72
+ return { target: f, operator: "getProperty", param: g, value: w };
73
73
  }) : [];
74
74
  }
75
75
  function d(a) {
76
- return Object.keys(a).reduce((p, y) => {
77
- const m = o(y, a[y]);
78
- return p.push(...m), p;
76
+ return Object.keys(a).reduce((f, p) => {
77
+ const g = o(p, a[p]);
78
+ return f.push(...g), f;
79
79
  }, []);
80
80
  }
81
- function h(a, f) {
81
+ function h(a, u) {
82
82
  if (s.has(a.operator)) {
83
- const p = s.get(a.operator);
84
- return p && p(a.target, a.param, a.value, f) || !1;
83
+ const f = s.get(a.operator);
84
+ return f && f(a.target, a.param, a.value, u) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function u(a, f) {
89
- return d(a).reduce((m, g) => m && h(g, f), !0);
88
+ function c(a, u) {
89
+ return d(a).reduce((g, w) => g && h(w, u), !0);
90
90
  }
91
- function D(a, f) {
92
- const p = Object.keys(a), y = p.includes("allOf"), m = p.includes("anyOf"), g = y || m, L = (g ? a[g ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((j) => u(j, f));
93
- return y ? !L.includes(!1) : L.includes(!0);
91
+ function T(a, u) {
92
+ const f = Object.keys(a), p = f.includes("allOf"), g = f.includes("anyOf"), w = p || g, L = (w ? a[w ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((O) => c(O, u));
93
+ return p ? !L.includes(!1) : L.includes(!0);
94
94
  }
95
- return { parseValueSchema: D };
95
+ return { parseValueSchema: T };
96
96
  }
97
97
  const ne = {}, ie = {};
98
98
  te();
99
- function se(i, e, l = /* @__PURE__ */ new Map(), s = (h, u, D) => u, o = {}, d = (h) => h) {
100
- return q[e.title] = e, W[e.title] = s, ne[e.title] = o, ie[e.title] = d, (h = {}) => {
101
- const u = ee(h, e, l), D = Object.keys(i).reduce((a, f) => (a[f] = i[f].default, a), {});
102
- return Object.assign(D, u);
99
+ function se(t, e, l = /* @__PURE__ */ new Map(), s = (h, c, T) => c, o = {}, d = (h) => h) {
100
+ return F[e.title] = e, q[e.title] = s, ne[e.title] = o, ie[e.title] = d, (h = {}) => {
101
+ const c = ee(h, e, l), T = Object.keys(t).reduce((a, u) => (a[u] = t[u].default, a), {});
102
+ return Object.assign(T, c);
103
103
  };
104
104
  }
105
- function re(i, e) {
105
+ function re(t, e) {
106
106
  return { customClass: e.class, customStyle: e.style };
107
107
  }
108
108
  const le = /* @__PURE__ */ new Map([
109
109
  ["appearance", re]
110
110
  ]);
111
- function ae(i, e, l) {
111
+ function ae(t, e, l) {
112
112
  return e;
113
113
  }
114
114
  const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object", ye = {
@@ -211,7 +211,7 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
211
211
  description: me,
212
212
  type: ge,
213
213
  categories: we
214
- }, H = {
214
+ }, A = {
215
215
  /** 表单验证默认显示的分组信息 */
216
216
  showType: { type: String, default: "" },
217
217
  /** 是否默认显示验证信息列表 */
@@ -251,81 +251,81 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
251
251
  },
252
252
  customClass: { type: String, default: "" },
253
253
  maxHeight: { type: Number, default: 200 }
254
- }, B = se(H, de, le, ae, be), N = /* @__PURE__ */ F({
254
+ }, R = se(A, de, le, ae, be), S = /* @__PURE__ */ $({
255
255
  name: "FVerifyDetail",
256
- props: H,
256
+ props: A,
257
257
  emits: ["validatorClick", "listshow"],
258
- setup(i, e) {
258
+ setup(t, e) {
259
259
  let l = [];
260
- const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(i.customClass);
260
+ const s = b(t.showList), o = b(t.maxHeight), d = b(t.verifyList), h = b(t.showType), c = b(t.verifyType), T = b(t.customClass);
261
261
  function a() {
262
262
  s.value = !s.value, e.emit("listshow", s.value);
263
263
  }
264
- function f(t) {
265
- var v;
266
- !t && u.value && u.value.length > 0 && (t = u.value[0].type), (v = u.value) == null || v.forEach((n) => {
267
- n.active = n.type === t;
264
+ function u(n) {
265
+ var y;
266
+ !n && c.value && c.value.length > 0 && (n = c.value[0].type), (y = c.value) == null || y.forEach((i) => {
267
+ i.active = i.type === n;
268
268
  });
269
269
  }
270
- function p(t) {
271
- t = t || l[0].type, l.forEach((v) => {
272
- v.show = v.type === t;
270
+ function f(n) {
271
+ n = n || l[0].type, l.forEach((y) => {
272
+ y.show = y.type === n;
273
273
  });
274
274
  }
275
- function y(t) {
276
- t.length <= 0 || (f(t.type), p(t.type));
275
+ function p(n) {
276
+ n.length <= 0 || (u(n.type), f(n.type));
277
277
  }
278
- function m() {
278
+ function g() {
279
279
  s.value = !1, e.emit("listshow", !1);
280
280
  }
281
- function g(t) {
282
- e.emit("validatorClick", t);
281
+ function w(n) {
282
+ e.emit("validatorClick", n);
283
283
  }
284
- function O(t) {
284
+ function k(n) {
285
285
  return r("li", {
286
286
  class: "f-verify-list",
287
- onClick: () => g(t)
287
+ onClick: () => w(n)
288
288
  }, [r("span", {
289
289
  class: ["f-icon f-icon-close-outline list-icon list-error", {
290
- "list-warning": t.type === "warn"
290
+ "list-warning": n.type === "warn"
291
291
  }]
292
292
  }, null), r("div", {
293
293
  class: "list-con"
294
294
  }, [r("p", {
295
295
  class: "list-title",
296
- title: t.title
297
- }, [t.title]), r("p", {
296
+ title: n.title
297
+ }, [n.title]), r("p", {
298
298
  class: "list-msg",
299
- title: t.msg
300
- }, [t.msg])])]);
299
+ title: n.msg
300
+ }, [n.msg])])]);
301
301
  }
302
- function k() {
303
- return l.map((t) => r("ul", {
302
+ function E() {
303
+ return l.map((n) => r("ul", {
304
304
  class: ["f-verify-list-content", {
305
- active: t.show
305
+ active: n.show
306
306
  }]
307
- }, [t.list && t.list.map((v) => O(v))]));
307
+ }, [n.list && n.list.map((y) => k(y))]));
308
308
  }
309
- const L = C(() => {
310
- var t;
311
- return ((t = d.value) == null ? void 0 : t.length) > 0;
309
+ const L = N(() => {
310
+ var n;
311
+ return ((n = d.value) == null ? void 0 : n.length) > 0;
312
312
  });
313
- function E(t) {
313
+ function M(n) {
314
314
  return {
315
315
  btn: !0,
316
316
  "verify-title-btn": !0,
317
- "f-state-selected": t.active,
318
- disabled: t.length <= 0
317
+ "f-state-selected": n.active,
318
+ disabled: n.length <= 0
319
319
  };
320
320
  }
321
- const j = C(() => {
322
- var t;
323
- return (t = u.value) == null ? void 0 : t.map((v) => r("button", {
324
- class: E(v),
325
- onClick: () => y(v)
326
- }, [v.title, r("span", null, [v.length])]));
327
- }), S = C(() => {
328
- var t;
321
+ const O = N(() => {
322
+ var n;
323
+ return (n = c.value) == null ? void 0 : n.map((y) => r("button", {
324
+ class: M(y),
325
+ onClick: () => p(y)
326
+ }, [y.title, r("span", null, [y.length])]));
327
+ }), C = N(() => {
328
+ var n;
329
329
  return r("div", {
330
330
  class: "f-verify-nums",
331
331
  onClick: a
@@ -333,32 +333,32 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
333
333
  class: "nums-icon f-icon f-icon-warning"
334
334
  }, null), r("span", {
335
335
  class: "nums-count"
336
- }, [(t = d.value) == null ? void 0 : t.length])]);
336
+ }, [(n = d.value) == null ? void 0 : n.length])]);
337
337
  });
338
- function M() {
339
- var v;
340
- const t = [];
341
- u.value && ((v = u.value) != null && v.length) && (u.value.map((n) => {
342
- const c = {
343
- list: n.type === "all" ? d.value : [],
338
+ function m() {
339
+ var y;
340
+ const n = [];
341
+ c.value && ((y = c.value) != null && y.length) && (c.value.map((i) => {
342
+ const v = {
343
+ list: i.type === "all" ? d.value : [],
344
344
  show: !1,
345
- type: n.type
345
+ type: i.type
346
346
  };
347
- t.push(c);
348
- }), t.map((n, c) => {
349
- const w = d.value.filter((T) => T.type === n.type);
350
- t[c].list = c !== 0 ? w : t[c].list;
351
- }), u.value.map((n, c) => {
352
- n.length = t[c].list.length;
353
- })), l = t;
347
+ n.push(v);
348
+ }), n.map((i, v) => {
349
+ const D = d.value.filter((j) => j.type === i.type);
350
+ n[v].list = v !== 0 ? D : n[v].list;
351
+ }), c.value.map((i, v) => {
352
+ i.length = n[v].list.length;
353
+ })), l = n;
354
354
  }
355
- return _(() => {
356
- M(), p(h.value), f(h.value);
355
+ return B(() => {
356
+ m(), f(h.value), u(h.value);
357
357
  }), () => r("div", {
358
- class: L ? `f-verify-detail ${D.value}` : ""
358
+ class: L ? `f-verify-detail ${T.value}` : ""
359
359
  }, [L.value ? r("div", {
360
360
  class: "f-verify-detail-content"
361
- }, [S.value, r("div", {
361
+ }, [C.value, r("div", {
362
362
  class: "f-verify-form-main",
363
363
  hidden: !s.value
364
364
  }, [r("div", {
@@ -371,9 +371,9 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
371
371
  class: "f-verify-forms-title"
372
372
  }, [r("div", {
373
373
  class: "btn-group"
374
- }, [j.value]), r("div", {
374
+ }, [O.value]), r("div", {
375
375
  class: "f-verify-close",
376
- onClick: m
376
+ onClick: g
377
377
  }, [r("span", {
378
378
  class: "f-icon f-icon-close"
379
379
  }, null)])]), r("div", {
@@ -381,19 +381,19 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
381
381
  style: {
382
382
  maxHeight: o.value + "px"
383
383
  }
384
- }, [k()])])])])]) : null]);
384
+ }, [E()])])])])]) : null]);
385
385
  }
386
386
  });
387
- function Te(i, e, l) {
387
+ function Te(t, e, l) {
388
388
  Q({
389
389
  setup() {
390
390
  return X(() => {
391
391
  e && e();
392
- }), () => r(N, i, null);
392
+ }), () => r(S, t, null);
393
393
  }
394
394
  }).mount(l);
395
395
  }
396
- class J {
396
+ class W {
397
397
  static show(e, l) {
398
398
  this.clear();
399
399
  let s = 0;
@@ -404,201 +404,193 @@ class J {
404
404
  e && (e.parentNode && e.parentNode.removeChild(e), e = null);
405
405
  }
406
406
  }
407
- V(J, "verifyContainer", null);
408
- function De(i, e, l) {
409
- var M;
407
+ H(W, "verifyContainer", null);
408
+ function De(t, e, l) {
409
+ var C;
410
410
  function s() {
411
411
  }
412
412
  const o = "", d = "", h = b();
413
- function u() {
413
+ function c() {
414
414
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
415
415
  }
416
- function D() {
416
+ function T() {
417
417
  return !1;
418
418
  }
419
419
  function a() {
420
420
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
421
421
  }
422
- function f() {
422
+ function u() {
423
423
  return (e == null ? void 0 : e.schema.componentType) === "frame";
424
424
  }
425
- function p(t) {
426
- if (!t || !t.value)
425
+ function f(m) {
426
+ if (!m || !m.value)
427
427
  return null;
428
- if (t.value.schema && t.value.schema.type === "component")
429
- return t.value;
430
- const v = b(t == null ? void 0 : t.value.parent), n = p(v);
431
- return n || null;
428
+ if (m.value.schema && m.value.schema.type === "component")
429
+ return m.value;
430
+ const n = b(m == null ? void 0 : m.value.parent), y = f(n);
431
+ return y || null;
432
432
  }
433
- function y(t = e) {
434
- const { componentInstance: v, designerItemElementRef: n } = t;
435
- return !v || !v.value ? null : v.value.canMove ? n : y(t.parent);
433
+ function p(m = e) {
434
+ const { componentInstance: n, designerItemElementRef: y } = m;
435
+ return !n || !n.value ? null : n.value.canMove ? y : p(m.parent);
436
436
  }
437
- function m(t) {
437
+ function g(m) {
438
438
  return !!l;
439
439
  }
440
- function g() {
440
+ function w() {
441
441
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
442
442
  }
443
- function O() {
444
- }
445
- function k(t, v) {
443
+ function k() {
446
444
  }
447
- function L(t, v) {
448
- const { componentType: n } = t;
449
- let c = P(n, t, v);
450
- const w = n.toLowerCase().replace("-", "_");
451
- return c && !c.id && c.type === n && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
445
+ function E(m, n) {
452
446
  }
453
- function E(t, v) {
454
- const n = String(t.getAttribute("data-controltype")), c = t.getAttribute("data-feature"), w = c ? JSON.parse(c) : {};
455
- w.parentComponentInstance = h.value;
456
- let T = P(n, w);
457
- const A = n.toLowerCase().replace("-", "_");
458
- return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
447
+ function L(m, n) {
448
+ const { componentType: y } = m;
449
+ let i = _(y, m, n);
450
+ const v = y.toLowerCase().replace("-", "_");
451
+ return i && !i.id && i.type === y && (i.id = `${v}_${Math.random().toString().slice(2, 6)}`), i;
459
452
  }
460
- function j(t) {
453
+ function M(m) {
461
454
  }
462
- function S(...t) {
455
+ function O(...m) {
463
456
  }
464
457
  return h.value = {
465
- canMove: u(),
466
- canSelectParent: D(),
458
+ canMove: c(),
459
+ canSelectParent: T(),
467
460
  canDelete: a(),
468
- canNested: !f(),
461
+ canNested: !u(),
469
462
  contents: e == null ? void 0 : e.schema.contents,
470
- elementRef: i,
471
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
463
+ elementRef: t,
464
+ parent: (C = e == null ? void 0 : e.parent) == null ? void 0 : C.componentInstance,
472
465
  schema: e == null ? void 0 : e.schema,
473
466
  styles: o,
474
467
  designerClass: d,
475
- canAccepts: m,
476
- getBelongedComponentInstance: p,
477
- getDraggableDesignItemElement: y,
478
- getDraggingDisplayText: g,
479
- getPropConfig: S,
480
- getDragScopeElement: O,
481
- onAcceptMovedChildElement: k,
482
- onAcceptNewChildElement: E,
483
- onChildElementMovedOut: j,
468
+ canAccepts: g,
469
+ getBelongedComponentInstance: f,
470
+ getDraggableDesignItemElement: p,
471
+ getDraggingDisplayText: w,
472
+ getPropConfig: O,
473
+ getDragScopeElement: k,
474
+ onAcceptMovedChildElement: E,
475
+ onChildElementMovedOut: M,
484
476
  addNewChildComponentSchema: L,
485
477
  updateDragAndDropRules: s,
486
478
  triggerBelongedComponentToMoveWhenMoved: b(!1),
487
479
  triggerBelongedComponentToDeleteWhenDeleted: b(!1)
488
480
  }, h;
489
481
  }
490
- const Le = /* @__PURE__ */ F({
482
+ const Le = /* @__PURE__ */ $({
491
483
  name: "FVerifyDetailDesign",
492
- props: H,
484
+ props: A,
493
485
  emits: ["validatorClick", "listshow"],
494
- setup(i, e) {
486
+ setup(t, e) {
495
487
  let l = [];
496
- const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(), a = Y("design-item-context"), f = De(D, a);
488
+ const s = b(t.showList), o = b(t.maxHeight), d = b(t.verifyList), h = b(t.showType), c = b(t.verifyType), T = b(), a = Y("design-item-context"), u = De(T, a);
497
489
  Z(() => {
498
- D.value.componentInstance = f;
499
- }), e.expose(f.value);
500
- function p() {
490
+ T.value.componentInstance = u;
491
+ }), e.expose(u.value);
492
+ function f() {
501
493
  s.value = !s.value, e.emit("listshow", s.value);
502
494
  }
503
- function y(n) {
504
- var c;
505
- (c = u.value) == null || c.forEach((w) => {
506
- w.active = w.type === n;
495
+ function p(i) {
496
+ var v;
497
+ (v = c.value) == null || v.forEach((D) => {
498
+ D.active = D.type === i;
507
499
  });
508
500
  }
509
- function m(n) {
510
- l.forEach((c) => {
511
- c.show = c.type === n;
501
+ function g(i) {
502
+ l.forEach((v) => {
503
+ v.show = v.type === i;
512
504
  });
513
505
  }
514
- function g(n) {
515
- n.length <= 0 || (y(n.type), m(n.type));
506
+ function w(i) {
507
+ i.length <= 0 || (p(i.type), g(i.type));
516
508
  }
517
- function O() {
509
+ function k() {
518
510
  s.value = !1, e.emit("listshow", !1);
519
511
  }
520
- function k(n) {
521
- e.emit("validatorClick", n);
512
+ function E(i) {
513
+ e.emit("validatorClick", i);
522
514
  }
523
- function L(n) {
515
+ function L(i) {
524
516
  return r("li", {
525
517
  class: "f-verify-list",
526
- onClick: () => k(n)
518
+ onClick: () => E(i)
527
519
  }, [r("span", {
528
520
  class: ["f-icon f-icon-close-outline list-icon list-error", {
529
- "list-warning": n.type === "warn"
521
+ "list-warning": i.type === "warn"
530
522
  }]
531
523
  }, null), r("div", {
532
524
  class: "list-con"
533
525
  }, [r("p", {
534
526
  class: "list-title",
535
- title: n.title
536
- }, [n.title]), r("p", {
527
+ title: i.title
528
+ }, [i.title]), r("p", {
537
529
  class: "list-msg",
538
- title: n.msg
539
- }, [n.msg])])]);
530
+ title: i.msg
531
+ }, [i.msg])])]);
540
532
  }
541
- function E() {
542
- return l.map((n) => r("ul", {
533
+ function M() {
534
+ return l.map((i) => r("ul", {
543
535
  class: ["f-verify-list-content", {
544
- active: n.show
536
+ active: i.show
545
537
  }]
546
- }, [n.list && n.list.map((c) => L(c))]));
538
+ }, [i.list && i.list.map((v) => L(v))]));
547
539
  }
548
- const j = C(() => {
549
- var n;
550
- return ((n = d.value) == null ? void 0 : n.length) > 0;
540
+ const O = N(() => {
541
+ var i;
542
+ return ((i = d.value) == null ? void 0 : i.length) > 0;
551
543
  });
552
- function S(n) {
544
+ function C(i) {
553
545
  return {
554
546
  "btn btn-secondary": !0,
555
- active: n.active,
556
- disabled: n.length <= 0
547
+ active: i.active,
548
+ disabled: i.length <= 0
557
549
  };
558
550
  }
559
- const M = C(() => {
560
- var n;
561
- return (n = u.value) == null ? void 0 : n.map((c) => r("button", {
562
- class: S(c),
563
- onClick: () => g(c)
564
- }, [c.title, r("span", null, [c.length])]));
565
- }), t = C(() => {
566
- var n;
551
+ const m = N(() => {
552
+ var i;
553
+ return (i = c.value) == null ? void 0 : i.map((v) => r("button", {
554
+ class: C(v),
555
+ onClick: () => w(v)
556
+ }, [v.title, r("span", null, [v.length])]));
557
+ }), n = N(() => {
558
+ var i;
567
559
  return r("div", {
568
560
  class: "f-verify-nums",
569
- onClick: p
561
+ onClick: f
570
562
  }, [r("span", {
571
563
  class: "nums-icon f-icon f-icon-warning"
572
564
  }, null), r("span", {
573
565
  class: "nums-count"
574
- }, [(n = d.value) == null ? void 0 : n.length])]);
566
+ }, [(i = d.value) == null ? void 0 : i.length])]);
575
567
  });
576
- function v() {
577
- var c;
578
- const n = [];
579
- u.value && ((c = u.value) != null && c.length) && (u.value.map((w) => {
580
- const T = {
581
- list: w.type === "all" ? d.value : [],
568
+ function y() {
569
+ var v;
570
+ const i = [];
571
+ c.value && ((v = c.value) != null && v.length) && (c.value.map((D) => {
572
+ const j = {
573
+ list: D.type === "all" ? d.value : [],
582
574
  show: !1,
583
- type: w.type
575
+ type: D.type
584
576
  };
585
- n.push(T);
586
- }), n.map((w, T) => {
587
- const A = d.value.filter((U) => U.type === w.type);
588
- n[T].list = T !== 0 ? A : n[T].list;
589
- }), u.value.map((w, T) => {
590
- w.length = n[T].list.length;
591
- })), l = n;
577
+ i.push(j);
578
+ }), i.map((D, j) => {
579
+ const U = d.value.filter((z) => z.type === D.type);
580
+ i[j].list = j !== 0 ? U : i[j].list;
581
+ }), c.value.map((D, j) => {
582
+ D.length = i[j].list.length;
583
+ })), l = i;
592
584
  }
593
- return _(() => {
594
- v(), m(h.value), y(h.value);
585
+ return B(() => {
586
+ y(), g(h.value), p(h.value);
595
587
  }), () => r("div", {
596
- ref: D
597
- }, [j.value ? r("div", {
588
+ ref: T
589
+ }, [O.value ? r("div", {
598
590
  class: "f-verify-detail"
599
591
  }, [r("div", {
600
592
  class: "f-verify-detail-content"
601
- }, [t.value, r("div", {
593
+ }, [n.value, r("div", {
602
594
  class: "f-verify-form-main",
603
595
  hidden: !s.value
604
596
  }, [r("div", {
@@ -611,9 +603,9 @@ const Le = /* @__PURE__ */ F({
611
603
  class: "f-verify-forms-title"
612
604
  }, [r("div", {
613
605
  class: "btn-group"
614
- }, [M.value]), r("div", {
606
+ }, [m.value]), r("div", {
615
607
  class: "f-verify-close",
616
- onClick: O
608
+ onClick: k
617
609
  }, [r("span", {
618
610
  class: "f-icon f-icon-close"
619
611
  }, null)])]), r("div", {
@@ -621,23 +613,23 @@ const Le = /* @__PURE__ */ F({
621
613
  style: {
622
614
  maxHeight: o.value + "px"
623
615
  }
624
- }, [E()])])])])])]) : null]);
616
+ }, [M()])])])])])]) : null]);
625
617
  }
626
618
  }), Ee = {
627
- install(i) {
628
- i.component(N.name, N), i.provide("FVerifyDetailService", J);
619
+ install(t) {
620
+ t.component(S.name, S), t.provide("FVerifyDetailService", W);
629
621
  },
630
- register(i, e, l, s) {
631
- i["verify-detail"] = N, e["verify-detail"] = B;
622
+ register(t, e, l, s) {
623
+ t["verify-detail"] = S, e["verify-detail"] = R;
632
624
  },
633
- registerDesigner(i, e, l) {
634
- i["verify-detail"] = Le, e["verify-detail"] = B;
625
+ registerDesigner(t, e, l) {
626
+ t["verify-detail"] = Le, e["verify-detail"] = R;
635
627
  }
636
628
  };
637
629
  export {
638
- N as FVerifyDetail,
639
- J as FVerifyDetailService,
630
+ S as FVerifyDetail,
631
+ W as FVerifyDetailService,
640
632
  Ee as default,
641
- B as propsResolver,
642
- H as verifyDetailProps
633
+ R as propsResolver,
634
+ A as verifyDetailProps
643
635
  };