@corp-products/ui-components 4.1.6 → 4.1.8
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.
|
@@ -45,7 +45,7 @@ import * as i1$5 from 'primeng/toggleswitch';
|
|
|
45
45
|
import { ToggleSwitchModule } from 'primeng/toggleswitch';
|
|
46
46
|
import * as i1$6 from '@ng-bootstrap/ng-bootstrap';
|
|
47
47
|
import { NgbDatepickerI18n, NgbCalendarIslamicUmalqura, NgbDatepickerModule, NgbCalendar, NgbCalendarGregorian, NgbDate } from '@ng-bootstrap/ng-bootstrap';
|
|
48
|
-
import { trigger, state,
|
|
48
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
49
49
|
import '@angular/localize/init';
|
|
50
50
|
import * as i2$4 from 'primeng/accordion';
|
|
51
51
|
import { AccordionModule } from 'primeng/accordion';
|
|
@@ -766,6 +766,7 @@ var ErrorsWithValuesKeysEnum;
|
|
|
766
766
|
ErrorsWithValuesKeysEnum["maxSize"] = "MAX_SIZE";
|
|
767
767
|
ErrorsWithValuesKeysEnum["maxFiles"] = "MAX_FILES";
|
|
768
768
|
ErrorsWithValuesKeysEnum["allowedTypes"] = "ALLOWED_TYPES";
|
|
769
|
+
ErrorsWithValuesKeysEnum["emailDomain"] = "EMAIL_DOMAIN";
|
|
769
770
|
ErrorsWithValuesKeysEnum["maxRepeatedChars"] = "MAX_REPEATED_CHARS";
|
|
770
771
|
})(ErrorsWithValuesKeysEnum || (ErrorsWithValuesKeysEnum = {}));
|
|
771
772
|
|
|
@@ -809,6 +810,7 @@ class FormValidationService {
|
|
|
809
810
|
maxSize: (val) => this.getTranslation(ErrorsWithValuesKeysEnum.maxSize, { size: val?.requiredLength }),
|
|
810
811
|
maxFiles: (val) => this.getTranslation(ErrorsWithValuesKeysEnum.maxFiles, { size: val?.requiredLength }),
|
|
811
812
|
allowedTypes: (val) => this.getTranslation(ErrorsWithValuesKeysEnum.allowedTypes, { types: val?.join(', ') }),
|
|
813
|
+
emailDomain: () => this.getTranslation(ErrorsWithValuesKeysEnum.emailDomain),
|
|
812
814
|
};
|
|
813
815
|
return messages[errorKey](errorValue);
|
|
814
816
|
}
|
|
@@ -1133,7 +1135,7 @@ class DatePickerComponent extends BaseInputComponent {
|
|
|
1133
1135
|
constructor() {
|
|
1134
1136
|
super();
|
|
1135
1137
|
}
|
|
1136
|
-
|
|
1138
|
+
ngAfterViewInit() {
|
|
1137
1139
|
if (typeof this.control?.value === 'string') {
|
|
1138
1140
|
const date = new Date(this.control.value);
|
|
1139
1141
|
if (date) {
|