@vcmap/module-selector 2.0.6 → 4.0.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/CHANGELOG.md +10 -0
- package/dist/index.js +658 -705
- package/package.json +15 -17
- package/src/ModuleSelector.vue +26 -18
- package/src/ModuleSelectorEdit.vue +7 -12
- package/src/config/CloudModuleSelector.vue +17 -15
- package/src/config/ModuleEditor.vue +9 -12
- package/src/config/ModuleSelectorConfigEditor.vue +32 -56
- package/src/config/WindowPositionSettings.vue +11 -22
- package/src/config/setupPublisherSDK.ts +1 -2
- package/src/defaultOptions.ts +1 -1
- package/src/index.ts +43 -21
- package/src/moduleHelper.ts +13 -38
package/dist/index.js
CHANGED
|
@@ -10,94 +10,64 @@ function loadCss(href) {
|
|
|
10
10
|
elem.onerror = reject;
|
|
11
11
|
document.head.appendChild(elem);
|
|
12
12
|
});
|
|
13
|
-
} await loadCss('data:text/css;base64,
|
|
14
|
-
var
|
|
15
|
-
var J = (e, o,
|
|
16
|
-
import { VcsFormButton as ce,
|
|
17
|
-
import { defineComponent as oe, inject as
|
|
18
|
-
import {
|
|
19
|
-
import { VcsModule as
|
|
13
|
+
} await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtZmYzYjkzZDlde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LWZmM2I5M2Q5XXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LWZmM2I5M2Q5XXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnRvcC1sZWZ0LWljb25bZGF0YS12LWZmM2I5M2Q5XXtwb3NpdGlvbjphYnNvbHV0ZTt0b3A6OHB4O2xlZnQ6OHB4O3otaW5kZXg6MTA7Y3Vyc29yOnBvaW50ZXI7Y29sb3I6cmdiKHZhcigtLXYtdGhlbWUtb24tc3VyZmFjZSkpfS50b3AtbGVmdC1pY29uLnNlbGVjdGVkW2RhdGEtdi1mZjNiOTNkOV17Y29sb3I6cmdiKHZhcigtLXYtdGhlbWUtb24tcHJpbWFyeSkpfS5ncm91cENhcmRbZGF0YS12LWZmM2I5M2Q5XXt3aWR0aDoxNDZweDtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXN1cmZhY2UpKTtib3JkZXI6bm9uZSFpbXBvcnRhbnQ7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCFpbXBvcnRhbnR9LmludGVybWVkaWF0ZS1jYXJkW2RhdGEtdi1mZjNiOTNkOV17d2lkdGg6MTQ4cHg7YmFja2dyb3VuZC1jb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1zdXJmYWNlKSk7Ym9yZGVyOm5vbmUhaW1wb3J0YW50O2JvcmRlci1yaWdodDoxcHggc29saWQhaW1wb3J0YW50fS5ncm91cFRpdGxlW2RhdGEtdi1mZjNiOTNkOV0sLmdyb3VwSWNvbltkYXRhLXYtZmYzYjkzZDlde21hcmdpbi1sZWZ0OjIwcHghaW1wb3J0YW50fS5maXhlZC1ib3R0b21bZGF0YS12LWZmM2I5M2Q5XXtwb3NpdGlvbjpzdGlja3k7Ym90dG9tOjA7YmFja2dyb3VuZC1jb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1zdXJmYWNlKSk7ei1pbmRleDoxMH0K');var Ge = Object.defineProperty;
|
|
14
|
+
var Re = (e, o, n) => o in e ? Ge(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n;
|
|
15
|
+
var J = (e, o, n) => Re(e, typeof o != "symbol" ? o + "" : o, n);
|
|
16
|
+
import { VcsFormButton as ce, VcsTextArea as Se, VcsFormSection as ye, VcsLabel as we, VcsTextField as me, VcsCheckbox as _e, useProxiedComplexModel as qe, useModelHasProperty as Pe, VcsDataTable as je, AbstractConfigEditor as Le, VcsList as ze, WindowSlot as We, createToggleAction as He, ButtonLocation as Ke } from "../../../assets/ui.js";
|
|
17
|
+
import { defineComponent as oe, inject as ke, computed as Z, resolveComponent as c, openBlock as $, createBlock as U, withCtx as t, createVNode as l, createElementVNode as L, toDisplayString as v, mergeProps as ue, createTextVNode as M, createCommentVNode as G, createElementBlock as K, Fragment as ee, renderList as he, normalizeClass as re, ref as A, normalizeProps as Je, guardReactiveProps as Ze, reactive as Qe, watch as Xe, toRaw as fe } from "../../../assets/vue.js";
|
|
18
|
+
import { VTooltip as Ue, VCardTitle as Ye, VIcon as Ae, VCard as Ee, VCol as te, VRow as le, VContainer as ie, VSheet as Te, VDivider as xe, VForm as Ie, VDialog as eo } from "../../../assets/vuetify.js";
|
|
19
|
+
import { VcsModule as oo } from "../../../assets/core.js";
|
|
20
20
|
function Ce(e, o) {
|
|
21
21
|
if (e != null) {
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
22
|
+
const n = Number.parseInt(String(e), 10);
|
|
23
|
+
if (n != null && !Number.isNaN(n))
|
|
24
|
+
return n;
|
|
25
25
|
}
|
|
26
26
|
return o;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return e == null ?
|
|
28
|
+
function to(e, o) {
|
|
29
|
+
return e == null ? !1 : 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);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function lo(e) {
|
|
32
32
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
if (o ===
|
|
36
|
-
if (o &&
|
|
37
|
-
if (o.constructor !==
|
|
38
|
-
var d,
|
|
34
|
+
var io = function e(o, n) {
|
|
35
|
+
if (o === n) return !0;
|
|
36
|
+
if (o && n && typeof o == "object" && typeof n == "object") {
|
|
37
|
+
if (o.constructor !== n.constructor) return !1;
|
|
38
|
+
var d, i, r;
|
|
39
39
|
if (Array.isArray(o)) {
|
|
40
|
-
if (d = o.length, d !=
|
|
41
|
-
for (
|
|
42
|
-
if (!e(o[
|
|
40
|
+
if (d = o.length, d != n.length) return !1;
|
|
41
|
+
for (i = d; i-- !== 0; )
|
|
42
|
+
if (!e(o[i], n[i])) return !1;
|
|
43
43
|
return !0;
|
|
44
44
|
}
|
|
45
|
-
if (o.constructor === RegExp) return o.source ===
|
|
46
|
-
if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() ===
|
|
47
|
-
if (o.toString !== Object.prototype.toString) return o.toString() ===
|
|
48
|
-
if (r = Object.keys(o), d = r.length, d !== Object.keys(
|
|
49
|
-
for (
|
|
50
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
51
|
-
for (
|
|
52
|
-
var s = r[
|
|
53
|
-
if (!e(o[s],
|
|
45
|
+
if (o.constructor === RegExp) return o.source === n.source && o.flags === n.flags;
|
|
46
|
+
if (o.valueOf !== Object.prototype.valueOf) return o.valueOf() === n.valueOf();
|
|
47
|
+
if (o.toString !== Object.prototype.toString) return o.toString() === n.toString();
|
|
48
|
+
if (r = Object.keys(o), d = r.length, d !== Object.keys(n).length) return !1;
|
|
49
|
+
for (i = d; i-- !== 0; )
|
|
50
|
+
if (!Object.prototype.hasOwnProperty.call(n, r[i])) return !1;
|
|
51
|
+
for (i = d; i-- !== 0; ) {
|
|
52
|
+
var s = r[i];
|
|
53
|
+
if (!e(o[s], n[s])) return !1;
|
|
54
54
|
}
|
|
55
55
|
return !0;
|
|
56
56
|
}
|
|
57
|
-
return o !== o &&
|
|
57
|
+
return o !== o && n !== n;
|
|
58
58
|
};
|
|
59
|
-
const ge = /* @__PURE__ */
|
|
60
|
-
async function $e(e, o) {
|
|
61
|
-
const i = await fetch(e, {
|
|
62
|
-
method: "GET"
|
|
63
|
-
}).then((d) => {
|
|
64
|
-
if (d.ok)
|
|
65
|
-
return d.json();
|
|
66
|
-
});
|
|
67
|
-
if (i) {
|
|
68
|
-
i._id = "moduleSelector_module_id";
|
|
69
|
-
const d = new lo(i);
|
|
70
|
-
await o.addModule(d);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
async function ao(e) {
|
|
74
|
-
var n, r;
|
|
75
|
-
const o = "moduleSelector_module_id", i = (n = e.maps.activeMap) == null ? void 0 : n.name;
|
|
76
|
-
e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(i || ((r = [...e.maps][0]) == null ? void 0 : r.name));
|
|
77
|
-
}
|
|
78
|
-
const ae = "moduleSelector_window_id";
|
|
79
|
-
async function Oe(e, o, i, d, n) {
|
|
80
|
-
var u;
|
|
81
|
-
if (await ao(i), e === null && !n) {
|
|
82
|
-
i.windowManager.remove(ae);
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const r = d[e], s = (r == null ? void 0 : r.type) === "group" ? (u = r.cards) == null ? void 0 : u[o] : null;
|
|
86
|
-
s != null && s.moduleUrl ? await $e(s.moduleUrl, i) : (r == null ? void 0 : r.type) === "url" && await $e(r.moduleUrl, i), i.windowManager.remove(ae);
|
|
87
|
-
}
|
|
88
|
-
const co = oe({
|
|
59
|
+
const ge = /* @__PURE__ */ lo(io), z = "@vcmap/module-selector", no = "4.0.0", ro = "^6.1", so = oe({
|
|
89
60
|
name: "ModuleSelector",
|
|
90
|
-
methods: { startApplication: Oe },
|
|
91
61
|
components: {
|
|
92
|
-
VSheet:
|
|
93
|
-
VContainer:
|
|
62
|
+
VSheet: Te,
|
|
63
|
+
VContainer: ie,
|
|
94
64
|
VRow: le,
|
|
95
|
-
VCol:
|
|
96
|
-
VCard:
|
|
97
|
-
VIcon:
|
|
98
|
-
VCardTitle:
|
|
65
|
+
VCol: te,
|
|
66
|
+
VCard: Ee,
|
|
67
|
+
VIcon: Ae,
|
|
68
|
+
VCardTitle: Ye,
|
|
99
69
|
VcsFormButton: ce,
|
|
100
|
-
VTooltip:
|
|
70
|
+
VTooltip: Ue
|
|
101
71
|
},
|
|
102
72
|
props: {
|
|
103
73
|
modules: {
|
|
@@ -116,72 +86,72 @@ const co = oe({
|
|
|
116
86
|
}
|
|
117
87
|
},
|
|
118
88
|
setup(e) {
|
|
119
|
-
const o =
|
|
120
|
-
const
|
|
121
|
-
return (
|
|
122
|
-
}), r = (
|
|
123
|
-
|
|
124
|
-
}, s = (
|
|
125
|
-
|
|
89
|
+
const o = ke("vcsApp"), n = o.plugins.getByKey(z), { modules: d } = e, i = Z(() => {
|
|
90
|
+
const a = e.modules[n.selectedMainModuleIndex.value];
|
|
91
|
+
return (a == null ? void 0 : a.type) === "group" ? a.cards : [];
|
|
92
|
+
}), r = (a) => {
|
|
93
|
+
n.selectedMainModuleIndex.value === a ? n.selectedMainModuleIndex.value = null : n.selectedMainModuleIndex.value = a;
|
|
94
|
+
}, s = (a) => {
|
|
95
|
+
n.selectedNestedModuleIndex.value === a ? n.selectedNestedModuleIndex.value = null : n.selectedNestedModuleIndex.value = a;
|
|
126
96
|
}, u = () => {
|
|
127
|
-
|
|
128
|
-
},
|
|
97
|
+
n.selectedNestedModuleIndex.value = null, n.selectedMainModuleIndex.value = null;
|
|
98
|
+
}, f = Z(() => {
|
|
129
99
|
if (!e.requireModuleSelection) return !1;
|
|
130
|
-
const
|
|
131
|
-
return
|
|
100
|
+
const a = n.selectedMainModuleIndex.value, w = n.selectedNestedModuleIndex.value, S = d[a];
|
|
101
|
+
return a == null || (S == null ? void 0 : S.type) === "group" && S.cards && w == null;
|
|
132
102
|
});
|
|
133
103
|
return {
|
|
134
|
-
nestedCards:
|
|
135
|
-
plugin:
|
|
104
|
+
nestedCards: i,
|
|
105
|
+
plugin: n,
|
|
136
106
|
selectModule: r,
|
|
137
107
|
selectNestedModule: s,
|
|
138
108
|
showMainCards: u,
|
|
139
|
-
isButtonDisabled:
|
|
109
|
+
isButtonDisabled: f,
|
|
140
110
|
app: o
|
|
141
111
|
};
|
|
142
112
|
}
|
|
143
113
|
}), ne = (e, o) => {
|
|
144
|
-
const
|
|
145
|
-
for (const [d,
|
|
146
|
-
|
|
147
|
-
return
|
|
114
|
+
const n = e.__vccOpts || e;
|
|
115
|
+
for (const [d, i] of o)
|
|
116
|
+
n[d] = i;
|
|
117
|
+
return n;
|
|
148
118
|
};
|
|
149
|
-
function
|
|
150
|
-
const s =
|
|
151
|
-
return
|
|
119
|
+
function uo(e, o, n, d, i, r) {
|
|
120
|
+
const s = c("v-icon"), u = c("v-tooltip"), f = c("v-card-title"), a = c("v-card"), w = c("v-col"), S = c("v-row"), y = c("VcsFormButton"), B = c("v-container"), b = c("v-sheet");
|
|
121
|
+
return $(), U(b, {
|
|
152
122
|
class: "module-selector",
|
|
153
123
|
elevation: "1"
|
|
154
124
|
}, {
|
|
155
125
|
default: t(() => [
|
|
156
126
|
l(B, null, {
|
|
157
127
|
default: t(() => [
|
|
158
|
-
l(
|
|
128
|
+
l(S, {
|
|
159
129
|
class: "justify-center align-center",
|
|
160
130
|
"no-gutters": ""
|
|
161
131
|
}, {
|
|
162
132
|
default: t(() => [
|
|
163
|
-
e.basisModule && !e.nestedCards.length ? (
|
|
133
|
+
e.basisModule && !e.nestedCards.length ? ($(), U(w, {
|
|
164
134
|
key: 0,
|
|
165
135
|
cols: "auto",
|
|
166
136
|
class: "pa-2"
|
|
167
137
|
}, {
|
|
168
138
|
default: t(() => [
|
|
169
|
-
l(
|
|
139
|
+
l(a, {
|
|
170
140
|
class: "pa-3 fixed-card selected-card",
|
|
171
141
|
variant: "outlined"
|
|
172
142
|
}, {
|
|
173
143
|
default: t(() => [
|
|
174
144
|
l(u, { "max-width": 300 }, {
|
|
175
|
-
activator: t(({ props:
|
|
176
|
-
e.basisModule.description ? (
|
|
145
|
+
activator: t(({ props: h }) => [
|
|
146
|
+
e.basisModule.description ? ($(), U(
|
|
177
147
|
s,
|
|
178
|
-
|
|
148
|
+
ue({
|
|
179
149
|
key: 0,
|
|
180
|
-
class: "top-
|
|
181
|
-
},
|
|
150
|
+
class: "top-left-icon"
|
|
151
|
+
}, h),
|
|
182
152
|
{
|
|
183
153
|
default: t(() => [
|
|
184
|
-
|
|
154
|
+
M(v("$vcsInfo"))
|
|
185
155
|
]),
|
|
186
156
|
_: 2
|
|
187
157
|
/* DYNAMIC */
|
|
@@ -194,7 +164,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
194
164
|
L(
|
|
195
165
|
"span",
|
|
196
166
|
null,
|
|
197
|
-
|
|
167
|
+
v(e.$st(e.basisModule.description)),
|
|
198
168
|
1
|
|
199
169
|
/* TEXT */
|
|
200
170
|
)
|
|
@@ -202,13 +172,13 @@ function mo(e, o, i, d, n, r) {
|
|
|
202
172
|
_: 1
|
|
203
173
|
/* STABLE */
|
|
204
174
|
}),
|
|
205
|
-
e.basisModule.icon ? (
|
|
175
|
+
e.basisModule.icon ? ($(), U(s, {
|
|
206
176
|
key: 0,
|
|
207
177
|
size: "50"
|
|
208
178
|
}, {
|
|
209
179
|
default: t(() => [
|
|
210
|
-
|
|
211
|
-
|
|
180
|
+
M(
|
|
181
|
+
v(e.basisModule.icon),
|
|
212
182
|
1
|
|
213
183
|
/* TEXT */
|
|
214
184
|
)
|
|
@@ -216,10 +186,10 @@ function mo(e, o, i, d, n, r) {
|
|
|
216
186
|
_: 1
|
|
217
187
|
/* STABLE */
|
|
218
188
|
})) : G("v-if", !0),
|
|
219
|
-
l(
|
|
189
|
+
l(f, { class: "text-center" }, {
|
|
220
190
|
default: t(() => [
|
|
221
|
-
|
|
222
|
-
|
|
191
|
+
M(
|
|
192
|
+
v(e.$st(e.basisModule.title)),
|
|
223
193
|
1
|
|
224
194
|
/* TEXT */
|
|
225
195
|
)
|
|
@@ -235,30 +205,30 @@ function mo(e, o, i, d, n, r) {
|
|
|
235
205
|
_: 1
|
|
236
206
|
/* STABLE */
|
|
237
207
|
})) : G("v-if", !0),
|
|
238
|
-
e.nestedCards.length ? (
|
|
208
|
+
e.nestedCards.length ? ($(), K(
|
|
239
209
|
ee,
|
|
240
210
|
{ key: 2 },
|
|
241
211
|
[
|
|
242
|
-
l(
|
|
212
|
+
l(w, {
|
|
243
213
|
cols: "auto",
|
|
244
214
|
class: "pa-2"
|
|
245
215
|
}, {
|
|
246
216
|
default: t(() => [
|
|
247
|
-
l(
|
|
217
|
+
l(a, {
|
|
248
218
|
class: "fixed-card hover-card",
|
|
249
219
|
variant: "outlined",
|
|
250
|
-
onClick: o[0] || (o[0] = (
|
|
220
|
+
onClick: o[0] || (o[0] = (h) => e.showMainCards())
|
|
251
221
|
}, {
|
|
252
222
|
default: t(() => [
|
|
253
223
|
l(s, { size: "50" }, {
|
|
254
224
|
default: t(() => [
|
|
255
|
-
|
|
225
|
+
M("mdi-arrow-left")
|
|
256
226
|
]),
|
|
257
227
|
_: 1
|
|
258
228
|
/* STABLE */
|
|
259
229
|
}),
|
|
260
|
-
|
|
261
|
-
" " +
|
|
230
|
+
M(
|
|
231
|
+
" " + v(e.$st("moduleSelector.cardBack")),
|
|
262
232
|
1
|
|
263
233
|
/* TEXT */
|
|
264
234
|
)
|
|
@@ -270,24 +240,24 @@ function mo(e, o, i, d, n, r) {
|
|
|
270
240
|
_: 1
|
|
271
241
|
/* STABLE */
|
|
272
242
|
}),
|
|
273
|
-
(
|
|
243
|
+
($(!0), K(
|
|
274
244
|
ee,
|
|
275
245
|
null,
|
|
276
|
-
he(e.nestedCards, (
|
|
277
|
-
|
|
246
|
+
he(e.nestedCards, (h, T) => ($(), U(
|
|
247
|
+
w,
|
|
278
248
|
{
|
|
279
|
-
key:
|
|
249
|
+
key: T,
|
|
280
250
|
cols: "auto",
|
|
281
251
|
class: "pa-2"
|
|
282
252
|
},
|
|
283
253
|
{
|
|
284
254
|
default: t(() => [
|
|
285
|
-
l(
|
|
255
|
+
l(a, {
|
|
286
256
|
class: re(["fixed-card hover-card", {
|
|
287
|
-
"selected-card": e.plugin.selectedNestedModuleIndex.value ===
|
|
257
|
+
"selected-card": e.plugin.selectedNestedModuleIndex.value === T
|
|
288
258
|
}]),
|
|
289
259
|
variant: "outlined",
|
|
290
|
-
onClick: (p) => e.selectNestedModule(
|
|
260
|
+
onClick: (p) => e.selectNestedModule(T)
|
|
291
261
|
}, {
|
|
292
262
|
default: t(() => [
|
|
293
263
|
l(
|
|
@@ -295,16 +265,16 @@ function mo(e, o, i, d, n, r) {
|
|
|
295
265
|
{ "max-width": 300 },
|
|
296
266
|
{
|
|
297
267
|
activator: t(({ props: p }) => [
|
|
298
|
-
|
|
268
|
+
h.description ? ($(), U(
|
|
299
269
|
s,
|
|
300
|
-
|
|
270
|
+
ue({
|
|
301
271
|
key: 0,
|
|
302
|
-
class: "top-
|
|
272
|
+
class: "top-left-icon",
|
|
303
273
|
ref_for: !0
|
|
304
274
|
}, p),
|
|
305
275
|
{
|
|
306
276
|
default: t(() => [
|
|
307
|
-
|
|
277
|
+
M(v("$vcsInfo"))
|
|
308
278
|
]),
|
|
309
279
|
_: 2
|
|
310
280
|
/* DYNAMIC */
|
|
@@ -317,7 +287,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
317
287
|
L(
|
|
318
288
|
"span",
|
|
319
289
|
null,
|
|
320
|
-
|
|
290
|
+
v(e.$st(h.description)),
|
|
321
291
|
1
|
|
322
292
|
/* TEXT */
|
|
323
293
|
)
|
|
@@ -328,7 +298,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
328
298
|
1024
|
|
329
299
|
/* DYNAMIC_SLOTS */
|
|
330
300
|
),
|
|
331
|
-
|
|
301
|
+
h.icon ? ($(), U(
|
|
332
302
|
s,
|
|
333
303
|
{
|
|
334
304
|
key: 0,
|
|
@@ -336,8 +306,8 @@ function mo(e, o, i, d, n, r) {
|
|
|
336
306
|
},
|
|
337
307
|
{
|
|
338
308
|
default: t(() => [
|
|
339
|
-
|
|
340
|
-
|
|
309
|
+
M(
|
|
310
|
+
v(h.icon),
|
|
341
311
|
1
|
|
342
312
|
/* TEXT */
|
|
343
313
|
)
|
|
@@ -349,12 +319,12 @@ function mo(e, o, i, d, n, r) {
|
|
|
349
319
|
/* DYNAMIC_SLOTS */
|
|
350
320
|
)) : G("v-if", !0),
|
|
351
321
|
l(
|
|
352
|
-
|
|
322
|
+
f,
|
|
353
323
|
{ class: "text-center" },
|
|
354
324
|
{
|
|
355
325
|
default: t(() => [
|
|
356
|
-
|
|
357
|
-
|
|
326
|
+
M(
|
|
327
|
+
v(e.$st(h.title)),
|
|
358
328
|
1
|
|
359
329
|
/* TEXT */
|
|
360
330
|
)
|
|
@@ -382,25 +352,25 @@ function mo(e, o, i, d, n, r) {
|
|
|
382
352
|
],
|
|
383
353
|
64
|
|
384
354
|
/* STABLE_FRAGMENT */
|
|
385
|
-
)) : (
|
|
355
|
+
)) : ($(!0), K(
|
|
386
356
|
ee,
|
|
387
357
|
{ key: 1 },
|
|
388
|
-
he(e.modules, (
|
|
389
|
-
|
|
358
|
+
he(e.modules, (h, T) => ($(), U(
|
|
359
|
+
w,
|
|
390
360
|
{
|
|
361
|
+
key: T,
|
|
391
362
|
cols: "auto",
|
|
392
|
-
class: "pa-2"
|
|
393
|
-
key: N
|
|
363
|
+
class: "pa-2"
|
|
394
364
|
},
|
|
395
365
|
{
|
|
396
366
|
default: t(() => [
|
|
397
|
-
l(
|
|
367
|
+
l(a, {
|
|
398
368
|
class: re(["fixed-card hover-card", {
|
|
399
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
400
|
-
"pr-3":
|
|
369
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
370
|
+
"pr-3": h.type === "group"
|
|
401
371
|
}]),
|
|
402
372
|
variant: "outlined",
|
|
403
|
-
onClick: (p) => e.selectModule(
|
|
373
|
+
onClick: (p) => e.selectModule(T)
|
|
404
374
|
}, {
|
|
405
375
|
default: t(() => [
|
|
406
376
|
l(
|
|
@@ -408,29 +378,25 @@ function mo(e, o, i, d, n, r) {
|
|
|
408
378
|
{ "max-width": 300 },
|
|
409
379
|
{
|
|
410
380
|
activator: t(({ props: p }) => [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
},
|
|
425
|
-
1040
|
|
426
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
427
|
-
)) : G("v-if", !0)
|
|
381
|
+
h.description ? ($(), U(s, ue({
|
|
382
|
+
key: 0,
|
|
383
|
+
class: ["top-left-icon", {
|
|
384
|
+
selected: e.plugin.selectedMainModuleIndex.value === T
|
|
385
|
+
}],
|
|
386
|
+
ref_for: !0
|
|
387
|
+
}, p), {
|
|
388
|
+
default: t(() => [
|
|
389
|
+
M(v("$vcsInfo"))
|
|
390
|
+
]),
|
|
391
|
+
_: 2
|
|
392
|
+
/* DYNAMIC */
|
|
393
|
+
}, 1040, ["class"])) : G("v-if", !0)
|
|
428
394
|
]),
|
|
429
395
|
default: t(() => [
|
|
430
396
|
L(
|
|
431
397
|
"span",
|
|
432
398
|
null,
|
|
433
|
-
|
|
399
|
+
v(e.$st(h.description)),
|
|
434
400
|
1
|
|
435
401
|
/* TEXT */
|
|
436
402
|
)
|
|
@@ -441,25 +407,25 @@ function mo(e, o, i, d, n, r) {
|
|
|
441
407
|
1024
|
|
442
408
|
/* DYNAMIC_SLOTS */
|
|
443
409
|
),
|
|
444
|
-
|
|
410
|
+
h.type === "group" && h.cards ? ($(), U(a, {
|
|
445
411
|
key: 0,
|
|
446
412
|
class: re(["intermediate-card", {
|
|
447
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
448
|
-
"pr-3":
|
|
413
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
414
|
+
"pr-3": h.type === "group"
|
|
449
415
|
}]),
|
|
450
416
|
variant: "outlined"
|
|
451
417
|
}, {
|
|
452
418
|
default: t(() => [
|
|
453
|
-
l(
|
|
454
|
-
variant:
|
|
419
|
+
l(a, {
|
|
420
|
+
variant: h.type === "group" && h.cards ? "outlined" : void 0,
|
|
455
421
|
class: re({
|
|
456
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
457
|
-
groupCard:
|
|
458
|
-
innerCard:
|
|
422
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
423
|
+
groupCard: h.type === "group",
|
|
424
|
+
innerCard: h.type === "group"
|
|
459
425
|
})
|
|
460
426
|
}, {
|
|
461
427
|
default: t(() => [
|
|
462
|
-
|
|
428
|
+
h.icon ? ($(), U(
|
|
463
429
|
s,
|
|
464
430
|
{
|
|
465
431
|
key: 0,
|
|
@@ -468,8 +434,8 @@ function mo(e, o, i, d, n, r) {
|
|
|
468
434
|
},
|
|
469
435
|
{
|
|
470
436
|
default: t(() => [
|
|
471
|
-
|
|
472
|
-
|
|
437
|
+
M(
|
|
438
|
+
v(h.icon),
|
|
473
439
|
1
|
|
474
440
|
/* TEXT */
|
|
475
441
|
)
|
|
@@ -481,12 +447,12 @@ function mo(e, o, i, d, n, r) {
|
|
|
481
447
|
/* DYNAMIC_SLOTS */
|
|
482
448
|
)) : G("v-if", !0),
|
|
483
449
|
l(
|
|
484
|
-
|
|
450
|
+
f,
|
|
485
451
|
{ class: "text-center groupTitle" },
|
|
486
452
|
{
|
|
487
453
|
default: t(() => [
|
|
488
|
-
|
|
489
|
-
|
|
454
|
+
M(
|
|
455
|
+
v(e.$st(h.title)),
|
|
490
456
|
1
|
|
491
457
|
/* TEXT */
|
|
492
458
|
)
|
|
@@ -504,11 +470,11 @@ function mo(e, o, i, d, n, r) {
|
|
|
504
470
|
]),
|
|
505
471
|
_: 2
|
|
506
472
|
/* DYNAMIC */
|
|
507
|
-
}, 1032, ["class"])) : (
|
|
473
|
+
}, 1032, ["class"])) : ($(), K(
|
|
508
474
|
ee,
|
|
509
475
|
{ key: 1 },
|
|
510
476
|
[
|
|
511
|
-
|
|
477
|
+
h.icon ? ($(), U(
|
|
512
478
|
s,
|
|
513
479
|
{
|
|
514
480
|
key: 0,
|
|
@@ -516,8 +482,8 @@ function mo(e, o, i, d, n, r) {
|
|
|
516
482
|
},
|
|
517
483
|
{
|
|
518
484
|
default: t(() => [
|
|
519
|
-
|
|
520
|
-
|
|
485
|
+
M(
|
|
486
|
+
v(h.icon),
|
|
521
487
|
1
|
|
522
488
|
/* TEXT */
|
|
523
489
|
)
|
|
@@ -529,12 +495,12 @@ function mo(e, o, i, d, n, r) {
|
|
|
529
495
|
/* DYNAMIC_SLOTS */
|
|
530
496
|
)) : G("v-if", !0),
|
|
531
497
|
l(
|
|
532
|
-
|
|
498
|
+
f,
|
|
533
499
|
{ class: "text-center" },
|
|
534
500
|
{
|
|
535
501
|
default: t(() => [
|
|
536
|
-
|
|
537
|
-
|
|
502
|
+
M(
|
|
503
|
+
v(e.$st(h.title)),
|
|
538
504
|
1
|
|
539
505
|
/* TEXT */
|
|
540
506
|
)
|
|
@@ -567,26 +533,23 @@ function mo(e, o, i, d, n, r) {
|
|
|
567
533
|
_: 1
|
|
568
534
|
/* STABLE */
|
|
569
535
|
}),
|
|
570
|
-
l(
|
|
536
|
+
l(S, {
|
|
571
537
|
class: "fixed-bottom",
|
|
572
538
|
justify: "end"
|
|
573
539
|
}, {
|
|
574
540
|
default: t(() => [
|
|
575
|
-
l(
|
|
541
|
+
l(y, {
|
|
576
542
|
variant: "filled",
|
|
577
543
|
class: "ma-5",
|
|
578
|
-
|
|
544
|
+
disabled: e.isButtonDisabled,
|
|
545
|
+
onClick: o[1] || (o[1] = (h) => e.plugin.startApplication(
|
|
579
546
|
e.plugin.selectedMainModuleIndex.value,
|
|
580
|
-
e.plugin.selectedNestedModuleIndex.value
|
|
581
|
-
|
|
582
|
-
e.modules,
|
|
583
|
-
e.basisModule
|
|
584
|
-
)),
|
|
585
|
-
disabled: e.isButtonDisabled
|
|
547
|
+
e.plugin.selectedNestedModuleIndex.value
|
|
548
|
+
))
|
|
586
549
|
}, {
|
|
587
550
|
default: t(() => [
|
|
588
|
-
|
|
589
|
-
|
|
551
|
+
M(
|
|
552
|
+
v(e.$st("moduleSelector.startButton")),
|
|
590
553
|
1
|
|
591
554
|
/* TEXT */
|
|
592
555
|
)
|
|
@@ -607,7 +570,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
607
570
|
/* STABLE */
|
|
608
571
|
});
|
|
609
572
|
}
|
|
610
|
-
const
|
|
573
|
+
const ao = /* @__PURE__ */ ne(so, [["render", uo], ["__scopeId", "data-v-ff3b93d9"]]), ae = () => ({
|
|
611
574
|
windowTitle: "moduleSelector.title",
|
|
612
575
|
isActiveOnStart: !0,
|
|
613
576
|
requireModuleSelection: !1,
|
|
@@ -623,20 +586,20 @@ const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-e7ec1fe
|
|
|
623
586
|
projectId: "",
|
|
624
587
|
appId: "",
|
|
625
588
|
token: ""
|
|
626
|
-
}),
|
|
589
|
+
}), co = oe({
|
|
627
590
|
name: "ModuleEditor",
|
|
628
591
|
components: {
|
|
629
592
|
VcsTextField: me,
|
|
630
|
-
VcsLabel:
|
|
631
|
-
VCol:
|
|
593
|
+
VcsLabel: we,
|
|
594
|
+
VCol: te,
|
|
632
595
|
VRow: le,
|
|
633
|
-
VForm:
|
|
634
|
-
VContainer:
|
|
596
|
+
VForm: Ie,
|
|
597
|
+
VContainer: ie,
|
|
635
598
|
VcsFormButton: ce,
|
|
636
|
-
VDivider:
|
|
637
|
-
VCard:
|
|
599
|
+
VDivider: xe,
|
|
600
|
+
VCard: Ee,
|
|
638
601
|
VcsFormSection: ye,
|
|
639
|
-
VcsTextArea:
|
|
602
|
+
VcsTextArea: Se
|
|
640
603
|
},
|
|
641
604
|
props: {
|
|
642
605
|
modelValue: {
|
|
@@ -644,33 +607,29 @@ const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-e7ec1fe
|
|
|
644
607
|
required: !0
|
|
645
608
|
}
|
|
646
609
|
},
|
|
610
|
+
emits: ["submit", "close"],
|
|
647
611
|
setup(e) {
|
|
648
|
-
const o = A(e.modelValue),
|
|
649
|
-
return {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
validateForm: () => {
|
|
653
|
-
i.value = !!o.value.title;
|
|
654
|
-
},
|
|
655
|
-
requiredRule: (r) => !!r || "moduleSelector.configEditor.editorError"
|
|
656
|
-
};
|
|
612
|
+
const o = A(e.modelValue), n = A(!1);
|
|
613
|
+
return { localModuleOptions: o, isFormValid: n, validateForm: () => {
|
|
614
|
+
n.value = !!o.value.title;
|
|
615
|
+
}, requiredRule: (r) => !!r || "moduleSelector.configEditor.editorError" };
|
|
657
616
|
}
|
|
658
|
-
}),
|
|
659
|
-
function
|
|
660
|
-
const s =
|
|
661
|
-
return
|
|
617
|
+
}), mo = { class: "d-flex gc-2 w-100 justify-end pa-2" };
|
|
618
|
+
function po(e, o, n, d, i, r) {
|
|
619
|
+
const s = c("VcsLabel"), u = c("v-col"), f = c("VcsTextField"), a = c("v-row"), w = c("VcsTextArea"), S = c("v-container"), y = c("v-form"), B = c("v-divider"), b = c("VcsFormButton"), h = c("VcsFormSection"), T = c("v-card");
|
|
620
|
+
return $(), U(T, null, {
|
|
662
621
|
default: t(() => [
|
|
663
|
-
l(
|
|
622
|
+
l(h, { heading: "moduleSelector.configEditor.moduleSettings" }, {
|
|
664
623
|
default: t(() => [
|
|
665
|
-
l(
|
|
624
|
+
l(y, {
|
|
625
|
+
ref: "form",
|
|
666
626
|
modelValue: e.isFormValid,
|
|
667
|
-
"onUpdate:modelValue": o[4] || (o[4] = (p) => e.isFormValid = p)
|
|
668
|
-
ref: "form"
|
|
627
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => e.isFormValid = p)
|
|
669
628
|
}, {
|
|
670
629
|
default: t(() => [
|
|
671
|
-
l(
|
|
630
|
+
l(S, { class: "px-2 pt-0 pb-2" }, {
|
|
672
631
|
default: t(() => [
|
|
673
|
-
l(
|
|
632
|
+
l(a, { "no-gutters": "" }, {
|
|
674
633
|
default: t(() => [
|
|
675
634
|
l(u, { cols: "6" }, {
|
|
676
635
|
default: t(() => [
|
|
@@ -679,8 +638,8 @@ function vo(e, o, i, d, n, r) {
|
|
|
679
638
|
"html-for": "moduleName"
|
|
680
639
|
}, {
|
|
681
640
|
default: t(() => [
|
|
682
|
-
|
|
683
|
-
|
|
641
|
+
M(
|
|
642
|
+
v(e.$st("moduleSelector.configEditor.moduleName")),
|
|
684
643
|
1
|
|
685
644
|
/* TEXT */
|
|
686
645
|
)
|
|
@@ -694,11 +653,11 @@ function vo(e, o, i, d, n, r) {
|
|
|
694
653
|
}),
|
|
695
654
|
l(u, { cols: "6" }, {
|
|
696
655
|
default: t(() => [
|
|
697
|
-
l(
|
|
656
|
+
l(f, {
|
|
698
657
|
id: "moduleName",
|
|
699
|
-
placeholder: "Module Name",
|
|
700
658
|
modelValue: e.localModuleOptions.title,
|
|
701
659
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => e.localModuleOptions.title = p),
|
|
660
|
+
placeholder: "Module Name",
|
|
702
661
|
rules: [e.requiredRule]
|
|
703
662
|
}, null, 8, ["modelValue", "rules"])
|
|
704
663
|
]),
|
|
@@ -709,7 +668,7 @@ function vo(e, o, i, d, n, r) {
|
|
|
709
668
|
_: 1
|
|
710
669
|
/* STABLE */
|
|
711
670
|
}),
|
|
712
|
-
l(
|
|
671
|
+
l(a, { "no-gutters": "" }, {
|
|
713
672
|
default: t(() => [
|
|
714
673
|
l(u, { cols: "6" }, {
|
|
715
674
|
default: t(() => [
|
|
@@ -718,8 +677,8 @@ function vo(e, o, i, d, n, r) {
|
|
|
718
677
|
"html-for": "moduleIcon"
|
|
719
678
|
}, {
|
|
720
679
|
default: t(() => [
|
|
721
|
-
|
|
722
|
-
|
|
680
|
+
M(
|
|
681
|
+
v(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
723
682
|
1
|
|
724
683
|
/* TEXT */
|
|
725
684
|
)
|
|
@@ -733,11 +692,11 @@ function vo(e, o, i, d, n, r) {
|
|
|
733
692
|
}),
|
|
734
693
|
l(u, { cols: "6" }, {
|
|
735
694
|
default: t(() => [
|
|
736
|
-
l(
|
|
695
|
+
l(f, {
|
|
737
696
|
id: "moduleIcon",
|
|
738
|
-
placeholder: "Icon Name",
|
|
739
697
|
modelValue: e.localModuleOptions.icon,
|
|
740
698
|
"onUpdate:modelValue": o[1] || (o[1] = (p) => e.localModuleOptions.icon = p),
|
|
699
|
+
placeholder: "Icon Name",
|
|
741
700
|
rules: [e.requiredRule]
|
|
742
701
|
}, null, 8, ["modelValue", "rules"])
|
|
743
702
|
]),
|
|
@@ -748,7 +707,7 @@ function vo(e, o, i, d, n, r) {
|
|
|
748
707
|
_: 1
|
|
749
708
|
/* STABLE */
|
|
750
709
|
}),
|
|
751
|
-
l(
|
|
710
|
+
l(a, { "no-gutters": "" }, {
|
|
752
711
|
default: t(() => [
|
|
753
712
|
l(u, { cols: "6" }, {
|
|
754
713
|
default: t(() => [
|
|
@@ -757,8 +716,8 @@ function vo(e, o, i, d, n, r) {
|
|
|
757
716
|
"html-for": "moduleUrl"
|
|
758
717
|
}, {
|
|
759
718
|
default: t(() => [
|
|
760
|
-
|
|
761
|
-
|
|
719
|
+
M(
|
|
720
|
+
v(e.$st("moduleSelector.configEditor.moduleUrl")),
|
|
762
721
|
1
|
|
763
722
|
/* TEXT */
|
|
764
723
|
)
|
|
@@ -772,11 +731,11 @@ function vo(e, o, i, d, n, r) {
|
|
|
772
731
|
}),
|
|
773
732
|
l(u, { cols: "6" }, {
|
|
774
733
|
default: t(() => [
|
|
775
|
-
l(
|
|
734
|
+
l(f, {
|
|
776
735
|
id: "moduleUrl",
|
|
777
|
-
placeholder: "URL",
|
|
778
736
|
modelValue: e.localModuleOptions.moduleUrl,
|
|
779
737
|
"onUpdate:modelValue": o[2] || (o[2] = (p) => e.localModuleOptions.moduleUrl = p),
|
|
738
|
+
placeholder: "URL",
|
|
780
739
|
rules: [e.requiredRule]
|
|
781
740
|
}, null, 8, ["modelValue", "rules"])
|
|
782
741
|
]),
|
|
@@ -787,14 +746,14 @@ function vo(e, o, i, d, n, r) {
|
|
|
787
746
|
_: 1
|
|
788
747
|
/* STABLE */
|
|
789
748
|
}),
|
|
790
|
-
l(
|
|
749
|
+
l(a, { "no-gutters": "" }, {
|
|
791
750
|
default: t(() => [
|
|
792
751
|
l(u, { cols: "6" }, {
|
|
793
752
|
default: t(() => [
|
|
794
753
|
l(s, { "html-for": "moduleDescription" }, {
|
|
795
754
|
default: t(() => [
|
|
796
|
-
|
|
797
|
-
|
|
755
|
+
M(
|
|
756
|
+
v(e.$st("moduleSelector.configEditor.moduleDescription")),
|
|
798
757
|
1
|
|
799
758
|
/* TEXT */
|
|
800
759
|
)
|
|
@@ -808,7 +767,7 @@ function vo(e, o, i, d, n, r) {
|
|
|
808
767
|
}),
|
|
809
768
|
l(u, { cols: "6" }, {
|
|
810
769
|
default: t(() => [
|
|
811
|
-
l(
|
|
770
|
+
l(w, {
|
|
812
771
|
id: "moduleDescription",
|
|
813
772
|
modelValue: e.localModuleOptions.description,
|
|
814
773
|
"onUpdate:modelValue": o[3] || (o[3] = (p) => e.localModuleOptions.description = p)
|
|
@@ -830,17 +789,17 @@ function vo(e, o, i, d, n, r) {
|
|
|
830
789
|
/* STABLE */
|
|
831
790
|
}, 8, ["modelValue"]),
|
|
832
791
|
l(B),
|
|
833
|
-
L("div",
|
|
792
|
+
L("div", mo, [
|
|
834
793
|
l(b, {
|
|
835
794
|
disabled: !e.isFormValid,
|
|
795
|
+
variant: "filled",
|
|
836
796
|
onClick: o[5] || (o[5] = () => {
|
|
837
797
|
e.$emit("submit", e.localModuleOptions);
|
|
838
|
-
})
|
|
839
|
-
variant: "filled"
|
|
798
|
+
})
|
|
840
799
|
}, {
|
|
841
800
|
default: t(() => [
|
|
842
|
-
|
|
843
|
-
|
|
801
|
+
M(
|
|
802
|
+
v(e.$st("components.apply")),
|
|
844
803
|
1
|
|
845
804
|
/* TEXT */
|
|
846
805
|
)
|
|
@@ -852,8 +811,8 @@ function vo(e, o, i, d, n, r) {
|
|
|
852
811
|
onClick: o[6] || (o[6] = (p) => e.$emit("close"))
|
|
853
812
|
}, {
|
|
854
813
|
default: t(() => [
|
|
855
|
-
|
|
856
|
-
|
|
814
|
+
M(
|
|
815
|
+
v(e.$st("components.cancel")),
|
|
857
816
|
1
|
|
858
817
|
/* TEXT */
|
|
859
818
|
)
|
|
@@ -871,15 +830,9 @@ function vo(e, o, i, d, n, r) {
|
|
|
871
830
|
/* STABLE */
|
|
872
831
|
});
|
|
873
832
|
}
|
|
874
|
-
const
|
|
833
|
+
const fo = /* @__PURE__ */ ne(co, [["render", po]]), go = oe({
|
|
875
834
|
name: "WindowPositionSettings",
|
|
876
|
-
components: {
|
|
877
|
-
VContainer: te,
|
|
878
|
-
VRow: le,
|
|
879
|
-
VCol: ie,
|
|
880
|
-
VcsCheckbox: ke,
|
|
881
|
-
VcsTextField: me
|
|
882
|
-
},
|
|
835
|
+
components: { VContainer: ie, VRow: le, VCol: te, VcsCheckbox: _e, VcsTextField: me },
|
|
883
836
|
props: {
|
|
884
837
|
modelValue: {
|
|
885
838
|
type: Object,
|
|
@@ -891,43 +844,42 @@ const ho = /* @__PURE__ */ ne(fo, [["render", vo]]), Mo = oe({
|
|
|
891
844
|
}
|
|
892
845
|
},
|
|
893
846
|
setup(e, { emit: o }) {
|
|
894
|
-
const
|
|
847
|
+
const n = qe(
|
|
895
848
|
e,
|
|
896
849
|
"modelValue",
|
|
897
850
|
o
|
|
898
851
|
);
|
|
899
|
-
return {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
};
|
|
852
|
+
return { inputs: Z(() => e.positionKeys.reduce(
|
|
853
|
+
(i, r) => (i[r] = {
|
|
854
|
+
key: r,
|
|
855
|
+
checkbox: Pe(n, r, null),
|
|
856
|
+
input: Z({
|
|
857
|
+
get() {
|
|
858
|
+
return n.value[r];
|
|
859
|
+
},
|
|
860
|
+
set(s) {
|
|
861
|
+
n.value[r] = s;
|
|
862
|
+
}
|
|
863
|
+
}),
|
|
864
|
+
placeholder: "auto"
|
|
865
|
+
}, i),
|
|
866
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
867
|
+
{}
|
|
868
|
+
)) };
|
|
917
869
|
}
|
|
918
870
|
});
|
|
919
|
-
function
|
|
920
|
-
const s =
|
|
921
|
-
return
|
|
871
|
+
function vo(e, o, n, d, i, r) {
|
|
872
|
+
const s = c("VcsCheckbox"), u = c("v-col"), f = c("VcsTextField"), a = c("v-row"), w = c("v-container");
|
|
873
|
+
return $(), U(w, { class: "py-0 px-1" }, {
|
|
922
874
|
default: t(() => [
|
|
923
|
-
(
|
|
875
|
+
($(!0), K(
|
|
924
876
|
ee,
|
|
925
877
|
null,
|
|
926
|
-
he(e.inputs, ({ key:
|
|
927
|
-
|
|
878
|
+
he(e.inputs, ({ key: S, checkbox: y, input: B, placeholder: b }) => ($(), U(
|
|
879
|
+
a,
|
|
928
880
|
{
|
|
929
|
-
|
|
930
|
-
|
|
881
|
+
key: S,
|
|
882
|
+
"no-gutters": ""
|
|
931
883
|
},
|
|
932
884
|
{
|
|
933
885
|
default: t(() => [
|
|
@@ -937,10 +889,10 @@ function bo(e, o, i, d, n, r) {
|
|
|
937
889
|
{
|
|
938
890
|
default: t(() => [
|
|
939
891
|
l(s, {
|
|
940
|
-
|
|
941
|
-
modelValue:
|
|
942
|
-
|
|
943
|
-
}, null, 8, ["
|
|
892
|
+
modelValue: y.value,
|
|
893
|
+
"onUpdate:modelValue": (h) => y.value = h,
|
|
894
|
+
label: `appConfigurator.editors.featureInfo.window.position.${S}`
|
|
895
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"])
|
|
944
896
|
]),
|
|
945
897
|
_: 2
|
|
946
898
|
/* DYNAMIC */
|
|
@@ -953,14 +905,14 @@ function bo(e, o, i, d, n, r) {
|
|
|
953
905
|
null,
|
|
954
906
|
{
|
|
955
907
|
default: t(() => [
|
|
956
|
-
l(
|
|
957
|
-
clearable: "",
|
|
958
|
-
disabled: !$.value,
|
|
959
|
-
placeholder: b,
|
|
908
|
+
l(f, {
|
|
960
909
|
modelValue: B.value,
|
|
961
|
-
"onUpdate:modelValue": (
|
|
962
|
-
modelModifiers: { trim: !0 }
|
|
963
|
-
|
|
910
|
+
"onUpdate:modelValue": (h) => B.value = h,
|
|
911
|
+
modelModifiers: { trim: !0 },
|
|
912
|
+
clearable: "",
|
|
913
|
+
disabled: !y.value,
|
|
914
|
+
placeholder: b
|
|
915
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])
|
|
964
916
|
]),
|
|
965
917
|
_: 2
|
|
966
918
|
/* DYNAMIC */
|
|
@@ -983,67 +935,67 @@ function bo(e, o, i, d, n, r) {
|
|
|
983
935
|
/* STABLE */
|
|
984
936
|
});
|
|
985
937
|
}
|
|
986
|
-
const
|
|
987
|
-
let
|
|
988
|
-
function
|
|
989
|
-
|
|
938
|
+
const ho = /* @__PURE__ */ ne(go, [["render", vo]]);
|
|
939
|
+
let Ne = "";
|
|
940
|
+
function Mo(e) {
|
|
941
|
+
Ne = e;
|
|
990
942
|
}
|
|
991
943
|
let Me;
|
|
992
|
-
function
|
|
944
|
+
function bo(e) {
|
|
993
945
|
Me = e;
|
|
994
946
|
}
|
|
995
|
-
let
|
|
996
|
-
function
|
|
947
|
+
let $e = {};
|
|
948
|
+
function Vo() {
|
|
997
949
|
return Me ? {
|
|
998
950
|
authorization: `Bearer ${Me}`,
|
|
999
|
-
|
|
1000
|
-
} : {
|
|
951
|
+
...$e
|
|
952
|
+
} : { ...$e };
|
|
1001
953
|
}
|
|
1002
|
-
class
|
|
1003
|
-
constructor(
|
|
1004
|
-
super(`Failed to ${d} ${
|
|
954
|
+
class So extends Error {
|
|
955
|
+
constructor(n, d, i, r, s) {
|
|
956
|
+
super(`Failed to ${d} ${i}. Got status ${n} with reason: ${r}`);
|
|
1005
957
|
J(this, "url");
|
|
1006
958
|
J(this, "method");
|
|
1007
959
|
J(this, "status");
|
|
1008
960
|
J(this, "reason");
|
|
1009
961
|
J(this, "error");
|
|
1010
|
-
this.error = s, this.method = d, this.status =
|
|
962
|
+
this.error = s, this.method = d, this.status = n, this.url = i, this.reason = r;
|
|
1011
963
|
}
|
|
1012
964
|
}
|
|
1013
|
-
function
|
|
965
|
+
function yo(e, o, n) {
|
|
1014
966
|
let d = e;
|
|
1015
|
-
Object.keys(
|
|
967
|
+
Object.keys(n).filter((r) => n[r] === "path").map((r) => ({ key: r, param: o[r] })).forEach(({ key: r, param: s }) => {
|
|
1016
968
|
d = d.replace(`{${r}}`, s.toString());
|
|
1017
969
|
});
|
|
1018
|
-
const
|
|
1019
|
-
return Object.keys(
|
|
970
|
+
const i = new URL(d, Ne);
|
|
971
|
+
return Object.keys(n).filter((r) => n[r] === "query" && o[r]).map((r) => ({ key: r, param: o[r] })).forEach(({ key: r, param: s }) => {
|
|
1020
972
|
Array.isArray(s) ? s.forEach((u) => {
|
|
1021
|
-
|
|
1022
|
-
}) :
|
|
1023
|
-
}),
|
|
973
|
+
i.searchParams.append(r, u.toString());
|
|
974
|
+
}) : i.searchParams.append(r, s.toString());
|
|
975
|
+
}), i.toString();
|
|
1024
976
|
}
|
|
1025
|
-
async function
|
|
977
|
+
async function wo(e, o, n, d = void 0, i = {}) {
|
|
1026
978
|
const r = await fetch(e, {
|
|
1027
979
|
method: o,
|
|
1028
980
|
body: d,
|
|
1029
|
-
headers: { ...
|
|
981
|
+
headers: { ...i, ...Vo() },
|
|
1030
982
|
redirect: "follow"
|
|
1031
983
|
});
|
|
1032
|
-
if (r.status ===
|
|
984
|
+
if (r.status === n)
|
|
1033
985
|
return r;
|
|
1034
986
|
let s = await r.text(), u;
|
|
1035
987
|
try {
|
|
1036
|
-
const
|
|
1037
|
-
|
|
988
|
+
const f = JSON.parse(s);
|
|
989
|
+
f.reason && ({ reason: s } = f), f.error && ({ error: u } = f);
|
|
1038
990
|
} catch {
|
|
1039
991
|
}
|
|
1040
|
-
throw new
|
|
992
|
+
throw new So(r.status, o, e, s, u);
|
|
1041
993
|
}
|
|
1042
|
-
async function
|
|
1043
|
-
return (await
|
|
994
|
+
async function Eo(e, o, n, d = void 0, i = {}) {
|
|
995
|
+
return (await wo(e, o, n, d, i)).json();
|
|
1044
996
|
}
|
|
1045
|
-
async function
|
|
1046
|
-
const
|
|
997
|
+
async function Io(e) {
|
|
998
|
+
const i = yo("api/v1/project/{projectId}/modules", e, {
|
|
1047
999
|
projectId: "path",
|
|
1048
1000
|
limit: "query",
|
|
1049
1001
|
page: "query",
|
|
@@ -1051,10 +1003,9 @@ async function _o(e) {
|
|
|
1051
1003
|
orderBy: "query",
|
|
1052
1004
|
name: "query"
|
|
1053
1005
|
});
|
|
1054
|
-
return
|
|
1006
|
+
return Eo(i, "get", 200, void 0, void 0);
|
|
1055
1007
|
}
|
|
1056
1008
|
const O = {
|
|
1057
|
-
OFF: 1,
|
|
1058
1009
|
ERROR: 2,
|
|
1059
1010
|
WARN: 4,
|
|
1060
1011
|
INFO: 8,
|
|
@@ -1070,14 +1021,13 @@ j.WARN = O.WARN | O.INFO | O.DEBUG;
|
|
|
1070
1021
|
j.INFO = O.INFO | O.DEBUG;
|
|
1071
1022
|
j.DEBUG = O.DEBUG;
|
|
1072
1023
|
const x = {
|
|
1073
|
-
useTimestamp: !1,
|
|
1074
1024
|
logLevel: O.INFO
|
|
1075
1025
|
}, de = /* @__PURE__ */ new Map();
|
|
1076
1026
|
de.set(O.ERROR, "error");
|
|
1077
1027
|
de.set(O.WARN, "warn");
|
|
1078
1028
|
de.set(O.INFO, "info");
|
|
1079
1029
|
de.set(O.DEBUG, "log");
|
|
1080
|
-
class
|
|
1030
|
+
class Oe {
|
|
1081
1031
|
/**
|
|
1082
1032
|
* @param {string=} className
|
|
1083
1033
|
*/
|
|
@@ -1089,28 +1039,28 @@ class Be {
|
|
|
1089
1039
|
* @param {string} msg The message to log.
|
|
1090
1040
|
* @param {...any} optArgs
|
|
1091
1041
|
*/
|
|
1092
|
-
error(o, ...
|
|
1093
|
-
x.logLevel & j.ERROR && this._log(String(o), O.ERROR,
|
|
1042
|
+
error(o, ...n) {
|
|
1043
|
+
x.logLevel & j.ERROR && this._log(String(o), O.ERROR, n);
|
|
1094
1044
|
}
|
|
1095
1045
|
/**
|
|
1096
1046
|
* Logs a warning message
|
|
1097
1047
|
* @param {string} msg The message to log.
|
|
1098
1048
|
* @param {...any} optArgs
|
|
1099
1049
|
*/
|
|
1100
|
-
warning(o, ...
|
|
1101
|
-
x.logLevel & j.WARN && this._log(String(o), O.WARN,
|
|
1050
|
+
warning(o, ...n) {
|
|
1051
|
+
x.logLevel & j.WARN && this._log(String(o), O.WARN, n);
|
|
1102
1052
|
}
|
|
1103
1053
|
/**
|
|
1104
1054
|
* Deprecate a function. deprecations are stored on the logger
|
|
1105
1055
|
* @param {string} functionName
|
|
1106
1056
|
* @param {string=} alternativeFunctionName
|
|
1107
1057
|
*/
|
|
1108
|
-
deprecate(o,
|
|
1109
|
-
const d = String(o),
|
|
1058
|
+
deprecate(o, n) {
|
|
1059
|
+
const d = String(o), i = n ? String(n) : null;
|
|
1110
1060
|
if (!this.deprecations.has(d)) {
|
|
1111
|
-
this.deprecations.set(d,
|
|
1061
|
+
this.deprecations.set(d, i || null);
|
|
1112
1062
|
let r = `${d} has been deprecated and will be removed`;
|
|
1113
|
-
|
|
1063
|
+
i && (r = `${r}. ${i}`), this.warning(r);
|
|
1114
1064
|
}
|
|
1115
1065
|
}
|
|
1116
1066
|
/**
|
|
@@ -1118,24 +1068,24 @@ class Be {
|
|
|
1118
1068
|
* @param {string} msg The message to log.
|
|
1119
1069
|
* @param {...any} optArgs
|
|
1120
1070
|
*/
|
|
1121
|
-
info(o, ...
|
|
1122
|
-
x.logLevel & j.INFO && this._log(String(o), O.INFO,
|
|
1071
|
+
info(o, ...n) {
|
|
1072
|
+
x.logLevel & j.INFO && this._log(String(o), O.INFO, n);
|
|
1123
1073
|
}
|
|
1124
1074
|
/**
|
|
1125
1075
|
* Logs a debug message
|
|
1126
1076
|
* @param {string} msg The message to log.
|
|
1127
1077
|
* @param {...any} optArgs
|
|
1128
1078
|
*/
|
|
1129
|
-
debug(o, ...
|
|
1130
|
-
x.logLevel & j.DEBUG && this._log(String(o), O.DEBUG,
|
|
1079
|
+
debug(o, ...n) {
|
|
1080
|
+
x.logLevel & j.DEBUG && this._log(String(o), O.DEBUG, n);
|
|
1131
1081
|
}
|
|
1132
1082
|
/**
|
|
1133
1083
|
* Alias for debug
|
|
1134
1084
|
* @param {string} msg The message to log.
|
|
1135
1085
|
* @param {...any} optArgs
|
|
1136
1086
|
*/
|
|
1137
|
-
log(o, ...
|
|
1138
|
-
x.logLevel & j.DEBUG && this._log(String(o), O.DEBUG,
|
|
1087
|
+
log(o, ...n) {
|
|
1088
|
+
x.logLevel & j.DEBUG && this._log(String(o), O.DEBUG, n);
|
|
1139
1089
|
}
|
|
1140
1090
|
/**
|
|
1141
1091
|
* Logs a message
|
|
@@ -1144,42 +1094,42 @@ class Be {
|
|
|
1144
1094
|
* @param {Array} optArgs
|
|
1145
1095
|
* @private
|
|
1146
1096
|
*/
|
|
1147
|
-
_log(o,
|
|
1148
|
-
let
|
|
1149
|
-
this.className && (
|
|
1097
|
+
_log(o, n, d) {
|
|
1098
|
+
let i = o;
|
|
1099
|
+
this.className && (i = `[${this.className}] ${i}`), console[de.get(n)](i, ...d), n & O.ERROR && (console.group(), console.trace(), console.groupEnd());
|
|
1150
1100
|
}
|
|
1151
1101
|
}
|
|
1152
1102
|
const be = /* @__PURE__ */ new Map();
|
|
1153
1103
|
let ve;
|
|
1154
|
-
function
|
|
1155
|
-
return ve || (ve = new
|
|
1104
|
+
function Co() {
|
|
1105
|
+
return ve || (ve = new Oe()), ve;
|
|
1156
1106
|
}
|
|
1157
|
-
function
|
|
1158
|
-
const o = new
|
|
1107
|
+
function $o(e) {
|
|
1108
|
+
const o = new Oe(e);
|
|
1159
1109
|
return be.set(e, o), o;
|
|
1160
1110
|
}
|
|
1161
1111
|
function Ve(e) {
|
|
1162
|
-
return e ? be.has(e) ? be.get(e) :
|
|
1112
|
+
return e ? be.has(e) ? be.get(e) : $o(e) : Co();
|
|
1163
1113
|
}
|
|
1164
|
-
function
|
|
1114
|
+
function _o(e) {
|
|
1165
1115
|
try {
|
|
1166
1116
|
if (e.serverUrl) {
|
|
1167
1117
|
const o = new URL(
|
|
1168
1118
|
e.serverUrl,
|
|
1169
1119
|
window.location.href
|
|
1170
1120
|
).toString();
|
|
1171
|
-
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1121
|
+
Mo(o);
|
|
1122
|
+
const n = e.token || localStorage.getItem("Meteor.loginToken");
|
|
1123
|
+
n && (bo(n), Ve(z).info("Publisher connection successful"));
|
|
1174
1124
|
}
|
|
1175
1125
|
} catch (o) {
|
|
1176
1126
|
Ve(z).error("Failed to connect to publisher", o);
|
|
1177
1127
|
}
|
|
1178
1128
|
}
|
|
1179
|
-
function
|
|
1129
|
+
function ko(e, o) {
|
|
1180
1130
|
return new Date(e).toLocaleString(o);
|
|
1181
1131
|
}
|
|
1182
|
-
function
|
|
1132
|
+
function Uo() {
|
|
1183
1133
|
return [
|
|
1184
1134
|
{
|
|
1185
1135
|
title: "moduleSelector.configEditor.moduleCloudPicker.headers.name",
|
|
@@ -1218,22 +1168,22 @@ function No() {
|
|
|
1218
1168
|
}
|
|
1219
1169
|
];
|
|
1220
1170
|
}
|
|
1221
|
-
const
|
|
1171
|
+
const Ao = oe({
|
|
1222
1172
|
name: "CloudModuleSelector",
|
|
1223
1173
|
components: {
|
|
1224
|
-
VcsDataTable:
|
|
1174
|
+
VcsDataTable: je,
|
|
1225
1175
|
VcsFormButton: ce,
|
|
1226
|
-
VTooltip:
|
|
1227
|
-
VIcon:
|
|
1228
|
-
VCard:
|
|
1229
|
-
VcsLabel:
|
|
1176
|
+
VTooltip: Ue,
|
|
1177
|
+
VIcon: Ae,
|
|
1178
|
+
VCard: Ee,
|
|
1179
|
+
VcsLabel: we,
|
|
1230
1180
|
VcsTextField: me,
|
|
1231
1181
|
VcsFormSection: ye,
|
|
1232
1182
|
VRow: le,
|
|
1233
|
-
VCol:
|
|
1234
|
-
VForm:
|
|
1235
|
-
VContainer:
|
|
1236
|
-
VcsTextArea:
|
|
1183
|
+
VCol: te,
|
|
1184
|
+
VForm: Ie,
|
|
1185
|
+
VContainer: ie,
|
|
1186
|
+
VcsTextArea: Se
|
|
1237
1187
|
},
|
|
1238
1188
|
props: {
|
|
1239
1189
|
modelValue: {
|
|
@@ -1241,12 +1191,13 @@ const Oo = oe({
|
|
|
1241
1191
|
required: !0
|
|
1242
1192
|
}
|
|
1243
1193
|
},
|
|
1194
|
+
emits: ["submit", "close"],
|
|
1244
1195
|
setup(e, { emit: o }) {
|
|
1245
|
-
const
|
|
1196
|
+
const n = ke("vcsApp"), d = n.plugins.getByKey(z), i = n.plugins.getByKey(
|
|
1246
1197
|
"@vcmap/app-configurator"
|
|
1247
|
-
), { serverUrl: r, projectId: s, appId: u, token:
|
|
1248
|
-
|
|
1249
|
-
const
|
|
1198
|
+
), { serverUrl: r, projectId: s, appId: u, token: f } = (i == null ? void 0 : i.config) || d.config, a = { serverUrl: r, projectId: s, appId: u, token: f };
|
|
1199
|
+
_o(a);
|
|
1200
|
+
const w = A(!0), S = A([]), y = A(0), B = A(0), b = A([void 0]), h = Uo(), T = /* @__PURE__ */ new Map(), p = A(e.modelValue), P = Z(() => p.value.id === ""), k = A(!1), Q = () => {
|
|
1250
1201
|
var R, W;
|
|
1251
1202
|
k.value = !!((R = p.value) != null && R.title) && !!((W = p.value) != null && W.icon);
|
|
1252
1203
|
}, X = {
|
|
@@ -1254,51 +1205,51 @@ const Oo = oe({
|
|
|
1254
1205
|
extension: "$vcsShapes"
|
|
1255
1206
|
};
|
|
1256
1207
|
function Y(R) {
|
|
1257
|
-
var
|
|
1258
|
-
const { itemsPerPage: W, page: m, search: I, sortBy:
|
|
1259
|
-
|
|
1260
|
-
projectId:
|
|
1208
|
+
var N;
|
|
1209
|
+
const { itemsPerPage: W, page: m, search: I, sortBy: g } = R;
|
|
1210
|
+
w.value = !0, a.projectId ? Io({
|
|
1211
|
+
projectId: a.projectId,
|
|
1261
1212
|
limit: W,
|
|
1262
1213
|
page: m - 1,
|
|
1263
1214
|
name: I,
|
|
1264
|
-
orderBy:
|
|
1265
|
-
sort: (
|
|
1215
|
+
orderBy: g == null ? void 0 : g.map(({ key: _ }) => _),
|
|
1216
|
+
sort: (N = g == null ? void 0 : g[0]) == null ? void 0 : N.order
|
|
1266
1217
|
}).then((_) => {
|
|
1267
|
-
|
|
1218
|
+
S.value = _.items.map((C) => {
|
|
1268
1219
|
var D, F;
|
|
1269
|
-
const
|
|
1270
|
-
name:
|
|
1271
|
-
description:
|
|
1272
|
-
createdAt:
|
|
1273
|
-
updatedAt:
|
|
1274
|
-
createdBy: (
|
|
1275
|
-
updatedBy: (
|
|
1276
|
-
_id:
|
|
1220
|
+
const E = {
|
|
1221
|
+
name: C.name,
|
|
1222
|
+
description: C.description,
|
|
1223
|
+
createdAt: C.createdAt,
|
|
1224
|
+
updatedAt: C.updatedAt,
|
|
1225
|
+
createdBy: (i == null ? void 0 : i.getUserName(C.createdBy)) || C.createdBy,
|
|
1226
|
+
updatedBy: (i == null ? void 0 : i.getUserName(C.updatedBy)) || C.updatedBy,
|
|
1227
|
+
_id: C._id
|
|
1277
1228
|
};
|
|
1278
|
-
return (((D =
|
|
1279
|
-
}),
|
|
1229
|
+
return (((D = C.maps) == null ? void 0 : D.length) ?? 0) > 0 && (((F = C.layers) == null ? void 0 : F.length) ?? 0) > 0 ? E.type = "standalone" : E.type = "extension", E.disabled = !!n.getModuleById(C._id), T.set(C._id, C), E;
|
|
1230
|
+
}), y.value = _.totalCount, B.value = _.totalPages;
|
|
1280
1231
|
}).catch((_) => {
|
|
1281
1232
|
Ve("CloudModuleSelector.vue").error(
|
|
1282
1233
|
"Failed to load project modules.",
|
|
1283
|
-
_
|
|
1234
|
+
String(_)
|
|
1284
1235
|
);
|
|
1285
1236
|
}).finally(() => {
|
|
1286
|
-
|
|
1287
|
-
}) : (
|
|
1237
|
+
w.value = !1;
|
|
1238
|
+
}) : (S.value = [], w.value = !1);
|
|
1288
1239
|
}
|
|
1289
1240
|
return {
|
|
1290
1241
|
selectedItem: p,
|
|
1291
1242
|
isItemIdEmpty: P,
|
|
1292
|
-
loading:
|
|
1293
|
-
items:
|
|
1294
|
-
totalItems:
|
|
1243
|
+
loading: w,
|
|
1244
|
+
items: S,
|
|
1245
|
+
totalItems: y,
|
|
1295
1246
|
totalPages: B,
|
|
1296
|
-
headers:
|
|
1247
|
+
headers: h,
|
|
1297
1248
|
selected: b,
|
|
1298
1249
|
typeIcon(R) {
|
|
1299
1250
|
return X[R];
|
|
1300
1251
|
},
|
|
1301
|
-
formatDate:
|
|
1252
|
+
formatDate: ko,
|
|
1302
1253
|
getItems: Y,
|
|
1303
1254
|
close: () => {
|
|
1304
1255
|
o("close");
|
|
@@ -1315,24 +1266,26 @@ const Oo = oe({
|
|
|
1315
1266
|
requiredRule: (R) => !!R || "moduleSelector.configEditor.editorError"
|
|
1316
1267
|
};
|
|
1317
1268
|
}
|
|
1318
|
-
}),
|
|
1269
|
+
}), To = { class: "d-flex gc-2 px-2 pt-2 pb-2" }, No = {
|
|
1319
1270
|
key: 0,
|
|
1320
1271
|
class: "d-flex gc-2 justify-end w-100"
|
|
1321
|
-
},
|
|
1272
|
+
}, Oo = {
|
|
1322
1273
|
key: 1,
|
|
1323
1274
|
class: "d-flex gc-2 justify-space-between w-100"
|
|
1324
|
-
},
|
|
1325
|
-
function
|
|
1326
|
-
const s =
|
|
1327
|
-
return
|
|
1275
|
+
}, Do = { class: "d-flex gc-2" };
|
|
1276
|
+
function Bo(e, o, n, d, i, r) {
|
|
1277
|
+
const s = c("v-icon"), u = c("v-tooltip"), f = c("VcsDataTable"), a = c("VcsFormSection"), w = c("VcsLabel"), S = c("v-col"), y = c("VcsTextField"), B = c("v-row"), b = c("VcsTextArea"), h = c("v-container"), T = c("v-form"), p = c("VcsFormButton"), P = c("v-card");
|
|
1278
|
+
return $(), U(P, null, {
|
|
1328
1279
|
default: t(() => [
|
|
1329
1280
|
L("div", null, [
|
|
1330
|
-
e.isItemIdEmpty ? (
|
|
1281
|
+
e.isItemIdEmpty ? ($(), U(a, {
|
|
1331
1282
|
key: 0,
|
|
1332
1283
|
heading: "moduleSelector.configEditor.moduleSettings"
|
|
1333
1284
|
}, {
|
|
1334
1285
|
default: t(() => [
|
|
1335
|
-
l(
|
|
1286
|
+
l(f, {
|
|
1287
|
+
modelValue: e.selected,
|
|
1288
|
+
"onUpdate:modelValue": o[0] || (o[0] = (k) => e.selected = k),
|
|
1336
1289
|
"base-component": "VDataTableServer",
|
|
1337
1290
|
loading: e.loading,
|
|
1338
1291
|
items: e.items,
|
|
@@ -1344,18 +1297,16 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1344
1297
|
"return-object": "",
|
|
1345
1298
|
"show-select": "",
|
|
1346
1299
|
"item-value": "_id",
|
|
1347
|
-
modelValue: e.selected,
|
|
1348
|
-
"onUpdate:modelValue": o[0] || (o[0] = (k) => e.selected = k),
|
|
1349
1300
|
"onUpdate:items": e.getItems
|
|
1350
1301
|
}, {
|
|
1351
1302
|
"item.type": t(({ item: k }) => [
|
|
1352
1303
|
l(
|
|
1353
1304
|
s,
|
|
1354
|
-
|
|
1305
|
+
Je(Ze({ ...e.$attrs })),
|
|
1355
1306
|
{
|
|
1356
1307
|
default: t(() => [
|
|
1357
|
-
|
|
1358
|
-
|
|
1308
|
+
M(
|
|
1309
|
+
v(e.typeIcon(k.type)),
|
|
1359
1310
|
1
|
|
1360
1311
|
/* TEXT */
|
|
1361
1312
|
)
|
|
@@ -1374,8 +1325,8 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1374
1325
|
},
|
|
1375
1326
|
{
|
|
1376
1327
|
default: t(() => [
|
|
1377
|
-
|
|
1378
|
-
|
|
1328
|
+
M(
|
|
1329
|
+
v(e.$t(`appConfigurator.dialogs.vcsModuleTable.${k.type}`)),
|
|
1379
1330
|
1
|
|
1380
1331
|
/* TEXT */
|
|
1381
1332
|
)
|
|
@@ -1388,52 +1339,52 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1388
1339
|
)
|
|
1389
1340
|
]),
|
|
1390
1341
|
"item.createdAt": t(({ item: k }) => [
|
|
1391
|
-
|
|
1392
|
-
|
|
1342
|
+
M(
|
|
1343
|
+
v(e.formatDate(k.createdAt, e.$i18n.locale)),
|
|
1393
1344
|
1
|
|
1394
1345
|
/* TEXT */
|
|
1395
1346
|
)
|
|
1396
1347
|
]),
|
|
1397
1348
|
"item.updatedAt": t(({ item: k }) => [
|
|
1398
|
-
|
|
1399
|
-
|
|
1349
|
+
M(
|
|
1350
|
+
v(e.formatDate(k.updatedAt, e.$i18n.locale)),
|
|
1400
1351
|
1
|
|
1401
1352
|
/* TEXT */
|
|
1402
1353
|
)
|
|
1403
1354
|
]),
|
|
1404
1355
|
_: 1
|
|
1405
1356
|
/* STABLE */
|
|
1406
|
-
}, 8, ["loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "
|
|
1357
|
+
}, 8, ["modelValue", "loading", "items", "server-items-length", "server-pages-length", "searchbar-placeholder", "headers", "onUpdate:items"])
|
|
1407
1358
|
]),
|
|
1408
1359
|
_: 1
|
|
1409
1360
|
/* STABLE */
|
|
1410
|
-
})) : (
|
|
1361
|
+
})) : ($(), U(a, {
|
|
1411
1362
|
key: 1,
|
|
1412
1363
|
heading: "moduleSelector.configEditor.moduleSettings"
|
|
1413
1364
|
}, {
|
|
1414
1365
|
default: t(() => [
|
|
1415
|
-
l(
|
|
1366
|
+
l(T, {
|
|
1367
|
+
ref: "form",
|
|
1416
1368
|
modelValue: e.isFValid,
|
|
1417
|
-
"onUpdate:modelValue": o[4] || (o[4] = (k) => e.isFValid = k)
|
|
1418
|
-
ref: "form"
|
|
1369
|
+
"onUpdate:modelValue": o[4] || (o[4] = (k) => e.isFValid = k)
|
|
1419
1370
|
}, {
|
|
1420
1371
|
default: t(() => [
|
|
1421
|
-
l(
|
|
1372
|
+
l(h, { class: "px-2 pt-0 pb-2" }, {
|
|
1422
1373
|
default: t(() => [
|
|
1423
1374
|
l(B, {
|
|
1424
1375
|
"no-gutters": "",
|
|
1425
1376
|
class: "px-2"
|
|
1426
1377
|
}, {
|
|
1427
1378
|
default: t(() => [
|
|
1428
|
-
l(
|
|
1379
|
+
l(S, { cols: "2" }, {
|
|
1429
1380
|
default: t(() => [
|
|
1430
|
-
l(
|
|
1381
|
+
l(w, {
|
|
1431
1382
|
required: "",
|
|
1432
1383
|
"html-for": "moduleName"
|
|
1433
1384
|
}, {
|
|
1434
1385
|
default: t(() => [
|
|
1435
|
-
|
|
1436
|
-
|
|
1386
|
+
M(
|
|
1387
|
+
v(e.$st("moduleSelector.configEditor.moduleName")),
|
|
1437
1388
|
1
|
|
1438
1389
|
/* TEXT */
|
|
1439
1390
|
)
|
|
@@ -1445,13 +1396,13 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1445
1396
|
_: 1
|
|
1446
1397
|
/* STABLE */
|
|
1447
1398
|
}),
|
|
1448
|
-
l(
|
|
1399
|
+
l(S, { cols: "4" }, {
|
|
1449
1400
|
default: t(() => [
|
|
1450
|
-
l(
|
|
1401
|
+
l(y, {
|
|
1451
1402
|
id: "moduleName",
|
|
1452
|
-
placeholder: "Module Name",
|
|
1453
1403
|
modelValue: e.selectedItem.title,
|
|
1454
1404
|
"onUpdate:modelValue": o[1] || (o[1] = (k) => e.selectedItem.title = k),
|
|
1405
|
+
placeholder: "Module Name",
|
|
1455
1406
|
rules: [e.requiredRule]
|
|
1456
1407
|
}, null, 8, ["modelValue", "rules"])
|
|
1457
1408
|
]),
|
|
@@ -1467,15 +1418,15 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1467
1418
|
class: "px-2"
|
|
1468
1419
|
}, {
|
|
1469
1420
|
default: t(() => [
|
|
1470
|
-
l(
|
|
1421
|
+
l(S, { cols: "2" }, {
|
|
1471
1422
|
default: t(() => [
|
|
1472
|
-
l(
|
|
1423
|
+
l(w, {
|
|
1473
1424
|
required: "",
|
|
1474
1425
|
"html-for": "moduleIcon"
|
|
1475
1426
|
}, {
|
|
1476
1427
|
default: t(() => [
|
|
1477
|
-
|
|
1478
|
-
|
|
1428
|
+
M(
|
|
1429
|
+
v(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
1479
1430
|
1
|
|
1480
1431
|
/* TEXT */
|
|
1481
1432
|
)
|
|
@@ -1487,13 +1438,13 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1487
1438
|
_: 1
|
|
1488
1439
|
/* STABLE */
|
|
1489
1440
|
}),
|
|
1490
|
-
l(
|
|
1441
|
+
l(S, { cols: "4" }, {
|
|
1491
1442
|
default: t(() => [
|
|
1492
|
-
l(
|
|
1443
|
+
l(y, {
|
|
1493
1444
|
id: "moduleIcon",
|
|
1494
|
-
placeholder: "Icon Name",
|
|
1495
1445
|
modelValue: e.selectedItem.icon,
|
|
1496
1446
|
"onUpdate:modelValue": o[2] || (o[2] = (k) => e.selectedItem.icon = k),
|
|
1447
|
+
placeholder: "Icon Name",
|
|
1497
1448
|
rules: [e.requiredRule]
|
|
1498
1449
|
}, null, 8, ["modelValue", "rules"])
|
|
1499
1450
|
]),
|
|
@@ -1509,12 +1460,12 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1509
1460
|
class: "px-2"
|
|
1510
1461
|
}, {
|
|
1511
1462
|
default: t(() => [
|
|
1512
|
-
l(
|
|
1463
|
+
l(S, { cols: "2" }, {
|
|
1513
1464
|
default: t(() => [
|
|
1514
|
-
l(
|
|
1465
|
+
l(w, { "html-for": "moduleDescription" }, {
|
|
1515
1466
|
default: t(() => [
|
|
1516
|
-
|
|
1517
|
-
|
|
1467
|
+
M(
|
|
1468
|
+
v(e.$st("moduleSelector.configEditor.moduleDescription")),
|
|
1518
1469
|
1
|
|
1519
1470
|
/* TEXT */
|
|
1520
1471
|
)
|
|
@@ -1526,7 +1477,7 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1526
1477
|
_: 1
|
|
1527
1478
|
/* STABLE */
|
|
1528
1479
|
}),
|
|
1529
|
-
l(
|
|
1480
|
+
l(S, { cols: "4" }, {
|
|
1530
1481
|
default: t(() => [
|
|
1531
1482
|
l(b, {
|
|
1532
1483
|
id: "moduleDescription",
|
|
@@ -1553,18 +1504,18 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1553
1504
|
_: 1
|
|
1554
1505
|
/* STABLE */
|
|
1555
1506
|
})),
|
|
1556
|
-
L("div",
|
|
1557
|
-
e.isItemIdEmpty ? (
|
|
1507
|
+
L("div", To, [
|
|
1508
|
+
e.isItemIdEmpty ? ($(), K("div", No, [
|
|
1558
1509
|
l(p, {
|
|
1559
1510
|
variant: "filled",
|
|
1560
1511
|
disabled: e.selected[0] === void 0,
|
|
1561
|
-
onClick: e.addSelected,
|
|
1562
1512
|
tooltip: "appConfigurator.dialogs.addTooltip",
|
|
1563
|
-
"tooltip-position": "bottom"
|
|
1513
|
+
"tooltip-position": "bottom",
|
|
1514
|
+
onClick: e.addSelected
|
|
1564
1515
|
}, {
|
|
1565
1516
|
default: t(() => [
|
|
1566
|
-
|
|
1567
|
-
|
|
1517
|
+
M(
|
|
1518
|
+
v(e.$t("moduleSelector.configEditor.moduleCloudPicker.continue")),
|
|
1568
1519
|
1
|
|
1569
1520
|
/* TEXT */
|
|
1570
1521
|
)
|
|
@@ -1574,8 +1525,8 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1574
1525
|
}, 8, ["disabled", "onClick"]),
|
|
1575
1526
|
l(p, { onClick: e.close }, {
|
|
1576
1527
|
default: t(() => [
|
|
1577
|
-
|
|
1578
|
-
|
|
1528
|
+
M(
|
|
1529
|
+
v(e.$t("components.cancel")),
|
|
1579
1530
|
1
|
|
1580
1531
|
/* TEXT */
|
|
1581
1532
|
)
|
|
@@ -1584,11 +1535,11 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1584
1535
|
/* STABLE */
|
|
1585
1536
|
}, 8, ["onClick"])
|
|
1586
1537
|
])) : G("v-if", !0),
|
|
1587
|
-
e.isItemIdEmpty ? G("v-if", !0) : (
|
|
1538
|
+
e.isItemIdEmpty ? G("v-if", !0) : ($(), K("div", Oo, [
|
|
1588
1539
|
l(p, { onClick: e.removeSelected }, {
|
|
1589
1540
|
default: t(() => [
|
|
1590
|
-
|
|
1591
|
-
|
|
1541
|
+
M(
|
|
1542
|
+
v(e.$t("moduleSelector.configEditor.moduleCloudPicker.back")),
|
|
1592
1543
|
1
|
|
1593
1544
|
/* TEXT */
|
|
1594
1545
|
)
|
|
@@ -1596,7 +1547,7 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1596
1547
|
_: 1
|
|
1597
1548
|
/* STABLE */
|
|
1598
1549
|
}, 8, ["onClick"]),
|
|
1599
|
-
L("div",
|
|
1550
|
+
L("div", Do, [
|
|
1600
1551
|
l(p, {
|
|
1601
1552
|
disabled: !e.isFValid,
|
|
1602
1553
|
variant: "filled",
|
|
@@ -1605,8 +1556,8 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1605
1556
|
})
|
|
1606
1557
|
}, {
|
|
1607
1558
|
default: t(() => [
|
|
1608
|
-
|
|
1609
|
-
|
|
1559
|
+
M(
|
|
1560
|
+
v(e.$t("components.apply")),
|
|
1610
1561
|
1
|
|
1611
1562
|
/* TEXT */
|
|
1612
1563
|
)
|
|
@@ -1616,8 +1567,8 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1616
1567
|
}, 8, ["disabled"]),
|
|
1617
1568
|
l(p, { onClick: e.close }, {
|
|
1618
1569
|
default: t(() => [
|
|
1619
|
-
|
|
1620
|
-
|
|
1570
|
+
M(
|
|
1571
|
+
v(e.$t("components.cancel")),
|
|
1621
1572
|
1
|
|
1622
1573
|
/* TEXT */
|
|
1623
1574
|
)
|
|
@@ -1634,26 +1585,26 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1634
1585
|
/* STABLE */
|
|
1635
1586
|
});
|
|
1636
1587
|
}
|
|
1637
|
-
const
|
|
1588
|
+
const Fo = /* @__PURE__ */ ne(Ao, [["render", Bo]]), Go = oe({
|
|
1638
1589
|
name: "ModuleSelectorConfigEditor",
|
|
1639
1590
|
components: {
|
|
1640
|
-
VForm:
|
|
1591
|
+
VForm: Ie,
|
|
1641
1592
|
VcsFormButton: ce,
|
|
1642
|
-
VcsCheckbox:
|
|
1643
|
-
VDialog:
|
|
1644
|
-
VcsList:
|
|
1593
|
+
VcsCheckbox: _e,
|
|
1594
|
+
VDialog: eo,
|
|
1595
|
+
VcsList: ze,
|
|
1645
1596
|
VcsFormSection: ye,
|
|
1646
1597
|
VRow: le,
|
|
1647
|
-
VSheet:
|
|
1648
|
-
VcsLabel:
|
|
1649
|
-
AbstractConfigEditor:
|
|
1598
|
+
VSheet: Te,
|
|
1599
|
+
VcsLabel: we,
|
|
1600
|
+
AbstractConfigEditor: Le,
|
|
1650
1601
|
VcsTextField: me,
|
|
1651
|
-
VCol:
|
|
1652
|
-
VContainer:
|
|
1653
|
-
ModuleEditor:
|
|
1654
|
-
WindowPositionSettings:
|
|
1655
|
-
VcsModuleTable:
|
|
1656
|
-
VcsTextArea:
|
|
1602
|
+
VCol: te,
|
|
1603
|
+
VContainer: ie,
|
|
1604
|
+
ModuleEditor: fo,
|
|
1605
|
+
WindowPositionSettings: ho,
|
|
1606
|
+
VcsModuleTable: Fo,
|
|
1607
|
+
VcsTextArea: Se
|
|
1657
1608
|
},
|
|
1658
1609
|
props: {
|
|
1659
1610
|
getConfig: {
|
|
@@ -1667,7 +1618,10 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1667
1618
|
},
|
|
1668
1619
|
setup(e) {
|
|
1669
1620
|
var pe, R, W;
|
|
1670
|
-
const o = A(0),
|
|
1621
|
+
const o = A(0), n = A({
|
|
1622
|
+
...ae(),
|
|
1623
|
+
...e.getConfig()
|
|
1624
|
+
}), d = A([]), i = A(), r = A({
|
|
1671
1625
|
id: "",
|
|
1672
1626
|
title: "",
|
|
1673
1627
|
icon: "",
|
|
@@ -1687,49 +1641,42 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1687
1641
|
description: "",
|
|
1688
1642
|
cards: []
|
|
1689
1643
|
};
|
|
1690
|
-
const
|
|
1691
|
-
|
|
1692
|
-
...ue(),
|
|
1693
|
-
...e.getConfig()
|
|
1694
|
-
};
|
|
1695
|
-
const $ = A();
|
|
1696
|
-
(pe = i.value) != null && pe.basisModule && ($.value = (R = i.value) == null ? void 0 : R.basisModule);
|
|
1644
|
+
const f = A(!1), a = A(!1), w = A(!1), S = A(void 0), y = A();
|
|
1645
|
+
(pe = n.value) != null && pe.basisModule && (y.value = (R = n.value) == null ? void 0 : R.basisModule);
|
|
1697
1646
|
const B = Z({
|
|
1698
1647
|
get() {
|
|
1699
|
-
return
|
|
1648
|
+
return !!y.value;
|
|
1700
1649
|
},
|
|
1701
1650
|
set(m) {
|
|
1702
1651
|
var I;
|
|
1703
|
-
m ?
|
|
1652
|
+
m ? y.value = ((I = n.value) == null ? void 0 : I.basisModule) || { title: "" } : y.value = null;
|
|
1704
1653
|
}
|
|
1705
|
-
}), b =
|
|
1706
|
-
function
|
|
1654
|
+
}), b = Qe([]);
|
|
1655
|
+
function h(m) {
|
|
1707
1656
|
var I;
|
|
1708
1657
|
if (m.type === "url") {
|
|
1709
|
-
const { actions:
|
|
1658
|
+
const { actions: g, id: N, name: _, ...C } = m;
|
|
1710
1659
|
return {
|
|
1711
|
-
...
|
|
1660
|
+
...C,
|
|
1712
1661
|
moduleUrl: m.moduleUrl || ""
|
|
1713
1662
|
};
|
|
1714
1663
|
} else {
|
|
1715
|
-
const
|
|
1716
|
-
const { actions: F, id: q, name: H, ...
|
|
1717
|
-
return {
|
|
1718
|
-
|
|
1719
|
-
};
|
|
1720
|
-
})) || [], { actions: T, id: _, name: E, ...w } = m;
|
|
1664
|
+
const g = ((I = m.cards) == null ? void 0 : I.map((D) => {
|
|
1665
|
+
const { actions: F, id: q, name: H, ...Fe } = D;
|
|
1666
|
+
return { ...Fe };
|
|
1667
|
+
})) || [], { actions: N, id: _, name: C, ...E } = m;
|
|
1721
1668
|
return {
|
|
1722
|
-
...
|
|
1723
|
-
...
|
|
1669
|
+
...E,
|
|
1670
|
+
...g.length ? { cards: g } : {}
|
|
1724
1671
|
};
|
|
1725
1672
|
}
|
|
1726
1673
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return m.map(
|
|
1674
|
+
function T(m) {
|
|
1675
|
+
return m.map(h);
|
|
1729
1676
|
}
|
|
1730
1677
|
function p(m, I) {
|
|
1731
|
-
var
|
|
1732
|
-
const
|
|
1678
|
+
var N, _, C;
|
|
1679
|
+
const g = {
|
|
1733
1680
|
id: `${m.title || "undefined"}-${I}`,
|
|
1734
1681
|
name: m.title,
|
|
1735
1682
|
title: m.title,
|
|
@@ -1738,67 +1685,67 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1738
1685
|
description: m.description,
|
|
1739
1686
|
actions: []
|
|
1740
1687
|
};
|
|
1741
|
-
return m.type === "url" && (
|
|
1688
|
+
return m.type === "url" && (g.moduleUrl = m.moduleUrl, (N = g.actions) == null || N.push({
|
|
1742
1689
|
name: "edit",
|
|
1743
1690
|
title: "moduleSelector.configEditor.TooltipEditModule",
|
|
1744
1691
|
icon: "$vcsEdit",
|
|
1745
1692
|
callback() {
|
|
1746
|
-
if (
|
|
1747
|
-
const
|
|
1748
|
-
(D) => D.id ===
|
|
1693
|
+
if (i.value === void 0 && d.value.length > 0) {
|
|
1694
|
+
const E = d.value.find(
|
|
1695
|
+
(D) => D.id === g.id
|
|
1749
1696
|
);
|
|
1750
|
-
|
|
1751
|
-
id:
|
|
1752
|
-
title:
|
|
1753
|
-
icon:
|
|
1754
|
-
moduleUrl:
|
|
1755
|
-
description:
|
|
1697
|
+
E && (r.value = {
|
|
1698
|
+
id: E.id,
|
|
1699
|
+
title: E.title,
|
|
1700
|
+
icon: E.icon,
|
|
1701
|
+
moduleUrl: E.moduleUrl,
|
|
1702
|
+
description: E.description
|
|
1756
1703
|
});
|
|
1757
1704
|
} else {
|
|
1758
|
-
const
|
|
1759
|
-
(D) => D.id ===
|
|
1705
|
+
const E = i.value.cards.find(
|
|
1706
|
+
(D) => D.id === g.id
|
|
1760
1707
|
);
|
|
1761
|
-
|
|
1762
|
-
id:
|
|
1763
|
-
title:
|
|
1764
|
-
icon:
|
|
1765
|
-
moduleUrl:
|
|
1766
|
-
description:
|
|
1708
|
+
E && (r.value = {
|
|
1709
|
+
id: E.id,
|
|
1710
|
+
title: E.title,
|
|
1711
|
+
icon: E.icon,
|
|
1712
|
+
moduleUrl: E.moduleUrl,
|
|
1713
|
+
description: E.description
|
|
1767
1714
|
});
|
|
1768
1715
|
}
|
|
1769
|
-
|
|
1716
|
+
a.value = !0;
|
|
1770
1717
|
}
|
|
1771
|
-
})), m.type === "group" && ((_ =
|
|
1718
|
+
})), m.type === "group" && ((_ = g.actions) == null || _.push({
|
|
1772
1719
|
name: "editGroup",
|
|
1773
1720
|
title: "moduleSelector.configEditor.TooltipEditGroup",
|
|
1774
1721
|
icon: "mdi-playlist-edit",
|
|
1775
1722
|
callback() {
|
|
1776
1723
|
if (d.value.length > 0) {
|
|
1777
|
-
const
|
|
1778
|
-
(D) => D.id ===
|
|
1724
|
+
const E = d.value.find(
|
|
1725
|
+
(D) => D.id === g.id
|
|
1779
1726
|
);
|
|
1780
|
-
if (
|
|
1781
|
-
|
|
1782
|
-
const [D] =
|
|
1783
|
-
|
|
1727
|
+
if (E) {
|
|
1728
|
+
i.value = E, w.value = !0;
|
|
1729
|
+
const [D] = T([
|
|
1730
|
+
i.value
|
|
1784
1731
|
]);
|
|
1785
1732
|
D.cards.length === 0 && (D.cards = []), u = structuredClone(D), b.splice(2, 1), b.length > 1 && (b[1].icon = "$vcsPlus", b[1].title = "moduleSelector.configEditor.TooltipAddModule");
|
|
1786
1733
|
}
|
|
1787
1734
|
}
|
|
1788
1735
|
}
|
|
1789
|
-
}), m.cards && (
|
|
1736
|
+
}), m.cards && (g.cards = m.cards.map(p))), (C = g.actions) == null || C.push({
|
|
1790
1737
|
name: "linkButton.editor.remove",
|
|
1791
1738
|
title: "moduleSelector.configEditor.TooltipDeleteMG",
|
|
1792
1739
|
icon: "$vcsTrashCan",
|
|
1793
1740
|
callback() {
|
|
1794
|
-
var
|
|
1795
|
-
|
|
1796
|
-
(q) => q.id !==
|
|
1741
|
+
var E, D, F;
|
|
1742
|
+
i.value ? i.value.cards = (D = (E = i.value) == null ? void 0 : E.cards) == null ? void 0 : D.filter(
|
|
1743
|
+
(q) => q.id !== g.id
|
|
1797
1744
|
) : d.value = (F = d.value) == null ? void 0 : F.filter(
|
|
1798
|
-
(q) => q.id !==
|
|
1745
|
+
(q) => q.id !== g.id
|
|
1799
1746
|
);
|
|
1800
1747
|
}
|
|
1801
|
-
}),
|
|
1748
|
+
}), g;
|
|
1802
1749
|
}
|
|
1803
1750
|
b.push({
|
|
1804
1751
|
name: "moduleSelector.configEditor.addFromCloud",
|
|
@@ -1811,13 +1758,13 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1811
1758
|
icon: "",
|
|
1812
1759
|
moduleUrl: "",
|
|
1813
1760
|
description: ""
|
|
1814
|
-
},
|
|
1761
|
+
}, f.value = !0;
|
|
1815
1762
|
}
|
|
1816
1763
|
});
|
|
1817
1764
|
const P = {
|
|
1818
1765
|
name: "moduleSelector.configEditor.addGroup",
|
|
1819
1766
|
callback() {
|
|
1820
|
-
var
|
|
1767
|
+
var g;
|
|
1821
1768
|
const m = {
|
|
1822
1769
|
type: "group",
|
|
1823
1770
|
title: "",
|
|
@@ -1825,17 +1772,17 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1825
1772
|
description: "",
|
|
1826
1773
|
cards: []
|
|
1827
1774
|
};
|
|
1828
|
-
|
|
1829
|
-
const I = (
|
|
1775
|
+
w.value = !0;
|
|
1776
|
+
const I = (g = d.value) == null ? void 0 : g.push(
|
|
1830
1777
|
p(
|
|
1831
1778
|
m,
|
|
1832
1779
|
d.value.length
|
|
1833
1780
|
)
|
|
1834
1781
|
);
|
|
1835
|
-
|
|
1782
|
+
i.value = d.value[I - 1], w.value = !0, b.splice(2, 1), b.length > 1 && (b[1].icon = "$vcsPlus", b[1].title = "moduleSelector.configEditor.TooltipAddModule");
|
|
1836
1783
|
}
|
|
1837
1784
|
};
|
|
1838
|
-
(W =
|
|
1785
|
+
(W = n.value) != null && W.modules && (d.value = n.value.modules.map(p)), b.push(
|
|
1839
1786
|
{
|
|
1840
1787
|
name: "moduleSelector.configEditor.add",
|
|
1841
1788
|
callback() {
|
|
@@ -1845,28 +1792,28 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1845
1792
|
icon: "",
|
|
1846
1793
|
moduleUrl: "",
|
|
1847
1794
|
description: ""
|
|
1848
|
-
},
|
|
1795
|
+
}, a.value = !0;
|
|
1849
1796
|
}
|
|
1850
1797
|
},
|
|
1851
1798
|
P
|
|
1852
|
-
),
|
|
1853
|
-
m != null && m.modules ?
|
|
1854
|
-
(I,
|
|
1855
|
-
) :
|
|
1799
|
+
), Xe(n, (m) => {
|
|
1800
|
+
m != null && m.modules ? S.value = m.modules.map(
|
|
1801
|
+
(I, g) => p(I, g)
|
|
1802
|
+
) : S.value = [];
|
|
1856
1803
|
});
|
|
1857
1804
|
const k = () => {
|
|
1858
|
-
var
|
|
1859
|
-
const m = fe((
|
|
1805
|
+
var N;
|
|
1806
|
+
const m = fe((N = n.value) == null ? void 0 : N.position), I = Object.values(m).some(
|
|
1860
1807
|
(_) => _ !== void 0
|
|
1861
|
-
),
|
|
1862
|
-
...fe(
|
|
1863
|
-
modules:
|
|
1864
|
-
basisModule: fe(
|
|
1808
|
+
), g = {
|
|
1809
|
+
...fe(n.value),
|
|
1810
|
+
modules: T(d.value),
|
|
1811
|
+
basisModule: fe(y.value)
|
|
1865
1812
|
};
|
|
1866
|
-
I ?
|
|
1813
|
+
I ? g.position = m : delete g.position, e.setConfig(g);
|
|
1867
1814
|
}, Q = () => {
|
|
1868
|
-
var m, I,
|
|
1869
|
-
if (
|
|
1815
|
+
var m, I, g, N, _, C, E, D;
|
|
1816
|
+
if (i.value === void 0) {
|
|
1870
1817
|
if (r.value)
|
|
1871
1818
|
if (((m = r.value) == null ? void 0 : m.id) !== "") {
|
|
1872
1819
|
const F = d.value.find(
|
|
@@ -1875,42 +1822,32 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1875
1822
|
return q.id === ((H = r.value) == null ? void 0 : H.id);
|
|
1876
1823
|
}
|
|
1877
1824
|
);
|
|
1878
|
-
F && Object.assign(F, {
|
|
1879
|
-
...r.value
|
|
1880
|
-
});
|
|
1825
|
+
F && Object.assign(F, { ...r.value });
|
|
1881
1826
|
} else
|
|
1882
1827
|
d.value.push(
|
|
1883
1828
|
p(
|
|
1884
|
-
{
|
|
1885
|
-
...r.value,
|
|
1886
|
-
type: "url"
|
|
1887
|
-
},
|
|
1829
|
+
{ ...r.value, type: "url" },
|
|
1888
1830
|
d.value.length
|
|
1889
1831
|
)
|
|
1890
1832
|
);
|
|
1891
1833
|
} else if (r.value && ((I = r.value) == null ? void 0 : I.id) !== "") {
|
|
1892
|
-
const F =
|
|
1834
|
+
const F = i.value.cards.find(
|
|
1893
1835
|
(H) => H.id === r.value.id
|
|
1894
1836
|
);
|
|
1895
|
-
F && Object.assign(F, {
|
|
1896
|
-
...r.value
|
|
1897
|
-
});
|
|
1837
|
+
F && Object.assign(F, { ...r.value });
|
|
1898
1838
|
let q;
|
|
1899
|
-
(
|
|
1839
|
+
(g = i.value) != null && g.id || ((N = i.value) == null ? void 0 : N.id) !== "" ? q = i.value.id : q = `${i.value.title}-${d.value.length - 1}`, i.value = d.value.find(
|
|
1900
1840
|
(H) => H.id === q
|
|
1901
1841
|
);
|
|
1902
1842
|
} else {
|
|
1903
|
-
|
|
1843
|
+
i.value.cards.push(
|
|
1904
1844
|
p(
|
|
1905
|
-
{
|
|
1906
|
-
|
|
1907
|
-
type: "url"
|
|
1908
|
-
},
|
|
1909
|
-
n.value.cards.length
|
|
1845
|
+
{ ...r.value, type: "url" },
|
|
1846
|
+
i.value.cards.length
|
|
1910
1847
|
)
|
|
1911
1848
|
);
|
|
1912
1849
|
let F;
|
|
1913
|
-
(_ =
|
|
1850
|
+
(_ = i.value) != null && _.id || ((C = i.value) == null ? void 0 : C.id) !== "" ? F = i.value.id : F = `${(E = i.value) == null ? void 0 : E.title}-${d.value.length - 1}`, i.value = (D = d.value) == null ? void 0 : D.find(
|
|
1914
1851
|
(q) => q.id === F
|
|
1915
1852
|
);
|
|
1916
1853
|
}
|
|
@@ -1920,10 +1857,10 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1920
1857
|
icon: "",
|
|
1921
1858
|
moduleUrl: "",
|
|
1922
1859
|
description: ""
|
|
1923
|
-
},
|
|
1860
|
+
}, a.value = !1;
|
|
1924
1861
|
}, X = () => {
|
|
1925
|
-
var m, I,
|
|
1926
|
-
if (
|
|
1862
|
+
var m, I, g, N;
|
|
1863
|
+
if (i.value === void 0)
|
|
1927
1864
|
s.value && d.value.push(
|
|
1928
1865
|
p(
|
|
1929
1866
|
{
|
|
@@ -1937,18 +1874,15 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1937
1874
|
)
|
|
1938
1875
|
);
|
|
1939
1876
|
else {
|
|
1940
|
-
|
|
1877
|
+
i.value.cards.push(
|
|
1941
1878
|
p(
|
|
1942
|
-
{
|
|
1943
|
-
|
|
1944
|
-
type: "url"
|
|
1945
|
-
},
|
|
1946
|
-
n.value.cards.length
|
|
1879
|
+
{ ...s.value, type: "url" },
|
|
1880
|
+
i.value.cards.length
|
|
1947
1881
|
)
|
|
1948
1882
|
);
|
|
1949
1883
|
let _;
|
|
1950
|
-
(m =
|
|
1951
|
-
(
|
|
1884
|
+
(m = i.value) != null && m.id || ((I = i.value) == null ? void 0 : I.id) !== "" ? _ = i.value.id : _ = `${(g = i.value) == null ? void 0 : g.title}-${d.value.length - 1}`, i.value = (N = d.value) == null ? void 0 : N.find(
|
|
1885
|
+
(C) => C.id === _
|
|
1952
1886
|
);
|
|
1953
1887
|
}
|
|
1954
1888
|
s.value = {
|
|
@@ -1957,39 +1891,39 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1957
1891
|
icon: "",
|
|
1958
1892
|
moduleUrl: "",
|
|
1959
1893
|
description: ""
|
|
1960
|
-
},
|
|
1894
|
+
}, f.value = !1;
|
|
1961
1895
|
}, Y = () => {
|
|
1962
|
-
|
|
1896
|
+
w.value = !1, i.value = void 0, b.length > 1 && (delete b[1].icon, delete b[1].title), b.push(P);
|
|
1963
1897
|
}, V = (m) => m && m.trim() !== "" ? !0 : "moduleSelector.configEditor.error";
|
|
1964
1898
|
return {
|
|
1965
1899
|
isFormValid: A(),
|
|
1966
1900
|
editingItem: r,
|
|
1967
1901
|
selectedGroupItem: u,
|
|
1968
|
-
groupItemDialogVisible:
|
|
1902
|
+
groupItemDialogVisible: w,
|
|
1969
1903
|
cancelCurrentGroup: () => {
|
|
1970
1904
|
const m = d.value.findIndex(
|
|
1971
|
-
(I) => I.id ===
|
|
1905
|
+
(I) => I.id === i.value.id
|
|
1972
1906
|
);
|
|
1973
1907
|
if (u.title !== "") {
|
|
1974
1908
|
const I = p(u, m);
|
|
1975
1909
|
d.value.splice(m, 1, I);
|
|
1976
1910
|
} else
|
|
1977
1911
|
d.value.splice(m, 1);
|
|
1978
|
-
|
|
1912
|
+
w.value = !1, i.value = void 0, b.length > 1 && (delete b[1].icon, delete b[1].title), b.push(P);
|
|
1979
1913
|
},
|
|
1980
1914
|
selectCloudItem: s,
|
|
1981
|
-
editingItemDialogVisible:
|
|
1982
|
-
selectCloudItemDialogVisible:
|
|
1983
|
-
localConfig:
|
|
1915
|
+
editingItemDialogVisible: a,
|
|
1916
|
+
selectCloudItemDialogVisible: f,
|
|
1917
|
+
localConfig: n,
|
|
1984
1918
|
listItemArray: d,
|
|
1985
|
-
currentGroup:
|
|
1919
|
+
currentGroup: i,
|
|
1986
1920
|
apply: k,
|
|
1987
1921
|
returnLevel: Y,
|
|
1988
1922
|
updateItem: Q,
|
|
1989
1923
|
updateCloudItem: X,
|
|
1990
1924
|
level: o,
|
|
1991
|
-
listItems:
|
|
1992
|
-
basisModule:
|
|
1925
|
+
listItems: S,
|
|
1926
|
+
basisModule: y,
|
|
1993
1927
|
basisModuleExists: B,
|
|
1994
1928
|
headerActions: b,
|
|
1995
1929
|
isRequired: V,
|
|
@@ -1997,42 +1931,39 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1997
1931
|
item: m,
|
|
1998
1932
|
targetIndex: I
|
|
1999
1933
|
}) {
|
|
2000
|
-
var
|
|
2001
|
-
const
|
|
2002
|
-
|
|
1934
|
+
var N, _, C;
|
|
1935
|
+
const g = (N = d.value) == null ? void 0 : N.indexOf(m);
|
|
1936
|
+
g !== I && ((_ = d.value) == null || _.splice(g, 1), (C = d.value) == null || C.splice(I, 0, m));
|
|
2003
1937
|
},
|
|
2004
1938
|
moveCard({
|
|
2005
1939
|
item: m,
|
|
2006
1940
|
targetIndex: I
|
|
2007
1941
|
}) {
|
|
2008
|
-
var
|
|
2009
|
-
const
|
|
2010
|
-
|
|
1942
|
+
var N, _, C, E;
|
|
1943
|
+
const g = i.value.cards.indexOf(m);
|
|
1944
|
+
g !== I && ((_ = (N = i.value) == null ? void 0 : N.cards) == null || _.splice(g, 1), (E = (C = i.value) == null ? void 0 : C.cards) == null || E.splice(I, 0, m));
|
|
2011
1945
|
}
|
|
2012
1946
|
};
|
|
2013
1947
|
}
|
|
2014
|
-
}),
|
|
2015
|
-
function
|
|
2016
|
-
const s =
|
|
2017
|
-
return e.localConfig ? (
|
|
2018
|
-
key: 0,
|
|
2019
|
-
onSubmit: e.apply
|
|
2020
|
-
}, { ...e.$attrs, ...e.$props }), {
|
|
1948
|
+
}), Ro = { class: "d-flex gc-2 px-2 pt-2 pb-2" }, qo = { class: "d-flex gc-2 justify-end w-100" };
|
|
1949
|
+
function Po(e, o, n, d, i, r) {
|
|
1950
|
+
const s = c("VcsLabel"), u = c("v-col"), f = c("VcsTextField"), a = c("v-row"), w = c("VcsCheckbox"), S = c("v-container"), y = c("VcsFormSection"), B = c("VcsTextArea"), b = c("v-form"), h = c("VcsList"), T = c("VcsFormButton"), p = c("v-sheet"), P = c("v-dialog"), k = c("ModuleEditor"), Q = c("VcsModuleTable"), X = c("WindowPositionSettings"), Y = c("AbstractConfigEditor");
|
|
1951
|
+
return e.localConfig ? ($(), U(Y, ue({ key: 0 }, { ...e.$attrs, ...e.$props }, { onSubmit: e.apply }), {
|
|
2021
1952
|
default: t(() => [
|
|
2022
|
-
l(
|
|
1953
|
+
l(S, { class: "py-0 px-0" }, {
|
|
2023
1954
|
default: t(() => [
|
|
2024
|
-
l(
|
|
1955
|
+
l(y, { heading: "moduleSelector.configEditor.general" }, {
|
|
2025
1956
|
default: t(() => [
|
|
2026
|
-
l(
|
|
1957
|
+
l(S, { class: "py-0 px-1" }, {
|
|
2027
1958
|
default: t(() => [
|
|
2028
|
-
l(
|
|
1959
|
+
l(a, { "no-gutters": "" }, {
|
|
2029
1960
|
default: t(() => [
|
|
2030
1961
|
l(u, { cols: "6" }, {
|
|
2031
1962
|
default: t(() => [
|
|
2032
1963
|
l(s, { "html-for": "moduleselector-window-title" }, {
|
|
2033
1964
|
default: t(() => [
|
|
2034
|
-
|
|
2035
|
-
|
|
1965
|
+
M(
|
|
1966
|
+
v(e.$st("moduleSelector.configEditor.windowTitle")),
|
|
2036
1967
|
1
|
|
2037
1968
|
/* TEXT */
|
|
2038
1969
|
)
|
|
@@ -2046,12 +1977,12 @@ function zo(e, o, i, d, n, r) {
|
|
|
2046
1977
|
}),
|
|
2047
1978
|
l(u, null, {
|
|
2048
1979
|
default: t(() => [
|
|
2049
|
-
l(
|
|
1980
|
+
l(f, {
|
|
2050
1981
|
id: "moduleselector-window-title",
|
|
2051
|
-
placeholder: e.$st("moduleSelector.title"),
|
|
2052
1982
|
modelValue: e.localConfig.windowTitle,
|
|
2053
|
-
"onUpdate:modelValue": o[0] || (o[0] = (V) => e.localConfig.windowTitle = V)
|
|
2054
|
-
|
|
1983
|
+
"onUpdate:modelValue": o[0] || (o[0] = (V) => e.localConfig.windowTitle = V),
|
|
1984
|
+
placeholder: e.$st("moduleSelector.title")
|
|
1985
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
2055
1986
|
]),
|
|
2056
1987
|
_: 1
|
|
2057
1988
|
/* STABLE */
|
|
@@ -2060,11 +1991,11 @@ function zo(e, o, i, d, n, r) {
|
|
|
2060
1991
|
_: 1
|
|
2061
1992
|
/* STABLE */
|
|
2062
1993
|
}),
|
|
2063
|
-
l(
|
|
1994
|
+
l(a, { "no-gutters": "" }, {
|
|
2064
1995
|
default: t(() => [
|
|
2065
1996
|
l(u, null, {
|
|
2066
1997
|
default: t(() => [
|
|
2067
|
-
l(
|
|
1998
|
+
l(w, {
|
|
2068
1999
|
modelValue: e.localConfig.isActiveOnStart,
|
|
2069
2000
|
"onUpdate:modelValue": o[1] || (o[1] = (V) => e.localConfig.isActiveOnStart = V),
|
|
2070
2001
|
label: "moduleSelector.configEditor.isActiveOnStart"
|
|
@@ -2077,11 +2008,11 @@ function zo(e, o, i, d, n, r) {
|
|
|
2077
2008
|
_: 1
|
|
2078
2009
|
/* STABLE */
|
|
2079
2010
|
}),
|
|
2080
|
-
l(
|
|
2011
|
+
l(a, { "no-gutters": "" }, {
|
|
2081
2012
|
default: t(() => [
|
|
2082
2013
|
l(u, null, {
|
|
2083
2014
|
default: t(() => [
|
|
2084
|
-
l(
|
|
2015
|
+
l(w, {
|
|
2085
2016
|
modelValue: e.localConfig.requireModuleSelection,
|
|
2086
2017
|
"onUpdate:modelValue": o[2] || (o[2] = (V) => e.localConfig.requireModuleSelection = V),
|
|
2087
2018
|
label: "moduleSelector.configEditor.requireModuleSelection"
|
|
@@ -2102,15 +2033,15 @@ function zo(e, o, i, d, n, r) {
|
|
|
2102
2033
|
_: 1
|
|
2103
2034
|
/* STABLE */
|
|
2104
2035
|
}),
|
|
2105
|
-
l(
|
|
2036
|
+
l(y, { heading: "moduleSelector.configEditor.baseModule" }, {
|
|
2106
2037
|
default: t(() => [
|
|
2107
|
-
l(
|
|
2038
|
+
l(S, { class: "py-0 px-1" }, {
|
|
2108
2039
|
default: t(() => [
|
|
2109
|
-
l(
|
|
2040
|
+
l(a, { "no-gutters": "" }, {
|
|
2110
2041
|
default: t(() => [
|
|
2111
2042
|
l(u, null, {
|
|
2112
2043
|
default: t(() => [
|
|
2113
|
-
l(
|
|
2044
|
+
l(w, {
|
|
2114
2045
|
id: "BaseModuleCheckbox",
|
|
2115
2046
|
modelValue: e.basisModuleExists,
|
|
2116
2047
|
"onUpdate:modelValue": o[3] || (o[3] = (V) => e.basisModuleExists = V),
|
|
@@ -2124,7 +2055,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2124
2055
|
_: 1
|
|
2125
2056
|
/* STABLE */
|
|
2126
2057
|
}),
|
|
2127
|
-
e.basisModuleExists ? (
|
|
2058
|
+
e.basisModuleExists ? ($(), U(a, {
|
|
2128
2059
|
key: 0,
|
|
2129
2060
|
"no-gutters": ""
|
|
2130
2061
|
}, {
|
|
@@ -2136,8 +2067,8 @@ function zo(e, o, i, d, n, r) {
|
|
|
2136
2067
|
"html-for": "basisModuleName"
|
|
2137
2068
|
}, {
|
|
2138
2069
|
default: t(() => [
|
|
2139
|
-
|
|
2140
|
-
|
|
2070
|
+
M(
|
|
2071
|
+
v(e.$st("moduleSelector.configEditor.title")),
|
|
2141
2072
|
1
|
|
2142
2073
|
/* TEXT */
|
|
2143
2074
|
)
|
|
@@ -2151,15 +2082,15 @@ function zo(e, o, i, d, n, r) {
|
|
|
2151
2082
|
}),
|
|
2152
2083
|
l(u, null, {
|
|
2153
2084
|
default: t(() => [
|
|
2154
|
-
l(
|
|
2085
|
+
l(f, {
|
|
2155
2086
|
id: "basisModuleName",
|
|
2087
|
+
modelValue: e.basisModule.title,
|
|
2088
|
+
"onUpdate:modelValue": o[4] || (o[4] = (V) => e.basisModule.title = V),
|
|
2156
2089
|
placeholder: "Base Module",
|
|
2157
2090
|
rules: [
|
|
2158
2091
|
e.basisModuleExists && (!e.basisModule.title || e.basisModule.title === "") ? () => "moduleSelector.configEditor.error" : () => !0
|
|
2159
|
-
]
|
|
2160
|
-
|
|
2161
|
-
"onUpdate:modelValue": o[4] || (o[4] = (V) => e.basisModule.title = V)
|
|
2162
|
-
}, null, 8, ["rules", "modelValue"])
|
|
2092
|
+
]
|
|
2093
|
+
}, null, 8, ["modelValue", "rules"])
|
|
2163
2094
|
]),
|
|
2164
2095
|
_: 1
|
|
2165
2096
|
/* STABLE */
|
|
@@ -2168,7 +2099,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2168
2099
|
_: 1
|
|
2169
2100
|
/* STABLE */
|
|
2170
2101
|
})) : G("v-if", !0),
|
|
2171
|
-
e.basisModuleExists ? (
|
|
2102
|
+
e.basisModuleExists ? ($(), U(a, {
|
|
2172
2103
|
key: 1,
|
|
2173
2104
|
"no-gutters": ""
|
|
2174
2105
|
}, {
|
|
@@ -2180,8 +2111,8 @@ function zo(e, o, i, d, n, r) {
|
|
|
2180
2111
|
"html-for": "basisModuleIcon"
|
|
2181
2112
|
}, {
|
|
2182
2113
|
default: t(() => [
|
|
2183
|
-
|
|
2184
|
-
|
|
2114
|
+
M(
|
|
2115
|
+
v(e.$st("components.style.icon")),
|
|
2185
2116
|
1
|
|
2186
2117
|
/* TEXT */
|
|
2187
2118
|
)
|
|
@@ -2195,15 +2126,15 @@ function zo(e, o, i, d, n, r) {
|
|
|
2195
2126
|
}),
|
|
2196
2127
|
l(u, null, {
|
|
2197
2128
|
default: t(() => [
|
|
2198
|
-
l(
|
|
2129
|
+
l(f, {
|
|
2199
2130
|
id: "basisModuleIcon",
|
|
2131
|
+
modelValue: e.basisModule.icon,
|
|
2132
|
+
"onUpdate:modelValue": o[5] || (o[5] = (V) => e.basisModule.icon = V),
|
|
2200
2133
|
placeholder: "mdi-home-city",
|
|
2201
2134
|
rules: [
|
|
2202
2135
|
e.basisModuleExists && (!e.basisModule.icon || e.basisModule.icon === "") ? () => "moduleSelector.configEditor.error" : () => !0
|
|
2203
|
-
]
|
|
2204
|
-
|
|
2205
|
-
"onUpdate:modelValue": o[5] || (o[5] = (V) => e.basisModule.icon = V)
|
|
2206
|
-
}, null, 8, ["rules", "modelValue"])
|
|
2136
|
+
]
|
|
2137
|
+
}, null, 8, ["modelValue", "rules"])
|
|
2207
2138
|
]),
|
|
2208
2139
|
_: 1
|
|
2209
2140
|
/* STABLE */
|
|
@@ -2212,7 +2143,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2212
2143
|
_: 1
|
|
2213
2144
|
/* STABLE */
|
|
2214
2145
|
})) : G("v-if", !0),
|
|
2215
|
-
e.basisModuleExists ? (
|
|
2146
|
+
e.basisModuleExists ? ($(), U(a, {
|
|
2216
2147
|
key: 2,
|
|
2217
2148
|
"no-gutters": ""
|
|
2218
2149
|
}, {
|
|
@@ -2221,8 +2152,8 @@ function zo(e, o, i, d, n, r) {
|
|
|
2221
2152
|
default: t(() => [
|
|
2222
2153
|
l(s, { "html-for": "basisModuleDescription" }, {
|
|
2223
2154
|
default: t(() => [
|
|
2224
|
-
|
|
2225
|
-
|
|
2155
|
+
M(
|
|
2156
|
+
v(e.$st("moduleSelector.configEditor.moduleDescription")),
|
|
2226
2157
|
1
|
|
2227
2158
|
/* TEXT */
|
|
2228
2159
|
)
|
|
@@ -2268,9 +2199,9 @@ function zo(e, o, i, d, n, r) {
|
|
|
2268
2199
|
persistent: !0
|
|
2269
2200
|
}, {
|
|
2270
2201
|
default: t(() => [
|
|
2271
|
-
e.currentGroup ? (
|
|
2202
|
+
e.currentGroup ? ($(), U(p, { key: 0 }, {
|
|
2272
2203
|
default: t(() => [
|
|
2273
|
-
l(
|
|
2204
|
+
l(y, {
|
|
2274
2205
|
heading: "moduleSelector.configEditor.groupHeading",
|
|
2275
2206
|
"start-open": !0
|
|
2276
2207
|
}, {
|
|
@@ -2280,9 +2211,9 @@ function zo(e, o, i, d, n, r) {
|
|
|
2280
2211
|
"onUpdate:modelValue": o[10] || (o[10] = (V) => e.isFormValid = V)
|
|
2281
2212
|
}, {
|
|
2282
2213
|
default: t(() => [
|
|
2283
|
-
l(
|
|
2214
|
+
l(S, { class: "py-0 px-1" }, {
|
|
2284
2215
|
default: t(() => [
|
|
2285
|
-
l(
|
|
2216
|
+
l(a, { "no-gutters": "" }, {
|
|
2286
2217
|
default: t(() => [
|
|
2287
2218
|
l(u, { cols: "6" }, {
|
|
2288
2219
|
default: t(() => [
|
|
@@ -2291,8 +2222,8 @@ function zo(e, o, i, d, n, r) {
|
|
|
2291
2222
|
"html-for": "groupModuleName"
|
|
2292
2223
|
}, {
|
|
2293
2224
|
default: t(() => [
|
|
2294
|
-
|
|
2295
|
-
|
|
2225
|
+
M(
|
|
2226
|
+
v(e.$st("moduleSelector.configEditor.groupName")),
|
|
2296
2227
|
1
|
|
2297
2228
|
/* TEXT */
|
|
2298
2229
|
)
|
|
@@ -2306,11 +2237,11 @@ function zo(e, o, i, d, n, r) {
|
|
|
2306
2237
|
}),
|
|
2307
2238
|
l(u, null, {
|
|
2308
2239
|
default: t(() => [
|
|
2309
|
-
l(
|
|
2240
|
+
l(f, {
|
|
2310
2241
|
id: "groupModuleName",
|
|
2311
|
-
placeholder: "Module Name",
|
|
2312
2242
|
modelValue: e.currentGroup.title,
|
|
2313
2243
|
"onUpdate:modelValue": o[7] || (o[7] = (V) => e.currentGroup.title = V),
|
|
2244
|
+
placeholder: "Module Name",
|
|
2314
2245
|
rules: [e.isRequired]
|
|
2315
2246
|
}, null, 8, ["modelValue", "rules"])
|
|
2316
2247
|
]),
|
|
@@ -2321,7 +2252,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2321
2252
|
_: 1
|
|
2322
2253
|
/* STABLE */
|
|
2323
2254
|
}),
|
|
2324
|
-
l(
|
|
2255
|
+
l(a, { "no-gutters": "" }, {
|
|
2325
2256
|
default: t(() => [
|
|
2326
2257
|
l(u, { cols: "6" }, {
|
|
2327
2258
|
default: t(() => [
|
|
@@ -2330,8 +2261,8 @@ function zo(e, o, i, d, n, r) {
|
|
|
2330
2261
|
"html-for": "groupModuleIcon"
|
|
2331
2262
|
}, {
|
|
2332
2263
|
default: t(() => [
|
|
2333
|
-
|
|
2334
|
-
|
|
2264
|
+
M(
|
|
2265
|
+
v(e.$st("moduleSelector.configEditor.moduleIcon")),
|
|
2335
2266
|
1
|
|
2336
2267
|
/* TEXT */
|
|
2337
2268
|
)
|
|
@@ -2345,11 +2276,11 @@ function zo(e, o, i, d, n, r) {
|
|
|
2345
2276
|
}),
|
|
2346
2277
|
l(u, null, {
|
|
2347
2278
|
default: t(() => [
|
|
2348
|
-
l(
|
|
2279
|
+
l(f, {
|
|
2349
2280
|
id: "groupModuleIcon",
|
|
2350
|
-
placeholder: "Module Icon",
|
|
2351
2281
|
modelValue: e.currentGroup.icon,
|
|
2352
2282
|
"onUpdate:modelValue": o[8] || (o[8] = (V) => e.currentGroup.icon = V),
|
|
2283
|
+
placeholder: "Module Icon",
|
|
2353
2284
|
rules: [e.isRequired]
|
|
2354
2285
|
}, null, 8, ["modelValue", "rules"])
|
|
2355
2286
|
]),
|
|
@@ -2360,14 +2291,14 @@ function zo(e, o, i, d, n, r) {
|
|
|
2360
2291
|
_: 1
|
|
2361
2292
|
/* STABLE */
|
|
2362
2293
|
}),
|
|
2363
|
-
l(
|
|
2294
|
+
l(a, { "no-gutters": "" }, {
|
|
2364
2295
|
default: t(() => [
|
|
2365
2296
|
l(u, { cols: "6" }, {
|
|
2366
2297
|
default: t(() => [
|
|
2367
2298
|
l(s, { "html-for": "groupModuleDescription" }, {
|
|
2368
2299
|
default: t(() => [
|
|
2369
|
-
|
|
2370
|
-
|
|
2300
|
+
M(
|
|
2301
|
+
v(e.$st("moduleSelector.configEditor.groupDescription")),
|
|
2371
2302
|
1
|
|
2372
2303
|
/* TEXT */
|
|
2373
2304
|
)
|
|
@@ -2383,9 +2314,9 @@ function zo(e, o, i, d, n, r) {
|
|
|
2383
2314
|
default: t(() => [
|
|
2384
2315
|
l(B, {
|
|
2385
2316
|
id: "groupModuleDescription",
|
|
2386
|
-
placeholder: "",
|
|
2387
2317
|
modelValue: e.currentGroup.description,
|
|
2388
|
-
"onUpdate:modelValue": o[9] || (o[9] = (V) => e.currentGroup.description = V)
|
|
2318
|
+
"onUpdate:modelValue": o[9] || (o[9] = (V) => e.currentGroup.description = V),
|
|
2319
|
+
placeholder: ""
|
|
2389
2320
|
}, null, 8, ["modelValue"])
|
|
2390
2321
|
]),
|
|
2391
2322
|
_: 1
|
|
@@ -2407,13 +2338,13 @@ function zo(e, o, i, d, n, r) {
|
|
|
2407
2338
|
_: 1
|
|
2408
2339
|
/* STABLE */
|
|
2409
2340
|
}),
|
|
2410
|
-
l(
|
|
2341
|
+
l(y, {
|
|
2411
2342
|
heading: "moduleSelector.configEditor.heading2",
|
|
2412
2343
|
"start-open": !0,
|
|
2413
2344
|
"header-actions": e.headerActions
|
|
2414
2345
|
}, {
|
|
2415
2346
|
default: t(() => [
|
|
2416
|
-
l(
|
|
2347
|
+
l(h, {
|
|
2417
2348
|
class: "draggable-list",
|
|
2418
2349
|
items: e.currentGroup.cards,
|
|
2419
2350
|
draggable: !0,
|
|
@@ -2423,16 +2354,16 @@ function zo(e, o, i, d, n, r) {
|
|
|
2423
2354
|
_: 1
|
|
2424
2355
|
/* STABLE */
|
|
2425
2356
|
}, 8, ["header-actions"]),
|
|
2426
|
-
L("div",
|
|
2427
|
-
L("div",
|
|
2428
|
-
l(
|
|
2357
|
+
L("div", Ro, [
|
|
2358
|
+
L("div", qo, [
|
|
2359
|
+
l(T, {
|
|
2429
2360
|
variant: "filled",
|
|
2430
2361
|
disabled: !e.isFormValid,
|
|
2431
2362
|
onClick: o[11] || (o[11] = (V) => e.returnLevel())
|
|
2432
2363
|
}, {
|
|
2433
2364
|
default: t(() => [
|
|
2434
|
-
|
|
2435
|
-
|
|
2365
|
+
M(
|
|
2366
|
+
v(e.$t("components.apply")),
|
|
2436
2367
|
1
|
|
2437
2368
|
/* TEXT */
|
|
2438
2369
|
)
|
|
@@ -2440,12 +2371,12 @@ function zo(e, o, i, d, n, r) {
|
|
|
2440
2371
|
_: 1
|
|
2441
2372
|
/* STABLE */
|
|
2442
2373
|
}, 8, ["disabled"]),
|
|
2443
|
-
l(
|
|
2374
|
+
l(T, {
|
|
2444
2375
|
onClick: o[12] || (o[12] = (V) => e.cancelCurrentGroup())
|
|
2445
2376
|
}, {
|
|
2446
2377
|
default: t(() => [
|
|
2447
|
-
|
|
2448
|
-
|
|
2378
|
+
M(
|
|
2379
|
+
v(e.$t("components.cancel")),
|
|
2449
2380
|
1
|
|
2450
2381
|
/* TEXT */
|
|
2451
2382
|
)
|
|
@@ -2463,13 +2394,13 @@ function zo(e, o, i, d, n, r) {
|
|
|
2463
2394
|
_: 1
|
|
2464
2395
|
/* STABLE */
|
|
2465
2396
|
}, 8, ["modelValue"]),
|
|
2466
|
-
l(
|
|
2397
|
+
l(y, {
|
|
2467
2398
|
heading: "moduleSelector.configEditor.heading",
|
|
2468
2399
|
"start-open": !0,
|
|
2469
2400
|
"header-actions": e.headerActions
|
|
2470
2401
|
}, {
|
|
2471
2402
|
default: t(() => [
|
|
2472
|
-
l(
|
|
2403
|
+
l(h, {
|
|
2473
2404
|
items: e.listItemArray,
|
|
2474
2405
|
draggable: !0,
|
|
2475
2406
|
onItemMoved: e.moveItem
|
|
@@ -2510,7 +2441,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2510
2441
|
_: 1
|
|
2511
2442
|
/* STABLE */
|
|
2512
2443
|
}, 8, ["header-actions"]),
|
|
2513
|
-
l(
|
|
2444
|
+
l(y, {
|
|
2514
2445
|
heading: "moduleSelector.configEditor.windowPosition",
|
|
2515
2446
|
expandable: !0
|
|
2516
2447
|
}, {
|
|
@@ -2538,31 +2469,58 @@ function zo(e, o, i, d, n, r) {
|
|
|
2538
2469
|
/* STABLE */
|
|
2539
2470
|
}, 16, ["onSubmit"])) : G("v-if", !0);
|
|
2540
2471
|
}
|
|
2541
|
-
const
|
|
2542
|
-
function
|
|
2543
|
-
|
|
2472
|
+
const jo = /* @__PURE__ */ ne(Go, [["render", Po]]);
|
|
2473
|
+
async function Lo(e, o) {
|
|
2474
|
+
const n = await fetch(e, {
|
|
2475
|
+
method: "GET"
|
|
2476
|
+
}).then((d) => {
|
|
2477
|
+
if (d.ok)
|
|
2478
|
+
return d.json();
|
|
2479
|
+
});
|
|
2480
|
+
if (n) {
|
|
2481
|
+
const d = new oo(n);
|
|
2482
|
+
return await o.addModule(d), d._id;
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
async function zo(e, o) {
|
|
2486
|
+
var d, i;
|
|
2487
|
+
const n = (d = e.maps.activeMap) == null ? void 0 : d.name;
|
|
2488
|
+
o && e.getModuleById(o) && await e.removeModule(o), e.maps.activeMap || await e.maps.setActiveMap(n || ((i = [...e.maps][0]) == null ? void 0 : i.name));
|
|
2489
|
+
}
|
|
2490
|
+
const se = "moduleSelector_window_id";
|
|
2491
|
+
function Qo(e) {
|
|
2492
|
+
let o, n;
|
|
2544
2493
|
return {
|
|
2545
2494
|
get name() {
|
|
2546
2495
|
return z;
|
|
2547
2496
|
},
|
|
2548
2497
|
get version() {
|
|
2549
|
-
return
|
|
2498
|
+
return no;
|
|
2550
2499
|
},
|
|
2551
2500
|
get mapVersion() {
|
|
2552
|
-
return
|
|
2501
|
+
return ro;
|
|
2553
2502
|
},
|
|
2554
2503
|
get config() {
|
|
2555
|
-
return { ...
|
|
2504
|
+
return { ...ae(), ...e };
|
|
2505
|
+
},
|
|
2506
|
+
async startApplication(d, i) {
|
|
2507
|
+
var u, f, a;
|
|
2508
|
+
if (await zo(o, n), n = void 0, d === null && !this.config.basisModule) {
|
|
2509
|
+
o.windowManager.remove(se);
|
|
2510
|
+
return;
|
|
2511
|
+
}
|
|
2512
|
+
const r = (u = this.config.modules) == null ? void 0 : u[d], s = (r == null ? void 0 : r.type) === "group" ? (a = (f = r.cards) == null ? void 0 : f[i]) == null ? void 0 : a.moduleUrl : r == null ? void 0 : r.moduleUrl;
|
|
2513
|
+
s && (n = await Lo(s, o)), o.windowManager.remove(se);
|
|
2556
2514
|
},
|
|
2557
2515
|
selectedMainModuleIndex: A(void 0),
|
|
2558
2516
|
selectedNestedModuleIndex: A(void 0),
|
|
2559
|
-
async initialize(
|
|
2560
|
-
var
|
|
2561
|
-
o =
|
|
2562
|
-
const
|
|
2563
|
-
id:
|
|
2564
|
-
component:
|
|
2565
|
-
slot:
|
|
2517
|
+
async initialize(d, i) {
|
|
2518
|
+
var u;
|
|
2519
|
+
o = d;
|
|
2520
|
+
const r = {
|
|
2521
|
+
id: se,
|
|
2522
|
+
component: ao,
|
|
2523
|
+
slot: We.DETACHED,
|
|
2566
2524
|
position: this.config.position,
|
|
2567
2525
|
state: {
|
|
2568
2526
|
headerIcon: "mdi-view-grid",
|
|
@@ -2577,50 +2535,45 @@ function Xo(e) {
|
|
|
2577
2535
|
requireModuleSelection: this.config.requireModuleSelection
|
|
2578
2536
|
}
|
|
2579
2537
|
};
|
|
2580
|
-
if (
|
|
2581
|
-
const
|
|
2582
|
-
if (
|
|
2583
|
-
this.selectedMainModuleIndex.value =
|
|
2584
|
-
const
|
|
2585
|
-
|
|
2538
|
+
if (i) {
|
|
2539
|
+
const f = Ce(i.smi), a = Ce(i.snmi), w = to(i.w), { modules: S } = this.config;
|
|
2540
|
+
if (f !== void 0 && f < (S == null ? void 0 : S.length)) {
|
|
2541
|
+
this.selectedMainModuleIndex.value = f;
|
|
2542
|
+
const y = S[f];
|
|
2543
|
+
a !== void 0 && (y == null ? void 0 : y.type) === "group" && a < ((u = y == null ? void 0 : y.cards) == null ? void 0 : u.length) && (this.selectedNestedModuleIndex.value = a);
|
|
2586
2544
|
}
|
|
2587
|
-
|
|
2545
|
+
w || await this.startApplication(
|
|
2588
2546
|
this.selectedMainModuleIndex.value,
|
|
2589
|
-
this.selectedNestedModuleIndex.value
|
|
2590
|
-
o,
|
|
2591
|
-
this.config.modules,
|
|
2592
|
-
this.config.basisModule
|
|
2547
|
+
this.selectedNestedModuleIndex.value
|
|
2593
2548
|
);
|
|
2594
2549
|
}
|
|
2595
|
-
const { action:
|
|
2550
|
+
const { action: s } = He(
|
|
2596
2551
|
{
|
|
2597
|
-
name: "moduleSelector",
|
|
2552
|
+
name: "moduleSelector.title",
|
|
2598
2553
|
title: "moduleSelector.title",
|
|
2599
2554
|
icon: "mdi-view-grid"
|
|
2600
2555
|
},
|
|
2601
|
-
|
|
2556
|
+
r,
|
|
2602
2557
|
o.windowManager,
|
|
2603
2558
|
z
|
|
2604
2559
|
);
|
|
2605
2560
|
return o.navbarManager.add(
|
|
2606
|
-
{
|
|
2607
|
-
id: r.name,
|
|
2608
|
-
action: r
|
|
2609
|
-
},
|
|
2561
|
+
{ id: s.name, action: s },
|
|
2610
2562
|
z,
|
|
2611
|
-
|
|
2612
|
-
|
|
2563
|
+
Ke.PROJECT,
|
|
2564
|
+
{ desktop: !0, tablet: !0, mobile: !0 }
|
|
2565
|
+
), (i && i.w || !i && this.config.isActiveOnStart) && o.windowManager.add(r, z), Promise.resolve();
|
|
2613
2566
|
},
|
|
2614
|
-
getDefaultOptions:
|
|
2567
|
+
getDefaultOptions: ae,
|
|
2615
2568
|
getState() {
|
|
2616
|
-
var
|
|
2617
|
-
const
|
|
2618
|
-
return
|
|
2569
|
+
var u, f;
|
|
2570
|
+
const d = (u = this.selectedMainModuleIndex) == null ? void 0 : u.value, i = (f = this.selectedNestedModuleIndex) == null ? void 0 : f.value, r = o.windowManager.has(se), s = this.config.isActiveOnStart;
|
|
2571
|
+
return d !== void 0 || i !== void 0 || r !== s ? { smi: d, snmi: i, w: r } : {};
|
|
2619
2572
|
},
|
|
2620
2573
|
getConfigEditors() {
|
|
2621
2574
|
return [
|
|
2622
2575
|
{
|
|
2623
|
-
component:
|
|
2576
|
+
component: jo,
|
|
2624
2577
|
title: "moduleSelector.name",
|
|
2625
2578
|
infoUrlCallback: o.getHelpUrlCallback(
|
|
2626
2579
|
"/components/plugins/moduleSelectorConfig.html",
|
|
@@ -2630,8 +2583,8 @@ function Xo(e) {
|
|
|
2630
2583
|
];
|
|
2631
2584
|
},
|
|
2632
2585
|
toJSON() {
|
|
2633
|
-
const
|
|
2634
|
-
return this.config.windowTitle !==
|
|
2586
|
+
const d = {}, i = ae();
|
|
2587
|
+
return this.config.windowTitle !== i.windowTitle && (d.windowTitle = this.config.windowTitle), this.config.isActiveOnStart !== i.isActiveOnStart && (d.isActiveOnStart = this.config.isActiveOnStart), this.config.requireModuleSelection !== i.requireModuleSelection && (d.requireModuleSelection = this.config.requireModuleSelection), ge(this.config.position, i.position) || (d.position = this.config.position), ge(this.config.modules, i.modules) || (d.modules = this.config.modules), ge(this.config.basisModule, i.basisModule) || (d.basisModule = this.config.basisModule), e.serverUrl != null && (d.serverUrl = e.serverUrl), e.projectId != null && (d.projectId = e.projectId), e.appId != null && (d.appId = e.appId), e.token != null && (d.token = e.token), d;
|
|
2635
2588
|
},
|
|
2636
2589
|
i18n: {
|
|
2637
2590
|
de: {
|
|
@@ -2746,5 +2699,5 @@ function Xo(e) {
|
|
|
2746
2699
|
};
|
|
2747
2700
|
}
|
|
2748
2701
|
export {
|
|
2749
|
-
|
|
2702
|
+
Qo as default
|
|
2750
2703
|
};
|