@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.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/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import
|
|
1
|
+
import { ref as S, computed as w, createVNode as P, defineComponent as W, watch as X, onMounted as _, inject as Y } from "vue";
|
|
2
|
+
import { cloneDeep as R } from "lodash-es";
|
|
3
|
+
import K from "../response-toolbar/index.esm.js";
|
|
4
4
|
import "bignumber.js";
|
|
5
|
-
import { withInstall as I } from "
|
|
5
|
+
import { withInstall as I } from "../common/index.esm.js";
|
|
6
6
|
const J = {}, Z = {};
|
|
7
|
-
function B(
|
|
8
|
-
const { properties: e, title:
|
|
9
|
-
return r.id = `${
|
|
7
|
+
function B(t) {
|
|
8
|
+
const { properties: e, title: n } = t, r = Object.keys(e).reduce((a, l) => (a[l] = e[l].type === "object" && e[l].properties ? B(e[l]) : R(e[l].default), a), {});
|
|
9
|
+
return r.id = `${n}-${Date.now()}`, r;
|
|
10
10
|
}
|
|
11
|
-
function x(
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let r = B(
|
|
15
|
-
const
|
|
16
|
-
return r =
|
|
11
|
+
function x(t, e = {}) {
|
|
12
|
+
const n = J[t];
|
|
13
|
+
if (n) {
|
|
14
|
+
let r = B(n);
|
|
15
|
+
const a = Z[t];
|
|
16
|
+
return r = a ? a({ getSchemaByType: x }, r, e) : r, r;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function ee(
|
|
21
|
-
const
|
|
22
|
-
return Object.keys(
|
|
20
|
+
function ee(t, e) {
|
|
21
|
+
const n = B(e);
|
|
22
|
+
return Object.keys(t).reduce((r, a) => (r[a] && typeof r[a] == "object" ? Object.assign(r[a], t[a]) : r[a] = t[a], r), n), n;
|
|
23
23
|
}
|
|
24
|
-
function te(
|
|
25
|
-
return Object.keys(
|
|
26
|
-
if (e.has(
|
|
27
|
-
const l = e.get(
|
|
24
|
+
function te(t, e) {
|
|
25
|
+
return Object.keys(t).filter((r) => t[r] != null).reduce((r, a) => {
|
|
26
|
+
if (e.has(a)) {
|
|
27
|
+
const l = e.get(a);
|
|
28
28
|
if (typeof l == "string")
|
|
29
|
-
r[l] =
|
|
29
|
+
r[l] = t[a];
|
|
30
30
|
else {
|
|
31
|
-
const h = l(
|
|
31
|
+
const h = l(a, t[a], t);
|
|
32
32
|
Object.assign(r, h);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
r[
|
|
35
|
+
r[a] = t[a];
|
|
36
36
|
return r;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function ne(
|
|
40
|
-
const r = ee(
|
|
41
|
-
return te(r,
|
|
39
|
+
function ne(t, e, n = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const r = ee(t, e);
|
|
41
|
+
return te(r, n);
|
|
42
42
|
}
|
|
43
|
-
function oe(
|
|
44
|
-
function e(
|
|
43
|
+
function oe(t = {}) {
|
|
44
|
+
function e(c, d, u, p) {
|
|
45
45
|
if (typeof u == "number")
|
|
46
|
-
return p[
|
|
46
|
+
return p[c].length === u;
|
|
47
47
|
if (typeof u == "object") {
|
|
48
48
|
const m = Object.keys(u)[0], o = u[m];
|
|
49
49
|
if (m === "not")
|
|
50
|
-
return Number(p[
|
|
50
|
+
return Number(p[c].length) !== Number(o);
|
|
51
51
|
if (m === "moreThan")
|
|
52
|
-
return Number(p[
|
|
52
|
+
return Number(p[c].length) >= Number(o);
|
|
53
53
|
if (m === "lessThan")
|
|
54
|
-
return Number(p[
|
|
54
|
+
return Number(p[c].length) <= Number(o);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return p[
|
|
58
|
+
function n(c, d, u, p) {
|
|
59
|
+
return p[c] && p[c].propertyValue && String(p[c].propertyValue.value) === String(u);
|
|
60
60
|
}
|
|
61
61
|
const r = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
|
-
["getProperty",
|
|
63
|
+
["getProperty", n]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(
|
|
66
|
-
function
|
|
67
|
-
const u =
|
|
68
|
-
return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param:
|
|
65
|
+
Object.keys(t).reduce((c, d) => (c.set(d, t[d]), c), r);
|
|
66
|
+
function a(c, d) {
|
|
67
|
+
const u = c;
|
|
68
|
+
return typeof d == "number" ? [{ target: u, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((p) => {
|
|
69
69
|
if (p === "length")
|
|
70
70
|
return { target: u, operator: "length", param: null, value: d[p] };
|
|
71
71
|
const m = p, o = d[p];
|
|
72
72
|
return { target: u, operator: "getProperty", param: m, value: o };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
|
-
function l(
|
|
76
|
-
return Object.keys(
|
|
77
|
-
const m =
|
|
75
|
+
function l(c) {
|
|
76
|
+
return Object.keys(c).reduce((u, p) => {
|
|
77
|
+
const m = a(p, c[p]);
|
|
78
78
|
return u.push(...m), u;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function h(
|
|
82
|
-
if (r.has(
|
|
83
|
-
const u = r.get(
|
|
84
|
-
return u && u(
|
|
81
|
+
function h(c, d) {
|
|
82
|
+
if (r.has(c.operator)) {
|
|
83
|
+
const u = r.get(c.operator);
|
|
84
|
+
return u && u(c.target, c.param, c.value, d) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function v(
|
|
89
|
-
return l(
|
|
88
|
+
function v(c, d) {
|
|
89
|
+
return l(c).reduce((m, o) => m && h(o, d), !0);
|
|
90
90
|
}
|
|
91
|
-
function C(
|
|
92
|
-
const u = Object.keys(
|
|
91
|
+
function C(c, d) {
|
|
92
|
+
const u = Object.keys(c), p = u.includes("allOf"), m = u.includes("anyOf"), o = p || m, f = (o ? c[o ? p ? "allOf" : "anyOf" : "allOf"] : [c]).map((y) => v(y, d));
|
|
93
93
|
return p ? !f.includes(!1) : f.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: C };
|
|
96
96
|
}
|
|
97
97
|
const re = {}, se = {};
|
|
98
98
|
oe();
|
|
99
|
-
function ae(
|
|
100
|
-
return J[e.title] = e, Z[e.title] = r, re[e.title] =
|
|
101
|
-
const v = ne(h, e,
|
|
99
|
+
function ae(t, e, n = /* @__PURE__ */ new Map(), r = (h, v, C) => v, a = {}, l = (h) => h) {
|
|
100
|
+
return J[e.title] = e, Z[e.title] = r, re[e.title] = a, se[e.title] = l, (h = {}) => {
|
|
101
|
+
const v = ne(h, e, n), C = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
|
|
102
102
|
return Object.assign(C, v);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function ce(
|
|
105
|
+
function ce(t, e) {
|
|
106
106
|
return { customClass: e.class, customStyle: e.style };
|
|
107
107
|
}
|
|
108
|
-
function ie(
|
|
109
|
-
return e ? { enableAccordion:
|
|
108
|
+
function ie(t, e, n) {
|
|
109
|
+
return e ? { enableAccordion: n.accordionMode } : { enableAccordion: "" };
|
|
110
110
|
}
|
|
111
|
-
function le(
|
|
112
|
-
return e && e.contents && e.contents.length && e.contents.forEach((
|
|
113
|
-
|
|
111
|
+
function le(t, e) {
|
|
112
|
+
return e && e.contents && e.contents.length && e.contents.forEach((n) => {
|
|
113
|
+
n.title && (n.text = n.title);
|
|
114
114
|
}), {
|
|
115
115
|
buttons: e.contents,
|
|
116
116
|
buttonPosition: e.position
|
|
@@ -122,7 +122,7 @@ const pe = /* @__PURE__ */ new Map([
|
|
|
122
122
|
["enableAccordion", ie],
|
|
123
123
|
["toolbar", le]
|
|
124
124
|
]);
|
|
125
|
-
function ue(
|
|
125
|
+
function ue(t, e, n) {
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
128
|
const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/section.schema.json", ye = "section", be = "A Farris Container Component", he = "object", me = {
|
|
@@ -360,12 +360,12 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
},
|
|
363
|
+
}, we = {
|
|
364
364
|
title: Ce,
|
|
365
365
|
description: je,
|
|
366
366
|
type: Ae,
|
|
367
367
|
categories: Te
|
|
368
|
-
},
|
|
368
|
+
}, L = {
|
|
369
369
|
/** 设置内容区域样式 */
|
|
370
370
|
contentClass: { type: String, default: "" },
|
|
371
371
|
/** 自定义样式 */
|
|
@@ -409,25 +409,25 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
409
409
|
// toolbarPosition: { type: String, default: '' },
|
|
410
410
|
// toolbarButtons: { type: Array<object>, default: [] },
|
|
411
411
|
// toolbar: { type: Object as PropType<ToolbarConfig>, default: {} }
|
|
412
|
-
}, G = ae(
|
|
413
|
-
function
|
|
412
|
+
}, G = ae(L, ve, pe, ue, we);
|
|
413
|
+
function Se(t, e, n) {
|
|
414
414
|
let r;
|
|
415
|
-
function
|
|
416
|
-
!
|
|
415
|
+
function a() {
|
|
416
|
+
!t || !e.value || (n.value = !n.value, n.value ? l() : h());
|
|
417
417
|
}
|
|
418
418
|
function l() {
|
|
419
|
-
r =
|
|
419
|
+
r = t.value.nextElementSibling;
|
|
420
420
|
const C = document && document.querySelector("body");
|
|
421
|
-
C && (C.appendChild(
|
|
421
|
+
C && (C.appendChild(t.value), t.value.style.zIndex = v());
|
|
422
422
|
}
|
|
423
423
|
function h() {
|
|
424
424
|
r ? e.value.insertBefore(
|
|
425
|
-
|
|
425
|
+
t.value,
|
|
426
426
|
r
|
|
427
|
-
) : e.value.appendChild(
|
|
427
|
+
) : e.value.appendChild(t.value), t.value.style.zIndex = null;
|
|
428
428
|
}
|
|
429
429
|
function v(C = 1) {
|
|
430
|
-
const
|
|
430
|
+
const c = [
|
|
431
431
|
"body>.f-datagrid-settings-simple-host",
|
|
432
432
|
"body>div",
|
|
433
433
|
"body>farris-dialog>.farris-modal.show",
|
|
@@ -437,49 +437,49 @@ function we(n, e, t) {
|
|
|
437
437
|
"body>.popover.show",
|
|
438
438
|
"body>filter-row-panel>.f-datagrid-filter-panel",
|
|
439
439
|
"body>.f-section-maximize"
|
|
440
|
-
], d = Array.from(document.body.querySelectorAll(
|
|
440
|
+
], d = Array.from(document.body.querySelectorAll(c.join(","))).filter((p) => p).map((p) => {
|
|
441
441
|
const { display: m, zIndex: o } = window.getComputedStyle(p);
|
|
442
442
|
return m === "none" ? 0 : parseInt(o, 10);
|
|
443
443
|
}).filter((p) => p);
|
|
444
444
|
let u = Math.max(...d);
|
|
445
445
|
return u < 1040 && (u = 1040), u + C;
|
|
446
446
|
}
|
|
447
|
-
return { onClickMaxMinIcon:
|
|
447
|
+
return { onClickMaxMinIcon: a };
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
|
|
449
|
+
function V(t, e) {
|
|
450
|
+
const n = S(t.buttons), r = w(() => t.buttonPosition === "inHead" ? "right" : "left"), a = w(() => "f-section-toolbar" + (t.buttonPosition === "inHead" ? " f-section-header--toolbar" : " f-section-content--toolbar")), l = w(() => {
|
|
451
|
+
t.buttons && t.buttons.length > 0 && t.buttonPosition;
|
|
452
452
|
});
|
|
453
453
|
function h(v) {
|
|
454
454
|
e.emit("Click", v);
|
|
455
455
|
}
|
|
456
|
-
return () => l && P(
|
|
457
|
-
customClass:
|
|
458
|
-
items:
|
|
456
|
+
return () => l && P(K, {
|
|
457
|
+
customClass: a.value,
|
|
458
|
+
items: n.value,
|
|
459
459
|
onClick: h,
|
|
460
460
|
alignment: r.value
|
|
461
461
|
}, null);
|
|
462
462
|
}
|
|
463
|
-
function Q(
|
|
464
|
-
|
|
465
|
-
const h =
|
|
463
|
+
function Q(t, e, n, r, a, l) {
|
|
464
|
+
S(t.subTitle);
|
|
465
|
+
const h = w(() => t.buttonPosition), v = V(t, e), {
|
|
466
466
|
onClickMaxMinIcon: C
|
|
467
|
-
} =
|
|
467
|
+
} = Se(r, a, l), c = w(() => !!t.subTitle), d = w(() => t.enableMaximize), u = w(() => t.enableAccordion != ""), p = w(() => {
|
|
468
468
|
const y = {
|
|
469
469
|
"f-section-header": !0
|
|
470
470
|
};
|
|
471
|
-
return e.slots.header &&
|
|
471
|
+
return e.slots.header && t.headerClass.split(" ").reduce((M, b) => (M[b] = !0, M), y), y;
|
|
472
472
|
});
|
|
473
473
|
function m(y) {
|
|
474
|
-
y.stopPropagation(),
|
|
474
|
+
y.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
|
|
475
475
|
}
|
|
476
476
|
function o() {
|
|
477
|
-
const y =
|
|
477
|
+
const y = w(() => ({
|
|
478
478
|
btn: !0,
|
|
479
479
|
"f-btn-collapse-expand": !0,
|
|
480
480
|
"f-btn-mx": !0,
|
|
481
|
-
"f-state-expand":
|
|
482
|
-
})), j =
|
|
481
|
+
"f-state-expand": n.value
|
|
482
|
+
})), j = w(() => ({
|
|
483
483
|
"f-icon": !0,
|
|
484
484
|
"f-icon-maximize": !l.value,
|
|
485
485
|
"f-icon-minimize": l.value
|
|
@@ -492,9 +492,9 @@ function Q(n, e, t, r, i, l) {
|
|
|
492
492
|
}, null) : "", u.value ? P("button", {
|
|
493
493
|
class: y.value,
|
|
494
494
|
onClick: m
|
|
495
|
-
}, [P("span", null, [
|
|
495
|
+
}, [P("span", null, [n.value ? t.collapseLabel : t.expandLabel])]) : ""]);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function i() {
|
|
498
498
|
return e.slots.header ? P("div", {
|
|
499
499
|
class: p.value
|
|
500
500
|
}, [e.slots.header()]) : "";
|
|
@@ -505,14 +505,14 @@ function Q(n, e, t, r, i, l) {
|
|
|
505
505
|
onClick: m
|
|
506
506
|
}, [P("h4", {
|
|
507
507
|
class: "f-title-text"
|
|
508
|
-
}, [
|
|
508
|
+
}, [t.mainTitle]), c.value && P("span", null, [t.subTitle])]);
|
|
509
509
|
}
|
|
510
510
|
function f() {
|
|
511
|
-
const y =
|
|
511
|
+
const y = w(() => {
|
|
512
512
|
const j = {
|
|
513
513
|
"f-content": !0
|
|
514
514
|
};
|
|
515
|
-
return
|
|
515
|
+
return t.headerContentClass && t.headerContentClass.split(" ").reduce((b, A) => (b[A] = !0, b), j), j;
|
|
516
516
|
});
|
|
517
517
|
return e.slots.headerContent ? P("div", {
|
|
518
518
|
class: y.value
|
|
@@ -523,16 +523,16 @@ function Q(n, e, t, r, i, l) {
|
|
|
523
523
|
class: p.value
|
|
524
524
|
}, [e.slots.headerTitle ? e.slots.headerTitle() : s(), f(), h.value === "inHead" && v(), (d.value || u.value) && o()]);
|
|
525
525
|
}
|
|
526
|
-
return () =>
|
|
526
|
+
return () => t.showHeader && (e.slots.header ? i() : g());
|
|
527
527
|
}
|
|
528
528
|
const Pe = ["moz", "ms", "webkit"];
|
|
529
529
|
function Me() {
|
|
530
|
-
let
|
|
530
|
+
let t = 0;
|
|
531
531
|
return (e) => {
|
|
532
|
-
const
|
|
533
|
-
e(
|
|
532
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (n - t)), a = setTimeout(() => {
|
|
533
|
+
e(n + r);
|
|
534
534
|
}, r);
|
|
535
|
-
return
|
|
535
|
+
return t = n + r, a;
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
function De() {
|
|
@@ -540,33 +540,33 @@ function De() {
|
|
|
540
540
|
return () => 0;
|
|
541
541
|
if (window.requestAnimationFrame)
|
|
542
542
|
return window.requestAnimationFrame.bind(window);
|
|
543
|
-
const
|
|
544
|
-
return
|
|
543
|
+
const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
544
|
+
return t ? window[`${t}RequestAnimationFrame`] : Me();
|
|
545
545
|
}
|
|
546
546
|
De();
|
|
547
|
-
function E(
|
|
548
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((r,
|
|
547
|
+
function E(t, e) {
|
|
548
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, a) => (a && (r[a] = !0), r), t), t;
|
|
549
549
|
}
|
|
550
550
|
const N = /* @__PURE__ */ W({
|
|
551
551
|
name: "FSection",
|
|
552
|
-
props:
|
|
552
|
+
props: L,
|
|
553
553
|
emits: [],
|
|
554
|
-
setup(
|
|
555
|
-
const
|
|
556
|
-
let r =
|
|
557
|
-
const
|
|
554
|
+
setup(t, e) {
|
|
555
|
+
const n = S();
|
|
556
|
+
let r = S();
|
|
557
|
+
const a = S(t.customClass), l = w(() => t.enableAccordion), h = S(t.expandStatus), v = w(() => t.buttonPosition), C = S(!1), c = Q(t, e, h, n, r, C), d = V(t, e), u = w(() => {
|
|
558
558
|
const s = {
|
|
559
559
|
"f-section": !0,
|
|
560
560
|
"f-section-accordion": l.value === "default",
|
|
561
561
|
"f-state-collapse": (l.value === "default" || l.value === "custom") && !h.value,
|
|
562
562
|
"f-section-custom-accordion": l.value === "custom",
|
|
563
|
-
"f-section-fill":
|
|
563
|
+
"f-section-fill": t.fill,
|
|
564
564
|
"f-section-maximize": C.value
|
|
565
565
|
};
|
|
566
|
-
return E(s,
|
|
567
|
-
}), p =
|
|
566
|
+
return E(s, a.value);
|
|
567
|
+
}), p = w(() => E({
|
|
568
568
|
"f-section-content": !0
|
|
569
|
-
},
|
|
569
|
+
}, t.contentClass)), m = w(() => E({
|
|
570
570
|
"f-section-extend": !0
|
|
571
571
|
}, m.value));
|
|
572
572
|
function o() {
|
|
@@ -574,39 +574,39 @@ const N = /* @__PURE__ */ W({
|
|
|
574
574
|
class: m.value
|
|
575
575
|
}, [e.slots.extend()]);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function i() {
|
|
578
578
|
return P("div", {
|
|
579
579
|
class: p.value
|
|
580
580
|
}, [v.value === "inContent" && d(), e.slots.default && e.slots.default()]);
|
|
581
581
|
}
|
|
582
|
-
return X(() =>
|
|
582
|
+
return X(() => t.expandStatus, (s, f) => {
|
|
583
583
|
s !== f && (h.value = s);
|
|
584
584
|
}), _(() => {
|
|
585
|
-
|
|
585
|
+
n && n.value && (r.value = n.value.parentElement);
|
|
586
586
|
}), () => P("div", {
|
|
587
587
|
class: u.value,
|
|
588
|
-
ref:
|
|
589
|
-
}, [
|
|
588
|
+
ref: n
|
|
589
|
+
}, [c(), o(), i()]);
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
function Oe() {
|
|
593
|
-
function
|
|
594
|
-
var
|
|
593
|
+
function t(e) {
|
|
594
|
+
var a, l;
|
|
595
595
|
if (!e)
|
|
596
596
|
return !1;
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
597
|
+
const n = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
|
|
598
|
+
if (!n)
|
|
599
599
|
return !1;
|
|
600
|
-
const r = (l =
|
|
600
|
+
const r = (l = n.schema.appearance) == null ? void 0 : l.class;
|
|
601
601
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
602
|
-
const h =
|
|
603
|
-
if (
|
|
602
|
+
const h = n.schema.type, v = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
|
|
603
|
+
if (n.schema.type !== "response-layout-item" && !v)
|
|
604
604
|
return !1;
|
|
605
605
|
}
|
|
606
606
|
return e.controlType !== "field-set";
|
|
607
607
|
}
|
|
608
608
|
return {
|
|
609
|
-
basalDragulaRuleForContainer:
|
|
609
|
+
basalDragulaRuleForContainer: t
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
612
|
const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-design.gitee.io/dragging-rules.schema.json", Ne = "Dragging Rules", $e = "The rules of designer canvas", Fe = "object", He = {
|
|
@@ -1182,8 +1182,8 @@ const Ee = "https://json-schema.org/draft/2020-12/schema", ke = "https://farris-
|
|
|
1182
1182
|
properties: He,
|
|
1183
1183
|
required: xe
|
|
1184
1184
|
}, H = /* @__PURE__ */ new Map();
|
|
1185
|
-
function
|
|
1186
|
-
function
|
|
1185
|
+
function Le() {
|
|
1186
|
+
function t(o, i, s, f) {
|
|
1187
1187
|
var g;
|
|
1188
1188
|
if (typeof s == "number")
|
|
1189
1189
|
return ((g = f[o]) == null ? void 0 : g.length) === s;
|
|
@@ -1198,63 +1198,63 @@ function Ve() {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return !1;
|
|
1200
1200
|
}
|
|
1201
|
-
function e(o,
|
|
1202
|
-
return typeof s == "boolean" ? f.childrenClassList.includes(
|
|
1201
|
+
function e(o, i, s, f) {
|
|
1202
|
+
return typeof s == "boolean" ? f.childrenClassList.includes(i) === !!s : !1;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return typeof s == "boolean" ? f.parentClassList.includes(
|
|
1204
|
+
function n(o, i, s, f) {
|
|
1205
|
+
return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
|
|
1206
1206
|
}
|
|
1207
|
-
function r(o,
|
|
1208
|
-
return typeof s == "boolean" ? f.parentClassList.includes(
|
|
1207
|
+
function r(o, i, s, f) {
|
|
1208
|
+
return typeof s == "boolean" ? f.parentClassList.includes(i) === !!s : !1;
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1211
|
-
["length",
|
|
1210
|
+
const a = /* @__PURE__ */ new Map([
|
|
1211
|
+
["length", t],
|
|
1212
1212
|
["hasChildren", e],
|
|
1213
1213
|
["hasSibling", r],
|
|
1214
|
-
["hasParent",
|
|
1214
|
+
["hasParent", n]
|
|
1215
1215
|
]);
|
|
1216
|
-
function l(o,
|
|
1216
|
+
function l(o, i) {
|
|
1217
1217
|
const s = o;
|
|
1218
|
-
return typeof
|
|
1218
|
+
return typeof i == "number" ? [{ target: s, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((f) => {
|
|
1219
1219
|
if (f === "length")
|
|
1220
|
-
return { target: s, operator: "length", param: null, value:
|
|
1221
|
-
const g = f, y =
|
|
1220
|
+
return { target: s, operator: "length", param: null, value: i[f] };
|
|
1221
|
+
const g = f, y = i[f];
|
|
1222
1222
|
return { target: s, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: g, value: y };
|
|
1223
1223
|
}) : [];
|
|
1224
1224
|
}
|
|
1225
|
-
function h(o,
|
|
1226
|
-
if (
|
|
1227
|
-
const s =
|
|
1228
|
-
return s && s(o.target, o.param, o.value,
|
|
1225
|
+
function h(o, i) {
|
|
1226
|
+
if (a.has(o.operator)) {
|
|
1227
|
+
const s = a.get(o.operator);
|
|
1228
|
+
return s && s(o.target, o.param, o.value, i) || !1;
|
|
1229
1229
|
}
|
|
1230
1230
|
return !1;
|
|
1231
1231
|
}
|
|
1232
|
-
function v(o,
|
|
1232
|
+
function v(o, i) {
|
|
1233
1233
|
return Object.keys(o).reduce((y, j) => {
|
|
1234
1234
|
const M = l(j, o[j]);
|
|
1235
1235
|
return y.push(...M), y;
|
|
1236
|
-
}, []).reduce((y, j) => y && h(j,
|
|
1236
|
+
}, []).reduce((y, j) => y && h(j, i), !0);
|
|
1237
1237
|
}
|
|
1238
|
-
function C(o,
|
|
1239
|
-
const s = Object.keys(o), f = s.includes("allOf"), g = s.includes("anyOf"), y = f || g, b = (y ? o[y ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => v(T,
|
|
1238
|
+
function C(o, i) {
|
|
1239
|
+
const s = Object.keys(o), f = s.includes("allOf"), g = s.includes("anyOf"), y = f || g, b = (y ? o[y ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((T) => v(T, i));
|
|
1240
1240
|
return f ? !b.includes(!1) : b.includes(!0);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function c(o, i) {
|
|
1243
1243
|
const s = o.const;
|
|
1244
|
-
return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s,
|
|
1244
|
+
return s ? typeof s == "boolean" ? s : typeof s == "object" ? C(s, i) : !1 : !1;
|
|
1245
1245
|
}
|
|
1246
1246
|
function d(o) {
|
|
1247
|
-
return (
|
|
1247
|
+
return (i) => {
|
|
1248
1248
|
const s = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1249
1249
|
return o && o.properties && Object.keys(o.properties).reduce((f, g) => {
|
|
1250
1250
|
const y = o.properties[g];
|
|
1251
|
-
return f[g] =
|
|
1251
|
+
return f[g] = c(y, i), f;
|
|
1252
1252
|
}, s), s;
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
|
-
function u(o,
|
|
1256
|
-
if (
|
|
1257
|
-
const { rules: f, contents: g } =
|
|
1255
|
+
function u(o, i, s) {
|
|
1256
|
+
if (i.type === "object" && i.properties) {
|
|
1257
|
+
const { rules: f, contents: g } = i.properties;
|
|
1258
1258
|
s.set(o, d(f)), g && Object.keys(g.properties).forEach(
|
|
1259
1259
|
(y) => u(y, g.properties[y], s)
|
|
1260
1260
|
);
|
|
@@ -1262,21 +1262,21 @@ function Ve() {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
function p() {
|
|
1264
1264
|
const { properties: o } = Be;
|
|
1265
|
-
Object.keys(o).forEach((
|
|
1266
|
-
u(
|
|
1265
|
+
Object.keys(o).forEach((i) => {
|
|
1266
|
+
u(i, o[i], H);
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
|
-
function m(o,
|
|
1269
|
+
function m(o, i) {
|
|
1270
1270
|
const s = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1271
|
-
return H.has(o) ? H.get(o)(
|
|
1271
|
+
return H.has(o) ? H.get(o)(i) : s;
|
|
1272
1272
|
}
|
|
1273
1273
|
return p(), { getRuleValue: m };
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
const
|
|
1275
|
+
function Ve(t, e) {
|
|
1276
|
+
const n = S(!1), r = S(!1), a = Le();
|
|
1277
1277
|
let l = !0, h = !1, v, C = !1;
|
|
1278
|
-
function
|
|
1279
|
-
return !(!Oe().basalDragulaRuleForContainer(
|
|
1278
|
+
function c(i) {
|
|
1279
|
+
return !(!Oe().basalDragulaRuleForContainer(i) || !l);
|
|
1280
1280
|
}
|
|
1281
1281
|
function d() {
|
|
1282
1282
|
return !C;
|
|
@@ -1287,11 +1287,11 @@ function Le(n, e) {
|
|
|
1287
1287
|
function p() {
|
|
1288
1288
|
return h;
|
|
1289
1289
|
}
|
|
1290
|
-
function m(
|
|
1290
|
+
function m(i) {
|
|
1291
1291
|
}
|
|
1292
1292
|
function o() {
|
|
1293
|
-
|
|
1294
|
-
const
|
|
1293
|
+
n.value = !1, r.value = !1, C = !1, l = !0;
|
|
1294
|
+
const i = t, s = i.appearance && i.appearance.class || "", f = s ? s.split(" ") : [], g = i.contents || [], y = g.length ? g[0] : null, j = y && y.appearance && y.appearance.class || "", M = j ? j.split(" ") : [], b = g.length ? g.reduce((z, F) => {
|
|
1295
1295
|
const q = F && F.appearance ? F.appearance.class : "", U = q ? q.split(" ") : [];
|
|
1296
1296
|
return z.push(...U), z;
|
|
1297
1297
|
}, []) : [], A = e, T = A && A.appearance && A.appearance.class || "", O = T ? T.split(" ") : [];
|
|
@@ -1308,45 +1308,45 @@ function Le(n, e) {
|
|
|
1308
1308
|
children: g,
|
|
1309
1309
|
childrenClassList: b
|
|
1310
1310
|
};
|
|
1311
|
-
const { canAccept: k, fixed: D, hidePadding: $ } =
|
|
1311
|
+
const { canAccept: k, fixed: D, hidePadding: $ } = a.getRuleValue(f[0], v);
|
|
1312
1312
|
return l = k, h = $, C = D, !0;
|
|
1313
1313
|
}
|
|
1314
1314
|
return {
|
|
1315
|
-
canAccepts:
|
|
1315
|
+
canAccepts: c,
|
|
1316
1316
|
checkCanDeleteComponent: d,
|
|
1317
1317
|
checkCanMoveComponent: u,
|
|
1318
1318
|
hideNestedPaddingInDesginerView: p,
|
|
1319
1319
|
onAcceptMovedChildElement: m,
|
|
1320
1320
|
resolveComponentContext: o,
|
|
1321
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1321
|
+
triggerBelongedComponentToMoveWhenMoved: n,
|
|
1322
1322
|
triggerBelongedComponentToDeleteWhenDeleted: r
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
|
-
function ze(
|
|
1325
|
+
function ze(t, e, n) {
|
|
1326
1326
|
var M;
|
|
1327
1327
|
function r() {
|
|
1328
|
-
|
|
1328
|
+
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
1329
1329
|
}
|
|
1330
1330
|
r();
|
|
1331
|
-
const
|
|
1331
|
+
const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", h = S();
|
|
1332
1332
|
function v() {
|
|
1333
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
1333
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
1334
1334
|
}
|
|
1335
1335
|
function C() {
|
|
1336
1336
|
return !1;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 :
|
|
1338
|
+
function c() {
|
|
1339
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
1340
1340
|
}
|
|
1341
1341
|
function d() {
|
|
1342
|
-
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 :
|
|
1342
|
+
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
1343
1343
|
}
|
|
1344
1344
|
function u(b) {
|
|
1345
1345
|
if (!b || !b.value)
|
|
1346
1346
|
return null;
|
|
1347
1347
|
if (b.value.schema && b.value.schema.type === "component")
|
|
1348
1348
|
return b.value;
|
|
1349
|
-
const A =
|
|
1349
|
+
const A = S(b == null ? void 0 : b.value.parent), T = u(A);
|
|
1350
1350
|
return T || null;
|
|
1351
1351
|
}
|
|
1352
1352
|
function p(b = e) {
|
|
@@ -1354,20 +1354,20 @@ function ze(n, e, t) {
|
|
|
1354
1354
|
return !A || !A.value ? null : A.value.canMove ? T : p(b.parent);
|
|
1355
1355
|
}
|
|
1356
1356
|
function m(b) {
|
|
1357
|
-
return !!
|
|
1357
|
+
return !!n && n.canAccepts(b);
|
|
1358
1358
|
}
|
|
1359
1359
|
function o() {
|
|
1360
1360
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function i() {
|
|
1363
1363
|
}
|
|
1364
1364
|
function s(b, A) {
|
|
1365
|
-
A &&
|
|
1365
|
+
A && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(A);
|
|
1366
1366
|
}
|
|
1367
1367
|
function f(b) {
|
|
1368
1368
|
const { componentType: A } = b;
|
|
1369
1369
|
let T = x(A, b);
|
|
1370
|
-
|
|
1370
|
+
n && n.onResolveNewComponentSchema && (T = n.onResolveNewComponentSchema(b, T));
|
|
1371
1371
|
const O = A.toLowerCase().replace("-", "_");
|
|
1372
1372
|
return T && !T.id && T.type === A && (T.id = `${O}_${Math.random().toString().slice(2, 6)}`), T;
|
|
1373
1373
|
}
|
|
@@ -1375,70 +1375,70 @@ function ze(n, e, t) {
|
|
|
1375
1375
|
const T = String(b.getAttribute("data-controltype")), O = b.getAttribute("data-feature"), k = O ? JSON.parse(O) : {};
|
|
1376
1376
|
k.parentComponentInstance = h.value;
|
|
1377
1377
|
let D = x(T, k);
|
|
1378
|
-
|
|
1378
|
+
n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(b, A, D));
|
|
1379
1379
|
const $ = T.toLowerCase().replace("-", "_");
|
|
1380
1380
|
return D && !D.id && D.type === T && (D.id = `${$}_${Math.random().toString().slice(2, 6)}`), D;
|
|
1381
1381
|
}
|
|
1382
1382
|
function y(b) {
|
|
1383
1383
|
}
|
|
1384
1384
|
function j(...b) {
|
|
1385
|
-
if (
|
|
1386
|
-
return
|
|
1385
|
+
if (n && n.getPropsConfig)
|
|
1386
|
+
return n.getPropsConfig(...b);
|
|
1387
1387
|
}
|
|
1388
1388
|
return h.value = {
|
|
1389
1389
|
canMove: v(),
|
|
1390
1390
|
canSelectParent: C(),
|
|
1391
|
-
canDelete:
|
|
1391
|
+
canDelete: c(),
|
|
1392
1392
|
canNested: !d(),
|
|
1393
1393
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1394
|
-
elementRef:
|
|
1394
|
+
elementRef: t,
|
|
1395
1395
|
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
1396
1396
|
schema: e == null ? void 0 : e.schema,
|
|
1397
|
-
styles:
|
|
1397
|
+
styles: a,
|
|
1398
1398
|
designerClass: l,
|
|
1399
1399
|
canAccepts: m,
|
|
1400
1400
|
getBelongedComponentInstance: u,
|
|
1401
1401
|
getDraggableDesignItemElement: p,
|
|
1402
1402
|
getDraggingDisplayText: o,
|
|
1403
1403
|
getPropConfig: j,
|
|
1404
|
-
getDragScopeElement:
|
|
1404
|
+
getDragScopeElement: i,
|
|
1405
1405
|
onAcceptMovedChildElement: s,
|
|
1406
1406
|
onAcceptNewChildElement: g,
|
|
1407
1407
|
onChildElementMovedOut: y,
|
|
1408
1408
|
addNewChildComponentSchema: f,
|
|
1409
1409
|
updateDragAndDropRules: r,
|
|
1410
|
-
triggerBelongedComponentToMoveWhenMoved: !!
|
|
1411
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!
|
|
1410
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || S(!1),
|
|
1411
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || S(!1)
|
|
1412
1412
|
}, h;
|
|
1413
1413
|
}
|
|
1414
1414
|
const qe = /* @__PURE__ */ W({
|
|
1415
1415
|
name: "FSectionDesign",
|
|
1416
|
-
props:
|
|
1416
|
+
props: L,
|
|
1417
1417
|
emits: [],
|
|
1418
|
-
setup(
|
|
1418
|
+
setup(t, e) {
|
|
1419
1419
|
var j;
|
|
1420
|
-
const
|
|
1421
|
-
let
|
|
1422
|
-
const l = Y("design-item-context"), h =
|
|
1420
|
+
const n = S(), r = S();
|
|
1421
|
+
let a = S();
|
|
1422
|
+
const l = Y("design-item-context"), h = Ve(l.schema, (j = l.parent) == null ? void 0 : j.schema), v = ze(n, l, h);
|
|
1423
1423
|
v.value.styles = "display: inherit;", _(() => {
|
|
1424
|
-
|
|
1424
|
+
n.value.componentInstance = v;
|
|
1425
1425
|
}), e.expose(v.value);
|
|
1426
|
-
const C =
|
|
1426
|
+
const C = S(t.customClass), c = w(() => t.enableAccordion), d = S(t.expandStatus), u = w(() => t.buttonPosition), p = S(!1), m = Q(t, e, d, r, a, p), o = V(t, e), i = w(() => {
|
|
1427
1427
|
const M = {
|
|
1428
1428
|
"f-section": !0,
|
|
1429
|
-
"f-section-accordion":
|
|
1430
|
-
"f-state-collapse": (
|
|
1431
|
-
"f-section-custom-accordion":
|
|
1432
|
-
"f-section-fill":
|
|
1429
|
+
"f-section-accordion": c.value === "default",
|
|
1430
|
+
"f-state-collapse": (c.value === "default" || c.value === "custom") && !d.value,
|
|
1431
|
+
"f-section-custom-accordion": c.value === "custom",
|
|
1432
|
+
"f-section-fill": t.fill,
|
|
1433
1433
|
"f-section-maximize": p.value,
|
|
1434
1434
|
"f-utils-fill": !0,
|
|
1435
1435
|
"p-0": !0
|
|
1436
1436
|
};
|
|
1437
1437
|
return E(M, C.value);
|
|
1438
|
-
}), s =
|
|
1438
|
+
}), s = w(() => E({
|
|
1439
1439
|
"f-section-content": !0,
|
|
1440
1440
|
"drag-container": !0
|
|
1441
|
-
},
|
|
1441
|
+
}, t.contentClass)), f = w(() => E({
|
|
1442
1442
|
"f-section-extend": !0
|
|
1443
1443
|
}, f.value));
|
|
1444
1444
|
function g() {
|
|
@@ -1449,26 +1449,26 @@ const qe = /* @__PURE__ */ W({
|
|
|
1449
1449
|
function y() {
|
|
1450
1450
|
return P("div", {
|
|
1451
1451
|
class: s.value,
|
|
1452
|
-
ref:
|
|
1452
|
+
ref: n,
|
|
1453
1453
|
"data-dragref": `${l.schema.id}-container`
|
|
1454
1454
|
}, [u.value === "inContent" && o(), e.slots.default && e.slots.default()]);
|
|
1455
1455
|
}
|
|
1456
1456
|
return () => P("div", {
|
|
1457
|
-
class:
|
|
1457
|
+
class: i.value,
|
|
1458
1458
|
ref: r
|
|
1459
1459
|
}, [m(), g(), y()]);
|
|
1460
1460
|
}
|
|
1461
1461
|
});
|
|
1462
|
-
N.register = (
|
|
1463
|
-
|
|
1462
|
+
N.register = (t, e, n, r) => {
|
|
1463
|
+
t.section = N, e.section = G;
|
|
1464
1464
|
};
|
|
1465
|
-
N.registerDesigner = (
|
|
1466
|
-
|
|
1465
|
+
N.registerDesigner = (t, e, n) => {
|
|
1466
|
+
t.section = qe, e.section = G;
|
|
1467
1467
|
};
|
|
1468
1468
|
const Qe = I(N);
|
|
1469
1469
|
export {
|
|
1470
1470
|
N as Section,
|
|
1471
1471
|
Qe as default,
|
|
1472
1472
|
G as propsResolver,
|
|
1473
|
-
|
|
1473
|
+
L as sectionProps
|
|
1474
1474
|
};
|