@farris/ui-vue 1.2.9 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { ref as b, defineComponent as D, createVNode as t, inject as R, Fragment as
|
|
2
|
-
import { cloneDeep as B } from "lodash-es";
|
|
3
|
-
import { FSchemaSelector as
|
|
4
|
-
import { FModalService as
|
|
1
|
+
import { ref as b, defineComponent as D, createVNode as t, inject as R, Fragment as ee, createTextVNode as T, computed as F, provide as O, onMounted as W } from "vue";
|
|
2
|
+
import { isPlainObject as q, cloneDeep as B } from "lodash-es";
|
|
3
|
+
import { FSchemaSelector as ne } from "../schema-selector/index.esm.js";
|
|
4
|
+
import { FModalService as te } from "../modal/index.esm.js";
|
|
5
5
|
import "../combo-list/index.esm.js";
|
|
6
|
-
const
|
|
6
|
+
const J = {}, U = {};
|
|
7
7
|
function z(n) {
|
|
8
|
-
const { properties: e, title: a, ignore: r } = n,
|
|
9
|
-
return (!
|
|
8
|
+
const { properties: e, title: a, ignore: r } = n, u = r && Array.isArray(r), f = Object.keys(e).reduce((l, h) => ((!u || !r.find((m) => m == h)) && (l[h] = e[h].type === "object" && e[h].properties ? z(e[h]) : B(e[h].default)), l), {});
|
|
9
|
+
return (!u || !r.find((l) => l == "id")) && (f.id = `${a}-${Date.now()}`), f;
|
|
10
10
|
}
|
|
11
11
|
function $(n, e = {}, a) {
|
|
12
|
-
const r =
|
|
12
|
+
const r = J[n];
|
|
13
13
|
if (r) {
|
|
14
|
-
let
|
|
15
|
-
const f =
|
|
16
|
-
return
|
|
14
|
+
let u = z(r);
|
|
15
|
+
const f = U[n];
|
|
16
|
+
return u = f ? f({ getSchemaByType: $ }, u, e, a) : u, u;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function oe(n, e) {
|
|
21
21
|
const a = z(e);
|
|
22
|
-
return Object.keys(n).reduce((r,
|
|
22
|
+
return Object.keys(n).reduce((r, u) => (r[u] && q(r[u]) && q(n[u]) ? Object.assign(r[u], n[u]) : r[u] = n[u], r), a), a;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return Object.keys(n).filter((r) => n[r] != null).reduce((r,
|
|
26
|
-
if (e.has(
|
|
27
|
-
const f = e.get(
|
|
24
|
+
function re(n, e) {
|
|
25
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, u) => {
|
|
26
|
+
if (e.has(u)) {
|
|
27
|
+
const f = e.get(u);
|
|
28
28
|
if (typeof f == "string")
|
|
29
|
-
r[f] = n[
|
|
29
|
+
r[f] = n[u];
|
|
30
30
|
else {
|
|
31
|
-
const l = f(
|
|
31
|
+
const l = f(u, n[u], n);
|
|
32
32
|
Object.assign(r, l);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
r[
|
|
35
|
+
r[u] = n[u];
|
|
36
36
|
return r;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const r =
|
|
41
|
-
return
|
|
39
|
+
function ae(n, e, a = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const r = oe(n, e);
|
|
41
|
+
return re(r, a);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function se(n = {}) {
|
|
44
44
|
function e(s, i, o, c) {
|
|
45
45
|
if (typeof o == "number")
|
|
46
46
|
return c[s].length === o;
|
|
47
47
|
if (typeof o == "object") {
|
|
48
|
-
const p = Object.keys(o)[0],
|
|
48
|
+
const p = Object.keys(o)[0], d = o[p];
|
|
49
49
|
if (p === "not")
|
|
50
|
-
return Number(c[s].length) !== Number(
|
|
50
|
+
return Number(c[s].length) !== Number(d);
|
|
51
51
|
if (p === "moreThan")
|
|
52
|
-
return Number(c[s].length) >= Number(
|
|
52
|
+
return Number(c[s].length) >= Number(d);
|
|
53
53
|
if (p === "lessThan")
|
|
54
|
-
return Number(c[s].length) <= Number(
|
|
54
|
+
return Number(c[s].length) <= Number(d);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
@@ -63,18 +63,18 @@ function ae(n = {}) {
|
|
|
63
63
|
["getProperty", a]
|
|
64
64
|
]);
|
|
65
65
|
Object.keys(n).reduce((s, i) => (s.set(i, n[i]), s), r);
|
|
66
|
-
function
|
|
66
|
+
function u(s, i) {
|
|
67
67
|
const o = s;
|
|
68
68
|
return typeof i == "number" ? [{ target: o, operator: "length", param: null, value: Number(i) }] : typeof i == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!i }] : typeof i == "object" ? Object.keys(i).map((c) => {
|
|
69
69
|
if (c === "length")
|
|
70
70
|
return { target: o, operator: "length", param: null, value: i[c] };
|
|
71
|
-
const p = c,
|
|
72
|
-
return { target: o, operator: "getProperty", param: p, value:
|
|
71
|
+
const p = c, d = i[c];
|
|
72
|
+
return { target: o, operator: "getProperty", param: p, value: d };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
75
|
function f(s) {
|
|
76
76
|
return Object.keys(s).reduce((o, c) => {
|
|
77
|
-
const p =
|
|
77
|
+
const p = u(c, s[c]);
|
|
78
78
|
return o.push(...p), o;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
@@ -86,32 +86,32 @@ function ae(n = {}) {
|
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
88
|
function h(s, i) {
|
|
89
|
-
return f(s).reduce((p,
|
|
89
|
+
return f(s).reduce((p, d) => p && l(d, i), !0);
|
|
90
90
|
}
|
|
91
91
|
function m(s, i) {
|
|
92
|
-
const o = Object.keys(s), c = o.includes("allOf"), p = o.includes("anyOf"),
|
|
92
|
+
const o = Object.keys(s), c = o.includes("allOf"), p = o.includes("anyOf"), d = c || p, g = (d ? s[d ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((y) => h(y, i));
|
|
93
93
|
return c ? !g.includes(!1) : g.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: m };
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
function
|
|
100
|
-
return
|
|
101
|
-
const h =
|
|
97
|
+
const le = {}, ce = {};
|
|
98
|
+
se();
|
|
99
|
+
function ie(n, e, a = /* @__PURE__ */ new Map(), r = (l, h, m) => h, u = {}, f = (l) => l) {
|
|
100
|
+
return J[e.title] = e, U[e.title] = r, le[e.title] = u, ce[e.title] = f, (l = {}) => {
|
|
101
|
+
const h = ae(l, e, a), m = Object.keys(n).reduce((s, i) => (s[i] = n[i].default, s), {});
|
|
102
102
|
return Object.assign(m, h);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ue(n, e) {
|
|
106
106
|
return { customClass: e.class, customStyle: e.style };
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
["appearance",
|
|
108
|
+
const de = /* @__PURE__ */ new Map([
|
|
109
|
+
["appearance", ue]
|
|
110
110
|
]);
|
|
111
|
-
function
|
|
111
|
+
function fe(n, e, a) {
|
|
112
112
|
return e;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const me = "https://json-schema.org/draft/2020-12/schema", ve = "https://farris-design.gitee.io/events-editor.schema.json", pe = "events-editor", he = "A Farris Component", we = "object", ge = {
|
|
115
115
|
id: {
|
|
116
116
|
description: "The unique identifier for events-editor",
|
|
117
117
|
type: "string"
|
|
@@ -173,23 +173,23 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
|
|
|
173
173
|
type: "boolean",
|
|
174
174
|
default: !0
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, be = [
|
|
177
177
|
"id",
|
|
178
178
|
"type"
|
|
179
|
-
],
|
|
180
|
-
$schema:
|
|
181
|
-
$id:
|
|
182
|
-
title:
|
|
183
|
-
description:
|
|
184
|
-
type:
|
|
185
|
-
properties:
|
|
186
|
-
required:
|
|
187
|
-
},
|
|
188
|
-
title:
|
|
189
|
-
description:
|
|
190
|
-
type:
|
|
191
|
-
categories:
|
|
192
|
-
},
|
|
179
|
+
], Ce = {
|
|
180
|
+
$schema: me,
|
|
181
|
+
$id: ve,
|
|
182
|
+
title: pe,
|
|
183
|
+
description: he,
|
|
184
|
+
type: we,
|
|
185
|
+
properties: ge,
|
|
186
|
+
required: be
|
|
187
|
+
}, Ee = "events-editor", Se = "A Farris Component", ye = "object", Me = {}, Be = {
|
|
188
|
+
title: Ee,
|
|
189
|
+
description: Se,
|
|
190
|
+
type: ye,
|
|
191
|
+
categories: Me
|
|
192
|
+
}, H = [
|
|
193
193
|
{
|
|
194
194
|
label: "pageChange",
|
|
195
195
|
name: "MockMock切换页码"
|
|
@@ -210,7 +210,7 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
|
|
|
210
210
|
label: "onDeleteClicked",
|
|
211
211
|
name: "Mock操作列点击删除"
|
|
212
212
|
}
|
|
213
|
-
],
|
|
213
|
+
], Le = {
|
|
214
214
|
propertyID: "data-grid-component-viewmodel",
|
|
215
215
|
propertyType: "events",
|
|
216
216
|
/** 内置构件显示的命令列表 */
|
|
@@ -274,7 +274,7 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
|
|
|
274
274
|
}
|
|
275
275
|
],
|
|
276
276
|
/** (事件设定)可绑定事件默认列表; */
|
|
277
|
-
events:
|
|
277
|
+
events: H,
|
|
278
278
|
/** 已绑定的事件(拼接已有的参数值,拼接当前事件->待集成-从dom结构中取值,事件及对应的字符串) */
|
|
279
279
|
boundEventsList: [],
|
|
280
280
|
/** 视图模型已有命令 */
|
|
@@ -292,18 +292,18 @@ const fe = "https://json-schema.org/draft/2020-12/schema", me = "https://farris-
|
|
|
292
292
|
/** 初始为空,用于存储用户点击「导入新命令」的控制器值 */
|
|
293
293
|
newController: [],
|
|
294
294
|
isAddControllerMethod: !1,
|
|
295
|
-
getEventList: () => ({ events:
|
|
295
|
+
getEventList: () => ({ events: H, boundEventsList: [] })
|
|
296
296
|
}, _ = {
|
|
297
|
-
initialData: { type: Object, default:
|
|
298
|
-
},
|
|
297
|
+
initialData: { type: Object, default: Le }
|
|
298
|
+
}, G = ie(
|
|
299
299
|
_,
|
|
300
|
-
|
|
301
|
-
ue,
|
|
300
|
+
Ce,
|
|
302
301
|
de,
|
|
303
|
-
|
|
302
|
+
fe,
|
|
303
|
+
Be
|
|
304
304
|
);
|
|
305
|
-
function
|
|
306
|
-
const a = b([]), { boundEvents: r, unBoundEvent:
|
|
305
|
+
function Y(n, e) {
|
|
306
|
+
const a = b([]), { boundEvents: r, unBoundEvent: u } = e;
|
|
307
307
|
function f(o) {
|
|
308
308
|
return {
|
|
309
309
|
/** 当前事件名称及label */
|
|
@@ -357,7 +357,7 @@ function U(n, e) {
|
|
|
357
357
|
function i(o) {
|
|
358
358
|
if (o >= 0 && o <= a.value.length - 1) {
|
|
359
359
|
const c = a.value[o];
|
|
360
|
-
|
|
360
|
+
u(c.event), a.value.splice(o, 1);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
@@ -369,9 +369,9 @@ function U(n, e) {
|
|
|
369
369
|
loadInteractions: l
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Q(n) {
|
|
373
373
|
const e = b([]), a = b([]), r = b([]);
|
|
374
|
-
function
|
|
374
|
+
function u() {
|
|
375
375
|
const i = a.value.reduce(
|
|
376
376
|
(c, p) => (c.set(p.boundEvents.label, !0), c),
|
|
377
377
|
/* @__PURE__ */ new Map()
|
|
@@ -381,7 +381,7 @@ function Y(n) {
|
|
|
381
381
|
function f() {
|
|
382
382
|
var o;
|
|
383
383
|
const i = ((o = a.value) == null ? void 0 : o.length) > 0;
|
|
384
|
-
r.value = i ?
|
|
384
|
+
r.value = i ? u() : e.value;
|
|
385
385
|
}
|
|
386
386
|
function l() {
|
|
387
387
|
e.value = n.value.events, a.value = n.value.boundEventsList, f();
|
|
@@ -396,7 +396,7 @@ function Y(n) {
|
|
|
396
396
|
var c;
|
|
397
397
|
const i = (c = n.value) == null ? void 0 : c.getEventList(), { events: o } = i;
|
|
398
398
|
i && (n.value.events = B(o), n.value.boundEventsList = i.boundEventsList), n.value.boundEventsList && (n.value.boundEventsList = n.value.boundEventsList.filter(function(p) {
|
|
399
|
-
return o.find((
|
|
399
|
+
return o.find((d) => d.label == p.boundEvents.label);
|
|
400
400
|
}));
|
|
401
401
|
}
|
|
402
402
|
return {
|
|
@@ -409,18 +409,18 @@ function Y(n) {
|
|
|
409
409
|
unBoundEvent: m
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
const
|
|
412
|
+
const ke = {}, Ne = {
|
|
413
413
|
events: { type: Array, default: [] }
|
|
414
|
-
},
|
|
414
|
+
}, Ae = /* @__PURE__ */ D({
|
|
415
415
|
name: "FEventList",
|
|
416
|
-
props:
|
|
416
|
+
props: Ne,
|
|
417
417
|
emits: ["click"],
|
|
418
418
|
setup(n, e) {
|
|
419
419
|
const a = b(n.events);
|
|
420
420
|
function r(f) {
|
|
421
421
|
e.emit("click", f);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function u(f) {
|
|
424
424
|
return t("div", {
|
|
425
425
|
class: "f-page-events-editor-first-bound-event"
|
|
426
426
|
}, [t("div", {
|
|
@@ -430,20 +430,20 @@ const Le = {}, ke = {
|
|
|
430
430
|
}
|
|
431
431
|
return () => t("div", {
|
|
432
432
|
class: "f-page-events-editor-events"
|
|
433
|
-
}, [a.value.map((f) =>
|
|
433
|
+
}, [a.value.map((f) => u(f))]);
|
|
434
434
|
}
|
|
435
|
-
}),
|
|
435
|
+
}), X = /* @__PURE__ */ D({
|
|
436
436
|
name: "FInteractionButton",
|
|
437
|
-
props:
|
|
437
|
+
props: ke,
|
|
438
438
|
emits: ["click"],
|
|
439
439
|
setup(n, e) {
|
|
440
440
|
const a = R("useEventsComposition"), r = R("useInteractionCompostion"), {
|
|
441
|
-
candidateEvents:
|
|
441
|
+
candidateEvents: u
|
|
442
442
|
} = a, {
|
|
443
443
|
collapseInteractions: f
|
|
444
444
|
} = r, l = b(!1);
|
|
445
445
|
function h(p) {
|
|
446
|
-
|
|
446
|
+
u.value = u.value.filter((d) => d.label !== p.label);
|
|
447
447
|
}
|
|
448
448
|
function m() {
|
|
449
449
|
l.value = !1;
|
|
@@ -460,24 +460,24 @@ const Le = {}, ke = {
|
|
|
460
460
|
function c() {
|
|
461
461
|
f(), o();
|
|
462
462
|
}
|
|
463
|
-
return () => t(
|
|
463
|
+
return () => t(ee, null, [t("div", {
|
|
464
464
|
class: "f-page-events-editor-top-button"
|
|
465
465
|
}, [t("button", {
|
|
466
466
|
class: "f-page-events-editor-button",
|
|
467
467
|
onClick: c
|
|
468
468
|
}, [t("span", {
|
|
469
469
|
class: "f-page-events-editor-text"
|
|
470
|
-
}, [T("新建交互事件")])])]), l.value && t(
|
|
471
|
-
events:
|
|
470
|
+
}, [T("新建交互事件")])])]), l.value && t(Ae, {
|
|
471
|
+
events: u.value,
|
|
472
472
|
onClick: i
|
|
473
473
|
}, null)]);
|
|
474
474
|
}
|
|
475
|
-
}),
|
|
475
|
+
}), Pe = {
|
|
476
476
|
collapsed: { type: Boolean, default: !0 },
|
|
477
477
|
displayOrder: { type: Number, default: -1 },
|
|
478
478
|
interaction: { type: Object, default: {} },
|
|
479
479
|
controllers: { type: Array, default: [] }
|
|
480
|
-
},
|
|
480
|
+
}, Fe = {
|
|
481
481
|
/** 入参 */
|
|
482
482
|
initialData: { Type: Object, default: {} },
|
|
483
483
|
/** 原层级结构数据 */
|
|
@@ -492,18 +492,18 @@ const Le = {}, ke = {
|
|
|
492
492
|
exit: { Type: Number, default: -1 },
|
|
493
493
|
/** 接收是否显示「可选择方法」功能 */
|
|
494
494
|
haveBoundcommand: { Type: Boolean, default: !1 }
|
|
495
|
-
},
|
|
495
|
+
}, De = {
|
|
496
496
|
controllers: { type: Array, default: [] }
|
|
497
|
-
},
|
|
497
|
+
}, Te = /* @__PURE__ */ D({
|
|
498
498
|
name: "FCommandList",
|
|
499
|
-
props:
|
|
499
|
+
props: De,
|
|
500
500
|
emits: ["selectMethod"],
|
|
501
501
|
setup(n, e) {
|
|
502
502
|
const a = b(n.controllers);
|
|
503
503
|
function r(m) {
|
|
504
504
|
return m.controllerList.length !== 0;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function u(m) {
|
|
507
507
|
return r(m) && t("div", {
|
|
508
508
|
class: "f-page-internals-controller"
|
|
509
509
|
}, [t("div", {
|
|
@@ -527,33 +527,33 @@ const Le = {}, ke = {
|
|
|
527
527
|
}, [s.name])]));
|
|
528
528
|
}
|
|
529
529
|
function h(m) {
|
|
530
|
-
return t("div", null, [
|
|
530
|
+
return t("div", null, [u(m), l(m)]);
|
|
531
531
|
}
|
|
532
532
|
return () => t("div", {
|
|
533
533
|
class: "f-page-internals"
|
|
534
534
|
}, [a.value.map((m) => h(m))]);
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), Oe = /* @__PURE__ */ D({
|
|
537
537
|
name: "FCommandSource",
|
|
538
|
-
props:
|
|
538
|
+
props: Fe,
|
|
539
539
|
emits: ["addInternalCommandListChanged", "newImportChanged", "currentCommandChanged", "originalDataChanged", "click", "existChanged", "newFucChanged", "close", "selectMethod"],
|
|
540
540
|
setup(n, e) {
|
|
541
541
|
const a = R("useMethodsComposition"), {
|
|
542
542
|
controllers: r
|
|
543
|
-
} = a,
|
|
543
|
+
} = a, u = b(!1), f = b(n.canAddNewMethod), l = F(() => !f.value), h = F(() => u.value), m = F(() => ({
|
|
544
544
|
"font-size": "15px",
|
|
545
545
|
margin: "5px",
|
|
546
546
|
color: "#226eff",
|
|
547
547
|
flex: 1
|
|
548
548
|
})), s = Symbol("controller schema repository inject token");
|
|
549
549
|
function i() {
|
|
550
|
-
return t(
|
|
550
|
+
return t(ne, {
|
|
551
551
|
injectSymbolToken: s,
|
|
552
552
|
"view-type": "NavList"
|
|
553
553
|
}, null);
|
|
554
554
|
}
|
|
555
555
|
function o() {
|
|
556
|
-
|
|
556
|
+
te.show({
|
|
557
557
|
title: "选择控制器",
|
|
558
558
|
width: 950,
|
|
559
559
|
render: i
|
|
@@ -563,7 +563,7 @@ const Le = {}, ke = {
|
|
|
563
563
|
}
|
|
564
564
|
function p() {
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function d() {
|
|
567
567
|
}
|
|
568
568
|
function E() {
|
|
569
569
|
e.emit("close", null);
|
|
@@ -608,7 +608,7 @@ const Le = {}, ke = {
|
|
|
608
608
|
function y() {
|
|
609
609
|
return t("div", {
|
|
610
610
|
class: "f-page-command-source-choice"
|
|
611
|
-
}, [t(
|
|
611
|
+
}, [t(Te, {
|
|
612
612
|
controllers: r.value,
|
|
613
613
|
onSelectMethod: S
|
|
614
614
|
}, null)]);
|
|
@@ -620,16 +620,16 @@ const Le = {}, ke = {
|
|
|
620
620
|
onClick: E
|
|
621
621
|
}, [T("取消")])])]);
|
|
622
622
|
}
|
|
623
|
-
}),
|
|
623
|
+
}), je = {
|
|
624
624
|
command: { type: Object, default: {} }
|
|
625
|
-
},
|
|
625
|
+
}, Re = /* @__PURE__ */ D({
|
|
626
626
|
name: "FParameterEditor",
|
|
627
|
-
props:
|
|
627
|
+
props: je,
|
|
628
628
|
emits: ["confirm", "change"],
|
|
629
629
|
setup(n, e) {
|
|
630
|
-
const a = b(n.command), r = b(0),
|
|
630
|
+
const a = b(n.command), r = b(0), u = b(!1), f = b(!1);
|
|
631
631
|
b(""), b([]);
|
|
632
|
-
const l = F(() => a.value !== null), h = F(() =>
|
|
632
|
+
const l = F(() => a.value !== null), h = F(() => u.value), m = F(() => f.value), s = F(() => !u.value && !f.value), i = b(!1);
|
|
633
633
|
function o() {
|
|
634
634
|
}
|
|
635
635
|
function c() {
|
|
@@ -642,7 +642,7 @@ const Le = {}, ke = {
|
|
|
642
642
|
}
|
|
643
643
|
function p() {
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function d() {
|
|
646
646
|
return t("div", null, [t("div", {
|
|
647
647
|
title: "'方法已被删除,请绑定其他方法'",
|
|
648
648
|
class: "f-icon f-icon-flowline-warning",
|
|
@@ -713,20 +713,20 @@ const Le = {}, ke = {
|
|
|
713
713
|
title: a.value.label
|
|
714
714
|
}, [a.value.name]), t("div", {
|
|
715
715
|
class: "f-page-parameter-editor-first-row-icon"
|
|
716
|
-
}, [h.value && c(), m.value &&
|
|
716
|
+
}, [h.value && c(), m.value && d(), s.value && L()])]), i.value && k(), i.value && w()]);
|
|
717
717
|
}
|
|
718
718
|
return () => t("div", {
|
|
719
719
|
class: "f-page-parameter-editor"
|
|
720
720
|
}, [l.value && N()]);
|
|
721
721
|
}
|
|
722
|
-
}),
|
|
722
|
+
}), Z = /* @__PURE__ */ D({
|
|
723
723
|
name: "FInteractionItem",
|
|
724
|
-
props:
|
|
724
|
+
props: Pe,
|
|
725
725
|
emits: ["addAction", "delete", "toggle"],
|
|
726
726
|
setup(n, e) {
|
|
727
727
|
const a = R("useMethodsComposition"), {
|
|
728
728
|
toggleSelectingMethod: r,
|
|
729
|
-
emitFinalState:
|
|
729
|
+
emitFinalState: u
|
|
730
730
|
} = a, f = b(n.controllers), l = b(n.interaction), h = b(n.displayOrder), m = F(() => {
|
|
731
731
|
const v = l.value.showSwitch[0];
|
|
732
732
|
return v.showSection[v.showSwitchNumber][2];
|
|
@@ -751,7 +751,7 @@ const Le = {}, ke = {
|
|
|
751
751
|
r(C), e.emit("addAction", h.value);
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function d(v) {
|
|
755
755
|
v === null && l.value.command === null && e.emit("delete", h.value);
|
|
756
756
|
const C = l.value.showSwitch[0];
|
|
757
757
|
r(C);
|
|
@@ -767,26 +767,26 @@ const Le = {}, ke = {
|
|
|
767
767
|
handlerName: A
|
|
768
768
|
} = C, {
|
|
769
769
|
controllerName: P
|
|
770
|
-
} = w, I = !1,
|
|
770
|
+
} = w, I = !1, K = P.id;
|
|
771
771
|
l.value.command = {
|
|
772
772
|
id: k,
|
|
773
773
|
label: N,
|
|
774
774
|
name: M,
|
|
775
775
|
handlerName: A,
|
|
776
776
|
hasPath: I,
|
|
777
|
-
cmpId:
|
|
777
|
+
cmpId: K
|
|
778
778
|
}, l.value.controller = {
|
|
779
779
|
id: P.id,
|
|
780
780
|
label: P.label,
|
|
781
781
|
name: P.name
|
|
782
782
|
};
|
|
783
783
|
const j = l.value.showSwitch[0];
|
|
784
|
-
j.showSwitchNumber = 2, j.showSection[j.showSwitchNumber][2] = !1, j.showSection[j.showSwitchNumber][3] = !0,
|
|
784
|
+
j.showSwitchNumber = 2, j.showSection[j.showSwitchNumber][2] = !1, j.showSection[j.showSwitchNumber][3] = !0, u();
|
|
785
785
|
}
|
|
786
786
|
function L() {
|
|
787
|
-
return t(
|
|
787
|
+
return t(Oe, {
|
|
788
788
|
controllers: f.value,
|
|
789
|
-
onClose:
|
|
789
|
+
onClose: d,
|
|
790
790
|
onSelectMethod: E
|
|
791
791
|
}, null);
|
|
792
792
|
}
|
|
@@ -795,10 +795,10 @@ const Le = {}, ke = {
|
|
|
795
795
|
v.showSection[v.showSwitchNumber][3] = !1;
|
|
796
796
|
}
|
|
797
797
|
function S(v) {
|
|
798
|
-
l.value.command = B(v),
|
|
798
|
+
l.value.command = B(v), u();
|
|
799
799
|
}
|
|
800
800
|
function y() {
|
|
801
|
-
return t(
|
|
801
|
+
return t(Re, {
|
|
802
802
|
command: l.value.command,
|
|
803
803
|
onConfirm: () => g(),
|
|
804
804
|
onChange: (v) => S(v)
|
|
@@ -828,23 +828,23 @@ const Le = {}, ke = {
|
|
|
828
828
|
}, null)]), m.value && L(), s.value && y()]);
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
|
-
function
|
|
832
|
-
const { interactions: r } = e,
|
|
833
|
-
function f(
|
|
834
|
-
r.value[
|
|
831
|
+
function x(n, e, a) {
|
|
832
|
+
const { interactions: r } = e, u = b(n.value.internalCommandList);
|
|
833
|
+
function f(d) {
|
|
834
|
+
r.value[d].showSwitch = [], r.value[d].showSwitch.push(B({
|
|
835
835
|
// 存储所有的展示设定
|
|
836
836
|
showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
|
|
837
837
|
// 展示哪个部分
|
|
838
838
|
showSwitchNumber: 2
|
|
839
839
|
})), r.value = B(r.value);
|
|
840
840
|
}
|
|
841
|
-
function l(
|
|
841
|
+
function l(d, E, L) {
|
|
842
842
|
}
|
|
843
|
-
function h(
|
|
843
|
+
function h(d) {
|
|
844
844
|
var L;
|
|
845
845
|
const E = [];
|
|
846
846
|
return (L = n.value.newController) == null || L.forEach((g) => {
|
|
847
|
-
|
|
847
|
+
d.forEach((S) => {
|
|
848
848
|
g.Code === S.controller.label && E.push(B(g));
|
|
849
849
|
});
|
|
850
850
|
}), E;
|
|
@@ -852,18 +852,18 @@ function Z(n, e, a) {
|
|
|
852
852
|
function m() {
|
|
853
853
|
var S;
|
|
854
854
|
n.value.isAddControllerMethod = !!n.value.newFuncEvents;
|
|
855
|
-
const
|
|
855
|
+
const d = [], E = B(n.value.internalCommandList);
|
|
856
856
|
r.value.map((y) => {
|
|
857
857
|
const v = B(y.controller), C = B(y.command), w = B(y.event), k = { controller: v, command: C, boundEvents: w };
|
|
858
|
-
|
|
858
|
+
d.push(B(k));
|
|
859
859
|
});
|
|
860
|
-
const L = (S = n.value.newController) != null && S.length &&
|
|
860
|
+
const L = (S = n.value.newController) != null && S.length && d.length ? B(h(d)) : [], g = {
|
|
861
861
|
/** 拼接名称时的前缀 */
|
|
862
862
|
viewModelId: n.value.viewModelId,
|
|
863
863
|
/** 视图模型绑定的事件下的方法列表 */
|
|
864
864
|
savedCommand: B(n.value.viewModel),
|
|
865
865
|
/** 当前界面显示的绑定事件 */
|
|
866
|
-
boundEventsList: B(
|
|
866
|
+
boundEventsList: B(d),
|
|
867
867
|
/** 可选择的绑定事件列表 */
|
|
868
868
|
events: B(n.value.events),
|
|
869
869
|
/** 内置构件列表; */
|
|
@@ -887,23 +887,23 @@ function Z(n, e, a) {
|
|
|
887
887
|
};
|
|
888
888
|
a.emit("savedCommandListChanged", g);
|
|
889
889
|
}
|
|
890
|
-
function s(
|
|
891
|
-
|
|
890
|
+
function s(d) {
|
|
891
|
+
d.showSection[d.showSwitchNumber][2] = !0;
|
|
892
892
|
}
|
|
893
|
-
function i(
|
|
894
|
-
|
|
893
|
+
function i(d) {
|
|
894
|
+
d.showSection[d.showSwitchNumber][2] = !1;
|
|
895
895
|
}
|
|
896
|
-
function o(
|
|
897
|
-
|
|
896
|
+
function o(d) {
|
|
897
|
+
d.showSection[d.showSwitchNumber][3] = !0;
|
|
898
898
|
}
|
|
899
|
-
function c(
|
|
900
|
-
|
|
899
|
+
function c(d) {
|
|
900
|
+
d.showSection[d.showSwitchNumber][3] = !1;
|
|
901
901
|
}
|
|
902
|
-
function p(
|
|
903
|
-
|
|
902
|
+
function p(d) {
|
|
903
|
+
d.showSection[d.showSwitchNumber][2] ? (i(d), o(d)) : (s(d), c(d));
|
|
904
904
|
}
|
|
905
905
|
return {
|
|
906
|
-
controllers:
|
|
906
|
+
controllers: u,
|
|
907
907
|
onClosed: f,
|
|
908
908
|
emitFinalState: m,
|
|
909
909
|
onCurrentCommandChanged: l,
|
|
@@ -915,28 +915,28 @@ const V = /* @__PURE__ */ D({
|
|
|
915
915
|
props: _,
|
|
916
916
|
emits: ["savedCommandListChanged"],
|
|
917
917
|
setup(n, e) {
|
|
918
|
-
const a = b(n.initialData), r =
|
|
919
|
-
loadEvents:
|
|
918
|
+
const a = b(n.initialData), r = Q(a), {
|
|
919
|
+
loadEvents: u,
|
|
920
920
|
resetBoundEvents: f
|
|
921
|
-
} = r, l =
|
|
921
|
+
} = r, l = Y(a, r), {
|
|
922
922
|
addNewInteraction: h,
|
|
923
923
|
deleteInteracton: m,
|
|
924
924
|
interactions: s,
|
|
925
925
|
loadInteractions: i
|
|
926
|
-
} = l, o =
|
|
926
|
+
} = l, o = x(a, l, e);
|
|
927
927
|
O("useEventsComposition", r), O("useInteractionCompostion", l), O("useMethodsComposition", o);
|
|
928
928
|
function c() {
|
|
929
929
|
a.value.isAddControllerMethod = !1;
|
|
930
930
|
}
|
|
931
|
-
|
|
932
|
-
c(), f(),
|
|
931
|
+
W(() => {
|
|
932
|
+
c(), f(), u(), i();
|
|
933
933
|
});
|
|
934
934
|
function p(g) {
|
|
935
935
|
m(g);
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function d(g, S) {
|
|
938
938
|
const y = g.showSwitch[0], v = y.showSection[y.showSwitchNumber][3];
|
|
939
|
-
return t(
|
|
939
|
+
return t(Z, {
|
|
940
940
|
interaction: g,
|
|
941
941
|
displayOrder: S,
|
|
942
942
|
collapsed: v,
|
|
@@ -948,7 +948,7 @@ const V = /* @__PURE__ */ D({
|
|
|
948
948
|
return (g = s.value) == null ? void 0 : g.map((S, y) => t("div", {
|
|
949
949
|
class: "events-display-order",
|
|
950
950
|
key: S.event.label
|
|
951
|
-
}, [
|
|
951
|
+
}, [d(S, y)]));
|
|
952
952
|
}
|
|
953
953
|
function L(g) {
|
|
954
954
|
h(g);
|
|
@@ -957,16 +957,16 @@ const V = /* @__PURE__ */ D({
|
|
|
957
957
|
class: "f-page-events-editor"
|
|
958
958
|
}, [t("div", {
|
|
959
959
|
class: "f-page-events-editor-content"
|
|
960
|
-
}, [t(
|
|
960
|
+
}, [t(X, {
|
|
961
961
|
onClick: L
|
|
962
962
|
}, null), E()])]);
|
|
963
963
|
}
|
|
964
964
|
});
|
|
965
|
-
function
|
|
965
|
+
function Ie(n, e, a) {
|
|
966
966
|
var C;
|
|
967
967
|
function r() {
|
|
968
968
|
}
|
|
969
|
-
const
|
|
969
|
+
const u = "", f = "", l = b();
|
|
970
970
|
function h() {
|
|
971
971
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
972
972
|
}
|
|
@@ -994,7 +994,7 @@ function Re(n, e, a) {
|
|
|
994
994
|
function p(w) {
|
|
995
995
|
return !!a;
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function d() {
|
|
998
998
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
999
999
|
}
|
|
1000
1000
|
function E() {
|
|
@@ -1027,12 +1027,12 @@ function Re(n, e, a) {
|
|
|
1027
1027
|
elementRef: n,
|
|
1028
1028
|
parent: (C = e == null ? void 0 : e.parent) == null ? void 0 : C.componentInstance,
|
|
1029
1029
|
schema: e == null ? void 0 : e.schema,
|
|
1030
|
-
styles:
|
|
1030
|
+
styles: u,
|
|
1031
1031
|
designerClass: f,
|
|
1032
1032
|
canAccepts: p,
|
|
1033
1033
|
getBelongedComponentInstance: o,
|
|
1034
1034
|
getDraggableDesignItemElement: c,
|
|
1035
|
-
getDraggingDisplayText:
|
|
1035
|
+
getDraggingDisplayText: d,
|
|
1036
1036
|
getPropConfig: v,
|
|
1037
1037
|
getDragScopeElement: E,
|
|
1038
1038
|
onAcceptMovedChildElement: L,
|
|
@@ -1044,25 +1044,25 @@ function Re(n, e, a) {
|
|
|
1044
1044
|
triggerBelongedComponentToDeleteWhenDeleted: b(!1)
|
|
1045
1045
|
}, l;
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Ve = /* @__PURE__ */ D({
|
|
1048
1048
|
name: "FEventsEditorDesign",
|
|
1049
1049
|
props: _,
|
|
1050
1050
|
emits: ["savedCommandListChanged"],
|
|
1051
1051
|
setup(n, e) {
|
|
1052
|
-
const a = b(n.initialData), r =
|
|
1053
|
-
loadEvents:
|
|
1052
|
+
const a = b(n.initialData), r = Q(a), {
|
|
1053
|
+
loadEvents: u,
|
|
1054
1054
|
resetBoundEvents: f
|
|
1055
|
-
} = r, l =
|
|
1055
|
+
} = r, l = Y(a, r), {
|
|
1056
1056
|
addNewInteraction: h,
|
|
1057
1057
|
deleteInteracton: m,
|
|
1058
1058
|
interactions: s,
|
|
1059
1059
|
loadInteractions: i
|
|
1060
|
-
} = l, o =
|
|
1060
|
+
} = l, o = x(a, l, e);
|
|
1061
1061
|
O("useEventsComposition", r), O("useInteractionCompostion", l), O("useMethodsComposition", o);
|
|
1062
|
-
const c = b(), p = R("design-item-context"),
|
|
1063
|
-
|
|
1064
|
-
c.value.componentInstance =
|
|
1065
|
-
}), e.expose(
|
|
1062
|
+
const c = b(), p = R("design-item-context"), d = Ie(c, p);
|
|
1063
|
+
W(() => {
|
|
1064
|
+
c.value.componentInstance = d, E(), f(), u(), i();
|
|
1065
|
+
}), e.expose(d.value);
|
|
1066
1066
|
function E() {
|
|
1067
1067
|
a.value.isAddControllerMethod = !1;
|
|
1068
1068
|
}
|
|
@@ -1071,7 +1071,7 @@ const Ie = /* @__PURE__ */ D({
|
|
|
1071
1071
|
}
|
|
1072
1072
|
function g(v, C) {
|
|
1073
1073
|
const w = v.showSwitch[0], k = w.showSection[w.showSwitchNumber][3];
|
|
1074
|
-
return t(
|
|
1074
|
+
return t(Z, {
|
|
1075
1075
|
interaction: v,
|
|
1076
1076
|
displayOrder: C,
|
|
1077
1077
|
collapsed: k,
|
|
@@ -1093,24 +1093,24 @@ const Ie = /* @__PURE__ */ D({
|
|
|
1093
1093
|
class: "f-page-events-editor"
|
|
1094
1094
|
}, [t("div", {
|
|
1095
1095
|
class: "f-page-events-editor-content"
|
|
1096
|
-
}, [t(
|
|
1096
|
+
}, [t(X, {
|
|
1097
1097
|
onClick: y
|
|
1098
1098
|
}, null), S()])]);
|
|
1099
1099
|
}
|
|
1100
|
-
}),
|
|
1100
|
+
}), Ge = {
|
|
1101
1101
|
install(n) {
|
|
1102
1102
|
n.component(V.name, V);
|
|
1103
1103
|
},
|
|
1104
1104
|
register(n, e, a, r) {
|
|
1105
|
-
n["events-editor"] = V, e["events-editor"] =
|
|
1105
|
+
n["events-editor"] = V, e["events-editor"] = G;
|
|
1106
1106
|
},
|
|
1107
1107
|
registerDesigner(n, e, a) {
|
|
1108
|
-
n["events-editor"] =
|
|
1108
|
+
n["events-editor"] = Ve, e["events-editor"] = G;
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
1111
|
export {
|
|
1112
1112
|
V as FEventsEditor,
|
|
1113
|
-
|
|
1113
|
+
Ge as default,
|
|
1114
1114
|
_ as eventsEditorProps,
|
|
1115
|
-
|
|
1115
|
+
G as propsResolver
|
|
1116
1116
|
};
|