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