@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,114 +1,153 @@
1
- import { defineComponent as W, ref as D, computed as _, createVNode as A, nextTick as Z, inject as R, onMounted as K } from "vue";
2
- import { cloneDeep as x } from "lodash-es";
3
- const q = {}, G = {};
4
- function k(n) {
5
- const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), d = Object.keys(e).reduce((h, m) => ((!s || !r.find((v) => v == m)) && (h[m] = e[m].type === "object" && e[m].properties ? k(e[m]) : x(e[m].default)), h), {});
6
- return (!s || !r.find((h) => h == "id")) && (d.id = `${t}-${Date.now()}`), d;
1
+ import { defineComponent as O, ref as h, computed as j, createVNode as v, inject as w, onMounted as W } from "vue";
2
+ import { isPlainObject as E, cloneDeep as q } from "lodash-es";
3
+ const V = {}, $ = {};
4
+ function B(s) {
5
+ const { properties: e, title: t, ignore: r } = s, a = r && Array.isArray(r), o = Object.keys(e).reduce((n, u) => ((!a || !r.find((f) => f == u)) && (n[u] = e[u].type === "object" && e[u].properties ? B(e[u]) : q(e[u].default)), n), {});
6
+ return t && (!a || !r.find((n) => n == "id")) && (o.id = `${t}-${Date.now()}`), o;
7
7
  }
8
- function S(n, e = {}, t) {
9
- const r = q[n];
8
+ function z(s, e = {}, t) {
9
+ const r = V[s];
10
10
  if (r) {
11
- let s = k(r);
12
- const d = G[n];
13
- return s = d ? d({ getSchemaByType: S }, s, e, t) : s, s;
11
+ let a = B(r);
12
+ const o = $[s];
13
+ return a = o ? o({ getSchemaByType: z }, a, e, t) : a, a;
14
14
  }
15
15
  return null;
16
16
  }
17
- function I(n, e) {
18
- const t = k(e);
19
- return Object.keys(n).reduce((r, s) => (r[s] && typeof r[s] == "object" ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
17
+ function U(s, e) {
18
+ const t = B(e);
19
+ return Object.keys(s).reduce((r, a) => (r[a] && E(r[a]) && E(s[a]) ? Object.assign(r[a], s[a]) : r[a] = s[a], r), t), t;
20
20
  }
21
- function ee(n, e) {
22
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
23
- if (e.has(s)) {
24
- const d = e.get(s);
25
- if (typeof d == "string")
26
- r[d] = n[s];
21
+ function R(s, e) {
22
+ return Object.keys(s).filter((r) => s[r] != null).reduce((r, a) => {
23
+ if (e.has(a)) {
24
+ const o = e.get(a);
25
+ if (typeof o == "string")
26
+ r[o] = s[a];
27
27
  else {
28
- const h = d(s, n[s], n);
29
- Object.assign(r, h);
28
+ const n = o(a, s[a], s);
29
+ Object.assign(r, n);
30
30
  }
31
31
  } else
32
- r[s] = n[s];
32
+ r[a] = s[a];
33
33
  return r;
34
34
  }, {});
35
35
  }
36
- function te(n, e, t = /* @__PURE__ */ new Map()) {
37
- const r = I(n, e);
38
- return ee(r, t);
36
+ function _(s, e, t = /* @__PURE__ */ new Map()) {
37
+ const r = U(s, e);
38
+ return R(r, t);
39
39
  }
40
- function ne(n = {}) {
41
- function e(c, y, u, b) {
42
- if (typeof u == "number")
43
- return b[c].length === u;
44
- if (typeof u == "object") {
45
- const j = Object.keys(u)[0], o = u[j];
46
- if (j === "not")
47
- return Number(b[c].length) !== Number(o);
48
- if (j === "moreThan")
49
- return Number(b[c].length) >= Number(o);
50
- if (j === "lessThan")
51
- return Number(b[c].length) <= Number(o);
40
+ function J(s = {}) {
41
+ function e(l, c, i, p) {
42
+ if (typeof i == "number")
43
+ return p[l].length === i;
44
+ if (typeof i == "object") {
45
+ const d = Object.keys(i)[0], y = i[d];
46
+ if (d === "not")
47
+ return Number(p[l].length) !== Number(y);
48
+ if (d === "moreThan")
49
+ return Number(p[l].length) >= Number(y);
50
+ if (d === "lessThan")
51
+ return Number(p[l].length) <= Number(y);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function t(c, y, u, b) {
56
- return b[c] && b[c].propertyValue && String(b[c].propertyValue.value) === String(u);
55
+ function t(l, c, i, p) {
56
+ return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(i);
57
57
  }
58
58
  const r = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", t]
61
61
  ]);
62
- Object.keys(n).reduce((c, y) => (c.set(y, n[y]), c), r);
63
- function s(c, y) {
64
- const u = c;
65
- return typeof y == "number" ? [{ target: u, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!y }] : typeof y == "object" ? Object.keys(y).map((b) => {
66
- if (b === "length")
67
- return { target: u, operator: "length", param: null, value: y[b] };
68
- const j = b, o = y[b];
69
- return { target: u, operator: "getProperty", param: j, value: o };
62
+ Object.keys(s).reduce((l, c) => (l.set(c, s[c]), l), r);
63
+ function a(l, c) {
64
+ const i = l;
65
+ return typeof c == "number" ? [{ target: i, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: i, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
66
+ if (p === "length")
67
+ return { target: i, operator: "length", param: null, value: c[p] };
68
+ const d = p, y = c[p];
69
+ return { target: i, operator: "getProperty", param: d, value: y };
70
70
  }) : [];
71
71
  }
72
- function d(c) {
73
- return Object.keys(c).reduce((u, b) => {
74
- const j = s(b, c[b]);
75
- return u.push(...j), u;
72
+ function o(l) {
73
+ return Object.keys(l).reduce((i, p) => {
74
+ const d = a(p, l[p]);
75
+ return i.push(...d), i;
76
76
  }, []);
77
77
  }
78
- function h(c, y) {
79
- if (r.has(c.operator)) {
80
- const u = r.get(c.operator);
81
- return u && u(c.target, c.param, c.value, y) || !1;
78
+ function n(l, c) {
79
+ if (r.has(l.operator)) {
80
+ const i = r.get(l.operator);
81
+ return i && i(l.target, l.param, l.value, c) || !1;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function m(c, y) {
86
- return d(c).reduce((j, o) => j && h(o, y), !0);
85
+ function u(l, c) {
86
+ return o(l).reduce((d, y) => d && n(y, c), !0);
87
87
  }
88
- function v(c, y) {
89
- const u = Object.keys(c), b = u.includes("allOf"), j = u.includes("anyOf"), o = b || j, f = (o ? c[o ? b ? "allOf" : "anyOf" : "allOf"] : [c]).map((i) => m(i, y));
90
- return b ? !f.includes(!1) : f.includes(!0);
88
+ function f(l, c) {
89
+ const i = Object.keys(l), p = i.includes("allOf"), d = i.includes("anyOf"), y = p || d, g = (y ? l[y ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((N) => u(N, c));
90
+ return p ? !g.includes(!1) : g.includes(!0);
91
91
  }
92
- return { parseValueSchema: v };
92
+ return { parseValueSchema: f };
93
93
  }
94
- const oe = {}, re = {};
95
- ne();
96
- function se(n, e, t = /* @__PURE__ */ new Map(), r = (h, m, v) => m, s = {}, d = (h) => h) {
97
- return q[e.title] = e, G[e.title] = r, oe[e.title] = s, re[e.title] = d, (h = {}) => {
98
- const m = te(h, e, t), v = Object.keys(n).reduce((c, y) => (c[y] = n[y].default, c), {});
99
- return Object.assign(v, m);
94
+ const L = {
95
+ button: { type: "button", name: "按钮", icon: "Button" },
96
+ "response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
97
+ "response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
98
+ "content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
99
+ "input-group": { type: "input-group", name: "文本", icon: "TextBox" },
100
+ textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
101
+ lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
102
+ "number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
103
+ "date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
104
+ switch: { type: "switch", name: "开关", icon: "SwitchField" },
105
+ "radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
106
+ "check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
107
+ "check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
108
+ "combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
109
+ "response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
110
+ "response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
111
+ "response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
112
+ "tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
113
+ "tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
114
+ "data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
115
+ "data-grid-column": { type: "data-grid-column", name: "表格列" },
116
+ module: { type: "Module", name: "模块", icon: "Module" },
117
+ component: { type: "component", name: "组件", icon: "Component" },
118
+ tabs: { type: "tabs", name: "标签页", icon: "Tab" },
119
+ "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
120
+ "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
121
+ "time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
122
+ section: { type: "section", name: "分组面板", icon: "Section" },
123
+ "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
124
+ "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
125
+ splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
126
+ "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
127
+ "component-ref": { type: "component-ref", name: "组件引用节点" },
128
+ uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
129
+ "page-header": { type: "page-header", name: "页头", icon: "Header" },
130
+ "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
131
+ "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
132
+ fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
133
+ }, Q = {}, X = {};
134
+ J();
135
+ function Y(s, e, t = /* @__PURE__ */ new Map(), r = (n, u, f) => u, a = {}, o = (n) => n) {
136
+ return V[e.title] = e, $[e.title] = r, Q[e.title] = a, X[e.title] = o, (n = {}) => {
137
+ const u = _(n, e, t), f = Object.keys(s).reduce((l, c) => (l[c] = s[c].default, l), {});
138
+ return Object.assign(f, u);
100
139
  };
101
140
  }
102
- function ae(n, e) {
141
+ function Z(s, e) {
103
142
  return { customClass: e.class, customStyle: e.style };
104
143
  }
105
- const ce = /* @__PURE__ */ new Map([
106
- ["appearance", ae]
144
+ const H = /* @__PURE__ */ new Map([
145
+ ["appearance", Z]
107
146
  ]);
108
- function ie(n, e, t) {
147
+ function K(s, e, t) {
109
148
  return e;
110
149
  }
111
- const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-design.gitee.io/list-nav.schema.json", ue = "list-nav", fe = "A Farris Container Component", de = "object", ye = {
150
+ const I = "https://json-schema.org/draft/2020-12/schema", x = "https://farris-design.gitee.io/list-nav.schema.json", ee = "list-nav", te = "A Farris Container Component", ne = "object", ae = {
112
151
  id: {
113
152
  description: "The unique identifier for a list-nav",
114
153
  type: "string"
@@ -154,19 +193,19 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
154
193
  type: "boolean",
155
194
  default: !0
156
195
  }
157
- }, be = [
196
+ }, oe = [
158
197
  "id",
159
198
  "type",
160
199
  "contents"
161
- ], he = {
162
- $schema: pe,
163
- $id: le,
164
- title: ue,
165
- description: fe,
166
- type: de,
167
- properties: ye,
168
- required: be
169
- }, me = "list-nav", ve = "A Farris Component", ge = "object", je = {
200
+ ], se = {
201
+ $schema: I,
202
+ $id: x,
203
+ title: ee,
204
+ description: te,
205
+ type: ne,
206
+ properties: ae,
207
+ required: oe
208
+ }, re = "list-nav", le = "A Farris Component", ce = "object", ie = {
170
209
  basic: {
171
210
  description: "Basic Infomation",
172
211
  title: "基本信息",
@@ -185,12 +224,12 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
185
224
  }
186
225
  }
187
226
  }
188
- }, Ce = {
189
- title: me,
190
- description: ve,
191
- type: ge,
192
- categories: je
193
- }, B = {
227
+ }, pe = {
228
+ title: re,
229
+ description: le,
230
+ type: ce,
231
+ categories: ie
232
+ }, A = {
194
233
  /** 位置 */
195
234
  position: { Type: String, default: "left" },
196
235
  /** listNav名称 */
@@ -205,1026 +244,316 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
205
244
  disabled: { Type: Boolean, default: !1 },
206
245
  /** 是否启用拖拽 TODO */
207
246
  draggable: { Type: Boolean, default: !1 }
208
- }, H = se(B, he, ce, ie, Ce), L = /* @__PURE__ */ W({
247
+ }, F = Y(A, se, H, K, pe), P = /* @__PURE__ */ O({
209
248
  name: "FListNav",
210
- props: B,
249
+ props: A,
211
250
  emits: ["collapse"],
212
- setup(n, e) {
213
- const t = D(n.position), r = D(n.title), s = D(n.folded), d = D(!1);
214
- function h(v) {
215
- v && v.stopPropagation(), !n.disabled && (d.value = !0, s.value = !s.value, e.emit("collapse", s.value));
251
+ setup(s, e) {
252
+ const t = h(s.position), r = h(s.title), a = h(s.folded), o = h(!1);
253
+ function n(f) {
254
+ f && f.stopPropagation(), !s.disabled && (o.value = !0, a.value = !a.value, e.emit("collapse", a.value));
216
255
  }
217
- const m = _(() => {
218
- const v = {};
219
- let c = ["top", "bottom"].indexOf(t.value) > -1 ? "height" : "width";
220
- return v[c] = s.value ? "0px" : n.size + "px", v;
256
+ const u = j(() => {
257
+ const f = {};
258
+ let l = ["top", "bottom"].indexOf(t.value) > -1 ? "height" : "width";
259
+ return f[l] = a.value ? "0px" : s.size + "px", f;
221
260
  });
222
- return () => A("div", {
261
+ return () => v("div", {
223
262
  class: `f-list-nav f-list-nav-${t.value}`
224
- }, [A("div", {
263
+ }, [v("div", {
225
264
  class: "f-list-nav-in",
226
- style: m.value
227
- }, [A("div", {
265
+ style: u.value
266
+ }, [v("div", {
228
267
  class: "f-list-nav-main"
229
- }, [e.slots.navHeader && A("div", {
268
+ }, [e.slots.navHeader && v("div", {
230
269
  class: "f-list-nav-header"
231
- }, [e.slots.navHeader()]), !e.slots.navHeader && r.value && A("div", {
270
+ }, [e.slots.navHeader()]), !e.slots.navHeader && r.value && v("div", {
232
271
  class: "f-list-nav-header"
233
- }, [A("div", {
272
+ }, [v("div", {
234
273
  class: "f-list-nav-title"
235
- }, [r.value])]), e.slots.navContent && A("div", {
274
+ }, [r.value])]), e.slots.navContent && v("div", {
236
275
  class: "f-list-nav-content"
237
- }, [e.slots.navContent()]), e.slots.navFooter && A("div", {
276
+ }, [e.slots.navContent()]), e.slots.navFooter && v("div", {
238
277
  class: "f-list-nav-footer"
239
- }, [e.slots.navFooter()])]), n.collapsible && A("div", {
278
+ }, [e.slots.navFooter()])]), s.collapsible && v("div", {
240
279
  class: ["f-list-nav-toggle-sidebar", {
241
- disabled: n.disabled,
242
- active: s.value,
243
- "splitter-pane-collapse-animate": d.value
280
+ disabled: s.disabled,
281
+ active: a.value,
282
+ "splitter-pane-collapse-animate": o.value
244
283
  }],
245
- onClick: (v) => h(v)
246
- }, [A("span", {
284
+ onClick: (f) => n(f)
285
+ }, [v("span", {
247
286
  class: "triangle"
248
287
  }, null)])])]);
249
288
  }
250
289
  });
251
- function Pe(n, e, t) {
252
- var O;
290
+ function ue(s, e, t) {
291
+ var S;
253
292
  function r() {
254
293
  t != null && t.resolveComponentContext && t.resolveComponentContext();
255
294
  }
256
295
  r();
257
- const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h = D();
258
- function m() {
296
+ const a = t && t.getStyles && t.getStyles() || "", o = t && t.getDesignerClass && t.getDesignerClass() || "", n = h();
297
+ function u() {
259
298
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
260
299
  }
261
- function v() {
300
+ function f() {
262
301
  return !1;
263
302
  }
264
- function c() {
303
+ function l() {
265
304
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
266
305
  }
267
- function y() {
306
+ function c() {
268
307
  return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
269
308
  }
270
- function u(p) {
271
- if (!p || !p.value)
309
+ function i(m) {
310
+ if (!m || !m.value)
272
311
  return null;
273
- if (p.value.schema && p.value.schema.type === "component")
274
- return p.value;
275
- const P = D(p == null ? void 0 : p.value.parent), g = u(P);
276
- return g || null;
312
+ if (m.value.schema && m.value.schema.type === "component")
313
+ return m.value;
314
+ const b = h(m == null ? void 0 : m.value.parent), C = i(b);
315
+ return C || null;
277
316
  }
278
- function b(p = e) {
279
- const { componentInstance: P, designerItemElementRef: g } = p;
280
- return !P || !P.value ? null : P.value.canMove ? g : b(p.parent);
317
+ function p(m = e) {
318
+ const { componentInstance: b, designerItemElementRef: C } = m;
319
+ return !b || !b.value ? null : b.value.canMove ? C : p(m.parent);
281
320
  }
282
- function j(p) {
283
- return !!t && t.canAccepts(p);
321
+ function d(m) {
322
+ return !!t && t.canAccepts(m);
284
323
  }
285
- function o() {
324
+ function y() {
286
325
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
287
326
  }
288
- function l() {
289
- }
290
- function a(p, P) {
291
- P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
327
+ function T() {
292
328
  }
293
- function f(p, P) {
294
- const { componentType: g } = p;
295
- let N = S(g, p, P);
296
- t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(p, N));
297
- const M = g.toLowerCase().replace("-", "_");
298
- return N && !N.id && N.type === g && (N.id = `${M}_${Math.random().toString().slice(2, 6)}`), N;
329
+ function M(m, b) {
330
+ b && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(b);
299
331
  }
300
- function T(p, P) {
301
- const g = String(p.getAttribute("data-controltype")), N = p.getAttribute("data-feature"), M = N ? JSON.parse(N) : {};
302
- M.parentComponentInstance = h.value;
303
- let w = S(g, M);
304
- t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(p, P, w));
305
- const E = g.toLowerCase().replace("-", "_");
306
- return w && !w.id && w.type === g && (w.id = `${E}_${Math.random().toString().slice(2, 6)}`), w;
332
+ function g(m, b) {
333
+ const { componentType: C } = m;
334
+ let D = z(C, m, b);
335
+ t && t.onResolveNewComponentSchema && (D = t.onResolveNewComponentSchema(m, D));
336
+ const G = C.toLowerCase().replace("-", "_");
337
+ return D && !D.id && D.type === C && (D.id = `${G}_${Math.random().toString().slice(2, 6)}`), D;
307
338
  }
308
- function i(p) {
339
+ function k(m) {
309
340
  }
310
- function C(...p) {
341
+ function N(...m) {
311
342
  if (t && t.getPropsConfig)
312
- return t.getPropsConfig(...p);
343
+ return t.getPropsConfig(...m);
313
344
  }
314
- return h.value = {
315
- canMove: m(),
316
- canSelectParent: v(),
317
- canDelete: c(),
318
- canNested: !y(),
345
+ return n.value = {
346
+ canMove: u(),
347
+ canSelectParent: f(),
348
+ canDelete: l(),
349
+ canNested: !c(),
319
350
  contents: e == null ? void 0 : e.schema.contents,
320
- elementRef: n,
321
- parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
351
+ elementRef: s,
352
+ parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
322
353
  schema: e == null ? void 0 : e.schema,
323
- styles: s,
324
- designerClass: d,
325
- canAccepts: j,
326
- getBelongedComponentInstance: u,
327
- getDraggableDesignItemElement: b,
328
- getDraggingDisplayText: o,
329
- getPropConfig: C,
330
- getDragScopeElement: l,
331
- onAcceptMovedChildElement: a,
332
- onAcceptNewChildElement: T,
333
- onChildElementMovedOut: i,
334
- addNewChildComponentSchema: f,
354
+ styles: a,
355
+ designerClass: o,
356
+ canAccepts: d,
357
+ getBelongedComponentInstance: i,
358
+ getDraggableDesignItemElement: p,
359
+ getDraggingDisplayText: y,
360
+ getPropConfig: N,
361
+ getDragScopeElement: T,
362
+ onAcceptMovedChildElement: M,
363
+ onChildElementMovedOut: k,
364
+ addNewChildComponentSchema: g,
335
365
  updateDragAndDropRules: r,
336
- triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || D(!1),
337
- triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || D(!1)
338
- }, h;
366
+ triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || h(!1),
367
+ triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || h(!1)
368
+ }, n;
339
369
  }
340
- function Ae() {
341
- function n(e) {
342
- var s, d;
370
+ function fe() {
371
+ function s(e, t) {
372
+ var n;
343
373
  if (!e)
344
374
  return !1;
345
- const t = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
346
- if (!t)
375
+ const r = ((n = e.targetContainer) == null ? void 0 : n.componentInstance) && e.targetContainer.componentInstance.value;
376
+ if (!r)
347
377
  return !1;
348
- const r = (d = t.schema.appearance) == null ? void 0 : d.class;
349
- if (e.controlCategory === "input" || e.controlType === "form-group") {
350
- const h = t.schema.type, m = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
351
- if (t.schema.type !== "response-layout-item" && !m)
352
- return !1;
353
- }
354
- return e.controlType !== "field-set";
378
+ const a = r.schema.type, o = t == null ? void 0 : t.formSchemaUtils.getComponentById(r.belongedComponentId);
379
+ return !((e.controlCategory === "input" || e.controlType === "form-group") && ![L["response-layout-item"].type, L["response-form"].type].includes(a) || (e.controlType === L.tabs.type || e.controlType === L.section.type) && ((o == null ? void 0 : o.componentType) !== "frame" || ![L["content-container"].type, L["splitter-pane"].type, L["response-layout-item"].type].includes(a)));
355
380
  }
356
381
  return {
357
- basalDragulaRuleForContainer: n
382
+ basalDragulaRuleForContainer: s
358
383
  };
359
384
  }
360
- const Te = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-design.gitee.io/dragging-rules.schema.json", De = "Dragging Rules", Oe = "The rules of designer canvas", we = "object", Me = {
361
- "f-page": {
362
- description: "The root class of page designed by farris.",
363
- type: "object",
364
- properties: {
365
- contents: {
366
- type: "object",
367
- properties: {
368
- "f-page-header": {
369
- description: "The class of page header designed by farris.",
370
- type: "string"
371
- },
372
- "f-page-main": {
373
- description: "The class of page body designed by farris.",
374
- type: "object",
375
- properties: {
376
- contents: {
377
- type: "object",
378
- properties: {
379
- "f-struct-like-card": {
380
- description: "",
381
- type: "object",
382
- properties: {
383
- contents: {
384
- type: "object",
385
- properties: {
386
- "f-struct-form": {
387
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
388
- type: "object",
389
- properties: {
390
- contents: {
391
- type: "object",
392
- properties: {
393
- "f-section-form": {
394
- description: "The class of section which has wrapped a reponse-form component.",
395
- type: "object",
396
- properties: {
397
- contents: {
398
- type: "object",
399
- properties: {
400
- "f-form-layout": {
401
- description: "The class of reponse form",
402
- type: "object",
403
- properties: {
404
- rules: {
405
- type: "object",
406
- properties: {
407
- canAccept: {
408
- type: "boolean",
409
- const: !0
410
- },
411
- fixed: {
412
- type: "boolean",
413
- const: !0
414
- },
415
- hidePadding: {
416
- type: "boolean",
417
- const: !1
418
- }
419
- }
420
- }
421
- }
422
- }
423
- }
424
- },
425
- rules: {
426
- type: "object",
427
- properties: {
428
- canAccept: {
429
- type: "boolean",
430
- const: !1
431
- },
432
- fixed: {
433
- type: "boolean",
434
- const: !0
435
- },
436
- hidePadding: {
437
- type: "boolean",
438
- const: !0
439
- }
440
- }
441
- }
442
- }
443
- }
444
- }
445
- },
446
- rules: {
447
- type: "object",
448
- properties: {
449
- canAccept: {
450
- type: "boolean",
451
- const: !1
452
- },
453
- fixed: {
454
- type: "boolean",
455
- const: !1
456
- },
457
- hidePadding: {
458
- type: "boolean",
459
- const: !0
460
- }
461
- }
462
- }
463
- }
464
- },
465
- "f-struct-wrapper": {
466
- description: "",
467
- type: "object",
468
- properties: {
469
- contents: {
470
- type: "object",
471
- properties: {
472
- "f-section-tabs": {
473
- description: "The class of section which has wrapped sub-grid tabs.",
474
- type: "object",
475
- properties: {
476
- contents: {
477
- type: "object",
478
- properties: {
479
- "f-tabs-in-card": {
480
- description: "The class of tabs which contains sub-grid.",
481
- type: "object",
482
- properties: {
483
- contents: {
484
- type: "object",
485
- properties: {
486
- "f-struct-data-grid-in-card": {
487
- description: "The class of sub-grid component",
488
- type: "object",
489
- properties: {
490
- contents: {
491
- type: "object",
492
- properties: {
493
- "f-grid-is-sub": {
494
- description: "The class of sub-grid",
495
- type: "object",
496
- properties: {
497
- rules: {
498
- type: "object",
499
- properties: {
500
- canAccept: {
501
- type: "boolean",
502
- const: !0
503
- },
504
- fixed: {
505
- type: "boolean",
506
- const: !0
507
- },
508
- hidePadding: {
509
- type: "boolean",
510
- const: !1
511
- }
512
- }
513
- }
514
- }
515
- }
516
- }
517
- },
518
- rules: {
519
- type: "object",
520
- properties: {
521
- canAccept: {
522
- type: "boolean",
523
- const: !1
524
- },
525
- fixed: {
526
- type: "boolean",
527
- const: !1
528
- },
529
- hidePadding: {
530
- type: "boolean",
531
- const: !0
532
- }
533
- }
534
- }
535
- }
536
- }
537
- }
538
- },
539
- rules: {
540
- type: "object",
541
- properties: {
542
- canAccept: {
543
- type: "boolean",
544
- const: !1
545
- },
546
- fixed: {
547
- type: "boolean",
548
- const: !0
549
- },
550
- hidePadding: {
551
- type: "boolean",
552
- const: !0
553
- }
554
- }
555
- }
556
- }
557
- }
558
- }
559
- },
560
- rules: {
561
- type: "object",
562
- properties: {
563
- canAccept: {
564
- type: "boolean",
565
- const: !1
566
- },
567
- fixed: {
568
- type: "boolean",
569
- const: !0
570
- },
571
- hidePadding: {
572
- type: "boolean",
573
- const: !0
574
- }
575
- }
576
- }
577
- }
578
- },
579
- "f-section-in-main": {
580
- description: "The class of section which has wrapped a reponse-form component.",
581
- type: "object",
582
- properties: {
583
- rules: {
584
- type: "object",
585
- properties: {
586
- canAccept: {
587
- type: "boolean",
588
- const: !0
589
- },
590
- fixed: {
591
- type: "boolean",
592
- const: !0
593
- },
594
- hidePadding: {
595
- type: "boolean",
596
- const: !1
597
- }
598
- }
599
- }
600
- }
601
- }
602
- }
603
- },
604
- rules: {
605
- type: "object",
606
- properties: {
607
- canAccept: {
608
- type: "boolean",
609
- const: !1
610
- },
611
- fixed: {
612
- type: "boolean",
613
- const: !1
614
- },
615
- hidePadding: {
616
- type: "boolean",
617
- const: !0
618
- }
619
- }
620
- }
621
- }
622
- }
623
- }
624
- },
625
- rules: {
626
- type: "object",
627
- properties: {
628
- canAccept: {
629
- type: "boolean",
630
- const: !0
631
- },
632
- fixed: {
633
- type: "boolean",
634
- const: !0
635
- },
636
- hidePadding: {
637
- type: "object",
638
- const: {
639
- allOf: [
640
- {
641
- sibling: 0,
642
- parent: {
643
- "f-page-main": !0
644
- }
645
- }
646
- ]
647
- }
648
- }
649
- }
650
- }
651
- }
652
- },
653
- "f-struct-data-grid": {
654
- description: "",
655
- type: "object",
656
- properties: {
657
- rules: {
658
- type: "object",
659
- properties: {
660
- canAccept: {
661
- type: "object",
662
- const: !0
663
- },
664
- fixed: {
665
- type: "boolean",
666
- const: !0
667
- },
668
- hidePadding: {
669
- type: "boolean",
670
- const: !0
671
- }
672
- }
673
- }
674
- }
675
- },
676
- "f-page-main-content": {
677
- description: "",
678
- type: "object",
679
- properties: {
680
- contents: {
681
- type: "object",
682
- properties: {
683
- "f-page-content-nav": {
684
- description: "",
685
- type: "object",
686
- properties: {
687
- contents: {
688
- type: "object",
689
- properties: {
690
- "f-struct-data-grid-in-nav": {
691
- description: "",
692
- type: "object",
693
- properties: {
694
- contents: {
695
- type: "object",
696
- properties: {
697
- "f-page-content-nav-extend": {
698
- description: "",
699
- type: "object"
700
- },
701
- "f-section-in-nav": {
702
- description: "",
703
- type: "object",
704
- properties: {
705
- rules: {
706
- type: "object",
707
- properties: {
708
- canAccept: {
709
- type: "boolean",
710
- const: !1
711
- },
712
- fixed: {
713
- type: "boolean",
714
- const: !0
715
- },
716
- hidePadding: {
717
- type: "boolean",
718
- const: !1
719
- }
720
- }
721
- }
722
- }
723
- }
724
- }
725
- },
726
- rules: {
727
- type: "object",
728
- properties: {
729
- canAccept: {
730
- type: "boolean",
731
- const: !0
732
- },
733
- fixed: {
734
- type: "boolean",
735
- const: !1
736
- },
737
- hidePadding: {
738
- type: "boolean",
739
- const: !0
740
- }
741
- }
742
- }
743
- }
744
- }
745
- }
746
- }
747
- }
748
- },
749
- "f-page-content-main": {
750
- description: "",
751
- type: "object",
752
- properties: {}
753
- }
754
- }
755
- }
756
- }
757
- },
758
- "f-page-content": {
759
- description: "",
760
- type: "object",
761
- properties: {
762
- contents: {
763
- type: "object",
764
- properties: {
765
- "f-page-content-nav": {
766
- description: "",
767
- type: "object",
768
- properties: {
769
- contents: {
770
- type: "object",
771
- properties: {
772
- "f-list-nav": {
773
- description: "",
774
- type: "object"
775
- },
776
- "f-list-nav-left": {
777
- description: "",
778
- type: "object"
779
- },
780
- "f-struct-data-grid-in-nav": {
781
- description: "",
782
- type: "object",
783
- properties: {
784
- contents: {
785
- type: "object",
786
- properties: {
787
- "f-section-form": {
788
- description: "",
789
- type: "object",
790
- properties: {
791
- rules: {
792
- type: "object",
793
- properties: {
794
- canAccept: {
795
- type: "boolean",
796
- const: !1
797
- },
798
- fixed: {
799
- type: "boolean",
800
- const: !0
801
- },
802
- hidePadding: {
803
- type: "boolean",
804
- const: !0
805
- }
806
- }
807
- }
808
- }
809
- },
810
- "f-section-grid": {
811
- description: "",
812
- type: "object",
813
- properties: {
814
- rules: {
815
- type: "object",
816
- properties: {
817
- canAccept: {
818
- type: "boolean",
819
- const: !1
820
- },
821
- fixed: {
822
- type: "boolean",
823
- const: !0
824
- },
825
- hidePadding: {
826
- type: "boolean",
827
- const: !0
828
- }
829
- }
830
- }
831
- }
832
- }
833
- }
834
- },
835
- rules: {
836
- type: "object",
837
- properties: {
838
- canAccept: {
839
- type: "boolean",
840
- const: !1
841
- },
842
- fixed: {
843
- type: "boolean",
844
- const: !0
845
- },
846
- hidePadding: {
847
- type: "boolean",
848
- const: !0
849
- }
850
- }
851
- }
852
- }
853
- }
854
- }
855
- }
856
- },
857
- rules: {
858
- type: "object",
859
- properties: {
860
- canAccept: {
861
- type: "boolean",
862
- const: !1
863
- },
864
- fixed: {
865
- type: "boolean",
866
- const: !0
867
- },
868
- hidePadding: {
869
- type: "boolean",
870
- const: !0
871
- }
872
- }
873
- }
874
- },
875
- "f-page-content-main": {
876
- description: "",
877
- type: "object",
878
- properties: {
879
- rules: {
880
- type: "object",
881
- properties: {
882
- canAccept: {
883
- type: "boolean",
884
- const: !1
885
- },
886
- fixed: {
887
- type: "boolean",
888
- const: !1
889
- },
890
- hidePadding: {
891
- type: "boolean",
892
- const: !0
893
- }
894
- }
895
- }
896
- }
897
- }
898
- }
899
- },
900
- rules: {
901
- type: "object",
902
- properties: {
903
- canAccept: {
904
- type: "boolean",
905
- const: !1
906
- },
907
- fixed: {
908
- type: "boolean",
909
- const: !0
910
- },
911
- hidePadding: {
912
- type: "boolean",
913
- const: !0
914
- }
915
- }
916
- }
917
- }
918
- }
919
- }
920
- },
921
- rules: {
922
- type: "object",
923
- properties: {
924
- canAccept: {
925
- type: "object",
926
- const: {
927
- anyOf: [
928
- {
929
- children: 0
930
- },
931
- {
932
- children: {
933
- length: {
934
- not: 1
935
- },
936
- "f-struct-like-card": !0
937
- }
938
- },
939
- {
940
- children: {
941
- "scroll-spy": !1,
942
- "f-page-content": !1,
943
- "f-struct-like-card": !1
944
- }
945
- }
946
- ]
947
- }
948
- },
949
- fixed: {
950
- type: "boolean",
951
- const: !0
952
- },
953
- hidePadding: {
954
- type: "boolean",
955
- const: !0
956
- }
957
- }
958
- }
959
- }
960
- },
961
- "f-page-footer": {
962
- description: "The class of page footer designed by farris.",
963
- type: "string"
385
+ class me {
386
+ getTemplateRule(e, t) {
387
+ const r = t == null ? void 0 : t.formSchemaUtils, a = r == null ? void 0 : r.getFormTemplateRule(), o = { canAccept: !0, canDelete: !0, canMove: !0 };
388
+ if (!a)
389
+ return o;
390
+ const n = this.getComponentContext(e);
391
+ return n.componentClassList.forEach((f) => {
392
+ if (!f || !a[f])
393
+ return;
394
+ const { canMove: l, canDelete: c, canAccept: i } = a[f];
395
+ o.canMove = o.canMove && this.resolveRuleValue(l, n), o.canDelete = o.canDelete && this.resolveRuleValue(c, n), o.canAccept = o.canAccept && this.resolveRuleValue(i, n);
396
+ }), o;
397
+ }
398
+ resolveRuleValue(e, t) {
399
+ return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, t);
400
+ }
401
+ parseRuleValueSchema(e, t) {
402
+ const r = e.invalidContext || [];
403
+ let a = !0;
404
+ for (const o of r) {
405
+ if (o.firstLevelChild) {
406
+ if (o.firstLevelChild.class) {
407
+ const n = t.firstLevelChildClassList;
408
+ if (n && !n.includes(o.firstLevelChild.class)) {
409
+ a = !1;
410
+ continue;
964
411
  }
965
412
  }
966
- },
967
- rules: {
968
- type: "object",
969
- properties: {
970
- canAccept: {
971
- type: "boolean",
972
- const: !1
973
- },
974
- fixed: {
975
- type: "boolean",
976
- const: !0
977
- },
978
- hidePadding: {
979
- type: "boolean",
980
- const: !0
413
+ if (o.firstLevelChild.type) {
414
+ const n = t.firstLevelChildSchema;
415
+ if (n && n.type !== o.firstLevelChild.type) {
416
+ a = !1;
417
+ continue;
981
418
  }
982
419
  }
983
420
  }
421
+ if (o.secondLevelChild) {
422
+ if (o.secondLevelChild.class) {
423
+ const n = t.secondLevelChildClassList;
424
+ if (n && !n.includes(o.secondLevelChild.class)) {
425
+ a = !1;
426
+ continue;
427
+ }
428
+ }
429
+ if (o.secondLevelChild.type) {
430
+ const n = t.secondLevelChildSchema;
431
+ if (n && n.type !== o.secondLevelChild.type) {
432
+ a = !1;
433
+ continue;
434
+ }
435
+ }
436
+ }
437
+ if (o.parent) {
438
+ if (o.parent.class) {
439
+ const n = t.parentClassList;
440
+ if (n && !n.includes(o.parent.class)) {
441
+ a = !1;
442
+ continue;
443
+ }
444
+ }
445
+ if (o.parent.type) {
446
+ const n = t.parentSchema;
447
+ if (n && n.type !== o.parent.type) {
448
+ a = !1;
449
+ continue;
450
+ }
451
+ }
452
+ }
453
+ a = !0;
454
+ break;
984
455
  }
985
- },
986
- "f-page-is-managelist": {
987
- description: "The root class of mangement list page.",
988
- type: "string"
989
- },
990
- "f-page-card": {
991
- description: "",
992
- type: "object"
993
- },
994
- "f-page-is-mainsubcard": {
995
- description: "",
996
- type: "object"
997
- }
998
- }, Ee = {
999
- $schema: Te,
1000
- $id: Ne,
1001
- title: De,
1002
- description: Oe,
1003
- type: we,
1004
- properties: Me
1005
- }, F = /* @__PURE__ */ new Map();
1006
- function Se() {
1007
- function n(o, l, a, f) {
1008
- var T;
1009
- if (typeof a == "number")
1010
- return ((T = f[o]) == null ? void 0 : T.length) === a;
1011
- if (typeof a == "object") {
1012
- const i = Object.keys(a)[0], C = a[i];
1013
- if (i === "not")
1014
- return Number(f[o].length) !== Number(C);
1015
- if (i === "moreThan")
1016
- return Number(f[o].length) >= Number(C);
1017
- if (i === "lessThan")
1018
- return Number(f[o].length) <= Number(C);
1019
- }
1020
- return !1;
1021
- }
1022
- function e(o, l, a, f) {
1023
- return typeof a == "boolean" ? f.childrenClassList.includes(l) === !!a : !1;
1024
- }
1025
- function t(o, l, a, f) {
1026
- return typeof a == "boolean" ? f.parentClassList.includes(l) === !!a : !1;
1027
- }
1028
- function r(o, l, a, f) {
1029
- return typeof a == "boolean" ? f.parentClassList.includes(l) === !!a : !1;
1030
- }
1031
- const s = /* @__PURE__ */ new Map([
1032
- ["length", n],
1033
- ["hasChildren", e],
1034
- ["hasSibling", r],
1035
- ["hasParent", t]
1036
- ]);
1037
- function d(o, l) {
1038
- const a = o;
1039
- return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((f) => {
1040
- if (f === "length")
1041
- return { target: a, operator: "length", param: null, value: l[f] };
1042
- const T = f, i = l[f];
1043
- return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: T, value: i };
1044
- }) : [];
1045
- }
1046
- function h(o, l) {
1047
- if (s.has(o.operator)) {
1048
- const a = s.get(o.operator);
1049
- return a && a(o.target, o.param, o.value, l) || !1;
1050
- }
1051
- return !1;
1052
- }
1053
- function m(o, l) {
1054
- return Object.keys(o).reduce((i, C) => {
1055
- const O = d(C, o[C]);
1056
- return i.push(...O), i;
1057
- }, []).reduce((i, C) => i && h(C, l), !0);
1058
- }
1059
- function v(o, l) {
1060
- const a = Object.keys(o), f = a.includes("allOf"), T = a.includes("anyOf"), i = f || T, p = (i ? o[i ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((g) => m(g, l));
1061
- return f ? !p.includes(!1) : p.includes(!0);
1062
- }
1063
- function c(o, l) {
1064
- const a = o.const;
1065
- return a ? typeof a == "boolean" ? a : typeof a == "object" ? v(a, l) : !1 : !1;
1066
- }
1067
- function y(o) {
1068
- return (l) => {
1069
- const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
1070
- return o && o.properties && Object.keys(o.properties).reduce((f, T) => {
1071
- const i = o.properties[T];
1072
- return f[T] = c(i, l), f;
1073
- }, a), a;
456
+ return !a;
457
+ }
458
+ getComponentContext(e) {
459
+ var T, M, g, k;
460
+ const t = e.schema, r = t.appearance && t.appearance.class || "", a = r.split(" ") || [], o = t.contents || [], n = o.length ? o[0] : null, u = n && n.appearance ? n.appearance.class : "", f = u ? u.split(" ") : [], l = (T = n == null ? void 0 : n.contents) != null && T.length ? n == null ? void 0 : n.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", i = c ? c.split(" ") : [], p = t.type === "component" ? (g = (M = e.parent) == null ? void 0 : M.parent) == null ? void 0 : g.schema : (k = e.parent) == null ? void 0 : k.schema, d = p && p.appearance && p.appearance.class || "", y = d ? d.split(" ") : [];
461
+ return {
462
+ componentClass: r,
463
+ componentClassList: a,
464
+ childContents: o,
465
+ firstLevelChildSchema: n,
466
+ firstLevelChildClass: u,
467
+ firstLevelChildClassList: f,
468
+ secondLevelChildSchema: l,
469
+ secondLevelChildClass: c,
470
+ secondLevelChildClassList: i,
471
+ parentSchema: p,
472
+ parentClass: d,
473
+ parentClassList: y
1074
474
  };
1075
475
  }
1076
- function u(o, l, a) {
1077
- if (l.type === "object" && l.properties) {
1078
- const { rules: f, contents: T } = l.properties;
1079
- a.set(o, y(f)), T && Object.keys(T.properties).forEach(
1080
- (i) => u(i, T.properties[i], a)
1081
- );
1082
- }
1083
- }
1084
- function b() {
1085
- const { properties: o } = Ee;
1086
- Object.keys(o).forEach((l) => {
1087
- u(l, o[l], F);
1088
- });
1089
- }
1090
- function j(o, l) {
1091
- const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
1092
- return F.has(o) ? F.get(o)(l) : a;
1093
- }
1094
- return b(), { getRuleValue: j };
1095
476
  }
1096
- function $e(n, e) {
1097
- const t = Se(), r = D(!1), s = D(!1);
1098
- let d = !0, h = !1, m, v = !1;
1099
- function c(i) {
1100
- return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? i.sourceType === "control" && i.controlCategory === "input" || i.sourceType === "move" && i.controlType === "form-group" : !0;
1101
- }
1102
- function y(i) {
1103
- return !(!Ae().basalDragulaRuleForContainer(i) || !d || !c(i));
477
+ function de(s, e) {
478
+ const t = new me(), { canMove: r, canAccept: a, canDelete: o } = t.getTemplateRule(s, e);
479
+ function n(i) {
480
+ return fe().basalDragulaRuleForContainer(i, e) ? a : !1;
1104
481
  }
1105
482
  function u() {
1106
- r.value = !1, s.value = !1;
1107
- const i = n, C = i.appearance && i.appearance.class || "", O = C.split(" "), p = i.contents || [], P = p.length ? p[0] : null, g = P && P.appearance ? P.appearance.class : "", N = g ? g.split(" ") : [], M = p.length ? p.reduce((V, $) => {
1108
- const z = $ && $.appearance ? $.appearance.class : "", Y = z ? z.split(" ") : [];
1109
- return V.push(...Y), V;
1110
- }, []) : [], w = e, E = w && w.appearance && w.appearance.class || "", J = E ? E.split(" ") : [];
1111
- m = {
1112
- componentClass: C,
1113
- componentClassList: O,
1114
- childContents: p,
1115
- firstChildContent: P,
1116
- firstChildClass: g,
1117
- firstChildClassList: N,
1118
- parent: w,
1119
- parentClass: E,
1120
- parentClassList: J,
1121
- children: p,
1122
- childrenClassList: M
1123
- };
1124
- const { canAccept: Q, fixed: U, hidePadding: X } = t.getRuleValue(O[0], m);
1125
- return d = Q, h = X, v = U, !0;
1126
- }
1127
- function b(i) {
1128
- Z();
1129
- }
1130
- function j() {
1131
- return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1132
- }
1133
- function o(i, C) {
1134
- const O = n;
1135
- if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
1136
- const { label: g } = i, N = S("form-group");
1137
- return N.editor = C, N.label = g, N;
1138
- }
1139
- return C;
1140
- }
1141
- function l(i, C, O) {
1142
- const p = n;
1143
- if ((p.appearance && p.appearance.class || "").split(" ").includes("f-form-layout")) {
1144
- const N = String(i.innerText), M = S("form-group");
1145
- return M.editor = O, M.label = N, M;
1146
- }
1147
- return O;
1148
- }
1149
- function a() {
1150
- return !v;
483
+ return "display: flex;flex-direction:column;height:100%";
1151
484
  }
1152
485
  function f() {
1153
- return !v;
486
+ return r;
1154
487
  }
1155
- function T() {
1156
- return h;
488
+ function l() {
489
+ return o;
490
+ }
491
+ function c() {
492
+ return !r && !o;
1157
493
  }
1158
494
  return {
1159
- canAccepts: y,
1160
- resolveComponentContext: u,
1161
- getStyles: j,
1162
- onAcceptNewChildElement: l,
1163
- onAcceptMovedChildElement: b,
1164
- onResolveNewComponentSchema: o,
1165
- triggerBelongedComponentToMoveWhenMoved: r,
1166
- triggerBelongedComponentToDeleteWhenDeleted: s,
1167
- checkCanMoveComponent: a,
1168
- checkCanDeleteComponent: f,
1169
- hideNestedPaddingInDesginerView: T
495
+ canAccepts: n,
496
+ getStyles: u,
497
+ checkCanMoveComponent: f,
498
+ checkCanDeleteComponent: l,
499
+ hideNestedPaddingInDesginerView: c
1170
500
  };
1171
501
  }
1172
- const Le = /* @__PURE__ */ W({
502
+ const ve = /* @__PURE__ */ O({
1173
503
  name: "FListNavDesign",
1174
- props: B,
504
+ props: A,
1175
505
  emits: [],
1176
- setup(n, e) {
1177
- var u;
1178
- const t = D(), r = R("design-item-context"), s = $e(r.schema, (u = r.parent) == null ? void 0 : u.schema), d = Pe(t, r, s);
1179
- d.value.canMove = !1, d.value.canNested = !1;
1180
- const h = D(n.position), m = D(n.title), v = D(!1), c = D(!1), y = _(() => {
1181
- const b = {};
1182
- let j = ["top", "bottom"].indexOf(h.value) > -1 ? "height" : "width";
1183
- return b[j] = v.value ? "0px" : n.size + "px", b;
506
+ setup(s, e) {
507
+ const t = h(), r = w("designer-host-service"), a = w("design-item-context"), o = de(a, r), n = ue(t, a, o);
508
+ n.value.canMove = !1, n.value.canNested = !1;
509
+ const u = h(s.position), f = h(s.title), l = h(!1), c = h(!1), i = j(() => {
510
+ const p = {};
511
+ let d = ["top", "bottom"].indexOf(u.value) > -1 ? "height" : "width";
512
+ return p[d] = l.value ? "0px" : s.size + "px", p;
1184
513
  });
1185
- return K(() => {
1186
- t.value.componentInstance = d;
1187
- }), e.expose(d.value), () => A("div", {
1188
- class: `f-list-nav f-list-nav-${h.value}`
1189
- }, [A("div", {
514
+ return W(() => {
515
+ t.value.componentInstance = n;
516
+ }), e.expose(n.value), () => v("div", {
517
+ class: `f-list-nav f-list-nav-${u.value}`
518
+ }, [v("div", {
1190
519
  class: "f-list-nav-in",
1191
- style: y.value
1192
- }, [A("div", {
520
+ style: i.value
521
+ }, [v("div", {
1193
522
  class: "f-list-nav-main"
1194
- }, [e.slots.navHeader && A("div", {
523
+ }, [e.slots.navHeader && v("div", {
1195
524
  class: "f-list-nav-header"
1196
- }, [e.slots.navHeader()]), !e.slots.navHeader && m.value && A("div", {
525
+ }, [e.slots.navHeader()]), !e.slots.navHeader && f.value && v("div", {
1197
526
  class: "f-list-nav-header"
1198
- }, [A("div", {
527
+ }, [v("div", {
1199
528
  class: "f-list-nav-title"
1200
- }, [m.value])]), e.slots.navContent && A("div", {
529
+ }, [f.value])]), e.slots.navContent && v("div", {
1201
530
  class: "f-list-nav-content"
1202
- }, [e.slots.navContent()]), e.slots.navFooter && A("div", {
531
+ }, [e.slots.navContent()]), e.slots.navFooter && v("div", {
1203
532
  class: "f-list-nav-footer"
1204
- }, [e.slots.navFooter()])]), n.collapsible && A("div", {
533
+ }, [e.slots.navFooter()])]), s.collapsible && v("div", {
1205
534
  class: ["f-list-nav-toggle-sidebar", {
1206
- disabled: n.disabled,
1207
- active: v.value,
535
+ disabled: s.disabled,
536
+ active: l.value,
1208
537
  "splitter-pane-collapse-animate": c.value
1209
538
  }]
1210
- }, [A("span", {
539
+ }, [v("span", {
1211
540
  class: "triangle"
1212
541
  }, null)])])]);
1213
542
  }
1214
- }), Be = {
1215
- install(n) {
1216
- n.component(L.name, L);
543
+ }), be = {
544
+ install(s) {
545
+ s.component(P.name, P);
1217
546
  },
1218
- register(n, e, t, r) {
1219
- n["list-nav"] = L, e["list-nav"] = H;
547
+ register(s, e, t, r) {
548
+ s["list-nav"] = P, e["list-nav"] = F;
1220
549
  },
1221
- registerDesigner(n, e, t) {
1222
- n["list-nav"] = Le, e["list-nav"] = H;
550
+ registerDesigner(s, e, t) {
551
+ s["list-nav"] = ve, e["list-nav"] = F;
1223
552
  }
1224
553
  };
1225
554
  export {
1226
- L as FListNav,
1227
- Be as default,
1228
- B as listNavProps,
1229
- H as propsResolver
555
+ P as FListNav,
556
+ be as default,
557
+ A as listNavProps,
558
+ F as propsResolver
1230
559
  };