@farris/ui-vue 1.2.6 → 1.2.8

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 (210) hide show
  1. package/components/accordion/index.esm.js +150 -142
  2. package/components/avatar/index.esm.js +393 -457
  3. package/components/border-editor/index.esm.js +4 -4
  4. package/components/button/index.esm.js +1 -1
  5. package/components/button-edit/index.esm.js +353 -444
  6. package/components/button-group/index.esm.js +5 -5
  7. package/components/calendar/index.esm.js +176 -176
  8. package/components/capsule/index.esm.js +93 -93
  9. package/components/checkbox/index.esm.js +491 -554
  10. package/components/color-picker/index.esm.js +1 -1
  11. package/components/combo-list/index.esm.js +479 -513
  12. package/components/combo-tree/index.esm.js +8 -8
  13. package/components/component/index.esm.js +89 -89
  14. package/components/condition/index.esm.js +857 -743
  15. package/components/content-container/index.esm.js +61 -61
  16. package/components/data-grid/index.esm.js +4883 -5182
  17. package/components/data-view/index.esm.js +3072 -2949
  18. package/components/date-picker/index.esm.js +2626 -2689
  19. package/components/dependent-base/style.js +1 -0
  20. package/components/dependent-fluid/style.js +1 -0
  21. package/components/dependent-icon/style.js +1 -0
  22. package/components/dependent-input/style.js +1 -0
  23. package/components/dependent-table/style.js +1 -0
  24. package/components/designer-canvas/index.esm.js +478 -475
  25. package/components/designer-outline/index.esm.js +173 -131
  26. package/components/discussion-editor/index.esm.js +1 -1
  27. package/components/dropdown/index.esm.js +73 -73
  28. package/components/dynamic-form/index.esm.js +940 -998
  29. package/components/dynamic-resolver/index.esm.js +67 -35
  30. package/components/dynamic-view/index.esm.js +307 -293
  31. package/components/enum-editor/index.esm.js +3 -3
  32. package/components/events-editor/index.esm.js +178 -178
  33. package/components/expression-editor/index.esm.js +105 -105
  34. package/components/external-container/index.esm.js +1747 -1627
  35. package/components/field-selector/index.css +1 -1
  36. package/components/field-selector/index.esm.js +5877 -6176
  37. package/components/filter-bar/index.css +1 -1
  38. package/components/filter-bar/index.esm.js +1454 -1524
  39. package/components/flow-canvas/index.esm.js +678 -675
  40. package/components/image-cropper/index.esm.js +266 -266
  41. package/components/input-group/index.esm.js +659 -722
  42. package/components/layout/index.esm.js +148 -148
  43. package/components/list-nav/index.esm.js +109 -109
  44. package/components/list-view/index.esm.js +1643 -1524
  45. package/components/lookup/index.css +1 -1
  46. package/components/lookup/index.esm.js +6502 -6770
  47. package/components/mapping-editor/index.esm.js +5639 -5939
  48. package/components/message-box/index.esm.js +1 -1
  49. package/components/modal/index.esm.js +1 -1
  50. package/components/nav/index.esm.js +86 -86
  51. package/components/number-range/index.esm.js +1120 -0
  52. package/components/number-range/package.json +8 -0
  53. package/components/number-range/style.js +6 -0
  54. package/components/number-spinner/index.esm.js +1146 -0
  55. package/components/number-spinner/package.json +8 -0
  56. package/components/number-spinner/style.js +4 -0
  57. package/components/order/index.esm.js +1098 -1130
  58. package/components/page-footer/index.esm.js +106 -106
  59. package/components/page-header/index.esm.js +1088 -1317
  60. package/components/pagination/index.esm.js +252 -252
  61. package/components/progress/index.esm.js +37 -37
  62. package/components/property-editor/index.esm.js +1479 -1513
  63. package/components/property-panel/index.css +1 -1
  64. package/components/property-panel/index.esm.js +706 -778
  65. package/components/query-solution/index.css +1 -0
  66. package/components/query-solution/index.esm.js +6935 -0
  67. package/components/query-solution/package.json +8 -0
  68. package/components/query-solution/style.js +2 -0
  69. package/components/radio-button/index.esm.js +64 -64
  70. package/components/radio-group/index.esm.js +453 -516
  71. package/components/rate/index.esm.js +92 -92
  72. package/components/response-layout/index.esm.js +33 -33
  73. package/components/response-layout-editor/index.esm.js +555 -526
  74. package/components/response-toolbar/index.esm.js +1009 -1247
  75. package/components/schema-selector/index.esm.js +3261 -3373
  76. package/components/search-box/index.esm.js +143 -143
  77. package/components/section/index.esm.js +209 -209
  78. package/components/smoke-detector/index.esm.js +22 -22
  79. package/components/spacing-editor/index.esm.js +2 -2
  80. package/components/splitter/index.esm.js +1097 -394
  81. package/components/step/index.esm.js +153 -153
  82. package/components/switch/index.esm.js +441 -504
  83. package/components/tabs/index.esm.js +1849 -2039
  84. package/components/tags/index.esm.js +215 -215
  85. package/components/text/index.esm.js +53 -53
  86. package/components/textarea/index.esm.js +445 -493
  87. package/components/time-picker/index.esm.js +1350 -1414
  88. package/components/transfer/index.esm.js +146 -144
  89. package/components/tree-grid/index.css +1 -1
  90. package/components/tree-grid/index.esm.js +5948 -6237
  91. package/components/tree-view/index.esm.js +2381 -2255
  92. package/components/uploader/index.esm.js +1 -1
  93. package/components/verify-detail/index.esm.js +232 -232
  94. package/components/video/index.esm.js +136 -136
  95. package/components/weather/index.esm.js +2 -2
  96. package/farris.all.esm.js +27221 -26804
  97. package/farris.all.umd.cjs +9 -9
  98. package/index.css +1 -1
  99. package/package.json +1 -1
  100. package/types/checkbox/index.d.ts +1 -0
  101. package/types/combo-list/src/components/list-container.component.d.ts +6 -0
  102. package/types/combo-list/src/components/list-container.props.d.ts +9 -1
  103. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  104. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  105. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  106. package/types/data-view/composition/types.d.ts +1 -1
  107. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  108. package/types/designer-canvas/src/types.d.ts +1 -1
  109. package/types/dynamic-form/index.d.ts +1 -0
  110. package/types/dynamic-form/src/types.d.ts +1 -1
  111. package/types/dynamic-resolver/index.d.ts +1 -0
  112. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  113. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  114. package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
  115. package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
  116. package/types/modal/src/modal.props.d.ts +1 -4
  117. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
  118. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
  119. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  120. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  121. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  122. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  123. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  124. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  125. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
  126. package/components/accordion/index.umd.cjs +0 -1
  127. package/components/avatar/index.umd.cjs +0 -1
  128. package/components/border-editor/index.umd.cjs +0 -1
  129. package/components/button/index.umd.cjs +0 -1
  130. package/components/button-edit/index.umd.cjs +0 -1
  131. package/components/button-group/index.umd.cjs +0 -1
  132. package/components/calculator/index.umd.cjs +0 -1
  133. package/components/calendar/index.umd.cjs +0 -1
  134. package/components/capsule/index.umd.cjs +0 -1
  135. package/components/checkbox/index.umd.cjs +0 -1
  136. package/components/color-picker/index.umd.cjs +0 -3
  137. package/components/combo-list/index.umd.cjs +0 -1
  138. package/components/combo-tree/index.umd.cjs +0 -1
  139. package/components/common/index.umd.cjs +0 -1
  140. package/components/component/index.umd.cjs +0 -1
  141. package/components/condition/index.umd.cjs +0 -1
  142. package/components/content-container/index.umd.cjs +0 -1
  143. package/components/data-grid/index.umd.cjs +0 -1
  144. package/components/data-view/index.umd.cjs +0 -1
  145. package/components/date-picker/index.umd.cjs +0 -1
  146. package/components/designer-canvas/index.umd.cjs +0 -1
  147. package/components/designer-outline/index.umd.cjs +0 -1
  148. package/components/designer-toolbox/index.umd.cjs +0 -1
  149. package/components/discussion-editor/index.umd.cjs +0 -3
  150. package/components/discussion-list/index.umd.cjs +0 -1
  151. package/components/drawer/index.umd.cjs +0 -1
  152. package/components/dropdown/index.umd.cjs +0 -2
  153. package/components/dynamic-form/index.umd.cjs +0 -1
  154. package/components/dynamic-resolver/index.umd.cjs +0 -1
  155. package/components/dynamic-view/index.umd.cjs +0 -1
  156. package/components/enum-editor/index.umd.cjs +0 -1
  157. package/components/events-editor/index.umd.cjs +0 -1
  158. package/components/expression-editor/index.umd.cjs +0 -1
  159. package/components/external-container/index.umd.cjs +0 -1
  160. package/components/field-selector/index.umd.cjs +0 -1
  161. package/components/filter-bar/index.umd.cjs +0 -1
  162. package/components/flow-canvas/index.umd.cjs +0 -1
  163. package/components/image-cropper/index.umd.cjs +0 -1
  164. package/components/input-group/index.umd.cjs +0 -1
  165. package/components/layout/index.umd.cjs +0 -1
  166. package/components/list-nav/index.umd.cjs +0 -1
  167. package/components/list-view/index.umd.cjs +0 -1
  168. package/components/loading/index.umd.cjs +0 -8
  169. package/components/locale/index.umd.cjs +0 -1
  170. package/components/lookup/index.umd.cjs +0 -1
  171. package/components/mapping-editor/index.umd.cjs +0 -1
  172. package/components/message-box/index.umd.cjs +0 -1
  173. package/components/modal/index.umd.cjs +0 -1
  174. package/components/nav/index.umd.cjs +0 -3
  175. package/components/notify/index.umd.cjs +0 -1
  176. package/components/order/index.umd.cjs +0 -1
  177. package/components/page-footer/index.umd.cjs +0 -1
  178. package/components/page-header/index.umd.cjs +0 -1
  179. package/components/pagination/index.umd.cjs +0 -1
  180. package/components/popover/index.umd.cjs +0 -1
  181. package/components/progress/index.umd.cjs +0 -3
  182. package/components/property-editor/index.umd.cjs +0 -3
  183. package/components/property-panel/index.umd.cjs +0 -1
  184. package/components/radio-button/index.umd.cjs +0 -1
  185. package/components/radio-group/index.umd.cjs +0 -1
  186. package/components/rate/index.umd.cjs +0 -1
  187. package/components/response-layout/index.umd.cjs +0 -1
  188. package/components/response-layout-editor/index.umd.cjs +0 -1
  189. package/components/response-toolbar/index.umd.cjs +0 -1
  190. package/components/schema-selector/index.umd.cjs +0 -8
  191. package/components/search-box/index.umd.cjs +0 -1
  192. package/components/section/index.umd.cjs +0 -1
  193. package/components/smoke-detector/index.umd.cjs +0 -1
  194. package/components/spacing-editor/index.umd.cjs +0 -1
  195. package/components/splitter/index.umd.cjs +0 -1
  196. package/components/step/index.umd.cjs +0 -1
  197. package/components/switch/index.umd.cjs +0 -1
  198. package/components/tabs/index.umd.cjs +0 -1
  199. package/components/tags/index.umd.cjs +0 -1
  200. package/components/text/index.umd.cjs +0 -1
  201. package/components/textarea/index.umd.cjs +0 -1
  202. package/components/time-picker/index.umd.cjs +0 -1
  203. package/components/tooltip/index.umd.cjs +0 -1
  204. package/components/transfer/index.umd.cjs +0 -1
  205. package/components/tree-grid/index.umd.cjs +0 -1
  206. package/components/tree-view/index.umd.cjs +0 -1
  207. package/components/uploader/index.umd.cjs +0 -2
  208. package/components/verify-detail/index.umd.cjs +0 -1
  209. package/components/video/index.umd.cjs +0 -1
  210. package/components/weather/index.umd.cjs +0 -16
@@ -1,114 +1,114 @@
1
1
  var U = Object.defineProperty;
2
- var z = (r, e, l) => e in r ? U(r, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[e] = l;
3
- var H = (r, e, l) => z(r, typeof e != "symbol" ? e + "" : e, l);
4
- import { defineComponent as B, ref as w, computed as j, createVNode as s, onBeforeMount as F, createApp as G, onUnmounted as Q, inject as X, onMounted as Y } from "vue";
2
+ var z = (i, e, l) => e in i ? U(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
3
+ var H = (i, e, l) => z(i, typeof e != "symbol" ? e + "" : e, l);
4
+ import { defineComponent as B, ref as w, computed as C, createVNode as r, onBeforeMount as F, createApp as G, onUnmounted as Q, inject as X, onMounted as Y } from "vue";
5
5
  import { cloneDeep as Z } from "lodash-es";
6
6
  const _ = {}, q = {};
7
- function P(r) {
8
- const { properties: e, title: l } = r, i = Object.keys(e).reduce((y, v) => (y[v] = e[v].type === "object" && e[v].properties ? P(e[v]) : Z(e[v].default), y), {});
9
- return i.id = `${l}-${Date.now()}`, i;
7
+ function V(i) {
8
+ const { properties: e, title: l } = i, s = Object.keys(e).reduce((o, v) => (o[v] = e[v].type === "object" && e[v].properties ? V(e[v]) : Z(e[v].default), o), {});
9
+ return s.id = `${l}-${Date.now()}`, s;
10
10
  }
11
- function A(r, e = {}) {
12
- const l = _[r];
11
+ function P(i, e = {}) {
12
+ const l = _[i];
13
13
  if (l) {
14
- let i = P(l);
15
- const y = q[r];
16
- return i = y ? y({ getSchemaByType: A }, i, e) : i, i;
14
+ let s = V(l);
15
+ const o = q[i];
16
+ return s = o ? o({ getSchemaByType: P }, s, e) : s, s;
17
17
  }
18
18
  return null;
19
19
  }
20
- function K(r, e) {
21
- const l = P(e);
22
- return Object.keys(r).reduce((i, y) => (i[y] = r[y], i), l), l;
20
+ function K(i, e) {
21
+ const l = V(e);
22
+ return Object.keys(i).reduce((s, o) => (s[o] && typeof s[o] == "object" ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
23
23
  }
24
- function x(r, e) {
25
- return Object.keys(r).filter((i) => r[i] != null).reduce((i, y) => {
26
- if (e.has(y)) {
27
- const v = e.get(y);
24
+ function x(i, e) {
25
+ return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
26
+ if (e.has(o)) {
27
+ const v = e.get(o);
28
28
  if (typeof v == "string")
29
- i[v] = r[y];
29
+ s[v] = i[o];
30
30
  else {
31
- const m = v(y, r[y], r);
32
- Object.assign(i, m);
31
+ const m = v(o, i[o], i);
32
+ Object.assign(s, m);
33
33
  }
34
34
  } else
35
- i[y] = r[y];
36
- return i;
35
+ s[o] = i[o];
36
+ return s;
37
37
  }, {});
38
38
  }
39
- function I(r, e, l = /* @__PURE__ */ new Map()) {
40
- const i = K(r, e);
41
- return x(i, l);
39
+ function I(i, e, l = /* @__PURE__ */ new Map()) {
40
+ const s = K(i, e);
41
+ return x(s, l);
42
42
  }
43
- function ee(r = {}) {
44
- function e(a, o, u, f) {
45
- if (typeof u == "number")
46
- return f[a].length === u;
47
- if (typeof u == "object") {
48
- const d = Object.keys(u)[0], g = u[d];
49
- if (d === "not")
50
- return Number(f[a].length) !== Number(g);
51
- if (d === "moreThan")
52
- return Number(f[a].length) >= Number(g);
53
- if (d === "lessThan")
54
- return Number(f[a].length) <= Number(g);
43
+ function ee(i = {}) {
44
+ function e(a, c, f, p) {
45
+ if (typeof f == "number")
46
+ return p[a].length === f;
47
+ if (typeof f == "object") {
48
+ const h = Object.keys(f)[0], g = f[h];
49
+ if (h === "not")
50
+ return Number(p[a].length) !== Number(g);
51
+ if (h === "moreThan")
52
+ return Number(p[a].length) >= Number(g);
53
+ if (h === "lessThan")
54
+ return Number(p[a].length) <= Number(g);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function l(a, o, u, f) {
59
- return f[a] && f[a].propertyValue && String(f[a].propertyValue.value) === String(u);
58
+ function l(a, c, f, p) {
59
+ return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(f);
60
60
  }
61
- const i = /* @__PURE__ */ new Map([
61
+ const s = /* @__PURE__ */ new Map([
62
62
  ["length", e],
63
63
  ["getProperty", l]
64
64
  ]);
65
- Object.keys(r).reduce((a, o) => (a.set(o, r[o]), a), i);
66
- function y(a, o) {
67
- const u = a;
68
- return typeof o == "number" ? [{ target: u, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: u, operator: "getProperty", param: a, value: !!o }] : typeof o == "object" ? Object.keys(o).map((f) => {
69
- if (f === "length")
70
- return { target: u, operator: "length", param: null, value: o[f] };
71
- const d = f, g = o[f];
72
- return { target: u, operator: "getProperty", param: d, value: g };
65
+ Object.keys(i).reduce((a, c) => (a.set(c, i[c]), a), s);
66
+ function o(a, c) {
67
+ const f = a;
68
+ return typeof c == "number" ? [{ target: f, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: f, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
69
+ if (p === "length")
70
+ return { target: f, operator: "length", param: null, value: c[p] };
71
+ const h = p, g = c[p];
72
+ return { target: f, operator: "getProperty", param: h, value: g };
73
73
  }) : [];
74
74
  }
75
75
  function v(a) {
76
- return Object.keys(a).reduce((u, f) => {
77
- const d = y(f, a[f]);
78
- return u.push(...d), u;
76
+ return Object.keys(a).reduce((f, p) => {
77
+ const h = o(p, a[p]);
78
+ return f.push(...h), f;
79
79
  }, []);
80
80
  }
81
- function m(a, o) {
82
- if (i.has(a.operator)) {
83
- const u = i.get(a.operator);
84
- return u && u(a.target, a.param, a.value, o) || !1;
81
+ function m(a, c) {
82
+ if (s.has(a.operator)) {
83
+ const f = s.get(a.operator);
84
+ return f && f(a.target, a.param, a.value, c) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function h(a, o) {
89
- return v(a).reduce((d, g) => d && m(g, o), !0);
88
+ function d(a, c) {
89
+ return v(a).reduce((h, g) => h && m(g, c), !0);
90
90
  }
91
- function D(a, o) {
92
- const u = Object.keys(a), f = u.includes("allOf"), d = u.includes("anyOf"), g = f || d, L = (g ? a[g ? f ? "allOf" : "anyOf" : "allOf"] : [a]).map((k) => h(k, o));
93
- return f ? !L.includes(!1) : L.includes(!0);
91
+ function D(a, c) {
92
+ const f = Object.keys(a), p = f.includes("allOf"), h = f.includes("anyOf"), g = p || h, L = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((k) => d(k, c));
93
+ return p ? !L.includes(!1) : L.includes(!0);
94
94
  }
95
95
  return { parseValueSchema: D };
96
96
  }
97
97
  const te = {}, ne = {};
98
98
  ee();
99
- function re(r, e, l = /* @__PURE__ */ new Map(), i = (m, h, D) => h, y = {}, v = (m) => m) {
100
- return _[e.title] = e, q[e.title] = i, te[e.title] = y, ne[e.title] = v, (m = {}) => {
101
- const h = I(m, e, l), D = Object.keys(r).reduce((a, o) => (a[o] = r[o].default, a), {});
102
- return Object.assign(D, h);
99
+ function ie(i, e, l = /* @__PURE__ */ new Map(), s = (m, d, D) => d, o = {}, v = (m) => m) {
100
+ return _[e.title] = e, q[e.title] = s, te[e.title] = o, ne[e.title] = v, (m = {}) => {
101
+ const d = I(m, e, l), D = Object.keys(i).reduce((a, c) => (a[c] = i[c].default, a), {});
102
+ return Object.assign(D, d);
103
103
  };
104
104
  }
105
- function se(r, e) {
105
+ function se(i, e) {
106
106
  return { customClass: e.class, customStyle: e.style };
107
107
  }
108
- const ie = /* @__PURE__ */ new Map([
108
+ const re = /* @__PURE__ */ new Map([
109
109
  ["appearance", se]
110
110
  ]);
111
- function le(r, e, l) {
111
+ function le(i, e, l) {
112
112
  return e;
113
113
  }
114
114
  const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/verify-detail.schema.json", ce = "verify-detail", ue = "A Farris Component", fe = "object", pe = {
@@ -184,7 +184,7 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
184
184
  type: fe,
185
185
  properties: pe,
186
186
  required: ye
187
- }, he = "verify-detail", de = "A Farris Component", me = "object", ge = {
187
+ }, de = "verify-detail", he = "A Farris Component", me = "object", ge = {
188
188
  basic: {
189
189
  description: "Basic Infomation",
190
190
  title: "基本信息",
@@ -207,8 +207,8 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
207
207
  }
208
208
  }
209
209
  }, we = {
210
- title: he,
211
- description: de,
210
+ title: de,
211
+ description: he,
212
212
  type: me,
213
213
  categories: ge
214
214
  }, $ = {
@@ -251,66 +251,66 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
251
251
  },
252
252
  customClass: { type: String, default: "" },
253
253
  maxHeight: { type: Number, default: 200 }
254
- }, R = re($, ve, ie, le, we), N = /* @__PURE__ */ B({
254
+ }, R = ie($, ve, re, le, we), N = /* @__PURE__ */ B({
255
255
  name: "FVerifyDetail",
256
256
  props: $,
257
257
  emits: ["validatorClick", "listshow"],
258
- setup(r, e) {
258
+ setup(i, e) {
259
259
  let l = [];
260
- const i = w(r.showList), y = w(r.maxHeight), v = w(r.verifyList), m = w(r.showType), h = w(r.verifyType), D = w(r.customClass);
260
+ const s = w(i.showList), o = w(i.maxHeight), v = w(i.verifyList), m = w(i.showType), d = w(i.verifyType), D = w(i.customClass);
261
261
  function a() {
262
- i.value = !i.value, e.emit("listshow", i.value);
262
+ s.value = !s.value, e.emit("listshow", s.value);
263
263
  }
264
- function o(t) {
265
- var c;
266
- !t && h.value && h.value.length > 0 && (t = h.value[0].type), (c = h.value) == null || c.forEach((n) => {
264
+ function c(t) {
265
+ var u;
266
+ !t && d.value && d.value.length > 0 && (t = d.value[0].type), (u = d.value) == null || u.forEach((n) => {
267
267
  n.active = n.type === t;
268
268
  });
269
269
  }
270
- function u(t) {
271
- t = t || l[0].type, l.forEach((c) => {
272
- c.show = c.type === t;
270
+ function f(t) {
271
+ t = t || l[0].type, l.forEach((u) => {
272
+ u.show = u.type === t;
273
273
  });
274
274
  }
275
- function f(t) {
276
- t.length <= 0 || (o(t.type), u(t.type));
275
+ function p(t) {
276
+ t.length <= 0 || (c(t.type), f(t.type));
277
277
  }
278
- function d() {
279
- i.value = !1, e.emit("listshow", !1);
278
+ function h() {
279
+ s.value = !1, e.emit("listshow", !1);
280
280
  }
281
281
  function g(t) {
282
282
  e.emit("validatorClick", t);
283
283
  }
284
- function S(t) {
285
- return s("li", {
284
+ function j(t) {
285
+ return r("li", {
286
286
  class: "f-verify-list",
287
287
  onClick: () => g(t)
288
- }, [s("span", {
288
+ }, [r("span", {
289
289
  class: ["f-icon f-icon-close-outline list-icon list-error", {
290
290
  "list-warning": t.type === "warn"
291
291
  }]
292
- }, null), s("div", {
292
+ }, null), r("div", {
293
293
  class: "list-con"
294
- }, [s("p", {
294
+ }, [r("p", {
295
295
  class: "list-title",
296
296
  title: t.title
297
- }, [t.title]), s("p", {
297
+ }, [t.title]), r("p", {
298
298
  class: "list-msg",
299
299
  title: t.msg
300
300
  }, [t.msg])])]);
301
301
  }
302
302
  function E() {
303
- return l.map((t) => s("ul", {
303
+ return l.map((t) => r("ul", {
304
304
  class: ["f-verify-list-content", {
305
305
  active: t.show
306
306
  }]
307
- }, [t.list && t.list.map((c) => S(c))]));
307
+ }, [t.list && t.list.map((u) => j(u))]));
308
308
  }
309
- const L = j(() => {
309
+ const L = C(() => {
310
310
  var t;
311
311
  return ((t = v.value) == null ? void 0 : t.length) > 0;
312
312
  });
313
- function M(t) {
313
+ function O(t) {
314
314
  return {
315
315
  btn: !0,
316
316
  "verify-title-btn": !0,
@@ -318,86 +318,86 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
318
318
  disabled: t.length <= 0
319
319
  };
320
320
  }
321
- const k = j(() => {
321
+ const k = C(() => {
322
322
  var t;
323
- return (t = h.value) == null ? void 0 : t.map((c) => s("button", {
324
- class: M(c),
325
- onClick: () => f(c)
326
- }, [c.title, s("span", null, [c.length])]));
327
- }), C = j(() => {
323
+ return (t = d.value) == null ? void 0 : t.map((u) => r("button", {
324
+ class: O(u),
325
+ onClick: () => p(u)
326
+ }, [u.title, r("span", null, [u.length])]));
327
+ }), S = C(() => {
328
328
  var t;
329
- return s("div", {
329
+ return r("div", {
330
330
  class: "f-verify-nums",
331
331
  onClick: a
332
- }, [s("span", {
332
+ }, [r("span", {
333
333
  class: "nums-icon f-icon f-icon-warning"
334
- }, null), s("span", {
334
+ }, null), r("span", {
335
335
  class: "nums-count"
336
336
  }, [(t = v.value) == null ? void 0 : t.length])]);
337
337
  });
338
- function O() {
339
- var c;
338
+ function M() {
339
+ var u;
340
340
  const t = [];
341
- h.value && ((c = h.value) != null && c.length) && (h.value.map((n) => {
342
- const p = {
341
+ d.value && ((u = d.value) != null && u.length) && (d.value.map((n) => {
342
+ const y = {
343
343
  list: n.type === "all" ? v.value : [],
344
344
  show: !1,
345
345
  type: n.type
346
346
  };
347
- t.push(p);
348
- }), t.map((n, p) => {
347
+ t.push(y);
348
+ }), t.map((n, y) => {
349
349
  const T = v.value.filter((b) => b.type === n.type);
350
- t[p].list = p !== 0 ? T : t[p].list;
351
- }), h.value.map((n, p) => {
352
- n.length = t[p].list.length;
350
+ t[y].list = y !== 0 ? T : t[y].list;
351
+ }), d.value.map((n, y) => {
352
+ n.length = t[y].list.length;
353
353
  })), l = t;
354
354
  }
355
355
  return F(() => {
356
- O(), u(m.value), o(m.value);
357
- }), () => s("div", {
356
+ M(), f(m.value), c(m.value);
357
+ }), () => r("div", {
358
358
  class: L ? `f-verify-detail ${D.value}` : ""
359
- }, [L.value ? s("div", {
359
+ }, [L.value ? r("div", {
360
360
  class: "f-verify-detail-content"
361
- }, [C.value, s("div", {
361
+ }, [S.value, r("div", {
362
362
  class: "f-verify-form-main",
363
- hidden: !i.value
364
- }, [s("div", {
363
+ hidden: !s.value
364
+ }, [r("div", {
365
365
  class: "f-verify-form-content"
366
- }, [s("div", {
366
+ }, [r("div", {
367
367
  class: "f-verify-form-content-arrow"
368
- }, null), s("div", {
368
+ }, null), r("div", {
369
369
  class: "f-verify-form-content-list"
370
- }, [s("div", {
370
+ }, [r("div", {
371
371
  class: "f-verify-forms-title"
372
- }, [s("div", {
372
+ }, [r("div", {
373
373
  class: "btn-group"
374
- }, [k.value]), s("div", {
374
+ }, [k.value]), r("div", {
375
375
  class: "f-verify-close",
376
- onClick: d
377
- }, [s("span", {
376
+ onClick: h
377
+ }, [r("span", {
378
378
  class: "f-icon f-icon-close"
379
- }, null)])]), s("div", {
379
+ }, null)])]), r("div", {
380
380
  class: "f-verify-forms-list",
381
381
  style: {
382
- maxHeight: y.value + "px"
382
+ maxHeight: o.value + "px"
383
383
  }
384
384
  }, [E()])])])])]) : null]);
385
385
  }
386
386
  });
387
- function be(r, e, l) {
387
+ function be(i, e, l) {
388
388
  G({
389
389
  setup() {
390
390
  return Q(() => {
391
391
  e && e();
392
- }), () => s(N, r, null);
392
+ }), () => r(N, i, null);
393
393
  }
394
394
  }).mount(l);
395
395
  }
396
396
  class W {
397
397
  static show(e, l) {
398
398
  this.clear();
399
- let i = 0;
400
- this.verifyContainer = document.createElement("div"), l ? (i = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (i = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : i, be(e, this.clear, this.verifyContainer);
399
+ let s = 0;
400
+ this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, be(e, this.clear, this.verifyContainer);
401
401
  }
402
402
  static clear() {
403
403
  let e = this.verifyContainer;
@@ -405,12 +405,12 @@ class W {
405
405
  }
406
406
  }
407
407
  H(W, "verifyContainer", null);
408
- function Te(r, e, l) {
409
- var O;
410
- function i() {
408
+ function Te(i, e, l) {
409
+ var M;
410
+ function s() {
411
411
  }
412
- const y = "", v = "", m = w();
413
- function h() {
412
+ const o = "", v = "", m = w();
413
+ function d() {
414
414
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
415
415
  }
416
416
  function D() {
@@ -419,70 +419,70 @@ function Te(r, e, l) {
419
419
  function a() {
420
420
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
421
421
  }
422
- function o() {
422
+ function c() {
423
423
  return (e == null ? void 0 : e.schema.componentType) === "frame";
424
424
  }
425
- function u(t) {
425
+ function f(t) {
426
426
  if (!t || !t.value)
427
427
  return null;
428
428
  if (t.value.schema && t.value.schema.type === "component")
429
429
  return t.value;
430
- const c = w(t == null ? void 0 : t.value.parent), n = u(c);
430
+ const u = w(t == null ? void 0 : t.value.parent), n = f(u);
431
431
  return n || null;
432
432
  }
433
- function f(t = e) {
434
- const { componentInstance: c, designerItemElementRef: n } = t;
435
- return !c || !c.value ? null : c.value.canMove ? n : f(t.parent);
433
+ function p(t = e) {
434
+ const { componentInstance: u, designerItemElementRef: n } = t;
435
+ return !u || !u.value ? null : u.value.canMove ? n : p(t.parent);
436
436
  }
437
- function d(t) {
437
+ function h(t) {
438
438
  return !!l;
439
439
  }
440
440
  function g() {
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 S() {
443
+ function j() {
444
444
  }
445
- function E(t, c) {
445
+ function E(t, u) {
446
446
  }
447
447
  function L(t) {
448
- const { componentType: c } = t;
449
- let n = A(c, t);
450
- const p = c.toLowerCase().replace("-", "_");
451
- return n && !n.id && n.type === c && (n.id = `${p}_${Math.random().toString().slice(2, 6)}`), n;
448
+ const { componentType: u } = t;
449
+ let n = P(u, t);
450
+ const y = u.toLowerCase().replace("-", "_");
451
+ return n && !n.id && n.type === u && (n.id = `${y}_${Math.random().toString().slice(2, 6)}`), n;
452
452
  }
453
- function M(t, c) {
454
- const n = String(t.getAttribute("data-controltype")), p = t.getAttribute("data-feature"), T = p ? JSON.parse(p) : {};
453
+ function O(t, u) {
454
+ const n = String(t.getAttribute("data-controltype")), y = t.getAttribute("data-feature"), T = y ? JSON.parse(y) : {};
455
455
  T.parentComponentInstance = m.value;
456
- let b = A(n, T);
457
- const V = n.toLowerCase().replace("-", "_");
458
- return b && !b.id && b.type === n && (b.id = `${V}_${Math.random().toString().slice(2, 6)}`), b;
456
+ let b = P(n, T);
457
+ const A = n.toLowerCase().replace("-", "_");
458
+ return b && !b.id && b.type === n && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
459
459
  }
460
460
  function k(t) {
461
461
  }
462
- function C(...t) {
462
+ function S(...t) {
463
463
  }
464
464
  return m.value = {
465
- canMove: h(),
465
+ canMove: d(),
466
466
  canSelectParent: D(),
467
467
  canDelete: a(),
468
- canNested: !o(),
468
+ canNested: !c(),
469
469
  contents: e == null ? void 0 : e.schema.contents,
470
- elementRef: r,
471
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
470
+ elementRef: i,
471
+ parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
472
472
  schema: e == null ? void 0 : e.schema,
473
- styles: y,
473
+ styles: o,
474
474
  designerClass: v,
475
- canAccepts: d,
476
- getBelongedComponentInstance: u,
477
- getDraggableDesignItemElement: f,
475
+ canAccepts: h,
476
+ getBelongedComponentInstance: f,
477
+ getDraggableDesignItemElement: p,
478
478
  getDraggingDisplayText: g,
479
- getPropConfig: C,
480
- getDragScopeElement: S,
479
+ getPropConfig: S,
480
+ getDragScopeElement: j,
481
481
  onAcceptMovedChildElement: E,
482
- onAcceptNewChildElement: M,
482
+ onAcceptNewChildElement: O,
483
483
  onChildElementMovedOut: k,
484
484
  addNewChildComponentSchema: L,
485
- updateDragAndDropRules: i,
485
+ updateDragAndDropRules: s,
486
486
  triggerBelongedComponentToMoveWhenMoved: w(!1),
487
487
  triggerBelongedComponentToDeleteWhenDeleted: w(!1)
488
488
  }, m;
@@ -491,92 +491,92 @@ const De = /* @__PURE__ */ B({
491
491
  name: "FVerifyDetailDesign",
492
492
  props: $,
493
493
  emits: ["validatorClick", "listshow"],
494
- setup(r, e) {
494
+ setup(i, e) {
495
495
  let l = [];
496
- const i = w(r.showList), y = w(r.maxHeight), v = w(r.verifyList), m = w(r.showType), h = w(r.verifyType), D = w(), a = X("design-item-context"), o = Te(D, a);
496
+ const s = w(i.showList), o = w(i.maxHeight), v = w(i.verifyList), m = w(i.showType), d = w(i.verifyType), D = w(), a = X("design-item-context"), c = Te(D, a);
497
497
  Y(() => {
498
- D.value.componentInstance = o;
499
- }), e.expose(o.value);
500
- function u() {
501
- i.value = !i.value, e.emit("listshow", i.value);
498
+ D.value.componentInstance = c;
499
+ }), e.expose(c.value);
500
+ function f() {
501
+ s.value = !s.value, e.emit("listshow", s.value);
502
502
  }
503
- function f(n) {
504
- var p;
505
- (p = h.value) == null || p.forEach((T) => {
503
+ function p(n) {
504
+ var y;
505
+ (y = d.value) == null || y.forEach((T) => {
506
506
  T.active = T.type === n;
507
507
  });
508
508
  }
509
- function d(n) {
510
- l.forEach((p) => {
511
- p.show = p.type === n;
509
+ function h(n) {
510
+ l.forEach((y) => {
511
+ y.show = y.type === n;
512
512
  });
513
513
  }
514
514
  function g(n) {
515
- n.length <= 0 || (f(n.type), d(n.type));
515
+ n.length <= 0 || (p(n.type), h(n.type));
516
516
  }
517
- function S() {
518
- i.value = !1, e.emit("listshow", !1);
517
+ function j() {
518
+ s.value = !1, e.emit("listshow", !1);
519
519
  }
520
520
  function E(n) {
521
521
  e.emit("validatorClick", n);
522
522
  }
523
523
  function L(n) {
524
- return s("li", {
524
+ return r("li", {
525
525
  class: "f-verify-list",
526
526
  onClick: () => E(n)
527
- }, [s("span", {
527
+ }, [r("span", {
528
528
  class: ["f-icon f-icon-close-outline list-icon list-error", {
529
529
  "list-warning": n.type === "warn"
530
530
  }]
531
- }, null), s("div", {
531
+ }, null), r("div", {
532
532
  class: "list-con"
533
- }, [s("p", {
533
+ }, [r("p", {
534
534
  class: "list-title",
535
535
  title: n.title
536
- }, [n.title]), s("p", {
536
+ }, [n.title]), r("p", {
537
537
  class: "list-msg",
538
538
  title: n.msg
539
539
  }, [n.msg])])]);
540
540
  }
541
- function M() {
542
- return l.map((n) => s("ul", {
541
+ function O() {
542
+ return l.map((n) => r("ul", {
543
543
  class: ["f-verify-list-content", {
544
544
  active: n.show
545
545
  }]
546
- }, [n.list && n.list.map((p) => L(p))]));
546
+ }, [n.list && n.list.map((y) => L(y))]));
547
547
  }
548
- const k = j(() => {
548
+ const k = C(() => {
549
549
  var n;
550
550
  return ((n = v.value) == null ? void 0 : n.length) > 0;
551
551
  });
552
- function C(n) {
552
+ function S(n) {
553
553
  return {
554
554
  "btn btn-secondary": !0,
555
555
  active: n.active,
556
556
  disabled: n.length <= 0
557
557
  };
558
558
  }
559
- const O = j(() => {
559
+ const M = C(() => {
560
560
  var n;
561
- return (n = h.value) == null ? void 0 : n.map((p) => s("button", {
562
- class: C(p),
563
- onClick: () => g(p)
564
- }, [p.title, s("span", null, [p.length])]));
565
- }), t = j(() => {
561
+ return (n = d.value) == null ? void 0 : n.map((y) => r("button", {
562
+ class: S(y),
563
+ onClick: () => g(y)
564
+ }, [y.title, r("span", null, [y.length])]));
565
+ }), t = C(() => {
566
566
  var n;
567
- return s("div", {
567
+ return r("div", {
568
568
  class: "f-verify-nums",
569
- onClick: u
570
- }, [s("span", {
569
+ onClick: f
570
+ }, [r("span", {
571
571
  class: "nums-icon f-icon f-icon-warning"
572
- }, null), s("span", {
572
+ }, null), r("span", {
573
573
  class: "nums-count"
574
574
  }, [(n = v.value) == null ? void 0 : n.length])]);
575
575
  });
576
- function c() {
577
- var p;
576
+ function u() {
577
+ var y;
578
578
  const n = [];
579
- h.value && ((p = h.value) != null && p.length) && (h.value.map((T) => {
579
+ d.value && ((y = d.value) != null && y.length) && (d.value.map((T) => {
580
580
  const b = {
581
581
  list: T.type === "all" ? v.value : [],
582
582
  show: !1,
@@ -584,54 +584,54 @@ const De = /* @__PURE__ */ B({
584
584
  };
585
585
  n.push(b);
586
586
  }), n.map((T, b) => {
587
- const V = v.value.filter((J) => J.type === T.type);
588
- n[b].list = b !== 0 ? V : n[b].list;
589
- }), h.value.map((T, b) => {
587
+ const A = v.value.filter((J) => J.type === T.type);
588
+ n[b].list = b !== 0 ? A : n[b].list;
589
+ }), d.value.map((T, b) => {
590
590
  T.length = n[b].list.length;
591
591
  })), l = n;
592
592
  }
593
593
  return F(() => {
594
- c(), d(m.value), f(m.value);
595
- }), () => s("div", {
594
+ u(), h(m.value), p(m.value);
595
+ }), () => r("div", {
596
596
  ref: D
597
- }, [k.value ? s("div", {
597
+ }, [k.value ? r("div", {
598
598
  class: "f-verify-detail"
599
- }, [s("div", {
599
+ }, [r("div", {
600
600
  class: "f-verify-detail-content"
601
- }, [t.value, s("div", {
601
+ }, [t.value, r("div", {
602
602
  class: "f-verify-form-main",
603
- hidden: !i.value
604
- }, [s("div", {
603
+ hidden: !s.value
604
+ }, [r("div", {
605
605
  class: "f-verify-form-content"
606
- }, [s("div", {
606
+ }, [r("div", {
607
607
  class: "f-verify-form-content-arrow"
608
- }, null), s("div", {
608
+ }, null), r("div", {
609
609
  class: "f-verify-form-content-list"
610
- }, [s("div", {
610
+ }, [r("div", {
611
611
  class: "f-verify-forms-title"
612
- }, [s("div", {
612
+ }, [r("div", {
613
613
  class: "btn-group"
614
- }, [O.value]), s("div", {
614
+ }, [M.value]), r("div", {
615
615
  class: "f-verify-close",
616
- onClick: S
617
- }, [s("span", {
616
+ onClick: j
617
+ }, [r("span", {
618
618
  class: "f-icon f-icon-close"
619
- }, null)])]), s("div", {
619
+ }, null)])]), r("div", {
620
620
  class: "f-verify-forms-list",
621
621
  style: {
622
- maxHeight: y.value + "px"
622
+ maxHeight: o.value + "px"
623
623
  }
624
- }, [M()])])])])])]) : null]);
624
+ }, [O()])])])])])]) : null]);
625
625
  }
626
626
  }), Ee = {
627
- install(r) {
628
- r.component(N.name, N), r.provide("FVerifyDetailService", W);
627
+ install(i) {
628
+ i.component(N.name, N), i.provide("FVerifyDetailService", W);
629
629
  },
630
- register(r, e, l, i) {
631
- r["verify-detail"] = N, e["verify-detail"] = R;
630
+ register(i, e, l, s) {
631
+ i["verify-detail"] = N, e["verify-detail"] = R;
632
632
  },
633
- registerDesigner(r, e, l) {
634
- r["verify-detail"] = De, e["verify-detail"] = R;
633
+ registerDesigner(i, e, l) {
634
+ i["verify-detail"] = De, e["verify-detail"] = R;
635
635
  }
636
636
  };
637
637
  export {