@juice-js/layout 1.0.0-alpha.12 → 1.0.0-alpha.13
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/juice-js-layout.mjs +139 -104
- package/fesm2022/juice-js-layout.mjs.map +1 -1
- package/package.json +7 -8
- package/styles/_theming.scss +21 -21
- package/types/juice-js-layout.d.ts +257 -0
- package/esm2022/juice-js-layout.mjs +0 -5
- package/esm2022/lib/components/dark-mode/dark-mode.component.mjs +0 -53
- package/esm2022/lib/components/expandable-menu/expandable-menu.component.mjs +0 -27
- package/esm2022/lib/components/nav-menu/nav-menu.component.mjs +0 -67
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +0 -48
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -48
- package/esm2022/lib/components/tooltip/tooltip.directive.mjs +0 -84
- package/esm2022/lib/components/tooltip/tooltip.module.mjs +0 -31
- package/esm2022/lib/components/user-profile/profile-dialog.service.mjs +0 -4
- package/esm2022/lib/components/user-profile/user-profile.component.mjs +0 -80
- package/esm2022/lib/components/user-profile/user-profile.model.mjs +0 -2
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.component.mjs +0 -53
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.module.mjs +0 -46
- package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.service.mjs +0 -19
- package/esm2022/lib/dev.guard.mjs +0 -25
- package/esm2022/lib/layout.config.mjs +0 -22
- package/esm2022/lib/layout.module.mjs +0 -111
- package/esm2022/lib/layout.service.mjs +0 -75
- package/esm2022/lib/page/page.component.mjs +0 -118
- package/esm2022/lib/pages/page-notfound/page-notfound.component.mjs +0 -12
- package/esm2022/lib/services/search.service.mjs +0 -37
- package/esm2022/public-api.mjs +0 -16
- package/index.d.ts +0 -5
- package/lib/components/dark-mode/dark-mode.component.d.ts +0 -17
- package/lib/components/expandable-menu/expandable-menu.component.d.ts +0 -13
- package/lib/components/nav-menu/nav-menu.component.d.ts +0 -24
- package/lib/components/search-bar/search-bar.component.d.ts +0 -11
- package/lib/components/tooltip/tooltip.component.d.ts +0 -15
- package/lib/components/tooltip/tooltip.directive.d.ts +0 -28
- package/lib/components/tooltip/tooltip.module.d.ts +0 -9
- package/lib/components/user-profile/profile-dialog.service.d.ts +0 -3
- package/lib/components/user-profile/user-profile.component.d.ts +0 -19
- package/lib/components/user-profile/user-profile.model.d.ts +0 -6
- package/lib/components/user-profile-dialog/user-profile-dialog.component.d.ts +0 -16
- package/lib/components/user-profile-dialog/user-profile-dialog.module.d.ts +0 -11
- package/lib/components/user-profile-dialog/user-profile-dialog.service.d.ts +0 -9
- package/lib/dev.guard.d.ts +0 -8
- package/lib/layout.config.d.ts +0 -28
- package/lib/layout.module.d.ts +0 -29
- package/lib/layout.service.d.ts +0 -22
- package/lib/page/page.component.d.ts +0 -16
- package/lib/pages/page-notfound/page-notfound.component.d.ts +0 -5
- package/lib/services/search.service.d.ts +0 -12
- package/public-api.d.ts +0 -12
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable,
|
|
2
|
+
import { InjectionToken, Optional, Injectable, ChangeDetectionStrategy, Component, booleanAttribute, HostListener, Input, Directive, inject, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@juice-js/core';
|
|
4
4
|
import { AsyncDialog } from '@juice-js/core';
|
|
5
5
|
import * as i4$2 from '@angular/cdk/layout';
|
|
6
6
|
import { Breakpoints } from '@angular/cdk/layout';
|
|
7
7
|
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
8
|
-
import * as i1$
|
|
8
|
+
import * as i1$2 from '@angular/router';
|
|
9
9
|
import { NavigationStart, RouterModule } from '@angular/router';
|
|
10
|
-
import * as
|
|
11
|
-
import { CommonModule } from '@angular/common';
|
|
12
|
-
import * as i2 from '@angular/material/icon';
|
|
10
|
+
import * as i3 from '@angular/material/icon';
|
|
13
11
|
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
-
import * as
|
|
12
|
+
import * as i5$1 from '@angular/material/toolbar';
|
|
15
13
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
16
|
-
import * as
|
|
14
|
+
import * as i6$1 from '@angular/material/sidenav';
|
|
17
15
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
18
|
-
import * as i3 from '@angular/material/button';
|
|
16
|
+
import * as i3$1 from '@angular/material/button';
|
|
19
17
|
import { MatButtonModule } from '@angular/material/button';
|
|
20
18
|
import * as i4 from '@angular/material/tooltip';
|
|
21
19
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
20
|
import * as i5 from '@ngx-translate/core';
|
|
23
|
-
import {
|
|
24
|
-
import * as
|
|
21
|
+
import { TranslatePipe, TranslateDirective } from '@ngx-translate/core';
|
|
22
|
+
import * as i1$1 from '@angular/common';
|
|
23
|
+
import { CommonModule } from '@angular/common';
|
|
24
|
+
import * as i6 from '@angular/material/list';
|
|
25
25
|
import { MatListModule } from '@angular/material/list';
|
|
26
|
-
import * as i8 from '@angular/material/divider';
|
|
27
26
|
import * as i4$1 from '@angular/material/expansion';
|
|
28
27
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
29
|
-
import * as
|
|
28
|
+
import * as i2 from '@angular/forms';
|
|
30
29
|
import { FormsModule } from '@angular/forms';
|
|
31
30
|
import { filter } from 'rxjs/operators';
|
|
32
31
|
import * as i3$2 from 'angular-oauth2-oidc';
|
|
33
32
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
34
33
|
import { MatInputModule } from '@angular/material/input';
|
|
35
|
-
import * as i2$
|
|
34
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
36
35
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
37
36
|
|
|
38
37
|
var ThemeMode;
|
|
@@ -114,17 +113,17 @@ class LayoutService {
|
|
|
114
113
|
userImageUrl(username) {
|
|
115
114
|
return this._options.userImageUrl ? this._options.userImageUrl.replace("{username}", username) : "";
|
|
116
115
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
118
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, deps: [{ token: LayoutConfig, optional: true }, { token: i1.TenantService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
117
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, providedIn: 'root' }); }
|
|
119
118
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, decorators: [{
|
|
121
120
|
type: Injectable,
|
|
122
121
|
args: [{
|
|
123
122
|
providedIn: 'root'
|
|
124
123
|
}]
|
|
125
|
-
}], ctorParameters:
|
|
124
|
+
}], ctorParameters: () => [{ type: LayoutConfig, decorators: [{
|
|
126
125
|
type: Optional
|
|
127
|
-
}] }, { type: i1.TenantService }]
|
|
126
|
+
}] }, { type: i1.TenantService }] });
|
|
128
127
|
|
|
129
128
|
class DarkModeComponent {
|
|
130
129
|
constructor(service) {
|
|
@@ -163,13 +162,13 @@ class DarkModeComponent {
|
|
|
163
162
|
this.icon = this.icons.get(mode) ?? "";
|
|
164
163
|
this.name = this.names.get(mode) ?? "";
|
|
165
164
|
}
|
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
167
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
166
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DarkModeComponent, isStandalone: false, selector: "juice-dark-mode", ngImport: i0, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>", dependencies: [{ kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
168
167
|
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, decorators: [{
|
|
170
169
|
type: Component,
|
|
171
|
-
args: [{ selector: 'juice-dark-mode', template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>" }]
|
|
172
|
-
}], ctorParameters:
|
|
170
|
+
args: [{ selector: 'juice-dark-mode', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>" }]
|
|
171
|
+
}], ctorParameters: () => [{ type: LayoutService }] });
|
|
173
172
|
|
|
174
173
|
class TooltipComponent {
|
|
175
174
|
constructor(elementRef) {
|
|
@@ -207,13 +206,13 @@ class TooltipComponent {
|
|
|
207
206
|
}
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
211
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
209
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
210
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TooltipComponent, isStandalone: false, selector: "tooltip", ngImport: i0, template: "@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
212
211
|
}
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
214
213
|
type: Component,
|
|
215
|
-
args: [{ selector: 'tooltip', template: "<div #tooltipId
|
|
216
|
-
}], ctorParameters:
|
|
214
|
+
args: [{ selector: 'tooltip', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"] }]
|
|
215
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
217
216
|
|
|
218
217
|
var TooltipPosition;
|
|
219
218
|
(function (TooltipPosition) {
|
|
@@ -272,15 +271,16 @@ class TooltipDirective {
|
|
|
272
271
|
this.componentRef = undefined;
|
|
273
272
|
}
|
|
274
273
|
}
|
|
275
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
276
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
275
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.6", type: TooltipDirective, isStandalone: false, selector: "[tooltip]", inputs: { tooltip: "tooltip", tooltipPosition: ["tooltipPosition", "tooltipPosition", tooltipPosition], tooltipDisplay: ["tooltipDisplay", "tooltipDisplay", booleanAttribute] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 }); }
|
|
277
276
|
}
|
|
278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
279
278
|
type: Directive,
|
|
280
279
|
args: [{
|
|
281
|
-
selector: '[tooltip]'
|
|
280
|
+
selector: '[tooltip]',
|
|
281
|
+
standalone: false
|
|
282
282
|
}]
|
|
283
|
-
}], ctorParameters:
|
|
283
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }], propDecorators: { tooltip: [{
|
|
284
284
|
type: Input
|
|
285
285
|
}], tooltipPosition: [{
|
|
286
286
|
type: Input,
|
|
@@ -303,13 +303,13 @@ class ExpandableMenuComponent {
|
|
|
303
303
|
this.item = {};
|
|
304
304
|
this.TooltipPosition = TooltipPosition;
|
|
305
305
|
}
|
|
306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
307
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ExpandableMenuComponent, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
307
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ExpandableMenuComponent, isStandalone: false, selector: "juice-expandable-menu", inputs: { isExpanded: "isExpanded", item: "item" }, ngImport: i0, template: "<mat-expansion-panel [expanded]=\"item.routerLink ? router.isActive(item.routerLink, false) : false\" [hideToggle]=\"!isExpanded\" [ngClass]=\"(item.routerLink && router.isActive(item.routerLink, false)) ? 'active' : ''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n }\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n @for ( subitem of item.children ; track subitem) {\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n }\n </mat-list-item>\n }\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i4$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
308
308
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ExpandableMenuComponent, decorators: [{
|
|
310
310
|
type: Component,
|
|
311
|
-
args: [{ selector: 'juice-expandable-menu', template: "<mat-expansion-panel [expanded]=\"router.isActive(item.routerLink, false)\" [hideToggle]=\"!isExpanded\" [ngClass]=\"router.isActive(item.routerLink, false)?'active':''\">\n
|
|
312
|
-
}], ctorParameters:
|
|
311
|
+
args: [{ selector: 'juice-expandable-menu', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<mat-expansion-panel [expanded]=\"item.routerLink ? router.isActive(item.routerLink, false) : false\" [hideToggle]=\"!isExpanded\" [ngClass]=\"(item.routerLink && router.isActive(item.routerLink, false)) ? 'active' : ''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n }\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n @for ( subitem of item.children ; track subitem) {\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n }\n </mat-list-item>\n }\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"] }]
|
|
312
|
+
}], ctorParameters: () => [{ type: i1$2.Router }], propDecorators: { isExpanded: [{
|
|
313
313
|
type: Input
|
|
314
314
|
}], item: [{
|
|
315
315
|
type: Input
|
|
@@ -359,13 +359,13 @@ class NavMenuComponent {
|
|
|
359
359
|
this.isExpanded = this.layout.isMenuOpen();
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
363
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, deps: [{ token: i1.MenuService }, { token: LayoutService }, { token: i1.TenantService }, { token: i1$2.ActivatedRoute }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
363
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: NavMenuComponent, isStandalone: false, selector: "juice-nav-menu", ngImport: i0, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n @for (item of items; track item) {\n @if (!item.children || item.children.length==0) {\n <mat-list-item\n routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact:true}\">\n <mat-icon matListItemIcon color=\"accent\">{{ item.icon }}</mat-icon>\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n </mat-list-item>\n }\n @if (item.children && item.children.length>0) {\n <juice-expandable-menu\n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n }\n }\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n @if (settingUrl) {\n <a mat-list-item [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n }\n @if (!isMobile) {\n <button mat-list-item (click)=\"toggle()\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\n }\n</mat-action-list>", styles: [":host ::ng-deep{display:flex;flex-direction:column;justify-content:space-between;height:100%}:host ::ng-deep .menu-scroll{overflow-y:auto;overflow-x:hidden;flex:1}:host ::ng-deep .menu-scroll .mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{margin-right:10px}:host ::ng-deep .list-horizontal{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}:host ::ng-deep .list-horizontal .mat-mdc-list-item{width:auto;flex:1 auto}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content{display:flex;justify-content:center}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content .mat-mdc-list-item-unscoped-content{padding-top:5px}:host ::ng-deep .mat-mdc-list-base{padding:0}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatActionList, selector: "mat-action-list", exportAs: ["matActionList"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ExpandableMenuComponent, selector: "juice-expandable-menu", inputs: ["isExpanded", "item"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
364
364
|
}
|
|
365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, decorators: [{
|
|
366
366
|
type: Component,
|
|
367
|
-
args: [{ selector: 'juice-nav-menu', template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n
|
|
368
|
-
}], ctorParameters:
|
|
367
|
+
args: [{ selector: 'juice-nav-menu', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n @for (item of items; track item) {\n @if (!item.children || item.children.length==0) {\n <mat-list-item\n routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact:true}\">\n <mat-icon matListItemIcon color=\"accent\">{{ item.icon }}</mat-icon>\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n </mat-list-item>\n }\n @if (item.children && item.children.length>0) {\n <juice-expandable-menu\n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n }\n }\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n @if (settingUrl) {\n <a mat-list-item [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n }\n @if (!isMobile) {\n <button mat-list-item (click)=\"toggle()\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\n }\n</mat-action-list>", styles: [":host ::ng-deep{display:flex;flex-direction:column;justify-content:space-between;height:100%}:host ::ng-deep .menu-scroll{overflow-y:auto;overflow-x:hidden;flex:1}:host ::ng-deep .menu-scroll .mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{margin-right:10px}:host ::ng-deep .list-horizontal{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}:host ::ng-deep .list-horizontal .mat-mdc-list-item{width:auto;flex:1 auto}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content{display:flex;justify-content:center}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content .mat-mdc-list-item-unscoped-content{padding-top:5px}:host ::ng-deep .mat-mdc-list-base{padding:0}\n"] }]
|
|
368
|
+
}], ctorParameters: () => [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i1$2.ActivatedRoute }, { type: i4$2.BreakpointObserver }] });
|
|
369
369
|
|
|
370
370
|
class SearchService {
|
|
371
371
|
constructor(router) {
|
|
@@ -390,15 +390,15 @@ class SearchService {
|
|
|
390
390
|
this._callback(searchText, event);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
394
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
394
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, providedIn: 'root' }); }
|
|
395
395
|
}
|
|
396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, decorators: [{
|
|
397
397
|
type: Injectable,
|
|
398
398
|
args: [{
|
|
399
399
|
providedIn: 'root'
|
|
400
400
|
}]
|
|
401
|
-
}], ctorParameters:
|
|
401
|
+
}], ctorParameters: () => [{ type: i1$2.Router }] });
|
|
402
402
|
|
|
403
403
|
class SearchBarComponent {
|
|
404
404
|
constructor(service) {
|
|
@@ -411,8 +411,8 @@ class SearchBarComponent {
|
|
|
411
411
|
onSearchTextChange(event) {
|
|
412
412
|
this.service.callback(this.searchText, event);
|
|
413
413
|
}
|
|
414
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
415
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
414
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchBarComponent, deps: [{ token: SearchService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
415
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SearchBarComponent, isStandalone: false, selector: "juice-search-bar", ngImport: i0, template: "@if (isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (searchText) {\n <mat-icon (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width:600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"], dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
|
|
416
416
|
trigger('enableTrigger', [
|
|
417
417
|
transition(':enter', [
|
|
418
418
|
style({ opacity: 0 }),
|
|
@@ -422,9 +422,9 @@ class SearchBarComponent {
|
|
|
422
422
|
animate('100ms', style({ opacity: 0 }))
|
|
423
423
|
])
|
|
424
424
|
]),
|
|
425
|
-
] }); }
|
|
425
|
+
], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
426
426
|
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
428
428
|
type: Component,
|
|
429
429
|
args: [{ selector: 'juice-search-bar', animations: [
|
|
430
430
|
trigger('enableTrigger', [
|
|
@@ -436,8 +436,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
436
436
|
animate('100ms', style({ opacity: 0 }))
|
|
437
437
|
])
|
|
438
438
|
]),
|
|
439
|
-
], template: "
|
|
440
|
-
}], ctorParameters:
|
|
439
|
+
], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (searchText) {\n <mat-icon (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width:600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"] }]
|
|
440
|
+
}], ctorParameters: () => [{ type: SearchService }] });
|
|
441
441
|
|
|
442
442
|
class ProfileDialogService extends AsyncDialog {
|
|
443
443
|
}
|
|
@@ -448,6 +448,8 @@ class UserProfileComponent {
|
|
|
448
448
|
this.layoutService = layoutService;
|
|
449
449
|
this.oauthService = oauthService;
|
|
450
450
|
this.imageUrl = "";
|
|
451
|
+
this.imageFailed = false;
|
|
452
|
+
this.initials = "";
|
|
451
453
|
this.isProduction = inject(IS_PRODUCTION);
|
|
452
454
|
this.oauthService.events.pipe(filter(e => e.type === "token_received")).subscribe((e) => {
|
|
453
455
|
if (!this.isProduction)
|
|
@@ -469,18 +471,19 @@ class UserProfileComponent {
|
|
|
469
471
|
return;
|
|
470
472
|
}
|
|
471
473
|
const claims = this.oauthService.getIdentityClaims();
|
|
474
|
+
this.initials = this.computeInitials(claims);
|
|
472
475
|
if (!this.isProduction)
|
|
473
476
|
console.debug('Trying to get avatar from claims');
|
|
474
477
|
if (claims["picture"]) {
|
|
475
|
-
this.
|
|
478
|
+
this.setImageUrl(claims["picture"]);
|
|
476
479
|
}
|
|
477
480
|
else if (claims["avatar"]) {
|
|
478
|
-
this.
|
|
481
|
+
this.setImageUrl(claims["avatar"]);
|
|
479
482
|
}
|
|
480
483
|
else {
|
|
481
484
|
const username = claims["preferred_username"];
|
|
482
485
|
if (username) {
|
|
483
|
-
this.
|
|
486
|
+
this.setImageUrl(this.layoutService.userImageUrl(username));
|
|
484
487
|
}
|
|
485
488
|
else {
|
|
486
489
|
if (!this.isProduction)
|
|
@@ -488,7 +491,7 @@ class UserProfileComponent {
|
|
|
488
491
|
this.oauthService.loadUserProfile().then(info => {
|
|
489
492
|
var userProfile = info;
|
|
490
493
|
if (userProfile) {
|
|
491
|
-
this.
|
|
494
|
+
this.setImageUrl(this.layoutService.userImageUrl(userProfile.info.preferred_username));
|
|
492
495
|
}
|
|
493
496
|
else {
|
|
494
497
|
console.warn('No user profile found', info);
|
|
@@ -497,6 +500,32 @@ class UserProfileComponent {
|
|
|
497
500
|
}
|
|
498
501
|
}
|
|
499
502
|
}
|
|
503
|
+
setImageUrl(url) {
|
|
504
|
+
this.imageUrl = url ?? "";
|
|
505
|
+
this.imageFailed = false;
|
|
506
|
+
}
|
|
507
|
+
computeInitials(claims) {
|
|
508
|
+
if (!claims) {
|
|
509
|
+
return "";
|
|
510
|
+
}
|
|
511
|
+
const name = claims["name"]
|
|
512
|
+
|| [claims["given_name"], claims["family_name"]].filter(Boolean).join(" ")
|
|
513
|
+
|| claims["preferred_username"]
|
|
514
|
+
|| "";
|
|
515
|
+
const words = String(name).trim().split(/\s+/).filter(Boolean);
|
|
516
|
+
if (words.length === 0) {
|
|
517
|
+
return "";
|
|
518
|
+
}
|
|
519
|
+
const chars = words.length === 1
|
|
520
|
+
? words[0].slice(0, 2)
|
|
521
|
+
: words[0][0] + words[words.length - 1][0];
|
|
522
|
+
return chars.toUpperCase();
|
|
523
|
+
}
|
|
524
|
+
onImageError() {
|
|
525
|
+
if (!this.isProduction)
|
|
526
|
+
console.debug('Avatar image failed to load', this.imageUrl);
|
|
527
|
+
this.imageFailed = true;
|
|
528
|
+
}
|
|
500
529
|
onClick() {
|
|
501
530
|
if (this.dialogService) {
|
|
502
531
|
this.dialogService.open(this.imageUrl);
|
|
@@ -505,15 +534,15 @@ class UserProfileComponent {
|
|
|
505
534
|
hasValidToken() {
|
|
506
535
|
return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();
|
|
507
536
|
}
|
|
508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
509
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, deps: [{ token: ProfileDialogService, optional: true }, { token: LayoutService }, { token: i3$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
538
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileComponent, isStandalone: false, selector: "juice-user-profile", ngImport: i0, template: "<button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n</button>\n", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.user-image{flex:1 auto;border:0;padding:0;background:none;container-type:size}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}.user-image .user-image-fallback{width:100%;height:100%;font-size:100cqh;line-height:1;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.user-image .user-image-initials{width:100%;height:100%;font-size:42cqh;font-weight:600;line-height:1;text-transform:uppercase;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:currentColor;background:#0000001f}\n"], dependencies: [{ kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
510
539
|
}
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, decorators: [{
|
|
512
541
|
type: Component,
|
|
513
|
-
args: [{ selector: 'juice-user-profile', template: "<button class=\"user-image\" (click)=\"onClick()\">\n <img [src]=\"imageUrl\"/>\n</button
|
|
514
|
-
}], ctorParameters:
|
|
542
|
+
args: [{ selector: 'juice-user-profile', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n</button>\n", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.user-image{flex:1 auto;border:0;padding:0;background:none;container-type:size}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}.user-image .user-image-fallback{width:100%;height:100%;font-size:100cqh;line-height:1;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.user-image .user-image-initials{width:100%;height:100%;font-size:42cqh;font-weight:600;line-height:1;text-transform:uppercase;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:currentColor;background:#0000001f}\n"] }]
|
|
543
|
+
}], ctorParameters: () => [{ type: ProfileDialogService, decorators: [{
|
|
515
544
|
type: Optional
|
|
516
|
-
}] }, { type: LayoutService }, { type: i3$2.OAuthService }]
|
|
545
|
+
}] }, { type: LayoutService }, { type: i3$2.OAuthService }] });
|
|
517
546
|
|
|
518
547
|
class PageComponent {
|
|
519
548
|
constructor(service, breakpointObserver) {
|
|
@@ -543,8 +572,8 @@ class PageComponent {
|
|
|
543
572
|
onAttach(e) {
|
|
544
573
|
console.log("attached", e);
|
|
545
574
|
}
|
|
546
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
547
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
576
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PageComponent, isStandalone: false, selector: "app-page", ngImport: i0, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onAttach\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i6$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i6$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i6$1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: DarkModeComponent, selector: "juice-dark-mode" }, { kind: "component", type: NavMenuComponent, selector: "juice-nav-menu" }, { kind: "component", type: SearchBarComponent, selector: "juice-search-bar" }, { kind: "component", type: UserProfileComponent, selector: "juice-user-profile" }], animations: [
|
|
548
577
|
trigger('menuTransition', [
|
|
549
578
|
state('expand', style({
|
|
550
579
|
width: '220px'
|
|
@@ -576,9 +605,9 @@ class PageComponent {
|
|
|
576
605
|
animate('0.15s')
|
|
577
606
|
])
|
|
578
607
|
])
|
|
579
|
-
] }); }
|
|
608
|
+
], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
580
609
|
}
|
|
581
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, decorators: [{
|
|
582
611
|
type: Component,
|
|
583
612
|
args: [{ selector: 'app-page', animations: [
|
|
584
613
|
trigger('menuTransition', [
|
|
@@ -612,16 +641,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
612
641
|
animate('0.15s')
|
|
613
642
|
])
|
|
614
643
|
])
|
|
615
|
-
], template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n <button
|
|
616
|
-
}], ctorParameters:
|
|
644
|
+
], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onAttach\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"] }]
|
|
645
|
+
}], ctorParameters: () => [{ type: LayoutService }, { type: i4$2.BreakpointObserver }] });
|
|
617
646
|
|
|
618
647
|
class PageNotfoundComponent {
|
|
619
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
620
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
648
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
649
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: PageNotfoundComponent, isStandalone: false, selector: "juice-page-notfound", ngImport: i0, template: "<div class=\"container pt-4\">\n <h1>{{'Not found' | translate }}</h1>\n <p>{{ 'Your requested resource could not be found' | translate}}</p>\n </div>\n ", styles: [""], dependencies: [{ kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
621
650
|
}
|
|
622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, decorators: [{
|
|
623
652
|
type: Component,
|
|
624
|
-
args: [{ selector: 'juice-page-notfound', template: "<div class=\"container pt-4\">\n <h1>{{'Not found' | translate }}</h1>\n <p>{{ 'Your requested resource could not be found' | translate}}</p>\n </div>\n " }]
|
|
653
|
+
args: [{ selector: 'juice-page-notfound', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"container pt-4\">\n <h1>{{'Not found' | translate }}</h1>\n <p>{{ 'Your requested resource could not be found' | translate}}</p>\n </div>\n " }]
|
|
625
654
|
}] });
|
|
626
655
|
|
|
627
656
|
const routes = [];
|
|
@@ -643,15 +672,18 @@ class LayoutModule {
|
|
|
643
672
|
]
|
|
644
673
|
};
|
|
645
674
|
}
|
|
646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
647
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
676
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, declarations: [PageComponent,
|
|
648
677
|
DarkModeComponent,
|
|
649
678
|
NavMenuComponent,
|
|
650
679
|
ExpandableMenuComponent,
|
|
651
680
|
PageNotfoundComponent,
|
|
652
681
|
SearchBarComponent,
|
|
653
|
-
UserProfileComponent], imports: [i1$
|
|
654
|
-
FormsModule,
|
|
682
|
+
UserProfileComponent], imports: [i1$2.RouterModule, CommonModule,
|
|
683
|
+
FormsModule,
|
|
684
|
+
TranslatePipe,
|
|
685
|
+
TranslateDirective,
|
|
686
|
+
MatIconModule,
|
|
655
687
|
MatToolbarModule,
|
|
656
688
|
MatSidenavModule,
|
|
657
689
|
MatButtonModule,
|
|
@@ -661,10 +693,9 @@ class LayoutModule {
|
|
|
661
693
|
MatInputModule,
|
|
662
694
|
MatTooltipModule], exports: [PageComponent,
|
|
663
695
|
RouterModule] }); }
|
|
664
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
696
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, imports: [RouterModule.forChild(routes),
|
|
665
697
|
CommonModule,
|
|
666
698
|
FormsModule,
|
|
667
|
-
TranslateModule.forChild(),
|
|
668
699
|
MatIconModule,
|
|
669
700
|
MatToolbarModule,
|
|
670
701
|
MatSidenavModule,
|
|
@@ -675,7 +706,7 @@ class LayoutModule {
|
|
|
675
706
|
MatInputModule,
|
|
676
707
|
MatTooltipModule, RouterModule] }); }
|
|
677
708
|
}
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, decorators: [{
|
|
679
710
|
type: NgModule,
|
|
680
711
|
args: [{
|
|
681
712
|
declarations: [
|
|
@@ -691,7 +722,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
691
722
|
RouterModule.forChild(routes),
|
|
692
723
|
CommonModule,
|
|
693
724
|
FormsModule,
|
|
694
|
-
|
|
725
|
+
TranslatePipe,
|
|
726
|
+
TranslateDirective,
|
|
695
727
|
MatIconModule,
|
|
696
728
|
MatToolbarModule,
|
|
697
729
|
MatSidenavModule,
|
|
@@ -714,12 +746,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
714
746
|
* Consider using matTooltip from @angular/material
|
|
715
747
|
*/
|
|
716
748
|
class TooltipModule {
|
|
717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
718
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
750
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent,
|
|
719
751
|
TooltipDirective], imports: [CommonModule], exports: [TooltipDirective] }); }
|
|
720
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
752
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, imports: [CommonModule] }); }
|
|
721
753
|
}
|
|
722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, decorators: [{
|
|
723
755
|
type: NgModule,
|
|
724
756
|
args: [{
|
|
725
757
|
declarations: [
|
|
@@ -747,10 +779,10 @@ class DevGuard {
|
|
|
747
779
|
console.log('DevGuard: this menu is available in development environment only!', this.isProduction);
|
|
748
780
|
return !this.isProduction;
|
|
749
781
|
}
|
|
750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
751
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
782
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
783
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, providedIn: 'root' }); }
|
|
752
784
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, decorators: [{
|
|
754
786
|
type: Injectable,
|
|
755
787
|
args: [{
|
|
756
788
|
providedIn: 'root'
|
|
@@ -795,13 +827,13 @@ class UserProfileDialogComponent {
|
|
|
795
827
|
this.auth.logOut();
|
|
796
828
|
});
|
|
797
829
|
}
|
|
798
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
799
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
830
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, deps: [{ token: i3$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
831
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileDialogComponent, isStandalone: false, selector: "app-user-profile", ngImport: i0, template: "@if (loggedin) {\n <h3 mat-dialog-title>{{name}}</h3>\n}\n<div mat-dialog-content>\n @if (loggedin) {\n <div>\n @if (name) {\n <p>{{'Welcome' | translate}} {{name}}</p>\n }\n @if (email) {\n <p>{{ 'Email' | translate}}: {{email}}</p>\n }\n <!-- Logout -->\n </div>\n }\n @if (!loggedin) {\n <div>\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n }\n</div>\n<div mat-dialog-actions>\n @if (loggedin) {\n <button mat-raised-button color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n }\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
800
832
|
}
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, decorators: [{
|
|
802
834
|
type: Component,
|
|
803
|
-
args: [{ selector: 'app-user-profile', template: "<h3 mat-dialog-title
|
|
804
|
-
}], ctorParameters:
|
|
835
|
+
args: [{ selector: 'app-user-profile', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (loggedin) {\n <h3 mat-dialog-title>{{name}}</h3>\n}\n<div mat-dialog-content>\n @if (loggedin) {\n <div>\n @if (name) {\n <p>{{'Welcome' | translate}} {{name}}</p>\n }\n @if (email) {\n <p>{{ 'Email' | translate}}: {{email}}</p>\n }\n <!-- Logout -->\n </div>\n }\n @if (!loggedin) {\n <div>\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n }\n</div>\n<div mat-dialog-actions>\n @if (loggedin) {\n <button mat-raised-button color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n }\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>" }]
|
|
836
|
+
}], ctorParameters: () => [{ type: i3$2.OAuthService }] });
|
|
805
837
|
|
|
806
838
|
class UserProfileDialogService extends ProfileDialogService {
|
|
807
839
|
constructor(matDialog) {
|
|
@@ -810,28 +842,30 @@ class UserProfileDialogService extends ProfileDialogService {
|
|
|
810
842
|
async open(data) {
|
|
811
843
|
return this.matDialog.open(UserProfileDialogComponent, { position: { top: '50px', right: '10px' } });
|
|
812
844
|
}
|
|
813
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
814
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
845
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, deps: [{ token: i2$1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
846
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService }); }
|
|
815
847
|
}
|
|
816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, decorators: [{
|
|
817
849
|
type: Injectable
|
|
818
|
-
}], ctorParameters:
|
|
850
|
+
}], ctorParameters: () => [{ type: i2$1.MatDialog }] });
|
|
819
851
|
|
|
820
852
|
class UserProfileDialogModule {
|
|
821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
822
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
823
|
-
MatButtonModule,
|
|
824
|
-
|
|
853
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
854
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, declarations: [UserProfileDialogComponent], imports: [MatDialogModule,
|
|
855
|
+
MatButtonModule,
|
|
856
|
+
TranslatePipe,
|
|
857
|
+
TranslateDirective,
|
|
858
|
+
CommonModule] }); }
|
|
859
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, providers: [
|
|
825
860
|
{
|
|
826
861
|
provide: ProfileDialogService,
|
|
827
862
|
useClass: UserProfileDialogService
|
|
828
863
|
}
|
|
829
864
|
], imports: [MatDialogModule,
|
|
830
865
|
MatButtonModule,
|
|
831
|
-
TranslateModule.forChild(),
|
|
832
866
|
CommonModule] }); }
|
|
833
867
|
}
|
|
834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, decorators: [{
|
|
835
869
|
type: NgModule,
|
|
836
870
|
args: [{
|
|
837
871
|
declarations: [
|
|
@@ -840,7 +874,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
840
874
|
imports: [
|
|
841
875
|
MatDialogModule,
|
|
842
876
|
MatButtonModule,
|
|
843
|
-
|
|
877
|
+
TranslatePipe,
|
|
878
|
+
TranslateDirective,
|
|
844
879
|
CommonModule
|
|
845
880
|
],
|
|
846
881
|
exports: [],
|