@farris/ui-vue 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,5 +1,5 @@
1
- import { defineComponent as ce, ref as S, watch as ge, computed as F, createVNode as D, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Te } from "vue";
2
- import { cloneDeep as Pe } from "lodash-es";
1
+ import { defineComponent as ce, ref as E, watch as ge, computed as F, createVNode as w, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Pe } from "vue";
2
+ import { cloneDeep as Ae } from "lodash-es";
3
3
  var Y = function(n, t) {
4
4
  return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
5
5
  e.__proto__ = r;
@@ -29,16 +29,16 @@ function ee(n) {
29
29
  function G(n, t) {
30
30
  var e = typeof Symbol == "function" && n[Symbol.iterator];
31
31
  if (!e) return n;
32
- var r = e.call(n), o, a = [], f;
32
+ var r = e.call(n), o, a = [], l;
33
33
  try {
34
34
  for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
35
- } catch (h) {
36
- f = { error: h };
35
+ } catch (d) {
36
+ l = { error: d };
37
37
  } finally {
38
38
  try {
39
39
  o && !o.done && (e = r.return) && e.call(r);
40
40
  } finally {
41
- if (f) throw f.error;
41
+ if (l) throw l.error;
42
42
  }
43
43
  }
44
44
  return a;
@@ -51,13 +51,13 @@ function J(n, t, e) {
51
51
  function O(n) {
52
52
  return typeof n == "function";
53
53
  }
54
- function Ae(n) {
54
+ function Te(n) {
55
55
  var t = function(r) {
56
56
  Error.call(r), r.stack = new Error().stack;
57
57
  }, e = n(t);
58
58
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
59
59
  }
60
- var W = Ae(function(n) {
60
+ var U = Te(function(n) {
61
61
  return function(e) {
62
62
  n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
63
63
  ` + e.map(function(r, o) {
@@ -80,56 +80,56 @@ var X = function() {
80
80
  var t, e, r, o, a;
81
81
  if (!this.closed) {
82
82
  this.closed = !0;
83
- var f = this._parentage;
84
- if (f)
85
- if (this._parentage = null, Array.isArray(f))
83
+ var l = this._parentage;
84
+ if (l)
85
+ if (this._parentage = null, Array.isArray(l))
86
86
  try {
87
- for (var h = ee(f), v = h.next(); !v.done; v = h.next()) {
88
- var p = v.value;
89
- p.remove(this);
87
+ for (var d = ee(l), v = d.next(); !v.done; v = d.next()) {
88
+ var u = v.value;
89
+ u.remove(this);
90
90
  }
91
91
  } catch (c) {
92
92
  t = { error: c };
93
93
  } finally {
94
94
  try {
95
- v && !v.done && (e = h.return) && e.call(h);
95
+ v && !v.done && (e = d.return) && e.call(d);
96
96
  } finally {
97
97
  if (t) throw t.error;
98
98
  }
99
99
  }
100
100
  else
101
- f.remove(this);
102
- var l = this.initialTeardown;
103
- if (O(l))
101
+ l.remove(this);
102
+ var p = this.initialTeardown;
103
+ if (O(p))
104
104
  try {
105
- l();
105
+ p();
106
106
  } catch (c) {
107
- a = c instanceof W ? c.errors : [c];
107
+ a = c instanceof U ? c.errors : [c];
108
108
  }
109
- var u = this._finalizers;
110
- if (u) {
109
+ var f = this._finalizers;
110
+ if (f) {
111
111
  this._finalizers = null;
112
112
  try {
113
- for (var y = ee(u), g = y.next(); !g.done; g = y.next()) {
114
- var i = g.value;
113
+ for (var b = ee(f), j = b.next(); !j.done; j = b.next()) {
114
+ var i = j.value;
115
115
  try {
116
116
  ne(i);
117
117
  } catch (c) {
118
- a = a ?? [], c instanceof W ? a = J(J([], G(a)), G(c.errors)) : a.push(c);
118
+ a = a ?? [], c instanceof U ? a = J(J([], G(a)), G(c.errors)) : a.push(c);
119
119
  }
120
120
  }
121
121
  } catch (c) {
122
122
  r = { error: c };
123
123
  } finally {
124
124
  try {
125
- g && !g.done && (o = y.return) && o.call(y);
125
+ j && !j.done && (o = b.return) && o.call(b);
126
126
  } finally {
127
127
  if (r) throw r.error;
128
128
  }
129
129
  }
130
130
  }
131
131
  if (a)
132
- throw new W(a);
132
+ throw new U(a);
133
133
  }
134
134
  }, n.prototype.add = function(t) {
135
135
  var e;
@@ -162,13 +162,13 @@ var X = function() {
162
162
  }(), n;
163
163
  }();
164
164
  X.EMPTY;
165
- function le(n) {
165
+ function pe(n) {
166
166
  return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
167
167
  }
168
168
  function ne(n) {
169
169
  O(n) ? n() : n.unsubscribe();
170
170
  }
171
- var pe = {
171
+ var le = {
172
172
  onUnhandledError: null,
173
173
  onStoppedNotification: null,
174
174
  Promise: void 0,
@@ -199,7 +199,7 @@ var ue = function(n) {
199
199
  se(t, n);
200
200
  function t(e) {
201
201
  var r = n.call(this) || this;
202
- return r.isStopped = !1, e ? (r.destination = e, le(e) && e.add(r)) : r.destination = ke, r;
202
+ return r.isStopped = !1, e ? (r.destination = e, pe(e) && e.add(r)) : r.destination = ke, r;
203
203
  }
204
204
  return t.create = function(e, r, o) {
205
205
  return new Q(e, r, o);
@@ -227,7 +227,7 @@ var ue = function(n) {
227
227
  }
228
228
  }, t;
229
229
  }(X), we = Function.prototype.bind;
230
- function U(n, t) {
230
+ function q(n, t) {
231
231
  return we.call(n, t);
232
232
  }
233
233
  var Ne = function() {
@@ -264,24 +264,24 @@ var Ne = function() {
264
264
  }(), Q = function(n) {
265
265
  se(t, n);
266
266
  function t(e, r, o) {
267
- var a = n.call(this) || this, f;
267
+ var a = n.call(this) || this, l;
268
268
  if (O(e) || !e)
269
- f = {
269
+ l = {
270
270
  next: e ?? void 0,
271
271
  error: r ?? void 0,
272
272
  complete: o ?? void 0
273
273
  };
274
274
  else {
275
- var h;
276
- a && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
275
+ var d;
276
+ a && le.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
277
277
  return a.unsubscribe();
278
- }, f = {
279
- next: e.next && U(e.next, h),
280
- error: e.error && U(e.error, h),
281
- complete: e.complete && U(e.complete, h)
282
- }) : f = e;
278
+ }, l = {
279
+ next: e.next && q(e.next, d),
280
+ error: e.error && q(e.error, d),
281
+ complete: e.complete && q(e.complete, d)
282
+ }) : l = e;
283
283
  }
284
- return a.destination = new Ne(f), a;
284
+ return a.destination = new Ne(l), a;
285
285
  }
286
286
  return t;
287
287
  }(ue);
@@ -309,7 +309,7 @@ function Fe(n) {
309
309
  }, e);
310
310
  };
311
311
  }
312
- var $e = function() {
312
+ var Le = function() {
313
313
  function n(t) {
314
314
  t && (this._subscribe = t);
315
315
  }
@@ -319,8 +319,8 @@ var $e = function() {
319
319
  }, n.prototype.subscribe = function(t, e, r) {
320
320
  var o = this, a = xe(t) ? t : new Q(t, e, r);
321
321
  return De(function() {
322
- var f = o, h = f.operator, v = f.source;
323
- a.add(h ? h.call(a, v) : v ? o._subscribe(a) : o._trySubscribe(a));
322
+ var l = o, d = l.operator, v = l.source;
323
+ a.add(d ? d.call(a, v) : v ? o._subscribe(a) : o._trySubscribe(a));
324
324
  }), a;
325
325
  }, n.prototype._trySubscribe = function(t) {
326
326
  try {
@@ -331,18 +331,18 @@ var $e = function() {
331
331
  }, n.prototype.forEach = function(t, e) {
332
332
  var r = this;
333
333
  return e = oe(e), new e(function(o, a) {
334
- var f = new Q({
335
- next: function(h) {
334
+ var l = new Q({
335
+ next: function(d) {
336
336
  try {
337
- t(h);
337
+ t(d);
338
338
  } catch (v) {
339
- a(v), f.unsubscribe();
339
+ a(v), l.unsubscribe();
340
340
  }
341
341
  },
342
342
  error: a,
343
343
  complete: o
344
344
  });
345
- r.subscribe(f);
345
+ r.subscribe(l);
346
346
  });
347
347
  }, n.prototype._subscribe = function(t) {
348
348
  var e;
@@ -357,10 +357,10 @@ var $e = function() {
357
357
  var e = this;
358
358
  return t = oe(t), new t(function(r, o) {
359
359
  var a;
360
- e.subscribe(function(f) {
361
- return a = f;
362
- }, function(f) {
363
- return o(f);
360
+ e.subscribe(function(l) {
361
+ return a = l;
362
+ }, function(l) {
363
+ return o(l);
364
364
  }, function() {
365
365
  return r(a);
366
366
  });
@@ -371,25 +371,25 @@ var $e = function() {
371
371
  }();
372
372
  function oe(n) {
373
373
  var t;
374
- return (t = n ?? pe.Promise) !== null && t !== void 0 ? t : Promise;
374
+ return (t = n ?? le.Promise) !== null && t !== void 0 ? t : Promise;
375
375
  }
376
- function Le(n) {
376
+ function $e(n) {
377
377
  return n && O(n.next) && O(n.error) && O(n.complete);
378
378
  }
379
379
  function xe(n) {
380
- return n && n instanceof ue || Le(n) && le(n);
380
+ return n && n instanceof ue || $e(n) && pe(n);
381
381
  }
382
382
  const fe = {}, de = {};
383
383
  function Z(n) {
384
- const { properties: t, title: e } = n, r = Object.keys(t).reduce((o, a) => (o[a] = t[a].type === "object" && t[a].properties ? Z(t[a]) : Pe(t[a].default), o), {});
385
- return r.id = `${e}-${Date.now()}`, r;
384
+ const { properties: t, title: e, ignore: r } = n, o = r && Array.isArray(r), a = Object.keys(t).reduce((l, d) => ((!o || !r.find((v) => v == d)) && (l[d] = t[d].type === "object" && t[d].properties ? Z(t[d]) : Ae(t[d].default)), l), {});
385
+ return (!o || !r.find((l) => l == "id")) && (a.id = `${e}-${Date.now()}`), a;
386
386
  }
387
- function L(n, t = {}) {
388
- const e = fe[n];
389
- if (e) {
390
- let r = Z(e);
391
- const o = de[n];
392
- return r = o ? o({ getSchemaByType: L }, r, t) : r, r;
387
+ function $(n, t = {}, e) {
388
+ const r = fe[n];
389
+ if (r) {
390
+ let o = Z(r);
391
+ const a = de[n];
392
+ return o = a ? a({ getSchemaByType: $ }, o, t, e) : o, o;
393
393
  }
394
394
  return null;
395
395
  }
@@ -404,78 +404,78 @@ function Ve(n, t) {
404
404
  if (typeof a == "string")
405
405
  r[a] = n[o];
406
406
  else {
407
- const f = a(o, n[o], n);
408
- Object.assign(r, f);
407
+ const l = a(o, n[o], n);
408
+ Object.assign(r, l);
409
409
  }
410
410
  } else
411
411
  r[o] = n[o];
412
412
  return r;
413
413
  }, {});
414
414
  }
415
- function qe(n, t, e = /* @__PURE__ */ new Map()) {
415
+ function We(n, t, e = /* @__PURE__ */ new Map()) {
416
416
  const r = Be(n, t);
417
417
  return Ve(r, e);
418
418
  }
419
- function We(n = {}) {
420
- function t(p, l, u, y) {
421
- if (typeof u == "number")
422
- return y[p].length === u;
423
- if (typeof u == "object") {
424
- const g = Object.keys(u)[0], i = u[g];
425
- if (g === "not")
426
- return Number(y[p].length) !== Number(i);
427
- if (g === "moreThan")
428
- return Number(y[p].length) >= Number(i);
429
- if (g === "lessThan")
430
- return Number(y[p].length) <= Number(i);
419
+ function Ue(n = {}) {
420
+ function t(u, p, f, b) {
421
+ if (typeof f == "number")
422
+ return b[u].length === f;
423
+ if (typeof f == "object") {
424
+ const j = Object.keys(f)[0], i = f[j];
425
+ if (j === "not")
426
+ return Number(b[u].length) !== Number(i);
427
+ if (j === "moreThan")
428
+ return Number(b[u].length) >= Number(i);
429
+ if (j === "lessThan")
430
+ return Number(b[u].length) <= Number(i);
431
431
  }
432
432
  return !1;
433
433
  }
434
- function e(p, l, u, y) {
435
- return y[p] && y[p].propertyValue && String(y[p].propertyValue.value) === String(u);
434
+ function e(u, p, f, b) {
435
+ return b[u] && b[u].propertyValue && String(b[u].propertyValue.value) === String(f);
436
436
  }
437
437
  const r = /* @__PURE__ */ new Map([
438
438
  ["length", t],
439
439
  ["getProperty", e]
440
440
  ]);
441
- Object.keys(n).reduce((p, l) => (p.set(l, n[l]), p), r);
442
- function o(p, l) {
443
- const u = p;
444
- return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: p, value: !!l }] : typeof l == "object" ? Object.keys(l).map((y) => {
445
- if (y === "length")
446
- return { target: u, operator: "length", param: null, value: l[y] };
447
- const g = y, i = l[y];
448
- return { target: u, operator: "getProperty", param: g, value: i };
441
+ Object.keys(n).reduce((u, p) => (u.set(p, n[p]), u), r);
442
+ function o(u, p) {
443
+ const f = u;
444
+ return typeof p == "number" ? [{ target: f, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: f, operator: "getProperty", param: u, value: !!p }] : typeof p == "object" ? Object.keys(p).map((b) => {
445
+ if (b === "length")
446
+ return { target: f, operator: "length", param: null, value: p[b] };
447
+ const j = b, i = p[b];
448
+ return { target: f, operator: "getProperty", param: j, value: i };
449
449
  }) : [];
450
450
  }
451
- function a(p) {
452
- return Object.keys(p).reduce((u, y) => {
453
- const g = o(y, p[y]);
454
- return u.push(...g), u;
451
+ function a(u) {
452
+ return Object.keys(u).reduce((f, b) => {
453
+ const j = o(b, u[b]);
454
+ return f.push(...j), f;
455
455
  }, []);
456
456
  }
457
- function f(p, l) {
458
- if (r.has(p.operator)) {
459
- const u = r.get(p.operator);
460
- return u && u(p.target, p.param, p.value, l) || !1;
457
+ function l(u, p) {
458
+ if (r.has(u.operator)) {
459
+ const f = r.get(u.operator);
460
+ return f && f(u.target, u.param, u.value, p) || !1;
461
461
  }
462
462
  return !1;
463
463
  }
464
- function h(p, l) {
465
- return a(p).reduce((g, i) => g && f(i, l), !0);
464
+ function d(u, p) {
465
+ return a(u).reduce((j, i) => j && l(i, p), !0);
466
466
  }
467
- function v(p, l) {
468
- const u = Object.keys(p), y = u.includes("allOf"), g = u.includes("anyOf"), i = y || g, b = (i ? p[i ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((C) => h(C, l));
469
- return y ? !b.includes(!1) : b.includes(!0);
467
+ function v(u, p) {
468
+ const f = Object.keys(u), b = f.includes("allOf"), j = f.includes("anyOf"), i = b || j, h = (i ? u[i ? b ? "allOf" : "anyOf" : "allOf"] : [u]).map((C) => d(C, p));
469
+ return b ? !h.includes(!1) : h.includes(!0);
470
470
  }
471
471
  return { parseValueSchema: v };
472
472
  }
473
- const Ue = {}, ze = {};
474
- We();
475
- function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h, o = {}, a = (f) => f) {
476
- return fe[t.title] = t, de[t.title] = r, Ue[t.title] = o, ze[t.title] = a, (f = {}) => {
477
- const h = qe(f, t, e), v = Object.keys(n).reduce((p, l) => (p[l] = n[l].default, p), {});
478
- return Object.assign(v, h);
473
+ const qe = {}, ze = {};
474
+ Ue();
475
+ function He(n, t, e = /* @__PURE__ */ new Map(), r = (l, d, v) => d, o = {}, a = (l) => l) {
476
+ return fe[t.title] = t, de[t.title] = r, qe[t.title] = o, ze[t.title] = a, (l = {}) => {
477
+ const d = We(l, t, e), v = Object.keys(n).reduce((u, p) => (u[p] = n[p].default, u), {});
478
+ return Object.assign(v, d);
479
479
  };
480
480
  }
481
481
  function Ye(n, t) {
@@ -710,36 +710,36 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
710
710
  /** 当前激活的id */
711
711
  activeNavId: { Type: String, default: "1" },
712
712
  /** nav切换前事件 */
713
- navPicking: { Type: Function, default: (n) => $e }
713
+ navPicking: { Type: Function, default: (n) => Le }
714
714
  }, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
715
715
  name: "FNav",
716
716
  props: R,
717
717
  emits: ["nav", "update:activeNavId"],
718
718
  setup(n, t) {
719
- const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
720
- S(n.navPicking), ge(() => n.activeNavId, (l, u) => {
721
- l !== u && (e.value = l);
719
+ const e = E(n.activeNavId), r = E(n.navData), o = E(n.horizontal);
720
+ E(n.navPicking), ge(() => n.activeNavId, (p, f) => {
721
+ p !== f && (e.value = p);
722
722
  });
723
723
  const a = F({
724
724
  get() {
725
725
  return r.value;
726
726
  },
727
- set(l) {
728
- r.value = l, v();
727
+ set(p) {
728
+ r.value = p, v();
729
729
  }
730
- }), f = F({
730
+ }), l = F({
731
731
  get() {
732
732
  return e.value;
733
733
  },
734
- set(l) {
735
- if (e.value = l, e.value && a && a.value.length) {
736
- const u = a.value.find((y) => y.id === e.value);
737
- u && t.emit("nav", u);
734
+ set(p) {
735
+ if (e.value = p, e.value && a && a.value.length) {
736
+ const f = a.value.find((b) => b.id === e.value);
737
+ f && t.emit("nav", f);
738
738
  }
739
739
  }
740
- }), h = F({
741
- set(l) {
742
- o.value = l;
740
+ }), d = F({
741
+ set(p) {
742
+ o.value = p;
743
743
  },
744
744
  get() {
745
745
  return o.value;
@@ -747,35 +747,35 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
747
747
  });
748
748
  function v() {
749
749
  if (a.value && a.value.length && !e.value) {
750
- const l = a.value.find((u) => !u.disable);
751
- l && (e.value = l.id);
750
+ const p = a.value.find((f) => !f.disable);
751
+ p && (e.value = p.id);
752
752
  }
753
753
  }
754
- function p(l) {
755
- l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
754
+ function u(p) {
755
+ p.disable || p.id === e.value || (e.value = p.id, t.emit("update:activeNavId", p.id), t.emit("nav", p));
756
756
  }
757
757
  return () => {
758
- var l;
759
- return D("div", {
758
+ var p;
759
+ return w("div", {
760
760
  class: ["farris-nav", {
761
- "farris-nav-vertical": !h.value
761
+ "farris-nav-vertical": !d.value
762
762
  }]
763
- }, [(l = a.value) == null ? void 0 : l.map((u) => D("div", {
763
+ }, [(p = a.value) == null ? void 0 : p.map((f) => w("div", {
764
764
  class: ["farris-nav-item", {
765
- active: u.id === f.value
765
+ active: f.id === l.value
766
766
  }, {
767
- disabled: u.disable
767
+ disabled: f.disable
768
768
  }],
769
- onClick: () => p(u)
770
- }, [D("div", {
769
+ onClick: () => u(f)
770
+ }, [w("div", {
771
771
  class: "farris-nav-item-link"
772
- }, [D("span", {
772
+ }, [w("span", {
773
773
  class: "farris-nav-item-link-text"
774
- }, [typeof u.text == "function" ? u.text() : u.text, u.num && D("div", {
774
+ }, [typeof f.text == "function" ? f.text() : f.text, f.num && w("div", {
775
775
  class: "farris-nav-item-tag"
776
- }, [u.num <= n.maxNum && D("span", {
776
+ }, [f.num <= n.maxNum && w("span", {
777
777
  class: "tag-text"
778
- }, [u.num]), u.num > n.maxNum && D("span", {
778
+ }, [f.num]), f.num > n.maxNum && w("span", {
779
779
  class: "tag-text"
780
780
  }, [n.maxNum, ie("+")])])])])]))]);
781
781
  };
@@ -787,32 +787,32 @@ function it(n, t, e) {
787
787
  e != null && e.resolveComponentContext && e.resolveComponentContext();
788
788
  }
789
789
  r();
790
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", f = S();
791
- function h() {
790
+ const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", l = E();
791
+ function d() {
792
792
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
793
793
  }
794
794
  function v() {
795
795
  return !1;
796
796
  }
797
- function p() {
797
+ function u() {
798
798
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
799
799
  }
800
- function l() {
800
+ function p() {
801
801
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
802
802
  }
803
- function u(m) {
803
+ function f(m) {
804
804
  if (!m || !m.value)
805
805
  return null;
806
806
  if (m.value.schema && m.value.schema.type === "component")
807
807
  return m.value;
808
- const A = S(m == null ? void 0 : m.value.parent), d = u(A);
809
- return d || null;
808
+ const T = E(m == null ? void 0 : m.value.parent), y = f(T);
809
+ return y || null;
810
810
  }
811
- function y(m = t) {
812
- const { componentInstance: A, designerItemElementRef: d } = m;
813
- return !A || !A.value ? null : A.value.canMove ? d : y(m.parent);
811
+ function b(m = t) {
812
+ const { componentInstance: T, designerItemElementRef: y } = m;
813
+ return !T || !T.value ? null : T.value.canMove ? y : b(m.parent);
814
814
  }
815
- function g(m) {
815
+ function j(m) {
816
816
  return !!e && e.canAccepts(m);
817
817
  }
818
818
  function i() {
@@ -820,55 +820,55 @@ function it(n, t, e) {
820
820
  }
821
821
  function c() {
822
822
  }
823
- function s(m, A) {
824
- A && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(A);
823
+ function s(m, T) {
824
+ T && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(T);
825
825
  }
826
- function b(m) {
827
- const { componentType: A } = m;
828
- let d = L(A, m);
829
- e && e.onResolveNewComponentSchema && (d = e.onResolveNewComponentSchema(m, d));
830
- const j = A.toLowerCase().replace("-", "_");
831
- return d && !d.id && d.type === A && (d.id = `${j}_${Math.random().toString().slice(2, 6)}`), d;
826
+ function h(m, T) {
827
+ const { componentType: y } = m;
828
+ let g = $(y, m, T);
829
+ e && e.onResolveNewComponentSchema && (g = e.onResolveNewComponentSchema(m, g));
830
+ const S = y.toLowerCase().replace("-", "_");
831
+ return g && !g.id && g.type === y && (g.id = `${S}_${Math.random().toString().slice(2, 6)}`), g;
832
832
  }
833
- function P(m, A) {
834
- const d = String(m.getAttribute("data-controltype")), j = m.getAttribute("data-feature"), w = j ? JSON.parse(j) : {};
835
- w.parentComponentInstance = f.value;
836
- let T = L(d, w);
837
- e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(m, A, T));
838
- const k = d.toLowerCase().replace("-", "_");
839
- return T && !T.id && T.type === d && (T.id = `${k}_${Math.random().toString().slice(2, 6)}`), T;
833
+ function A(m, T) {
834
+ const y = String(m.getAttribute("data-controltype")), g = m.getAttribute("data-feature"), S = g ? JSON.parse(g) : {};
835
+ S.parentComponentInstance = l.value;
836
+ let P = $(y, S);
837
+ e && e.onAcceptNewChildElement && (P = e.onAcceptNewChildElement(m, T, P));
838
+ const k = y.toLowerCase().replace("-", "_");
839
+ return P && !P.id && P.type === y && (P.id = `${k}_${Math.random().toString().slice(2, 6)}`), P;
840
840
  }
841
841
  function C(m) {
842
842
  }
843
- function E(...m) {
843
+ function D(...m) {
844
844
  if (e && e.getPropsConfig)
845
845
  return e.getPropsConfig(...m);
846
846
  }
847
- return f.value = {
848
- canMove: h(),
847
+ return l.value = {
848
+ canMove: d(),
849
849
  canSelectParent: v(),
850
- canDelete: p(),
851
- canNested: !l(),
850
+ canDelete: u(),
851
+ canNested: !p(),
852
852
  contents: t == null ? void 0 : t.schema.contents,
853
853
  elementRef: n,
854
854
  parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
855
855
  schema: t == null ? void 0 : t.schema,
856
856
  styles: o,
857
857
  designerClass: a,
858
- canAccepts: g,
859
- getBelongedComponentInstance: u,
860
- getDraggableDesignItemElement: y,
858
+ canAccepts: j,
859
+ getBelongedComponentInstance: f,
860
+ getDraggableDesignItemElement: b,
861
861
  getDraggingDisplayText: i,
862
- getPropConfig: E,
862
+ getPropConfig: D,
863
863
  getDragScopeElement: c,
864
864
  onAcceptMovedChildElement: s,
865
- onAcceptNewChildElement: P,
865
+ onAcceptNewChildElement: A,
866
866
  onChildElementMovedOut: C,
867
- addNewChildComponentSchema: b,
867
+ addNewChildComponentSchema: h,
868
868
  updateDragAndDropRules: r,
869
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || S(!1),
870
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
871
- }, f;
869
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || E(!1),
870
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
871
+ }, l;
872
872
  }
873
873
  function st() {
874
874
  function n(t) {
@@ -880,8 +880,8 @@ function st() {
880
880
  return !1;
881
881
  const r = (a = e.schema.appearance) == null ? void 0 : a.class;
882
882
  if (t.controlCategory === "input" || t.controlType === "form-group") {
883
- const f = e.schema.type, h = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
884
- if (e.schema.type !== "response-layout-item" && !h)
883
+ const l = e.schema.type, d = (l === "response-form" || l === "content-container") && r && r.includes("farris-form");
884
+ if (e.schema.type !== "response-layout-item" && !d)
885
885
  return !1;
886
886
  }
887
887
  return t.controlType !== "field-set";
@@ -890,7 +890,7 @@ function st() {
890
890
  basalDragulaRuleForContainer: n
891
891
  };
892
892
  }
893
- const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-design.gitee.io/dragging-rules.schema.json", ut = "Dragging Rules", ft = "The rules of designer canvas", dt = "object", yt = {
893
+ const pt = "https://json-schema.org/draft/2020-12/schema", lt = "https://farris-design.gitee.io/dragging-rules.schema.json", ut = "Dragging Rules", ft = "The rules of designer canvas", dt = "object", yt = {
894
894
  "f-page": {
895
895
  description: "The root class of page designed by farris.",
896
896
  type: "object",
@@ -1309,6 +1309,80 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
1309
1309
  "f-list-nav-left": {
1310
1310
  description: "",
1311
1311
  type: "object"
1312
+ },
1313
+ "f-struct-data-grid-in-nav": {
1314
+ description: "",
1315
+ type: "object",
1316
+ properties: {
1317
+ contents: {
1318
+ type: "object",
1319
+ properties: {
1320
+ "f-section-form": {
1321
+ description: "",
1322
+ type: "object",
1323
+ properties: {
1324
+ rules: {
1325
+ type: "object",
1326
+ properties: {
1327
+ canAccept: {
1328
+ type: "boolean",
1329
+ const: !1
1330
+ },
1331
+ fixed: {
1332
+ type: "boolean",
1333
+ const: !0
1334
+ },
1335
+ hidePadding: {
1336
+ type: "boolean",
1337
+ const: !0
1338
+ }
1339
+ }
1340
+ }
1341
+ }
1342
+ },
1343
+ "f-section-grid": {
1344
+ description: "",
1345
+ type: "object",
1346
+ properties: {
1347
+ rules: {
1348
+ type: "object",
1349
+ properties: {
1350
+ canAccept: {
1351
+ type: "boolean",
1352
+ const: !1
1353
+ },
1354
+ fixed: {
1355
+ type: "boolean",
1356
+ const: !0
1357
+ },
1358
+ hidePadding: {
1359
+ type: "boolean",
1360
+ const: !0
1361
+ }
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ }
1367
+ },
1368
+ rules: {
1369
+ type: "object",
1370
+ properties: {
1371
+ canAccept: {
1372
+ type: "boolean",
1373
+ const: !1
1374
+ },
1375
+ fixed: {
1376
+ type: "boolean",
1377
+ const: !0
1378
+ },
1379
+ hidePadding: {
1380
+ type: "boolean",
1381
+ const: !0
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1312
1386
  }
1313
1387
  }
1314
1388
  }
@@ -1454,39 +1528,38 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
1454
1528
  description: "",
1455
1529
  type: "object"
1456
1530
  }
1457
- }, ht = [], bt = {
1458
- $schema: lt,
1459
- $id: pt,
1531
+ }, bt = {
1532
+ $schema: pt,
1533
+ $id: lt,
1460
1534
  title: ut,
1461
1535
  description: ft,
1462
1536
  type: dt,
1463
- properties: yt,
1464
- required: ht
1537
+ properties: yt
1465
1538
  }, H = /* @__PURE__ */ new Map();
1466
- function mt() {
1467
- function n(i, c, s, b) {
1468
- var P;
1539
+ function ht() {
1540
+ function n(i, c, s, h) {
1541
+ var A;
1469
1542
  if (typeof s == "number")
1470
- return ((P = b[i]) == null ? void 0 : P.length) === s;
1543
+ return ((A = h[i]) == null ? void 0 : A.length) === s;
1471
1544
  if (typeof s == "object") {
1472
- const C = Object.keys(s)[0], E = s[C];
1545
+ const C = Object.keys(s)[0], D = s[C];
1473
1546
  if (C === "not")
1474
- return Number(b[i].length) !== Number(E);
1547
+ return Number(h[i].length) !== Number(D);
1475
1548
  if (C === "moreThan")
1476
- return Number(b[i].length) >= Number(E);
1549
+ return Number(h[i].length) >= Number(D);
1477
1550
  if (C === "lessThan")
1478
- return Number(b[i].length) <= Number(E);
1551
+ return Number(h[i].length) <= Number(D);
1479
1552
  }
1480
1553
  return !1;
1481
1554
  }
1482
- function t(i, c, s, b) {
1483
- return typeof s == "boolean" ? b.childrenClassList.includes(c) === !!s : !1;
1555
+ function t(i, c, s, h) {
1556
+ return typeof s == "boolean" ? h.childrenClassList.includes(c) === !!s : !1;
1484
1557
  }
1485
- function e(i, c, s, b) {
1486
- return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1558
+ function e(i, c, s, h) {
1559
+ return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
1487
1560
  }
1488
- function r(i, c, s, b) {
1489
- return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1561
+ function r(i, c, s, h) {
1562
+ return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
1490
1563
  }
1491
1564
  const o = /* @__PURE__ */ new Map([
1492
1565
  ["length", n],
@@ -1496,211 +1569,199 @@ function mt() {
1496
1569
  ]);
1497
1570
  function a(i, c) {
1498
1571
  const s = i;
1499
- return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
1500
- if (b === "length")
1501
- return { target: s, operator: "length", param: null, value: c[b] };
1502
- const P = b, C = c[b];
1503
- return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: P, value: C };
1572
+ return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((h) => {
1573
+ if (h === "length")
1574
+ return { target: s, operator: "length", param: null, value: c[h] };
1575
+ const A = h, C = c[h];
1576
+ return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
1504
1577
  }) : [];
1505
1578
  }
1506
- function f(i, c) {
1579
+ function l(i, c) {
1507
1580
  if (o.has(i.operator)) {
1508
1581
  const s = o.get(i.operator);
1509
1582
  return s && s(i.target, i.param, i.value, c) || !1;
1510
1583
  }
1511
1584
  return !1;
1512
1585
  }
1513
- function h(i, c) {
1514
- return Object.keys(i).reduce((C, E) => {
1515
- const M = a(E, i[E]);
1586
+ function d(i, c) {
1587
+ return Object.keys(i).reduce((C, D) => {
1588
+ const M = a(D, i[D]);
1516
1589
  return C.push(...M), C;
1517
- }, []).reduce((C, E) => C && f(E, c), !0);
1590
+ }, []).reduce((C, D) => C && l(D, c), !0);
1518
1591
  }
1519
1592
  function v(i, c) {
1520
- const s = Object.keys(i), b = s.includes("allOf"), P = s.includes("anyOf"), C = b || P, m = (C ? i[C ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => h(d, c));
1521
- return b ? !m.includes(!1) : m.includes(!0);
1593
+ const s = Object.keys(i), h = s.includes("allOf"), A = s.includes("anyOf"), C = h || A, m = (C ? i[C ? h ? "allOf" : "anyOf" : "allOf"] : [i]).map((y) => d(y, c));
1594
+ return h ? !m.includes(!1) : m.includes(!0);
1522
1595
  }
1523
- function p(i, c) {
1596
+ function u(i, c) {
1524
1597
  const s = i.const;
1525
1598
  return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
1526
1599
  }
1527
- function l(i) {
1600
+ function p(i) {
1528
1601
  return (c) => {
1529
1602
  const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1530
- return i && i.properties && Object.keys(i.properties).reduce((b, P) => {
1531
- const C = i.properties[P];
1532
- return b[P] = p(C, c), b;
1603
+ return i && i.properties && Object.keys(i.properties).reduce((h, A) => {
1604
+ const C = i.properties[A];
1605
+ return h[A] = u(C, c), h;
1533
1606
  }, s), s;
1534
1607
  };
1535
1608
  }
1536
- function u(i, c, s) {
1609
+ function f(i, c, s) {
1537
1610
  if (c.type === "object" && c.properties) {
1538
- const { rules: b, contents: P } = c.properties;
1539
- s.set(i, l(b)), P && Object.keys(P.properties).forEach(
1540
- (C) => u(C, P.properties[C], s)
1611
+ const { rules: h, contents: A } = c.properties;
1612
+ s.set(i, p(h)), A && Object.keys(A.properties).forEach(
1613
+ (C) => f(C, A.properties[C], s)
1541
1614
  );
1542
1615
  }
1543
1616
  }
1544
- function y() {
1617
+ function b() {
1545
1618
  const { properties: i } = bt;
1546
1619
  Object.keys(i).forEach((c) => {
1547
- u(c, i[c], H);
1620
+ f(c, i[c], H);
1548
1621
  });
1549
1622
  }
1550
- function g(i, c) {
1623
+ function j(i, c) {
1551
1624
  const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1552
1625
  return H.has(i) ? H.get(i)(c) : s;
1553
1626
  }
1554
- return y(), { getRuleValue: g };
1627
+ return b(), { getRuleValue: j };
1555
1628
  }
1556
- function vt(n, t) {
1557
- var A;
1558
- const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema, o = mt(), a = S(!1), f = S(!1);
1559
- let h = !0, v = !1, p, l = !1;
1560
- function u(d) {
1561
- return p && p.componentClassList && p.componentClassList.includes("f-form-layout") && p.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
1629
+ function mt(n, t) {
1630
+ var T;
1631
+ const e = n.schema, r = (T = n.parent) == null ? void 0 : T.schema, o = ht(), a = E(!1), l = E(!1);
1632
+ let d = !0, v = !1, u, p = !1;
1633
+ function f(y) {
1634
+ return u && u.componentClassList && u.componentClassList.includes("f-form-layout") && u.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
1562
1635
  }
1563
- function y(d) {
1564
- return !(!st().basalDragulaRuleForContainer(d) || !h || !u(d));
1636
+ function b(y) {
1637
+ return !(!st().basalDragulaRuleForContainer(y) || !d || !f(y));
1565
1638
  }
1566
- function g() {
1567
- a.value = !1, f.value = !1;
1568
- const d = e, j = d.appearance && d.appearance.class || "", w = j.split(" "), T = d.contents || [], k = T.length ? T[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], $ = T.length ? T.reduce((K, q) => {
1569
- const I = q && q.appearance ? q.appearance.class : "", ve = I ? I.split(" ") : [];
1639
+ function j() {
1640
+ a.value = !1, l.value = !1;
1641
+ const y = e, g = y.appearance && y.appearance.class || "", S = g.split(" "), P = y.contents || [], k = P.length ? P[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], L = P.length ? P.reduce((K, W) => {
1642
+ const I = W && W.appearance ? W.appearance.class : "", ve = I ? I.split(" ") : [];
1570
1643
  return K.push(...ve), K;
1571
1644
  }, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
1572
- p = {
1573
- componentClass: j,
1574
- componentClassList: w,
1575
- childContents: T,
1645
+ u = {
1646
+ componentClass: g,
1647
+ componentClassList: S,
1648
+ childContents: P,
1576
1649
  firstChildContent: k,
1577
1650
  firstChildClass: _,
1578
1651
  firstChildClassList: N,
1579
1652
  parent: x,
1580
1653
  parentClass: V,
1581
1654
  parentClassList: ye,
1582
- children: T,
1583
- childrenClassList: $
1655
+ children: P,
1656
+ childrenClassList: L
1584
1657
  };
1585
- const { canAccept: he, fixed: be, hidePadding: me } = o.getRuleValue(w[0], p);
1586
- return h = he, v = me, l = be, !0;
1658
+ const { canAccept: be, fixed: he, hidePadding: me } = o.getRuleValue(S[0], u);
1659
+ return d = be, v = me, p = he, !0;
1587
1660
  }
1588
- function i(d) {
1661
+ function i(y) {
1589
1662
  je();
1590
1663
  }
1591
1664
  function c() {
1592
1665
  return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1593
1666
  }
1594
- function s(d, j) {
1595
- const w = e;
1596
- if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
1597
- const { label: _ } = d, N = L("form-group");
1598
- return N.editor = j, N.label = _, b(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
1667
+ function s(y, g) {
1668
+ const S = e;
1669
+ if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
1670
+ const { label: _ } = y, N = $("form-group");
1671
+ return N.editor = g, N.label = _, h(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
1599
1672
  }
1600
- return j;
1673
+ return g;
1601
1674
  }
1602
- function b(d) {
1603
- const j = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1604
- if (j && j.schema && j.schema.componentType) {
1605
- const w = j.schema.componentType, T = P(w);
1606
- d.appearance || (d.appearance = {}), d.appearance.class = T;
1675
+ function h(y) {
1676
+ const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1677
+ if (g && g.schema && g.schema.componentType) {
1678
+ const S = g.schema.formColumns, P = A(S);
1679
+ y.appearance || (y.appearance = {}), y.appearance.class = P;
1607
1680
  }
1608
1681
  }
1609
- function P(d) {
1610
- let j = "";
1611
- switch (d) {
1612
- case "form-col-1": {
1613
- j = "col-12 col-md-12 col-xl-12 col-el-12";
1614
- break;
1615
- }
1616
- case "form-col-12": {
1617
- j = "col-12 col-md-12 col-xl-12 col-el-12";
1618
- break;
1619
- }
1620
- case "form-col-2": {
1621
- j = "col-12 col-md-6 col-xl-6 col-el-6";
1622
- break;
1623
- }
1624
- case "form-col-3": {
1625
- j = "col-12 col-md-6 col-xl-4 col-el-4";
1682
+ function A(y) {
1683
+ let g = "";
1684
+ switch (y) {
1685
+ case 1: {
1686
+ g = "col-12 col-md-12 col-xl-12 col-el-12";
1626
1687
  break;
1627
1688
  }
1628
- case "form-col-4": {
1629
- j = "col-12 col-md-6 col-xl-3 col-el-2";
1689
+ case 2: {
1690
+ g = "col-12 col-md-6 col-xl-6 col-el-6";
1630
1691
  break;
1631
1692
  }
1632
- case "form-col-6": {
1633
- j = "col-12 col-md-6 col-xl-6 col-el-6";
1693
+ case 3: {
1694
+ g = "col-12 col-md-6 col-xl-4 col-el-4";
1634
1695
  break;
1635
1696
  }
1636
- case "frame": {
1637
- j = "col-12";
1697
+ case 4: {
1698
+ g = "col-12 col-md-6 col-xl-3 col-el-2";
1638
1699
  break;
1639
1700
  }
1640
1701
  }
1641
- return j;
1702
+ return g;
1642
1703
  }
1643
- function C(d, j, w) {
1644
- const T = e;
1645
- if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1646
- const N = String(d.innerText), $ = L("form-group");
1647
- return $.editor = w, $.label = N, $;
1704
+ function C(y, g, S) {
1705
+ const P = e;
1706
+ if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
1707
+ const N = String(y.innerText), L = $("form-group");
1708
+ return L.editor = S, L.label = N, L;
1648
1709
  }
1649
- return w;
1710
+ return S;
1650
1711
  }
1651
- function E() {
1652
- return !l;
1712
+ function D() {
1713
+ return !p;
1653
1714
  }
1654
1715
  function M() {
1655
- return !l;
1716
+ return !p;
1656
1717
  }
1657
1718
  function m() {
1658
1719
  return v;
1659
1720
  }
1660
1721
  return {
1661
- canAccepts: y,
1722
+ canAccepts: b,
1662
1723
  checkCanDeleteComponent: M,
1663
- checkCanMoveComponent: E,
1724
+ checkCanMoveComponent: D,
1664
1725
  getStyles: c,
1665
1726
  hideNestedPaddingInDesginerView: m,
1666
1727
  onAcceptNewChildElement: C,
1667
1728
  onAcceptMovedChildElement: i,
1668
- resolveComponentContext: g,
1729
+ resolveComponentContext: j,
1669
1730
  onResolveNewComponentSchema: s,
1670
1731
  triggerBelongedComponentToMoveWhenMoved: a,
1671
- triggerBelongedComponentToDeleteWhenDeleted: f
1732
+ triggerBelongedComponentToDeleteWhenDeleted: l
1672
1733
  };
1673
1734
  }
1674
- const gt = /* @__PURE__ */ ce({
1735
+ const vt = /* @__PURE__ */ ce({
1675
1736
  name: "FNavDesign",
1676
1737
  props: R,
1677
1738
  emits: ["nav"],
1678
1739
  setup(n, t) {
1679
1740
  var i;
1680
- const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
1681
- S(n.navPicking);
1682
- const a = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(a, f, h);
1683
- Te(() => {
1741
+ const e = E(n.activeNavId), r = E(n.navData), o = E(n.horizontal);
1742
+ E(n.navPicking);
1743
+ const a = E(), l = Ce("design-item-context"), d = mt(l.schema, (i = l.parent) == null ? void 0 : i.schema), v = it(a, l, d);
1744
+ Pe(() => {
1684
1745
  a.value.componentInstance = v;
1685
1746
  }), t.expose(v.value);
1686
- const p = F({
1747
+ const u = F({
1687
1748
  get() {
1688
1749
  return r.value;
1689
1750
  },
1690
1751
  set(c) {
1691
- r.value = c, y();
1752
+ r.value = c, b();
1692
1753
  }
1693
- }), l = F({
1754
+ }), p = F({
1694
1755
  get() {
1695
1756
  return e.value;
1696
1757
  },
1697
1758
  set(c) {
1698
- if (e.value = c, e.value && p && p.value.length) {
1699
- const s = p.value.find((b) => b.id === e.value);
1759
+ if (e.value = c, e.value && u && u.value.length) {
1760
+ const s = u.value.find((h) => h.id === e.value);
1700
1761
  s && t.emit("nav", s);
1701
1762
  }
1702
1763
  }
1703
- }), u = F({
1764
+ }), f = F({
1704
1765
  set(c) {
1705
1766
  o.value = c;
1706
1767
  },
@@ -1708,43 +1769,43 @@ const gt = /* @__PURE__ */ ce({
1708
1769
  return o.value;
1709
1770
  }
1710
1771
  });
1711
- function y() {
1712
- if (p.value && p.value.length && !e.value) {
1713
- const c = p.value.find((s) => !s.disable);
1772
+ function b() {
1773
+ if (u.value && u.value.length && !e.value) {
1774
+ const c = u.value.find((s) => !s.disable);
1714
1775
  c && (e.value = c.id);
1715
1776
  }
1716
1777
  }
1717
- function g(c) {
1778
+ function j(c) {
1718
1779
  c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
1719
1780
  }
1720
1781
  return () => {
1721
1782
  var c;
1722
- return D("div", {
1783
+ return w("div", {
1723
1784
  ref: a,
1724
1785
  class: ["farris-nav", {
1725
- "farris-nav-vertical": !u.value
1786
+ "farris-nav-vertical": !f.value
1726
1787
  }]
1727
- }, [(c = p.value) == null ? void 0 : c.map((s) => D("div", {
1788
+ }, [(c = u.value) == null ? void 0 : c.map((s) => w("div", {
1728
1789
  class: ["farris-nav-item", {
1729
- active: s.id === l.value
1790
+ active: s.id === p.value
1730
1791
  }, {
1731
1792
  disabled: s.disable
1732
1793
  }],
1733
- onClick: () => g(s)
1734
- }, [D("div", {
1794
+ onClick: () => j(s)
1795
+ }, [w("div", {
1735
1796
  class: "farris-nav-item-link"
1736
- }, [D("span", {
1797
+ }, [w("span", {
1737
1798
  class: "farris-nav-item-link-text"
1738
- }, [s.text, s.num && D("div", {
1799
+ }, [s.text, s.num && w("div", {
1739
1800
  class: "farris-nav-item-tag"
1740
- }, [s.num <= n.maxNum && D("span", {
1801
+ }, [s.num <= n.maxNum && w("span", {
1741
1802
  class: "tag-text"
1742
- }, [s.num]), s.num > n.maxNum && D("span", {
1803
+ }, [s.num]), s.num > n.maxNum && w("span", {
1743
1804
  class: "tag-text"
1744
1805
  }, [n.maxNum, ie("+")])])])])]))]);
1745
1806
  };
1746
1807
  }
1747
- }), Tt = {
1808
+ }), Ct = {
1748
1809
  install(n) {
1749
1810
  n.component(z.name, z);
1750
1811
  },
@@ -1752,12 +1813,12 @@ const gt = /* @__PURE__ */ ce({
1752
1813
  n.nav = z, t.nav = ae;
1753
1814
  },
1754
1815
  registerDesigner(n, t, e) {
1755
- n.nav = gt, t.nav = ae;
1816
+ n.nav = vt, t.nav = ae;
1756
1817
  }
1757
1818
  };
1758
1819
  export {
1759
1820
  z as FNav,
1760
- Tt as default,
1821
+ Ct as default,
1761
1822
  R as navProps,
1762
1823
  ae as propsResolver
1763
1824
  };