@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,109 +1,107 @@
|
|
|
1
1
|
var Re = Object.defineProperty;
|
|
2
2
|
var Oe = (n, e, t) => e in n ? Re(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var O = (n, e, t) => Oe(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import { useDesignerInnerComponent as ve } from "
|
|
8
|
-
import { withInstall as
|
|
4
|
+
import { defineComponent as z, ref as x, computed as F, watch as G, createVNode as h, createTextVNode as Q, getCurrentInstance as ye, onMounted as H, onUnmounted as re, inject as V, provide as Ne, onBeforeUnmount as $e, withModifiers as _e } from "vue";
|
|
5
|
+
import { cloneDeep as Fe } from "lodash-es";
|
|
6
|
+
import Le from "../response-toolbar/index.esm.js";
|
|
7
|
+
import { useDesignerInnerComponent as ve } from "../designer-canvas/index.esm.js";
|
|
8
|
+
import { withInstall as Ve } from "../common/index.esm.js";
|
|
9
9
|
const ie = {}, Ce = {};
|
|
10
10
|
function ae(n) {
|
|
11
|
-
const { properties: e, title: t } = n,
|
|
12
|
-
return
|
|
11
|
+
const { properties: e, title: t } = n, r = Object.keys(e).reduce((u, g) => (u[g] = e[g].type === "object" && e[g].properties ? ae(e[g]) : Fe(e[g].default), u), {});
|
|
12
|
+
return r.id = `${t}-${Date.now()}`, r;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function U(n, e = {}) {
|
|
15
15
|
const t = ie[n];
|
|
16
16
|
if (t) {
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
let r = ae(t);
|
|
18
|
+
const u = Ce[n];
|
|
19
|
+
return r = u ? u({ getSchemaByType: U }, r, e) : r, r;
|
|
20
20
|
}
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
function We(n, e) {
|
|
24
24
|
const t = ae(e);
|
|
25
|
-
return Object.keys(n).reduce((
|
|
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
|
|
28
|
-
return Object.keys(n).filter((
|
|
29
|
-
if (e.has(
|
|
30
|
-
const
|
|
31
|
-
if (typeof
|
|
32
|
-
|
|
27
|
+
function Ue(n, e) {
|
|
28
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
|
|
29
|
+
if (e.has(u)) {
|
|
30
|
+
const g = e.get(u);
|
|
31
|
+
if (typeof g == "string")
|
|
32
|
+
r[g] = n[u];
|
|
33
33
|
else {
|
|
34
|
-
const
|
|
35
|
-
Object.assign(
|
|
34
|
+
const v = g(u, n[u], n);
|
|
35
|
+
Object.assign(r, v);
|
|
36
36
|
}
|
|
37
37
|
} else
|
|
38
|
-
|
|
39
|
-
return
|
|
38
|
+
r[u] = n[u];
|
|
39
|
+
return r;
|
|
40
40
|
}, {});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function qe(n, e, t = /* @__PURE__ */ new Map()) {
|
|
43
|
+
const r = We(n, e);
|
|
44
|
+
return Ue(r, t);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
function e(
|
|
46
|
+
function He(n = {}) {
|
|
47
|
+
function e(b, T, l, a) {
|
|
48
48
|
if (typeof l == "number")
|
|
49
|
-
return a[
|
|
49
|
+
return a[b].length === l;
|
|
50
50
|
if (typeof l == "object") {
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
return Number(a[
|
|
54
|
-
if (
|
|
55
|
-
return Number(a[
|
|
56
|
-
if (
|
|
57
|
-
return Number(a[
|
|
51
|
+
const d = Object.keys(l)[0], i = l[d];
|
|
52
|
+
if (d === "not")
|
|
53
|
+
return Number(a[b].length) !== Number(i);
|
|
54
|
+
if (d === "moreThan")
|
|
55
|
+
return Number(a[b].length) >= Number(i);
|
|
56
|
+
if (d === "lessThan")
|
|
57
|
+
return Number(a[b].length) <= Number(i);
|
|
58
58
|
}
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
function t(
|
|
62
|
-
return a[
|
|
61
|
+
function t(b, T, l, a) {
|
|
62
|
+
return a[b] && a[b].propertyValue && String(a[b].propertyValue.value) === String(l);
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const r = /* @__PURE__ */ new Map([
|
|
65
65
|
["length", e],
|
|
66
66
|
["getProperty", t]
|
|
67
67
|
]);
|
|
68
|
-
Object.keys(n).reduce((
|
|
69
|
-
function
|
|
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:
|
|
68
|
+
Object.keys(n).reduce((b, T) => (b.set(T, n[T]), b), r);
|
|
69
|
+
function u(b, T) {
|
|
70
|
+
const l = b;
|
|
71
|
+
return typeof T == "number" ? [{ target: l, operator: "length", param: null, value: Number(T) }] : typeof T == "boolean" ? [{ target: l, operator: "getProperty", param: b, value: !!T }] : typeof T == "object" ? Object.keys(T).map((a) => {
|
|
72
72
|
if (a === "length")
|
|
73
73
|
return { target: l, operator: "length", param: null, value: T[a] };
|
|
74
|
-
const
|
|
75
|
-
return { target: l, operator: "getProperty", param:
|
|
74
|
+
const d = a, i = T[a];
|
|
75
|
+
return { target: l, operator: "getProperty", param: d, value: i };
|
|
76
76
|
}) : [];
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return Object.keys(
|
|
80
|
-
const
|
|
81
|
-
return l.push(...
|
|
78
|
+
function g(b) {
|
|
79
|
+
return Object.keys(b).reduce((l, a) => {
|
|
80
|
+
const d = u(a, b[a]);
|
|
81
|
+
return l.push(...d), l;
|
|
82
82
|
}, []);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
86
|
-
const l =
|
|
87
|
-
return l && l(
|
|
84
|
+
function v(b, T) {
|
|
85
|
+
if (r.has(b.operator)) {
|
|
86
|
+
const l = r.get(b.operator);
|
|
87
|
+
return l && l(b.target, b.param, b.value, T) || !1;
|
|
88
88
|
}
|
|
89
89
|
return !1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function D(b, T) {
|
|
92
|
+
return g(b).reduce((d, i) => d && v(i, T), !0);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const l = Object.keys(
|
|
96
|
-
return a ? !
|
|
94
|
+
function E(b, T) {
|
|
95
|
+
const l = Object.keys(b), a = l.includes("allOf"), d = l.includes("anyOf"), i = a || d, j = (i ? b[i ? a ? "allOf" : "anyOf" : "allOf"] : [b]).map((P) => D(P, T));
|
|
96
|
+
return a ? !j.includes(!1) : j.includes(!0);
|
|
97
97
|
}
|
|
98
|
-
return { parseValueSchema:
|
|
98
|
+
return { parseValueSchema: E };
|
|
99
99
|
}
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
100
|
+
const Z = {
|
|
101
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
103
102
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
104
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
103
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
105
104
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
106
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
107
105
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
108
106
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
109
107
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -114,118 +112,47 @@ const E = {
|
|
|
114
112
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
115
113
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
116
114
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
121
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
122
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
115
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
116
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
117
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
123
118
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
124
|
-
|
|
125
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
126
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
127
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
119
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
128
120
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
129
121
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
130
|
-
|
|
131
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
122
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
132
123
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
133
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
134
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
135
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
136
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
137
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
138
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
139
124
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
140
125
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
141
126
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
142
|
-
|
|
143
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
144
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
145
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
146
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
147
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
148
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
127
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
149
128
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
157
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
158
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
159
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
160
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
161
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
162
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
163
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
164
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
165
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
166
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
167
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
168
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
169
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
170
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
171
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
172
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
173
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
174
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
175
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
176
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
177
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
178
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
129
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
130
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
131
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
132
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
133
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
134
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
179
135
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
189
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
190
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
191
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
192
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
193
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
194
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
195
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
196
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
197
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
198
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
199
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
200
|
-
/** 查询类 start */
|
|
201
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
202
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
203
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
204
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
205
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
206
|
-
/** 查询类 end */
|
|
207
|
-
/** 审批类 start */
|
|
208
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
209
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
210
|
-
/** 审批类 end */
|
|
211
|
-
}, we = {}, Ge = {};
|
|
212
|
-
qe();
|
|
213
|
-
function ce(n, e, t = /* @__PURE__ */ new Map(), s = (h, P, k) => P, p = {}, u = (h) => h) {
|
|
214
|
-
return ie[e.title] = e, Ce[e.title] = s, we[e.title] = p, Ge[e.title] = u, (h = {}) => {
|
|
215
|
-
const P = He(h, e, t), k = Object.keys(n).reduce((g, T) => (g[T] = n[T].default, g), {});
|
|
216
|
-
return Object.assign(k, P);
|
|
136
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
137
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
138
|
+
}, we = {}, ze = {};
|
|
139
|
+
He();
|
|
140
|
+
function ce(n, e, t = /* @__PURE__ */ new Map(), r = (v, D, E) => D, u = {}, g = (v) => v) {
|
|
141
|
+
return ie[e.title] = e, Ce[e.title] = r, we[e.title] = u, ze[e.title] = g, (v = {}) => {
|
|
142
|
+
const D = qe(v, e, t), E = Object.keys(n).reduce((b, T) => (b[T] = n[T].default, b), {});
|
|
143
|
+
return Object.assign(E, D);
|
|
217
144
|
};
|
|
218
145
|
}
|
|
219
|
-
function
|
|
146
|
+
function Ge(n, e) {
|
|
220
147
|
return { customClass: e.class, customStyle: e.style };
|
|
221
148
|
}
|
|
222
|
-
function
|
|
149
|
+
function Je(n, e) {
|
|
223
150
|
return { buttons: e.buttons };
|
|
224
151
|
}
|
|
225
|
-
const
|
|
226
|
-
["appearance",
|
|
227
|
-
["toolbar",
|
|
228
|
-
]),
|
|
152
|
+
const Qe = /* @__PURE__ */ new Map([
|
|
153
|
+
["appearance", Ge],
|
|
154
|
+
["toolbar", Je]
|
|
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 = {
|
|
229
156
|
id: {
|
|
230
157
|
description: "The unique identifier for a Page Header",
|
|
231
158
|
type: "string"
|
|
@@ -333,15 +260,15 @@ const Ye = /* @__PURE__ */ new Map([
|
|
|
333
260
|
type: "boolean",
|
|
334
261
|
default: !1
|
|
335
262
|
}
|
|
336
|
-
},
|
|
337
|
-
$schema:
|
|
338
|
-
$id:
|
|
339
|
-
title:
|
|
340
|
-
description:
|
|
341
|
-
type:
|
|
342
|
-
properties:
|
|
263
|
+
}, nt = {
|
|
264
|
+
$schema: Xe,
|
|
265
|
+
$id: Ye,
|
|
266
|
+
title: Ze,
|
|
267
|
+
description: Ke,
|
|
268
|
+
type: et,
|
|
269
|
+
properties: tt
|
|
343
270
|
};
|
|
344
|
-
function
|
|
271
|
+
function ot(n, e, t) {
|
|
345
272
|
return e.title = "标题", e;
|
|
346
273
|
}
|
|
347
274
|
const le = {
|
|
@@ -375,187 +302,187 @@ const le = {
|
|
|
375
302
|
nextPaginationDisabled: { type: Boolean, default: !1 }
|
|
376
303
|
}, st = Object.assign({}, le, {
|
|
377
304
|
componentId: { type: String, default: "" }
|
|
378
|
-
}), fe = ce(le,
|
|
305
|
+
}), fe = ce(le, nt, Qe, ot), ne = /* @__PURE__ */ z({
|
|
379
306
|
name: "FPageHeader",
|
|
380
307
|
props: le,
|
|
381
308
|
emits: ["Click", "PrePaginationClick", "NextPaginationClick"],
|
|
382
309
|
setup(n, e) {
|
|
383
|
-
const t =
|
|
384
|
-
e.emit("Click",
|
|
310
|
+
const t = x(n.buttons), r = (P, A) => {
|
|
311
|
+
e.emit("Click", P, A);
|
|
385
312
|
};
|
|
386
|
-
function
|
|
387
|
-
|
|
313
|
+
function u(P, A) {
|
|
314
|
+
P && A && A.split(" ").reduce((y, f) => (y[f] = !0, y), P);
|
|
388
315
|
}
|
|
389
|
-
const
|
|
390
|
-
const
|
|
316
|
+
const g = F(() => {
|
|
317
|
+
const P = {
|
|
391
318
|
"f-page-header": !0
|
|
392
319
|
};
|
|
393
|
-
return
|
|
394
|
-
}),
|
|
395
|
-
const
|
|
320
|
+
return u(P, n.customClass), P;
|
|
321
|
+
}), v = F(() => {
|
|
322
|
+
const P = {
|
|
396
323
|
"f-title-icon": !0
|
|
397
324
|
};
|
|
398
|
-
return
|
|
399
|
-
}),
|
|
400
|
-
const
|
|
325
|
+
return u(P, n.iconClass), P;
|
|
326
|
+
}), D = F(() => {
|
|
327
|
+
const P = {
|
|
401
328
|
"f-icon": !0
|
|
402
329
|
};
|
|
403
|
-
return
|
|
404
|
-
}),
|
|
405
|
-
const
|
|
330
|
+
return u(P, n.icon), P;
|
|
331
|
+
}), E = F(() => {
|
|
332
|
+
const P = {
|
|
406
333
|
"f-title": !0
|
|
407
334
|
};
|
|
408
|
-
return
|
|
409
|
-
}),
|
|
410
|
-
const
|
|
335
|
+
return u(P, n.titleContentClass), P;
|
|
336
|
+
}), b = F(() => {
|
|
337
|
+
const P = {
|
|
411
338
|
"f-content": !0
|
|
412
339
|
};
|
|
413
|
-
return
|
|
414
|
-
}), T =
|
|
415
|
-
const
|
|
340
|
+
return u(P, n.contentClass), P;
|
|
341
|
+
}), T = F(() => {
|
|
342
|
+
const P = {
|
|
416
343
|
"f-content": !0
|
|
417
344
|
};
|
|
418
|
-
return
|
|
419
|
-
}), l =
|
|
345
|
+
return u(P, n.downContentClass), P;
|
|
346
|
+
}), l = F(() => ({
|
|
420
347
|
"f-icon f-icon-arrow-w": !0,
|
|
421
348
|
"f-state-disabled": n.prePaginationDisabled
|
|
422
|
-
})), a =
|
|
349
|
+
})), a = F(() => ({
|
|
423
350
|
"f-icon f-icon-arrow-e": !0,
|
|
424
351
|
"f-state-disabled": n.nextPaginationDisabled
|
|
425
352
|
}));
|
|
426
|
-
function
|
|
427
|
-
n.prePaginationDisabled || e.emit("PrePaginationClick",
|
|
353
|
+
function d(P) {
|
|
354
|
+
n.prePaginationDisabled || e.emit("PrePaginationClick", P);
|
|
428
355
|
}
|
|
429
|
-
function i(
|
|
430
|
-
n.nextPaginationDisabled || e.emit("NextPaginationClick",
|
|
356
|
+
function i(P) {
|
|
357
|
+
n.nextPaginationDisabled || e.emit("NextPaginationClick", P);
|
|
431
358
|
}
|
|
432
359
|
function C() {
|
|
433
|
-
return e.slots.titleContent ?
|
|
434
|
-
class:
|
|
435
|
-
}, [
|
|
360
|
+
return e.slots.titleContent ? h("div", {
|
|
361
|
+
class: E.value
|
|
362
|
+
}, [Q(" "), e.slots.titleContent()]) : h("div", {
|
|
436
363
|
class: "f-title"
|
|
437
|
-
}, [n.showIcon && n.icon ?
|
|
438
|
-
class:
|
|
439
|
-
}, [
|
|
440
|
-
class:
|
|
441
|
-
}, null)]) : "",
|
|
364
|
+
}, [n.showIcon && n.icon ? h("span", {
|
|
365
|
+
class: v.value
|
|
366
|
+
}, [h("i", {
|
|
367
|
+
class: D.value
|
|
368
|
+
}, null)]) : "", h("h4", {
|
|
442
369
|
class: "f-title-text"
|
|
443
|
-
}, [n.title]), n.subTitle ?
|
|
370
|
+
}, [n.title]), n.subTitle ? h("h5", {
|
|
444
371
|
class: "f-title-subtitle"
|
|
445
|
-
}, [n.subTitle]) : "", n.showPagination ?
|
|
372
|
+
}, [n.subTitle]) : "", n.showPagination ? h("div", {
|
|
446
373
|
class: "f-title-pagination"
|
|
447
|
-
}, [
|
|
374
|
+
}, [h("span", {
|
|
448
375
|
class: l.value,
|
|
449
|
-
onClick:
|
|
450
|
-
}, null),
|
|
376
|
+
onClick: d
|
|
377
|
+
}, null), h("span", {
|
|
451
378
|
class: a.value,
|
|
452
379
|
onClick: i
|
|
453
380
|
}, null)]) : ""]);
|
|
454
381
|
}
|
|
455
382
|
function w() {
|
|
456
|
-
return e.slots.content ?
|
|
457
|
-
class:
|
|
458
|
-
}, [
|
|
383
|
+
return e.slots.content ? h("div", {
|
|
384
|
+
class: b.value
|
|
385
|
+
}, [Q(" "), e.slots.content()]) : "";
|
|
459
386
|
}
|
|
460
|
-
function
|
|
387
|
+
function j() {
|
|
461
388
|
if (n.buttons && n.buttons.length > 0)
|
|
462
|
-
return
|
|
389
|
+
return h(Le, {
|
|
463
390
|
customClass: n.buttonClass,
|
|
464
391
|
items: t.value,
|
|
465
|
-
onClick:
|
|
392
|
+
onClick: r
|
|
466
393
|
}, null);
|
|
467
394
|
}
|
|
468
395
|
function R() {
|
|
469
|
-
return e.slots.downContent ?
|
|
396
|
+
return e.slots.downContent ? h("div", {
|
|
470
397
|
class: T.value
|
|
471
|
-
}, [
|
|
398
|
+
}, [Q(" "), e.slots.downContent()]) : "";
|
|
472
399
|
}
|
|
473
|
-
return
|
|
474
|
-
t.value =
|
|
400
|
+
return G(() => n.buttons, (P) => {
|
|
401
|
+
t.value = P;
|
|
475
402
|
}, {
|
|
476
403
|
deep: !0
|
|
477
|
-
}), () =>
|
|
478
|
-
class:
|
|
479
|
-
}, [
|
|
404
|
+
}), () => h("div", {
|
|
405
|
+
class: g.value
|
|
406
|
+
}, [h("nav", {
|
|
480
407
|
class: "f-page-header-base"
|
|
481
|
-
}, [C(), w(),
|
|
408
|
+
}, [C(), w(), j()]), R()]);
|
|
482
409
|
}
|
|
483
410
|
});
|
|
484
|
-
function
|
|
485
|
-
var
|
|
486
|
-
function
|
|
411
|
+
function rt(n, e, t) {
|
|
412
|
+
var N;
|
|
413
|
+
function r() {
|
|
487
414
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
488
415
|
}
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
function
|
|
416
|
+
r();
|
|
417
|
+
const u = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", v = x();
|
|
418
|
+
function D() {
|
|
492
419
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
493
420
|
}
|
|
494
|
-
function
|
|
421
|
+
function E() {
|
|
495
422
|
return !1;
|
|
496
423
|
}
|
|
497
|
-
function
|
|
424
|
+
function b() {
|
|
498
425
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
499
426
|
}
|
|
500
427
|
function T() {
|
|
501
428
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
502
429
|
}
|
|
503
|
-
function l(
|
|
504
|
-
if (!
|
|
430
|
+
function l(y) {
|
|
431
|
+
if (!y || !y.value)
|
|
505
432
|
return null;
|
|
506
|
-
if (
|
|
507
|
-
return
|
|
508
|
-
const
|
|
509
|
-
return
|
|
433
|
+
if (y.value.schema && y.value.schema.type === "component")
|
|
434
|
+
return y.value;
|
|
435
|
+
const f = x(y == null ? void 0 : y.value.parent), S = l(f);
|
|
436
|
+
return S || null;
|
|
510
437
|
}
|
|
511
|
-
function a(
|
|
512
|
-
const { componentInstance:
|
|
513
|
-
return !
|
|
438
|
+
function a(y = e) {
|
|
439
|
+
const { componentInstance: f, designerItemElementRef: S } = y;
|
|
440
|
+
return !f || !f.value ? null : f.value.canMove ? S : a(y.parent);
|
|
514
441
|
}
|
|
515
|
-
function
|
|
516
|
-
return !!t && t.canAccepts(
|
|
442
|
+
function d(y) {
|
|
443
|
+
return !!t && t.canAccepts(y);
|
|
517
444
|
}
|
|
518
445
|
function i() {
|
|
519
446
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
520
447
|
}
|
|
521
448
|
function C() {
|
|
522
449
|
}
|
|
523
|
-
function w(
|
|
524
|
-
|
|
450
|
+
function w(y, f) {
|
|
451
|
+
f && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(f);
|
|
525
452
|
}
|
|
526
|
-
function
|
|
527
|
-
const { componentType:
|
|
528
|
-
let
|
|
529
|
-
t && t.onResolveNewComponentSchema && (
|
|
530
|
-
const
|
|
531
|
-
return
|
|
453
|
+
function j(y) {
|
|
454
|
+
const { componentType: f } = y;
|
|
455
|
+
let S = U(f, y);
|
|
456
|
+
t && t.onResolveNewComponentSchema && (S = t.onResolveNewComponentSchema(y, S));
|
|
457
|
+
const k = f.toLowerCase().replace("-", "_");
|
|
458
|
+
return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
|
|
532
459
|
}
|
|
533
|
-
function R(
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
let
|
|
537
|
-
t && t.onAcceptNewChildElement && (
|
|
538
|
-
const o =
|
|
539
|
-
return
|
|
460
|
+
function R(y, f) {
|
|
461
|
+
const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
|
|
462
|
+
p.parentComponentInstance = v.value;
|
|
463
|
+
let s = U(S, p);
|
|
464
|
+
t && t.onAcceptNewChildElement && (s = t.onAcceptNewChildElement(y, f, s));
|
|
465
|
+
const o = S.toLowerCase().replace("-", "_");
|
|
466
|
+
return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
|
|
540
467
|
}
|
|
541
|
-
function
|
|
468
|
+
function P(y) {
|
|
542
469
|
}
|
|
543
|
-
function A(...
|
|
470
|
+
function A(...y) {
|
|
544
471
|
if (t && t.getPropsConfig)
|
|
545
|
-
return t.getPropsConfig(...
|
|
472
|
+
return t.getPropsConfig(...y);
|
|
546
473
|
}
|
|
547
|
-
return
|
|
548
|
-
canMove:
|
|
549
|
-
canSelectParent:
|
|
550
|
-
canDelete:
|
|
474
|
+
return v.value = {
|
|
475
|
+
canMove: D(),
|
|
476
|
+
canSelectParent: E(),
|
|
477
|
+
canDelete: b(),
|
|
551
478
|
canNested: !T(),
|
|
552
479
|
contents: e == null ? void 0 : e.schema.contents,
|
|
553
480
|
elementRef: n,
|
|
554
|
-
parent: (
|
|
481
|
+
parent: (N = e == null ? void 0 : e.parent) == null ? void 0 : N.componentInstance,
|
|
555
482
|
schema: e == null ? void 0 : e.schema,
|
|
556
|
-
styles:
|
|
557
|
-
designerClass:
|
|
558
|
-
canAccepts:
|
|
483
|
+
styles: u,
|
|
484
|
+
designerClass: g,
|
|
485
|
+
canAccepts: d,
|
|
559
486
|
getBelongedComponentInstance: l,
|
|
560
487
|
getDraggableDesignItemElement: a,
|
|
561
488
|
getDraggingDisplayText: i,
|
|
@@ -563,78 +490,14 @@ function it(n, e, t) {
|
|
|
563
490
|
getDragScopeElement: C,
|
|
564
491
|
onAcceptMovedChildElement: w,
|
|
565
492
|
onAcceptNewChildElement: R,
|
|
566
|
-
onChildElementMovedOut:
|
|
567
|
-
addNewChildComponentSchema:
|
|
568
|
-
updateDragAndDropRules:
|
|
569
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
570
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
571
|
-
},
|
|
493
|
+
onChildElementMovedOut: P,
|
|
494
|
+
addNewChildComponentSchema: j,
|
|
495
|
+
updateDragAndDropRules: r,
|
|
496
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || x(!1),
|
|
497
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || x(!1)
|
|
498
|
+
}, v;
|
|
572
499
|
}
|
|
573
|
-
class
|
|
574
|
-
static getEditorTypesByMDataType(e) {
|
|
575
|
-
const t = this.fieldControlTypeMapping[e];
|
|
576
|
-
return t || [{ key: "", value: "" }];
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* <字段类型,可配置的控件类型列表>的映射
|
|
581
|
-
*/
|
|
582
|
-
O(Te, "fieldControlTypeMapping", {
|
|
583
|
-
String: [
|
|
584
|
-
{ key: E["input-group"].type, value: E["input-group"].name },
|
|
585
|
-
{ key: E.lookup.type, value: E.lookup.name },
|
|
586
|
-
{ key: E.Image.type, value: E.Image.name },
|
|
587
|
-
{ key: E["date-picker"].type, value: E["date-picker"].name },
|
|
588
|
-
{ key: E["check-box"].type, value: E["check-box"].name },
|
|
589
|
-
{ key: E["radio-group"].type, value: E["radio-group"].name },
|
|
590
|
-
{ key: E["combo-list"].type, value: E["combo-list"].name },
|
|
591
|
-
{ key: E.textarea.type, value: E.textarea.name }
|
|
592
|
-
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
593
|
-
],
|
|
594
|
-
Text: [
|
|
595
|
-
{ key: E.textarea.type, value: E.textarea.name },
|
|
596
|
-
{ key: E.avatar.type, value: E.avatar.name },
|
|
597
|
-
{ key: E.lookup.type, value: E.lookup.name }
|
|
598
|
-
],
|
|
599
|
-
Decimal: [
|
|
600
|
-
{ key: E["number-spinner"].type, value: E["number-spinner"].name }
|
|
601
|
-
],
|
|
602
|
-
Integer: [
|
|
603
|
-
{ key: E["number-spinner"].type, value: E["number-spinner"].name }
|
|
604
|
-
],
|
|
605
|
-
Number: [
|
|
606
|
-
{ key: E["number-spinner"].type, value: E["number-spinner"].name }
|
|
607
|
-
],
|
|
608
|
-
BigNumber: [
|
|
609
|
-
{ key: E["number-spinner"].type, value: E["number-spinner"].name }
|
|
610
|
-
],
|
|
611
|
-
Date: [
|
|
612
|
-
{ key: E["date-picker"].type, value: E["date-picker"].name }
|
|
613
|
-
],
|
|
614
|
-
DateTime: [
|
|
615
|
-
{ key: E["date-picker"].type, value: E["date-picker"].name }
|
|
616
|
-
],
|
|
617
|
-
Boolean: [
|
|
618
|
-
{ key: E.switch.type, value: E.switch.name },
|
|
619
|
-
{ key: E["check-box"].type, value: E["check-box"].name }
|
|
620
|
-
],
|
|
621
|
-
Enum: [
|
|
622
|
-
{ key: E["combo-list"].type, value: E["combo-list"].name },
|
|
623
|
-
{ key: E["radio-group"].type, value: E["radio-group"].name }
|
|
624
|
-
],
|
|
625
|
-
Object: [
|
|
626
|
-
{ key: E.lookup.type, value: E.lookup.name },
|
|
627
|
-
{ key: E["combo-list"].type, value: E["combo-list"].name },
|
|
628
|
-
{ key: E["radio-group"].type, value: E["radio-group"].name }
|
|
629
|
-
],
|
|
630
|
-
EmployeeSelector: [
|
|
631
|
-
{ key: E.EmployeeSelector.type, value: E.EmployeeSelector.name }
|
|
632
|
-
],
|
|
633
|
-
AdminOrganizationSelector: [
|
|
634
|
-
{ key: E.AdminOrganizationSelector.type, value: E.AdminOrganizationSelector.name }
|
|
635
|
-
]
|
|
636
|
-
});
|
|
637
|
-
class J {
|
|
500
|
+
class K {
|
|
638
501
|
constructor(e, t) {
|
|
639
502
|
O(this, "componentId");
|
|
640
503
|
O(this, "viewModelId");
|
|
@@ -651,8 +514,8 @@ class J {
|
|
|
651
514
|
type: "object",
|
|
652
515
|
categories: {}
|
|
653
516
|
});
|
|
654
|
-
var
|
|
655
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((
|
|
517
|
+
var r;
|
|
518
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((r = this.formSchemaUtils) == null ? void 0 : r.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
656
519
|
}
|
|
657
520
|
getTableInfo() {
|
|
658
521
|
var e;
|
|
@@ -662,8 +525,8 @@ class J {
|
|
|
662
525
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
663
526
|
if (t) {
|
|
664
527
|
if (!this.designViewModelField) {
|
|
665
|
-
const
|
|
666
|
-
this.designViewModelField =
|
|
528
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
529
|
+
this.designViewModelField = r.fields.find((u) => u.id === t);
|
|
667
530
|
}
|
|
668
531
|
e.updateOn = this.designViewModelField.updateOn;
|
|
669
532
|
}
|
|
@@ -671,9 +534,7 @@ class J {
|
|
|
671
534
|
changeFieldEditorType(e, t) {
|
|
672
535
|
}
|
|
673
536
|
getBasicPropConfig(e) {
|
|
674
|
-
|
|
675
|
-
var t = this;
|
|
676
|
-
return this.setDesignViewModelField(e), {
|
|
537
|
+
return {
|
|
677
538
|
description: "Basic Information",
|
|
678
539
|
title: "基本信息",
|
|
679
540
|
properties: {
|
|
@@ -686,69 +547,17 @@ class J {
|
|
|
686
547
|
type: {
|
|
687
548
|
description: "组件类型",
|
|
688
549
|
title: "控件类型",
|
|
689
|
-
type: "
|
|
690
|
-
refreshPanelAfterChanged: !0,
|
|
691
|
-
$converter: "/converter/change-editor.converter",
|
|
550
|
+
type: "select",
|
|
692
551
|
editor: {
|
|
693
552
|
type: "combo-list",
|
|
694
|
-
textField: "
|
|
695
|
-
valueField: "
|
|
696
|
-
data:
|
|
697
|
-
editable: !1
|
|
553
|
+
textField: "name",
|
|
554
|
+
valueField: "value",
|
|
555
|
+
data: [{ value: e.type, name: Z[e.type].name }]
|
|
698
556
|
}
|
|
699
|
-
},
|
|
700
|
-
label: {
|
|
701
|
-
title: "标签",
|
|
702
|
-
type: "string",
|
|
703
|
-
$converter: "/converter/form-group-label.converter"
|
|
704
557
|
}
|
|
705
|
-
},
|
|
706
|
-
setPropertyRelates(u, h) {
|
|
707
|
-
if (u)
|
|
708
|
-
switch (u && u.propertyID) {
|
|
709
|
-
case "type": {
|
|
710
|
-
t.changeControlType(e, u);
|
|
711
|
-
break;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
558
|
}
|
|
715
559
|
};
|
|
716
560
|
}
|
|
717
|
-
/**
|
|
718
|
-
* 卡片控件:切换控件类型后事件
|
|
719
|
-
* @param propertyData 控件DOM属性
|
|
720
|
-
* @param newControlType 新控件类型
|
|
721
|
-
*/
|
|
722
|
-
changeControlType(e, t) {
|
|
723
|
-
var g, T, l, a, f;
|
|
724
|
-
const s = t.propertyValue, p = this.formSchemaUtils.getComponentById(this.componentId);
|
|
725
|
-
let u = this.getControlParentContainer(e.id, p);
|
|
726
|
-
if (!u)
|
|
727
|
-
return;
|
|
728
|
-
const h = u.contents.findIndex((i) => i.id === e.id), P = u.contents[h];
|
|
729
|
-
let k;
|
|
730
|
-
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
731
|
-
editor: {
|
|
732
|
-
$type: s
|
|
733
|
-
},
|
|
734
|
-
name: this.designViewModelField.name,
|
|
735
|
-
require: this.designViewModelField.require,
|
|
736
|
-
readonly: this.designViewModelField.readonly
|
|
737
|
-
}, !1), k = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, s)), Object.assign(k, {
|
|
738
|
-
id: P.id,
|
|
739
|
-
appearance: P.appearance,
|
|
740
|
-
size: P.size,
|
|
741
|
-
label: P.label
|
|
742
|
-
}), Object.assign(k.editor, {
|
|
743
|
-
isTextArea: k.isTextArea && P.isTextArea,
|
|
744
|
-
type: s || "",
|
|
745
|
-
placeHolder: (g = P.editor) == null ? void 0 : g.placeHolder,
|
|
746
|
-
holdPlace: (T = P.editor) == null ? void 0 : T.holdPlace,
|
|
747
|
-
readonly: (l = P.editor) == null ? void 0 : l.readonly,
|
|
748
|
-
require: (a = P.editor) == null ? void 0 : a.require,
|
|
749
|
-
visible: (f = P.editor) == null ? void 0 : f.visible
|
|
750
|
-
}), u.contents.splice(h, 1, k);
|
|
751
|
-
}
|
|
752
561
|
getAppearanceConfig(e = null) {
|
|
753
562
|
return {
|
|
754
563
|
title: "样式",
|
|
@@ -765,38 +574,12 @@ class J {
|
|
|
765
574
|
type: "string",
|
|
766
575
|
description: "组件的样式",
|
|
767
576
|
$converter: "/converter/appearance.converter"
|
|
768
|
-
},
|
|
769
|
-
responseLayout: {
|
|
770
|
-
description: "响应式列宽",
|
|
771
|
-
title: "响应式列宽",
|
|
772
|
-
type: "boolean",
|
|
773
|
-
visible: !1,
|
|
774
|
-
editor: {
|
|
775
|
-
type: "response-layout-editor-setting"
|
|
776
|
-
},
|
|
777
|
-
$converter: "/converter/response-form-layout.converter"
|
|
778
577
|
}
|
|
779
578
|
}
|
|
780
579
|
};
|
|
781
580
|
}
|
|
782
|
-
/**
|
|
783
|
-
* 获取控件:以contents为节点进行定位
|
|
784
|
-
* @param controlId 控件ID
|
|
785
|
-
* @param domJson 容器
|
|
786
|
-
*/
|
|
787
|
-
getControlParentContainer(e, t) {
|
|
788
|
-
let s;
|
|
789
|
-
if (!t || !t.contents || t.contents.length === 0)
|
|
790
|
-
return null;
|
|
791
|
-
for (const p of t.contents) {
|
|
792
|
-
if (p.id === e)
|
|
793
|
-
return s = t, t;
|
|
794
|
-
if (s = this.getControlParentContainer(e, p), s)
|
|
795
|
-
return s;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
581
|
}
|
|
799
|
-
class
|
|
582
|
+
class it extends K {
|
|
800
583
|
constructor(e, t) {
|
|
801
584
|
super(e, t);
|
|
802
585
|
}
|
|
@@ -822,7 +605,7 @@ class at extends J {
|
|
|
822
605
|
type: "combo-list",
|
|
823
606
|
textField: "value",
|
|
824
607
|
valueField: "key",
|
|
825
|
-
data: [{ key: "page-header", value:
|
|
608
|
+
data: [{ key: "page-header", value: Z["page-header"].name }]
|
|
826
609
|
}
|
|
827
610
|
},
|
|
828
611
|
icon: {
|
|
@@ -862,7 +645,7 @@ class at extends J {
|
|
|
862
645
|
label: "click",
|
|
863
646
|
name: "点击事件"
|
|
864
647
|
}
|
|
865
|
-
],
|
|
648
|
+
], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t);
|
|
866
649
|
this.propertyConfig.categories.eventsEditor = {
|
|
867
650
|
title: "事件",
|
|
868
651
|
hideTitle: !0,
|
|
@@ -870,7 +653,7 @@ class at extends J {
|
|
|
870
653
|
"data-grid-component-viewmodel": {
|
|
871
654
|
type: "events-editor",
|
|
872
655
|
editor: {
|
|
873
|
-
initialData:
|
|
656
|
+
initialData: u
|
|
874
657
|
}
|
|
875
658
|
}
|
|
876
659
|
},
|
|
@@ -878,30 +661,38 @@ class at extends J {
|
|
|
878
661
|
refreshPanelAfterChanged: !0,
|
|
879
662
|
tabId: "commands",
|
|
880
663
|
tabName: "交互",
|
|
881
|
-
setPropertyRelates(
|
|
882
|
-
const
|
|
883
|
-
delete e[
|
|
664
|
+
setPropertyRelates(g, v) {
|
|
665
|
+
const D = g.propertyValue;
|
|
666
|
+
delete e[r.viewModelId], D && (D.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, D.events, D));
|
|
884
667
|
}
|
|
885
668
|
};
|
|
886
669
|
}
|
|
887
670
|
}
|
|
888
|
-
function
|
|
889
|
-
function t(
|
|
671
|
+
function at(n, e) {
|
|
672
|
+
function t(D) {
|
|
890
673
|
return !1;
|
|
891
674
|
}
|
|
892
|
-
function
|
|
675
|
+
function r() {
|
|
676
|
+
return !1;
|
|
677
|
+
}
|
|
678
|
+
function u() {
|
|
679
|
+
return !1;
|
|
680
|
+
}
|
|
681
|
+
function g() {
|
|
893
682
|
return !0;
|
|
894
683
|
}
|
|
895
|
-
function
|
|
896
|
-
return new
|
|
684
|
+
function v(D) {
|
|
685
|
+
return new it(D, e).getPropertyConfig(n);
|
|
897
686
|
}
|
|
898
687
|
return {
|
|
899
688
|
canAccepts: t,
|
|
900
|
-
hideNestedPaddingInDesginerView:
|
|
901
|
-
getPropsConfig:
|
|
689
|
+
hideNestedPaddingInDesginerView: g,
|
|
690
|
+
getPropsConfig: v,
|
|
691
|
+
checkCanDeleteComponent: r,
|
|
692
|
+
checkCanMoveComponent: u
|
|
902
693
|
};
|
|
903
694
|
}
|
|
904
|
-
class
|
|
695
|
+
class Te {
|
|
905
696
|
constructor(e) {
|
|
906
697
|
/** 工具栏项标识 */
|
|
907
698
|
O(this, "id", "");
|
|
@@ -946,13 +737,13 @@ class Se {
|
|
|
946
737
|
"tipsText",
|
|
947
738
|
"onClick"
|
|
948
739
|
];
|
|
949
|
-
Object.keys(e).filter((
|
|
950
|
-
this[
|
|
740
|
+
Object.keys(e).filter((r) => t.indexOf(r) > -1).forEach((r) => {
|
|
741
|
+
this[r] = e[r];
|
|
951
742
|
});
|
|
952
743
|
}
|
|
953
744
|
/** 是否可用 */
|
|
954
745
|
get enable() {
|
|
955
|
-
return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable :
|
|
746
|
+
return Object.keys(this.options).indexOf("enable") > -1 ? this.options.enable : F(() => !0);
|
|
956
747
|
}
|
|
957
748
|
/** 设置宽度 */
|
|
958
749
|
setWidth(e) {
|
|
@@ -963,7 +754,7 @@ class Se {
|
|
|
963
754
|
return this.visible ? this.width : !1;
|
|
964
755
|
}
|
|
965
756
|
}
|
|
966
|
-
class
|
|
757
|
+
class ct extends Te {
|
|
967
758
|
constructor(e) {
|
|
968
759
|
super(e);
|
|
969
760
|
}
|
|
@@ -971,12 +762,12 @@ class lt extends Se {
|
|
|
971
762
|
function Pe() {
|
|
972
763
|
function n(e) {
|
|
973
764
|
const t = [];
|
|
974
|
-
return e.reduce((
|
|
765
|
+
return e.reduce((r, u) => (u.children && u.children.length > 0 ? r.push(new J(u)) : r.push(new ct(u)), r), t), t;
|
|
975
766
|
}
|
|
976
767
|
return { buildResponseToolbarItems: n };
|
|
977
768
|
}
|
|
978
|
-
const { buildResponseToolbarItems:
|
|
979
|
-
class
|
|
769
|
+
const { buildResponseToolbarItems: lt } = Pe();
|
|
770
|
+
class J extends Te {
|
|
980
771
|
constructor(t) {
|
|
981
772
|
super(t);
|
|
982
773
|
O(this, "placement", "");
|
|
@@ -989,19 +780,19 @@ class X extends Se {
|
|
|
989
780
|
O(this, "split", !1);
|
|
990
781
|
O(this, "children", []);
|
|
991
782
|
O(this, "expanded", !1);
|
|
992
|
-
const
|
|
993
|
-
Object.keys(t).filter((
|
|
994
|
-
this[
|
|
995
|
-
}), t.children && t.children.length && (this.children =
|
|
783
|
+
const r = ["isDP", "class", "dropdownClass", "menuClass", "placement", "split", "expanded"];
|
|
784
|
+
Object.keys(t).filter((u) => r.indexOf(u) > -1).forEach((u) => {
|
|
785
|
+
this[u] = t[u];
|
|
786
|
+
}), t.children && t.children.length && (this.children = lt(t.children));
|
|
996
787
|
}
|
|
997
788
|
}
|
|
998
789
|
const De = /* @__PURE__ */ new Map([
|
|
999
790
|
["buttons", "items"]
|
|
1000
791
|
]);
|
|
1001
|
-
function
|
|
792
|
+
function Se(n, e, t) {
|
|
1002
793
|
return e;
|
|
1003
794
|
}
|
|
1004
|
-
const
|
|
795
|
+
const pt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-design.gitee.io/response-toolbar.schema.json", dt = "response-toolbar", ft = "A Farris Toolbar Component", mt = "object", gt = {
|
|
1005
796
|
id: {
|
|
1006
797
|
description: "The unique identifier for a Response Toolbar",
|
|
1007
798
|
type: "string"
|
|
@@ -1039,14 +830,14 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1039
830
|
"type",
|
|
1040
831
|
"buttons"
|
|
1041
832
|
], bt = {
|
|
1042
|
-
$schema:
|
|
833
|
+
$schema: pt,
|
|
1043
834
|
$id: ut,
|
|
1044
|
-
title:
|
|
1045
|
-
description:
|
|
1046
|
-
type:
|
|
1047
|
-
properties:
|
|
835
|
+
title: dt,
|
|
836
|
+
description: ft,
|
|
837
|
+
type: mt,
|
|
838
|
+
properties: gt,
|
|
1048
839
|
required: ht
|
|
1049
|
-
},
|
|
840
|
+
}, yt = "https://json-schema.org/draft/2020-12/schema", vt = "https://farris-design.gitee.io/response-toolbar-item.schema.json", Ct = "response-toolbar-item", wt = "A Farris Toolbar Item Component", Tt = "object", Pt = {
|
|
1050
841
|
id: {
|
|
1051
842
|
description: "The unique identifier for a Response Toolbar",
|
|
1052
843
|
type: "string"
|
|
@@ -1088,15 +879,15 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1088
879
|
"id",
|
|
1089
880
|
"type",
|
|
1090
881
|
"text"
|
|
1091
|
-
],
|
|
1092
|
-
$schema:
|
|
1093
|
-
$id:
|
|
1094
|
-
title:
|
|
1095
|
-
description:
|
|
1096
|
-
type:
|
|
882
|
+
], se = {
|
|
883
|
+
$schema: yt,
|
|
884
|
+
$id: vt,
|
|
885
|
+
title: Ct,
|
|
886
|
+
description: wt,
|
|
887
|
+
type: Tt,
|
|
1097
888
|
properties: Pt,
|
|
1098
889
|
required: Dt
|
|
1099
|
-
},
|
|
890
|
+
}, St = "response-toolbar-item", jt = "A Farris Container Component", Et = "object", Mt = {
|
|
1100
891
|
basic: {
|
|
1101
892
|
title: "基本信息",
|
|
1102
893
|
description: "Basic Infomation",
|
|
@@ -1130,10 +921,10 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1130
921
|
}
|
|
1131
922
|
}
|
|
1132
923
|
}, me = {
|
|
1133
|
-
title:
|
|
1134
|
-
description:
|
|
1135
|
-
type:
|
|
1136
|
-
categories:
|
|
924
|
+
title: St,
|
|
925
|
+
description: jt,
|
|
926
|
+
type: Et,
|
|
927
|
+
categories: Mt
|
|
1137
928
|
}, pe = {
|
|
1138
929
|
/** 组件自定义样式 */
|
|
1139
930
|
customClass: { type: String, default: "" },
|
|
@@ -1143,38 +934,38 @@ const dt = "https://json-schema.org/draft/2020-12/schema", ut = "https://farris-
|
|
|
1143
934
|
default: []
|
|
1144
935
|
}
|
|
1145
936
|
};
|
|
1146
|
-
ie[
|
|
937
|
+
ie[se.title] = se;
|
|
1147
938
|
we[me.title] = me;
|
|
1148
|
-
const
|
|
939
|
+
const xt = Object.assign({}, pe, {
|
|
1149
940
|
componentId: { type: String, default: "" }
|
|
1150
|
-
}),
|
|
941
|
+
}), ue = ce(
|
|
1151
942
|
pe,
|
|
1152
943
|
bt,
|
|
1153
944
|
De,
|
|
1154
|
-
|
|
1155
|
-
),
|
|
945
|
+
Se
|
|
946
|
+
), je = {
|
|
1156
947
|
id: { type: String, default: "" },
|
|
1157
948
|
items: { type: Object, default: {} },
|
|
1158
949
|
text: { type: String, default: "" },
|
|
1159
950
|
disabled: { type: Boolean, default: !1 },
|
|
1160
951
|
icon: { type: String, default: "" },
|
|
1161
952
|
componentId: { type: String, default: "" }
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1164
|
-
|
|
953
|
+
}, kt = ce(
|
|
954
|
+
je,
|
|
955
|
+
se,
|
|
1165
956
|
De,
|
|
1166
|
-
|
|
957
|
+
Se
|
|
1167
958
|
);
|
|
1168
|
-
function
|
|
959
|
+
function Ee() {
|
|
1169
960
|
function n(t) {
|
|
1170
|
-
const
|
|
961
|
+
const r = {
|
|
1171
962
|
"f-icon": !0
|
|
1172
963
|
};
|
|
1173
964
|
if (t.icon) {
|
|
1174
|
-
const
|
|
1175
|
-
|
|
965
|
+
const u = t.icon.trim().split(" ");
|
|
966
|
+
u && u.length && u.reduce((g, v) => (g[v] = !0, g), r);
|
|
1176
967
|
}
|
|
1177
|
-
return
|
|
968
|
+
return r;
|
|
1178
969
|
}
|
|
1179
970
|
function e(t) {
|
|
1180
971
|
return !!(t.icon && t.icon.trim());
|
|
@@ -1187,8 +978,8 @@ function At(n) {
|
|
|
1187
978
|
"dropdown-menu": !0
|
|
1188
979
|
};
|
|
1189
980
|
if (l.class) {
|
|
1190
|
-
const
|
|
1191
|
-
|
|
981
|
+
const d = l.menuClass.split(" ");
|
|
982
|
+
d && d.length && d.reduce((i, C) => (i[C] = !0, i), a);
|
|
1192
983
|
}
|
|
1193
984
|
return a;
|
|
1194
985
|
}
|
|
@@ -1197,117 +988,117 @@ function At(n) {
|
|
|
1197
988
|
disabled: !l.enable,
|
|
1198
989
|
"dropdown-submenu": !0,
|
|
1199
990
|
"f-rt-dropdown": !0
|
|
1200
|
-
},
|
|
1201
|
-
return
|
|
991
|
+
}, d = l.dropdownClass.split(" ");
|
|
992
|
+
return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
|
|
1202
993
|
}
|
|
1203
|
-
function
|
|
994
|
+
function r(l) {
|
|
1204
995
|
const a = {
|
|
1205
996
|
disabled: !l.enable,
|
|
1206
997
|
"dropdown-item": !0,
|
|
1207
998
|
"f-rt-btn": !0
|
|
1208
|
-
},
|
|
1209
|
-
return
|
|
999
|
+
}, d = l.class.split(" ");
|
|
1000
|
+
return d && d.length && d.reduce((i, C) => (i[C] = !0, i), a), a;
|
|
1210
1001
|
}
|
|
1211
|
-
let
|
|
1212
|
-
const
|
|
1213
|
-
function
|
|
1002
|
+
let u;
|
|
1003
|
+
const g = /* @__PURE__ */ new Map();
|
|
1004
|
+
function v(l, a, d) {
|
|
1214
1005
|
var C;
|
|
1215
1006
|
((C = l.target) == null ? void 0 : C.id) === a.id && l.stopPropagation();
|
|
1216
|
-
const i =
|
|
1217
|
-
if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ?
|
|
1218
|
-
const w =
|
|
1007
|
+
const i = d ? d.id : "__top_item__";
|
|
1008
|
+
if (a.children && a.children.length && (a.expanded = !a.expanded, a.expanded ? g.set(i, a) : g.delete(i)), g.has(i) && g.get(i) !== a) {
|
|
1009
|
+
const w = g.get(i);
|
|
1219
1010
|
w && (w.expanded = !1);
|
|
1220
1011
|
}
|
|
1221
1012
|
}
|
|
1222
|
-
function
|
|
1013
|
+
function D(l, a) {
|
|
1223
1014
|
document.body.click(), a.enable && a.onClick(l, a.id);
|
|
1224
1015
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return l.children.map((a) => a.children && a.children.length ?
|
|
1016
|
+
function E(l) {
|
|
1017
|
+
return l.children.map((a) => a.children && a.children.length ? h("li", {
|
|
1227
1018
|
class: t(a),
|
|
1228
1019
|
id: a.id,
|
|
1229
|
-
onClick: (
|
|
1230
|
-
}, [
|
|
1020
|
+
onClick: (d) => a.enable && v(d, a, l)
|
|
1021
|
+
}, [h("span", {
|
|
1231
1022
|
id: a.id,
|
|
1232
|
-
class:
|
|
1233
|
-
onMouseover: (
|
|
1234
|
-
}, [a.text,
|
|
1023
|
+
class: r(a),
|
|
1024
|
+
onMouseover: (d) => a.enable && v(d, a, l)
|
|
1025
|
+
}, [a.text, h("i", {
|
|
1235
1026
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1236
1027
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1237
|
-
}, null)]),
|
|
1238
|
-
class:
|
|
1028
|
+
}, null)]), u(a, a)]) : h("li", {
|
|
1029
|
+
class: r(a),
|
|
1239
1030
|
id: a.id,
|
|
1240
|
-
onClick: (
|
|
1241
|
-
onMouseover: (
|
|
1242
|
-
}, [n.shouldShowIcon(a) &&
|
|
1031
|
+
onClick: (d) => D(d, a),
|
|
1032
|
+
onMouseover: (d) => a.enable && v(d, a, l)
|
|
1033
|
+
}, [n.shouldShowIcon(a) && h("i", {
|
|
1243
1034
|
class: n.iconClass(a)
|
|
1244
1035
|
}, null), a.text]));
|
|
1245
1036
|
}
|
|
1246
|
-
function
|
|
1037
|
+
function b(l, a, d) {
|
|
1247
1038
|
const i = {
|
|
1248
1039
|
display: l.expanded ? "block" : "none",
|
|
1249
1040
|
position: "fixed",
|
|
1250
1041
|
maxWidth: "300px",
|
|
1251
1042
|
width: "auto",
|
|
1252
1043
|
minWidth: "120px"
|
|
1253
|
-
}, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a,
|
|
1254
|
-
if (w &&
|
|
1044
|
+
}, C = document.getElementsByTagName("body")[0].getClientRects()[0].width, w = a, j = w == null ? void 0 : w.getClientRects();
|
|
1045
|
+
if (w && j && j.length) {
|
|
1255
1046
|
const {
|
|
1256
1047
|
top: R,
|
|
1257
|
-
width:
|
|
1048
|
+
width: P,
|
|
1258
1049
|
left: A,
|
|
1259
|
-
right:
|
|
1260
|
-
height:
|
|
1261
|
-
} =
|
|
1262
|
-
i.top = `${
|
|
1263
|
-
const
|
|
1264
|
-
if (
|
|
1265
|
-
i.display === "block" && (
|
|
1266
|
-
const
|
|
1267
|
-
if (
|
|
1050
|
+
right: N,
|
|
1051
|
+
height: y
|
|
1052
|
+
} = j[0], f = Math.ceil(y + R);
|
|
1053
|
+
i.top = `${f}px`, i.left = `${A}px`;
|
|
1054
|
+
const S = l.id + "_menu", k = a ? a.querySelector("#" + S) : null;
|
|
1055
|
+
if (k) {
|
|
1056
|
+
i.display === "block" && (k.style.display = "block");
|
|
1057
|
+
const p = k.getBoundingClientRect();
|
|
1058
|
+
if (d) {
|
|
1268
1059
|
i.top = `${R - 6}px`;
|
|
1269
|
-
const
|
|
1270
|
-
i.left = `${
|
|
1060
|
+
const s = Math.ceil(P + A);
|
|
1061
|
+
i.left = `${s}px`;
|
|
1271
1062
|
}
|
|
1272
|
-
C - A -
|
|
1063
|
+
C - A - P < p.width && (i.left = `${(d ? A : N) - p.width}px`);
|
|
1273
1064
|
}
|
|
1274
1065
|
}
|
|
1275
1066
|
return i;
|
|
1276
1067
|
}
|
|
1277
|
-
|
|
1278
|
-
var w,
|
|
1279
|
-
const
|
|
1280
|
-
return
|
|
1068
|
+
u = function(l, a) {
|
|
1069
|
+
var w, j;
|
|
1070
|
+
const d = ye(), i = a ? a.id : l.id, C = (j = (w = d == null ? void 0 : d.exposed) == null ? void 0 : w.elementRef.value) == null ? void 0 : j.querySelector("#" + i);
|
|
1071
|
+
return h("ul", {
|
|
1281
1072
|
class: e(l),
|
|
1282
|
-
style:
|
|
1073
|
+
style: b(l, C, a),
|
|
1283
1074
|
id: l.id + "_menu"
|
|
1284
|
-
}, [
|
|
1075
|
+
}, [E(l)]);
|
|
1285
1076
|
};
|
|
1286
1077
|
function T() {
|
|
1287
|
-
|
|
1078
|
+
g.forEach((l) => {
|
|
1288
1079
|
l.expanded = !1;
|
|
1289
|
-
}),
|
|
1080
|
+
}), g.clear();
|
|
1290
1081
|
}
|
|
1291
1082
|
return {
|
|
1292
|
-
renderDropdownMenu:
|
|
1083
|
+
renderDropdownMenu: u,
|
|
1293
1084
|
clearAllDropDownMenu: T
|
|
1294
1085
|
};
|
|
1295
1086
|
}
|
|
1296
|
-
function
|
|
1297
|
-
const t =
|
|
1298
|
-
renderDropdownMenu:
|
|
1299
|
-
clearAllDropDownMenu:
|
|
1087
|
+
function Bt(n, e) {
|
|
1088
|
+
const t = x(n.alignment), {
|
|
1089
|
+
renderDropdownMenu: r,
|
|
1090
|
+
clearAllDropDownMenu: u
|
|
1300
1091
|
} = At(e);
|
|
1301
|
-
function
|
|
1092
|
+
function g(T) {
|
|
1302
1093
|
const l = {
|
|
1303
1094
|
"btn-group": !0,
|
|
1304
1095
|
"f-rt-dropdown": !0,
|
|
1305
1096
|
"f-btn-ml": t.value === "right",
|
|
1306
1097
|
"f-btn-mr": t.value === "left"
|
|
1307
1098
|
}, a = T.dropdownClass.split(" ");
|
|
1308
|
-
return a && a.length && a.reduce((
|
|
1099
|
+
return a && a.length && a.reduce((d, i) => (d[i] = !0, d), l), l;
|
|
1309
1100
|
}
|
|
1310
|
-
function
|
|
1101
|
+
function v(T) {
|
|
1311
1102
|
const l = {
|
|
1312
1103
|
btn: !0,
|
|
1313
1104
|
disabled: !T.enable,
|
|
@@ -1316,598 +1107,598 @@ function It(n, e) {
|
|
|
1316
1107
|
};
|
|
1317
1108
|
if (T.class) {
|
|
1318
1109
|
const a = T.class.split(" ");
|
|
1319
|
-
a && a.length && a.reduce((
|
|
1110
|
+
a && a.length && a.reduce((d, i) => (d[i] = !0, d), l);
|
|
1320
1111
|
}
|
|
1321
1112
|
return l;
|
|
1322
1113
|
}
|
|
1323
|
-
function
|
|
1114
|
+
function D(T, l) {
|
|
1324
1115
|
T.stopPropagation();
|
|
1325
1116
|
const a = l.expanded;
|
|
1326
1117
|
document.body.click(), l.expanded = !a;
|
|
1327
1118
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1119
|
+
function E(T) {
|
|
1120
|
+
return h("div", {
|
|
1330
1121
|
id: T.id,
|
|
1331
|
-
class:
|
|
1332
|
-
}, [
|
|
1333
|
-
class:
|
|
1122
|
+
class: g(T)
|
|
1123
|
+
}, [h("div", {
|
|
1124
|
+
class: v(T),
|
|
1334
1125
|
style: "display: flex;padding-right: 0.1rem;border-top-right-radius: 6px;border-bottom-right-radius: 6px",
|
|
1335
|
-
onClick: (l) => T.enable &&
|
|
1336
|
-
}, [e.shouldShowIcon(T) &&
|
|
1126
|
+
onClick: (l) => T.enable && D(l, T)
|
|
1127
|
+
}, [e.shouldShowIcon(T) && h("i", {
|
|
1337
1128
|
class: e.iconClass(T)
|
|
1338
|
-
}, null),
|
|
1129
|
+
}, null), h("span", null, [T.text]), h("i", {
|
|
1339
1130
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1340
1131
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1341
|
-
}, null)]),
|
|
1132
|
+
}, null)]), r(T)]);
|
|
1342
1133
|
}
|
|
1343
|
-
function
|
|
1344
|
-
|
|
1134
|
+
function b() {
|
|
1135
|
+
u();
|
|
1345
1136
|
}
|
|
1346
1137
|
return {
|
|
1347
|
-
renderToolbarDropdown:
|
|
1348
|
-
clearAllDropDown:
|
|
1138
|
+
renderToolbarDropdown: E,
|
|
1139
|
+
clearAllDropDown: b
|
|
1349
1140
|
};
|
|
1350
1141
|
}
|
|
1351
1142
|
const {
|
|
1352
1143
|
buildResponseToolbarItems: ge
|
|
1353
|
-
} = Pe(),
|
|
1144
|
+
} = Pe(), Y = /* @__PURE__ */ z({
|
|
1354
1145
|
name: "FResponseToolbar",
|
|
1355
1146
|
props: pe,
|
|
1356
1147
|
emits: ["click"],
|
|
1357
1148
|
setup(n, e) {
|
|
1358
|
-
const t =
|
|
1149
|
+
const t = x(ge(n.items)), r = x(), u = x(), g = x(), v = x(n.alignment), D = {
|
|
1359
1150
|
id: "__more_buttons__",
|
|
1360
1151
|
text: "更多"
|
|
1361
|
-
},
|
|
1362
|
-
const
|
|
1152
|
+
}, E = x(new J(D)), b = Ee(), T = F(() => E.value.children.length > 0), l = F(() => {
|
|
1153
|
+
const f = {
|
|
1363
1154
|
"f-toolbar": !0,
|
|
1364
1155
|
"f-response-toolbar": !0,
|
|
1365
1156
|
"position-relative": !0
|
|
1366
1157
|
};
|
|
1367
1158
|
if (n.customClass) {
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1159
|
+
const S = n.customClass.split(" ");
|
|
1160
|
+
S && S.length && S.reduce((k, p) => (k[p] = !0, k), f);
|
|
1370
1161
|
}
|
|
1371
|
-
return
|
|
1372
|
-
}), a =
|
|
1162
|
+
return f;
|
|
1163
|
+
}), a = F(() => ({
|
|
1373
1164
|
"d-flex": !0,
|
|
1374
1165
|
"flex-nowrap": !0,
|
|
1375
|
-
"justify-content-end":
|
|
1376
|
-
"justify-content-start":
|
|
1166
|
+
"justify-content-end": v.value === "right",
|
|
1167
|
+
"justify-content-start": v.value === "left"
|
|
1377
1168
|
})), {
|
|
1378
|
-
renderToolbarDropdown:
|
|
1169
|
+
renderToolbarDropdown: d,
|
|
1379
1170
|
clearAllDropDown: i
|
|
1380
|
-
} =
|
|
1171
|
+
} = Bt(n, b);
|
|
1381
1172
|
function C() {
|
|
1382
|
-
t.value.filter((
|
|
1383
|
-
|
|
1384
|
-
}),
|
|
1173
|
+
t.value.filter((f) => f.children && f.children.length > 0).forEach((f) => {
|
|
1174
|
+
f.expanded = !1;
|
|
1175
|
+
}), E.value.expanded = !1, i();
|
|
1385
1176
|
}
|
|
1386
|
-
function w(
|
|
1387
|
-
const
|
|
1177
|
+
function w(f) {
|
|
1178
|
+
const S = {
|
|
1388
1179
|
btn: !0,
|
|
1389
1180
|
"f-rt-btn": !0,
|
|
1390
|
-
"f-btn-ml":
|
|
1391
|
-
"f-btn-mr":
|
|
1392
|
-
"btn-icontext": !!(
|
|
1181
|
+
"f-btn-ml": v.value === "right",
|
|
1182
|
+
"f-btn-mr": v.value === "left",
|
|
1183
|
+
"btn-icontext": !!(f.icon && f.icon.trim())
|
|
1393
1184
|
};
|
|
1394
|
-
if (
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1185
|
+
if (f.class) {
|
|
1186
|
+
const k = f.class.split(" ");
|
|
1187
|
+
k && k.length && k.reduce((p, s) => (p[s] = !0, p), S);
|
|
1397
1188
|
}
|
|
1398
|
-
return
|
|
1189
|
+
return S;
|
|
1399
1190
|
}
|
|
1400
|
-
function
|
|
1401
|
-
document.body.click(),
|
|
1191
|
+
function j(f, S) {
|
|
1192
|
+
document.body.click(), S.onClick(f, S.id), e.emit("click", f, S.id);
|
|
1402
1193
|
}
|
|
1403
|
-
function R(
|
|
1404
|
-
return
|
|
1194
|
+
function R(f) {
|
|
1195
|
+
return h("button", {
|
|
1405
1196
|
type: "button",
|
|
1406
|
-
class: w(
|
|
1407
|
-
id:
|
|
1408
|
-
disabled: !
|
|
1409
|
-
onClick: (
|
|
1410
|
-
}, [
|
|
1411
|
-
class:
|
|
1412
|
-
}, null),
|
|
1197
|
+
class: w(f),
|
|
1198
|
+
id: f.id,
|
|
1199
|
+
disabled: !f.enable,
|
|
1200
|
+
onClick: (S) => j(S, f)
|
|
1201
|
+
}, [b.shouldShowIcon(f) && h("i", {
|
|
1202
|
+
class: b.iconClass(f)
|
|
1203
|
+
}, null), f.text]);
|
|
1413
1204
|
}
|
|
1414
|
-
const
|
|
1415
|
-
function
|
|
1416
|
-
const
|
|
1417
|
-
let
|
|
1418
|
-
const
|
|
1419
|
-
if (
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1205
|
+
const P = /* @__PURE__ */ new Map(), A = [];
|
|
1206
|
+
function N(f) {
|
|
1207
|
+
const S = g.value;
|
|
1208
|
+
let k = f;
|
|
1209
|
+
const p = Array.from(S.children), s = p[p.length - 1].id === "__more_buttons__" ? p[p.length - 1] : null;
|
|
1210
|
+
if (s) {
|
|
1211
|
+
const M = s.computedStyleMap().get("margin-left"), I = s.computedStyleMap().get("margin-right"), L = (M ? M.value : 0) + s.getBoundingClientRect().width + (I ? I.value : 0);
|
|
1212
|
+
k -= L;
|
|
1422
1213
|
}
|
|
1423
|
-
const o =
|
|
1424
|
-
for (const
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1427
|
-
id:
|
|
1428
|
-
width:
|
|
1429
|
-
})) :
|
|
1214
|
+
const o = p.filter((M) => M.id !== "__more_buttons__");
|
|
1215
|
+
for (const M of o) {
|
|
1216
|
+
const I = M.computedStyleMap().get("margin-left"), L = M.computedStyleMap().get("margin-right"), $ = (I ? I.value : 0) + M.getBoundingClientRect().width + (L ? L.value : 0);
|
|
1217
|
+
k < $ ? (P.set(M.id, !0), A.push({
|
|
1218
|
+
id: M.id,
|
|
1219
|
+
width: $
|
|
1220
|
+
})) : k -= $;
|
|
1430
1221
|
}
|
|
1431
1222
|
if (A.length)
|
|
1432
|
-
for (let
|
|
1433
|
-
const
|
|
1434
|
-
if (
|
|
1435
|
-
|
|
1223
|
+
for (let M = A.length - 1; M >= 0; M--) {
|
|
1224
|
+
const I = A[M].width;
|
|
1225
|
+
if (k >= I)
|
|
1226
|
+
k -= I, P.delete(A[M].id), A.pop();
|
|
1436
1227
|
else
|
|
1437
1228
|
break;
|
|
1438
1229
|
}
|
|
1439
|
-
const c = Object.assign({},
|
|
1230
|
+
const c = Object.assign({}, E.value);
|
|
1440
1231
|
c.children = [];
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1232
|
+
const m = new J(c), B = t.value.reduce((M, I) => (P.has(I.id) && m.children.push(I), I.visible = !P.has(I.id), M.push(I), M), []);
|
|
1233
|
+
E.value = m, t.value = B;
|
|
1443
1234
|
}
|
|
1444
|
-
const
|
|
1445
|
-
if (
|
|
1446
|
-
const
|
|
1447
|
-
(
|
|
1235
|
+
const y = new ResizeObserver((f) => {
|
|
1236
|
+
if (f.length) {
|
|
1237
|
+
const k = f[0].contentRect.width, s = g.value.getBoundingClientRect().width;
|
|
1238
|
+
(k < s || A.length) && (N(k), C());
|
|
1448
1239
|
}
|
|
1449
1240
|
});
|
|
1450
|
-
return
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1453
|
-
}),
|
|
1454
|
-
|
|
1455
|
-
}),
|
|
1241
|
+
return H(() => {
|
|
1242
|
+
const f = u.value;
|
|
1243
|
+
y.observe(f), document.body.addEventListener("click", C), document.body.addEventListener("wheel", C);
|
|
1244
|
+
}), re(() => {
|
|
1245
|
+
y.disconnect(), document.body.removeEventListener("click", C), document.body.removeEventListener("wheel", C);
|
|
1246
|
+
}), G(() => n.items, () => {
|
|
1456
1247
|
t.value = ge(n.items);
|
|
1457
1248
|
}, {
|
|
1458
1249
|
deep: !0
|
|
1459
1250
|
}), e.expose({
|
|
1460
|
-
elementRef:
|
|
1461
|
-
}), () =>
|
|
1251
|
+
elementRef: r
|
|
1252
|
+
}), () => h("div", {
|
|
1462
1253
|
class: l.value,
|
|
1463
|
-
ref:
|
|
1464
|
-
}, [
|
|
1465
|
-
ref: p,
|
|
1466
|
-
class: a.value
|
|
1467
|
-
}, [b("div", {
|
|
1254
|
+
ref: r
|
|
1255
|
+
}, [h("div", {
|
|
1468
1256
|
ref: u,
|
|
1257
|
+
class: a.value
|
|
1258
|
+
}, [h("div", {
|
|
1259
|
+
ref: g,
|
|
1469
1260
|
class: "d-inline-block f-response-content",
|
|
1470
1261
|
style: "white-space: nowrap;"
|
|
1471
|
-
}, [t.value.filter((
|
|
1262
|
+
}, [t.value.filter((f) => f.visible).map((f) => f.children && f.children.length > 0 ? d(f) : R(f)), T.value && d(E.value)])])]);
|
|
1472
1263
|
}
|
|
1473
1264
|
});
|
|
1474
|
-
function
|
|
1475
|
-
const t =
|
|
1265
|
+
function It(n, e) {
|
|
1266
|
+
const t = V("design-item-context"), r = V("toolbar-item-handler", () => {
|
|
1476
1267
|
});
|
|
1477
|
-
function
|
|
1478
|
-
|
|
1268
|
+
function u() {
|
|
1269
|
+
r && r();
|
|
1479
1270
|
}
|
|
1480
|
-
function
|
|
1271
|
+
function g(s) {
|
|
1481
1272
|
const o = {
|
|
1482
1273
|
"dropdown-menu": !0
|
|
1483
1274
|
};
|
|
1484
|
-
if (
|
|
1485
|
-
const c =
|
|
1486
|
-
c && c.length && c.reduce((
|
|
1275
|
+
if (s.class) {
|
|
1276
|
+
const c = s.menuClass.split(" ");
|
|
1277
|
+
c && c.length && c.reduce((m, B) => (m[B] = !0, m), o);
|
|
1487
1278
|
}
|
|
1488
1279
|
return o;
|
|
1489
1280
|
}
|
|
1490
|
-
function
|
|
1281
|
+
function v(s) {
|
|
1491
1282
|
const o = {
|
|
1492
|
-
disabled: !
|
|
1283
|
+
disabled: !s.enable,
|
|
1493
1284
|
"dropdown-submenu": !0,
|
|
1494
1285
|
"f-rt-dropdown": !0
|
|
1495
|
-
}, c =
|
|
1496
|
-
return c && c.length && c.reduce((
|
|
1286
|
+
}, c = s.dropdownClass.split(" ");
|
|
1287
|
+
return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
|
|
1497
1288
|
}
|
|
1498
|
-
function
|
|
1289
|
+
function D(s) {
|
|
1499
1290
|
const o = {
|
|
1500
|
-
disabled: !
|
|
1291
|
+
disabled: !s.enable,
|
|
1501
1292
|
"dropdown-item": !0,
|
|
1502
1293
|
"f-rt-btn": !0,
|
|
1503
1294
|
"position-relative": !0,
|
|
1504
1295
|
"farris-component": !0
|
|
1505
|
-
}, c =
|
|
1506
|
-
return c && c.length && c.reduce((
|
|
1507
|
-
}
|
|
1508
|
-
let
|
|
1509
|
-
const
|
|
1510
|
-
function T(
|
|
1511
|
-
var
|
|
1512
|
-
((
|
|
1513
|
-
const
|
|
1514
|
-
if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ?
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1296
|
+
}, c = s.class.split(" ");
|
|
1297
|
+
return c && c.length && c.reduce((m, B) => (m[B] = !0, m), o), o;
|
|
1298
|
+
}
|
|
1299
|
+
let E;
|
|
1300
|
+
const b = /* @__PURE__ */ new Map();
|
|
1301
|
+
function T(s, o, c) {
|
|
1302
|
+
var B;
|
|
1303
|
+
((B = s.target) == null ? void 0 : B.id) === o.id && s.stopPropagation();
|
|
1304
|
+
const m = c ? c.id : "__top_item__";
|
|
1305
|
+
if (o.children && o.children.length && (o.expanded = !o.expanded, o.expanded ? b.set(m, o) : b.delete(m)), b.has(m) && b.get(m) !== o) {
|
|
1306
|
+
const M = b.get(m);
|
|
1307
|
+
M && (M.expanded = !1);
|
|
1517
1308
|
}
|
|
1518
1309
|
}
|
|
1519
|
-
function l(
|
|
1520
|
-
|
|
1310
|
+
function l(s) {
|
|
1311
|
+
s && (s.stopPropagation(), s.preventDefault());
|
|
1521
1312
|
}
|
|
1522
1313
|
function a() {
|
|
1523
1314
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((o) => o.classList.remove("dgComponentFocused"));
|
|
1524
|
-
const
|
|
1525
|
-
Array.from(
|
|
1315
|
+
const s = document.getElementsByClassName("dgComponentSelected");
|
|
1316
|
+
Array.from(s).forEach((o) => o.classList.remove("dgComponentSelected"));
|
|
1526
1317
|
}
|
|
1527
|
-
function
|
|
1528
|
-
|
|
1318
|
+
function d(s) {
|
|
1319
|
+
s.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1529
1320
|
}
|
|
1530
|
-
function i(
|
|
1321
|
+
function i(s) {
|
|
1531
1322
|
const {
|
|
1532
1323
|
buttons: o = []
|
|
1533
1324
|
} = t.schema;
|
|
1534
1325
|
let c = [];
|
|
1535
|
-
o.forEach((
|
|
1536
|
-
c = c.concat(
|
|
1326
|
+
o.forEach((M) => {
|
|
1327
|
+
c = c.concat(M.children || []);
|
|
1537
1328
|
});
|
|
1538
|
-
const
|
|
1329
|
+
const m = c.findIndex((M) => M.id === s), B = m === -1 ? null : c[m];
|
|
1539
1330
|
return {
|
|
1540
|
-
index:
|
|
1541
|
-
item:
|
|
1331
|
+
index: m,
|
|
1332
|
+
item: B
|
|
1542
1333
|
};
|
|
1543
1334
|
}
|
|
1544
|
-
function C(
|
|
1335
|
+
function C(s) {
|
|
1545
1336
|
const {
|
|
1546
1337
|
buttons: o = []
|
|
1547
|
-
} = t.schema, c = o.findIndex((
|
|
1338
|
+
} = t.schema, c = o.findIndex((B) => B.id === s), m = c === -1 ? null : o[c];
|
|
1548
1339
|
return {
|
|
1549
1340
|
index: c,
|
|
1550
|
-
item:
|
|
1341
|
+
item: m
|
|
1551
1342
|
};
|
|
1552
1343
|
}
|
|
1553
|
-
function w(
|
|
1554
|
-
var
|
|
1344
|
+
function w(s) {
|
|
1345
|
+
var m;
|
|
1555
1346
|
t.schema;
|
|
1556
1347
|
const {
|
|
1557
1348
|
index: o,
|
|
1558
1349
|
item: c
|
|
1559
|
-
} = i(
|
|
1560
|
-
(
|
|
1350
|
+
} = i(s);
|
|
1351
|
+
(m = t == null ? void 0 : t.setupContext) == null || m.emit("selectionChange", c == null ? void 0 : c.type, c);
|
|
1561
1352
|
}
|
|
1562
|
-
const
|
|
1353
|
+
const j = function(s) {
|
|
1563
1354
|
const {
|
|
1564
1355
|
componentType: o
|
|
1565
|
-
} =
|
|
1566
|
-
return c && !c.id && c.type === o && (c.id = `${
|
|
1356
|
+
} = s, c = U(o, s), m = o.toLowerCase().replace("-", "_");
|
|
1357
|
+
return c && !c.id && c.type === o && (c.id = `${m}_${Math.random().toString().slice(2, 6)}`), c;
|
|
1567
1358
|
}, R = function() {
|
|
1568
|
-
const
|
|
1359
|
+
const s = {
|
|
1569
1360
|
componentType: "response-toolbar-item",
|
|
1570
1361
|
parentComponentInstance: e.value,
|
|
1571
1362
|
targetPosition: -1
|
|
1572
1363
|
};
|
|
1573
|
-
return
|
|
1364
|
+
return j(s);
|
|
1574
1365
|
};
|
|
1575
|
-
function
|
|
1576
|
-
l(
|
|
1366
|
+
function P(s, o) {
|
|
1367
|
+
l(s), a(), d(s), w(o.id);
|
|
1577
1368
|
}
|
|
1578
|
-
function A(
|
|
1579
|
-
l(
|
|
1580
|
-
const
|
|
1581
|
-
buttons:
|
|
1369
|
+
function A(s, o, c) {
|
|
1370
|
+
l(s);
|
|
1371
|
+
const m = o.id, B = c && c.id, {
|
|
1372
|
+
buttons: M = []
|
|
1582
1373
|
} = t.schema;
|
|
1583
|
-
if (!
|
|
1374
|
+
if (!B)
|
|
1584
1375
|
return;
|
|
1585
1376
|
const {
|
|
1586
|
-
index:
|
|
1587
|
-
} = C(
|
|
1588
|
-
if (
|
|
1377
|
+
index: I
|
|
1378
|
+
} = C(B);
|
|
1379
|
+
if (I === -1)
|
|
1589
1380
|
return;
|
|
1590
1381
|
const {
|
|
1591
|
-
index:
|
|
1592
|
-
} = i(
|
|
1593
|
-
|
|
1594
|
-
}
|
|
1595
|
-
function
|
|
1596
|
-
l(
|
|
1597
|
-
const
|
|
1598
|
-
buttons:
|
|
1382
|
+
index: L
|
|
1383
|
+
} = i(m);
|
|
1384
|
+
L !== -1 && (M[I].children.splice(L, 1), u());
|
|
1385
|
+
}
|
|
1386
|
+
function N(s, o, c) {
|
|
1387
|
+
l(s);
|
|
1388
|
+
const m = c && c.id, {
|
|
1389
|
+
buttons: B = []
|
|
1599
1390
|
} = t.schema;
|
|
1600
|
-
if (!
|
|
1391
|
+
if (!m)
|
|
1601
1392
|
return;
|
|
1602
1393
|
const {
|
|
1603
|
-
index:
|
|
1604
|
-
} = C(
|
|
1605
|
-
if (
|
|
1394
|
+
index: M
|
|
1395
|
+
} = C(m);
|
|
1396
|
+
if (M === -1)
|
|
1606
1397
|
return;
|
|
1607
|
-
const
|
|
1398
|
+
const I = R(), L = Object.assign({}, I, {
|
|
1608
1399
|
text: o.text
|
|
1609
1400
|
});
|
|
1610
|
-
|
|
1401
|
+
B[M].children.push(L), u();
|
|
1611
1402
|
}
|
|
1612
|
-
function
|
|
1613
|
-
l(
|
|
1614
|
-
const
|
|
1615
|
-
buttons:
|
|
1403
|
+
function y(s, o, c) {
|
|
1404
|
+
l(s);
|
|
1405
|
+
const m = c && c.id, {
|
|
1406
|
+
buttons: B = []
|
|
1616
1407
|
} = t.schema;
|
|
1617
|
-
if (!
|
|
1408
|
+
if (!m)
|
|
1618
1409
|
return;
|
|
1619
1410
|
const {
|
|
1620
|
-
index:
|
|
1621
|
-
} = C(
|
|
1622
|
-
if (
|
|
1411
|
+
index: M
|
|
1412
|
+
} = C(m);
|
|
1413
|
+
if (M === -1)
|
|
1623
1414
|
return;
|
|
1624
|
-
const
|
|
1415
|
+
const I = R(), L = Object.assign({}, I, {
|
|
1625
1416
|
text: "按钮"
|
|
1626
1417
|
});
|
|
1627
|
-
|
|
1418
|
+
B[M].children.push(L), u();
|
|
1628
1419
|
}
|
|
1629
|
-
function
|
|
1630
|
-
return
|
|
1420
|
+
function f(s, o) {
|
|
1421
|
+
return h("div", {
|
|
1631
1422
|
class: "component-btn-group"
|
|
1632
|
-
}, [
|
|
1423
|
+
}, [h("div", null, [h("div", {
|
|
1633
1424
|
role: "button",
|
|
1634
1425
|
class: "btn component-settings-button",
|
|
1635
1426
|
title: "删除",
|
|
1636
1427
|
ref: "removeButton",
|
|
1637
1428
|
style: "position:static;",
|
|
1638
|
-
onClick: (c) => A(c,
|
|
1639
|
-
}, [
|
|
1429
|
+
onClick: (c) => A(c, s, o)
|
|
1430
|
+
}, [h("i", {
|
|
1640
1431
|
class: "f-icon f-icon-yxs_delete"
|
|
1641
|
-
}, null)]),
|
|
1432
|
+
}, null)]), h("div", {
|
|
1642
1433
|
role: "button",
|
|
1643
1434
|
class: "btn component-settings-button",
|
|
1644
1435
|
title: "复制",
|
|
1645
1436
|
ref: "copyButton",
|
|
1646
1437
|
style: "position:static;",
|
|
1647
|
-
onClick: (c) =>
|
|
1648
|
-
}, [
|
|
1438
|
+
onClick: (c) => N(c, s, o)
|
|
1439
|
+
}, [h("i", {
|
|
1649
1440
|
class: "f-icon f-icon-yxs_copy"
|
|
1650
|
-
}, null)]),
|
|
1441
|
+
}, null)]), h("div", {
|
|
1651
1442
|
role: "button",
|
|
1652
1443
|
class: "btn component-settings-button",
|
|
1653
1444
|
title: "新增同级",
|
|
1654
1445
|
ref: "appendSame",
|
|
1655
1446
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1656
|
-
onClick: (c) =>
|
|
1657
|
-
}, [
|
|
1447
|
+
onClick: (c) => y(c, s, o)
|
|
1448
|
+
}, [h("i", {
|
|
1658
1449
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1659
|
-
}, null),
|
|
1450
|
+
}, null), h("span", {
|
|
1660
1451
|
style: "font-size:13px;margin:auto"
|
|
1661
|
-
}, [
|
|
1452
|
+
}, [Q("新增同级")])])])]);
|
|
1662
1453
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return
|
|
1665
|
-
class:
|
|
1454
|
+
function S(s) {
|
|
1455
|
+
return s.children.map((o) => o.children && o.children.length ? h("li", {
|
|
1456
|
+
class: v(o),
|
|
1666
1457
|
id: o.id,
|
|
1667
|
-
onClick: (c) => o.enable && T(c, o,
|
|
1668
|
-
}, [
|
|
1458
|
+
onClick: (c) => o.enable && T(c, o, s)
|
|
1459
|
+
}, [h("span", {
|
|
1669
1460
|
id: o.id,
|
|
1670
|
-
class:
|
|
1671
|
-
onMouseover: (c) => o.enable && T(c, o,
|
|
1672
|
-
}, [o.text,
|
|
1461
|
+
class: D(o),
|
|
1462
|
+
onMouseover: (c) => o.enable && T(c, o, s)
|
|
1463
|
+
}, [o.text, h("i", {
|
|
1673
1464
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
1674
1465
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
1675
|
-
}, null)]),
|
|
1676
|
-
class:
|
|
1466
|
+
}, null)]), E(o, o)]) : h("li", {
|
|
1467
|
+
class: D(o),
|
|
1677
1468
|
id: o.id,
|
|
1678
|
-
onClick: (c) =>
|
|
1679
|
-
}, [
|
|
1469
|
+
onClick: (c) => P(c, o)
|
|
1470
|
+
}, [f(o, s), n.shouldShowIcon(o) && h("i", {
|
|
1680
1471
|
class: n.iconClass(o)
|
|
1681
1472
|
}, null), o.text]));
|
|
1682
1473
|
}
|
|
1683
|
-
function
|
|
1684
|
-
const
|
|
1685
|
-
display:
|
|
1474
|
+
function k(s, o, c) {
|
|
1475
|
+
const m = {
|
|
1476
|
+
display: s.expanded ? "block" : "none",
|
|
1686
1477
|
position: "fixed",
|
|
1687
1478
|
maxWidth: "300px",
|
|
1688
1479
|
width: "auto",
|
|
1689
1480
|
minWidth: "120px"
|
|
1690
|
-
},
|
|
1691
|
-
if (
|
|
1481
|
+
}, B = document.getElementsByTagName("body")[0].getClientRects()[0].width, M = o, I = M == null ? void 0 : M.getClientRects();
|
|
1482
|
+
if (M && I && I.length) {
|
|
1692
1483
|
const {
|
|
1693
|
-
top:
|
|
1694
|
-
width:
|
|
1695
|
-
left:
|
|
1484
|
+
top: L,
|
|
1485
|
+
width: $,
|
|
1486
|
+
left: _,
|
|
1696
1487
|
right: W,
|
|
1697
|
-
height:
|
|
1698
|
-
} =
|
|
1699
|
-
|
|
1700
|
-
const
|
|
1488
|
+
height: q
|
|
1489
|
+
} = I[0], ee = Math.ceil(q + L);
|
|
1490
|
+
m.top = `${ee}px`, m.left = `${_}px`;
|
|
1491
|
+
const Be = s.id + "_menu", te = o ? o.querySelector("#" + Be) : null;
|
|
1701
1492
|
if (te) {
|
|
1702
|
-
|
|
1703
|
-
const
|
|
1493
|
+
m.display === "block" && (te.style.display = "block");
|
|
1494
|
+
const de = te.getBoundingClientRect();
|
|
1704
1495
|
if (c) {
|
|
1705
|
-
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1496
|
+
m.top = `${L - 6}px`;
|
|
1497
|
+
const Ie = Math.ceil($ + _);
|
|
1498
|
+
m.left = `${Ie}px`;
|
|
1708
1499
|
}
|
|
1709
|
-
|
|
1500
|
+
B - _ - $ < de.width && (m.left = `${(c ? _ : W) - de.width}px`);
|
|
1710
1501
|
}
|
|
1711
1502
|
}
|
|
1712
|
-
return
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
var
|
|
1716
|
-
const c =
|
|
1717
|
-
return
|
|
1718
|
-
class:
|
|
1719
|
-
style:
|
|
1720
|
-
id:
|
|
1721
|
-
}, [
|
|
1503
|
+
return m;
|
|
1504
|
+
}
|
|
1505
|
+
E = function(s, o) {
|
|
1506
|
+
var M, I;
|
|
1507
|
+
const c = ye(), m = o ? o.id : s.id, B = (I = (M = c == null ? void 0 : c.exposed) == null ? void 0 : M.elementRef.value) == null ? void 0 : I.querySelector("#" + m);
|
|
1508
|
+
return h("ul", {
|
|
1509
|
+
class: g(s),
|
|
1510
|
+
style: k(s, B, o),
|
|
1511
|
+
id: s.id + "_menu"
|
|
1512
|
+
}, [S(s)]);
|
|
1722
1513
|
};
|
|
1723
|
-
function
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
}),
|
|
1514
|
+
function p() {
|
|
1515
|
+
b.forEach((s) => {
|
|
1516
|
+
s.expanded = !1;
|
|
1517
|
+
}), b.clear();
|
|
1727
1518
|
}
|
|
1728
1519
|
return {
|
|
1729
|
-
renderDropdownMenu:
|
|
1730
|
-
clearAllDropDownMenu:
|
|
1520
|
+
renderDropdownMenu: E,
|
|
1521
|
+
clearAllDropDownMenu: p
|
|
1731
1522
|
};
|
|
1732
1523
|
}
|
|
1733
1524
|
function Rt(n, e, t) {
|
|
1734
|
-
const
|
|
1735
|
-
renderDropdownMenu:
|
|
1736
|
-
clearAllDropDownMenu:
|
|
1737
|
-
} =
|
|
1525
|
+
const r = x(n.alignment), {
|
|
1526
|
+
renderDropdownMenu: u,
|
|
1527
|
+
clearAllDropDownMenu: g
|
|
1528
|
+
} = It(e, t), v = V("design-item-context"), D = V("toolbar-item-handler", () => {
|
|
1738
1529
|
});
|
|
1739
|
-
function
|
|
1740
|
-
|
|
1530
|
+
function E() {
|
|
1531
|
+
D && D();
|
|
1741
1532
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const
|
|
1533
|
+
function b(p) {
|
|
1534
|
+
const s = {
|
|
1744
1535
|
"btn-group": !0,
|
|
1745
1536
|
"f-rt-dropdown": !0,
|
|
1746
|
-
"f-btn-ml":
|
|
1747
|
-
"f-btn-mr":
|
|
1748
|
-
}, o =
|
|
1749
|
-
return o && o.length && o.reduce((c,
|
|
1537
|
+
"f-btn-ml": r.value === "right",
|
|
1538
|
+
"f-btn-mr": r.value === "left"
|
|
1539
|
+
}, o = p.dropdownClass.split(" ");
|
|
1540
|
+
return o && o.length && o.reduce((c, m) => (c[m] = !0, c), s), s;
|
|
1750
1541
|
}
|
|
1751
|
-
function T(
|
|
1752
|
-
const
|
|
1542
|
+
function T(p) {
|
|
1543
|
+
const s = {
|
|
1753
1544
|
btn: !0,
|
|
1754
|
-
disabled: !
|
|
1545
|
+
disabled: !p.enable,
|
|
1755
1546
|
"position-relative": !0,
|
|
1756
1547
|
"farris-component": !0,
|
|
1757
1548
|
"f-rt-btn": !0,
|
|
1758
|
-
"btn-icontext": !!(
|
|
1549
|
+
"btn-icontext": !!(p.icon && p.icon.trim())
|
|
1759
1550
|
};
|
|
1760
|
-
if (
|
|
1761
|
-
const o =
|
|
1762
|
-
o && o.length && o.reduce((c,
|
|
1551
|
+
if (p.class) {
|
|
1552
|
+
const o = p.class.split(" ");
|
|
1553
|
+
o && o.length && o.reduce((c, m) => (c[m] = !0, c), s);
|
|
1763
1554
|
}
|
|
1764
|
-
return
|
|
1555
|
+
return s;
|
|
1765
1556
|
}
|
|
1766
|
-
function l(
|
|
1767
|
-
|
|
1557
|
+
function l(p) {
|
|
1558
|
+
p && (p.stopPropagation(), p.preventDefault());
|
|
1768
1559
|
}
|
|
1769
|
-
function a(
|
|
1770
|
-
l(
|
|
1771
|
-
const o =
|
|
1772
|
-
document.body.click(),
|
|
1560
|
+
function a(p, s) {
|
|
1561
|
+
l(p);
|
|
1562
|
+
const o = s.expanded;
|
|
1563
|
+
document.body.click(), s.expanded = !o;
|
|
1773
1564
|
}
|
|
1774
|
-
const
|
|
1565
|
+
const d = function(p) {
|
|
1775
1566
|
const {
|
|
1776
|
-
componentType:
|
|
1777
|
-
} =
|
|
1778
|
-
return o && !o.id && o.type ===
|
|
1567
|
+
componentType: s
|
|
1568
|
+
} = p, o = U(s, p), c = s.toLowerCase().replace("-", "_");
|
|
1569
|
+
return o && !o.id && o.type === s && (o.id = `${c}_${Math.random().toString().slice(2, 6)}`), o;
|
|
1779
1570
|
}, i = function() {
|
|
1780
|
-
const
|
|
1571
|
+
const p = {
|
|
1781
1572
|
componentType: "response-toolbar-item",
|
|
1782
1573
|
parentComponentInstance: t.value,
|
|
1783
1574
|
targetPosition: -1
|
|
1784
1575
|
};
|
|
1785
|
-
return
|
|
1576
|
+
return d(p);
|
|
1786
1577
|
};
|
|
1787
|
-
function C(
|
|
1788
|
-
const
|
|
1578
|
+
function C(p) {
|
|
1579
|
+
const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((m) => m.id === p), c = o === -1 ? null : s[o];
|
|
1789
1580
|
return {
|
|
1790
1581
|
index: o,
|
|
1791
1582
|
toolbarItem: c
|
|
1792
1583
|
};
|
|
1793
1584
|
}
|
|
1794
|
-
function w(
|
|
1795
|
-
var
|
|
1585
|
+
function w(p, s) {
|
|
1586
|
+
var I;
|
|
1796
1587
|
const {
|
|
1797
1588
|
index: o,
|
|
1798
1589
|
toolbarItem: c
|
|
1799
|
-
} = C(
|
|
1590
|
+
} = C(s);
|
|
1800
1591
|
if (o === -1)
|
|
1801
1592
|
return;
|
|
1802
|
-
const
|
|
1803
|
-
text:
|
|
1593
|
+
const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
|
|
1594
|
+
text: m
|
|
1804
1595
|
});
|
|
1805
|
-
(
|
|
1596
|
+
(I = v.schema.buttons) == null || I.push(M), E();
|
|
1806
1597
|
}
|
|
1807
|
-
function
|
|
1598
|
+
function j(p, s) {
|
|
1808
1599
|
const {
|
|
1809
1600
|
index: o,
|
|
1810
1601
|
toolbarItem: c
|
|
1811
|
-
} = C(
|
|
1602
|
+
} = C(s);
|
|
1812
1603
|
if (o === -1)
|
|
1813
1604
|
return;
|
|
1814
|
-
const
|
|
1815
|
-
text:
|
|
1816
|
-
}),
|
|
1817
|
-
|
|
1605
|
+
const m = c.text || "按钮", B = i(), M = Object.assign({}, B, {
|
|
1606
|
+
text: m
|
|
1607
|
+
}), I = v.schema.buttons[o].children || [];
|
|
1608
|
+
I.push(M), v.schema.buttons[o].children = I, E();
|
|
1818
1609
|
}
|
|
1819
|
-
function R(
|
|
1820
|
-
const o =
|
|
1821
|
-
c !== -1 && (o.splice(c, 1),
|
|
1610
|
+
function R(p, s) {
|
|
1611
|
+
const o = v.schema.buttons || v.schema.contents, c = o == null ? void 0 : o.findIndex((m) => m.id === s);
|
|
1612
|
+
c !== -1 && (o.splice(c, 1), E());
|
|
1822
1613
|
}
|
|
1823
|
-
function
|
|
1824
|
-
return
|
|
1614
|
+
function P(p) {
|
|
1615
|
+
return h("div", {
|
|
1825
1616
|
class: "component-btn-group"
|
|
1826
|
-
}, [
|
|
1617
|
+
}, [h("div", null, [h("div", {
|
|
1827
1618
|
role: "button",
|
|
1828
1619
|
class: "btn component-settings-button",
|
|
1829
1620
|
title: "删除",
|
|
1830
1621
|
ref: "removeButton",
|
|
1831
1622
|
style: "position:static;",
|
|
1832
|
-
onClick: (
|
|
1833
|
-
}, [
|
|
1623
|
+
onClick: (s) => R(s, p)
|
|
1624
|
+
}, [h("i", {
|
|
1834
1625
|
class: "f-icon f-icon-yxs_delete"
|
|
1835
|
-
}, null)]),
|
|
1626
|
+
}, null)]), h("div", {
|
|
1836
1627
|
role: "button",
|
|
1837
1628
|
class: "btn component-settings-button",
|
|
1838
1629
|
title: "复制",
|
|
1839
1630
|
ref: "copyButton",
|
|
1840
1631
|
style: "position:static;",
|
|
1841
|
-
onClick: (
|
|
1842
|
-
}, [
|
|
1632
|
+
onClick: (s) => w(s, p)
|
|
1633
|
+
}, [h("i", {
|
|
1843
1634
|
class: "f-icon f-icon-yxs_copy"
|
|
1844
|
-
}, null)]),
|
|
1635
|
+
}, null)]), h("div", {
|
|
1845
1636
|
role: "button",
|
|
1846
1637
|
class: "btn component-settings-button",
|
|
1847
1638
|
title: "新增子级",
|
|
1848
1639
|
ref: "appendChildButton",
|
|
1849
1640
|
style: "width:85px!important;padding:0 5px;position:static;",
|
|
1850
|
-
onClick: (
|
|
1851
|
-
}, [
|
|
1641
|
+
onClick: (s) => j(s, p)
|
|
1642
|
+
}, [h("i", {
|
|
1852
1643
|
class: "f-icon f-icon-plus-circle text-white mr-1"
|
|
1853
|
-
}, null),
|
|
1644
|
+
}, null), h("span", {
|
|
1854
1645
|
style: "font-size:13px;margin:auto"
|
|
1855
|
-
}, [
|
|
1646
|
+
}, [Q("新增子级")])])])]);
|
|
1856
1647
|
}
|
|
1857
1648
|
function A() {
|
|
1858
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
1859
|
-
const
|
|
1860
|
-
Array.from(
|
|
1649
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((s) => s.classList.remove("dgComponentFocused"));
|
|
1650
|
+
const p = document.getElementsByClassName("dgComponentSelected");
|
|
1651
|
+
Array.from(p).forEach((s) => s.classList.remove("dgComponentSelected"));
|
|
1861
1652
|
}
|
|
1862
|
-
function
|
|
1863
|
-
|
|
1653
|
+
function N(p) {
|
|
1654
|
+
p.currentTarget.classList.add("dgComponentFocused", "dgComponentSelected");
|
|
1864
1655
|
}
|
|
1865
|
-
function
|
|
1866
|
-
var
|
|
1867
|
-
const
|
|
1656
|
+
function y(p) {
|
|
1657
|
+
var m;
|
|
1658
|
+
const s = v.schema.buttons || v.schema.contents, o = s == null ? void 0 : s.findIndex((B) => B.id === p);
|
|
1868
1659
|
if (o === -1)
|
|
1869
1660
|
return;
|
|
1870
|
-
const c =
|
|
1871
|
-
(
|
|
1872
|
-
}
|
|
1873
|
-
function
|
|
1874
|
-
l(
|
|
1875
|
-
}
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1878
|
-
id:
|
|
1879
|
-
class:
|
|
1880
|
-
}, [
|
|
1881
|
-
class: T(
|
|
1661
|
+
const c = s[o];
|
|
1662
|
+
(m = v == null ? void 0 : v.setupContext) == null || m.emit("selectionChange", "response-toolbar-item", c);
|
|
1663
|
+
}
|
|
1664
|
+
function f(p, s) {
|
|
1665
|
+
l(p), A(), N(p), l(p), a(p, s), y(s.id);
|
|
1666
|
+
}
|
|
1667
|
+
function S(p) {
|
|
1668
|
+
return h("div", {
|
|
1669
|
+
id: p.id,
|
|
1670
|
+
class: b(p)
|
|
1671
|
+
}, [h("div", {
|
|
1672
|
+
class: T(p),
|
|
1882
1673
|
style: "display: flex;padding-right: 0.1rem;",
|
|
1883
|
-
onClick: (
|
|
1884
|
-
}, [
|
|
1885
|
-
class: e.iconClass(
|
|
1886
|
-
}, null),
|
|
1674
|
+
onClick: (s) => p.enable && f(s, p)
|
|
1675
|
+
}, [P(p.id), e.shouldShowIcon(p) && h("i", {
|
|
1676
|
+
class: e.iconClass(p)
|
|
1677
|
+
}, null), h("span", null, [p.text]), h("i", {
|
|
1887
1678
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
1888
1679
|
style: "display: inline-block;float: right;line-height: 1.25rem;margin-left: .25rem;margin-right: .25rem;"
|
|
1889
|
-
}, null)]), p
|
|
1680
|
+
}, null)]), u(p)]);
|
|
1890
1681
|
}
|
|
1891
|
-
function
|
|
1892
|
-
|
|
1682
|
+
function k() {
|
|
1683
|
+
g();
|
|
1893
1684
|
}
|
|
1894
1685
|
return {
|
|
1895
|
-
renderToolbarDropdown:
|
|
1896
|
-
clearAllDropDown:
|
|
1686
|
+
renderToolbarDropdown: S,
|
|
1687
|
+
clearAllDropDown: k
|
|
1897
1688
|
};
|
|
1898
1689
|
}
|
|
1899
1690
|
function Ot() {
|
|
1900
1691
|
function n(e) {
|
|
1901
|
-
var
|
|
1692
|
+
var u, g;
|
|
1902
1693
|
if (!e)
|
|
1903
1694
|
return !1;
|
|
1904
|
-
const t = ((
|
|
1695
|
+
const t = ((u = e.targetContainer) == null ? void 0 : u.componentInstance) && e.targetContainer.componentInstance.value;
|
|
1905
1696
|
if (!t)
|
|
1906
1697
|
return !1;
|
|
1907
|
-
const
|
|
1698
|
+
const r = (g = t.schema.appearance) == null ? void 0 : g.class;
|
|
1908
1699
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
1909
|
-
const
|
|
1910
|
-
if (t.schema.type !== "response-layout-item" && !
|
|
1700
|
+
const v = t.schema.type, D = (v === "response-form" || v === "content-container") && r && r.includes("farris-form");
|
|
1701
|
+
if (t.schema.type !== "response-layout-item" && !D)
|
|
1911
1702
|
return !1;
|
|
1912
1703
|
}
|
|
1913
1704
|
return e.controlType !== "field-set";
|
|
@@ -1916,7 +1707,7 @@ function Ot() {
|
|
|
1916
1707
|
basalDragulaRuleForContainer: n
|
|
1917
1708
|
};
|
|
1918
1709
|
}
|
|
1919
|
-
const
|
|
1710
|
+
const Nt = "https://json-schema.org/draft/2020-12/schema", $t = "https://farris-design.gitee.io/dragging-rules.schema.json", _t = "Dragging Rules", Ft = "The rules of designer canvas", Lt = "object", Vt = {
|
|
1920
1711
|
"f-page": {
|
|
1921
1712
|
description: "The root class of page designed by farris.",
|
|
1922
1713
|
type: "object",
|
|
@@ -2480,106 +2271,106 @@ const Lt = "https://json-schema.org/draft/2020-12/schema", Nt = "https://farris-
|
|
|
2480
2271
|
description: "",
|
|
2481
2272
|
type: "object"
|
|
2482
2273
|
}
|
|
2483
|
-
}, Wt = [],
|
|
2484
|
-
$schema:
|
|
2485
|
-
$id:
|
|
2486
|
-
title:
|
|
2487
|
-
description:
|
|
2488
|
-
type:
|
|
2489
|
-
properties:
|
|
2274
|
+
}, Wt = [], Ut = {
|
|
2275
|
+
$schema: Nt,
|
|
2276
|
+
$id: $t,
|
|
2277
|
+
title: _t,
|
|
2278
|
+
description: Ft,
|
|
2279
|
+
type: Lt,
|
|
2280
|
+
properties: Vt,
|
|
2490
2281
|
required: Wt
|
|
2491
2282
|
}, oe = /* @__PURE__ */ new Map();
|
|
2492
|
-
function
|
|
2493
|
-
function n(i, C, w,
|
|
2283
|
+
function Me() {
|
|
2284
|
+
function n(i, C, w, j) {
|
|
2494
2285
|
var R;
|
|
2495
2286
|
if (typeof w == "number")
|
|
2496
|
-
return ((R =
|
|
2287
|
+
return ((R = j[i]) == null ? void 0 : R.length) === w;
|
|
2497
2288
|
if (typeof w == "object") {
|
|
2498
|
-
const
|
|
2499
|
-
if (
|
|
2500
|
-
return Number(
|
|
2501
|
-
if (
|
|
2502
|
-
return Number(
|
|
2503
|
-
if (
|
|
2504
|
-
return Number(
|
|
2289
|
+
const P = Object.keys(w)[0], A = w[P];
|
|
2290
|
+
if (P === "not")
|
|
2291
|
+
return Number(j[i].length) !== Number(A);
|
|
2292
|
+
if (P === "moreThan")
|
|
2293
|
+
return Number(j[i].length) >= Number(A);
|
|
2294
|
+
if (P === "lessThan")
|
|
2295
|
+
return Number(j[i].length) <= Number(A);
|
|
2505
2296
|
}
|
|
2506
2297
|
return !1;
|
|
2507
2298
|
}
|
|
2508
|
-
function e(i, C, w,
|
|
2509
|
-
return typeof w == "boolean" ?
|
|
2299
|
+
function e(i, C, w, j) {
|
|
2300
|
+
return typeof w == "boolean" ? j.childrenClassList.includes(C) === !!w : !1;
|
|
2510
2301
|
}
|
|
2511
|
-
function t(i, C, w,
|
|
2512
|
-
return typeof w == "boolean" ?
|
|
2302
|
+
function t(i, C, w, j) {
|
|
2303
|
+
return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
|
|
2513
2304
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return typeof w == "boolean" ?
|
|
2305
|
+
function r(i, C, w, j) {
|
|
2306
|
+
return typeof w == "boolean" ? j.parentClassList.includes(C) === !!w : !1;
|
|
2516
2307
|
}
|
|
2517
|
-
const
|
|
2308
|
+
const u = /* @__PURE__ */ new Map([
|
|
2518
2309
|
["length", n],
|
|
2519
2310
|
["hasChildren", e],
|
|
2520
|
-
["hasSibling",
|
|
2311
|
+
["hasSibling", r],
|
|
2521
2312
|
["hasParent", t]
|
|
2522
2313
|
]);
|
|
2523
|
-
function
|
|
2314
|
+
function g(i, C) {
|
|
2524
2315
|
const w = i;
|
|
2525
|
-
return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((
|
|
2526
|
-
if (
|
|
2527
|
-
return { target: w, operator: "length", param: null, value: C[
|
|
2528
|
-
const R =
|
|
2529
|
-
return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value:
|
|
2316
|
+
return typeof C == "number" ? [{ target: w, operator: "length", param: null, value: Number(C) }] : typeof C == "object" ? Object.keys(C).map((j) => {
|
|
2317
|
+
if (j === "length")
|
|
2318
|
+
return { target: w, operator: "length", param: null, value: C[j] };
|
|
2319
|
+
const R = j, P = C[j];
|
|
2320
|
+
return { target: w, operator: i === "children" ? "hasChildren" : i === "parent" ? "hasParent" : "hasSibling", param: R, value: P };
|
|
2530
2321
|
}) : [];
|
|
2531
2322
|
}
|
|
2532
|
-
function
|
|
2533
|
-
if (
|
|
2534
|
-
const w =
|
|
2323
|
+
function v(i, C) {
|
|
2324
|
+
if (u.has(i.operator)) {
|
|
2325
|
+
const w = u.get(i.operator);
|
|
2535
2326
|
return w && w(i.target, i.param, i.value, C) || !1;
|
|
2536
2327
|
}
|
|
2537
2328
|
return !1;
|
|
2538
2329
|
}
|
|
2539
|
-
function
|
|
2540
|
-
return Object.keys(i).reduce((
|
|
2541
|
-
const
|
|
2542
|
-
return
|
|
2543
|
-
}, []).reduce((
|
|
2330
|
+
function D(i, C) {
|
|
2331
|
+
return Object.keys(i).reduce((P, A) => {
|
|
2332
|
+
const N = g(A, i[A]);
|
|
2333
|
+
return P.push(...N), P;
|
|
2334
|
+
}, []).reduce((P, A) => P && v(A, C), !0);
|
|
2544
2335
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const w = Object.keys(i),
|
|
2547
|
-
return
|
|
2336
|
+
function E(i, C) {
|
|
2337
|
+
const w = Object.keys(i), j = w.includes("allOf"), R = w.includes("anyOf"), P = j || R, y = (P ? i[P ? j ? "allOf" : "anyOf" : "allOf"] : [i]).map((S) => D(S, C));
|
|
2338
|
+
return j ? !y.includes(!1) : y.includes(!0);
|
|
2548
2339
|
}
|
|
2549
|
-
function
|
|
2340
|
+
function b(i, C) {
|
|
2550
2341
|
const w = i.const;
|
|
2551
|
-
return w ? typeof w == "boolean" ? w : typeof w == "object" ?
|
|
2342
|
+
return w ? typeof w == "boolean" ? w : typeof w == "object" ? E(w, C) : !1 : !1;
|
|
2552
2343
|
}
|
|
2553
2344
|
function T(i) {
|
|
2554
2345
|
return (C) => {
|
|
2555
2346
|
const w = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
2556
|
-
return i && i.properties && Object.keys(i.properties).reduce((
|
|
2557
|
-
const
|
|
2558
|
-
return
|
|
2347
|
+
return i && i.properties && Object.keys(i.properties).reduce((j, R) => {
|
|
2348
|
+
const P = i.properties[R];
|
|
2349
|
+
return j[R] = b(P, C), j;
|
|
2559
2350
|
}, w), w;
|
|
2560
2351
|
};
|
|
2561
2352
|
}
|
|
2562
2353
|
function l(i, C, w) {
|
|
2563
2354
|
if (C.type === "object" && C.properties) {
|
|
2564
|
-
const { rules:
|
|
2565
|
-
w.set(i, T(
|
|
2566
|
-
(
|
|
2355
|
+
const { rules: j, contents: R } = C.properties;
|
|
2356
|
+
w.set(i, T(j)), R && Object.keys(R.properties).forEach(
|
|
2357
|
+
(P) => l(P, R.properties[P], w)
|
|
2567
2358
|
);
|
|
2568
2359
|
}
|
|
2569
2360
|
}
|
|
2570
2361
|
function a() {
|
|
2571
|
-
const { properties: i } =
|
|
2362
|
+
const { properties: i } = Ut;
|
|
2572
2363
|
Object.keys(i).forEach((C) => {
|
|
2573
2364
|
l(C, i[C], oe);
|
|
2574
2365
|
});
|
|
2575
2366
|
}
|
|
2576
|
-
function
|
|
2367
|
+
function d(i, C) {
|
|
2577
2368
|
const w = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
2578
2369
|
return oe.has(i) ? oe.get(i)(C) : w;
|
|
2579
2370
|
}
|
|
2580
|
-
return a(), { getRuleValue:
|
|
2371
|
+
return a(), { getRuleValue: d };
|
|
2581
2372
|
}
|
|
2582
|
-
class
|
|
2373
|
+
class qt extends K {
|
|
2583
2374
|
constructor(e, t) {
|
|
2584
2375
|
super(e, t);
|
|
2585
2376
|
}
|
|
@@ -2605,7 +2396,7 @@ class Ht extends J {
|
|
|
2605
2396
|
type: "combo-list",
|
|
2606
2397
|
textField: "value",
|
|
2607
2398
|
valueField: "key",
|
|
2608
|
-
data: [{ key: "response-toolbar", value:
|
|
2399
|
+
data: [{ key: "response-toolbar", value: Z["response-toolbar"].name }]
|
|
2609
2400
|
}
|
|
2610
2401
|
}
|
|
2611
2402
|
}
|
|
@@ -2648,85 +2439,85 @@ class Ht extends J {
|
|
|
2648
2439
|
};
|
|
2649
2440
|
}
|
|
2650
2441
|
}
|
|
2651
|
-
function
|
|
2652
|
-
const
|
|
2653
|
-
let
|
|
2654
|
-
function T(
|
|
2655
|
-
return
|
|
2442
|
+
function Ht(n, e, t, r) {
|
|
2443
|
+
const u = Me(), g = x(!1), v = x(!1);
|
|
2444
|
+
let D = !0, E = !1, b;
|
|
2445
|
+
function T(y) {
|
|
2446
|
+
return b && b.componentClassList && b.componentClassList.includes("f-form-layout") && b.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
|
|
2656
2447
|
}
|
|
2657
|
-
function l(
|
|
2658
|
-
return !Ot().basalDragulaRuleForContainer(
|
|
2448
|
+
function l(y) {
|
|
2449
|
+
return !Ot().basalDragulaRuleForContainer(y) || !D || !T(y), !1;
|
|
2659
2450
|
}
|
|
2660
2451
|
function a() {
|
|
2661
|
-
|
|
2662
|
-
const
|
|
2663
|
-
const
|
|
2664
|
-
return
|
|
2665
|
-
}, []) : [],
|
|
2666
|
-
|
|
2667
|
-
componentClass:
|
|
2668
|
-
componentClassList:
|
|
2669
|
-
childContents:
|
|
2670
|
-
firstChildContent:
|
|
2671
|
-
firstChildClass:
|
|
2452
|
+
g.value = !1, v.value = !1;
|
|
2453
|
+
const y = n, f = y.appearance && y.appearance.class || "", S = f.split(" "), k = y.buttons || [], p = k.length ? k[0] : null, s = p && p.appearance ? p.appearance.class : "", o = s ? s.split(" ") : [], c = k.length ? k.reduce((_, W) => {
|
|
2454
|
+
const q = W && W.appearance ? W.appearance.class : "", ee = q ? q.split(" ") : [];
|
|
2455
|
+
return _.push(...ee), _;
|
|
2456
|
+
}, []) : [], m = t == null ? void 0 : t.schema, B = m && m.appearance && m.appearance.class || "", M = B ? B.split(" ") : [];
|
|
2457
|
+
b = {
|
|
2458
|
+
componentClass: f,
|
|
2459
|
+
componentClassList: S,
|
|
2460
|
+
childContents: k,
|
|
2461
|
+
firstChildContent: p,
|
|
2462
|
+
firstChildClass: s,
|
|
2672
2463
|
firstChildClassList: o,
|
|
2673
|
-
parent:
|
|
2674
|
-
parentClass:
|
|
2675
|
-
parentClassList:
|
|
2676
|
-
children:
|
|
2464
|
+
parent: m,
|
|
2465
|
+
parentClass: B,
|
|
2466
|
+
parentClassList: M,
|
|
2467
|
+
children: k,
|
|
2677
2468
|
childrenClassList: c
|
|
2678
2469
|
};
|
|
2679
|
-
const { canAccept:
|
|
2680
|
-
return
|
|
2470
|
+
const { canAccept: I, fixed: L, hidePadding: $ } = u.getRuleValue(S[0], b);
|
|
2471
|
+
return D = I, E = $, !0;
|
|
2681
2472
|
}
|
|
2682
|
-
function
|
|
2473
|
+
function d(y) {
|
|
2683
2474
|
}
|
|
2684
2475
|
function i() {
|
|
2685
2476
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
2686
2477
|
}
|
|
2687
|
-
function C(
|
|
2688
|
-
return
|
|
2478
|
+
function C(y, f) {
|
|
2479
|
+
return f.text = y.label, f;
|
|
2689
2480
|
}
|
|
2690
|
-
function w(
|
|
2691
|
-
const
|
|
2692
|
-
if ((
|
|
2693
|
-
const o = String(
|
|
2694
|
-
return c.editor =
|
|
2481
|
+
function w(y, f, S) {
|
|
2482
|
+
const k = n;
|
|
2483
|
+
if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2484
|
+
const o = String(y.innerText), c = U("form-group");
|
|
2485
|
+
return c.editor = S, c.label = o, c;
|
|
2695
2486
|
}
|
|
2696
|
-
return
|
|
2487
|
+
return S;
|
|
2697
2488
|
}
|
|
2698
|
-
function
|
|
2489
|
+
function j() {
|
|
2699
2490
|
return !1;
|
|
2700
2491
|
}
|
|
2701
2492
|
function R() {
|
|
2702
2493
|
return !1;
|
|
2703
2494
|
}
|
|
2704
|
-
function
|
|
2495
|
+
function P() {
|
|
2705
2496
|
return !0;
|
|
2706
2497
|
}
|
|
2707
2498
|
function A() {
|
|
2708
|
-
return
|
|
2499
|
+
return E;
|
|
2709
2500
|
}
|
|
2710
|
-
function
|
|
2711
|
-
return new
|
|
2501
|
+
function N(y) {
|
|
2502
|
+
return new qt(y, e).getPropertyConfig(n);
|
|
2712
2503
|
}
|
|
2713
2504
|
return {
|
|
2714
2505
|
canAccepts: l,
|
|
2715
|
-
checkCanAddComponent:
|
|
2506
|
+
checkCanAddComponent: P,
|
|
2716
2507
|
checkCanDeleteComponent: R,
|
|
2717
|
-
checkCanMoveComponent:
|
|
2508
|
+
checkCanMoveComponent: j,
|
|
2718
2509
|
getStyles: i,
|
|
2719
2510
|
hideNestedPaddingInDesginerView: A,
|
|
2720
2511
|
onAcceptNewChildElement: w,
|
|
2721
|
-
onAcceptMovedChildElement:
|
|
2512
|
+
onAcceptMovedChildElement: d,
|
|
2722
2513
|
onResolveNewComponentSchema: C,
|
|
2723
2514
|
resolveComponentContext: a,
|
|
2724
|
-
getPropsConfig:
|
|
2725
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2726
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2515
|
+
getPropsConfig: N,
|
|
2516
|
+
triggerBelongedComponentToMoveWhenMoved: g,
|
|
2517
|
+
triggerBelongedComponentToDeleteWhenDeleted: v
|
|
2727
2518
|
};
|
|
2728
2519
|
}
|
|
2729
|
-
const
|
|
2520
|
+
const zt = {
|
|
2730
2521
|
id: { type: String, default: "" },
|
|
2731
2522
|
componentId: { type: String, default: "" },
|
|
2732
2523
|
canAdd: { type: Boolean, default: !1 },
|
|
@@ -2739,12 +2530,12 @@ const Gt = {
|
|
|
2739
2530
|
* 组件值
|
|
2740
2531
|
*/
|
|
2741
2532
|
modelValue: { type: Object }
|
|
2742
|
-
},
|
|
2743
|
-
function
|
|
2744
|
-
const t = e.getBoundingClientRect(),
|
|
2745
|
-
return
|
|
2533
|
+
}, X = x(0);
|
|
2534
|
+
function Gt(n, e) {
|
|
2535
|
+
const t = e.getBoundingClientRect(), r = n.getBoundingClientRect(), u = r.top >= t.top, g = r.top <= t.bottom;
|
|
2536
|
+
return u && g;
|
|
2746
2537
|
}
|
|
2747
|
-
function
|
|
2538
|
+
function Jt(n) {
|
|
2748
2539
|
if (!n)
|
|
2749
2540
|
return;
|
|
2750
2541
|
let e;
|
|
@@ -2753,51 +2544,51 @@ function Xt(n) {
|
|
|
2753
2544
|
const t = e.getBoundingClientRect();
|
|
2754
2545
|
if (t.width === 0 && t.height === 0)
|
|
2755
2546
|
return;
|
|
2756
|
-
const
|
|
2757
|
-
if (
|
|
2758
|
-
if (!
|
|
2759
|
-
|
|
2547
|
+
const r = e.querySelector(".component-btn-group");
|
|
2548
|
+
if (r) {
|
|
2549
|
+
if (!Gt(e, n)) {
|
|
2550
|
+
r.style.display = "none";
|
|
2760
2551
|
return;
|
|
2761
2552
|
}
|
|
2762
|
-
|
|
2763
|
-
const
|
|
2764
|
-
if (
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2553
|
+
r.style.display = "";
|
|
2554
|
+
const g = r.getBoundingClientRect(), v = r.querySelector("div");
|
|
2555
|
+
if (v) {
|
|
2556
|
+
const D = v.getBoundingClientRect();
|
|
2557
|
+
v.style.top = g.top + "px", v.style.left = g.left - D.width + "px";
|
|
2767
2558
|
}
|
|
2768
2559
|
}
|
|
2769
2560
|
}
|
|
2770
|
-
function
|
|
2771
|
-
var
|
|
2772
|
-
function
|
|
2561
|
+
function Qt(n, e, t) {
|
|
2562
|
+
var N;
|
|
2563
|
+
function r() {
|
|
2773
2564
|
}
|
|
2774
|
-
const
|
|
2775
|
-
function
|
|
2565
|
+
const u = "", g = x();
|
|
2566
|
+
function v() {
|
|
2776
2567
|
return !0;
|
|
2777
2568
|
}
|
|
2778
|
-
function
|
|
2569
|
+
function D() {
|
|
2779
2570
|
return !1;
|
|
2780
2571
|
}
|
|
2781
|
-
function
|
|
2572
|
+
function E() {
|
|
2782
2573
|
return !0;
|
|
2783
2574
|
}
|
|
2784
|
-
function
|
|
2575
|
+
function b() {
|
|
2785
2576
|
return !0;
|
|
2786
2577
|
}
|
|
2787
2578
|
function T() {
|
|
2788
2579
|
return !0;
|
|
2789
2580
|
}
|
|
2790
|
-
function l(
|
|
2791
|
-
if (!
|
|
2581
|
+
function l(y) {
|
|
2582
|
+
if (!y || !y.value)
|
|
2792
2583
|
return null;
|
|
2793
|
-
const
|
|
2794
|
-
return
|
|
2584
|
+
const f = x(y == null ? void 0 : y.value.parent), S = l(f);
|
|
2585
|
+
return S || null;
|
|
2795
2586
|
}
|
|
2796
|
-
function a(
|
|
2797
|
-
const { componentInstance:
|
|
2798
|
-
return !
|
|
2587
|
+
function a(y = e) {
|
|
2588
|
+
const { componentInstance: f, designerItemElementRef: S } = y;
|
|
2589
|
+
return !f || !f.value ? null : f.value.canMove || f.value.canAdd || f.value.canDelete ? S : a(y.parent);
|
|
2799
2590
|
}
|
|
2800
|
-
function
|
|
2591
|
+
function d(y) {
|
|
2801
2592
|
return !!t;
|
|
2802
2593
|
}
|
|
2803
2594
|
function i() {
|
|
@@ -2805,38 +2596,38 @@ function Yt(n, e, t) {
|
|
|
2805
2596
|
}
|
|
2806
2597
|
function C() {
|
|
2807
2598
|
}
|
|
2808
|
-
function w(
|
|
2599
|
+
function w(y, f) {
|
|
2809
2600
|
}
|
|
2810
|
-
function
|
|
2811
|
-
const { componentType:
|
|
2812
|
-
let
|
|
2813
|
-
const
|
|
2814
|
-
return
|
|
2601
|
+
function j(y) {
|
|
2602
|
+
const { componentType: f } = y;
|
|
2603
|
+
let S = U(f, y);
|
|
2604
|
+
const k = f.toLowerCase().replace("-", "_");
|
|
2605
|
+
return S && !S.id && S.type === f && (S.id = `${k}_${Math.random().toString().slice(2, 6)}`), S;
|
|
2815
2606
|
}
|
|
2816
|
-
function R(
|
|
2817
|
-
const
|
|
2818
|
-
|
|
2819
|
-
let
|
|
2820
|
-
const o =
|
|
2821
|
-
return
|
|
2607
|
+
function R(y, f) {
|
|
2608
|
+
const S = String(y.getAttribute("data-controltype")), k = y.getAttribute("data-feature"), p = k ? JSON.parse(k) : {};
|
|
2609
|
+
p.parentComponentInstance = g.value;
|
|
2610
|
+
let s = U(S, p);
|
|
2611
|
+
const o = S.toLowerCase().replace("-", "_");
|
|
2612
|
+
return s && !s.id && s.type === S && (s.id = `${o}_${Math.random().toString().slice(2, 6)}`), s;
|
|
2822
2613
|
}
|
|
2823
|
-
function
|
|
2614
|
+
function P(y) {
|
|
2824
2615
|
}
|
|
2825
|
-
function A(...
|
|
2616
|
+
function A(...y) {
|
|
2826
2617
|
return [];
|
|
2827
2618
|
}
|
|
2828
|
-
return
|
|
2829
|
-
canMove:
|
|
2830
|
-
canSelectParent:
|
|
2831
|
-
canAdd:
|
|
2832
|
-
canDelete:
|
|
2619
|
+
return g.value = {
|
|
2620
|
+
canMove: v(),
|
|
2621
|
+
canSelectParent: D(),
|
|
2622
|
+
canAdd: b(),
|
|
2623
|
+
canDelete: E(),
|
|
2833
2624
|
canNested: !T(),
|
|
2834
2625
|
contents: [],
|
|
2835
2626
|
elementRef: n,
|
|
2836
|
-
parent: (
|
|
2627
|
+
parent: (N = e.parent) == null ? void 0 : N.componentInstance,
|
|
2837
2628
|
schema: e.schema,
|
|
2838
|
-
styles:
|
|
2839
|
-
canAccepts:
|
|
2629
|
+
styles: u,
|
|
2630
|
+
canAccepts: d,
|
|
2840
2631
|
getBelongedComponentInstance: l,
|
|
2841
2632
|
getDraggableDesignItemElement: a,
|
|
2842
2633
|
getDraggingDisplayText: i,
|
|
@@ -2844,149 +2635,149 @@ function Yt(n, e, t) {
|
|
|
2844
2635
|
getDragScopeElement: C,
|
|
2845
2636
|
onAcceptMovedChildElement: w,
|
|
2846
2637
|
onAcceptNewChildElement: R,
|
|
2847
|
-
onChildElementMovedOut:
|
|
2848
|
-
addNewChildComponentSchema:
|
|
2849
|
-
updateDragAndDropRules:
|
|
2850
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
2851
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2852
|
-
},
|
|
2638
|
+
onChildElementMovedOut: P,
|
|
2639
|
+
addNewChildComponentSchema: j,
|
|
2640
|
+
updateDragAndDropRules: r,
|
|
2641
|
+
triggerBelongedComponentToMoveWhenMoved: x(!1),
|
|
2642
|
+
triggerBelongedComponentToDeleteWhenDeleted: x(!1)
|
|
2643
|
+
}, g;
|
|
2853
2644
|
}
|
|
2854
|
-
const
|
|
2645
|
+
const xe = /* @__PURE__ */ z({
|
|
2855
2646
|
name: "FDesignerInnerItem",
|
|
2856
|
-
props:
|
|
2647
|
+
props: zt,
|
|
2857
2648
|
emits: ["selectionChange", "addComponent", "removeComponent"],
|
|
2858
2649
|
setup(n, e) {
|
|
2859
|
-
const t =
|
|
2650
|
+
const t = x(n.canMove), r = x(n.canAdd), u = x(n.canDelete), g = x(!1), v = x(n.contentKey), D = x(n.childType), E = x(n.childLabel), b = x(n.modelValue), T = x(""), l = x(), a = V("canvas-dragula"), d = x(), i = V("design-item-context"), C = {
|
|
2860
2651
|
designerItemElementRef: l,
|
|
2861
|
-
componentInstance:
|
|
2862
|
-
schema:
|
|
2652
|
+
componentInstance: d,
|
|
2653
|
+
schema: b.value,
|
|
2863
2654
|
parent: i,
|
|
2864
2655
|
setupContext: e
|
|
2865
2656
|
};
|
|
2866
|
-
|
|
2867
|
-
const w =
|
|
2657
|
+
Ne("design-item-context", C);
|
|
2658
|
+
const w = F(() => ({
|
|
2868
2659
|
"farris-component": !0,
|
|
2869
2660
|
// 受position-relative影响,整个容器的高度不能被撑起
|
|
2870
2661
|
"flex-fill": n.id == "root-component",
|
|
2871
|
-
"position-relative": t.value ||
|
|
2872
|
-
"farris-nested":
|
|
2662
|
+
"position-relative": t.value || u.value,
|
|
2663
|
+
"farris-nested": g.value,
|
|
2873
2664
|
"can-move": t.value,
|
|
2874
2665
|
"d-none": l.value && l.value.classList.contains("d-none")
|
|
2875
|
-
})),
|
|
2666
|
+
})), j = F(() => {
|
|
2876
2667
|
const o = {};
|
|
2877
|
-
return T.value && T.value.split(";").reduce((c,
|
|
2878
|
-
const [
|
|
2879
|
-
return
|
|
2668
|
+
return T.value && T.value.split(";").reduce((c, m) => {
|
|
2669
|
+
const [B, M] = m.split(":");
|
|
2670
|
+
return B && (c[B] = M), c;
|
|
2880
2671
|
}, o), o;
|
|
2881
2672
|
});
|
|
2882
2673
|
function R(o, c) {
|
|
2883
|
-
if (i && i.schema[
|
|
2884
|
-
const
|
|
2885
|
-
if (
|
|
2886
|
-
const
|
|
2887
|
-
i.designerItemElementRef.value.querySelector(`#${
|
|
2674
|
+
if (i && i.schema[v.value]) {
|
|
2675
|
+
const m = i.schema[v.value].findIndex((B) => B.id === c.id);
|
|
2676
|
+
if (m > -1) {
|
|
2677
|
+
const B = i.schema[v.value].length, M = i.schema[v.value][m % B];
|
|
2678
|
+
i.designerItemElementRef.value.querySelector(`#${M.id}-design-item`), i.schema[v.value].splice(m, 1), i.componentInstance.value.updateDragAndDropRules(), X.value++, e.emit("removeComponent");
|
|
2888
2679
|
}
|
|
2889
2680
|
}
|
|
2890
2681
|
}
|
|
2891
|
-
function
|
|
2892
|
-
if (
|
|
2682
|
+
function P(o) {
|
|
2683
|
+
if (d.value.addNewChildComponentSchema) {
|
|
2893
2684
|
const c = {
|
|
2894
|
-
componentType:
|
|
2895
|
-
label:
|
|
2896
|
-
parentComponentInstance:
|
|
2685
|
+
componentType: D.value,
|
|
2686
|
+
label: E.value,
|
|
2687
|
+
parentComponentInstance: d.value,
|
|
2897
2688
|
targetPosition: -1
|
|
2898
|
-
},
|
|
2899
|
-
|
|
2689
|
+
}, m = d.value.addNewChildComponentSchema(c);
|
|
2690
|
+
b.value[v.value].push(m), e.emit("addComponent");
|
|
2900
2691
|
}
|
|
2901
2692
|
}
|
|
2902
2693
|
function A() {
|
|
2903
|
-
return
|
|
2694
|
+
return r.value && h("div", {
|
|
2904
2695
|
role: "button",
|
|
2905
2696
|
class: "btn component-settings-button",
|
|
2906
2697
|
title: "新增",
|
|
2907
2698
|
ref: "removeComponent",
|
|
2908
2699
|
onClick: (o) => {
|
|
2909
|
-
|
|
2700
|
+
P();
|
|
2910
2701
|
}
|
|
2911
|
-
}, [
|
|
2702
|
+
}, [h("i", {
|
|
2912
2703
|
class: "f-icon f-icon-plus-circle"
|
|
2913
2704
|
}, null)]);
|
|
2914
2705
|
}
|
|
2915
|
-
function
|
|
2916
|
-
return
|
|
2706
|
+
function N(o) {
|
|
2707
|
+
return u.value && h("div", {
|
|
2917
2708
|
role: "button",
|
|
2918
2709
|
class: "btn component-settings-button",
|
|
2919
2710
|
title: "删除",
|
|
2920
2711
|
ref: "removeComponent",
|
|
2921
|
-
onClick:
|
|
2922
|
-
}, [
|
|
2712
|
+
onClick: _e((c) => R(c, o), ["stop"])
|
|
2713
|
+
}, [h("i", {
|
|
2923
2714
|
class: "f-icon f-icon-yxs_delete"
|
|
2924
2715
|
}, null)]);
|
|
2925
2716
|
}
|
|
2926
|
-
function
|
|
2927
|
-
return t.value &&
|
|
2717
|
+
function y() {
|
|
2718
|
+
return t.value && h("div", {
|
|
2928
2719
|
role: "button",
|
|
2929
2720
|
class: "btn component-settings-button",
|
|
2930
2721
|
title: "移动",
|
|
2931
2722
|
ref: "moveComponent"
|
|
2932
|
-
}, [
|
|
2723
|
+
}, [h("i", {
|
|
2933
2724
|
"data-dragging-icon": "true",
|
|
2934
2725
|
class: "cmp_move f-icon f-icon-yxs_move"
|
|
2935
2726
|
}, null)]);
|
|
2936
2727
|
}
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
2728
|
+
function f(o) {
|
|
2729
|
+
return h("div", {
|
|
2939
2730
|
class: "component-btn-group",
|
|
2940
2731
|
"data-noattach": "true"
|
|
2941
|
-
}, [
|
|
2732
|
+
}, [h("div", null, [A(), y(), N(o)])]);
|
|
2942
2733
|
}
|
|
2943
|
-
|
|
2944
|
-
|
|
2734
|
+
G(() => n.modelValue, (o) => {
|
|
2735
|
+
b.value = o, C.schema = o;
|
|
2945
2736
|
});
|
|
2946
|
-
function
|
|
2737
|
+
function S(o) {
|
|
2947
2738
|
const c = o.target;
|
|
2948
|
-
|
|
2739
|
+
Jt(c);
|
|
2949
2740
|
}
|
|
2950
|
-
function
|
|
2741
|
+
function k() {
|
|
2951
2742
|
var o, c;
|
|
2952
|
-
(c = (o =
|
|
2743
|
+
(c = (o = b.value) == null ? void 0 : o.contents) != null && c.length && l.value && l.value.addEventListener("scroll", S);
|
|
2953
2744
|
}
|
|
2954
|
-
function
|
|
2955
|
-
const o = l.value, c =
|
|
2956
|
-
return
|
|
2745
|
+
function p() {
|
|
2746
|
+
const o = l.value, c = x(o.children[1]);
|
|
2747
|
+
return Qt(c, C).value;
|
|
2957
2748
|
}
|
|
2958
|
-
|
|
2749
|
+
H(() => {
|
|
2959
2750
|
if (l.value) {
|
|
2960
|
-
const o = l.value.querySelector(`[data-dragref='${
|
|
2961
|
-
|
|
2751
|
+
const o = l.value.querySelector(`[data-dragref='${b.value.id}-container']`);
|
|
2752
|
+
d.value = o && o.componentInstance ? o.componentInstance.value : p(), a && o && a.attachComponents(o, b.value), g.value = d.value.canNested !== void 0 ? d.value.canNested : g.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);
|
|
2962
2753
|
}
|
|
2963
|
-
|
|
2964
|
-
}),
|
|
2965
|
-
l.value && l.value.removeEventListener("scroll",
|
|
2754
|
+
k(), X.value++;
|
|
2755
|
+
}), $e(() => {
|
|
2756
|
+
l.value && l.value.removeEventListener("scroll", S);
|
|
2966
2757
|
});
|
|
2967
|
-
function
|
|
2968
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
2758
|
+
function s(o) {
|
|
2759
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((m) => m.classList.remove("dgComponentFocused")), o && (o.preventDefault(), o.stopPropagation());
|
|
2969
2760
|
const c = l.value;
|
|
2970
2761
|
if (c) {
|
|
2971
|
-
const
|
|
2972
|
-
if (!(
|
|
2973
|
-
Array.from(
|
|
2974
|
-
const
|
|
2975
|
-
|
|
2762
|
+
const m = document.getElementsByClassName("dgComponentSelected");
|
|
2763
|
+
if (!(m && m.length === 1 && m[0] === l.value)) {
|
|
2764
|
+
Array.from(m).forEach((I) => I.classList.remove("dgComponentSelected")), c.classList.add("dgComponentFocused"), e.emit("selectionChange", b.value.type, b.value, n.componentId, d.value);
|
|
2765
|
+
const M = d.value.getDraggableDesignItemElement(C);
|
|
2766
|
+
M && M.value && M.value.classList.add("dgComponentSelected");
|
|
2976
2767
|
}
|
|
2977
2768
|
}
|
|
2978
|
-
|
|
2769
|
+
X.value++;
|
|
2979
2770
|
}
|
|
2980
|
-
return () =>
|
|
2771
|
+
return () => h("div", {
|
|
2981
2772
|
id: `${n.id}-design-item`,
|
|
2982
2773
|
ref: l,
|
|
2983
2774
|
class: w.value,
|
|
2984
|
-
style:
|
|
2985
|
-
onClick:
|
|
2986
|
-
}, [
|
|
2775
|
+
style: j.value,
|
|
2776
|
+
onClick: s
|
|
2777
|
+
}, [f(b.value), e.slots.default && e.slots.default()]);
|
|
2987
2778
|
}
|
|
2988
2779
|
});
|
|
2989
|
-
class
|
|
2780
|
+
class Xt extends K {
|
|
2990
2781
|
constructor(e, t) {
|
|
2991
2782
|
super(e, t);
|
|
2992
2783
|
}
|
|
@@ -3037,7 +2828,7 @@ class Zt extends J {
|
|
|
3037
2828
|
title: "style样式"
|
|
3038
2829
|
}
|
|
3039
2830
|
},
|
|
3040
|
-
setPropertyRelates(t,
|
|
2831
|
+
setPropertyRelates(t, r) {
|
|
3041
2832
|
}
|
|
3042
2833
|
};
|
|
3043
2834
|
}
|
|
@@ -3048,29 +2839,29 @@ class Zt extends J {
|
|
|
3048
2839
|
name: "点击事件"
|
|
3049
2840
|
}
|
|
3050
2841
|
];
|
|
3051
|
-
var
|
|
3052
|
-
const
|
|
3053
|
-
|
|
2842
|
+
var r = this;
|
|
2843
|
+
const u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
|
|
2844
|
+
g[r.viewModelId] = {
|
|
3054
2845
|
type: "events-editor",
|
|
3055
2846
|
editor: {
|
|
3056
|
-
initialData:
|
|
2847
|
+
initialData: u
|
|
3057
2848
|
}
|
|
3058
2849
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
3059
2850
|
title: "事件",
|
|
3060
2851
|
hideTitle: !0,
|
|
3061
|
-
properties:
|
|
2852
|
+
properties: g,
|
|
3062
2853
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
3063
2854
|
refreshPanelAfterChanged: !0,
|
|
3064
2855
|
tabId: "commands",
|
|
3065
2856
|
tabName: "交互",
|
|
3066
|
-
setPropertyRelates(
|
|
3067
|
-
const
|
|
3068
|
-
delete e[
|
|
2857
|
+
setPropertyRelates(v, D) {
|
|
2858
|
+
const E = v.propertyValue;
|
|
2859
|
+
delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
|
|
3069
2860
|
}
|
|
3070
2861
|
};
|
|
3071
2862
|
}
|
|
3072
2863
|
}
|
|
3073
|
-
class
|
|
2864
|
+
class Yt extends K {
|
|
3074
2865
|
constructor(e, t) {
|
|
3075
2866
|
super(e, t);
|
|
3076
2867
|
}
|
|
@@ -3096,7 +2887,7 @@ class Kt extends J {
|
|
|
3096
2887
|
type: "combo-list",
|
|
3097
2888
|
textField: "value",
|
|
3098
2889
|
valueField: "key",
|
|
3099
|
-
data: [{ key: "response-toolbar-item", value:
|
|
2890
|
+
data: [{ key: "response-toolbar-item", value: Z["response-toolbar-item"].name }]
|
|
3100
2891
|
}
|
|
3101
2892
|
},
|
|
3102
2893
|
text: {
|
|
@@ -3121,47 +2912,47 @@ class Kt extends J {
|
|
|
3121
2912
|
label: "click",
|
|
3122
2913
|
name: "点击事件"
|
|
3123
2914
|
}
|
|
3124
|
-
],
|
|
3125
|
-
|
|
2915
|
+
], r = this, u = r.eventsEditorUtils.formProperties(e, r.viewModelId, t), g = {};
|
|
2916
|
+
g[r.viewModelId] = {
|
|
3126
2917
|
type: "events-editor",
|
|
3127
2918
|
editor: {
|
|
3128
|
-
initialData:
|
|
2919
|
+
initialData: u
|
|
3129
2920
|
}
|
|
3130
2921
|
}, this.propertyConfig.categories.eventsEditor = {
|
|
3131
2922
|
title: "事件",
|
|
3132
2923
|
hideTitle: !0,
|
|
3133
|
-
properties:
|
|
2924
|
+
properties: g,
|
|
3134
2925
|
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
3135
2926
|
refreshPanelAfterChanged: !0,
|
|
3136
2927
|
tabId: "commands",
|
|
3137
2928
|
tabName: "交互",
|
|
3138
|
-
setPropertyRelates(
|
|
3139
|
-
const
|
|
3140
|
-
delete e[
|
|
2929
|
+
setPropertyRelates(v, D) {
|
|
2930
|
+
const E = v.propertyValue;
|
|
2931
|
+
delete e[r.viewModelId], E && (E.setPropertyRelates = this.setPropertyRelates, r.eventsEditorUtils.saveRelatedParameters(e, r.viewModelId, E.events, E));
|
|
3141
2932
|
}
|
|
3142
2933
|
};
|
|
3143
2934
|
}
|
|
3144
2935
|
}
|
|
3145
|
-
function
|
|
3146
|
-
|
|
3147
|
-
const t =
|
|
3148
|
-
let
|
|
3149
|
-
function
|
|
2936
|
+
function Zt(n, e) {
|
|
2937
|
+
Me();
|
|
2938
|
+
const t = x(!1), r = x(!1);
|
|
2939
|
+
let u = !1, g = !1;
|
|
2940
|
+
function v(w) {
|
|
3150
2941
|
return !1;
|
|
3151
2942
|
}
|
|
3152
|
-
function
|
|
2943
|
+
function D(w) {
|
|
3153
2944
|
}
|
|
3154
|
-
function
|
|
2945
|
+
function E() {
|
|
3155
2946
|
return "";
|
|
3156
2947
|
}
|
|
3157
|
-
function
|
|
3158
|
-
return
|
|
2948
|
+
function b(w, j) {
|
|
2949
|
+
return j.text = w.label, j;
|
|
3159
2950
|
}
|
|
3160
|
-
function T(w,
|
|
3161
|
-
const
|
|
3162
|
-
if ((
|
|
3163
|
-
const
|
|
3164
|
-
return
|
|
2951
|
+
function T(w, j, R) {
|
|
2952
|
+
const P = n.schema;
|
|
2953
|
+
if ((P.appearance && P.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
2954
|
+
const y = String(w.innerText), f = U("form-group");
|
|
2955
|
+
return f.editor = R, f.label = y, f;
|
|
3165
2956
|
}
|
|
3166
2957
|
return R;
|
|
3167
2958
|
}
|
|
@@ -3169,71 +2960,71 @@ function Jt(n, e) {
|
|
|
3169
2960
|
return !1;
|
|
3170
2961
|
}
|
|
3171
2962
|
function a() {
|
|
3172
|
-
return !
|
|
2963
|
+
return !g;
|
|
3173
2964
|
}
|
|
3174
|
-
function
|
|
2965
|
+
function d() {
|
|
3175
2966
|
return !1;
|
|
3176
2967
|
}
|
|
3177
2968
|
function i() {
|
|
3178
|
-
return
|
|
2969
|
+
return u;
|
|
3179
2970
|
}
|
|
3180
2971
|
function C(w) {
|
|
3181
|
-
let
|
|
2972
|
+
let j;
|
|
3182
2973
|
switch (n.schema.type) {
|
|
3183
2974
|
case "tab-toolbar-item":
|
|
3184
|
-
|
|
2975
|
+
j = new Xt(w, e);
|
|
3185
2976
|
break;
|
|
3186
2977
|
default:
|
|
3187
|
-
|
|
2978
|
+
j = new Yt(w, e);
|
|
3188
2979
|
}
|
|
3189
|
-
return
|
|
2980
|
+
return j.getPropertyConfig(n.schema);
|
|
3190
2981
|
}
|
|
3191
2982
|
return {
|
|
3192
|
-
canAccepts:
|
|
3193
|
-
checkCanAddComponent:
|
|
2983
|
+
canAccepts: v,
|
|
2984
|
+
checkCanAddComponent: d,
|
|
3194
2985
|
checkCanDeleteComponent: a,
|
|
3195
2986
|
checkCanMoveComponent: l,
|
|
3196
|
-
getStyles:
|
|
2987
|
+
getStyles: E,
|
|
3197
2988
|
hideNestedPaddingInDesginerView: i,
|
|
3198
2989
|
onAcceptNewChildElement: T,
|
|
3199
|
-
onAcceptMovedChildElement:
|
|
3200
|
-
onResolveNewComponentSchema:
|
|
2990
|
+
onAcceptMovedChildElement: D,
|
|
2991
|
+
onResolveNewComponentSchema: b,
|
|
3201
2992
|
getPropsConfig: C,
|
|
3202
2993
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
3203
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
2994
|
+
triggerBelongedComponentToDeleteWhenDeleted: r
|
|
3204
2995
|
};
|
|
3205
2996
|
}
|
|
3206
|
-
const
|
|
2997
|
+
const ke = /* @__PURE__ */ z({
|
|
3207
2998
|
name: "FResponseToolbarItemDesign",
|
|
3208
|
-
props:
|
|
2999
|
+
props: je,
|
|
3209
3000
|
emits: ["Click"],
|
|
3210
3001
|
setup(n, e) {
|
|
3211
|
-
|
|
3212
|
-
const t =
|
|
3002
|
+
x(), x();
|
|
3003
|
+
const t = x(n.alignment), r = {
|
|
3213
3004
|
id: "__more_buttons__",
|
|
3214
3005
|
text: "More"
|
|
3215
|
-
},
|
|
3216
|
-
|
|
3217
|
-
const
|
|
3218
|
-
|
|
3219
|
-
}),
|
|
3220
|
-
|
|
3221
|
-
}), e.expose(
|
|
3006
|
+
}, u = x(new J(r));
|
|
3007
|
+
F(() => u.value.children.length > 0);
|
|
3008
|
+
const g = x(), v = V("designer-host-service"), D = V("design-item-context"), E = Zt(D, v), b = ve(g, D, E);
|
|
3009
|
+
V("toolbar-item-handler", () => {
|
|
3010
|
+
}), H(() => {
|
|
3011
|
+
g.value.componentInstance = b;
|
|
3012
|
+
}), e.expose(b.value);
|
|
3222
3013
|
function T() {
|
|
3223
|
-
const
|
|
3014
|
+
const d = {
|
|
3224
3015
|
"f-icon": !0
|
|
3225
3016
|
};
|
|
3226
3017
|
if (n.icon) {
|
|
3227
3018
|
const i = n.icon.trim().split(" ");
|
|
3228
|
-
i && i.length && i.reduce((C, w) => (C[w] = !0, C),
|
|
3019
|
+
i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
|
|
3229
3020
|
}
|
|
3230
|
-
return
|
|
3021
|
+
return d;
|
|
3231
3022
|
}
|
|
3232
3023
|
function l() {
|
|
3233
3024
|
return !!(n.icon && n.icon.trim());
|
|
3234
3025
|
}
|
|
3235
3026
|
function a() {
|
|
3236
|
-
const
|
|
3027
|
+
const d = {
|
|
3237
3028
|
btn: !0,
|
|
3238
3029
|
"f-rt-btn": !0,
|
|
3239
3030
|
"f-btn-ml": t.value === "right",
|
|
@@ -3242,159 +3033,159 @@ const je = /* @__PURE__ */ G({
|
|
|
3242
3033
|
};
|
|
3243
3034
|
if (n.class) {
|
|
3244
3035
|
const i = n.class.split(" ");
|
|
3245
|
-
i && i.length && i.reduce((C, w) => (C[w] = !0, C),
|
|
3036
|
+
i && i.length && i.reduce((C, w) => (C[w] = !0, C), d);
|
|
3246
3037
|
}
|
|
3247
|
-
return
|
|
3038
|
+
return d;
|
|
3248
3039
|
}
|
|
3249
|
-
return
|
|
3250
|
-
}),
|
|
3251
|
-
}), () =>
|
|
3252
|
-
ref:
|
|
3253
|
-
"data-dragref": `${
|
|
3040
|
+
return H(() => {
|
|
3041
|
+
}), re(() => {
|
|
3042
|
+
}), () => h("div", {
|
|
3043
|
+
ref: g,
|
|
3044
|
+
"data-dragref": `${D.schema.id}-container`,
|
|
3254
3045
|
class: "farris-component position-relative",
|
|
3255
3046
|
style: "display:inline-block!important;"
|
|
3256
|
-
}, [
|
|
3047
|
+
}, [h("button", {
|
|
3257
3048
|
type: "button",
|
|
3258
3049
|
class: a(),
|
|
3259
3050
|
id: n.id
|
|
3260
|
-
}, [l() &&
|
|
3051
|
+
}, [l() && h("i", {
|
|
3261
3052
|
class: T()
|
|
3262
3053
|
}, null), n.text])]);
|
|
3263
3054
|
}
|
|
3264
|
-
}), Ae = /* @__PURE__ */
|
|
3055
|
+
}), Ae = /* @__PURE__ */ z({
|
|
3265
3056
|
name: "FResponseToolbarDesign",
|
|
3266
|
-
props:
|
|
3057
|
+
props: xt,
|
|
3267
3058
|
emits: ["Click"],
|
|
3268
3059
|
setup(n, e) {
|
|
3269
|
-
const t =
|
|
3270
|
-
let
|
|
3271
|
-
const
|
|
3060
|
+
const t = x(n.items);
|
|
3061
|
+
let r = new Array(t.value.length).fill(x());
|
|
3062
|
+
const u = x(), g = x(), v = x(n.alignment), D = {
|
|
3272
3063
|
id: "__more_buttons__",
|
|
3273
3064
|
text: "More"
|
|
3274
|
-
},
|
|
3275
|
-
|
|
3276
|
-
const T =
|
|
3277
|
-
|
|
3278
|
-
}),
|
|
3065
|
+
}, E = x(new J(D)), b = Ee();
|
|
3066
|
+
F(() => E.value.children.length > 0);
|
|
3067
|
+
const T = x(), l = V("designer-host-service"), a = V("design-item-context"), d = Ht(a.schema, l, a), i = ve(T, a, d);
|
|
3068
|
+
V("toolbar-item-handler", () => {
|
|
3069
|
+
}), H(() => {
|
|
3279
3070
|
T.value.componentInstance = i;
|
|
3280
3071
|
}), e.expose(i.value);
|
|
3281
|
-
const C =
|
|
3072
|
+
const C = F(() => ({
|
|
3282
3073
|
"f-toolbar": !0,
|
|
3283
3074
|
"f-response-toolbar": !0,
|
|
3284
3075
|
"position-relative": !0
|
|
3285
|
-
})), w =
|
|
3076
|
+
})), w = F(() => ({
|
|
3286
3077
|
"d-flex": !0,
|
|
3287
3078
|
"flex-nowrap": !0,
|
|
3288
|
-
"justify-content-end":
|
|
3289
|
-
"justify-content-start":
|
|
3079
|
+
"justify-content-end": v.value === "right",
|
|
3080
|
+
"justify-content-start": v.value === "left"
|
|
3290
3081
|
})), {
|
|
3291
|
-
renderToolbarDropdown:
|
|
3082
|
+
renderToolbarDropdown: j,
|
|
3292
3083
|
clearAllDropDown: R
|
|
3293
|
-
} = Rt(n,
|
|
3294
|
-
function
|
|
3295
|
-
t.value.filter((
|
|
3296
|
-
|
|
3297
|
-
}),
|
|
3084
|
+
} = Rt(n, b, i);
|
|
3085
|
+
function P() {
|
|
3086
|
+
t.value.filter((p) => p.children && p.children.length > 0).forEach((p) => {
|
|
3087
|
+
p.expanded = !1;
|
|
3088
|
+
}), E.value.expanded = !1, R();
|
|
3298
3089
|
}
|
|
3299
|
-
const A = /* @__PURE__ */ new Map(),
|
|
3300
|
-
function
|
|
3301
|
-
const
|
|
3302
|
-
let o =
|
|
3303
|
-
const c = Array.from(
|
|
3304
|
-
if (
|
|
3305
|
-
const
|
|
3090
|
+
const A = /* @__PURE__ */ new Map(), N = [];
|
|
3091
|
+
function y(p) {
|
|
3092
|
+
const s = g.value;
|
|
3093
|
+
let o = p;
|
|
3094
|
+
const c = Array.from(s.children), m = c[c.length - 1].id === "__more_buttons__" ? c[c.length - 1] : null;
|
|
3095
|
+
if (m) {
|
|
3096
|
+
const $ = m.computedStyleMap().get("margin-left"), _ = m.computedStyleMap().get("margin-right"), W = ($ ? $.value : 0) + m.getBoundingClientRect().width + (_ ? _.value : 0);
|
|
3306
3097
|
o -= W;
|
|
3307
3098
|
}
|
|
3308
|
-
const
|
|
3309
|
-
for (const
|
|
3310
|
-
const
|
|
3311
|
-
o <
|
|
3312
|
-
id:
|
|
3313
|
-
width:
|
|
3314
|
-
})) : o -=
|
|
3099
|
+
const B = c.filter(($) => $.id !== "__more_buttons__");
|
|
3100
|
+
for (const $ of B) {
|
|
3101
|
+
const _ = $.computedStyleMap().get("margin-left"), W = $.computedStyleMap().get("margin-right"), q = (_ ? _.value : 0) + $.getBoundingClientRect().width + (W ? W.value : 0);
|
|
3102
|
+
o < q ? (A.set($.id, !0), N.push({
|
|
3103
|
+
id: $.id,
|
|
3104
|
+
width: q
|
|
3105
|
+
})) : o -= q;
|
|
3315
3106
|
}
|
|
3316
|
-
if (
|
|
3317
|
-
for (let
|
|
3318
|
-
const
|
|
3319
|
-
if (o >=
|
|
3320
|
-
o -=
|
|
3107
|
+
if (N.length)
|
|
3108
|
+
for (let $ = N.length - 1; $ >= 0; $--) {
|
|
3109
|
+
const _ = N[$].width;
|
|
3110
|
+
if (o >= _)
|
|
3111
|
+
o -= _, A.delete(N[$].id), N.pop();
|
|
3321
3112
|
else
|
|
3322
3113
|
break;
|
|
3323
3114
|
}
|
|
3324
|
-
const
|
|
3325
|
-
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3115
|
+
const M = Object.assign({}, E.value);
|
|
3116
|
+
M.children = [];
|
|
3117
|
+
const I = new J(M), L = t.value.reduce(($, _) => (A.has(_.id) && I.children.push(_), _.visible = !A.has(_.id), $.push(_), $), []);
|
|
3118
|
+
E.value = I, t.value = L;
|
|
3328
3119
|
}
|
|
3329
|
-
const
|
|
3330
|
-
if (
|
|
3331
|
-
const o =
|
|
3332
|
-
(o <
|
|
3120
|
+
const f = new ResizeObserver((p) => {
|
|
3121
|
+
if (p.length) {
|
|
3122
|
+
const o = p[0].contentRect.width, m = g.value.getBoundingClientRect().width;
|
|
3123
|
+
(o < m || N.length) && y(o);
|
|
3333
3124
|
}
|
|
3334
3125
|
});
|
|
3335
|
-
|
|
3336
|
-
const
|
|
3337
|
-
|
|
3338
|
-
}),
|
|
3339
|
-
|
|
3340
|
-
}),
|
|
3126
|
+
H(() => {
|
|
3127
|
+
const p = u.value;
|
|
3128
|
+
f.observe(p), document.body.addEventListener("click", P);
|
|
3129
|
+
}), re(() => {
|
|
3130
|
+
f.disconnect(), document.body.removeEventListener("click", P);
|
|
3131
|
+
}), G(() => n.items, () => {
|
|
3341
3132
|
t.value = n.items;
|
|
3342
3133
|
}, {
|
|
3343
3134
|
deep: !0
|
|
3344
|
-
}),
|
|
3345
|
-
|
|
3135
|
+
}), G(t, (p) => {
|
|
3136
|
+
r = new Array(t.value.length).fill(x());
|
|
3346
3137
|
});
|
|
3347
|
-
function
|
|
3348
|
-
a && a.setupContext && a.setupContext.emit("selectionChange",
|
|
3138
|
+
function S(p, s, o, c) {
|
|
3139
|
+
a && a.setupContext && a.setupContext.emit("selectionChange", p, s, o, c);
|
|
3349
3140
|
}
|
|
3350
|
-
function
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3141
|
+
function k() {
|
|
3142
|
+
const p = g.value.querySelector(".dgComponentFocused.dgComponentSelected");
|
|
3143
|
+
p == null || p.classList.remove("dgComponentSelected"), p == null || p.classList.remove("dgComponentFocused");
|
|
3353
3144
|
}
|
|
3354
|
-
return () =>
|
|
3145
|
+
return () => h("div", {
|
|
3355
3146
|
ref: T,
|
|
3356
3147
|
"data-dragref": `${a.schema.id}-container`,
|
|
3357
3148
|
class: C.value
|
|
3358
|
-
}, [
|
|
3359
|
-
ref: p,
|
|
3360
|
-
class: w.value
|
|
3361
|
-
}, [b("div", {
|
|
3149
|
+
}, [h("div", {
|
|
3362
3150
|
ref: u,
|
|
3151
|
+
class: w.value
|
|
3152
|
+
}, [h("div", {
|
|
3153
|
+
ref: g,
|
|
3363
3154
|
class: "d-inline-block f-response-content",
|
|
3364
3155
|
style: "white-space: nowrap;"
|
|
3365
|
-
}, [t.value.map((
|
|
3366
|
-
ref: s
|
|
3156
|
+
}, [t.value.map((p, s) => h(xe, {
|
|
3157
|
+
ref: r[s],
|
|
3367
3158
|
class: "p-0 display-inline-block",
|
|
3368
|
-
modelValue:
|
|
3369
|
-
"onUpdate:modelValue": (o) =>
|
|
3159
|
+
modelValue: p,
|
|
3160
|
+
"onUpdate:modelValue": (o) => p = o,
|
|
3370
3161
|
canMove: !0,
|
|
3371
3162
|
childType: "response-toolbar-item",
|
|
3372
3163
|
childLabel: "按钮",
|
|
3373
3164
|
contentKey: "buttons",
|
|
3374
3165
|
componentId: n.componentId,
|
|
3375
|
-
id:
|
|
3166
|
+
id: p.id,
|
|
3376
3167
|
style: "padding:0 !important;display:inline-block",
|
|
3377
|
-
onSelectionChange:
|
|
3378
|
-
onRemoveComponent:
|
|
3168
|
+
onSelectionChange: S,
|
|
3169
|
+
onRemoveComponent: k
|
|
3379
3170
|
}, {
|
|
3380
|
-
default: () => [
|
|
3381
|
-
id:
|
|
3382
|
-
disable:
|
|
3383
|
-
text:
|
|
3384
|
-
icon:
|
|
3171
|
+
default: () => [h(ke, {
|
|
3172
|
+
id: p.id,
|
|
3173
|
+
disable: p.disable,
|
|
3174
|
+
text: p.text,
|
|
3175
|
+
icon: p.icon,
|
|
3385
3176
|
componentId: n.componentId
|
|
3386
3177
|
}, null)]
|
|
3387
3178
|
}))])])]);
|
|
3388
3179
|
}
|
|
3389
|
-
}),
|
|
3390
|
-
|
|
3391
|
-
n["response-toolbar"] =
|
|
3180
|
+
}), he = ue;
|
|
3181
|
+
Y.register = (n, e, t) => {
|
|
3182
|
+
n["response-toolbar"] = Y, e["response-toolbar"] = ue;
|
|
3392
3183
|
};
|
|
3393
|
-
|
|
3394
|
-
n["response-toolbar"] = Ae, e["response-toolbar"] =
|
|
3184
|
+
Y.registerDesigner = (n, e, t) => {
|
|
3185
|
+
n["response-toolbar"] = Ae, e["response-toolbar"] = ue, n["response-toolbar-item"] = ke, e["response-toolbar-item"] = kt;
|
|
3395
3186
|
};
|
|
3396
|
-
|
|
3397
|
-
const
|
|
3187
|
+
Ve(Y);
|
|
3188
|
+
const Kt = {
|
|
3398
3189
|
id: { type: String, default: "" },
|
|
3399
3190
|
componentId: { type: String, default: "" },
|
|
3400
3191
|
type: { type: String, default: "" },
|
|
@@ -3409,101 +3200,102 @@ const en = {
|
|
|
3409
3200
|
*/
|
|
3410
3201
|
modelValue: { type: Object },
|
|
3411
3202
|
ignore: { type: Boolean, default: !1 }
|
|
3412
|
-
},
|
|
3203
|
+
}, be = /* @__PURE__ */ z({
|
|
3413
3204
|
name: "FDesignerTemplateItem",
|
|
3414
|
-
props:
|
|
3205
|
+
props: Kt,
|
|
3415
3206
|
emits: ["selectionChange"],
|
|
3416
3207
|
setup(n, e) {
|
|
3417
|
-
const t =
|
|
3208
|
+
const t = x(), r = F(() => ({
|
|
3418
3209
|
"farris-component": !0
|
|
3419
3210
|
}));
|
|
3420
|
-
function
|
|
3421
|
-
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((
|
|
3422
|
-
const
|
|
3423
|
-
if (
|
|
3424
|
-
const
|
|
3425
|
-
|
|
3211
|
+
function u(g) {
|
|
3212
|
+
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((D) => D.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
|
|
3213
|
+
const v = t.value;
|
|
3214
|
+
if (v) {
|
|
3215
|
+
const D = document.getElementsByClassName("dgComponentSelected");
|
|
3216
|
+
D && D.length === 1 && D[0] === t.value || (Array.from(D).forEach((b) => b.classList.remove("dgComponentSelected")), v.classList.add("dgComponentFocused"));
|
|
3426
3217
|
}
|
|
3427
|
-
|
|
3218
|
+
X.value++;
|
|
3428
3219
|
}
|
|
3429
|
-
return () =>
|
|
3220
|
+
return () => h("div", {
|
|
3430
3221
|
id: `${n.id}-design-item`,
|
|
3431
3222
|
ref: t,
|
|
3432
|
-
class:
|
|
3433
|
-
onClick:
|
|
3223
|
+
class: r.value,
|
|
3224
|
+
onClick: u
|
|
3434
3225
|
}, [e.slots.default && e.slots.default()]);
|
|
3435
3226
|
}
|
|
3436
|
-
}),
|
|
3227
|
+
}), en = /* @__PURE__ */ z({
|
|
3437
3228
|
name: "FPageHeaderDesign",
|
|
3438
3229
|
props: st,
|
|
3439
3230
|
emits: ["Click"],
|
|
3440
3231
|
setup(n, e) {
|
|
3441
|
-
const t =
|
|
3232
|
+
const t = x(), r = V("designer-host-service"), u = V("design-item-context"), g = at(u.schema, r), v = rt(t, u, g), D = x(u.schema.toolbar || {
|
|
3442
3233
|
type: "response-toolbar",
|
|
3443
3234
|
buttons: []
|
|
3444
|
-
}),
|
|
3445
|
-
|
|
3446
|
-
t.value.componentInstance =
|
|
3447
|
-
}),
|
|
3448
|
-
|
|
3235
|
+
}), E = x(he(D.value));
|
|
3236
|
+
H(() => {
|
|
3237
|
+
t.value.componentInstance = v;
|
|
3238
|
+
}), G(() => u.schema.toolbar, () => {
|
|
3239
|
+
D.value = u.schema.toolbar || {
|
|
3449
3240
|
type: "response-toolbar",
|
|
3450
3241
|
buttons: []
|
|
3451
|
-
},
|
|
3242
|
+
}, E.value = he(D.value);
|
|
3452
3243
|
}, {
|
|
3453
3244
|
deep: !0
|
|
3454
3245
|
});
|
|
3455
|
-
const
|
|
3456
|
-
function T(l, a,
|
|
3457
|
-
|
|
3246
|
+
const b = F(() => [...E.value.items]);
|
|
3247
|
+
function T(l, a, d, i) {
|
|
3248
|
+
u && u.setupContext && u.setupContext.emit("selectionChange", l, a, d, i);
|
|
3458
3249
|
}
|
|
3459
|
-
return e.expose(
|
|
3250
|
+
return e.expose(v.value), () => h("div", {
|
|
3460
3251
|
ref: t
|
|
3461
|
-
}, [
|
|
3252
|
+
}, [h("nav", {
|
|
3462
3253
|
class: "f-page-header-base"
|
|
3463
|
-
}, [
|
|
3254
|
+
}, [h("div", {
|
|
3464
3255
|
class: "f-title"
|
|
3465
|
-
}, [
|
|
3466
|
-
default: () => [
|
|
3256
|
+
}, [h(be, null, {
|
|
3257
|
+
default: () => [h("span", {
|
|
3467
3258
|
class: "f-title-icon f-text-orna-manage"
|
|
3468
|
-
}, [
|
|
3259
|
+
}, [h("i", {
|
|
3469
3260
|
class: n.icon
|
|
3470
3261
|
}, null)])]
|
|
3471
|
-
}),
|
|
3472
|
-
default: () => [
|
|
3262
|
+
}), h(be, null, {
|
|
3263
|
+
default: () => [h("h4", {
|
|
3473
3264
|
class: "f-title-text"
|
|
3474
3265
|
}, [n.title])]
|
|
3475
|
-
})]),
|
|
3476
|
-
class: "col-
|
|
3477
|
-
modelValue:
|
|
3478
|
-
"onUpdate:modelValue": (l) =>
|
|
3266
|
+
})]), h(xe, {
|
|
3267
|
+
class: "col-6 text-right",
|
|
3268
|
+
modelValue: D.value,
|
|
3269
|
+
"onUpdate:modelValue": (l) => D.value = l,
|
|
3479
3270
|
canAdd: !0,
|
|
3480
3271
|
childType: "response-toolbar-item",
|
|
3481
3272
|
childLabel: "按钮",
|
|
3482
3273
|
contentKey: "buttons",
|
|
3483
|
-
id:
|
|
3274
|
+
id: D.value.id,
|
|
3484
3275
|
componentId: n.componentId,
|
|
3485
3276
|
onSelectionChange: T
|
|
3486
3277
|
}, {
|
|
3487
|
-
default: () => [
|
|
3488
|
-
|
|
3278
|
+
default: () => [h(Ae, {
|
|
3279
|
+
customClass: "w-100",
|
|
3280
|
+
items: b.value,
|
|
3489
3281
|
componentId: n.componentId
|
|
3490
3282
|
}, null)]
|
|
3491
3283
|
})])]);
|
|
3492
3284
|
}
|
|
3493
|
-
}),
|
|
3285
|
+
}), cn = {
|
|
3494
3286
|
install(n) {
|
|
3495
3287
|
n.component(ne.name, ne);
|
|
3496
3288
|
},
|
|
3497
|
-
register(n, e, t,
|
|
3289
|
+
register(n, e, t, r) {
|
|
3498
3290
|
n["page-header"] = ne, e["page-header"] = fe;
|
|
3499
3291
|
},
|
|
3500
3292
|
registerDesigner(n, e, t) {
|
|
3501
|
-
n["page-header"] =
|
|
3293
|
+
n["page-header"] = en, e["page-header"] = fe;
|
|
3502
3294
|
}
|
|
3503
3295
|
};
|
|
3504
3296
|
export {
|
|
3505
3297
|
ne as PageHeader,
|
|
3506
|
-
|
|
3298
|
+
cn as default,
|
|
3507
3299
|
st as pageHeaderDesignerProps,
|
|
3508
3300
|
le as pageHeaderProps,
|
|
3509
3301
|
fe as propsResolver
|