@vcmap/module-selector 2.0.1 → 2.0.3
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/CHANGELOG.md +9 -0
- package/dist/index.js +1335 -637
- package/package.json +11 -9
- package/src/ModuleSelectorEdit.vue +107 -0
- package/src/config/CloudModuleSelector.vue +390 -0
- package/src/config/ModuleSelectorConfigEditor.vue +242 -138
- package/src/config/setupPublisherSDK.ts +25 -0
- package/src/defaultOptions.ts +4 -0
- package/src/index.ts +52 -4
package/dist/index.js
CHANGED
|
@@ -10,90 +10,93 @@ function loadCss(href) {
|
|
|
10
10
|
elem.onerror = reject;
|
|
11
11
|
document.head.appendChild(elem);
|
|
12
12
|
});
|
|
13
|
-
} await loadCss('data:text/css;base64,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
|
|
13
|
+
} await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtMjlhMjIwMmZde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTI5YTIyMDJmXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnYtYnJlYWRjcnVtYnNbZGF0YS12LTgyMzc3NDY4XXtwYWRkaW5nOjE2cHggMCA0cHh9Cg==');var Te = Object.defineProperty;
|
|
14
|
+
var Fe = (e, o, t) => o in e ? Te(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
15
|
+
var W = (e, o, t) => Fe(e, typeof o != "symbol" ? o + "" : o, t);
|
|
16
|
+
import { VcsFormButton as be, VcsTextField as ae, VcsLabel as Me, VcsFormSection as Se, VcsCheckbox as _e, useProxiedComplexModel as Re, useModelHasProperty as De, VcsDataTable as qe, VcsList as Pe, AbstractConfigEditor as Ge, WindowSlot as je, createToggleAction as Le, ButtonLocation as ze } from "../../../assets/ui.js";
|
|
17
|
+
import { defineComponent as J, inject as Ve, computed as H, resolveComponent as m, openBlock as I, createBlock as _, withCtx as n, createVNode as d, createTextVNode as V, toDisplayString as w, createCommentVNode as q, createElementBlock as ie, Fragment as de, renderList as pe, normalizeClass as we, ref as k, createElementVNode as fe, normalizeProps as We, guardReactiveProps as He, reactive as Ke, watch as Ee, toRaw as ue, mergeProps as Je } from "../../../assets/vue.js";
|
|
18
|
+
import { VSheet as Ze, VContainer as Z, VRow as Q, VCol as X, VCard as ye, VIcon as ke, VCardTitle as Qe, VForm as Ue, VDivider as Xe, VTooltip as Ye, VDialog as xe, VBreadcrumbs as eo, VBreadcrumbsItem as oo } from "../../../assets/vuetify.js";
|
|
19
|
+
import { VcsModule as to } from "../../../assets/core.js";
|
|
20
|
+
function Ie(e, o) {
|
|
18
21
|
if (e != null) {
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
return
|
|
22
|
+
const t = Number.parseInt(String(e), 10);
|
|
23
|
+
if (t != null && !Number.isNaN(t))
|
|
24
|
+
return t;
|
|
22
25
|
}
|
|
23
26
|
return o;
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function lo(e, o) {
|
|
26
29
|
return e == null ? !!o : typeof e == "boolean" ? e : e === 1 ? !0 : e === 0 ? !1 : typeof e == "string" && (e.toLowerCase() === "true" || e.toLowerCase() === "1") ? !0 : typeof e == "string" && (e.toLowerCase() === "false" || e.toLowerCase() === "0") ? !1 : !!o;
|
|
27
30
|
}
|
|
28
|
-
function
|
|
31
|
+
function no(e) {
|
|
29
32
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
30
33
|
}
|
|
31
|
-
var
|
|
32
|
-
if (o ===
|
|
33
|
-
if (o &&
|
|
34
|
-
if (o.constructor !==
|
|
35
|
-
var r,
|
|
34
|
+
var io = function e(o, t) {
|
|
35
|
+
if (o === t) return !0;
|
|
36
|
+
if (o && t && typeof o == "object" && typeof t == "object") {
|
|
37
|
+
if (o.constructor !== t.constructor) return !1;
|
|
38
|
+
var r, i, l;
|
|
36
39
|
if (Array.isArray(o)) {
|
|
37
|
-
if (r = o.length, r !=
|
|
38
|
-
for (
|
|
39
|
-
if (!e(o[
|
|
40
|
+
if (r = o.length, r != t.length) return !1;
|
|
41
|
+
for (i = r; i-- !== 0; )
|
|
42
|
+
if (!e(o[i], t[i])) return !1;
|
|
40
43
|
return !0;
|
|
41
44
|
}
|
|
42
|
-
if (o.constructor === RegExp) return o.source ===
|
|
43
|
-
if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() ===
|
|
44
|
-
if (o.toString !== Object.prototype.toString) return o.toString() ===
|
|
45
|
-
if (
|
|
46
|
-
for (
|
|
47
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
48
|
-
for (
|
|
49
|
-
var
|
|
50
|
-
if (!e(o[
|
|
45
|
+
if (o.constructor === RegExp) return o.source === t.source && o.flags === t.flags;
|
|
46
|
+
if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() === t.valueOf();
|
|
47
|
+
if (o.toString !== Object.prototype.toString) return o.toString() === t.toString();
|
|
48
|
+
if (l = Object.keys(o), r = l.length, r !== Object.keys(t).length) return !1;
|
|
49
|
+
for (i = r; i-- !== 0; )
|
|
50
|
+
if (!Object.prototype.hasOwnProperty.call(t, l[i])) return !1;
|
|
51
|
+
for (i = r; i-- !== 0; ) {
|
|
52
|
+
var s = l[i];
|
|
53
|
+
if (!e(o[s], t[s])) return !1;
|
|
51
54
|
}
|
|
52
55
|
return !0;
|
|
53
56
|
}
|
|
54
|
-
return o !== o &&
|
|
57
|
+
return o !== o && t !== t;
|
|
55
58
|
};
|
|
56
|
-
const
|
|
57
|
-
async function
|
|
58
|
-
const
|
|
59
|
+
const ce = /* @__PURE__ */ no(io), j = "@vcmap/module-selector", ro = "2.0.3", so = "^6.0";
|
|
60
|
+
async function Ce(e, o) {
|
|
61
|
+
const t = await fetch(e, {
|
|
59
62
|
method: "GET"
|
|
60
63
|
}).then((r) => {
|
|
61
64
|
if (r.ok)
|
|
62
65
|
return r.json();
|
|
63
66
|
});
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
const r = new
|
|
67
|
+
if (t) {
|
|
68
|
+
t._id = "moduleSelector_module_id";
|
|
69
|
+
const r = new to(t);
|
|
67
70
|
await o.addModule(r);
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
|
-
async function
|
|
71
|
-
var
|
|
72
|
-
const o = "moduleSelector_module_id",
|
|
73
|
-
e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(
|
|
73
|
+
async function ao(e) {
|
|
74
|
+
var i, l;
|
|
75
|
+
const o = "moduleSelector_module_id", t = (i = e.maps.activeMap) == null ? void 0 : i.name;
|
|
76
|
+
e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(t || ((l = [...e.maps][0]) == null ? void 0 : l.name));
|
|
74
77
|
}
|
|
75
|
-
const
|
|
76
|
-
async function
|
|
78
|
+
const se = "moduleSelector_window_id";
|
|
79
|
+
async function Ae(e, o, t, r, i) {
|
|
77
80
|
var a;
|
|
78
|
-
if (await
|
|
79
|
-
|
|
81
|
+
if (await ao(t), e === null && !i) {
|
|
82
|
+
t.windowManager.remove(se);
|
|
80
83
|
return;
|
|
81
84
|
}
|
|
82
|
-
const
|
|
83
|
-
|
|
85
|
+
const l = r[e], s = (l == null ? void 0 : l.type) === "group" ? (a = l.cards) == null ? void 0 : a[o] : null;
|
|
86
|
+
s != null && s.moduleUrl ? await Ce(s.moduleUrl, t) : (l == null ? void 0 : l.type) === "url" && await Ce(l.moduleUrl, t), t.windowManager.remove(se);
|
|
84
87
|
}
|
|
85
|
-
const
|
|
88
|
+
const uo = J({
|
|
86
89
|
name: "ModuleSelector",
|
|
87
|
-
methods: { startApplication:
|
|
90
|
+
methods: { startApplication: Ae },
|
|
88
91
|
components: {
|
|
89
|
-
VSheet:
|
|
92
|
+
VSheet: Ze,
|
|
90
93
|
VContainer: Z,
|
|
91
94
|
VRow: Q,
|
|
92
95
|
VCol: X,
|
|
93
|
-
VCard:
|
|
94
|
-
VIcon:
|
|
95
|
-
VCardTitle:
|
|
96
|
-
VcsFormButton:
|
|
96
|
+
VCard: ye,
|
|
97
|
+
VIcon: ke,
|
|
98
|
+
VCardTitle: Qe,
|
|
99
|
+
VcsFormButton: be
|
|
97
100
|
},
|
|
98
101
|
props: {
|
|
99
102
|
modules: {
|
|
@@ -112,79 +115,79 @@ const Pe = J({
|
|
|
112
115
|
}
|
|
113
116
|
},
|
|
114
117
|
setup(e) {
|
|
115
|
-
const o =
|
|
116
|
-
const c = e.modules[
|
|
118
|
+
const o = Ve("vcsApp"), t = o.plugins.getByKey(j), { modules: r } = e, i = H(() => {
|
|
119
|
+
const c = e.modules[t.selectedMainModuleIndex.value];
|
|
117
120
|
return (c == null ? void 0 : c.type) === "group" ? c.cards : [];
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
|
|
121
|
+
}), l = (c) => {
|
|
122
|
+
t.selectedMainModuleIndex.value === c ? t.selectedMainModuleIndex.value = null : t.selectedMainModuleIndex.value = c;
|
|
123
|
+
}, s = (c) => {
|
|
124
|
+
t.selectedNestedModuleIndex.value === c ? t.selectedNestedModuleIndex.value = null : t.selectedNestedModuleIndex.value = c;
|
|
122
125
|
}, a = () => {
|
|
123
|
-
|
|
124
|
-
}, v =
|
|
126
|
+
t.selectedNestedModuleIndex.value = null, t.selectedMainModuleIndex.value = null;
|
|
127
|
+
}, v = H(() => {
|
|
125
128
|
if (!e.requireModuleSelection) return !1;
|
|
126
|
-
const c =
|
|
127
|
-
return c == null || (
|
|
129
|
+
const c = t.selectedMainModuleIndex.value, C = t.selectedNestedModuleIndex.value, b = r[c];
|
|
130
|
+
return c == null || (b == null ? void 0 : b.type) === "group" && b.cards && C == null;
|
|
128
131
|
});
|
|
129
132
|
return {
|
|
130
|
-
nestedCards:
|
|
131
|
-
plugin:
|
|
132
|
-
selectModule:
|
|
133
|
-
selectNestedModule:
|
|
133
|
+
nestedCards: i,
|
|
134
|
+
plugin: t,
|
|
135
|
+
selectModule: l,
|
|
136
|
+
selectNestedModule: s,
|
|
134
137
|
showMainCards: a,
|
|
135
138
|
isButtonDisabled: v,
|
|
136
139
|
app: o
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
}), Y = (e, o) => {
|
|
140
|
-
const
|
|
141
|
-
for (const [r,
|
|
142
|
-
|
|
143
|
-
return
|
|
143
|
+
const t = e.__vccOpts || e;
|
|
144
|
+
for (const [r, i] of o)
|
|
145
|
+
t[r] = i;
|
|
146
|
+
return t;
|
|
144
147
|
};
|
|
145
|
-
function
|
|
146
|
-
const
|
|
147
|
-
return
|
|
148
|
+
function co(e, o, t, r, i, l) {
|
|
149
|
+
const s = m("v-icon"), a = m("v-card-title"), v = m("v-card"), c = m("v-col"), C = m("v-row"), b = m("VcsFormButton"), h = m("v-container"), R = m("v-sheet");
|
|
150
|
+
return I(), _(R, {
|
|
148
151
|
class: "module-selector",
|
|
149
152
|
elevation: "1"
|
|
150
153
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
|
|
153
|
-
default:
|
|
154
|
-
|
|
154
|
+
default: n(() => [
|
|
155
|
+
d(h, null, {
|
|
156
|
+
default: n(() => [
|
|
157
|
+
d(C, {
|
|
155
158
|
class: "justify-center align-center",
|
|
156
159
|
"no-gutters": ""
|
|
157
160
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
e.basisModule && !e.nestedCards.length ? (
|
|
161
|
+
default: n(() => [
|
|
162
|
+
e.basisModule && !e.nestedCards.length ? (I(), _(c, {
|
|
160
163
|
key: 0,
|
|
161
164
|
cols: "auto",
|
|
162
165
|
class: "pa-2"
|
|
163
166
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
167
|
+
default: n(() => [
|
|
168
|
+
d(v, {
|
|
166
169
|
class: "pa-3 fixed-card selected-card",
|
|
167
170
|
outlined: ""
|
|
168
171
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
e.basisModule.icon ? (
|
|
172
|
+
default: n(() => [
|
|
173
|
+
e.basisModule.icon ? (I(), _(s, {
|
|
171
174
|
key: 0,
|
|
172
175
|
size: "50"
|
|
173
176
|
}, {
|
|
174
|
-
default:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
default: n(() => [
|
|
178
|
+
V(
|
|
179
|
+
w(e.basisModule.icon),
|
|
177
180
|
1
|
|
178
181
|
/* TEXT */
|
|
179
182
|
)
|
|
180
183
|
]),
|
|
181
184
|
_: 1
|
|
182
185
|
/* STABLE */
|
|
183
|
-
})) :
|
|
184
|
-
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
})) : q("v-if", !0),
|
|
187
|
+
d(a, { class: "text-center" }, {
|
|
188
|
+
default: n(() => [
|
|
189
|
+
V(
|
|
190
|
+
w(e.$st(e.basisModule.title)),
|
|
188
191
|
1
|
|
189
192
|
/* TEXT */
|
|
190
193
|
)
|
|
@@ -199,31 +202,31 @@ function je(e, o, i, r, d, n) {
|
|
|
199
202
|
]),
|
|
200
203
|
_: 1
|
|
201
204
|
/* STABLE */
|
|
202
|
-
})) :
|
|
203
|
-
e.nestedCards.length ? (
|
|
204
|
-
|
|
205
|
+
})) : q("v-if", !0),
|
|
206
|
+
e.nestedCards.length ? (I(), ie(
|
|
207
|
+
de,
|
|
205
208
|
{ key: 2 },
|
|
206
209
|
[
|
|
207
|
-
|
|
210
|
+
d(c, {
|
|
208
211
|
cols: "auto",
|
|
209
212
|
class: "pa-2"
|
|
210
213
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
214
|
+
default: n(() => [
|
|
215
|
+
d(v, {
|
|
213
216
|
class: "fixed-card hover-card",
|
|
214
217
|
outlined: "",
|
|
215
|
-
onClick: o[0] || (o[0] = (
|
|
218
|
+
onClick: o[0] || (o[0] = (g) => e.showMainCards())
|
|
216
219
|
}, {
|
|
217
|
-
default:
|
|
218
|
-
|
|
219
|
-
default:
|
|
220
|
-
|
|
220
|
+
default: n(() => [
|
|
221
|
+
d(s, { size: "50" }, {
|
|
222
|
+
default: n(() => [
|
|
223
|
+
V("mdi-arrow-left")
|
|
221
224
|
]),
|
|
222
225
|
_: 1
|
|
223
226
|
/* STABLE */
|
|
224
227
|
}),
|
|
225
|
-
|
|
226
|
-
" " +
|
|
228
|
+
V(
|
|
229
|
+
" " + w(e.$st("moduleSelector.cardBack")),
|
|
227
230
|
1
|
|
228
231
|
/* TEXT */
|
|
229
232
|
)
|
|
@@ -235,36 +238,36 @@ function je(e, o, i, r, d, n) {
|
|
|
235
238
|
_: 1
|
|
236
239
|
/* STABLE */
|
|
237
240
|
}),
|
|
238
|
-
(
|
|
239
|
-
|
|
241
|
+
(I(!0), ie(
|
|
242
|
+
de,
|
|
240
243
|
null,
|
|
241
|
-
|
|
244
|
+
pe(e.nestedCards, (g, y) => (I(), _(
|
|
242
245
|
c,
|
|
243
246
|
{
|
|
244
|
-
key:
|
|
247
|
+
key: y,
|
|
245
248
|
cols: "auto",
|
|
246
249
|
class: "pa-2"
|
|
247
250
|
},
|
|
248
251
|
{
|
|
249
|
-
default:
|
|
250
|
-
|
|
251
|
-
class:
|
|
252
|
-
"selected-card": e.plugin.selectedNestedModuleIndex.value ===
|
|
252
|
+
default: n(() => [
|
|
253
|
+
d(v, {
|
|
254
|
+
class: we(["fixed-card hover-card", {
|
|
255
|
+
"selected-card": e.plugin.selectedNestedModuleIndex.value === y
|
|
253
256
|
}]),
|
|
254
257
|
outlined: "",
|
|
255
|
-
onClick: (
|
|
258
|
+
onClick: (U) => e.selectNestedModule(y)
|
|
256
259
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
default: n(() => [
|
|
261
|
+
g.icon ? (I(), _(
|
|
262
|
+
s,
|
|
260
263
|
{
|
|
261
264
|
key: 0,
|
|
262
265
|
size: "50"
|
|
263
266
|
},
|
|
264
267
|
{
|
|
265
|
-
default:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
+
default: n(() => [
|
|
269
|
+
V(
|
|
270
|
+
w(g.icon),
|
|
268
271
|
1
|
|
269
272
|
/* TEXT */
|
|
270
273
|
)
|
|
@@ -274,14 +277,14 @@ function je(e, o, i, r, d, n) {
|
|
|
274
277
|
},
|
|
275
278
|
1024
|
|
276
279
|
/* DYNAMIC_SLOTS */
|
|
277
|
-
)) :
|
|
278
|
-
|
|
280
|
+
)) : q("v-if", !0),
|
|
281
|
+
d(
|
|
279
282
|
a,
|
|
280
283
|
{ class: "text-center" },
|
|
281
284
|
{
|
|
282
|
-
default:
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
default: n(() => [
|
|
286
|
+
V(
|
|
287
|
+
w(e.$st(g.title)),
|
|
285
288
|
1
|
|
286
289
|
/* TEXT */
|
|
287
290
|
)
|
|
@@ -309,36 +312,36 @@ function je(e, o, i, r, d, n) {
|
|
|
309
312
|
],
|
|
310
313
|
64
|
|
311
314
|
/* STABLE_FRAGMENT */
|
|
312
|
-
)) : (
|
|
313
|
-
|
|
315
|
+
)) : (I(!0), ie(
|
|
316
|
+
de,
|
|
314
317
|
{ key: 1 },
|
|
315
|
-
|
|
318
|
+
pe(e.modules, (g, y) => (I(), _(
|
|
316
319
|
c,
|
|
317
320
|
{
|
|
318
321
|
cols: "auto",
|
|
319
322
|
class: "pa-2",
|
|
320
|
-
key:
|
|
323
|
+
key: y
|
|
321
324
|
},
|
|
322
325
|
{
|
|
323
|
-
default:
|
|
324
|
-
|
|
325
|
-
class:
|
|
326
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
326
|
+
default: n(() => [
|
|
327
|
+
d(v, {
|
|
328
|
+
class: we(["fixed-card hover-card", {
|
|
329
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === y
|
|
327
330
|
}]),
|
|
328
331
|
outlined: "",
|
|
329
|
-
onClick: (
|
|
332
|
+
onClick: (U) => e.selectModule(y)
|
|
330
333
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
+
default: n(() => [
|
|
335
|
+
g.icon ? (I(), _(
|
|
336
|
+
s,
|
|
334
337
|
{
|
|
335
338
|
key: 0,
|
|
336
339
|
size: "50"
|
|
337
340
|
},
|
|
338
341
|
{
|
|
339
|
-
default:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
+
default: n(() => [
|
|
343
|
+
V(
|
|
344
|
+
w(g.icon),
|
|
342
345
|
1
|
|
343
346
|
/* TEXT */
|
|
344
347
|
)
|
|
@@ -348,14 +351,14 @@ function je(e, o, i, r, d, n) {
|
|
|
348
351
|
},
|
|
349
352
|
1024
|
|
350
353
|
/* DYNAMIC_SLOTS */
|
|
351
|
-
)) :
|
|
352
|
-
|
|
354
|
+
)) : q("v-if", !0),
|
|
355
|
+
d(
|
|
353
356
|
a,
|
|
354
357
|
{ class: "text-center" },
|
|
355
358
|
{
|
|
356
|
-
default:
|
|
357
|
-
|
|
358
|
-
|
|
359
|
+
default: n(() => [
|
|
360
|
+
V(
|
|
361
|
+
w(e.$st(g.title)),
|
|
359
362
|
1
|
|
360
363
|
/* TEXT */
|
|
361
364
|
)
|
|
@@ -384,12 +387,12 @@ function je(e, o, i, r, d, n) {
|
|
|
384
387
|
_: 1
|
|
385
388
|
/* STABLE */
|
|
386
389
|
}),
|
|
387
|
-
|
|
388
|
-
default:
|
|
389
|
-
|
|
390
|
+
d(C, { justify: "end" }, {
|
|
391
|
+
default: n(() => [
|
|
392
|
+
d(b, {
|
|
390
393
|
variant: "filled",
|
|
391
394
|
class: "ma-5",
|
|
392
|
-
onClick: o[1] || (o[1] = (
|
|
395
|
+
onClick: o[1] || (o[1] = (g) => e.startApplication(
|
|
393
396
|
e.plugin.selectedMainModuleIndex.value,
|
|
394
397
|
e.plugin.selectedNestedModuleIndex.value,
|
|
395
398
|
e.app,
|
|
@@ -398,9 +401,9 @@ function je(e, o, i, r, d, n) {
|
|
|
398
401
|
)),
|
|
399
402
|
disabled: e.isButtonDisabled
|
|
400
403
|
}, {
|
|
401
|
-
default:
|
|
402
|
-
|
|
403
|
-
|
|
404
|
+
default: n(() => [
|
|
405
|
+
V(
|
|
406
|
+
w(e.$st("moduleSelector.startButton")),
|
|
404
407
|
1
|
|
405
408
|
/* TEXT */
|
|
406
409
|
)
|
|
@@ -421,7 +424,7 @@ function je(e, o, i, r, d, n) {
|
|
|
421
424
|
/* STABLE */
|
|
422
425
|
});
|
|
423
426
|
}
|
|
424
|
-
const
|
|
427
|
+
const mo = /* @__PURE__ */ Y(uo, [["render", co], ["__scopeId", "data-v-29a2202f"]]), re = () => ({
|
|
425
428
|
windowTitle: "moduleSelector.title",
|
|
426
429
|
isActiveOnStart: !0,
|
|
427
430
|
requireModuleSelection: !1,
|
|
@@ -431,20 +434,24 @@ const De = /* @__PURE__ */ Y(Pe, [["render", je], ["__scopeId", "data-v-29a2202f
|
|
|
431
434
|
top: "10%"
|
|
432
435
|
},
|
|
433
436
|
basisModule: void 0,
|
|
434
|
-
modules: []
|
|
435
|
-
|
|
437
|
+
modules: [],
|
|
438
|
+
serverUrl: "",
|
|
439
|
+
projectId: "",
|
|
440
|
+
appId: "",
|
|
441
|
+
token: ""
|
|
442
|
+
}), po = J({
|
|
436
443
|
name: "ModuleEditor",
|
|
437
444
|
components: {
|
|
438
|
-
VcsTextField:
|
|
439
|
-
VcsLabel:
|
|
445
|
+
VcsTextField: ae,
|
|
446
|
+
VcsLabel: Me,
|
|
440
447
|
VCol: X,
|
|
441
448
|
VRow: Q,
|
|
442
|
-
VForm:
|
|
449
|
+
VForm: Ue,
|
|
443
450
|
VContainer: Z,
|
|
444
|
-
VcsFormButton:
|
|
445
|
-
VDivider:
|
|
446
|
-
VCard:
|
|
447
|
-
VcsFormSection:
|
|
451
|
+
VcsFormButton: be,
|
|
452
|
+
VDivider: Xe,
|
|
453
|
+
VCard: ye,
|
|
454
|
+
VcsFormSection: Se
|
|
448
455
|
},
|
|
449
456
|
props: {
|
|
450
457
|
modelValue: {
|
|
@@ -453,42 +460,42 @@ const De = /* @__PURE__ */ Y(Pe, [["render", je], ["__scopeId", "data-v-29a2202f
|
|
|
453
460
|
}
|
|
454
461
|
},
|
|
455
462
|
setup(e) {
|
|
456
|
-
const o =
|
|
463
|
+
const o = k(e.modelValue), t = k(!1);
|
|
457
464
|
return {
|
|
458
465
|
localModuleOptions: o,
|
|
459
|
-
isFormValid:
|
|
466
|
+
isFormValid: t,
|
|
460
467
|
validateForm: () => {
|
|
461
|
-
|
|
468
|
+
t.value = !!o.value.title;
|
|
462
469
|
},
|
|
463
|
-
requiredRule: (
|
|
470
|
+
requiredRule: (l) => !!l || "moduleSelector.configEditor.editorError"
|
|
464
471
|
};
|
|
465
472
|
}
|
|
466
|
-
}),
|
|
467
|
-
function
|
|
468
|
-
const
|
|
469
|
-
return
|
|
470
|
-
default:
|
|
471
|
-
|
|
472
|
-
default:
|
|
473
|
-
|
|
473
|
+
}), fo = { class: "d-flex gc-2 w-100 justify-end pa-2" };
|
|
474
|
+
function vo(e, o, t, r, i, l) {
|
|
475
|
+
const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container"), b = m("v-form"), h = m("v-divider"), R = m("VcsFormButton"), g = m("VcsFormSection"), y = m("v-card");
|
|
476
|
+
return I(), _(y, null, {
|
|
477
|
+
default: n(() => [
|
|
478
|
+
d(g, null, {
|
|
479
|
+
default: n(() => [
|
|
480
|
+
d(b, {
|
|
474
481
|
modelValue: e.isFormValid,
|
|
475
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
482
|
+
"onUpdate:modelValue": o[3] || (o[3] = (U) => e.isFormValid = U),
|
|
476
483
|
ref: "form"
|
|
477
484
|
}, {
|
|
478
|
-
default:
|
|
479
|
-
|
|
480
|
-
default:
|
|
481
|
-
|
|
482
|
-
default:
|
|
483
|
-
|
|
484
|
-
default:
|
|
485
|
-
|
|
485
|
+
default: n(() => [
|
|
486
|
+
d(C, { class: "px-2 pt-0 pb-2" }, {
|
|
487
|
+
default: n(() => [
|
|
488
|
+
d(c, { "no-gutters": "" }, {
|
|
489
|
+
default: n(() => [
|
|
490
|
+
d(a, { cols: "6" }, {
|
|
491
|
+
default: n(() => [
|
|
492
|
+
d(s, {
|
|
486
493
|
required: "",
|
|
487
494
|
"html-for": "moduleName"
|
|
488
495
|
}, {
|
|
489
|
-
default:
|
|
490
|
-
|
|
491
|
-
|
|
496
|
+
default: n(() => [
|
|
497
|
+
V(
|
|
498
|
+
w(e.$st("moduleSelector.configEditor.moduleName")),
|
|
492
499
|
1
|
|
493
500
|
/* TEXT */
|
|
494
501
|
)
|
|
@@ -500,13 +507,13 @@ function We(e, o, i, r, d, n) {
|
|
|
500
507
|
_: 1
|
|
501
508
|
/* STABLE */
|
|
502
509
|
}),
|
|
503
|
-
|
|
504
|
-
default:
|
|
505
|
-
|
|
510
|
+
d(a, { cols: "6" }, {
|
|
511
|
+
default: n(() => [
|
|
512
|
+
d(v, {
|
|
506
513
|
id: "moduleName",
|
|
507
514
|
placeholder: "Module Name",
|
|
508
515
|
modelValue: e.localModuleOptions.title,
|
|
509
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
516
|
+
"onUpdate:modelValue": o[0] || (o[0] = (U) => e.localModuleOptions.title = U),
|
|
510
517
|
rules: [e.requiredRule]
|
|
511
518
|
}, null, 8, ["modelValue", "rules"])
|
|
512
519
|
]),
|
|
@@ -517,17 +524,17 @@ function We(e, o, i, r, d, n) {
|
|
|
517
524
|
_: 1
|
|
518
525
|
/* STABLE */
|
|
519
526
|
}),
|
|
520
|
-
|
|
521
|
-
default:
|
|
522
|
-
|
|
523
|
-
default:
|
|
524
|
-
|
|
527
|
+
d(c, { "no-gutters": "" }, {
|
|
528
|
+
default: n(() => [
|
|
529
|
+
d(a, { cols: "6" }, {
|
|
530
|
+
default: n(() => [
|
|
531
|
+
d(s, {
|
|
525
532
|
required: "",
|
|
526
533
|
"html-for": "moduleIcon"
|
|
527
534
|
}, {
|
|
528
|
-
default:
|
|
529
|
-
|
|
530
|
-
|
|
535
|
+
default: n(() => [
|
|
536
|
+
V(
|
|
537
|
+
w(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
531
538
|
1
|
|
532
539
|
/* TEXT */
|
|
533
540
|
)
|
|
@@ -539,13 +546,13 @@ function We(e, o, i, r, d, n) {
|
|
|
539
546
|
_: 1
|
|
540
547
|
/* STABLE */
|
|
541
548
|
}),
|
|
542
|
-
|
|
543
|
-
default:
|
|
544
|
-
|
|
549
|
+
d(a, { cols: "6" }, {
|
|
550
|
+
default: n(() => [
|
|
551
|
+
d(v, {
|
|
545
552
|
id: "moduleIcon",
|
|
546
553
|
placeholder: "Icon Name",
|
|
547
554
|
modelValue: e.localModuleOptions.icon,
|
|
548
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
555
|
+
"onUpdate:modelValue": o[1] || (o[1] = (U) => e.localModuleOptions.icon = U),
|
|
549
556
|
rules: [e.requiredRule]
|
|
550
557
|
}, null, 8, ["modelValue", "rules"])
|
|
551
558
|
]),
|
|
@@ -556,17 +563,17 @@ function We(e, o, i, r, d, n) {
|
|
|
556
563
|
_: 1
|
|
557
564
|
/* STABLE */
|
|
558
565
|
}),
|
|
559
|
-
|
|
560
|
-
default:
|
|
561
|
-
|
|
562
|
-
default:
|
|
563
|
-
|
|
566
|
+
d(c, { "no-gutters": "" }, {
|
|
567
|
+
default: n(() => [
|
|
568
|
+
d(a, { cols: "6" }, {
|
|
569
|
+
default: n(() => [
|
|
570
|
+
d(s, {
|
|
564
571
|
required: "",
|
|
565
572
|
"html-for": "moduleUrl"
|
|
566
573
|
}, {
|
|
567
|
-
default:
|
|
568
|
-
|
|
569
|
-
|
|
574
|
+
default: n(() => [
|
|
575
|
+
V(
|
|
576
|
+
w(e.$st("moduleSelector.configEditor.moduleUrl")),
|
|
570
577
|
1
|
|
571
578
|
/* TEXT */
|
|
572
579
|
)
|
|
@@ -578,13 +585,13 @@ function We(e, o, i, r, d, n) {
|
|
|
578
585
|
_: 1
|
|
579
586
|
/* STABLE */
|
|
580
587
|
}),
|
|
581
|
-
|
|
582
|
-
default:
|
|
583
|
-
|
|
588
|
+
d(a, { cols: "6" }, {
|
|
589
|
+
default: n(() => [
|
|
590
|
+
d(v, {
|
|
584
591
|
id: "moduleUrl",
|
|
585
592
|
placeholder: "URL",
|
|
586
593
|
modelValue: e.localModuleOptions.moduleUrl,
|
|
587
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
594
|
+
"onUpdate:modelValue": o[2] || (o[2] = (U) => e.localModuleOptions.moduleUrl = U),
|
|
588
595
|
rules: [e.requiredRule]
|
|
589
596
|
}, null, 8, ["modelValue", "rules"])
|
|
590
597
|
]),
|
|
@@ -603,18 +610,18 @@ function We(e, o, i, r, d, n) {
|
|
|
603
610
|
_: 1
|
|
604
611
|
/* STABLE */
|
|
605
612
|
}, 8, ["modelValue"]),
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
613
|
+
d(h),
|
|
614
|
+
fe("div", fo, [
|
|
615
|
+
d(R, {
|
|
609
616
|
disabled: !e.isFormValid,
|
|
610
617
|
onClick: o[4] || (o[4] = () => {
|
|
611
618
|
e.$emit("submit", e.localModuleOptions);
|
|
612
619
|
}),
|
|
613
620
|
variant: "filled"
|
|
614
621
|
}, {
|
|
615
|
-
default:
|
|
616
|
-
|
|
617
|
-
|
|
622
|
+
default: n(() => [
|
|
623
|
+
V(
|
|
624
|
+
w(e.$st("components.apply")),
|
|
618
625
|
1
|
|
619
626
|
/* TEXT */
|
|
620
627
|
)
|
|
@@ -622,12 +629,12 @@ function We(e, o, i, r, d, n) {
|
|
|
622
629
|
_: 1
|
|
623
630
|
/* STABLE */
|
|
624
631
|
}, 8, ["disabled"]),
|
|
625
|
-
|
|
626
|
-
onClick: o[5] || (o[5] = (
|
|
632
|
+
d(R, {
|
|
633
|
+
onClick: o[5] || (o[5] = (U) => e.$emit("close"))
|
|
627
634
|
}, {
|
|
628
|
-
default:
|
|
629
|
-
|
|
630
|
-
|
|
635
|
+
default: n(() => [
|
|
636
|
+
V(
|
|
637
|
+
w(e.$st("components.cancel")),
|
|
631
638
|
1
|
|
632
639
|
/* TEXT */
|
|
633
640
|
)
|
|
@@ -645,14 +652,14 @@ function We(e, o, i, r, d, n) {
|
|
|
645
652
|
/* STABLE */
|
|
646
653
|
});
|
|
647
654
|
}
|
|
648
|
-
const
|
|
655
|
+
const go = /* @__PURE__ */ Y(po, [["render", vo]]), ho = J({
|
|
649
656
|
name: "WindowPositionSettings",
|
|
650
657
|
components: {
|
|
651
658
|
VContainer: Z,
|
|
652
659
|
VRow: Q,
|
|
653
660
|
VCol: X,
|
|
654
|
-
VcsCheckbox:
|
|
655
|
-
VcsTextField:
|
|
661
|
+
VcsCheckbox: _e,
|
|
662
|
+
VcsTextField: ae
|
|
656
663
|
},
|
|
657
664
|
props: {
|
|
658
665
|
modelValue: {
|
|
@@ -665,55 +672,55 @@ const He = /* @__PURE__ */ Y(ze, [["render", We]]), Ke = J({
|
|
|
665
672
|
}
|
|
666
673
|
},
|
|
667
674
|
setup(e, { emit: o }) {
|
|
668
|
-
const
|
|
675
|
+
const t = Re(
|
|
669
676
|
e,
|
|
670
677
|
"modelValue",
|
|
671
678
|
o
|
|
672
679
|
);
|
|
673
680
|
return {
|
|
674
|
-
inputs:
|
|
675
|
-
(
|
|
676
|
-
key:
|
|
677
|
-
checkbox:
|
|
678
|
-
input:
|
|
681
|
+
inputs: H(() => e.positionKeys.reduce(
|
|
682
|
+
(i, l) => (i[l] = {
|
|
683
|
+
key: l,
|
|
684
|
+
checkbox: De(t, l, null),
|
|
685
|
+
input: H({
|
|
679
686
|
get() {
|
|
680
|
-
return
|
|
687
|
+
return t.value[l];
|
|
681
688
|
},
|
|
682
|
-
set(
|
|
683
|
-
|
|
689
|
+
set(s) {
|
|
690
|
+
t.value[l] = s;
|
|
684
691
|
}
|
|
685
692
|
}),
|
|
686
693
|
placeholder: "auto"
|
|
687
|
-
},
|
|
694
|
+
}, i),
|
|
688
695
|
{}
|
|
689
696
|
))
|
|
690
697
|
};
|
|
691
698
|
}
|
|
692
699
|
});
|
|
693
|
-
function
|
|
694
|
-
const
|
|
695
|
-
return
|
|
696
|
-
default:
|
|
697
|
-
(
|
|
698
|
-
|
|
700
|
+
function bo(e, o, t, r, i, l) {
|
|
701
|
+
const s = m("VcsCheckbox"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("v-container");
|
|
702
|
+
return I(), _(C, { class: "py-0 px-1" }, {
|
|
703
|
+
default: n(() => [
|
|
704
|
+
(I(!0), ie(
|
|
705
|
+
de,
|
|
699
706
|
null,
|
|
700
|
-
|
|
707
|
+
pe(e.inputs, ({ key: b, checkbox: h, input: R, placeholder: g }) => (I(), _(
|
|
701
708
|
c,
|
|
702
709
|
{
|
|
703
710
|
"no-gutters": "",
|
|
704
|
-
key:
|
|
711
|
+
key: b
|
|
705
712
|
},
|
|
706
713
|
{
|
|
707
|
-
default:
|
|
708
|
-
|
|
714
|
+
default: n(() => [
|
|
715
|
+
d(
|
|
709
716
|
a,
|
|
710
717
|
null,
|
|
711
718
|
{
|
|
712
|
-
default:
|
|
713
|
-
|
|
714
|
-
label: `appConfigurator.editors.featureInfo.window.position.${
|
|
715
|
-
modelValue:
|
|
716
|
-
"onUpdate:modelValue": (
|
|
719
|
+
default: n(() => [
|
|
720
|
+
d(s, {
|
|
721
|
+
label: `appConfigurator.editors.featureInfo.window.position.${b}`,
|
|
722
|
+
modelValue: h.value,
|
|
723
|
+
"onUpdate:modelValue": (y) => h.value = y
|
|
717
724
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
|
|
718
725
|
]),
|
|
719
726
|
_: 2
|
|
@@ -722,17 +729,17 @@ function Je(e, o, i, r, d, n) {
|
|
|
722
729
|
1024
|
|
723
730
|
/* DYNAMIC_SLOTS */
|
|
724
731
|
),
|
|
725
|
-
|
|
732
|
+
d(
|
|
726
733
|
a,
|
|
727
734
|
null,
|
|
728
735
|
{
|
|
729
|
-
default:
|
|
730
|
-
|
|
736
|
+
default: n(() => [
|
|
737
|
+
d(v, {
|
|
731
738
|
clearable: "",
|
|
732
|
-
disabled:
|
|
733
|
-
placeholder:
|
|
734
|
-
modelValue:
|
|
735
|
-
"onUpdate:modelValue": (
|
|
739
|
+
disabled: !h.value,
|
|
740
|
+
placeholder: g,
|
|
741
|
+
modelValue: R.value,
|
|
742
|
+
"onUpdate:modelValue": (y) => R.value = y,
|
|
736
743
|
modelModifiers: { trim: !0 }
|
|
737
744
|
}, null, 8, ["disabled", "placeholder", "modelValue", "onUpdate:modelValue"])
|
|
738
745
|
]),
|
|
@@ -757,23 +764,610 @@ function Je(e, o, i, r, d, n) {
|
|
|
757
764
|
/* STABLE */
|
|
758
765
|
});
|
|
759
766
|
}
|
|
760
|
-
const
|
|
767
|
+
const Mo = /* @__PURE__ */ Y(ho, [["render", bo]]);
|
|
768
|
+
let Ne = "";
|
|
769
|
+
function So(e) {
|
|
770
|
+
Ne = e;
|
|
771
|
+
}
|
|
772
|
+
let ve;
|
|
773
|
+
function Vo(e) {
|
|
774
|
+
ve = e;
|
|
775
|
+
}
|
|
776
|
+
let $e = {};
|
|
777
|
+
function yo() {
|
|
778
|
+
return ve ? {
|
|
779
|
+
authorization: `Bearer ${ve}`,
|
|
780
|
+
...$e
|
|
781
|
+
} : { ...$e };
|
|
782
|
+
}
|
|
783
|
+
class wo extends Error {
|
|
784
|
+
constructor(t, r, i, l, s) {
|
|
785
|
+
super(`Failed to ${r} ${i}. Got status ${t} with reason: ${l}`);
|
|
786
|
+
W(this, "url");
|
|
787
|
+
W(this, "method");
|
|
788
|
+
W(this, "status");
|
|
789
|
+
W(this, "reason");
|
|
790
|
+
W(this, "error");
|
|
791
|
+
this.error = s, this.method = r, this.status = t, this.url = i, this.reason = l;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function Eo(e, o, t) {
|
|
795
|
+
let r = e;
|
|
796
|
+
Object.keys(t).filter((l) => t[l] === "path").map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
|
|
797
|
+
r = r.replace(`{${l}}`, s.toString());
|
|
798
|
+
});
|
|
799
|
+
const i = new URL(r, Ne);
|
|
800
|
+
return Object.keys(t).filter((l) => t[l] === "query" && o[l]).map((l) => ({ key: l, param: o[l] })).forEach(({ key: l, param: s }) => {
|
|
801
|
+
Array.isArray(s) ? s.forEach((a) => {
|
|
802
|
+
i.searchParams.append(l, a.toString());
|
|
803
|
+
}) : i.searchParams.append(l, s.toString());
|
|
804
|
+
}), i.toString();
|
|
805
|
+
}
|
|
806
|
+
async function Io(e, o, t, r = void 0, i = {}) {
|
|
807
|
+
const l = await fetch(e, {
|
|
808
|
+
method: o,
|
|
809
|
+
body: r,
|
|
810
|
+
headers: { ...i, ...yo() },
|
|
811
|
+
redirect: "follow"
|
|
812
|
+
});
|
|
813
|
+
if (l.status === t)
|
|
814
|
+
return l;
|
|
815
|
+
let s = await l.text(), a;
|
|
816
|
+
try {
|
|
817
|
+
const v = JSON.parse(s);
|
|
818
|
+
v.reason && ({ reason: s } = v), v.error && ({ error: a } = v);
|
|
819
|
+
} catch {
|
|
820
|
+
}
|
|
821
|
+
throw new wo(l.status, o, e, s, a);
|
|
822
|
+
}
|
|
823
|
+
async function Co(e, o, t, r = void 0, i = {}) {
|
|
824
|
+
return (await Io(e, o, t, r, i)).json();
|
|
825
|
+
}
|
|
826
|
+
async function $o(e) {
|
|
827
|
+
const o = "api/v1/project/{projectId}/modules", t = "get", i = Eo(o, e, {
|
|
828
|
+
projectId: "path",
|
|
829
|
+
limit: "query",
|
|
830
|
+
page: "query",
|
|
831
|
+
sort: "query",
|
|
832
|
+
orderBy: "query",
|
|
833
|
+
name: "query"
|
|
834
|
+
});
|
|
835
|
+
return Co(i, t, 200, void 0, void 0);
|
|
836
|
+
}
|
|
837
|
+
const N = {
|
|
838
|
+
OFF: 1,
|
|
839
|
+
ERROR: 2,
|
|
840
|
+
WARN: 4,
|
|
841
|
+
INFO: 8,
|
|
842
|
+
DEBUG: 16
|
|
843
|
+
}, G = {
|
|
844
|
+
ERROR: 0,
|
|
845
|
+
WARN: 0,
|
|
846
|
+
INFO: 0,
|
|
847
|
+
DEBUG: 0
|
|
848
|
+
};
|
|
849
|
+
G.ERROR = N.ERROR | N.WARN | N.INFO | N.DEBUG;
|
|
850
|
+
G.WARN = N.WARN | N.INFO | N.DEBUG;
|
|
851
|
+
G.INFO = N.INFO | N.DEBUG;
|
|
852
|
+
G.DEBUG = N.DEBUG;
|
|
853
|
+
const K = {
|
|
854
|
+
useTimestamp: !1,
|
|
855
|
+
logLevel: N.INFO
|
|
856
|
+
}, x = /* @__PURE__ */ new Map();
|
|
857
|
+
x.set(N.ERROR, "error");
|
|
858
|
+
x.set(N.WARN, "warn");
|
|
859
|
+
x.set(N.INFO, "info");
|
|
860
|
+
x.set(N.DEBUG, "log");
|
|
861
|
+
class Oe {
|
|
862
|
+
/**
|
|
863
|
+
* @param {string=} className
|
|
864
|
+
*/
|
|
865
|
+
constructor(o) {
|
|
866
|
+
this.className = o, this.deprecations = /* @__PURE__ */ new Map();
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* Logs an error message
|
|
870
|
+
* @param {string} msg The message to log.
|
|
871
|
+
* @param {...any} optArgs
|
|
872
|
+
*/
|
|
873
|
+
error(o, ...t) {
|
|
874
|
+
K.logLevel & G.ERROR && this._log(String(o), N.ERROR, t);
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Logs a warning message
|
|
878
|
+
* @param {string} msg The message to log.
|
|
879
|
+
* @param {...any} optArgs
|
|
880
|
+
*/
|
|
881
|
+
warning(o, ...t) {
|
|
882
|
+
K.logLevel & G.WARN && this._log(String(o), N.WARN, t);
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Deprecate a function. deprecations are stored on the logger
|
|
886
|
+
* @param {string} functionName
|
|
887
|
+
* @param {string=} alternativeFunctionName
|
|
888
|
+
*/
|
|
889
|
+
deprecate(o, t) {
|
|
890
|
+
const r = String(o), i = t ? String(t) : null;
|
|
891
|
+
if (!this.deprecations.has(r)) {
|
|
892
|
+
this.deprecations.set(r, i || null);
|
|
893
|
+
let l = `${r} has been deprecated and will be removed`;
|
|
894
|
+
i && (l = `${l}. ${i}`), this.warning(l);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Logs an info message
|
|
899
|
+
* @param {string} msg The message to log.
|
|
900
|
+
* @param {...any} optArgs
|
|
901
|
+
*/
|
|
902
|
+
info(o, ...t) {
|
|
903
|
+
K.logLevel & G.INFO && this._log(String(o), N.INFO, t);
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Logs a debug message
|
|
907
|
+
* @param {string} msg The message to log.
|
|
908
|
+
* @param {...any} optArgs
|
|
909
|
+
*/
|
|
910
|
+
debug(o, ...t) {
|
|
911
|
+
K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* Alias for debug
|
|
915
|
+
* @param {string} msg The message to log.
|
|
916
|
+
* @param {...any} optArgs
|
|
917
|
+
*/
|
|
918
|
+
log(o, ...t) {
|
|
919
|
+
K.logLevel & G.DEBUG && this._log(String(o), N.DEBUG, t);
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Logs a message
|
|
923
|
+
* @param {string} msg The message to log.
|
|
924
|
+
* @param {LOG_LEVEL} level
|
|
925
|
+
* @param {Array} optArgs
|
|
926
|
+
* @private
|
|
927
|
+
*/
|
|
928
|
+
_log(o, t, r) {
|
|
929
|
+
let i = o;
|
|
930
|
+
this.className && (i = `[${this.className}] ${i}`), console[x.get(t)](i, ...r), t & N.ERROR && (console.group(), console.trace(), console.groupEnd());
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
const ge = /* @__PURE__ */ new Map();
|
|
934
|
+
let me;
|
|
935
|
+
function _o() {
|
|
936
|
+
return me || (me = new Oe()), me;
|
|
937
|
+
}
|
|
938
|
+
function ko(e) {
|
|
939
|
+
const o = new Oe(e);
|
|
940
|
+
return ge.set(e, o), o;
|
|
941
|
+
}
|
|
942
|
+
function he(e) {
|
|
943
|
+
return e ? ge.has(e) ? ge.get(e) : ko(e) : _o();
|
|
944
|
+
}
|
|
945
|
+
function Uo(e) {
|
|
946
|
+
try {
|
|
947
|
+
if (e.serverUrl) {
|
|
948
|
+
const o = new URL(
|
|
949
|
+
e.serverUrl,
|
|
950
|
+
window.location.href
|
|
951
|
+
).toString();
|
|
952
|
+
So(o);
|
|
953
|
+
const t = e.token || localStorage.getItem("Meteor.loginToken");
|
|
954
|
+
t && (Vo(t), he(j).info("Publisher connection successful"));
|
|
955
|
+
}
|
|
956
|
+
} catch (o) {
|
|
957
|
+
he(j).error("Failed to connect to publisher", o);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
function Ao(e, o) {
|
|
961
|
+
return new Date(e).toLocaleString(o);
|
|
962
|
+
}
|
|
963
|
+
function No() {
|
|
964
|
+
return [
|
|
965
|
+
{
|
|
966
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.name",
|
|
967
|
+
value: "name"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.type",
|
|
971
|
+
value: "type",
|
|
972
|
+
sortable: !1
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.description",
|
|
976
|
+
value: "description"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.createdAt",
|
|
980
|
+
value: "createdAt",
|
|
981
|
+
sort: (e, o) => new Date(o).getTime() - new Date(e).getTime()
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.updatedAt",
|
|
985
|
+
value: "updatedAt",
|
|
986
|
+
sort: (e, o) => new Date(o).getTime() - new Date(e).getTime()
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.createdBy",
|
|
990
|
+
value: "createdBy"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
title: "moduleSelector.configEditor.moduleCloudPicker.headers.updatedBy",
|
|
994
|
+
value: "updatedBy"
|
|
995
|
+
}
|
|
996
|
+
];
|
|
997
|
+
}
|
|
998
|
+
const Oo = J({
|
|
999
|
+
name: "CloudModuleSelector",
|
|
1000
|
+
components: {
|
|
1001
|
+
VcsDataTable: qe,
|
|
1002
|
+
VcsFormButton: be,
|
|
1003
|
+
VTooltip: Ye,
|
|
1004
|
+
VIcon: ke,
|
|
1005
|
+
VCard: ye,
|
|
1006
|
+
VcsLabel: Me,
|
|
1007
|
+
VcsTextField: ae,
|
|
1008
|
+
VcsFormSection: Se,
|
|
1009
|
+
VRow: Q,
|
|
1010
|
+
VCol: X,
|
|
1011
|
+
VForm: Ue,
|
|
1012
|
+
VContainer: Z
|
|
1013
|
+
},
|
|
1014
|
+
props: {
|
|
1015
|
+
modelValue: {
|
|
1016
|
+
type: Object,
|
|
1017
|
+
required: !0
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
setup(e, { emit: o }) {
|
|
1021
|
+
const t = Ve("vcsApp"), r = t.plugins.getByKey(j), i = t.plugins.getByKey(
|
|
1022
|
+
"@vcmap/app-configurator"
|
|
1023
|
+
);
|
|
1024
|
+
Uo(i.config || r.config);
|
|
1025
|
+
const l = k(!0), s = k([]), a = k(0), v = k(0), c = k([void 0]), C = No(), b = /* @__PURE__ */ new Map(), h = k(e.modelValue), R = H(() => h.value.id === ""), g = k(!1), y = () => {
|
|
1026
|
+
var D, L;
|
|
1027
|
+
g.value = !!((D = h.value) != null && D.title) && !!((L = h.value) != null && L.icon);
|
|
1028
|
+
}, U = {
|
|
1029
|
+
standalone: "$vcsGlobeNature",
|
|
1030
|
+
extension: "$vcsShapes"
|
|
1031
|
+
};
|
|
1032
|
+
function P(D) {
|
|
1033
|
+
var $;
|
|
1034
|
+
const { itemsPerPage: L, page: te, search: le, sortBy: ne, sortDesc: u } = D;
|
|
1035
|
+
l.value = !0, ($ = i == null ? void 0 : i.config) != null && $.projectId && $o({
|
|
1036
|
+
projectId: i.config.projectId,
|
|
1037
|
+
limit: L,
|
|
1038
|
+
page: te - 1,
|
|
1039
|
+
name: le,
|
|
1040
|
+
orderBy: ne,
|
|
1041
|
+
sort: u != null && u[0] ? "desc" : "asc"
|
|
1042
|
+
}).then((p) => {
|
|
1043
|
+
s.value = p.items.map((M) => {
|
|
1044
|
+
var T, E;
|
|
1045
|
+
const A = {
|
|
1046
|
+
name: M.name,
|
|
1047
|
+
description: M.description,
|
|
1048
|
+
createdAt: M.createdAt,
|
|
1049
|
+
updatedAt: M.updatedAt,
|
|
1050
|
+
createdBy: (i == null ? void 0 : i.getUserName(M.createdBy)) || M.createdBy,
|
|
1051
|
+
updatedBy: (i == null ? void 0 : i.getUserName(M.updatedBy)) || M.updatedBy,
|
|
1052
|
+
_id: M._id
|
|
1053
|
+
};
|
|
1054
|
+
return (((T = M.maps) == null ? void 0 : T.length) ?? 0) > 0 && (((E = M.layers) == null ? void 0 : E.length) ?? 0) > 0 ? A.type = "standalone" : A.type = "extension", A.disabled = !!t.getModuleById(M._id), b.set(M._id, M), A;
|
|
1055
|
+
}), a.value = p.totalCount, v.value = p.totalPages;
|
|
1056
|
+
}).catch((p) => {
|
|
1057
|
+
he("CloudModuleSelector.vue").error(
|
|
1058
|
+
"Failed to load project modules.",
|
|
1059
|
+
p
|
|
1060
|
+
);
|
|
1061
|
+
}).finally(() => {
|
|
1062
|
+
l.value = !1;
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
return {
|
|
1066
|
+
selectedItem: h,
|
|
1067
|
+
isItemIdEmpty: R,
|
|
1068
|
+
loading: l,
|
|
1069
|
+
items: s,
|
|
1070
|
+
totalItems: a,
|
|
1071
|
+
totalPages: v,
|
|
1072
|
+
headers: C,
|
|
1073
|
+
selected: c,
|
|
1074
|
+
typeIcon(D) {
|
|
1075
|
+
return U[D];
|
|
1076
|
+
},
|
|
1077
|
+
formatDate: Ao,
|
|
1078
|
+
getItems: P,
|
|
1079
|
+
close: () => {
|
|
1080
|
+
o("close");
|
|
1081
|
+
},
|
|
1082
|
+
addSelected: () => {
|
|
1083
|
+
var D;
|
|
1084
|
+
c.value.length > 0 && ((D = c.value[0]) == null ? void 0 : D._id) !== "" && (h.value.id = c.value[0]._id, h.value.title = c.value[0].name, h.value.icon = "", h.value.moduleUrl = `configs/${c.value[0]._id}.json`);
|
|
1085
|
+
},
|
|
1086
|
+
isFValid: g,
|
|
1087
|
+
validateForm: y,
|
|
1088
|
+
removeSelected: () => {
|
|
1089
|
+
h.value.id = "", h.value.title = "", h.value.icon = "", h.value.moduleUrl = "";
|
|
1090
|
+
},
|
|
1091
|
+
requiredRule: (D) => !!D || "moduleSelector.configEditor.editorError"
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
}), Bo = { class: "d-flex px-2" };
|
|
1095
|
+
function To(e, o, t, r, i, l) {
|
|
1096
|
+
const s = m("v-icon"), a = m("v-tooltip"), v = m("VcsDataTable"), c = m("VcsLabel"), C = m("v-col"), b = m("VcsTextField"), h = m("v-row"), R = m("v-container"), g = m("v-form"), y = m("VcsFormSection"), U = m("VcsFormButton"), P = m("v-card");
|
|
1097
|
+
return I(), _(P, null, {
|
|
1098
|
+
default: n(() => [
|
|
1099
|
+
fe("div", null, [
|
|
1100
|
+
e.isItemIdEmpty ? (I(), _(v, {
|
|
1101
|
+
key: 0,
|
|
1102
|
+
"base-component": "VDataTableServer",
|
|
1103
|
+
loading: e.loading,
|
|
1104
|
+
items: e.items,
|
|
1105
|
+
"server-items-length": e.totalItems,
|
|
1106
|
+
"server-pages-length": e.totalPages,
|
|
1107
|
+
"searchbar-placeholder": e.$t("moduleSelector.configEditor.moduleCloudPicker.searchName"),
|
|
1108
|
+
headers: e.headers,
|
|
1109
|
+
"select-strategy": "single",
|
|
1110
|
+
"return-object": "",
|
|
1111
|
+
"show-select": "",
|
|
1112
|
+
"item-value": "_id",
|
|
1113
|
+
modelValue: e.selected,
|
|
1114
|
+
"onUpdate:modelValue": o[0] || (o[0] = (O) => e.selected = O),
|
|
1115
|
+
"onUpdate:items": e.getItems
|
|
1116
|
+
}, {
|
|
1117
|
+
"item.type": n(({ item: O }) => [
|
|
1118
|
+
d(
|
|
1119
|
+
s,
|
|
1120
|
+
We(He({ ...e.$attrs })),
|
|
1121
|
+
{
|
|
1122
|
+
default: n(() => [
|
|
1123
|
+
V(
|
|
1124
|
+
w(e.typeIcon(O.type)),
|
|
1125
|
+
1
|
|
1126
|
+
/* TEXT */
|
|
1127
|
+
)
|
|
1128
|
+
]),
|
|
1129
|
+
_: 2
|
|
1130
|
+
/* DYNAMIC */
|
|
1131
|
+
},
|
|
1132
|
+
1040
|
|
1133
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
1134
|
+
),
|
|
1135
|
+
d(
|
|
1136
|
+
a,
|
|
1137
|
+
{
|
|
1138
|
+
activator: "parent",
|
|
1139
|
+
location: "right"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
default: n(() => [
|
|
1143
|
+
V(
|
|
1144
|
+
w(e.$t(`appConfigurator.dialogs.vcsModuleTable.${O.type}`)),
|
|
1145
|
+
1
|
|
1146
|
+
/* TEXT */
|
|
1147
|
+
)
|
|
1148
|
+
]),
|
|
1149
|
+
_: 2
|
|
1150
|
+
/* DYNAMIC */
|
|
1151
|
+
},
|
|
1152
|
+
1024
|
|
1153
|
+
/* DYNAMIC_SLOTS */
|
|
1154
|
+
)
|
|
1155
|
+
]),
|
|
1156
|
+
"item.createdAt": n(({ item: O }) => [
|
|
1157
|
+
V(
|
|
1158
|
+
w(e.formatDate(O.createdAt, e.$i18n.locale)),
|
|
1159
|
+
1
|
|
1160
|
+
/* TEXT */
|
|
1161
|
+
)
|
|
1162
|
+
]),
|
|
1163
|
+
"item.updatedAt": n(({ item: O }) => [
|
|
1164
|
+
V(
|
|
1165
|
+
w(e.formatDate(O.updatedAt, e.$i18n.locale)),
|
|
1166
|
+
1
|
|
1167
|
+
/* TEXT */
|
|
1168
|
+
)
|
|
1169
|
+
]),
|
|
1170
|
+
_: 1
|
|
1171
|
+
/* STABLE */
|
|
1172
|
+
}, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "modelValue", "onUpdate:items"])) : (I(), _(y, { key: 1 }, {
|
|
1173
|
+
default: n(() => [
|
|
1174
|
+
d(g, {
|
|
1175
|
+
modelValue: e.isFValid,
|
|
1176
|
+
"onUpdate:modelValue": o[3] || (o[3] = (O) => e.isFValid = O),
|
|
1177
|
+
ref: "form"
|
|
1178
|
+
}, {
|
|
1179
|
+
default: n(() => [
|
|
1180
|
+
d(R, { class: "px-2 pt-0 pb-2" }, {
|
|
1181
|
+
default: n(() => [
|
|
1182
|
+
d(h, {
|
|
1183
|
+
"no-gutters": "",
|
|
1184
|
+
class: "px-2"
|
|
1185
|
+
}, {
|
|
1186
|
+
default: n(() => [
|
|
1187
|
+
d(C, { cols: "2" }, {
|
|
1188
|
+
default: n(() => [
|
|
1189
|
+
d(c, {
|
|
1190
|
+
required: "",
|
|
1191
|
+
"html-for": "moduleName"
|
|
1192
|
+
}, {
|
|
1193
|
+
default: n(() => [
|
|
1194
|
+
V(
|
|
1195
|
+
w(e.$st("moduleSelector.configEditor.moduleName")),
|
|
1196
|
+
1
|
|
1197
|
+
/* TEXT */
|
|
1198
|
+
)
|
|
1199
|
+
]),
|
|
1200
|
+
_: 1
|
|
1201
|
+
/* STABLE */
|
|
1202
|
+
})
|
|
1203
|
+
]),
|
|
1204
|
+
_: 1
|
|
1205
|
+
/* STABLE */
|
|
1206
|
+
}),
|
|
1207
|
+
d(C, { cols: "4" }, {
|
|
1208
|
+
default: n(() => [
|
|
1209
|
+
d(b, {
|
|
1210
|
+
id: "moduleName",
|
|
1211
|
+
placeholder: "Module Name",
|
|
1212
|
+
modelValue: e.selectedItem.title,
|
|
1213
|
+
"onUpdate:modelValue": o[1] || (o[1] = (O) => e.selectedItem.title = O),
|
|
1214
|
+
rules: [e.requiredRule]
|
|
1215
|
+
}, null, 8, ["modelValue", "rules"])
|
|
1216
|
+
]),
|
|
1217
|
+
_: 1
|
|
1218
|
+
/* STABLE */
|
|
1219
|
+
})
|
|
1220
|
+
]),
|
|
1221
|
+
_: 1
|
|
1222
|
+
/* STABLE */
|
|
1223
|
+
}),
|
|
1224
|
+
d(h, {
|
|
1225
|
+
"no-gutters": "",
|
|
1226
|
+
class: "px-2"
|
|
1227
|
+
}, {
|
|
1228
|
+
default: n(() => [
|
|
1229
|
+
d(C, { cols: "2" }, {
|
|
1230
|
+
default: n(() => [
|
|
1231
|
+
d(c, {
|
|
1232
|
+
required: "",
|
|
1233
|
+
"html-for": "moduleIcon"
|
|
1234
|
+
}, {
|
|
1235
|
+
default: n(() => [
|
|
1236
|
+
V(
|
|
1237
|
+
w(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
1238
|
+
1
|
|
1239
|
+
/* TEXT */
|
|
1240
|
+
)
|
|
1241
|
+
]),
|
|
1242
|
+
_: 1
|
|
1243
|
+
/* STABLE */
|
|
1244
|
+
})
|
|
1245
|
+
]),
|
|
1246
|
+
_: 1
|
|
1247
|
+
/* STABLE */
|
|
1248
|
+
}),
|
|
1249
|
+
d(C, { cols: "4" }, {
|
|
1250
|
+
default: n(() => [
|
|
1251
|
+
d(b, {
|
|
1252
|
+
id: "moduleIcon",
|
|
1253
|
+
placeholder: "Icon Name",
|
|
1254
|
+
modelValue: e.selectedItem.icon,
|
|
1255
|
+
"onUpdate:modelValue": o[2] || (o[2] = (O) => e.selectedItem.icon = O),
|
|
1256
|
+
rules: [e.requiredRule]
|
|
1257
|
+
}, null, 8, ["modelValue", "rules"])
|
|
1258
|
+
]),
|
|
1259
|
+
_: 1
|
|
1260
|
+
/* STABLE */
|
|
1261
|
+
})
|
|
1262
|
+
]),
|
|
1263
|
+
_: 1
|
|
1264
|
+
/* STABLE */
|
|
1265
|
+
})
|
|
1266
|
+
]),
|
|
1267
|
+
_: 1
|
|
1268
|
+
/* STABLE */
|
|
1269
|
+
})
|
|
1270
|
+
]),
|
|
1271
|
+
_: 1
|
|
1272
|
+
/* STABLE */
|
|
1273
|
+
}, 8, ["modelValue"])
|
|
1274
|
+
]),
|
|
1275
|
+
_: 1
|
|
1276
|
+
/* STABLE */
|
|
1277
|
+
})),
|
|
1278
|
+
fe("div", Bo, [
|
|
1279
|
+
e.isItemIdEmpty ? (I(), _(U, {
|
|
1280
|
+
key: 0,
|
|
1281
|
+
variant: "filled",
|
|
1282
|
+
disabled: e.selected[0] === void 0,
|
|
1283
|
+
class: "ma-2",
|
|
1284
|
+
onClick: e.addSelected,
|
|
1285
|
+
tooltip: "appConfigurator.dialogs.addTooltip",
|
|
1286
|
+
"tooltip-position": "bottom"
|
|
1287
|
+
}, {
|
|
1288
|
+
default: n(() => [
|
|
1289
|
+
V(
|
|
1290
|
+
w(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
|
|
1291
|
+
1
|
|
1292
|
+
/* TEXT */
|
|
1293
|
+
)
|
|
1294
|
+
]),
|
|
1295
|
+
_: 1
|
|
1296
|
+
/* STABLE */
|
|
1297
|
+
}, 8, ["disabled", "onClick"])) : q("v-if", !0),
|
|
1298
|
+
e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
|
|
1299
|
+
key: 1,
|
|
1300
|
+
disabled: !e.isFValid,
|
|
1301
|
+
variant: "filled",
|
|
1302
|
+
class: "ma-2",
|
|
1303
|
+
onClick: o[4] || (o[4] = () => {
|
|
1304
|
+
e.$emit("submit", e.selectedItem);
|
|
1305
|
+
})
|
|
1306
|
+
}, {
|
|
1307
|
+
default: n(() => [
|
|
1308
|
+
V(
|
|
1309
|
+
w(e.$t("components.apply")),
|
|
1310
|
+
1
|
|
1311
|
+
/* TEXT */
|
|
1312
|
+
)
|
|
1313
|
+
]),
|
|
1314
|
+
_: 1
|
|
1315
|
+
/* STABLE */
|
|
1316
|
+
}, 8, ["disabled"])),
|
|
1317
|
+
e.isItemIdEmpty ? q("v-if", !0) : (I(), _(U, {
|
|
1318
|
+
key: 2,
|
|
1319
|
+
onClick: e.removeSelected,
|
|
1320
|
+
class: "ma-2"
|
|
1321
|
+
}, {
|
|
1322
|
+
default: n(() => [
|
|
1323
|
+
V(
|
|
1324
|
+
w(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
|
|
1325
|
+
1
|
|
1326
|
+
/* TEXT */
|
|
1327
|
+
)
|
|
1328
|
+
]),
|
|
1329
|
+
_: 1
|
|
1330
|
+
/* STABLE */
|
|
1331
|
+
}, 8, ["onClick"])),
|
|
1332
|
+
d(U, {
|
|
1333
|
+
class: "ma-2",
|
|
1334
|
+
onClick: e.close
|
|
1335
|
+
}, {
|
|
1336
|
+
default: n(() => [
|
|
1337
|
+
V(
|
|
1338
|
+
w(e.$t("components.cancel")),
|
|
1339
|
+
1
|
|
1340
|
+
/* TEXT */
|
|
1341
|
+
)
|
|
1342
|
+
]),
|
|
1343
|
+
_: 1
|
|
1344
|
+
/* STABLE */
|
|
1345
|
+
}, 8, ["onClick"])
|
|
1346
|
+
])
|
|
1347
|
+
])
|
|
1348
|
+
]),
|
|
1349
|
+
_: 1
|
|
1350
|
+
/* STABLE */
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
const Fo = /* @__PURE__ */ Y(Oo, [["render", To]]), Ro = J({
|
|
761
1354
|
name: "ModuleSelectorConfigEditor",
|
|
762
1355
|
components: {
|
|
763
|
-
VcsCheckbox:
|
|
764
|
-
VDialog:
|
|
765
|
-
VcsList:
|
|
766
|
-
VcsFormSection:
|
|
1356
|
+
VcsCheckbox: _e,
|
|
1357
|
+
VDialog: xe,
|
|
1358
|
+
VcsList: Pe,
|
|
1359
|
+
VcsFormSection: Se,
|
|
767
1360
|
VRow: Q,
|
|
768
|
-
VcsLabel:
|
|
769
|
-
AbstractConfigEditor:
|
|
770
|
-
VcsTextField:
|
|
1361
|
+
VcsLabel: Me,
|
|
1362
|
+
AbstractConfigEditor: Ge,
|
|
1363
|
+
VcsTextField: ae,
|
|
771
1364
|
VCol: X,
|
|
772
1365
|
VContainer: Z,
|
|
773
|
-
ModuleEditor:
|
|
774
|
-
VBreadcrumbs:
|
|
775
|
-
VBreadcrumbsItem:
|
|
776
|
-
WindowPositionSettings:
|
|
1366
|
+
ModuleEditor: go,
|
|
1367
|
+
VBreadcrumbs: eo,
|
|
1368
|
+
VBreadcrumbsItem: oo,
|
|
1369
|
+
WindowPositionSettings: Mo,
|
|
1370
|
+
VcsModuleTable: Fo
|
|
777
1371
|
},
|
|
778
1372
|
props: {
|
|
779
1373
|
getConfig: {
|
|
@@ -786,208 +1380,265 @@ const Ze = /* @__PURE__ */ Y(Ke, [["render", Je]]), Qe = J({
|
|
|
786
1380
|
}
|
|
787
1381
|
},
|
|
788
1382
|
setup(e) {
|
|
789
|
-
var
|
|
790
|
-
const o =
|
|
791
|
-
r.value = {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
1383
|
+
var te, le, ne;
|
|
1384
|
+
const o = Ve("vcsApp"), t = k(0), r = k(void 0), i = k([]), l = k(void 0), s = k({ id: "", title: "", icon: "", moduleUrl: "" }), a = k({ id: "", title: "", icon: "", moduleUrl: "" }), v = k(!1), c = k(!1), C = k(!1), b = k(void 0);
|
|
1385
|
+
r.value = {
|
|
1386
|
+
...re(),
|
|
1387
|
+
...e.getConfig()
|
|
1388
|
+
};
|
|
1389
|
+
const h = k();
|
|
1390
|
+
(te = r.value) != null && te.basisModule && (h.value = (le = r.value) == null ? void 0 : le.basisModule);
|
|
1391
|
+
const R = H({
|
|
795
1392
|
get() {
|
|
796
|
-
return !!
|
|
1393
|
+
return !!h.value;
|
|
797
1394
|
},
|
|
798
|
-
set(
|
|
799
|
-
var
|
|
800
|
-
|
|
1395
|
+
set(u) {
|
|
1396
|
+
var $;
|
|
1397
|
+
u ? h.value = (($ = r.value) == null ? void 0 : $.basisModule) || { title: "" } : h.value = null;
|
|
801
1398
|
}
|
|
802
|
-
}),
|
|
803
|
-
function
|
|
804
|
-
var
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
};
|
|
812
|
-
{
|
|
813
|
-
const M = ((C = s.cards) == null ? void 0 : C.map((A) => ({
|
|
814
|
-
title: A.title,
|
|
815
|
-
icon: A.icon,
|
|
816
|
-
moduleUrl: A.moduleUrl,
|
|
817
|
-
type: A.type
|
|
818
|
-
}))) || [];
|
|
819
|
-
return {
|
|
820
|
-
title: s.title,
|
|
821
|
-
type: s.type,
|
|
822
|
-
icon: s.icon,
|
|
823
|
-
...M.length ? { cards: M } : {}
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
const $ = {
|
|
828
|
-
name: "moduleSelector.configEditor.addGroup",
|
|
829
|
-
callback() {
|
|
830
|
-
var M;
|
|
831
|
-
const s = {
|
|
832
|
-
type: "group",
|
|
833
|
-
name: "",
|
|
834
|
-
id: "",
|
|
835
|
-
title: "title",
|
|
836
|
-
icon: "icon",
|
|
837
|
-
cards: []
|
|
838
|
-
};
|
|
839
|
-
(M = d.value) == null || M.push(s), n.value = s;
|
|
840
|
-
const C = d.value.indexOf(s);
|
|
841
|
-
s.id = `${s.title}-${C}`, f.splice(1, 1), f.length > 0 && (f[0].icon = "$vcsPlus", f[0].title = "moduleSelector.configEditor.TooltipAddModule");
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
function U(s) {
|
|
845
|
-
return s.map(g);
|
|
846
|
-
}
|
|
847
|
-
function V(s, C) {
|
|
848
|
-
var A, F, G;
|
|
849
|
-
const M = {
|
|
850
|
-
id: `${s.title}-${C}`,
|
|
851
|
-
name: s.title,
|
|
852
|
-
title: s.title,
|
|
853
|
-
icon: s.icon,
|
|
854
|
-
type: s.type,
|
|
1399
|
+
}), g = Ke([]);
|
|
1400
|
+
function y(u, $) {
|
|
1401
|
+
var M, A, T;
|
|
1402
|
+
const p = {
|
|
1403
|
+
id: `${u.title || "undefined"}-${$}`,
|
|
1404
|
+
name: u.title,
|
|
1405
|
+
title: u.title,
|
|
1406
|
+
icon: u.icon,
|
|
1407
|
+
type: u.type,
|
|
855
1408
|
actions: []
|
|
856
1409
|
};
|
|
857
|
-
return
|
|
1410
|
+
return u.type === "url" && (p.moduleUrl = u.moduleUrl, (M = p.actions) == null || M.push({
|
|
858
1411
|
name: "edit",
|
|
859
1412
|
title: "moduleSelector.configEditor.TooltipEditModule",
|
|
860
1413
|
icon: "$vcsEdit",
|
|
861
1414
|
callback() {
|
|
862
|
-
if (
|
|
863
|
-
const
|
|
864
|
-
(
|
|
1415
|
+
if (l.value === void 0 && i.value.length > 0) {
|
|
1416
|
+
const E = i.value.find(
|
|
1417
|
+
(F) => F.id === p.id
|
|
865
1418
|
);
|
|
866
|
-
|
|
867
|
-
id:
|
|
868
|
-
title:
|
|
869
|
-
icon:
|
|
870
|
-
moduleUrl:
|
|
1419
|
+
E && (s.value = {
|
|
1420
|
+
id: E.id,
|
|
1421
|
+
title: E.title,
|
|
1422
|
+
icon: E.icon,
|
|
1423
|
+
moduleUrl: E.moduleUrl
|
|
871
1424
|
});
|
|
872
1425
|
} else {
|
|
873
|
-
const
|
|
874
|
-
(
|
|
1426
|
+
const E = l.value.cards.find(
|
|
1427
|
+
(F) => F.id === p.id
|
|
875
1428
|
);
|
|
876
|
-
|
|
877
|
-
id:
|
|
878
|
-
title:
|
|
879
|
-
icon:
|
|
880
|
-
moduleUrl:
|
|
1429
|
+
E && (s.value = {
|
|
1430
|
+
id: E.id,
|
|
1431
|
+
title: E.title,
|
|
1432
|
+
icon: E.icon,
|
|
1433
|
+
moduleUrl: E.moduleUrl
|
|
881
1434
|
});
|
|
882
1435
|
}
|
|
1436
|
+
c.value = !0;
|
|
883
1437
|
}
|
|
884
|
-
})),
|
|
1438
|
+
})), u.type === "group" && ((A = p.actions) == null || A.push({
|
|
885
1439
|
name: "editGroup",
|
|
886
1440
|
title: "moduleSelector.configEditor.TooltipEditGroup",
|
|
887
1441
|
icon: "mdi-playlist-edit",
|
|
888
1442
|
callback() {
|
|
889
|
-
if (
|
|
890
|
-
const
|
|
891
|
-
(
|
|
1443
|
+
if (i.value.length > 0) {
|
|
1444
|
+
const E = i.value.find(
|
|
1445
|
+
(F) => F.id === p.id
|
|
892
1446
|
);
|
|
893
|
-
|
|
1447
|
+
E && (l.value = E, g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule"));
|
|
894
1448
|
}
|
|
895
1449
|
}
|
|
896
|
-
}),
|
|
1450
|
+
}), u.cards && (p.cards = u.cards.map(y))), (T = p.actions) == null || T.push({
|
|
897
1451
|
name: "linkButton.editor.remove",
|
|
898
1452
|
title: "moduleSelector.configEditor.TooltipDeleteMG",
|
|
899
1453
|
icon: "$vcsTrashCan",
|
|
900
1454
|
callback() {
|
|
901
|
-
var
|
|
902
|
-
|
|
903
|
-
(
|
|
904
|
-
) :
|
|
905
|
-
(
|
|
1455
|
+
var E, F, S;
|
|
1456
|
+
l.value ? l.value.cards = (F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.filter(
|
|
1457
|
+
(B) => B.id !== p.id
|
|
1458
|
+
) : i.value = (S = i.value) == null ? void 0 : S.filter(
|
|
1459
|
+
(B) => B.id !== p.id
|
|
906
1460
|
);
|
|
907
1461
|
}
|
|
908
|
-
}),
|
|
1462
|
+
}), p;
|
|
909
1463
|
}
|
|
910
|
-
|
|
1464
|
+
g.push({
|
|
1465
|
+
name: "moduleSelector.configEditor.addFromCloud",
|
|
1466
|
+
icon: "$vcsImport",
|
|
1467
|
+
callback() {
|
|
1468
|
+
a.value = {
|
|
1469
|
+
id: "",
|
|
1470
|
+
title: "",
|
|
1471
|
+
icon: "",
|
|
1472
|
+
moduleUrl: ""
|
|
1473
|
+
}, v.value = !0;
|
|
1474
|
+
}
|
|
1475
|
+
});
|
|
1476
|
+
function U(u) {
|
|
1477
|
+
var $;
|
|
1478
|
+
if (u.type === "url") {
|
|
1479
|
+
const { actions: p, id: M, name: A, ...T } = u;
|
|
1480
|
+
return {
|
|
1481
|
+
...T,
|
|
1482
|
+
moduleUrl: u.moduleUrl || ""
|
|
1483
|
+
};
|
|
1484
|
+
} else {
|
|
1485
|
+
const p = (($ = u.cards) == null ? void 0 : $.map((F) => {
|
|
1486
|
+
const { actions: S, id: B, name: z, ...Be } = F;
|
|
1487
|
+
return {
|
|
1488
|
+
...Be
|
|
1489
|
+
};
|
|
1490
|
+
})) || [], { actions: M, id: A, name: T, ...E } = u;
|
|
1491
|
+
return {
|
|
1492
|
+
...E,
|
|
1493
|
+
...p.length ? { cards: p } : {}
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
const P = {
|
|
1498
|
+
name: "moduleSelector.configEditor.addGroup",
|
|
1499
|
+
callback() {
|
|
1500
|
+
var p;
|
|
1501
|
+
const u = {
|
|
1502
|
+
type: "group",
|
|
1503
|
+
title: "",
|
|
1504
|
+
icon: "",
|
|
1505
|
+
cards: []
|
|
1506
|
+
};
|
|
1507
|
+
C.value = !0;
|
|
1508
|
+
const $ = (p = i.value) == null ? void 0 : p.push(
|
|
1509
|
+
y(
|
|
1510
|
+
u,
|
|
1511
|
+
i.value.length
|
|
1512
|
+
)
|
|
1513
|
+
);
|
|
1514
|
+
l.value = i.value[$ - 1], g.splice(2, 1), g.length > 1 && (g[1].icon = "$vcsPlus", g[1].title = "moduleSelector.configEditor.TooltipAddModule");
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
function O(u) {
|
|
1518
|
+
return u.map(U);
|
|
1519
|
+
}
|
|
1520
|
+
(ne = r.value) != null && ne.modules && (i.value = r.value.modules.map(y)), g.push(
|
|
911
1521
|
{
|
|
912
1522
|
name: "moduleSelector.configEditor.add",
|
|
913
1523
|
callback() {
|
|
914
|
-
|
|
1524
|
+
s.value = {
|
|
915
1525
|
id: "",
|
|
916
|
-
title: "
|
|
917
|
-
icon: "
|
|
918
|
-
moduleUrl: "
|
|
919
|
-
};
|
|
1526
|
+
title: "",
|
|
1527
|
+
icon: "",
|
|
1528
|
+
moduleUrl: ""
|
|
1529
|
+
}, c.value = !0;
|
|
920
1530
|
}
|
|
921
1531
|
},
|
|
922
|
-
|
|
923
|
-
),
|
|
924
|
-
|
|
925
|
-
(
|
|
926
|
-
) :
|
|
1532
|
+
P
|
|
1533
|
+
), Ee(r, (u) => {
|
|
1534
|
+
u != null && u.modules ? b.value = u.modules.map(
|
|
1535
|
+
($, p) => y($, p)
|
|
1536
|
+
) : b.value = [];
|
|
927
1537
|
});
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1538
|
+
const ee = () => {
|
|
1539
|
+
var M;
|
|
1540
|
+
const u = ue((M = r.value) == null ? void 0 : M.position), $ = Object.values(u).some(
|
|
1541
|
+
(A) => A !== void 0
|
|
1542
|
+
), p = {
|
|
1543
|
+
...ue(r.value),
|
|
1544
|
+
modules: O(i.value),
|
|
1545
|
+
basisModule: ue(h.value)
|
|
1546
|
+
};
|
|
1547
|
+
$ ? p.position = u : delete p.position, e.setConfig(p);
|
|
1548
|
+
}, oe = () => {
|
|
1549
|
+
var u, $, p, M, A, T, E, F;
|
|
1550
|
+
if (l.value === void 0) {
|
|
1551
|
+
if (s.value)
|
|
1552
|
+
if (((u = s.value) == null ? void 0 : u.id) !== "") {
|
|
1553
|
+
const S = i.value.find(
|
|
1554
|
+
(B) => {
|
|
1555
|
+
var z;
|
|
1556
|
+
return B.id === ((z = s.value) == null ? void 0 : z.id);
|
|
943
1557
|
}
|
|
944
1558
|
);
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
d.value.push({
|
|
948
|
-
id: `${u.value.title}-${d.value.length}`,
|
|
949
|
-
title: u.value.title,
|
|
950
|
-
name: u.value.title,
|
|
951
|
-
icon: u.value.icon,
|
|
952
|
-
moduleUrl: u.value.moduleUrl,
|
|
953
|
-
type: "url"
|
|
1559
|
+
S && Object.assign(S, {
|
|
1560
|
+
...s.value
|
|
954
1561
|
});
|
|
955
|
-
|
|
956
|
-
|
|
1562
|
+
} else
|
|
1563
|
+
i.value.push(
|
|
1564
|
+
y(
|
|
1565
|
+
{
|
|
1566
|
+
...s.value,
|
|
1567
|
+
type: "url"
|
|
1568
|
+
},
|
|
1569
|
+
i.value.length
|
|
1570
|
+
)
|
|
957
1571
|
);
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
const O = n.value.cards.find(
|
|
962
|
-
(L) => L.id === u.value.id
|
|
1572
|
+
} else if (s.value && (($ = s.value) == null ? void 0 : $.id) !== "") {
|
|
1573
|
+
const S = l.value.cards.find(
|
|
1574
|
+
(z) => z.id === s.value.id
|
|
963
1575
|
);
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1576
|
+
S && Object.assign(S, {
|
|
1577
|
+
...s.value
|
|
1578
|
+
});
|
|
1579
|
+
let B;
|
|
1580
|
+
(p = l.value) != null && p.id || ((M = l.value) == null ? void 0 : M.id) !== "" ? B = l.value.id : B = `${l.value.title}-${i.value.length - 1}`, l.value = i.value.find(
|
|
1581
|
+
(z) => z.id === B
|
|
968
1582
|
);
|
|
969
1583
|
} else {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1584
|
+
l.value.cards.push(
|
|
1585
|
+
y(
|
|
1586
|
+
{
|
|
1587
|
+
...s.value,
|
|
1588
|
+
type: "url"
|
|
1589
|
+
},
|
|
1590
|
+
l.value.cards.length
|
|
1591
|
+
)
|
|
1592
|
+
);
|
|
1593
|
+
let S;
|
|
1594
|
+
(A = l.value) != null && A.id || ((T = l.value) == null ? void 0 : T.id) !== "" ? S = l.value.id : S = `${(E = l.value) == null ? void 0 : E.title}-${i.value.length - 1}`, l.value = (F = i.value) == null ? void 0 : F.find(
|
|
1595
|
+
(B) => B.id === S
|
|
1596
|
+
);
|
|
1597
|
+
}
|
|
1598
|
+
s.value = {
|
|
1599
|
+
id: "",
|
|
1600
|
+
title: "",
|
|
1601
|
+
icon: "",
|
|
1602
|
+
moduleUrl: ""
|
|
1603
|
+
}, c.value = !1;
|
|
1604
|
+
}, f = () => {
|
|
1605
|
+
var u, $, p, M;
|
|
1606
|
+
if (l.value === void 0)
|
|
1607
|
+
a.value && i.value.push(
|
|
1608
|
+
y(
|
|
1609
|
+
{
|
|
1610
|
+
title: a.value.title,
|
|
1611
|
+
icon: a.value.icon,
|
|
1612
|
+
moduleUrl: a.value.moduleUrl,
|
|
1613
|
+
type: "url"
|
|
1614
|
+
},
|
|
1615
|
+
i.value.length
|
|
1616
|
+
)
|
|
1617
|
+
);
|
|
1618
|
+
else {
|
|
1619
|
+
l.value.cards.push(
|
|
1620
|
+
y(
|
|
1621
|
+
{
|
|
1622
|
+
...a.value,
|
|
1623
|
+
type: "url"
|
|
1624
|
+
},
|
|
1625
|
+
l.value.cards.length
|
|
1626
|
+
)
|
|
980
1627
|
);
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
(L) => L.id === q
|
|
1628
|
+
let A;
|
|
1629
|
+
(u = l.value) != null && u.id || (($ = l.value) == null ? void 0 : $.id) !== "" ? A = l.value.id : A = `${(p = l.value) == null ? void 0 : p.title}-${i.value.length - 1}`, l.value = (M = i.value) == null ? void 0 : M.find(
|
|
1630
|
+
(T) => T.id === A
|
|
985
1631
|
);
|
|
986
1632
|
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1633
|
+
a.value = {
|
|
1634
|
+
id: "",
|
|
1635
|
+
title: "",
|
|
1636
|
+
icon: "",
|
|
1637
|
+
moduleUrl: ""
|
|
1638
|
+
}, v.value = !1;
|
|
1639
|
+
}, D = () => {
|
|
1640
|
+
l.value = void 0, g.length > 1 && (delete g[1].icon, delete g[1].title), g.push(P);
|
|
1641
|
+
}, L = k([
|
|
991
1642
|
{
|
|
992
1643
|
title: o.vueI18n.t(
|
|
993
1644
|
"moduleSelector.configEditor.breadcrumbs.overview"
|
|
@@ -1001,66 +1652,70 @@ const Ze = /* @__PURE__ */ Y(Ke, [["render", Je]]), Qe = J({
|
|
|
1001
1652
|
href: "#"
|
|
1002
1653
|
}
|
|
1003
1654
|
]);
|
|
1004
|
-
return
|
|
1005
|
-
|
|
1655
|
+
return Ee(l, (u) => {
|
|
1656
|
+
u && u.title && (L.value[1].title = `${o.vueI18n.t("moduleSelector.configEditor.breadcrumbs.group")}: ${u.title}`, u.name = u.title);
|
|
1006
1657
|
}), {
|
|
1007
|
-
editingItem:
|
|
1658
|
+
editingItem: s,
|
|
1659
|
+
selectCloudItem: a,
|
|
1660
|
+
editingItemDialogVisible: c,
|
|
1661
|
+
selectCloudItemDialogVisible: v,
|
|
1008
1662
|
localConfig: r,
|
|
1009
|
-
listItemArray:
|
|
1010
|
-
breadcrumbItems:
|
|
1011
|
-
currentGroup:
|
|
1012
|
-
apply:
|
|
1013
|
-
returnLevel:
|
|
1014
|
-
updateItem:
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1663
|
+
listItemArray: i,
|
|
1664
|
+
breadcrumbItems: L,
|
|
1665
|
+
currentGroup: l,
|
|
1666
|
+
apply: ee,
|
|
1667
|
+
returnLevel: D,
|
|
1668
|
+
updateItem: oe,
|
|
1669
|
+
updateCloudItem: f,
|
|
1670
|
+
level: t,
|
|
1671
|
+
listItems: b,
|
|
1672
|
+
basisModule: h,
|
|
1673
|
+
basisModuleExists: R,
|
|
1674
|
+
headerActions: g,
|
|
1020
1675
|
move({
|
|
1021
|
-
item:
|
|
1022
|
-
targetIndex:
|
|
1676
|
+
item: u,
|
|
1677
|
+
targetIndex: $
|
|
1023
1678
|
}) {
|
|
1024
|
-
var M, A,
|
|
1025
|
-
if (
|
|
1026
|
-
let
|
|
1027
|
-
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
} else if ((((
|
|
1031
|
-
let
|
|
1032
|
-
|
|
1033
|
-
const
|
|
1034
|
-
|
|
1679
|
+
var p, M, A, T, E, F;
|
|
1680
|
+
if (i.value && l.value === void 0) {
|
|
1681
|
+
let S = $;
|
|
1682
|
+
S = S >= 0 ? S : 0, S = S < ((p = i.value) == null ? void 0 : p.length) ? S : i.value.length - 1;
|
|
1683
|
+
const B = (M = i.value) == null ? void 0 : M.indexOf(u);
|
|
1684
|
+
B !== S && ((A = i.value) == null || A.splice(B, 1), (T = i.value) == null || T.splice(S, 0, u));
|
|
1685
|
+
} else if ((((F = (E = l.value) == null ? void 0 : E.cards) == null ? void 0 : F.length) ?? 0) > 1) {
|
|
1686
|
+
let S = $;
|
|
1687
|
+
S = S >= 0 ? S : 0, S = S < l.value.cards.length ? S : l.value.cards.length - 1;
|
|
1688
|
+
const B = l.value.cards.indexOf(u);
|
|
1689
|
+
B && B !== S && (l.value.cards.splice(B, 1), l.value.cards.splice(S, 0, u));
|
|
1035
1690
|
}
|
|
1036
1691
|
}
|
|
1037
1692
|
};
|
|
1038
1693
|
}
|
|
1039
1694
|
});
|
|
1040
|
-
function
|
|
1041
|
-
const
|
|
1042
|
-
return e.localConfig ? (
|
|
1695
|
+
function Do(e, o, t, r, i, l) {
|
|
1696
|
+
const s = m("VcsLabel"), a = m("v-col"), v = m("VcsTextField"), c = m("v-row"), C = m("VcsCheckbox"), b = m("v-container"), h = m("VcsFormSection"), R = m("v-breadcrumbs-item"), g = m("v-breadcrumbs"), y = m("VcsList"), U = m("ModuleEditor"), P = m("v-dialog"), O = m("VcsModuleTable"), ee = m("WindowPositionSettings"), oe = m("AbstractConfigEditor");
|
|
1697
|
+
return e.localConfig ? (I(), _(oe, Je({
|
|
1043
1698
|
key: 0,
|
|
1044
1699
|
onSubmit: e.apply
|
|
1045
1700
|
}, { ...e.$attrs, ...e.$props }), {
|
|
1046
|
-
default:
|
|
1047
|
-
e.currentGroup === void 0 ? (
|
|
1701
|
+
default: n(() => [
|
|
1702
|
+
e.currentGroup === void 0 ? (I(), _(b, {
|
|
1048
1703
|
key: 0,
|
|
1049
1704
|
class: "py-0 px-0"
|
|
1050
1705
|
}, {
|
|
1051
|
-
default:
|
|
1052
|
-
|
|
1053
|
-
default:
|
|
1054
|
-
|
|
1055
|
-
default:
|
|
1056
|
-
|
|
1057
|
-
default:
|
|
1058
|
-
|
|
1059
|
-
default:
|
|
1060
|
-
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
1063
|
-
|
|
1706
|
+
default: n(() => [
|
|
1707
|
+
d(h, { heading: "moduleSelector.configEditor.general" }, {
|
|
1708
|
+
default: n(() => [
|
|
1709
|
+
d(b, { class: "py-0 px-1" }, {
|
|
1710
|
+
default: n(() => [
|
|
1711
|
+
d(c, { "no-gutters": "" }, {
|
|
1712
|
+
default: n(() => [
|
|
1713
|
+
d(a, { cols: "6" }, {
|
|
1714
|
+
default: n(() => [
|
|
1715
|
+
d(s, { "html-for": "moduleselector-window-title" }, {
|
|
1716
|
+
default: n(() => [
|
|
1717
|
+
V(
|
|
1718
|
+
w(e.$st("moduleSelector.configEditor.windowTitle")),
|
|
1064
1719
|
1
|
|
1065
1720
|
/* TEXT */
|
|
1066
1721
|
)
|
|
@@ -1072,13 +1727,13 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1072
1727
|
_: 1
|
|
1073
1728
|
/* STABLE */
|
|
1074
1729
|
}),
|
|
1075
|
-
|
|
1076
|
-
default:
|
|
1077
|
-
|
|
1730
|
+
d(a, null, {
|
|
1731
|
+
default: n(() => [
|
|
1732
|
+
d(v, {
|
|
1078
1733
|
id: "moduleselector-window-title",
|
|
1079
|
-
placeholder: e.$
|
|
1734
|
+
placeholder: e.$st("moduleSelector.title"),
|
|
1080
1735
|
modelValue: e.localConfig.windowTitle,
|
|
1081
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1736
|
+
"onUpdate:modelValue": o[0] || (o[0] = (f) => e.localConfig.windowTitle = f)
|
|
1082
1737
|
}, null, 8, ["placeholder", "modelValue"])
|
|
1083
1738
|
]),
|
|
1084
1739
|
_: 1
|
|
@@ -1088,13 +1743,13 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1088
1743
|
_: 1
|
|
1089
1744
|
/* STABLE */
|
|
1090
1745
|
}),
|
|
1091
|
-
|
|
1092
|
-
default:
|
|
1093
|
-
|
|
1094
|
-
default:
|
|
1095
|
-
|
|
1746
|
+
d(c, { "no-gutters": "" }, {
|
|
1747
|
+
default: n(() => [
|
|
1748
|
+
d(a, null, {
|
|
1749
|
+
default: n(() => [
|
|
1750
|
+
d(C, {
|
|
1096
1751
|
modelValue: e.localConfig.isActiveOnStart,
|
|
1097
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1752
|
+
"onUpdate:modelValue": o[1] || (o[1] = (f) => e.localConfig.isActiveOnStart = f),
|
|
1098
1753
|
label: "moduleSelector.configEditor.isActiveOnStart"
|
|
1099
1754
|
}, null, 8, ["modelValue"])
|
|
1100
1755
|
]),
|
|
@@ -1105,13 +1760,13 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1105
1760
|
_: 1
|
|
1106
1761
|
/* STABLE */
|
|
1107
1762
|
}),
|
|
1108
|
-
|
|
1109
|
-
default:
|
|
1110
|
-
|
|
1111
|
-
default:
|
|
1112
|
-
|
|
1763
|
+
d(c, { "no-gutters": "" }, {
|
|
1764
|
+
default: n(() => [
|
|
1765
|
+
d(a, null, {
|
|
1766
|
+
default: n(() => [
|
|
1767
|
+
d(C, {
|
|
1113
1768
|
modelValue: e.localConfig.requireModuleSelection,
|
|
1114
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
1769
|
+
"onUpdate:modelValue": o[2] || (o[2] = (f) => e.localConfig.requireModuleSelection = f),
|
|
1115
1770
|
label: "moduleSelector.configEditor.requireModuleSelection"
|
|
1116
1771
|
}, null, 8, ["modelValue"])
|
|
1117
1772
|
]),
|
|
@@ -1130,41 +1785,18 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1130
1785
|
_: 1
|
|
1131
1786
|
/* STABLE */
|
|
1132
1787
|
}),
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
"top",
|
|
1143
|
-
"right",
|
|
1144
|
-
"bottom",
|
|
1145
|
-
"left",
|
|
1146
|
-
"width",
|
|
1147
|
-
"maxWidth",
|
|
1148
|
-
"height",
|
|
1149
|
-
"maxHeight"
|
|
1150
|
-
]
|
|
1151
|
-
}, null, 8, ["modelValue"])
|
|
1152
|
-
]),
|
|
1153
|
-
_: 1
|
|
1154
|
-
/* STABLE */
|
|
1155
|
-
}),
|
|
1156
|
-
t($, { heading: "moduleSelector.configEditor.baseModule" }, {
|
|
1157
|
-
default: l(() => [
|
|
1158
|
-
t(g, { class: "py-0 px-1" }, {
|
|
1159
|
-
default: l(() => [
|
|
1160
|
-
t(c, { "no-gutters": "" }, {
|
|
1161
|
-
default: l(() => [
|
|
1162
|
-
t(a, null, {
|
|
1163
|
-
default: l(() => [
|
|
1164
|
-
t(f, {
|
|
1788
|
+
d(h, { heading: "moduleSelector.configEditor.baseModule" }, {
|
|
1789
|
+
default: n(() => [
|
|
1790
|
+
d(b, { class: "py-0 px-1" }, {
|
|
1791
|
+
default: n(() => [
|
|
1792
|
+
d(c, { "no-gutters": "" }, {
|
|
1793
|
+
default: n(() => [
|
|
1794
|
+
d(a, null, {
|
|
1795
|
+
default: n(() => [
|
|
1796
|
+
d(C, {
|
|
1165
1797
|
id: "BaseModuleCheckbox",
|
|
1166
1798
|
modelValue: e.basisModuleExists,
|
|
1167
|
-
"onUpdate:modelValue": o[
|
|
1799
|
+
"onUpdate:modelValue": o[3] || (o[3] = (f) => e.basisModuleExists = f),
|
|
1168
1800
|
label: "moduleSelector.configEditor.baseModuleCheckbox"
|
|
1169
1801
|
}, null, 8, ["modelValue"])
|
|
1170
1802
|
]),
|
|
@@ -1175,20 +1807,20 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1175
1807
|
_: 1
|
|
1176
1808
|
/* STABLE */
|
|
1177
1809
|
}),
|
|
1178
|
-
e.basisModuleExists ? (
|
|
1810
|
+
e.basisModuleExists ? (I(), _(c, {
|
|
1179
1811
|
key: 0,
|
|
1180
1812
|
"no-gutters": ""
|
|
1181
1813
|
}, {
|
|
1182
|
-
default:
|
|
1183
|
-
|
|
1184
|
-
default:
|
|
1185
|
-
|
|
1814
|
+
default: n(() => [
|
|
1815
|
+
d(a, { cols: "6" }, {
|
|
1816
|
+
default: n(() => [
|
|
1817
|
+
d(s, {
|
|
1186
1818
|
required: "",
|
|
1187
1819
|
"html-for": "basisModuleName"
|
|
1188
1820
|
}, {
|
|
1189
|
-
default:
|
|
1190
|
-
|
|
1191
|
-
|
|
1821
|
+
default: n(() => [
|
|
1822
|
+
V(
|
|
1823
|
+
w(e.$st("moduleSelector.configEditor.title")),
|
|
1192
1824
|
1
|
|
1193
1825
|
/* TEXT */
|
|
1194
1826
|
)
|
|
@@ -1200,16 +1832,16 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1200
1832
|
_: 1
|
|
1201
1833
|
/* STABLE */
|
|
1202
1834
|
}),
|
|
1203
|
-
|
|
1204
|
-
default:
|
|
1205
|
-
|
|
1835
|
+
d(a, null, {
|
|
1836
|
+
default: n(() => [
|
|
1837
|
+
d(v, {
|
|
1206
1838
|
id: "basisModuleName",
|
|
1207
1839
|
placeholder: "Base Module",
|
|
1208
1840
|
rules: [
|
|
1209
1841
|
e.basisModuleExists && (!e.basisModule.title || e.basisModule.title === "") ? () => "moduleSelector.configEditor.error" : () => !0
|
|
1210
1842
|
],
|
|
1211
1843
|
modelValue: e.basisModule.title,
|
|
1212
|
-
"onUpdate:modelValue": o[
|
|
1844
|
+
"onUpdate:modelValue": o[4] || (o[4] = (f) => e.basisModule.title = f)
|
|
1213
1845
|
}, null, 8, ["rules", "modelValue"])
|
|
1214
1846
|
]),
|
|
1215
1847
|
_: 1
|
|
@@ -1218,21 +1850,21 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1218
1850
|
]),
|
|
1219
1851
|
_: 1
|
|
1220
1852
|
/* STABLE */
|
|
1221
|
-
})) :
|
|
1222
|
-
e.basisModuleExists ? (
|
|
1853
|
+
})) : q("v-if", !0),
|
|
1854
|
+
e.basisModuleExists ? (I(), _(c, {
|
|
1223
1855
|
key: 1,
|
|
1224
1856
|
"no-gutters": ""
|
|
1225
1857
|
}, {
|
|
1226
|
-
default:
|
|
1227
|
-
|
|
1228
|
-
default:
|
|
1229
|
-
|
|
1858
|
+
default: n(() => [
|
|
1859
|
+
d(a, { cols: "6" }, {
|
|
1860
|
+
default: n(() => [
|
|
1861
|
+
d(s, {
|
|
1230
1862
|
required: "",
|
|
1231
1863
|
"html-for": "basisModuleIcon"
|
|
1232
1864
|
}, {
|
|
1233
|
-
default:
|
|
1234
|
-
|
|
1235
|
-
|
|
1865
|
+
default: n(() => [
|
|
1866
|
+
V(
|
|
1867
|
+
w(e.$st("components.style.icon")),
|
|
1236
1868
|
1
|
|
1237
1869
|
/* TEXT */
|
|
1238
1870
|
)
|
|
@@ -1244,16 +1876,16 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1244
1876
|
_: 1
|
|
1245
1877
|
/* STABLE */
|
|
1246
1878
|
}),
|
|
1247
|
-
|
|
1248
|
-
default:
|
|
1249
|
-
|
|
1879
|
+
d(a, null, {
|
|
1880
|
+
default: n(() => [
|
|
1881
|
+
d(v, {
|
|
1250
1882
|
id: "basisModuleIcon",
|
|
1251
1883
|
placeholder: "mdi-home-city",
|
|
1252
1884
|
rules: [
|
|
1253
1885
|
e.basisModuleExists && (!e.basisModule.icon || e.basisModule.icon === "") ? () => "moduleSelector.configEditor.error" : () => !0
|
|
1254
1886
|
],
|
|
1255
1887
|
modelValue: e.basisModule.icon,
|
|
1256
|
-
"onUpdate:modelValue": o[
|
|
1888
|
+
"onUpdate:modelValue": o[5] || (o[5] = (f) => e.basisModule.icon = f)
|
|
1257
1889
|
}, null, 8, ["rules", "modelValue"])
|
|
1258
1890
|
]),
|
|
1259
1891
|
_: 1
|
|
@@ -1262,7 +1894,7 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1262
1894
|
]),
|
|
1263
1895
|
_: 1
|
|
1264
1896
|
/* STABLE */
|
|
1265
|
-
})) :
|
|
1897
|
+
})) : q("v-if", !0)
|
|
1266
1898
|
]),
|
|
1267
1899
|
_: 1
|
|
1268
1900
|
/* STABLE */
|
|
@@ -1274,25 +1906,25 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1274
1906
|
]),
|
|
1275
1907
|
_: 1
|
|
1276
1908
|
/* STABLE */
|
|
1277
|
-
})) : (
|
|
1909
|
+
})) : (I(), _(b, {
|
|
1278
1910
|
key: 1,
|
|
1279
1911
|
class: "py-0 px-1"
|
|
1280
1912
|
}, {
|
|
1281
|
-
default:
|
|
1282
|
-
|
|
1913
|
+
default: n(() => [
|
|
1914
|
+
d(g, {
|
|
1283
1915
|
items: e.breadcrumbItems,
|
|
1284
1916
|
divider: "/"
|
|
1285
1917
|
}, {
|
|
1286
|
-
item:
|
|
1287
|
-
(
|
|
1288
|
-
key:
|
|
1289
|
-
disabled:
|
|
1290
|
-
href:
|
|
1291
|
-
onClick: (
|
|
1918
|
+
item: n(({ item: f }) => [
|
|
1919
|
+
(I(), _(R, {
|
|
1920
|
+
key: f.title,
|
|
1921
|
+
disabled: f.disabled,
|
|
1922
|
+
href: f.href,
|
|
1923
|
+
onClick: (D) => f.disabled ? null : e.returnLevel()
|
|
1292
1924
|
}, {
|
|
1293
|
-
default:
|
|
1294
|
-
|
|
1295
|
-
|
|
1925
|
+
default: n(() => [
|
|
1926
|
+
V(
|
|
1927
|
+
w(f.title),
|
|
1296
1928
|
1
|
|
1297
1929
|
/* TEXT */
|
|
1298
1930
|
)
|
|
@@ -1304,17 +1936,17 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1304
1936
|
_: 1
|
|
1305
1937
|
/* STABLE */
|
|
1306
1938
|
}, 8, ["items"]),
|
|
1307
|
-
|
|
1308
|
-
default:
|
|
1309
|
-
|
|
1310
|
-
default:
|
|
1311
|
-
|
|
1939
|
+
d(c, { "no-gutters": "" }, {
|
|
1940
|
+
default: n(() => [
|
|
1941
|
+
d(a, { cols: "6" }, {
|
|
1942
|
+
default: n(() => [
|
|
1943
|
+
d(s, {
|
|
1312
1944
|
required: "",
|
|
1313
1945
|
"html-for": "groupModuleName"
|
|
1314
1946
|
}, {
|
|
1315
|
-
default:
|
|
1316
|
-
|
|
1317
|
-
|
|
1947
|
+
default: n(() => [
|
|
1948
|
+
V(
|
|
1949
|
+
w(e.$st("moduleSelector.configEditor.groupName")),
|
|
1318
1950
|
1
|
|
1319
1951
|
/* TEXT */
|
|
1320
1952
|
)
|
|
@@ -1326,14 +1958,14 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1326
1958
|
_: 1
|
|
1327
1959
|
/* STABLE */
|
|
1328
1960
|
}),
|
|
1329
|
-
|
|
1330
|
-
default:
|
|
1331
|
-
|
|
1961
|
+
d(a, null, {
|
|
1962
|
+
default: n(() => [
|
|
1963
|
+
d(v, {
|
|
1332
1964
|
id: "groupModuleName",
|
|
1333
1965
|
placeholder: "Module Name",
|
|
1334
1966
|
modelValue: e.currentGroup.title,
|
|
1335
|
-
"onUpdate:modelValue": o[
|
|
1336
|
-
rules: [(
|
|
1967
|
+
"onUpdate:modelValue": o[6] || (o[6] = (f) => e.currentGroup.title = f),
|
|
1968
|
+
rules: [(f) => !!f || "moduleSelector.configEditor.error"]
|
|
1337
1969
|
}, null, 8, ["modelValue", "rules"])
|
|
1338
1970
|
]),
|
|
1339
1971
|
_: 1
|
|
@@ -1343,17 +1975,17 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1343
1975
|
_: 1
|
|
1344
1976
|
/* STABLE */
|
|
1345
1977
|
}),
|
|
1346
|
-
|
|
1347
|
-
default:
|
|
1348
|
-
|
|
1349
|
-
default:
|
|
1350
|
-
|
|
1978
|
+
d(c, { "no-gutters": "" }, {
|
|
1979
|
+
default: n(() => [
|
|
1980
|
+
d(a, { cols: "6" }, {
|
|
1981
|
+
default: n(() => [
|
|
1982
|
+
d(s, {
|
|
1351
1983
|
required: "",
|
|
1352
1984
|
"html-for": "groupModuleIcon"
|
|
1353
1985
|
}, {
|
|
1354
|
-
default:
|
|
1355
|
-
|
|
1356
|
-
|
|
1986
|
+
default: n(() => [
|
|
1987
|
+
V(
|
|
1988
|
+
w(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
1357
1989
|
1
|
|
1358
1990
|
/* TEXT */
|
|
1359
1991
|
)
|
|
@@ -1365,15 +1997,15 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1365
1997
|
_: 1
|
|
1366
1998
|
/* STABLE */
|
|
1367
1999
|
}),
|
|
1368
|
-
|
|
1369
|
-
default:
|
|
1370
|
-
|
|
2000
|
+
d(a, null, {
|
|
2001
|
+
default: n(() => [
|
|
2002
|
+
d(v, {
|
|
1371
2003
|
id: "groupModuleIcon",
|
|
1372
2004
|
placeholder: "Module Icon",
|
|
1373
2005
|
modelValue: e.currentGroup.icon,
|
|
1374
|
-
"onUpdate:modelValue": o[
|
|
2006
|
+
"onUpdate:modelValue": o[7] || (o[7] = (f) => e.currentGroup.icon = f),
|
|
1375
2007
|
rules: [
|
|
1376
|
-
(
|
|
2008
|
+
(f) => !!f || "moduleSelector.configEditor.editorError"
|
|
1377
2009
|
]
|
|
1378
2010
|
}, null, 8, ["modelValue", "rules"])
|
|
1379
2011
|
]),
|
|
@@ -1388,74 +2020,112 @@ function Xe(e, o, i, r, d, n) {
|
|
|
1388
2020
|
_: 1
|
|
1389
2021
|
/* STABLE */
|
|
1390
2022
|
})),
|
|
1391
|
-
|
|
2023
|
+
d(h, {
|
|
1392
2024
|
heading: "moduleSelector.configEditor.heading",
|
|
1393
2025
|
"start-open": !0,
|
|
1394
2026
|
"header-actions": e.headerActions
|
|
1395
2027
|
}, {
|
|
1396
|
-
default:
|
|
1397
|
-
|
|
1398
|
-
e.currentGroup === void 0 ? (w(), _(I, {
|
|
2028
|
+
default: n(() => [
|
|
2029
|
+
e.currentGroup === void 0 ? (I(), _(y, {
|
|
1399
2030
|
key: 0,
|
|
1400
2031
|
items: e.listItemArray,
|
|
1401
2032
|
draggable: !0,
|
|
1402
2033
|
onItemMoved: e.move
|
|
1403
|
-
}, null, 8, ["items", "onItemMoved"])) : (
|
|
2034
|
+
}, null, 8, ["items", "onItemMoved"])) : (I(), _(y, {
|
|
1404
2035
|
key: 1,
|
|
1405
2036
|
items: e.currentGroup.cards,
|
|
1406
2037
|
draggable: !0,
|
|
1407
2038
|
onItemMoved: e.move
|
|
1408
2039
|
}, null, 8, ["items", "onItemMoved"])),
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
"
|
|
2040
|
+
d(P, {
|
|
2041
|
+
modelValue: e.editingItemDialogVisible,
|
|
2042
|
+
"onUpdate:modelValue": o[10] || (o[10] = (f) => e.editingItemDialogVisible = f),
|
|
1412
2043
|
width: "400",
|
|
1413
2044
|
persistent: !0
|
|
1414
2045
|
}, {
|
|
1415
|
-
default:
|
|
1416
|
-
|
|
2046
|
+
default: n(() => [
|
|
2047
|
+
d(U, {
|
|
1417
2048
|
"model-value": e.editingItem,
|
|
1418
|
-
onClose: o[
|
|
1419
|
-
onSubmit: o[
|
|
2049
|
+
onClose: o[8] || (o[8] = (f) => e.editingItemDialogVisible = !1),
|
|
2050
|
+
onSubmit: o[9] || (o[9] = (f) => e.updateItem())
|
|
1420
2051
|
}, null, 8, ["model-value"])
|
|
1421
2052
|
]),
|
|
1422
2053
|
_: 1
|
|
1423
2054
|
/* STABLE */
|
|
1424
|
-
}
|
|
2055
|
+
}, 8, ["modelValue"]),
|
|
2056
|
+
d(P, {
|
|
2057
|
+
modelValue: e.selectCloudItemDialogVisible,
|
|
2058
|
+
"onUpdate:modelValue": o[13] || (o[13] = (f) => e.selectCloudItemDialogVisible = f),
|
|
2059
|
+
width: "1000",
|
|
2060
|
+
persistent: !0
|
|
2061
|
+
}, {
|
|
2062
|
+
default: n(() => [
|
|
2063
|
+
d(O, {
|
|
2064
|
+
"model-value": e.selectCloudItem,
|
|
2065
|
+
onClose: o[11] || (o[11] = (f) => e.selectCloudItemDialogVisible = !1),
|
|
2066
|
+
onSubmit: o[12] || (o[12] = (f) => e.updateCloudItem())
|
|
2067
|
+
}, null, 8, ["model-value"])
|
|
2068
|
+
]),
|
|
2069
|
+
_: 1
|
|
2070
|
+
/* STABLE */
|
|
2071
|
+
}, 8, ["modelValue"])
|
|
2072
|
+
]),
|
|
2073
|
+
_: 1
|
|
2074
|
+
/* STABLE */
|
|
2075
|
+
}, 8, ["header-actions"]),
|
|
2076
|
+
d(h, {
|
|
2077
|
+
heading: "moduleSelector.configEditor.windowPosition",
|
|
2078
|
+
expandable: !0
|
|
2079
|
+
}, {
|
|
2080
|
+
default: n(() => [
|
|
2081
|
+
d(ee, {
|
|
2082
|
+
modelValue: e.localConfig.position,
|
|
2083
|
+
"onUpdate:modelValue": o[14] || (o[14] = (f) => e.localConfig.position = f),
|
|
2084
|
+
"position-keys": [
|
|
2085
|
+
"top",
|
|
2086
|
+
"right",
|
|
2087
|
+
"bottom",
|
|
2088
|
+
"left",
|
|
2089
|
+
"width",
|
|
2090
|
+
"maxWidth",
|
|
2091
|
+
"height",
|
|
2092
|
+
"maxHeight"
|
|
2093
|
+
]
|
|
2094
|
+
}, null, 8, ["modelValue"])
|
|
1425
2095
|
]),
|
|
1426
2096
|
_: 1
|
|
1427
2097
|
/* STABLE */
|
|
1428
|
-
}
|
|
2098
|
+
})
|
|
1429
2099
|
]),
|
|
1430
2100
|
_: 1
|
|
1431
2101
|
/* STABLE */
|
|
1432
|
-
}, 16, ["onSubmit"])) :
|
|
2102
|
+
}, 16, ["onSubmit"])) : q("v-if", !0);
|
|
1433
2103
|
}
|
|
1434
|
-
const
|
|
1435
|
-
function
|
|
2104
|
+
const qo = /* @__PURE__ */ Y(Ro, [["render", Do], ["__scopeId", "data-v-82377468"]]);
|
|
2105
|
+
function Wo(e) {
|
|
1436
2106
|
let o;
|
|
1437
2107
|
return {
|
|
1438
2108
|
get name() {
|
|
1439
|
-
return
|
|
2109
|
+
return j;
|
|
1440
2110
|
},
|
|
1441
2111
|
get version() {
|
|
1442
|
-
return
|
|
2112
|
+
return ro;
|
|
1443
2113
|
},
|
|
1444
2114
|
get mapVersion() {
|
|
1445
|
-
return
|
|
2115
|
+
return so;
|
|
1446
2116
|
},
|
|
1447
2117
|
get config() {
|
|
1448
|
-
return { ...
|
|
2118
|
+
return { ...re(), ...e };
|
|
1449
2119
|
},
|
|
1450
|
-
selectedMainModuleIndex:
|
|
1451
|
-
selectedNestedModuleIndex:
|
|
1452
|
-
async initialize(
|
|
1453
|
-
var
|
|
1454
|
-
o =
|
|
1455
|
-
const
|
|
1456
|
-
id:
|
|
1457
|
-
component:
|
|
1458
|
-
slot:
|
|
2120
|
+
selectedMainModuleIndex: k(void 0),
|
|
2121
|
+
selectedNestedModuleIndex: k(void 0),
|
|
2122
|
+
async initialize(t, r) {
|
|
2123
|
+
var s;
|
|
2124
|
+
o = t;
|
|
2125
|
+
const i = {
|
|
2126
|
+
id: se,
|
|
2127
|
+
component: mo,
|
|
2128
|
+
slot: je.DETACHED,
|
|
1459
2129
|
position: this.config.position,
|
|
1460
2130
|
state: {
|
|
1461
2131
|
headerTitle: this.config.windowTitle,
|
|
@@ -1468,49 +2138,49 @@ function to(e) {
|
|
|
1468
2138
|
}
|
|
1469
2139
|
};
|
|
1470
2140
|
if (r) {
|
|
1471
|
-
const a =
|
|
1472
|
-
if (a !== void 0 && a < (
|
|
2141
|
+
const a = Ie(r.smi), v = Ie(r.snmi), c = lo(r.w), { modules: C } = this.config;
|
|
2142
|
+
if (a !== void 0 && a < (C == null ? void 0 : C.length)) {
|
|
1473
2143
|
this.selectedMainModuleIndex.value = a;
|
|
1474
|
-
const
|
|
1475
|
-
v !== void 0 && (
|
|
2144
|
+
const b = C[a];
|
|
2145
|
+
v !== void 0 && (b == null ? void 0 : b.type) === "group" && v < ((s = b == null ? void 0 : b.cards) == null ? void 0 : s.length) && (this.selectedNestedModuleIndex.value = v);
|
|
1476
2146
|
}
|
|
1477
|
-
c || await
|
|
2147
|
+
c || await Ae(
|
|
1478
2148
|
this.selectedMainModuleIndex.value,
|
|
1479
2149
|
this.selectedNestedModuleIndex.value,
|
|
1480
2150
|
o,
|
|
1481
|
-
|
|
1482
|
-
|
|
2151
|
+
this.config.modules,
|
|
2152
|
+
this.config.basisModule
|
|
1483
2153
|
);
|
|
1484
2154
|
}
|
|
1485
|
-
const { action:
|
|
2155
|
+
const { action: l } = Le(
|
|
1486
2156
|
{
|
|
1487
2157
|
name: "moduleSelector",
|
|
1488
2158
|
title: "moduleSelector.title",
|
|
1489
2159
|
icon: "mdi-view-grid"
|
|
1490
2160
|
},
|
|
1491
|
-
|
|
2161
|
+
i,
|
|
1492
2162
|
o.windowManager,
|
|
1493
|
-
|
|
2163
|
+
j
|
|
1494
2164
|
);
|
|
1495
2165
|
return o.navbarManager.add(
|
|
1496
2166
|
{
|
|
1497
|
-
id:
|
|
1498
|
-
action:
|
|
2167
|
+
id: l.name,
|
|
2168
|
+
action: l
|
|
1499
2169
|
},
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
), (r && r.w || !r &&
|
|
2170
|
+
j,
|
|
2171
|
+
ze.PROJECT
|
|
2172
|
+
), (r && r.w || !r && this.config.isActiveOnStart) && o.windowManager.add(i, j), Promise.resolve();
|
|
1503
2173
|
},
|
|
1504
|
-
getDefaultOptions:
|
|
2174
|
+
getDefaultOptions: re,
|
|
1505
2175
|
getState() {
|
|
1506
|
-
var
|
|
1507
|
-
const
|
|
1508
|
-
return
|
|
2176
|
+
var s, a;
|
|
2177
|
+
const t = (s = this.selectedMainModuleIndex) == null ? void 0 : s.value, r = (a = this.selectedNestedModuleIndex) == null ? void 0 : a.value, i = o.windowManager.has(se), l = this.config.isActiveOnStart;
|
|
2178
|
+
return t !== void 0 || r !== void 0 || i !== l ? { smi: t, snmi: r, w: i } : {};
|
|
1509
2179
|
},
|
|
1510
2180
|
getConfigEditors() {
|
|
1511
2181
|
return [
|
|
1512
2182
|
{
|
|
1513
|
-
component:
|
|
2183
|
+
component: qo,
|
|
1514
2184
|
title: "moduleSelector.name",
|
|
1515
2185
|
infoUrlCallback: o.getHelpUrlCallback(
|
|
1516
2186
|
"/components/plugins/moduleSelectorConfig.html",
|
|
@@ -1520,8 +2190,8 @@ function to(e) {
|
|
|
1520
2190
|
];
|
|
1521
2191
|
},
|
|
1522
2192
|
toJSON() {
|
|
1523
|
-
const
|
|
1524
|
-
return this.config.windowTitle !== r.windowTitle && (
|
|
2193
|
+
const t = {}, r = re();
|
|
2194
|
+
return this.config.windowTitle !== r.windowTitle && (t.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== r.isActiveOnStart && (t.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== r.requireModuleSelection && (t.requireModuleSelection = this.config.requireModuleSelection), ce(this.config.position, r.position) || (t.position = this.config.position), ce(this.config.modules, r.modules) || (t.modules = this.config.modules), ce(this.config.basisModule, r.basisModule) || (t.basisModule = this.config.basisModule), e.serverUrl != null && (t.serverUrl = e.serverUrl), e.projectId != null && (t.projectId = e.projectId), e.appId != null && (t.appId = e.appId), e.token != null && (t.token = e.token), t;
|
|
1525
2195
|
},
|
|
1526
2196
|
i18n: {
|
|
1527
2197
|
de: {
|
|
@@ -1531,6 +2201,20 @@ function to(e) {
|
|
|
1531
2201
|
startButton: "Anwendung starten",
|
|
1532
2202
|
cardBack: "Zurück",
|
|
1533
2203
|
configEditor: {
|
|
2204
|
+
moduleCloudPicker: {
|
|
2205
|
+
searchName: "Suche nach Name...",
|
|
2206
|
+
continue: "Weiter",
|
|
2207
|
+
back: "Zurück",
|
|
2208
|
+
headers: {
|
|
2209
|
+
name: "Modul Name",
|
|
2210
|
+
type: "Typ",
|
|
2211
|
+
description: "Beschreibung",
|
|
2212
|
+
createdAt: "Erzeugt am",
|
|
2213
|
+
updatedAt: "Aktualisiert am",
|
|
2214
|
+
createdBy: "Erzeugt von",
|
|
2215
|
+
updatedBy: "Aktualisiert von"
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
1534
2218
|
TooltipAddModule: "Modul hinzufügen",
|
|
1535
2219
|
TooltipEditModule: "Modul bearbeiten",
|
|
1536
2220
|
TooltipEditGroup: "Modul-Gruppe bearbeiten",
|
|
@@ -1564,6 +2248,20 @@ function to(e) {
|
|
|
1564
2248
|
startButton: "Start application",
|
|
1565
2249
|
cardBack: "Back",
|
|
1566
2250
|
configEditor: {
|
|
2251
|
+
moduleCloudPicker: {
|
|
2252
|
+
searchName: "Search for name...",
|
|
2253
|
+
continue: "Continue",
|
|
2254
|
+
back: "Back",
|
|
2255
|
+
headers: {
|
|
2256
|
+
name: "Module name",
|
|
2257
|
+
type: "Type",
|
|
2258
|
+
description: "Description",
|
|
2259
|
+
createdAt: "Created at",
|
|
2260
|
+
updatedAt: "Updated at",
|
|
2261
|
+
createdBy: "Created by",
|
|
2262
|
+
updatedBy: "Updated by"
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
1567
2265
|
TooltipAddModule: "Add module",
|
|
1568
2266
|
TooltipEditModule: "Edit module",
|
|
1569
2267
|
TooltipEditGroup: "Edit module group",
|
|
@@ -1596,5 +2294,5 @@ function to(e) {
|
|
|
1596
2294
|
};
|
|
1597
2295
|
}
|
|
1598
2296
|
export {
|
|
1599
|
-
|
|
2297
|
+
Wo as default
|
|
1600
2298
|
};
|