@farris/ui-vue 1.2.7 → 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 (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,10 +1,10 @@
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;
6
6
  } || function(e, r) {
7
- for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
7
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
8
8
  }, Y(n, t);
9
9
  };
10
10
  function se(n, t) {
@@ -29,39 +29,39 @@ 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), a, o = [], f;
32
+ var r = e.call(n), o, a = [], l;
33
33
  try {
34
- for (; (t === void 0 || t-- > 0) && !(a = r.next()).done; ) o.push(a.value);
35
- } catch (h) {
36
- f = { error: h };
34
+ for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
35
+ } catch (d) {
36
+ l = { error: d };
37
37
  } finally {
38
38
  try {
39
- a && !a.done && (e = r.return) && e.call(r);
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
- return o;
44
+ return a;
45
45
  }
46
46
  function J(n, t, e) {
47
- if (e || arguments.length === 2) for (var r = 0, a = t.length, o; r < a; r++)
48
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
49
- return n.concat(o || Array.prototype.slice.call(t));
47
+ if (e || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
48
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
49
+ return n.concat(a || Array.prototype.slice.call(t));
50
50
  }
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
- ` + e.map(function(r, a) {
64
- return a + 1 + ") " + r.toString();
63
+ ` + e.map(function(r, o) {
64
+ return o + 1 + ") " + r.toString();
65
65
  }).join(`
66
66
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
67
67
  };
@@ -77,59 +77,59 @@ var X = function() {
77
77
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
78
78
  }
79
79
  return n.prototype.unsubscribe = function() {
80
- var t, e, r, a, o;
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
- o = 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
- o = o ?? [], c instanceof W ? o = J(J([], G(o)), G(c.errors)) : o.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 && (a = y.return) && a.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
- if (o)
132
- throw new W(o);
131
+ if (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,10 +199,10 @@ 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
- return t.create = function(e, r, a) {
205
- return new Q(e, r, a);
204
+ return t.create = function(e, r, o) {
205
+ return new Q(e, r, o);
206
206
  }, t.prototype.next = function(e) {
207
207
  this.isStopped || this._next(e);
208
208
  }, t.prototype.error = function(e) {
@@ -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() {
@@ -263,25 +263,25 @@ var Ne = function() {
263
263
  }, n;
264
264
  }(), Q = function(n) {
265
265
  se(t, n);
266
- function t(e, r, a) {
267
- var o = n.call(this) || this, f;
266
+ function t(e, r, o) {
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
- complete: a ?? void 0
272
+ complete: o ?? void 0
273
273
  };
274
274
  else {
275
- var h;
276
- o && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
277
- return o.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;
275
+ var d;
276
+ a && le.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
277
+ return a.unsubscribe();
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 o.destination = new Ne(f), o;
284
+ return a.destination = new Ne(l), a;
285
285
  }
286
286
  return t;
287
287
  }(ue);
@@ -304,12 +304,12 @@ function _e(n) {
304
304
  }
305
305
  function Fe(n) {
306
306
  return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
307
- return n.reduce(function(r, a) {
308
- return a(r);
307
+ return n.reduce(function(r, o) {
308
+ return o(r);
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
  }
@@ -317,11 +317,11 @@ var $e = function() {
317
317
  var e = new n();
318
318
  return e.source = this, e.operator = t, e;
319
319
  }, n.prototype.subscribe = function(t, e, r) {
320
- var a = this, o = xe(t) ? t : new Q(t, e, r);
320
+ var o = this, a = xe(t) ? t : new Q(t, e, r);
321
321
  return De(function() {
322
- var f = a, h = f.operator, v = f.source;
323
- o.add(h ? h.call(o, v) : v ? a._subscribe(o) : a._trySubscribe(o));
324
- }), o;
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
+ }), a;
325
325
  }, n.prototype._trySubscribe = function(t) {
326
326
  try {
327
327
  return this._subscribe(t);
@@ -330,19 +330,19 @@ var $e = function() {
330
330
  }
331
331
  }, n.prototype.forEach = function(t, e) {
332
332
  var r = this;
333
- return e = oe(e), new e(function(a, o) {
334
- var f = new Q({
335
- next: function(h) {
333
+ return e = oe(e), new e(function(o, a) {
334
+ var l = new Q({
335
+ next: function(d) {
336
336
  try {
337
- t(h);
337
+ t(d);
338
338
  } catch (v) {
339
- o(v), f.unsubscribe();
339
+ a(v), l.unsubscribe();
340
340
  }
341
341
  },
342
- error: o,
343
- complete: a
342
+ error: a,
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;
@@ -355,14 +355,14 @@ var $e = function() {
355
355
  return Fe(t)(this);
356
356
  }, n.prototype.toPromise = function(t) {
357
357
  var e = this;
358
- return t = oe(t), new t(function(r, a) {
359
- var o;
360
- e.subscribe(function(f) {
361
- return o = f;
362
- }, function(f) {
363
- return a(f);
358
+ return t = oe(t), new t(function(r, o) {
359
+ var a;
360
+ e.subscribe(function(l) {
361
+ return a = l;
362
+ }, function(l) {
363
+ return o(l);
364
364
  }, function() {
365
- return r(o);
365
+ return r(a);
366
366
  });
367
367
  });
368
368
  }, n.create = function(t) {
@@ -371,111 +371,111 @@ 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((a, o) => (a[o] = t[o].type === "object" && t[o].properties ? Z(t[o]) : Pe(t[o].default), a), {});
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);
387
+ function $(n, t = {}, e) {
388
+ const r = fe[n];
389
+ if (r) {
390
+ let o = Z(r);
391
391
  const a = de[n];
392
- return r = a ? a({ getSchemaByType: L }, r, t) : r, r;
392
+ return o = a ? a({ getSchemaByType: $ }, o, t, e) : o, o;
393
393
  }
394
394
  return null;
395
395
  }
396
396
  function Be(n, t) {
397
397
  const e = Z(t);
398
- return Object.keys(n).reduce((r, a) => (r[a] = n[a], r), e), e;
398
+ return Object.keys(n).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], n[o]) : r[o] = n[o], r), e), e;
399
399
  }
400
400
  function Ve(n, t) {
401
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, a) => {
402
- if (t.has(a)) {
403
- const o = t.get(a);
404
- if (typeof o == "string")
405
- r[o] = n[a];
401
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
402
+ if (t.has(o)) {
403
+ const a = t.get(o);
404
+ if (typeof a == "string")
405
+ r[a] = n[o];
406
406
  else {
407
- const f = o(a, n[a], 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
- r[a] = n[a];
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 a(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 o(p) {
452
- return Object.keys(p).reduce((u, y) => {
453
- const g = a(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 o(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, a = {}, o = (f) => f) {
476
- return fe[t.title] = t, de[t.title] = r, Ue[t.title] = a, ze[t.title] = o, (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,72 +710,72 @@ 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), a = 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
- const o = F({
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 && o && o.value.length) {
736
- const u = o.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
- a.value = l;
740
+ }), d = F({
741
+ set(p) {
742
+ o.value = p;
743
743
  },
744
744
  get() {
745
- return a.value;
745
+ return o.value;
746
746
  }
747
747
  });
748
748
  function v() {
749
- if (o.value && o.value.length && !e.value) {
750
- const l = o.value.find((u) => !u.disable);
751
- l && (e.value = l.id);
749
+ if (a.value && a.value.length && !e.value) {
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 = o.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 a = e && e.getStyles && e.getStyles() || "", o = 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,68 +820,68 @@ 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
- styles: a,
857
- designerClass: o,
858
- canAccepts: g,
859
- getBelongedComponentInstance: u,
860
- getDraggableDesignItemElement: y,
856
+ styles: o,
857
+ designerClass: a,
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) {
875
- var a, o;
875
+ var o, a;
876
876
  if (!t)
877
877
  return !1;
878
- const e = ((a = t.targetContainer) == null ? void 0 : a.componentInstance) && t.targetContainer.componentInstance.value;
878
+ const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
879
879
  if (!e)
880
880
  return !1;
881
- const r = (o = e.schema.appearance) == null ? void 0 : o.class;
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,297 +1528,284 @@ 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
- const a = /* @__PURE__ */ new Map([
1564
+ const o = /* @__PURE__ */ new Map([
1492
1565
  ["length", n],
1493
1566
  ["hasChildren", t],
1494
1567
  ["hasSibling", r],
1495
1568
  ["hasParent", e]
1496
1569
  ]);
1497
- function o(i, c) {
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) {
1507
- if (a.has(i.operator)) {
1508
- const s = a.get(i.operator);
1579
+ function l(i, c) {
1580
+ if (o.has(i.operator)) {
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 = o(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, a = mt(), o = 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
- o.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 } = a.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
- triggerBelongedComponentToMoveWhenMoved: o,
1671
- triggerBelongedComponentToDeleteWhenDeleted: f
1731
+ triggerBelongedComponentToMoveWhenMoved: a,
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), a = S(n.horizontal);
1681
- S(n.navPicking);
1682
- const o = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(o, f, h);
1683
- Te(() => {
1684
- o.value.componentInstance = v;
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(() => {
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
- a.value = c;
1766
+ o.value = c;
1706
1767
  },
1707
1768
  get() {
1708
- return a.value;
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", {
1723
- ref: o,
1783
+ return w("div", {
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
  };