@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4

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 (99) hide show
  1. package/components/avatar/index.esm.js +10 -1
  2. package/components/avatar/index.umd.cjs +1 -1
  3. package/components/calendar/index.esm.js +178 -176
  4. package/components/calendar/index.umd.cjs +2 -2
  5. package/components/collection-property-editor/index.esm.js +48 -46
  6. package/components/collection-property-editor/index.umd.cjs +2 -2
  7. package/components/combo-list/index.esm.js +319 -300
  8. package/components/combo-list/index.umd.cjs +1 -1
  9. package/components/comment/index.esm.js +2287 -1161
  10. package/components/comment/index.umd.cjs +7 -7
  11. package/components/component/index.esm.js +3 -1
  12. package/components/component/index.umd.cjs +2 -2
  13. package/components/condition/index.esm.js +926 -901
  14. package/components/condition/index.umd.cjs +2 -2
  15. package/components/data-view/index.esm.js +898 -899
  16. package/components/data-view/index.umd.cjs +1 -1
  17. package/components/drawer/index.esm.js +3 -1
  18. package/components/drawer/index.umd.cjs +2 -2
  19. package/components/dynamic-form/index.esm.js +239 -221
  20. package/components/dynamic-form/index.umd.cjs +1 -1
  21. package/components/dynamic-resolver/index.esm.js +11 -9
  22. package/components/dynamic-resolver/index.umd.cjs +2 -2
  23. package/components/expression-editor/index.esm.js +1299 -1279
  24. package/components/expression-editor/index.umd.cjs +4 -4
  25. package/components/filter-bar/index.esm.js +731 -678
  26. package/components/filter-bar/index.umd.cjs +2 -2
  27. package/components/filter-condition-editor/index.esm.js +1792 -1772
  28. package/components/filter-condition-editor/index.umd.cjs +4 -4
  29. package/components/image/index.esm.js +246 -240
  30. package/components/image/index.umd.cjs +2 -2
  31. package/components/language-textbox/index.esm.js +9 -7
  32. package/components/language-textbox/index.umd.cjs +2 -2
  33. package/components/list-view/index.esm.js +1 -1
  34. package/components/list-view/index.umd.cjs +1 -1
  35. package/components/locale/index.esm.js +2009 -886
  36. package/components/locale/index.umd.cjs +6 -6
  37. package/components/number-range/index.esm.js +190 -181
  38. package/components/number-range/index.umd.cjs +1 -1
  39. package/components/order/index.esm.js +734 -714
  40. package/components/order/index.umd.cjs +5 -5
  41. package/components/property-panel/index.esm.js +60 -49
  42. package/components/property-panel/index.umd.cjs +3 -3
  43. package/components/query-solution/index.esm.js +2461 -2500
  44. package/components/query-solution/index.umd.cjs +6 -6
  45. package/components/radio-group/index.esm.js +30 -30
  46. package/components/radio-group/index.umd.cjs +1 -1
  47. package/components/schema-selector/index.esm.js +238 -238
  48. package/components/schema-selector/index.umd.cjs +4 -4
  49. package/components/section/index.esm.js +217 -302
  50. package/components/section/index.umd.cjs +2 -2
  51. package/components/sort-condition-editor/index.esm.js +1793 -1773
  52. package/components/sort-condition-editor/index.umd.cjs +4 -4
  53. package/components/transfer/index.esm.js +155 -155
  54. package/components/transfer/index.umd.cjs +3 -3
  55. package/designer/data-grid/index.esm.js +895 -867
  56. package/designer/data-grid/index.umd.cjs +5 -5
  57. package/designer/data-view/index.esm.js +145 -144
  58. package/designer/data-view/index.umd.cjs +2 -2
  59. package/designer/drawer/index.esm.js +73 -71
  60. package/designer/drawer/index.umd.cjs +2 -2
  61. package/designer/dynamic-form/index.esm.js +87 -65
  62. package/designer/dynamic-form/index.umd.cjs +2 -2
  63. package/designer/farris-designer.all.esm.js +14 -3
  64. package/designer/farris-designer.all.umd.cjs +3 -3
  65. package/designer/input-group/index.esm.js +34 -14
  66. package/designer/input-group/index.umd.cjs +1 -1
  67. package/designer/list-view/index.esm.js +1 -1
  68. package/designer/list-view/index.umd.cjs +1 -1
  69. package/designer/radio-group/index.esm.js +15 -2
  70. package/designer/radio-group/index.umd.cjs +1 -1
  71. package/designer/section/index.esm.js +129 -119
  72. package/designer/section/index.umd.cjs +1 -1
  73. package/designer/time-picker/index.esm.js +140 -131
  74. package/designer/time-picker/index.umd.cjs +1 -1
  75. package/farris.all.esm.js +13578 -12394
  76. package/farris.all.umd.cjs +26 -26
  77. package/index.css +1 -1
  78. package/locales/data-grid/ui/en.json +2 -1
  79. package/locales/data-grid/ui/zh-CHS.json +2 -1
  80. package/locales/data-grid/ui/zh-CHT.json +2 -1
  81. package/locales/designer/en.json +12 -10
  82. package/locales/designer/zh-CHS.json +19 -17
  83. package/locales/designer/zh-CHT.json +19 -17
  84. package/locales/ui/en.json +4 -2
  85. package/locales/ui/zh-CHS.json +11 -9
  86. package/locales/ui/zh-CHT.json +11 -9
  87. package/package.json +1 -1
  88. package/package.zip +0 -0
  89. package/types/combo-list/src/composition/types.d.ts +1 -0
  90. package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
  91. package/types/condition/src/composition/use-field-config.d.ts +1 -1
  92. package/types/condition/src/condition.props.d.ts +1 -1
  93. package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
  94. package/types/image/src/property-config/image.property-config.d.ts +5 -5
  95. package/types/locale/src/lib/locale.service.d.ts +2 -2
  96. package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
  97. package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
  98. package/types/section/src/designer/section.design.props.d.ts +17 -0
  99. package/types/section/src/section.props.d.ts +0 -25
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, ref as M, computed as $, withDirectives as me, createVNode as U, resolveDirective as de, watch as Y, createTextVNode as pe, mergeProps as ce } from "vue";
1
+ import { defineComponent as H, ref as E, computed as K, withDirectives as me, createVNode as N, resolveDirective as de, watch as S, createTextVNode as pe, mergeProps as ce } from "vue";
2
2
  import { LocaleService as fe } from "../locale/index.esm.js";
3
3
  import ge from "../accordion/index.esm.js";
4
4
  import ye from "../avatar/index.esm.js";
@@ -88,20 +88,20 @@ const Kt = {
88
88
  visible: { type: Boolean, default: !0 },
89
89
  /** 内部控件布局是否响应国际化 */
90
90
  adaptForLanguage: { type: Boolean, default: !0 }
91
- }, oe = /* @__PURE__ */ Z({
91
+ }, oe = /* @__PURE__ */ H({
92
92
  name: "FResponseForm",
93
93
  props: Kt,
94
94
  emits: [],
95
95
  setup(t, a) {
96
- const y = M(), F = $(() => {
97
- const c = fe.getLocale(), C = t.customClass.split(" "), b = {
96
+ const y = E(), C = K(() => {
97
+ const c = fe.getLocale(), h = t.customClass.split(" "), b = {
98
98
  "drag-container": !0
99
99
  };
100
- return C.reduce((I, v) => (I[v] = !0, I), b), t.adaptForLanguage && c && (b["farris-form-controls-inline"] = c !== "en"), b;
100
+ return h.reduce((I, v) => (I[v] = !0, I), b), t.adaptForLanguage && c && (b["farris-form-controls-inline"] = c !== "en"), b;
101
101
  });
102
- return () => t.visible && me(U("div", {
102
+ return () => t.visible && me(N("div", {
103
103
  ref: y,
104
- class: F.value,
104
+ class: C.value,
105
105
  style: t.customStyle
106
106
  }, [a.slots.default && a.slots.default()]), [[de("area-response")]]);
107
107
  }
@@ -137,38 +137,38 @@ const Kt = {
137
137
  * 实际支持 'visible'可见 | 'reserve-space' 占位不显示
138
138
  */
139
139
  showType: { type: String, default: "visible" }
140
- }, Jt = /* @__PURE__ */ Z({
140
+ }, Jt = /* @__PURE__ */ H({
141
141
  name: "FDynamicFormLabel",
142
142
  props: _t,
143
143
  emits: [],
144
144
  setup(t, a) {
145
- M(t.title || t.text);
146
- const y = M(t.required), F = M(t.text), c = M(t.valid), C = M(t.inValidTip);
147
- Y(() => t.text, () => {
148
- F.value = t.text;
149
- }), Y(() => t.required, (L, w) => {
150
- L !== w && (y.value = L);
151
- }), Y([() => t.valid, () => t.inValidTip], ([L, w]) => {
152
- c.value = L, C.value = w;
145
+ E(t.title || t.text);
146
+ const y = E(t.required), C = E(t.text), c = E(t.valid), h = E(t.inValidTip);
147
+ S(() => t.text, () => {
148
+ C.value = t.text;
149
+ }), S(() => t.required, (P, w) => {
150
+ P !== w && (y.value = P);
151
+ }), S([() => t.valid, () => t.inValidTip], ([P, w]) => {
152
+ c.value = P, h.value = w;
153
153
  });
154
- const b = $(() => c.value ? F.value : C.value), I = $(() => c.value ? "" : "color:red"), v = $(() => ({
154
+ const b = K(() => c.value ? C.value : h.value), I = K(() => c.value ? "" : "color:red"), v = K(() => ({
155
155
  "col-form-label": !0,
156
156
  // 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
157
- "f-width-auto": y.value && (t.showType === "none" || !F.value)
158
- })), f = $(() => t.showType === "force-none" ? !1 : t.showType === "reserve-space" || y.value || !!F.value && t.showType !== "none");
159
- return () => f.value && U("label", {
157
+ "f-width-auto": y.value && (t.showType === "none" || !C.value)
158
+ })), f = K(() => t.showType === "force-none" ? !1 : t.showType === "reserve-space" || y.value || !!C.value && t.showType !== "none");
159
+ return () => f.value && N("label", {
160
160
  class: v.value,
161
161
  title: b.value,
162
162
  style: I.value
163
- }, [!c.value && U("span", {
163
+ }, [!c.value && N("span", {
164
164
  class: "f-icon f-icon-warning mr-1",
165
165
  style: "color: red; min-width: 16px;",
166
- title: C.value
167
- }, null), U("span", {
166
+ title: h.value
167
+ }, null), N("span", {
168
168
  class: "farris-label-text"
169
- }, [y.value && U("span", {
169
+ }, [y.value && N("span", {
170
170
  class: "farris-label-info text-danger"
171
- }, [pe("*")]), t.showType === "visible" && F.value])]);
171
+ }, [pe("*")]), t.showType === "visible" && C.value])]);
172
172
  }
173
173
  }), { globalStorageKey: Qt } = xt(), o = {}, n = {}, r = {}, i = {};
174
174
  let se = !1;
@@ -268,7 +268,7 @@ function ue() {
268
268
  return "onUpdate:modelValue";
269
269
  }
270
270
  }
271
- function F(b) {
271
+ function C(b) {
272
272
  switch (b) {
273
273
  case "combo-list":
274
274
  case "input-group":
@@ -283,14 +283,14 @@ function ue() {
283
283
  return "onMousedownEvent";
284
284
  }
285
285
  }
286
- function C(b) {
286
+ function h(b) {
287
287
  switch (b) {
288
288
  case "input-group":
289
289
  case "textarea":
290
290
  return "onMouseupEvent";
291
291
  }
292
292
  }
293
- return { resolveEditorProps: a, resolveEditorType: t, getChangeFunctionName: y, getClearFunctionName: F, getMousedownFunctionName: c, getMouseupFunctionName: C };
293
+ return { resolveEditorProps: a, resolveEditorType: t, getChangeFunctionName: y, getClearFunctionName: C, getMousedownFunctionName: c, getMouseupFunctionName: h };
294
294
  }
295
295
  const Yt = {
296
296
  /**
@@ -300,116 +300,116 @@ const Yt = {
300
300
  type: Object,
301
301
  default: null
302
302
  }
303
- }, Zt = /* @__PURE__ */ Z({
303
+ }, Zt = /* @__PURE__ */ H({
304
304
  name: "FValidationMessage",
305
305
  props: Yt,
306
306
  emits: [],
307
307
  setup(t, a) {
308
- const y = M(t.errors);
309
- Y(() => t.errors, (C) => {
310
- y.value = C;
308
+ const y = E(t.errors);
309
+ S(() => t.errors, (h) => {
310
+ y.value = h;
311
311
  });
312
- const F = M(!0), c = $(() => {
312
+ const C = E(!0), c = K(() => {
313
313
  if (y.value) {
314
- const C = Object.keys(y.value).map((b) => {
314
+ const h = Object.keys(y.value).map((b) => {
315
315
  var I;
316
316
  return (I = y.value[b]) == null ? void 0 : I.name;
317
317
  });
318
- return C.length ? C.join(" ") : "";
318
+ return h.length ? h.join(" ") : "";
319
319
  }
320
320
  return "";
321
321
  });
322
- return () => c.value && U("div", {
322
+ return () => c.value && N("div", {
323
323
  class: "farris-feedback f-state-invalid",
324
- onClick: () => F.value = !F.value
325
- }, [!F.value && U("span", {
324
+ onClick: () => C.value = !C.value
325
+ }, [!C.value && N("span", {
326
326
  class: "f-icon f-icon-message_warning f-feedback-icon"
327
- }, null), F.value && U("span", {
327
+ }, null), C.value && N("span", {
328
328
  class: "f-feedback-message"
329
329
  }, [c.value])]);
330
330
  }
331
- }), le = /* @__PURE__ */ Z({
331
+ }), le = /* @__PURE__ */ H({
332
332
  name: "FDynamicFormGroup",
333
333
  props: Xt,
334
334
  emits: ["change", "update:modelValue"],
335
335
  setup(t, a) {
336
336
  var ee;
337
- const y = M(t.id), F = M(t.customClass), c = M(t.editor), C = M(t.label), b = M(t.modelValue), I = M(t.readonly), v = M(((ee = t.editor) == null ? void 0 : ee.required) || t.required), f = M(t.showLabel), L = M(t.visible);
338
- M(t.type);
339
- const w = M(), N = M(t.errors), x = $(() => f.value ? t.showLabelType : "none"), {
340
- resolveEditorProps: P,
341
- resolveEditorType: k,
342
- getChangeFunctionName: G,
343
- getClearFunctionName: W
344
- } = ue(), K = $(() => ({
337
+ const y = E(t.id), C = E(t.customClass), c = E(t.editor), h = E(t.label), b = E(t.modelValue), I = E(t.readonly), v = E(((ee = t.editor) == null ? void 0 : ee.required) || t.required), f = E(t.showLabel), P = E(t.visible);
338
+ E(t.type);
339
+ const w = E(), A = E(t.errors), j = K(() => f.value ? t.showLabelType : "none"), {
340
+ resolveEditorProps: x,
341
+ resolveEditorType: $,
342
+ getChangeFunctionName: _,
343
+ getClearFunctionName: X
344
+ } = ue(), M = K(() => ({
345
345
  "form-group": !0,
346
346
  "farris-form-group": !0,
347
347
  "common-group": !0,
348
348
  "q-state-readonly": I.value
349
- })), X = $(() => {
349
+ })), V = K(() => {
350
350
  if (t.fill)
351
351
  return {
352
352
  maxWidth: "none"
353
353
  };
354
354
  });
355
- function R(E, A, B) {
356
- b.value = A !== void 0 ? A : E, a.emit("update:modelValue", b.value), a.emit("change", b.value, {
357
- newValue: E,
358
- newModelValue: A,
359
- parameters: B
355
+ function B(U, q, L) {
356
+ b.value = q !== void 0 ? q : U, a.emit("update:modelValue", b.value), a.emit("change", b.value, {
357
+ newValue: U,
358
+ newModelValue: q,
359
+ parameters: L
360
360
  });
361
361
  }
362
- function _() {
362
+ function R() {
363
363
  a.emit("update:modelValue", "");
364
364
  }
365
- function D(E) {
366
- return (...A) => {
367
- _(), typeof E == "function" && E(...A);
365
+ function D(U) {
366
+ return (...q) => {
367
+ R(), typeof U == "function" && U(...q);
368
368
  };
369
369
  }
370
- function S(E) {
371
- return (A, B, e) => {
372
- R(A, B, e), typeof E == "function" && E(A, B, e);
370
+ function Y(U) {
371
+ return (q, L, e) => {
372
+ B(q, L, e), typeof U == "function" && U(q, L, e);
373
373
  };
374
374
  }
375
- const H = $(() => {
376
- const E = c.value.type || "input-group", A = k(E), B = P(E, c.value), e = G(E), s = W(c.value.type);
377
- return s && (B[s] = D(B[s])), e && (B[e] = S(B[e])), (B.id == null || B.id === "") && (B.id = y.value), E === "number-range" && c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" ? (c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" && (B.onBeginValueChange = c.value.onBeginValueChange), c.value.onEndValueChange && typeof c.value.onEndValueChange == "function" && (B.onEndValueChange = c.value.onEndValueChange)) : E === "lookup" && c.value["onUpdate:idValue"] && typeof c.value["onUpdate:idValue"] == "function" ? (B["onUpdate:idValue"] = c.value["onUpdate:idValue"], B.id = y.value) : E === "collection-property-editor" && c.value.onSelectionChange && typeof c.value.onSelectionChange == "function" ? B.onSelectionChange = c.value.onSelectionChange : E === "property-editor" && (B.onBeforeOpenVariables = c.value.onBeforeOpenVariables), () => U(A, ce({
375
+ const Z = K(() => {
376
+ const U = c.value.type || "input-group", q = $(U), L = x(U, c.value), e = _(U), s = X(c.value.type);
377
+ return s && (L[s] = D(L[s])), e && (L[e] = Y(L[e])), (L.id == null || L.id === "") && (L.id = y.value), U === "number-range" && c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" ? (c.value.onBeginValueChange && typeof c.value.onBeginValueChange == "function" && (L.onBeginValueChange = c.value.onBeginValueChange), c.value.onEndValueChange && typeof c.value.onEndValueChange == "function" && (L.onEndValueChange = c.value.onEndValueChange)) : U === "lookup" && c.value["onUpdate:idValue"] && typeof c.value["onUpdate:idValue"] == "function" ? (L["onUpdate:idValue"] = c.value["onUpdate:idValue"], L.id = y.value) : U === "collection-property-editor" && c.value.onSelectionChange && typeof c.value.onSelectionChange == "function" ? L.onSelectionChange = c.value.onSelectionChange : U === "property-editor" && (L.onBeforeOpenVariables = c.value.onBeforeOpenVariables), () => N(q, ce({
378
378
  ref: w
379
- }, B, {
379
+ }, L, {
380
380
  modelValue: b.value,
381
381
  "onUpdate:modelValue": (l) => b.value = l
382
382
  }), a.slots);
383
383
  });
384
384
  function te() {
385
- return U(Zt, {
385
+ return N(Zt, {
386
386
  id: `${y.value}-validation-message`,
387
- errors: N.value
387
+ errors: A.value
388
388
  }, null);
389
389
  }
390
- return Y([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([E, A, B, e, s, l, d, g, p, h]) => {
390
+ return S([() => t.id, () => t.customClass, () => t.editor, () => t.label, () => t.modelValue, () => t.readonly, () => t.required, () => t.showLabel, () => t.visible, () => t.errors], ([U, q, L, e, s, l, d, g, p, F]) => {
391
391
  var m;
392
- y.value = E, F.value = A, c.value = B, C.value = e, b.value = s, I.value = l, v.value = ((m = c.value) == null ? void 0 : m.required) || d, f.value = g, L.value = p, N.value = h;
392
+ y.value = U, C.value = q, c.value = L, h.value = e, b.value = s, I.value = l, v.value = ((m = c.value) == null ? void 0 : m.required) || d, f.value = g, P.value = p, A.value = F;
393
393
  }), a.expose({
394
394
  editorRef: w
395
- }), () => L.value && U("div", {
395
+ }), () => P.value && N("div", {
396
396
  id: `${y.value}-form-group`,
397
- class: F.value,
397
+ class: C.value,
398
398
  style: t.customStyle
399
- }, [U("div", {
399
+ }, [N("div", {
400
400
  class: "farris-group-wrap",
401
- style: X.value
402
- }, [U("div", {
403
- class: K.value
404
- }, [U(Jt, {
401
+ style: V.value
402
+ }, [N("div", {
403
+ class: M.value
404
+ }, [N(Jt, {
405
405
  id: `${y.value}-lable`,
406
- showType: x.value,
406
+ showType: j.value,
407
407
  required: v.value,
408
- text: C.value,
409
- title: C.value
410
- }, null), U("div", {
408
+ text: h.value,
409
+ title: h.value
410
+ }, null), N("div", {
411
411
  class: "farris-input-wrap"
412
- }, [H.value(), te()])])])]);
412
+ }, [Z.value(), te()])])])]);
413
413
  }
414
414
  }), St = {
415
415
  id: { type: String, default: "" },
@@ -425,53 +425,71 @@ const Yt = {
425
425
  * 作为内嵌编辑器被创建后默认选中文本
426
426
  */
427
427
  selectOnCreated: { type: Boolean, default: !1 }
428
- }, Un = /* @__PURE__ */ Z({
428
+ }, Un = /* @__PURE__ */ H({
429
429
  name: "FDynamicFormInput",
430
430
  props: St,
431
431
  emits: ["change", "update:modelValue", "mousedown", "mouseup"],
432
432
  setup(t, a) {
433
- const y = M(t.id), F = M(t.editor), c = M(t.modelValue), {
434
- resolveEditorProps: C,
433
+ const y = E(t.id), C = E(t.editor), c = E(t.modelValue), {
434
+ resolveEditorProps: h,
435
435
  resolveEditorType: b,
436
436
  getChangeFunctionName: I,
437
437
  getMousedownFunctionName: v,
438
- getMouseupFunctionName: f
438
+ getMouseupFunctionName: f,
439
+ getClearFunctionName: P
439
440
  } = ue();
440
- function L(P, k) {
441
- c.value = k !== void 0 ? k : P, a.emit("update:modelValue", c.value), a.emit("change", c.value);
441
+ function w(M, V, B) {
442
+ c.value = V !== void 0 ? V : M, a.emit("update:modelValue", c.value), a.emit("change", c.value, {
443
+ newValue: M,
444
+ newModelValue: V,
445
+ parameters: B
446
+ });
447
+ }
448
+ function A(M) {
449
+ a.emit("mousedown", M);
442
450
  }
443
- function w(P) {
444
- a.emit("mousedown", P);
451
+ function j(M) {
452
+ a.emit("mouseup", M);
445
453
  }
446
- function N(P) {
447
- a.emit("mouseup", P);
454
+ function x() {
455
+ a.emit("update:modelValue", "");
456
+ }
457
+ function $(M) {
458
+ return (...V) => {
459
+ x(), typeof M == "function" && M(...V);
460
+ };
461
+ }
462
+ function _(M) {
463
+ return (V, B, R) => {
464
+ w(V, B, R), typeof M == "function" && M(V, B, R);
465
+ };
448
466
  }
449
- const x = $(() => {
450
- const P = b(F.value.type), k = C(F.value.type, F.value);
451
- k.focusOnCreated = t.focusOnCreated, k.selectOnCreated = t.selectOnCreated;
452
- const G = I(F.value.type);
453
- k[G] = L;
454
- const W = v(F.value.type);
455
- k[W] = w;
456
- const K = f(F.value.type);
457
- return k[K] = N, k.id = y.value, () => U(P, ce(k, {
467
+ const X = K(() => {
468
+ const M = b(C.value.type), V = h(C.value.type, C.value);
469
+ V.focusOnCreated = t.focusOnCreated, V.selectOnCreated = t.selectOnCreated;
470
+ const B = I(C.value.type), R = P(C.value.type);
471
+ R && (V[R] = $(V[R])), B && (V[B] = _(V[B]));
472
+ const D = v(C.value.type);
473
+ V[D] = A;
474
+ const Y = f(C.value.type);
475
+ return V[Y] = j, V.id = y.value, () => N(M, ce(V, {
458
476
  modelValue: c.value,
459
- "onUpdate:modelValue": (X) => c.value = X
477
+ "onUpdate:modelValue": (Z) => c.value = Z
460
478
  }), null);
461
479
  });
462
- return Y([() => t.id, () => t.editor, () => t.modelValue], ([P, k, G]) => {
463
- y.value = P, F.value = k, c.value = G;
464
- }), () => x.value();
480
+ return S([() => t.id, () => t.editor, () => t.modelValue], ([M, V, B]) => {
481
+ y.value = M, C.value = V, c.value = B;
482
+ }), () => X.value();
465
483
  }
466
484
  });
467
485
  function Ht(t, a) {
468
486
  function y(v, f = null) {
469
487
  if (f)
470
488
  return f;
471
- const L = t.getComponentById(a);
472
- return t.selectNode(L, (w) => w.id === v);
489
+ const P = t.getComponentById(a);
490
+ return t.selectNode(P, (w) => w.id === v);
473
491
  }
474
- function F(v) {
492
+ function C(v) {
475
493
  const f = t.getComponentById(v);
476
494
  return !(!f || !f.componentType || !f.componentType.startsWith("form"));
477
495
  }
@@ -479,47 +497,47 @@ function Ht(t, a) {
479
497
  const f = new Set(v);
480
498
  return Array.from(f).length === 1;
481
499
  }
482
- function C(v) {
483
- const f = y(v.id), L = tt(t), w = [];
484
- L.getResonseFormLayoutConfig(f, w, 1);
485
- const N = w.map((R) => R.columnInSM), x = w.map((R) => R.columnInMD), P = w.map((R) => R.columnInLG), k = w.map((R) => R.columnInEL), G = c(N) ? N[0] : 0, W = c(x) ? x[0] : 0, K = c(P) ? P[0] : 0, X = c(k) ? k[0] : 0;
500
+ function h(v) {
501
+ const f = y(v.id), P = tt(t), w = [];
502
+ P.getResonseFormLayoutConfig(f, w, 1);
503
+ const A = w.map((B) => B.columnInSM), j = w.map((B) => B.columnInMD), x = w.map((B) => B.columnInLG), $ = w.map((B) => B.columnInEL), _ = c(A) ? A[0] : 0, X = c(j) ? j[0] : 0, M = c(x) ? x[0] : 0, V = c($) ? $[0] : 0;
486
504
  return {
487
- uniqueColClassInSM: G,
488
- uniqueColClassInMD: W,
489
- uniqueColClassInLG: K,
490
- uniqueColClassInEL: X
505
+ uniqueColClassInSM: _,
506
+ uniqueColClassInMD: X,
507
+ uniqueColClassInLG: M,
508
+ uniqueColClassInEL: V
491
509
  };
492
510
  }
493
511
  function b(v, f) {
494
- let L, w, N, x, P = [];
512
+ let P, w, A, j, x = [];
495
513
  if (v) {
496
- const R = v.split(" "), _ = R.filter((D) => D.startsWith("col-"));
497
- L = _.find((D) => /^col-([1-9]|10|11|12)$/.test(D)), w = _.find((D) => /^col-md-([1-9]|10|11|12)$/.test(D)), N = _.find((D) => /^col-xl-([1-9]|10|11|12)$/.test(D)), x = _.find((D) => /^col-el-([1-9]|10|11|12)$/.test(D)), P = R.filter((D) => !D.startsWith("col-"));
514
+ const B = v.split(" "), R = B.filter((D) => D.startsWith("col-"));
515
+ P = R.find((D) => /^col-([1-9]|10|11|12)$/.test(D)), w = R.find((D) => /^col-md-([1-9]|10|11|12)$/.test(D)), A = R.find((D) => /^col-xl-([1-9]|10|11|12)$/.test(D)), j = R.find((D) => /^col-el-([1-9]|10|11|12)$/.test(D)), x = B.filter((D) => !D.startsWith("col-"));
498
516
  }
499
- const k = f.uniqueColClassInSM ? "col-" + f.uniqueColClassInSM : L, G = f.uniqueColClassInMD ? "col-md-" + f.uniqueColClassInMD : w, W = f.uniqueColClassInLG ? "col-xl-" + f.uniqueColClassInLG : N, K = f.uniqueColClassInEL ? "col-el-" + f.uniqueColClassInEL : x;
500
- return [k, G, W, K].concat(P).join(" ");
517
+ const $ = f.uniqueColClassInSM ? "col-" + f.uniqueColClassInSM : P, _ = f.uniqueColClassInMD ? "col-md-" + f.uniqueColClassInMD : w, X = f.uniqueColClassInLG ? "col-xl-" + f.uniqueColClassInLG : A, M = f.uniqueColClassInEL ? "col-el-" + f.uniqueColClassInEL : j;
518
+ return [$, _, X, M].concat(x).join(" ");
501
519
  }
502
- function I(v, f, L) {
503
- v = y(L, v), v.contents.forEach((w) => {
520
+ function I(v, f, P) {
521
+ v = y(P, v), v.contents.forEach((w) => {
504
522
  if (w.type === ne.fieldset.type) {
505
523
  I(w, f, w.id);
506
524
  return;
507
525
  }
508
526
  w.appearance || (w.appearance = {});
509
- const N = w.appearance.class;
510
- w.appearance.class = b(N, f);
527
+ const A = w.appearance.class;
528
+ w.appearance.class = b(A, f);
511
529
  });
512
530
  }
513
- return { checkIsInFormComponent: F, assembleUnifiedLayoutContext: C, changeFormControlsByUnifiedLayoutConfig: I };
531
+ return { checkIsInFormComponent: C, assembleUnifiedLayoutContext: h, changeFormControlsByUnifiedLayoutConfig: I };
514
532
  }
515
533
  class eo extends Wt {
516
534
  constructor(a, y) {
517
535
  super(a, y);
518
536
  }
519
537
  getPropertyConfig(a, y) {
520
- const F = this;
538
+ const C = this;
521
539
  this.propertyConfig.categories.basic = this.getBasicPropConfig(a);
522
- const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: C, changeFormControlsByUnifiedLayoutConfig: b } = Ht(this.formSchemaUtils, this.componentId), I = this.getAppearanceConfig(a), v = c(this.componentId);
540
+ const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: h, changeFormControlsByUnifiedLayoutConfig: b } = Ht(this.formSchemaUtils, this.componentId), I = this.getAppearanceConfig(a), v = c(this.componentId);
523
541
  return I.properties.adaptForLanguage = {
524
542
  title: "控件布局响应国际化",
525
543
  description: "启用国际化后:简体中文、繁体中文环境下控件标签与输入框在一行展示,其他语言环境下控件标签与输入框上下排列。",
@@ -537,39 +555,39 @@ class eo extends Wt {
537
555
  refreshPanelAfterChanged: !0,
538
556
  editor: {
539
557
  type: "response-form-layout-setting",
540
- initialState: C(a)
558
+ initialState: h(a)
541
559
  }
542
- }, I.setPropertyRelates = function(f, L) {
560
+ }, I.setPropertyRelates = function(f, P) {
543
561
  if (f)
544
562
  switch (f && f.propertyID) {
545
563
  case "unifiedLayout": {
546
- b(null, f.propertyValue, a.id), F.updateElementByParentContainer(a.id, y);
564
+ b(null, f.propertyValue, a.id), C.updateElementByParentContainer(a.id, y);
547
565
  break;
548
566
  }
549
567
  case "labelAutoOverflow": {
550
- F.setLabelAutoOverflow(a, f.propertyValue);
568
+ C.setLabelAutoOverflow(a, f.propertyValue);
551
569
  break;
552
570
  }
553
571
  }
554
572
  }, this.propertyConfig.categories.appearance = I, this.propertyConfig.categories.behavior = this.getBehaviorConfig(a), this.propertyConfig;
555
573
  }
556
574
  setLabelAutoOverflow(a, y) {
557
- const F = this.formSchemaUtils.getComponentById(this.componentId), c = this.formSchemaUtils.selectNode(F, (C) => C.id === a.id);
558
- c && c.contents && c.contents.length && (c.contents.forEach((C) => {
559
- C.appearance || (C.appearance = {
575
+ const C = this.formSchemaUtils.getComponentById(this.componentId), c = this.formSchemaUtils.selectNode(C, (h) => h.id === a.id);
576
+ c && c.contents && c.contents.length && (c.contents.forEach((h) => {
577
+ h.appearance || (h.appearance = {
560
578
  class: ""
561
- }), C.appearance.class || (C.appearance.class = ""), y ? C.appearance.class.includes("farris-group-multi-label") || (C.appearance.class = C.appearance.class + " farris-group-multi-label") : C.appearance.class = C.appearance.class.replace("farris-group-multi-label", "").trim();
579
+ }), h.appearance.class || (h.appearance.class = ""), y ? h.appearance.class.includes("farris-group-multi-label") || (h.appearance.class = h.appearance.class + " farris-group-multi-label") : h.appearance.class = h.appearance.class.replace("farris-group-multi-label", "").trim();
562
580
  }), Gt());
563
581
  }
564
582
  }
565
583
  function Dn(t, a) {
566
- const y = t.schema, F = new jt(), { canMove: c, canAccept: C, canDelete: b } = F.getTemplateRule(t, a);
584
+ const y = t.schema, C = new jt(), { canMove: c, canAccept: h, canDelete: b } = C.getTemplateRule(t, a);
567
585
  function I(e, s) {
568
586
  const { sourceElement: l } = e, { componentInstance: d } = l, g = a == null ? void 0 : a.formSchemaUtils;
569
587
  if (!g)
570
588
  return !0;
571
- const p = g.getComponentById(d.value.belongedComponentId), h = g.getViewModelById(p.viewModel), m = g.getComponentById(t.componentInstance.value.belongedComponentId), u = g.getViewModelById(m.viewModel);
572
- return s ? h != null && h.id && (u != null && u.id) && h.id !== u.id ? h.bindTo === u.bindTo : !0 : (h == null ? void 0 : h.id) === (u == null ? void 0 : u.id);
589
+ const p = g.getComponentById(d.value.belongedComponentId), F = g.getViewModelById(p.viewModel), m = g.getComponentById(t.componentInstance.value.belongedComponentId), u = g.getViewModelById(m.viewModel);
590
+ return s ? F != null && F.id && (u != null && u.id) && F.id !== u.id ? F.bindTo === u.bindTo : !0 : (F == null ? void 0 : F.id) === (u == null ? void 0 : u.id);
573
591
  }
574
592
  function v(e) {
575
593
  const { bindingTargetId: s } = e;
@@ -579,7 +597,7 @@ function Dn(t, a) {
579
597
  return !!(p != null && p.schemaField);
580
598
  }
581
599
  function f(e) {
582
- const s = F.getComponentContext(t);
600
+ const s = C.getComponentContext(t);
583
601
  if (s && s.componentClassList && s.componentClassList.includes("f-form-layout") && s.componentClassList.includes("farris-form")) {
584
602
  if (e.sourceType === "control" && (e.componentCategory === "input" || e.componentType === "fieldset"))
585
603
  return !0;
@@ -593,35 +611,35 @@ function Dn(t, a) {
593
611
  }
594
612
  return !0;
595
613
  }
596
- function L(e) {
597
- return !(!$t().basalDragulaRuleForContainer(e, a) || !C || !f(e));
614
+ function P(e) {
615
+ return !(!$t().basalDragulaRuleForContainer(e, a) || !h || !f(e));
598
616
  }
599
617
  function w(e) {
600
618
  var u;
601
- const s = e.componentInstance, l = s.value.schema, d = a == null ? void 0 : a.formSchemaUtils, g = a == null ? void 0 : a.designViewModelUtils, p = d.getViewModelIdByComponentId(s.value.belongedComponentId), h = g.getDgViewModel(p), m = s.value.parent;
602
- if (m && ne.fieldset && ((u = m.schema) == null ? void 0 : u.type) === ne.fieldset.type && h) {
603
- const V = { groupId: null, groupName: null };
619
+ const s = e.componentInstance, l = s.value.schema, d = a == null ? void 0 : a.formSchemaUtils, g = a == null ? void 0 : a.designViewModelUtils, p = d.getViewModelIdByComponentId(s.value.belongedComponentId), F = g.getDgViewModel(p), m = s.value.parent;
620
+ if (m && ne.fieldset && ((u = m.schema) == null ? void 0 : u.type) === ne.fieldset.type && F) {
621
+ const T = { groupId: null, groupName: null };
604
622
  switch (l.binding.type) {
605
623
  case z.Form: {
606
- h.changeField(l.binding.field, V);
624
+ F.changeField(l.binding.field, T);
607
625
  break;
608
626
  }
609
627
  case z.Variable: {
610
- d.modifyViewModelFieldById(p, l.binding.field, V, !0);
628
+ d.modifyViewModelFieldById(p, l.binding.field, T, !0);
611
629
  break;
612
630
  }
613
631
  }
614
632
  }
615
633
  }
616
- function N(e, s, l) {
617
- const d = s.fields.find((u) => u.id === e), g = a == null ? void 0 : a.designViewModelUtils, p = g.getDgViewModel(s.id), h = p.fields.find((u) => u.id === e);
634
+ function A(e, s, l) {
635
+ const d = s.fields.find((u) => u.id === e), g = a == null ? void 0 : a.designViewModelUtils, p = g.getDgViewModel(s.id), F = p.fields.find((u) => u.id === e);
618
636
  p.removeField([e]);
619
637
  const m = g.getDgViewModel(l);
620
- m.addField(h), d.fieldSchema && m.changeField(h.id, d.fieldSchema);
638
+ m.addField(F), d.fieldSchema && m.changeField(F.id, d.fieldSchema);
621
639
  }
622
- function x(e, s, l, d = []) {
623
- const g = s.id, p = e.binding.field, h = s.fields.findIndex((u) => u.id === p);
624
- if (h > -1 && (l.fields.push(s.fields[h]), s.fields.splice(h, 1)), g === "root-viewmodel" && l.id !== "root-viewmodel") {
640
+ function j(e, s, l, d = []) {
641
+ const g = s.id, p = e.binding.field, F = s.fields.findIndex((u) => u.id === p);
642
+ if (F > -1 && (l.fields.push(s.fields[F]), s.fields.splice(F, 1)), g === "root-viewmodel" && l.id !== "root-viewmodel") {
625
643
  e.binding.path && !e.binding.path.includes("root-component.") && (e.binding.path = "root-component." + e.binding.path);
626
644
  return;
627
645
  }
@@ -632,8 +650,8 @@ function Dn(t, a) {
632
650
  const m = s.states.find((u) => u.id === p);
633
651
  m && (l.states = l.states ? l.states : [], l.states.findIndex((u) => u.id === m.id) < 0 && (l.states.push(m), d.push(m.id)));
634
652
  }
635
- function P(e, s, l, d = []) {
636
- var h;
653
+ function x(e, s, l, d = []) {
654
+ var F;
637
655
  if (!e)
638
656
  return;
639
657
  const g = s.id === "root-viewmodel" && l.id !== "root-viewmodel", p = l.id === "root-viewmodel" && s.id !== "root-viewmodel";
@@ -650,110 +668,110 @@ function Dn(t, a) {
650
668
  u.path = u.path.replace("root-component.", "");
651
669
  return;
652
670
  }
653
- const V = s.states.find((T) => T.id === u.field);
654
- if (V) {
655
- d.push(V.id), l.states = l.states ? l.states : [];
656
- const T = l.states.find((J) => J.code === V.code);
657
- if (T)
658
- u.field = T.id;
671
+ const T = s.states.find((k) => k.id === u.field);
672
+ if (T) {
673
+ d.push(T.id), l.states = l.states ? l.states : [];
674
+ const k = l.states.find((J) => J.code === T.code);
675
+ if (k)
676
+ u.field = k.id;
659
677
  else {
660
- const J = Object.assign({}, { newId: ae().guid() }, V);
678
+ const J = Object.assign({}, { newId: ae().guid() }, T);
661
679
  l.states.push(J), u.field = J.newId;
662
680
  }
663
681
  }
664
682
  }
665
- }), (h = l.states) != null && h.length && l.states.map((m) => {
683
+ }), (F = l.states) != null && F.length && l.states.map((m) => {
666
684
  m.newId && (m.id = m.newId, delete m.newId);
667
685
  });
668
686
  }
669
- function k(e, s, l) {
687
+ function $(e, s, l) {
670
688
  if (e && (s(e, l), e.contents))
671
689
  for (const d of e.contents)
672
- k(d, s, l);
690
+ $(d, s, l);
673
691
  }
674
- function G(e = [], s) {
692
+ function _(e = [], s) {
675
693
  if (!e.length)
676
694
  return;
677
695
  const l = a == null ? void 0 : a.formSchemaUtils, d = l.getComponentByViewModelId(s), g = [], p = (m, u) => {
678
- m && (Object.keys(m).forEach((V) => {
679
- const T = m[V];
680
- T && typeof T == "object" && T.type === z.Variable && e.includes(T.field) && !u.includes(T.field) && u.push(T.field);
696
+ m && (Object.keys(m).forEach((T) => {
697
+ const k = m[T];
698
+ k && typeof k == "object" && k.type === z.Variable && e.includes(k.field) && !u.includes(k.field) && u.push(k.field);
681
699
  }), m.editor && p(m.editor, u));
682
700
  };
683
- k(d, p, g);
684
- const h = l.getViewModelById(s);
701
+ $(d, p, g);
702
+ const F = l.getViewModelById(s);
685
703
  e.forEach((m) => {
686
- g.includes(m) || (h.states = h.states.filter((u) => u.id !== m));
704
+ g.includes(m) || (F.states = F.states.filter((u) => u.id !== m));
687
705
  });
688
706
  }
689
- function W(e) {
707
+ function X(e) {
690
708
  const s = ae().guid(), l = Object.assign({}, e, {
691
709
  id: s,
692
710
  code: e.code + s.slice(0, 4),
693
711
  name: e.name + s.slice(0, 4)
694
- }), p = (a == null ? void 0 : a.formSchemaUtils).getCommands().find((h) => h.id === e.cmpId);
712
+ }), p = (a == null ? void 0 : a.formSchemaUtils).getCommands().find((F) => F.id === e.cmpId);
695
713
  return p && p.refedHandlers.push({
696
714
  host: s,
697
715
  handler: e.handlerName
698
716
  }), l;
699
717
  }
700
- function K(e, s, l) {
701
- var V, T, J;
702
- const d = {}, g = e.type === "form-group" && e.editor ? e.editor.type : e.type, p = (V = Ot[g]) == null ? void 0 : V.events;
718
+ function M(e, s, l) {
719
+ var T, k, J;
720
+ const d = {}, g = e.type === "form-group" && e.editor ? e.editor.type : e.type, p = (T = Ot[g]) == null ? void 0 : T.events;
703
721
  if (!p)
704
722
  return;
705
723
  Object.keys(e).forEach((Q) => {
706
- const j = Object.keys(p).find((O) => O === Q);
707
- if (j && e[j]) {
708
- const O = s.commands.find((q) => q.code === e[j]);
709
- if (O) {
710
- let q = d[O.code];
711
- q || (q = W(O), d[O.code] = q, l.commands.push(q)), e[j] = q.code;
724
+ const W = Object.keys(p).find((G) => G === Q);
725
+ if (W && e[W]) {
726
+ const G = s.commands.find((O) => O.code === e[W]);
727
+ if (G) {
728
+ let O = d[G.code];
729
+ O || (O = X(G), d[G.code] = O, l.commands.push(O)), e[W] = O.code;
712
730
  }
713
731
  }
714
732
  });
715
733
  const m = (a == null ? void 0 : a.designViewModelUtils).getDgViewModel(l.id), u = ["valueChanging", "valueChanged"];
716
- if (((T = e.binding) == null ? void 0 : T.type) === z.Form) {
717
- const Q = (J = l.fields) == null ? void 0 : J.find((j) => j.id === e.binding.field);
718
- Q && u.forEach((j) => {
719
- if (Q[j]) {
720
- const O = s.commands.find((q) => q.code === Q[j]);
721
- if (!O)
734
+ if (((k = e.binding) == null ? void 0 : k.type) === z.Form) {
735
+ const Q = (J = l.fields) == null ? void 0 : J.find((W) => W.id === e.binding.field);
736
+ Q && u.forEach((W) => {
737
+ if (Q[W]) {
738
+ const G = s.commands.find((O) => O.code === Q[W]);
739
+ if (!G)
722
740
  return;
723
- if (d[O.code])
724
- m.changeField(Q.id, { [j]: d[O.code].code });
741
+ if (d[G.code])
742
+ m.changeField(Q.id, { [W]: d[G.code].code });
725
743
  else {
726
- const q = W(O);
727
- d[O.code] = q, l.commands.push(q), m.changeField(Q.id, { [j]: q.code });
744
+ const O = X(G);
745
+ d[G.code] = O, l.commands.push(O), m.changeField(Q.id, { [W]: O.code });
728
746
  }
729
747
  }
730
748
  });
731
749
  }
732
750
  }
733
- function X(e) {
734
- const s = a == null ? void 0 : a.formSchemaUtils, l = e.componentInstance, d = l.value.schema, g = s.getViewModelIdByComponentId(l.value.belongedComponentId), p = s.getViewModelById(g), h = s.getComponentById(t.componentInstance.value.belongedComponentId), m = s.getViewModelById(h.viewModel);
751
+ function V(e) {
752
+ const s = a == null ? void 0 : a.formSchemaUtils, l = e.componentInstance, d = l.value.schema, g = s.getViewModelIdByComponentId(l.value.belongedComponentId), p = s.getViewModelById(g), F = s.getComponentById(t.componentInstance.value.belongedComponentId), m = s.getViewModelById(F.viewModel);
735
753
  if (g !== m.id) {
736
- const u = d.binding.type, V = d.binding.field, T = [];
754
+ const u = d.binding.type, T = d.binding.field, k = [];
737
755
  switch (u) {
738
756
  case z.Form: {
739
- N(V, p, m.id);
757
+ A(T, p, m.id);
740
758
  break;
741
759
  }
742
760
  case z.Variable: {
743
- x(d, p, m, T);
761
+ j(d, p, m, k);
744
762
  break;
745
763
  }
746
764
  }
747
- P(d, p, m, T), P(d.editor, p, m, T), K(d, p, m), g !== "root-viewmodel" && G(T, g);
765
+ x(d, p, m, k), x(d.editor, p, m, k), M(d, p, m), g !== "root-viewmodel" && _(k, g);
748
766
  }
749
767
  }
750
- function R(e) {
768
+ function B(e) {
751
769
  if (!e || !e.componentInstance)
752
770
  return;
753
771
  const l = e.componentInstance.value.schema;
754
- !l.binding || !l.binding.field || (w(e), X(e));
772
+ !l.binding || !l.binding.field || (w(e), V(e));
755
773
  }
756
- function _() {
774
+ function R() {
757
775
  return y.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
758
776
  }
759
777
  function D(e) {
@@ -778,7 +796,7 @@ function Dn(t, a) {
778
796
  }
779
797
  return s;
780
798
  }
781
- function S(e) {
799
+ function Y(e) {
782
800
  const s = t.componentInstance.value.getBelongedComponentInstance(t.componentInstance);
783
801
  if (s && s.schema && s.schema.componentType) {
784
802
  const { formColumns: l } = s.schema;
@@ -786,48 +804,48 @@ function Dn(t, a) {
786
804
  d = a == null ? void 0 : a.formSchemaUtils.getControlClassByFormUnifiedLayout(d, s.schema.id, t.schema), e.appearance || (e.appearance = {}), e.appearance.class = d;
787
805
  }
788
806
  }
789
- function H(e, s, l, d) {
807
+ function Z(e, s, l, d) {
790
808
  const { bindingSourceContext: g, parentComponentInstance: p } = e;
791
809
  if (g != null && g.entityFieldNode && p) {
792
- const h = a == null ? void 0 : a.designViewModelUtils, u = (a == null ? void 0 : a.formSchemaUtils).getViewModelIdByComponentId(p.belongedComponentId), V = h.getDgViewModel(u);
793
- V.removeField([g.entityFieldNode.id]), V.addField(g.designViewModelField), s && V.changeField(g.entityFieldNode.id, { editor: { $type: s }, groupId: l, groupName: d });
810
+ const F = a == null ? void 0 : a.designViewModelUtils, u = (a == null ? void 0 : a.formSchemaUtils).getViewModelIdByComponentId(p.belongedComponentId), T = F.getDgViewModel(u);
811
+ T.removeField([g.entityFieldNode.id]), T.addField(g.designViewModelField), s && T.changeField(g.entityFieldNode.id, { editor: { $type: s }, groupId: l, groupName: d });
794
812
  }
795
813
  }
796
814
  function te(e, s) {
797
- var p, h, m;
815
+ var p, F, m;
798
816
  const l = y;
799
817
  if ((l.appearance && l.appearance.class || "").split(" ").includes("f-form-layout") && e.componentCategory === "input") {
800
818
  const { label: u } = e;
801
- let V;
802
- const T = a == null ? void 0 : a.controlCreatorUtils;
803
- return (p = e.bindingSourceContext) != null && p.entityFieldNode ? V = T.setFormFieldProperty((h = e.bindingSourceContext) == null ? void 0 : h.entityFieldNode, s == null ? void 0 : s.type) : (V = T.createFormGroupWithoutField(s == null ? void 0 : s.type), V.label = u), S(V), H(e, (m = V.editor) == null ? void 0 : m.type), V;
819
+ let T;
820
+ const k = a == null ? void 0 : a.controlCreatorUtils;
821
+ return (p = e.bindingSourceContext) != null && p.entityFieldNode ? T = k.setFormFieldProperty((F = e.bindingSourceContext) == null ? void 0 : F.entityFieldNode, s == null ? void 0 : s.type) : (T = k.createFormGroupWithoutField(s == null ? void 0 : s.type), T.label = u), Y(T), Z(e, (m = T.editor) == null ? void 0 : m.type), T;
804
822
  }
805
823
  return s;
806
824
  }
807
825
  function ee() {
808
826
  return c;
809
827
  }
810
- function E() {
828
+ function U() {
811
829
  return b;
812
830
  }
813
- function A() {
831
+ function q() {
814
832
  return !1;
815
833
  }
816
- function B(e) {
834
+ function L(e) {
817
835
  return new eo(e, a).getPropertyConfig(y, t.componentInstance.value);
818
836
  }
819
837
  return {
820
- canAccepts: L,
821
- checkCanDeleteComponent: E,
838
+ canAccepts: P,
839
+ checkCanDeleteComponent: U,
822
840
  checkCanMoveComponent: ee,
823
- getStyles: _,
824
- getPropsConfig: B,
825
- hideNestedPaddingInDesginerView: A,
826
- onAcceptMovedChildElement: R,
841
+ getStyles: R,
842
+ getPropsConfig: L,
843
+ hideNestedPaddingInDesginerView: q,
844
+ onAcceptMovedChildElement: B,
827
845
  onResolveNewComponentSchema: te,
828
- moveInputBetweenComponent: X,
829
- resolveFormGroupAppearance: S,
830
- syncFieldToViewModel: H
846
+ moveInputBetweenComponent: V,
847
+ resolveFormGroupAppearance: Y,
848
+ syncFieldToViewModel: Z
831
849
  };
832
850
  }
833
851
  oe.install = (t) => {