@recursyve/nice-ui-kit.v2 14.0.0-beta.129 → 14.0.0-beta.130
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/esm2020/lib/components/translation-form/components/translation-form.component.mjs +12 -7
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +12 -6
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +11 -6
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/translation-form/components/translation-form.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10579,12 +10579,7 @@ class TranslationFormComponent {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
set disabled(value) {
|
|
10581
10581
|
this._disabled = coerceBooleanProperty(value);
|
|
10582
|
-
|
|
10583
|
-
this.currentControl.disable({ emitEvent: false });
|
|
10584
|
-
}
|
|
10585
|
-
else {
|
|
10586
|
-
this.currentControl.enable({ emitEvent: false });
|
|
10587
|
-
}
|
|
10582
|
+
this.handleDisabledState();
|
|
10588
10583
|
this.stateChanges.next();
|
|
10589
10584
|
}
|
|
10590
10585
|
set placeholder(placeholder) {
|
|
@@ -10648,6 +10643,7 @@ class TranslationFormComponent {
|
|
|
10648
10643
|
}
|
|
10649
10644
|
setLanguage(language) {
|
|
10650
10645
|
this.currentControl = this.formGroup.get(language);
|
|
10646
|
+
this.handleDisabledState();
|
|
10651
10647
|
this.changeDetectorRef.markForCheck();
|
|
10652
10648
|
}
|
|
10653
10649
|
setupFormControls(languages) {
|
|
@@ -10661,6 +10657,15 @@ class TranslationFormComponent {
|
|
|
10661
10657
|
this.formGroup.removeControl(key);
|
|
10662
10658
|
}
|
|
10663
10659
|
this.currentControl = this.formGroup.get(languages[0]);
|
|
10660
|
+
this.handleDisabledState();
|
|
10661
|
+
}
|
|
10662
|
+
handleDisabledState() {
|
|
10663
|
+
if (this._disabled) {
|
|
10664
|
+
this.currentControl?.disable({ emitEvent: false });
|
|
10665
|
+
}
|
|
10666
|
+
else {
|
|
10667
|
+
this.currentControl?.enable({ emitEvent: false });
|
|
10668
|
+
}
|
|
10664
10669
|
}
|
|
10665
10670
|
}
|
|
10666
10671
|
TranslationFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: TranslationFormComponent, deps: [{ token: i1$3.ControlContainer }, { token: TranslationContextDirective }, { token: NiceTranslationFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|