ets-fe-ng-sdk 20.3.36 → 20.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ets-fe-ng-sdk.mjs +22 -7
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/index.d.ts +4 -3
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import * as i1$1 from '@angular/common';
|
|
|
11
11
|
import { Location, CurrencyPipe, TitleCasePipe, DatePipe, DecimalPipe, CommonModule, NgClass, JsonPipe, AsyncPipe, UpperCasePipe, NgTemplateOutlet, NgStyle } from '@angular/common';
|
|
12
12
|
import { map, tap, catchError, retry, filter as filter$1, debounceTime as debounceTime$1, switchMap as switchMap$1, startWith as startWith$1, first as first$1, timeout } from 'rxjs/operators';
|
|
13
13
|
import { ToastNotificationsService } from '@serene-dev/toast-notifications';
|
|
14
|
+
import * as i2$6 from '@angular/common/http';
|
|
14
15
|
import { HttpClient, HttpHeaders, HttpRequest, HttpResponse, HttpErrorResponse } from '@angular/common/http';
|
|
15
16
|
import * as i1$3 from '@angular/material/dialog';
|
|
16
17
|
import { MatDialog, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
@@ -25304,21 +25305,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
25304
25305
|
}], ctorParameters: () => [{ type: ETSStorageService }] });
|
|
25305
25306
|
|
|
25306
25307
|
class VersionComponent {
|
|
25307
|
-
constructor(vS) {
|
|
25308
|
+
constructor(vS, http) {
|
|
25308
25309
|
this.vS = vS;
|
|
25310
|
+
this.http = http;
|
|
25309
25311
|
this.env = environment;
|
|
25310
|
-
this.props = [];
|
|
25312
|
+
this.props = signal([], ...(ngDevMode ? [{ debugName: "props" }] : []));
|
|
25311
25313
|
}
|
|
25312
25314
|
ngOnInit() {
|
|
25313
|
-
this.props.
|
|
25315
|
+
this.props.set([
|
|
25316
|
+
{ label: 'App Name', value: this.env.appName },
|
|
25317
|
+
{ label: 'Environment Name', value: this.env.name },
|
|
25318
|
+
{ label: 'Current Version', value: this.vS.currentVersion },
|
|
25319
|
+
]);
|
|
25320
|
+
this.http.get('/ngsw.json').subscribe({
|
|
25321
|
+
next: (config) => {
|
|
25322
|
+
if (config?.timestamp) {
|
|
25323
|
+
const dateStr = new Date(config.timestamp).toLocaleString();
|
|
25324
|
+
this.props.update(p => [...p, { label: 'Rendered SW Timestamp', value: dateStr }]);
|
|
25325
|
+
}
|
|
25326
|
+
},
|
|
25327
|
+
error: () => console.warn('PWA service worker config (ngsw.json) not found or not active.')
|
|
25328
|
+
});
|
|
25314
25329
|
}
|
|
25315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: VersionComponent, deps: [{ token: VersionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25316
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: VersionComponent, isStandalone: true, selector: "version", ngImport: i0, template: "<div class=\"center vh-100\">\n @for (item of props; track item) {\n <text-case-2 [value]=\"item.value\" [label]=\"item.label\" [formatter]=\"item.formatter\" ></text-case-2>\n }\n\n</div>", styles: [""], dependencies: [{ kind: "component", type: TextCase2Component, selector: "text-case-2", inputs: ["action", "name", "data", "coloredLbl", "coloredVal", "centered", "customValueTemplate", "formatter", "hint", "label", "light", "mini", "route", "routeFunc", "editable", "stacked", "type", "value", "wrapLabel", "isEmail", "isPhone"] }] }); }
|
|
25330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: VersionComponent, deps: [{ token: VersionService }, { token: i2$6.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.2", type: VersionComponent, isStandalone: true, selector: "version", ngImport: i0, template: "<div class=\"center vh-100\">\n @for (item of props(); track item) {\n <text-case-2 [value]=\"item.value\" [label]=\"item.label\" [formatter]=\"item.formatter\" ></text-case-2>\n }\n\n</div>", styles: [""], dependencies: [{ kind: "component", type: TextCase2Component, selector: "text-case-2", inputs: ["action", "name", "data", "coloredLbl", "coloredVal", "centered", "customValueTemplate", "formatter", "hint", "label", "light", "mini", "route", "routeFunc", "editable", "stacked", "type", "value", "wrapLabel", "isEmail", "isPhone"] }] }); }
|
|
25317
25332
|
}
|
|
25318
25333
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: VersionComponent, decorators: [{
|
|
25319
25334
|
type: Component,
|
|
25320
|
-
args: [{ selector: 'version', imports: [TextCase2Component], template: "<div class=\"center vh-100\">\n @for (item of props; track item) {\n <text-case-2 [value]=\"item.value\" [label]=\"item.label\" [formatter]=\"item.formatter\" ></text-case-2>\n }\n\n</div>" }]
|
|
25321
|
-
}], ctorParameters: () => [{ type: VersionService }] });
|
|
25335
|
+
args: [{ selector: 'version', imports: [TextCase2Component], template: "<div class=\"center vh-100\">\n @for (item of props(); track item) {\n <text-case-2 [value]=\"item.value\" [label]=\"item.label\" [formatter]=\"item.formatter\" ></text-case-2>\n }\n\n</div>" }]
|
|
25336
|
+
}], ctorParameters: () => [{ type: VersionService }, { type: i2$6.HttpClient }] });
|
|
25322
25337
|
|
|
25323
25338
|
const routes$2 = [{ path: '', component: VersionComponent }];
|
|
25324
25339
|
class VersionRoutingModule {
|