@farris/ui-vue 1.3.0 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +454 -398
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +479 -476
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +255 -252
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +652 -567
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +518 -521
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +659 -553
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +162 -155
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +866 -747
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +371 -998
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1174 -1280
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +340 -991
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +6066 -5847
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3400 -3486
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2328 -2446
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9551 -1200
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +234 -231
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1996 -2630
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +138 -123
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +548 -586
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2871 -3736
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3380 -3645
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10543 -3207
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9775 -1312
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +442 -438
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +587 -807
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +415 -381
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +361 -1024
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2265 -2371
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6425 -6257
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +6164 -5946
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +524 -1474
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +547 -502
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +646 -574
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1181 -2028
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1185 -2027
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +442 -1368
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +238 -235
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1635 -1713
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +791 -716
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12203 -5274
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1873 -520
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +299 -300
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +176 -173
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +715 -659
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +1032 -1883
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4767 -5693
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +169 -161
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +490 -1167
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +154 -151
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +575 -1204
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/splitter/style.js +2 -0
  136. package/components/step/index.esm.js +279 -276
  137. package/components/step/index.umd.cjs +1 -1
  138. package/components/switch/index.esm.js +478 -428
  139. package/components/switch/index.umd.cjs +1 -1
  140. package/components/tabs/index.esm.js +2591 -3326
  141. package/components/tabs/index.umd.cjs +1 -1
  142. package/components/tags/index.esm.js +442 -439
  143. package/components/tags/index.umd.cjs +1 -1
  144. package/components/text/index.esm.js +309 -307
  145. package/components/text/index.umd.cjs +1 -1
  146. package/components/textarea/index.esm.js +500 -430
  147. package/components/textarea/index.umd.cjs +1 -1
  148. package/components/time-picker/index.esm.js +1391 -1341
  149. package/components/time-picker/index.umd.cjs +1 -1
  150. package/components/transfer/index.esm.js +574 -575
  151. package/components/transfer/index.umd.cjs +1 -1
  152. package/components/tree-grid/index.esm.js +3422 -3536
  153. package/components/tree-grid/index.umd.cjs +1 -1
  154. package/components/tree-view/index.esm.js +2661 -2764
  155. package/components/tree-view/index.umd.cjs +1 -1
  156. package/components/uploader/index.esm.js +675 -674
  157. package/components/uploader/index.umd.cjs +2 -2
  158. package/components/verify-detail/index.esm.js +300 -297
  159. package/components/verify-detail/index.umd.cjs +1 -1
  160. package/components/video/index.esm.js +454 -1089
  161. package/components/video/index.umd.cjs +1 -1
  162. package/components/weather/index.esm.js +709 -706
  163. package/components/weather/index.umd.cjs +5 -5
  164. package/farris.all.esm.js +54780 -52757
  165. package/farris.all.umd.cjs +14 -9
  166. package/index.css +1 -1
  167. package/package.json +1 -1
  168. package/types/binding-selector/index.d.ts +55 -0
  169. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  170. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  171. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  172. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  173. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  174. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  175. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  176. package/types/common/directive/area-response.d.ts +10 -0
  177. package/types/common/entity/entity-schema.d.ts +26 -11
  178. package/types/common/index.d.ts +9 -0
  179. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  180. package/types/common/types.d.ts +2 -2
  181. package/types/common/utils/resolve-field.d.ts +2 -0
  182. package/types/common/utils/use-class.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  184. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  185. package/types/condition/src/types.d.ts +5 -4
  186. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  187. package/types/data-grid/index.d.ts +8 -5
  188. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  189. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  190. package/types/data-grid/src/data-grid.component.d.ts +3 -2
  191. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  192. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  193. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  194. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  196. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  197. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  198. package/types/data-view/composition/types.d.ts +9 -11
  199. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  200. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  201. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  202. package/types/designer-canvas/index.d.ts +3 -1
  203. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  204. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  205. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  206. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  207. package/types/designer-canvas/src/composition/types.d.ts +49 -41
  208. package/types/designer-canvas/src/types.d.ts +10 -21
  209. package/types/dynamic-form/index.d.ts +1 -1
  210. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  211. package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
  212. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  213. package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
  214. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  215. package/types/dynamic-form/src/types.d.ts +1 -1
  216. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
  217. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  218. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  219. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  220. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  221. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  222. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  223. package/types/event-parameter/index.d.ts +31 -0
  224. package/types/event-parameter/src/composition/type.d.ts +77 -0
  225. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  226. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  227. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  228. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  229. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  230. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  231. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  232. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  233. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  234. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  235. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  236. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  237. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  238. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  239. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  240. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  241. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  242. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  243. package/types/modal/src/composition/modal.service.d.ts +2 -1
  244. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  245. package/types/page-header/src/page-header.component.d.ts +1 -1
  246. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  247. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  248. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  249. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  250. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  251. package/types/property-panel/index.d.ts +3 -1
  252. package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
  253. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  254. package/types/property-panel/src/composition/type.d.ts +0 -13
  255. package/types/query-solution/src/composition/types.d.ts +35 -4
  256. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  257. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  258. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  259. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
  260. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
  262. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  264. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
  266. package/types/query-solution/src/query-solution.d.ts +10 -2
  267. package/types/query-solution/src/solutions.d.ts +108 -509
  268. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  269. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  270. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  271. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  272. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  273. package/types/response-layout-editor/index.d.ts +3 -1
  274. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  275. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  276. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  277. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  278. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  279. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  280. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  281. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  282. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  283. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  284. package/types/tabs/src/composition/types.d.ts +4 -1
  285. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  286. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  287. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  288. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  289. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  290. package/types/text/src/composition/types.d.ts +4 -4
  291. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  292. package/types/tree-grid/index.d.ts +3 -3
  293. package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
  294. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  295. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  296. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  297. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  298. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  299. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  300. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
  301. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  302. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  303. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  304. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  305. package/types/weather/src/composition/types.d.ts +0 -2
@@ -1,492 +1,493 @@
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";
6
- var Y = function(n, t) {
7
- return Y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
8
- e.__proto__ = r;
9
- } || function(e, r) {
10
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
11
- }, Y(n, t);
1
+ import { defineComponent as Q, ref as g, watch as ne, computed as T, createVNode as b, createTextVNode as X, inject as ie, onMounted as ae } from "vue";
2
+ import { isPlainObject as U, cloneDeep as oe } from "lodash-es";
3
+ var k = function(t, e) {
4
+ return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
5
+ r.__proto__ = n;
6
+ } || function(r, n) {
7
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
8
+ }, k(t, e);
12
9
  };
13
- function pe(n, t) {
14
- if (typeof t != "function" && t !== null)
15
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
16
- Y(n, t);
17
- function e() {
18
- this.constructor = n;
10
+ function Z(t, e) {
11
+ if (typeof e != "function" && e !== null)
12
+ throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
13
+ k(t, e);
14
+ function r() {
15
+ this.constructor = t;
19
16
  }
20
- n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
17
+ t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
21
18
  }
22
- function ne(n) {
23
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], r = 0;
24
- if (e) return e.call(n);
25
- if (n && typeof n.length == "number") return {
19
+ function z(t) {
20
+ var e = typeof Symbol == "function" && Symbol.iterator, r = e && t[e], n = 0;
21
+ if (r) return r.call(t);
22
+ if (t && typeof t.length == "number") return {
26
23
  next: function() {
27
- return n && r >= n.length && (n = void 0), { value: n && n[r++], done: !n };
24
+ return t && n >= t.length && (t = void 0), { value: t && t[n++], done: !t };
28
25
  }
29
26
  };
30
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
27
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
31
28
  }
32
- function X(n, t) {
33
- var e = typeof Symbol == "function" && n[Symbol.iterator];
34
- if (!e) return n;
35
- var r = e.call(n), o, s = [], f;
29
+ function A(t, e) {
30
+ var r = typeof Symbol == "function" && t[Symbol.iterator];
31
+ if (!r) return t;
32
+ var n = r.call(t), i, a = [], c;
36
33
  try {
37
- for (; (t === void 0 || t-- > 0) && !(o = r.next()).done; ) s.push(o.value);
38
- } catch (d) {
39
- f = { error: d };
34
+ for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) a.push(i.value);
35
+ } catch (l) {
36
+ c = { error: l };
40
37
  } finally {
41
38
  try {
42
- o && !o.done && (e = r.return) && e.call(r);
39
+ i && !i.done && (r = n.return) && r.call(n);
43
40
  } finally {
44
- if (f) throw f.error;
41
+ if (c) throw c.error;
45
42
  }
46
43
  }
47
- return s;
44
+ return a;
48
45
  }
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));
46
+ function M(t, e, r) {
47
+ if (r || arguments.length === 2) for (var n = 0, i = e.length, a; n < i; n++)
48
+ (a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
49
+ return t.concat(a || Array.prototype.slice.call(e));
53
50
  }
54
- function O(n) {
55
- return typeof n == "function";
51
+ function E(t) {
52
+ return typeof t == "function";
56
53
  }
57
- function Ne(n) {
58
- var t = function(r) {
59
- Error.call(r), r.stack = new Error().stack;
60
- }, e = n(t);
61
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
54
+ function se(t) {
55
+ var e = function(n) {
56
+ Error.call(n), n.stack = new Error().stack;
57
+ }, r = t(e);
58
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
62
59
  }
63
- var U = Ne(function(n) {
64
- return function(e) {
65
- n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
66
- ` + e.map(function(r, o) {
67
- return o + 1 + ") " + r.toString();
60
+ var N = se(function(t) {
61
+ return function(r) {
62
+ t(this), this.message = r ? r.length + ` errors occurred during unsubscription:
63
+ ` + r.map(function(n, i) {
64
+ return i + 1 + ") " + n.toString();
68
65
  }).join(`
69
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
66
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
70
67
  };
71
68
  });
72
- function re(n, t) {
73
- if (n) {
74
- var e = n.indexOf(t);
75
- 0 <= e && n.splice(e, 1);
69
+ function H(t, e) {
70
+ if (t) {
71
+ var r = t.indexOf(e);
72
+ 0 <= r && t.splice(r, 1);
76
73
  }
77
74
  }
78
- var Q = function() {
79
- function n(t) {
80
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
75
+ var F = function() {
76
+ function t(e) {
77
+ this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
81
78
  }
82
- return n.prototype.unsubscribe = function() {
83
- var t, e, r, o, s;
79
+ return t.prototype.unsubscribe = function() {
80
+ var e, r, n, i, a;
84
81
  if (!this.closed) {
85
82
  this.closed = !0;
86
- var f = this._parentage;
87
- if (f)
88
- if (this._parentage = null, Array.isArray(f))
83
+ var c = this._parentage;
84
+ if (c)
85
+ if (this._parentage = null, Array.isArray(c))
89
86
  try {
90
- for (var d = ne(f), y = d.next(); !y.done; y = d.next()) {
91
- var a = y.value;
92
- a.remove(this);
87
+ for (var l = z(c), v = l.next(); !v.done; v = l.next()) {
88
+ var u = v.value;
89
+ u.remove(this);
93
90
  }
94
- } catch (c) {
95
- t = { error: c };
91
+ } catch (y) {
92
+ e = { error: y };
96
93
  } finally {
97
94
  try {
98
- y && !y.done && (e = d.return) && e.call(d);
95
+ v && !v.done && (r = l.return) && r.call(l);
99
96
  } finally {
100
- if (t) throw t.error;
97
+ if (e) throw e.error;
101
98
  }
102
99
  }
103
100
  else
104
- f.remove(this);
105
- var l = this.initialTeardown;
106
- if (O(l))
101
+ c.remove(this);
102
+ var o = this.initialTeardown;
103
+ if (E(o))
107
104
  try {
108
- l();
109
- } catch (c) {
110
- s = c instanceof U ? c.errors : [c];
105
+ o();
106
+ } catch (y) {
107
+ a = y instanceof N ? y.errors : [y];
111
108
  }
112
- var i = this._finalizers;
113
- if (i) {
109
+ var s = this._finalizers;
110
+ if (s) {
114
111
  this._finalizers = null;
115
112
  try {
116
- for (var h = ne(i), g = h.next(); !g.done; g = h.next()) {
117
- var p = g.value;
113
+ for (var p = z(s), f = p.next(); !f.done; f = p.next()) {
114
+ var d = f.value;
118
115
  try {
119
- oe(p);
120
- } catch (c) {
121
- s = s ?? [], c instanceof U ? s = H(H([], X(s)), X(c.errors)) : s.push(c);
116
+ W(d);
117
+ } catch (y) {
118
+ a = a ?? [], y instanceof N ? a = M(M([], A(a)), A(y.errors)) : a.push(y);
122
119
  }
123
120
  }
124
- } catch (c) {
125
- r = { error: c };
121
+ } catch (y) {
122
+ n = { error: y };
126
123
  } finally {
127
124
  try {
128
- g && !g.done && (o = h.return) && o.call(h);
125
+ f && !f.done && (i = p.return) && i.call(p);
129
126
  } finally {
130
- if (r) throw r.error;
127
+ if (n) throw n.error;
131
128
  }
132
129
  }
133
130
  }
134
- if (s)
135
- throw new U(s);
131
+ if (a)
132
+ throw new N(a);
136
133
  }
137
- }, n.prototype.add = function(t) {
138
- var e;
139
- if (t && t !== this)
134
+ }, t.prototype.add = function(e) {
135
+ var r;
136
+ if (e && e !== this)
140
137
  if (this.closed)
141
- oe(t);
138
+ W(e);
142
139
  else {
143
- if (t instanceof n) {
144
- if (t.closed || t._hasParent(this))
140
+ if (e instanceof t) {
141
+ if (e.closed || e._hasParent(this))
145
142
  return;
146
- t._addParent(this);
143
+ e._addParent(this);
147
144
  }
148
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
145
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(e);
149
146
  }
150
- }, n.prototype._hasParent = function(t) {
151
- var e = this._parentage;
152
- return e === t || Array.isArray(e) && e.includes(t);
153
- }, n.prototype._addParent = function(t) {
154
- var e = this._parentage;
155
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
156
- }, n.prototype._removeParent = function(t) {
157
- var e = this._parentage;
158
- e === t ? this._parentage = null : Array.isArray(e) && re(e, t);
159
- }, n.prototype.remove = function(t) {
160
- var e = this._finalizers;
161
- e && re(e, t), t instanceof n && t._removeParent(this);
162
- }, n.EMPTY = function() {
163
- var t = new n();
164
- return t.closed = !0, t;
165
- }(), n;
147
+ }, t.prototype._hasParent = function(e) {
148
+ var r = this._parentage;
149
+ return r === e || Array.isArray(r) && r.includes(e);
150
+ }, t.prototype._addParent = function(e) {
151
+ var r = this._parentage;
152
+ this._parentage = Array.isArray(r) ? (r.push(e), r) : r ? [r, e] : e;
153
+ }, t.prototype._removeParent = function(e) {
154
+ var r = this._parentage;
155
+ r === e ? this._parentage = null : Array.isArray(r) && H(r, e);
156
+ }, t.prototype.remove = function(e) {
157
+ var r = this._finalizers;
158
+ r && H(r, e), e instanceof t && e._removeParent(this);
159
+ }, t.EMPTY = function() {
160
+ var e = new t();
161
+ return e.closed = !0, e;
162
+ }(), t;
166
163
  }();
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);
164
+ F.EMPTY;
165
+ function x(t) {
166
+ return t instanceof F || t && "closed" in t && E(t.remove) && E(t.add) && E(t.unsubscribe);
170
167
  }
171
- function oe(n) {
172
- O(n) ? n() : n.unsubscribe();
168
+ function W(t) {
169
+ E(t) ? t() : t.unsubscribe();
173
170
  }
174
- var fe = {
171
+ var K = {
175
172
  onUnhandledError: null,
176
173
  onStoppedNotification: null,
177
174
  Promise: void 0,
178
175
  useDeprecatedSynchronousErrorHandling: !1,
179
176
  useDeprecatedNextContext: !1
180
- }, Me = {
181
- setTimeout: function(n, t) {
182
- for (var e = [], r = 2; r < arguments.length; r++)
183
- e[r - 2] = arguments[r];
184
- return setTimeout.apply(void 0, H([n, t], X(e)));
177
+ }, ce = {
178
+ setTimeout: function(t, e) {
179
+ for (var r = [], n = 2; n < arguments.length; n++)
180
+ r[n - 2] = arguments[n];
181
+ return setTimeout.apply(void 0, M([t, e], A(r)));
185
182
  },
186
- clearTimeout: function(n) {
187
- return clearTimeout(n);
183
+ clearTimeout: function(t) {
184
+ return clearTimeout(t);
188
185
  },
189
186
  delegate: void 0
190
187
  };
191
- function ke(n) {
192
- Me.setTimeout(function() {
193
- throw n;
188
+ function ue(t) {
189
+ ce.setTimeout(function() {
190
+ throw t;
194
191
  });
195
192
  }
196
- function se() {
193
+ function Y() {
197
194
  }
198
- function Oe(n) {
199
- n();
195
+ function le(t) {
196
+ t();
200
197
  }
201
- var de = function(n) {
202
- pe(t, n);
203
- function t(e) {
204
- var r = n.call(this) || this;
205
- return r.isStopped = !1, e ? (r.destination = e, ue(e) && e.add(r)) : r.destination = Be, r;
198
+ var C = function(t) {
199
+ Z(e, t);
200
+ function e(r) {
201
+ var n = t.call(this) || this;
202
+ return n.isStopped = !1, r ? (n.destination = r, x(r) && r.add(n)) : n.destination = de, n;
206
203
  }
207
- return t.create = function(e, r, o) {
208
- return new J(e, r, o);
209
- }, t.prototype.next = function(e) {
210
- this.isStopped || this._next(e);
211
- }, t.prototype.error = function(e) {
212
- this.isStopped || (this.isStopped = !0, this._error(e));
213
- }, t.prototype.complete = function() {
204
+ return e.create = function(r, n, i) {
205
+ return new R(r, n, i);
206
+ }, e.prototype.next = function(r) {
207
+ this.isStopped || this._next(r);
208
+ }, e.prototype.error = function(r) {
209
+ this.isStopped || (this.isStopped = !0, this._error(r));
210
+ }, e.prototype.complete = function() {
214
211
  this.isStopped || (this.isStopped = !0, this._complete());
215
- }, t.prototype.unsubscribe = function() {
216
- this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
217
- }, t.prototype._next = function(e) {
218
- this.destination.next(e);
219
- }, t.prototype._error = function(e) {
212
+ }, e.prototype.unsubscribe = function() {
213
+ this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this), this.destination = null);
214
+ }, e.prototype._next = function(r) {
215
+ this.destination.next(r);
216
+ }, e.prototype._error = function(r) {
220
217
  try {
221
- this.destination.error(e);
218
+ this.destination.error(r);
222
219
  } finally {
223
220
  this.unsubscribe();
224
221
  }
225
- }, t.prototype._complete = function() {
222
+ }, e.prototype._complete = function() {
226
223
  try {
227
224
  this.destination.complete();
228
225
  } finally {
229
226
  this.unsubscribe();
230
227
  }
231
- }, t;
232
- }(Q), Le = Function.prototype.bind;
233
- function W(n, t) {
234
- return Le.call(n, t);
228
+ }, e;
229
+ }(F), fe = Function.prototype.bind;
230
+ function O(t, e) {
231
+ return fe.call(t, e);
235
232
  }
236
- var Fe = function() {
237
- function n(t) {
238
- this.partialObserver = t;
233
+ var pe = function() {
234
+ function t(e) {
235
+ this.partialObserver = e;
239
236
  }
240
- return n.prototype.next = function(t) {
241
- var e = this.partialObserver;
242
- if (e.next)
237
+ return t.prototype.next = function(e) {
238
+ var r = this.partialObserver;
239
+ if (r.next)
243
240
  try {
244
- e.next(t);
245
- } catch (r) {
246
- I(r);
241
+ r.next(e);
242
+ } catch (n) {
243
+ D(n);
247
244
  }
248
- }, n.prototype.error = function(t) {
249
- var e = this.partialObserver;
250
- if (e.error)
245
+ }, t.prototype.error = function(e) {
246
+ var r = this.partialObserver;
247
+ if (r.error)
251
248
  try {
252
- e.error(t);
253
- } catch (r) {
254
- I(r);
249
+ r.error(e);
250
+ } catch (n) {
251
+ D(n);
255
252
  }
256
253
  else
257
- I(t);
258
- }, n.prototype.complete = function() {
259
- var t = this.partialObserver;
260
- if (t.complete)
254
+ D(e);
255
+ }, t.prototype.complete = function() {
256
+ var e = this.partialObserver;
257
+ if (e.complete)
261
258
  try {
262
- t.complete();
263
- } catch (e) {
264
- I(e);
259
+ e.complete();
260
+ } catch (r) {
261
+ D(r);
265
262
  }
266
- }, n;
267
- }(), J = function(n) {
268
- pe(t, n);
269
- function t(e, r, o) {
270
- var s = n.call(this) || this, f;
271
- if (O(e) || !e)
272
- f = {
273
- next: e ?? void 0,
274
- error: r ?? void 0,
275
- complete: o ?? void 0
263
+ }, t;
264
+ }(), R = function(t) {
265
+ Z(e, t);
266
+ function e(r, n, i) {
267
+ var a = t.call(this) || this, c;
268
+ if (E(r) || !r)
269
+ c = {
270
+ next: r ?? void 0,
271
+ error: n ?? void 0,
272
+ complete: i ?? void 0
276
273
  };
277
274
  else {
278
- var d;
279
- s && fe.useDeprecatedNextContext ? (d = Object.create(e), d.unsubscribe = function() {
280
- return s.unsubscribe();
281
- }, f = {
282
- next: e.next && W(e.next, d),
283
- error: e.error && W(e.error, d),
284
- complete: e.complete && W(e.complete, d)
285
- }) : f = e;
275
+ var l;
276
+ a && K.useDeprecatedNextContext ? (l = Object.create(r), l.unsubscribe = function() {
277
+ return a.unsubscribe();
278
+ }, c = {
279
+ next: r.next && O(r.next, l),
280
+ error: r.error && O(r.error, l),
281
+ complete: r.complete && O(r.complete, l)
282
+ }) : c = r;
286
283
  }
287
- return s.destination = new Fe(f), s;
284
+ return a.destination = new pe(c), a;
288
285
  }
289
- return t;
290
- }(de);
291
- function I(n) {
292
- ke(n);
286
+ return e;
287
+ }(C);
288
+ function D(t) {
289
+ ue(t);
293
290
  }
294
- function _e(n) {
295
- throw n;
291
+ function ve(t) {
292
+ throw t;
296
293
  }
297
- var Be = {
294
+ var de = {
298
295
  closed: !0,
299
- next: se,
300
- error: _e,
301
- complete: se
302
- }, $e = function() {
296
+ next: Y,
297
+ error: ve,
298
+ complete: Y
299
+ }, he = function() {
303
300
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
304
301
  }();
305
- function xe(n) {
306
- return n;
302
+ function ye(t) {
303
+ return t;
307
304
  }
308
- function Ie(n) {
309
- return n.length === 0 ? xe : n.length === 1 ? n[0] : function(e) {
310
- return n.reduce(function(r, o) {
311
- return o(r);
312
- }, e);
305
+ function be(t) {
306
+ return t.length === 0 ? ye : t.length === 1 ? t[0] : function(r) {
307
+ return t.reduce(function(n, i) {
308
+ return i(n);
309
+ }, r);
313
310
  };
314
311
  }
315
- var qe = function() {
316
- function n(t) {
317
- t && (this._subscribe = t);
318
- }
319
- return n.prototype.lift = function(t) {
320
- var e = new n();
321
- return e.source = this, e.operator = t, e;
322
- }, n.prototype.subscribe = function(t, e, r) {
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;
328
- }, n.prototype._trySubscribe = function(t) {
312
+ var me = function() {
313
+ function t(e) {
314
+ e && (this._subscribe = e);
315
+ }
316
+ return t.prototype.lift = function(e) {
317
+ var r = new t();
318
+ return r.source = this, r.operator = e, r;
319
+ }, t.prototype.subscribe = function(e, r, n) {
320
+ var i = this, a = Se(e) ? e : new R(e, r, n);
321
+ return le(function() {
322
+ var c = i, l = c.operator, v = c.source;
323
+ a.add(l ? l.call(a, v) : v ? i._subscribe(a) : i._trySubscribe(a));
324
+ }), a;
325
+ }, t.prototype._trySubscribe = function(e) {
329
326
  try {
330
- return this._subscribe(t);
331
- } catch (e) {
332
- t.error(e);
327
+ return this._subscribe(e);
328
+ } catch (r) {
329
+ e.error(r);
333
330
  }
334
- }, n.prototype.forEach = function(t, e) {
335
- var r = this;
336
- return e = ae(e), new e(function(o, s) {
337
- var f = new J({
338
- next: function(d) {
331
+ }, t.prototype.forEach = function(e, r) {
332
+ var n = this;
333
+ return r = G(r), new r(function(i, a) {
334
+ var c = new R({
335
+ next: function(l) {
339
336
  try {
340
- t(d);
341
- } catch (y) {
342
- s(y), f.unsubscribe();
337
+ e(l);
338
+ } catch (v) {
339
+ a(v), c.unsubscribe();
343
340
  }
344
341
  },
345
- error: s,
346
- complete: o
342
+ error: a,
343
+ complete: i
347
344
  });
348
- r.subscribe(f);
345
+ n.subscribe(c);
349
346
  });
350
- }, n.prototype._subscribe = function(t) {
351
- var e;
352
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
353
- }, n.prototype[$e] = function() {
347
+ }, t.prototype._subscribe = function(e) {
348
+ var r;
349
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e);
350
+ }, t.prototype[he] = function() {
354
351
  return this;
355
- }, n.prototype.pipe = function() {
356
- for (var t = [], e = 0; e < arguments.length; e++)
357
- t[e] = arguments[e];
358
- return Ie(t)(this);
359
- }, n.prototype.toPromise = function(t) {
360
- var e = this;
361
- return t = ae(t), new t(function(r, o) {
362
- var s;
363
- e.subscribe(function(f) {
364
- return s = f;
365
- }, function(f) {
366
- return o(f);
352
+ }, t.prototype.pipe = function() {
353
+ for (var e = [], r = 0; r < arguments.length; r++)
354
+ e[r] = arguments[r];
355
+ return be(e)(this);
356
+ }, t.prototype.toPromise = function(e) {
357
+ var r = this;
358
+ return e = G(e), new e(function(n, i) {
359
+ var a;
360
+ r.subscribe(function(c) {
361
+ return a = c;
362
+ }, function(c) {
363
+ return i(c);
367
364
  }, function() {
368
- return r(s);
365
+ return n(a);
369
366
  });
370
367
  });
371
- }, n.create = function(t) {
372
- return new n(t);
373
- }, n;
368
+ }, t.create = function(e) {
369
+ return new t(e);
370
+ }, t;
374
371
  }();
375
- function ae(n) {
376
- var t;
377
- return (t = n ?? fe.Promise) !== null && t !== void 0 ? t : Promise;
372
+ function G(t) {
373
+ var e;
374
+ return (e = t ?? K.Promise) !== null && e !== void 0 ? e : Promise;
378
375
  }
379
- function Ve(n) {
380
- return n && O(n.next) && O(n.error) && O(n.complete);
376
+ function ge(t) {
377
+ return t && E(t.next) && E(t.error) && E(t.complete);
381
378
  }
382
- function Ue(n) {
383
- return n && n instanceof de || Ve(n) && ue(n);
379
+ function Se(t) {
380
+ return t && t instanceof C || ge(t) && x(t);
384
381
  }
385
- const ye = {}, he = {};
386
- function Z(n) {
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;
382
+ const I = {}, ee = {};
383
+ function $(t) {
384
+ const { properties: e, title: r, ignore: n } = t, i = n && Array.isArray(n), a = Object.keys(e).reduce((c, l) => ((!i || !n.find((v) => v === l)) && (c[l] = e[l].type === "object" && e[l].properties ? $(e[l]) : oe(e[l].default)), c), {});
385
+ if (r && (!i || !n.find((c) => c === "id"))) {
386
+ const c = r.toLowerCase().replace(/-/g, "_");
387
+ a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
388
+ }
389
+ return a;
389
390
  }
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;
391
+ function te(t, e = {}, r) {
392
+ const n = I[t];
393
+ if (n) {
394
+ let i = $(n);
395
+ const a = ee[t];
396
+ return i = a ? a({ getSchemaByType: te }, i, e, r) : i, i;
396
397
  }
397
398
  return null;
398
399
  }
399
- function We(n, t) {
400
- const e = Z(t);
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;
400
+ function Ee(t, e) {
401
+ const r = $(e);
402
+ return Object.keys(r).reduce((n, i) => (n[i] && U(n[i]) && U(t[i] || !t[i]) ? Object.assign(n[i], t[i] || {}) : n[i] = t[i], n), r), r;
402
403
  }
403
- function Ge(n, t) {
404
- return Object.keys(n).filter((r) => n[r] != null).reduce((r, o) => {
405
- if (t.has(o)) {
406
- const s = t.get(o);
407
- if (typeof s == "string")
408
- r[s] = n[o];
404
+ function Pe(t, e) {
405
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, i) => {
406
+ if (e.has(i)) {
407
+ const a = e.get(i);
408
+ if (typeof a == "string")
409
+ n[a] = t[i];
409
410
  else {
410
- const f = s(o, n[o], n);
411
- Object.assign(r, f);
411
+ const c = a(i, t[i], t);
412
+ Object.assign(n, c);
412
413
  }
413
414
  } else
414
- r[o] = n[o];
415
- return r;
415
+ n[i] = t[i];
416
+ return n;
416
417
  }, {});
417
418
  }
418
- function ze(n, t, e = /* @__PURE__ */ new Map()) {
419
- const r = We(n, t);
420
- return Ge(r, e);
421
- }
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];
428
- if (g === "not")
429
- return Number(h[a].length) !== Number(p);
430
- if (g === "moreThan")
431
- return Number(h[a].length) >= Number(p);
432
- if (g === "lessThan")
433
- return Number(h[a].length) <= Number(p);
419
+ function Te(t, e, r = /* @__PURE__ */ new Map()) {
420
+ const n = Ee(t, e);
421
+ return Pe(n, r);
422
+ }
423
+ function _e(t = {}) {
424
+ function e(u, o, s, p) {
425
+ if (typeof s == "number")
426
+ return p[u].length === s;
427
+ if (typeof s == "object") {
428
+ const f = Object.keys(s)[0], d = s[f];
429
+ if (f === "not")
430
+ return Number(p[u].length) !== Number(d);
431
+ if (f === "moreThan")
432
+ return Number(p[u].length) >= Number(d);
433
+ if (f === "lessThan")
434
+ return Number(p[u].length) <= Number(d);
434
435
  }
435
436
  return !1;
436
437
  }
437
- function e(a, l, i, h) {
438
- return h[a] && h[a].propertyValue && String(h[a].propertyValue.value) === String(i);
438
+ function r(u, o, s, p) {
439
+ return p[u] && p[u].propertyValue && String(p[u].propertyValue.value) === String(s);
439
440
  }
440
- const r = /* @__PURE__ */ new Map([
441
- ["length", t],
442
- ["getProperty", e]
441
+ const n = /* @__PURE__ */ new Map([
442
+ ["length", e],
443
+ ["getProperty", r]
443
444
  ]);
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 };
445
+ Object.keys(t).reduce((u, o) => (u.set(o, t[o]), u), n);
446
+ function i(u, o) {
447
+ const s = u;
448
+ return typeof o == "number" ? [{ target: s, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: s, operator: "getProperty", param: u, value: !!o }] : typeof o == "object" ? Object.keys(o).map((p) => {
449
+ if (p === "length")
450
+ return { target: s, operator: "length", param: null, value: o[p] };
451
+ const f = p, d = o[p];
452
+ return { target: s, operator: "getProperty", param: f, value: d };
452
453
  }) : [];
453
454
  }
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
+ function a(u) {
456
+ return Object.keys(u).reduce((s, p) => {
457
+ const f = i(p, u[p]);
458
+ return s.push(...f), s;
458
459
  }, []);
459
460
  }
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
+ function c(u, o) {
462
+ if (n.has(u.operator)) {
463
+ const s = n.get(u.operator);
464
+ return s && s(u.target, u.param, u.value, o) || !1;
464
465
  }
465
466
  return !1;
466
467
  }
467
- function d(a, l) {
468
- return s(a).reduce((g, p) => g && f(p, l), !0);
468
+ function l(u, o) {
469
+ return a(u).reduce((f, d) => f && c(d, o), !0);
469
470
  }
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);
471
+ function v(u, o) {
472
+ const s = Object.keys(u), p = s.includes("allOf"), f = s.includes("anyOf"), d = p || f, _ = (d ? u[d ? p ? "allOf" : "anyOf" : "allOf"] : [u]).map((w) => l(w, o));
473
+ return p ? !_.includes(!1) : _.includes(!0);
473
474
  }
474
- return { parseValueSchema: y };
475
+ return { parseValueSchema: v };
475
476
  }
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);
477
+ const De = {}, we = {};
478
+ _e();
479
+ function Ne(t, e, r = /* @__PURE__ */ new Map(), n = (c, l, v, u) => l, i = {}, a = (c) => c) {
480
+ return I[e.title] = e, ee[e.title] = n, De[e.title] = i, we[e.title] = a, (c = {}) => {
481
+ const l = Te(c, e, r), v = Object.keys(t).reduce((u, o) => (u[o] = t[o].default, u), {});
482
+ return Object.assign(v, l);
482
483
  };
483
484
  }
484
- function Qe(n, t) {
485
- return { customClass: t.class, customStyle: t.style };
485
+ function Oe(t, e) {
486
+ return { customClass: e.class, customStyle: e.style };
486
487
  }
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 = {
488
+ const je = /* @__PURE__ */ new Map([
489
+ ["appearance", Oe]
490
+ ]), ke = "https://json-schema.org/draft/2020-12/schema", Ae = "https://farris-design.gitee.io/nav.schema.json", Me = "nav", Re = "A Farris Component", Fe = "object", $e = {
490
491
  id: {
491
492
  description: "The unique identifier for a nav",
492
493
  type: "string"
@@ -578,22 +579,22 @@ const Ze = /* @__PURE__ */ new Map([
578
579
  type: "sting",
579
580
  default: ""
580
581
  }
581
- }, ot = [
582
+ }, Be = [
582
583
  "id",
583
584
  "type"
584
- ], st = {
585
- $schema: Re,
586
- $id: Ke,
587
- title: et,
588
- description: tt,
589
- type: nt,
590
- properties: rt,
591
- required: ot
585
+ ], Le = {
586
+ $schema: ke,
587
+ $id: Ae,
588
+ title: Me,
589
+ description: Re,
590
+ type: Fe,
591
+ properties: $e,
592
+ required: Be
592
593
  };
593
- function at(n, t, e) {
594
- return t;
594
+ function Ve(t, e, r) {
595
+ return e;
595
596
  }
596
- const it = "nav", ct = "A Farris Component", lt = "object", pt = {
597
+ const qe = "nav", Ue = "A Farris Component", ze = "object", He = {
597
598
  basic: {
598
599
  description: "Basic Infomation",
599
600
  title: "基本信息",
@@ -664,7 +665,7 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
664
665
  },
665
666
  {
666
667
  value: "center",
667
- name: "居中对齐"
668
+ name: "居中"
668
669
  },
669
670
  {
670
671
  value: "right",
@@ -675,12 +676,12 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
675
676
  }
676
677
  }
677
678
  }
678
- }, ut = {
679
- title: it,
680
- description: ct,
681
- type: lt,
682
- categories: pt
683
- }, R = {
679
+ }, We = {
680
+ title: qe,
681
+ description: Ue,
682
+ type: ze,
683
+ categories: He
684
+ }, B = {
684
685
  /** 未读最大值 */
685
686
  maxNum: { Type: Number, default: 99 },
686
687
  /** 导航数据 */
@@ -713,1195 +714,244 @@ const it = "nav", ct = "A Farris Component", lt = "object", pt = {
713
714
  /** 当前激活的id */
714
715
  activeNavId: { Type: String, default: "1" },
715
716
  /** nav切换前事件 */
716
- navPicking: { Type: Function, default: (n) => qe }
717
- }, ie = Je(R, st, Ze, at, ut), G = /* @__PURE__ */ ce({
717
+ navPicking: { Type: Function, default: (t) => me }
718
+ }, J = Ne(B, Le, je, Ve, We), j = /* @__PURE__ */ Q({
718
719
  name: "FNav",
719
- props: R,
720
+ props: B,
720
721
  emits: ["nav", "update:activeNavId"],
721
- setup(n, t) {
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
+ setup(t, e) {
723
+ const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
724
+ g(t.navPicking), ne(() => t.activeNavId, (o, s) => {
725
+ o !== s && (r.value = o);
725
726
  });
726
- const s = _({
727
+ const a = T({
727
728
  get() {
728
- return r.value;
729
+ return n.value;
729
730
  },
730
- set(l) {
731
- r.value = l, y();
731
+ set(o) {
732
+ n.value = o, v();
732
733
  }
733
- }), f = _({
734
+ }), c = T({
734
735
  get() {
735
- return e.value;
736
+ return r.value;
736
737
  },
737
- set(l) {
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
+ set(o) {
739
+ if (r.value = o, r.value && a && a.value.length) {
740
+ const s = a.value.find((p) => p.id === r.value);
741
+ s && e.emit("nav", s);
741
742
  }
742
743
  }
743
- }), d = _({
744
- set(l) {
745
- o.value = l;
744
+ }), l = T({
745
+ set(o) {
746
+ i.value = o;
746
747
  },
747
748
  get() {
748
- return o.value;
749
+ return i.value;
749
750
  }
750
751
  });
751
- function y() {
752
- if (s.value && s.value.length && !e.value) {
753
- const l = s.value.find((i) => !i.disable);
754
- l && (e.value = l.id);
752
+ function v() {
753
+ if (a.value && a.value.length && !r.value) {
754
+ const o = a.value.find((s) => !s.disable);
755
+ o && (r.value = o.id);
755
756
  }
756
757
  }
757
- function a(l) {
758
- l.disable || l.id === e.value || (e.value = l.id, t.emit("update:activeNavId", l.id), t.emit("nav", l));
758
+ function u(o) {
759
+ o.disable || o.id === r.value || (r.value = o.id, e.emit("update:activeNavId", o.id), e.emit("nav", o));
759
760
  }
760
761
  return () => {
761
- var l;
762
- return N("div", {
762
+ var o;
763
+ return b("div", {
763
764
  class: ["farris-nav", {
764
- "farris-nav-vertical": !d.value
765
+ "farris-nav-vertical": !l.value
765
766
  }]
766
- }, [(l = s.value) == null ? void 0 : l.map((i) => N("div", {
767
+ }, [(o = a.value) == null ? void 0 : o.map((s) => b("div", {
767
768
  class: ["farris-nav-item", {
768
- active: i.id === f.value
769
+ active: s.id === c.value
769
770
  }, {
770
- disabled: i.disable
771
+ disabled: s.disable
771
772
  }],
772
- onClick: () => a(i)
773
- }, [N("div", {
773
+ onClick: () => u(s)
774
+ }, [b("div", {
774
775
  class: "farris-nav-item-link"
775
- }, [N("span", {
776
+ }, [b("span", {
776
777
  class: "farris-nav-item-link-text"
777
- }, [typeof i.text == "function" ? i.text() : i.text, i.num && N("div", {
778
+ }, [typeof s.text == "function" ? s.text() : s.text, s.num && b("div", {
778
779
  class: "farris-nav-item-tag"
779
- }, [i.num <= n.maxNum && N("span", {
780
+ }, [s.num <= t.maxNum && b("span", {
780
781
  class: "tag-text"
781
- }, [i.num]), i.num > n.maxNum && N("span", {
782
+ }, [s.num]), s.num > t.maxNum && b("span", {
782
783
  class: "tag-text"
783
- }, [n.maxNum, le("+")])])])])]))]);
784
+ }, [t.maxNum, X("+")])])])])]))]);
784
785
  };
785
786
  }
786
787
  });
787
- function ft(n, t, e) {
788
- var M;
789
- function r() {
790
- e != null && e.resolveComponentContext && e.resolveComponentContext();
791
- }
792
- r();
793
- const o = e && e.getStyles && e.getStyles() || "", s = e && e.getDesignerClass && e.getDesignerClass() || "", f = w();
794
- function d() {
795
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
796
- }
797
- function y() {
798
- return !1;
799
- }
800
- function a() {
801
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
802
- }
803
- function l() {
804
- return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
805
- }
806
- function i(b) {
807
- if (!b || !b.value)
808
- return 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;
813
- }
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);
817
- }
818
- function g(b) {
819
- return !!e && e.canAccepts(b);
820
- }
821
- function p() {
822
- return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
823
- }
788
+ function Ye(t, e, r) {
789
+ var q;
790
+ const n = "", i = "", a = g();
824
791
  function c() {
792
+ return (e == null ? void 0 : e.schema.componentType) !== "frame";
825
793
  }
826
- function u(b, D) {
827
- D && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(D);
828
- }
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;
835
- }
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;
843
- }
844
- function C(b) {
845
- }
846
- function j(...b) {
847
- if (e && e.getPropsConfig)
848
- return e.getPropsConfig(...b);
849
- }
850
- return f.value = {
851
- canMove: d(),
852
- canSelectParent: y(),
853
- canDelete: a(),
854
- canNested: !l(),
855
- contents: t == null ? void 0 : t.schema.contents,
856
- elementRef: n,
857
- parent: (M = t == null ? void 0 : t.parent) == null ? void 0 : M.componentInstance,
858
- schema: t == null ? void 0 : t.schema,
859
- styles: o,
860
- designerClass: s,
861
- canAccepts: g,
862
- getBelongedComponentInstance: i,
863
- getDraggableDesignItemElement: h,
864
- getDraggingDisplayText: p,
865
- getPropConfig: j,
866
- getDragScopeElement: c,
867
- onAcceptMovedChildElement: u,
868
- onAcceptNewChildElement: A,
869
- onChildElementMovedOut: C,
870
- addNewChildComponentSchema: m,
871
- updateDragAndDropRules: r,
872
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || w(!1),
873
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || w(!1)
874
- }, f;
875
- }
876
- function dt() {
877
- function n(t) {
878
- var o, s;
879
- if (!t)
880
- return !1;
881
- const e = ((o = t.targetContainer) == null ? void 0 : o.componentInstance) && t.targetContainer.componentInstance.value;
882
- if (!e)
883
- return !1;
884
- const r = (s = e.schema.appearance) == null ? void 0 : s.class;
885
- if (t.controlCategory === "input" || t.controlType === "form-group") {
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)
888
- return !1;
889
- }
890
- return t.controlType !== "field-set";
891
- }
892
- return {
893
- basalDragulaRuleForContainer: n
894
- };
895
- }
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 = {
897
- "f-page": {
898
- description: "The root class of page designed by farris.",
899
- type: "object",
900
- properties: {
901
- contents: {
902
- type: "object",
903
- properties: {
904
- "f-page-header": {
905
- description: "The class of page header designed by farris.",
906
- type: "string"
907
- },
908
- "f-page-main": {
909
- description: "The class of page body designed by farris.",
910
- type: "object",
911
- properties: {
912
- contents: {
913
- type: "object",
914
- properties: {
915
- "f-struct-like-card": {
916
- description: "",
917
- type: "object",
918
- properties: {
919
- contents: {
920
- type: "object",
921
- properties: {
922
- "f-struct-form": {
923
- description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
924
- type: "object",
925
- properties: {
926
- contents: {
927
- type: "object",
928
- properties: {
929
- "f-section-form": {
930
- description: "The class of section which has wrapped a reponse-form component.",
931
- type: "object",
932
- properties: {
933
- contents: {
934
- type: "object",
935
- properties: {
936
- "f-form-layout": {
937
- description: "The class of reponse form",
938
- type: "object",
939
- properties: {
940
- rules: {
941
- type: "object",
942
- properties: {
943
- canAccept: {
944
- type: "boolean",
945
- const: !0
946
- },
947
- fixed: {
948
- type: "boolean",
949
- const: !0
950
- },
951
- hidePadding: {
952
- type: "boolean",
953
- const: !1
954
- }
955
- }
956
- }
957
- }
958
- }
959
- }
960
- },
961
- rules: {
962
- type: "object",
963
- properties: {
964
- canAccept: {
965
- type: "boolean",
966
- const: !1
967
- },
968
- fixed: {
969
- type: "boolean",
970
- const: !0
971
- },
972
- hidePadding: {
973
- type: "boolean",
974
- const: !0
975
- }
976
- }
977
- }
978
- }
979
- }
980
- }
981
- },
982
- rules: {
983
- type: "object",
984
- properties: {
985
- canAccept: {
986
- type: "boolean",
987
- const: !1
988
- },
989
- fixed: {
990
- type: "boolean",
991
- const: !1
992
- },
993
- hidePadding: {
994
- type: "boolean",
995
- const: !0
996
- }
997
- }
998
- }
999
- }
1000
- },
1001
- "f-struct-wrapper": {
1002
- description: "",
1003
- type: "object",
1004
- properties: {
1005
- contents: {
1006
- type: "object",
1007
- properties: {
1008
- "f-section-tabs": {
1009
- description: "The class of section which has wrapped sub-grid tabs.",
1010
- type: "object",
1011
- properties: {
1012
- contents: {
1013
- type: "object",
1014
- properties: {
1015
- "f-tabs-in-card": {
1016
- description: "The class of tabs which contains sub-grid.",
1017
- type: "object",
1018
- properties: {
1019
- contents: {
1020
- type: "object",
1021
- properties: {
1022
- "f-struct-data-grid-in-card": {
1023
- description: "The class of sub-grid component",
1024
- type: "object",
1025
- properties: {
1026
- contents: {
1027
- type: "object",
1028
- properties: {
1029
- "f-grid-is-sub": {
1030
- description: "The class of sub-grid",
1031
- type: "object",
1032
- properties: {
1033
- rules: {
1034
- type: "object",
1035
- properties: {
1036
- canAccept: {
1037
- type: "boolean",
1038
- const: !0
1039
- },
1040
- fixed: {
1041
- type: "boolean",
1042
- const: !0
1043
- },
1044
- hidePadding: {
1045
- type: "boolean",
1046
- const: !1
1047
- }
1048
- }
1049
- }
1050
- }
1051
- }
1052
- }
1053
- },
1054
- rules: {
1055
- type: "object",
1056
- properties: {
1057
- canAccept: {
1058
- type: "boolean",
1059
- const: !1
1060
- },
1061
- fixed: {
1062
- type: "boolean",
1063
- const: !1
1064
- },
1065
- hidePadding: {
1066
- type: "boolean",
1067
- const: !0
1068
- }
1069
- }
1070
- }
1071
- }
1072
- }
1073
- }
1074
- },
1075
- rules: {
1076
- type: "object",
1077
- properties: {
1078
- canAccept: {
1079
- type: "boolean",
1080
- const: !1
1081
- },
1082
- fixed: {
1083
- type: "boolean",
1084
- const: !0
1085
- },
1086
- hidePadding: {
1087
- type: "boolean",
1088
- const: !0
1089
- }
1090
- }
1091
- }
1092
- }
1093
- }
1094
- }
1095
- },
1096
- rules: {
1097
- type: "object",
1098
- properties: {
1099
- canAccept: {
1100
- type: "boolean",
1101
- const: !1
1102
- },
1103
- fixed: {
1104
- type: "boolean",
1105
- const: !0
1106
- },
1107
- hidePadding: {
1108
- type: "boolean",
1109
- const: !0
1110
- }
1111
- }
1112
- }
1113
- }
1114
- },
1115
- "f-section-in-main": {
1116
- description: "The class of section which has wrapped a reponse-form component.",
1117
- type: "object",
1118
- properties: {
1119
- rules: {
1120
- type: "object",
1121
- properties: {
1122
- canAccept: {
1123
- type: "boolean",
1124
- const: !0
1125
- },
1126
- fixed: {
1127
- type: "boolean",
1128
- const: !0
1129
- },
1130
- hidePadding: {
1131
- type: "boolean",
1132
- const: !1
1133
- }
1134
- }
1135
- }
1136
- }
1137
- }
1138
- }
1139
- },
1140
- rules: {
1141
- type: "object",
1142
- properties: {
1143
- canAccept: {
1144
- type: "boolean",
1145
- const: !1
1146
- },
1147
- fixed: {
1148
- type: "boolean",
1149
- const: !1
1150
- },
1151
- hidePadding: {
1152
- type: "boolean",
1153
- const: !0
1154
- }
1155
- }
1156
- }
1157
- }
1158
- }
1159
- }
1160
- },
1161
- rules: {
1162
- type: "object",
1163
- properties: {
1164
- canAccept: {
1165
- type: "boolean",
1166
- const: !0
1167
- },
1168
- fixed: {
1169
- type: "boolean",
1170
- const: !0
1171
- },
1172
- hidePadding: {
1173
- type: "object",
1174
- const: {
1175
- allOf: [
1176
- {
1177
- sibling: 0,
1178
- parent: {
1179
- "f-page-main": !0
1180
- }
1181
- }
1182
- ]
1183
- }
1184
- }
1185
- }
1186
- }
1187
- }
1188
- },
1189
- "f-struct-data-grid": {
1190
- description: "",
1191
- type: "object",
1192
- properties: {
1193
- rules: {
1194
- type: "object",
1195
- properties: {
1196
- canAccept: {
1197
- type: "object",
1198
- const: !0
1199
- },
1200
- fixed: {
1201
- type: "boolean",
1202
- const: !0
1203
- },
1204
- hidePadding: {
1205
- type: "boolean",
1206
- const: !0
1207
- }
1208
- }
1209
- }
1210
- }
1211
- },
1212
- "f-page-main-content": {
1213
- description: "",
1214
- type: "object",
1215
- properties: {
1216
- contents: {
1217
- type: "object",
1218
- properties: {
1219
- "f-page-content-nav": {
1220
- description: "",
1221
- type: "object",
1222
- properties: {
1223
- contents: {
1224
- type: "object",
1225
- properties: {
1226
- "f-struct-data-grid-in-nav": {
1227
- description: "",
1228
- type: "object",
1229
- properties: {
1230
- contents: {
1231
- type: "object",
1232
- properties: {
1233
- "f-page-content-nav-extend": {
1234
- description: "",
1235
- type: "object"
1236
- },
1237
- "f-section-in-nav": {
1238
- description: "",
1239
- type: "object",
1240
- properties: {
1241
- rules: {
1242
- type: "object",
1243
- properties: {
1244
- canAccept: {
1245
- type: "boolean",
1246
- const: !1
1247
- },
1248
- fixed: {
1249
- type: "boolean",
1250
- const: !0
1251
- },
1252
- hidePadding: {
1253
- type: "boolean",
1254
- const: !1
1255
- }
1256
- }
1257
- }
1258
- }
1259
- }
1260
- }
1261
- },
1262
- rules: {
1263
- type: "object",
1264
- properties: {
1265
- canAccept: {
1266
- type: "boolean",
1267
- const: !0
1268
- },
1269
- fixed: {
1270
- type: "boolean",
1271
- const: !1
1272
- },
1273
- hidePadding: {
1274
- type: "boolean",
1275
- const: !0
1276
- }
1277
- }
1278
- }
1279
- }
1280
- }
1281
- }
1282
- }
1283
- }
1284
- },
1285
- "f-page-content-main": {
1286
- description: "",
1287
- type: "object",
1288
- properties: {}
1289
- }
1290
- }
1291
- }
1292
- }
1293
- },
1294
- "f-page-content": {
1295
- description: "",
1296
- type: "object",
1297
- properties: {
1298
- contents: {
1299
- type: "object",
1300
- properties: {
1301
- "f-page-content-nav": {
1302
- description: "",
1303
- type: "object",
1304
- properties: {
1305
- contents: {
1306
- type: "object",
1307
- properties: {
1308
- "f-list-nav": {
1309
- description: "",
1310
- type: "object"
1311
- },
1312
- "f-list-nav-left": {
1313
- description: "",
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
- }
1389
- }
1390
- }
1391
- }
1392
- },
1393
- rules: {
1394
- type: "object",
1395
- properties: {
1396
- canAccept: {
1397
- type: "boolean",
1398
- const: !1
1399
- },
1400
- fixed: {
1401
- type: "boolean",
1402
- const: !0
1403
- },
1404
- hidePadding: {
1405
- type: "boolean",
1406
- const: !0
1407
- }
1408
- }
1409
- }
1410
- },
1411
- "f-page-content-main": {
1412
- description: "",
1413
- type: "object",
1414
- properties: {
1415
- rules: {
1416
- type: "object",
1417
- properties: {
1418
- canAccept: {
1419
- type: "boolean",
1420
- const: !1
1421
- },
1422
- fixed: {
1423
- type: "boolean",
1424
- const: !1
1425
- },
1426
- hidePadding: {
1427
- type: "boolean",
1428
- const: !0
1429
- }
1430
- }
1431
- }
1432
- }
1433
- }
1434
- }
1435
- },
1436
- rules: {
1437
- type: "object",
1438
- properties: {
1439
- canAccept: {
1440
- type: "boolean",
1441
- const: !1
1442
- },
1443
- fixed: {
1444
- type: "boolean",
1445
- const: !0
1446
- },
1447
- hidePadding: {
1448
- type: "boolean",
1449
- const: !0
1450
- }
1451
- }
1452
- }
1453
- }
1454
- }
1455
- }
1456
- },
1457
- rules: {
1458
- type: "object",
1459
- properties: {
1460
- canAccept: {
1461
- type: "object",
1462
- const: {
1463
- anyOf: [
1464
- {
1465
- children: 0
1466
- },
1467
- {
1468
- children: {
1469
- length: {
1470
- not: 1
1471
- },
1472
- "f-struct-like-card": !0
1473
- }
1474
- },
1475
- {
1476
- children: {
1477
- "scroll-spy": !1,
1478
- "f-page-content": !1,
1479
- "f-struct-like-card": !1
1480
- }
1481
- }
1482
- ]
1483
- }
1484
- },
1485
- fixed: {
1486
- type: "boolean",
1487
- const: !0
1488
- },
1489
- hidePadding: {
1490
- type: "boolean",
1491
- const: !0
1492
- }
1493
- }
1494
- }
1495
- }
1496
- },
1497
- "f-page-footer": {
1498
- description: "The class of page footer designed by farris.",
1499
- type: "string"
1500
- }
1501
- }
1502
- },
1503
- rules: {
1504
- type: "object",
1505
- properties: {
1506
- canAccept: {
1507
- type: "boolean",
1508
- const: !1
1509
- },
1510
- fixed: {
1511
- type: "boolean",
1512
- const: !0
1513
- },
1514
- hidePadding: {
1515
- type: "boolean",
1516
- const: !0
1517
- }
1518
- }
1519
- }
1520
- }
1521
- },
1522
- "f-page-is-managelist": {
1523
- description: "The root class of mangement list page.",
1524
- type: "string"
1525
- },
1526
- "f-page-card": {
1527
- description: "",
1528
- type: "object"
1529
- },
1530
- "f-page-is-mainsubcard": {
1531
- description: "",
1532
- type: "object"
1533
- }
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];
1549
- if (C === "not")
1550
- return Number(m[p].length) !== Number(j);
1551
- if (C === "moreThan")
1552
- return Number(m[p].length) >= Number(j);
1553
- if (C === "lessThan")
1554
- return Number(m[p].length) <= Number(j);
1555
- }
1556
- return !1;
1557
- }
1558
- function t(p, c, u, m) {
1559
- return typeof u == "boolean" ? m.childrenClassList.includes(c) === !!u : !1;
1560
- }
1561
- function e(p, c, u, m) {
1562
- return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1563
- }
1564
- function r(p, c, u, m) {
1565
- return typeof u == "boolean" ? m.parentClassList.includes(c) === !!u : !1;
1566
- }
1567
- const o = /* @__PURE__ */ new Map([
1568
- ["length", n],
1569
- ["hasChildren", t],
1570
- ["hasSibling", r],
1571
- ["hasParent", e]
1572
- ]);
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 };
1580
- }) : [];
1581
- }
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;
1586
- }
794
+ function l() {
1587
795
  return !1;
1588
796
  }
1589
- function d(p, c) {
1590
- return Object.keys(p).reduce((C, j) => {
1591
- const M = s(j, p[j]);
1592
- return C.push(...M), C;
1593
- }, []).reduce((C, j) => C && f(j, c), !0);
797
+ function v() {
798
+ return (e == null ? void 0 : e.schema.componentType) !== "frame";
1594
799
  }
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);
800
+ function u() {
801
+ return (e == null ? void 0 : e.schema.componentType) === "frame";
1598
802
  }
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;
803
+ function o(h) {
804
+ if (!h || !h.value)
805
+ return null;
806
+ if (h.value.schema && h.value.schema.type === "component")
807
+ return h.value;
808
+ const S = g(h == null ? void 0 : h.value.parent), m = o(S);
809
+ return m || null;
1602
810
  }
1603
- function l(p) {
1604
- return (c) => {
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;
1610
- };
811
+ function s(h = e) {
812
+ const { componentInstance: S, designerItemElementRef: m } = h;
813
+ return !S || !S.value ? null : S.value.canMove ? m : s(h.parent);
1611
814
  }
1612
- function i(p, c, u) {
1613
- if (c.type === "object" && c.properties) {
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)
1617
- );
1618
- }
815
+ function p(h) {
816
+ return !!r;
1619
817
  }
1620
- function h() {
1621
- const { properties: p } = Ct;
1622
- Object.keys(p).forEach((c) => {
1623
- i(c, p[c], z);
1624
- });
818
+ function f() {
819
+ return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
1625
820
  }
1626
- function g(p, c) {
1627
- const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
1628
- return z.has(p) ? z.get(p)(c) : u;
821
+ function d() {
1629
822
  }
1630
- return h(), { getRuleValue: g };
1631
- }
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);
823
+ function y(h, S) {
1637
824
  }
1638
- function r(y) {
1639
- const a = n.getComponentById(y);
1640
- return !(!a || !a.componentType || !a.componentType.startsWith("form"));
825
+ function L(h, S) {
826
+ const { componentType: m } = h;
827
+ let P = te(m, h, S);
828
+ const re = m.toLowerCase().replace(/-/g, "_");
829
+ return P && !P.id && P.type === m && (P.id = `${re}_${Math.random().toString().slice(2, 6)}`), P;
1641
830
  }
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
- };
831
+ function _(h) {
1652
832
  }
1653
- function s(y) {
1654
- const a = new Set(y);
1655
- return Array.from(a).length === 1;
833
+ function V(...h) {
1656
834
  }
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);
835
+ function w() {
836
+ e != null && e.schema.contents && e.schema.contents.map((h) => {
837
+ var P;
838
+ let S = h.id;
839
+ h.type === "component-ref" && (S = h.component);
840
+ const m = t.value.querySelector(`#${S}-design-item`);
841
+ (P = m == null ? void 0 : m.componentInstance) != null && P.value.onRemoveComponent && m.componentInstance.value.onRemoveComponent();
1666
842
  });
1667
843
  }
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));
1716
- }
1717
- function g() {
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,
1730
- parent: x,
1731
- parentClass: q,
1732
- parentClassList: be,
1733
- children: S,
1734
- childrenClassList: B
1735
- };
1736
- const { canAccept: me, fixed: ve, hidePadding: ge } = o.getRuleValue(T[0], a);
1737
- return d = me, y = ge, l = ve, !0;
1738
- }
1739
- function p(v) {
1740
- Pe();
1741
- }
1742
- function c() {
1743
- return e.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
1744
- }
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;
1750
- }
1751
- return P;
1752
- }
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;
1759
- }
1760
- }
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";
1766
- break;
1767
- }
1768
- case 2: {
1769
- P = "col-12 col-md-6 col-xl-6 col-el-6";
1770
- break;
1771
- }
1772
- case 3: {
1773
- P = "col-12 col-md-6 col-xl-4 col-el-4";
1774
- break;
1775
- }
1776
- case 4: {
1777
- P = "col-12 col-md-6 col-xl-3 col-el-2";
1778
- break;
1779
- }
1780
- }
1781
- return P;
1782
- }
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;
1788
- }
1789
- return T;
1790
- }
1791
- function j() {
1792
- return !l;
1793
- }
1794
- function M() {
1795
- return !l;
1796
- }
1797
- function b() {
1798
- return y;
1799
- }
1800
- function D(v) {
1801
- return new At(v, t).getPropertyConfig(e, n.componentInstance.value);
1802
- }
1803
- return {
1804
- canAccepts: h,
1805
- checkCanDeleteComponent: M,
1806
- checkCanMoveComponent: j,
1807
- getStyles: c,
1808
- getPropsConfig: D,
1809
- hideNestedPaddingInDesginerView: b,
1810
- onAcceptNewChildElement: C,
1811
- onAcceptMovedChildElement: p,
1812
- resolveComponentContext: g,
1813
- onResolveNewComponentSchema: u,
1814
- triggerBelongedComponentToMoveWhenMoved: s,
1815
- triggerBelongedComponentToDeleteWhenDeleted: f
1816
- };
1817
- }
1818
- const Et = /* @__PURE__ */ ce({
844
+ return a.value = {
845
+ canMove: c(),
846
+ canSelectParent: l(),
847
+ canDelete: v(),
848
+ canNested: !u(),
849
+ contents: e == null ? void 0 : e.schema.contents,
850
+ elementRef: t,
851
+ parent: (q = e == null ? void 0 : e.parent) == null ? void 0 : q.componentInstance,
852
+ schema: e == null ? void 0 : e.schema,
853
+ styles: n,
854
+ designerClass: i,
855
+ canAccepts: p,
856
+ getBelongedComponentInstance: o,
857
+ getDraggableDesignItemElement: s,
858
+ getDraggingDisplayText: f,
859
+ getPropConfig: V,
860
+ getDragScopeElement: d,
861
+ onAcceptMovedChildElement: y,
862
+ onChildElementMovedOut: _,
863
+ addNewChildComponentSchema: L,
864
+ triggerBelongedComponentToMoveWhenMoved: g(!1),
865
+ triggerBelongedComponentToDeleteWhenDeleted: g(!1),
866
+ onRemoveComponent: w
867
+ }, a;
868
+ }
869
+ const Ge = /* @__PURE__ */ Q({
1819
870
  name: "FNavDesign",
1820
- props: R,
871
+ props: B,
1821
872
  emits: ["nav"],
1822
- setup(n, t) {
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);
1827
- Te(() => {
1828
- s.value.componentInstance = y;
1829
- }), t.expose(y.value);
1830
- const a = _({
873
+ setup(t, e) {
874
+ const r = g(t.activeNavId), n = g(t.navData), i = g(t.horizontal);
875
+ g(t.navPicking);
876
+ const a = g(), c = ie("design-item-context"), l = Ye(a, c);
877
+ ae(() => {
878
+ a.value.componentInstance = l;
879
+ }), e.expose(l.value);
880
+ const v = T({
1831
881
  get() {
1832
- return r.value;
882
+ return n.value;
1833
883
  },
1834
- set(c) {
1835
- r.value = c, h();
884
+ set(f) {
885
+ n.value = f, s();
1836
886
  }
1837
- }), l = _({
887
+ }), u = T({
1838
888
  get() {
1839
- return e.value;
889
+ return r.value;
1840
890
  },
1841
- set(c) {
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);
891
+ set(f) {
892
+ if (r.value = f, r.value && v && v.value.length) {
893
+ const d = v.value.find((y) => y.id === r.value);
894
+ d && e.emit("nav", d);
1845
895
  }
1846
896
  }
1847
- }), i = _({
1848
- set(c) {
1849
- o.value = c;
897
+ }), o = T({
898
+ set(f) {
899
+ i.value = f;
1850
900
  },
1851
901
  get() {
1852
- return o.value;
902
+ return i.value;
1853
903
  }
1854
904
  });
1855
- function h() {
1856
- if (a.value && a.value.length && !e.value) {
1857
- const c = a.value.find((u) => !u.disable);
1858
- c && (e.value = c.id);
905
+ function s() {
906
+ if (v.value && v.value.length && !r.value) {
907
+ const f = v.value.find((d) => !d.disable);
908
+ f && (r.value = f.id);
1859
909
  }
1860
910
  }
1861
- function g(c) {
1862
- c.disable || c.id === e.value || (e.value = c.id, t.emit("nav", c));
911
+ function p(f) {
912
+ f.disable || f.id === r.value || (r.value = f.id, e.emit("nav", f));
1863
913
  }
1864
914
  return () => {
1865
- var c;
1866
- return N("div", {
1867
- ref: s,
915
+ var f;
916
+ return b("div", {
917
+ ref: a,
1868
918
  class: ["farris-nav", {
1869
- "farris-nav-vertical": !i.value
919
+ "farris-nav-vertical": !o.value
1870
920
  }]
1871
- }, [(c = a.value) == null ? void 0 : c.map((u) => N("div", {
921
+ }, [(f = v.value) == null ? void 0 : f.map((d) => b("div", {
1872
922
  class: ["farris-nav-item", {
1873
- active: u.id === l.value
923
+ active: d.id === u.value
1874
924
  }, {
1875
- disabled: u.disable
925
+ disabled: d.disable
1876
926
  }],
1877
- onClick: () => g(u)
1878
- }, [N("div", {
927
+ onClick: () => p(d)
928
+ }, [b("div", {
1879
929
  class: "farris-nav-item-link"
1880
- }, [N("span", {
930
+ }, [b("span", {
1881
931
  class: "farris-nav-item-link-text"
1882
- }, [u.text, u.num && N("div", {
932
+ }, [d.text, d.num && b("div", {
1883
933
  class: "farris-nav-item-tag"
1884
- }, [u.num <= n.maxNum && N("span", {
934
+ }, [d.num <= t.maxNum && b("span", {
1885
935
  class: "tag-text"
1886
- }, [u.num]), u.num > n.maxNum && N("span", {
936
+ }, [d.num]), d.num > t.maxNum && b("span", {
1887
937
  class: "tag-text"
1888
- }, [n.maxNum, le("+")])])])])]))]);
938
+ }, [t.maxNum, X("+")])])])])]))]);
1889
939
  };
1890
940
  }
1891
- }), kt = {
1892
- install(n) {
1893
- n.component(G.name, G);
941
+ }), Xe = {
942
+ install(t) {
943
+ t.component(j.name, j);
1894
944
  },
1895
- register(n, t, e, r) {
1896
- n.nav = G, t.nav = ie;
945
+ register(t, e, r, n) {
946
+ t.nav = j, e.nav = J;
1897
947
  },
1898
- registerDesigner(n, t, e) {
1899
- n.nav = Et, t.nav = ie;
948
+ registerDesigner(t, e, r) {
949
+ t.nav = Ge, e.nav = J;
1900
950
  }
1901
951
  };
1902
952
  export {
1903
- G as FNav,
1904
- kt as default,
1905
- R as navProps,
1906
- ie as propsResolver
953
+ j as FNav,
954
+ Xe as default,
955
+ B as navProps,
956
+ J as propsResolver
1907
957
  };