@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.
- package/components/avatar/index.esm.js +10 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +178 -176
- package/components/calendar/index.umd.cjs +2 -2
- package/components/collection-property-editor/index.esm.js +48 -46
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +319 -300
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +2287 -1161
- package/components/comment/index.umd.cjs +7 -7
- package/components/component/index.esm.js +3 -1
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +926 -901
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +898 -899
- package/components/data-view/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +3 -1
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +239 -221
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +11 -9
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/expression-editor/index.esm.js +1299 -1279
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +731 -678
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +1792 -1772
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/image/index.esm.js +246 -240
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +9 -7
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +1 -1
- package/components/list-view/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +2009 -886
- package/components/locale/index.umd.cjs +6 -6
- package/components/number-range/index.esm.js +190 -181
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +734 -714
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +60 -49
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +2461 -2500
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +238 -238
- package/components/schema-selector/index.umd.cjs +4 -4
- package/components/section/index.esm.js +217 -302
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +1793 -1773
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/transfer/index.esm.js +155 -155
- package/components/transfer/index.umd.cjs +3 -3
- package/designer/data-grid/index.esm.js +895 -867
- package/designer/data-grid/index.umd.cjs +5 -5
- package/designer/data-view/index.esm.js +145 -144
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/drawer/index.esm.js +73 -71
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +87 -65
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +14 -3
- package/designer/farris-designer.all.umd.cjs +3 -3
- package/designer/input-group/index.esm.js +34 -14
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1 -1
- package/designer/list-view/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +15 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +129 -119
- package/designer/section/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +140 -131
- package/designer/time-picker/index.umd.cjs +1 -1
- package/farris.all.esm.js +13578 -12394
- package/farris.all.umd.cjs +26 -26
- package/index.css +1 -1
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +12 -10
- package/locales/designer/zh-CHS.json +19 -17
- package/locales/designer/zh-CHT.json +19 -17
- package/locales/ui/en.json +4 -2
- package/locales/ui/zh-CHS.json +11 -9
- package/locales/ui/zh-CHT.json +11 -9
- package/package.json +1 -1
- package/package.zip +0 -0
- package/types/combo-list/src/composition/types.d.ts +1 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
- package/types/condition/src/composition/use-field-config.d.ts +1 -1
- package/types/condition/src/condition.props.d.ts +1 -1
- package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
- package/types/image/src/property-config/image.property-config.d.ts +5 -5
- package/types/locale/src/lib/locale.service.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
- package/types/section/src/designer/section.design.props.d.ts +17 -0
- package/types/section/src/section.props.d.ts +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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__ */
|
|
91
|
+
}, oe = /* @__PURE__ */ H({
|
|
92
92
|
name: "FResponseForm",
|
|
93
93
|
props: Kt,
|
|
94
94
|
emits: [],
|
|
95
95
|
setup(t, a) {
|
|
96
|
-
const y =
|
|
97
|
-
const c = fe.getLocale(),
|
|
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
|
|
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(
|
|
102
|
+
return () => t.visible && me(N("div", {
|
|
103
103
|
ref: y,
|
|
104
|
-
class:
|
|
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__ */
|
|
140
|
+
}, Jt = /* @__PURE__ */ H({
|
|
141
141
|
name: "FDynamicFormLabel",
|
|
142
142
|
props: _t,
|
|
143
143
|
emits: [],
|
|
144
144
|
setup(t, a) {
|
|
145
|
-
|
|
146
|
-
const y =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
c.value =
|
|
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 =
|
|
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" || !
|
|
158
|
-
})), f =
|
|
159
|
-
return () => f.value &&
|
|
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 &&
|
|
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:
|
|
167
|
-
}, null),
|
|
166
|
+
title: h.value
|
|
167
|
+
}, null), N("span", {
|
|
168
168
|
class: "farris-label-text"
|
|
169
|
-
}, [y.value &&
|
|
169
|
+
}, [y.value && N("span", {
|
|
170
170
|
class: "farris-label-info text-danger"
|
|
171
|
-
}, [pe("*")]), t.showType === "visible" &&
|
|
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
|
|
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
|
|
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:
|
|
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__ */
|
|
303
|
+
}, Zt = /* @__PURE__ */ H({
|
|
304
304
|
name: "FValidationMessage",
|
|
305
305
|
props: Yt,
|
|
306
306
|
emits: [],
|
|
307
307
|
setup(t, a) {
|
|
308
|
-
const y =
|
|
309
|
-
|
|
310
|
-
y.value =
|
|
308
|
+
const y = E(t.errors);
|
|
309
|
+
S(() => t.errors, (h) => {
|
|
310
|
+
y.value = h;
|
|
311
311
|
});
|
|
312
|
-
const
|
|
312
|
+
const C = E(!0), c = K(() => {
|
|
313
313
|
if (y.value) {
|
|
314
|
-
const
|
|
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
|
|
318
|
+
return h.length ? h.join(" ") : "";
|
|
319
319
|
}
|
|
320
320
|
return "";
|
|
321
321
|
});
|
|
322
|
-
return () => c.value &&
|
|
322
|
+
return () => c.value && N("div", {
|
|
323
323
|
class: "farris-feedback f-state-invalid",
|
|
324
|
-
onClick: () =>
|
|
325
|
-
}, [!
|
|
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),
|
|
327
|
+
}, null), C.value && N("span", {
|
|
328
328
|
class: "f-feedback-message"
|
|
329
329
|
}, [c.value])]);
|
|
330
330
|
}
|
|
331
|
-
}), le = /* @__PURE__ */
|
|
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 =
|
|
338
|
-
|
|
339
|
-
const w =
|
|
340
|
-
resolveEditorProps:
|
|
341
|
-
resolveEditorType:
|
|
342
|
-
getChangeFunctionName:
|
|
343
|
-
getClearFunctionName:
|
|
344
|
-
} = ue(),
|
|
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
|
-
})),
|
|
349
|
+
})), V = K(() => {
|
|
350
350
|
if (t.fill)
|
|
351
351
|
return {
|
|
352
352
|
maxWidth: "none"
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
|
-
function
|
|
356
|
-
b.value =
|
|
357
|
-
newValue:
|
|
358
|
-
newModelValue:
|
|
359
|
-
parameters:
|
|
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(
|
|
366
|
-
return (...
|
|
367
|
-
|
|
365
|
+
function D(U) {
|
|
366
|
+
return (...q) => {
|
|
367
|
+
R(), typeof U == "function" && U(...q);
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return (
|
|
372
|
-
|
|
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
|
|
376
|
-
const
|
|
377
|
-
return s && (
|
|
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
|
-
},
|
|
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
|
|
385
|
+
return N(Zt, {
|
|
386
386
|
id: `${y.value}-validation-message`,
|
|
387
|
-
errors:
|
|
387
|
+
errors: A.value
|
|
388
388
|
}, null);
|
|
389
389
|
}
|
|
390
|
-
return
|
|
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 =
|
|
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
|
-
}), () =>
|
|
395
|
+
}), () => P.value && N("div", {
|
|
396
396
|
id: `${y.value}-form-group`,
|
|
397
|
-
class:
|
|
397
|
+
class: C.value,
|
|
398
398
|
style: t.customStyle
|
|
399
|
-
}, [
|
|
399
|
+
}, [N("div", {
|
|
400
400
|
class: "farris-group-wrap",
|
|
401
|
-
style:
|
|
402
|
-
}, [
|
|
403
|
-
class:
|
|
404
|
-
}, [
|
|
401
|
+
style: V.value
|
|
402
|
+
}, [N("div", {
|
|
403
|
+
class: M.value
|
|
404
|
+
}, [N(Jt, {
|
|
405
405
|
id: `${y.value}-lable`,
|
|
406
|
-
showType:
|
|
406
|
+
showType: j.value,
|
|
407
407
|
required: v.value,
|
|
408
|
-
text:
|
|
409
|
-
title:
|
|
410
|
-
}, null),
|
|
408
|
+
text: h.value,
|
|
409
|
+
title: h.value
|
|
410
|
+
}, null), N("div", {
|
|
411
411
|
class: "farris-input-wrap"
|
|
412
|
-
}, [
|
|
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__ */
|
|
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 =
|
|
434
|
-
resolveEditorProps:
|
|
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
|
|
441
|
-
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
|
|
444
|
-
a.emit("
|
|
451
|
+
function j(M) {
|
|
452
|
+
a.emit("mouseup", M);
|
|
445
453
|
}
|
|
446
|
-
function
|
|
447
|
-
a.emit("
|
|
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
|
|
450
|
-
const
|
|
451
|
-
|
|
452
|
-
const
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
return
|
|
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": (
|
|
477
|
+
"onUpdate:modelValue": (Z) => c.value = Z
|
|
460
478
|
}), null);
|
|
461
479
|
});
|
|
462
|
-
return
|
|
463
|
-
y.value =
|
|
464
|
-
}), () =>
|
|
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
|
|
472
|
-
return t.selectNode(
|
|
489
|
+
const P = t.getComponentById(a);
|
|
490
|
+
return t.selectNode(P, (w) => w.id === v);
|
|
473
491
|
}
|
|
474
|
-
function
|
|
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
|
|
483
|
-
const f = y(v.id),
|
|
484
|
-
|
|
485
|
-
const
|
|
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:
|
|
488
|
-
uniqueColClassInMD:
|
|
489
|
-
uniqueColClassInLG:
|
|
490
|
-
uniqueColClassInEL:
|
|
505
|
+
uniqueColClassInSM: _,
|
|
506
|
+
uniqueColClassInMD: X,
|
|
507
|
+
uniqueColClassInLG: M,
|
|
508
|
+
uniqueColClassInEL: V
|
|
491
509
|
};
|
|
492
510
|
}
|
|
493
511
|
function b(v, f) {
|
|
494
|
-
let
|
|
512
|
+
let P, w, A, j, x = [];
|
|
495
513
|
if (v) {
|
|
496
|
-
const
|
|
497
|
-
|
|
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
|
|
500
|
-
return [
|
|
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,
|
|
503
|
-
v = y(
|
|
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
|
|
510
|
-
w.appearance.class = b(
|
|
527
|
+
const A = w.appearance.class;
|
|
528
|
+
w.appearance.class = b(A, f);
|
|
511
529
|
});
|
|
512
530
|
}
|
|
513
|
-
return { checkIsInFormComponent:
|
|
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
|
|
538
|
+
const C = this;
|
|
521
539
|
this.propertyConfig.categories.basic = this.getBasicPropConfig(a);
|
|
522
|
-
const { checkIsInFormComponent: c, assembleUnifiedLayoutContext:
|
|
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:
|
|
558
|
+
initialState: h(a)
|
|
541
559
|
}
|
|
542
|
-
}, I.setPropertyRelates = function(f,
|
|
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),
|
|
564
|
+
b(null, f.propertyValue, a.id), C.updateElementByParentContainer(a.id, y);
|
|
547
565
|
break;
|
|
548
566
|
}
|
|
549
567
|
case "labelAutoOverflow": {
|
|
550
|
-
|
|
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
|
|
558
|
-
c && c.contents && c.contents.length && (c.contents.forEach((
|
|
559
|
-
|
|
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
|
-
}),
|
|
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,
|
|
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),
|
|
572
|
-
return s ?
|
|
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 =
|
|
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
|
|
597
|
-
return !(!$t().basalDragulaRuleForContainer(e, a) || !
|
|
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),
|
|
602
|
-
if (m && ne.fieldset && ((u = m.schema) == null ? void 0 : u.type) === ne.fieldset.type &&
|
|
603
|
-
const
|
|
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
|
-
|
|
624
|
+
F.changeField(l.binding.field, T);
|
|
607
625
|
break;
|
|
608
626
|
}
|
|
609
627
|
case z.Variable: {
|
|
610
|
-
d.modifyViewModelFieldById(p, l.binding.field,
|
|
628
|
+
d.modifyViewModelFieldById(p, l.binding.field, T, !0);
|
|
611
629
|
break;
|
|
612
630
|
}
|
|
613
631
|
}
|
|
614
632
|
}
|
|
615
633
|
}
|
|
616
|
-
function
|
|
617
|
-
const d = s.fields.find((u) => u.id === e), g = a == null ? void 0 : a.designViewModelUtils, p = g.getDgViewModel(s.id),
|
|
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(
|
|
638
|
+
m.addField(F), d.fieldSchema && m.changeField(F.id, d.fieldSchema);
|
|
621
639
|
}
|
|
622
|
-
function
|
|
623
|
-
const g = s.id, p = e.binding.field,
|
|
624
|
-
if (
|
|
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
|
|
636
|
-
var
|
|
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
|
|
654
|
-
if (
|
|
655
|
-
d.push(
|
|
656
|
-
const
|
|
657
|
-
if (
|
|
658
|
-
u.field =
|
|
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() },
|
|
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
|
-
}), (
|
|
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
|
|
687
|
+
function $(e, s, l) {
|
|
670
688
|
if (e && (s(e, l), e.contents))
|
|
671
689
|
for (const d of e.contents)
|
|
672
|
-
|
|
690
|
+
$(d, s, l);
|
|
673
691
|
}
|
|
674
|
-
function
|
|
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((
|
|
679
|
-
const
|
|
680
|
-
|
|
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
|
-
|
|
684
|
-
const
|
|
701
|
+
$(d, p, g);
|
|
702
|
+
const F = l.getViewModelById(s);
|
|
685
703
|
e.forEach((m) => {
|
|
686
|
-
g.includes(m) || (
|
|
704
|
+
g.includes(m) || (F.states = F.states.filter((u) => u.id !== m));
|
|
687
705
|
});
|
|
688
706
|
}
|
|
689
|
-
function
|
|
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((
|
|
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
|
|
701
|
-
var
|
|
702
|
-
const d = {}, g = e.type === "form-group" && e.editor ? e.editor.type : e.type, p = (
|
|
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
|
|
707
|
-
if (
|
|
708
|
-
const
|
|
709
|
-
if (
|
|
710
|
-
let
|
|
711
|
-
|
|
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 (((
|
|
717
|
-
const Q = (J = l.fields) == null ? void 0 : J.find((
|
|
718
|
-
Q && u.forEach((
|
|
719
|
-
if (Q[
|
|
720
|
-
const
|
|
721
|
-
if (!
|
|
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[
|
|
724
|
-
m.changeField(Q.id, { [
|
|
741
|
+
if (d[G.code])
|
|
742
|
+
m.changeField(Q.id, { [W]: d[G.code].code });
|
|
725
743
|
else {
|
|
726
|
-
const
|
|
727
|
-
d[
|
|
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
|
|
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),
|
|
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,
|
|
754
|
+
const u = d.binding.type, T = d.binding.field, k = [];
|
|
737
755
|
switch (u) {
|
|
738
756
|
case z.Form: {
|
|
739
|
-
|
|
757
|
+
A(T, p, m.id);
|
|
740
758
|
break;
|
|
741
759
|
}
|
|
742
760
|
case z.Variable: {
|
|
743
|
-
|
|
761
|
+
j(d, p, m, k);
|
|
744
762
|
break;
|
|
745
763
|
}
|
|
746
764
|
}
|
|
747
|
-
|
|
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
|
|
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),
|
|
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
|
|
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
|
|
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
|
|
793
|
-
|
|
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,
|
|
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
|
|
802
|
-
const
|
|
803
|
-
return (p = e.bindingSourceContext) != null && p.entityFieldNode ?
|
|
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
|
|
828
|
+
function U() {
|
|
811
829
|
return b;
|
|
812
830
|
}
|
|
813
|
-
function
|
|
831
|
+
function q() {
|
|
814
832
|
return !1;
|
|
815
833
|
}
|
|
816
|
-
function
|
|
834
|
+
function L(e) {
|
|
817
835
|
return new eo(e, a).getPropertyConfig(y, t.componentInstance.value);
|
|
818
836
|
}
|
|
819
837
|
return {
|
|
820
|
-
canAccepts:
|
|
821
|
-
checkCanDeleteComponent:
|
|
838
|
+
canAccepts: P,
|
|
839
|
+
checkCanDeleteComponent: U,
|
|
822
840
|
checkCanMoveComponent: ee,
|
|
823
|
-
getStyles:
|
|
824
|
-
getPropsConfig:
|
|
825
|
-
hideNestedPaddingInDesginerView:
|
|
826
|
-
onAcceptMovedChildElement:
|
|
841
|
+
getStyles: R,
|
|
842
|
+
getPropsConfig: L,
|
|
843
|
+
hideNestedPaddingInDesginerView: q,
|
|
844
|
+
onAcceptMovedChildElement: B,
|
|
827
845
|
onResolveNewComponentSchema: te,
|
|
828
|
-
moveInputBetweenComponent:
|
|
829
|
-
resolveFormGroupAppearance:
|
|
830
|
-
syncFieldToViewModel:
|
|
846
|
+
moveInputBetweenComponent: V,
|
|
847
|
+
resolveFormGroupAppearance: Y,
|
|
848
|
+
syncFieldToViewModel: Z
|
|
831
849
|
};
|
|
832
850
|
}
|
|
833
851
|
oe.install = (t) => {
|