@farris/ui-vue 1.2.5 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -3,36 +3,36 @@ var _ = (o, e, t) => e in o ? q(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var C = (o, e, t) => _(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as $, toRefs as j, ref as T, computed as k, watch as U, createVNode as b, inject as z, onMounted as X } from "vue";
|
|
5
5
|
import { cloneDeep as Y } from "lodash-es";
|
|
6
|
-
const x = {},
|
|
6
|
+
const x = {}, W = {};
|
|
7
7
|
function A(o) {
|
|
8
|
-
const { properties: e, title: t } = o, n = Object.keys(e).reduce((
|
|
8
|
+
const { properties: e, title: t } = o, n = Object.keys(e).reduce((r, c) => (r[c] = e[c].type === "object" && e[c].properties ? A(e[c]) : Y(e[c].default), r), {});
|
|
9
9
|
return n.id = `${t}-${Date.now()}`, n;
|
|
10
10
|
}
|
|
11
11
|
function V(o, e = {}) {
|
|
12
12
|
const t = x[o];
|
|
13
13
|
if (t) {
|
|
14
14
|
let n = A(t);
|
|
15
|
-
const
|
|
16
|
-
return n =
|
|
15
|
+
const r = W[o];
|
|
16
|
+
return n = r ? r({ getSchemaByType: V }, n, e) : n, n;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
function Z(o, e) {
|
|
21
21
|
const t = A(e);
|
|
22
|
-
return Object.keys(o).reduce((n,
|
|
22
|
+
return Object.keys(o).reduce((n, r) => (n[r] = o[r], n), t), t;
|
|
23
23
|
}
|
|
24
24
|
function J(o, e) {
|
|
25
|
-
return Object.keys(o).filter((n) => o[n] != null).reduce((n,
|
|
26
|
-
if (e.has(
|
|
27
|
-
const c = e.get(
|
|
25
|
+
return Object.keys(o).filter((n) => o[n] != null).reduce((n, r) => {
|
|
26
|
+
if (e.has(r)) {
|
|
27
|
+
const c = e.get(r);
|
|
28
28
|
if (typeof c == "string")
|
|
29
|
-
n[c] = o[
|
|
29
|
+
n[c] = o[r];
|
|
30
30
|
else {
|
|
31
|
-
const m = c(
|
|
31
|
+
const m = c(r, o[r], o);
|
|
32
32
|
Object.assign(n, m);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
n[
|
|
35
|
+
n[r] = o[r];
|
|
36
36
|
return n;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
@@ -45,13 +45,13 @@ function K(o = {}) {
|
|
|
45
45
|
if (typeof p == "number")
|
|
46
46
|
return s[a].length === p;
|
|
47
47
|
if (typeof p == "object") {
|
|
48
|
-
const g = Object.keys(p)[0],
|
|
48
|
+
const g = Object.keys(p)[0], h = p[g];
|
|
49
49
|
if (g === "not")
|
|
50
|
-
return Number(s[a].length) !== Number(
|
|
50
|
+
return Number(s[a].length) !== Number(h);
|
|
51
51
|
if (g === "moreThan")
|
|
52
|
-
return Number(s[a].length) >= Number(
|
|
52
|
+
return Number(s[a].length) >= Number(h);
|
|
53
53
|
if (g === "lessThan")
|
|
54
|
-
return Number(s[a].length) <= Number(
|
|
54
|
+
return Number(s[a].length) <= Number(h);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
@@ -63,18 +63,18 @@ function K(o = {}) {
|
|
|
63
63
|
["getProperty", t]
|
|
64
64
|
]);
|
|
65
65
|
Object.keys(o).reduce((a, l) => (a.set(l, o[l]), a), n);
|
|
66
|
-
function
|
|
66
|
+
function r(a, l) {
|
|
67
67
|
const p = a;
|
|
68
68
|
return typeof l == "number" ? [{ target: p, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!l }] : typeof l == "object" ? Object.keys(l).map((s) => {
|
|
69
69
|
if (s === "length")
|
|
70
70
|
return { target: p, operator: "length", param: null, value: l[s] };
|
|
71
|
-
const g = s,
|
|
72
|
-
return { target: p, operator: "getProperty", param: g, value:
|
|
71
|
+
const g = s, h = l[s];
|
|
72
|
+
return { target: p, operator: "getProperty", param: g, value: h };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
75
|
function c(a) {
|
|
76
76
|
return Object.keys(a).reduce((p, s) => {
|
|
77
|
-
const g =
|
|
77
|
+
const g = r(s, a[s]);
|
|
78
78
|
return p.push(...g), p;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
@@ -86,20 +86,20 @@ function K(o = {}) {
|
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
88
|
function u(a, l) {
|
|
89
|
-
return c(a).reduce((g,
|
|
89
|
+
return c(a).reduce((g, h) => g && m(h, l), !0);
|
|
90
90
|
}
|
|
91
91
|
function y(a, l) {
|
|
92
|
-
const p = Object.keys(a), s = p.includes("allOf"), g = p.includes("anyOf"),
|
|
92
|
+
const p = Object.keys(a), s = p.includes("allOf"), g = p.includes("anyOf"), h = s || g, S = (h ? a[h ? s ? "allOf" : "anyOf" : "allOf"] : [a]).map((D) => u(D, l));
|
|
93
93
|
return s ? !S.includes(!1) : S.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: y };
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const i = {
|
|
98
98
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
99
99
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
101
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
102
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
103
103
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
104
104
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
105
105
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -126,15 +126,15 @@ const r = {
|
|
|
126
126
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
127
127
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
128
128
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
129
|
-
|
|
129
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
130
130
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
131
131
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
132
132
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
133
133
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
134
134
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
135
135
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
137
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
138
138
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
139
139
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
140
140
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -143,7 +143,7 @@ const r = {
|
|
|
143
143
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
144
144
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
145
145
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
146
|
-
|
|
146
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
147
147
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
148
148
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
149
149
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -173,7 +173,7 @@ const r = {
|
|
|
173
173
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
174
174
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
175
175
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
176
|
-
|
|
176
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
177
177
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
178
178
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
179
179
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -207,8 +207,8 @@ const r = {
|
|
|
207
207
|
/** 审批类 end */
|
|
208
208
|
}, ee = {}, te = {};
|
|
209
209
|
K();
|
|
210
|
-
function ne(o, e, t = /* @__PURE__ */ new Map(), n = (m, u, y) => u,
|
|
211
|
-
return x[e.title] = e,
|
|
210
|
+
function ne(o, e, t = /* @__PURE__ */ new Map(), n = (m, u, y) => u, r = {}, c = (m) => m) {
|
|
211
|
+
return x[e.title] = e, W[e.title] = n, ee[e.title] = r, te[e.title] = c, (m = {}) => {
|
|
212
212
|
const u = R(m, e, t), y = Object.keys(o).reduce((a, l) => (a[l] = o[l].default, a), {});
|
|
213
213
|
return Object.assign(y, u);
|
|
214
214
|
};
|
|
@@ -216,9 +216,9 @@ function ne(o, e, t = /* @__PURE__ */ new Map(), n = (m, u, y) => u, i = {}, c =
|
|
|
216
216
|
function oe(o, e) {
|
|
217
217
|
return { customClass: e.class, customStyle: e.style };
|
|
218
218
|
}
|
|
219
|
-
const
|
|
219
|
+
const re = /* @__PURE__ */ new Map([
|
|
220
220
|
["appearance", oe]
|
|
221
|
-
]),
|
|
221
|
+
]), ie = "https://json-schema.org/draft/2020-12/schema", ae = "https://farris-design.gitee.io/switch.schema.json", le = "switch", ce = "A Farris Component", pe = "object", se = {
|
|
222
222
|
id: {
|
|
223
223
|
description: "The unique identifier for a switch",
|
|
224
224
|
type: "string"
|
|
@@ -294,7 +294,7 @@ const ie = /* @__PURE__ */ new Map([
|
|
|
294
294
|
"id",
|
|
295
295
|
"type"
|
|
296
296
|
], de = {
|
|
297
|
-
$schema:
|
|
297
|
+
$schema: ie,
|
|
298
298
|
$id: ae,
|
|
299
299
|
title: le,
|
|
300
300
|
description: ce,
|
|
@@ -321,7 +321,7 @@ const E = {
|
|
|
321
321
|
/** 开关值变化事件 */
|
|
322
322
|
onModelValueChanged: { type: Function, default: () => {
|
|
323
323
|
} }
|
|
324
|
-
},
|
|
324
|
+
}, G = ne(E, de, re, me), P = /* @__PURE__ */ $({
|
|
325
325
|
name: "FSwitch",
|
|
326
326
|
props: E,
|
|
327
327
|
emits: ["update:modelValue", "modelValueChanged"],
|
|
@@ -329,7 +329,7 @@ const E = {
|
|
|
329
329
|
const {
|
|
330
330
|
disabled: t,
|
|
331
331
|
size: n,
|
|
332
|
-
onLabel:
|
|
332
|
+
onLabel: r,
|
|
333
333
|
offLabel: c,
|
|
334
334
|
onBackground: m,
|
|
335
335
|
offBackground: u,
|
|
@@ -353,7 +353,7 @@ const E = {
|
|
|
353
353
|
background: y.value
|
|
354
354
|
} : {
|
|
355
355
|
backgroundColor: a.value
|
|
356
|
-
}),
|
|
356
|
+
}), h = k(() => (r == null ? void 0 : r.value) || (c == null ? void 0 : c.value));
|
|
357
357
|
function F() {
|
|
358
358
|
t.value || (l.value = !l.value, e.emit("update:modelValue", l.value));
|
|
359
359
|
}
|
|
@@ -367,11 +367,11 @@ const E = {
|
|
|
367
367
|
class: p.value,
|
|
368
368
|
style: s.value,
|
|
369
369
|
onClick: F
|
|
370
|
-
}, [
|
|
370
|
+
}, [h.value && b("span", {
|
|
371
371
|
class: "switch-pane"
|
|
372
372
|
}, [b("span", {
|
|
373
373
|
class: "switch-label-checked"
|
|
374
|
-
}, [
|
|
374
|
+
}, [r == null ? void 0 : r.value]), b("span", {
|
|
375
375
|
class: "switch-label-unchecked"
|
|
376
376
|
}, [c == null ? void 0 : c.value])]), b("small", {
|
|
377
377
|
style: g.value
|
|
@@ -384,7 +384,7 @@ function ye(o, e, t) {
|
|
|
384
384
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
385
385
|
}
|
|
386
386
|
n();
|
|
387
|
-
const
|
|
387
|
+
const r = t && t.getStyles && t.getStyles() || "", c = t && t.getDesignerClass && t.getDesignerClass() || "", m = T();
|
|
388
388
|
function u() {
|
|
389
389
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
390
390
|
}
|
|
@@ -402,17 +402,17 @@ function ye(o, e, t) {
|
|
|
402
402
|
return null;
|
|
403
403
|
if (d.value.schema && d.value.schema.type === "component")
|
|
404
404
|
return d.value;
|
|
405
|
-
const v = T(d == null ? void 0 : d.value.parent),
|
|
406
|
-
return
|
|
405
|
+
const v = T(d == null ? void 0 : d.value.parent), f = p(v);
|
|
406
|
+
return f || null;
|
|
407
407
|
}
|
|
408
408
|
function s(d = e) {
|
|
409
|
-
const { componentInstance: v, designerItemElementRef:
|
|
410
|
-
return !v || !v.value ? null : v.value.canMove ?
|
|
409
|
+
const { componentInstance: v, designerItemElementRef: f } = d;
|
|
410
|
+
return !v || !v.value ? null : v.value.canMove ? f : s(d.parent);
|
|
411
411
|
}
|
|
412
412
|
function g(d) {
|
|
413
413
|
return !!t && t.canAccepts(d);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function h() {
|
|
416
416
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
417
417
|
}
|
|
418
418
|
function F() {
|
|
@@ -422,22 +422,22 @@ function ye(o, e, t) {
|
|
|
422
422
|
}
|
|
423
423
|
function S(d) {
|
|
424
424
|
const { componentType: v } = d;
|
|
425
|
-
let
|
|
426
|
-
t && t.onResolveNewComponentSchema && (
|
|
425
|
+
let f = V(v, d);
|
|
426
|
+
t && t.onResolveNewComponentSchema && (f = t.onResolveNewComponentSchema(d, f));
|
|
427
427
|
const B = v.toLowerCase().replace("-", "_");
|
|
428
|
-
return
|
|
428
|
+
return f && !f.id && f.type === v && (f.id = `${B}_${Math.random().toString().slice(2, 6)}`), f;
|
|
429
429
|
}
|
|
430
430
|
function O(d, v) {
|
|
431
|
-
const
|
|
431
|
+
const f = String(d.getAttribute("data-controltype")), B = d.getAttribute("data-feature"), L = B ? JSON.parse(B) : {};
|
|
432
432
|
L.parentComponentInstance = m.value;
|
|
433
|
-
let M = V(
|
|
433
|
+
let M = V(f, L);
|
|
434
434
|
t && t.onAcceptNewChildElement && (M = t.onAcceptNewChildElement(d, v, M));
|
|
435
|
-
const
|
|
436
|
-
return M && !M.id && M.type ===
|
|
435
|
+
const I = f.toLowerCase().replace("-", "_");
|
|
436
|
+
return M && !M.id && M.type === f && (M.id = `${I}_${Math.random().toString().slice(2, 6)}`), M;
|
|
437
437
|
}
|
|
438
438
|
function D(d) {
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Q(...d) {
|
|
441
441
|
if (t && t.getPropsConfig)
|
|
442
442
|
return t.getPropsConfig(...d);
|
|
443
443
|
}
|
|
@@ -450,13 +450,13 @@ function ye(o, e, t) {
|
|
|
450
450
|
elementRef: o,
|
|
451
451
|
parent: (N = e == null ? void 0 : e.parent) == null ? void 0 : N.componentInstance,
|
|
452
452
|
schema: e == null ? void 0 : e.schema,
|
|
453
|
-
styles:
|
|
453
|
+
styles: r,
|
|
454
454
|
designerClass: c,
|
|
455
455
|
canAccepts: g,
|
|
456
456
|
getBelongedComponentInstance: p,
|
|
457
457
|
getDraggableDesignItemElement: s,
|
|
458
|
-
getDraggingDisplayText:
|
|
459
|
-
getPropConfig:
|
|
458
|
+
getDraggingDisplayText: h,
|
|
459
|
+
getPropConfig: Q,
|
|
460
460
|
getDragScopeElement: F,
|
|
461
461
|
onAcceptMovedChildElement: w,
|
|
462
462
|
onAcceptNewChildElement: O,
|
|
@@ -467,67 +467,68 @@ function ye(o, e, t) {
|
|
|
467
467
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || T(!1)
|
|
468
468
|
}, m;
|
|
469
469
|
}
|
|
470
|
-
class
|
|
470
|
+
class H {
|
|
471
471
|
static getEditorTypesByMDataType(e) {
|
|
472
|
-
|
|
472
|
+
const t = this.fieldControlTypeMapping[e];
|
|
473
|
+
return t || [{ key: "", value: "" }];
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
/**
|
|
476
477
|
* <字段类型,可配置的控件类型列表>的映射
|
|
477
478
|
*/
|
|
478
|
-
C(
|
|
479
|
+
C(H, "fieldControlTypeMapping", {
|
|
479
480
|
String: [
|
|
480
|
-
{ key:
|
|
481
|
-
{ key:
|
|
482
|
-
{ key:
|
|
483
|
-
{ key:
|
|
484
|
-
{ key:
|
|
485
|
-
{ key:
|
|
486
|
-
{ key:
|
|
487
|
-
{ key:
|
|
481
|
+
{ key: i["input-group"].type, value: i["input-group"].name },
|
|
482
|
+
{ key: i.lookup.type, value: i.lookup.name },
|
|
483
|
+
{ key: i.Image.type, value: i.Image.name },
|
|
484
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name },
|
|
485
|
+
{ key: i["check-box"].type, value: i["check-box"].name },
|
|
486
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name },
|
|
487
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
488
|
+
{ key: i.textarea.type, value: i.textarea.name }
|
|
488
489
|
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
489
490
|
],
|
|
490
491
|
Text: [
|
|
491
|
-
{ key:
|
|
492
|
-
{ key:
|
|
493
|
-
{ key:
|
|
492
|
+
{ key: i.textarea.type, value: i.textarea.name },
|
|
493
|
+
{ key: i.avatar.type, value: i.avatar.name },
|
|
494
|
+
{ key: i.lookup.type, value: i.lookup.name }
|
|
494
495
|
],
|
|
495
496
|
Decimal: [
|
|
496
|
-
{ key:
|
|
497
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
497
498
|
],
|
|
498
499
|
Integer: [
|
|
499
|
-
{ key:
|
|
500
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
500
501
|
],
|
|
501
502
|
Number: [
|
|
502
|
-
{ key:
|
|
503
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
503
504
|
],
|
|
504
505
|
BigNumber: [
|
|
505
|
-
{ key:
|
|
506
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
506
507
|
],
|
|
507
508
|
Date: [
|
|
508
|
-
{ key:
|
|
509
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name }
|
|
509
510
|
],
|
|
510
511
|
DateTime: [
|
|
511
|
-
{ key:
|
|
512
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name }
|
|
512
513
|
],
|
|
513
514
|
Boolean: [
|
|
514
|
-
{ key:
|
|
515
|
-
{ key:
|
|
515
|
+
{ key: i.switch.type, value: i.switch.name },
|
|
516
|
+
{ key: i["check-box"].type, value: i["check-box"].name }
|
|
516
517
|
],
|
|
517
518
|
Enum: [
|
|
518
|
-
{ key:
|
|
519
|
-
{ key:
|
|
519
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
520
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name }
|
|
520
521
|
],
|
|
521
522
|
Object: [
|
|
522
|
-
{ key:
|
|
523
|
-
{ key:
|
|
524
|
-
{ key:
|
|
523
|
+
{ key: i.lookup.type, value: i.lookup.name },
|
|
524
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
525
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name }
|
|
525
526
|
],
|
|
526
527
|
EmployeeSelector: [
|
|
527
|
-
{ key:
|
|
528
|
+
{ key: i.EmployeeSelector.type, value: i.EmployeeSelector.name }
|
|
528
529
|
],
|
|
529
530
|
AdminOrganizationSelector: [
|
|
530
|
-
{ key:
|
|
531
|
+
{ key: i.AdminOrganizationSelector.type, value: i.AdminOrganizationSelector.name }
|
|
531
532
|
]
|
|
532
533
|
});
|
|
533
534
|
class ge {
|
|
@@ -541,20 +542,25 @@ class ge {
|
|
|
541
542
|
C(this, "designViewModelField");
|
|
542
543
|
C(this, "controlCreatorUtils");
|
|
543
544
|
C(this, "designerHostService");
|
|
545
|
+
C(this, "schemaService", null);
|
|
544
546
|
C(this, "metadataService", null);
|
|
545
547
|
C(this, "propertyConfig", {
|
|
546
548
|
type: "object",
|
|
547
549
|
categories: {}
|
|
548
550
|
});
|
|
549
551
|
var n;
|
|
550
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService;
|
|
552
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((n = this.formSchemaUtils) == null ? void 0 : n.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
553
|
+
}
|
|
554
|
+
getTableInfo() {
|
|
555
|
+
var e;
|
|
556
|
+
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
551
557
|
}
|
|
552
558
|
setDesignViewModelField(e) {
|
|
553
559
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
554
560
|
if (t) {
|
|
555
561
|
if (!this.designViewModelField) {
|
|
556
562
|
const n = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
557
|
-
this.designViewModelField = n.fields.find((
|
|
563
|
+
this.designViewModelField = n.fields.find((r) => r.id === t);
|
|
558
564
|
}
|
|
559
565
|
e.updateOn = this.designViewModelField.updateOn;
|
|
560
566
|
}
|
|
@@ -562,6 +568,7 @@ class ge {
|
|
|
562
568
|
changeFieldEditorType(e, t) {
|
|
563
569
|
}
|
|
564
570
|
getBasicPropConfig(e) {
|
|
571
|
+
var n, r;
|
|
565
572
|
var t = this;
|
|
566
573
|
return this.setDesignViewModelField(e), {
|
|
567
574
|
description: "Basic Information",
|
|
@@ -583,7 +590,8 @@ class ge {
|
|
|
583
590
|
type: "combo-list",
|
|
584
591
|
textField: "value",
|
|
585
592
|
valueField: "key",
|
|
586
|
-
data:
|
|
593
|
+
data: H.getEditorTypesByMDataType(((r = (n = t.designViewModelField) == null ? void 0 : n.type) == null ? void 0 : r.name) || ""),
|
|
594
|
+
editable: !1
|
|
587
595
|
}
|
|
588
596
|
},
|
|
589
597
|
label: {
|
|
@@ -592,11 +600,11 @@ class ge {
|
|
|
592
600
|
$converter: "/converter/form-group-label.converter"
|
|
593
601
|
}
|
|
594
602
|
},
|
|
595
|
-
setPropertyRelates(
|
|
596
|
-
if (
|
|
597
|
-
switch (
|
|
603
|
+
setPropertyRelates(c, m) {
|
|
604
|
+
if (c)
|
|
605
|
+
switch (c && c.propertyID) {
|
|
598
606
|
case "type": {
|
|
599
|
-
t.changeControlType(e,
|
|
607
|
+
t.changeControlType(e, c);
|
|
600
608
|
break;
|
|
601
609
|
}
|
|
602
610
|
}
|
|
@@ -610,11 +618,11 @@ class ge {
|
|
|
610
618
|
*/
|
|
611
619
|
changeControlType(e, t) {
|
|
612
620
|
var a, l, p, s, g;
|
|
613
|
-
const n = t.propertyValue,
|
|
614
|
-
let c = this.getControlParentContainer(e.id,
|
|
621
|
+
const n = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
622
|
+
let c = this.getControlParentContainer(e.id, r);
|
|
615
623
|
if (!c)
|
|
616
624
|
return;
|
|
617
|
-
const m = c.contents.findIndex((
|
|
625
|
+
const m = c.contents.findIndex((h) => h.id === e.id), u = c.contents[m];
|
|
618
626
|
let y;
|
|
619
627
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
620
628
|
editor: {
|
|
@@ -677,36 +685,15 @@ class ge {
|
|
|
677
685
|
let n;
|
|
678
686
|
if (!t || !t.contents || t.contents.length === 0)
|
|
679
687
|
return null;
|
|
680
|
-
for (const
|
|
681
|
-
if (
|
|
688
|
+
for (const r of t.contents) {
|
|
689
|
+
if (r.id === e)
|
|
682
690
|
return n = t, t;
|
|
683
|
-
if (n = this.getControlParentContainer(e,
|
|
691
|
+
if (n = this.getControlParentContainer(e, r), n)
|
|
684
692
|
return n;
|
|
685
693
|
}
|
|
686
694
|
}
|
|
687
|
-
getBindingFieldEditorOptions(e) {
|
|
688
|
-
const t = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
689
|
-
return {
|
|
690
|
-
type: "field-selector",
|
|
691
|
-
bindingType: { enable: !1 },
|
|
692
|
-
editorParams: {
|
|
693
|
-
propertyData: e,
|
|
694
|
-
formBasicInfo: t
|
|
695
|
-
},
|
|
696
|
-
columns: [
|
|
697
|
-
{ field: "name", title: "字段名称" },
|
|
698
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
699
|
-
{ field: "fieldType", title: "字段类型" }
|
|
700
|
-
],
|
|
701
|
-
beforeOpenDialog: (n) => {
|
|
702
|
-
const i = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
703
|
-
n.instance.loadData(i);
|
|
704
|
-
},
|
|
705
|
-
textField: "bindingField"
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
695
|
}
|
|
709
|
-
class
|
|
696
|
+
class he extends ge {
|
|
710
697
|
constructor(e, t) {
|
|
711
698
|
super(e, t);
|
|
712
699
|
}
|
|
@@ -741,12 +728,16 @@ class fe extends ge {
|
|
|
741
728
|
{ field: "bindingField", title: "绑定字段" },
|
|
742
729
|
{ field: "fieldType", title: "字段类型" }
|
|
743
730
|
],
|
|
731
|
+
textField: "bindingField",
|
|
744
732
|
data: n
|
|
745
733
|
}
|
|
746
734
|
};
|
|
747
735
|
}
|
|
736
|
+
getBindingOtions(e) {
|
|
737
|
+
return this.getFieldSelectorOptions(e);
|
|
738
|
+
}
|
|
748
739
|
getComponentConfig(e, t = {}, n = {}) {
|
|
749
|
-
const
|
|
740
|
+
const r = Object.assign({
|
|
750
741
|
description: "组件信息",
|
|
751
742
|
title: "组件信息",
|
|
752
743
|
type: "input-group",
|
|
@@ -773,10 +764,10 @@ class fe extends ge {
|
|
|
773
764
|
type: "string"
|
|
774
765
|
}
|
|
775
766
|
}, n);
|
|
776
|
-
return { ...
|
|
767
|
+
return { ...r, properties: { ...c } };
|
|
777
768
|
}
|
|
778
769
|
}
|
|
779
|
-
class
|
|
770
|
+
class fe extends he {
|
|
780
771
|
constructor(e, t) {
|
|
781
772
|
super(e, t);
|
|
782
773
|
}
|
|
@@ -834,7 +825,7 @@ class he extends fe {
|
|
|
834
825
|
function ve(o, e) {
|
|
835
826
|
o.schema;
|
|
836
827
|
const t = T(!0), n = T(!0);
|
|
837
|
-
function
|
|
828
|
+
function r(p) {
|
|
838
829
|
return !1;
|
|
839
830
|
}
|
|
840
831
|
function c() {
|
|
@@ -854,7 +845,7 @@ function ve(o, e) {
|
|
|
854
845
|
return null;
|
|
855
846
|
}
|
|
856
847
|
return {
|
|
857
|
-
canAccepts:
|
|
848
|
+
canAccepts: r,
|
|
858
849
|
checkCanDeleteComponent: c,
|
|
859
850
|
checkCanMoveComponent: m,
|
|
860
851
|
hideNestedPaddingInDesginerView: u,
|
|
@@ -869,7 +860,7 @@ function Ce(o, e) {
|
|
|
869
860
|
const {
|
|
870
861
|
canAccepts: t,
|
|
871
862
|
checkCanDeleteComponent: n,
|
|
872
|
-
checkCanMoveComponent:
|
|
863
|
+
checkCanMoveComponent: r,
|
|
873
864
|
hideNestedPaddingInDesginerView: c,
|
|
874
865
|
onAcceptMovedChildElement: m,
|
|
875
866
|
resolveComponentContext: u,
|
|
@@ -877,12 +868,12 @@ function Ce(o, e) {
|
|
|
877
868
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
878
869
|
} = ve(o), l = o.schema;
|
|
879
870
|
function p(s) {
|
|
880
|
-
return new
|
|
871
|
+
return new fe(s, e).getPropertyConfig(l);
|
|
881
872
|
}
|
|
882
873
|
return {
|
|
883
874
|
canAccepts: t,
|
|
884
875
|
checkCanDeleteComponent: n,
|
|
885
|
-
checkCanMoveComponent:
|
|
876
|
+
checkCanMoveComponent: r,
|
|
886
877
|
hideNestedPaddingInDesginerView: c,
|
|
887
878
|
onAcceptMovedChildElement: m,
|
|
888
879
|
resolveComponentContext: u,
|
|
@@ -899,7 +890,7 @@ const be = /* @__PURE__ */ $({
|
|
|
899
890
|
const {
|
|
900
891
|
size: t,
|
|
901
892
|
onLabel: n,
|
|
902
|
-
offLabel:
|
|
893
|
+
offLabel: r
|
|
903
894
|
} = j(o), c = T(), m = z("designer-host-service"), u = z("design-item-context"), y = Ce(u, m), a = ye(c, u, y);
|
|
904
895
|
X(() => {
|
|
905
896
|
c.value.componentInstance = a;
|
|
@@ -911,7 +902,7 @@ const be = /* @__PURE__ */ $({
|
|
|
911
902
|
"switch-large": t.value === "large",
|
|
912
903
|
"switch-medium": t.value === "medium",
|
|
913
904
|
"switch-small": t.value === "small"
|
|
914
|
-
})), p = k(() => (n == null ? void 0 : n.value) || (
|
|
905
|
+
})), p = k(() => (n == null ? void 0 : n.value) || (r == null ? void 0 : r.value));
|
|
915
906
|
return () => b("span", {
|
|
916
907
|
ref: c,
|
|
917
908
|
tabindex: "0",
|
|
@@ -921,7 +912,7 @@ const be = /* @__PURE__ */ $({
|
|
|
921
912
|
class: "switch-pane"
|
|
922
913
|
}, [b("span", {
|
|
923
914
|
class: "switch-label-unchecked"
|
|
924
|
-
}, [
|
|
915
|
+
}, [r == null ? void 0 : r.value])]), b("small", null, [e.slots.default && e.slots.default()])]);
|
|
925
916
|
}
|
|
926
917
|
}), we = (o) => {
|
|
927
918
|
const e = o;
|
|
@@ -930,15 +921,15 @@ const be = /* @__PURE__ */ $({
|
|
|
930
921
|
}, o;
|
|
931
922
|
};
|
|
932
923
|
P.register = (o, e, t, n) => {
|
|
933
|
-
o.switch = P, e.switch =
|
|
924
|
+
o.switch = P, e.switch = G;
|
|
934
925
|
};
|
|
935
926
|
P.registerDesigner = (o, e, t) => {
|
|
936
|
-
o.switch = be, e.switch =
|
|
927
|
+
o.switch = be, e.switch = G;
|
|
937
928
|
};
|
|
938
929
|
const ke = we(P);
|
|
939
930
|
export {
|
|
940
931
|
P as FSwitch,
|
|
941
932
|
ke as default,
|
|
942
|
-
|
|
933
|
+
G as propsResolver,
|
|
943
934
|
E as switchProps
|
|
944
935
|
};
|