@farris/ui-vue 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/components/accordion/index.esm.js +180 -180
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +419 -331
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.css +1 -1
  8. package/components/button-edit/index.esm.js +346 -326
  9. package/components/button-edit/index.umd.cjs +1 -0
  10. package/components/button-group/index.umd.cjs +1 -0
  11. package/components/calculator/index.umd.cjs +1 -0
  12. package/components/calendar/index.esm.js +384 -384
  13. package/components/calendar/index.umd.cjs +1 -0
  14. package/components/capsule/index.esm.js +205 -205
  15. package/components/capsule/index.umd.cjs +1 -0
  16. package/components/checkbox/index.esm.js +555 -467
  17. package/components/checkbox/index.umd.cjs +1 -0
  18. package/components/color-picker/index.esm.js +239 -239
  19. package/components/color-picker/index.umd.cjs +3 -0
  20. package/components/combo-list/index.css +1 -0
  21. package/components/combo-list/index.esm.js +1072 -364
  22. package/components/combo-list/index.umd.cjs +1 -0
  23. package/components/combo-tree/index.esm.js +129 -129
  24. package/components/combo-tree/index.umd.cjs +1 -0
  25. package/components/common/index.esm.js +778 -700
  26. package/components/common/index.umd.cjs +1 -0
  27. package/components/component/index.esm.js +582 -327
  28. package/components/component/index.umd.cjs +1 -0
  29. package/components/condition/index.css +1 -0
  30. package/components/condition/index.esm.js +2433 -1134
  31. package/components/condition/index.umd.cjs +1 -0
  32. package/components/content-container/index.esm.js +307 -234
  33. package/components/content-container/index.umd.cjs +1 -0
  34. package/components/data-grid/index.css +1 -1
  35. package/components/data-grid/index.esm.js +6762 -4946
  36. package/components/data-grid/index.umd.cjs +1 -0
  37. package/components/data-view/index.css +1 -0
  38. package/components/data-view/index.esm.js +4977 -3489
  39. package/components/data-view/index.umd.cjs +1 -0
  40. package/components/date-picker/index.css +1 -1
  41. package/components/date-picker/index.esm.js +3525 -2811
  42. package/components/date-picker/index.umd.cjs +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +938 -928
  45. package/components/designer-canvas/index.umd.cjs +1 -0
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +38 -37
  48. package/components/designer-outline/index.umd.cjs +1 -0
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -0
  51. package/components/discussion-editor/index.umd.cjs +3 -0
  52. package/components/discussion-list/index.umd.cjs +1 -0
  53. package/components/drawer/index.umd.cjs +1 -0
  54. package/components/dropdown/index.esm.js +282 -282
  55. package/components/dropdown/index.umd.cjs +2 -0
  56. package/components/dynamic-form/index.css +1 -0
  57. package/components/dynamic-form/index.esm.js +2684 -1039
  58. package/components/dynamic-form/index.umd.cjs +1 -0
  59. package/components/dynamic-resolver/index.esm.js +149 -101
  60. package/components/dynamic-resolver/index.umd.cjs +1 -0
  61. package/components/dynamic-view/index.esm.js +303 -290
  62. package/components/dynamic-view/index.umd.cjs +1 -0
  63. package/components/enum-editor/index.umd.cjs +1 -0
  64. package/components/events-editor/index.esm.js +573 -518
  65. package/components/events-editor/index.umd.cjs +1 -0
  66. package/components/expression-editor/index.esm.js +99 -99
  67. package/components/expression-editor/index.umd.cjs +1 -0
  68. package/components/external-container/index.css +1 -1
  69. package/components/external-container/index.esm.js +3607 -2799
  70. package/components/external-container/index.umd.cjs +1 -0
  71. package/components/field-selector/index.css +1 -1
  72. package/components/field-selector/index.esm.js +5438 -8236
  73. package/components/field-selector/index.umd.cjs +1 -0
  74. package/components/filter-bar/index.css +1 -1
  75. package/components/filter-bar/index.esm.js +1679 -1759
  76. package/components/filter-bar/index.umd.cjs +1 -0
  77. package/components/flow-canvas/index.css +1 -1
  78. package/components/flow-canvas/index.esm.js +1062 -1052
  79. package/components/flow-canvas/index.umd.cjs +1 -0
  80. package/components/image-cropper/index.esm.js +421 -421
  81. package/components/image-cropper/index.umd.cjs +1 -0
  82. package/components/input-group/index.esm.js +677 -593
  83. package/components/input-group/index.umd.cjs +1 -0
  84. package/components/layout/index.esm.js +326 -326
  85. package/components/layout/index.umd.cjs +1 -0
  86. package/components/list-nav/index.esm.js +272 -199
  87. package/components/list-nav/index.umd.cjs +1 -0
  88. package/components/list-view/index.css +1 -1
  89. package/components/list-view/index.esm.js +3739 -2273
  90. package/components/list-view/index.umd.cjs +1 -0
  91. package/components/loading/index.umd.cjs +8 -0
  92. package/components/locale/index.umd.cjs +1 -0
  93. package/components/lookup/index.css +1 -1
  94. package/components/lookup/index.esm.js +11255 -9004
  95. package/components/lookup/index.umd.cjs +1 -0
  96. package/components/mapping-editor/index.css +1 -1
  97. package/components/mapping-editor/index.esm.js +6046 -5314
  98. package/components/mapping-editor/index.umd.cjs +1 -0
  99. package/components/message-box/index.css +1 -1
  100. package/components/message-box/index.esm.js +511 -471
  101. package/components/message-box/index.umd.cjs +1 -0
  102. package/components/modal/index.css +1 -1
  103. package/components/modal/index.esm.js +438 -398
  104. package/components/modal/index.umd.cjs +1 -0
  105. package/components/nav/index.esm.js +588 -444
  106. package/components/nav/index.umd.cjs +3 -0
  107. package/components/notify/index.esm.js +59 -53
  108. package/components/notify/index.umd.cjs +1 -0
  109. package/components/number-range/index.esm.js +568 -485
  110. package/components/number-range/index.umd.cjs +1 -0
  111. package/components/number-spinner/index.esm.js +542 -454
  112. package/components/number-spinner/index.umd.cjs +1 -0
  113. package/components/order/index.css +1 -1
  114. package/components/order/index.esm.js +1967 -1105
  115. package/components/order/index.umd.cjs +1 -0
  116. package/components/page-footer/index.esm.js +160 -160
  117. package/components/page-footer/index.umd.cjs +1 -0
  118. package/components/page-header/index.esm.js +1282 -1151
  119. package/components/page-header/index.umd.cjs +1 -0
  120. package/components/pagination/index.esm.js +705 -555
  121. package/components/pagination/index.umd.cjs +1 -0
  122. package/components/popover/index.esm.js +71 -70
  123. package/components/popover/index.umd.cjs +1 -0
  124. package/components/progress/index.esm.js +270 -270
  125. package/components/progress/index.umd.cjs +3 -0
  126. package/components/property-editor/index.css +1 -1
  127. package/components/property-editor/index.esm.js +2231 -1517
  128. package/components/property-editor/index.umd.cjs +3 -0
  129. package/components/property-panel/index.esm.js +813 -909
  130. package/components/property-panel/index.umd.cjs +1 -0
  131. package/components/query-solution/index.css +1 -1
  132. package/components/query-solution/index.esm.js +3781 -2566
  133. package/components/query-solution/index.umd.cjs +1 -0
  134. package/components/radio-button/index.esm.js +101 -101
  135. package/components/radio-button/index.umd.cjs +1 -0
  136. package/components/radio-group/index.esm.js +538 -450
  137. package/components/radio-group/index.umd.cjs +1 -0
  138. package/components/rate/index.esm.js +238 -233
  139. package/components/rate/index.umd.cjs +1 -0
  140. package/components/response-layout/index.esm.js +155 -155
  141. package/components/response-layout/index.umd.cjs +1 -0
  142. package/components/response-layout-editor/index.css +1 -1
  143. package/components/response-layout-editor/index.esm.js +1243 -1180
  144. package/components/response-layout-editor/index.umd.cjs +1 -0
  145. package/components/response-toolbar/index.esm.js +988 -877
  146. package/components/response-toolbar/index.umd.cjs +1 -0
  147. package/components/schema-selector/index.css +1 -1
  148. package/components/schema-selector/index.esm.js +5413 -4867
  149. package/components/schema-selector/index.umd.cjs +8 -0
  150. package/components/search-box/index.esm.js +199 -199
  151. package/components/search-box/index.umd.cjs +1 -0
  152. package/components/section/index.esm.js +646 -503
  153. package/components/section/index.umd.cjs +1 -0
  154. package/components/smoke-detector/index.esm.js +144 -144
  155. package/components/smoke-detector/index.umd.cjs +1 -0
  156. package/components/spacing-editor/index.umd.cjs +1 -0
  157. package/components/splitter/index.esm.js +464 -391
  158. package/components/splitter/index.umd.cjs +1 -0
  159. package/components/step/index.esm.js +249 -249
  160. package/components/step/index.umd.cjs +1 -0
  161. package/components/switch/index.esm.js +483 -394
  162. package/components/switch/index.umd.cjs +1 -0
  163. package/components/tabs/index.css +1 -1
  164. package/components/tabs/index.esm.js +2366 -2208
  165. package/components/tabs/index.umd.cjs +1 -0
  166. package/components/tags/index.esm.js +397 -399
  167. package/components/tags/index.umd.cjs +1 -0
  168. package/components/text/index.esm.js +394 -394
  169. package/components/text/index.umd.cjs +1 -0
  170. package/components/textarea/index.esm.js +451 -367
  171. package/components/textarea/index.umd.cjs +1 -0
  172. package/components/time-picker/index.css +1 -1
  173. package/components/time-picker/index.esm.js +1252 -1144
  174. package/components/time-picker/index.umd.cjs +1 -0
  175. package/components/tooltip/index.umd.cjs +1 -0
  176. package/components/transfer/index.css +1 -1
  177. package/components/transfer/index.esm.js +510 -499
  178. package/components/transfer/index.umd.cjs +1 -0
  179. package/components/tree-grid/index.css +1 -1
  180. package/components/tree-grid/index.esm.js +5463 -9330
  181. package/components/tree-grid/index.umd.cjs +1 -0
  182. package/components/tree-view/index.css +1 -0
  183. package/components/tree-view/index.esm.js +4058 -2597
  184. package/components/tree-view/index.umd.cjs +1 -0
  185. package/components/uploader/index.esm.js +510 -504
  186. package/components/uploader/index.umd.cjs +2 -0
  187. package/components/verify-detail/index.esm.js +220 -220
  188. package/components/verify-detail/index.umd.cjs +1 -0
  189. package/components/video/index.esm.js +653 -394
  190. package/components/video/index.umd.cjs +1 -0
  191. package/components/weather/index.esm.js +1028 -1028
  192. package/components/weather/index.umd.cjs +16 -0
  193. package/farris.all.esm.js +20407 -18556
  194. package/farris.all.umd.cjs +8 -8
  195. package/index.css +1 -1
  196. package/package.json +1 -1
  197. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  198. package/types/capsule/src/capsule.props.d.ts +2 -2
  199. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  200. package/types/common/entity/entity-schema.d.ts +258 -0
  201. package/types/common/index.d.ts +1 -0
  202. package/types/common/types.d.ts +1 -1
  203. package/types/common/utils/encrypt.d.ts +2 -0
  204. package/types/component/src/component-ref.props.d.ts +4 -0
  205. package/types/component/src/component.props.d.ts +7 -0
  206. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  207. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  208. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  209. package/types/components.d.ts +1 -0
  210. package/types/data-grid/index.d.ts +8 -2
  211. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  212. package/types/data-grid/src/data-grid.component.d.ts +3 -1
  213. package/types/data-grid/src/data-grid.props.d.ts +3 -2
  214. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  215. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  216. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  217. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  218. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  219. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  220. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  221. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  222. package/types/data-view/composition/types.d.ts +36 -7
  223. package/types/data-view/composition/use-edit.d.ts +2 -1
  224. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  225. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  226. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  227. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  228. package/types/designer-canvas/src/types.d.ts +2 -2
  229. package/types/dynamic-form/index.d.ts +2 -1
  230. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  231. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  232. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  233. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  234. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  235. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  236. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  237. package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
  238. package/types/dynamic-form/src/types.d.ts +12 -1
  239. package/types/dynamic-resolver/index.d.ts +1 -0
  240. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  241. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  242. package/types/dynamic-resolver/src/types.d.ts +12 -2
  243. package/types/dynamic-view/index.d.ts +1 -0
  244. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  245. package/types/index.d.ts +2 -0
  246. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  247. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  248. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  249. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  250. package/types/lookup/src/composition/types.d.ts +8 -0
  251. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  252. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  253. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  254. package/types/lookup/src/composition/use-http.d.ts +9 -5
  255. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  256. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  257. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  258. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  259. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  260. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  261. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  262. package/types/modal/src/modal.component.d.ts +3 -0
  263. package/types/modal/src/modal.props.d.ts +4 -0
  264. package/types/page-header/src/page-header.props.d.ts +1 -0
  265. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  266. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  267. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  268. package/types/response-layout-editor/src/type.d.ts +21 -0
  269. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  270. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  271. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  272. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  273. package/types/tabs/src/composition/types.d.ts +2 -2
  274. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  275. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  276. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  277. package/types/tabs/src/tabs.props.d.ts +1 -0
  278. package/types/tags/index.d.ts +36 -5
  279. package/types/tree-grid/index.d.ts +8 -2
  280. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  281. package/types/modal/src/composition/use-esc.d.ts +0 -1
  282. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  283. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,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 = {}, _ = {};
4
- function L(t) {
5
- const { properties: e, title: o } = t, c = Object.keys(e).reduce((u, y) => (u[y] = e[y].type === "object" && e[y].properties ? L(e[y]) : G(e[y].default), u), {});
6
- return c.id = `${o}-${Date.now()}`, c;
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 = {};
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;
7
7
  }
8
- function B(t, e = {}) {
9
- const o = q[t];
10
- if (o) {
11
- let c = L(o);
12
- const u = _[t];
13
- return c = u ? u({ getSchemaByType: B }, c, e) : c, c;
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;
14
14
  }
15
15
  return null;
16
16
  }
17
- function H(t, e) {
18
- const o = L(e);
19
- return Object.keys(t).reduce((c, u) => (c[u] && typeof c[u] == "object" ? Object.assign(c[u], t[u]) : c[u] = t[u], c), o), o;
20
- }
21
17
  function Q(t, e) {
22
- return Object.keys(t).filter((c) => t[c] != null).reduce((c, u) => {
23
- if (e.has(u)) {
24
- const y = e.get(u);
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
+ 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);
25
25
  if (typeof y == "string")
26
- c[y] = t[u];
26
+ l[y] = t[i];
27
27
  else {
28
- const g = y(u, t[u], t);
29
- Object.assign(c, g);
28
+ const f = y(i, t[i], t);
29
+ Object.assign(l, f);
30
30
  }
31
31
  } else
32
- c[u] = t[u];
33
- return c;
32
+ l[i] = t[i];
33
+ return l;
34
34
  }, {});
35
35
  }
36
- function U(t, e, o = /* @__PURE__ */ new Map()) {
37
- const c = H(t, e);
38
- return Q(c, o);
36
+ function X(t, e, o = /* @__PURE__ */ new Map()) {
37
+ const l = Q(t, e);
38
+ return U(l, o);
39
39
  }
40
- function X(t = {}) {
41
- function e(n, f, p, v) {
42
- if (typeof p == "number")
43
- return v[n].length === p;
44
- if (typeof p == "object") {
45
- const O = Object.keys(p)[0], j = p[O];
46
- if (O === "not")
47
- return Number(v[n].length) !== Number(j);
48
- if (O === "moreThan")
49
- return Number(v[n].length) >= Number(j);
50
- if (O === "lessThan")
51
- return Number(v[n].length) <= Number(j);
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);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function o(n, f, p, v) {
56
- return v[n] && v[n].propertyValue && String(v[n].propertyValue.value) === String(p);
55
+ function o(c, v, u, h) {
56
+ return h[c] && h[c].propertyValue && String(h[c].propertyValue.value) === String(u);
57
57
  }
58
- const c = /* @__PURE__ */ new Map([
58
+ const l = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", o]
61
61
  ]);
62
- Object.keys(t).reduce((n, f) => (n.set(f, t[f]), n), c);
63
- function u(n, f) {
64
- const p = n;
65
- return typeof f == "number" ? [{ target: p, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: p, operator: "getProperty", param: n, value: !!f }] : typeof f == "object" ? Object.keys(f).map((v) => {
66
- if (v === "length")
67
- return { target: p, operator: "length", param: null, value: f[v] };
68
- const O = v, j = f[v];
69
- return { target: p, operator: "getProperty", param: O, value: j };
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 };
70
70
  }) : [];
71
71
  }
72
- function y(n) {
73
- return Object.keys(n).reduce((p, v) => {
74
- const O = u(v, n[v]);
75
- return p.push(...O), p;
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
76
  }, []);
77
77
  }
78
- function g(n, f) {
79
- if (c.has(n.operator)) {
80
- const p = c.get(n.operator);
81
- return p && p(n.target, n.param, n.value, f) || !1;
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
82
  }
83
83
  return !1;
84
84
  }
85
- function k(n, f) {
86
- return y(n).reduce((O, j) => O && g(j, f), !0);
85
+ function O(c, v) {
86
+ return y(c).reduce((j, k) => j && f(k, v), !0);
87
87
  }
88
- function b(n, f) {
89
- const p = Object.keys(n), v = p.includes("allOf"), O = p.includes("anyOf"), j = v || O, S = (j ? n[j ? v ? "allOf" : "anyOf" : "allOf"] : [n]).map((T) => k(T, f));
90
- return v ? !S.includes(!1) : S.includes(!0);
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);
91
91
  }
92
92
  return { parseValueSchema: b };
93
93
  }
94
- const Y = {}, Z = {};
95
- X();
96
- function K(t, e, o = /* @__PURE__ */ new Map(), c = (g, k, b) => k, u = {}, y = (g) => g) {
97
- return q[e.title] = e, _[e.title] = c, Y[e.title] = u, Z[e.title] = y, (g = {}) => {
98
- const k = U(g, e, o), b = Object.keys(t).reduce((n, f) => (n[f] = t[f].default, n), {});
99
- return Object.assign(b, k);
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);
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, o) {
108
+ function te(t, e, o) {
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
+ }, z = {
212
212
  /** 步骤条方向 */
213
213
  direction: { type: String, default: "horizontal" },
214
214
  /** 是否平铺 */
@@ -238,310 +238,310 @@ 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
+ }, V = x(z, oe, ee, te, he), A = /* @__PURE__ */ q({
242
242
  name: "FStep",
243
- props: V,
243
+ props: z,
244
244
  emits: ["click"],
245
245
  setup(t, e) {
246
- const o = m(t.direction), c = m(t.fill), u = m(t.height), y = m(t.steps), g = m(t.clickable), k = m(0), b = m(t.activeIndex), n = N(() => ({
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
247
  "f-progress-step-list": o.value === "horizontal",
248
248
  "f-progress-step-list-block": o.value === "vertical",
249
- "f-progress-step-horizontal-fill": o.value === "horizontal" && c.value,
250
- "f-progress-step-vertical-fill": o.value === "vertical" && c.value
251
- })), f = N(() => ({
252
- height: o.value === "vertical" ? `${u.value}px` : ""
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` : ""
253
253
  }));
254
- function p(r, s) {
255
- const i = {
254
+ function u(s, r) {
255
+ const p = {
256
256
  step: !0,
257
- active: s === b.value,
258
- clickable: g.value,
257
+ active: r === b.value,
258
+ clickable: f.value,
259
259
  // 'click-disable': step.disable,
260
- current: s === b.value
260
+ current: r === b.value
261
261
  };
262
- return s < b.value && (i.finish = !0), i;
262
+ return r < b.value && (p.finish = !0), p;
263
263
  }
264
- function v(r, s) {
265
- const i = {
266
- step: r,
267
- stepIndex: s
264
+ function h(s, r) {
265
+ const p = {
266
+ step: s,
267
+ stepIndex: r
268
268
  };
269
- e.emit("click", i);
269
+ e.emit("click", p);
270
270
  }
271
- function O(r, s) {
272
- const i = {
271
+ function j(s, r) {
272
+ const p = {
273
273
  "f-progressstep-row": !0,
274
- "step-active": s === b.value,
275
- "step-current": s === b.value
274
+ "step-active": r === b.value,
275
+ "step-current": r === b.value
276
276
  };
277
- return s < b.value && (i["step-finish"] = !0), i;
277
+ return r < b.value && (p["step-finish"] = !0), p;
278
278
  }
279
- function j(r, s) {
279
+ function k(s, r) {
280
280
  return {
281
281
  "step-icon": !0,
282
- "step-success": s,
283
- "f-icon": s,
284
- "f-icon-check": s
282
+ "step-success": r,
283
+ "f-icon": r,
284
+ "f-icon-check": r
285
285
  };
286
286
  }
287
- function w(r, s) {
288
- const i = [];
289
- return s >= b.value || s === k.value ? i.push(d("span", {
287
+ function P(s, r) {
288
+ const p = [];
289
+ return r >= b.value || r === O.value ? p.push(d("span", {
290
290
  class: "step-icon"
291
- }, [s + 1])) : i.push(d("span", {
292
- class: j(r, !0)
293
- }, null)), i;
291
+ }, [r + 1])) : p.push(d("span", {
292
+ class: k(s, !0)
293
+ }, null)), p;
294
294
  }
295
- function E(r, s) {
295
+ function w(s, r) {
296
296
  return {
297
297
  "step-name": !0,
298
- "step-name-success": s < b.value
298
+ "step-name-success": r < b.value
299
299
  };
300
300
  }
301
- function S(r, s) {
301
+ function S(s, r) {
302
302
  return d("div", {
303
303
  class: "f-progress-step-title"
304
304
  }, [d("p", {
305
- class: E(r, s)
306
- }, [r.title])]);
305
+ class: w(s, r)
306
+ }, [s.title])]);
307
307
  }
308
- function P(r, s) {
308
+ function E(s, r) {
309
309
  return {
310
310
  "f-progress-step-line": !0,
311
- "f-progress-step-line-success": s === b.value
311
+ "f-progress-step-line-success": r === b.value
312
312
  };
313
313
  }
314
- function T(r, s) {
315
- return s !== y.value.length - 1;
314
+ function T(s, r) {
315
+ return r !== y.value.length - 1;
316
316
  }
317
317
  const $ = N(() => ({
318
318
  triangle: !0,
319
319
  "": o.value === "vertical"
320
320
  }));
321
321
  function M() {
322
- return y.value.map((r, s) => d("li", {
323
- class: p(r, s),
324
- onClick: (i) => v(r, s)
322
+ return y.value.map((s, r) => d("li", {
323
+ class: u(s, r),
324
+ onClick: (p) => h(s, r)
325
325
  }, [d("div", {
326
- class: O(r, s)
326
+ class: j(s, r)
327
327
  }, [d("div", {
328
328
  class: "f-progress-step-content"
329
- }, [w(r, s), S(r, s)]), T(r, s) && d("div", {
330
- class: P(r, s)
329
+ }, [P(s, r), S(s, r)]), T(s, r) && d("div", {
330
+ class: E(s, r)
331
331
  }, [d("span", {
332
332
  class: $.value
333
333
  }, null)])])]));
334
334
  }
335
- return C(() => t.activeIndex, () => {
335
+ return W(() => t.activeIndex, () => {
336
336
  t.activeIndex > -1 && t.activeIndex <= y.value.length && (b.value = t.activeIndex, M());
337
337
  }), () => d("div", {
338
338
  class: "f-progress-step"
339
339
  }, [d("ul", {
340
- class: n.value,
341
- style: f.value
340
+ class: c.value,
341
+ style: v.value
342
342
  }, [M()])]);
343
343
  }
344
344
  });
345
- function he(t, e, o) {
345
+ function ge(t, e, o) {
346
346
  var M;
347
- function c() {
347
+ function l() {
348
348
  }
349
- const u = "", y = "", g = m();
350
- function k() {
349
+ const i = "", y = "", f = m();
350
+ function O() {
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 n() {
356
+ function c() {
357
357
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
358
358
  }
359
- function f() {
359
+ function v() {
360
360
  return (e == null ? void 0 : e.schema.componentType) === "frame";
361
361
  }
362
- function p(r) {
363
- if (!r || !r.value)
362
+ function u(s) {
363
+ if (!s || !s.value)
364
364
  return null;
365
- if (r.value.schema && r.value.schema.type === "component")
366
- return r.value;
367
- const s = m(r == null ? void 0 : r.value.parent), i = p(s);
368
- return i || 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;
369
369
  }
370
- function v(r = e) {
371
- const { componentInstance: s, designerItemElementRef: i } = r;
372
- return !s || !s.value ? null : s.value.canMove ? i : v(r.parent);
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);
373
373
  }
374
- function O(r) {
374
+ function j(s) {
375
375
  return !!o;
376
376
  }
377
- function j() {
377
+ function k() {
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 w() {
380
+ function P() {
381
381
  }
382
- function E(r, s) {
382
+ function w(s, r) {
383
383
  }
384
- function S(r) {
385
- const { componentType: s } = r;
386
- let i = B(s, r);
387
- const l = s.toLowerCase().replace("-", "_");
388
- return i && !i.id && i.type === s && (i.id = `${l}_${Math.random().toString().slice(2, 6)}`), i;
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;
389
389
  }
390
- function P(r, s) {
391
- const i = String(r.getAttribute("data-controltype")), l = r.getAttribute("data-feature"), a = l ? JSON.parse(l) : {};
392
- a.parentComponentInstance = g.value;
393
- let h = B(i, a);
394
- const D = i.toLowerCase().replace("-", "_");
395
- return h && !h.id && h.type === i && (h.id = `${D}_${Math.random().toString().slice(2, 6)}`), h;
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;
396
396
  }
397
- function T(r) {
397
+ function T(s) {
398
398
  }
399
- function $(...r) {
399
+ function $(...s) {
400
400
  }
401
- return g.value = {
402
- canMove: k(),
401
+ return f.value = {
402
+ canMove: O(),
403
403
  canSelectParent: b(),
404
- canDelete: n(),
405
- canNested: !f(),
404
+ canDelete: c(),
405
+ canNested: !v(),
406
406
  contents: e == null ? void 0 : e.schema.contents,
407
407
  elementRef: t,
408
408
  parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
409
409
  schema: e == null ? void 0 : e.schema,
410
- styles: u,
410
+ styles: i,
411
411
  designerClass: y,
412
- canAccepts: O,
413
- getBelongedComponentInstance: p,
414
- getDraggableDesignItemElement: v,
415
- getDraggingDisplayText: j,
412
+ canAccepts: j,
413
+ getBelongedComponentInstance: u,
414
+ getDraggableDesignItemElement: h,
415
+ getDraggingDisplayText: k,
416
416
  getPropConfig: $,
417
- getDragScopeElement: w,
418
- onAcceptMovedChildElement: E,
419
- onAcceptNewChildElement: P,
417
+ getDragScopeElement: P,
418
+ onAcceptMovedChildElement: w,
419
+ onAcceptNewChildElement: E,
420
420
  onChildElementMovedOut: T,
421
421
  addNewChildComponentSchema: S,
422
- updateDragAndDropRules: c,
422
+ updateDragAndDropRules: l,
423
423
  triggerBelongedComponentToMoveWhenMoved: m(!1),
424
424
  triggerBelongedComponentToDeleteWhenDeleted: m(!1)
425
- }, g;
425
+ }, f;
426
426
  }
427
- const ge = /* @__PURE__ */ F({
427
+ const de = /* @__PURE__ */ q({
428
428
  name: "FStepDesign",
429
- props: V,
429
+ props: z,
430
430
  emits: [],
431
431
  setup(t, e) {
432
- const o = m(t.direction), c = m(t.fill), u = m(t.height), y = m(t.steps), g = m(0), k = m(t.clickable), b = m(0), n = m(), f = W("design-item-context"), p = he(n, f);
433
- J(() => {
434
- n.value.componentInstance = p;
435
- }), e.expose(p.value);
436
- const v = N(() => ({
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
437
  "f-progress-step-list": o.value === "horizontal",
438
438
  "f-progress-step-list-block": o.value === "vertical",
439
- "f-progress-step-horizontal-fill": o.value === "horizontal" && c.value,
440
- "f-progress-step-vertical-fill": o.value === "vertical" && c.value
441
- })), O = N(() => ({
442
- height: o.value === "vertical" ? `${u.value}px` : ""
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` : ""
443
443
  }));
444
- function j(l, a) {
445
- const h = {
444
+ function k(n, a) {
445
+ const g = {
446
446
  step: !0,
447
- active: a === g.value,
448
- clickable: k.value,
449
- "click-disable": l.disable,
450
- current: a === g.value
447
+ active: a === f.value,
448
+ clickable: O.value,
449
+ "click-disable": n.disable,
450
+ current: a === f.value
451
451
  };
452
- return a < g.value && (h.finish = !0), l.status && (h[l.status] = !0), l.hasOwnProperty("class") && l.class.split(" ").reduce((D, R) => (D[R] = !0, D), h), h;
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;
453
453
  }
454
- function w(l, a) {
454
+ function P(n, a) {
455
455
  }
456
- function E(l, a) {
457
- const h = {
456
+ function w(n, a) {
457
+ const g = {
458
458
  "f-progressstep-row": !0,
459
- "step-active": a === g.value,
460
- "step-current": a === g.value
459
+ "step-active": a === f.value,
460
+ "step-current": a === f.value
461
461
  };
462
- return a < g.value && (h["step-finish"] = !0), l.status && (h["step-" + l.status] = !0), h;
462
+ return a < f.value && (g["step-finish"] = !0), n.status && (g["step-" + n.status] = !0), g;
463
463
  }
464
- function S(l, a) {
465
- const h = {
464
+ function S(n, a) {
465
+ const g = {
466
466
  "step-icon": !0,
467
467
  "step-success": a,
468
468
  "k-icon": a,
469
469
  "k-i-check": a
470
470
  };
471
- return l.hasOwnProperty("icon") && l.class.split(" ").reduce((D, R) => (D[R] = !0, D), h), h;
471
+ return n.hasOwnProperty("icon") && n.class.split(" ").reduce((D, R) => (D[R] = !0, D), g), g;
472
472
  }
473
- function P(l, a) {
474
- const h = [];
475
- return l.icon ? h.push(d("span", {
476
- class: S(l, !1)
477
- }, null)) : a >= g.value || a === b.value ? h.push(d("span", {
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", {
478
478
  class: "step-icon"
479
- }, [a + 1])) : h.push(d("span", {
480
- class: S(l, !0)
481
- }, null)), h;
479
+ }, [a + 1])) : g.push(d("span", {
480
+ class: S(n, !0)
481
+ }, null)), g;
482
482
  }
483
- function T(l, a) {
483
+ function T(n, a) {
484
484
  return {
485
485
  "step-name": !0,
486
- "step-name-success": a < g.value
486
+ "step-name-success": a < f.value
487
487
  };
488
488
  }
489
- function $(l, a) {
489
+ function $(n, a) {
490
490
  return d("div", {
491
491
  class: "f-progress-step-title"
492
492
  }, [d("p", {
493
- class: T(l, a)
494
- }, [l.title])]);
493
+ class: T(n, a)
494
+ }, [n.title])]);
495
495
  }
496
- function M(l, a) {
496
+ function M(n, a) {
497
497
  return {
498
498
  "f-progress-step-line": !0,
499
- "f-progress-step-line-success": a === g.value
499
+ "f-progress-step-line-success": a === f.value
500
500
  };
501
501
  }
502
- function r(l, a) {
502
+ function s(n, a) {
503
503
  return a !== y.value.length - 1;
504
504
  }
505
- const s = N(() => ({
505
+ const r = N(() => ({
506
506
  triangle: !0,
507
507
  "": o.value === "vertical"
508
508
  }));
509
- function i() {
510
- return y.value.map((l, a) => d("li", {
511
- class: j(l, a),
512
- onClick: (h) => void 0
509
+ function p() {
510
+ return y.value.map((n, a) => d("li", {
511
+ class: k(n, a),
512
+ onClick: (g) => void 0
513
513
  }, [d("div", {
514
- class: E(l, a)
514
+ class: w(n, a)
515
515
  }, [d("div", {
516
516
  class: "f-progress-step-content"
517
- }, [P(l, a), $(l, a)]), r(l, a) && d("div", {
518
- class: M(l, a)
517
+ }, [E(n, a), $(n, a)]), s(n, a) && d("div", {
518
+ class: M(n, a)
519
519
  }, [d("span", {
520
- class: s.value
520
+ class: r.value
521
521
  }, null)])])]));
522
522
  }
523
523
  return () => d("div", {
524
- ref: n,
524
+ ref: c,
525
525
  class: "f-progress-step"
526
526
  }, [d("ul", {
527
- class: v.value,
528
- style: O.value
529
- }, [i()])]);
527
+ class: h.value,
528
+ style: j.value
529
+ }, [p()])]);
530
530
  }
531
- }), be = {
531
+ }), me = {
532
532
  install(t) {
533
533
  t.component(A.name, A);
534
534
  },
535
- register(t, e, o, c) {
536
- t.step = A, e.step = z;
535
+ register(t, e, o, l) {
536
+ t.step = A, e.step = V;
537
537
  },
538
538
  registerDesigner(t, e, o) {
539
- t.step = ge, e.step = z;
539
+ t.step = de, e.step = V;
540
540
  }
541
541
  };
542
542
  export {
543
543
  A as Step,
544
- be as default,
545
- z as propsResolver,
546
- V as stepProps
544
+ me as default,
545
+ V as propsResolver,
546
+ z as stepProps
547
547
  };