@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,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as _, ref as D, computed as q, createVNode as A, nextTick as R, inject as K, onMounted as x } from "vue";
|
|
2
|
+
import { isPlainObject as H, cloneDeep as I } from "lodash-es";
|
|
3
|
+
const G = {}, J = {};
|
|
4
4
|
function k(n) {
|
|
5
|
-
const { properties: e, title: t } = n, r = Object.keys(e).reduce((
|
|
6
|
-
return r.id = `${t}-${Date.now()}
|
|
5
|
+
const { properties: e, title: t, ignore: r } = n, s = r && Array.isArray(r), d = Object.keys(e).reduce((h, m) => ((!s || !r.find((v) => v == m)) && (h[m] = e[m].type === "object" && e[m].properties ? k(e[m]) : I(e[m].default)), h), {});
|
|
6
|
+
return (!s || !r.find((h) => h == "id")) && (d.id = `${t}-${Date.now()}`), d;
|
|
7
7
|
}
|
|
8
|
-
function S(n, e = {}) {
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
8
|
+
function S(n, e = {}, t) {
|
|
9
|
+
const r = G[n];
|
|
10
|
+
if (r) {
|
|
11
|
+
let s = k(r);
|
|
12
|
+
const d = J[n];
|
|
13
|
+
return s = d ? d({ getSchemaByType: S }, s, e, t) : s, s;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function ee(n, e) {
|
|
18
18
|
const t = k(e);
|
|
19
|
-
return Object.keys(n).reduce((r, s) => (r[s] &&
|
|
19
|
+
return Object.keys(n).reduce((r, s) => (r[s] && H(r[s]) && H(n[s]) ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function te(n, e) {
|
|
22
22
|
return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
|
|
23
23
|
if (e.has(s)) {
|
|
24
24
|
const d = e.get(s);
|
|
@@ -33,21 +33,21 @@ function ee(n, e) {
|
|
|
33
33
|
return r;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
38
|
-
return
|
|
36
|
+
function ne(n, e, t = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const r = ee(n, e);
|
|
38
|
+
return te(r, t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function oe(n = {}) {
|
|
41
41
|
function e(c, y, u, b) {
|
|
42
42
|
if (typeof u == "number")
|
|
43
43
|
return b[c].length === u;
|
|
44
44
|
if (typeof u == "object") {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
45
|
+
const j = Object.keys(u)[0], o = u[j];
|
|
46
|
+
if (j === "not")
|
|
47
47
|
return Number(b[c].length) !== Number(o);
|
|
48
|
-
if (
|
|
48
|
+
if (j === "moreThan")
|
|
49
49
|
return Number(b[c].length) >= Number(o);
|
|
50
|
-
if (
|
|
50
|
+
if (j === "lessThan")
|
|
51
51
|
return Number(b[c].length) <= Number(o);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
@@ -65,14 +65,14 @@ function ne(n = {}) {
|
|
|
65
65
|
return typeof y == "number" ? [{ target: u, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: u, operator: "getProperty", param: c, value: !!y }] : typeof y == "object" ? Object.keys(y).map((b) => {
|
|
66
66
|
if (b === "length")
|
|
67
67
|
return { target: u, operator: "length", param: null, value: y[b] };
|
|
68
|
-
const
|
|
69
|
-
return { target: u, operator: "getProperty", param:
|
|
68
|
+
const j = b, o = y[b];
|
|
69
|
+
return { target: u, operator: "getProperty", param: j, value: o };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
72
|
function d(c) {
|
|
73
73
|
return Object.keys(c).reduce((u, b) => {
|
|
74
|
-
const
|
|
75
|
-
return u.push(...
|
|
74
|
+
const j = s(b, c[b]);
|
|
75
|
+
return u.push(...j), u;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
78
|
function h(c, y) {
|
|
@@ -82,33 +82,33 @@ function ne(n = {}) {
|
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return d(c).reduce((
|
|
85
|
+
function m(c, y) {
|
|
86
|
+
return d(c).reduce((j, o) => j && h(o, y), !0);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const u = Object.keys(c), b = u.includes("allOf"),
|
|
88
|
+
function v(c, y) {
|
|
89
|
+
const u = Object.keys(c), b = u.includes("allOf"), j = u.includes("anyOf"), o = b || j, f = (o ? c[o ? b ? "allOf" : "anyOf" : "allOf"] : [c]).map((i) => m(i, y));
|
|
90
90
|
return b ? !f.includes(!1) : f.includes(!0);
|
|
91
91
|
}
|
|
92
|
-
return { parseValueSchema:
|
|
92
|
+
return { parseValueSchema: v };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(
|
|
94
|
+
const re = {}, se = {};
|
|
95
|
+
oe();
|
|
96
|
+
function ae(n, e, t = /* @__PURE__ */ new Map(), r = (h, m, v) => m, s = {}, d = (h) => h) {
|
|
97
|
+
return G[e.title] = e, J[e.title] = r, re[e.title] = s, se[e.title] = d, (h = {}) => {
|
|
98
|
+
const m = ne(h, e, t), v = Object.keys(n).reduce((c, y) => (c[y] = n[y].default, c), {});
|
|
99
|
+
return Object.assign(v, m);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ce(n, e) {
|
|
103
103
|
return { customClass: e.class, customStyle: e.style };
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
["appearance",
|
|
105
|
+
const ie = /* @__PURE__ */ new Map([
|
|
106
|
+
["appearance", ce]
|
|
107
107
|
]);
|
|
108
|
-
function
|
|
108
|
+
function pe(n, e, t) {
|
|
109
109
|
return e;
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const le = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/list-nav.schema.json", fe = "list-nav", de = "A Farris Container Component", ye = "object", be = {
|
|
112
112
|
id: {
|
|
113
113
|
description: "The unique identifier for a list-nav",
|
|
114
114
|
type: "string"
|
|
@@ -154,19 +154,19 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
|
|
|
154
154
|
type: "boolean",
|
|
155
155
|
default: !0
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, he = [
|
|
158
158
|
"id",
|
|
159
159
|
"type",
|
|
160
160
|
"contents"
|
|
161
|
-
],
|
|
162
|
-
$schema:
|
|
163
|
-
$id:
|
|
164
|
-
title:
|
|
165
|
-
description:
|
|
166
|
-
type:
|
|
167
|
-
properties:
|
|
168
|
-
required:
|
|
169
|
-
},
|
|
161
|
+
], me = {
|
|
162
|
+
$schema: le,
|
|
163
|
+
$id: ue,
|
|
164
|
+
title: fe,
|
|
165
|
+
description: de,
|
|
166
|
+
type: ye,
|
|
167
|
+
properties: be,
|
|
168
|
+
required: he
|
|
169
|
+
}, ve = "list-nav", ge = "A Farris Component", je = "object", Ce = {
|
|
170
170
|
basic: {
|
|
171
171
|
description: "Basic Infomation",
|
|
172
172
|
title: "基本信息",
|
|
@@ -185,11 +185,11 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
},
|
|
189
|
-
title:
|
|
190
|
-
description:
|
|
191
|
-
type:
|
|
192
|
-
categories:
|
|
188
|
+
}, Pe = {
|
|
189
|
+
title: ve,
|
|
190
|
+
description: ge,
|
|
191
|
+
type: je,
|
|
192
|
+
categories: Ce
|
|
193
193
|
}, B = {
|
|
194
194
|
/** 位置 */
|
|
195
195
|
position: { Type: String, default: "left" },
|
|
@@ -205,60 +205,60 @@ const pe = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-
|
|
|
205
205
|
disabled: { Type: Boolean, default: !1 },
|
|
206
206
|
/** 是否启用拖拽 TODO */
|
|
207
207
|
draggable: { Type: Boolean, default: !1 }
|
|
208
|
-
},
|
|
208
|
+
}, W = ae(B, me, ie, pe, Pe), L = /* @__PURE__ */ _({
|
|
209
209
|
name: "FListNav",
|
|
210
210
|
props: B,
|
|
211
211
|
emits: ["collapse"],
|
|
212
212
|
setup(n, e) {
|
|
213
|
-
const t =
|
|
214
|
-
function h(
|
|
215
|
-
|
|
213
|
+
const t = D(n.position), r = D(n.title), s = D(n.folded), d = D(!1);
|
|
214
|
+
function h(v) {
|
|
215
|
+
v && v.stopPropagation(), !n.disabled && (d.value = !0, s.value = !s.value, e.emit("collapse", s.value));
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
const
|
|
217
|
+
const m = q(() => {
|
|
218
|
+
const v = {};
|
|
219
219
|
let c = ["top", "bottom"].indexOf(t.value) > -1 ? "height" : "width";
|
|
220
|
-
return
|
|
220
|
+
return v[c] = s.value ? "0px" : n.size + "px", v;
|
|
221
221
|
});
|
|
222
|
-
return () =>
|
|
222
|
+
return () => A("div", {
|
|
223
223
|
class: `f-list-nav f-list-nav-${t.value}`
|
|
224
|
-
}, [
|
|
224
|
+
}, [A("div", {
|
|
225
225
|
class: "f-list-nav-in",
|
|
226
|
-
style:
|
|
227
|
-
}, [
|
|
226
|
+
style: m.value
|
|
227
|
+
}, [A("div", {
|
|
228
228
|
class: "f-list-nav-main"
|
|
229
|
-
}, [e.slots.navHeader &&
|
|
229
|
+
}, [e.slots.navHeader && A("div", {
|
|
230
230
|
class: "f-list-nav-header"
|
|
231
|
-
}, [e.slots.navHeader()]), !e.slots.navHeader && r.value &&
|
|
231
|
+
}, [e.slots.navHeader()]), !e.slots.navHeader && r.value && A("div", {
|
|
232
232
|
class: "f-list-nav-header"
|
|
233
|
-
}, [
|
|
233
|
+
}, [A("div", {
|
|
234
234
|
class: "f-list-nav-title"
|
|
235
|
-
}, [r.value])]), e.slots.navContent &&
|
|
235
|
+
}, [r.value])]), e.slots.navContent && A("div", {
|
|
236
236
|
class: "f-list-nav-content"
|
|
237
|
-
}, [e.slots.navContent()]), e.slots.navFooter &&
|
|
237
|
+
}, [e.slots.navContent()]), e.slots.navFooter && A("div", {
|
|
238
238
|
class: "f-list-nav-footer"
|
|
239
|
-
}, [e.slots.navFooter()])]), n.collapsible &&
|
|
239
|
+
}, [e.slots.navFooter()])]), n.collapsible && A("div", {
|
|
240
240
|
class: ["f-list-nav-toggle-sidebar", {
|
|
241
241
|
disabled: n.disabled,
|
|
242
242
|
active: s.value,
|
|
243
243
|
"splitter-pane-collapse-animate": d.value
|
|
244
244
|
}],
|
|
245
|
-
onClick: (
|
|
246
|
-
}, [
|
|
245
|
+
onClick: (v) => h(v)
|
|
246
|
+
}, [A("span", {
|
|
247
247
|
class: "triangle"
|
|
248
248
|
}, null)])])]);
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
|
-
function
|
|
252
|
-
var
|
|
251
|
+
function Ae(n, e, t) {
|
|
252
|
+
var O;
|
|
253
253
|
function r() {
|
|
254
254
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
255
255
|
}
|
|
256
256
|
r();
|
|
257
|
-
const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h =
|
|
258
|
-
function
|
|
257
|
+
const s = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", h = D();
|
|
258
|
+
function m() {
|
|
259
259
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function v() {
|
|
262
262
|
return !1;
|
|
263
263
|
}
|
|
264
264
|
function c() {
|
|
@@ -272,14 +272,14 @@ function Te(n, e, t) {
|
|
|
272
272
|
return null;
|
|
273
273
|
if (p.value.schema && p.value.schema.type === "component")
|
|
274
274
|
return p.value;
|
|
275
|
-
const
|
|
276
|
-
return
|
|
275
|
+
const P = D(p == null ? void 0 : p.value.parent), g = u(P);
|
|
276
|
+
return g || null;
|
|
277
277
|
}
|
|
278
278
|
function b(p = e) {
|
|
279
|
-
const { componentInstance:
|
|
280
|
-
return !
|
|
279
|
+
const { componentInstance: P, designerItemElementRef: g } = p;
|
|
280
|
+
return !P || !P.value ? null : P.value.canMove ? g : b(p.parent);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function j(p) {
|
|
283
283
|
return !!t && t.canAccepts(p);
|
|
284
284
|
}
|
|
285
285
|
function o() {
|
|
@@ -287,57 +287,57 @@ function Te(n, e, t) {
|
|
|
287
287
|
}
|
|
288
288
|
function l() {
|
|
289
289
|
}
|
|
290
|
-
function a(p,
|
|
291
|
-
|
|
290
|
+
function a(p, P) {
|
|
291
|
+
P && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(P);
|
|
292
292
|
}
|
|
293
|
-
function f(p) {
|
|
294
|
-
const { componentType:
|
|
295
|
-
let
|
|
296
|
-
t && t.onResolveNewComponentSchema && (
|
|
297
|
-
const
|
|
298
|
-
return
|
|
293
|
+
function f(p, P) {
|
|
294
|
+
const { componentType: g } = p;
|
|
295
|
+
let N = S(g, p, P);
|
|
296
|
+
t && t.onResolveNewComponentSchema && (N = t.onResolveNewComponentSchema(p, N));
|
|
297
|
+
const M = g.toLowerCase().replace("-", "_");
|
|
298
|
+
return N && !N.id && N.type === g && (N.id = `${M}_${Math.random().toString().slice(2, 6)}`), N;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
const
|
|
300
|
+
function T(p, P) {
|
|
301
|
+
const g = String(p.getAttribute("data-controltype")), N = p.getAttribute("data-feature"), M = N ? JSON.parse(N) : {};
|
|
302
302
|
M.parentComponentInstance = h.value;
|
|
303
|
-
let w = S(
|
|
304
|
-
t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(p,
|
|
305
|
-
const E =
|
|
306
|
-
return w && !w.id && w.type ===
|
|
303
|
+
let w = S(g, M);
|
|
304
|
+
t && t.onAcceptNewChildElement && (w = t.onAcceptNewChildElement(p, P, w));
|
|
305
|
+
const E = g.toLowerCase().replace("-", "_");
|
|
306
|
+
return w && !w.id && w.type === g && (w.id = `${E}_${Math.random().toString().slice(2, 6)}`), w;
|
|
307
307
|
}
|
|
308
308
|
function i(p) {
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function C(...p) {
|
|
311
311
|
if (t && t.getPropsConfig)
|
|
312
312
|
return t.getPropsConfig(...p);
|
|
313
313
|
}
|
|
314
314
|
return h.value = {
|
|
315
|
-
canMove:
|
|
316
|
-
canSelectParent:
|
|
315
|
+
canMove: m(),
|
|
316
|
+
canSelectParent: v(),
|
|
317
317
|
canDelete: c(),
|
|
318
318
|
canNested: !y(),
|
|
319
319
|
contents: e == null ? void 0 : e.schema.contents,
|
|
320
320
|
elementRef: n,
|
|
321
|
-
parent: (
|
|
321
|
+
parent: (O = e == null ? void 0 : e.parent) == null ? void 0 : O.componentInstance,
|
|
322
322
|
schema: e == null ? void 0 : e.schema,
|
|
323
323
|
styles: s,
|
|
324
324
|
designerClass: d,
|
|
325
|
-
canAccepts:
|
|
325
|
+
canAccepts: j,
|
|
326
326
|
getBelongedComponentInstance: u,
|
|
327
327
|
getDraggableDesignItemElement: b,
|
|
328
328
|
getDraggingDisplayText: o,
|
|
329
|
-
getPropConfig:
|
|
329
|
+
getPropConfig: C,
|
|
330
330
|
getDragScopeElement: l,
|
|
331
331
|
onAcceptMovedChildElement: a,
|
|
332
|
-
onAcceptNewChildElement:
|
|
332
|
+
onAcceptNewChildElement: T,
|
|
333
333
|
onChildElementMovedOut: i,
|
|
334
334
|
addNewChildComponentSchema: f,
|
|
335
335
|
updateDragAndDropRules: r,
|
|
336
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
337
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
336
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || D(!1),
|
|
337
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || D(!1)
|
|
338
338
|
}, h;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Te() {
|
|
341
341
|
function n(e) {
|
|
342
342
|
var s, d;
|
|
343
343
|
if (!e)
|
|
@@ -347,8 +347,8 @@ function Pe() {
|
|
|
347
347
|
return !1;
|
|
348
348
|
const r = (d = t.schema.appearance) == null ? void 0 : d.class;
|
|
349
349
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
350
|
-
const h = t.schema.type,
|
|
351
|
-
if (t.schema.type !== "response-layout-item" && !
|
|
350
|
+
const h = t.schema.type, m = (h === "response-form" || h === "content-container") && r && r.includes("farris-form");
|
|
351
|
+
if (t.schema.type !== "response-layout-item" && !m)
|
|
352
352
|
return !1;
|
|
353
353
|
}
|
|
354
354
|
return e.controlType !== "field-set";
|
|
@@ -357,7 +357,7 @@ function Pe() {
|
|
|
357
357
|
basalDragulaRuleForContainer: n
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const Ne = "https://json-schema.org/draft/2020-12/schema", De = "https://farris-design.gitee.io/dragging-rules.schema.json", Oe = "Dragging Rules", we = "The rules of designer canvas", Me = "object", Ee = {
|
|
361
361
|
"f-page": {
|
|
362
362
|
description: "The root class of page designed by farris.",
|
|
363
363
|
type: "object",
|
|
@@ -776,6 +776,80 @@ const Ae = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-
|
|
|
776
776
|
"f-list-nav-left": {
|
|
777
777
|
description: "",
|
|
778
778
|
type: "object"
|
|
779
|
+
},
|
|
780
|
+
"f-struct-data-grid-in-nav": {
|
|
781
|
+
description: "",
|
|
782
|
+
type: "object",
|
|
783
|
+
properties: {
|
|
784
|
+
contents: {
|
|
785
|
+
type: "object",
|
|
786
|
+
properties: {
|
|
787
|
+
"f-section-form": {
|
|
788
|
+
description: "",
|
|
789
|
+
type: "object",
|
|
790
|
+
properties: {
|
|
791
|
+
rules: {
|
|
792
|
+
type: "object",
|
|
793
|
+
properties: {
|
|
794
|
+
canAccept: {
|
|
795
|
+
type: "boolean",
|
|
796
|
+
const: !1
|
|
797
|
+
},
|
|
798
|
+
fixed: {
|
|
799
|
+
type: "boolean",
|
|
800
|
+
const: !0
|
|
801
|
+
},
|
|
802
|
+
hidePadding: {
|
|
803
|
+
type: "boolean",
|
|
804
|
+
const: !0
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"f-section-grid": {
|
|
811
|
+
description: "",
|
|
812
|
+
type: "object",
|
|
813
|
+
properties: {
|
|
814
|
+
rules: {
|
|
815
|
+
type: "object",
|
|
816
|
+
properties: {
|
|
817
|
+
canAccept: {
|
|
818
|
+
type: "boolean",
|
|
819
|
+
const: !1
|
|
820
|
+
},
|
|
821
|
+
fixed: {
|
|
822
|
+
type: "boolean",
|
|
823
|
+
const: !0
|
|
824
|
+
},
|
|
825
|
+
hidePadding: {
|
|
826
|
+
type: "boolean",
|
|
827
|
+
const: !0
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
rules: {
|
|
836
|
+
type: "object",
|
|
837
|
+
properties: {
|
|
838
|
+
canAccept: {
|
|
839
|
+
type: "boolean",
|
|
840
|
+
const: !1
|
|
841
|
+
},
|
|
842
|
+
fixed: {
|
|
843
|
+
type: "boolean",
|
|
844
|
+
const: !0
|
|
845
|
+
},
|
|
846
|
+
hidePadding: {
|
|
847
|
+
type: "boolean",
|
|
848
|
+
const: !0
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
779
853
|
}
|
|
780
854
|
}
|
|
781
855
|
}
|
|
@@ -921,28 +995,27 @@ const Ae = "https://json-schema.org/draft/2020-12/schema", Ne = "https://farris-
|
|
|
921
995
|
description: "",
|
|
922
996
|
type: "object"
|
|
923
997
|
}
|
|
924
|
-
},
|
|
925
|
-
$schema:
|
|
926
|
-
$id:
|
|
927
|
-
title:
|
|
928
|
-
description:
|
|
929
|
-
type:
|
|
930
|
-
properties:
|
|
931
|
-
required: Ee
|
|
998
|
+
}, Se = {
|
|
999
|
+
$schema: Ne,
|
|
1000
|
+
$id: De,
|
|
1001
|
+
title: Oe,
|
|
1002
|
+
description: we,
|
|
1003
|
+
type: Me,
|
|
1004
|
+
properties: Ee
|
|
932
1005
|
}, F = /* @__PURE__ */ new Map();
|
|
933
1006
|
function $e() {
|
|
934
1007
|
function n(o, l, a, f) {
|
|
935
|
-
var
|
|
1008
|
+
var T;
|
|
936
1009
|
if (typeof a == "number")
|
|
937
|
-
return ((
|
|
1010
|
+
return ((T = f[o]) == null ? void 0 : T.length) === a;
|
|
938
1011
|
if (typeof a == "object") {
|
|
939
|
-
const i = Object.keys(a)[0],
|
|
1012
|
+
const i = Object.keys(a)[0], C = a[i];
|
|
940
1013
|
if (i === "not")
|
|
941
|
-
return Number(f[o].length) !== Number(
|
|
1014
|
+
return Number(f[o].length) !== Number(C);
|
|
942
1015
|
if (i === "moreThan")
|
|
943
|
-
return Number(f[o].length) >= Number(
|
|
1016
|
+
return Number(f[o].length) >= Number(C);
|
|
944
1017
|
if (i === "lessThan")
|
|
945
|
-
return Number(f[o].length) <= Number(
|
|
1018
|
+
return Number(f[o].length) <= Number(C);
|
|
946
1019
|
}
|
|
947
1020
|
return !1;
|
|
948
1021
|
}
|
|
@@ -966,8 +1039,8 @@ function $e() {
|
|
|
966
1039
|
return typeof l == "number" ? [{ target: a, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((f) => {
|
|
967
1040
|
if (f === "length")
|
|
968
1041
|
return { target: a, operator: "length", param: null, value: l[f] };
|
|
969
|
-
const
|
|
970
|
-
return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param:
|
|
1042
|
+
const T = f, i = l[f];
|
|
1043
|
+
return { target: a, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: T, value: i };
|
|
971
1044
|
}) : [];
|
|
972
1045
|
}
|
|
973
1046
|
function h(o, l) {
|
|
@@ -977,34 +1050,34 @@ function $e() {
|
|
|
977
1050
|
}
|
|
978
1051
|
return !1;
|
|
979
1052
|
}
|
|
980
|
-
function
|
|
981
|
-
return Object.keys(o).reduce((i,
|
|
982
|
-
const
|
|
983
|
-
return i.push(...
|
|
984
|
-
}, []).reduce((i,
|
|
1053
|
+
function m(o, l) {
|
|
1054
|
+
return Object.keys(o).reduce((i, C) => {
|
|
1055
|
+
const O = d(C, o[C]);
|
|
1056
|
+
return i.push(...O), i;
|
|
1057
|
+
}, []).reduce((i, C) => i && h(C, l), !0);
|
|
985
1058
|
}
|
|
986
|
-
function
|
|
987
|
-
const a = Object.keys(o), f = a.includes("allOf"),
|
|
1059
|
+
function v(o, l) {
|
|
1060
|
+
const a = Object.keys(o), f = a.includes("allOf"), T = a.includes("anyOf"), i = f || T, p = (i ? o[i ? f ? "allOf" : "anyOf" : "allOf"] : [o]).map((g) => m(g, l));
|
|
988
1061
|
return f ? !p.includes(!1) : p.includes(!0);
|
|
989
1062
|
}
|
|
990
1063
|
function c(o, l) {
|
|
991
1064
|
const a = o.const;
|
|
992
|
-
return a ? typeof a == "boolean" ? a : typeof a == "object" ?
|
|
1065
|
+
return a ? typeof a == "boolean" ? a : typeof a == "object" ? v(a, l) : !1 : !1;
|
|
993
1066
|
}
|
|
994
1067
|
function y(o) {
|
|
995
1068
|
return (l) => {
|
|
996
1069
|
const a = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
997
|
-
return o && o.properties && Object.keys(o.properties).reduce((f,
|
|
998
|
-
const i = o.properties[
|
|
999
|
-
return f[
|
|
1070
|
+
return o && o.properties && Object.keys(o.properties).reduce((f, T) => {
|
|
1071
|
+
const i = o.properties[T];
|
|
1072
|
+
return f[T] = c(i, l), f;
|
|
1000
1073
|
}, a), a;
|
|
1001
1074
|
};
|
|
1002
1075
|
}
|
|
1003
1076
|
function u(o, l, a) {
|
|
1004
1077
|
if (l.type === "object" && l.properties) {
|
|
1005
|
-
const { rules: f, contents:
|
|
1006
|
-
a.set(o, y(f)),
|
|
1007
|
-
(i) => u(i,
|
|
1078
|
+
const { rules: f, contents: T } = l.properties;
|
|
1079
|
+
a.set(o, y(f)), T && Object.keys(T.properties).forEach(
|
|
1080
|
+
(i) => u(i, T.properties[i], a)
|
|
1008
1081
|
);
|
|
1009
1082
|
}
|
|
1010
1083
|
}
|
|
@@ -1014,78 +1087,78 @@ function $e() {
|
|
|
1014
1087
|
u(l, o[l], F);
|
|
1015
1088
|
});
|
|
1016
1089
|
}
|
|
1017
|
-
function
|
|
1090
|
+
function j(o, l) {
|
|
1018
1091
|
const a = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1019
1092
|
return F.has(o) ? F.get(o)(l) : a;
|
|
1020
1093
|
}
|
|
1021
|
-
return b(), { getRuleValue:
|
|
1094
|
+
return b(), { getRuleValue: j };
|
|
1022
1095
|
}
|
|
1023
1096
|
function Le(n, e) {
|
|
1024
|
-
const t = $e(), r =
|
|
1025
|
-
let d = !0, h = !1,
|
|
1097
|
+
const t = $e(), r = D(!1), s = D(!1);
|
|
1098
|
+
let d = !0, h = !1, m, v = !1;
|
|
1026
1099
|
function c(i) {
|
|
1027
|
-
return
|
|
1100
|
+
return m && m.componentClassList && m.componentClassList.includes("f-form-layout") && m.componentClassList.includes("farris-form") ? i.sourceType === "control" && i.controlCategory === "input" || i.sourceType === "move" && i.controlType === "form-group" : !0;
|
|
1028
1101
|
}
|
|
1029
1102
|
function y(i) {
|
|
1030
|
-
return !(!
|
|
1103
|
+
return !(!Te().basalDragulaRuleForContainer(i) || !d || !c(i));
|
|
1031
1104
|
}
|
|
1032
1105
|
function u() {
|
|
1033
1106
|
r.value = !1, s.value = !1;
|
|
1034
|
-
const i = n,
|
|
1035
|
-
const z = $ && $.appearance ? $.appearance.class : "",
|
|
1036
|
-
return V.push(...
|
|
1037
|
-
}, []) : [], w = e, E = w && w.appearance && w.appearance.class || "",
|
|
1038
|
-
|
|
1039
|
-
componentClass:
|
|
1040
|
-
componentClassList:
|
|
1107
|
+
const i = n, C = i.appearance && i.appearance.class || "", O = C.split(" "), p = i.contents || [], P = p.length ? p[0] : null, g = P && P.appearance ? P.appearance.class : "", N = g ? g.split(" ") : [], M = p.length ? p.reduce((V, $) => {
|
|
1108
|
+
const z = $ && $.appearance ? $.appearance.class : "", Z = z ? z.split(" ") : [];
|
|
1109
|
+
return V.push(...Z), V;
|
|
1110
|
+
}, []) : [], w = e, E = w && w.appearance && w.appearance.class || "", Q = E ? E.split(" ") : [];
|
|
1111
|
+
m = {
|
|
1112
|
+
componentClass: C,
|
|
1113
|
+
componentClassList: O,
|
|
1041
1114
|
childContents: p,
|
|
1042
|
-
firstChildContent:
|
|
1043
|
-
firstChildClass:
|
|
1044
|
-
firstChildClassList:
|
|
1115
|
+
firstChildContent: P,
|
|
1116
|
+
firstChildClass: g,
|
|
1117
|
+
firstChildClassList: N,
|
|
1045
1118
|
parent: w,
|
|
1046
1119
|
parentClass: E,
|
|
1047
|
-
parentClassList:
|
|
1120
|
+
parentClassList: Q,
|
|
1048
1121
|
children: p,
|
|
1049
1122
|
childrenClassList: M
|
|
1050
1123
|
};
|
|
1051
|
-
const { canAccept:
|
|
1052
|
-
return d =
|
|
1124
|
+
const { canAccept: U, fixed: X, hidePadding: Y } = t.getRuleValue(O[0], m);
|
|
1125
|
+
return d = U, h = Y, v = X, !0;
|
|
1053
1126
|
}
|
|
1054
1127
|
function b(i) {
|
|
1055
|
-
|
|
1128
|
+
R();
|
|
1056
1129
|
}
|
|
1057
|
-
function
|
|
1130
|
+
function j() {
|
|
1058
1131
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1059
1132
|
}
|
|
1060
|
-
function o(i,
|
|
1061
|
-
const
|
|
1062
|
-
if ((
|
|
1063
|
-
const { label:
|
|
1064
|
-
return
|
|
1133
|
+
function o(i, C) {
|
|
1134
|
+
const O = n;
|
|
1135
|
+
if ((O.appearance && O.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1136
|
+
const { label: g } = i, N = S("form-group");
|
|
1137
|
+
return N.editor = C, N.label = g, N;
|
|
1065
1138
|
}
|
|
1066
|
-
return
|
|
1139
|
+
return C;
|
|
1067
1140
|
}
|
|
1068
|
-
function l(i,
|
|
1141
|
+
function l(i, C, O) {
|
|
1069
1142
|
const p = n;
|
|
1070
1143
|
if ((p.appearance && p.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1071
|
-
const
|
|
1072
|
-
return M.editor =
|
|
1144
|
+
const N = String(i.innerText), M = S("form-group");
|
|
1145
|
+
return M.editor = O, M.label = N, M;
|
|
1073
1146
|
}
|
|
1074
|
-
return
|
|
1147
|
+
return O;
|
|
1075
1148
|
}
|
|
1076
1149
|
function a() {
|
|
1077
|
-
return !
|
|
1150
|
+
return !v;
|
|
1078
1151
|
}
|
|
1079
1152
|
function f() {
|
|
1080
|
-
return !
|
|
1153
|
+
return !v;
|
|
1081
1154
|
}
|
|
1082
|
-
function
|
|
1155
|
+
function T() {
|
|
1083
1156
|
return h;
|
|
1084
1157
|
}
|
|
1085
1158
|
return {
|
|
1086
1159
|
canAccepts: y,
|
|
1087
1160
|
resolveComponentContext: u,
|
|
1088
|
-
getStyles:
|
|
1161
|
+
getStyles: j,
|
|
1089
1162
|
onAcceptNewChildElement: l,
|
|
1090
1163
|
onAcceptMovedChildElement: b,
|
|
1091
1164
|
onResolveNewComponentSchema: o,
|
|
@@ -1093,48 +1166,48 @@ function Le(n, e) {
|
|
|
1093
1166
|
triggerBelongedComponentToDeleteWhenDeleted: s,
|
|
1094
1167
|
checkCanMoveComponent: a,
|
|
1095
1168
|
checkCanDeleteComponent: f,
|
|
1096
|
-
hideNestedPaddingInDesginerView:
|
|
1169
|
+
hideNestedPaddingInDesginerView: T
|
|
1097
1170
|
};
|
|
1098
1171
|
}
|
|
1099
|
-
const Fe = /* @__PURE__ */
|
|
1172
|
+
const Fe = /* @__PURE__ */ _({
|
|
1100
1173
|
name: "FListNavDesign",
|
|
1101
1174
|
props: B,
|
|
1102
1175
|
emits: [],
|
|
1103
1176
|
setup(n, e) {
|
|
1104
1177
|
var u;
|
|
1105
|
-
const t =
|
|
1178
|
+
const t = D(), r = K("design-item-context"), s = Le(r.schema, (u = r.parent) == null ? void 0 : u.schema), d = Ae(t, r, s);
|
|
1106
1179
|
d.value.canMove = !1, d.value.canNested = !1;
|
|
1107
|
-
const h =
|
|
1180
|
+
const h = D(n.position), m = D(n.title), v = D(!1), c = D(!1), y = q(() => {
|
|
1108
1181
|
const b = {};
|
|
1109
|
-
let
|
|
1110
|
-
return b[
|
|
1182
|
+
let j = ["top", "bottom"].indexOf(h.value) > -1 ? "height" : "width";
|
|
1183
|
+
return b[j] = v.value ? "0px" : n.size + "px", b;
|
|
1111
1184
|
});
|
|
1112
|
-
return
|
|
1185
|
+
return x(() => {
|
|
1113
1186
|
t.value.componentInstance = d;
|
|
1114
|
-
}), e.expose(d.value), () =>
|
|
1187
|
+
}), e.expose(d.value), () => A("div", {
|
|
1115
1188
|
class: `f-list-nav f-list-nav-${h.value}`
|
|
1116
|
-
}, [
|
|
1189
|
+
}, [A("div", {
|
|
1117
1190
|
class: "f-list-nav-in",
|
|
1118
1191
|
style: y.value
|
|
1119
|
-
}, [
|
|
1192
|
+
}, [A("div", {
|
|
1120
1193
|
class: "f-list-nav-main"
|
|
1121
|
-
}, [e.slots.navHeader &&
|
|
1194
|
+
}, [e.slots.navHeader && A("div", {
|
|
1122
1195
|
class: "f-list-nav-header"
|
|
1123
|
-
}, [e.slots.navHeader()]), !e.slots.navHeader &&
|
|
1196
|
+
}, [e.slots.navHeader()]), !e.slots.navHeader && m.value && A("div", {
|
|
1124
1197
|
class: "f-list-nav-header"
|
|
1125
|
-
}, [
|
|
1198
|
+
}, [A("div", {
|
|
1126
1199
|
class: "f-list-nav-title"
|
|
1127
|
-
}, [
|
|
1200
|
+
}, [m.value])]), e.slots.navContent && A("div", {
|
|
1128
1201
|
class: "f-list-nav-content"
|
|
1129
|
-
}, [e.slots.navContent()]), e.slots.navFooter &&
|
|
1202
|
+
}, [e.slots.navContent()]), e.slots.navFooter && A("div", {
|
|
1130
1203
|
class: "f-list-nav-footer"
|
|
1131
|
-
}, [e.slots.navFooter()])]), n.collapsible &&
|
|
1204
|
+
}, [e.slots.navFooter()])]), n.collapsible && A("div", {
|
|
1132
1205
|
class: ["f-list-nav-toggle-sidebar", {
|
|
1133
1206
|
disabled: n.disabled,
|
|
1134
|
-
active:
|
|
1207
|
+
active: v.value,
|
|
1135
1208
|
"splitter-pane-collapse-animate": c.value
|
|
1136
1209
|
}]
|
|
1137
|
-
}, [
|
|
1210
|
+
}, [A("span", {
|
|
1138
1211
|
class: "triangle"
|
|
1139
1212
|
}, null)])])]);
|
|
1140
1213
|
}
|
|
@@ -1143,15 +1216,15 @@ const Fe = /* @__PURE__ */ W({
|
|
|
1143
1216
|
n.component(L.name, L);
|
|
1144
1217
|
},
|
|
1145
1218
|
register(n, e, t, r) {
|
|
1146
|
-
n["list-nav"] = L, e["list-nav"] =
|
|
1219
|
+
n["list-nav"] = L, e["list-nav"] = W;
|
|
1147
1220
|
},
|
|
1148
1221
|
registerDesigner(n, e, t) {
|
|
1149
|
-
n["list-nav"] = Fe, e["list-nav"] =
|
|
1222
|
+
n["list-nav"] = Fe, e["list-nav"] = W;
|
|
1150
1223
|
}
|
|
1151
1224
|
};
|
|
1152
1225
|
export {
|
|
1153
1226
|
L as FListNav,
|
|
1154
1227
|
Ve as default,
|
|
1155
1228
|
B as listNavProps,
|
|
1156
|
-
|
|
1229
|
+
W as propsResolver
|
|
1157
1230
|
};
|