@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,115 +1,115 @@
1
- import { computed as h, defineComponent as A, ref as d, watch as F, createVNode as y, Fragment as x, inject as H, onMounted as Q } from "vue";
2
- import { cloneDeep as U } from "lodash-es";
3
- import { withInstall as Z } from "../common/index.esm.js";
4
- const V = {}, z = {};
1
+ import { computed as h, defineComponent as F, ref as d, watch as z, createVNode as y, Fragment as H, inject as Q, onMounted as U } from "vue";
2
+ import { isPlainObject as R, cloneDeep as Z } from "lodash-es";
3
+ import { withInstall as I } from "../common/index.esm.js";
4
+ const V = {}, q = {};
5
5
  function L(e) {
6
- const { properties: r, title: i } = e, s = Object.keys(r).reduce((n, u) => (n[u] = r[u].type === "object" && r[u].properties ? L(r[u]) : U(r[u].default), n), {});
7
- return s.id = `${i}-${Date.now()}`, s;
6
+ const { properties: r, title: g, ignore: s } = e, n = s && Array.isArray(s), i = Object.keys(r).reduce((f, a) => ((!n || !s.find((v) => v == a)) && (f[a] = r[a].type === "object" && r[a].properties ? L(r[a]) : Z(r[a].default)), f), {});
7
+ return (!n || !s.find((f) => f == "id")) && (i.id = `${g}-${Date.now()}`), i;
8
8
  }
9
- function W(e, r = {}) {
10
- const i = V[e];
11
- if (i) {
12
- let s = L(i);
13
- const n = z[e];
14
- return s = n ? n({ getSchemaByType: W }, s, r) : s, s;
9
+ function W(e, r = {}, g) {
10
+ const s = V[e];
11
+ if (s) {
12
+ let n = L(s);
13
+ const i = q[e];
14
+ return n = i ? i({ getSchemaByType: W }, n, r, g) : n, n;
15
15
  }
16
16
  return null;
17
17
  }
18
18
  function K(e, r) {
19
- const i = L(r);
20
- return Object.keys(e).reduce((s, n) => (s[n] && typeof s[n] == "object" ? Object.assign(s[n], e[n]) : s[n] = e[n], s), i), i;
19
+ const g = L(r);
20
+ return Object.keys(e).reduce((s, n) => (s[n] && R(s[n]) && R(e[n]) ? Object.assign(s[n], e[n]) : s[n] = e[n], s), g), g;
21
21
  }
22
- function I(e, r) {
22
+ function ee(e, r) {
23
23
  return Object.keys(e).filter((s) => e[s] != null).reduce((s, n) => {
24
24
  if (r.has(n)) {
25
- const u = r.get(n);
26
- if (typeof u == "string")
27
- s[u] = e[n];
25
+ const i = r.get(n);
26
+ if (typeof i == "string")
27
+ s[i] = e[n];
28
28
  else {
29
- const p = u(n, e[n], e);
30
- Object.assign(s, p);
29
+ const f = i(n, e[n], e);
30
+ Object.assign(s, f);
31
31
  }
32
32
  } else
33
33
  s[n] = e[n];
34
34
  return s;
35
35
  }, {});
36
36
  }
37
- function ee(e, r, i = /* @__PURE__ */ new Map()) {
37
+ function re(e, r, g = /* @__PURE__ */ new Map()) {
38
38
  const s = K(e, r);
39
- return I(s, i);
39
+ return ee(s, g);
40
40
  }
41
- function re(e = {}) {
42
- function r(t, o, c, a) {
43
- if (typeof c == "number")
44
- return a[t].length === c;
45
- if (typeof c == "object") {
46
- const m = Object.keys(c)[0], P = c[m];
41
+ function te(e = {}) {
42
+ function r(t, o, l, c) {
43
+ if (typeof l == "number")
44
+ return c[t].length === l;
45
+ if (typeof l == "object") {
46
+ const m = Object.keys(l)[0], b = l[m];
47
47
  if (m === "not")
48
- return Number(a[t].length) !== Number(P);
48
+ return Number(c[t].length) !== Number(b);
49
49
  if (m === "moreThan")
50
- return Number(a[t].length) >= Number(P);
50
+ return Number(c[t].length) >= Number(b);
51
51
  if (m === "lessThan")
52
- return Number(a[t].length) <= Number(P);
52
+ return Number(c[t].length) <= Number(b);
53
53
  }
54
54
  return !1;
55
55
  }
56
- function i(t, o, c, a) {
57
- return a[t] && a[t].propertyValue && String(a[t].propertyValue.value) === String(c);
56
+ function g(t, o, l, c) {
57
+ return c[t] && c[t].propertyValue && String(c[t].propertyValue.value) === String(l);
58
58
  }
59
59
  const s = /* @__PURE__ */ new Map([
60
60
  ["length", r],
61
- ["getProperty", i]
61
+ ["getProperty", g]
62
62
  ]);
63
63
  Object.keys(e).reduce((t, o) => (t.set(o, e[o]), t), s);
64
64
  function n(t, o) {
65
- const c = t;
66
- return typeof o == "number" ? [{ target: c, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: c, operator: "getProperty", param: t, value: !!o }] : typeof o == "object" ? Object.keys(o).map((a) => {
67
- if (a === "length")
68
- return { target: c, operator: "length", param: null, value: o[a] };
69
- const m = a, P = o[a];
70
- return { target: c, operator: "getProperty", param: m, value: P };
65
+ const l = t;
66
+ return typeof o == "number" ? [{ target: l, operator: "length", param: null, value: Number(o) }] : typeof o == "boolean" ? [{ target: l, operator: "getProperty", param: t, value: !!o }] : typeof o == "object" ? Object.keys(o).map((c) => {
67
+ if (c === "length")
68
+ return { target: l, operator: "length", param: null, value: o[c] };
69
+ const m = c, b = o[c];
70
+ return { target: l, operator: "getProperty", param: m, value: b };
71
71
  }) : [];
72
72
  }
73
- function u(t) {
74
- return Object.keys(t).reduce((c, a) => {
75
- const m = n(a, t[a]);
76
- return c.push(...m), c;
73
+ function i(t) {
74
+ return Object.keys(t).reduce((l, c) => {
75
+ const m = n(c, t[c]);
76
+ return l.push(...m), l;
77
77
  }, []);
78
78
  }
79
- function p(t, o) {
79
+ function f(t, o) {
80
80
  if (s.has(t.operator)) {
81
- const c = s.get(t.operator);
82
- return c && c(t.target, t.param, t.value, o) || !1;
81
+ const l = s.get(t.operator);
82
+ return l && l(t.target, t.param, t.value, o) || !1;
83
83
  }
84
84
  return !1;
85
85
  }
86
- function g(t, o) {
87
- return u(t).reduce((m, P) => m && p(P, o), !0);
86
+ function a(t, o) {
87
+ return i(t).reduce((m, b) => m && f(b, o), !0);
88
88
  }
89
89
  function v(t, o) {
90
- const c = Object.keys(t), a = c.includes("allOf"), m = c.includes("anyOf"), P = a || m, f = (P ? t[P ? a ? "allOf" : "anyOf" : "allOf"] : [t]).map((S) => g(S, o));
91
- return a ? !f.includes(!1) : f.includes(!0);
90
+ const l = Object.keys(t), c = l.includes("allOf"), m = l.includes("anyOf"), b = c || m, p = (b ? t[b ? c ? "allOf" : "anyOf" : "allOf"] : [t]).map((P) => a(P, o));
91
+ return c ? !p.includes(!1) : p.includes(!0);
92
92
  }
93
93
  return { parseValueSchema: v };
94
94
  }
95
- const te = {}, se = {};
96
- re();
97
- function ne(e, r, i = /* @__PURE__ */ new Map(), s = (p, g, v) => g, n = {}, u = (p) => p) {
98
- return V[r.title] = r, z[r.title] = s, te[r.title] = n, se[r.title] = u, (p = {}) => {
99
- const g = ee(p, r, i), v = Object.keys(e).reduce((t, o) => (t[o] = e[o].default, t), {});
100
- return Object.assign(v, g);
95
+ const se = {}, ne = {};
96
+ te();
97
+ function oe(e, r, g = /* @__PURE__ */ new Map(), s = (f, a, v) => a, n = {}, i = (f) => f) {
98
+ return V[r.title] = r, q[r.title] = s, se[r.title] = n, ne[r.title] = i, (f = {}) => {
99
+ const a = re(f, r, g), v = Object.keys(e).reduce((t, o) => (t[o] = e[o].default, t), {});
100
+ return Object.assign(v, a);
101
101
  };
102
102
  }
103
- function oe(e, r) {
103
+ function ae(e, r) {
104
104
  return { customClass: r.class, customStyle: r.style };
105
105
  }
106
- const ae = /* @__PURE__ */ new Map([
107
- ["appearance", oe]
106
+ const ce = /* @__PURE__ */ new Map([
107
+ ["appearance", ae]
108
108
  ]);
109
- function ce(e, r, i) {
109
+ function le(e, r, g) {
110
110
  return r;
111
111
  }
112
- const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/progress.schema.json", ie = "progress", fe = "A Farris Component", ge = "object", pe = {
112
+ const ue = "https://json-schema.org/draft/2020-12/schema", ie = "https://farris-design.gitee.io/progress.schema.json", fe = "progress", ge = "A Farris Component", pe = "object", de = {
113
113
  id: {
114
114
  description: "The unique identifier for progress",
115
115
  type: "string"
@@ -171,18 +171,18 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
171
171
  type: "boolean",
172
172
  default: !0
173
173
  }
174
- }, de = [
174
+ }, ye = [
175
175
  "id",
176
176
  "type"
177
- ], ye = {
178
- $schema: le,
179
- $id: ue,
180
- title: ie,
181
- description: fe,
182
- type: ge,
183
- properties: pe,
184
- required: de
185
- }, he = "progress", ve = "A Farris Component", me = "object", ke = {
177
+ ], he = {
178
+ $schema: ue,
179
+ $id: ie,
180
+ title: fe,
181
+ description: ge,
182
+ type: pe,
183
+ properties: de,
184
+ required: ye
185
+ }, ve = "progress", me = "A Farris Component", ke = "object", be = {
186
186
  basic: {
187
187
  description: "Basic Infomation",
188
188
  title: "基本信息",
@@ -204,12 +204,12 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
204
204
  }
205
205
  }
206
206
  }
207
- }, be = {
208
- title: he,
209
- description: ve,
210
- type: me,
211
- categories: ke
212
- }, R = {
207
+ }, Pe = {
208
+ title: ve,
209
+ description: me,
210
+ type: ke,
211
+ categories: be
212
+ }, A = {
213
213
  progressType: { type: String, default: "line" },
214
214
  strokeWidth: { type: Number, default: 0 },
215
215
  size: { type: String, default: "default" },
@@ -240,245 +240,245 @@ const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
240
240
  * 格式化进度信息
241
241
  */
242
242
  format: { type: Function, default: (e, r) => `${e}%` }
243
- }, q = ne(R, ye, ae, ce, be);
244
- function Pe(e) {
245
- function r(p) {
246
- return +p.replace("%", "");
243
+ }, _ = oe(A, he, ce, le, Pe);
244
+ function Se(e) {
245
+ function r(f) {
246
+ return +f.replace("%", "");
247
247
  }
248
- function i(p) {
249
- let g = [];
250
- return Object.keys(p).forEach((v) => {
251
- const t = p[v], o = r(v);
252
- isNaN(o) || g.push({
248
+ function g(f) {
249
+ let a = [];
250
+ return Object.keys(f).forEach((v) => {
251
+ const t = f[v], o = r(v);
252
+ isNaN(o) || a.push({
253
253
  key: o,
254
254
  value: t
255
255
  });
256
- }), g = g.sort((v, t) => v.key - t.key), g;
256
+ }), a = a.sort((v, t) => v.key - t.key), a;
257
257
  }
258
258
  const s = h(() => !!e.strokeColor && typeof e.strokeColor != "string"), n = h(() => {
259
- const { from: p = "#59a1ff", to: g = "#59a1ff", direction: v = "to right", ...t } = e.strokeColor;
259
+ const { from: f = "#59a1ff", to: a = "#59a1ff", direction: v = "to right", ...t } = e.strokeColor;
260
260
  if (Object.keys(t).length !== 0) {
261
- const o = i(t).map(({ key: c, value: a }) => `${a} ${c}%`).join(", ");
261
+ const o = g(t).map(({ key: l, value: c }) => `${c} ${l}%`).join(", ");
262
262
  return `linear-gradient(${v}, ${o})`;
263
263
  }
264
- return `linear-gradient(${v}, ${p}, ${g})`;
265
- }), u = h(() => i(e.strokeColor).map(({ key: p, value: g }) => ({ offset: `${p}%`, color: g })));
264
+ return `linear-gradient(${v}, ${f}, ${a})`;
265
+ }), i = h(() => g(e.strokeColor).map(({ key: f, value: a }) => ({ offset: `${f}%`, color: a })));
266
266
  return {
267
267
  isGradient: s,
268
268
  linearGradient: n,
269
- circleGradient: u
269
+ circleGradient: i
270
270
  };
271
271
  }
272
- function Se(e) {
272
+ function $e(e) {
273
273
  return { strokeWidth: h(() => e.strokeWidth || (e.progressType === "line" && e.size !== "small" ? 8 : 6)) };
274
274
  }
275
- function $e(e) {
275
+ function we(e) {
276
276
  return { formatPercentageText: h(() => e.format(e.percent, e.successPercent)) };
277
277
  }
278
- function we(e, r, i, s) {
279
- const { isCircleStyle: n } = r, { isGradient: u, linearGradient: p } = i, { strokeWidth: g } = s, v = h(() => {
280
- const f = {
278
+ function je(e, r, g, s) {
279
+ const { isCircleStyle: n } = r, { isGradient: i, linearGradient: f } = g, { strokeWidth: a } = s, v = h(() => {
280
+ const p = {
281
281
  "f-progress": !0,
282
282
  "f-progress-line": e.progressType === "line",
283
283
  "ant-progress-small": e.size === "small",
284
284
  "f-progress-show-info": e.showInfo,
285
285
  "f-progress-circle": n.value
286
286
  }, $ = `f-progress-status-${e.progressStatus}`;
287
- return f[$] = !0, f;
287
+ return p[$] = !0, p;
288
288
  }), t = h(() => ({
289
289
  width: `${e.width}px`,
290
290
  height: `${e.width}px`,
291
291
  "font-size": `${e.width * 0.15 + 6}px`,
292
- "f-progress-circle-gradient": u.value
292
+ "f-progress-circle-gradient": i.value
293
293
  })), o = h(() => ({
294
294
  "f-progress-inner": !0,
295
- "f-progress-circle-gradient": u.value
296
- })), c = 0, a = h(() => c + 1), m = h(() => {
297
- const f = 50 - g.value / 2, $ = e.gapPosition || (e.progressType === "circle" ? "top" : "bottom");
298
- let S = 0, w = -f, O = 0, l = f * -2;
295
+ "f-progress-circle-gradient": i.value
296
+ })), l = 0, c = h(() => l + 1), m = h(() => {
297
+ const p = 50 - a.value / 2, $ = e.gapPosition || (e.progressType === "circle" ? "top" : "bottom");
298
+ let P = 0, w = -p, O = 0, u = p * -2;
299
299
  switch ($) {
300
300
  case "left":
301
- S = -f, w = 0, O = f * 2, l = 0;
301
+ P = -p, w = 0, O = p * 2, u = 0;
302
302
  break;
303
303
  case "right":
304
- S = f, w = 0, O = f * -2, l = 0;
304
+ P = p, w = 0, O = p * -2, u = 0;
305
305
  break;
306
306
  case "bottom":
307
- w = f, l = f * 2;
307
+ w = p, u = p * 2;
308
308
  break;
309
309
  }
310
- return `M 50,50 m ${S},${w}
311
- a ${f},${f} 0 1 1 ${O},${-l}
312
- a ${f},${f} 0 1 1 ${-O},${l}`;
313
- }), P = h(() => {
314
- const f = 50 - g.value / 2, $ = Math.PI * 2 * f, S = e.gapDegree || (e.progressType === "circle" ? 0 : 75);
310
+ return `M 50,50 m ${P},${w}
311
+ a ${p},${p} 0 1 1 ${O},${-u}
312
+ a ${p},${p} 0 1 1 ${-O},${u}`;
313
+ }), b = h(() => {
314
+ const p = 50 - a.value / 2, $ = Math.PI * 2 * p, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75);
315
315
  return {
316
- strokeDasharray: `${$ - S}px ${$}px`,
317
- strokeDashoffset: `-${S / 2}px`,
316
+ strokeDasharray: `${$ - P}px ${$}px`,
317
+ strokeDashoffset: `-${P / 2}px`,
318
318
  transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
319
319
  };
320
- }), T = h(() => {
321
- const f = 50 - g.value / 2, $ = Math.PI * 2 * f, S = e.gapDegree || (e.progressType === "circle" ? 0 : 75), w = e.successPercent !== void 0 && e.successPercent !== null ? [e.successPercent, e.percent] : [e.percent];
322
- return w.map((O, l) => {
323
- const k = w.length === 2 && l === 0;
320
+ }), D = h(() => {
321
+ const p = 50 - a.value / 2, $ = Math.PI * 2 * p, P = e.gapDegree || (e.progressType === "circle" ? 0 : 75), w = e.successPercent !== void 0 && e.successPercent !== null ? [e.successPercent, e.percent] : [e.percent];
322
+ return w.map((O, u) => {
323
+ const k = w.length === 2 && u === 0;
324
324
  return {
325
- stroke: u.value && !k ? `url(#gradient-${a.value})` : null,
325
+ stroke: i.value && !k ? `url(#gradient-${c.value})` : null,
326
326
  strokePathStyle: {
327
- stroke: u.value ? null : k ? "default" : e.strokeColor,
327
+ stroke: i.value ? null : k ? "default" : e.strokeColor,
328
328
  transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",
329
- strokeDasharray: `${(O || 0) / 100 * ($ - S)}px ${$}px`,
330
- strokeDashoffset: `-${S / 2}px`
329
+ strokeDasharray: `${(O || 0) / 100 * ($ - P)}px ${$}px`,
330
+ strokeDashoffset: `-${P / 2}px`
331
331
  }
332
332
  };
333
333
  }).reverse();
334
- }), B = h(() => ({
334
+ }), T = h(() => ({
335
335
  width: `${e.percent}%`,
336
336
  "border-radius": e.strokeLinecap === "round" ? "100px" : "0",
337
- background: u.value ? null : e.strokeColor,
338
- "background-image": u.value ? p.value : null,
339
- height: `${g.value}px`
337
+ background: i.value ? null : e.strokeColor,
338
+ "background-image": i.value ? f.value : null,
339
+ height: `${a.value}px`
340
340
  }));
341
341
  return {
342
342
  progressClass: v,
343
343
  inCircleProgressBarStyle: t,
344
344
  inCircleProgressBarClass: o,
345
345
  pathString: m,
346
- trailPathStyle: P,
347
- progressCirclePaths: T,
348
- gradientId: a,
349
- inlineProgressBackgroundStyle: B
346
+ trailPathStyle: b,
347
+ progressCirclePaths: D,
348
+ gradientId: c,
349
+ inlineProgressBackgroundStyle: T
350
350
  };
351
351
  }
352
- function je(e) {
352
+ function Oe(e) {
353
353
  return { isCircleStyle: h(() => e.progressType === "circle" || e.progressType === "dashboard") };
354
354
  }
355
- function Oe(e) {
355
+ function Be(e) {
356
356
  const r = h(() => {
357
357
  const n = {
358
358
  "f-progress-text-icon": !0,
359
359
  "f-icon": !0
360
- }, u = `f-icon-${e.progressStatus}`;
361
- return n[u] = !0, n;
362
- }), i = h(() => {
360
+ }, i = `f-icon-${e.progressStatus}`;
361
+ return n[i] = !0, n;
362
+ }), g = h(() => {
363
363
  const n = {
364
364
  "f-progress-text-icon": !0,
365
365
  "f-icon": !0
366
- }, u = e.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
367
- return n[u] = !0, n;
366
+ }, i = e.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
367
+ return n[i] = !0, n;
368
368
  }), s = h(() => e.progressStatus === "error" || e.progressStatus === "success");
369
369
  return {
370
370
  inlineProgrssStatusClass: r,
371
- circleProgrssStatusClass: i,
371
+ circleProgrssStatusClass: g,
372
372
  shouldShowStatus: s
373
373
  };
374
374
  }
375
- function Be(e) {
375
+ function Te(e) {
376
376
  const r = h(() => ({
377
377
  width: `${e.successPercent}%`,
378
378
  "border-radius": e.strokeLinecap === "round" ? "100px" : "0",
379
379
  height: `${e.strokeWidth}px`,
380
380
  "background-image": e.enableBackgroundImg ? `url(${e.backgroundImg})` : null
381
- })), i = h(() => e.successPercent || e.successPercent === 0);
382
- return { inlineProgressSuccessBackgroundStyle: r, shouldShowSuccessInlineProgressBackground: i };
381
+ })), g = h(() => e.successPercent || e.successPercent === 0);
382
+ return { inlineProgressSuccessBackgroundStyle: r, shouldShowSuccessInlineProgressBackground: g };
383
383
  }
384
- const G = /* @__PURE__ */ A({
384
+ const G = /* @__PURE__ */ F({
385
385
  name: "FProgress",
386
- props: R,
386
+ props: A,
387
387
  emits: [],
388
388
  setup(e) {
389
- const r = d(e.progressType), i = d(e.showInfo), s = d(e.percent), n = d(e.strokeLinecap), u = Pe(e), {
390
- isGradient: p,
391
- circleGradient: g
392
- } = u, v = Se(e), {
389
+ const r = d(e.progressType), g = d(e.showInfo), s = d(e.percent), n = d(e.strokeLinecap), i = Se(e), {
390
+ isGradient: f,
391
+ circleGradient: a
392
+ } = i, v = $e(e), {
393
393
  strokeWidth: t
394
394
  } = v, {
395
395
  formatPercentageText: o
396
- } = $e(e), c = je(e), {
397
- isCircleStyle: a
398
- } = c, {
396
+ } = we(e), l = Oe(e), {
397
+ isCircleStyle: c
398
+ } = l, {
399
399
  progressClass: m,
400
- inCircleProgressBarStyle: P,
401
- inCircleProgressBarClass: T,
402
- pathString: B,
403
- trailPathStyle: f,
400
+ inCircleProgressBarStyle: b,
401
+ inCircleProgressBarClass: D,
402
+ pathString: T,
403
+ trailPathStyle: p,
404
404
  progressCirclePaths: $,
405
- gradientId: S,
405
+ gradientId: P,
406
406
  inlineProgressBackgroundStyle: w
407
- } = we(e, c, u, v), {
407
+ } = je(e, l, i, v), {
408
408
  inlineProgrssStatusClass: O,
409
- circleProgrssStatusClass: l,
409
+ circleProgrssStatusClass: u,
410
410
  shouldShowStatus: k
411
- } = Oe(e), {
412
- inlineProgressSuccessBackgroundStyle: b,
413
- shouldShowSuccessInlineProgressBackground: M
414
- } = Be(e);
415
- F(() => e.percent, (C) => {
416
- s.value = C || 0;
411
+ } = Be(e), {
412
+ inlineProgressSuccessBackgroundStyle: S,
413
+ shouldShowSuccessInlineProgressBackground: B
414
+ } = Te(e);
415
+ z(() => e.percent, (N) => {
416
+ s.value = N || 0;
417
417
  });
418
- function N() {
419
- return i.value && y("span", {
418
+ function C() {
419
+ return g.value && y("span", {
420
420
  class: "f-progress-text"
421
421
  }, [k.value ? y("span", {
422
- class: a.value ? l.value : O.value
422
+ class: c.value ? u.value : O.value
423
423
  }, null) : o.value]);
424
424
  }
425
- function D() {
426
- return y(x, null, [y("div", {
425
+ function M() {
426
+ return y(H, null, [y("div", {
427
427
  class: "f-progress-outer"
428
428
  }, [y("div", {
429
429
  class: "f-progress-inner"
430
430
  }, [y("div", {
431
431
  class: "f-progress-bg",
432
432
  style: w.value
433
- }, null), M.value && y("div", {
433
+ }, null), B.value && y("div", {
434
434
  class: "f-progress-success-bg",
435
- style: b.value
436
- }, null)])]), N()]);
435
+ style: S.value
436
+ }, null)])]), C()]);
437
437
  }
438
438
  function E() {
439
439
  return y("div", {
440
- class: T.value,
441
- style: P.value
440
+ class: D.value,
441
+ style: b.value
442
442
  }, [y("svg", {
443
443
  class: "f-progress-circle",
444
444
  viewBox: "0 0 100 100"
445
- }, [p.value && y("defs", null, [y("linearGradient", {
446
- id: "gradient-" + S.value,
445
+ }, [f.value && y("defs", null, [y("linearGradient", {
446
+ id: "gradient-" + P.value,
447
447
  x1: "100%",
448
448
  y1: "0%",
449
449
  x2: "0%",
450
450
  y2: "0%"
451
- }, [g.value.map((C) => y("stop", {
452
- offset: C.offset,
453
- "stop-color": C.color
451
+ }, [a.value.map((N) => y("stop", {
452
+ offset: N.offset,
453
+ "stop-color": N.color
454
454
  }, null))])]), y("path", {
455
455
  class: "f-progress-circle-trail",
456
456
  stroke: "#efefef",
457
457
  "fill-opacity": "0",
458
458
  "stroke-width": t.value,
459
- d: B.value,
460
- style: f.value
461
- }, null), $.value.map((C) => y("path", {
459
+ d: T.value,
460
+ style: p.value
461
+ }, null), $.value.map((N) => y("path", {
462
462
  class: "f-progress-circle-path",
463
463
  "fill-opacity": "0",
464
- d: B.value,
464
+ d: T.value,
465
465
  "stroke-linecap": n.value,
466
- stroke: C.stroke,
466
+ stroke: N.stroke,
467
467
  "stroke-width": s.value ? t.value : 0,
468
- style: C.strokePathStyle
469
- }, null))]), N()]);
468
+ style: N.strokePathStyle
469
+ }, null))]), C()]);
470
470
  }
471
471
  return () => y("div", {
472
472
  class: m.value
473
- }, [r.value === "line" && D(), a.value && E()]);
473
+ }, [r.value === "line" && M(), c.value && E()]);
474
474
  }
475
475
  });
476
- function Te(e, r, i) {
476
+ function De(e, r, g) {
477
477
  var O;
478
478
  function s() {
479
479
  }
480
- const n = "", u = "", p = d();
481
- function g() {
480
+ const n = "", i = "", f = d();
481
+ function a() {
482
482
  return (r == null ? void 0 : r.schema.componentType) !== "frame";
483
483
  }
484
484
  function v() {
@@ -490,47 +490,47 @@ function Te(e, r, i) {
490
490
  function o() {
491
491
  return (r == null ? void 0 : r.schema.componentType) === "frame";
492
492
  }
493
- function c(l) {
494
- if (!l || !l.value)
493
+ function l(u) {
494
+ if (!u || !u.value)
495
495
  return null;
496
- if (l.value.schema && l.value.schema.type === "component")
497
- return l.value;
498
- const k = d(l == null ? void 0 : l.value.parent), b = c(k);
499
- return b || null;
496
+ if (u.value.schema && u.value.schema.type === "component")
497
+ return u.value;
498
+ const k = d(u == null ? void 0 : u.value.parent), S = l(k);
499
+ return S || null;
500
500
  }
501
- function a(l = r) {
502
- const { componentInstance: k, designerItemElementRef: b } = l;
503
- return !k || !k.value ? null : k.value.canMove ? b : a(l.parent);
501
+ function c(u = r) {
502
+ const { componentInstance: k, designerItemElementRef: S } = u;
503
+ return !k || !k.value ? null : k.value.canMove ? S : c(u.parent);
504
504
  }
505
- function m(l) {
506
- return !!i;
505
+ function m(u) {
506
+ return !!g;
507
507
  }
508
- function P() {
508
+ function b() {
509
509
  return (r == null ? void 0 : r.schema.label) || (r == null ? void 0 : r.schema.title) || (r == null ? void 0 : r.schema.name);
510
510
  }
511
- function T() {
511
+ function D() {
512
512
  }
513
- function B(l, k) {
513
+ function T(u, k) {
514
514
  }
515
- function f(l) {
516
- const { componentType: k } = l;
517
- let b = W(k, l);
518
- const M = k.toLowerCase().replace("-", "_");
519
- return b && !b.id && b.type === k && (b.id = `${M}_${Math.random().toString().slice(2, 6)}`), b;
515
+ function p(u, k) {
516
+ const { componentType: S } = u;
517
+ let B = W(S, u, k);
518
+ const C = S.toLowerCase().replace("-", "_");
519
+ return B && !B.id && B.type === S && (B.id = `${C}_${Math.random().toString().slice(2, 6)}`), B;
520
520
  }
521
- function $(l, k) {
522
- const b = String(l.getAttribute("data-controltype")), M = l.getAttribute("data-feature"), N = M ? JSON.parse(M) : {};
523
- N.parentComponentInstance = p.value;
524
- let D = W(b, N);
525
- const E = b.toLowerCase().replace("-", "_");
526
- return D && !D.id && D.type === b && (D.id = `${E}_${Math.random().toString().slice(2, 6)}`), D;
521
+ function $(u, k) {
522
+ const S = String(u.getAttribute("data-controltype")), B = u.getAttribute("data-feature"), C = B ? JSON.parse(B) : {};
523
+ C.parentComponentInstance = f.value;
524
+ let M = W(S, C);
525
+ const E = S.toLowerCase().replace("-", "_");
526
+ return M && !M.id && M.type === S && (M.id = `${E}_${Math.random().toString().slice(2, 6)}`), M;
527
527
  }
528
- function S(l) {
528
+ function P(u) {
529
529
  }
530
- function w(...l) {
530
+ function w(...u) {
531
531
  }
532
- return p.value = {
533
- canMove: g(),
532
+ return f.value = {
533
+ canMove: a(),
534
534
  canSelectParent: v(),
535
535
  canDelete: t(),
536
536
  canNested: !o(),
@@ -539,87 +539,87 @@ function Te(e, r, i) {
539
539
  parent: (O = r == null ? void 0 : r.parent) == null ? void 0 : O.componentInstance,
540
540
  schema: r == null ? void 0 : r.schema,
541
541
  styles: n,
542
- designerClass: u,
542
+ designerClass: i,
543
543
  canAccepts: m,
544
- getBelongedComponentInstance: c,
545
- getDraggableDesignItemElement: a,
546
- getDraggingDisplayText: P,
544
+ getBelongedComponentInstance: l,
545
+ getDraggableDesignItemElement: c,
546
+ getDraggingDisplayText: b,
547
547
  getPropConfig: w,
548
- getDragScopeElement: T,
549
- onAcceptMovedChildElement: B,
548
+ getDragScopeElement: D,
549
+ onAcceptMovedChildElement: T,
550
550
  onAcceptNewChildElement: $,
551
- onChildElementMovedOut: S,
552
- addNewChildComponentSchema: f,
551
+ onChildElementMovedOut: P,
552
+ addNewChildComponentSchema: p,
553
553
  updateDragAndDropRules: s,
554
554
  triggerBelongedComponentToMoveWhenMoved: d(!1),
555
555
  triggerBelongedComponentToDeleteWhenDeleted: d(!1)
556
- }, p;
556
+ }, f;
557
557
  }
558
- const De = /* @__PURE__ */ A({
558
+ const Ce = /* @__PURE__ */ F({
559
559
  name: "FProgressDesign",
560
- props: R,
560
+ props: A,
561
561
  emits: [],
562
562
  setup(e, r) {
563
- const i = d(e.progressStatus), s = d(e.progressType), n = d(e.size), u = d(e.showInfo), p = d(e.strokeWidth), g = d(e.percent), v = d(e.strokeLinecap), t = d(!1), o = d(e.strokeColor), c = d(null), a = d(0), m = d(e.width), P = d(""), T = d([]), B = d(""), f = d([]), $ = d(e.enableBackgroundImg), S = d(e.backgroundImg), w = d(), O = H("design-item-context"), l = Te(w, O);
564
- Q(() => {
565
- w.value.componentInstance = l;
566
- }), r.expose(l.value), F(() => e.percent, (j) => {
567
- g.value = j || 0;
563
+ const g = d(e.progressStatus), s = d(e.progressType), n = d(e.size), i = d(e.showInfo), f = d(e.strokeWidth), a = d(e.percent), v = d(e.strokeLinecap), t = d(!1), o = d(e.strokeColor), l = d(null), c = d(0), m = d(e.width), b = d(""), D = d([]), T = d(""), p = d([]), $ = d(e.enableBackgroundImg), P = d(e.backgroundImg), w = d(), O = Q("design-item-context"), u = De(w, O);
564
+ U(() => {
565
+ w.value.componentInstance = u;
566
+ }), r.expose(u.value), z(() => e.percent, (j) => {
567
+ a.value = j || 0;
568
568
  });
569
- const k = h(() => p.value || (s.value === "line" && n.value !== "small" ? 8 : 6)), b = h(() => s.value === "circle" || s.value === "dashboard"), M = h(() => {
569
+ const k = h(() => f.value || (s.value === "line" && n.value !== "small" ? 8 : 6)), S = h(() => s.value === "circle" || s.value === "dashboard"), B = h(() => {
570
570
  const j = {
571
571
  "f-progress": !0,
572
572
  "f-progress-line": s.value === "line",
573
573
  "ant-progress-small": n.value === "small",
574
- "f-progress-show-info": u.value,
575
- ".f-progress-circle": b.value
576
- }, J = `f-progress-status-${i.value}`;
577
- return j[J] = !0, j;
578
- }), N = h(() => ({
579
- width: `${g.value}%`,
574
+ "f-progress-show-info": i.value,
575
+ ".f-progress-circle": S.value
576
+ }, x = `f-progress-status-${g.value}`;
577
+ return j[x] = !0, j;
578
+ }), C = h(() => ({
579
+ width: `${a.value}%`,
580
580
  "border-radius": v.value === "round" ? "100px" : "0",
581
581
  backgroud: t.value ? null : o.value,
582
- "background-image": t.value ? c.value : null,
582
+ "background-image": t.value ? l.value : null,
583
583
  height: `${k.value}px`
584
- })), D = h(() => ({
585
- width: `${g.value}%`,
584
+ })), M = h(() => ({
585
+ width: `${a.value}%`,
586
586
  "border-radius": v.value === "round" ? "100px" : "0",
587
587
  height: `${k.value}px`,
588
- "background-image": $.value ? S.value : null
589
- })), E = h(() => a.value || a.value === 0);
590
- function C() {
588
+ "background-image": $.value ? P.value : null
589
+ })), E = h(() => c.value || c.value === 0);
590
+ function N() {
591
591
  return y("div", {
592
592
  class: "f-progress-outer"
593
593
  }, [y("div", {
594
594
  class: "f-progress-inner"
595
595
  }, [y("div", {
596
596
  class: "f-progress-bg",
597
- style: N.value
597
+ style: C.value
598
598
  }, null), E.value && y("div", {
599
599
  class: "f-progress-success-bg",
600
- style: D.value
600
+ style: M.value
601
601
  }, null)])]);
602
602
  }
603
- const _ = h(() => ({
603
+ const X = h(() => ({
604
604
  width: `${m.value}px`,
605
605
  height: `${m.value}px`,
606
606
  "font-size": `${m.value * 0.15 + 6}px`,
607
607
  "f-progress-circle-gradient": t.value
608
- })), X = h(() => ({}));
609
- function Y() {
608
+ })), Y = h(() => ({}));
609
+ function J() {
610
610
  return y("div", {
611
611
  class: "f-progress-inner",
612
- style: _.value
612
+ style: X.value
613
613
  }, [y("svg", {
614
614
  class: "f-progress-circle",
615
615
  viewBox: "0 0 100 100"
616
616
  }, [t.value && y("defs", null, [y("linearGradient", {
617
- id: "gradient-" + P.value,
617
+ id: "gradient-" + b.value,
618
618
  x1: "100%",
619
619
  y1: "0%",
620
620
  x2: "0%",
621
621
  y2: "0%"
622
- }, [T.value.map((j) => y("stop", {
622
+ }, [D.value.map((j) => y("stop", {
623
623
  offset: j.offset,
624
624
  "stop-color": j.color
625
625
  }, null))])]), y("path", {
@@ -627,34 +627,34 @@ const De = /* @__PURE__ */ A({
627
627
  stroke: "#efefef",
628
628
  "fill-opacity": "0",
629
629
  "stroke-width": k.value,
630
- d: B.value,
631
- style: X.value
632
- }, null), f.value.map((j) => y("path", {
630
+ d: T.value,
631
+ style: Y.value
632
+ }, null), p.value.map((j) => y("path", {
633
633
  class: "f-progress-circle-path",
634
634
  "fill-opacity": "0",
635
- d: B.value,
635
+ d: T.value,
636
636
  "stroke-linecap": v.value,
637
637
  stroke: j.stroke,
638
- "stroke-width": g.value ? k.value : 0,
638
+ "stroke-width": a.value ? k.value : 0,
639
639
  style: j.strokePathStyle
640
640
  }, null))])]);
641
641
  }
642
642
  return () => y("div", {
643
643
  ref: w,
644
- class: M.value
645
- }, [s.value === "line" && C(), b.value && Y()]);
644
+ class: B.value
645
+ }, [s.value === "line" && N(), S.value && J()]);
646
646
  }
647
647
  });
648
- G.register = (e, r, i) => {
649
- e.progress = G, r.progress = q;
648
+ G.register = (e, r, g) => {
649
+ e.progress = G, r.progress = _;
650
650
  };
651
- G.registerDesigner = (e, r, i) => {
652
- e.progress = De, r.progress = q;
651
+ G.registerDesigner = (e, r, g) => {
652
+ e.progress = Ce, r.progress = _;
653
653
  };
654
- const Ee = Z(G);
654
+ const Ge = I(G);
655
655
  export {
656
656
  G as Progress,
657
- Ee as default,
658
- R as progressProps,
659
- q as propsResolver
657
+ Ge as default,
658
+ A as progressProps,
659
+ _ as propsResolver
660
660
  };