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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/components/accordion/index.esm.js +65 -65
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +360 -361
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +524 -520
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +134 -134
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +192 -192
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/code-editor/index.esm.js +8 -8
  12. package/components/code-editor/index.umd.cjs +3 -3
  13. package/components/collection-property-editor/index.esm.js +72 -72
  14. package/components/collection-property-editor/index.umd.cjs +1 -1
  15. package/components/color-picker/index.esm.js +291 -289
  16. package/components/color-picker/index.umd.cjs +1 -1
  17. package/components/combo-list/index.esm.js +190 -181
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +113 -112
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +3 -1
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +309 -309
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.esm.js +1125 -1124
  26. package/components/condition/index.umd.cjs +1 -1
  27. package/components/content-container/index.esm.js +472 -472
  28. package/components/content-container/index.umd.cjs +1 -1
  29. package/components/data-grid/index.esm.js +99 -99
  30. package/components/data-grid/index.umd.cjs +1 -1
  31. package/components/data-view/index.esm.js +3387 -3321
  32. package/components/data-view/index.umd.cjs +1 -1
  33. package/components/date-picker/index.esm.js +1604 -1601
  34. package/components/date-picker/index.umd.cjs +1 -1
  35. package/components/designer-canvas/index.esm.js +1082 -1079
  36. package/components/designer-canvas/index.umd.cjs +1 -1
  37. package/components/discussion-editor/index.esm.js +973 -1040
  38. package/components/discussion-editor/index.umd.cjs +6 -6
  39. package/components/dropdown/index.esm.js +335 -330
  40. package/components/dropdown/index.umd.cjs +2 -2
  41. package/components/dynamic-form/index.esm.js +177 -177
  42. package/components/dynamic-form/index.umd.cjs +1 -1
  43. package/components/dynamic-resolver/index.esm.js +6 -6
  44. package/components/dynamic-resolver/index.umd.cjs +1 -1
  45. package/components/dynamic-view/index.esm.js +344 -344
  46. package/components/dynamic-view/index.umd.cjs +1 -1
  47. package/components/events-editor/index.esm.js +644 -644
  48. package/components/events-editor/index.umd.cjs +3 -3
  49. package/components/expression-editor/index.esm.js +1773 -1760
  50. package/components/expression-editor/index.umd.cjs +4 -4
  51. package/components/fieldset/index.esm.js +55 -55
  52. package/components/fieldset/index.umd.cjs +1 -1
  53. package/components/filter-bar/index.esm.js +879 -869
  54. package/components/filter-bar/index.umd.cjs +1 -1
  55. package/components/filter-condition-editor/index.esm.js +1091 -1077
  56. package/components/filter-condition-editor/index.umd.cjs +3 -3
  57. package/components/flow-canvas/index.esm.js +215 -215
  58. package/components/flow-canvas/index.umd.cjs +1 -1
  59. package/components/html-template/index.esm.js +164 -164
  60. package/components/html-template/index.umd.cjs +1 -1
  61. package/components/image-cropper/index.esm.js +198 -198
  62. package/components/image-cropper/index.umd.cjs +1 -1
  63. package/components/json-editor/index.esm.js +64 -64
  64. package/components/json-editor/index.umd.cjs +1 -1
  65. package/components/language-textbox/index.esm.js +140 -140
  66. package/components/language-textbox/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +111 -111
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +90 -90
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.esm.js +139 -141
  72. package/components/list-view/index.umd.cjs +3 -3
  73. package/components/locale/index.esm.js +833 -901
  74. package/components/locale/index.umd.cjs +6 -6
  75. package/components/lookup/index.esm.js +1352 -1351
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.esm.js +1387 -1383
  78. package/components/mapping-editor/index.umd.cjs +1 -1
  79. package/components/menu-lookup/index.esm.js +1059 -1127
  80. package/components/menu-lookup/index.umd.cjs +6 -6
  81. package/components/message-box/index.esm.js +217 -217
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.esm.js +283 -283
  84. package/components/modal/index.umd.cjs +1 -1
  85. package/components/nav/index.esm.js +106 -106
  86. package/components/nav/index.umd.cjs +1 -1
  87. package/components/number-range/index.esm.js +194 -194
  88. package/components/number-range/index.umd.cjs +1 -1
  89. package/components/number-spinner/index.esm.js +463 -462
  90. package/components/number-spinner/index.umd.cjs +1 -1
  91. package/components/order/index.esm.js +883 -876
  92. package/components/order/index.umd.cjs +4 -4
  93. package/components/page-footer/index.esm.js +94 -94
  94. package/components/page-footer/index.umd.cjs +1 -1
  95. package/components/page-header/index.esm.js +942 -939
  96. package/components/page-header/index.umd.cjs +1 -1
  97. package/components/pagination/index.esm.js +82 -82
  98. package/components/pagination/index.umd.cjs +1 -1
  99. package/components/popover/index.esm.js +59 -57
  100. package/components/popover/index.umd.cjs +1 -1
  101. package/components/progress/index.esm.js +113 -113
  102. package/components/progress/index.umd.cjs +2 -2
  103. package/components/property-editor/index.esm.js +151 -150
  104. package/components/property-editor/index.umd.cjs +1 -1
  105. package/components/property-panel/index.esm.js +739 -739
  106. package/components/property-panel/index.umd.cjs +2 -2
  107. package/components/query-solution/index.esm.js +4142 -4190
  108. package/components/query-solution/index.umd.cjs +6 -6
  109. package/components/radio-button/index.esm.js +182 -182
  110. package/components/radio-button/index.umd.cjs +1 -1
  111. package/components/rate/index.esm.js +106 -106
  112. package/components/rate/index.umd.cjs +1 -1
  113. package/components/response-layout/index.esm.js +535 -535
  114. package/components/response-layout/index.umd.cjs +1 -1
  115. package/components/response-layout-editor/index.esm.js +1456 -1443
  116. package/components/response-layout-editor/index.umd.cjs +1 -1
  117. package/components/response-toolbar/index.esm.js +779 -776
  118. package/components/response-toolbar/index.umd.cjs +1 -1
  119. package/components/schema-selector/index.esm.js +1875 -1866
  120. package/components/schema-selector/index.umd.cjs +7 -7
  121. package/components/search-box/index.esm.js +151 -147
  122. package/components/search-box/index.umd.cjs +1 -1
  123. package/components/section/index.esm.js +1236 -1233
  124. package/components/section/index.umd.cjs +1 -1
  125. package/components/smoke-detector/index.esm.js +163 -163
  126. package/components/smoke-detector/index.umd.cjs +1 -1
  127. package/components/sort-condition-editor/index.esm.js +1097 -1083
  128. package/components/sort-condition-editor/index.umd.cjs +3 -3
  129. package/components/splitter/index.esm.js +3 -3
  130. package/components/splitter/index.umd.cjs +1 -1
  131. package/components/step/index.esm.js +133 -133
  132. package/components/step/index.umd.cjs +1 -1
  133. package/components/switch/index.esm.js +103 -98
  134. package/components/switch/index.umd.cjs +1 -1
  135. package/components/tabs/index.esm.js +1596 -1593
  136. package/components/tabs/index.umd.cjs +2 -2
  137. package/components/tags/index.esm.js +93 -93
  138. package/components/tags/index.umd.cjs +1 -1
  139. package/components/text/index.esm.js +138 -138
  140. package/components/text/index.umd.cjs +1 -1
  141. package/components/textarea/index.esm.js +684 -684
  142. package/components/textarea/index.umd.cjs +2 -2
  143. package/components/time-picker/index.esm.js +935 -929
  144. package/components/time-picker/index.umd.cjs +1 -1
  145. package/components/tooltip/index.esm.js +173 -171
  146. package/components/tooltip/index.umd.cjs +1 -1
  147. package/components/transfer/index.esm.js +190 -192
  148. package/components/transfer/index.umd.cjs +4 -4
  149. package/components/tree-grid/index.esm.js +124 -124
  150. package/components/tree-grid/index.umd.cjs +1 -1
  151. package/components/tree-view/index.esm.js +2363 -2278
  152. package/components/tree-view/index.umd.cjs +1 -1
  153. package/components/uploader/index.esm.js +170 -170
  154. package/components/uploader/index.umd.cjs +2 -2
  155. package/components/verify-detail/index.esm.js +196 -196
  156. package/components/verify-detail/index.umd.cjs +1 -1
  157. package/components/video/index.esm.js +227 -227
  158. package/components/video/index.umd.cjs +1 -1
  159. package/components/weather/index.esm.js +9 -9
  160. package/components/weather/index.umd.cjs +2 -2
  161. package/designer/button-edit/index.esm.js +353 -353
  162. package/designer/button-edit/index.umd.cjs +1 -1
  163. package/designer/checkbox/index.esm.js +7 -3
  164. package/designer/checkbox/index.umd.cjs +1 -1
  165. package/designer/checkbox-group/index.esm.js +38 -33
  166. package/designer/checkbox-group/index.umd.cjs +1 -1
  167. package/designer/data-grid/index.esm.js +3562 -3536
  168. package/designer/data-grid/index.umd.cjs +6 -6
  169. package/designer/data-view/index.esm.js +3 -3
  170. package/designer/data-view/index.umd.cjs +3 -3
  171. package/designer/farris-designer.all.esm.js +4203 -4193
  172. package/designer/farris-designer.all.umd.cjs +9 -9
  173. package/designer/input-group/index.esm.js +97 -97
  174. package/designer/input-group/index.umd.cjs +1 -1
  175. package/designer/list-view/index.esm.js +1868 -1854
  176. package/designer/list-view/index.umd.cjs +8 -8
  177. package/designer/radio-group/index.esm.js +954 -949
  178. package/designer/radio-group/index.umd.cjs +1 -1
  179. package/farris.all.esm.js +16195 -16126
  180. package/farris.all.umd.cjs +30 -30
  181. package/locales/data-grid/ui/en.json +2 -2
  182. package/locales/designer/en.json +7 -6
  183. package/locales/designer/zh-CHS.json +2 -1
  184. package/locales/designer/zh-CHT.json +2 -1
  185. package/locales/ui/en.json +7 -6
  186. package/locales/ui/zh-CHS.json +2 -1
  187. package/locales/ui/zh-CHT.json +2 -1
  188. package/package.json +1 -1
  189. package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
  190. package/types/data-view/composition/types.d.ts +10 -4
  191. package/types/lookup/src/composition/use-dialog.d.ts +2 -0
  192. package/types/lookup/src/composition/use-input-change.d.ts +1 -0
@@ -1,11 +1,11 @@
1
- import { ref as w, computed as L, defineComponent as J, onMounted as Q, watch as pe, createVNode as X, inject as me } from "vue";
2
- import { isPlainObject as C, cloneDeep as H } from "lodash-es";
3
- import { useNumberFormat as de, useTimeAgo as ve, useDateFormat as ge } from "../common/index.esm.js";
1
+ import { ref as w, computed as C, defineComponent as J, onMounted as Q, watch as pe, createVNode as X, inject as me } from "vue";
2
+ import { cloneDeep as _, isPlainObject as H } from "lodash-es";
3
+ import { useTimeAgo as de, useDateFormat as ve, useNumberFormat as ge } from "../common/index.esm.js";
4
4
  import { getSchemaByTypeForDesigner as be } from "../dynamic-resolver/index.esm.js";
5
5
  function Z(e, t) {
6
6
  let r;
7
7
  function c(o) {
8
- const { properties: s, title: d, ignore: i } = o, a = i && Array.isArray(i), n = Object.keys(s).reduce((m, S) => ((!a || !i.find((N) => N === S)) && (m[S] = s[S].type === "object" && s[S].properties ? c(s[S]) : H(s[S].default)), m), {});
8
+ const { properties: l, title: d, ignore: i } = o, a = i && Array.isArray(i), n = Object.keys(l).reduce((m, S) => ((!a || !i.find((N) => N === S)) && (m[S] = l[S].type === "object" && l[S].properties ? c(l[S]) : _(l[S].default)), m), {});
9
9
  if (d && (!a || !i.find((m) => m === "id"))) {
10
10
  const m = d.toLowerCase().replace(/-/g, "_");
11
11
  n.id = `${m}_${Math.random().toString().slice(2, 6)}`;
@@ -13,9 +13,9 @@ function Z(e, t) {
13
13
  return n;
14
14
  }
15
15
  function v(o) {
16
- const { properties: s, title: d, required: i } = o;
16
+ const { properties: l, title: d, required: i } = o;
17
17
  if (i && Array.isArray(i)) {
18
- const a = i.reduce((n, m) => (n[m] = s[m].type === "object" && s[m].properties ? c(s[m]) : H(s[m].default), n), {});
18
+ const a = i.reduce((n, m) => (n[m] = l[m].type === "object" && l[m].properties ? c(l[m]) : _(l[m].default), n), {});
19
19
  if (d && i.find((n) => n === "id")) {
20
20
  const n = d.toLowerCase().replace(/-/g, "_");
21
21
  a.id = `${n}_${Math.random().toString().slice(2, 6)}`;
@@ -26,23 +26,23 @@ function Z(e, t) {
26
26
  type: d
27
27
  };
28
28
  }
29
- function T(o, s = {}, d) {
29
+ function T(o, l = {}, d) {
30
30
  const i = e[o];
31
31
  if (i) {
32
32
  let a = v(i);
33
33
  const n = t[o];
34
- return a = n ? n({ getSchemaByType: T }, a, s, d) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
34
+ return a = n ? n({ getSchemaByType: T }, a, l, d) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
35
35
  }
36
36
  return null;
37
37
  }
38
- function b(o, s) {
39
- const d = c(s);
40
- return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(o, a) && (i[a] && C(i[a]) && C(o[a] || !o[a]) ? Object.assign(i[a], o[a] || {}) : i[a] = o[a]), i), d), d;
38
+ function b(o, l) {
39
+ const d = c(l);
40
+ return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(o, a) && (i[a] && H(i[a]) && H(o[a] || !o[a]) ? Object.assign(i[a], o[a] || {}) : i[a] = o[a]), i), d), d;
41
41
  }
42
- function h(o, s) {
42
+ function h(o, l) {
43
43
  return Object.keys(o).filter((i) => o[i] != null).reduce((i, a) => {
44
- if (s.has(a)) {
45
- const n = s.get(a);
44
+ if (l.has(a)) {
45
+ const n = l.get(a);
46
46
  if (typeof n == "string")
47
47
  i[n] = o[a];
48
48
  else {
@@ -54,15 +54,15 @@ function Z(e, t) {
54
54
  return i;
55
55
  }, {});
56
56
  }
57
- function D(o, s, d = /* @__PURE__ */ new Map()) {
58
- const i = b(o, s);
57
+ function D(o, l, d = /* @__PURE__ */ new Map()) {
58
+ const i = b(o, l);
59
59
  return h(i, d);
60
60
  }
61
- function l(o) {
61
+ function s(o) {
62
62
  var d;
63
- const s = o.type;
64
- if (s) {
65
- const i = e[s];
63
+ const l = o.type;
64
+ if (l) {
65
+ const i = e[l];
66
66
  if (!i)
67
67
  return o;
68
68
  const a = b(o, i), n = ((d = o.editor) == null ? void 0 : d.type) || "";
@@ -77,60 +77,60 @@ function Z(e, t) {
77
77
  function u(o) {
78
78
  r = o;
79
79
  }
80
- return { getSchemaByType: T, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: D, mappingSchemaToProps: h, setDesignerContext: u };
80
+ return { getSchemaByType: T, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: D, mappingSchemaToProps: h, setDesignerContext: u };
81
81
  }
82
- const K = {}, I = {}, { resolveSchemaWithDefaultValue: ye, resolveSchemaToProps: he, mappingSchemaToProps: Se } = Z(K, I);
82
+ const K = {}, I = {}, { getSchemaByType: Tt, resolveSchemaWithDefaultValue: ye, resolveSchemaToProps: he, mappingSchemaToProps: Se, setDesignerContext: Ft } = Z(K, I);
83
83
  function Te(e = {}) {
84
- function t(l, u, o, s) {
84
+ function t(s, u, o, l) {
85
85
  if (typeof o == "number")
86
- return s[l].length === o;
86
+ return l[s].length === o;
87
87
  if (typeof o == "object") {
88
88
  const d = Object.keys(o)[0], i = o[d];
89
89
  if (d === "not")
90
- return Number(s[l].length) !== Number(i);
90
+ return Number(l[s].length) !== Number(i);
91
91
  if (d === "moreThan")
92
- return Number(s[l].length) >= Number(i);
92
+ return Number(l[s].length) >= Number(i);
93
93
  if (d === "lessThan")
94
- return Number(s[l].length) <= Number(i);
94
+ return Number(l[s].length) <= Number(i);
95
95
  }
96
96
  return !1;
97
97
  }
98
- function r(l, u, o, s) {
99
- return s[l] && s[l].propertyValue && String(s[l].propertyValue.value) === String(o);
98
+ function r(s, u, o, l) {
99
+ return l[s] && l[s].propertyValue && String(l[s].propertyValue.value) === String(o);
100
100
  }
101
101
  const c = /* @__PURE__ */ new Map([
102
102
  ["length", t],
103
103
  ["getProperty", r]
104
104
  ]);
105
- Object.keys(e).reduce((l, u) => (l.set(u, e[u]), l), c);
106
- function v(l, u) {
107
- const o = l;
108
- return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: l, value: !!u }] : typeof u == "object" ? Object.keys(u).map((s) => {
109
- if (s === "length")
110
- return { target: o, operator: "length", param: null, value: u[s] };
111
- const d = s, i = u[s];
105
+ Object.keys(e).reduce((s, u) => (s.set(u, e[u]), s), c);
106
+ function v(s, u) {
107
+ const o = s;
108
+ return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!u }] : typeof u == "object" ? Object.keys(u).map((l) => {
109
+ if (l === "length")
110
+ return { target: o, operator: "length", param: null, value: u[l] };
111
+ const d = l, i = u[l];
112
112
  return { target: o, operator: "getProperty", param: d, value: i };
113
113
  }) : [];
114
114
  }
115
- function T(l) {
116
- return Object.keys(l).reduce((o, s) => {
117
- const d = v(s, l[s]);
115
+ function T(s) {
116
+ return Object.keys(s).reduce((o, l) => {
117
+ const d = v(l, s[l]);
118
118
  return o.push(...d), o;
119
119
  }, []);
120
120
  }
121
- function b(l, u) {
122
- if (c.has(l.operator)) {
123
- const o = c.get(l.operator);
124
- return o && o(l.target, l.param, l.value, u) || !1;
121
+ function b(s, u) {
122
+ if (c.has(s.operator)) {
123
+ const o = c.get(s.operator);
124
+ return o && o(s.target, s.param, s.value, u) || !1;
125
125
  }
126
126
  return !1;
127
127
  }
128
- function h(l, u) {
129
- return T(l).reduce((d, i) => d && b(i, u), !0);
128
+ function h(s, u) {
129
+ return T(s).reduce((d, i) => d && b(i, u), !0);
130
130
  }
131
- function D(l, u) {
132
- const o = Object.keys(l), s = o.includes("allOf"), d = o.includes("anyOf"), i = s || d, m = (i ? l[i ? s ? "allOf" : "anyOf" : "allOf"] : [l]).map((N) => h(N, u));
133
- return s ? !m.includes(!1) : m.includes(!0);
131
+ function D(s, u) {
132
+ const o = Object.keys(s), l = o.includes("allOf"), d = o.includes("anyOf"), i = l || d, m = (i ? s[i ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((N) => h(N, u));
133
+ return l ? !m.includes(!1) : m.includes(!0);
134
134
  }
135
135
  return { parseValueSchema: D };
136
136
  }
@@ -304,12 +304,12 @@ const Fe = {
304
304
  e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = c.bindingField, e.binding.field = c.id, e.binding.fullPath = c.path, e.path = c.bindingPath;
305
305
  }
306
306
  }
307
- }, Re = {
307
+ }, Be = {
308
308
  convertTo: (e, t, r, c) => {
309
309
  e.pagination || (e.pagination = {}), e.pagination[t] = r;
310
310
  },
311
311
  convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
312
- }, Be = {
312
+ }, Re = {
313
313
  convertTo: (e, t, r, c) => {
314
314
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
315
315
  },
@@ -334,12 +334,12 @@ const Fe = {
334
334
  e.size || (e.size = {}), e.size[t] = r;
335
335
  },
336
336
  convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
337
- }, Le = {
337
+ }, Ce = {
338
338
  convertFrom: (e, t, r) => {
339
339
  var c, v;
340
340
  return (c = e.formatter) != null && c.data && t === "formatterEnumData" && !e.formatterEnumData ? (v = e.formatter) == null ? void 0 : v.data : e.formatterEnumData;
341
341
  }
342
- }, We = {
342
+ }, Le = {
343
343
  convertTo: (e, t, r, c) => {
344
344
  e.sort || (e.sort = {}), e.sort[t] = r;
345
345
  },
@@ -350,7 +350,7 @@ const Fe = {
350
350
  if (t === "multiSort")
351
351
  return !!((v = e.sort) != null && v.multiSort);
352
352
  }
353
- }, Ue = {
353
+ }, We = {
354
354
  convertTo: (e, t, r, c) => {
355
355
  e.filter || (e.filter = {}), e.filter[t] = r;
356
356
  },
@@ -359,7 +359,7 @@ const Fe = {
359
359
  if (t === "mode")
360
360
  return ((c = e.filter) == null ? void 0 : c.mode) || "client";
361
361
  }
362
- }, Ye = {
362
+ }, Ue = {
363
363
  convertTo: (e, t, r, c) => {
364
364
  e.rowOption ? e.rowOption[t] = r : e.rowOption = {
365
365
  [t]: r
@@ -390,14 +390,14 @@ function te(e, t, r) {
390
390
  ["/converter/group.converter", ke],
391
391
  ["/converter/form-group-label.converter", ze],
392
392
  ["/converter/field-selector.converter", $e],
393
- ["/converter/pagination.converter", Re],
394
- ["/converter/row-number.converter", Be],
393
+ ["/converter/pagination.converter", Be],
394
+ ["/converter/row-number.converter", Re],
395
395
  ["/converter/grid-selection.converter", xe],
396
396
  ["/converter/size.converter", qe],
397
- ["/converter/change-formatter-enum.converter", Le],
398
- ["/converter/grid-sort.converter", We],
399
- ["/converter/grid-filter.converter", Ue],
400
- ["/converter/row-option.converter", Ye]
397
+ ["/converter/change-formatter-enum.converter", Ce],
398
+ ["/converter/grid-sort.converter", Le],
399
+ ["/converter/grid-filter.converter", We],
400
+ ["/converter/row-option.converter", Ue]
401
401
  ]), v = /* @__PURE__ */ new Map([
402
402
  ["string", { type: "input-group", enableClear: !1 }],
403
403
  ["boolean", {
@@ -432,20 +432,20 @@ function te(e, t, r) {
432
432
  function D(i, a, n) {
433
433
  return i.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : b(a.readonly, n) : () => !1;
434
434
  }
435
- function l(i, a) {
435
+ function s(i, a) {
436
436
  const n = i.$converter || a;
437
437
  return typeof n == "string" && n && c.has(n) ? c.get(n) || null : n || null;
438
438
  }
439
439
  function u(i, a, n, m, S, N = "", E = "") {
440
440
  return Object.keys(i).map((O) => {
441
- const R = w(1), B = O, p = i[O], k = Object.keys(p), z = p.title, f = p.type, y = v.get(f) || { type: "input-group", enableClear: !1 }, g = p.editor ? Object.assign({}, y, p.editor) : Object.assign({}, y), F = h(k, p, a), P = D(k, p, a);
441
+ const B = w(1), R = O, p = i[O], k = Object.keys(p), z = p.title, f = p.type, y = v.get(f) || { type: "input-group", enableClear: !1 }, g = p.editor ? Object.assign({}, y, p.editor) : Object.assign({}, y), F = h(k, p, a), P = D(k, p, a);
442
442
  g.readonly = g.readonly === void 0 ? P() : g.readonly;
443
443
  const $ = p.type === "cascade" ? u(p.properties, a, n, m, S, N, E) : [], q = !0;
444
- let j = l(p, E);
445
- const x = L({
444
+ let j = s(p, E);
445
+ const x = C({
446
446
  get() {
447
- if (R.value) {
448
- if (["class", "style"].find((fe) => fe === B) && !j && (j = c.get("/converter/appearance.converter") || null), j && j.convertFrom)
447
+ if (B.value) {
448
+ if (["class", "style"].find((fe) => fe === R) && !j && (j = c.get("/converter/appearance.converter") || null), j && j.convertFrom)
449
449
  return j.convertFrom(n, O, S, N);
450
450
  const A = n[O];
451
451
  return Object.prototype.hasOwnProperty.call(p, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? p.type === "boolean" ? p.defaultValue : p.defaultValue || "" : A;
@@ -453,27 +453,27 @@ function te(e, t, r) {
453
453
  return null;
454
454
  },
455
455
  set(A) {
456
- R.value += 1, j && j.convertTo ? (j.convertTo(m, O, A, S, N), j.convertTo(n, O, A, S, N)) : (m[O] = A, n[O] = A);
456
+ B.value += 1, j && j.convertTo ? (j.convertTo(m, O, A, S, N), j.convertTo(n, O, A, S, N)) : (m[O] = A, n[O] = A);
457
457
  }
458
- }), { refreshPanelAfterChanged: W, description: le, isExpand: se, parentPropertyID: ue } = p, _ = { propertyID: B, propertyName: z, propertyType: f, propertyValue: x, editor: g, visible: F, readonly: P, cascadeConfig: $, hideCascadeTitle: q, refreshPanelAfterChanged: W, description: le, isExpand: se, parentPropertyID: ue };
459
- return a[B] = _, _;
458
+ }), { refreshPanelAfterChanged: L, description: se, isExpand: le, parentPropertyID: ue } = p, Y = { propertyID: R, propertyName: z, propertyType: f, propertyValue: x, editor: g, visible: F, readonly: P, cascadeConfig: $, hideCascadeTitle: q, refreshPanelAfterChanged: L, description: se, isExpand: le, parentPropertyID: ue };
459
+ return a[R] = Y, Y;
460
460
  });
461
461
  }
462
462
  function o(i, a, n = {}) {
463
463
  const m = {}, S = e[i];
464
464
  return S && S.categories ? Object.keys(S.categories).map((E) => {
465
- const M = S.categories[E], O = M == null ? void 0 : M.title, R = u(M.properties || {}, m, {}, n, a);
466
- return { categoryId: E, categoryName: O, properties: R };
465
+ const M = S.categories[E], O = M == null ? void 0 : M.title, B = u(M.properties || {}, m, {}, n, a);
466
+ return { categoryId: E, categoryName: O, properties: B };
467
467
  }) : [];
468
468
  }
469
- function s(i, a, n, m, S = "") {
470
- const N = a.$ref.schema, E = a.$ref.converter, M = n[N], O = M.type, R = r(M), B = {}, p = e[O];
469
+ function l(i, a, n, m, S = "") {
470
+ const N = a.$ref.schema, E = a.$ref.converter, M = n[N], O = M.type, B = r(M), R = {}, p = e[O];
471
471
  if (p && p.categories) {
472
472
  const k = p.categories[i], z = k == null ? void 0 : k.title;
473
473
  E && Object.keys(k.properties).forEach((g) => {
474
474
  k.properties[g].$converter = E;
475
475
  });
476
- const f = (k == null ? void 0 : k.properties) || {}, y = u(f, B, R, M, m, S);
476
+ const f = (k == null ? void 0 : k.properties) || {}, y = u(f, R, B, M, m, S);
477
477
  return { categoryId: i, categoryName: z, properties: y };
478
478
  }
479
479
  return { categoryId: i, categoryName: "", properties: [] };
@@ -482,16 +482,16 @@ function te(e, t, r) {
482
482
  const N = i.type, E = r(i), M = {};
483
483
  let O = S || e[N];
484
484
  if (O && Object.keys(O).length === 0 && n && n.getPropConfig && (O = n.getPropConfig(m)), O && O.categories) {
485
- const R = [];
486
- return Object.keys(O.categories).map((B) => {
487
- const p = O.categories[B];
485
+ const B = [];
486
+ return Object.keys(O.categories).map((R) => {
487
+ const p = O.categories[R];
488
488
  if (p.$ref) {
489
- R.push(s(B, p, i, a, m));
489
+ B.push(l(R, p, i, a, m));
490
490
  return;
491
491
  }
492
492
  const k = p == null ? void 0 : p.title, z = p == null ? void 0 : p.tabId, f = p == null ? void 0 : p.tabName, y = p == null ? void 0 : p.hide, g = p == null ? void 0 : p.hideTitle, F = u(p.properties || {}, M, E, i, a, m, p.$converter), { setPropertyRelates: P } = p, $ = p == null ? void 0 : p.parentPropertyID;
493
- R.push({ categoryId: B, categoryName: k, tabId: z, tabName: f, hide: y, properties: F, hideTitle: g, setPropertyRelates: P, parentPropertyID: $ });
494
- }), R;
493
+ B.push({ categoryId: R, categoryName: k, tabId: z, tabName: f, hide: y, properties: F, hideTitle: g, setPropertyRelates: P, parentPropertyID: $ });
494
+ }), B;
495
495
  }
496
496
  return [];
497
497
  }
@@ -503,14 +503,14 @@ function te(e, t, r) {
503
503
  }
504
504
  const re = {}, ne = {};
505
505
  te(re, ne, ye);
506
- const oe = {}, ie = {}, { resolveSchemaWithDefaultValue: _e } = Z(oe, ie), ae = {}, ce = {};
507
- te(ae, ce, _e);
508
- function Ce(e, t, r = /* @__PURE__ */ new Map(), c = (b, h, D, l) => h, v = {}, T = (b) => b) {
506
+ const oe = {}, ie = {}, { getSchemaByType: Dt, resolveSchemaWithDefaultValue: Ye, resolveSchemaToProps: Ot, mappingSchemaToProps: Pt, setDesignerContext: wt } = Z(oe, ie), ae = {}, ce = {};
507
+ te(ae, ce, Ye);
508
+ function _e(e, t, r = /* @__PURE__ */ new Map(), c = (b, h, D, s) => h, v = {}, T = (b) => b) {
509
509
  return K[t.title] = t, I[t.title] = c, re[t.title] = v, ne[t.title] = T, oe[t.title] = t, ie[t.title] = c, ae[t.title] = v, ce[t.title] = T, (b = {}, h = !0) => {
510
510
  if (!h)
511
511
  return Se(b, r);
512
- const D = he(b, t, r), l = Object.keys(e).reduce((u, o) => (u[o] = e[o].default, u), {});
513
- return Object.assign(l, D);
512
+ const D = he(b, t, r), s = Object.keys(e).reduce((u, o) => (u[o] = e[o].default, u), {});
513
+ return Object.assign(s, D);
514
514
  };
515
515
  }
516
516
  function He(e, t) {
@@ -622,7 +622,7 @@ const Je = "text", Qe = "A Farris Component", Xe = "object", Ze = {
622
622
  type: nt,
623
623
  properties: ot,
624
624
  required: it
625
- }, Y = {
625
+ }, U = {
626
626
  // 组件值
627
627
  modelValue: { type: [String, Number, Boolean], default: "" },
628
628
  // 是否是密码
@@ -663,18 +663,18 @@ const Je = "text", Qe = "A Farris Component", Xe = "object", Ze = {
663
663
  dateRangeDelimiter: { type: String, default: "~" },
664
664
  // 枚举项的分隔符
665
665
  enumDelimiter: { type: String, default: "," }
666
- }, V = Ce(Y, at, Ve, Ge, Ke);
666
+ }, V = _e(U, at, Ve, Ge, Ke);
667
667
  function ct(e) {
668
668
  let t;
669
669
  return /Y/g.test(e) === !0 ? t = e.replace(/Y/g, "y") : t = e, /D/g.test(t) === !0 && (t = t.replace(/D/g, "d")), t;
670
670
  }
671
- function lt(e, t, r, c, v) {
671
+ function st(e, t, r, c, v) {
672
672
  if (e == null || e === "")
673
673
  return "";
674
674
  if (t && t.length) {
675
675
  const T = ("" + e).split(r), b = [];
676
676
  for (let h = 0; h < T.length; h++) {
677
- const D = t.find((l) => l[v] === T[h]);
677
+ const D = t.find((s) => s[v] === T[h]);
678
678
  D ? b.push(D[c]) : b.push(T[h]);
679
679
  }
680
680
  return b.length > 0 ? b.join(r) : "";
@@ -683,9 +683,9 @@ function lt(e, t, r, c, v) {
683
683
  }
684
684
  function G(e, t) {
685
685
  let r;
686
- return t || (t = "YYYY-MM-DD"), t === "timeago" ? ve().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? r = e : r = ge().formatTo(e, ct(t)), r);
686
+ return t || (t = "YYYY-MM-DD"), t === "timeago" ? de().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? r = e : r = ve().formatTo(e, ct(t)), r);
687
687
  }
688
- function st(e, t) {
688
+ function lt(e, t) {
689
689
  return !e && !t || t && t.type && t.type === "number" && (t.formatter || (t.useThousands ? t.precision !== void 0 ? e = "n" + t.precision : e = "n2" : t.precision !== void 0 ? e = "f" + t.precision : e = "f2")), e;
690
690
  }
691
691
  function ut(e) {
@@ -702,24 +702,24 @@ function mt(e, t, r, c, v, T, b) {
702
702
  return e.toString();
703
703
  if (r && r.type && r.type === "number" && r.formatter)
704
704
  return r.formatter(e);
705
- const h = ut(t.substring(0, 1)), D = Number(t.substring(1)), l = {};
705
+ const h = ut(t.substring(0, 1)), D = Number(t.substring(1)), s = {};
706
706
  let u;
707
707
  if (!/C|D|F|N|P/g.test(h))
708
708
  return;
709
- c && Object.assign(l, { groupSeparator: c }), v && Object.assign(l, { decimalSeparator: v }), T && Object.assign(l, { format: T });
710
- const { formatTo: o } = de();
709
+ c && Object.assign(s, { groupSeparator: c }), v && Object.assign(s, { decimalSeparator: v }), T && Object.assign(s, { format: T });
710
+ const { formatTo: o } = ge();
711
711
  switch (h) {
712
712
  case "C":
713
- Object.assign(l, { prefix: "¥", precision: D }), u = o(e, l);
713
+ Object.assign(s, { prefix: "¥", precision: D }), u = o(e, s);
714
714
  break;
715
715
  case "D":
716
716
  u = ft(e, D, b);
717
717
  break;
718
718
  case "F":
719
- Object.assign(l, { prefix: "", groupSeparator: "", precision: D }), u = o(e, l);
719
+ Object.assign(s, { prefix: "", groupSeparator: "", precision: D }), u = o(e, s);
720
720
  break;
721
721
  case "N":
722
- Object.assign(l, { prefix: "", precision: D }), u = o(e, l);
722
+ Object.assign(s, { prefix: "", precision: D }), u = o(e, s);
723
723
  break;
724
724
  case "P":
725
725
  u = pt(e, D);
@@ -730,16 +730,16 @@ function mt(e, t, r, c, v, T, b) {
730
730
  function dt(e) {
731
731
  return e === !0 ? "是" : e === !1 || e == null || e === "" || typeof e > "u" ? "否" : e;
732
732
  }
733
- const U = /* @__PURE__ */ J({
733
+ const W = /* @__PURE__ */ J({
734
734
  name: "FText",
735
- props: Y,
735
+ props: U,
736
736
  emits: ["update:modelValue", "valueChange"],
737
737
  setup(e, t) {
738
- const r = w(e.textarea), c = w(e.password), v = w(e.autoSize), T = w(e.dateRange), b = w(e.type), h = w(e.format), D = w(), l = w(), u = w(""), o = L(() => ({
738
+ const r = w(e.textarea), c = w(e.password), v = w(e.autoSize), T = w(e.dateRange), b = w(e.type), h = w(e.format), D = w(), s = w(), u = w(""), o = C(() => ({
739
739
  "f-form-control-text": !r.value,
740
740
  "f-form-context-textarea": r,
741
741
  "f-component-text-auto-size": v.value
742
- })), s = L(() => ({
742
+ })), l = C(() => ({
743
743
  "text-align": e.textAlign,
744
744
  height: !v.value && e.height > 0 ? `${e.height}px` : "",
745
745
  "min-height": v.value && e.height > 0 ? `${e.height}px` : "",
@@ -747,8 +747,8 @@ const U = /* @__PURE__ */ J({
747
747
  }));
748
748
  Q(() => {
749
749
  if (r.value) {
750
- const n = l.value.parentElement.className;
751
- l.value.parentElement.className = n + " f-cmp-text-is-textarea";
750
+ const n = s.value.parentElement.className;
751
+ s.value.parentElement.className = n + " f-cmp-text-is-textarea";
752
752
  }
753
753
  });
754
754
  function d(n) {
@@ -773,10 +773,10 @@ const U = /* @__PURE__ */ J({
773
773
  }
774
774
  break;
775
775
  case "number":
776
- h.value = st(h.value, e.numberOptions), m = mt(n, h.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
776
+ h.value = lt(h.value, e.numberOptions), m = mt(n, h.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
777
777
  break;
778
778
  case "enum":
779
- m = lt(n, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
779
+ m = st(n, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
780
780
  break;
781
781
  case "boolean":
782
782
  m = dt(n);
@@ -784,20 +784,20 @@ const U = /* @__PURE__ */ J({
784
784
  }
785
785
  return m;
786
786
  }
787
- const i = L(() => {
787
+ const i = C(() => {
788
788
  const n = d(e.modelValue);
789
789
  return D.value !== n && (t.emit("valueChange", n), D.value = n), n;
790
790
  });
791
791
  function a() {
792
- const n = l.value;
792
+ const n = s.value;
793
793
  Math.abs(n.scrollWidth - n.clientWidth) > 2 || Math.abs(n.scrollHeight - n.clientHeight) > 2 ? u.value = i.value : u.value = "";
794
794
  }
795
795
  return pe(() => e.modelValue, (n, m) => {
796
796
  n !== m && t.emit("update:modelValue", n);
797
797
  }), () => X("span", {
798
798
  class: o.value,
799
- style: s.value,
800
- ref: l,
799
+ style: l.value,
800
+ ref: s,
801
801
  onMouseenter: () => a(),
802
802
  title: u.value
803
803
  }, [i.value]);
@@ -813,7 +813,7 @@ function vt(e, t, r) {
813
813
  function D() {
814
814
  return !1;
815
815
  }
816
- function l() {
816
+ function s() {
817
817
  return (t == null ? void 0 : t.schema.componentType) !== "frame";
818
818
  }
819
819
  function u() {
@@ -827,16 +827,16 @@ function vt(e, t, r) {
827
827
  const y = w(f == null ? void 0 : f.value.parent), g = o(y);
828
828
  return g || null;
829
829
  }
830
- function s(f = t) {
830
+ function l(f = t) {
831
831
  var P;
832
832
  const { componentInstance: y, designerItemElementRef: g } = f;
833
833
  if (!y || !y.value)
834
834
  return null;
835
835
  const { getCustomButtons: F } = y.value;
836
- return y.value.canMove || F && ((P = F()) != null && P.length) ? g : s(f.parent);
836
+ return y.value.canMove || F && ((P = F()) != null && P.length) ? g : l(f.parent);
837
837
  }
838
838
  function d(f) {
839
- return !1;
839
+ return !!r;
840
840
  }
841
841
  function i() {
842
842
  return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
@@ -883,17 +883,17 @@ function vt(e, t, r) {
883
883
  });
884
884
  });
885
885
  }
886
- function R() {
886
+ function B() {
887
887
  }
888
- function B(f) {
888
+ function R(f) {
889
889
  var g, F;
890
890
  if (!((g = t == null ? void 0 : t.schema) != null && g.id))
891
891
  return;
892
892
  !b && f && (b = f.formSchemaUtils);
893
893
  let y = "";
894
894
  {
895
- const { text: P, title: $, label: q, mainTitle: j, name: x, type: W } = t.schema;
896
- y = P || $ || q || j || x || ((F = ee[W]) == null ? void 0 : F.name);
895
+ const { text: P, title: $, label: q, mainTitle: j, name: x, type: L } = t.schema;
896
+ y = P || $ || q || j || x || ((F = ee[L]) == null ? void 0 : F.name);
897
897
  }
898
898
  y && b.getControlBasicInfoMap().set(t.schema.id, {
899
899
  componentTitle: y,
@@ -903,10 +903,10 @@ function vt(e, t, r) {
903
903
  function p(f) {
904
904
  var P;
905
905
  const { changeObject: y } = f, { propertyID: g, propertyValue: F } = y;
906
- if (["text", "title", "label", "name", "mainTitle"].includes((P = f == null ? void 0 : f.changeObject) == null ? void 0 : P.propertyID) && g && F && (B(), b)) {
906
+ if (["text", "title", "label", "name", "mainTitle"].includes((P = f == null ? void 0 : f.changeObject) == null ? void 0 : P.propertyID) && g && F && (R(), b)) {
907
907
  const $ = b.getControlBasicInfoMap(), q = $.keys().toArray().filter((j) => {
908
- var x, W;
909
- return ((x = $.get(j)) == null ? void 0 : x.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
908
+ var x, L;
909
+ return ((x = $.get(j)) == null ? void 0 : x.reliedComponentId) === ((L = t == null ? void 0 : t.schema) == null ? void 0 : L.id);
910
910
  });
911
911
  q != null && q.length && q.forEach((j) => {
912
912
  const x = $.get(j).parentPathName.split(" > ");
@@ -920,7 +920,7 @@ function vt(e, t, r) {
920
920
  return T.value = {
921
921
  canMove: h(),
922
922
  canSelectParent: D(),
923
- canDelete: l(),
923
+ canDelete: s(),
924
924
  canNested: !u(),
925
925
  contents: t == null ? void 0 : t.schema.contents,
926
926
  elementRef: e,
@@ -930,7 +930,7 @@ function vt(e, t, r) {
930
930
  designerClass: v,
931
931
  canAccepts: d,
932
932
  getBelongedComponentInstance: o,
933
- getDraggableDesignItemElement: s,
933
+ getDraggableDesignItemElement: l,
934
934
  getDraggingDisplayText: i,
935
935
  getPropConfig: N,
936
936
  getDragScopeElement: a,
@@ -940,51 +940,51 @@ function vt(e, t, r) {
940
940
  triggerBelongedComponentToMoveWhenMoved: w(!1),
941
941
  triggerBelongedComponentToDeleteWhenDeleted: w(!1),
942
942
  onRemoveComponent: O,
943
- getCustomButtons: R,
943
+ getCustomButtons: B,
944
944
  onPropertyChanged: k,
945
- setComponentBasicInfoMap: B,
945
+ setComponentBasicInfoMap: R,
946
946
  updateContextSchema: t == null ? void 0 : t.updateContextSchema
947
947
  }, T;
948
948
  }
949
949
  const gt = /* @__PURE__ */ J({
950
950
  name: "FTextDesign",
951
- props: Y,
951
+ props: U,
952
952
  emits: ["update:modelValue"],
953
953
  setup(e, t) {
954
- const r = w(!0), c = w(!0), v = w(""), T = w(0), b = w(0), h = w(e.modelValue), D = L(() => ({
954
+ const r = w(!0), c = w(!0), v = w(""), T = w(0), b = w(0), h = w(e.modelValue), D = C(() => ({
955
955
  "f-form-control-text": !r.value,
956
956
  "f-form-context-textarea": r,
957
957
  "f-component-text-auto-size": c.value
958
- })), l = L(() => ({
958
+ })), s = C(() => ({
959
959
  textalign: v.value,
960
960
  height: !c.value && T.value > 0 ? `${T.value}px` : "",
961
961
  "min-height": !c.value && T.value > 0 ? `${T.value}px` : "",
962
962
  "max-height": !c.value && b.value > 0 ? `${b.value}px` : ""
963
963
  }));
964
- L(() => "");
965
- const u = w(), o = me("design-item-context"), s = vt(u, o);
964
+ C(() => "");
965
+ const u = w(), o = me("design-item-context"), l = vt(u, o);
966
966
  return Q(() => {
967
- u.value.componentInstance = s;
968
- }), t.expose(s.value), () => X("span", {
967
+ u.value.componentInstance = l;
968
+ }), t.expose(l.value), () => X("span", {
969
969
  ref: u,
970
970
  class: D.value,
971
- style: l.value
971
+ style: s.value
972
972
  }, [h.value]);
973
973
  }
974
- }), Tt = {
974
+ }), Nt = {
975
975
  install(e) {
976
- e.component(U.name, U);
976
+ e.component(W.name, W);
977
977
  },
978
978
  register(e, t, r, c) {
979
- e.text = U, t.text = V;
979
+ e.text = W, t.text = V;
980
980
  },
981
981
  registerDesigner(e, t, r) {
982
982
  e.text = gt, t.text = V;
983
983
  }
984
984
  };
985
985
  export {
986
- U as FText,
987
- Tt as default,
986
+ W as FText,
987
+ Nt as default,
988
988
  V as propsResolver,
989
- Y as textProps
989
+ U as textProps
990
990
  };