@wolkabout/commons 0.4.0 → 0.4.1
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.
|
@@ -1556,7 +1556,7 @@ const chartThemeLight = {
|
|
|
1556
1556
|
"borderWidth": 1
|
|
1557
1557
|
},
|
|
1558
1558
|
"lineStyle": {
|
|
1559
|
-
"width":
|
|
1559
|
+
"width": 3
|
|
1560
1560
|
},
|
|
1561
1561
|
"symbolSize": "5",
|
|
1562
1562
|
"symbol": "emptyCircle",
|
|
@@ -1567,7 +1567,7 @@ const chartThemeLight = {
|
|
|
1567
1567
|
"borderWidth": 1
|
|
1568
1568
|
},
|
|
1569
1569
|
"lineStyle": {
|
|
1570
|
-
"width":
|
|
1570
|
+
"width": 3
|
|
1571
1571
|
},
|
|
1572
1572
|
"symbolSize": "5",
|
|
1573
1573
|
"symbol": "emptyCircle",
|
|
@@ -1966,7 +1966,7 @@ const chartThemeDark = {
|
|
|
1966
1966
|
"borderWidth": 1
|
|
1967
1967
|
},
|
|
1968
1968
|
"lineStyle": {
|
|
1969
|
-
"width":
|
|
1969
|
+
"width": 3
|
|
1970
1970
|
},
|
|
1971
1971
|
"symbolSize": "5",
|
|
1972
1972
|
"symbol": "emptyCircle",
|
|
@@ -1977,7 +1977,7 @@ const chartThemeDark = {
|
|
|
1977
1977
|
"borderWidth": 1
|
|
1978
1978
|
},
|
|
1979
1979
|
"lineStyle": {
|
|
1980
|
-
"width":
|
|
1980
|
+
"width": 3
|
|
1981
1981
|
},
|
|
1982
1982
|
"symbolSize": "5",
|
|
1983
1983
|
"symbol": "emptyCircle",
|
|
@@ -6461,12 +6461,13 @@ class ValueInputBooleanComponent {
|
|
|
6461
6461
|
destroy$ = new Subject();
|
|
6462
6462
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6463
6463
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6464
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6464
6465
|
constructor(translate) {
|
|
6465
6466
|
this.translate = translate;
|
|
6466
6467
|
effect(() => {
|
|
6467
6468
|
const validators = this.validators() ?? [];
|
|
6468
6469
|
this.formControl.setValidators([...validators]);
|
|
6469
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6470
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6470
6471
|
});
|
|
6471
6472
|
}
|
|
6472
6473
|
onTouched = () => {
|
|
@@ -6508,7 +6509,7 @@ class ValueInputBooleanComponent {
|
|
|
6508
6509
|
this.destroy$.complete();
|
|
6509
6510
|
}
|
|
6510
6511
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputBooleanComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6511
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputBooleanComponent, isStandalone: true, selector: "app-value-input-boolean", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6512
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputBooleanComponent, isStandalone: true, selector: "app-value-input-boolean", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6512
6513
|
{
|
|
6513
6514
|
provide: NG_VALUE_ACCESSOR,
|
|
6514
6515
|
useExisting: forwardRef(() => ValueInputBooleanComponent),
|
|
@@ -6535,7 +6536,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
6535
6536
|
multi: true,
|
|
6536
6537
|
}
|
|
6537
6538
|
], template: "<mat-slide-toggle [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <div class=\"flex flex-col ml-2\">\r\n <span class=\"text-xs font-light\"> {{ name() }} </span>\r\n <span>{{ formControl.value ? ('DATA_BROWSER.ATTRIBUTE_VALUE_ENABLED' | translate) : ('DATA_BROWSER.ATTRIBUTE_VALUE_DISABLED' | translate) }}</span>\r\n </div>\r\n</mat-slide-toggle>\r\n@for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\" class=\"ml-4 mt-[-8px] text-[12px]\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate }}</mat-error>\r\n}\r\n" }]
|
|
6538
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
6539
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
6539
6540
|
|
|
6540
6541
|
class ValueInputColorComponent {
|
|
6541
6542
|
translate;
|
|
@@ -6546,6 +6547,7 @@ class ValueInputColorComponent {
|
|
|
6546
6547
|
destroy$ = new Subject();
|
|
6547
6548
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6548
6549
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6550
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6549
6551
|
onTouched = () => {
|
|
6550
6552
|
};
|
|
6551
6553
|
onValidatorChange;
|
|
@@ -6554,7 +6556,7 @@ class ValueInputColorComponent {
|
|
|
6554
6556
|
effect(() => {
|
|
6555
6557
|
const validators = this.validators() ?? [];
|
|
6556
6558
|
this.formControl.setValidators([...validators, this.hexadecimalColorValidator]);
|
|
6557
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6559
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6558
6560
|
});
|
|
6559
6561
|
}
|
|
6560
6562
|
// ControlValueAccessor methods
|
|
@@ -6616,7 +6618,7 @@ class ValueInputColorComponent {
|
|
|
6616
6618
|
this.destroy$.complete();
|
|
6617
6619
|
}
|
|
6618
6620
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputColorComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputColorComponent, isStandalone: true, selector: "app-value-input-color", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6621
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputColorComponent, isStandalone: true, selector: "app-value-input-color", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6620
6622
|
{
|
|
6621
6623
|
provide: NG_VALUE_ACCESSOR,
|
|
6622
6624
|
useExisting: forwardRef(() => ValueInputColorComponent),
|
|
@@ -6643,13 +6645,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
6643
6645
|
multi: true,
|
|
6644
6646
|
}
|
|
6645
6647
|
], template: "<mat-form-field class=\"w-full relative\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ name() }}</mat-label>\r\n <input matInput type=\"text\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" (click)=\"openColorPicker()\">\r\n <input type=\"color\" #colorPicker [value]=\"formControl.value\" (input)=\"onColorPickerChange($event)\" class=\"absolute opacity-0 right-55 top-full mt-1 z-10\" [class.hidden]=\"!showPicker\">\r\n <div class=\"w-5 h-5 rounded-full mr-4 cursor-pointer\" [style.background-color]=\"formControl.getRawValue()\" matSuffix (click)=\"openColorPicker()\"> </div>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n", styles: ["mat-form-field input[type=color]{width:auto;height:auto}:host{--color-picker-width: 250px}\n"] }]
|
|
6646
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], colorPicker: [{ type: i0.ViewChild, args: ['colorPicker', { isSignal: true }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
6648
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], colorPicker: [{ type: i0.ViewChild, args: ['colorPicker', { isSignal: true }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
6647
6649
|
|
|
6648
6650
|
class ValueInputDateComponent {
|
|
6649
6651
|
formControl = new FormControl(null);
|
|
6650
6652
|
destroy$ = new Subject();
|
|
6651
6653
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6652
6654
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6655
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6653
6656
|
onTouched = () => {
|
|
6654
6657
|
};
|
|
6655
6658
|
onValidatorChange;
|
|
@@ -6657,7 +6660,7 @@ class ValueInputDateComponent {
|
|
|
6657
6660
|
effect(() => {
|
|
6658
6661
|
const validators = this.validators() ?? [];
|
|
6659
6662
|
this.formControl.setValidators([...validators]);
|
|
6660
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6663
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6661
6664
|
});
|
|
6662
6665
|
}
|
|
6663
6666
|
// Control Value Accessor
|
|
@@ -6699,7 +6702,7 @@ class ValueInputDateComponent {
|
|
|
6699
6702
|
this.destroy$.complete();
|
|
6700
6703
|
}
|
|
6701
6704
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6702
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: ValueInputDateComponent, isStandalone: true, selector: "app-value-input-date", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6705
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.13", type: ValueInputDateComponent, isStandalone: true, selector: "app-value-input-date", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6703
6706
|
{
|
|
6704
6707
|
provide: NG_VALUE_ACCESSOR,
|
|
6705
6708
|
useExisting: forwardRef(() => ValueInputDateComponent),
|
|
@@ -6726,7 +6729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
6726
6729
|
multi: true,
|
|
6727
6730
|
}
|
|
6728
6731
|
], template: "<app-date-time-form-field [formControl]=\"formControl\" [validators]=\"validators()\" [showErrorInTooltip]=\"showErrorInTooltip()\" class=\"w-full\"></app-date-time-form-field>\r\n" }]
|
|
6729
|
-
}], ctorParameters: () => [], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
6732
|
+
}], ctorParameters: () => [], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
6730
6733
|
|
|
6731
6734
|
class ValueInputEnumComponent {
|
|
6732
6735
|
translate;
|
|
@@ -6739,12 +6742,13 @@ class ValueInputEnumComponent {
|
|
|
6739
6742
|
name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
6740
6743
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6741
6744
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6745
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6742
6746
|
constructor(translate) {
|
|
6743
6747
|
this.translate = translate;
|
|
6744
6748
|
effect(() => {
|
|
6745
6749
|
const validators = this.validators() ?? [];
|
|
6746
6750
|
this.formControl.setValidators([...validators]);
|
|
6747
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6751
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6748
6752
|
});
|
|
6749
6753
|
}
|
|
6750
6754
|
// ControlValueAccessor methods
|
|
@@ -6789,7 +6793,7 @@ class ValueInputEnumComponent {
|
|
|
6789
6793
|
this.destroy$.complete();
|
|
6790
6794
|
}
|
|
6791
6795
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputEnumComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6792
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputEnumComponent, isStandalone: true, selector: "app-value-input-enum", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6796
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputEnumComponent, isStandalone: true, selector: "app-value-input-enum", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6793
6797
|
{
|
|
6794
6798
|
provide: NG_VALUE_ACCESSOR,
|
|
6795
6799
|
useExisting: forwardRef(() => ValueInputEnumComponent),
|
|
@@ -6816,7 +6820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
6816
6820
|
multi: true,
|
|
6817
6821
|
}
|
|
6818
6822
|
], template: "<div class=\"w-full flex flex-col gap-y-2\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-form-field appearance=\"outline\" class=\"w-full\">\r\n <mat-label>{{ name() }}</mat-label>\r\n <mat-select [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\">\r\n @for (value of options(); track value) {\r\n <mat-option [value]=\"value\">{{ value }}</mat-option>\r\n }\r\n </mat-select>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n </mat-form-field>\r\n</div>\r\n" }]
|
|
6819
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
6823
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
6820
6824
|
|
|
6821
6825
|
class ValueInputHexadecimalComponent {
|
|
6822
6826
|
translate;
|
|
@@ -6824,12 +6828,13 @@ class ValueInputHexadecimalComponent {
|
|
|
6824
6828
|
destroy$ = new Subject();
|
|
6825
6829
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6826
6830
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6831
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6827
6832
|
constructor(translate) {
|
|
6828
6833
|
this.translate = translate;
|
|
6829
6834
|
effect(() => {
|
|
6830
6835
|
const validators = this.validators() ?? [];
|
|
6831
6836
|
this.formControl.setValidators([...validators, this.hexadecimalValidator]);
|
|
6832
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6837
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6833
6838
|
});
|
|
6834
6839
|
}
|
|
6835
6840
|
onTouched = () => {
|
|
@@ -6882,7 +6887,7 @@ class ValueInputHexadecimalComponent {
|
|
|
6882
6887
|
this.destroy$.complete();
|
|
6883
6888
|
}
|
|
6884
6889
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputHexadecimalComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6885
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputHexadecimalComponent, isStandalone: true, selector: "app-value-input-hexadecimal", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6890
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputHexadecimalComponent, isStandalone: true, selector: "app-value-input-hexadecimal", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6886
6891
|
{
|
|
6887
6892
|
provide: NG_VALUE_ACCESSOR,
|
|
6888
6893
|
useExisting: forwardRef(() => ValueInputHexadecimalComponent),
|
|
@@ -6909,7 +6914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
6909
6914
|
multi: true,
|
|
6910
6915
|
}
|
|
6911
6916
|
], template: "<mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ 'DATA_BROWSER.ATTRIBUTE_VALUE' | translate }}</mat-label>\r\n <input matInput type=\"text\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" autocomplete=\"off\"/>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n" }]
|
|
6912
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
6917
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
6913
6918
|
|
|
6914
6919
|
class ValueInputLinkComponent {
|
|
6915
6920
|
translate;
|
|
@@ -6917,6 +6922,7 @@ class ValueInputLinkComponent {
|
|
|
6917
6922
|
destroy$ = new Subject();
|
|
6918
6923
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
6919
6924
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
6925
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
6920
6926
|
onTouched = () => {
|
|
6921
6927
|
};
|
|
6922
6928
|
onValidatorChange;
|
|
@@ -6925,7 +6931,7 @@ class ValueInputLinkComponent {
|
|
|
6925
6931
|
effect(() => {
|
|
6926
6932
|
const validators = this.validators() ?? [];
|
|
6927
6933
|
this.formControl.setValidators([...validators, this.linkValidator]);
|
|
6928
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
6934
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
6929
6935
|
});
|
|
6930
6936
|
}
|
|
6931
6937
|
// ControlValueAccessor methods
|
|
@@ -6976,7 +6982,7 @@ class ValueInputLinkComponent {
|
|
|
6976
6982
|
this.destroy$.complete();
|
|
6977
6983
|
}
|
|
6978
6984
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputLinkComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6979
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputLinkComponent, isStandalone: true, selector: "app-value-input-link", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6985
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputLinkComponent, isStandalone: true, selector: "app-value-input-link", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6980
6986
|
{
|
|
6981
6987
|
provide: NG_VALUE_ACCESSOR,
|
|
6982
6988
|
useExisting: forwardRef(() => ValueInputLinkComponent),
|
|
@@ -7003,7 +7009,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7003
7009
|
multi: true,
|
|
7004
7010
|
}
|
|
7005
7011
|
], template: "<mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ 'DATA_BROWSER.ATTRIBUTE_VALUE' | translate }}</mat-label>\r\n <input matInput type=\"text\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" autocomplete=\"off\"/>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n" }]
|
|
7006
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7012
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7007
7013
|
|
|
7008
7014
|
class ValueInputLocationComponent {
|
|
7009
7015
|
translate;
|
|
@@ -7014,6 +7020,7 @@ class ValueInputLocationComponent {
|
|
|
7014
7020
|
});
|
|
7015
7021
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7016
7022
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7023
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7017
7024
|
onTouched = () => {
|
|
7018
7025
|
};
|
|
7019
7026
|
onValidatorChange;
|
|
@@ -7023,8 +7030,8 @@ class ValueInputLocationComponent {
|
|
|
7023
7030
|
const validators = this.validators() ?? [];
|
|
7024
7031
|
this.formGroup.get('latitude')?.setValidators([...validators, Validators.min(-90), Validators.max(90)]);
|
|
7025
7032
|
this.formGroup.get('longitude')?.setValidators([...validators, Validators.min(-180), Validators.max(180)]);
|
|
7026
|
-
this.formGroup.get('latitude')?.updateValueAndValidity({ emitEvent:
|
|
7027
|
-
this.formGroup.get('longitude')?.updateValueAndValidity({ emitEvent:
|
|
7033
|
+
this.formGroup.get('latitude')?.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7034
|
+
this.formGroup.get('longitude')?.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7028
7035
|
});
|
|
7029
7036
|
}
|
|
7030
7037
|
// ControlValueAccessor methods
|
|
@@ -7086,7 +7093,7 @@ class ValueInputLocationComponent {
|
|
|
7086
7093
|
this.destroy$.complete();
|
|
7087
7094
|
}
|
|
7088
7095
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputLocationComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7089
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputLocationComponent, isStandalone: true, selector: "app-value-input-location", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7096
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputLocationComponent, isStandalone: true, selector: "app-value-input-location", inputs: { validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7090
7097
|
{
|
|
7091
7098
|
provide: NG_VALUE_ACCESSOR,
|
|
7092
7099
|
useExisting: forwardRef(() => ValueInputLocationComponent),
|
|
@@ -7113,7 +7120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7113
7120
|
multi: true,
|
|
7114
7121
|
}
|
|
7115
7122
|
], template: "<form [formGroup]=\"formGroup\">\r\n <div class=\"flex flex-col gap-y-1\">\r\n <div class=\"flex gap-4 w-full justify-between items-start\">\r\n <mat-form-field class=\"flex-1\" [matTooltip]=\"getErrorTooltip('latitude')\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ 'DATA_BROWSER.ATTRIBUTE_LATITUDE' | translate }}</mat-label>\r\n <input matInput (paste)=\"handleLocationPaste($event, 'latitude')\" (blur)=\"this.formGroup.get('latitude')?.updateValueAndValidity({ emitEvent: false })\" formControlName=\"latitude\" type=\"number\" autocomplete=\"off\">\r\n\r\n @for (error of getErrors('latitude'); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate: {max: 90, min: -90} }}</mat-error>\r\n }\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-1\" [matTooltip]=\"getErrorTooltip('longitude')\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ 'DATA_BROWSER.ATTRIBUTE_LONGITUDE' | translate }}</mat-label>\r\n <input matInput (paste)=\"handleLocationPaste($event, 'longitude')\" (blur)=\"this.formGroup.get('longitude')?.updateValueAndValidity({ emitEvent: false })\" formControlName=\"longitude\" type=\"number\" autocomplete=\"off\">\r\n\r\n @for (error of getErrors('longitude'); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate: {max: 180, min: -180} }}</mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
7116
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7123
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7117
7124
|
|
|
7118
7125
|
class ValueInputNumericComponent {
|
|
7119
7126
|
translate;
|
|
@@ -7122,6 +7129,7 @@ class ValueInputNumericComponent {
|
|
|
7122
7129
|
name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
7123
7130
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7124
7131
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7132
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7125
7133
|
onTouched = () => {
|
|
7126
7134
|
};
|
|
7127
7135
|
onValidatorChange;
|
|
@@ -7130,7 +7138,7 @@ class ValueInputNumericComponent {
|
|
|
7130
7138
|
effect(() => {
|
|
7131
7139
|
const validators = this.validators() ?? [];
|
|
7132
7140
|
this.formControl.setValidators([...validators, this.numberValidator()]);
|
|
7133
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
7141
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7134
7142
|
});
|
|
7135
7143
|
}
|
|
7136
7144
|
validate() {
|
|
@@ -7183,7 +7191,7 @@ class ValueInputNumericComponent {
|
|
|
7183
7191
|
this.destroy$.complete();
|
|
7184
7192
|
}
|
|
7185
7193
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputNumericComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7186
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputNumericComponent, isStandalone: true, selector: "app-value-input-numeric", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7194
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputNumericComponent, isStandalone: true, selector: "app-value-input-numeric", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7187
7195
|
{
|
|
7188
7196
|
provide: NG_VALUE_ACCESSOR,
|
|
7189
7197
|
useExisting: forwardRef(() => ValueInputNumericComponent),
|
|
@@ -7210,7 +7218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7210
7218
|
multi: true,
|
|
7211
7219
|
}
|
|
7212
7220
|
], template: "<mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ name() }}</mat-label>\r\n <input matInput type=\"text\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" autocomplete=\"off\" wolkaboutLocalizedNumericInput/>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n" }]
|
|
7213
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7221
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7214
7222
|
|
|
7215
7223
|
class ValueInputStringComponent {
|
|
7216
7224
|
translate;
|
|
@@ -7219,6 +7227,7 @@ class ValueInputStringComponent {
|
|
|
7219
7227
|
destroy$ = new Subject();
|
|
7220
7228
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7221
7229
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7230
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7222
7231
|
onTouched = () => {
|
|
7223
7232
|
};
|
|
7224
7233
|
onValidatorChange;
|
|
@@ -7227,7 +7236,7 @@ class ValueInputStringComponent {
|
|
|
7227
7236
|
effect(() => {
|
|
7228
7237
|
const validators = this.validators() ?? [];
|
|
7229
7238
|
this.formControl.setValidators([...validators]);
|
|
7230
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
7239
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7231
7240
|
});
|
|
7232
7241
|
}
|
|
7233
7242
|
// ControlValueAccessor methods
|
|
@@ -7272,7 +7281,7 @@ class ValueInputStringComponent {
|
|
|
7272
7281
|
this.destroy$.complete();
|
|
7273
7282
|
}
|
|
7274
7283
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputStringComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7275
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputStringComponent, isStandalone: true, selector: "app-value-input-string", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7284
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputStringComponent, isStandalone: true, selector: "app-value-input-string", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7276
7285
|
{
|
|
7277
7286
|
provide: NG_VALUE_ACCESSOR,
|
|
7278
7287
|
useExisting: forwardRef(() => ValueInputStringComponent),
|
|
@@ -7299,7 +7308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7299
7308
|
multi: true,
|
|
7300
7309
|
}
|
|
7301
7310
|
], template: "<mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ name() }}</mat-label>\r\n <input matInput [type]=\"'text'\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" autocomplete=\"off\"/>\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate : {max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n" }]
|
|
7302
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7311
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7303
7312
|
|
|
7304
7313
|
class ValueInputVectorComponent {
|
|
7305
7314
|
translate;
|
|
@@ -7309,6 +7318,7 @@ class ValueInputVectorComponent {
|
|
|
7309
7318
|
name = input('', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
7310
7319
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7311
7320
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7321
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7312
7322
|
onTouched = () => {
|
|
7313
7323
|
};
|
|
7314
7324
|
onValidatorChange;
|
|
@@ -7317,7 +7327,7 @@ class ValueInputVectorComponent {
|
|
|
7317
7327
|
effect(() => {
|
|
7318
7328
|
const validators = this.validators() ?? [];
|
|
7319
7329
|
this.formControl.setValidators([...validators, this.validateOptions]);
|
|
7320
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
7330
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7321
7331
|
});
|
|
7322
7332
|
effect(() => {
|
|
7323
7333
|
const options = this.options();
|
|
@@ -7381,7 +7391,7 @@ class ValueInputVectorComponent {
|
|
|
7381
7391
|
this.destroy$.complete();
|
|
7382
7392
|
}
|
|
7383
7393
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputVectorComponent, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7384
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputVectorComponent, isStandalone: true, selector: "app-value-input-vector", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7394
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputVectorComponent, isStandalone: true, selector: "app-value-input-vector", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7385
7395
|
{
|
|
7386
7396
|
provide: NG_VALUE_ACCESSOR,
|
|
7387
7397
|
useExisting: forwardRef(() => ValueInputVectorComponent),
|
|
@@ -7408,7 +7418,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7408
7418
|
multi: true,
|
|
7409
7419
|
}
|
|
7410
7420
|
], template: "<div class=\"w-full flex flex-col gap-y-2\">\r\n <mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ name() }} ({{ options()?.join(',') }})</mat-label>\r\n <input matInput [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" class=\"w-full\">\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n </mat-form-field>\r\n</div>\r\n" }]
|
|
7411
|
-
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }] } });
|
|
7421
|
+
}], ctorParameters: () => [{ type: i1$1.TranslateService }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7412
7422
|
|
|
7413
7423
|
class ValueInputDurationComponent {
|
|
7414
7424
|
destroyRef;
|
|
@@ -7417,6 +7427,7 @@ class ValueInputDurationComponent {
|
|
|
7417
7427
|
formControl = new FormControl('');
|
|
7418
7428
|
validators = input(...(ngDevMode ? [undefined, { debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7419
7429
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7430
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7420
7431
|
durationValidator = (control) => {
|
|
7421
7432
|
const value = control.value;
|
|
7422
7433
|
if (value == null || value.trim() === '') {
|
|
@@ -7433,7 +7444,7 @@ class ValueInputDurationComponent {
|
|
|
7433
7444
|
effect(() => {
|
|
7434
7445
|
const validators = this.validators() ?? [];
|
|
7435
7446
|
this.formControl.setValidators([...validators, this.durationValidator]);
|
|
7436
|
-
this.formControl.updateValueAndValidity({ emitEvent:
|
|
7447
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7437
7448
|
});
|
|
7438
7449
|
}
|
|
7439
7450
|
writeValue(value) {
|
|
@@ -7497,7 +7508,7 @@ class ValueInputDurationComponent {
|
|
|
7497
7508
|
.reduce((a, b) => a + b, 0);
|
|
7498
7509
|
}
|
|
7499
7510
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputDurationComponent, deps: [{ token: i0.DestroyRef }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputDurationComponent, isStandalone: true, selector: "app-value-input-duration", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7511
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputDurationComponent, isStandalone: true, selector: "app-value-input-duration", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, validators: { classPropertyName: "validators", publicName: "validators", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7501
7512
|
{
|
|
7502
7513
|
provide: NG_VALUE_ACCESSOR,
|
|
7503
7514
|
useExisting: forwardRef(() => ValueInputDurationComponent),
|
|
@@ -7524,7 +7535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7524
7535
|
multi: true,
|
|
7525
7536
|
}
|
|
7526
7537
|
], template: "<mat-form-field class=\"w-full\" [matTooltip]=\"getErrorTooltip()\" [matTooltipDisabled]=\"!showErrorInTooltip()\">\r\n <mat-label>{{ name() }}</mat-label>\r\n <input matInput [type]=\"'text'\" [formControl]=\"formControl\" (blur)=\"formControl.updateValueAndValidity({ emitEvent: false })\" autocomplete=\"off\"/>\r\n\r\n @for (error of getErrors(); track error) {\r\n <mat-error *ngIf=\"!showErrorInTooltip()\">{{ 'COMMON.ERROR_VALIDATION_' + error | translate :{max: formControl.getError('maxlength')?.requiredLength} }}</mat-error>\r\n }\r\n</mat-form-field>\r\n" }]
|
|
7527
|
-
}], ctorParameters: () => [{ type: i0.DestroyRef }, { type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7538
|
+
}], ctorParameters: () => [{ type: i0.DestroyRef }, { type: i1$1.TranslateService }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], validators: [{ type: i0.Input, args: [{ isSignal: true, alias: "validators", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7528
7539
|
|
|
7529
7540
|
class ValueInputComponent {
|
|
7530
7541
|
name = input.required(...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
@@ -7532,6 +7543,7 @@ class ValueInputComponent {
|
|
|
7532
7543
|
options = input(...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
7533
7544
|
validationConditions = input(...(ngDevMode ? [undefined, { debugName: "validationConditions" }] : /* istanbul ignore next */ []));
|
|
7534
7545
|
showErrorInTooltip = input(false, ...(ngDevMode ? [{ debugName: "showErrorInTooltip" }] : /* istanbul ignore next */ []));
|
|
7546
|
+
emitValidityUpdate = input(true, ...(ngDevMode ? [{ debugName: "emitValidityUpdate" }] : /* istanbul ignore next */ []));
|
|
7535
7547
|
validators = signal([], ...(ngDevMode ? [{ debugName: "validators" }] : /* istanbul ignore next */ []));
|
|
7536
7548
|
formControl = new FormControl(null);
|
|
7537
7549
|
onValidatorChange;
|
|
@@ -7540,7 +7552,7 @@ class ValueInputComponent {
|
|
|
7540
7552
|
const validationConditions = this.validationConditions();
|
|
7541
7553
|
const dataType = this.dataType();
|
|
7542
7554
|
this.setValidators(validationConditions, dataType);
|
|
7543
|
-
this.formControl.updateValueAndValidity();
|
|
7555
|
+
this.formControl.updateValueAndValidity({ emitEvent: this.emitValidityUpdate() });
|
|
7544
7556
|
});
|
|
7545
7557
|
}
|
|
7546
7558
|
validate() {
|
|
@@ -7593,7 +7605,7 @@ class ValueInputComponent {
|
|
|
7593
7605
|
}
|
|
7594
7606
|
DataType = DataType;
|
|
7595
7607
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7596
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputComponent, isStandalone: true, selector: "app-value-input", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, validationConditions: { classPropertyName: "validationConditions", publicName: "validationConditions", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7608
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: ValueInputComponent, isStandalone: true, selector: "app-value-input", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, validationConditions: { classPropertyName: "validationConditions", publicName: "validationConditions", isSignal: true, isRequired: false, transformFunction: null }, showErrorInTooltip: { classPropertyName: "showErrorInTooltip", publicName: "showErrorInTooltip", isSignal: true, isRequired: false, transformFunction: null }, emitValidityUpdate: { classPropertyName: "emitValidityUpdate", publicName: "emitValidityUpdate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7597
7609
|
{
|
|
7598
7610
|
provide: NG_VALUE_ACCESSOR,
|
|
7599
7611
|
useExisting: forwardRef(() => ValueInputComponent),
|
|
@@ -7604,7 +7616,7 @@ class ValueInputComponent {
|
|
|
7604
7616
|
useExisting: forwardRef(() => ValueInputComponent),
|
|
7605
7617
|
multi: true,
|
|
7606
7618
|
}
|
|
7607
|
-
], ngImport: i0, template: "@switch (dataType()) {\r\n @case (DataType.STRING) {\r\n <app-value-input-string [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.NUMERIC) {\r\n <app-value-input-numeric [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.BOOLEAN) {\r\n <app-value-input-boolean [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.HEXADECIMAL) {\r\n <app-value-input-hexadecimal [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.COLOR) {\r\n <app-value-input-color [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.LINK) {\r\n <app-value-input-link [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.DATE) {\r\n <app-value-input-date [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.DURATION) {\r\n <app-value-input-duration [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.LOCATION) {\r\n <app-value-input-location [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.VECTOR) {\r\n <app-value-input-vector [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\"/>\r\n }\r\n @case (DataType.ENUM) {\r\n <app-value-input-enum [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\"/>\r\n }\r\n}\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SharedModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ValueInputBooleanComponent, selector: "app-value-input-boolean", inputs: ["name", "validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputColorComponent, selector: "app-value-input-color", inputs: ["name", "validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputDateComponent, selector: "app-value-input-date", inputs: ["validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputEnumComponent, selector: "app-value-input-enum", inputs: ["options", "name", "validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputHexadecimalComponent, selector: "app-value-input-hexadecimal", inputs: ["validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputLinkComponent, selector: "app-value-input-link", inputs: ["validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputLocationComponent, selector: "app-value-input-location", inputs: ["validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputNumericComponent, selector: "app-value-input-numeric", inputs: ["name", "validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputStringComponent, selector: "app-value-input-string", inputs: ["name", "validators", "showErrorInTooltip"] }, { kind: "component", type: ValueInputVectorComponent, selector: "app-value-input-vector", inputs: ["options", "name", "showErrorInTooltip", "validators"] }, { kind: "component", type: ValueInputDurationComponent, selector: "app-value-input-duration", inputs: ["name", "validators", "showErrorInTooltip"] }] });
|
|
7619
|
+
], ngImport: i0, template: "@switch (dataType()) {\r\n @case (DataType.STRING) {\r\n <app-value-input-string [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.NUMERIC) {\r\n <app-value-input-numeric [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.BOOLEAN) {\r\n <app-value-input-boolean [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.HEXADECIMAL) {\r\n <app-value-input-hexadecimal [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.COLOR) {\r\n <app-value-input-color [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.LINK) {\r\n <app-value-input-link [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.DATE) {\r\n <app-value-input-date [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.DURATION) {\r\n <app-value-input-duration [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.LOCATION) {\r\n <app-value-input-location [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.VECTOR) {\r\n <app-value-input-vector [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.ENUM) {\r\n <app-value-input-enum [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n}\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SharedModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ValueInputBooleanComponent, selector: "app-value-input-boolean", inputs: ["name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputColorComponent, selector: "app-value-input-color", inputs: ["name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputDateComponent, selector: "app-value-input-date", inputs: ["validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputEnumComponent, selector: "app-value-input-enum", inputs: ["options", "name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputHexadecimalComponent, selector: "app-value-input-hexadecimal", inputs: ["validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputLinkComponent, selector: "app-value-input-link", inputs: ["validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputLocationComponent, selector: "app-value-input-location", inputs: ["validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputNumericComponent, selector: "app-value-input-numeric", inputs: ["name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputStringComponent, selector: "app-value-input-string", inputs: ["name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }, { kind: "component", type: ValueInputVectorComponent, selector: "app-value-input-vector", inputs: ["options", "name", "showErrorInTooltip", "validators", "emitValidityUpdate"] }, { kind: "component", type: ValueInputDurationComponent, selector: "app-value-input-duration", inputs: ["name", "validators", "showErrorInTooltip", "emitValidityUpdate"] }] });
|
|
7608
7620
|
}
|
|
7609
7621
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: ValueInputComponent, decorators: [{
|
|
7610
7622
|
type: Component,
|
|
@@ -7619,8 +7631,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImpo
|
|
|
7619
7631
|
useExisting: forwardRef(() => ValueInputComponent),
|
|
7620
7632
|
multi: true,
|
|
7621
7633
|
}
|
|
7622
|
-
], template: "@switch (dataType()) {\r\n @case (DataType.STRING) {\r\n <app-value-input-string [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.NUMERIC) {\r\n <app-value-input-numeric [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.BOOLEAN) {\r\n <app-value-input-boolean [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.HEXADECIMAL) {\r\n <app-value-input-hexadecimal [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.COLOR) {\r\n <app-value-input-color [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.LINK) {\r\n <app-value-input-link [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.DATE) {\r\n <app-value-input-date [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.DURATION) {\r\n <app-value-input-duration [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.LOCATION) {\r\n <app-value-input-location [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\"/>\r\n }\r\n @case (DataType.VECTOR) {\r\n <app-value-input-vector [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\"/>\r\n }\r\n @case (DataType.ENUM) {\r\n <app-value-input-enum [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\"/>\r\n }\r\n}\r\n" }]
|
|
7623
|
-
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], validationConditions: [{ type: i0.Input, args: [{ isSignal: true, alias: "validationConditions", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }] } });
|
|
7634
|
+
], template: "@switch (dataType()) {\r\n @case (DataType.STRING) {\r\n <app-value-input-string [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.NUMERIC) {\r\n <app-value-input-numeric [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.BOOLEAN) {\r\n <app-value-input-boolean [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.HEXADECIMAL) {\r\n <app-value-input-hexadecimal [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.COLOR) {\r\n <app-value-input-color [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.LINK) {\r\n <app-value-input-link [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.DATE) {\r\n <app-value-input-date [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.DURATION) {\r\n <app-value-input-duration [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.LOCATION) {\r\n <app-value-input-location [showErrorInTooltip]=\"showErrorInTooltip()\" [validators]=\"validators()\" [formControl]=\"formControl\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.VECTOR) {\r\n <app-value-input-vector [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n @case (DataType.ENUM) {\r\n <app-value-input-enum [showErrorInTooltip]=\"showErrorInTooltip()\" [name]=\"name()\" [validators]=\"validators()\" [formControl]=\"formControl\" [options]=\"options()\" [emitValidityUpdate]=\"emitValidityUpdate()\"/>\r\n }\r\n}\r\n" }]
|
|
7635
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], validationConditions: [{ type: i0.Input, args: [{ isSignal: true, alias: "validationConditions", required: false }] }], showErrorInTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrorInTooltip", required: false }] }], emitValidityUpdate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitValidityUpdate", required: false }] }] } });
|
|
7624
7636
|
|
|
7625
7637
|
class DoubleDrawerLayoutComponent {
|
|
7626
7638
|
dialog = inject(MatDialog);
|