@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
- import { ref as E, computed as _, defineComponent as V, watch as fe, createVNode as P, inject as pe, onMounted as ve } from "vue";
2
- import { isPlainObject as Q, cloneDeep as X } from "lodash-es";
1
+ import { ref as E, computed as _, defineComponent as V, watch as fe, createVNode as k, inject as pe, onMounted as ve } from "vue";
2
+ import { cloneDeep as Q, isPlainObject as X } from "lodash-es";
3
3
  import { getCustomClass as Y } from "../common/index.esm.js";
4
4
  import { getSchemaByTypeForDesigner as me } from "../dynamic-resolver/index.esm.js";
5
5
  function H(e, t) {
6
6
  let r;
7
7
  function c(s) {
8
- const { properties: a, title: g, ignore: o } = s, i = o && Array.isArray(o), u = Object.keys(a).reduce((y, T) => ((!i || !o.find((D) => D === T)) && (y[T] = a[T].type === "object" && a[T].properties ? c(a[T]) : X(a[T].default)), y), {});
8
+ const { properties: a, title: g, ignore: o } = s, i = o && Array.isArray(o), u = Object.keys(a).reduce((y, O) => ((!i || !o.find((D) => D === O)) && (y[O] = a[O].type === "object" && a[O].properties ? c(a[O]) : Q(a[O].default)), y), {});
9
9
  if (g && (!i || !o.find((y) => y === "id"))) {
10
10
  const y = g.toLowerCase().replace(/-/g, "_");
11
11
  u.id = `${y}_${Math.random().toString().slice(2, 6)}`;
@@ -15,7 +15,7 @@ function H(e, t) {
15
15
  function F(s) {
16
16
  const { properties: a, title: g, required: o } = s;
17
17
  if (o && Array.isArray(o)) {
18
- const i = o.reduce((u, y) => (u[y] = a[y].type === "object" && a[y].properties ? c(a[y]) : X(a[y].default), u), {});
18
+ const i = o.reduce((u, y) => (u[y] = a[y].type === "object" && a[y].properties ? c(a[y]) : Q(a[y].default), u), {});
19
19
  if (g && o.find((u) => u === "id")) {
20
20
  const u = g.toLowerCase().replace(/-/g, "_");
21
21
  i.id = `${u}_${Math.random().toString().slice(2, 6)}`;
@@ -37,7 +37,7 @@ function H(e, t) {
37
37
  }
38
38
  function d(s, a) {
39
39
  const g = c(a);
40
- return Object.keys(g).reduce((o, i) => (Object.prototype.hasOwnProperty.call(s, i) && (o[i] && Q(o[i]) && Q(s[i] || !s[i]) ? Object.assign(o[i], s[i] || {}) : o[i] = s[i]), o), g), g;
40
+ return Object.keys(g).reduce((o, i) => (Object.prototype.hasOwnProperty.call(s, i) && (o[i] && X(o[i]) && X(s[i] || !s[i]) ? Object.assign(o[i], s[i] || {}) : o[i] = s[i]), o), g), g;
41
41
  }
42
42
  function N(s, a) {
43
43
  return Object.keys(s).filter((o) => s[o] != null).reduce((o, i) => {
@@ -54,7 +54,7 @@ function H(e, t) {
54
54
  return o;
55
55
  }, {});
56
56
  }
57
- function R(s, a, g = /* @__PURE__ */ new Map()) {
57
+ function B(s, a, g = /* @__PURE__ */ new Map()) {
58
58
  const o = d(s, a);
59
59
  return N(o, g);
60
60
  }
@@ -67,8 +67,8 @@ function H(e, t) {
67
67
  return s;
68
68
  const i = d(s, o), u = ((g = s.editor) == null ? void 0 : g.type) || "";
69
69
  if (u) {
70
- const y = e[u], T = d(s.editor, y);
71
- i.editor = T;
70
+ const y = e[u], O = d(s.editor, y);
71
+ i.editor = O;
72
72
  }
73
73
  return i;
74
74
  }
@@ -77,9 +77,9 @@ function H(e, t) {
77
77
  function S(s) {
78
78
  r = s;
79
79
  }
80
- return { getSchemaByType: M, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: R, mappingSchemaToProps: N, setDesignerContext: S };
80
+ return { getSchemaByType: M, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: B, mappingSchemaToProps: N, setDesignerContext: S };
81
81
  }
82
- const x = {}, K = {}, { resolveSchemaWithDefaultValue: de, resolveSchemaToProps: be, mappingSchemaToProps: ge } = H(x, K);
82
+ const x = {}, K = {}, { getSchemaByType: ut, resolveSchemaWithDefaultValue: de, resolveSchemaToProps: be, mappingSchemaToProps: ge, setDesignerContext: ft } = H(x, K);
83
83
  function ye(e = {}) {
84
84
  function t(m, S, s, a) {
85
85
  if (typeof s == "number")
@@ -128,11 +128,11 @@ function ye(e = {}) {
128
128
  function N(m, S) {
129
129
  return M(m).reduce((g, o) => g && d(o, S), !0);
130
130
  }
131
- function R(m, S) {
131
+ function B(m, S) {
132
132
  const s = Object.keys(m), a = s.includes("allOf"), g = s.includes("anyOf"), o = a || g, y = (o ? m[o ? a ? "allOf" : "anyOf" : "allOf"] : [m]).map((D) => N(D, S));
133
133
  return a ? !y.includes(!1) : y.includes(!0);
134
134
  }
135
- return { parseValueSchema: R };
135
+ return { parseValueSchema: B };
136
136
  }
137
137
  const he = {
138
138
  convertTo: (e, t, r, c) => {
@@ -141,7 +141,7 @@ const he = {
141
141
  convertFrom: (e, t, r) => e.appearance ? e.appearance[t] : e[t]
142
142
  }, Se = {
143
143
  convertFrom: (e, t, r) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
144
- }, Oe = {
144
+ }, Te = {
145
145
  convertTo: (e, t, r, c) => {
146
146
  e.editor && (e.editor[t] = r);
147
147
  },
@@ -193,7 +193,7 @@ const he = {
193
193
  "list-view": { type: "list-view", name: "列表" },
194
194
  "filter-bar": { type: "filter-bar", name: "筛选条" },
195
195
  "language-textbox": { type: "language-textbox", name: "多语输入框" }
196
- }, Te = {
196
+ }, Oe = {
197
197
  convertFrom: (e, t, r) => {
198
198
  var F;
199
199
  const c = e.editor && e.editor[t] ? e.editor[t] : e[t];
@@ -235,7 +235,7 @@ const he = {
235
235
  }
236
236
  return "none";
237
237
  }
238
- }, ke = {
238
+ }, Pe = {
239
239
  convertTo: (e, t, r, c) => {
240
240
  e.command ? e.command[t] = r : e.command = {
241
241
  [t]: r
@@ -253,7 +253,7 @@ const he = {
253
253
  ]));
254
254
  },
255
255
  convertFrom: (e, t, r) => e.command && t === "enable" ? e.command.enable : ""
256
- }, Pe = {
256
+ }, ke = {
257
257
  convertTo: (e, t, r, c) => {
258
258
  e.column ? e.column[t] = r : e.column = {
259
259
  [t]: r
@@ -322,9 +322,9 @@ const he = {
322
322
  var c, F;
323
323
  return t === "showCheckbox" ? (c = e.selection) != null && c.multiSelect ? !0 : (F = e.selection) == null ? void 0 : F.showCheckbox : e.selection ? e.selection[t] : e[t];
324
324
  }
325
- }, Re = {
326
- convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
327
325
  }, Be = {
326
+ convertFrom: (e, t, r) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
327
+ }, Re = {
328
328
  convertFrom: (e, t) => e[t] || "",
329
329
  convertTo: (e, t, r) => {
330
330
  e[t] = r;
@@ -334,12 +334,12 @@ const he = {
334
334
  e.size || (e.size = {}), e.size[t] = r;
335
335
  },
336
336
  convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
337
- }, ze = {
337
+ }, Ce = {
338
338
  convertFrom: (e, t, r) => {
339
339
  var c, F;
340
340
  return (c = e.formatter) != null && c.data && t === "formatterEnumData" && !e.formatterEnumData ? (F = e.formatter) == null ? void 0 : F.data : e.formatterEnumData;
341
341
  }
342
- }, Ce = {
342
+ }, ze = {
343
343
  convertTo: (e, t, r, c) => {
344
344
  e.sort || (e.sort = {}), e.sort[t] = r;
345
345
  },
@@ -379,23 +379,23 @@ function ee(e, t, r) {
379
379
  const c = /* @__PURE__ */ new Map([
380
380
  ["/converter/appearance.converter", he],
381
381
  ["/converter/buttons.converter", Se],
382
- ["/converter/property-editor.converter", Oe],
383
- ["/converter/items-count.converter", Re],
384
- ["/converter/type.converter", Te],
382
+ ["/converter/property-editor.converter", Te],
383
+ ["/converter/items-count.converter", Be],
384
+ ["/converter/type.converter", Oe],
385
385
  ["/converter/change-editor.converter", je],
386
386
  ["/converter/change-formatter.converter", Fe],
387
- ["/converter/column-command.converter", ke],
388
- ["/converter/column-option.converter", Pe],
387
+ ["/converter/column-command.converter", Pe],
388
+ ["/converter/column-option.converter", ke],
389
389
  ["/converter/summary.converter", we],
390
390
  ["/converter/group.converter", De],
391
- ["/converter/form-group-label.converter", Be],
391
+ ["/converter/form-group-label.converter", Re],
392
392
  ["/converter/field-selector.converter", Me],
393
393
  ["/converter/pagination.converter", Ee],
394
394
  ["/converter/row-number.converter", Ne],
395
395
  ["/converter/grid-selection.converter", $e],
396
396
  ["/converter/size.converter", Ae],
397
- ["/converter/change-formatter-enum.converter", ze],
398
- ["/converter/grid-sort.converter", Ce],
397
+ ["/converter/change-formatter-enum.converter", Ce],
398
+ ["/converter/grid-sort.converter", ze],
399
399
  ["/converter/grid-filter.converter", Le],
400
400
  ["/converter/row-option.converter", qe]
401
401
  ]), F = /* @__PURE__ */ new Map([
@@ -429,69 +429,69 @@ function ee(e, t, r) {
429
429
  function N(o, i, u) {
430
430
  return o.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : d(i.visible, u) : () => !0;
431
431
  }
432
- function R(o, i, u) {
432
+ function B(o, i, u) {
433
433
  return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : d(i.readonly, u) : () => !1;
434
434
  }
435
435
  function m(o, i) {
436
436
  const u = o.$converter || i;
437
437
  return typeof u == "string" && u && c.has(u) ? c.get(u) || null : u || null;
438
438
  }
439
- function S(o, i, u, y, T, D = "", v = "") {
439
+ function S(o, i, u, y, O, D = "", v = "") {
440
440
  return Object.keys(o).map((b) => {
441
- const B = E(1), A = b, n = o[b], p = Object.keys(n), j = n.title, l = n.type, h = F.get(l) || { type: "input-group", enableClear: !1 }, O = n.editor ? Object.assign({}, h, n.editor) : Object.assign({}, h), k = N(p, n, i), w = R(p, n, i);
442
- O.readonly = O.readonly === void 0 ? w() : O.readonly;
443
- const z = n.type === "cascade" ? S(n.properties, i, u, y, T, D, v) : [], q = !0;
441
+ const R = E(1), A = b, n = o[b], p = Object.keys(n), j = n.title, l = n.type, h = F.get(l) || { type: "input-group", enableClear: !1 }, T = n.editor ? Object.assign({}, h, n.editor) : Object.assign({}, h), P = N(p, n, i), w = B(p, n, i);
442
+ T.readonly = T.readonly === void 0 ? w() : T.readonly;
443
+ const C = n.type === "cascade" ? S(n.properties, i, u, y, O, D, v) : [], q = !0;
444
444
  let $ = m(n, v);
445
- const C = _({
445
+ const z = _({
446
446
  get() {
447
- if (B.value) {
447
+ if (R.value) {
448
448
  if (["class", "style"].find((ue) => ue === A) && !$ && ($ = c.get("/converter/appearance.converter") || null), $ && $.convertFrom)
449
- return $.convertFrom(u, b, T, D);
449
+ return $.convertFrom(u, b, O, D);
450
450
  const L = u[b];
451
451
  return Object.prototype.hasOwnProperty.call(n, "defaultValue") && (L === void 0 || typeof L == "string" && L === "") ? n.type === "boolean" ? n.defaultValue : n.defaultValue || "" : L;
452
452
  }
453
453
  return null;
454
454
  },
455
455
  set(L) {
456
- B.value += 1, $ && $.convertTo ? ($.convertTo(y, b, L, T, D), $.convertTo(u, b, L, T, D)) : (y[b] = L, u[b] = L);
456
+ R.value += 1, $ && $.convertTo ? ($.convertTo(y, b, L, O, D), $.convertTo(u, b, L, O, D)) : (y[b] = L, u[b] = L);
457
457
  }
458
- }), { refreshPanelAfterChanged: W, description: ce, isExpand: ae, parentPropertyID: le } = n, J = { propertyID: A, propertyName: j, propertyType: l, propertyValue: C, editor: O, visible: k, readonly: w, cascadeConfig: z, hideCascadeTitle: q, refreshPanelAfterChanged: W, description: ce, isExpand: ae, parentPropertyID: le };
458
+ }), { refreshPanelAfterChanged: W, description: ce, isExpand: ae, parentPropertyID: le } = n, J = { propertyID: A, propertyName: j, propertyType: l, propertyValue: z, editor: T, visible: P, readonly: w, cascadeConfig: C, hideCascadeTitle: q, refreshPanelAfterChanged: W, description: ce, isExpand: ae, parentPropertyID: le };
459
459
  return i[A] = J, J;
460
460
  });
461
461
  }
462
462
  function s(o, i, u = {}) {
463
- const y = {}, T = e[o];
464
- return T && T.categories ? Object.keys(T.categories).map((v) => {
465
- const f = T.categories[v], b = f == null ? void 0 : f.title, B = S(f.properties || {}, y, {}, u, i);
466
- return { categoryId: v, categoryName: b, properties: B };
463
+ const y = {}, O = e[o];
464
+ return O && O.categories ? Object.keys(O.categories).map((v) => {
465
+ const f = O.categories[v], b = f == null ? void 0 : f.title, R = S(f.properties || {}, y, {}, u, i);
466
+ return { categoryId: v, categoryName: b, properties: R };
467
467
  }) : [];
468
468
  }
469
- function a(o, i, u, y, T = "") {
470
- const D = i.$ref.schema, v = i.$ref.converter, f = u[D], b = f.type, B = r(f), A = {}, n = e[b];
469
+ function a(o, i, u, y, O = "") {
470
+ const D = i.$ref.schema, v = i.$ref.converter, f = u[D], b = f.type, R = r(f), A = {}, n = e[b];
471
471
  if (n && n.categories) {
472
472
  const p = n.categories[o], j = p == null ? void 0 : p.title;
473
- v && Object.keys(p.properties).forEach((O) => {
474
- p.properties[O].$converter = v;
473
+ v && Object.keys(p.properties).forEach((T) => {
474
+ p.properties[T].$converter = v;
475
475
  });
476
- const l = (p == null ? void 0 : p.properties) || {}, h = S(l, A, B, f, y, T);
476
+ const l = (p == null ? void 0 : p.properties) || {}, h = S(l, A, R, f, y, O);
477
477
  return { categoryId: o, categoryName: j, properties: h };
478
478
  }
479
479
  return { categoryId: o, categoryName: "", properties: [] };
480
480
  }
481
- function g(o, i, u, y, T) {
481
+ function g(o, i, u, y, O) {
482
482
  const D = o.type, v = r(o), f = {};
483
- let b = T || e[D];
483
+ let b = O || e[D];
484
484
  if (b && Object.keys(b).length === 0 && u && u.getPropConfig && (b = u.getPropConfig(y)), b && b.categories) {
485
- const B = [];
485
+ const R = [];
486
486
  return Object.keys(b.categories).map((A) => {
487
487
  const n = b.categories[A];
488
488
  if (n.$ref) {
489
- B.push(a(A, n, o, i, y));
489
+ R.push(a(A, n, o, i, y));
490
490
  return;
491
491
  }
492
- const p = n == null ? void 0 : n.title, j = n == null ? void 0 : n.tabId, l = n == null ? void 0 : n.tabName, h = n == null ? void 0 : n.hide, O = n == null ? void 0 : n.hideTitle, k = S(n.properties || {}, f, v, o, i, y, n.$converter), { setPropertyRelates: w } = n, z = n == null ? void 0 : n.parentPropertyID;
493
- B.push({ categoryId: A, categoryName: p, tabId: j, tabName: l, hide: h, properties: k, hideTitle: O, setPropertyRelates: w, parentPropertyID: z });
494
- }), B;
492
+ const p = n == null ? void 0 : n.title, j = n == null ? void 0 : n.tabId, l = n == null ? void 0 : n.tabName, h = n == null ? void 0 : n.hide, T = n == null ? void 0 : n.hideTitle, P = S(n.properties || {}, f, v, o, i, y, n.$converter), { setPropertyRelates: w } = n, C = n == null ? void 0 : n.parentPropertyID;
493
+ R.push({ categoryId: A, categoryName: p, tabId: j, tabName: l, hide: h, properties: P, hideTitle: T, setPropertyRelates: w, parentPropertyID: C });
494
+ }), R;
495
495
  }
496
496
  return [];
497
497
  }
@@ -503,14 +503,14 @@ function ee(e, t, r) {
503
503
  }
504
504
  const te = {}, re = {};
505
505
  ee(te, re, de);
506
- const ne = {}, oe = {}, { resolveSchemaWithDefaultValue: _e } = H(ne, oe), ie = {}, se = {};
506
+ const ne = {}, oe = {}, { getSchemaByType: pt, resolveSchemaWithDefaultValue: _e, resolveSchemaToProps: vt, mappingSchemaToProps: mt, setDesignerContext: dt } = H(ne, oe), ie = {}, se = {};
507
507
  ee(ie, se, _e);
508
- function We(e, t, r = /* @__PURE__ */ new Map(), c = (d, N, R, m) => N, F = {}, M = (d) => d) {
508
+ function We(e, t, r = /* @__PURE__ */ new Map(), c = (d, N, B, m) => N, F = {}, M = (d) => d) {
509
509
  return x[t.title] = t, K[t.title] = c, te[t.title] = F, re[t.title] = M, ne[t.title] = t, oe[t.title] = c, ie[t.title] = F, se[t.title] = M, (d = {}, N = !0) => {
510
510
  if (!N)
511
511
  return ge(d, r);
512
- const R = be(d, t, r), m = Object.keys(e).reduce((S, s) => (S[s] = e[s].default, S), {});
513
- return Object.assign(m, R);
512
+ const B = be(d, t, r), m = Object.keys(e).reduce((S, s) => (S[s] = e[s].default, S), {});
513
+ return Object.assign(m, B);
514
514
  };
515
515
  }
516
516
  function Ge(e, t) {
@@ -662,7 +662,7 @@ const Qe = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-
662
662
  "f-progress-step-list-block": r.value === "vertical",
663
663
  "f-progress-step-horizontal-fill": r.value === "horizontal" && c.value,
664
664
  "f-progress-step-vertical-fill": r.value === "vertical" && c.value
665
- })), R = _(() => ({
665
+ })), B = _(() => ({
666
666
  height: r.value === "vertical" ? `${F.value}px` : ""
667
667
  }));
668
668
  function m(v, f) {
@@ -703,11 +703,11 @@ const Qe = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-
703
703
  }
704
704
  function g(v, f) {
705
705
  const b = [];
706
- return v.icon ? b.push(P("span", {
706
+ return v.icon ? b.push(k("span", {
707
707
  class: a(v, !1)
708
- }, null)) : f >= d.value ? b.push(P("span", {
708
+ }, null)) : f >= d.value ? b.push(k("span", {
709
709
  class: "step-icon"
710
- }, [f + 1])) : b.push(P("span", {
710
+ }, [f + 1])) : b.push(k("span", {
711
711
  class: a(v, !0)
712
712
  }, null)), b;
713
713
  }
@@ -718,9 +718,9 @@ const Qe = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-
718
718
  };
719
719
  }
720
720
  function i(v, f) {
721
- return P("div", {
721
+ return k("div", {
722
722
  class: "f-progress-step-title"
723
- }, [P("p", {
723
+ }, [k("p", {
724
724
  class: o(v, f)
725
725
  }, [v.title])]);
726
726
  }
@@ -733,31 +733,31 @@ const Qe = "https://json-schema.org/draft/2020-12/schema", Xe = "https://farris-
733
733
  function y(v, f) {
734
734
  return f !== M.value.length - 1;
735
735
  }
736
- const T = _(() => ({
736
+ const O = _(() => ({
737
737
  triangle: !0,
738
738
  "": r.value === "vertical"
739
739
  }));
740
740
  function D() {
741
- return M.value.map((v, f) => P("li", {
741
+ return M.value.map((v, f) => k("li", {
742
742
  class: m(v, f),
743
743
  onClick: (b) => S(v, f)
744
- }, [P("div", {
744
+ }, [k("div", {
745
745
  class: s(v, f)
746
- }, [P("div", {
746
+ }, [k("div", {
747
747
  class: "f-progress-step-content"
748
- }, [g(v, f), i(v, f)]), y(v, f) && P("div", {
748
+ }, [g(v, f), i(v, f)]), y(v, f) && k("div", {
749
749
  class: u(v, f)
750
- }, [P("span", {
751
- class: T.value
750
+ }, [k("span", {
751
+ class: O.value
752
752
  }, null)])])]));
753
753
  }
754
754
  return fe(() => e.activeIndex, () => {
755
755
  e.activeIndex > -1 && e.activeIndex <= M.value.length && (d.value = e.activeIndex, D());
756
- }), () => P("div", {
756
+ }), () => k("div", {
757
757
  class: "f-progress-step"
758
- }, [P("ul", {
758
+ }, [k("ul", {
759
759
  class: N.value,
760
- style: R.value
760
+ style: B.value
761
761
  }, [D()])]);
762
762
  }
763
763
  });
@@ -768,7 +768,7 @@ function ot(e, t, r) {
768
768
  function N() {
769
769
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
770
770
  }
771
- function R() {
771
+ function B() {
772
772
  return !1;
773
773
  }
774
774
  function m() {
@@ -782,19 +782,19 @@ function ot(e, t, r) {
782
782
  return null;
783
783
  if (l.value.schema && l.value.schema.type === "component")
784
784
  return l.value;
785
- const h = E(l == null ? void 0 : l.value.parent), O = s(h);
786
- return O || null;
785
+ const h = E(l == null ? void 0 : l.value.parent), T = s(h);
786
+ return T || null;
787
787
  }
788
788
  function a(l = t) {
789
789
  var w;
790
- const { componentInstance: h, designerItemElementRef: O } = l;
790
+ const { componentInstance: h, designerItemElementRef: T } = l;
791
791
  if (!h || !h.value)
792
792
  return null;
793
- const { getCustomButtons: k } = h.value;
794
- return h.value.canMove || k && ((w = k()) != null && w.length) ? O : a(l.parent);
793
+ const { getCustomButtons: P } = h.value;
794
+ return h.value.canMove || P && ((w = P()) != null && w.length) ? T : a(l.parent);
795
795
  }
796
796
  function g(l) {
797
- return !1;
797
+ return !!r;
798
798
  }
799
799
  function o() {
800
800
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -802,56 +802,56 @@ function ot(e, t, r) {
802
802
  function i() {
803
803
  }
804
804
  function u(l, h) {
805
- var O;
806
- !l || !h || (O = t == null ? void 0 : t.setupContext) == null || O.emit("dragEnd");
805
+ var T;
806
+ !l || !h || (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd");
807
807
  }
808
808
  function y(l, h) {
809
- const { componentType: O } = l;
810
- let k = me(O, l, h);
811
- const w = O.toLowerCase().replace(/-/g, "_");
812
- return k && !k.id && k.type === O && (k.id = `${w}_${Math.random().toString().slice(2, 6)}`), k;
809
+ const { componentType: T } = l;
810
+ let P = me(T, l, h);
811
+ const w = T.toLowerCase().replace(/-/g, "_");
812
+ return P && !P.id && P.type === T && (P.id = `${w}_${Math.random().toString().slice(2, 6)}`), P;
813
813
  }
814
- function T(l) {
814
+ function O(l) {
815
815
  }
816
816
  function D(...l) {
817
817
  }
818
818
  function v(l) {
819
819
  if (!l)
820
820
  return;
821
- const h = t == null ? void 0 : t.schema, { formSchemaUtils: O } = l;
822
- if (h && O.getExpressions().length) {
823
- const k = O.getExpressions().findIndex((w) => w.target === h.id);
824
- k > -1 && O.getExpressions().splice(k, 1);
821
+ const h = t == null ? void 0 : t.schema, { formSchemaUtils: T } = l;
822
+ if (h && T.getExpressions().length) {
823
+ const P = T.getExpressions().findIndex((w) => w.target === h.id);
824
+ P > -1 && T.getExpressions().splice(P, 1);
825
825
  }
826
826
  }
827
827
  function f(l) {
828
828
  if (!l || !(t != null && t.schema))
829
829
  return;
830
- const h = t.schema, { formSchemaUtils: O } = l;
831
- O.removeCommunicationInComponent(h);
830
+ const h = t.schema, { formSchemaUtils: T } = l;
831
+ T.removeCommunicationInComponent(h);
832
832
  }
833
833
  function b(l) {
834
834
  v(l), f(l), t != null && t.schema.contents && t.schema.contents.map((h) => {
835
- let O = h.id;
836
- h.type === "component-ref" && (O = h.component);
837
- const k = e.value.querySelectorAll(`#${O}-design-item`);
838
- k != null && k.length && Array.from(k).map((w) => {
839
- var z;
840
- (z = w == null ? void 0 : w.componentInstance) != null && z.value.onRemoveComponent && w.componentInstance.value.onRemoveComponent(l);
835
+ let T = h.id;
836
+ h.type === "component-ref" && (T = h.component);
837
+ const P = e.value.querySelectorAll(`#${T}-design-item`);
838
+ P != null && P.length && Array.from(P).map((w) => {
839
+ var C;
840
+ (C = w == null ? void 0 : w.componentInstance) != null && C.value.onRemoveComponent && w.componentInstance.value.onRemoveComponent(l);
841
841
  });
842
842
  });
843
843
  }
844
- function B() {
844
+ function R() {
845
845
  }
846
846
  function A(l) {
847
- var O, k;
848
- if (!((O = t == null ? void 0 : t.schema) != null && O.id))
847
+ var T, P;
848
+ if (!((T = t == null ? void 0 : t.schema) != null && T.id))
849
849
  return;
850
850
  !d && l && (d = l.formSchemaUtils);
851
851
  let h = "";
852
852
  {
853
- const { text: w, title: z, label: q, mainTitle: $, name: C, type: W } = t.schema;
854
- h = w || z || q || $ || C || ((k = I[W]) == null ? void 0 : k.name);
853
+ const { text: w, title: C, label: q, mainTitle: $, name: z, type: W } = t.schema;
854
+ h = w || C || q || $ || z || ((P = I[W]) == null ? void 0 : P.name);
855
855
  }
856
856
  h && d.getControlBasicInfoMap().set(t.schema.id, {
857
857
  componentTitle: h,
@@ -860,15 +860,15 @@ function ot(e, t, r) {
860
860
  }
861
861
  function n(l) {
862
862
  var w;
863
- const { changeObject: h } = l, { propertyID: O, propertyValue: k } = h;
864
- if (["text", "title", "label", "name", "mainTitle"].includes((w = l == null ? void 0 : l.changeObject) == null ? void 0 : w.propertyID) && O && k && (A(), d)) {
865
- const z = d.getControlBasicInfoMap(), q = z.keys().toArray().filter(($) => {
866
- var C, W;
867
- return ((C = z.get($)) == null ? void 0 : C.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
863
+ const { changeObject: h } = l, { propertyID: T, propertyValue: P } = h;
864
+ if (["text", "title", "label", "name", "mainTitle"].includes((w = l == null ? void 0 : l.changeObject) == null ? void 0 : w.propertyID) && T && P && (A(), d)) {
865
+ const C = d.getControlBasicInfoMap(), q = C.keys().toArray().filter(($) => {
866
+ var z, W;
867
+ return ((z = C.get($)) == null ? void 0 : z.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
868
868
  });
869
869
  q != null && q.length && q.forEach(($) => {
870
- const C = z.get($).parentPathName.split(" > ");
871
- C[0] = k, z.get($).parentPathName = C.join(" > ");
870
+ const z = C.get($).parentPathName.split(" > ");
871
+ z[0] = P, C.get($).parentPathName = z.join(" > ");
872
872
  });
873
873
  }
874
874
  }
@@ -877,7 +877,7 @@ function ot(e, t, r) {
877
877
  }
878
878
  return M.value = {
879
879
  canMove: N(),
880
- canSelectParent: R(),
880
+ canSelectParent: B(),
881
881
  canDelete: m(),
882
882
  canNested: !S(),
883
883
  contents: t == null ? void 0 : t.schema.contents,
@@ -893,12 +893,12 @@ function ot(e, t, r) {
893
893
  getPropConfig: D,
894
894
  getDragScopeElement: i,
895
895
  onAcceptMovedChildElement: u,
896
- onChildElementMovedOut: T,
896
+ onChildElementMovedOut: O,
897
897
  addNewChildComponentSchema: y,
898
898
  triggerBelongedComponentToMoveWhenMoved: E(!1),
899
899
  triggerBelongedComponentToDeleteWhenDeleted: E(!1),
900
900
  onRemoveComponent: b,
901
- getCustomButtons: B,
901
+ getCustomButtons: R,
902
902
  onPropertyChanged: p,
903
903
  setComponentBasicInfoMap: A,
904
904
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
@@ -909,7 +909,7 @@ const it = /* @__PURE__ */ V({
909
909
  props: U,
910
910
  emits: [],
911
911
  setup(e, t) {
912
- const r = E(e.direction), c = E(e.fill), F = E(e.height), M = E(e.steps), d = E(0), N = E(e.clickable), R = E(0), m = E(), S = pe("design-item-context"), s = ot(m, S);
912
+ const r = E(e.direction), c = E(e.fill), F = E(e.height), M = E(e.steps), d = E(0), N = E(e.clickable), B = E(0), m = E(), S = pe("design-item-context"), s = ot(m, S);
913
913
  ve(() => {
914
914
  m.value.componentInstance = s;
915
915
  }), t.expose(s.value);
@@ -950,13 +950,13 @@ const it = /* @__PURE__ */ V({
950
950
  };
951
951
  return n.hasOwnProperty("icon") && n.class.split(" ").reduce((l, h) => (l[h] = !0, l), j), j;
952
952
  }
953
- function T(n, p) {
953
+ function O(n, p) {
954
954
  const j = [];
955
- return n.icon ? j.push(P("span", {
955
+ return n.icon ? j.push(k("span", {
956
956
  class: y(n, !1)
957
- }, null)) : p >= d.value || p === R.value ? j.push(P("span", {
957
+ }, null)) : p >= d.value || p === B.value ? j.push(k("span", {
958
958
  class: "step-icon"
959
- }, [p + 1])) : j.push(P("span", {
959
+ }, [p + 1])) : j.push(k("span", {
960
960
  class: y(n, !0)
961
961
  }, null)), j;
962
962
  }
@@ -967,9 +967,9 @@ const it = /* @__PURE__ */ V({
967
967
  };
968
968
  }
969
969
  function v(n, p) {
970
- return P("div", {
970
+ return k("div", {
971
971
  class: "f-progress-step-title"
972
- }, [P("p", {
972
+ }, [k("p", {
973
973
  class: D(n, p)
974
974
  }, [n.title])]);
975
975
  }
@@ -982,33 +982,33 @@ const it = /* @__PURE__ */ V({
982
982
  function b(n, p) {
983
983
  return p !== M.value.length - 1;
984
984
  }
985
- const B = _(() => ({
985
+ const R = _(() => ({
986
986
  triangle: !0,
987
987
  "": r.value === "vertical"
988
988
  }));
989
989
  function A() {
990
- return M.value.map((n, p) => P("li", {
990
+ return M.value.map((n, p) => k("li", {
991
991
  class: o(n, p),
992
992
  onClick: (j) => void 0
993
- }, [P("div", {
993
+ }, [k("div", {
994
994
  class: u(n, p)
995
- }, [P("div", {
995
+ }, [k("div", {
996
996
  class: "f-progress-step-content"
997
- }, [T(n, p), v(n, p)]), b(n, p) && P("div", {
997
+ }, [O(n, p), v(n, p)]), b(n, p) && k("div", {
998
998
  class: f(n, p)
999
- }, [P("span", {
1000
- class: B.value
999
+ }, [k("span", {
1000
+ class: R.value
1001
1001
  }, null)])])]));
1002
1002
  }
1003
- return () => P("div", {
1003
+ return () => k("div", {
1004
1004
  ref: m,
1005
1005
  class: "f-progress-step"
1006
- }, [P("ul", {
1006
+ }, [k("ul", {
1007
1007
  class: a.value,
1008
1008
  style: g.value
1009
1009
  }, [A()])]);
1010
1010
  }
1011
- }), ut = {
1011
+ }), bt = {
1012
1012
  install(e) {
1013
1013
  e.component(G.name, G);
1014
1014
  },
@@ -1021,7 +1021,7 @@ const it = /* @__PURE__ */ V({
1021
1021
  };
1022
1022
  export {
1023
1023
  G as Step,
1024
- ut as default,
1024
+ bt as default,
1025
1025
  Z as propsResolver,
1026
1026
  U as stepProps
1027
1027
  };