@vcmap/module-selector 2.0.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +64 -65
- package/package.json +13 -10
- package/src/ModuleSelector.vue +11 -4
- package/src/index.ts +5 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ function loadCss(href) {
|
|
|
10
10
|
elem.onerror = reject;
|
|
11
11
|
document.head.appendChild(elem);
|
|
12
12
|
});
|
|
13
|
-
} await loadCss('data:text/css;base64,
|
|
13
|
+
} await loadCss('data:text/css;base64,LnYtY2FyZFtkYXRhLXYtMDYwNmI1YmVde2Rpc3BsYXk6ZmxleDtmbGV4LWRpcmVjdGlvbjpjb2x1bW47anVzdGlmeS1jb250ZW50OmNlbnRlcjthbGlnbi1pdGVtczpjZW50ZXI7aGVpZ2h0OjE1MHB4O3dpZHRoOjE1MHB4O2FzcGVjdC1yYXRpbzoxO3RyYW5zaXRpb246YmFja2dyb3VuZC1jb2xvciAuM3N9LmZpeGVkLWNhcmRbZGF0YS12LTA2MDZiNWJlXXtoZWlnaHQ6MTUwcHg7d2lkdGg6MTUwcHg7YXNwZWN0LXJhdGlvOjF9LnNlbGVjdGVkLWNhcmRbZGF0YS12LTA2MDZiNWJlXXtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXByaW1hcnkpKTtjb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1vbi1wcmltYXJ5KSl9LnRvcC1sZWZ0LWljb25bZGF0YS12LTA2MDZiNWJlXXtwb3NpdGlvbjphYnNvbHV0ZTt0b3A6OHB4O2xlZnQ6OHB4O3otaW5kZXg6MTA7Y3Vyc29yOnBvaW50ZXI7Y29sb3I6cmdiKHZhcigtLXYtdGhlbWUtb24tc3VyZmFjZSkpfS50b3AtbGVmdC1pY29uLnNlbGVjdGVkW2RhdGEtdi0wNjA2YjViZV17Y29sb3I6cmdiKHZhcigtLXYtdGhlbWUtb24tcHJpbWFyeSkpfS5ncm91cENhcmRbZGF0YS12LTA2MDZiNWJlXXt3aWR0aDoxNDZweDtiYWNrZ3JvdW5kLWNvbG9yOnJnYih2YXIoLS12LXRoZW1lLXN1cmZhY2UpKTtib3JkZXI6bm9uZSFpbXBvcnRhbnQ7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCFpbXBvcnRhbnR9LmludGVybWVkaWF0ZS1jYXJkW2RhdGEtdi0wNjA2YjViZV17d2lkdGg6MTQ4cHg7YmFja2dyb3VuZC1jb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1zdXJmYWNlKSk7Ym9yZGVyOm5vbmUhaW1wb3J0YW50O2JvcmRlci1yaWdodDoxcHggc29saWQhaW1wb3J0YW50fS5ncm91cFRpdGxlW2RhdGEtdi0wNjA2YjViZV0sLmdyb3VwSWNvbltkYXRhLXYtMDYwNmI1YmVde21hcmdpbi1sZWZ0OjIwcHghaW1wb3J0YW50fS5maXhlZC1ib3R0b21bZGF0YS12LTA2MDZiNWJlXXtwb3NpdGlvbjpzdGlja3k7Ym90dG9tOjA7YmFja2dyb3VuZC1jb2xvcjpyZ2IodmFyKC0tdi10aGVtZS1zdXJmYWNlKSk7ei1pbmRleDoxMH0K');var qe = Object.defineProperty;
|
|
14
14
|
var Pe = (e, o, i) => o in e ? qe(e, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[o] = i;
|
|
15
15
|
var J = (e, o, i) => Pe(e, typeof o != "symbol" ? o + "" : o, i);
|
|
16
16
|
import { VcsFormButton as ce, VcsTextField as me, VcsLabel as Se, VcsFormSection as ye, VcsTextArea as we, VcsCheckbox as ke, 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";
|
|
@@ -56,7 +56,7 @@ var ro = function e(o, i) {
|
|
|
56
56
|
}
|
|
57
57
|
return o !== o && i !== i;
|
|
58
58
|
};
|
|
59
|
-
const ge = /* @__PURE__ */ no(ro), z = "@vcmap/module-selector", so = "
|
|
59
|
+
const ge = /* @__PURE__ */ no(ro), z = "@vcmap/module-selector", so = "3.0.0", uo = "^6.1";
|
|
60
60
|
async function $e(e, o) {
|
|
61
61
|
const i = await fetch(e, {
|
|
62
62
|
method: "GET"
|
|
@@ -177,7 +177,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
177
177
|
s,
|
|
178
178
|
se({
|
|
179
179
|
key: 0,
|
|
180
|
-
class: "top-
|
|
180
|
+
class: "top-left-icon"
|
|
181
181
|
}, v),
|
|
182
182
|
{
|
|
183
183
|
default: t(() => [
|
|
@@ -273,10 +273,10 @@ function mo(e, o, i, d, n, r) {
|
|
|
273
273
|
(C(!0), K(
|
|
274
274
|
ee,
|
|
275
275
|
null,
|
|
276
|
-
he(e.nestedCards, (v,
|
|
276
|
+
he(e.nestedCards, (v, T) => (C(), U(
|
|
277
277
|
y,
|
|
278
278
|
{
|
|
279
|
-
key:
|
|
279
|
+
key: T,
|
|
280
280
|
cols: "auto",
|
|
281
281
|
class: "pa-2"
|
|
282
282
|
},
|
|
@@ -284,10 +284,10 @@ function mo(e, o, i, d, n, r) {
|
|
|
284
284
|
default: t(() => [
|
|
285
285
|
l(c, {
|
|
286
286
|
class: re(["fixed-card hover-card", {
|
|
287
|
-
"selected-card": e.plugin.selectedNestedModuleIndex.value ===
|
|
287
|
+
"selected-card": e.plugin.selectedNestedModuleIndex.value === T
|
|
288
288
|
}]),
|
|
289
289
|
variant: "outlined",
|
|
290
|
-
onClick: (p) => e.selectNestedModule(
|
|
290
|
+
onClick: (p) => e.selectNestedModule(T)
|
|
291
291
|
}, {
|
|
292
292
|
default: t(() => [
|
|
293
293
|
l(
|
|
@@ -299,7 +299,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
299
299
|
s,
|
|
300
300
|
se({
|
|
301
301
|
key: 0,
|
|
302
|
-
class: "top-
|
|
302
|
+
class: "top-left-icon",
|
|
303
303
|
ref_for: !0
|
|
304
304
|
}, p),
|
|
305
305
|
{
|
|
@@ -385,22 +385,22 @@ function mo(e, o, i, d, n, r) {
|
|
|
385
385
|
)) : (C(!0), K(
|
|
386
386
|
ee,
|
|
387
387
|
{ key: 1 },
|
|
388
|
-
he(e.modules, (v,
|
|
388
|
+
he(e.modules, (v, T) => (C(), U(
|
|
389
389
|
y,
|
|
390
390
|
{
|
|
391
391
|
cols: "auto",
|
|
392
392
|
class: "pa-2",
|
|
393
|
-
key:
|
|
393
|
+
key: T
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
default: t(() => [
|
|
397
397
|
l(c, {
|
|
398
398
|
class: re(["fixed-card hover-card", {
|
|
399
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
399
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
400
400
|
"pr-3": v.type === "group"
|
|
401
401
|
}]),
|
|
402
402
|
variant: "outlined",
|
|
403
|
-
onClick: (p) => e.selectModule(
|
|
403
|
+
onClick: (p) => e.selectModule(T)
|
|
404
404
|
}, {
|
|
405
405
|
default: t(() => [
|
|
406
406
|
l(
|
|
@@ -408,23 +408,19 @@ function mo(e, o, i, d, n, r) {
|
|
|
408
408
|
{ "max-width": 300 },
|
|
409
409
|
{
|
|
410
410
|
activator: t(({ props: p }) => [
|
|
411
|
-
v.description ? (C(), U(
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
},
|
|
425
|
-
1040
|
|
426
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
427
|
-
)) : G("v-if", !0)
|
|
411
|
+
v.description ? (C(), U(s, se({
|
|
412
|
+
key: 0,
|
|
413
|
+
class: ["top-left-icon", {
|
|
414
|
+
selected: e.plugin.selectedMainModuleIndex.value === T
|
|
415
|
+
}],
|
|
416
|
+
ref_for: !0
|
|
417
|
+
}, p), {
|
|
418
|
+
default: t(() => [
|
|
419
|
+
h(g("$vcsInfo"))
|
|
420
|
+
]),
|
|
421
|
+
_: 2
|
|
422
|
+
/* DYNAMIC */
|
|
423
|
+
}, 1040, ["class"])) : G("v-if", !0)
|
|
428
424
|
]),
|
|
429
425
|
default: t(() => [
|
|
430
426
|
L(
|
|
@@ -444,7 +440,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
444
440
|
v.type === "group" && v.cards ? (C(), U(c, {
|
|
445
441
|
key: 0,
|
|
446
442
|
class: re(["intermediate-card", {
|
|
447
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
443
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
448
444
|
"pr-3": v.type === "group"
|
|
449
445
|
}]),
|
|
450
446
|
variant: "outlined"
|
|
@@ -453,7 +449,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
453
449
|
l(c, {
|
|
454
450
|
variant: v.type === "group" && v.cards ? "outlined" : void 0,
|
|
455
451
|
class: re({
|
|
456
|
-
"selected-card": e.plugin.selectedMainModuleIndex.value ===
|
|
452
|
+
"selected-card": e.plugin.selectedMainModuleIndex.value === T,
|
|
457
453
|
groupCard: v.type === "group",
|
|
458
454
|
innerCard: v.type === "group"
|
|
459
455
|
})
|
|
@@ -607,7 +603,7 @@ function mo(e, o, i, d, n, r) {
|
|
|
607
603
|
/* STABLE */
|
|
608
604
|
});
|
|
609
605
|
}
|
|
610
|
-
const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-
|
|
606
|
+
const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-0606b5be"]]), ue = () => ({
|
|
611
607
|
windowTitle: "moduleSelector.title",
|
|
612
608
|
isActiveOnStart: !0,
|
|
613
609
|
requireModuleSelection: !1,
|
|
@@ -657,8 +653,8 @@ const po = /* @__PURE__ */ ne(co, [["render", mo], ["__scopeId", "data-v-e7ec1fe
|
|
|
657
653
|
}
|
|
658
654
|
}), go = { class: "d-flex gc-2 w-100 justify-end pa-2" };
|
|
659
655
|
function vo(e, o, i, d, n, r) {
|
|
660
|
-
const s = a("VcsLabel"), u = a("v-col"), S = a("VcsTextField"), c = a("v-row"), y = a("VcsTextArea"), M = a("v-container"), $ = a("v-form"), B = a("v-divider"), b = a("VcsFormButton"), v = a("VcsFormSection"),
|
|
661
|
-
return C(), U(
|
|
656
|
+
const s = a("VcsLabel"), u = a("v-col"), S = a("VcsTextField"), c = a("v-row"), y = a("VcsTextArea"), M = a("v-container"), $ = a("v-form"), B = a("v-divider"), b = a("VcsFormButton"), v = a("VcsFormSection"), T = a("v-card");
|
|
657
|
+
return C(), U(T, null, {
|
|
662
658
|
default: t(() => [
|
|
663
659
|
l(v, { heading: "moduleSelector.configEditor.moduleSettings" }, {
|
|
664
660
|
default: t(() => [
|
|
@@ -1043,7 +1039,7 @@ async function $o(e, o, i, d = void 0, n = {}) {
|
|
|
1043
1039
|
return (await Co(e, o, i, d, n)).json();
|
|
1044
1040
|
}
|
|
1045
1041
|
async function _o(e) {
|
|
1046
|
-
const
|
|
1042
|
+
const n = Eo("api/v1/project/{projectId}/modules", e, {
|
|
1047
1043
|
projectId: "path",
|
|
1048
1044
|
limit: "query",
|
|
1049
1045
|
page: "query",
|
|
@@ -1051,7 +1047,7 @@ async function _o(e) {
|
|
|
1051
1047
|
orderBy: "query",
|
|
1052
1048
|
name: "query"
|
|
1053
1049
|
});
|
|
1054
|
-
return $o(n,
|
|
1050
|
+
return $o(n, "get", 200, void 0, void 0);
|
|
1055
1051
|
}
|
|
1056
1052
|
const O = {
|
|
1057
1053
|
OFF: 1,
|
|
@@ -1246,7 +1242,7 @@ const Oo = oe({
|
|
|
1246
1242
|
"@vcmap/app-configurator"
|
|
1247
1243
|
), { serverUrl: r, projectId: s, appId: u, token: S } = (n == null ? void 0 : n.config) || d.config, c = { serverUrl: r, projectId: s, appId: u, token: S };
|
|
1248
1244
|
Ao(c);
|
|
1249
|
-
const y = A(!0), M = A([]), $ = A(0), B = A(0), b = A([void 0]), v = No(),
|
|
1245
|
+
const y = A(!0), M = A([]), $ = A(0), B = A(0), b = A([void 0]), v = No(), T = /* @__PURE__ */ new Map(), p = A(e.modelValue), P = Z(() => p.value.id === ""), k = A(!1), Q = () => {
|
|
1250
1246
|
var R, W;
|
|
1251
1247
|
k.value = !!((R = p.value) != null && R.title) && !!((W = p.value) != null && W.icon);
|
|
1252
1248
|
}, X = {
|
|
@@ -1254,7 +1250,7 @@ const Oo = oe({
|
|
|
1254
1250
|
extension: "$vcsShapes"
|
|
1255
1251
|
};
|
|
1256
1252
|
function Y(R) {
|
|
1257
|
-
var
|
|
1253
|
+
var N;
|
|
1258
1254
|
const { itemsPerPage: W, page: m, search: I, sortBy: f } = R;
|
|
1259
1255
|
y.value = !0, c.projectId ? _o({
|
|
1260
1256
|
projectId: c.projectId,
|
|
@@ -1262,7 +1258,7 @@ const Oo = oe({
|
|
|
1262
1258
|
page: m - 1,
|
|
1263
1259
|
name: I,
|
|
1264
1260
|
orderBy: f == null ? void 0 : f.map(({ key: _ }) => _),
|
|
1265
|
-
sort: (
|
|
1261
|
+
sort: (N = f == null ? void 0 : f[0]) == null ? void 0 : N.order
|
|
1266
1262
|
}).then((_) => {
|
|
1267
1263
|
M.value = _.items.map((E) => {
|
|
1268
1264
|
var D, F;
|
|
@@ -1275,7 +1271,7 @@ const Oo = oe({
|
|
|
1275
1271
|
updatedBy: (n == null ? void 0 : n.getUserName(E.updatedBy)) || E.updatedBy,
|
|
1276
1272
|
_id: E._id
|
|
1277
1273
|
};
|
|
1278
|
-
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),
|
|
1274
|
+
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), T.set(E._id, E), w;
|
|
1279
1275
|
}), $.value = _.totalCount, B.value = _.totalPages;
|
|
1280
1276
|
}).catch((_) => {
|
|
1281
1277
|
Ve("CloudModuleSelector.vue").error(
|
|
@@ -1323,7 +1319,7 @@ const Oo = oe({
|
|
|
1323
1319
|
class: "d-flex gc-2 justify-space-between w-100"
|
|
1324
1320
|
}, Go = { class: "d-flex gc-2" };
|
|
1325
1321
|
function Ro(e, o, i, d, n, r) {
|
|
1326
|
-
const s = a("v-icon"), u = a("v-tooltip"), S = a("VcsDataTable"), c = a("VcsFormSection"), y = a("VcsLabel"), M = a("v-col"), $ = a("VcsTextField"), B = a("v-row"), b = a("VcsTextArea"), v = a("v-container"),
|
|
1322
|
+
const s = a("v-icon"), u = a("v-tooltip"), S = a("VcsDataTable"), c = a("VcsFormSection"), y = a("VcsLabel"), M = a("v-col"), $ = a("VcsTextField"), B = a("v-row"), b = a("VcsTextArea"), v = a("v-container"), T = a("v-form"), p = a("VcsFormButton"), P = a("v-card");
|
|
1327
1323
|
return C(), U(P, null, {
|
|
1328
1324
|
default: t(() => [
|
|
1329
1325
|
L("div", null, [
|
|
@@ -1412,7 +1408,7 @@ function Ro(e, o, i, d, n, r) {
|
|
|
1412
1408
|
heading: "moduleSelector.configEditor.moduleSettings"
|
|
1413
1409
|
}, {
|
|
1414
1410
|
default: t(() => [
|
|
1415
|
-
l(
|
|
1411
|
+
l(T, {
|
|
1416
1412
|
modelValue: e.isFValid,
|
|
1417
1413
|
"onUpdate:modelValue": o[4] || (o[4] = (k) => e.isFValid = k),
|
|
1418
1414
|
ref: "form"
|
|
@@ -1706,7 +1702,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1706
1702
|
function v(m) {
|
|
1707
1703
|
var I;
|
|
1708
1704
|
if (m.type === "url") {
|
|
1709
|
-
const { actions: f, id:
|
|
1705
|
+
const { actions: f, id: N, name: _, ...E } = m;
|
|
1710
1706
|
return {
|
|
1711
1707
|
...E,
|
|
1712
1708
|
moduleUrl: m.moduleUrl || ""
|
|
@@ -1717,18 +1713,18 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1717
1713
|
return {
|
|
1718
1714
|
...Re
|
|
1719
1715
|
};
|
|
1720
|
-
})) || [], { actions:
|
|
1716
|
+
})) || [], { actions: N, id: _, name: E, ...w } = m;
|
|
1721
1717
|
return {
|
|
1722
1718
|
...w,
|
|
1723
1719
|
...f.length ? { cards: f } : {}
|
|
1724
1720
|
};
|
|
1725
1721
|
}
|
|
1726
1722
|
}
|
|
1727
|
-
function
|
|
1723
|
+
function T(m) {
|
|
1728
1724
|
return m.map(v);
|
|
1729
1725
|
}
|
|
1730
1726
|
function p(m, I) {
|
|
1731
|
-
var
|
|
1727
|
+
var N, _, E;
|
|
1732
1728
|
const f = {
|
|
1733
1729
|
id: `${m.title || "undefined"}-${I}`,
|
|
1734
1730
|
name: m.title,
|
|
@@ -1738,7 +1734,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1738
1734
|
description: m.description,
|
|
1739
1735
|
actions: []
|
|
1740
1736
|
};
|
|
1741
|
-
return m.type === "url" && (f.moduleUrl = m.moduleUrl, (
|
|
1737
|
+
return m.type === "url" && (f.moduleUrl = m.moduleUrl, (N = f.actions) == null || N.push({
|
|
1742
1738
|
name: "edit",
|
|
1743
1739
|
title: "moduleSelector.configEditor.TooltipEditModule",
|
|
1744
1740
|
icon: "$vcsEdit",
|
|
@@ -1779,7 +1775,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1779
1775
|
);
|
|
1780
1776
|
if (w) {
|
|
1781
1777
|
n.value = w, y.value = !0;
|
|
1782
|
-
const [D] =
|
|
1778
|
+
const [D] = T([
|
|
1783
1779
|
n.value
|
|
1784
1780
|
]);
|
|
1785
1781
|
D.cards.length === 0 && (D.cards = []), u = structuredClone(D), b.splice(2, 1), b.length > 1 && (b[1].icon = "$vcsPlus", b[1].title = "moduleSelector.configEditor.TooltipAddModule");
|
|
@@ -1855,17 +1851,17 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1855
1851
|
) : M.value = [];
|
|
1856
1852
|
});
|
|
1857
1853
|
const k = () => {
|
|
1858
|
-
var
|
|
1859
|
-
const m = fe((
|
|
1854
|
+
var N;
|
|
1855
|
+
const m = fe((N = i.value) == null ? void 0 : N.position), I = Object.values(m).some(
|
|
1860
1856
|
(_) => _ !== void 0
|
|
1861
1857
|
), f = {
|
|
1862
1858
|
...fe(i.value),
|
|
1863
|
-
modules:
|
|
1859
|
+
modules: T(d.value),
|
|
1864
1860
|
basisModule: fe($.value)
|
|
1865
1861
|
};
|
|
1866
1862
|
I ? f.position = m : delete f.position, e.setConfig(f);
|
|
1867
1863
|
}, Q = () => {
|
|
1868
|
-
var m, I, f,
|
|
1864
|
+
var m, I, f, N, _, E, w, D;
|
|
1869
1865
|
if (n.value === void 0) {
|
|
1870
1866
|
if (r.value)
|
|
1871
1867
|
if (((m = r.value) == null ? void 0 : m.id) !== "") {
|
|
@@ -1896,7 +1892,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1896
1892
|
...r.value
|
|
1897
1893
|
});
|
|
1898
1894
|
let q;
|
|
1899
|
-
(f = n.value) != null && f.id || ((
|
|
1895
|
+
(f = n.value) != null && f.id || ((N = n.value) == null ? void 0 : N.id) !== "" ? q = n.value.id : q = `${n.value.title}-${d.value.length - 1}`, n.value = d.value.find(
|
|
1900
1896
|
(H) => H.id === q
|
|
1901
1897
|
);
|
|
1902
1898
|
} else {
|
|
@@ -1922,7 +1918,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1922
1918
|
description: ""
|
|
1923
1919
|
}, c.value = !1;
|
|
1924
1920
|
}, X = () => {
|
|
1925
|
-
var m, I, f,
|
|
1921
|
+
var m, I, f, N;
|
|
1926
1922
|
if (n.value === void 0)
|
|
1927
1923
|
s.value && d.value.push(
|
|
1928
1924
|
p(
|
|
@@ -1947,7 +1943,7 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1947
1943
|
)
|
|
1948
1944
|
);
|
|
1949
1945
|
let _;
|
|
1950
|
-
(m = n.value) != null && m.id || ((I = n.value) == null ? void 0 : I.id) !== "" ? _ = n.value.id : _ = `${(f = n.value) == null ? void 0 : f.title}-${d.value.length - 1}`, n.value = (
|
|
1946
|
+
(m = n.value) != null && m.id || ((I = n.value) == null ? void 0 : I.id) !== "" ? _ = n.value.id : _ = `${(f = n.value) == null ? void 0 : f.title}-${d.value.length - 1}`, n.value = (N = d.value) == null ? void 0 : N.find(
|
|
1951
1947
|
(E) => E.id === _
|
|
1952
1948
|
);
|
|
1953
1949
|
}
|
|
@@ -1997,23 +1993,23 @@ const qo = /* @__PURE__ */ ne(Oo, [["render", Ro]]), Po = oe({
|
|
|
1997
1993
|
item: m,
|
|
1998
1994
|
targetIndex: I
|
|
1999
1995
|
}) {
|
|
2000
|
-
var
|
|
2001
|
-
const f = (
|
|
1996
|
+
var N, _, E;
|
|
1997
|
+
const f = (N = d.value) == null ? void 0 : N.indexOf(m);
|
|
2002
1998
|
f !== I && ((_ = d.value) == null || _.splice(f, 1), (E = d.value) == null || E.splice(I, 0, m));
|
|
2003
1999
|
},
|
|
2004
2000
|
moveCard({
|
|
2005
2001
|
item: m,
|
|
2006
2002
|
targetIndex: I
|
|
2007
2003
|
}) {
|
|
2008
|
-
var
|
|
2004
|
+
var N, _, E, w;
|
|
2009
2005
|
const f = n.value.cards.indexOf(m);
|
|
2010
|
-
f !== I && ((_ = (
|
|
2006
|
+
f !== I && ((_ = (N = n.value) == null ? void 0 : N.cards) == null || _.splice(f, 1), (w = (E = n.value) == null ? void 0 : E.cards) == null || w.splice(I, 0, m));
|
|
2011
2007
|
}
|
|
2012
2008
|
};
|
|
2013
2009
|
}
|
|
2014
2010
|
}), jo = { class: "d-flex gc-2 px-2 pt-2 pb-2" }, Lo = { class: "d-flex gc-2 justify-end w-100" };
|
|
2015
2011
|
function zo(e, o, i, d, n, r) {
|
|
2016
|
-
const s = a("VcsLabel"), u = a("v-col"), S = a("VcsTextField"), c = a("v-row"), y = a("VcsCheckbox"), M = a("v-container"), $ = a("VcsFormSection"), B = a("VcsTextArea"), b = a("v-form"), v = a("VcsList"),
|
|
2012
|
+
const s = a("VcsLabel"), u = a("v-col"), S = a("VcsTextField"), c = a("v-row"), y = a("VcsCheckbox"), M = a("v-container"), $ = a("VcsFormSection"), B = a("VcsTextArea"), b = a("v-form"), v = a("VcsList"), T = a("VcsFormButton"), p = a("v-sheet"), P = a("v-dialog"), k = a("ModuleEditor"), Q = a("VcsModuleTable"), X = a("WindowPositionSettings"), Y = a("AbstractConfigEditor");
|
|
2017
2013
|
return e.localConfig ? (C(), U(Y, se({
|
|
2018
2014
|
key: 0,
|
|
2019
2015
|
onSubmit: e.apply
|
|
@@ -2425,7 +2421,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2425
2421
|
}, 8, ["header-actions"]),
|
|
2426
2422
|
L("div", jo, [
|
|
2427
2423
|
L("div", Lo, [
|
|
2428
|
-
l(
|
|
2424
|
+
l(T, {
|
|
2429
2425
|
variant: "filled",
|
|
2430
2426
|
disabled: !e.isFormValid,
|
|
2431
2427
|
onClick: o[11] || (o[11] = (V) => e.returnLevel())
|
|
@@ -2440,7 +2436,7 @@ function zo(e, o, i, d, n, r) {
|
|
|
2440
2436
|
_: 1
|
|
2441
2437
|
/* STABLE */
|
|
2442
2438
|
}, 8, ["disabled"]),
|
|
2443
|
-
l(
|
|
2439
|
+
l(T, {
|
|
2444
2440
|
onClick: o[12] || (o[12] = (V) => e.cancelCurrentGroup())
|
|
2445
2441
|
}, {
|
|
2446
2442
|
default: t(() => [
|
|
@@ -2567,7 +2563,9 @@ function Xo(e) {
|
|
|
2567
2563
|
state: {
|
|
2568
2564
|
headerIcon: "mdi-view-grid",
|
|
2569
2565
|
headerTitle: this.config.windowTitle,
|
|
2570
|
-
infoUrlCallback: o.getHelpUrlCallback(
|
|
2566
|
+
infoUrlCallback: o.getHelpUrlCallback(
|
|
2567
|
+
"/components/genericFunctions.html#id_moduleSelector"
|
|
2568
|
+
)
|
|
2571
2569
|
},
|
|
2572
2570
|
props: {
|
|
2573
2571
|
modules: this.config.modules,
|
|
@@ -2592,7 +2590,7 @@ function Xo(e) {
|
|
|
2592
2590
|
}
|
|
2593
2591
|
const { action: r } = Je(
|
|
2594
2592
|
{
|
|
2595
|
-
name: "moduleSelector",
|
|
2593
|
+
name: "moduleSelector.title",
|
|
2596
2594
|
title: "moduleSelector.title",
|
|
2597
2595
|
icon: "mdi-view-grid"
|
|
2598
2596
|
},
|
|
@@ -2606,7 +2604,8 @@ function Xo(e) {
|
|
|
2606
2604
|
action: r
|
|
2607
2605
|
},
|
|
2608
2606
|
z,
|
|
2609
|
-
Ze.PROJECT
|
|
2607
|
+
Ze.PROJECT,
|
|
2608
|
+
{ desktop: !0, tablet: !0, mobile: !0 }
|
|
2610
2609
|
), (d && d.w || !d && this.config.isActiveOnStart) && o.windowManager.add(n, z), Promise.resolve();
|
|
2611
2610
|
},
|
|
2612
2611
|
getDefaultOptions: ue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcmap/module-selector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,23 +45,26 @@
|
|
|
45
45
|
],
|
|
46
46
|
"prettier": "@vcsuite/eslint-config/prettier.js",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@vcmap/core": "^6.
|
|
49
|
-
"@vcmap/ui": "^6.
|
|
48
|
+
"@vcmap/core": "^6.1.11",
|
|
49
|
+
"@vcmap/ui": "^6.1.14",
|
|
50
50
|
"vue": "~3.4.38",
|
|
51
|
-
"vuetify": "
|
|
51
|
+
"vuetify": "~3.7.14"
|
|
52
|
+
},
|
|
53
|
+
"overrides": {
|
|
54
|
+
"esbuild": "^0.25.0"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
|
-
"@vcmap/plugin-cli": "^4.
|
|
57
|
+
"@vcmap/plugin-cli": "^4.1.2",
|
|
55
58
|
"@vcsuite/eslint-config": "^3.0.8",
|
|
56
|
-
"@vitest/coverage-v8": "^2.1.
|
|
59
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
57
60
|
"jest-canvas-mock": "^2.5.2",
|
|
58
61
|
"jsdom": "^24.1.1",
|
|
59
62
|
"resize-observer-polyfill": "^1.5.1",
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"vitest": "^2.1.
|
|
62
|
-
"vue-tsc": "^2.
|
|
63
|
+
"typescript": "^5.9.2",
|
|
64
|
+
"vitest": "^2.1.9",
|
|
65
|
+
"vue-tsc": "^2.2.12"
|
|
63
66
|
},
|
|
64
|
-
"mapVersion": "^6.
|
|
67
|
+
"mapVersion": "^6.1",
|
|
65
68
|
"dependencies": {
|
|
66
69
|
"@vcsuite/logger": "^1.0.1",
|
|
67
70
|
"@vcsuite/parsers": "^2.0.0",
|
package/src/ModuleSelector.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<template #activator="{ props }">
|
|
13
13
|
<v-icon
|
|
14
14
|
v-if="basisModule.description"
|
|
15
|
-
class="top-
|
|
15
|
+
class="top-left-icon"
|
|
16
16
|
v-bind="props"
|
|
17
17
|
>{{ '$vcsInfo' }}
|
|
18
18
|
</v-icon>
|
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
<template #activator="{ props }">
|
|
49
49
|
<v-icon
|
|
50
50
|
v-if="module.description"
|
|
51
|
-
class="top-
|
|
51
|
+
class="top-left-icon"
|
|
52
|
+
:class="{
|
|
53
|
+
selected: plugin.selectedMainModuleIndex.value === index,
|
|
54
|
+
}"
|
|
52
55
|
v-bind="props"
|
|
53
56
|
>{{ '$vcsInfo' }}
|
|
54
57
|
</v-icon>
|
|
@@ -128,7 +131,7 @@
|
|
|
128
131
|
<template #activator="{ props }">
|
|
129
132
|
<v-icon
|
|
130
133
|
v-if="card.description"
|
|
131
|
-
class="top-
|
|
134
|
+
class="top-left-icon"
|
|
132
135
|
v-bind="props"
|
|
133
136
|
>{{ '$vcsInfo' }}
|
|
134
137
|
</v-icon>
|
|
@@ -299,7 +302,7 @@
|
|
|
299
302
|
color: rgb(var(--v-theme-on-primary));
|
|
300
303
|
}
|
|
301
304
|
|
|
302
|
-
.top-
|
|
305
|
+
.top-left-icon {
|
|
303
306
|
position: absolute;
|
|
304
307
|
top: 8px;
|
|
305
308
|
left: 8px;
|
|
@@ -307,6 +310,10 @@
|
|
|
307
310
|
cursor: pointer;
|
|
308
311
|
color: rgb(var(--v-theme-on-surface));
|
|
309
312
|
}
|
|
313
|
+
.top-left-icon.selected {
|
|
314
|
+
color: rgb(var(--v-theme-on-primary));
|
|
315
|
+
}
|
|
316
|
+
|
|
310
317
|
.groupCard {
|
|
311
318
|
width: 146px;
|
|
312
319
|
background-color: rgb(var(--v-theme-surface));
|
package/src/index.ts
CHANGED
|
@@ -94,7 +94,9 @@ export default function plugin(
|
|
|
94
94
|
state: {
|
|
95
95
|
headerIcon: 'mdi-view-grid',
|
|
96
96
|
headerTitle: this.config.windowTitle,
|
|
97
|
-
infoUrlCallback: app.getHelpUrlCallback(
|
|
97
|
+
infoUrlCallback: app.getHelpUrlCallback(
|
|
98
|
+
'/components/genericFunctions.html#id_moduleSelector',
|
|
99
|
+
),
|
|
98
100
|
},
|
|
99
101
|
props: {
|
|
100
102
|
modules: this.config.modules,
|
|
@@ -134,7 +136,7 @@ export default function plugin(
|
|
|
134
136
|
|
|
135
137
|
const { action } = createToggleAction(
|
|
136
138
|
{
|
|
137
|
-
name: 'moduleSelector',
|
|
139
|
+
name: 'moduleSelector.title',
|
|
138
140
|
title: 'moduleSelector.title',
|
|
139
141
|
icon: 'mdi-view-grid',
|
|
140
142
|
},
|
|
@@ -150,6 +152,7 @@ export default function plugin(
|
|
|
150
152
|
},
|
|
151
153
|
name,
|
|
152
154
|
ButtonLocation.PROJECT,
|
|
155
|
+
{ desktop: true, tablet: true, mobile: true },
|
|
153
156
|
);
|
|
154
157
|
|
|
155
158
|
if ((state && state.w) || (!state && this.config.isActiveOnStart)) {
|