@farris/ui-vue 1.2.9 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,489 +1,532 @@
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
- var Y = function(n, t) {
4
- return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
5
- e.__proto__ = r;
6
- } || function(e, r) {
7
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
8
- }, Y(n, t);
1
+ var le = Object.defineProperty;
2
+ var ce = (n, e, t) => e in n ? le(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var M = (n, e, t) => ce(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as K, ref as L, watch as ue, computed as P, createVNode as T, createTextVNode as H, nextTick as pe, inject as fe, onMounted as de } from "vue";
5
+ import { isPlainObject as X, cloneDeep as ee } from "lodash-es";
6
+ import { DgControl as V } from "../designer-canvas/index.esm.js";
7
+ var _ = function(n, e) {
8
+ return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
9
+ t.__proto__ = r;
10
+ } || function(t, r) {
11
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
12
+ }, _(n, e);
9
13
  };
10
- function se(n, t) {
11
- if (typeof t != "function" && t !== null)
12
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
13
- Y(n, t);
14
- function e() {
14
+ function te(n, e) {
15
+ if (typeof e != "function" && e !== null)
16
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
17
+ _(n, e);
18
+ function t() {
15
19
  this.constructor = n;
16
20
  }
17
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
21
+ n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
18
22
  }
19
- function ee(n) {
20
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
21
- if (e) return e.call(n);
23
+ function Y(n) {
24
+ var e = typeof Symbol == "function" && Symbol.iterator, t = e && n[e], r = 0;
25
+ if (t) return t.call(n);
22
26
  if (n && typeof n.length == "number") return {
23
27
  next: function() {
24
28
  return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
25
29
  }
26
30
  };
27
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
31
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
28
32
  }
29
- function G(n, t) {
30
- var e = typeof Symbol == "function" && n[Symbol.iterator];
31
- if (!e) return n;
32
- var r = e.call(n), o, a = [], l;
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;
33
37
  try {
34
- for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
35
- } catch (d) {
36
- l = { error: d };
38
+ for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
39
+ } catch (f) {
40
+ s = { error: f };
37
41
  } finally {
38
42
  try {
39
- o && !o.done && (e = r.return) && e.call(r);
43
+ i && !i.done && (t = r.return) && t.call(r);
40
44
  } finally {
41
- if (l) throw l.error;
45
+ if (s) throw s.error;
42
46
  }
43
47
  }
44
48
  return a;
45
49
  }
46
- function J(n, t, e) {
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
+ 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));
50
54
  }
51
- function O(n) {
55
+ function I(n) {
52
56
  return typeof n == "function";
53
57
  }
54
- function Te(n) {
55
- var t = function(r) {
58
+ function me(n) {
59
+ var e = function(r) {
56
60
  Error.call(r), r.stack = new Error().stack;
57
- }, e = n(t);
58
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
61
+ }, t = n(e);
62
+ return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
59
63
  }
60
- var U = Te(function(n) {
61
- return function(e) {
62
- n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
63
- ` + e.map(function(r, o) {
64
- return o + 1 + ") " + r.toString();
64
+ var N = me(function(n) {
65
+ return function(t) {
66
+ n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
67
+ ` + t.map(function(r, i) {
68
+ return i + 1 + ") " + r.toString();
65
69
  }).join(`
66
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
70
+ `) : "", this.name = "UnsubscriptionError", this.errors = t;
67
71
  };
68
72
  });
69
- function te(n, t) {
73
+ function J(n, e) {
70
74
  if (n) {
71
- var e = n.indexOf(t);
72
- 0 <= e && n.splice(e, 1);
75
+ var t = n.indexOf(e);
76
+ 0 <= t && n.splice(t, 1);
73
77
  }
74
78
  }
75
- var X = function() {
76
- function n(t) {
77
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
79
+ var $ = function() {
80
+ function n(e) {
81
+ this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
78
82
  }
79
83
  return n.prototype.unsubscribe = function() {
80
- var t, e, r, o, a;
84
+ var e, t, r, i, a;
81
85
  if (!this.closed) {
82
86
  this.closed = !0;
83
- var l = this._parentage;
84
- if (l)
85
- if (this._parentage = null, Array.isArray(l))
87
+ var s = this._parentage;
88
+ if (s)
89
+ if (this._parentage = null, Array.isArray(s))
86
90
  try {
87
- for (var d = ee(l), v = d.next(); !v.done; v = d.next()) {
88
- var u = v.value;
89
- u.remove(this);
91
+ for (var f = Y(s), d = f.next(); !d.done; d = f.next()) {
92
+ var l = d.value;
93
+ l.remove(this);
90
94
  }
91
- } catch (c) {
92
- t = { error: c };
95
+ } catch (u) {
96
+ e = { error: u };
93
97
  } finally {
94
98
  try {
95
- v && !v.done && (e = d.return) && e.call(d);
99
+ d && !d.done && (t = f.return) && t.call(f);
96
100
  } finally {
97
- if (t) throw t.error;
101
+ if (e) throw e.error;
98
102
  }
99
103
  }
100
104
  else
101
- l.remove(this);
102
- var p = this.initialTeardown;
103
- if (O(p))
105
+ s.remove(this);
106
+ var c = this.initialTeardown;
107
+ if (I(c))
104
108
  try {
105
- p();
106
- } catch (c) {
107
- a = c instanceof U ? c.errors : [c];
109
+ c();
110
+ } catch (u) {
111
+ a = u instanceof N ? u.errors : [u];
108
112
  }
109
- var f = this._finalizers;
110
- if (f) {
113
+ var o = this._finalizers;
114
+ if (o) {
111
115
  this._finalizers = null;
112
116
  try {
113
- for (var b = ee(f), j = b.next(); !j.done; j = b.next()) {
114
- var i = j.value;
117
+ for (var p = Y(o), m = p.next(); !m.done; m = p.next()) {
118
+ var y = m.value;
115
119
  try {
116
- ne(i);
117
- } catch (c) {
118
- a = a ?? [], c instanceof U ? a = J(J([], G(a)), G(c.errors)) : a.push(c);
120
+ Q(y);
121
+ } catch (u) {
122
+ a = a ?? [], u instanceof N ? a = j(j([], O(a)), O(u.errors)) : a.push(u);
119
123
  }
120
124
  }
121
- } catch (c) {
122
- r = { error: c };
125
+ } catch (u) {
126
+ r = { error: u };
123
127
  } finally {
124
128
  try {
125
- j && !j.done && (o = b.return) && o.call(b);
129
+ m && !m.done && (i = p.return) && i.call(p);
126
130
  } finally {
127
131
  if (r) throw r.error;
128
132
  }
129
133
  }
130
134
  }
131
135
  if (a)
132
- throw new U(a);
136
+ throw new N(a);
133
137
  }
134
- }, n.prototype.add = function(t) {
135
- var e;
136
- if (t && t !== this)
138
+ }, n.prototype.add = function(e) {
139
+ var t;
140
+ if (e && e !== this)
137
141
  if (this.closed)
138
- ne(t);
142
+ Q(e);
139
143
  else {
140
- if (t instanceof n) {
141
- if (t.closed || t._hasParent(this))
144
+ if (e instanceof n) {
145
+ if (e.closed || e._hasParent(this))
142
146
  return;
143
- t._addParent(this);
147
+ e._addParent(this);
144
148
  }
145
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
149
+ (this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(e);
146
150
  }
147
- }, n.prototype._hasParent = function(t) {
148
- var e = this._parentage;
149
- return e === t || Array.isArray(e) && e.includes(t);
150
- }, n.prototype._addParent = function(t) {
151
- var e = this._parentage;
152
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
153
- }, n.prototype._removeParent = function(t) {
154
- var e = this._parentage;
155
- e === t ? this._parentage = null : Array.isArray(e) && te(e, t);
156
- }, n.prototype.remove = function(t) {
157
- var e = this._finalizers;
158
- e && te(e, t), t instanceof n && t._removeParent(this);
151
+ }, n.prototype._hasParent = function(e) {
152
+ var t = this._parentage;
153
+ return t === e || Array.isArray(t) && t.includes(e);
154
+ }, n.prototype._addParent = function(e) {
155
+ var t = this._parentage;
156
+ this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
157
+ }, n.prototype._removeParent = function(e) {
158
+ var t = this._parentage;
159
+ t === e ? this._parentage = null : Array.isArray(t) && J(t, e);
160
+ }, n.prototype.remove = function(e) {
161
+ var t = this._finalizers;
162
+ t && J(t, e), e instanceof n && e._removeParent(this);
159
163
  }, n.EMPTY = function() {
160
- var t = new n();
161
- return t.closed = !0, t;
164
+ var e = new n();
165
+ return e.closed = !0, e;
162
166
  }(), n;
163
167
  }();
164
- X.EMPTY;
165
- function pe(n) {
166
- return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
167
- }
168
+ $.EMPTY;
168
169
  function ne(n) {
169
- O(n) ? n() : n.unsubscribe();
170
+ return n instanceof $ || n && "closed" in n && I(n.remove) && I(n.add) && I(n.unsubscribe);
170
171
  }
171
- var le = {
172
+ function Q(n) {
173
+ I(n) ? n() : n.unsubscribe();
174
+ }
175
+ var re = {
172
176
  onUnhandledError: null,
173
177
  onStoppedNotification: null,
174
178
  Promise: void 0,
175
179
  useDeprecatedSynchronousErrorHandling: !1,
176
180
  useDeprecatedNextContext: !1
177
- }, Se = {
178
- setTimeout: function(n, t) {
179
- for (var e = [], r = 2; r < arguments.length; r++)
180
- e[r - 2] = arguments[r];
181
- return setTimeout.apply(void 0, J([n, t], G(e)));
181
+ }, he = {
182
+ setTimeout: function(n, e) {
183
+ for (var t = [], r = 2; r < arguments.length; r++)
184
+ t[r - 2] = arguments[r];
185
+ return setTimeout.apply(void 0, j([n, e], O(t)));
182
186
  },
183
187
  clearTimeout: function(n) {
184
188
  return clearTimeout(n);
185
189
  },
186
190
  delegate: void 0
187
191
  };
188
- function Ee(n) {
189
- Se.setTimeout(function() {
192
+ function ye(n) {
193
+ he.setTimeout(function() {
190
194
  throw n;
191
195
  });
192
196
  }
193
- function re() {
197
+ function Z() {
194
198
  }
195
- function De(n) {
199
+ function ve(n) {
196
200
  n();
197
201
  }
198
- var ue = function(n) {
199
- se(t, n);
200
- function t(e) {
202
+ var oe = function(n) {
203
+ te(e, n);
204
+ function e(t) {
201
205
  var r = n.call(this) || this;
202
- return r.isStopped = !1, e ? (r.destination = e, pe(e) && e.add(r)) : r.destination = ke, r;
203
- }
204
- return t.create = function(e, r, o) {
205
- return new Q(e, r, o);
206
- }, t.prototype.next = function(e) {
207
- this.isStopped || this._next(e);
208
- }, t.prototype.error = function(e) {
209
- this.isStopped || (this.isStopped = !0, this._error(e));
210
- }, t.prototype.complete = function() {
206
+ return r.isStopped = !1, t ? (r.destination = t, ne(t) && t.add(r)) : r.destination = Me, r;
207
+ }
208
+ return e.create = function(t, r, i) {
209
+ return new W(t, r, i);
210
+ }, e.prototype.next = function(t) {
211
+ this.isStopped || this._next(t);
212
+ }, e.prototype.error = function(t) {
213
+ this.isStopped || (this.isStopped = !0, this._error(t));
214
+ }, e.prototype.complete = function() {
211
215
  this.isStopped || (this.isStopped = !0, this._complete());
212
- }, t.prototype.unsubscribe = function() {
216
+ }, e.prototype.unsubscribe = function() {
213
217
  this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
214
- }, t.prototype._next = function(e) {
215
- this.destination.next(e);
216
- }, t.prototype._error = function(e) {
218
+ }, e.prototype._next = function(t) {
219
+ this.destination.next(t);
220
+ }, e.prototype._error = function(t) {
217
221
  try {
218
- this.destination.error(e);
222
+ this.destination.error(t);
219
223
  } finally {
220
224
  this.unsubscribe();
221
225
  }
222
- }, t.prototype._complete = function() {
226
+ }, e.prototype._complete = function() {
223
227
  try {
224
228
  this.destination.complete();
225
229
  } finally {
226
230
  this.unsubscribe();
227
231
  }
228
- }, t;
229
- }(X), we = Function.prototype.bind;
230
- function q(n, t) {
231
- return we.call(n, t);
232
+ }, e;
233
+ }($), be = Function.prototype.bind;
234
+ function B(n, e) {
235
+ return be.call(n, e);
232
236
  }
233
- var Ne = function() {
234
- function n(t) {
235
- this.partialObserver = t;
237
+ var Ce = function() {
238
+ function n(e) {
239
+ this.partialObserver = e;
236
240
  }
237
- return n.prototype.next = function(t) {
238
- var e = this.partialObserver;
239
- if (e.next)
241
+ return n.prototype.next = function(e) {
242
+ var t = this.partialObserver;
243
+ if (t.next)
240
244
  try {
241
- e.next(t);
245
+ t.next(e);
242
246
  } catch (r) {
243
- B(r);
247
+ F(r);
244
248
  }
245
- }, n.prototype.error = function(t) {
246
- var e = this.partialObserver;
247
- if (e.error)
249
+ }, n.prototype.error = function(e) {
250
+ var t = this.partialObserver;
251
+ if (t.error)
248
252
  try {
249
- e.error(t);
253
+ t.error(e);
250
254
  } catch (r) {
251
- B(r);
255
+ F(r);
252
256
  }
253
257
  else
254
- B(t);
258
+ F(e);
255
259
  }, n.prototype.complete = function() {
256
- var t = this.partialObserver;
257
- if (t.complete)
260
+ var e = this.partialObserver;
261
+ if (e.complete)
258
262
  try {
259
- t.complete();
260
- } catch (e) {
261
- B(e);
263
+ e.complete();
264
+ } catch (t) {
265
+ F(t);
262
266
  }
263
267
  }, n;
264
- }(), Q = function(n) {
265
- se(t, n);
266
- function t(e, r, o) {
267
- var a = n.call(this) || this, l;
268
- if (O(e) || !e)
269
- l = {
270
- next: e ?? void 0,
268
+ }(), W = function(n) {
269
+ te(e, n);
270
+ function e(t, r, i) {
271
+ var a = n.call(this) || this, s;
272
+ if (I(t) || !t)
273
+ s = {
274
+ next: t ?? void 0,
271
275
  error: r ?? void 0,
272
- complete: o ?? void 0
276
+ complete: i ?? void 0
273
277
  };
274
278
  else {
275
- var d;
276
- a && le.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
279
+ var f;
280
+ a && re.useDeprecatedNextContext ? (f = Object.create(t), f.unsubscribe = function() {
277
281
  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;
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;
283
287
  }
284
- return a.destination = new Ne(l), a;
288
+ return a.destination = new Ce(s), a;
285
289
  }
286
- return t;
287
- }(ue);
288
- function B(n) {
289
- Ee(n);
290
+ return e;
291
+ }(oe);
292
+ function F(n) {
293
+ ye(n);
290
294
  }
291
- function Oe(n) {
295
+ function ge(n) {
292
296
  throw n;
293
297
  }
294
- var ke = {
298
+ var Me = {
295
299
  closed: !0,
296
- next: re,
297
- error: Oe,
298
- complete: re
299
- }, Me = function() {
300
+ next: Z,
301
+ error: ge,
302
+ complete: Z
303
+ }, Se = function() {
300
304
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
301
305
  }();
302
- function _e(n) {
306
+ function De(n) {
303
307
  return n;
304
308
  }
305
- function Fe(n) {
306
- return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
307
- return n.reduce(function(r, o) {
308
- return o(r);
309
- }, e);
309
+ function Ee(n) {
310
+ return n.length === 0 ? De : n.length === 1 ? n[0] : function(t) {
311
+ return n.reduce(function(r, i) {
312
+ return i(r);
313
+ }, t);
310
314
  };
311
315
  }
312
- var Le = function() {
313
- function n(t) {
314
- t && (this._subscribe = t);
316
+ var Te = function() {
317
+ function n(e) {
318
+ e && (this._subscribe = e);
315
319
  }
316
- return n.prototype.lift = function(t) {
317
- var e = new n();
318
- return e.source = this, e.operator = t, e;
319
- }, n.prototype.subscribe = function(t, e, r) {
320
- var o = this, a = xe(t) ? t : new Q(t, e, r);
321
- return De(function() {
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));
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));
324
328
  }), a;
325
- }, n.prototype._trySubscribe = function(t) {
329
+ }, n.prototype._trySubscribe = function(e) {
326
330
  try {
327
- return this._subscribe(t);
328
- } catch (e) {
329
- t.error(e);
331
+ return this._subscribe(e);
332
+ } catch (t) {
333
+ e.error(t);
330
334
  }
331
- }, n.prototype.forEach = function(t, e) {
335
+ }, n.prototype.forEach = function(e, t) {
332
336
  var r = this;
333
- return e = oe(e), new e(function(o, a) {
334
- var l = new Q({
335
- next: function(d) {
337
+ return t = x(t), new t(function(i, a) {
338
+ var s = new W({
339
+ next: function(f) {
336
340
  try {
337
- t(d);
338
- } catch (v) {
339
- a(v), l.unsubscribe();
341
+ e(f);
342
+ } catch (d) {
343
+ a(d), s.unsubscribe();
340
344
  }
341
345
  },
342
346
  error: a,
343
- complete: o
347
+ complete: i
344
348
  });
345
- r.subscribe(l);
349
+ r.subscribe(s);
346
350
  });
347
- }, n.prototype._subscribe = function(t) {
348
- var e;
349
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
350
- }, n.prototype[Me] = function() {
351
+ }, n.prototype._subscribe = function(e) {
352
+ var t;
353
+ return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
354
+ }, n.prototype[Se] = function() {
351
355
  return this;
352
356
  }, n.prototype.pipe = function() {
353
- for (var t = [], e = 0; e < arguments.length; e++)
354
- t[e] = arguments[e];
355
- return Fe(t)(this);
356
- }, n.prototype.toPromise = function(t) {
357
- var e = this;
358
- return t = oe(t), new t(function(r, o) {
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) {
359
363
  var a;
360
- e.subscribe(function(l) {
361
- return a = l;
362
- }, function(l) {
363
- return o(l);
364
+ t.subscribe(function(s) {
365
+ return a = s;
366
+ }, function(s) {
367
+ return i(s);
364
368
  }, function() {
365
369
  return r(a);
366
370
  });
367
371
  });
368
- }, n.create = function(t) {
369
- return new n(t);
372
+ }, n.create = function(e) {
373
+ return new n(e);
370
374
  }, n;
371
375
  }();
372
- function oe(n) {
373
- var t;
374
- return (t = n ?? le.Promise) !== null && t !== void 0 ? t : Promise;
376
+ function x(n) {
377
+ var e;
378
+ return (e = n ?? re.Promise) !== null && e !== void 0 ? e : Promise;
375
379
  }
376
- function $e(n) {
377
- return n && O(n.next) && O(n.error) && O(n.complete);
380
+ function Le(n) {
381
+ return n && I(n.next) && I(n.error) && I(n.complete);
378
382
  }
379
- function xe(n) {
380
- return n && n instanceof ue || $e(n) && pe(n);
383
+ function we(n) {
384
+ return n && n instanceof oe || Le(n) && ne(n);
381
385
  }
382
- const fe = {}, de = {};
383
- function Z(n) {
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
+ 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;
386
390
  }
387
- function $(n, t = {}, e) {
388
- const r = fe[n];
391
+ function q(n, e = {}, t) {
392
+ const r = ae[n];
389
393
  if (r) {
390
- let o = Z(r);
391
- const a = de[n];
392
- return o = a ? a({ getSchemaByType: $ }, o, t, e) : o, o;
394
+ let i = G(r);
395
+ const a = ie[n];
396
+ return i = a ? a({ getSchemaByType: q }, i, e, t) : i, i;
393
397
  }
394
398
  return null;
395
399
  }
396
- function Be(n, t) {
397
- const e = Z(t);
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;
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;
399
403
  }
400
- function Ve(n, t) {
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
+ function ke(n, e) {
405
+ return Object.keys(n).filter((r) => n[r] != null).reduce((r, i) => {
406
+ if (e.has(i)) {
407
+ const a = e.get(i);
404
408
  if (typeof a == "string")
405
- r[a] = n[o];
409
+ r[a] = n[i];
406
410
  else {
407
- const l = a(o, n[o], n);
408
- Object.assign(r, l);
411
+ const s = a(i, n[i], n);
412
+ Object.assign(r, s);
409
413
  }
410
414
  } else
411
- r[o] = n[o];
415
+ r[i] = n[i];
412
416
  return r;
413
417
  }, {});
414
418
  }
415
- function We(n, t, e = /* @__PURE__ */ new Map()) {
416
- const r = Be(n, t);
417
- return Ve(r, e);
419
+ function Pe(n, e, t = /* @__PURE__ */ new Map()) {
420
+ const r = Ie(n, e);
421
+ return ke(r, t);
418
422
  }
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);
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);
431
435
  }
432
436
  return !1;
433
437
  }
434
- function e(u, p, f, b) {
435
- return b[u] && b[u].propertyValue && String(b[u].propertyValue.value) === String(f);
438
+ function t(l, c, o, p) {
439
+ return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(o);
436
440
  }
437
441
  const r = /* @__PURE__ */ new Map([
438
- ["length", t],
439
- ["getProperty", e]
442
+ ["length", e],
443
+ ["getProperty", t]
440
444
  ]);
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 };
445
+ Object.keys(n).reduce((l, c) => (l.set(c, n[c]), l), r);
446
+ function i(l, c) {
447
+ const o = l;
448
+ return typeof c == "number" ? [{ target: o, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
449
+ if (p === "length")
450
+ return { target: o, operator: "length", param: null, value: c[p] };
451
+ const m = p, y = c[p];
452
+ return { target: o, operator: "getProperty", param: m, value: y };
449
453
  }) : [];
450
454
  }
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
+ 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
459
  }, []);
456
460
  }
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
+ 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
465
  }
462
466
  return !1;
463
467
  }
464
- function d(u, p) {
465
- return a(u).reduce((j, i) => j && l(i, p), !0);
468
+ function f(l, c) {
469
+ return a(l).reduce((m, y) => m && s(y, c), !0);
466
470
  }
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);
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);
470
474
  }
471
- return { parseValueSchema: v };
475
+ return { parseValueSchema: d };
472
476
  }
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);
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);
479
522
  };
480
523
  }
481
- function Ye(n, t) {
482
- return { customClass: t.class, customStyle: t.style };
524
+ function Ue(n, e) {
525
+ return { customClass: e.class, customStyle: e.style };
483
526
  }
484
- const Ge = /* @__PURE__ */ new Map([
485
- ["appearance", Ye]
486
- ]), Je = "https://json-schema.org/draft/2020-12/schema", Qe = "https://farris-design.gitee.io/nav.schema.json", Xe = "nav", Ze = "A Farris Component", Re = "object", Ke = {
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 = {
487
530
  id: {
488
531
  description: "The unique identifier for a nav",
489
532
  type: "string"
@@ -575,22 +618,22 @@ const Ge = /* @__PURE__ */ new Map([
575
618
  type: "sting",
576
619
  default: ""
577
620
  }
578
- }, Ie = [
621
+ }, qe = [
579
622
  "id",
580
623
  "type"
581
- ], et = {
582
- $schema: Je,
583
- $id: Qe,
584
- title: Xe,
585
- description: Ze,
586
- type: Re,
587
- properties: Ke,
588
- required: Ie
624
+ ], ze = {
625
+ $schema: _e,
626
+ $id: Oe,
627
+ title: je,
628
+ description: We,
629
+ type: $e,
630
+ properties: Ge,
631
+ required: qe
589
632
  };
590
- function tt(n, t, e) {
591
- return t;
633
+ function Xe(n, e, t) {
634
+ return e;
592
635
  }
593
- const nt = "nav", rt = "A Farris Component", ot = "object", at = {
636
+ const Ye = "nav", Je = "A Farris Component", Qe = "object", Ze = {
594
637
  basic: {
595
638
  description: "Basic Infomation",
596
639
  title: "基本信息",
@@ -672,12 +715,12 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
672
715
  }
673
716
  }
674
717
  }
675
- }, ct = {
676
- title: nt,
677
- description: rt,
678
- type: ot,
679
- categories: at
680
- }, R = {
718
+ }, xe = {
719
+ title: Ye,
720
+ description: Je,
721
+ type: Qe,
722
+ categories: Ze
723
+ }, z = {
681
724
  /** 未读最大值 */
682
725
  maxNum: { Type: Number, default: 99 },
683
726
  /** 导航数据 */
@@ -710,980 +753,576 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
710
753
  /** 当前激活的id */
711
754
  activeNavId: { Type: String, default: "1" },
712
755
  /** nav切换前事件 */
713
- navPicking: { Type: Function, default: (n) => Le }
714
- }, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
756
+ navPicking: { Type: Function, default: (n) => Te }
757
+ }, R = Be(z, ze, Ve, Xe, xe), U = /* @__PURE__ */ K({
715
758
  name: "FNav",
716
- props: R,
759
+ props: z,
717
760
  emits: ["nav", "update:activeNavId"],
718
- setup(n, t) {
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);
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
765
  });
723
- const a = F({
766
+ const a = P({
724
767
  get() {
725
768
  return r.value;
726
769
  },
727
- set(p) {
728
- r.value = p, v();
770
+ set(c) {
771
+ r.value = c, d();
729
772
  }
730
- }), l = F({
773
+ }), s = P({
731
774
  get() {
732
- return e.value;
775
+ return t.value;
733
776
  },
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);
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
781
  }
739
782
  }
740
- }), d = F({
741
- set(p) {
742
- o.value = p;
783
+ }), f = P({
784
+ set(c) {
785
+ i.value = c;
743
786
  },
744
787
  get() {
745
- return o.value;
788
+ return i.value;
746
789
  }
747
790
  });
748
- function v() {
749
- if (a.value && a.value.length && !e.value) {
750
- const p = a.value.find((f) => !f.disable);
751
- p && (e.value = p.id);
791
+ function d() {
792
+ if (a.value && a.value.length && !t.value) {
793
+ const c = a.value.find((o) => !o.disable);
794
+ c && (t.value = c.id);
752
795
  }
753
796
  }
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));
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));
756
799
  }
757
800
  return () => {
758
- var p;
759
- return w("div", {
801
+ var c;
802
+ return T("div", {
760
803
  class: ["farris-nav", {
761
- "farris-nav-vertical": !d.value
804
+ "farris-nav-vertical": !f.value
762
805
  }]
763
- }, [(p = a.value) == null ? void 0 : p.map((f) => w("div", {
806
+ }, [(c = a.value) == null ? void 0 : c.map((o) => T("div", {
764
807
  class: ["farris-nav-item", {
765
- active: f.id === l.value
808
+ active: o.id === s.value
766
809
  }, {
767
- disabled: f.disable
810
+ disabled: o.disable
768
811
  }],
769
- onClick: () => u(f)
770
- }, [w("div", {
812
+ onClick: () => l(o)
813
+ }, [T("div", {
771
814
  class: "farris-nav-item-link"
772
- }, [w("span", {
815
+ }, [T("span", {
773
816
  class: "farris-nav-item-link-text"
774
- }, [typeof f.text == "function" ? f.text() : f.text, f.num && w("div", {
817
+ }, [typeof o.text == "function" ? o.text() : o.text, o.num && T("div", {
775
818
  class: "farris-nav-item-tag"
776
- }, [f.num <= n.maxNum && w("span", {
819
+ }, [o.num <= n.maxNum && T("span", {
777
820
  class: "tag-text"
778
- }, [f.num]), f.num > n.maxNum && w("span", {
821
+ }, [o.num]), o.num > n.maxNum && T("span", {
779
822
  class: "tag-text"
780
- }, [n.maxNum, ie("+")])])])])]))]);
823
+ }, [n.maxNum, H("+")])])])])]))]);
781
824
  };
782
825
  }
783
826
  });
784
- function it(n, t, e) {
785
- var M;
827
+ function Re(n, e, t) {
828
+ var D;
786
829
  function r() {
787
- e != null && e.resolveComponentContext && e.resolveComponentContext();
830
+ t != null && t.resolveComponentContext && t.resolveComponentContext();
788
831
  }
789
832
  r();
790
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", l = E();
791
- function d() {
792
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
833
+ const i = t && t.getStyles && t.getStyles() || "", a = t && t.getDesignerClass && t.getDesignerClass() || "", s = L();
834
+ function f() {
835
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
793
836
  }
794
- function v() {
837
+ function d() {
795
838
  return !1;
796
839
  }
797
- function u() {
798
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
840
+ function l() {
841
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
799
842
  }
800
- function p() {
801
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
843
+ function c() {
844
+ return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
802
845
  }
803
- function f(m) {
804
- if (!m || !m.value)
846
+ function o(b) {
847
+ if (!b || !b.value)
805
848
  return null;
806
- if (m.value.schema && m.value.schema.type === "component")
807
- return m.value;
808
- const T = E(m == null ? void 0 : m.value.parent), y = f(T);
809
- return y || 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;
810
853
  }
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);
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);
814
857
  }
815
- function j(m) {
816
- return !!e && e.canAccepts(m);
858
+ function m(b) {
859
+ return !!t && t.canAccepts(b);
817
860
  }
818
- function i() {
819
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
861
+ function y() {
862
+ return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
820
863
  }
821
- function c() {
864
+ function u() {
822
865
  }
823
- function s(m, T) {
824
- T && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(T);
825
- }
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
- }
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
- }
841
- function C(m) {
842
- }
843
- function D(...m) {
844
- if (e && e.getPropsConfig)
845
- return e.getPropsConfig(...m);
846
- }
847
- return l.value = {
848
- canMove: d(),
849
- canSelectParent: v(),
850
- canDelete: u(),
851
- canNested: !p(),
852
- contents: t == null ? void 0 : t.schema.contents,
866
+ function v(b, S) {
867
+ S && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(S);
868
+ }
869
+ function C(b, S) {
870
+ const { componentType: w } = b;
871
+ let E = q(w, b, S);
872
+ t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
873
+ const A = w.toLowerCase().replace("-", "_");
874
+ return E && !E.id && E.type === w && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
875
+ }
876
+ function h(b) {
877
+ }
878
+ function g(...b) {
879
+ if (t && t.getPropsConfig)
880
+ return t.getPropsConfig(...b);
881
+ }
882
+ return s.value = {
883
+ canMove: f(),
884
+ canSelectParent: d(),
885
+ canDelete: l(),
886
+ canNested: !c(),
887
+ contents: e == null ? void 0 : e.schema.contents,
853
888
  elementRef: n,
854
- parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
855
- schema: t == null ? void 0 : t.schema,
856
- styles: o,
889
+ parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
890
+ schema: e == null ? void 0 : e.schema,
891
+ styles: i,
857
892
  designerClass: a,
858
- canAccepts: j,
859
- getBelongedComponentInstance: f,
860
- getDraggableDesignItemElement: b,
861
- getDraggingDisplayText: i,
862
- getPropConfig: D,
863
- getDragScopeElement: c,
864
- onAcceptMovedChildElement: s,
865
- onAcceptNewChildElement: A,
866
- onChildElementMovedOut: C,
867
- addNewChildComponentSchema: h,
893
+ canAccepts: m,
894
+ getBelongedComponentInstance: o,
895
+ getDraggableDesignItemElement: p,
896
+ getDraggingDisplayText: y,
897
+ getPropConfig: g,
898
+ getDragScopeElement: u,
899
+ onAcceptMovedChildElement: v,
900
+ onChildElementMovedOut: h,
901
+ addNewChildComponentSchema: C,
868
902
  updateDragAndDropRules: r,
869
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || E(!1),
870
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
871
- }, l;
903
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || L(!1),
904
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || L(!1)
905
+ }, s;
872
906
  }
873
- function st() {
874
- function n(t) {
875
- var o, a;
876
- if (!t)
877
- return !1;
878
- const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
907
+ function Ke() {
908
+ function n(e, t) {
909
+ var s;
879
910
  if (!e)
880
911
  return !1;
881
- const r = (a = e.schema.appearance) == null ? void 0 : a.class;
882
- if (t.controlCategory === "input" || t.controlType === "form-group") {
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
- return !1;
886
- }
887
- return t.controlType !== "field-set";
912
+ const r = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
913
+ if (!r)
914
+ return !1;
915
+ const i = r.schema.type, a = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
916
+ return !((e.controlCategory === "input" || e.controlType === "form-group") && ![k["response-layout-item"].type, k["response-form"].type].includes(i) || (e.controlType === k.tabs.type || e.controlType === k.section.type) && ((a == null ? void 0 : a.componentType) !== "frame" || ![k["content-container"].type, k["splitter-pane"].type, k["response-layout-item"].type].includes(i)));
888
917
  }
889
918
  return {
890
919
  basalDragulaRuleForContainer: n
891
920
  };
892
921
  }
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
- "f-page": {
895
- description: "The root class of page designed by farris.",
896
- type: "object",
897
- properties: {
898
- contents: {
899
- type: "object",
900
- properties: {
901
- "f-page-header": {
902
- description: "The class of page header designed by farris.",
903
- type: "string"
904
- },
905
- "f-page-main": {
906
- description: "The class of page body designed by farris.",
907
- type: "object",
908
- properties: {
909
- contents: {
910
- type: "object",
911
- properties: {
912
- "f-struct-like-card": {
913
- description: "",
914
- type: "object",
915
- properties: {
916
- contents: {
917
- type: "object",
918
- properties: {
919
- "f-struct-form": {
920
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
921
- type: "object",
922
- properties: {
923
- contents: {
924
- type: "object",
925
- properties: {
926
- "f-section-form": {
927
- description: "The class of section which has wrapped a reponse-form component.",
928
- type: "object",
929
- properties: {
930
- contents: {
931
- type: "object",
932
- properties: {
933
- "f-form-layout": {
934
- description: "The class of reponse form",
935
- type: "object",
936
- properties: {
937
- rules: {
938
- type: "object",
939
- properties: {
940
- canAccept: {
941
- type: "boolean",
942
- const: !0
943
- },
944
- fixed: {
945
- type: "boolean",
946
- const: !0
947
- },
948
- hidePadding: {
949
- type: "boolean",
950
- const: !1
951
- }
952
- }
953
- }
954
- }
955
- }
956
- }
957
- },
958
- rules: {
959
- type: "object",
960
- properties: {
961
- canAccept: {
962
- type: "boolean",
963
- const: !1
964
- },
965
- fixed: {
966
- type: "boolean",
967
- const: !0
968
- },
969
- hidePadding: {
970
- type: "boolean",
971
- const: !0
972
- }
973
- }
974
- }
975
- }
976
- }
977
- }
978
- },
979
- rules: {
980
- type: "object",
981
- properties: {
982
- canAccept: {
983
- type: "boolean",
984
- const: !1
985
- },
986
- fixed: {
987
- type: "boolean",
988
- const: !1
989
- },
990
- hidePadding: {
991
- type: "boolean",
992
- const: !0
993
- }
994
- }
995
- }
996
- }
997
- },
998
- "f-struct-wrapper": {
999
- description: "",
1000
- type: "object",
1001
- properties: {
1002
- contents: {
1003
- type: "object",
1004
- properties: {
1005
- "f-section-tabs": {
1006
- description: "The class of section which has wrapped sub-grid tabs.",
1007
- type: "object",
1008
- properties: {
1009
- contents: {
1010
- type: "object",
1011
- properties: {
1012
- "f-tabs-in-card": {
1013
- description: "The class of tabs which contains sub-grid.",
1014
- type: "object",
1015
- properties: {
1016
- contents: {
1017
- type: "object",
1018
- properties: {
1019
- "f-struct-data-grid-in-card": {
1020
- description: "The class of sub-grid component",
1021
- type: "object",
1022
- properties: {
1023
- contents: {
1024
- type: "object",
1025
- properties: {
1026
- "f-grid-is-sub": {
1027
- description: "The class of sub-grid",
1028
- type: "object",
1029
- properties: {
1030
- rules: {
1031
- type: "object",
1032
- properties: {
1033
- canAccept: {
1034
- type: "boolean",
1035
- const: !0
1036
- },
1037
- fixed: {
1038
- type: "boolean",
1039
- const: !0
1040
- },
1041
- hidePadding: {
1042
- type: "boolean",
1043
- const: !1
1044
- }
1045
- }
1046
- }
1047
- }
1048
- }
1049
- }
1050
- },
1051
- rules: {
1052
- type: "object",
1053
- properties: {
1054
- canAccept: {
1055
- type: "boolean",
1056
- const: !1
1057
- },
1058
- fixed: {
1059
- type: "boolean",
1060
- const: !1
1061
- },
1062
- hidePadding: {
1063
- type: "boolean",
1064
- const: !0
1065
- }
1066
- }
1067
- }
1068
- }
1069
- }
1070
- }
1071
- },
1072
- rules: {
1073
- type: "object",
1074
- properties: {
1075
- canAccept: {
1076
- type: "boolean",
1077
- const: !1
1078
- },
1079
- fixed: {
1080
- type: "boolean",
1081
- const: !0
1082
- },
1083
- hidePadding: {
1084
- type: "boolean",
1085
- const: !0
1086
- }
1087
- }
1088
- }
1089
- }
1090
- }
1091
- }
1092
- },
1093
- rules: {
1094
- type: "object",
1095
- properties: {
1096
- canAccept: {
1097
- type: "boolean",
1098
- const: !1
1099
- },
1100
- fixed: {
1101
- type: "boolean",
1102
- const: !0
1103
- },
1104
- hidePadding: {
1105
- type: "boolean",
1106
- const: !0
1107
- }
1108
- }
1109
- }
1110
- }
1111
- },
1112
- "f-section-in-main": {
1113
- description: "The class of section which has wrapped a reponse-form component.",
1114
- type: "object",
1115
- properties: {
1116
- rules: {
1117
- type: "object",
1118
- properties: {
1119
- canAccept: {
1120
- type: "boolean",
1121
- const: !0
1122
- },
1123
- fixed: {
1124
- type: "boolean",
1125
- const: !0
1126
- },
1127
- hidePadding: {
1128
- type: "boolean",
1129
- const: !1
1130
- }
1131
- }
1132
- }
1133
- }
1134
- }
1135
- }
1136
- },
1137
- rules: {
1138
- type: "object",
1139
- properties: {
1140
- canAccept: {
1141
- type: "boolean",
1142
- const: !1
1143
- },
1144
- fixed: {
1145
- type: "boolean",
1146
- const: !1
1147
- },
1148
- hidePadding: {
1149
- type: "boolean",
1150
- const: !0
1151
- }
1152
- }
1153
- }
1154
- }
1155
- }
1156
- }
1157
- },
1158
- rules: {
1159
- type: "object",
1160
- properties: {
1161
- canAccept: {
1162
- type: "boolean",
1163
- const: !0
1164
- },
1165
- fixed: {
1166
- type: "boolean",
1167
- const: !0
1168
- },
1169
- hidePadding: {
1170
- type: "object",
1171
- const: {
1172
- allOf: [
1173
- {
1174
- sibling: 0,
1175
- parent: {
1176
- "f-page-main": !0
1177
- }
1178
- }
1179
- ]
1180
- }
1181
- }
1182
- }
1183
- }
1184
- }
1185
- },
1186
- "f-struct-data-grid": {
1187
- description: "",
1188
- type: "object",
1189
- properties: {
1190
- rules: {
1191
- type: "object",
1192
- properties: {
1193
- canAccept: {
1194
- type: "object",
1195
- const: !0
1196
- },
1197
- fixed: {
1198
- type: "boolean",
1199
- const: !0
1200
- },
1201
- hidePadding: {
1202
- type: "boolean",
1203
- const: !0
1204
- }
1205
- }
1206
- }
1207
- }
1208
- },
1209
- "f-page-main-content": {
1210
- description: "",
1211
- type: "object",
1212
- properties: {
1213
- contents: {
1214
- type: "object",
1215
- properties: {
1216
- "f-page-content-nav": {
1217
- description: "",
1218
- type: "object",
1219
- properties: {
1220
- contents: {
1221
- type: "object",
1222
- properties: {
1223
- "f-struct-data-grid-in-nav": {
1224
- description: "",
1225
- type: "object",
1226
- properties: {
1227
- contents: {
1228
- type: "object",
1229
- properties: {
1230
- "f-page-content-nav-extend": {
1231
- description: "",
1232
- type: "object"
1233
- },
1234
- "f-section-in-nav": {
1235
- description: "",
1236
- type: "object",
1237
- properties: {
1238
- rules: {
1239
- type: "object",
1240
- properties: {
1241
- canAccept: {
1242
- type: "boolean",
1243
- const: !1
1244
- },
1245
- fixed: {
1246
- type: "boolean",
1247
- const: !0
1248
- },
1249
- hidePadding: {
1250
- type: "boolean",
1251
- const: !1
1252
- }
1253
- }
1254
- }
1255
- }
1256
- }
1257
- }
1258
- },
1259
- rules: {
1260
- type: "object",
1261
- properties: {
1262
- canAccept: {
1263
- type: "boolean",
1264
- const: !0
1265
- },
1266
- fixed: {
1267
- type: "boolean",
1268
- const: !1
1269
- },
1270
- hidePadding: {
1271
- type: "boolean",
1272
- const: !0
1273
- }
1274
- }
1275
- }
1276
- }
1277
- }
1278
- }
1279
- }
1280
- }
1281
- },
1282
- "f-page-content-main": {
1283
- description: "",
1284
- type: "object",
1285
- properties: {}
1286
- }
1287
- }
1288
- }
1289
- }
1290
- },
1291
- "f-page-content": {
1292
- description: "",
1293
- type: "object",
1294
- properties: {
1295
- contents: {
1296
- type: "object",
1297
- properties: {
1298
- "f-page-content-nav": {
1299
- description: "",
1300
- type: "object",
1301
- properties: {
1302
- contents: {
1303
- type: "object",
1304
- properties: {
1305
- "f-list-nav": {
1306
- description: "",
1307
- type: "object"
1308
- },
1309
- "f-list-nav-left": {
1310
- description: "",
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
- }
1386
- }
1387
- }
1388
- }
1389
- },
1390
- rules: {
1391
- type: "object",
1392
- properties: {
1393
- canAccept: {
1394
- type: "boolean",
1395
- const: !1
1396
- },
1397
- fixed: {
1398
- type: "boolean",
1399
- const: !0
1400
- },
1401
- hidePadding: {
1402
- type: "boolean",
1403
- const: !0
1404
- }
1405
- }
1406
- }
1407
- },
1408
- "f-page-content-main": {
1409
- description: "",
1410
- type: "object",
1411
- properties: {
1412
- rules: {
1413
- type: "object",
1414
- properties: {
1415
- canAccept: {
1416
- type: "boolean",
1417
- const: !1
1418
- },
1419
- fixed: {
1420
- type: "boolean",
1421
- const: !1
1422
- },
1423
- hidePadding: {
1424
- type: "boolean",
1425
- const: !0
1426
- }
1427
- }
1428
- }
1429
- }
1430
- }
1431
- }
1432
- },
1433
- rules: {
1434
- type: "object",
1435
- properties: {
1436
- canAccept: {
1437
- type: "boolean",
1438
- const: !1
1439
- },
1440
- fixed: {
1441
- type: "boolean",
1442
- const: !0
1443
- },
1444
- hidePadding: {
1445
- type: "boolean",
1446
- const: !0
1447
- }
1448
- }
1449
- }
1450
- }
1451
- }
1452
- }
1453
- },
1454
- rules: {
1455
- type: "object",
1456
- properties: {
1457
- canAccept: {
1458
- type: "object",
1459
- const: {
1460
- anyOf: [
1461
- {
1462
- children: 0
1463
- },
1464
- {
1465
- children: {
1466
- length: {
1467
- not: 1
1468
- },
1469
- "f-struct-like-card": !0
1470
- }
1471
- },
1472
- {
1473
- children: {
1474
- "scroll-spy": !1,
1475
- "f-page-content": !1,
1476
- "f-struct-like-card": !1
1477
- }
1478
- }
1479
- ]
1480
- }
1481
- },
1482
- fixed: {
1483
- type: "boolean",
1484
- const: !0
1485
- },
1486
- hidePadding: {
1487
- type: "boolean",
1488
- const: !0
1489
- }
1490
- }
1491
- }
1492
- }
1493
- },
1494
- "f-page-footer": {
1495
- description: "The class of page footer designed by farris.",
1496
- type: "string"
922
+ class He {
923
+ getTemplateRule(e, t) {
924
+ const r = t == null ? void 0 : t.formSchemaUtils, i = r == null ? void 0 : r.getFormTemplateRule(), a = { canAccept: !0, canDelete: !0, canMove: !0 };
925
+ if (!i)
926
+ return a;
927
+ const s = this.getComponentContext(e);
928
+ return s.componentClassList.forEach((d) => {
929
+ if (!d || !i[d])
930
+ return;
931
+ const { canMove: l, canDelete: c, canAccept: o } = i[d];
932
+ a.canMove = a.canMove && this.resolveRuleValue(l, s), a.canDelete = a.canDelete && this.resolveRuleValue(c, s), a.canAccept = a.canAccept && this.resolveRuleValue(o, s);
933
+ }), a;
934
+ }
935
+ resolveRuleValue(e, t) {
936
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
937
+ }
938
+ parseRuleValueSchema(e, t) {
939
+ const r = e.invalidContext || [];
940
+ let i = !0;
941
+ for (const a of r) {
942
+ if (a.firstLevelChild) {
943
+ if (a.firstLevelChild.class) {
944
+ const s = t.firstLevelChildClassList;
945
+ if (s && !s.includes(a.firstLevelChild.class)) {
946
+ i = !1;
947
+ continue;
1497
948
  }
1498
949
  }
1499
- },
1500
- rules: {
1501
- type: "object",
1502
- properties: {
1503
- canAccept: {
1504
- type: "boolean",
1505
- const: !1
1506
- },
1507
- fixed: {
1508
- type: "boolean",
1509
- const: !0
1510
- },
1511
- hidePadding: {
1512
- type: "boolean",
1513
- const: !0
950
+ if (a.firstLevelChild.type) {
951
+ const s = t.firstLevelChildSchema;
952
+ if (s && s.type !== a.firstLevelChild.type) {
953
+ i = !1;
954
+ continue;
1514
955
  }
1515
956
  }
1516
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;
1517
992
  }
1518
- },
1519
- "f-page-is-managelist": {
1520
- description: "The root class of mangement list page.",
1521
- type: "string"
1522
- },
1523
- "f-page-card": {
1524
- description: "",
1525
- type: "object"
1526
- },
1527
- "f-page-is-mainsubcard": {
1528
- description: "",
1529
- type: "object"
1530
- }
1531
- }, bt = {
1532
- $schema: pt,
1533
- $id: lt,
1534
- title: ut,
1535
- description: ft,
1536
- type: dt,
1537
- properties: yt
1538
- }, H = /* @__PURE__ */ new Map();
1539
- function ht() {
1540
- function n(i, c, s, h) {
1541
- var A;
1542
- if (typeof s == "number")
1543
- return ((A = h[i]) == null ? void 0 : A.length) === s;
1544
- if (typeof s == "object") {
1545
- const C = Object.keys(s)[0], D = s[C];
1546
- if (C === "not")
1547
- return Number(h[i].length) !== Number(D);
1548
- if (C === "moreThan")
1549
- return Number(h[i].length) >= Number(D);
1550
- if (C === "lessThan")
1551
- return Number(h[i].length) <= Number(D);
1552
- }
1553
- return !1;
993
+ return !i;
1554
994
  }
1555
- function t(i, c, s, h) {
1556
- return typeof s == "boolean" ? h.childrenClassList.includes(c) === !!s : !1;
1557
- }
1558
- function e(i, c, s, h) {
1559
- return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
995
+ getComponentContext(e) {
996
+ var u, v, C, h;
997
+ const t = e.schema, r = t.appearance && t.appearance.class || "", i = r.split(" ") || [], a = t.contents || [], s = a.length ? a[0] : null, f = s && s.appearance ? s.appearance.class : "", d = f ? f.split(" ") : [], l = (u = s == null ? void 0 : s.contents) != null && u.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", o = c ? c.split(" ") : [], p = t.type === "component" ? (C = (v = e.parent) == null ? void 0 : v.parent) == null ? void 0 : C.schema : (h = e.parent) == null ? void 0 : h.schema, m = p && p.appearance && p.appearance.class || "", y = m ? m.split(" ") : [];
998
+ return {
999
+ componentClass: r,
1000
+ componentClassList: i,
1001
+ childContents: a,
1002
+ firstLevelChildSchema: s,
1003
+ firstLevelChildClass: f,
1004
+ firstLevelChildClassList: d,
1005
+ secondLevelChildSchema: l,
1006
+ secondLevelChildClass: c,
1007
+ secondLevelChildClassList: o,
1008
+ parentSchema: p,
1009
+ parentClass: m,
1010
+ parentClassList: y
1011
+ };
1560
1012
  }
1561
- function r(i, c, s, h) {
1562
- return typeof s == "boolean" ? h.parentClassList.includes(c) === !!s : !1;
1013
+ }
1014
+ class et {
1015
+ constructor(e, t) {
1016
+ M(this, "componentId");
1017
+ M(this, "viewModelId");
1018
+ M(this, "eventsEditorUtils");
1019
+ M(this, "formSchemaUtils");
1020
+ M(this, "formMetadataConverter");
1021
+ M(this, "designViewModelUtils");
1022
+ M(this, "designViewModelField");
1023
+ M(this, "controlCreatorUtils");
1024
+ M(this, "designerHostService");
1025
+ M(this, "schemaService", null);
1026
+ M(this, "metadataService", null);
1027
+ M(this, "propertyConfig", {
1028
+ type: "object",
1029
+ categories: {}
1030
+ });
1031
+ var r;
1032
+ this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
1563
1033
  }
1564
- const o = /* @__PURE__ */ new Map([
1565
- ["length", n],
1566
- ["hasChildren", t],
1567
- ["hasSibling", r],
1568
- ["hasParent", e]
1569
- ]);
1570
- function a(i, c) {
1571
- const s = i;
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 };
1577
- }) : [];
1034
+ getTableInfo() {
1035
+ var e;
1036
+ return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
1578
1037
  }
1579
- function l(i, c) {
1580
- if (o.has(i.operator)) {
1581
- const s = o.get(i.operator);
1582
- return s && s(i.target, i.param, i.value, c) || !1;
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;
1583
1046
  }
1584
- return !1;
1585
1047
  }
1586
- function d(i, c) {
1587
- return Object.keys(i).reduce((C, D) => {
1588
- const M = a(D, i[D]);
1589
- return C.push(...M), C;
1590
- }, []).reduce((C, D) => C && l(D, c), !0);
1591
- }
1592
- function v(i, c) {
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);
1595
- }
1596
- function u(i, c) {
1597
- const s = i.const;
1598
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
1599
- }
1600
- function p(i) {
1601
- return (c) => {
1602
- const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
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;
1606
- }, s), s;
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
+ }
1607
1093
  };
1608
1094
  }
1609
- function f(i, c, s) {
1610
- if (c.type === "object" && c.properties) {
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)
1614
- );
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;
1615
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);
1616
1151
  }
1617
- function b() {
1618
- const { properties: i } = bt;
1619
- Object.keys(i).forEach((c) => {
1620
- f(c, i[c], H);
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);
1621
1162
  });
1622
1163
  }
1623
- function j(i, c) {
1624
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1625
- return H.has(i) ? H.get(i)(c) : s;
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;
1626
1207
  }
1627
- return b(), { getRuleValue: j };
1208
+ return {
1209
+ checkCanFindFormNode: f,
1210
+ checkCanOpenLayoutEditor: d,
1211
+ changeFormControlsByResponseLayoutConfig: l,
1212
+ getResonseFormLayoutConfig: s
1213
+ };
1628
1214
  }
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;
1635
- }
1636
- function b(y) {
1637
- return !(!st().basalDragulaRuleForContainer(y) || !d || !f(y));
1638
- }
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(" ") : [];
1643
- return K.push(...ve), K;
1644
- }, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
1645
- u = {
1646
- componentClass: g,
1647
- componentClassList: S,
1648
- childContents: P,
1649
- firstChildContent: k,
1650
- firstChildClass: _,
1651
- firstChildClassList: N,
1652
- parent: x,
1653
- parentClass: V,
1654
- parentClassList: ye,
1655
- children: P,
1656
- childrenClassList: L
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
1657
1234
  };
1658
- const { canAccept: be, fixed: he, hidePadding: me } = o.getRuleValue(S[0], u);
1659
- return d = be, v = me, p = he, !0;
1660
1235
  }
1661
- function i(y) {
1662
- je();
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();
1663
1301
  }
1664
1302
  function c() {
1665
- return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1303
+ return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1666
1304
  }
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;
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;
1672
1310
  }
1673
1311
  return g;
1674
1312
  }
1675
- function h(y) {
1313
+ function p(h) {
1676
1314
  const g = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1677
1315
  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;
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;
1680
1319
  }
1681
1320
  }
1682
- function A(y) {
1321
+ function m(h) {
1683
1322
  let g = "";
1684
- switch (y) {
1323
+ switch (h) {
1685
1324
  case 1: {
1686
- g = "col-12 col-md-12 col-xl-12 col-el-12";
1325
+ g = "col-12";
1687
1326
  break;
1688
1327
  }
1689
1328
  case 2: {
@@ -1701,124 +1340,116 @@ function mt(n, t) {
1701
1340
  }
1702
1341
  return g;
1703
1342
  }
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;
1709
- }
1710
- return S;
1343
+ function y() {
1344
+ return i;
1711
1345
  }
1712
- function D() {
1713
- return !p;
1346
+ function u() {
1347
+ return s;
1714
1348
  }
1715
- function M() {
1716
- return !p;
1349
+ function v() {
1350
+ return !1;
1717
1351
  }
1718
- function m() {
1719
- return v;
1352
+ function C(h) {
1353
+ return new ot(h, e).getPropertyConfig(t, n.componentInstance.value);
1720
1354
  }
1721
1355
  return {
1722
- canAccepts: b,
1723
- checkCanDeleteComponent: M,
1724
- checkCanMoveComponent: D,
1356
+ canAccepts: d,
1357
+ checkCanDeleteComponent: u,
1358
+ checkCanMoveComponent: y,
1725
1359
  getStyles: c,
1726
- hideNestedPaddingInDesginerView: m,
1727
- onAcceptNewChildElement: C,
1728
- onAcceptMovedChildElement: i,
1729
- resolveComponentContext: j,
1730
- onResolveNewComponentSchema: s,
1731
- triggerBelongedComponentToMoveWhenMoved: a,
1732
- triggerBelongedComponentToDeleteWhenDeleted: l
1360
+ getPropsConfig: C,
1361
+ hideNestedPaddingInDesginerView: v,
1362
+ onAcceptMovedChildElement: l,
1363
+ onResolveNewComponentSchema: o
1733
1364
  };
1734
1365
  }
1735
- const vt = /* @__PURE__ */ ce({
1366
+ const it = /* @__PURE__ */ K({
1736
1367
  name: "FNavDesign",
1737
- props: R,
1368
+ props: z,
1738
1369
  emits: ["nav"],
1739
- setup(n, t) {
1740
- var i;
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;
1746
- }), t.expose(v.value);
1747
- const u = F({
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({
1748
1379
  get() {
1749
1380
  return r.value;
1750
1381
  },
1751
- set(c) {
1752
- r.value = c, b();
1382
+ set(u) {
1383
+ r.value = u, p();
1753
1384
  }
1754
- }), p = F({
1385
+ }), c = P({
1755
1386
  get() {
1756
- return e.value;
1387
+ return t.value;
1757
1388
  },
1758
- set(c) {
1759
- if (e.value = c, e.value && u && u.value.length) {
1760
- const s = u.value.find((h) => h.id === e.value);
1761
- s && t.emit("nav", s);
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);
1762
1393
  }
1763
1394
  }
1764
- }), f = F({
1765
- set(c) {
1766
- o.value = c;
1395
+ }), o = P({
1396
+ set(u) {
1397
+ i.value = u;
1767
1398
  },
1768
1399
  get() {
1769
- return o.value;
1400
+ return i.value;
1770
1401
  }
1771
1402
  });
1772
- function b() {
1773
- if (u.value && u.value.length && !e.value) {
1774
- const c = u.value.find((s) => !s.disable);
1775
- c && (e.value = c.id);
1403
+ function p() {
1404
+ if (l.value && l.value.length && !t.value) {
1405
+ const u = l.value.find((v) => !v.disable);
1406
+ u && (t.value = u.id);
1776
1407
  }
1777
1408
  }
1778
- function j(c) {
1779
- c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
1409
+ function m(u) {
1410
+ u.disable || u.id === t.value || (t.value = u.id, e.emit("nav", u));
1780
1411
  }
1781
1412
  return () => {
1782
- var c;
1783
- return w("div", {
1413
+ var u;
1414
+ return T("div", {
1784
1415
  ref: a,
1785
1416
  class: ["farris-nav", {
1786
- "farris-nav-vertical": !f.value
1417
+ "farris-nav-vertical": !o.value
1787
1418
  }]
1788
- }, [(c = u.value) == null ? void 0 : c.map((s) => w("div", {
1419
+ }, [(u = l.value) == null ? void 0 : u.map((v) => T("div", {
1789
1420
  class: ["farris-nav-item", {
1790
- active: s.id === p.value
1421
+ active: v.id === c.value
1791
1422
  }, {
1792
- disabled: s.disable
1423
+ disabled: v.disable
1793
1424
  }],
1794
- onClick: () => j(s)
1795
- }, [w("div", {
1425
+ onClick: () => m(v)
1426
+ }, [T("div", {
1796
1427
  class: "farris-nav-item-link"
1797
- }, [w("span", {
1428
+ }, [T("span", {
1798
1429
  class: "farris-nav-item-link-text"
1799
- }, [s.text, s.num && w("div", {
1430
+ }, [v.text, v.num && T("div", {
1800
1431
  class: "farris-nav-item-tag"
1801
- }, [s.num <= n.maxNum && w("span", {
1432
+ }, [v.num <= n.maxNum && T("span", {
1802
1433
  class: "tag-text"
1803
- }, [s.num]), s.num > n.maxNum && w("span", {
1434
+ }, [v.num]), v.num > n.maxNum && T("span", {
1804
1435
  class: "tag-text"
1805
- }, [n.maxNum, ie("+")])])])])]))]);
1436
+ }, [n.maxNum, H("+")])])])])]))]);
1806
1437
  };
1807
1438
  }
1808
- }), Ct = {
1439
+ }), pt = {
1809
1440
  install(n) {
1810
- n.component(z.name, z);
1441
+ n.component(U.name, U);
1811
1442
  },
1812
- register(n, t, e, r) {
1813
- n.nav = z, t.nav = ae;
1443
+ register(n, e, t, r) {
1444
+ n.nav = U, e.nav = R;
1814
1445
  },
1815
- registerDesigner(n, t, e) {
1816
- n.nav = vt, t.nav = ae;
1446
+ registerDesigner(n, e, t) {
1447
+ n.nav = it, e.nav = R;
1817
1448
  }
1818
1449
  };
1819
1450
  export {
1820
- z as FNav,
1821
- Ct as default,
1822
- R as navProps,
1823
- ae as propsResolver
1451
+ U as FNav,
1452
+ pt as default,
1453
+ z as navProps,
1454
+ R as propsResolver
1824
1455
  };