@farris/ui-vue 1.3.4 → 1.3.6

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 (145) hide show
  1. package/components/accordion/index.esm.js +16 -16
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +65 -65
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.esm.js +13 -13
  6. package/components/button-edit/index.umd.cjs +1 -1
  7. package/components/calendar/index.esm.js +504 -490
  8. package/components/calendar/index.umd.cjs +1 -1
  9. package/components/capsule/index.esm.js +247 -233
  10. package/components/capsule/index.umd.cjs +1 -1
  11. package/components/checkbox/index.esm.js +356 -344
  12. package/components/checkbox/index.umd.cjs +1 -1
  13. package/components/color-picker/index.esm.js +159 -145
  14. package/components/color-picker/index.umd.cjs +2 -2
  15. package/components/combo-list/index.esm.js +127 -128
  16. package/components/combo-list/index.umd.cjs +1 -1
  17. package/components/combo-tree/index.esm.js +15 -15
  18. package/components/combo-tree/index.umd.cjs +1 -1
  19. package/components/component/index.esm.js +101 -87
  20. package/components/component/index.umd.cjs +1 -1
  21. package/components/condition/index.esm.js +9 -7
  22. package/components/condition/index.umd.cjs +1 -1
  23. package/components/content-container/index.esm.js +181 -167
  24. package/components/content-container/index.umd.cjs +1 -1
  25. package/components/data-grid/index.esm.js +746 -730
  26. package/components/data-grid/index.umd.cjs +1 -1
  27. package/components/data-view/index.esm.js +9 -7
  28. package/components/data-view/index.umd.cjs +1 -1
  29. package/components/date-picker/index.esm.js +789 -777
  30. package/components/date-picker/index.umd.cjs +1 -1
  31. package/components/designer-canvas/index.esm.js +3096 -3069
  32. package/components/designer-canvas/index.umd.cjs +1 -1
  33. package/components/dropdown/index.esm.js +257 -243
  34. package/components/dropdown/index.umd.cjs +2 -2
  35. package/components/dynamic-form/index.esm.js +322 -306
  36. package/components/dynamic-form/index.umd.cjs +1 -1
  37. package/components/dynamic-resolver/index.esm.js +177 -163
  38. package/components/dynamic-resolver/index.umd.cjs +1 -1
  39. package/components/event-parameter/index.esm.js +78 -82
  40. package/components/event-parameter/index.umd.cjs +1 -1
  41. package/components/events-editor/index.esm.js +501 -487
  42. package/components/events-editor/index.umd.cjs +1 -1
  43. package/components/expression-editor/index.esm.js +37 -37
  44. package/components/expression-editor/index.umd.cjs +1 -1
  45. package/components/external-container/index.esm.js +487 -472
  46. package/components/external-container/index.umd.cjs +1 -1
  47. package/components/field-selector/index.esm.js +440 -433
  48. package/components/field-selector/index.umd.cjs +1 -1
  49. package/components/filter-bar/index.esm.js +594 -587
  50. package/components/filter-bar/index.umd.cjs +1 -1
  51. package/components/flow-canvas/index.esm.js +2766 -2739
  52. package/components/flow-canvas/index.umd.cjs +1 -1
  53. package/components/image-cropper/index.esm.js +402 -388
  54. package/components/image-cropper/index.umd.cjs +1 -1
  55. package/components/input-group/index.esm.js +201 -202
  56. package/components/input-group/index.umd.cjs +1 -1
  57. package/components/layout/index.esm.js +264 -245
  58. package/components/layout/index.umd.cjs +1 -1
  59. package/components/list-nav/index.esm.js +157 -143
  60. package/components/list-nav/index.umd.cjs +1 -1
  61. package/components/list-view/index.esm.js +314 -298
  62. package/components/list-view/index.umd.cjs +1 -1
  63. package/components/lookup/index.esm.js +862 -843
  64. package/components/lookup/index.umd.cjs +1 -1
  65. package/components/mapping-editor/index.esm.js +1031 -1015
  66. package/components/mapping-editor/index.umd.cjs +1 -1
  67. package/components/nav/index.esm.js +169 -155
  68. package/components/nav/index.umd.cjs +2 -2
  69. package/components/number-range/index.esm.js +150 -137
  70. package/components/number-range/index.umd.cjs +1 -1
  71. package/components/number-spinner/index.esm.js +207 -194
  72. package/components/number-spinner/index.umd.cjs +1 -1
  73. package/components/order/index.esm.js +427 -414
  74. package/components/order/index.umd.cjs +1 -1
  75. package/components/page-footer/index.esm.js +22 -22
  76. package/components/page-footer/index.umd.cjs +1 -1
  77. package/components/page-header/index.esm.js +510 -492
  78. package/components/page-header/index.umd.cjs +1 -1
  79. package/components/pagination/index.esm.js +192 -178
  80. package/components/pagination/index.umd.cjs +1 -1
  81. package/components/progress/index.esm.js +234 -220
  82. package/components/progress/index.umd.cjs +3 -3
  83. package/components/property-editor/index.esm.js +288 -277
  84. package/components/property-editor/index.umd.cjs +2 -2
  85. package/components/property-panel/index.esm.js +62 -61
  86. package/components/property-panel/index.umd.cjs +1 -1
  87. package/components/query-solution/index.esm.js +776 -770
  88. package/components/query-solution/index.umd.cjs +6 -6
  89. package/components/radio-button/index.esm.js +64 -64
  90. package/components/radio-button/index.umd.cjs +1 -1
  91. package/components/radio-group/index.esm.js +296 -283
  92. package/components/radio-group/index.umd.cjs +1 -1
  93. package/components/rate/index.esm.js +222 -208
  94. package/components/rate/index.umd.cjs +1 -1
  95. package/components/response-layout/index.esm.js +187 -173
  96. package/components/response-layout/index.umd.cjs +1 -1
  97. package/components/response-layout-editor/index.esm.js +554 -542
  98. package/components/response-layout-editor/index.umd.cjs +1 -1
  99. package/components/response-toolbar/index.esm.js +483 -469
  100. package/components/response-toolbar/index.umd.cjs +1 -1
  101. package/components/schema-selector/index.esm.js +634 -619
  102. package/components/schema-selector/index.umd.cjs +2 -2
  103. package/components/search-box/index.esm.js +228 -214
  104. package/components/search-box/index.umd.cjs +1 -1
  105. package/components/section/index.esm.js +419 -406
  106. package/components/section/index.umd.cjs +1 -1
  107. package/components/smoke-detector/index.esm.js +162 -148
  108. package/components/smoke-detector/index.umd.cjs +1 -1
  109. package/components/splitter/index.esm.js +308 -284
  110. package/components/splitter/index.umd.cjs +1 -1
  111. package/components/step/index.esm.js +279 -265
  112. package/components/step/index.umd.cjs +1 -1
  113. package/components/switch/index.esm.js +183 -170
  114. package/components/switch/index.umd.cjs +1 -1
  115. package/components/tabs/index.esm.js +307 -294
  116. package/components/tabs/index.umd.cjs +1 -1
  117. package/components/tags/index.esm.js +320 -306
  118. package/components/tags/index.umd.cjs +1 -1
  119. package/components/text/index.esm.js +245 -231
  120. package/components/text/index.umd.cjs +1 -1
  121. package/components/textarea/index.esm.js +260 -247
  122. package/components/textarea/index.umd.cjs +1 -1
  123. package/components/time-picker/index.esm.js +409 -396
  124. package/components/time-picker/index.umd.cjs +1 -1
  125. package/components/transfer/index.esm.js +424 -410
  126. package/components/transfer/index.umd.cjs +1 -1
  127. package/components/tree-grid/index.esm.js +383 -376
  128. package/components/tree-grid/index.umd.cjs +1 -1
  129. package/components/tree-view/index.esm.js +595 -575
  130. package/components/tree-view/index.umd.cjs +1 -1
  131. package/components/uploader/index.esm.js +325 -311
  132. package/components/uploader/index.umd.cjs +2 -2
  133. package/components/verify-detail/index.esm.js +304 -290
  134. package/components/verify-detail/index.umd.cjs +1 -1
  135. package/components/video/index.esm.js +99 -85
  136. package/components/video/index.umd.cjs +1 -1
  137. package/components/weather/index.esm.js +947 -933
  138. package/components/weather/index.umd.cjs +4 -4
  139. package/farris.all.esm.js +5492 -5470
  140. package/farris.all.umd.cjs +13 -13
  141. package/index.css +1 -1
  142. package/package.json +1 -1
  143. package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
  144. package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
  145. package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
@@ -1,101 +1,115 @@
1
- var Q = Object.defineProperty;
2
- var _ = (n, t, e) => t in n ? Q(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
- var b = (n, t, e) => _(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as G, ref as B, computed as I, onMounted as q, createVNode as E, withDirectives as J, vModelText as Y, inject as U } from "vue";
5
- import { isPlainObject as $, cloneDeep as W } from "lodash-es";
6
- import { useTextBox as Z, useClear as K, withInstall as R } from "../common/index.esm.js";
7
- import { DgControl as x } from "../designer-canvas/index.esm.js";
8
- const O = {}, j = {};
9
- function A(n) {
10
- const { properties: t, title: e, ignore: a } = n, o = a && Array.isArray(a), l = Object.keys(t).reduce((s, y) => ((!o || !a.find((f) => f === y)) && (s[y] = t[y].type === "object" && t[y].properties ? A(t[y]) : W(t[y].default)), s), {});
11
- if (e && (!o || !a.find((s) => s === "id"))) {
12
- const s = e.toLowerCase().replace(/-/g, "_");
13
- l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
14
- }
15
- return l;
1
+ var H = Object.defineProperty;
2
+ var Q = (n, t, e) => t in n ? H(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var b = (n, t, e) => Q(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { defineComponent as q, ref as P, computed as L, onMounted as O, createVNode as E, withDirectives as J, vModelText as Y, inject as U } from "vue";
5
+ import { isPlainObject as x, cloneDeep as A } from "lodash-es";
6
+ import { useTextBox as Z, useClear as R, withInstall as K } from "../common/index.esm.js";
7
+ import { DgControl as G } from "../designer-canvas/index.esm.js";
8
+ const W = {}, j = {};
9
+ function N(n) {
10
+ const { properties: t, title: e, ignore: o } = n, r = o && Array.isArray(o), i = Object.keys(t).reduce((l, y) => ((!r || !o.find((f) => f === y)) && (l[y] = t[y].type === "object" && t[y].properties ? N(t[y]) : A(t[y].default)), l), {});
11
+ if (e && (!r || !o.find((l) => l === "id"))) {
12
+ const l = e.toLowerCase().replace(/-/g, "_");
13
+ i.id = `${l}_${Math.random().toString().slice(2, 6)}`;
14
+ }
15
+ return i;
16
+ }
17
+ function ee(n) {
18
+ const { properties: t, title: e, required: o } = n;
19
+ if (o && Array.isArray(o)) {
20
+ const r = o.reduce((i, l) => (i[l] = t[l].type === "object" && t[l].properties ? N(t[l]) : A(t[l].default), i), {});
21
+ if (e && o.find((i) => i === "id")) {
22
+ const i = e.toLowerCase().replace(/-/g, "_");
23
+ r.id = `${i}_${Math.random().toString().slice(2, 6)}`;
24
+ }
25
+ return r;
26
+ }
27
+ return {
28
+ type: e
29
+ };
16
30
  }
17
31
  function z(n, t = {}, e) {
18
- const a = O[n];
19
- if (a) {
20
- let o = A(a);
21
- const l = j[n];
22
- return o = l ? l({ getSchemaByType: z }, o, t, e) : o, o;
32
+ const o = W[n];
33
+ if (o) {
34
+ let r = ee(o);
35
+ const i = j[n];
36
+ return r = i ? i({ getSchemaByType: z }, r, t, e) : r, r;
23
37
  }
24
38
  return null;
25
39
  }
26
- function ee(n, t) {
27
- const e = A(t);
28
- return Object.keys(e).reduce((a, o) => (a[o] && $(a[o]) && $(n[o] || !n[o]) ? Object.assign(a[o], n[o] || {}) : a[o] = n[o], a), e), e;
29
- }
30
40
  function te(n, t) {
31
- return Object.keys(n).filter((a) => n[a] != null).reduce((a, o) => {
32
- if (t.has(o)) {
33
- const l = t.get(o);
34
- if (typeof l == "string")
35
- a[l] = n[o];
41
+ const e = N(t);
42
+ return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(n, r) && (o[r] && x(o[r]) && x(n[r] || !n[r]) ? Object.assign(o[r], n[r] || {}) : o[r] = n[r]), o), e), e;
43
+ }
44
+ function ne(n, t) {
45
+ return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
46
+ if (t.has(r)) {
47
+ const i = t.get(r);
48
+ if (typeof i == "string")
49
+ o[i] = n[r];
36
50
  else {
37
- const s = l(o, n[o], n);
38
- Object.assign(a, s);
51
+ const l = i(r, n[r], n);
52
+ Object.assign(o, l);
39
53
  }
40
54
  } else
41
- a[o] = n[o];
42
- return a;
55
+ o[r] = n[r];
56
+ return o;
43
57
  }, {});
44
58
  }
45
- function ne(n, t, e = /* @__PURE__ */ new Map()) {
46
- const a = ee(n, t);
47
- return te(a, e);
59
+ function oe(n, t, e = /* @__PURE__ */ new Map()) {
60
+ const o = te(n, t);
61
+ return ne(o, e);
48
62
  }
49
- function oe(n = {}) {
50
- function t(i, c, r, p) {
51
- if (typeof r == "number")
52
- return p[i].length === r;
53
- if (typeof r == "object") {
54
- const m = Object.keys(r)[0], d = r[m];
63
+ function re(n = {}) {
64
+ function t(s, c, a, p) {
65
+ if (typeof a == "number")
66
+ return p[s].length === a;
67
+ if (typeof a == "object") {
68
+ const m = Object.keys(a)[0], d = a[m];
55
69
  if (m === "not")
56
- return Number(p[i].length) !== Number(d);
70
+ return Number(p[s].length) !== Number(d);
57
71
  if (m === "moreThan")
58
- return Number(p[i].length) >= Number(d);
72
+ return Number(p[s].length) >= Number(d);
59
73
  if (m === "lessThan")
60
- return Number(p[i].length) <= Number(d);
74
+ return Number(p[s].length) <= Number(d);
61
75
  }
62
76
  return !1;
63
77
  }
64
- function e(i, c, r, p) {
65
- return p[i] && p[i].propertyValue && String(p[i].propertyValue.value) === String(r);
78
+ function e(s, c, a, p) {
79
+ return p[s] && p[s].propertyValue && String(p[s].propertyValue.value) === String(a);
66
80
  }
67
- const a = /* @__PURE__ */ new Map([
81
+ const o = /* @__PURE__ */ new Map([
68
82
  ["length", t],
69
83
  ["getProperty", e]
70
84
  ]);
71
- Object.keys(n).reduce((i, c) => (i.set(c, n[c]), i), a);
72
- function o(i, c) {
73
- const r = i;
74
- return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
85
+ Object.keys(n).reduce((s, c) => (s.set(c, n[c]), s), o);
86
+ function r(s, c) {
87
+ const a = s;
88
+ return typeof c == "number" ? [{ target: a, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: a, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
75
89
  if (p === "length")
76
- return { target: r, operator: "length", param: null, value: c[p] };
90
+ return { target: a, operator: "length", param: null, value: c[p] };
77
91
  const m = p, d = c[p];
78
- return { target: r, operator: "getProperty", param: m, value: d };
92
+ return { target: a, operator: "getProperty", param: m, value: d };
79
93
  }) : [];
80
94
  }
81
- function l(i) {
82
- return Object.keys(i).reduce((r, p) => {
83
- const m = o(p, i[p]);
84
- return r.push(...m), r;
95
+ function i(s) {
96
+ return Object.keys(s).reduce((a, p) => {
97
+ const m = r(p, s[p]);
98
+ return a.push(...m), a;
85
99
  }, []);
86
100
  }
87
- function s(i, c) {
88
- if (a.has(i.operator)) {
89
- const r = a.get(i.operator);
90
- return r && r(i.target, i.param, i.value, c) || !1;
101
+ function l(s, c) {
102
+ if (o.has(s.operator)) {
103
+ const a = o.get(s.operator);
104
+ return a && a(s.target, s.param, s.value, c) || !1;
91
105
  }
92
106
  return !1;
93
107
  }
94
- function y(i, c) {
95
- return l(i).reduce((m, d) => m && s(d, c), !0);
108
+ function y(s, c) {
109
+ return i(s).reduce((m, d) => m && l(d, c), !0);
96
110
  }
97
- function f(i, c) {
98
- const r = Object.keys(i), p = r.includes("allOf"), m = r.includes("anyOf"), d = p || m, v = (d ? i[d ? p ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => y(k, c));
111
+ function f(s, c) {
112
+ const a = Object.keys(s), p = a.includes("allOf"), m = a.includes("anyOf"), d = p || m, v = (d ? s[d ? p ? "allOf" : "anyOf" : "allOf"] : [s]).map((k) => y(k, c));
99
113
  return p ? !v.includes(!1) : v.includes(!0);
100
114
  }
101
115
  return { parseValueSchema: f };
@@ -140,20 +154,20 @@ const u = {
140
154
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
141
155
  fieldset: { type: "fieldset", name: "分组", icon: "fieldset" },
142
156
  "query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
143
- }, re = {}, ae = {};
144
- oe();
145
- function ie(n, t, e = /* @__PURE__ */ new Map(), a = (s, y, f, i) => y, o = {}, l = (s) => s) {
146
- return O[t.title] = t, j[t.title] = a, re[t.title] = o, ae[t.title] = l, (s = {}) => {
147
- const y = ne(s, t, e), f = Object.keys(n).reduce((i, c) => (i[c] = n[c].default, i), {});
157
+ }, ae = {}, ie = {};
158
+ re();
159
+ function le(n, t, e = /* @__PURE__ */ new Map(), o = (l, y, f, s) => y, r = {}, i = (l) => l) {
160
+ return W[t.title] = t, j[t.title] = o, ae[t.title] = r, ie[t.title] = i, (l = {}) => {
161
+ const y = oe(l, t, e), f = Object.keys(n).reduce((s, c) => (s[c] = n[c].default, s), {});
148
162
  return Object.assign(f, y);
149
163
  };
150
164
  }
151
- function le(n, t) {
165
+ function se(n, t) {
152
166
  return { customClass: t.class, customStyle: t.style };
153
167
  }
154
- const se = /* @__PURE__ */ new Map([
155
- ["appearance", le]
156
- ]), ce = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/switch.schema.json", ue = "textarea", de = "A Farris Component", me = "object", ye = {
168
+ const ce = /* @__PURE__ */ new Map([
169
+ ["appearance", se]
170
+ ]), pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/switch.schema.json", de = "textarea", me = "A Farris Component", ye = "object", fe = {
157
171
  id: {
158
172
  description: "The unique identifier for a textarea",
159
173
  type: "string"
@@ -224,28 +238,27 @@ const se = /* @__PURE__ */ new Map([
224
238
  type: "boolean",
225
239
  default: !0
226
240
  }
227
- }, fe = [
228
- "id",
241
+ }, he = [
229
242
  "type"
230
- ], he = [
243
+ ], ge = [
231
244
  "id",
232
245
  "appearance",
233
246
  "binding",
234
247
  "visible"
235
- ], ge = {
236
- $schema: ce,
237
- $id: pe,
238
- title: ue,
239
- description: de,
240
- type: me,
241
- properties: ye,
242
- required: fe,
243
- ignore: he
248
+ ], be = {
249
+ $schema: pe,
250
+ $id: ue,
251
+ title: de,
252
+ description: me,
253
+ type: ye,
254
+ properties: fe,
255
+ required: he,
256
+ ignore: ge
244
257
  };
245
- function be(n, t, e) {
258
+ function ve(n, t, e) {
246
259
  return t;
247
260
  }
248
- const N = {
261
+ const $ = {
249
262
  /** 是否撑开高度 */
250
263
  autoHeight: { type: Boolean, default: !1 },
251
264
  /** 自动聚焦 */
@@ -276,37 +289,37 @@ const N = {
276
289
  showBorder: { Type: Boolean, default: !0 },
277
290
  /** 键盘按键索引 */
278
291
  tabIndex: { type: Number, default: -1 }
279
- }, X = ie(N, ge, se, be), L = /* @__PURE__ */ G({
292
+ }, X = le($, be, ce, ve), I = /* @__PURE__ */ q({
280
293
  name: "FTextarea",
281
- props: N,
294
+ props: $,
282
295
  emits: ["update:modelValue", "valueChange"],
283
296
  setup(n, t) {
284
- const e = B(), a = B(n.modelValue), o = I(() => n.modelValue), l = Z(n, t, a, o), {
285
- inputGroupClass: s,
297
+ const e = P(), o = P(n.modelValue), r = L(() => n.modelValue), i = Z(n, t, o, r), {
298
+ inputGroupClass: l,
286
299
  onBlur: y,
287
300
  onFocus: f
288
- } = l, i = K(n, t, l), {
301
+ } = i, s = R(n, t, i), {
289
302
  onMouseEnter: c,
290
- onMouseLeave: r,
303
+ onMouseLeave: a,
291
304
  clearButtonClass: p,
292
305
  shouldShowClearButton: m,
293
306
  clearButtonStyle: d
294
- } = i, g = I(() => n.maxLength ? n.maxLength : n.modelValue.length), C = (k) => {
307
+ } = s, g = L(() => n.maxLength ? n.maxLength : n.modelValue.length), C = (k) => {
295
308
  var F, h;
296
309
  k.stopPropagation(), t.emit("update:modelValue", (F = k.target) == null ? void 0 : F.value), t.emit("valueChange", (h = k.target) == null ? void 0 : h.value);
297
310
  }, v = (k) => {
298
311
  k.stopPropagation(), e.value.value = "", t.emit("update:modelValue", ""), t.emit("valueChange", "");
299
- }, M = I(() => ({
312
+ }, M = L(() => ({
300
313
  "form-control": !0,
301
314
  "h-100": n.autoHeight
302
315
  }));
303
316
  return t.expose({
304
317
  elementRef: e
305
- }), q(() => {
318
+ }), O(() => {
306
319
  }), () => E("div", {
307
- class: s.value,
320
+ class: l.value,
308
321
  onMouseenter: c,
309
- onMouseleave: r,
322
+ onMouseleave: a,
310
323
  style: "position:relative"
311
324
  }, [J(E("textarea", {
312
325
  class: M.value,
@@ -337,10 +350,10 @@ const N = {
337
350
  }, [`${n.modelValue.length}/${g.value}`])]);
338
351
  }
339
352
  });
340
- function ve(n, t, e) {
353
+ function Ce(n, t, e) {
341
354
  var F;
342
- const a = e && e.getStyles && e.getStyles() || "", o = e && e.getDesignerClass && e.getDesignerClass() || "", l = B();
343
- function s() {
355
+ const o = e && e.getStyles && e.getStyles() || "", r = e && e.getDesignerClass && e.getDesignerClass() || "", i = P();
356
+ function l() {
344
357
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
345
358
  }
346
359
  function y() {
@@ -349,7 +362,7 @@ function ve(n, t, e) {
349
362
  function f() {
350
363
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
351
364
  }
352
- function i() {
365
+ function s() {
353
366
  return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
354
367
  }
355
368
  function c(h) {
@@ -357,12 +370,12 @@ function ve(n, t, e) {
357
370
  return null;
358
371
  if (h.value.schema && h.value.schema.type === "component")
359
372
  return h.value;
360
- const w = B(h == null ? void 0 : h.value.parent), S = c(w);
373
+ const w = P(h == null ? void 0 : h.value.parent), S = c(w);
361
374
  return S || null;
362
375
  }
363
- function r(h = t) {
376
+ function a(h = t) {
364
377
  const { componentInstance: w, designerItemElementRef: S } = h;
365
- return !w || !w.value ? null : w.value.canMove ? S : r(h.parent);
378
+ return !w || !w.value ? null : w.value.canMove ? S : a(h.parent);
366
379
  }
367
380
  function p(h) {
368
381
  return !!e && e.canAccepts(h);
@@ -397,32 +410,32 @@ function ve(n, t, e) {
397
410
  (T = S == null ? void 0 : S.componentInstance) != null && T.value.onRemoveComponent && S.componentInstance.value.onRemoveComponent();
398
411
  });
399
412
  }
400
- return l.value = {
401
- canMove: s(),
413
+ return i.value = {
414
+ canMove: l(),
402
415
  canSelectParent: y(),
403
416
  canDelete: f(),
404
- canNested: !i(),
417
+ canNested: !s(),
405
418
  contents: t == null ? void 0 : t.schema.contents,
406
419
  elementRef: n,
407
420
  parent: (F = t == null ? void 0 : t.parent) == null ? void 0 : F.componentInstance,
408
421
  schema: t == null ? void 0 : t.schema,
409
- styles: a,
410
- designerClass: o,
422
+ styles: o,
423
+ designerClass: r,
411
424
  canAccepts: p,
412
425
  getBelongedComponentInstance: c,
413
- getDraggableDesignItemElement: r,
426
+ getDraggableDesignItemElement: a,
414
427
  getDraggingDisplayText: m,
415
428
  getPropConfig: M,
416
429
  getDragScopeElement: d,
417
430
  onAcceptMovedChildElement: g,
418
431
  onChildElementMovedOut: v,
419
432
  addNewChildComponentSchema: C,
420
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || B(!1),
421
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || B(!1),
433
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || P(!1),
434
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || P(!1),
422
435
  onRemoveComponent: k
423
- }, l;
436
+ }, i;
424
437
  }
425
- class Ce {
438
+ class Me {
426
439
  constructor(t, e) {
427
440
  b(this, "componentId");
428
441
  b(this, "viewModelId");
@@ -439,22 +452,22 @@ class Ce {
439
452
  type: "object",
440
453
  categories: {}
441
454
  });
442
- var a;
443
- this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((a = this.formSchemaUtils) == null ? void 0 : a.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
455
+ var o;
456
+ this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
444
457
  }
445
458
  getTableInfo() {
446
459
  var t;
447
460
  return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
448
461
  }
449
462
  setDesignViewModelField(t) {
450
- var a;
463
+ var o;
451
464
  const e = t.binding && t.binding.type === "Form" && t.binding.field;
452
465
  if (e) {
453
466
  if (!this.designViewModelField) {
454
- const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
455
- this.designViewModelField = o.fields.find((l) => l.id === e);
467
+ const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
468
+ this.designViewModelField = r.fields.find((i) => i.id === e);
456
469
  }
457
- t.updateOn = (a = this.designViewModelField) == null ? void 0 : a.updateOn;
470
+ t.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
458
471
  }
459
472
  }
460
473
  changeFieldEditorType(t, e) {
@@ -511,19 +524,19 @@ class Ce {
511
524
  * @returns
512
525
  */
513
526
  updateElementByParentContainer(t, e) {
514
- const a = e && e.parent && e.parent.schema;
515
- if (!a)
527
+ const o = e && e.parent && e.parent.schema;
528
+ if (!o)
516
529
  return;
517
- const o = a.contents.findIndex((s) => s.id === t), l = W(a.contents[o]);
518
- a.contents.splice(o, 1), a.contents.splice(o, 0, l);
530
+ const r = o.contents.findIndex((l) => l.id === t), i = A(o.contents[r]);
531
+ o.contents.splice(r, 1), o.contents.splice(r, 0, i);
519
532
  }
520
533
  }
521
- const P = class P {
534
+ const B = class B {
522
535
  /**
523
536
  * 根据绑定字段类型获取可用的输入类控件
524
537
  */
525
538
  static getEditorTypesByMDataType(t) {
526
- const e = P.fieldControlTypeMapping[t];
539
+ const e = B.fieldControlTypeMapping[t];
527
540
  return e || [{ key: "", value: "" }];
528
541
  }
529
542
  /**
@@ -531,9 +544,9 @@ const P = class P {
531
544
  */
532
545
  static getAllInputTypes() {
533
546
  const t = [];
534
- for (const e in P.fieldControlTypeMapping)
535
- P.fieldControlTypeMapping[e].forEach((a) => {
536
- t.find((o) => o.key === a.key && o.value === a.value) || t.push({ key: a.key, value: a.value });
547
+ for (const e in B.fieldControlTypeMapping)
548
+ B.fieldControlTypeMapping[e].forEach((o) => {
549
+ t.find((r) => r.key === o.key && r.value === o.value) || t.push({ key: o.key, value: o.value });
537
550
  });
538
551
  return t;
539
552
  }
@@ -541,7 +554,7 @@ const P = class P {
541
554
  /**
542
555
  * <字段类型,可配置的控件类型列表>的映射
543
556
  */
544
- b(P, "fieldControlTypeMapping", {
557
+ b(B, "fieldControlTypeMapping", {
545
558
  String: [
546
559
  { key: u["input-group"].type, value: u["input-group"].name },
547
560
  { key: u.lookup.type, value: u.lookup.name },
@@ -588,9 +601,9 @@ b(P, "fieldControlTypeMapping", {
588
601
  { key: u["radio-group"].type, value: u["radio-group"].name }
589
602
  ]
590
603
  });
591
- let V = P;
592
- const Me = B(0);
593
- class ke {
604
+ let V = B;
605
+ const ke = P(0);
606
+ class we {
594
607
  constructor() {
595
608
  /** 控件标题 */
596
609
  b(this, "label", "");
@@ -620,66 +633,66 @@ class ke {
620
633
  b(this, "fieldSetId", "");
621
634
  }
622
635
  }
623
- function we(n) {
636
+ function Se(n) {
624
637
  let t, e;
625
- const a = /* @__PURE__ */ new Map();
626
- let o = [];
627
- function l(c, r) {
638
+ const o = /* @__PURE__ */ new Map();
639
+ let r = [];
640
+ function i(c, a) {
628
641
  const m = c.split(" ").filter((M) => M.startsWith("col-"));
629
642
  if (m.length === 0) {
630
- r.isSupportedClass = !1;
643
+ a.isSupportedClass = !1;
631
644
  return;
632
645
  }
633
646
  let d = m.find((M) => /^col-([1-9]|10|11|12)$/.test(M)), g = m.find((M) => /^col-md-([1-9]|10|11|12)$/.test(M)), C = m.find((M) => /^col-xl-([1-9]|10|11|12)$/.test(M)), v = m.find((M) => /^col-el-([1-9]|10|11|12)$/.test(M));
634
- d = d || "col-12", r.columnInSM = parseInt(d.replace("col-", ""), 10), r.displayWidthInSM = r.columnInSM / 12, r.displayWidthInSM !== 1 && (r.isSupportedClass = !1), g = g || "col-md-" + r.columnInSM, r.columnInMD = parseInt(g.replace("col-md-", ""), 10), r.displayWidthInMD = r.columnInMD / 6, [1, 2].includes(r.displayWidthInMD) || (r.isSupportedClass = !1), C = C || "col-xl-" + r.columnInMD, r.columnInLG = parseInt(C.replace("col-xl-", ""), 10), r.displayWidthInLG = r.columnInLG / 3, [1, 2, 3, 4].includes(r.displayWidthInLG) || (r.isSupportedClass = !1), v = v || "col-el-" + r.columnInLG, r.columnInEL = parseInt(v.replace("col-el-", ""), 10), r.displayWidthInEL = r.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(r.displayWidthInEL) || (r.isSupportedClass = !1);
647
+ d = d || "col-12", a.columnInSM = parseInt(d.replace("col-", ""), 10), a.displayWidthInSM = a.columnInSM / 12, a.displayWidthInSM !== 1 && (a.isSupportedClass = !1), g = g || "col-md-" + a.columnInSM, a.columnInMD = parseInt(g.replace("col-md-", ""), 10), a.displayWidthInMD = a.columnInMD / 6, [1, 2].includes(a.displayWidthInMD) || (a.isSupportedClass = !1), C = C || "col-xl-" + a.columnInMD, a.columnInLG = parseInt(C.replace("col-xl-", ""), 10), a.displayWidthInLG = a.columnInLG / 3, [1, 2, 3, 4].includes(a.displayWidthInLG) || (a.isSupportedClass = !1), v = v || "col-el-" + a.columnInLG, a.columnInEL = parseInt(v.replace("col-el-", ""), 10), a.displayWidthInEL = a.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(a.displayWidthInEL) || (a.isSupportedClass = !1);
635
648
  }
636
- function s(c, r, p, m = !1) {
649
+ function l(c, a, p, m = !1) {
637
650
  let d = !1;
638
651
  c.contents.forEach((g) => {
639
652
  if (g.type === "fieldset") {
640
- p += 1, s(g, r, p, !0), d = !0;
653
+ p += 1, l(g, a, p, !0), d = !0;
641
654
  return;
642
655
  }
643
656
  d && (p += 1, d = !1);
644
- const C = g.appearance && g.appearance.class, v = new ke();
645
- C ? l(C, v) : v.isSupportedClass = !1, v.label = g.label || g.id, v.id = g.id, v.group = p, m && (v.fieldSetId = c.id), e === g.id && (t = p), a.set(g.id, g), r.push(v);
657
+ const C = g.appearance && g.appearance.class, v = new we();
658
+ C ? i(C, v) : v.isSupportedClass = !1, v.label = g.label || g.id, v.id = g.id, v.group = p, m && (v.fieldSetId = c.id), e === g.id && (t = p), o.set(g.id, g), a.push(v);
646
659
  });
647
660
  }
648
661
  function y(c) {
649
- const r = n.getComponentById(c);
650
- if (!r || !r.componentType || !r.componentType.startsWith("form"))
662
+ const a = n.getComponentById(c);
663
+ if (!a || !a.componentType || !a.componentType.startsWith("form"))
651
664
  return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
652
- const p = n.selectNode(r, (m) => m.type === x["response-form"].type);
665
+ const p = n.selectNode(a, (m) => m.type === G["response-form"].type);
653
666
  return !p || !p.contents || p.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: p };
654
667
  }
655
- function f(c, r) {
656
- r = r || c.id;
657
- const { result: p, message: m, formNode: d } = y(r);
668
+ function f(c, a) {
669
+ a = a || c.id;
670
+ const { result: p, message: m, formNode: d } = y(a);
658
671
  if (!p)
659
672
  return { result: p, message: m };
660
- e = c.id, o = [], a.clear();
661
- const g = d.contents[0].type === x.fieldset.type ? 0 : 1;
662
- s(d, o, g);
663
- const C = o.find((M) => !M.isSupportedClass);
673
+ e = c.id, r = [], o.clear();
674
+ const g = d.contents[0].type === G.fieldset.type ? 0 : 1;
675
+ l(d, r, g);
676
+ const C = r.find((M) => !M.isSupportedClass);
664
677
  return {
665
678
  defaultState: {
666
679
  defaultGroupNumber: t || 1,
667
680
  model: C ? "customize" : "standard"
668
681
  },
669
- importData: o
682
+ importData: r
670
683
  };
671
684
  }
672
- function i(c, r) {
673
- r = r;
674
- const { result: p, formNode: m } = y(r);
685
+ function s(c, a) {
686
+ a = a;
687
+ const { result: p, formNode: m } = y(a);
675
688
  if (!p)
676
689
  return "";
677
690
  const d = [];
678
691
  return c.forEach((g) => {
679
692
  var M;
680
- const C = a.get(g.id), v = C.appearance && C.appearance.class;
693
+ const C = o.get(g.id), v = C.appearance && C.appearance.class;
681
694
  if (v) {
682
- const F = v.split(" ").filter((H) => !H.startsWith("col-")), h = "col-" + g.columnInSM, w = "col-md-" + g.columnInMD, S = "col-xl-" + g.columnInLG, T = "col-el-" + g.columnInEL, D = [h, w, S, T].concat(F);
695
+ const F = v.split(" ").filter((_) => !_.startsWith("col-")), h = "col-" + g.columnInSM, w = "col-md-" + g.columnInMD, S = "col-xl-" + g.columnInLG, T = "col-el-" + g.columnInEL, D = [h, w, S, T].concat(F);
683
696
  C.appearance.class = D.join(" ");
684
697
  }
685
698
  if (g.fieldSetId) {
@@ -692,23 +705,23 @@ function we(n) {
692
705
  return {
693
706
  checkCanFindFormNode: y,
694
707
  checkCanOpenLayoutEditor: f,
695
- changeFormControlsByResponseLayoutConfig: i,
696
- getResonseFormLayoutConfig: s
708
+ changeFormControlsByResponseLayoutConfig: s,
709
+ getResonseFormLayoutConfig: l
697
710
  };
698
711
  }
699
- class Se extends Ce {
700
- constructor(e, a) {
701
- super(e, a);
712
+ class Te extends Me {
713
+ constructor(e, o) {
714
+ super(e, o);
702
715
  b(this, "responseLayoutEditorFunction");
703
- this.responseLayoutEditorFunction = we(this.formSchemaUtils);
716
+ this.responseLayoutEditorFunction = Se(this.formSchemaUtils);
704
717
  }
705
- getPropertyConfig(e, a) {
706
- return this.propertyConfig.categories.basic = this.getBasicProperties(e, a), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, a), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
718
+ getPropertyConfig(e, o) {
719
+ return this.propertyConfig.categories.basic = this.getBasicProperties(e, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, o), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
707
720
  }
708
- getBasicProperties(e, a) {
709
- var l;
710
- const o = this;
711
- return this.setDesignViewModelField(e), this.formSchemaUtils.getFormMetadataBasicInfo(), {
721
+ getBasicProperties(e, o) {
722
+ var i;
723
+ const r = this;
724
+ return this.setDesignViewModelField(e), {
712
725
  description: "Basic Information",
713
726
  title: "基本信息",
714
727
  properties: {
@@ -729,7 +742,7 @@ class Se extends Ce {
729
742
  textField: "value",
730
743
  valueField: "key",
731
744
  editable: !1,
732
- data: o.designViewModelField ? V.getEditorTypesByMDataType((l = o.designViewModelField.type) == null ? void 0 : l.name) : V.getAllInputTypes()
745
+ data: r.designViewModelField ? V.getEditorTypesByMDataType((i = r.designViewModelField.type) == null ? void 0 : i.name) : V.getAllInputTypes()
733
746
  }
734
747
  },
735
748
  label: {
@@ -754,23 +767,23 @@ class Se extends Ce {
754
767
  }
755
768
  }
756
769
  },
757
- setPropertyRelates(s, y) {
758
- if (s)
759
- switch (s && s.propertyID) {
770
+ setPropertyRelates(l, y) {
771
+ if (l)
772
+ switch (l && l.propertyID) {
760
773
  case "type": {
761
- o.changeControlType(e, s, a);
774
+ r.changeControlType(e, l, o);
762
775
  break;
763
776
  }
764
777
  case "label": {
765
- s.needRefreshControlTree = !0;
778
+ l.needRefreshControlTree = !0;
766
779
  break;
767
780
  }
768
781
  }
769
782
  }
770
783
  };
771
784
  }
772
- getAppearanceProperties(e, a) {
773
- const o = this;
785
+ getAppearanceProperties(e, o) {
786
+ const r = this;
774
787
  return {
775
788
  title: "样式",
776
789
  description: "Appearance",
@@ -796,18 +809,18 @@ class Se extends Ce {
796
809
  refreshPanelAfterChanged: !0,
797
810
  editor: {
798
811
  type: "response-layout-editor-setting",
799
- initialState: o.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, o.componentId)
812
+ initialState: r.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, r.componentId)
800
813
  }
801
814
  }
802
815
  },
803
- setPropertyRelates(l, s) {
804
- if (l)
805
- switch (l && l.propertyID) {
816
+ setPropertyRelates(i, l) {
817
+ if (i)
818
+ switch (i && i.propertyID) {
806
819
  case "responseLayout":
807
- o.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, o.componentId || e.id), o.updateUnifiedLayoutAfterResponseLayoutChanged(o.componentId), o.updateElementByParentContainer(e.id, a), delete e.responseLayout;
820
+ r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(i.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, o), delete e.responseLayout;
808
821
  break;
809
822
  case "class":
810
- o.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), o.updateElementByParentContainer(e.id, a);
823
+ r.updateUnifiedLayoutAfterControlChanged(i.propertyValue, e.id, this.componentId), r.updateElementByParentContainer(e.id, o);
811
824
  break;
812
825
  }
813
826
  }
@@ -821,44 +834,44 @@ class Se extends Ce {
821
834
  * @param propertyData 控件DOM属性
822
835
  * @param newControlType 新控件类型
823
836
  */
824
- changeControlType(e, a, o) {
825
- var c, r, p, m;
826
- const l = a.propertyValue, s = o && o.parent && o.parent.schema;
827
- if (!s)
837
+ changeControlType(e, o, r) {
838
+ var c, a, p, m;
839
+ const i = o.propertyValue, l = r && r.parent && r.parent.schema;
840
+ if (!l)
828
841
  return;
829
- const y = s.contents.findIndex((d) => d.id === e.id), f = s.contents[y];
830
- let i;
842
+ const y = l.contents.findIndex((d) => d.id === e.id), f = l.contents[y];
843
+ let s;
831
844
  this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
832
845
  editor: {
833
- $type: l
846
+ $type: i
834
847
  },
835
848
  name: this.designViewModelField.name,
836
849
  require: this.designViewModelField.require,
837
850
  readonly: this.designViewModelField.readonly
838
- }, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), i || (i = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(i, {
851
+ }, !1), s = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, i)), s || (s = this.controlCreatorUtils.createFormGroupWithoutField(i)), Object.assign(s, {
839
852
  id: f.id,
840
853
  appearance: f.appearance,
841
854
  size: f.size,
842
855
  label: f.label,
843
856
  binding: f.binding,
844
857
  visible: f.visible
845
- }), Object.assign(i.editor, {
846
- isTextArea: i.isTextArea && f.isTextArea,
858
+ }), Object.assign(s.editor, {
859
+ isTextArea: s.isTextArea && f.isTextArea,
847
860
  placeholder: (c = f.editor) == null ? void 0 : c.placeholder,
848
- holdPlace: (r = f.editor) == null ? void 0 : r.holdPlace,
861
+ holdPlace: (a = f.editor) == null ? void 0 : a.holdPlace,
849
862
  readonly: (p = f.editor) == null ? void 0 : p.readonly,
850
863
  require: (m = f.editor) == null ? void 0 : m.require
851
- }), s.contents.splice(y, 1), s.contents.splice(y, 0, i), o.schema = Object.assign(f, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
864
+ }), l.contents.splice(y, 1), l.contents.splice(y, 0, s), r.schema = Object.assign(f, s), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
852
865
  (d) => d.classList.remove("dgComponentSelected")
853
- ), Me.value++;
866
+ ), ke.value++;
854
867
  }
855
- getComponentConfig(e, a = {}, o = {}) {
856
- const l = Object.assign({
868
+ getComponentConfig(e, o = {}, r = {}) {
869
+ const i = Object.assign({
857
870
  description: "编辑器",
858
871
  title: "编辑器",
859
872
  type: "input-group",
860
873
  $converter: "/converter/property-editor.converter"
861
- }, a), s = Object.assign({
874
+ }, o), l = Object.assign({
862
875
  readonly: {
863
876
  description: "",
864
877
  title: "只读",
@@ -879,8 +892,8 @@ class Se extends Ce {
879
892
  title: "提示文本",
880
893
  type: "string"
881
894
  }
882
- }, o);
883
- return { ...l, properties: { ...s } };
895
+ }, r);
896
+ return { ...i, properties: { ...l } };
884
897
  }
885
898
  /**
886
899
  * 修改某一输入控件的样式后更新Form的统一布局配置
@@ -888,37 +901,37 @@ class Se extends Ce {
888
901
  * @param controlId 控件Id
889
902
  * @param componentId 控件所在组件id
890
903
  */
891
- updateUnifiedLayoutAfterControlChanged(e, a, o) {
892
- const l = e.split(" ");
893
- let s = l.find((r) => /^col-([1-9]|10|11|12)$/.test(r)), y = l.find((r) => /^col-md-([1-9]|10|11|12)$/.test(r)), f = l.find((r) => /^col-xl-([1-9]|10|11|12)$/.test(r)), i = l.find((r) => /^col-el-([1-9]|10|11|12)$/.test(r));
894
- s = s || "col-12", y = y || "col-md-" + s.replace("col-", ""), f = f || "col-xl-" + y.replace("col-md-", ""), i = i || "col-el-" + f.replace("col-xl-", "");
904
+ updateUnifiedLayoutAfterControlChanged(e, o, r) {
905
+ const i = e.split(" ");
906
+ let l = i.find((a) => /^col-([1-9]|10|11|12)$/.test(a)), y = i.find((a) => /^col-md-([1-9]|10|11|12)$/.test(a)), f = i.find((a) => /^col-xl-([1-9]|10|11|12)$/.test(a)), s = i.find((a) => /^col-el-([1-9]|10|11|12)$/.test(a));
907
+ l = l || "col-12", y = y || "col-md-" + l.replace("col-", ""), f = f || "col-xl-" + y.replace("col-md-", ""), s = s || "col-el-" + f.replace("col-xl-", "");
895
908
  const c = {
896
- id: a,
897
- columnInSM: parseInt(s.replace("col-", ""), 10),
909
+ id: o,
910
+ columnInSM: parseInt(l.replace("col-", ""), 10),
898
911
  columnInMD: parseInt(y.replace("col-md-", ""), 10),
899
912
  columnInLG: parseInt(f.replace("col-xl-", ""), 10),
900
- columnInEL: parseInt(i.replace("col-el-", ""), 10)
913
+ columnInEL: parseInt(s.replace("col-el-", ""), 10)
901
914
  };
902
- this.updateUnifiedLayoutAfterResponseLayoutChanged(o, c);
915
+ this.updateUnifiedLayoutAfterResponseLayoutChanged(r, c);
903
916
  }
904
917
  /**
905
918
  * 修改控件布局配置后更新Form统一布局配置
906
919
  * @param componentId 组件Id
907
920
  * @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
908
921
  */
909
- updateUnifiedLayoutAfterResponseLayoutChanged(e, a) {
910
- const { formNode: o } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
911
- if (!o || !o.unifiedLayout)
922
+ updateUnifiedLayoutAfterResponseLayoutChanged(e, o) {
923
+ const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
924
+ if (!r || !r.unifiedLayout)
912
925
  return;
913
- const l = [];
914
- if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(o, l, 1), a) {
915
- const d = l.find((g) => g.id === a.id);
916
- Object.assign(d || {}, a);
926
+ const i = [];
927
+ if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, i, 1), o) {
928
+ const d = i.find((g) => g.id === o.id);
929
+ Object.assign(d || {}, o);
917
930
  }
918
- const s = l.map((d) => d.columnInSM), y = l.map((d) => d.columnInMD), f = l.map((d) => d.columnInLG), i = l.map((d) => d.columnInEL), c = this.checkIsUniqueColumn(s) ? s[0] : null, r = this.checkIsUniqueColumn(y) ? y[0] : null, p = this.checkIsUniqueColumn(f) ? f[0] : null, m = this.checkIsUniqueColumn(i) ? i[0] : null;
919
- Object.assign(o.unifiedLayout, {
931
+ const l = i.map((d) => d.columnInSM), y = i.map((d) => d.columnInMD), f = i.map((d) => d.columnInLG), s = i.map((d) => d.columnInEL), c = this.checkIsUniqueColumn(l) ? l[0] : null, a = this.checkIsUniqueColumn(y) ? y[0] : null, p = this.checkIsUniqueColumn(f) ? f[0] : null, m = this.checkIsUniqueColumn(s) ? s[0] : null;
932
+ Object.assign(r.unifiedLayout, {
920
933
  uniqueColClassInSM: c,
921
- uniqueColClassInMD: r,
934
+ uniqueColClassInMD: a,
922
935
  uniqueColClassInLG: p,
923
936
  uniqueColClassInEL: m
924
937
  });
@@ -927,11 +940,11 @@ class Se extends Ce {
927
940
  * 校验宽度样式值是否一致
928
941
  */
929
942
  checkIsUniqueColumn(e) {
930
- const a = new Set(e);
931
- return Array.from(a).length === 1;
943
+ const o = new Set(e);
944
+ return Array.from(o).length === 1;
932
945
  }
933
946
  }
934
- class Te extends Se {
947
+ class Fe extends Te {
935
948
  constructor(t, e) {
936
949
  super(t, e);
937
950
  }
@@ -950,21 +963,21 @@ class Te extends Se {
950
963
  });
951
964
  }
952
965
  }
953
- function Fe(n, t) {
966
+ function Ee(n, t) {
954
967
  const e = n.schema;
955
- function a(o, l) {
956
- return new Te(o, t).getPropertyConfig(e, l);
968
+ function o(r, i) {
969
+ return new Fe(r, t).getPropertyConfig(e, i);
957
970
  }
958
- return { getPropsConfig: a };
971
+ return { getPropsConfig: o };
959
972
  }
960
- const Ee = /* @__PURE__ */ G({
973
+ const Pe = /* @__PURE__ */ q({
961
974
  name: "FTextareaDesign",
962
- props: N,
975
+ props: $,
963
976
  emits: [""],
964
977
  setup(n, t) {
965
- const e = B(), a = U("designer-host-service"), o = U("design-item-context"), l = Fe(o, a), s = ve(e, o, l), y = I(() => n.maxLength ? n.maxLength : n.modelValue.length), f = I(() => ({
978
+ const e = P(), o = U("designer-host-service"), r = U("design-item-context"), i = Ee(r, o), l = Ce(e, r, i), y = L(() => n.maxLength ? n.maxLength : n.modelValue.length), f = L(() => ({
966
979
  position: "relative"
967
- })), i = I(() => ({
980
+ })), s = L(() => ({
968
981
  "box-shadow": "0 0 0 1px #dcdfe6 inset",
969
982
  border: "none",
970
983
  padding: "5px 10px",
@@ -974,9 +987,9 @@ const Ee = /* @__PURE__ */ G({
974
987
  bottom: "5px",
975
988
  right: "10px"
976
989
  };
977
- return q(() => {
978
- e.value.componentInstance = s;
979
- }), t.expose(s.value), () => E("div", {
990
+ return O(() => {
991
+ e.value.componentInstance = l;
992
+ }), t.expose(l.value), () => E("div", {
980
993
  style: f.value,
981
994
  ref: e
982
995
  }, [E("textarea", {
@@ -984,7 +997,7 @@ const Ee = /* @__PURE__ */ G({
984
997
  tabindex: n.tabIndex,
985
998
  disabled: !1,
986
999
  readonly: !0,
987
- style: i.value,
1000
+ style: s.value,
988
1001
  placeholder: n.placeholder,
989
1002
  rows: n.rows
990
1003
  }, null), n.showCount && E("span", {
@@ -992,16 +1005,16 @@ const Ee = /* @__PURE__ */ G({
992
1005
  }, [`${n.modelValue.length}/${y.value}`])]);
993
1006
  }
994
1007
  });
995
- L.register = (n, t, e, a) => {
996
- n.textarea = L, t.textarea = X;
1008
+ I.register = (n, t, e, o) => {
1009
+ n.textarea = I, t.textarea = X;
997
1010
  };
998
- L.registerDesigner = (n, t, e) => {
999
- n.textarea = Ee, t.textarea = X;
1011
+ I.registerDesigner = (n, t, e) => {
1012
+ n.textarea = Pe, t.textarea = X;
1000
1013
  };
1001
- const De = R(L);
1014
+ const Ae = K(I);
1002
1015
  export {
1003
- L as FTextarea,
1004
- De as default,
1016
+ I as FTextarea,
1017
+ Ae as default,
1005
1018
  X as propsResolver,
1006
- N as textAreaProps
1019
+ $ as textAreaProps
1007
1020
  };