@farris/ui-vue 1.3.0 → 1.3.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/accordion/index.esm.js +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,102 +1,101 @@
|
|
|
1
|
-
var
|
|
2
|
-
var H = (a, t, e) => t in a ?
|
|
1
|
+
var Z = Object.defineProperty;
|
|
2
|
+
var H = (a, t, e) => t in a ? Z(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
3
|
var g = (a, t, e) => H(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return (!n || !o.find((c) => c == "id")) && (i.id = `${e}-${Date.now()}`), i;
|
|
4
|
+
import { defineComponent as O, toRefs as j, ref as E, computed as D, watch as U, createVNode as F, inject as $, onMounted as _ } from "vue";
|
|
5
|
+
import { isPlainObject as W, cloneDeep as q } from "lodash-es";
|
|
6
|
+
import { DgControl as G } from "../designer-canvas/index.esm.js";
|
|
7
|
+
const z = {}, X = {};
|
|
8
|
+
function L(a) {
|
|
9
|
+
const { properties: t, title: e, ignore: r } = a, n = r && Array.isArray(r), l = Object.keys(t).reduce((p, f) => ((!n || !r.find((m) => m == f)) && (p[f] = t[f].type === "object" && t[f].properties ? L(t[f]) : q(t[f].default)), p), {});
|
|
10
|
+
return e && (!n || !r.find((p) => p == "id")) && (l.id = `${e}-${Date.now()}`), l;
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
let n =
|
|
17
|
-
const
|
|
18
|
-
return n =
|
|
12
|
+
function J(a, t = {}, e) {
|
|
13
|
+
const r = z[a];
|
|
14
|
+
if (r) {
|
|
15
|
+
let n = L(r);
|
|
16
|
+
const l = X[a];
|
|
17
|
+
return n = l ? l({ getSchemaByType: J }, n, t, e) : n, n;
|
|
19
18
|
}
|
|
20
19
|
return null;
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
const e =
|
|
24
|
-
return Object.keys(a).reduce((
|
|
21
|
+
function x(a, t) {
|
|
22
|
+
const e = L(t);
|
|
23
|
+
return Object.keys(a).reduce((r, n) => (r[n] && W(r[n]) && W(a[n]) ? Object.assign(r[n], a[n]) : r[n] = a[n], r), e), e;
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return Object.keys(a).filter((
|
|
25
|
+
function K(a, t) {
|
|
26
|
+
return Object.keys(a).filter((r) => a[r] != null).reduce((r, n) => {
|
|
28
27
|
if (t.has(n)) {
|
|
29
|
-
const
|
|
30
|
-
if (typeof
|
|
31
|
-
|
|
28
|
+
const l = t.get(n);
|
|
29
|
+
if (typeof l == "string")
|
|
30
|
+
r[l] = a[n];
|
|
32
31
|
else {
|
|
33
|
-
const
|
|
34
|
-
Object.assign(
|
|
32
|
+
const p = l(n, a[n], a);
|
|
33
|
+
Object.assign(r, p);
|
|
35
34
|
}
|
|
36
35
|
} else
|
|
37
|
-
|
|
38
|
-
return
|
|
36
|
+
r[n] = a[n];
|
|
37
|
+
return r;
|
|
39
38
|
}, {});
|
|
40
39
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
return
|
|
40
|
+
function R(a, t, e = /* @__PURE__ */ new Map()) {
|
|
41
|
+
const r = x(a, t);
|
|
42
|
+
return K(r, e);
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
function t(
|
|
47
|
-
if (typeof
|
|
48
|
-
return
|
|
49
|
-
if (typeof
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
55
|
-
if (
|
|
56
|
-
return Number(
|
|
44
|
+
function ee(a = {}) {
|
|
45
|
+
function t(i, s, o, c) {
|
|
46
|
+
if (typeof o == "number")
|
|
47
|
+
return c[i].length === o;
|
|
48
|
+
if (typeof o == "object") {
|
|
49
|
+
const y = Object.keys(o)[0], d = o[y];
|
|
50
|
+
if (y === "not")
|
|
51
|
+
return Number(c[i].length) !== Number(d);
|
|
52
|
+
if (y === "moreThan")
|
|
53
|
+
return Number(c[i].length) >= Number(d);
|
|
54
|
+
if (y === "lessThan")
|
|
55
|
+
return Number(c[i].length) <= Number(d);
|
|
57
56
|
}
|
|
58
57
|
return !1;
|
|
59
58
|
}
|
|
60
|
-
function e(
|
|
61
|
-
return
|
|
59
|
+
function e(i, s, o, c) {
|
|
60
|
+
return c[i] && c[i].propertyValue && String(c[i].propertyValue.value) === String(o);
|
|
62
61
|
}
|
|
63
|
-
const
|
|
62
|
+
const r = /* @__PURE__ */ new Map([
|
|
64
63
|
["length", t],
|
|
65
64
|
["getProperty", e]
|
|
66
65
|
]);
|
|
67
|
-
Object.keys(a).reduce((
|
|
68
|
-
function n(
|
|
69
|
-
const
|
|
70
|
-
return typeof s == "number" ? [{ target:
|
|
71
|
-
if (
|
|
72
|
-
return { target:
|
|
73
|
-
const
|
|
74
|
-
return { target:
|
|
66
|
+
Object.keys(a).reduce((i, s) => (i.set(s, a[s]), i), r);
|
|
67
|
+
function n(i, s) {
|
|
68
|
+
const o = i;
|
|
69
|
+
return typeof s == "number" ? [{ target: o, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: o, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((c) => {
|
|
70
|
+
if (c === "length")
|
|
71
|
+
return { target: o, operator: "length", param: null, value: s[c] };
|
|
72
|
+
const y = c, d = s[c];
|
|
73
|
+
return { target: o, operator: "getProperty", param: y, value: d };
|
|
75
74
|
}) : [];
|
|
76
75
|
}
|
|
77
|
-
function i
|
|
78
|
-
return Object.keys(
|
|
79
|
-
const
|
|
80
|
-
return
|
|
76
|
+
function l(i) {
|
|
77
|
+
return Object.keys(i).reduce((o, c) => {
|
|
78
|
+
const y = n(c, i[c]);
|
|
79
|
+
return o.push(...y), o;
|
|
81
80
|
}, []);
|
|
82
81
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
return
|
|
82
|
+
function p(i, s) {
|
|
83
|
+
if (r.has(i.operator)) {
|
|
84
|
+
const o = r.get(i.operator);
|
|
85
|
+
return o && o(i.target, i.param, i.value, s) || !1;
|
|
87
86
|
}
|
|
88
87
|
return !1;
|
|
89
88
|
}
|
|
90
|
-
function
|
|
91
|
-
return i
|
|
89
|
+
function f(i, s) {
|
|
90
|
+
return l(i).reduce((y, d) => y && p(d, s), !0);
|
|
92
91
|
}
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
return
|
|
92
|
+
function m(i, s) {
|
|
93
|
+
const o = Object.keys(i), c = o.includes("allOf"), y = o.includes("anyOf"), d = c || y, b = (d ? i[d ? c ? "allOf" : "anyOf" : "allOf"] : [i]).map((T) => f(T, s));
|
|
94
|
+
return c ? !b.includes(!1) : b.includes(!0);
|
|
96
95
|
}
|
|
97
|
-
return { parseValueSchema:
|
|
96
|
+
return { parseValueSchema: m };
|
|
98
97
|
}
|
|
99
|
-
const
|
|
98
|
+
const u = {
|
|
100
99
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
101
100
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
102
101
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -135,20 +134,20 @@ const p = {
|
|
|
135
134
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
136
135
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
137
136
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
function
|
|
141
|
-
return
|
|
142
|
-
const
|
|
143
|
-
return Object.assign(
|
|
137
|
+
}, te = {}, ne = {};
|
|
138
|
+
ee();
|
|
139
|
+
function oe(a, t, e = /* @__PURE__ */ new Map(), r = (p, f, m) => f, n = {}, l = (p) => p) {
|
|
140
|
+
return z[t.title] = t, X[t.title] = r, te[t.title] = n, ne[t.title] = l, (p = {}) => {
|
|
141
|
+
const f = R(p, t, e), m = Object.keys(a).reduce((i, s) => (i[s] = a[s].default, i), {});
|
|
142
|
+
return Object.assign(m, f);
|
|
144
143
|
};
|
|
145
144
|
}
|
|
146
|
-
function
|
|
145
|
+
function re(a, t) {
|
|
147
146
|
return { customClass: t.class, customStyle: t.style };
|
|
148
147
|
}
|
|
149
|
-
const
|
|
150
|
-
["appearance",
|
|
151
|
-
]),
|
|
148
|
+
const ie = /* @__PURE__ */ new Map([
|
|
149
|
+
["appearance", re]
|
|
150
|
+
]), ae = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-design.gitee.io/switch.schema.json", se = "switch", ce = "A Farris Component", pe = "object", ue = {
|
|
152
151
|
id: {
|
|
153
152
|
description: "The unique identifier for a switch",
|
|
154
153
|
type: "string"
|
|
@@ -218,26 +217,26 @@ const le = /* @__PURE__ */ new Map([
|
|
|
218
217
|
size: {
|
|
219
218
|
description: "",
|
|
220
219
|
type: "enum",
|
|
221
|
-
default: "
|
|
220
|
+
default: "medium"
|
|
222
221
|
}
|
|
223
|
-
},
|
|
222
|
+
}, de = [
|
|
224
223
|
"id",
|
|
225
224
|
"type"
|
|
226
|
-
],
|
|
225
|
+
], me = [
|
|
227
226
|
"id",
|
|
228
227
|
"appearance",
|
|
229
228
|
"binding"
|
|
230
|
-
],
|
|
231
|
-
$schema:
|
|
232
|
-
$id:
|
|
233
|
-
title:
|
|
234
|
-
description:
|
|
235
|
-
type:
|
|
236
|
-
properties:
|
|
237
|
-
required:
|
|
238
|
-
ignore:
|
|
229
|
+
], fe = {
|
|
230
|
+
$schema: ae,
|
|
231
|
+
$id: le,
|
|
232
|
+
title: se,
|
|
233
|
+
description: ce,
|
|
234
|
+
type: pe,
|
|
235
|
+
properties: ue,
|
|
236
|
+
required: de,
|
|
237
|
+
ignore: me
|
|
239
238
|
};
|
|
240
|
-
function
|
|
239
|
+
function ye(a, t, e) {
|
|
241
240
|
return t;
|
|
242
241
|
}
|
|
243
242
|
const N = {
|
|
@@ -256,153 +255,144 @@ const N = {
|
|
|
256
255
|
/** 开关值变化事件 */
|
|
257
256
|
onModelValueChanged: { type: Function, default: () => {
|
|
258
257
|
} }
|
|
259
|
-
}, Q =
|
|
258
|
+
}, Q = oe(N, fe, ie, ye), P = /* @__PURE__ */ O({
|
|
260
259
|
name: "FSwitch",
|
|
261
260
|
props: N,
|
|
262
261
|
emits: ["update:modelValue", "modelValueChanged"],
|
|
263
262
|
setup(a, t) {
|
|
264
263
|
const {
|
|
265
264
|
disabled: e,
|
|
266
|
-
size:
|
|
265
|
+
size: r,
|
|
267
266
|
onLabel: n,
|
|
268
|
-
offLabel:
|
|
269
|
-
onBackground:
|
|
270
|
-
offBackground:
|
|
271
|
-
onColor:
|
|
272
|
-
offColor:
|
|
273
|
-
} =
|
|
267
|
+
offLabel: l,
|
|
268
|
+
onBackground: p,
|
|
269
|
+
offBackground: f,
|
|
270
|
+
onColor: m,
|
|
271
|
+
offColor: i
|
|
272
|
+
} = j(a), s = E(a.modelValue), o = D(() => ({
|
|
274
273
|
switch: !0,
|
|
275
274
|
"f-cmp-switch": !0,
|
|
276
275
|
checked: s.value,
|
|
277
276
|
disabled: e.value,
|
|
278
|
-
"switch-large":
|
|
279
|
-
"switch-medium":
|
|
280
|
-
"switch-small":
|
|
281
|
-
})),
|
|
277
|
+
"switch-large": r.value === "large",
|
|
278
|
+
"switch-medium": r.value === "medium",
|
|
279
|
+
"switch-small": r.value === "small"
|
|
280
|
+
})), c = D(() => s.value ? {
|
|
282
281
|
outline: "none",
|
|
283
|
-
background:
|
|
282
|
+
background: p.value
|
|
284
283
|
} : {
|
|
285
284
|
outline: "none",
|
|
286
|
-
backgroundColor:
|
|
287
|
-
}),
|
|
288
|
-
background:
|
|
285
|
+
backgroundColor: f.value
|
|
286
|
+
}), y = D(() => s.value ? {
|
|
287
|
+
background: m.value
|
|
289
288
|
} : {
|
|
290
|
-
backgroundColor:
|
|
291
|
-
}),
|
|
292
|
-
function
|
|
289
|
+
backgroundColor: i.value
|
|
290
|
+
}), d = D(() => (n == null ? void 0 : n.value) || (l == null ? void 0 : l.value));
|
|
291
|
+
function h() {
|
|
293
292
|
e.value || (s.value = !s.value, t.emit("update:modelValue", s.value));
|
|
294
293
|
}
|
|
295
|
-
return
|
|
296
|
-
|
|
297
|
-
}),
|
|
298
|
-
|
|
299
|
-
}), () =>
|
|
294
|
+
return U(s, (C, b) => {
|
|
295
|
+
C !== b && t.emit("modelValueChanged", C);
|
|
296
|
+
}), U(() => a.modelValue, (C, b) => {
|
|
297
|
+
C !== b && (s.value = C);
|
|
298
|
+
}), () => F("span", {
|
|
300
299
|
tabindex: "0",
|
|
301
300
|
role: "button",
|
|
302
|
-
class:
|
|
303
|
-
style:
|
|
304
|
-
onClick:
|
|
305
|
-
}, [
|
|
301
|
+
class: o.value,
|
|
302
|
+
style: c.value,
|
|
303
|
+
onClick: h
|
|
304
|
+
}, [d.value && F("span", {
|
|
306
305
|
class: "switch-pane"
|
|
307
|
-
}, [
|
|
306
|
+
}, [F("span", {
|
|
308
307
|
class: "switch-label-checked"
|
|
309
|
-
}, [n == null ? void 0 : n.value]),
|
|
308
|
+
}, [n == null ? void 0 : n.value]), F("span", {
|
|
310
309
|
class: "switch-label-unchecked"
|
|
311
|
-
}, [
|
|
312
|
-
style:
|
|
310
|
+
}, [l == null ? void 0 : l.value])]), F("small", {
|
|
311
|
+
style: y.value
|
|
313
312
|
}, [t.slots.default && t.slots.default()])]);
|
|
314
313
|
}
|
|
315
314
|
});
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
function
|
|
315
|
+
function he(a, t, e) {
|
|
316
|
+
var B;
|
|
317
|
+
function r() {
|
|
319
318
|
e != null && e.resolveComponentContext && e.resolveComponentContext();
|
|
320
319
|
}
|
|
321
|
-
|
|
322
|
-
const n = e && e.getStyles && e.getStyles() || "",
|
|
323
|
-
function
|
|
320
|
+
r();
|
|
321
|
+
const n = e && e.getStyles && e.getStyles() || "", l = e && e.getDesignerClass && e.getDesignerClass() || "", p = E();
|
|
322
|
+
function f() {
|
|
324
323
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
325
324
|
}
|
|
326
|
-
function
|
|
325
|
+
function m() {
|
|
327
326
|
return !1;
|
|
328
327
|
}
|
|
329
|
-
function
|
|
328
|
+
function i() {
|
|
330
329
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : e && e.checkCanDeleteComponent ? e.checkCanDeleteComponent() : !0;
|
|
331
330
|
}
|
|
332
331
|
function s() {
|
|
333
332
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : e && e.hideNestedPaddingInDesginerView ? e.hideNestedPaddingInDesginerView() : !1;
|
|
334
333
|
}
|
|
335
|
-
function
|
|
336
|
-
if (!
|
|
334
|
+
function o(v) {
|
|
335
|
+
if (!v || !v.value)
|
|
337
336
|
return null;
|
|
338
|
-
if (
|
|
339
|
-
return
|
|
340
|
-
const
|
|
341
|
-
return
|
|
337
|
+
if (v.value.schema && v.value.schema.type === "component")
|
|
338
|
+
return v.value;
|
|
339
|
+
const M = E(v == null ? void 0 : v.value.parent), w = o(M);
|
|
340
|
+
return w || null;
|
|
342
341
|
}
|
|
343
|
-
function
|
|
344
|
-
const { componentInstance:
|
|
345
|
-
return !
|
|
342
|
+
function c(v = t) {
|
|
343
|
+
const { componentInstance: M, designerItemElementRef: w } = v;
|
|
344
|
+
return !M || !M.value ? null : M.value.canMove ? w : c(v.parent);
|
|
346
345
|
}
|
|
347
|
-
function
|
|
348
|
-
return !!e && e.canAccepts(
|
|
346
|
+
function y(v) {
|
|
347
|
+
return !!e && e.canAccepts(v);
|
|
349
348
|
}
|
|
350
|
-
function
|
|
349
|
+
function d() {
|
|
351
350
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
352
351
|
}
|
|
353
|
-
function
|
|
354
|
-
}
|
|
355
|
-
function M(y, v) {
|
|
356
|
-
v && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(v);
|
|
352
|
+
function h() {
|
|
357
353
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
let b = L(C, y, v);
|
|
361
|
-
e && e.onResolveNewComponentSchema && (b = e.onResolveNewComponentSchema(y, b));
|
|
362
|
-
const F = C.toLowerCase().replace("-", "_");
|
|
363
|
-
return b && !b.id && b.type === C && (b.id = `${F}_${Math.random().toString().slice(2, 6)}`), b;
|
|
354
|
+
function C(v, M) {
|
|
355
|
+
M && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(M);
|
|
364
356
|
}
|
|
365
|
-
function
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
return B && !B.id && B.type === C && (B.id = `${Z}_${Math.random().toString().slice(2, 6)}`), B;
|
|
357
|
+
function b(v, M) {
|
|
358
|
+
const { componentType: w } = v;
|
|
359
|
+
let S = J(w, v, M);
|
|
360
|
+
e && e.onResolveNewComponentSchema && (S = e.onResolveNewComponentSchema(v, S));
|
|
361
|
+
const A = w.toLowerCase().replace("-", "_");
|
|
362
|
+
return S && !S.id && S.type === w && (S.id = `${A}_${Math.random().toString().slice(2, 6)}`), S;
|
|
372
363
|
}
|
|
373
|
-
function
|
|
364
|
+
function k(v) {
|
|
374
365
|
}
|
|
375
|
-
function
|
|
366
|
+
function T(...v) {
|
|
376
367
|
if (e && e.getPropsConfig)
|
|
377
|
-
return e.getPropsConfig(...
|
|
368
|
+
return e.getPropsConfig(...v);
|
|
378
369
|
}
|
|
379
|
-
return
|
|
380
|
-
canMove:
|
|
381
|
-
canSelectParent:
|
|
382
|
-
canDelete:
|
|
370
|
+
return p.value = {
|
|
371
|
+
canMove: f(),
|
|
372
|
+
canSelectParent: m(),
|
|
373
|
+
canDelete: i(),
|
|
383
374
|
canNested: !s(),
|
|
384
375
|
contents: t == null ? void 0 : t.schema.contents,
|
|
385
376
|
elementRef: a,
|
|
386
|
-
parent: (
|
|
377
|
+
parent: (B = t == null ? void 0 : t.parent) == null ? void 0 : B.componentInstance,
|
|
387
378
|
schema: t == null ? void 0 : t.schema,
|
|
388
379
|
styles: n,
|
|
389
|
-
designerClass:
|
|
390
|
-
canAccepts:
|
|
391
|
-
getBelongedComponentInstance:
|
|
392
|
-
getDraggableDesignItemElement:
|
|
393
|
-
getDraggingDisplayText:
|
|
394
|
-
getPropConfig:
|
|
395
|
-
getDragScopeElement:
|
|
396
|
-
onAcceptMovedChildElement:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}, c;
|
|
380
|
+
designerClass: l,
|
|
381
|
+
canAccepts: y,
|
|
382
|
+
getBelongedComponentInstance: o,
|
|
383
|
+
getDraggableDesignItemElement: c,
|
|
384
|
+
getDraggingDisplayText: d,
|
|
385
|
+
getPropConfig: T,
|
|
386
|
+
getDragScopeElement: h,
|
|
387
|
+
onAcceptMovedChildElement: C,
|
|
388
|
+
onChildElementMovedOut: k,
|
|
389
|
+
addNewChildComponentSchema: b,
|
|
390
|
+
updateDragAndDropRules: r,
|
|
391
|
+
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || E(!1),
|
|
392
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || E(!1)
|
|
393
|
+
}, p;
|
|
404
394
|
}
|
|
405
|
-
class
|
|
395
|
+
class ge {
|
|
406
396
|
constructor(t, e) {
|
|
407
397
|
g(this, "componentId");
|
|
408
398
|
g(this, "viewModelId");
|
|
@@ -419,8 +409,8 @@ class be {
|
|
|
419
409
|
type: "object",
|
|
420
410
|
categories: {}
|
|
421
411
|
});
|
|
422
|
-
var
|
|
423
|
-
this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((
|
|
412
|
+
var r;
|
|
413
|
+
this.componentId = t, this.designerHostService = e, this.eventsEditorUtils = e.eventsEditorUtils, this.formSchemaUtils = e.formSchemaUtils, this.formMetadataConverter = e.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = e.designViewModelUtils, this.controlCreatorUtils = e.controlCreatorUtils, this.metadataService = e.metadataService, this.schemaService = e.schemaService;
|
|
424
414
|
}
|
|
425
415
|
getTableInfo() {
|
|
426
416
|
var t;
|
|
@@ -430,8 +420,8 @@ class be {
|
|
|
430
420
|
const e = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
431
421
|
if (e) {
|
|
432
422
|
if (!this.designViewModelField) {
|
|
433
|
-
const
|
|
434
|
-
this.designViewModelField =
|
|
423
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
424
|
+
this.designViewModelField = r.fields.find((n) => n.id === e);
|
|
435
425
|
}
|
|
436
426
|
t.updateOn = this.designViewModelField.updateOn;
|
|
437
427
|
}
|
|
@@ -457,7 +447,7 @@ class be {
|
|
|
457
447
|
type: "combo-list",
|
|
458
448
|
textField: "name",
|
|
459
449
|
valueField: "value",
|
|
460
|
-
data: [{ value: t.type, name:
|
|
450
|
+
data: [{ value: t.type, name: u[t.type].name }]
|
|
461
451
|
}
|
|
462
452
|
}
|
|
463
453
|
}
|
|
@@ -490,19 +480,19 @@ class be {
|
|
|
490
480
|
* @returns
|
|
491
481
|
*/
|
|
492
482
|
updateElementByParentContainer(t, e) {
|
|
493
|
-
const
|
|
494
|
-
if (!
|
|
483
|
+
const r = e && e.parent && e.parent.schema;
|
|
484
|
+
if (!r)
|
|
495
485
|
return;
|
|
496
|
-
const n =
|
|
497
|
-
|
|
486
|
+
const n = r.contents.findIndex((p) => p.id === t), l = q(r.contents[n]);
|
|
487
|
+
r.contents.splice(n, 1), r.contents.splice(n, 0, l);
|
|
498
488
|
}
|
|
499
489
|
}
|
|
500
|
-
const
|
|
490
|
+
const I = class I {
|
|
501
491
|
/**
|
|
502
492
|
* 根据绑定字段类型获取可用的输入类控件
|
|
503
493
|
*/
|
|
504
494
|
static getEditorTypesByMDataType(t) {
|
|
505
|
-
const e =
|
|
495
|
+
const e = I.fieldControlTypeMapping[t];
|
|
506
496
|
return e || [{ key: "", value: "" }];
|
|
507
497
|
}
|
|
508
498
|
/**
|
|
@@ -510,9 +500,9 @@ const P = class P {
|
|
|
510
500
|
*/
|
|
511
501
|
static getAllInputTypes() {
|
|
512
502
|
const t = [];
|
|
513
|
-
for (let e in
|
|
514
|
-
|
|
515
|
-
t.find((n) => n.key ===
|
|
503
|
+
for (let e in I.fieldControlTypeMapping)
|
|
504
|
+
I.fieldControlTypeMapping[e].forEach((r) => {
|
|
505
|
+
t.find((n) => n.key === r.key && n.value === r.value) || t.push({ key: r.key, value: r.value });
|
|
516
506
|
});
|
|
517
507
|
return t;
|
|
518
508
|
}
|
|
@@ -520,68 +510,175 @@ const P = class P {
|
|
|
520
510
|
/**
|
|
521
511
|
* <字段类型,可配置的控件类型列表>的映射
|
|
522
512
|
*/
|
|
523
|
-
g(
|
|
513
|
+
g(I, "fieldControlTypeMapping", {
|
|
524
514
|
String: [
|
|
525
|
-
{ key:
|
|
526
|
-
{ key:
|
|
527
|
-
{ key:
|
|
528
|
-
{ key:
|
|
529
|
-
{ key:
|
|
530
|
-
{ key:
|
|
531
|
-
{ key:
|
|
515
|
+
{ key: u["input-group"].type, value: u["input-group"].name },
|
|
516
|
+
{ key: u.lookup.type, value: u.lookup.name },
|
|
517
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name },
|
|
518
|
+
{ key: u["check-box"].type, value: u["check-box"].name },
|
|
519
|
+
{ key: u["check-group"].type, value: u["check-group"].name },
|
|
520
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name },
|
|
521
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
522
|
+
{ key: u.textarea.type, value: u.textarea.name }
|
|
532
523
|
],
|
|
533
524
|
Text: [
|
|
534
|
-
{ key:
|
|
535
|
-
{ key:
|
|
525
|
+
{ key: u.textarea.type, value: u.textarea.name },
|
|
526
|
+
{ key: u.lookup.type, value: u.lookup.name }
|
|
536
527
|
],
|
|
537
528
|
Decimal: [
|
|
538
|
-
{ key:
|
|
529
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
539
530
|
],
|
|
540
531
|
Integer: [
|
|
541
|
-
{ key:
|
|
532
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
542
533
|
],
|
|
543
534
|
Number: [
|
|
544
|
-
{ key:
|
|
535
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
545
536
|
],
|
|
546
537
|
BigNumber: [
|
|
547
|
-
{ key:
|
|
538
|
+
{ key: u["number-spinner"].type, value: u["number-spinner"].name }
|
|
548
539
|
],
|
|
549
540
|
Date: [
|
|
550
|
-
{ key:
|
|
541
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name }
|
|
551
542
|
],
|
|
552
543
|
DateTime: [
|
|
553
|
-
{ key:
|
|
544
|
+
{ key: u["date-picker"].type, value: u["date-picker"].name }
|
|
554
545
|
],
|
|
555
546
|
Boolean: [
|
|
556
|
-
{ key:
|
|
557
|
-
{ key:
|
|
547
|
+
{ key: u.switch.type, value: u.switch.name },
|
|
548
|
+
{ key: u["check-box"].type, value: u["check-box"].name }
|
|
558
549
|
],
|
|
559
550
|
Enum: [
|
|
560
|
-
{ key:
|
|
561
|
-
{ key:
|
|
551
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
552
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name }
|
|
562
553
|
],
|
|
563
554
|
Object: [
|
|
564
|
-
{ key:
|
|
565
|
-
{ key:
|
|
566
|
-
{ key:
|
|
555
|
+
{ key: u.lookup.type, value: u.lookup.name },
|
|
556
|
+
{ key: u["combo-list"].type, value: u["combo-list"].name },
|
|
557
|
+
{ key: u["radio-group"].type, value: u["radio-group"].name }
|
|
567
558
|
]
|
|
568
559
|
});
|
|
569
|
-
let
|
|
570
|
-
const
|
|
571
|
-
class
|
|
572
|
-
constructor(
|
|
573
|
-
|
|
560
|
+
let V = I;
|
|
561
|
+
const ve = E(0);
|
|
562
|
+
class Ce {
|
|
563
|
+
constructor() {
|
|
564
|
+
/** 控件标题 */
|
|
565
|
+
g(this, "label", "");
|
|
566
|
+
/** 控件id */
|
|
567
|
+
g(this, "id", "");
|
|
568
|
+
/** 每个控件占用的栅格数 */
|
|
569
|
+
g(this, "columnInSM", 12);
|
|
570
|
+
g(this, "columnInMD", 6);
|
|
571
|
+
g(this, "columnInLG", 3);
|
|
572
|
+
g(this, "columnInEL", 2);
|
|
573
|
+
/** 每个控件占用的列数 */
|
|
574
|
+
g(this, "displayWidthInSM", 1);
|
|
575
|
+
g(this, "displayWidthInMD", 1);
|
|
576
|
+
g(this, "displayWidthInLG", 1);
|
|
577
|
+
g(this, "displayWidthInEL", 1);
|
|
578
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
579
|
+
g(this, "displayColumnCountAtBreakPoint", "md");
|
|
580
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
581
|
+
g(this, "tagRow", 0);
|
|
582
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
583
|
+
g(this, "showTopBorder", 0);
|
|
584
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
585
|
+
g(this, "group", 1);
|
|
586
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
587
|
+
g(this, "isSupportedClass", !0);
|
|
588
|
+
/** 控件所在分组id(设计器用的) */
|
|
589
|
+
g(this, "fieldSetId", "");
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
function be(a) {
|
|
593
|
+
let t, e;
|
|
594
|
+
const r = /* @__PURE__ */ new Map();
|
|
595
|
+
let n = [];
|
|
596
|
+
function l(s, o) {
|
|
597
|
+
const y = s.split(" ").filter((k) => k.startsWith("col-"));
|
|
598
|
+
if (y.length === 0) {
|
|
599
|
+
o.isSupportedClass = !1;
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
let d = y.find((k) => /^col-([1-9]|10|11|12)$/.test(k)), h = y.find((k) => /^col-md-([1-9]|10|11|12)$/.test(k)), C = y.find((k) => /^col-xl-([1-9]|10|11|12)$/.test(k)), b = y.find((k) => /^col-el-([1-9]|10|11|12)$/.test(k));
|
|
603
|
+
d = d || "col-12", o.columnInSM = parseInt(d.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), h = h || "col-md-" + o.columnInSM, o.columnInMD = parseInt(h.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), C = C || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(C.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), b = b || "col-el-" + o.columnInLG, o.columnInEL = parseInt(b.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
604
|
+
}
|
|
605
|
+
function p(s, o, c, y = !1) {
|
|
606
|
+
let d = !1;
|
|
607
|
+
s.contents.forEach((h) => {
|
|
608
|
+
if (h.type === "fieldset") {
|
|
609
|
+
c += 1, p(h, o, c, !0), d = !0;
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
d && (c += 1, d = !1);
|
|
613
|
+
const C = h.appearance && h.appearance.class, b = new Ce();
|
|
614
|
+
C ? l(C, b) : b.isSupportedClass = !1, b.label = h.label || h.id, b.id = h.id, b.group = c, y && (b.fieldSetId = s.id), e === h.id && (t = c), r.set(h.id, h), o.push(b);
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
function f(s) {
|
|
618
|
+
const o = a.getComponentById(s);
|
|
619
|
+
if (!o || !o.componentType || !o.componentType.startsWith("form"))
|
|
620
|
+
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
621
|
+
const c = a.selectNode(o, (y) => y.type === G["response-form"].type);
|
|
622
|
+
return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
|
|
623
|
+
}
|
|
624
|
+
function m(s, o) {
|
|
625
|
+
o = o || s.id;
|
|
626
|
+
const { result: c, message: y, formNode: d } = f(o);
|
|
627
|
+
if (!c)
|
|
628
|
+
return { result: c, message: y };
|
|
629
|
+
e = s.id, n = [], r.clear();
|
|
630
|
+
const h = d.contents[0].type === G.fieldset.type ? 0 : 1;
|
|
631
|
+
p(d, n, h);
|
|
632
|
+
const C = n.find((k) => !k.isSupportedClass);
|
|
633
|
+
return {
|
|
634
|
+
defaultState: {
|
|
635
|
+
defaultGroupNumber: t || 1,
|
|
636
|
+
model: C ? "customize" : "standard"
|
|
637
|
+
},
|
|
638
|
+
importData: n
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
function i(s, o) {
|
|
642
|
+
o = o;
|
|
643
|
+
const { result: c, formNode: y } = f(o);
|
|
644
|
+
if (!c)
|
|
645
|
+
return "";
|
|
646
|
+
const d = [];
|
|
647
|
+
return s.forEach((h) => {
|
|
648
|
+
var k;
|
|
649
|
+
const C = r.get(h.id), b = C.appearance && C.appearance.class;
|
|
650
|
+
if (b) {
|
|
651
|
+
const B = b.split(" ").filter((Y) => !Y.startsWith("col-")), v = "col-" + h.columnInSM, M = "col-md-" + h.columnInMD, w = "col-xl-" + h.columnInLG, S = "col-el-" + h.columnInEL, A = [v, M, w, S].concat(B);
|
|
652
|
+
C.appearance.class = A.join(" ");
|
|
653
|
+
}
|
|
654
|
+
if (h.fieldSetId) {
|
|
655
|
+
const T = y.contents.find((v) => v.id === h.fieldSetId), B = d.find((v) => v.id === h.fieldSetId);
|
|
656
|
+
B ? (k = B.contents) == null || k.push(C) : (d.push(T), T.contents = [C]);
|
|
657
|
+
} else
|
|
658
|
+
d.push(C);
|
|
659
|
+
}), y.contents = d, y.id;
|
|
660
|
+
}
|
|
661
|
+
return {
|
|
662
|
+
checkCanFindFormNode: f,
|
|
663
|
+
checkCanOpenLayoutEditor: m,
|
|
664
|
+
changeFormControlsByResponseLayoutConfig: i,
|
|
665
|
+
getResonseFormLayoutConfig: p
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
class ke extends ge {
|
|
669
|
+
constructor(e, r) {
|
|
670
|
+
super(e, r);
|
|
574
671
|
g(this, "responseLayoutEditorFunction");
|
|
575
|
-
this.responseLayoutEditorFunction =
|
|
672
|
+
this.responseLayoutEditorFunction = be(this.formSchemaUtils);
|
|
576
673
|
}
|
|
577
|
-
getPropertyConfig(e,
|
|
578
|
-
return this.propertyConfig.categories.basic = this.getBasicProperties(e,
|
|
674
|
+
getPropertyConfig(e, r) {
|
|
675
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(e, r), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, r), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
|
|
579
676
|
}
|
|
580
|
-
getBasicProperties(e,
|
|
581
|
-
var
|
|
677
|
+
getBasicProperties(e, r) {
|
|
678
|
+
var f;
|
|
582
679
|
var n = this;
|
|
583
680
|
this.setDesignViewModelField(e);
|
|
584
|
-
const
|
|
681
|
+
const l = this.formSchemaUtils.getFormMetadataBasicInfo(), p = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
585
682
|
return {
|
|
586
683
|
description: "Basic Information",
|
|
587
684
|
title: "基本信息",
|
|
@@ -603,7 +700,7 @@ class we extends be {
|
|
|
603
700
|
textField: "value",
|
|
604
701
|
valueField: "key",
|
|
605
702
|
editable: !1,
|
|
606
|
-
data: n.designViewModelField ?
|
|
703
|
+
data: n.designViewModelField ? V.getEditorTypesByMDataType((f = n.designViewModelField.type) == null ? void 0 : f.name) : V.getAllInputTypes()
|
|
607
704
|
}
|
|
608
705
|
},
|
|
609
706
|
label: {
|
|
@@ -620,7 +717,7 @@ class we extends be {
|
|
|
620
717
|
bindingType: { enable: !1 },
|
|
621
718
|
editorParams: {
|
|
622
719
|
propertyData: e,
|
|
623
|
-
formBasicInfo:
|
|
720
|
+
formBasicInfo: l
|
|
624
721
|
},
|
|
625
722
|
columns: [
|
|
626
723
|
{ field: "name", title: "字段名称" },
|
|
@@ -628,26 +725,26 @@ class we extends be {
|
|
|
628
725
|
{ field: "fieldType", title: "字段类型" }
|
|
629
726
|
],
|
|
630
727
|
textField: "bindingField",
|
|
631
|
-
data:
|
|
728
|
+
data: p
|
|
632
729
|
}
|
|
633
730
|
}
|
|
634
731
|
},
|
|
635
|
-
setPropertyRelates(
|
|
636
|
-
if (
|
|
637
|
-
switch (
|
|
732
|
+
setPropertyRelates(m, i) {
|
|
733
|
+
if (m)
|
|
734
|
+
switch (m && m.propertyID) {
|
|
638
735
|
case "type": {
|
|
639
|
-
n.changeControlType(e,
|
|
736
|
+
n.changeControlType(e, m, r);
|
|
640
737
|
break;
|
|
641
738
|
}
|
|
642
739
|
case "label": {
|
|
643
|
-
|
|
740
|
+
m.needRefreshControlTree = !0;
|
|
644
741
|
break;
|
|
645
742
|
}
|
|
646
743
|
}
|
|
647
744
|
}
|
|
648
745
|
};
|
|
649
746
|
}
|
|
650
|
-
getAppearanceProperties(e,
|
|
747
|
+
getAppearanceProperties(e, r) {
|
|
651
748
|
var n = this;
|
|
652
749
|
return {
|
|
653
750
|
title: "样式",
|
|
@@ -678,14 +775,14 @@ class we extends be {
|
|
|
678
775
|
}
|
|
679
776
|
}
|
|
680
777
|
},
|
|
681
|
-
setPropertyRelates(
|
|
682
|
-
if (
|
|
683
|
-
switch (
|
|
778
|
+
setPropertyRelates(l, p) {
|
|
779
|
+
if (l)
|
|
780
|
+
switch (l && l.propertyID) {
|
|
684
781
|
case "responseLayout":
|
|
685
|
-
n.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(
|
|
782
|
+
n.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, n.componentId || e.id), n.updateUnifiedLayoutAfterResponseLayoutChanged(n.componentId), n.updateElementByParentContainer(e.id, r), delete e.responseLayout;
|
|
686
783
|
break;
|
|
687
784
|
case "class":
|
|
688
|
-
n.updateUnifiedLayoutAfterControlChanged(
|
|
785
|
+
n.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), n.updateElementByParentContainer(e.id, r);
|
|
689
786
|
break;
|
|
690
787
|
}
|
|
691
788
|
}
|
|
@@ -699,44 +796,44 @@ class we extends be {
|
|
|
699
796
|
* @param propertyData 控件DOM属性
|
|
700
797
|
* @param newControlType 新控件类型
|
|
701
798
|
*/
|
|
702
|
-
changeControlType(e,
|
|
703
|
-
var s,
|
|
704
|
-
const
|
|
705
|
-
if (!
|
|
799
|
+
changeControlType(e, r, n) {
|
|
800
|
+
var s, o, c, y;
|
|
801
|
+
const l = r.propertyValue, p = n && n.parent && n.parent.schema;
|
|
802
|
+
if (!p)
|
|
706
803
|
return;
|
|
707
|
-
const
|
|
708
|
-
let
|
|
804
|
+
const f = p.contents.findIndex((d) => d.id === e.id), m = p.contents[f];
|
|
805
|
+
let i;
|
|
709
806
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
710
807
|
editor: {
|
|
711
|
-
$type:
|
|
808
|
+
$type: l
|
|
712
809
|
},
|
|
713
810
|
name: this.designViewModelField.name,
|
|
714
811
|
require: this.designViewModelField.require,
|
|
715
812
|
readonly: this.designViewModelField.readonly
|
|
716
|
-
}, !1),
|
|
717
|
-
id:
|
|
718
|
-
appearance:
|
|
719
|
-
size:
|
|
720
|
-
label:
|
|
721
|
-
binding:
|
|
722
|
-
visible:
|
|
723
|
-
}), Object.assign(
|
|
724
|
-
isTextArea:
|
|
725
|
-
placeholder: (s =
|
|
726
|
-
holdPlace: (
|
|
727
|
-
readonly: (
|
|
728
|
-
require: (
|
|
729
|
-
}),
|
|
730
|
-
(
|
|
731
|
-
),
|
|
732
|
-
}
|
|
733
|
-
getComponentConfig(e,
|
|
734
|
-
const
|
|
813
|
+
}, !1), i = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), i || (i = this.controlCreatorUtils.createFormGroupWithoutField(l)), Object.assign(i, {
|
|
814
|
+
id: m.id,
|
|
815
|
+
appearance: m.appearance,
|
|
816
|
+
size: m.size,
|
|
817
|
+
label: m.label,
|
|
818
|
+
binding: m.binding,
|
|
819
|
+
visible: m.visible
|
|
820
|
+
}), Object.assign(i.editor, {
|
|
821
|
+
isTextArea: i.isTextArea && m.isTextArea,
|
|
822
|
+
placeholder: (s = m.editor) == null ? void 0 : s.placeholder,
|
|
823
|
+
holdPlace: (o = m.editor) == null ? void 0 : o.holdPlace,
|
|
824
|
+
readonly: (c = m.editor) == null ? void 0 : c.readonly,
|
|
825
|
+
require: (y = m.editor) == null ? void 0 : y.require
|
|
826
|
+
}), p.contents.splice(f, 1), p.contents.splice(f, 0, i), n.schema = Object.assign(m, i), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
827
|
+
(d) => d.classList.remove("dgComponentSelected")
|
|
828
|
+
), ve.value++;
|
|
829
|
+
}
|
|
830
|
+
getComponentConfig(e, r = {}, n = {}) {
|
|
831
|
+
const l = Object.assign({
|
|
735
832
|
description: "编辑器",
|
|
736
833
|
title: "编辑器",
|
|
737
834
|
type: "input-group",
|
|
738
835
|
$converter: "/converter/property-editor.converter"
|
|
739
|
-
},
|
|
836
|
+
}, r), p = Object.assign({
|
|
740
837
|
readonly: {
|
|
741
838
|
description: "",
|
|
742
839
|
title: "只读",
|
|
@@ -758,7 +855,7 @@ class we extends be {
|
|
|
758
855
|
type: "string"
|
|
759
856
|
}
|
|
760
857
|
}, n);
|
|
761
|
-
return { ...
|
|
858
|
+
return { ...l, properties: { ...p } };
|
|
762
859
|
}
|
|
763
860
|
/**
|
|
764
861
|
* 修改某一输入控件的样式后更新Form的统一布局配置
|
|
@@ -766,16 +863,16 @@ class we extends be {
|
|
|
766
863
|
* @param controlId 控件Id
|
|
767
864
|
* @param componentId 控件所在组件id
|
|
768
865
|
*/
|
|
769
|
-
updateUnifiedLayoutAfterControlChanged(e,
|
|
770
|
-
const
|
|
771
|
-
let
|
|
772
|
-
|
|
866
|
+
updateUnifiedLayoutAfterControlChanged(e, r, n) {
|
|
867
|
+
const l = e.split(" ");
|
|
868
|
+
let p = l.find((o) => /^col-([1-9]|10|11|12)$/.test(o)), f = l.find((o) => /^col-md-([1-9]|10|11|12)$/.test(o)), m = l.find((o) => /^col-xl-([1-9]|10|11|12)$/.test(o)), i = l.find((o) => /^col-el-([1-9]|10|11|12)$/.test(o));
|
|
869
|
+
p = p || "col-12", f = f || "col-md-" + p.replace("col-", ""), m = m || "col-xl-" + f.replace("col-md-", ""), i = i || "col-el-" + m.replace("col-xl-", "");
|
|
773
870
|
const s = {
|
|
774
|
-
id:
|
|
775
|
-
columnInSM: parseInt(
|
|
776
|
-
columnInMD: parseInt(
|
|
777
|
-
columnInLG: parseInt(
|
|
778
|
-
columnInEL: parseInt(
|
|
871
|
+
id: r,
|
|
872
|
+
columnInSM: parseInt(p.replace("col-", ""), 10),
|
|
873
|
+
columnInMD: parseInt(f.replace("col-md-", ""), 10),
|
|
874
|
+
columnInLG: parseInt(m.replace("col-xl-", ""), 10),
|
|
875
|
+
columnInEL: parseInt(i.replace("col-el-", ""), 10)
|
|
779
876
|
};
|
|
780
877
|
this.updateUnifiedLayoutAfterResponseLayoutChanged(n, s);
|
|
781
878
|
}
|
|
@@ -784,32 +881,32 @@ class we extends be {
|
|
|
784
881
|
* @param componentId 组件Id
|
|
785
882
|
* @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
|
|
786
883
|
*/
|
|
787
|
-
updateUnifiedLayoutAfterResponseLayoutChanged(e,
|
|
884
|
+
updateUnifiedLayoutAfterResponseLayoutChanged(e, r) {
|
|
788
885
|
const { formNode: n } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
|
|
789
886
|
if (!n || !n.unifiedLayout)
|
|
790
887
|
return;
|
|
791
|
-
const
|
|
792
|
-
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(n,
|
|
793
|
-
const
|
|
794
|
-
Object.assign(
|
|
888
|
+
const l = [];
|
|
889
|
+
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(n, l, 1), r) {
|
|
890
|
+
const d = l.find((h) => h.id === r.id);
|
|
891
|
+
Object.assign(d || {}, r);
|
|
795
892
|
}
|
|
796
|
-
const
|
|
893
|
+
const p = l.map((d) => d.columnInSM), f = l.map((d) => d.columnInMD), m = l.map((d) => d.columnInLG), i = l.map((d) => d.columnInEL), s = this.checkIsUniqueColumn(p) ? p[0] : null, o = this.checkIsUniqueColumn(f) ? f[0] : null, c = this.checkIsUniqueColumn(m) ? m[0] : null, y = this.checkIsUniqueColumn(i) ? i[0] : null;
|
|
797
894
|
Object.assign(n.unifiedLayout, {
|
|
798
895
|
uniqueColClassInSM: s,
|
|
799
|
-
uniqueColClassInMD:
|
|
800
|
-
uniqueColClassInLG:
|
|
801
|
-
uniqueColClassInEL:
|
|
896
|
+
uniqueColClassInMD: o,
|
|
897
|
+
uniqueColClassInLG: c,
|
|
898
|
+
uniqueColClassInEL: y
|
|
802
899
|
});
|
|
803
900
|
}
|
|
804
901
|
/**
|
|
805
902
|
* 校验宽度样式值是否一致
|
|
806
903
|
*/
|
|
807
904
|
checkIsUniqueColumn(e) {
|
|
808
|
-
const
|
|
809
|
-
return Array.from(
|
|
905
|
+
const r = new Set(e);
|
|
906
|
+
return Array.from(r).length === 1;
|
|
810
907
|
}
|
|
811
908
|
}
|
|
812
|
-
class Me extends
|
|
909
|
+
class Me extends ke {
|
|
813
910
|
constructor(t, e) {
|
|
814
911
|
super(t, e);
|
|
815
912
|
}
|
|
@@ -865,97 +962,97 @@ class Me extends we {
|
|
|
865
962
|
});
|
|
866
963
|
}
|
|
867
964
|
}
|
|
868
|
-
function
|
|
965
|
+
function we(a, t) {
|
|
869
966
|
a.schema;
|
|
870
|
-
const e =
|
|
871
|
-
function n(
|
|
967
|
+
const e = E(!0), r = E(!0);
|
|
968
|
+
function n(o) {
|
|
872
969
|
return !1;
|
|
873
970
|
}
|
|
874
|
-
function
|
|
971
|
+
function l() {
|
|
875
972
|
return !1;
|
|
876
973
|
}
|
|
877
|
-
function
|
|
974
|
+
function p() {
|
|
878
975
|
return !1;
|
|
879
976
|
}
|
|
880
|
-
function
|
|
977
|
+
function f() {
|
|
881
978
|
return !0;
|
|
882
979
|
}
|
|
883
|
-
function
|
|
980
|
+
function m(o) {
|
|
884
981
|
}
|
|
885
|
-
function
|
|
982
|
+
function i() {
|
|
886
983
|
}
|
|
887
|
-
function s(
|
|
984
|
+
function s(o) {
|
|
888
985
|
return null;
|
|
889
986
|
}
|
|
890
987
|
return {
|
|
891
988
|
canAccepts: n,
|
|
892
|
-
checkCanDeleteComponent:
|
|
893
|
-
checkCanMoveComponent:
|
|
894
|
-
hideNestedPaddingInDesginerView:
|
|
895
|
-
onAcceptMovedChildElement:
|
|
896
|
-
resolveComponentContext:
|
|
989
|
+
checkCanDeleteComponent: l,
|
|
990
|
+
checkCanMoveComponent: p,
|
|
991
|
+
hideNestedPaddingInDesginerView: f,
|
|
992
|
+
onAcceptMovedChildElement: m,
|
|
993
|
+
resolveComponentContext: i,
|
|
897
994
|
triggerBelongedComponentToMoveWhenMoved: e,
|
|
898
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
995
|
+
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
899
996
|
getPropsConfig: s
|
|
900
997
|
};
|
|
901
998
|
}
|
|
902
|
-
function
|
|
999
|
+
function Se(a, t) {
|
|
903
1000
|
const {
|
|
904
1001
|
canAccepts: e,
|
|
905
|
-
checkCanDeleteComponent:
|
|
1002
|
+
checkCanDeleteComponent: r,
|
|
906
1003
|
checkCanMoveComponent: n,
|
|
907
|
-
hideNestedPaddingInDesginerView:
|
|
908
|
-
onAcceptMovedChildElement:
|
|
909
|
-
resolveComponentContext:
|
|
910
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
911
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
912
|
-
} =
|
|
913
|
-
function
|
|
914
|
-
return new Me(
|
|
1004
|
+
hideNestedPaddingInDesginerView: l,
|
|
1005
|
+
onAcceptMovedChildElement: p,
|
|
1006
|
+
resolveComponentContext: f,
|
|
1007
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1008
|
+
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1009
|
+
} = we(a), s = a.schema;
|
|
1010
|
+
function o(c, y) {
|
|
1011
|
+
return new Me(c, t).getPropertyConfig(s, y);
|
|
915
1012
|
}
|
|
916
1013
|
return {
|
|
917
1014
|
canAccepts: e,
|
|
918
|
-
checkCanDeleteComponent:
|
|
1015
|
+
checkCanDeleteComponent: r,
|
|
919
1016
|
checkCanMoveComponent: n,
|
|
920
|
-
hideNestedPaddingInDesginerView:
|
|
921
|
-
onAcceptMovedChildElement:
|
|
922
|
-
resolveComponentContext:
|
|
923
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
924
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
925
|
-
getPropsConfig:
|
|
1017
|
+
hideNestedPaddingInDesginerView: l,
|
|
1018
|
+
onAcceptMovedChildElement: p,
|
|
1019
|
+
resolveComponentContext: f,
|
|
1020
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1021
|
+
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1022
|
+
getPropsConfig: o
|
|
926
1023
|
};
|
|
927
1024
|
}
|
|
928
|
-
const
|
|
1025
|
+
const Fe = /* @__PURE__ */ O({
|
|
929
1026
|
name: "FSwitchDesign",
|
|
930
1027
|
props: N,
|
|
931
1028
|
emits: ["update:modelValue"],
|
|
932
1029
|
setup(a, t) {
|
|
933
1030
|
const {
|
|
934
1031
|
size: e,
|
|
935
|
-
onLabel:
|
|
1032
|
+
onLabel: r,
|
|
936
1033
|
offLabel: n
|
|
937
|
-
} =
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}), t.expose(
|
|
941
|
-
const s =
|
|
1034
|
+
} = j(a), l = E(), p = $("designer-host-service"), f = $("design-item-context"), m = Se(f, p), i = he(l, f, m);
|
|
1035
|
+
_(() => {
|
|
1036
|
+
l.value.componentInstance = i;
|
|
1037
|
+
}), t.expose(i.value);
|
|
1038
|
+
const s = D(() => ({
|
|
942
1039
|
switch: !0,
|
|
943
1040
|
"f-cmp-switch": !0,
|
|
944
1041
|
checked: !1,
|
|
945
1042
|
"switch-large": e.value === "large",
|
|
946
1043
|
"switch-medium": e.value === "medium",
|
|
947
1044
|
"switch-small": e.value === "small"
|
|
948
|
-
})),
|
|
949
|
-
return () =>
|
|
950
|
-
ref:
|
|
1045
|
+
})), o = D(() => (r == null ? void 0 : r.value) || (n == null ? void 0 : n.value));
|
|
1046
|
+
return () => F("span", {
|
|
1047
|
+
ref: l,
|
|
951
1048
|
tabindex: "0",
|
|
952
1049
|
role: "button",
|
|
953
1050
|
class: s.value
|
|
954
|
-
}, [
|
|
1051
|
+
}, [o.value && F("span", {
|
|
955
1052
|
class: "switch-pane"
|
|
956
|
-
}, [
|
|
1053
|
+
}, [F("span", {
|
|
957
1054
|
class: "switch-label-unchecked"
|
|
958
|
-
}, [n == null ? void 0 : n.value])]),
|
|
1055
|
+
}, [n == null ? void 0 : n.value])]), F("small", null, [t.slots.default && t.slots.default()])]);
|
|
959
1056
|
}
|
|
960
1057
|
}), Ee = (a) => {
|
|
961
1058
|
const t = a;
|
|
@@ -963,16 +1060,16 @@ const Be = /* @__PURE__ */ W({
|
|
|
963
1060
|
e.component(t.name, a);
|
|
964
1061
|
}, a;
|
|
965
1062
|
};
|
|
966
|
-
|
|
967
|
-
a.switch =
|
|
1063
|
+
P.register = (a, t, e, r) => {
|
|
1064
|
+
a.switch = P, t.switch = Q;
|
|
968
1065
|
};
|
|
969
|
-
|
|
970
|
-
a.switch =
|
|
1066
|
+
P.registerDesigner = (a, t, e) => {
|
|
1067
|
+
a.switch = Fe, t.switch = Q;
|
|
971
1068
|
};
|
|
972
|
-
const
|
|
1069
|
+
const Pe = Ee(P);
|
|
973
1070
|
export {
|
|
974
|
-
|
|
975
|
-
|
|
1071
|
+
P as FSwitch,
|
|
1072
|
+
Pe as default,
|
|
976
1073
|
Q as propsResolver,
|
|
977
1074
|
N as switchProps
|
|
978
1075
|
};
|