@farris/ui-vue 1.2.8 → 1.3.0
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 +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +38 -37
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- package/farris.all.umd.cjs +8 -8
- 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/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -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/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -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 +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- 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 +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- 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 +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- 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/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -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 Y, createVNode as T, inject as R, onMounted as _ } from "vue";
|
|
2
|
+
import { isPlainObject as x, cloneDeep as te } from "lodash-es";
|
|
3
3
|
import "bignumber.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const { properties: e, title: n } = t,
|
|
7
|
-
return
|
|
4
|
+
const J = {}, G = {};
|
|
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]) : te(e[m].default)), c), {});
|
|
7
|
+
return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
8
8
|
}
|
|
9
|
-
function $(t, e = {}) {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
9
|
+
function $(t, e = {}, n) {
|
|
10
|
+
const o = J[t];
|
|
11
|
+
if (o) {
|
|
12
|
+
let r = L(o);
|
|
13
|
+
const d = G[t];
|
|
14
|
+
return r = d ? d({ getSchemaByType: $ }, r, e, n) : r, r;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
function te(t, e) {
|
|
19
|
-
const n = F(e);
|
|
20
|
-
return Object.keys(t).reduce((s, r) => (s[r] && typeof s[r] == "object" ? Object.assign(s[r], t[r]) : s[r] = t[r], s), n), n;
|
|
21
|
-
}
|
|
22
18
|
function ne(t, e) {
|
|
23
|
-
|
|
19
|
+
const n = L(e);
|
|
20
|
+
return Object.keys(t).reduce((o, r) => (o[r] && x(o[r]) && x(t[r]) ? Object.assign(o[r], t[r]) : o[r] = t[r], o), n), n;
|
|
21
|
+
}
|
|
22
|
+
function oe(t, e) {
|
|
23
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
24
24
|
if (e.has(r)) {
|
|
25
25
|
const d = e.get(r);
|
|
26
26
|
if (typeof d == "string")
|
|
27
|
-
|
|
27
|
+
o[d] = t[r];
|
|
28
28
|
else {
|
|
29
|
-
const
|
|
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
37
|
function se(t, e, n = /* @__PURE__ */ new Map()) {
|
|
38
|
-
const
|
|
39
|
-
return
|
|
38
|
+
const o = ne(t, e);
|
|
39
|
+
return oe(o, n);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
function e(
|
|
43
|
-
if (typeof
|
|
44
|
-
return p
|
|
45
|
-
if (typeof
|
|
46
|
-
const b = Object.keys(
|
|
41
|
+
function re(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
47
|
if (b === "not")
|
|
48
|
-
return Number(p
|
|
48
|
+
return Number(u[p].length) !== Number(s);
|
|
49
49
|
if (b === "moreThan")
|
|
50
|
-
return Number(p
|
|
50
|
+
return Number(u[p].length) >= Number(s);
|
|
51
51
|
if (b === "lessThan")
|
|
52
|
-
return Number(p
|
|
52
|
+
return Number(u[p].length) <= Number(s);
|
|
53
53
|
}
|
|
54
54
|
return !1;
|
|
55
55
|
}
|
|
56
|
-
function n(
|
|
57
|
-
return p
|
|
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 r(
|
|
65
|
-
const
|
|
66
|
-
return typeof i == "number" ? [{ target:
|
|
67
|
-
if (
|
|
68
|
-
return { target:
|
|
69
|
-
const b =
|
|
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 d(
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const b = r(
|
|
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
|
|
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 d(
|
|
86
|
+
function m(p, i) {
|
|
87
|
+
return d(p).reduce((b, s) => b && c(s, i), !0);
|
|
88
88
|
}
|
|
89
|
-
function j(
|
|
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
93
|
return { parseValueSchema: j };
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
function
|
|
98
|
-
return
|
|
99
|
-
const
|
|
100
|
-
return Object.assign(j,
|
|
95
|
+
const ie = {}, ae = {};
|
|
96
|
+
re();
|
|
97
|
+
function Q(t, e, n = /* @__PURE__ */ new Map(), o = (c, m, j) => m, r = {}, d = (c) => c) {
|
|
98
|
+
return J[e.title] = e, G[e.title] = o, ie[e.title] = r, ae[e.title] = d, (c = {}) => {
|
|
99
|
+
const m = se(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
|
-
function
|
|
103
|
+
function U(t, e) {
|
|
104
104
|
return { customClass: e.class, customStyle: e.style };
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
["appearance",
|
|
106
|
+
const ce = /* @__PURE__ */ new Map([
|
|
107
|
+
["appearance", U]
|
|
108
108
|
]);
|
|
109
|
-
function
|
|
110
|
-
const
|
|
111
|
-
return
|
|
109
|
+
function le(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
|
-
function
|
|
116
|
-
const
|
|
117
|
-
return
|
|
115
|
+
function pe(t, e, n) {
|
|
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 ue(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" }), le(t, e), pe(t, e), e;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const fe = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-design.gitee.io/splitter.schema.json", ye = "splitter", be = "A Farris Container Component", me = "object", he = {
|
|
126
126
|
id: {
|
|
127
127
|
description: "The unique identifier for a splitter",
|
|
128
128
|
type: "string"
|
|
@@ -159,14 +159,14 @@ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-
|
|
|
159
159
|
"row"
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
|
-
},
|
|
163
|
-
$schema:
|
|
164
|
-
$id:
|
|
165
|
-
title:
|
|
166
|
-
description:
|
|
167
|
-
type:
|
|
168
|
-
properties:
|
|
169
|
-
},
|
|
162
|
+
}, ge = {
|
|
163
|
+
$schema: fe,
|
|
164
|
+
$id: de,
|
|
165
|
+
title: ye,
|
|
166
|
+
description: be,
|
|
167
|
+
type: me,
|
|
168
|
+
properties: he
|
|
169
|
+
}, ve = "splitter", je = "A Farris Container Component", Ce = "object", Pe = {
|
|
170
170
|
basic: {
|
|
171
171
|
description: "Basic Infomation",
|
|
172
172
|
title: "基本信息",
|
|
@@ -220,124 +220,124 @@ const ue = "https://json-schema.org/draft/2020-12/schema", fe = "https://farris-
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
},
|
|
224
|
-
title:
|
|
225
|
-
description:
|
|
226
|
-
type:
|
|
227
|
-
categories:
|
|
228
|
-
},
|
|
223
|
+
}, we = {
|
|
224
|
+
title: ve,
|
|
225
|
+
description: je,
|
|
226
|
+
type: Ce,
|
|
227
|
+
categories: Pe
|
|
228
|
+
}, V = {
|
|
229
229
|
customStyle: { type: String, default: "" },
|
|
230
230
|
customClass: { type: String, default: "" },
|
|
231
231
|
direction: { Type: String, default: "column" }
|
|
232
|
-
}, q =
|
|
233
|
-
function
|
|
234
|
-
const e =
|
|
232
|
+
}, q = Q(V, ge, ce, ue, we);
|
|
233
|
+
function Z(t) {
|
|
234
|
+
const e = P(-1), n = P(-1), o = P(0), r = P(0), d = P(!1), c = P(!1), m = S(() => ({
|
|
235
235
|
display: d.value ? "block" : "none",
|
|
236
|
-
left: `${
|
|
236
|
+
left: `${o.value}px`
|
|
237
237
|
})), j = S(() => ({
|
|
238
|
-
display:
|
|
238
|
+
display: c.value ? "block" : "none",
|
|
239
239
|
top: `${r.value}px`
|
|
240
|
-
})),
|
|
241
|
-
display:
|
|
240
|
+
})), p = S(() => ({
|
|
241
|
+
display: c.value || d.value ? "block" : "none"
|
|
242
242
|
}));
|
|
243
|
-
function i(
|
|
243
|
+
function i(u) {
|
|
244
244
|
const b = t.value;
|
|
245
245
|
if (b) {
|
|
246
|
-
const { left:
|
|
247
|
-
|
|
246
|
+
const { left: s } = b.getBoundingClientRect();
|
|
247
|
+
o.value = u.clientX - s;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function l(u) {
|
|
251
251
|
const b = t.value;
|
|
252
252
|
if (b) {
|
|
253
|
-
const { top:
|
|
254
|
-
r.value =
|
|
253
|
+
const { top: s } = b.getBoundingClientRect();
|
|
254
|
+
r.value = u.clientY - s;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
return {
|
|
258
|
-
horizontalResizeHandleStyle:
|
|
258
|
+
horizontalResizeHandleStyle: m,
|
|
259
259
|
verticalResizeHandleStyle: j,
|
|
260
|
-
resizeOverlayStyle:
|
|
260
|
+
resizeOverlayStyle: p,
|
|
261
261
|
showHorizontalResizeHandle: d,
|
|
262
|
-
showVerticalResizeHandle:
|
|
262
|
+
showVerticalResizeHandle: c,
|
|
263
263
|
horizontalResizeBarPosition: e,
|
|
264
264
|
verticalResizeBarPosition: n,
|
|
265
265
|
verticalResizeHandleOffset: r,
|
|
266
|
-
horizontalResizeHandleOffset:
|
|
266
|
+
horizontalResizeHandleOffset: o,
|
|
267
267
|
draggingHorizontalResizeHandle: i,
|
|
268
|
-
draggingVerticalResizeHandle:
|
|
268
|
+
draggingVerticalResizeHandle: l
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
|
-
const
|
|
272
|
-
function
|
|
271
|
+
const ze = ["moz", "ms", "webkit"];
|
|
272
|
+
function Oe() {
|
|
273
273
|
let t = 0;
|
|
274
274
|
return (e) => {
|
|
275
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
276
|
-
e(n +
|
|
277
|
-
},
|
|
278
|
-
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;
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Ae() {
|
|
282
282
|
if (typeof window > "u")
|
|
283
283
|
return () => 0;
|
|
284
284
|
if (window.requestAnimationFrame)
|
|
285
285
|
return window.requestAnimationFrame.bind(window);
|
|
286
|
-
const t =
|
|
287
|
-
return t ? window[`${t}RequestAnimationFrame`] :
|
|
288
|
-
}
|
|
289
|
-
Oe();
|
|
290
|
-
function M(t, e) {
|
|
291
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((s, r) => (r && (s[r] = !0), s), t), t;
|
|
286
|
+
const t = ze.filter((e) => `${e}RequestAnimationFrame` in window)[0];
|
|
287
|
+
return t ? window[`${t}RequestAnimationFrame`] : Oe();
|
|
292
288
|
}
|
|
289
|
+
Ae();
|
|
293
290
|
function H(t, e) {
|
|
294
|
-
return ((e == null ? void 0 : e.split("
|
|
291
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((o, r) => (r && (o[r] = !0), o), t), t;
|
|
292
|
+
}
|
|
293
|
+
function B(t, e) {
|
|
294
|
+
return ((e == null ? void 0 : e.split(";")) || []).reduce((o, r) => {
|
|
295
295
|
if (r) {
|
|
296
296
|
const d = r.split(":");
|
|
297
|
-
|
|
297
|
+
o[d[0]] = d[1];
|
|
298
298
|
}
|
|
299
|
-
return
|
|
299
|
+
return o;
|
|
300
300
|
}, t), t;
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const N = /* @__PURE__ */ M({
|
|
303
303
|
name: "FSplitter",
|
|
304
|
-
props:
|
|
304
|
+
props: V,
|
|
305
305
|
emits: [],
|
|
306
306
|
setup(t, e) {
|
|
307
|
-
const n =
|
|
307
|
+
const n = P(), o = Z(n), {
|
|
308
308
|
horizontalResizeHandleStyle: r,
|
|
309
309
|
verticalResizeHandleStyle: d,
|
|
310
|
-
resizeOverlayStyle:
|
|
311
|
-
} =
|
|
312
|
-
|
|
313
|
-
useResizeHandleComposition:
|
|
310
|
+
resizeOverlayStyle: c
|
|
311
|
+
} = o;
|
|
312
|
+
Y("splitter", {
|
|
313
|
+
useResizeHandleComposition: o
|
|
314
314
|
});
|
|
315
|
-
const
|
|
315
|
+
const m = S(() => H({
|
|
316
316
|
"f-splitter": !0
|
|
317
317
|
}, t == null ? void 0 : t.customClass)), j = S(() => {
|
|
318
|
-
const
|
|
318
|
+
const p = {
|
|
319
319
|
"flex-direction": t.direction === "row" ? "column" : "row"
|
|
320
320
|
};
|
|
321
|
-
return
|
|
321
|
+
return B(p, t == null ? void 0 : t.customStyle);
|
|
322
322
|
});
|
|
323
|
-
return () =>
|
|
324
|
-
class:
|
|
323
|
+
return () => T("div", {
|
|
324
|
+
class: m.value,
|
|
325
325
|
ref: n,
|
|
326
326
|
style: j.value
|
|
327
|
-
}, [e.slots.default && e.slots.default(),
|
|
327
|
+
}, [e.slots.default && e.slots.default(), T("div", {
|
|
328
328
|
class: "f-splitter-resize-overlay",
|
|
329
|
-
style:
|
|
330
|
-
}, null),
|
|
329
|
+
style: c.value
|
|
330
|
+
}, null), T("div", {
|
|
331
331
|
class: "f-splitter-horizontal-resize-proxy",
|
|
332
332
|
style: r.value
|
|
333
|
-
}, null),
|
|
333
|
+
}, null), T("div", {
|
|
334
334
|
class: "f-splitter-vertical-resize-proxy",
|
|
335
335
|
style: d.value
|
|
336
336
|
}, null)]);
|
|
337
337
|
}
|
|
338
338
|
}), Se = /* @__PURE__ */ new Map([
|
|
339
|
-
["appearance",
|
|
340
|
-
]),
|
|
339
|
+
["appearance", U]
|
|
340
|
+
]), Te = "https://json-schema.org/draft/2020-12/schema", Ee = "https://farris-design.gitee.io/splitter-pane.schema.json", $e = "splitter-pane", De = "A Farris Container Component", Re = "object", Me = {
|
|
341
341
|
id: {
|
|
342
342
|
description: "The unique identifier for a splitter",
|
|
343
343
|
type: "string"
|
|
@@ -413,14 +413,14 @@ const B = /* @__PURE__ */ R({
|
|
|
413
413
|
type: "number",
|
|
414
414
|
default: !0
|
|
415
415
|
}
|
|
416
|
-
},
|
|
417
|
-
$schema:
|
|
418
|
-
$id:
|
|
419
|
-
title:
|
|
420
|
-
description:
|
|
421
|
-
type:
|
|
422
|
-
properties:
|
|
423
|
-
},
|
|
416
|
+
}, He = {
|
|
417
|
+
$schema: Te,
|
|
418
|
+
$id: Ee,
|
|
419
|
+
title: $e,
|
|
420
|
+
description: De,
|
|
421
|
+
type: Re,
|
|
422
|
+
properties: Me
|
|
423
|
+
}, Be = "splitter-pane", Ne = "A Farris Container Component", ke = "object", Fe = {
|
|
424
424
|
basic: {
|
|
425
425
|
description: "Basic Infomation",
|
|
426
426
|
title: "基本信息",
|
|
@@ -516,12 +516,12 @@ const B = /* @__PURE__ */ R({
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
},
|
|
520
|
-
title:
|
|
521
|
-
description:
|
|
522
|
-
type:
|
|
523
|
-
categories:
|
|
524
|
-
},
|
|
519
|
+
}, Le = {
|
|
520
|
+
title: Be,
|
|
521
|
+
description: Ne,
|
|
522
|
+
type: ke,
|
|
523
|
+
categories: Fe
|
|
524
|
+
}, W = {
|
|
525
525
|
customClass: { type: String, defaut: "" },
|
|
526
526
|
customStyle: { type: String, default: "" },
|
|
527
527
|
/** 记录原始定义宽度 */
|
|
@@ -540,78 +540,78 @@ const B = /* @__PURE__ */ R({
|
|
|
540
540
|
minWidth: { type: Number, default: 200 },
|
|
541
541
|
/** 面板最小高度 */
|
|
542
542
|
minHeight: { type: Number, default: 200 }
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
}, X = Q(
|
|
544
|
+
W,
|
|
545
|
+
He,
|
|
546
546
|
Se,
|
|
547
547
|
void 0,
|
|
548
|
-
|
|
548
|
+
Le
|
|
549
549
|
);
|
|
550
|
-
function
|
|
551
|
-
const n =
|
|
550
|
+
function K(t, e) {
|
|
551
|
+
const n = P(t.width), o = P(t.height), {
|
|
552
552
|
horizontalResizeBarPosition: r,
|
|
553
553
|
horizontalResizeHandleOffset: d,
|
|
554
|
-
showHorizontalResizeHandle:
|
|
555
|
-
showVerticalResizeHandle:
|
|
554
|
+
showHorizontalResizeHandle: c,
|
|
555
|
+
showVerticalResizeHandle: m,
|
|
556
556
|
verticalResizeBarPosition: j,
|
|
557
|
-
verticalResizeHandleOffset:
|
|
557
|
+
verticalResizeHandleOffset: p,
|
|
558
558
|
draggingHorizontalResizeHandle: i,
|
|
559
|
-
draggingVerticalResizeHandle:
|
|
559
|
+
draggingVerticalResizeHandle: l
|
|
560
560
|
} = e;
|
|
561
|
-
let
|
|
562
|
-
function a(
|
|
563
|
-
if ((
|
|
564
|
-
const { left:
|
|
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
565
|
n.value = t.minWidth > 0 ? Math.max(t.minWidth, y) : y;
|
|
566
566
|
}
|
|
567
|
-
if ((
|
|
568
|
-
const { top:
|
|
569
|
-
|
|
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;
|
|
570
570
|
}
|
|
571
|
-
d.value = 0,
|
|
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;
|
|
572
572
|
}
|
|
573
|
-
function f(
|
|
574
|
-
if (
|
|
575
|
-
const { left: y } =
|
|
576
|
-
d.value =
|
|
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";
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
581
|
-
const { top: y } =
|
|
582
|
-
|
|
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";
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
return {
|
|
586
586
|
actualWidth: n,
|
|
587
|
-
actualHeight:
|
|
587
|
+
actualHeight: o,
|
|
588
588
|
onClickSplitterHorizontalResizeBar: f,
|
|
589
|
-
onClickSplitterVerticalResizeBar:
|
|
589
|
+
onClickSplitterVerticalResizeBar: h
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const k = /* @__PURE__ */ M({
|
|
593
593
|
name: "FSplitterPane",
|
|
594
|
-
props:
|
|
594
|
+
props: W,
|
|
595
595
|
emits: [],
|
|
596
596
|
setup(t, e) {
|
|
597
|
-
const n =
|
|
597
|
+
const n = P(), o = R("splitter"), {
|
|
598
598
|
useResizeHandleComposition: r
|
|
599
|
-
} =
|
|
600
|
-
actualHeight:
|
|
601
|
-
actualWidth:
|
|
599
|
+
} = o, d = K(t, r), {
|
|
600
|
+
actualHeight: c,
|
|
601
|
+
actualWidth: m,
|
|
602
602
|
onClickSplitterHorizontalResizeBar: j,
|
|
603
|
-
onClickSplitterVerticalResizeBar:
|
|
604
|
-
} = d, i =
|
|
603
|
+
onClickSplitterVerticalResizeBar: p
|
|
604
|
+
} = d, i = P(t.position), l = S(() => {
|
|
605
605
|
const a = {
|
|
606
606
|
"f-splitter-pane": !0,
|
|
607
607
|
"f-splitter-pane-column": i.value === "left" || i.value === "right",
|
|
608
608
|
"f-splitter-pane-row": i.value === "bottom" || i.value === "top",
|
|
609
609
|
"f-splitter-pane-main": i.value === "center"
|
|
610
610
|
};
|
|
611
|
-
return
|
|
612
|
-
}),
|
|
611
|
+
return H(a, t == null ? void 0 : t.customClass);
|
|
612
|
+
}), u = S(() => {
|
|
613
613
|
const a = {};
|
|
614
|
-
return (
|
|
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
615
|
}), b = S(() => ({
|
|
616
616
|
"f-splitter-resize-bar": !0,
|
|
617
617
|
"f-splitter-resize-bar-e": i.value === "left",
|
|
@@ -619,54 +619,54 @@ const N = /* @__PURE__ */ R({
|
|
|
619
619
|
"f-splitter-resize-bar-s": i.value === "top",
|
|
620
620
|
"f-splitter-resize-bar-w": i.value === "right"
|
|
621
621
|
}));
|
|
622
|
-
function
|
|
623
|
-
(f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") &&
|
|
622
|
+
function s(a, f) {
|
|
623
|
+
(f === "left" || f === "right") && j(a, f, n.value), (f === "top" || f === "bottom") && p(a, f, n.value);
|
|
624
624
|
}
|
|
625
|
-
return () =>
|
|
625
|
+
return () => T("div", {
|
|
626
626
|
ref: n,
|
|
627
|
-
class:
|
|
628
|
-
style:
|
|
629
|
-
}, [e.slots.default && e.slots.default(),
|
|
627
|
+
class: l.value,
|
|
628
|
+
style: u.value
|
|
629
|
+
}, [e.slots.default && e.slots.default(), T("span", {
|
|
630
630
|
class: b.value,
|
|
631
|
-
onMousedown: (a) =>
|
|
631
|
+
onMousedown: (a) => s(a, i.value)
|
|
632
632
|
}, null)]);
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
|
-
function
|
|
635
|
+
function I(t, e, n) {
|
|
636
636
|
var O;
|
|
637
|
-
function
|
|
637
|
+
function o() {
|
|
638
638
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
639
639
|
}
|
|
640
|
-
|
|
641
|
-
const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "",
|
|
642
|
-
function
|
|
640
|
+
o();
|
|
641
|
+
const r = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", c = P();
|
|
642
|
+
function m() {
|
|
643
643
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
644
644
|
}
|
|
645
645
|
function j() {
|
|
646
646
|
return !1;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function p() {
|
|
649
649
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
650
650
|
}
|
|
651
651
|
function i() {
|
|
652
652
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function l(y) {
|
|
655
655
|
if (!y || !y.value)
|
|
656
656
|
return null;
|
|
657
657
|
if (y.value.schema && y.value.schema.type === "component")
|
|
658
658
|
return y.value;
|
|
659
|
-
const w =
|
|
660
|
-
return
|
|
659
|
+
const w = P(y == null ? void 0 : y.value.parent), z = l(w);
|
|
660
|
+
return z || null;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const { componentInstance: w, designerItemElementRef:
|
|
664
|
-
return !w || !w.value ? null : w.value.canMove ?
|
|
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);
|
|
665
665
|
}
|
|
666
666
|
function b(y) {
|
|
667
667
|
return !!n && n.canAccepts(y);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function s() {
|
|
670
670
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
671
671
|
}
|
|
672
672
|
function a() {
|
|
@@ -674,31 +674,31 @@ function K(t, e, n) {
|
|
|
674
674
|
function f(y, w) {
|
|
675
675
|
w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
const { componentType:
|
|
679
|
-
let
|
|
680
|
-
n && n.onResolveNewComponentSchema && (
|
|
681
|
-
const
|
|
682
|
-
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;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
let
|
|
688
|
-
n && n.onAcceptNewChildElement && (
|
|
689
|
-
const
|
|
690
|
-
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 ee = z.toLowerCase().replace("-", "_");
|
|
690
|
+
return E && !E.id && E.type === z && (E.id = `${ee}_${Math.random().toString().slice(2, 6)}`), E;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function g(y) {
|
|
693
693
|
}
|
|
694
694
|
function C(...y) {
|
|
695
695
|
if (n && n.getPropsConfig)
|
|
696
696
|
return n.getPropsConfig(...y);
|
|
697
697
|
}
|
|
698
|
-
return
|
|
699
|
-
canMove:
|
|
698
|
+
return c.value = {
|
|
699
|
+
canMove: m(),
|
|
700
700
|
canSelectParent: j(),
|
|
701
|
-
canDelete:
|
|
701
|
+
canDelete: p(),
|
|
702
702
|
canNested: !i(),
|
|
703
703
|
contents: e == null ? void 0 : e.schema.contents,
|
|
704
704
|
elementRef: t,
|
|
@@ -707,21 +707,21 @@ function K(t, e, n) {
|
|
|
707
707
|
styles: r,
|
|
708
708
|
designerClass: d,
|
|
709
709
|
canAccepts: b,
|
|
710
|
-
getBelongedComponentInstance:
|
|
711
|
-
getDraggableDesignItemElement:
|
|
712
|
-
getDraggingDisplayText:
|
|
710
|
+
getBelongedComponentInstance: l,
|
|
711
|
+
getDraggableDesignItemElement: u,
|
|
712
|
+
getDraggingDisplayText: s,
|
|
713
713
|
getPropConfig: C,
|
|
714
714
|
getDragScopeElement: a,
|
|
715
715
|
onAcceptMovedChildElement: f,
|
|
716
|
-
onAcceptNewChildElement:
|
|
717
|
-
onChildElementMovedOut:
|
|
718
|
-
addNewChildComponentSchema:
|
|
719
|
-
updateDragAndDropRules:
|
|
720
|
-
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved ||
|
|
721
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
722
|
-
},
|
|
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)
|
|
722
|
+
}, c;
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Ve = "https://json-schema.org/draft/2020-12/schema", We = "https://farris-design.gitee.io/dragging-rules.schema.json", xe = "Dragging Rules", qe = "The rules of designer canvas", Xe = "object", Ye = {
|
|
725
725
|
"f-page": {
|
|
726
726
|
description: "The root class of page designed by farris.",
|
|
727
727
|
type: "object",
|
|
@@ -1140,6 +1140,80 @@ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-
|
|
|
1140
1140
|
"f-list-nav-left": {
|
|
1141
1141
|
description: "",
|
|
1142
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
|
+
}
|
|
1143
1217
|
}
|
|
1144
1218
|
}
|
|
1145
1219
|
}
|
|
@@ -1285,181 +1359,180 @@ const Le = "https://json-schema.org/draft/2020-12/schema", Ve = "https://farris-
|
|
|
1285
1359
|
description: "",
|
|
1286
1360
|
type: "object"
|
|
1287
1361
|
}
|
|
1288
|
-
},
|
|
1289
|
-
$schema:
|
|
1290
|
-
$id:
|
|
1291
|
-
title:
|
|
1362
|
+
}, _e = {
|
|
1363
|
+
$schema: Ve,
|
|
1364
|
+
$id: We,
|
|
1365
|
+
title: xe,
|
|
1292
1366
|
description: qe,
|
|
1293
|
-
type:
|
|
1294
|
-
properties:
|
|
1295
|
-
|
|
1296
|
-
}, k = /* @__PURE__ */ new Map();
|
|
1367
|
+
type: Xe,
|
|
1368
|
+
properties: Ye
|
|
1369
|
+
}, F = /* @__PURE__ */ new Map();
|
|
1297
1370
|
function Je() {
|
|
1298
|
-
function t(
|
|
1299
|
-
var
|
|
1371
|
+
function t(s, a, f, h) {
|
|
1372
|
+
var v;
|
|
1300
1373
|
if (typeof f == "number")
|
|
1301
|
-
return ((
|
|
1374
|
+
return ((v = h[s]) == null ? void 0 : v.length) === f;
|
|
1302
1375
|
if (typeof f == "object") {
|
|
1303
|
-
const
|
|
1304
|
-
if (
|
|
1305
|
-
return Number(
|
|
1306
|
-
if (
|
|
1307
|
-
return Number(
|
|
1308
|
-
if (
|
|
1309
|
-
return Number(
|
|
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);
|
|
1310
1383
|
}
|
|
1311
1384
|
return !1;
|
|
1312
1385
|
}
|
|
1313
|
-
function e(
|
|
1314
|
-
return typeof f == "boolean" ?
|
|
1386
|
+
function e(s, a, f, h) {
|
|
1387
|
+
return typeof f == "boolean" ? h.childrenClassList.includes(a) === !!f : !1;
|
|
1315
1388
|
}
|
|
1316
|
-
function n(
|
|
1317
|
-
return typeof f == "boolean" ?
|
|
1389
|
+
function n(s, a, f, h) {
|
|
1390
|
+
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1318
1391
|
}
|
|
1319
|
-
function s
|
|
1320
|
-
return typeof f == "boolean" ?
|
|
1392
|
+
function o(s, a, f, h) {
|
|
1393
|
+
return typeof f == "boolean" ? h.parentClassList.includes(a) === !!f : !1;
|
|
1321
1394
|
}
|
|
1322
1395
|
const r = /* @__PURE__ */ new Map([
|
|
1323
1396
|
["length", t],
|
|
1324
1397
|
["hasChildren", e],
|
|
1325
|
-
["hasSibling",
|
|
1398
|
+
["hasSibling", o],
|
|
1326
1399
|
["hasParent", n]
|
|
1327
1400
|
]);
|
|
1328
|
-
function d(
|
|
1329
|
-
const f =
|
|
1330
|
-
return typeof a == "number" ? [{ target: f, operator: "length", param: null, value: Number(a) }] : typeof a == "object" ? Object.keys(a).map((
|
|
1331
|
-
if (
|
|
1332
|
-
return { target: f, operator: "length", param: null, value: a[
|
|
1333
|
-
const
|
|
1334
|
-
return { target: f, operator:
|
|
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 };
|
|
1335
1408
|
}) : [];
|
|
1336
1409
|
}
|
|
1337
|
-
function
|
|
1338
|
-
if (r.has(
|
|
1339
|
-
const f = r.get(
|
|
1340
|
-
return f && f(
|
|
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;
|
|
1341
1414
|
}
|
|
1342
1415
|
return !1;
|
|
1343
1416
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return Object.keys(
|
|
1346
|
-
const O = d(C,
|
|
1347
|
-
return
|
|
1348
|
-
}, []).reduce((
|
|
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);
|
|
1349
1422
|
}
|
|
1350
|
-
function j(
|
|
1351
|
-
const f = Object.keys(
|
|
1352
|
-
return
|
|
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);
|
|
1353
1426
|
}
|
|
1354
|
-
function
|
|
1355
|
-
const f =
|
|
1427
|
+
function p(s, a) {
|
|
1428
|
+
const f = s.const;
|
|
1356
1429
|
return f ? typeof f == "boolean" ? f : typeof f == "object" ? j(f, a) : !1 : !1;
|
|
1357
1430
|
}
|
|
1358
|
-
function i(
|
|
1431
|
+
function i(s) {
|
|
1359
1432
|
return (a) => {
|
|
1360
1433
|
const f = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1361
|
-
return
|
|
1362
|
-
const
|
|
1363
|
-
return
|
|
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;
|
|
1364
1437
|
}, f), f;
|
|
1365
1438
|
};
|
|
1366
1439
|
}
|
|
1367
|
-
function
|
|
1440
|
+
function l(s, a, f) {
|
|
1368
1441
|
if (a.type === "object" && a.properties) {
|
|
1369
|
-
const { rules:
|
|
1370
|
-
f.set(
|
|
1371
|
-
(
|
|
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)
|
|
1372
1445
|
);
|
|
1373
1446
|
}
|
|
1374
1447
|
}
|
|
1375
|
-
function
|
|
1376
|
-
const { properties:
|
|
1377
|
-
Object.keys(
|
|
1378
|
-
|
|
1448
|
+
function u() {
|
|
1449
|
+
const { properties: s } = _e;
|
|
1450
|
+
Object.keys(s).forEach((a) => {
|
|
1451
|
+
l(a, s[a], F);
|
|
1379
1452
|
});
|
|
1380
1453
|
}
|
|
1381
|
-
function b(
|
|
1454
|
+
function b(s, a) {
|
|
1382
1455
|
const f = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1383
|
-
return
|
|
1456
|
+
return F.has(s) ? F.get(s)(a) : f;
|
|
1384
1457
|
}
|
|
1385
|
-
return
|
|
1458
|
+
return u(), { getRuleValue: b };
|
|
1386
1459
|
}
|
|
1387
1460
|
function Ge(t, e) {
|
|
1388
1461
|
const n = Je();
|
|
1389
|
-
let
|
|
1462
|
+
let o, r = !1;
|
|
1390
1463
|
function d() {
|
|
1391
1464
|
return !1;
|
|
1392
1465
|
}
|
|
1393
|
-
function
|
|
1466
|
+
function c() {
|
|
1394
1467
|
return !r;
|
|
1395
1468
|
}
|
|
1396
|
-
function
|
|
1469
|
+
function m() {
|
|
1397
1470
|
return !r;
|
|
1398
1471
|
}
|
|
1399
1472
|
function j() {
|
|
1400
1473
|
r = !1;
|
|
1401
|
-
const i = t,
|
|
1402
|
-
const
|
|
1403
|
-
return y.push(...
|
|
1404
|
-
}, []) : [],
|
|
1405
|
-
|
|
1406
|
-
componentClass:
|
|
1407
|
-
componentClassList:
|
|
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,
|
|
1408
1481
|
childContents: b,
|
|
1409
|
-
firstChildContent:
|
|
1482
|
+
firstChildContent: s,
|
|
1410
1483
|
firstChildClass: a,
|
|
1411
1484
|
firstChildClassList: f,
|
|
1412
|
-
parent:
|
|
1413
|
-
parentClass:
|
|
1485
|
+
parent: v,
|
|
1486
|
+
parentClass: g,
|
|
1414
1487
|
parentClassList: C,
|
|
1415
1488
|
children: b,
|
|
1416
|
-
childrenClassList:
|
|
1489
|
+
childrenClassList: h
|
|
1417
1490
|
};
|
|
1418
|
-
const { fixed: O } = n.getRuleValue(
|
|
1491
|
+
const { fixed: O } = n.getRuleValue(u[0], o);
|
|
1419
1492
|
return r = O, !0;
|
|
1420
1493
|
}
|
|
1421
|
-
function
|
|
1494
|
+
function p() {
|
|
1422
1495
|
return !0;
|
|
1423
1496
|
}
|
|
1424
|
-
return { canAccepts: d, checkCanDeleteComponent:
|
|
1497
|
+
return { canAccepts: d, checkCanDeleteComponent: c, checkCanMoveComponent: m, resolveComponentContext: j, hideNestedPaddingInDesginerView: p };
|
|
1425
1498
|
}
|
|
1426
|
-
const Qe = /* @__PURE__ */
|
|
1499
|
+
const Qe = /* @__PURE__ */ M({
|
|
1427
1500
|
name: "FSplitterDesign",
|
|
1428
|
-
props:
|
|
1501
|
+
props: V,
|
|
1429
1502
|
emits: [],
|
|
1430
1503
|
setup(t, e) {
|
|
1431
|
-
var
|
|
1432
|
-
const n =
|
|
1504
|
+
var u;
|
|
1505
|
+
const n = P(), o = R("design-item-context"), r = Ge(o.schema, (u = o.parent) == null ? void 0 : u.schema), d = I(n, o, r);
|
|
1433
1506
|
d.value.canNested = !1;
|
|
1434
|
-
const
|
|
1435
|
-
horizontalResizeHandleStyle:
|
|
1507
|
+
const c = Z(n), {
|
|
1508
|
+
horizontalResizeHandleStyle: m,
|
|
1436
1509
|
verticalResizeHandleStyle: j,
|
|
1437
|
-
resizeOverlayStyle:
|
|
1438
|
-
} =
|
|
1439
|
-
|
|
1440
|
-
useResizeHandleComposition:
|
|
1510
|
+
resizeOverlayStyle: p
|
|
1511
|
+
} = c;
|
|
1512
|
+
Y("splitter", {
|
|
1513
|
+
useResizeHandleComposition: c
|
|
1441
1514
|
});
|
|
1442
|
-
const i = S(() =>
|
|
1515
|
+
const i = S(() => H({
|
|
1443
1516
|
"f-splitter": !0
|
|
1444
|
-
}, t == null ? void 0 : t.customClass)),
|
|
1517
|
+
}, t == null ? void 0 : t.customClass)), l = S(() => {
|
|
1445
1518
|
const b = {
|
|
1446
1519
|
"flex-direction": t.direction === "row" ? "column" : "row"
|
|
1447
1520
|
};
|
|
1448
|
-
return
|
|
1521
|
+
return B(b, t == null ? void 0 : t.customStyle);
|
|
1449
1522
|
});
|
|
1450
|
-
return
|
|
1523
|
+
return _(() => {
|
|
1451
1524
|
n.value.componentInstance = d;
|
|
1452
|
-
}), e.expose(d.value), () =>
|
|
1525
|
+
}), e.expose(d.value), () => T("div", {
|
|
1453
1526
|
class: i.value,
|
|
1454
1527
|
ref: n,
|
|
1455
|
-
style: c.value
|
|
1456
|
-
}, [e.slots.default && e.slots.default(), A("div", {
|
|
1457
|
-
class: "f-splitter-resize-overlay",
|
|
1458
1528
|
style: l.value
|
|
1459
|
-
},
|
|
1529
|
+
}, [e.slots.default && e.slots.default(), T("div", {
|
|
1530
|
+
class: "f-splitter-resize-overlay",
|
|
1531
|
+
style: p.value
|
|
1532
|
+
}, null), T("div", {
|
|
1460
1533
|
class: "f-splitter-horizontal-resize-proxy",
|
|
1461
|
-
style:
|
|
1462
|
-
}, null),
|
|
1534
|
+
style: m.value
|
|
1535
|
+
}, null), T("div", {
|
|
1463
1536
|
class: "f-splitter-vertical-resize-proxy",
|
|
1464
1537
|
style: j.value
|
|
1465
1538
|
}, null)]);
|
|
@@ -1473,10 +1546,10 @@ function Ue() {
|
|
|
1473
1546
|
const n = ((r = e.targetContainer) == null ? void 0 : r.componentInstance) && e.targetContainer.componentInstance.value;
|
|
1474
1547
|
if (!n)
|
|
1475
1548
|
return !1;
|
|
1476
|
-
const
|
|
1549
|
+
const o = (d = n.schema.appearance) == null ? void 0 : d.class;
|
|
1477
1550
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
1478
|
-
const
|
|
1479
|
-
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)
|
|
1480
1553
|
return !1;
|
|
1481
1554
|
}
|
|
1482
1555
|
return e.controlType !== "field-set";
|
|
@@ -1491,84 +1564,84 @@ function Ze(t, e) {
|
|
|
1491
1564
|
if (!Ue().basalDragulaRuleForContainer(r))
|
|
1492
1565
|
return !1;
|
|
1493
1566
|
if (((((j = t.appearance) == null ? void 0 : j.class) || "").split(" ") || []).includes("f-page-content-nav")) {
|
|
1494
|
-
const
|
|
1495
|
-
return !(
|
|
1567
|
+
const p = t.contents && t.contents[0];
|
|
1568
|
+
return !(p && p.type === "component");
|
|
1496
1569
|
}
|
|
1497
1570
|
return !0;
|
|
1498
1571
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const
|
|
1501
|
-
if (
|
|
1502
|
-
if (
|
|
1503
|
-
const i =
|
|
1504
|
-
i.unshift("f-tabs-in-card"),
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1508
|
-
return
|
|
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")) {
|
|
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;
|
|
1509
1582
|
}
|
|
1510
|
-
if (
|
|
1511
|
-
const i =
|
|
1512
|
-
i.unshift("f-section-in-main"),
|
|
1513
|
-
const
|
|
1514
|
-
return
|
|
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;
|
|
1515
1588
|
}
|
|
1516
1589
|
}
|
|
1517
|
-
return
|
|
1590
|
+
return c;
|
|
1518
1591
|
}
|
|
1519
|
-
return { canAccepts: n, onAcceptNewChildElement:
|
|
1592
|
+
return { canAccepts: n, onAcceptNewChildElement: o };
|
|
1520
1593
|
}
|
|
1521
|
-
const Ke = /* @__PURE__ */
|
|
1594
|
+
const Ke = /* @__PURE__ */ M({
|
|
1522
1595
|
name: "FSplitterPaneDesign",
|
|
1523
|
-
props:
|
|
1596
|
+
props: W,
|
|
1524
1597
|
emits: [],
|
|
1525
1598
|
setup(t, e) {
|
|
1526
|
-
var
|
|
1527
|
-
const n =
|
|
1528
|
-
d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1,
|
|
1599
|
+
var s;
|
|
1600
|
+
const n = P(), o = R("design-item-context"), r = Ze(o.schema, (s = o.parent) == null ? void 0 : s.schema), d = I(n, o, r);
|
|
1601
|
+
d.value.styles = "padding:0;box-shadow:none;", d.value.canNested = !1, d.value.canMove = !1, d.value.canDelete = !1, _(() => {
|
|
1529
1602
|
n.value.componentInstance = d;
|
|
1530
1603
|
}), e.expose(d.value);
|
|
1531
|
-
const
|
|
1532
|
-
useResizeHandleComposition:
|
|
1533
|
-
} =
|
|
1534
|
-
actualHeight:
|
|
1604
|
+
const c = R("splitter"), {
|
|
1605
|
+
useResizeHandleComposition: m
|
|
1606
|
+
} = c, j = K(t, m), {
|
|
1607
|
+
actualHeight: p,
|
|
1535
1608
|
actualWidth: i
|
|
1536
|
-
} = j,
|
|
1609
|
+
} = j, l = P(t.position), u = S(() => {
|
|
1537
1610
|
const a = {
|
|
1538
1611
|
"f-splitter-pane": !0,
|
|
1539
|
-
"f-splitter-pane-column":
|
|
1540
|
-
"f-splitter-pane-row":
|
|
1541
|
-
"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",
|
|
1542
1615
|
"f-component-splitter-pane": !0,
|
|
1543
1616
|
"drag-container": !0
|
|
1544
1617
|
};
|
|
1545
|
-
return
|
|
1618
|
+
return H(a, t == null ? void 0 : t.customClass);
|
|
1546
1619
|
}), b = S(() => {
|
|
1547
1620
|
const a = {};
|
|
1548
|
-
return (i.value &&
|
|
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);
|
|
1549
1622
|
});
|
|
1550
|
-
return () =>
|
|
1623
|
+
return () => T("div", {
|
|
1551
1624
|
ref: n,
|
|
1552
|
-
"data-dragref": `${
|
|
1553
|
-
class:
|
|
1625
|
+
"data-dragref": `${o.schema.id}-container`,
|
|
1626
|
+
class: u.value,
|
|
1554
1627
|
style: b.value
|
|
1555
1628
|
}, [e.slots.default && e.slots.default()]);
|
|
1556
1629
|
}
|
|
1557
1630
|
}), nt = {
|
|
1558
1631
|
install(t) {
|
|
1559
|
-
t.component(
|
|
1632
|
+
t.component(N.name, N), t.component(k.name, k);
|
|
1560
1633
|
},
|
|
1561
|
-
register(t, e, n,
|
|
1562
|
-
t.splitter =
|
|
1634
|
+
register(t, e, n, o) {
|
|
1635
|
+
t.splitter = N, e.splitter = q, t["splitter-pane"] = k, e["splitter-pane"] = X;
|
|
1563
1636
|
},
|
|
1564
1637
|
registerDesigner(t, e, n) {
|
|
1565
|
-
t.splitter = Qe, e.splitter = q, t["splitter-pane"] = Ke, e["splitter-pane"] =
|
|
1638
|
+
t.splitter = Qe, e.splitter = q, t["splitter-pane"] = Ke, e["splitter-pane"] = X;
|
|
1566
1639
|
}
|
|
1567
1640
|
};
|
|
1568
1641
|
export {
|
|
1569
|
-
|
|
1570
|
-
|
|
1642
|
+
N as FSplitter,
|
|
1643
|
+
k as FSplitterPane,
|
|
1571
1644
|
nt as default,
|
|
1572
|
-
|
|
1645
|
+
V as splitterProps,
|
|
1573
1646
|
q as splitterPropsResolver
|
|
1574
1647
|
};
|