@farris/ui-vue 1.2.7 → 1.2.9
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 +136 -136
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +418 -456
- package/components/avatar/index.umd.cjs +1 -1
- package/components/border-editor/index.esm.js +4 -4
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button/index.esm.js +1 -1
- package/components/button/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +363 -436
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +5 -5
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +417 -417
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +176 -176
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +557 -594
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +119 -119
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +502 -535
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +69 -69
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +387 -275
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1219 -983
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +292 -219
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +5718 -5546
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3291 -2930
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2650 -2682
- package/components/date-picker/index.umd.cjs +1 -1
- 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.css +1 -1
- package/components/designer-canvas/index.esm.js +945 -932
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +175 -133
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +246 -246
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1319 -1172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +119 -82
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/enum-editor/index.esm.js +3 -3
- package/components/enum-editor/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +569 -514
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +104 -104
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3122 -2686
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +6780 -6608
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1466 -1523
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1048 -1035
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +422 -422
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +674 -716
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +291 -291
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +303 -230
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2486 -2130
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +7474 -7272
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6139 -5949
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +1 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +432 -371
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +1124 -0
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1155 -0
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1215 -1178
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +147 -147
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1240 -1346
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +489 -428
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +220 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1512 -1540
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +749 -815
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +7074 -0
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +86 -86
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +442 -479
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +213 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +116 -116
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +943 -918
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1174 -1295
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5383 -5171
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +201 -201
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +684 -542
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +121 -121
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/spacing-editor/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +1158 -382
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +232 -232
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +451 -487
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2078 -2168
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +318 -320
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +192 -192
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +471 -497
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1421 -1441
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +430 -421
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +6806 -6624
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2793 -2433
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +165 -165
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +255 -255
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +413 -334
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +902 -902
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +54155 -52847
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- 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-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +19 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +3 -3
- package/types/dynamic-form/index.d.ts +3 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- 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-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- 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/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
- 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
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { cloneDeep as
|
|
1
|
+
import { ref as P, computed as S, defineComponent as M, provide as X, createVNode as T, inject as R, onMounted as Y } from "vue";
|
|
2
|
+
import { cloneDeep as ee } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
4
|
const _ = {}, J = {};
|
|
5
|
-
function
|
|
6
|
-
const { properties: e, title: n } = t,
|
|
7
|
-
return
|
|
5
|
+
function L(t) {
|
|
6
|
+
const { properties: e, title: n, ignore: o } = t, r = o && Array.isArray(o), d = Object.keys(e).reduce((c, m) => ((!r || !o.find((j) => j == m)) && (c[m] = e[m].type === "object" && e[m].properties ? L(e[m]) : ee(e[m].default)), c), {});
|
|
7
|
+
return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
9
|
+
function $(t, e = {}, n) {
|
|
10
|
+
const o = _[t];
|
|
11
|
+
if (o) {
|
|
12
|
+
let r = L(o);
|
|
13
|
+
const d = J[t];
|
|
14
|
+
return r = d ? d({ getSchemaByType: $ }, r, e, n) : r, r;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
function ee(t, e) {
|
|
19
|
-
const n = k(e);
|
|
20
|
-
return Object.keys(t).reduce((i, a) => (i[a] = t[a], i), n), n;
|
|
21
|
-
}
|
|
22
18
|
function te(t, e) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
const n = L(e);
|
|
20
|
+
return Object.keys(t).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
|
|
21
|
+
}
|
|
22
|
+
function ne(t, e) {
|
|
23
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
24
|
+
if (e.has(r)) {
|
|
25
|
+
const d = e.get(r);
|
|
26
|
+
if (typeof d == "string")
|
|
27
|
+
o[d] = t[r];
|
|
28
28
|
else {
|
|
29
|
-
const c =
|
|
30
|
-
Object.assign(
|
|
29
|
+
const c = d(r, t[r], t);
|
|
30
|
+
Object.assign(o, c);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
o[r] = t[r];
|
|
34
|
+
return o;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return
|
|
37
|
+
function oe(t, e, n = /* @__PURE__ */ new Map()) {
|
|
38
|
+
const o = te(t, e);
|
|
39
|
+
return ne(o, n);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
function e(
|
|
43
|
-
if (typeof
|
|
44
|
-
return
|
|
45
|
-
if (typeof
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return Number(
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
41
|
+
function se(t = {}) {
|
|
42
|
+
function e(p, i, l, u) {
|
|
43
|
+
if (typeof l == "number")
|
|
44
|
+
return u[p].length === l;
|
|
45
|
+
if (typeof l == "object") {
|
|
46
|
+
const b = Object.keys(l)[0], s = l[b];
|
|
47
|
+
if (b === "not")
|
|
48
|
+
return Number(u[p].length) !== Number(s);
|
|
49
|
+
if (b === "moreThan")
|
|
50
|
+
return Number(u[p].length) >= Number(s);
|
|
51
|
+
if (b === "lessThan")
|
|
52
|
+
return Number(u[p].length) <= Number(s);
|
|
53
53
|
}
|
|
54
54
|
return !1;
|
|
55
55
|
}
|
|
56
|
-
function n(
|
|
57
|
-
return
|
|
56
|
+
function n(p, i, l, u) {
|
|
57
|
+
return u[p] && u[p].propertyValue && String(u[p].propertyValue.value) === String(l);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const o = /* @__PURE__ */ new Map([
|
|
60
60
|
["length", e],
|
|
61
61
|
["getProperty", n]
|
|
62
62
|
]);
|
|
63
|
-
Object.keys(t).reduce((
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
67
|
-
if (
|
|
68
|
-
return { target:
|
|
69
|
-
const
|
|
70
|
-
return { target:
|
|
63
|
+
Object.keys(t).reduce((p, i) => (p.set(i, t[i]), p), o);
|
|
64
|
+
function r(p, i) {
|
|
65
|
+
const l = p;
|
|
66
|
+
return typeof i == "number" ? [{ target: l, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: l, operator: "getProperty", param: p, value: !!i }] : typeof i == "object" ? Object.keys(i).map((u) => {
|
|
67
|
+
if (u === "length")
|
|
68
|
+
return { target: l, operator: "length", param: null, value: i[u] };
|
|
69
|
+
const b = u, s = i[u];
|
|
70
|
+
return { target: l, operator: "getProperty", param: b, value: s };
|
|
71
71
|
}) : [];
|
|
72
72
|
}
|
|
73
|
-
function p
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const
|
|
76
|
-
return
|
|
73
|
+
function d(p) {
|
|
74
|
+
return Object.keys(p).reduce((l, u) => {
|
|
75
|
+
const b = r(u, p[u]);
|
|
76
|
+
return l.push(...b), l;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
79
|
-
function c(
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
return
|
|
79
|
+
function c(p, i) {
|
|
80
|
+
if (o.has(p.operator)) {
|
|
81
|
+
const l = o.get(p.operator);
|
|
82
|
+
return l && l(p.target, p.param, p.value, i) || !1;
|
|
83
83
|
}
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return p
|
|
86
|
+
function m(p, i) {
|
|
87
|
+
return d(p).reduce((b, s) => b && c(s, i), !0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return
|
|
89
|
+
function j(p, i) {
|
|
90
|
+
const l = Object.keys(p), u = l.includes("allOf"), b = l.includes("anyOf"), s = u || b, h = (s ? p[s ? u ? "allOf" : "anyOf" : "allOf"] : [p]).map((g) => m(g, i));
|
|
91
|
+
return u ? !h.includes(!1) : h.includes(!0);
|
|
92
92
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
93
|
+
return { parseValueSchema: j };
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
function G(t, e, n = /* @__PURE__ */ new Map(),
|
|
98
|
-
return _[e.title] = e, J[e.title] =
|
|
99
|
-
const
|
|
100
|
-
return Object.assign(
|
|
95
|
+
const re = {}, ie = {};
|
|
96
|
+
se();
|
|
97
|
+
function G(t, e, n = /* @__PURE__ */ new Map(), o = (c, m, j) => m, r = {}, d = (c) => c) {
|
|
98
|
+
return _[e.title] = e, J[e.title] = o, re[e.title] = r, ie[e.title] = d, (c = {}) => {
|
|
99
|
+
const m = oe(c, e, n), j = Object.keys(t).reduce((p, i) => (p[i] = t[i].default, p), {});
|
|
100
|
+
return Object.assign(j, m);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function Q(t, e) {
|
|
104
104
|
return { customClass: e.class, customStyle: e.style };
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const ae = /* @__PURE__ */ new Map([
|
|
107
107
|
["appearance", Q]
|
|
108
108
|
]);
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
return
|
|
109
|
+
function ce(t, e, n) {
|
|
110
|
+
const o = t.getSchemaByType("splitter-pane");
|
|
111
|
+
return o.appearance = {
|
|
112
112
|
class: "f-col-w6 f-page-content-nav"
|
|
113
|
-
},
|
|
113
|
+
}, o.position = "left", e.contents.unshift(o), e;
|
|
114
114
|
}
|
|
115
115
|
function le(t, e, n) {
|
|
116
|
-
const
|
|
117
|
-
return
|
|
116
|
+
const o = t.getSchemaByType("splitter-pane");
|
|
117
|
+
return o.appearance = {
|
|
118
118
|
class: "f-page-content-main"
|
|
119
|
-
},
|
|
119
|
+
}, o.position = "main", e.contents.push(o), e;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
return String(
|
|
121
|
+
function pe(t, e, n) {
|
|
122
|
+
const o = n.parentComponentInstance;
|
|
123
|
+
return String(o.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), ce(t, e), le(t, e), e;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-design.gitee.io/splitter.schema.json", de = "splitter", ye = "A Farris Container Component", be = "object", me = {
|
|
126
126
|
id: {
|
|
127
127
|
description: "The unique identifier for a splitter",
|
|
128
128
|
type: "string"
|
|
@@ -159,14 +159,14 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
159
159
|
"row"
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
|
-
},
|
|
163
|
-
$schema:
|
|
164
|
-
$id:
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
167
|
-
type:
|
|
168
|
-
properties:
|
|
169
|
-
},
|
|
162
|
+
}, he = {
|
|
163
|
+
$schema: ue,
|
|
164
|
+
$id: fe,
|
|
165
|
+
title: de,
|
|
166
|
+
description: ye,
|
|
167
|
+
type: be,
|
|
168
|
+
properties: me
|
|
169
|
+
}, ge = "splitter", ve = "A Farris Container Component", je = "object", Ce = {
|
|
170
170
|
basic: {
|
|
171
171
|
description: "Basic Infomation",
|
|
172
172
|
title: "基本信息",
|
|
@@ -182,8 +182,15 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
182
182
|
title: "控件类型",
|
|
183
183
|
type: "select",
|
|
184
184
|
editor: {
|
|
185
|
-
type: "
|
|
186
|
-
|
|
185
|
+
type: "combo-list",
|
|
186
|
+
textField: "value",
|
|
187
|
+
valueField: "key",
|
|
188
|
+
data: [
|
|
189
|
+
{
|
|
190
|
+
key: "splitter",
|
|
191
|
+
value: "分栏面板"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
187
194
|
}
|
|
188
195
|
}
|
|
189
196
|
}
|
|
@@ -213,124 +220,124 @@ const pe = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-
|
|
|
213
220
|
}
|
|
214
221
|
}
|
|
215
222
|
}
|
|
216
|
-
},
|
|
217
|
-
title:
|
|
218
|
-
description:
|
|
219
|
-
type:
|
|
223
|
+
}, Pe = {
|
|
224
|
+
title: ge,
|
|
225
|
+
description: ve,
|
|
226
|
+
type: je,
|
|
220
227
|
categories: Ce
|
|
221
|
-
},
|
|
228
|
+
}, V = {
|
|
222
229
|
customStyle: { type: String, default: "" },
|
|
223
230
|
customClass: { type: String, default: "" },
|
|
224
231
|
direction: { Type: String, default: "column" }
|
|
225
|
-
},
|
|
232
|
+
}, x = G(V, he, ae, pe, Pe);
|
|
226
233
|
function U(t) {
|
|
227
|
-
const e =
|
|
228
|
-
display:
|
|
229
|
-
left: `${
|
|
230
|
-
})),
|
|
234
|
+
const e = P(-1), n = P(-1), o = P(0), r = P(0), d = P(!1), c = P(!1), m = S(() => ({
|
|
235
|
+
display: d.value ? "block" : "none",
|
|
236
|
+
left: `${o.value}px`
|
|
237
|
+
})), j = S(() => ({
|
|
231
238
|
display: c.value ? "block" : "none",
|
|
232
|
-
top: `${
|
|
233
|
-
})),
|
|
234
|
-
display: c.value ||
|
|
239
|
+
top: `${r.value}px`
|
|
240
|
+
})), p = S(() => ({
|
|
241
|
+
display: c.value || d.value ? "block" : "none"
|
|
235
242
|
}));
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
239
|
-
const { left:
|
|
240
|
-
|
|
243
|
+
function i(u) {
|
|
244
|
+
const b = t.value;
|
|
245
|
+
if (b) {
|
|
246
|
+
const { left: s } = b.getBoundingClientRect();
|
|
247
|
+
o.value = u.clientX - s;
|
|
241
248
|
}
|
|
242
249
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
const { top:
|
|
247
|
-
|
|
250
|
+
function l(u) {
|
|
251
|
+
const b = t.value;
|
|
252
|
+
if (b) {
|
|
253
|
+
const { top: s } = b.getBoundingClientRect();
|
|
254
|
+
r.value = u.clientY - s;
|
|
248
255
|
}
|
|
249
256
|
}
|
|
250
257
|
return {
|
|
251
|
-
horizontalResizeHandleStyle:
|
|
252
|
-
verticalResizeHandleStyle:
|
|
253
|
-
resizeOverlayStyle:
|
|
254
|
-
showHorizontalResizeHandle:
|
|
258
|
+
horizontalResizeHandleStyle: m,
|
|
259
|
+
verticalResizeHandleStyle: j,
|
|
260
|
+
resizeOverlayStyle: p,
|
|
261
|
+
showHorizontalResizeHandle: d,
|
|
255
262
|
showVerticalResizeHandle: c,
|
|
256
263
|
horizontalResizeBarPosition: e,
|
|
257
264
|
verticalResizeBarPosition: n,
|
|
258
|
-
verticalResizeHandleOffset:
|
|
259
|
-
horizontalResizeHandleOffset:
|
|
260
|
-
draggingHorizontalResizeHandle:
|
|
261
|
-
draggingVerticalResizeHandle:
|
|
265
|
+
verticalResizeHandleOffset: r,
|
|
266
|
+
horizontalResizeHandleOffset: o,
|
|
267
|
+
draggingHorizontalResizeHandle: i,
|
|
268
|
+
draggingVerticalResizeHandle: l
|
|
262
269
|
};
|
|
263
270
|
}
|
|
264
271
|
const we = ["moz", "ms", "webkit"];
|
|
265
|
-
function
|
|
272
|
+
function ze() {
|
|
266
273
|
let t = 0;
|
|
267
274
|
return (e) => {
|
|
268
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
269
|
-
e(n +
|
|
270
|
-
},
|
|
271
|
-
return t = n +
|
|
275
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - t)), r = setTimeout(() => {
|
|
276
|
+
e(n + o);
|
|
277
|
+
}, o);
|
|
278
|
+
return t = n + o, r;
|
|
272
279
|
};
|
|
273
280
|
}
|
|
274
|
-
function
|
|
281
|
+
function Oe() {
|
|
275
282
|
if (typeof window > "u")
|
|
276
283
|
return () => 0;
|
|
277
284
|
if (window.requestAnimationFrame)
|
|
278
285
|
return window.requestAnimationFrame.bind(window);
|
|
279
286
|
const t = we.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
280
|
-
return t ? window[`${t}RequestAnimationFrame`] :
|
|
287
|
+
return t ? window[`${t}RequestAnimationFrame`] : ze();
|
|
281
288
|
}
|
|
282
|
-
|
|
283
|
-
function
|
|
284
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((
|
|
289
|
+
Oe();
|
|
290
|
+
function H(t, e) {
|
|
291
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
285
292
|
}
|
|
286
|
-
function
|
|
287
|
-
return ((e == null ? void 0 : e.split(";")) || []).reduce((
|
|
288
|
-
if (
|
|
289
|
-
const
|
|
290
|
-
|
|
293
|
+
function B(t, e) {
|
|
294
|
+
return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
|
|
295
|
+
if (r) {
|
|
296
|
+
const d = r.split(":");
|
|
297
|
+
o[d[0]] = d[1];
|
|
291
298
|
}
|
|
292
|
-
return
|
|
299
|
+
return o;
|
|
293
300
|
}, t), t;
|
|
294
301
|
}
|
|
295
|
-
const
|
|
302
|
+
const N = /* @__PURE__ */ M({
|
|
296
303
|
name: "FSplitter",
|
|
297
|
-
props:
|
|
304
|
+
props: V,
|
|
298
305
|
emits: [],
|
|
299
306
|
setup(t, e) {
|
|
300
|
-
const n =
|
|
301
|
-
horizontalResizeHandleStyle:
|
|
302
|
-
verticalResizeHandleStyle:
|
|
307
|
+
const n = P(), o = U(n), {
|
|
308
|
+
horizontalResizeHandleStyle: r,
|
|
309
|
+
verticalResizeHandleStyle: d,
|
|
303
310
|
resizeOverlayStyle: c
|
|
304
|
-
} =
|
|
311
|
+
} = o;
|
|
305
312
|
X("splitter", {
|
|
306
|
-
useResizeHandleComposition:
|
|
313
|
+
useResizeHandleComposition: o
|
|
307
314
|
});
|
|
308
|
-
const
|
|
315
|
+
const m = S(() => H({
|
|
309
316
|
"f-splitter": !0
|
|
310
|
-
}, t == null ? void 0 : t.customClass)),
|
|
311
|
-
const
|
|
317
|
+
}, t == null ? void 0 : t.customClass)), j = S(() => {
|
|
318
|
+
const p = {
|
|
312
319
|
"flex-direction": t.direction === "row" ? "column" : "row"
|
|
313
320
|
};
|
|
314
|
-
return
|
|
321
|
+
return B(p, t == null ? void 0 : t.customStyle);
|
|
315
322
|
});
|
|
316
|
-
return () =>
|
|
317
|
-
class:
|
|
323
|
+
return () => T("div", {
|
|
324
|
+
class: m.value,
|
|
318
325
|
ref: n,
|
|
319
|
-
style:
|
|
320
|
-
}, [e.slots.default && e.slots.default(),
|
|
326
|
+
style: j.value
|
|
327
|
+
}, [e.slots.default && e.slots.default(), T("div", {
|
|
321
328
|
class: "f-splitter-resize-overlay",
|
|
322
329
|
style: c.value
|
|
323
|
-
}, null),
|
|
330
|
+
}, null), T("div", {
|
|
324
331
|
class: "f-splitter-horizontal-resize-proxy",
|
|
325
|
-
style:
|
|
326
|
-
}, null),
|
|
332
|
+
style: r.value
|
|
333
|
+
}, null), T("div", {
|
|
327
334
|
class: "f-splitter-vertical-resize-proxy",
|
|
328
|
-
style:
|
|
335
|
+
style: d.value
|
|
329
336
|
}, null)]);
|
|
330
337
|
}
|
|
331
|
-
}),
|
|
338
|
+
}), Ae = /* @__PURE__ */ new Map([
|
|
332
339
|
["appearance", Q]
|
|
333
|
-
]),
|
|
340
|
+
]), Se = "https://json-schema.org/draft/2020-12/schema", Te = "https://farris-design.gitee.io/splitter-pane.schema.json", Ee = "splitter-pane", $e = "A Farris Container Component", De = "object", Re = {
|
|
334
341
|
id: {
|
|
335
342
|
description: "The unique identifier for a splitter",
|
|
336
343
|
type: "string"
|
|
@@ -406,14 +413,14 @@ const A = /* @__PURE__ */ T({
|
|
|
406
413
|
type: "number",
|
|
407
414
|
default: !0
|
|
408
415
|
}
|
|
409
|
-
},
|
|
410
|
-
$schema:
|
|
411
|
-
$id:
|
|
412
|
-
title:
|
|
413
|
-
description:
|
|
414
|
-
type:
|
|
415
|
-
properties:
|
|
416
|
-
},
|
|
416
|
+
}, Me = {
|
|
417
|
+
$schema: Se,
|
|
418
|
+
$id: Te,
|
|
419
|
+
title: Ee,
|
|
420
|
+
description: $e,
|
|
421
|
+
type: De,
|
|
422
|
+
properties: Re
|
|
423
|
+
}, He = "splitter-pane", Be = "A Farris Container Component", Ne = "object", ke = {
|
|
417
424
|
basic: {
|
|
418
425
|
description: "Basic Infomation",
|
|
419
426
|
title: "基本信息",
|
|
@@ -509,12 +516,12 @@ const A = /* @__PURE__ */ T({
|
|
|
509
516
|
}
|
|
510
517
|
}
|
|
511
518
|
}
|
|
512
|
-
},
|
|
513
|
-
title:
|
|
514
|
-
description:
|
|
515
|
-
type:
|
|
516
|
-
categories:
|
|
517
|
-
},
|
|
519
|
+
}, Fe = {
|
|
520
|
+
title: He,
|
|
521
|
+
description: Be,
|
|
522
|
+
type: Ne,
|
|
523
|
+
categories: ke
|
|
524
|
+
}, W = {
|
|
518
525
|
customClass: { type: String, defaut: "" },
|
|
519
526
|
customStyle: { type: String, default: "" },
|
|
520
527
|
/** 记录原始定义宽度 */
|
|
@@ -534,246 +541,1015 @@ const A = /* @__PURE__ */ T({
|
|
|
534
541
|
/** 面板最小高度 */
|
|
535
542
|
minHeight: { type: Number, default: 200 }
|
|
536
543
|
}, q = G(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
544
|
+
W,
|
|
545
|
+
Me,
|
|
546
|
+
Ae,
|
|
540
547
|
void 0,
|
|
541
|
-
|
|
548
|
+
Fe
|
|
542
549
|
);
|
|
543
550
|
function Z(t, e) {
|
|
544
|
-
const n =
|
|
545
|
-
horizontalResizeBarPosition:
|
|
546
|
-
horizontalResizeHandleOffset:
|
|
551
|
+
const n = P(t.width), o = P(t.height), {
|
|
552
|
+
horizontalResizeBarPosition: r,
|
|
553
|
+
horizontalResizeHandleOffset: d,
|
|
547
554
|
showHorizontalResizeHandle: c,
|
|
548
|
-
showVerticalResizeHandle:
|
|
549
|
-
verticalResizeBarPosition:
|
|
550
|
-
verticalResizeHandleOffset:
|
|
551
|
-
draggingHorizontalResizeHandle:
|
|
552
|
-
draggingVerticalResizeHandle:
|
|
555
|
+
showVerticalResizeHandle: m,
|
|
556
|
+
verticalResizeBarPosition: j,
|
|
557
|
+
verticalResizeHandleOffset: p,
|
|
558
|
+
draggingHorizontalResizeHandle: i,
|
|
559
|
+
draggingVerticalResizeHandle: l
|
|
553
560
|
} = e;
|
|
554
|
-
let
|
|
555
|
-
function v
|
|
556
|
-
if ((
|
|
557
|
-
const { left:
|
|
558
|
-
n.value = t.minWidth > 0 ? Math.max(t.minWidth,
|
|
561
|
+
let u = "", b, s;
|
|
562
|
+
function a(v) {
|
|
563
|
+
if ((u === "left" || u === "right") && s) {
|
|
564
|
+
const { left: g } = s.getBoundingClientRect(), { width: C } = b.getBoundingClientRect(), O = v.clientX - g, y = u === "left" ? (C || 0) + (O - r.value) : (C || 0) - (O - r.value);
|
|
565
|
+
n.value = t.minWidth > 0 ? Math.max(t.minWidth, y) : y;
|
|
559
566
|
}
|
|
560
|
-
if ((
|
|
561
|
-
const { top:
|
|
562
|
-
|
|
567
|
+
if ((u === "top" || u === "bottom") && s) {
|
|
568
|
+
const { top: g } = s.getBoundingClientRect(), { height: C } = b.getBoundingClientRect(), O = v.clientY - g, y = u === "top" ? (C || 0) + (O - j.value) : (C || 0) - (O - j.value);
|
|
569
|
+
o.value = t.minHeight > 0 ? Math.max(t.minHeight, y) : y;
|
|
563
570
|
}
|
|
564
|
-
|
|
571
|
+
d.value = 0, p.value = 0, r.value = -1, j.value = -1, c.value = !1, m.value = !1, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), document.body.style.userSelect = "", u = "", b = null, s = null;
|
|
565
572
|
}
|
|
566
|
-
function
|
|
567
|
-
if (
|
|
568
|
-
const { left:
|
|
569
|
-
|
|
573
|
+
function f(v, g, C) {
|
|
574
|
+
if (u = g, b = C, c.value = !0, s = v.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), s) {
|
|
575
|
+
const { left: y } = s.getBoundingClientRect();
|
|
576
|
+
d.value = v.clientX - y, r.value = v.clientX - y, document.addEventListener("mousemove", i), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
|
|
570
577
|
}
|
|
571
578
|
}
|
|
572
|
-
function
|
|
573
|
-
if (
|
|
574
|
-
const { top:
|
|
575
|
-
|
|
579
|
+
function h(v, g, C) {
|
|
580
|
+
if (u = g, b = C, m.value = !0, s = v.composedPath().find((y) => y.className.split(" ")[0] === "f-splitter"), s) {
|
|
581
|
+
const { top: y } = s.getBoundingClientRect();
|
|
582
|
+
p.value = v.clientY - y, j.value = v.clientY - y, document.addEventListener("mousemove", l), document.addEventListener("mouseup", a), document.body.style.userSelect = "none";
|
|
576
583
|
}
|
|
577
584
|
}
|
|
578
585
|
return {
|
|
579
586
|
actualWidth: n,
|
|
580
|
-
actualHeight:
|
|
581
|
-
onClickSplitterHorizontalResizeBar:
|
|
582
|
-
onClickSplitterVerticalResizeBar:
|
|
587
|
+
actualHeight: o,
|
|
588
|
+
onClickSplitterHorizontalResizeBar: f,
|
|
589
|
+
onClickSplitterVerticalResizeBar: h
|
|
583
590
|
};
|
|
584
591
|
}
|
|
585
|
-
const
|
|
592
|
+
const k = /* @__PURE__ */ M({
|
|
586
593
|
name: "FSplitterPane",
|
|
587
|
-
props:
|
|
594
|
+
props: W,
|
|
588
595
|
emits: [],
|
|
589
596
|
setup(t, e) {
|
|
590
|
-
const n =
|
|
591
|
-
useResizeHandleComposition:
|
|
592
|
-
} =
|
|
597
|
+
const n = P(), o = R("splitter"), {
|
|
598
|
+
useResizeHandleComposition: r
|
|
599
|
+
} = o, d = Z(t, r), {
|
|
593
600
|
actualHeight: c,
|
|
594
|
-
actualWidth:
|
|
595
|
-
onClickSplitterHorizontalResizeBar:
|
|
596
|
-
onClickSplitterVerticalResizeBar:
|
|
597
|
-
} =
|
|
598
|
-
const
|
|
601
|
+
actualWidth: m,
|
|
602
|
+
onClickSplitterHorizontalResizeBar: j,
|
|
603
|
+
onClickSplitterVerticalResizeBar: p
|
|
604
|
+
} = d, i = P(t.position), l = S(() => {
|
|
605
|
+
const a = {
|
|
599
606
|
"f-splitter-pane": !0,
|
|
600
|
-
"f-splitter-pane-column":
|
|
601
|
-
"f-splitter-pane-row":
|
|
602
|
-
"f-splitter-pane-main":
|
|
607
|
+
"f-splitter-pane-column": i.value === "left" || i.value === "right",
|
|
608
|
+
"f-splitter-pane-row": i.value === "bottom" || i.value === "top",
|
|
609
|
+
"f-splitter-pane-main": i.value === "center"
|
|
603
610
|
};
|
|
604
|
-
return
|
|
605
|
-
}),
|
|
606
|
-
const
|
|
607
|
-
return (
|
|
608
|
-
}),
|
|
611
|
+
return H(a, t == null ? void 0 : t.customClass);
|
|
612
|
+
}), u = S(() => {
|
|
613
|
+
const a = {};
|
|
614
|
+
return (m.value && i.value === "left" || i.value === "right") && (a.width = `${m.value}px`), (c.value && i.value === "bottom" || i.value === "top") && (a.height = `${c.value}px`), B(a, t == null ? void 0 : t.customStyle);
|
|
615
|
+
}), b = S(() => ({
|
|
609
616
|
"f-splitter-resize-bar": !0,
|
|
610
|
-
"f-splitter-resize-bar-e":
|
|
611
|
-
"f-splitter-resize-bar-n":
|
|
612
|
-
"f-splitter-resize-bar-s":
|
|
613
|
-
"f-splitter-resize-bar-w":
|
|
617
|
+
"f-splitter-resize-bar-e": i.value === "left",
|
|
618
|
+
"f-splitter-resize-bar-n": i.value === "bottom",
|
|
619
|
+
"f-splitter-resize-bar-s": i.value === "top",
|
|
620
|
+
"f-splitter-resize-bar-w": i.value === "right"
|
|
614
621
|
}));
|
|
615
|
-
function
|
|
616
|
-
(
|
|
622
|
+
function s(a, f) {
|
|
623
|
+
(f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") && p(a, f, n.value);
|
|
617
624
|
}
|
|
618
|
-
return () =>
|
|
625
|
+
return () => T("div", {
|
|
619
626
|
ref: n,
|
|
620
|
-
class:
|
|
621
|
-
style:
|
|
622
|
-
}, [e.slots.default && e.slots.default(),
|
|
623
|
-
class:
|
|
624
|
-
onMousedown: (
|
|
627
|
+
class: l.value,
|
|
628
|
+
style: u.value
|
|
629
|
+
}, [e.slots.default && e.slots.default(), T("span", {
|
|
630
|
+
class: b.value,
|
|
631
|
+
onMousedown: (a) => s(a, i.value)
|
|
625
632
|
}, null)]);
|
|
626
633
|
}
|
|
627
634
|
});
|
|
628
635
|
function K(t, e, n) {
|
|
629
|
-
var
|
|
630
|
-
function
|
|
636
|
+
var O;
|
|
637
|
+
function o() {
|
|
631
638
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
632
639
|
}
|
|
633
|
-
|
|
634
|
-
const
|
|
635
|
-
function
|
|
640
|
+
o();
|
|
641
|
+
const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", c = P();
|
|
642
|
+
function m() {
|
|
636
643
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
637
644
|
}
|
|
638
|
-
function
|
|
645
|
+
function j() {
|
|
639
646
|
return !1;
|
|
640
647
|
}
|
|
641
|
-
function
|
|
648
|
+
function p() {
|
|
642
649
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
643
650
|
}
|
|
644
|
-
function
|
|
651
|
+
function i() {
|
|
645
652
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
646
653
|
}
|
|
647
|
-
function
|
|
648
|
-
if (!
|
|
654
|
+
function l(y) {
|
|
655
|
+
if (!y || !y.value)
|
|
649
656
|
return null;
|
|
650
|
-
if (
|
|
651
|
-
return
|
|
652
|
-
const
|
|
653
|
-
return
|
|
657
|
+
if (y.value.schema && y.value.schema.type === "component")
|
|
658
|
+
return y.value;
|
|
659
|
+
const w = P(y == null ? void 0 : y.value.parent), z = l(w);
|
|
660
|
+
return z || null;
|
|
654
661
|
}
|
|
655
|
-
function
|
|
656
|
-
const { componentInstance:
|
|
657
|
-
return !
|
|
662
|
+
function u(y = e) {
|
|
663
|
+
const { componentInstance: w, designerItemElementRef: z } = y;
|
|
664
|
+
return !w || !w.value ? null : w.value.canMove ? z : u(y.parent);
|
|
658
665
|
}
|
|
659
|
-
function
|
|
660
|
-
return !!n && n.canAccepts(
|
|
666
|
+
function b(y) {
|
|
667
|
+
return !!n && n.canAccepts(y);
|
|
661
668
|
}
|
|
662
|
-
function
|
|
669
|
+
function s() {
|
|
663
670
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
664
671
|
}
|
|
665
|
-
function
|
|
672
|
+
function a() {
|
|
666
673
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
674
|
+
function f(y, w) {
|
|
675
|
+
w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
|
|
669
676
|
}
|
|
670
|
-
function
|
|
671
|
-
const { componentType:
|
|
672
|
-
let
|
|
673
|
-
n && n.onResolveNewComponentSchema && (
|
|
674
|
-
const
|
|
675
|
-
return
|
|
677
|
+
function h(y, w) {
|
|
678
|
+
const { componentType: z } = y;
|
|
679
|
+
let A = $(z, y, w);
|
|
680
|
+
n && n.onResolveNewComponentSchema && (A = n.onResolveNewComponentSchema(y, A));
|
|
681
|
+
const D = z.toLowerCase().replace("-", "_");
|
|
682
|
+
return A && !A.id && A.type === z && (A.id = `${D}_${Math.random().toString().slice(2, 6)}`), A;
|
|
676
683
|
}
|
|
677
|
-
function
|
|
678
|
-
const
|
|
679
|
-
|
|
680
|
-
let
|
|
681
|
-
n && n.onAcceptNewChildElement && (
|
|
682
|
-
const
|
|
683
|
-
return
|
|
684
|
+
function v(y, w) {
|
|
685
|
+
const z = String(y.getAttribute("data-controltype")), A = y.getAttribute("data-feature"), D = A ? JSON.parse(A) : {};
|
|
686
|
+
D.parentComponentInstance = c.value;
|
|
687
|
+
let E = $(z, D);
|
|
688
|
+
n && n.onAcceptNewChildElement && (E = n.onAcceptNewChildElement(y, w, E));
|
|
689
|
+
const I = z.toLowerCase().replace("-", "_");
|
|
690
|
+
return E && !E.id && E.type === z && (E.id = `${I}_${Math.random().toString().slice(2, 6)}`), E;
|
|
684
691
|
}
|
|
685
|
-
function
|
|
692
|
+
function g(y) {
|
|
686
693
|
}
|
|
687
|
-
function
|
|
694
|
+
function C(...y) {
|
|
688
695
|
if (n && n.getPropsConfig)
|
|
689
|
-
return n.getPropsConfig(...
|
|
696
|
+
return n.getPropsConfig(...y);
|
|
690
697
|
}
|
|
691
698
|
return c.value = {
|
|
692
|
-
canMove:
|
|
693
|
-
canSelectParent:
|
|
694
|
-
canDelete:
|
|
695
|
-
canNested: !
|
|
699
|
+
canMove: m(),
|
|
700
|
+
canSelectParent: j(),
|
|
701
|
+
canDelete: p(),
|
|
702
|
+
canNested: !i(),
|
|
696
703
|
contents: e == null ? void 0 : e.schema.contents,
|
|
697
704
|
elementRef: t,
|
|
698
|
-
parent: (
|
|
705
|
+
parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
|
|
699
706
|
schema: e == null ? void 0 : e.schema,
|
|
700
|
-
styles:
|
|
701
|
-
designerClass:
|
|
702
|
-
canAccepts:
|
|
703
|
-
getBelongedComponentInstance:
|
|
704
|
-
getDraggableDesignItemElement:
|
|
705
|
-
getDraggingDisplayText:
|
|
706
|
-
getPropConfig:
|
|
707
|
-
getDragScopeElement:
|
|
708
|
-
onAcceptMovedChildElement:
|
|
709
|
-
onAcceptNewChildElement:
|
|
710
|
-
onChildElementMovedOut:
|
|
711
|
-
addNewChildComponentSchema:
|
|
712
|
-
updateDragAndDropRules:
|
|
713
|
-
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved ||
|
|
714
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
707
|
+
styles: r,
|
|
708
|
+
designerClass: d,
|
|
709
|
+
canAccepts: b,
|
|
710
|
+
getBelongedComponentInstance: l,
|
|
711
|
+
getDraggableDesignItemElement: u,
|
|
712
|
+
getDraggingDisplayText: s,
|
|
713
|
+
getPropConfig: C,
|
|
714
|
+
getDragScopeElement: a,
|
|
715
|
+
onAcceptMovedChildElement: f,
|
|
716
|
+
onAcceptNewChildElement: v,
|
|
717
|
+
onChildElementMovedOut: g,
|
|
718
|
+
addNewChildComponentSchema: h,
|
|
719
|
+
updateDragAndDropRules: o,
|
|
720
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || P(!1),
|
|
721
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || P(!1)
|
|
715
722
|
}, c;
|
|
716
723
|
}
|
|
717
|
-
|
|
718
|
-
|
|
724
|
+
const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-design.gitee.io/dragging-rules.schema.json", We = "Dragging Rules", xe = "The rules of designer canvas", qe = "object", Xe = {
|
|
725
|
+
"f-page": {
|
|
726
|
+
description: "The root class of page designed by farris.",
|
|
727
|
+
type: "object",
|
|
728
|
+
properties: {
|
|
729
|
+
contents: {
|
|
730
|
+
type: "object",
|
|
731
|
+
properties: {
|
|
732
|
+
"f-page-header": {
|
|
733
|
+
description: "The class of page header designed by farris.",
|
|
734
|
+
type: "string"
|
|
735
|
+
},
|
|
736
|
+
"f-page-main": {
|
|
737
|
+
description: "The class of page body designed by farris.",
|
|
738
|
+
type: "object",
|
|
739
|
+
properties: {
|
|
740
|
+
contents: {
|
|
741
|
+
type: "object",
|
|
742
|
+
properties: {
|
|
743
|
+
"f-struct-like-card": {
|
|
744
|
+
description: "",
|
|
745
|
+
type: "object",
|
|
746
|
+
properties: {
|
|
747
|
+
contents: {
|
|
748
|
+
type: "object",
|
|
749
|
+
properties: {
|
|
750
|
+
"f-struct-form": {
|
|
751
|
+
description: "The class of form component which has a hierarchical structure of component -> section -> respnse-form.",
|
|
752
|
+
type: "object",
|
|
753
|
+
properties: {
|
|
754
|
+
contents: {
|
|
755
|
+
type: "object",
|
|
756
|
+
properties: {
|
|
757
|
+
"f-section-form": {
|
|
758
|
+
description: "The class of section which has wrapped a reponse-form component.",
|
|
759
|
+
type: "object",
|
|
760
|
+
properties: {
|
|
761
|
+
contents: {
|
|
762
|
+
type: "object",
|
|
763
|
+
properties: {
|
|
764
|
+
"f-form-layout": {
|
|
765
|
+
description: "The class of reponse form",
|
|
766
|
+
type: "object",
|
|
767
|
+
properties: {
|
|
768
|
+
rules: {
|
|
769
|
+
type: "object",
|
|
770
|
+
properties: {
|
|
771
|
+
canAccept: {
|
|
772
|
+
type: "boolean",
|
|
773
|
+
const: !0
|
|
774
|
+
},
|
|
775
|
+
fixed: {
|
|
776
|
+
type: "boolean",
|
|
777
|
+
const: !0
|
|
778
|
+
},
|
|
779
|
+
hidePadding: {
|
|
780
|
+
type: "boolean",
|
|
781
|
+
const: !1
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
rules: {
|
|
790
|
+
type: "object",
|
|
791
|
+
properties: {
|
|
792
|
+
canAccept: {
|
|
793
|
+
type: "boolean",
|
|
794
|
+
const: !1
|
|
795
|
+
},
|
|
796
|
+
fixed: {
|
|
797
|
+
type: "boolean",
|
|
798
|
+
const: !0
|
|
799
|
+
},
|
|
800
|
+
hidePadding: {
|
|
801
|
+
type: "boolean",
|
|
802
|
+
const: !0
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
rules: {
|
|
811
|
+
type: "object",
|
|
812
|
+
properties: {
|
|
813
|
+
canAccept: {
|
|
814
|
+
type: "boolean",
|
|
815
|
+
const: !1
|
|
816
|
+
},
|
|
817
|
+
fixed: {
|
|
818
|
+
type: "boolean",
|
|
819
|
+
const: !1
|
|
820
|
+
},
|
|
821
|
+
hidePadding: {
|
|
822
|
+
type: "boolean",
|
|
823
|
+
const: !0
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
"f-struct-wrapper": {
|
|
830
|
+
description: "",
|
|
831
|
+
type: "object",
|
|
832
|
+
properties: {
|
|
833
|
+
contents: {
|
|
834
|
+
type: "object",
|
|
835
|
+
properties: {
|
|
836
|
+
"f-section-tabs": {
|
|
837
|
+
description: "The class of section which has wrapped sub-grid tabs.",
|
|
838
|
+
type: "object",
|
|
839
|
+
properties: {
|
|
840
|
+
contents: {
|
|
841
|
+
type: "object",
|
|
842
|
+
properties: {
|
|
843
|
+
"f-tabs-in-card": {
|
|
844
|
+
description: "The class of tabs which contains sub-grid.",
|
|
845
|
+
type: "object",
|
|
846
|
+
properties: {
|
|
847
|
+
contents: {
|
|
848
|
+
type: "object",
|
|
849
|
+
properties: {
|
|
850
|
+
"f-struct-data-grid-in-card": {
|
|
851
|
+
description: "The class of sub-grid component",
|
|
852
|
+
type: "object",
|
|
853
|
+
properties: {
|
|
854
|
+
contents: {
|
|
855
|
+
type: "object",
|
|
856
|
+
properties: {
|
|
857
|
+
"f-grid-is-sub": {
|
|
858
|
+
description: "The class of sub-grid",
|
|
859
|
+
type: "object",
|
|
860
|
+
properties: {
|
|
861
|
+
rules: {
|
|
862
|
+
type: "object",
|
|
863
|
+
properties: {
|
|
864
|
+
canAccept: {
|
|
865
|
+
type: "boolean",
|
|
866
|
+
const: !0
|
|
867
|
+
},
|
|
868
|
+
fixed: {
|
|
869
|
+
type: "boolean",
|
|
870
|
+
const: !0
|
|
871
|
+
},
|
|
872
|
+
hidePadding: {
|
|
873
|
+
type: "boolean",
|
|
874
|
+
const: !1
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
rules: {
|
|
883
|
+
type: "object",
|
|
884
|
+
properties: {
|
|
885
|
+
canAccept: {
|
|
886
|
+
type: "boolean",
|
|
887
|
+
const: !1
|
|
888
|
+
},
|
|
889
|
+
fixed: {
|
|
890
|
+
type: "boolean",
|
|
891
|
+
const: !1
|
|
892
|
+
},
|
|
893
|
+
hidePadding: {
|
|
894
|
+
type: "boolean",
|
|
895
|
+
const: !0
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
rules: {
|
|
904
|
+
type: "object",
|
|
905
|
+
properties: {
|
|
906
|
+
canAccept: {
|
|
907
|
+
type: "boolean",
|
|
908
|
+
const: !1
|
|
909
|
+
},
|
|
910
|
+
fixed: {
|
|
911
|
+
type: "boolean",
|
|
912
|
+
const: !0
|
|
913
|
+
},
|
|
914
|
+
hidePadding: {
|
|
915
|
+
type: "boolean",
|
|
916
|
+
const: !0
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
rules: {
|
|
925
|
+
type: "object",
|
|
926
|
+
properties: {
|
|
927
|
+
canAccept: {
|
|
928
|
+
type: "boolean",
|
|
929
|
+
const: !1
|
|
930
|
+
},
|
|
931
|
+
fixed: {
|
|
932
|
+
type: "boolean",
|
|
933
|
+
const: !0
|
|
934
|
+
},
|
|
935
|
+
hidePadding: {
|
|
936
|
+
type: "boolean",
|
|
937
|
+
const: !0
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"f-section-in-main": {
|
|
944
|
+
description: "The class of section which has wrapped a reponse-form component.",
|
|
945
|
+
type: "object",
|
|
946
|
+
properties: {
|
|
947
|
+
rules: {
|
|
948
|
+
type: "object",
|
|
949
|
+
properties: {
|
|
950
|
+
canAccept: {
|
|
951
|
+
type: "boolean",
|
|
952
|
+
const: !0
|
|
953
|
+
},
|
|
954
|
+
fixed: {
|
|
955
|
+
type: "boolean",
|
|
956
|
+
const: !0
|
|
957
|
+
},
|
|
958
|
+
hidePadding: {
|
|
959
|
+
type: "boolean",
|
|
960
|
+
const: !1
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
rules: {
|
|
969
|
+
type: "object",
|
|
970
|
+
properties: {
|
|
971
|
+
canAccept: {
|
|
972
|
+
type: "boolean",
|
|
973
|
+
const: !1
|
|
974
|
+
},
|
|
975
|
+
fixed: {
|
|
976
|
+
type: "boolean",
|
|
977
|
+
const: !1
|
|
978
|
+
},
|
|
979
|
+
hidePadding: {
|
|
980
|
+
type: "boolean",
|
|
981
|
+
const: !0
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
rules: {
|
|
990
|
+
type: "object",
|
|
991
|
+
properties: {
|
|
992
|
+
canAccept: {
|
|
993
|
+
type: "boolean",
|
|
994
|
+
const: !0
|
|
995
|
+
},
|
|
996
|
+
fixed: {
|
|
997
|
+
type: "boolean",
|
|
998
|
+
const: !0
|
|
999
|
+
},
|
|
1000
|
+
hidePadding: {
|
|
1001
|
+
type: "object",
|
|
1002
|
+
const: {
|
|
1003
|
+
allOf: [
|
|
1004
|
+
{
|
|
1005
|
+
sibling: 0,
|
|
1006
|
+
parent: {
|
|
1007
|
+
"f-page-main": !0
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
]
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"f-struct-data-grid": {
|
|
1018
|
+
description: "",
|
|
1019
|
+
type: "object",
|
|
1020
|
+
properties: {
|
|
1021
|
+
rules: {
|
|
1022
|
+
type: "object",
|
|
1023
|
+
properties: {
|
|
1024
|
+
canAccept: {
|
|
1025
|
+
type: "object",
|
|
1026
|
+
const: !0
|
|
1027
|
+
},
|
|
1028
|
+
fixed: {
|
|
1029
|
+
type: "boolean",
|
|
1030
|
+
const: !0
|
|
1031
|
+
},
|
|
1032
|
+
hidePadding: {
|
|
1033
|
+
type: "boolean",
|
|
1034
|
+
const: !0
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"f-page-main-content": {
|
|
1041
|
+
description: "",
|
|
1042
|
+
type: "object",
|
|
1043
|
+
properties: {
|
|
1044
|
+
contents: {
|
|
1045
|
+
type: "object",
|
|
1046
|
+
properties: {
|
|
1047
|
+
"f-page-content-nav": {
|
|
1048
|
+
description: "",
|
|
1049
|
+
type: "object",
|
|
1050
|
+
properties: {
|
|
1051
|
+
contents: {
|
|
1052
|
+
type: "object",
|
|
1053
|
+
properties: {
|
|
1054
|
+
"f-struct-data-grid-in-nav": {
|
|
1055
|
+
description: "",
|
|
1056
|
+
type: "object",
|
|
1057
|
+
properties: {
|
|
1058
|
+
contents: {
|
|
1059
|
+
type: "object",
|
|
1060
|
+
properties: {
|
|
1061
|
+
"f-page-content-nav-extend": {
|
|
1062
|
+
description: "",
|
|
1063
|
+
type: "object"
|
|
1064
|
+
},
|
|
1065
|
+
"f-section-in-nav": {
|
|
1066
|
+
description: "",
|
|
1067
|
+
type: "object",
|
|
1068
|
+
properties: {
|
|
1069
|
+
rules: {
|
|
1070
|
+
type: "object",
|
|
1071
|
+
properties: {
|
|
1072
|
+
canAccept: {
|
|
1073
|
+
type: "boolean",
|
|
1074
|
+
const: !1
|
|
1075
|
+
},
|
|
1076
|
+
fixed: {
|
|
1077
|
+
type: "boolean",
|
|
1078
|
+
const: !0
|
|
1079
|
+
},
|
|
1080
|
+
hidePadding: {
|
|
1081
|
+
type: "boolean",
|
|
1082
|
+
const: !1
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
rules: {
|
|
1091
|
+
type: "object",
|
|
1092
|
+
properties: {
|
|
1093
|
+
canAccept: {
|
|
1094
|
+
type: "boolean",
|
|
1095
|
+
const: !0
|
|
1096
|
+
},
|
|
1097
|
+
fixed: {
|
|
1098
|
+
type: "boolean",
|
|
1099
|
+
const: !1
|
|
1100
|
+
},
|
|
1101
|
+
hidePadding: {
|
|
1102
|
+
type: "boolean",
|
|
1103
|
+
const: !0
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
"f-page-content-main": {
|
|
1114
|
+
description: "",
|
|
1115
|
+
type: "object",
|
|
1116
|
+
properties: {}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"f-page-content": {
|
|
1123
|
+
description: "",
|
|
1124
|
+
type: "object",
|
|
1125
|
+
properties: {
|
|
1126
|
+
contents: {
|
|
1127
|
+
type: "object",
|
|
1128
|
+
properties: {
|
|
1129
|
+
"f-page-content-nav": {
|
|
1130
|
+
description: "",
|
|
1131
|
+
type: "object",
|
|
1132
|
+
properties: {
|
|
1133
|
+
contents: {
|
|
1134
|
+
type: "object",
|
|
1135
|
+
properties: {
|
|
1136
|
+
"f-list-nav": {
|
|
1137
|
+
description: "",
|
|
1138
|
+
type: "object"
|
|
1139
|
+
},
|
|
1140
|
+
"f-list-nav-left": {
|
|
1141
|
+
description: "",
|
|
1142
|
+
type: "object"
|
|
1143
|
+
},
|
|
1144
|
+
"f-struct-data-grid-in-nav": {
|
|
1145
|
+
description: "",
|
|
1146
|
+
type: "object",
|
|
1147
|
+
properties: {
|
|
1148
|
+
contents: {
|
|
1149
|
+
type: "object",
|
|
1150
|
+
properties: {
|
|
1151
|
+
"f-section-form": {
|
|
1152
|
+
description: "",
|
|
1153
|
+
type: "object",
|
|
1154
|
+
properties: {
|
|
1155
|
+
rules: {
|
|
1156
|
+
type: "object",
|
|
1157
|
+
properties: {
|
|
1158
|
+
canAccept: {
|
|
1159
|
+
type: "boolean",
|
|
1160
|
+
const: !1
|
|
1161
|
+
},
|
|
1162
|
+
fixed: {
|
|
1163
|
+
type: "boolean",
|
|
1164
|
+
const: !0
|
|
1165
|
+
},
|
|
1166
|
+
hidePadding: {
|
|
1167
|
+
type: "boolean",
|
|
1168
|
+
const: !0
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"f-section-grid": {
|
|
1175
|
+
description: "",
|
|
1176
|
+
type: "object",
|
|
1177
|
+
properties: {
|
|
1178
|
+
rules: {
|
|
1179
|
+
type: "object",
|
|
1180
|
+
properties: {
|
|
1181
|
+
canAccept: {
|
|
1182
|
+
type: "boolean",
|
|
1183
|
+
const: !1
|
|
1184
|
+
},
|
|
1185
|
+
fixed: {
|
|
1186
|
+
type: "boolean",
|
|
1187
|
+
const: !0
|
|
1188
|
+
},
|
|
1189
|
+
hidePadding: {
|
|
1190
|
+
type: "boolean",
|
|
1191
|
+
const: !0
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
rules: {
|
|
1200
|
+
type: "object",
|
|
1201
|
+
properties: {
|
|
1202
|
+
canAccept: {
|
|
1203
|
+
type: "boolean",
|
|
1204
|
+
const: !1
|
|
1205
|
+
},
|
|
1206
|
+
fixed: {
|
|
1207
|
+
type: "boolean",
|
|
1208
|
+
const: !0
|
|
1209
|
+
},
|
|
1210
|
+
hidePadding: {
|
|
1211
|
+
type: "boolean",
|
|
1212
|
+
const: !0
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
rules: {
|
|
1222
|
+
type: "object",
|
|
1223
|
+
properties: {
|
|
1224
|
+
canAccept: {
|
|
1225
|
+
type: "boolean",
|
|
1226
|
+
const: !1
|
|
1227
|
+
},
|
|
1228
|
+
fixed: {
|
|
1229
|
+
type: "boolean",
|
|
1230
|
+
const: !0
|
|
1231
|
+
},
|
|
1232
|
+
hidePadding: {
|
|
1233
|
+
type: "boolean",
|
|
1234
|
+
const: !0
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"f-page-content-main": {
|
|
1240
|
+
description: "",
|
|
1241
|
+
type: "object",
|
|
1242
|
+
properties: {
|
|
1243
|
+
rules: {
|
|
1244
|
+
type: "object",
|
|
1245
|
+
properties: {
|
|
1246
|
+
canAccept: {
|
|
1247
|
+
type: "boolean",
|
|
1248
|
+
const: !1
|
|
1249
|
+
},
|
|
1250
|
+
fixed: {
|
|
1251
|
+
type: "boolean",
|
|
1252
|
+
const: !1
|
|
1253
|
+
},
|
|
1254
|
+
hidePadding: {
|
|
1255
|
+
type: "boolean",
|
|
1256
|
+
const: !0
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
},
|
|
1264
|
+
rules: {
|
|
1265
|
+
type: "object",
|
|
1266
|
+
properties: {
|
|
1267
|
+
canAccept: {
|
|
1268
|
+
type: "boolean",
|
|
1269
|
+
const: !1
|
|
1270
|
+
},
|
|
1271
|
+
fixed: {
|
|
1272
|
+
type: "boolean",
|
|
1273
|
+
const: !0
|
|
1274
|
+
},
|
|
1275
|
+
hidePadding: {
|
|
1276
|
+
type: "boolean",
|
|
1277
|
+
const: !0
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
rules: {
|
|
1286
|
+
type: "object",
|
|
1287
|
+
properties: {
|
|
1288
|
+
canAccept: {
|
|
1289
|
+
type: "object",
|
|
1290
|
+
const: {
|
|
1291
|
+
anyOf: [
|
|
1292
|
+
{
|
|
1293
|
+
children: 0
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
children: {
|
|
1297
|
+
length: {
|
|
1298
|
+
not: 1
|
|
1299
|
+
},
|
|
1300
|
+
"f-struct-like-card": !0
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
children: {
|
|
1305
|
+
"scroll-spy": !1,
|
|
1306
|
+
"f-page-content": !1,
|
|
1307
|
+
"f-struct-like-card": !1
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
]
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
fixed: {
|
|
1314
|
+
type: "boolean",
|
|
1315
|
+
const: !0
|
|
1316
|
+
},
|
|
1317
|
+
hidePadding: {
|
|
1318
|
+
type: "boolean",
|
|
1319
|
+
const: !0
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
"f-page-footer": {
|
|
1326
|
+
description: "The class of page footer designed by farris.",
|
|
1327
|
+
type: "string"
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
rules: {
|
|
1332
|
+
type: "object",
|
|
1333
|
+
properties: {
|
|
1334
|
+
canAccept: {
|
|
1335
|
+
type: "boolean",
|
|
1336
|
+
const: !1
|
|
1337
|
+
},
|
|
1338
|
+
fixed: {
|
|
1339
|
+
type: "boolean",
|
|
1340
|
+
const: !0
|
|
1341
|
+
},
|
|
1342
|
+
hidePadding: {
|
|
1343
|
+
type: "boolean",
|
|
1344
|
+
const: !0
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
"f-page-is-managelist": {
|
|
1351
|
+
description: "The root class of mangement list page.",
|
|
1352
|
+
type: "string"
|
|
1353
|
+
},
|
|
1354
|
+
"f-page-card": {
|
|
1355
|
+
description: "",
|
|
1356
|
+
type: "object"
|
|
1357
|
+
},
|
|
1358
|
+
"f-page-is-mainsubcard": {
|
|
1359
|
+
description: "",
|
|
1360
|
+
type: "object"
|
|
1361
|
+
}
|
|
1362
|
+
}, Ye = {
|
|
1363
|
+
$schema: Le,
|
|
1364
|
+
$id: Ve,
|
|
1365
|
+
title: We,
|
|
1366
|
+
description: xe,
|
|
1367
|
+
type: qe,
|
|
1368
|
+
properties: Xe
|
|
1369
|
+
}, F = /* @__PURE__ */ new Map();
|
|
1370
|
+
function _e() {
|
|
1371
|
+
function t(s, a, f, h) {
|
|
1372
|
+
var v;
|
|
1373
|
+
if (typeof f == "number")
|
|
1374
|
+
return ((v = h[s]) == null ? void 0 : v.length) === f;
|
|
1375
|
+
if (typeof f == "object") {
|
|
1376
|
+
const g = Object.keys(f)[0], C = f[g];
|
|
1377
|
+
if (g === "not")
|
|
1378
|
+
return Number(h[s].length) !== Number(C);
|
|
1379
|
+
if (g === "moreThan")
|
|
1380
|
+
return Number(h[s].length) >= Number(C);
|
|
1381
|
+
if (g === "lessThan")
|
|
1382
|
+
return Number(h[s].length) <= Number(C);
|
|
1383
|
+
}
|
|
1384
|
+
return !1;
|
|
1385
|
+
}
|
|
1386
|
+
function e(s, a, f, h) {
|
|
1387
|
+
return typeof f == "boolean" ? h.childrenClassList.includes(a) === !!f : !1;
|
|
1388
|
+
}
|
|
1389
|
+
function n(s, a, f, h) {
|
|
1390
|
+
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1391
|
+
}
|
|
1392
|
+
function o(s, a, f, h) {
|
|
1393
|
+
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1394
|
+
}
|
|
1395
|
+
const r = /* @__PURE__ */ new Map([
|
|
1396
|
+
["length", t],
|
|
1397
|
+
["hasChildren", e],
|
|
1398
|
+
["hasSibling", o],
|
|
1399
|
+
["hasParent", n]
|
|
1400
|
+
]);
|
|
1401
|
+
function d(s, a) {
|
|
1402
|
+
const f = s;
|
|
1403
|
+
return typeof a == "number" ? [{ target: f, operator: "length", param: null, value: Number(a) }] : typeof a == "object" ? Object.keys(a).map((h) => {
|
|
1404
|
+
if (h === "length")
|
|
1405
|
+
return { target: f, operator: "length", param: null, value: a[h] };
|
|
1406
|
+
const v = h, g = a[h];
|
|
1407
|
+
return { target: f, operator: s === "children" ? "hasChildren" : s === "parent" ? "hasParent" : "hasSibling", param: v, value: g };
|
|
1408
|
+
}) : [];
|
|
1409
|
+
}
|
|
1410
|
+
function c(s, a) {
|
|
1411
|
+
if (r.has(s.operator)) {
|
|
1412
|
+
const f = r.get(s.operator);
|
|
1413
|
+
return f && f(s.target, s.param, s.value, a) || !1;
|
|
1414
|
+
}
|
|
1415
|
+
return !1;
|
|
1416
|
+
}
|
|
1417
|
+
function m(s, a) {
|
|
1418
|
+
return Object.keys(s).reduce((g, C) => {
|
|
1419
|
+
const O = d(C, s[C]);
|
|
1420
|
+
return g.push(...O), g;
|
|
1421
|
+
}, []).reduce((g, C) => g && c(C, a), !0);
|
|
1422
|
+
}
|
|
1423
|
+
function j(s, a) {
|
|
1424
|
+
const f = Object.keys(s), h = f.includes("allOf"), v = f.includes("anyOf"), g = h || v, y = (g ? s[g ? h ? "allOf" : "anyOf" : "allOf"] : [s]).map((z) => m(z, a));
|
|
1425
|
+
return h ? !y.includes(!1) : y.includes(!0);
|
|
1426
|
+
}
|
|
1427
|
+
function p(s, a) {
|
|
1428
|
+
const f = s.const;
|
|
1429
|
+
return f ? typeof f == "boolean" ? f : typeof f == "object" ? j(f, a) : !1 : !1;
|
|
1430
|
+
}
|
|
1431
|
+
function i(s) {
|
|
1432
|
+
return (a) => {
|
|
1433
|
+
const f = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1434
|
+
return s && s.properties && Object.keys(s.properties).reduce((h, v) => {
|
|
1435
|
+
const g = s.properties[v];
|
|
1436
|
+
return h[v] = p(g, a), h;
|
|
1437
|
+
}, f), f;
|
|
1438
|
+
};
|
|
1439
|
+
}
|
|
1440
|
+
function l(s, a, f) {
|
|
1441
|
+
if (a.type === "object" && a.properties) {
|
|
1442
|
+
const { rules: h, contents: v } = a.properties;
|
|
1443
|
+
f.set(s, i(h)), v && Object.keys(v.properties).forEach(
|
|
1444
|
+
(g) => l(g, v.properties[g], f)
|
|
1445
|
+
);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
function u() {
|
|
1449
|
+
const { properties: s } = Ye;
|
|
1450
|
+
Object.keys(s).forEach((a) => {
|
|
1451
|
+
l(a, s[a], F);
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
function b(s, a) {
|
|
1455
|
+
const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1456
|
+
return F.has(s) ? F.get(s)(a) : f;
|
|
1457
|
+
}
|
|
1458
|
+
return u(), { getRuleValue: b };
|
|
1459
|
+
}
|
|
1460
|
+
function Je(t, e) {
|
|
1461
|
+
const n = _e();
|
|
1462
|
+
let o, r = !1;
|
|
1463
|
+
function d() {
|
|
719
1464
|
return !1;
|
|
720
1465
|
}
|
|
721
|
-
|
|
1466
|
+
function c() {
|
|
1467
|
+
return !r;
|
|
1468
|
+
}
|
|
1469
|
+
function m() {
|
|
1470
|
+
return !r;
|
|
1471
|
+
}
|
|
1472
|
+
function j() {
|
|
1473
|
+
r = !1;
|
|
1474
|
+
const i = t, l = i.appearance && i.appearance.class || "", u = l.split(" "), b = i.contents || [], s = b.length ? b[0] : null, a = s && s.appearance ? s.appearance.class : "", f = a ? a.split(" ") : [], h = b.length ? b.reduce((y, w) => {
|
|
1475
|
+
const z = w && w.appearance ? w.appearance.class : "", A = z ? z.split(" ") : [];
|
|
1476
|
+
return y.push(...A), y;
|
|
1477
|
+
}, []) : [], v = e, g = v && v.appearance && v.appearance.class || "", C = g ? g.split(" ") : [];
|
|
1478
|
+
o = {
|
|
1479
|
+
componentClass: l,
|
|
1480
|
+
componentClassList: u,
|
|
1481
|
+
childContents: b,
|
|
1482
|
+
firstChildContent: s,
|
|
1483
|
+
firstChildClass: a,
|
|
1484
|
+
firstChildClassList: f,
|
|
1485
|
+
parent: v,
|
|
1486
|
+
parentClass: g,
|
|
1487
|
+
parentClassList: C,
|
|
1488
|
+
children: b,
|
|
1489
|
+
childrenClassList: h
|
|
1490
|
+
};
|
|
1491
|
+
const { fixed: O } = n.getRuleValue(u[0], o);
|
|
1492
|
+
return r = O, !0;
|
|
1493
|
+
}
|
|
1494
|
+
function p() {
|
|
1495
|
+
return !0;
|
|
1496
|
+
}
|
|
1497
|
+
return { canAccepts: d, checkCanDeleteComponent: c, checkCanMoveComponent: m, resolveComponentContext: j, hideNestedPaddingInDesginerView: p };
|
|
722
1498
|
}
|
|
723
|
-
const
|
|
1499
|
+
const Ge = /* @__PURE__ */ M({
|
|
724
1500
|
name: "FSplitterDesign",
|
|
725
|
-
props:
|
|
1501
|
+
props: V,
|
|
726
1502
|
emits: [],
|
|
727
1503
|
setup(t, e) {
|
|
728
|
-
var
|
|
729
|
-
const n =
|
|
730
|
-
|
|
1504
|
+
var u;
|
|
1505
|
+
const n = P(), o = R("design-item-context"), r = Je(o.schema, (u = o.parent) == null ? void 0 : u.schema), d = K(n, o, r);
|
|
1506
|
+
d.value.canNested = !1;
|
|
731
1507
|
const c = U(n), {
|
|
732
|
-
horizontalResizeHandleStyle:
|
|
733
|
-
verticalResizeHandleStyle:
|
|
734
|
-
resizeOverlayStyle:
|
|
1508
|
+
horizontalResizeHandleStyle: m,
|
|
1509
|
+
verticalResizeHandleStyle: j,
|
|
1510
|
+
resizeOverlayStyle: p
|
|
735
1511
|
} = c;
|
|
736
1512
|
X("splitter", {
|
|
737
1513
|
useResizeHandleComposition: c
|
|
738
1514
|
});
|
|
739
|
-
const
|
|
1515
|
+
const i = S(() => H({
|
|
740
1516
|
"f-splitter": !0
|
|
741
|
-
}, t == null ? void 0 : t.customClass)),
|
|
742
|
-
const
|
|
1517
|
+
}, t == null ? void 0 : t.customClass)), l = S(() => {
|
|
1518
|
+
const b = {
|
|
743
1519
|
"flex-direction": t.direction === "row" ? "column" : "row"
|
|
744
1520
|
};
|
|
745
|
-
return
|
|
1521
|
+
return B(b, t == null ? void 0 : t.customStyle);
|
|
746
1522
|
});
|
|
747
1523
|
return Y(() => {
|
|
748
|
-
n.value.componentInstance =
|
|
749
|
-
}), e.expose(
|
|
750
|
-
class:
|
|
1524
|
+
n.value.componentInstance = d;
|
|
1525
|
+
}), e.expose(d.value), () => T("div", {
|
|
1526
|
+
class: i.value,
|
|
751
1527
|
ref: n,
|
|
752
|
-
style:
|
|
753
|
-
}, [e.slots.default && e.slots.default(),
|
|
1528
|
+
style: l.value
|
|
1529
|
+
}, [e.slots.default && e.slots.default(), T("div", {
|
|
754
1530
|
class: "f-splitter-resize-overlay",
|
|
755
|
-
style:
|
|
756
|
-
}, null),
|
|
1531
|
+
style: p.value
|
|
1532
|
+
}, null), T("div", {
|
|
757
1533
|
class: "f-splitter-horizontal-resize-proxy",
|
|
758
|
-
style:
|
|
759
|
-
}, null),
|
|
1534
|
+
style: m.value
|
|
1535
|
+
}, null), T("div", {
|
|
760
1536
|
class: "f-splitter-vertical-resize-proxy",
|
|
761
|
-
style:
|
|
1537
|
+
style: j.value
|
|
762
1538
|
}, null)]);
|
|
763
1539
|
}
|
|
764
1540
|
});
|
|
765
|
-
function
|
|
1541
|
+
function Qe() {
|
|
766
1542
|
function t(e) {
|
|
767
|
-
var
|
|
1543
|
+
var r, d;
|
|
768
1544
|
if (!e)
|
|
769
1545
|
return !1;
|
|
770
|
-
const n = ((
|
|
1546
|
+
const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
|
|
771
1547
|
if (!n)
|
|
772
1548
|
return !1;
|
|
773
|
-
const
|
|
1549
|
+
const o = (d = n.schema.appearance) == null ? void 0 : d.class;
|
|
774
1550
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
775
|
-
const c = n.schema.type,
|
|
776
|
-
if (n.schema.type !== "response-layout-item" && !
|
|
1551
|
+
const c = n.schema.type, m = (c === "response-form" || c === "content-container") && o && o.includes("farris-form");
|
|
1552
|
+
if (n.schema.type !== "response-layout-item" && !m)
|
|
777
1553
|
return !1;
|
|
778
1554
|
}
|
|
779
1555
|
return e.controlType !== "field-set";
|
|
@@ -782,90 +1558,90 @@ function Ve() {
|
|
|
782
1558
|
basalDragulaRuleForContainer: t
|
|
783
1559
|
};
|
|
784
1560
|
}
|
|
785
|
-
function
|
|
786
|
-
function n(
|
|
787
|
-
var
|
|
788
|
-
if (!
|
|
1561
|
+
function Ue(t, e) {
|
|
1562
|
+
function n(r) {
|
|
1563
|
+
var j;
|
|
1564
|
+
if (!Qe().basalDragulaRuleForContainer(r))
|
|
789
1565
|
return !1;
|
|
790
|
-
if (((((
|
|
791
|
-
const
|
|
792
|
-
return !(
|
|
1566
|
+
if (((((j = t.appearance) == null ? void 0 : j.class) || "").split(" ") || []).includes("f-page-content-nav")) {
|
|
1567
|
+
const p = t.contents && t.contents[0];
|
|
1568
|
+
return !(p && p.type === "component");
|
|
793
1569
|
}
|
|
794
1570
|
return !0;
|
|
795
1571
|
}
|
|
796
|
-
function
|
|
797
|
-
const
|
|
798
|
-
if (
|
|
1572
|
+
function o(r, d, c) {
|
|
1573
|
+
const m = t, p = (m.appearance && m.appearance.class || "").split(" ");
|
|
1574
|
+
if (m.position === "main" && p.includes("f-page-content-main")) {
|
|
799
1575
|
if (c.type === "tabs") {
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
return
|
|
1576
|
+
const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
|
|
1577
|
+
i.unshift("f-tabs-in-card"), c.appearance = { class: i.join(" ") };
|
|
1578
|
+
const l = $("section");
|
|
1579
|
+
l.id = `${c.id}-section`, l.appearance = { class: "f-section-tabs f-section-in-mainsubcard" }, l.contents = [c];
|
|
1580
|
+
const u = $("content-container");
|
|
1581
|
+
return u.id = `${c.id}-struct-wrapper`, u.appearance = { class: "f-struct-wrapper" }, u.contents = [l], u;
|
|
806
1582
|
}
|
|
807
1583
|
if (c.type === "section") {
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
return
|
|
1584
|
+
const i = c.appearance && c.appearance.class ? String(c.appearance.class).split(" ") : [];
|
|
1585
|
+
i.unshift("f-section-in-main"), c.appearance = { class: i.join(" ") }, c.title = String(r.innerText);
|
|
1586
|
+
const l = $("content-container");
|
|
1587
|
+
return l.id = `${c.id}-struct-wrapper`, l.appearance = { class: "f-struct-wrapper" }, l.contents = [c], l;
|
|
812
1588
|
}
|
|
813
1589
|
}
|
|
814
1590
|
return c;
|
|
815
1591
|
}
|
|
816
|
-
return { canAccepts: n, onAcceptNewChildElement:
|
|
1592
|
+
return { canAccepts: n, onAcceptNewChildElement: o };
|
|
817
1593
|
}
|
|
818
|
-
const
|
|
1594
|
+
const Ze = /* @__PURE__ */ M({
|
|
819
1595
|
name: "FSplitterPaneDesign",
|
|
820
|
-
props:
|
|
1596
|
+
props: W,
|
|
821
1597
|
emits: [],
|
|
822
1598
|
setup(t, e) {
|
|
823
|
-
var
|
|
824
|
-
const n =
|
|
825
|
-
|
|
826
|
-
n.value.componentInstance =
|
|
827
|
-
}), e.expose(
|
|
828
|
-
const c =
|
|
829
|
-
useResizeHandleComposition:
|
|
830
|
-
} = c,
|
|
831
|
-
actualHeight:
|
|
832
|
-
actualWidth:
|
|
833
|
-
} =
|
|
834
|
-
const
|
|
1599
|
+
var s;
|
|
1600
|
+
const n = P(), o = R("design-item-context"), r = Ue(o.schema, (s = o.parent) == null ? void 0 : s.schema), d = K(n, o, r);
|
|
1601
|
+
d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, Y(() => {
|
|
1602
|
+
n.value.componentInstance = d;
|
|
1603
|
+
}), e.expose(d.value);
|
|
1604
|
+
const c = R("splitter"), {
|
|
1605
|
+
useResizeHandleComposition: m
|
|
1606
|
+
} = c, j = Z(t, m), {
|
|
1607
|
+
actualHeight: p,
|
|
1608
|
+
actualWidth: i
|
|
1609
|
+
} = j, l = P(t.position), u = S(() => {
|
|
1610
|
+
const a = {
|
|
835
1611
|
"f-splitter-pane": !0,
|
|
836
|
-
"f-splitter-pane-column":
|
|
837
|
-
"f-splitter-pane-row":
|
|
838
|
-
"f-splitter-pane-main":
|
|
1612
|
+
"f-splitter-pane-column": l.value === "left" || l.value === "right",
|
|
1613
|
+
"f-splitter-pane-row": l.value === "bottom" || l.value === "top",
|
|
1614
|
+
"f-splitter-pane-main": l.value === "center",
|
|
839
1615
|
"f-component-splitter-pane": !0,
|
|
840
1616
|
"drag-container": !0
|
|
841
1617
|
};
|
|
842
|
-
return
|
|
843
|
-
}),
|
|
844
|
-
const
|
|
845
|
-
return (
|
|
1618
|
+
return H(a, t == null ? void 0 : t.customClass);
|
|
1619
|
+
}), b = S(() => {
|
|
1620
|
+
const a = {};
|
|
1621
|
+
return (i.value && l.value === "left" || l.value === "right") && (a.width = `${i.value}px`), (p.value && l.value === "bottom" || l.value === "top") && (a.height = `${p.value}px`), B(a, t == null ? void 0 : t.customStyle);
|
|
846
1622
|
});
|
|
847
|
-
return () =>
|
|
1623
|
+
return () => T("div", {
|
|
848
1624
|
ref: n,
|
|
849
|
-
"data-dragref": `${
|
|
850
|
-
class:
|
|
851
|
-
style:
|
|
1625
|
+
"data-dragref": `${o.schema.id}-container`,
|
|
1626
|
+
class: u.value,
|
|
1627
|
+
style: b.value
|
|
852
1628
|
}, [e.slots.default && e.slots.default()]);
|
|
853
1629
|
}
|
|
854
|
-
}),
|
|
1630
|
+
}), tt = {
|
|
855
1631
|
install(t) {
|
|
856
|
-
t.component(
|
|
1632
|
+
t.component(N.name, N), t.component(k.name, k);
|
|
857
1633
|
},
|
|
858
|
-
register(t, e, n,
|
|
859
|
-
t.splitter =
|
|
1634
|
+
register(t, e, n, o) {
|
|
1635
|
+
t.splitter = N, e.splitter = x, t["splitter-pane"] = k, e["splitter-pane"] = q;
|
|
860
1636
|
},
|
|
861
1637
|
registerDesigner(t, e, n) {
|
|
862
|
-
t.splitter =
|
|
1638
|
+
t.splitter = Ge, e.splitter = x, t["splitter-pane"] = Ze, e["splitter-pane"] = q;
|
|
863
1639
|
}
|
|
864
1640
|
};
|
|
865
1641
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1642
|
+
N as FSplitter,
|
|
1643
|
+
k as FSplitterPane,
|
|
1644
|
+
tt as default,
|
|
1645
|
+
V as splitterProps,
|
|
1646
|
+
x as splitterPropsResolver
|
|
871
1647
|
};
|