@farris/ui-vue 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,19 +1,19 @@
1
1
  var U = Object.defineProperty;
2
2
  var z = (i, e, l) => e in i ? U(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
3
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";
4
+ import { defineComponent as B, ref as b, 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
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;
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 ? V(e[u]) : Z(e[u].default)), h), {});
9
+ return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
10
10
  }
11
- function P(i, e = {}) {
12
- const l = _[i];
13
- if (l) {
14
- let s = V(l);
15
- const o = q[i];
16
- return s = o ? o({ getSchemaByType: P }, s, e) : s, s;
11
+ function P(i, e = {}, l) {
12
+ const s = _[i];
13
+ if (s) {
14
+ let o = V(s);
15
+ const d = q[i];
16
+ return o = d ? d({ getSchemaByType: P }, o, e, l) : o, o;
17
17
  }
18
18
  return null;
19
19
  }
@@ -24,12 +24,12 @@ function K(i, e) {
24
24
  function x(i, e) {
25
25
  return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
26
26
  if (e.has(o)) {
27
- const v = e.get(o);
28
- if (typeof v == "string")
29
- s[v] = i[o];
27
+ const d = e.get(o);
28
+ if (typeof d == "string")
29
+ s[d] = i[o];
30
30
  else {
31
- const m = v(o, i[o], i);
32
- Object.assign(s, m);
31
+ const h = d(o, i[o], i);
32
+ Object.assign(s, h);
33
33
  }
34
34
  } else
35
35
  s[o] = i[o];
@@ -41,65 +41,65 @@ function I(i, e, l = /* @__PURE__ */ new Map()) {
41
41
  return x(s, l);
42
42
  }
43
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);
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);
55
55
  }
56
56
  return !1;
57
57
  }
58
- function l(a, c, f, p) {
59
- return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(f);
58
+ function l(a, f, p, y) {
59
+ return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(p);
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, 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 };
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 };
73
73
  }) : [];
74
74
  }
75
- function v(a) {
76
- return Object.keys(a).reduce((f, p) => {
77
- const h = o(p, a[p]);
78
- return f.push(...h), f;
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;
79
79
  }, []);
80
80
  }
81
- function m(a, c) {
81
+ function h(a, f) {
82
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;
83
+ const p = s.get(a.operator);
84
+ return p && p(a.target, a.param, a.value, f) || !1;
85
85
  }
86
86
  return !1;
87
87
  }
88
- function d(a, c) {
89
- return v(a).reduce((h, g) => h && m(g, c), !0);
88
+ function u(a, f) {
89
+ return d(a).reduce((m, g) => m && h(g, f), !0);
90
90
  }
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);
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((k) => u(k, f));
93
+ return y ? !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 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);
99
+ function ie(i, e, l = /* @__PURE__ */ new Map(), s = (h, u, D) => u, o = {}, d = (h) => h) {
100
+ return _[e.title] = e, q[e.title] = s, te[e.title] = o, ne[e.title] = d, (h = {}) => {
101
+ const u = I(h, e, l), D = Object.keys(i).reduce((a, f) => (a[f] = i[f].default, a), {});
102
+ return Object.assign(D, u);
103
103
  };
104
104
  }
105
105
  function se(i, e) {
@@ -257,25 +257,25 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
257
257
  emits: ["validatorClick", "listshow"],
258
258
  setup(i, e) {
259
259
  let l = [];
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);
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);
261
261
  function a() {
262
262
  s.value = !s.value, e.emit("listshow", s.value);
263
263
  }
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) => {
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
267
  n.active = n.type === t;
268
268
  });
269
269
  }
270
- function f(t) {
271
- t = t || l[0].type, l.forEach((u) => {
272
- u.show = u.type === t;
270
+ function p(t) {
271
+ t = t || l[0].type, l.forEach((v) => {
272
+ v.show = v.type === t;
273
273
  });
274
274
  }
275
- function p(t) {
276
- t.length <= 0 || (c(t.type), f(t.type));
275
+ function y(t) {
276
+ t.length <= 0 || (f(t.type), p(t.type));
277
277
  }
278
- function h() {
278
+ function m() {
279
279
  s.value = !1, e.emit("listshow", !1);
280
280
  }
281
281
  function g(t) {
@@ -304,11 +304,11 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
304
304
  class: ["f-verify-list-content", {
305
305
  active: t.show
306
306
  }]
307
- }, [t.list && t.list.map((u) => j(u))]));
307
+ }, [t.list && t.list.map((v) => j(v))]));
308
308
  }
309
309
  const L = C(() => {
310
310
  var t;
311
- return ((t = v.value) == null ? void 0 : t.length) > 0;
311
+ return ((t = d.value) == null ? void 0 : t.length) > 0;
312
312
  });
313
313
  function O(t) {
314
314
  return {
@@ -320,10 +320,10 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
320
320
  }
321
321
  const k = C(() => {
322
322
  var t;
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])]));
323
+ return (t = u.value) == null ? void 0 : t.map((v) => r("button", {
324
+ class: O(v),
325
+ onClick: () => y(v)
326
+ }, [v.title, r("span", null, [v.length])]));
327
327
  }), S = C(() => {
328
328
  var t;
329
329
  return r("div", {
@@ -333,27 +333,27 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
333
333
  class: "nums-icon f-icon f-icon-warning"
334
334
  }, null), r("span", {
335
335
  class: "nums-count"
336
- }, [(t = v.value) == null ? void 0 : t.length])]);
336
+ }, [(t = d.value) == null ? void 0 : t.length])]);
337
337
  });
338
338
  function M() {
339
- var u;
339
+ var v;
340
340
  const t = [];
341
- d.value && ((u = d.value) != null && u.length) && (d.value.map((n) => {
342
- const y = {
343
- list: n.type === "all" ? v.value : [],
341
+ u.value && ((v = u.value) != null && v.length) && (u.value.map((n) => {
342
+ const c = {
343
+ list: n.type === "all" ? d.value : [],
344
344
  show: !1,
345
345
  type: n.type
346
346
  };
347
- t.push(y);
348
- }), t.map((n, y) => {
349
- const T = v.value.filter((b) => b.type === n.type);
350
- t[y].list = y !== 0 ? T : t[y].list;
351
- }), d.value.map((n, y) => {
352
- n.length = t[y].list.length;
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
353
  })), l = t;
354
354
  }
355
355
  return F(() => {
356
- M(), f(m.value), c(m.value);
356
+ M(), p(h.value), f(h.value);
357
357
  }), () => r("div", {
358
358
  class: L ? `f-verify-detail ${D.value}` : ""
359
359
  }, [L.value ? r("div", {
@@ -373,7 +373,7 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
373
373
  class: "btn-group"
374
374
  }, [k.value]), r("div", {
375
375
  class: "f-verify-close",
376
- onClick: h
376
+ onClick: m
377
377
  }, [r("span", {
378
378
  class: "f-icon f-icon-close"
379
379
  }, null)])]), r("div", {
@@ -409,8 +409,8 @@ function Te(i, e, l) {
409
409
  var M;
410
410
  function s() {
411
411
  }
412
- const o = "", v = "", m = w();
413
- function d() {
412
+ const o = "", d = "", h = b();
413
+ function u() {
414
414
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
415
415
  }
416
416
  function D() {
@@ -419,22 +419,22 @@ function Te(i, e, l) {
419
419
  function a() {
420
420
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
421
421
  }
422
- function c() {
422
+ function f() {
423
423
  return (e == null ? void 0 : e.schema.componentType) === "frame";
424
424
  }
425
- function f(t) {
425
+ function p(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 u = w(t == null ? void 0 : t.value.parent), n = f(u);
430
+ const v = b(t == null ? void 0 : t.value.parent), n = p(v);
431
431
  return n || null;
432
432
  }
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);
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);
436
436
  }
437
- function h(t) {
437
+ function m(t) {
438
438
  return !!l;
439
439
  }
440
440
  function g() {
@@ -442,39 +442,39 @@ function Te(i, e, l) {
442
442
  }
443
443
  function j() {
444
444
  }
445
- function E(t, u) {
445
+ function E(t, v) {
446
446
  }
447
- function L(t) {
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;
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;
452
452
  }
453
- function O(t, u) {
454
- const n = String(t.getAttribute("data-controltype")), y = t.getAttribute("data-feature"), T = y ? JSON.parse(y) : {};
455
- T.parentComponentInstance = m.value;
456
- let b = P(n, T);
453
+ function O(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
457
  const A = n.toLowerCase().replace("-", "_");
458
- return b && !b.id && b.type === n && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
458
+ return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
459
459
  }
460
460
  function k(t) {
461
461
  }
462
462
  function S(...t) {
463
463
  }
464
- return m.value = {
465
- canMove: d(),
464
+ return h.value = {
465
+ canMove: u(),
466
466
  canSelectParent: D(),
467
467
  canDelete: a(),
468
- canNested: !c(),
468
+ canNested: !f(),
469
469
  contents: e == null ? void 0 : e.schema.contents,
470
470
  elementRef: i,
471
471
  parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
472
472
  schema: e == null ? void 0 : e.schema,
473
473
  styles: o,
474
- designerClass: v,
475
- canAccepts: h,
476
- getBelongedComponentInstance: f,
477
- getDraggableDesignItemElement: p,
474
+ designerClass: d,
475
+ canAccepts: m,
476
+ getBelongedComponentInstance: p,
477
+ getDraggableDesignItemElement: y,
478
478
  getDraggingDisplayText: g,
479
479
  getPropConfig: S,
480
480
  getDragScopeElement: j,
@@ -483,9 +483,9 @@ function Te(i, e, l) {
483
483
  onChildElementMovedOut: k,
484
484
  addNewChildComponentSchema: L,
485
485
  updateDragAndDropRules: s,
486
- triggerBelongedComponentToMoveWhenMoved: w(!1),
487
- triggerBelongedComponentToDeleteWhenDeleted: w(!1)
488
- }, m;
486
+ triggerBelongedComponentToMoveWhenMoved: b(!1),
487
+ triggerBelongedComponentToDeleteWhenDeleted: b(!1)
488
+ }, h;
489
489
  }
490
490
  const De = /* @__PURE__ */ B({
491
491
  name: "FVerifyDetailDesign",
@@ -493,26 +493,26 @@ const De = /* @__PURE__ */ B({
493
493
  emits: ["validatorClick", "listshow"],
494
494
  setup(i, e) {
495
495
  let l = [];
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);
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 = X("design-item-context"), f = Te(D, a);
497
497
  Y(() => {
498
- D.value.componentInstance = c;
499
- }), e.expose(c.value);
500
- function f() {
498
+ D.value.componentInstance = f;
499
+ }), e.expose(f.value);
500
+ function p() {
501
501
  s.value = !s.value, e.emit("listshow", s.value);
502
502
  }
503
- function p(n) {
504
- var y;
505
- (y = d.value) == null || y.forEach((T) => {
506
- T.active = T.type === n;
503
+ function y(n) {
504
+ var c;
505
+ (c = u.value) == null || c.forEach((w) => {
506
+ w.active = w.type === n;
507
507
  });
508
508
  }
509
- function h(n) {
510
- l.forEach((y) => {
511
- y.show = y.type === n;
509
+ function m(n) {
510
+ l.forEach((c) => {
511
+ c.show = c.type === n;
512
512
  });
513
513
  }
514
514
  function g(n) {
515
- n.length <= 0 || (p(n.type), h(n.type));
515
+ n.length <= 0 || (y(n.type), m(n.type));
516
516
  }
517
517
  function j() {
518
518
  s.value = !1, e.emit("listshow", !1);
@@ -543,11 +543,11 @@ const De = /* @__PURE__ */ B({
543
543
  class: ["f-verify-list-content", {
544
544
  active: n.show
545
545
  }]
546
- }, [n.list && n.list.map((y) => L(y))]));
546
+ }, [n.list && n.list.map((c) => L(c))]));
547
547
  }
548
548
  const k = C(() => {
549
549
  var n;
550
- return ((n = v.value) == null ? void 0 : n.length) > 0;
550
+ return ((n = d.value) == null ? void 0 : n.length) > 0;
551
551
  });
552
552
  function S(n) {
553
553
  return {
@@ -558,40 +558,40 @@ const De = /* @__PURE__ */ B({
558
558
  }
559
559
  const M = C(() => {
560
560
  var n;
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])]));
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
565
  }), t = C(() => {
566
566
  var n;
567
567
  return r("div", {
568
568
  class: "f-verify-nums",
569
- onClick: f
569
+ onClick: p
570
570
  }, [r("span", {
571
571
  class: "nums-icon f-icon f-icon-warning"
572
572
  }, null), r("span", {
573
573
  class: "nums-count"
574
- }, [(n = v.value) == null ? void 0 : n.length])]);
574
+ }, [(n = d.value) == null ? void 0 : n.length])]);
575
575
  });
576
- function u() {
577
- var y;
576
+ function v() {
577
+ var c;
578
578
  const n = [];
579
- d.value && ((y = d.value) != null && y.length) && (d.value.map((T) => {
580
- const b = {
581
- list: T.type === "all" ? v.value : [],
579
+ u.value && ((c = u.value) != null && c.length) && (u.value.map((w) => {
580
+ const T = {
581
+ list: w.type === "all" ? d.value : [],
582
582
  show: !1,
583
- type: T.type
583
+ type: w.type
584
584
  };
585
- n.push(b);
586
- }), n.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
- T.length = n[b].list.length;
585
+ n.push(T);
586
+ }), n.map((w, T) => {
587
+ const A = d.value.filter((J) => J.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
591
  })), l = n;
592
592
  }
593
593
  return F(() => {
594
- u(), h(m.value), p(m.value);
594
+ v(), m(h.value), y(h.value);
595
595
  }), () => r("div", {
596
596
  ref: D
597
597
  }, [k.value ? r("div", {
@@ -0,0 +1 @@
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["verify-detail"]={},g.Vue,g.LodashES))})(this,function(g,e,j){"use strict";var ie=Object.defineProperty;var se=(g,e,j)=>e in g?ie(g,e,{enumerable:!0,configurable:!0,writable:!0,value:j}):g[e]=j;var _=(g,e,j)=>se(g,typeof e!="symbol"?e+"":e,j);const B={},F={};function $(i){const{properties:t,title:o,ignore:s}=i,l=s&&Array.isArray(s),h=Object.keys(t).reduce((m,f)=>((!l||!s.find(w=>w==f))&&(m[f]=t[f].type==="object"&&t[f].properties?$(t[f]):j.cloneDeep(t[f].default)),m),{});return(!l||!s.find(m=>m=="id"))&&(h.id=`${o}-${Date.now()}`),h}function P(i,t={},o){const s=B[i];if(s){let l=$(s);const h=F[i];return l=h?h({getSchemaByType:P},l,t,o):l,l}return null}function q(i,t){const o=$(t);return Object.keys(i).reduce((s,l)=>(s[l]&&typeof s[l]=="object"?Object.assign(s[l],i[l]):s[l]=i[l],s),o),o}function W(i,t){return Object.keys(i).filter(s=>i[s]!=null).reduce((s,l)=>{if(t.has(l)){const h=t.get(l);if(typeof h=="string")s[h]=i[l];else{const m=h(l,i[l],i);Object.assign(s,m)}}else s[l]=i[l];return s},{})}function J(i,t,o=new Map){const s=q(i,t);return W(s,o)}function U(i={}){function t(a,u,p,d){if(typeof p=="number")return d[a].length===p;if(typeof p=="object"){const v=Object.keys(p)[0],N=p[v];if(v==="not")return Number(d[a].length)!==Number(N);if(v==="moreThan")return Number(d[a].length)>=Number(N);if(v==="lessThan")return Number(d[a].length)<=Number(N)}return!1}function o(a,u,p,d){return d[a]&&d[a].propertyValue&&String(d[a].propertyValue.value)===String(p)}const s=new Map([["length",t],["getProperty",o]]);Object.keys(i).reduce((a,u)=>(a.set(u,i[u]),a),s);function l(a,u){const p=a;return typeof u=="number"?[{target:p,operator:"length",param:null,value:Number(u)}]:typeof u=="boolean"?[{target:p,operator:"getProperty",param:a,value:!!u}]:typeof u=="object"?Object.keys(u).map(d=>{if(d==="length")return{target:p,operator:"length",param:null,value:u[d]};const v=d,N=u[d];return{target:p,operator:"getProperty",param:v,value:N}}):[]}function h(a){return Object.keys(a).reduce((p,d)=>{const v=l(d,a[d]);return p.push(...v),p},[])}function m(a,u){if(s.has(a.operator)){const p=s.get(a.operator);return p&&p(a.target,a.param,a.value,u)||!1}return!1}function f(a,u){return h(a).reduce((v,N)=>v&&m(N,u),!0)}function w(a,u){const p=Object.keys(a),d=p.includes("allOf"),v=p.includes("anyOf"),N=d||v,T=(N?a[N?d?"allOf":"anyOf":"allOf"]:[a]).map(L=>f(L,u));return d?!T.includes(!1):T.includes(!0)}return{parseValueSchema:w}}const z={},G={};U();function Q(i,t,o=new Map,s=(m,f,w)=>f,l={},h=m=>m){return B[t.title]=t,F[t.title]=s,z[t.title]=l,G[t.title]=h,(m={})=>{const f=J(m,t,o),w=Object.keys(i).reduce((a,u)=>(a[u]=i[u].default,a),{});return Object.assign(w,f)}}function X(i,t){return{customClass:t.class,customStyle:t.style}}const Y=new Map([["appearance",X]]);function Z(i,t,o){return t}const K={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/verify-detail.schema.json",title:"verify-detail",description:"A Farris Component",type:"object",properties:{id:{description:"The unique identifier for verify-detail",type:"string"},type:{description:"The type string of verify-detail",type:"string",default:"verify-detail"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},disable:{type:"string",default:!1},editable:{description:"",type:"boolean",default:!0},placeholder:{description:"",type:"string",default:""},readonly:{description:"",type:"boolean",default:!1},require:{description:"",type:"boolean",default:!1},tabindex:{description:"",type:"number",default:-1},visible:{description:"",type:"boolean",default:!0}},required:["id","type"]},x={title:"verify-detail",description:"A Farris Component",type:"object",categories:{basic:{description:"Basic Infomation",title:"基本信息",properties:{id:{description:"组件标识",title:"标识",type:"string",readonly:!0},type:{description:"组件类型",title:"控件类型",type:"select",editor:{type:"waiting for modification",enum:[]}}}}}},C={showType:{type:String,default:""},showList:{type:Boolean,default:!1},verifyList:{type:Array,default:[{id:"111",title:"单据信息[销售组织]",msg:"字段值不能为空",type:"empty"},{id:"222",title:"单据信息[销售组织]",msg:"字段值不能为空",type:"empty"}]},verifyType:{type:Array,default:[{id:"vertifyType1",type:"all",title:"全部"},{id:"vertifyType3",type:"empty",title:"值为空"}]},customClass:{type:String,default:""},maxHeight:{type:Number,default:200}},A=Q(C,K,Y,Z,x),S=e.defineComponent({name:"FVerifyDetail",props:C,emits:["validatorClick","listshow"],setup(i,t){let o=[];const s=e.ref(i.showList),l=e.ref(i.maxHeight),h=e.ref(i.verifyList),m=e.ref(i.showType),f=e.ref(i.verifyType),w=e.ref(i.customClass);function a(){s.value=!s.value,t.emit("listshow",s.value)}function u(n){var y;!n&&f.value&&f.value.length>0&&(n=f.value[0].type),(y=f.value)==null||y.forEach(r=>{r.active=r.type===n})}function p(n){n=n||o[0].type,o.forEach(y=>{y.show=y.type===n})}function d(n){n.length<=0||(u(n.type),p(n.type))}function v(){s.value=!1,t.emit("listshow",!1)}function N(n){t.emit("validatorClick",n)}function D(n){return e.createVNode("li",{class:"f-verify-list",onClick:()=>N(n)},[e.createVNode("span",{class:["f-icon f-icon-close-outline list-icon list-error",{"list-warning":n.type==="warn"}]},null),e.createVNode("div",{class:"list-con"},[e.createVNode("p",{class:"list-title",title:n.title},[n.title]),e.createVNode("p",{class:"list-msg",title:n.msg},[n.msg])])])}function M(){return o.map(n=>e.createVNode("ul",{class:["f-verify-list-content",{active:n.show}]},[n.list&&n.list.map(y=>D(y))]))}const T=e.computed(()=>{var n;return((n=h.value)==null?void 0:n.length)>0});function E(n){return{btn:!0,"verify-title-btn":!0,"f-state-selected":n.active,disabled:n.length<=0}}const L=e.computed(()=>{var n;return(n=f.value)==null?void 0:n.map(y=>e.createVNode("button",{class:E(y),onClick:()=>d(y)},[y.title,e.createVNode("span",null,[y.length])]))}),k=e.computed(()=>{var n;return e.createVNode("div",{class:"f-verify-nums",onClick:a},[e.createVNode("span",{class:"nums-icon f-icon f-icon-warning"},null),e.createVNode("span",{class:"nums-count"},[(n=h.value)==null?void 0:n.length])])});function O(){var y;const n=[];f.value&&((y=f.value)!=null&&y.length)&&(f.value.map(r=>{const c={list:r.type==="all"?h.value:[],show:!1,type:r.type};n.push(c)}),n.map((r,c)=>{const V=h.value.filter(b=>b.type===r.type);n[c].list=c!==0?V:n[c].list}),f.value.map((r,c)=>{r.length=n[c].list.length})),o=n}return e.onBeforeMount(()=>{O(),p(m.value),u(m.value)}),()=>e.createVNode("div",{class:T?`f-verify-detail ${w.value}`:""},[T.value?e.createVNode("div",{class:"f-verify-detail-content"},[k.value,e.createVNode("div",{class:"f-verify-form-main",hidden:!s.value},[e.createVNode("div",{class:"f-verify-form-content"},[e.createVNode("div",{class:"f-verify-form-content-arrow"},null),e.createVNode("div",{class:"f-verify-form-content-list"},[e.createVNode("div",{class:"f-verify-forms-title"},[e.createVNode("div",{class:"btn-group"},[L.value]),e.createVNode("div",{class:"f-verify-close",onClick:v},[e.createVNode("span",{class:"f-icon f-icon-close"},null)])]),e.createVNode("div",{class:"f-verify-forms-list",style:{maxHeight:l.value+"px"}},[M()])])])])]):null])}});function I(i,t,o){e.createApp({setup(){return e.onUnmounted(()=>{t&&t()}),()=>e.createVNode(S,i,null)}}).mount(o)}class H{static show(t,o){this.clear();let s=0;this.verifyContainer=document.createElement("div"),o?(s=o.offsetHeight-110,o.appendChild(this.verifyContainer)):(s=document.documentElement.clientHeight-110,document.body.appendChild(this.verifyContainer)),t.maxHeight=t.maxHeight?t.maxHeight:s,I(t,this.clear,this.verifyContainer)}static clear(){let t=this.verifyContainer;t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}_(H,"verifyContainer",null);function ee(i,t,o){var O;function s(){}const l="",h="",m=e.ref();function f(){return(t==null?void 0:t.schema.componentType)!=="frame"}function w(){return!1}function a(){return(t==null?void 0:t.schema.componentType)!=="frame"}function u(){return(t==null?void 0:t.schema.componentType)==="frame"}function p(n){if(!n||!n.value)return null;if(n.value.schema&&n.value.schema.type==="component")return n.value;const y=e.ref(n==null?void 0:n.value.parent),r=p(y);return r||null}function d(n=t){const{componentInstance:y,designerItemElementRef:r}=n;return!y||!y.value?null:y.value.canMove?r:d(n.parent)}function v(n){return!!o}function N(){return(t==null?void 0:t.schema.label)||(t==null?void 0:t.schema.title)||(t==null?void 0:t.schema.name)}function D(){}function M(n,y){}function T(n,y){const{componentType:r}=n;let c=P(r,n,y);const V=r.toLowerCase().replace("-","_");return c&&!c.id&&c.type===r&&(c.id=`${V}_${Math.random().toString().slice(2,6)}`),c}function E(n,y){const r=String(n.getAttribute("data-controltype")),c=n.getAttribute("data-feature"),V=c?JSON.parse(c):{};V.parentComponentInstance=m.value;let b=P(r,V);const R=r.toLowerCase().replace("-","_");return b&&!b.id&&b.type===r&&(b.id=`${R}_${Math.random().toString().slice(2,6)}`),b}function L(n){}function k(...n){}return m.value={canMove:f(),canSelectParent:w(),canDelete:a(),canNested:!u(),contents:t==null?void 0:t.schema.contents,elementRef:i,parent:(O=t==null?void 0:t.parent)==null?void 0:O.componentInstance,schema:t==null?void 0:t.schema,styles:l,designerClass:h,canAccepts:v,getBelongedComponentInstance:p,getDraggableDesignItemElement:d,getDraggingDisplayText:N,getPropConfig:k,getDragScopeElement:D,onAcceptMovedChildElement:M,onAcceptNewChildElement:E,onChildElementMovedOut:L,addNewChildComponentSchema:T,updateDragAndDropRules:s,triggerBelongedComponentToMoveWhenMoved:e.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:e.ref(!1)},m}const te=e.defineComponent({name:"FVerifyDetailDesign",props:C,emits:["validatorClick","listshow"],setup(i,t){let o=[];const s=e.ref(i.showList),l=e.ref(i.maxHeight),h=e.ref(i.verifyList),m=e.ref(i.showType),f=e.ref(i.verifyType),w=e.ref(),a=e.inject("design-item-context"),u=ee(w,a);e.onMounted(()=>{w.value.componentInstance=u}),t.expose(u.value);function p(){s.value=!s.value,t.emit("listshow",s.value)}function d(r){var c;(c=f.value)==null||c.forEach(V=>{V.active=V.type===r})}function v(r){o.forEach(c=>{c.show=c.type===r})}function N(r){r.length<=0||(d(r.type),v(r.type))}function D(){s.value=!1,t.emit("listshow",!1)}function M(r){t.emit("validatorClick",r)}function T(r){return e.createVNode("li",{class:"f-verify-list",onClick:()=>M(r)},[e.createVNode("span",{class:["f-icon f-icon-close-outline list-icon list-error",{"list-warning":r.type==="warn"}]},null),e.createVNode("div",{class:"list-con"},[e.createVNode("p",{class:"list-title",title:r.title},[r.title]),e.createVNode("p",{class:"list-msg",title:r.msg},[r.msg])])])}function E(){return o.map(r=>e.createVNode("ul",{class:["f-verify-list-content",{active:r.show}]},[r.list&&r.list.map(c=>T(c))]))}const L=e.computed(()=>{var r;return((r=h.value)==null?void 0:r.length)>0});function k(r){return{"btn btn-secondary":!0,active:r.active,disabled:r.length<=0}}const O=e.computed(()=>{var r;return(r=f.value)==null?void 0:r.map(c=>e.createVNode("button",{class:k(c),onClick:()=>N(c)},[c.title,e.createVNode("span",null,[c.length])]))}),n=e.computed(()=>{var r;return e.createVNode("div",{class:"f-verify-nums",onClick:p},[e.createVNode("span",{class:"nums-icon f-icon f-icon-warning"},null),e.createVNode("span",{class:"nums-count"},[(r=h.value)==null?void 0:r.length])])});function y(){var c;const r=[];f.value&&((c=f.value)!=null&&c.length)&&(f.value.map(V=>{const b={list:V.type==="all"?h.value:[],show:!1,type:V.type};r.push(b)}),r.map((V,b)=>{const R=h.value.filter(re=>re.type===V.type);r[b].list=b!==0?R:r[b].list}),f.value.map((V,b)=>{V.length=r[b].list.length})),o=r}return e.onBeforeMount(()=>{y(),v(m.value),d(m.value)}),()=>e.createVNode("div",{ref:w},[L.value?e.createVNode("div",{class:"f-verify-detail"},[e.createVNode("div",{class:"f-verify-detail-content"},[n.value,e.createVNode("div",{class:"f-verify-form-main",hidden:!s.value},[e.createVNode("div",{class:"f-verify-form-content"},[e.createVNode("div",{class:"f-verify-form-content-arrow"},null),e.createVNode("div",{class:"f-verify-form-content-list"},[e.createVNode("div",{class:"f-verify-forms-title"},[e.createVNode("div",{class:"btn-group"},[O.value]),e.createVNode("div",{class:"f-verify-close",onClick:D},[e.createVNode("span",{class:"f-icon f-icon-close"},null)])]),e.createVNode("div",{class:"f-verify-forms-list",style:{maxHeight:l.value+"px"}},[E()])])])])])]):null])}}),ne={install(i){i.component(S.name,S),i.provide("FVerifyDetailService",H)},register(i,t,o,s){i["verify-detail"]=S,t["verify-detail"]=A},registerDesigner(i,t,o){i["verify-detail"]=te,t["verify-detail"]=A}};g.FVerifyDetail=S,g.FVerifyDetailService=H,g.default=ne,g.propsResolver=A,g.verifyDetailProps=C,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});