@farris/ui-vue 1.2.6 → 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 +150 -142
- package/components/avatar/index.esm.js +393 -457
- 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 +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- 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 +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- 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 +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- 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 +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- 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 +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- 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 +453 -516
- 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 +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- 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 +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- 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 +27221 -26804
- 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/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.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/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- 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,38 +1,38 @@
|
|
|
1
|
-
import { ref as C, defineComponent as F, createVNode as r, inject as
|
|
1
|
+
import { ref as C, defineComponent as F, createVNode as r, inject as O, Fragment as Z, createTextVNode as D, computed as N, provide as j, onMounted as W } from "vue";
|
|
2
2
|
import { cloneDeep as M } from "lodash-es";
|
|
3
|
-
import { FSchemaSelector as x } from "
|
|
4
|
-
import { FModalService as K } from "
|
|
5
|
-
import "
|
|
3
|
+
import { FSchemaSelector as x } from "../schema-selector/index.esm.js";
|
|
4
|
+
import { FModalService as K } from "../modal/index.esm.js";
|
|
5
|
+
import "../combo-list/index.esm.js";
|
|
6
6
|
const J = {}, U = {};
|
|
7
7
|
function $(n) {
|
|
8
|
-
const { properties: e, title: s } = n, o = Object.keys(e).reduce((
|
|
8
|
+
const { properties: e, title: s } = n, o = Object.keys(e).reduce((i, m) => (i[m] = e[m].type === "object" && e[m].properties ? $(e[m]) : M(e[m].default), i), {});
|
|
9
9
|
return o.id = `${s}-${Date.now()}`, o;
|
|
10
10
|
}
|
|
11
11
|
function I(n, e = {}) {
|
|
12
12
|
const s = J[n];
|
|
13
13
|
if (s) {
|
|
14
14
|
let o = $(s);
|
|
15
|
-
const
|
|
16
|
-
return o =
|
|
15
|
+
const i = U[n];
|
|
16
|
+
return o = i ? i({ getSchemaByType: I }, o, e) : o, o;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
function ee(n, e) {
|
|
21
21
|
const s = $(e);
|
|
22
|
-
return Object.keys(n).reduce((o,
|
|
22
|
+
return Object.keys(n).reduce((o, i) => (o[i] && typeof o[i] == "object" ? Object.assign(o[i], n[i]) : o[i] = n[i], o), s), s;
|
|
23
23
|
}
|
|
24
24
|
function ne(n, e) {
|
|
25
|
-
return Object.keys(n).filter((o) => n[o] != null).reduce((o,
|
|
26
|
-
if (e.has(
|
|
27
|
-
const m = e.get(
|
|
25
|
+
return Object.keys(n).filter((o) => n[o] != null).reduce((o, i) => {
|
|
26
|
+
if (e.has(i)) {
|
|
27
|
+
const m = e.get(i);
|
|
28
28
|
if (typeof m == "string")
|
|
29
|
-
o[m] = n[
|
|
29
|
+
o[m] = n[i];
|
|
30
30
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(o,
|
|
31
|
+
const u = m(i, n[i], n);
|
|
32
|
+
Object.assign(o, u);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
o[
|
|
35
|
+
o[i] = n[i];
|
|
36
36
|
return o;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
@@ -41,7 +41,7 @@ function te(n, e, s = /* @__PURE__ */ new Map()) {
|
|
|
41
41
|
return ne(o, s);
|
|
42
42
|
}
|
|
43
43
|
function oe(n = {}) {
|
|
44
|
-
function e(a,
|
|
44
|
+
function e(a, d, t, l) {
|
|
45
45
|
if (typeof t == "number")
|
|
46
46
|
return l[a].length === t;
|
|
47
47
|
if (typeof t == "object") {
|
|
@@ -55,50 +55,50 @@ function oe(n = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function s(a,
|
|
58
|
+
function s(a, d, t, l) {
|
|
59
59
|
return l[a] && l[a].propertyValue && String(l[a].propertyValue.value) === String(t);
|
|
60
60
|
}
|
|
61
61
|
const o = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", s]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(n).reduce((a,
|
|
66
|
-
function
|
|
65
|
+
Object.keys(n).reduce((a, d) => (a.set(d, n[d]), a), o);
|
|
66
|
+
function i(a, d) {
|
|
67
67
|
const t = a;
|
|
68
|
-
return typeof
|
|
68
|
+
return typeof d == "number" ? [{ target: t, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: t, operator: "getProperty", param: a, value: !!d }] : typeof d == "object" ? Object.keys(d).map((l) => {
|
|
69
69
|
if (l === "length")
|
|
70
|
-
return { target: t, operator: "length", param: null, value:
|
|
71
|
-
const p = l, c =
|
|
70
|
+
return { target: t, operator: "length", param: null, value: d[l] };
|
|
71
|
+
const p = l, c = d[l];
|
|
72
72
|
return { target: t, operator: "getProperty", param: p, value: c };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
75
|
function m(a) {
|
|
76
76
|
return Object.keys(a).reduce((t, l) => {
|
|
77
|
-
const p =
|
|
77
|
+
const p = i(l, a[l]);
|
|
78
78
|
return t.push(...p), t;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function u(a, d) {
|
|
82
82
|
if (o.has(a.operator)) {
|
|
83
83
|
const t = o.get(a.operator);
|
|
84
|
-
return t && t(a.target, a.param, a.value,
|
|
84
|
+
return t && t(a.target, a.param, a.value, d) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function h(a,
|
|
89
|
-
return m(a).reduce((p, c) => p &&
|
|
88
|
+
function h(a, d) {
|
|
89
|
+
return m(a).reduce((p, c) => p && u(c, d), !0);
|
|
90
90
|
}
|
|
91
|
-
function f(a,
|
|
92
|
-
const t = Object.keys(a), l = t.includes("allOf"), p = t.includes("anyOf"), c = l || p, g = (c ? a[c ? l ? "allOf" : "anyOf" : "allOf"] : [a]).map((b) => h(b,
|
|
91
|
+
function f(a, d) {
|
|
92
|
+
const t = Object.keys(a), l = t.includes("allOf"), p = t.includes("anyOf"), c = l || p, g = (c ? a[c ? l ? "allOf" : "anyOf" : "allOf"] : [a]).map((b) => h(b, d));
|
|
93
93
|
return l ? !g.includes(!1) : g.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: f };
|
|
96
96
|
}
|
|
97
97
|
const se = {}, re = {};
|
|
98
98
|
oe();
|
|
99
|
-
function ae(n, e, s = /* @__PURE__ */ new Map(), o = (
|
|
100
|
-
return J[e.title] = e, U[e.title] = o, se[e.title] =
|
|
101
|
-
const h = te(
|
|
99
|
+
function ae(n, e, s = /* @__PURE__ */ new Map(), o = (u, h, f) => h, i = {}, m = (u) => u) {
|
|
100
|
+
return J[e.title] = e, U[e.title] = o, se[e.title] = i, re[e.title] = m, (u = {}) => {
|
|
101
|
+
const h = te(u, e, s), f = Object.keys(n).reduce((a, d) => (a[d] = n[d].default, a), {});
|
|
102
102
|
return Object.assign(f, h);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -184,11 +184,11 @@ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
184
184
|
type: pe,
|
|
185
185
|
properties: ve,
|
|
186
186
|
required: he
|
|
187
|
-
}, ge = "events-editor", be = "A Farris Component", Ce = "object",
|
|
187
|
+
}, ge = "events-editor", be = "A Farris Component", Ce = "object", Ee = {}, Se = {
|
|
188
188
|
title: ge,
|
|
189
189
|
description: be,
|
|
190
190
|
type: Ce,
|
|
191
|
-
categories:
|
|
191
|
+
categories: Ee
|
|
192
192
|
}, _ = [
|
|
193
193
|
{
|
|
194
194
|
label: "pageChange",
|
|
@@ -210,7 +210,7 @@ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
210
210
|
label: "onDeleteClicked",
|
|
211
211
|
name: "Mock操作列点击删除"
|
|
212
212
|
}
|
|
213
|
-
],
|
|
213
|
+
], ye = {
|
|
214
214
|
propertyID: "data-grid-component-viewmodel",
|
|
215
215
|
propertyType: "events",
|
|
216
216
|
/** 内置构件显示的命令列表 */
|
|
@@ -294,16 +294,16 @@ const ue = "https://json-schema.org/draft/2020-12/schema", de = "https://farris-
|
|
|
294
294
|
isAddControllerMethod: !1,
|
|
295
295
|
getEventList: () => ({ events: _, boundEventsList: [] })
|
|
296
296
|
}, z = {
|
|
297
|
-
initialData: { type: Object, default:
|
|
297
|
+
initialData: { type: Object, default: ye }
|
|
298
298
|
}, q = ae(
|
|
299
299
|
z,
|
|
300
300
|
we,
|
|
301
301
|
ce,
|
|
302
302
|
ie,
|
|
303
|
-
|
|
303
|
+
Se
|
|
304
304
|
);
|
|
305
305
|
function Y(n, e) {
|
|
306
|
-
const s = C([]), { boundEvents: o, unBoundEvent:
|
|
306
|
+
const s = C([]), { boundEvents: o, unBoundEvent: i } = e;
|
|
307
307
|
function m(t) {
|
|
308
308
|
return {
|
|
309
309
|
/** 当前事件名称及label */
|
|
@@ -329,7 +329,7 @@ function Y(n, e) {
|
|
|
329
329
|
controller: M(t.controller)
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function u() {
|
|
333
333
|
var t;
|
|
334
334
|
s.value = (t = o.value) == null ? void 0 : t.map((l) => m(l));
|
|
335
335
|
}
|
|
@@ -354,48 +354,48 @@ function Y(n, e) {
|
|
|
354
354
|
l.showSection[2][3] = !l.showSection[2][3];
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function d(t) {
|
|
358
358
|
if (t >= 0 && t <= s.value.length - 1) {
|
|
359
359
|
const l = s.value[t];
|
|
360
|
-
|
|
360
|
+
i(l.event), s.value.splice(t, 1);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
364
364
|
addNewInteraction: h,
|
|
365
365
|
collapseInteractions: f,
|
|
366
|
-
deleteInteracton:
|
|
366
|
+
deleteInteracton: d,
|
|
367
367
|
toggleMethodInInteraction: a,
|
|
368
368
|
interactions: s,
|
|
369
|
-
loadInteractions:
|
|
369
|
+
loadInteractions: u
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
function G(n) {
|
|
373
373
|
const e = C([]), s = C([]), o = C([]);
|
|
374
|
-
function
|
|
375
|
-
const
|
|
374
|
+
function i() {
|
|
375
|
+
const d = s.value.reduce(
|
|
376
376
|
(l, p) => (l.set(p.boundEvents.label, !0), l),
|
|
377
377
|
/* @__PURE__ */ new Map()
|
|
378
378
|
);
|
|
379
|
-
return e.value.filter((l) => !
|
|
379
|
+
return e.value.filter((l) => !d.has(l.label));
|
|
380
380
|
}
|
|
381
381
|
function m() {
|
|
382
382
|
var t;
|
|
383
|
-
const
|
|
384
|
-
o.value =
|
|
383
|
+
const d = ((t = s.value) == null ? void 0 : t.length) > 0;
|
|
384
|
+
o.value = d ? i() : e.value;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function u() {
|
|
387
387
|
e.value = n.value.events, s.value = n.value.boundEventsList, m();
|
|
388
388
|
}
|
|
389
|
-
function h(
|
|
390
|
-
o.value = o.value.filter((t) => t.label !==
|
|
389
|
+
function h(d) {
|
|
390
|
+
o.value = o.value.filter((t) => t.label !== d.label);
|
|
391
391
|
}
|
|
392
|
-
function f(
|
|
393
|
-
s.value = s.value.filter((t) => t.boundEvents.label !==
|
|
392
|
+
function f(d) {
|
|
393
|
+
s.value = s.value.filter((t) => t.boundEvents.label !== d.label), m();
|
|
394
394
|
}
|
|
395
395
|
function a() {
|
|
396
396
|
var l;
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const d = (l = n.value) == null ? void 0 : l.getEventList(), { events: t } = d;
|
|
398
|
+
d && (n.value.events = M(t), n.value.boundEventsList = d.boundEventsList), n.value.boundEventsList && (n.value.boundEventsList = n.value.boundEventsList.filter(function(p) {
|
|
399
399
|
return t.find((c) => c.label == p.boundEvents.label);
|
|
400
400
|
}));
|
|
401
401
|
}
|
|
@@ -404,7 +404,7 @@ function G(n) {
|
|
|
404
404
|
boundEvents: s,
|
|
405
405
|
candidateEvents: o,
|
|
406
406
|
excludeFromCandidates: h,
|
|
407
|
-
loadEvents:
|
|
407
|
+
loadEvents: u,
|
|
408
408
|
resetBoundEvents: a,
|
|
409
409
|
unBoundEvent: f
|
|
410
410
|
};
|
|
@@ -420,7 +420,7 @@ const Me = {}, Be = {
|
|
|
420
420
|
function o(m) {
|
|
421
421
|
e.emit("click", m);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function i(m) {
|
|
424
424
|
return r("div", {
|
|
425
425
|
class: "f-page-events-editor-first-bound-event"
|
|
426
426
|
}, [r("div", {
|
|
@@ -430,32 +430,32 @@ const Me = {}, Be = {
|
|
|
430
430
|
}
|
|
431
431
|
return () => r("div", {
|
|
432
432
|
class: "f-page-events-editor-events"
|
|
433
|
-
}, [s.value.map((m) =>
|
|
433
|
+
}, [s.value.map((m) => i(m))]);
|
|
434
434
|
}
|
|
435
435
|
}), H = /* @__PURE__ */ F({
|
|
436
436
|
name: "FInteractionButton",
|
|
437
437
|
props: Me,
|
|
438
438
|
emits: ["click"],
|
|
439
439
|
setup(n, e) {
|
|
440
|
-
const s =
|
|
441
|
-
candidateEvents:
|
|
440
|
+
const s = O("useEventsComposition"), o = O("useInteractionCompostion"), {
|
|
441
|
+
candidateEvents: i
|
|
442
442
|
} = s, {
|
|
443
443
|
collapseInteractions: m
|
|
444
|
-
} = o,
|
|
444
|
+
} = o, u = C(!1);
|
|
445
445
|
function h(p) {
|
|
446
|
-
|
|
446
|
+
i.value = i.value.filter((c) => c.label !== p.label);
|
|
447
447
|
}
|
|
448
448
|
function f() {
|
|
449
|
-
|
|
449
|
+
u.value = !1;
|
|
450
450
|
}
|
|
451
451
|
function a() {
|
|
452
|
-
|
|
452
|
+
u.value = !0;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function d(p) {
|
|
455
455
|
f(), h(p), e.emit("click", p);
|
|
456
456
|
}
|
|
457
457
|
function t() {
|
|
458
|
-
|
|
458
|
+
u.value ? f() : a();
|
|
459
459
|
}
|
|
460
460
|
function l() {
|
|
461
461
|
m(), t();
|
|
@@ -467,9 +467,9 @@ const Me = {}, Be = {
|
|
|
467
467
|
onClick: l
|
|
468
468
|
}, [r("span", {
|
|
469
469
|
class: "f-page-events-editor-text"
|
|
470
|
-
}, [D("新建交互事件")])])]),
|
|
471
|
-
events:
|
|
472
|
-
onClick:
|
|
470
|
+
}, [D("新建交互事件")])])]), u.value && r(Le, {
|
|
471
|
+
events: i.value,
|
|
472
|
+
onClick: d
|
|
473
473
|
}, null)]);
|
|
474
474
|
}
|
|
475
475
|
}), ke = {
|
|
@@ -503,7 +503,7 @@ const Me = {}, Be = {
|
|
|
503
503
|
function o(f) {
|
|
504
504
|
return f.controllerList.length !== 0;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function i(f) {
|
|
507
507
|
return o(f) && r("div", {
|
|
508
508
|
class: "f-page-internals-controller"
|
|
509
509
|
}, [r("div", {
|
|
@@ -517,7 +517,7 @@ const Me = {}, Be = {
|
|
|
517
517
|
controller: a
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function u(f) {
|
|
521
521
|
return f.controllerList.map((a) => r("div", {
|
|
522
522
|
class: "f-page-internals-command",
|
|
523
523
|
onClick: () => m(a, f)
|
|
@@ -527,7 +527,7 @@ const Me = {}, Be = {
|
|
|
527
527
|
}, [a.name])]));
|
|
528
528
|
}
|
|
529
529
|
function h(f) {
|
|
530
|
-
return r("div", null, [
|
|
530
|
+
return r("div", null, [i(f), u(f)]);
|
|
531
531
|
}
|
|
532
532
|
return () => r("div", {
|
|
533
533
|
class: "f-page-internals"
|
|
@@ -538,15 +538,15 @@ const Me = {}, Be = {
|
|
|
538
538
|
props: Ne,
|
|
539
539
|
emits: ["addInternalCommandListChanged", "newImportChanged", "currentCommandChanged", "originalDataChanged", "click", "existChanged", "newFucChanged", "close", "selectMethod"],
|
|
540
540
|
setup(n, e) {
|
|
541
|
-
const s =
|
|
541
|
+
const s = O("useMethodsComposition"), {
|
|
542
542
|
controllers: o
|
|
543
|
-
} = s,
|
|
543
|
+
} = s, i = C(!1), m = C(n.canAddNewMethod), u = N(() => !m.value), h = N(() => i.value), f = N(() => ({
|
|
544
544
|
"font-size": "15px",
|
|
545
545
|
margin: "5px",
|
|
546
546
|
color: "#226eff",
|
|
547
547
|
flex: 1
|
|
548
548
|
})), a = Symbol("controller schema repository inject token");
|
|
549
|
-
function
|
|
549
|
+
function d() {
|
|
550
550
|
return r(x, {
|
|
551
551
|
injectSymbolToken: a,
|
|
552
552
|
"view-type": "NavList"
|
|
@@ -556,7 +556,7 @@ const Me = {}, Be = {
|
|
|
556
556
|
K.show({
|
|
557
557
|
title: "选择控制器",
|
|
558
558
|
width: 950,
|
|
559
|
-
render:
|
|
559
|
+
render: d
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
function l() {
|
|
@@ -565,10 +565,10 @@ const Me = {}, Be = {
|
|
|
565
565
|
}
|
|
566
566
|
function c() {
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function S() {
|
|
569
569
|
e.emit("close", null);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function y() {
|
|
572
572
|
return r("div", {
|
|
573
573
|
class: "f-command-breakline"
|
|
574
574
|
}, [D("------------------------------------------------------------")]);
|
|
@@ -584,7 +584,7 @@ const Me = {}, Be = {
|
|
|
584
584
|
}, null), r("div", {
|
|
585
585
|
class: "f-function-class",
|
|
586
586
|
onClick: () => t()
|
|
587
|
-
}, [D("引入控制器")])]),
|
|
587
|
+
}, [D("引入控制器")])]), u.value && r("div", {
|
|
588
588
|
class: "f-page-internals-new-command-func2"
|
|
589
589
|
}, [r("div", {
|
|
590
590
|
class: "f-icon f-icon-new-edit",
|
|
@@ -602,8 +602,8 @@ const Me = {}, Be = {
|
|
|
602
602
|
onClick: () => void 0
|
|
603
603
|
}, [D("已有方法")])])]);
|
|
604
604
|
}
|
|
605
|
-
function v(
|
|
606
|
-
e.emit("selectMethod",
|
|
605
|
+
function v(E) {
|
|
606
|
+
e.emit("selectMethod", E);
|
|
607
607
|
}
|
|
608
608
|
function b() {
|
|
609
609
|
return r("div", {
|
|
@@ -615,9 +615,9 @@ const Me = {}, Be = {
|
|
|
615
615
|
}
|
|
616
616
|
return () => r("div", {
|
|
617
617
|
class: "f-page-events-editor-command-source"
|
|
618
|
-
}, [b(),
|
|
618
|
+
}, [b(), y(), g(), y(), r("div", null, [r("div", {
|
|
619
619
|
class: "f-page-internals-close",
|
|
620
|
-
onClick:
|
|
620
|
+
onClick: S
|
|
621
621
|
}, [D("取消")])])]);
|
|
622
622
|
}
|
|
623
623
|
}), Te = {
|
|
@@ -627,10 +627,10 @@ const Me = {}, Be = {
|
|
|
627
627
|
props: Te,
|
|
628
628
|
emits: [],
|
|
629
629
|
setup(n, e) {
|
|
630
|
-
const s = C(n.command), o = C(0),
|
|
630
|
+
const s = C(n.command), o = C(0), i = C(!1), m = C(!1);
|
|
631
631
|
C(""), C([]);
|
|
632
|
-
const
|
|
633
|
-
function
|
|
632
|
+
const u = N(() => s.value !== null), h = N(() => i.value), f = N(() => m.value), a = N(() => !i.value && !m.value);
|
|
633
|
+
function d() {
|
|
634
634
|
}
|
|
635
635
|
function t() {
|
|
636
636
|
return r("div", null, [r("div", {
|
|
@@ -652,14 +652,14 @@ const Me = {}, Be = {
|
|
|
652
652
|
}
|
|
653
653
|
function c(g) {
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function S() {
|
|
656
656
|
return r("div", null, [r("div", {
|
|
657
657
|
class: "f-icon f-icon-edit-button",
|
|
658
658
|
style: "font-size: 13px;margin-right:10px;",
|
|
659
659
|
onClick: () => (o.value, void 0)
|
|
660
660
|
}, null)]);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function y() {
|
|
663
663
|
return r("div", null, [r("div", {
|
|
664
664
|
class: "f-page-parameter-editor-first-row"
|
|
665
665
|
}, [r("span", {
|
|
@@ -667,27 +667,27 @@ const Me = {}, Be = {
|
|
|
667
667
|
title: s.value.label
|
|
668
668
|
}, [s.value.name]), r("div", {
|
|
669
669
|
class: "f-page-parameter-editor-first-row-icon"
|
|
670
|
-
}, [h.value && t(), f.value && p(), a.value &&
|
|
670
|
+
}, [h.value && t(), f.value && p(), a.value && S()])])]);
|
|
671
671
|
}
|
|
672
672
|
return () => r("div", {
|
|
673
673
|
class: "f-page-parameter-editor"
|
|
674
|
-
}, [
|
|
674
|
+
}, [u.value && y()]);
|
|
675
675
|
}
|
|
676
676
|
}), Q = /* @__PURE__ */ F({
|
|
677
677
|
name: "FInteractionItem",
|
|
678
678
|
props: ke,
|
|
679
679
|
emits: ["addAction", "delete", "toggle"],
|
|
680
680
|
setup(n, e) {
|
|
681
|
-
const s =
|
|
681
|
+
const s = O("useMethodsComposition"), {
|
|
682
682
|
toggleSelectingMethod: o,
|
|
683
|
-
emitFinalState:
|
|
684
|
-
} = s, m = C(n.controllers),
|
|
685
|
-
const v =
|
|
683
|
+
emitFinalState: i
|
|
684
|
+
} = s, m = C(n.controllers), u = C(n.interaction), h = C(n.displayOrder), f = N(() => {
|
|
685
|
+
const v = u.value.showSwitch[0];
|
|
686
686
|
return v.showSection[v.showSwitchNumber][2];
|
|
687
687
|
}), a = N(() => {
|
|
688
|
-
const v = !!
|
|
689
|
-
return v &&
|
|
690
|
-
}),
|
|
688
|
+
const v = !!u.value.command, b = u.value.showSwitch[0], E = b.showSection[b.showSwitchNumber][3];
|
|
689
|
+
return v && E;
|
|
690
|
+
}), d = N(() => ({
|
|
691
691
|
"f-icon": !0,
|
|
692
692
|
"f-icon-arrow-chevron-down": a.value,
|
|
693
693
|
"f-icon-arrow-chevron-left": !a.value
|
|
@@ -696,24 +696,24 @@ const Me = {}, Be = {
|
|
|
696
696
|
e.emit("delete", h.value);
|
|
697
697
|
}
|
|
698
698
|
function l() {
|
|
699
|
-
const v =
|
|
699
|
+
const v = u.value.showSwitch[0];
|
|
700
700
|
v.showSection[v.showSwitchNumber][3] = !v.showSection[v.showSwitchNumber][3], e.emit("toggle", h.value);
|
|
701
701
|
}
|
|
702
702
|
function p() {
|
|
703
|
-
if (
|
|
704
|
-
const b =
|
|
703
|
+
if (u.value.command !== null) {
|
|
704
|
+
const b = u.value.showSwitch[0];
|
|
705
705
|
o(b), e.emit("addAction", h.value);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
function c(v) {
|
|
709
|
-
v === null &&
|
|
710
|
-
const b =
|
|
709
|
+
v === null && u.value.command === null && e.emit("delete", h.value);
|
|
710
|
+
const b = u.value.showSwitch[0];
|
|
711
711
|
o(b);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function S(v) {
|
|
714
714
|
const {
|
|
715
715
|
method: b,
|
|
716
|
-
controller:
|
|
716
|
+
controller: E
|
|
717
717
|
} = v, {
|
|
718
718
|
id: k,
|
|
719
719
|
label: w,
|
|
@@ -721,32 +721,32 @@ const Me = {}, Be = {
|
|
|
721
721
|
handlerName: L
|
|
722
722
|
} = b, {
|
|
723
723
|
controllerName: A
|
|
724
|
-
} =
|
|
725
|
-
|
|
724
|
+
} = E, R = !1, P = A.id;
|
|
725
|
+
u.value.command = {
|
|
726
726
|
id: k,
|
|
727
727
|
label: w,
|
|
728
728
|
name: B,
|
|
729
729
|
handlerName: L,
|
|
730
730
|
hasPath: R,
|
|
731
731
|
cmpId: P
|
|
732
|
-
},
|
|
732
|
+
}, u.value.controller = {
|
|
733
733
|
id: A.id,
|
|
734
734
|
label: A.label,
|
|
735
735
|
name: A.name
|
|
736
736
|
};
|
|
737
|
-
const T =
|
|
738
|
-
T.showSwitchNumber = 2, T.showSection[T.showSwitchNumber][2] = !1, T.showSection[T.showSwitchNumber][3] = !0,
|
|
737
|
+
const T = u.value.showSwitch[0];
|
|
738
|
+
T.showSwitchNumber = 2, T.showSection[T.showSwitchNumber][2] = !1, T.showSection[T.showSwitchNumber][3] = !0, i();
|
|
739
739
|
}
|
|
740
|
-
function
|
|
740
|
+
function y() {
|
|
741
741
|
return r(Pe, {
|
|
742
742
|
controllers: m.value,
|
|
743
743
|
onClose: c,
|
|
744
|
-
onSelectMethod:
|
|
744
|
+
onSelectMethod: S
|
|
745
745
|
}, null);
|
|
746
746
|
}
|
|
747
747
|
function g() {
|
|
748
748
|
return r(De, {
|
|
749
|
-
command:
|
|
749
|
+
command: u.value.command
|
|
750
750
|
}, null);
|
|
751
751
|
}
|
|
752
752
|
return () => r("div", {
|
|
@@ -755,11 +755,11 @@ const Me = {}, Be = {
|
|
|
755
755
|
class: "f-page-events-editor-bound-event"
|
|
756
756
|
}, [r("div", {
|
|
757
757
|
class: "f-page-events-editor-bound-event-name",
|
|
758
|
-
title:
|
|
759
|
-
}, [
|
|
758
|
+
title: u.value.event.label
|
|
759
|
+
}, [u.value.event.name]), r("div", {
|
|
760
760
|
style: "float:right;margin:5px;"
|
|
761
761
|
}, [r("div", {
|
|
762
|
-
class:
|
|
762
|
+
class: d.value,
|
|
763
763
|
style: "font-size: 10px;",
|
|
764
764
|
onClick: l
|
|
765
765
|
}, null)]), r("div", {
|
|
@@ -770,11 +770,11 @@ const Me = {}, Be = {
|
|
|
770
770
|
class: "f-icon f-icon-home-add",
|
|
771
771
|
style: "float:right; font-size: 10px; margin:8px;",
|
|
772
772
|
onClick: p
|
|
773
|
-
}, null)]), f.value &&
|
|
773
|
+
}, null)]), f.value && y(), a.value && g()]);
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
function X(n, e, s) {
|
|
777
|
-
const { interactions: o } = e,
|
|
777
|
+
const { interactions: o } = e, i = C(n.value.internalCommandList);
|
|
778
778
|
function m(c) {
|
|
779
779
|
o.value[c].showSwitch = [], o.value[c].showSwitch.push(M({
|
|
780
780
|
// 存储所有的展示设定
|
|
@@ -783,26 +783,26 @@ function X(n, e, s) {
|
|
|
783
783
|
showSwitchNumber: 2
|
|
784
784
|
})), o.value = M(o.value);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function u(c, S, y) {
|
|
787
787
|
}
|
|
788
788
|
function h(c) {
|
|
789
|
-
var
|
|
790
|
-
const
|
|
791
|
-
return (
|
|
789
|
+
var y;
|
|
790
|
+
const S = [];
|
|
791
|
+
return (y = n.value.newController) == null || y.forEach((g) => {
|
|
792
792
|
c.forEach((v) => {
|
|
793
|
-
g.Code === v.controller.label &&
|
|
793
|
+
g.Code === v.controller.label && S.push(M(g));
|
|
794
794
|
});
|
|
795
|
-
}),
|
|
795
|
+
}), S;
|
|
796
796
|
}
|
|
797
797
|
function f() {
|
|
798
798
|
var v;
|
|
799
799
|
n.value.isAddControllerMethod = !!n.value.newFuncEvents;
|
|
800
|
-
const c = [],
|
|
800
|
+
const c = [], S = M(n.value.internalCommandList);
|
|
801
801
|
o.value.map((b) => {
|
|
802
|
-
const
|
|
802
|
+
const E = M(b.controller), k = M(b.command), w = M(b.event), B = { controller: E, command: k, boundEvents: w };
|
|
803
803
|
c.push(M(B));
|
|
804
804
|
});
|
|
805
|
-
const
|
|
805
|
+
const y = (v = n.value.newController) != null && v.length && c.length ? M(h(c)) : [], g = {
|
|
806
806
|
/** 拼接名称时的前缀 */
|
|
807
807
|
viewModelId: n.value.viewModelId,
|
|
808
808
|
/** 视图模型绑定的事件下的方法列表 */
|
|
@@ -812,7 +812,7 @@ function X(n, e, s) {
|
|
|
812
812
|
/** 可选择的绑定事件列表 */
|
|
813
813
|
events: M(n.value.events),
|
|
814
814
|
/** 内置构件列表; */
|
|
815
|
-
internalCommandList: M(
|
|
815
|
+
internalCommandList: M(S),
|
|
816
816
|
/** 所有可选的组件 */
|
|
817
817
|
componentLists: [],
|
|
818
818
|
/** 接收formBasicService.formMetaBasicInfo.relativePath */
|
|
@@ -820,7 +820,7 @@ function X(n, e, s) {
|
|
|
820
820
|
/** 接收formBasicService.envType */
|
|
821
821
|
envType: n.value.envType,
|
|
822
822
|
/** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
|
|
823
|
-
newController: M(
|
|
823
|
+
newController: M(y),
|
|
824
824
|
/** 切换到代码视图标识 */
|
|
825
825
|
isAddControllerMethod: n.value.isAddControllerMethod,
|
|
826
826
|
/** 用户选择「已有方法」 */
|
|
@@ -835,7 +835,7 @@ function X(n, e, s) {
|
|
|
835
835
|
function a(c) {
|
|
836
836
|
c.showSection[c.showSwitchNumber][2] = !0;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function d(c) {
|
|
839
839
|
c.showSection[c.showSwitchNumber][2] = !1;
|
|
840
840
|
}
|
|
841
841
|
function t(c) {
|
|
@@ -845,13 +845,13 @@ function X(n, e, s) {
|
|
|
845
845
|
c.showSection[c.showSwitchNumber][3] = !1;
|
|
846
846
|
}
|
|
847
847
|
function p(c) {
|
|
848
|
-
c.showSection[c.showSwitchNumber][2] ? (
|
|
848
|
+
c.showSection[c.showSwitchNumber][2] ? (d(c), t(c)) : (a(c), l(c));
|
|
849
849
|
}
|
|
850
850
|
return {
|
|
851
|
-
controllers:
|
|
851
|
+
controllers: i,
|
|
852
852
|
onClosed: m,
|
|
853
853
|
emitFinalState: f,
|
|
854
|
-
onCurrentCommandChanged:
|
|
854
|
+
onCurrentCommandChanged: u,
|
|
855
855
|
toggleSelectingMethod: p
|
|
856
856
|
};
|
|
857
857
|
}
|
|
@@ -861,41 +861,41 @@ const V = /* @__PURE__ */ F({
|
|
|
861
861
|
emits: ["savedCommandListChanged"],
|
|
862
862
|
setup(n, e) {
|
|
863
863
|
const s = C(n.initialData), o = G(s), {
|
|
864
|
-
loadEvents:
|
|
864
|
+
loadEvents: i,
|
|
865
865
|
resetBoundEvents: m
|
|
866
|
-
} = o,
|
|
866
|
+
} = o, u = Y(s, o), {
|
|
867
867
|
addNewInteraction: h,
|
|
868
868
|
deleteInteracton: f,
|
|
869
869
|
interactions: a,
|
|
870
|
-
loadInteractions:
|
|
871
|
-
} =
|
|
872
|
-
|
|
870
|
+
loadInteractions: d
|
|
871
|
+
} = u, t = X(s, u, e);
|
|
872
|
+
j("useEventsComposition", o), j("useInteractionCompostion", u), j("useMethodsComposition", t);
|
|
873
873
|
function l() {
|
|
874
874
|
s.value.isAddControllerMethod = !1;
|
|
875
875
|
}
|
|
876
876
|
W(() => {
|
|
877
|
-
l(), m(),
|
|
877
|
+
l(), m(), i(), d();
|
|
878
878
|
});
|
|
879
879
|
function p(g) {
|
|
880
880
|
f(g);
|
|
881
881
|
}
|
|
882
882
|
function c(g, v) {
|
|
883
|
-
const b = g.showSwitch[0],
|
|
883
|
+
const b = g.showSwitch[0], E = b.showSection[b.showSwitchNumber][3];
|
|
884
884
|
return r(Q, {
|
|
885
885
|
interaction: g,
|
|
886
886
|
displayOrder: v,
|
|
887
|
-
collapsed:
|
|
887
|
+
collapsed: E,
|
|
888
888
|
onDelete: p
|
|
889
889
|
}, null);
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function S() {
|
|
892
892
|
var g;
|
|
893
893
|
return (g = a.value) == null ? void 0 : g.map((v, b) => r("div", {
|
|
894
894
|
class: "events-display-order",
|
|
895
895
|
key: v.event.label
|
|
896
896
|
}, [c(v, b)]));
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function y(g) {
|
|
899
899
|
h(g);
|
|
900
900
|
}
|
|
901
901
|
return () => r("div", {
|
|
@@ -903,15 +903,15 @@ const V = /* @__PURE__ */ F({
|
|
|
903
903
|
}, [r("div", {
|
|
904
904
|
class: "f-page-events-editor-content"
|
|
905
905
|
}, [r(H, {
|
|
906
|
-
onClick:
|
|
907
|
-
}, null),
|
|
906
|
+
onClick: y
|
|
907
|
+
}, null), S()])]);
|
|
908
908
|
}
|
|
909
909
|
});
|
|
910
|
-
function
|
|
910
|
+
function je(n, e, s) {
|
|
911
911
|
var k;
|
|
912
912
|
function o() {
|
|
913
913
|
}
|
|
914
|
-
const
|
|
914
|
+
const i = "", m = "", u = C();
|
|
915
915
|
function h() {
|
|
916
916
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
917
917
|
}
|
|
@@ -921,7 +921,7 @@ function Oe(n, e, s) {
|
|
|
921
921
|
function a() {
|
|
922
922
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function d() {
|
|
925
925
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
926
926
|
}
|
|
927
927
|
function t(w) {
|
|
@@ -942,9 +942,9 @@ function Oe(n, e, s) {
|
|
|
942
942
|
function c() {
|
|
943
943
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function S() {
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function y(w, B) {
|
|
948
948
|
}
|
|
949
949
|
function g(w) {
|
|
950
950
|
const { componentType: B } = w;
|
|
@@ -954,84 +954,84 @@ function Oe(n, e, s) {
|
|
|
954
954
|
}
|
|
955
955
|
function v(w, B) {
|
|
956
956
|
const L = String(w.getAttribute("data-controltype")), A = w.getAttribute("data-feature"), R = A ? JSON.parse(A) : {};
|
|
957
|
-
R.parentComponentInstance =
|
|
957
|
+
R.parentComponentInstance = u.value;
|
|
958
958
|
let P = I(L, R);
|
|
959
959
|
const T = L.toLowerCase().replace("-", "_");
|
|
960
960
|
return P && !P.id && P.type === L && (P.id = `${T}_${Math.random().toString().slice(2, 6)}`), P;
|
|
961
961
|
}
|
|
962
962
|
function b(w) {
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function E(...w) {
|
|
965
965
|
}
|
|
966
|
-
return
|
|
966
|
+
return u.value = {
|
|
967
967
|
canMove: h(),
|
|
968
968
|
canSelectParent: f(),
|
|
969
969
|
canDelete: a(),
|
|
970
|
-
canNested: !
|
|
970
|
+
canNested: !d(),
|
|
971
971
|
contents: e == null ? void 0 : e.schema.contents,
|
|
972
972
|
elementRef: n,
|
|
973
973
|
parent: (k = e == null ? void 0 : e.parent) == null ? void 0 : k.componentInstance,
|
|
974
974
|
schema: e == null ? void 0 : e.schema,
|
|
975
|
-
styles:
|
|
975
|
+
styles: i,
|
|
976
976
|
designerClass: m,
|
|
977
977
|
canAccepts: p,
|
|
978
978
|
getBelongedComponentInstance: t,
|
|
979
979
|
getDraggableDesignItemElement: l,
|
|
980
980
|
getDraggingDisplayText: c,
|
|
981
|
-
getPropConfig:
|
|
982
|
-
getDragScopeElement:
|
|
983
|
-
onAcceptMovedChildElement:
|
|
981
|
+
getPropConfig: E,
|
|
982
|
+
getDragScopeElement: S,
|
|
983
|
+
onAcceptMovedChildElement: y,
|
|
984
984
|
onAcceptNewChildElement: v,
|
|
985
985
|
onChildElementMovedOut: b,
|
|
986
986
|
addNewChildComponentSchema: g,
|
|
987
987
|
updateDragAndDropRules: o,
|
|
988
988
|
triggerBelongedComponentToMoveWhenMoved: C(!1),
|
|
989
989
|
triggerBelongedComponentToDeleteWhenDeleted: C(!1)
|
|
990
|
-
},
|
|
990
|
+
}, u;
|
|
991
991
|
}
|
|
992
|
-
const
|
|
992
|
+
const Oe = /* @__PURE__ */ F({
|
|
993
993
|
name: "FEventsEditorDesign",
|
|
994
994
|
props: z,
|
|
995
995
|
emits: ["savedCommandListChanged"],
|
|
996
996
|
setup(n, e) {
|
|
997
997
|
const s = C(n.initialData), o = G(s), {
|
|
998
|
-
loadEvents:
|
|
998
|
+
loadEvents: i,
|
|
999
999
|
resetBoundEvents: m
|
|
1000
|
-
} = o,
|
|
1000
|
+
} = o, u = Y(s, o), {
|
|
1001
1001
|
addNewInteraction: h,
|
|
1002
1002
|
deleteInteracton: f,
|
|
1003
1003
|
interactions: a,
|
|
1004
|
-
loadInteractions:
|
|
1005
|
-
} =
|
|
1006
|
-
|
|
1007
|
-
const l = C(), p =
|
|
1004
|
+
loadInteractions: d
|
|
1005
|
+
} = u, t = X(s, u, e);
|
|
1006
|
+
j("useEventsComposition", o), j("useInteractionCompostion", u), j("useMethodsComposition", t);
|
|
1007
|
+
const l = C(), p = O("design-item-context"), c = je(l, p);
|
|
1008
1008
|
W(() => {
|
|
1009
|
-
l.value.componentInstance = c,
|
|
1009
|
+
l.value.componentInstance = c, S(), m(), i(), d();
|
|
1010
1010
|
}), e.expose(c.value);
|
|
1011
|
-
function
|
|
1011
|
+
function S() {
|
|
1012
1012
|
s.value.isAddControllerMethod = !1;
|
|
1013
1013
|
}
|
|
1014
|
-
function E
|
|
1015
|
-
f(
|
|
1014
|
+
function y(E) {
|
|
1015
|
+
f(E);
|
|
1016
1016
|
}
|
|
1017
|
-
function g(
|
|
1018
|
-
const w =
|
|
1017
|
+
function g(E, k) {
|
|
1018
|
+
const w = E.showSwitch[0], B = w.showSection[w.showSwitchNumber][3];
|
|
1019
1019
|
return r(Q, {
|
|
1020
|
-
interaction:
|
|
1020
|
+
interaction: E,
|
|
1021
1021
|
displayOrder: k,
|
|
1022
1022
|
collapsed: B,
|
|
1023
|
-
onDelete:
|
|
1023
|
+
onDelete: y
|
|
1024
1024
|
}, null);
|
|
1025
1025
|
}
|
|
1026
1026
|
function v() {
|
|
1027
|
-
var
|
|
1028
|
-
return (
|
|
1027
|
+
var E;
|
|
1028
|
+
return (E = a.value) == null ? void 0 : E.map((k, w) => r("div", {
|
|
1029
1029
|
class: "events-display-order",
|
|
1030
1030
|
key: k.event.label
|
|
1031
1031
|
}, [g(k, w)]));
|
|
1032
1032
|
}
|
|
1033
|
-
function b(
|
|
1034
|
-
h(
|
|
1033
|
+
function b(E) {
|
|
1034
|
+
h(E);
|
|
1035
1035
|
}
|
|
1036
1036
|
return () => r("div", {
|
|
1037
1037
|
ref: l,
|
|
@@ -1050,7 +1050,7 @@ const je = /* @__PURE__ */ F({
|
|
|
1050
1050
|
n["events-editor"] = V, e["events-editor"] = q;
|
|
1051
1051
|
},
|
|
1052
1052
|
registerDesigner(n, e, s) {
|
|
1053
|
-
n["events-editor"] =
|
|
1053
|
+
n["events-editor"] = Oe, e["events-editor"] = q;
|
|
1054
1054
|
}
|
|
1055
1055
|
};
|
|
1056
1056
|
export {
|