@mediusinc/mng-commons 4.0.0 → 4.1.0-rc.0-4e19f910
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/form/autocomplete/autocomplete.component.mjs +5 -1
- package/esm2022/lib/components/layoutV2/footer.component.mjs +13 -3
- package/esm2022/lib/components/layoutV2/sidebar.component.mjs +3 -4
- package/esm2022/lib/models/layout-config.model.mjs +1 -1
- package/esm2022/lib/provide-commons.mjs +3 -2
- package/esm2022/lib/services/commons-init.service.mjs +4 -3
- package/esm2022/lib/services/internal/commons-init.provider.mjs +3 -3
- package/fesm2022/mediusinc-mng-commons.mjs +80 -68
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/layoutV2/footer.component.d.ts +5 -1
- package/lib/models/layout-config.model.d.ts +1 -0
- package/lib/services/commons-init.service.d.ts +3 -2
- package/lib/services/internal/commons-init.provider.d.ts +2 -1
- package/openapi/angular/config.yaml +23 -0
- package/package.json +2 -2
- package/scss/v2/layout/mng/_mng_layout_footer.scss +6 -0
- package/scss/v2/layout/mng/_mng_layout_topbar.scss +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i2$1 from '@angular/common';
|
|
2
2
|
import { DatePipe, AsyncPipe, NgClass, DecimalPipe, CurrencyPipe, NgStyle, NgTemplateOutlet, JsonPipe, NgOptimizedImage } from '@angular/common';
|
|
3
|
+
import * as i1$1 from '@angular/common/http';
|
|
4
|
+
import { HttpErrorResponse, HttpClient, HttpBackend, HttpParams } from '@angular/common/http';
|
|
3
5
|
import * as i0 from '@angular/core';
|
|
4
6
|
import { booleanAttribute, numberAttribute, Pipe, InjectionToken, inject, Injectable, Injector, ElementRef, ApplicationRef, ViewContainerRef, EventEmitter, createComponent, Directive, Input, Output, TemplateRef, Component, ChangeDetectionStrategy, Optional, HostBinding, ViewChild, ContentChildren, forwardRef, DestroyRef, signal, effect, HostListener, Renderer2, ChangeDetectorRef, computed, ViewEncapsulation, ViewChildren, LOCALE_ID, Inject, APP_INITIALIZER, ErrorHandler, runInInjectionContext } from '@angular/core';
|
|
5
7
|
import * as i2$2 from '@ngx-formly/core';
|
|
@@ -21,11 +23,9 @@ import * as i9 from 'primeng/splitbutton';
|
|
|
21
23
|
import { SplitButtonModule } from 'primeng/splitbutton';
|
|
22
24
|
import * as i4$1 from 'primeng/tooltip';
|
|
23
25
|
import { TooltipModule } from 'primeng/tooltip';
|
|
24
|
-
import { isObservable, of, throwError, Subject,
|
|
26
|
+
import { isObservable, of, throwError, Subject, mergeMap as mergeMap$1, combineLatest, tap, BehaviorSubject, ReplaySubject, distinctUntilChanged, take, switchMap, from, timeout, Observable, debounceTime, merge } from 'rxjs';
|
|
25
27
|
import { map, mergeMap, catchError, filter, first, startWith, take as take$1 } from 'rxjs/operators';
|
|
26
28
|
import 'reflect-metadata';
|
|
27
|
-
import * as i1$1 from '@angular/common/http';
|
|
28
|
-
import { HttpErrorResponse, HttpClient, HttpParams } from '@angular/common/http';
|
|
29
29
|
import * as i1$2 from '@angular/forms';
|
|
30
30
|
import { Validators, FormGroup, FormArray, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl, FormsModule } from '@angular/forms';
|
|
31
31
|
import { Title, DomSanitizer } from '@angular/platform-browser';
|
|
@@ -51,7 +51,7 @@ import * as i4$4 from 'primeng/skeleton';
|
|
|
51
51
|
import { SkeletonModule } from 'primeng/skeleton';
|
|
52
52
|
import * as i1$5 from 'primeng/table';
|
|
53
53
|
import { Table, TableModule } from 'primeng/table';
|
|
54
|
-
import {
|
|
54
|
+
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
55
55
|
import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
|
|
56
56
|
import { FilterIcon } from 'primeng/icons/filter';
|
|
57
57
|
import { FilterSlashIcon } from 'primeng/icons/filterslash';
|
|
@@ -6880,7 +6880,6 @@ class MngLogPublisherConsoleService {
|
|
|
6880
6880
|
|
|
6881
6881
|
class MngCommonsInitService {
|
|
6882
6882
|
constructor() {
|
|
6883
|
-
this.httpClient = inject(HttpClient);
|
|
6884
6883
|
this.logger = inject(MngLoggerService);
|
|
6885
6884
|
this.logPublishers = inject(MNG_LOG_PUBLISHERS, { optional: true });
|
|
6886
6885
|
this.config = inject(MngConfigurationService);
|
|
@@ -6898,7 +6897,7 @@ class MngCommonsInitService {
|
|
|
6898
6897
|
get isInitialized$() {
|
|
6899
6898
|
return this.isInitializedSubject.asObservable().pipe(take(1));
|
|
6900
6899
|
}
|
|
6901
|
-
initialize() {
|
|
6900
|
+
initialize(handler) {
|
|
6902
6901
|
if (this.isInitialized) {
|
|
6903
6902
|
return of(void 0);
|
|
6904
6903
|
}
|
|
@@ -6907,6 +6906,8 @@ class MngCommonsInitService {
|
|
|
6907
6906
|
const ctxLogger = this.logger.create('MngCommonsInitService');
|
|
6908
6907
|
ctxLogger.debug('Commons initialization is starting');
|
|
6909
6908
|
this.commonsInitServiceEvents.next(MngCommonsInitEventEnum.CommonsInitStart);
|
|
6909
|
+
// init http client
|
|
6910
|
+
this.httpClient = new HttpClient(handler);
|
|
6910
6911
|
// init router
|
|
6911
6912
|
this.mngRouter.initialize();
|
|
6912
6913
|
// init configurations with settings from module config
|
|
@@ -12018,6 +12019,10 @@ class MngAutocompleteComponent {
|
|
|
12018
12019
|
*/
|
|
12019
12020
|
onSelect(event) {
|
|
12020
12021
|
this.setValue(event.value, true);
|
|
12022
|
+
this.isFocused = false;
|
|
12023
|
+
if (this.openOnFocus) {
|
|
12024
|
+
this.primeAutocomplete?.hide();
|
|
12025
|
+
}
|
|
12021
12026
|
}
|
|
12022
12027
|
/**
|
|
12023
12028
|
* Selects and sets new value
|
|
@@ -14489,8 +14494,8 @@ class MngErrorHandler {
|
|
|
14489
14494
|
}
|
|
14490
14495
|
}
|
|
14491
14496
|
|
|
14492
|
-
function mngCommonsInitializerProvider(mngCommonsInit) {
|
|
14493
|
-
return () => mngCommonsInit.initialize();
|
|
14497
|
+
function mngCommonsInitializerProvider(handler, mngCommonsInit) {
|
|
14498
|
+
return () => mngCommonsInit.initialize(handler);
|
|
14494
14499
|
}
|
|
14495
14500
|
|
|
14496
14501
|
class MngFormlyFieldAutocompleteComponent extends FieldType {
|
|
@@ -15827,7 +15832,7 @@ function provideMngCommons(config) {
|
|
|
15827
15832
|
{
|
|
15828
15833
|
provide: APP_INITIALIZER,
|
|
15829
15834
|
useFactory: mngCommonsInitializerProvider,
|
|
15830
|
-
deps: [MngCommonsInitService],
|
|
15835
|
+
deps: [HttpBackend, MngCommonsInitService],
|
|
15831
15836
|
multi: true
|
|
15832
15837
|
},
|
|
15833
15838
|
{
|
|
@@ -16841,17 +16846,79 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
16841
16846
|
args: [{ standalone: true, selector: 'mng-breadcrumb-v2', imports: [NgClass, InputTextModule, ButtonModule, AsyncPipe, 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 @for (item of mappedBreadcrumbs$ | async; track item; let last = $last) {\n <li>{{ item.label! | translate }}</li>\n @if (!last) {\n <li class=\"layout-breadcrumb-chevron\">/</li>\n }\n }\n </ol>\n </nav>\n</div>\n" }]
|
|
16842
16847
|
}] });
|
|
16843
16848
|
|
|
16849
|
+
class MngVersionV2Component {
|
|
16850
|
+
constructor(jsonPathPipe, versionService) {
|
|
16851
|
+
this.jsonPathPipe = jsonPathPipe;
|
|
16852
|
+
this.versionService = versionService;
|
|
16853
|
+
this.loadingSubject = new BehaviorSubject(false);
|
|
16854
|
+
this.loading$ = this.loadingSubject.asObservable();
|
|
16855
|
+
}
|
|
16856
|
+
ngOnInit() {
|
|
16857
|
+
if (Array.isArray(this.initVersion)) {
|
|
16858
|
+
this.versions = this.initVersion;
|
|
16859
|
+
}
|
|
16860
|
+
else if (typeof this.initVersion === 'string') {
|
|
16861
|
+
this.displayVersion = this.initVersion;
|
|
16862
|
+
}
|
|
16863
|
+
else if (typeof this.initVersion !== 'undefined') {
|
|
16864
|
+
if (this.initVersion['info'] || this.initVersion['urlPath']) {
|
|
16865
|
+
const config = this.initVersion;
|
|
16866
|
+
this.displayName = config.displayName;
|
|
16867
|
+
if (config.urlPath) {
|
|
16868
|
+
this.loadingSubject.next(true);
|
|
16869
|
+
this.versionService
|
|
16870
|
+
.loadVersion(config.urlPath, config.urlBaseConfigKey)
|
|
16871
|
+
.pipe(take(1))
|
|
16872
|
+
.subscribe({
|
|
16873
|
+
next: res => {
|
|
16874
|
+
this.displayVersion = this.jsonPathPipe.transform(res, config.infoJsonPath ?? '$');
|
|
16875
|
+
this.loadingSubject.next(false);
|
|
16876
|
+
},
|
|
16877
|
+
error: () => {
|
|
16878
|
+
this.displayVersion = '';
|
|
16879
|
+
this.loadingSubject.next(false);
|
|
16880
|
+
}
|
|
16881
|
+
});
|
|
16882
|
+
}
|
|
16883
|
+
else {
|
|
16884
|
+
this.displayVersion = this.jsonPathPipe.transform(config.info, config.infoJsonPath ?? '$.raw');
|
|
16885
|
+
}
|
|
16886
|
+
}
|
|
16887
|
+
else {
|
|
16888
|
+
const info = this.initVersion;
|
|
16889
|
+
this.displayVersion = this.jsonPathPipe.transform(info, '$.raw');
|
|
16890
|
+
}
|
|
16891
|
+
}
|
|
16892
|
+
}
|
|
16893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngVersionV2Component, deps: [{ token: JsonPathPipe }, { token: MngVersionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16894
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", type: MngVersionV2Component, isStandalone: true, selector: "mng-version-v2", inputs: { initVersion: ["version", "initVersion"] }, ngImport: i0, template: "@if (versions) {\n @for (v of versions; track v; let last = $last) {\n <mng-version-v2 [version]=\"v\"></mng-version-v2>\n @if (!last) {\n <br/>\n }\n }\n} @else {\n @if(displayName) {\n {{ displayName }}:\n }\n @if ((loading$ | async) === false) {\n {{ displayVersion }}\n }\n}\n", dependencies: [{ kind: "component", type: MngVersionV2Component, selector: "mng-version-v2", inputs: ["version"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16895
|
+
}
|
|
16896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngVersionV2Component, decorators: [{
|
|
16897
|
+
type: Component,
|
|
16898
|
+
args: [{ standalone: true, selector: 'mng-version-v2', imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (versions) {\n @for (v of versions; track v; let last = $last) {\n <mng-version-v2 [version]=\"v\"></mng-version-v2>\n @if (!last) {\n <br/>\n }\n }\n} @else {\n @if(displayName) {\n {{ displayName }}:\n }\n @if ((loading$ | async) === false) {\n {{ displayVersion }}\n }\n}\n" }]
|
|
16899
|
+
}], ctorParameters: () => [{ type: JsonPathPipe }, { type: MngVersionService }], propDecorators: { initVersion: [{
|
|
16900
|
+
type: Input,
|
|
16901
|
+
args: ['version']
|
|
16902
|
+
}] } });
|
|
16903
|
+
|
|
16844
16904
|
class MngFooterV2Component {
|
|
16845
16905
|
constructor() {
|
|
16906
|
+
this.config = inject(MNG_MODULE_CONFIG_IT);
|
|
16846
16907
|
this.mngCommons = inject(MngCommonsService);
|
|
16847
16908
|
this.currentYear = new Date().getFullYear();
|
|
16909
|
+
this.versionComponent = MngVersionV2Component;
|
|
16910
|
+
}
|
|
16911
|
+
ngOnInit() {
|
|
16912
|
+
if (this.config.layoutV2?.components?.version !== undefined) {
|
|
16913
|
+
this.versionComponent = this.config.layoutV2?.components?.version;
|
|
16914
|
+
}
|
|
16848
16915
|
}
|
|
16849
16916
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngFooterV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16850
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
16917
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", 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 <div class=\"flex flex-column\">\n <div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n </div>\n @if (versionComponent) {\n <div class=\"version\" [mngComponent]=\"versionComponent\" [inputs]=\"{version: mngCommons.appVersion}\" [attachToHost]=\"true\"></div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "directive", type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs", "attachToHost", "nodeInjector"], outputs: ["instanceCreated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16851
16918
|
}
|
|
16852
16919
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngFooterV2Component, decorators: [{
|
|
16853
16920
|
type: Component,
|
|
16854
|
-
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" }]
|
|
16921
|
+
args: [{ standalone: true, selector: 'mng-footer-v2', imports: [TranslateModule, NgOptimizedImage, MngVersionV2Component, MngComponentDirective], 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 <div class=\"flex flex-column\">\n <div>\n <span class=\"copyright\">© {{ mngCommons.appOwner | translate }} - {{ currentYear }}</span>\n </div>\n @if (versionComponent) {\n <div class=\"version\" [mngComponent]=\"versionComponent\" [inputs]=\"{version: mngCommons.appVersion}\" [attachToHost]=\"true\"></div>\n }\n </div>\n</div>\n" }]
|
|
16855
16922
|
}] });
|
|
16856
16923
|
|
|
16857
16924
|
class MngMainLayoutComponentV2Service {
|
|
@@ -17328,61 +17395,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImpor
|
|
|
17328
17395
|
args: [{ standalone: true, selector: 'mng-menu-v2', imports: [MngMenuItemV2Component], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ul class=\"layout-menu\">\n @for (item of menuItems; track item) {\n @if (!item.separator) {\n <li mng-menuitem-v2 [item]=\"item\" [root]=\"true\"></li>\n }\n @if (item.separator) {\n <li class=\"menu-separator\"></li>\n }\n }\n</ul>\n" }]
|
|
17329
17396
|
}] });
|
|
17330
17397
|
|
|
17331
|
-
class MngVersionV2Component {
|
|
17332
|
-
constructor(jsonPathPipe, versionService) {
|
|
17333
|
-
this.jsonPathPipe = jsonPathPipe;
|
|
17334
|
-
this.versionService = versionService;
|
|
17335
|
-
this.loadingSubject = new BehaviorSubject(false);
|
|
17336
|
-
this.loading$ = this.loadingSubject.asObservable();
|
|
17337
|
-
}
|
|
17338
|
-
ngOnInit() {
|
|
17339
|
-
if (Array.isArray(this.initVersion)) {
|
|
17340
|
-
this.versions = this.initVersion;
|
|
17341
|
-
}
|
|
17342
|
-
else if (typeof this.initVersion === 'string') {
|
|
17343
|
-
this.displayVersion = this.initVersion;
|
|
17344
|
-
}
|
|
17345
|
-
else if (typeof this.initVersion !== 'undefined') {
|
|
17346
|
-
if (this.initVersion['info'] || this.initVersion['urlPath']) {
|
|
17347
|
-
const config = this.initVersion;
|
|
17348
|
-
this.displayName = config.displayName;
|
|
17349
|
-
if (config.urlPath) {
|
|
17350
|
-
this.loadingSubject.next(true);
|
|
17351
|
-
this.versionService
|
|
17352
|
-
.loadVersion(config.urlPath, config.urlBaseConfigKey)
|
|
17353
|
-
.pipe(take(1))
|
|
17354
|
-
.subscribe({
|
|
17355
|
-
next: res => {
|
|
17356
|
-
this.displayVersion = this.jsonPathPipe.transform(res, config.infoJsonPath ?? '$');
|
|
17357
|
-
this.loadingSubject.next(false);
|
|
17358
|
-
},
|
|
17359
|
-
error: () => {
|
|
17360
|
-
this.displayVersion = '';
|
|
17361
|
-
this.loadingSubject.next(false);
|
|
17362
|
-
}
|
|
17363
|
-
});
|
|
17364
|
-
}
|
|
17365
|
-
else {
|
|
17366
|
-
this.displayVersion = this.jsonPathPipe.transform(config.info, config.infoJsonPath ?? '$.raw');
|
|
17367
|
-
}
|
|
17368
|
-
}
|
|
17369
|
-
else {
|
|
17370
|
-
const info = this.initVersion;
|
|
17371
|
-
this.displayVersion = this.jsonPathPipe.transform(info, '$.raw');
|
|
17372
|
-
}
|
|
17373
|
-
}
|
|
17374
|
-
}
|
|
17375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngVersionV2Component, deps: [{ token: JsonPathPipe }, { token: MngVersionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", type: MngVersionV2Component, isStandalone: true, selector: "mng-version-v2", inputs: { initVersion: ["version", "initVersion"] }, ngImport: i0, template: "@if (versions) {\n @for (v of versions; track v; let last = $last) {\n <mng-version-v2 [version]=\"v\"></mng-version-v2>\n @if (!last) {\n <br/>\n }\n }\n} @else {\n @if(displayName) {\n {{ displayName }}:\n }\n @if ((loading$ | async) === false) {\n {{ displayVersion }}\n }\n}\n", dependencies: [{ kind: "component", type: MngVersionV2Component, selector: "mng-version-v2", inputs: ["version"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17377
|
-
}
|
|
17378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngVersionV2Component, decorators: [{
|
|
17379
|
-
type: Component,
|
|
17380
|
-
args: [{ standalone: true, selector: 'mng-version-v2', imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (versions) {\n @for (v of versions; track v; let last = $last) {\n <mng-version-v2 [version]=\"v\"></mng-version-v2>\n @if (!last) {\n <br/>\n }\n }\n} @else {\n @if(displayName) {\n {{ displayName }}:\n }\n @if ((loading$ | async) === false) {\n {{ displayVersion }}\n }\n}\n" }]
|
|
17381
|
-
}], ctorParameters: () => [{ type: JsonPathPipe }, { type: MngVersionService }], propDecorators: { initVersion: [{
|
|
17382
|
-
type: Input,
|
|
17383
|
-
args: ['version']
|
|
17384
|
-
}] } });
|
|
17385
|
-
|
|
17386
17398
|
class MngSidebarV2Component {
|
|
17387
17399
|
constructor() {
|
|
17388
17400
|
this.config = inject(MNG_MODULE_CONFIG_IT);
|
|
@@ -17426,11 +17438,11 @@ class MngSidebarV2Component {
|
|
|
17426
17438
|
}));
|
|
17427
17439
|
}
|
|
17428
17440
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngSidebarV2Component, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17429
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", 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 @if (menuComponent) {\n <div #menuContainer class=\"layout-menu-container\">\n <div [mngComponent]=\"menuComponent\" [attachToHost]=\"true\"></div>\n </div>\n }\n
|
|
17441
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", 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 @if (menuComponent) {\n <div #menuContainer class=\"layout-menu-container\">\n <div [mngComponent]=\"menuComponent\" [attachToHost]=\"true\"></div>\n </div>\n }\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: "directive", type: MngComponentDirective, selector: "[mngComponent]", inputs: ["mngComponent", "inputs", "attachToHost", "nodeInjector"], outputs: ["instanceCreated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17430
17442
|
}
|
|
17431
17443
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: MngSidebarV2Component, decorators: [{
|
|
17432
17444
|
type: Component,
|
|
17433
|
-
args: [{ standalone: true, selector: 'mng-sidebar-v2', imports: [RouterModule, MngMenuV2Component,
|
|
17445
|
+
args: [{ standalone: true, selector: 'mng-sidebar-v2', imports: [RouterModule, MngMenuV2Component, 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 @if (menuComponent) {\n <div #menuContainer class=\"layout-menu-container\">\n <div [mngComponent]=\"menuComponent\" [attachToHost]=\"true\"></div>\n </div>\n }\n</div>\n" }]
|
|
17434
17446
|
}], propDecorators: { menuContainer: [{
|
|
17435
17447
|
type: ViewChild,
|
|
17436
17448
|
args: ['menuContainer']
|