@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,12 +1,12 @@
1
- import { defineComponent as A, ref as k, inject as z, onMounted as G, createVNode as S, computed as q, toRefs as oe, watch as W } from "vue";
1
+ import { defineComponent as A, ref as D, inject as z, onMounted as G, createVNode as S, computed as q, toRefs as oe, watch as W } from "vue";
2
2
  import { useDesignerComponent as ie } from "../designer-canvas/index.esm.js";
3
3
  import { InputBaseProperty as ae } from "../property-panel/index.esm.js";
4
- import le from "../button-edit/index.esm.js";
5
- import { createPropsResolver as se } from "../dynamic-resolver/index.esm.js";
6
- import { isPlainObject as _, cloneDeep as U } from "lodash-es";
4
+ import se from "../button-edit/index.esm.js";
5
+ import { createPropsResolver as le } from "../dynamic-resolver/index.esm.js";
6
+ import { cloneDeep as _, isPlainObject as U } from "lodash-es";
7
7
  import { FInputGroup as ue } from "../input-group/index.esm.js";
8
8
  import { useI18n as ce } from "vue-i18n";
9
- class fe extends ae {
9
+ class pe extends ae {
10
10
  constructor(t, n) {
11
11
  super(t, n);
12
12
  }
@@ -26,10 +26,10 @@ class fe extends ae {
26
26
  });
27
27
  }
28
28
  }
29
- function pe(e, t) {
29
+ function fe(e, t) {
30
30
  function n(a, g) {
31
31
  const y = e.schema;
32
- return new fe(a, t).getPropertyConfig(y, g);
32
+ return new pe(a, t).getPropertyConfig(y, g);
33
33
  }
34
34
  return { getPropsConfig: n };
35
35
  }
@@ -42,7 +42,7 @@ const de = /* @__PURE__ */ A({
42
42
  }
43
43
  },
44
44
  setup(e, t) {
45
- const n = k(), a = z("design-item-context"), g = z("designer-host-service"), y = pe(a, g), c = ie(n, a, y);
45
+ const n = D(), a = z("design-item-context"), g = z("designer-host-service"), y = fe(a, g), c = ie(n, a, y);
46
46
  return G(() => {
47
47
  n.value.componentInstance = c;
48
48
  }), t.expose(c.value), () => S("div", {
@@ -67,18 +67,18 @@ const de = /* @__PURE__ */ A({
67
67
  });
68
68
  function H(e, t) {
69
69
  let n;
70
- function a(l) {
71
- const { properties: s, title: d, ignore: o } = l, i = o && Array.isArray(o), r = Object.keys(s).reduce((f, v) => ((!i || !o.find((x) => x === v)) && (f[v] = s[v].type === "object" && s[v].properties ? a(s[v]) : U(s[v].default)), f), {});
72
- if (d && (!i || !o.find((f) => f === "id"))) {
73
- const f = d.toLowerCase().replace(/-/g, "_");
74
- r.id = `${f}_${Math.random().toString().slice(2, 6)}`;
70
+ function a(s) {
71
+ const { properties: l, title: d, ignore: o } = s, i = o && Array.isArray(o), r = Object.keys(l).reduce((p, v) => ((!i || !o.find((x) => x === v)) && (p[v] = l[v].type === "object" && l[v].properties ? a(l[v]) : _(l[v].default)), p), {});
72
+ if (d && (!i || !o.find((p) => p === "id"))) {
73
+ const p = d.toLowerCase().replace(/-/g, "_");
74
+ r.id = `${p}_${Math.random().toString().slice(2, 6)}`;
75
75
  }
76
76
  return r;
77
77
  }
78
- function g(l) {
79
- const { properties: s, title: d, required: o } = l;
78
+ function g(s) {
79
+ const { properties: l, title: d, required: o } = s;
80
80
  if (o && Array.isArray(o)) {
81
- const i = o.reduce((r, f) => (r[f] = s[f].type === "object" && s[f].properties ? a(s[f]) : U(s[f].default), r), {});
81
+ const i = o.reduce((r, p) => (r[p] = l[p].type === "object" && l[p].properties ? a(l[p]) : _(l[p].default), r), {});
82
82
  if (d && o.find((r) => r === "id")) {
83
83
  const r = d.toLowerCase().replace(/-/g, "_");
84
84
  i.id = `${r}_${Math.random().toString().slice(2, 6)}`;
@@ -89,111 +89,111 @@ function H(e, t) {
89
89
  type: d
90
90
  };
91
91
  }
92
- function y(l, s = {}, d) {
93
- const o = e[l];
92
+ function y(s, l = {}, d) {
93
+ const o = e[s];
94
94
  if (o) {
95
95
  let i = g(o);
96
- const r = t[l];
97
- return i = r ? r({ getSchemaByType: y }, i, s, d) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
96
+ const r = t[s];
97
+ return i = r ? r({ getSchemaByType: y }, i, l, d) : i, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(i), i;
98
98
  }
99
99
  return null;
100
100
  }
101
- function c(l, s) {
102
- const d = a(s);
103
- return Object.keys(d).reduce((o, i) => (Object.prototype.hasOwnProperty.call(l, i) && (o[i] && _(o[i]) && _(l[i] || !l[i]) ? Object.assign(o[i], l[i] || {}) : o[i] = l[i]), o), d), d;
101
+ function c(s, l) {
102
+ const d = a(l);
103
+ return Object.keys(d).reduce((o, i) => (Object.prototype.hasOwnProperty.call(s, i) && (o[i] && U(o[i]) && U(s[i] || !s[i]) ? Object.assign(o[i], s[i] || {}) : o[i] = s[i]), o), d), d;
104
104
  }
105
- function F(l, s) {
106
- return Object.keys(l).filter((o) => l[o] != null).reduce((o, i) => {
107
- if (s.has(i)) {
108
- const r = s.get(i);
105
+ function F(s, l) {
106
+ return Object.keys(s).filter((o) => s[o] != null).reduce((o, i) => {
107
+ if (l.has(i)) {
108
+ const r = l.get(i);
109
109
  if (typeof r == "string")
110
- o[r] = l[i];
110
+ o[r] = s[i];
111
111
  else {
112
- const f = r(i, l[i], l);
113
- Object.assign(o, f);
112
+ const p = r(i, s[i], s);
113
+ Object.assign(o, p);
114
114
  }
115
115
  } else
116
- o[i] = l[i];
116
+ o[i] = s[i];
117
117
  return o;
118
118
  }, {});
119
119
  }
120
- function E(l, s, d = /* @__PURE__ */ new Map()) {
121
- const o = c(l, s);
120
+ function E(s, l, d = /* @__PURE__ */ new Map()) {
121
+ const o = c(s, l);
122
122
  return F(o, d);
123
123
  }
124
- function p(l) {
124
+ function f(s) {
125
125
  var d;
126
- const s = l.type;
127
- if (s) {
128
- const o = e[s];
126
+ const l = s.type;
127
+ if (l) {
128
+ const o = e[l];
129
129
  if (!o)
130
- return l;
131
- const i = c(l, o), r = ((d = l.editor) == null ? void 0 : d.type) || "";
130
+ return s;
131
+ const i = c(s, o), r = ((d = s.editor) == null ? void 0 : d.type) || "";
132
132
  if (r) {
133
- const f = e[r], v = c(l.editor, f);
133
+ const p = e[r], v = c(s.editor, p);
134
134
  i.editor = v;
135
135
  }
136
136
  return i;
137
137
  }
138
- return l;
138
+ return s;
139
139
  }
140
- function m(l) {
141
- n = l;
140
+ function m(s) {
141
+ n = s;
142
142
  }
143
- return { getSchemaByType: y, resolveSchemaWithDefaultValue: p, resolveSchemaToProps: E, mappingSchemaToProps: F, setDesignerContext: m };
143
+ return { getSchemaByType: y, resolveSchemaWithDefaultValue: f, resolveSchemaToProps: E, mappingSchemaToProps: F, setDesignerContext: m };
144
144
  }
145
- const me = {}, ge = {}, { resolveSchemaWithDefaultValue: ve } = H(me, ge);
145
+ const me = {}, ge = {}, { getSchemaByType: mt, resolveSchemaWithDefaultValue: ve, resolveSchemaToProps: gt, mappingSchemaToProps: vt, setDesignerContext: bt } = H(me, ge);
146
146
  function be(e = {}) {
147
- function t(p, m, l, s) {
148
- if (typeof l == "number")
149
- return s[p].length === l;
150
- if (typeof l == "object") {
151
- const d = Object.keys(l)[0], o = l[d];
147
+ function t(f, m, s, l) {
148
+ if (typeof s == "number")
149
+ return l[f].length === s;
150
+ if (typeof s == "object") {
151
+ const d = Object.keys(s)[0], o = s[d];
152
152
  if (d === "not")
153
- return Number(s[p].length) !== Number(o);
153
+ return Number(l[f].length) !== Number(o);
154
154
  if (d === "moreThan")
155
- return Number(s[p].length) >= Number(o);
155
+ return Number(l[f].length) >= Number(o);
156
156
  if (d === "lessThan")
157
- return Number(s[p].length) <= Number(o);
157
+ return Number(l[f].length) <= Number(o);
158
158
  }
159
159
  return !1;
160
160
  }
161
- function n(p, m, l, s) {
162
- return s[p] && s[p].propertyValue && String(s[p].propertyValue.value) === String(l);
161
+ function n(f, m, s, l) {
162
+ return l[f] && l[f].propertyValue && String(l[f].propertyValue.value) === String(s);
163
163
  }
164
164
  const a = /* @__PURE__ */ new Map([
165
165
  ["length", t],
166
166
  ["getProperty", n]
167
167
  ]);
168
- Object.keys(e).reduce((p, m) => (p.set(m, e[m]), p), a);
169
- function g(p, m) {
170
- const l = p;
171
- return typeof m == "number" ? [{ target: l, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!m }] : typeof m == "object" ? Object.keys(m).map((s) => {
172
- if (s === "length")
173
- return { target: l, operator: "length", param: null, value: m[s] };
174
- const d = s, o = m[s];
175
- return { target: l, operator: "getProperty", param: d, value: o };
168
+ Object.keys(e).reduce((f, m) => (f.set(m, e[m]), f), a);
169
+ function g(f, m) {
170
+ const s = f;
171
+ return typeof m == "number" ? [{ target: s, operator: "length", param: null, value: Number(m) }] : typeof m == "boolean" ? [{ target: s, operator: "getProperty", param: f, value: !!m }] : typeof m == "object" ? Object.keys(m).map((l) => {
172
+ if (l === "length")
173
+ return { target: s, operator: "length", param: null, value: m[l] };
174
+ const d = l, o = m[l];
175
+ return { target: s, operator: "getProperty", param: d, value: o };
176
176
  }) : [];
177
177
  }
178
- function y(p) {
179
- return Object.keys(p).reduce((l, s) => {
180
- const d = g(s, p[s]);
181
- return l.push(...d), l;
178
+ function y(f) {
179
+ return Object.keys(f).reduce((s, l) => {
180
+ const d = g(l, f[l]);
181
+ return s.push(...d), s;
182
182
  }, []);
183
183
  }
184
- function c(p, m) {
185
- if (a.has(p.operator)) {
186
- const l = a.get(p.operator);
187
- return l && l(p.target, p.param, p.value, m) || !1;
184
+ function c(f, m) {
185
+ if (a.has(f.operator)) {
186
+ const s = a.get(f.operator);
187
+ return s && s(f.target, f.param, f.value, m) || !1;
188
188
  }
189
189
  return !1;
190
190
  }
191
- function F(p, m) {
192
- return y(p).reduce((d, o) => d && c(o, m), !0);
191
+ function F(f, m) {
192
+ return y(f).reduce((d, o) => d && c(o, m), !0);
193
193
  }
194
- function E(p, m) {
195
- const l = Object.keys(p), s = l.includes("allOf"), d = l.includes("anyOf"), o = s || d, f = (o ? p[o ? s ? "allOf" : "anyOf" : "allOf"] : [p]).map((x) => F(x, m));
196
- return s ? !f.includes(!1) : f.includes(!0);
194
+ function E(f, m) {
195
+ const s = Object.keys(f), l = s.includes("allOf"), d = s.includes("anyOf"), o = l || d, p = (o ? f[o ? l ? "allOf" : "anyOf" : "allOf"] : [f]).map((x) => F(x, m));
196
+ return l ? !p.includes(!1) : p.includes(!0);
197
197
  }
198
198
  return { parseValueSchema: E };
199
199
  }
@@ -209,7 +209,7 @@ const ye = {
209
209
  e.editor && (e.editor[t] = n);
210
210
  },
211
211
  convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
212
- }, Ce = {
212
+ }, he = {
213
213
  button: { type: "button", name: "按钮" },
214
214
  "response-toolbar": { type: "response-toolbar", name: "工具栏" },
215
215
  "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
@@ -256,13 +256,13 @@ const ye = {
256
256
  "list-view": { type: "list-view", name: "列表" },
257
257
  "filter-bar": { type: "filter-bar", name: "筛选条" },
258
258
  "language-textbox": { type: "language-textbox", name: "多语输入框" }
259
- }, he = {
259
+ }, Te = {
260
260
  convertFrom: (e, t, n) => {
261
261
  var g;
262
262
  const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
263
- return ((g = Ce[a]) == null ? void 0 : g.name) || a;
263
+ return ((g = he[a]) == null ? void 0 : g.name) || a;
264
264
  }
265
- }, Te = {
265
+ }, Ce = {
266
266
  convertTo: (e, t, n, a) => {
267
267
  e[t] = e[t];
268
268
  },
@@ -316,7 +316,7 @@ const ye = {
316
316
  ]));
317
317
  },
318
318
  convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
319
- }, we = {
319
+ }, Pe = {
320
320
  convertTo: (e, t, n, a) => {
321
321
  e.column ? e.column[t] = n : e.column = {
322
322
  [t]: n
@@ -331,7 +331,7 @@ const ye = {
331
331
  }
332
332
  return "";
333
333
  }
334
- }, Pe = {
334
+ }, we = {
335
335
  convertTo: (e, t, n, a) => {
336
336
  e.summary ? e.summary[t] = n : e.summary = {
337
337
  [t]: n
@@ -372,12 +372,12 @@ const ye = {
372
372
  e.pagination || (e.pagination = {}), e.pagination[t] = n;
373
373
  },
374
374
  convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
375
- }, ke = {
375
+ }, De = {
376
376
  convertTo: (e, t, n, a) => {
377
377
  e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n;
378
378
  },
379
379
  convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t]
380
- }, De = {
380
+ }, ke = {
381
381
  convertTo: (e, t, n, a) => {
382
382
  e.selection || (e.selection = {}), e.selection[t] = n;
383
383
  },
@@ -444,18 +444,18 @@ function J(e, t, n) {
444
444
  ["/converter/buttons.converter", xe],
445
445
  ["/converter/property-editor.converter", Se],
446
446
  ["/converter/items-count.converter", Re],
447
- ["/converter/type.converter", he],
448
- ["/converter/change-editor.converter", Te],
447
+ ["/converter/type.converter", Te],
448
+ ["/converter/change-editor.converter", Ce],
449
449
  ["/converter/change-formatter.converter", Fe],
450
450
  ["/converter/column-command.converter", Oe],
451
- ["/converter/column-option.converter", we],
452
- ["/converter/summary.converter", Pe],
451
+ ["/converter/column-option.converter", Pe],
452
+ ["/converter/summary.converter", we],
453
453
  ["/converter/group.converter", je],
454
454
  ["/converter/form-group-label.converter", Me],
455
455
  ["/converter/field-selector.converter", Ee],
456
456
  ["/converter/pagination.converter", Le],
457
- ["/converter/row-number.converter", ke],
458
- ["/converter/grid-selection.converter", De],
457
+ ["/converter/row-number.converter", De],
458
+ ["/converter/grid-selection.converter", ke],
459
459
  ["/converter/size.converter", Ne],
460
460
  ["/converter/change-formatter-enum.converter", Be],
461
461
  ["/converter/grid-sort.converter", $e],
@@ -495,78 +495,78 @@ function J(e, t, n) {
495
495
  function E(o, i, r) {
496
496
  return o.includes("readonly") && i.readonly !== void 0 ? typeof i.readonly == "boolean" ? () => !!i.readonly : c(i.readonly, r) : () => !1;
497
497
  }
498
- function p(o, i) {
498
+ function f(o, i) {
499
499
  const r = o.$converter || i;
500
500
  return typeof r == "string" && r && a.has(r) ? a.get(r) || null : r || null;
501
501
  }
502
- function m(o, i, r, f, v, x = "", T = "") {
502
+ function m(o, i, r, p, v, x = "", C = "") {
503
503
  return Object.keys(o).map((b) => {
504
- const O = k(1), w = b, u = o[b], h = Object.keys(u), N = u.title, D = u.type, R = g.get(D) || { type: "input-group", enableClear: !1 }, L = u.editor ? Object.assign({}, R, u.editor) : Object.assign({}, R), $ = F(h, u, i), B = E(h, u, i);
504
+ const O = D(1), P = b, u = o[b], T = Object.keys(u), N = u.title, k = u.type, R = g.get(k) || { type: "input-group", enableClear: !1 }, L = u.editor ? Object.assign({}, R, u.editor) : Object.assign({}, R), $ = F(T, u, i), B = E(T, u, i);
505
505
  L.readonly = L.readonly === void 0 ? B() : L.readonly;
506
- const I = u.type === "cascade" ? m(u.properties, i, r, f, v, x, T) : [], Y = !0;
507
- let P = p(u, T);
506
+ const I = u.type === "cascade" ? m(u.properties, i, r, p, v, x, C) : [], Y = !0;
507
+ let w = f(u, C);
508
508
  const Z = q({
509
509
  get() {
510
510
  if (O.value) {
511
- if (["class", "style"].find((re) => re === w) && !P && (P = a.get("/converter/appearance.converter") || null), P && P.convertFrom)
512
- return P.convertFrom(r, b, v, x);
511
+ if (["class", "style"].find((re) => re === P) && !w && (w = a.get("/converter/appearance.converter") || null), w && w.convertFrom)
512
+ return w.convertFrom(r, b, v, x);
513
513
  const j = r[b];
514
514
  return Object.prototype.hasOwnProperty.call(u, "defaultValue") && (j === void 0 || typeof j == "string" && j === "") ? u.type === "boolean" ? u.defaultValue : u.defaultValue || "" : j;
515
515
  }
516
516
  return null;
517
517
  },
518
518
  set(j) {
519
- O.value += 1, P && P.convertTo ? (P.convertTo(f, b, j, v, x), P.convertTo(r, b, j, v, x)) : (f[b] = j, r[b] = j);
519
+ O.value += 1, w && w.convertTo ? (w.convertTo(p, b, j, v, x), w.convertTo(r, b, j, v, x)) : (p[b] = j, r[b] = j);
520
520
  }
521
- }), { refreshPanelAfterChanged: K, description: ee, isExpand: te, parentPropertyID: ne } = u, V = { propertyID: w, propertyName: N, propertyType: D, propertyValue: Z, editor: L, visible: $, readonly: B, cascadeConfig: I, hideCascadeTitle: Y, refreshPanelAfterChanged: K, description: ee, isExpand: te, parentPropertyID: ne };
522
- return i[w] = V, V;
521
+ }), { refreshPanelAfterChanged: K, description: ee, isExpand: te, parentPropertyID: ne } = u, V = { propertyID: P, propertyName: N, propertyType: k, propertyValue: Z, editor: L, visible: $, readonly: B, cascadeConfig: I, hideCascadeTitle: Y, refreshPanelAfterChanged: K, description: ee, isExpand: te, parentPropertyID: ne };
522
+ return i[P] = V, V;
523
523
  });
524
524
  }
525
- function l(o, i, r = {}) {
526
- const f = {}, v = e[o];
527
- return v && v.categories ? Object.keys(v.categories).map((T) => {
528
- const C = v.categories[T], b = C == null ? void 0 : C.title, O = m(C.properties || {}, f, {}, r, i);
529
- return { categoryId: T, categoryName: b, properties: O };
525
+ function s(o, i, r = {}) {
526
+ const p = {}, v = e[o];
527
+ return v && v.categories ? Object.keys(v.categories).map((C) => {
528
+ const h = v.categories[C], b = h == null ? void 0 : h.title, O = m(h.properties || {}, p, {}, r, i);
529
+ return { categoryId: C, categoryName: b, properties: O };
530
530
  }) : [];
531
531
  }
532
- function s(o, i, r, f, v = "") {
533
- const x = i.$ref.schema, T = i.$ref.converter, C = r[x], b = C.type, O = n(C), w = {}, u = e[b];
532
+ function l(o, i, r, p, v = "") {
533
+ const x = i.$ref.schema, C = i.$ref.converter, h = r[x], b = h.type, O = n(h), P = {}, u = e[b];
534
534
  if (u && u.categories) {
535
- const h = u.categories[o], N = h == null ? void 0 : h.title;
536
- T && Object.keys(h.properties).forEach((L) => {
537
- h.properties[L].$converter = T;
535
+ const T = u.categories[o], N = T == null ? void 0 : T.title;
536
+ C && Object.keys(T.properties).forEach((L) => {
537
+ T.properties[L].$converter = C;
538
538
  });
539
- const D = (h == null ? void 0 : h.properties) || {}, R = m(D, w, O, C, f, v);
539
+ const k = (T == null ? void 0 : T.properties) || {}, R = m(k, P, O, h, p, v);
540
540
  return { categoryId: o, categoryName: N, properties: R };
541
541
  }
542
542
  return { categoryId: o, categoryName: "", properties: [] };
543
543
  }
544
- function d(o, i, r, f, v) {
545
- const x = o.type, T = n(o), C = {};
544
+ function d(o, i, r, p, v) {
545
+ const x = o.type, C = n(o), h = {};
546
546
  let b = v || e[x];
547
- if (b && Object.keys(b).length === 0 && r && r.getPropConfig && (b = r.getPropConfig(f)), b && b.categories) {
547
+ if (b && Object.keys(b).length === 0 && r && r.getPropConfig && (b = r.getPropConfig(p)), b && b.categories) {
548
548
  const O = [];
549
- return Object.keys(b.categories).map((w) => {
550
- const u = b.categories[w];
549
+ return Object.keys(b.categories).map((P) => {
550
+ const u = b.categories[P];
551
551
  if (u.$ref) {
552
- O.push(s(w, u, o, i, f));
552
+ O.push(l(P, u, o, i, p));
553
553
  return;
554
554
  }
555
- const h = u == null ? void 0 : u.title, N = u == null ? void 0 : u.tabId, D = u == null ? void 0 : u.tabName, R = u == null ? void 0 : u.hide, L = u == null ? void 0 : u.hideTitle, $ = m(u.properties || {}, C, T, o, i, f, u.$converter), { setPropertyRelates: B } = u, I = u == null ? void 0 : u.parentPropertyID;
556
- O.push({ categoryId: w, categoryName: h, tabId: N, tabName: D, hide: R, properties: $, hideTitle: L, setPropertyRelates: B, parentPropertyID: I });
555
+ const T = u == null ? void 0 : u.title, N = u == null ? void 0 : u.tabId, k = u == null ? void 0 : u.tabName, R = u == null ? void 0 : u.hide, L = u == null ? void 0 : u.hideTitle, $ = m(u.properties || {}, h, C, o, i, p, u.$converter), { setPropertyRelates: B } = u, I = u == null ? void 0 : u.parentPropertyID;
556
+ O.push({ categoryId: P, categoryName: T, tabId: N, tabName: k, hide: R, properties: $, hideTitle: L, setPropertyRelates: B, parentPropertyID: I });
557
557
  }), O;
558
558
  }
559
559
  return [];
560
560
  }
561
561
  return {
562
562
  getPropertyConfigBySchema: d,
563
- getPropertyConfigByType: l,
563
+ getPropertyConfigByType: s,
564
564
  propertyConverterMap: a
565
565
  };
566
566
  }
567
567
  const Ae = {}, Ge = {};
568
568
  J(Ae, Ge, ve);
569
- const Ve = {}, ze = {}, { resolveSchemaWithDefaultValue: We } = H(Ve, ze), _e = {}, Ue = {};
569
+ const Ve = {}, ze = {}, { getSchemaByType: yt, resolveSchemaWithDefaultValue: We, resolveSchemaToProps: xt, mappingSchemaToProps: St, setDesignerContext: ht } = H(Ve, ze), _e = {}, Ue = {};
570
570
  J(_e, Ue, We);
571
571
  function He(e, t) {
572
572
  return { customClass: t.class, customStyle: t.style };
@@ -718,7 +718,7 @@ const Q = {
718
718
  tabIndex: { type: Number, default: -1 },
719
719
  enableTitle: { type: Boolean, default: !0 },
720
720
  maxLength: { type: Number, default: null }
721
- }, X = se(Q, rt, Je, ot), it = /* @__PURE__ */ A({
721
+ }, X = le(Q, rt, Je, ot), it = /* @__PURE__ */ A({
722
722
  name: "LanguageContents",
723
723
  props: {
724
724
  languages: {
@@ -740,7 +740,7 @@ const Q = {
740
740
  },
741
741
  emits: ["update:modelValue"],
742
742
  setup(e, t) {
743
- const n = k(e.languages), a = k(e.modelValue || {}), g = k();
743
+ const n = D(e.languages), a = D(e.modelValue || {}), g = D();
744
744
  return G(() => {
745
745
  setTimeout(() => {
746
746
  var y, c;
@@ -792,37 +792,37 @@ const Q = {
792
792
  } = oe(e), F = q(() => {
793
793
  var r;
794
794
  return (r = c.value) == null ? void 0 : r[n.value];
795
- }), E = k();
795
+ }), E = D();
796
796
  W(() => e.modelValue, (r) => {
797
797
  c.value = r;
798
798
  });
799
- const p = (r) => {
799
+ const f = (r) => {
800
800
  if ((r == null ? void 0 : r.length) <= 1)
801
801
  return;
802
- let f = -1;
803
- const v = r.find((x, T) => {
804
- const C = x.code === n.value;
805
- return C && (f = T), C;
802
+ let p = -1;
803
+ const v = r.find((x, C) => {
804
+ const h = x.code === n.value;
805
+ return h && (p = C), h;
806
806
  });
807
807
  if (v) {
808
808
  const x = Object.assign({}, v);
809
- r.splice(f, 1), r.unshift(x);
809
+ r.splice(p, 1), r.unshift(x);
810
810
  }
811
811
  return r;
812
- }, m = k();
812
+ }, m = D();
813
813
  W(() => e.languages, (r) => {
814
- m.value = p(r) || [];
814
+ m.value = f(r) || [];
815
815
  });
816
- function l(r) {
816
+ function s(r) {
817
817
  c.value = c.value || {}, c.value[n.value] !== r && (c.value[n.value] = r, t.emit("update:modelValue", c.value));
818
818
  }
819
- const s = q(() => {
820
- var f;
821
- const r = (f = E.value) == null ? void 0 : f.popoverRef;
819
+ const l = q(() => {
820
+ var p;
821
+ const r = (p = E.value) == null ? void 0 : p.popoverRef;
822
822
  return r && m.value.length > 1 ? r.shown : !1;
823
823
  });
824
824
  G(() => {
825
- m.value = p(e.languages) || [];
825
+ m.value = f(e.languages) || [];
826
826
  });
827
827
  const d = (r) => {
828
828
  c.value = r, t.emit("update:modelValue", c.value);
@@ -832,7 +832,7 @@ const Q = {
832
832
  }, i = () => {
833
833
  c.value = c.value || {}, c.value[n.value] && (c.value[n.value] = "", t.emit("update:modelValue", c.value));
834
834
  };
835
- return () => S(le, {
835
+ return () => S(se, {
836
836
  ref: E,
837
837
  id: e.id,
838
838
  forcePlaceholder: !1,
@@ -849,14 +849,14 @@ const Q = {
849
849
  popupOnClick: !0,
850
850
  modelValue: F.value,
851
851
  "onUpdate:modelValue": (r) => F.value = r,
852
- onChange: l,
852
+ onChange: s,
853
853
  placement: "auto",
854
854
  popupMinWidth: 365,
855
855
  maxLength: e.maxLength,
856
856
  beforeOpen: o,
857
857
  onClear: i
858
858
  }, {
859
- default: () => [s.value && S(it, {
859
+ default: () => [l.value && S(it, {
860
860
  id: e.id,
861
861
  languages: m.value,
862
862
  modelValue: c.value,