@farris/ui-vue 1.3.5 → 1.3.6

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