@farris/ui-vue 1.6.5-beta.7 → 1.6.5

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 (192) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +190 -181
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -1,11 +1,11 @@
1
1
  import { ref as S, computed as U, defineComponent as I, watch as Q, createVNode as L, withModifiers as _, createTextVNode as X, inject as me, onMounted as Z } from "vue";
2
- import { isPlainObject as x, cloneDeep as K } from "lodash-es";
2
+ import { cloneDeep as x, isPlainObject as K } from "lodash-es";
3
3
  import { getSchemaByTypeForDesigner as de } from "../dynamic-resolver/index.esm.js";
4
4
  import { withInstall as ge } from "../common/index.esm.js";
5
5
  function ee(e, t) {
6
6
  let r;
7
7
  function i(a) {
8
- const { properties: c, title: y, ignore: o } = a, n = o && Array.isArray(o), l = Object.keys(c).reduce((p, m) => ((!n || !o.find((d) => d === m)) && (p[m] = c[m].type === "object" && c[m].properties ? i(c[m]) : K(c[m].default)), p), {});
8
+ const { properties: c, title: y, ignore: o } = a, n = o && Array.isArray(o), l = Object.keys(c).reduce((p, m) => ((!n || !o.find((d) => d === m)) && (p[m] = c[m].type === "object" && c[m].properties ? i(c[m]) : x(c[m].default)), p), {});
9
9
  if (y && (!n || !o.find((p) => p === "id"))) {
10
10
  const p = y.toLowerCase().replace(/-/g, "_");
11
11
  l.id = `${p}_${Math.random().toString().slice(2, 6)}`;
@@ -15,7 +15,7 @@ function ee(e, t) {
15
15
  function M(a) {
16
16
  const { properties: c, title: y, required: o } = a;
17
17
  if (o && Array.isArray(o)) {
18
- const n = o.reduce((l, p) => (l[p] = c[p].type === "object" && c[p].properties ? i(c[p]) : K(c[p].default), l), {});
18
+ const n = o.reduce((l, p) => (l[p] = c[p].type === "object" && c[p].properties ? i(c[p]) : x(c[p].default), l), {});
19
19
  if (y && o.find((l) => l === "id")) {
20
20
  const l = y.toLowerCase().replace(/-/g, "_");
21
21
  n.id = `${l}_${Math.random().toString().slice(2, 6)}`;
@@ -26,18 +26,18 @@ function ee(e, t) {
26
26
  type: y
27
27
  };
28
28
  }
29
- function R(a, c = {}, y) {
29
+ function C(a, c = {}, y) {
30
30
  const o = e[a];
31
31
  if (o) {
32
32
  let n = M(o);
33
33
  const l = t[a];
34
- return n = l ? l({ getSchemaByType: R }, n, c, y) : n, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(n), n;
34
+ return n = l ? l({ getSchemaByType: C }, n, c, y) : n, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(n), n;
35
35
  }
36
36
  return null;
37
37
  }
38
38
  function N(a, c) {
39
39
  const y = i(c);
40
- return Object.keys(y).reduce((o, n) => (Object.prototype.hasOwnProperty.call(a, n) && (o[n] && x(o[n]) && x(a[n] || !a[n]) ? Object.assign(o[n], a[n] || {}) : o[n] = a[n]), o), y), y;
40
+ return Object.keys(y).reduce((o, n) => (Object.prototype.hasOwnProperty.call(a, n) && (o[n] && K(o[n]) && K(a[n] || !a[n]) ? Object.assign(o[n], a[n] || {}) : o[n] = a[n]), o), y), y;
41
41
  }
42
42
  function A(a, c) {
43
43
  return Object.keys(a).filter((o) => a[o] != null).reduce((o, n) => {
@@ -77,9 +77,9 @@ function ee(e, t) {
77
77
  function b(a) {
78
78
  r = a;
79
79
  }
80
- return { getSchemaByType: R, resolveSchemaWithDefaultValue: v, resolveSchemaToProps: W, mappingSchemaToProps: A, setDesignerContext: b };
80
+ return { getSchemaByType: C, resolveSchemaWithDefaultValue: v, resolveSchemaToProps: W, mappingSchemaToProps: A, setDesignerContext: b };
81
81
  }
82
- const te = {}, re = {}, { resolveSchemaWithDefaultValue: be, resolveSchemaToProps: ye, mappingSchemaToProps: Se } = ee(te, re);
82
+ const te = {}, re = {}, { getSchemaByType: mt, resolveSchemaWithDefaultValue: be, resolveSchemaToProps: ye, mappingSchemaToProps: Se, setDesignerContext: dt } = ee(te, re);
83
83
  function he(e = {}) {
84
84
  function t(v, b, a, c) {
85
85
  if (typeof a == "number")
@@ -112,7 +112,7 @@ function he(e = {}) {
112
112
  return { target: a, operator: "getProperty", param: y, value: o };
113
113
  }) : [];
114
114
  }
115
- function R(v) {
115
+ function C(v) {
116
116
  return Object.keys(v).reduce((a, c) => {
117
117
  const y = M(c, v[c]);
118
118
  return a.push(...y), a;
@@ -126,7 +126,7 @@ function he(e = {}) {
126
126
  return !1;
127
127
  }
128
128
  function A(v, b) {
129
- return R(v).reduce((y, o) => y && N(o, b), !0);
129
+ return C(v).reduce((y, o) => y && N(o, b), !0);
130
130
  }
131
131
  function W(v, b) {
132
132
  const a = Object.keys(v), c = a.includes("allOf"), y = a.includes("anyOf"), o = c || y, p = (o ? v[o ? c ? "allOf" : "anyOf" : "allOf"] : [v]).map((d) => A(d, b));
@@ -199,12 +199,12 @@ const Te = {
199
199
  const i = e.editor && e.editor[t] ? e.editor[t] : e[t];
200
200
  return ((M = ne[i]) == null ? void 0 : M.name) || i;
201
201
  }
202
- }, ke = {
202
+ }, Pe = {
203
203
  convertTo: (e, t, r, i) => {
204
204
  e[t] = e[t];
205
205
  },
206
206
  convertFrom: (e, t, r) => e.editor ? r.getRealEditorType(e.editor.type) : ""
207
- }, we = {
207
+ }, ke = {
208
208
  convertTo: (e, t, r, i) => {
209
209
  (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = r : e.formatter = {
210
210
  [t]: r
@@ -235,7 +235,7 @@ const Te = {
235
235
  }
236
236
  return "none";
237
237
  }
238
- }, Pe = {
238
+ }, De = {
239
239
  convertTo: (e, t, r, i) => {
240
240
  e.command ? e.command[t] = r : e.command = {
241
241
  [t]: r
@@ -253,7 +253,7 @@ const Te = {
253
253
  ]));
254
254
  },
255
255
  convertFrom: (e, t, r) => e.command && t === "enable" ? e.command.enable : ""
256
- }, De = {
256
+ }, we = {
257
257
  convertTo: (e, t, r, i) => {
258
258
  e.column ? e.column[t] = r : e.column = {
259
259
  [t]: r
@@ -309,12 +309,12 @@ const Te = {
309
309
  e.pagination || (e.pagination = {}), e.pagination[t] = r;
310
310
  },
311
311
  convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
312
- }, Re = {
312
+ }, Ce = {
313
313
  convertTo: (e, t, r, i) => {
314
314
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
315
315
  },
316
316
  convertFrom: (e, t, r) => e.rowNumber ? e.rowNumber[t] : e[t]
317
- }, Ce = {
317
+ }, $e = {
318
318
  convertTo: (e, t, r, i) => {
319
319
  e.selection || (e.selection = {}), e.selection[t] = r;
320
320
  },
@@ -322,7 +322,7 @@ const Te = {
322
322
  var i, M;
323
323
  return t === "showCheckbox" ? (i = e.selection) != null && i.multiSelect ? !0 : (M = e.selection) == null ? void 0 : M.showCheckbox : e.selection ? e.selection[t] : e[t];
324
324
  }
325
- }, $e = {
325
+ }, Re = {
326
326
  convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
327
327
  }, Ae = {
328
328
  convertFrom: (e, t) => e[t] || "",
@@ -380,19 +380,19 @@ function oe(e, t, r) {
380
380
  ["/converter/appearance.converter", Te],
381
381
  ["/converter/buttons.converter", Fe],
382
382
  ["/converter/property-editor.converter", Oe],
383
- ["/converter/items-count.converter", $e],
383
+ ["/converter/items-count.converter", Re],
384
384
  ["/converter/type.converter", Me],
385
- ["/converter/change-editor.converter", ke],
386
- ["/converter/change-formatter.converter", we],
387
- ["/converter/column-command.converter", Pe],
388
- ["/converter/column-option.converter", De],
385
+ ["/converter/change-editor.converter", Pe],
386
+ ["/converter/change-formatter.converter", ke],
387
+ ["/converter/column-command.converter", De],
388
+ ["/converter/column-option.converter", we],
389
389
  ["/converter/summary.converter", Ne],
390
390
  ["/converter/group.converter", Ee],
391
391
  ["/converter/form-group-label.converter", Ae],
392
392
  ["/converter/field-selector.converter", je],
393
393
  ["/converter/pagination.converter", Be],
394
- ["/converter/row-number.converter", Re],
395
- ["/converter/grid-selection.converter", Ce],
394
+ ["/converter/row-number.converter", Ce],
395
+ ["/converter/grid-selection.converter", $e],
396
396
  ["/converter/size.converter", Le],
397
397
  ["/converter/change-formatter-enum.converter", ze],
398
398
  ["/converter/grid-sort.converter", We],
@@ -422,9 +422,9 @@ function oe(e, t, r) {
422
422
  ["array", { type: "button-edit" }],
423
423
  ["number", { type: "number-spinner", placeholder: "" }],
424
424
  ["events-editor", { type: "events-editor", hide: !0 }]
425
- ]), R = he();
425
+ ]), C = he();
426
426
  function N(o, n) {
427
- return () => R.parseValueSchema(o, n);
427
+ return () => C.parseValueSchema(o, n);
428
428
  }
429
429
  function A(o, n, l) {
430
430
  return o.includes("visible") && n.visible !== void 0 ? typeof n.visible == "boolean" ? () => !!n.visible : n.visible === void 0 ? !0 : N(n.visible, l) : () => !0;
@@ -436,13 +436,13 @@ function oe(e, t, r) {
436
436
  const l = o.$converter || n;
437
437
  return typeof l == "string" && l && i.has(l) ? i.get(l) || null : l || null;
438
438
  }
439
- function b(o, n, l, p, m, d = "", w = "") {
439
+ function b(o, n, l, p, m, d = "", k = "") {
440
440
  return Object.keys(o).map((F) => {
441
- const E = S(1), j = F, u = o[F], B = Object.keys(u), q = u.title, f = u.type, T = M.get(f) || { type: "input-group", enableClear: !1 }, h = u.editor ? Object.assign({}, T, u.editor) : Object.assign({}, T), O = A(B, u, n), D = W(B, u, n);
442
- h.readonly = h.readonly === void 0 ? D() : h.readonly;
443
- const C = u.type === "cascade" ? b(u.properties, n, l, p, m, d, w) : [], z = !0;
444
- let s = v(u, w);
445
- const k = U({
441
+ const E = S(1), j = F, u = o[F], B = Object.keys(u), q = u.title, f = u.type, T = M.get(f) || { type: "input-group", enableClear: !1 }, h = u.editor ? Object.assign({}, T, u.editor) : Object.assign({}, T), O = A(B, u, n), w = W(B, u, n);
442
+ h.readonly = h.readonly === void 0 ? w() : h.readonly;
443
+ const $ = u.type === "cascade" ? b(u.properties, n, l, p, m, d, k) : [], z = !0;
444
+ let s = v(u, k);
445
+ const P = U({
446
446
  get() {
447
447
  if (E.value) {
448
448
  if (["class", "style"].find((ve) => ve === j) && !s && (s = i.get("/converter/appearance.converter") || null), s && s.convertFrom)
@@ -455,31 +455,31 @@ function oe(e, t, r) {
455
455
  set(V) {
456
456
  E.value += 1, s && s.convertTo ? (s.convertTo(p, F, V, m, d), s.convertTo(l, F, V, m, d)) : (p[F] = V, l[F] = V);
457
457
  }
458
- }), { refreshPanelAfterChanged: g, description: $, isExpand: G, parentPropertyID: pe } = u, J = { propertyID: j, propertyName: q, propertyType: f, propertyValue: k, editor: h, visible: O, readonly: D, cascadeConfig: C, hideCascadeTitle: z, refreshPanelAfterChanged: g, description: $, isExpand: G, parentPropertyID: pe };
458
+ }), { refreshPanelAfterChanged: g, description: R, isExpand: G, parentPropertyID: pe } = u, J = { propertyID: j, propertyName: q, propertyType: f, propertyValue: P, editor: h, visible: O, readonly: w, cascadeConfig: $, hideCascadeTitle: z, refreshPanelAfterChanged: g, description: R, isExpand: G, parentPropertyID: pe };
459
459
  return n[j] = J, J;
460
460
  });
461
461
  }
462
462
  function a(o, n, l = {}) {
463
463
  const p = {}, m = e[o];
464
- return m && m.categories ? Object.keys(m.categories).map((w) => {
465
- const P = m.categories[w], F = P == null ? void 0 : P.title, E = b(P.properties || {}, p, {}, l, n);
466
- return { categoryId: w, categoryName: F, properties: E };
464
+ return m && m.categories ? Object.keys(m.categories).map((k) => {
465
+ const D = m.categories[k], F = D == null ? void 0 : D.title, E = b(D.properties || {}, p, {}, l, n);
466
+ return { categoryId: k, categoryName: F, properties: E };
467
467
  }) : [];
468
468
  }
469
469
  function c(o, n, l, p, m = "") {
470
- const d = n.$ref.schema, w = n.$ref.converter, P = l[d], F = P.type, E = r(P), j = {}, u = e[F];
470
+ const d = n.$ref.schema, k = n.$ref.converter, D = l[d], F = D.type, E = r(D), j = {}, u = e[F];
471
471
  if (u && u.categories) {
472
472
  const B = u.categories[o], q = B == null ? void 0 : B.title;
473
- w && Object.keys(B.properties).forEach((h) => {
474
- B.properties[h].$converter = w;
473
+ k && Object.keys(B.properties).forEach((h) => {
474
+ B.properties[h].$converter = k;
475
475
  });
476
- const f = (B == null ? void 0 : B.properties) || {}, T = b(f, j, E, P, p, m);
476
+ const f = (B == null ? void 0 : B.properties) || {}, T = b(f, j, E, D, p, m);
477
477
  return { categoryId: o, categoryName: q, properties: T };
478
478
  }
479
479
  return { categoryId: o, categoryName: "", properties: [] };
480
480
  }
481
481
  function y(o, n, l, p, m) {
482
- const d = o.type, w = r(o), P = {};
482
+ const d = o.type, k = r(o), D = {};
483
483
  let F = m || e[d];
484
484
  if (F && Object.keys(F).length === 0 && l && l.getPropConfig && (F = l.getPropConfig(p)), F && F.categories) {
485
485
  const E = [];
@@ -489,8 +489,8 @@ function oe(e, t, r) {
489
489
  E.push(c(j, u, o, n, p));
490
490
  return;
491
491
  }
492
- const B = u == null ? void 0 : u.title, q = u == null ? void 0 : u.tabId, f = u == null ? void 0 : u.tabName, T = u == null ? void 0 : u.hide, h = u == null ? void 0 : u.hideTitle, O = b(u.properties || {}, P, w, o, n, p, u.$converter), { setPropertyRelates: D } = u, C = u == null ? void 0 : u.parentPropertyID;
493
- E.push({ categoryId: j, categoryName: B, tabId: q, tabName: f, hide: T, properties: O, hideTitle: h, setPropertyRelates: D, parentPropertyID: C });
492
+ const B = u == null ? void 0 : u.title, q = u == null ? void 0 : u.tabId, f = u == null ? void 0 : u.tabName, T = u == null ? void 0 : u.hide, h = u == null ? void 0 : u.hideTitle, O = b(u.properties || {}, D, k, o, n, p, u.$converter), { setPropertyRelates: w } = u, $ = u == null ? void 0 : u.parentPropertyID;
493
+ E.push({ categoryId: j, categoryName: B, tabId: q, tabName: f, hide: T, properties: O, hideTitle: h, setPropertyRelates: w, parentPropertyID: $ });
494
494
  }), E;
495
495
  }
496
496
  return [];
@@ -503,10 +503,10 @@ function oe(e, t, r) {
503
503
  }
504
504
  const ae = {}, le = {};
505
505
  oe(ae, le, be);
506
- const ie = {}, ce = {}, { resolveSchemaWithDefaultValue: _e } = ee(ie, ce), se = {}, ue = {};
506
+ const ie = {}, ce = {}, { getSchemaByType: gt, resolveSchemaWithDefaultValue: _e, resolveSchemaToProps: bt, mappingSchemaToProps: yt, setDesignerContext: St } = ee(ie, ce), se = {}, ue = {};
507
507
  oe(se, ue, _e);
508
- function Xe(e, t, r = /* @__PURE__ */ new Map(), i = (N, A, W, v) => A, M = {}, R = (N) => N) {
509
- return te[t.title] = t, re[t.title] = i, ae[t.title] = M, le[t.title] = R, ie[t.title] = t, ce[t.title] = i, se[t.title] = M, ue[t.title] = R, (N = {}, A = !0) => {
508
+ function Xe(e, t, r = /* @__PURE__ */ new Map(), i = (N, A, W, v) => A, M = {}, C = (N) => N) {
509
+ return te[t.title] = t, re[t.title] = i, ae[t.title] = M, le[t.title] = C, ie[t.title] = t, ce[t.title] = i, se[t.title] = M, ue[t.title] = C, (N = {}, A = !0) => {
510
510
  if (!A)
511
511
  return Se(N, r);
512
512
  const W = ye(N, t, r), v = Object.keys(e).reduce((b, a) => (b[a] = e[a].default, b), {});
@@ -663,22 +663,22 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
663
663
  props: Y,
664
664
  emits: ["selectedValue", "update:modelValue"],
665
665
  setup(e, t) {
666
- const r = S(e.size), i = S(e.enableHalf), M = S(e.enableClear), R = S(e.disabled), N = S(e.pointSystem), A = S(e.lightColor), W = S(e.darkColor), v = S(e.iconClass), b = S(e.numOfStar), a = S(e.toolTipDisabled), c = S(e.toolTipContents), y = S(e.enableScore), o = S(e.enableSatisfaction);
666
+ const r = S(e.size), i = S(e.enableHalf), M = S(e.enableClear), C = S(e.disabled), N = S(e.pointSystem), A = S(e.lightColor), W = S(e.darkColor), v = S(e.iconClass), b = S(e.numOfStar), a = S(e.toolTipDisabled), c = S(e.toolTipContents), y = S(e.enableScore), o = S(e.enableSatisfaction);
667
667
  let n;
668
668
  const l = S(0), p = S(0), m = S(0), d = S(e.modelValue);
669
- let w = 1, P, F, E;
669
+ let k = 1, D, F, E;
670
670
  const j = 4;
671
671
  function u() {
672
672
  const s = b.value;
673
673
  E = [];
674
- for (let k = 1; k <= s; k++)
674
+ for (let P = 1; P <= s; P++)
675
675
  E.push({
676
- id: k
676
+ id: P
677
677
  });
678
678
  }
679
679
  function B() {
680
680
  let s;
681
- i.value ? s = Math.ceil(d.value / w) : s = d.value, p.value = (n * d.value + Math.floor(d.value) * j) / w, P = c.value[s - 1];
681
+ i.value ? s = Math.ceil(d.value / k) : s = d.value, p.value = (n * d.value + Math.floor(d.value) * j) / k, D = c.value[s - 1];
682
682
  }
683
683
  function q() {
684
684
  switch (r.value) {
@@ -695,7 +695,7 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
695
695
  n = 24;
696
696
  break;
697
697
  }
698
- u(), b.value && (w = N.value / b.value), d.value && B();
698
+ u(), b.value && (k = N.value / b.value), d.value && B();
699
699
  }
700
700
  q();
701
701
  function f(s) {
@@ -704,21 +704,21 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
704
704
  function T() {
705
705
  return d.value === m.value && M.value && p.value !== 0 ? (p.value = 0, d.value = 0, F = null, l.value = 0, m.value = 0, t.emit("selectedValue", d.value), t.emit("update:modelValue", d.value), !0) : !1;
706
706
  }
707
- function h(s, k, g) {
708
- if (!R.value && ((s.movementX || s.movementY) && (o.value && (P = c.value[k - 1]), s.offsetX < n / 2 && i.value === !0 ? (l.value = n * k - n / 2 + j * (k - 1), m.value = w * k - w / 2) : (l.value = n * k + j * (k - 1), m.value = w * k)), g === !0)) {
707
+ function h(s, P, g) {
708
+ if (!C.value && ((s.movementX || s.movementY) && (o.value && (D = c.value[P - 1]), s.offsetX < n / 2 && i.value === !0 ? (l.value = n * P - n / 2 + j * (P - 1), m.value = k * P - k / 2) : (l.value = n * P + j * (P - 1), m.value = k * P)), g === !0)) {
709
709
  if (T())
710
710
  return;
711
- d.value = m.value, p.value = l.value, F = P, t.emit("update:modelValue", d.value), t.emit("selectedValue", d.value);
711
+ d.value = m.value, p.value = l.value, F = D, t.emit("update:modelValue", d.value), t.emit("selectedValue", d.value);
712
712
  }
713
713
  }
714
- function O(s, k) {
714
+ function O(s, P) {
715
715
  var g;
716
716
  if (f(s.target) && s.target) {
717
- const $ = parseInt((g = s.target) == null ? void 0 : g.id);
718
- h(s, $, k);
717
+ const R = parseInt((g = s.target) == null ? void 0 : g.id);
718
+ h(s, R, P);
719
719
  }
720
720
  }
721
- const D = U(() => m.value ? m.value + "分" : d.value + "分"), C = U(() => ({
721
+ const w = U(() => m.value ? m.value + "分" : d.value + "分"), $ = U(() => ({
722
722
  width: (l.value || p.value) + "px"
723
723
  }));
724
724
  function z() {
@@ -726,8 +726,8 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
726
726
  }
727
727
  return Q(() => e.modelValue, (s) => {
728
728
  m.value = s, d.value = s, B();
729
- }), Q(() => [e.disabled, e.enableClear], ([s, k]) => {
730
- R.value = s, M.value = k;
729
+ }), Q(() => [e.disabled, e.enableClear], ([s, P]) => {
730
+ C.value = s, M.value = P;
731
731
  }), () => L("div", {
732
732
  class: "farris-star-rating",
733
733
  onMouseover: _((s) => O(s, !1), ["prevent"]),
@@ -736,7 +736,7 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
736
736
  onClick: _((s) => O(s, !0), ["prevent"])
737
737
  }, [L("div", {
738
738
  class: "star-light-area",
739
- style: C.value
739
+ style: $.value
740
740
  }, [E.map((s) => L("span", {
741
741
  class: ["f-icon default-light-color ", v.value, {
742
742
  "f-star-sm": r.value === "small"
@@ -785,12 +785,12 @@ const Ye = "https://json-schema.org/draft/2020-12/schema", Je = "https://farris-
785
785
  }, {
786
786
  "font-exlarge": r.value === "extraLarge"
787
787
  }]
788
- }, [y.value && L("span", null, [X(" "), D.value, X(" ")]), o.value && (F || P) && L("span", null, [X(" "), P || F])])]);
788
+ }, [y.value && L("span", null, [X(" "), w.value, X(" ")]), o.value && (F || D) && L("span", null, [X(" "), D || F])])]);
789
789
  }
790
790
  });
791
791
  function ct(e, t, r) {
792
792
  var q;
793
- const i = "", M = "", R = S();
793
+ const i = "", M = "", C = S();
794
794
  let N;
795
795
  function A() {
796
796
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
@@ -813,15 +813,15 @@ function ct(e, t, r) {
813
813
  return h || null;
814
814
  }
815
815
  function c(f = t) {
816
- var D;
816
+ var w;
817
817
  const { componentInstance: T, designerItemElementRef: h } = f;
818
818
  if (!T || !T.value)
819
819
  return null;
820
820
  const { getCustomButtons: O } = T.value;
821
- return T.value.canMove || O && ((D = O()) != null && D.length) ? h : c(f.parent);
821
+ return T.value.canMove || O && ((w = O()) != null && w.length) ? h : c(f.parent);
822
822
  }
823
823
  function y(f) {
824
- return !1;
824
+ return !!r;
825
825
  }
826
826
  function o() {
827
827
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -835,36 +835,36 @@ function ct(e, t, r) {
835
835
  function p(f, T) {
836
836
  const { componentType: h } = f;
837
837
  let O = de(h, f, T);
838
- const D = h.toLowerCase().replace(/-/g, "_");
839
- return O && !O.id && O.type === h && (O.id = `${D}_${Math.random().toString().slice(2, 6)}`), O;
838
+ const w = h.toLowerCase().replace(/-/g, "_");
839
+ return O && !O.id && O.type === h && (O.id = `${w}_${Math.random().toString().slice(2, 6)}`), O;
840
840
  }
841
841
  function m(f) {
842
842
  }
843
843
  function d(...f) {
844
844
  }
845
- function w(f) {
845
+ function k(f) {
846
846
  if (!f)
847
847
  return;
848
848
  const T = t == null ? void 0 : t.schema, { formSchemaUtils: h } = f;
849
849
  if (T && h.getExpressions().length) {
850
- const O = h.getExpressions().findIndex((D) => D.target === T.id);
850
+ const O = h.getExpressions().findIndex((w) => w.target === T.id);
851
851
  O > -1 && h.getExpressions().splice(O, 1);
852
852
  }
853
853
  }
854
- function P(f) {
854
+ function D(f) {
855
855
  if (!f || !(t != null && t.schema))
856
856
  return;
857
857
  const T = t.schema, { formSchemaUtils: h } = f;
858
858
  h.removeCommunicationInComponent(T);
859
859
  }
860
860
  function F(f) {
861
- w(f), P(f), t != null && t.schema.contents && t.schema.contents.map((T) => {
861
+ k(f), D(f), t != null && t.schema.contents && t.schema.contents.map((T) => {
862
862
  let h = T.id;
863
863
  T.type === "component-ref" && (h = T.component);
864
864
  const O = e.value.querySelectorAll(`#${h}-design-item`);
865
- O != null && O.length && Array.from(O).map((D) => {
866
- var C;
867
- (C = D == null ? void 0 : D.componentInstance) != null && C.value.onRemoveComponent && D.componentInstance.value.onRemoveComponent(f);
865
+ O != null && O.length && Array.from(O).map((w) => {
866
+ var $;
867
+ ($ = w == null ? void 0 : w.componentInstance) != null && $.value.onRemoveComponent && w.componentInstance.value.onRemoveComponent(f);
868
868
  });
869
869
  });
870
870
  }
@@ -877,8 +877,8 @@ function ct(e, t, r) {
877
877
  !N && f && (N = f.formSchemaUtils);
878
878
  let T = "";
879
879
  {
880
- const { text: D, title: C, label: z, mainTitle: s, name: k, type: g } = t.schema;
881
- T = D || C || z || s || k || ((O = ne[g]) == null ? void 0 : O.name);
880
+ const { text: w, title: $, label: z, mainTitle: s, name: P, type: g } = t.schema;
881
+ T = w || $ || z || s || P || ((O = ne[g]) == null ? void 0 : O.name);
882
882
  }
883
883
  T && N.getControlBasicInfoMap().set(t.schema.id, {
884
884
  componentTitle: T,
@@ -886,23 +886,23 @@ function ct(e, t, r) {
886
886
  });
887
887
  }
888
888
  function u(f) {
889
- var D;
889
+ var w;
890
890
  const { changeObject: T } = f, { propertyID: h, propertyValue: O } = T;
891
- if (["text", "title", "label", "name", "mainTitle"].includes((D = f == null ? void 0 : f.changeObject) == null ? void 0 : D.propertyID) && h && O && (j(), N)) {
892
- const C = N.getControlBasicInfoMap(), z = C.keys().toArray().filter((s) => {
893
- var k, g;
894
- return ((k = C.get(s)) == null ? void 0 : k.reliedComponentId) === ((g = t == null ? void 0 : t.schema) == null ? void 0 : g.id);
891
+ if (["text", "title", "label", "name", "mainTitle"].includes((w = f == null ? void 0 : f.changeObject) == null ? void 0 : w.propertyID) && h && O && (j(), N)) {
892
+ const $ = N.getControlBasicInfoMap(), z = $.keys().toArray().filter((s) => {
893
+ var P, g;
894
+ return ((P = $.get(s)) == null ? void 0 : P.reliedComponentId) === ((g = t == null ? void 0 : t.schema) == null ? void 0 : g.id);
895
895
  });
896
896
  z != null && z.length && z.forEach((s) => {
897
- const k = C.get(s).parentPathName.split(" > ");
898
- k[0] = O, C.get(s).parentPathName = k.join(" > ");
897
+ const P = $.get(s).parentPathName.split(" > ");
898
+ P[0] = O, $.get(s).parentPathName = P.join(" > ");
899
899
  });
900
900
  }
901
901
  }
902
902
  function B(f) {
903
903
  u(f);
904
904
  }
905
- return R.value = {
905
+ return C.value = {
906
906
  canMove: A(),
907
907
  canSelectParent: W(),
908
908
  canDelete: v(),
@@ -929,19 +929,19 @@ function ct(e, t, r) {
929
929
  onPropertyChanged: B,
930
930
  setComponentBasicInfoMap: j,
931
931
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
932
- }, R;
932
+ }, C;
933
933
  }
934
934
  const st = /* @__PURE__ */ I({
935
935
  name: "FRateDesign",
936
936
  props: Y,
937
937
  emits: ["selectedValue"],
938
938
  setup(e, t) {
939
- const r = S(e.size), i = S(e.enableHalf), M = S(e.enableClear), R = S(e.disabled), N = S(e.pointSystem), A = S(e.lightColor), W = S(e.darkColor), v = S(e.iconClass), b = S(e.numOfStar), a = S(e.toolTipDisabled), c = S(e.toolTipContents), y = S(e.enableScore), o = S(e.enableSatisfaction);
939
+ const r = S(e.size), i = S(e.enableHalf), M = S(e.enableClear), C = S(e.disabled), N = S(e.pointSystem), A = S(e.lightColor), W = S(e.darkColor), v = S(e.iconClass), b = S(e.numOfStar), a = S(e.toolTipDisabled), c = S(e.toolTipContents), y = S(e.enableScore), o = S(e.enableSatisfaction);
940
940
  let n;
941
941
  const l = S(1);
942
942
  let p = 0;
943
943
  const m = S(0), d = S(0);
944
- let w = 1, P, F, E;
944
+ let k = 1, D, F, E;
945
945
  const j = 4, u = S(), B = me("design-item-context"), q = ct(u, B);
946
946
  Z(() => {
947
947
  u.value.componentInstance = q;
@@ -950,14 +950,14 @@ const st = /* @__PURE__ */ I({
950
950
  function f() {
951
951
  const g = b.value;
952
952
  E = [];
953
- for (let $ = 1; $ <= g; $++)
953
+ for (let R = 1; R <= g; R++)
954
954
  E.push({
955
- id: $
955
+ id: R
956
956
  });
957
957
  }
958
958
  function T() {
959
959
  let g;
960
- i.value ? g = Math.ceil(d.value / w) : g = d.value, p = (n * d.value + Math.floor(d.value) * j) / w, P = c.value[g - 1];
960
+ i.value ? g = Math.ceil(d.value / k) : g = d.value, p = (n * d.value + Math.floor(d.value) * j) / k, D = c.value[g - 1];
961
961
  }
962
962
  function h() {
963
963
  switch (r.value) {
@@ -974,34 +974,34 @@ const st = /* @__PURE__ */ I({
974
974
  n = 24;
975
975
  break;
976
976
  }
977
- f(), b.value && (w = N.value / b.value), d.value && T();
977
+ f(), b.value && (k = N.value / b.value), d.value && T();
978
978
  }
979
979
  h();
980
980
  function O(g) {
981
981
  return g.className.indexOf("f-icon") !== -1;
982
982
  }
983
- function D() {
983
+ function w() {
984
984
  return l.value === p && M && p !== 0 ? (p = 0, d.value = 0, F = null, l.value = 0, m.value = 0, t.emit("selectedValue", d.value), !0) : !1;
985
985
  }
986
- function C(g, $, G) {
986
+ function $(g, R, G) {
987
987
  if (g.movementX || g.movementY) {
988
- if (R.value)
988
+ if (C.value)
989
989
  return;
990
- o.value && (P = c.value[$ - 1]), g.offsetX < n / 2 && i.value === !0 ? (l.value = n * $ - n / 2 + j * ($ - 1), m.value = w * $ - w / 2) : (l.value = n * $ + j * ($ - 1), m.value = w * $);
990
+ o.value && (D = c.value[R - 1]), g.offsetX < n / 2 && i.value === !0 ? (l.value = n * R - n / 2 + j * (R - 1), m.value = k * R - k / 2) : (l.value = n * R + j * (R - 1), m.value = k * R);
991
991
  }
992
992
  if (G === !0) {
993
- if (D())
993
+ if (w())
994
994
  return;
995
- d.value = m.value, p = l.value, F = P, t.emit("selectedValue", d.value);
995
+ d.value = m.value, p = l.value, F = D, t.emit("selectedValue", d.value);
996
996
  }
997
997
  }
998
- function z(g, $) {
998
+ function z(g, R) {
999
999
  if (O(g.target) && g.target) {
1000
1000
  const G = parseInt(g.target.id);
1001
- C(g, G, $);
1001
+ $(g, G, R);
1002
1002
  }
1003
1003
  }
1004
- const s = U(() => m.value ? m.value + "分" : d.value + "分"), k = U(() => ({
1004
+ const s = U(() => m.value ? m.value + "分" : d.value + "分"), P = U(() => ({
1005
1005
  width: (l.value || p) + "px"
1006
1006
  }));
1007
1007
  return () => L("div", {
@@ -1013,7 +1013,7 @@ const st = /* @__PURE__ */ I({
1013
1013
  onClick: _((g) => z(g, !0), ["prevent"])
1014
1014
  }, [L("div", {
1015
1015
  class: "star-light-area",
1016
- style: k.value
1016
+ style: P.value
1017
1017
  }, [E.map((g) => L("span", {
1018
1018
  class: ["f-icon default-light-color ", v.value, {
1019
1019
  "f-star-sm": r.value === "small"
@@ -1062,7 +1062,7 @@ const st = /* @__PURE__ */ I({
1062
1062
  }, {
1063
1063
  "font-exlarge": r.value === "extraLarge"
1064
1064
  }]
1065
- }, [y.value && L("span", null, [X(" "), s.value, X(" ")]), o.value && (F || P) && L("span", null, [X(" "), P || F])])]);
1065
+ }, [y.value && L("span", null, [X(" "), s.value, X(" ")]), o.value && (F || D) && L("span", null, [X(" "), D || F])])]);
1066
1066
  }
1067
1067
  });
1068
1068
  H.register = (e, t, r, i) => {
@@ -1071,10 +1071,10 @@ H.register = (e, t, r, i) => {
1071
1071
  H.registerDesigner = (e, t, r) => {
1072
1072
  e.rate = st, t.rate = fe;
1073
1073
  };
1074
- const mt = ge(H);
1074
+ const ht = ge(H);
1075
1075
  export {
1076
1076
  H as FRate,
1077
- mt as default,
1077
+ ht as default,
1078
1078
  fe as propsResolver,
1079
1079
  Y as rateProps
1080
1080
  };