@farris/ui-vue 1.2.8 → 1.3.0

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 (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  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/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,5 +1,8 @@
1
- import { defineComponent as ce, ref as S, watch as ge, computed as F, createVNode as D, createTextVNode as ie, nextTick as je, inject as Ce, onMounted as Te } from "vue";
2
- import { cloneDeep as Pe } from "lodash-es";
1
+ import { defineComponent as ce, ref as w, watch as je, computed as _, createVNode as N, createTextVNode as le, nextTick as Pe, inject as Ae, onMounted as Te } from "vue";
2
+ import { isPlainObject as te, cloneDeep as Ee } from "lodash-es";
3
+ import { BaseControlProperty as Se } from "../property-panel/index.esm.js/src/composition/entity/base-property";
4
+ import { useResponseLayoutEditorSetting as De } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
5
+ import { DgControl as we } from "../designer-canvas/index.esm.js/src/composition/dg-control";
3
6
  var Y = function(n, t) {
4
7
  return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
5
8
  e.__proto__ = r;
@@ -7,7 +10,7 @@ var Y = function(n, t) {
7
10
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
8
11
  }, Y(n, t);
9
12
  };
10
- function se(n, t) {
13
+ function pe(n, t) {
11
14
  if (typeof t != "function" && t !== null)
12
15
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
13
16
  Y(n, t);
@@ -16,7 +19,7 @@ function se(n, t) {
16
19
  }
17
20
  n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
18
21
  }
19
- function ee(n) {
22
+ function ne(n) {
20
23
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
21
24
  if (e) return e.call(n);
22
25
  if (n && typeof n.length == "number") return {
@@ -26,14 +29,14 @@ function ee(n) {
26
29
  };
27
30
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
28
31
  }
29
- function G(n, t) {
32
+ function X(n, t) {
30
33
  var e = typeof Symbol == "function" && n[Symbol.iterator];
31
34
  if (!e) return n;
32
- var r = e.call(n), o, a = [], f;
35
+ var r = e.call(n), o, s = [], f;
33
36
  try {
34
- for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) a.push(o.value);
35
- } catch (h) {
36
- f = { error: h };
37
+ for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) s.push(o.value);
38
+ } catch (d) {
39
+ f = { error: d };
37
40
  } finally {
38
41
  try {
39
42
  o && !o.done && (e = r.return) && e.call(r);
@@ -41,23 +44,23 @@ function G(n, t) {
41
44
  if (f) throw f.error;
42
45
  }
43
46
  }
44
- return a;
47
+ return s;
45
48
  }
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));
49
+ function H(n, t, e) {
50
+ if (e || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
51
+ (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
52
+ return n.concat(s || Array.prototype.slice.call(t));
50
53
  }
51
54
  function O(n) {
52
55
  return typeof n == "function";
53
56
  }
54
- function Ae(n) {
57
+ function Ne(n) {
55
58
  var t = function(r) {
56
59
  Error.call(r), r.stack = new Error().stack;
57
60
  }, e = n(t);
58
61
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
59
62
  }
60
- var W = Ae(function(n) {
63
+ var U = Ne(function(n) {
61
64
  return function(e) {
62
65
  n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
63
66
  ` + e.map(function(r, o) {
@@ -66,33 +69,33 @@ var W = Ae(function(n) {
66
69
  `) : "", this.name = "UnsubscriptionError", this.errors = e;
67
70
  };
68
71
  });
69
- function te(n, t) {
72
+ function re(n, t) {
70
73
  if (n) {
71
74
  var e = n.indexOf(t);
72
75
  0 <= e && n.splice(e, 1);
73
76
  }
74
77
  }
75
- var X = function() {
78
+ var Q = function() {
76
79
  function n(t) {
77
80
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
78
81
  }
79
82
  return n.prototype.unsubscribe = function() {
80
- var t, e, r, o, a;
83
+ var t, e, r, o, s;
81
84
  if (!this.closed) {
82
85
  this.closed = !0;
83
86
  var f = this._parentage;
84
87
  if (f)
85
88
  if (this._parentage = null, Array.isArray(f))
86
89
  try {
87
- for (var h = ee(f), v = h.next(); !v.done; v = h.next()) {
88
- var p = v.value;
89
- p.remove(this);
90
+ for (var d = ne(f), y = d.next(); !y.done; y = d.next()) {
91
+ var a = y.value;
92
+ a.remove(this);
90
93
  }
91
94
  } catch (c) {
92
95
  t = { error: c };
93
96
  } finally {
94
97
  try {
95
- v && !v.done && (e = h.return) && e.call(h);
98
+ y && !y.done && (e = d.return) && e.call(d);
96
99
  } finally {
97
100
  if (t) throw t.error;
98
101
  }
@@ -104,38 +107,38 @@ var X = function() {
104
107
  try {
105
108
  l();
106
109
  } catch (c) {
107
- a = c instanceof W ? c.errors : [c];
110
+ s = c instanceof U ? c.errors : [c];
108
111
  }
109
- var u = this._finalizers;
110
- if (u) {
112
+ var i = this._finalizers;
113
+ if (i) {
111
114
  this._finalizers = null;
112
115
  try {
113
- for (var y = ee(u), g = y.next(); !g.done; g = y.next()) {
114
- var i = g.value;
116
+ for (var h = ne(i), g = h.next(); !g.done; g = h.next()) {
117
+ var p = g.value;
115
118
  try {
116
- ne(i);
119
+ oe(p);
117
120
  } catch (c) {
118
- a = a ?? [], c instanceof W ? a = J(J([], G(a)), G(c.errors)) : a.push(c);
121
+ s = s ?? [], c instanceof U ? s = H(H([], X(s)), X(c.errors)) : s.push(c);
119
122
  }
120
123
  }
121
124
  } catch (c) {
122
125
  r = { error: c };
123
126
  } finally {
124
127
  try {
125
- g && !g.done && (o = y.return) && o.call(y);
128
+ g && !g.done && (o = h.return) && o.call(h);
126
129
  } finally {
127
130
  if (r) throw r.error;
128
131
  }
129
132
  }
130
133
  }
131
- if (a)
132
- throw new W(a);
134
+ if (s)
135
+ throw new U(s);
133
136
  }
134
137
  }, n.prototype.add = function(t) {
135
138
  var e;
136
139
  if (t && t !== this)
137
140
  if (this.closed)
138
- ne(t);
141
+ oe(t);
139
142
  else {
140
143
  if (t instanceof n) {
141
144
  if (t.closed || t._hasParent(this))
@@ -152,57 +155,57 @@ var X = function() {
152
155
  this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
153
156
  }, n.prototype._removeParent = function(t) {
154
157
  var e = this._parentage;
155
- e === t ? this._parentage = null : Array.isArray(e) && te(e, t);
158
+ e === t ? this._parentage = null : Array.isArray(e) && re(e, t);
156
159
  }, n.prototype.remove = function(t) {
157
160
  var e = this._finalizers;
158
- e && te(e, t), t instanceof n && t._removeParent(this);
161
+ e && re(e, t), t instanceof n && t._removeParent(this);
159
162
  }, n.EMPTY = function() {
160
163
  var t = new n();
161
164
  return t.closed = !0, t;
162
165
  }(), n;
163
166
  }();
164
- X.EMPTY;
165
- function le(n) {
166
- return n instanceof X || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
167
+ Q.EMPTY;
168
+ function ue(n) {
169
+ return n instanceof Q || n && "closed" in n && O(n.remove) && O(n.add) && O(n.unsubscribe);
167
170
  }
168
- function ne(n) {
171
+ function oe(n) {
169
172
  O(n) ? n() : n.unsubscribe();
170
173
  }
171
- var pe = {
174
+ var fe = {
172
175
  onUnhandledError: null,
173
176
  onStoppedNotification: null,
174
177
  Promise: void 0,
175
178
  useDeprecatedSynchronousErrorHandling: !1,
176
179
  useDeprecatedNextContext: !1
177
- }, Se = {
180
+ }, Me = {
178
181
  setTimeout: function(n, t) {
179
182
  for (var e = [], r = 2; r < arguments.length; r++)
180
183
  e[r - 2] = arguments[r];
181
- return setTimeout.apply(void 0, J([n, t], G(e)));
184
+ return setTimeout.apply(void 0, H([n, t], X(e)));
182
185
  },
183
186
  clearTimeout: function(n) {
184
187
  return clearTimeout(n);
185
188
  },
186
189
  delegate: void 0
187
190
  };
188
- function Ee(n) {
189
- Se.setTimeout(function() {
191
+ function ke(n) {
192
+ Me.setTimeout(function() {
190
193
  throw n;
191
194
  });
192
195
  }
193
- function re() {
196
+ function se() {
194
197
  }
195
- function De(n) {
198
+ function Oe(n) {
196
199
  n();
197
200
  }
198
- var ue = function(n) {
199
- se(t, n);
201
+ var de = function(n) {
202
+ pe(t, n);
200
203
  function t(e) {
201
204
  var r = n.call(this) || this;
202
- return r.isStopped = !1, e ? (r.destination = e, le(e) && e.add(r)) : r.destination = ke, r;
205
+ return r.isStopped = !1, e ? (r.destination = e, ue(e) && e.add(r)) : r.destination = Be, r;
203
206
  }
204
207
  return t.create = function(e, r, o) {
205
- return new Q(e, r, o);
208
+ return new J(e, r, o);
206
209
  }, t.prototype.next = function(e) {
207
210
  this.isStopped || this._next(e);
208
211
  }, t.prototype.error = function(e) {
@@ -226,11 +229,11 @@ var ue = function(n) {
226
229
  this.unsubscribe();
227
230
  }
228
231
  }, t;
229
- }(X), we = Function.prototype.bind;
230
- function U(n, t) {
231
- return we.call(n, t);
232
+ }(Q), Le = Function.prototype.bind;
233
+ function W(n, t) {
234
+ return Le.call(n, t);
232
235
  }
233
- var Ne = function() {
236
+ var Fe = function() {
234
237
  function n(t) {
235
238
  this.partialObserver = t;
236
239
  }
@@ -240,7 +243,7 @@ var Ne = function() {
240
243
  try {
241
244
  e.next(t);
242
245
  } catch (r) {
243
- B(r);
246
+ I(r);
244
247
  }
245
248
  }, n.prototype.error = function(t) {
246
249
  var e = this.partialObserver;
@@ -248,23 +251,23 @@ var Ne = function() {
248
251
  try {
249
252
  e.error(t);
250
253
  } catch (r) {
251
- B(r);
254
+ I(r);
252
255
  }
253
256
  else
254
- B(t);
257
+ I(t);
255
258
  }, n.prototype.complete = function() {
256
259
  var t = this.partialObserver;
257
260
  if (t.complete)
258
261
  try {
259
262
  t.complete();
260
263
  } catch (e) {
261
- B(e);
264
+ I(e);
262
265
  }
263
266
  }, n;
264
- }(), Q = function(n) {
265
- se(t, n);
267
+ }(), J = function(n) {
268
+ pe(t, n);
266
269
  function t(e, r, o) {
267
- var a = n.call(this) || this, f;
270
+ var s = n.call(this) || this, f;
268
271
  if (O(e) || !e)
269
272
  f = {
270
273
  next: e ?? void 0,
@@ -272,44 +275,44 @@ var Ne = function() {
272
275
  complete: o ?? void 0
273
276
  };
274
277
  else {
275
- var h;
276
- a && pe.useDeprecatedNextContext ? (h = Object.create(e), h.unsubscribe = function() {
277
- return a.unsubscribe();
278
+ var d;
279
+ s && fe.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
280
+ return s.unsubscribe();
278
281
  }, f = {
279
- next: e.next && U(e.next, h),
280
- error: e.error && U(e.error, h),
281
- complete: e.complete && U(e.complete, h)
282
+ next: e.next && W(e.next, d),
283
+ error: e.error && W(e.error, d),
284
+ complete: e.complete && W(e.complete, d)
282
285
  }) : f = e;
283
286
  }
284
- return a.destination = new Ne(f), a;
287
+ return s.destination = new Fe(f), s;
285
288
  }
286
289
  return t;
287
- }(ue);
288
- function B(n) {
289
- Ee(n);
290
+ }(de);
291
+ function I(n) {
292
+ ke(n);
290
293
  }
291
- function Oe(n) {
294
+ function _e(n) {
292
295
  throw n;
293
296
  }
294
- var ke = {
297
+ var Be = {
295
298
  closed: !0,
296
- next: re,
297
- error: Oe,
298
- complete: re
299
- }, Me = function() {
299
+ next: se,
300
+ error: _e,
301
+ complete: se
302
+ }, $e = function() {
300
303
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
301
304
  }();
302
- function _e(n) {
305
+ function xe(n) {
303
306
  return n;
304
307
  }
305
- function Fe(n) {
306
- return n.length === 0 ? _e : n.length === 1 ? n[0] : function(e) {
308
+ function Ie(n) {
309
+ return n.length === 0 ? xe : n.length === 1 ? n[0] : function(e) {
307
310
  return n.reduce(function(r, o) {
308
311
  return o(r);
309
312
  }, e);
310
313
  };
311
314
  }
312
- var $e = function() {
315
+ var qe = function() {
313
316
  function n(t) {
314
317
  t && (this._subscribe = t);
315
318
  }
@@ -317,11 +320,11 @@ var $e = function() {
317
320
  var e = new n();
318
321
  return e.source = this, e.operator = t, e;
319
322
  }, 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 f = o, h = f.operator, v = f.source;
323
- a.add(h ? h.call(a, v) : v ? o._subscribe(a) : o._trySubscribe(a));
324
- }), a;
323
+ var o = this, s = Ue(t) ? t : new J(t, e, r);
324
+ return Oe(function() {
325
+ var f = o, d = f.operator, y = f.source;
326
+ s.add(d ? d.call(s, y) : y ? o._subscribe(s) : o._trySubscribe(s));
327
+ }), s;
325
328
  }, n.prototype._trySubscribe = function(t) {
326
329
  try {
327
330
  return this._subscribe(t);
@@ -330,16 +333,16 @@ var $e = function() {
330
333
  }
331
334
  }, n.prototype.forEach = function(t, e) {
332
335
  var r = this;
333
- return e = oe(e), new e(function(o, a) {
334
- var f = new Q({
335
- next: function(h) {
336
+ return e = ae(e), new e(function(o, s) {
337
+ var f = new J({
338
+ next: function(d) {
336
339
  try {
337
- t(h);
338
- } catch (v) {
339
- a(v), f.unsubscribe();
340
+ t(d);
341
+ } catch (y) {
342
+ s(y), f.unsubscribe();
340
343
  }
341
344
  },
342
- error: a,
345
+ error: s,
343
346
  complete: o
344
347
  });
345
348
  r.subscribe(f);
@@ -347,64 +350,64 @@ var $e = function() {
347
350
  }, n.prototype._subscribe = function(t) {
348
351
  var e;
349
352
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
350
- }, n.prototype[Me] = function() {
353
+ }, n.prototype[$e] = function() {
351
354
  return this;
352
355
  }, n.prototype.pipe = function() {
353
356
  for (var t = [], e = 0; e < arguments.length; e++)
354
357
  t[e] = arguments[e];
355
- return Fe(t)(this);
358
+ return Ie(t)(this);
356
359
  }, n.prototype.toPromise = function(t) {
357
360
  var e = this;
358
- return t = oe(t), new t(function(r, o) {
359
- var a;
361
+ return t = ae(t), new t(function(r, o) {
362
+ var s;
360
363
  e.subscribe(function(f) {
361
- return a = f;
364
+ return s = f;
362
365
  }, function(f) {
363
366
  return o(f);
364
367
  }, function() {
365
- return r(a);
368
+ return r(s);
366
369
  });
367
370
  });
368
371
  }, n.create = function(t) {
369
372
  return new n(t);
370
373
  }, n;
371
374
  }();
372
- function oe(n) {
375
+ function ae(n) {
373
376
  var t;
374
- return (t = n ?? pe.Promise) !== null && t !== void 0 ? t : Promise;
377
+ return (t = n ?? fe.Promise) !== null && t !== void 0 ? t : Promise;
375
378
  }
376
- function Le(n) {
379
+ function Ve(n) {
377
380
  return n && O(n.next) && O(n.error) && O(n.complete);
378
381
  }
379
- function xe(n) {
380
- return n && n instanceof ue || Le(n) && le(n);
382
+ function Ue(n) {
383
+ return n && n instanceof de || Ve(n) && ue(n);
381
384
  }
382
- const fe = {}, de = {};
385
+ const ye = {}, he = {};
383
386
  function Z(n) {
384
- const { properties: t, title: e } = n, r = Object.keys(t).reduce((o, a) => (o[a] = t[a].type === "object" && t[a].properties ? Z(t[a]) : Pe(t[a].default), o), {});
385
- return r.id = `${e}-${Date.now()}`, r;
387
+ const { properties: t, title: e, ignore: r } = n, o = r && Array.isArray(r), s = Object.keys(t).reduce((f, d) => ((!o || !r.find((y) => y == d)) && (f[d] = t[d].type === "object" && t[d].properties ? Z(t[d]) : Ee(t[d].default)), f), {});
388
+ return (!o || !r.find((f) => f == "id")) && (s.id = `${e}-${Date.now()}`), s;
386
389
  }
387
- function L(n, t = {}) {
388
- const e = fe[n];
389
- if (e) {
390
- let r = Z(e);
391
- const o = de[n];
392
- return r = o ? o({ getSchemaByType: L }, r, t) : r, r;
390
+ function $(n, t = {}, e) {
391
+ const r = ye[n];
392
+ if (r) {
393
+ let o = Z(r);
394
+ const s = he[n];
395
+ return o = s ? s({ getSchemaByType: $ }, o, t, e) : o, o;
393
396
  }
394
397
  return null;
395
398
  }
396
- function Be(n, t) {
399
+ function We(n, t) {
397
400
  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;
401
+ return Object.keys(n).reduce((r, o) => (r[o] && te(r[o]) && te(n[o]) ? Object.assign(r[o], n[o]) : r[o] = n[o], r), e), e;
399
402
  }
400
- function Ve(n, t) {
403
+ function Ge(n, t) {
401
404
  return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
402
405
  if (t.has(o)) {
403
- const a = t.get(o);
404
- if (typeof a == "string")
405
- r[a] = n[o];
406
+ const s = t.get(o);
407
+ if (typeof s == "string")
408
+ r[s] = n[o];
406
409
  else {
407
- const f = a(o, n[o], n);
410
+ const f = s(o, n[o], n);
408
411
  Object.assign(r, f);
409
412
  }
410
413
  } else
@@ -412,78 +415,78 @@ function Ve(n, t) {
412
415
  return r;
413
416
  }, {});
414
417
  }
415
- function qe(n, t, e = /* @__PURE__ */ new Map()) {
416
- const r = Be(n, t);
417
- return Ve(r, e);
418
+ function ze(n, t, e = /* @__PURE__ */ new Map()) {
419
+ const r = We(n, t);
420
+ return Ge(r, e);
418
421
  }
419
- function We(n = {}) {
420
- function t(p, l, u, y) {
421
- if (typeof u == "number")
422
- return y[p].length === u;
423
- if (typeof u == "object") {
424
- const g = Object.keys(u)[0], i = u[g];
422
+ function Ye(n = {}) {
423
+ function t(a, l, i, h) {
424
+ if (typeof i == "number")
425
+ return h[a].length === i;
426
+ if (typeof i == "object") {
427
+ const g = Object.keys(i)[0], p = i[g];
425
428
  if (g === "not")
426
- return Number(y[p].length) !== Number(i);
429
+ return Number(h[a].length) !== Number(p);
427
430
  if (g === "moreThan")
428
- return Number(y[p].length) >= Number(i);
431
+ return Number(h[a].length) >= Number(p);
429
432
  if (g === "lessThan")
430
- return Number(y[p].length) <= Number(i);
433
+ return Number(h[a].length) <= Number(p);
431
434
  }
432
435
  return !1;
433
436
  }
434
- function e(p, l, u, y) {
435
- return y[p] && y[p].propertyValue && String(y[p].propertyValue.value) === String(u);
437
+ function e(a, l, i, h) {
438
+ return h[a] && h[a].propertyValue && String(h[a].propertyValue.value) === String(i);
436
439
  }
437
440
  const r = /* @__PURE__ */ new Map([
438
441
  ["length", t],
439
442
  ["getProperty", e]
440
443
  ]);
441
- Object.keys(n).reduce((p, l) => (p.set(l, n[l]), p), r);
442
- function o(p, l) {
443
- const u = p;
444
- return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: p, value: !!l }] : typeof l == "object" ? Object.keys(l).map((y) => {
445
- if (y === "length")
446
- return { target: u, operator: "length", param: null, value: l[y] };
447
- const g = y, i = l[y];
448
- return { target: u, operator: "getProperty", param: g, value: i };
444
+ Object.keys(n).reduce((a, l) => (a.set(l, n[l]), a), r);
445
+ function o(a, l) {
446
+ const i = a;
447
+ return typeof l == "number" ? [{ target: i, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!l }] : typeof l == "object" ? Object.keys(l).map((h) => {
448
+ if (h === "length")
449
+ return { target: i, operator: "length", param: null, value: l[h] };
450
+ const g = h, p = l[h];
451
+ return { target: i, operator: "getProperty", param: g, value: p };
449
452
  }) : [];
450
453
  }
451
- function a(p) {
452
- return Object.keys(p).reduce((u, y) => {
453
- const g = o(y, p[y]);
454
- return u.push(...g), u;
454
+ function s(a) {
455
+ return Object.keys(a).reduce((i, h) => {
456
+ const g = o(h, a[h]);
457
+ return i.push(...g), i;
455
458
  }, []);
456
459
  }
457
- function f(p, l) {
458
- if (r.has(p.operator)) {
459
- const u = r.get(p.operator);
460
- return u && u(p.target, p.param, p.value, l) || !1;
460
+ function f(a, l) {
461
+ if (r.has(a.operator)) {
462
+ const i = r.get(a.operator);
463
+ return i && i(a.target, a.param, a.value, l) || !1;
461
464
  }
462
465
  return !1;
463
466
  }
464
- function h(p, l) {
465
- return a(p).reduce((g, i) => g && f(i, l), !0);
467
+ function d(a, l) {
468
+ return s(a).reduce((g, p) => g && f(p, l), !0);
466
469
  }
467
- function v(p, l) {
468
- const u = Object.keys(p), y = u.includes("allOf"), g = u.includes("anyOf"), i = y || g, b = (i ? p[i ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((C) => h(C, l));
469
- return y ? !b.includes(!1) : b.includes(!0);
470
+ function y(a, l) {
471
+ const i = Object.keys(a), h = i.includes("allOf"), g = i.includes("anyOf"), p = h || g, m = (p ? a[p ? h ? "allOf" : "anyOf" : "allOf"] : [a]).map((C) => d(C, l));
472
+ return h ? !m.includes(!1) : m.includes(!0);
470
473
  }
471
- return { parseValueSchema: v };
474
+ return { parseValueSchema: y };
472
475
  }
473
- const Ue = {}, ze = {};
474
- We();
475
- function He(n, t, e = /* @__PURE__ */ new Map(), r = (f, h, v) => h, o = {}, a = (f) => f) {
476
- return fe[t.title] = t, de[t.title] = r, Ue[t.title] = o, ze[t.title] = a, (f = {}) => {
477
- const h = qe(f, t, e), v = Object.keys(n).reduce((p, l) => (p[l] = n[l].default, p), {});
478
- return Object.assign(v, h);
476
+ const Xe = {}, He = {};
477
+ Ye();
478
+ function Je(n, t, e = /* @__PURE__ */ new Map(), r = (f, d, y) => d, o = {}, s = (f) => f) {
479
+ return ye[t.title] = t, he[t.title] = r, Xe[t.title] = o, He[t.title] = s, (f = {}) => {
480
+ const d = ze(f, t, e), y = Object.keys(n).reduce((a, l) => (a[l] = n[l].default, a), {});
481
+ return Object.assign(y, d);
479
482
  };
480
483
  }
481
- function Ye(n, t) {
484
+ function Qe(n, t) {
482
485
  return { customClass: t.class, customStyle: t.style };
483
486
  }
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 = {
487
+ const Ze = /* @__PURE__ */ new Map([
488
+ ["appearance", Qe]
489
+ ]), Re = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/nav.schema.json", et = "nav", tt = "A Farris Component", nt = "object", rt = {
487
490
  id: {
488
491
  description: "The unique identifier for a nav",
489
492
  type: "string"
@@ -575,22 +578,22 @@ const Ge = /* @__PURE__ */ new Map([
575
578
  type: "sting",
576
579
  default: ""
577
580
  }
578
- }, Ie = [
581
+ }, ot = [
579
582
  "id",
580
583
  "type"
581
- ], et = {
582
- $schema: Je,
583
- $id: Qe,
584
- title: Xe,
585
- description: Ze,
586
- type: Re,
587
- properties: Ke,
588
- required: Ie
584
+ ], st = {
585
+ $schema: Re,
586
+ $id: Ke,
587
+ title: et,
588
+ description: tt,
589
+ type: nt,
590
+ properties: rt,
591
+ required: ot
589
592
  };
590
- function tt(n, t, e) {
593
+ function at(n, t, e) {
591
594
  return t;
592
595
  }
593
- const nt = "nav", rt = "A Farris Component", ot = "object", at = {
596
+ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
594
597
  basic: {
595
598
  description: "Basic Infomation",
596
599
  title: "基本信息",
@@ -672,11 +675,11 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
672
675
  }
673
676
  }
674
677
  }
675
- }, ct = {
676
- title: nt,
677
- description: rt,
678
- type: ot,
679
- categories: at
678
+ }, ut = {
679
+ title: it,
680
+ description: ct,
681
+ type: lt,
682
+ categories: pt
680
683
  }, R = {
681
684
  /** 未读最大值 */
682
685
  maxNum: { Type: Number, default: 99 },
@@ -710,34 +713,34 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
710
713
  /** 当前激活的id */
711
714
  activeNavId: { Type: String, default: "1" },
712
715
  /** nav切换前事件 */
713
- navPicking: { Type: Function, default: (n) => $e }
714
- }, ae = He(R, et, Ge, tt, ct), z = /* @__PURE__ */ ce({
716
+ navPicking: { Type: Function, default: (n) => qe }
717
+ }, ie = Je(R, st, Ze, at, ut), G = /* @__PURE__ */ ce({
715
718
  name: "FNav",
716
719
  props: R,
717
720
  emits: ["nav", "update:activeNavId"],
718
721
  setup(n, t) {
719
- const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
720
- S(n.navPicking), ge(() => n.activeNavId, (l, u) => {
721
- l !== u && (e.value = l);
722
+ const e = w(n.activeNavId), r = w(n.navData), o = w(n.horizontal);
723
+ w(n.navPicking), je(() => n.activeNavId, (l, i) => {
724
+ l !== i && (e.value = l);
722
725
  });
723
- const a = F({
726
+ const s = _({
724
727
  get() {
725
728
  return r.value;
726
729
  },
727
730
  set(l) {
728
- r.value = l, v();
731
+ r.value = l, y();
729
732
  }
730
- }), f = F({
733
+ }), f = _({
731
734
  get() {
732
735
  return e.value;
733
736
  },
734
737
  set(l) {
735
- if (e.value = l, e.value && a && a.value.length) {
736
- const u = a.value.find((y) => y.id === e.value);
737
- u && t.emit("nav", u);
738
+ if (e.value = l, e.value && s && s.value.length) {
739
+ const i = s.value.find((h) => h.id === e.value);
740
+ i && t.emit("nav", i);
738
741
  }
739
742
  }
740
- }), h = F({
743
+ }), d = _({
741
744
  set(l) {
742
745
  o.value = l;
743
746
  },
@@ -745,143 +748,143 @@ const nt = "nav", rt = "A Farris Component", ot = "object", at = {
745
748
  return o.value;
746
749
  }
747
750
  });
748
- function v() {
749
- if (a.value && a.value.length && !e.value) {
750
- const l = a.value.find((u) => !u.disable);
751
+ function y() {
752
+ if (s.value && s.value.length && !e.value) {
753
+ const l = s.value.find((i) => !i.disable);
751
754
  l && (e.value = l.id);
752
755
  }
753
756
  }
754
- function p(l) {
757
+ function a(l) {
755
758
  l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
756
759
  }
757
760
  return () => {
758
761
  var l;
759
- return D("div", {
762
+ return N("div", {
760
763
  class: ["farris-nav", {
761
- "farris-nav-vertical": !h.value
764
+ "farris-nav-vertical": !d.value
762
765
  }]
763
- }, [(l = a.value) == null ? void 0 : l.map((u) => D("div", {
766
+ }, [(l = s.value) == null ? void 0 : l.map((i) => N("div", {
764
767
  class: ["farris-nav-item", {
765
- active: u.id === f.value
768
+ active: i.id === f.value
766
769
  }, {
767
- disabled: u.disable
770
+ disabled: i.disable
768
771
  }],
769
- onClick: () => p(u)
770
- }, [D("div", {
772
+ onClick: () => a(i)
773
+ }, [N("div", {
771
774
  class: "farris-nav-item-link"
772
- }, [D("span", {
775
+ }, [N("span", {
773
776
  class: "farris-nav-item-link-text"
774
- }, [typeof u.text == "function" ? u.text() : u.text, u.num && D("div", {
777
+ }, [typeof i.text == "function" ? i.text() : i.text, i.num && N("div", {
775
778
  class: "farris-nav-item-tag"
776
- }, [u.num <= n.maxNum && D("span", {
779
+ }, [i.num <= n.maxNum && N("span", {
777
780
  class: "tag-text"
778
- }, [u.num]), u.num > n.maxNum && D("span", {
781
+ }, [i.num]), i.num > n.maxNum && N("span", {
779
782
  class: "tag-text"
780
- }, [n.maxNum, ie("+")])])])])]))]);
783
+ }, [n.maxNum, le("+")])])])])]))]);
781
784
  };
782
785
  }
783
786
  });
784
- function it(n, t, e) {
787
+ function ft(n, t, e) {
785
788
  var M;
786
789
  function r() {
787
790
  e != null && e.resolveComponentContext && e.resolveComponentContext();
788
791
  }
789
792
  r();
790
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", f = S();
791
- function h() {
793
+ const o = e && e.getStyles && e.getStyles() || "", s = e && e.getDesignerClass && e.getDesignerClass() || "", f = w();
794
+ function d() {
792
795
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
793
796
  }
794
- function v() {
797
+ function y() {
795
798
  return !1;
796
799
  }
797
- function p() {
800
+ function a() {
798
801
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
799
802
  }
800
803
  function l() {
801
804
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
802
805
  }
803
- function u(m) {
804
- if (!m || !m.value)
806
+ function i(b) {
807
+ if (!b || !b.value)
805
808
  return null;
806
- if (m.value.schema && m.value.schema.type === "component")
807
- return m.value;
808
- const A = S(m == null ? void 0 : m.value.parent), d = u(A);
809
- return d || null;
809
+ if (b.value.schema && b.value.schema.type === "component")
810
+ return b.value;
811
+ const D = w(b == null ? void 0 : b.value.parent), E = i(D);
812
+ return E || null;
810
813
  }
811
- function y(m = t) {
812
- const { componentInstance: A, designerItemElementRef: d } = m;
813
- return !A || !A.value ? null : A.value.canMove ? d : y(m.parent);
814
+ function h(b = t) {
815
+ const { componentInstance: D, designerItemElementRef: E } = b;
816
+ return !D || !D.value ? null : D.value.canMove ? E : h(b.parent);
814
817
  }
815
- function g(m) {
816
- return !!e && e.canAccepts(m);
818
+ function g(b) {
819
+ return !!e && e.canAccepts(b);
817
820
  }
818
- function i() {
821
+ function p() {
819
822
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
820
823
  }
821
824
  function c() {
822
825
  }
823
- function s(m, A) {
824
- A && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(A);
826
+ function u(b, D) {
827
+ D && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(D);
825
828
  }
826
- function b(m) {
827
- const { componentType: A } = m;
828
- let d = L(A, m);
829
- e && e.onResolveNewComponentSchema && (d = e.onResolveNewComponentSchema(m, d));
830
- const j = A.toLowerCase().replace("-", "_");
831
- return d && !d.id && d.type === A && (d.id = `${j}_${Math.random().toString().slice(2, 6)}`), d;
829
+ function m(b, D) {
830
+ const { componentType: E } = b;
831
+ let v = $(E, b, D);
832
+ e && e.onResolveNewComponentSchema && (v = e.onResolveNewComponentSchema(b, v));
833
+ const P = E.toLowerCase().replace("-", "_");
834
+ return v && !v.id && v.type === E && (v.id = `${P}_${Math.random().toString().slice(2, 6)}`), v;
832
835
  }
833
- function P(m, A) {
834
- const d = String(m.getAttribute("data-controltype")), j = m.getAttribute("data-feature"), w = j ? JSON.parse(j) : {};
835
- w.parentComponentInstance = f.value;
836
- let T = L(d, w);
837
- e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(m, A, T));
838
- const k = d.toLowerCase().replace("-", "_");
839
- return T && !T.id && T.type === d && (T.id = `${k}_${Math.random().toString().slice(2, 6)}`), T;
836
+ function A(b, D) {
837
+ const E = String(b.getAttribute("data-controltype")), v = b.getAttribute("data-feature"), P = v ? JSON.parse(v) : {};
838
+ P.parentComponentInstance = f.value;
839
+ let T = $(E, P);
840
+ e && e.onAcceptNewChildElement && (T = e.onAcceptNewChildElement(b, D, T));
841
+ const S = E.toLowerCase().replace("-", "_");
842
+ return T && !T.id && T.type === E && (T.id = `${S}_${Math.random().toString().slice(2, 6)}`), T;
840
843
  }
841
- function C(m) {
844
+ function C(b) {
842
845
  }
843
- function E(...m) {
846
+ function j(...b) {
844
847
  if (e && e.getPropsConfig)
845
- return e.getPropsConfig(...m);
848
+ return e.getPropsConfig(...b);
846
849
  }
847
850
  return f.value = {
848
- canMove: h(),
849
- canSelectParent: v(),
850
- canDelete: p(),
851
+ canMove: d(),
852
+ canSelectParent: y(),
853
+ canDelete: a(),
851
854
  canNested: !l(),
852
855
  contents: t == null ? void 0 : t.schema.contents,
853
856
  elementRef: n,
854
857
  parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
855
858
  schema: t == null ? void 0 : t.schema,
856
859
  styles: o,
857
- designerClass: a,
860
+ designerClass: s,
858
861
  canAccepts: g,
859
- getBelongedComponentInstance: u,
860
- getDraggableDesignItemElement: y,
861
- getDraggingDisplayText: i,
862
- getPropConfig: E,
862
+ getBelongedComponentInstance: i,
863
+ getDraggableDesignItemElement: h,
864
+ getDraggingDisplayText: p,
865
+ getPropConfig: j,
863
866
  getDragScopeElement: c,
864
- onAcceptMovedChildElement: s,
865
- onAcceptNewChildElement: P,
867
+ onAcceptMovedChildElement: u,
868
+ onAcceptNewChildElement: A,
866
869
  onChildElementMovedOut: C,
867
- addNewChildComponentSchema: b,
870
+ addNewChildComponentSchema: m,
868
871
  updateDragAndDropRules: r,
869
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || S(!1),
870
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
872
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || w(!1),
873
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
871
874
  }, f;
872
875
  }
873
- function st() {
876
+ function dt() {
874
877
  function n(t) {
875
- var o, a;
878
+ var o, s;
876
879
  if (!t)
877
880
  return !1;
878
881
  const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
879
882
  if (!e)
880
883
  return !1;
881
- const r = (a = e.schema.appearance) == null ? void 0 : a.class;
884
+ const r = (s = e.schema.appearance) == null ? void 0 : s.class;
882
885
  if (t.controlCategory === "input" || t.controlType === "form-group") {
883
- const f = e.schema.type, h = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
884
- if (e.schema.type !== "response-layout-item" && !h)
886
+ const f = e.schema.type, d = (f === "response-form" || f === "content-container") && r && r.includes("farris-form");
887
+ if (e.schema.type !== "response-layout-item" && !d)
885
888
  return !1;
886
889
  }
887
890
  return t.controlType !== "field-set";
@@ -890,7 +893,7 @@ function st() {
890
893
  basalDragulaRuleForContainer: n
891
894
  };
892
895
  }
893
- const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-design.gitee.io/dragging-rules.schema.json", ut = "Dragging Rules", ft = "The rules of designer canvas", dt = "object", yt = {
896
+ const yt = "https://json-schema.org/draft/2020-12/schema", ht = "https://farris-design.gitee.io/dragging-rules.schema.json", bt = "Dragging Rules", mt = "The rules of designer canvas", vt = "object", gt = {
894
897
  "f-page": {
895
898
  description: "The root class of page designed by farris.",
896
899
  type: "object",
@@ -1309,6 +1312,80 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
1309
1312
  "f-list-nav-left": {
1310
1313
  description: "",
1311
1314
  type: "object"
1315
+ },
1316
+ "f-struct-data-grid-in-nav": {
1317
+ description: "",
1318
+ type: "object",
1319
+ properties: {
1320
+ contents: {
1321
+ type: "object",
1322
+ properties: {
1323
+ "f-section-form": {
1324
+ description: "",
1325
+ type: "object",
1326
+ properties: {
1327
+ rules: {
1328
+ type: "object",
1329
+ properties: {
1330
+ canAccept: {
1331
+ type: "boolean",
1332
+ const: !1
1333
+ },
1334
+ fixed: {
1335
+ type: "boolean",
1336
+ const: !0
1337
+ },
1338
+ hidePadding: {
1339
+ type: "boolean",
1340
+ const: !0
1341
+ }
1342
+ }
1343
+ }
1344
+ }
1345
+ },
1346
+ "f-section-grid": {
1347
+ description: "",
1348
+ type: "object",
1349
+ properties: {
1350
+ rules: {
1351
+ type: "object",
1352
+ properties: {
1353
+ canAccept: {
1354
+ type: "boolean",
1355
+ const: !1
1356
+ },
1357
+ fixed: {
1358
+ type: "boolean",
1359
+ const: !0
1360
+ },
1361
+ hidePadding: {
1362
+ type: "boolean",
1363
+ const: !0
1364
+ }
1365
+ }
1366
+ }
1367
+ }
1368
+ }
1369
+ }
1370
+ },
1371
+ rules: {
1372
+ type: "object",
1373
+ properties: {
1374
+ canAccept: {
1375
+ type: "boolean",
1376
+ const: !1
1377
+ },
1378
+ fixed: {
1379
+ type: "boolean",
1380
+ const: !0
1381
+ },
1382
+ hidePadding: {
1383
+ type: "boolean",
1384
+ const: !0
1385
+ }
1386
+ }
1387
+ }
1388
+ }
1312
1389
  }
1313
1390
  }
1314
1391
  }
@@ -1454,39 +1531,38 @@ const lt = "https://json-schema.org/draft/2020-12/schema", pt = "https://farris-
1454
1531
  description: "",
1455
1532
  type: "object"
1456
1533
  }
1457
- }, ht = [], bt = {
1458
- $schema: lt,
1459
- $id: pt,
1460
- title: ut,
1461
- description: ft,
1462
- type: dt,
1463
- properties: yt,
1464
- required: ht
1465
- }, H = /* @__PURE__ */ new Map();
1466
- function mt() {
1467
- function n(i, c, s, b) {
1468
- var P;
1469
- if (typeof s == "number")
1470
- return ((P = b[i]) == null ? void 0 : P.length) === s;
1471
- if (typeof s == "object") {
1472
- const C = Object.keys(s)[0], E = s[C];
1534
+ }, Ct = {
1535
+ $schema: yt,
1536
+ $id: ht,
1537
+ title: bt,
1538
+ description: mt,
1539
+ type: vt,
1540
+ properties: gt
1541
+ }, z = /* @__PURE__ */ new Map();
1542
+ function jt() {
1543
+ function n(p, c, u, m) {
1544
+ var A;
1545
+ if (typeof u == "number")
1546
+ return ((A = m[p]) == null ? void 0 : A.length) === u;
1547
+ if (typeof u == "object") {
1548
+ const C = Object.keys(u)[0], j = u[C];
1473
1549
  if (C === "not")
1474
- return Number(b[i].length) !== Number(E);
1550
+ return Number(m[p].length) !== Number(j);
1475
1551
  if (C === "moreThan")
1476
- return Number(b[i].length) >= Number(E);
1552
+ return Number(m[p].length) >= Number(j);
1477
1553
  if (C === "lessThan")
1478
- return Number(b[i].length) <= Number(E);
1554
+ return Number(m[p].length) <= Number(j);
1479
1555
  }
1480
1556
  return !1;
1481
1557
  }
1482
- function t(i, c, s, b) {
1483
- return typeof s == "boolean" ? b.childrenClassList.includes(c) === !!s : !1;
1558
+ function t(p, c, u, m) {
1559
+ return typeof u == "boolean" ? m.childrenClassList.includes(c) === !!u : !1;
1484
1560
  }
1485
- function e(i, c, s, b) {
1486
- return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1561
+ function e(p, c, u, m) {
1562
+ return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1487
1563
  }
1488
- function r(i, c, s, b) {
1489
- return typeof s == "boolean" ? b.parentClassList.includes(c) === !!s : !1;
1564
+ function r(p, c, u, m) {
1565
+ return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1490
1566
  }
1491
1567
  const o = /* @__PURE__ */ new Map([
1492
1568
  ["length", n],
@@ -1494,213 +1570,281 @@ function mt() {
1494
1570
  ["hasSibling", r],
1495
1571
  ["hasParent", e]
1496
1572
  ]);
1497
- function a(i, c) {
1498
- const s = i;
1499
- return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
1500
- if (b === "length")
1501
- return { target: s, operator: "length", param: null, value: c[b] };
1502
- const P = b, C = c[b];
1503
- return { target: s, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: P, value: C };
1573
+ function s(p, c) {
1574
+ const u = p;
1575
+ return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((m) => {
1576
+ if (m === "length")
1577
+ return { target: u, operator: "length", param: null, value: c[m] };
1578
+ const A = m, C = c[m];
1579
+ return { target: u, operator: p === "children" ? "hasChildren" : p === "parent" ? "hasParent" : "hasSibling", param: A, value: C };
1504
1580
  }) : [];
1505
1581
  }
1506
- function f(i, c) {
1507
- if (o.has(i.operator)) {
1508
- const s = o.get(i.operator);
1509
- return s && s(i.target, i.param, i.value, c) || !1;
1582
+ function f(p, c) {
1583
+ if (o.has(p.operator)) {
1584
+ const u = o.get(p.operator);
1585
+ return u && u(p.target, p.param, p.value, c) || !1;
1510
1586
  }
1511
1587
  return !1;
1512
1588
  }
1513
- function h(i, c) {
1514
- return Object.keys(i).reduce((C, E) => {
1515
- const M = a(E, i[E]);
1589
+ function d(p, c) {
1590
+ return Object.keys(p).reduce((C, j) => {
1591
+ const M = s(j, p[j]);
1516
1592
  return C.push(...M), C;
1517
- }, []).reduce((C, E) => C && f(E, c), !0);
1593
+ }, []).reduce((C, j) => C && f(j, c), !0);
1518
1594
  }
1519
- function v(i, c) {
1520
- const s = Object.keys(i), b = s.includes("allOf"), P = s.includes("anyOf"), C = b || P, m = (C ? i[C ? b ? "allOf" : "anyOf" : "allOf"] : [i]).map((d) => h(d, c));
1521
- return b ? !m.includes(!1) : m.includes(!0);
1595
+ function y(p, c) {
1596
+ const u = Object.keys(p), m = u.includes("allOf"), A = u.includes("anyOf"), C = m || A, b = (C ? p[C ? m ? "allOf" : "anyOf" : "allOf"] : [p]).map((E) => d(E, c));
1597
+ return m ? !b.includes(!1) : b.includes(!0);
1522
1598
  }
1523
- function p(i, c) {
1524
- const s = i.const;
1525
- return s ? typeof s == "boolean" ? s : typeof s == "object" ? v(s, c) : !1 : !1;
1599
+ function a(p, c) {
1600
+ const u = p.const;
1601
+ return u ? typeof u == "boolean" ? u : typeof u == "object" ? y(u, c) : !1 : !1;
1526
1602
  }
1527
- function l(i) {
1603
+ function l(p) {
1528
1604
  return (c) => {
1529
- const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
1530
- return i && i.properties && Object.keys(i.properties).reduce((b, P) => {
1531
- const C = i.properties[P];
1532
- return b[P] = p(C, c), b;
1533
- }, s), s;
1605
+ const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
1606
+ return p && p.properties && Object.keys(p.properties).reduce((m, A) => {
1607
+ const C = p.properties[A];
1608
+ return m[A] = a(C, c), m;
1609
+ }, u), u;
1534
1610
  };
1535
1611
  }
1536
- function u(i, c, s) {
1612
+ function i(p, c, u) {
1537
1613
  if (c.type === "object" && c.properties) {
1538
- const { rules: b, contents: P } = c.properties;
1539
- s.set(i, l(b)), P && Object.keys(P.properties).forEach(
1540
- (C) => u(C, P.properties[C], s)
1614
+ const { rules: m, contents: A } = c.properties;
1615
+ u.set(p, l(m)), A && Object.keys(A.properties).forEach(
1616
+ (C) => i(C, A.properties[C], u)
1541
1617
  );
1542
1618
  }
1543
1619
  }
1544
- function y() {
1545
- const { properties: i } = bt;
1546
- Object.keys(i).forEach((c) => {
1547
- u(c, i[c], H);
1620
+ function h() {
1621
+ const { properties: p } = Ct;
1622
+ Object.keys(p).forEach((c) => {
1623
+ i(c, p[c], z);
1548
1624
  });
1549
1625
  }
1550
- function g(i, c) {
1551
- const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
1552
- return H.has(i) ? H.get(i)(c) : s;
1626
+ function g(p, c) {
1627
+ const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1628
+ return z.has(p) ? z.get(p)(c) : u;
1553
1629
  }
1554
- return y(), { getRuleValue: g };
1630
+ return h(), { getRuleValue: g };
1555
1631
  }
1556
- function vt(n, t) {
1557
- var A;
1558
- const e = n.schema, r = (A = n.parent) == null ? void 0 : A.schema, o = mt(), a = S(!1), f = S(!1);
1559
- let h = !0, v = !1, p, l = !1;
1560
- function u(d) {
1561
- return p && p.componentClassList && p.componentClassList.includes("f-form-layout") && p.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
1632
+ function Pt(n, t) {
1633
+ function e(y, a = null) {
1634
+ if (a) return a;
1635
+ const l = n.getComponentById(t);
1636
+ return n.selectNode(l, (i) => i.id === y);
1562
1637
  }
1563
- function y(d) {
1564
- return !(!st().basalDragulaRuleForContainer(d) || !h || !u(d));
1638
+ function r(y) {
1639
+ const a = n.getComponentById(y);
1640
+ return !(!a || !a.componentType || !a.componentType.startsWith("form"));
1641
+ }
1642
+ function o(y) {
1643
+ const a = e(y.id), l = De(n), i = [];
1644
+ l.getResonseFormLayoutConfig(a, i, 1);
1645
+ const h = i.map((j) => j.columnInSM), g = i.map((j) => j.columnInMD), p = i.map((j) => j.columnInLG), c = i.map((j) => j.columnInEL), u = s(h) ? h[0] : 0, m = s(g) ? g[0] : 0, A = s(p) ? p[0] : 0, C = s(c) ? c[0] : 0;
1646
+ return {
1647
+ uniqueColClassInSM: u,
1648
+ uniqueColClassInMD: m,
1649
+ uniqueColClassInLG: A,
1650
+ uniqueColClassInEL: C
1651
+ };
1652
+ }
1653
+ function s(y) {
1654
+ const a = new Set(y);
1655
+ return Array.from(a).length === 1;
1656
+ }
1657
+ function f(y, a, l) {
1658
+ y = e(l, y), y.contents.forEach((i) => {
1659
+ if (i.type === we.fieldset.type) {
1660
+ f(i, a, i.id);
1661
+ return;
1662
+ }
1663
+ i.appearance || (i.appearance = {});
1664
+ const h = i.appearance.class;
1665
+ i.appearance.class = d(h, a);
1666
+ });
1667
+ }
1668
+ function d(y, a) {
1669
+ let l, i, h, g, p = [];
1670
+ if (y) {
1671
+ const j = y.split(" "), M = j.filter((b) => b.startsWith("col-"));
1672
+ l = M.find((b) => /^col-([1-9]|10|11|12)$/.test(b)), i = M.find((b) => /^col-md-([1-9]|10|11|12)$/.test(b)), h = M.find((b) => /^col-xl-([1-9]|10|11|12)$/.test(b)), g = M.find((b) => /^col-el-([1-9]|10|11|12)$/.test(b)), p = j.filter((b) => !b.startsWith("col-"));
1673
+ }
1674
+ const c = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : l, u = a.uniqueColClassInMD ? "col-md-" + a.uniqueColClassInMD : i, m = a.uniqueColClassInLG ? "col-xl-" + a.uniqueColClassInLG : h, A = a.uniqueColClassInEL ? "col-el-" + a.uniqueColClassInEL : g;
1675
+ return [c, u, m, A].concat(p).join(" ");
1676
+ }
1677
+ return { checkIsInFormComponent: r, assembleUnifiedLayoutContext: o, changeFormControlsByUnifiedLayoutConfig: f };
1678
+ }
1679
+ class At extends Se {
1680
+ constructor(t, e) {
1681
+ super(t, e);
1682
+ }
1683
+ getPropertyConfig(t, e) {
1684
+ var r = this;
1685
+ this.propertyConfig.categories.basic = this.getBasicPropConfig(t);
1686
+ const { checkIsInFormComponent: o, assembleUnifiedLayoutContext: s, changeFormControlsByUnifiedLayoutConfig: f } = Pt(this.formSchemaUtils, this.componentId), d = this.getAppearanceConfig(t);
1687
+ return d.properties.unifiedLayout = {
1688
+ title: "统一布局配置",
1689
+ description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
1690
+ visible: o(this.componentId),
1691
+ refreshPanelAfterChanged: !0,
1692
+ editor: {
1693
+ type: "response-form-layout-setting",
1694
+ initialState: s(t)
1695
+ }
1696
+ }, d.setPropertyRelates = function(y, a) {
1697
+ if (y)
1698
+ switch (y && y.propertyID) {
1699
+ case "unifiedLayout": {
1700
+ f(null, y.propertyValue, t.id), r.updateElementByParentContainer(t.id, e);
1701
+ break;
1702
+ }
1703
+ }
1704
+ }, this.propertyConfig.categories.appearance = d, this.propertyConfig;
1705
+ }
1706
+ }
1707
+ function Tt(n, t) {
1708
+ var E;
1709
+ const e = n.schema, r = (E = n.parent) == null ? void 0 : E.schema, o = jt(), s = w(!1), f = w(!1);
1710
+ let d = !0, y = !1, a, l = !1;
1711
+ function i(v) {
1712
+ return a && a.componentClassList && a.componentClassList.includes("f-form-layout") && a.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
1713
+ }
1714
+ function h(v) {
1715
+ return !(!dt().basalDragulaRuleForContainer(v) || !d || !i(v));
1565
1716
  }
1566
1717
  function g() {
1567
- a.value = !1, f.value = !1;
1568
- const d = e, j = d.appearance && d.appearance.class || "", w = j.split(" "), T = d.contents || [], k = T.length ? T[0] : null, _ = k && k.appearance ? k.appearance.class : "", N = _ ? _.split(" ") : [], $ = T.length ? T.reduce((K, q) => {
1569
- const I = q && q.appearance ? q.appearance.class : "", ve = I ? I.split(" ") : [];
1570
- return K.push(...ve), K;
1571
- }, []) : [], x = r, V = x && x.appearance && x.appearance.class || "", ye = V ? V.split(" ") : [];
1572
- p = {
1573
- componentClass: j,
1574
- componentClassList: w,
1575
- childContents: T,
1576
- firstChildContent: k,
1577
- firstChildClass: _,
1578
- firstChildClassList: N,
1718
+ s.value = !1, f.value = !1;
1719
+ const v = e, P = v.appearance && v.appearance.class || "", T = P.split(" "), S = v.contents || [], L = S.length ? S[0] : null, F = L && L.appearance ? L.appearance.class : "", k = F ? F.split(" ") : [], B = S.length ? S.reduce((K, V) => {
1720
+ const ee = V && V.appearance ? V.appearance.class : "", Ce = ee ? ee.split(" ") : [];
1721
+ return K.push(...Ce), K;
1722
+ }, []) : [], x = r, q = x && x.appearance && x.appearance.class || "", be = q ? q.split(" ") : [];
1723
+ a = {
1724
+ componentClass: P,
1725
+ componentClassList: T,
1726
+ childContents: S,
1727
+ firstChildContent: L,
1728
+ firstChildClass: F,
1729
+ firstChildClassList: k,
1579
1730
  parent: x,
1580
- parentClass: V,
1581
- parentClassList: ye,
1582
- children: T,
1583
- childrenClassList: $
1731
+ parentClass: q,
1732
+ parentClassList: be,
1733
+ children: S,
1734
+ childrenClassList: B
1584
1735
  };
1585
- const { canAccept: he, fixed: be, hidePadding: me } = o.getRuleValue(w[0], p);
1586
- return h = he, v = me, l = be, !0;
1736
+ const { canAccept: me, fixed: ve, hidePadding: ge } = o.getRuleValue(T[0], a);
1737
+ return d = me, y = ge, l = ve, !0;
1587
1738
  }
1588
- function i(d) {
1589
- je();
1739
+ function p(v) {
1740
+ Pe();
1590
1741
  }
1591
1742
  function c() {
1592
1743
  return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1593
1744
  }
1594
- function s(d, j) {
1595
- const w = e;
1596
- if ((w.appearance && w.appearance.class || "").split(" ").includes("f-form-layout")) {
1597
- const { label: _ } = d, N = L("form-group");
1598
- return N.editor = j, N.label = _, b(N), delete N.editor.id, delete N.editor.binding, delete N.editor.appearance, delete N.editor.visible, N;
1745
+ function u(v, P) {
1746
+ const T = e;
1747
+ if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1748
+ const { label: F } = v, k = $("form-group");
1749
+ return k.editor = P, k.label = F, m(k), delete k.editor.id, delete k.editor.binding, delete k.editor.appearance, delete k.editor.visible, k;
1599
1750
  }
1600
- return j;
1751
+ return P;
1601
1752
  }
1602
- function b(d) {
1603
- const j = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1604
- if (j && j.schema && j.schema.componentType) {
1605
- const w = j.schema.componentType, T = P(w);
1606
- d.appearance || (d.appearance = {}), d.appearance.class = T;
1753
+ function m(v) {
1754
+ const P = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1755
+ if (P && P.schema && P.schema.componentType) {
1756
+ const T = P.schema.formColumns;
1757
+ let S = A(T);
1758
+ S = t.formSchemaUtils.getControlClassByFormUnifiedLayout(S, "", n.schema), v.appearance || (v.appearance = {}), v.appearance.class = S;
1607
1759
  }
1608
1760
  }
1609
- function P(d) {
1610
- let j = "";
1611
- switch (d) {
1612
- case "form-col-1": {
1613
- j = "col-12 col-md-12 col-xl-12 col-el-12";
1614
- break;
1615
- }
1616
- case "form-col-12": {
1617
- j = "col-12 col-md-12 col-xl-12 col-el-12";
1618
- break;
1619
- }
1620
- case "form-col-2": {
1621
- j = "col-12 col-md-6 col-xl-6 col-el-6";
1622
- break;
1623
- }
1624
- case "form-col-3": {
1625
- j = "col-12 col-md-6 col-xl-4 col-el-4";
1761
+ function A(v) {
1762
+ let P = "";
1763
+ switch (v) {
1764
+ case 1: {
1765
+ P = "col-12 col-md-12 col-xl-12 col-el-12";
1626
1766
  break;
1627
1767
  }
1628
- case "form-col-4": {
1629
- j = "col-12 col-md-6 col-xl-3 col-el-2";
1768
+ case 2: {
1769
+ P = "col-12 col-md-6 col-xl-6 col-el-6";
1630
1770
  break;
1631
1771
  }
1632
- case "form-col-6": {
1633
- j = "col-12 col-md-6 col-xl-6 col-el-6";
1772
+ case 3: {
1773
+ P = "col-12 col-md-6 col-xl-4 col-el-4";
1634
1774
  break;
1635
1775
  }
1636
- case "frame": {
1637
- j = "col-12";
1776
+ case 4: {
1777
+ P = "col-12 col-md-6 col-xl-3 col-el-2";
1638
1778
  break;
1639
1779
  }
1640
1780
  }
1641
- return j;
1781
+ return P;
1642
1782
  }
1643
- function C(d, j, w) {
1644
- const T = e;
1645
- if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
1646
- const N = String(d.innerText), $ = L("form-group");
1647
- return $.editor = w, $.label = N, $;
1783
+ function C(v, P, T) {
1784
+ const S = e;
1785
+ if ((S.appearance && S.appearance.class || "").split(" ").includes("f-form-layout")) {
1786
+ const k = String(v.innerText), B = $("form-group");
1787
+ return B.editor = T, B.label = k, B;
1648
1788
  }
1649
- return w;
1789
+ return T;
1650
1790
  }
1651
- function E() {
1791
+ function j() {
1652
1792
  return !l;
1653
1793
  }
1654
1794
  function M() {
1655
1795
  return !l;
1656
1796
  }
1657
- function m() {
1658
- return v;
1797
+ function b() {
1798
+ return y;
1799
+ }
1800
+ function D(v) {
1801
+ return new At(v, t).getPropertyConfig(e, n.componentInstance.value);
1659
1802
  }
1660
1803
  return {
1661
- canAccepts: y,
1804
+ canAccepts: h,
1662
1805
  checkCanDeleteComponent: M,
1663
- checkCanMoveComponent: E,
1806
+ checkCanMoveComponent: j,
1664
1807
  getStyles: c,
1665
- hideNestedPaddingInDesginerView: m,
1808
+ getPropsConfig: D,
1809
+ hideNestedPaddingInDesginerView: b,
1666
1810
  onAcceptNewChildElement: C,
1667
- onAcceptMovedChildElement: i,
1811
+ onAcceptMovedChildElement: p,
1668
1812
  resolveComponentContext: g,
1669
- onResolveNewComponentSchema: s,
1670
- triggerBelongedComponentToMoveWhenMoved: a,
1813
+ onResolveNewComponentSchema: u,
1814
+ triggerBelongedComponentToMoveWhenMoved: s,
1671
1815
  triggerBelongedComponentToDeleteWhenDeleted: f
1672
1816
  };
1673
1817
  }
1674
- const gt = /* @__PURE__ */ ce({
1818
+ const Et = /* @__PURE__ */ ce({
1675
1819
  name: "FNavDesign",
1676
1820
  props: R,
1677
1821
  emits: ["nav"],
1678
1822
  setup(n, t) {
1679
- var i;
1680
- const e = S(n.activeNavId), r = S(n.navData), o = S(n.horizontal);
1681
- S(n.navPicking);
1682
- const a = S(), f = Ce("design-item-context"), h = vt(f.schema, (i = f.parent) == null ? void 0 : i.schema), v = it(a, f, h);
1823
+ var p;
1824
+ const e = w(n.activeNavId), r = w(n.navData), o = w(n.horizontal);
1825
+ w(n.navPicking);
1826
+ const s = w(), f = Ae("design-item-context"), d = Tt(f.schema, (p = f.parent) == null ? void 0 : p.schema), y = ft(s, f, d);
1683
1827
  Te(() => {
1684
- a.value.componentInstance = v;
1685
- }), t.expose(v.value);
1686
- const p = F({
1828
+ s.value.componentInstance = y;
1829
+ }), t.expose(y.value);
1830
+ const a = _({
1687
1831
  get() {
1688
1832
  return r.value;
1689
1833
  },
1690
1834
  set(c) {
1691
- r.value = c, y();
1835
+ r.value = c, h();
1692
1836
  }
1693
- }), l = F({
1837
+ }), l = _({
1694
1838
  get() {
1695
1839
  return e.value;
1696
1840
  },
1697
1841
  set(c) {
1698
- if (e.value = c, e.value && p && p.value.length) {
1699
- const s = p.value.find((b) => b.id === e.value);
1700
- s && t.emit("nav", s);
1842
+ if (e.value = c, e.value && a && a.value.length) {
1843
+ const u = a.value.find((m) => m.id === e.value);
1844
+ u && t.emit("nav", u);
1701
1845
  }
1702
1846
  }
1703
- }), u = F({
1847
+ }), i = _({
1704
1848
  set(c) {
1705
1849
  o.value = c;
1706
1850
  },
@@ -1708,9 +1852,9 @@ const gt = /* @__PURE__ */ ce({
1708
1852
  return o.value;
1709
1853
  }
1710
1854
  });
1711
- function y() {
1712
- if (p.value && p.value.length && !e.value) {
1713
- const c = p.value.find((s) => !s.disable);
1855
+ function h() {
1856
+ if (a.value && a.value.length && !e.value) {
1857
+ const c = a.value.find((u) => !u.disable);
1714
1858
  c && (e.value = c.id);
1715
1859
  }
1716
1860
  }
@@ -1719,45 +1863,45 @@ const gt = /* @__PURE__ */ ce({
1719
1863
  }
1720
1864
  return () => {
1721
1865
  var c;
1722
- return D("div", {
1723
- ref: a,
1866
+ return N("div", {
1867
+ ref: s,
1724
1868
  class: ["farris-nav", {
1725
- "farris-nav-vertical": !u.value
1869
+ "farris-nav-vertical": !i.value
1726
1870
  }]
1727
- }, [(c = p.value) == null ? void 0 : c.map((s) => D("div", {
1871
+ }, [(c = a.value) == null ? void 0 : c.map((u) => N("div", {
1728
1872
  class: ["farris-nav-item", {
1729
- active: s.id === l.value
1873
+ active: u.id === l.value
1730
1874
  }, {
1731
- disabled: s.disable
1875
+ disabled: u.disable
1732
1876
  }],
1733
- onClick: () => g(s)
1734
- }, [D("div", {
1877
+ onClick: () => g(u)
1878
+ }, [N("div", {
1735
1879
  class: "farris-nav-item-link"
1736
- }, [D("span", {
1880
+ }, [N("span", {
1737
1881
  class: "farris-nav-item-link-text"
1738
- }, [s.text, s.num && D("div", {
1882
+ }, [u.text, u.num && N("div", {
1739
1883
  class: "farris-nav-item-tag"
1740
- }, [s.num <= n.maxNum && D("span", {
1884
+ }, [u.num <= n.maxNum && N("span", {
1741
1885
  class: "tag-text"
1742
- }, [s.num]), s.num > n.maxNum && D("span", {
1886
+ }, [u.num]), u.num > n.maxNum && N("span", {
1743
1887
  class: "tag-text"
1744
- }, [n.maxNum, ie("+")])])])])]))]);
1888
+ }, [n.maxNum, le("+")])])])])]))]);
1745
1889
  };
1746
1890
  }
1747
- }), Tt = {
1891
+ }), kt = {
1748
1892
  install(n) {
1749
- n.component(z.name, z);
1893
+ n.component(G.name, G);
1750
1894
  },
1751
1895
  register(n, t, e, r) {
1752
- n.nav = z, t.nav = ae;
1896
+ n.nav = G, t.nav = ie;
1753
1897
  },
1754
1898
  registerDesigner(n, t, e) {
1755
- n.nav = gt, t.nav = ae;
1899
+ n.nav = Et, t.nav = ie;
1756
1900
  }
1757
1901
  };
1758
1902
  export {
1759
- z as FNav,
1760
- Tt as default,
1903
+ G as FNav,
1904
+ kt as default,
1761
1905
  R as navProps,
1762
- ae as propsResolver
1906
+ ie as propsResolver
1763
1907
  };