@ascentgl/ads-ui 0.0.136 → 0.0.139

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.
@@ -4,11 +4,11 @@ import * as i1 from '@ascentgl/ads-icons';
4
4
  import { AdsIconModule, AdsIconRegistry } from '@ascentgl/ads-icons';
5
5
  import { adsIconUserCircle, adsIconChevronRight, adsIconCross, adsIconPlus, adsIconWarning, adsIconLock, adsIconPlusCircle, adsIconSearch, adsIconSortDescending, adsIconCheckCircleFilled, adsIconVisibilityEye, adsIconVisibilityEyeNone, adsIconStatusProcessing, adsIconInformation, adsIconChevronDown, adsIconLoading, adsIconDatepicker, adsIconTimepicker, adsIconCheck, adsIconChevronUp, adsIconMenuMoreInfo, adsIconHamburgerMenu } from '@ascentgl/ads-icons/icons';
6
6
  import * as i1$1 from '@angular/common';
7
- import { CommonModule, NgOptimizedImage, NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
7
+ import { CommonModule, NgOptimizedImage, NgTemplateOutlet, NgClass, NgStyle, NgIf } from '@angular/common';
8
8
  import * as i2 from '@angular/material/badge';
9
9
  import { MatBadge } from '@angular/material/badge';
10
10
  import * as i1$2 from '@angular/router';
11
- import { RouterModule, RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';
11
+ import { RouterModule, RouterLinkActive, RouterLink, RouterOutlet, NavigationStart } from '@angular/router';
12
12
  import * as i7 from '@angular/material/button';
13
13
  import { MatButtonModule, MatIconButton, MatButton } from '@angular/material/button';
14
14
  import * as i4 from '@angular/forms';
@@ -16,7 +16,7 @@ import { FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
16
16
  import * as i4$1 from '@angular/cdk/overlay';
17
17
  import { OverlayModule } from '@angular/cdk/overlay';
18
18
  import { Subject, asapScheduler, timer, of, Subscription, combineLatest } from 'rxjs';
19
- import { takeUntil, map, tap, debounce } from 'rxjs/operators';
19
+ import { takeUntil, map, tap, debounce, filter } from 'rxjs/operators';
20
20
  import * as i3 from '@angular/platform-browser';
21
21
  import { DomHelper, AdsGestureModule, ObjectHelper } from '@ascentgl/ads-utils';
22
22
  import * as i2$1 from '@angular/material/progress-spinner';
@@ -56,14 +56,17 @@ import { ModuleRegistry, AllCommunityModule, provideGlobalGridOptions, themeQuar
56
56
  import * as i2$3 from 'ag-grid-angular';
57
57
  import { AgGridAngular } from 'ag-grid-angular';
58
58
  import * as i4$3 from '@angular/material/menu';
59
- import { MatMenu, MatMenuTrigger, MatMenuItem } from '@angular/material/menu';
59
+ import { MatMenu, MatMenuTrigger, MatMenuItem, MatMenuModule } from '@angular/material/menu';
60
60
  import * as i4$4 from 'angular-split';
61
61
  import { SplitComponent, SplitAreaComponent } from 'angular-split';
62
62
  import * as i11$1 from '@angular/material/toolbar';
63
63
  import { MatToolbar } from '@angular/material/toolbar';
64
+ import * as i1$5 from '@angular/material/bottom-sheet';
65
+ import { MAT_BOTTOM_SHEET_DATA, MatBottomSheetModule } from '@angular/material/bottom-sheet';
66
+ import { MatListModule } from '@angular/material/list';
64
67
  import * as i2$4 from '@angular/material/tabs';
65
68
  import { MatTabNav, MatTabLink, MatTabNavPanel } from '@angular/material/tabs';
66
- import * as i1$5 from '@angular/common/http';
69
+ import * as i1$6 from '@angular/common/http';
67
70
 
68
71
  class AdsAvatarComponent {
69
72
  constructor(registry) {
@@ -6338,6 +6341,228 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
6338
6341
  }]
6339
6342
  }] });
6340
6343
 
6344
+ class MainMenuService {
6345
+ constructor() {
6346
+ this.menuItemClicked = new Subject();
6347
+ }
6348
+ onMenuItemClicked(item) {
6349
+ this.menuItemClicked.next(item);
6350
+ }
6351
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6352
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MainMenuService, providedIn: 'root' }); }
6353
+ }
6354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: MainMenuService, decorators: [{
6355
+ type: Injectable,
6356
+ args: [{ providedIn: 'root' }]
6357
+ }] });
6358
+
6359
+ class AdsMainMenuItemsComponent {
6360
+ constructor(mainMenuService) {
6361
+ this.mainMenuService = mainMenuService;
6362
+ }
6363
+ onMenuItemClick(item) {
6364
+ this.mainMenuService.onMenuItemClicked(item);
6365
+ }
6366
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsComponent, deps: [{ token: MainMenuService }], target: i0.ɵɵFactoryTarget.Component }); }
6367
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: AdsMainMenuItemsComponent, isStandalone: false, selector: "ads-main-menu-items", inputs: { items: "items" }, ngImport: i0, template: "<div class=\"peak-menu-content\">\r\n <div *ngFor=\"let item of items ?? []\" mat-menu-item [ngClass]=\"item.class ? item.class : ''\">\r\n @if(item.click) {\r\n <span (click)=\"item.click()\">\r\n {{ item.text }}\r\n </span>\r\n } @else if (item.href) {\r\n <a [routerLink]=\"item.href\" [id]=\"item?.id\" routerLinkActive=\"selected\">\r\n {{ item.text }}\r\n </a>\r\n } @else {\r\n <a [id]=\"item?.id\">{{ item.text }}</a>\r\n }\r\n </div>\r\n</div>\r\n", styles: ["a:not(:hover).selected{background-color:var(--color-secondary-25)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i4$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }] }); }
6368
+ }
6369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsComponent, decorators: [{
6370
+ type: Component,
6371
+ args: [{ selector: 'ads-main-menu-items', standalone: false, template: "<div class=\"peak-menu-content\">\r\n <div *ngFor=\"let item of items ?? []\" mat-menu-item [ngClass]=\"item.class ? item.class : ''\">\r\n @if(item.click) {\r\n <span (click)=\"item.click()\">\r\n {{ item.text }}\r\n </span>\r\n } @else if (item.href) {\r\n <a [routerLink]=\"item.href\" [id]=\"item?.id\" routerLinkActive=\"selected\">\r\n {{ item.text }}\r\n </a>\r\n } @else {\r\n <a [id]=\"item?.id\">{{ item.text }}</a>\r\n }\r\n </div>\r\n</div>\r\n", styles: ["a:not(:hover).selected{background-color:var(--color-secondary-25)}\n"] }]
6372
+ }], ctorParameters: () => [{ type: MainMenuService }], propDecorators: { items: [{
6373
+ type: Input
6374
+ }] } });
6375
+
6376
+ class AdsMainMenuItemsModule {
6377
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6378
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsModule, declarations: [AdsMainMenuItemsComponent], imports: [CommonModule, RouterModule, MatMenuModule, AdsButtonModule, AdsButtonModule, AdsLinkButtonModule], exports: [AdsMainMenuItemsComponent] }); }
6379
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsModule, imports: [CommonModule, RouterModule, MatMenuModule, AdsButtonModule, AdsButtonModule, AdsLinkButtonModule] }); }
6380
+ }
6381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuItemsModule, decorators: [{
6382
+ type: NgModule,
6383
+ args: [{
6384
+ imports: [CommonModule, RouterModule, MatMenuModule, AdsButtonModule, AdsButtonModule, AdsLinkButtonModule],
6385
+ exports: [AdsMainMenuItemsComponent],
6386
+ declarations: [AdsMainMenuItemsComponent],
6387
+ }]
6388
+ }] });
6389
+
6390
+ class AdsProfileDisplayComponent {
6391
+ constructor(router, registry) {
6392
+ this.router = router;
6393
+ this.registry = registry;
6394
+ this.registry.register(adsIconUserCircle);
6395
+ }
6396
+ isSelected() {
6397
+ return this.router.url.startsWith(this.userBasePath);
6398
+ }
6399
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayComponent, deps: [{ token: i1$2.Router }, { token: i1.AdsIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
6400
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AdsProfileDisplayComponent, isStandalone: false, selector: "ads-profile-display", inputs: { userDisplayName: "userDisplayName", userImageSrc: "userImageSrc", userProfilePath: "userProfilePath", userBasePath: "userBasePath" }, ngImport: i0, template: "<a class=\"user\" [routerLink]=\"[userProfilePath]\" [ngClass]=\"{ selected: isSelected() }\">\r\n <img *ngIf=\"userImageSrc; else defaultImage\" [src]=\"userImageSrc\" alt=\"{{ userDisplayName }}\" />\r\n <ng-template #defaultImage>\r\n <ads-icon name=\"user_circle\" size=\"sm\" theme=\"primary\"></ads-icon>\r\n </ng-template>\r\n <span class=\"username\">{{ userDisplayName }}</span>\r\n</a>\r\n", styles: [".user{display:flex;align-items:center;height:54px;padding:0 16px;color:var(--color-dark);text-decoration:none}.user img{width:24px;height:24px;border-radius:24px}.user:not(:hover).selected{background-color:var(--color-secondary-25)}.user:hover{background-color:var(--color-secondary);color:var(--color-white)}.user:hover,.user.selected{cursor:pointer;text-decoration:none}.username{padding-left:16px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i1.AdsIconComponent, selector: "ads-icon", inputs: ["size", "name", "color", "theme", "stroke"] }] }); }
6401
+ }
6402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayComponent, decorators: [{
6403
+ type: Component,
6404
+ args: [{ selector: 'ads-profile-display', standalone: false, template: "<a class=\"user\" [routerLink]=\"[userProfilePath]\" [ngClass]=\"{ selected: isSelected() }\">\r\n <img *ngIf=\"userImageSrc; else defaultImage\" [src]=\"userImageSrc\" alt=\"{{ userDisplayName }}\" />\r\n <ng-template #defaultImage>\r\n <ads-icon name=\"user_circle\" size=\"sm\" theme=\"primary\"></ads-icon>\r\n </ng-template>\r\n <span class=\"username\">{{ userDisplayName }}</span>\r\n</a>\r\n", styles: [".user{display:flex;align-items:center;height:54px;padding:0 16px;color:var(--color-dark);text-decoration:none}.user img{width:24px;height:24px;border-radius:24px}.user:not(:hover).selected{background-color:var(--color-secondary-25)}.user:hover{background-color:var(--color-secondary);color:var(--color-white)}.user:hover,.user.selected{cursor:pointer;text-decoration:none}.username{padding-left:16px}\n"] }]
6405
+ }], ctorParameters: () => [{ type: i1$2.Router }, { type: i1.AdsIconRegistry }], propDecorators: { userDisplayName: [{
6406
+ type: Input,
6407
+ args: [{ required: true }]
6408
+ }], userImageSrc: [{
6409
+ type: Input,
6410
+ args: [{ required: true }]
6411
+ }], userProfilePath: [{
6412
+ type: Input,
6413
+ args: [{ required: true }]
6414
+ }], userBasePath: [{
6415
+ type: Input,
6416
+ args: [{ required: true }]
6417
+ }] } });
6418
+
6419
+ class AdsProfileDisplayModule {
6420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6421
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayModule, declarations: [AdsProfileDisplayComponent], imports: [CommonModule, RouterModule, AdsIconModule], exports: [AdsProfileDisplayComponent] }); }
6422
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayModule, imports: [CommonModule, RouterModule, AdsIconModule] }); }
6423
+ }
6424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsProfileDisplayModule, decorators: [{
6425
+ type: NgModule,
6426
+ args: [{
6427
+ imports: [CommonModule, RouterModule, AdsIconModule],
6428
+ exports: [AdsProfileDisplayComponent],
6429
+ declarations: [AdsProfileDisplayComponent],
6430
+ }]
6431
+ }] });
6432
+
6433
+ class AdsMainMenuBottomSheetComponent {
6434
+ constructor(data) {
6435
+ this.data = data;
6436
+ }
6437
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuBottomSheetComponent, deps: [{ token: MAT_BOTTOM_SHEET_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
6438
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AdsMainMenuBottomSheetComponent, isStandalone: true, selector: "ads-main-menu-bottom-sheet", ngImport: i0, template: "<div class=\"peak-menu-content\">\r\n <ads-profile-display\r\n *ngIf=\"data?.userDisplayName\"\r\n [userDisplayName]=\"data.userDisplayName\"\r\n [userImageSrc]=\"data.userImageSrc\"\r\n [userProfilePath]=\"data.userProfilePath\"\r\n [userBasePath]=\"data.userBasePath\"\r\n ></ads-profile-display>\r\n <ads-main-menu-items [items]=\"data.menuItems\"></ads-main-menu-items>\r\n</div>\r\n", styles: [".user{display:flex;align-items:center;height:54px;padding:0 16px}.user img{width:24px;height:24px;border-radius:24px}.username{padding-left:16px}\n"], dependencies: [{ kind: "ngmodule", type: AdsMainMenuItemsModule }, { kind: "component", type: AdsMainMenuItemsComponent, selector: "ads-main-menu-items", inputs: ["items"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AdsProfileDisplayModule }, { kind: "component", type: AdsProfileDisplayComponent, selector: "ads-profile-display", inputs: ["userDisplayName", "userImageSrc", "userProfilePath", "userBasePath"] }] }); }
6439
+ }
6440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuBottomSheetComponent, decorators: [{
6441
+ type: Component,
6442
+ args: [{ selector: 'ads-main-menu-bottom-sheet', standalone: true, imports: [AdsMainMenuItemsModule, NgIf, AdsProfileDisplayModule], template: "<div class=\"peak-menu-content\">\r\n <ads-profile-display\r\n *ngIf=\"data?.userDisplayName\"\r\n [userDisplayName]=\"data.userDisplayName\"\r\n [userImageSrc]=\"data.userImageSrc\"\r\n [userProfilePath]=\"data.userProfilePath\"\r\n [userBasePath]=\"data.userBasePath\"\r\n ></ads-profile-display>\r\n <ads-main-menu-items [items]=\"data.menuItems\"></ads-main-menu-items>\r\n</div>\r\n", styles: [".user{display:flex;align-items:center;height:54px;padding:0 16px}.user img{width:24px;height:24px;border-radius:24px}.username{padding-left:16px}\n"] }]
6443
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
6444
+ type: Inject,
6445
+ args: [MAT_BOTTOM_SHEET_DATA]
6446
+ }] }] });
6447
+
6448
+ class AdsMainMenuComponent {
6449
+ constructor(bottomSheet, registry, router) {
6450
+ this.bottomSheet = bottomSheet;
6451
+ this.registry = registry;
6452
+ this.router = router;
6453
+ /**
6454
+ * Array of menu items to display in the main menu
6455
+ */
6456
+ this.menuItems = [];
6457
+ /** Id attribute for the main menu trigger element */
6458
+ this.id = 'peak-main-menu';
6459
+ /**
6460
+ * Whether the navigation is collapsed
6461
+ */
6462
+ this.isCollapsed = false;
6463
+ /**
6464
+ * Whether the viewport is mobile
6465
+ */
6466
+ this.isMobile = false;
6467
+ this.registry.register(adsIconMenuMoreInfo);
6468
+ }
6469
+ /** @ignore */
6470
+ ngOnInit() {
6471
+ this.router.events.pipe(filter((event) => event instanceof NavigationStart)).subscribe(() => {
6472
+ this.bottomSheetRef?.dismiss();
6473
+ });
6474
+ }
6475
+ /** @ignore */
6476
+ ngOnChanges(changes) {
6477
+ if (changes.isMobile) {
6478
+ const footerMenu = document.querySelector('.peak-bottom-sheet-panel');
6479
+ /**
6480
+ * if we are going from mobile to desktop size;
6481
+ * hide menu (to avoid its being animated) and dismiss it
6482
+ */
6483
+ if (footerMenu?.parentElement?.parentElement && !this.isMobile) {
6484
+ Array.from(footerMenu.parentElement.parentElement.children).forEach((child) => child.remove());
6485
+ this.bottomSheetRef?.dismiss();
6486
+ }
6487
+ }
6488
+ }
6489
+ /** @ignore */
6490
+ openBottomSheet() {
6491
+ this.bottomSheetRef = this.bottomSheet.open(AdsMainMenuBottomSheetComponent, {
6492
+ data: {
6493
+ menuItems: this.menuItems,
6494
+ userDisplayName: this.userDisplayName,
6495
+ userProfilePath: this.userProfilePath,
6496
+ userImageSrc: this.userImageSrc,
6497
+ userBasePath: this.userBasePath,
6498
+ },
6499
+ panelClass: 'peak-bottom-sheet-panel',
6500
+ });
6501
+ }
6502
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuComponent, deps: [{ token: i1$5.MatBottomSheet }, { token: i1.AdsIconRegistry }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
6503
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: AdsMainMenuComponent, isStandalone: false, selector: "ads-main-menu", inputs: { menuItems: "menuItems", id: "id", isCollapsed: "isCollapsed", isMobile: "isMobile", userImageSrc: "userImageSrc", userDisplayName: "userDisplayName", userProfilePath: "userProfilePath", userBasePath: "userBasePath" }, viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"isMobile; else desktop\">\r\n <div *ngIf=\"isCollapsed\" class=\"more-icon\">\r\n <div class=\"icon-hover\">\r\n <ads-icon [id]=\"id\" name=\"menu_more_info\" size=\"sm\" theme=\"primary\" (click)=\"openBottomSheet()\"></ads-icon>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-template #desktop>\r\n <div class=\"more-icon\">\r\n <div class=\"icon-hover\" [matMenuTriggerFor]=\"menu\">\r\n <ads-icon [id]=\"id\" name=\"menu_more_info\" size=\"sm\" theme=\"primary\"></ads-icon>\r\n </div>\r\n </div>\r\n <mat-menu #menu=\"matMenu\" class=\"peak-more-menu-panel\">\r\n <ads-profile-display\r\n *ngIf=\"userDisplayName\"\r\n [userDisplayName]=\"userDisplayName\"\r\n [userImageSrc]=\"userImageSrc\"\r\n [userBasePath]=\"userBasePath ?? '/'\"\r\n [userProfilePath]=\"userProfilePath ?? '/'\"\r\n />\r\n <ads-main-menu-items [items]=\"menuItems\"/>\r\n </mat-menu>\r\n</ng-template>\r\n", styles: [".icon-hover{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:5px;cursor:pointer}.icon-hover:hover{background-color:var(--color-light-30)}.more-icon{margin-left:8px;margin-right:-4px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i4$3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1.AdsIconComponent, selector: "ads-icon", inputs: ["size", "name", "color", "theme", "stroke"] }, { kind: "component", type: AdsMainMenuItemsComponent, selector: "ads-main-menu-items", inputs: ["items"] }, { kind: "component", type: AdsProfileDisplayComponent, selector: "ads-profile-display", inputs: ["userDisplayName", "userImageSrc", "userProfilePath", "userBasePath"] }] }); }
6504
+ }
6505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuComponent, decorators: [{
6506
+ type: Component,
6507
+ args: [{ selector: 'ads-main-menu', standalone: false, template: "<ng-container *ngIf=\"isMobile; else desktop\">\r\n <div *ngIf=\"isCollapsed\" class=\"more-icon\">\r\n <div class=\"icon-hover\">\r\n <ads-icon [id]=\"id\" name=\"menu_more_info\" size=\"sm\" theme=\"primary\" (click)=\"openBottomSheet()\"></ads-icon>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<ng-template #desktop>\r\n <div class=\"more-icon\">\r\n <div class=\"icon-hover\" [matMenuTriggerFor]=\"menu\">\r\n <ads-icon [id]=\"id\" name=\"menu_more_info\" size=\"sm\" theme=\"primary\"></ads-icon>\r\n </div>\r\n </div>\r\n <mat-menu #menu=\"matMenu\" class=\"peak-more-menu-panel\">\r\n <ads-profile-display\r\n *ngIf=\"userDisplayName\"\r\n [userDisplayName]=\"userDisplayName\"\r\n [userImageSrc]=\"userImageSrc\"\r\n [userBasePath]=\"userBasePath ?? '/'\"\r\n [userProfilePath]=\"userProfilePath ?? '/'\"\r\n />\r\n <ads-main-menu-items [items]=\"menuItems\"/>\r\n </mat-menu>\r\n</ng-template>\r\n", styles: [".icon-hover{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:5px;cursor:pointer}.icon-hover:hover{background-color:var(--color-light-30)}.more-icon{margin-left:8px;margin-right:-4px}\n"] }]
6508
+ }], ctorParameters: () => [{ type: i1$5.MatBottomSheet }, { type: i1.AdsIconRegistry }, { type: i1$2.Router }], propDecorators: { menu: [{
6509
+ type: ViewChild,
6510
+ args: ['menu']
6511
+ }], menuItems: [{
6512
+ type: Input
6513
+ }], id: [{
6514
+ type: Input
6515
+ }], isCollapsed: [{
6516
+ type: Input
6517
+ }], isMobile: [{
6518
+ type: Input
6519
+ }], userImageSrc: [{
6520
+ type: Input
6521
+ }], userDisplayName: [{
6522
+ type: Input
6523
+ }], userProfilePath: [{
6524
+ type: Input
6525
+ }], userBasePath: [{
6526
+ type: Input
6527
+ }] } });
6528
+
6529
+ class AdsMainMenuModule {
6530
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6531
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuModule, declarations: [AdsMainMenuComponent], imports: [CommonModule,
6532
+ MatBottomSheetModule,
6533
+ MatListModule,
6534
+ MatMenuModule,
6535
+ AdsIconModule,
6536
+ AdsMainMenuItemsModule,
6537
+ AdsProfileDisplayModule,
6538
+ RouterModule], exports: [AdsMainMenuComponent] }); }
6539
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuModule, imports: [CommonModule,
6540
+ MatBottomSheetModule,
6541
+ MatListModule,
6542
+ MatMenuModule,
6543
+ AdsIconModule,
6544
+ AdsMainMenuItemsModule,
6545
+ AdsProfileDisplayModule,
6546
+ RouterModule] }); }
6547
+ }
6548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsMainMenuModule, decorators: [{
6549
+ type: NgModule,
6550
+ args: [{
6551
+ imports: [
6552
+ CommonModule,
6553
+ MatBottomSheetModule,
6554
+ MatListModule,
6555
+ MatMenuModule,
6556
+ AdsIconModule,
6557
+ AdsMainMenuItemsModule,
6558
+ AdsProfileDisplayModule,
6559
+ RouterModule,
6560
+ ],
6561
+ exports: [AdsMainMenuComponent],
6562
+ declarations: [AdsMainMenuComponent],
6563
+ }]
6564
+ }] });
6565
+
6341
6566
  class AdsNumericStepComponent {
6342
6567
  constructor() {
6343
6568
  this.isLast = input.required();
@@ -6551,13 +6776,13 @@ class AdsBubbleComponent {
6551
6776
  link.download = `${this.svgName}.svg`;
6552
6777
  link.click();
6553
6778
  }
6554
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsBubbleComponent, deps: [{ token: i1$5.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
6779
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsBubbleComponent, deps: [{ token: i1$6.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
6555
6780
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: AdsBubbleComponent, isStandalone: false, selector: "ads-bubble", viewQueries: [{ propertyName: "svgBackgroundElement", first: true, predicate: ["svgBackground"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #svgBackground class=\"svg-background\"></div>\r\n@if (svgContent) {\r\n <div class=\"button-container\">\r\n <ads-button (click)=\"downloadSvg()\">Download SVG</ads-button>\r\n </div>\r\n}\r\n", styles: [".svg-background{width:100%;height:657px;background-repeat:no-repeat;background-size:cover;background-position:center;border-radius:8px}.button-container{display:flex;justify-content:center;padding-top:32px}\n"], dependencies: [{ kind: "component", type: AdsButtonComponent, selector: "ads-button", inputs: ["id", "variant", "disabled", "size", "type"] }] }); }
6556
6781
  }
6557
6782
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsBubbleComponent, decorators: [{
6558
6783
  type: Component,
6559
6784
  args: [{ selector: 'ads-bubble', standalone: false, template: "<div #svgBackground class=\"svg-background\"></div>\r\n@if (svgContent) {\r\n <div class=\"button-container\">\r\n <ads-button (click)=\"downloadSvg()\">Download SVG</ads-button>\r\n </div>\r\n}\r\n", styles: [".svg-background{width:100%;height:657px;background-repeat:no-repeat;background-size:cover;background-position:center;border-radius:8px}.button-container{display:flex;justify-content:center;padding-top:32px}\n"] }]
6560
- }], ctorParameters: () => [{ type: i1$5.HttpClient }] });
6785
+ }], ctorParameters: () => [{ type: i1$6.HttpClient }] });
6561
6786
 
6562
6787
  class AdsBubbleModule {
6563
6788
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: AdsBubbleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
@@ -6976,5 +7201,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
6976
7201
  * Generated bundle index. Do not edit.
6977
7202
  */
6978
7203
 
6979
- export { AdsAscentLogoComponent, AdsAscentLogoModule, AdsAvatarComponent, AdsAvatarModule, AdsBreadcrumbComponent, AdsBreadcrumbModule, AdsBubbleComponent, AdsBubbleModule, AdsButtonComponent, AdsButtonContainerComponent, AdsButtonContainerModule, AdsButtonModule, AdsCardComponent, AdsCardModule, AdsCheckboxComponent, AdsCheckboxModule, AdsChipComponent, AdsChipModule, AdsCreateTagComponent, AdsCreateTagModule, AdsDatepickerComponent, AdsDatepickerModule, AdsDatetimepickerComponent, AdsDatetimepickerModule, AdsDividerModule, AdsDragAndDropListComponent, AdsDragAndDropListModule, AdsDropdownComponent, AdsDropdownModule, AdsErrorPageCodeComponent, AdsErrorPageCodeModule, AdsErrorPageComponent, AdsErrorPageModule, AdsExpansionPanelComponent, AdsExpansionPanelModule, AdsFooterComponent, AdsFooterContainerComponent, AdsFooterContainerModule, AdsFooterModule, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHeaderContainerModule, AdsHeaderModule, AdsHorizontalNavBarComponent, AdsHorizontalNavBarModule, AdsIconButtonComponent, AdsIconButtonModule, AdsIconHoverComponent, AdsIconHoverModule, AdsInputComponent, AdsInputDropdownComponent, AdsInputDropdownModule, AdsInputModule, AdsLinkButtonComponent, AdsLinkButtonModule, AdsModalComponent, AdsModalModule, AdsMultiSelectDropdownComponent, AdsMultiSelectDropdownModule, AdsNavMenuComponent, AdsNavMenuModule, AdsNavigationCollapseHandleComponent, AdsNavigationCollapseHandleModule, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationHeaderModule, AdsNavigationItemComponent, AdsNavigationItemModule, AdsNavigationItemsContainerComponent, AdsNavigationItemsContainerModule, AdsNavigationModule, AdsNumericBadgeComponent, AdsNumericBadgeModule, AdsNumericStepperComponent, AdsNumericStepperModule, AdsOrgDisplayTextComponent, AdsOrgDisplayTextModule, AdsPhoneFieldComponent, AdsPhoneFieldModule, AdsPrimaryLogoComponent, AdsPrimaryLogoModule, AdsProgressBarComponent, AdsProgressBarModule, AdsProgressIndicatorSpinnerComponent, AdsProgressIndicatorSpinnerModule, AdsProgressSpinnerComponent, AdsProgressSpinnerModule, AdsRadioButtonComponent, AdsRadioButtonModule, AdsScmsSideNavBarComponent, AdsScmsSideNavBarModule, AdsSearchDropdownComponent, AdsSearchDropdownModule, AdsSearchInputComponent, AdsSearchInputModule, AdsShellLayoutModule, AdsSideNavBarComponent, AdsSideNavBarModule, AdsSlideToggle, AdsSlideToggleComponent, AdsSliderComponent, AdsSliderModule, AdsSnackbarComponent, AdsSnackbarModule, AdsSplashPageComponent, AdsSplashPageModule, AdsStepperComponent, AdsStepperModule, AdsTableComponent, AdsTableModule, AdsTagComponent, AdsTagContainerComponent, AdsTagContainerModule, AdsTagModule, AdsTextareaComponent, AdsTextareaModule, AdsTimeFieldComponent, AdsTimeFieldModule, AdsTimepickerComponent, AdsTimepickerModule, AdsWizardStepperComponent, AdsWizardStepperModule, BadgeColor, Colors, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus };
7204
+ export { AdsAscentLogoComponent, AdsAscentLogoModule, AdsAvatarComponent, AdsAvatarModule, AdsBreadcrumbComponent, AdsBreadcrumbModule, AdsBubbleComponent, AdsBubbleModule, AdsButtonComponent, AdsButtonContainerComponent, AdsButtonContainerModule, AdsButtonModule, AdsCardComponent, AdsCardModule, AdsCheckboxComponent, AdsCheckboxModule, AdsChipComponent, AdsChipModule, AdsCreateTagComponent, AdsCreateTagModule, AdsDatepickerComponent, AdsDatepickerModule, AdsDatetimepickerComponent, AdsDatetimepickerModule, AdsDividerModule, AdsDragAndDropListComponent, AdsDragAndDropListModule, AdsDropdownComponent, AdsDropdownModule, AdsErrorPageCodeComponent, AdsErrorPageCodeModule, AdsErrorPageComponent, AdsErrorPageModule, AdsExpansionPanelComponent, AdsExpansionPanelModule, AdsFooterComponent, AdsFooterContainerComponent, AdsFooterContainerModule, AdsFooterModule, AdsHeaderComponent, AdsHeaderContainerComponent, AdsHeaderContainerModule, AdsHeaderModule, AdsHorizontalNavBarComponent, AdsHorizontalNavBarModule, AdsIconButtonComponent, AdsIconButtonModule, AdsIconHoverComponent, AdsIconHoverModule, AdsInputComponent, AdsInputDropdownComponent, AdsInputDropdownModule, AdsInputModule, AdsLinkButtonComponent, AdsLinkButtonModule, AdsMainMenuComponent, AdsMainMenuModule, AdsModalComponent, AdsModalModule, AdsMultiSelectDropdownComponent, AdsMultiSelectDropdownModule, AdsNavMenuComponent, AdsNavMenuModule, AdsNavigationCollapseHandleComponent, AdsNavigationCollapseHandleModule, AdsNavigationComponent, AdsNavigationHeaderComponent, AdsNavigationHeaderModule, AdsNavigationItemComponent, AdsNavigationItemModule, AdsNavigationItemsContainerComponent, AdsNavigationItemsContainerModule, AdsNavigationModule, AdsNumericBadgeComponent, AdsNumericBadgeModule, AdsNumericStepperComponent, AdsNumericStepperModule, AdsOrgDisplayTextComponent, AdsOrgDisplayTextModule, AdsPhoneFieldComponent, AdsPhoneFieldModule, AdsPrimaryLogoComponent, AdsPrimaryLogoModule, AdsProgressBarComponent, AdsProgressBarModule, AdsProgressIndicatorSpinnerComponent, AdsProgressIndicatorSpinnerModule, AdsProgressSpinnerComponent, AdsProgressSpinnerModule, AdsRadioButtonComponent, AdsRadioButtonModule, AdsScmsSideNavBarComponent, AdsScmsSideNavBarModule, AdsSearchDropdownComponent, AdsSearchDropdownModule, AdsSearchInputComponent, AdsSearchInputModule, AdsShellLayoutModule, AdsSideNavBarComponent, AdsSideNavBarModule, AdsSlideToggle, AdsSlideToggleComponent, AdsSliderComponent, AdsSliderModule, AdsSnackbarComponent, AdsSnackbarModule, AdsSplashPageComponent, AdsSplashPageModule, AdsStepperComponent, AdsStepperModule, AdsTableComponent, AdsTableModule, AdsTagComponent, AdsTagContainerComponent, AdsTagContainerModule, AdsTagModule, AdsTextareaComponent, AdsTextareaModule, AdsTimeFieldComponent, AdsTimeFieldModule, AdsTimepickerComponent, AdsTimepickerModule, AdsWizardStepperComponent, AdsWizardStepperModule, BadgeColor, Colors, CustomDatetimeAdapter, DividerComponent, ErrorPageDefault, MainMenuService, ModalActionType, ModalPanelClass, PanelClass, ShellLayoutComponent, SpinnerSize, StepStatus, TableBreakpoint, ViewportService, WindowService, WizardStepStatus };
6980
7205
  //# sourceMappingURL=ascentgl-ads-ui.mjs.map