@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 Z, ref as r, onMounted as J, computed as W, watch as ee, createVNode as k, withModifiers as A, createTextVNode as $, inject as te } from "vue";
2
- import { cloneDeep as ae } from "lodash-es";
3
- const K = {}, x = {};
1
+ import { defineComponent as K, ref as r, onMounted as J, computed as W, watch as te, createVNode as D, withModifiers as R, createTextVNode as L, inject as ae } from "vue";
2
+ import { isPlainObject as Z, cloneDeep as le } from "lodash-es";
3
+ const x = {}, I = {};
4
4
  function Q(t) {
5
- const { properties: e, title: a } = t, n = Object.keys(e).reduce((i, y) => (i[y] = e[y].type === "object" && e[y].properties ? Q(e[y]) : ae(e[y].default), i), {});
6
- return n.id = `${a}-${Date.now()}`, n;
5
+ const { properties: e, title: a, ignore: n } = t, o = n && Array.isArray(n), b = Object.keys(e).reduce((m, h) => ((!o || !n.find((E) => E == h)) && (m[h] = e[h].type === "object" && e[h].properties ? Q(e[h]) : le(e[h].default)), m), {});
6
+ return (!o || !n.find((m) => m == "id")) && (b.id = `${a}-${Date.now()}`), b;
7
7
  }
8
- function G(t, e = {}) {
9
- const a = K[t];
10
- if (a) {
11
- let n = Q(a);
12
- const i = x[t];
13
- return n = i ? i({ getSchemaByType: G }, n, e) : n, n;
8
+ function G(t, e = {}, a) {
9
+ const n = x[t];
10
+ if (n) {
11
+ let o = Q(n);
12
+ const b = I[t];
13
+ return o = b ? b({ getSchemaByType: G }, o, e, a) : o, o;
14
14
  }
15
15
  return null;
16
16
  }
17
- function le(t, e) {
17
+ function re(t, e) {
18
18
  const a = Q(e);
19
- return Object.keys(t).reduce((n, i) => (n[i] && typeof n[i] == "object" ? Object.assign(n[i], t[i]) : n[i] = t[i], n), a), a;
19
+ return Object.keys(t).reduce((n, o) => (n[o] && Z(n[o]) && Z(t[o]) ? Object.assign(n[o], t[o]) : n[o] = t[o], n), a), a;
20
20
  }
21
- function re(t, e) {
22
- return Object.keys(t).filter((n) => t[n] != null).reduce((n, i) => {
23
- if (e.has(i)) {
24
- const y = e.get(i);
25
- if (typeof y == "string")
26
- n[y] = t[i];
21
+ function ne(t, e) {
22
+ return Object.keys(t).filter((n) => t[n] != null).reduce((n, o) => {
23
+ if (e.has(o)) {
24
+ const b = e.get(o);
25
+ if (typeof b == "string")
26
+ n[b] = t[o];
27
27
  else {
28
- const O = y(i, t[i], t);
29
- Object.assign(n, O);
28
+ const m = b(o, t[o], t);
29
+ Object.assign(n, m);
30
30
  }
31
31
  } else
32
- n[i] = t[i];
32
+ n[o] = t[o];
33
33
  return n;
34
34
  }, {});
35
35
  }
36
- function ne(t, e, a = /* @__PURE__ */ new Map()) {
37
- const n = le(t, e);
38
- return re(n, a);
36
+ function oe(t, e, a = /* @__PURE__ */ new Map()) {
37
+ const n = re(t, e);
38
+ return ne(n, a);
39
39
  }
40
- function oe(t = {}) {
41
- function e(l, s, p, f) {
42
- if (typeof p == "number")
43
- return f[l].length === p;
44
- if (typeof p == "object") {
45
- const h = Object.keys(p)[0], b = p[h];
46
- if (h === "not")
47
- return Number(f[l].length) !== Number(b);
48
- if (h === "moreThan")
49
- return Number(f[l].length) >= Number(b);
50
- if (h === "lessThan")
51
- return Number(f[l].length) <= Number(b);
40
+ function se(t = {}) {
41
+ function e(l, u, d, f) {
42
+ if (typeof d == "number")
43
+ return f[l].length === d;
44
+ if (typeof d == "object") {
45
+ const S = Object.keys(d)[0], M = d[S];
46
+ if (S === "not")
47
+ return Number(f[l].length) !== Number(M);
48
+ if (S === "moreThan")
49
+ return Number(f[l].length) >= Number(M);
50
+ if (S === "lessThan")
51
+ return Number(f[l].length) <= Number(M);
52
52
  }
53
53
  return !1;
54
54
  }
55
- function a(l, s, p, f) {
56
- return f[l] && f[l].propertyValue && String(f[l].propertyValue.value) === String(p);
55
+ function a(l, u, d, f) {
56
+ return f[l] && f[l].propertyValue && String(f[l].propertyValue.value) === String(d);
57
57
  }
58
58
  const n = /* @__PURE__ */ new Map([
59
59
  ["length", e],
60
60
  ["getProperty", a]
61
61
  ]);
62
- Object.keys(t).reduce((l, s) => (l.set(s, t[s]), l), n);
63
- function i(l, s) {
64
- const p = l;
65
- return typeof s == "number" ? [{ target: p, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: p, operator: "getProperty", param: l, value: !!s }] : typeof s == "object" ? Object.keys(s).map((f) => {
62
+ Object.keys(t).reduce((l, u) => (l.set(u, t[u]), l), n);
63
+ function o(l, u) {
64
+ const d = l;
65
+ return typeof u == "number" ? [{ target: d, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: d, operator: "getProperty", param: l, value: !!u }] : typeof u == "object" ? Object.keys(u).map((f) => {
66
66
  if (f === "length")
67
- return { target: p, operator: "length", param: null, value: s[f] };
68
- const h = f, b = s[f];
69
- return { target: p, operator: "getProperty", param: h, value: b };
67
+ return { target: d, operator: "length", param: null, value: u[f] };
68
+ const S = f, M = u[f];
69
+ return { target: d, operator: "getProperty", param: S, value: M };
70
70
  }) : [];
71
71
  }
72
- function y(l) {
73
- return Object.keys(l).reduce((p, f) => {
74
- const h = i(f, l[f]);
75
- return p.push(...h), p;
72
+ function b(l) {
73
+ return Object.keys(l).reduce((d, f) => {
74
+ const S = o(f, l[f]);
75
+ return d.push(...S), d;
76
76
  }, []);
77
77
  }
78
- function O(l, s) {
78
+ function m(l, u) {
79
79
  if (n.has(l.operator)) {
80
- const p = n.get(l.operator);
81
- return p && p(l.target, l.param, l.value, s) || !1;
80
+ const d = n.get(l.operator);
81
+ return d && d(l.target, l.param, l.value, u) || !1;
82
82
  }
83
83
  return !1;
84
84
  }
85
- function w(l, s) {
86
- return y(l).reduce((h, b) => h && O(b, s), !0);
85
+ function h(l, u) {
86
+ return b(l).reduce((S, M) => S && m(M, u), !0);
87
87
  }
88
- function C(l, s) {
89
- const p = Object.keys(l), f = p.includes("allOf"), h = p.includes("anyOf"), b = f || h, S = (b ? l[b ? f ? "allOf" : "anyOf" : "allOf"] : [l]).map((d) => w(d, s));
90
- return f ? !S.includes(!1) : S.includes(!0);
88
+ function E(l, u) {
89
+ const d = Object.keys(l), f = d.includes("allOf"), S = d.includes("anyOf"), M = f || S, O = (M ? l[M ? f ? "allOf" : "anyOf" : "allOf"] : [l]).map((p) => h(p, u));
90
+ return f ? !O.includes(!1) : O.includes(!0);
91
91
  }
92
- return { parseValueSchema: C };
92
+ return { parseValueSchema: E };
93
93
  }
94
- const se = {}, ue = {};
95
- oe();
96
- function ie(t, e, a = /* @__PURE__ */ new Map(), n = (O, w, C) => w, i = {}, y = (O) => O) {
97
- return K[e.title] = e, x[e.title] = n, se[e.title] = i, ue[e.title] = y, (O = {}) => {
98
- const w = ne(O, e, a), C = Object.keys(t).reduce((l, s) => (l[s] = t[s].default, l), {});
99
- return Object.assign(C, w);
94
+ const ue = {}, ie = {};
95
+ se();
96
+ function ce(t, e, a = /* @__PURE__ */ new Map(), n = (m, h, E) => h, o = {}, b = (m) => m) {
97
+ return x[e.title] = e, I[e.title] = n, ue[e.title] = o, ie[e.title] = b, (m = {}) => {
98
+ const h = oe(m, e, a), E = Object.keys(t).reduce((l, u) => (l[u] = t[u].default, l), {});
99
+ return Object.assign(E, h);
100
100
  };
101
101
  }
102
- function ce(t, e) {
102
+ function fe(t, e) {
103
103
  return { customClass: e.class, customStyle: e.style };
104
104
  }
105
- const fe = /* @__PURE__ */ new Map([
106
- ["appearance", ce]
105
+ const de = /* @__PURE__ */ new Map([
106
+ ["appearance", fe]
107
107
  ]);
108
108
  function pe(t, e, a) {
109
109
  return e;
110
110
  }
111
- const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/rate.schema.json", me = "rate", ge = "A Farris Component", ye = "object", he = {
111
+ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-design.gitee.io/rate.schema.json", ge = "rate", ye = "A Farris Component", be = "object", he = {
112
112
  id: {
113
113
  description: "The unique identifier for rate",
114
114
  type: "string"
@@ -170,18 +170,23 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
170
170
  type: "boolean",
171
171
  default: !0
172
172
  }
173
- }, be = [
173
+ }, Se = [
174
174
  "id",
175
175
  "type"
176
- ], Se = {
177
- $schema: de,
178
- $id: ve,
179
- title: me,
180
- description: ge,
181
- type: ye,
176
+ ], Me = [
177
+ "id",
178
+ "appearance",
179
+ "binding"
180
+ ], Oe = {
181
+ $schema: ve,
182
+ $id: me,
183
+ title: ge,
184
+ description: ye,
185
+ type: be,
182
186
  properties: he,
183
- required: be
184
- }, Me = "rate", Oe = "A Farris Component", Te = "object", ke = {
187
+ required: Se,
188
+ ignore: Me
189
+ }, Te = "rate", ke = "A Farris Component", De = "object", Ne = {
185
190
  basic: {
186
191
  description: "Basic Infomation",
187
192
  title: "基本信息",
@@ -203,12 +208,12 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
203
208
  }
204
209
  }
205
210
  }
206
- }, De = {
207
- title: Me,
208
- description: Oe,
209
- type: Te,
210
- categories: ke
211
- }, Ne = ["很不满意", "不满意", "一般", "满意", "非常满意"], U = {
211
+ }, je = {
212
+ title: Te,
213
+ description: ke,
214
+ type: De,
215
+ categories: Ne
216
+ }, Ve = ["很不满意", "不满意", "一般", "满意", "非常满意"], U = {
212
217
  /** 星星大小 */
213
218
  size: { type: String, default: "large" },
214
219
  /** 启用半颗星模式 */
@@ -230,7 +235,7 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
230
235
  /** 禁用单个星星的文字提示 */
231
236
  toolTipDisabled: { type: Boolean, default: !0 },
232
237
  /** 默认的满意度文案 */
233
- toolTipContents: { type: Array, default: Ne },
238
+ toolTipContents: { type: Array, default: Ve },
234
239
  /** 启用评分 */
235
240
  enableScore: { type: Boolean, default: !0 },
236
241
  /** 启用满意度 */
@@ -240,31 +245,31 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
240
245
  */
241
246
  value: { type: Number, default: 0 },
242
247
  modelValue: { type: Number, default: 0 }
243
- }, I = ie(U, Se, fe, pe, De), z = /* @__PURE__ */ Z({
248
+ }, ee = ce(U, Oe, de, pe, je), z = /* @__PURE__ */ K({
244
249
  name: "FRate",
245
250
  props: U,
246
251
  emits: ["selectedValue", "update:modelValue"],
247
252
  setup(t, e) {
248
- const a = r(t.size), n = r(t.enableHalf), i = r(t.enableClear), y = r(t.disabled), O = r(t.pointSystem), w = r(t.lightColor), C = r(t.darkColor), l = r(t.iconClass), s = r(t.numOfStar), p = r(t.toolTipDisabled), f = r(t.toolTipContents), h = r(t.enableScore), b = r(t.enableSatisfaction);
253
+ const a = r(t.size), n = r(t.enableHalf), o = r(t.enableClear), b = r(t.disabled), m = r(t.pointSystem), h = r(t.lightColor), E = r(t.darkColor), l = r(t.iconClass), u = r(t.numOfStar), d = r(t.toolTipDisabled), f = r(t.toolTipContents), S = r(t.enableScore), M = r(t.enableSatisfaction);
249
254
  let v;
250
- const M = r(0), S = r(0), T = r(0), d = r(t.modelValue);
251
- let D = 1, j, c, m;
252
- const g = 4;
255
+ const T = r(0), O = r(0), k = r(0), p = r(t.modelValue);
256
+ let N = 1, w, c, g;
257
+ const y = 4;
253
258
  J(() => {
254
259
  });
255
- function E() {
256
- const u = s.value;
257
- m = [];
258
- for (let N = 1; N <= u; N++)
259
- m.push({
260
- id: N
260
+ function C() {
261
+ const i = u.value;
262
+ g = [];
263
+ for (let j = 1; j <= i; j++)
264
+ g.push({
265
+ id: j
261
266
  });
262
267
  }
263
268
  function P() {
264
- let u;
265
- n.value ? u = Math.ceil(d.value / D) : u = d.value, S.value = (v * d.value + Math.floor(d.value) * g) / D, j = f.value[u - 1];
269
+ let i;
270
+ n.value ? i = Math.ceil(p.value / N) : i = p.value, O.value = (v * p.value + Math.floor(p.value) * y) / N, w = f.value[i - 1];
266
271
  }
267
- function R() {
272
+ function A() {
268
273
  switch (a.value) {
269
274
  case "small":
270
275
  v = 14;
@@ -279,52 +284,52 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
279
284
  v = 24;
280
285
  break;
281
286
  }
282
- E(), s.value && (D = O.value / s.value), d.value && P();
287
+ C(), u.value && (N = m.value / u.value), p.value && P();
283
288
  }
284
- R();
285
- function L(u) {
286
- return u.className.indexOf("f-icon") !== -1;
289
+ A();
290
+ function $(i) {
291
+ return i.className.indexOf("f-icon") !== -1;
287
292
  }
288
293
  function H() {
289
- return M.value === S.value && i.value && S.value !== 0 ? (S.value = 0, d.value = 0, c = null, M.value = 0, T.value = 0, e.emit("selectedValue", d.value), e.emit("update:modelValue", d.value), !0) : !1;
294
+ return T.value === O.value && o.value && O.value !== 0 ? (O.value = 0, p.value = 0, c = null, T.value = 0, k.value = 0, e.emit("selectedValue", p.value), e.emit("update:modelValue", p.value), !0) : !1;
290
295
  }
291
- function q(u, N, o) {
292
- if (u.movementX || u.movementY) {
293
- if (y.value)
296
+ function q(i, j, s) {
297
+ if (i.movementX || i.movementY) {
298
+ if (b.value)
294
299
  return;
295
- b.value && (j = f.value[N - 1]), u.offsetX < v / 2 && n.value === !0 ? (M.value = v * N - v / 2 + g * (N - 1), T.value = D * N - D / 2) : (M.value = v * N + g * (N - 1), T.value = D * N);
300
+ M.value && (w = f.value[j - 1]), i.offsetX < v / 2 && n.value === !0 ? (T.value = v * j - v / 2 + y * (j - 1), k.value = N * j - N / 2) : (T.value = v * j + y * (j - 1), k.value = N * j);
296
301
  }
297
- if (o === !0) {
302
+ if (s === !0) {
298
303
  if (H())
299
304
  return;
300
- d.value = T.value, S.value = M.value, c = j, e.emit("update:modelValue", d.value), e.emit("selectedValue", d.value);
305
+ p.value = k.value, O.value = T.value, c = w, e.emit("update:modelValue", p.value), e.emit("selectedValue", p.value);
301
306
  }
302
307
  }
303
- function F(u, N) {
304
- var o;
305
- if (L(u.target) && u.target) {
306
- const V = parseInt((o = u.target) == null ? void 0 : o.id);
307
- q(u, V, N);
308
+ function F(i, j) {
309
+ var s;
310
+ if ($(i.target) && i.target) {
311
+ const V = parseInt((s = i.target) == null ? void 0 : s.id);
312
+ q(i, V, j);
308
313
  }
309
314
  }
310
- const X = W(() => T.value ? T.value + "分" : d.value + "分"), _ = W(() => ({
311
- width: (M.value || S.value) + "px"
315
+ const X = W(() => k.value ? k.value + "分" : p.value + "分"), _ = W(() => ({
316
+ width: (T.value || O.value) + "px"
312
317
  }));
313
318
  function B() {
314
- M.value = 0;
319
+ T.value = 0;
315
320
  }
316
- return ee(() => t.modelValue, (u) => {
317
- d.value = u, P();
318
- }), () => k("div", {
321
+ return te(() => t.modelValue, (i) => {
322
+ p.value = i, P();
323
+ }), () => D("div", {
319
324
  class: "farris-star-rating",
320
- onMouseover: A((u) => F(u, !1), ["prevent"]),
321
- onMousemove: A((u) => F(u, !1), ["prevent"]),
322
- onMouseleave: A((u) => B(), ["prevent"]),
323
- onClick: A((u) => F(u, !0), ["prevent"])
324
- }, [k("div", {
325
+ onMouseover: R((i) => F(i, !1), ["prevent"]),
326
+ onMousemove: R((i) => F(i, !1), ["prevent"]),
327
+ onMouseleave: R((i) => B(), ["prevent"]),
328
+ onClick: R((i) => F(i, !0), ["prevent"])
329
+ }, [D("div", {
325
330
  class: "star-light-area",
326
331
  style: _.value
327
- }, [m.map((u) => k("span", {
332
+ }, [g.map((i) => D("span", {
328
333
  class: ["f-icon default-light-color ", l.value, {
329
334
  "f-star-sm": a.value === "small"
330
335
  }, {
@@ -334,13 +339,13 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
334
339
  }, {
335
340
  "f-star-exlarge": a.value === "extraLarge"
336
341
  }, {
337
- disabled: p.value
342
+ disabled: d.value
338
343
  }],
339
- id: u.id,
344
+ id: i.id,
340
345
  style: {
341
- color: w.value
346
+ color: h.value
342
347
  }
343
- }, null))]), k("div", {
348
+ }, null))]), D("div", {
344
349
  class: ["star-dark-area", {
345
350
  small: a.value === "small"
346
351
  }, {
@@ -348,7 +353,7 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
348
353
  }, {
349
354
  large: a.value === "large"
350
355
  }]
351
- }, [m.map((u) => k("span", {
356
+ }, [g.map((i) => D("span", {
352
357
  class: ["f-icon default-dark-color", l.value, {
353
358
  "f-star-sm": a.value === "small"
354
359
  }, {
@@ -358,11 +363,11 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
358
363
  }, {
359
364
  "f-star-exlarge": a.value === "extraLarge"
360
365
  }],
361
- id: u.id,
366
+ id: i.id,
362
367
  style: {
363
- color: C.value
368
+ color: E.value
364
369
  }
365
- }, null))]), k("div", {
370
+ }, null))]), D("div", {
366
371
  class: ["f-utils-fill", {
367
372
  "font-small": a.value === "small"
368
373
  }, {
@@ -372,118 +377,118 @@ const de = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-
372
377
  }, {
373
378
  "font-exlarge": a.value === "extraLarge"
374
379
  }]
375
- }, [h.value && k("span", null, [$(" "), X.value, $(" ")]), b.value && (c || j) && k("span", null, [$(" "), j || c])])]);
380
+ }, [S.value && D("span", null, [L(" "), X.value, L(" ")]), M.value && (c || w) && D("span", null, [L(" "), w || c])])]);
376
381
  }
377
382
  });
378
- function Ve(t, e, a) {
379
- var j;
383
+ function we(t, e, a) {
384
+ var w;
380
385
  function n() {
381
386
  }
382
- const i = "", y = "", O = r();
383
- function w() {
387
+ const o = "", b = "", m = r();
388
+ function h() {
384
389
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
385
390
  }
386
- function C() {
391
+ function E() {
387
392
  return !1;
388
393
  }
389
394
  function l() {
390
395
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
391
396
  }
392
- function s() {
397
+ function u() {
393
398
  return (e == null ? void 0 : e.schema.componentType) === "frame";
394
399
  }
395
- function p(c) {
400
+ function d(c) {
396
401
  if (!c || !c.value)
397
402
  return null;
398
403
  if (c.value.schema && c.value.schema.type === "component")
399
404
  return c.value;
400
- const m = r(c == null ? void 0 : c.value.parent), g = p(m);
401
- return g || null;
405
+ const g = r(c == null ? void 0 : c.value.parent), y = d(g);
406
+ return y || null;
402
407
  }
403
408
  function f(c = e) {
404
- const { componentInstance: m, designerItemElementRef: g } = c;
405
- return !m || !m.value ? null : m.value.canMove ? g : f(c.parent);
409
+ const { componentInstance: g, designerItemElementRef: y } = c;
410
+ return !g || !g.value ? null : g.value.canMove ? y : f(c.parent);
406
411
  }
407
- function h(c) {
412
+ function S(c) {
408
413
  return !!a;
409
414
  }
410
- function b() {
415
+ function M() {
411
416
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
412
417
  }
413
418
  function v() {
414
419
  }
415
- function M(c, m) {
420
+ function T(c, g) {
416
421
  }
417
- function S(c) {
418
- const { componentType: m } = c;
419
- let g = G(m, c);
420
- const E = m.toLowerCase().replace("-", "_");
421
- return g && !g.id && g.type === m && (g.id = `${E}_${Math.random().toString().slice(2, 6)}`), g;
422
+ function O(c, g) {
423
+ const { componentType: y } = c;
424
+ let C = G(y, c, g);
425
+ const P = y.toLowerCase().replace("-", "_");
426
+ return C && !C.id && C.type === y && (C.id = `${P}_${Math.random().toString().slice(2, 6)}`), C;
422
427
  }
423
- function T(c, m) {
424
- const g = String(c.getAttribute("data-controltype")), E = c.getAttribute("data-feature"), P = E ? JSON.parse(E) : {};
425
- P.parentComponentInstance = O.value;
426
- let R = G(g, P);
427
- const L = g.toLowerCase().replace("-", "_");
428
- return R && !R.id && R.type === g && (R.id = `${L}_${Math.random().toString().slice(2, 6)}`), R;
428
+ function k(c, g) {
429
+ const y = String(c.getAttribute("data-controltype")), C = c.getAttribute("data-feature"), P = C ? JSON.parse(C) : {};
430
+ P.parentComponentInstance = m.value;
431
+ let A = G(y, P);
432
+ const $ = y.toLowerCase().replace("-", "_");
433
+ return A && !A.id && A.type === y && (A.id = `${$}_${Math.random().toString().slice(2, 6)}`), A;
429
434
  }
430
- function d(c) {
435
+ function p(c) {
431
436
  }
432
- function D(...c) {
437
+ function N(...c) {
433
438
  }
434
- return O.value = {
435
- canMove: w(),
436
- canSelectParent: C(),
439
+ return m.value = {
440
+ canMove: h(),
441
+ canSelectParent: E(),
437
442
  canDelete: l(),
438
- canNested: !s(),
443
+ canNested: !u(),
439
444
  contents: e == null ? void 0 : e.schema.contents,
440
445
  elementRef: t,
441
- parent: (j = e == null ? void 0 : e.parent) == null ? void 0 : j.componentInstance,
446
+ parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
442
447
  schema: e == null ? void 0 : e.schema,
443
- styles: i,
444
- designerClass: y,
445
- canAccepts: h,
446
- getBelongedComponentInstance: p,
448
+ styles: o,
449
+ designerClass: b,
450
+ canAccepts: S,
451
+ getBelongedComponentInstance: d,
447
452
  getDraggableDesignItemElement: f,
448
- getDraggingDisplayText: b,
449
- getPropConfig: D,
453
+ getDraggingDisplayText: M,
454
+ getPropConfig: N,
450
455
  getDragScopeElement: v,
451
- onAcceptMovedChildElement: M,
452
- onAcceptNewChildElement: T,
453
- onChildElementMovedOut: d,
454
- addNewChildComponentSchema: S,
456
+ onAcceptMovedChildElement: T,
457
+ onAcceptNewChildElement: k,
458
+ onChildElementMovedOut: p,
459
+ addNewChildComponentSchema: O,
455
460
  updateDragAndDropRules: n,
456
461
  triggerBelongedComponentToMoveWhenMoved: r(!1),
457
462
  triggerBelongedComponentToDeleteWhenDeleted: r(!1)
458
- }, O;
463
+ }, m;
459
464
  }
460
- const je = /* @__PURE__ */ Z({
465
+ const Ce = /* @__PURE__ */ K({
461
466
  name: "FRateDesign",
462
467
  props: U,
463
468
  emits: ["selectedValue"],
464
469
  setup(t, e) {
465
- const a = r(t.size), n = r(t.enableHalf), i = r(t.enableClear), y = r(t.disabled), O = r(t.pointSystem), w = r(t.lightColor), C = r(t.darkColor), l = r(t.iconClass), s = r(t.numOfStar), p = r(t.toolTipDisabled), f = r(t.toolTipContents), h = r(t.enableScore), b = r(t.enableSatisfaction);
470
+ const a = r(t.size), n = r(t.enableHalf), o = r(t.enableClear), b = r(t.disabled), m = r(t.pointSystem), h = r(t.lightColor), E = r(t.darkColor), l = r(t.iconClass), u = r(t.numOfStar), d = r(t.toolTipDisabled), f = r(t.toolTipContents), S = r(t.enableScore), M = r(t.enableSatisfaction);
466
471
  let v;
467
- const M = r(1);
468
- let S = 0;
469
- const T = r(0), d = r(0);
470
- let D = 1, j, c, m;
471
- const g = 4, E = r(), P = te("design-item-context"), R = Ve(E, P);
472
+ const T = r(1);
473
+ let O = 0;
474
+ const k = r(0), p = r(0);
475
+ let N = 1, w, c, g;
476
+ const y = 4, C = r(), P = ae("design-item-context"), A = we(C, P);
472
477
  J(() => {
473
- E.value.componentInstance = R;
474
- }), e.expose(R.value), J(() => {
478
+ C.value.componentInstance = A;
479
+ }), e.expose(A.value), J(() => {
475
480
  });
476
- function L() {
477
- const o = s.value;
478
- m = [];
479
- for (let V = 1; V <= o; V++)
480
- m.push({
481
+ function $() {
482
+ const s = u.value;
483
+ g = [];
484
+ for (let V = 1; V <= s; V++)
485
+ g.push({
481
486
  id: V
482
487
  });
483
488
  }
484
489
  function H() {
485
- let o;
486
- n.value ? o = Math.ceil(d.value / D) : o = d.value, S = (v * d.value + Math.floor(d.value) * g) / D, j = f.value[o - 1];
490
+ let s;
491
+ n.value ? s = Math.ceil(p.value / N) : s = p.value, O = (v * p.value + Math.floor(p.value) * y) / N, w = f.value[s - 1];
487
492
  }
488
493
  function q() {
489
494
  switch (a.value) {
@@ -500,47 +505,47 @@ const je = /* @__PURE__ */ Z({
500
505
  v = 24;
501
506
  break;
502
507
  }
503
- L(), s.value && (D = O.value / s.value), d.value && H();
508
+ $(), u.value && (N = m.value / u.value), p.value && H();
504
509
  }
505
510
  q();
506
- function F(o) {
507
- return o.className.indexOf("f-icon") !== -1;
511
+ function F(s) {
512
+ return s.className.indexOf("f-icon") !== -1;
508
513
  }
509
514
  function X() {
510
- return M.value === S && i && S !== 0 ? (S = 0, d.value = 0, c = null, M.value = 0, T.value = 0, e.emit("selectedValue", d.value), !0) : !1;
515
+ return T.value === O && o && O !== 0 ? (O = 0, p.value = 0, c = null, T.value = 0, k.value = 0, e.emit("selectedValue", p.value), !0) : !1;
511
516
  }
512
- function _(o, V, Y) {
513
- if (o.movementX || o.movementY) {
514
- if (y.value)
517
+ function _(s, V, Y) {
518
+ if (s.movementX || s.movementY) {
519
+ if (b.value)
515
520
  return;
516
- b.value && (j = f.value[V - 1]), o.offsetX < v / 2 && n.value === !0 ? (M.value = v * V - v / 2 + g * (V - 1), T.value = D * V - D / 2) : (M.value = v * V + g * (V - 1), T.value = D * V);
521
+ M.value && (w = f.value[V - 1]), s.offsetX < v / 2 && n.value === !0 ? (T.value = v * V - v / 2 + y * (V - 1), k.value = N * V - N / 2) : (T.value = v * V + y * (V - 1), k.value = N * V);
517
522
  }
518
523
  if (Y === !0) {
519
524
  if (X())
520
525
  return;
521
- d.value = T.value, S = M.value, c = j, e.emit("selectedValue", d.value);
526
+ p.value = k.value, O = T.value, c = w, e.emit("selectedValue", p.value);
522
527
  }
523
528
  }
524
- function B(o, V) {
525
- if (F(o.target) && o.target) {
526
- const Y = parseInt(o.target.id);
527
- _(o, Y, V);
529
+ function B(s, V) {
530
+ if (F(s.target) && s.target) {
531
+ const Y = parseInt(s.target.id);
532
+ _(s, Y, V);
528
533
  }
529
534
  }
530
- const u = W(() => T.value ? T.value + "分" : d.value + "分"), N = W(() => ({
531
- width: (M.value || S) + "px"
535
+ const i = W(() => k.value ? k.value + "分" : p.value + "分"), j = W(() => ({
536
+ width: (T.value || O) + "px"
532
537
  }));
533
- return () => k("div", {
538
+ return () => D("div", {
534
539
  class: "farris-star-rating",
535
- ref: E,
536
- onMouseover: A((o) => B(o, !1), ["prevent"]),
537
- onMousemove: A((o) => B(o, !1), ["prevent"]),
538
- onMouseout: A((o) => B(o, !1), ["prevent"]),
539
- onClick: A((o) => B(o, !0), ["prevent"])
540
- }, [k("div", {
540
+ ref: C,
541
+ onMouseover: R((s) => B(s, !1), ["prevent"]),
542
+ onMousemove: R((s) => B(s, !1), ["prevent"]),
543
+ onMouseout: R((s) => B(s, !1), ["prevent"]),
544
+ onClick: R((s) => B(s, !0), ["prevent"])
545
+ }, [D("div", {
541
546
  class: "star-light-area",
542
- style: N.value
543
- }, [m.map((o) => k("span", {
547
+ style: j.value
548
+ }, [g.map((s) => D("span", {
544
549
  class: ["f-icon default-light-color ", l.value, {
545
550
  "f-star-sm": a.value === "small"
546
551
  }, {
@@ -550,13 +555,13 @@ const je = /* @__PURE__ */ Z({
550
555
  }, {
551
556
  "f-star-exlarge": a.value === "extraLarge"
552
557
  }, {
553
- disabled: p.value
558
+ disabled: d.value
554
559
  }],
555
- id: o.id,
560
+ id: s.id,
556
561
  style: {
557
- color: w.value
562
+ color: h.value
558
563
  }
559
- }, null))]), k("div", {
564
+ }, null))]), D("div", {
560
565
  class: ["star-dark-area", {
561
566
  small: a.value === "small"
562
567
  }, {
@@ -564,7 +569,7 @@ const je = /* @__PURE__ */ Z({
564
569
  }, {
565
570
  large: a.value === "large"
566
571
  }]
567
- }, [m.map((o) => k("span", {
572
+ }, [g.map((s) => D("span", {
568
573
  class: ["f-icon default-dark-color", l.value, {
569
574
  "f-star-sm": a.value === "small"
570
575
  }, {
@@ -574,11 +579,11 @@ const je = /* @__PURE__ */ Z({
574
579
  }, {
575
580
  "f-star-exlarge": a.value === "extraLarge"
576
581
  }],
577
- id: o.id,
582
+ id: s.id,
578
583
  style: {
579
- color: C.value
584
+ color: E.value
580
585
  }
581
- }, null))]), k("div", {
586
+ }, null))]), D("div", {
582
587
  class: ["f-utils-fill", {
583
588
  "font-small": a.value === "small"
584
589
  }, {
@@ -588,24 +593,24 @@ const je = /* @__PURE__ */ Z({
588
593
  }, {
589
594
  "font-exlarge": a.value === "extraLarge"
590
595
  }]
591
- }, [h.value && k("span", null, [$(" "), u.value, $(" ")]), b.value && (c || j) && k("span", null, [$(" "), j || c])])]);
596
+ }, [S.value && D("span", null, [L(" "), i.value, L(" ")]), M.value && (c || w) && D("span", null, [L(" "), w || c])])]);
592
597
  }
593
- }), we = (t) => {
598
+ }), Ee = (t) => {
594
599
  const e = t;
595
600
  return e.install = function(a) {
596
601
  a.component(e.name, t);
597
602
  }, t;
598
603
  };
599
604
  z.register = (t, e, a, n) => {
600
- t.rate = z, e.rate = I;
605
+ t.rate = z, e.rate = ee;
601
606
  };
602
607
  z.registerDesigner = (t, e, a) => {
603
- t.rate = je, e.rate = I;
608
+ t.rate = Ce, e.rate = ee;
604
609
  };
605
- const Re = we(z);
610
+ const Re = Ee(z);
606
611
  export {
607
612
  z as FRate,
608
613
  Re as default,
609
- I as propsResolver,
614
+ ee as propsResolver,
610
615
  U as rateProps
611
616
  };