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

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 (194) 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 +28 -29
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +521 -517
  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 +163 -157
  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 +10 -10
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1122 -1121
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +190 -190
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-view/index.esm.js +2693 -2693
  30. package/components/data-view/index.umd.cjs +1 -1
  31. package/components/date-picker/index.esm.js +1604 -1601
  32. package/components/date-picker/index.umd.cjs +1 -1
  33. package/components/designer-canvas/index.esm.js +1082 -1079
  34. package/components/designer-canvas/index.umd.cjs +1 -1
  35. package/components/discussion-editor/index.esm.js +973 -1040
  36. package/components/discussion-editor/index.umd.cjs +6 -6
  37. package/components/dropdown/index.esm.js +335 -330
  38. package/components/dropdown/index.umd.cjs +2 -2
  39. package/components/dynamic-form/index.esm.js +8 -8
  40. package/components/dynamic-form/index.umd.cjs +1 -1
  41. package/components/dynamic-resolver/index.esm.js +6 -6
  42. package/components/dynamic-resolver/index.umd.cjs +1 -1
  43. package/components/dynamic-view/index.esm.js +344 -344
  44. package/components/dynamic-view/index.umd.cjs +1 -1
  45. package/components/events-editor/index.esm.js +8 -8
  46. package/components/events-editor/index.umd.cjs +3 -3
  47. package/components/expression-editor/index.esm.js +1470 -1460
  48. package/components/expression-editor/index.umd.cjs +3 -3
  49. package/components/fieldset/index.esm.js +55 -55
  50. package/components/fieldset/index.umd.cjs +1 -1
  51. package/components/filter-bar/index.esm.js +853 -843
  52. package/components/filter-bar/index.umd.cjs +1 -1
  53. package/components/filter-condition-editor/index.esm.js +922 -911
  54. package/components/filter-condition-editor/index.umd.cjs +3 -3
  55. package/components/flow-canvas/index.esm.js +12 -12
  56. package/components/flow-canvas/index.umd.cjs +1 -1
  57. package/components/html-template/index.esm.js +164 -164
  58. package/components/html-template/index.umd.cjs +1 -1
  59. package/components/image-cropper/index.esm.js +198 -198
  60. package/components/image-cropper/index.umd.cjs +1 -1
  61. package/components/json-editor/index.esm.js +64 -64
  62. package/components/json-editor/index.umd.cjs +1 -1
  63. package/components/language-textbox/index.esm.js +140 -140
  64. package/components/language-textbox/index.umd.cjs +1 -1
  65. package/components/layout/index.esm.js +111 -111
  66. package/components/layout/index.umd.cjs +1 -1
  67. package/components/list-nav/index.esm.js +90 -90
  68. package/components/list-nav/index.umd.cjs +1 -1
  69. package/components/list-view/index.esm.js +104 -108
  70. package/components/list-view/index.umd.cjs +3 -3
  71. package/components/locale/index.esm.js +833 -901
  72. package/components/locale/index.umd.cjs +6 -6
  73. package/components/lookup/index.esm.js +1352 -1351
  74. package/components/lookup/index.umd.cjs +1 -1
  75. package/components/mapping-editor/index.esm.js +1311 -1307
  76. package/components/mapping-editor/index.umd.cjs +1 -1
  77. package/components/menu-lookup/index.esm.js +1059 -1127
  78. package/components/menu-lookup/index.umd.cjs +6 -6
  79. package/components/message-box/index.esm.js +7 -7
  80. package/components/message-box/index.umd.cjs +1 -1
  81. package/components/modal/index.esm.js +9 -9
  82. package/components/modal/index.umd.cjs +1 -1
  83. package/components/nav/index.esm.js +106 -106
  84. package/components/nav/index.umd.cjs +1 -1
  85. package/components/number-range/index.esm.js +326 -326
  86. package/components/number-range/index.umd.cjs +1 -1
  87. package/components/number-spinner/index.esm.js +168 -167
  88. package/components/number-spinner/index.umd.cjs +1 -1
  89. package/components/order/index.esm.js +739 -737
  90. package/components/order/index.umd.cjs +4 -4
  91. package/components/page-footer/index.esm.js +94 -94
  92. package/components/page-footer/index.umd.cjs +1 -1
  93. package/components/page-header/index.esm.js +942 -939
  94. package/components/page-header/index.umd.cjs +1 -1
  95. package/components/pagination/index.esm.js +82 -82
  96. package/components/pagination/index.umd.cjs +1 -1
  97. package/components/popover/index.esm.js +1 -1
  98. package/components/popover/index.umd.cjs +1 -1
  99. package/components/progress/index.esm.js +113 -113
  100. package/components/progress/index.umd.cjs +2 -2
  101. package/components/property-editor/index.esm.js +151 -150
  102. package/components/property-editor/index.umd.cjs +1 -1
  103. package/components/property-panel/index.esm.js +565 -565
  104. package/components/property-panel/index.umd.cjs +2 -2
  105. package/components/query-solution/index.esm.js +4142 -4190
  106. package/components/query-solution/index.umd.cjs +6 -6
  107. package/components/radio-button/index.esm.js +182 -182
  108. package/components/radio-button/index.umd.cjs +1 -1
  109. package/components/rate/index.esm.js +106 -106
  110. package/components/rate/index.umd.cjs +1 -1
  111. package/components/response-layout/index.esm.js +409 -409
  112. package/components/response-layout/index.umd.cjs +1 -1
  113. package/components/response-layout-editor/index.esm.js +1488 -1478
  114. package/components/response-layout-editor/index.umd.cjs +1 -1
  115. package/components/response-toolbar/index.esm.js +779 -776
  116. package/components/response-toolbar/index.umd.cjs +1 -1
  117. package/components/schema-selector/index.esm.js +1765 -1762
  118. package/components/schema-selector/index.umd.cjs +5 -5
  119. package/components/search-box/index.esm.js +114 -114
  120. package/components/search-box/index.umd.cjs +1 -1
  121. package/components/section/index.esm.js +1184 -1181
  122. package/components/section/index.umd.cjs +1 -1
  123. package/components/smoke-detector/index.esm.js +163 -163
  124. package/components/smoke-detector/index.umd.cjs +1 -1
  125. package/components/sort-condition-editor/index.esm.js +927 -916
  126. package/components/sort-condition-editor/index.umd.cjs +3 -3
  127. package/components/splitter/index.esm.js +3 -3
  128. package/components/splitter/index.umd.cjs +1 -1
  129. package/components/step/index.esm.js +133 -133
  130. package/components/step/index.umd.cjs +1 -1
  131. package/components/switch/index.esm.js +76 -72
  132. package/components/switch/index.umd.cjs +1 -1
  133. package/components/tabs/index.esm.js +1527 -1524
  134. package/components/tabs/index.umd.cjs +2 -2
  135. package/components/tags/index.esm.js +93 -93
  136. package/components/tags/index.umd.cjs +1 -1
  137. package/components/text/index.esm.js +138 -138
  138. package/components/text/index.umd.cjs +1 -1
  139. package/components/textarea/index.esm.js +361 -361
  140. package/components/textarea/index.umd.cjs +2 -2
  141. package/components/tooltip/index.esm.js +173 -171
  142. package/components/tooltip/index.umd.cjs +1 -1
  143. package/components/transfer/index.esm.js +130 -134
  144. package/components/transfer/index.umd.cjs +4 -4
  145. package/components/tree-grid/index.esm.js +25 -25
  146. package/components/tree-grid/index.umd.cjs +1 -1
  147. package/components/tree-view/index.esm.js +1746 -1743
  148. package/components/tree-view/index.umd.cjs +1 -1
  149. package/components/uploader/index.esm.js +170 -170
  150. package/components/uploader/index.umd.cjs +2 -2
  151. package/components/verify-detail/index.esm.js +196 -196
  152. package/components/verify-detail/index.umd.cjs +1 -1
  153. package/components/video/index.esm.js +8 -8
  154. package/components/video/index.umd.cjs +1 -1
  155. package/components/weather/index.esm.js +9 -9
  156. package/components/weather/index.umd.cjs +2 -2
  157. package/farris.all.esm.js +16987 -17002
  158. package/farris.all.umd.cjs +27 -27
  159. package/package.json +1 -1
  160. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  161. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
  162. package/components/time-picker/index.css +0 -1
  163. package/components/time-picker/index.esm.js +0 -9793
  164. package/components/time-picker/index.umd.cjs +0 -1
  165. package/components/time-picker/package.json +0 -8
  166. package/components/time-picker/style.js +0 -6
  167. package/designer/button-edit/index.css +0 -1
  168. package/designer/button-edit/index.esm.js +0 -4856
  169. package/designer/button-edit/index.umd.cjs +0 -1
  170. package/designer/checkbox/index.esm.js +0 -250
  171. package/designer/checkbox/index.umd.cjs +0 -1
  172. package/designer/checkbox-group/index.esm.js +0 -377
  173. package/designer/checkbox-group/index.umd.cjs +0 -1
  174. package/designer/data-grid/index.css +0 -1
  175. package/designer/data-grid/index.esm.js +0 -15413
  176. package/designer/data-grid/index.umd.cjs +0 -23
  177. package/designer/data-view/index.esm.js +0 -854
  178. package/designer/data-view/index.umd.cjs +0 -38
  179. package/designer/drawer/index.css +0 -1
  180. package/designer/drawer/index.esm.js +0 -525
  181. package/designer/drawer/index.umd.cjs +0 -1
  182. package/designer/farris-designer.all.esm.js +0 -22320
  183. package/designer/farris-designer.all.umd.cjs +0 -34
  184. package/designer/index.css +0 -1
  185. package/designer/input-group/index.esm.js +0 -1098
  186. package/designer/input-group/index.umd.cjs +0 -1
  187. package/designer/list-view/index.css +0 -1
  188. package/designer/list-view/index.esm.js +0 -4675
  189. package/designer/list-view/index.umd.cjs +0 -40
  190. package/designer/radio-group/index.css +0 -1
  191. package/designer/radio-group/index.esm.js +0 -6980
  192. package/designer/radio-group/index.umd.cjs +0 -1
  193. package/designer/tree-grid/index.esm.js +0 -1099
  194. package/designer/tree-grid/index.umd.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { ref as O, computed as U, defineComponent as W, watch as _, createVNode as $, Fragment as pe, inject as de, onMounted as me, resolveComponent as ve } from "vue";
1
+ import { ref as P, computed as x, defineComponent as U, watch as _, createVNode as C, Fragment as pe, inject as de, onMounted as me, resolveComponent as ve } from "vue";
2
2
  import be from "../button-edit/index.esm.js";
3
- import { isPlainObject as x, cloneDeep as J } from "lodash-es";
3
+ import { cloneDeep as X, isPlainObject as J } from "lodash-es";
4
4
  import ge from "../list-view/index.esm.js";
5
5
  import ye from "../loading/index.esm.js";
6
6
  import { getSchemaByTypeForDesigner as he } from "../dynamic-resolver/index.esm.js";
7
7
  function Q(e, t) {
8
8
  let n;
9
9
  function a(o) {
10
- const { properties: u, title: c, ignore: r } = o, i = r && Array.isArray(r), f = Object.keys(u).reduce((v, S) => ((!i || !r.find((E) => E === S)) && (v[S] = u[S].type === "object" && u[S].properties ? a(u[S]) : J(u[S].default)), v), {});
10
+ const { properties: u, title: c, ignore: r } = o, i = r && Array.isArray(r), f = Object.keys(u).reduce((v, S) => ((!i || !r.find((E) => E === S)) && (v[S] = u[S].type === "object" && u[S].properties ? a(u[S]) : X(u[S].default)), v), {});
11
11
  if (c && (!i || !r.find((v) => v === "id"))) {
12
12
  const v = c.toLowerCase().replace(/-/g, "_");
13
13
  f.id = `${v}_${Math.random().toString().slice(2, 6)}`;
@@ -17,7 +17,7 @@ function Q(e, t) {
17
17
  function g(o) {
18
18
  const { properties: u, title: c, required: r } = o;
19
19
  if (r && Array.isArray(r)) {
20
- const i = r.reduce((f, v) => (f[v] = u[v].type === "object" && u[v].properties ? a(u[v]) : J(u[v].default), f), {});
20
+ const i = r.reduce((f, v) => (f[v] = u[v].type === "object" && u[v].properties ? a(u[v]) : X(u[v].default), f), {});
21
21
  if (c && r.find((f) => f === "id")) {
22
22
  const f = c.toLowerCase().replace(/-/g, "_");
23
23
  i.id = `${f}_${Math.random().toString().slice(2, 6)}`;
@@ -28,18 +28,18 @@ function Q(e, t) {
28
28
  type: c
29
29
  };
30
30
  }
31
- function B(o, u = {}, c) {
31
+ function w(o, u = {}, c) {
32
32
  const r = e[o];
33
33
  if (r) {
34
34
  let i = g(r);
35
35
  const f = t[o];
36
- return i = f ? f({ getSchemaByType: B }, i, u, c) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
36
+ return i = f ? f({ getSchemaByType: w }, i, u, c) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
37
37
  }
38
38
  return null;
39
39
  }
40
40
  function y(o, u) {
41
41
  const c = a(u);
42
- return Object.keys(c).reduce((r, i) => (Object.prototype.hasOwnProperty.call(o, i) && (r[i] && x(r[i]) && x(o[i] || !o[i]) ? Object.assign(r[i], o[i] || {}) : r[i] = o[i]), r), c), c;
42
+ return Object.keys(c).reduce((r, i) => (Object.prototype.hasOwnProperty.call(o, i) && (r[i] && J(r[i]) && J(o[i] || !o[i]) ? Object.assign(r[i], o[i] || {}) : r[i] = o[i]), r), c), c;
43
43
  }
44
44
  function F(o, u) {
45
45
  return Object.keys(o).filter((r) => o[r] != null).reduce((r, i) => {
@@ -56,7 +56,7 @@ function Q(e, t) {
56
56
  return r;
57
57
  }, {});
58
58
  }
59
- function P(o, u, c = /* @__PURE__ */ new Map()) {
59
+ function O(o, u, c = /* @__PURE__ */ new Map()) {
60
60
  const r = y(o, u);
61
61
  return F(r, c);
62
62
  }
@@ -79,10 +79,10 @@ function Q(e, t) {
79
79
  function l(o) {
80
80
  n = o;
81
81
  }
82
- return { getSchemaByType: B, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: P, mappingSchemaToProps: F, setDesignerContext: l };
82
+ return { getSchemaByType: w, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: O, mappingSchemaToProps: F, setDesignerContext: l };
83
83
  }
84
- const Y = {}, Z = {}, { resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Fe, mappingSchemaToProps: Te } = Q(Y, Z);
85
- function we(e = {}) {
84
+ const Y = {}, Z = {}, { getSchemaByType: yt, resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: Fe, mappingSchemaToProps: Te, setDesignerContext: ht } = Q(Y, Z);
85
+ function Be(e = {}) {
86
86
  function t(d, l, o, u) {
87
87
  if (typeof o == "number")
88
88
  return u[d].length === o;
@@ -114,7 +114,7 @@ function we(e = {}) {
114
114
  return { target: o, operator: "getProperty", param: c, value: r };
115
115
  }) : [];
116
116
  }
117
- function B(d) {
117
+ function w(d) {
118
118
  return Object.keys(d).reduce((o, u) => {
119
119
  const c = g(u, d[u]);
120
120
  return o.push(...c), o;
@@ -128,22 +128,22 @@ function we(e = {}) {
128
128
  return !1;
129
129
  }
130
130
  function F(d, l) {
131
- return B(d).reduce((c, r) => c && y(r, l), !0);
131
+ return w(d).reduce((c, r) => c && y(r, l), !0);
132
132
  }
133
- function P(d, l) {
133
+ function O(d, l) {
134
134
  const o = Object.keys(d), u = o.includes("allOf"), c = o.includes("anyOf"), r = u || c, v = (r ? d[r ? u ? "allOf" : "anyOf" : "allOf"] : [d]).map((E) => F(E, l));
135
135
  return u ? !v.includes(!1) : v.includes(!0);
136
136
  }
137
- return { parseValueSchema: P };
137
+ return { parseValueSchema: O };
138
138
  }
139
- const Oe = {
139
+ const Pe = {
140
140
  convertTo: (e, t, n, a) => {
141
141
  e.appearance || (e.appearance = {}), e.appearance[t] = n;
142
142
  },
143
143
  convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
144
- }, Be = {
144
+ }, we = {
145
145
  convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
146
- }, Pe = {
146
+ }, Oe = {
147
147
  convertTo: (e, t, n, a) => {
148
148
  e.editor && (e.editor[t] = n);
149
149
  },
@@ -298,7 +298,7 @@ const Oe = {
298
298
  return e.group.showSummary;
299
299
  }
300
300
  }
301
- }, Ve = {
301
+ }, $e = {
302
302
  convertFrom: (e, t) => e.binding ? e.binding.path : "",
303
303
  convertTo: (e, t, n) => {
304
304
  if (n && n.length > 0) {
@@ -306,12 +306,12 @@ const Oe = {
306
306
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = a.bindingField, e.binding.field = a.id, e.binding.fullPath = a.path, e.path = a.bindingPath;
307
307
  }
308
308
  }
309
- }, $e = {
309
+ }, Ce = {
310
310
  convertTo: (e, t, n, a) => {
311
311
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
312
312
  },
313
313
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
314
- }, Ce = {
314
+ }, Ve = {
315
315
  convertTo: (e, t, n, a) => {
316
316
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
317
317
  },
@@ -352,7 +352,7 @@ const Oe = {
352
352
  if (t === "multiSort")
353
353
  return !!((g = e.sort) != null && g.multiSort);
354
354
  }
355
- }, Ue = {
355
+ }, xe = {
356
356
  convertTo: (e, t, n, a) => {
357
357
  e.filter || (e.filter = {}), e.filter[t] = n;
358
358
  },
@@ -361,7 +361,7 @@ const Oe = {
361
361
  if (t === "mode")
362
362
  return ((a = e.filter) == null ? void 0 : a.mode) || "client";
363
363
  }
364
- }, We = {
364
+ }, Ue = {
365
365
  convertTo: (e, t, n, a) => {
366
366
  e.rowOption ? e.rowOption[t] = n : e.rowOption = {
367
367
  [t]: n
@@ -379,9 +379,9 @@ const Oe = {
379
379
  };
380
380
  function I(e, t, n) {
381
381
  const a = /* @__PURE__ */ new Map([
382
- ["/converter/appearance.converter", Oe],
383
- ["/converter/buttons.converter", Be],
384
- ["/converter/property-editor.converter", Pe],
382
+ ["/converter/appearance.converter", Pe],
383
+ ["/converter/buttons.converter", we],
384
+ ["/converter/property-editor.converter", Oe],
385
385
  ["/converter/items-count.converter", qe],
386
386
  ["/converter/type.converter", De],
387
387
  ["/converter/change-editor.converter", Ee],
@@ -391,15 +391,15 @@ function I(e, t, n) {
391
391
  ["/converter/summary.converter", ke],
392
392
  ["/converter/group.converter", Ne],
393
393
  ["/converter/form-group-label.converter", Le],
394
- ["/converter/field-selector.converter", Ve],
395
- ["/converter/pagination.converter", $e],
396
- ["/converter/row-number.converter", Ce],
394
+ ["/converter/field-selector.converter", $e],
395
+ ["/converter/pagination.converter", Ce],
396
+ ["/converter/row-number.converter", Ve],
397
397
  ["/converter/grid-selection.converter", Ae],
398
398
  ["/converter/size.converter", He],
399
399
  ["/converter/change-formatter-enum.converter", ze],
400
400
  ["/converter/grid-sort.converter", _e],
401
- ["/converter/grid-filter.converter", Ue],
402
- ["/converter/row-option.converter", We]
401
+ ["/converter/grid-filter.converter", xe],
402
+ ["/converter/row-option.converter", Ue]
403
403
  ]), g = /* @__PURE__ */ new Map([
404
404
  ["string", { type: "input-group", enableClear: !1 }],
405
405
  ["boolean", {
@@ -424,14 +424,14 @@ function I(e, t, n) {
424
424
  ["array", { type: "button-edit" }],
425
425
  ["number", { type: "number-spinner", placeholder: "" }],
426
426
  ["events-editor", { type: "events-editor", hide: !0 }]
427
- ]), B = we();
427
+ ]), w = Be();
428
428
  function y(r, i) {
429
- return () => B.parseValueSchema(r, i);
429
+ return () => w.parseValueSchema(r, i);
430
430
  }
431
431
  function F(r, i, f) {
432
432
  return r.includes("visible") && i.visible !== void 0 ? typeof i.visible == "boolean" ? () => !!i.visible : i.visible === void 0 ? !0 : y(i.visible, f) : () => !0;
433
433
  }
434
- function P(r, i, f) {
434
+ function O(r, i, f) {
435
435
  return r.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : y(i.readonly, f) : () => !1;
436
436
  }
437
437
  function d(r, i) {
@@ -440,14 +440,14 @@ function I(e, t, n) {
440
440
  }
441
441
  function l(r, i, f, v, S, E = "", k = "") {
442
442
  return Object.keys(r).map((T) => {
443
- const N = O(1), V = T, p = r[T], R = Object.keys(p), q = p.title, s = p.type, b = g.get(s) || { type: "input-group", enableClear: !1 }, m = p.editor ? Object.assign({}, b, p.editor) : Object.assign({}, b), h = F(R, p, i), w = P(R, p, i);
444
- m.readonly = m.readonly === void 0 ? w() : m.readonly;
443
+ const N = P(1), $ = T, p = r[T], R = Object.keys(p), q = p.title, s = p.type, b = g.get(s) || { type: "input-group", enableClear: !1 }, m = p.editor ? Object.assign({}, b, p.editor) : Object.assign({}, b), h = F(R, p, i), B = O(R, p, i);
444
+ m.readonly = m.readonly === void 0 ? B() : m.readonly;
445
445
  const M = p.type === "cascade" ? l(p.properties, i, f, v, S, E, k) : [], L = !0;
446
446
  let D = d(p, k);
447
- const C = U({
447
+ const V = x({
448
448
  get() {
449
449
  if (N.value) {
450
- if (["class", "style"].find((fe) => fe === V) && !D && (D = a.get("/converter/appearance.converter") || null), D && D.convertFrom)
450
+ if (["class", "style"].find((fe) => fe === $) && !D && (D = a.get("/converter/appearance.converter") || null), D && D.convertFrom)
451
451
  return D.convertFrom(f, T, S, E);
452
452
  const A = f[T];
453
453
  return Object.prototype.hasOwnProperty.call(p, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? p.type === "boolean" ? p.defaultValue : p.defaultValue || "" : A;
@@ -457,8 +457,8 @@ function I(e, t, n) {
457
457
  set(A) {
458
458
  N.value += 1, D && D.convertTo ? (D.convertTo(v, T, A, S, E), D.convertTo(f, T, A, S, E)) : (v[T] = A, f[T] = A);
459
459
  }
460
- }), { refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se } = p, X = { propertyID: V, propertyName: q, propertyType: s, propertyValue: C, editor: m, visible: h, readonly: w, cascadeConfig: M, hideCascadeTitle: L, refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se };
461
- return i[V] = X, X;
460
+ }), { refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se } = p, G = { propertyID: $, propertyName: q, propertyType: s, propertyValue: V, editor: m, visible: h, readonly: B, cascadeConfig: M, hideCascadeTitle: L, refreshPanelAfterChanged: H, description: le, isExpand: ue, parentPropertyID: se };
461
+ return i[$] = G, G;
462
462
  });
463
463
  }
464
464
  function o(r, i, f = {}) {
@@ -469,13 +469,13 @@ function I(e, t, n) {
469
469
  }) : [];
470
470
  }
471
471
  function u(r, i, f, v, S = "") {
472
- const E = i.$ref.schema, k = i.$ref.converter, j = f[E], T = j.type, N = n(j), V = {}, p = e[T];
472
+ const E = i.$ref.schema, k = i.$ref.converter, j = f[E], T = j.type, N = n(j), $ = {}, p = e[T];
473
473
  if (p && p.categories) {
474
474
  const R = p.categories[r], q = R == null ? void 0 : R.title;
475
475
  k && Object.keys(R.properties).forEach((m) => {
476
476
  R.properties[m].$converter = k;
477
477
  });
478
- const s = (R == null ? void 0 : R.properties) || {}, b = l(s, V, N, j, v, S);
478
+ const s = (R == null ? void 0 : R.properties) || {}, b = l(s, $, N, j, v, S);
479
479
  return { categoryId: r, categoryName: q, properties: b };
480
480
  }
481
481
  return { categoryId: r, categoryName: "", properties: [] };
@@ -485,14 +485,14 @@ function I(e, t, n) {
485
485
  let T = S || e[E];
486
486
  if (T && Object.keys(T).length === 0 && f && f.getPropConfig && (T = f.getPropConfig(v)), T && T.categories) {
487
487
  const N = [];
488
- return Object.keys(T.categories).map((V) => {
489
- const p = T.categories[V];
488
+ return Object.keys(T.categories).map(($) => {
489
+ const p = T.categories[$];
490
490
  if (p.$ref) {
491
- N.push(u(V, p, r, i, v));
491
+ N.push(u($, p, r, i, v));
492
492
  return;
493
493
  }
494
- const R = p == null ? void 0 : p.title, q = p == null ? void 0 : p.tabId, s = p == null ? void 0 : p.tabName, b = p == null ? void 0 : p.hide, m = p == null ? void 0 : p.hideTitle, h = l(p.properties || {}, j, k, r, i, v, p.$converter), { setPropertyRelates: w } = p, M = p == null ? void 0 : p.parentPropertyID;
495
- N.push({ categoryId: V, categoryName: R, tabId: q, tabName: s, hide: b, properties: h, hideTitle: m, setPropertyRelates: w, parentPropertyID: M });
494
+ const R = p == null ? void 0 : p.title, q = p == null ? void 0 : p.tabId, s = p == null ? void 0 : p.tabName, b = p == null ? void 0 : p.hide, m = p == null ? void 0 : p.hideTitle, h = l(p.properties || {}, j, k, r, i, v, p.$converter), { setPropertyRelates: B } = p, M = p == null ? void 0 : p.parentPropertyID;
495
+ N.push({ categoryId: $, categoryName: R, tabId: q, tabName: s, hide: b, properties: h, hideTitle: m, setPropertyRelates: B, parentPropertyID: M });
496
496
  }), N;
497
497
  }
498
498
  return [];
@@ -505,21 +505,21 @@ function I(e, t, n) {
505
505
  }
506
506
  const ee = {}, te = {};
507
507
  I(ee, te, Se);
508
- const ne = {}, re = {}, { resolveSchemaWithDefaultValue: Ge } = Q(ne, re), oe = {}, ie = {};
509
- I(oe, ie, Ge);
510
- function Xe(e, t, n = /* @__PURE__ */ new Map(), a = (y, F, P, d) => F, g = {}, B = (y) => y) {
511
- return Y[t.title] = t, Z[t.title] = a, ee[t.title] = g, te[t.title] = B, ne[t.title] = t, re[t.title] = a, oe[t.title] = g, ie[t.title] = B, (y = {}, F = !0) => {
508
+ const ne = {}, re = {}, { getSchemaByType: St, resolveSchemaWithDefaultValue: We, resolveSchemaToProps: Ft, mappingSchemaToProps: Tt, setDesignerContext: Bt } = Q(ne, re), oe = {}, ie = {};
509
+ I(oe, ie, We);
510
+ function Ge(e, t, n = /* @__PURE__ */ new Map(), a = (y, F, O, d) => F, g = {}, w = (y) => y) {
511
+ return Y[t.title] = t, Z[t.title] = a, ee[t.title] = g, te[t.title] = w, ne[t.title] = t, re[t.title] = a, oe[t.title] = g, ie[t.title] = w, (y = {}, F = !0) => {
512
512
  if (!F)
513
513
  return Te(y, n);
514
- const P = Fe(y, t, n), d = Object.keys(e).reduce((l, o) => (l[o] = e[o].default, l), {});
515
- return Object.assign(d, P);
514
+ const O = Fe(y, t, n), d = Object.keys(e).reduce((l, o) => (l[o] = e[o].default, l), {});
515
+ return Object.assign(d, O);
516
516
  };
517
517
  }
518
- function xe(e, t) {
518
+ function Xe(e, t) {
519
519
  return { customClass: t.class, customStyle: t.style };
520
520
  }
521
521
  const Je = /* @__PURE__ */ new Map([
522
- ["appearance", xe]
522
+ ["appearance", Xe]
523
523
  ]), Qe = "https://json-schema.org/draft/2020-12/schema", Ye = "https://farris-design.gitee.io/search-box.schema.json", Ze = "search-box", Ke = "A Farris Component", Ie = "object", et = {
524
524
  id: {
525
525
  description: "The unique identifier for a search-box",
@@ -624,7 +624,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
624
624
  description: it,
625
625
  type: at,
626
626
  categories: ct
627
- }, G = {
627
+ }, W = {
628
628
  /**
629
629
  * 自定义图标
630
630
  */
@@ -674,7 +674,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
674
674
  * 值变化事件触发时机
675
675
  */
676
676
  updateOn: { default: "blur", type: String }
677
- }, ae = Xe(G, nt, Je, rt, lt), ut = {
677
+ }, ae = Ge(W, nt, Je, rt, lt), ut = {
678
678
  data: { type: Array, default: [] },
679
679
  /** 确认结果事件 */
680
680
  onConfirmResult: { type: Function, default: () => {
@@ -698,14 +698,14 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
698
698
  */
699
699
  maxHeight: { default: 350, type: Number },
700
700
  loading: { default: !1, type: Boolean }
701
- }, ce = /* @__PURE__ */ W({
701
+ }, ce = /* @__PURE__ */ U({
702
702
  name: "FSearchBoxContainer",
703
703
  props: ut,
704
704
  emits: ["confirmResult", "searchedValue"],
705
705
  setup(e, t) {
706
- const n = O(e.data), a = O(), {
706
+ const n = P(e.data), a = P(), {
707
707
  slots: g
708
- } = t, B = U(() => ({
708
+ } = t, w = x(() => ({
709
709
  "search-box-container": !0,
710
710
  "f-utils-overflow-xhya": !0,
711
711
  "position-relative": !0
@@ -717,10 +717,10 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
717
717
  function F(l) {
718
718
  l.length && (t.emit("confirmResult", l[0].name), t.emit("searchedValue", l));
719
719
  }
720
- function P(l) {
721
- return g.default ? $(pe, null, [g.default(l)]) : $("span", null, [l.item[e.textField]]);
720
+ function O(l) {
721
+ return g.default ? C(pe, null, [g.default(l)]) : C("span", null, [l.item[e.textField]]);
722
722
  }
723
- const d = U(() => {
723
+ const d = x(() => {
724
724
  const l = {};
725
725
  return l.padding = "8px", e.maxHeight !== void 0 && e.maxHeight > 0 && (l.maxHeight = `${e.maxHeight}px`), l;
726
726
  });
@@ -731,15 +731,15 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
731
731
  search: y
732
732
  }), () => {
733
733
  const l = {
734
- content: P
734
+ content: O
735
735
  };
736
- return $("div", {
737
- class: B.value,
736
+ return C("div", {
737
+ class: w.value,
738
738
  style: d.value
739
- }, [$(ye, {
739
+ }, [C(ye, {
740
740
  ref: "loadingInstance",
741
741
  isActive: e.loading
742
- }, null), $(ge, {
742
+ }, null), C(ge, {
743
743
  ref: a,
744
744
  itemClass: "dropdown-item",
745
745
  data: n.value,
@@ -752,22 +752,22 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
752
752
  }, l)]);
753
753
  };
754
754
  }
755
- }), z = /* @__PURE__ */ W({
755
+ }), z = /* @__PURE__ */ U({
756
756
  name: "FSearchBox",
757
- props: G,
757
+ props: W,
758
758
  emits: ["update:modelValue", "change", "selectedValue", "clickButton"],
759
759
  setup(e, t) {
760
- O(e.data);
761
- const n = O(), a = O(), g = O(e.placeholder), B = '<i class="f-icon f-icon-clockwise f-icon-spin"></i>', y = U(() => e.loading ? B : e.buttonContent);
762
- O(e.editable);
763
- const F = O(e.modelValue);
760
+ P(e.data);
761
+ const n = P(), a = P(), g = P(e.placeholder), w = '<i class="f-icon f-icon-clockwise f-icon-spin"></i>', y = x(() => e.loading ? w : e.buttonContent);
762
+ P(e.editable);
763
+ const F = P(e.modelValue);
764
764
  _(F, (c) => {
765
765
  var r;
766
766
  (r = a.value) == null || r.search(c), t.emit("update:modelValue", c);
767
767
  }), _(() => e.modelValue, (c) => {
768
768
  F.value = c;
769
769
  });
770
- function P(c) {
770
+ function O(c) {
771
771
  n.value.commitValue(c);
772
772
  }
773
773
  function d(c) {
@@ -788,7 +788,7 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
788
788
  const c = {
789
789
  default: t.slots.default
790
790
  };
791
- return $(be, {
791
+ return C(be, {
792
792
  ref: n,
793
793
  "button-content": y.value,
794
794
  "custom-class": e.customClass,
@@ -809,12 +809,12 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
809
809
  limitContentBySpace: !0,
810
810
  placement: "auto"
811
811
  }, {
812
- default: () => [e.showDropdown && $(ce, {
812
+ default: () => [e.showDropdown && C(ce, {
813
813
  ref: a,
814
814
  data: e.data,
815
815
  idField: e.idField,
816
816
  textField: e.textField,
817
- onConfirmResult: P,
817
+ onConfirmResult: O,
818
818
  onSearchedValue: (r) => l(r),
819
819
  loading: e.loading,
820
820
  maxHeight: e.maxHeight
@@ -826,12 +826,12 @@ const ot = "search-box", it = "A Farris Component", at = "object", ct = {
826
826
  });
827
827
  function st(e, t, n) {
828
828
  var q;
829
- const a = "", g = "", B = O();
829
+ const a = "", g = "", w = P();
830
830
  let y;
831
831
  function F() {
832
832
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
833
833
  }
834
- function P() {
834
+ function O() {
835
835
  return !1;
836
836
  }
837
837
  function d() {
@@ -845,19 +845,19 @@ function st(e, t, n) {
845
845
  return null;
846
846
  if (s.value.schema && s.value.schema.type === "component")
847
847
  return s.value;
848
- const b = O(s == null ? void 0 : s.value.parent), m = o(b);
848
+ const b = P(s == null ? void 0 : s.value.parent), m = o(b);
849
849
  return m || null;
850
850
  }
851
851
  function u(s = t) {
852
- var w;
852
+ var B;
853
853
  const { componentInstance: b, designerItemElementRef: m } = s;
854
854
  if (!b || !b.value)
855
855
  return null;
856
856
  const { getCustomButtons: h } = b.value;
857
- return b.value.canMove || h && ((w = h()) != null && w.length) ? m : u(s.parent);
857
+ return b.value.canMove || h && ((B = h()) != null && B.length) ? m : u(s.parent);
858
858
  }
859
859
  function c(s) {
860
- return !1;
860
+ return !!n;
861
861
  }
862
862
  function r() {
863
863
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -871,8 +871,8 @@ function st(e, t, n) {
871
871
  function v(s, b) {
872
872
  const { componentType: m } = s;
873
873
  let h = he(m, s, b);
874
- const w = m.toLowerCase().replace(/-/g, "_");
875
- return h && !h.id && h.type === m && (h.id = `${w}_${Math.random().toString().slice(2, 6)}`), h;
874
+ const B = m.toLowerCase().replace(/-/g, "_");
875
+ return h && !h.id && h.type === m && (h.id = `${B}_${Math.random().toString().slice(2, 6)}`), h;
876
876
  }
877
877
  function S(s) {
878
878
  }
@@ -883,7 +883,7 @@ function st(e, t, n) {
883
883
  return;
884
884
  const b = t == null ? void 0 : t.schema, { formSchemaUtils: m } = s;
885
885
  if (b && m.getExpressions().length) {
886
- const h = m.getExpressions().findIndex((w) => w.target === b.id);
886
+ const h = m.getExpressions().findIndex((B) => B.target === b.id);
887
887
  h > -1 && m.getExpressions().splice(h, 1);
888
888
  }
889
889
  }
@@ -898,23 +898,23 @@ function st(e, t, n) {
898
898
  let m = b.id;
899
899
  b.type === "component-ref" && (m = b.component);
900
900
  const h = e.value.querySelectorAll(`#${m}-design-item`);
901
- h != null && h.length && Array.from(h).map((w) => {
901
+ h != null && h.length && Array.from(h).map((B) => {
902
902
  var M;
903
- (M = w == null ? void 0 : w.componentInstance) != null && M.value.onRemoveComponent && w.componentInstance.value.onRemoveComponent(s);
903
+ (M = B == null ? void 0 : B.componentInstance) != null && M.value.onRemoveComponent && B.componentInstance.value.onRemoveComponent(s);
904
904
  });
905
905
  });
906
906
  }
907
907
  function N() {
908
908
  }
909
- function V(s) {
909
+ function $(s) {
910
910
  var m, h;
911
911
  if (!((m = t == null ? void 0 : t.schema) != null && m.id))
912
912
  return;
913
913
  !y && s && (y = s.formSchemaUtils);
914
914
  let b = "";
915
915
  {
916
- const { text: w, title: M, label: L, mainTitle: D, name: C, type: H } = t.schema;
917
- b = w || M || L || D || C || ((h = K[H]) == null ? void 0 : h.name);
916
+ const { text: B, title: M, label: L, mainTitle: D, name: V, type: H } = t.schema;
917
+ b = B || M || L || D || V || ((h = K[H]) == null ? void 0 : h.name);
918
918
  }
919
919
  b && y.getControlBasicInfoMap().set(t.schema.id, {
920
920
  componentTitle: b,
@@ -922,25 +922,25 @@ function st(e, t, n) {
922
922
  });
923
923
  }
924
924
  function p(s) {
925
- var w;
925
+ var B;
926
926
  const { changeObject: b } = s, { propertyID: m, propertyValue: h } = b;
927
- if (["text", "title", "label", "name", "mainTitle"].includes((w = s == null ? void 0 : s.changeObject) == null ? void 0 : w.propertyID) && m && h && (V(), y)) {
927
+ if (["text", "title", "label", "name", "mainTitle"].includes((B = s == null ? void 0 : s.changeObject) == null ? void 0 : B.propertyID) && m && h && ($(), y)) {
928
928
  const M = y.getControlBasicInfoMap(), L = M.keys().toArray().filter((D) => {
929
- var C, H;
930
- return ((C = M.get(D)) == null ? void 0 : C.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
929
+ var V, H;
930
+ return ((V = M.get(D)) == null ? void 0 : V.reliedComponentId) === ((H = t == null ? void 0 : t.schema) == null ? void 0 : H.id);
931
931
  });
932
932
  L != null && L.length && L.forEach((D) => {
933
- const C = M.get(D).parentPathName.split(" > ");
934
- C[0] = h, M.get(D).parentPathName = C.join(" > ");
933
+ const V = M.get(D).parentPathName.split(" > ");
934
+ V[0] = h, M.get(D).parentPathName = V.join(" > ");
935
935
  });
936
936
  }
937
937
  }
938
938
  function R(s) {
939
939
  p(s);
940
940
  }
941
- return B.value = {
941
+ return w.value = {
942
942
  canMove: F(),
943
- canSelectParent: P(),
943
+ canSelectParent: O(),
944
944
  canDelete: d(),
945
945
  canNested: !l(),
946
946
  contents: t == null ? void 0 : t.schema.contents,
@@ -958,23 +958,23 @@ function st(e, t, n) {
958
958
  onAcceptMovedChildElement: f,
959
959
  onChildElementMovedOut: S,
960
960
  addNewChildComponentSchema: v,
961
- triggerBelongedComponentToMoveWhenMoved: O(!1),
962
- triggerBelongedComponentToDeleteWhenDeleted: O(!1),
961
+ triggerBelongedComponentToMoveWhenMoved: P(!1),
962
+ triggerBelongedComponentToDeleteWhenDeleted: P(!1),
963
963
  onRemoveComponent: T,
964
964
  getCustomButtons: N,
965
965
  onPropertyChanged: R,
966
- setComponentBasicInfoMap: V,
966
+ setComponentBasicInfoMap: $,
967
967
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
968
- }, B;
968
+ }, w;
969
969
  }
970
- const ft = /* @__PURE__ */ W({
970
+ const ft = /* @__PURE__ */ U({
971
971
  name: "FSearchBoxDesign",
972
- props: G,
972
+ props: W,
973
973
  emits: ["update:modelValue", "change"],
974
974
  setup(e, t) {
975
- const n = O(e.data), a = O(), g = O(), B = O("请输入关键词"), y = O('<i class="f-icon f-icon-search"></i>'), F = O(e.modelValue), P = O(), d = de("design-item-context"), l = st(P, d);
975
+ const n = P(e.data), a = P(), g = P(), w = P("请输入关键词"), y = P('<i class="f-icon f-icon-search"></i>'), F = P(e.modelValue), O = P(), d = de("design-item-context"), l = st(O, d);
976
976
  me(() => {
977
- P.value.componentInstance = l;
977
+ O.value.componentInstance = l;
978
978
  }), t.expose(l.value), _(F, (c) => {
979
979
  var r;
980
980
  (r = g.value) == null || r.search(c), t.emit("update:modelValue", c);
@@ -987,12 +987,12 @@ const ft = /* @__PURE__ */ W({
987
987
  function u(c) {
988
988
  t.emit("change", c);
989
989
  }
990
- return () => $("div", {
991
- ref: P
992
- }, [$(ve("f-button-edit"), {
990
+ return () => C("div", {
991
+ ref: O
992
+ }, [C(ve("f-button-edit"), {
993
993
  ref: a,
994
994
  "button-content": y.value,
995
- placeholder: B.value,
995
+ placeholder: w.value,
996
996
  onChange: u,
997
997
  "enable-clear": !0,
998
998
  "button-behavior": "Execute",
@@ -1004,7 +1004,7 @@ const ft = /* @__PURE__ */ W({
1004
1004
  "popup-on-input": !0,
1005
1005
  "popup-on-focus": !0
1006
1006
  }, {
1007
- default: () => [$(ce, {
1007
+ default: () => [C(ce, {
1008
1008
  ref: g,
1009
1009
  data: n.value,
1010
1010
  onConfirmResult: o
@@ -1025,5 +1025,5 @@ export {
1025
1025
  z as FSearchBox,
1026
1026
  z as default,
1027
1027
  ae as propsResolver,
1028
- G as searchBoxProps
1028
+ W as searchBoxProps
1029
1029
  };