@farris/ui-vue 1.2.9 → 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 +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- 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 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- 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.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- 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 +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -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/types.d.ts +1 -1
- 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 +1 -0
- 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/types.d.ts +9 -0
- 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/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- 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,98 +1,98 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var O = (n, e, t) =>
|
|
4
|
-
import { defineComponent as z, ref as M, computed as F, watch as G, createVNode as b, createTextVNode as Q, getCurrentInstance as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import { getCustomClass as Y, withInstall as
|
|
8
|
-
import { useDesignerInnerComponent as
|
|
9
|
-
const ae = {},
|
|
1
|
+
var Ne = Object.defineProperty;
|
|
2
|
+
var _e = (n, e, t) => e in n ? Ne(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var O = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as z, ref as M, computed as F, watch as G, createVNode as b, createTextVNode as Q, getCurrentInstance as Ce, onMounted as H, onUnmounted as ie, inject as V, provide as Fe, onBeforeUnmount as Le, withModifiers as Ve } from "vue";
|
|
5
|
+
import { isPlainObject as ge, cloneDeep as we } from "lodash-es";
|
|
6
|
+
import We from "../response-toolbar/index.esm.js";
|
|
7
|
+
import { getCustomClass as Y, withInstall as Ue } from "../common/index.esm.js";
|
|
8
|
+
import { useDesignerInnerComponent as Pe } from "../designer-canvas/index.esm.js";
|
|
9
|
+
const ae = {}, Te = {};
|
|
10
10
|
function ce(n) {
|
|
11
|
-
const { properties: e, title: t, ignore:
|
|
12
|
-
return (!
|
|
11
|
+
const { properties: e, title: t, ignore: s } = n, c = s && Array.isArray(s), g = Object.keys(e).reduce((d, P) => ((!c || !s.find((S) => S == P)) && (d[P] = e[P].type === "object" && e[P].properties ? ce(e[P]) : we(e[P].default)), d), {});
|
|
12
|
+
return (!c || !s.find((d) => d == "id")) && (g.id = `${t}-${Date.now()}`), g;
|
|
13
13
|
}
|
|
14
14
|
function U(n, e = {}, t) {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
return
|
|
15
|
+
const s = ae[n];
|
|
16
|
+
if (s) {
|
|
17
|
+
let c = ce(s);
|
|
18
|
+
const g = Te[n];
|
|
19
|
+
return c = g ? g({ getSchemaByType: U }, c, e, t) : c, c;
|
|
20
20
|
}
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function qe(n, e) {
|
|
24
24
|
const t = ce(e);
|
|
25
|
-
return Object.keys(n).reduce((
|
|
25
|
+
return Object.keys(n).reduce((s, c) => (s[c] && ge(s[c]) && ge(n[c]) ? Object.assign(s[c], n[c]) : s[c] = n[c], s), t), t;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return Object.keys(n).filter((
|
|
29
|
-
if (e.has(
|
|
30
|
-
const
|
|
31
|
-
if (typeof
|
|
32
|
-
|
|
27
|
+
function He(n, e) {
|
|
28
|
+
return Object.keys(n).filter((s) => n[s] != null).reduce((s, c) => {
|
|
29
|
+
if (e.has(c)) {
|
|
30
|
+
const g = e.get(c);
|
|
31
|
+
if (typeof g == "string")
|
|
32
|
+
s[g] = n[c];
|
|
33
33
|
else {
|
|
34
|
-
const
|
|
35
|
-
Object.assign(
|
|
34
|
+
const d = g(c, n[c], n);
|
|
35
|
+
Object.assign(s, d);
|
|
36
36
|
}
|
|
37
37
|
} else
|
|
38
|
-
|
|
39
|
-
return
|
|
38
|
+
s[c] = n[c];
|
|
39
|
+
return s;
|
|
40
40
|
}, {});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function ze(n, e, t = /* @__PURE__ */ new Map()) {
|
|
43
|
+
const s = qe(n, e);
|
|
44
|
+
return He(s, t);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
function e(y, T,
|
|
48
|
-
if (typeof
|
|
49
|
-
return i[y].length ===
|
|
50
|
-
if (typeof
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
return Number(i[y].length) !== Number(
|
|
54
|
-
if (
|
|
55
|
-
return Number(i[y].length) >= Number(
|
|
56
|
-
if (
|
|
57
|
-
return Number(i[y].length) <= Number(
|
|
46
|
+
function Ge(n = {}) {
|
|
47
|
+
function e(y, T, p, i) {
|
|
48
|
+
if (typeof p == "number")
|
|
49
|
+
return i[y].length === p;
|
|
50
|
+
if (typeof p == "object") {
|
|
51
|
+
const f = Object.keys(p)[0], l = p[f];
|
|
52
|
+
if (f === "not")
|
|
53
|
+
return Number(i[y].length) !== Number(l);
|
|
54
|
+
if (f === "moreThan")
|
|
55
|
+
return Number(i[y].length) >= Number(l);
|
|
56
|
+
if (f === "lessThan")
|
|
57
|
+
return Number(i[y].length) <= Number(l);
|
|
58
58
|
}
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
function t(y, T,
|
|
62
|
-
return i[y] && i[y].propertyValue && String(i[y].propertyValue.value) === String(
|
|
61
|
+
function t(y, T, p, i) {
|
|
62
|
+
return i[y] && i[y].propertyValue && String(i[y].propertyValue.value) === String(p);
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const s = /* @__PURE__ */ new Map([
|
|
65
65
|
["length", e],
|
|
66
66
|
["getProperty", t]
|
|
67
67
|
]);
|
|
68
|
-
Object.keys(n).reduce((y, T) => (y.set(T, n[T]), y),
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
return typeof T == "number" ? [{ target:
|
|
68
|
+
Object.keys(n).reduce((y, T) => (y.set(T, n[T]), y), s);
|
|
69
|
+
function c(y, T) {
|
|
70
|
+
const p = y;
|
|
71
|
+
return typeof T == "number" ? [{ target: p, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: p, operator: "getProperty", param: y, value: !!T }] : typeof T == "object" ? Object.keys(T).map((i) => {
|
|
72
72
|
if (i === "length")
|
|
73
|
-
return { target:
|
|
74
|
-
const
|
|
75
|
-
return { target:
|
|
73
|
+
return { target: p, operator: "length", param: null, value: T[i] };
|
|
74
|
+
const f = i, l = T[i];
|
|
75
|
+
return { target: p, operator: "getProperty", param: f, value: l };
|
|
76
76
|
}) : [];
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return Object.keys(y).reduce((
|
|
80
|
-
const
|
|
81
|
-
return
|
|
78
|
+
function g(y) {
|
|
79
|
+
return Object.keys(y).reduce((p, i) => {
|
|
80
|
+
const f = c(i, y[i]);
|
|
81
|
+
return p.push(...f), p;
|
|
82
82
|
}, []);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
86
|
-
const
|
|
87
|
-
return
|
|
84
|
+
function d(y, T) {
|
|
85
|
+
if (s.has(y.operator)) {
|
|
86
|
+
const p = s.get(y.operator);
|
|
87
|
+
return p && p(y.target, y.param, y.value, T) || !1;
|
|
88
88
|
}
|
|
89
89
|
return !1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function P(y, T) {
|
|
92
|
+
return g(y).reduce((f, l) => f && d(l, T), !0);
|
|
93
93
|
}
|
|
94
94
|
function S(y, T) {
|
|
95
|
-
const
|
|
95
|
+
const p = Object.keys(y), i = p.includes("allOf"), f = p.includes("anyOf"), l = i || f, j = (l ? y[l ? i ? "allOf" : "anyOf" : "allOf"] : [y]).map((D) => P(D, T));
|
|
96
96
|
return i ? !j.includes(!1) : j.includes(!0);
|
|
97
97
|
}
|
|
98
98
|
return { parseValueSchema: S };
|
|
@@ -134,25 +134,39 @@ const K = {
|
|
|
134
134
|
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
135
135
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
136
136
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
137
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
138
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
139
|
+
}, De = {}, Je = {};
|
|
140
|
+
Ge();
|
|
141
|
+
function le(n, e, t = /* @__PURE__ */ new Map(), s = (d, P, S) => P, c = {}, g = (d) => d) {
|
|
142
|
+
return ae[e.title] = e, Te[e.title] = s, De[e.title] = c, Je[e.title] = g, (d = {}) => {
|
|
143
|
+
const P = ze(d, e, t), S = Object.keys(n).reduce((y, T) => (y[T] = n[T].default, y), {});
|
|
144
|
+
return Object.assign(S, P);
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function Se(n, e) {
|
|
147
148
|
return { customClass: e.class, customStyle: e.style };
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function Qe(n, e) {
|
|
150
151
|
return { buttons: e.buttons };
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
function Xe() {
|
|
154
|
+
function n(e, t) {
|
|
155
|
+
var P;
|
|
156
|
+
const s = (P = e.toolbar) == null ? void 0 : P.buttons;
|
|
157
|
+
if (!s || s.length < 1)
|
|
158
|
+
return null;
|
|
159
|
+
const [c, g] = t.payloads, d = s.find((S) => S.id === g);
|
|
160
|
+
return d ? d.onClick || d.click : null;
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
resolve: n
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
const Ye = /* @__PURE__ */ new Map([
|
|
167
|
+
["appearance", Se],
|
|
168
|
+
["toolbar", Qe]
|
|
169
|
+
]), Ze = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-design.gitee.io/page-header.schema.json", et = "page-header", tt = "A Farris Container Component", nt = "object", ot = {
|
|
156
170
|
id: {
|
|
157
171
|
description: "The unique identifier for a Page Header",
|
|
158
172
|
type: "string"
|
|
@@ -260,15 +274,15 @@ const Qe = /* @__PURE__ */ new Map([
|
|
|
260
274
|
type: "boolean",
|
|
261
275
|
default: !1
|
|
262
276
|
}
|
|
263
|
-
},
|
|
264
|
-
$schema:
|
|
265
|
-
$id:
|
|
266
|
-
title:
|
|
267
|
-
description:
|
|
268
|
-
type:
|
|
269
|
-
properties:
|
|
277
|
+
}, rt = {
|
|
278
|
+
$schema: Ze,
|
|
279
|
+
$id: Ke,
|
|
280
|
+
title: et,
|
|
281
|
+
description: tt,
|
|
282
|
+
type: nt,
|
|
283
|
+
properties: ot
|
|
270
284
|
};
|
|
271
|
-
function
|
|
285
|
+
function st(n, e, t) {
|
|
272
286
|
return e.title = "标题", e;
|
|
273
287
|
}
|
|
274
288
|
const pe = {
|
|
@@ -300,61 +314,61 @@ const pe = {
|
|
|
300
314
|
prePaginationDisabled: { type: Boolean, default: !0 },
|
|
301
315
|
/** 向后翻页是否禁用 */
|
|
302
316
|
nextPaginationDisabled: { type: Boolean, default: !1 }
|
|
303
|
-
},
|
|
317
|
+
}, it = Object.assign({}, pe, {
|
|
304
318
|
componentId: { type: String, default: "" }
|
|
305
|
-
}),
|
|
319
|
+
}), me = le(pe, rt, Ye, st), at = Xe(), oe = /* @__PURE__ */ z({
|
|
306
320
|
name: "FPageHeader",
|
|
307
321
|
props: pe,
|
|
308
322
|
emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
|
|
309
323
|
setup(n, e) {
|
|
310
|
-
const t = M(n.buttons),
|
|
311
|
-
e.emit("Click",
|
|
324
|
+
const t = M(n.buttons), s = (D, A) => {
|
|
325
|
+
e.emit("Click", D, A);
|
|
312
326
|
};
|
|
313
|
-
function
|
|
314
|
-
|
|
327
|
+
function c(D, A) {
|
|
328
|
+
D && A && A.split(" ").reduce((v, m) => (v[m] = !0, v), D);
|
|
315
329
|
}
|
|
316
|
-
const
|
|
317
|
-
const
|
|
330
|
+
const g = F(() => {
|
|
331
|
+
const D = {
|
|
318
332
|
"f-page-header": !0
|
|
319
333
|
};
|
|
320
|
-
return
|
|
321
|
-
}),
|
|
322
|
-
const
|
|
334
|
+
return c(D, n.customClass), D;
|
|
335
|
+
}), d = F(() => {
|
|
336
|
+
const D = {
|
|
323
337
|
"f-title-icon": !0
|
|
324
338
|
};
|
|
325
|
-
return
|
|
326
|
-
}),
|
|
327
|
-
const
|
|
339
|
+
return c(D, n.iconClass), D;
|
|
340
|
+
}), P = F(() => {
|
|
341
|
+
const D = {
|
|
328
342
|
"f-icon": !0
|
|
329
343
|
};
|
|
330
|
-
return
|
|
344
|
+
return c(D, n.icon), D;
|
|
331
345
|
}), S = F(() => {
|
|
332
|
-
const
|
|
346
|
+
const D = {
|
|
333
347
|
"f-title": !0
|
|
334
348
|
};
|
|
335
|
-
return
|
|
349
|
+
return c(D, n.titleContentClass), D;
|
|
336
350
|
}), y = F(() => {
|
|
337
|
-
const
|
|
351
|
+
const D = {
|
|
338
352
|
"f-content": !0
|
|
339
353
|
};
|
|
340
|
-
return
|
|
354
|
+
return c(D, n.contentClass), D;
|
|
341
355
|
}), T = F(() => {
|
|
342
|
-
const
|
|
356
|
+
const D = {
|
|
343
357
|
"f-content": !0
|
|
344
358
|
};
|
|
345
|
-
return
|
|
346
|
-
}),
|
|
359
|
+
return c(D, n.downContentClass), D;
|
|
360
|
+
}), p = F(() => ({
|
|
347
361
|
"f-icon f-icon-arrow-w": !0,
|
|
348
362
|
"f-state-disabled": n.prePaginationDisabled
|
|
349
363
|
})), i = F(() => ({
|
|
350
364
|
"f-icon f-icon-arrow-e": !0,
|
|
351
365
|
"f-state-disabled": n.nextPaginationDisabled
|
|
352
366
|
}));
|
|
353
|
-
function
|
|
354
|
-
n.prePaginationDisabled || e.emit("PrePaginationClick",
|
|
367
|
+
function f(D) {
|
|
368
|
+
n.prePaginationDisabled || e.emit("PrePaginationClick", D);
|
|
355
369
|
}
|
|
356
|
-
function
|
|
357
|
-
n.nextPaginationDisabled || e.emit("NextPaginationClick",
|
|
370
|
+
function l(D) {
|
|
371
|
+
n.nextPaginationDisabled || e.emit("NextPaginationClick", D);
|
|
358
372
|
}
|
|
359
373
|
function C() {
|
|
360
374
|
return e.slots.titleContent ? b("div", {
|
|
@@ -362,9 +376,9 @@ const pe = {
|
|
|
362
376
|
}, [Q(" "), e.slots.titleContent()]) : b("div", {
|
|
363
377
|
class: "f-title"
|
|
364
378
|
}, [n.showIcon && n.icon ? b("span", {
|
|
365
|
-
class:
|
|
379
|
+
class: d.value
|
|
366
380
|
}, [b("i", {
|
|
367
|
-
class:
|
|
381
|
+
class: P.value
|
|
368
382
|
}, null)]) : "", b("h4", {
|
|
369
383
|
class: "f-title-text"
|
|
370
384
|
}, [n.title]), n.subTitle ? b("h5", {
|
|
@@ -372,11 +386,11 @@ const pe = {
|
|
|
372
386
|
}, [n.subTitle]) : "", n.showPagination ? b("div", {
|
|
373
387
|
class: "f-title-pagination"
|
|
374
388
|
}, [b("span", {
|
|
375
|
-
class:
|
|
376
|
-
onClick:
|
|
389
|
+
class: p.value,
|
|
390
|
+
onClick: f
|
|
377
391
|
}, null), b("span", {
|
|
378
392
|
class: i.value,
|
|
379
|
-
onClick:
|
|
393
|
+
onClick: l
|
|
380
394
|
}, null)]) : ""]);
|
|
381
395
|
}
|
|
382
396
|
function w() {
|
|
@@ -386,10 +400,10 @@ const pe = {
|
|
|
386
400
|
}
|
|
387
401
|
function j() {
|
|
388
402
|
if (n.buttons && n.buttons.length > 0)
|
|
389
|
-
return b(
|
|
403
|
+
return b(We, {
|
|
390
404
|
customClass: n.buttonClass,
|
|
391
405
|
items: t.value,
|
|
392
|
-
onClick:
|
|
406
|
+
onClick: s
|
|
393
407
|
}, null);
|
|
394
408
|
}
|
|
395
409
|
function I() {
|
|
@@ -397,25 +411,25 @@ const pe = {
|
|
|
397
411
|
class: T.value
|
|
398
412
|
}, [Q(" "), e.slots.downContent()]) : "";
|
|
399
413
|
}
|
|
400
|
-
return G(() => n.buttons, (
|
|
401
|
-
t.value =
|
|
414
|
+
return G(() => n.buttons, (D) => {
|
|
415
|
+
t.value = D;
|
|
402
416
|
}, {
|
|
403
417
|
deep: !0
|
|
404
418
|
}), () => b("div", {
|
|
405
|
-
class:
|
|
419
|
+
class: g.value
|
|
406
420
|
}, [b("nav", {
|
|
407
421
|
class: "f-page-header-base"
|
|
408
422
|
}, [C(), w(), j()]), I()]);
|
|
409
423
|
}
|
|
410
424
|
});
|
|
411
|
-
function
|
|
425
|
+
function ct(n, e, t) {
|
|
412
426
|
var $;
|
|
413
|
-
function
|
|
427
|
+
function s() {
|
|
414
428
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
415
429
|
}
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
function
|
|
430
|
+
s();
|
|
431
|
+
const c = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", d = M();
|
|
432
|
+
function P() {
|
|
419
433
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
420
434
|
}
|
|
421
435
|
function S() {
|
|
@@ -427,52 +441,52 @@ function rt(n, e, t) {
|
|
|
427
441
|
function T() {
|
|
428
442
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
429
443
|
}
|
|
430
|
-
function
|
|
444
|
+
function p(v) {
|
|
431
445
|
if (!v || !v.value)
|
|
432
446
|
return null;
|
|
433
447
|
if (v.value.schema && v.value.schema.type === "component")
|
|
434
448
|
return v.value;
|
|
435
|
-
const
|
|
449
|
+
const m = M(v == null ? void 0 : v.value.parent), x = p(m);
|
|
436
450
|
return x || null;
|
|
437
451
|
}
|
|
438
452
|
function i(v = e) {
|
|
439
|
-
const { componentInstance:
|
|
440
|
-
return !
|
|
453
|
+
const { componentInstance: m, designerItemElementRef: x } = v;
|
|
454
|
+
return !m || !m.value ? null : m.value.canMove ? x : i(v.parent);
|
|
441
455
|
}
|
|
442
|
-
function
|
|
456
|
+
function f(v) {
|
|
443
457
|
return !!t && t.canAccepts(v);
|
|
444
458
|
}
|
|
445
|
-
function
|
|
459
|
+
function l() {
|
|
446
460
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
447
461
|
}
|
|
448
462
|
function C() {
|
|
449
463
|
}
|
|
450
|
-
function w(v,
|
|
451
|
-
|
|
464
|
+
function w(v, m) {
|
|
465
|
+
m && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(m);
|
|
452
466
|
}
|
|
453
|
-
function j(v,
|
|
467
|
+
function j(v, m) {
|
|
454
468
|
const { componentType: x } = v;
|
|
455
|
-
let k = U(x, v,
|
|
469
|
+
let k = U(x, v, m);
|
|
456
470
|
t && t.onResolveNewComponentSchema && (k = t.onResolveNewComponentSchema(v, k));
|
|
457
|
-
const
|
|
458
|
-
return k && !k.id && k.type === x && (k.id = `${
|
|
459
|
-
}
|
|
460
|
-
function I(v,
|
|
461
|
-
const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"),
|
|
462
|
-
|
|
463
|
-
let
|
|
464
|
-
t && t.onAcceptNewChildElement && (
|
|
471
|
+
const u = x.toLowerCase().replace("-", "_");
|
|
472
|
+
return k && !k.id && k.type === x && (k.id = `${u}_${Math.random().toString().slice(2, 6)}`), k;
|
|
473
|
+
}
|
|
474
|
+
function I(v, m) {
|
|
475
|
+
const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
|
|
476
|
+
u.parentComponentInstance = d.value;
|
|
477
|
+
let r = U(x, u);
|
|
478
|
+
t && t.onAcceptNewChildElement && (r = t.onAcceptNewChildElement(v, m, r));
|
|
465
479
|
const o = x.toLowerCase().replace("-", "_");
|
|
466
|
-
return
|
|
480
|
+
return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
|
|
467
481
|
}
|
|
468
|
-
function
|
|
482
|
+
function D(v) {
|
|
469
483
|
}
|
|
470
484
|
function A(...v) {
|
|
471
485
|
if (t && t.getPropsConfig)
|
|
472
486
|
return t.getPropsConfig(...v);
|
|
473
487
|
}
|
|
474
|
-
return
|
|
475
|
-
canMove:
|
|
488
|
+
return d.value = {
|
|
489
|
+
canMove: P(),
|
|
476
490
|
canSelectParent: S(),
|
|
477
491
|
canDelete: y(),
|
|
478
492
|
canNested: !T(),
|
|
@@ -480,22 +494,22 @@ function rt(n, e, t) {
|
|
|
480
494
|
elementRef: n,
|
|
481
495
|
parent: ($ = e == null ? void 0 : e.parent) == null ? void 0 : $.componentInstance,
|
|
482
496
|
schema: e == null ? void 0 : e.schema,
|
|
483
|
-
styles:
|
|
484
|
-
designerClass:
|
|
485
|
-
canAccepts:
|
|
486
|
-
getBelongedComponentInstance:
|
|
497
|
+
styles: c,
|
|
498
|
+
designerClass: g,
|
|
499
|
+
canAccepts: f,
|
|
500
|
+
getBelongedComponentInstance: p,
|
|
487
501
|
getDraggableDesignItemElement: i,
|
|
488
|
-
getDraggingDisplayText:
|
|
502
|
+
getDraggingDisplayText: l,
|
|
489
503
|
getPropConfig: A,
|
|
490
504
|
getDragScopeElement: C,
|
|
491
505
|
onAcceptMovedChildElement: w,
|
|
492
506
|
onAcceptNewChildElement: I,
|
|
493
|
-
onChildElementMovedOut:
|
|
507
|
+
onChildElementMovedOut: D,
|
|
494
508
|
addNewChildComponentSchema: j,
|
|
495
|
-
updateDragAndDropRules:
|
|
509
|
+
updateDragAndDropRules: s,
|
|
496
510
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
497
511
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
|
|
498
|
-
},
|
|
512
|
+
}, d;
|
|
499
513
|
}
|
|
500
514
|
class ee {
|
|
501
515
|
constructor(e, t) {
|
|
@@ -514,8 +528,8 @@ class ee {
|
|
|
514
528
|
type: "object",
|
|
515
529
|
categories: {}
|
|
516
530
|
});
|
|
517
|
-
var
|
|
518
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((
|
|
531
|
+
var s;
|
|
532
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((s = this.formSchemaUtils) == null ? void 0 : s.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
519
533
|
}
|
|
520
534
|
getTableInfo() {
|
|
521
535
|
var e;
|
|
@@ -525,8 +539,8 @@ class ee {
|
|
|
525
539
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
526
540
|
if (t) {
|
|
527
541
|
if (!this.designViewModelField) {
|
|
528
|
-
const
|
|
529
|
-
this.designViewModelField =
|
|
542
|
+
const s = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
543
|
+
this.designViewModelField = s.fields.find((c) => c.id === t);
|
|
530
544
|
}
|
|
531
545
|
e.updateOn = this.designViewModelField.updateOn;
|
|
532
546
|
}
|
|
@@ -578,8 +592,21 @@ class ee {
|
|
|
578
592
|
}
|
|
579
593
|
};
|
|
580
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @param propertyId
|
|
598
|
+
* @param componentInstance
|
|
599
|
+
* @returns
|
|
600
|
+
*/
|
|
601
|
+
updateElementByParentContainer(e, t) {
|
|
602
|
+
const s = t && t.parent && t.parent.schema;
|
|
603
|
+
if (!s)
|
|
604
|
+
return;
|
|
605
|
+
const c = s.contents.findIndex((d) => d.id === e), g = we(s.contents[c]);
|
|
606
|
+
s.contents.splice(c, 1), s.contents.splice(c, 0, g);
|
|
607
|
+
}
|
|
581
608
|
}
|
|
582
|
-
class
|
|
609
|
+
class lt extends ee {
|
|
583
610
|
constructor(e, t) {
|
|
584
611
|
super(e, t);
|
|
585
612
|
}
|
|
@@ -619,7 +646,7 @@ class it extends ee {
|
|
|
619
646
|
description: "标题"
|
|
620
647
|
}
|
|
621
648
|
},
|
|
622
|
-
setPropertyRelates(t,
|
|
649
|
+
setPropertyRelates(t, s) {
|
|
623
650
|
if (t)
|
|
624
651
|
switch (t && t.propertyID) {
|
|
625
652
|
case "title": {
|
|
@@ -654,7 +681,7 @@ class it extends ee {
|
|
|
654
681
|
label: "click",
|
|
655
682
|
name: "点击事件"
|
|
656
683
|
}
|
|
657
|
-
],
|
|
684
|
+
], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t);
|
|
658
685
|
this.propertyConfig.categories.eventsEditor = {
|
|
659
686
|
title: "事件",
|
|
660
687
|
hideTitle: !0,
|
|
@@ -662,7 +689,7 @@ class it extends ee {
|
|
|
662
689
|
"data-grid-component-viewmodel": {
|
|
663
690
|
type: "events-editor",
|
|
664
691
|
editor: {
|
|
665
|
-
initialData:
|
|
692
|
+
initialData: c
|
|
666
693
|
}
|
|
667
694
|
}
|
|
668
695
|
},
|
|
@@ -670,38 +697,38 @@ class it extends ee {
|
|
|
670
697
|
refreshPanelAfterChanged: !0,
|
|
671
698
|
tabId: "commands",
|
|
672
699
|
tabName: "交互",
|
|
673
|
-
setPropertyRelates(
|
|
674
|
-
const
|
|
675
|
-
delete e[
|
|
700
|
+
setPropertyRelates(g, d) {
|
|
701
|
+
const P = g.propertyValue;
|
|
702
|
+
delete e[s.viewModelId], P && (P.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, P.events, P));
|
|
676
703
|
}
|
|
677
704
|
};
|
|
678
705
|
}
|
|
679
706
|
}
|
|
680
|
-
function
|
|
681
|
-
function t(
|
|
707
|
+
function pt(n, e) {
|
|
708
|
+
function t(P) {
|
|
682
709
|
return !1;
|
|
683
710
|
}
|
|
684
|
-
function
|
|
711
|
+
function s() {
|
|
685
712
|
return !1;
|
|
686
713
|
}
|
|
687
|
-
function
|
|
714
|
+
function c() {
|
|
688
715
|
return !1;
|
|
689
716
|
}
|
|
690
|
-
function
|
|
717
|
+
function g() {
|
|
691
718
|
return !0;
|
|
692
719
|
}
|
|
693
|
-
function
|
|
694
|
-
return new
|
|
720
|
+
function d(P) {
|
|
721
|
+
return new lt(P, e).getPropertyConfig(n);
|
|
695
722
|
}
|
|
696
723
|
return {
|
|
697
724
|
canAccepts: t,
|
|
698
|
-
hideNestedPaddingInDesginerView:
|
|
699
|
-
getPropsConfig:
|
|
700
|
-
checkCanDeleteComponent:
|
|
701
|
-
checkCanMoveComponent:
|
|
725
|
+
hideNestedPaddingInDesginerView: g,
|
|
726
|
+
getPropsConfig: d,
|
|
727
|
+
checkCanDeleteComponent: s,
|
|
728
|
+
checkCanMoveComponent: c
|
|
702
729
|
};
|
|
703
730
|
}
|
|
704
|
-
class
|
|
731
|
+
class je {
|
|
705
732
|
constructor(e) {
|
|
706
733
|
/** 工具栏项标识 */
|
|
707
734
|
O(this, "id", "");
|
|
@@ -746,8 +773,8 @@ class De {
|
|
|
746
773
|
"tipsText",
|
|
747
774
|
"onClick"
|
|
748
775
|
];
|
|
749
|
-
Object.keys(e).filter((
|
|
750
|
-
this[
|
|
776
|
+
Object.keys(e).filter((s) => t.indexOf(s) > -1).forEach((s) => {
|
|
777
|
+
this[s] = e[s];
|
|
751
778
|
});
|
|
752
779
|
}
|
|
753
780
|
/** 是否可用 */
|
|
@@ -763,20 +790,20 @@ class De {
|
|
|
763
790
|
return this.visible ? this.width : !1;
|
|
764
791
|
}
|
|
765
792
|
}
|
|
766
|
-
class
|
|
793
|
+
class ut extends je {
|
|
767
794
|
constructor(e) {
|
|
768
795
|
super(e);
|
|
769
796
|
}
|
|
770
797
|
}
|
|
771
|
-
function
|
|
798
|
+
function xe() {
|
|
772
799
|
function n(e) {
|
|
773
800
|
const t = [];
|
|
774
|
-
return e.reduce((
|
|
801
|
+
return e.reduce((s, c) => (c.children && c.children.length > 0 ? s.push(new J(c)) : s.push(new ut(c)), s), t), t;
|
|
775
802
|
}
|
|
776
803
|
return { buildResponseToolbarItems: n };
|
|
777
804
|
}
|
|
778
|
-
const { buildResponseToolbarItems:
|
|
779
|
-
class J extends
|
|
805
|
+
const { buildResponseToolbarItems: dt } = xe();
|
|
806
|
+
class J extends je {
|
|
780
807
|
constructor(t) {
|
|
781
808
|
super(t);
|
|
782
809
|
O(this, "placement", "");
|
|
@@ -789,25 +816,25 @@ class J extends De {
|
|
|
789
816
|
O(this, "split", !1);
|
|
790
817
|
O(this, "children", []);
|
|
791
818
|
O(this, "expanded", !1);
|
|
792
|
-
const
|
|
793
|
-
Object.keys(t).filter((
|
|
794
|
-
this[
|
|
795
|
-
}), t.children && t.children.length && (this.children =
|
|
819
|
+
const s = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
|
|
820
|
+
Object.keys(t).filter((c) => s.indexOf(c) > -1).forEach((c) => {
|
|
821
|
+
this[c] = t[c];
|
|
822
|
+
}), t.children && t.children.length && (this.children = dt(t.children));
|
|
796
823
|
}
|
|
797
824
|
}
|
|
798
|
-
const
|
|
825
|
+
const ft = /* @__PURE__ */ new Map([
|
|
799
826
|
["buttons", "items"],
|
|
800
|
-
["appearance",
|
|
801
|
-
]),
|
|
802
|
-
["appearance",
|
|
827
|
+
["appearance", Se]
|
|
828
|
+
]), gt = /* @__PURE__ */ new Map([
|
|
829
|
+
["appearance", mt]
|
|
803
830
|
]);
|
|
804
|
-
function
|
|
831
|
+
function mt(n, e) {
|
|
805
832
|
return { class: e.class, style: e.style };
|
|
806
833
|
}
|
|
807
|
-
function
|
|
834
|
+
function Ee(n, e, t) {
|
|
808
835
|
return e;
|
|
809
836
|
}
|
|
810
|
-
const
|
|
837
|
+
const ht = "https://json-schema.org/draft/2020-12/schema", bt = "https://farris-design.gitee.io/response-toolbar.schema.json", yt = "response-toolbar", vt = "A Farris Toolbar Component", Ct = "object", wt = {
|
|
811
838
|
id: {
|
|
812
839
|
description: "The unique identifier for a Response Toolbar",
|
|
813
840
|
type: "string"
|
|
@@ -840,19 +867,19 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
|
|
|
840
867
|
type: "array",
|
|
841
868
|
default: []
|
|
842
869
|
}
|
|
843
|
-
},
|
|
870
|
+
}, Pt = [
|
|
844
871
|
"id",
|
|
845
872
|
"type",
|
|
846
873
|
"buttons"
|
|
847
|
-
],
|
|
848
|
-
$schema:
|
|
849
|
-
$id:
|
|
850
|
-
title:
|
|
851
|
-
description:
|
|
852
|
-
type:
|
|
853
|
-
properties:
|
|
854
|
-
required:
|
|
855
|
-
},
|
|
874
|
+
], Tt = {
|
|
875
|
+
$schema: ht,
|
|
876
|
+
$id: bt,
|
|
877
|
+
title: yt,
|
|
878
|
+
description: vt,
|
|
879
|
+
type: Ct,
|
|
880
|
+
properties: wt,
|
|
881
|
+
required: Pt
|
|
882
|
+
}, Dt = "https://json-schema.org/draft/2020-12/schema", St = "https://farris-design.gitee.io/response-toolbar-item.schema.json", jt = "response-toolbar-item", xt = "A Farris Toolbar Item Component", Et = "object", Mt = {
|
|
856
883
|
id: {
|
|
857
884
|
description: "The unique identifier for a Response Toolbar",
|
|
858
885
|
type: "string"
|
|
@@ -877,38 +904,38 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
|
|
|
877
904
|
default: {}
|
|
878
905
|
},
|
|
879
906
|
alignment: {
|
|
880
|
-
description: "
|
|
907
|
+
description: "对齐",
|
|
881
908
|
type: "string",
|
|
882
909
|
default: "right"
|
|
883
910
|
},
|
|
884
911
|
text: {
|
|
885
|
-
description: "
|
|
912
|
+
description: "文本",
|
|
886
913
|
type: "string",
|
|
887
914
|
default: "新增"
|
|
888
915
|
},
|
|
889
916
|
icon: {
|
|
890
|
-
description: "
|
|
917
|
+
description: "图标",
|
|
891
918
|
type: "string",
|
|
892
919
|
default: ""
|
|
893
920
|
},
|
|
894
|
-
|
|
895
|
-
description: "
|
|
921
|
+
onClick: {
|
|
922
|
+
description: "点击事件",
|
|
896
923
|
type: "string",
|
|
897
924
|
default: ""
|
|
898
925
|
}
|
|
899
|
-
},
|
|
926
|
+
}, kt = [
|
|
900
927
|
"id",
|
|
901
928
|
"type",
|
|
902
929
|
"text"
|
|
903
|
-
],
|
|
904
|
-
$schema:
|
|
905
|
-
$id:
|
|
906
|
-
title:
|
|
907
|
-
description:
|
|
908
|
-
type:
|
|
909
|
-
properties:
|
|
910
|
-
required:
|
|
911
|
-
},
|
|
930
|
+
], se = {
|
|
931
|
+
$schema: Dt,
|
|
932
|
+
$id: St,
|
|
933
|
+
title: jt,
|
|
934
|
+
description: xt,
|
|
935
|
+
type: Et,
|
|
936
|
+
properties: Mt,
|
|
937
|
+
required: kt
|
|
938
|
+
}, At = "response-toolbar-item", Bt = "A Farris Container Component", Rt = "object", It = {
|
|
912
939
|
basic: {
|
|
913
940
|
title: "基本信息",
|
|
914
941
|
description: "Basic Infomation",
|
|
@@ -941,11 +968,11 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
|
|
|
941
968
|
}
|
|
942
969
|
}
|
|
943
970
|
}
|
|
944
|
-
},
|
|
945
|
-
title:
|
|
946
|
-
description:
|
|
947
|
-
type:
|
|
948
|
-
categories:
|
|
971
|
+
}, he = {
|
|
972
|
+
title: At,
|
|
973
|
+
description: Bt,
|
|
974
|
+
type: Rt,
|
|
975
|
+
categories: It
|
|
949
976
|
}, ue = {
|
|
950
977
|
/** 组件自定义样式 */
|
|
951
978
|
customClass: { type: String, default: "" },
|
|
@@ -955,16 +982,16 @@ const ft = "https://json-schema.org/draft/2020-12/schema", gt = "https://farris-
|
|
|
955
982
|
default: []
|
|
956
983
|
}
|
|
957
984
|
};
|
|
958
|
-
ae[
|
|
959
|
-
|
|
960
|
-
const
|
|
985
|
+
ae[se.title] = se;
|
|
986
|
+
De[he.title] = he;
|
|
987
|
+
const Ot = Object.assign({}, ue, {
|
|
961
988
|
componentId: { type: String, default: "" }
|
|
962
989
|
}), de = le(
|
|
963
990
|
ue,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
),
|
|
991
|
+
Tt,
|
|
992
|
+
ft,
|
|
993
|
+
Ee
|
|
994
|
+
), Me = {
|
|
968
995
|
id: { type: String, default: "" },
|
|
969
996
|
items: { type: Object, default: {} },
|
|
970
997
|
class: { type: String, default: "" },
|
|
@@ -973,93 +1000,93 @@ const Bt = Object.assign({}, ue, {
|
|
|
973
1000
|
icon: { type: String, default: "" },
|
|
974
1001
|
componentId: { type: String, default: "" },
|
|
975
1002
|
alignment: { Type: String, default: "right" }
|
|
976
|
-
},
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1003
|
+
}, $t = le(
|
|
1004
|
+
Me,
|
|
1005
|
+
se,
|
|
1006
|
+
gt,
|
|
1007
|
+
Ee
|
|
981
1008
|
);
|
|
982
|
-
function
|
|
1009
|
+
function ke() {
|
|
983
1010
|
function n(t) {
|
|
984
|
-
const
|
|
1011
|
+
const s = {
|
|
985
1012
|
"f-icon": !0
|
|
986
1013
|
};
|
|
987
1014
|
if (t.icon) {
|
|
988
|
-
const
|
|
989
|
-
|
|
1015
|
+
const c = t.icon.trim().split(" ");
|
|
1016
|
+
c && c.length && c.reduce((g, d) => (g[d] = !0, g), s);
|
|
990
1017
|
}
|
|
991
|
-
return
|
|
1018
|
+
return s;
|
|
992
1019
|
}
|
|
993
1020
|
function e(t) {
|
|
994
1021
|
return !!(t.icon && t.icon.trim());
|
|
995
1022
|
}
|
|
996
1023
|
return { iconClass: n, shouldShowIcon: e };
|
|
997
1024
|
}
|
|
998
|
-
function
|
|
999
|
-
function e(
|
|
1025
|
+
function Nt(n) {
|
|
1026
|
+
function e(p) {
|
|
1000
1027
|
const i = {
|
|
1001
1028
|
"dropdown-menu": !0
|
|
1002
1029
|
};
|
|
1003
|
-
if (
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1030
|
+
if (p.class) {
|
|
1031
|
+
const f = p.menuClass.split(" ");
|
|
1032
|
+
f && f.length && f.reduce((l, C) => (l[C] = !0, l), i);
|
|
1006
1033
|
}
|
|
1007
1034
|
return i;
|
|
1008
1035
|
}
|
|
1009
|
-
function t(
|
|
1036
|
+
function t(p) {
|
|
1010
1037
|
const i = {
|
|
1011
|
-
disabled: !
|
|
1038
|
+
disabled: !p.enable,
|
|
1012
1039
|
"dropdown-submenu": !0,
|
|
1013
1040
|
"f-rt-dropdown": !0
|
|
1014
|
-
},
|
|
1015
|
-
return
|
|
1041
|
+
}, f = p.dropdownClass.split(" ");
|
|
1042
|
+
return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
|
|
1016
1043
|
}
|
|
1017
|
-
function
|
|
1044
|
+
function s(p) {
|
|
1018
1045
|
const i = {
|
|
1019
|
-
disabled: !
|
|
1046
|
+
disabled: !p.enable,
|
|
1020
1047
|
"dropdown-item": !0,
|
|
1021
1048
|
"f-rt-btn": !0
|
|
1022
|
-
},
|
|
1023
|
-
return
|
|
1049
|
+
}, f = p.class.split(" ");
|
|
1050
|
+
return f && f.length && f.reduce((l, C) => (l[C] = !0, l), i), i;
|
|
1024
1051
|
}
|
|
1025
|
-
let
|
|
1026
|
-
const
|
|
1027
|
-
function
|
|
1052
|
+
let c;
|
|
1053
|
+
const g = /* @__PURE__ */ new Map();
|
|
1054
|
+
function d(p, i, f) {
|
|
1028
1055
|
var C;
|
|
1029
|
-
((C =
|
|
1030
|
-
const
|
|
1031
|
-
if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ?
|
|
1032
|
-
const w =
|
|
1056
|
+
((C = p.target) == null ? void 0 : C.id) === i.id && p.stopPropagation();
|
|
1057
|
+
const l = f ? f.id : "__top_item__";
|
|
1058
|
+
if (i.children && i.children.length && (i.expanded = !i.expanded, i.expanded ? g.set(l, i) : g.delete(l)), g.has(l) && g.get(l) !== i) {
|
|
1059
|
+
const w = g.get(l);
|
|
1033
1060
|
w && (w.expanded = !1);
|
|
1034
1061
|
}
|
|
1035
1062
|
}
|
|
1036
|
-
function
|
|
1037
|
-
document.body.click(), i.enable && i.onClick(
|
|
1063
|
+
function P(p, i) {
|
|
1064
|
+
document.body.click(), i.enable && i.onClick(p, i.id);
|
|
1038
1065
|
}
|
|
1039
|
-
function S(
|
|
1040
|
-
return
|
|
1066
|
+
function S(p) {
|
|
1067
|
+
return p.children.map((i) => i.children && i.children.length ? b("li", {
|
|
1041
1068
|
class: t(i),
|
|
1042
1069
|
id: i.id,
|
|
1043
|
-
onClick: (
|
|
1070
|
+
onClick: (f) => i.enable && d(f, i, p)
|
|
1044
1071
|
}, [b("span", {
|
|
1045
1072
|
id: i.id,
|
|
1046
|
-
class:
|
|
1047
|
-
onMouseover: (
|
|
1073
|
+
class: s(i),
|
|
1074
|
+
onMouseover: (f) => i.enable && d(f, i, p)
|
|
1048
1075
|
}, [i.text, b("i", {
|
|
1049
1076
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1050
1077
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1051
|
-
}, null)]),
|
|
1052
|
-
class:
|
|
1078
|
+
}, null)]), c(i, i)]) : b("li", {
|
|
1079
|
+
class: s(i),
|
|
1053
1080
|
id: i.id,
|
|
1054
|
-
onClick: (
|
|
1055
|
-
onMouseover: (
|
|
1081
|
+
onClick: (f) => P(f, i),
|
|
1082
|
+
onMouseover: (f) => i.enable && d(f, i, p)
|
|
1056
1083
|
}, [n.shouldShowIcon(i) && b("i", {
|
|
1057
1084
|
class: n.iconClass(i)
|
|
1058
1085
|
}, null), i.text]));
|
|
1059
1086
|
}
|
|
1060
|
-
function y(
|
|
1061
|
-
const
|
|
1062
|
-
display:
|
|
1087
|
+
function y(p, i, f) {
|
|
1088
|
+
const l = {
|
|
1089
|
+
display: p.expanded ? "block" : "none",
|
|
1063
1090
|
position: "fixed",
|
|
1064
1091
|
maxWidth: "300px",
|
|
1065
1092
|
width: "auto",
|
|
@@ -1068,61 +1095,61 @@ function It(n) {
|
|
|
1068
1095
|
if (w && j && j.length) {
|
|
1069
1096
|
const {
|
|
1070
1097
|
top: I,
|
|
1071
|
-
width:
|
|
1098
|
+
width: D,
|
|
1072
1099
|
left: A,
|
|
1073
1100
|
right: $,
|
|
1074
1101
|
height: v
|
|
1075
|
-
} = j[0],
|
|
1076
|
-
|
|
1077
|
-
const x =
|
|
1102
|
+
} = j[0], m = Math.ceil(v + I);
|
|
1103
|
+
l.top = `${m}px`, l.left = `${A}px`;
|
|
1104
|
+
const x = p.id + "_menu", k = i ? i.querySelector("#" + x) : null;
|
|
1078
1105
|
if (k) {
|
|
1079
|
-
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1082
|
-
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1106
|
+
l.display === "block" && (k.style.display = "block");
|
|
1107
|
+
const u = k.getBoundingClientRect();
|
|
1108
|
+
if (f) {
|
|
1109
|
+
l.top = `${I - 6}px`;
|
|
1110
|
+
const r = Math.ceil(D + A);
|
|
1111
|
+
l.left = `${r}px`;
|
|
1085
1112
|
}
|
|
1086
|
-
C - A -
|
|
1113
|
+
C - A - D < u.width && (l.left = `${(f ? A : $) - u.width}px`);
|
|
1087
1114
|
}
|
|
1088
1115
|
}
|
|
1089
|
-
return
|
|
1116
|
+
return l;
|
|
1090
1117
|
}
|
|
1091
|
-
|
|
1118
|
+
c = function(p, i) {
|
|
1092
1119
|
var w, j;
|
|
1093
|
-
const
|
|
1120
|
+
const f = Ce(), l = i ? i.id : p.id, C = (j = (w = f == null ? void 0 : f.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + l);
|
|
1094
1121
|
return b("ul", {
|
|
1095
|
-
class: e(
|
|
1096
|
-
style: y(
|
|
1097
|
-
id:
|
|
1098
|
-
}, [S(
|
|
1122
|
+
class: e(p),
|
|
1123
|
+
style: y(p, C, i),
|
|
1124
|
+
id: p.id + "_menu"
|
|
1125
|
+
}, [S(p)]);
|
|
1099
1126
|
};
|
|
1100
1127
|
function T() {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}),
|
|
1128
|
+
g.forEach((p) => {
|
|
1129
|
+
p.expanded = !1;
|
|
1130
|
+
}), g.clear();
|
|
1104
1131
|
}
|
|
1105
1132
|
return {
|
|
1106
|
-
renderDropdownMenu:
|
|
1133
|
+
renderDropdownMenu: c,
|
|
1107
1134
|
clearAllDropDownMenu: T
|
|
1108
1135
|
};
|
|
1109
1136
|
}
|
|
1110
|
-
function
|
|
1137
|
+
function _t(n, e) {
|
|
1111
1138
|
const t = M(n.alignment), {
|
|
1112
|
-
renderDropdownMenu:
|
|
1113
|
-
clearAllDropDownMenu:
|
|
1114
|
-
} =
|
|
1115
|
-
function
|
|
1116
|
-
const
|
|
1139
|
+
renderDropdownMenu: s,
|
|
1140
|
+
clearAllDropDownMenu: c
|
|
1141
|
+
} = Nt(e);
|
|
1142
|
+
function g(T) {
|
|
1143
|
+
const p = {
|
|
1117
1144
|
"btn-group": !0,
|
|
1118
1145
|
"f-rt-dropdown": !0,
|
|
1119
1146
|
"f-btn-ml": t.value === "right",
|
|
1120
1147
|
"f-btn-mr": t.value === "left"
|
|
1121
1148
|
}, i = T.dropdownClass.split(" ");
|
|
1122
|
-
return i && i.length && i.reduce((
|
|
1149
|
+
return i && i.length && i.reduce((f, l) => (f[l] = !0, f), p), p;
|
|
1123
1150
|
}
|
|
1124
|
-
function
|
|
1125
|
-
const
|
|
1151
|
+
function d(T) {
|
|
1152
|
+
const p = {
|
|
1126
1153
|
btn: !0,
|
|
1127
1154
|
disabled: !T.enable,
|
|
1128
1155
|
"f-rt-btn": !0,
|
|
@@ -1130,32 +1157,32 @@ function Ot(n, e) {
|
|
|
1130
1157
|
};
|
|
1131
1158
|
if (T.class) {
|
|
1132
1159
|
const i = T.class.split(" ");
|
|
1133
|
-
i && i.length && i.reduce((
|
|
1160
|
+
i && i.length && i.reduce((f, l) => (f[l] = !0, f), p);
|
|
1134
1161
|
}
|
|
1135
|
-
return
|
|
1162
|
+
return p;
|
|
1136
1163
|
}
|
|
1137
|
-
function
|
|
1164
|
+
function P(T, p) {
|
|
1138
1165
|
T.stopPropagation();
|
|
1139
|
-
const i =
|
|
1140
|
-
document.body.click(),
|
|
1166
|
+
const i = p.expanded;
|
|
1167
|
+
document.body.click(), p.expanded = !i;
|
|
1141
1168
|
}
|
|
1142
1169
|
function S(T) {
|
|
1143
1170
|
return b("div", {
|
|
1144
1171
|
id: T.id,
|
|
1145
|
-
class:
|
|
1172
|
+
class: g(T)
|
|
1146
1173
|
}, [b("div", {
|
|
1147
|
-
class:
|
|
1174
|
+
class: d(T),
|
|
1148
1175
|
style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
|
|
1149
|
-
onClick: (
|
|
1176
|
+
onClick: (p) => T.enable && P(p, T)
|
|
1150
1177
|
}, [e.shouldShowIcon(T) && b("i", {
|
|
1151
1178
|
class: e.iconClass(T)
|
|
1152
1179
|
}, null), b("span", null, [T.text]), b("i", {
|
|
1153
1180
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1154
1181
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1155
|
-
}, null)]),
|
|
1182
|
+
}, null)]), s(T)]);
|
|
1156
1183
|
}
|
|
1157
1184
|
function y() {
|
|
1158
|
-
|
|
1185
|
+
c();
|
|
1159
1186
|
}
|
|
1160
1187
|
return {
|
|
1161
1188
|
renderToolbarDropdown: S,
|
|
@@ -1163,74 +1190,75 @@ function Ot(n, e) {
|
|
|
1163
1190
|
};
|
|
1164
1191
|
}
|
|
1165
1192
|
const {
|
|
1166
|
-
buildResponseToolbarItems:
|
|
1167
|
-
} =
|
|
1193
|
+
buildResponseToolbarItems: be
|
|
1194
|
+
} = xe(), Z = /* @__PURE__ */ z({
|
|
1168
1195
|
name: "FResponseToolbar",
|
|
1169
1196
|
props: ue,
|
|
1170
1197
|
emits: ["click"],
|
|
1171
1198
|
setup(n, e) {
|
|
1172
|
-
const t = M(
|
|
1199
|
+
const t = M(be(n.items)), s = M(), c = M(), g = M(), d = M(n.alignment), P = {
|
|
1173
1200
|
id: "__more_buttons__",
|
|
1174
1201
|
text: "更多"
|
|
1175
|
-
}, S = M(new J(
|
|
1202
|
+
}, S = M(new J(P)), y = ke(), T = F(() => S.value.children.length > 0), p = F(() => Y({
|
|
1176
1203
|
"f-toolbar": !0,
|
|
1177
1204
|
"f-response-toolbar": !0,
|
|
1178
1205
|
"position-relative": !0
|
|
1179
1206
|
}, n.customClass)), i = F(() => ({
|
|
1207
|
+
"w-100": !0,
|
|
1180
1208
|
"d-flex": !0,
|
|
1181
1209
|
"flex-nowrap": !0,
|
|
1182
|
-
"justify-content-end":
|
|
1183
|
-
"justify-content-start":
|
|
1210
|
+
"justify-content-end": d.value === "right",
|
|
1211
|
+
"justify-content-start": d.value === "left"
|
|
1184
1212
|
})), {
|
|
1185
|
-
renderToolbarDropdown:
|
|
1186
|
-
clearAllDropDown:
|
|
1187
|
-
} =
|
|
1213
|
+
renderToolbarDropdown: f,
|
|
1214
|
+
clearAllDropDown: l
|
|
1215
|
+
} = _t(n, y);
|
|
1188
1216
|
function C() {
|
|
1189
|
-
t.value.filter((
|
|
1190
|
-
|
|
1191
|
-
}), S.value.expanded = !1,
|
|
1217
|
+
t.value.filter((m) => m.children && m.children.length > 0).forEach((m) => {
|
|
1218
|
+
m.expanded = !1;
|
|
1219
|
+
}), S.value.expanded = !1, l();
|
|
1192
1220
|
}
|
|
1193
|
-
function w(
|
|
1221
|
+
function w(m) {
|
|
1194
1222
|
const x = {
|
|
1195
1223
|
btn: !0,
|
|
1196
1224
|
"f-rt-btn": !0,
|
|
1197
|
-
"f-btn-ml":
|
|
1198
|
-
"f-btn-mr":
|
|
1199
|
-
"btn-icontext": !!(
|
|
1225
|
+
"f-btn-ml": d.value === "right",
|
|
1226
|
+
"f-btn-mr": d.value === "left",
|
|
1227
|
+
"btn-icontext": !!(m.icon && m.icon.trim())
|
|
1200
1228
|
};
|
|
1201
|
-
if (
|
|
1202
|
-
const k =
|
|
1203
|
-
k && k.length && k.reduce((
|
|
1229
|
+
if (m.class) {
|
|
1230
|
+
const k = m.class.split(" ");
|
|
1231
|
+
k && k.length && k.reduce((u, r) => (u[r] = !0, u), x);
|
|
1204
1232
|
}
|
|
1205
1233
|
return x;
|
|
1206
1234
|
}
|
|
1207
|
-
function j(
|
|
1208
|
-
document.body.click(), x.onClick(
|
|
1235
|
+
function j(m, x) {
|
|
1236
|
+
document.body.click(), typeof x.onClick == "function" && x.onClick(m, x.id), e.emit("click", m, x.id);
|
|
1209
1237
|
}
|
|
1210
|
-
function I(
|
|
1238
|
+
function I(m) {
|
|
1211
1239
|
return b("button", {
|
|
1212
1240
|
type: "button",
|
|
1213
|
-
class: w(
|
|
1214
|
-
id:
|
|
1215
|
-
disabled: !
|
|
1216
|
-
onClick: (x) => j(x,
|
|
1217
|
-
}, [y.shouldShowIcon(
|
|
1218
|
-
class: y.iconClass(
|
|
1219
|
-
}, null),
|
|
1241
|
+
class: w(m),
|
|
1242
|
+
id: m.id,
|
|
1243
|
+
disabled: !m.enable,
|
|
1244
|
+
onClick: (x) => j(x, m)
|
|
1245
|
+
}, [y.shouldShowIcon(m) && b("i", {
|
|
1246
|
+
class: y.iconClass(m)
|
|
1247
|
+
}, null), m.text]);
|
|
1220
1248
|
}
|
|
1221
|
-
const
|
|
1222
|
-
function $(
|
|
1223
|
-
const x =
|
|
1224
|
-
let k =
|
|
1225
|
-
const
|
|
1226
|
-
if (
|
|
1227
|
-
const E =
|
|
1249
|
+
const D = /* @__PURE__ */ new Map(), A = [];
|
|
1250
|
+
function $(m) {
|
|
1251
|
+
const x = g.value;
|
|
1252
|
+
let k = m;
|
|
1253
|
+
const u = Array.from(x.children), r = u[u.length - 1].id === "__more_buttons__" ? u[u.length - 1] : null;
|
|
1254
|
+
if (r) {
|
|
1255
|
+
const E = r.computedStyleMap().get("margin-left"), R = r.computedStyleMap().get("margin-right"), L = (E ? E.value : 0) + r.getBoundingClientRect().width + (R ? R.value : 0);
|
|
1228
1256
|
k -= L;
|
|
1229
1257
|
}
|
|
1230
|
-
const o =
|
|
1258
|
+
const o = u.filter((E) => E.id !== "__more_buttons__");
|
|
1231
1259
|
for (const E of o) {
|
|
1232
1260
|
const R = E.computedStyleMap().get("margin-left"), L = E.computedStyleMap().get("margin-right"), N = (R ? R.value : 0) + E.getBoundingClientRect().width + (L ? L.value : 0);
|
|
1233
|
-
k < N ? (
|
|
1261
|
+
k < N ? (D.set(E.id, !0), A.push({
|
|
1234
1262
|
id: E.id,
|
|
1235
1263
|
width: N
|
|
1236
1264
|
})) : k -= N;
|
|
@@ -1239,102 +1267,102 @@ const {
|
|
|
1239
1267
|
for (let E = A.length - 1; E >= 0; E--) {
|
|
1240
1268
|
const R = A[E].width;
|
|
1241
1269
|
if (k >= R)
|
|
1242
|
-
k -= R,
|
|
1270
|
+
k -= R, D.delete(A[E].id), A.pop();
|
|
1243
1271
|
else
|
|
1244
1272
|
break;
|
|
1245
1273
|
}
|
|
1246
1274
|
const a = Object.assign({}, S.value);
|
|
1247
1275
|
a.children = [];
|
|
1248
|
-
const
|
|
1249
|
-
S.value =
|
|
1276
|
+
const h = new J(a), B = t.value.reduce((E, R) => (D.has(R.id) && h.children.push(R), R.visible = !D.has(R.id), E.push(R), E), []);
|
|
1277
|
+
S.value = h, t.value = B;
|
|
1250
1278
|
}
|
|
1251
|
-
const v = new ResizeObserver((
|
|
1252
|
-
if (
|
|
1253
|
-
const k =
|
|
1254
|
-
(k <
|
|
1279
|
+
const v = new ResizeObserver((m) => {
|
|
1280
|
+
if (m.length) {
|
|
1281
|
+
const k = m[0].contentRect.width, r = g.value.getBoundingClientRect().width;
|
|
1282
|
+
(k < r || A.length) && ($(k), C());
|
|
1255
1283
|
}
|
|
1256
1284
|
});
|
|
1257
1285
|
return H(() => {
|
|
1258
|
-
const
|
|
1259
|
-
v.observe(
|
|
1286
|
+
const m = c.value;
|
|
1287
|
+
v.observe(m), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
|
|
1260
1288
|
}), ie(() => {
|
|
1261
1289
|
v.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
|
|
1262
1290
|
}), G(() => n.items, () => {
|
|
1263
|
-
t.value =
|
|
1291
|
+
t.value = be(n.items);
|
|
1264
1292
|
}, {
|
|
1265
1293
|
deep: !0
|
|
1266
1294
|
}), e.expose({
|
|
1267
|
-
elementRef:
|
|
1295
|
+
elementRef: s
|
|
1268
1296
|
}), () => b("div", {
|
|
1269
|
-
class:
|
|
1270
|
-
ref:
|
|
1297
|
+
class: p.value,
|
|
1298
|
+
ref: s
|
|
1271
1299
|
}, [b("div", {
|
|
1272
|
-
ref:
|
|
1300
|
+
ref: c,
|
|
1273
1301
|
class: i.value
|
|
1274
1302
|
}, [b("div", {
|
|
1275
|
-
ref:
|
|
1303
|
+
ref: g,
|
|
1276
1304
|
class: "d-inline-block f-response-content",
|
|
1277
1305
|
style: "white-space: nowrap;"
|
|
1278
|
-
}, [t.value.filter((
|
|
1306
|
+
}, [t.value.filter((m) => m.visible).map((m) => m.children && m.children.length > 0 ? f(m) : I(m)), T.value && f(S.value)])])]);
|
|
1279
1307
|
}
|
|
1280
1308
|
});
|
|
1281
|
-
function
|
|
1282
|
-
const t = V("design-item-context"),
|
|
1309
|
+
function Ft(n, e) {
|
|
1310
|
+
const t = V("design-item-context"), s = V("toolbar-item-handler", () => {
|
|
1283
1311
|
});
|
|
1284
|
-
function
|
|
1285
|
-
|
|
1312
|
+
function c() {
|
|
1313
|
+
s && s();
|
|
1286
1314
|
}
|
|
1287
|
-
function
|
|
1315
|
+
function g(r) {
|
|
1288
1316
|
const o = {
|
|
1289
1317
|
"dropdown-menu": !0
|
|
1290
1318
|
};
|
|
1291
|
-
if (
|
|
1292
|
-
const a =
|
|
1293
|
-
a && a.length && a.reduce((
|
|
1319
|
+
if (r.class) {
|
|
1320
|
+
const a = r.menuClass.split(" ");
|
|
1321
|
+
a && a.length && a.reduce((h, B) => (h[B] = !0, h), o);
|
|
1294
1322
|
}
|
|
1295
1323
|
return o;
|
|
1296
1324
|
}
|
|
1297
|
-
function
|
|
1325
|
+
function d(r) {
|
|
1298
1326
|
const o = {
|
|
1299
|
-
disabled: !
|
|
1327
|
+
disabled: !r.enable,
|
|
1300
1328
|
"dropdown-submenu": !0,
|
|
1301
1329
|
"f-rt-dropdown": !0
|
|
1302
|
-
}, a =
|
|
1303
|
-
return a && a.length && a.reduce((
|
|
1330
|
+
}, a = r.dropdownClass.split(" ");
|
|
1331
|
+
return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
|
|
1304
1332
|
}
|
|
1305
|
-
function
|
|
1333
|
+
function P(r) {
|
|
1306
1334
|
const o = {
|
|
1307
|
-
disabled: !
|
|
1335
|
+
disabled: !r.enable,
|
|
1308
1336
|
"dropdown-item": !0,
|
|
1309
1337
|
"f-rt-btn": !0,
|
|
1310
1338
|
"position-relative": !0,
|
|
1311
1339
|
"farris-component": !0
|
|
1312
|
-
}, a =
|
|
1313
|
-
return a && a.length && a.reduce((
|
|
1340
|
+
}, a = r.class.split(" ");
|
|
1341
|
+
return a && a.length && a.reduce((h, B) => (h[B] = !0, h), o), o;
|
|
1314
1342
|
}
|
|
1315
1343
|
let S;
|
|
1316
1344
|
const y = /* @__PURE__ */ new Map();
|
|
1317
|
-
function T(
|
|
1345
|
+
function T(r, o, a) {
|
|
1318
1346
|
var B;
|
|
1319
|
-
((B =
|
|
1320
|
-
const
|
|
1321
|
-
if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? y.set(
|
|
1322
|
-
const E = y.get(
|
|
1347
|
+
((B = r.target) == null ? void 0 : B.id) === o.id && r.stopPropagation();
|
|
1348
|
+
const h = a ? a.id : "__top_item__";
|
|
1349
|
+
if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? y.set(h, o) : y.delete(h)), y.has(h) && y.get(h) !== o) {
|
|
1350
|
+
const E = y.get(h);
|
|
1323
1351
|
E && (E.expanded = !1);
|
|
1324
1352
|
}
|
|
1325
1353
|
}
|
|
1326
|
-
function
|
|
1327
|
-
|
|
1354
|
+
function p(r) {
|
|
1355
|
+
r && (r.stopPropagation(), r.preventDefault());
|
|
1328
1356
|
}
|
|
1329
1357
|
function i() {
|
|
1330
1358
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
|
|
1331
|
-
const
|
|
1332
|
-
Array.from(
|
|
1359
|
+
const r = document.getElementsByClassName("dgComponentSelected");
|
|
1360
|
+
Array.from(r).forEach((o) => o.classList.remove("dgComponentSelected"));
|
|
1333
1361
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1362
|
+
function f(r) {
|
|
1363
|
+
r.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1336
1364
|
}
|
|
1337
|
-
function
|
|
1365
|
+
function l(r) {
|
|
1338
1366
|
const {
|
|
1339
1367
|
buttons: o = []
|
|
1340
1368
|
} = t.schema;
|
|
@@ -1342,49 +1370,49 @@ function $t(n, e) {
|
|
|
1342
1370
|
o.forEach((E) => {
|
|
1343
1371
|
a = a.concat(E.children || []);
|
|
1344
1372
|
});
|
|
1345
|
-
const
|
|
1373
|
+
const h = a.findIndex((E) => E.id === r), B = h === -1 ? null : a[h];
|
|
1346
1374
|
return {
|
|
1347
|
-
index:
|
|
1375
|
+
index: h,
|
|
1348
1376
|
item: B
|
|
1349
1377
|
};
|
|
1350
1378
|
}
|
|
1351
|
-
function C(
|
|
1379
|
+
function C(r) {
|
|
1352
1380
|
const {
|
|
1353
1381
|
buttons: o = []
|
|
1354
|
-
} = t.schema, a = o.findIndex((B) => B.id ===
|
|
1382
|
+
} = t.schema, a = o.findIndex((B) => B.id === r), h = a === -1 ? null : o[a];
|
|
1355
1383
|
return {
|
|
1356
1384
|
index: a,
|
|
1357
|
-
item:
|
|
1385
|
+
item: h
|
|
1358
1386
|
};
|
|
1359
1387
|
}
|
|
1360
|
-
function w(
|
|
1361
|
-
var
|
|
1388
|
+
function w(r) {
|
|
1389
|
+
var h;
|
|
1362
1390
|
t.schema;
|
|
1363
1391
|
const {
|
|
1364
1392
|
index: o,
|
|
1365
1393
|
item: a
|
|
1366
|
-
} =
|
|
1367
|
-
(
|
|
1394
|
+
} = l(r);
|
|
1395
|
+
(h = t == null ? void 0 : t.setupContext) == null || h.emit("selectionChange", a == null ? void 0 : a.type, a);
|
|
1368
1396
|
}
|
|
1369
|
-
const j = function(
|
|
1397
|
+
const j = function(r) {
|
|
1370
1398
|
const {
|
|
1371
1399
|
componentType: o
|
|
1372
|
-
} =
|
|
1373
|
-
return a && !a.id && a.type === o && (a.id = `${
|
|
1400
|
+
} = r, a = U(o, r), h = o.toLowerCase().replace("-", "_");
|
|
1401
|
+
return a && !a.id && a.type === o && (a.id = `${h}_${Math.random().toString().slice(2, 6)}`), a;
|
|
1374
1402
|
}, I = function() {
|
|
1375
|
-
const
|
|
1403
|
+
const r = {
|
|
1376
1404
|
componentType: "response-toolbar-item",
|
|
1377
1405
|
parentComponentInstance: e.value,
|
|
1378
1406
|
targetPosition: -1
|
|
1379
1407
|
};
|
|
1380
|
-
return j(
|
|
1408
|
+
return j(r);
|
|
1381
1409
|
};
|
|
1382
|
-
function
|
|
1383
|
-
|
|
1410
|
+
function D(r, o) {
|
|
1411
|
+
p(r), i(), f(r), w(o.id);
|
|
1384
1412
|
}
|
|
1385
|
-
function A(
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1413
|
+
function A(r, o, a) {
|
|
1414
|
+
p(r);
|
|
1415
|
+
const h = o.id, B = a && a.id, {
|
|
1388
1416
|
buttons: E = []
|
|
1389
1417
|
} = t.schema;
|
|
1390
1418
|
if (!B)
|
|
@@ -1396,44 +1424,44 @@ function $t(n, e) {
|
|
|
1396
1424
|
return;
|
|
1397
1425
|
const {
|
|
1398
1426
|
index: L
|
|
1399
|
-
} =
|
|
1400
|
-
L !== -1 && (E[R].children.splice(L, 1),
|
|
1427
|
+
} = l(h);
|
|
1428
|
+
L !== -1 && (E[R].children.splice(L, 1), c());
|
|
1401
1429
|
}
|
|
1402
|
-
function $(
|
|
1403
|
-
|
|
1404
|
-
const
|
|
1430
|
+
function $(r, o, a) {
|
|
1431
|
+
p(r);
|
|
1432
|
+
const h = a && a.id, {
|
|
1405
1433
|
buttons: B = []
|
|
1406
1434
|
} = t.schema;
|
|
1407
|
-
if (!
|
|
1435
|
+
if (!h)
|
|
1408
1436
|
return;
|
|
1409
1437
|
const {
|
|
1410
1438
|
index: E
|
|
1411
|
-
} = C(
|
|
1439
|
+
} = C(h);
|
|
1412
1440
|
if (E === -1)
|
|
1413
1441
|
return;
|
|
1414
1442
|
const R = I(), L = Object.assign({}, R, {
|
|
1415
1443
|
text: o.text
|
|
1416
1444
|
});
|
|
1417
|
-
B[E].children.push(L),
|
|
1445
|
+
B[E].children.push(L), c();
|
|
1418
1446
|
}
|
|
1419
|
-
function v(
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1447
|
+
function v(r, o, a) {
|
|
1448
|
+
p(r);
|
|
1449
|
+
const h = a && a.id, {
|
|
1422
1450
|
buttons: B = []
|
|
1423
1451
|
} = t.schema;
|
|
1424
|
-
if (!
|
|
1452
|
+
if (!h)
|
|
1425
1453
|
return;
|
|
1426
1454
|
const {
|
|
1427
1455
|
index: E
|
|
1428
|
-
} = C(
|
|
1456
|
+
} = C(h);
|
|
1429
1457
|
if (E === -1)
|
|
1430
1458
|
return;
|
|
1431
1459
|
const R = I(), L = Object.assign({}, R, {
|
|
1432
1460
|
text: "按钮"
|
|
1433
1461
|
});
|
|
1434
|
-
B[E].children.push(L),
|
|
1462
|
+
B[E].children.push(L), c();
|
|
1435
1463
|
}
|
|
1436
|
-
function
|
|
1464
|
+
function m(r, o) {
|
|
1437
1465
|
return b("div", {
|
|
1438
1466
|
class: "component-btn-group"
|
|
1439
1467
|
}, [b("div", null, [b("div", {
|
|
@@ -1442,7 +1470,7 @@ function $t(n, e) {
|
|
|
1442
1470
|
title: "删除",
|
|
1443
1471
|
ref: "removeButton",
|
|
1444
1472
|
style: "position:static;",
|
|
1445
|
-
onClick: (a) => A(a,
|
|
1473
|
+
onClick: (a) => A(a, r, o)
|
|
1446
1474
|
}, [b("i", {
|
|
1447
1475
|
class: "f-icon f-icon-yxs_delete"
|
|
1448
1476
|
}, null)]), b("div", {
|
|
@@ -1451,7 +1479,7 @@ function $t(n, e) {
|
|
|
1451
1479
|
title: "复制",
|
|
1452
1480
|
ref: "copyButton",
|
|
1453
1481
|
style: "position:static;",
|
|
1454
|
-
onClick: (a) => $(a,
|
|
1482
|
+
onClick: (a) => $(a, r, o)
|
|
1455
1483
|
}, [b("i", {
|
|
1456
1484
|
class: "f-icon f-icon-yxs_copy"
|
|
1457
1485
|
}, null)]), b("div", {
|
|
@@ -1460,36 +1488,36 @@ function $t(n, e) {
|
|
|
1460
1488
|
title: "新增同级",
|
|
1461
1489
|
ref: "appendSame",
|
|
1462
1490
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1463
|
-
onClick: (a) => v(a,
|
|
1491
|
+
onClick: (a) => v(a, r, o)
|
|
1464
1492
|
}, [b("i", {
|
|
1465
1493
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1466
1494
|
}, null), b("span", {
|
|
1467
1495
|
style: "font-size:13px;margin:auto"
|
|
1468
1496
|
}, [Q("新增同级")])])])]);
|
|
1469
1497
|
}
|
|
1470
|
-
function x(
|
|
1471
|
-
return
|
|
1472
|
-
class:
|
|
1498
|
+
function x(r) {
|
|
1499
|
+
return r.children.map((o) => o.children && o.children.length ? b("li", {
|
|
1500
|
+
class: d(o),
|
|
1473
1501
|
id: o.id,
|
|
1474
|
-
onClick: (a) => o.enable && T(a, o,
|
|
1502
|
+
onClick: (a) => o.enable && T(a, o, r)
|
|
1475
1503
|
}, [b("span", {
|
|
1476
1504
|
id: o.id,
|
|
1477
|
-
class:
|
|
1478
|
-
onMouseover: (a) => o.enable && T(a, o,
|
|
1505
|
+
class: P(o),
|
|
1506
|
+
onMouseover: (a) => o.enable && T(a, o, r)
|
|
1479
1507
|
}, [o.text, b("i", {
|
|
1480
1508
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1481
1509
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1482
1510
|
}, null)]), S(o, o)]) : b("li", {
|
|
1483
|
-
class:
|
|
1511
|
+
class: P(o),
|
|
1484
1512
|
id: o.id,
|
|
1485
|
-
onClick: (a) =>
|
|
1486
|
-
}, [
|
|
1513
|
+
onClick: (a) => D(a, o)
|
|
1514
|
+
}, [m(o, r), n.shouldShowIcon(o) && b("i", {
|
|
1487
1515
|
class: n.iconClass(o)
|
|
1488
1516
|
}, null), o.text]));
|
|
1489
1517
|
}
|
|
1490
|
-
function k(
|
|
1491
|
-
const
|
|
1492
|
-
display:
|
|
1518
|
+
function k(r, o, a) {
|
|
1519
|
+
const h = {
|
|
1520
|
+
display: r.expanded ? "block" : "none",
|
|
1493
1521
|
position: "fixed",
|
|
1494
1522
|
maxWidth: "300px",
|
|
1495
1523
|
width: "auto",
|
|
@@ -1503,131 +1531,131 @@ function $t(n, e) {
|
|
|
1503
1531
|
right: W,
|
|
1504
1532
|
height: q
|
|
1505
1533
|
} = R[0], te = Math.ceil(q + L);
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1534
|
+
h.top = `${te}px`, h.left = `${_}px`;
|
|
1535
|
+
const Oe = r.id + "_menu", ne = o ? o.querySelector("#" + Oe) : null;
|
|
1508
1536
|
if (ne) {
|
|
1509
|
-
|
|
1537
|
+
h.display === "block" && (ne.style.display = "block");
|
|
1510
1538
|
const fe = ne.getBoundingClientRect();
|
|
1511
1539
|
if (a) {
|
|
1512
|
-
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1540
|
+
h.top = `${L - 6}px`;
|
|
1541
|
+
const $e = Math.ceil(N + _);
|
|
1542
|
+
h.left = `${$e}px`;
|
|
1515
1543
|
}
|
|
1516
|
-
B - _ - N < fe.width && (
|
|
1544
|
+
B - _ - N < fe.width && (h.left = `${(a ? _ : W) - fe.width}px`);
|
|
1517
1545
|
}
|
|
1518
1546
|
}
|
|
1519
|
-
return
|
|
1547
|
+
return h;
|
|
1520
1548
|
}
|
|
1521
|
-
S = function(
|
|
1549
|
+
S = function(r, o) {
|
|
1522
1550
|
var E, R;
|
|
1523
|
-
const a =
|
|
1551
|
+
const a = Ce(), h = o ? o.id : r.id, B = (R = (E = a == null ? void 0 : a.exposed) == null ? void 0 : E.elementRef.value) == null ? void 0 : R.querySelector("#" + h);
|
|
1524
1552
|
return b("ul", {
|
|
1525
|
-
class:
|
|
1526
|
-
style: k(
|
|
1527
|
-
id:
|
|
1528
|
-
}, [x(
|
|
1553
|
+
class: g(r),
|
|
1554
|
+
style: k(r, B, o),
|
|
1555
|
+
id: r.id + "_menu"
|
|
1556
|
+
}, [x(r)]);
|
|
1529
1557
|
};
|
|
1530
|
-
function
|
|
1531
|
-
y.forEach((
|
|
1532
|
-
|
|
1558
|
+
function u() {
|
|
1559
|
+
y.forEach((r) => {
|
|
1560
|
+
r.expanded = !1;
|
|
1533
1561
|
}), y.clear();
|
|
1534
1562
|
}
|
|
1535
1563
|
return {
|
|
1536
1564
|
renderDropdownMenu: S,
|
|
1537
|
-
clearAllDropDownMenu:
|
|
1565
|
+
clearAllDropDownMenu: u
|
|
1538
1566
|
};
|
|
1539
1567
|
}
|
|
1540
|
-
function
|
|
1541
|
-
const
|
|
1542
|
-
renderDropdownMenu:
|
|
1543
|
-
clearAllDropDownMenu:
|
|
1544
|
-
} =
|
|
1568
|
+
function Lt(n, e, t) {
|
|
1569
|
+
const s = M(n.alignment), {
|
|
1570
|
+
renderDropdownMenu: c,
|
|
1571
|
+
clearAllDropDownMenu: g
|
|
1572
|
+
} = Ft(e, t), d = V("design-item-context"), P = V("toolbar-item-handler", () => {
|
|
1545
1573
|
});
|
|
1546
1574
|
function S() {
|
|
1547
|
-
|
|
1575
|
+
P && P();
|
|
1548
1576
|
}
|
|
1549
|
-
function y(
|
|
1550
|
-
const
|
|
1577
|
+
function y(u) {
|
|
1578
|
+
const r = {
|
|
1551
1579
|
"btn-group": !0,
|
|
1552
1580
|
"f-rt-dropdown": !0,
|
|
1553
|
-
"f-btn-ml":
|
|
1554
|
-
"f-btn-mr":
|
|
1555
|
-
}, o =
|
|
1556
|
-
return o && o.length && o.reduce((a,
|
|
1581
|
+
"f-btn-ml": s.value === "right",
|
|
1582
|
+
"f-btn-mr": s.value === "left"
|
|
1583
|
+
}, o = u.dropdownClass.split(" ");
|
|
1584
|
+
return o && o.length && o.reduce((a, h) => (a[h] = !0, a), r), r;
|
|
1557
1585
|
}
|
|
1558
|
-
function T(
|
|
1559
|
-
const
|
|
1586
|
+
function T(u) {
|
|
1587
|
+
const r = {
|
|
1560
1588
|
btn: !0,
|
|
1561
|
-
disabled: !
|
|
1589
|
+
disabled: !u.enable,
|
|
1562
1590
|
"position-relative": !0,
|
|
1563
1591
|
"farris-component": !0,
|
|
1564
1592
|
"f-rt-btn": !0,
|
|
1565
|
-
"btn-icontext": !!(
|
|
1593
|
+
"btn-icontext": !!(u.icon && u.icon.trim())
|
|
1566
1594
|
};
|
|
1567
|
-
if (
|
|
1568
|
-
const o =
|
|
1569
|
-
o && o.length && o.reduce((a,
|
|
1595
|
+
if (u.class) {
|
|
1596
|
+
const o = u.class.split(" ");
|
|
1597
|
+
o && o.length && o.reduce((a, h) => (a[h] = !0, a), r);
|
|
1570
1598
|
}
|
|
1571
|
-
return
|
|
1599
|
+
return r;
|
|
1572
1600
|
}
|
|
1573
|
-
function
|
|
1574
|
-
|
|
1601
|
+
function p(u) {
|
|
1602
|
+
u && (u.stopPropagation(), u.preventDefault());
|
|
1575
1603
|
}
|
|
1576
|
-
function i(
|
|
1577
|
-
|
|
1578
|
-
const o =
|
|
1579
|
-
document.body.click(),
|
|
1604
|
+
function i(u, r) {
|
|
1605
|
+
p(u);
|
|
1606
|
+
const o = r.expanded;
|
|
1607
|
+
document.body.click(), r.expanded = !o;
|
|
1580
1608
|
}
|
|
1581
|
-
const
|
|
1609
|
+
const f = function(u) {
|
|
1582
1610
|
const {
|
|
1583
|
-
componentType:
|
|
1584
|
-
} =
|
|
1585
|
-
return o && !o.id && o.type ===
|
|
1586
|
-
},
|
|
1587
|
-
const
|
|
1611
|
+
componentType: r
|
|
1612
|
+
} = u, o = U(r, u), a = r.toLowerCase().replace("-", "_");
|
|
1613
|
+
return o && !o.id && o.type === r && (o.id = `${a}_${Math.random().toString().slice(2, 6)}`), o;
|
|
1614
|
+
}, l = function() {
|
|
1615
|
+
const u = {
|
|
1588
1616
|
componentType: "response-toolbar-item",
|
|
1589
1617
|
parentComponentInstance: t.value,
|
|
1590
1618
|
targetPosition: -1
|
|
1591
1619
|
};
|
|
1592
|
-
return
|
|
1620
|
+
return f(u);
|
|
1593
1621
|
};
|
|
1594
|
-
function C(
|
|
1595
|
-
const
|
|
1622
|
+
function C(u) {
|
|
1623
|
+
const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((h) => h.id === u), a = o === -1 ? null : r[o];
|
|
1596
1624
|
return {
|
|
1597
1625
|
index: o,
|
|
1598
1626
|
toolbarItem: a
|
|
1599
1627
|
};
|
|
1600
1628
|
}
|
|
1601
|
-
function w(
|
|
1629
|
+
function w(u, r) {
|
|
1602
1630
|
var R;
|
|
1603
1631
|
const {
|
|
1604
1632
|
index: o,
|
|
1605
1633
|
toolbarItem: a
|
|
1606
|
-
} = C(
|
|
1634
|
+
} = C(r);
|
|
1607
1635
|
if (o === -1)
|
|
1608
1636
|
return;
|
|
1609
|
-
const
|
|
1610
|
-
text:
|
|
1637
|
+
const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
|
|
1638
|
+
text: h
|
|
1611
1639
|
});
|
|
1612
|
-
(R =
|
|
1640
|
+
(R = d.schema.buttons) == null || R.push(E), S();
|
|
1613
1641
|
}
|
|
1614
|
-
function j(
|
|
1642
|
+
function j(u, r) {
|
|
1615
1643
|
const {
|
|
1616
1644
|
index: o,
|
|
1617
1645
|
toolbarItem: a
|
|
1618
|
-
} = C(
|
|
1646
|
+
} = C(r);
|
|
1619
1647
|
if (o === -1)
|
|
1620
1648
|
return;
|
|
1621
|
-
const
|
|
1622
|
-
text:
|
|
1623
|
-
}), R =
|
|
1624
|
-
R.push(E),
|
|
1649
|
+
const h = a.text || "按钮", B = l(), E = Object.assign({}, B, {
|
|
1650
|
+
text: h
|
|
1651
|
+
}), R = d.schema.buttons[o].children || [];
|
|
1652
|
+
R.push(E), d.schema.buttons[o].children = R, S();
|
|
1625
1653
|
}
|
|
1626
|
-
function I(
|
|
1627
|
-
const o =
|
|
1654
|
+
function I(u, r) {
|
|
1655
|
+
const o = d.schema.buttons || d.schema.contents, a = o == null ? void 0 : o.findIndex((h) => h.id === r);
|
|
1628
1656
|
a !== -1 && (o.splice(a, 1), S());
|
|
1629
1657
|
}
|
|
1630
|
-
function
|
|
1658
|
+
function D(u) {
|
|
1631
1659
|
return b("div", {
|
|
1632
1660
|
class: "component-btn-group"
|
|
1633
1661
|
}, [b("div", null, [b("div", {
|
|
@@ -1636,7 +1664,7 @@ function Nt(n, e, t) {
|
|
|
1636
1664
|
title: "删除",
|
|
1637
1665
|
ref: "removeButton",
|
|
1638
1666
|
style: "position:static;",
|
|
1639
|
-
onClick: (
|
|
1667
|
+
onClick: (r) => I(r, u)
|
|
1640
1668
|
}, [b("i", {
|
|
1641
1669
|
class: "f-icon f-icon-yxs_delete"
|
|
1642
1670
|
}, null)]), b("div", {
|
|
@@ -1645,7 +1673,7 @@ function Nt(n, e, t) {
|
|
|
1645
1673
|
title: "复制",
|
|
1646
1674
|
ref: "copyButton",
|
|
1647
1675
|
style: "position:static;",
|
|
1648
|
-
onClick: (
|
|
1676
|
+
onClick: (r) => w(r, u)
|
|
1649
1677
|
}, [b("i", {
|
|
1650
1678
|
class: "f-icon f-icon-yxs_copy"
|
|
1651
1679
|
}, null)]), b("div", {
|
|
@@ -1654,7 +1682,7 @@ function Nt(n, e, t) {
|
|
|
1654
1682
|
title: "新增子级",
|
|
1655
1683
|
ref: "appendChildButton",
|
|
1656
1684
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1657
|
-
onClick: (
|
|
1685
|
+
onClick: (r) => j(r, u)
|
|
1658
1686
|
}, [b("i", {
|
|
1659
1687
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1660
1688
|
}, null), b("span", {
|
|
@@ -1662,59 +1690,59 @@ function Nt(n, e, t) {
|
|
|
1662
1690
|
}, [Q("新增子级")])])])]);
|
|
1663
1691
|
}
|
|
1664
1692
|
function A() {
|
|
1665
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
1666
|
-
const
|
|
1667
|
-
Array.from(
|
|
1693
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((r) => r.classList.remove("dgComponentFocused"));
|
|
1694
|
+
const u = document.getElementsByClassName("dgComponentSelected");
|
|
1695
|
+
Array.from(u).forEach((r) => r.classList.remove("dgComponentSelected"));
|
|
1668
1696
|
}
|
|
1669
|
-
function $(
|
|
1670
|
-
|
|
1697
|
+
function $(u) {
|
|
1698
|
+
u.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1671
1699
|
}
|
|
1672
|
-
function v(
|
|
1673
|
-
var
|
|
1674
|
-
const
|
|
1700
|
+
function v(u) {
|
|
1701
|
+
var h;
|
|
1702
|
+
const r = d.schema.buttons || d.schema.contents, o = r == null ? void 0 : r.findIndex((B) => B.id === u);
|
|
1675
1703
|
if (o === -1)
|
|
1676
1704
|
return;
|
|
1677
|
-
const a =
|
|
1678
|
-
(
|
|
1705
|
+
const a = r[o];
|
|
1706
|
+
(h = d == null ? void 0 : d.setupContext) == null || h.emit("selectionChange", "response-toolbar-item", a);
|
|
1679
1707
|
}
|
|
1680
|
-
function
|
|
1681
|
-
|
|
1708
|
+
function m(u, r) {
|
|
1709
|
+
p(u), A(), $(u), p(u), i(u, r), v(r.id);
|
|
1682
1710
|
}
|
|
1683
|
-
function x(
|
|
1711
|
+
function x(u) {
|
|
1684
1712
|
return b("div", {
|
|
1685
|
-
id:
|
|
1686
|
-
class: y(
|
|
1713
|
+
id: u.id,
|
|
1714
|
+
class: y(u)
|
|
1687
1715
|
}, [b("div", {
|
|
1688
|
-
class: T(
|
|
1716
|
+
class: T(u),
|
|
1689
1717
|
style: "display: flex;padding-right: 0.1rem;",
|
|
1690
|
-
onClick: (
|
|
1691
|
-
}, [
|
|
1692
|
-
class: e.iconClass(
|
|
1693
|
-
}, null), b("span", null, [
|
|
1718
|
+
onClick: (r) => u.enable && m(r, u)
|
|
1719
|
+
}, [D(u.id), e.shouldShowIcon(u) && b("i", {
|
|
1720
|
+
class: e.iconClass(u)
|
|
1721
|
+
}, null), b("span", null, [u.text]), b("i", {
|
|
1694
1722
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1695
1723
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1696
|
-
}, null)]), u
|
|
1724
|
+
}, null)]), c(u)]);
|
|
1697
1725
|
}
|
|
1698
1726
|
function k() {
|
|
1699
|
-
|
|
1727
|
+
g();
|
|
1700
1728
|
}
|
|
1701
1729
|
return {
|
|
1702
1730
|
renderToolbarDropdown: x,
|
|
1703
1731
|
clearAllDropDown: k
|
|
1704
1732
|
};
|
|
1705
1733
|
}
|
|
1706
|
-
function
|
|
1734
|
+
function Vt() {
|
|
1707
1735
|
function n(e) {
|
|
1708
|
-
var
|
|
1736
|
+
var c, g;
|
|
1709
1737
|
if (!e)
|
|
1710
1738
|
return !1;
|
|
1711
|
-
const t = ((
|
|
1739
|
+
const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
|
|
1712
1740
|
if (!t)
|
|
1713
1741
|
return !1;
|
|
1714
|
-
const
|
|
1742
|
+
const s = (g = t.schema.appearance) == null ? void 0 : g.class;
|
|
1715
1743
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
1716
|
-
const
|
|
1717
|
-
if (t.schema.type !== "response-layout-item" && !
|
|
1744
|
+
const d = t.schema.type, P = (d === "response-form" || d === "content-container") && s && s.includes("farris-form");
|
|
1745
|
+
if (t.schema.type !== "response-layout-item" && !P)
|
|
1718
1746
|
return !1;
|
|
1719
1747
|
}
|
|
1720
1748
|
return e.controlType !== "field-set";
|
|
@@ -1723,7 +1751,7 @@ function _t() {
|
|
|
1723
1751
|
basalDragulaRuleForContainer: n
|
|
1724
1752
|
};
|
|
1725
1753
|
}
|
|
1726
|
-
const
|
|
1754
|
+
const Wt = "https://json-schema.org/draft/2020-12/schema", Ut = "https://farris-design.gitee.io/dragging-rules.schema.json", qt = "Dragging Rules", Ht = "The rules of designer canvas", zt = "object", Gt = {
|
|
1727
1755
|
"f-page": {
|
|
1728
1756
|
description: "The root class of page designed by farris.",
|
|
1729
1757
|
type: "object",
|
|
@@ -2361,105 +2389,105 @@ const Ft = "https://json-schema.org/draft/2020-12/schema", Lt = "https://farris-
|
|
|
2361
2389
|
description: "",
|
|
2362
2390
|
type: "object"
|
|
2363
2391
|
}
|
|
2364
|
-
},
|
|
2365
|
-
$schema:
|
|
2366
|
-
$id:
|
|
2367
|
-
title:
|
|
2368
|
-
description:
|
|
2369
|
-
type:
|
|
2370
|
-
properties:
|
|
2371
|
-
},
|
|
2372
|
-
function
|
|
2373
|
-
function n(
|
|
2392
|
+
}, Jt = {
|
|
2393
|
+
$schema: Wt,
|
|
2394
|
+
$id: Ut,
|
|
2395
|
+
title: qt,
|
|
2396
|
+
description: Ht,
|
|
2397
|
+
type: zt,
|
|
2398
|
+
properties: Gt
|
|
2399
|
+
}, re = /* @__PURE__ */ new Map();
|
|
2400
|
+
function Ae() {
|
|
2401
|
+
function n(l, C, w, j) {
|
|
2374
2402
|
var I;
|
|
2375
2403
|
if (typeof w == "number")
|
|
2376
|
-
return ((I = j[
|
|
2404
|
+
return ((I = j[l]) == null ? void 0 : I.length) === w;
|
|
2377
2405
|
if (typeof w == "object") {
|
|
2378
|
-
const
|
|
2379
|
-
if (
|
|
2380
|
-
return Number(j[
|
|
2381
|
-
if (
|
|
2382
|
-
return Number(j[
|
|
2383
|
-
if (
|
|
2384
|
-
return Number(j[
|
|
2406
|
+
const D = Object.keys(w)[0], A = w[D];
|
|
2407
|
+
if (D === "not")
|
|
2408
|
+
return Number(j[l].length) !== Number(A);
|
|
2409
|
+
if (D === "moreThan")
|
|
2410
|
+
return Number(j[l].length) >= Number(A);
|
|
2411
|
+
if (D === "lessThan")
|
|
2412
|
+
return Number(j[l].length) <= Number(A);
|
|
2385
2413
|
}
|
|
2386
2414
|
return !1;
|
|
2387
2415
|
}
|
|
2388
|
-
function e(
|
|
2416
|
+
function e(l, C, w, j) {
|
|
2389
2417
|
return typeof w == "boolean" ? j.childrenClassList.includes(C) === !!w : !1;
|
|
2390
2418
|
}
|
|
2391
|
-
function t(
|
|
2419
|
+
function t(l, C, w, j) {
|
|
2392
2420
|
return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
|
|
2393
2421
|
}
|
|
2394
|
-
function
|
|
2422
|
+
function s(l, C, w, j) {
|
|
2395
2423
|
return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
|
|
2396
2424
|
}
|
|
2397
|
-
const
|
|
2425
|
+
const c = /* @__PURE__ */ new Map([
|
|
2398
2426
|
["length", n],
|
|
2399
2427
|
["hasChildren", e],
|
|
2400
|
-
["hasSibling",
|
|
2428
|
+
["hasSibling", s],
|
|
2401
2429
|
["hasParent", t]
|
|
2402
2430
|
]);
|
|
2403
|
-
function
|
|
2404
|
-
const w =
|
|
2431
|
+
function g(l, C) {
|
|
2432
|
+
const w = l;
|
|
2405
2433
|
return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((j) => {
|
|
2406
2434
|
if (j === "length")
|
|
2407
2435
|
return { target: w, operator: "length", param: null, value: C[j] };
|
|
2408
|
-
const I = j,
|
|
2409
|
-
return { target: w, operator:
|
|
2436
|
+
const I = j, D = C[j];
|
|
2437
|
+
return { target: w, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: I, value: D };
|
|
2410
2438
|
}) : [];
|
|
2411
2439
|
}
|
|
2412
|
-
function
|
|
2413
|
-
if (
|
|
2414
|
-
const w =
|
|
2415
|
-
return w && w(
|
|
2440
|
+
function d(l, C) {
|
|
2441
|
+
if (c.has(l.operator)) {
|
|
2442
|
+
const w = c.get(l.operator);
|
|
2443
|
+
return w && w(l.target, l.param, l.value, C) || !1;
|
|
2416
2444
|
}
|
|
2417
2445
|
return !1;
|
|
2418
2446
|
}
|
|
2419
|
-
function
|
|
2420
|
-
return Object.keys(
|
|
2421
|
-
const $ =
|
|
2422
|
-
return
|
|
2423
|
-
}, []).reduce((
|
|
2447
|
+
function P(l, C) {
|
|
2448
|
+
return Object.keys(l).reduce((D, A) => {
|
|
2449
|
+
const $ = g(A, l[A]);
|
|
2450
|
+
return D.push(...$), D;
|
|
2451
|
+
}, []).reduce((D, A) => D && d(A, C), !0);
|
|
2424
2452
|
}
|
|
2425
|
-
function S(
|
|
2426
|
-
const w = Object.keys(
|
|
2453
|
+
function S(l, C) {
|
|
2454
|
+
const w = Object.keys(l), j = w.includes("allOf"), I = w.includes("anyOf"), D = j || I, v = (D ? l[D ? j ? "allOf" : "anyOf" : "allOf"] : [l]).map((x) => P(x, C));
|
|
2427
2455
|
return j ? !v.includes(!1) : v.includes(!0);
|
|
2428
2456
|
}
|
|
2429
|
-
function y(
|
|
2430
|
-
const w =
|
|
2457
|
+
function y(l, C) {
|
|
2458
|
+
const w = l.const;
|
|
2431
2459
|
return w ? typeof w == "boolean" ? w : typeof w == "object" ? S(w, C) : !1 : !1;
|
|
2432
2460
|
}
|
|
2433
|
-
function T(
|
|
2461
|
+
function T(l) {
|
|
2434
2462
|
return (C) => {
|
|
2435
2463
|
const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
2436
|
-
return
|
|
2437
|
-
const
|
|
2438
|
-
return j[I] = y(
|
|
2464
|
+
return l && l.properties && Object.keys(l.properties).reduce((j, I) => {
|
|
2465
|
+
const D = l.properties[I];
|
|
2466
|
+
return j[I] = y(D, C), j;
|
|
2439
2467
|
}, w), w;
|
|
2440
2468
|
};
|
|
2441
2469
|
}
|
|
2442
|
-
function l
|
|
2470
|
+
function p(l, C, w) {
|
|
2443
2471
|
if (C.type === "object" && C.properties) {
|
|
2444
2472
|
const { rules: j, contents: I } = C.properties;
|
|
2445
|
-
w.set(
|
|
2446
|
-
(
|
|
2473
|
+
w.set(l, T(j)), I && Object.keys(I.properties).forEach(
|
|
2474
|
+
(D) => p(D, I.properties[D], w)
|
|
2447
2475
|
);
|
|
2448
2476
|
}
|
|
2449
2477
|
}
|
|
2450
2478
|
function i() {
|
|
2451
|
-
const { properties:
|
|
2452
|
-
Object.keys(
|
|
2453
|
-
|
|
2479
|
+
const { properties: l } = Jt;
|
|
2480
|
+
Object.keys(l).forEach((C) => {
|
|
2481
|
+
p(C, l[C], re);
|
|
2454
2482
|
});
|
|
2455
2483
|
}
|
|
2456
|
-
function
|
|
2484
|
+
function f(l, C) {
|
|
2457
2485
|
const w = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
2458
|
-
return
|
|
2486
|
+
return re.has(l) ? re.get(l)(C) : w;
|
|
2459
2487
|
}
|
|
2460
|
-
return i(), { getRuleValue:
|
|
2488
|
+
return i(), { getRuleValue: f };
|
|
2461
2489
|
}
|
|
2462
|
-
class
|
|
2490
|
+
class Qt extends ee {
|
|
2463
2491
|
constructor(e, t) {
|
|
2464
2492
|
super(e, t);
|
|
2465
2493
|
}
|
|
@@ -2528,46 +2556,46 @@ class zt extends ee {
|
|
|
2528
2556
|
};
|
|
2529
2557
|
}
|
|
2530
2558
|
}
|
|
2531
|
-
function
|
|
2532
|
-
const
|
|
2533
|
-
let
|
|
2559
|
+
function Xt(n, e, t, s) {
|
|
2560
|
+
const c = Ae(), g = M(!1), d = M(!1);
|
|
2561
|
+
let P = !0, S = !1, y;
|
|
2534
2562
|
function T(v) {
|
|
2535
2563
|
return y && y.componentClassList && y.componentClassList.includes("f-form-layout") && y.componentClassList.includes("farris-form") ? v.sourceType === "control" && v.controlCategory === "input" || v.sourceType === "move" && v.controlType === "form-group" : !0;
|
|
2536
2564
|
}
|
|
2537
|
-
function
|
|
2538
|
-
return !
|
|
2565
|
+
function p(v) {
|
|
2566
|
+
return !Vt().basalDragulaRuleForContainer(v) || !P || !T(v), !1;
|
|
2539
2567
|
}
|
|
2540
2568
|
function i() {
|
|
2541
|
-
|
|
2542
|
-
const v = n,
|
|
2569
|
+
g.value = !1, d.value = !1;
|
|
2570
|
+
const v = n, m = v.appearance && v.appearance.class || "", x = m.split(" "), k = v.buttons || [], u = k.length ? k[0] : null, r = u && u.appearance ? u.appearance.class : "", o = r ? r.split(" ") : [], a = k.length ? k.reduce((_, W) => {
|
|
2543
2571
|
const q = W && W.appearance ? W.appearance.class : "", te = q ? q.split(" ") : [];
|
|
2544
2572
|
return _.push(...te), _;
|
|
2545
|
-
}, []) : [],
|
|
2573
|
+
}, []) : [], h = t == null ? void 0 : t.schema, B = h && h.appearance && h.appearance.class || "", E = B ? B.split(" ") : [];
|
|
2546
2574
|
y = {
|
|
2547
|
-
componentClass:
|
|
2575
|
+
componentClass: m,
|
|
2548
2576
|
componentClassList: x,
|
|
2549
2577
|
childContents: k,
|
|
2550
|
-
firstChildContent:
|
|
2551
|
-
firstChildClass:
|
|
2578
|
+
firstChildContent: u,
|
|
2579
|
+
firstChildClass: r,
|
|
2552
2580
|
firstChildClassList: o,
|
|
2553
|
-
parent:
|
|
2581
|
+
parent: h,
|
|
2554
2582
|
parentClass: B,
|
|
2555
2583
|
parentClassList: E,
|
|
2556
2584
|
children: k,
|
|
2557
2585
|
childrenClassList: a
|
|
2558
2586
|
};
|
|
2559
|
-
const { canAccept: R, fixed: L, hidePadding: N } =
|
|
2560
|
-
return
|
|
2587
|
+
const { canAccept: R, fixed: L, hidePadding: N } = c.getRuleValue(x[0], y);
|
|
2588
|
+
return P = R, S = N, !0;
|
|
2561
2589
|
}
|
|
2562
|
-
function
|
|
2590
|
+
function f(v) {
|
|
2563
2591
|
}
|
|
2564
|
-
function
|
|
2592
|
+
function l() {
|
|
2565
2593
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
2566
2594
|
}
|
|
2567
|
-
function C(v,
|
|
2568
|
-
return
|
|
2595
|
+
function C(v, m) {
|
|
2596
|
+
return m.text = v.label, m;
|
|
2569
2597
|
}
|
|
2570
|
-
function w(v,
|
|
2598
|
+
function w(v, m, x) {
|
|
2571
2599
|
const k = n;
|
|
2572
2600
|
if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2573
2601
|
const o = String(v.innerText), a = U("form-group");
|
|
@@ -2581,32 +2609,32 @@ function Gt(n, e, t, r) {
|
|
|
2581
2609
|
function I() {
|
|
2582
2610
|
return !1;
|
|
2583
2611
|
}
|
|
2584
|
-
function
|
|
2612
|
+
function D() {
|
|
2585
2613
|
return !0;
|
|
2586
2614
|
}
|
|
2587
2615
|
function A() {
|
|
2588
2616
|
return S;
|
|
2589
2617
|
}
|
|
2590
2618
|
function $(v) {
|
|
2591
|
-
return new
|
|
2619
|
+
return new Qt(v, e).getPropertyConfig(n);
|
|
2592
2620
|
}
|
|
2593
2621
|
return {
|
|
2594
|
-
canAccepts:
|
|
2595
|
-
checkCanAddComponent:
|
|
2622
|
+
canAccepts: p,
|
|
2623
|
+
checkCanAddComponent: D,
|
|
2596
2624
|
checkCanDeleteComponent: I,
|
|
2597
2625
|
checkCanMoveComponent: j,
|
|
2598
|
-
getStyles:
|
|
2626
|
+
getStyles: l,
|
|
2599
2627
|
hideNestedPaddingInDesginerView: A,
|
|
2600
2628
|
onAcceptNewChildElement: w,
|
|
2601
|
-
onAcceptMovedChildElement:
|
|
2629
|
+
onAcceptMovedChildElement: f,
|
|
2602
2630
|
onResolveNewComponentSchema: C,
|
|
2603
2631
|
resolveComponentContext: i,
|
|
2604
2632
|
getPropsConfig: $,
|
|
2605
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2606
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2633
|
+
triggerBelongedComponentToMoveWhenMoved: g,
|
|
2634
|
+
triggerBelongedComponentToDeleteWhenDeleted: d
|
|
2607
2635
|
};
|
|
2608
2636
|
}
|
|
2609
|
-
const
|
|
2637
|
+
const Yt = {
|
|
2610
2638
|
id: { type: String, default: "" },
|
|
2611
2639
|
componentId: { type: String, default: "" },
|
|
2612
2640
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -2620,11 +2648,11 @@ const Jt = {
|
|
|
2620
2648
|
*/
|
|
2621
2649
|
modelValue: { type: Object }
|
|
2622
2650
|
}, X = M(0);
|
|
2623
|
-
function
|
|
2624
|
-
const t = e.getBoundingClientRect(),
|
|
2625
|
-
return
|
|
2651
|
+
function Zt(n, e) {
|
|
2652
|
+
const t = e.getBoundingClientRect(), s = n.getBoundingClientRect(), c = s.top >= t.top, g = s.top <= t.bottom;
|
|
2653
|
+
return c && g;
|
|
2626
2654
|
}
|
|
2627
|
-
function
|
|
2655
|
+
function Kt(n) {
|
|
2628
2656
|
if (!n)
|
|
2629
2657
|
return;
|
|
2630
2658
|
let e;
|
|
@@ -2633,29 +2661,29 @@ function Xt(n) {
|
|
|
2633
2661
|
const t = e.getBoundingClientRect();
|
|
2634
2662
|
if (t.width === 0 && t.height === 0)
|
|
2635
2663
|
return;
|
|
2636
|
-
const
|
|
2637
|
-
if (
|
|
2638
|
-
if (!
|
|
2639
|
-
|
|
2664
|
+
const s = e.querySelector(".component-btn-group");
|
|
2665
|
+
if (s) {
|
|
2666
|
+
if (!Zt(e, n)) {
|
|
2667
|
+
s.style.display = "none";
|
|
2640
2668
|
return;
|
|
2641
2669
|
}
|
|
2642
|
-
|
|
2643
|
-
const
|
|
2644
|
-
if (
|
|
2645
|
-
const
|
|
2646
|
-
|
|
2670
|
+
s.style.display = "";
|
|
2671
|
+
const g = s.getBoundingClientRect(), d = s.querySelector("div");
|
|
2672
|
+
if (d) {
|
|
2673
|
+
const P = d.getBoundingClientRect();
|
|
2674
|
+
d.style.top = g.top + "px", d.style.left = g.left - P.width + "px";
|
|
2647
2675
|
}
|
|
2648
2676
|
}
|
|
2649
2677
|
}
|
|
2650
|
-
function
|
|
2678
|
+
function en(n, e, t) {
|
|
2651
2679
|
var $;
|
|
2652
|
-
function
|
|
2680
|
+
function s() {
|
|
2653
2681
|
}
|
|
2654
|
-
const
|
|
2655
|
-
function
|
|
2682
|
+
const c = "", g = M();
|
|
2683
|
+
function d() {
|
|
2656
2684
|
return !0;
|
|
2657
2685
|
}
|
|
2658
|
-
function
|
|
2686
|
+
function P() {
|
|
2659
2687
|
return !1;
|
|
2660
2688
|
}
|
|
2661
2689
|
function S() {
|
|
@@ -2667,47 +2695,47 @@ function Yt(n, e, t) {
|
|
|
2667
2695
|
function T() {
|
|
2668
2696
|
return !0;
|
|
2669
2697
|
}
|
|
2670
|
-
function
|
|
2698
|
+
function p(v) {
|
|
2671
2699
|
if (!v || !v.value)
|
|
2672
2700
|
return null;
|
|
2673
|
-
const
|
|
2701
|
+
const m = M(v == null ? void 0 : v.value.parent), x = p(m);
|
|
2674
2702
|
return x || null;
|
|
2675
2703
|
}
|
|
2676
2704
|
function i(v = e) {
|
|
2677
|
-
const { componentInstance:
|
|
2678
|
-
return !
|
|
2705
|
+
const { componentInstance: m, designerItemElementRef: x } = v;
|
|
2706
|
+
return !m || !m.value ? null : m.value.canMove || m.value.canAdd || m.value.canDelete ? x : i(v.parent);
|
|
2679
2707
|
}
|
|
2680
|
-
function
|
|
2708
|
+
function f(v) {
|
|
2681
2709
|
return !!t;
|
|
2682
2710
|
}
|
|
2683
|
-
function
|
|
2711
|
+
function l() {
|
|
2684
2712
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
2685
2713
|
}
|
|
2686
2714
|
function C() {
|
|
2687
2715
|
}
|
|
2688
|
-
function w(v,
|
|
2716
|
+
function w(v, m) {
|
|
2689
2717
|
}
|
|
2690
2718
|
function j(v) {
|
|
2691
|
-
const { componentType:
|
|
2692
|
-
let x = U(
|
|
2693
|
-
const k =
|
|
2694
|
-
return x && !x.id && x.type ===
|
|
2695
|
-
}
|
|
2696
|
-
function I(v,
|
|
2697
|
-
const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"),
|
|
2698
|
-
|
|
2699
|
-
let
|
|
2719
|
+
const { componentType: m } = v;
|
|
2720
|
+
let x = U(m, v);
|
|
2721
|
+
const k = m.toLowerCase().replace("-", "_");
|
|
2722
|
+
return x && !x.id && x.type === m && (x.id = `${k}_${Math.random().toString().slice(2, 6)}`), x;
|
|
2723
|
+
}
|
|
2724
|
+
function I(v, m) {
|
|
2725
|
+
const x = String(v.getAttribute("data-controltype")), k = v.getAttribute("data-feature"), u = k ? JSON.parse(k) : {};
|
|
2726
|
+
u.parentComponentInstance = g.value;
|
|
2727
|
+
let r = U(x, u);
|
|
2700
2728
|
const o = x.toLowerCase().replace("-", "_");
|
|
2701
|
-
return
|
|
2729
|
+
return r && !r.id && r.type === x && (r.id = `${o}_${Math.random().toString().slice(2, 6)}`), r;
|
|
2702
2730
|
}
|
|
2703
|
-
function
|
|
2731
|
+
function D(v) {
|
|
2704
2732
|
}
|
|
2705
2733
|
function A(...v) {
|
|
2706
2734
|
return [];
|
|
2707
2735
|
}
|
|
2708
|
-
return
|
|
2709
|
-
canMove:
|
|
2710
|
-
canSelectParent:
|
|
2736
|
+
return g.value = {
|
|
2737
|
+
canMove: d(),
|
|
2738
|
+
canSelectParent: P(),
|
|
2711
2739
|
canAdd: y(),
|
|
2712
2740
|
canDelete: S(),
|
|
2713
2741
|
canNested: !T(),
|
|
@@ -2715,90 +2743,90 @@ function Yt(n, e, t) {
|
|
|
2715
2743
|
elementRef: n,
|
|
2716
2744
|
parent: ($ = e.parent) == null ? void 0 : $.componentInstance,
|
|
2717
2745
|
schema: e.schema,
|
|
2718
|
-
styles:
|
|
2719
|
-
canAccepts:
|
|
2720
|
-
getBelongedComponentInstance:
|
|
2746
|
+
styles: c,
|
|
2747
|
+
canAccepts: f,
|
|
2748
|
+
getBelongedComponentInstance: p,
|
|
2721
2749
|
getDraggableDesignItemElement: i,
|
|
2722
|
-
getDraggingDisplayText:
|
|
2750
|
+
getDraggingDisplayText: l,
|
|
2723
2751
|
getPropConfig: A,
|
|
2724
2752
|
getDragScopeElement: C,
|
|
2725
2753
|
onAcceptMovedChildElement: w,
|
|
2726
2754
|
onAcceptNewChildElement: I,
|
|
2727
|
-
onChildElementMovedOut:
|
|
2755
|
+
onChildElementMovedOut: D,
|
|
2728
2756
|
addNewChildComponentSchema: j,
|
|
2729
|
-
updateDragAndDropRules:
|
|
2757
|
+
updateDragAndDropRules: s,
|
|
2730
2758
|
triggerBelongedComponentToMoveWhenMoved: M(!1),
|
|
2731
2759
|
triggerBelongedComponentToDeleteWhenDeleted: M(!1)
|
|
2732
|
-
},
|
|
2760
|
+
}, g;
|
|
2733
2761
|
}
|
|
2734
|
-
const
|
|
2762
|
+
const Be = /* @__PURE__ */ z({
|
|
2735
2763
|
name: "FDesignerInnerItem",
|
|
2736
|
-
props:
|
|
2764
|
+
props: Yt,
|
|
2737
2765
|
emits: ["selectionChange", "addComponent", "removeComponent"],
|
|
2738
2766
|
setup(n, e) {
|
|
2739
|
-
const t = M(n.canMove),
|
|
2740
|
-
designerItemElementRef:
|
|
2741
|
-
componentInstance:
|
|
2767
|
+
const t = M(n.canMove), s = M(n.canAdd), c = M(n.canDelete), g = M(!1), d = M(n.contentKey), P = M(n.childType), S = M(n.childLabel), y = M(n.modelValue), T = M(""), p = M(), i = V("canvas-dragula"), f = M(), l = V("design-item-context"), C = {
|
|
2768
|
+
designerItemElementRef: p,
|
|
2769
|
+
componentInstance: f,
|
|
2742
2770
|
schema: y.value,
|
|
2743
|
-
parent:
|
|
2771
|
+
parent: l,
|
|
2744
2772
|
setupContext: e
|
|
2745
2773
|
};
|
|
2746
|
-
|
|
2774
|
+
Fe("design-item-context", C);
|
|
2747
2775
|
const w = F(() => ({
|
|
2748
2776
|
"farris-component": !0,
|
|
2749
2777
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
2750
2778
|
"flex-fill": n.id == "root-component",
|
|
2751
|
-
"position-relative": t.value ||
|
|
2752
|
-
"farris-nested":
|
|
2779
|
+
"position-relative": t.value || c.value,
|
|
2780
|
+
"farris-nested": g.value,
|
|
2753
2781
|
"can-move": t.value,
|
|
2754
|
-
"d-none":
|
|
2782
|
+
"d-none": p.value && p.value.classList.contains("d-none")
|
|
2755
2783
|
})), j = F(() => {
|
|
2756
2784
|
const o = {};
|
|
2757
|
-
return T.value && T.value.split(";").reduce((a,
|
|
2758
|
-
const [B, E] =
|
|
2785
|
+
return T.value && T.value.split(";").reduce((a, h) => {
|
|
2786
|
+
const [B, E] = h.split(":");
|
|
2759
2787
|
return B && (a[B] = E), a;
|
|
2760
2788
|
}, o), o;
|
|
2761
2789
|
});
|
|
2762
2790
|
function I(o, a) {
|
|
2763
|
-
if (
|
|
2764
|
-
const
|
|
2765
|
-
if (
|
|
2766
|
-
const B =
|
|
2767
|
-
|
|
2791
|
+
if (l && l.schema[d.value]) {
|
|
2792
|
+
const h = l.schema[d.value].findIndex((B) => B.id === a.id);
|
|
2793
|
+
if (h > -1) {
|
|
2794
|
+
const B = l.schema[d.value].length, E = l.schema[d.value][h % B];
|
|
2795
|
+
l.designerItemElementRef.value.querySelector(`#${E.id}-design-item`), l.schema[d.value].splice(h, 1), l.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
|
|
2768
2796
|
}
|
|
2769
2797
|
}
|
|
2770
2798
|
}
|
|
2771
|
-
function
|
|
2772
|
-
if (
|
|
2799
|
+
function D(o) {
|
|
2800
|
+
if (f.value.addNewChildComponentSchema) {
|
|
2773
2801
|
const a = {
|
|
2774
|
-
componentType:
|
|
2802
|
+
componentType: P.value,
|
|
2775
2803
|
label: S.value,
|
|
2776
|
-
parentComponentInstance:
|
|
2804
|
+
parentComponentInstance: f.value,
|
|
2777
2805
|
targetPosition: -1
|
|
2778
|
-
},
|
|
2779
|
-
y.value[
|
|
2806
|
+
}, h = f.value.addNewChildComponentSchema(a);
|
|
2807
|
+
y.value[d.value].push(h), e.emit("addComponent");
|
|
2780
2808
|
}
|
|
2781
2809
|
}
|
|
2782
2810
|
function A() {
|
|
2783
|
-
return
|
|
2811
|
+
return s.value && b("div", {
|
|
2784
2812
|
role: "button",
|
|
2785
2813
|
class: "btn component-settings-button",
|
|
2786
2814
|
title: "新增",
|
|
2787
2815
|
ref: "removeComponent",
|
|
2788
2816
|
onClick: (o) => {
|
|
2789
|
-
|
|
2817
|
+
D();
|
|
2790
2818
|
}
|
|
2791
2819
|
}, [b("i", {
|
|
2792
2820
|
class: "f-icon f-icon-plus-circle"
|
|
2793
2821
|
}, null)]);
|
|
2794
2822
|
}
|
|
2795
2823
|
function $(o) {
|
|
2796
|
-
return
|
|
2824
|
+
return c.value && b("div", {
|
|
2797
2825
|
role: "button",
|
|
2798
2826
|
class: "btn component-settings-button",
|
|
2799
2827
|
title: "删除",
|
|
2800
2828
|
ref: "removeComponent",
|
|
2801
|
-
onClick:
|
|
2829
|
+
onClick: Ve((a) => I(a, o), ["stop"])
|
|
2802
2830
|
}, [b("i", {
|
|
2803
2831
|
class: "f-icon f-icon-yxs_delete"
|
|
2804
2832
|
}, null)]);
|
|
@@ -2814,7 +2842,7 @@ const ke = /* @__PURE__ */ z({
|
|
|
2814
2842
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
2815
2843
|
}, null)]);
|
|
2816
2844
|
}
|
|
2817
|
-
function
|
|
2845
|
+
function m(o) {
|
|
2818
2846
|
return b("div", {
|
|
2819
2847
|
class: "component-btn-group",
|
|
2820
2848
|
"data-noattach": "true"
|
|
@@ -2825,33 +2853,33 @@ const ke = /* @__PURE__ */ z({
|
|
|
2825
2853
|
});
|
|
2826
2854
|
function x(o) {
|
|
2827
2855
|
const a = o.target;
|
|
2828
|
-
|
|
2856
|
+
Kt(a);
|
|
2829
2857
|
}
|
|
2830
2858
|
function k() {
|
|
2831
2859
|
var o, a;
|
|
2832
|
-
(a = (o = y.value) == null ? void 0 : o.contents) != null && a.length &&
|
|
2860
|
+
(a = (o = y.value) == null ? void 0 : o.contents) != null && a.length && p.value && p.value.addEventListener("scroll", x);
|
|
2833
2861
|
}
|
|
2834
|
-
function
|
|
2835
|
-
const o =
|
|
2836
|
-
return
|
|
2862
|
+
function u() {
|
|
2863
|
+
const o = p.value, a = M(o.children[1]);
|
|
2864
|
+
return en(a, C).value;
|
|
2837
2865
|
}
|
|
2838
2866
|
H(() => {
|
|
2839
|
-
if (
|
|
2840
|
-
const o =
|
|
2841
|
-
|
|
2867
|
+
if (p.value) {
|
|
2868
|
+
const o = p.value.querySelector(`[data-dragref='${y.value.id}-container']`);
|
|
2869
|
+
f.value = o && o.componentInstance ? o.componentInstance.value : u(), i && o && i.attachComponents(o, y.value), g.value = f.value.canNested !== void 0 ? f.value.canNested : g.value, s.value = f.value.canAdd !== void 0 ? f.value.canAdd : s.value, c.value = f.value.canDelete !== void 0 ? f.value.canDelete : c.value, t.value = f.value.canMove !== void 0 ? f.value.canMove : t.value, T.value = f.value.styles || "", p.value && (p.value.componentInstance = f, p.value.designItemContext = C);
|
|
2842
2870
|
}
|
|
2843
2871
|
k(), X.value++;
|
|
2844
|
-
}),
|
|
2845
|
-
|
|
2872
|
+
}), Le(() => {
|
|
2873
|
+
p.value && p.value.removeEventListener("scroll", x);
|
|
2846
2874
|
});
|
|
2847
|
-
function
|
|
2848
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
2849
|
-
const a =
|
|
2875
|
+
function r(o) {
|
|
2876
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((h) => h.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
|
|
2877
|
+
const a = p.value;
|
|
2850
2878
|
if (a) {
|
|
2851
|
-
const
|
|
2852
|
-
if (!(
|
|
2853
|
-
Array.from(
|
|
2854
|
-
const E =
|
|
2879
|
+
const h = document.getElementsByClassName("dgComponentSelected");
|
|
2880
|
+
if (!(h && h.length === 1 && h[0] === p.value)) {
|
|
2881
|
+
Array.from(h).forEach((R) => R.classList.remove("dgComponentSelected")), a.classList.add("dgComponentFocused"), e.emit("selectionChange", y.value.type, y.value, n.componentId, f.value);
|
|
2882
|
+
const E = f.value.getDraggableDesignItemElement(C);
|
|
2855
2883
|
E && E.value && E.value.classList.add("dgComponentSelected");
|
|
2856
2884
|
}
|
|
2857
2885
|
}
|
|
@@ -2859,14 +2887,14 @@ const ke = /* @__PURE__ */ z({
|
|
|
2859
2887
|
}
|
|
2860
2888
|
return () => b("div", {
|
|
2861
2889
|
id: `${n.id}-design-item`,
|
|
2862
|
-
ref:
|
|
2890
|
+
ref: p,
|
|
2863
2891
|
class: w.value,
|
|
2864
2892
|
style: j.value,
|
|
2865
|
-
onClick:
|
|
2866
|
-
}, [
|
|
2893
|
+
onClick: r
|
|
2894
|
+
}, [m(y.value), e.slots.default && e.slots.default()]);
|
|
2867
2895
|
}
|
|
2868
2896
|
});
|
|
2869
|
-
class
|
|
2897
|
+
class tn extends ee {
|
|
2870
2898
|
constructor(e, t) {
|
|
2871
2899
|
super(e, t);
|
|
2872
2900
|
}
|
|
@@ -2917,40 +2945,40 @@ class Zt extends ee {
|
|
|
2917
2945
|
title: "style样式"
|
|
2918
2946
|
}
|
|
2919
2947
|
},
|
|
2920
|
-
setPropertyRelates(t,
|
|
2948
|
+
setPropertyRelates(t, s) {
|
|
2921
2949
|
}
|
|
2922
2950
|
};
|
|
2923
2951
|
}
|
|
2924
2952
|
getEventPropConfig(e) {
|
|
2925
2953
|
const t = [
|
|
2926
2954
|
{
|
|
2927
|
-
label: "
|
|
2955
|
+
label: "onClick",
|
|
2928
2956
|
name: "点击事件"
|
|
2929
2957
|
}
|
|
2930
2958
|
];
|
|
2931
|
-
var
|
|
2932
|
-
const
|
|
2933
|
-
|
|
2959
|
+
var s = this;
|
|
2960
|
+
const c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
|
|
2961
|
+
g[s.viewModelId] = {
|
|
2934
2962
|
type: "events-editor",
|
|
2935
2963
|
editor: {
|
|
2936
|
-
initialData:
|
|
2964
|
+
initialData: c
|
|
2937
2965
|
}
|
|
2938
2966
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
2939
2967
|
title: "事件",
|
|
2940
2968
|
hideTitle: !0,
|
|
2941
|
-
properties:
|
|
2969
|
+
properties: g,
|
|
2942
2970
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
2943
2971
|
refreshPanelAfterChanged: !0,
|
|
2944
2972
|
tabId: "commands",
|
|
2945
2973
|
tabName: "交互",
|
|
2946
|
-
setPropertyRelates(
|
|
2947
|
-
const S =
|
|
2948
|
-
delete e[
|
|
2974
|
+
setPropertyRelates(d, P) {
|
|
2975
|
+
const S = d.propertyValue;
|
|
2976
|
+
delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
|
|
2949
2977
|
}
|
|
2950
2978
|
};
|
|
2951
2979
|
}
|
|
2952
2980
|
}
|
|
2953
|
-
class
|
|
2981
|
+
class nn extends ee {
|
|
2954
2982
|
constructor(e, t) {
|
|
2955
2983
|
super(e, t);
|
|
2956
2984
|
}
|
|
@@ -3014,38 +3042,38 @@ class Kt extends ee {
|
|
|
3014
3042
|
getEventPropConfig(e) {
|
|
3015
3043
|
const t = [
|
|
3016
3044
|
{
|
|
3017
|
-
label: "
|
|
3045
|
+
label: "onClick",
|
|
3018
3046
|
name: "点击事件"
|
|
3019
3047
|
}
|
|
3020
|
-
],
|
|
3021
|
-
|
|
3048
|
+
], s = this, c = s.eventsEditorUtils.formProperties(e, s.viewModelId, t), g = {};
|
|
3049
|
+
g[s.viewModelId] = {
|
|
3022
3050
|
type: "events-editor",
|
|
3023
3051
|
editor: {
|
|
3024
|
-
initialData:
|
|
3052
|
+
initialData: c
|
|
3025
3053
|
}
|
|
3026
3054
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
3027
3055
|
title: "事件",
|
|
3028
3056
|
hideTitle: !0,
|
|
3029
|
-
properties:
|
|
3057
|
+
properties: g,
|
|
3030
3058
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
3031
3059
|
refreshPanelAfterChanged: !0,
|
|
3032
3060
|
tabId: "commands",
|
|
3033
3061
|
tabName: "交互",
|
|
3034
|
-
setPropertyRelates(
|
|
3035
|
-
const S =
|
|
3036
|
-
delete e[
|
|
3062
|
+
setPropertyRelates(d, P) {
|
|
3063
|
+
const S = d.propertyValue;
|
|
3064
|
+
delete e[s.viewModelId], S && (S.setPropertyRelates = this.setPropertyRelates, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, S.events, S));
|
|
3037
3065
|
}
|
|
3038
3066
|
};
|
|
3039
3067
|
}
|
|
3040
3068
|
}
|
|
3041
|
-
function
|
|
3042
|
-
|
|
3043
|
-
const t = M(!1),
|
|
3044
|
-
let
|
|
3045
|
-
function
|
|
3069
|
+
function on(n, e) {
|
|
3070
|
+
Ae();
|
|
3071
|
+
const t = M(!1), s = M(!1);
|
|
3072
|
+
let c = !1, g = !1;
|
|
3073
|
+
function d(w) {
|
|
3046
3074
|
return !1;
|
|
3047
3075
|
}
|
|
3048
|
-
function
|
|
3076
|
+
function P(w) {
|
|
3049
3077
|
}
|
|
3050
3078
|
function S() {
|
|
3051
3079
|
return "";
|
|
@@ -3054,118 +3082,118 @@ function en(n, e) {
|
|
|
3054
3082
|
return j.text = w.label, j;
|
|
3055
3083
|
}
|
|
3056
3084
|
function T(w, j, I) {
|
|
3057
|
-
const
|
|
3058
|
-
if ((
|
|
3059
|
-
const v = String(w.innerText),
|
|
3060
|
-
return
|
|
3085
|
+
const D = n.schema;
|
|
3086
|
+
if ((D.appearance && D.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
3087
|
+
const v = String(w.innerText), m = U("form-group");
|
|
3088
|
+
return m.editor = I, m.label = v, m;
|
|
3061
3089
|
}
|
|
3062
3090
|
return I;
|
|
3063
3091
|
}
|
|
3064
|
-
function
|
|
3092
|
+
function p() {
|
|
3065
3093
|
return !1;
|
|
3066
3094
|
}
|
|
3067
3095
|
function i() {
|
|
3068
|
-
return !
|
|
3096
|
+
return !g;
|
|
3069
3097
|
}
|
|
3070
|
-
function
|
|
3098
|
+
function f() {
|
|
3071
3099
|
return !1;
|
|
3072
3100
|
}
|
|
3073
|
-
function
|
|
3074
|
-
return
|
|
3101
|
+
function l() {
|
|
3102
|
+
return c;
|
|
3075
3103
|
}
|
|
3076
3104
|
function C(w) {
|
|
3077
3105
|
let j;
|
|
3078
3106
|
switch (n.schema.type) {
|
|
3079
3107
|
case "tab-toolbar-item":
|
|
3080
|
-
j = new
|
|
3108
|
+
j = new tn(w, e);
|
|
3081
3109
|
break;
|
|
3082
3110
|
default:
|
|
3083
|
-
j = new
|
|
3111
|
+
j = new nn(w, e);
|
|
3084
3112
|
}
|
|
3085
3113
|
return j.getPropertyConfig(n.schema);
|
|
3086
3114
|
}
|
|
3087
3115
|
return {
|
|
3088
|
-
canAccepts:
|
|
3089
|
-
checkCanAddComponent:
|
|
3116
|
+
canAccepts: d,
|
|
3117
|
+
checkCanAddComponent: f,
|
|
3090
3118
|
checkCanDeleteComponent: i,
|
|
3091
|
-
checkCanMoveComponent:
|
|
3119
|
+
checkCanMoveComponent: p,
|
|
3092
3120
|
getStyles: S,
|
|
3093
|
-
hideNestedPaddingInDesginerView:
|
|
3121
|
+
hideNestedPaddingInDesginerView: l,
|
|
3094
3122
|
onAcceptNewChildElement: T,
|
|
3095
|
-
onAcceptMovedChildElement:
|
|
3123
|
+
onAcceptMovedChildElement: P,
|
|
3096
3124
|
onResolveNewComponentSchema: y,
|
|
3097
3125
|
getPropsConfig: C,
|
|
3098
3126
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
3099
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
3127
|
+
triggerBelongedComponentToDeleteWhenDeleted: s
|
|
3100
3128
|
};
|
|
3101
3129
|
}
|
|
3102
|
-
const
|
|
3130
|
+
const Re = /* @__PURE__ */ z({
|
|
3103
3131
|
name: "FResponseToolbarItemDesign",
|
|
3104
|
-
props:
|
|
3132
|
+
props: Me,
|
|
3105
3133
|
emits: ["Click"],
|
|
3106
3134
|
setup(n, e) {
|
|
3107
3135
|
M(), M();
|
|
3108
|
-
const t = M(n.alignment),
|
|
3136
|
+
const t = M(n.alignment), s = {
|
|
3109
3137
|
id: "__more_buttons__",
|
|
3110
3138
|
text: "More"
|
|
3111
|
-
},
|
|
3112
|
-
F(() =>
|
|
3113
|
-
const
|
|
3139
|
+
}, c = M(new J(s));
|
|
3140
|
+
F(() => c.value.children.length > 0);
|
|
3141
|
+
const g = M(), d = V("designer-host-service"), P = V("design-item-context"), S = on(P, d), y = Pe(g, P, S);
|
|
3114
3142
|
V("toolbar-item-handler", () => {
|
|
3115
3143
|
}), H(() => {
|
|
3116
|
-
|
|
3144
|
+
g.value.componentInstance = y;
|
|
3117
3145
|
}), e.expose(y.value);
|
|
3118
3146
|
function T() {
|
|
3119
|
-
const
|
|
3147
|
+
const f = {
|
|
3120
3148
|
"f-icon": !0
|
|
3121
|
-
},
|
|
3122
|
-
return Y(
|
|
3149
|
+
}, l = n.icon ? n.icon.trim() : "";
|
|
3150
|
+
return Y(f, l);
|
|
3123
3151
|
}
|
|
3124
|
-
function
|
|
3152
|
+
function p() {
|
|
3125
3153
|
return !!(n.icon && n.icon.trim());
|
|
3126
3154
|
}
|
|
3127
3155
|
function i() {
|
|
3128
|
-
const
|
|
3156
|
+
const f = {
|
|
3129
3157
|
btn: !0,
|
|
3130
3158
|
"f-rt-btn": !0,
|
|
3131
3159
|
"f-btn-ml": t.value === "right",
|
|
3132
3160
|
"f-btn-mr": t.value === "left",
|
|
3133
3161
|
"btn-icontext": !!(n.icon && n.icon.trim())
|
|
3134
3162
|
};
|
|
3135
|
-
return Y(
|
|
3163
|
+
return Y(f, n.class);
|
|
3136
3164
|
}
|
|
3137
3165
|
return H(() => {
|
|
3138
3166
|
}), ie(() => {
|
|
3139
3167
|
}), () => b("div", {
|
|
3140
|
-
ref:
|
|
3141
|
-
"data-dragref": `${
|
|
3168
|
+
ref: g,
|
|
3169
|
+
"data-dragref": `${P.schema.id}-container`,
|
|
3142
3170
|
class: "farris-component position-relative",
|
|
3143
3171
|
style: "display:inline-block!important;"
|
|
3144
3172
|
}, [b("button", {
|
|
3145
3173
|
type: "button",
|
|
3146
3174
|
class: i(),
|
|
3147
3175
|
id: n.id
|
|
3148
|
-
}, [
|
|
3176
|
+
}, [p() && b("i", {
|
|
3149
3177
|
class: T()
|
|
3150
3178
|
}, null), n.text])]);
|
|
3151
3179
|
}
|
|
3152
|
-
}),
|
|
3180
|
+
}), Ie = /* @__PURE__ */ z({
|
|
3153
3181
|
name: "FResponseToolbarDesign",
|
|
3154
|
-
props:
|
|
3182
|
+
props: Ot,
|
|
3155
3183
|
emits: ["Click"],
|
|
3156
3184
|
setup(n, e) {
|
|
3157
3185
|
const t = M(n.items);
|
|
3158
|
-
let
|
|
3159
|
-
const
|
|
3186
|
+
let s = new Array(t.value.length).fill(M());
|
|
3187
|
+
const c = M(), g = M(), d = M(n.alignment), P = {
|
|
3160
3188
|
id: "__more_buttons__",
|
|
3161
3189
|
text: "More"
|
|
3162
|
-
}, S = M(new J(
|
|
3190
|
+
}, S = M(new J(P)), y = ke();
|
|
3163
3191
|
F(() => S.value.children.length > 0);
|
|
3164
|
-
const T = M(),
|
|
3192
|
+
const T = M(), p = V("designer-host-service"), i = V("design-item-context"), f = Xt(i.schema, p, i), l = Pe(T, i, f);
|
|
3165
3193
|
V("toolbar-item-handler", () => {
|
|
3166
3194
|
}), H(() => {
|
|
3167
|
-
T.value.componentInstance =
|
|
3168
|
-
}), e.expose(
|
|
3195
|
+
T.value.componentInstance = l;
|
|
3196
|
+
}), e.expose(l.value);
|
|
3169
3197
|
const C = F(() => Y({
|
|
3170
3198
|
"f-toolbar": !0,
|
|
3171
3199
|
"f-response-toolbar": !0,
|
|
@@ -3173,24 +3201,24 @@ const Ae = /* @__PURE__ */ z({
|
|
|
3173
3201
|
}, n.customClass)), w = F(() => ({
|
|
3174
3202
|
"d-flex": !0,
|
|
3175
3203
|
"flex-nowrap": !0,
|
|
3176
|
-
"justify-content-end":
|
|
3177
|
-
"justify-content-start":
|
|
3204
|
+
"justify-content-end": d.value === "right",
|
|
3205
|
+
"justify-content-start": d.value === "left"
|
|
3178
3206
|
})), {
|
|
3179
3207
|
renderToolbarDropdown: j,
|
|
3180
3208
|
clearAllDropDown: I
|
|
3181
|
-
} =
|
|
3182
|
-
function
|
|
3183
|
-
t.value.filter((
|
|
3184
|
-
|
|
3209
|
+
} = Lt(n, y, l);
|
|
3210
|
+
function D() {
|
|
3211
|
+
t.value.filter((u) => u.children && u.children.length > 0).forEach((u) => {
|
|
3212
|
+
u.expanded = !1;
|
|
3185
3213
|
}), S.value.expanded = !1, I();
|
|
3186
3214
|
}
|
|
3187
3215
|
const A = /* @__PURE__ */ new Map(), $ = [];
|
|
3188
|
-
function v(
|
|
3189
|
-
const
|
|
3190
|
-
let o =
|
|
3191
|
-
const a = Array.from(
|
|
3192
|
-
if (
|
|
3193
|
-
const N =
|
|
3216
|
+
function v(u) {
|
|
3217
|
+
const r = g.value;
|
|
3218
|
+
let o = u;
|
|
3219
|
+
const a = Array.from(r.children), h = a[a.length - 1].id === "__more_buttons__" ? a[a.length - 1] : null;
|
|
3220
|
+
if (h) {
|
|
3221
|
+
const N = h.computedStyleMap().get("margin-left"), _ = h.computedStyleMap().get("margin-right"), W = (N ? N.value : 0) + h.getBoundingClientRect().width + (_ ? _.value : 0);
|
|
3194
3222
|
o -= W;
|
|
3195
3223
|
}
|
|
3196
3224
|
const B = a.filter((N) => N.id !== "__more_buttons__");
|
|
@@ -3214,80 +3242,80 @@ const Ae = /* @__PURE__ */ z({
|
|
|
3214
3242
|
const R = new J(E), L = t.value.reduce((N, _) => (A.has(_.id) && R.children.push(_), _.visible = !A.has(_.id), N.push(_), N), []);
|
|
3215
3243
|
S.value = R, t.value = L;
|
|
3216
3244
|
}
|
|
3217
|
-
const
|
|
3218
|
-
if (
|
|
3219
|
-
const o =
|
|
3220
|
-
(o <
|
|
3245
|
+
const m = new ResizeObserver((u) => {
|
|
3246
|
+
if (u.length) {
|
|
3247
|
+
const o = u[0].contentRect.width, h = g.value.getBoundingClientRect().width;
|
|
3248
|
+
(o < h || $.length) && v(o);
|
|
3221
3249
|
}
|
|
3222
3250
|
});
|
|
3223
3251
|
H(() => {
|
|
3224
|
-
const
|
|
3225
|
-
|
|
3252
|
+
const u = c.value;
|
|
3253
|
+
m.observe(u), document.body.addEventListener("click", D);
|
|
3226
3254
|
}), ie(() => {
|
|
3227
|
-
|
|
3255
|
+
m.disconnect(), document.body.removeEventListener("click", D);
|
|
3228
3256
|
}), G(() => n.items, () => {
|
|
3229
3257
|
t.value = n.items;
|
|
3230
3258
|
}, {
|
|
3231
3259
|
deep: !0
|
|
3232
|
-
}), G(t, (
|
|
3233
|
-
|
|
3260
|
+
}), G(t, (u) => {
|
|
3261
|
+
s = new Array(t.value.length).fill(M());
|
|
3234
3262
|
});
|
|
3235
|
-
function x(
|
|
3236
|
-
i && i.setupContext && i.setupContext.emit("selectionChange",
|
|
3263
|
+
function x(u, r, o, a) {
|
|
3264
|
+
i && i.setupContext && i.setupContext.emit("selectionChange", u, r, o, a);
|
|
3237
3265
|
}
|
|
3238
3266
|
function k() {
|
|
3239
|
-
const
|
|
3240
|
-
|
|
3267
|
+
const u = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
|
|
3268
|
+
u == null || u.classList.remove("dgComponentSelected"), u == null || u.classList.remove("dgComponentFocused");
|
|
3241
3269
|
}
|
|
3242
3270
|
return () => b("div", {
|
|
3243
3271
|
ref: T,
|
|
3244
3272
|
"data-dragref": `${i.schema.id}-container`,
|
|
3245
3273
|
class: C.value
|
|
3246
3274
|
}, [b("div", {
|
|
3247
|
-
ref:
|
|
3275
|
+
ref: c,
|
|
3248
3276
|
class: w.value
|
|
3249
3277
|
}, [b("div", {
|
|
3250
|
-
ref:
|
|
3278
|
+
ref: g,
|
|
3251
3279
|
class: "d-inline-block f-response-content",
|
|
3252
3280
|
style: "white-space: nowrap;"
|
|
3253
|
-
}, [t.value.map((
|
|
3254
|
-
ref: r
|
|
3281
|
+
}, [t.value.map((u, r) => b(Be, {
|
|
3282
|
+
ref: s[r],
|
|
3255
3283
|
class: "p-0 display-inline-block",
|
|
3256
|
-
modelValue:
|
|
3257
|
-
"onUpdate:modelValue": (o) =>
|
|
3284
|
+
modelValue: u,
|
|
3285
|
+
"onUpdate:modelValue": (o) => u = o,
|
|
3258
3286
|
canMove: !0,
|
|
3259
3287
|
childType: "response-toolbar-item",
|
|
3260
3288
|
childLabel: "按钮",
|
|
3261
3289
|
contentKey: "buttons",
|
|
3262
3290
|
componentId: n.componentId,
|
|
3263
|
-
id:
|
|
3291
|
+
id: u.id,
|
|
3264
3292
|
style: "padding:0 !important;display:inline-block",
|
|
3265
3293
|
onSelectionChange: x,
|
|
3266
3294
|
onRemoveComponent: k
|
|
3267
3295
|
}, {
|
|
3268
3296
|
default: () => {
|
|
3269
3297
|
var o;
|
|
3270
|
-
return [b(
|
|
3271
|
-
id:
|
|
3272
|
-
disable:
|
|
3273
|
-
text:
|
|
3274
|
-
icon:
|
|
3275
|
-
class: ((o =
|
|
3298
|
+
return [b(Re, {
|
|
3299
|
+
id: u.id,
|
|
3300
|
+
disable: u.disable,
|
|
3301
|
+
text: u.text,
|
|
3302
|
+
icon: u.icon,
|
|
3303
|
+
class: ((o = u.appearance) == null ? void 0 : o.class) || "btn-secondary",
|
|
3276
3304
|
alignment: n.alignment || "right",
|
|
3277
3305
|
componentId: n.componentId
|
|
3278
3306
|
}, null)];
|
|
3279
3307
|
}
|
|
3280
3308
|
}))])])]);
|
|
3281
3309
|
}
|
|
3282
|
-
}),
|
|
3310
|
+
}), ye = de;
|
|
3283
3311
|
Z.register = (n, e, t) => {
|
|
3284
3312
|
n["response-toolbar"] = Z, e["response-toolbar"] = de;
|
|
3285
3313
|
};
|
|
3286
3314
|
Z.registerDesigner = (n, e, t) => {
|
|
3287
|
-
n["response-toolbar"] =
|
|
3315
|
+
n["response-toolbar"] = Ie, e["response-toolbar"] = de, n["response-toolbar-item"] = Re, e["response-toolbar-item"] = $t;
|
|
3288
3316
|
};
|
|
3289
|
-
|
|
3290
|
-
const
|
|
3317
|
+
Ue(Z);
|
|
3318
|
+
const rn = {
|
|
3291
3319
|
id: { type: String, default: "" },
|
|
3292
3320
|
componentId: { type: String, default: "" },
|
|
3293
3321
|
type: { type: String, default: "" },
|
|
@@ -3302,103 +3330,104 @@ const tn = {
|
|
|
3302
3330
|
*/
|
|
3303
3331
|
modelValue: { type: Object },
|
|
3304
3332
|
ignore: { type: Boolean, default: !1 }
|
|
3305
|
-
},
|
|
3333
|
+
}, ve = /* @__PURE__ */ z({
|
|
3306
3334
|
name: "FDesignerTemplateItem",
|
|
3307
|
-
props:
|
|
3335
|
+
props: rn,
|
|
3308
3336
|
emits: ["selectionChange"],
|
|
3309
3337
|
setup(n, e) {
|
|
3310
|
-
const t = M(),
|
|
3338
|
+
const t = M(), s = F(() => ({
|
|
3311
3339
|
"farris-component": !0
|
|
3312
3340
|
}));
|
|
3313
|
-
function
|
|
3314
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
3315
|
-
const
|
|
3316
|
-
if (
|
|
3317
|
-
const
|
|
3318
|
-
|
|
3341
|
+
function c(g) {
|
|
3342
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((P) => P.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
|
|
3343
|
+
const d = t.value;
|
|
3344
|
+
if (d) {
|
|
3345
|
+
const P = document.getElementsByClassName("dgComponentSelected");
|
|
3346
|
+
P && P.length === 1 && P[0] === t.value || (Array.from(P).forEach((y) => y.classList.remove("dgComponentSelected")), d.classList.add("dgComponentFocused"));
|
|
3319
3347
|
}
|
|
3320
3348
|
X.value++;
|
|
3321
3349
|
}
|
|
3322
3350
|
return () => b("div", {
|
|
3323
3351
|
id: `${n.id}-design-item`,
|
|
3324
3352
|
ref: t,
|
|
3325
|
-
class:
|
|
3326
|
-
onClick:
|
|
3353
|
+
class: s.value,
|
|
3354
|
+
onClick: c
|
|
3327
3355
|
}, [e.slots.default && e.slots.default()]);
|
|
3328
3356
|
}
|
|
3329
|
-
}),
|
|
3357
|
+
}), sn = /* @__PURE__ */ z({
|
|
3330
3358
|
name: "FPageHeaderDesign",
|
|
3331
|
-
props:
|
|
3359
|
+
props: it,
|
|
3332
3360
|
emits: ["Click"],
|
|
3333
3361
|
setup(n, e) {
|
|
3334
|
-
const t = M(),
|
|
3362
|
+
const t = M(), s = V("designer-host-service"), c = V("design-item-context"), g = pt(c.schema, s), d = ct(t, c, g), P = M(c.schema.toolbar || {
|
|
3335
3363
|
type: "response-toolbar",
|
|
3336
3364
|
buttons: []
|
|
3337
|
-
}), S = M(
|
|
3365
|
+
}), S = M(ye(P.value));
|
|
3338
3366
|
H(() => {
|
|
3339
|
-
t.value.componentInstance =
|
|
3340
|
-
}), G(() =>
|
|
3341
|
-
|
|
3367
|
+
t.value.componentInstance = d;
|
|
3368
|
+
}), G(() => c.schema.toolbar, () => {
|
|
3369
|
+
P.value = c.schema.toolbar || {
|
|
3342
3370
|
type: "response-toolbar",
|
|
3343
3371
|
buttons: []
|
|
3344
|
-
}, S.value =
|
|
3372
|
+
}, S.value = ye(P.value);
|
|
3345
3373
|
}, {
|
|
3346
3374
|
deep: !0
|
|
3347
3375
|
});
|
|
3348
3376
|
const y = F(() => [...S.value.items]);
|
|
3349
|
-
function T(
|
|
3350
|
-
|
|
3377
|
+
function T(p, i, f, l) {
|
|
3378
|
+
c && c.setupContext && c.setupContext.emit("selectionChange", p, i, f, l);
|
|
3351
3379
|
}
|
|
3352
|
-
return e.expose(
|
|
3380
|
+
return e.expose(d.value), () => b("div", {
|
|
3353
3381
|
ref: t
|
|
3354
3382
|
}, [b("nav", {
|
|
3355
3383
|
class: "f-page-header-base"
|
|
3356
3384
|
}, [b("div", {
|
|
3357
3385
|
class: "f-title"
|
|
3358
|
-
}, [b(
|
|
3386
|
+
}, [b(ve, null, {
|
|
3359
3387
|
default: () => [b("span", {
|
|
3360
3388
|
class: "f-title-icon f-text-orna-manage"
|
|
3361
3389
|
}, [b("i", {
|
|
3362
3390
|
class: n.icon
|
|
3363
3391
|
}, null)])]
|
|
3364
|
-
}), b(
|
|
3392
|
+
}), b(ve, null, {
|
|
3365
3393
|
default: () => [b("h4", {
|
|
3366
3394
|
class: "f-title-text"
|
|
3367
3395
|
}, [n.title])]
|
|
3368
|
-
})]), b(
|
|
3396
|
+
})]), b(Be, {
|
|
3369
3397
|
class: "col-6 text-right",
|
|
3370
|
-
modelValue:
|
|
3371
|
-
"onUpdate:modelValue": (
|
|
3398
|
+
modelValue: P.value,
|
|
3399
|
+
"onUpdate:modelValue": (p) => P.value = p,
|
|
3372
3400
|
canAdd: !0,
|
|
3373
3401
|
childType: "response-toolbar-item",
|
|
3374
3402
|
childLabel: "按钮",
|
|
3375
3403
|
contentKey: "buttons",
|
|
3376
|
-
id:
|
|
3404
|
+
id: P.value.id,
|
|
3377
3405
|
componentId: n.componentId,
|
|
3378
3406
|
onSelectionChange: T
|
|
3379
3407
|
}, {
|
|
3380
|
-
default: () => [b(
|
|
3408
|
+
default: () => [b(Ie, {
|
|
3381
3409
|
customClass: "w-100",
|
|
3382
3410
|
items: y.value,
|
|
3383
3411
|
componentId: n.componentId
|
|
3384
3412
|
}, null)]
|
|
3385
3413
|
})])]);
|
|
3386
3414
|
}
|
|
3387
|
-
}),
|
|
3415
|
+
}), fn = {
|
|
3388
3416
|
install(n) {
|
|
3389
3417
|
n.component(oe.name, oe);
|
|
3390
3418
|
},
|
|
3391
|
-
register(n, e, t,
|
|
3392
|
-
n["page-header"] = oe, e["page-header"] =
|
|
3419
|
+
register(n, e, t, s) {
|
|
3420
|
+
n["page-header"] = oe, e["page-header"] = me, s["page-header"] = { eventHandlerResolver: at };
|
|
3393
3421
|
},
|
|
3394
3422
|
registerDesigner(n, e, t) {
|
|
3395
|
-
n["page-header"] =
|
|
3423
|
+
n["page-header"] = sn, e["page-header"] = me;
|
|
3396
3424
|
}
|
|
3397
3425
|
};
|
|
3398
3426
|
export {
|
|
3399
3427
|
oe as PageHeader,
|
|
3400
|
-
|
|
3401
|
-
|
|
3428
|
+
fn as default,
|
|
3429
|
+
at as eventHandlerResolver,
|
|
3430
|
+
it as pageHeaderDesignerProps,
|
|
3402
3431
|
pe as pageHeaderProps,
|
|
3403
|
-
|
|
3432
|
+
me as propsResolver
|
|
3404
3433
|
};
|