ets-fe-ng-sdk 19.0.91 → 19.0.93
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/README.md +4 -2
- package/fesm2022/ets-fe-ng-sdk.mjs +115 -78
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Services/number-format.service.d.ts +10 -0
- package/lib/Services/utility.service.d.ts +37 -19
- package/lib/Shared/components/btn/btn.component.d.ts +1 -1
- package/lib/Shared/components/index-comp-layout/index-comp-layout.component.d.ts +1 -1
- package/lib/Shared/components/info-dialog/info-dialog.component.d.ts +1 -1
- package/lib/Shared/directives/index.directive.d.ts +1 -1
- package/lib/Shared/directives/input-formatter.directive.d.ts +13 -24
- package/lib/Shared/pipes/number.pipe.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ETS Frontend Angular SDK
|
|
2
2
|
|
|
3
|
-
This library was generated for use in Angular ETS projects
|
|
3
|
+
This library was generated for use in Angular ETS projects. It provides a collection of reusable components, services, directives, and utilities to streamline development across ETS Angular applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
4
6
|
|
|
5
7
|
# New Features
|
|
6
8
|
|
|
@@ -3191,6 +3191,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
3191
3191
|
}]
|
|
3192
3192
|
}], ctorParameters: () => [] });
|
|
3193
3193
|
|
|
3194
|
+
class NumberFormatService {
|
|
3195
|
+
constructor() {
|
|
3196
|
+
this.numberFormat = signal('AM');
|
|
3197
|
+
this.isNormal = computed(() => this.numberFormat() != 'EU');
|
|
3198
|
+
this.locale = computed(() => (this.isNormal() ? 'en-US' : 'fr-FR'));
|
|
3199
|
+
this.decimal = computed(() => (this.isNormal() ? '.' : ','));
|
|
3200
|
+
this.numberFormat.set('EU');
|
|
3201
|
+
}
|
|
3202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: NumberFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3203
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: NumberFormatService, providedIn: 'root' }); }
|
|
3204
|
+
}
|
|
3205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: NumberFormatService, decorators: [{
|
|
3206
|
+
type: Injectable,
|
|
3207
|
+
args: [{
|
|
3208
|
+
providedIn: 'root',
|
|
3209
|
+
}]
|
|
3210
|
+
}], ctorParameters: () => [] });
|
|
3211
|
+
|
|
3194
3212
|
class UtilityService {
|
|
3195
3213
|
constructor() {
|
|
3196
3214
|
this.dialog = inject(MatDialog);
|
|
@@ -3207,6 +3225,7 @@ class UtilityService {
|
|
|
3207
3225
|
this.pageS = inject(PageService);
|
|
3208
3226
|
this.responsive = inject(BreakpointObserver);
|
|
3209
3227
|
this.datePipe = inject(DatePipe);
|
|
3228
|
+
this.numberFormatService = inject(NumberFormatService);
|
|
3210
3229
|
this.debouncerService = inject(DebouncerService);
|
|
3211
3230
|
this.numberPipe = inject(DecimalPipe);
|
|
3212
3231
|
this.objectSizeService = inject(ObjectSizeService);
|
|
@@ -3572,7 +3591,7 @@ class UtilityService {
|
|
|
3572
3591
|
// debugger;
|
|
3573
3592
|
};
|
|
3574
3593
|
this.moneyParser = (amount, currency = ' ') => {
|
|
3575
|
-
return this.currencyPipe.transform(amount, currency || ' ');
|
|
3594
|
+
return this.currencyPipe.transform(amount, currency || ' ', undefined, undefined, this.numberFormatService.locale());
|
|
3576
3595
|
};
|
|
3577
3596
|
this.secondsToHourMinSec = (seconds) => {
|
|
3578
3597
|
if (!seconds)
|
|
@@ -4060,6 +4079,24 @@ class UtilityService {
|
|
|
4060
4079
|
ret[key] = obj[key];
|
|
4061
4080
|
return ret;
|
|
4062
4081
|
};
|
|
4082
|
+
/**
|
|
4083
|
+
* Conditionally executes an observable-returning function based on request value
|
|
4084
|
+
* @param req The request parameter to check
|
|
4085
|
+
* @param observable Function that returns an Observable when given the request
|
|
4086
|
+
* @returns The Observable from the function if req has a value, otherwise an Observable of null
|
|
4087
|
+
* @template Q Request parameter type
|
|
4088
|
+
* @template R Observable response type
|
|
4089
|
+
*/
|
|
4090
|
+
this.nullRequestHandler = (req, observable) => req ? observable(req) : of(null);
|
|
4091
|
+
/**
|
|
4092
|
+
* Handles errors from Angular's ResourceRef by displaying an error message
|
|
4093
|
+
* @param res The ResourceRef object to check for errors
|
|
4094
|
+
* @template T The type of data in the ResourceRef
|
|
4095
|
+
*/
|
|
4096
|
+
this.resouceErrorHandler = (res) => {
|
|
4097
|
+
if (res.error())
|
|
4098
|
+
this.info(res.error(), 0);
|
|
4099
|
+
};
|
|
4063
4100
|
/**
|
|
4064
4101
|
* Formats a time duration in milliseconds to hours, minutes, and seconds
|
|
4065
4102
|
* @param timeTaken Time in milliseconds
|
|
@@ -5534,7 +5571,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
5534
5571
|
/**
|
|
5535
5572
|
* Collection of all translation pipe components
|
|
5536
5573
|
*/
|
|
5537
|
-
const comps$
|
|
5574
|
+
const comps$4 = [
|
|
5538
5575
|
SDKTranslatePipe,
|
|
5539
5576
|
SDKTranslateNoLoaderPipe,
|
|
5540
5577
|
SDKTranslateSinglePipe,
|
|
@@ -5557,8 +5594,8 @@ class TranslatePipeModule {
|
|
|
5557
5594
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: TranslatePipeModule, decorators: [{
|
|
5558
5595
|
type: NgModule,
|
|
5559
5596
|
args: [{
|
|
5560
|
-
imports: [CommonModule, ...modules$1, ...comps$
|
|
5561
|
-
exports: [...comps$
|
|
5597
|
+
imports: [CommonModule, ...modules$1, ...comps$4],
|
|
5598
|
+
exports: [...comps$4, ...modules$1],
|
|
5562
5599
|
providers: [],
|
|
5563
5600
|
}]
|
|
5564
5601
|
}] });
|
|
@@ -7364,7 +7401,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
7364
7401
|
standalone: true,
|
|
7365
7402
|
}]
|
|
7366
7403
|
}], ctorParameters: () => [{ type: i3.BreakpointObserver }] });
|
|
7367
|
-
const comps$
|
|
7404
|
+
const comps$3 = [
|
|
7368
7405
|
ArraySplitter,
|
|
7369
7406
|
CustomDatePipe,
|
|
7370
7407
|
FieldToLabelPipe,
|
|
@@ -7415,8 +7452,8 @@ class UtilityPipesModule {
|
|
|
7415
7452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: UtilityPipesModule, decorators: [{
|
|
7416
7453
|
type: NgModule,
|
|
7417
7454
|
args: [{
|
|
7418
|
-
imports: [CommonModule, ...modules, ...comps$
|
|
7419
|
-
exports: [...comps$
|
|
7455
|
+
imports: [CommonModule, ...modules, ...comps$3],
|
|
7456
|
+
exports: [...comps$3, ...modules],
|
|
7420
7457
|
providers: [],
|
|
7421
7458
|
}]
|
|
7422
7459
|
}] });
|
|
@@ -8039,7 +8076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
8039
8076
|
// // else return arr.filter((x) => formArray.some((f) => f == (x as any)));
|
|
8040
8077
|
// // }
|
|
8041
8078
|
// }
|
|
8042
|
-
const comps$
|
|
8079
|
+
const comps$2 = [
|
|
8043
8080
|
FilterOptions,
|
|
8044
8081
|
Validator,
|
|
8045
8082
|
ValidationMsg,
|
|
@@ -8057,8 +8094,8 @@ class InputPipesModule {
|
|
|
8057
8094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputPipesModule, decorators: [{
|
|
8058
8095
|
type: NgModule,
|
|
8059
8096
|
args: [{
|
|
8060
|
-
imports: comps$
|
|
8061
|
-
exports: comps$
|
|
8097
|
+
imports: comps$2,
|
|
8098
|
+
exports: comps$2,
|
|
8062
8099
|
}]
|
|
8063
8100
|
}] });
|
|
8064
8101
|
|
|
@@ -8311,11 +8348,12 @@ class InputFormatDirective {
|
|
|
8311
8348
|
*/
|
|
8312
8349
|
ngOnInit() {
|
|
8313
8350
|
this.el = this.elementRef.nativeElement;
|
|
8314
|
-
this.oType =
|
|
8351
|
+
this.oType =
|
|
8352
|
+
this.el.dataset.otype == 'percentage' ? 'percentage' : (this.el.type + '');
|
|
8315
8353
|
if (!this.noFormatting) {
|
|
8316
8354
|
if (this.oType == 'number') {
|
|
8317
8355
|
this.el.type = 'text';
|
|
8318
|
-
this.el.value = this.decimalPipe.transform(this.el.value.replace(/[^\d.-]/g, ''), '1.0-9');
|
|
8356
|
+
this.el.value = this.decimalPipe.transform((this.el.value).replace(/[^\d.-]/g, ''), '1.0-9', this.inputFormatService.locale());
|
|
8319
8357
|
}
|
|
8320
8358
|
if (this.oType == 'percentage') {
|
|
8321
8359
|
this.el.type = 'text';
|
|
@@ -8330,13 +8368,17 @@ class InputFormatDirective {
|
|
|
8330
8368
|
* Add appropriate icons after view initialization based on input type
|
|
8331
8369
|
*/
|
|
8332
8370
|
ngAfterViewInit() {
|
|
8333
|
-
if (this.el.dataset.otype == 'percentage' &&
|
|
8371
|
+
if (this.el.dataset.otype == 'percentage' &&
|
|
8372
|
+
!this.noFormatting &&
|
|
8373
|
+
this.el.parentElement.classList.contains('position-relative')) {
|
|
8334
8374
|
// debugger
|
|
8335
8375
|
const icon = document.createElement('i');
|
|
8336
8376
|
icon.className = 'input-icon fa fa-percentage';
|
|
8337
8377
|
this.el.parentNode.insertBefore(icon, this.el);
|
|
8338
8378
|
}
|
|
8339
|
-
else if (this.oType == 'number' &&
|
|
8379
|
+
else if (this.oType == 'number' &&
|
|
8380
|
+
!this.noFormatting &&
|
|
8381
|
+
this.el.parentElement.classList.contains('position-relative')) {
|
|
8340
8382
|
const icon = document.createElement('i');
|
|
8341
8383
|
icon.className = 'input-icon fa fa-hashtag';
|
|
8342
8384
|
this.el.parentNode.insertBefore(icon, this.el);
|
|
@@ -8408,9 +8450,9 @@ class InputFormatDirective {
|
|
|
8408
8450
|
if (this.isLastCharacterDecimalSeparator(value))
|
|
8409
8451
|
this._value = value;
|
|
8410
8452
|
else
|
|
8411
|
-
this._value = this.formatterService.
|
|
8453
|
+
this._value = this.formatterService.normalise(value);
|
|
8412
8454
|
else if (this.oType == 'percentage')
|
|
8413
|
-
this._value = this.formatterService.
|
|
8455
|
+
this._value = this.formatterService.normalise(String(value)?.replace('%', ''));
|
|
8414
8456
|
else
|
|
8415
8457
|
this._value = value;
|
|
8416
8458
|
// here to notify Angular Validators
|
|
@@ -8500,7 +8542,7 @@ class InputFormatDirective {
|
|
|
8500
8542
|
* @returns True if the last character is a decimal point
|
|
8501
8543
|
*/
|
|
8502
8544
|
isLastCharacterDecimalSeparator(value) {
|
|
8503
|
-
return value?.toString()[value?.toString().length - 1] ==
|
|
8545
|
+
return value?.toString()[value?.toString().length - 1] == this.inputFormatService.nfS.decimal();
|
|
8504
8546
|
}
|
|
8505
8547
|
/**
|
|
8506
8548
|
* Format a number by adding commas
|
|
@@ -8508,8 +8550,10 @@ class InputFormatDirective {
|
|
|
8508
8550
|
*/
|
|
8509
8551
|
setNumberInput(value) {
|
|
8510
8552
|
// debugger;
|
|
8511
|
-
|
|
8512
|
-
|
|
8553
|
+
const val = value
|
|
8554
|
+
?.toString()
|
|
8555
|
+
.replace(/[^\d.-]/g, '');
|
|
8556
|
+
// .replace(this.inputFormatService.nfS.isNormal() ? /[^\d.-]/g : /[^\d,-]/g, '');
|
|
8513
8557
|
if (val === null || val == undefined) {
|
|
8514
8558
|
this.elementRef.nativeElement.value = '';
|
|
8515
8559
|
return;
|
|
@@ -8518,8 +8562,8 @@ class InputFormatDirective {
|
|
|
8518
8562
|
this.elementRef.nativeElement.value = val;
|
|
8519
8563
|
return;
|
|
8520
8564
|
}
|
|
8521
|
-
|
|
8522
|
-
this.elementRef.nativeElement.value = this.decimalPipe.transform(val, `1.0-20
|
|
8565
|
+
debugger;
|
|
8566
|
+
this.elementRef.nativeElement.value = this.decimalPipe.transform(val, `1.0-20`, this.inputFormatService.locale());
|
|
8523
8567
|
}
|
|
8524
8568
|
/**
|
|
8525
8569
|
* Format a percentage by adding % sign
|
|
@@ -8538,7 +8582,6 @@ class InputFormatDirective {
|
|
|
8538
8582
|
return;
|
|
8539
8583
|
}
|
|
8540
8584
|
// debugger
|
|
8541
|
-
// this.elementRef.nativeElement.value = this.decimalPipe.transform(val, `1.0-20`);
|
|
8542
8585
|
this.elementRef.nativeElement.value = value ? value + '%' : value + '';
|
|
8543
8586
|
}
|
|
8544
8587
|
/**
|
|
@@ -8585,9 +8628,9 @@ class InputFormatDirective {
|
|
|
8585
8628
|
if (this.isLastCharacterDecimalSeparator(value)) {
|
|
8586
8629
|
return;
|
|
8587
8630
|
}
|
|
8588
|
-
this._value = this.formatterService.
|
|
8631
|
+
this._value = this.formatterService.normalise(value);
|
|
8589
8632
|
if (value) {
|
|
8590
|
-
this.elementRef.nativeElement.value = this.value;
|
|
8633
|
+
this.elementRef.nativeElement.value = this.inputFormatService.normaliseForInput(this.value);
|
|
8591
8634
|
}
|
|
8592
8635
|
else {
|
|
8593
8636
|
this.elementRef.nativeElement.value = null;
|
|
@@ -8602,9 +8645,9 @@ class InputFormatDirective {
|
|
|
8602
8645
|
if (this.isLastCharacterDecimalSeparator(value)) {
|
|
8603
8646
|
return;
|
|
8604
8647
|
}
|
|
8605
|
-
this._value = this.formatterService.
|
|
8648
|
+
this._value = this.formatterService.normalise(value.replace('%', ''));
|
|
8606
8649
|
if (value) {
|
|
8607
|
-
this.elementRef.nativeElement.value = this.value;
|
|
8650
|
+
this.elementRef.nativeElement.value = this.inputFormatService.normaliseForInput(this.value);
|
|
8608
8651
|
}
|
|
8609
8652
|
else {
|
|
8610
8653
|
this.elementRef.nativeElement.value = null;
|
|
@@ -8620,7 +8663,7 @@ class InputFormatDirective {
|
|
|
8620
8663
|
// debugger
|
|
8621
8664
|
// this._onBlur()
|
|
8622
8665
|
}
|
|
8623
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirective, deps: [{ token: i0.ElementRef }, { token:
|
|
8666
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirective, deps: [{ token: i0.ElementRef }, { token: InputFormatService }, { token: i1.DecimalPipe }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8624
8667
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.1", type: InputFormatDirective, isStandalone: true, selector: "input:not([matInput]):not([noformat])", inputs: { value: "value" }, host: { listeners: { "input": "input($event.target.value)", "blur": "_onBlur()", "focus": "onFocus()" } }, providers: [
|
|
8625
8668
|
{
|
|
8626
8669
|
provide: MAT_INPUT_VALUE_ACCESSOR,
|
|
@@ -8650,7 +8693,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
8650
8693
|
],
|
|
8651
8694
|
standalone: true,
|
|
8652
8695
|
}]
|
|
8653
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type:
|
|
8696
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: InputFormatService }, { type: i1.DecimalPipe }], propDecorators: { value: [{
|
|
8654
8697
|
type: Input,
|
|
8655
8698
|
args: ['value']
|
|
8656
8699
|
}], input: [{
|
|
@@ -8663,57 +8706,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
8663
8706
|
type: HostListener,
|
|
8664
8707
|
args: ['focus']
|
|
8665
8708
|
}] } });
|
|
8666
|
-
|
|
8667
|
-
class InputFormattersPipe {
|
|
8709
|
+
class InputFormatService {
|
|
8668
8710
|
constructor() {
|
|
8669
|
-
|
|
8670
|
-
this.
|
|
8671
|
-
this.THOUSANDS_SEPARATOR = ',';
|
|
8672
|
-
}
|
|
8673
|
-
transform(value, fractionSize = 2) {
|
|
8674
|
-
let [integer, fraction = ''] = (value || '').toString().split(this.DECIMAL_SEPARATOR);
|
|
8675
|
-
fraction = fractionSize > 0 ? this.DECIMAL_SEPARATOR + (fraction + PADDING).substring(0, fractionSize) : '';
|
|
8676
|
-
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, this.THOUSANDS_SEPARATOR);
|
|
8677
|
-
return integer + fraction;
|
|
8711
|
+
this.locale = computed(() => this.nfS.locale());
|
|
8712
|
+
this.nfS = inject(NumberFormatService);
|
|
8678
8713
|
}
|
|
8679
8714
|
/**
|
|
8680
8715
|
* Convert input value to number
|
|
8681
8716
|
* @param value Input value
|
|
8682
|
-
* @returns
|
|
8717
|
+
* @returns The numeric value with spaces removed according to locale
|
|
8683
8718
|
*/
|
|
8684
|
-
|
|
8685
|
-
const r =
|
|
8686
|
-
return r ? +r : null;
|
|
8719
|
+
normalise(value) {
|
|
8720
|
+
const r = this.nfS.isNormal() ? value?.replaceAll(',', '') : value?.replaceAll(',', '.');
|
|
8721
|
+
return r ? +r.replaceAll(' ', '').replaceAll(' ', '') : null;
|
|
8722
|
+
}
|
|
8723
|
+
normaliseForInput(value) {
|
|
8724
|
+
const val = typeof value == 'number' ? String(value) : value;
|
|
8725
|
+
return this.nfS.isNormal()
|
|
8726
|
+
? val?.replace(/[^\d.-]/g, '')
|
|
8727
|
+
: val?.replaceAll(' ', '').replaceAll(' ', '').replaceAll('.', ',');
|
|
8687
8728
|
}
|
|
8688
8729
|
toTitleCase(str) {
|
|
8689
|
-
return str?.toString().replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.slice(1)) || '';
|
|
8730
|
+
return (str?.toString().replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.slice(1)) || '');
|
|
8690
8731
|
}
|
|
8691
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormattersPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
8692
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: InputFormattersPipe, isStandalone: false, name: "inputFormatters" }); }
|
|
8693
|
-
}
|
|
8694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormattersPipe, decorators: [{
|
|
8695
|
-
type: Pipe,
|
|
8696
|
-
args: [{
|
|
8697
|
-
name: 'inputFormatters',
|
|
8698
|
-
standalone: false
|
|
8699
|
-
}]
|
|
8700
|
-
}], ctorParameters: () => [] });
|
|
8701
|
-
const comps$2 = [InputFormatDirective];
|
|
8702
|
-
// const comps = [];
|
|
8703
|
-
class InputFormatDirectivesModule {
|
|
8704
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
8705
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirectivesModule, imports: [CommonModule, InputFormatDirective], exports: [InputFormatDirective] }); }
|
|
8706
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirectivesModule, providers: [DecimalPipe, InputFormattersPipe], imports: [CommonModule] }); }
|
|
8707
|
-
}
|
|
8708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatDirectivesModule, decorators: [{
|
|
8709
|
-
type: NgModule,
|
|
8710
|
-
args: [{
|
|
8711
|
-
imports: [CommonModule, ...comps$2],
|
|
8712
|
-
exports: [...comps$2],
|
|
8713
|
-
providers: [DecimalPipe, InputFormattersPipe],
|
|
8714
|
-
}]
|
|
8715
|
-
}] });
|
|
8716
|
-
class InputFormatService {
|
|
8717
8732
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8718
8733
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: InputFormatService, providedIn: 'root' }); }
|
|
8719
8734
|
}
|
|
@@ -9515,7 +9530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
9515
9530
|
type: Directive,
|
|
9516
9531
|
args: [{
|
|
9517
9532
|
selector: 'button',
|
|
9518
|
-
standalone: false
|
|
9533
|
+
standalone: false,
|
|
9519
9534
|
}]
|
|
9520
9535
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onClick: [{
|
|
9521
9536
|
type: HostListener,
|
|
@@ -9836,18 +9851,18 @@ const comps = [
|
|
|
9836
9851
|
*/
|
|
9837
9852
|
class DirectivesModule {
|
|
9838
9853
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9839
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, imports: [CommonModule,
|
|
9854
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, imports: [CommonModule, InputFormatDirective, EqualChildrenDirective, ImageLoaderDirective, ImageUpload, MrouterLinkirective, NegativeNumberOnlyDirective, PSDirective, TranslatorDirective,
|
|
9840
9855
|
DragDropFileUploadDirective,
|
|
9841
9856
|
FormInvalidClassDirective], exports: [EqualChildrenDirective, ImageLoaderDirective, ImageUpload, MrouterLinkirective, NegativeNumberOnlyDirective, PSDirective, TranslatorDirective,
|
|
9842
9857
|
DragDropFileUploadDirective,
|
|
9843
|
-
FormInvalidClassDirective,
|
|
9844
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, providers: [DecimalPipe], imports: [CommonModule,
|
|
9858
|
+
FormInvalidClassDirective, InputFormatDirective, ETSResponsivenessDirectiveModule] }); }
|
|
9859
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, providers: [DecimalPipe], imports: [CommonModule, ETSResponsivenessDirectiveModule] }); }
|
|
9845
9860
|
}
|
|
9846
9861
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DirectivesModule, decorators: [{
|
|
9847
9862
|
type: NgModule,
|
|
9848
9863
|
args: [{
|
|
9849
|
-
imports: [CommonModule,
|
|
9850
|
-
exports: [...comps,
|
|
9864
|
+
imports: [CommonModule, InputFormatDirective, ...comps],
|
|
9865
|
+
exports: [...comps, InputFormatDirective, ETSResponsivenessDirectiveModule],
|
|
9851
9866
|
providers: [DecimalPipe],
|
|
9852
9867
|
}]
|
|
9853
9868
|
}] });
|
|
@@ -22754,6 +22769,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
22754
22769
|
}]
|
|
22755
22770
|
}], ctorParameters: () => [] });
|
|
22756
22771
|
|
|
22772
|
+
class NumberPipe {
|
|
22773
|
+
/**
|
|
22774
|
+
* @param value The value to be formatted.
|
|
22775
|
+
* @param digitsInfo Sets digit and decimal representation.
|
|
22776
|
+
* [See more](#digitsinfo).
|
|
22777
|
+
*/ transform(value, digitsInfo) {
|
|
22778
|
+
return this.decimalPipe.transform(value, digitsInfo, this.uS.numberFormatService.locale());
|
|
22779
|
+
}
|
|
22780
|
+
constructor(decimalPipe, uS) {
|
|
22781
|
+
this.decimalPipe = decimalPipe;
|
|
22782
|
+
this.uS = uS;
|
|
22783
|
+
}
|
|
22784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: NumberPipe, deps: [{ token: i1.DecimalPipe }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
22785
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: NumberPipe, isStandalone: true, name: "libNumber" }); }
|
|
22786
|
+
}
|
|
22787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: NumberPipe, decorators: [{
|
|
22788
|
+
type: Pipe,
|
|
22789
|
+
args: [{
|
|
22790
|
+
name: 'libNumber',
|
|
22791
|
+
}]
|
|
22792
|
+
}], ctorParameters: () => [{ type: i1.DecimalPipe }, { type: UtilityService }] });
|
|
22793
|
+
|
|
22757
22794
|
/**
|
|
22758
22795
|
* Core application service that manages system state, navigation menus, and UI theming.
|
|
22759
22796
|
* @template TESystem - The system enum type (defaults to ESystem)
|
|
@@ -23418,7 +23455,7 @@ class ETSLogUpdateService {
|
|
|
23418
23455
|
message = `Failed to install app version`;
|
|
23419
23456
|
debugger;
|
|
23420
23457
|
console.log(`${message} '${evt.version.hash}': ${evt.error}`);
|
|
23421
|
-
location.reload();
|
|
23458
|
+
// location.reload();
|
|
23422
23459
|
// this.uS.notify(message, 0);
|
|
23423
23460
|
break;
|
|
23424
23461
|
}
|
|
@@ -25730,5 +25767,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
|
|
|
25730
25767
|
* Generated bundle index. Do not edit.
|
|
25731
25768
|
*/
|
|
25732
25769
|
|
|
25733
|
-
export { AddItemComponent, ApiService, AppRouteBase, AppRouteService, AppRouteState, AppService, ArraySplitter, AuthenticationInterceptorService, AutocompleteComponent, AutocompleteModule, AutocompleteService, AutocompleteTdRfComponent, BaseNativeEventListenerDirective, BlinkingBlocksComponent, BouncingBallComponent, Btn, BtnComponent, BtnLg, BtnLgComponent, BtnLinkComponent, BtnModule, BtnService, ButtonComponent, CETSInput, CacheService, CacheUpdaterService, CardComponent, CardComponent as CardModule, CodeTitleDescPipe, CommafyNumberDirective, ButtonComponent as ComponentsModule, Config, ConfirmDialogComponent, ConfirmDialogComponent as ConfirmDialogModule, Constant, CustomDatePipe, DEFAULT_TIMEOUT, DateInputComponent, Day, DayHourMinInputComponent, DebouncerService, DesktopClassDirective, DetailsBtnComponent, DetailsBtnComponent as DetailsBtnModule, DirectivesModule, DocumentsNameDisplayComponent, DocumentsNameDisplayComponent as DocumentsNameDisplayModule, DragDropFileUploadDirective, EETSPageBtnID, ELanguage, EMenuLocation, EMenuType, EPageType, ESubSystem, ESystem, ESystemBusLine, ETSCheckForUpdateService, ETSConfirmDialogService, ETSExtraPagesModule, ETSFKVP, ETSForms, ETSHandleUnrecoverableStateService, ETSKVP, ETSLogUpdateService, ETSLoggerModule, ETSMenuItem, ETSMenuItemDivider, ETSPageNotFoundComponent, ETSPromptUpdateService, ETSReactiveFormInputService, ETSResetModule, ETSResponsivenessDirectiveModule, ETSRobotModule, ETSServiceWorkerService, ETSStorageService, ETSThemeService, ETSTimeoutTesterModule, ETSVersionModule, ETSWindowSecurityService, EUA, EVFunctions, EValidationType, EditableTextCaseComponent, EditableTextCaseComponent as EditableTextCaseModule, SDKEnvironment as Environment, EqualChildrenDirective, ErrorMessagePipe, ErrorReporterService, ExportTableComponent, ExportTableComponent as ExportTableModule, FCInput, FadingBarsComponent, FadingCirclesComponent, FieldToLabelPipe, FieldsToDisplayComponent, FileUploadComponent, FilterArrayByStringPipe, FilterArrayPipe, FilterFormArrayControlPipe, FilterFormArrayGroupPipe, FilterOptions, FindItemComponent, FormErrorComponent, FormGeneratedValueComponent, FormGeneratorComponent, FormGeneratorComponent as FormGeneratorModule, FormGeneratorService, FormInvalidClassDirective, FormInvalidClassPipe, FormLinkComponent, FormLinkComponent as FormLinkModule, FormSchemaToTableColumnsPipe, FormTabHeadersComponent, FormTabHeadersComponent as FormTabHeadersModule, FormValuePipe, FunctionCaller, FunctionCaller1, FunctionCaller2, FunctionCaller3, GenderPipe, GetColFormattedEPipe, GetColFormattedPipe, GetHeadersPipe, GetRawFieldsPipe, GetValueLabel, GlobalErrorHandlerService, HasFormValuePipe, HasValuePipe, HideDesktopDirective, HideMobileDirective, HtmlerService, HttpListCaller, HttpListCaller1, HttpListCaller2, IdlerComponent, IdlerService, ImageLoaderDirective, ImageUpload, IndexCompLayoutComponent, InfoDialogComponent, InfoDialogModule, InfoDialogService, InfoIconComponent, InfoIconComponent as InfoIconModule, InputBasicComponent, InputClassPipe, InputComponent, inputs_component as InputComponents, InputControlComponent, InputFormatDirective,
|
|
25770
|
+
export { AddItemComponent, ApiService, AppRouteBase, AppRouteService, AppRouteState, AppService, ArraySplitter, AuthenticationInterceptorService, AutocompleteComponent, AutocompleteModule, AutocompleteService, AutocompleteTdRfComponent, BaseNativeEventListenerDirective, BlinkingBlocksComponent, BouncingBallComponent, Btn, BtnComponent, BtnLg, BtnLgComponent, BtnLinkComponent, BtnModule, BtnService, ButtonComponent, CETSInput, CacheService, CacheUpdaterService, CardComponent, CardComponent as CardModule, CodeTitleDescPipe, CommafyNumberDirective, ButtonComponent as ComponentsModule, Config, ConfirmDialogComponent, ConfirmDialogComponent as ConfirmDialogModule, Constant, CustomDatePipe, DEFAULT_TIMEOUT, DateInputComponent, Day, DayHourMinInputComponent, DebouncerService, DesktopClassDirective, DetailsBtnComponent, DetailsBtnComponent as DetailsBtnModule, DirectivesModule, DocumentsNameDisplayComponent, DocumentsNameDisplayComponent as DocumentsNameDisplayModule, DragDropFileUploadDirective, EETSPageBtnID, ELanguage, EMenuLocation, EMenuType, EPageType, ESubSystem, ESystem, ESystemBusLine, ETSCheckForUpdateService, ETSConfirmDialogService, ETSExtraPagesModule, ETSFKVP, ETSForms, ETSHandleUnrecoverableStateService, ETSKVP, ETSLogUpdateService, ETSLoggerModule, ETSMenuItem, ETSMenuItemDivider, ETSPageNotFoundComponent, ETSPromptUpdateService, ETSReactiveFormInputService, ETSResetModule, ETSResponsivenessDirectiveModule, ETSRobotModule, ETSServiceWorkerService, ETSStorageService, ETSThemeService, ETSTimeoutTesterModule, ETSVersionModule, ETSWindowSecurityService, EUA, EVFunctions, EValidationType, EditableTextCaseComponent, EditableTextCaseComponent as EditableTextCaseModule, SDKEnvironment as Environment, EqualChildrenDirective, ErrorMessagePipe, ErrorReporterService, ExportTableComponent, ExportTableComponent as ExportTableModule, FCInput, FadingBarsComponent, FadingCirclesComponent, FieldToLabelPipe, FieldsToDisplayComponent, FileUploadComponent, FilterArrayByStringPipe, FilterArrayPipe, FilterFormArrayControlPipe, FilterFormArrayGroupPipe, FilterOptions, FindItemComponent, FormErrorComponent, FormGeneratedValueComponent, FormGeneratorComponent, FormGeneratorComponent as FormGeneratorModule, FormGeneratorService, FormInvalidClassDirective, FormInvalidClassPipe, FormLinkComponent, FormLinkComponent as FormLinkModule, FormSchemaToTableColumnsPipe, FormTabHeadersComponent, FormTabHeadersComponent as FormTabHeadersModule, FormValuePipe, FunctionCaller, FunctionCaller1, FunctionCaller2, FunctionCaller3, GenderPipe, GetColFormattedEPipe, GetColFormattedPipe, GetHeadersPipe, GetRawFieldsPipe, GetValueLabel, GlobalErrorHandlerService, HasFormValuePipe, HasValuePipe, HideDesktopDirective, HideMobileDirective, HtmlerService, HttpListCaller, HttpListCaller1, HttpListCaller2, IdlerComponent, IdlerService, ImageLoaderDirective, ImageUpload, IndexCompLayoutComponent, InfoDialogComponent, InfoDialogModule, InfoDialogService, InfoIconComponent, InfoIconComponent as InfoIconModule, InputBasicComponent, InputClassPipe, InputComponent, inputs_component as InputComponents, InputControlComponent, InputFormatDirective, InputFormatService, InputLabelComponent, InputModule, InputNGModelComponent, InputNGModelComponent as InputNGModelModule, InputPipesModule, InputService, InputTD_RFComponent, InputTableComponent, InputTableService, IntegerOnlyDirective, IsClonePage, IsShowPage, LabelComponent, LabelComponent as LabelModule, Lbl, ListOptionFinderPipe, LoaderComponent, LoaderComponent as LoaderModule, LoaderService, LocalCacheService, Log, LoggerComponent, LoggerInterceptorService, LoggerRoutingModule, LoggerService, MHrefDirective, MobileClassDirective, ModalBodyDirective, ModalComponent, ModalComponents, ModalFooterDirective, ModalFormComponent, ModalFormComponent as ModalFormModule, ModalHeaderComponent, ModalHeaderComponent as ModalHeaderModule, ModalComponent as ModalModule, MouseClickListenerDirective, MouseEnterListenerDirective, MouseLeaveListenerDirective, MrouterLinkirective, NELEventName, NarrationHistoryCompComponent, NativeEventListenerDirectives, NegativeNumberOnlyDirective, NotificationsComponent, NotificationsService, NumberFormatService, NumberPipe, ObjectToArrayPipe, ObjectToLabelsPipe, OnClickDirective, OptionLabeller, OptionerPipe, OptionsFormatter, PSDirective, PageCenterBodyComponent, PageLoader, PageLoaderService, PageModal, PageService, PageTemplateComponent, PageTemplateComponent as PageTemplateModule, PageToComponentComponent, PageToComponentDirective, PageToComponentComponent as PageToComponentModule, PageToComponentService, PaginatorComponent, PaginatorPipe, PhoneNumberComponent, PhoneNumberService, PointerMoveListenerDirective, prototypes as Prototypes, RefresherPipe, RemoveUsedOptionsPipe, RemoveUsedOptionsReactivePipe, ReplaceAllPipe, RequestLoggerInterceptorService, RequestTimeoutInterceptorService, ResizeGridPipe, ResponsiveValPipe, ResponsivenessDirective, ReverseTranslateSingleNLPipe, RichTextEditorComponent, RichTextEditorRFComponent, RingRipplesComponent, RoundPipe, RouteItem, RowActionsComponent, RowActionsComponent as RowActionsModule, BaseEffect as SDKBaseEffect, BaseFacadeService as SDKBaseFacadeService, BaseService as SDKBaseService, SDKTranslateNoLoaderPipe, SDKTranslatePipe, SDKTranslateSingleNoLoaderPipe, SDKTranslateSinglePipe, SaverClass, SaverService, SecondsToTimePipe, SharedModule, SortPipe, SpinnerComponent, StorageClass, StrConcatenatorPipe, SvgIconComponent, SvgIconService, TableBaseComponent, TableCol, TableHttpsComponent, TableInputClassFunctionPipe, TableInputComponent, TableInputRowComponent, TablePipesModule, TablePlainComponent, TableService, TableToStringPipe, TextAreaModalComponent, TextAreaModalService, TextCase1Component, TextCase2Component, TextCase2ForObject, TextCaseInputComponent, TextCaseService, TextComponent, ToAnyArrayPipe, ToAnyPipe, ToggleInputFormComponent, TranslatePipeModule, TranslationService, TranslatorCaseComponent, TranslatorDirective, TrimPipe, TrimTextPipe, TyperPipe, UserActivity, UserActivityService, UtilityPipesModule, UtilityService, ValidationMessageComponent, ValidationMessageNgmodelComponent, ValidationMsg, Validator, ValueFormatterPipe, ValueOrXPipe, VerticalNavComponent, ViewFormButtonsComponent, ViewFormButtonsComponent as ViewFormButtonsModule, WatermarkComponent, WebUserAuthenticationService, WebUserForgotPasswordComponent, WebUserLoginComponent, WebUserResetPasswordComponent, WebcamMediaComponent, XOrYPipe, YearMonthTdRfComponent, _SharedModule, configForms, configPatterns, configValidationMessages, environment, pageErrorRouter, webUserAuthenticationGuard, webUserAuthenticationInterceptor, widthOffsetPipe };
|
|
25734
25771
|
//# sourceMappingURL=ets-fe-ng-sdk.mjs.map
|