@farris/ui-vue 1.3.1 → 1.3.3

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 (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,225 +1,221 @@
1
- var le = Object.defineProperty;
2
- var ce = (n, e, t) => e in n ? le(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var M = (n, e, t) => ce(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as K, ref as L, watch as ue, computed as P, createVNode as T, createTextVNode as H, nextTick as pe, inject as fe, onMounted as de } from "vue";
5
- import { isPlainObject as X, cloneDeep as ee } from "lodash-es";
6
- import { DgControl as V } from "../designer-canvas/index.esm.js";
7
- var _ = function(n, e) {
8
- return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
9
- t.__proto__ = r;
10
- } || function(t, r) {
11
- for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
12
- }, _(n, e);
1
+ import { defineComponent as Q, ref as g, watch as ne, computed as T, createVNode as b, createTextVNode as X, inject as ie, onMounted as ae } from "vue";
2
+ import { isPlainObject as U, cloneDeep as oe } from "lodash-es";
3
+ var k = function(t, e) {
4
+ return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
5
+ r.__proto__ = n;
6
+ } || function(r, n) {
7
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
8
+ }, k(t, e);
13
9
  };
14
- function te(n, e) {
10
+ function Z(t, e) {
15
11
  if (typeof e != "function" && e !== null)
16
12
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
17
- _(n, e);
18
- function t() {
19
- this.constructor = n;
13
+ k(t, e);
14
+ function r() {
15
+ this.constructor = t;
20
16
  }
21
- n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
17
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
22
18
  }
23
- function Y(n) {
24
- var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], r = 0;
25
- if (t) return t.call(n);
26
- if (n && typeof n.length == "number") return {
19
+ function z(t) {
20
+ var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
21
+ if (r) return r.call(t);
22
+ if (t && typeof t.length == "number") return {
27
23
  next: function() {
28
- return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
24
+ return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
29
25
  }
30
26
  };
31
27
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
32
28
  }
33
- function O(n, e) {
34
- var t = typeof Symbol == "function" && n[Symbol.iterator];
35
- if (!t) return n;
36
- var r = t.call(n), i, a = [], s;
29
+ function A(t, e) {
30
+ var r = typeof Symbol == "function" && t[Symbol.iterator];
31
+ if (!r) return t;
32
+ var n = r.call(t), i, a = [], c;
37
33
  try {
38
- for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
39
- } catch (f) {
40
- s = { error: f };
34
+ for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) a.push(i.value);
35
+ } catch (l) {
36
+ c = { error: l };
41
37
  } finally {
42
38
  try {
43
- i && !i.done && (t = r.return) && t.call(r);
39
+ i && !i.done && (r = n.return) && r.call(n);
44
40
  } finally {
45
- if (s) throw s.error;
41
+ if (c) throw c.error;
46
42
  }
47
43
  }
48
44
  return a;
49
45
  }
50
- function j(n, e, t) {
51
- if (t || arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
52
- (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
53
- return n.concat(a || Array.prototype.slice.call(e));
54
- }
55
- function I(n) {
56
- return typeof n == "function";
57
- }
58
- function me(n) {
59
- var e = function(r) {
60
- Error.call(r), r.stack = new Error().stack;
61
- }, t = n(e);
62
- return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
63
- }
64
- var N = me(function(n) {
65
- return function(t) {
66
- n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
67
- ` + t.map(function(r, i) {
68
- return i + 1 + ") " + r.toString();
46
+ function M(t, e, r) {
47
+ if (r || arguments.length === 2) for (var n = 0, i = e.length, a; n < i; n++)
48
+ (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
49
+ return t.concat(a || Array.prototype.slice.call(e));
50
+ }
51
+ function E(t) {
52
+ return typeof t == "function";
53
+ }
54
+ function se(t) {
55
+ var e = function(n) {
56
+ Error.call(n), n.stack = new Error().stack;
57
+ }, r = t(e);
58
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
59
+ }
60
+ var N = se(function(t) {
61
+ return function(r) {
62
+ t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
63
+ ` + r.map(function(n, i) {
64
+ return i + 1 + ") " + n.toString();
69
65
  }).join(`
70
- `) : "", this.name = "UnsubscriptionError", this.errors = t;
66
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
71
67
  };
72
68
  });
73
- function J(n, e) {
74
- if (n) {
75
- var t = n.indexOf(e);
76
- 0 <= t && n.splice(t, 1);
69
+ function H(t, e) {
70
+ if (t) {
71
+ var r = t.indexOf(e);
72
+ 0 <= r && t.splice(r, 1);
77
73
  }
78
74
  }
79
- var $ = function() {
80
- function n(e) {
75
+ var F = function() {
76
+ function t(e) {
81
77
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
82
78
  }
83
- return n.prototype.unsubscribe = function() {
84
- var e, t, r, i, a;
79
+ return t.prototype.unsubscribe = function() {
80
+ var e, r, n, i, a;
85
81
  if (!this.closed) {
86
82
  this.closed = !0;
87
- var s = this._parentage;
88
- if (s)
89
- if (this._parentage = null, Array.isArray(s))
83
+ var c = this._parentage;
84
+ if (c)
85
+ if (this._parentage = null, Array.isArray(c))
90
86
  try {
91
- for (var f = Y(s), d = f.next(); !d.done; d = f.next()) {
92
- var l = d.value;
93
- l.remove(this);
87
+ for (var l = z(c), v = l.next(); !v.done; v = l.next()) {
88
+ var u = v.value;
89
+ u.remove(this);
94
90
  }
95
- } catch (u) {
96
- e = { error: u };
91
+ } catch (y) {
92
+ e = { error: y };
97
93
  } finally {
98
94
  try {
99
- d && !d.done && (t = f.return) && t.call(f);
95
+ v && !v.done && (r = l.return) && r.call(l);
100
96
  } finally {
101
97
  if (e) throw e.error;
102
98
  }
103
99
  }
104
100
  else
105
- s.remove(this);
106
- var c = this.initialTeardown;
107
- if (I(c))
101
+ c.remove(this);
102
+ var o = this.initialTeardown;
103
+ if (E(o))
108
104
  try {
109
- c();
110
- } catch (u) {
111
- a = u instanceof N ? u.errors : [u];
105
+ o();
106
+ } catch (y) {
107
+ a = y instanceof N ? y.errors : [y];
112
108
  }
113
- var o = this._finalizers;
114
- if (o) {
109
+ var s = this._finalizers;
110
+ if (s) {
115
111
  this._finalizers = null;
116
112
  try {
117
- for (var p = Y(o), m = p.next(); !m.done; m = p.next()) {
118
- var y = m.value;
113
+ for (var p = z(s), f = p.next(); !f.done; f = p.next()) {
114
+ var d = f.value;
119
115
  try {
120
- Q(y);
121
- } catch (u) {
122
- a = a ?? [], u instanceof N ? a = j(j([], O(a)), O(u.errors)) : a.push(u);
116
+ W(d);
117
+ } catch (y) {
118
+ a = a ?? [], y instanceof N ? a = M(M([], A(a)), A(y.errors)) : a.push(y);
123
119
  }
124
120
  }
125
- } catch (u) {
126
- r = { error: u };
121
+ } catch (y) {
122
+ n = { error: y };
127
123
  } finally {
128
124
  try {
129
- m && !m.done && (i = p.return) && i.call(p);
125
+ f && !f.done && (i = p.return) && i.call(p);
130
126
  } finally {
131
- if (r) throw r.error;
127
+ if (n) throw n.error;
132
128
  }
133
129
  }
134
130
  }
135
131
  if (a)
136
132
  throw new N(a);
137
133
  }
138
- }, n.prototype.add = function(e) {
139
- var t;
134
+ }, t.prototype.add = function(e) {
135
+ var r;
140
136
  if (e && e !== this)
141
137
  if (this.closed)
142
- Q(e);
138
+ W(e);
143
139
  else {
144
- if (e instanceof n) {
140
+ if (e instanceof t) {
145
141
  if (e.closed || e._hasParent(this))
146
142
  return;
147
143
  e._addParent(this);
148
144
  }
149
- (this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
150
- }
151
- }, n.prototype._hasParent = function(e) {
152
- var t = this._parentage;
153
- return t === e || Array.isArray(t) && t.includes(e);
154
- }, n.prototype._addParent = function(e) {
155
- var t = this._parentage;
156
- this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
157
- }, n.prototype._removeParent = function(e) {
158
- var t = this._parentage;
159
- t === e ? this._parentage = null : Array.isArray(t) && J(t, e);
160
- }, n.prototype.remove = function(e) {
161
- var t = this._finalizers;
162
- t && J(t, e), e instanceof n && e._removeParent(this);
163
- }, n.EMPTY = function() {
164
- var e = new n();
145
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
146
+ }
147
+ }, t.prototype._hasParent = function(e) {
148
+ var r = this._parentage;
149
+ return r === e || Array.isArray(r) && r.includes(e);
150
+ }, t.prototype._addParent = function(e) {
151
+ var r = this._parentage;
152
+ this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
153
+ }, t.prototype._removeParent = function(e) {
154
+ var r = this._parentage;
155
+ r === e ? this._parentage = null : Array.isArray(r) && H(r, e);
156
+ }, t.prototype.remove = function(e) {
157
+ var r = this._finalizers;
158
+ r && H(r, e), e instanceof t && e._removeParent(this);
159
+ }, t.EMPTY = function() {
160
+ var e = new t();
165
161
  return e.closed = !0, e;
166
- }(), n;
162
+ }(), t;
167
163
  }();
168
- $.EMPTY;
169
- function ne(n) {
170
- return n instanceof $ || n && "closed" in n && I(n.remove) && I(n.add) && I(n.unsubscribe);
164
+ F.EMPTY;
165
+ function x(t) {
166
+ return t instanceof F || t && "closed" in t && E(t.remove) && E(t.add) && E(t.unsubscribe);
171
167
  }
172
- function Q(n) {
173
- I(n) ? n() : n.unsubscribe();
168
+ function W(t) {
169
+ E(t) ? t() : t.unsubscribe();
174
170
  }
175
- var re = {
171
+ var K = {
176
172
  onUnhandledError: null,
177
173
  onStoppedNotification: null,
178
174
  Promise: void 0,
179
175
  useDeprecatedSynchronousErrorHandling: !1,
180
176
  useDeprecatedNextContext: !1
181
- }, he = {
182
- setTimeout: function(n, e) {
183
- for (var t = [], r = 2; r < arguments.length; r++)
184
- t[r - 2] = arguments[r];
185
- return setTimeout.apply(void 0, j([n, e], O(t)));
177
+ }, ce = {
178
+ setTimeout: function(t, e) {
179
+ for (var r = [], n = 2; n < arguments.length; n++)
180
+ r[n - 2] = arguments[n];
181
+ return setTimeout.apply(void 0, M([t, e], A(r)));
186
182
  },
187
- clearTimeout: function(n) {
188
- return clearTimeout(n);
183
+ clearTimeout: function(t) {
184
+ return clearTimeout(t);
189
185
  },
190
186
  delegate: void 0
191
187
  };
192
- function ye(n) {
193
- he.setTimeout(function() {
194
- throw n;
188
+ function ue(t) {
189
+ ce.setTimeout(function() {
190
+ throw t;
195
191
  });
196
192
  }
197
- function Z() {
193
+ function Y() {
198
194
  }
199
- function ve(n) {
200
- n();
195
+ function le(t) {
196
+ t();
201
197
  }
202
- var oe = function(n) {
203
- te(e, n);
204
- function e(t) {
205
- var r = n.call(this) || this;
206
- return r.isStopped = !1, t ? (r.destination = t, ne(t) && t.add(r)) : r.destination = Me, r;
198
+ var C = function(t) {
199
+ Z(e, t);
200
+ function e(r) {
201
+ var n = t.call(this) || this;
202
+ return n.isStopped = !1, r ? (n.destination = r, x(r) && r.add(n)) : n.destination = de, n;
207
203
  }
208
- return e.create = function(t, r, i) {
209
- return new W(t, r, i);
210
- }, e.prototype.next = function(t) {
211
- this.isStopped || this._next(t);
212
- }, e.prototype.error = function(t) {
213
- this.isStopped || (this.isStopped = !0, this._error(t));
204
+ return e.create = function(r, n, i) {
205
+ return new R(r, n, i);
206
+ }, e.prototype.next = function(r) {
207
+ this.isStopped || this._next(r);
208
+ }, e.prototype.error = function(r) {
209
+ this.isStopped || (this.isStopped = !0, this._error(r));
214
210
  }, e.prototype.complete = function() {
215
211
  this.isStopped || (this.isStopped = !0, this._complete());
216
212
  }, e.prototype.unsubscribe = function() {
217
- this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
218
- }, e.prototype._next = function(t) {
219
- this.destination.next(t);
220
- }, e.prototype._error = function(t) {
213
+ this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
214
+ }, e.prototype._next = function(r) {
215
+ this.destination.next(r);
216
+ }, e.prototype._error = function(r) {
221
217
  try {
222
- this.destination.error(t);
218
+ this.destination.error(r);
223
219
  } finally {
224
220
  this.unsubscribe();
225
221
  }
@@ -230,303 +226,268 @@ var oe = function(n) {
230
226
  this.unsubscribe();
231
227
  }
232
228
  }, e;
233
- }($), be = Function.prototype.bind;
234
- function B(n, e) {
235
- return be.call(n, e);
229
+ }(F), fe = Function.prototype.bind;
230
+ function O(t, e) {
231
+ return fe.call(t, e);
236
232
  }
237
- var Ce = function() {
238
- function n(e) {
233
+ var pe = function() {
234
+ function t(e) {
239
235
  this.partialObserver = e;
240
236
  }
241
- return n.prototype.next = function(e) {
242
- var t = this.partialObserver;
243
- if (t.next)
237
+ return t.prototype.next = function(e) {
238
+ var r = this.partialObserver;
239
+ if (r.next)
244
240
  try {
245
- t.next(e);
246
- } catch (r) {
247
- F(r);
241
+ r.next(e);
242
+ } catch (n) {
243
+ D(n);
248
244
  }
249
- }, n.prototype.error = function(e) {
250
- var t = this.partialObserver;
251
- if (t.error)
245
+ }, t.prototype.error = function(e) {
246
+ var r = this.partialObserver;
247
+ if (r.error)
252
248
  try {
253
- t.error(e);
254
- } catch (r) {
255
- F(r);
249
+ r.error(e);
250
+ } catch (n) {
251
+ D(n);
256
252
  }
257
253
  else
258
- F(e);
259
- }, n.prototype.complete = function() {
254
+ D(e);
255
+ }, t.prototype.complete = function() {
260
256
  var e = this.partialObserver;
261
257
  if (e.complete)
262
258
  try {
263
259
  e.complete();
264
- } catch (t) {
265
- F(t);
266
- }
267
- }, n;
268
- }(), W = function(n) {
269
- te(e, n);
270
- function e(t, r, i) {
271
- var a = n.call(this) || this, s;
272
- if (I(t) || !t)
273
- s = {
274
- next: t ?? void 0,
275
- error: r ?? void 0,
260
+ } catch (r) {
261
+ D(r);
262
+ }
263
+ }, t;
264
+ }(), R = function(t) {
265
+ Z(e, t);
266
+ function e(r, n, i) {
267
+ var a = t.call(this) || this, c;
268
+ if (E(r) || !r)
269
+ c = {
270
+ next: r ?? void 0,
271
+ error: n ?? void 0,
276
272
  complete: i ?? void 0
277
273
  };
278
274
  else {
279
- var f;
280
- a && re.useDeprecatedNextContext ? (f = Object.create(t), f.unsubscribe = function() {
275
+ var l;
276
+ a && K.useDeprecatedNextContext ? (l = Object.create(r), l.unsubscribe = function() {
281
277
  return a.unsubscribe();
282
- }, s = {
283
- next: t.next && B(t.next, f),
284
- error: t.error && B(t.error, f),
285
- complete: t.complete && B(t.complete, f)
286
- }) : s = t;
278
+ }, c = {
279
+ next: r.next && O(r.next, l),
280
+ error: r.error && O(r.error, l),
281
+ complete: r.complete && O(r.complete, l)
282
+ }) : c = r;
287
283
  }
288
- return a.destination = new Ce(s), a;
284
+ return a.destination = new pe(c), a;
289
285
  }
290
286
  return e;
291
- }(oe);
292
- function F(n) {
293
- ye(n);
287
+ }(C);
288
+ function D(t) {
289
+ ue(t);
294
290
  }
295
- function ge(n) {
296
- throw n;
291
+ function ve(t) {
292
+ throw t;
297
293
  }
298
- var Me = {
294
+ var de = {
299
295
  closed: !0,
300
- next: Z,
301
- error: ge,
302
- complete: Z
303
- }, Se = function() {
296
+ next: Y,
297
+ error: ve,
298
+ complete: Y
299
+ }, he = function() {
304
300
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
305
301
  }();
306
- function De(n) {
307
- return n;
308
- }
309
- function Ee(n) {
310
- return n.length === 0 ? De : n.length === 1 ? n[0] : function(t) {
311
- return n.reduce(function(r, i) {
312
- return i(r);
313
- }, t);
302
+ function ye(t) {
303
+ return t;
304
+ }
305
+ function be(t) {
306
+ return t.length === 0 ? ye : t.length === 1 ? t[0] : function(r) {
307
+ return t.reduce(function(n, i) {
308
+ return i(n);
309
+ }, r);
314
310
  };
315
311
  }
316
- var Te = function() {
317
- function n(e) {
312
+ var me = function() {
313
+ function t(e) {
318
314
  e && (this._subscribe = e);
319
315
  }
320
- return n.prototype.lift = function(e) {
321
- var t = new n();
322
- return t.source = this, t.operator = e, t;
323
- }, n.prototype.subscribe = function(e, t, r) {
324
- var i = this, a = we(e) ? e : new W(e, t, r);
325
- return ve(function() {
326
- var s = i, f = s.operator, d = s.source;
327
- a.add(f ? f.call(a, d) : d ? i._subscribe(a) : i._trySubscribe(a));
316
+ return t.prototype.lift = function(e) {
317
+ var r = new t();
318
+ return r.source = this, r.operator = e, r;
319
+ }, t.prototype.subscribe = function(e, r, n) {
320
+ var i = this, a = Se(e) ? e : new R(e, r, n);
321
+ return le(function() {
322
+ var c = i, l = c.operator, v = c.source;
323
+ a.add(l ? l.call(a, v) : v ? i._subscribe(a) : i._trySubscribe(a));
328
324
  }), a;
329
- }, n.prototype._trySubscribe = function(e) {
325
+ }, t.prototype._trySubscribe = function(e) {
330
326
  try {
331
327
  return this._subscribe(e);
332
- } catch (t) {
333
- e.error(t);
328
+ } catch (r) {
329
+ e.error(r);
334
330
  }
335
- }, n.prototype.forEach = function(e, t) {
336
- var r = this;
337
- return t = x(t), new t(function(i, a) {
338
- var s = new W({
339
- next: function(f) {
331
+ }, t.prototype.forEach = function(e, r) {
332
+ var n = this;
333
+ return r = G(r), new r(function(i, a) {
334
+ var c = new R({
335
+ next: function(l) {
340
336
  try {
341
- e(f);
342
- } catch (d) {
343
- a(d), s.unsubscribe();
337
+ e(l);
338
+ } catch (v) {
339
+ a(v), c.unsubscribe();
344
340
  }
345
341
  },
346
342
  error: a,
347
343
  complete: i
348
344
  });
349
- r.subscribe(s);
345
+ n.subscribe(c);
350
346
  });
351
- }, n.prototype._subscribe = function(e) {
352
- var t;
353
- return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
354
- }, n.prototype[Se] = function() {
347
+ }, t.prototype._subscribe = function(e) {
348
+ var r;
349
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
350
+ }, t.prototype[he] = function() {
355
351
  return this;
356
- }, n.prototype.pipe = function() {
357
- for (var e = [], t = 0; t < arguments.length; t++)
358
- e[t] = arguments[t];
359
- return Ee(e)(this);
360
- }, n.prototype.toPromise = function(e) {
361
- var t = this;
362
- return e = x(e), new e(function(r, i) {
352
+ }, t.prototype.pipe = function() {
353
+ for (var e = [], r = 0; r < arguments.length; r++)
354
+ e[r] = arguments[r];
355
+ return be(e)(this);
356
+ }, t.prototype.toPromise = function(e) {
357
+ var r = this;
358
+ return e = G(e), new e(function(n, i) {
363
359
  var a;
364
- t.subscribe(function(s) {
365
- return a = s;
366
- }, function(s) {
367
- return i(s);
360
+ r.subscribe(function(c) {
361
+ return a = c;
362
+ }, function(c) {
363
+ return i(c);
368
364
  }, function() {
369
- return r(a);
365
+ return n(a);
370
366
  });
371
367
  });
372
- }, n.create = function(e) {
373
- return new n(e);
374
- }, n;
368
+ }, t.create = function(e) {
369
+ return new t(e);
370
+ }, t;
375
371
  }();
376
- function x(n) {
372
+ function G(t) {
377
373
  var e;
378
- return (e = n ?? re.Promise) !== null && e !== void 0 ? e : Promise;
374
+ return (e = t ?? K.Promise) !== null && e !== void 0 ? e : Promise;
379
375
  }
380
- function Le(n) {
381
- return n && I(n.next) && I(n.error) && I(n.complete);
376
+ function ge(t) {
377
+ return t && E(t.next) && E(t.error) && E(t.complete);
382
378
  }
383
- function we(n) {
384
- return n && n instanceof oe || Le(n) && ne(n);
379
+ function Se(t) {
380
+ return t && t instanceof C || ge(t) && x(t);
385
381
  }
386
- const ae = {}, ie = {};
387
- function G(n) {
388
- const { properties: e, title: t, ignore: r } = n, i = r && Array.isArray(r), a = Object.keys(e).reduce((s, f) => ((!i || !r.find((d) => d == f)) && (s[f] = e[f].type === "object" && e[f].properties ? G(e[f]) : ee(e[f].default)), s), {});
389
- return t && (!i || !r.find((s) => s == "id")) && (a.id = `${t}-${Date.now()}`), a;
382
+ const I = {}, ee = {};
383
+ function $(t) {
384
+ const { properties: e, title: r, ignore: n } = t, i = n && Array.isArray(n), a = Object.keys(e).reduce((c, l) => ((!i || !n.find((v) => v === l)) && (c[l] = e[l].type === "object" && e[l].properties ? $(e[l]) : oe(e[l].default)), c), {});
385
+ if (r && (!i || !n.find((c) => c === "id"))) {
386
+ const c = r.toLowerCase().replace(/-/g, "_");
387
+ a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
388
+ }
389
+ return a;
390
390
  }
391
- function q(n, e = {}, t) {
392
- const r = ae[n];
393
- if (r) {
394
- let i = G(r);
395
- const a = ie[n];
396
- return i = a ? a({ getSchemaByType: q }, i, e, t) : i, i;
391
+ function te(t, e = {}, r) {
392
+ const n = I[t];
393
+ if (n) {
394
+ let i = $(n);
395
+ const a = ee[t];
396
+ return i = a ? a({ getSchemaByType: te }, i, e, r) : i, i;
397
397
  }
398
398
  return null;
399
399
  }
400
- function Ie(n, e) {
401
- const t = G(e);
402
- return Object.keys(n).reduce((r, i) => (r[i] && X(r[i]) && X(n[i]) ? Object.assign(r[i], n[i]) : r[i] = n[i], r), t), t;
400
+ function Ee(t, e) {
401
+ const r = $(e);
402
+ return Object.keys(r).reduce((n, i) => (n[i] && U(n[i]) && U(t[i] || !t[i]) ? Object.assign(n[i], t[i] || {}) : n[i] = t[i], n), r), r;
403
403
  }
404
- function ke(n, e) {
405
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, i) => {
404
+ function Pe(t, e) {
405
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, i) => {
406
406
  if (e.has(i)) {
407
407
  const a = e.get(i);
408
408
  if (typeof a == "string")
409
- r[a] = n[i];
409
+ n[a] = t[i];
410
410
  else {
411
- const s = a(i, n[i], n);
412
- Object.assign(r, s);
411
+ const c = a(i, t[i], t);
412
+ Object.assign(n, c);
413
413
  }
414
414
  } else
415
- r[i] = n[i];
416
- return r;
415
+ n[i] = t[i];
416
+ return n;
417
417
  }, {});
418
418
  }
419
- function Pe(n, e, t = /* @__PURE__ */ new Map()) {
420
- const r = Ie(n, e);
421
- return ke(r, t);
422
- }
423
- function Fe(n = {}) {
424
- function e(l, c, o, p) {
425
- if (typeof o == "number")
426
- return p[l].length === o;
427
- if (typeof o == "object") {
428
- const m = Object.keys(o)[0], y = o[m];
429
- if (m === "not")
430
- return Number(p[l].length) !== Number(y);
431
- if (m === "moreThan")
432
- return Number(p[l].length) >= Number(y);
433
- if (m === "lessThan")
434
- return Number(p[l].length) <= Number(y);
419
+ function Te(t, e, r = /* @__PURE__ */ new Map()) {
420
+ const n = Ee(t, e);
421
+ return Pe(n, r);
422
+ }
423
+ function _e(t = {}) {
424
+ function e(u, o, s, p) {
425
+ if (typeof s == "number")
426
+ return p[u].length === s;
427
+ if (typeof s == "object") {
428
+ const f = Object.keys(s)[0], d = s[f];
429
+ if (f === "not")
430
+ return Number(p[u].length) !== Number(d);
431
+ if (f === "moreThan")
432
+ return Number(p[u].length) >= Number(d);
433
+ if (f === "lessThan")
434
+ return Number(p[u].length) <= Number(d);
435
435
  }
436
436
  return !1;
437
437
  }
438
- function t(l, c, o, p) {
439
- return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(o);
438
+ function r(u, o, s, p) {
439
+ return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(s);
440
440
  }
441
- const r = /* @__PURE__ */ new Map([
441
+ const n = /* @__PURE__ */ new Map([
442
442
  ["length", e],
443
- ["getProperty", t]
443
+ ["getProperty", r]
444
444
  ]);
445
- Object.keys(n).reduce((l, c) => (l.set(c, n[c]), l), r);
446
- function i(l, c) {
447
- const o = l;
448
- return typeof c == "number" ? [{ target: o, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
445
+ Object.keys(t).reduce((u, o) => (u.set(o, t[o]), u), n);
446
+ function i(u, o) {
447
+ const s = u;
448
+ return typeof o == "number" ? [{ target: s, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!o }] : typeof o == "object" ? Object.keys(o).map((p) => {
449
449
  if (p === "length")
450
- return { target: o, operator: "length", param: null, value: c[p] };
451
- const m = p, y = c[p];
452
- return { target: o, operator: "getProperty", param: m, value: y };
450
+ return { target: s, operator: "length", param: null, value: o[p] };
451
+ const f = p, d = o[p];
452
+ return { target: s, operator: "getProperty", param: f, value: d };
453
453
  }) : [];
454
454
  }
455
- function a(l) {
456
- return Object.keys(l).reduce((o, p) => {
457
- const m = i(p, l[p]);
458
- return o.push(...m), o;
455
+ function a(u) {
456
+ return Object.keys(u).reduce((s, p) => {
457
+ const f = i(p, u[p]);
458
+ return s.push(...f), s;
459
459
  }, []);
460
460
  }
461
- function s(l, c) {
462
- if (r.has(l.operator)) {
463
- const o = r.get(l.operator);
464
- return o && o(l.target, l.param, l.value, c) || !1;
461
+ function c(u, o) {
462
+ if (n.has(u.operator)) {
463
+ const s = n.get(u.operator);
464
+ return s && s(u.target, u.param, u.value, o) || !1;
465
465
  }
466
466
  return !1;
467
467
  }
468
- function f(l, c) {
469
- return a(l).reduce((m, y) => m && s(y, c), !0);
468
+ function l(u, o) {
469
+ return a(u).reduce((f, d) => f && c(d, o), !0);
470
470
  }
471
- function d(l, c) {
472
- const o = Object.keys(l), p = o.includes("allOf"), m = o.includes("anyOf"), y = p || m, C = (y ? l[y ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((g) => f(g, c));
473
- return p ? !C.includes(!1) : C.includes(!0);
471
+ function v(u, o) {
472
+ const s = Object.keys(u), p = s.includes("allOf"), f = s.includes("anyOf"), d = p || f, _ = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((w) => l(w, o));
473
+ return p ? !_.includes(!1) : _.includes(!0);
474
474
  }
475
- return { parseValueSchema: d };
475
+ return { parseValueSchema: v };
476
476
  }
477
- const k = {
478
- button: { type: "button", name: "按钮", icon: "Button" },
479
- "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
480
- "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
481
- "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
482
- "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
483
- textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
484
- lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
485
- "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
486
- "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
487
- switch: { type: "switch", name: "开关", icon: "SwitchField" },
488
- "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
489
- "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
490
- "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
491
- "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
492
- "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
493
- "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
494
- "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
495
- "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
496
- "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
497
- "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
498
- "data-grid-column": { type: "data-grid-column", name: "表格列" },
499
- module: { type: "Module", name: "模块", icon: "Module" },
500
- component: { type: "component", name: "组件", icon: "Component" },
501
- tabs: { type: "tabs", name: "标签页", icon: "Tab" },
502
- "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
503
- "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
504
- "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
505
- section: { type: "section", name: "分组面板", icon: "Section" },
506
- "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
507
- "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
508
- splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
509
- "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
510
- "component-ref": { type: "component-ref", name: "组件引用节点" },
511
- uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
512
- "page-header": { type: "page-header", name: "页头", icon: "Header" },
513
- "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
514
- "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
515
- fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
516
- }, Ae = {}, Ne = {};
517
- Fe();
518
- function Be(n, e, t = /* @__PURE__ */ new Map(), r = (s, f, d) => f, i = {}, a = (s) => s) {
519
- return ae[e.title] = e, ie[e.title] = r, Ae[e.title] = i, Ne[e.title] = a, (s = {}) => {
520
- const f = Pe(s, e, t), d = Object.keys(n).reduce((l, c) => (l[c] = n[c].default, l), {});
521
- return Object.assign(d, f);
477
+ const De = {}, we = {};
478
+ _e();
479
+ function Ne(t, e, r = /* @__PURE__ */ new Map(), n = (c, l, v, u) => l, i = {}, a = (c) => c) {
480
+ return I[e.title] = e, ee[e.title] = n, De[e.title] = i, we[e.title] = a, (c = {}) => {
481
+ const l = Te(c, e, r), v = Object.keys(t).reduce((u, o) => (u[o] = t[o].default, u), {});
482
+ return Object.assign(v, l);
522
483
  };
523
484
  }
524
- function Ue(n, e) {
485
+ function Oe(t, e) {
525
486
  return { customClass: e.class, customStyle: e.style };
526
487
  }
527
- const Ve = /* @__PURE__ */ new Map([
528
- ["appearance", Ue]
529
- ]), _e = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/nav.schema.json", je = "nav", We = "A Farris Component", $e = "object", Ge = {
488
+ const je = /* @__PURE__ */ new Map([
489
+ ["appearance", Oe]
490
+ ]), ke = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/nav.schema.json", Me = "nav", Re = "A Farris Component", Fe = "object", $e = {
530
491
  id: {
531
492
  description: "The unique identifier for a nav",
532
493
  type: "string"
@@ -618,22 +579,22 @@ const Ve = /* @__PURE__ */ new Map([
618
579
  type: "sting",
619
580
  default: ""
620
581
  }
621
- }, qe = [
582
+ }, Be = [
622
583
  "id",
623
584
  "type"
624
- ], ze = {
625
- $schema: _e,
626
- $id: Oe,
627
- title: je,
628
- description: We,
629
- type: $e,
630
- properties: Ge,
631
- required: qe
585
+ ], Le = {
586
+ $schema: ke,
587
+ $id: Ae,
588
+ title: Me,
589
+ description: Re,
590
+ type: Fe,
591
+ properties: $e,
592
+ required: Be
632
593
  };
633
- function Xe(n, e, t) {
594
+ function Ve(t, e, r) {
634
595
  return e;
635
596
  }
636
- const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
597
+ const qe = "nav", Ue = "A Farris Component", ze = "object", He = {
637
598
  basic: {
638
599
  description: "Basic Infomation",
639
600
  title: "基本信息",
@@ -704,7 +665,7 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
704
665
  },
705
666
  {
706
667
  value: "center",
707
- name: "居中对齐"
668
+ name: "居中"
708
669
  },
709
670
  {
710
671
  value: "right",
@@ -715,12 +676,12 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
715
676
  }
716
677
  }
717
678
  }
718
- }, xe = {
719
- title: Ye,
720
- description: Je,
721
- type: Qe,
722
- categories: Ze
723
- }, z = {
679
+ }, We = {
680
+ title: qe,
681
+ description: Ue,
682
+ type: ze,
683
+ categories: He
684
+ }, B = {
724
685
  /** 未读最大值 */
725
686
  maxNum: { Type: Number, default: 99 },
726
687
  /** 导航数据 */
@@ -753,703 +714,244 @@ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
753
714
  /** 当前激活的id */
754
715
  activeNavId: { Type: String, default: "1" },
755
716
  /** nav切换前事件 */
756
- navPicking: { Type: Function, default: (n) => Te }
757
- }, R = Be(z, ze, Ve, Xe, xe), U = /* @__PURE__ */ K({
717
+ navPicking: { Type: Function, default: (t) => me }
718
+ }, J = Ne(B, Le, je, Ve, We), j = /* @__PURE__ */ Q({
758
719
  name: "FNav",
759
- props: z,
720
+ props: B,
760
721
  emits: ["nav", "update:activeNavId"],
761
- setup(n, e) {
762
- const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
763
- L(n.navPicking), ue(() => n.activeNavId, (c, o) => {
764
- c !== o && (t.value = c);
722
+ setup(t, e) {
723
+ const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
724
+ g(t.navPicking), ne(() => t.activeNavId, (o, s) => {
725
+ o !== s && (r.value = o);
765
726
  });
766
- const a = P({
727
+ const a = T({
767
728
  get() {
768
- return r.value;
729
+ return n.value;
769
730
  },
770
- set(c) {
771
- r.value = c, d();
731
+ set(o) {
732
+ n.value = o, v();
772
733
  }
773
- }), s = P({
734
+ }), c = T({
774
735
  get() {
775
- return t.value;
736
+ return r.value;
776
737
  },
777
- set(c) {
778
- if (t.value = c, t.value && a && a.value.length) {
779
- const o = a.value.find((p) => p.id === t.value);
780
- o && e.emit("nav", o);
738
+ set(o) {
739
+ if (r.value = o, r.value && a && a.value.length) {
740
+ const s = a.value.find((p) => p.id === r.value);
741
+ s && e.emit("nav", s);
781
742
  }
782
743
  }
783
- }), f = P({
784
- set(c) {
785
- i.value = c;
744
+ }), l = T({
745
+ set(o) {
746
+ i.value = o;
786
747
  },
787
748
  get() {
788
749
  return i.value;
789
750
  }
790
751
  });
791
- function d() {
792
- if (a.value && a.value.length && !t.value) {
793
- const c = a.value.find((o) => !o.disable);
794
- c && (t.value = c.id);
752
+ function v() {
753
+ if (a.value && a.value.length && !r.value) {
754
+ const o = a.value.find((s) => !s.disable);
755
+ o && (r.value = o.id);
795
756
  }
796
757
  }
797
- function l(c) {
798
- c.disable || c.id === t.value || (t.value = c.id, e.emit("update:activeNavId", c.id), e.emit("nav", c));
758
+ function u(o) {
759
+ o.disable || o.id === r.value || (r.value = o.id, e.emit("update:activeNavId", o.id), e.emit("nav", o));
799
760
  }
800
761
  return () => {
801
- var c;
802
- return T("div", {
762
+ var o;
763
+ return b("div", {
803
764
  class: ["farris-nav", {
804
- "farris-nav-vertical": !f.value
765
+ "farris-nav-vertical": !l.value
805
766
  }]
806
- }, [(c = a.value) == null ? void 0 : c.map((o) => T("div", {
767
+ }, [(o = a.value) == null ? void 0 : o.map((s) => b("div", {
807
768
  class: ["farris-nav-item", {
808
- active: o.id === s.value
769
+ active: s.id === c.value
809
770
  }, {
810
- disabled: o.disable
771
+ disabled: s.disable
811
772
  }],
812
- onClick: () => l(o)
813
- }, [T("div", {
773
+ onClick: () => u(s)
774
+ }, [b("div", {
814
775
  class: "farris-nav-item-link"
815
- }, [T("span", {
776
+ }, [b("span", {
816
777
  class: "farris-nav-item-link-text"
817
- }, [typeof o.text == "function" ? o.text() : o.text, o.num && T("div", {
778
+ }, [typeof s.text == "function" ? s.text() : s.text, s.num && b("div", {
818
779
  class: "farris-nav-item-tag"
819
- }, [o.num <= n.maxNum && T("span", {
780
+ }, [s.num <= t.maxNum && b("span", {
820
781
  class: "tag-text"
821
- }, [o.num]), o.num > n.maxNum && T("span", {
782
+ }, [s.num]), s.num > t.maxNum && b("span", {
822
783
  class: "tag-text"
823
- }, [n.maxNum, H("+")])])])])]))]);
784
+ }, [t.maxNum, X("+")])])])])]))]);
824
785
  };
825
786
  }
826
787
  });
827
- function Re(n, e, t) {
828
- var D;
829
- function r() {
830
- t != null && t.resolveComponentContext && t.resolveComponentContext();
831
- }
832
- r();
833
- const i = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", s = L();
834
- function f() {
835
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
788
+ function Ye(t, e, r) {
789
+ var q;
790
+ const n = "", i = "", a = g();
791
+ function c() {
792
+ return (e == null ? void 0 : e.schema.componentType) !== "frame";
836
793
  }
837
- function d() {
794
+ function l() {
838
795
  return !1;
839
796
  }
840
- function l() {
841
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
797
+ function v() {
798
+ return (e == null ? void 0 : e.schema.componentType) !== "frame";
842
799
  }
843
- function c() {
844
- return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
800
+ function u() {
801
+ return (e == null ? void 0 : e.schema.componentType) === "frame";
845
802
  }
846
- function o(b) {
847
- if (!b || !b.value)
803
+ function o(h) {
804
+ if (!h || !h.value)
848
805
  return null;
849
- if (b.value.schema && b.value.schema.type === "component")
850
- return b.value;
851
- const S = L(b == null ? void 0 : b.value.parent), w = o(S);
852
- return w || null;
806
+ if (h.value.schema && h.value.schema.type === "component")
807
+ return h.value;
808
+ const S = g(h == null ? void 0 : h.value.parent), m = o(S);
809
+ return m || null;
853
810
  }
854
- function p(b = e) {
855
- const { componentInstance: S, designerItemElementRef: w } = b;
856
- return !S || !S.value ? null : S.value.canMove ? w : p(b.parent);
811
+ function s(h = e) {
812
+ const { componentInstance: S, designerItemElementRef: m } = h;
813
+ return !S || !S.value ? null : S.value.canMove ? m : s(h.parent);
857
814
  }
858
- function m(b) {
859
- return !!t && t.canAccepts(b);
815
+ function p(h) {
816
+ return !!r;
860
817
  }
861
- function y() {
818
+ function f() {
862
819
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
863
820
  }
864
- function u() {
821
+ function d() {
822
+ }
823
+ function y(h, S) {
865
824
  }
866
- function v(b, S) {
867
- S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
825
+ function L(h, S) {
826
+ const { componentType: m } = h;
827
+ let P = te(m, h, S);
828
+ const re = m.toLowerCase().replace(/-/g, "_");
829
+ return P && !P.id && P.type === m && (P.id = `${re}_${Math.random().toString().slice(2, 6)}`), P;
868
830
  }
869
- function C(b, S) {
870
- const { componentType: w } = b;
871
- let E = q(w, b, S);
872
- t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
873
- const A = w.toLowerCase().replace("-", "_");
874
- return E && !E.id && E.type === w && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
831
+ function _(h) {
875
832
  }
876
- function h(b) {
833
+ function V(...h) {
877
834
  }
878
- function g(...b) {
879
- if (t && t.getPropsConfig)
880
- return t.getPropsConfig(...b);
835
+ function w() {
836
+ e != null && e.schema.contents && e.schema.contents.map((h) => {
837
+ var P;
838
+ let S = h.id;
839
+ h.type === "component-ref" && (S = h.component);
840
+ const m = t.value.querySelector(`#${S}-design-item`);
841
+ (P = m == null ? void 0 : m.componentInstance) != null && P.value.onRemoveComponent && m.componentInstance.value.onRemoveComponent();
842
+ });
881
843
  }
882
- return s.value = {
883
- canMove: f(),
884
- canSelectParent: d(),
885
- canDelete: l(),
886
- canNested: !c(),
844
+ return a.value = {
845
+ canMove: c(),
846
+ canSelectParent: l(),
847
+ canDelete: v(),
848
+ canNested: !u(),
887
849
  contents: e == null ? void 0 : e.schema.contents,
888
- elementRef: n,
889
- parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
850
+ elementRef: t,
851
+ parent: (q = e == null ? void 0 : e.parent) == null ? void 0 : q.componentInstance,
890
852
  schema: e == null ? void 0 : e.schema,
891
- styles: i,
892
- designerClass: a,
893
- canAccepts: m,
853
+ styles: n,
854
+ designerClass: i,
855
+ canAccepts: p,
894
856
  getBelongedComponentInstance: o,
895
- getDraggableDesignItemElement: p,
896
- getDraggingDisplayText: y,
897
- getPropConfig: g,
898
- getDragScopeElement: u,
899
- onAcceptMovedChildElement: v,
900
- onChildElementMovedOut: h,
901
- addNewChildComponentSchema: C,
902
- updateDragAndDropRules: r,
903
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || L(!1),
904
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || L(!1)
905
- }, s;
906
- }
907
- function Ke() {
908
- function n(e, t) {
909
- var s;
910
- if (!e)
911
- return !1;
912
- const r = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
913
- if (!r)
914
- return !1;
915
- const i = r.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
916
- return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(i) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(i)));
917
- }
918
- return {
919
- basalDragulaRuleForContainer: n
920
- };
921
- }
922
- class He {
923
- getTemplateRule(e, t) {
924
- const r = t == null ? void 0 : t.formSchemaUtils, i = r == null ? void 0 : r.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
925
- if (!i)
926
- return a;
927
- const s = this.getComponentContext(e);
928
- return s.componentClassList.forEach((d) => {
929
- if (!d || !i[d])
930
- return;
931
- const { canMove: l, canDelete: c, canAccept: o } = i[d];
932
- a.canMove = a.canMove && this.resolveRuleValue(l, s), a.canDelete = a.canDelete && this.resolveRuleValue(c, s), a.canAccept = a.canAccept && this.resolveRuleValue(o, s);
933
- }), a;
934
- }
935
- resolveRuleValue(e, t) {
936
- return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
937
- }
938
- parseRuleValueSchema(e, t) {
939
- const r = e.invalidContext || [];
940
- let i = !0;
941
- for (const a of r) {
942
- if (a.firstLevelChild) {
943
- if (a.firstLevelChild.class) {
944
- const s = t.firstLevelChildClassList;
945
- if (s && !s.includes(a.firstLevelChild.class)) {
946
- i = !1;
947
- continue;
948
- }
949
- }
950
- if (a.firstLevelChild.type) {
951
- const s = t.firstLevelChildSchema;
952
- if (s && s.type !== a.firstLevelChild.type) {
953
- i = !1;
954
- continue;
955
- }
956
- }
957
- }
958
- if (a.secondLevelChild) {
959
- if (a.secondLevelChild.class) {
960
- const s = t.secondLevelChildClassList;
961
- if (s && !s.includes(a.secondLevelChild.class)) {
962
- i = !1;
963
- continue;
964
- }
965
- }
966
- if (a.secondLevelChild.type) {
967
- const s = t.secondLevelChildSchema;
968
- if (s && s.type !== a.secondLevelChild.type) {
969
- i = !1;
970
- continue;
971
- }
972
- }
973
- }
974
- if (a.parent) {
975
- if (a.parent.class) {
976
- const s = t.parentClassList;
977
- if (s && !s.includes(a.parent.class)) {
978
- i = !1;
979
- continue;
980
- }
981
- }
982
- if (a.parent.type) {
983
- const s = t.parentSchema;
984
- if (s && s.type !== a.parent.type) {
985
- i = !1;
986
- continue;
987
- }
988
- }
989
- }
990
- i = !0;
991
- break;
992
- }
993
- return !i;
994
- }
995
- getComponentContext(e) {
996
- var u, v, C, h;
997
- const t = e.schema, r = t.appearance && t.appearance.class || "", i = r.split(" ") || [], a = t.contents || [], s = a.length ? a[0] : null, f = s && s.appearance ? s.appearance.class : "", d = f ? f.split(" ") : [], l = (u = s == null ? void 0 : s.contents) != null && u.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", o = c ? c.split(" ") : [], p = t.type === "component" ? (C = (v = e.parent) == null ? void 0 : v.parent) == null ? void 0 : C.schema : (h = e.parent) == null ? void 0 : h.schema, m = p && p.appearance && p.appearance.class || "", y = m ? m.split(" ") : [];
998
- return {
999
- componentClass: r,
1000
- componentClassList: i,
1001
- childContents: a,
1002
- firstLevelChildSchema: s,
1003
- firstLevelChildClass: f,
1004
- firstLevelChildClassList: d,
1005
- secondLevelChildSchema: l,
1006
- secondLevelChildClass: c,
1007
- secondLevelChildClassList: o,
1008
- parentSchema: p,
1009
- parentClass: m,
1010
- parentClassList: y
1011
- };
1012
- }
1013
- }
1014
- class et {
1015
- constructor(e, t) {
1016
- M(this, "componentId");
1017
- M(this, "viewModelId");
1018
- M(this, "eventsEditorUtils");
1019
- M(this, "formSchemaUtils");
1020
- M(this, "formMetadataConverter");
1021
- M(this, "designViewModelUtils");
1022
- M(this, "designViewModelField");
1023
- M(this, "controlCreatorUtils");
1024
- M(this, "designerHostService");
1025
- M(this, "schemaService", null);
1026
- M(this, "metadataService", null);
1027
- M(this, "propertyConfig", {
1028
- type: "object",
1029
- categories: {}
1030
- });
1031
- var r;
1032
- this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1033
- }
1034
- getTableInfo() {
1035
- var e;
1036
- return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
1037
- }
1038
- setDesignViewModelField(e) {
1039
- const t = e.binding && e.binding.type === "Form" && e.binding.field;
1040
- if (t) {
1041
- if (!this.designViewModelField) {
1042
- const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
1043
- this.designViewModelField = r.fields.find((i) => i.id === t);
1044
- }
1045
- e.updateOn = this.designViewModelField.updateOn;
1046
- }
1047
- }
1048
- changeFieldEditorType(e, t) {
1049
- }
1050
- getBasicPropConfig(e) {
1051
- return {
1052
- description: "Basic Information",
1053
- title: "基本信息",
1054
- properties: {
1055
- id: {
1056
- description: "组件标识",
1057
- title: "标识",
1058
- type: "string",
1059
- readonly: !0
1060
- },
1061
- type: {
1062
- description: "组件类型",
1063
- title: "控件类型",
1064
- type: "select",
1065
- editor: {
1066
- type: "combo-list",
1067
- textField: "name",
1068
- valueField: "value",
1069
- data: [{ value: e.type, name: k[e.type].name }]
1070
- }
1071
- }
1072
- }
1073
- };
1074
- }
1075
- getAppearanceConfig(e = null) {
1076
- return {
1077
- title: "样式",
1078
- description: "Appearance",
1079
- properties: {
1080
- class: {
1081
- title: "class样式",
1082
- type: "string",
1083
- description: "组件的CSS样式",
1084
- $converter: "/converter/appearance.converter"
1085
- },
1086
- style: {
1087
- title: "style样式",
1088
- type: "string",
1089
- description: "组件的样式",
1090
- $converter: "/converter/appearance.converter"
1091
- }
1092
- }
1093
- };
1094
- }
1095
- /**
1096
- *
1097
- * @param propertyId
1098
- * @param componentInstance
1099
- * @returns
1100
- */
1101
- updateElementByParentContainer(e, t) {
1102
- const r = t && t.parent && t.parent.schema;
1103
- if (!r)
1104
- return;
1105
- const i = r.contents.findIndex((s) => s.id === e), a = ee(r.contents[i]);
1106
- r.contents.splice(i, 1), r.contents.splice(i, 0, a);
1107
- }
1108
- }
1109
- class tt {
1110
- constructor() {
1111
- /** 控件标题 */
1112
- M(this, "label", "");
1113
- /** 控件id */
1114
- M(this, "id", "");
1115
- /** 每个控件占用的栅格数 */
1116
- M(this, "columnInSM", 12);
1117
- M(this, "columnInMD", 6);
1118
- M(this, "columnInLG", 3);
1119
- M(this, "columnInEL", 2);
1120
- /** 每个控件占用的列数 */
1121
- M(this, "displayWidthInSM", 1);
1122
- M(this, "displayWidthInMD", 1);
1123
- M(this, "displayWidthInLG", 1);
1124
- M(this, "displayWidthInEL", 1);
1125
- /** 编辑器内部默认显示的屏幕大小-----可以去掉 */
1126
- M(this, "displayColumnCountAtBreakPoint", "md");
1127
- /** 控件所在行,传0即可-----编辑器内部使用 */
1128
- M(this, "tagRow", 0);
1129
- /** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
1130
- M(this, "showTopBorder", 0);
1131
- /** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
1132
- M(this, "group", 1);
1133
- /** 控件是否符合标准的class配置(设计器用的) */
1134
- M(this, "isSupportedClass", !0);
1135
- /** 控件所在分组id(设计器用的) */
1136
- M(this, "fieldSetId", "");
1137
- }
1138
- }
1139
- function nt(n) {
1140
- let e, t;
1141
- const r = /* @__PURE__ */ new Map();
1142
- let i = [];
1143
- function a(c, o) {
1144
- const m = c.split(" ").filter((h) => h.startsWith("col-"));
1145
- if (m.length === 0) {
1146
- o.isSupportedClass = !1;
1147
- return;
1148
- }
1149
- let y = m.find((h) => /^col-([1-9]|10|11|12)$/.test(h)), u = m.find((h) => /^col-md-([1-9]|10|11|12)$/.test(h)), v = m.find((h) => /^col-xl-([1-9]|10|11|12)$/.test(h)), C = m.find((h) => /^col-el-([1-9]|10|11|12)$/.test(h));
1150
- y = y || "col-12", o.columnInSM = parseInt(y.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), u = u || "col-md-" + o.columnInSM, o.columnInMD = parseInt(u.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), v = v || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(v.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), C = C || "col-el-" + o.columnInLG, o.columnInEL = parseInt(C.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
1151
- }
1152
- function s(c, o, p, m = !1) {
1153
- let y = !1;
1154
- c.contents.forEach((u) => {
1155
- if (u.type === "fieldset") {
1156
- p += 1, s(u, o, p, !0), y = !0;
1157
- return;
1158
- }
1159
- y && (p += 1, y = !1);
1160
- const v = u.appearance && u.appearance.class, C = new tt();
1161
- v ? a(v, C) : C.isSupportedClass = !1, C.label = u.label || u.id, C.id = u.id, C.group = p, m && (C.fieldSetId = c.id), t === u.id && (e = p), r.set(u.id, u), o.push(C);
1162
- });
1163
- }
1164
- function f(c) {
1165
- const o = n.getComponentById(c);
1166
- if (!o || !o.componentType || !o.componentType.startsWith("form"))
1167
- return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
1168
- const p = n.selectNode(o, (m) => m.type === V["response-form"].type);
1169
- return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
1170
- }
1171
- function d(c, o) {
1172
- o = o || c.id;
1173
- const { result: p, message: m, formNode: y } = f(o);
1174
- if (!p)
1175
- return { result: p, message: m };
1176
- t = c.id, i = [], r.clear();
1177
- const u = y.contents[0].type === V.fieldset.type ? 0 : 1;
1178
- s(y, i, u);
1179
- const v = i.find((h) => !h.isSupportedClass);
1180
- return {
1181
- defaultState: {
1182
- defaultGroupNumber: e || 1,
1183
- model: v ? "customize" : "standard"
1184
- },
1185
- importData: i
1186
- };
1187
- }
1188
- function l(c, o) {
1189
- o = o;
1190
- const { result: p, formNode: m } = f(o);
1191
- if (!p)
1192
- return "";
1193
- const y = [];
1194
- return c.forEach((u) => {
1195
- var h;
1196
- const v = r.get(u.id), C = v.appearance && v.appearance.class;
1197
- if (C) {
1198
- const D = C.split(" ").filter((se) => !se.startsWith("col-")), b = "col-" + u.columnInSM, S = "col-md-" + u.columnInMD, w = "col-xl-" + u.columnInLG, E = "col-el-" + u.columnInEL, A = [b, S, w, E].concat(D);
1199
- v.appearance.class = A.join(" ");
1200
- }
1201
- if (u.fieldSetId) {
1202
- const g = m.contents.find((b) => b.id === u.fieldSetId), D = y.find((b) => b.id === u.fieldSetId);
1203
- D ? (h = D.contents) == null || h.push(v) : (y.push(g), g.contents = [v]);
1204
- } else
1205
- y.push(v);
1206
- }), m.contents = y, m.id;
1207
- }
1208
- return {
1209
- checkCanFindFormNode: f,
1210
- checkCanOpenLayoutEditor: d,
1211
- changeFormControlsByResponseLayoutConfig: l,
1212
- getResonseFormLayoutConfig: s
1213
- };
1214
- }
1215
- function rt(n, e) {
1216
- function t(d, l = null) {
1217
- if (l) return l;
1218
- const c = n.getComponentById(e);
1219
- return n.selectNode(c, (o) => o.id === d);
1220
- }
1221
- function r(d) {
1222
- const l = n.getComponentById(d);
1223
- return !(!l || !l.componentType || !l.componentType.startsWith("form"));
1224
- }
1225
- function i(d) {
1226
- const l = t(d.id), c = nt(n), o = [];
1227
- c.getResonseFormLayoutConfig(l, o, 1);
1228
- const p = o.map((D) => D.columnInSM), m = o.map((D) => D.columnInMD), y = o.map((D) => D.columnInLG), u = o.map((D) => D.columnInEL), v = a(p) ? p[0] : 0, C = a(m) ? m[0] : 0, h = a(y) ? y[0] : 0, g = a(u) ? u[0] : 0;
1229
- return {
1230
- uniqueColClassInSM: v,
1231
- uniqueColClassInMD: C,
1232
- uniqueColClassInLG: h,
1233
- uniqueColClassInEL: g
1234
- };
1235
- }
1236
- function a(d) {
1237
- const l = new Set(d);
1238
- return Array.from(l).length === 1;
1239
- }
1240
- function s(d, l, c) {
1241
- d = t(c, d), d.contents.forEach((o) => {
1242
- if (o.type === V.fieldset.type) {
1243
- s(o, l, o.id);
1244
- return;
1245
- }
1246
- o.appearance || (o.appearance = {});
1247
- const p = o.appearance.class;
1248
- o.appearance.class = f(p, l);
1249
- });
1250
- }
1251
- function f(d, l) {
1252
- let c, o, p, m, y = [];
1253
- if (d) {
1254
- const D = d.split(" "), b = D.filter((S) => S.startsWith("col-"));
1255
- c = b.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), o = b.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = b.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = b.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S)), y = D.filter((S) => !S.startsWith("col-"));
1256
- }
1257
- const u = l.uniqueColClassInSM ? "col-" + l.uniqueColClassInSM : c, v = l.uniqueColClassInMD ? "col-md-" + l.uniqueColClassInMD : o, C = l.uniqueColClassInLG ? "col-xl-" + l.uniqueColClassInLG : p, h = l.uniqueColClassInEL ? "col-el-" + l.uniqueColClassInEL : m;
1258
- return [u, v, C, h].concat(y).join(" ");
1259
- }
1260
- return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: i, changeFormControlsByUnifiedLayoutConfig: s };
1261
- }
1262
- class ot extends et {
1263
- constructor(e, t) {
1264
- super(e, t);
1265
- }
1266
- getPropertyConfig(e, t) {
1267
- var r = this;
1268
- this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
1269
- const { checkIsInFormComponent: i, assembleUnifiedLayoutContext: a, changeFormControlsByUnifiedLayoutConfig: s } = rt(this.formSchemaUtils, this.componentId), f = this.getAppearanceConfig(e);
1270
- return f.properties.unifiedLayout = {
1271
- title: "统一布局配置",
1272
- description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
1273
- visible: i(this.componentId),
1274
- refreshPanelAfterChanged: !0,
1275
- editor: {
1276
- type: "response-form-layout-setting",
1277
- initialState: a(e)
1278
- }
1279
- }, f.setPropertyRelates = function(d, l) {
1280
- if (d)
1281
- switch (d && d.propertyID) {
1282
- case "unifiedLayout": {
1283
- s(null, d.propertyValue, e.id), r.updateElementByParentContainer(e.id, t);
1284
- break;
1285
- }
1286
- }
1287
- }, this.propertyConfig.categories.appearance = f, this.propertyConfig;
1288
- }
1289
- }
1290
- function at(n, e) {
1291
- const t = n.schema, r = new He(), { canMove: i, canAccept: a, canDelete: s } = r.getTemplateRule(n, e);
1292
- function f(h) {
1293
- const g = r.getComponentContext(n);
1294
- return g && g.componentClassList && g.componentClassList.includes("f-form-layout") && g.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
1295
- }
1296
- function d(h) {
1297
- return !(!Ke().basalDragulaRuleForContainer(h, e) || !a || !f(h));
1298
- }
1299
- function l(h) {
1300
- pe();
1301
- }
1302
- function c() {
1303
- return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1304
- }
1305
- function o(h, g) {
1306
- const D = t;
1307
- if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
1308
- const { label: w } = h, E = q("form-group");
1309
- return E.editor = g, E.label = w, p(E), delete E.editor.id, delete E.editor.binding, delete E.editor.appearance, delete E.editor.visible, E;
1310
- }
1311
- return g;
1312
- }
1313
- function p(h) {
1314
- const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1315
- if (g && g.schema && g.schema.componentType) {
1316
- const D = g.schema.formColumns;
1317
- let b = m(D);
1318
- b = e == null ? void 0 : e.formSchemaUtils.getControlClassByFormUnifiedLayout(b, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = b;
1319
- }
1320
- }
1321
- function m(h) {
1322
- let g = "";
1323
- switch (h) {
1324
- case 1: {
1325
- g = "col-12";
1326
- break;
1327
- }
1328
- case 2: {
1329
- g = "col-12 col-md-6 col-xl-6 col-el-6";
1330
- break;
1331
- }
1332
- case 3: {
1333
- g = "col-12 col-md-6 col-xl-4 col-el-4";
1334
- break;
1335
- }
1336
- case 4: {
1337
- g = "col-12 col-md-6 col-xl-3 col-el-2";
1338
- break;
1339
- }
1340
- }
1341
- return g;
1342
- }
1343
- function y() {
1344
- return i;
1345
- }
1346
- function u() {
1347
- return s;
1348
- }
1349
- function v() {
1350
- return !1;
1351
- }
1352
- function C(h) {
1353
- return new ot(h, e).getPropertyConfig(t, n.componentInstance.value);
1354
- }
1355
- return {
1356
- canAccepts: d,
1357
- checkCanDeleteComponent: u,
1358
- checkCanMoveComponent: y,
1359
- getStyles: c,
1360
- getPropsConfig: C,
1361
- hideNestedPaddingInDesginerView: v,
1362
- onAcceptMovedChildElement: l,
1363
- onResolveNewComponentSchema: o
1364
- };
1365
- }
1366
- const it = /* @__PURE__ */ K({
857
+ getDraggableDesignItemElement: s,
858
+ getDraggingDisplayText: f,
859
+ getPropConfig: V,
860
+ getDragScopeElement: d,
861
+ onAcceptMovedChildElement: y,
862
+ onChildElementMovedOut: _,
863
+ addNewChildComponentSchema: L,
864
+ triggerBelongedComponentToMoveWhenMoved: g(!1),
865
+ triggerBelongedComponentToDeleteWhenDeleted: g(!1),
866
+ onRemoveComponent: w
867
+ }, a;
868
+ }
869
+ const Ge = /* @__PURE__ */ Q({
1367
870
  name: "FNavDesign",
1368
- props: z,
871
+ props: B,
1369
872
  emits: ["nav"],
1370
- setup(n, e) {
1371
- var y;
1372
- const t = L(n.activeNavId), r = L(n.navData), i = L(n.horizontal);
1373
- L(n.navPicking);
1374
- const a = L(), s = fe("design-item-context"), f = at(s.schema, (y = s.parent) == null ? void 0 : y.schema), d = Re(a, s, f);
1375
- de(() => {
1376
- a.value.componentInstance = d;
1377
- }), e.expose(d.value);
1378
- const l = P({
873
+ setup(t, e) {
874
+ const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
875
+ g(t.navPicking);
876
+ const a = g(), c = ie("design-item-context"), l = Ye(a, c);
877
+ ae(() => {
878
+ a.value.componentInstance = l;
879
+ }), e.expose(l.value);
880
+ const v = T({
1379
881
  get() {
1380
- return r.value;
882
+ return n.value;
1381
883
  },
1382
- set(u) {
1383
- r.value = u, p();
884
+ set(f) {
885
+ n.value = f, s();
1384
886
  }
1385
- }), c = P({
887
+ }), u = T({
1386
888
  get() {
1387
- return t.value;
889
+ return r.value;
1388
890
  },
1389
- set(u) {
1390
- if (t.value = u, t.value && l && l.value.length) {
1391
- const v = l.value.find((C) => C.id === t.value);
1392
- v && e.emit("nav", v);
891
+ set(f) {
892
+ if (r.value = f, r.value && v && v.value.length) {
893
+ const d = v.value.find((y) => y.id === r.value);
894
+ d && e.emit("nav", d);
1393
895
  }
1394
896
  }
1395
- }), o = P({
1396
- set(u) {
1397
- i.value = u;
897
+ }), o = T({
898
+ set(f) {
899
+ i.value = f;
1398
900
  },
1399
901
  get() {
1400
902
  return i.value;
1401
903
  }
1402
904
  });
1403
- function p() {
1404
- if (l.value && l.value.length && !t.value) {
1405
- const u = l.value.find((v) => !v.disable);
1406
- u && (t.value = u.id);
905
+ function s() {
906
+ if (v.value && v.value.length && !r.value) {
907
+ const f = v.value.find((d) => !d.disable);
908
+ f && (r.value = f.id);
1407
909
  }
1408
910
  }
1409
- function m(u) {
1410
- u.disable || u.id === t.value || (t.value = u.id, e.emit("nav", u));
911
+ function p(f) {
912
+ f.disable || f.id === r.value || (r.value = f.id, e.emit("nav", f));
1411
913
  }
1412
914
  return () => {
1413
- var u;
1414
- return T("div", {
915
+ var f;
916
+ return b("div", {
1415
917
  ref: a,
1416
918
  class: ["farris-nav", {
1417
919
  "farris-nav-vertical": !o.value
1418
920
  }]
1419
- }, [(u = l.value) == null ? void 0 : u.map((v) => T("div", {
921
+ }, [(f = v.value) == null ? void 0 : f.map((d) => b("div", {
1420
922
  class: ["farris-nav-item", {
1421
- active: v.id === c.value
923
+ active: d.id === u.value
1422
924
  }, {
1423
- disabled: v.disable
925
+ disabled: d.disable
1424
926
  }],
1425
- onClick: () => m(v)
1426
- }, [T("div", {
927
+ onClick: () => p(d)
928
+ }, [b("div", {
1427
929
  class: "farris-nav-item-link"
1428
- }, [T("span", {
930
+ }, [b("span", {
1429
931
  class: "farris-nav-item-link-text"
1430
- }, [v.text, v.num && T("div", {
932
+ }, [d.text, d.num && b("div", {
1431
933
  class: "farris-nav-item-tag"
1432
- }, [v.num <= n.maxNum && T("span", {
934
+ }, [d.num <= t.maxNum && b("span", {
1433
935
  class: "tag-text"
1434
- }, [v.num]), v.num > n.maxNum && T("span", {
936
+ }, [d.num]), d.num > t.maxNum && b("span", {
1435
937
  class: "tag-text"
1436
- }, [n.maxNum, H("+")])])])])]))]);
938
+ }, [t.maxNum, X("+")])])])])]))]);
1437
939
  };
1438
940
  }
1439
- }), pt = {
1440
- install(n) {
1441
- n.component(U.name, U);
941
+ }), Xe = {
942
+ install(t) {
943
+ t.component(j.name, j);
1442
944
  },
1443
- register(n, e, t, r) {
1444
- n.nav = U, e.nav = R;
945
+ register(t, e, r, n) {
946
+ t.nav = j, e.nav = J;
1445
947
  },
1446
- registerDesigner(n, e, t) {
1447
- n.nav = it, e.nav = R;
948
+ registerDesigner(t, e, r) {
949
+ t.nav = Ge, e.nav = J;
1448
950
  }
1449
951
  };
1450
952
  export {
1451
- U as FNav,
1452
- pt as default,
1453
- z as navProps,
1454
- R as propsResolver
953
+ j as FNav,
954
+ Xe as default,
955
+ B as navProps,
956
+ J as propsResolver
1455
957
  };