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