ng-tailwind 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/ng-tailwind.mjs
CHANGED
|
@@ -9687,7 +9687,7 @@ class NgtReactiveInputComponent extends NgtControlValueAccessor {
|
|
|
9687
9687
|
this.inputPaddingClass(),
|
|
9688
9688
|
this.ngtStyle.compile(['h', 'text', 'color.border', 'color.bg', 'color.text', 'rounded', 'cursor'])
|
|
9689
9689
|
];
|
|
9690
|
-
if (this.formControlHasErrors() && this.formControlIsDirty()
|
|
9690
|
+
if (this.formControlHasErrors() && (this.formControlIsDirty() || this.touched())) {
|
|
9691
9691
|
classes.push('input-has-error border-red-700');
|
|
9692
9692
|
}
|
|
9693
9693
|
return classes.join(' ');
|
|
@@ -9948,7 +9948,7 @@ class NgtReactiveTextareaComponent extends NgtControlValueAccessor {
|
|
|
9948
9948
|
'flex border appearance-none focus:outline-none leading-tight w-full px-4 py-3',
|
|
9949
9949
|
this.ngtStyle.compile(['text', 'color.border', 'color.bg', 'color.text', 'rounded'])
|
|
9950
9950
|
];
|
|
9951
|
-
if (this.formControlHasErrors() && this.formControlIsDirty()
|
|
9951
|
+
if (this.formControlHasErrors() && (this.formControlIsDirty() || this.touched())) {
|
|
9952
9952
|
classes.push('input-has-error border-red-700');
|
|
9953
9953
|
}
|
|
9954
9954
|
return classes.join(' ');
|
|
@@ -10728,7 +10728,7 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
|
|
|
10728
10728
|
if (this.isDisabledState()) {
|
|
10729
10729
|
selectClass += ' select-border-disabled';
|
|
10730
10730
|
}
|
|
10731
|
-
else if (this.stateService.formControlHasErrors() && this.stateService.formControlIsDirty()
|
|
10731
|
+
else if (this.stateService.formControlHasErrors() && (this.stateService.formControlIsDirty() || this.touched())) {
|
|
10732
10732
|
selectClass += ' select-border-error';
|
|
10733
10733
|
}
|
|
10734
10734
|
else {
|
|
@@ -11166,7 +11166,7 @@ class NgtReactiveDateComponent extends NgtControlValueAccessor {
|
|
|
11166
11166
|
'overflow-hidden border',
|
|
11167
11167
|
this.ngtStyle.compile(['h', 'color.text', 'px', 'py', 'text', 'rounded', 'color.bg', 'color.border'])
|
|
11168
11168
|
];
|
|
11169
|
-
if (this.formControlHasErrors() && this.formControlIsDirty()
|
|
11169
|
+
if (this.formControlHasErrors() && (this.formControlIsDirty() || this.touched())) {
|
|
11170
11170
|
classes.push('border-error');
|
|
11171
11171
|
}
|
|
11172
11172
|
return classes.join(' ');
|