ets-fe-ng-sdk 20.3.36 → 20.3.38
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 +30 -7
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/index.d.ts +6 -5
- 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';
|
|
@@ -18136,6 +18137,14 @@ class DayHourMinInputComponent extends InputBasicComponent {
|
|
|
18136
18137
|
this.sub3 = this.subForm?.valueChanges.subscribe((r) => {
|
|
18137
18138
|
if (this.debug())
|
|
18138
18139
|
debugger;
|
|
18140
|
+
if (r?.days < 0 || r?.hours < 0 || r?.mins < 0) {
|
|
18141
|
+
this.subForm.patchValue({
|
|
18142
|
+
days: r?.days < 0 ? Math.abs(r.days) : r?.days,
|
|
18143
|
+
hours: r?.hours < 0 ? Math.abs(r.hours) : r?.hours,
|
|
18144
|
+
mins: r?.mins < 0 ? Math.abs(r.mins) : r?.mins
|
|
18145
|
+
});
|
|
18146
|
+
return;
|
|
18147
|
+
}
|
|
18139
18148
|
if (this.control()?.pristine)
|
|
18140
18149
|
this.control()?.markAsDirty();
|
|
18141
18150
|
if (!this.control()?.disabled) {
|
|
@@ -25304,21 +25313,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
25304
25313
|
}], ctorParameters: () => [{ type: ETSStorageService }] });
|
|
25305
25314
|
|
|
25306
25315
|
class VersionComponent {
|
|
25307
|
-
constructor(vS) {
|
|
25316
|
+
constructor(vS, http) {
|
|
25308
25317
|
this.vS = vS;
|
|
25318
|
+
this.http = http;
|
|
25309
25319
|
this.env = environment;
|
|
25310
|
-
this.props = [];
|
|
25320
|
+
this.props = signal([], ...(ngDevMode ? [{ debugName: "props" }] : []));
|
|
25311
25321
|
}
|
|
25312
25322
|
ngOnInit() {
|
|
25313
|
-
this.props.
|
|
25323
|
+
this.props.set([
|
|
25324
|
+
{ label: 'App Name', value: this.env.appName },
|
|
25325
|
+
{ label: 'Environment Name', value: this.env.name },
|
|
25326
|
+
{ label: 'Current Version', value: this.vS.currentVersion },
|
|
25327
|
+
]);
|
|
25328
|
+
this.http.get('/ngsw.json').subscribe({
|
|
25329
|
+
next: (config) => {
|
|
25330
|
+
if (config?.timestamp) {
|
|
25331
|
+
const dateStr = new Date(config.timestamp).toLocaleString();
|
|
25332
|
+
this.props.update(p => [...p, { label: 'Rendered SW Timestamp', value: dateStr }]);
|
|
25333
|
+
}
|
|
25334
|
+
},
|
|
25335
|
+
error: () => console.warn('PWA service worker config (ngsw.json) not found or not active.')
|
|
25336
|
+
});
|
|
25314
25337
|
}
|
|
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"] }] }); }
|
|
25338
|
+
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 }); }
|
|
25339
|
+
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
25340
|
}
|
|
25318
25341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: VersionComponent, decorators: [{
|
|
25319
25342
|
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 }] });
|
|
25343
|
+
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>" }]
|
|
25344
|
+
}], ctorParameters: () => [{ type: VersionService }, { type: i2$6.HttpClient }] });
|
|
25322
25345
|
|
|
25323
25346
|
const routes$2 = [{ path: '', component: VersionComponent }];
|
|
25324
25347
|
class VersionRoutingModule {
|