@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,102 +1,106 @@
1
- import { defineComponent as q, ref as m, computed as N, watch as W, createVNode as d, inject as J, onMounted as G } from "vue";
2
- import { isPlainObject as F, cloneDeep as H } from "lodash-es";
3
- const _ = {}, C = {};
1
+ import { defineComponent as V, ref as O, computed as E, watch as H, createVNode as b, inject as G, onMounted as J } from "vue";
2
+ import { isPlainObject as z, cloneDeep as Q } from "lodash-es";
3
+ const q = {}, _ = {};
4
4
  function B(t) {
5
- const { properties: e, title: o, ignore: l } = t, i = l && Array.isArray(l), y = Object.keys(e).reduce((f, O) => ((!i || !l.find((b) => b == O)) && (f[O] = e[O].type === "object" && e[O].properties ? B(e[O]) : H(e[O].default)), f), {});
6
- return (!i || !l.find((f) => f == "id")) && (y.id = `${o}-${Date.now()}`), y;
5
+ const { properties: e, title: a, ignore: c } = t, l = c && Array.isArray(c), y = Object.keys(e).reduce((f, j) => ((!l || !c.find((d) => d === j)) && (f[j] = e[j].type === "object" && e[j].properties ? B(e[j]) : Q(e[j].default)), f), {});
6
+ if (a && (!l || !c.find((f) => f === "id"))) {
7
+ const f = a.toLowerCase().replace(/-/g, "_");
8
+ y.id = `${f}_${Math.random().toString().slice(2, 6)}`;
9
+ }
10
+ return y;
7
11
  }
8
- function L(t, e = {}, o) {
9
- const l = _[t];
10
- if (l) {
11
- let i = B(l);
12
- const y = C[t];
13
- return i = y ? y({ getSchemaByType: L }, i, e, o) : i, i;
12
+ function W(t, e = {}, a) {
13
+ const c = q[t];
14
+ if (c) {
15
+ let l = B(c);
16
+ const y = _[t];
17
+ return l = y ? y({ getSchemaByType: W }, l, e, a) : l, l;
14
18
  }
15
19
  return null;
16
20
  }
17
- function Q(t, e) {
18
- const o = B(e);
19
- return Object.keys(t).reduce((l, i) => (l[i] && F(l[i]) && F(t[i]) ? Object.assign(l[i], t[i]) : l[i] = t[i], l), o), o;
20
- }
21
21
  function U(t, e) {
22
- return Object.keys(t).filter((l) => t[l] != null).reduce((l, i) => {
23
- if (e.has(i)) {
24
- const y = e.get(i);
22
+ const a = B(e);
23
+ return Object.keys(a).reduce((c, l) => (c[l] && z(c[l]) && z(t[l] || !t[l]) ? Object.assign(c[l], t[l] || {}) : c[l] = t[l], c), a), a;
24
+ }
25
+ function X(t, e) {
26
+ return Object.keys(t).filter((c) => t[c] != null).reduce((c, l) => {
27
+ if (e.has(l)) {
28
+ const y = e.get(l);
25
29
  if (typeof y == "string")
26
- l[y] = t[i];
30
+ c[y] = t[l];
27
31
  else {
28
- const f = y(i, t[i], t);
29
- Object.assign(l, f);
32
+ const f = y(l, t[l], t);
33
+ Object.assign(c, f);
30
34
  }
31
35
  } else
32
- l[i] = t[i];
33
- return l;
36
+ c[l] = t[l];
37
+ return c;
34
38
  }, {});
35
39
  }
36
- function X(t, e, o = /* @__PURE__ */ new Map()) {
37
- const l = Q(t, e);
38
- return U(l, o);
40
+ function Y(t, e, a = /* @__PURE__ */ new Map()) {
41
+ const c = U(t, e);
42
+ return X(c, a);
39
43
  }
40
- function Y(t = {}) {
41
- function e(c, v, u, h) {
42
- if (typeof u == "number")
43
- return h[c].length === u;
44
- if (typeof u == "object") {
45
- const j = Object.keys(u)[0], k = u[j];
46
- if (j === "not")
47
- return Number(h[c].length) !== Number(k);
48
- if (j === "moreThan")
49
- return Number(h[c].length) >= Number(k);
50
- if (j === "lessThan")
51
- return Number(h[c].length) <= Number(k);
44
+ function Z(t = {}) {
45
+ function e(n, u, p, v) {
46
+ if (typeof p == "number")
47
+ return v[n].length === p;
48
+ if (typeof p == "object") {
49
+ const k = Object.keys(p)[0], S = p[k];
50
+ if (k === "not")
51
+ return Number(v[n].length) !== Number(S);
52
+ if (k === "moreThan")
53
+ return Number(v[n].length) >= Number(S);
54
+ if (k === "lessThan")
55
+ return Number(v[n].length) <= Number(S);
52
56
  }
53
57
  return !1;
54
58
  }
55
- function o(c, v, u, h) {
56
- return h[c] && h[c].propertyValue && String(h[c].propertyValue.value) === String(u);
59
+ function a(n, u, p, v) {
60
+ return v[n] && v[n].propertyValue && String(v[n].propertyValue.value) === String(p);
57
61
  }
58
- const l = /* @__PURE__ */ new Map([
62
+ const c = /* @__PURE__ */ new Map([
59
63
  ["length", e],
60
- ["getProperty", o]
64
+ ["getProperty", a]
61
65
  ]);
62
- Object.keys(t).reduce((c, v) => (c.set(v, t[v]), c), l);
63
- function i(c, v) {
64
- const u = c;
65
- return typeof v == "number" ? [{ target: u, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!v }] : typeof v == "object" ? Object.keys(v).map((h) => {
66
- if (h === "length")
67
- return { target: u, operator: "length", param: null, value: v[h] };
68
- const j = h, k = v[h];
69
- return { target: u, operator: "getProperty", param: j, value: k };
66
+ Object.keys(t).reduce((n, u) => (n.set(u, t[u]), n), c);
67
+ function l(n, u) {
68
+ const p = n;
69
+ return typeof u == "number" ? [{ target: p, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: p, operator: "getProperty", param: n, value: !!u }] : typeof u == "object" ? Object.keys(u).map((v) => {
70
+ if (v === "length")
71
+ return { target: p, operator: "length", param: null, value: u[v] };
72
+ const k = v, S = u[v];
73
+ return { target: p, operator: "getProperty", param: k, value: S };
70
74
  }) : [];
71
75
  }
72
- function y(c) {
73
- return Object.keys(c).reduce((u, h) => {
74
- const j = i(h, c[h]);
75
- return u.push(...j), u;
76
+ function y(n) {
77
+ return Object.keys(n).reduce((p, v) => {
78
+ const k = l(v, n[v]);
79
+ return p.push(...k), p;
76
80
  }, []);
77
81
  }
78
- function f(c, v) {
79
- if (l.has(c.operator)) {
80
- const u = l.get(c.operator);
81
- return u && u(c.target, c.param, c.value, v) || !1;
82
+ function f(n, u) {
83
+ if (c.has(n.operator)) {
84
+ const p = c.get(n.operator);
85
+ return p && p(n.target, n.param, n.value, u) || !1;
82
86
  }
83
87
  return !1;
84
88
  }
85
- function O(c, v) {
86
- return y(c).reduce((j, k) => j && f(k, v), !0);
89
+ function j(n, u) {
90
+ return y(n).reduce((k, S) => k && f(S, u), !0);
87
91
  }
88
- function b(c, v) {
89
- const u = Object.keys(c), h = u.includes("allOf"), j = u.includes("anyOf"), k = h || j, S = (k ? c[k ? h ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => O(T, v));
90
- return h ? !S.includes(!1) : S.includes(!0);
92
+ function d(n, u) {
93
+ const p = Object.keys(n), v = p.includes("allOf"), k = p.includes("anyOf"), S = v || k, M = (S ? n[S ? v ? "allOf" : "anyOf" : "allOf"] : [n]).map((T) => j(T, u));
94
+ return v ? !M.includes(!1) : M.includes(!0);
91
95
  }
92
- return { parseValueSchema: b };
96
+ return { parseValueSchema: d };
93
97
  }
94
- const Z = {}, K = {};
95
- Y();
96
- function x(t, e, o = /* @__PURE__ */ new Map(), l = (f, O, b) => O, i = {}, y = (f) => f) {
97
- return _[e.title] = e, C[e.title] = l, Z[e.title] = i, K[e.title] = y, (f = {}) => {
98
- const O = X(f, e, o), b = Object.keys(t).reduce((c, v) => (c[v] = t[v].default, c), {});
99
- return Object.assign(b, O);
98
+ const C = {}, K = {};
99
+ Z();
100
+ function x(t, e, a = /* @__PURE__ */ new Map(), c = (f, j, d, n) => j, l = {}, y = (f) => f) {
101
+ return q[e.title] = e, _[e.title] = c, C[e.title] = l, K[e.title] = y, (f = {}) => {
102
+ const j = Y(f, e, a), d = Object.keys(t).reduce((n, u) => (n[u] = t[u].default, n), {});
103
+ return Object.assign(d, j);
100
104
  };
101
105
  }
102
106
  function I(t, e) {
@@ -105,10 +109,10 @@ function I(t, e) {
105
109
  const ee = /* @__PURE__ */ new Map([
106
110
  ["appearance", I]
107
111
  ]);
108
- function te(t, e, o) {
112
+ function te(t, e, a) {
109
113
  return e;
110
114
  }
111
- const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-design.gitee.io/step.schema.json", ne = "step", ce = "A Farris Component", le = "object", ae = {
115
+ const se = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-design.gitee.io/step.schema.json", re = "step", ce = "A Farris Component", le = "object", ae = {
112
116
  id: {
113
117
  description: "The unique identifier for step",
114
118
  type: "string"
@@ -170,17 +174,17 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
170
174
  type: "boolean",
171
175
  default: !0
172
176
  }
173
- }, ie = [
177
+ }, oe = [
174
178
  "id",
175
179
  "type"
176
- ], oe = {
180
+ ], ie = {
177
181
  $schema: se,
178
- $id: re,
179
- title: ne,
182
+ $id: ne,
183
+ title: re,
180
184
  description: ce,
181
185
  type: le,
182
186
  properties: ae,
183
- required: ie
187
+ required: oe
184
188
  }, ue = "step", pe = "A Farris Component", fe = "object", ve = {
185
189
  basic: {
186
190
  description: "Basic Infomation",
@@ -208,7 +212,7 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
208
212
  description: pe,
209
213
  type: fe,
210
214
  categories: ve
211
- }, z = {
215
+ }, A = {
212
216
  /** 步骤条方向 */
213
217
  direction: { type: String, default: "horizontal" },
214
218
  /** 是否平铺 */
@@ -238,310 +242,309 @@ const se = "https://json-schema.org/draft/2020-12/schema", re = "https://farris-
238
242
  /** 步骤条点击后事件 */
239
243
  onClick: { type: Function, default: () => {
240
244
  } }
241
- }, V = x(z, oe, ee, te, he), A = /* @__PURE__ */ q({
245
+ }, F = x(A, ie, ee, te, he), L = /* @__PURE__ */ V({
242
246
  name: "FStep",
243
- props: z,
247
+ props: A,
244
248
  emits: ["click"],
245
249
  setup(t, e) {
246
- const o = m(t.direction), l = m(t.fill), i = m(t.height), y = m(t.steps), f = m(t.clickable), O = m(0), b = m(t.activeIndex), c = N(() => ({
247
- "f-progress-step-list": o.value === "horizontal",
248
- "f-progress-step-list-block": o.value === "vertical",
249
- "f-progress-step-horizontal-fill": o.value === "horizontal" && l.value,
250
- "f-progress-step-vertical-fill": o.value === "vertical" && l.value
251
- })), v = N(() => ({
252
- height: o.value === "vertical" ? `${i.value}px` : ""
250
+ const a = O(t.direction), c = O(t.fill), l = O(t.height), y = O(t.steps), f = O(t.clickable), j = O(0), d = O(t.activeIndex), n = E(() => ({
251
+ "f-progress-step-list": a.value === "horizontal",
252
+ "f-progress-step-list-block": a.value === "vertical",
253
+ "f-progress-step-horizontal-fill": a.value === "horizontal" && c.value,
254
+ "f-progress-step-vertical-fill": a.value === "vertical" && c.value
255
+ })), u = E(() => ({
256
+ height: a.value === "vertical" ? `${l.value}px` : ""
253
257
  }));
254
- function u(s, r) {
255
- const p = {
258
+ function p(r, s) {
259
+ const g = {
256
260
  step: !0,
257
- active: r === b.value,
261
+ active: s === d.value,
258
262
  clickable: f.value,
259
263
  // 'click-disable': step.disable,
260
- current: r === b.value
264
+ current: s === d.value
261
265
  };
262
- return r < b.value && (p.finish = !0), p;
266
+ return s < d.value && (g.finish = !0), g;
263
267
  }
264
- function h(s, r) {
265
- const p = {
266
- step: s,
267
- stepIndex: r
268
+ function v(r, s) {
269
+ const g = {
270
+ step: r,
271
+ stepIndex: s
268
272
  };
269
- e.emit("click", p);
273
+ e.emit("click", g);
270
274
  }
271
- function j(s, r) {
272
- const p = {
275
+ function k(r, s) {
276
+ const g = {
273
277
  "f-progressstep-row": !0,
274
- "step-active": r === b.value,
275
- "step-current": r === b.value
278
+ "step-active": s === d.value,
279
+ "step-current": s === d.value
276
280
  };
277
- return r < b.value && (p["step-finish"] = !0), p;
281
+ return s < d.value && (g["step-finish"] = !0), g;
278
282
  }
279
- function k(s, r) {
283
+ function S(r, s) {
280
284
  return {
281
285
  "step-icon": !0,
282
- "step-success": r,
283
- "f-icon": r,
284
- "f-icon-check": r
286
+ "step-success": s,
287
+ "f-icon": s,
288
+ "f-icon-check": s
285
289
  };
286
290
  }
287
- function P(s, r) {
288
- const p = [];
289
- return r >= b.value || r === O.value ? p.push(d("span", {
291
+ function P(r, s) {
292
+ const g = [];
293
+ return s >= d.value || s === j.value ? g.push(b("span", {
290
294
  class: "step-icon"
291
- }, [r + 1])) : p.push(d("span", {
292
- class: k(s, !0)
293
- }, null)), p;
295
+ }, [s + 1])) : g.push(b("span", {
296
+ class: S(r, !0)
297
+ }, null)), g;
294
298
  }
295
- function w(s, r) {
299
+ function D(r, s) {
296
300
  return {
297
301
  "step-name": !0,
298
- "step-name-success": r < b.value
302
+ "step-name-success": s < d.value
299
303
  };
300
304
  }
301
- function S(s, r) {
302
- return d("div", {
305
+ function M(r, s) {
306
+ return b("div", {
303
307
  class: "f-progress-step-title"
304
- }, [d("p", {
305
- class: w(s, r)
306
- }, [s.title])]);
308
+ }, [b("p", {
309
+ class: D(r, s)
310
+ }, [r.title])]);
307
311
  }
308
- function E(s, r) {
312
+ function R(r, s) {
309
313
  return {
310
314
  "f-progress-step-line": !0,
311
- "f-progress-step-line-success": r === b.value
315
+ "f-progress-step-line-success": s === d.value
312
316
  };
313
317
  }
314
- function T(s, r) {
315
- return r !== y.value.length - 1;
318
+ function T(r, s) {
319
+ return s !== y.value.length - 1;
316
320
  }
317
- const $ = N(() => ({
321
+ const w = E(() => ({
318
322
  triangle: !0,
319
- "": o.value === "vertical"
323
+ "": a.value === "vertical"
320
324
  }));
321
- function M() {
322
- return y.value.map((s, r) => d("li", {
323
- class: u(s, r),
324
- onClick: (p) => h(s, r)
325
- }, [d("div", {
326
- class: j(s, r)
327
- }, [d("div", {
325
+ function h() {
326
+ return y.value.map((r, s) => b("li", {
327
+ class: p(r, s),
328
+ onClick: (g) => v(r, s)
329
+ }, [b("div", {
330
+ class: k(r, s)
331
+ }, [b("div", {
328
332
  class: "f-progress-step-content"
329
- }, [P(s, r), S(s, r)]), T(s, r) && d("div", {
330
- class: E(s, r)
331
- }, [d("span", {
332
- class: $.value
333
+ }, [P(r, s), M(r, s)]), T(r, s) && b("div", {
334
+ class: R(r, s)
335
+ }, [b("span", {
336
+ class: w.value
333
337
  }, null)])])]));
334
338
  }
335
- return W(() => t.activeIndex, () => {
336
- t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, M());
337
- }), () => d("div", {
339
+ return H(() => t.activeIndex, () => {
340
+ t.activeIndex > -1 && t.activeIndex <= y.value.length && (d.value = t.activeIndex, h());
341
+ }), () => b("div", {
338
342
  class: "f-progress-step"
339
- }, [d("ul", {
340
- class: c.value,
341
- style: v.value
342
- }, [M()])]);
343
+ }, [b("ul", {
344
+ class: n.value,
345
+ style: u.value
346
+ }, [h()])]);
343
347
  }
344
348
  });
345
- function ge(t, e, o) {
346
- var M;
347
- function l() {
348
- }
349
- const i = "", y = "", f = m();
350
- function O() {
349
+ function ge(t, e, a) {
350
+ var w;
351
+ const c = "", l = "", y = O();
352
+ function f() {
351
353
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
352
354
  }
353
- function b() {
355
+ function j() {
354
356
  return !1;
355
357
  }
356
- function c() {
358
+ function d() {
357
359
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
358
360
  }
359
- function v() {
361
+ function n() {
360
362
  return (e == null ? void 0 : e.schema.componentType) === "frame";
361
363
  }
362
- function u(s) {
363
- if (!s || !s.value)
364
+ function u(h) {
365
+ if (!h || !h.value)
364
366
  return null;
365
- if (s.value.schema && s.value.schema.type === "component")
366
- return s.value;
367
- const r = m(s == null ? void 0 : s.value.parent), p = u(r);
368
- return p || null;
367
+ if (h.value.schema && h.value.schema.type === "component")
368
+ return h.value;
369
+ const r = O(h == null ? void 0 : h.value.parent), s = u(r);
370
+ return s || null;
369
371
  }
370
- function h(s = e) {
371
- const { componentInstance: r, designerItemElementRef: p } = s;
372
- return !r || !r.value ? null : r.value.canMove ? p : h(s.parent);
372
+ function p(h = e) {
373
+ const { componentInstance: r, designerItemElementRef: s } = h;
374
+ return !r || !r.value ? null : r.value.canMove ? s : p(h.parent);
373
375
  }
374
- function j(s) {
375
- return !!o;
376
+ function v(h) {
377
+ return !!a;
376
378
  }
377
379
  function k() {
378
380
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
379
381
  }
380
- function P() {
382
+ function S() {
381
383
  }
382
- function w(s, r) {
384
+ function P(h, r) {
383
385
  }
384
- function S(s, r) {
385
- const { componentType: p } = s;
386
- let n = L(p, s, r);
387
- const a = p.toLowerCase().replace("-", "_");
388
- return n && !n.id && n.type === p && (n.id = `${a}_${Math.random().toString().slice(2, 6)}`), n;
386
+ function D(h, r) {
387
+ const { componentType: s } = h;
388
+ let g = W(s, h, r);
389
+ const o = s.toLowerCase().replace(/-/g, "_");
390
+ return g && !g.id && g.type === s && (g.id = `${o}_${Math.random().toString().slice(2, 6)}`), g;
389
391
  }
390
- function E(s, r) {
391
- const p = String(s.getAttribute("data-controltype")), n = s.getAttribute("data-feature"), a = n ? JSON.parse(n) : {};
392
- a.parentComponentInstance = f.value;
393
- let g = L(p, a);
394
- const D = p.toLowerCase().replace("-", "_");
395
- return g && !g.id && g.type === p && (g.id = `${D}_${Math.random().toString().slice(2, 6)}`), g;
392
+ function M(h) {
396
393
  }
397
- function T(s) {
394
+ function R(...h) {
398
395
  }
399
- function $(...s) {
396
+ function T() {
397
+ e != null && e.schema.contents && e.schema.contents.map((h) => {
398
+ var g;
399
+ let r = h.id;
400
+ h.type === "component-ref" && (r = h.component);
401
+ const s = t.value.querySelector(`#${r}-design-item`);
402
+ (g = s == null ? void 0 : s.componentInstance) != null && g.value.onRemoveComponent && s.componentInstance.value.onRemoveComponent();
403
+ });
400
404
  }
401
- return f.value = {
402
- canMove: O(),
403
- canSelectParent: b(),
404
- canDelete: c(),
405
- canNested: !v(),
405
+ return y.value = {
406
+ canMove: f(),
407
+ canSelectParent: j(),
408
+ canDelete: d(),
409
+ canNested: !n(),
406
410
  contents: e == null ? void 0 : e.schema.contents,
407
411
  elementRef: t,
408
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
412
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
409
413
  schema: e == null ? void 0 : e.schema,
410
- styles: i,
411
- designerClass: y,
412
- canAccepts: j,
414
+ styles: c,
415
+ designerClass: l,
416
+ canAccepts: v,
413
417
  getBelongedComponentInstance: u,
414
- getDraggableDesignItemElement: h,
418
+ getDraggableDesignItemElement: p,
415
419
  getDraggingDisplayText: k,
416
- getPropConfig: $,
417
- getDragScopeElement: P,
418
- onAcceptMovedChildElement: w,
419
- onAcceptNewChildElement: E,
420
- onChildElementMovedOut: T,
421
- addNewChildComponentSchema: S,
422
- updateDragAndDropRules: l,
423
- triggerBelongedComponentToMoveWhenMoved: m(!1),
424
- triggerBelongedComponentToDeleteWhenDeleted: m(!1)
425
- }, f;
420
+ getPropConfig: R,
421
+ getDragScopeElement: S,
422
+ onAcceptMovedChildElement: P,
423
+ onChildElementMovedOut: M,
424
+ addNewChildComponentSchema: D,
425
+ triggerBelongedComponentToMoveWhenMoved: O(!1),
426
+ triggerBelongedComponentToDeleteWhenDeleted: O(!1),
427
+ onRemoveComponent: T
428
+ }, y;
426
429
  }
427
- const de = /* @__PURE__ */ q({
430
+ const ye = /* @__PURE__ */ V({
428
431
  name: "FStepDesign",
429
- props: z,
432
+ props: A,
430
433
  emits: [],
431
434
  setup(t, e) {
432
- const o = m(t.direction), l = m(t.fill), i = m(t.height), y = m(t.steps), f = m(0), O = m(t.clickable), b = m(0), c = m(), v = J("design-item-context"), u = ge(c, v);
433
- G(() => {
434
- c.value.componentInstance = u;
435
- }), e.expose(u.value);
436
- const h = N(() => ({
437
- "f-progress-step-list": o.value === "horizontal",
438
- "f-progress-step-list-block": o.value === "vertical",
439
- "f-progress-step-horizontal-fill": o.value === "horizontal" && l.value,
440
- "f-progress-step-vertical-fill": o.value === "vertical" && l.value
441
- })), j = N(() => ({
442
- height: o.value === "vertical" ? `${i.value}px` : ""
435
+ const a = O(t.direction), c = O(t.fill), l = O(t.height), y = O(t.steps), f = O(0), j = O(t.clickable), d = O(0), n = O(), u = G("design-item-context"), p = ge(n, u);
436
+ J(() => {
437
+ n.value.componentInstance = p;
438
+ }), e.expose(p.value);
439
+ const v = E(() => ({
440
+ "f-progress-step-list": a.value === "horizontal",
441
+ "f-progress-step-list-block": a.value === "vertical",
442
+ "f-progress-step-horizontal-fill": a.value === "horizontal" && c.value,
443
+ "f-progress-step-vertical-fill": a.value === "vertical" && c.value
444
+ })), k = E(() => ({
445
+ height: a.value === "vertical" ? `${l.value}px` : ""
443
446
  }));
444
- function k(n, a) {
445
- const g = {
447
+ function S(o, i) {
448
+ const m = {
446
449
  step: !0,
447
- active: a === f.value,
448
- clickable: O.value,
449
- "click-disable": n.disable,
450
- current: a === f.value
450
+ active: i === f.value,
451
+ clickable: j.value,
452
+ "click-disable": o.disable,
453
+ current: i === f.value
451
454
  };
452
- return a < f.value && (g.finish = !0), n.status && (g[n.status] = !0), n.hasOwnProperty("class") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
455
+ return i < f.value && (m.finish = !0), o.status && (m[o.status] = !0), o.hasOwnProperty("class") && o.class.split(" ").reduce(($, N) => ($[N] = !0, $), m), m;
453
456
  }
454
- function P(n, a) {
457
+ function P(o, i) {
455
458
  }
456
- function w(n, a) {
457
- const g = {
459
+ function D(o, i) {
460
+ const m = {
458
461
  "f-progressstep-row": !0,
459
- "step-active": a === f.value,
460
- "step-current": a === f.value
462
+ "step-active": i === f.value,
463
+ "step-current": i === f.value
461
464
  };
462
- return a < f.value && (g["step-finish"] = !0), n.status && (g["step-" + n.status] = !0), g;
465
+ return i < f.value && (m["step-finish"] = !0), o.status && (m["step-" + o.status] = !0), m;
463
466
  }
464
- function S(n, a) {
465
- const g = {
467
+ function M(o, i) {
468
+ const m = {
466
469
  "step-icon": !0,
467
- "step-success": a,
468
- "k-icon": a,
469
- "k-i-check": a
470
+ "step-success": i,
471
+ "k-icon": i,
472
+ "k-i-check": i
470
473
  };
471
- return n.hasOwnProperty("icon") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
474
+ return o.hasOwnProperty("icon") && o.class.split(" ").reduce(($, N) => ($[N] = !0, $), m), m;
472
475
  }
473
- function E(n, a) {
474
- const g = [];
475
- return n.icon ? g.push(d("span", {
476
- class: S(n, !1)
477
- }, null)) : a >= f.value || a === b.value ? g.push(d("span", {
476
+ function R(o, i) {
477
+ const m = [];
478
+ return o.icon ? m.push(b("span", {
479
+ class: M(o, !1)
480
+ }, null)) : i >= f.value || i === d.value ? m.push(b("span", {
478
481
  class: "step-icon"
479
- }, [a + 1])) : g.push(d("span", {
480
- class: S(n, !0)
481
- }, null)), g;
482
+ }, [i + 1])) : m.push(b("span", {
483
+ class: M(o, !0)
484
+ }, null)), m;
482
485
  }
483
- function T(n, a) {
486
+ function T(o, i) {
484
487
  return {
485
488
  "step-name": !0,
486
- "step-name-success": a < f.value
489
+ "step-name-success": i < f.value
487
490
  };
488
491
  }
489
- function $(n, a) {
490
- return d("div", {
492
+ function w(o, i) {
493
+ return b("div", {
491
494
  class: "f-progress-step-title"
492
- }, [d("p", {
493
- class: T(n, a)
494
- }, [n.title])]);
495
+ }, [b("p", {
496
+ class: T(o, i)
497
+ }, [o.title])]);
495
498
  }
496
- function M(n, a) {
499
+ function h(o, i) {
497
500
  return {
498
501
  "f-progress-step-line": !0,
499
- "f-progress-step-line-success": a === f.value
502
+ "f-progress-step-line-success": i === f.value
500
503
  };
501
504
  }
502
- function s(n, a) {
503
- return a !== y.value.length - 1;
505
+ function r(o, i) {
506
+ return i !== y.value.length - 1;
504
507
  }
505
- const r = N(() => ({
508
+ const s = E(() => ({
506
509
  triangle: !0,
507
- "": o.value === "vertical"
510
+ "": a.value === "vertical"
508
511
  }));
509
- function p() {
510
- return y.value.map((n, a) => d("li", {
511
- class: k(n, a),
512
- onClick: (g) => void 0
513
- }, [d("div", {
514
- class: w(n, a)
515
- }, [d("div", {
512
+ function g() {
513
+ return y.value.map((o, i) => b("li", {
514
+ class: S(o, i),
515
+ onClick: (m) => void 0
516
+ }, [b("div", {
517
+ class: D(o, i)
518
+ }, [b("div", {
516
519
  class: "f-progress-step-content"
517
- }, [E(n, a), $(n, a)]), s(n, a) && d("div", {
518
- class: M(n, a)
519
- }, [d("span", {
520
- class: r.value
520
+ }, [R(o, i), w(o, i)]), r(o, i) && b("div", {
521
+ class: h(o, i)
522
+ }, [b("span", {
523
+ class: s.value
521
524
  }, null)])])]));
522
525
  }
523
- return () => d("div", {
524
- ref: c,
526
+ return () => b("div", {
527
+ ref: n,
525
528
  class: "f-progress-step"
526
- }, [d("ul", {
527
- class: h.value,
528
- style: j.value
529
- }, [p()])]);
529
+ }, [b("ul", {
530
+ class: v.value,
531
+ style: k.value
532
+ }, [g()])]);
530
533
  }
531
534
  }), me = {
532
535
  install(t) {
533
- t.component(A.name, A);
536
+ t.component(L.name, L);
534
537
  },
535
- register(t, e, o, l) {
536
- t.step = A, e.step = V;
538
+ register(t, e, a, c) {
539
+ t.step = L, e.step = F;
537
540
  },
538
- registerDesigner(t, e, o) {
539
- t.step = de, e.step = V;
541
+ registerDesigner(t, e, a) {
542
+ t.step = ye, e.step = F;
540
543
  }
541
544
  };
542
545
  export {
543
- A as Step,
546
+ L as Step,
544
547
  me as default,
545
- V as propsResolver,
546
- z as stepProps
548
+ F as propsResolver,
549
+ A as stepProps
547
550
  };