@mediusinc/mng-commons 3.6.0-rc.2 → 3.6.0
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/esm2022/lib/components/layoutV2/breadcrumb.component.mjs +5 -5
- package/esm2022/lib/components/layoutV2/footer.component.mjs +5 -5
- package/esm2022/lib/components/layoutV2/main-layout.component.mjs +8 -8
- package/esm2022/lib/components/layoutV2/menu-item.component.mjs +5 -5
- package/esm2022/lib/components/layoutV2/menu.component.mjs +7 -7
- package/esm2022/lib/components/layoutV2/sidebar.component.mjs +9 -9
- package/esm2022/lib/components/layoutV2/topbar-user.component.mjs +5 -5
- package/esm2022/lib/components/layoutV2/topbar.component.mjs +13 -13
- package/esm2022/lib/components/layoutV2/version.component.mjs +5 -5
- package/esm2022/lib/provide-commons.mjs +3 -3
- package/esm2022/lib/services/commons-init.service.mjs +99 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/internal/commons-init.provider.mjs +1 -1
- package/esm2022/lib/services/internal/index.mjs +1 -2
- package/fesm2022/mediusinc-mng-commons.mjs +192 -192
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/layoutV2/breadcrumb.component.d.ts +3 -3
- package/lib/components/layoutV2/footer.component.d.ts +3 -3
- package/lib/components/layoutV2/menu-item.component.d.ts +3 -3
- package/lib/components/layoutV2/menu.component.d.ts +3 -3
- package/lib/components/layoutV2/sidebar.component.d.ts +3 -3
- package/lib/components/layoutV2/topbar-user.component.d.ts +3 -3
- package/lib/components/layoutV2/topbar.component.d.ts +5 -5
- package/lib/components/layoutV2/version.component.d.ts +3 -3
- package/lib/services/{internal/commons-init.service.d.ts → commons-init.service.d.ts} +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/internal/commons-init.provider.d.ts +1 -1
- package/lib/services/internal/index.d.ts +0 -1
- package/package.json +1 -1
- package/esm2022/lib/services/internal/commons-init.service.mjs +0 -99
|
@@ -3468,6 +3468,97 @@ class MngLogPublisherConsoleService {
|
|
|
3468
3468
|
}
|
|
3469
3469
|
}
|
|
3470
3470
|
|
|
3471
|
+
class MngCommonsInitService {
|
|
3472
|
+
constructor() {
|
|
3473
|
+
this.httpClient = inject(HttpClient);
|
|
3474
|
+
this.logger = inject(MngLoggerService);
|
|
3475
|
+
this.logPublishers = inject(MNG_LOG_PUBLISHERS, { optional: true });
|
|
3476
|
+
this.config = inject(MngConfigurationService);
|
|
3477
|
+
this.mngCommons = inject(MngCommonsService);
|
|
3478
|
+
this.mngRouter = inject(MngRouterService);
|
|
3479
|
+
this.moduleConfig = inject(MNG_MODULE_CONFIG_IT, { optional: true });
|
|
3480
|
+
this.commonsInitializers = inject(MNG_COMMONS_INITIALIZER_IT, { optional: true });
|
|
3481
|
+
this.isInitialized = false;
|
|
3482
|
+
this.isInitializedSubject = new ReplaySubject();
|
|
3483
|
+
this.commonsInitServiceEvents = new Subject();
|
|
3484
|
+
}
|
|
3485
|
+
get events$() {
|
|
3486
|
+
return this.commonsInitServiceEvents.asObservable();
|
|
3487
|
+
}
|
|
3488
|
+
get isInitialized$() {
|
|
3489
|
+
return this.isInitializedSubject.asObservable().pipe(take(1));
|
|
3490
|
+
}
|
|
3491
|
+
initialize() {
|
|
3492
|
+
if (this.isInitialized) {
|
|
3493
|
+
return of(void 0);
|
|
3494
|
+
}
|
|
3495
|
+
this.isInitialized = true;
|
|
3496
|
+
MngLoggerService.configure({ timestampFormat: this.moduleConfig?.log?.timestampFormat });
|
|
3497
|
+
const ctxLogger = this.logger.create('MngCommonsInitService');
|
|
3498
|
+
ctxLogger.debug('Commons initialization is starting');
|
|
3499
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitStart);
|
|
3500
|
+
// init router
|
|
3501
|
+
this.mngRouter.initialize();
|
|
3502
|
+
// init configurations with settings from module config
|
|
3503
|
+
this.config.init(this.httpClient, this.logger);
|
|
3504
|
+
this.config.addModuleConfigSource(this.moduleConfig ?? undefined);
|
|
3505
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceModuleLoaded);
|
|
3506
|
+
if (this.moduleConfig?.configuration?.projectEnvironment) {
|
|
3507
|
+
this.config.addEnvironmentSource(this.moduleConfig.configuration.projectEnvironment);
|
|
3508
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceProjectEnvLoaded);
|
|
3509
|
+
}
|
|
3510
|
+
// init configurations with settings from module config for json source
|
|
3511
|
+
if (!(this.moduleConfig?.configuration?.skipJsonSourceInit ?? false)) {
|
|
3512
|
+
const jsonSourceEnableEnvProd = this.moduleConfig?.configuration?.jsonSourceEnableEnvProd ?? false;
|
|
3513
|
+
const jsonSource = this.moduleConfig?.configuration?.jsonSource;
|
|
3514
|
+
if (!jsonSource) {
|
|
3515
|
+
this.config.addJsonSource({ enableEnvProd: jsonSourceEnableEnvProd });
|
|
3516
|
+
}
|
|
3517
|
+
else if (Array.isArray(jsonSource)) {
|
|
3518
|
+
jsonSource.forEach(source => this.config.addJsonSource({ url: source, enableEnvProd: jsonSourceEnableEnvProd }));
|
|
3519
|
+
}
|
|
3520
|
+
else {
|
|
3521
|
+
this.config.addJsonSource({ url: jsonSource, enableEnvProd: jsonSourceEnableEnvProd });
|
|
3522
|
+
}
|
|
3523
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceJsonAdded);
|
|
3524
|
+
}
|
|
3525
|
+
return this.config.loadJsonConfigurations().pipe(mergeMap(() => {
|
|
3526
|
+
if (!(this.moduleConfig?.configuration?.skipJsonSourceInit ?? false)) {
|
|
3527
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceJsonLoaded);
|
|
3528
|
+
}
|
|
3529
|
+
// init logger
|
|
3530
|
+
MngLoggerService.init(this.config, this.logPublishers ?? []);
|
|
3531
|
+
if (this.commonsInitializers) {
|
|
3532
|
+
ctxLogger.debug('Project initializers are being initialized');
|
|
3533
|
+
return combineLatest(this.commonsInitializers.map(ci => ci())).pipe(map(res => res));
|
|
3534
|
+
}
|
|
3535
|
+
else {
|
|
3536
|
+
return of(true);
|
|
3537
|
+
}
|
|
3538
|
+
}), map(() => {
|
|
3539
|
+
ctxLogger.debug('Commons initialization is finished');
|
|
3540
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitEnd);
|
|
3541
|
+
this.commonsInitServiceEvents.complete();
|
|
3542
|
+
this.isInitializedSubject.next(true);
|
|
3543
|
+
return this.mngCommons.reset();
|
|
3544
|
+
}), catchError(err => {
|
|
3545
|
+
ctxLogger.warn('Commons initialization failed with error', err);
|
|
3546
|
+
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitError);
|
|
3547
|
+
this.commonsInitServiceEvents.complete();
|
|
3548
|
+
this.isInitializedSubject.next(false);
|
|
3549
|
+
return throwError(() => err);
|
|
3550
|
+
}));
|
|
3551
|
+
}
|
|
3552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3553
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, providedIn: 'root' }); }
|
|
3554
|
+
}
|
|
3555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, decorators: [{
|
|
3556
|
+
type: Injectable,
|
|
3557
|
+
args: [{
|
|
3558
|
+
providedIn: 'root'
|
|
3559
|
+
}]
|
|
3560
|
+
}] });
|
|
3561
|
+
|
|
3471
3562
|
class ObjectSerializer {
|
|
3472
3563
|
constructor() {
|
|
3473
3564
|
this._logCategory = 'ObjectSerializer';
|
|
@@ -15068,7 +15159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
15068
15159
|
args: ['formState']
|
|
15069
15160
|
}] } });
|
|
15070
15161
|
|
|
15071
|
-
|
|
15162
|
+
class MngBreadcrumbComponent {
|
|
15072
15163
|
constructor(mngCommons) {
|
|
15073
15164
|
this.mngCommons = mngCommons;
|
|
15074
15165
|
this.mappedBreadcrumbHome$ = this.mngCommons.breadcrumbHome$.pipe(map((el) => {
|
|
@@ -15088,21 +15179,21 @@ let MngBreadcrumbComponent$1 = class MngBreadcrumbComponent {
|
|
|
15088
15179
|
}
|
|
15089
15180
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngBreadcrumbComponent, deps: [{ token: MngCommonsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15090
15181
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngBreadcrumbComponent, isStandalone: true, selector: "mng-breadcrumb", ngImport: i0, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"(mappedBreadcrumbHome$ | async) ?? undefined\" [model]=\"(mappedBreadcrumbs$ | async) ?? undefined\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: BreadcrumbModule }, { kind: "component", type: i2$4.Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15091
|
-
}
|
|
15092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngBreadcrumbComponent
|
|
15182
|
+
}
|
|
15183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngBreadcrumbComponent, decorators: [{
|
|
15093
15184
|
type: Component,
|
|
15094
15185
|
args: [{ standalone: true, selector: 'mng-breadcrumb', imports: [BreadcrumbModule, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-breadcrumb-container\">\n <div class=\"layout-breadcrumb\">\n <p-breadcrumb [home]=\"(mappedBreadcrumbHome$ | async) ?? undefined\" [model]=\"(mappedBreadcrumbs$ | async) ?? undefined\" styleClass=\"layout-breadcrumb py-2\"></p-breadcrumb>\n </div>\n</div>\n" }]
|
|
15095
15186
|
}], ctorParameters: function () { return [{ type: MngCommonsService }]; } });
|
|
15096
15187
|
|
|
15097
|
-
|
|
15188
|
+
class MngFooterComponent {
|
|
15098
15189
|
constructor(mngCommons) {
|
|
15099
15190
|
this.mngCommons = mngCommons;
|
|
15100
15191
|
this.currentYear = new Date().getFullYear();
|
|
15101
15192
|
}
|
|
15102
15193
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngFooterComponent, deps: [{ token: MngCommonsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15103
15194
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngFooterComponent, isStandalone: true, selector: "mng-footer", ngImport: i0, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n", dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15104
|
-
}
|
|
15105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngFooterComponent
|
|
15195
|
+
}
|
|
15196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngFooterComponent, decorators: [{
|
|
15106
15197
|
type: Component,
|
|
15107
15198
|
args: [{ standalone: true, selector: 'mng-footer', imports: [TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n" }]
|
|
15108
15199
|
}], ctorParameters: function () { return [{ type: MngCommonsService }]; } });
|
|
@@ -15357,7 +15448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
15357
15448
|
type: Injectable
|
|
15358
15449
|
}], ctorParameters: function () { return [{ type: MngCommonsService }]; } });
|
|
15359
15450
|
|
|
15360
|
-
|
|
15451
|
+
class MngMenuItemComponent {
|
|
15361
15452
|
constructor(injector, router, route, mngRouter, authorization, mngCommons, mainLayoutService) {
|
|
15362
15453
|
this.injector = injector;
|
|
15363
15454
|
this.router = router;
|
|
@@ -15584,8 +15675,8 @@ let MngMenuItemComponent$1 = class MngMenuItemComponent {
|
|
|
15584
15675
|
transition('void => visibleAnimated, visibleAnimated => void', animate('400ms cubic-bezier(0.86, 0, 0.07, 1)'))
|
|
15585
15676
|
])
|
|
15586
15677
|
] }); }
|
|
15587
|
-
}
|
|
15588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuItemComponent
|
|
15678
|
+
}
|
|
15679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuItemComponent, decorators: [{
|
|
15589
15680
|
type: Component,
|
|
15590
15681
|
args: [{ standalone: true, selector: '[mng-menuitem]', host: {
|
|
15591
15682
|
'[class.layout-root-menuitem]': 'root',
|
|
@@ -15634,7 +15725,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
15634
15725
|
args: ['class.hidden']
|
|
15635
15726
|
}] } });
|
|
15636
15727
|
|
|
15637
|
-
|
|
15728
|
+
class MngVersionComponent {
|
|
15638
15729
|
constructor(versionService, jsonPathPipe) {
|
|
15639
15730
|
this.versionService = versionService;
|
|
15640
15731
|
this.jsonPathPipe = jsonPathPipe;
|
|
@@ -15677,8 +15768,8 @@ let MngVersionComponent$1 = class MngVersionComponent {
|
|
|
15677
15768
|
}
|
|
15678
15769
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngVersionComponent, deps: [{ token: MngVersionService }, { token: JsonPathPipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15679
15770
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngVersionComponent, isStandalone: true, selector: "mng-version", inputs: { initVersion: ["version", "initVersion"] }, ngImport: i0, template: "<ng-container *ngIf=\"versions; else version\">\n <ng-container *ngFor=\"let v of versions; let last = last\"> <mng-version [version]=\"v\"></mng-version><br *ngIf=\"!last\" /> </ng-container>\n</ng-container>\n<ng-template #version>\n <ng-container *ngIf=\"displayName\">{{ displayName }}: </ng-container>\n <ng-container *ngIf=\"(loading$ | async) === false\">{{ displayVersion }}</ng-container>\n</ng-template>\n", dependencies: [{ kind: "component", type: MngVersionComponent, selector: "mng-version", inputs: ["version"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15680
|
-
}
|
|
15681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngVersionComponent
|
|
15771
|
+
}
|
|
15772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngVersionComponent, decorators: [{
|
|
15682
15773
|
type: Component,
|
|
15683
15774
|
args: [{ standalone: true, selector: 'mng-version', imports: [AsyncPipe, NgForOf, NgIf], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"versions; else version\">\n <ng-container *ngFor=\"let v of versions; let last = last\"> <mng-version [version]=\"v\"></mng-version><br *ngIf=\"!last\" /> </ng-container>\n</ng-container>\n<ng-template #version>\n <ng-container *ngIf=\"displayName\">{{ displayName }}: </ng-container>\n <ng-container *ngIf=\"(loading$ | async) === false\">{{ displayVersion }}</ng-container>\n</ng-template>\n" }]
|
|
15684
15775
|
}], ctorParameters: function () { return [{ type: MngVersionService }, { type: JsonPathPipe }]; }, propDecorators: { initVersion: [{
|
|
@@ -15686,7 +15777,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
15686
15777
|
args: ['version']
|
|
15687
15778
|
}] } });
|
|
15688
15779
|
|
|
15689
|
-
|
|
15780
|
+
class MngMenuComponent {
|
|
15690
15781
|
constructor(route, mngCommons, mainLayoutService) {
|
|
15691
15782
|
this.route = route;
|
|
15692
15783
|
this.mngCommons = mngCommons;
|
|
@@ -15702,14 +15793,14 @@ let MngMenuComponent$1 = class MngMenuComponent {
|
|
|
15702
15793
|
}
|
|
15703
15794
|
}
|
|
15704
15795
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuComponent, deps: [{ token: i1.ActivatedRoute }, { token: MngCommonsService }, { token: MngMainLayoutComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15705
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngMenuComponent, isStandalone: true, selector: "mng-menu", ngImport: i0, template: "<div\n class=\"layout-menu-wrapper\"\n [ngClass]=\"{'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async)}\"\n (click)=\"mainLayoutService.onSidebarClick($event)\"\n (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\"\n (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"(mngCommons.menuModeIsSlim$ | async) === false || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\" class=\"menu-pin\" (click)=\"mainLayoutService.onToggleMenu($event)\">\n <span *ngIf=\"mngCommons.menuModeIsOverlay$ | async\" class=\"pi pi-times\"></span>\n <span\n *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) === false && (mainLayoutService.pinActive$ | async)\"\n class=\"pi pi-unlock\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-lock\"></span>\n </a>\n </div>\n\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of menuItems; let i = index\">\n <li mng-menuitem *ngIf=\"!item.separator\" [item]=\"item\" [index]=\"i\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n </ul>\n </div>\n\n <div class=\"menu-version\">\n <mng-version [version]=\"mngCommons.appVersion\"></mng-version>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MngMenuItemComponent
|
|
15706
|
-
}
|
|
15707
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuComponent
|
|
15796
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngMenuComponent, isStandalone: true, selector: "mng-menu", ngImport: i0, template: "<div\n class=\"layout-menu-wrapper\"\n [ngClass]=\"{'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async)}\"\n (click)=\"mainLayoutService.onSidebarClick($event)\"\n (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\"\n (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"(mngCommons.menuModeIsSlim$ | async) === false || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\" class=\"menu-pin\" (click)=\"mainLayoutService.onToggleMenu($event)\">\n <span *ngIf=\"mngCommons.menuModeIsOverlay$ | async\" class=\"pi pi-times\"></span>\n <span\n *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) === false && (mainLayoutService.pinActive$ | async)\"\n class=\"pi pi-unlock\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-lock\"></span>\n </a>\n </div>\n\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of menuItems; let i = index\">\n <li mng-menuitem *ngIf=\"!item.separator\" [item]=\"item\" [index]=\"i\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n </ul>\n </div>\n\n <div class=\"menu-version\">\n <mng-version [version]=\"mngCommons.appVersion\"></mng-version>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: MngMenuItemComponent, selector: "[mng-menuitem]", inputs: ["item", "index", "root", "parentKey"], outputs: ["visibleChange"] }, { kind: "component", type: MngVersionComponent, selector: "mng-version", inputs: ["version"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15797
|
+
}
|
|
15798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuComponent, decorators: [{
|
|
15708
15799
|
type: Component,
|
|
15709
|
-
args: [{ standalone: true, selector: 'mng-menu', imports: [NgClass, AsyncPipe, NgIf, NgForOf, MngMenuItemComponent
|
|
15800
|
+
args: [{ standalone: true, selector: 'mng-menu', imports: [NgClass, AsyncPipe, NgIf, NgForOf, MngMenuItemComponent, MngVersionComponent, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"layout-menu-wrapper\"\n [ngClass]=\"{'layout-sidebar-active': (mainLayoutService.sidebarActive$ | async)}\"\n (click)=\"mainLayoutService.onSidebarClick($event)\"\n (mouseover)=\"mainLayoutService.onSidebarMouseOver($event)\"\n (mouseleave)=\"mainLayoutService.onSidebarMouseLeave($event)\">\n <div class=\"menu-logo\">\n <a routerLink=\"/\" class=\"logo\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" />\n </a>\n\n <a routerLink=\"/\" class=\"app-name\" *ngIf=\"(mngCommons.menuModeIsSlim$ | async) === false || (mainLayoutService.isMobile$ | async)\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" />\n </a>\n <a *ngIf=\"mngCommons.menuPinEnabled\" class=\"menu-pin\" (click)=\"mainLayoutService.onToggleMenu($event)\">\n <span *ngIf=\"mngCommons.menuModeIsOverlay$ | async\" class=\"pi pi-times\"></span>\n <span\n *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) === false && (mainLayoutService.pinActive$ | async)\"\n class=\"pi pi-unlock\"></span>\n <span *ngIf=\"(mngCommons.menuModeIsSidebar$ | async) && (mainLayoutService.sidebarStatic$ | async) && (mainLayoutService.pinActive$ | async)\" class=\"pi pi-lock\"></span>\n </a>\n </div>\n\n <div class=\"layout-menu-container\">\n <ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of menuItems; let i = index\">\n <li mng-menuitem *ngIf=\"!item.separator\" [item]=\"item\" [index]=\"i\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n </ul>\n </div>\n\n <div class=\"menu-version\">\n <mng-version [version]=\"mngCommons.appVersion\"></mng-version>\n </div>\n</div>\n" }]
|
|
15710
15801
|
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: MngCommonsService }, { type: MngMainLayoutComponentService }]; } });
|
|
15711
15802
|
|
|
15712
|
-
|
|
15803
|
+
class MngTopbarUserComponent {
|
|
15713
15804
|
constructor(mngCommons, mainLayoutService, elementRef) {
|
|
15714
15805
|
this.mngCommons = mngCommons;
|
|
15715
15806
|
this.mainLayoutService = mainLayoutService;
|
|
@@ -15738,22 +15829,22 @@ let MngTopbarUserComponent$1 = class MngTopbarUserComponent {
|
|
|
15738
15829
|
}
|
|
15739
15830
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarUserComponent, deps: [{ token: MngCommonsService }, { token: MngMainLayoutComponentService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15740
15831
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngTopbarUserComponent, isStandalone: true, selector: "mng-topbar-user-component", ngImport: i0, template: "<a href=\"#\" class=\"user-block\" (click)=\"click($event)\">\n <i class=\"pi pi-fw pi-user\"></i>\n <span class=\"profile-item-username hidden sm:inline-block\"> {{ user?.displayName ?? user?.username }}</span>\n</a>\n<ul class=\"fadeInDown dropdown-window\">\n <li role=\"menuitem\">\n <a>\n <div class=\"flex\">\n <div class=\"flex-grow-0\">\n <i class=\"pi pi-fw pi-user\"></i>\n </div>\n <div class=\"flex-grow-1\">\n <strong>{{ user?.displayName ?? user?.username }}</strong>\n <small *ngIf=\"((userRoles$ | async)?.length ?? 0) > 0\">\n <br />\n {{ userRoles$ | mgnEnumerateAsync : undefined : undefined : undefined : 'roles' | async }}\n </small>\n </div>\n </div>\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a [href]=\"user?.logoutUrl ?? hrefJsVoid\" (click)=\"logout(user, $event)\">\n <i class=\"pi pi-fw pi-sign-out\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n</ul>\n", dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: MngEnumerateAsyncPipe, name: "mgnEnumerateAsync" }] }); }
|
|
15741
|
-
}
|
|
15742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarUserComponent
|
|
15832
|
+
}
|
|
15833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarUserComponent, decorators: [{
|
|
15743
15834
|
type: Component,
|
|
15744
15835
|
args: [{ standalone: true, selector: 'mng-topbar-user-component', imports: [NgClass, NgIf, AsyncPipe, TranslateModule, MngEnumerateAsyncPipe], template: "<a href=\"#\" class=\"user-block\" (click)=\"click($event)\">\n <i class=\"pi pi-fw pi-user\"></i>\n <span class=\"profile-item-username hidden sm:inline-block\"> {{ user?.displayName ?? user?.username }}</span>\n</a>\n<ul class=\"fadeInDown dropdown-window\">\n <li role=\"menuitem\">\n <a>\n <div class=\"flex\">\n <div class=\"flex-grow-0\">\n <i class=\"pi pi-fw pi-user\"></i>\n </div>\n <div class=\"flex-grow-1\">\n <strong>{{ user?.displayName ?? user?.username }}</strong>\n <small *ngIf=\"((userRoles$ | async)?.length ?? 0) > 0\">\n <br />\n {{ userRoles$ | mgnEnumerateAsync : undefined : undefined : undefined : 'roles' | async }}\n </small>\n </div>\n </div>\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a [href]=\"user?.logoutUrl ?? hrefJsVoid\" (click)=\"logout(user, $event)\">\n <i class=\"pi pi-fw pi-sign-out\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n</ul>\n" }]
|
|
15745
15836
|
}], ctorParameters: function () { return [{ type: MngCommonsService }, { type: MngMainLayoutComponentService }, { type: i0.ElementRef }]; } });
|
|
15746
15837
|
|
|
15747
|
-
|
|
15838
|
+
class MngTopbarComponent {
|
|
15748
15839
|
constructor(applicationRef, route, mngCommons, mainLayoutService, config) {
|
|
15749
15840
|
this.applicationRef = applicationRef;
|
|
15750
15841
|
this.route = route;
|
|
15751
15842
|
this.mngCommons = mngCommons;
|
|
15752
15843
|
this.mainLayoutService = mainLayoutService;
|
|
15753
15844
|
this.config = config;
|
|
15754
|
-
this.breadcrumbComponent = MngBreadcrumbComponent
|
|
15755
|
-
this.menuComponent = MngMenuComponent
|
|
15756
|
-
this.topbarUserComponent = MngTopbarUserComponent
|
|
15845
|
+
this.breadcrumbComponent = MngBreadcrumbComponent;
|
|
15846
|
+
this.menuComponent = MngMenuComponent;
|
|
15847
|
+
this.topbarUserComponent = MngTopbarUserComponent;
|
|
15757
15848
|
this.languages = ['en'];
|
|
15758
15849
|
this.selectedLanguage = 'en';
|
|
15759
15850
|
}
|
|
@@ -15775,8 +15866,8 @@ let MngTopbarComponent$1 = class MngTopbarComponent {
|
|
|
15775
15866
|
}
|
|
15776
15867
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarComponent, deps: [{ token: i0.ApplicationRef }, { token: i1.ActivatedRoute }, { token: MngCommonsService }, { token: MngMainLayoutComponentService }, { token: MNG_MODULE_CONFIG_IT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15777
15868
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngTopbarComponent, isStandalone: true, selector: "mng-topbar", viewQueries: [{ propertyName: "topbarInjectionRef", first: true, predicate: ["userMenuItem"], descendants: true }, { propertyName: "templates", predicate: MngTemplateDirective, descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a\n href=\"#\"\n class=\"topbar-menu-button\"\n (click)=\"mainLayoutService.onMenuButtonClick($event)\"\n *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <ng-container [mngComponent]=\"breadcrumbComponent\"></ng-container>\n </div>\n\n <ng-container [mngComponent]=\"menuComponent\"></ng-container>\n\n <div class=\"layout-topbar-right\">\n <ul class=\"layout-topbar-right-items\">\n <li\n #userMenuItem\n class=\"profile-item profile-item-extended\"\n [ngClass]=\"{'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === userMenuItem}\"\n [mngComponent]=\"topbarUserComponent\"\n [attachToHost]=\"true\"></li>\n <li *ngIf=\"languages.length > 1\" class=\"profile-item\">\n <i class=\"pi pi-fw pi-globe\"></i>\n <p-dropdown [ngModel]=\"selectedLanguage\" [options]=\"languages\" (onChange)=\"switchLanguage($event.value)\"></p-dropdown>\n </li>\n </ul>\n </div>\n</div>\n", dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs", "attachToHost"], outputs: ["instanceCreated"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i3$1.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RouterModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15778
|
-
}
|
|
15779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarComponent
|
|
15869
|
+
}
|
|
15870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarComponent, decorators: [{
|
|
15780
15871
|
type: Component,
|
|
15781
15872
|
args: [{ standalone: true, selector: 'mng-topbar', imports: [AsyncPipe, NgClass, TranslateModule, NgIf, MngComponentDirective, MngEnumerateAsyncPipe, DropdownModule, FormsModule, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-left\">\n <a\n href=\"#\"\n class=\"topbar-menu-button\"\n (click)=\"mainLayoutService.onMenuButtonClick($event)\"\n *ngIf=\"(mngCommons.menuModeIsOverlay$ | async) || (mainLayoutService.isMobile$ | async)\">\n <i class=\"pi pi-bars\"></i>\n </a>\n\n <ng-container [mngComponent]=\"breadcrumbComponent\"></ng-container>\n </div>\n\n <ng-container [mngComponent]=\"menuComponent\"></ng-container>\n\n <div class=\"layout-topbar-right\">\n <ul class=\"layout-topbar-right-items\">\n <li\n #userMenuItem\n class=\"profile-item profile-item-extended\"\n [ngClass]=\"{'active-topmenuitem': (mainLayoutService.activeTopbarItem$ | async) === userMenuItem}\"\n [mngComponent]=\"topbarUserComponent\"\n [attachToHost]=\"true\"></li>\n <li *ngIf=\"languages.length > 1\" class=\"profile-item\">\n <i class=\"pi pi-fw pi-globe\"></i>\n <p-dropdown [ngModel]=\"selectedLanguage\" [options]=\"languages\" (onChange)=\"switchLanguage($event.value)\"></p-dropdown>\n </li>\n </ul>\n </div>\n</div>\n" }]
|
|
15782
15873
|
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1.ActivatedRoute }, { type: MngCommonsService }, { type: MngMainLayoutComponentService }, { type: undefined, decorators: [{
|
|
@@ -15796,9 +15887,9 @@ class MngMainLayoutComponent {
|
|
|
15796
15887
|
this.mngCommons = mngCommons;
|
|
15797
15888
|
this.mainLayoutService = mainLayoutService;
|
|
15798
15889
|
this.config = config;
|
|
15799
|
-
this.topbarComponent = MngTopbarComponent
|
|
15800
|
-
this.menuComponent = MngMenuComponent
|
|
15801
|
-
this.footerComponent = MngFooterComponent
|
|
15890
|
+
this.topbarComponent = MngTopbarComponent;
|
|
15891
|
+
this.menuComponent = MngMenuComponent;
|
|
15892
|
+
this.footerComponent = MngFooterComponent;
|
|
15802
15893
|
}
|
|
15803
15894
|
ngOnInit() {
|
|
15804
15895
|
if (this.config.components?.layout?.topbar) {
|
|
@@ -15877,97 +15968,6 @@ function mngCommonsInitializerProvider(mngCommonsInit) {
|
|
|
15877
15968
|
return () => mngCommonsInit.initialize();
|
|
15878
15969
|
}
|
|
15879
15970
|
|
|
15880
|
-
class MngCommonsInitService {
|
|
15881
|
-
constructor() {
|
|
15882
|
-
this.httpClient = inject(HttpClient);
|
|
15883
|
-
this.logger = inject(MngLoggerService);
|
|
15884
|
-
this.logPublishers = inject(MNG_LOG_PUBLISHERS, { optional: true });
|
|
15885
|
-
this.config = inject(MngConfigurationService);
|
|
15886
|
-
this.mngCommons = inject(MngCommonsService);
|
|
15887
|
-
this.mngRouter = inject(MngRouterService);
|
|
15888
|
-
this.moduleConfig = inject(MNG_MODULE_CONFIG_IT, { optional: true });
|
|
15889
|
-
this.commonsInitializers = inject(MNG_COMMONS_INITIALIZER_IT, { optional: true });
|
|
15890
|
-
this.isInitialized = false;
|
|
15891
|
-
this.isInitializedSubject = new ReplaySubject();
|
|
15892
|
-
this.commonsInitServiceEvents = new Subject();
|
|
15893
|
-
}
|
|
15894
|
-
get events$() {
|
|
15895
|
-
return this.commonsInitServiceEvents.asObservable();
|
|
15896
|
-
}
|
|
15897
|
-
get isInitialized$() {
|
|
15898
|
-
return this.isInitializedSubject.asObservable().pipe(take(1));
|
|
15899
|
-
}
|
|
15900
|
-
initialize() {
|
|
15901
|
-
if (this.isInitialized) {
|
|
15902
|
-
return of(void 0);
|
|
15903
|
-
}
|
|
15904
|
-
this.isInitialized = true;
|
|
15905
|
-
MngLoggerService.configure({ timestampFormat: this.moduleConfig?.log?.timestampFormat });
|
|
15906
|
-
const ctxLogger = this.logger.create('MngCommonsInitService');
|
|
15907
|
-
ctxLogger.debug('Commons initialization is starting');
|
|
15908
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitStart);
|
|
15909
|
-
// init router
|
|
15910
|
-
this.mngRouter.initialize();
|
|
15911
|
-
// init configurations with settings from module config
|
|
15912
|
-
this.config.init(this.httpClient, this.logger);
|
|
15913
|
-
this.config.addModuleConfigSource(this.moduleConfig ?? undefined);
|
|
15914
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceModuleLoaded);
|
|
15915
|
-
if (this.moduleConfig?.configuration?.projectEnvironment) {
|
|
15916
|
-
this.config.addEnvironmentSource(this.moduleConfig.configuration.projectEnvironment);
|
|
15917
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceProjectEnvLoaded);
|
|
15918
|
-
}
|
|
15919
|
-
// init configurations with settings from module config for json source
|
|
15920
|
-
if (!(this.moduleConfig?.configuration?.skipJsonSourceInit ?? false)) {
|
|
15921
|
-
const jsonSourceEnableEnvProd = this.moduleConfig?.configuration?.jsonSourceEnableEnvProd ?? false;
|
|
15922
|
-
const jsonSource = this.moduleConfig?.configuration?.jsonSource;
|
|
15923
|
-
if (!jsonSource) {
|
|
15924
|
-
this.config.addJsonSource({ enableEnvProd: jsonSourceEnableEnvProd });
|
|
15925
|
-
}
|
|
15926
|
-
else if (Array.isArray(jsonSource)) {
|
|
15927
|
-
jsonSource.forEach(source => this.config.addJsonSource({ url: source, enableEnvProd: jsonSourceEnableEnvProd }));
|
|
15928
|
-
}
|
|
15929
|
-
else {
|
|
15930
|
-
this.config.addJsonSource({ url: jsonSource, enableEnvProd: jsonSourceEnableEnvProd });
|
|
15931
|
-
}
|
|
15932
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceJsonAdded);
|
|
15933
|
-
}
|
|
15934
|
-
return this.config.loadJsonConfigurations().pipe(mergeMap(() => {
|
|
15935
|
-
if (!(this.moduleConfig?.configuration?.skipJsonSourceInit ?? false)) {
|
|
15936
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.ConfigSourceJsonLoaded);
|
|
15937
|
-
}
|
|
15938
|
-
// init logger
|
|
15939
|
-
MngLoggerService.init(this.config, this.logPublishers ?? []);
|
|
15940
|
-
if (this.commonsInitializers) {
|
|
15941
|
-
ctxLogger.debug('Project initializers are being initialized');
|
|
15942
|
-
return combineLatest(this.commonsInitializers.map(ci => ci())).pipe(map(res => res));
|
|
15943
|
-
}
|
|
15944
|
-
else {
|
|
15945
|
-
return of(true);
|
|
15946
|
-
}
|
|
15947
|
-
}), map(() => {
|
|
15948
|
-
ctxLogger.debug('Commons initialization is finished');
|
|
15949
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitEnd);
|
|
15950
|
-
this.commonsInitServiceEvents.complete();
|
|
15951
|
-
this.isInitializedSubject.next(true);
|
|
15952
|
-
return this.mngCommons.reset();
|
|
15953
|
-
}), catchError(err => {
|
|
15954
|
-
ctxLogger.warn('Commons initialization failed with error', err);
|
|
15955
|
-
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitError);
|
|
15956
|
-
this.commonsInitServiceEvents.complete();
|
|
15957
|
-
this.isInitializedSubject.next(false);
|
|
15958
|
-
return throwError(() => err);
|
|
15959
|
-
}));
|
|
15960
|
-
}
|
|
15961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15962
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, providedIn: 'root' }); }
|
|
15963
|
-
}
|
|
15964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngCommonsInitService, decorators: [{
|
|
15965
|
-
type: Injectable,
|
|
15966
|
-
args: [{
|
|
15967
|
-
providedIn: 'root'
|
|
15968
|
-
}]
|
|
15969
|
-
}] });
|
|
15970
|
-
|
|
15971
15971
|
const formlyWrappersConfig = [
|
|
15972
15972
|
{ name: 'field', component: MngFormlyFieldWrapperComponent },
|
|
15973
15973
|
{ name: 'field-no-label', component: MngFormlyFieldNoLabelWrapperComponent }
|
|
@@ -16371,14 +16371,14 @@ const standalone = [
|
|
|
16371
16371
|
MngEnumerateAsyncPipe,
|
|
16372
16372
|
MngLocaleDefaultRowClassPipe,
|
|
16373
16373
|
// layout components
|
|
16374
|
-
MngBreadcrumbComponent
|
|
16375
|
-
MngFooterComponent
|
|
16374
|
+
MngBreadcrumbComponent,
|
|
16375
|
+
MngFooterComponent,
|
|
16376
16376
|
MngMainLayoutComponent,
|
|
16377
|
-
MngMenuComponent
|
|
16378
|
-
MngMenuItemComponent
|
|
16379
|
-
MngTopbarComponent
|
|
16380
|
-
MngTopbarUserComponent
|
|
16381
|
-
MngVersionComponent
|
|
16377
|
+
MngMenuComponent,
|
|
16378
|
+
MngMenuItemComponent,
|
|
16379
|
+
MngTopbarComponent,
|
|
16380
|
+
MngTopbarUserComponent,
|
|
16381
|
+
MngVersionComponent,
|
|
16382
16382
|
// mng fields
|
|
16383
16383
|
MngAutocompleteComponent,
|
|
16384
16384
|
MngDropdownComponent,
|
|
@@ -16481,14 +16481,14 @@ class MngCommonsModule {
|
|
|
16481
16481
|
MngEnumerateAsyncPipe,
|
|
16482
16482
|
MngLocaleDefaultRowClassPipe,
|
|
16483
16483
|
// layout components
|
|
16484
|
-
MngBreadcrumbComponent
|
|
16485
|
-
MngFooterComponent
|
|
16484
|
+
MngBreadcrumbComponent,
|
|
16485
|
+
MngFooterComponent,
|
|
16486
16486
|
MngMainLayoutComponent,
|
|
16487
|
-
MngMenuComponent
|
|
16488
|
-
MngMenuItemComponent
|
|
16489
|
-
MngTopbarComponent
|
|
16490
|
-
MngTopbarUserComponent
|
|
16491
|
-
MngVersionComponent
|
|
16487
|
+
MngMenuComponent,
|
|
16488
|
+
MngMenuItemComponent,
|
|
16489
|
+
MngTopbarComponent,
|
|
16490
|
+
MngTopbarUserComponent,
|
|
16491
|
+
MngVersionComponent,
|
|
16492
16492
|
// mng fields
|
|
16493
16493
|
MngAutocompleteComponent,
|
|
16494
16494
|
MngDropdownComponent,
|
|
@@ -16576,14 +16576,14 @@ class MngCommonsModule {
|
|
|
16576
16576
|
MngEnumerateAsyncPipe,
|
|
16577
16577
|
MngLocaleDefaultRowClassPipe,
|
|
16578
16578
|
// layout components
|
|
16579
|
-
MngBreadcrumbComponent
|
|
16580
|
-
MngFooterComponent
|
|
16579
|
+
MngBreadcrumbComponent,
|
|
16580
|
+
MngFooterComponent,
|
|
16581
16581
|
MngMainLayoutComponent,
|
|
16582
|
-
MngMenuComponent
|
|
16583
|
-
MngMenuItemComponent
|
|
16584
|
-
MngTopbarComponent
|
|
16585
|
-
MngTopbarUserComponent
|
|
16586
|
-
MngVersionComponent
|
|
16582
|
+
MngMenuComponent,
|
|
16583
|
+
MngMenuItemComponent,
|
|
16584
|
+
MngTopbarComponent,
|
|
16585
|
+
MngTopbarUserComponent,
|
|
16586
|
+
MngVersionComponent,
|
|
16587
16587
|
// mng fields
|
|
16588
16588
|
MngAutocompleteComponent,
|
|
16589
16589
|
MngDropdownComponent,
|
|
@@ -16630,12 +16630,12 @@ class MngCommonsModule {
|
|
|
16630
16630
|
}),
|
|
16631
16631
|
FormlyModule.forChild(), primeNgModules, MngActionRouteComponent,
|
|
16632
16632
|
// layout components
|
|
16633
|
-
MngBreadcrumbComponent
|
|
16634
|
-
MngFooterComponent
|
|
16635
|
-
MngMenuComponent
|
|
16636
|
-
MngMenuItemComponent
|
|
16637
|
-
MngTopbarComponent
|
|
16638
|
-
MngTopbarUserComponent
|
|
16633
|
+
MngBreadcrumbComponent,
|
|
16634
|
+
MngFooterComponent,
|
|
16635
|
+
MngMenuComponent,
|
|
16636
|
+
MngMenuItemComponent,
|
|
16637
|
+
MngTopbarComponent,
|
|
16638
|
+
MngTopbarUserComponent,
|
|
16639
16639
|
// mng fields
|
|
16640
16640
|
MngAutocompleteComponent,
|
|
16641
16641
|
MngDropdownComponent,
|
|
@@ -16881,7 +16881,7 @@ class AMngCrudApiService extends AMngGetAllApiService {
|
|
|
16881
16881
|
}
|
|
16882
16882
|
}
|
|
16883
16883
|
|
|
16884
|
-
class
|
|
16884
|
+
class MngBreadcrumbV2Component {
|
|
16885
16885
|
constructor() {
|
|
16886
16886
|
this.mngCommons = inject(MngCommonsService);
|
|
16887
16887
|
this.mappedBreadcrumbs$ = this.mngCommons.breadcrumbs$.pipe(map((items) => items.map(el => this.mapMngMenuItem(el))));
|
|
@@ -16894,23 +16894,23 @@ class MngBreadcrumbComponent {
|
|
|
16894
16894
|
styleClass: item.className
|
|
16895
16895
|
};
|
|
16896
16896
|
}
|
|
16897
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
16898
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
16897
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngBreadcrumbV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16898
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngBreadcrumbV2Component, isStandalone: true, selector: "mng-breadcrumb-v2", ngImport: i0, template: "<div class=\"layout-breadcrumb flex align-items-center relative h-3rem\">\n <nav>\n <ol class=\"relative z-2\">\n <ng-template ngFor let-item let-last=\"last\" [ngForOf]=\"mappedBreadcrumbs$ | async\">\n <li>{{ item.label! | translate }}</li>\n <li *ngIf=\"!last\" class=\"layout-breadcrumb-chevron\">/</li>\n </ng-template>\n </ol>\n </nav>\n</div>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16899
16899
|
}
|
|
16900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
16900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngBreadcrumbV2Component, decorators: [{
|
|
16901
16901
|
type: Component,
|
|
16902
16902
|
args: [{ standalone: true, selector: 'mng-breadcrumb-v2', imports: [NgForOf, NgClass, InputTextModule, ButtonModule, AsyncPipe, NgIf, TranslateModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-breadcrumb flex align-items-center relative h-3rem\">\n <nav>\n <ol class=\"relative z-2\">\n <ng-template ngFor let-item let-last=\"last\" [ngForOf]=\"mappedBreadcrumbs$ | async\">\n <li>{{ item.label! | translate }}</li>\n <li *ngIf=\"!last\" class=\"layout-breadcrumb-chevron\">/</li>\n </ng-template>\n </ol>\n </nav>\n</div>\n" }]
|
|
16903
16903
|
}] });
|
|
16904
16904
|
|
|
16905
|
-
class
|
|
16905
|
+
class MngFooterV2Component {
|
|
16906
16906
|
constructor() {
|
|
16907
16907
|
this.mngCommons = inject(MngCommonsService);
|
|
16908
16908
|
this.currentYear = new Date().getFullYear();
|
|
16909
16909
|
}
|
|
16910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
16911
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
16910
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngFooterV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16911
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngFooterV2Component, isStandalone: true, selector: "mng-footer-v2", ngImport: i0, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n", dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16912
16912
|
}
|
|
16913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
16913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngFooterV2Component, decorators: [{
|
|
16914
16914
|
type: Component,
|
|
16915
16915
|
args: [{ standalone: true, selector: 'mng-footer-v2', imports: [TranslateModule, NgOptimizedImage], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-footer\">\n <div class=\"footer-logo-container\">\n <img id=\"footer-logo\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" alt=\"atlantis-layout\" />\n <span class=\"app-name\">{{ mngCommons.appName | translate }}</span>\n </div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n</div>\n" }]
|
|
16916
16916
|
}] });
|
|
@@ -17079,7 +17079,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
17079
17079
|
}]
|
|
17080
17080
|
}] });
|
|
17081
17081
|
|
|
17082
|
-
class
|
|
17082
|
+
class MngMenuItemV2Component {
|
|
17083
17083
|
constructor() {
|
|
17084
17084
|
this.router = inject(Router);
|
|
17085
17085
|
this.injector = inject(Injector);
|
|
@@ -17235,8 +17235,8 @@ class MngMenuItemComponent {
|
|
|
17235
17235
|
});
|
|
17236
17236
|
}
|
|
17237
17237
|
}
|
|
17238
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17239
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuItemV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17239
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngMenuItemV2Component, isStandalone: true, selector: "[mng-menuitem-v2]", inputs: { item: "item", root: "root" }, outputs: { visibleChangeEventEmitter: "visibleChange" }, host: { properties: { "class.layout-root-menuitem": "this.root", "class.active-menuitem": "this.activeClass" } }, viewQueries: [{ propertyName: "submenu", first: true, predicate: ["submenu"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"visible()\">\n <div *ngIf=\"root\" class=\"layout-menuitem-root-text\">\n {{ item.label! | translate }}\n </div>\n <a\n *ngIf=\"!item.href && (!item.routerLink || item.items)\"\n [attr.href]=\"item.href\"\n (click)=\"itemClick($event)\"\n (keydown.enter)=\"itemClick($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.className ?? ''\"\n pRipple>\n <i [ngClass]=\"item.icon ?? ''\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label! | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items || item.lazyChildren\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <a\n *ngIf=\"!item.href && item.routerLink && !item.items\"\n (click)=\"itemClick($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.className ?? '' + (this.active() ? ' active-route' : '')\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [queryParams]=\"item.queryParams\"\n pRipple>\n <i [ngClass]=\"item.icon ?? ''\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label! | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items || item.lazyChildren\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n <a\n *ngIf=\"item.href && !item.items\"\n (click)=\"itemClick($event)\"\n [attr.href]=\"item.href\"\n [attr.target]=\"item.target\"\n [attr.tabindex]=\"0\"\n [ngClass]=\"item.className ?? ''\"\n pRipple>\n <i [ngClass]=\"item.icon ?? ''\" class=\"layout-menuitem-icon\"></i>\n <span class=\"layout-menuitem-text\">{{ item.label! | translate }}</span>\n <i class=\"pi pi-fw pi-angle-down layout-submenu-toggler\" *ngIf=\"item.items || item.lazyChildren\"></i>\n <span class=\"menuitem-badge\" *ngIf=\"item.badge\">{{ item.badge }}</span>\n </a>\n\n <ul #submenu *ngIf=\"item.items\" [@children]=\"submenuAnimation\">\n <ng-template ngFor let-child let-i=\"index\" [ngForOf]=\"item.items\">\n <li mng-menuitem-v2 [item]=\"child\" [class]=\"child.badgeClassName\" (visibleChange)=\"onChildVisibleChange($event, item, i)\"></li>\n </ng-template>\n </ul>\n</ng-container>\n", dependencies: [{ kind: "component", type: MngMenuItemV2Component, selector: "[mng-menuitem-v2]", inputs: ["item", "root"], outputs: ["visibleChange"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i6$1.Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], animations: [
|
|
17240
17240
|
trigger('children', [
|
|
17241
17241
|
state('collapsed', style({
|
|
17242
17242
|
height: '0'
|
|
@@ -17254,7 +17254,7 @@ class MngMenuItemComponent {
|
|
|
17254
17254
|
])
|
|
17255
17255
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17256
17256
|
}
|
|
17257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuItemV2Component, decorators: [{
|
|
17258
17258
|
type: Component,
|
|
17259
17259
|
args: [{ standalone: true, selector: '[mng-menuitem-v2]', imports: [NgIf, NgClass, RippleModule, TooltipModule, RouterModule, NgForOf, TranslateModule, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
17260
17260
|
trigger('children', [
|
|
@@ -17292,7 +17292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
17292
17292
|
args: ['class.active-menuitem']
|
|
17293
17293
|
}] } });
|
|
17294
17294
|
|
|
17295
|
-
class
|
|
17295
|
+
class MngMenuV2Component {
|
|
17296
17296
|
constructor() {
|
|
17297
17297
|
this.route = inject(ActivatedRoute);
|
|
17298
17298
|
this.menuService = inject(MenuService);
|
|
@@ -17308,15 +17308,15 @@ class MngMenuComponent {
|
|
|
17308
17308
|
}
|
|
17309
17309
|
this.menuService.initialize(this.menuItems);
|
|
17310
17310
|
}
|
|
17311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17312
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17312
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngMenuV2Component, isStandalone: true, selector: "mng-menu-v2", ngImport: i0, template: "<ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of menuItems\">\n <li mng-menuitem-v2 *ngIf=\"!item.separator\" [item]=\"item\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MngMenuItemV2Component, selector: "[mng-menuitem-v2]", inputs: ["item", "root"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17313
17313
|
}
|
|
17314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMenuV2Component, decorators: [{
|
|
17315
17315
|
type: Component,
|
|
17316
|
-
args: [{ standalone: true, selector: 'mng-menu-v2', imports: [NgForOf, NgIf,
|
|
17316
|
+
args: [{ standalone: true, selector: 'mng-menu-v2', imports: [NgForOf, NgIf, MngMenuItemV2Component], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"layout-menu\">\n <ng-container *ngFor=\"let item of menuItems\">\n <li mng-menuitem-v2 *ngIf=\"!item.separator\" [item]=\"item\" [root]=\"true\"></li>\n <li *ngIf=\"item.separator\" class=\"menu-separator\"></li>\n </ng-container>\n</ul>\n" }]
|
|
17317
17317
|
}] });
|
|
17318
17318
|
|
|
17319
|
-
class
|
|
17319
|
+
class MngVersionV2Component {
|
|
17320
17320
|
constructor(versionService, jsonPathPipe) {
|
|
17321
17321
|
this.versionService = versionService;
|
|
17322
17322
|
this.jsonPathPipe = jsonPathPipe;
|
|
@@ -17360,10 +17360,10 @@ class MngVersionComponent {
|
|
|
17360
17360
|
}
|
|
17361
17361
|
}
|
|
17362
17362
|
}
|
|
17363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17364
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngVersionV2Component, deps: [{ token: MngVersionService }, { token: JsonPathPipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17364
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngVersionV2Component, isStandalone: true, selector: "mng-version-v2", inputs: { initVersion: ["version", "initVersion"] }, ngImport: i0, template: "<ng-container *ngIf=\"versions; else version\">\n <ng-container *ngFor=\"let v of versions; let last = last\"> <mng-version-v2 [version]=\"v\"></mng-version-v2><br *ngIf=\"!last\" /> </ng-container>\n</ng-container>\n<ng-template #version>\n <ng-container *ngIf=\"displayName\">{{ displayName }}: </ng-container>\n <ng-container *ngIf=\"(loading$ | async) === false\">{{ displayVersion }}</ng-container>\n</ng-template>\n", dependencies: [{ kind: "component", type: MngVersionV2Component, selector: "mng-version-v2", inputs: ["version"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17365
17365
|
}
|
|
17366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngVersionV2Component, decorators: [{
|
|
17367
17367
|
type: Component,
|
|
17368
17368
|
args: [{ standalone: true, selector: 'mng-version-v2', imports: [AsyncPipe, NgForOf, NgIf], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"versions; else version\">\n <ng-container *ngFor=\"let v of versions; let last = last\"> <mng-version-v2 [version]=\"v\"></mng-version-v2><br *ngIf=\"!last\" /> </ng-container>\n</ng-container>\n<ng-template #version>\n <ng-container *ngIf=\"displayName\">{{ displayName }}: </ng-container>\n <ng-container *ngIf=\"(loading$ | async) === false\">{{ displayVersion }}</ng-container>\n</ng-template>\n" }]
|
|
17369
17369
|
}], ctorParameters: function () { return [{ type: MngVersionService }, { type: JsonPathPipe }]; }, propDecorators: { initVersion: [{
|
|
@@ -17371,14 +17371,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
17371
17371
|
args: ['version']
|
|
17372
17372
|
}] } });
|
|
17373
17373
|
|
|
17374
|
-
class
|
|
17374
|
+
class MngSidebarV2Component {
|
|
17375
17375
|
constructor() {
|
|
17376
17376
|
this.config = inject(MNG_MODULE_CONFIG_IT);
|
|
17377
17377
|
this.mngCommons = inject(MngCommonsService);
|
|
17378
17378
|
this.layoutService = inject(MngMainLayoutComponentV2Service);
|
|
17379
17379
|
this.el = inject(ElementRef);
|
|
17380
17380
|
this.timeout = null;
|
|
17381
|
-
this.menuComponent =
|
|
17381
|
+
this.menuComponent = MngMenuV2Component;
|
|
17382
17382
|
}
|
|
17383
17383
|
ngOnInit() {
|
|
17384
17384
|
if (this.config.components?.layout?.menu) {
|
|
@@ -17404,18 +17404,18 @@ class MngSidebarComponent {
|
|
|
17404
17404
|
anchor() {
|
|
17405
17405
|
this.layoutService.state.anchored$.next(!this.layoutService.state.anchored$.value);
|
|
17406
17406
|
}
|
|
17407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17407
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngSidebarV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17408
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngSidebarV2Component, isStandalone: true, selector: "mng-sidebar-v2", viewQueries: [{ propertyName: "menuContainer", first: true, predicate: ["menuContainer"], descendants: true }], ngImport: i0, template: "<div class=\"layout-sidebar\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\n <div class=\"sidebar-header\">\n <a [routerLink]=\"['/']\" class=\"app-logo\">\n <div class=\"app-logo-small h-2rem\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" [alt]=\"'App logo'\" />\n </div>\n <div class=\"app-logo-normal\">\n <img class=\"h-2rem\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" [alt]=\"'App logo'\" />\n <img class=\"h-2rem ml-3\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" [alt]=\"'App name'\" />\n </div>\n </a>\n <button class=\"layout-sidebar-anchor p-link z-2\" type=\"button\" (click)=\"anchor()\"></button>\n </div>\n\n <div #menuContainer class=\"layout-menu-container\">\n <div [mngComponent]=\"menuComponent\" [attachToHost]=\"true\"></div>\n </div>\n\n <div class=\"menu-version\">\n <mng-version-v2 [version]=\"mngCommons.appVersion\"></mng-version-v2>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: MngVersionV2Component, selector: "mng-version-v2", inputs: ["version"] }, { kind: "directive", type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs", "attachToHost"], outputs: ["instanceCreated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17409
17409
|
}
|
|
17410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngSidebarV2Component, decorators: [{
|
|
17411
17411
|
type: Component,
|
|
17412
|
-
args: [{ standalone: true, selector: 'mng-sidebar-v2', imports: [RouterModule,
|
|
17412
|
+
args: [{ standalone: true, selector: 'mng-sidebar-v2', imports: [RouterModule, MngMenuV2Component, MngVersionV2Component, MngComponentDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"layout-sidebar\" (mouseenter)=\"onMouseEnter()\" (mouseleave)=\"onMouseLeave()\">\n <div class=\"sidebar-header\">\n <a [routerLink]=\"['/']\" class=\"app-logo\">\n <div class=\"app-logo-small h-2rem\">\n <img [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" [alt]=\"'App logo'\" />\n </div>\n <div class=\"app-logo-normal\">\n <img class=\"h-2rem\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoDark : mngCommons.appLogoLight\" [alt]=\"'App logo'\" />\n <img class=\"h-2rem ml-3\" [src]=\"mngCommons.colorSchemeIsLight ? mngCommons.appLogoNameDark : mngCommons.appLogoNameLight\" [alt]=\"'App name'\" />\n </div>\n </a>\n <button class=\"layout-sidebar-anchor p-link z-2\" type=\"button\" (click)=\"anchor()\"></button>\n </div>\n\n <div #menuContainer class=\"layout-menu-container\">\n <div [mngComponent]=\"menuComponent\" [attachToHost]=\"true\"></div>\n </div>\n\n <div class=\"menu-version\">\n <mng-version-v2 [version]=\"mngCommons.appVersion\"></mng-version-v2>\n </div>\n</div>\n" }]
|
|
17413
17413
|
}], propDecorators: { menuContainer: [{
|
|
17414
17414
|
type: ViewChild,
|
|
17415
17415
|
args: ['menuContainer']
|
|
17416
17416
|
}] } });
|
|
17417
17417
|
|
|
17418
|
-
class
|
|
17418
|
+
class MngTopbarUserV2Component {
|
|
17419
17419
|
constructor() {
|
|
17420
17420
|
this.destroyRef = inject(DestroyRef);
|
|
17421
17421
|
this.mngCommons = inject(MngCommonsService);
|
|
@@ -17434,22 +17434,22 @@ class MngTopbarUserComponent {
|
|
|
17434
17434
|
user.logout();
|
|
17435
17435
|
}
|
|
17436
17436
|
}
|
|
17437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17438
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarUserV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17438
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngTopbarUserV2Component, isStandalone: true, selector: "mng-topbar-user-component-v2", ngImport: i0, template: "<a\n class=\"cursor-pointer lg:pr-4\"\n pStyleClass=\"@next\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\"\n [hideOnOutsideClick]=\"true\"\n pRipple>\n <i class=\"pi pi-fw pi-user text-2xl\"></i>\n <span class=\"hidden sm:inline-block\"> {{ user?.displayName ?? user?.username }}</span>\n</a>\n<ul class=\"topbar-menu active-topbar-menu w-15rem z-5 ng-hidden border-round\">\n <li role=\"menuitem\">\n <a\n class=\"flex align-items-center transition-duration-200\"\n pStyleClass=\"@grandparent\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\">\n <i class=\"pi pi-fw pi-user text-base mr-2\"></i>\n <div>\n <strong>{{ user?.displayName ?? user?.username }}</strong>\n <small *ngIf=\"((userRoles$ | async)?.length ?? 0) > 0\">\n <br />\n {{ userRoles$ | mgnEnumerateAsync : undefined : undefined : undefined : 'roles' | async }}\n </small>\n </div>\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a\n [href]=\"user?.logoutUrl ?? hrefJsVoid\"\n (click)=\"logout(user, $event)\"\n class=\"flex align-items-center hover:text-primary-500 transition-duration-200\"\n pStyleClass=\"@grandparent\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\">\n <i class=\"pi pi-fw pi-sign-out text-base mr-2\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n</ul>\n", dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: MngEnumerateAsyncPipe, name: "mgnEnumerateAsync" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: RippleModule }, { kind: "directive", type: i6$1.Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: StyleClassModule }, { kind: "directive", type: i3$4.StyleClass, selector: "[pStyleClass]", inputs: ["pStyleClass", "enterClass", "enterActiveClass", "enterToClass", "leaveClass", "leaveActiveClass", "leaveToClass", "hideOnOutsideClick", "toggleClass", "hideOnEscape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17439
17439
|
}
|
|
17440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarUserV2Component, decorators: [{
|
|
17441
17441
|
type: Component,
|
|
17442
17442
|
args: [{ standalone: true, selector: 'mng-topbar-user-component-v2', imports: [AsyncPipe, MngEnumerateAsyncPipe, NgIf, TranslateModule, RippleModule, StyleClassModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<a\n class=\"cursor-pointer lg:pr-4\"\n pStyleClass=\"@next\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\"\n [hideOnOutsideClick]=\"true\"\n pRipple>\n <i class=\"pi pi-fw pi-user text-2xl\"></i>\n <span class=\"hidden sm:inline-block\"> {{ user?.displayName ?? user?.username }}</span>\n</a>\n<ul class=\"topbar-menu active-topbar-menu w-15rem z-5 ng-hidden border-round\">\n <li role=\"menuitem\">\n <a\n class=\"flex align-items-center transition-duration-200\"\n pStyleClass=\"@grandparent\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\">\n <i class=\"pi pi-fw pi-user text-base mr-2\"></i>\n <div>\n <strong>{{ user?.displayName ?? user?.username }}</strong>\n <small *ngIf=\"((userRoles$ | async)?.length ?? 0) > 0\">\n <br />\n {{ userRoles$ | mgnEnumerateAsync : undefined : undefined : undefined : 'roles' | async }}\n </small>\n </div>\n </a>\n </li>\n <li role=\"menuitem\" *ngIf=\"user?.logout || user?.logoutUrl\">\n <a\n [href]=\"user?.logoutUrl ?? hrefJsVoid\"\n (click)=\"logout(user, $event)\"\n class=\"flex align-items-center hover:text-primary-500 transition-duration-200\"\n pStyleClass=\"@grandparent\"\n enterClass=\"ng-hidden\"\n enterActiveClass=\"px-scalein\"\n leaveToClass=\"ng-hidden\"\n leaveActiveClass=\"px-fadeout\">\n <i class=\"pi pi-fw pi-sign-out text-base mr-2\"></i>\n <span>{{ 'mngTopbar.logout' | translate }}</span>\n </a>\n </li>\n</ul>\n" }]
|
|
17443
17443
|
}] });
|
|
17444
17444
|
|
|
17445
|
-
class
|
|
17445
|
+
class MngTopbarV2Component {
|
|
17446
17446
|
constructor() {
|
|
17447
17447
|
this.el = inject(ElementRef);
|
|
17448
17448
|
this.mngCommons = inject(MngCommonsService);
|
|
17449
17449
|
this.mainLayoutService = inject(MngMainLayoutComponentV2Service);
|
|
17450
17450
|
this.config = inject(MNG_MODULE_CONFIG_IT);
|
|
17451
|
-
this.breadcrumbComponent =
|
|
17452
|
-
this.topbarUserComponent =
|
|
17451
|
+
this.breadcrumbComponent = MngBreadcrumbV2Component;
|
|
17452
|
+
this.topbarUserComponent = MngTopbarUserV2Component;
|
|
17453
17453
|
this.languages = ['en'];
|
|
17454
17454
|
this.selectedLanguage = 'en';
|
|
17455
17455
|
}
|
|
@@ -17469,19 +17469,19 @@ class MngTopbarComponent {
|
|
|
17469
17469
|
switchLanguage(language) {
|
|
17470
17470
|
this.mngCommons.appLanguage = language;
|
|
17471
17471
|
}
|
|
17472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type:
|
|
17472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17473
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.6", type: MngTopbarV2Component, isStandalone: true, selector: "mng-topbar-v2", viewQueries: [{ propertyName: "menuButton", first: true, predicate: ["menubutton"], descendants: true }, { propertyName: "topbarInjectionRef", first: true, predicate: ["userMenuItem"], descendants: true }, { propertyName: "appSidebar", first: true, predicate: MngSidebarV2Component, descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\n <div class=\"topbar-start\">\n <button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\n <i class=\"pi pi-bars\"></i>\n </button>\n\n <div class=\"topbar-breadcrumb\">\n <div [mngComponent]=\"breadcrumbComponent\" [attachToHost]=\"true\"></div>\n </div>\n </div>\n <div class=\"layout-topbar-menu-section\">\n <mng-sidebar-v2></mng-sidebar-v2>\n </div>\n <div class=\"topbar-end\">\n <ul class=\"topbar-menu\">\n <li *ngIf=\"languages.length > 1\" class=\"profile-item\">\n <i class=\"pi pi-fw pi-globe\"></i>\n <p-dropdown [ngModel]=\"selectedLanguage\" [options]=\"languages\" (onChange)=\"switchLanguage($event.value)\"></p-dropdown>\n </li>\n <li #userMenuItem class=\"profile-item topbar-item mr-3\" [mngComponent]=\"topbarUserComponent\" [attachToHost]=\"true\"></li>\n </ul>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: MngSidebarV2Component, selector: "mng-sidebar-v2" }, { kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: StyleClassModule }, { kind: "ngmodule", type: RippleModule }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i3$1.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs", "attachToHost"], outputs: ["instanceCreated"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17474
17474
|
}
|
|
17475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type:
|
|
17475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngTopbarV2Component, decorators: [{
|
|
17476
17476
|
type: Component,
|
|
17477
17477
|
args: [{ standalone: true, selector: 'mng-topbar-v2', imports: [
|
|
17478
|
-
|
|
17478
|
+
MngSidebarV2Component,
|
|
17479
17479
|
NgClass,
|
|
17480
17480
|
ButtonModule,
|
|
17481
17481
|
InputTextModule,
|
|
17482
17482
|
StyleClassModule,
|
|
17483
17483
|
RippleModule,
|
|
17484
|
-
|
|
17484
|
+
MngBreadcrumbV2Component,
|
|
17485
17485
|
AsyncPipe,
|
|
17486
17486
|
DropdownModule,
|
|
17487
17487
|
NgIf,
|
|
@@ -17496,7 +17496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImpor
|
|
|
17496
17496
|
args: ['userMenuItem']
|
|
17497
17497
|
}], appSidebar: [{
|
|
17498
17498
|
type: ViewChild,
|
|
17499
|
-
args: [
|
|
17499
|
+
args: [MngSidebarV2Component]
|
|
17500
17500
|
}] } });
|
|
17501
17501
|
|
|
17502
17502
|
class MngMainLayoutV2Component {
|
|
@@ -17505,9 +17505,9 @@ class MngMainLayoutV2Component {
|
|
|
17505
17505
|
this.layoutService = inject(MngMainLayoutComponentV2Service);
|
|
17506
17506
|
this.menuService = inject(MenuService);
|
|
17507
17507
|
this.renderer = inject(Renderer2);
|
|
17508
|
-
this.topbarComponent =
|
|
17509
|
-
this.breadcrumbsComponent =
|
|
17510
|
-
this.footerComponent =
|
|
17508
|
+
this.topbarComponent = MngTopbarV2Component;
|
|
17509
|
+
this.breadcrumbsComponent = MngBreadcrumbV2Component;
|
|
17510
|
+
this.footerComponent = MngFooterV2Component;
|
|
17511
17511
|
this.layoutService.overlayOpen$.pipe(takeUntilDestroyed()).subscribe(() => {
|
|
17512
17512
|
if (!this.menuOutsideClickListener) {
|
|
17513
17513
|
this.menuOutsideClickListener = this.renderer.listen('document', 'click', event => {
|
|
@@ -17570,7 +17570,7 @@ class MngMainLayoutV2Component {
|
|
|
17570
17570
|
}
|
|
17571
17571
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: MngMainLayoutV2Component, decorators: [{
|
|
17572
17572
|
type: Component,
|
|
17573
|
-
args: [{ standalone: true, selector: 'mng-main-layout-v2', imports: [NgClass, RouterModule,
|
|
17573
|
+
args: [{ standalone: true, selector: 'mng-main-layout-v2', imports: [NgClass, RouterModule, MngTopbarV2Component, MngBreadcrumbV2Component, MngComponentDirective, NgIf, AsyncPipe], providers: [MngMainLayoutComponentV2Service], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"layout-container\"\n [ngClass]=\"{\n 'layout-light': config.app?.colorScheme === 'light',\n 'layout-dark': config.app?.colorScheme === 'dark',\n 'layout-overlay': config.menuV2?.mode === 'overlay',\n 'layout-static': config.menuV2?.mode === 'static',\n 'layout-reveal': config.menuV2?.mode === 'reveal',\n 'layout-drawer': config.menuV2?.mode === 'drawer',\n 'layout-static-inactive': (layoutService.state.staticMenuDesktopInactive$ | async) && config.menuV2?.mode === 'static',\n 'layout-overlay-active': layoutService.state.overlayMenuActive$ | async,\n 'layout-mobile-active': layoutService.state.staticMenuMobileActive$ | async,\n 'p-ripple-disabled': !config.menuV2?.ripple,\n 'layout-sidebar-active': layoutService.state.sidebarActive$ | async,\n 'layout-sidebar-anchored': layoutService.state.anchored$ | async\n }\">\n <div class=\"layout-content-wrapper\">\n <div #topbarCmp class=\"layout-topbar-wrapper\" [mngComponent]=\"topbarComponent\" [attachToHost]=\"true\"></div>\n <div class=\"content-breadcrumb\">\n <div [mngComponent]=\"breadcrumbsComponent\" [attachToHost]=\"true\"></div>\n </div>\n <div class=\"layout-content\">\n <router-outlet></router-outlet>\n </div>\n <div class=\"layout-mask\"></div>\n <div [mngComponent]=\"footerComponent\" [attachToHost]=\"true\"></div>\n </div>\n</div>\n" }]
|
|
17574
17574
|
}], ctorParameters: function () { return []; }, propDecorators: { appTopbar: [{
|
|
17575
17575
|
type: ViewChild,
|
|
17576
17576
|
args: ['topbarCmp']
|
|
@@ -18213,5 +18213,5 @@ function EnumName(typeName) {
|
|
|
18213
18213
|
* Generated bundle index. Do not edit.
|
|
18214
18214
|
*/
|
|
18215
18215
|
|
|
18216
|
-
export { ACTION_EDITOR_DIALOG_COMPONENT_SETTING, AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngApiService, AMngBaseApiService, AMngCrudApiService, AMngErrorBase, AMngFormlyCustomFieldComponent, AMngGetAllApiService, AMngTableviewRouteComponent, APermissions, ActionActivationTriggerEnum, ActionButtonDescriptor, ActionConfirmationDialogDescriptor, ActionContext, ActionContextValidation, ActionDataProviderUtil, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionEditorSubmitTypeEnum, ActionError, ActionInstance, ActionInstanceStateEnum, ActionLinkDescriptor, ActionParameters, ActionPositionEnum, ActionSimpleDescriptor, ActionTypeEnum, AuthorizationTypeEnum, AuthorizationUtil, ButtonStyleBuilder, ButtonStyleRoundedEnum, ColumnDescriptor, ColumnDisplayTypeEnum, ColumnDynamicDescriptor, ColumnTypeEnum, DataProvider, DateUtil, DefaultActionMngErrorMapperService, DynamicTableviewDataProvider, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, EnumeratePipeI18nHelper, ErrorUtil, ExportUtils, FieldActionDescriptor, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FileUtil, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum, I18nUtils, IdProperty, JsonPathPipe, LogLevelEnum, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_BROWSER_STORAGE_IT, MNG_COMMONS_INITIALIZER_IT, MNG_DATE_RANGE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MNG_LOG_PUBLISHERS, MNG_MODULE_CONFIG_IT, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionError, MngActionErrorMapperService, MngActionExecutorService, MngActionRouteComponent, MngAuthorizationService, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent
|
|
18216
|
+
export { ACTION_EDITOR_DIALOG_COMPONENT_SETTING, AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngApiService, AMngBaseApiService, AMngCrudApiService, AMngErrorBase, AMngFormlyCustomFieldComponent, AMngGetAllApiService, AMngTableviewRouteComponent, APermissions, ActionActivationTriggerEnum, ActionButtonDescriptor, ActionConfirmationDialogDescriptor, ActionContext, ActionContextValidation, ActionDataProviderUtil, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionEditorSubmitTypeEnum, ActionError, ActionInstance, ActionInstanceStateEnum, ActionLinkDescriptor, ActionParameters, ActionPositionEnum, ActionSimpleDescriptor, ActionTypeEnum, AuthorizationTypeEnum, AuthorizationUtil, ButtonStyleBuilder, ButtonStyleRoundedEnum, ColumnDescriptor, ColumnDisplayTypeEnum, ColumnDynamicDescriptor, ColumnTypeEnum, DataProvider, DateUtil, DefaultActionMngErrorMapperService, DynamicTableviewDataProvider, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, EnumeratePipeI18nHelper, ErrorUtil, ExportUtils, FieldActionDescriptor, FieldGroupDescriptor, FieldGroupTypeEnum, FieldInputDescriptor, FieldInputTypeEnum, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorDescriptor, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorDescriptor, FieldManyToManyEditorTypeEnum, FieldSizeEnum, FieldTabGroupDescriptor, FieldValidationDescriptor, FileUtil, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum, I18nUtils, IdProperty, JsonPathPipe, LogLevelEnum, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_BROWSER_STORAGE_IT, MNG_COMMONS_INITIALIZER_IT, MNG_DATE_RANGE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MNG_LOG_PUBLISHERS, MNG_MODULE_CONFIG_IT, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionError, MngActionErrorMapperService, MngActionExecutorService, MngActionRouteComponent, MngAuthorizationService, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngClassMapPipe, MngCommonsInitEventEnum, MngCommonsInitService, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDataLanguageDropdownComponent, MngDateRangeComponent, MngDialogKeydownHandlerDirective, MngDropdownComponent, MngEnumPipe, MngEnumerateAsyncPipe, MngEnumeratePipe, MngErrorHandler, MngErrorPageComponent, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormEvent, MngFormEventTypeEnum, MngFormFieldEvent, MngFormFieldEventComponentSubtype, MngFormFieldEventDialogSubtype, MngFormFieldEventTypeEnum, MngFormlyFieldActionComponent, MngFormlyFieldAutocompleteComponent, MngFormlyFieldCustomComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldLabelComponent, MngFormlyFieldLookupDialogComponent, MngFormlyFieldNoLabelWrapperComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngGetterPipe, MngHttpError, MngI18nPropertyPipe, MngInternalError, MngLocalStorageService, MngLocaleDefaultRowClassPipe, MngLogPublisherConsoleService, MngLoggerService, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngNotFoundPageComponent, MngParametrizePipe, MngRouterService, MngTableCellClickEvent, MngTableColumnFilterComponent, MngTableColumnFilterFullComponent, MngTableColumnValueComponent, MngTableComponent, MngTableLoadEvent, MngTableReloadEvent, MngTableviewComponent, MngTableviewRouteComponent, MngTemplateDirective, MngTemplatePipe, MngTopbarComponent, MngTopbarUserComponent, MngVersionComponent, MngVersionService, MngViewContainerComponentService, ModelDescriptor, ModelUtil, NotificationUtil, ObjectSerializer, ObjectUtil, Permissions, RouteBuilder, RoutesBuilder, StringUtil, StyleLevelEnum, StyleSizeEnum, StylesUtil, TableDataProvider, TableDescriptor, TableDynamicColumnsModeEnum, TableDynamicDescriptor, TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum, TableviewActionDefaultCategories, TableviewCrudDataProvider, TableviewDataProvider, TableviewDescriptor, TableviewDynamicDescriptor, TableviewEditorTypeEnum, TableviewRouteBuilder, TableviewRouteBuilderInternal, TitleProperty, TypeName, TypeUtil, booleanObsAttribute, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getEmailValidationMessage, getFormlyValidationMessages, getMaxDateValidationMessage, getMaxLengthValidationMessage, getMaxValidationMessage, getMinDateValidationMessage, getMinLengthValidationMessage, getMinValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngAuthorizationGuard, mngFormlyConfigProvider, primeNgModules, provideMngCommons, typeMapBase };
|
|
18217
18217
|
//# sourceMappingURL=mediusinc-mng-commons.mjs.map
|