@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
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 +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
2
|
var Be = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var te = (e, t, n) => Be(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { dynamicFormGroupProps as
|
|
5
|
-
import { schemaMap as
|
|
6
|
-
import { defineComponent as ne, ref as A, inject as Y, onMounted as ie, computed as H, withDirectives as Ue, createVNode as x, resolveDirective as je, Fragment as qe, createTextVNode as X, mergeProps as
|
|
4
|
+
import { dynamicFormGroupProps as he, FDynamicFormLabel as Ee, responseFormProps as Pe, dynamicFormInputProps as Se, FDynamicFormGroup as De, FResponseForm as $e, FDynamicFormInput as Le } from "../../components/dynamic-form/index.esm.js";
|
|
5
|
+
import { schemaMap as Ne, propertyConfigSchemaMapForDesigner as Oe, resolveAppearance as Ae, createPropsResolver as re, createFormGroupEditorResolver as Re } from "../../components/dynamic-resolver/index.esm.js";
|
|
6
|
+
import { defineComponent as ne, ref as A, inject as Y, onMounted as ie, computed as H, withDirectives as Ue, createVNode as x, resolveDirective as je, Fragment as qe, createTextVNode as X, mergeProps as be, watch as Ge } from "vue";
|
|
7
7
|
import { DgControl as u, refreshCanvas as ze, UseTemplateDragAndDropRules as Ze, useDragulaCommonRule as We, useDesignerComponent as ce } from "../../components/designer-canvas/index.esm.js";
|
|
8
8
|
import { useGuid as pe, areaResponseDirective as Je, useThirdComponent as Ce, useTextBoxDesign as _e, FormSchemaEntityField$Type as de, FormSchemaEntityFieldTypeName as me } from "../../components/common/index.esm.js";
|
|
9
9
|
import { BaseControlProperty as Xe, FormBindingType as K, InputBaseProperty as Qe } from "../../components/property-panel/index.esm.js";
|
|
10
10
|
import { useResponseLayoutEditorSetting as Ye } from "../response-layout-editor/index.esm.js";
|
|
11
11
|
import "../../components/accordion/index.esm.js";
|
|
12
|
-
import "
|
|
12
|
+
import "../avatar/index.esm.js";
|
|
13
13
|
import "../button-edit/index.esm.js";
|
|
14
14
|
import "../../components/button-group/index.esm.js";
|
|
15
15
|
import "../../components/button/index.esm.js";
|
|
@@ -33,7 +33,7 @@ import "../../components/list-nav/index.esm.js";
|
|
|
33
33
|
import "../list-view/index.esm.js";
|
|
34
34
|
import "../../components/lookup/index.esm.js";
|
|
35
35
|
import "../../components/language-textbox/index.esm.js";
|
|
36
|
-
import "
|
|
36
|
+
import "../nav/index.esm.js";
|
|
37
37
|
import "../number-spinner/index.esm.js";
|
|
38
38
|
import "../../components/number-range/index.esm.js";
|
|
39
39
|
import "../../components/order/index.esm.js";
|
|
@@ -111,7 +111,8 @@ const Fe = {
|
|
|
111
111
|
errors: { type: Object, default: null },
|
|
112
112
|
fill: { type: Boolean, default: !1 },
|
|
113
113
|
enableTips: { type: Boolean, default: !1 },
|
|
114
|
-
tipsContent: { type: Object, default: "" }
|
|
114
|
+
tipsContent: { type: Object, default: "" },
|
|
115
|
+
linkLabel: { type: String, default: !1 }
|
|
115
116
|
};
|
|
116
117
|
function Ke(e, t) {
|
|
117
118
|
function n(g, a = null) {
|
|
@@ -131,22 +132,22 @@ function Ke(e, t) {
|
|
|
131
132
|
function m(g) {
|
|
132
133
|
const a = n(g.id), f = Ye(e), i = [];
|
|
133
134
|
f.getResonseFormLayoutConfig(a, i, 1);
|
|
134
|
-
const s = i.map((
|
|
135
|
+
const s = i.map((D) => D.columnInSM), v = i.map((D) => D.columnInMD), c = i.map((D) => D.columnInLG), p = i.map((D) => D.columnInEL), h = r(s) ? s[0] : 0, b = r(v) ? v[0] : 0, C = r(c) ? c[0] : 0, S = r(p) ? p[0] : 0;
|
|
135
136
|
return {
|
|
136
|
-
uniqueColClassInSM:
|
|
137
|
-
uniqueColClassInMD:
|
|
137
|
+
uniqueColClassInSM: h,
|
|
138
|
+
uniqueColClassInMD: b,
|
|
138
139
|
uniqueColClassInLG: C,
|
|
139
|
-
uniqueColClassInEL:
|
|
140
|
+
uniqueColClassInEL: S
|
|
140
141
|
};
|
|
141
142
|
}
|
|
142
143
|
function y(g, a) {
|
|
143
144
|
let f, i, s, v, c = [];
|
|
144
145
|
if (g) {
|
|
145
|
-
const
|
|
146
|
-
f = O.find((E) => /^col-([1-9]|10|11|12)$/.test(E)), i = O.find((E) => /^col-md-([1-9]|10|11|12)$/.test(E)), s = O.find((E) => /^col-xl-([1-9]|10|11|12)$/.test(E)), v = O.find((E) => /^col-el-([1-9]|10|11|12)$/.test(E)), c =
|
|
146
|
+
const D = g.split(" "), O = D.filter((E) => E.startsWith("col-"));
|
|
147
|
+
f = O.find((E) => /^col-([1-9]|10|11|12)$/.test(E)), i = O.find((E) => /^col-md-([1-9]|10|11|12)$/.test(E)), s = O.find((E) => /^col-xl-([1-9]|10|11|12)$/.test(E)), v = O.find((E) => /^col-el-([1-9]|10|11|12)$/.test(E)), c = D.filter((E) => !E.startsWith("col-"));
|
|
147
148
|
}
|
|
148
|
-
const p = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : f,
|
|
149
|
-
return [p,
|
|
149
|
+
const p = a.uniqueColClassInSM ? "col-" + a.uniqueColClassInSM : f, h = a.uniqueColClassInMD ? "col-md-" + a.uniqueColClassInMD : i, b = a.uniqueColClassInLG ? "col-xl-" + a.uniqueColClassInLG : s, C = a.uniqueColClassInEL ? "col-el-" + a.uniqueColClassInEL : v;
|
|
150
|
+
return [p, h, b, C].concat(c).join(" ");
|
|
150
151
|
}
|
|
151
152
|
function w(g, a, f) {
|
|
152
153
|
g = n(f, g), g.contents.forEach((i) => {
|
|
@@ -256,14 +257,14 @@ function tt(e, t) {
|
|
|
256
257
|
var T;
|
|
257
258
|
const d = l.componentInstance, F = d.value.schema, k = t == null ? void 0 : t.formSchemaUtils, I = t == null ? void 0 : t.designViewModelUtils, B = k.getViewModelIdByComponentId(d.value.belongedComponentId), P = I.getDgViewModel(B), M = d.value.parent;
|
|
258
259
|
if (M && u.fieldset && ((T = M.schema) == null ? void 0 : T.type) === u.fieldset.type && P) {
|
|
259
|
-
const
|
|
260
|
+
const L = { groupId: null, groupName: null };
|
|
260
261
|
switch (F.binding.type) {
|
|
261
262
|
case K.Form: {
|
|
262
|
-
P.changeField(F.binding.field,
|
|
263
|
+
P.changeField(F.binding.field, L);
|
|
263
264
|
break;
|
|
264
265
|
}
|
|
265
266
|
case K.Variable: {
|
|
266
|
-
k.modifyViewModelFieldById(B, F.binding.field,
|
|
267
|
+
k.modifyViewModelFieldById(B, F.binding.field, L, !0);
|
|
267
268
|
break;
|
|
268
269
|
}
|
|
269
270
|
}
|
|
@@ -306,14 +307,14 @@ function tt(e, t) {
|
|
|
306
307
|
T.path = T.path.replace("root-component.", "");
|
|
307
308
|
return;
|
|
308
309
|
}
|
|
309
|
-
const
|
|
310
|
-
if (
|
|
311
|
-
k.push(
|
|
312
|
-
const
|
|
313
|
-
if (
|
|
314
|
-
T.field =
|
|
310
|
+
const L = d.states.find((N) => N.id === T.field);
|
|
311
|
+
if (L) {
|
|
312
|
+
k.push(L.id), F.states = F.states ? F.states : [];
|
|
313
|
+
const N = F.states.find((U) => U.code === L.code);
|
|
314
|
+
if (N)
|
|
315
|
+
T.field = N.id;
|
|
315
316
|
else {
|
|
316
|
-
const U = Object.assign({}, { newId: pe().guid() },
|
|
317
|
+
const U = Object.assign({}, { newId: pe().guid() }, L);
|
|
317
318
|
F.states.push(U), T.field = U.newId;
|
|
318
319
|
}
|
|
319
320
|
}
|
|
@@ -327,13 +328,13 @@ function tt(e, t) {
|
|
|
327
328
|
for (const k of l.contents)
|
|
328
329
|
p(k, d, F);
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
+
function h(l = [], d) {
|
|
331
332
|
if (!l.length)
|
|
332
333
|
return;
|
|
333
334
|
const F = t == null ? void 0 : t.formSchemaUtils, k = F.getComponentByViewModelId(d), I = [], B = (M, T) => {
|
|
334
|
-
M && (Object.keys(M).forEach((
|
|
335
|
-
const
|
|
336
|
-
|
|
335
|
+
M && (Object.keys(M).forEach((L) => {
|
|
336
|
+
const N = M[L];
|
|
337
|
+
N && typeof N == "object" && N.type === K.Variable && l.includes(N.field) && !T.includes(N.field) && T.push(N.field);
|
|
337
338
|
}), M.editor && B(M.editor, T));
|
|
338
339
|
};
|
|
339
340
|
p(k, B, I);
|
|
@@ -342,7 +343,7 @@ function tt(e, t) {
|
|
|
342
343
|
I.includes(M) || (P.states = P.states.filter((T) => T.id !== M));
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function b(l) {
|
|
346
347
|
const d = pe().guid(), F = Object.assign({}, l, {
|
|
347
348
|
id: d,
|
|
348
349
|
code: l.code + d.slice(0, 4),
|
|
@@ -354,8 +355,8 @@ function tt(e, t) {
|
|
|
354
355
|
}), F;
|
|
355
356
|
}
|
|
356
357
|
function C(l, d, F) {
|
|
357
|
-
var
|
|
358
|
-
const k = {}, I = l.type === "form-group" && l.editor ? l.editor.type : l.type, B = (
|
|
358
|
+
var L, N, U;
|
|
359
|
+
const k = {}, I = l.type === "form-group" && l.editor ? l.editor.type : l.type, B = (L = Ne[I]) == null ? void 0 : L.events;
|
|
359
360
|
if (!B)
|
|
360
361
|
return;
|
|
361
362
|
Object.keys(l).forEach((Q) => {
|
|
@@ -364,12 +365,12 @@ function tt(e, t) {
|
|
|
364
365
|
const z = d.commands.find((j) => j.code === l[W]);
|
|
365
366
|
if (z) {
|
|
366
367
|
let j = k[z.code];
|
|
367
|
-
j || (j =
|
|
368
|
+
j || (j = b(z), k[z.code] = j, F.commands.push(j)), l[W] = j.code;
|
|
368
369
|
}
|
|
369
370
|
}
|
|
370
371
|
});
|
|
371
372
|
const M = (t == null ? void 0 : t.designViewModelUtils).getDgViewModel(F.id), T = ["valueChanging", "valueChanged"];
|
|
372
|
-
if (((
|
|
373
|
+
if (((N = l.binding) == null ? void 0 : N.type) === K.Form) {
|
|
373
374
|
const Q = (U = F.fields) == null ? void 0 : U.find((W) => W.id === l.binding.field);
|
|
374
375
|
Q && T.forEach((W) => {
|
|
375
376
|
if (Q[W]) {
|
|
@@ -379,35 +380,35 @@ function tt(e, t) {
|
|
|
379
380
|
if (k[z.code])
|
|
380
381
|
M.changeField(Q.id, { [W]: k[z.code].code });
|
|
381
382
|
else {
|
|
382
|
-
const j =
|
|
383
|
+
const j = b(z);
|
|
383
384
|
k[z.code] = j, F.commands.push(j), M.changeField(Q.id, { [W]: j.code });
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
});
|
|
387
388
|
}
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function S(l) {
|
|
390
391
|
const d = t == null ? void 0 : t.formSchemaUtils, F = l.componentInstance, k = F.value.schema, I = d.getViewModelIdByComponentId(F.value.belongedComponentId), B = d.getViewModelById(I), P = d.getComponentById(e.componentInstance.value.belongedComponentId), M = d.getViewModelById(P.viewModel);
|
|
391
392
|
if (I !== M.id) {
|
|
392
|
-
const T = k.binding.type,
|
|
393
|
+
const T = k.binding.type, L = k.binding.field, N = [];
|
|
393
394
|
switch (T) {
|
|
394
395
|
case K.Form: {
|
|
395
|
-
s(
|
|
396
|
+
s(L, B, M.id);
|
|
396
397
|
break;
|
|
397
398
|
}
|
|
398
399
|
case K.Variable: {
|
|
399
|
-
v(k, B, M,
|
|
400
|
+
v(k, B, M, N);
|
|
400
401
|
break;
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
|
-
c(k, B, M,
|
|
404
|
+
c(k, B, M, N), c(k.editor, B, M, N), C(k, B, M), I !== "root-viewmodel" && h(N, I);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
|
-
function
|
|
407
|
+
function D(l) {
|
|
407
408
|
if (!l || !l.componentInstance)
|
|
408
409
|
return;
|
|
409
410
|
const F = l.componentInstance.value.schema;
|
|
410
|
-
!F.binding || !F.binding.field || (i(l),
|
|
411
|
+
!F.binding || !F.binding.field || (i(l), S(l));
|
|
411
412
|
}
|
|
412
413
|
function O() {
|
|
413
414
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
@@ -455,8 +456,8 @@ function tt(e, t) {
|
|
|
455
456
|
function $(l, d, F, k) {
|
|
456
457
|
const { bindingSourceContext: I, parentComponentInstance: B } = l;
|
|
457
458
|
if (I != null && I.entityFieldNode && B) {
|
|
458
|
-
const P = t == null ? void 0 : t.designViewModelUtils, T = (t == null ? void 0 : t.formSchemaUtils).getViewModelIdByComponentId(B.belongedComponentId),
|
|
459
|
-
|
|
459
|
+
const P = t == null ? void 0 : t.designViewModelUtils, T = (t == null ? void 0 : t.formSchemaUtils).getViewModelIdByComponentId(B.belongedComponentId), L = P.getDgViewModel(T);
|
|
460
|
+
L.removeField([I.entityFieldNode.id]), L.addField(I.designViewModelField), d && L.changeField(I.entityFieldNode.id, { editor: { $type: d }, groupId: F, groupName: k });
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
function V(l, d) {
|
|
@@ -464,9 +465,9 @@ function tt(e, t) {
|
|
|
464
465
|
const F = n;
|
|
465
466
|
if ((F.appearance && F.appearance.class || "").split(" ").includes("f-form-layout") && l.componentCategory === "input") {
|
|
466
467
|
const { label: T } = l;
|
|
467
|
-
let
|
|
468
|
-
const
|
|
469
|
-
return (B = l.bindingSourceContext) != null && B.entityFieldNode ?
|
|
468
|
+
let L;
|
|
469
|
+
const N = t == null ? void 0 : t.controlCreatorUtils;
|
|
470
|
+
return (B = l.bindingSourceContext) != null && B.entityFieldNode ? L = N.setFormFieldProperty((P = l.bindingSourceContext) == null ? void 0 : P.entityFieldNode, d == null ? void 0 : d.type) : (L = N.createFormGroupWithoutField(d == null ? void 0 : d.type), L.label = T), R(L), $(l, (M = L.editor) == null ? void 0 : M.type), L;
|
|
470
471
|
}
|
|
471
472
|
return d;
|
|
472
473
|
}
|
|
@@ -489,9 +490,9 @@ function tt(e, t) {
|
|
|
489
490
|
getStyles: O,
|
|
490
491
|
getPropsConfig: G,
|
|
491
492
|
hideNestedPaddingInDesginerView: _,
|
|
492
|
-
onAcceptMovedChildElement:
|
|
493
|
+
onAcceptMovedChildElement: D,
|
|
493
494
|
onResolveNewComponentSchema: V,
|
|
494
|
-
moveInputBetweenComponent:
|
|
495
|
+
moveInputBetweenComponent: S,
|
|
495
496
|
resolveFormGroupAppearance: R,
|
|
496
497
|
syncFieldToViewModel: $
|
|
497
498
|
};
|
|
@@ -522,7 +523,7 @@ const le = /* @__PURE__ */ ne({
|
|
|
522
523
|
"data-associate": `${o.schema.id}-component`
|
|
523
524
|
}, [t.slots.default && t.slots.default()]), [[je("area-response")]]);
|
|
524
525
|
}
|
|
525
|
-
}), nt = {}, ot = {}, { globalStorageKey:
|
|
526
|
+
}), nt = {}, ot = {}, { globalStorageKey: pr } = Ce(), rt = {
|
|
526
527
|
id: { Type: String, default: "" },
|
|
527
528
|
/** 是否自动完成 */
|
|
528
529
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -852,7 +853,7 @@ class ut extends Qe {
|
|
|
852
853
|
tabName: "交互",
|
|
853
854
|
setPropertyRelates(y, w) {
|
|
854
855
|
const g = y.propertyValue;
|
|
855
|
-
delete w[n.viewModelId], g && n.eventsEditorUtils.saveRelatedParameters(w, n.viewModelId, g.events, g);
|
|
856
|
+
delete w[n.viewModelId], g && (n.eventsEditorUtils.saveRelatedParameters(w, n.viewModelId, g.events, g), n.updateLinkedLabel(g, w));
|
|
856
857
|
const a = n.designViewModelUtils.getDgViewModel(n.viewModelId);
|
|
857
858
|
a && n.designViewModelField && a.changeField(n.designViewModelField.id, { valueChanging: w.fieldValueChanging, valueChanged: w.fieldValueChanged });
|
|
858
859
|
}
|
|
@@ -888,7 +889,7 @@ const dt = /* @__PURE__ */ ne({
|
|
|
888
889
|
id: "inputGroup",
|
|
889
890
|
ref: g,
|
|
890
891
|
class: m.value,
|
|
891
|
-
style: w.value
|
|
892
|
+
style: [w.value, "pointer-events: none"].join(";")
|
|
892
893
|
}, [x("input", {
|
|
893
894
|
class: "form-control",
|
|
894
895
|
type: e.showType,
|
|
@@ -980,8 +981,8 @@ function ft(e = {}) {
|
|
|
980
981
|
return m(a).reduce((v, c) => v && y(c, f), !0);
|
|
981
982
|
}
|
|
982
983
|
function g(a, f) {
|
|
983
|
-
const i = Object.keys(a), s = i.includes("allOf"), v = i.includes("anyOf"), c = s || v,
|
|
984
|
-
return s ? !
|
|
984
|
+
const i = Object.keys(a), s = i.includes("allOf"), v = i.includes("anyOf"), c = s || v, b = (c ? a[c ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((S) => w(S, f));
|
|
985
|
+
return s ? !b.includes(!1) : b.includes(!0);
|
|
985
986
|
}
|
|
986
987
|
return { parseValueSchema: g };
|
|
987
988
|
}
|
|
@@ -997,7 +998,7 @@ const yt = {
|
|
|
997
998
|
e.editor && (e.editor[t] = n);
|
|
998
999
|
},
|
|
999
1000
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
1000
|
-
},
|
|
1001
|
+
}, ht = {
|
|
1001
1002
|
button: { type: "button", name: "按钮" },
|
|
1002
1003
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1003
1004
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -1043,10 +1044,12 @@ const yt = {
|
|
|
1043
1044
|
drawer: { type: "drawer", name: "抽屉" },
|
|
1044
1045
|
"external-container": { type: "external-container", name: "外部容器", icon: "content-container" },
|
|
1045
1046
|
"list-nav": { type: "list-nav", name: "列表导航" },
|
|
1047
|
+
nav: { type: "nav", name: "标签类导航" },
|
|
1046
1048
|
"list-view": { type: "list-view", name: "列表" },
|
|
1047
1049
|
"filter-bar": { type: "filter-bar", name: "筛选条" },
|
|
1048
1050
|
"language-textbox": { type: "language-textbox", name: "多语输入框" },
|
|
1049
1051
|
image: { type: "image", name: "图像" },
|
|
1052
|
+
avatar: { type: "avatar", name: "头像" },
|
|
1050
1053
|
"discussion-editor": { type: "discussion-editor", name: "评论编辑区" },
|
|
1051
1054
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
1052
1055
|
comment: { type: "comment", name: "评论区" },
|
|
@@ -1054,12 +1057,13 @@ const yt = {
|
|
|
1054
1057
|
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
1055
1058
|
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
1056
1059
|
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
1057
|
-
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" }
|
|
1058
|
-
|
|
1060
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
1061
|
+
step: { type: "step", name: "步骤条", icon: "step" }
|
|
1062
|
+
}, bt = {
|
|
1059
1063
|
convertFrom: (e, t, n) => {
|
|
1060
1064
|
var r;
|
|
1061
1065
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
1062
|
-
return ((r =
|
|
1066
|
+
return ((r = ht[o]) == null ? void 0 : r.name) || o;
|
|
1063
1067
|
}
|
|
1064
1068
|
}, Ct = {
|
|
1065
1069
|
convertTo: (e, t, n, o) => {
|
|
@@ -1239,12 +1243,12 @@ const yt = {
|
|
|
1239
1243
|
convertTo: (e, t, n) => {
|
|
1240
1244
|
e[t] = n;
|
|
1241
1245
|
}
|
|
1242
|
-
},
|
|
1246
|
+
}, St = {
|
|
1243
1247
|
convertTo: (e, t, n, o) => {
|
|
1244
1248
|
e.size || (e.size = {}), e.size[t] = n;
|
|
1245
1249
|
},
|
|
1246
1250
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
1247
|
-
},
|
|
1251
|
+
}, Dt = {
|
|
1248
1252
|
convertFrom: (e, t, n) => {
|
|
1249
1253
|
var o, r;
|
|
1250
1254
|
return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (r = e.formatter) == null ? void 0 : r.data : e.formatterEnumData;
|
|
@@ -1260,7 +1264,7 @@ const yt = {
|
|
|
1260
1264
|
if (t === "multiSort")
|
|
1261
1265
|
return !!((r = e.sort) != null && r.multiSort);
|
|
1262
1266
|
}
|
|
1263
|
-
},
|
|
1267
|
+
}, Lt = {
|
|
1264
1268
|
convertTo: (e, t, n, o) => {
|
|
1265
1269
|
e.filter || (e.filter = {}), e.filter[t] = n;
|
|
1266
1270
|
},
|
|
@@ -1269,7 +1273,7 @@ const yt = {
|
|
|
1269
1273
|
if (t === "mode")
|
|
1270
1274
|
return ((o = e.filter) == null ? void 0 : o.mode) || "client";
|
|
1271
1275
|
}
|
|
1272
|
-
},
|
|
1276
|
+
}, Nt = {
|
|
1273
1277
|
convertTo: (e, t, n, o) => {
|
|
1274
1278
|
e.rowOption ? e.rowOption[t] = n : e.rowOption = {
|
|
1275
1279
|
[t]: n
|
|
@@ -1298,14 +1302,24 @@ const yt = {
|
|
|
1298
1302
|
</span>`), t === "columnTemplateType" && n === "default" && (e.columnTemplate = ""), t === "columnTemplateType" && n === "custom" && (e.columnTemplate = ""));
|
|
1299
1303
|
},
|
|
1300
1304
|
convertFrom: (e, t, n) => t === "columnTemplate" ? e.columnTemplate : t === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
1305
|
+
}, At = {
|
|
1306
|
+
convertTo: (e, t, n, o) => {
|
|
1307
|
+
e.hierarchy || (e.hierarchy = {
|
|
1308
|
+
cascadeOption: {}
|
|
1309
|
+
}), e.hierarchy.cascadeOption || (e.hierarchy.cascadeOption = {}), e.hierarchy.cascadeOption[t] = n;
|
|
1310
|
+
},
|
|
1311
|
+
convertFrom: (e, t, n) => {
|
|
1312
|
+
var o, r;
|
|
1313
|
+
return !!((r = (o = e.hierarchy) == null ? void 0 : o.cascadeOption) != null && r[t]);
|
|
1314
|
+
}
|
|
1301
1315
|
};
|
|
1302
|
-
function
|
|
1316
|
+
function Rt(e, t, n) {
|
|
1303
1317
|
const o = /* @__PURE__ */ new Map([
|
|
1304
1318
|
["/converter/appearance.converter", yt],
|
|
1305
1319
|
["/converter/buttons.converter", gt],
|
|
1306
1320
|
["/converter/property-editor.converter", vt],
|
|
1307
1321
|
["/converter/items-count.converter", Et],
|
|
1308
|
-
["/converter/type.converter",
|
|
1322
|
+
["/converter/type.converter", bt],
|
|
1309
1323
|
["/converter/change-editor.converter", Ct],
|
|
1310
1324
|
["/converter/change-formatter.converter", Ft],
|
|
1311
1325
|
["/converter/column-command.converter", wt],
|
|
@@ -1317,12 +1331,13 @@ function At(e, t, n) {
|
|
|
1317
1331
|
["/converter/pagination.converter", Mt],
|
|
1318
1332
|
["/converter/row-number.converter", Vt],
|
|
1319
1333
|
["/converter/grid-selection.converter", Bt],
|
|
1320
|
-
["/converter/size.converter",
|
|
1321
|
-
["/converter/change-formatter-enum.converter",
|
|
1334
|
+
["/converter/size.converter", St],
|
|
1335
|
+
["/converter/change-formatter-enum.converter", Dt],
|
|
1322
1336
|
["/converter/grid-sort.converter", $t],
|
|
1323
|
-
["/converter/grid-filter.converter",
|
|
1324
|
-
["/converter/row-option.converter",
|
|
1325
|
-
["/converter/change-formatter-type.converter", Ot]
|
|
1337
|
+
["/converter/grid-filter.converter", Lt],
|
|
1338
|
+
["/converter/row-option.converter", Nt],
|
|
1339
|
+
["/converter/change-formatter-type.converter", Ot],
|
|
1340
|
+
["/converter/tree-auto-check.converter", At]
|
|
1326
1341
|
]), r = /* @__PURE__ */ new Map([
|
|
1327
1342
|
["string", { type: "input-group", enableClear: !1 }],
|
|
1328
1343
|
["boolean", {
|
|
@@ -1351,70 +1366,70 @@ function At(e, t, n) {
|
|
|
1351
1366
|
function y(c, p) {
|
|
1352
1367
|
return () => m.parseValueSchema(c, p);
|
|
1353
1368
|
}
|
|
1354
|
-
function w(c, p,
|
|
1355
|
-
return c.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : y(p.visible,
|
|
1369
|
+
function w(c, p, h) {
|
|
1370
|
+
return c.includes("visible") && p.visible !== void 0 ? typeof p.visible == "boolean" ? () => !!p.visible : p.visible === void 0 ? !0 : y(p.visible, h) : () => !0;
|
|
1356
1371
|
}
|
|
1357
|
-
function g(c, p,
|
|
1358
|
-
return c.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : y(p.readonly,
|
|
1372
|
+
function g(c, p, h) {
|
|
1373
|
+
return c.includes("readonly") && p.readonly !== void 0 ? typeof p.readonly == "boolean" ? () => !!p.readonly : y(p.readonly, h) : () => !1;
|
|
1359
1374
|
}
|
|
1360
1375
|
function a(c, p) {
|
|
1361
|
-
const
|
|
1362
|
-
return typeof
|
|
1376
|
+
const h = c.$converter || p;
|
|
1377
|
+
return typeof h == "string" && h && o.has(h) ? o.get(h) || null : h || null;
|
|
1363
1378
|
}
|
|
1364
|
-
function f(c, p,
|
|
1379
|
+
function f(c, p, h, b, C, S = "", D = "") {
|
|
1365
1380
|
return Object.keys(c).map((E) => {
|
|
1366
1381
|
const q = A(1), R = E, $ = c[E], V = Object.keys($), Z = $.title, J = $.type, _ = r.get(J) || { type: "input-group", enableClear: !1 }, G = $.editor ? Object.assign({}, _, $.editor) : Object.assign({}, _), l = w(V, $, p), d = g(V, $, p);
|
|
1367
1382
|
G.readonly = G.readonly === void 0 ? d() : G.readonly;
|
|
1368
|
-
const F = $.type === "cascade" ? f($.properties, p,
|
|
1369
|
-
let I = a($,
|
|
1383
|
+
const F = $.type === "cascade" ? f($.properties, p, h, b, C, S, D) : [], k = !0;
|
|
1384
|
+
let I = a($, D);
|
|
1370
1385
|
const B = H({
|
|
1371
1386
|
get() {
|
|
1372
1387
|
if (q.value) {
|
|
1373
1388
|
if (["class", "style"].find((Q) => Q === R) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
1374
|
-
return I.convertFrom(
|
|
1375
|
-
const U =
|
|
1389
|
+
return I.convertFrom(h, E, C, S);
|
|
1390
|
+
const U = h[E];
|
|
1376
1391
|
return Object.prototype.hasOwnProperty.call($, "defaultValue") && (U === void 0 || typeof U == "string" && U === "") ? $.type === "boolean" ? $.defaultValue : $.defaultValue || "" : U;
|
|
1377
1392
|
}
|
|
1378
1393
|
return null;
|
|
1379
1394
|
},
|
|
1380
1395
|
set(U) {
|
|
1381
|
-
q.value += 1, I && I.convertTo ? (I.convertTo(
|
|
1396
|
+
q.value += 1, I && I.convertTo ? (I.convertTo(b, E, U, C, S), I.convertTo(h, E, U, C, S)) : (b[E] = U, h[E] = U);
|
|
1382
1397
|
}
|
|
1383
|
-
}), { refreshPanelAfterChanged: P, description: M, isExpand: T, parentPropertyID:
|
|
1384
|
-
return p[R] =
|
|
1398
|
+
}), { refreshPanelAfterChanged: P, description: M, isExpand: T, parentPropertyID: L } = $, N = { propertyID: R, propertyName: Z, propertyType: J, propertyValue: B, editor: G, visible: l, readonly: d, cascadeConfig: F, hideCascadeTitle: k, refreshPanelAfterChanged: P, description: M, isExpand: T, parentPropertyID: L };
|
|
1399
|
+
return p[R] = N, N;
|
|
1385
1400
|
});
|
|
1386
1401
|
}
|
|
1387
|
-
function i(c, p,
|
|
1388
|
-
const
|
|
1389
|
-
return C && C.categories ? Object.keys(C.categories).map((
|
|
1390
|
-
const O = C.categories[
|
|
1391
|
-
return { categoryId:
|
|
1402
|
+
function i(c, p, h = {}) {
|
|
1403
|
+
const b = {}, C = e[c];
|
|
1404
|
+
return C && C.categories ? Object.keys(C.categories).map((D) => {
|
|
1405
|
+
const O = C.categories[D], E = O == null ? void 0 : O.title, q = f(O.properties || {}, b, {}, h, p);
|
|
1406
|
+
return { categoryId: D, categoryName: E, properties: q };
|
|
1392
1407
|
}) : [];
|
|
1393
1408
|
}
|
|
1394
|
-
function s(c, p,
|
|
1395
|
-
const
|
|
1409
|
+
function s(c, p, h, b, C = "") {
|
|
1410
|
+
const S = p.$ref.schema, D = p.$ref.converter, O = h[S], E = O.type, q = n(O), R = {}, $ = e[E];
|
|
1396
1411
|
if ($ && $.categories) {
|
|
1397
1412
|
const V = $.categories[c], Z = V == null ? void 0 : V.title;
|
|
1398
|
-
|
|
1399
|
-
V.properties[G].$converter =
|
|
1413
|
+
D && Object.keys(V.properties).forEach((G) => {
|
|
1414
|
+
V.properties[G].$converter = D;
|
|
1400
1415
|
});
|
|
1401
|
-
const J = (V == null ? void 0 : V.properties) || {}, _ = f(J, R, q, O,
|
|
1416
|
+
const J = (V == null ? void 0 : V.properties) || {}, _ = f(J, R, q, O, b, C);
|
|
1402
1417
|
return { categoryId: c, categoryName: Z, properties: _ };
|
|
1403
1418
|
}
|
|
1404
1419
|
return { categoryId: c, categoryName: "", properties: [] };
|
|
1405
1420
|
}
|
|
1406
|
-
function v(c, p,
|
|
1407
|
-
const
|
|
1408
|
-
let E = C || e[
|
|
1409
|
-
if (!(E && Object.keys(E).length > 0) &&
|
|
1421
|
+
function v(c, p, h, b, C) {
|
|
1422
|
+
const S = c.type, D = n(c), O = {};
|
|
1423
|
+
let E = C || e[S];
|
|
1424
|
+
if (!(E && Object.keys(E).length > 0) && h && h.getPropConfig && (E = h.getPropConfig(b)), E && E.categories) {
|
|
1410
1425
|
const R = [];
|
|
1411
1426
|
return Object.keys(E.categories).map(($) => {
|
|
1412
1427
|
const V = E.categories[$];
|
|
1413
1428
|
if (V.$ref) {
|
|
1414
|
-
R.push(s($, V, c, p,
|
|
1429
|
+
R.push(s($, V, c, p, b));
|
|
1415
1430
|
return;
|
|
1416
1431
|
}
|
|
1417
|
-
const Z = V == null ? void 0 : V.title, J = V == null ? void 0 : V.tabId, _ = V == null ? void 0 : V.tabName, G = V == null ? void 0 : V.hide, l = V == null ? void 0 : V.hideTitle, d = f(V.properties || {}, O,
|
|
1432
|
+
const Z = V == null ? void 0 : V.title, J = V == null ? void 0 : V.tabId, _ = V == null ? void 0 : V.tabName, G = V == null ? void 0 : V.hide, l = V == null ? void 0 : V.hideTitle, d = f(V.properties || {}, O, D, c, p, b, V.$converter), { setPropertyRelates: F } = V, k = V == null ? void 0 : V.parentPropertyID;
|
|
1418
1433
|
R.push({ categoryId: $, categoryName: Z, tabId: J, tabName: _, hide: G, properties: d, hideTitle: l, setPropertyRelates: F, parentPropertyID: k });
|
|
1419
1434
|
}), R;
|
|
1420
1435
|
}
|
|
@@ -1426,23 +1441,23 @@ function At(e, t, n) {
|
|
|
1426
1441
|
propertyConverterMap: o
|
|
1427
1442
|
};
|
|
1428
1443
|
}
|
|
1429
|
-
function
|
|
1444
|
+
function Ut(e, t) {
|
|
1430
1445
|
let n;
|
|
1431
1446
|
function o(i) {
|
|
1432
|
-
const { properties: s, title: v, ignore: c } = i, p = c && Array.isArray(c),
|
|
1433
|
-
if (v && (!p || !c.find((
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1447
|
+
const { properties: s, title: v, ignore: c } = i, p = c && Array.isArray(c), h = Object.keys(s).reduce((b, C) => ((!p || !c.find((S) => S === C)) && (b[C] = s[C].type === "object" && s[C].properties ? o(s[C]) : ae(s[C].default)), b), {});
|
|
1448
|
+
if (v && (!p || !c.find((b) => b === "id"))) {
|
|
1449
|
+
const b = v.toLowerCase().replace(/-/g, "_");
|
|
1450
|
+
h.id = `${b}_${Math.random().toString().slice(2, 6)}`;
|
|
1436
1451
|
}
|
|
1437
|
-
return
|
|
1452
|
+
return h;
|
|
1438
1453
|
}
|
|
1439
1454
|
function r(i) {
|
|
1440
1455
|
const { properties: s, title: v, required: c } = i;
|
|
1441
1456
|
if (c && Array.isArray(c)) {
|
|
1442
|
-
const p = c.reduce((
|
|
1443
|
-
if (v && c.find((
|
|
1444
|
-
const
|
|
1445
|
-
p.id = `${
|
|
1457
|
+
const p = c.reduce((h, b) => (h[b] = s[b].type === "object" && s[b].properties ? o(s[b]) : ae(s[b].default), h), {});
|
|
1458
|
+
if (v && c.find((h) => h === "id")) {
|
|
1459
|
+
const h = v.toLowerCase().replace(/-/g, "_");
|
|
1460
|
+
p.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
1446
1461
|
}
|
|
1447
1462
|
return p;
|
|
1448
1463
|
}
|
|
@@ -1454,8 +1469,8 @@ function Rt(e, t) {
|
|
|
1454
1469
|
const c = e[i];
|
|
1455
1470
|
if (c) {
|
|
1456
1471
|
let p = r(c);
|
|
1457
|
-
const
|
|
1458
|
-
return p =
|
|
1472
|
+
const h = t[i];
|
|
1473
|
+
return p = h ? h({ getSchemaByType: m }, p, s, v) : p, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(p), p;
|
|
1459
1474
|
}
|
|
1460
1475
|
return null;
|
|
1461
1476
|
}
|
|
@@ -1466,12 +1481,12 @@ function Rt(e, t) {
|
|
|
1466
1481
|
function w(i, s) {
|
|
1467
1482
|
return Object.keys(i).filter((c) => i[c] != null).reduce((c, p) => {
|
|
1468
1483
|
if (s.has(p)) {
|
|
1469
|
-
const
|
|
1470
|
-
if (typeof
|
|
1471
|
-
c[
|
|
1484
|
+
const h = s.get(p);
|
|
1485
|
+
if (typeof h == "string")
|
|
1486
|
+
c[h] = i[p];
|
|
1472
1487
|
else {
|
|
1473
|
-
const
|
|
1474
|
-
Object.assign(c,
|
|
1488
|
+
const b = h(p, i[p], i);
|
|
1489
|
+
Object.assign(c, b);
|
|
1475
1490
|
}
|
|
1476
1491
|
} else
|
|
1477
1492
|
c[p] = i[p];
|
|
@@ -1489,9 +1504,9 @@ function Rt(e, t) {
|
|
|
1489
1504
|
const c = e[s];
|
|
1490
1505
|
if (!c)
|
|
1491
1506
|
return i;
|
|
1492
|
-
const p = y(i, c),
|
|
1493
|
-
if (
|
|
1494
|
-
const
|
|
1507
|
+
const p = y(i, c), h = ((v = i.editor) == null ? void 0 : v.type) || "";
|
|
1508
|
+
if (h) {
|
|
1509
|
+
const b = e[h], C = y(i.editor, b);
|
|
1495
1510
|
p.editor = C;
|
|
1496
1511
|
}
|
|
1497
1512
|
return p;
|
|
@@ -1503,9 +1518,9 @@ function Rt(e, t) {
|
|
|
1503
1518
|
}
|
|
1504
1519
|
return { getSchemaByType: m, resolveSchemaWithDefaultValue: a, resolveSchemaToProps: g, mappingSchemaToProps: w, setDesignerContext: f };
|
|
1505
1520
|
}
|
|
1506
|
-
const
|
|
1507
|
-
|
|
1508
|
-
const { globalStorageKey:
|
|
1521
|
+
const jt = {}, qt = {}, { resolveSchemaWithDefaultValue: Gt } = Ut(jt, qt), zt = {}, Zt = {};
|
|
1522
|
+
Rt(zt, Zt, Gt);
|
|
1523
|
+
const { globalStorageKey: dr } = Ce(), ee = class ee {
|
|
1509
1524
|
/**
|
|
1510
1525
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1511
1526
|
*/
|
|
@@ -1561,6 +1576,7 @@ te(ee, "fieldControlTypeMapping", {
|
|
|
1561
1576
|
{ key: u.textarea.type, value: u.textarea.name },
|
|
1562
1577
|
{ key: u.lookup.type, value: u.lookup.name },
|
|
1563
1578
|
{ key: u.image.type, value: u.image.name },
|
|
1579
|
+
{ key: u.avatar.type, value: u.avatar.name },
|
|
1564
1580
|
{ key: u["rich-text-editor"].type, value: u["rich-text-editor"].name }
|
|
1565
1581
|
],
|
|
1566
1582
|
Decimal: [
|
|
@@ -1599,7 +1615,7 @@ te(ee, "fieldControlTypeMapping", {
|
|
|
1599
1615
|
});
|
|
1600
1616
|
let ve = ee;
|
|
1601
1617
|
var se = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(se || {}), Te = /* @__PURE__ */ ((e) => (e.SimpleField = "SimpleField", e.ComplexField = "ComplexField", e))(Te || {});
|
|
1602
|
-
function
|
|
1618
|
+
function Wt(e, t, n) {
|
|
1603
1619
|
function o() {
|
|
1604
1620
|
const y = n.componentId;
|
|
1605
1621
|
if (!y)
|
|
@@ -1632,9 +1648,9 @@ function Zt(e, t, n) {
|
|
|
1632
1648
|
}
|
|
1633
1649
|
return { checkBindingFieldValidation: m };
|
|
1634
1650
|
}
|
|
1635
|
-
const
|
|
1651
|
+
const Jt = /* @__PURE__ */ ne({
|
|
1636
1652
|
name: "FDynamicFormGroupDesign",
|
|
1637
|
-
props:
|
|
1653
|
+
props: he,
|
|
1638
1654
|
emits: ["change", "update:modelValue"],
|
|
1639
1655
|
setup(e, t) {
|
|
1640
1656
|
var q;
|
|
@@ -1643,16 +1659,16 @@ const Wt = /* @__PURE__ */ ne({
|
|
|
1643
1659
|
const f = A(), i = Y("designer-host-service"), s = Y("design-item-context"), v = H(() => a.value ? e.showLabelType : "none"), {
|
|
1644
1660
|
resolveEditorProps: c,
|
|
1645
1661
|
resolveEditorType: p
|
|
1646
|
-
} = mt(),
|
|
1662
|
+
} = mt(), h = H(() => ({
|
|
1647
1663
|
"form-group": !0,
|
|
1648
1664
|
"farris-form-group": !0,
|
|
1649
1665
|
"common-group": !0,
|
|
1650
1666
|
"q-state-readonly": w.value,
|
|
1651
1667
|
"form-group-in-canvas": !0,
|
|
1652
1668
|
"align-items-start": r.value.type === "textarea" || r.value.type === "rich-text-editor"
|
|
1653
|
-
})),
|
|
1669
|
+
})), b = H(() => {
|
|
1654
1670
|
const R = r.value.type || "input-group", $ = p(R), V = c(R, r.value);
|
|
1655
|
-
return () => x($,
|
|
1671
|
+
return () => x($, be({
|
|
1656
1672
|
ref: f
|
|
1657
1673
|
}, V, {
|
|
1658
1674
|
modelValue: y.value,
|
|
@@ -1667,14 +1683,15 @@ const Wt = /* @__PURE__ */ ne({
|
|
|
1667
1683
|
}, {
|
|
1668
1684
|
deep: !0
|
|
1669
1685
|
});
|
|
1670
|
-
const
|
|
1671
|
-
checkBindingFieldValidation:
|
|
1672
|
-
} =
|
|
1686
|
+
const S = !Y("external-container-id"), {
|
|
1687
|
+
checkBindingFieldValidation: D
|
|
1688
|
+
} = Wt(i, s, e);
|
|
1673
1689
|
function O() {
|
|
1674
|
-
const R =
|
|
1690
|
+
const R = S ? D() : !0;
|
|
1675
1691
|
return x(Ee, {
|
|
1676
1692
|
id: `${n.value}-lable`,
|
|
1677
1693
|
showType: v.value,
|
|
1694
|
+
isLink: !!e.linkLabel,
|
|
1678
1695
|
required: g.value,
|
|
1679
1696
|
text: m.value,
|
|
1680
1697
|
title: m.value,
|
|
@@ -1697,17 +1714,17 @@ const Wt = /* @__PURE__ */ ne({
|
|
|
1697
1714
|
class: "farris-group-wrap",
|
|
1698
1715
|
style: E.value
|
|
1699
1716
|
}, [x("div", {
|
|
1700
|
-
class:
|
|
1717
|
+
class: h.value
|
|
1701
1718
|
}, [O(), x("div", {
|
|
1702
1719
|
class: "farris-input-wrap"
|
|
1703
|
-
}, [
|
|
1720
|
+
}, [b.value()]), e.enableTips && x("span", {
|
|
1704
1721
|
class: "farris-label-tips ml-1"
|
|
1705
1722
|
}, [x("i", {
|
|
1706
1723
|
class: "f-icon f-icon-description-tips"
|
|
1707
1724
|
}, null)])])])]);
|
|
1708
1725
|
}
|
|
1709
1726
|
});
|
|
1710
|
-
function
|
|
1727
|
+
function _t(e, t) {
|
|
1711
1728
|
function n() {
|
|
1712
1729
|
return !0;
|
|
1713
1730
|
}
|
|
@@ -1721,25 +1738,25 @@ function Jt(e, t) {
|
|
|
1721
1738
|
return !0;
|
|
1722
1739
|
}
|
|
1723
1740
|
function y(i) {
|
|
1724
|
-
var
|
|
1725
|
-
const s = t == null ? void 0 : t.designViewModelUtils, v = t == null ? void 0 : t.formSchemaUtils, c = (
|
|
1741
|
+
var b;
|
|
1742
|
+
const s = t == null ? void 0 : t.designViewModelUtils, v = t == null ? void 0 : t.formSchemaUtils, c = (b = e == null ? void 0 : e.componentInstance.value) == null ? void 0 : b.belongedComponentId;
|
|
1726
1743
|
if (!c || !s || !v)
|
|
1727
1744
|
return;
|
|
1728
|
-
const p = v.getViewModelIdByComponentId(c),
|
|
1729
|
-
|
|
1745
|
+
const p = v.getViewModelIdByComponentId(c), h = s.getDgViewModel(p);
|
|
1746
|
+
h && h.removeField([i]);
|
|
1730
1747
|
}
|
|
1731
1748
|
function w(i, s) {
|
|
1732
1749
|
const v = t == null ? void 0 : t.formSchemaUtils, { schema: c } = e;
|
|
1733
|
-
if (v.getComponents().find((
|
|
1734
|
-
let
|
|
1735
|
-
if (
|
|
1736
|
-
var
|
|
1750
|
+
if (v.getComponents().find((h) => {
|
|
1751
|
+
let b = v.getControlsInCmpWidthBinding(h.viewModel, i);
|
|
1752
|
+
if (b = b.filter((C) => {
|
|
1753
|
+
var D;
|
|
1737
1754
|
if (C.id === c.id)
|
|
1738
1755
|
return !1;
|
|
1739
|
-
const
|
|
1740
|
-
if (
|
|
1756
|
+
const S = s.type === "visible" ? C[s.type] : (D = C.editor) == null ? void 0 : D[s.type];
|
|
1757
|
+
if (S && S.type === "Expression" && S.expressionId === s.id)
|
|
1741
1758
|
return !0;
|
|
1742
|
-
}),
|
|
1759
|
+
}), b.length)
|
|
1743
1760
|
return !0;
|
|
1744
1761
|
}))
|
|
1745
1762
|
return !0;
|
|
@@ -1748,21 +1765,21 @@ function Jt(e, t) {
|
|
|
1748
1765
|
var c;
|
|
1749
1766
|
const s = t == null ? void 0 : t.formSchemaUtils, { schema: v } = e;
|
|
1750
1767
|
if (s.getExpressions().length) {
|
|
1751
|
-
const p = s.getExpressions(),
|
|
1752
|
-
|
|
1768
|
+
const p = s.getExpressions(), h = p.findIndex((b) => b.target === i);
|
|
1769
|
+
h > -1 && ((c = p[h].rules) == null || c.map((b) => {
|
|
1753
1770
|
var C;
|
|
1754
|
-
switch (
|
|
1771
|
+
switch (b.type) {
|
|
1755
1772
|
case "visible":
|
|
1756
1773
|
case "readonly":
|
|
1757
1774
|
case "required": {
|
|
1758
|
-
const
|
|
1759
|
-
|
|
1775
|
+
const S = b.type === "visible" ? v[b.type] : (C = v.editor) == null ? void 0 : C[b.type];
|
|
1776
|
+
S && S.type === "Expression" && S.expressionId === b.id && (w(i, b) || (b.needDelete = !0));
|
|
1760
1777
|
break;
|
|
1761
1778
|
}
|
|
1762
1779
|
default:
|
|
1763
|
-
w(i,
|
|
1780
|
+
w(i, b) || (b.needDelete = !0);
|
|
1764
1781
|
}
|
|
1765
|
-
}), p[
|
|
1782
|
+
}), p[h].rules = p[h].rules.filter((b) => !b.needDelete));
|
|
1766
1783
|
}
|
|
1767
1784
|
}
|
|
1768
1785
|
function a() {
|
|
@@ -1782,26 +1799,26 @@ function Jt(e, t) {
|
|
|
1782
1799
|
onRemoveComponent: f
|
|
1783
1800
|
};
|
|
1784
1801
|
}
|
|
1785
|
-
const
|
|
1802
|
+
const Xt = /* @__PURE__ */ ne({
|
|
1786
1803
|
name: "FFormGroupDesign",
|
|
1787
1804
|
props: Fe,
|
|
1788
1805
|
emits: [],
|
|
1789
1806
|
setup(e, t) {
|
|
1790
|
-
const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m =
|
|
1807
|
+
const n = A(), o = Y("design-item-context"), r = Y("designer-host-service"), m = _t(o, r), y = ce(n, o, m);
|
|
1791
1808
|
return ie(() => {
|
|
1792
1809
|
n.value.componentInstance = y, y.value.getPropConfig = (...w) => {
|
|
1793
1810
|
var a, f, i;
|
|
1794
1811
|
let g = Oe[e.editor.type];
|
|
1795
1812
|
return g && Object.keys(g).length === 0 && ((a = n.value) != null && a.editorRef) && ((i = (f = n.value) == null ? void 0 : f.editorRef) != null && i.getPropConfig) && (g = n.value.editorRef.getPropConfig(...w, y.value)), g;
|
|
1796
1813
|
};
|
|
1797
|
-
}), t.expose(y.value), () => x(
|
|
1814
|
+
}), t.expose(y.value), () => x(Jt, be(e, {
|
|
1798
1815
|
ref: n
|
|
1799
1816
|
}), null);
|
|
1800
1817
|
}
|
|
1801
1818
|
}), ue = /* @__PURE__ */ new Map([
|
|
1802
1819
|
["appearance", Ae]
|
|
1803
|
-
]),
|
|
1804
|
-
class
|
|
1820
|
+
]), Qt = /* @__PURE__ */ new Map([]), Yt = "root-viewmodel";
|
|
1821
|
+
class Ht {
|
|
1805
1822
|
constructor(t, n) {
|
|
1806
1823
|
te(this, "formSchemaUtils");
|
|
1807
1824
|
te(this, "controlCreatorUtils");
|
|
@@ -1909,7 +1926,7 @@ class Yt {
|
|
|
1909
1926
|
code: `${t.componentId}-component-viewmodel`,
|
|
1910
1927
|
name: t.componentName,
|
|
1911
1928
|
bindTo: t.bindTo,
|
|
1912
|
-
parent:
|
|
1929
|
+
parent: Yt,
|
|
1913
1930
|
fields: this.assembleViewModelFields(t),
|
|
1914
1931
|
commands: [],
|
|
1915
1932
|
states: [],
|
|
@@ -1938,7 +1955,7 @@ class Yt {
|
|
|
1938
1955
|
}), n;
|
|
1939
1956
|
}
|
|
1940
1957
|
}
|
|
1941
|
-
function
|
|
1958
|
+
function Kt(e, t, n, o) {
|
|
1942
1959
|
var m, y, w, g, a, f;
|
|
1943
1960
|
const r = n.parentComponentInstance;
|
|
1944
1961
|
if (r && o) {
|
|
@@ -1952,14 +1969,14 @@ function Ht(e, t, n, o) {
|
|
|
1952
1969
|
bindTo: ((a = n.bindingSourceContext) == null ? void 0 : a.bindTo) || "/",
|
|
1953
1970
|
selectedFields: (f = n.bindingSourceContext) == null ? void 0 : f.bindingEntityFields
|
|
1954
1971
|
};
|
|
1955
|
-
return new
|
|
1972
|
+
return new Ht(e, o).createComponent(v);
|
|
1956
1973
|
} else
|
|
1957
1974
|
return t;
|
|
1958
1975
|
}
|
|
1959
|
-
function
|
|
1976
|
+
function en(e, t, n) {
|
|
1960
1977
|
return t;
|
|
1961
1978
|
}
|
|
1962
|
-
const
|
|
1979
|
+
const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-design.gitee.io/grid-field-editor.schema.json", on = "response-form-layout-setting", rn = "A Farris Data Grid Component", an = "object", ln = {
|
|
1963
1980
|
id: {
|
|
1964
1981
|
description: "The unique identifier for a Input Group",
|
|
1965
1982
|
type: "string"
|
|
@@ -1973,17 +1990,17 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
1973
1990
|
description: "",
|
|
1974
1991
|
type: "object"
|
|
1975
1992
|
}
|
|
1976
|
-
},
|
|
1993
|
+
}, sn = [
|
|
1977
1994
|
"id",
|
|
1978
1995
|
"type"
|
|
1979
|
-
],
|
|
1980
|
-
$schema:
|
|
1981
|
-
$id:
|
|
1982
|
-
title:
|
|
1983
|
-
description:
|
|
1984
|
-
type:
|
|
1985
|
-
properties:
|
|
1986
|
-
required:
|
|
1996
|
+
], cn = {
|
|
1997
|
+
$schema: tn,
|
|
1998
|
+
$id: nn,
|
|
1999
|
+
title: on,
|
|
2000
|
+
description: rn,
|
|
2001
|
+
type: an,
|
|
2002
|
+
properties: ln,
|
|
2003
|
+
required: sn
|
|
1987
2004
|
}, Ie = {
|
|
1988
2005
|
initialState: {
|
|
1989
2006
|
type: Object,
|
|
@@ -1994,7 +2011,7 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
1994
2011
|
uniqueColClassInEL: 2
|
|
1995
2012
|
}
|
|
1996
2013
|
}
|
|
1997
|
-
},
|
|
2014
|
+
}, un = re(Ie, cn, Qt, en), pn = /* @__PURE__ */ ne({
|
|
1998
2015
|
name: "FResponseFormLayoutSetting",
|
|
1999
2016
|
props: Ie,
|
|
2000
2017
|
emits: ["change"],
|
|
@@ -2003,13 +2020,13 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2003
2020
|
let y = [], w = [], g = [], a = [];
|
|
2004
2021
|
const f = A(e.initialState), i = A(-1), s = A(-1), v = A(-1), c = A(-1);
|
|
2005
2022
|
function p() {
|
|
2006
|
-
const C = "自定义",
|
|
2007
|
-
n.includes(
|
|
2023
|
+
const C = "自定义", S = 12 / f.value.uniqueColClassInSM;
|
|
2024
|
+
n.includes(S) ? i.value = S : (y.push({
|
|
2008
2025
|
value: 0,
|
|
2009
2026
|
name: C
|
|
2010
2027
|
}), i.value = 0);
|
|
2011
|
-
const
|
|
2012
|
-
o.includes(
|
|
2028
|
+
const D = 12 / f.value.uniqueColClassInMD;
|
|
2029
|
+
o.includes(D) ? s.value = D : (w.push({
|
|
2013
2030
|
value: 0,
|
|
2014
2031
|
name: C
|
|
2015
2032
|
}), s.value = 0);
|
|
@@ -2024,7 +2041,7 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2024
2041
|
name: C
|
|
2025
2042
|
}), c.value = 0), y = [...y], w = [...w], g = [...g], a = [...a];
|
|
2026
2043
|
}
|
|
2027
|
-
function
|
|
2044
|
+
function h() {
|
|
2028
2045
|
n.forEach((C) => {
|
|
2029
2046
|
y.push({
|
|
2030
2047
|
value: C,
|
|
@@ -2047,14 +2064,14 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2047
2064
|
});
|
|
2048
2065
|
});
|
|
2049
2066
|
}
|
|
2050
|
-
function
|
|
2067
|
+
function b() {
|
|
2051
2068
|
He.question("应用统一布局,将重置区域内部所有控件的宽度样式,确定应用?", "", () => {
|
|
2052
2069
|
f.value.uniqueColClassInSM = i.value === 0 ? null : 12 / i.value, f.value.uniqueColClassInMD = s.value === 0 ? null : 12 / s.value, f.value.uniqueColClassInLG = v.value === 0 ? null : 12 / v.value, f.value.uniqueColClassInEL = c.value === 0 ? null : 12 / c.value, t.emit("change", f.value);
|
|
2053
2070
|
}, () => {
|
|
2054
2071
|
});
|
|
2055
2072
|
}
|
|
2056
2073
|
return ie(() => {
|
|
2057
|
-
|
|
2074
|
+
h(), p();
|
|
2058
2075
|
}), () => x("div", null, [x("div", {
|
|
2059
2076
|
class: "f-form-layout farris-form farris-form-controls-inline"
|
|
2060
2077
|
}, [x("div", {
|
|
@@ -2126,10 +2143,10 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2126
2143
|
}, [x("button", {
|
|
2127
2144
|
class: "btn f-rt-btn btn-primary",
|
|
2128
2145
|
type: "button",
|
|
2129
|
-
onClick: () =>
|
|
2146
|
+
onClick: () => b()
|
|
2130
2147
|
}, [X("应用")])])]);
|
|
2131
2148
|
}
|
|
2132
|
-
}),
|
|
2149
|
+
}), dn = "https://json-schema.org/draft/2020-12/schema", mn = "https://farris-design.gitee.io/response-form.schema.json", fn = "response-form", yn = "A Farris Data Collection Component", gn = "object", vn = {
|
|
2133
2150
|
id: {
|
|
2134
2151
|
description: "The unique identifier for a form group",
|
|
2135
2152
|
type: "string"
|
|
@@ -2172,19 +2189,19 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2172
2189
|
type: "boolean",
|
|
2173
2190
|
default: !0
|
|
2174
2191
|
}
|
|
2175
|
-
},
|
|
2192
|
+
}, hn = [
|
|
2176
2193
|
"id",
|
|
2177
2194
|
"type",
|
|
2178
2195
|
"contents"
|
|
2179
2196
|
], bn = {
|
|
2180
|
-
$schema:
|
|
2181
|
-
$id:
|
|
2182
|
-
title:
|
|
2183
|
-
description:
|
|
2184
|
-
type:
|
|
2185
|
-
properties:
|
|
2186
|
-
required:
|
|
2187
|
-
},
|
|
2197
|
+
$schema: dn,
|
|
2198
|
+
$id: mn,
|
|
2199
|
+
title: fn,
|
|
2200
|
+
description: yn,
|
|
2201
|
+
type: gn,
|
|
2202
|
+
properties: vn,
|
|
2203
|
+
required: hn
|
|
2204
|
+
}, Cn = "https://json-schema.org/draft/2020-12/schema", Fn = "https://farris-design.gitee.io/form-group.schema.json", wn = "form-group", Tn = "A Farris Input Component", In = "object", kn = {
|
|
2188
2205
|
id: {
|
|
2189
2206
|
description: "The unique identifier for a form group",
|
|
2190
2207
|
type: "string"
|
|
@@ -2268,41 +2285,46 @@ const en = "https://json-schema.org/draft/2020-12/schema", tn = "https://farris-
|
|
|
2268
2285
|
description: "",
|
|
2269
2286
|
type: "string",
|
|
2270
2287
|
default: ""
|
|
2288
|
+
},
|
|
2289
|
+
linkLabel: {
|
|
2290
|
+
description: "",
|
|
2291
|
+
type: "string",
|
|
2292
|
+
default: !1
|
|
2271
2293
|
}
|
|
2272
|
-
},
|
|
2294
|
+
}, xn = [
|
|
2273
2295
|
"id",
|
|
2274
2296
|
"type",
|
|
2275
2297
|
"editor"
|
|
2276
2298
|
], ke = {
|
|
2277
|
-
$schema:
|
|
2278
|
-
$id:
|
|
2279
|
-
title:
|
|
2280
|
-
description:
|
|
2281
|
-
type:
|
|
2282
|
-
properties:
|
|
2283
|
-
required:
|
|
2284
|
-
}, xe = re(Pe, bn, ue,
|
|
2285
|
-
|
|
2299
|
+
$schema: Cn,
|
|
2300
|
+
$id: Fn,
|
|
2301
|
+
title: wn,
|
|
2302
|
+
description: Tn,
|
|
2303
|
+
type: In,
|
|
2304
|
+
properties: kn,
|
|
2305
|
+
required: xn
|
|
2306
|
+
}, xe = re(Pe, bn, ue, Kt), Me = re(
|
|
2307
|
+
he,
|
|
2286
2308
|
ke,
|
|
2287
2309
|
ue,
|
|
2288
2310
|
void 0
|
|
2289
|
-
),
|
|
2290
|
-
|
|
2311
|
+
), Mn = Re(), Vn = re(
|
|
2312
|
+
Se,
|
|
2291
2313
|
ke,
|
|
2292
2314
|
ue,
|
|
2293
2315
|
void 0
|
|
2294
2316
|
);
|
|
2295
2317
|
le.register = (e, t, n, o) => {
|
|
2296
|
-
e["form-group"] =
|
|
2318
|
+
e["form-group"] = De, t["form-group"] = Me, e["response-form"] = $e, t["response-form"] = xe, e["form-input"] = Le, t["form-input"] = Vn, o["form-group"] = { editorResolver: Mn }, e["response-form-layout-setting"] = pn, t["response-form-layout-setting"] = un;
|
|
2297
2319
|
};
|
|
2298
2320
|
le.registerDesigner = (e, t, n) => {
|
|
2299
|
-
e["form-group"] =
|
|
2321
|
+
e["form-group"] = Xt, t["form-group"] = Me, e["response-form"] = le, t["response-form"] = xe;
|
|
2300
2322
|
};
|
|
2301
2323
|
export {
|
|
2302
2324
|
le as FResponseFormDesign,
|
|
2303
2325
|
le as default,
|
|
2304
|
-
|
|
2326
|
+
Mn as editorResolver,
|
|
2305
2327
|
Me as formGroupPropsResolver,
|
|
2306
|
-
|
|
2328
|
+
Vn as formInputPropsResolver,
|
|
2307
2329
|
xe as formPropsResolver
|
|
2308
2330
|
};
|