@farris/ui-vue 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,128 +1,167 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isPlainObject as
|
|
1
|
+
import { ref as C, computed as P, defineComponent as k, provide as W, createVNode as w, inject as O, onMounted as q } from "vue";
|
|
2
|
+
import { isPlainObject as $, cloneDeep as I } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const { properties: e, title: n, ignore:
|
|
7
|
-
return (!
|
|
4
|
+
const G = {}, X = {};
|
|
5
|
+
function E(t) {
|
|
6
|
+
const { properties: e, title: n, ignore: a } = t, i = a && Array.isArray(a), o = Object.keys(e).reduce((s, d) => ((!i || !a.find((h) => h == d)) && (s[d] = e[d].type === "object" && e[d].properties ? E(e[d]) : I(e[d].default)), s), {});
|
|
7
|
+
return n && (!i || !a.find((s) => s == "id")) && (o.id = `${n}-${Date.now()}`), o;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
9
|
+
function Y(t, e = {}, n) {
|
|
10
|
+
const a = G[t];
|
|
11
|
+
if (a) {
|
|
12
|
+
let i = E(a);
|
|
13
|
+
const o = X[t];
|
|
14
|
+
return i = o ? o({ getSchemaByType: Y }, i, e, n) : i, i;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const n =
|
|
20
|
-
return Object.keys(t).reduce((
|
|
18
|
+
function ee(t, e) {
|
|
19
|
+
const n = E(e);
|
|
20
|
+
return Object.keys(t).reduce((a, i) => (a[i] && $(a[i]) && $(t[i]) ? Object.assign(a[i], t[i]) : a[i] = t[i], a), n), n;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return Object.keys(t).filter((
|
|
24
|
-
if (e.has(
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
o
|
|
22
|
+
function te(t, e) {
|
|
23
|
+
return Object.keys(t).filter((a) => t[a] != null).reduce((a, i) => {
|
|
24
|
+
if (e.has(i)) {
|
|
25
|
+
const o = e.get(i);
|
|
26
|
+
if (typeof o == "string")
|
|
27
|
+
a[o] = t[i];
|
|
28
28
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
29
|
+
const s = o(i, t[i], t);
|
|
30
|
+
Object.assign(a, s);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
a[i] = t[i];
|
|
34
|
+
return a;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return
|
|
37
|
+
function ne(t, e, n = /* @__PURE__ */ new Map()) {
|
|
38
|
+
const a = ee(t, e);
|
|
39
|
+
return te(a, 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 ae(t = {}) {
|
|
42
|
+
function e(l, c, m, r) {
|
|
43
|
+
if (typeof m == "number")
|
|
44
|
+
return r[l].length === m;
|
|
45
|
+
if (typeof m == "object") {
|
|
46
|
+
const p = Object.keys(m)[0], y = m[p];
|
|
47
|
+
if (p === "not")
|
|
48
|
+
return Number(r[l].length) !== Number(y);
|
|
49
|
+
if (p === "moreThan")
|
|
50
|
+
return Number(r[l].length) >= Number(y);
|
|
51
|
+
if (p === "lessThan")
|
|
52
|
+
return Number(r[l].length) <= Number(y);
|
|
53
53
|
}
|
|
54
54
|
return !1;
|
|
55
55
|
}
|
|
56
|
-
function n(
|
|
57
|
-
return
|
|
56
|
+
function n(l, c, m, r) {
|
|
57
|
+
return r[l] && r[l].propertyValue && String(r[l].propertyValue.value) === String(m);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const a = /* @__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((l, c) => (l.set(c, t[c]), l), a);
|
|
64
|
+
function i(l, c) {
|
|
65
|
+
const m = l;
|
|
66
|
+
return typeof c == "number" ? [{ target: m, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: m, operator: "getProperty", param: l, value: !!c }] : typeof c == "object" ? Object.keys(c).map((r) => {
|
|
67
|
+
if (r === "length")
|
|
68
|
+
return { target: m, operator: "length", param: null, value: c[r] };
|
|
69
|
+
const p = r, y = c[r];
|
|
70
|
+
return { target: m, operator: "getProperty", param: p, value: y };
|
|
71
71
|
}) : [];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const
|
|
76
|
-
return
|
|
73
|
+
function o(l) {
|
|
74
|
+
return Object.keys(l).reduce((m, r) => {
|
|
75
|
+
const p = i(r, l[r]);
|
|
76
|
+
return m.push(...p), m;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
return
|
|
79
|
+
function s(l, c) {
|
|
80
|
+
if (a.has(l.operator)) {
|
|
81
|
+
const m = a.get(l.operator);
|
|
82
|
+
return m && m(l.target, l.param, l.value, c) || !1;
|
|
83
83
|
}
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function d(l, c) {
|
|
87
|
+
return o(l).reduce((p, y) => p && s(y, c), !0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return
|
|
89
|
+
function h(l, c) {
|
|
90
|
+
const m = Object.keys(l), r = m.includes("allOf"), p = m.includes("anyOf"), y = r || p, S = (y ? l[y ? r ? "allOf" : "anyOf" : "allOf"] : [l]).map((f) => d(f, c));
|
|
91
|
+
return r ? !S.includes(!1) : S.includes(!0);
|
|
92
92
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
93
|
+
return { parseValueSchema: h };
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
const L = {
|
|
96
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
97
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
98
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
99
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
100
|
+
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
101
|
+
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
102
|
+
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
103
|
+
"number-spinner": { type: "number-spinner", name: "数值", icon: "NumericBox" },
|
|
104
|
+
"date-picker": { type: "date-picker", name: "日期", icon: "DateBox" },
|
|
105
|
+
switch: { type: "switch", name: "开关", icon: "SwitchField" },
|
|
106
|
+
"radio-group": { type: "radio-group", name: "单选组", icon: "RadioGroup" },
|
|
107
|
+
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
108
|
+
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
109
|
+
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
110
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
111
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
112
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
113
|
+
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
114
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
115
|
+
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
116
|
+
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
117
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
118
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
119
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
120
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
121
|
+
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
122
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
123
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
124
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
125
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
126
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
127
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
128
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
129
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
130
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
131
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
132
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
133
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
134
|
+
}, ie = {}, se = {};
|
|
135
|
+
ae();
|
|
136
|
+
function U(t, e, n = /* @__PURE__ */ new Map(), a = (s, d, h) => d, i = {}, o = (s) => s) {
|
|
137
|
+
return G[e.title] = e, X[e.title] = a, ie[e.title] = i, se[e.title] = o, (s = {}) => {
|
|
138
|
+
const d = ne(s, e, n), h = Object.keys(t).reduce((l, c) => (l[c] = t[c].default, l), {});
|
|
139
|
+
return Object.assign(h, d);
|
|
101
140
|
};
|
|
102
141
|
}
|
|
103
|
-
function
|
|
142
|
+
function _(t, e) {
|
|
104
143
|
return { customClass: e.class, customStyle: e.style };
|
|
105
144
|
}
|
|
106
|
-
const
|
|
107
|
-
["appearance",
|
|
145
|
+
const oe = /* @__PURE__ */ new Map([
|
|
146
|
+
["appearance", _]
|
|
108
147
|
]);
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
return
|
|
148
|
+
function re(t, e, n) {
|
|
149
|
+
const a = t.getSchemaByType("splitter-pane");
|
|
150
|
+
return a.appearance = {
|
|
112
151
|
class: "f-col-w6 f-page-content-nav"
|
|
113
|
-
},
|
|
152
|
+
}, a.position = "left", e.contents.unshift(a), e;
|
|
114
153
|
}
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
return
|
|
154
|
+
function le(t, e, n) {
|
|
155
|
+
const a = t.getSchemaByType("splitter-pane");
|
|
156
|
+
return a.appearance = {
|
|
118
157
|
class: "f-page-content-main"
|
|
119
|
-
},
|
|
158
|
+
}, a.position = "main", e.contents.push(a), e;
|
|
120
159
|
}
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
return String(
|
|
160
|
+
function ce(t, e, n) {
|
|
161
|
+
const a = n.parentComponentInstance;
|
|
162
|
+
return String(a.schema.appearance.class || "").split(" ").includes("f-page-main") && (e.appearance = { class: "f-page-content" }), re(t, e), le(t, e), e;
|
|
124
163
|
}
|
|
125
|
-
const
|
|
164
|
+
const ue = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/splitter.schema.json", fe = "splitter", me = "A Farris Container Component", de = "object", ye = {
|
|
126
165
|
id: {
|
|
127
166
|
description: "The unique identifier for a splitter",
|
|
128
167
|
type: "string"
|
|
@@ -153,20 +192,20 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
153
192
|
direction: {
|
|
154
193
|
description: "",
|
|
155
194
|
type: "string",
|
|
156
|
-
default: "
|
|
195
|
+
default: "row",
|
|
157
196
|
enum: [
|
|
158
197
|
"column",
|
|
159
198
|
"row"
|
|
160
199
|
]
|
|
161
200
|
}
|
|
162
|
-
},
|
|
163
|
-
$schema:
|
|
164
|
-
$id:
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
167
|
-
type:
|
|
168
|
-
properties:
|
|
169
|
-
}, ve = "splitter",
|
|
201
|
+
}, he = {
|
|
202
|
+
$schema: ue,
|
|
203
|
+
$id: pe,
|
|
204
|
+
title: fe,
|
|
205
|
+
description: me,
|
|
206
|
+
type: de,
|
|
207
|
+
properties: ye
|
|
208
|
+
}, ve = "splitter", be = "A Farris Container Component", ge = "object", Ce = {
|
|
170
209
|
basic: {
|
|
171
210
|
description: "Basic Infomation",
|
|
172
211
|
title: "基本信息",
|
|
@@ -208,136 +247,125 @@ const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
208
247
|
title: "style样式"
|
|
209
248
|
}
|
|
210
249
|
}
|
|
211
|
-
},
|
|
212
|
-
behavior: {
|
|
213
|
-
description: "",
|
|
214
|
-
title: "行为",
|
|
215
|
-
properties: {
|
|
216
|
-
visible: {
|
|
217
|
-
description: "运行时组件是否可见",
|
|
218
|
-
type: "boolean",
|
|
219
|
-
title: "是否可见"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
250
|
}
|
|
223
|
-
},
|
|
251
|
+
}, ze = {
|
|
224
252
|
title: ve,
|
|
225
|
-
description:
|
|
226
|
-
type:
|
|
227
|
-
categories:
|
|
228
|
-
},
|
|
253
|
+
description: be,
|
|
254
|
+
type: ge,
|
|
255
|
+
categories: Ce
|
|
256
|
+
}, A = {
|
|
229
257
|
customStyle: { type: String, default: "" },
|
|
230
258
|
customClass: { type: String, default: "" },
|
|
231
|
-
direction: { Type: String, default: "
|
|
232
|
-
},
|
|
233
|
-
function
|
|
234
|
-
const e =
|
|
235
|
-
display:
|
|
236
|
-
left: `${
|
|
237
|
-
})),
|
|
238
|
-
display:
|
|
239
|
-
top: `${
|
|
240
|
-
})),
|
|
241
|
-
display:
|
|
259
|
+
direction: { Type: String, default: "row" }
|
|
260
|
+
}, N = U(A, he, oe, ce, ze);
|
|
261
|
+
function J(t) {
|
|
262
|
+
const e = C(-1), n = C(-1), a = C(0), i = C(0), o = C(!1), s = C(!1), d = P(() => ({
|
|
263
|
+
display: o.value ? "block" : "none",
|
|
264
|
+
left: `${a.value}px`
|
|
265
|
+
})), h = P(() => ({
|
|
266
|
+
display: s.value ? "block" : "none",
|
|
267
|
+
top: `${i.value}px`
|
|
268
|
+
})), l = P(() => ({
|
|
269
|
+
display: s.value || o.value ? "block" : "none"
|
|
242
270
|
}));
|
|
243
|
-
function
|
|
244
|
-
const
|
|
245
|
-
if (
|
|
246
|
-
const { left:
|
|
247
|
-
|
|
271
|
+
function c(r) {
|
|
272
|
+
const p = t.value;
|
|
273
|
+
if (p) {
|
|
274
|
+
const { left: y } = p.getBoundingClientRect();
|
|
275
|
+
a.value = r.clientX - y;
|
|
248
276
|
}
|
|
249
277
|
}
|
|
250
|
-
function
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const { top:
|
|
254
|
-
|
|
278
|
+
function m(r) {
|
|
279
|
+
const p = t.value;
|
|
280
|
+
if (p) {
|
|
281
|
+
const { top: y } = p.getBoundingClientRect();
|
|
282
|
+
i.value = r.clientY - y;
|
|
255
283
|
}
|
|
256
284
|
}
|
|
257
285
|
return {
|
|
258
|
-
horizontalResizeHandleStyle:
|
|
259
|
-
verticalResizeHandleStyle:
|
|
260
|
-
resizeOverlayStyle:
|
|
261
|
-
showHorizontalResizeHandle:
|
|
262
|
-
showVerticalResizeHandle:
|
|
286
|
+
horizontalResizeHandleStyle: d,
|
|
287
|
+
verticalResizeHandleStyle: h,
|
|
288
|
+
resizeOverlayStyle: l,
|
|
289
|
+
showHorizontalResizeHandle: o,
|
|
290
|
+
showVerticalResizeHandle: s,
|
|
263
291
|
horizontalResizeBarPosition: e,
|
|
264
292
|
verticalResizeBarPosition: n,
|
|
265
|
-
verticalResizeHandleOffset:
|
|
266
|
-
horizontalResizeHandleOffset:
|
|
267
|
-
draggingHorizontalResizeHandle:
|
|
268
|
-
draggingVerticalResizeHandle:
|
|
293
|
+
verticalResizeHandleOffset: i,
|
|
294
|
+
horizontalResizeHandleOffset: a,
|
|
295
|
+
draggingHorizontalResizeHandle: c,
|
|
296
|
+
draggingVerticalResizeHandle: m
|
|
269
297
|
};
|
|
270
298
|
}
|
|
271
|
-
const
|
|
272
|
-
function
|
|
299
|
+
const Pe = ["moz", "ms", "webkit"];
|
|
300
|
+
function we() {
|
|
273
301
|
let t = 0;
|
|
274
302
|
return (e) => {
|
|
275
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
276
|
-
e(n +
|
|
277
|
-
},
|
|
278
|
-
return t = n +
|
|
303
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - t)), i = setTimeout(() => {
|
|
304
|
+
e(n + a);
|
|
305
|
+
}, a);
|
|
306
|
+
return t = n + a, i;
|
|
279
307
|
};
|
|
280
308
|
}
|
|
281
|
-
function
|
|
309
|
+
function Se() {
|
|
282
310
|
if (typeof window > "u")
|
|
283
311
|
return () => 0;
|
|
284
312
|
if (window.requestAnimationFrame)
|
|
285
313
|
return window.requestAnimationFrame.bind(window);
|
|
286
|
-
const t =
|
|
287
|
-
return t ? window[`${t}RequestAnimationFrame`] :
|
|
288
|
-
}
|
|
289
|
-
Ae();
|
|
290
|
-
function H(t, e) {
|
|
291
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
314
|
+
const t = Pe.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
315
|
+
return t ? window[`${t}RequestAnimationFrame`] : we();
|
|
292
316
|
}
|
|
317
|
+
Se();
|
|
293
318
|
function B(t, e) {
|
|
294
|
-
return ((e == null ? void 0 : e.split("
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
319
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((a, i) => (i && (a[i] = !0), a), t), t;
|
|
320
|
+
}
|
|
321
|
+
function M(t, e) {
|
|
322
|
+
return ((e == null ? void 0 : e.split(";")) || []).reduce((a, i) => {
|
|
323
|
+
if (i) {
|
|
324
|
+
const o = i.split(":");
|
|
325
|
+
a[o[0]] = o[1];
|
|
298
326
|
}
|
|
299
|
-
return
|
|
327
|
+
return a;
|
|
300
328
|
}, t), t;
|
|
301
329
|
}
|
|
302
|
-
const
|
|
330
|
+
const j = /* @__PURE__ */ k({
|
|
303
331
|
name: "FSplitter",
|
|
304
|
-
props:
|
|
332
|
+
props: A,
|
|
305
333
|
emits: [],
|
|
306
334
|
setup(t, e) {
|
|
307
|
-
const n =
|
|
308
|
-
horizontalResizeHandleStyle:
|
|
309
|
-
verticalResizeHandleStyle:
|
|
310
|
-
resizeOverlayStyle:
|
|
311
|
-
} =
|
|
312
|
-
|
|
313
|
-
useResizeHandleComposition:
|
|
335
|
+
const n = C(), a = J(n), {
|
|
336
|
+
horizontalResizeHandleStyle: i,
|
|
337
|
+
verticalResizeHandleStyle: o,
|
|
338
|
+
resizeOverlayStyle: s
|
|
339
|
+
} = a;
|
|
340
|
+
W("splitter", {
|
|
341
|
+
useResizeHandleComposition: a
|
|
314
342
|
});
|
|
315
|
-
const
|
|
343
|
+
const d = P(() => B({
|
|
316
344
|
"f-splitter": !0
|
|
317
|
-
}, t == null ? void 0 : t.customClass)),
|
|
318
|
-
const
|
|
319
|
-
"flex-direction": t.direction === "row" ? "
|
|
345
|
+
}, t == null ? void 0 : t.customClass)), h = P(() => {
|
|
346
|
+
const l = {
|
|
347
|
+
"flex-direction": t.direction === "row" ? "row" : "column"
|
|
320
348
|
};
|
|
321
|
-
return
|
|
349
|
+
return M(l, t == null ? void 0 : t.customStyle);
|
|
322
350
|
});
|
|
323
|
-
return () =>
|
|
324
|
-
class:
|
|
351
|
+
return () => w("div", {
|
|
352
|
+
class: d.value,
|
|
325
353
|
ref: n,
|
|
326
|
-
style:
|
|
327
|
-
}, [e.slots.default && e.slots.default(),
|
|
354
|
+
style: h.value
|
|
355
|
+
}, [e.slots.default && e.slots.default(), w("div", {
|
|
328
356
|
class: "f-splitter-resize-overlay",
|
|
329
|
-
style:
|
|
330
|
-
}, null),
|
|
357
|
+
style: s.value
|
|
358
|
+
}, null), w("div", {
|
|
331
359
|
class: "f-splitter-horizontal-resize-proxy",
|
|
332
|
-
style:
|
|
333
|
-
}, null),
|
|
360
|
+
style: i.value
|
|
361
|
+
}, null), w("div", {
|
|
334
362
|
class: "f-splitter-vertical-resize-proxy",
|
|
335
|
-
style:
|
|
363
|
+
style: o.value
|
|
336
364
|
}, null)]);
|
|
337
365
|
}
|
|
338
|
-
}),
|
|
339
|
-
["appearance",
|
|
340
|
-
]),
|
|
366
|
+
}), Re = /* @__PURE__ */ new Map([
|
|
367
|
+
["appearance", _]
|
|
368
|
+
]), De = "https://json-schema.org/draft/2020-12/schema", Te = "https://farris-design.gitee.io/splitter-pane.schema.json", Le = "splitter-pane", Oe = "A Farris Container Component", ke = "object", Be = {
|
|
341
369
|
id: {
|
|
342
370
|
description: "The unique identifier for a splitter",
|
|
343
371
|
type: "string"
|
|
@@ -403,24 +431,24 @@ const N = /* @__PURE__ */ M({
|
|
|
403
431
|
"bottom"
|
|
404
432
|
]
|
|
405
433
|
},
|
|
406
|
-
|
|
434
|
+
resizable: {
|
|
407
435
|
description: "",
|
|
408
436
|
type: "boolean",
|
|
409
|
-
default: !
|
|
437
|
+
default: !1
|
|
410
438
|
},
|
|
411
439
|
visible: {
|
|
412
440
|
description: "",
|
|
413
441
|
type: "number",
|
|
414
442
|
default: !0
|
|
415
443
|
}
|
|
416
|
-
},
|
|
417
|
-
$schema:
|
|
418
|
-
$id:
|
|
419
|
-
title:
|
|
420
|
-
description:
|
|
421
|
-
type:
|
|
422
|
-
properties:
|
|
423
|
-
},
|
|
444
|
+
}, Me = {
|
|
445
|
+
$schema: De,
|
|
446
|
+
$id: Te,
|
|
447
|
+
title: Le,
|
|
448
|
+
description: Oe,
|
|
449
|
+
type: ke,
|
|
450
|
+
properties: Be
|
|
451
|
+
}, je = "splitter-pane", He = "A Farris Container Component", Ee = "object", Ae = {
|
|
424
452
|
basic: {
|
|
425
453
|
description: "Basic Infomation",
|
|
426
454
|
title: "基本信息",
|
|
@@ -436,8 +464,15 @@ const N = /* @__PURE__ */ M({
|
|
|
436
464
|
title: "控件类型",
|
|
437
465
|
type: "select",
|
|
438
466
|
editor: {
|
|
439
|
-
type: "
|
|
440
|
-
|
|
467
|
+
type: "combo-list",
|
|
468
|
+
textField: "value",
|
|
469
|
+
valueField: "key",
|
|
470
|
+
data: [
|
|
471
|
+
{
|
|
472
|
+
key: "splitter-pane",
|
|
473
|
+
value: "分栏面板项"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
441
476
|
}
|
|
442
477
|
}
|
|
443
478
|
}
|
|
@@ -464,12 +499,12 @@ const N = /* @__PURE__ */ M({
|
|
|
464
499
|
title: "高度(px)",
|
|
465
500
|
type: "number"
|
|
466
501
|
},
|
|
467
|
-
|
|
502
|
+
minWidth: {
|
|
468
503
|
description: "面板最小宽度",
|
|
469
504
|
title: "最小宽度(px)",
|
|
470
505
|
type: "number"
|
|
471
506
|
},
|
|
472
|
-
|
|
507
|
+
minHeight: {
|
|
473
508
|
description: "面板最小高度",
|
|
474
509
|
title: "最小高度(px)",
|
|
475
510
|
type: "number"
|
|
@@ -480,16 +515,13 @@ const N = /* @__PURE__ */ M({
|
|
|
480
515
|
description: "",
|
|
481
516
|
title: "行为",
|
|
482
517
|
properties: {
|
|
483
|
-
visible: {
|
|
484
|
-
description: "运行时组件是否可见",
|
|
485
|
-
type: "boolean",
|
|
486
|
-
title: "是否可见"
|
|
487
|
-
},
|
|
488
518
|
position: {
|
|
489
519
|
description: "",
|
|
490
520
|
title: "位置",
|
|
491
521
|
editor: {
|
|
492
522
|
type: "combo-list",
|
|
523
|
+
idField: "value",
|
|
524
|
+
valueField: "value",
|
|
493
525
|
data: [
|
|
494
526
|
{
|
|
495
527
|
value: "left",
|
|
@@ -516,15 +548,14 @@ const N = /* @__PURE__ */ M({
|
|
|
516
548
|
}
|
|
517
549
|
}
|
|
518
550
|
}
|
|
519
|
-
},
|
|
520
|
-
title:
|
|
521
|
-
description:
|
|
522
|
-
type:
|
|
523
|
-
categories:
|
|
524
|
-
},
|
|
551
|
+
}, Fe = {
|
|
552
|
+
title: je,
|
|
553
|
+
description: He,
|
|
554
|
+
type: Ee,
|
|
555
|
+
categories: Ae
|
|
556
|
+
}, F = {
|
|
525
557
|
customClass: { type: String, defaut: "" },
|
|
526
558
|
customStyle: { type: String, default: "" },
|
|
527
|
-
/** 记录原始定义宽度 */
|
|
528
559
|
width: { type: Number },
|
|
529
560
|
/** 记录原始定义高度 */
|
|
530
561
|
height: { type: Number },
|
|
@@ -533,1115 +564,445 @@ const N = /* @__PURE__ */ M({
|
|
|
533
564
|
/** 是否显示 */
|
|
534
565
|
visible: { type: Boolean, default: !0 },
|
|
535
566
|
/** True to allow the pane can be resized. */
|
|
536
|
-
resizable: { type: Boolean, default: !
|
|
567
|
+
resizable: { type: Boolean, default: !1 },
|
|
568
|
+
/**指定拖拽的方向,可以指定多个方向,e向东,n向北,s向南,w向西
|
|
569
|
+
* 因为位置在右侧,不一定就是w方向可拖拽的
|
|
570
|
+
*/
|
|
571
|
+
resizeHandle: { type: String, default: "" },
|
|
537
572
|
/** True to allow the pane can be collapsed. */
|
|
538
573
|
collapsable: { type: Boolean, default: !1 },
|
|
539
574
|
/** 面板最小宽度 */
|
|
540
|
-
minWidth: { type: Number, default:
|
|
575
|
+
minWidth: { type: Number, default: 0 },
|
|
541
576
|
/** 面板最小高度 */
|
|
542
|
-
minHeight: { type: Number, default:
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
577
|
+
minHeight: { type: Number, default: 0 }
|
|
578
|
+
}, V = U(
|
|
579
|
+
F,
|
|
580
|
+
Me,
|
|
581
|
+
Re,
|
|
547
582
|
void 0,
|
|
548
|
-
|
|
583
|
+
Fe
|
|
549
584
|
);
|
|
550
|
-
function
|
|
551
|
-
const n =
|
|
552
|
-
horizontalResizeBarPosition:
|
|
553
|
-
horizontalResizeHandleOffset:
|
|
554
|
-
showHorizontalResizeHandle:
|
|
555
|
-
showVerticalResizeHandle:
|
|
556
|
-
verticalResizeBarPosition:
|
|
557
|
-
verticalResizeHandleOffset:
|
|
558
|
-
draggingHorizontalResizeHandle:
|
|
559
|
-
draggingVerticalResizeHandle:
|
|
585
|
+
function Q(t, e) {
|
|
586
|
+
const n = C(t.width), a = C(t.height), {
|
|
587
|
+
horizontalResizeBarPosition: i,
|
|
588
|
+
horizontalResizeHandleOffset: o,
|
|
589
|
+
showHorizontalResizeHandle: s,
|
|
590
|
+
showVerticalResizeHandle: d,
|
|
591
|
+
verticalResizeBarPosition: h,
|
|
592
|
+
verticalResizeHandleOffset: l,
|
|
593
|
+
draggingHorizontalResizeHandle: c,
|
|
594
|
+
draggingVerticalResizeHandle: m
|
|
560
595
|
} = e;
|
|
561
|
-
let
|
|
562
|
-
function
|
|
563
|
-
if ((
|
|
564
|
-
const { left:
|
|
565
|
-
n.value = t.minWidth > 0 ? Math.max(t.minWidth,
|
|
596
|
+
let r = "", p, y;
|
|
597
|
+
function g(u) {
|
|
598
|
+
if ((r === "left" || r === "right") && y) {
|
|
599
|
+
const { left: f } = y.getBoundingClientRect(), { width: z } = p.getBoundingClientRect(), v = u.clientX - f, b = r === "left" ? (z || 0) + (v - i.value) : (z || 0) - (v - i.value);
|
|
600
|
+
n.value = t.minWidth > 0 ? Math.max(t.minWidth, b) : b;
|
|
566
601
|
}
|
|
567
|
-
if ((
|
|
568
|
-
const { top:
|
|
569
|
-
|
|
602
|
+
if ((r === "top" || r === "bottom") && y) {
|
|
603
|
+
const { top: f } = y.getBoundingClientRect(), { height: z } = p.getBoundingClientRect(), v = u.clientY - f, b = r === "top" ? (z || 0) + (v - h.value) : (z || 0) - (v - h.value);
|
|
604
|
+
a.value = t.minHeight > 0 ? Math.max(t.minHeight, b) : b;
|
|
570
605
|
}
|
|
571
|
-
|
|
606
|
+
o.value = 0, l.value = 0, i.value = -1, h.value = -1, s.value = !1, d.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", g), document.body.style.userSelect = "", r = "", p = null, y = null;
|
|
572
607
|
}
|
|
573
|
-
function
|
|
574
|
-
if (
|
|
575
|
-
const { left:
|
|
576
|
-
|
|
608
|
+
function R(u, f, z) {
|
|
609
|
+
if (r = f, p = z, s.value = !0, y = u.composedPath().find((b) => b.className.split(" ")[0] === "f-splitter"), y) {
|
|
610
|
+
const { left: b } = y.getBoundingClientRect();
|
|
611
|
+
o.value = u.clientX - b, i.value = u.clientX - b, document.addEventListener("mousemove", c), document.addEventListener("mouseup", g), document.body.style.userSelect = "none";
|
|
577
612
|
}
|
|
578
613
|
}
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
581
|
-
const { top:
|
|
582
|
-
|
|
614
|
+
function S(u, f, z) {
|
|
615
|
+
if (r = f, p = z, d.value = !0, y = u.composedPath().find((b) => b.className.split(" ")[0] === "f-splitter"), y) {
|
|
616
|
+
const { top: b } = y.getBoundingClientRect();
|
|
617
|
+
l.value = u.clientY - b, h.value = u.clientY - b, document.addEventListener("mousemove", m), document.addEventListener("mouseup", g), document.body.style.userSelect = "none";
|
|
583
618
|
}
|
|
584
619
|
}
|
|
585
620
|
return {
|
|
586
621
|
actualWidth: n,
|
|
587
|
-
actualHeight:
|
|
588
|
-
onClickSplitterHorizontalResizeBar:
|
|
589
|
-
onClickSplitterVerticalResizeBar:
|
|
622
|
+
actualHeight: a,
|
|
623
|
+
onClickSplitterHorizontalResizeBar: R,
|
|
624
|
+
onClickSplitterVerticalResizeBar: S
|
|
590
625
|
};
|
|
591
626
|
}
|
|
592
|
-
const
|
|
627
|
+
const H = /* @__PURE__ */ k({
|
|
593
628
|
name: "FSplitterPane",
|
|
594
|
-
props:
|
|
629
|
+
props: F,
|
|
595
630
|
emits: [],
|
|
596
631
|
setup(t, e) {
|
|
597
|
-
const n =
|
|
598
|
-
useResizeHandleComposition:
|
|
599
|
-
} =
|
|
600
|
-
actualHeight:
|
|
601
|
-
actualWidth:
|
|
602
|
-
onClickSplitterHorizontalResizeBar:
|
|
603
|
-
onClickSplitterVerticalResizeBar:
|
|
604
|
-
} =
|
|
605
|
-
const
|
|
632
|
+
const n = C(), a = O("splitter"), {
|
|
633
|
+
useResizeHandleComposition: i
|
|
634
|
+
} = a, o = Q(t, i), {
|
|
635
|
+
actualHeight: s,
|
|
636
|
+
actualWidth: d,
|
|
637
|
+
onClickSplitterHorizontalResizeBar: h,
|
|
638
|
+
onClickSplitterVerticalResizeBar: l
|
|
639
|
+
} = o, c = C(t.position), m = P(() => {
|
|
640
|
+
const u = {
|
|
606
641
|
"f-splitter-pane": !0,
|
|
607
|
-
"f-splitter-pane-
|
|
608
|
-
"
|
|
609
|
-
"f-splitter-pane-main": i.value === "center"
|
|
642
|
+
"f-splitter-pane-main": c.value === "center",
|
|
643
|
+
"has-resize-bar": t.resizable
|
|
610
644
|
};
|
|
611
|
-
return
|
|
612
|
-
}),
|
|
613
|
-
const
|
|
614
|
-
return (
|
|
615
|
-
}),
|
|
645
|
+
return u["f-splitter-pane-" + c.value] = !0, B(u, t == null ? void 0 : t.customClass);
|
|
646
|
+
}), r = P(() => {
|
|
647
|
+
const u = {};
|
|
648
|
+
return (d.value && c.value === "left" || c.value === "right" || p.value.find((f) => f == "e") || p.value.find((f) => f == "w")) && (u.width = `${d.value}px`), (s.value && c.value === "bottom" || c.value === "top" || p.value.find((f) => f == "s") || p.value.find((f) => f == "n")) && (u.height = `${s.value}px`), M(u, t == null ? void 0 : t.customStyle);
|
|
649
|
+
}), p = P(() => t.resizeHandle ? t.resizeHandle.split(",").filter((u) => ["e", "n", "s", "w"].find((f) => f == u)) : []), y = P(() => ({
|
|
616
650
|
"f-splitter-resize-bar": !0,
|
|
617
|
-
"f-splitter-resize-bar-e":
|
|
618
|
-
"f-splitter-resize-bar-n":
|
|
619
|
-
"f-splitter-resize-bar-s":
|
|
620
|
-
"f-splitter-resize-bar-w":
|
|
651
|
+
"f-splitter-resize-bar-e": c.value === "left",
|
|
652
|
+
"f-splitter-resize-bar-n": c.value === "bottom",
|
|
653
|
+
"f-splitter-resize-bar-s": c.value === "top",
|
|
654
|
+
"f-splitter-resize-bar-w": c.value === "right"
|
|
621
655
|
}));
|
|
622
|
-
function
|
|
623
|
-
(f
|
|
656
|
+
function g(u, f) {
|
|
657
|
+
f = R(f), ["left", "right"].find((z) => z == f) && h(u, f, n.value), ["top", "bottom"].find((z) => z == f) && l(u, f, n.value);
|
|
658
|
+
}
|
|
659
|
+
function R(u) {
|
|
660
|
+
return {
|
|
661
|
+
e: "left",
|
|
662
|
+
w: "right",
|
|
663
|
+
s: "top",
|
|
664
|
+
n: "bottom"
|
|
665
|
+
}[u] || u;
|
|
666
|
+
}
|
|
667
|
+
function S() {
|
|
668
|
+
return p.value.length > 0 ? p.value.map((u) => w("span", {
|
|
669
|
+
class: "f-splitter-resize-bar f-splitter-resize-bar-" + u,
|
|
670
|
+
onMousedown: (f) => g(f, u)
|
|
671
|
+
}, null)) : w("span", {
|
|
672
|
+
class: y.value,
|
|
673
|
+
onMousedown: (u) => g(u, c.value)
|
|
674
|
+
}, null);
|
|
624
675
|
}
|
|
625
|
-
return () =>
|
|
676
|
+
return () => w("div", {
|
|
626
677
|
ref: n,
|
|
627
|
-
class:
|
|
628
|
-
style:
|
|
629
|
-
}, [e.slots.default && e.slots.default(),
|
|
630
|
-
class: b.value,
|
|
631
|
-
onMousedown: (a) => s(a, i.value)
|
|
632
|
-
}, null)]);
|
|
678
|
+
class: m.value,
|
|
679
|
+
style: r.value
|
|
680
|
+
}, [e.slots.default && e.slots.default(), t.resizable && S()]);
|
|
633
681
|
}
|
|
634
682
|
});
|
|
635
|
-
function
|
|
636
|
-
var
|
|
637
|
-
function
|
|
683
|
+
function Z(t, e, n) {
|
|
684
|
+
var z;
|
|
685
|
+
function a() {
|
|
638
686
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
639
687
|
}
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
function
|
|
688
|
+
a();
|
|
689
|
+
const i = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", s = C();
|
|
690
|
+
function d() {
|
|
643
691
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
644
692
|
}
|
|
645
|
-
function
|
|
693
|
+
function h() {
|
|
646
694
|
return !1;
|
|
647
695
|
}
|
|
648
|
-
function
|
|
696
|
+
function l() {
|
|
649
697
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
650
698
|
}
|
|
651
|
-
function
|
|
699
|
+
function c() {
|
|
652
700
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
653
701
|
}
|
|
654
|
-
function
|
|
655
|
-
if (!
|
|
702
|
+
function m(v) {
|
|
703
|
+
if (!v || !v.value)
|
|
656
704
|
return null;
|
|
657
|
-
if (
|
|
658
|
-
return
|
|
659
|
-
const
|
|
660
|
-
return
|
|
705
|
+
if (v.value.schema && v.value.schema.type === "component")
|
|
706
|
+
return v.value;
|
|
707
|
+
const b = C(v == null ? void 0 : v.value.parent), D = m(b);
|
|
708
|
+
return D || null;
|
|
661
709
|
}
|
|
662
|
-
function
|
|
663
|
-
const { componentInstance:
|
|
664
|
-
return !
|
|
710
|
+
function r(v = e) {
|
|
711
|
+
const { componentInstance: b, designerItemElementRef: D } = v;
|
|
712
|
+
return !b || !b.value ? null : b.value.canMove ? D : r(v.parent);
|
|
665
713
|
}
|
|
666
|
-
function
|
|
667
|
-
return !!n && n.canAccepts(
|
|
714
|
+
function p(v) {
|
|
715
|
+
return !!n && n.canAccepts(v);
|
|
668
716
|
}
|
|
669
|
-
function
|
|
717
|
+
function y() {
|
|
670
718
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
671
719
|
}
|
|
672
|
-
function
|
|
673
|
-
}
|
|
674
|
-
function f(y, w) {
|
|
675
|
-
w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
|
|
720
|
+
function g() {
|
|
676
721
|
}
|
|
677
|
-
function
|
|
678
|
-
|
|
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;
|
|
722
|
+
function R(v, b) {
|
|
723
|
+
b && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(b);
|
|
683
724
|
}
|
|
684
|
-
function v
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
return E && !E.id && E.type === z && (E.id = `${ee}_${Math.random().toString().slice(2, 6)}`), E;
|
|
725
|
+
function S(v, b) {
|
|
726
|
+
const { componentType: D } = v;
|
|
727
|
+
let T = Y(D, v, b);
|
|
728
|
+
n && n.onResolveNewComponentSchema && (T = n.onResolveNewComponentSchema(v, T));
|
|
729
|
+
const K = D.toLowerCase().replace("-", "_");
|
|
730
|
+
return T && !T.id && T.type === D && (T.id = `${K}_${Math.random().toString().slice(2, 6)}`), T;
|
|
691
731
|
}
|
|
692
|
-
function
|
|
732
|
+
function u(v) {
|
|
693
733
|
}
|
|
694
|
-
function
|
|
734
|
+
function f(...v) {
|
|
695
735
|
if (n && n.getPropsConfig)
|
|
696
|
-
return n.getPropsConfig(...
|
|
736
|
+
return n.getPropsConfig(...v);
|
|
697
737
|
}
|
|
698
|
-
return
|
|
699
|
-
canMove:
|
|
700
|
-
canSelectParent:
|
|
701
|
-
canDelete:
|
|
702
|
-
canNested: !
|
|
738
|
+
return s.value = {
|
|
739
|
+
canMove: d(),
|
|
740
|
+
canSelectParent: h(),
|
|
741
|
+
canDelete: l(),
|
|
742
|
+
canNested: !c(),
|
|
703
743
|
contents: e == null ? void 0 : e.schema.contents,
|
|
704
744
|
elementRef: t,
|
|
705
|
-
parent: (
|
|
745
|
+
parent: (z = e == null ? void 0 : e.parent) == null ? void 0 : z.componentInstance,
|
|
706
746
|
schema: e == null ? void 0 : e.schema,
|
|
707
|
-
styles:
|
|
708
|
-
designerClass:
|
|
709
|
-
canAccepts:
|
|
710
|
-
getBelongedComponentInstance:
|
|
711
|
-
getDraggableDesignItemElement:
|
|
712
|
-
getDraggingDisplayText:
|
|
713
|
-
getPropConfig:
|
|
714
|
-
getDragScopeElement:
|
|
715
|
-
onAcceptMovedChildElement:
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}, c;
|
|
747
|
+
styles: i,
|
|
748
|
+
designerClass: o,
|
|
749
|
+
canAccepts: p,
|
|
750
|
+
getBelongedComponentInstance: m,
|
|
751
|
+
getDraggableDesignItemElement: r,
|
|
752
|
+
getDraggingDisplayText: y,
|
|
753
|
+
getPropConfig: f,
|
|
754
|
+
getDragScopeElement: g,
|
|
755
|
+
onAcceptMovedChildElement: R,
|
|
756
|
+
onChildElementMovedOut: u,
|
|
757
|
+
addNewChildComponentSchema: S,
|
|
758
|
+
updateDragAndDropRules: a,
|
|
759
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
760
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1)
|
|
761
|
+
}, s;
|
|
723
762
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
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"
|
|
763
|
+
class x {
|
|
764
|
+
getTemplateRule(e, n) {
|
|
765
|
+
const a = n == null ? void 0 : n.formSchemaUtils, i = a == null ? void 0 : a.getFormTemplateRule(), o = { canAccept: !0, canDelete: !0, canMove: !0 };
|
|
766
|
+
if (!i)
|
|
767
|
+
return o;
|
|
768
|
+
const s = this.getComponentContext(e);
|
|
769
|
+
return s.componentClassList.forEach((h) => {
|
|
770
|
+
if (!h || !i[h])
|
|
771
|
+
return;
|
|
772
|
+
const { canMove: l, canDelete: c, canAccept: m } = i[h];
|
|
773
|
+
o.canMove = o.canMove && this.resolveRuleValue(l, s), o.canDelete = o.canDelete && this.resolveRuleValue(c, s), o.canAccept = o.canAccept && this.resolveRuleValue(m, s);
|
|
774
|
+
}), o;
|
|
775
|
+
}
|
|
776
|
+
resolveRuleValue(e, n) {
|
|
777
|
+
return typeof e == "boolean" ? e : this.parseRuleValueSchema(e, n);
|
|
778
|
+
}
|
|
779
|
+
parseRuleValueSchema(e, n) {
|
|
780
|
+
const a = e.invalidContext || [];
|
|
781
|
+
let i = !0;
|
|
782
|
+
for (const o of a) {
|
|
783
|
+
if (o.firstLevelChild) {
|
|
784
|
+
if (o.firstLevelChild.class) {
|
|
785
|
+
const s = n.firstLevelChildClassList;
|
|
786
|
+
if (s && !s.includes(o.firstLevelChild.class)) {
|
|
787
|
+
i = !1;
|
|
788
|
+
continue;
|
|
1328
789
|
}
|
|
1329
790
|
}
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
type: "boolean",
|
|
1336
|
-
const: !1
|
|
1337
|
-
},
|
|
1338
|
-
fixed: {
|
|
1339
|
-
type: "boolean",
|
|
1340
|
-
const: !0
|
|
1341
|
-
},
|
|
1342
|
-
hidePadding: {
|
|
1343
|
-
type: "boolean",
|
|
1344
|
-
const: !0
|
|
791
|
+
if (o.firstLevelChild.type) {
|
|
792
|
+
const s = n.firstLevelChildSchema;
|
|
793
|
+
if (s && s.type !== o.firstLevelChild.type) {
|
|
794
|
+
i = !1;
|
|
795
|
+
continue;
|
|
1345
796
|
}
|
|
1346
797
|
}
|
|
1347
798
|
}
|
|
799
|
+
if (o.secondLevelChild) {
|
|
800
|
+
if (o.secondLevelChild.class) {
|
|
801
|
+
const s = n.secondLevelChildClassList;
|
|
802
|
+
if (s && !s.includes(o.secondLevelChild.class)) {
|
|
803
|
+
i = !1;
|
|
804
|
+
continue;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
if (o.secondLevelChild.type) {
|
|
808
|
+
const s = n.secondLevelChildSchema;
|
|
809
|
+
if (s && s.type !== o.secondLevelChild.type) {
|
|
810
|
+
i = !1;
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
if (o.parent) {
|
|
816
|
+
if (o.parent.class) {
|
|
817
|
+
const s = n.parentClassList;
|
|
818
|
+
if (s && !s.includes(o.parent.class)) {
|
|
819
|
+
i = !1;
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
if (o.parent.type) {
|
|
824
|
+
const s = n.parentSchema;
|
|
825
|
+
if (s && s.type !== o.parent.type) {
|
|
826
|
+
i = !1;
|
|
827
|
+
continue;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
i = !0;
|
|
832
|
+
break;
|
|
1348
833
|
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
type: Xe,
|
|
1368
|
-
properties: Ye
|
|
1369
|
-
}, F = /* @__PURE__ */ new Map();
|
|
1370
|
-
function Je() {
|
|
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;
|
|
834
|
+
return !i;
|
|
835
|
+
}
|
|
836
|
+
getComponentContext(e) {
|
|
837
|
+
var g, R, S, u;
|
|
838
|
+
const n = e.schema, a = n.appearance && n.appearance.class || "", i = a.split(" ") || [], o = n.contents || [], s = o.length ? o[0] : null, d = s && s.appearance ? s.appearance.class : "", h = d ? d.split(" ") : [], l = (g = s == null ? void 0 : s.contents) != null && g.length ? s == null ? void 0 : s.contents[0] : null, c = l && l.appearance ? l.appearance.class : "", m = c ? c.split(" ") : [], r = n.type === "component" ? (S = (R = e.parent) == null ? void 0 : R.parent) == null ? void 0 : S.schema : (u = e.parent) == null ? void 0 : u.schema, p = r && r.appearance && r.appearance.class || "", y = p ? p.split(" ") : [];
|
|
839
|
+
return {
|
|
840
|
+
componentClass: a,
|
|
841
|
+
componentClassList: i,
|
|
842
|
+
childContents: o,
|
|
843
|
+
firstLevelChildSchema: s,
|
|
844
|
+
firstLevelChildClass: d,
|
|
845
|
+
firstLevelChildClassList: h,
|
|
846
|
+
secondLevelChildSchema: l,
|
|
847
|
+
secondLevelChildClass: c,
|
|
848
|
+
secondLevelChildClassList: m,
|
|
849
|
+
parentSchema: r,
|
|
850
|
+
parentClass: p,
|
|
851
|
+
parentClassList: y
|
|
1438
852
|
};
|
|
1439
853
|
}
|
|
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 } = _e;
|
|
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
854
|
}
|
|
1460
|
-
function
|
|
1461
|
-
const n =
|
|
1462
|
-
|
|
1463
|
-
function d() {
|
|
855
|
+
function $e(t, e) {
|
|
856
|
+
const n = new x(), { canMove: a, canDelete: i } = n.getTemplateRule(t, e);
|
|
857
|
+
function o() {
|
|
1464
858
|
return !1;
|
|
1465
859
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return
|
|
1468
|
-
}
|
|
1469
|
-
function m() {
|
|
1470
|
-
return !r;
|
|
860
|
+
function s() {
|
|
861
|
+
return i;
|
|
1471
862
|
}
|
|
1472
|
-
function
|
|
1473
|
-
|
|
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;
|
|
863
|
+
function d() {
|
|
864
|
+
return a;
|
|
1493
865
|
}
|
|
1494
|
-
function
|
|
866
|
+
function h() {
|
|
1495
867
|
return !0;
|
|
1496
868
|
}
|
|
1497
|
-
return { canAccepts:
|
|
869
|
+
return { canAccepts: o, checkCanDeleteComponent: s, checkCanMoveComponent: d, hideNestedPaddingInDesginerView: h };
|
|
1498
870
|
}
|
|
1499
|
-
const
|
|
871
|
+
const Ne = /* @__PURE__ */ k({
|
|
1500
872
|
name: "FSplitterDesign",
|
|
1501
|
-
props:
|
|
873
|
+
props: A,
|
|
1502
874
|
emits: [],
|
|
1503
875
|
setup(t, e) {
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
d
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
useResizeHandleComposition: c
|
|
876
|
+
const n = C(), a = O("designer-host-service"), i = O("design-item-context"), o = $e(i, a), s = Z(n, i, o);
|
|
877
|
+
s.value.canNested = !1;
|
|
878
|
+
const d = J(n), {
|
|
879
|
+
horizontalResizeHandleStyle: h,
|
|
880
|
+
verticalResizeHandleStyle: l,
|
|
881
|
+
resizeOverlayStyle: c
|
|
882
|
+
} = d;
|
|
883
|
+
W("splitter", {
|
|
884
|
+
useResizeHandleComposition: d
|
|
1514
885
|
});
|
|
1515
|
-
const
|
|
886
|
+
const m = P(() => B({
|
|
1516
887
|
"f-splitter": !0
|
|
1517
|
-
}, t == null ? void 0 : t.customClass)),
|
|
1518
|
-
const
|
|
1519
|
-
"flex-direction": t.direction === "row" ? "
|
|
888
|
+
}, t == null ? void 0 : t.customClass)), r = P(() => {
|
|
889
|
+
const p = {
|
|
890
|
+
"flex-direction": t.direction === "row" ? "row" : "column"
|
|
1520
891
|
};
|
|
1521
|
-
return
|
|
892
|
+
return M(p, t == null ? void 0 : t.customStyle);
|
|
1522
893
|
});
|
|
1523
|
-
return
|
|
1524
|
-
n.value.componentInstance =
|
|
1525
|
-
}), e.expose(
|
|
1526
|
-
class:
|
|
894
|
+
return q(() => {
|
|
895
|
+
n.value.componentInstance = s;
|
|
896
|
+
}), e.expose(s.value), () => w("div", {
|
|
897
|
+
class: m.value,
|
|
1527
898
|
ref: n,
|
|
1528
|
-
style:
|
|
1529
|
-
}, [e.slots.default && e.slots.default(),
|
|
899
|
+
style: r.value
|
|
900
|
+
}, [e.slots.default && e.slots.default(), w("div", {
|
|
1530
901
|
class: "f-splitter-resize-overlay",
|
|
1531
|
-
style:
|
|
1532
|
-
}, null),
|
|
902
|
+
style: c.value
|
|
903
|
+
}, null), w("div", {
|
|
1533
904
|
class: "f-splitter-horizontal-resize-proxy",
|
|
1534
|
-
style:
|
|
1535
|
-
}, null),
|
|
905
|
+
style: h.value
|
|
906
|
+
}, null), w("div", {
|
|
1536
907
|
class: "f-splitter-vertical-resize-proxy",
|
|
1537
|
-
style:
|
|
908
|
+
style: l.value
|
|
1538
909
|
}, null)]);
|
|
1539
910
|
}
|
|
1540
911
|
});
|
|
1541
|
-
function
|
|
1542
|
-
function t(e) {
|
|
1543
|
-
var
|
|
912
|
+
function Ve() {
|
|
913
|
+
function t(e, n) {
|
|
914
|
+
var s;
|
|
1544
915
|
if (!e)
|
|
1545
916
|
return !1;
|
|
1546
|
-
const
|
|
1547
|
-
if (!
|
|
917
|
+
const a = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
|
|
918
|
+
if (!a)
|
|
1548
919
|
return !1;
|
|
1549
|
-
const
|
|
1550
|
-
|
|
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)
|
|
1553
|
-
return !1;
|
|
1554
|
-
}
|
|
1555
|
-
return e.controlType !== "field-set";
|
|
920
|
+
const i = a.schema.type, o = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
|
|
921
|
+
return !((e.controlCategory === "input" || e.controlType === "form-group") && ![L["response-layout-item"].type, L["response-form"].type].includes(i) || (e.controlType === L.tabs.type || e.controlType === L.section.type) && ((o == null ? void 0 : o.componentType) !== "frame" || ![L["content-container"].type, L["splitter-pane"].type, L["response-layout-item"].type].includes(i)));
|
|
1556
922
|
}
|
|
1557
923
|
return {
|
|
1558
924
|
basalDragulaRuleForContainer: t
|
|
1559
925
|
};
|
|
1560
926
|
}
|
|
1561
|
-
function
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
return !1;
|
|
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");
|
|
1569
|
-
}
|
|
1570
|
-
return !0;
|
|
927
|
+
function We(t, e) {
|
|
928
|
+
const n = new x(), { canAccept: a } = n.getTemplateRule(t, e);
|
|
929
|
+
function i(d) {
|
|
930
|
+
return Ve().basalDragulaRuleForContainer(d, e) ? a : !1;
|
|
1571
931
|
}
|
|
1572
|
-
function o(
|
|
1573
|
-
|
|
1574
|
-
if (m.position === "main" && p.includes("f-page-content-main")) {
|
|
1575
|
-
if (c.type === "tabs") {
|
|
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;
|
|
1582
|
-
}
|
|
1583
|
-
if (c.type === "section") {
|
|
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;
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
return c;
|
|
932
|
+
function o() {
|
|
933
|
+
return !1;
|
|
1591
934
|
}
|
|
1592
|
-
|
|
935
|
+
function s() {
|
|
936
|
+
return !1;
|
|
937
|
+
}
|
|
938
|
+
return {
|
|
939
|
+
canAccepts: i,
|
|
940
|
+
checkCanMoveComponent: o,
|
|
941
|
+
checkCanDeleteComponent: s
|
|
942
|
+
};
|
|
1593
943
|
}
|
|
1594
|
-
const
|
|
944
|
+
const qe = /* @__PURE__ */ k({
|
|
1595
945
|
name: "FSplitterPaneDesign",
|
|
1596
|
-
props:
|
|
946
|
+
props: F,
|
|
1597
947
|
emits: [],
|
|
1598
948
|
setup(t, e) {
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
const a = {
|
|
949
|
+
const n = C(), a = O("designer-host-service"), i = O("design-item-context"), o = We(i, a), s = Z(n, i, o);
|
|
950
|
+
s.value.styles = "padding:0;box-shadow:none;", s.value.canNested = !1, s.value.canMove = !1, s.value.canDelete = !1, q(() => {
|
|
951
|
+
n.value.componentInstance = s;
|
|
952
|
+
}), e.expose(s.value);
|
|
953
|
+
const d = O("splitter"), {
|
|
954
|
+
useResizeHandleComposition: h
|
|
955
|
+
} = d, l = Q(t, h), {
|
|
956
|
+
actualHeight: c,
|
|
957
|
+
actualWidth: m
|
|
958
|
+
} = l, r = C(t.position), p = P(() => {
|
|
959
|
+
const u = {
|
|
1611
960
|
"f-splitter-pane": !0,
|
|
1612
|
-
"f-splitter-pane-
|
|
1613
|
-
"
|
|
1614
|
-
"f-splitter-pane-main": l.value === "center",
|
|
961
|
+
"f-splitter-pane-main": r.value === "center",
|
|
962
|
+
"has-resize-bar": t.resizable,
|
|
1615
963
|
"f-component-splitter-pane": !0,
|
|
1616
964
|
"drag-container": !0
|
|
1617
965
|
};
|
|
1618
|
-
return
|
|
1619
|
-
}),
|
|
1620
|
-
const
|
|
1621
|
-
return (
|
|
1622
|
-
})
|
|
1623
|
-
|
|
966
|
+
return u["f-splitter-pane-" + r.value] = !0, B(u, t == null ? void 0 : t.customClass);
|
|
967
|
+
}), y = P(() => {
|
|
968
|
+
const u = {};
|
|
969
|
+
return (m.value && r.value === "left" || r.value === "right" || g.value.find((f) => f == "e") || g.value.find((f) => f == "w")) && (u.width = `${m.value}px`), (c.value && r.value === "bottom" || r.value === "top" || g.value.find((f) => f == "s") || g.value.find((f) => f == "n")) && (u.height = `${c.value}px`), M(u, t == null ? void 0 : t.customStyle);
|
|
970
|
+
}), g = P(() => t.resizeHandle ? t.resizeHandle.split(",").filter((u) => ["e", "n", "s", "w"].find((f) => f == u)) : []), R = P(() => ({
|
|
971
|
+
"f-splitter-resize-bar": !0,
|
|
972
|
+
"f-splitter-resize-bar-e": r.value === "left",
|
|
973
|
+
"f-splitter-resize-bar-n": r.value === "bottom",
|
|
974
|
+
"f-splitter-resize-bar-s": r.value === "top",
|
|
975
|
+
"f-splitter-resize-bar-w": r.value === "right"
|
|
976
|
+
}));
|
|
977
|
+
function S() {
|
|
978
|
+
return g.value.length > 0 ? g.value.map((u) => w("span", {
|
|
979
|
+
class: "f-splitter-resize-bar f-splitter-resize-bar-" + u
|
|
980
|
+
}, null)) : w("span", {
|
|
981
|
+
class: R.value
|
|
982
|
+
}, null);
|
|
983
|
+
}
|
|
984
|
+
return () => w("div", {
|
|
1624
985
|
ref: n,
|
|
1625
|
-
"data-dragref": `${
|
|
1626
|
-
class:
|
|
1627
|
-
style:
|
|
1628
|
-
}, [e.slots.default && e.slots.default()]);
|
|
986
|
+
"data-dragref": `${i.schema.id}-container`,
|
|
987
|
+
class: p.value,
|
|
988
|
+
style: y.value
|
|
989
|
+
}, [e.slots.default && e.slots.default(), t.resizable && S()]);
|
|
1629
990
|
}
|
|
1630
|
-
}),
|
|
991
|
+
}), Ue = {
|
|
1631
992
|
install(t) {
|
|
1632
|
-
t.component(
|
|
993
|
+
t.component(j.name, j), t.component(H.name, H);
|
|
1633
994
|
},
|
|
1634
|
-
register(t, e, n,
|
|
1635
|
-
t.splitter =
|
|
995
|
+
register(t, e, n, a) {
|
|
996
|
+
t.splitter = j, e.splitter = N, t["splitter-pane"] = H, e["splitter-pane"] = V;
|
|
1636
997
|
},
|
|
1637
998
|
registerDesigner(t, e, n) {
|
|
1638
|
-
t.splitter =
|
|
999
|
+
t.splitter = Ne, e.splitter = N, t["splitter-pane"] = qe, e["splitter-pane"] = V;
|
|
1639
1000
|
}
|
|
1640
1001
|
};
|
|
1641
1002
|
export {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1003
|
+
j as FSplitter,
|
|
1004
|
+
H as FSplitterPane,
|
|
1005
|
+
Ue as default,
|
|
1006
|
+
A as splitterProps,
|
|
1007
|
+
N as splitterPropsResolver
|
|
1647
1008
|
};
|