@farris/ui-vue 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/components/accordion/index.esm.js +1 -1
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +472 -366
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +1 -1
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +472 -480
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +225 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +615 -517
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +325 -333
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +578 -472
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +49 -49
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/common/index.esm.js +832 -722
  20. package/components/common/index.umd.cjs +1 -1
  21. package/components/component/index.esm.js +303 -981
  22. package/components/component/index.umd.cjs +1 -1
  23. package/components/condition/index.esm.js +8 -8
  24. package/components/condition/index.umd.cjs +1 -1
  25. package/components/content-container/index.esm.js +335 -1002
  26. package/components/content-container/index.umd.cjs +1 -1
  27. package/components/data-grid/index.esm.js +4429 -4312
  28. package/components/data-grid/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +3037 -3020
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +2216 -2119
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.css +1 -1
  34. package/components/designer-canvas/index.esm.js +914 -883
  35. package/components/designer-canvas/index.umd.cjs +1 -1
  36. package/components/dropdown/index.esm.js +223 -231
  37. package/components/dropdown/index.umd.cjs +2 -2
  38. package/components/dynamic-form/index.esm.js +1691 -2187
  39. package/components/dynamic-form/index.umd.cjs +1 -1
  40. package/components/dynamic-resolver/index.esm.js +143 -136
  41. package/components/dynamic-resolver/index.umd.cjs +1 -1
  42. package/components/events-editor/index.esm.js +250 -258
  43. package/components/events-editor/index.umd.cjs +1 -1
  44. package/components/expression-editor/index.esm.js +1 -1
  45. package/components/expression-editor/index.umd.cjs +1 -1
  46. package/components/external-container/index.esm.js +2672 -3438
  47. package/components/external-container/index.umd.cjs +1 -1
  48. package/components/field-selector/index.esm.js +2965 -2970
  49. package/components/field-selector/index.umd.cjs +1 -1
  50. package/components/filter-bar/index.esm.js +1650 -1602
  51. package/components/filter-bar/index.umd.cjs +1 -1
  52. package/components/flow-canvas/index.css +1 -1
  53. package/components/flow-canvas/index.esm.js +684 -675
  54. package/components/flow-canvas/index.umd.cjs +1 -1
  55. package/components/image-cropper/index.esm.js +453 -461
  56. package/components/image-cropper/index.umd.cjs +1 -1
  57. package/components/input-group/index.esm.js +604 -507
  58. package/components/input-group/index.umd.cjs +1 -1
  59. package/components/layout/index.esm.js +402 -378
  60. package/components/layout/index.umd.cjs +1 -1
  61. package/components/list-nav/index.esm.js +348 -1019
  62. package/components/list-nav/index.umd.cjs +1 -1
  63. package/components/list-view/index.esm.js +1658 -1666
  64. package/components/list-view/index.umd.cjs +1 -1
  65. package/components/lookup/index.esm.js +5209 -5088
  66. package/components/lookup/index.umd.cjs +1 -1
  67. package/components/mapping-editor/index.esm.js +4329 -4213
  68. package/components/mapping-editor/index.umd.cjs +1 -1
  69. package/components/nav/index.esm.js +905 -1357
  70. package/components/nav/index.umd.cjs +3 -3
  71. package/components/number-range/index.esm.js +517 -420
  72. package/components/number-range/index.umd.cjs +1 -1
  73. package/components/number-spinner/index.esm.js +588 -491
  74. package/components/number-spinner/index.umd.cjs +1 -1
  75. package/components/order/index.esm.js +1376 -1965
  76. package/components/order/index.umd.cjs +1 -1
  77. package/components/page-footer/index.esm.js +1 -1
  78. package/components/page-footer/index.umd.cjs +1 -1
  79. package/components/page-header/index.esm.js +1073 -1905
  80. package/components/page-header/index.umd.cjs +1 -1
  81. package/components/pagination/index.esm.js +809 -1237
  82. package/components/pagination/index.umd.cjs +1 -1
  83. package/components/progress/index.esm.js +198 -206
  84. package/components/progress/index.umd.cjs +3 -3
  85. package/components/property-editor/index.esm.js +1297 -1200
  86. package/components/property-editor/index.umd.cjs +2 -2
  87. package/components/property-panel/index.esm.js +609 -507
  88. package/components/property-panel/index.umd.cjs +1 -1
  89. package/components/query-solution/index.esm.js +3391 -3758
  90. package/components/query-solution/index.umd.cjs +1 -1
  91. package/components/radio-button/index.esm.js +1 -1
  92. package/components/radio-button/index.umd.cjs +1 -1
  93. package/components/radio-group/index.esm.js +544 -447
  94. package/components/radio-group/index.umd.cjs +1 -1
  95. package/components/rate/index.esm.js +247 -255
  96. package/components/rate/index.umd.cjs +1 -1
  97. package/components/response-layout/index.esm.js +146 -154
  98. package/components/response-layout/index.umd.cjs +1 -1
  99. package/components/response-layout-editor/index.esm.js +700 -675
  100. package/components/response-layout-editor/index.umd.cjs +1 -1
  101. package/components/response-toolbar/index.esm.js +956 -1786
  102. package/components/response-toolbar/index.umd.cjs +1 -1
  103. package/components/schema-selector/index.esm.js +4963 -5617
  104. package/components/schema-selector/index.umd.cjs +2 -2
  105. package/components/search-box/index.esm.js +158 -161
  106. package/components/search-box/index.umd.cjs +1 -1
  107. package/components/section/index.esm.js +436 -1124
  108. package/components/section/index.umd.cjs +1 -1
  109. package/components/smoke-detector/index.esm.js +92 -100
  110. package/components/smoke-detector/index.umd.cjs +1 -1
  111. package/components/splitter/index.esm.js +571 -1210
  112. package/components/splitter/index.umd.cjs +1 -1
  113. package/components/splitter/style.js +2 -0
  114. package/components/step/index.esm.js +239 -247
  115. package/components/step/index.umd.cjs +1 -1
  116. package/components/switch/index.esm.js +445 -348
  117. package/components/switch/index.umd.cjs +1 -1
  118. package/components/tabs/index.esm.js +2278 -3031
  119. package/components/tabs/index.umd.cjs +1 -1
  120. package/components/tags/index.esm.js +311 -319
  121. package/components/tags/index.umd.cjs +1 -1
  122. package/components/text/index.esm.js +215 -223
  123. package/components/text/index.umd.cjs +1 -1
  124. package/components/textarea/index.esm.js +468 -371
  125. package/components/textarea/index.umd.cjs +1 -1
  126. package/components/time-picker/index.esm.js +1271 -1174
  127. package/components/time-picker/index.umd.cjs +1 -1
  128. package/components/transfer/index.esm.js +469 -477
  129. package/components/transfer/index.umd.cjs +1 -1
  130. package/components/tree-grid/index.esm.js +3060 -3065
  131. package/components/tree-grid/index.umd.cjs +1 -1
  132. package/components/tree-view/index.esm.js +2476 -2481
  133. package/components/tree-view/index.umd.cjs +1 -1
  134. package/components/uploader/index.esm.js +374 -382
  135. package/components/uploader/index.umd.cjs +2 -2
  136. package/components/verify-detail/index.esm.js +248 -256
  137. package/components/verify-detail/index.umd.cjs +1 -1
  138. package/components/video/index.esm.js +414 -1093
  139. package/components/video/index.umd.cjs +1 -1
  140. package/components/weather/index.esm.js +498 -506
  141. package/components/weather/index.umd.cjs +5 -5
  142. package/farris.all.esm.js +20216 -21844
  143. package/farris.all.umd.cjs +9 -9
  144. package/index.css +1 -1
  145. package/package.json +1 -1
  146. package/types/common/directive/area-response.d.ts +10 -0
  147. package/types/common/index.d.ts +8 -0
  148. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  149. package/types/common/utils/resolve-field.d.ts +2 -0
  150. package/types/common/utils/use-class.d.ts +7 -0
  151. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  152. package/types/condition/src/types.d.ts +2 -1
  153. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  154. package/types/data-grid/index.d.ts +8 -5
  155. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  156. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  157. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  158. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  159. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  160. package/types/data-view/composition/types.d.ts +7 -9
  161. package/types/designer-canvas/index.d.ts +2 -1
  162. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  163. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  164. package/types/designer-canvas/src/composition/types.d.ts +1 -2
  165. package/types/designer-canvas/src/types.d.ts +2 -1
  166. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  167. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  168. package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
  169. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  170. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  171. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  172. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  173. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  174. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  175. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  176. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  177. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  178. package/types/property-panel/index.d.ts +2 -1
  179. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  180. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  181. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  182. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  183. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  184. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  185. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  186. package/types/query-solution/src/solutions.d.ts +108 -509
  187. package/types/response-layout-editor/index.d.ts +3 -1
  188. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  189. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  190. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  191. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  192. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  193. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  194. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  195. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  196. package/types/tree-grid/index.d.ts +3 -3
  197. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  198. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  199. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  200. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  201. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
@@ -1,492 +1,532 @@
1
- import { defineComponent as ce, ref as w, watch as je, computed as _, createVNode as N, createTextVNode as le, nextTick as Pe, inject as Ae, onMounted as Te } from "vue";
2
- import { isPlainObject as te, cloneDeep as Ee } from "lodash-es";
3
- import { BaseControlProperty as Se } from "../property-panel/index.esm.js/src/composition/entity/base-property";
4
- import { useResponseLayoutEditorSetting as De } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
5
- import { DgControl as we } from "../designer-canvas/index.esm.js/src/composition/dg-control";
6
- var Y = function(n, t) {
7
- return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
8
- e.__proto__ = r;
9
- } || function(e, r) {
10
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
11
- }, Y(n, t);
1
+ var le = Object.defineProperty;
2
+ var ce = (n, e, t) => e in n ? le(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var M = (n, e, t) => ce(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as K, ref as L, watch as ue, computed as P, createVNode as T, createTextVNode as H, nextTick as pe, inject as fe, onMounted as de } from "vue";
5
+ import { isPlainObject as X, cloneDeep as ee } from "lodash-es";
6
+ import { DgControl as V } from "../designer-canvas/index.esm.js";
7
+ var _ = function(n, e) {
8
+ return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
9
+ t.__proto__ = r;
10
+ } || function(t, r) {
11
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
12
+ }, _(n, e);
12
13
  };
13
- function pe(n, t) {
14
- if (typeof t != "function" && t !== null)
15
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
16
- Y(n, t);
17
- function e() {
14
+ function te(n, e) {
15
+ if (typeof e != "function" && e !== null)
16
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
17
+ _(n, e);
18
+ function t() {
18
19
  this.constructor = n;
19
20
  }
20
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
21
+ n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
21
22
  }
22
- function ne(n) {
23
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
24
- if (e) return e.call(n);
23
+ function Y(n) {
24
+ var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], r = 0;
25
+ if (t) return t.call(n);
25
26
  if (n && typeof n.length == "number") return {
26
27
  next: function() {
27
28
  return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
28
29
  }
29
30
  };
30
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
31
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
31
32
  }
32
- function X(n, t) {
33
- var e = typeof Symbol == "function" && n[Symbol.iterator];
34
- if (!e) return n;
35
- var r = e.call(n), o, s = [], f;
33
+ function O(n, e) {
34
+ var t = typeof Symbol == "function" && n[Symbol.iterator];
35
+ if (!t) return n;
36
+ var r = t.call(n), i, a = [], s;
36
37
  try {
37
- for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) s.push(o.value);
38
- } catch (d) {
39
- f = { error: d };
38
+ for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
39
+ } catch (f) {
40
+ s = { error: f };
40
41
  } finally {
41
42
  try {
42
- o && !o.done && (e = r.return) && e.call(r);
43
+ i && !i.done && (t = r.return) && t.call(r);
43
44
  } finally {
44
- if (f) throw f.error;
45
+ if (s) throw s.error;
45
46
  }
46
47
  }
47
- return s;
48
+ return a;
48
49
  }
49
- function H(n, t, e) {
50
- if (e || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
51
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
52
- return n.concat(s || Array.prototype.slice.call(t));
50
+ function j(n, e, t) {
51
+ if (t || arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
52
+ (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
53
+ return n.concat(a || Array.prototype.slice.call(e));
53
54
  }
54
- function O(n) {
55
+ function I(n) {
55
56
  return typeof n == "function";
56
57
  }
57
- function Ne(n) {
58
- var t = function(r) {
58
+ function me(n) {
59
+ var e = function(r) {
59
60
  Error.call(r), r.stack = new Error().stack;
60
- }, e = n(t);
61
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
61
+ }, t = n(e);
62
+ return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
62
63
  }
63
- var U = Ne(function(n) {
64
- return function(e) {
65
- n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
66
- ` + e.map(function(r, o) {
67
- return o + 1 + ") " + r.toString();
64
+ var N = me(function(n) {
65
+ return function(t) {
66
+ n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
67
+ ` + t.map(function(r, i) {
68
+ return i + 1 + ") " + r.toString();
68
69
  }).join(`
69
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
70
+ `) : "", this.name = "UnsubscriptionError", this.errors = t;
70
71
  };
71
72
  });
72
- function re(n, t) {
73
+ function J(n, e) {
73
74
  if (n) {
74
- var e = n.indexOf(t);
75
- 0 <= e && n.splice(e, 1);
75
+ var t = n.indexOf(e);
76
+ 0 <= t && n.splice(t, 1);
76
77
  }
77
78
  }
78
- var Q = function() {
79
- function n(t) {
80
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
79
+ var $ = function() {
80
+ function n(e) {
81
+ this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
81
82
  }
82
83
  return n.prototype.unsubscribe = function() {
83
- var t, e, r, o, s;
84
+ var e, t, r, i, a;
84
85
  if (!this.closed) {
85
86
  this.closed = !0;
86
- var f = this._parentage;
87
- if (f)
88
- if (this._parentage = null, Array.isArray(f))
87
+ var s = this._parentage;
88
+ if (s)
89
+ if (this._parentage = null, Array.isArray(s))
89
90
  try {
90
- for (var d = ne(f), y = d.next(); !y.done; y = d.next()) {
91
- var a = y.value;
92
- a.remove(this);
91
+ for (var f = Y(s), d = f.next(); !d.done; d = f.next()) {
92
+ var l = d.value;
93
+ l.remove(this);
93
94
  }
94
- } catch (c) {
95
- t = { error: c };
95
+ } catch (u) {
96
+ e = { error: u };
96
97
  } finally {
97
98
  try {
98
- y && !y.done && (e = d.return) && e.call(d);
99
+ d && !d.done && (t = f.return) && t.call(f);
99
100
  } finally {
100
- if (t) throw t.error;
101
+ if (e) throw e.error;
101
102
  }
102
103
  }
103
104
  else
104
- f.remove(this);
105
- var l = this.initialTeardown;
106
- if (O(l))
105
+ s.remove(this);
106
+ var c = this.initialTeardown;
107
+ if (I(c))
107
108
  try {
108
- l();
109
- } catch (c) {
110
- s = c instanceof U ? c.errors : [c];
109
+ c();
110
+ } catch (u) {
111
+ a = u instanceof N ? u.errors : [u];
111
112
  }
112
- var i = this._finalizers;
113
- if (i) {
113
+ var o = this._finalizers;
114
+ if (o) {
114
115
  this._finalizers = null;
115
116
  try {
116
- for (var h = ne(i), g = h.next(); !g.done; g = h.next()) {
117
- var p = g.value;
117
+ for (var p = Y(o), m = p.next(); !m.done; m = p.next()) {
118
+ var y = m.value;
118
119
  try {
119
- oe(p);
120
- } catch (c) {
121
- s = s ?? [], c instanceof U ? s = H(H([], X(s)), X(c.errors)) : s.push(c);
120
+ Q(y);
121
+ } catch (u) {
122
+ a = a ?? [], u instanceof N ? a = j(j([], O(a)), O(u.errors)) : a.push(u);
122
123
  }
123
124
  }
124
- } catch (c) {
125
- r = { error: c };
125
+ } catch (u) {
126
+ r = { error: u };
126
127
  } finally {
127
128
  try {
128
- g && !g.done && (o = h.return) && o.call(h);
129
+ m && !m.done && (i = p.return) && i.call(p);
129
130
  } finally {
130
131
  if (r) throw r.error;
131
132
  }
132
133
  }
133
134
  }
134
- if (s)
135
- throw new U(s);
135
+ if (a)
136
+ throw new N(a);
136
137
  }
137
- }, n.prototype.add = function(t) {
138
- var e;
139
- if (t && t !== this)
138
+ }, n.prototype.add = function(e) {
139
+ var t;
140
+ if (e && e !== this)
140
141
  if (this.closed)
141
- oe(t);
142
+ Q(e);
142
143
  else {
143
- if (t instanceof n) {
144
- if (t.closed || t._hasParent(this))
144
+ if (e instanceof n) {
145
+ if (e.closed || e._hasParent(this))
145
146
  return;
146
- t._addParent(this);
147
+ e._addParent(this);
147
148
  }
148
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
149
+ (this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
149
150
  }
150
- }, n.prototype._hasParent = function(t) {
151
- var e = this._parentage;
152
- return e === t || Array.isArray(e) && e.includes(t);
153
- }, n.prototype._addParent = function(t) {
154
- var e = this._parentage;
155
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
156
- }, n.prototype._removeParent = function(t) {
157
- var e = this._parentage;
158
- e === t ? this._parentage = null : Array.isArray(e) && re(e, t);
159
- }, n.prototype.remove = function(t) {
160
- var e = this._finalizers;
161
- e && re(e, t), t instanceof n && t._removeParent(this);
151
+ }, n.prototype._hasParent = function(e) {
152
+ var t = this._parentage;
153
+ return t === e || Array.isArray(t) && t.includes(e);
154
+ }, n.prototype._addParent = function(e) {
155
+ var t = this._parentage;
156
+ this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
157
+ }, n.prototype._removeParent = function(e) {
158
+ var t = this._parentage;
159
+ t === e ? this._parentage = null : Array.isArray(t) && J(t, e);
160
+ }, n.prototype.remove = function(e) {
161
+ var t = this._finalizers;
162
+ t && J(t, e), e instanceof n && e._removeParent(this);
162
163
  }, n.EMPTY = function() {
163
- var t = new n();
164
- return t.closed = !0, t;
164
+ var e = new n();
165
+ return e.closed = !0, e;
165
166
  }(), n;
166
167
  }();
167
- Q.EMPTY;
168
- function ue(n) {
169
- return n instanceof Q || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
168
+ $.EMPTY;
169
+ function ne(n) {
170
+ return n instanceof $ || n && "closed" in n && I(n.remove) && I(n.add) && I(n.unsubscribe);
170
171
  }
171
- function oe(n) {
172
- O(n) ? n() : n.unsubscribe();
172
+ function Q(n) {
173
+ I(n) ? n() : n.unsubscribe();
173
174
  }
174
- var fe = {
175
+ var re = {
175
176
  onUnhandledError: null,
176
177
  onStoppedNotification: null,
177
178
  Promise: void 0,
178
179
  useDeprecatedSynchronousErrorHandling: !1,
179
180
  useDeprecatedNextContext: !1
180
- }, Me = {
181
- setTimeout: function(n, t) {
182
- for (var e = [], r = 2; r < arguments.length; r++)
183
- e[r - 2] = arguments[r];
184
- return setTimeout.apply(void 0, H([n, t], X(e)));
181
+ }, he = {
182
+ setTimeout: function(n, e) {
183
+ for (var t = [], r = 2; r < arguments.length; r++)
184
+ t[r - 2] = arguments[r];
185
+ return setTimeout.apply(void 0, j([n, e], O(t)));
185
186
  },
186
187
  clearTimeout: function(n) {
187
188
  return clearTimeout(n);
188
189
  },
189
190
  delegate: void 0
190
191
  };
191
- function ke(n) {
192
- Me.setTimeout(function() {
192
+ function ye(n) {
193
+ he.setTimeout(function() {
193
194
  throw n;
194
195
  });
195
196
  }
196
- function se() {
197
+ function Z() {
197
198
  }
198
- function Oe(n) {
199
+ function ve(n) {
199
200
  n();
200
201
  }
201
- var de = function(n) {
202
- pe(t, n);
203
- function t(e) {
202
+ var oe = function(n) {
203
+ te(e, n);
204
+ function e(t) {
204
205
  var r = n.call(this) || this;
205
- return r.isStopped = !1, e ? (r.destination = e, ue(e) && e.add(r)) : r.destination = Be, r;
206
- }
207
- return t.create = function(e, r, o) {
208
- return new J(e, r, o);
209
- }, t.prototype.next = function(e) {
210
- this.isStopped || this._next(e);
211
- }, t.prototype.error = function(e) {
212
- this.isStopped || (this.isStopped = !0, this._error(e));
213
- }, t.prototype.complete = function() {
206
+ return r.isStopped = !1, t ? (r.destination = t, ne(t) && t.add(r)) : r.destination = Me, r;
207
+ }
208
+ return e.create = function(t, r, i) {
209
+ return new W(t, r, i);
210
+ }, e.prototype.next = function(t) {
211
+ this.isStopped || this._next(t);
212
+ }, e.prototype.error = function(t) {
213
+ this.isStopped || (this.isStopped = !0, this._error(t));
214
+ }, e.prototype.complete = function() {
214
215
  this.isStopped || (this.isStopped = !0, this._complete());
215
- }, t.prototype.unsubscribe = function() {
216
+ }, e.prototype.unsubscribe = function() {
216
217
  this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
217
- }, t.prototype._next = function(e) {
218
- this.destination.next(e);
219
- }, t.prototype._error = function(e) {
218
+ }, e.prototype._next = function(t) {
219
+ this.destination.next(t);
220
+ }, e.prototype._error = function(t) {
220
221
  try {
221
- this.destination.error(e);
222
+ this.destination.error(t);
222
223
  } finally {
223
224
  this.unsubscribe();
224
225
  }
225
- }, t.prototype._complete = function() {
226
+ }, e.prototype._complete = function() {
226
227
  try {
227
228
  this.destination.complete();
228
229
  } finally {
229
230
  this.unsubscribe();
230
231
  }
231
- }, t;
232
- }(Q), Le = Function.prototype.bind;
233
- function W(n, t) {
234
- return Le.call(n, t);
232
+ }, e;
233
+ }($), be = Function.prototype.bind;
234
+ function B(n, e) {
235
+ return be.call(n, e);
235
236
  }
236
- var Fe = function() {
237
- function n(t) {
238
- this.partialObserver = t;
237
+ var Ce = function() {
238
+ function n(e) {
239
+ this.partialObserver = e;
239
240
  }
240
- return n.prototype.next = function(t) {
241
- var e = this.partialObserver;
242
- if (e.next)
241
+ return n.prototype.next = function(e) {
242
+ var t = this.partialObserver;
243
+ if (t.next)
243
244
  try {
244
- e.next(t);
245
+ t.next(e);
245
246
  } catch (r) {
246
- I(r);
247
+ F(r);
247
248
  }
248
- }, n.prototype.error = function(t) {
249
- var e = this.partialObserver;
250
- if (e.error)
249
+ }, n.prototype.error = function(e) {
250
+ var t = this.partialObserver;
251
+ if (t.error)
251
252
  try {
252
- e.error(t);
253
+ t.error(e);
253
254
  } catch (r) {
254
- I(r);
255
+ F(r);
255
256
  }
256
257
  else
257
- I(t);
258
+ F(e);
258
259
  }, n.prototype.complete = function() {
259
- var t = this.partialObserver;
260
- if (t.complete)
260
+ var e = this.partialObserver;
261
+ if (e.complete)
261
262
  try {
262
- t.complete();
263
- } catch (e) {
264
- I(e);
263
+ e.complete();
264
+ } catch (t) {
265
+ F(t);
265
266
  }
266
267
  }, n;
267
- }(), J = function(n) {
268
- pe(t, n);
269
- function t(e, r, o) {
270
- var s = n.call(this) || this, f;
271
- if (O(e) || !e)
272
- f = {
273
- next: e ?? void 0,
268
+ }(), W = function(n) {
269
+ te(e, n);
270
+ function e(t, r, i) {
271
+ var a = n.call(this) || this, s;
272
+ if (I(t) || !t)
273
+ s = {
274
+ next: t ?? void 0,
274
275
  error: r ?? void 0,
275
- complete: o ?? void 0
276
+ complete: i ?? void 0
276
277
  };
277
278
  else {
278
- var d;
279
- s && fe.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
280
- return s.unsubscribe();
281
- }, f = {
282
- next: e.next && W(e.next, d),
283
- error: e.error && W(e.error, d),
284
- complete: e.complete && W(e.complete, d)
285
- }) : f = e;
279
+ var f;
280
+ a && re.useDeprecatedNextContext ? (f = Object.create(t), f.unsubscribe = function() {
281
+ return a.unsubscribe();
282
+ }, s = {
283
+ next: t.next && B(t.next, f),
284
+ error: t.error && B(t.error, f),
285
+ complete: t.complete && B(t.complete, f)
286
+ }) : s = t;
286
287
  }
287
- return s.destination = new Fe(f), s;
288
+ return a.destination = new Ce(s), a;
288
289
  }
289
- return t;
290
- }(de);
291
- function I(n) {
292
- ke(n);
290
+ return e;
291
+ }(oe);
292
+ function F(n) {
293
+ ye(n);
293
294
  }
294
- function _e(n) {
295
+ function ge(n) {
295
296
  throw n;
296
297
  }
297
- var Be = {
298
+ var Me = {
298
299
  closed: !0,
299
- next: se,
300
- error: _e,
301
- complete: se
302
- }, $e = function() {
300
+ next: Z,
301
+ error: ge,
302
+ complete: Z
303
+ }, Se = function() {
303
304
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
304
305
  }();
305
- function xe(n) {
306
+ function De(n) {
306
307
  return n;
307
308
  }
308
- function Ie(n) {
309
- return n.length === 0 ? xe : n.length === 1 ? n[0] : function(e) {
310
- return n.reduce(function(r, o) {
311
- return o(r);
312
- }, e);
309
+ function Ee(n) {
310
+ return n.length === 0 ? De : n.length === 1 ? n[0] : function(t) {
311
+ return n.reduce(function(r, i) {
312
+ return i(r);
313
+ }, t);
313
314
  };
314
315
  }
315
- var qe = function() {
316
- function n(t) {
317
- t && (this._subscribe = t);
316
+ var Te = function() {
317
+ function n(e) {
318
+ e && (this._subscribe = e);
318
319
  }
319
- return n.prototype.lift = function(t) {
320
- var e = new n();
321
- return e.source = this, e.operator = t, e;
322
- }, n.prototype.subscribe = function(t, e, r) {
323
- var o = this, s = Ue(t) ? t : new J(t, e, r);
324
- return Oe(function() {
325
- var f = o, d = f.operator, y = f.source;
326
- s.add(d ? d.call(s, y) : y ? o._subscribe(s) : o._trySubscribe(s));
327
- }), s;
328
- }, n.prototype._trySubscribe = function(t) {
320
+ return n.prototype.lift = function(e) {
321
+ var t = new n();
322
+ return t.source = this, t.operator = e, t;
323
+ }, n.prototype.subscribe = function(e, t, r) {
324
+ var i = this, a = we(e) ? e : new W(e, t, r);
325
+ return ve(function() {
326
+ var s = i, f = s.operator, d = s.source;
327
+ a.add(f ? f.call(a, d) : d ? i._subscribe(a) : i._trySubscribe(a));
328
+ }), a;
329
+ }, n.prototype._trySubscribe = function(e) {
329
330
  try {
330
- return this._subscribe(t);
331
- } catch (e) {
332
- t.error(e);
331
+ return this._subscribe(e);
332
+ } catch (t) {
333
+ e.error(t);
333
334
  }
334
- }, n.prototype.forEach = function(t, e) {
335
+ }, n.prototype.forEach = function(e, t) {
335
336
  var r = this;
336
- return e = ae(e), new e(function(o, s) {
337
- var f = new J({
338
- next: function(d) {
337
+ return t = x(t), new t(function(i, a) {
338
+ var s = new W({
339
+ next: function(f) {
339
340
  try {
340
- t(d);
341
- } catch (y) {
342
- s(y), f.unsubscribe();
341
+ e(f);
342
+ } catch (d) {
343
+ a(d), s.unsubscribe();
343
344
  }
344
345
  },
345
- error: s,
346
- complete: o
346
+ error: a,
347
+ complete: i
347
348
  });
348
- r.subscribe(f);
349
+ r.subscribe(s);
349
350
  });
350
- }, n.prototype._subscribe = function(t) {
351
- var e;
352
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
353
- }, n.prototype[$e] = function() {
351
+ }, n.prototype._subscribe = function(e) {
352
+ var t;
353
+ return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
354
+ }, n.prototype[Se] = function() {
354
355
  return this;
355
356
  }, n.prototype.pipe = function() {
356
- for (var t = [], e = 0; e < arguments.length; e++)
357
- t[e] = arguments[e];
358
- return Ie(t)(this);
359
- }, n.prototype.toPromise = function(t) {
360
- var e = this;
361
- return t = ae(t), new t(function(r, o) {
362
- var s;
363
- e.subscribe(function(f) {
364
- return s = f;
365
- }, function(f) {
366
- return o(f);
357
+ for (var e = [], t = 0; t < arguments.length; t++)
358
+ e[t] = arguments[t];
359
+ return Ee(e)(this);
360
+ }, n.prototype.toPromise = function(e) {
361
+ var t = this;
362
+ return e = x(e), new e(function(r, i) {
363
+ var a;
364
+ t.subscribe(function(s) {
365
+ return a = s;
366
+ }, function(s) {
367
+ return i(s);
367
368
  }, function() {
368
- return r(s);
369
+ return r(a);
369
370
  });
370
371
  });
371
- }, n.create = function(t) {
372
- return new n(t);
372
+ }, n.create = function(e) {
373
+ return new n(e);
373
374
  }, n;
374
375
  }();
375
- function ae(n) {
376
- var t;
377
- return (t = n ?? fe.Promise) !== null && t !== void 0 ? t : Promise;
376
+ function x(n) {
377
+ var e;
378
+ return (e = n ?? re.Promise) !== null && e !== void 0 ? e : Promise;
378
379
  }
379
- function Ve(n) {
380
- return n && O(n.next) && O(n.error) && O(n.complete);
380
+ function Le(n) {
381
+ return n && I(n.next) && I(n.error) && I(n.complete);
381
382
  }
382
- function Ue(n) {
383
- return n && n instanceof de || Ve(n) && ue(n);
383
+ function we(n) {
384
+ return n && n instanceof oe || Le(n) && ne(n);
384
385
  }
385
- const ye = {}, he = {};
386
- function Z(n) {
387
- const { properties: t, title: e, ignore: r } = n, o = r && Array.isArray(r), s = Object.keys(t).reduce((f, d) => ((!o || !r.find((y) => y == d)) && (f[d] = t[d].type === "object" && t[d].properties ? Z(t[d]) : Ee(t[d].default)), f), {});
388
- return (!o || !r.find((f) => f == "id")) && (s.id = `${e}-${Date.now()}`), s;
386
+ const ae = {}, ie = {};
387
+ function G(n) {
388
+ const { properties: e, title: t, ignore: r } = n, i = r && Array.isArray(r), a = Object.keys(e).reduce((s, f) => ((!i || !r.find((d) => d == f)) && (s[f] = e[f].type === "object" && e[f].properties ? G(e[f]) : ee(e[f].default)), s), {});
389
+ return t && (!i || !r.find((s) => s == "id")) && (a.id = `${t}-${Date.now()}`), a;
389
390
  }
390
- function $(n, t = {}, e) {
391
- const r = ye[n];
391
+ function q(n, e = {}, t) {
392
+ const r = ae[n];
392
393
  if (r) {
393
- let o = Z(r);
394
- const s = he[n];
395
- return o = s ? s({ getSchemaByType: $ }, o, t, e) : o, o;
394
+ let i = G(r);
395
+ const a = ie[n];
396
+ return i = a ? a({ getSchemaByType: q }, i, e, t) : i, i;
396
397
  }
397
398
  return null;
398
399
  }
399
- function We(n, t) {
400
- const e = Z(t);
401
- return Object.keys(n).reduce((r, o) => (r[o] && te(r[o]) && te(n[o]) ? Object.assign(r[o], n[o]) : r[o] = n[o], r), e), e;
400
+ function Ie(n, e) {
401
+ const t = G(e);
402
+ return Object.keys(n).reduce((r, i) => (r[i] && X(r[i]) && X(n[i]) ? Object.assign(r[i], n[i]) : r[i] = n[i], r), t), t;
402
403
  }
403
- function Ge(n, t) {
404
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
405
- if (t.has(o)) {
406
- const s = t.get(o);
407
- if (typeof s == "string")
408
- r[s] = n[o];
404
+ function ke(n, e) {
405
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, i) => {
406
+ if (e.has(i)) {
407
+ const a = e.get(i);
408
+ if (typeof a == "string")
409
+ r[a] = n[i];
409
410
  else {
410
- const f = s(o, n[o], n);
411
- Object.assign(r, f);
411
+ const s = a(i, n[i], n);
412
+ Object.assign(r, s);
412
413
  }
413
414
  } else
414
- r[o] = n[o];
415
+ r[i] = n[i];
415
416
  return r;
416
417
  }, {});
417
418
  }
418
- function ze(n, t, e = /* @__PURE__ */ new Map()) {
419
- const r = We(n, t);
420
- return Ge(r, e);
419
+ function Pe(n, e, t = /* @__PURE__ */ new Map()) {
420
+ const r = Ie(n, e);
421
+ return ke(r, t);
421
422
  }
422
- function Ye(n = {}) {
423
- function t(a, l, i, h) {
424
- if (typeof i == "number")
425
- return h[a].length === i;
426
- if (typeof i == "object") {
427
- const g = Object.keys(i)[0], p = i[g];
428
- if (g === "not")
429
- return Number(h[a].length) !== Number(p);
430
- if (g === "moreThan")
431
- return Number(h[a].length) >= Number(p);
432
- if (g === "lessThan")
433
- return Number(h[a].length) <= Number(p);
423
+ function Fe(n = {}) {
424
+ function e(l, c, o, p) {
425
+ if (typeof o == "number")
426
+ return p[l].length === o;
427
+ if (typeof o == "object") {
428
+ const m = Object.keys(o)[0], y = o[m];
429
+ if (m === "not")
430
+ return Number(p[l].length) !== Number(y);
431
+ if (m === "moreThan")
432
+ return Number(p[l].length) >= Number(y);
433
+ if (m === "lessThan")
434
+ return Number(p[l].length) <= Number(y);
434
435
  }
435
436
  return !1;
436
437
  }
437
- function e(a, l, i, h) {
438
- return h[a] && h[a].propertyValue && String(h[a].propertyValue.value) === String(i);
438
+ function t(l, c, o, p) {
439
+ return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(o);
439
440
  }
440
441
  const r = /* @__PURE__ */ new Map([
441
- ["length", t],
442
- ["getProperty", e]
442
+ ["length", e],
443
+ ["getProperty", t]
443
444
  ]);
444
- Object.keys(n).reduce((a, l) => (a.set(l, n[l]), a), r);
445
- function o(a, l) {
446
- const i = a;
447
- return typeof l == "number" ? [{ target: i, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!l }] : typeof l == "object" ? Object.keys(l).map((h) => {
448
- if (h === "length")
449
- return { target: i, operator: "length", param: null, value: l[h] };
450
- const g = h, p = l[h];
451
- return { target: i, operator: "getProperty", param: g, value: p };
445
+ Object.keys(n).reduce((l, c) => (l.set(c, n[c]), l), r);
446
+ function i(l, c) {
447
+ const o = l;
448
+ return typeof c == "number" ? [{ target: o, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
449
+ if (p === "length")
450
+ return { target: o, operator: "length", param: null, value: c[p] };
451
+ const m = p, y = c[p];
452
+ return { target: o, operator: "getProperty", param: m, value: y };
452
453
  }) : [];
453
454
  }
454
- function s(a) {
455
- return Object.keys(a).reduce((i, h) => {
456
- const g = o(h, a[h]);
457
- return i.push(...g), i;
455
+ function a(l) {
456
+ return Object.keys(l).reduce((o, p) => {
457
+ const m = i(p, l[p]);
458
+ return o.push(...m), o;
458
459
  }, []);
459
460
  }
460
- function f(a, l) {
461
- if (r.has(a.operator)) {
462
- const i = r.get(a.operator);
463
- return i && i(a.target, a.param, a.value, l) || !1;
461
+ function s(l, c) {
462
+ if (r.has(l.operator)) {
463
+ const o = r.get(l.operator);
464
+ return o && o(l.target, l.param, l.value, c) || !1;
464
465
  }
465
466
  return !1;
466
467
  }
467
- function d(a, l) {
468
- return s(a).reduce((g, p) => g && f(p, l), !0);
468
+ function f(l, c) {
469
+ return a(l).reduce((m, y) => m && s(y, c), !0);
469
470
  }
470
- function y(a, l) {
471
- const i = Object.keys(a), h = i.includes("allOf"), g = i.includes("anyOf"), p = h || g, m = (p ? a[p ? h ? "allOf" : "anyOf" : "allOf"] : [a]).map((C) => d(C, l));
472
- return h ? !m.includes(!1) : m.includes(!0);
471
+ function d(l, c) {
472
+ const o = Object.keys(l), p = o.includes("allOf"), m = o.includes("anyOf"), y = p || m, C = (y ? l[y ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((g) => f(g, c));
473
+ return p ? !C.includes(!1) : C.includes(!0);
473
474
  }
474
- return { parseValueSchema: y };
475
+ return { parseValueSchema: d };
475
476
  }
476
- const Xe = {}, He = {};
477
- Ye();
478
- function Je(n, t, e = /* @__PURE__ */ new Map(), r = (f, d, y) => d, o = {}, s = (f) => f) {
479
- return ye[t.title] = t, he[t.title] = r, Xe[t.title] = o, He[t.title] = s, (f = {}) => {
480
- const d = ze(f, t, e), y = Object.keys(n).reduce((a, l) => (a[l] = n[l].default, a), {});
481
- return Object.assign(y, d);
477
+ const k = {
478
+ button: { type: "button", name: "按钮", icon: "Button" },
479
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
480
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
481
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
482
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
483
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
484
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
485
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
486
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
487
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
488
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
489
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
490
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
491
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
492
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
493
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
494
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
495
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
496
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
497
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
498
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
499
+ module: { type: "Module", name: "模块", icon: "Module" },
500
+ component: { type: "component", name: "组件", icon: "Component" },
501
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
502
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
503
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
504
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
505
+ section: { type: "section", name: "分组面板", icon: "Section" },
506
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
507
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
508
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
509
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
510
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
511
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
512
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
513
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
514
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
515
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
516
+ }, Ae = {}, Ne = {};
517
+ Fe();
518
+ function Be(n, e, t = /* @__PURE__ */ new Map(), r = (s, f, d) => f, i = {}, a = (s) => s) {
519
+ return ae[e.title] = e, ie[e.title] = r, Ae[e.title] = i, Ne[e.title] = a, (s = {}) => {
520
+ const f = Pe(s, e, t), d = Object.keys(n).reduce((l, c) => (l[c] = n[c].default, l), {});
521
+ return Object.assign(d, f);
482
522
  };
483
523
  }
484
- function Qe(n, t) {
485
- return { customClass: t.class, customStyle: t.style };
524
+ function Ue(n, e) {
525
+ return { customClass: e.class, customStyle: e.style };
486
526
  }
487
- const Ze = /* @__PURE__ */ new Map([
488
- ["appearance", Qe]
489
- ]), Re = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/nav.schema.json", et = "nav", tt = "A Farris Component", nt = "object", rt = {
527
+ const Ve = /* @__PURE__ */ new Map([
528
+ ["appearance", Ue]
529
+ ]), _e = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/nav.schema.json", je = "nav", We = "A Farris Component", $e = "object", Ge = {
490
530
  id: {
491
531
  description: "The unique identifier for a nav",
492
532
  type: "string"
@@ -578,22 +618,22 @@ const Ze = /* @__PURE__ */ new Map([
578
618
  type: "sting",
579
619
  default: ""
580
620
  }
581
- }, ot = [
621
+ }, qe = [
582
622
  "id",
583
623
  "type"
584
- ], st = {
585
- $schema: Re,
586
- $id: Ke,
587
- title: et,
588
- description: tt,
589
- type: nt,
590
- properties: rt,
591
- required: ot
624
+ ], ze = {
625
+ $schema: _e,
626
+ $id: Oe,
627
+ title: je,
628
+ description: We,
629
+ type: $e,
630
+ properties: Ge,
631
+ required: qe
592
632
  };
593
- function at(n, t, e) {
594
- return t;
633
+ function Xe(n, e, t) {
634
+ return e;
595
635
  }
596
- const it = "nav", ct = "A Farris Component", lt = "object", pt = {
636
+ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
597
637
  basic: {
598
638
  description: "Basic Infomation",
599
639
  title: "基本信息",
@@ -675,12 +715,12 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
675
715
  }
676
716
  }
677
717
  }
678
- }, ut = {
679
- title: it,
680
- description: ct,
681
- type: lt,
682
- categories: pt
683
- }, R = {
718
+ }, xe = {
719
+ title: Ye,
720
+ description: Je,
721
+ type: Qe,
722
+ categories: Ze
723
+ }, z = {
684
724
  /** 未读最大值 */
685
725
  maxNum: { Type: Number, default: 99 },
686
726
  /** 导航数据 */
@@ -713,1195 +753,703 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
713
753
  /** 当前激活的id */
714
754
  activeNavId: { Type: String, default: "1" },
715
755
  /** nav切换前事件 */
716
- navPicking: { Type: Function, default: (n) => qe }
717
- }, ie = Je(R, st, Ze, at, ut), G = /* @__PURE__ */ ce({
756
+ navPicking: { Type: Function, default: (n) => Te }
757
+ }, R = Be(z, ze, Ve, Xe, xe), U = /* @__PURE__ */ K({
718
758
  name: "FNav",
719
- props: R,
759
+ props: z,
720
760
  emits: ["nav", "update:activeNavId"],
721
- setup(n, t) {
722
- const e = w(n.activeNavId), r = w(n.navData), o = w(n.horizontal);
723
- w(n.navPicking), je(() => n.activeNavId, (l, i) => {
724
- l !== i && (e.value = l);
761
+ setup(n, e) {
762
+ const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
763
+ L(n.navPicking), ue(() => n.activeNavId, (c, o) => {
764
+ c !== o && (t.value = c);
725
765
  });
726
- const s = _({
766
+ const a = P({
727
767
  get() {
728
768
  return r.value;
729
769
  },
730
- set(l) {
731
- r.value = l, y();
770
+ set(c) {
771
+ r.value = c, d();
732
772
  }
733
- }), f = _({
773
+ }), s = P({
734
774
  get() {
735
- return e.value;
775
+ return t.value;
736
776
  },
737
- set(l) {
738
- if (e.value = l, e.value && s && s.value.length) {
739
- const i = s.value.find((h) => h.id === e.value);
740
- i && t.emit("nav", i);
777
+ set(c) {
778
+ if (t.value = c, t.value && a && a.value.length) {
779
+ const o = a.value.find((p) => p.id === t.value);
780
+ o && e.emit("nav", o);
741
781
  }
742
782
  }
743
- }), d = _({
744
- set(l) {
745
- o.value = l;
783
+ }), f = P({
784
+ set(c) {
785
+ i.value = c;
746
786
  },
747
787
  get() {
748
- return o.value;
788
+ return i.value;
749
789
  }
750
790
  });
751
- function y() {
752
- if (s.value && s.value.length && !e.value) {
753
- const l = s.value.find((i) => !i.disable);
754
- l && (e.value = l.id);
791
+ function d() {
792
+ if (a.value && a.value.length && !t.value) {
793
+ const c = a.value.find((o) => !o.disable);
794
+ c && (t.value = c.id);
755
795
  }
756
796
  }
757
- function a(l) {
758
- l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
797
+ function l(c) {
798
+ c.disable || c.id === t.value || (t.value = c.id, e.emit("update:activeNavId", c.id), e.emit("nav", c));
759
799
  }
760
800
  return () => {
761
- var l;
762
- return N("div", {
801
+ var c;
802
+ return T("div", {
763
803
  class: ["farris-nav", {
764
- "farris-nav-vertical": !d.value
804
+ "farris-nav-vertical": !f.value
765
805
  }]
766
- }, [(l = s.value) == null ? void 0 : l.map((i) => N("div", {
806
+ }, [(c = a.value) == null ? void 0 : c.map((o) => T("div", {
767
807
  class: ["farris-nav-item", {
768
- active: i.id === f.value
808
+ active: o.id === s.value
769
809
  }, {
770
- disabled: i.disable
810
+ disabled: o.disable
771
811
  }],
772
- onClick: () => a(i)
773
- }, [N("div", {
812
+ onClick: () => l(o)
813
+ }, [T("div", {
774
814
  class: "farris-nav-item-link"
775
- }, [N("span", {
815
+ }, [T("span", {
776
816
  class: "farris-nav-item-link-text"
777
- }, [typeof i.text == "function" ? i.text() : i.text, i.num && N("div", {
817
+ }, [typeof o.text == "function" ? o.text() : o.text, o.num && T("div", {
778
818
  class: "farris-nav-item-tag"
779
- }, [i.num <= n.maxNum && N("span", {
819
+ }, [o.num <= n.maxNum && T("span", {
780
820
  class: "tag-text"
781
- }, [i.num]), i.num > n.maxNum && N("span", {
821
+ }, [o.num]), o.num > n.maxNum && T("span", {
782
822
  class: "tag-text"
783
- }, [n.maxNum, le("+")])])])])]))]);
823
+ }, [n.maxNum, H("+")])])])])]))]);
784
824
  };
785
825
  }
786
826
  });
787
- function ft(n, t, e) {
788
- var M;
827
+ function Re(n, e, t) {
828
+ var D;
789
829
  function r() {
790
- e != null && e.resolveComponentContext && e.resolveComponentContext();
830
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
791
831
  }
792
832
  r();
793
- const o = e && e.getStyles && e.getStyles() || "", s = e && e.getDesignerClass && e.getDesignerClass() || "", f = w();
794
- function d() {
795
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
833
+ const i = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", s = L();
834
+ function f() {
835
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
796
836
  }
797
- function y() {
837
+ function d() {
798
838
  return !1;
799
839
  }
800
- function a() {
801
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
802
- }
803
840
  function l() {
804
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
841
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
805
842
  }
806
- function i(b) {
843
+ function c() {
844
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
845
+ }
846
+ function o(b) {
807
847
  if (!b || !b.value)
808
848
  return null;
809
849
  if (b.value.schema && b.value.schema.type === "component")
810
850
  return b.value;
811
- const D = w(b == null ? void 0 : b.value.parent), E = i(D);
812
- return E || null;
851
+ const S = L(b == null ? void 0 : b.value.parent), w = o(S);
852
+ return w || null;
853
+ }
854
+ function p(b = e) {
855
+ const { componentInstance: S, designerItemElementRef: w } = b;
856
+ return !S || !S.value ? null : S.value.canMove ? w : p(b.parent);
813
857
  }
814
- function h(b = t) {
815
- const { componentInstance: D, designerItemElementRef: E } = b;
816
- return !D || !D.value ? null : D.value.canMove ? E : h(b.parent);
858
+ function m(b) {
859
+ return !!t && t.canAccepts(b);
817
860
  }
818
- function g(b) {
819
- return !!e && e.canAccepts(b);
861
+ function y() {
862
+ return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
820
863
  }
821
- function p() {
822
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
864
+ function u() {
823
865
  }
824
- function c() {
866
+ function v(b, S) {
867
+ S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
868
+ }
869
+ function C(b, S) {
870
+ const { componentType: w } = b;
871
+ let E = q(w, b, S);
872
+ t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
873
+ const A = w.toLowerCase().replace("-", "_");
874
+ return E && !E.id && E.type === w && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
875
+ }
876
+ function h(b) {
877
+ }
878
+ function g(...b) {
879
+ if (t && t.getPropsConfig)
880
+ return t.getPropsConfig(...b);
825
881
  }
826
- function u(b, D) {
827
- D && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(D);
828
- }
829
- function m(b, D) {
830
- const { componentType: E } = b;
831
- let v = $(E, b, D);
832
- e && e.onResolveNewComponentSchema && (v = e.onResolveNewComponentSchema(b, v));
833
- const P = E.toLowerCase().replace("-", "_");
834
- return v && !v.id && v.type === E && (v.id = `${P}_${Math.random().toString().slice(2, 6)}`), v;
835
- }
836
- function A(b, D) {
837
- const E = String(b.getAttribute("data-controltype")), v = b.getAttribute("data-feature"), P = v ? JSON.parse(v) : {};
838
- P.parentComponentInstance = f.value;
839
- let T = $(E, P);
840
- e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(b, D, T));
841
- const S = E.toLowerCase().replace("-", "_");
842
- return T && !T.id && T.type === E && (T.id = `${S}_${Math.random().toString().slice(2, 6)}`), T;
843
- }
844
- function C(b) {
845
- }
846
- function j(...b) {
847
- if (e && e.getPropsConfig)
848
- return e.getPropsConfig(...b);
849
- }
850
- return f.value = {
851
- canMove: d(),
852
- canSelectParent: y(),
853
- canDelete: a(),
854
- canNested: !l(),
855
- contents: t == null ? void 0 : t.schema.contents,
882
+ return s.value = {
883
+ canMove: f(),
884
+ canSelectParent: d(),
885
+ canDelete: l(),
886
+ canNested: !c(),
887
+ contents: e == null ? void 0 : e.schema.contents,
856
888
  elementRef: n,
857
- parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
858
- schema: t == null ? void 0 : t.schema,
859
- styles: o,
860
- designerClass: s,
861
- canAccepts: g,
862
- getBelongedComponentInstance: i,
863
- getDraggableDesignItemElement: h,
864
- getDraggingDisplayText: p,
865
- getPropConfig: j,
866
- getDragScopeElement: c,
867
- onAcceptMovedChildElement: u,
868
- onAcceptNewChildElement: A,
869
- onChildElementMovedOut: C,
870
- addNewChildComponentSchema: m,
889
+ parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
890
+ schema: e == null ? void 0 : e.schema,
891
+ styles: i,
892
+ designerClass: a,
893
+ canAccepts: m,
894
+ getBelongedComponentInstance: o,
895
+ getDraggableDesignItemElement: p,
896
+ getDraggingDisplayText: y,
897
+ getPropConfig: g,
898
+ getDragScopeElement: u,
899
+ onAcceptMovedChildElement: v,
900
+ onChildElementMovedOut: h,
901
+ addNewChildComponentSchema: C,
871
902
  updateDragAndDropRules: r,
872
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || w(!1),
873
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
874
- }, f;
903
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || L(!1),
904
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || L(!1)
905
+ }, s;
875
906
  }
876
- function dt() {
877
- function n(t) {
878
- var o, s;
879
- if (!t)
880
- return !1;
881
- const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
907
+ function Ke() {
908
+ function n(e, t) {
909
+ var s;
882
910
  if (!e)
883
911
  return !1;
884
- const r = (s = e.schema.appearance) == null ? void 0 : s.class;
885
- if (t.controlCategory === "input" || t.controlType === "form-group") {
886
- const f = e.schema.type, d = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
887
- if (e.schema.type !== "response-layout-item" && !d)
888
- return !1;
889
- }
890
- return t.controlType !== "field-set";
912
+ const r = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
913
+ if (!r)
914
+ return !1;
915
+ const i = r.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
916
+ return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(i) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(i)));
891
917
  }
892
918
  return {
893
919
  basalDragulaRuleForContainer: n
894
920
  };
895
921
  }
896
- const yt = "https://json-schema.org/draft/2020-12/schema", ht = "https://farris-design.gitee.io/dragging-rules.schema.json", bt = "Dragging Rules", mt = "The rules of designer canvas", vt = "object", gt = {
897
- "f-page": {
898
- description: "The root class of page designed by farris.",
899
- type: "object",
900
- properties: {
901
- contents: {
902
- type: "object",
903
- properties: {
904
- "f-page-header": {
905
- description: "The class of page header designed by farris.",
906
- type: "string"
907
- },
908
- "f-page-main": {
909
- description: "The class of page body designed by farris.",
910
- type: "object",
911
- properties: {
912
- contents: {
913
- type: "object",
914
- properties: {
915
- "f-struct-like-card": {
916
- description: "",
917
- type: "object",
918
- properties: {
919
- contents: {
920
- type: "object",
921
- properties: {
922
- "f-struct-form": {
923
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
924
- type: "object",
925
- properties: {
926
- contents: {
927
- type: "object",
928
- properties: {
929
- "f-section-form": {
930
- description: "The class of section which has wrapped a reponse-form component.",
931
- type: "object",
932
- properties: {
933
- contents: {
934
- type: "object",
935
- properties: {
936
- "f-form-layout": {
937
- description: "The class of reponse form",
938
- type: "object",
939
- properties: {
940
- rules: {
941
- type: "object",
942
- properties: {
943
- canAccept: {
944
- type: "boolean",
945
- const: !0
946
- },
947
- fixed: {
948
- type: "boolean",
949
- const: !0
950
- },
951
- hidePadding: {
952
- type: "boolean",
953
- const: !1
954
- }
955
- }
956
- }
957
- }
958
- }
959
- }
960
- },
961
- rules: {
962
- type: "object",
963
- properties: {
964
- canAccept: {
965
- type: "boolean",
966
- const: !1
967
- },
968
- fixed: {
969
- type: "boolean",
970
- const: !0
971
- },
972
- hidePadding: {
973
- type: "boolean",
974
- const: !0
975
- }
976
- }
977
- }
978
- }
979
- }
980
- }
981
- },
982
- rules: {
983
- type: "object",
984
- properties: {
985
- canAccept: {
986
- type: "boolean",
987
- const: !1
988
- },
989
- fixed: {
990
- type: "boolean",
991
- const: !1
992
- },
993
- hidePadding: {
994
- type: "boolean",
995
- const: !0
996
- }
997
- }
998
- }
999
- }
1000
- },
1001
- "f-struct-wrapper": {
1002
- description: "",
1003
- type: "object",
1004
- properties: {
1005
- contents: {
1006
- type: "object",
1007
- properties: {
1008
- "f-section-tabs": {
1009
- description: "The class of section which has wrapped sub-grid tabs.",
1010
- type: "object",
1011
- properties: {
1012
- contents: {
1013
- type: "object",
1014
- properties: {
1015
- "f-tabs-in-card": {
1016
- description: "The class of tabs which contains sub-grid.",
1017
- type: "object",
1018
- properties: {
1019
- contents: {
1020
- type: "object",
1021
- properties: {
1022
- "f-struct-data-grid-in-card": {
1023
- description: "The class of sub-grid component",
1024
- type: "object",
1025
- properties: {
1026
- contents: {
1027
- type: "object",
1028
- properties: {
1029
- "f-grid-is-sub": {
1030
- description: "The class of sub-grid",
1031
- type: "object",
1032
- properties: {
1033
- rules: {
1034
- type: "object",
1035
- properties: {
1036
- canAccept: {
1037
- type: "boolean",
1038
- const: !0
1039
- },
1040
- fixed: {
1041
- type: "boolean",
1042
- const: !0
1043
- },
1044
- hidePadding: {
1045
- type: "boolean",
1046
- const: !1
1047
- }
1048
- }
1049
- }
1050
- }
1051
- }
1052
- }
1053
- },
1054
- rules: {
1055
- type: "object",
1056
- properties: {
1057
- canAccept: {
1058
- type: "boolean",
1059
- const: !1
1060
- },
1061
- fixed: {
1062
- type: "boolean",
1063
- const: !1
1064
- },
1065
- hidePadding: {
1066
- type: "boolean",
1067
- const: !0
1068
- }
1069
- }
1070
- }
1071
- }
1072
- }
1073
- }
1074
- },
1075
- rules: {
1076
- type: "object",
1077
- properties: {
1078
- canAccept: {
1079
- type: "boolean",
1080
- const: !1
1081
- },
1082
- fixed: {
1083
- type: "boolean",
1084
- const: !0
1085
- },
1086
- hidePadding: {
1087
- type: "boolean",
1088
- const: !0
1089
- }
1090
- }
1091
- }
1092
- }
1093
- }
1094
- }
1095
- },
1096
- rules: {
1097
- type: "object",
1098
- properties: {
1099
- canAccept: {
1100
- type: "boolean",
1101
- const: !1
1102
- },
1103
- fixed: {
1104
- type: "boolean",
1105
- const: !0
1106
- },
1107
- hidePadding: {
1108
- type: "boolean",
1109
- const: !0
1110
- }
1111
- }
1112
- }
1113
- }
1114
- },
1115
- "f-section-in-main": {
1116
- description: "The class of section which has wrapped a reponse-form component.",
1117
- type: "object",
1118
- properties: {
1119
- rules: {
1120
- type: "object",
1121
- properties: {
1122
- canAccept: {
1123
- type: "boolean",
1124
- const: !0
1125
- },
1126
- fixed: {
1127
- type: "boolean",
1128
- const: !0
1129
- },
1130
- hidePadding: {
1131
- type: "boolean",
1132
- const: !1
1133
- }
1134
- }
1135
- }
1136
- }
1137
- }
1138
- }
1139
- },
1140
- rules: {
1141
- type: "object",
1142
- properties: {
1143
- canAccept: {
1144
- type: "boolean",
1145
- const: !1
1146
- },
1147
- fixed: {
1148
- type: "boolean",
1149
- const: !1
1150
- },
1151
- hidePadding: {
1152
- type: "boolean",
1153
- const: !0
1154
- }
1155
- }
1156
- }
1157
- }
1158
- }
1159
- }
1160
- },
1161
- rules: {
1162
- type: "object",
1163
- properties: {
1164
- canAccept: {
1165
- type: "boolean",
1166
- const: !0
1167
- },
1168
- fixed: {
1169
- type: "boolean",
1170
- const: !0
1171
- },
1172
- hidePadding: {
1173
- type: "object",
1174
- const: {
1175
- allOf: [
1176
- {
1177
- sibling: 0,
1178
- parent: {
1179
- "f-page-main": !0
1180
- }
1181
- }
1182
- ]
1183
- }
1184
- }
1185
- }
1186
- }
1187
- }
1188
- },
1189
- "f-struct-data-grid": {
1190
- description: "",
1191
- type: "object",
1192
- properties: {
1193
- rules: {
1194
- type: "object",
1195
- properties: {
1196
- canAccept: {
1197
- type: "object",
1198
- const: !0
1199
- },
1200
- fixed: {
1201
- type: "boolean",
1202
- const: !0
1203
- },
1204
- hidePadding: {
1205
- type: "boolean",
1206
- const: !0
1207
- }
1208
- }
1209
- }
1210
- }
1211
- },
1212
- "f-page-main-content": {
1213
- description: "",
1214
- type: "object",
1215
- properties: {
1216
- contents: {
1217
- type: "object",
1218
- properties: {
1219
- "f-page-content-nav": {
1220
- description: "",
1221
- type: "object",
1222
- properties: {
1223
- contents: {
1224
- type: "object",
1225
- properties: {
1226
- "f-struct-data-grid-in-nav": {
1227
- description: "",
1228
- type: "object",
1229
- properties: {
1230
- contents: {
1231
- type: "object",
1232
- properties: {
1233
- "f-page-content-nav-extend": {
1234
- description: "",
1235
- type: "object"
1236
- },
1237
- "f-section-in-nav": {
1238
- description: "",
1239
- type: "object",
1240
- properties: {
1241
- rules: {
1242
- type: "object",
1243
- properties: {
1244
- canAccept: {
1245
- type: "boolean",
1246
- const: !1
1247
- },
1248
- fixed: {
1249
- type: "boolean",
1250
- const: !0
1251
- },
1252
- hidePadding: {
1253
- type: "boolean",
1254
- const: !1
1255
- }
1256
- }
1257
- }
1258
- }
1259
- }
1260
- }
1261
- },
1262
- rules: {
1263
- type: "object",
1264
- properties: {
1265
- canAccept: {
1266
- type: "boolean",
1267
- const: !0
1268
- },
1269
- fixed: {
1270
- type: "boolean",
1271
- const: !1
1272
- },
1273
- hidePadding: {
1274
- type: "boolean",
1275
- const: !0
1276
- }
1277
- }
1278
- }
1279
- }
1280
- }
1281
- }
1282
- }
1283
- }
1284
- },
1285
- "f-page-content-main": {
1286
- description: "",
1287
- type: "object",
1288
- properties: {}
1289
- }
1290
- }
1291
- }
1292
- }
1293
- },
1294
- "f-page-content": {
1295
- description: "",
1296
- type: "object",
1297
- properties: {
1298
- contents: {
1299
- type: "object",
1300
- properties: {
1301
- "f-page-content-nav": {
1302
- description: "",
1303
- type: "object",
1304
- properties: {
1305
- contents: {
1306
- type: "object",
1307
- properties: {
1308
- "f-list-nav": {
1309
- description: "",
1310
- type: "object"
1311
- },
1312
- "f-list-nav-left": {
1313
- description: "",
1314
- type: "object"
1315
- },
1316
- "f-struct-data-grid-in-nav": {
1317
- description: "",
1318
- type: "object",
1319
- properties: {
1320
- contents: {
1321
- type: "object",
1322
- properties: {
1323
- "f-section-form": {
1324
- description: "",
1325
- type: "object",
1326
- properties: {
1327
- rules: {
1328
- type: "object",
1329
- properties: {
1330
- canAccept: {
1331
- type: "boolean",
1332
- const: !1
1333
- },
1334
- fixed: {
1335
- type: "boolean",
1336
- const: !0
1337
- },
1338
- hidePadding: {
1339
- type: "boolean",
1340
- const: !0
1341
- }
1342
- }
1343
- }
1344
- }
1345
- },
1346
- "f-section-grid": {
1347
- description: "",
1348
- type: "object",
1349
- properties: {
1350
- rules: {
1351
- type: "object",
1352
- properties: {
1353
- canAccept: {
1354
- type: "boolean",
1355
- const: !1
1356
- },
1357
- fixed: {
1358
- type: "boolean",
1359
- const: !0
1360
- },
1361
- hidePadding: {
1362
- type: "boolean",
1363
- const: !0
1364
- }
1365
- }
1366
- }
1367
- }
1368
- }
1369
- }
1370
- },
1371
- rules: {
1372
- type: "object",
1373
- properties: {
1374
- canAccept: {
1375
- type: "boolean",
1376
- const: !1
1377
- },
1378
- fixed: {
1379
- type: "boolean",
1380
- const: !0
1381
- },
1382
- hidePadding: {
1383
- type: "boolean",
1384
- const: !0
1385
- }
1386
- }
1387
- }
1388
- }
1389
- }
1390
- }
1391
- }
1392
- },
1393
- rules: {
1394
- type: "object",
1395
- properties: {
1396
- canAccept: {
1397
- type: "boolean",
1398
- const: !1
1399
- },
1400
- fixed: {
1401
- type: "boolean",
1402
- const: !0
1403
- },
1404
- hidePadding: {
1405
- type: "boolean",
1406
- const: !0
1407
- }
1408
- }
1409
- }
1410
- },
1411
- "f-page-content-main": {
1412
- description: "",
1413
- type: "object",
1414
- properties: {
1415
- rules: {
1416
- type: "object",
1417
- properties: {
1418
- canAccept: {
1419
- type: "boolean",
1420
- const: !1
1421
- },
1422
- fixed: {
1423
- type: "boolean",
1424
- const: !1
1425
- },
1426
- hidePadding: {
1427
- type: "boolean",
1428
- const: !0
1429
- }
1430
- }
1431
- }
1432
- }
1433
- }
1434
- }
1435
- },
1436
- rules: {
1437
- type: "object",
1438
- properties: {
1439
- canAccept: {
1440
- type: "boolean",
1441
- const: !1
1442
- },
1443
- fixed: {
1444
- type: "boolean",
1445
- const: !0
1446
- },
1447
- hidePadding: {
1448
- type: "boolean",
1449
- const: !0
1450
- }
1451
- }
1452
- }
1453
- }
1454
- }
1455
- }
1456
- },
1457
- rules: {
1458
- type: "object",
1459
- properties: {
1460
- canAccept: {
1461
- type: "object",
1462
- const: {
1463
- anyOf: [
1464
- {
1465
- children: 0
1466
- },
1467
- {
1468
- children: {
1469
- length: {
1470
- not: 1
1471
- },
1472
- "f-struct-like-card": !0
1473
- }
1474
- },
1475
- {
1476
- children: {
1477
- "scroll-spy": !1,
1478
- "f-page-content": !1,
1479
- "f-struct-like-card": !1
1480
- }
1481
- }
1482
- ]
1483
- }
1484
- },
1485
- fixed: {
1486
- type: "boolean",
1487
- const: !0
1488
- },
1489
- hidePadding: {
1490
- type: "boolean",
1491
- const: !0
1492
- }
1493
- }
1494
- }
1495
- }
1496
- },
1497
- "f-page-footer": {
1498
- description: "The class of page footer designed by farris.",
1499
- type: "string"
922
+ class He {
923
+ getTemplateRule(e, t) {
924
+ const r = t == null ? void 0 : t.formSchemaUtils, i = r == null ? void 0 : r.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
925
+ if (!i)
926
+ return a;
927
+ const s = this.getComponentContext(e);
928
+ return s.componentClassList.forEach((d) => {
929
+ if (!d || !i[d])
930
+ return;
931
+ const { canMove: l, canDelete: c, canAccept: o } = i[d];
932
+ a.canMove = a.canMove && this.resolveRuleValue(l, s), a.canDelete = a.canDelete && this.resolveRuleValue(c, s), a.canAccept = a.canAccept && this.resolveRuleValue(o, s);
933
+ }), a;
934
+ }
935
+ resolveRuleValue(e, t) {
936
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
937
+ }
938
+ parseRuleValueSchema(e, t) {
939
+ const r = e.invalidContext || [];
940
+ let i = !0;
941
+ for (const a of r) {
942
+ if (a.firstLevelChild) {
943
+ if (a.firstLevelChild.class) {
944
+ const s = t.firstLevelChildClassList;
945
+ if (s && !s.includes(a.firstLevelChild.class)) {
946
+ i = !1;
947
+ continue;
1500
948
  }
1501
949
  }
1502
- },
1503
- rules: {
1504
- type: "object",
1505
- properties: {
1506
- canAccept: {
1507
- type: "boolean",
1508
- const: !1
1509
- },
1510
- fixed: {
1511
- type: "boolean",
1512
- const: !0
1513
- },
1514
- hidePadding: {
1515
- type: "boolean",
1516
- const: !0
950
+ if (a.firstLevelChild.type) {
951
+ const s = t.firstLevelChildSchema;
952
+ if (s && s.type !== a.firstLevelChild.type) {
953
+ i = !1;
954
+ continue;
1517
955
  }
1518
956
  }
1519
957
  }
958
+ if (a.secondLevelChild) {
959
+ if (a.secondLevelChild.class) {
960
+ const s = t.secondLevelChildClassList;
961
+ if (s && !s.includes(a.secondLevelChild.class)) {
962
+ i = !1;
963
+ continue;
964
+ }
965
+ }
966
+ if (a.secondLevelChild.type) {
967
+ const s = t.secondLevelChildSchema;
968
+ if (s && s.type !== a.secondLevelChild.type) {
969
+ i = !1;
970
+ continue;
971
+ }
972
+ }
973
+ }
974
+ if (a.parent) {
975
+ if (a.parent.class) {
976
+ const s = t.parentClassList;
977
+ if (s && !s.includes(a.parent.class)) {
978
+ i = !1;
979
+ continue;
980
+ }
981
+ }
982
+ if (a.parent.type) {
983
+ const s = t.parentSchema;
984
+ if (s && s.type !== a.parent.type) {
985
+ i = !1;
986
+ continue;
987
+ }
988
+ }
989
+ }
990
+ i = !0;
991
+ break;
1520
992
  }
1521
- },
1522
- "f-page-is-managelist": {
1523
- description: "The root class of mangement list page.",
1524
- type: "string"
1525
- },
1526
- "f-page-card": {
1527
- description: "",
1528
- type: "object"
1529
- },
1530
- "f-page-is-mainsubcard": {
1531
- description: "",
1532
- type: "object"
1533
- }
1534
- }, Ct = {
1535
- $schema: yt,
1536
- $id: ht,
1537
- title: bt,
1538
- description: mt,
1539
- type: vt,
1540
- properties: gt
1541
- }, z = /* @__PURE__ */ new Map();
1542
- function jt() {
1543
- function n(p, c, u, m) {
1544
- var A;
1545
- if (typeof u == "number")
1546
- return ((A = m[p]) == null ? void 0 : A.length) === u;
1547
- if (typeof u == "object") {
1548
- const C = Object.keys(u)[0], j = u[C];
1549
- if (C === "not")
1550
- return Number(m[p].length) !== Number(j);
1551
- if (C === "moreThan")
1552
- return Number(m[p].length) >= Number(j);
1553
- if (C === "lessThan")
1554
- return Number(m[p].length) <= Number(j);
1555
- }
1556
- return !1;
993
+ return !i;
1557
994
  }
1558
- function t(p, c, u, m) {
1559
- return typeof u == "boolean" ? m.childrenClassList.includes(c) === !!u : !1;
995
+ getComponentContext(e) {
996
+ var u, v, C, h;
997
+ const t = e.schema, r = t.appearance && t.appearance.class || "", i = r.split(" ") || [], a = t.contents || [], s = a.length ? a[0] : null, f = s && s.appearance ? s.appearance.class : "", d = f ? f.split(" ") : [], l = (u = s == null ? void 0 : s.contents) != null && u.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", o = c ? c.split(" ") : [], p = t.type === "component" ? (C = (v = e.parent) == null ? void 0 : v.parent) == null ? void 0 : C.schema : (h = e.parent) == null ? void 0 : h.schema, m = p && p.appearance && p.appearance.class || "", y = m ? m.split(" ") : [];
998
+ return {
999
+ componentClass: r,
1000
+ componentClassList: i,
1001
+ childContents: a,
1002
+ firstLevelChildSchema: s,
1003
+ firstLevelChildClass: f,
1004
+ firstLevelChildClassList: d,
1005
+ secondLevelChildSchema: l,
1006
+ secondLevelChildClass: c,
1007
+ secondLevelChildClassList: o,
1008
+ parentSchema: p,
1009
+ parentClass: m,
1010
+ parentClassList: y
1011
+ };
1560
1012
  }
1561
- function e(p, c, u, m) {
1562
- return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1013
+ }
1014
+ class et {
1015
+ constructor(e, t) {
1016
+ M(this, "componentId");
1017
+ M(this, "viewModelId");
1018
+ M(this, "eventsEditorUtils");
1019
+ M(this, "formSchemaUtils");
1020
+ M(this, "formMetadataConverter");
1021
+ M(this, "designViewModelUtils");
1022
+ M(this, "designViewModelField");
1023
+ M(this, "controlCreatorUtils");
1024
+ M(this, "designerHostService");
1025
+ M(this, "schemaService", null);
1026
+ M(this, "metadataService", null);
1027
+ M(this, "propertyConfig", {
1028
+ type: "object",
1029
+ categories: {}
1030
+ });
1031
+ var r;
1032
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1563
1033
  }
1564
- function r(p, c, u, m) {
1565
- return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1034
+ getTableInfo() {
1035
+ var e;
1036
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
1037
+ }
1038
+ setDesignViewModelField(e) {
1039
+ const t = e.binding && e.binding.type === "Form" && e.binding.field;
1040
+ if (t) {
1041
+ if (!this.designViewModelField) {
1042
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1043
+ this.designViewModelField = r.fields.find((i) => i.id === t);
1044
+ }
1045
+ e.updateOn = this.designViewModelField.updateOn;
1046
+ }
1566
1047
  }
1567
- const o = /* @__PURE__ */ new Map([
1568
- ["length", n],
1569
- ["hasChildren", t],
1570
- ["hasSibling", r],
1571
- ["hasParent", e]
1572
- ]);
1573
- function s(p, c) {
1574
- const u = p;
1575
- return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((m) => {
1576
- if (m === "length")
1577
- return { target: u, operator: "length", param: null, value: c[m] };
1578
- const A = m, C = c[m];
1579
- return { target: u, operator: p === "children" ? "hasChildren" : p === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
1580
- }) : [];
1048
+ changeFieldEditorType(e, t) {
1581
1049
  }
1582
- function f(p, c) {
1583
- if (o.has(p.operator)) {
1584
- const u = o.get(p.operator);
1585
- return u && u(p.target, p.param, p.value, c) || !1;
1586
- }
1587
- return !1;
1050
+ getBasicPropConfig(e) {
1051
+ return {
1052
+ description: "Basic Information",
1053
+ title: "基本信息",
1054
+ properties: {
1055
+ id: {
1056
+ description: "组件标识",
1057
+ title: "标识",
1058
+ type: "string",
1059
+ readonly: !0
1060
+ },
1061
+ type: {
1062
+ description: "组件类型",
1063
+ title: "控件类型",
1064
+ type: "select",
1065
+ editor: {
1066
+ type: "combo-list",
1067
+ textField: "name",
1068
+ valueField: "value",
1069
+ data: [{ value: e.type, name: k[e.type].name }]
1070
+ }
1071
+ }
1072
+ }
1073
+ };
1588
1074
  }
1589
- function d(p, c) {
1590
- return Object.keys(p).reduce((C, j) => {
1591
- const M = s(j, p[j]);
1592
- return C.push(...M), C;
1593
- }, []).reduce((C, j) => C && f(j, c), !0);
1594
- }
1595
- function y(p, c) {
1596
- const u = Object.keys(p), m = u.includes("allOf"), A = u.includes("anyOf"), C = m || A, b = (C ? p[C ? m ? "allOf" : "anyOf" : "allOf"] : [p]).map((E) => d(E, c));
1597
- return m ? !b.includes(!1) : b.includes(!0);
1598
- }
1599
- function a(p, c) {
1600
- const u = p.const;
1601
- return u ? typeof u == "boolean" ? u : typeof u == "object" ? y(u, c) : !1 : !1;
1602
- }
1603
- function l(p) {
1604
- return (c) => {
1605
- const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
1606
- return p && p.properties && Object.keys(p.properties).reduce((m, A) => {
1607
- const C = p.properties[A];
1608
- return m[A] = a(C, c), m;
1609
- }, u), u;
1075
+ getAppearanceConfig(e = null) {
1076
+ return {
1077
+ title: "样式",
1078
+ description: "Appearance",
1079
+ properties: {
1080
+ class: {
1081
+ title: "class样式",
1082
+ type: "string",
1083
+ description: "组件的CSS样式",
1084
+ $converter: "/converter/appearance.converter"
1085
+ },
1086
+ style: {
1087
+ title: "style样式",
1088
+ type: "string",
1089
+ description: "组件的样式",
1090
+ $converter: "/converter/appearance.converter"
1091
+ }
1092
+ }
1610
1093
  };
1611
1094
  }
1612
- function i(p, c, u) {
1613
- if (c.type === "object" && c.properties) {
1614
- const { rules: m, contents: A } = c.properties;
1615
- u.set(p, l(m)), A && Object.keys(A.properties).forEach(
1616
- (C) => i(C, A.properties[C], u)
1617
- );
1618
- }
1095
+ /**
1096
+ *
1097
+ * @param propertyId
1098
+ * @param componentInstance
1099
+ * @returns
1100
+ */
1101
+ updateElementByParentContainer(e, t) {
1102
+ const r = t && t.parent && t.parent.schema;
1103
+ if (!r)
1104
+ return;
1105
+ const i = r.contents.findIndex((s) => s.id === e), a = ee(r.contents[i]);
1106
+ r.contents.splice(i, 1), r.contents.splice(i, 0, a);
1619
1107
  }
1620
- function h() {
1621
- const { properties: p } = Ct;
1622
- Object.keys(p).forEach((c) => {
1623
- i(c, p[c], z);
1108
+ }
1109
+ class tt {
1110
+ constructor() {
1111
+ /** 控件标题 */
1112
+ M(this, "label", "");
1113
+ /** 控件id */
1114
+ M(this, "id", "");
1115
+ /** 每个控件占用的栅格数 */
1116
+ M(this, "columnInSM", 12);
1117
+ M(this, "columnInMD", 6);
1118
+ M(this, "columnInLG", 3);
1119
+ M(this, "columnInEL", 2);
1120
+ /** 每个控件占用的列数 */
1121
+ M(this, "displayWidthInSM", 1);
1122
+ M(this, "displayWidthInMD", 1);
1123
+ M(this, "displayWidthInLG", 1);
1124
+ M(this, "displayWidthInEL", 1);
1125
+ /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
1126
+ M(this, "displayColumnCountAtBreakPoint", "md");
1127
+ /** 控件所在行,传0即可-----编辑器内部使用 */
1128
+ M(this, "tagRow", 0);
1129
+ /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
1130
+ M(this, "showTopBorder", 0);
1131
+ /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
1132
+ M(this, "group", 1);
1133
+ /** 控件是否符合标准的class配置(设计器用的) */
1134
+ M(this, "isSupportedClass", !0);
1135
+ /** 控件所在分组id(设计器用的) */
1136
+ M(this, "fieldSetId", "");
1137
+ }
1138
+ }
1139
+ function nt(n) {
1140
+ let e, t;
1141
+ const r = /* @__PURE__ */ new Map();
1142
+ let i = [];
1143
+ function a(c, o) {
1144
+ const m = c.split(" ").filter((h) => h.startsWith("col-"));
1145
+ if (m.length === 0) {
1146
+ o.isSupportedClass = !1;
1147
+ return;
1148
+ }
1149
+ let y = m.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), u = m.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), v = m.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), C = m.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
1150
+ y = y || "col-12", o.columnInSM = parseInt(y.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), u = u || "col-md-" + o.columnInSM, o.columnInMD = parseInt(u.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), v = v || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(v.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), C = C || "col-el-" + o.columnInLG, o.columnInEL = parseInt(C.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
1151
+ }
1152
+ function s(c, o, p, m = !1) {
1153
+ let y = !1;
1154
+ c.contents.forEach((u) => {
1155
+ if (u.type === "fieldset") {
1156
+ p += 1, s(u, o, p, !0), y = !0;
1157
+ return;
1158
+ }
1159
+ y && (p += 1, y = !1);
1160
+ const v = u.appearance && u.appearance.class, C = new tt();
1161
+ v ? a(v, C) : C.isSupportedClass = !1, C.label = u.label || u.id, C.id = u.id, C.group = p, m && (C.fieldSetId = c.id), t === u.id && (e = p), r.set(u.id, u), o.push(C);
1624
1162
  });
1625
1163
  }
1626
- function g(p, c) {
1627
- const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1628
- return z.has(p) ? z.get(p)(c) : u;
1164
+ function f(c) {
1165
+ const o = n.getComponentById(c);
1166
+ if (!o || !o.componentType || !o.componentType.startsWith("form"))
1167
+ return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1168
+ const p = n.selectNode(o, (m) => m.type === V["response-form"].type);
1169
+ return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
1170
+ }
1171
+ function d(c, o) {
1172
+ o = o || c.id;
1173
+ const { result: p, message: m, formNode: y } = f(o);
1174
+ if (!p)
1175
+ return { result: p, message: m };
1176
+ t = c.id, i = [], r.clear();
1177
+ const u = y.contents[0].type === V.fieldset.type ? 0 : 1;
1178
+ s(y, i, u);
1179
+ const v = i.find((h) => !h.isSupportedClass);
1180
+ return {
1181
+ defaultState: {
1182
+ defaultGroupNumber: e || 1,
1183
+ model: v ? "customize" : "standard"
1184
+ },
1185
+ importData: i
1186
+ };
1187
+ }
1188
+ function l(c, o) {
1189
+ o = o;
1190
+ const { result: p, formNode: m } = f(o);
1191
+ if (!p)
1192
+ return "";
1193
+ const y = [];
1194
+ return c.forEach((u) => {
1195
+ var h;
1196
+ const v = r.get(u.id), C = v.appearance && v.appearance.class;
1197
+ if (C) {
1198
+ const D = C.split(" ").filter((se) => !se.startsWith("col-")), b = "col-" + u.columnInSM, S = "col-md-" + u.columnInMD, w = "col-xl-" + u.columnInLG, E = "col-el-" + u.columnInEL, A = [b, S, w, E].concat(D);
1199
+ v.appearance.class = A.join(" ");
1200
+ }
1201
+ if (u.fieldSetId) {
1202
+ const g = m.contents.find((b) => b.id === u.fieldSetId), D = y.find((b) => b.id === u.fieldSetId);
1203
+ D ? (h = D.contents) == null || h.push(v) : (y.push(g), g.contents = [v]);
1204
+ } else
1205
+ y.push(v);
1206
+ }), m.contents = y, m.id;
1629
1207
  }
1630
- return h(), { getRuleValue: g };
1208
+ return {
1209
+ checkCanFindFormNode: f,
1210
+ checkCanOpenLayoutEditor: d,
1211
+ changeFormControlsByResponseLayoutConfig: l,
1212
+ getResonseFormLayoutConfig: s
1213
+ };
1631
1214
  }
1632
- function Pt(n, t) {
1633
- function e(y, a = null) {
1634
- if (a) return a;
1635
- const l = n.getComponentById(t);
1636
- return n.selectNode(l, (i) => i.id === y);
1637
- }
1638
- function r(y) {
1639
- const a = n.getComponentById(y);
1640
- return !(!a || !a.componentType || !a.componentType.startsWith("form"));
1641
- }
1642
- function o(y) {
1643
- const a = e(y.id), l = De(n), i = [];
1644
- l.getResonseFormLayoutConfig(a, i, 1);
1645
- const h = i.map((j) => j.columnInSM), g = i.map((j) => j.columnInMD), p = i.map((j) => j.columnInLG), c = i.map((j) => j.columnInEL), u = s(h) ? h[0] : 0, m = s(g) ? g[0] : 0, A = s(p) ? p[0] : 0, C = s(c) ? c[0] : 0;
1215
+ function rt(n, e) {
1216
+ function t(d, l = null) {
1217
+ if (l) return l;
1218
+ const c = n.getComponentById(e);
1219
+ return n.selectNode(c, (o) => o.id === d);
1220
+ }
1221
+ function r(d) {
1222
+ const l = n.getComponentById(d);
1223
+ return !(!l || !l.componentType || !l.componentType.startsWith("form"));
1224
+ }
1225
+ function i(d) {
1226
+ const l = t(d.id), c = nt(n), o = [];
1227
+ c.getResonseFormLayoutConfig(l, o, 1);
1228
+ const p = o.map((D) => D.columnInSM), m = o.map((D) => D.columnInMD), y = o.map((D) => D.columnInLG), u = o.map((D) => D.columnInEL), v = a(p) ? p[0] : 0, C = a(m) ? m[0] : 0, h = a(y) ? y[0] : 0, g = a(u) ? u[0] : 0;
1646
1229
  return {
1647
- uniqueColClassInSM: u,
1648
- uniqueColClassInMD: m,
1649
- uniqueColClassInLG: A,
1650
- uniqueColClassInEL: C
1230
+ uniqueColClassInSM: v,
1231
+ uniqueColClassInMD: C,
1232
+ uniqueColClassInLG: h,
1233
+ uniqueColClassInEL: g
1651
1234
  };
1652
1235
  }
1653
- function s(y) {
1654
- const a = new Set(y);
1655
- return Array.from(a).length === 1;
1236
+ function a(d) {
1237
+ const l = new Set(d);
1238
+ return Array.from(l).length === 1;
1656
1239
  }
1657
- function f(y, a, l) {
1658
- y = e(l, y), y.contents.forEach((i) => {
1659
- if (i.type === we.fieldset.type) {
1660
- f(i, a, i.id);
1240
+ function s(d, l, c) {
1241
+ d = t(c, d), d.contents.forEach((o) => {
1242
+ if (o.type === V.fieldset.type) {
1243
+ s(o, l, o.id);
1661
1244
  return;
1662
1245
  }
1663
- i.appearance || (i.appearance = {});
1664
- const h = i.appearance.class;
1665
- i.appearance.class = d(h, a);
1246
+ o.appearance || (o.appearance = {});
1247
+ const p = o.appearance.class;
1248
+ o.appearance.class = f(p, l);
1666
1249
  });
1667
1250
  }
1668
- function d(y, a) {
1669
- let l, i, h, g, p = [];
1670
- if (y) {
1671
- const j = y.split(" "), M = j.filter((b) => b.startsWith("col-"));
1672
- l = M.find((b) => /^col-([1-9]|10|11|12)$/.test(b)), i = M.find((b) => /^col-md-([1-9]|10|11|12)$/.test(b)), h = M.find((b) => /^col-xl-([1-9]|10|11|12)$/.test(b)), g = M.find((b) => /^col-el-([1-9]|10|11|12)$/.test(b)), p = j.filter((b) => !b.startsWith("col-"));
1251
+ function f(d, l) {
1252
+ let c, o, p, m, y = [];
1253
+ if (d) {
1254
+ const D = d.split(" "), b = D.filter((S) => S.startsWith("col-"));
1255
+ c = b.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), o = b.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = b.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = b.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), y = D.filter((S) => !S.startsWith("col-"));
1673
1256
  }
1674
- const c = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : l, u = a.uniqueColClassInMD ? "col-md-" + a.uniqueColClassInMD : i, m = a.uniqueColClassInLG ? "col-xl-" + a.uniqueColClassInLG : h, A = a.uniqueColClassInEL ? "col-el-" + a.uniqueColClassInEL : g;
1675
- return [c, u, m, A].concat(p).join(" ");
1257
+ const u = l.uniqueColClassInSM ? "col-" + l.uniqueColClassInSM : c, v = l.uniqueColClassInMD ? "col-md-" + l.uniqueColClassInMD : o, C = l.uniqueColClassInLG ? "col-xl-" + l.uniqueColClassInLG : p, h = l.uniqueColClassInEL ? "col-el-" + l.uniqueColClassInEL : m;
1258
+ return [u, v, C, h].concat(y).join(" ");
1676
1259
  }
1677
- return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: o, changeFormControlsByUnifiedLayoutConfig: f };
1260
+ return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: i, changeFormControlsByUnifiedLayoutConfig: s };
1678
1261
  }
1679
- class At extends Se {
1680
- constructor(t, e) {
1681
- super(t, e);
1262
+ class ot extends et {
1263
+ constructor(e, t) {
1264
+ super(e, t);
1682
1265
  }
1683
- getPropertyConfig(t, e) {
1266
+ getPropertyConfig(e, t) {
1684
1267
  var r = this;
1685
- this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
1686
- const { checkIsInFormComponent: o, assembleUnifiedLayoutContext: s, changeFormControlsByUnifiedLayoutConfig: f } = Pt(this.formSchemaUtils, this.componentId), d = this.getAppearanceConfig(t);
1687
- return d.properties.unifiedLayout = {
1268
+ this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
1269
+ const { checkIsInFormComponent: i, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s } = rt(this.formSchemaUtils, this.componentId), f = this.getAppearanceConfig(e);
1270
+ return f.properties.unifiedLayout = {
1688
1271
  title: "统一布局配置",
1689
1272
  description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
1690
- visible: o(this.componentId),
1273
+ visible: i(this.componentId),
1691
1274
  refreshPanelAfterChanged: !0,
1692
1275
  editor: {
1693
1276
  type: "response-form-layout-setting",
1694
- initialState: s(t)
1277
+ initialState: a(e)
1695
1278
  }
1696
- }, d.setPropertyRelates = function(y, a) {
1697
- if (y)
1698
- switch (y && y.propertyID) {
1279
+ }, f.setPropertyRelates = function(d, l) {
1280
+ if (d)
1281
+ switch (d && d.propertyID) {
1699
1282
  case "unifiedLayout": {
1700
- f(null, y.propertyValue, t.id), r.updateElementByParentContainer(t.id, e);
1283
+ s(null, d.propertyValue, e.id), r.updateElementByParentContainer(e.id, t);
1701
1284
  break;
1702
1285
  }
1703
1286
  }
1704
- }, this.propertyConfig.categories.appearance = d, this.propertyConfig;
1287
+ }, this.propertyConfig.categories.appearance = f, this.propertyConfig;
1705
1288
  }
1706
1289
  }
1707
- function Tt(n, t) {
1708
- var E;
1709
- const e = n.schema, r = (E = n.parent) == null ? void 0 : E.schema, o = jt(), s = w(!1), f = w(!1);
1710
- let d = !0, y = !1, a, l = !1;
1711
- function i(v) {
1712
- return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
1713
- }
1714
- function h(v) {
1715
- return !(!dt().basalDragulaRuleForContainer(v) || !d || !i(v));
1716
- }
1717
- function g() {
1718
- s.value = !1, f.value = !1;
1719
- const v = e, P = v.appearance && v.appearance.class || "", T = P.split(" "), S = v.contents || [], L = S.length ? S[0] : null, F = L && L.appearance ? L.appearance.class : "", k = F ? F.split(" ") : [], B = S.length ? S.reduce((K, V) => {
1720
- const ee = V && V.appearance ? V.appearance.class : "", Ce = ee ? ee.split(" ") : [];
1721
- return K.push(...Ce), K;
1722
- }, []) : [], x = r, q = x && x.appearance && x.appearance.class || "", be = q ? q.split(" ") : [];
1723
- a = {
1724
- componentClass: P,
1725
- componentClassList: T,
1726
- childContents: S,
1727
- firstChildContent: L,
1728
- firstChildClass: F,
1729
- firstChildClassList: k,
1730
- parent: x,
1731
- parentClass: q,
1732
- parentClassList: be,
1733
- children: S,
1734
- childrenClassList: B
1735
- };
1736
- const { canAccept: me, fixed: ve, hidePadding: ge } = o.getRuleValue(T[0], a);
1737
- return d = me, y = ge, l = ve, !0;
1290
+ function at(n, e) {
1291
+ const t = n.schema, r = new He(), { canMove: i, canAccept: a, canDelete: s } = r.getTemplateRule(n, e);
1292
+ function f(h) {
1293
+ const g = r.getComponentContext(n);
1294
+ return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
1738
1295
  }
1739
- function p(v) {
1740
- Pe();
1296
+ function d(h) {
1297
+ return !(!Ke().basalDragulaRuleForContainer(h, e) || !a || !f(h));
1298
+ }
1299
+ function l(h) {
1300
+ pe();
1741
1301
  }
1742
1302
  function c() {
1743
- return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1303
+ return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1744
1304
  }
1745
- function u(v, P) {
1746
- const T = e;
1747
- if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1748
- const { label: F } = v, k = $("form-group");
1749
- return k.editor = P, k.label = F, m(k), delete k.editor.id, delete k.editor.binding, delete k.editor.appearance, delete k.editor.visible, k;
1305
+ function o(h, g) {
1306
+ const D = t;
1307
+ if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
1308
+ const { label: w } = h, E = q("form-group");
1309
+ return E.editor = g, E.label = w, p(E), delete E.editor.id, delete E.editor.binding, delete E.editor.appearance, delete E.editor.visible, E;
1750
1310
  }
1751
- return P;
1752
- }
1753
- function m(v) {
1754
- const P = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1755
- if (P && P.schema && P.schema.componentType) {
1756
- const T = P.schema.formColumns;
1757
- let S = A(T);
1758
- S = t.formSchemaUtils.getControlClassByFormUnifiedLayout(S, "", n.schema), v.appearance || (v.appearance = {}), v.appearance.class = S;
1311
+ return g;
1312
+ }
1313
+ function p(h) {
1314
+ const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1315
+ if (g && g.schema && g.schema.componentType) {
1316
+ const D = g.schema.formColumns;
1317
+ let b = m(D);
1318
+ b = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(b, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = b;
1759
1319
  }
1760
1320
  }
1761
- function A(v) {
1762
- let P = "";
1763
- switch (v) {
1321
+ function m(h) {
1322
+ let g = "";
1323
+ switch (h) {
1764
1324
  case 1: {
1765
- P = "col-12 col-md-12 col-xl-12 col-el-12";
1325
+ g = "col-12";
1766
1326
  break;
1767
1327
  }
1768
1328
  case 2: {
1769
- P = "col-12 col-md-6 col-xl-6 col-el-6";
1329
+ g = "col-12 col-md-6 col-xl-6 col-el-6";
1770
1330
  break;
1771
1331
  }
1772
1332
  case 3: {
1773
- P = "col-12 col-md-6 col-xl-4 col-el-4";
1333
+ g = "col-12 col-md-6 col-xl-4 col-el-4";
1774
1334
  break;
1775
1335
  }
1776
1336
  case 4: {
1777
- P = "col-12 col-md-6 col-xl-3 col-el-2";
1337
+ g = "col-12 col-md-6 col-xl-3 col-el-2";
1778
1338
  break;
1779
1339
  }
1780
1340
  }
1781
- return P;
1782
- }
1783
- function C(v, P, T) {
1784
- const S = e;
1785
- if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
1786
- const k = String(v.innerText), B = $("form-group");
1787
- return B.editor = T, B.label = k, B;
1788
- }
1789
- return T;
1341
+ return g;
1790
1342
  }
1791
- function j() {
1792
- return !l;
1343
+ function y() {
1344
+ return i;
1793
1345
  }
1794
- function M() {
1795
- return !l;
1346
+ function u() {
1347
+ return s;
1796
1348
  }
1797
- function b() {
1798
- return y;
1349
+ function v() {
1350
+ return !1;
1799
1351
  }
1800
- function D(v) {
1801
- return new At(v, t).getPropertyConfig(e, n.componentInstance.value);
1352
+ function C(h) {
1353
+ return new ot(h, e).getPropertyConfig(t, n.componentInstance.value);
1802
1354
  }
1803
1355
  return {
1804
- canAccepts: h,
1805
- checkCanDeleteComponent: M,
1806
- checkCanMoveComponent: j,
1356
+ canAccepts: d,
1357
+ checkCanDeleteComponent: u,
1358
+ checkCanMoveComponent: y,
1807
1359
  getStyles: c,
1808
- getPropsConfig: D,
1809
- hideNestedPaddingInDesginerView: b,
1810
- onAcceptNewChildElement: C,
1811
- onAcceptMovedChildElement: p,
1812
- resolveComponentContext: g,
1813
- onResolveNewComponentSchema: u,
1814
- triggerBelongedComponentToMoveWhenMoved: s,
1815
- triggerBelongedComponentToDeleteWhenDeleted: f
1360
+ getPropsConfig: C,
1361
+ hideNestedPaddingInDesginerView: v,
1362
+ onAcceptMovedChildElement: l,
1363
+ onResolveNewComponentSchema: o
1816
1364
  };
1817
1365
  }
1818
- const Et = /* @__PURE__ */ ce({
1366
+ const it = /* @__PURE__ */ K({
1819
1367
  name: "FNavDesign",
1820
- props: R,
1368
+ props: z,
1821
1369
  emits: ["nav"],
1822
- setup(n, t) {
1823
- var p;
1824
- const e = w(n.activeNavId), r = w(n.navData), o = w(n.horizontal);
1825
- w(n.navPicking);
1826
- const s = w(), f = Ae("design-item-context"), d = Tt(f.schema, (p = f.parent) == null ? void 0 : p.schema), y = ft(s, f, d);
1827
- Te(() => {
1828
- s.value.componentInstance = y;
1829
- }), t.expose(y.value);
1830
- const a = _({
1370
+ setup(n, e) {
1371
+ var y;
1372
+ const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
1373
+ L(n.navPicking);
1374
+ const a = L(), s = fe("design-item-context"), f = at(s.schema, (y = s.parent) == null ? void 0 : y.schema), d = Re(a, s, f);
1375
+ de(() => {
1376
+ a.value.componentInstance = d;
1377
+ }), e.expose(d.value);
1378
+ const l = P({
1831
1379
  get() {
1832
1380
  return r.value;
1833
1381
  },
1834
- set(c) {
1835
- r.value = c, h();
1382
+ set(u) {
1383
+ r.value = u, p();
1836
1384
  }
1837
- }), l = _({
1385
+ }), c = P({
1838
1386
  get() {
1839
- return e.value;
1387
+ return t.value;
1840
1388
  },
1841
- set(c) {
1842
- if (e.value = c, e.value && a && a.value.length) {
1843
- const u = a.value.find((m) => m.id === e.value);
1844
- u && t.emit("nav", u);
1389
+ set(u) {
1390
+ if (t.value = u, t.value && l && l.value.length) {
1391
+ const v = l.value.find((C) => C.id === t.value);
1392
+ v && e.emit("nav", v);
1845
1393
  }
1846
1394
  }
1847
- }), i = _({
1848
- set(c) {
1849
- o.value = c;
1395
+ }), o = P({
1396
+ set(u) {
1397
+ i.value = u;
1850
1398
  },
1851
1399
  get() {
1852
- return o.value;
1400
+ return i.value;
1853
1401
  }
1854
1402
  });
1855
- function h() {
1856
- if (a.value && a.value.length && !e.value) {
1857
- const c = a.value.find((u) => !u.disable);
1858
- c && (e.value = c.id);
1403
+ function p() {
1404
+ if (l.value && l.value.length && !t.value) {
1405
+ const u = l.value.find((v) => !v.disable);
1406
+ u && (t.value = u.id);
1859
1407
  }
1860
1408
  }
1861
- function g(c) {
1862
- c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
1409
+ function m(u) {
1410
+ u.disable || u.id === t.value || (t.value = u.id, e.emit("nav", u));
1863
1411
  }
1864
1412
  return () => {
1865
- var c;
1866
- return N("div", {
1867
- ref: s,
1413
+ var u;
1414
+ return T("div", {
1415
+ ref: a,
1868
1416
  class: ["farris-nav", {
1869
- "farris-nav-vertical": !i.value
1417
+ "farris-nav-vertical": !o.value
1870
1418
  }]
1871
- }, [(c = a.value) == null ? void 0 : c.map((u) => N("div", {
1419
+ }, [(u = l.value) == null ? void 0 : u.map((v) => T("div", {
1872
1420
  class: ["farris-nav-item", {
1873
- active: u.id === l.value
1421
+ active: v.id === c.value
1874
1422
  }, {
1875
- disabled: u.disable
1423
+ disabled: v.disable
1876
1424
  }],
1877
- onClick: () => g(u)
1878
- }, [N("div", {
1425
+ onClick: () => m(v)
1426
+ }, [T("div", {
1879
1427
  class: "farris-nav-item-link"
1880
- }, [N("span", {
1428
+ }, [T("span", {
1881
1429
  class: "farris-nav-item-link-text"
1882
- }, [u.text, u.num && N("div", {
1430
+ }, [v.text, v.num && T("div", {
1883
1431
  class: "farris-nav-item-tag"
1884
- }, [u.num <= n.maxNum && N("span", {
1432
+ }, [v.num <= n.maxNum && T("span", {
1885
1433
  class: "tag-text"
1886
- }, [u.num]), u.num > n.maxNum && N("span", {
1434
+ }, [v.num]), v.num > n.maxNum && T("span", {
1887
1435
  class: "tag-text"
1888
- }, [n.maxNum, le("+")])])])])]))]);
1436
+ }, [n.maxNum, H("+")])])])])]))]);
1889
1437
  };
1890
1438
  }
1891
- }), kt = {
1439
+ }), pt = {
1892
1440
  install(n) {
1893
- n.component(G.name, G);
1441
+ n.component(U.name, U);
1894
1442
  },
1895
- register(n, t, e, r) {
1896
- n.nav = G, t.nav = ie;
1443
+ register(n, e, t, r) {
1444
+ n.nav = U, e.nav = R;
1897
1445
  },
1898
- registerDesigner(n, t, e) {
1899
- n.nav = Et, t.nav = ie;
1446
+ registerDesigner(n, e, t) {
1447
+ n.nav = it, e.nav = R;
1900
1448
  }
1901
1449
  };
1902
1450
  export {
1903
- G as FNav,
1904
- kt as default,
1905
- R as navProps,
1906
- ie as propsResolver
1451
+ U as FNav,
1452
+ pt as default,
1453
+ z as navProps,
1454
+ R as propsResolver
1907
1455
  };