@visma-swno/vsn-navigation 1.2.0-beta.15 → 1.2.0-beta.17
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/dist/assets/vsn-navigation.js +346 -287
- package/dist/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -196,34 +196,34 @@ var de = class e extends Error {
|
|
|
196
196
|
constructor(t) {
|
|
197
197
|
super(t), this.name = "SearchError", Object.setPrototypeOf(this, e.prototype);
|
|
198
198
|
}
|
|
199
|
-
}, fe = ie("activeId"),
|
|
199
|
+
}, fe = ie("activeId"), pe = "lit-localize-status", v = (e, ...t) => ({
|
|
200
200
|
strTag: !0,
|
|
201
201
|
strings: e,
|
|
202
202
|
values: t
|
|
203
|
-
}),
|
|
203
|
+
}), me = (e) => typeof e != "string" && "strTag" in e, he = (e, t, n) => {
|
|
204
204
|
let r = e[0];
|
|
205
205
|
for (let i = 1; i < e.length; i++) r += t[n ? n[i - 1] : i - 1], r += e[i];
|
|
206
206
|
return r;
|
|
207
|
-
},
|
|
208
|
-
function
|
|
209
|
-
if (
|
|
210
|
-
|
|
207
|
+
}, ge = ((e) => me(e) ? he(e.strings, e.values) : e), y = ge, _e = !1;
|
|
208
|
+
function ve(e) {
|
|
209
|
+
if (_e) throw Error("lit-localize can only be configured once");
|
|
210
|
+
y = e, _e = !0;
|
|
211
211
|
}
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region node_modules/@lit/localize/internal/localized-controller.js
|
|
214
|
-
var
|
|
214
|
+
var ye = class {
|
|
215
215
|
constructor(e) {
|
|
216
216
|
this.__litLocalizeEventHandler = (e) => {
|
|
217
217
|
e.detail.status === "ready" && this.host.requestUpdate();
|
|
218
218
|
}, this.host = e;
|
|
219
219
|
}
|
|
220
220
|
hostConnected() {
|
|
221
|
-
window.addEventListener(
|
|
221
|
+
window.addEventListener(pe, this.__litLocalizeEventHandler);
|
|
222
222
|
}
|
|
223
223
|
hostDisconnected() {
|
|
224
|
-
window.removeEventListener(
|
|
224
|
+
window.removeEventListener(pe, this.__litLocalizeEventHandler);
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, be = (e) => e.addController(new ye(e)), b = () => (e, t) => (e.addInitializer(be), e), xe = class {
|
|
227
227
|
constructor() {
|
|
228
228
|
this.settled = !1, this.promise = new Promise((e, t) => {
|
|
229
229
|
this._resolve = e, this._reject = t;
|
|
@@ -235,80 +235,80 @@ var ve = class {
|
|
|
235
235
|
reject(e) {
|
|
236
236
|
this.settled = !0, this._reject(e);
|
|
237
237
|
}
|
|
238
|
-
},
|
|
239
|
-
for (let e = 0; e < 256; e++)
|
|
240
|
-
function
|
|
238
|
+
}, x = [];
|
|
239
|
+
for (let e = 0; e < 256; e++) x[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
240
|
+
function Se(e) {
|
|
241
241
|
let t = 0, n = 8997, r = 0, i = 33826, a = 0, o = 40164, s = 0, c = 52210;
|
|
242
242
|
for (let l = 0; l < e.length; l++) n ^= e.charCodeAt(l), t = n * 435, r = i * 435, a = o * 435, s = c * 435, a += n << 8, s += i << 8, r += t >>> 16, n = t & 65535, a += r >>> 16, i = r & 65535, c = s + (a >>> 16) & 65535, o = a & 65535;
|
|
243
|
-
return
|
|
243
|
+
return x[c >> 8] + x[c & 255] + x[o >> 8] + x[o & 255] + x[i >> 8] + x[i & 255] + x[n >> 8] + x[n & 255];
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return (t ?
|
|
245
|
+
var Ce = "h", we = "s";
|
|
246
|
+
function Te(e, t) {
|
|
247
|
+
return (t ? Ce : we) + Se(typeof e == "string" ? e : e.join(""));
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region node_modules/@lit/localize/internal/runtime-msg.js
|
|
251
|
-
var
|
|
252
|
-
function
|
|
251
|
+
var Ee = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new Map();
|
|
252
|
+
function Oe(e, t, n) {
|
|
253
253
|
if (e) {
|
|
254
|
-
let r = e[n?.id ??
|
|
254
|
+
let r = e[n?.id ?? ke(t)];
|
|
255
255
|
if (r) {
|
|
256
256
|
if (typeof r == "string") return r;
|
|
257
|
-
if ("strTag" in r) return
|
|
257
|
+
if ("strTag" in r) return he(r.strings, t.values, r.values);
|
|
258
258
|
{
|
|
259
|
-
let e =
|
|
260
|
-
return e === void 0 && (e = r.values,
|
|
259
|
+
let e = Ee.get(r);
|
|
260
|
+
return e === void 0 && (e = r.values, Ee.set(r, e)), {
|
|
261
261
|
...r,
|
|
262
262
|
values: e.map((e) => t.values[e])
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return ge(t);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let t = typeof e == "string" ? e : e.strings, n =
|
|
271
|
-
return n === void 0 && (n =
|
|
269
|
+
function ke(e) {
|
|
270
|
+
let t = typeof e == "string" ? e : e.strings, n = De.get(t);
|
|
271
|
+
return n === void 0 && (n = Te(t, typeof e != "string" && !("strTag" in e)), De.set(t, n)), n;
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region node_modules/@lit/localize/init/runtime.js
|
|
275
|
-
function
|
|
276
|
-
window.dispatchEvent(new CustomEvent(
|
|
275
|
+
function S(e) {
|
|
276
|
+
window.dispatchEvent(new CustomEvent(pe, { detail: e }));
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
|
|
280
|
-
var
|
|
281
|
-
getLocale:
|
|
282
|
-
setLocale:
|
|
283
|
-
}),
|
|
284
|
-
if (e === (
|
|
285
|
-
if (!
|
|
286
|
-
if (!
|
|
287
|
-
|
|
288
|
-
let t =
|
|
289
|
-
return
|
|
278
|
+
var C = "", w, Ae, T, E, je, D = new xe();
|
|
279
|
+
D.resolve();
|
|
280
|
+
var O = 0, Me = (e) => (ve(((e, t) => Oe(je, e, t))), C = Ae = e.sourceLocale, T = new Set(e.targetLocales), T.add(e.sourceLocale), E = e.loadLocale, {
|
|
281
|
+
getLocale: Ne,
|
|
282
|
+
setLocale: Pe
|
|
283
|
+
}), Ne = () => C, Pe = (e) => {
|
|
284
|
+
if (e === (w ?? C)) return D.promise;
|
|
285
|
+
if (!T || !E) throw Error("Internal error");
|
|
286
|
+
if (!T.has(e)) throw Error("Invalid locale code");
|
|
287
|
+
O++;
|
|
288
|
+
let t = O;
|
|
289
|
+
return w = e, D.settled && (D = new xe()), S({
|
|
290
290
|
status: "loading",
|
|
291
291
|
loadingLocale: e
|
|
292
|
-
}), (e ===
|
|
293
|
-
|
|
292
|
+
}), (e === Ae ? Promise.resolve({ templates: void 0 }) : E(e)).then((n) => {
|
|
293
|
+
O === t && (C = e, w = void 0, je = n.templates, S({
|
|
294
294
|
status: "ready",
|
|
295
295
|
readyLocale: e
|
|
296
|
-
}),
|
|
296
|
+
}), D.resolve());
|
|
297
297
|
}, (n) => {
|
|
298
|
-
|
|
298
|
+
O === t && (S({
|
|
299
299
|
status: "error",
|
|
300
300
|
errorLocale: e,
|
|
301
301
|
errorMessage: n.toString()
|
|
302
|
-
}),
|
|
303
|
-
}),
|
|
304
|
-
},
|
|
302
|
+
}), D.reject(n));
|
|
303
|
+
}), D.promise;
|
|
304
|
+
}, Fe = () => {
|
|
305
305
|
if (typeof navigator > "u") return !1;
|
|
306
306
|
let e = navigator.userAgentData?.platform ?? navigator.platform ?? "";
|
|
307
307
|
return /mac/i.test(e);
|
|
308
|
-
},
|
|
308
|
+
}, Ie = (e) => !e.shiftKey && !e.altKey && (Fe() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey), k = (e) => e.shiftKey || e.altKey || e.ctrlKey || e.metaKey, A = (e) => !k(e), Le = () => y("Choose a service"), Re = () => y("Search"), ze = () => Fe() ? "Cmd+K" : "CTRL+K", Be = (e) => y(v`Type at least ${e} characters to search`), Ve = () => y("Menu items"), He = () => y("Load more"), Ue = () => y("VSN"), We = "survicate-sdk", Ge = "ui-components-feedback", Ke = (e) => `https://survey.survicate.com/workspaces/${e}/web_surveys.js`;
|
|
309
309
|
//#endregion
|
|
310
310
|
//#region src/shared/icons.ts
|
|
311
|
-
function
|
|
311
|
+
function j(e, t = 24, r) {
|
|
312
312
|
return n`<svg
|
|
313
313
|
xmlns="http://www.w3.org/2000/svg"
|
|
314
314
|
width="${t}"
|
|
@@ -323,23 +323,23 @@ function M(e, t = 24, r) {
|
|
|
323
323
|
class=${r ?? ""}
|
|
324
324
|
>${e}</svg>`;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var qe = i``, Je = i`
|
|
327
327
|
<path d="M4 5h16"/>
|
|
328
328
|
<path d="M4 12h16"/>
|
|
329
329
|
<path d="M4 19h16"/>
|
|
330
|
-
`,
|
|
330
|
+
`, Ye = i`
|
|
331
331
|
<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/>
|
|
332
332
|
<path d="M20 2v4"/>
|
|
333
333
|
<path d="M22 4h-4"/>
|
|
334
334
|
<circle cx="4" cy="20" r="2"/>
|
|
335
|
-
`,
|
|
335
|
+
`, Xe = i`
|
|
336
336
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
337
337
|
<path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>
|
|
338
|
-
`,
|
|
338
|
+
`, Ze = i`
|
|
339
339
|
<path d="M10.268 21a2 2 0 0 0 3.464 0"/>
|
|
340
340
|
<path d="M11.68 2.009A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673c-.824-.85-1.678-1.731-2.21-3.348"/>
|
|
341
341
|
<circle cx="18" cy="5" r="3"/>
|
|
342
|
-
`,
|
|
342
|
+
`, Qe = i`
|
|
343
343
|
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>
|
|
344
344
|
<path d="M7 10v12"/>
|
|
345
345
|
`;
|
|
@@ -350,14 +350,14 @@ i`
|
|
|
350
350
|
<path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"/>
|
|
351
351
|
<path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"/>
|
|
352
352
|
`;
|
|
353
|
-
var
|
|
353
|
+
var $e = i`
|
|
354
354
|
<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/>
|
|
355
355
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
|
|
356
|
-
`,
|
|
356
|
+
`, et = i`
|
|
357
357
|
<circle cx="12" cy="12" r="10"/>
|
|
358
358
|
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
359
359
|
<path d="M12 17h.01"/>
|
|
360
|
-
`,
|
|
360
|
+
`, tt = i`
|
|
361
361
|
<circle cx="12" cy="8" r="5"/>
|
|
362
362
|
<path d="M20 21a8 8 0 0 0-16 0"/>
|
|
363
363
|
`;
|
|
@@ -368,11 +368,11 @@ i`
|
|
|
368
368
|
<path d="M12 17v5"/>
|
|
369
369
|
<path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>
|
|
370
370
|
`;
|
|
371
|
-
var
|
|
371
|
+
var nt = i`
|
|
372
372
|
<path d="m16 17 5-5-5-5"/>
|
|
373
373
|
<path d="M21 12H9"/>
|
|
374
374
|
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
|
375
|
-
`,
|
|
375
|
+
`, rt = i`
|
|
376
376
|
<path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/>
|
|
377
377
|
<path d="m21 3-9 9"/>
|
|
378
378
|
<path d="M15 3h6v6"/>
|
|
@@ -381,17 +381,17 @@ i`
|
|
|
381
381
|
<circle cx="12" cy="12" r="10"/>
|
|
382
382
|
<circle cx="12" cy="12" r="1"/>
|
|
383
383
|
`;
|
|
384
|
-
var
|
|
384
|
+
var it = i`
|
|
385
385
|
<path d="m7 15 5 5 5-5"/>
|
|
386
386
|
<path d="m7 9 5-5 5 5"/>
|
|
387
|
-
`,
|
|
387
|
+
`, at = i`
|
|
388
388
|
<path d="m18 15-6-6-6 6"/>
|
|
389
|
-
`,
|
|
389
|
+
`, M = i`
|
|
390
390
|
<path d="m6 9 6 6 6-6"/>
|
|
391
|
-
`,
|
|
391
|
+
`, ot = i`
|
|
392
392
|
<circle cx="11" cy="11" r="8"/>
|
|
393
393
|
<path d="m21 21-4.3-4.3"/>
|
|
394
|
-
`,
|
|
394
|
+
`, st = i`
|
|
395
395
|
<circle cx="12" cy="12" r="10"/>
|
|
396
396
|
<path d="m15 9-6 6"/>
|
|
397
397
|
<path d="m9 9 6 6"/>
|
|
@@ -401,7 +401,7 @@ i`
|
|
|
401
401
|
<line x1="12" x2="12" y1="8" y2="12"/>
|
|
402
402
|
<line x1="12" x2="12.01" y1="16" y2="16"/>
|
|
403
403
|
`;
|
|
404
|
-
var
|
|
404
|
+
var ct = i`
|
|
405
405
|
<path d="M12 16h.01"/>
|
|
406
406
|
<path d="M12 8v4"/>
|
|
407
407
|
<path d="M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"/>
|
|
@@ -412,12 +412,12 @@ i`
|
|
|
412
412
|
`, i`
|
|
413
413
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.60982 1.03843C2.99778 0.96126 3.39992 1.00087 3.76537 1.15224C4.13082 1.30362 4.44318 1.55996 4.66294 1.88886C4.8827 2.21776 5 2.60444 5 3V4H7V3C7 2.60444 7.1173 2.21776 7.33706 1.88886C7.55682 1.55996 7.86918 1.30362 8.23463 1.15224C8.60009 1.00087 9.00222 0.96126 9.39018 1.03843C9.77814 1.1156 10.1345 1.30608 10.4142 1.58579C10.6939 1.86549 10.8844 2.22186 10.9616 2.60982C11.0387 2.99778 10.9991 3.39992 10.8478 3.76537C10.6964 4.13082 10.44 4.44318 10.1111 4.66294C9.78224 4.8827 9.39556 5 9 5H8V7H9C9.39556 7 9.78224 7.1173 10.1111 7.33706C10.44 7.55682 10.6964 7.86918 10.8478 8.23463C10.9991 8.60009 11.0387 9.00222 10.9616 9.39018C10.8844 9.77814 10.6939 10.1345 10.4142 10.4142C10.1345 10.6939 9.77814 10.8844 9.39018 10.9616C9.00222 11.0387 8.60009 10.9991 8.23463 10.8478C7.86918 10.6964 7.55682 10.44 7.33706 10.1111C7.1173 9.78224 7 9.39556 7 9V8H5V9C5 9.39556 4.8827 9.78224 4.66294 10.1111C4.44318 10.44 4.13082 10.6964 3.76537 10.8478C3.39992 10.9991 2.99778 11.0387 2.60982 10.9616C2.22186 10.8844 1.86549 10.6939 1.58579 10.4142C1.30608 10.1345 1.1156 9.77814 1.03843 9.39018C0.96126 9.00222 1.00087 8.60009 1.15224 8.23463C1.30362 7.86918 1.55996 7.55682 1.88886 7.33706C2.21776 7.1173 2.60444 7 3 7H4V5H3C2.60444 5 2.21776 4.8827 1.88886 4.66294C1.55996 4.44318 1.30362 4.13082 1.15224 3.76537C1.00087 3.39992 0.96126 2.99778 1.03843 2.60982C1.1156 2.22186 1.30608 1.86549 1.58579 1.58579C1.86549 1.30608 2.22186 1.1156 2.60982 1.03843ZM4 4V3C4 2.80222 3.94135 2.60888 3.83147 2.44443C3.72159 2.27998 3.56541 2.15181 3.38268 2.07612C3.19996 2.00043 2.99889 1.98063 2.80491 2.01922C2.61093 2.0578 2.43275 2.15304 2.29289 2.29289C2.15304 2.43275 2.0578 2.61093 2.01922 2.80491C1.98063 2.99889 2.00043 3.19996 2.07612 3.38268C2.15181 3.56541 2.27998 3.72159 2.44443 3.83147C2.60888 3.94135 2.80222 4 3 4H4ZM5 5V7H7V5H5ZM4 8H3C2.80222 8 2.60888 8.05865 2.44443 8.16853C2.27998 8.27841 2.15181 8.43459 2.07612 8.61732C2.00043 8.80004 1.98063 9.00111 2.01922 9.19509C2.0578 9.38907 2.15304 9.56726 2.29289 9.70711C2.43275 9.84696 2.61093 9.9422 2.80491 9.98079C2.99889 10.0194 3.19996 9.99957 3.38268 9.92388C3.56541 9.84819 3.72159 9.72002 3.83147 9.55557C3.94135 9.39112 4 9.19778 4 9V8ZM8 8V9C8 9.19778 8.05865 9.39112 8.16853 9.55557C8.27841 9.72002 8.43459 9.84819 8.61732 9.92388C8.80004 9.99957 9.00111 10.0194 9.19509 9.98079C9.38907 9.9422 9.56726 9.84696 9.70711 9.70711C9.84696 9.56726 9.9422 9.38907 9.98079 9.19509C10.0194 9.00111 9.99957 8.80004 9.92388 8.61732C9.84819 8.43459 9.72002 8.27841 9.55557 8.16853C9.39112 8.05865 9.19778 8 9 8H8ZM8 4H9C9.19778 4 9.39112 3.94135 9.55557 3.83147C9.72002 3.72159 9.84819 3.56541 9.92388 3.38268C9.99957 3.19996 10.0194 2.99889 9.98079 2.80491C9.9422 2.61093 9.84696 2.43275 9.70711 2.29289C9.56726 2.15304 9.38907 2.0578 9.19509 2.01922C9.00111 1.98063 8.80004 2.00043 8.61732 2.07612C8.43459 2.15181 8.27841 2.27998 8.16853 2.44443C8.05865 2.60888 8 2.80222 8 3V4Z"/>
|
|
414
414
|
`;
|
|
415
|
-
var
|
|
415
|
+
var lt = i`
|
|
416
416
|
<path d="m9 18 6-6-6-6"/>
|
|
417
417
|
`;
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
|
|
420
|
-
function
|
|
420
|
+
function N(e, t, n, r) {
|
|
421
421
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
422
422
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
423
423
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
@@ -425,9 +425,9 @@ function P(e, t, n, r) {
|
|
|
425
425
|
}
|
|
426
426
|
//#endregion
|
|
427
427
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-item.ts
|
|
428
|
-
var
|
|
428
|
+
var P, F = class extends e {
|
|
429
429
|
static {
|
|
430
|
-
|
|
430
|
+
P = this;
|
|
431
431
|
}
|
|
432
432
|
static {
|
|
433
433
|
this._idCounter = 0;
|
|
@@ -449,7 +449,7 @@ var F, I = class extends e {
|
|
|
449
449
|
}
|
|
450
450
|
}, this._onItemMouseLeave = () => {
|
|
451
451
|
this._showTooltip = !1;
|
|
452
|
-
}, this._tooltipId = `vsn-side-menu-item-tooltip-${
|
|
452
|
+
}, this._tooltipId = `vsn-side-menu-item-tooltip-${P._idCounter++}`;
|
|
453
453
|
}
|
|
454
454
|
willUpdate(e) {
|
|
455
455
|
let t = this.tree;
|
|
@@ -474,7 +474,7 @@ var F, I = class extends e {
|
|
|
474
474
|
<div class="ga-tooltip ga-tooltip--right-center w-34 max-w-135">${this.tree?.label}</div>
|
|
475
475
|
</div>
|
|
476
476
|
<span class="ga-side-navigation__item-icon">
|
|
477
|
-
${e ? this._isExpanded ? M
|
|
477
|
+
${e ? this._isExpanded ? j(M, 16) : j(lt, 16) : ""}
|
|
478
478
|
</span>
|
|
479
479
|
<div class="ga-side-navigation__item-content">
|
|
480
480
|
<div class="ga-side-navigation__item-label">${this.tree?.label}</div>
|
|
@@ -508,7 +508,7 @@ var F, I = class extends e {
|
|
|
508
508
|
this._isExpanded = !this._isExpanded, e.preventDefault(), e.stopPropagation();
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
|
-
if (e.button !== 0 ||
|
|
511
|
+
if (e.button !== 0 || k(e)) return;
|
|
512
512
|
e.preventDefault(), e.stopPropagation();
|
|
513
513
|
let n = new CustomEvent("vsn-menu-item-changed", {
|
|
514
514
|
bubbles: !0,
|
|
@@ -518,13 +518,13 @@ var F, I = class extends e {
|
|
|
518
518
|
this.dispatchEvent(n);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
|
-
|
|
521
|
+
N([s({ attribute: !1 })], F.prototype, "tree", void 0), N([s({ type: Number })], F.prototype, "level", void 0), N([ue({
|
|
522
522
|
context: fe,
|
|
523
523
|
subscribe: !0
|
|
524
|
-
}), l()],
|
|
524
|
+
}), l()], F.prototype, "_currentActiveId", void 0), N([l()], F.prototype, "_isActive", void 0), N([l()], F.prototype, "_isExpanded", void 0), N([l()], F.prototype, "_showTooltip", void 0), N([l()], F.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], F.prototype, "_labelEl", void 0), F = P = N([o("vsn-menu-item")], F);
|
|
525
525
|
//#endregion
|
|
526
526
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu.ts
|
|
527
|
-
var
|
|
527
|
+
var I = class extends e {
|
|
528
528
|
constructor(...e) {
|
|
529
529
|
super(...e), this.items = [], this._currentActiveId = "", this.currentItem = "";
|
|
530
530
|
}
|
|
@@ -551,15 +551,15 @@ var L = class extends e {
|
|
|
551
551
|
<vsn-menu-item .tree=${e}></vsn-menu-item>`;
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
|
-
|
|
554
|
+
N([s({ attribute: !1 })], I.prototype, "items", void 0), N([le({ context: fe }), l()], I.prototype, "_currentActiveId", void 0), N([s()], I.prototype, "currentItem", void 0), I = N([o("vsn-menu")], I);
|
|
555
555
|
//#endregion
|
|
556
556
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-button.ts
|
|
557
|
-
var
|
|
557
|
+
var L = class extends e {
|
|
558
558
|
constructor(...e) {
|
|
559
559
|
super(...e), this.label = "", this.closeOnClick = !1, this._onKeydown = (e) => {
|
|
560
|
-
e.defaultPrevented ||
|
|
560
|
+
e.defaultPrevented || A(e) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.click());
|
|
561
561
|
}, this._onClick = (e) => {
|
|
562
|
-
e.defaultPrevented || e.button !== 0 ||
|
|
562
|
+
e.defaultPrevented || e.button !== 0 || k(e) || this.closeOnClick && this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
563
563
|
bubbles: !0,
|
|
564
564
|
composed: !0
|
|
565
565
|
}));
|
|
@@ -667,13 +667,13 @@ var R = class extends e {
|
|
|
667
667
|
`;
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
|
-
|
|
670
|
+
N([s()], L.prototype, "label", void 0), N([s({
|
|
671
671
|
type: Boolean,
|
|
672
672
|
attribute: "close-on-click"
|
|
673
|
-
})],
|
|
673
|
+
})], L.prototype, "closeOnClick", void 0), L = N([o("vsn-menu-button")], L);
|
|
674
674
|
//#endregion
|
|
675
675
|
//#region src/components/vsn-side-bar/vsn-menu/vsn-menu-separator.ts
|
|
676
|
-
var
|
|
676
|
+
var ut = class extends e {
|
|
677
677
|
static {
|
|
678
678
|
this.styles = [t`
|
|
679
679
|
/* flow-root establishes a BFC so the .line's margins stay contained.
|
|
@@ -697,15 +697,15 @@ var lt = class extends e {
|
|
|
697
697
|
return n`<div class="line"></div>`;
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
|
|
700
|
+
ut = N([o("vsn-menu-separator")], ut);
|
|
701
701
|
//#endregion
|
|
702
702
|
//#region src/components/vsn-side-bar/vsn-footer/vsn-footer.keyboard.ts
|
|
703
|
-
var
|
|
703
|
+
var dt = class {
|
|
704
704
|
constructor(e) {
|
|
705
705
|
this._prevExpanded = !1, this.onUserKeydown = (e) => {
|
|
706
|
-
e.defaultPrevented ||
|
|
706
|
+
e.defaultPrevented || k(e) || (e.key === "Enter" || e.key === " " || e.key === "Escape" && this.host.expanded) && (e.preventDefault(), this.host.expanded = !this.host.expanded);
|
|
707
707
|
}, this.onDropdownKeydown = (e) => {
|
|
708
|
-
if (e.defaultPrevented ||
|
|
708
|
+
if (e.defaultPrevented || k(e)) return;
|
|
709
709
|
if (e.key === "Enter" || e.key === " ") {
|
|
710
710
|
let t = e.target;
|
|
711
711
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__footer-dropdown-item") && (e.preventDefault(), t.click());
|
|
@@ -730,7 +730,7 @@ var ut = class {
|
|
|
730
730
|
} else !this.host.expanded && this._prevExpanded && this.host.querySelector(".ga-side-navigation__user")?.focus();
|
|
731
731
|
this._prevExpanded = this.host.expanded;
|
|
732
732
|
}
|
|
733
|
-
},
|
|
733
|
+
}, ft = class {
|
|
734
734
|
constructor(e, t, n) {
|
|
735
735
|
this._onPointerDown = (e) => {
|
|
736
736
|
let t = e.composedPath();
|
|
@@ -747,18 +747,18 @@ var ut = class {
|
|
|
747
747
|
hostDisconnected() {
|
|
748
748
|
document.removeEventListener("pointerdown", this._onPointerDown, !0);
|
|
749
749
|
}
|
|
750
|
-
},
|
|
751
|
-
function
|
|
750
|
+
}, pt = "initials";
|
|
751
|
+
function mt(e, t, n, r) {
|
|
752
752
|
if (!t) return;
|
|
753
753
|
let i = new URLSearchParams({
|
|
754
|
-
type:
|
|
754
|
+
type: pt,
|
|
755
755
|
size: r
|
|
756
756
|
});
|
|
757
757
|
return n && i.set("client_id", n), `${e}${t}?${i}`;
|
|
758
758
|
}
|
|
759
759
|
//#endregion
|
|
760
760
|
//#region src/components/controllers/focus-trapping-controller.ts
|
|
761
|
-
var
|
|
761
|
+
var R = class {
|
|
762
762
|
constructor(e, t, n = void 0) {
|
|
763
763
|
this._rootElement = null, this._onKeyDown = (e) => {
|
|
764
764
|
if (e.defaultPrevented || e.key !== "Tab" || e.ctrlKey || e.altKey || e.metaKey || !this._appliesCallback() || this._rootElement == null) return;
|
|
@@ -778,11 +778,11 @@ var mt = class {
|
|
|
778
778
|
this._rootElement == null && this._rootSelector && (this._rootElement = this._host.renderRoot.querySelector(this._rootSelector), this._rootElement != null && this._rootElement.addEventListener("keydown", this._onKeyDown));
|
|
779
779
|
}
|
|
780
780
|
}, ht = {
|
|
781
|
-
profile:
|
|
782
|
-
logout:
|
|
781
|
+
profile: tt,
|
|
782
|
+
logout: nt
|
|
783
783
|
}, gt = () => ({
|
|
784
|
-
profile:
|
|
785
|
-
logout:
|
|
784
|
+
profile: y("My profile"),
|
|
785
|
+
logout: y("Log out")
|
|
786
786
|
}), z = class extends e {
|
|
787
787
|
createRenderRoot() {
|
|
788
788
|
return this;
|
|
@@ -799,9 +799,9 @@ var mt = class {
|
|
|
799
799
|
}];
|
|
800
800
|
}
|
|
801
801
|
constructor() {
|
|
802
|
-
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new
|
|
802
|
+
super(), this.expanded = !1, this._avatarFailed = !1, this._keyboard = new dt(this), new ft(this, [".ga-side-navigation__footer-dropdown", ".ga-side-navigation__user"], () => {
|
|
803
803
|
this.expanded = !1;
|
|
804
|
-
}), new
|
|
804
|
+
}), new R(this, () => this.expanded);
|
|
805
805
|
}
|
|
806
806
|
willUpdate(e) {
|
|
807
807
|
(e.has("user") || e.has("profilePictureBaseUrl")) && (this._avatarFailed = !1);
|
|
@@ -836,7 +836,7 @@ var mt = class {
|
|
|
836
836
|
</div>
|
|
837
837
|
|
|
838
838
|
<span class="ga-side-navigation__user-action">
|
|
839
|
-
${this.expanded ?
|
|
839
|
+
${this.expanded ? j(at, 16) : j(it, 16)}
|
|
840
840
|
</span>
|
|
841
841
|
|
|
842
842
|
</div>
|
|
@@ -850,14 +850,14 @@ var mt = class {
|
|
|
850
850
|
${this._items.map((e) => {
|
|
851
851
|
let t = n`
|
|
852
852
|
<span class="ga-side-navigation__footer-dropdown-icon">
|
|
853
|
-
${
|
|
853
|
+
${j(ht[e.id], 16)}
|
|
854
854
|
</span>
|
|
855
855
|
<span class="ga-side-navigation__footer-dropdown-title">
|
|
856
856
|
${e.label}
|
|
857
857
|
</span>
|
|
858
858
|
${e.external ? n`
|
|
859
859
|
<span class="ga-side-navigation__footer-dropdown-trail">
|
|
860
|
-
${
|
|
860
|
+
${j(rt, 16)}
|
|
861
861
|
</span>
|
|
862
862
|
` : r}
|
|
863
863
|
`;
|
|
@@ -898,7 +898,7 @@ var mt = class {
|
|
|
898
898
|
}));
|
|
899
899
|
}
|
|
900
900
|
renderAvatar() {
|
|
901
|
-
let e =
|
|
901
|
+
let e = mt(this.profilePictureBaseUrl, this.user.userId, this.user.clientId, "small");
|
|
902
902
|
return e && !this._avatarFailed ? n`<img
|
|
903
903
|
class="ga-side-navigation__user-avatar"
|
|
904
904
|
src=${e}
|
|
@@ -906,20 +906,20 @@ var mt = class {
|
|
|
906
906
|
@error=${() => {
|
|
907
907
|
this._avatarFailed = !0;
|
|
908
908
|
}}/>` : n`<span class="ga-side-navigation__user-avatar vsn-side-navigation__user-avatar--icon">
|
|
909
|
-
${
|
|
909
|
+
${j(tt, 24)}
|
|
910
910
|
</span>`;
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
|
-
|
|
913
|
+
N([s({ attribute: !1 })], z.prototype, "user", void 0), N([s()], z.prototype, "profilePictureBaseUrl", void 0), N([s()], z.prototype, "myProfileUrl", void 0), N([s({
|
|
914
914
|
type: Boolean,
|
|
915
915
|
reflect: !0
|
|
916
|
-
})], z.prototype, "expanded", void 0),
|
|
916
|
+
})], z.prototype, "expanded", void 0), N([l()], z.prototype, "_avatarFailed", void 0), z = N([b(), o("vsn-footer")], z);
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.keyboard.ts
|
|
919
919
|
var _t = class {
|
|
920
920
|
constructor(e) {
|
|
921
921
|
this.onSwitcherKeydown = (e) => {
|
|
922
|
-
e.defaultPrevented ||
|
|
922
|
+
e.defaultPrevented || k(e) || (this.host.expanded && (e.key === "Enter" || e.key === " " || e.key === "Escape") ? this.host.requestClose() && e.preventDefault() : !this.host.expanded && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), (this.host.hasAvailableItems || this.host.modulesLoading) && (this.host.expanded = !this.host.expanded)));
|
|
923
923
|
}, this.host = e, e.addController(this);
|
|
924
924
|
}
|
|
925
925
|
hostConnected() {}
|
|
@@ -927,12 +927,12 @@ var _t = class {
|
|
|
927
927
|
constructor(...e) {
|
|
928
928
|
super(...e), this.items = [], this.loading = !1, this.maxHeight = 0, this._handleKeydown = (e) => {
|
|
929
929
|
if (e.defaultPrevented) return;
|
|
930
|
-
if (
|
|
930
|
+
if (A(e) && (e.key === "Enter" || e.key === " ")) {
|
|
931
931
|
let t = e.target;
|
|
932
932
|
t instanceof HTMLElement && t.classList.contains("ga-side-navigation__switcher-dropdown-item") && (e.preventDefault(), t.click());
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
if (
|
|
935
|
+
if (k(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
936
936
|
e.preventDefault();
|
|
937
937
|
let t = Array.from(this.querySelectorAll(".ga-side-navigation__switcher-dropdown-item"));
|
|
938
938
|
if (t.length === 0) return;
|
|
@@ -947,7 +947,7 @@ var _t = class {
|
|
|
947
947
|
this.loading || this.querySelector(".ga-side-navigation__switcher-dropdown-item")?.focus();
|
|
948
948
|
}
|
|
949
949
|
_handleItemClick(e, t) {
|
|
950
|
-
|
|
950
|
+
k(e) || (e.preventDefault(), this.dispatchEvent(new CustomEvent("item-select", {
|
|
951
951
|
detail: { id: t },
|
|
952
952
|
bubbles: !0,
|
|
953
953
|
composed: !0
|
|
@@ -958,16 +958,16 @@ var _t = class {
|
|
|
958
958
|
<div class="ga-side-navigation__switcher-dropdown vsn-switcher-dropdown--loading"
|
|
959
959
|
role="status"
|
|
960
960
|
aria-busy="true"
|
|
961
|
-
aria-label=${
|
|
961
|
+
aria-label=${y("Loading modules")}>
|
|
962
962
|
<span class="vsn-spinner"></span>
|
|
963
963
|
</div>
|
|
964
964
|
` : n`
|
|
965
965
|
<div class="ga-side-navigation__switcher-dropdown ga-scroll"
|
|
966
966
|
role="menu"
|
|
967
967
|
style=${`max-height: ${Math.max(0, this.maxHeight)}px`}
|
|
968
|
-
aria-label=${
|
|
968
|
+
aria-label=${Le()}
|
|
969
969
|
@keydown=${this._handleKeydown}>
|
|
970
|
-
<span class="ga-side-navigation__switcher-dropdown-header">${
|
|
970
|
+
<span class="ga-side-navigation__switcher-dropdown-header">${Le()}</span>
|
|
971
971
|
${this.items.map((e) => n`
|
|
972
972
|
<a class="ga-side-navigation__switcher-dropdown-item"
|
|
973
973
|
href=${e.url ?? ""}
|
|
@@ -980,7 +980,7 @@ var _t = class {
|
|
|
980
980
|
`;
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
|
-
|
|
983
|
+
N([s({ attribute: !1 })], B.prototype, "items", void 0), N([s({ type: Boolean })], B.prototype, "loading", void 0), N([s({ attribute: !1 })], B.prototype, "maxHeight", void 0), B = N([b(), o("vsn-switcher-menu")], B);
|
|
984
984
|
//#endregion
|
|
985
985
|
//#region src/components/vsn-side-bar/vsn-search/vsn-search.ts
|
|
986
986
|
var V = class extends e {
|
|
@@ -1001,7 +1001,7 @@ var V = class extends e {
|
|
|
1001
1001
|
composed: !0
|
|
1002
1002
|
}));
|
|
1003
1003
|
}, this._handleEscape = (e) => {
|
|
1004
|
-
e.defaultPrevented ||
|
|
1004
|
+
e.defaultPrevented || A(e) && e.key === "Escape" && this.value.length > 0 && (e.preventDefault(), this._emitSearchCleared());
|
|
1005
1005
|
};
|
|
1006
1006
|
}
|
|
1007
1007
|
createRenderRoot() {
|
|
@@ -1026,7 +1026,7 @@ var V = class extends e {
|
|
|
1026
1026
|
this._cancelDebounce(), super.disconnectedCallback();
|
|
1027
1027
|
}
|
|
1028
1028
|
_handleEnter(e) {
|
|
1029
|
-
e.defaultPrevented ||
|
|
1029
|
+
e.defaultPrevented || A(e) && e.key === "Enter" && this._emitSearch();
|
|
1030
1030
|
}
|
|
1031
1031
|
render() {
|
|
1032
1032
|
let e = this.value.length > 0 && this.value.length < 3;
|
|
@@ -1035,20 +1035,20 @@ var V = class extends e {
|
|
|
1035
1035
|
<button
|
|
1036
1036
|
type="button"
|
|
1037
1037
|
class="vsn-search__trigger"
|
|
1038
|
-
aria-label=${
|
|
1038
|
+
aria-label=${y("Search")}
|
|
1039
1039
|
?disabled=${!this._canSearch}
|
|
1040
1040
|
@click=${this._emitSearch}>
|
|
1041
|
-
${
|
|
1041
|
+
${j(ot, 24)}
|
|
1042
1042
|
</button>
|
|
1043
1043
|
<input type="search"
|
|
1044
|
-
.placeholder=${
|
|
1044
|
+
.placeholder=${Re()}
|
|
1045
1045
|
.value=${this.value}
|
|
1046
1046
|
@input=${this._handleInput}
|
|
1047
1047
|
@keydown=${this._handleEnter}/>
|
|
1048
1048
|
${this._trailingSlot()}
|
|
1049
1049
|
</div>
|
|
1050
1050
|
${u(e, () => n`
|
|
1051
|
-
<div class="vsn-search__helper">${
|
|
1051
|
+
<div class="vsn-search__helper">${Be(3)}</div>`)}
|
|
1052
1052
|
`;
|
|
1053
1053
|
}
|
|
1054
1054
|
_trailingSlot() {
|
|
@@ -1060,13 +1060,13 @@ var V = class extends e {
|
|
|
1060
1060
|
`;
|
|
1061
1061
|
}
|
|
1062
1062
|
_spinner() {
|
|
1063
|
-
return n`<span class="vsn-spinner" role="status" aria-label=${
|
|
1063
|
+
return n`<span class="vsn-spinner" role="status" aria-label=${y("Searching")}></span>`;
|
|
1064
1064
|
}
|
|
1065
1065
|
_clearButton() {
|
|
1066
1066
|
return n`
|
|
1067
|
-
<button class="vsn-search__clear" aria-label=${
|
|
1067
|
+
<button class="vsn-search__clear" aria-label=${y("Clear search")}
|
|
1068
1068
|
@click=${this._emitSearchCleared}>
|
|
1069
|
-
${
|
|
1069
|
+
${j(st, 16)}
|
|
1070
1070
|
</button>
|
|
1071
1071
|
`;
|
|
1072
1072
|
}
|
|
@@ -1074,7 +1074,7 @@ var V = class extends e {
|
|
|
1074
1074
|
return n`<kbd class="ga-side-navigation__search-shortcut">${this.shortcut}</kbd>`;
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
1077
|
-
|
|
1077
|
+
N([s()], V.prototype, "shortcut", void 0), N([s()], V.prototype, "value", void 0), N([s({ type: Boolean })], V.prototype, "loading", void 0), V = N([b(), o("vsn-search")], V);
|
|
1078
1078
|
//#endregion
|
|
1079
1079
|
//#region src/components/vsn-side-bar/vsn-header/vsn-header.ts
|
|
1080
1080
|
var H = class extends e {
|
|
@@ -1082,9 +1082,9 @@ var H = class extends e {
|
|
|
1082
1082
|
return this;
|
|
1083
1083
|
}
|
|
1084
1084
|
constructor() {
|
|
1085
|
-
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new _t(this), new
|
|
1085
|
+
super(), this.modules = [], this.modulesLoading = !1, this.hasMenu = !1, this.moduleSwitcherMaxHeight = 0, this.searchValue = "", this.searchLoading = !1, this.expanded = !1, this._keyboard = new _t(this), new ft(this, [".ga-side-navigation__switcher-dropdown", ".ga-side-navigation__switcher"], () => {
|
|
1086
1086
|
this.canClose && (this.expanded = !1);
|
|
1087
|
-
}), new
|
|
1087
|
+
}), new R(this, () => this.expanded, ".vsn-switcher-anchor");
|
|
1088
1088
|
}
|
|
1089
1089
|
focus() {
|
|
1090
1090
|
let e = this.querySelector("vsn-search");
|
|
@@ -1109,7 +1109,7 @@ var H = class extends e {
|
|
|
1109
1109
|
title="">
|
|
1110
1110
|
<span class="ga-side-navigation__switcher-title">${e.title}</span>
|
|
1111
1111
|
<span class="ga-side-navigation__switcher-action">
|
|
1112
|
-
${this.canClose ? this.expanded ? M
|
|
1112
|
+
${this.canClose ? this.expanded ? j(M, 16) : j(it, 16) : j(qe, 16)}
|
|
1113
1113
|
</span>
|
|
1114
1114
|
</div>
|
|
1115
1115
|
|
|
@@ -1124,7 +1124,7 @@ var H = class extends e {
|
|
|
1124
1124
|
|
|
1125
1125
|
${u(this.search?.enabled, () => n`
|
|
1126
1126
|
<vsn-search
|
|
1127
|
-
.shortcut=${
|
|
1127
|
+
.shortcut=${ze()}
|
|
1128
1128
|
.value=${this.searchValue}
|
|
1129
1129
|
.loading=${this.searchLoading}>
|
|
1130
1130
|
</vsn-search>`)}
|
|
@@ -1134,7 +1134,7 @@ var H = class extends e {
|
|
|
1134
1134
|
get _state() {
|
|
1135
1135
|
if (this.modulesLoading) return {
|
|
1136
1136
|
kind: "loading",
|
|
1137
|
-
title: this.activeModuleLabel ||
|
|
1137
|
+
title: this.activeModuleLabel || Ue()
|
|
1138
1138
|
};
|
|
1139
1139
|
let e = this.modules.find((e) => e.id === this.activeModuleId);
|
|
1140
1140
|
return e ? {
|
|
@@ -1143,7 +1143,7 @@ var H = class extends e {
|
|
|
1143
1143
|
available: this.modules.filter((t) => t.id !== e.id)
|
|
1144
1144
|
} : {
|
|
1145
1145
|
kind: "no-active",
|
|
1146
|
-
title:
|
|
1146
|
+
title: Ue(),
|
|
1147
1147
|
available: this.modules
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
@@ -1181,16 +1181,16 @@ var H = class extends e {
|
|
|
1181
1181
|
}), !0);
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
|
-
|
|
1184
|
+
N([s({ attribute: !1 })], H.prototype, "modules", void 0), N([s()], H.prototype, "activeModuleId", void 0), N([s()], H.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], H.prototype, "modulesLoading", void 0), N([s({ type: Boolean })], H.prototype, "hasMenu", void 0), N([s({ attribute: !1 })], H.prototype, "moduleSwitcherMaxHeight", void 0), N([s({ attribute: !1 })], H.prototype, "search", void 0), N([s()], H.prototype, "searchValue", void 0), N([s({ type: Boolean })], H.prototype, "searchLoading", void 0), N([s({
|
|
1185
1185
|
type: Boolean,
|
|
1186
1186
|
reflect: !0
|
|
1187
|
-
})], H.prototype, "expanded", void 0), H =
|
|
1187
|
+
})], H.prototype, "expanded", void 0), H = N([b(), o("vsn-header")], H);
|
|
1188
1188
|
//#endregion
|
|
1189
1189
|
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.keyboard.ts
|
|
1190
1190
|
var vt = class {
|
|
1191
1191
|
constructor(e) {
|
|
1192
1192
|
this.onResultsKeydown = (e) => {
|
|
1193
|
-
if (e.defaultPrevented ||
|
|
1193
|
+
if (e.defaultPrevented || k(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1194
1194
|
e.preventDefault();
|
|
1195
1195
|
let t = Array.from(this.host.querySelectorAll(".ga-side-navigation__search-results-item"));
|
|
1196
1196
|
if (t.length === 0) return;
|
|
@@ -1201,7 +1201,68 @@ var vt = class {
|
|
|
1201
1201
|
}, this.host = e, e.addController(this);
|
|
1202
1202
|
}
|
|
1203
1203
|
hostConnected() {}
|
|
1204
|
-
}, U = class extends e {
|
|
1204
|
+
}, U, W = class extends e {
|
|
1205
|
+
static {
|
|
1206
|
+
U = this;
|
|
1207
|
+
}
|
|
1208
|
+
createRenderRoot() {
|
|
1209
|
+
return this;
|
|
1210
|
+
}
|
|
1211
|
+
static {
|
|
1212
|
+
this._idCounter = 0;
|
|
1213
|
+
}
|
|
1214
|
+
constructor() {
|
|
1215
|
+
super(), this._showTooltip = !1, this._tooltipPos = {
|
|
1216
|
+
x: 0,
|
|
1217
|
+
y: 0
|
|
1218
|
+
}, this._onItemMouseEnter = (e) => {
|
|
1219
|
+
if (this._showTooltip = !1, this._labelEl && this._labelEl.scrollWidth > this._labelEl.clientWidth) {
|
|
1220
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
1221
|
+
this._tooltipPos = {
|
|
1222
|
+
x: t.right + 8,
|
|
1223
|
+
y: t.top + t.height / 2
|
|
1224
|
+
}, this._showTooltip = !0;
|
|
1225
|
+
}
|
|
1226
|
+
}, this._onItemMouseLeave = () => {
|
|
1227
|
+
this._showTooltip = !1;
|
|
1228
|
+
}, this._tooltipId = `vsn-search-result-item-tooltip-${U._idCounter++}`;
|
|
1229
|
+
}
|
|
1230
|
+
render() {
|
|
1231
|
+
let e = this.item;
|
|
1232
|
+
return n`
|
|
1233
|
+
<a
|
|
1234
|
+
class="ga-side-navigation__search-results-item"
|
|
1235
|
+
href=${e.url}
|
|
1236
|
+
aria-describedby=${this._tooltipId}
|
|
1237
|
+
@click=${this._onActivate}
|
|
1238
|
+
@mouseenter=${this._onItemMouseEnter}
|
|
1239
|
+
@mouseleave=${this._onItemMouseLeave}>
|
|
1240
|
+
<div id="${this._tooltipId}" role="tooltip"
|
|
1241
|
+
style="position: fixed; left: ${this._tooltipPos.x}px; top: ${this._tooltipPos.y}px; transform: translateY(-50%); visibility: ${this._showTooltip ? "visible" : "hidden"}; pointer-events: none; z-index: 9999;">
|
|
1242
|
+
<div class="ga-tooltip ga-tooltip--right-center max-w-135"
|
|
1243
|
+
style="width: min-content; min-width: calc(0.25rem * var(--ga-base-scaling-factor, 1) * 34); overflow-wrap: break-word;">${e.label}</div>
|
|
1244
|
+
</div>
|
|
1245
|
+
<div class="ga-side-navigation__search-results-item-content">
|
|
1246
|
+
<div class="ga-side-navigation__search-results-item-label">${e.label}</div>
|
|
1247
|
+
${(e.lines ?? []).map((e) => n`
|
|
1248
|
+
<div class="ga-side-navigation__search-results-item-description">${e}</div>
|
|
1249
|
+
`)}
|
|
1250
|
+
</div>
|
|
1251
|
+
</a>
|
|
1252
|
+
`;
|
|
1253
|
+
}
|
|
1254
|
+
_onActivate(e) {
|
|
1255
|
+
e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
1256
|
+
detail: this.item,
|
|
1257
|
+
bubbles: !0,
|
|
1258
|
+
composed: !0
|
|
1259
|
+
}));
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
N([s({ attribute: !1 })], W.prototype, "item", void 0), N([l()], W.prototype, "_showTooltip", void 0), N([l()], W.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__search-results-item-label")], W.prototype, "_labelEl", void 0), W = U = N([o("vsn-search-result-item")], W);
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region src/components/vsn-side-bar/vsn-search-results/vsn-search-results.ts
|
|
1265
|
+
var G = class extends e {
|
|
1205
1266
|
constructor(...e) {
|
|
1206
1267
|
super(...e), this.loadingMore = !1, this._keyboard = new vt(this);
|
|
1207
1268
|
}
|
|
@@ -1214,10 +1275,10 @@ var vt = class {
|
|
|
1214
1275
|
_emptyState() {
|
|
1215
1276
|
return n`
|
|
1216
1277
|
<div class="vsn-search-results__empty" role="status" aria-live="polite">
|
|
1217
|
-
<div class="vsn-search-results__empty-title">${
|
|
1218
|
-
<div class="vsn-search-results__empty-message">${
|
|
1219
|
-
<div class="vsn-search-results__empty-hint">${
|
|
1220
|
-
<div class="vsn-search-results__empty-support">${
|
|
1278
|
+
<div class="vsn-search-results__empty-title">${y("No results found")}</div>
|
|
1279
|
+
<div class="vsn-search-results__empty-message">${y("We couldn't find any matches.")}</div>
|
|
1280
|
+
<div class="vsn-search-results__empty-hint">${y("Try different keywords or check spelling.")}</div>
|
|
1281
|
+
<div class="vsn-search-results__empty-support">${y("Need help? Contact support.")}</div>
|
|
1221
1282
|
</div>
|
|
1222
1283
|
`;
|
|
1223
1284
|
}
|
|
@@ -1234,43 +1295,23 @@ var vt = class {
|
|
|
1234
1295
|
<div class="ga-side-navigation__body h-full ga-scroll"
|
|
1235
1296
|
@keydown=${this._keyboard.onResultsKeydown}>
|
|
1236
1297
|
<div class="ga-side-navigation__search-results-title">
|
|
1237
|
-
${
|
|
1298
|
+
${y(t === 1 ? v`${t} result` : v`${t} results`)}
|
|
1238
1299
|
</div>
|
|
1239
|
-
${e.map((e) =>
|
|
1300
|
+
${e.map((e) => n`
|
|
1301
|
+
<vsn-search-result-item .item=${e}></vsn-search-result-item>
|
|
1302
|
+
`)}
|
|
1240
1303
|
${u(this.nextCursor, () => n`
|
|
1241
1304
|
<button
|
|
1242
1305
|
type="button"
|
|
1243
1306
|
class="vsn-search-results__load-more"
|
|
1244
1307
|
?disabled=${this.loadingMore}
|
|
1245
1308
|
@click=${this._onLoadMore}>
|
|
1246
|
-
${
|
|
1309
|
+
${He()}
|
|
1247
1310
|
</button>
|
|
1248
1311
|
`)}
|
|
1249
1312
|
</div>
|
|
1250
1313
|
`;
|
|
1251
1314
|
}
|
|
1252
|
-
_resultRow(e) {
|
|
1253
|
-
return n`
|
|
1254
|
-
<a
|
|
1255
|
-
class="ga-side-navigation__search-results-item"
|
|
1256
|
-
href=${e.url}
|
|
1257
|
-
@click=${(t) => this._onActivate(t, e)}>
|
|
1258
|
-
<div class="ga-side-navigation__search-results-item-content">
|
|
1259
|
-
<div class="ga-side-navigation__search-results-item-label">${e.label}</div>
|
|
1260
|
-
${(e.lines ?? []).map((e) => n`
|
|
1261
|
-
<div class="ga-side-navigation__search-results-item-description">${e}</div>
|
|
1262
|
-
`)}
|
|
1263
|
-
</div>
|
|
1264
|
-
</a>
|
|
1265
|
-
`;
|
|
1266
|
-
}
|
|
1267
|
-
_onActivate(e, t) {
|
|
1268
|
-
e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-menu-item-changed", {
|
|
1269
|
-
detail: t,
|
|
1270
|
-
bubbles: !0,
|
|
1271
|
-
composed: !0
|
|
1272
|
-
}));
|
|
1273
|
-
}
|
|
1274
1315
|
_onLoadMore() {
|
|
1275
1316
|
this.dispatchEvent(new CustomEvent("vsn-search-load-more", {
|
|
1276
1317
|
bubbles: !0,
|
|
@@ -1278,7 +1319,7 @@ var vt = class {
|
|
|
1278
1319
|
}));
|
|
1279
1320
|
}
|
|
1280
1321
|
};
|
|
1281
|
-
|
|
1322
|
+
N([s({ attribute: !1 })], G.prototype, "results", void 0), N([s()], G.prototype, "errorMessage", void 0), N([s()], G.prototype, "nextCursor", void 0), N([s({ type: Boolean })], G.prototype, "loadingMore", void 0), G = N([b(), o("vsn-search-results")], G);
|
|
1282
1323
|
//#endregion
|
|
1283
1324
|
//#region src/components/vsn-side-bar/vsn-template/vsn-template.ts
|
|
1284
1325
|
var yt = [
|
|
@@ -1296,7 +1337,7 @@ var yt = [
|
|
|
1296
1337
|
<div class="ga-side-navigation__body h-full"
|
|
1297
1338
|
role="status"
|
|
1298
1339
|
aria-busy="true"
|
|
1299
|
-
aria-label=${
|
|
1340
|
+
aria-label=${y("Loading results")}>
|
|
1300
1341
|
${yt.map((e) => n`
|
|
1301
1342
|
<div class="vsn-template__row">
|
|
1302
1343
|
<div class="vsn-template__bar" style="width: ${e}px"></div>
|
|
@@ -1306,7 +1347,7 @@ var yt = [
|
|
|
1306
1347
|
`;
|
|
1307
1348
|
}
|
|
1308
1349
|
};
|
|
1309
|
-
bt =
|
|
1350
|
+
bt = N([b(), o("vsn-template")], bt);
|
|
1310
1351
|
//#endregion
|
|
1311
1352
|
//#region src/components/vsn-side-bar/vsn-error-state/vsn-error-state.ts
|
|
1312
1353
|
var xt = class extends e {
|
|
@@ -1316,24 +1357,24 @@ var xt = class extends e {
|
|
|
1316
1357
|
render() {
|
|
1317
1358
|
return n`
|
|
1318
1359
|
<div class="vsn-error-state" role="alert" aria-live="assertive">
|
|
1319
|
-
<div class="vsn-error-state__icon">${
|
|
1320
|
-
<div class="vsn-error-state__title">${
|
|
1321
|
-
<div class="vsn-error-state__message">${
|
|
1322
|
-
<div class="vsn-error-state__hint">${
|
|
1323
|
-
<div class="vsn-error-state__support">${
|
|
1360
|
+
<div class="vsn-error-state__icon">${j(ct, 24)}</div>
|
|
1361
|
+
<div class="vsn-error-state__title">${y("Loading error")}</div>
|
|
1362
|
+
<div class="vsn-error-state__message">${y("We're unable to load the menu.")}</div>
|
|
1363
|
+
<div class="vsn-error-state__hint">${y("Please check your internet connection and try again.")}</div>
|
|
1364
|
+
<div class="vsn-error-state__support">${y("If the issue persists, reload the page or contact support.")}</div>
|
|
1324
1365
|
</div>
|
|
1325
1366
|
`;
|
|
1326
1367
|
}
|
|
1327
1368
|
};
|
|
1328
|
-
xt =
|
|
1369
|
+
xt = N([b(), o("vsn-error-state")], xt);
|
|
1329
1370
|
//#endregion
|
|
1330
1371
|
//#region src/components/vsn-side-bar/vsn-search-scopes/vsn-search-scopes.ts
|
|
1331
|
-
var
|
|
1372
|
+
var K, q = class extends e {
|
|
1332
1373
|
static {
|
|
1333
|
-
|
|
1374
|
+
K = this;
|
|
1334
1375
|
}
|
|
1335
1376
|
constructor(...e) {
|
|
1336
|
-
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++
|
|
1377
|
+
super(...e), this.scopes = [], this.selectedScopeId = "", this._name = `vsn-search-scope-${++K._counter}`;
|
|
1337
1378
|
}
|
|
1338
1379
|
createRenderRoot() {
|
|
1339
1380
|
return this;
|
|
@@ -1343,7 +1384,7 @@ var St, W = class extends e {
|
|
|
1343
1384
|
}
|
|
1344
1385
|
render() {
|
|
1345
1386
|
return this.scopes.length <= 1 ? n`` : n`
|
|
1346
|
-
<div class="ga-radio-group" role="radiogroup" aria-label=${
|
|
1387
|
+
<div class="ga-radio-group" role="radiogroup" aria-label=${y("Search scope")}>
|
|
1347
1388
|
${this.scopes.map((e) => this._renderScope(e))}
|
|
1348
1389
|
</div>
|
|
1349
1390
|
`;
|
|
@@ -1372,25 +1413,25 @@ var St, W = class extends e {
|
|
|
1372
1413
|
}));
|
|
1373
1414
|
}
|
|
1374
1415
|
};
|
|
1375
|
-
|
|
1416
|
+
N([s({ attribute: !1 })], q.prototype, "scopes", void 0), N([s()], q.prototype, "selectedScopeId", void 0), q = K = N([b(), o("vsn-search-scopes")], q);
|
|
1376
1417
|
//#endregion
|
|
1377
1418
|
//#region src/shared/lang/locale-codes.ts
|
|
1378
|
-
var
|
|
1419
|
+
var St = "en", Ct = [
|
|
1379
1420
|
"da",
|
|
1380
1421
|
"fi",
|
|
1381
1422
|
"nl",
|
|
1382
1423
|
"no",
|
|
1383
1424
|
"sv"
|
|
1384
|
-
],
|
|
1425
|
+
], wt = /* @__PURE__ */ p({ templates: () => Tt }), Tt = {
|
|
1385
1426
|
s09a45db408570a7a: "Min profil",
|
|
1386
1427
|
s119f9875b7d4cdfc: "Har du brug for hjælp? Kontakt support.",
|
|
1387
|
-
s1228605ee65ddefa:
|
|
1388
|
-
s2bb33291ef8ae3d4:
|
|
1428
|
+
s1228605ee65ddefa: v`${0} resultat`,
|
|
1429
|
+
s2bb33291ef8ae3d4: v`Indtast mindst ${0} tegn for at søge`,
|
|
1389
1430
|
s2be8f715fbd00dcb: "Vi fandt ingen matchende resultater.",
|
|
1390
1431
|
s301876182accccad: " › ",
|
|
1391
1432
|
s3112f1ca236c8a61: "Indlæsningsfejl",
|
|
1392
1433
|
s352719d86112de9a: "Hjælp",
|
|
1393
|
-
s387a4a41718122cb:
|
|
1434
|
+
s387a4a41718122cb: v`${0} resultater`,
|
|
1394
1435
|
s3fb7db4771812f0c: "Hvis problemet fortsætter, genindlæs siden eller kontakt support.",
|
|
1395
1436
|
s4b0c6b66b4efd7d8: "Vælg en tjeneste",
|
|
1396
1437
|
s5be3c6d61cd9182f: "Notifikationer",
|
|
@@ -1411,16 +1452,16 @@ var Ct = "en", wt = [
|
|
|
1411
1452
|
sfbf31f663cef6cc2: "Prøv andre søgeord eller tjek stavningen.",
|
|
1412
1453
|
s7c510419ea376840: "VSN",
|
|
1413
1454
|
s38385cd359b17f7a: "Loading modules"
|
|
1414
|
-
},
|
|
1455
|
+
}, Et = /* @__PURE__ */ p({ templates: () => Dt }), Dt = {
|
|
1415
1456
|
s09a45db408570a7a: "Oma profiili",
|
|
1416
1457
|
s119f9875b7d4cdfc: "Tarvitsetko apua? Ota yhteyttä tukeen.",
|
|
1417
|
-
s1228605ee65ddefa:
|
|
1418
|
-
s2bb33291ef8ae3d4:
|
|
1458
|
+
s1228605ee65ddefa: v`${0} tulos`,
|
|
1459
|
+
s2bb33291ef8ae3d4: v`Kirjoita vähintään ${0} merkkiä hakua varten`,
|
|
1419
1460
|
s2be8f715fbd00dcb: "Emme löytäneet osumia.",
|
|
1420
1461
|
s301876182accccad: " › ",
|
|
1421
1462
|
s3112f1ca236c8a61: "Latausvirhe",
|
|
1422
1463
|
s352719d86112de9a: "Ohje",
|
|
1423
|
-
s387a4a41718122cb:
|
|
1464
|
+
s387a4a41718122cb: v`${0} tulosta`,
|
|
1424
1465
|
s3fb7db4771812f0c: "Jos ongelma jatkuu, lataa sivu uudelleen tai ota yhteyttä tukeen.",
|
|
1425
1466
|
s4b0c6b66b4efd7d8: "Valitse palvelu",
|
|
1426
1467
|
s5be3c6d61cd9182f: "Ilmoitukset",
|
|
@@ -1441,16 +1482,16 @@ var Ct = "en", wt = [
|
|
|
1441
1482
|
sfbf31f663cef6cc2: "Kokeile eri hakusanoja tai tarkista kirjoitusasu.",
|
|
1442
1483
|
s7c510419ea376840: "VSN",
|
|
1443
1484
|
s38385cd359b17f7a: "Loading modules"
|
|
1444
|
-
},
|
|
1485
|
+
}, Ot = /* @__PURE__ */ p({ templates: () => kt }), kt = {
|
|
1445
1486
|
s09a45db408570a7a: "Mijn profiel",
|
|
1446
1487
|
s119f9875b7d4cdfc: "Hulp nodig? Neem contact op met ondersteuning.",
|
|
1447
|
-
s1228605ee65ddefa:
|
|
1448
|
-
s2bb33291ef8ae3d4:
|
|
1488
|
+
s1228605ee65ddefa: v`${0} resultaat`,
|
|
1489
|
+
s2bb33291ef8ae3d4: v`Typ minimaal ${0} tekens om te zoeken`,
|
|
1449
1490
|
s2be8f715fbd00dcb: "We konden geen overeenkomsten vinden.",
|
|
1450
1491
|
s301876182accccad: " › ",
|
|
1451
1492
|
s3112f1ca236c8a61: "Laadingsfout",
|
|
1452
1493
|
s352719d86112de9a: "Hulp",
|
|
1453
|
-
s387a4a41718122cb:
|
|
1494
|
+
s387a4a41718122cb: v`${0} resultaten`,
|
|
1454
1495
|
s3fb7db4771812f0c: "Als het probleem aanhoudt, laad de pagina opnieuw of neem contact op met ondersteuning.",
|
|
1455
1496
|
s4b0c6b66b4efd7d8: "Kies een service",
|
|
1456
1497
|
s5be3c6d61cd9182f: "Meldingen",
|
|
@@ -1471,16 +1512,16 @@ var Ct = "en", wt = [
|
|
|
1471
1512
|
sfbf31f663cef6cc2: "Probeer andere zoekwoorden of controleer de spelling.",
|
|
1472
1513
|
s7c510419ea376840: "VSN",
|
|
1473
1514
|
s38385cd359b17f7a: "Loading modules"
|
|
1474
|
-
},
|
|
1515
|
+
}, At = /* @__PURE__ */ p({ templates: () => jt }), jt = {
|
|
1475
1516
|
s09a45db408570a7a: "Min profil",
|
|
1476
1517
|
s119f9875b7d4cdfc: "Trenger du hjelp? Kontakt støtte.",
|
|
1477
|
-
s1228605ee65ddefa:
|
|
1478
|
-
s2bb33291ef8ae3d4:
|
|
1518
|
+
s1228605ee65ddefa: v`${0} resultat`,
|
|
1519
|
+
s2bb33291ef8ae3d4: v`Skriv inn minst ${0} tegn for å søke`,
|
|
1479
1520
|
s2be8f715fbd00dcb: "Vi fant ingen treff.",
|
|
1480
1521
|
s301876182accccad: " › ",
|
|
1481
1522
|
s3112f1ca236c8a61: "Lastingsfeil",
|
|
1482
1523
|
s352719d86112de9a: "Hjelp",
|
|
1483
|
-
s387a4a41718122cb:
|
|
1524
|
+
s387a4a41718122cb: v`${0} resultater`,
|
|
1484
1525
|
s3fb7db4771812f0c: "Hvis problemet vedvarer, last inn siden på nytt eller kontakt støtte.",
|
|
1485
1526
|
s4b0c6b66b4efd7d8: "Velg en tjeneste",
|
|
1486
1527
|
s5be3c6d61cd9182f: "Varsler",
|
|
@@ -1501,16 +1542,16 @@ var Ct = "en", wt = [
|
|
|
1501
1542
|
sfbf31f663cef6cc2: "Prøv andre søkeord eller sjekk stavemåten.",
|
|
1502
1543
|
s7c510419ea376840: "VSN",
|
|
1503
1544
|
s38385cd359b17f7a: "Loading modules"
|
|
1504
|
-
},
|
|
1545
|
+
}, Mt = /* @__PURE__ */ p({ templates: () => Nt }), Nt = {
|
|
1505
1546
|
s09a45db408570a7a: "Min profil",
|
|
1506
1547
|
s119f9875b7d4cdfc: "Behöver du hjälp? Kontakta support.",
|
|
1507
|
-
s1228605ee65ddefa:
|
|
1508
|
-
s2bb33291ef8ae3d4:
|
|
1548
|
+
s1228605ee65ddefa: v`${0} resultat`,
|
|
1549
|
+
s2bb33291ef8ae3d4: v`Skriv minst ${0} tecken för att söka`,
|
|
1509
1550
|
s2be8f715fbd00dcb: "Vi hittade inga matchningar.",
|
|
1510
1551
|
s301876182accccad: " › ",
|
|
1511
1552
|
s3112f1ca236c8a61: "Laddningsfel",
|
|
1512
1553
|
s352719d86112de9a: "Hjälp",
|
|
1513
|
-
s387a4a41718122cb:
|
|
1554
|
+
s387a4a41718122cb: v`${0} resultat`,
|
|
1514
1555
|
s3fb7db4771812f0c: "Om problemet kvarstår, ladda om sidan eller kontakta support.",
|
|
1515
1556
|
s4b0c6b66b4efd7d8: "Välj en tjänst",
|
|
1516
1557
|
s5be3c6d61cd9182f: "Aviseringar",
|
|
@@ -1531,17 +1572,17 @@ var Ct = "en", wt = [
|
|
|
1531
1572
|
sfbf31f663cef6cc2: "Prova andra sökord eller kontrollera stavningen.",
|
|
1532
1573
|
s7c510419ea376840: "VSN",
|
|
1533
1574
|
s38385cd359b17f7a: "Loading modules"
|
|
1534
|
-
},
|
|
1535
|
-
da:
|
|
1536
|
-
fi:
|
|
1537
|
-
nl:
|
|
1538
|
-
no:
|
|
1539
|
-
sv:
|
|
1540
|
-
}, { getLocale:
|
|
1541
|
-
sourceLocale:
|
|
1542
|
-
targetLocales:
|
|
1543
|
-
loadLocale: (e) =>
|
|
1544
|
-
}),
|
|
1575
|
+
}, Pt = {
|
|
1576
|
+
da: wt,
|
|
1577
|
+
fi: Et,
|
|
1578
|
+
nl: Ot,
|
|
1579
|
+
no: At,
|
|
1580
|
+
sv: Mt
|
|
1581
|
+
}, { getLocale: Ft, setLocale: It } = Me({
|
|
1582
|
+
sourceLocale: St,
|
|
1583
|
+
targetLocales: Ct,
|
|
1584
|
+
loadLocale: (e) => Pt[e] ? Promise.resolve(Pt[e]) : Promise.reject(/* @__PURE__ */ Error(`Unknown locale: ${e}`))
|
|
1585
|
+
}), Lt = t`
|
|
1545
1586
|
@layer components {
|
|
1546
1587
|
vsn-footer {
|
|
1547
1588
|
display: block;
|
|
@@ -1582,7 +1623,7 @@ var Ct = "en", wt = [
|
|
|
1582
1623
|
justify-content: center;
|
|
1583
1624
|
}
|
|
1584
1625
|
}
|
|
1585
|
-
`,
|
|
1626
|
+
`, Rt = t`
|
|
1586
1627
|
@layer components {
|
|
1587
1628
|
.vsn-switcher-anchor {
|
|
1588
1629
|
position: relative;
|
|
@@ -1596,7 +1637,7 @@ var Ct = "en", wt = [
|
|
|
1596
1637
|
z-index: 10;
|
|
1597
1638
|
}
|
|
1598
1639
|
}
|
|
1599
|
-
`,
|
|
1640
|
+
`, zt = t`
|
|
1600
1641
|
.vsn-search__trigger,
|
|
1601
1642
|
.vsn-search__clear {
|
|
1602
1643
|
display: inline-flex;
|
|
@@ -1645,7 +1686,7 @@ var Ct = "en", wt = [
|
|
|
1645
1686
|
.ga-side-navigation__search input::placeholder {
|
|
1646
1687
|
color: var(--ga-color-text-disable-selected);
|
|
1647
1688
|
}
|
|
1648
|
-
`,
|
|
1689
|
+
`, Bt = t`
|
|
1649
1690
|
.vsn-search-results__empty {
|
|
1650
1691
|
display: flex;
|
|
1651
1692
|
flex-direction: column;
|
|
@@ -1714,7 +1755,7 @@ var Ct = "en", wt = [
|
|
|
1714
1755
|
cursor: not-allowed;
|
|
1715
1756
|
opacity: 0.5;
|
|
1716
1757
|
}
|
|
1717
|
-
`,
|
|
1758
|
+
`, Vt = t`
|
|
1718
1759
|
@layer components {
|
|
1719
1760
|
vsn-search-scopes {
|
|
1720
1761
|
display: block;
|
|
@@ -1735,7 +1776,7 @@ var Ct = "en", wt = [
|
|
|
1735
1776
|
text-overflow: ellipsis;
|
|
1736
1777
|
}
|
|
1737
1778
|
}
|
|
1738
|
-
`,
|
|
1779
|
+
`, Ht = t`
|
|
1739
1780
|
.vsn-template__row {
|
|
1740
1781
|
display: flex;
|
|
1741
1782
|
flex-direction: column;
|
|
@@ -1750,7 +1791,7 @@ var Ct = "en", wt = [
|
|
|
1750
1791
|
background: var(--ga-color-miscellaneous-skeleton-element, #F2F3F5);
|
|
1751
1792
|
flex-shrink: 0;
|
|
1752
1793
|
}
|
|
1753
|
-
`,
|
|
1794
|
+
`, Ut = t`
|
|
1754
1795
|
.vsn-error-state {
|
|
1755
1796
|
display: flex;
|
|
1756
1797
|
flex-direction: column;
|
|
@@ -1789,7 +1830,7 @@ var Ct = "en", wt = [
|
|
|
1789
1830
|
font-weight: 400;
|
|
1790
1831
|
color: var(--ga-color-text-on-disabled);
|
|
1791
1832
|
}
|
|
1792
|
-
`,
|
|
1833
|
+
`, Wt = t`
|
|
1793
1834
|
.vsn-spinner {
|
|
1794
1835
|
display: inline-block;
|
|
1795
1836
|
flex-shrink: 0;
|
|
@@ -1809,7 +1850,7 @@ var Ct = "en", wt = [
|
|
|
1809
1850
|
@keyframes vsn-spin {
|
|
1810
1851
|
to { transform: rotate(360deg); }
|
|
1811
1852
|
}
|
|
1812
|
-
`,
|
|
1853
|
+
`, Gt = class {
|
|
1813
1854
|
constructor(e, t, n) {
|
|
1814
1855
|
this._onHostClick = (e) => {
|
|
1815
1856
|
let t = this._host.renderRoot.querySelector(this._clickedSelector);
|
|
@@ -1822,14 +1863,14 @@ var Ct = "en", wt = [
|
|
|
1822
1863
|
hostDisconnected() {
|
|
1823
1864
|
this._host.removeEventListener("click", this._onHostClick);
|
|
1824
1865
|
}
|
|
1825
|
-
},
|
|
1866
|
+
}, Kt = "button:not([disabled]), a[href], [tabindex]:not([tabindex=\"-1\"])", qt = class {
|
|
1826
1867
|
constructor(e) {
|
|
1827
1868
|
this.onKeydown = (e) => {
|
|
1828
|
-
if (e.defaultPrevented ||
|
|
1869
|
+
if (e.defaultPrevented || k(e) || e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
1829
1870
|
let t = this.host.renderRoot.querySelector("slot[name=\"nav-footer\"]");
|
|
1830
1871
|
if (!t) return;
|
|
1831
1872
|
let n = [];
|
|
1832
|
-
for (let e of t.assignedElements({ flatten: !0 })) e.matches(
|
|
1873
|
+
for (let e of t.assignedElements({ flatten: !0 })) e.matches(Kt) && n.push(e), n.push(...Array.from(e.querySelectorAll(Kt)));
|
|
1833
1874
|
if (n.length === 0) return;
|
|
1834
1875
|
let r = e.composedPath()[0];
|
|
1835
1876
|
if (!(r instanceof HTMLElement)) return;
|
|
@@ -1841,7 +1882,7 @@ var Ct = "en", wt = [
|
|
|
1841
1882
|
}, this.host = e, e.addController(this);
|
|
1842
1883
|
}
|
|
1843
1884
|
hostConnected() {}
|
|
1844
|
-
},
|
|
1885
|
+
}, Jt = t`
|
|
1845
1886
|
.ga-scroll {
|
|
1846
1887
|
scrollbar-color: var(--ga-color-text-disabled) var(--ga-color-surface-page);
|
|
1847
1888
|
scrollbar-width: thin;
|
|
@@ -1859,20 +1900,20 @@ var Ct = "en", wt = [
|
|
|
1859
1900
|
content: var(--tw-content);
|
|
1860
1901
|
}
|
|
1861
1902
|
}
|
|
1862
|
-
`,
|
|
1903
|
+
`, J = class extends e {
|
|
1863
1904
|
static {
|
|
1864
1905
|
this.styles = [
|
|
1865
1906
|
h,
|
|
1866
|
-
|
|
1867
|
-
zt,
|
|
1868
|
-
Yt,
|
|
1907
|
+
Jt,
|
|
1869
1908
|
Rt,
|
|
1909
|
+
Yt,
|
|
1910
|
+
Lt,
|
|
1911
|
+
zt,
|
|
1870
1912
|
Bt,
|
|
1871
1913
|
Vt,
|
|
1872
1914
|
Ht,
|
|
1873
1915
|
Ut,
|
|
1874
1916
|
Wt,
|
|
1875
|
-
Gt,
|
|
1876
1917
|
t`
|
|
1877
1918
|
:host {
|
|
1878
1919
|
position: absolute;
|
|
@@ -1887,7 +1928,7 @@ var Ct = "en", wt = [
|
|
|
1887
1928
|
];
|
|
1888
1929
|
}
|
|
1889
1930
|
constructor() {
|
|
1890
|
-
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._navFooterKeyboard = new
|
|
1931
|
+
super(), this.modules = [], this.modulesLoading = !1, this.lang = "en", this.error = !1, this.open = !1, this._searchQuery = "", this._searchLoading = !1, this._activeScopeId = "menu", this._searchLoadingMore = !1, this._moduleSwitcherMaxHeight = 0, this._navFooterKeyboard = new qt(this), this._onNavigate = (e) => {
|
|
1891
1932
|
this._searchQuery = "", this._searchResults = void 0, this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1892
1933
|
bubbles: !0,
|
|
1893
1934
|
composed: !0
|
|
@@ -1904,18 +1945,36 @@ var Ct = "en", wt = [
|
|
|
1904
1945
|
}));
|
|
1905
1946
|
}, this._onScopeChanged = (e) => {
|
|
1906
1947
|
this._activeScopeId = e.detail.scopeId, this._runSearch(this._searchQuery, this._activeScopeId), this.focusSearch();
|
|
1907
|
-
}, new
|
|
1948
|
+
}, new Gt(this, ".ga-side-navigation", () => this.dispatchEvent(new CustomEvent("vsn-side-bar-close", {
|
|
1908
1949
|
bubbles: !0,
|
|
1909
1950
|
composed: !0
|
|
1910
1951
|
}))), this._resizeObserver = new ResizeObserver((e) => {
|
|
1911
1952
|
this._observeMenuSize(e);
|
|
1912
|
-
}), this._resizeObserver.observe(this), new
|
|
1953
|
+
}), this._resizeObserver.observe(this), new R(this, () => this.open);
|
|
1913
1954
|
}
|
|
1914
1955
|
_observeMenuSize(e) {
|
|
1915
1956
|
this._moduleSwitcherMaxHeight = Math.max(0, e[0].contentRect.height - 134);
|
|
1916
1957
|
}
|
|
1917
1958
|
willUpdate(e) {
|
|
1918
|
-
e.has("lang") &&
|
|
1959
|
+
e.has("lang") && It(this.lang).catch(console.error), e.has("open") && e.get("open") && !this.open && (this._searchQuery = "", this._activeScopeId = "menu", this._clearSearchState(), this.renderRoot.querySelector("vsn-header")?.reset(), this.renderRoot.querySelector("vsn-footer")?.reset());
|
|
1960
|
+
}
|
|
1961
|
+
updated(e) {
|
|
1962
|
+
e.has("open") && this.open && this._scrollActiveItemIntoView(), e.has("menu") && this.open && this.menu?.currentItem && (e.get("menu")?.currentItem || this._scrollActiveItemIntoView());
|
|
1963
|
+
}
|
|
1964
|
+
_scrollActiveItemIntoView() {
|
|
1965
|
+
let e = this.renderRoot.querySelector("vsn-menu");
|
|
1966
|
+
e && e.updateComplete.then(() => {
|
|
1967
|
+
requestAnimationFrame(() => {
|
|
1968
|
+
if (!this.open) return;
|
|
1969
|
+
let t = e.querySelector(".ga-scroll"), n = e.querySelector(".ga-side-navigation__item--active");
|
|
1970
|
+
if (!t || !n) return;
|
|
1971
|
+
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
|
|
1972
|
+
if (!(i.top >= r.top && i.bottom <= r.bottom)) {
|
|
1973
|
+
let e = i.top - r.top - t.clientHeight / 2 + n.clientHeight / 2;
|
|
1974
|
+
t.scrollTop += e;
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
});
|
|
1919
1978
|
}
|
|
1920
1979
|
async focusSearch() {
|
|
1921
1980
|
await this.updateComplete, this.renderRoot.querySelector("vsn-header")?.focus();
|
|
@@ -2063,7 +2122,7 @@ var Ct = "en", wt = [
|
|
|
2063
2122
|
<vsn-search-scopes
|
|
2064
2123
|
.scopes=${[{
|
|
2065
2124
|
id: "menu",
|
|
2066
|
-
label:
|
|
2125
|
+
label: Ve()
|
|
2067
2126
|
}, ...e.map((e) => ({
|
|
2068
2127
|
id: e.id,
|
|
2069
2128
|
label: e.label
|
|
@@ -2087,13 +2146,13 @@ var Ct = "en", wt = [
|
|
|
2087
2146
|
`;
|
|
2088
2147
|
}
|
|
2089
2148
|
};
|
|
2090
|
-
|
|
2149
|
+
N([s({ attribute: !1 })], J.prototype, "modules", void 0), N([s()], J.prototype, "activeModuleId", void 0), N([s()], J.prototype, "activeModuleLabel", void 0), N([s({ type: Boolean })], J.prototype, "modulesLoading", void 0), N([s()], J.prototype, "lang", void 0), N([s({ attribute: !1 })], J.prototype, "auth", void 0), N([s({ type: Boolean })], J.prototype, "error", void 0), N([s({
|
|
2091
2150
|
type: Boolean,
|
|
2092
2151
|
reflect: !0
|
|
2093
|
-
})],
|
|
2152
|
+
})], J.prototype, "open", void 0), N([s({ attribute: !1 })], J.prototype, "menu", void 0), N([l()], J.prototype, "_searchQuery", void 0), N([l()], J.prototype, "_searchResults", void 0), N([l()], J.prototype, "_searchLoading", void 0), N([l()], J.prototype, "_activeScopeId", void 0), N([l()], J.prototype, "_searchError", void 0), N([l()], J.prototype, "_searchNextCursor", void 0), N([l()], J.prototype, "_searchLoadingMore", void 0), N([l()], J.prototype, "_moduleSwitcherMaxHeight", void 0), J = N([o("vsn-side-bar")], J);
|
|
2094
2153
|
//#endregion
|
|
2095
2154
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu-item.ts
|
|
2096
|
-
var Xt,
|
|
2155
|
+
var Xt, Y = class extends e {
|
|
2097
2156
|
static {
|
|
2098
2157
|
Xt = this;
|
|
2099
2158
|
}
|
|
@@ -2119,7 +2178,7 @@ var Xt, q = class extends e {
|
|
|
2119
2178
|
e.preventDefault(), e.stopPropagation(), this._isExpanded = !this._isExpanded;
|
|
2120
2179
|
return;
|
|
2121
2180
|
}
|
|
2122
|
-
if (!this.tree || e.button !== 0 ||
|
|
2181
|
+
if (!this.tree || e.button !== 0 || k(e)) return;
|
|
2123
2182
|
e.preventDefault(), e.stopPropagation();
|
|
2124
2183
|
let t = [...this.ancestorPath, this.tree];
|
|
2125
2184
|
this.dispatchEvent(new CustomEvent("vsn-breadcrumb-menu-leaf-select", {
|
|
@@ -2153,7 +2212,7 @@ var Xt, q = class extends e {
|
|
|
2153
2212
|
<div class="ga-tooltip ga-tooltip--right-start" style="white-space: nowrap">${e}</div>
|
|
2154
2213
|
</div>
|
|
2155
2214
|
<span class="ga-side-navigation__item-icon">
|
|
2156
|
-
${this._isParent() ? this._isExpanded ? M
|
|
2215
|
+
${this._isParent() ? this._isExpanded ? j(M, 16) : j(lt, 16) : ""}
|
|
2157
2216
|
</span>
|
|
2158
2217
|
<div class="ga-side-navigation__item-content">
|
|
2159
2218
|
<div class="ga-side-navigation__item-label">${e}</div>
|
|
@@ -2177,7 +2236,7 @@ var Xt, q = class extends e {
|
|
|
2177
2236
|
if (this.tree && _(this.tree)) return this.tree.items.length > 0;
|
|
2178
2237
|
}
|
|
2179
2238
|
};
|
|
2180
|
-
|
|
2239
|
+
N([s({ attribute: !1 })], Y.prototype, "tree", void 0), N([s({ type: Number })], Y.prototype, "level", void 0), N([s({ type: Array })], Y.prototype, "ancestorPath", void 0), N([l()], Y.prototype, "_isExpanded", void 0), N([l()], Y.prototype, "_showTooltip", void 0), N([l()], Y.prototype, "_tooltipPos", void 0), N([c(".ga-side-navigation__item-label")], Y.prototype, "_labelEl", void 0), Y = Xt = N([o("vsn-breadcrumb-menu-item")], Y);
|
|
2181
2240
|
//#endregion
|
|
2182
2241
|
//#region src/components/vsn-top-bar/vsn-breadcrumb-menu.ts
|
|
2183
2242
|
var Zt = class extends e {
|
|
@@ -2200,10 +2259,10 @@ var Zt = class extends e {
|
|
|
2200
2259
|
`;
|
|
2201
2260
|
}
|
|
2202
2261
|
};
|
|
2203
|
-
|
|
2262
|
+
N([s({ attribute: !1 })], Zt.prototype, "treeList", void 0), Zt = N([o("vsn-breadcrumb-menu")], Zt);
|
|
2204
2263
|
//#endregion
|
|
2205
2264
|
//#region src/components/vsn-top-bar/vsn-breadcrumbs.ts
|
|
2206
|
-
var
|
|
2265
|
+
var X = class extends e {
|
|
2207
2266
|
constructor(...e) {
|
|
2208
2267
|
super(...e), this.modules = [], this._openPopoverId = null, this._displayMode = "full", this._overflowCount = 0, this._tooltip = null, this._mqDesktop = window.matchMedia("(min-width: 1440px)"), this._mqTablet = window.matchMedia("(min-width: 768px) and (max-width: 1439px)"), this._ro = null, this._lastContainerWidth = 0, this._mounted = !1, this._handleMediaChange = () => {
|
|
2209
2268
|
this._mqDesktop.matches ? (this._displayMode = "full", this._overflowCount = 0) : this._mqTablet.matches ? (this._displayMode = "overflow", this._overflowCount = 0, this._mounted && this.updateComplete.then(() => this._recalculateOverflow())) : (this._displayMode = "mobile", this._overflowCount = 0);
|
|
@@ -2224,7 +2283,7 @@ var J = class extends e {
|
|
|
2224
2283
|
static {
|
|
2225
2284
|
this.styles = [
|
|
2226
2285
|
h,
|
|
2227
|
-
|
|
2286
|
+
Jt,
|
|
2228
2287
|
t`
|
|
2229
2288
|
/* Temporary, until breadcrumb styles are updated */
|
|
2230
2289
|
|
|
@@ -2534,7 +2593,7 @@ var J = class extends e {
|
|
|
2534
2593
|
}
|
|
2535
2594
|
render() {
|
|
2536
2595
|
return n`
|
|
2537
|
-
<nav aria-label=${
|
|
2596
|
+
<nav aria-label=${y("Breadcrumb")}>
|
|
2538
2597
|
<div class="ga-breadcrumb">
|
|
2539
2598
|
${this._displayMode === "full" ? this._renderFullBreadcrumbs() : this._displayMode === "overflow" ? this._renderOverflowBreadcrumbs() : this._renderMobileBreadcrumbs()}
|
|
2540
2599
|
</div>
|
|
@@ -2548,7 +2607,7 @@ var J = class extends e {
|
|
|
2548
2607
|
`;
|
|
2549
2608
|
}
|
|
2550
2609
|
};
|
|
2551
|
-
|
|
2610
|
+
N([s({ attribute: !1 })], X.prototype, "tree", void 0), N([s({ type: Array })], X.prototype, "modules", void 0), N([s()], X.prototype, "activeModuleId", void 0), N([l()], X.prototype, "_openPopoverId", void 0), N([l()], X.prototype, "_displayMode", void 0), N([l()], X.prototype, "_overflowCount", void 0), N([l()], X.prototype, "_tooltip", void 0), X = N([b(), o("vsn-breadcrumbs")], X);
|
|
2552
2611
|
//#endregion
|
|
2553
2612
|
//#region src/components/vsn-top-bar/vsn-ai-assistant.ts
|
|
2554
2613
|
var Qt = class extends e {
|
|
@@ -2565,16 +2624,16 @@ var Qt = class extends e {
|
|
|
2565
2624
|
render() {
|
|
2566
2625
|
return n`
|
|
2567
2626
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2568
|
-
aria-label=${
|
|
2569
|
-
<span class="ga-icon">${
|
|
2627
|
+
aria-label=${y("Open AI assistant")} @click=${this._handleClick}>
|
|
2628
|
+
<span class="ga-icon">${j(Ye)}</span>
|
|
2570
2629
|
</button>
|
|
2571
2630
|
`;
|
|
2572
2631
|
}
|
|
2573
2632
|
};
|
|
2574
|
-
Qt =
|
|
2633
|
+
Qt = N([b(), o("vsn-ai-assistant")], Qt);
|
|
2575
2634
|
//#endregion
|
|
2576
2635
|
//#region src/components/vsn-top-bar/vsn-feedback.ts
|
|
2577
|
-
var
|
|
2636
|
+
var Z = class extends e {
|
|
2578
2637
|
constructor(...e) {
|
|
2579
2638
|
super(...e), this._compact = !1, this.feedback = null, this.lang = "en", this._mqMobile = window.matchMedia("(max-width: 767px)"), this._handleMediaChange = () => {
|
|
2580
2639
|
this._compact = this._mqMobile.matches;
|
|
@@ -2590,7 +2649,7 @@ var Y = class extends e {
|
|
|
2590
2649
|
if (super.updated(e), e.has("feedback") && this.feedback?.workspaceId && !document.getElementById("survicate-sdk") && !window._sva) {
|
|
2591
2650
|
window._sva = window._sva ?? {}, window._sva.forcedLanguage = this.lang;
|
|
2592
2651
|
let e = document.createElement("script");
|
|
2593
|
-
e.id =
|
|
2652
|
+
e.id = We, e.src = Ke(this.feedback.workspaceId), e.async = !0, e.onload = () => this._applyVisitorTraits(), document.head.appendChild(e);
|
|
2594
2653
|
}
|
|
2595
2654
|
if (e.has("auth")) {
|
|
2596
2655
|
let t = e.get("auth");
|
|
@@ -2611,23 +2670,23 @@ var Y = class extends e {
|
|
|
2611
2670
|
this.dispatchEvent(new CustomEvent("vsn-feedback", {
|
|
2612
2671
|
bubbles: !0,
|
|
2613
2672
|
composed: !0
|
|
2614
|
-
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(
|
|
2673
|
+
})), this.feedback?.surveyId && (this._applyVisitorTraits(), window._sva?.invokeEvent?.(Ge));
|
|
2615
2674
|
}
|
|
2616
2675
|
render() {
|
|
2617
2676
|
return this._compact ? n`
|
|
2618
2677
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2619
|
-
aria-label=${
|
|
2620
|
-
<span class="ga-icon">${
|
|
2678
|
+
aria-label=${y("Send feedback")} @click=${this._handleClick}>
|
|
2679
|
+
<span class="ga-icon">${j(Qe)}</span>
|
|
2621
2680
|
</button>
|
|
2622
2681
|
` : n`
|
|
2623
|
-
<button type="button" class="ga-button ga-button--secondary" aria-label=${
|
|
2682
|
+
<button type="button" class="ga-button ga-button--secondary" aria-label=${y("Send feedback")}
|
|
2624
2683
|
@click=${this._handleClick}>
|
|
2625
|
-
${
|
|
2684
|
+
${y("Feedback")}
|
|
2626
2685
|
</button>
|
|
2627
2686
|
`;
|
|
2628
2687
|
}
|
|
2629
2688
|
};
|
|
2630
|
-
|
|
2689
|
+
N([l()], Z.prototype, "_compact", void 0), N([s({ attribute: !1 })], Z.prototype, "feedback", void 0), N([s({ attribute: !1 })], Z.prototype, "auth", void 0), N([s()], Z.prototype, "lang", void 0), Z = N([b(), o("vsn-feedback")], Z);
|
|
2631
2690
|
//#endregion
|
|
2632
2691
|
//#region src/components/vsn-top-bar/vsn-home.ts
|
|
2633
2692
|
var $t = class extends e {
|
|
@@ -2638,7 +2697,7 @@ var $t = class extends e {
|
|
|
2638
2697
|
e.preventDefault(), this.landingPageUrl && this.dispatchEvent(new CustomEvent("vsn-navigate", {
|
|
2639
2698
|
detail: {
|
|
2640
2699
|
id: "home",
|
|
2641
|
-
label:
|
|
2700
|
+
label: y("Home"),
|
|
2642
2701
|
url: this.landingPageUrl
|
|
2643
2702
|
},
|
|
2644
2703
|
bubbles: !0,
|
|
@@ -2647,14 +2706,14 @@ var $t = class extends e {
|
|
|
2647
2706
|
}
|
|
2648
2707
|
render() {
|
|
2649
2708
|
return this.landingPageUrl ? n`
|
|
2650
|
-
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${
|
|
2709
|
+
<a href=${this.landingPageUrl} class="ga-button ga-button--ghost ga-button--icon-only" aria-label=${y("Home")}
|
|
2651
2710
|
@click=${this._handleClick}>
|
|
2652
|
-
<span class="ga-icon">${
|
|
2711
|
+
<span class="ga-icon">${j($e)}</span>
|
|
2653
2712
|
</a>
|
|
2654
2713
|
` : r;
|
|
2655
2714
|
}
|
|
2656
2715
|
};
|
|
2657
|
-
|
|
2716
|
+
N([s({ attribute: "landing-page-url" })], $t.prototype, "landingPageUrl", void 0), $t = N([b(), o("vsn-home")], $t);
|
|
2658
2717
|
//#endregion
|
|
2659
2718
|
//#region src/components/vsn-top-bar/vsn-menu-toggle.ts
|
|
2660
2719
|
var en = class extends e {
|
|
@@ -2679,25 +2738,25 @@ var en = class extends e {
|
|
|
2679
2738
|
}
|
|
2680
2739
|
render() {
|
|
2681
2740
|
return n`
|
|
2682
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2741
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${y("Open menu")}
|
|
2683
2742
|
aria-describedby="vsn-menu-toggle-tooltip"
|
|
2684
2743
|
@click=${this._handleClick}
|
|
2685
2744
|
@mouseenter=${this._onActivate}
|
|
2686
2745
|
@mouseleave=${this._onDeactivate}>
|
|
2687
|
-
<span class="ga-icon">${
|
|
2746
|
+
<span class="ga-icon">${j(Je)}</span>
|
|
2688
2747
|
</button>
|
|
2689
2748
|
<div id="vsn-menu-toggle-tooltip" role="tooltip"
|
|
2690
2749
|
style="position: fixed; inset: unset; margin: 0; padding: 0; border: none; background: transparent; overflow: visible; pointer-events: none; z-index: 9999;"
|
|
2691
2750
|
popover="manual">
|
|
2692
|
-
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${
|
|
2751
|
+
<div class="ga-tooltip ga-tooltip--bottom-start" style="white-space: nowrap">${ze()}</div>
|
|
2693
2752
|
</div>
|
|
2694
2753
|
`;
|
|
2695
2754
|
}
|
|
2696
2755
|
};
|
|
2697
|
-
|
|
2756
|
+
N([c("div[role=\"tooltip\"]", !0)], en.prototype, "_tooltipElement", void 0), en = N([b(), o("vsn-menu-toggle")], en);
|
|
2698
2757
|
//#endregion
|
|
2699
2758
|
//#region src/components/vsn-top-bar/vsn-notifications.ts
|
|
2700
|
-
var
|
|
2759
|
+
var tn = class extends e {
|
|
2701
2760
|
constructor(...e) {
|
|
2702
2761
|
super(...e), this.notificationActive = !1;
|
|
2703
2762
|
}
|
|
@@ -2712,23 +2771,23 @@ var X = class extends e {
|
|
|
2712
2771
|
}));
|
|
2713
2772
|
}
|
|
2714
2773
|
render() {
|
|
2715
|
-
let e = this.notificationActive ?
|
|
2774
|
+
let e = this.notificationActive ? Ze : Xe;
|
|
2716
2775
|
return n`
|
|
2717
2776
|
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2718
|
-
aria-label=${
|
|
2719
|
-
<span class="ga-icon">${
|
|
2777
|
+
aria-label=${y("Notifications")} @click=${this._handleClick}>
|
|
2778
|
+
<span class="ga-icon">${j(e)}</span>
|
|
2720
2779
|
</button>
|
|
2721
2780
|
`;
|
|
2722
2781
|
}
|
|
2723
2782
|
};
|
|
2724
|
-
|
|
2783
|
+
N([s({
|
|
2725
2784
|
type: Boolean,
|
|
2726
2785
|
attribute: "notification-active",
|
|
2727
2786
|
reflect: !0
|
|
2728
|
-
})],
|
|
2787
|
+
})], tn.prototype, "notificationActive", void 0), tn = N([b(), o("vsn-notifications")], tn);
|
|
2729
2788
|
//#endregion
|
|
2730
2789
|
//#region src/components/vsn-top-bar/vsn-help.ts
|
|
2731
|
-
function
|
|
2790
|
+
function nn(e) {
|
|
2732
2791
|
try {
|
|
2733
2792
|
let t = new URL(e);
|
|
2734
2793
|
return t.protocol === "https:" || t.protocol === "http:";
|
|
@@ -2736,7 +2795,7 @@ function tn(e) {
|
|
|
2736
2795
|
return !1;
|
|
2737
2796
|
}
|
|
2738
2797
|
}
|
|
2739
|
-
var
|
|
2798
|
+
var rn = class extends e {
|
|
2740
2799
|
createRenderRoot() {
|
|
2741
2800
|
return this;
|
|
2742
2801
|
}
|
|
@@ -2748,20 +2807,20 @@ var Z = class extends e {
|
|
|
2748
2807
|
}));
|
|
2749
2808
|
}
|
|
2750
2809
|
render() {
|
|
2751
|
-
return this.helpUrl &&
|
|
2810
|
+
return this.helpUrl && nn(this.helpUrl) ? n`
|
|
2752
2811
|
<a href=${this.helpUrl} target="_blank" rel="noopener noreferrer" class="ga-button ga-button--secondary ga-button--icon-only"
|
|
2753
|
-
aria-label=${
|
|
2754
|
-
<span class="ga-icon">${
|
|
2812
|
+
aria-label=${y("Help")}>
|
|
2813
|
+
<span class="ga-icon">${j(et)}</span>
|
|
2755
2814
|
</a>
|
|
2756
2815
|
` : n`
|
|
2757
|
-
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${
|
|
2816
|
+
<button type="button" class="ga-button ga-button--secondary ga-button--icon-only" aria-label=${y("Help")}
|
|
2758
2817
|
@click=${this._handleClick}>
|
|
2759
|
-
<span class="ga-icon">${
|
|
2818
|
+
<span class="ga-icon">${j(et)}</span>
|
|
2760
2819
|
</button>
|
|
2761
2820
|
`;
|
|
2762
2821
|
}
|
|
2763
2822
|
};
|
|
2764
|
-
|
|
2823
|
+
N([s({ attribute: "help-url" })], rn.prototype, "helpUrl", void 0), rn = N([b(), o("vsn-help")], rn);
|
|
2765
2824
|
//#endregion
|
|
2766
2825
|
//#region src/components/vsn-top-bar/vsn-top-bar.ts
|
|
2767
2826
|
var Q = class extends e {
|
|
@@ -2769,7 +2828,7 @@ var Q = class extends e {
|
|
|
2769
2828
|
super(...e), this.modules = [], this.feedback = null, this.showHelp = !1, this.showNotification = !1, this.notificationActive = !1, this.lang = "en";
|
|
2770
2829
|
}
|
|
2771
2830
|
willUpdate(e) {
|
|
2772
|
-
e.has("lang") &&
|
|
2831
|
+
e.has("lang") && It(this.lang).catch(console.error);
|
|
2773
2832
|
}
|
|
2774
2833
|
focusMenuToggle() {
|
|
2775
2834
|
this.renderRoot.querySelector("vsn-menu-toggle")?.focus();
|
|
@@ -2871,28 +2930,28 @@ var Q = class extends e {
|
|
|
2871
2930
|
`;
|
|
2872
2931
|
}
|
|
2873
2932
|
};
|
|
2874
|
-
|
|
2933
|
+
N([s({ attribute: !1 })], Q.prototype, "tree", void 0), N([s({ type: Array })], Q.prototype, "modules", void 0), N([s()], Q.prototype, "activeModuleId", void 0), N([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), N([s({ attribute: !1 })], Q.prototype, "feedback", void 0), N([s({ attribute: !1 })], Q.prototype, "auth", void 0), N([s({
|
|
2875
2934
|
type: Boolean,
|
|
2876
2935
|
attribute: "show-help"
|
|
2877
|
-
})], Q.prototype, "showHelp", void 0),
|
|
2936
|
+
})], Q.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), N([s({
|
|
2878
2937
|
type: Boolean,
|
|
2879
2938
|
attribute: "show-notification"
|
|
2880
|
-
})], Q.prototype, "showNotification", void 0),
|
|
2939
|
+
})], Q.prototype, "showNotification", void 0), N([s({
|
|
2881
2940
|
type: Boolean,
|
|
2882
2941
|
attribute: "notification-active"
|
|
2883
|
-
})], Q.prototype, "notificationActive", void 0),
|
|
2942
|
+
})], Q.prototype, "notificationActive", void 0), N([s()], Q.prototype, "lang", void 0), Q = N([o("vsn-top-bar")], Q);
|
|
2884
2943
|
//#endregion
|
|
2885
2944
|
//#region src/components/vsn-navigation.ts
|
|
2886
2945
|
var $ = class extends e {
|
|
2887
2946
|
constructor(...e) {
|
|
2888
2947
|
super(...e), this.lang = "en", this.showHelp = !1, this.feedback = null, this.showNotification = !1, this.notificationActive = !1, this.open = !1, this._currentItem = "", this._resolvedModules = [], this._modulesLoading = !1, this._modulesLoadToken = 0, this._restoreFocusToToggle = !1, this._onShortcut = (e) => {
|
|
2889
|
-
e.defaultPrevented || !
|
|
2948
|
+
e.defaultPrevented || !Ie(e) || e.key.toLowerCase() !== "k" || (e.preventDefault(), this.dispatchEvent(new CustomEvent("vsn-open", {
|
|
2890
2949
|
cancelable: !0,
|
|
2891
2950
|
bubbles: !0,
|
|
2892
2951
|
composed: !0
|
|
2893
2952
|
})) && this._openAndFocusSearch());
|
|
2894
2953
|
}, this._onEscape = (e) => {
|
|
2895
|
-
e.defaultPrevented || this.open &&
|
|
2954
|
+
e.defaultPrevented || this.open && A(e) && e.key === "Escape" && (e.preventDefault(), this.open = !1);
|
|
2896
2955
|
};
|
|
2897
2956
|
}
|
|
2898
2957
|
_resolveModules() {
|
|
@@ -2915,7 +2974,7 @@ var $ = class extends e {
|
|
|
2915
2974
|
static {
|
|
2916
2975
|
this.styles = [
|
|
2917
2976
|
h,
|
|
2918
|
-
|
|
2977
|
+
Jt,
|
|
2919
2978
|
t`
|
|
2920
2979
|
:host {
|
|
2921
2980
|
display: flex;
|
|
@@ -3026,19 +3085,19 @@ var $ = class extends e {
|
|
|
3026
3085
|
`;
|
|
3027
3086
|
}
|
|
3028
3087
|
};
|
|
3029
|
-
|
|
3088
|
+
N([s()], $.prototype, "lang", void 0), N([s({ attribute: !1 })], $.prototype, "tree", void 0), N([s({ attribute: !1 })], $.prototype, "modules", void 0), N([s({ attribute: !1 })], $.prototype, "auth", void 0), N([s({ attribute: "landing-page-url" })], $.prototype, "landingPageUrl", void 0), N([s({
|
|
3030
3089
|
type: Boolean,
|
|
3031
3090
|
attribute: "show-help"
|
|
3032
|
-
})], $.prototype, "showHelp", void 0),
|
|
3091
|
+
})], $.prototype, "showHelp", void 0), N([s({ attribute: "help-url" })], $.prototype, "helpUrl", void 0), N([s({ attribute: !1 })], $.prototype, "feedback", void 0), N([s({
|
|
3033
3092
|
type: Boolean,
|
|
3034
3093
|
attribute: "show-notification"
|
|
3035
|
-
})], $.prototype, "showNotification", void 0),
|
|
3094
|
+
})], $.prototype, "showNotification", void 0), N([s({
|
|
3036
3095
|
type: Boolean,
|
|
3037
3096
|
attribute: "notification-active"
|
|
3038
|
-
})], $.prototype, "notificationActive", void 0),
|
|
3097
|
+
})], $.prototype, "notificationActive", void 0), N([s({
|
|
3039
3098
|
type: Boolean,
|
|
3040
3099
|
attribute: "open",
|
|
3041
3100
|
reflect: !0
|
|
3042
|
-
})], $.prototype, "open", void 0),
|
|
3101
|
+
})], $.prototype, "open", void 0), N([l()], $.prototype, "_currentItem", void 0), N([l()], $.prototype, "_resolvedModules", void 0), N([l()], $.prototype, "_modulesLoading", void 0), $ = N([o("vsn-navigation")], $);
|
|
3043
3102
|
//#endregion
|
|
3044
3103
|
export { de as SearchError, $ as VSNNavigation, g as isTreeLeaf, _ as isTreeParent };
|