@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,10 +1,10 @@
1
- import { ref as T, computed as mt, inject as we, onMounted as Te, onUnmounted as dt, watch as re, defineComponent as Se, createVNode as R, withModifiers as Z } from "vue";
2
- import { isPlainObject as xe, cloneDeep as Me } from "lodash-es";
1
+ import { ref as T, computed as mt, inject as we, onMounted as Te, onUnmounted as dt, watch as re, defineComponent as Se, createVNode as j, withModifiers as Z } from "vue";
2
+ import { cloneDeep as xe, isPlainObject as Me } from "lodash-es";
3
3
  import { getSchemaByTypeForDesigner as gt } from "../dynamic-resolver/index.esm.js";
4
4
  function Fe(e, t) {
5
5
  let a;
6
6
  function m(s) {
7
- const { properties: i, title: o, ignore: u } = s, l = u && Array.isArray(u), d = Object.keys(i).reduce((w, D) => ((!l || !u.find((O) => O === D)) && (w[D] = i[D].type === "object" && i[D].properties ? m(i[D]) : Me(i[D].default)), w), {});
7
+ const { properties: i, title: o, ignore: u } = s, l = u && Array.isArray(u), d = Object.keys(i).reduce((w, E) => ((!l || !u.find((O) => O === E)) && (w[E] = i[E].type === "object" && i[E].properties ? m(i[E]) : xe(i[E].default)), w), {});
8
8
  if (o && (!l || !u.find((w) => w === "id"))) {
9
9
  const w = o.toLowerCase().replace(/-/g, "_");
10
10
  d.id = `${w}_${Math.random().toString().slice(2, 6)}`;
@@ -14,7 +14,7 @@ function Fe(e, t) {
14
14
  function y(s) {
15
15
  const { properties: i, title: o, required: u } = s;
16
16
  if (u && Array.isArray(u)) {
17
- const l = u.reduce((d, w) => (d[w] = i[w].type === "object" && i[w].properties ? m(i[w]) : Me(i[w].default), d), {});
17
+ const l = u.reduce((d, w) => (d[w] = i[w].type === "object" && i[w].properties ? m(i[w]) : xe(i[w].default), d), {});
18
18
  if (o && u.find((d) => d === "id")) {
19
19
  const d = o.toLowerCase().replace(/-/g, "_");
20
20
  l.id = `${d}_${Math.random().toString().slice(2, 6)}`;
@@ -36,7 +36,7 @@ function Fe(e, t) {
36
36
  }
37
37
  function M(s, i) {
38
38
  const o = m(i);
39
- return Object.keys(o).reduce((u, l) => (Object.prototype.hasOwnProperty.call(s, l) && (u[l] && xe(u[l]) && xe(s[l] || !s[l]) ? Object.assign(u[l], s[l] || {}) : u[l] = s[l]), u), o), o;
39
+ return Object.keys(o).reduce((u, l) => (Object.prototype.hasOwnProperty.call(s, l) && (u[l] && Me(u[l]) && Me(s[l] || !s[l]) ? Object.assign(u[l], s[l] || {}) : u[l] = s[l]), u), o), o;
40
40
  }
41
41
  function F(s, i) {
42
42
  return Object.keys(s).filter((u) => s[u] != null).reduce((u, l) => {
@@ -66,8 +66,8 @@ function Fe(e, t) {
66
66
  return s;
67
67
  const l = M(s, u), d = ((o = s.editor) == null ? void 0 : o.type) || "";
68
68
  if (d) {
69
- const w = e[d], D = M(s.editor, w);
70
- l.editor = D;
69
+ const w = e[d], E = M(s.editor, w);
70
+ l.editor = E;
71
71
  }
72
72
  return l;
73
73
  }
@@ -78,7 +78,7 @@ function Fe(e, t) {
78
78
  }
79
79
  return { getSchemaByType: n, resolveSchemaWithDefaultValue: v, resolveSchemaToProps: B, mappingSchemaToProps: F, setDesignerContext: S };
80
80
  }
81
- const Ae = {}, Ee = {}, { resolveSchemaWithDefaultValue: pt, resolveSchemaToProps: ht, mappingSchemaToProps: yt } = Fe(Ae, Ee);
81
+ const Ae = {}, Pe = {}, { getSchemaByType: va, resolveSchemaWithDefaultValue: pt, resolveSchemaToProps: ht, mappingSchemaToProps: yt, setDesignerContext: ma } = Fe(Ae, Pe);
82
82
  function bt(e = {}) {
83
83
  function t(v, S, s, i) {
84
84
  if (typeof s == "number")
@@ -145,7 +145,7 @@ const xt = {
145
145
  e.editor && (e.editor[t] = a);
146
146
  },
147
147
  convertFrom: (e, t, a) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
148
- }, ke = {
148
+ }, De = {
149
149
  button: { type: "button", name: "按钮" },
150
150
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
151
151
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -196,7 +196,7 @@ const xt = {
196
196
  convertFrom: (e, t, a) => {
197
197
  var y;
198
198
  const m = e.editor && e.editor[t] ? e.editor[t] : e[t];
199
- return ((y = ke[m]) == null ? void 0 : y.name) || m;
199
+ return ((y = De[m]) == null ? void 0 : y.name) || m;
200
200
  }
201
201
  }, St = {
202
202
  convertTo: (e, t, a, m) => {
@@ -252,7 +252,7 @@ const xt = {
252
252
  ]));
253
253
  },
254
254
  convertFrom: (e, t, a) => e.command && t === "enable" ? e.command.enable : ""
255
- }, Et = {
255
+ }, Pt = {
256
256
  convertTo: (e, t, a, m) => {
257
257
  e.column ? e.column[t] = a : e.column = {
258
258
  [t]: a
@@ -267,7 +267,7 @@ const xt = {
267
267
  }
268
268
  return "";
269
269
  }
270
- }, kt = {
270
+ }, Dt = {
271
271
  convertTo: (e, t, a, m) => {
272
272
  e.summary ? e.summary[t] = a : e.summary = {
273
273
  [t]: a
@@ -277,7 +277,7 @@ const xt = {
277
277
  });
278
278
  },
279
279
  convertFrom: (e, t, a) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
280
- }, Dt = {
280
+ }, Et = {
281
281
  convertTo: (e, t, a, m) => {
282
282
  e.group ? e.group[t] = a : e.group = {
283
283
  [t]: a
@@ -295,7 +295,7 @@ const xt = {
295
295
  return e.group.showSummary;
296
296
  }
297
297
  }
298
- }, Pt = {
298
+ }, kt = {
299
299
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
300
300
  convertTo: (e, t, a) => {
301
301
  if (a && a.length > 0) {
@@ -323,22 +323,22 @@ const xt = {
323
323
  }
324
324
  }, Ot = {
325
325
  convertFrom: (e, t, a) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
326
- }, Nt = {
326
+ }, $t = {
327
327
  convertFrom: (e, t) => e[t] || "",
328
328
  convertTo: (e, t, a) => {
329
329
  e[t] = a;
330
330
  }
331
- }, $t = {
331
+ }, Nt = {
332
332
  convertTo: (e, t, a, m) => {
333
333
  e.size || (e.size = {}), e.size[t] = a;
334
334
  },
335
335
  convertFrom: (e, t, a) => e.size ? e.size[t] : e[t]
336
- }, Rt = {
336
+ }, jt = {
337
337
  convertFrom: (e, t, a) => {
338
338
  var m, y;
339
339
  return (m = e.formatter) != null && m.data && t === "formatterEnumData" && !e.formatterEnumData ? (y = e.formatter) == null ? void 0 : y.data : e.formatterEnumData;
340
340
  }
341
- }, jt = {
341
+ }, Rt = {
342
342
  convertTo: (e, t, a, m) => {
343
343
  e.sort || (e.sort = {}), e.sort[t] = a;
344
344
  },
@@ -374,7 +374,7 @@ const xt = {
374
374
  return "";
375
375
  }
376
376
  };
377
- function De(e, t, a) {
377
+ function Ee(e, t, a) {
378
378
  const m = /* @__PURE__ */ new Map([
379
379
  ["/converter/appearance.converter", xt],
380
380
  ["/converter/buttons.converter", Mt],
@@ -384,17 +384,17 @@ function De(e, t, a) {
384
384
  ["/converter/change-editor.converter", St],
385
385
  ["/converter/change-formatter.converter", Ft],
386
386
  ["/converter/column-command.converter", At],
387
- ["/converter/column-option.converter", Et],
388
- ["/converter/summary.converter", kt],
389
- ["/converter/group.converter", Dt],
390
- ["/converter/form-group-label.converter", Nt],
391
- ["/converter/field-selector.converter", Pt],
387
+ ["/converter/column-option.converter", Pt],
388
+ ["/converter/summary.converter", Dt],
389
+ ["/converter/group.converter", Et],
390
+ ["/converter/form-group-label.converter", $t],
391
+ ["/converter/field-selector.converter", kt],
392
392
  ["/converter/pagination.converter", Ct],
393
393
  ["/converter/row-number.converter", Bt],
394
394
  ["/converter/grid-selection.converter", zt],
395
- ["/converter/size.converter", $t],
396
- ["/converter/change-formatter-enum.converter", Rt],
397
- ["/converter/grid-sort.converter", jt],
395
+ ["/converter/size.converter", Nt],
396
+ ["/converter/change-formatter-enum.converter", jt],
397
+ ["/converter/grid-sort.converter", Rt],
398
398
  ["/converter/grid-filter.converter", Wt],
399
399
  ["/converter/row-option.converter", Lt]
400
400
  ]), y = /* @__PURE__ */ new Map([
@@ -435,61 +435,61 @@ function De(e, t, a) {
435
435
  const d = u.$converter || l;
436
436
  return typeof d == "string" && d && m.has(d) ? m.get(d) || null : d || null;
437
437
  }
438
- function S(u, l, d, w, D, O = "", W = "") {
438
+ function S(u, l, d, w, E, O = "", W = "") {
439
439
  return Object.keys(u).map((A) => {
440
- const b = T(1), E = A, g = u[A], L = Object.keys(g), $ = g.title, f = g.type, x = y.get(f) || { type: "input-group", enableClear: !1 }, p = g.editor ? Object.assign({}, x, g.editor) : Object.assign({}, x), P = F(L, g, l), j = B(L, g, l);
441
- p.readonly = p.readonly === void 0 ? j() : p.readonly;
442
- const N = g.type === "cascade" ? S(g.properties, l, d, w, D, O, W) : [], C = !0;
440
+ const b = T(1), P = A, g = u[A], L = Object.keys(g), N = g.title, f = g.type, x = y.get(f) || { type: "input-group", enableClear: !1 }, p = g.editor ? Object.assign({}, x, g.editor) : Object.assign({}, x), k = F(L, g, l), R = B(L, g, l);
441
+ p.readonly = p.readonly === void 0 ? R() : p.readonly;
442
+ const $ = g.type === "cascade" ? S(g.properties, l, d, w, E, O, W) : [], C = !0;
443
443
  let H = v(g, W);
444
444
  const J = mt({
445
445
  get() {
446
446
  if (b.value) {
447
- if (["class", "style"].find((te) => te === E) && !H && (H = m.get("/converter/appearance.converter") || null), H && H.convertFrom)
448
- return H.convertFrom(d, A, D, O);
447
+ if (["class", "style"].find((te) => te === P) && !H && (H = m.get("/converter/appearance.converter") || null), H && H.convertFrom)
448
+ return H.convertFrom(d, A, E, O);
449
449
  const I = d[A];
450
450
  return Object.prototype.hasOwnProperty.call(g, "defaultValue") && (I === void 0 || typeof I == "string" && I === "") ? g.type === "boolean" ? g.defaultValue : g.defaultValue || "" : I;
451
451
  }
452
452
  return null;
453
453
  },
454
454
  set(I) {
455
- b.value += 1, H && H.convertTo ? (H.convertTo(w, A, I, D, O), H.convertTo(d, A, I, D, O)) : (w[A] = I, d[A] = I);
455
+ b.value += 1, H && H.convertTo ? (H.convertTo(w, A, I, E, O), H.convertTo(d, A, I, E, O)) : (w[A] = I, d[A] = I);
456
456
  }
457
- }), { refreshPanelAfterChanged: U, description: V, isExpand: q, parentPropertyID: G } = g, k = { propertyID: E, propertyName: $, propertyType: f, propertyValue: J, editor: p, visible: P, readonly: j, cascadeConfig: N, hideCascadeTitle: C, refreshPanelAfterChanged: U, description: V, isExpand: q, parentPropertyID: G };
458
- return l[E] = k, k;
457
+ }), { refreshPanelAfterChanged: U, description: V, isExpand: q, parentPropertyID: G } = g, D = { propertyID: P, propertyName: N, propertyType: f, propertyValue: J, editor: p, visible: k, readonly: R, cascadeConfig: $, hideCascadeTitle: C, refreshPanelAfterChanged: U, description: V, isExpand: q, parentPropertyID: G };
458
+ return l[P] = D, D;
459
459
  });
460
460
  }
461
461
  function s(u, l, d = {}) {
462
- const w = {}, D = e[u];
463
- return D && D.categories ? Object.keys(D.categories).map((W) => {
464
- const z = D.categories[W], A = z == null ? void 0 : z.title, b = S(z.properties || {}, w, {}, d, l);
462
+ const w = {}, E = e[u];
463
+ return E && E.categories ? Object.keys(E.categories).map((W) => {
464
+ const z = E.categories[W], A = z == null ? void 0 : z.title, b = S(z.properties || {}, w, {}, d, l);
465
465
  return { categoryId: W, categoryName: A, properties: b };
466
466
  }) : [];
467
467
  }
468
- function i(u, l, d, w, D = "") {
469
- const O = l.$ref.schema, W = l.$ref.converter, z = d[O], A = z.type, b = a(z), E = {}, g = e[A];
468
+ function i(u, l, d, w, E = "") {
469
+ const O = l.$ref.schema, W = l.$ref.converter, z = d[O], A = z.type, b = a(z), P = {}, g = e[A];
470
470
  if (g && g.categories) {
471
- const L = g.categories[u], $ = L == null ? void 0 : L.title;
471
+ const L = g.categories[u], N = L == null ? void 0 : L.title;
472
472
  W && Object.keys(L.properties).forEach((p) => {
473
473
  L.properties[p].$converter = W;
474
474
  });
475
- const f = (L == null ? void 0 : L.properties) || {}, x = S(f, E, b, z, w, D);
476
- return { categoryId: u, categoryName: $, properties: x };
475
+ const f = (L == null ? void 0 : L.properties) || {}, x = S(f, P, b, z, w, E);
476
+ return { categoryId: u, categoryName: N, properties: x };
477
477
  }
478
478
  return { categoryId: u, categoryName: "", properties: [] };
479
479
  }
480
- function o(u, l, d, w, D) {
480
+ function o(u, l, d, w, E) {
481
481
  const O = u.type, W = a(u), z = {};
482
- let A = D || e[O];
482
+ let A = E || e[O];
483
483
  if (A && Object.keys(A).length === 0 && d && d.getPropConfig && (A = d.getPropConfig(w)), A && A.categories) {
484
484
  const b = [];
485
- return Object.keys(A.categories).map((E) => {
486
- const g = A.categories[E];
485
+ return Object.keys(A.categories).map((P) => {
486
+ const g = A.categories[P];
487
487
  if (g.$ref) {
488
- b.push(i(E, g, u, l, w));
488
+ b.push(i(P, g, u, l, w));
489
489
  return;
490
490
  }
491
- const L = g == null ? void 0 : g.title, $ = g == null ? void 0 : g.tabId, f = g == null ? void 0 : g.tabName, x = g == null ? void 0 : g.hide, p = g == null ? void 0 : g.hideTitle, P = S(g.properties || {}, z, W, u, l, w, g.$converter), { setPropertyRelates: j } = g, N = g == null ? void 0 : g.parentPropertyID;
492
- b.push({ categoryId: E, categoryName: L, tabId: $, tabName: f, hide: x, properties: P, hideTitle: p, setPropertyRelates: j, parentPropertyID: N });
491
+ const L = g == null ? void 0 : g.title, N = g == null ? void 0 : g.tabId, f = g == null ? void 0 : g.tabName, x = g == null ? void 0 : g.hide, p = g == null ? void 0 : g.hideTitle, k = S(g.properties || {}, z, W, u, l, w, g.$converter), { setPropertyRelates: R } = g, $ = g == null ? void 0 : g.parentPropertyID;
492
+ b.push({ categoryId: P, categoryName: L, tabId: N, tabName: f, hide: x, properties: k, hideTitle: p, setPropertyRelates: R, parentPropertyID: $ });
493
493
  }), b;
494
494
  }
495
495
  return [];
@@ -500,12 +500,12 @@ function De(e, t, a) {
500
500
  propertyConverterMap: m
501
501
  };
502
502
  }
503
- const Pe = {}, Ce = {};
504
- De(Pe, Ce, pt);
505
- const Be = {}, ze = {}, { resolveSchemaWithDefaultValue: _t } = Fe(Be, ze), Oe = {}, Ne = {};
506
- De(Oe, Ne, _t);
503
+ const ke = {}, Ce = {};
504
+ Ee(ke, Ce, pt);
505
+ const Be = {}, ze = {}, { getSchemaByType: da, resolveSchemaWithDefaultValue: _t, resolveSchemaToProps: ga, mappingSchemaToProps: pa, setDesignerContext: ha } = Fe(Be, ze), Oe = {}, $e = {};
506
+ Ee(Oe, $e, _t);
507
507
  function Ut(e, t, a = /* @__PURE__ */ new Map(), m = (M, F, B, v) => F, y = {}, n = (M) => M) {
508
- return Ae[t.title] = t, Ee[t.title] = m, Pe[t.title] = y, Ce[t.title] = n, Be[t.title] = t, ze[t.title] = m, Oe[t.title] = y, Ne[t.title] = n, (M = {}, F = !0) => {
508
+ return Ae[t.title] = t, Pe[t.title] = m, ke[t.title] = y, Ce[t.title] = n, Be[t.title] = t, ze[t.title] = m, Oe[t.title] = y, $e[t.title] = n, (M = {}, F = !0) => {
509
509
  if (!F)
510
510
  return yt(M, a);
511
511
  const B = ht(M, t, a), v = Object.keys(e).reduce((S, s) => (S[s] = e[s].default, S), {});
@@ -708,7 +708,7 @@ const Vt = /* @__PURE__ */ new Map([
708
708
  y2: 1e4
709
709
  }
710
710
  }
711
- }, $e = Ut(me, Kt, Vt, qt, ra);
711
+ }, Ne = Ut(me, Kt, Vt, qt, ra);
712
712
  var oe = /* @__PURE__ */ ((e) => (e.Move = "move", e.Resize = "resize", e))(oe || {});
713
713
  function ia() {
714
714
  function e(y) {
@@ -772,25 +772,25 @@ function ia() {
772
772
  const v = F / n, S = B / M, s = Math.ceil(v / 2), i = Math.ceil(S / 2), o = y.getContext("2d");
773
773
  if (o) {
774
774
  const u = o.getImageData(0, 0, F, B), l = o.createImageData(n, M), { data: d } = u, w = l.data;
775
- for (let D = 0; D < M; D++)
775
+ for (let E = 0; E < M; E++)
776
776
  for (let O = 0; O < n; O++) {
777
- const W = (O + D * n) * 4, z = D * S;
778
- let A = 0, b = 0, E = 0, g = 0, L = 0, $ = 0, f = 0;
779
- const x = Math.floor(O * v), p = Math.floor(D * S);
780
- let P = Math.ceil((O + 1) * v), j = Math.ceil((D + 1) * S);
781
- P = Math.min(P, F), j = Math.min(j, B);
782
- for (let N = p; N < j; N++) {
783
- const C = Math.abs(z - N) / i, H = O * v, J = C * C;
784
- for (let U = x; U < P; U++) {
777
+ const W = (O + E * n) * 4, z = E * S;
778
+ let A = 0, b = 0, P = 0, g = 0, L = 0, N = 0, f = 0;
779
+ const x = Math.floor(O * v), p = Math.floor(E * S);
780
+ let k = Math.ceil((O + 1) * v), R = Math.ceil((E + 1) * S);
781
+ k = Math.min(k, F), R = Math.min(R, B);
782
+ for (let $ = p; $ < R; $++) {
783
+ const C = Math.abs(z - $) / i, H = O * v, J = C * C;
784
+ for (let U = x; U < k; U++) {
785
785
  const V = Math.abs(H - U) / s, q = Math.sqrt(J + V * V);
786
786
  if (q >= 1)
787
787
  continue;
788
788
  A = 2 * q * q * q - 3 * q * q + 1;
789
- const G = 4 * (U + N * F);
790
- f += A * d[G + 3], E += A, d[G + 3] < 255 && (A = A * d[G + 3] / 250), g += A * d[G], L += A * d[G + 1], $ += A * d[G + 2], b += A;
789
+ const G = 4 * (U + $ * F);
790
+ f += A * d[G + 3], P += A, d[G + 3] < 255 && (A = A * d[G + 3] / 250), g += A * d[G], L += A * d[G + 1], N += A * d[G + 2], b += A;
791
791
  }
792
792
  }
793
- w[W] = g / b, w[W + 1] = L / b, w[W + 2] = $ / b, w[W + 3] = f / E;
793
+ w[W] = g / b, w[W + 1] = L / b, w[W + 2] = N / b, w[W + 3] = f / P;
794
794
  }
795
795
  y.width = n, y.height = M, o.putImageData(l, 0, 0);
796
796
  }
@@ -854,17 +854,17 @@ function oa(e, t, a, m) {
854
854
  }
855
855
  return { checkAspectRatio: s };
856
856
  }
857
- function Re(e, t) {
858
- const { resizeCanvas: a, getTransformationsFromExifData: m } = ia(), y = we("NotifyService"), n = T(e.cropper), M = T(e.transform), F = T(e.cropperMinWidth), B = T(e.maintainAspectRatio), v = T(e.aspectRatio), S = T(e.autoCrop), s = T(e.backgroundColor), i = T(e.resizeToWidth), o = T(e.onlyScaleDown), u = T(e.containWithinAspectRatio), l = T(e.canvasRotation), d = T(e.format), w = T(e.imageQuality), D = T(e.resizeToHeight), O = T(e.cropperMinHeight), W = T(""), z = T(!0), A = T(!0);
859
- let b, E, g = 0, L, $, f;
860
- const x = T(null), p = T(""), P = T(""), j = T("0px"), N = T(), C = T({ width: 100, height: 100 }), H = oe;
861
- let J, U = 20, V = 20, q = !1, G = { rotate: 0, flip: !1 }, k = { active: !1, type: null, position: null, x1: 0, y1: 0, x2: 0, y2: 0, clientX: 0, clientY: 0 };
862
- const I = T(e.imageChangedEvent), te = T(e.imageURL), je = T(e.imageBase64), We = T(e.imageFile);
857
+ function je(e, t) {
858
+ const { resizeCanvas: a, getTransformationsFromExifData: m } = ia(), y = we("NotifyService"), n = T(e.cropper), M = T(e.transform), F = T(e.cropperMinWidth), B = T(e.maintainAspectRatio), v = T(e.aspectRatio), S = T(e.autoCrop), s = T(e.backgroundColor), i = T(e.resizeToWidth), o = T(e.onlyScaleDown), u = T(e.containWithinAspectRatio), l = T(e.canvasRotation), d = T(e.format), w = T(e.imageQuality), E = T(e.resizeToHeight), O = T(e.cropperMinHeight), W = T(""), z = T(!0), A = T(!0);
859
+ let b, P, g = 0, L, N, f;
860
+ const x = T(null), p = T(""), k = T(""), R = T("0px"), $ = T(), C = T({ width: 100, height: 100 }), H = oe;
861
+ let J, U = 20, V = 20, q = !1, G = { rotate: 0, flip: !1 }, D = { active: !1, type: null, position: null, x1: 0, y1: 0, x2: 0, y2: 0, clientX: 0, clientY: 0 };
862
+ const I = T(e.imageChangedEvent), te = T(e.imageURL), Re = T(e.imageBase64), We = T(e.imageFile);
863
863
  function Le() {
864
- P.value = "scaleX(" + (M.value.scale || 1) * (M.value.flipH ? -1 : 1) + ")scaleY(" + (M.value.scale || 1) * (M.value.flipV ? -1 : 1) + ")rotate(" + (M.value.rotate || 0) + "deg)";
864
+ k.value = "scaleX(" + (M.value.scale || 1) * (M.value.flipH ? -1 : 1) + ")scaleY(" + (M.value.scale || 1) * (M.value.flipV ? -1 : 1) + ")rotate(" + (M.value.rotate || 0) + "deg)";
865
865
  }
866
866
  function ae() {
867
- A.value = !1, N.value = null, W.value = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=", k = {
867
+ A.value = !1, $.value = null, W.value = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=", D = {
868
868
  active: !1,
869
869
  type: null,
870
870
  position: null,
@@ -880,7 +880,7 @@ function Re(e, t) {
880
880
  }, b = {
881
881
  width: 0,
882
882
  height: 0
883
- }, E = {
883
+ }, P = {
884
884
  width: 0,
885
885
  height: 0
886
886
  }, n.value.x1 = -100, n.value.y1 = -100, n.value.x2 = 1e4, n.value.y2 = 1e4;
@@ -920,10 +920,10 @@ function Re(e, t) {
920
920
  }
921
921
  function qe(r) {
922
922
  return new Promise((c) => {
923
- J = r, W.value = r, N.value = new Image(), N.value.onload = () => {
923
+ J = r, W.value = r, $.value = new Image(), $.value.onload = () => {
924
924
  var h, _;
925
- E.width = (h = N.value) == null ? void 0 : h.naturalWidth, E.height = (_ = N.value) == null ? void 0 : _.naturalHeight, c();
926
- }, N.value.src = J;
925
+ P.width = (h = $.value) == null ? void 0 : h.naturalWidth, P.height = (_ = $.value) == null ? void 0 : _.naturalHeight, c();
926
+ }, $.value.src = J;
927
927
  });
928
928
  }
929
929
  function de() {
@@ -980,43 +980,43 @@ function Re(e, t) {
980
980
  function ue() {
981
981
  if (x.value) {
982
982
  const r = x.value;
983
- C.value.width = r.offsetWidth, C.value.height = r.offsetHeight, j.value = "calc(50% - " + C.value.width / 2 + "px)";
983
+ C.value.width = r.offsetWidth, C.value.height = r.offsetHeight, R.value = "calc(50% - " + C.value.width / 2 + "px)";
984
984
  }
985
985
  }
986
986
  function Ge() {
987
- N.value && C.value.width && (U = F.value > 0 ? Math.max(20, F.value / N.value.width * C.value.width) : 20);
987
+ $.value && C.value.width && (U = F.value > 0 ? Math.max(20, F.value / $.value.width * C.value.width) : 20);
988
988
  }
989
989
  function Je() {
990
- B.value ? V = Math.max(20, U / v.value) : O.value > 0 && N.value && C.value.height ? V = Math.max(20, O.value / N.value.height * C.value.height) : V = 20;
990
+ B.value ? V = Math.max(20, U / v.value) : O.value > 0 && $.value && C.value.height ? V = Math.max(20, O.value / $.value.height * C.value.height) : V = 20;
991
991
  }
992
992
  function se() {
993
- N.value ? (Ge(), Je()) : (U = 20, V = 20);
993
+ $.value ? (Ge(), Je()) : (U = 20, V = 20);
994
994
  }
995
995
  function Ze() {
996
996
  const r = x.value, c = T({ x1: 0, x2: 0, y1: 0, y2: 0 });
997
- if (r && E.width && E.height) {
998
- const h = E.width / r.offsetWidth;
997
+ if (r && P.width && P.height) {
998
+ const h = P.width / r.offsetWidth;
999
999
  c.value = {
1000
1000
  x1: Math.round(n.value.x1 * h),
1001
1001
  y1: Math.round(n.value.y1 * h),
1002
1002
  x2: Math.round(n.value.x2 * h),
1003
1003
  y2: Math.round(n.value.y2 * h)
1004
- }, u.value || (c.value.x1 = Math.max(c.value.x1, 0), c.value.y1 = Math.max(c.value.y1, 0), c.value.x2 = Math.min(c.value.x2, E.width), c.value.y2 = Math.min(c.value.y2, E.height));
1004
+ }, u.value || (c.value.x1 = Math.max(c.value.x1, 0), c.value.y1 = Math.max(c.value.y1, 0), c.value.x2 = Math.min(c.value.x2, P.width), c.value.y2 = Math.min(c.value.y2, P.height));
1005
1005
  }
1006
1006
  return c.value;
1007
1007
  }
1008
1008
  function Ye() {
1009
1009
  l.value += G.rotate;
1010
1010
  const r = x.value, c = T({ x1: 0, x2: 0, y1: 0, y2: 0 });
1011
- if (r && E.height && E.width && b.height && b.width) {
1012
- const h = E.width / r.offsetWidth;
1011
+ if (r && P.height && P.width && b.height && b.width) {
1012
+ const h = P.width / r.offsetWidth;
1013
1013
  let _, Q;
1014
- l.value % 2 ? (_ = (E.width - b.height) / 2, Q = (E.height - b.width) / 2) : (_ = (E.width - b.width) / 2, Q = (E.height - b.height) / 2), c.value = {
1014
+ l.value % 2 ? (_ = (P.width - b.height) / 2, Q = (P.height - b.width) / 2) : (_ = (P.width - b.width) / 2, Q = (P.height - b.height) / 2), c.value = {
1015
1015
  x1: Math.round(n.value.x1 * h) - _,
1016
1016
  y1: Math.round(n.value.y1 * h) - Q,
1017
1017
  x2: Math.round(n.value.x2 * h) - _,
1018
1018
  y2: Math.round(n.value.y2 * h) - Q
1019
- }, u.value || (c.value.x1 = Math.max(c.value.x1, 0), c.value.y1 = Math.max(c.value.y1, 0), c.value.x2 = Math.min(c.value.x2, E.width), c.value.y2 = Math.min(c.value.y2, E.height));
1019
+ }, u.value || (c.value.x1 = Math.max(c.value.x1, 0), c.value.y1 = Math.max(c.value.y1, 0), c.value.x2 = Math.min(c.value.x2, P.width), c.value.y2 = Math.min(c.value.y2, P.height));
1020
1020
  }
1021
1021
  return c.value;
1022
1022
  }
@@ -1024,8 +1024,8 @@ function Re(e, t) {
1024
1024
  if (i.value > 0) {
1025
1025
  if (!o.value || r > i.value)
1026
1026
  return i.value / r;
1027
- } else if (D.value > 0 && (!o.value || c > D.value))
1028
- return D.value / c;
1027
+ } else if (E.value > 0 && (!o.value || c > E.value))
1028
+ return E.value / c;
1029
1029
  return 1;
1030
1030
  }
1031
1031
  function Xe() {
@@ -1035,14 +1035,14 @@ function Re(e, t) {
1035
1035
  return r.toDataURL("image/" + d.value, Xe());
1036
1036
  }
1037
1037
  function et() {
1038
- if (x.value && x.value && N.value != null) {
1038
+ if (x.value && x.value && $.value != null) {
1039
1039
  const r = Ze(), c = r.x2 - r.x1, h = r.y2 - r.y1, _ = document.createElement("canvas");
1040
1040
  _.width = c, _.height = h;
1041
1041
  const Q = _.getContext("2d");
1042
1042
  if (Q) {
1043
1043
  s.value != null && (Q.fillStyle = s.value, Q.fillRect(0, 0, c, h));
1044
1044
  const X = (M.value.scale || 1) * (M.value.flipH ? -1 : 1), K = (M.value.scale || 1) * (M.value.flipV ? -1 : 1);
1045
- E.width && E.height && (Q.setTransform(X, 0, 0, K, E.width / 2, E.height / 2), Q.translate(-r.x1 / X, -r.y1 / K), Q.rotate((M.value.rotate || 0) * Math.PI / 180), Q.drawImage(N.value, -E.width / 2, -E.height / 2));
1045
+ P.width && P.height && (Q.setTransform(X, 0, 0, K, P.width / 2, P.height / 2), Q.translate(-r.x1 / X, -r.y1 / K), Q.rotate((M.value.rotate || 0) * Math.PI / 180), Q.drawImage($.value, -P.width / 2, -P.height / 2));
1046
1046
  const Y = {
1047
1047
  width: c,
1048
1048
  height: h,
@@ -1085,7 +1085,7 @@ function Re(e, t) {
1085
1085
  }), q = !0, z.value = !1, t.emit("loadImageFailed")) : Qe() ? (q = !1, ue(), se(), he(), t.emit("cropperReady", { ...C.value })) : (g++, setTimeout(() => ye(), 50));
1086
1086
  }
1087
1087
  function tt() {
1088
- N.value != null && (z.value = !1, t.emit("imageLoaded"), g = 0, setTimeout(() => ye()));
1088
+ $.value != null && (z.value = !1, t.emit("imageLoaded"), g = 0, setTimeout(() => ye()));
1089
1089
  }
1090
1090
  function at() {
1091
1091
  const r = x.value;
@@ -1094,7 +1094,7 @@ function Re(e, t) {
1094
1094
  const nt = () => {
1095
1095
  at(), ue(), se();
1096
1096
  }, be = () => {
1097
- clearTimeout($), $ = setTimeout(nt, 300);
1097
+ clearTimeout(N), N = setTimeout(nt, 300);
1098
1098
  };
1099
1099
  Te(() => {
1100
1100
  window.addEventListener("resize", be), te.value && (ae(), z.value = !0, pe(te.value));
@@ -1102,7 +1102,7 @@ function Re(e, t) {
1102
1102
  window.removeEventListener("resize", be);
1103
1103
  });
1104
1104
  function rt() {
1105
- k.active && (k.active = !1, ie());
1105
+ D.active && (D.active = !1, ie());
1106
1106
  }
1107
1107
  function ce(r) {
1108
1108
  return (r.touches && r.touches[0] ? r.touches[0].clientX : r.clientX) || 0;
@@ -1111,7 +1111,7 @@ function Re(e, t) {
1111
1111
  return (r.touches && r.touches[0] ? r.touches[0].clientY : r.clientY) || 0;
1112
1112
  }
1113
1113
  function it(r, c, h = null) {
1114
- k && k.active || (r.preventDefault && r.preventDefault(), k = {
1114
+ D && D.active || (r.preventDefault && r.preventDefault(), D = {
1115
1115
  active: !0,
1116
1116
  type: c,
1117
1117
  position: h,
@@ -1124,47 +1124,47 @@ function Re(e, t) {
1124
1124
  n.value.x1 < 0 && (n.value.x2 -= r ? n.value.x1 : 0, n.value.x1 = 0), n.value.y1 < 0 && (n.value.y2 -= r ? n.value.y1 : 0, n.value.y1 = 0), n.value.x2 > C.value.width && (n.value.x1 -= r ? n.value.x2 - C.value.width : 0, n.value.x2 = C.value.width), n.value.y2 > C.value.height && (n.value.y1 -= r ? n.value.y2 - C.value.height : 0, n.value.y2 = C.value.height);
1125
1125
  }
1126
1126
  function ot(r) {
1127
- const c = ce(r) - k.clientX, h = fe(r) - k.clientY;
1128
- n.value.x1 = k.x1 + c, n.value.y1 = k.y1 + h, n.value.x2 = k.x2 + c, n.value.y2 = k.y2 + h;
1127
+ const c = ce(r) - D.clientX, h = fe(r) - D.clientY;
1128
+ n.value.x1 = D.x1 + c, n.value.y1 = D.y1 + h, n.value.x2 = D.x2 + c, n.value.y2 = D.y2 + h;
1129
1129
  }
1130
- const { checkAspectRatio: lt } = oa(n, C, v, k);
1130
+ const { checkAspectRatio: lt } = oa(n, C, v, D);
1131
1131
  function ut(r) {
1132
- const c = ce(r) - k.clientX, h = fe(r) - k.clientY;
1133
- switch (k.position) {
1132
+ const c = ce(r) - D.clientX, h = fe(r) - D.clientY;
1133
+ switch (D.position) {
1134
1134
  case "left":
1135
- n.value.x1 = Math.min(k.x1 + c, n.value.x2 - U);
1135
+ n.value.x1 = Math.min(D.x1 + c, n.value.x2 - U);
1136
1136
  break;
1137
1137
  case "topleft":
1138
- n.value.x1 = Math.min(k.x1 + c, n.value.x2 - U), n.value.y1 = Math.min(k.y1 + h, n.value.y2 - V);
1138
+ n.value.x1 = Math.min(D.x1 + c, n.value.x2 - U), n.value.y1 = Math.min(D.y1 + h, n.value.y2 - V);
1139
1139
  break;
1140
1140
  case "top":
1141
- n.value.y1 = Math.min(k.y1 + h, n.value.y2 - V);
1141
+ n.value.y1 = Math.min(D.y1 + h, n.value.y2 - V);
1142
1142
  break;
1143
1143
  case "topright":
1144
- n.value.x2 = Math.max(k.x2 + c, n.value.x1 + U), n.value.y1 = Math.min(k.y1 + h, n.value.y2 - V);
1144
+ n.value.x2 = Math.max(D.x2 + c, n.value.x1 + U), n.value.y1 = Math.min(D.y1 + h, n.value.y2 - V);
1145
1145
  break;
1146
1146
  case "right":
1147
- n.value.x2 = Math.max(k.x2 + c, n.value.x1 + U);
1147
+ n.value.x2 = Math.max(D.x2 + c, n.value.x1 + U);
1148
1148
  break;
1149
1149
  case "bottomright":
1150
- n.value.x2 = Math.max(k.x2 + c, n.value.x1 + U), n.value.y2 = Math.max(k.y2 + h, n.value.y1 + V);
1150
+ n.value.x2 = Math.max(D.x2 + c, n.value.x1 + U), n.value.y2 = Math.max(D.y2 + h, n.value.y1 + V);
1151
1151
  break;
1152
1152
  case "bottom":
1153
- n.value.y2 = Math.max(k.y2 + h, n.value.y1 + V);
1153
+ n.value.y2 = Math.max(D.y2 + h, n.value.y1 + V);
1154
1154
  break;
1155
1155
  case "bottomleft":
1156
- n.value.x1 = Math.min(k.x1 + c, n.value.x2 - U), n.value.y2 = Math.max(k.y2 + h, n.value.y1 + V);
1156
+ n.value.x1 = Math.min(D.x1 + c, n.value.x2 - U), n.value.y2 = Math.max(D.y2 + h, n.value.y1 + V);
1157
1157
  break;
1158
1158
  case "center":
1159
- const { scale: _ } = r, Q = Math.abs(k.x2 - k.x1) * _, X = Math.abs(k.y2 - k.y1) * _, { x1: K } = n.value, { y1: Y } = n.value;
1160
- n.value.x1 = Math.min(k.clientX - Q / 2, n.value.x2 - U), n.value.y1 = Math.min(k.clientY - X / 2, n.value.y2 - V), n.value.x2 = Math.max(k.clientX + Q / 2, K + U), n.value.y2 = Math.max(k.clientY + X / 2, Y + V);
1159
+ const { scale: _ } = r, Q = Math.abs(D.x2 - D.x1) * _, X = Math.abs(D.y2 - D.y1) * _, { x1: K } = n.value, { y1: Y } = n.value;
1160
+ n.value.x1 = Math.min(D.clientX - Q / 2, n.value.x2 - U), n.value.y1 = Math.min(D.clientY - X / 2, n.value.y2 - V), n.value.x2 = Math.max(D.clientX + Q / 2, K + U), n.value.y2 = Math.max(D.clientY + X / 2, Y + V);
1161
1161
  break;
1162
1162
  }
1163
1163
  B.value && lt();
1164
1164
  }
1165
1165
  function st(r) {
1166
- k && k.active && (r.stopPropagation && r.stopPropagation(), r.preventDefault && r.preventDefault(), clearTimeout(L), L = setTimeout(() => {
1167
- k.type === oe.Move ? (ot(r), ve(!0)) : k.type === oe.Resize && (ut(r), ve(!1));
1166
+ D && D.active && (r.stopPropagation && r.stopPropagation(), r.preventDefault && r.preventDefault(), clearTimeout(L), L = setTimeout(() => {
1167
+ D.type === oe.Move ? (ot(r), ve(!0)) : D.type === oe.Resize && (ut(r), ve(!1));
1168
1168
  }, 300));
1169
1169
  }
1170
1170
  return re(I, (r) => {
@@ -1176,7 +1176,7 @@ function Re(e, t) {
1176
1176
  animate: "fadeIn",
1177
1177
  toasts: [{ type: "string", title: "提示", msg: "图片路径为空" }]
1178
1178
  }), z.value = !1, q = !0);
1179
- }), re(je, (r) => {
1179
+ }), re(Re, (r) => {
1180
1180
  ae(), z.value = !0, le(r);
1181
1181
  }), re(We, (r) => {
1182
1182
  ae(), r && (z.value = !0, ge(r));
@@ -1198,10 +1198,10 @@ function Re(e, t) {
1198
1198
  backgroundColor: s,
1199
1199
  sourceImage: x,
1200
1200
  safeImgDataUrl: W,
1201
- safeTransformStyle: P,
1201
+ safeTransformStyle: k,
1202
1202
  maxSize: C,
1203
1203
  cropper: n,
1204
- marginLeft: j,
1204
+ marginLeft: R,
1205
1205
  moveTypes: H,
1206
1206
  isLoading: z,
1207
1207
  startMove: it,
@@ -1226,49 +1226,49 @@ const ee = /* @__PURE__ */ Se({
1226
1226
  cropper: l,
1227
1227
  marginLeft: d,
1228
1228
  moveTypes: w,
1229
- isLoading: D,
1229
+ isLoading: E,
1230
1230
  startMove: O,
1231
1231
  imageLoadedInView: W,
1232
1232
  moveStop: z,
1233
1233
  moveImg: A
1234
- } = Re(e, t);
1235
- function b($) {
1236
- return R("span", {
1237
- class: `farris-image-cropper-resize-bar ${$}`,
1238
- onMousedown: Z((f) => O(f, w.Resize, $), ["prevent"])
1234
+ } = je(e, t);
1235
+ function b(N) {
1236
+ return j("span", {
1237
+ class: `farris-image-cropper-resize-bar ${N}`,
1238
+ onMousedown: Z((f) => O(f, w.Resize, N), ["prevent"])
1239
1239
  }, null);
1240
1240
  }
1241
- function E($) {
1242
- return R("div", null, [R("span", {
1243
- class: `farris-image-cropper-resize-bar ${$}`,
1244
- onMousedown: Z((f) => O(f, w.Resize, $), ["prevent"])
1245
- }, [R("span", {
1241
+ function P(N) {
1242
+ return j("div", null, [j("span", {
1243
+ class: `farris-image-cropper-resize-bar ${N}`,
1244
+ onMousedown: Z((f) => O(f, w.Resize, N), ["prevent"])
1245
+ }, [j("span", {
1246
1246
  class: "farris-image-cropper-square"
1247
- }, null)]), R("span", {
1247
+ }, null)]), j("span", {
1248
1248
  class: "farris-image-cropper-resize top"
1249
- }, [R("span", {
1249
+ }, [j("span", {
1250
1250
  class: "farris-image-cropper-square"
1251
1251
  }, null)])]);
1252
1252
  }
1253
- const g = ["top", "right", "bottom", "left"].map(($) => b($)), L = ["topleft", "topright", "bottomright", "bottomleft"].map(($) => E($));
1254
- return () => R("div", {
1253
+ const g = ["top", "right", "bottom", "left"].map((N) => b(N)), L = ["topleft", "topright", "bottomright", "bottomleft"].map((N) => P(N));
1254
+ return () => j("div", {
1255
1255
  class: ["farris-image-cropper-frame", {
1256
1256
  "farris-image-cropper-disabled": M.value
1257
1257
  }],
1258
1258
  style: {
1259
1259
  "text-align": a.value
1260
1260
  },
1261
- onMousemove: Z(($) => A($), ["prevent"]),
1262
- onTouchmove: Z(($) => A($), ["prevent"]),
1261
+ onMousemove: Z((N) => A(N), ["prevent"]),
1262
+ onTouchmove: Z((N) => A(N), ["prevent"]),
1263
1263
  onMouseup: Z(() => z(), ["prevent"]),
1264
1264
  onTouchend: Z(() => z(), ["prevent"])
1265
- }, [!B && R("div", {
1265
+ }, [!B && j("div", {
1266
1266
  ref: F,
1267
1267
  class: "farris-image-cropper",
1268
1268
  style: [{
1269
1269
  background: v.value ? S.value : ""
1270
1270
  }]
1271
- }, [i.value && R("img", {
1271
+ }, [i.value && j("img", {
1272
1272
  title: "farris-source-image",
1273
1273
  ref: s,
1274
1274
  class: "farris-source-image",
@@ -1279,7 +1279,7 @@ const ee = /* @__PURE__ */ Se({
1279
1279
  }],
1280
1280
  src: i.value,
1281
1281
  onLoad: () => W()
1282
- }, null), u.value && R("div", {
1282
+ }, null), u.value && j("div", {
1283
1283
  class: "farris-image-overlay",
1284
1284
  style: [{
1285
1285
  width: `${u.value.width || 0}px`
@@ -1288,7 +1288,7 @@ const ee = /* @__PURE__ */ Se({
1288
1288
  }, {
1289
1289
  "margin-left": a.value === "center" ? d.value : ""
1290
1290
  }]
1291
- }, null), v.value && R("div", {
1291
+ }, null), v.value && j("div", {
1292
1292
  class: ["farris-image-cropper-wrapper", {
1293
1293
  "farris-image-cropper-rounded": m.value
1294
1294
  }],
@@ -1306,20 +1306,20 @@ const ee = /* @__PURE__ */ Se({
1306
1306
  "margin-left": a.value === "center" ? d.value : ""
1307
1307
  }],
1308
1308
  tabindex: "0"
1309
- }, [R("div", {
1309
+ }, [j("div", {
1310
1310
  class: "farris-image-cropper-move",
1311
- onMousedown: Z(($) => O($, w.Move, "topleft"), ["prevent"])
1312
- }, null), !y.value && R("div", null, [L, g])])]), D.value && R("div", {
1311
+ onMousedown: Z((N) => O(N, w.Move, "topleft"), ["prevent"])
1312
+ }, null), !y.value && j("div", null, [L, g])])]), E.value && j("div", {
1313
1313
  class: "farris-image-cropper-loading"
1314
- }, [R("div", {
1314
+ }, [j("div", {
1315
1315
  class: "farris-image-cropper-loading-spinner"
1316
- }, null)]), B && R("div", {
1316
+ }, null)]), B && j("div", {
1317
1317
  class: "farris-image-cropper-error"
1318
1318
  }, [n.value])]);
1319
1319
  }
1320
1320
  });
1321
1321
  function la(e, t, a) {
1322
- var $;
1322
+ var N;
1323
1323
  const m = "", y = "", n = T();
1324
1324
  let M;
1325
1325
  function F() {
@@ -1343,15 +1343,15 @@ function la(e, t, a) {
1343
1343
  return p || null;
1344
1344
  }
1345
1345
  function i(f = t) {
1346
- var j;
1346
+ var R;
1347
1347
  const { componentInstance: x, designerItemElementRef: p } = f;
1348
1348
  if (!x || !x.value)
1349
1349
  return null;
1350
- const { getCustomButtons: P } = x.value;
1351
- return x.value.canMove || P && ((j = P()) != null && j.length) ? p : i(f.parent);
1350
+ const { getCustomButtons: k } = x.value;
1351
+ return x.value.canMove || k && ((R = k()) != null && R.length) ? p : i(f.parent);
1352
1352
  }
1353
1353
  function o(f) {
1354
- return !1;
1354
+ return !!a;
1355
1355
  }
1356
1356
  function u() {
1357
1357
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -1364,11 +1364,11 @@ function la(e, t, a) {
1364
1364
  }
1365
1365
  function w(f, x) {
1366
1366
  const { componentType: p } = f;
1367
- let P = gt(p, f, x);
1368
- const j = p.toLowerCase().replace(/-/g, "_");
1369
- return P && !P.id && P.type === p && (P.id = `${j}_${Math.random().toString().slice(2, 6)}`), P;
1367
+ let k = gt(p, f, x);
1368
+ const R = p.toLowerCase().replace(/-/g, "_");
1369
+ return k && !k.id && k.type === p && (k.id = `${R}_${Math.random().toString().slice(2, 6)}`), k;
1370
1370
  }
1371
- function D(f) {
1371
+ function E(f) {
1372
1372
  }
1373
1373
  function O(...f) {
1374
1374
  }
@@ -1377,8 +1377,8 @@ function la(e, t, a) {
1377
1377
  return;
1378
1378
  const x = t == null ? void 0 : t.schema, { formSchemaUtils: p } = f;
1379
1379
  if (x && p.getExpressions().length) {
1380
- const P = p.getExpressions().findIndex((j) => j.target === x.id);
1381
- P > -1 && p.getExpressions().splice(P, 1);
1380
+ const k = p.getExpressions().findIndex((R) => R.target === x.id);
1381
+ k > -1 && p.getExpressions().splice(k, 1);
1382
1382
  }
1383
1383
  }
1384
1384
  function z(f) {
@@ -1391,24 +1391,24 @@ function la(e, t, a) {
1391
1391
  W(f), z(f), t != null && t.schema.contents && t.schema.contents.map((x) => {
1392
1392
  let p = x.id;
1393
1393
  x.type === "component-ref" && (p = x.component);
1394
- const P = e.value.querySelectorAll(`#${p}-design-item`);
1395
- P != null && P.length && Array.from(P).map((j) => {
1396
- var N;
1397
- (N = j == null ? void 0 : j.componentInstance) != null && N.value.onRemoveComponent && j.componentInstance.value.onRemoveComponent(f);
1394
+ const k = e.value.querySelectorAll(`#${p}-design-item`);
1395
+ k != null && k.length && Array.from(k).map((R) => {
1396
+ var $;
1397
+ ($ = R == null ? void 0 : R.componentInstance) != null && $.value.onRemoveComponent && R.componentInstance.value.onRemoveComponent(f);
1398
1398
  });
1399
1399
  });
1400
1400
  }
1401
1401
  function b() {
1402
1402
  }
1403
- function E(f) {
1404
- var p, P;
1403
+ function P(f) {
1404
+ var p, k;
1405
1405
  if (!((p = t == null ? void 0 : t.schema) != null && p.id))
1406
1406
  return;
1407
1407
  !M && f && (M = f.formSchemaUtils);
1408
1408
  let x = "";
1409
1409
  {
1410
- const { text: j, title: N, label: C, mainTitle: H, name: J, type: U } = t.schema;
1411
- x = j || N || C || H || J || ((P = ke[U]) == null ? void 0 : P.name);
1410
+ const { text: R, title: $, label: C, mainTitle: H, name: J, type: U } = t.schema;
1411
+ x = R || $ || C || H || J || ((k = De[U]) == null ? void 0 : k.name);
1412
1412
  }
1413
1413
  x && M.getControlBasicInfoMap().set(t.schema.id, {
1414
1414
  componentTitle: x,
@@ -1416,16 +1416,16 @@ function la(e, t, a) {
1416
1416
  });
1417
1417
  }
1418
1418
  function g(f) {
1419
- var j;
1420
- const { changeObject: x } = f, { propertyID: p, propertyValue: P } = x;
1421
- if (["text", "title", "label", "name", "mainTitle"].includes((j = f == null ? void 0 : f.changeObject) == null ? void 0 : j.propertyID) && p && P && (E(), M)) {
1422
- const N = M.getControlBasicInfoMap(), C = N.keys().toArray().filter((H) => {
1419
+ var R;
1420
+ const { changeObject: x } = f, { propertyID: p, propertyValue: k } = x;
1421
+ if (["text", "title", "label", "name", "mainTitle"].includes((R = f == null ? void 0 : f.changeObject) == null ? void 0 : R.propertyID) && p && k && (P(), M)) {
1422
+ const $ = M.getControlBasicInfoMap(), C = $.keys().toArray().filter((H) => {
1423
1423
  var J, U;
1424
- return ((J = N.get(H)) == null ? void 0 : J.reliedComponentId) === ((U = t == null ? void 0 : t.schema) == null ? void 0 : U.id);
1424
+ return ((J = $.get(H)) == null ? void 0 : J.reliedComponentId) === ((U = t == null ? void 0 : t.schema) == null ? void 0 : U.id);
1425
1425
  });
1426
1426
  C != null && C.length && C.forEach((H) => {
1427
- const J = N.get(H).parentPathName.split(" > ");
1428
- J[0] = P, N.get(H).parentPathName = J.join(" > ");
1427
+ const J = $.get(H).parentPathName.split(" > ");
1428
+ J[0] = k, $.get(H).parentPathName = J.join(" > ");
1429
1429
  });
1430
1430
  }
1431
1431
  }
@@ -1439,7 +1439,7 @@ function la(e, t, a) {
1439
1439
  canNested: !S(),
1440
1440
  contents: t == null ? void 0 : t.schema.contents,
1441
1441
  elementRef: e,
1442
- parent: ($ = t == null ? void 0 : t.parent) == null ? void 0 : $.componentInstance,
1442
+ parent: (N = t == null ? void 0 : t.parent) == null ? void 0 : N.componentInstance,
1443
1443
  schema: t == null ? void 0 : t.schema,
1444
1444
  styles: m,
1445
1445
  designerClass: y,
@@ -1450,14 +1450,14 @@ function la(e, t, a) {
1450
1450
  getPropConfig: O,
1451
1451
  getDragScopeElement: l,
1452
1452
  onAcceptMovedChildElement: d,
1453
- onChildElementMovedOut: D,
1453
+ onChildElementMovedOut: E,
1454
1454
  addNewChildComponentSchema: w,
1455
1455
  triggerBelongedComponentToMoveWhenMoved: T(!1),
1456
1456
  triggerBelongedComponentToDeleteWhenDeleted: T(!1),
1457
1457
  onRemoveComponent: A,
1458
1458
  getCustomButtons: b,
1459
1459
  onPropertyChanged: L,
1460
- setComponentBasicInfoMap: E,
1460
+ setComponentBasicInfoMap: P,
1461
1461
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
1462
1462
  }, n;
1463
1463
  }
@@ -1477,35 +1477,35 @@ const ua = /* @__PURE__ */ Se({
1477
1477
  cropper: l,
1478
1478
  marginLeft: d,
1479
1479
  moveTypes: w,
1480
- isLoading: D,
1480
+ isLoading: E,
1481
1481
  startMove: O,
1482
1482
  imageLoadedInView: W,
1483
1483
  moveStop: z,
1484
1484
  moveImg: A
1485
- } = Re(e, t), b = T(), E = we("design-item-context"), g = la(b, E);
1485
+ } = je(e, t), b = T(), P = we("design-item-context"), g = la(b, P);
1486
1486
  Te(() => {
1487
1487
  b.value.componentInstance = g;
1488
1488
  }), t.expose(g.value);
1489
1489
  function L(p) {
1490
- return R("span", {
1490
+ return j("span", {
1491
1491
  class: `farris-image-cropper-resize-bar ${p}`,
1492
- onMousedown: Z((P) => O(P, w.Resize, p), ["prevent"])
1492
+ onMousedown: Z((k) => O(k, w.Resize, p), ["prevent"])
1493
1493
  }, null);
1494
1494
  }
1495
- function $(p) {
1496
- return R("div", null, [R("span", {
1495
+ function N(p) {
1496
+ return j("div", null, [j("span", {
1497
1497
  class: `farris-image-cropper-resize-bar ${p}`,
1498
- onMousedown: Z((P) => O(P, w.Resize, p), ["prevent"])
1499
- }, [R("span", {
1498
+ onMousedown: Z((k) => O(k, w.Resize, p), ["prevent"])
1499
+ }, [j("span", {
1500
1500
  class: "farris-image-cropper-square"
1501
- }, null)]), R("span", {
1501
+ }, null)]), j("span", {
1502
1502
  class: "farris-image-cropper-resize top"
1503
- }, [R("span", {
1503
+ }, [j("span", {
1504
1504
  class: "farris-image-cropper-square"
1505
1505
  }, null)])]);
1506
1506
  }
1507
- const f = ["top", "right", "bottom", "left"].map((p) => L(p)), x = ["topleft", "topright", "bottomright", "bottomleft"].map((p) => $(p));
1508
- return () => R("div", {
1507
+ const f = ["top", "right", "bottom", "left"].map((p) => L(p)), x = ["topleft", "topright", "bottomright", "bottomleft"].map((p) => N(p));
1508
+ return () => j("div", {
1509
1509
  ref: b,
1510
1510
  class: ["farris-image-cropper-frame", {
1511
1511
  "farris-image-cropper-disabled": M.value
@@ -1517,13 +1517,13 @@ const ua = /* @__PURE__ */ Se({
1517
1517
  onTouchmove: Z((p) => A(p), ["prevent"]),
1518
1518
  onMouseup: Z(() => z(), ["prevent"]),
1519
1519
  onTouchend: Z(() => z(), ["prevent"])
1520
- }, [!B && R("div", {
1520
+ }, [!B && j("div", {
1521
1521
  ref: F,
1522
1522
  class: "farris-image-cropper",
1523
1523
  style: [{
1524
1524
  background: v.value ? S.value : ""
1525
1525
  }]
1526
- }, [i.value && R("img", {
1526
+ }, [i.value && j("img", {
1527
1527
  title: "farris-source-image",
1528
1528
  ref: s,
1529
1529
  class: "farris-source-image",
@@ -1534,7 +1534,7 @@ const ua = /* @__PURE__ */ Se({
1534
1534
  }],
1535
1535
  src: i.value,
1536
1536
  onLoad: () => W()
1537
- }, null), u.value && R("div", {
1537
+ }, null), u.value && j("div", {
1538
1538
  class: "farris-image-overlay",
1539
1539
  style: [{
1540
1540
  width: `${u.value.width || 0}px`
@@ -1543,7 +1543,7 @@ const ua = /* @__PURE__ */ Se({
1543
1543
  }, {
1544
1544
  "margin-left": a.value === "center" ? d.value : ""
1545
1545
  }]
1546
- }, null), v.value && R("div", {
1546
+ }, null), v.value && j("div", {
1547
1547
  class: ["farris-image-cropper-wrapper", {
1548
1548
  "farris-image-cropper-rounded": m.value
1549
1549
  }],
@@ -1561,14 +1561,14 @@ const ua = /* @__PURE__ */ Se({
1561
1561
  "margin-left": a.value === "center" ? d.value : ""
1562
1562
  }],
1563
1563
  tabindex: "0"
1564
- }, [R("div", {
1564
+ }, [j("div", {
1565
1565
  class: "farris-image-cropper-move",
1566
1566
  onMousedown: Z((p) => O(p, w.Move, "topleft"), ["prevent"])
1567
- }, null), !y.value && R("div", null, [x, f])])]), D.value && R("div", {
1567
+ }, null), !y.value && j("div", null, [x, f])])]), E.value && j("div", {
1568
1568
  class: "farris-image-cropper-loading"
1569
- }, [R("div", {
1569
+ }, [j("div", {
1570
1570
  class: "farris-image-cropper-loading-spinner"
1571
- }, null)]), B && R("div", {
1571
+ }, null)]), B && j("div", {
1572
1572
  class: "farris-image-cropper-error"
1573
1573
  }, [n.value])]);
1574
1574
  }
@@ -1577,14 +1577,14 @@ ee.install = (e) => {
1577
1577
  e.component(ee.name, ee);
1578
1578
  };
1579
1579
  ee.register = (e, t, a, m) => {
1580
- e["image-cropper"] = ee, t["image-cropper"] = $e;
1580
+ e["image-cropper"] = ee, t["image-cropper"] = Ne;
1581
1581
  };
1582
1582
  ee.registerDesigner = (e, t, a) => {
1583
- e["image-cropper"] = ua, t["image-cropper"] = $e;
1583
+ e["image-cropper"] = ua, t["image-cropper"] = Ne;
1584
1584
  };
1585
1585
  export {
1586
1586
  ee as ImageCropper,
1587
1587
  ee as default,
1588
1588
  me as imageCropperProps,
1589
- $e as propsResolver
1589
+ Ne as propsResolver
1590
1590
  };