@farris/ui-vue 1.2.9 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/components/accordion/index.esm.js +64 -64
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +521 -336
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +99 -97
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +496 -504
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +251 -259
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +696 -519
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +368 -376
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1141 -340
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +116 -116
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +986 -798
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +463 -998
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2233 -1057
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +335 -1002
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6193 -4702
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4562 -3294
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3420 -2623
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-canvas/index.css +1 -1
  40. package/components/designer-canvas/index.esm.js +914 -883
  41. package/components/designer-canvas/index.umd.cjs +1 -1
  42. package/components/designer-outline/index.esm.js +14 -13
  43. package/components/designer-outline/index.umd.cjs +1 -1
  44. package/components/dropdown/index.esm.js +204 -212
  45. package/components/dropdown/index.umd.cjs +2 -2
  46. package/components/dynamic-form/index.css +1 -0
  47. package/components/dynamic-form/index.esm.js +2795 -1835
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +180 -130
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +303 -290
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/events-editor/index.esm.js +328 -336
  54. package/components/events-editor/index.umd.cjs +1 -1
  55. package/components/expression-editor/index.esm.js +65 -65
  56. package/components/expression-editor/index.umd.cjs +1 -1
  57. package/components/external-container/index.css +1 -1
  58. package/components/external-container/index.esm.js +3349 -3626
  59. package/components/external-container/index.umd.cjs +1 -1
  60. package/components/field-selector/index.css +1 -1
  61. package/components/field-selector/index.esm.js +5344 -8588
  62. package/components/field-selector/index.umd.cjs +1 -1
  63. package/components/filter-bar/index.css +1 -1
  64. package/components/filter-bar/index.esm.js +2179 -2227
  65. package/components/filter-bar/index.umd.cjs +1 -1
  66. package/components/flow-canvas/index.css +1 -1
  67. package/components/flow-canvas/index.esm.js +684 -675
  68. package/components/flow-canvas/index.umd.cjs +1 -1
  69. package/components/image-cropper/index.esm.js +482 -490
  70. package/components/image-cropper/index.umd.cjs +1 -1
  71. package/components/input-group/index.esm.js +746 -569
  72. package/components/input-group/index.umd.cjs +1 -1
  73. package/components/layout/index.esm.js +409 -385
  74. package/components/layout/index.umd.cjs +1 -1
  75. package/components/list-nav/index.esm.js +348 -1019
  76. package/components/list-nav/index.umd.cjs +1 -1
  77. package/components/list-view/index.css +1 -1
  78. package/components/list-view/index.esm.js +3606 -2388
  79. package/components/list-view/index.umd.cjs +1 -1
  80. package/components/lookup/index.css +1 -1
  81. package/components/lookup/index.esm.js +10871 -8970
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.css +1 -1
  84. package/components/mapping-editor/index.esm.js +6019 -5631
  85. package/components/mapping-editor/index.umd.cjs +1 -1
  86. package/components/message-box/index.css +1 -1
  87. package/components/message-box/index.esm.js +511 -471
  88. package/components/message-box/index.umd.cjs +1 -1
  89. package/components/modal/index.css +1 -1
  90. package/components/modal/index.esm.js +438 -398
  91. package/components/modal/index.umd.cjs +1 -1
  92. package/components/nav/index.esm.js +912 -1281
  93. package/components/nav/index.umd.cjs +3 -3
  94. package/components/notify/index.esm.js +59 -53
  95. package/components/notify/index.umd.cjs +1 -1
  96. package/components/number-range/index.esm.js +660 -484
  97. package/components/number-range/index.umd.cjs +1 -1
  98. package/components/number-spinner/index.esm.js +682 -506
  99. package/components/number-spinner/index.umd.cjs +1 -1
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1848 -1658
  102. package/components/order/index.umd.cjs +1 -1
  103. package/components/page-footer/index.esm.js +100 -100
  104. package/components/page-footer/index.umd.cjs +1 -1
  105. package/components/page-header/index.esm.js +1120 -1923
  106. package/components/page-header/index.umd.cjs +1 -1
  107. package/components/pagination/index.esm.js +875 -1214
  108. package/components/pagination/index.umd.cjs +1 -1
  109. package/components/popover/index.esm.js +71 -70
  110. package/components/popover/index.umd.cjs +1 -1
  111. package/components/progress/index.esm.js +229 -237
  112. package/components/progress/index.umd.cjs +3 -3
  113. package/components/property-editor/index.css +1 -1
  114. package/components/property-editor/index.esm.js +2314 -1521
  115. package/components/property-editor/index.umd.cjs +3 -3
  116. package/components/property-panel/index.esm.js +867 -868
  117. package/components/property-panel/index.umd.cjs +1 -1
  118. package/components/query-solution/index.css +1 -1
  119. package/components/query-solution/index.esm.js +4332 -3623
  120. package/components/query-solution/index.umd.cjs +1 -1
  121. package/components/radio-button/index.esm.js +72 -72
  122. package/components/radio-button/index.umd.cjs +1 -1
  123. package/components/radio-group/index.esm.js +613 -437
  124. package/components/radio-group/index.umd.cjs +1 -1
  125. package/components/rate/index.esm.js +255 -263
  126. package/components/rate/index.umd.cjs +1 -1
  127. package/components/response-layout/index.esm.js +144 -152
  128. package/components/response-layout/index.umd.cjs +1 -1
  129. package/components/response-layout-editor/index.css +1 -1
  130. package/components/response-layout-editor/index.esm.js +1101 -1038
  131. package/components/response-layout-editor/index.umd.cjs +1 -1
  132. package/components/response-toolbar/index.esm.js +935 -1750
  133. package/components/response-toolbar/index.umd.cjs +1 -1
  134. package/components/schema-selector/index.css +1 -1
  135. package/components/schema-selector/index.esm.js +5264 -5677
  136. package/components/schema-selector/index.umd.cjs +2 -2
  137. package/components/search-box/index.esm.js +151 -154
  138. package/components/search-box/index.umd.cjs +1 -1
  139. package/components/section/index.esm.js +438 -1125
  140. package/components/section/index.umd.cjs +1 -1
  141. package/components/smoke-detector/index.esm.js +93 -101
  142. package/components/smoke-detector/index.umd.cjs +1 -1
  143. package/components/splitter/index.esm.js +563 -1202
  144. package/components/splitter/index.umd.cjs +1 -1
  145. package/components/splitter/style.js +2 -0
  146. package/components/step/index.esm.js +248 -256
  147. package/components/step/index.umd.cjs +1 -1
  148. package/components/switch/index.esm.js +549 -373
  149. package/components/switch/index.umd.cjs +1 -1
  150. package/components/tabs/index.css +1 -1
  151. package/components/tabs/index.esm.js +2436 -3110
  152. package/components/tabs/index.umd.cjs +1 -1
  153. package/components/tags/index.esm.js +328 -336
  154. package/components/tags/index.umd.cjs +1 -1
  155. package/components/text/index.esm.js +339 -347
  156. package/components/text/index.umd.cjs +1 -1
  157. package/components/textarea/index.esm.js +554 -378
  158. package/components/textarea/index.umd.cjs +1 -1
  159. package/components/time-picker/index.css +1 -1
  160. package/components/time-picker/index.esm.js +1322 -1144
  161. package/components/time-picker/index.umd.cjs +1 -1
  162. package/components/transfer/index.css +1 -1
  163. package/components/transfer/index.esm.js +537 -543
  164. package/components/transfer/index.umd.cjs +1 -1
  165. package/components/tree-grid/index.css +1 -1
  166. package/components/tree-grid/index.esm.js +5113 -9426
  167. package/components/tree-grid/index.umd.cjs +1 -1
  168. package/components/tree-view/index.css +1 -0
  169. package/components/tree-view/index.esm.js +3900 -2677
  170. package/components/tree-view/index.umd.cjs +1 -1
  171. package/components/uploader/index.esm.js +568 -570
  172. package/components/uploader/index.umd.cjs +2 -2
  173. package/components/verify-detail/index.esm.js +266 -274
  174. package/components/verify-detail/index.umd.cjs +1 -1
  175. package/components/video/index.esm.js +553 -1052
  176. package/components/video/index.umd.cjs +1 -1
  177. package/components/weather/index.esm.js +558 -566
  178. package/components/weather/index.umd.cjs +5 -5
  179. package/farris.all.esm.js +22009 -22688
  180. package/farris.all.umd.cjs +9 -9
  181. package/index.css +1 -1
  182. package/package.json +1 -1
  183. package/types/capsule/src/capsule.props.d.ts +2 -2
  184. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  185. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  186. package/types/common/directive/area-response.d.ts +10 -0
  187. package/types/common/index.d.ts +9 -0
  188. package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
  189. package/types/common/types.d.ts +1 -1
  190. package/types/common/utils/encrypt.d.ts +2 -0
  191. package/types/common/utils/resolve-field.d.ts +2 -0
  192. package/types/common/utils/use-class.d.ts +7 -0
  193. package/types/component/src/component.props.d.ts +7 -0
  194. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  195. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  196. package/types/components.d.ts +1 -0
  197. package/types/condition/src/types.d.ts +2 -1
  198. package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
  199. package/types/data-grid/index.d.ts +11 -5
  200. package/types/data-grid/src/data-grid.component.d.ts +4 -2
  201. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  202. package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
  203. package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
  204. package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
  205. package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
  206. package/types/data-view/composition/types.d.ts +19 -4
  207. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  208. package/types/designer-canvas/index.d.ts +2 -1
  209. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  210. package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
  211. package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
  212. package/types/designer-canvas/src/composition/types.d.ts +2 -3
  213. package/types/designer-canvas/src/types.d.ts +2 -1
  214. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  215. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  216. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  217. package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
  218. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +1 -1
  219. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  220. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  221. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  222. package/types/dynamic-form/src/types.d.ts +12 -1
  223. package/types/dynamic-resolver/index.d.ts +1 -0
  224. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
  225. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  226. package/types/dynamic-resolver/src/types.d.ts +9 -0
  227. package/types/dynamic-view/index.d.ts +1 -0
  228. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  229. package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
  230. package/types/index.d.ts +2 -0
  231. package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
  232. package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
  233. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  234. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  235. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  236. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  237. package/types/lookup/src/composition/types.d.ts +8 -0
  238. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  239. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  240. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  241. package/types/lookup/src/composition/use-http.d.ts +9 -5
  242. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  243. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  244. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  245. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  246. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  247. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  248. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  249. package/types/modal/src/modal.component.d.ts +3 -0
  250. package/types/modal/src/modal.props.d.ts +4 -0
  251. package/types/page-header/src/page-header.props.d.ts +1 -0
  252. package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
  253. package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
  254. package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
  255. package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
  256. package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
  257. package/types/property-panel/index.d.ts +2 -1
  258. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  259. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  260. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
  261. package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
  262. package/types/{data-grid/src/designer/use-group-column.d.ts → query-solution/src/designer/query-solution-config/composition/use-property.d.ts} +4 -5
  263. package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
  264. package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
  265. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
  266. package/types/query-solution/src/solutions.d.ts +108 -509
  267. package/types/response-layout-editor/index.d.ts +3 -1
  268. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  269. package/types/response-layout-editor/src/type.d.ts +21 -0
  270. package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
  271. package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
  272. package/types/section/src/designer/use-designer-rules.d.ts +3 -3
  273. package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
  274. package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
  275. package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
  276. package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
  277. package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
  278. package/types/tabs/src/tabs.props.d.ts +1 -0
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
  282. package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
  283. package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
  284. package/types/modal/src/composition/use-esc.d.ts +0 -1
  285. package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
  286. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  287. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,114 +1,114 @@
1
- import { defineComponent as F, ref as m, computed as N, watch as C, createVNode as d, inject as W, onMounted as J } from "vue";
2
- import { cloneDeep as G } from "lodash-es";
3
- const q = {}, _ = {};
1
+ import { defineComponent as V, ref as O, computed as R, watch as G, createVNode as d, inject as H, onMounted as J } from "vue";
2
+ import { isPlainObject as z, cloneDeep as Q } from "lodash-es";
3
+ const q = {}, W = {};
4
4
  function B(t) {
5
- const { properties: e, title: i, ignore: l } = t, o = l && Array.isArray(l), y = Object.keys(e).reduce((f, O) => ((!o || !l.find((b) => b == O)) && (f[O] = e[O].type === "object" && e[O].properties ? B(e[O]) : G(e[O].default)), f), {});
6
- return (!o || !l.find((f) => f == "id")) && (y.id = `${i}-${Date.now()}`), y;
5
+ const { properties: e, title: i, ignore: n } = t, l = n && Array.isArray(n), y = Object.keys(e).reduce((f, j) => ((!l || !n.find((b) => b == j)) && (f[j] = e[j].type === "object" && e[j].properties ? B(e[j]) : Q(e[j].default)), f), {});
6
+ return i && (!l || !n.find((f) => f == "id")) && (y.id = `${i}-${Date.now()}`), y;
7
7
  }
8
- function L(t, e = {}, i) {
9
- const l = q[t];
10
- if (l) {
11
- let o = B(l);
12
- const y = _[t];
13
- return o = y ? y({ getSchemaByType: L }, o, e, i) : o, o;
8
+ function _(t, e = {}, i) {
9
+ const n = q[t];
10
+ if (n) {
11
+ let l = B(n);
12
+ const y = W[t];
13
+ return l = y ? y({ getSchemaByType: _ }, l, e, i) : l, l;
14
14
  }
15
15
  return null;
16
16
  }
17
- function H(t, e) {
17
+ function U(t, e) {
18
18
  const i = B(e);
19
- return Object.keys(t).reduce((l, o) => (l[o] && typeof l[o] == "object" ? Object.assign(l[o], t[o]) : l[o] = t[o], l), i), i;
19
+ return Object.keys(t).reduce((n, l) => (n[l] && z(n[l]) && z(t[l]) ? Object.assign(n[l], t[l]) : n[l] = t[l], n), i), i;
20
20
  }
21
- function Q(t, e) {
22
- return Object.keys(t).filter((l) => t[l] != null).reduce((l, o) => {
23
- if (e.has(o)) {
24
- const y = e.get(o);
21
+ function X(t, e) {
22
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, l) => {
23
+ if (e.has(l)) {
24
+ const y = e.get(l);
25
25
  if (typeof y == "string")
26
- l[y] = t[o];
26
+ n[y] = t[l];
27
27
  else {
28
- const f = y(o, t[o], t);
29
- Object.assign(l, f);
28
+ const f = y(l, t[l], t);
29
+ Object.assign(n, f);
30
30
  }
31
31
  } else
32
- l[o] = t[o];
33
- return l;
32
+ n[l] = t[l];
33
+ return n;
34
34
  }, {});
35
35
  }
36
- function U(t, e, i = /* @__PURE__ */ new Map()) {
37
- const l = H(t, e);
38
- return Q(l, i);
36
+ function Y(t, e, i = /* @__PURE__ */ new Map()) {
37
+ const n = U(t, e);
38
+ return X(n, i);
39
39
  }
40
- function X(t = {}) {
41
- function e(c, v, u, h) {
40
+ function Z(t = {}) {
41
+ function e(r, p, u, v) {
42
42
  if (typeof u == "number")
43
- return h[c].length === u;
43
+ return v[r].length === u;
44
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);
45
+ const k = Object.keys(u)[0], S = u[k];
46
+ if (k === "not")
47
+ return Number(v[r].length) !== Number(S);
48
+ if (k === "moreThan")
49
+ return Number(v[r].length) >= Number(S);
50
+ if (k === "lessThan")
51
+ return Number(v[r].length) <= Number(S);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function i(c, v, u, h) {
56
- return h[c] && h[c].propertyValue && String(h[c].propertyValue.value) === String(u);
55
+ function i(r, p, u, v) {
56
+ return v[r] && v[r].propertyValue && String(v[r].propertyValue.value) === String(u);
57
57
  }
58
- const l = /* @__PURE__ */ new Map([
58
+ const n = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", i]
61
61
  ]);
62
- Object.keys(t).reduce((c, v) => (c.set(v, t[v]), c), l);
63
- function o(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 };
62
+ Object.keys(t).reduce((r, p) => (r.set(p, t[p]), r), n);
63
+ function l(r, p) {
64
+ const u = r;
65
+ return typeof p == "number" ? [{ target: u, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: u, operator: "getProperty", param: r, value: !!p }] : typeof p == "object" ? Object.keys(p).map((v) => {
66
+ if (v === "length")
67
+ return { target: u, operator: "length", param: null, value: p[v] };
68
+ const k = v, S = p[v];
69
+ return { target: u, operator: "getProperty", param: k, value: S };
70
70
  }) : [];
71
71
  }
72
- function y(c) {
73
- return Object.keys(c).reduce((u, h) => {
74
- const j = o(h, c[h]);
75
- return u.push(...j), u;
72
+ function y(r) {
73
+ return Object.keys(r).reduce((u, v) => {
74
+ const k = l(v, r[v]);
75
+ return u.push(...k), u;
76
76
  }, []);
77
77
  }
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;
78
+ function f(r, p) {
79
+ if (n.has(r.operator)) {
80
+ const u = n.get(r.operator);
81
+ return u && u(r.target, r.param, r.value, p) || !1;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function O(c, v) {
86
- return y(c).reduce((j, k) => j && f(k, v), !0);
85
+ function j(r, p) {
86
+ return y(r).reduce((k, S) => k && f(S, p), !0);
87
87
  }
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);
88
+ function b(r, p) {
89
+ const u = Object.keys(r), v = u.includes("allOf"), k = u.includes("anyOf"), S = v || k, T = (S ? r[S ? v ? "allOf" : "anyOf" : "allOf"] : [r]).map((D) => j(D, p));
90
+ return v ? !T.includes(!1) : T.includes(!0);
91
91
  }
92
92
  return { parseValueSchema: b };
93
93
  }
94
- const Y = {}, Z = {};
95
- X();
96
- function K(t, e, i = /* @__PURE__ */ new Map(), l = (f, O, b) => O, o = {}, y = (f) => f) {
97
- return q[e.title] = e, _[e.title] = l, Y[e.title] = o, Z[e.title] = y, (f = {}) => {
98
- const O = U(f, e, i), b = Object.keys(t).reduce((c, v) => (c[v] = t[v].default, c), {});
99
- return Object.assign(b, O);
94
+ const C = {}, K = {};
95
+ Z();
96
+ function x(t, e, i = /* @__PURE__ */ new Map(), n = (f, j, b) => j, l = {}, y = (f) => f) {
97
+ return q[e.title] = e, W[e.title] = n, C[e.title] = l, K[e.title] = y, (f = {}) => {
98
+ const j = Y(f, e, i), b = Object.keys(t).reduce((r, p) => (r[p] = t[p].default, r), {});
99
+ return Object.assign(b, j);
100
100
  };
101
101
  }
102
- function x(t, e) {
102
+ function I(t, e) {
103
103
  return { customClass: e.class, customStyle: e.style };
104
104
  }
105
- const I = /* @__PURE__ */ new Map([
106
- ["appearance", x]
105
+ const ee = /* @__PURE__ */ new Map([
106
+ ["appearance", I]
107
107
  ]);
108
- function ee(t, e, i) {
108
+ function te(t, e, i) {
109
109
  return e;
110
110
  }
111
- const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-design.gitee.io/step.schema.json", re = "step", ne = "A Farris Component", ce = "object", le = {
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 = {
112
112
  id: {
113
113
  description: "The unique identifier for step",
114
114
  type: "string"
@@ -170,18 +170,18 @@ const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-
170
170
  type: "boolean",
171
171
  default: !0
172
172
  }
173
- }, ae = [
173
+ }, ie = [
174
174
  "id",
175
175
  "type"
176
176
  ], oe = {
177
- $schema: te,
178
- $id: se,
179
- title: re,
180
- description: ne,
181
- type: ce,
182
- properties: le,
183
- required: ae
184
- }, ie = "step", ue = "A Farris Component", pe = "object", fe = {
177
+ $schema: se,
178
+ $id: re,
179
+ title: ne,
180
+ description: ce,
181
+ type: le,
182
+ properties: ae,
183
+ required: ie
184
+ }, ue = "step", pe = "A Farris Component", fe = "object", ve = {
185
185
  basic: {
186
186
  description: "Basic Infomation",
187
187
  title: "基本信息",
@@ -203,12 +203,12 @@ const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-
203
203
  }
204
204
  }
205
205
  }
206
- }, ve = {
207
- title: ie,
208
- description: ue,
209
- type: pe,
210
- categories: fe
211
- }, V = {
206
+ }, he = {
207
+ title: ue,
208
+ description: pe,
209
+ type: fe,
210
+ categories: ve
211
+ }, L = {
212
212
  /** 步骤条方向 */
213
213
  direction: { type: String, default: "horizontal" },
214
214
  /** 是否平铺 */
@@ -238,310 +238,302 @@ const te = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-
238
238
  /** 步骤条点击后事件 */
239
239
  onClick: { type: Function, default: () => {
240
240
  } }
241
- }, z = K(V, oe, I, ee, ve), A = /* @__PURE__ */ F({
241
+ }, F = x(L, oe, ee, te, he), A = /* @__PURE__ */ V({
242
242
  name: "FStep",
243
- props: V,
243
+ props: L,
244
244
  emits: ["click"],
245
245
  setup(t, e) {
246
- const i = m(t.direction), l = m(t.fill), o = m(t.height), y = m(t.steps), f = m(t.clickable), O = m(0), b = m(t.activeIndex), c = N(() => ({
246
+ const i = O(t.direction), n = O(t.fill), l = O(t.height), y = O(t.steps), f = O(t.clickable), j = O(0), b = O(t.activeIndex), r = R(() => ({
247
247
  "f-progress-step-list": i.value === "horizontal",
248
248
  "f-progress-step-list-block": i.value === "vertical",
249
- "f-progress-step-horizontal-fill": i.value === "horizontal" && l.value,
250
- "f-progress-step-vertical-fill": i.value === "vertical" && l.value
251
- })), v = N(() => ({
252
- height: i.value === "vertical" ? `${o.value}px` : ""
249
+ "f-progress-step-horizontal-fill": i.value === "horizontal" && n.value,
250
+ "f-progress-step-vertical-fill": i.value === "vertical" && n.value
251
+ })), p = R(() => ({
252
+ height: i.value === "vertical" ? `${l.value}px` : ""
253
253
  }));
254
- function u(s, r) {
255
- const p = {
254
+ function u(c, s) {
255
+ const g = {
256
256
  step: !0,
257
- active: r === b.value,
257
+ active: s === b.value,
258
258
  clickable: f.value,
259
259
  // 'click-disable': step.disable,
260
- current: r === b.value
260
+ current: s === b.value
261
261
  };
262
- return r < b.value && (p.finish = !0), p;
262
+ return s < b.value && (g.finish = !0), g;
263
263
  }
264
- function h(s, r) {
265
- const p = {
266
- step: s,
267
- stepIndex: r
264
+ function v(c, s) {
265
+ const g = {
266
+ step: c,
267
+ stepIndex: s
268
268
  };
269
- e.emit("click", p);
269
+ e.emit("click", g);
270
270
  }
271
- function j(s, r) {
272
- const p = {
271
+ function k(c, s) {
272
+ const g = {
273
273
  "f-progressstep-row": !0,
274
- "step-active": r === b.value,
275
- "step-current": r === b.value
274
+ "step-active": s === b.value,
275
+ "step-current": s === b.value
276
276
  };
277
- return r < b.value && (p["step-finish"] = !0), p;
277
+ return s < b.value && (g["step-finish"] = !0), g;
278
278
  }
279
- function k(s, r) {
279
+ function S(c, s) {
280
280
  return {
281
281
  "step-icon": !0,
282
- "step-success": r,
283
- "f-icon": r,
284
- "f-icon-check": r
282
+ "step-success": s,
283
+ "f-icon": s,
284
+ "f-icon-check": s
285
285
  };
286
286
  }
287
- function P(s, r) {
288
- const p = [];
289
- return r >= b.value || r === O.value ? p.push(d("span", {
287
+ function M(c, s) {
288
+ const g = [];
289
+ return s >= b.value || s === j.value ? g.push(d("span", {
290
290
  class: "step-icon"
291
- }, [r + 1])) : p.push(d("span", {
292
- class: k(s, !0)
293
- }, null)), p;
291
+ }, [s + 1])) : g.push(d("span", {
292
+ class: S(c, !0)
293
+ }, null)), g;
294
294
  }
295
- function w(s, r) {
295
+ function P(c, s) {
296
296
  return {
297
297
  "step-name": !0,
298
- "step-name-success": r < b.value
298
+ "step-name-success": s < b.value
299
299
  };
300
300
  }
301
- function S(s, r) {
301
+ function T(c, s) {
302
302
  return d("div", {
303
303
  class: "f-progress-step-title"
304
304
  }, [d("p", {
305
- class: w(s, r)
306
- }, [s.title])]);
305
+ class: P(c, s)
306
+ }, [c.title])]);
307
307
  }
308
- function E(s, r) {
308
+ function E(c, s) {
309
309
  return {
310
310
  "f-progress-step-line": !0,
311
- "f-progress-step-line-success": r === b.value
311
+ "f-progress-step-line-success": s === b.value
312
312
  };
313
313
  }
314
- function T(s, r) {
315
- return r !== y.value.length - 1;
314
+ function D(c, s) {
315
+ return s !== y.value.length - 1;
316
316
  }
317
- const $ = N(() => ({
317
+ const w = R(() => ({
318
318
  triangle: !0,
319
319
  "": i.value === "vertical"
320
320
  }));
321
- function M() {
322
- return y.value.map((s, r) => d("li", {
323
- class: u(s, r),
324
- onClick: (p) => h(s, r)
321
+ function h() {
322
+ return y.value.map((c, s) => d("li", {
323
+ class: u(c, s),
324
+ onClick: (g) => v(c, s)
325
325
  }, [d("div", {
326
- class: j(s, r)
326
+ class: k(c, s)
327
327
  }, [d("div", {
328
328
  class: "f-progress-step-content"
329
- }, [P(s, r), S(s, r)]), T(s, r) && d("div", {
330
- class: E(s, r)
329
+ }, [M(c, s), T(c, s)]), D(c, s) && d("div", {
330
+ class: E(c, s)
331
331
  }, [d("span", {
332
- class: $.value
332
+ class: w.value
333
333
  }, null)])])]));
334
334
  }
335
- return C(() => t.activeIndex, () => {
336
- t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, M());
335
+ return G(() => t.activeIndex, () => {
336
+ t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, h());
337
337
  }), () => d("div", {
338
338
  class: "f-progress-step"
339
339
  }, [d("ul", {
340
- class: c.value,
341
- style: v.value
342
- }, [M()])]);
340
+ class: r.value,
341
+ style: p.value
342
+ }, [h()])]);
343
343
  }
344
344
  });
345
- function he(t, e, i) {
346
- var M;
347
- function l() {
345
+ function ge(t, e, i) {
346
+ var w;
347
+ function n() {
348
348
  }
349
- const o = "", y = "", f = m();
350
- function O() {
349
+ const l = "", y = "", f = O();
350
+ function j() {
351
351
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
352
352
  }
353
353
  function b() {
354
354
  return !1;
355
355
  }
356
- function c() {
356
+ function r() {
357
357
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
358
358
  }
359
- function v() {
359
+ function p() {
360
360
  return (e == null ? void 0 : e.schema.componentType) === "frame";
361
361
  }
362
- function u(s) {
363
- if (!s || !s.value)
362
+ function u(h) {
363
+ if (!h || !h.value)
364
364
  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;
365
+ if (h.value.schema && h.value.schema.type === "component")
366
+ return h.value;
367
+ const c = O(h == null ? void 0 : h.value.parent), s = u(c);
368
+ return s || null;
369
369
  }
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);
370
+ function v(h = e) {
371
+ const { componentInstance: c, designerItemElementRef: s } = h;
372
+ return !c || !c.value ? null : c.value.canMove ? s : v(h.parent);
373
373
  }
374
- function j(s) {
374
+ function k(h) {
375
375
  return !!i;
376
376
  }
377
- function k() {
377
+ function S() {
378
378
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
379
379
  }
380
- function P() {
381
- }
382
- function w(s, r) {
380
+ function M() {
383
381
  }
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;
382
+ function P(h, c) {
389
383
  }
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;
384
+ function T(h, c) {
385
+ const { componentType: s } = h;
386
+ let g = _(s, h, c);
387
+ const a = s.toLowerCase().replace("-", "_");
388
+ return g && !g.id && g.type === s && (g.id = `${a}_${Math.random().toString().slice(2, 6)}`), g;
396
389
  }
397
- function T(s) {
390
+ function E(h) {
398
391
  }
399
- function $(...s) {
392
+ function D(...h) {
400
393
  }
401
394
  return f.value = {
402
- canMove: O(),
395
+ canMove: j(),
403
396
  canSelectParent: b(),
404
- canDelete: c(),
405
- canNested: !v(),
397
+ canDelete: r(),
398
+ canNested: !p(),
406
399
  contents: e == null ? void 0 : e.schema.contents,
407
400
  elementRef: t,
408
- parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
401
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
409
402
  schema: e == null ? void 0 : e.schema,
410
- styles: o,
403
+ styles: l,
411
404
  designerClass: y,
412
- canAccepts: j,
405
+ canAccepts: k,
413
406
  getBelongedComponentInstance: u,
414
- getDraggableDesignItemElement: h,
415
- 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)
407
+ getDraggableDesignItemElement: v,
408
+ getDraggingDisplayText: S,
409
+ getPropConfig: D,
410
+ getDragScopeElement: M,
411
+ onAcceptMovedChildElement: P,
412
+ onChildElementMovedOut: E,
413
+ addNewChildComponentSchema: T,
414
+ updateDragAndDropRules: n,
415
+ triggerBelongedComponentToMoveWhenMoved: O(!1),
416
+ triggerBelongedComponentToDeleteWhenDeleted: O(!1)
425
417
  }, f;
426
418
  }
427
- const ge = /* @__PURE__ */ F({
419
+ const de = /* @__PURE__ */ V({
428
420
  name: "FStepDesign",
429
- props: V,
421
+ props: L,
430
422
  emits: [],
431
423
  setup(t, e) {
432
- const i = m(t.direction), l = m(t.fill), o = m(t.height), y = m(t.steps), f = m(0), O = m(t.clickable), b = m(0), c = m(), v = W("design-item-context"), u = he(c, v);
424
+ const i = O(t.direction), n = O(t.fill), l = O(t.height), y = O(t.steps), f = O(0), j = O(t.clickable), b = O(0), r = O(), p = H("design-item-context"), u = ge(r, p);
433
425
  J(() => {
434
- c.value.componentInstance = u;
426
+ r.value.componentInstance = u;
435
427
  }), e.expose(u.value);
436
- const h = N(() => ({
428
+ const v = R(() => ({
437
429
  "f-progress-step-list": i.value === "horizontal",
438
430
  "f-progress-step-list-block": i.value === "vertical",
439
- "f-progress-step-horizontal-fill": i.value === "horizontal" && l.value,
440
- "f-progress-step-vertical-fill": i.value === "vertical" && l.value
441
- })), j = N(() => ({
442
- height: i.value === "vertical" ? `${o.value}px` : ""
431
+ "f-progress-step-horizontal-fill": i.value === "horizontal" && n.value,
432
+ "f-progress-step-vertical-fill": i.value === "vertical" && n.value
433
+ })), k = R(() => ({
434
+ height: i.value === "vertical" ? `${l.value}px` : ""
443
435
  }));
444
- function k(n, a) {
445
- const g = {
436
+ function S(a, o) {
437
+ const m = {
446
438
  step: !0,
447
- active: a === f.value,
448
- clickable: O.value,
449
- "click-disable": n.disable,
450
- current: a === f.value
439
+ active: o === f.value,
440
+ clickable: j.value,
441
+ "click-disable": a.disable,
442
+ current: o === f.value
451
443
  };
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;
444
+ return o < f.value && (m.finish = !0), a.status && (m[a.status] = !0), a.hasOwnProperty("class") && a.class.split(" ").reduce((N, $) => (N[$] = !0, N), m), m;
453
445
  }
454
- function P(n, a) {
446
+ function M(a, o) {
455
447
  }
456
- function w(n, a) {
457
- const g = {
448
+ function P(a, o) {
449
+ const m = {
458
450
  "f-progressstep-row": !0,
459
- "step-active": a === f.value,
460
- "step-current": a === f.value
451
+ "step-active": o === f.value,
452
+ "step-current": o === f.value
461
453
  };
462
- return a < f.value && (g["step-finish"] = !0), n.status && (g["step-" + n.status] = !0), g;
454
+ return o < f.value && (m["step-finish"] = !0), a.status && (m["step-" + a.status] = !0), m;
463
455
  }
464
- function S(n, a) {
465
- const g = {
456
+ function T(a, o) {
457
+ const m = {
466
458
  "step-icon": !0,
467
- "step-success": a,
468
- "k-icon": a,
469
- "k-i-check": a
459
+ "step-success": o,
460
+ "k-icon": o,
461
+ "k-i-check": o
470
462
  };
471
- return n.hasOwnProperty("icon") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
463
+ return a.hasOwnProperty("icon") && a.class.split(" ").reduce((N, $) => (N[$] = !0, N), m), m;
472
464
  }
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", {
465
+ function E(a, o) {
466
+ const m = [];
467
+ return a.icon ? m.push(d("span", {
468
+ class: T(a, !1)
469
+ }, null)) : o >= f.value || o === b.value ? m.push(d("span", {
478
470
  class: "step-icon"
479
- }, [a + 1])) : g.push(d("span", {
480
- class: S(n, !0)
481
- }, null)), g;
471
+ }, [o + 1])) : m.push(d("span", {
472
+ class: T(a, !0)
473
+ }, null)), m;
482
474
  }
483
- function T(n, a) {
475
+ function D(a, o) {
484
476
  return {
485
477
  "step-name": !0,
486
- "step-name-success": a < f.value
478
+ "step-name-success": o < f.value
487
479
  };
488
480
  }
489
- function $(n, a) {
481
+ function w(a, o) {
490
482
  return d("div", {
491
483
  class: "f-progress-step-title"
492
484
  }, [d("p", {
493
- class: T(n, a)
494
- }, [n.title])]);
485
+ class: D(a, o)
486
+ }, [a.title])]);
495
487
  }
496
- function M(n, a) {
488
+ function h(a, o) {
497
489
  return {
498
490
  "f-progress-step-line": !0,
499
- "f-progress-step-line-success": a === f.value
491
+ "f-progress-step-line-success": o === f.value
500
492
  };
501
493
  }
502
- function s(n, a) {
503
- return a !== y.value.length - 1;
494
+ function c(a, o) {
495
+ return o !== y.value.length - 1;
504
496
  }
505
- const r = N(() => ({
497
+ const s = R(() => ({
506
498
  triangle: !0,
507
499
  "": i.value === "vertical"
508
500
  }));
509
- function p() {
510
- return y.value.map((n, a) => d("li", {
511
- class: k(n, a),
512
- onClick: (g) => void 0
501
+ function g() {
502
+ return y.value.map((a, o) => d("li", {
503
+ class: S(a, o),
504
+ onClick: (m) => void 0
513
505
  }, [d("div", {
514
- class: w(n, a)
506
+ class: P(a, o)
515
507
  }, [d("div", {
516
508
  class: "f-progress-step-content"
517
- }, [E(n, a), $(n, a)]), s(n, a) && d("div", {
518
- class: M(n, a)
509
+ }, [E(a, o), w(a, o)]), c(a, o) && d("div", {
510
+ class: h(a, o)
519
511
  }, [d("span", {
520
- class: r.value
512
+ class: s.value
521
513
  }, null)])])]));
522
514
  }
523
515
  return () => d("div", {
524
- ref: c,
516
+ ref: r,
525
517
  class: "f-progress-step"
526
518
  }, [d("ul", {
527
- class: h.value,
528
- style: j.value
529
- }, [p()])]);
519
+ class: v.value,
520
+ style: k.value
521
+ }, [g()])]);
530
522
  }
531
- }), be = {
523
+ }), me = {
532
524
  install(t) {
533
525
  t.component(A.name, A);
534
526
  },
535
- register(t, e, i, l) {
536
- t.step = A, e.step = z;
527
+ register(t, e, i, n) {
528
+ t.step = A, e.step = F;
537
529
  },
538
530
  registerDesigner(t, e, i) {
539
- t.step = ge, e.step = z;
531
+ t.step = de, e.step = F;
540
532
  }
541
533
  };
542
534
  export {
543
535
  A as Step,
544
- be as default,
545
- z as propsResolver,
546
- V as stepProps
536
+ me as default,
537
+ F as propsResolver,
538
+ L as stepProps
547
539
  };