@tilde-nlp/ngx-menu 8.1.55 → 8.1.57
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 +166 -114
- package/fesm2022/tilde-nlp-ngx-menu.mjs.map +1 -1
- package/index.d.ts +16 -0
- package/package.json +1 -1
|
@@ -331,11 +331,11 @@ class NavBaseComponent {
|
|
|
331
331
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NavBaseComponent, { className: "NavBaseComponent", filePath: "lib/components/nav-base/nav-base.component.ts", lineNumber: 14 }); })();
|
|
332
332
|
|
|
333
333
|
const _c0$3 = ["*"];
|
|
334
|
-
function
|
|
334
|
+
function SideNavMenuComponent_a_15_Template(rf, ctx) { if (rf & 1) {
|
|
335
335
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
336
336
|
i0.ɵɵelementStart(0, "a", 1);
|
|
337
337
|
i0.ɵɵpipe(1, "translate");
|
|
338
|
-
i0.ɵɵlistener("click", function
|
|
338
|
+
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
339
|
i0.ɵɵelement(2, "img", 2);
|
|
340
340
|
i0.ɵɵelementStart(3, "span", 3);
|
|
341
341
|
i0.ɵɵtext(4);
|
|
@@ -350,48 +350,48 @@ function SideNavMenuComponent_a_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
350
350
|
i0.ɵɵadvance(2);
|
|
351
351
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.productName, " ");
|
|
352
352
|
} }
|
|
353
|
-
function
|
|
353
|
+
function SideNavMenuComponent_Conditional_26_Template(rf, ctx) { if (rf & 1) {
|
|
354
354
|
i0.ɵɵelement(0, "lib-menu-accessibility", 15);
|
|
355
355
|
} if (rf & 2) {
|
|
356
356
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
357
357
|
i0.ɵɵproperty("isCollapsed", ctx_r1.collapsed)("baseUrl", ctx_r1.baseUrl);
|
|
358
358
|
} }
|
|
359
|
-
function
|
|
359
|
+
function SideNavMenuComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
360
360
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
361
361
|
i0.ɵɵelementStart(0, "lib-menu-lang-switcher", 20);
|
|
362
|
-
i0.ɵɵlistener("changeLanguageEvent", function
|
|
362
|
+
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
363
|
i0.ɵɵelementEnd();
|
|
364
364
|
} if (rf & 2) {
|
|
365
365
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
366
366
|
i0.ɵɵproperty("isCollapsed", ctx_r1.collapsed)("languages", ctx_r1.supportedLanguages);
|
|
367
367
|
} }
|
|
368
|
-
function
|
|
368
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
369
369
|
i0.ɵɵtext(0, " \u00A0\u00A0|\u00A0\u00A0 ");
|
|
370
370
|
} }
|
|
371
|
-
function
|
|
371
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
372
372
|
i0.ɵɵelementStart(0, "a", 21);
|
|
373
373
|
i0.ɵɵtext(1);
|
|
374
374
|
i0.ɵɵelementEnd();
|
|
375
|
-
i0.ɵɵconditionalCreate(2,
|
|
375
|
+
i0.ɵɵconditionalCreate(2, SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Conditional_2_Template, 1, 0);
|
|
376
376
|
} if (rf & 2) {
|
|
377
377
|
const item_r4 = ctx.$implicit;
|
|
378
|
-
const ɵ$
|
|
378
|
+
const ɵ$index_67_r5 = ctx.$index;
|
|
379
379
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
380
380
|
i0.ɵɵproperty("href", item_r4.link, i0.ɵɵsanitizeUrl);
|
|
381
381
|
i0.ɵɵadvance();
|
|
382
382
|
i0.ɵɵtextInterpolate(item_r4.title);
|
|
383
383
|
i0.ɵɵadvance();
|
|
384
|
-
i0.ɵɵconditional(ɵ$
|
|
384
|
+
i0.ɵɵconditional(ɵ$index_67_r5 !== ctx_r1.footerItems.length - 1 ? 2 : -1);
|
|
385
385
|
} }
|
|
386
|
-
function
|
|
387
|
-
i0.ɵɵrepeaterCreate(0,
|
|
386
|
+
function SideNavMenuComponent_Conditional_31_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
387
|
+
i0.ɵɵrepeaterCreate(0, SideNavMenuComponent_Conditional_31_Conditional_1_For_1_Template, 3, 3, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
388
388
|
} if (rf & 2) {
|
|
389
389
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
390
390
|
i0.ɵɵrepeater(ctx_r1.footerItems);
|
|
391
391
|
} }
|
|
392
|
-
function
|
|
392
|
+
function SideNavMenuComponent_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
393
393
|
i0.ɵɵelementStart(0, "div", 19);
|
|
394
|
-
i0.ɵɵconditionalCreate(1,
|
|
394
|
+
i0.ɵɵconditionalCreate(1, SideNavMenuComponent_Conditional_31_Conditional_1_Template, 2, 0);
|
|
395
395
|
i0.ɵɵelementEnd();
|
|
396
396
|
} if (rf & 2) {
|
|
397
397
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -428,7 +428,13 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
428
428
|
openExternalLinksInSameTab: false,
|
|
429
429
|
useLargeLoginButton: false,
|
|
430
430
|
showAccessibility: true,
|
|
431
|
-
userOptions: []
|
|
431
|
+
userOptions: [],
|
|
432
|
+
customIcons: {
|
|
433
|
+
customOpenIcon: 'keyboard_double_arrow_right',
|
|
434
|
+
customCloseIcon: 'keyboard_double_arrow_left',
|
|
435
|
+
customMobileCloseIcon: 'close',
|
|
436
|
+
customMobileOpenIcon: 'menu',
|
|
437
|
+
}
|
|
432
438
|
};
|
|
433
439
|
this.useDefaultLanguageSwitcher = true;
|
|
434
440
|
this.changeLanguageEvent = new EventEmitter();
|
|
@@ -473,6 +479,7 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
473
479
|
ngOnInit() {
|
|
474
480
|
super.ngOnInit();
|
|
475
481
|
this.getColapsedFromLocalStorage();
|
|
482
|
+
this.setIcons();
|
|
476
483
|
}
|
|
477
484
|
login() {
|
|
478
485
|
this.loginEvent.emit();
|
|
@@ -504,8 +511,17 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
504
511
|
}
|
|
505
512
|
this.domService.localStorage.setItem(this.COLLAPSED_LOCAL_STORAGE_KEY, this.collapsed.toString());
|
|
506
513
|
}
|
|
514
|
+
setIcons() {
|
|
515
|
+
const { customOpenIcon, customCloseIcon, customMobileCloseIcon, customMobileOpenIcon } = this.menuSettings.customIcons || {};
|
|
516
|
+
this.customIcons = {
|
|
517
|
+
customOpenIcon: customOpenIcon ?? 'keyboard_double_arrow_right',
|
|
518
|
+
customCloseIcon: customCloseIcon ?? 'keyboard_double_arrow_left',
|
|
519
|
+
customMobileCloseIcon: customMobileCloseIcon ?? 'close',
|
|
520
|
+
customMobileOpenIcon: customMobileOpenIcon ?? 'menu'
|
|
521
|
+
};
|
|
522
|
+
}
|
|
507
523
|
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:
|
|
524
|
+
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
525
|
i0.ɵɵprojectionDef();
|
|
510
526
|
i0.ɵɵelementStart(0, "div", 0)(1, "a", 1);
|
|
511
527
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -517,50 +533,59 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
517
533
|
i0.ɵɵelementStart(6, "button", 4);
|
|
518
534
|
i0.ɵɵpipe(7, "translate");
|
|
519
535
|
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");
|
|
536
|
+
i0.ɵɵelementStart(8, "mat-icon", 5);
|
|
537
|
+
i0.ɵɵtext(9);
|
|
531
538
|
i0.ɵɵelementEnd();
|
|
532
|
-
i0.ɵɵelementStart(
|
|
539
|
+
i0.ɵɵelementStart(10, "mat-icon", 6);
|
|
540
|
+
i0.ɵɵtext(11);
|
|
541
|
+
i0.ɵɵelementEnd()()();
|
|
542
|
+
i0.ɵɵelementStart(12, "div", 7)(13, "div", 8)(14, "div", 9);
|
|
543
|
+
i0.ɵɵtemplate(15, SideNavMenuComponent_a_15_Template, 5, 9, "a", 10);
|
|
544
|
+
i0.ɵɵelementStart(16, "button", 11);
|
|
545
|
+
i0.ɵɵpipe(17, "translate");
|
|
546
|
+
i0.ɵɵpipe(18, "translate");
|
|
547
|
+
i0.ɵɵlistener("click", function SideNavMenuComponent_Template_button_click_16_listener() { return ctx.toggleCollapse(); });
|
|
548
|
+
i0.ɵɵelementStart(19, "mat-icon", 5);
|
|
533
549
|
i0.ɵɵtext(20);
|
|
550
|
+
i0.ɵɵelementEnd();
|
|
551
|
+
i0.ɵɵelementStart(21, "mat-icon", 6);
|
|
552
|
+
i0.ɵɵtext(22);
|
|
534
553
|
i0.ɵɵelementEnd()()();
|
|
535
|
-
i0.ɵɵelementStart(
|
|
536
|
-
i0.ɵɵlistener("toggleCollapseEvent", function
|
|
554
|
+
i0.ɵɵelementStart(23, "div", 12)(24, "menu-columns", 13);
|
|
555
|
+
i0.ɵɵlistener("toggleCollapseEvent", function SideNavMenuComponent_Template_menu_columns_toggleCollapseEvent_24_listener() { return ctx.toggleCollapse(); });
|
|
537
556
|
i0.ɵɵelementEnd();
|
|
538
|
-
i0.ɵɵelement(
|
|
539
|
-
i0.ɵɵconditionalCreate(
|
|
540
|
-
i0.ɵɵconditionalCreate(
|
|
557
|
+
i0.ɵɵelement(25, "div", 14);
|
|
558
|
+
i0.ɵɵconditionalCreate(26, SideNavMenuComponent_Conditional_26_Template, 1, 2, "lib-menu-accessibility", 15);
|
|
559
|
+
i0.ɵɵconditionalCreate(27, SideNavMenuComponent_Conditional_27_Template, 1, 2, "lib-menu-lang-switcher", 16);
|
|
541
560
|
i0.ɵɵelementEnd();
|
|
542
|
-
i0.ɵɵelementStart(
|
|
543
|
-
i0.ɵɵprojection(
|
|
561
|
+
i0.ɵɵelementStart(28, "div", 17);
|
|
562
|
+
i0.ɵɵprojection(29);
|
|
544
563
|
i0.ɵɵelementEnd();
|
|
545
|
-
i0.ɵɵelementStart(
|
|
546
|
-
i0.ɵɵlistener("linkCallbackEvent", function
|
|
564
|
+
i0.ɵɵelementStart(30, "lib-menu-profile", 18);
|
|
565
|
+
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
566
|
i0.ɵɵelementEnd();
|
|
548
|
-
i0.ɵɵconditionalCreate(
|
|
567
|
+
i0.ɵɵconditionalCreate(31, SideNavMenuComponent_Conditional_31_Template, 2, 1, "div", 19);
|
|
549
568
|
i0.ɵɵelementEnd()();
|
|
550
569
|
} if (rf & 2) {
|
|
551
570
|
i0.ɵɵproperty("fxHide", !ctx.collapsed || ctx.collapsed && !ctx.isMobileRes && !ctx.isViewIncreased())("ngClass", ctx.menuSettings.menuVersion);
|
|
552
571
|
i0.ɵɵadvance();
|
|
553
572
|
i0.ɵɵclassProp("no-click", ctx.menuSettings == null ? null : ctx.menuSettings.disableLogoNavigation);
|
|
554
573
|
i0.ɵɵproperty("libPlausibleEvent", ctx.LOGOCLICK_PLAUSIBLE_EVENT)("href", ctx.baseUrl, i0.ɵɵsanitizeUrl);
|
|
555
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2,
|
|
574
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 42, "ARIA_LABELS.LOGO"));
|
|
556
575
|
i0.ɵɵadvance(2);
|
|
557
576
|
i0.ɵɵproperty("src", ctx.logoImageSource(), i0.ɵɵsanitizeUrl);
|
|
558
577
|
i0.ɵɵadvance(2);
|
|
559
578
|
i0.ɵɵtextInterpolate1(" ", ctx.productName, " ");
|
|
560
579
|
i0.ɵɵadvance();
|
|
561
580
|
i0.ɵɵproperty("libPlausibleEvent", ctx.collapsed ? ctx.EXPAND_PLAUSIBLE_EVENT : ctx.COLLAPSE_PLAUSIBLE_EVENT);
|
|
562
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(7,
|
|
563
|
-
i0.ɵɵadvance(
|
|
581
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(7, 44, "ARIA_LABELS.MENU_TOGGLER"));
|
|
582
|
+
i0.ɵɵadvance(2);
|
|
583
|
+
i0.ɵɵproperty("ngClass.lt-sm", "mob-close-icon");
|
|
584
|
+
i0.ɵɵadvance();
|
|
585
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customMobileOpenIcon : ctx.customIcons.customMobileCloseIcon);
|
|
586
|
+
i0.ɵɵadvance(2);
|
|
587
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customOpenIcon : ctx.customIcons.customCloseIcon);
|
|
588
|
+
i0.ɵɵadvance();
|
|
564
589
|
i0.ɵɵstyleProp("width", ctx.sideNavWidth);
|
|
565
590
|
i0.ɵɵclassProp("accessibility-view", ctx.isViewIncreased())("collapsed", ctx.collapsed);
|
|
566
591
|
i0.ɵɵproperty("ngClass.lt-sm", "mobile")("ngClass", ctx.menuSettings.menuVersion);
|
|
@@ -569,27 +594,29 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
569
594
|
i0.ɵɵadvance();
|
|
570
595
|
i0.ɵɵproperty("ngIf", !ctx.collapsed);
|
|
571
596
|
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(
|
|
597
|
+
i0.ɵɵproperty("libPlausibleEvent", ctx.collapsed ? ctx.EXPAND_PLAUSIBLE_EVENT : ctx.COLLAPSE_PLAUSIBLE_EVENT)("matTooltip", i0.ɵɵpipeBind1(17, 46, ctx.collapsed ? "MENU.EXPAND" : "MENU.COLLAPSE"));
|
|
598
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(18, 48, "ARIA_LABELS.MENU_TOGGLER"));
|
|
574
599
|
i0.ɵɵadvance(3);
|
|
575
600
|
i0.ɵɵproperty("ngClass.lt-sm", "mob-close-icon");
|
|
576
|
-
i0.ɵɵadvance(
|
|
577
|
-
i0.ɵɵtextInterpolate(ctx.
|
|
601
|
+
i0.ɵɵadvance();
|
|
602
|
+
i0.ɵɵtextInterpolate(ctx.customIcons.customMobileCloseIcon);
|
|
603
|
+
i0.ɵɵadvance(2);
|
|
604
|
+
i0.ɵɵtextInterpolate(ctx.collapsed ? ctx.customIcons.customOpenIcon : ctx.customIcons.customCloseIcon);
|
|
578
605
|
i0.ɵɵadvance(2);
|
|
579
606
|
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
607
|
i0.ɵɵadvance(2);
|
|
581
|
-
i0.ɵɵconditional((ctx.menuSettings == null ? null : ctx.menuSettings.showAccessibility) ?
|
|
608
|
+
i0.ɵɵconditional((ctx.menuSettings == null ? null : ctx.menuSettings.showAccessibility) ? 26 : -1);
|
|
582
609
|
i0.ɵɵadvance();
|
|
583
|
-
i0.ɵɵconditional(ctx.useDefaultLanguageSwitcher && ctx.supportedLanguages.length > 1 ?
|
|
610
|
+
i0.ɵɵconditional(ctx.useDefaultLanguageSwitcher && ctx.supportedLanguages && ctx.supportedLanguages.length > 1 ? 27 : -1);
|
|
584
611
|
i0.ɵɵadvance(3);
|
|
585
612
|
i0.ɵɵproperty("userOptions", ctx.menuSettings.userOptions)("username", ctx.username)("collapsed", ctx.collapsed)("useLargeLoginButton", ctx.menuSettings == null ? null : ctx.menuSettings.useLargeLoginButton);
|
|
586
613
|
i0.ɵɵadvance();
|
|
587
|
-
i0.ɵɵconditional(ctx.footerItems.length ?
|
|
614
|
+
i0.ɵɵconditional(ctx.footerItems.length ? 31 : -1);
|
|
588
615
|
} }, 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
616
|
}
|
|
590
617
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SideNavMenuComponent, [{
|
|
591
618
|
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>
|
|
619
|
+
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 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{{ 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]=\"menuSettings.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
620
|
}], () => [{ type: i1.StrapiLinkService }, { type: i2.DOMService }, { type: MenuItemsService }, { type: i2.AccessibilityService }], { username: [{
|
|
594
621
|
type: Input
|
|
595
622
|
}], menuSettings: [{
|
|
@@ -605,7 +632,7 @@ class SideNavMenuComponent extends NavBaseComponent {
|
|
|
605
632
|
}], loginEvent: [{
|
|
606
633
|
type: Output
|
|
607
634
|
}] }); })();
|
|
608
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SideNavMenuComponent, { className: "SideNavMenuComponent", filePath: "lib/components/side-nav-menu/side-nav-menu.component.ts", lineNumber:
|
|
635
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SideNavMenuComponent, { className: "SideNavMenuComponent", filePath: "lib/components/side-nav-menu/side-nav-menu.component.ts", lineNumber: 18 }); })();
|
|
609
636
|
|
|
610
637
|
var MenuLayoutDirection;
|
|
611
638
|
(function (MenuLayoutDirection) {
|
|
@@ -1098,7 +1125,7 @@ class MenuItemWithChildrenComponent {
|
|
|
1098
1125
|
|
|
1099
1126
|
const _c0$1 = a0 => ({ menuItem: a0 });
|
|
1100
1127
|
function MenuItemListComponent_Conditional_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
1101
|
-
i0.ɵɵelementStart(0, "mat-icon",
|
|
1128
|
+
i0.ɵɵelementStart(0, "mat-icon", 11);
|
|
1102
1129
|
i0.ɵɵtext(1);
|
|
1103
1130
|
i0.ɵɵelementEnd();
|
|
1104
1131
|
} if (rf & 2) {
|
|
@@ -1107,7 +1134,7 @@ function MenuItemListComponent_Conditional_1_mat_icon_1_Template(rf, ctx) { if (
|
|
|
1107
1134
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.menuItemGroup.titleIcon, " ");
|
|
1108
1135
|
} }
|
|
1109
1136
|
function MenuItemListComponent_Conditional_1_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1110
|
-
i0.ɵɵelementStart(0, "button",
|
|
1137
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
1111
1138
|
i0.ɵɵpipe(1, "translate");
|
|
1112
1139
|
i0.ɵɵelementStart(2, "mat-icon");
|
|
1113
1140
|
i0.ɵɵtext(3);
|
|
@@ -1119,8 +1146,8 @@ function MenuItemListComponent_Conditional_1_button_2_Template(rf, ctx) { if (rf
|
|
|
1119
1146
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.titleNavigation.icon);
|
|
1120
1147
|
} }
|
|
1121
1148
|
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",
|
|
1149
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
1150
|
+
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
1151
|
i0.ɵɵtext(3);
|
|
1125
1152
|
i0.ɵɵpipe(4, "translate");
|
|
1126
1153
|
i0.ɵɵelementEnd();
|
|
@@ -1137,66 +1164,76 @@ function MenuItemListComponent_Conditional_2_ng_container_0_Template(rf, ctx) {
|
|
|
1137
1164
|
i0.ɵɵelementContainer(0);
|
|
1138
1165
|
} }
|
|
1139
1166
|
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",
|
|
1167
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 13);
|
|
1141
1168
|
} if (rf & 2) {
|
|
1142
1169
|
i0.ɵɵnextContext();
|
|
1143
|
-
const itemGroupButton_r2 = i0.ɵɵreference(
|
|
1170
|
+
const itemGroupButton_r2 = i0.ɵɵreference(13);
|
|
1144
1171
|
i0.ɵɵproperty("ngTemplateOutlet", itemGroupButton_r2);
|
|
1145
1172
|
} }
|
|
1146
|
-
function
|
|
1173
|
+
function MenuItemListComponent_Conditional_3_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
1174
|
+
i0.ɵɵelementContainer(0);
|
|
1175
|
+
} }
|
|
1176
|
+
function MenuItemListComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1177
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_Conditional_3_ng_container_0_Template, 1, 0, "ng-container", 13);
|
|
1178
|
+
} if (rf & 2) {
|
|
1179
|
+
i0.ɵɵnextContext();
|
|
1180
|
+
const itemGroupDescriptionBlock_r3 = i0.ɵɵreference(15);
|
|
1181
|
+
i0.ɵɵproperty("ngTemplateOutlet", itemGroupDescriptionBlock_r3);
|
|
1182
|
+
} }
|
|
1183
|
+
function MenuItemListComponent_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1147
1184
|
i0.ɵɵelementContainer(0);
|
|
1148
1185
|
} }
|
|
1149
|
-
function
|
|
1186
|
+
function MenuItemListComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
1150
1187
|
i0.ɵɵelementContainerStart(0);
|
|
1151
|
-
i0.ɵɵtemplate(1,
|
|
1188
|
+
i0.ɵɵtemplate(1, MenuItemListComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 14);
|
|
1152
1189
|
i0.ɵɵelementContainerEnd();
|
|
1153
1190
|
} if (rf & 2) {
|
|
1154
|
-
const
|
|
1191
|
+
const menuItem_r4 = ctx.$implicit;
|
|
1155
1192
|
i0.ɵɵnextContext();
|
|
1156
|
-
const
|
|
1157
|
-
const
|
|
1158
|
-
const
|
|
1193
|
+
const itemWithChildren_r5 = i0.ɵɵreference(7);
|
|
1194
|
+
const menuItemLink_r6 = i0.ɵɵreference(9);
|
|
1195
|
+
const menuItemBtn_r7 = i0.ɵɵreference(11);
|
|
1159
1196
|
i0.ɵɵadvance();
|
|
1160
|
-
i0.ɵɵproperty("ngTemplateOutlet", !
|
|
1197
|
+
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
1198
|
} }
|
|
1162
|
-
function
|
|
1163
|
-
const
|
|
1164
|
-
i0.ɵɵelementStart(0, "lib-menu-item-with-children",
|
|
1165
|
-
i0.ɵɵlistener("toggleExpand", function
|
|
1199
|
+
function MenuItemListComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
1200
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
1201
|
+
i0.ɵɵelementStart(0, "lib-menu-item-with-children", 15);
|
|
1202
|
+
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
1203
|
i0.ɵɵelementEnd();
|
|
1167
1204
|
} if (rf & 2) {
|
|
1168
|
-
const
|
|
1205
|
+
const menuItem_r9 = ctx.menuItem;
|
|
1169
1206
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1170
|
-
i0.ɵɵclassProp("active-parent",
|
|
1171
|
-
i0.ɵɵproperty("menuItem",
|
|
1207
|
+
i0.ɵɵclassProp("active-parent", menuItem_r9.appId === ctx_r0.appId);
|
|
1208
|
+
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
1209
|
} }
|
|
1173
|
-
function
|
|
1174
|
-
i0.ɵɵelement(0, "tld-menu-item-link",
|
|
1210
|
+
function MenuItemListComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
1211
|
+
i0.ɵɵelement(0, "tld-menu-item-link", 16);
|
|
1175
1212
|
} if (rf & 2) {
|
|
1176
|
-
const
|
|
1213
|
+
const menuItem_r10 = ctx.menuItem;
|
|
1177
1214
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1178
|
-
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem",
|
|
1215
|
+
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
1216
|
} }
|
|
1180
|
-
function
|
|
1181
|
-
i0.ɵɵelement(0, "lib-menu-item-btn",
|
|
1217
|
+
function MenuItemListComponent_ng_template_10_lib_menu_item_btn_0_Template(rf, ctx) { if (rf & 1) {
|
|
1218
|
+
i0.ɵɵelement(0, "lib-menu-item-btn", 18);
|
|
1182
1219
|
} if (rf & 2) {
|
|
1183
|
-
const
|
|
1220
|
+
const menuItem_r11 = i0.ɵɵnextContext().menuItem;
|
|
1184
1221
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1185
|
-
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem",
|
|
1222
|
+
i0.ɵɵproperty("ngClass.lt-md", "mob-menu-item")("menuItem", menuItem_r11)("direction", ctx_r0.direction)("activeItem", ctx_r0.activeItem);
|
|
1186
1223
|
} }
|
|
1187
|
-
function
|
|
1188
|
-
i0.ɵɵtemplate(0,
|
|
1224
|
+
function MenuItemListComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
1225
|
+
i0.ɵɵtemplate(0, MenuItemListComponent_ng_template_10_lib_menu_item_btn_0_Template, 1, 4, "lib-menu-item-btn", 17);
|
|
1189
1226
|
} if (rf & 2) {
|
|
1190
1227
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1191
1228
|
i0.ɵɵproperty("ngIf", ctx_r0.labelsVisible);
|
|
1192
1229
|
} }
|
|
1193
|
-
function
|
|
1194
|
-
i0.ɵɵelement(0, "mat-icon",
|
|
1230
|
+
function MenuItemListComponent_ng_template_12_button_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
1231
|
+
i0.ɵɵelement(0, "mat-icon", 22);
|
|
1195
1232
|
} if (rf & 2) {
|
|
1196
1233
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
1197
1234
|
i0.ɵɵproperty("svgIcon", ctx_r0.menuItemGroup.itemGroupIcon ?? "");
|
|
1198
1235
|
} }
|
|
1199
|
-
function
|
|
1236
|
+
function MenuItemListComponent_ng_template_12_button_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1200
1237
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
1201
1238
|
i0.ɵɵtext(1);
|
|
1202
1239
|
i0.ɵɵelementEnd();
|
|
@@ -1205,8 +1242,8 @@ function MenuItemListComponent_ng_template_11_button_0_Conditional_2_Template(rf
|
|
|
1205
1242
|
i0.ɵɵadvance();
|
|
1206
1243
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1207
1244
|
} }
|
|
1208
|
-
function
|
|
1209
|
-
i0.ɵɵelementStart(0, "span",
|
|
1245
|
+
function MenuItemListComponent_ng_template_12_button_0_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
1246
|
+
i0.ɵɵelementStart(0, "span", 24);
|
|
1210
1247
|
i0.ɵɵtext(1);
|
|
1211
1248
|
i0.ɵɵpipe(2, "translate");
|
|
1212
1249
|
i0.ɵɵelementEnd();
|
|
@@ -1215,12 +1252,12 @@ function MenuItemListComponent_ng_template_11_button_0_span_3_Template(rf, ctx)
|
|
|
1215
1252
|
i0.ɵɵadvance();
|
|
1216
1253
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.titleKey), " ");
|
|
1217
1254
|
} }
|
|
1218
|
-
function
|
|
1219
|
-
const
|
|
1220
|
-
i0.ɵɵelementStart(0, "button",
|
|
1221
|
-
i0.ɵɵlistener("click", function
|
|
1222
|
-
i0.ɵɵconditionalCreate(1,
|
|
1223
|
-
i0.ɵɵtemplate(3,
|
|
1255
|
+
function MenuItemListComponent_ng_template_12_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1256
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
1257
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
1258
|
+
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()); });
|
|
1259
|
+
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");
|
|
1260
|
+
i0.ɵɵtemplate(3, MenuItemListComponent_ng_template_12_button_0_span_3_Template, 3, 3, "span", 23);
|
|
1224
1261
|
i0.ɵɵelementEnd();
|
|
1225
1262
|
} if (rf & 2) {
|
|
1226
1263
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -1230,13 +1267,13 @@ function MenuItemListComponent_ng_template_11_button_0_Template(rf, ctx) { if (r
|
|
|
1230
1267
|
i0.ɵɵadvance(2);
|
|
1231
1268
|
i0.ɵɵproperty("ngIf", ctx_r0.titleKey);
|
|
1232
1269
|
} }
|
|
1233
|
-
function
|
|
1234
|
-
i0.ɵɵelement(0, "mat-icon",
|
|
1270
|
+
function MenuItemListComponent_ng_template_12_button_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1271
|
+
i0.ɵɵelement(0, "mat-icon", 22);
|
|
1235
1272
|
} if (rf & 2) {
|
|
1236
1273
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
1237
1274
|
i0.ɵɵproperty("svgIcon", ctx_r0.menuItemGroup.itemGroupIcon ?? "");
|
|
1238
1275
|
} }
|
|
1239
|
-
function
|
|
1276
|
+
function MenuItemListComponent_ng_template_12_button_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1240
1277
|
i0.ɵɵelementStart(0, "mat-icon");
|
|
1241
1278
|
i0.ɵɵtext(1);
|
|
1242
1279
|
i0.ɵɵelementEnd();
|
|
@@ -1245,12 +1282,12 @@ function MenuItemListComponent_ng_template_11_button_1_Conditional_3_Template(rf
|
|
|
1245
1282
|
i0.ɵɵadvance();
|
|
1246
1283
|
i0.ɵɵtextInterpolate(ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1247
1284
|
} }
|
|
1248
|
-
function
|
|
1249
|
-
const
|
|
1250
|
-
i0.ɵɵelementStart(0, "button",
|
|
1285
|
+
function MenuItemListComponent_ng_template_12_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1286
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
1287
|
+
i0.ɵɵelementStart(0, "button", 25);
|
|
1251
1288
|
i0.ɵɵpipe(1, "translate");
|
|
1252
|
-
i0.ɵɵlistener("click", function
|
|
1253
|
-
i0.ɵɵconditionalCreate(2,
|
|
1289
|
+
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()); });
|
|
1290
|
+
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
1291
|
i0.ɵɵelementEnd();
|
|
1255
1292
|
} if (rf & 2) {
|
|
1256
1293
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -1258,14 +1295,28 @@ function MenuItemListComponent_ng_template_11_button_1_Template(rf, ctx) { if (r
|
|
|
1258
1295
|
i0.ɵɵadvance(2);
|
|
1259
1296
|
i0.ɵɵconditional(ctx_r0.menuItemGroup.isCustomItemGroupIcon ? 2 : 3);
|
|
1260
1297
|
} }
|
|
1261
|
-
function
|
|
1262
|
-
i0.ɵɵtemplate(0,
|
|
1298
|
+
function MenuItemListComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
1299
|
+
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
1300
|
} if (rf & 2) {
|
|
1264
1301
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1265
1302
|
i0.ɵɵproperty("ngIf", ctx_r0.menuItemGroup && ctx_r0.labelsVisible);
|
|
1266
1303
|
i0.ɵɵadvance();
|
|
1267
1304
|
i0.ɵɵproperty("ngIf", ctx_r0.menuItemGroup && !ctx_r0.labelsVisible && ctx_r0.titleKey && ctx_r0.menuItemGroup.itemGroupIcon);
|
|
1268
1305
|
} }
|
|
1306
|
+
function MenuItemListComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
1307
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
1308
|
+
i0.ɵɵelement(1, "span", 27);
|
|
1309
|
+
i0.ɵɵpipe(2, "translate");
|
|
1310
|
+
i0.ɵɵelement(3, "p", 28);
|
|
1311
|
+
i0.ɵɵpipe(4, "translate");
|
|
1312
|
+
i0.ɵɵelementEnd();
|
|
1313
|
+
} if (rf & 2) {
|
|
1314
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1315
|
+
i0.ɵɵadvance();
|
|
1316
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 2, ctx_r0.menuItemGroup.title || ""), i0.ɵɵsanitizeHtml);
|
|
1317
|
+
i0.ɵɵadvance(2);
|
|
1318
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(4, 4, ctx_r0.menuItemGroup.description || ""), i0.ɵɵsanitizeHtml);
|
|
1319
|
+
} }
|
|
1269
1320
|
class MenuItemListComponent {
|
|
1270
1321
|
constructor() {
|
|
1271
1322
|
this.direction = MenuLayoutDirection.column;
|
|
@@ -1300,25 +1351,25 @@ class MenuItemListComponent {
|
|
|
1300
1351
|
this.openMenuTrigger.emit();
|
|
1301
1352
|
}
|
|
1302
1353
|
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(
|
|
1354
|
+
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) {
|
|
1355
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
1356
|
+
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");
|
|
1357
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
1358
|
+
i0.ɵɵtemplate(5, MenuItemListComponent_ng_container_5_Template, 2, 4, "ng-container", 8);
|
|
1308
1359
|
i0.ɵɵelementEnd()();
|
|
1309
|
-
i0.ɵɵtemplate(
|
|
1360
|
+
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
1361
|
} if (rf & 2) {
|
|
1311
1362
|
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(
|
|
1363
|
+
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);
|
|
1364
|
+
i0.ɵɵadvance(3);
|
|
1314
1365
|
i0.ɵɵproperty("fxLayoutAlign", ctx.menuLayoutDirection);
|
|
1315
1366
|
i0.ɵɵadvance();
|
|
1316
1367
|
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}}"] }); }
|
|
1368
|
+
} }, 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
1369
|
}
|
|
1319
1370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuItemListComponent, [{
|
|
1320
1371
|
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"] }]
|
|
1372
|
+
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
1373
|
}], null, { direction: [{
|
|
1323
1374
|
type: Input
|
|
1324
1375
|
}], labelsVisible: [{
|
|
@@ -1501,12 +1552,13 @@ function MenuProfileComponent_Conditional_1_ng_container_6_Template(rf, ctx) { i
|
|
|
1501
1552
|
i0.ɵɵtemplate(4, MenuProfileComponent_Conditional_1_ng_container_6_mat_icon_4_Template, 2, 0, "mat-icon", 12)(5, MenuProfileComponent_Conditional_1_ng_container_6_ng_template_5_Template, 2, 0, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
1502
1553
|
i0.ɵɵelementContainerEnd();
|
|
1503
1554
|
} if (rf & 2) {
|
|
1555
|
+
let tmp_6_0;
|
|
1504
1556
|
const iconDown_r3 = i0.ɵɵreference(6);
|
|
1505
1557
|
i0.ɵɵnextContext();
|
|
1506
1558
|
const state_r4 = i0.ɵɵreference(2);
|
|
1507
1559
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
1508
1560
|
i0.ɵɵadvance(2);
|
|
1509
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3,
|
|
1561
|
+
i0.ɵɵtextInterpolate1(" ", ((tmp_6_0 = ctx_r1.username()) == null ? null : tmp_6_0.length) ? ctx_r1.username() : i0.ɵɵpipeBind1(3, 3, "MENU.ANONYMOUS"), " ");
|
|
1510
1562
|
i0.ɵɵadvance(2);
|
|
1511
1563
|
i0.ɵɵproperty("ngIf", state_r4.menuOpen)("ngIfElse", iconDown_r3);
|
|
1512
1564
|
} }
|
|
@@ -1670,7 +1722,7 @@ class MenuProfileComponent {
|
|
|
1670
1722
|
}
|
|
1671
1723
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuProfileComponent, [{
|
|
1672
1724
|
type: Component,
|
|
1673
|
-
args: [{ selector: 'lib-menu-profile', standalone: false, template: "@if (useLargeLoginButton() && !username() && !collapsed()) {\r\n\t<div class=\"login-wrapper\">\r\n\t\t<button mat-stroked-button color=\"accent\" class=\"login-btn\" (click)=\"login()\">\r\n\t\t\t<mat-icon>login</mat-icon>\r\n\t\t\t{{ \"MENU.LOGIN\" | translate }}\r\n\t\t</button>\r\n\t</div>\r\n} @else {\r\n<div class=\"profile\">\r\n\t<button #state=\"matMenuTrigger\" [class.collapsed]=\"collapsed()\" [matMenuTriggerFor]=\"menu\" class=\"profile-wrapper\" [class.active]=\"state.menuOpen\">\r\n\t\t<div class=\"profile-icon\">\r\n\t\t\t@if (userInitials) {\r\n\t\t\t{{ userInitials }}\r\n\t\t\t} @else {\r\n\t\t\t<mat-icon>person</mat-icon>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<ng-container *ngIf=\"!collapsed()\">\r\n\t\t\t<span class=\"profile-name\">\r\n\t\t\t\t{{ username()
|
|
1725
|
+
args: [{ selector: 'lib-menu-profile', standalone: false, template: "@if (useLargeLoginButton() && !username() && !collapsed()) {\r\n\t<div class=\"login-wrapper\">\r\n\t\t<button mat-stroked-button color=\"accent\" class=\"login-btn\" (click)=\"login()\">\r\n\t\t\t<mat-icon>login</mat-icon>\r\n\t\t\t{{ \"MENU.LOGIN\" | translate }}\r\n\t\t</button>\r\n\t</div>\r\n} @else {\r\n<div class=\"profile\">\r\n\t<button #state=\"matMenuTrigger\" [class.collapsed]=\"collapsed()\" [matMenuTriggerFor]=\"menu\" class=\"profile-wrapper\" [class.active]=\"state.menuOpen\">\r\n\t\t<div class=\"profile-icon\">\r\n\t\t\t@if (userInitials) {\r\n\t\t\t{{ userInitials }}\r\n\t\t\t} @else {\r\n\t\t\t<mat-icon>person</mat-icon>\r\n\t\t\t}\r\n\t\t</div>\r\n\r\n\t\t<ng-container *ngIf=\"!collapsed()\">\r\n\t\t\t<span class=\"profile-name\">\r\n\t\t\t\t{{ username()?.length ? username() : \"MENU.ANONYMOUS\" | translate }}\r\n\t\t\t</span>\r\n\r\n\t\t\t<mat-icon *ngIf=\"state.menuOpen; else iconDown\" class=\"profile-arrow spin\">keyboard_arrow_down</mat-icon>\r\n\r\n\t\t\t<ng-template #iconDown>\r\n\t\t\t\t<mat-icon class=\"profile-arrow spin\">keyboard_arrow_up</mat-icon>\r\n\t\t\t</ng-template>\r\n\t\t</ng-container>\r\n\t</button>\r\n\r\n\t<mat-menu #menu=\"matMenu\" class=\"profile-menu\">\r\n\t\t@for (item of userOptions(); track item.label) { @if (item.link) { @if (item.link.isExternal) {\r\n\t\t<a class=\"mat-mdc-menu-item\" [href]=\"item.link.href\" target=\"_blank\" (click)=\"linkCallback(item.link)\">\r\n\t\t\t<ng-container *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\"> </ng-container>\r\n\t\t</a>\r\n\t\t} @else {\r\n\t\t<a class=\"mat-mdc-menu-item\" [routerLink]=\"item.link.href\" (click)=\"linkCallback(item.link)\">\r\n\t\t\t<ng-container *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\"> </ng-container>\r\n\t\t</a>\r\n\t\t} } @else {\r\n\t\t<button mat-menu-item class=\"profile-option\" (click)=\"item.button?.callback()\">\r\n\t\t\t<ng-container *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\"> </ng-container>\r\n\t\t</button>\r\n\t\t} }\r\n\t</mat-menu>\r\n</div>\r\n\r\n<ng-template #profileMenuItem let-icon=\"icon\" let-label=\"label\">\r\n\t@if (icon) { @if (!icon?.isCustom) {\r\n\t<span class=\"material-icons profile-option-icon\" [class.material-icons-outlined]=\"icon?.isOutlined\">\r\n\t\t{{ icon?.name }}\r\n\t</span>\r\n\t} @else {\r\n\t<mat-icon class=\"profile-option-icon\" [svgIcon]=\"icon?.name\"></mat-icon>\r\n\t} }\r\n\t{{ label | translate }}\r\n</ng-template>\r\n}\r\n", styles: [".spin{animation:spinArrow .3s forwards}@keyframes spinArrow{to{transform:rotate(180deg)}}a{text-decoration:none}.login-wrapper{padding:10px;margin-bottom:20px}.login-btn{width:100%!important}.profile{position:relative;margin-top:100px}.profile-wrapper{background:none;color:var(--base-30);display:flex;align-items:center;justify-content:start;width:100%;position:absolute;bottom:0;margin:24px 0;border-radius:5px;padding:8px 0}.profile-wrapper:hover .profile-icon{background-color:var(--base-70);filter:brightness(.97)}.profile-wrapper:hover:not(.collapsed),.profile-wrapper.active:not(.collapsed){background-color:var(--base-70)}.collapsed.profile-wrapper{padding:0!important;margin:32px 0!important}.profile-icon{margin-left:20px;display:flex;justify-content:center;align-items:center;min-width:40px;height:40px;border-radius:100%;color:var(--base-0);background-color:var(--base-70);font-size:16px;font-weight:600}.active .profile-icon{background-color:var(--base-70);filter:brightness(.97)}.collapsed .profile-icon{margin-left:0!important}.profile-name{max-width:9.0625rem;overflow:hidden;margin-left:12px;text-overflow:ellipsis}.profile-option-icon{vertical-align:middle;margin:0 5px 5px 0}.profile-arrow{position:absolute;right:0;margin-right:10px}.mobile .profile-arrow{margin-right:20px}::ng-deep .profile-menu a{font-weight:400!important;display:flex;align-items:center;gap:5px}::ng-deep .profile-menu a:hover{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))!important;text-decoration:inherit}\n"] }]
|
|
1674
1726
|
}], null, { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], username: [{ type: i0.Input, args: [{ isSignal: true, alias: "username", required: false }] }], useLargeLoginButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "useLargeLoginButton", required: false }] }], userOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "userOptions", required: false }] }], linkCallbackEvent: [{ type: i0.Output, args: ["linkCallbackEvent"] }], loginEvent: [{ type: i0.Output, args: ["loginEvent"] }] }); })();
|
|
1675
1727
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuProfileComponent, { className: "MenuProfileComponent", filePath: "lib/components/menu-profile/menu-profile.component.ts", lineNumber: 11 }); })();
|
|
1676
1728
|
|