@farris/ui-vue 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/components/accordion/index.esm.js +103 -99
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +301 -351
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/binding-selector/index.esm.js +444 -0
  6. package/components/binding-selector/index.umd.cjs +1 -0
  7. package/components/binding-selector/package.json +8 -0
  8. package/components/border-editor/index.esm.js +5 -3
  9. package/components/border-editor/index.umd.cjs +1 -1
  10. package/components/button-edit/index.esm.js +143 -139
  11. package/components/button-edit/index.umd.cjs +1 -1
  12. package/components/calendar/index.esm.js +407 -396
  13. package/components/calendar/index.umd.cjs +1 -1
  14. package/components/capsule/index.esm.js +266 -255
  15. package/components/capsule/index.umd.cjs +1 -1
  16. package/components/checkbox/index.esm.js +628 -641
  17. package/components/checkbox/index.umd.cjs +1 -1
  18. package/components/color-picker/index.esm.js +379 -374
  19. package/components/color-picker/index.umd.cjs +2 -2
  20. package/components/combo-list/index.esm.js +471 -471
  21. package/components/combo-list/index.umd.cjs +1 -1
  22. package/components/combo-tree/index.esm.js +155 -148
  23. package/components/combo-tree/index.umd.cjs +1 -1
  24. package/components/common/index.esm.js +487 -478
  25. package/components/common/index.umd.cjs +1 -1
  26. package/components/component/index.esm.js +330 -279
  27. package/components/component/index.umd.cjs +1 -1
  28. package/components/condition/index.esm.js +1171 -1277
  29. package/components/condition/index.umd.cjs +1 -1
  30. package/components/content-container/index.esm.js +220 -204
  31. package/components/content-container/index.umd.cjs +1 -1
  32. package/components/data-grid/index.esm.js +4743 -4641
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +2916 -3019
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2375 -2590
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/designer-canvas/index.css +1 -1
  39. package/components/designer-canvas/index.esm.js +9518 -1198
  40. package/components/designer-canvas/index.umd.cjs +1 -1
  41. package/components/designer-outline/index.esm.js +2 -1
  42. package/components/designer-outline/index.umd.cjs +1 -1
  43. package/components/drawer/index.esm.js +34 -38
  44. package/components/drawer/index.umd.cjs +1 -1
  45. package/components/dropdown/index.esm.js +149 -138
  46. package/components/dropdown/index.umd.cjs +2 -2
  47. package/components/dynamic-form/index.esm.js +1602 -1740
  48. package/components/dynamic-form/index.umd.cjs +1 -1
  49. package/components/dynamic-resolver/index.esm.js +159 -151
  50. package/components/dynamic-resolver/index.umd.cjs +1 -1
  51. package/components/dynamic-view/index.esm.js +218 -218
  52. package/components/dynamic-view/index.umd.cjs +1 -1
  53. package/components/event-parameter/index.esm.js +311 -0
  54. package/components/event-parameter/index.umd.cjs +1 -0
  55. package/components/event-parameter/package.json +8 -0
  56. package/components/events-editor/index.css +1 -1
  57. package/components/events-editor/index.esm.js +533 -563
  58. package/components/events-editor/index.umd.cjs +1 -1
  59. package/components/expression-editor/index.esm.js +95 -91
  60. package/components/expression-editor/index.umd.cjs +1 -1
  61. package/components/external-container/index.esm.js +2356 -2455
  62. package/components/external-container/index.umd.cjs +1 -1
  63. package/components/field-selector/index.esm.js +3048 -3308
  64. package/components/field-selector/index.umd.cjs +1 -1
  65. package/components/filter-bar/index.css +1 -1
  66. package/components/filter-bar/index.esm.js +10537 -3249
  67. package/components/filter-bar/index.umd.cjs +1 -1
  68. package/components/flow-canvas/index.css +1 -1
  69. package/components/flow-canvas/index.esm.js +9781 -1327
  70. package/components/flow-canvas/index.umd.cjs +1 -1
  71. package/components/image-cropper/index.esm.js +353 -341
  72. package/components/image-cropper/index.umd.cjs +1 -1
  73. package/components/input-group/index.esm.js +510 -827
  74. package/components/input-group/index.umd.cjs +1 -1
  75. package/components/layout/index.esm.js +278 -268
  76. package/components/layout/index.umd.cjs +1 -1
  77. package/components/list-nav/index.esm.js +144 -136
  78. package/components/list-nav/index.umd.cjs +1 -1
  79. package/components/list-view/index.esm.js +2139 -2237
  80. package/components/list-view/index.umd.cjs +1 -1
  81. package/components/lookup/index.esm.js +6414 -6367
  82. package/components/lookup/index.umd.cjs +1 -1
  83. package/components/mapping-editor/index.esm.js +5216 -5114
  84. package/components/mapping-editor/index.umd.cjs +1 -1
  85. package/components/message-box/index.esm.js +252 -252
  86. package/components/message-box/index.umd.cjs +1 -1
  87. package/components/modal/index.esm.js +70 -70
  88. package/components/modal/index.umd.cjs +1 -1
  89. package/components/nav/index.esm.js +486 -984
  90. package/components/nav/index.umd.cjs +3 -3
  91. package/components/number-range/index.esm.js +446 -498
  92. package/components/number-range/index.umd.cjs +1 -1
  93. package/components/number-spinner/index.esm.js +363 -388
  94. package/components/number-spinner/index.umd.cjs +1 -1
  95. package/components/order/index.esm.js +1050 -1308
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +134 -131
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +1072 -1082
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +412 -910
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/progress/index.esm.js +214 -203
  104. package/components/progress/index.umd.cjs +3 -3
  105. package/components/property-editor/index.esm.js +1361 -1536
  106. package/components/property-editor/index.umd.cjs +2 -2
  107. package/components/property-panel/index.esm.js +650 -677
  108. package/components/property-panel/index.umd.cjs +1 -1
  109. package/components/query-solution/index.css +1 -1
  110. package/components/query-solution/index.esm.js +12344 -5048
  111. package/components/query-solution/index.umd.cjs +6 -1
  112. package/components/radio-button/index.esm.js +97 -97
  113. package/components/radio-button/index.umd.cjs +1 -1
  114. package/components/radio-group/index.css +1 -1
  115. package/components/radio-group/index.esm.js +1821 -565
  116. package/components/radio-group/index.umd.cjs +1 -1
  117. package/components/rate/index.esm.js +251 -244
  118. package/components/rate/index.umd.cjs +1 -1
  119. package/components/response-layout/index.esm.js +151 -140
  120. package/components/response-layout/index.umd.cjs +1 -1
  121. package/components/response-layout-editor/index.esm.js +707 -676
  122. package/components/response-layout-editor/index.umd.cjs +1 -1
  123. package/components/response-toolbar/index.esm.js +719 -740
  124. package/components/response-toolbar/index.umd.cjs +1 -1
  125. package/components/schema-selector/index.esm.js +4977 -5249
  126. package/components/schema-selector/index.umd.cjs +2 -2
  127. package/components/search-box/index.esm.js +145 -134
  128. package/components/search-box/index.umd.cjs +1 -1
  129. package/components/section/index.esm.js +348 -337
  130. package/components/section/index.umd.cjs +1 -1
  131. package/components/smoke-detector/index.esm.js +141 -130
  132. package/components/smoke-detector/index.umd.cjs +1 -1
  133. package/components/splitter/index.esm.js +311 -301
  134. package/components/splitter/index.umd.cjs +1 -1
  135. package/components/step/index.esm.js +231 -220
  136. package/components/step/index.umd.cjs +1 -1
  137. package/components/switch/index.esm.js +385 -432
  138. package/components/switch/index.umd.cjs +1 -1
  139. package/components/tabs/index.esm.js +1932 -1914
  140. package/components/tabs/index.umd.cjs +1 -1
  141. package/components/tags/index.esm.js +351 -340
  142. package/components/tags/index.umd.cjs +1 -1
  143. package/components/text/index.esm.js +209 -199
  144. package/components/text/index.umd.cjs +1 -1
  145. package/components/textarea/index.esm.js +388 -415
  146. package/components/textarea/index.umd.cjs +1 -1
  147. package/components/time-picker/index.esm.js +619 -666
  148. package/components/time-picker/index.umd.cjs +1 -1
  149. package/components/transfer/index.esm.js +493 -486
  150. package/components/transfer/index.umd.cjs +1 -1
  151. package/components/tree-grid/index.esm.js +3169 -3278
  152. package/components/tree-grid/index.umd.cjs +1 -1
  153. package/components/tree-view/index.esm.js +2320 -2418
  154. package/components/tree-view/index.umd.cjs +1 -1
  155. package/components/uploader/index.esm.js +563 -554
  156. package/components/uploader/index.umd.cjs +2 -2
  157. package/components/verify-detail/index.esm.js +287 -276
  158. package/components/verify-detail/index.umd.cjs +1 -1
  159. package/components/video/index.esm.js +368 -324
  160. package/components/video/index.umd.cjs +1 -1
  161. package/components/weather/index.esm.js +498 -487
  162. package/components/weather/index.umd.cjs +5 -5
  163. package/farris.all.esm.js +51302 -47651
  164. package/farris.all.umd.cjs +14 -9
  165. package/index.css +1 -1
  166. package/package.json +1 -1
  167. package/types/binding-selector/index.d.ts +55 -0
  168. package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
  169. package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
  170. package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
  171. package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
  172. package/types/combo-list/src/components/list-container.component.d.ts +6 -6
  173. package/types/combo-list/src/components/list-container.props.d.ts +1 -1
  174. package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
  175. package/types/common/entity/entity-schema.d.ts +26 -11
  176. package/types/common/index.d.ts +1 -0
  177. package/types/common/types.d.ts +2 -2
  178. package/types/condition/src/condition-fields.design.component.d.ts +18 -0
  179. package/types/condition/src/types.d.ts +6 -6
  180. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
  181. package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
  182. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  183. package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
  184. package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
  185. package/types/data-view/composition/types.d.ts +2 -2
  186. package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
  187. package/types/date-picker/src/components/month/month.component.d.ts +3 -3
  188. package/types/date-picker/src/components/year/year.component.d.ts +3 -3
  189. package/types/designer-canvas/index.d.ts +2 -1
  190. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  191. package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +49 -40
  193. package/types/designer-canvas/src/types.d.ts +8 -20
  194. package/types/dynamic-form/index.d.ts +1 -1
  195. package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
  196. package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
  197. package/types/dynamic-form/src/types.d.ts +1 -1
  198. package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +5 -0
  199. package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
  200. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
  201. package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
  202. package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
  203. package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
  204. package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
  205. package/types/event-parameter/index.d.ts +31 -0
  206. package/types/event-parameter/src/composition/type.d.ts +77 -0
  207. package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
  208. package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
  209. package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
  210. package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
  211. package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
  212. package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
  213. package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
  214. package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
  215. package/types/field-selector/src/field-selector.component.d.ts +1 -2
  216. package/types/field-selector/src/field-selector.props.d.ts +0 -9
  217. package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
  218. package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
  219. package/types/list-view/src/list-view-table.component.d.ts +15 -0
  220. package/types/lookup/src/composition/use-user-data.d.ts +2 -2
  221. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
  222. package/types/modal/src/composition/modal.service.d.ts +2 -1
  223. package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
  224. package/types/page-header/src/page-header.component.d.ts +1 -1
  225. package/types/property-panel/index.d.ts +2 -1
  226. package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
  227. package/types/property-panel/src/composition/type.d.ts +0 -13
  228. package/types/query-solution/src/composition/types.d.ts +35 -4
  229. package/types/query-solution/src/composition/use-header.d.ts +21 -0
  230. package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
  231. package/types/query-solution/src/composition/use-solution.d.ts +20 -0
  232. package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +17 -16
  233. package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
  234. package/types/query-solution/src/property-config/query-solution.property-config.d.ts +3 -51
  235. package/types/query-solution/src/query-solution.d.ts +10 -2
  236. package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
  237. package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
  238. package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
  239. package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
  240. package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
  241. package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
  242. package/types/section/src/property-config/section.property-config.d.ts +17 -17
  243. package/types/section/src/schema/schema-resolver.d.ts +1 -2
  244. package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
  245. package/types/tabs/src/composition/types.d.ts +4 -1
  246. package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
  247. package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
  248. package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
  249. package/types/text/src/composition/types.d.ts +4 -4
  250. package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
  251. package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
  252. package/types/weather/src/composition/use-weather-color.d.ts +15 -0
  253. package/types/weather/src/composition/use-weather-data.d.ts +15 -0
  254. package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
  255. package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
  256. package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
  257. package/types/weather/src/composition/types.d.ts +0 -2
  258. /package/types/dynamic-form/src/designer/{use-designer-rules.d.ts → response-form-use-designer-rules.d.ts} +0 -0
  259. /package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +0 -0
@@ -1,114 +1,119 @@
1
- import { defineComponent as Z, ref as r, onMounted as G, computed as F, watch as ae, createVNode as j, withModifiers as R, createTextVNode as P, inject as te } from "vue";
1
+ import { defineComponent as Z, ref as r, onMounted as G, computed as W, watch as ae, createVNode as N, withModifiers as E, createTextVNode as B, inject as te } from "vue";
2
2
  import { isPlainObject as U, cloneDeep as le } from "lodash-es";
3
+ import { withInstall as re } from "../common/index.esm.js";
3
4
  const K = {}, x = {};
4
5
  function J(a) {
5
- const { properties: e, title: t, ignore: n } = a, s = n && Array.isArray(n), g = Object.keys(e).reduce((m, b) => ((!s || !n.find((w) => w == b)) && (m[b] = e[b].type === "object" && e[b].properties ? J(e[b]) : le(e[b].default)), m), {});
6
- return t && (!s || !n.find((m) => m == "id")) && (g.id = `${t}-${Date.now()}`), g;
6
+ const { properties: e, title: t, ignore: n } = a, o = n && Array.isArray(n), h = Object.keys(e).reduce((y, b) => ((!o || !n.find((w) => w === b)) && (y[b] = e[b].type === "object" && e[b].properties ? J(e[b]) : le(e[b].default)), y), {});
7
+ if (t && (!o || !n.find((y) => y === "id"))) {
8
+ const y = t.toLowerCase().replace(/-/g, "_");
9
+ h.id = `${y}_${Math.random().toString().slice(2, 6)}`;
10
+ }
11
+ return h;
7
12
  }
8
13
  function I(a, e = {}, t) {
9
14
  const n = K[a];
10
15
  if (n) {
11
- let s = J(n);
12
- const g = x[a];
13
- return s = g ? g({ getSchemaByType: I }, s, e, t) : s, s;
16
+ let o = J(n);
17
+ const h = x[a];
18
+ return o = h ? h({ getSchemaByType: I }, o, e, t) : o, o;
14
19
  }
15
20
  return null;
16
21
  }
17
- function re(a, e) {
22
+ function ne(a, e) {
18
23
  const t = J(e);
19
- return Object.keys(a).reduce((n, s) => (n[s] && U(n[s]) && U(a[s]) ? Object.assign(n[s], a[s]) : n[s] = a[s], n), t), t;
24
+ return Object.keys(t).reduce((n, o) => (n[o] && U(n[o]) && U(a[o] || !a[o]) ? Object.assign(n[o], a[o] || {}) : n[o] = a[o], n), t), t;
20
25
  }
21
- function ne(a, e) {
22
- return Object.keys(a).filter((n) => a[n] != null).reduce((n, s) => {
23
- if (e.has(s)) {
24
- const g = e.get(s);
25
- if (typeof g == "string")
26
- n[g] = a[s];
26
+ function oe(a, e) {
27
+ return Object.keys(a).filter((n) => a[n] != null).reduce((n, o) => {
28
+ if (e.has(o)) {
29
+ const h = e.get(o);
30
+ if (typeof h == "string")
31
+ n[h] = a[o];
27
32
  else {
28
- const m = g(s, a[s], a);
29
- Object.assign(n, m);
33
+ const y = h(o, a[o], a);
34
+ Object.assign(n, y);
30
35
  }
31
36
  } else
32
- n[s] = a[s];
37
+ n[o] = a[o];
33
38
  return n;
34
39
  }, {});
35
40
  }
36
41
  function se(a, e, t = /* @__PURE__ */ new Map()) {
37
- const n = re(a, e);
38
- return ne(n, t);
42
+ const n = ne(a, e);
43
+ return oe(n, t);
39
44
  }
40
- function oe(a = {}) {
41
- function e(l, u, d, c) {
42
- if (typeof d == "number")
43
- return c[l].length === d;
44
- if (typeof d == "object") {
45
- const h = Object.keys(d)[0], S = d[h];
46
- if (h === "not")
47
- return Number(c[l].length) !== Number(S);
48
- if (h === "moreThan")
49
- return Number(c[l].length) >= Number(S);
50
- if (h === "lessThan")
51
- return Number(c[l].length) <= Number(S);
45
+ function ue(a = {}) {
46
+ function e(l, s, f, p) {
47
+ if (typeof f == "number")
48
+ return p[l].length === f;
49
+ if (typeof f == "object") {
50
+ const S = Object.keys(f)[0], M = f[S];
51
+ if (S === "not")
52
+ return Number(p[l].length) !== Number(M);
53
+ if (S === "moreThan")
54
+ return Number(p[l].length) >= Number(M);
55
+ if (S === "lessThan")
56
+ return Number(p[l].length) <= Number(M);
52
57
  }
53
58
  return !1;
54
59
  }
55
- function t(l, u, d, c) {
56
- return c[l] && c[l].propertyValue && String(c[l].propertyValue.value) === String(d);
60
+ function t(l, s, f, p) {
61
+ return p[l] && p[l].propertyValue && String(p[l].propertyValue.value) === String(f);
57
62
  }
58
63
  const n = /* @__PURE__ */ new Map([
59
64
  ["length", e],
60
65
  ["getProperty", t]
61
66
  ]);
62
- Object.keys(a).reduce((l, u) => (l.set(u, a[u]), l), n);
63
- function s(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((c) => {
66
- if (c === "length")
67
- return { target: d, operator: "length", param: null, value: u[c] };
68
- const h = c, S = u[c];
69
- return { target: d, operator: "getProperty", param: h, value: S };
67
+ Object.keys(a).reduce((l, s) => (l.set(s, a[s]), l), n);
68
+ function o(l, s) {
69
+ const f = l;
70
+ return typeof s == "number" ? [{ target: f, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: f, operator: "getProperty", param: l, value: !!s }] : typeof s == "object" ? Object.keys(s).map((p) => {
71
+ if (p === "length")
72
+ return { target: f, operator: "length", param: null, value: s[p] };
73
+ const S = p, M = s[p];
74
+ return { target: f, operator: "getProperty", param: S, value: M };
70
75
  }) : [];
71
76
  }
72
- function g(l) {
73
- return Object.keys(l).reduce((d, c) => {
74
- const h = s(c, l[c]);
75
- return d.push(...h), d;
77
+ function h(l) {
78
+ return Object.keys(l).reduce((f, p) => {
79
+ const S = o(p, l[p]);
80
+ return f.push(...S), f;
76
81
  }, []);
77
82
  }
78
- function m(l, u) {
83
+ function y(l, s) {
79
84
  if (n.has(l.operator)) {
80
- const d = n.get(l.operator);
81
- return d && d(l.target, l.param, l.value, u) || !1;
85
+ const f = n.get(l.operator);
86
+ return f && f(l.target, l.param, l.value, s) || !1;
82
87
  }
83
88
  return !1;
84
89
  }
85
- function b(l, u) {
86
- return g(l).reduce((h, S) => h && m(S, u), !0);
90
+ function b(l, s) {
91
+ return h(l).reduce((S, M) => S && y(M, s), !0);
87
92
  }
88
- function w(l, u) {
89
- const d = Object.keys(l), c = d.includes("allOf"), h = d.includes("anyOf"), S = c || h, M = (S ? l[S ? c ? "allOf" : "anyOf" : "allOf"] : [l]).map((p) => b(p, u));
90
- return c ? !M.includes(!1) : M.includes(!0);
93
+ function w(l, s) {
94
+ const f = Object.keys(l), p = f.includes("allOf"), S = f.includes("anyOf"), M = p || S, O = (M ? l[M ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((d) => b(d, s));
95
+ return p ? !O.includes(!1) : O.includes(!0);
91
96
  }
92
97
  return { parseValueSchema: w };
93
98
  }
94
- const ue = {}, ie = {};
95
- oe();
96
- function ce(a, e, t = /* @__PURE__ */ new Map(), n = (m, b, w) => b, s = {}, g = (m) => m) {
97
- return K[e.title] = e, x[e.title] = n, ue[e.title] = s, ie[e.title] = g, (m = {}) => {
98
- const b = se(m, e, t), w = Object.keys(a).reduce((l, u) => (l[u] = a[u].default, l), {});
99
+ const ie = {}, ce = {};
100
+ ue();
101
+ function fe(a, e, t = /* @__PURE__ */ new Map(), n = (y, b, w, l) => b, o = {}, h = (y) => y) {
102
+ return K[e.title] = e, x[e.title] = n, ie[e.title] = o, ce[e.title] = h, (y = {}) => {
103
+ const b = se(y, e, t), w = Object.keys(a).reduce((l, s) => (l[s] = a[s].default, l), {});
99
104
  return Object.assign(w, b);
100
105
  };
101
106
  }
102
- function fe(a, e) {
107
+ function pe(a, e) {
103
108
  return { customClass: e.class, customStyle: e.style };
104
109
  }
105
110
  const de = /* @__PURE__ */ new Map([
106
- ["appearance", fe]
111
+ ["appearance", pe]
107
112
  ]);
108
- function pe(a, e, t) {
113
+ function ve(a, e, t) {
109
114
  return e;
110
115
  }
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 = {
116
+ const me = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/rate.schema.json", ye = "rate", he = "A Farris Component", be = "object", Se = {
112
117
  id: {
113
118
  description: "The unique identifier for rate",
114
119
  type: "string"
@@ -170,23 +175,23 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
170
175
  type: "boolean",
171
176
  default: !0
172
177
  }
173
- }, Se = [
178
+ }, Me = [
174
179
  "id",
175
180
  "type"
176
- ], Me = [
181
+ ], Oe = [
177
182
  "id",
178
183
  "appearance",
179
184
  "binding"
180
- ], Oe = {
181
- $schema: ve,
182
- $id: me,
183
- title: ge,
184
- description: ye,
185
+ ], Te = {
186
+ $schema: me,
187
+ $id: ge,
188
+ title: ye,
189
+ description: he,
185
190
  type: be,
186
- properties: he,
187
- required: Se,
188
- ignore: Me
189
- }, Te = "rate", ke = "A Farris Component", De = "object", je = {
191
+ properties: Se,
192
+ required: Me,
193
+ ignore: Oe
194
+ }, ke = "rate", De = "A Farris Component", je = "object", Ne = {
190
195
  basic: {
191
196
  description: "Basic Infomation",
192
197
  title: "基本信息",
@@ -208,12 +213,12 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
208
213
  }
209
214
  }
210
215
  }
211
- }, Ne = {
212
- title: Te,
213
- description: ke,
214
- type: De,
215
- categories: je
216
- }, Ve = ["很不满意", "不满意", "一般", "满意", "非常满意"], Q = {
216
+ }, Ve = {
217
+ title: ke,
218
+ description: De,
219
+ type: je,
220
+ categories: Ne
221
+ }, Re = ["很不满意", "不满意", "一般", "满意", "非常满意"], Q = {
217
222
  /** 星星大小 */
218
223
  size: { type: String, default: "large" },
219
224
  /** 启用半颗星模式 */
@@ -235,7 +240,7 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
235
240
  /** 禁用单个星星的文字提示 */
236
241
  toolTipDisabled: { type: Boolean, default: !0 },
237
242
  /** 默认的满意度文案 */
238
- toolTipContents: { type: Array, default: Ve },
243
+ toolTipContents: { type: Array, default: Re },
239
244
  /** 启用评分 */
240
245
  enableScore: { type: Boolean, default: !0 },
241
246
  /** 启用满意度 */
@@ -245,31 +250,31 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
245
250
  */
246
251
  value: { type: Number, default: 0 },
247
252
  modelValue: { type: Number, default: 0 }
248
- }, ee = ce(Q, Oe, de, pe, Ne), W = /* @__PURE__ */ Z({
253
+ }, ee = fe(Q, Te, de, ve, Ve), H = /* @__PURE__ */ Z({
249
254
  name: "FRate",
250
255
  props: Q,
251
256
  emits: ["selectedValue", "update:modelValue"],
252
257
  setup(a, e) {
253
- const t = r(a.size), n = r(a.enableHalf), s = r(a.enableClear), g = r(a.disabled), m = r(a.pointSystem), b = r(a.lightColor), w = r(a.darkColor), l = r(a.iconClass), u = r(a.numOfStar), d = r(a.toolTipDisabled), c = r(a.toolTipContents), h = r(a.enableScore), S = r(a.enableSatisfaction);
258
+ const t = r(a.size), n = r(a.enableHalf), o = r(a.enableClear), h = r(a.disabled), y = r(a.pointSystem), b = r(a.lightColor), w = r(a.darkColor), l = r(a.iconClass), s = r(a.numOfStar), f = r(a.toolTipDisabled), p = r(a.toolTipContents), S = r(a.enableScore), M = r(a.enableSatisfaction);
254
259
  let v;
255
- const T = r(0), M = r(0), k = r(0), p = r(a.modelValue);
256
- let D = 1, f, y, O;
257
- const E = 4;
260
+ const T = r(0), O = r(0), k = r(0), d = r(a.modelValue);
261
+ let D = 1, u, g, m;
262
+ const j = 4;
258
263
  G(() => {
259
264
  });
260
- function A() {
261
- const i = u.value;
262
- O = [];
263
- for (let N = 1; N <= i; N++)
264
- O.push({
265
- id: N
265
+ function P() {
266
+ const c = s.value;
267
+ m = [];
268
+ for (let V = 1; V <= c; V++)
269
+ m.push({
270
+ id: V
266
271
  });
267
272
  }
268
- function L() {
269
- let i;
270
- n.value ? i = Math.ceil(p.value / D) : i = p.value, M.value = (v * p.value + Math.floor(p.value) * E) / D, f = c.value[i - 1];
271
- }
272
273
  function $() {
274
+ let c;
275
+ n.value ? c = Math.ceil(d.value / D) : c = d.value, O.value = (v * d.value + Math.floor(d.value) * j) / D, u = p.value[c - 1];
276
+ }
277
+ function F() {
273
278
  switch (t.value) {
274
279
  case "small":
275
280
  v = 14;
@@ -284,52 +289,52 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
284
289
  v = 24;
285
290
  break;
286
291
  }
287
- A(), u.value && (D = m.value / u.value), p.value && L();
292
+ P(), s.value && (D = y.value / s.value), d.value && $();
288
293
  }
289
- $();
290
- function z(i) {
291
- return i.className.indexOf("f-icon") !== -1;
294
+ F();
295
+ function q(c) {
296
+ return c.className.indexOf("f-icon") !== -1;
292
297
  }
293
- function H() {
294
- return T.value === M.value && s.value && M.value !== 0 ? (M.value = 0, p.value = 0, y = null, T.value = 0, k.value = 0, e.emit("selectedValue", p.value), e.emit("update:modelValue", p.value), !0) : !1;
298
+ function z() {
299
+ return T.value === O.value && o.value && O.value !== 0 ? (O.value = 0, d.value = 0, g = null, T.value = 0, k.value = 0, e.emit("selectedValue", d.value), e.emit("update:modelValue", d.value), !0) : !1;
295
300
  }
296
- function q(i, N, o) {
297
- if (i.movementX || i.movementY) {
298
- if (g.value)
301
+ function X(c, V, i) {
302
+ if (c.movementX || c.movementY) {
303
+ if (h.value)
299
304
  return;
300
- S.value && (f = c.value[N - 1]), i.offsetX < v / 2 && n.value === !0 ? (T.value = v * N - v / 2 + E * (N - 1), k.value = D * N - D / 2) : (T.value = v * N + E * (N - 1), k.value = D * N);
305
+ M.value && (u = p.value[V - 1]), c.offsetX < v / 2 && n.value === !0 ? (T.value = v * V - v / 2 + j * (V - 1), k.value = D * V - D / 2) : (T.value = v * V + j * (V - 1), k.value = D * V);
301
306
  }
302
- if (o === !0) {
303
- if (H())
307
+ if (i === !0) {
308
+ if (z())
304
309
  return;
305
- p.value = k.value, M.value = T.value, y = f, e.emit("update:modelValue", p.value), e.emit("selectedValue", p.value);
310
+ d.value = k.value, O.value = T.value, g = u, e.emit("update:modelValue", d.value), e.emit("selectedValue", d.value);
306
311
  }
307
312
  }
308
- function B(i, N) {
309
- var o;
310
- if (z(i.target) && i.target) {
311
- const V = parseInt((o = i.target) == null ? void 0 : o.id);
312
- q(i, V, N);
313
+ function L(c, V) {
314
+ var i;
315
+ if (q(c.target) && c.target) {
316
+ const R = parseInt((i = c.target) == null ? void 0 : i.id);
317
+ X(c, R, V);
313
318
  }
314
319
  }
315
- const X = F(() => k.value ? k.value + "分" : p.value + "分"), Y = F(() => ({
316
- width: (T.value || M.value) + "px"
320
+ const _ = W(() => k.value ? k.value + "分" : d.value + "分"), C = W(() => ({
321
+ width: (T.value || O.value) + "px"
317
322
  }));
318
- function C() {
323
+ function A() {
319
324
  T.value = 0;
320
325
  }
321
- return ae(() => a.modelValue, (i) => {
322
- p.value = i, L();
323
- }), () => j("div", {
326
+ return ae(() => a.modelValue, (c) => {
327
+ d.value = c, $();
328
+ }), () => N("div", {
324
329
  class: "farris-star-rating",
325
- onMouseover: R((i) => B(i, !1), ["prevent"]),
326
- onMousemove: R((i) => B(i, !1), ["prevent"]),
327
- onMouseleave: R((i) => C(), ["prevent"]),
328
- onClick: R((i) => B(i, !0), ["prevent"])
329
- }, [j("div", {
330
+ onMouseover: E((c) => L(c, !1), ["prevent"]),
331
+ onMousemove: E((c) => L(c, !1), ["prevent"]),
332
+ onMouseleave: E((c) => A(), ["prevent"]),
333
+ onClick: E((c) => L(c, !0), ["prevent"])
334
+ }, [N("div", {
330
335
  class: "star-light-area",
331
- style: Y.value
332
- }, [O.map((i) => j("span", {
336
+ style: C.value
337
+ }, [m.map((c) => N("span", {
333
338
  class: ["f-icon default-light-color ", l.value, {
334
339
  "f-star-sm": t.value === "small"
335
340
  }, {
@@ -339,13 +344,13 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
339
344
  }, {
340
345
  "f-star-exlarge": t.value === "extraLarge"
341
346
  }, {
342
- disabled: d.value
347
+ disabled: f.value
343
348
  }],
344
- id: i.id,
349
+ id: c.id,
345
350
  style: {
346
351
  color: b.value
347
352
  }
348
- }, null))]), j("div", {
353
+ }, null))]), N("div", {
349
354
  class: ["star-dark-area", {
350
355
  small: t.value === "small"
351
356
  }, {
@@ -353,7 +358,7 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
353
358
  }, {
354
359
  large: t.value === "large"
355
360
  }]
356
- }, [O.map((i) => j("span", {
361
+ }, [m.map((c) => N("span", {
357
362
  class: ["f-icon default-dark-color", l.value, {
358
363
  "f-star-sm": t.value === "small"
359
364
  }, {
@@ -363,11 +368,11 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
363
368
  }, {
364
369
  "f-star-exlarge": t.value === "extraLarge"
365
370
  }],
366
- id: i.id,
371
+ id: c.id,
367
372
  style: {
368
373
  color: w.value
369
374
  }
370
- }, null))]), j("div", {
375
+ }, null))]), N("div", {
371
376
  class: ["f-utils-fill", {
372
377
  "font-small": t.value === "small"
373
378
  }, {
@@ -377,112 +382,119 @@ const ve = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
377
382
  }, {
378
383
  "font-exlarge": t.value === "extraLarge"
379
384
  }]
380
- }, [h.value && j("span", null, [P(" "), X.value, P(" ")]), S.value && (y || f) && j("span", null, [P(" "), f || y])])]);
385
+ }, [S.value && N("span", null, [B(" "), _.value, B(" ")]), M.value && (g || u) && N("span", null, [B(" "), u || g])])]);
381
386
  }
382
387
  });
383
- function Ee(a, e, t) {
388
+ function we(a, e, t) {
384
389
  var D;
385
- function n() {
386
- }
387
- const s = "", g = "", m = r();
388
- function b() {
390
+ const n = "", o = "", h = r();
391
+ function y() {
389
392
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
390
393
  }
391
- function w() {
394
+ function b() {
392
395
  return !1;
393
396
  }
394
- function l() {
397
+ function w() {
395
398
  return (e == null ? void 0 : e.schema.componentType) !== "frame";
396
399
  }
397
- function u() {
400
+ function l() {
398
401
  return (e == null ? void 0 : e.schema.componentType) === "frame";
399
402
  }
400
- function d(f) {
401
- if (!f || !f.value)
403
+ function s(u) {
404
+ if (!u || !u.value)
402
405
  return null;
403
- if (f.value.schema && f.value.schema.type === "component")
404
- return f.value;
405
- const y = r(f == null ? void 0 : f.value.parent), O = d(y);
406
- return O || null;
406
+ if (u.value.schema && u.value.schema.type === "component")
407
+ return u.value;
408
+ const g = r(u == null ? void 0 : u.value.parent), m = s(g);
409
+ return m || null;
407
410
  }
408
- function c(f = e) {
409
- const { componentInstance: y, designerItemElementRef: O } = f;
410
- return !y || !y.value ? null : y.value.canMove ? O : c(f.parent);
411
+ function f(u = e) {
412
+ const { componentInstance: g, designerItemElementRef: m } = u;
413
+ return !g || !g.value ? null : g.value.canMove ? m : f(u.parent);
411
414
  }
412
- function h(f) {
415
+ function p(u) {
413
416
  return !!t;
414
417
  }
415
418
  function S() {
416
419
  return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
417
420
  }
418
- function v() {
421
+ function M() {
419
422
  }
420
- function T(f, y) {
423
+ function v(u, g) {
421
424
  }
422
- function M(f, y) {
423
- const { componentType: O } = f;
424
- let E = I(O, f, y);
425
- const A = O.toLowerCase().replace("-", "_");
426
- return E && !E.id && E.type === O && (E.id = `${A}_${Math.random().toString().slice(2, 6)}`), E;
425
+ function T(u, g) {
426
+ const { componentType: m } = u;
427
+ let j = I(m, u, g);
428
+ const P = m.toLowerCase().replace(/-/g, "_");
429
+ return j && !j.id && j.type === m && (j.id = `${P}_${Math.random().toString().slice(2, 6)}`), j;
427
430
  }
428
- function k(f) {
431
+ function O(u) {
429
432
  }
430
- function p(...f) {
433
+ function k(...u) {
431
434
  }
432
- return m.value = {
433
- canMove: b(),
434
- canSelectParent: w(),
435
- canDelete: l(),
436
- canNested: !u(),
435
+ function d() {
436
+ e != null && e.schema.contents && e.schema.contents.map((u) => {
437
+ var j;
438
+ let g = u.id;
439
+ u.type === "component-ref" && (g = u.component);
440
+ const m = a.value.querySelector(`#${g}-design-item`);
441
+ (j = m == null ? void 0 : m.componentInstance) != null && j.value.onRemoveComponent && m.componentInstance.value.onRemoveComponent();
442
+ });
443
+ }
444
+ return h.value = {
445
+ canMove: y(),
446
+ canSelectParent: b(),
447
+ canDelete: w(),
448
+ canNested: !l(),
437
449
  contents: e == null ? void 0 : e.schema.contents,
438
450
  elementRef: a,
439
451
  parent: (D = e == null ? void 0 : e.parent) == null ? void 0 : D.componentInstance,
440
452
  schema: e == null ? void 0 : e.schema,
441
- styles: s,
442
- designerClass: g,
443
- canAccepts: h,
444
- getBelongedComponentInstance: d,
445
- getDraggableDesignItemElement: c,
453
+ styles: n,
454
+ designerClass: o,
455
+ canAccepts: p,
456
+ getBelongedComponentInstance: s,
457
+ getDraggableDesignItemElement: f,
446
458
  getDraggingDisplayText: S,
447
- getPropConfig: p,
448
- getDragScopeElement: v,
449
- onAcceptMovedChildElement: T,
450
- onChildElementMovedOut: k,
451
- addNewChildComponentSchema: M,
452
- updateDragAndDropRules: n,
459
+ getPropConfig: k,
460
+ getDragScopeElement: M,
461
+ onAcceptMovedChildElement: v,
462
+ onChildElementMovedOut: O,
463
+ addNewChildComponentSchema: T,
453
464
  triggerBelongedComponentToMoveWhenMoved: r(!1),
454
- triggerBelongedComponentToDeleteWhenDeleted: r(!1)
455
- }, m;
465
+ triggerBelongedComponentToDeleteWhenDeleted: r(!1),
466
+ onRemoveComponent: d
467
+ }, h;
456
468
  }
457
- const we = /* @__PURE__ */ Z({
469
+ const Ee = /* @__PURE__ */ Z({
458
470
  name: "FRateDesign",
459
471
  props: Q,
460
472
  emits: ["selectedValue"],
461
473
  setup(a, e) {
462
- const t = r(a.size), n = r(a.enableHalf), s = r(a.enableClear), g = r(a.disabled), m = r(a.pointSystem), b = r(a.lightColor), w = r(a.darkColor), l = r(a.iconClass), u = r(a.numOfStar), d = r(a.toolTipDisabled), c = r(a.toolTipContents), h = r(a.enableScore), S = r(a.enableSatisfaction);
474
+ const t = r(a.size), n = r(a.enableHalf), o = r(a.enableClear), h = r(a.disabled), y = r(a.pointSystem), b = r(a.lightColor), w = r(a.darkColor), l = r(a.iconClass), s = r(a.numOfStar), f = r(a.toolTipDisabled), p = r(a.toolTipContents), S = r(a.enableScore), M = r(a.enableSatisfaction);
463
475
  let v;
464
476
  const T = r(1);
465
- let M = 0;
466
- const k = r(0), p = r(0);
467
- let D = 1, f, y, O;
468
- const E = 4, A = r(), L = te("design-item-context"), $ = Ee(A, L);
477
+ let O = 0;
478
+ const k = r(0), d = r(0);
479
+ let D = 1, u, g, m;
480
+ const j = 4, P = r(), $ = te("design-item-context"), F = we(P, $);
469
481
  G(() => {
470
- A.value.componentInstance = $;
471
- }), e.expose($.value), G(() => {
482
+ P.value.componentInstance = F;
483
+ }), e.expose(F.value), G(() => {
472
484
  });
473
- function z() {
474
- const o = u.value;
475
- O = [];
476
- for (let V = 1; V <= o; V++)
477
- O.push({
478
- id: V
485
+ function q() {
486
+ const i = s.value;
487
+ m = [];
488
+ for (let R = 1; R <= i; R++)
489
+ m.push({
490
+ id: R
479
491
  });
480
492
  }
481
- function H() {
482
- let o;
483
- n.value ? o = Math.ceil(p.value / D) : o = p.value, M = (v * p.value + Math.floor(p.value) * E) / D, f = c.value[o - 1];
493
+ function z() {
494
+ let i;
495
+ n.value ? i = Math.ceil(d.value / D) : i = d.value, O = (v * d.value + Math.floor(d.value) * j) / D, u = p.value[i - 1];
484
496
  }
485
- function q() {
497
+ function X() {
486
498
  switch (t.value) {
487
499
  case "small":
488
500
  v = 14;
@@ -497,47 +509,47 @@ const we = /* @__PURE__ */ Z({
497
509
  v = 24;
498
510
  break;
499
511
  }
500
- z(), u.value && (D = m.value / u.value), p.value && H();
512
+ q(), s.value && (D = y.value / s.value), d.value && z();
501
513
  }
502
- q();
503
- function B(o) {
504
- return o.className.indexOf("f-icon") !== -1;
514
+ X();
515
+ function L(i) {
516
+ return i.className.indexOf("f-icon") !== -1;
505
517
  }
506
- function X() {
507
- return T.value === M && s && M !== 0 ? (M = 0, p.value = 0, y = null, T.value = 0, k.value = 0, e.emit("selectedValue", p.value), !0) : !1;
518
+ function _() {
519
+ return T.value === O && o && O !== 0 ? (O = 0, d.value = 0, g = null, T.value = 0, k.value = 0, e.emit("selectedValue", d.value), !0) : !1;
508
520
  }
509
- function Y(o, V, _) {
510
- if (o.movementX || o.movementY) {
511
- if (g.value)
521
+ function C(i, R, Y) {
522
+ if (i.movementX || i.movementY) {
523
+ if (h.value)
512
524
  return;
513
- S.value && (f = c.value[V - 1]), o.offsetX < v / 2 && n.value === !0 ? (T.value = v * V - v / 2 + E * (V - 1), k.value = D * V - D / 2) : (T.value = v * V + E * (V - 1), k.value = D * V);
525
+ M.value && (u = p.value[R - 1]), i.offsetX < v / 2 && n.value === !0 ? (T.value = v * R - v / 2 + j * (R - 1), k.value = D * R - D / 2) : (T.value = v * R + j * (R - 1), k.value = D * R);
514
526
  }
515
- if (_ === !0) {
516
- if (X())
527
+ if (Y === !0) {
528
+ if (_())
517
529
  return;
518
- p.value = k.value, M = T.value, y = f, e.emit("selectedValue", p.value);
530
+ d.value = k.value, O = T.value, g = u, e.emit("selectedValue", d.value);
519
531
  }
520
532
  }
521
- function C(o, V) {
522
- if (B(o.target) && o.target) {
523
- const _ = parseInt(o.target.id);
524
- Y(o, _, V);
533
+ function A(i, R) {
534
+ if (L(i.target) && i.target) {
535
+ const Y = parseInt(i.target.id);
536
+ C(i, Y, R);
525
537
  }
526
538
  }
527
- const i = F(() => k.value ? k.value + "分" : p.value + "分"), N = F(() => ({
528
- width: (T.value || M) + "px"
539
+ const c = W(() => k.value ? k.value + "分" : d.value + "分"), V = W(() => ({
540
+ width: (T.value || O) + "px"
529
541
  }));
530
- return () => j("div", {
542
+ return () => N("div", {
531
543
  class: "farris-star-rating",
532
- ref: A,
533
- onMouseover: R((o) => C(o, !1), ["prevent"]),
534
- onMousemove: R((o) => C(o, !1), ["prevent"]),
535
- onMouseout: R((o) => C(o, !1), ["prevent"]),
536
- onClick: R((o) => C(o, !0), ["prevent"])
537
- }, [j("div", {
544
+ ref: P,
545
+ onMouseover: E((i) => A(i, !1), ["prevent"]),
546
+ onMousemove: E((i) => A(i, !1), ["prevent"]),
547
+ onMouseout: E((i) => A(i, !1), ["prevent"]),
548
+ onClick: E((i) => A(i, !0), ["prevent"])
549
+ }, [N("div", {
538
550
  class: "star-light-area",
539
- style: N.value
540
- }, [O.map((o) => j("span", {
551
+ style: V.value
552
+ }, [m.map((i) => N("span", {
541
553
  class: ["f-icon default-light-color ", l.value, {
542
554
  "f-star-sm": t.value === "small"
543
555
  }, {
@@ -547,13 +559,13 @@ const we = /* @__PURE__ */ Z({
547
559
  }, {
548
560
  "f-star-exlarge": t.value === "extraLarge"
549
561
  }, {
550
- disabled: d.value
562
+ disabled: f.value
551
563
  }],
552
- id: o.id,
564
+ id: i.id,
553
565
  style: {
554
566
  color: b.value
555
567
  }
556
- }, null))]), j("div", {
568
+ }, null))]), N("div", {
557
569
  class: ["star-dark-area", {
558
570
  small: t.value === "small"
559
571
  }, {
@@ -561,7 +573,7 @@ const we = /* @__PURE__ */ Z({
561
573
  }, {
562
574
  large: t.value === "large"
563
575
  }]
564
- }, [O.map((o) => j("span", {
576
+ }, [m.map((i) => N("span", {
565
577
  class: ["f-icon default-dark-color", l.value, {
566
578
  "f-star-sm": t.value === "small"
567
579
  }, {
@@ -571,11 +583,11 @@ const we = /* @__PURE__ */ Z({
571
583
  }, {
572
584
  "f-star-exlarge": t.value === "extraLarge"
573
585
  }],
574
- id: o.id,
586
+ id: i.id,
575
587
  style: {
576
588
  color: w.value
577
589
  }
578
- }, null))]), j("div", {
590
+ }, null))]), N("div", {
579
591
  class: ["f-utils-fill", {
580
592
  "font-small": t.value === "small"
581
593
  }, {
@@ -585,24 +597,19 @@ const we = /* @__PURE__ */ Z({
585
597
  }, {
586
598
  "font-exlarge": t.value === "extraLarge"
587
599
  }]
588
- }, [h.value && j("span", null, [P(" "), i.value, P(" ")]), S.value && (y || f) && j("span", null, [P(" "), f || y])])]);
600
+ }, [S.value && N("span", null, [B(" "), c.value, B(" ")]), M.value && (g || u) && N("span", null, [B(" "), u || g])])]);
589
601
  }
590
- }), Re = (a) => {
591
- const e = a;
592
- return e.install = function(t) {
593
- t.component(e.name, a);
594
- }, a;
595
- };
596
- W.register = (a, e, t, n) => {
597
- a.rate = W, e.rate = ee;
602
+ });
603
+ H.register = (a, e, t, n) => {
604
+ a.rate = H, e.rate = ee;
598
605
  };
599
- W.registerDesigner = (a, e, t) => {
600
- a.rate = we, e.rate = ee;
606
+ H.registerDesigner = (a, e, t) => {
607
+ a.rate = Ee, e.rate = ee;
601
608
  };
602
- const Pe = Re(W);
609
+ const Le = re(H);
603
610
  export {
604
- W as FRate,
605
- Pe as default,
611
+ H as FRate,
612
+ Le as default,
606
613
  ee as propsResolver,
607
614
  Q as rateProps
608
615
  };