@tilde-nlp/ngx-menu 8.1.56 → 8.1.58
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/fesm2022/tilde-nlp-ngx-menu.mjs +233 -141
- package/fesm2022/tilde-nlp-ngx-menu.mjs.map +1 -1
- package/index.d.ts +27 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Optional, Inject, Component, Input, EventEmitter, computed, Output, inject, input, output, NgModule } from '@angular/core';
|
|
2
|
+
import { signal, Injectable, Optional, Inject, Component, Input, EventEmitter, computed, Output, inject, input, output, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@tilde-nlp/ngx-common';
|
|
4
4
|
import { AccessibilityContrasts, ResolutionHelper, UILanguageService, AccessibilityDialogComponent, PlausibleModule, SelectLanguageDialogComponent } from '@tilde-nlp/ngx-common';
|
|
5
5
|
import * as i1$1 from '@angular/router';
|
|
@@ -52,15 +52,16 @@ class StarpiMenuService {
|
|
|
52
52
|
this.menuConfig = menuConfig;
|
|
53
53
|
this.iconService = iconService;
|
|
54
54
|
this.svgIconNamePrefix = "strapi-menu-icon-";
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
55
|
+
this.apiUrl = '';
|
|
56
|
+
this.strapiMenu = signal(null, ...(ngDevMode ? [{ debugName: "strapiMenu" }] : []));
|
|
57
|
+
this.apiUrl = strapiConfig?.apiUrl;
|
|
58
58
|
this.appId = menuConfig.appId;
|
|
59
59
|
}
|
|
60
60
|
getMenuItems() {
|
|
61
61
|
const responseObs = this.strapiSubscription.subscribeSingleType(SingleTypes.MENU)
|
|
62
62
|
.pipe(map((menu) => {
|
|
63
|
-
this.
|
|
63
|
+
this.strapiMenu.set(menu);
|
|
64
|
+
menu?.profileItems?.forEach((item) => this.registerSvgIcon(item.icon));
|
|
64
65
|
let items = menu?.items;
|
|
65
66
|
const convertedItems = [];
|
|
66
67
|
if (!items || items.length === 0) {
|
|
@@ -69,15 +70,7 @@ class StarpiMenuService {
|
|
|
69
70
|
items = this.filterMenuItems(items);
|
|
70
71
|
items.forEach((menu) => {
|
|
71
72
|
menu.link = this.addBaseUrlIfNecessary(menu.link);
|
|
72
|
-
|
|
73
|
-
if (originalMenuIcon?.url.startsWith('/')) {
|
|
74
|
-
originalMenuIcon.url = this.imgBaseUrl + originalMenuIcon.url;
|
|
75
|
-
}
|
|
76
|
-
if (originalMenuIcon?.ext === MENU_ICON_STRAPI_EXTENSION) {
|
|
77
|
-
// add custom prefix so that it is not easy to mix with other icons in registry
|
|
78
|
-
menu.icon.name = this.svgIconNamePrefix + originalMenuIcon.name;
|
|
79
|
-
this.iconService.registerIconFromUrl(originalMenuIcon.name, originalMenuIcon.url);
|
|
80
|
-
}
|
|
73
|
+
this.registerSvgIcon(menu.icon);
|
|
81
74
|
convertedItems.push(this.convertToCustomMenuItem(menu));
|
|
82
75
|
});
|
|
83
76
|
return convertedItems;
|
|
@@ -87,6 +80,19 @@ class StarpiMenuService {
|
|
|
87
80
|
unsubscribe() {
|
|
88
81
|
this.strapiSubscription.unsubscribe(SingleTypes.MENU);
|
|
89
82
|
}
|
|
83
|
+
registerSvgIcon(icon) {
|
|
84
|
+
if (!icon) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (icon.url?.startsWith('/')) {
|
|
88
|
+
icon.url = this.apiUrl + icon.url;
|
|
89
|
+
}
|
|
90
|
+
if (icon.ext === MENU_ICON_STRAPI_EXTENSION) {
|
|
91
|
+
// add custom prefix so that it is not easy to mix with other icons in registry
|
|
92
|
+
icon.name = this.svgIconNamePrefix + icon.name;
|
|
93
|
+
this.iconService.registerIconFromUrl(icon.name, icon.url);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
90
96
|
filterMenuItems(items) {
|
|
91
97
|
return items.filter((item) => {
|
|
92
98
|
const isDisabled = item?.disabled;
|
|
@@ -180,8 +186,11 @@ class MenuItemsService {
|
|
|
180
186
|
get strapiDataLocation() { return this.menuSharedConfig?.strapiDataLocation ?? StrapiDataLocation.END; }
|
|
181
187
|
get mergedGroups() { return this._mergedGroups; }
|
|
182
188
|
get menuItemGroups() { return this.menuSharedConfig.itemGroups; }
|
|
183
|
-
get
|
|
184
|
-
return this.strapiService.
|
|
189
|
+
get strapiMenu() {
|
|
190
|
+
return this.strapiService.strapiMenu;
|
|
191
|
+
}
|
|
192
|
+
get strapiApiUrl() {
|
|
193
|
+
return this.strapiService.apiUrl;
|
|
185
194
|
}
|
|
186
195
|
constructor(router, config, strapiService) {
|
|
187
196
|
this.router = router;
|
|
@@ -331,11 +340,11 @@ class NavBaseComponent {
|
|
|
331
340
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NavBaseComponent, { className: "NavBaseComponent", filePath: "lib/components/nav-base/nav-base.component.ts", lineNumber: 14 }); })();
|
|
332
341
|
|
|
333
342
|
const _c0$3 = ["*"];
|
|
334
|
-
function
|
|
343
|
+
function SideNavMenuComponent_a_15_Template(rf, ctx) { if (rf & 1) {
|
|
335
344
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
336
345
|
i0.ɵɵelementStart(0, "a", 1);
|
|
337
346
|
i0.ɵɵpipe(1, "translate");
|
|
338
|
-
i0.ɵɵlistener("click", function
|
|
347
|
+
i0.ɵɵlistener("click", function SideNavMenuComponent_a_15_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.logoClick($event)); });
|
|
339
348
|
i0.ɵɵelement(2, "img", 2);
|
|
340
349
|
i0.ɵɵelementStart(3, "span", 3);
|
|
341
350
|
i0.ɵɵtext(4);
|
|
@@ -348,50 +357,50 @@ function SideNavMenuComponent_a_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
348
357
|
i0.ɵɵadvance(2);
|
|
349
358
|
i0.ɵɵproperty("src", ctx_r1.logoImageSource(), i0.ɵɵsanitizeUrl);
|
|
350
359
|
i0.ɵɵadvance(2);
|
|
351
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.productName, " ");
|
|
360
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.strapiMenuTitle() ?? ctx_r1.productName, " ");
|
|
352
361
|
} }
|
|
353
|
-
function
|
|
362
|
+
function SideNavMenuComponent_Conditional_26_Template(rf, ctx) { if (rf & 1) {
|
|
354
363
|
i0.ɵɵelement(0, "lib-menu-accessibility", 15);
|
|
355
364
|
} if (rf & 2) {
|
|
356
365
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
357
366
|
i0.ɵɵproperty("isCollapsed", ctx_r1.collapsed)("baseUrl", ctx_r1.baseUrl);
|
|
358
367
|
} }
|
|
359
|
-
function
|
|
368
|
+
function SideNavMenuComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
360
369
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
361
370
|
i0.ɵɵelementStart(0, "lib-menu-lang-switcher", 20);
|
|
362
|
-
i0.ɵɵlistener("changeLanguageEvent", function
|
|
371
|
+
i0.ɵɵlistener("changeLanguageEvent", function SideNavMenuComponent_Conditional_27_Template_lib_menu_lang_switcher_changeLanguageEvent_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeLanguage($event)); });
|
|
363
372
|
i0.ɵɵelementEnd();
|
|
364
373
|
} if (rf & 2) {
|
|
365
374
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
366
375
|
i0.ɵɵproperty("isCollapsed", ctx_r1.collapsed)("languages", ctx_r1.supportedLanguages);
|
|
367
376
|
} }
|
|
368
|
-
function
|
|
377
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
369
378
|
i0.ɵɵtext(0, " \u00A0\u00A0|\u00A0\u00A0 ");
|
|
370
379
|
} }
|
|
371
|
-
function
|
|
380
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
372
381
|
i0.ɵɵelementStart(0, "a", 21);
|
|
373
382
|
i0.ɵɵtext(1);
|
|
374
383
|
i0.ɵɵelementEnd();
|
|
375
|
-
i0.ɵɵconditionalCreate(2,
|
|
384
|
+
i0.ɵɵconditionalCreate(2, SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Conditional_2_Template, 1, 0);
|
|
376
385
|
} if (rf & 2) {
|
|
377
386
|
const item_r4 = ctx.$implicit;
|
|
378
|
-
const ɵ$
|
|
387
|
+
const ɵ$index_67_r5 = ctx.$index;
|
|
379
388
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
380
389
|
i0.ɵɵproperty("href", item_r4.link, i0.ɵɵsanitizeUrl);
|
|
381
390
|
i0.ɵɵadvance();
|
|
382
391
|
i0.ɵɵtextInterpolate(item_r4.title);
|
|
383
392
|
i0.ɵɵadvance();
|
|
384
|
-
i0.ɵɵconditional(ɵ$
|
|
393
|
+
i0.ɵɵconditional(ɵ$index_67_r5 !== ctx_r1.footerItems.length - 1 ? 2 : -1);
|
|
385
394
|
} }
|
|
386
|
-
function
|
|
387
|
-
i0.ɵɵrepeaterCreate(0,
|
|
395
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
396
|
+
i0.ɵɵrepeaterCreate(0, SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Template, 3, 3, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
388
397
|
} if (rf & 2) {
|
|
389
398
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
390
399
|
i0.ɵɵrepeater(ctx_r1.footerItems);
|
|
391
400
|
} }
|
|
392
|
-
function
|
|
401
|
+
function SideNavMenuComponent_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
393
402
|
i0.ɵɵelementStart(0, "div", 19);
|
|
394
|
-
i0.ɵɵconditionalCreate(1,
|
|
403
|
+
i0.ɵɵconditionalCreate(1, SideNavMenuComponent_Conditional_31_Conditional_1_Template, 2, 0);
|
|
395
404
|
i0.ɵɵelementEnd();
|
|
396
405
|
} if (rf & 2) {
|
|
397
406
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -400,7 +409,9 @@ function SideNavMenuComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
400
409
|
} }
|
|
401
410
|
class SideNavMenuComponent extends NavBaseComponent {
|
|
402
411
|
#username;
|
|
403
|
-
get username() {
|
|
412
|
+
get username() {
|
|
413
|
+
return this.#username;
|
|
414
|
+
}
|
|
404
415
|
set username(value) {
|
|
405
416
|
// if username is passed whith whitespace in begginining, it breaks UI, so trim it for safety.
|
|
406
417
|
this.#username = value?.trim();
|
|
@@ -409,7 +420,7 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
409
420
|
return this.collapsed ? this.menuSettings.collapsedWidth : this.menuSettings.expandedWidth;
|
|
410
421
|
}
|
|
411
422
|
get footerItems() {
|
|
412
|
-
return this.menuItemsService.footerItems;
|
|
423
|
+
return this.menuItemsService.strapiMenu()?.footerItems;
|
|
413
424
|
}
|
|
414
425
|
constructor(strapiLinkService, domService, menuItems, accessibility) {
|
|
415
426
|
super(menuItems);
|
|
@@ -428,30 +439,56 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
428
439
|
openExternalLinksInSameTab: false,
|
|
429
440
|
useLargeLoginButton: false,
|
|
430
441
|
showAccessibility: true,
|
|
431
|
-
userOptions: []
|
|
442
|
+
userOptions: [],
|
|
443
|
+
customIcons: {
|
|
444
|
+
customOpenIcon: 'keyboard_double_arrow_right',
|
|
445
|
+
customCloseIcon: 'keyboard_double_arrow_left',
|
|
446
|
+
customMobileCloseIcon: 'close',
|
|
447
|
+
customMobileOpenIcon: 'menu',
|
|
448
|
+
},
|
|
432
449
|
};
|
|
433
450
|
this.useDefaultLanguageSwitcher = true;
|
|
434
451
|
this.changeLanguageEvent = new EventEmitter();
|
|
435
452
|
this.loginEvent = new EventEmitter();
|
|
436
453
|
this.collapsed = false;
|
|
437
|
-
this.COLLAPSED_LOCAL_STORAGE_KEY =
|
|
454
|
+
this.COLLAPSED_LOCAL_STORAGE_KEY = 'TLD_MENU_SIDE_NAV_COLLAPSED';
|
|
438
455
|
//#region Plausible event variables for collapse button
|
|
439
|
-
this.COLLAPSE_PLAUSIBLE_EVENT_ID =
|
|
440
|
-
this.COLLAPSE_PLAUSIBLE_ACTION_KEY =
|
|
441
|
-
this.LOGOCLICK_PLAUSIBLE_ACTION_ID =
|
|
456
|
+
this.COLLAPSE_PLAUSIBLE_EVENT_ID = 'collapseMenu';
|
|
457
|
+
this.COLLAPSE_PLAUSIBLE_ACTION_KEY = 'action';
|
|
458
|
+
this.LOGOCLICK_PLAUSIBLE_ACTION_ID = 'tilde_logo_click';
|
|
442
459
|
this.LOGOCLICK_PLAUSIBLE_EVENT = {
|
|
443
460
|
eventId: this.LOGOCLICK_PLAUSIBLE_ACTION_ID,
|
|
444
|
-
properties: []
|
|
461
|
+
properties: [],
|
|
445
462
|
};
|
|
446
463
|
this.EXPAND_PLAUSIBLE_EVENT = {
|
|
447
464
|
eventId: this.COLLAPSE_PLAUSIBLE_EVENT_ID,
|
|
448
|
-
properties: [{ key: this.COLLAPSE_PLAUSIBLE_ACTION_KEY, value:
|
|
465
|
+
properties: [{ key: this.COLLAPSE_PLAUSIBLE_ACTION_KEY, value: 'expand' }],
|
|
449
466
|
};
|
|
450
467
|
this.COLLAPSE_PLAUSIBLE_EVENT = {
|
|
451
468
|
eventId: this.COLLAPSE_PLAUSIBLE_EVENT_ID,
|
|
452
|
-
properties: [{ key: this.COLLAPSE_PLAUSIBLE_ACTION_KEY, value:
|
|
469
|
+
properties: [{ key: this.COLLAPSE_PLAUSIBLE_ACTION_KEY, value: 'collapse' }],
|
|
453
470
|
};
|
|
471
|
+
this.userOptions = computed(() => {
|
|
472
|
+
const strapiItems = this.menuItemsService.strapiMenu()?.profileItems ?? [];
|
|
473
|
+
const mappedStrapiItems = strapiItems.map((item) => ({
|
|
474
|
+
label: item.title,
|
|
475
|
+
permission: item.permission,
|
|
476
|
+
icon: {
|
|
477
|
+
name: item.icon?.name,
|
|
478
|
+
isCustom: true,
|
|
479
|
+
},
|
|
480
|
+
link: {
|
|
481
|
+
href: item.link,
|
|
482
|
+
isExternal: item.externalLink,
|
|
483
|
+
},
|
|
484
|
+
}));
|
|
485
|
+
return [...mappedStrapiItems, ...this.menuSettings.userOptions].filter((option) => this.hasPermission(option.permission));
|
|
486
|
+
}, ...(ngDevMode ? [{ debugName: "userOptions" }] : []));
|
|
454
487
|
this.logoImageSource = computed(() => {
|
|
488
|
+
const strapiLogo = this.menuItemsService.strapiMenu()?.logo;
|
|
489
|
+
if (strapiLogo) {
|
|
490
|
+
return `${this.menuItems.strapiApiUrl}${strapiLogo.url}`;
|
|
491
|
+
}
|
|
455
492
|
const preferences = this.accessibility.preferences();
|
|
456
493
|
if (preferences.contrast !== AccessibilityContrasts.BASE) {
|
|
457
494
|
return this.menuSettings.menuLogo.replace('logo', `logo-${preferences.contrast}`);
|
|
@@ -460,6 +497,9 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
460
497
|
return this.collapsed ? (this.menuSettings.menuLogoCollapsed ?? this.menuSettings.menuLogo) : this.menuSettings.menuLogo;
|
|
461
498
|
}
|
|
462
499
|
}, ...(ngDevMode ? [{ debugName: "logoImageSource" }] : []));
|
|
500
|
+
this.strapiMenuTitle = computed(() => {
|
|
501
|
+
return this.menuItemsService.strapiMenu()?.title;
|
|
502
|
+
}, ...(ngDevMode ? [{ debugName: "strapiMenuTitle" }] : []));
|
|
463
503
|
this.isMobileRes = ResolutionHelper.isMobileRes();
|
|
464
504
|
this.isViewIncreased = computed(() => {
|
|
465
505
|
const isIncreased = this.accessibility.preferences().fontSizeIndex > 0;
|
|
@@ -473,6 +513,7 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
473
513
|
ngOnInit() {
|
|
474
514
|
super.ngOnInit();
|
|
475
515
|
this.getColapsedFromLocalStorage();
|
|
516
|
+
this.setIcons();
|
|
476
517
|
}
|
|
477
518
|
login() {
|
|
478
519
|
this.loginEvent.emit();
|
|
@@ -496,7 +537,8 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
496
537
|
if (!this.domService.localStorage) {
|
|
497
538
|
return;
|
|
498
539
|
}
|
|
499
|
-
this.collapsed =
|
|
540
|
+
this.collapsed =
|
|
541
|
+
this.domService.localStorage.getItem(this.COLLAPSED_LOCAL_STORAGE_KEY) == 'true' || ResolutionHelper.isMobileRes() ? true : false;
|
|
500
542
|
}
|
|
501
543
|
setColapsedFromLocalStorage() {
|
|
502
544
|
if (!this.domService.localStorage) {
|
|
@@ -504,8 +546,23 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
504
546
|
}
|
|
505
547
|
this.domService.localStorage.setItem(this.COLLAPSED_LOCAL_STORAGE_KEY, this.collapsed.toString());
|
|
506
548
|
}
|
|
549
|
+
setIcons() {
|
|
550
|
+
const { customOpenIcon, customCloseIcon, customMobileCloseIcon, customMobileOpenIcon } = this.menuSettings.customIcons || {};
|
|
551
|
+
this.customIcons = {
|
|
552
|
+
customOpenIcon: customOpenIcon ?? 'keyboard_double_arrow_right',
|
|
553
|
+
customCloseIcon: customCloseIcon ?? 'keyboard_double_arrow_left',
|
|
554
|
+
customMobileCloseIcon: customMobileCloseIcon ?? 'close',
|
|
555
|
+
customMobileOpenIcon: customMobileOpenIcon ?? 'menu',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
hasPermission(permission) {
|
|
559
|
+
if (permission === undefined || permission === null) {
|
|
560
|
+
return true;
|
|
561
|
+
}
|
|
562
|
+
return this.menuItems.menuSharedConfig.permissions?.includes(permission) ?? false;
|
|
563
|
+
}
|
|
507
564
|
static { this.ɵfac = function SideNavMenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SideNavMenuComponent)(i0.ɵɵdirectiveInject(i1.StrapiLinkService), i0.ɵɵdirectiveInject(i2.DOMService), i0.ɵɵdirectiveInject(MenuItemsService), i0.ɵɵdirectiveInject(i2.AccessibilityService)); }; }
|
|
508
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideNavMenuComponent, selectors: [["lib-side-nav-menu"]], inputs: { username: "username", menuSettings: "menuSettings", productName: "productName", supportedLanguages: "supportedLanguages", useDefaultLanguageSwitcher: "useDefaultLanguageSwitcher" }, outputs: { changeLanguageEvent: "changeLanguageEvent", loginEvent: "loginEvent" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$3, decls:
|
|
565
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideNavMenuComponent, selectors: [["lib-side-nav-menu"]], inputs: { username: "username", menuSettings: "menuSettings", productName: "productName", supportedLanguages: "supportedLanguages", useDefaultLanguageSwitcher: "useDefaultLanguageSwitcher" }, outputs: { changeLanguageEvent: "changeLanguageEvent", loginEvent: "loginEvent" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$3, decls: 32, vars: 50, consts: [[1, "mobile-header", 3, "fxHide", "ngClass"], ["fxFlex", "3.125em", "fxLayoutAlign", "start center", 3, "click", "libPlausibleEvent", "href"], ["height", "40", "width", "40", "alt", "logo", 1, "menu-logo", 3, "src"], [1, "menu-product-name"], ["mat-icon-button", "", 1, "toggler", 3, "click", "libPlausibleEvent"], ["fxHide.gt-xs", "", 3, "ngClass.lt-sm"], ["fxHide.lt-sm", ""], ["fxLayout", "column", 1, "menu-container", 3, "ngClass.lt-sm", "ngClass"], ["fxLayout", "column", "fxFlexFill", "", 1, "content"], ["fxLayout", "row", 1, "menu-container-header", 3, "fxLayoutAlign"], ["fxFlex", "3.125em", "fxLayoutAlign", "start center", 3, "libPlausibleEvent", "no-click", "href", "click", 4, "ngIf"], ["mat-icon-button", "", 1, "toggler", 3, "click", "libPlausibleEvent", "matTooltip"], ["fxLayout", "column", 1, "menu-wrapper"], ["role", "navigation", 3, "toggleCollapseEvent", "direction", "isOpen", "active", "expandableMenuChildren", "openExternalLinksInSameTab"], ["fxHide.gt-xs", "", 1, "menu-divider"], [3, "isCollapsed", "baseUrl"], [3, "isCollapsed", "languages"], ["fxFlex", "", "fxLayout", "column"], [3, "linkCallbackEvent", "loginEvent", "userOptions", "username", "collapsed", "useLargeLoginButton"], [1, "menu-footer"], [3, "changeLanguageEvent", "isCollapsed", "languages"], ["target", "_blank", 3, "href"]], template: function SideNavMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
509
566
|
i0.ɵɵprojectionDef();
|
|
510
567
|
i0.ɵɵelementStart(0, "div", 0)(1, "a", 1);
|
|
511
568
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -517,50 +574,59 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
517
574
|
i0.ɵɵelementStart(6, "button", 4);
|
|
518
575
|
i0.ɵɵpipe(7, "translate");
|
|
519
576
|
i0.ɵɵlistener("click", function SideNavMenuComponent_Template_button_click_6_listener() { return ctx.toggleCollapse(); });
|
|
520
|
-
i0.ɵɵelementStart(8, "mat-icon");
|
|
521
|
-
i0.ɵɵtext(9
|
|
522
|
-
i0.ɵɵelementEnd()()();
|
|
523
|
-
i0.ɵɵelementStart(10, "div", 5)(11, "div", 6)(12, "div", 7);
|
|
524
|
-
i0.ɵɵtemplate(13, SideNavMenuComponent_a_13_Template, 5, 9, "a", 8);
|
|
525
|
-
i0.ɵɵelementStart(14, "button", 9);
|
|
526
|
-
i0.ɵɵpipe(15, "translate");
|
|
527
|
-
i0.ɵɵpipe(16, "translate");
|
|
528
|
-
i0.ɵɵlistener("click", function SideNavMenuComponent_Template_button_click_14_listener() { return ctx.toggleCollapse(); });
|
|
529
|
-
i0.ɵɵelementStart(17, "mat-icon", 10);
|
|
530
|
-
i0.ɵɵtext(18, "close");
|
|
577
|
+
i0.ɵɵelementStart(8, "mat-icon", 5);
|
|
578
|
+
i0.ɵɵtext(9);
|
|
531
579
|
i0.ɵɵelementEnd();
|
|
532
|
-
i0.ɵɵelementStart(
|
|
580
|
+
i0.ɵɵelementStart(10, "mat-icon", 6);
|
|
581
|
+
i0.ɵɵtext(11);
|
|
582
|
+
i0.ɵɵelementEnd()()();
|
|
583
|
+
i0.ɵɵelementStart(12, "div", 7)(13, "div", 8)(14, "div", 9);
|
|
584
|
+
i0.ɵɵtemplate(15, SideNavMenuComponent_a_15_Template, 5, 9, "a", 10);
|
|
585
|
+
i0.ɵɵelementStart(16, "button", 11);
|
|
586
|
+
i0.ɵɵpipe(17, "translate");
|
|
587
|
+
i0.ɵɵpipe(18, "translate");
|
|
588
|
+
i0.ɵɵlistener("click", function SideNavMenuComponent_Template_button_click_16_listener() { return ctx.toggleCollapse(); });
|
|
589
|
+
i0.ɵɵelementStart(19, "mat-icon", 5);
|
|
533
590
|
i0.ɵɵtext(20);
|
|
591
|
+
i0.ɵɵelementEnd();
|
|
592
|
+
i0.ɵɵelementStart(21, "mat-icon", 6);
|
|
593
|
+
i0.ɵɵtext(22);
|
|
534
594
|
i0.ɵɵelementEnd()()();
|
|
535
|
-
i0.ɵɵelementStart(
|
|
536
|
-
i0.ɵɵlistener("toggleCollapseEvent", function
|
|
595
|
+
i0.ɵɵelementStart(23, "div", 12)(24, "menu-columns", 13);
|
|
596
|
+
i0.ɵɵlistener("toggleCollapseEvent", function SideNavMenuComponent_Template_menu_columns_toggleCollapseEvent_24_listener() { return ctx.toggleCollapse(); });
|
|
537
597
|
i0.ɵɵelementEnd();
|
|
538
|
-
i0.ɵɵelement(
|
|
539
|
-
i0.ɵɵconditionalCreate(
|
|
540
|
-
i0.ɵɵconditionalCreate(
|
|
598
|
+
i0.ɵɵelement(25, "div", 14);
|
|
599
|
+
i0.ɵɵconditionalCreate(26, SideNavMenuComponent_Conditional_26_Template, 1, 2, "lib-menu-accessibility", 15);
|
|
600
|
+
i0.ɵɵconditionalCreate(27, SideNavMenuComponent_Conditional_27_Template, 1, 2, "lib-menu-lang-switcher", 16);
|
|
541
601
|
i0.ɵɵelementEnd();
|
|
542
|
-
i0.ɵɵelementStart(
|
|
543
|
-
i0.ɵɵprojection(
|
|
602
|
+
i0.ɵɵelementStart(28, "div", 17);
|
|
603
|
+
i0.ɵɵprojection(29);
|
|
544
604
|
i0.ɵɵelementEnd();
|
|
545
|
-
i0.ɵɵelementStart(
|
|
546
|
-
i0.ɵɵlistener("linkCallbackEvent", function
|
|
605
|
+
i0.ɵɵelementStart(30, "lib-menu-profile", 18);
|
|
606
|
+
i0.ɵɵlistener("linkCallbackEvent", function SideNavMenuComponent_Template_lib_menu_profile_linkCallbackEvent_30_listener($event) { return ctx.linkCallback($event); })("loginEvent", function SideNavMenuComponent_Template_lib_menu_profile_loginEvent_30_listener() { return ctx.login(); });
|
|
547
607
|
i0.ɵɵelementEnd();
|
|
548
|
-
i0.ɵɵconditionalCreate(
|
|
608
|
+
i0.ɵɵconditionalCreate(31, SideNavMenuComponent_Conditional_31_Template, 2, 1, "div", 19);
|
|
549
609
|
i0.ɵɵelementEnd()();
|
|
550
610
|
} if (rf & 2) {
|
|
551
611
|
i0.ɵɵproperty("fxHide", !ctx.collapsed || ctx.collapsed && !ctx.isMobileRes && !ctx.isViewIncreased())("ngClass", ctx.menuSettings.menuVersion);
|
|
552
612
|
i0.ɵɵadvance();
|
|
553
613
|
i0.ɵɵclassProp("no-click", ctx.menuSettings == null ? null : ctx.menuSettings.disableLogoNavigation);
|
|
554
614
|
i0.ɵɵproperty("libPlausibleEvent", ctx.LOGOCLICK_PLAUSIBLE_EVENT)("href", ctx.baseUrl, i0.ɵɵsanitizeUrl);
|
|
555
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2,
|
|
615
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 42, "ARIA_LABELS.LOGO"));
|
|
556
616
|
i0.ɵɵadvance(2);
|
|
557
617
|
i0.ɵɵproperty("src", ctx.logoImageSource(), i0.ɵɵsanitizeUrl);
|
|
558
618
|
i0.ɵɵadvance(2);
|
|
559
|
-
i0.ɵɵtextInterpolate1(" ", ctx.productName, " ");
|
|
619
|
+
i0.ɵɵtextInterpolate1(" ", ctx.strapiMenuTitle() ?? ctx.productName, " ");
|
|
560
620
|
i0.ɵɵadvance();
|
|
561
621
|
i0.ɵɵproperty("libPlausibleEvent", ctx.collapsed ? ctx.EXPAND_PLAUSIBLE_EVENT : ctx.COLLAPSE_PLAUSIBLE_EVENT);
|
|
562
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(7,
|
|
563
|
-
i0.ɵɵadvance(
|
|
622
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(7, 44, "ARIA_LABELS.MENU_TOGGLER"));
|
|
623
|
+
i0.ɵɵadvance(2);
|
|
624
|
+
i0.ɵɵproperty("ngClass.lt-sm", "mob-close-icon");
|
|
625
|
+
i0.ɵɵadvance();
|
|
626
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customMobileOpenIcon : ctx.customIcons.customMobileCloseIcon);
|
|
627
|
+
i0.ɵɵadvance(2);
|
|
628
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customOpenIcon : ctx.customIcons.customCloseIcon);
|
|
629
|
+
i0.ɵɵadvance();
|
|
564
630
|
i0.ɵɵstyleProp("width", ctx.sideNavWidth);
|
|
565
631
|
i0.ɵɵclassProp("accessibility-view", ctx.isViewIncreased())("collapsed", ctx.collapsed);
|
|
566
632
|
i0.ɵɵproperty("ngClass.lt-sm", "mobile")("ngClass", ctx.menuSettings.menuVersion);
|
|
@@ -569,27 +635,29 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
569
635
|
i0.ɵɵadvance();
|
|
570
636
|
i0.ɵɵproperty("ngIf", !ctx.collapsed);
|
|
571
637
|
i0.ɵɵadvance();
|
|
572
|
-
i0.ɵɵproperty("libPlausibleEvent", ctx.collapsed ? ctx.EXPAND_PLAUSIBLE_EVENT : ctx.COLLAPSE_PLAUSIBLE_EVENT)("matTooltip", i0.ɵɵpipeBind1(
|
|
573
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(
|
|
638
|
+
i0.ɵɵproperty("libPlausibleEvent", ctx.collapsed ? ctx.EXPAND_PLAUSIBLE_EVENT : ctx.COLLAPSE_PLAUSIBLE_EVENT)("matTooltip", i0.ɵɵpipeBind1(17, 46, ctx.collapsed ? "MENU.EXPAND" : "MENU.COLLAPSE"));
|
|
639
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(18, 48, "ARIA_LABELS.MENU_TOGGLER"));
|
|
574
640
|
i0.ɵɵadvance(3);
|
|
575
641
|
i0.ɵɵproperty("ngClass.lt-sm", "mob-close-icon");
|
|
576
|
-
i0.ɵɵadvance(
|
|
577
|
-
i0.ɵɵtextInterpolate(ctx.
|
|
642
|
+
i0.ɵɵadvance();
|
|
643
|
+
i0.ɵɵtextInterpolate(ctx.customIcons.customMobileCloseIcon);
|
|
644
|
+
i0.ɵɵadvance(2);
|
|
645
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customOpenIcon : ctx.customIcons.customCloseIcon);
|
|
578
646
|
i0.ɵɵadvance(2);
|
|
579
647
|
i0.ɵɵproperty("direction", ctx.direction)("isOpen", !ctx.collapsed)("active", ctx.active)("expandableMenuChildren", ctx.menuSettings == null ? null : ctx.menuSettings.expandableMenuChildren)("openExternalLinksInSameTab", ctx.menuSettings == null ? null : ctx.menuSettings.openExternalLinksInSameTab);
|
|
580
648
|
i0.ɵɵadvance(2);
|
|
581
|
-
i0.ɵɵconditional((ctx.menuSettings == null ? null : ctx.menuSettings.showAccessibility) ?
|
|
649
|
+
i0.ɵɵconditional((ctx.menuSettings == null ? null : ctx.menuSettings.showAccessibility) ? 26 : -1);
|
|
582
650
|
i0.ɵɵadvance();
|
|
583
|
-
i0.ɵɵconditional(ctx.useDefaultLanguageSwitcher && ctx.supportedLanguages.length > 1 ?
|
|
651
|
+
i0.ɵɵconditional(ctx.useDefaultLanguageSwitcher && ctx.supportedLanguages && ctx.supportedLanguages.length > 1 ? 27 : -1);
|
|
584
652
|
i0.ɵɵadvance(3);
|
|
585
|
-
i0.ɵɵproperty("userOptions", ctx.
|
|
653
|
+
i0.ɵɵproperty("userOptions", ctx.userOptions())("username", ctx.username)("collapsed", ctx.collapsed)("useLargeLoginButton", ctx.menuSettings == null ? null : ctx.menuSettings.useLargeLoginButton);
|
|
586
654
|
i0.ɵɵadvance();
|
|
587
|
-
i0.ɵɵconditional(ctx.footerItems.length ?
|
|
655
|
+
i0.ɵɵconditional((ctx.footerItems == null ? null : ctx.footerItems.length) ? 31 : -1);
|
|
588
656
|
} }, styles: ["a[_ngcontent-%COMP%]{text-decoration:none}.menu-container[_ngcontent-%COMP%]:not(.collapsed) menu-columns[_ngcontent-%COMP%]{margin-right:-12px;padding-right:8px;max-height:fit-content;overflow-y:scroll}.no-click[_ngcontent-%COMP%]{pointer-events:none!important}.mobile-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:23px 27px;background-color:var(--base-100);border:1px solid var(--base-70)}.accessibility-view.menu-container[_ngcontent-%COMP%]:not(.collapsed), .mobile.menu-container[_ngcontent-%COMP%]:not(.collapsed){display:block!important;position:fixed;min-width:100vw;max-width:100vw;min-height:100dvh;z-index:1000} .mobile.menu-container.collapsed, .accessibility-view.menu-container.collapsed{display:none!important}button[_ngcontent-%COMP%]:has(.mob-close-icon){margin-right:10px}.menu-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.menu-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--base-95);background-clip:padding-box}.menu-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--base-100)}.menu-product-name[_ngcontent-%COMP%]{white-space:nowrap;margin-left:12px;font-weight:600;color:var(--base-10)}.menu-container[_ngcontent-%COMP%]{max-height:100dvh;white-space:nowrap;height:100%;transition:width .2s ease;min-height:100dvh;overflow:auto;background:var(--base-100);border-right:2px solid var(--base-95)}.menu-container[_ngcontent-%COMP%] .menu-container-header[_ngcontent-%COMP%]{margin:24px 0;max-height:40px}.menu-container.collapsed[_ngcontent-%COMP%] .menu-container-header[_ngcontent-%COMP%]{margin:24px 0 32px!important}.menu-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:not(.collapsed){overflow-x:hidden;padding:0 12px}.menu-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:not(.collapsed) .menu-logo[_ngcontent-%COMP%]{margin-left:16px;max-width:100%}.menu-container[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .collapsed .profile-wrapper{margin:36px 0!important}[_nghost-%COMP%] .mobile .profile-name{max-width:60vw}[_nghost-%COMP%] .menu-item, [_nghost-%COMP%] .accessibility-btn, [_nghost-%COMP%] .lang-switcher{touch-action:pan-y!important}[_nghost-%COMP%] .menu-item{display:flex;padding:16px!important;border-radius:4px!important}[_nghost-%COMP%] .collapsed .menu-item{padding:0!important;width:40px;height:40px;border-radius:50%!important}[_nghost-%COMP%] .active-menu-item{background-color:var(--base-95)!important}[_nghost-%COMP%] .menu-item-title{margin-left:12px}[_nghost-%COMP%] .child-list .mob-menu-item .menu-item-title{margin-left:36px!important}tld-menu-icon[_ngcontent-%COMP%]{margin-right:10px}[_nghost-%COMP%] button.collapse-btn .mat-mdc-button-persistent-ripple, [_nghost-%COMP%] button.toggler .mat-mdc-button-persistent-ripple{display:none} .cdk-overlay-container .child-menu, .cdk-overlay-container .profile-menu, .cdk-overlay-container .lang-menu{min-width:250px;margin:10px 0}@media (max-width: 600px){ .cdk-overlay-container .child-menu, .cdk-overlay-container .profile-menu, .cdk-overlay-container .lang-menu{min-width:calc(100vw - 32px)!important}} .mat-mdc-menu-item .mat-icon{margin-right:5px!important} .collapsed .profile-wrapper{justify-content:center!important}.menu-divider[_ngcontent-%COMP%]{border:1px solid var(--base-70)}.menu-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px;color:var(--base-40);font-size:.8125rem}.mobile[_ngcontent-%COMP%] .menu-footer[_ngcontent-%COMP%]{font-size:.875rem;justify-content:space-between;margin-right:16px;margin-left:16px}", ".compact-menu menu-columns{margin-bottom:86px} .compact-menu .profile{margin-top:80px!important} .compact-menu .profile-icon{margin-left:10px!important;min-width:28px!important;height:28px!important;font-size:12px!important} .compact-menu .profile-arrow{margin-right:5px!important} .compact-menu .profile-name{margin-left:10px!important;font-size:.875rem!important;font-weight:600!important} .compact-menu .profile-wrapper{padding:6px 0!important;border-radius:16px!important;border:2px solid var(--base-70)} .compact-menu .menu-wrapper{position:relative;height:100%} .compact-menu .lang-switcher{position:absolute;bottom:0} .compact-menu .accessibility-btn{position:absolute;bottom:46px} .compact-menu .menu-item, .compact-menu .lang-switcher, .compact-menu .accessibility-btn{margin:0 2px;padding:8px 12px!important;border-radius:16px!important} .compact-menu .lang-switcher .menu-arrow{margin-right:-8px} .compact-menu .child-list{margin-left:24px;padding:3px 6px 3px 0} .compact-menu.collapsed .child-list{margin-left:0} .compact-menu.collapsed .accessibility-btn, .compact-menu.collapsed .lang-switcher{padding:0!important;border-radius:50%!important} .compact-menu tld-menu-item-link:not(:first-child){margin-top:0!important;margin-bottom:5px} .compact-menu tld-menu-item-link .title-content{font-weight:400!important}"] }); }
|
|
589
657
|
}
|
|
590
658
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SideNavMenuComponent, [{
|
|
591
659
|
type: Component,
|
|
592
|
-
args: [{ selector: 'lib-side-nav-menu', standalone: false, template: "\t<div [fxHide]=\"!collapsed || collapsed && !isMobileRes && !isViewIncreased()\" class=\"mobile-header\" [ngClass]=\"menuSettings.menuVersion\">\r\n\t\t<a\r\n\t\t\t[libPlausibleEvent]=\"LOGOCLICK_PLAUSIBLE_EVENT\"\r\n\t\t\tfxFlex=\"3.125em\"\r\n\t\t\t[href]=\"baseUrl\"\r\n\t\t\t[class.no-click]=\"menuSettings?.disableLogoNavigation\"\r\n\t\t\t[attr.aria-label]=\"'ARIA_LABELS.LOGO' | translate\"\r\n\t\t\t(click)=\"logoClick($event)\"\r\n\t\t\tfxLayoutAlign=\"start center\"\r\n\t\t>\r\n\t\t\t<img height=\"40\" width=\"40\" class=\"menu-logo\" [src]=\"logoImageSource()\" alt=\"logo\" />\r\n\t\t\t<span class=\"menu-product-name\">\r\n\t\t\t\t{{ productName }}\r\n\t\t\t</span>\r\n\t\t</a>\r\n\r\n\t\t<button\r\n\t\t\tmat-icon-button\r\n\t\t\tclass=\"toggler\"\r\n\t\t\t[attr.aria-label]=\"'ARIA_LABELS.MENU_TOGGLER' | translate\"\r\n\t\t\t[libPlausibleEvent]=\"collapsed ? EXPAND_PLAUSIBLE_EVENT : COLLAPSE_PLAUSIBLE_EVENT\"\r\n\t\t\t(click)=\"toggleCollapse()\"\r\n\t\t>\r\n\t\t\t<mat-icon>
|
|
660
|
+
args: [{ selector: 'lib-side-nav-menu', standalone: false, template: "\t<div [fxHide]=\"!collapsed || collapsed && !isMobileRes && !isViewIncreased()\" class=\"mobile-header\" [ngClass]=\"menuSettings.menuVersion\">\r\n\t\t<a\r\n\t\t\t[libPlausibleEvent]=\"LOGOCLICK_PLAUSIBLE_EVENT\"\r\n\t\t\tfxFlex=\"3.125em\"\r\n\t\t\t[href]=\"baseUrl\"\r\n\t\t\t[class.no-click]=\"menuSettings?.disableLogoNavigation\"\r\n\t\t\t[attr.aria-label]=\"'ARIA_LABELS.LOGO' | translate\"\r\n\t\t\t(click)=\"logoClick($event)\"\r\n\t\t\tfxLayoutAlign=\"start center\"\r\n\t\t>\r\n\t\t\t<img height=\"40\" width=\"40\" class=\"menu-logo\" [src]=\"logoImageSource()\" alt=\"logo\" />\r\n\t\t\t<span class=\"menu-product-name\">\r\n\t\t\t\t{{ strapiMenuTitle() ?? productName }}\r\n\t\t\t</span>\r\n\t\t</a>\r\n\r\n\t\t<button\r\n\t\t\tmat-icon-button\r\n\t\t\tclass=\"toggler\"\r\n\t\t\t[attr.aria-label]=\"'ARIA_LABELS.MENU_TOGGLER' | translate\"\r\n\t\t\t[libPlausibleEvent]=\"collapsed ? EXPAND_PLAUSIBLE_EVENT : COLLAPSE_PLAUSIBLE_EVENT\"\r\n\t\t\t(click)=\"toggleCollapse()\"\r\n\t\t>\r\n\t\t\t<mat-icon fxHide.gt-xs [ngClass.lt-sm]=\"'mob-close-icon'\">{{collapsed ? customIcons.customMobileOpenIcon : customIcons.customMobileCloseIcon}}</mat-icon>\r\n <mat-icon fxHide.lt-sm>{{ collapsed ? customIcons.customOpenIcon : customIcons.customCloseIcon }}</mat-icon>\r\n\t\t</button>\r\n\t</div>\r\n\r\n<div \r\n\tclass=\"menu-container\"\r\n\tfxLayout=\"column\" \r\n\t[ngClass.lt-sm]=\"'mobile'\"\r\n\t[class.accessibility-view]=\"isViewIncreased()\"\r\n\t[style.width]=\"sideNavWidth\" \r\n\t[class.collapsed]=\"collapsed\" \r\n\t[ngClass]=\"menuSettings.menuVersion\"\r\n>\r\n\t<div class=\"content\" fxLayout=\"column\" fxFlexFill>\r\n\t\t<div class=\"menu-container-header\" fxLayout=\"row\" [fxLayoutAlign]=\"collapsed ? 'center center' : 'space-between center'\">\r\n\t\t\t<a\r\n\t\t\t\t*ngIf=\"!collapsed\"\r\n\t\t\t\t[libPlausibleEvent]=\"LOGOCLICK_PLAUSIBLE_EVENT\"\r\n\t\t\t\tfxFlex=\"3.125em\"\r\n\t\t\t\t[class.no-click]=\"menuSettings?.disableLogoNavigation\"\r\n\t\t\t\t[href]=\"baseUrl\"\r\n\t\t\t\t[attr.aria-label]=\"'ARIA_LABELS.LOGO' | translate\"\r\n\t\t\t\t(click)=\"logoClick($event)\"\r\n\t\t\t\tfxLayoutAlign=\"start center\"\r\n\t\t\t>\r\n\t\t\t\t<img height=\"40\" width=\"40\" class=\"menu-logo\" [src]=\"logoImageSource()\" alt=\"logo\" />\r\n\t\t\t\t<span class=\"menu-product-name\">\r\n\t\t\t\t\t{{ strapiMenuTitle() ?? productName }}\r\n\t\t\t\t</span>\r\n\t\t\t</a>\r\n\r\n <button\r\n mat-icon-button\r\n class=\"toggler\"\r\n [attr.aria-label]=\"'ARIA_LABELS.MENU_TOGGLER' | translate\"\r\n [libPlausibleEvent]=\"collapsed ? EXPAND_PLAUSIBLE_EVENT : COLLAPSE_PLAUSIBLE_EVENT\"\r\n [matTooltip]=\"(collapsed ? 'MENU.EXPAND' : 'MENU.COLLAPSE') | translate\"\r\n (click)=\"toggleCollapse()\"\r\n >\r\n <mat-icon fxHide.gt-xs [ngClass.lt-sm]=\"'mob-close-icon'\">{{customIcons.customMobileCloseIcon}}</mat-icon>\r\n <mat-icon fxHide.lt-sm>{{ collapsed ? customIcons.customOpenIcon : customIcons.customCloseIcon }}</mat-icon>\r\n </button>\r\n </div>\r\n\r\n\t\t<div class=\"menu-wrapper\" fxLayout=\"column\">\r\n\t\t\t<menu-columns\r\n\t\t\t\t(toggleCollapseEvent)=\"toggleCollapse()\"\r\n\t\t\t\t[direction]=\"direction\"\r\n\t\t\t\trole=\"navigation\"\r\n\t\t\t\t[isOpen]=\"!collapsed\"\r\n\t\t\t\t[active]=\"active\"\r\n\t\t\t\t[expandableMenuChildren]=\"menuSettings?.expandableMenuChildren\"\r\n\t\t\t\t[openExternalLinksInSameTab]=\"menuSettings?.openExternalLinksInSameTab\"\r\n\t\t\t></menu-columns>\r\n\r\n\t\t\t<div fxHide.gt-xs class=\"menu-divider\"></div>\r\n\r\n\t\t\t@if (menuSettings?.showAccessibility) {\r\n\t\t\t\t<lib-menu-accessibility [isCollapsed]=\"collapsed\" [baseUrl]=\"baseUrl\"></lib-menu-accessibility>\r\n\t\t\t}\r\n\t\t\t@if (useDefaultLanguageSwitcher && supportedLanguages && supportedLanguages.length > 1) {\r\n\t\t\t<lib-menu-lang-switcher [isCollapsed]=\"collapsed\" [languages]=\"supportedLanguages\" (changeLanguageEvent)=\"changeLanguage($event)\"></lib-menu-lang-switcher>\r\n\t\t\t}\r\n\t\t</div>\r\n\t\t<div fxFlex fxLayout=\"column\">\r\n\t\t\t<ng-content></ng-content>\r\n\t\t</div>\r\n\r\n\t\t<lib-menu-profile \r\n\t\t\t[userOptions]=\"userOptions()\" \r\n\t\t\t[username]=\"username\" \r\n\t\t\t[collapsed]=\"collapsed\" \r\n\t\t\t[useLargeLoginButton]=\"menuSettings?.useLargeLoginButton\"\r\n\t\t\t(linkCallbackEvent)=\"linkCallback($event)\"\r\n\t\t\t(loginEvent)=\"login()\"\t\r\n\t\t>\r\n\t\t</lib-menu-profile>\r\n\r\n @if (footerItems?.length) {\r\n <div class=\"menu-footer\">\r\n @if (!collapsed) {\r\n @for (item of footerItems; let i = $index; track i) {\r\n <a [href]=\"item.link\" target=\"_blank\">{{ item.title }}</a>\r\n \r\n @if (i !== footerItems!.length - 1) { \r\n | \r\n } \r\n }\r\n }\r\n </div>\r\n }\r\n\t</div>\r\n</div>\r\n", styles: ["a{text-decoration:none}.menu-container:not(.collapsed) menu-columns{margin-right:-12px;padding-right:8px;max-height:fit-content;overflow-y:scroll}.no-click{pointer-events:none!important}.mobile-header{display:flex;justify-content:space-between;padding:23px 27px;background-color:var(--base-100);border:1px solid var(--base-70)}.accessibility-view.menu-container:not(.collapsed),.mobile.menu-container:not(.collapsed){display:block!important;position:fixed;min-width:100vw;max-width:100vw;min-height:100dvh;z-index:1000}::ng-deep .mobile.menu-container.collapsed,::ng-deep .accessibility-view.menu-container.collapsed{display:none!important}button:has(.mob-close-icon){margin-right:10px}.menu-container ::-webkit-scrollbar{width:5px}.menu-container ::-webkit-scrollbar-thumb{background:var(--base-95);background-clip:padding-box}.menu-container ::-webkit-scrollbar-track{background:var(--base-100)}.menu-product-name{white-space:nowrap;margin-left:12px;font-weight:600;color:var(--base-10)}.menu-container{max-height:100dvh;white-space:nowrap;height:100%;transition:width .2s ease;min-height:100dvh;overflow:auto;background:var(--base-100);border-right:2px solid var(--base-95)}.menu-container .menu-container-header{margin:24px 0;max-height:40px}.menu-container.collapsed .menu-container-header{margin:24px 0 32px!important}.menu-container .content:not(.collapsed){overflow-x:hidden;padding:0 12px}.menu-container .content:not(.collapsed) .menu-logo{margin-left:16px;max-width:100%}.menu-container .divider{width:100%}:host ::ng-deep .collapsed .profile-wrapper{margin:36px 0!important}:host ::ng-deep .mobile .profile-name{max-width:60vw}:host ::ng-deep .menu-item,:host ::ng-deep .accessibility-btn,:host ::ng-deep .lang-switcher{touch-action:pan-y!important}:host ::ng-deep .menu-item{display:flex;padding:16px!important;border-radius:4px!important}:host ::ng-deep .collapsed .menu-item{padding:0!important;width:40px;height:40px;border-radius:50%!important}:host ::ng-deep .active-menu-item{background-color:var(--base-95)!important}:host ::ng-deep .menu-item-title{margin-left:12px}:host ::ng-deep .child-list .mob-menu-item .menu-item-title{margin-left:36px!important}tld-menu-icon{margin-right:10px}:host::ng-deep button.collapse-btn .mat-mdc-button-persistent-ripple,:host::ng-deep button.toggler .mat-mdc-button-persistent-ripple{display:none}::ng-deep .cdk-overlay-container .child-menu,::ng-deep .cdk-overlay-container .profile-menu,::ng-deep .cdk-overlay-container .lang-menu{min-width:250px;margin:10px 0}@media (max-width: 600px){::ng-deep .cdk-overlay-container .child-menu,::ng-deep .cdk-overlay-container .profile-menu,::ng-deep .cdk-overlay-container .lang-menu{min-width:calc(100vw - 32px)!important}}::ng-deep .mat-mdc-menu-item .mat-icon{margin-right:5px!important}::ng-deep .collapsed .profile-wrapper{justify-content:center!important}.menu-divider{border:1px solid var(--base-70)}.menu-footer{display:flex;justify-content:center;margin-bottom:20px;color:var(--base-40);font-size:.8125rem}.mobile .menu-footer{font-size:.875rem;justify-content:space-between;margin-right:16px;margin-left:16px}\n", "::ng-deep .compact-menu menu-columns{margin-bottom:86px}::ng-deep .compact-menu .profile{margin-top:80px!important}::ng-deep .compact-menu .profile-icon{margin-left:10px!important;min-width:28px!important;height:28px!important;font-size:12px!important}::ng-deep .compact-menu .profile-arrow{margin-right:5px!important}::ng-deep .compact-menu .profile-name{margin-left:10px!important;font-size:.875rem!important;font-weight:600!important}::ng-deep .compact-menu .profile-wrapper{padding:6px 0!important;border-radius:16px!important;border:2px solid var(--base-70)}::ng-deep .compact-menu .menu-wrapper{position:relative;height:100%}::ng-deep .compact-menu .lang-switcher{position:absolute;bottom:0}::ng-deep .compact-menu .accessibility-btn{position:absolute;bottom:46px}::ng-deep .compact-menu .menu-item,::ng-deep .compact-menu .lang-switcher,::ng-deep .compact-menu .accessibility-btn{margin:0 2px;padding:8px 12px!important;border-radius:16px!important}::ng-deep .compact-menu .lang-switcher .menu-arrow{margin-right:-8px}::ng-deep .compact-menu .child-list{margin-left:24px;padding:3px 6px 3px 0}::ng-deep .compact-menu.collapsed .child-list{margin-left:0}::ng-deep .compact-menu.collapsed .accessibility-btn,::ng-deep .compact-menu.collapsed .lang-switcher{padding:0!important;border-radius:50%!important}::ng-deep .compact-menu tld-menu-item-link:not(:first-child){margin-top:0!important;margin-bottom:5px}::ng-deep .compact-menu tld-menu-item-link .title-content{font-weight:400!important}\n"] }]
|
|
593
661
|
}], () => [{ type: i1.StrapiLinkService }, { type: i2.DOMService }, { type: MenuItemsService }, { type: i2.AccessibilityService }], { username: [{
|
|
594
662
|
type: Input
|
|
595
663
|
}], menuSettings: [{
|
|
@@ -605,7 +673,7 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
605
673
|
}], loginEvent: [{
|
|
606
674
|
type: Output
|
|
607
675
|
}] }); })();
|
|
608
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SideNavMenuComponent, { className: "SideNavMenuComponent", filePath: "lib/components/side-nav-menu/side-nav-menu.component.ts", lineNumber:
|
|
676
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SideNavMenuComponent, { className: "SideNavMenuComponent", filePath: "lib/components/side-nav-menu/side-nav-menu.component.ts", lineNumber: 18 }); })();
|
|
609
677
|
|
|
610
678
|
var MenuLayoutDirection;
|
|
611
679
|
(function (MenuLayoutDirection) {
|
|
@@ -1098,7 +1166,7 @@ class MenuItemWithChildrenComponent {
|
|
|
1098
1166
|
|
|
1099
1167
|
const _c0$1 = a0 => ({ menuItem: a0 });
|
|
1100
1168
|
function MenuItemListComponent_Conditional_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
1101
|
-
i0.ɵɵelementStart(0, "mat-icon",
|
|
1169
|
+
i0.ɵɵelementStart(0, "mat-icon", 11);
|
|
1102
1170
|
i0.ɵɵtext(1);
|
|
1103
1171
|
i0.ɵɵelementEnd();
|
|
1104
1172
|
} if (rf & 2) {
|
|
@@ -1107,7 +1175,7 @@ function MenuItemListComponent_Conditional_1_mat_icon_1_Template(rf, ctx) { if (
|
|
|
1107
1175
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.menuItemGroup.titleIcon, " ");
|
|
1108
1176
|
} }
|
|
1109
1177
|
function MenuItemListComponent_Conditional_1_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1110
|
-
i0.ɵɵelementStart(0, "button",
|
|
1178
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
1111
1179
|
i0.ɵɵpipe(1, "translate");
|
|
1112
1180
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
1113
1181
|
i0.ɵɵtext(3);
|
|
@@ -1119,8 +1187,8 @@ function MenuItemListComponent_Conditional_1_button_2_Template(rf, ctx) { if (rf
|
|
|
1119
1187
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.titleNavigation.icon);
|
|
1120
1188
|
} }
|
|
1121
1189
|
function MenuItemListComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1122
|
-
i0.ɵɵelementStart(0, "div",
|
|
1123
|
-
i0.ɵɵtemplate(1, MenuItemListComponent_Conditional_1_mat_icon_1_Template, 2, 1, "mat-icon",
|
|
1190
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
1191
|
+
i0.ɵɵtemplate(1, MenuItemListComponent_Conditional_1_mat_icon_1_Template, 2, 1, "mat-icon", 9)(2, MenuItemListComponent_Conditional_1_button_2_Template, 4, 5, "button", 10);
|
|
1124
1192
|
i0.ɵɵtext(3);
|
|
1125
1193
|
i0.ɵɵpipe(4, "translate");
|
|
1126
1194
|
i0.ɵɵelementEnd();
|
|
@@ -1137,66 +1205,76 @@ function MenuItemListComponent_Conditional_2_ng_container_0_Template(rf, ctx) {
|
|
|
1137
1205
|
i0.ɵɵelementContainer(0);
|
|
1138
1206
|
} }
|
|
1139
1207
|
function MenuItemListComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1140
|
-
i0.ɵɵtemplate(0, MenuItemListComponent_Conditional_2_ng_container_0_Template, 1, 0, "ng-container",
|
|
1208
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 13);
|
|
1141
1209
|
} if (rf & 2) {
|
|
1142
1210
|
i0.ɵɵnextContext();
|
|
1143
|
-
const itemGroupButton_r2 = i0.ɵɵreference(
|
|
1211
|
+
const itemGroupButton_r2 = i0.ɵɵreference(13);
|
|
1144
1212
|
i0.ɵɵproperty("ngTemplateOutlet", itemGroupButton_r2);
|
|
1145
1213
|
} }
|
|
1146
|
-
function
|
|
1214
|
+
function MenuItemListComponent_Conditional_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
1147
1215
|
i0.ɵɵelementContainer(0);
|
|
1148
1216
|
} }
|
|
1149
|
-
function
|
|
1217
|
+
function MenuItemListComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1218
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_Conditional_3_ng_container_0_Template, 1, 0, "ng-container", 13);
|
|
1219
|
+
} if (rf & 2) {
|
|
1220
|
+
i0.ɵɵnextContext();
|
|
1221
|
+
const itemGroupDescriptionBlock_r3 = i0.ɵɵreference(15);
|
|
1222
|
+
i0.ɵɵproperty("ngTemplateOutlet", itemGroupDescriptionBlock_r3);
|
|
1223
|
+
} }
|
|
1224
|
+
function MenuItemListComponent_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1225
|
+
i0.ɵɵelementContainer(0);
|
|
1226
|
+
} }
|
|
1227
|
+
function MenuItemListComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
1150
1228
|
i0.ɵɵelementContainerStart(0);
|
|
1151
|
-
i0.ɵɵtemplate(1,
|
|
1229
|
+
i0.ɵɵtemplate(1, MenuItemListComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 14);
|
|
1152
1230
|
i0.ɵɵelementContainerEnd();
|
|
1153
1231
|
} if (rf & 2) {
|
|
1154
|
-
const
|
|
1232
|
+
const menuItem_r4 = ctx.$implicit;
|
|
1155
1233
|
i0.ɵɵnextContext();
|
|
1156
|
-
const
|
|
1157
|
-
const
|
|
1158
|
-
const
|
|
1234
|
+
const itemWithChildren_r5 = i0.ɵɵreference(7);
|
|
1235
|
+
const menuItemLink_r6 = i0.ɵɵreference(9);
|
|
1236
|
+
const menuItemBtn_r7 = i0.ɵɵreference(11);
|
|
1159
1237
|
i0.ɵɵadvance();
|
|
1160
|
-
i0.ɵɵproperty("ngTemplateOutlet", !
|
|
1238
|
+
i0.ɵɵproperty("ngTemplateOutlet", !menuItem_r4.showChildren || !menuItem_r4.children || (menuItem_r4 == null ? null : menuItem_r4.children == null ? null : menuItem_r4.children.length) === 0 ? menuItem_r4.clickAction ? menuItemBtn_r7 : menuItemLink_r6 : itemWithChildren_r5)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$1, menuItem_r4));
|
|
1161
1239
|
} }
|
|
1162
|
-
function
|
|
1163
|
-
const
|
|
1164
|
-
i0.ɵɵelementStart(0, "lib-menu-item-with-children",
|
|
1165
|
-
i0.ɵɵlistener("toggleExpand", function
|
|
1240
|
+
function MenuItemListComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
1241
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
1242
|
+
i0.ɵɵelementStart(0, "lib-menu-item-with-children", 15);
|
|
1243
|
+
i0.ɵɵlistener("toggleExpand", function MenuItemListComponent_ng_template_6_Template_lib_menu_item_with_children_toggleExpand_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.toggleExpandEvent($event)); })("openMenu", function MenuItemListComponent_ng_template_6_Template_lib_menu_item_with_children_openMenu_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.openMenu()); });
|
|
1166
1244
|
i0.ɵɵelementEnd();
|
|
1167
1245
|
} if (rf & 2) {
|
|
1168
|
-
const
|
|
1246
|
+
const menuItem_r9 = ctx.menuItem;
|
|
1169
1247
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1170
|
-
i0.ɵɵclassProp("active-parent",
|
|
1171
|
-
i0.ɵɵproperty("menuItem",
|
|
1248
|
+
i0.ɵɵclassProp("active-parent", menuItem_r9.appId === ctx_r0.appId);
|
|
1249
|
+
i0.ɵɵproperty("menuItem", menuItem_r9)("labelsVisible", ctx_r0.labelsVisible)("menuLayoutDirection", ctx_r0.menuLayoutDirection)("menuItemLayout", ctx_r0.menuItemLayout)("activeItem", ctx_r0.activeItem)("showIcons", ctx_r0.showIcons)("direction", ctx_r0.direction)("expandableMenuChildren", ctx_r0.expandableMenuChildren)("openInSameTab", ctx_r0.openExternalLinksInSameTab);
|
|
1172
1250
|
} }
|
|
1173
|
-
function
|
|
1174
|
-
i0.ɵɵelement(0, "tld-menu-item-link",
|
|
1251
|
+
function MenuItemListComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1252
|
+
i0.ɵɵelement(0, "tld-menu-item-link", 16);
|
|
1175
1253
|
} if (rf & 2) {
|
|
1176
|
-
const
|
|
1254
|
+
const menuItem_r10 = ctx.menuItem;
|
|
1177
1255
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1178
|
-
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem",
|
|
1256
|
+
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem", menuItem_r10)("direction", ctx_r0.direction)("labelsVisible", ctx_r0.labelsVisible)("activeItem", ctx_r0.activeItem)("showIcons", ctx_r0.showIcons)("openInSameTab", ctx_r0.openExternalLinksInSameTab)("allowTabSelection", true);
|
|
1179
1257
|
} }
|
|
1180
|
-
function
|
|
1181
|
-
i0.ɵɵelement(0, "lib-menu-item-btn",
|
|
1258
|
+
function MenuItemListComponent_ng_template_10_lib_menu_item_btn_0_Template(rf, ctx) { if (rf & 1) {
|
|
1259
|
+
i0.ɵɵelement(0, "lib-menu-item-btn", 18);
|
|
1182
1260
|
} if (rf & 2) {
|
|
1183
|
-
const
|
|
1261
|
+
const menuItem_r11 = i0.ɵɵnextContext().menuItem;
|
|
1184
1262
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1185
|
-
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem",
|
|
1263
|
+
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem", menuItem_r11)("direction", ctx_r0.direction)("activeItem", ctx_r0.activeItem);
|
|
1186
1264
|
} }
|
|
1187
|
-
function
|
|
1188
|
-
i0.ɵɵtemplate(0,
|
|
1265
|
+
function MenuItemListComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
1266
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_ng_template_10_lib_menu_item_btn_0_Template, 1, 4, "lib-menu-item-btn", 17);
|
|
1189
1267
|
} if (rf & 2) {
|
|
1190
1268
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1191
1269
|
i0.ɵɵproperty("ngIf", ctx_r0.labelsVisible);
|
|
1192
1270
|
} }
|
|
1193
|
-
function
|
|
1194
|
-
i0.ɵɵelement(0, "mat-icon",
|
|
1271
|
+
function MenuItemListComponent_ng_template_12_button_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1272
|
+
i0.ɵɵelement(0, "mat-icon", 22);
|
|
1195
1273
|
} if (rf & 2) {
|
|
1196
1274
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
1197
1275
|
i0.ɵɵproperty("svgIcon", ctx_r0.menuItemGroup.itemGroupIcon ?? "");
|
|
1198
1276
|
} }
|
|
1199
|
-
function
|
|
1277
|
+
function MenuItemListComponent_ng_template_12_button_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1200
1278
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
1201
1279
|
i0.ɵɵtext(1);
|
|
1202
1280
|
i0.ɵɵelementEnd();
|
|
@@ -1205,8 +1283,8 @@ function MenuItemListComponent_ng_template_11_button_0_Conditional_2_Template(rf
|
|
|
1205
1283
|
i0.ɵɵadvance();
|
|
1206
1284
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1207
1285
|
} }
|
|
1208
|
-
function
|
|
1209
|
-
i0.ɵɵelementStart(0, "span",
|
|
1286
|
+
function MenuItemListComponent_ng_template_12_button_0_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
1287
|
+
i0.ɵɵelementStart(0, "span", 24);
|
|
1210
1288
|
i0.ɵɵtext(1);
|
|
1211
1289
|
i0.ɵɵpipe(2, "translate");
|
|
1212
1290
|
i0.ɵɵelementEnd();
|
|
@@ -1215,12 +1293,12 @@ function MenuItemListComponent_ng_template_11_button_0_span_3_Template(rf, ctx)
|
|
|
1215
1293
|
i0.ɵɵadvance();
|
|
1216
1294
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.titleKey), " ");
|
|
1217
1295
|
} }
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1220
|
-
i0.ɵɵelementStart(0, "button",
|
|
1221
|
-
i0.ɵɵlistener("click", function
|
|
1222
|
-
i0.ɵɵconditionalCreate(1,
|
|
1223
|
-
i0.ɵɵtemplate(3,
|
|
1296
|
+
function MenuItemListComponent_ng_template_12_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1297
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
1298
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
1299
|
+
i0.ɵɵlistener("click", function MenuItemListComponent_ng_template_12_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.menuItemGroup == null ? null : ctx_r0.menuItemGroup.itemGroupClick()); });
|
|
1300
|
+
i0.ɵɵconditionalCreate(1, MenuItemListComponent_ng_template_12_button_0_Conditional_1_Template, 1, 1, "mat-icon", 22)(2, MenuItemListComponent_ng_template_12_button_0_Conditional_2_Template, 2, 1, "mat-icon");
|
|
1301
|
+
i0.ɵɵtemplate(3, MenuItemListComponent_ng_template_12_button_0_span_3_Template, 3, 3, "span", 23);
|
|
1224
1302
|
i0.ɵɵelementEnd();
|
|
1225
1303
|
} if (rf & 2) {
|
|
1226
1304
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -1230,13 +1308,13 @@ function MenuItemListComponent_ng_template_11_button_0_Template(rf, ctx) { if (r
|
|
|
1230
1308
|
i0.ɵɵadvance(2);
|
|
1231
1309
|
i0.ɵɵproperty("ngIf", ctx_r0.titleKey);
|
|
1232
1310
|
} }
|
|
1233
|
-
function
|
|
1234
|
-
i0.ɵɵelement(0, "mat-icon",
|
|
1311
|
+
function MenuItemListComponent_ng_template_12_button_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1312
|
+
i0.ɵɵelement(0, "mat-icon", 22);
|
|
1235
1313
|
} if (rf & 2) {
|
|
1236
1314
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
1237
1315
|
i0.ɵɵproperty("svgIcon", ctx_r0.menuItemGroup.itemGroupIcon ?? "");
|
|
1238
1316
|
} }
|
|
1239
|
-
function
|
|
1317
|
+
function MenuItemListComponent_ng_template_12_button_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1240
1318
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
1241
1319
|
i0.ɵɵtext(1);
|
|
1242
1320
|
i0.ɵɵelementEnd();
|
|
@@ -1245,12 +1323,12 @@ function MenuItemListComponent_ng_template_11_button_1_Conditional_3_Template(rf
|
|
|
1245
1323
|
i0.ɵɵadvance();
|
|
1246
1324
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1247
1325
|
} }
|
|
1248
|
-
function
|
|
1249
|
-
const
|
|
1250
|
-
i0.ɵɵelementStart(0, "button",
|
|
1326
|
+
function MenuItemListComponent_ng_template_12_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1327
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
1328
|
+
i0.ɵɵelementStart(0, "button", 25);
|
|
1251
1329
|
i0.ɵɵpipe(1, "translate");
|
|
1252
|
-
i0.ɵɵlistener("click", function
|
|
1253
|
-
i0.ɵɵconditionalCreate(2,
|
|
1330
|
+
i0.ɵɵlistener("click", function MenuItemListComponent_ng_template_12_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.menuItemGroup == null ? null : ctx_r0.menuItemGroup.itemGroupClick()); });
|
|
1331
|
+
i0.ɵɵconditionalCreate(2, MenuItemListComponent_ng_template_12_button_1_Conditional_2_Template, 1, 1, "mat-icon", 22)(3, MenuItemListComponent_ng_template_12_button_1_Conditional_3_Template, 2, 1, "mat-icon");
|
|
1254
1332
|
i0.ɵɵelementEnd();
|
|
1255
1333
|
} if (rf & 2) {
|
|
1256
1334
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -1258,14 +1336,28 @@ function MenuItemListComponent_ng_template_11_button_1_Template(rf, ctx) { if (r
|
|
|
1258
1336
|
i0.ɵɵadvance(2);
|
|
1259
1337
|
i0.ɵɵconditional(ctx_r0.menuItemGroup.isCustomItemGroupIcon ? 2 : 3);
|
|
1260
1338
|
} }
|
|
1261
|
-
function
|
|
1262
|
-
i0.ɵɵtemplate(0,
|
|
1339
|
+
function MenuItemListComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
1340
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_ng_template_12_button_0_Template, 4, 4, "button", 19)(1, MenuItemListComponent_ng_template_12_button_1_Template, 4, 4, "button", 20);
|
|
1263
1341
|
} if (rf & 2) {
|
|
1264
1342
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1265
1343
|
i0.ɵɵproperty("ngIf", ctx_r0.menuItemGroup && ctx_r0.labelsVisible);
|
|
1266
1344
|
i0.ɵɵadvance();
|
|
1267
1345
|
i0.ɵɵproperty("ngIf", ctx_r0.menuItemGroup && !ctx_r0.labelsVisible && ctx_r0.titleKey && ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1268
1346
|
} }
|
|
1347
|
+
function MenuItemListComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
1348
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
1349
|
+
i0.ɵɵelement(1, "span", 27);
|
|
1350
|
+
i0.ɵɵpipe(2, "translate");
|
|
1351
|
+
i0.ɵɵelement(3, "p", 28);
|
|
1352
|
+
i0.ɵɵpipe(4, "translate");
|
|
1353
|
+
i0.ɵɵelementEnd();
|
|
1354
|
+
} if (rf & 2) {
|
|
1355
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1356
|
+
i0.ɵɵadvance();
|
|
1357
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 2, ctx_r0.menuItemGroup.title || ""), i0.ɵɵsanitizeHtml);
|
|
1358
|
+
i0.ɵɵadvance(2);
|
|
1359
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(4, 4, ctx_r0.menuItemGroup.description || ""), i0.ɵɵsanitizeHtml);
|
|
1360
|
+
} }
|
|
1269
1361
|
class MenuItemListComponent {
|
|
1270
1362
|
constructor() {
|
|
1271
1363
|
this.direction = MenuLayoutDirection.column;
|
|
@@ -1300,25 +1392,25 @@ class MenuItemListComponent {
|
|
|
1300
1392
|
this.openMenuTrigger.emit();
|
|
1301
1393
|
}
|
|
1302
1394
|
static { this.ɵfac = function MenuItemListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuItemListComponent)(); }; }
|
|
1303
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemListComponent, selectors: [["menu-item-list"]], inputs: { direction: "direction", labelsVisible: "labelsVisible", activeItem: "activeItem", showIcons: "showIcons", openExternalLinksInSameTab: "openExternalLinksInSameTab", expandableMenuChildren: "expandableMenuChildren", items: "items", menuItemGroup: "menuItemGroup" }, outputs: { openMenuTrigger: "openMenuTrigger", toggleExpand: "toggleExpand" }, standalone: false, decls:
|
|
1304
|
-
i0.ɵɵelementStart(0, "div",
|
|
1305
|
-
i0.ɵɵconditionalCreate(1, MenuItemListComponent_Conditional_1_Template, 5, 5, "div",
|
|
1306
|
-
i0.ɵɵelementStart(
|
|
1307
|
-
i0.ɵɵtemplate(
|
|
1395
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuItemListComponent, selectors: [["menu-item-list"]], inputs: { direction: "direction", labelsVisible: "labelsVisible", activeItem: "activeItem", showIcons: "showIcons", openExternalLinksInSameTab: "openExternalLinksInSameTab", expandableMenuChildren: "expandableMenuChildren", items: "items", menuItemGroup: "menuItemGroup" }, outputs: { openMenuTrigger: "openMenuTrigger", toggleExpand: "toggleExpand" }, standalone: false, decls: 16, vars: 3, consts: [["itemWithChildren", ""], ["menuItemLink", ""], ["menuItemBtn", ""], ["itemGroupButton", ""], ["itemGroupDescriptionBlock", ""], [1, "menu-list-wrapper"], ["fxLayoutAlign", "start center", 1, "menu-item-list-title"], ["fxLayout", "column", 1, "menu-item-list", 3, "fxLayoutAlign"], [4, "ngFor", "ngForOf"], ["class", "menu-title-btn", 4, "ngIf"], ["mat-icon-button", "", "class", "menu-title-btn", 3, "routerLink", "matTooltip", 4, "ngIf"], [1, "menu-title-btn"], ["mat-icon-button", "", 1, "menu-title-btn", 3, "routerLink", "matTooltip"], [4, "ngTemplateOutlet"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "toggleExpand", "openMenu", "menuItem", "labelsVisible", "menuLayoutDirection", "menuItemLayout", "activeItem", "showIcons", "direction", "expandableMenuChildren", "openInSameTab"], [3, "ngClass.lt-md", "menuItem", "direction", "labelsVisible", "activeItem", "showIcons", "openInSameTab", "allowTabSelection"], [3, "ngClass.lt-md", "menuItem", "direction", "activeItem", 4, "ngIf"], [3, "ngClass.lt-md", "menuItem", "direction", "activeItem"], ["mat-button", "", "class", "menu-title-btn menu-action-button", 3, "active-menu-item-group", "click", 4, "ngIf"], ["mat-icon-button", "", "matTooltipPosition", "after", 3, "matTooltip", "click", 4, "ngIf"], ["mat-button", "", 1, "menu-title-btn", "menu-action-button", 3, "click"], [3, "svgIcon"], ["class", "btn-label", 4, "ngIf"], [1, "btn-label"], ["mat-icon-button", "", "matTooltipPosition", "after", 3, "click", "matTooltip"], [1, "description-block"], [1, "description-block-title", 3, "innerHTML"], [1, "description-block-paragraph", 3, "innerHTML"]], template: function MenuItemListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1396
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
1397
|
+
i0.ɵɵconditionalCreate(1, MenuItemListComponent_Conditional_1_Template, 5, 5, "div", 6)(2, MenuItemListComponent_Conditional_2_Template, 1, 1, "ng-container")(3, MenuItemListComponent_Conditional_3_Template, 1, 1, "ng-container");
|
|
1398
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
1399
|
+
i0.ɵɵtemplate(5, MenuItemListComponent_ng_container_5_Template, 2, 4, "ng-container", 8);
|
|
1308
1400
|
i0.ɵɵelementEnd()();
|
|
1309
|
-
i0.ɵɵtemplate(
|
|
1401
|
+
i0.ɵɵtemplate(6, MenuItemListComponent_ng_template_6_Template, 1, 11, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(8, MenuItemListComponent_ng_template_8_Template, 1, 8, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(10, MenuItemListComponent_ng_template_10_Template, 1, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(12, MenuItemListComponent_ng_template_12_Template, 2, 2, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(14, MenuItemListComponent_ng_template_14_Template, 5, 6, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
1310
1402
|
} if (rf & 2) {
|
|
1311
1403
|
i0.ɵɵadvance();
|
|
1312
|
-
i0.ɵɵconditional(ctx.titleKey && ctx.showTitle && ctx.labelsVisible && !ctx.menuItemGroup.itemGroupClick ? 1 : (ctx.menuItemGroup == null ? null : ctx.menuItemGroup.itemGroupClick) ? 2 : -1);
|
|
1313
|
-
i0.ɵɵadvance(
|
|
1404
|
+
i0.ɵɵconditional(ctx.titleKey && ctx.showTitle && ctx.labelsVisible && !ctx.menuItemGroup.itemGroupClick && !ctx.menuItemGroup.description ? 1 : (ctx.menuItemGroup == null ? null : ctx.menuItemGroup.itemGroupClick) ? 2 : (ctx.menuItemGroup == null ? null : ctx.menuItemGroup.description) && ctx.labelsVisible ? 3 : -1);
|
|
1405
|
+
i0.ɵɵadvance(3);
|
|
1314
1406
|
i0.ɵɵproperty("fxLayoutAlign", ctx.menuLayoutDirection);
|
|
1315
1407
|
i0.ɵɵadvance();
|
|
1316
1408
|
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
1317
|
-
} }, dependencies: [i1$2.DefaultLayoutDirective, i1$2.DefaultLayoutAlignDirective, i2$2.DefaultClassDirective, i1$1.RouterLink, i3.NgForOf, i3.NgIf, i3.NgTemplateOutlet, i4.MatTooltip, i2$1.MatIcon, i7.MatButton, i7.MatIconButton, MenuItemLinkComponent, MenuItemBtnComponent, MenuItemWithChildrenComponent, i9.TranslatePipe], styles: ["[_nghost-%COMP%]{display:inline-block} .menu-item{width:100%} a, a:hover{text-decoration:none} .collapsed .menu-item-list{display:flex!important;justify-content:center!important;align-items:center!important} .collapsed .menu-list-wrapper, .collapsed tld-menu-item-link{display:flex!important;justify-content:center!important} .collapsed .menu-item{display:flex!important;place-content:center center!important} .collapsed tld-menu-item-link:not(:first-child){margin-top:16px} .active-parent button, .active-menu-item-group{background-color:var(--base-95)!important} .menu-action-button{justify-content:flex-start;align-items:center;max-width:100%;width:-webkit-fill-available} .menu-list-wrapper .menu-item{cursor:pointer;font-style:normal;color:var(--base-30);text-decoration:none;align-items:center!important;font-weight:400;background:none;border:none} .menu-list-wrapper .menu-item:not(button):not(.active-menu-item):hover{background-color:var(--base-70)!important} .menu-list-wrapper .menu-item.active-menu-item, .menu-list-wrapper .menu-item.active-menu-item mat-icon, .menu-list-wrapper .menu-item.active-menu-item:hover{font-weight:600} .menu-list-wrapper .menu-item span{display:inline-block} .menu-list-wrapper .menu-item .menu-item-title{display:flex;flex-direction:row;align-items:start;width:100%} .menu-list-wrapper .menu-item .menu-item-title .title-content{width:100%;text-align:start;display:block} .menu-list-wrapper .menu-item .menu-item-title .title-content:before{display:block;content:attr(content);font-weight:600;height:0;overflow:hidden;visibility:hidden} .menu-list-wrapper .menu-parent-item.active-menu-item, .menu-list-wrapper .menu-parent-item:hover{font-weight:400!important;background-color:var(--base-70)!important} .menu-tooltip{left:.625rem;font-family:Roboto;font-style:normal;font-weight:400;font-size:.75rem;line-height:1.25rem;color:var(--base-70);border-radius:.25rem;position:relative} .menu-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:.5rem solid transparent;border-right:.5rem solid transparent;border-bottom:.5rem solid var(--menu-border-dark-color);left:-.75rem;top:calc(50% - .25rem);transform:rotate(270deg);overflow:initial} .menu-item-list-title{padding:8px 0 24px;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;margin-left:20px;height:56px} .menu-item-list-title:has(.menu-title-btn){margin-left:0} lib-menu-accessibility, lib-menu-lang-switcher, .menu-item-list{animation:_ngcontent-%COMP%_slide-in .3s forwards} lib-menu-accessibility, lib-menu-lang-switcher, .menu-title-btn{margin-right:2px;transition:opacity .3s} .arrow-icon{margin-right:-6px} .mob-menu-item .arrow-icon{margin-right:0}@keyframes _ngcontent-%COMP%_slide-in{0%{opacity:0;margin-left:-100px}to{opacity:1;margin-left:0}}"] }); }
|
|
1409
|
+
} }, dependencies: [i1$2.DefaultLayoutDirective, i1$2.DefaultLayoutAlignDirective, i2$2.DefaultClassDirective, i1$1.RouterLink, i3.NgForOf, i3.NgIf, i3.NgTemplateOutlet, i4.MatTooltip, i2$1.MatIcon, i7.MatButton, i7.MatIconButton, MenuItemLinkComponent, MenuItemBtnComponent, MenuItemWithChildrenComponent, i9.TranslatePipe], styles: ["[_nghost-%COMP%]{display:inline-block} .menu-item{width:100%} a, a:hover{text-decoration:none} .collapsed .menu-item-list{display:flex!important;justify-content:center!important;align-items:center!important} .collapsed .menu-list-wrapper, .collapsed tld-menu-item-link{display:flex!important;justify-content:center!important} .collapsed .menu-item{display:flex!important;place-content:center center!important} .collapsed tld-menu-item-link:not(:first-child){margin-top:16px} .active-parent button, .active-menu-item-group{background-color:var(--base-95)!important} .description-block{margin-top:24px;display:flex;flex-direction:column;gap:4px;width:100%;padding:8px 14px;border-radius:8px;text-align:left;font-size:14px} .description-block .description-block-title{font-weight:500} .description-block .description-block-paragraph{font-weight:400;white-space:normal} .menu-action-button{justify-content:flex-start;align-items:center;max-width:100%;width:-webkit-fill-available} .menu-list-wrapper .menu-item{cursor:pointer;font-style:normal;color:var(--base-30);text-decoration:none;align-items:center!important;font-weight:400;background:none;border:none} .menu-list-wrapper .menu-item:not(button):not(.active-menu-item):hover{background-color:var(--base-70)!important} .menu-list-wrapper .menu-item.active-menu-item, .menu-list-wrapper .menu-item.active-menu-item mat-icon, .menu-list-wrapper .menu-item.active-menu-item:hover{font-weight:600} .menu-list-wrapper .menu-item span{display:inline-block} .menu-list-wrapper .menu-item .menu-item-title{display:flex;flex-direction:row;align-items:start;width:100%} .menu-list-wrapper .menu-item .menu-item-title .title-content{width:100%;text-align:start;display:block} .menu-list-wrapper .menu-item .menu-item-title .title-content:before{display:block;content:attr(content);font-weight:600;height:0;overflow:hidden;visibility:hidden} .menu-list-wrapper .menu-parent-item.active-menu-item, .menu-list-wrapper .menu-parent-item:hover{font-weight:400!important;background-color:var(--base-70)!important} .menu-tooltip{left:.625rem;font-family:Roboto;font-style:normal;font-weight:400;font-size:.75rem;line-height:1.25rem;color:var(--base-70);border-radius:.25rem;position:relative} .menu-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:.5rem solid transparent;border-right:.5rem solid transparent;border-bottom:.5rem solid var(--menu-border-dark-color);left:-.75rem;top:calc(50% - .25rem);transform:rotate(270deg);overflow:initial} .menu-item-list-title{padding:8px 0 24px;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;margin-left:20px;height:56px} .menu-item-list-title:has(.menu-title-btn){margin-left:0} lib-menu-accessibility, lib-menu-lang-switcher, .menu-item-list{animation:_ngcontent-%COMP%_slide-in .3s forwards} lib-menu-accessibility, lib-menu-lang-switcher, .menu-title-btn{margin-right:2px;transition:opacity .3s} .arrow-icon{margin-right:-6px} .mob-menu-item .arrow-icon{margin-right:0}@keyframes _ngcontent-%COMP%_slide-in{0%{opacity:0;margin-left:-100px}to{opacity:1;margin-left:0}}"] }); }
|
|
1318
1410
|
}
|
|
1319
1411
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemListComponent, [{
|
|
1320
1412
|
type: Component,
|
|
1321
|
-
args: [{ selector: 'menu-item-list', standalone: false, template: "<div class=\"menu-list-wrapper\">\r\n\t@if (titleKey && showTitle && labelsVisible && !menuItemGroup.itemGroupClick) {\r\n\t<div fxLayoutAlign=\"start center\" class=\"menu-item-list-title\">\r\n\t\t<mat-icon *ngIf=\"menuItemGroup.titleIcon\" class=\"menu-title-btn\">\r\n\t\t\t{{ menuItemGroup.titleIcon }}\r\n\t\t</mat-icon>\r\n\r\n\t\t<button\r\n\t\t\t*ngIf=\"menuItemGroup.titleNavigation\"\r\n\t\t\tmat-icon-button\r\n\t\t\tclass=\"menu-title-btn\"\r\n\t\t\t[routerLink]=\"menuItemGroup.titleNavigation.path\"\r\n\t\t\t[matTooltip]=\"menuItemGroup.titleNavigation?.tooltip ?? '' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>{{ menuItemGroup.titleNavigation.icon }}</mat-icon>\r\n\t\t</button>\r\n\r\n\t\t{{ titleKey | translate }}\r\n\t</div>\r\n\t} @else if (menuItemGroup?.itemGroupClick) {\r\n\t<ng-container *ngTemplateOutlet=\"itemGroupButton\"> </ng-container>\r\n\t}\r\n\t<div class=\"menu-item-list\" fxLayout=\"column\" [fxLayoutAlign]=\"menuLayoutDirection\">\r\n\t\t<ng-container *ngFor=\"let menuItem of items\">\r\n\t\t\t<ng-container\r\n\t\t\t\t*ngTemplateOutlet=\"\r\n\t\t\t\t\t!menuItem.showChildren || !menuItem.children || menuItem?.children?.length === 0 ? (menuItem.clickAction ? menuItemBtn : menuItemLink) : itemWithChildren;\r\n\t\t\t\t\tcontext: { menuItem: menuItem }\r\n\t\t\t\t\"\r\n\t\t\t>\r\n\t\t\t</ng-container>\r\n\t\t</ng-container>\r\n\t</div>\r\n</div>\r\n\r\n<ng-template #itemWithChildren let-menuItem=\"menuItem\">\r\n\t<lib-menu-item-with-children\r\n\t\t[menuItem]=\"menuItem\"\r\n\t\t[labelsVisible]=\"labelsVisible\"\r\n\t\t[menuLayoutDirection]=\"menuLayoutDirection\"\r\n\t\t[menuItemLayout]=\"menuItemLayout\"\r\n\t\t[activeItem]=\"activeItem\"\r\n\t\t[showIcons]=\"showIcons\"\r\n\t\t[direction]=\"direction\"\r\n\t\t[expandableMenuChildren]=\"expandableMenuChildren\"\r\n\t\t(toggleExpand)=\"toggleExpandEvent($event)\"\r\n\t\t(openMenu)=\"openMenu()\"\r\n\t\t[class.active-parent]=\"menuItem.appId === appId\"\r\n\t\t[openInSameTab]=\"openExternalLinksInSameTab\"\r\n\t></lib-menu-item-with-children>\r\n</ng-template>\r\n\r\n<ng-template #menuItemLink let-menuItem=\"menuItem\">\r\n\t<tld-menu-item-link\r\n\t\t[ngClass.lt-md]=\"'mob-menu-item'\"\r\n\t\t[menuItem]=\"menuItem\"\r\n\t\t[direction]=\"direction\"\r\n\t\t[labelsVisible]=\"labelsVisible\"\r\n\t\t[activeItem]=\"activeItem\"\r\n\t\t[showIcons]=\"showIcons\"\r\n\t\t[openInSameTab]=\"openExternalLinksInSameTab\"\r\n\t\t[allowTabSelection]=\"true\"\r\n\t></tld-menu-item-link>\r\n</ng-template>\r\n\r\n<ng-template #menuItemBtn let-menuItem=\"menuItem\">\r\n\t<lib-menu-item-btn *ngIf=\"labelsVisible\" [ngClass.lt-md]=\"'mob-menu-item'\" [menuItem]=\"menuItem\" [direction]=\"direction\" [activeItem]=\"activeItem\"></lib-menu-item-btn>\r\n</ng-template>\r\n\r\n<ng-template #itemGroupButton>\r\n\t<button\r\n\t\t*ngIf=\"menuItemGroup && labelsVisible\"\r\n\t\tmat-button\r\n\t\tclass=\"menu-title-btn menu-action-button\"\r\n\t\t(click)=\"menuItemGroup?.itemGroupClick()\"\r\n\t\t[class.active-menu-item-group]=\"menuItemGroup.isItemGroupActive && menuItemGroup.isItemGroupActive()\"\r\n\t>\r\n\t\t@if(menuItemGroup.isCustomItemGroupIcon){\r\n\t\t<mat-icon [svgIcon]=\"menuItemGroup.itemGroupIcon ?? ''\"></mat-icon>\r\n\t\t} @else {\r\n\t\t<mat-icon>{{ menuItemGroup.itemGroupIcon }}</mat-icon>\r\n\t\t}\r\n\t\t<span class=\"btn-label\" *ngIf=\"titleKey\">\r\n\t\t\t{{ titleKey | translate }}\r\n\t\t</span>\r\n\t</button>\r\n\r\n\t<button\r\n\t\t*ngIf=\"menuItemGroup && !labelsVisible && titleKey && menuItemGroup.itemGroupIcon\"\r\n\t\tmat-icon-button\r\n\t\tmatTooltipPosition=\"after\"\r\n\t\t[matTooltip]=\"titleKey | translate\"\r\n\t\t(click)=\"menuItemGroup?.itemGroupClick()\"\r\n\t>\r\n\t\t@if(menuItemGroup.isCustomItemGroupIcon){\r\n\t\t<mat-icon [svgIcon]=\"menuItemGroup.itemGroupIcon ?? ''\"></mat-icon>\r\n\t\t} @else {\r\n\t\t<mat-icon>{{ menuItemGroup.itemGroupIcon }}</mat-icon>\r\n\t\t}\r\n\t</button>\r\n</ng-template>\r\n", styles: [":host{display:inline-block}::ng-deep .menu-item{width:100%}::ng-deep a,::ng-deep a:hover{text-decoration:none}::ng-deep .collapsed .menu-item-list{display:flex!important;justify-content:center!important;align-items:center!important}::ng-deep .collapsed .menu-list-wrapper,::ng-deep .collapsed tld-menu-item-link{display:flex!important;justify-content:center!important}::ng-deep .collapsed .menu-item{display:flex!important;place-content:center center!important}::ng-deep .collapsed tld-menu-item-link:not(:first-child){margin-top:16px}::ng-deep .active-parent button,::ng-deep .active-menu-item-group{background-color:var(--base-95)!important}::ng-deep .menu-action-button{justify-content:flex-start;align-items:center;max-width:100%;width:-webkit-fill-available}::ng-deep .menu-list-wrapper .menu-item{cursor:pointer;font-style:normal;color:var(--base-30);text-decoration:none;align-items:center!important;font-weight:400;background:none;border:none}::ng-deep .menu-list-wrapper .menu-item:not(button):not(.active-menu-item):hover{background-color:var(--base-70)!important}::ng-deep .menu-list-wrapper .menu-item.active-menu-item,::ng-deep .menu-list-wrapper .menu-item.active-menu-item mat-icon,::ng-deep .menu-list-wrapper .menu-item.active-menu-item:hover{font-weight:600}::ng-deep .menu-list-wrapper .menu-item span{display:inline-block}::ng-deep .menu-list-wrapper .menu-item .menu-item-title{display:flex;flex-direction:row;align-items:start;width:100%}::ng-deep .menu-list-wrapper .menu-item .menu-item-title .title-content{width:100%;text-align:start;display:block}::ng-deep .menu-list-wrapper .menu-item .menu-item-title .title-content:before{display:block;content:attr(content);font-weight:600;height:0;overflow:hidden;visibility:hidden}::ng-deep .menu-list-wrapper .menu-parent-item.active-menu-item,::ng-deep .menu-list-wrapper .menu-parent-item:hover{font-weight:400!important;background-color:var(--base-70)!important}::ng-deep .menu-tooltip{left:.625rem;font-family:Roboto;font-style:normal;font-weight:400;font-size:.75rem;line-height:1.25rem;color:var(--base-70);border-radius:.25rem;position:relative}::ng-deep .menu-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:.5rem solid transparent;border-right:.5rem solid transparent;border-bottom:.5rem solid var(--menu-border-dark-color);left:-.75rem;top:calc(50% - .25rem);transform:rotate(270deg);overflow:initial}::ng-deep .menu-item-list-title{padding:8px 0 24px;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;margin-left:20px;height:56px}::ng-deep .menu-item-list-title:has(.menu-title-btn){margin-left:0}::ng-deep lib-menu-accessibility,::ng-deep lib-menu-lang-switcher,::ng-deep .menu-item-list{animation:slide-in .3s forwards}::ng-deep lib-menu-accessibility,::ng-deep lib-menu-lang-switcher,::ng-deep .menu-title-btn{margin-right:2px;transition:opacity .3s}::ng-deep .arrow-icon{margin-right:-6px}::ng-deep .mob-menu-item .arrow-icon{margin-right:0}@keyframes slide-in{0%{opacity:0;margin-left:-100px}to{opacity:1;margin-left:0}}\n"] }]
|
|
1413
|
+
args: [{ selector: 'menu-item-list', standalone: false, template: "<div class=\"menu-list-wrapper\">\r\n\t@if (titleKey && showTitle && labelsVisible && !menuItemGroup.itemGroupClick && !menuItemGroup.description) {\r\n\t<div fxLayoutAlign=\"start center\" class=\"menu-item-list-title\">\r\n\t\t<mat-icon *ngIf=\"menuItemGroup.titleIcon\" class=\"menu-title-btn\">\r\n\t\t\t{{ menuItemGroup.titleIcon }}\r\n\t\t</mat-icon>\r\n\r\n\t\t<button\r\n\t\t\t*ngIf=\"menuItemGroup.titleNavigation\"\r\n\t\t\tmat-icon-button\r\n\t\t\tclass=\"menu-title-btn\"\r\n\t\t\t[routerLink]=\"menuItemGroup.titleNavigation.path\"\r\n\t\t\t[matTooltip]=\"menuItemGroup.titleNavigation?.tooltip ?? '' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>{{ menuItemGroup.titleNavigation.icon }}</mat-icon>\r\n\t\t</button>\r\n\r\n\t\t{{ titleKey | translate }}\r\n\t</div>\r\n\t} @else if (menuItemGroup?.itemGroupClick) {\r\n\t<ng-container *ngTemplateOutlet=\"itemGroupButton\"> </ng-container>\r\n\t} @else if (menuItemGroup?.description && labelsVisible) {\r\n\t<ng-container *ngTemplateOutlet=\"itemGroupDescriptionBlock\"></ng-container>\r\n\t}\r\n\t<div class=\"menu-item-list\" fxLayout=\"column\" [fxLayoutAlign]=\"menuLayoutDirection\">\r\n\t\t<ng-container *ngFor=\"let menuItem of items\">\r\n\t\t\t<ng-container\r\n\t\t\t\t*ngTemplateOutlet=\"\r\n\t\t\t\t\t!menuItem.showChildren || !menuItem.children || menuItem?.children?.length === 0 ? (menuItem.clickAction ? menuItemBtn : menuItemLink) : itemWithChildren;\r\n\t\t\t\t\tcontext: { menuItem: menuItem }\r\n\t\t\t\t\"\r\n\t\t\t>\r\n\t\t\t</ng-container>\r\n\t\t</ng-container>\r\n\t</div>\r\n</div>\r\n\r\n<ng-template #itemWithChildren let-menuItem=\"menuItem\">\r\n\t<lib-menu-item-with-children\r\n\t\t[menuItem]=\"menuItem\"\r\n\t\t[labelsVisible]=\"labelsVisible\"\r\n\t\t[menuLayoutDirection]=\"menuLayoutDirection\"\r\n\t\t[menuItemLayout]=\"menuItemLayout\"\r\n\t\t[activeItem]=\"activeItem\"\r\n\t\t[showIcons]=\"showIcons\"\r\n\t\t[direction]=\"direction\"\r\n\t\t[expandableMenuChildren]=\"expandableMenuChildren\"\r\n\t\t(toggleExpand)=\"toggleExpandEvent($event)\"\r\n\t\t(openMenu)=\"openMenu()\"\r\n\t\t[class.active-parent]=\"menuItem.appId === appId\"\r\n\t\t[openInSameTab]=\"openExternalLinksInSameTab\"\r\n\t></lib-menu-item-with-children>\r\n</ng-template>\r\n\r\n<ng-template #menuItemLink let-menuItem=\"menuItem\">\r\n\t<tld-menu-item-link\r\n\t\t[ngClass.lt-md]=\"'mob-menu-item'\"\r\n\t\t[menuItem]=\"menuItem\"\r\n\t\t[direction]=\"direction\"\r\n\t\t[labelsVisible]=\"labelsVisible\"\r\n\t\t[activeItem]=\"activeItem\"\r\n\t\t[showIcons]=\"showIcons\"\r\n\t\t[openInSameTab]=\"openExternalLinksInSameTab\"\r\n\t\t[allowTabSelection]=\"true\"\r\n\t></tld-menu-item-link>\r\n</ng-template>\r\n\r\n<ng-template #menuItemBtn let-menuItem=\"menuItem\">\r\n\t<lib-menu-item-btn *ngIf=\"labelsVisible\" [ngClass.lt-md]=\"'mob-menu-item'\" [menuItem]=\"menuItem\" [direction]=\"direction\" [activeItem]=\"activeItem\"></lib-menu-item-btn>\r\n</ng-template>\r\n\r\n<ng-template #itemGroupButton>\r\n\t<button\r\n\t\t*ngIf=\"menuItemGroup && labelsVisible\"\r\n\t\tmat-button\r\n\t\tclass=\"menu-title-btn menu-action-button\"\r\n\t\t(click)=\"menuItemGroup?.itemGroupClick()\"\r\n\t\t[class.active-menu-item-group]=\"menuItemGroup.isItemGroupActive && menuItemGroup.isItemGroupActive()\"\r\n\t>\r\n\t\t@if(menuItemGroup.isCustomItemGroupIcon){\r\n\t\t<mat-icon [svgIcon]=\"menuItemGroup.itemGroupIcon ?? ''\"></mat-icon>\r\n\t\t} @else {\r\n\t\t<mat-icon>{{ menuItemGroup.itemGroupIcon }}</mat-icon>\r\n\t\t}\r\n\t\t<span class=\"btn-label\" *ngIf=\"titleKey\">\r\n\t\t\t{{ titleKey | translate }}\r\n\t\t</span>\r\n\t</button>\r\n\r\n\t<button\r\n\t\t*ngIf=\"menuItemGroup && !labelsVisible && titleKey && menuItemGroup.itemGroupIcon\"\r\n\t\tmat-icon-button\r\n\t\tmatTooltipPosition=\"after\"\r\n\t\t[matTooltip]=\"titleKey | translate\"\r\n\t\t(click)=\"menuItemGroup?.itemGroupClick()\"\r\n\t>\r\n\t\t@if(menuItemGroup.isCustomItemGroupIcon){\r\n\t\t<mat-icon [svgIcon]=\"menuItemGroup.itemGroupIcon ?? ''\"></mat-icon>\r\n\t\t} @else {\r\n\t\t<mat-icon>{{ menuItemGroup.itemGroupIcon }}</mat-icon>\r\n\t\t}\r\n\t</button>\r\n</ng-template>\r\n\r\n<ng-template #itemGroupDescriptionBlock>\r\n\t<div class=\"description-block\">\r\n\t\t<span class=\"description-block-title\" [innerHTML]=\"(menuItemGroup.title || '') | translate\"></span>\r\n\t\t<p class=\"description-block-paragraph\" [innerHTML]=\"(menuItemGroup.description || '') | translate\"></p>\r\n\t</div>\r\n</ng-template>\r\n", styles: [":host{display:inline-block}::ng-deep .menu-item{width:100%}::ng-deep a,::ng-deep a:hover{text-decoration:none}::ng-deep .collapsed .menu-item-list{display:flex!important;justify-content:center!important;align-items:center!important}::ng-deep .collapsed .menu-list-wrapper,::ng-deep .collapsed tld-menu-item-link{display:flex!important;justify-content:center!important}::ng-deep .collapsed .menu-item{display:flex!important;place-content:center center!important}::ng-deep .collapsed tld-menu-item-link:not(:first-child){margin-top:16px}::ng-deep .active-parent button,::ng-deep .active-menu-item-group{background-color:var(--base-95)!important}::ng-deep .description-block{margin-top:24px;display:flex;flex-direction:column;gap:4px;width:100%;padding:8px 14px;border-radius:8px;text-align:left;font-size:14px}::ng-deep .description-block .description-block-title{font-weight:500}::ng-deep .description-block .description-block-paragraph{font-weight:400;white-space:normal}::ng-deep .menu-action-button{justify-content:flex-start;align-items:center;max-width:100%;width:-webkit-fill-available}::ng-deep .menu-list-wrapper .menu-item{cursor:pointer;font-style:normal;color:var(--base-30);text-decoration:none;align-items:center!important;font-weight:400;background:none;border:none}::ng-deep .menu-list-wrapper .menu-item:not(button):not(.active-menu-item):hover{background-color:var(--base-70)!important}::ng-deep .menu-list-wrapper .menu-item.active-menu-item,::ng-deep .menu-list-wrapper .menu-item.active-menu-item mat-icon,::ng-deep .menu-list-wrapper .menu-item.active-menu-item:hover{font-weight:600}::ng-deep .menu-list-wrapper .menu-item span{display:inline-block}::ng-deep .menu-list-wrapper .menu-item .menu-item-title{display:flex;flex-direction:row;align-items:start;width:100%}::ng-deep .menu-list-wrapper .menu-item .menu-item-title .title-content{width:100%;text-align:start;display:block}::ng-deep .menu-list-wrapper .menu-item .menu-item-title .title-content:before{display:block;content:attr(content);font-weight:600;height:0;overflow:hidden;visibility:hidden}::ng-deep .menu-list-wrapper .menu-parent-item.active-menu-item,::ng-deep .menu-list-wrapper .menu-parent-item:hover{font-weight:400!important;background-color:var(--base-70)!important}::ng-deep .menu-tooltip{left:.625rem;font-family:Roboto;font-style:normal;font-weight:400;font-size:.75rem;line-height:1.25rem;color:var(--base-70);border-radius:.25rem;position:relative}::ng-deep .menu-tooltip:after{width:0;height:0;content:\"\";position:absolute;border-left:.5rem solid transparent;border-right:.5rem solid transparent;border-bottom:.5rem solid var(--menu-border-dark-color);left:-.75rem;top:calc(50% - .25rem);transform:rotate(270deg);overflow:initial}::ng-deep .menu-item-list-title{padding:8px 0 24px;font-size:1rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;margin-left:20px;height:56px}::ng-deep .menu-item-list-title:has(.menu-title-btn){margin-left:0}::ng-deep lib-menu-accessibility,::ng-deep lib-menu-lang-switcher,::ng-deep .menu-item-list{animation:slide-in .3s forwards}::ng-deep lib-menu-accessibility,::ng-deep lib-menu-lang-switcher,::ng-deep .menu-title-btn{margin-right:2px;transition:opacity .3s}::ng-deep .arrow-icon{margin-right:-6px}::ng-deep .mob-menu-item .arrow-icon{margin-right:0}@keyframes slide-in{0%{opacity:0;margin-left:-100px}to{opacity:1;margin-left:0}}\n"] }]
|
|
1322
1414
|
}], null, { direction: [{
|
|
1323
1415
|
type: Input
|
|
1324
1416
|
}], labelsVisible: [{
|