@recursyve/nice-ui-kit.v2 14.0.0-beta.128 → 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/api/nice.api.mjs +13 -4
- package/esm2020/lib/components/translation-form/components/translation-form.component.mjs +12 -7
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +24 -9
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +23 -9
- 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
- package/src/lib/components/navigation/vertical/vertical.theme.scss +1 -1
|
@@ -636,12 +636,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
636
636
|
function mixinNiceApi(base) {
|
|
637
637
|
return class extends base {
|
|
638
638
|
url(route = "") {
|
|
639
|
-
if (
|
|
640
|
-
|
|
639
|
+
if (!this.path || this.path === "") {
|
|
640
|
+
if (route === "") {
|
|
641
|
+
return this.apiUrl;
|
|
642
|
+
}
|
|
643
|
+
if (route === "/") {
|
|
644
|
+
return `${this.apiUrl}/`;
|
|
645
|
+
}
|
|
646
|
+
return `${this.apiUrl}/${route}`;
|
|
641
647
|
}
|
|
642
|
-
|
|
648
|
+
if (route === "") {
|
|
643
649
|
return `${this.apiUrl}/${this.path}`;
|
|
644
650
|
}
|
|
651
|
+
if (route === "/") {
|
|
652
|
+
return `${this.apiUrl}/${this.path}/`;
|
|
653
|
+
}
|
|
645
654
|
return `${this.apiUrl}/${this.path}/${route}`;
|
|
646
655
|
}
|
|
647
656
|
delete(route = "", options) {
|
|
@@ -10570,12 +10579,7 @@ class TranslationFormComponent {
|
|
|
10570
10579
|
}
|
|
10571
10580
|
set disabled(value) {
|
|
10572
10581
|
this._disabled = coerceBooleanProperty(value);
|
|
10573
|
-
|
|
10574
|
-
this.currentControl.disable({ emitEvent: false });
|
|
10575
|
-
}
|
|
10576
|
-
else {
|
|
10577
|
-
this.currentControl.enable({ emitEvent: false });
|
|
10578
|
-
}
|
|
10582
|
+
this.handleDisabledState();
|
|
10579
10583
|
this.stateChanges.next();
|
|
10580
10584
|
}
|
|
10581
10585
|
set placeholder(placeholder) {
|
|
@@ -10639,6 +10643,7 @@ class TranslationFormComponent {
|
|
|
10639
10643
|
}
|
|
10640
10644
|
setLanguage(language) {
|
|
10641
10645
|
this.currentControl = this.formGroup.get(language);
|
|
10646
|
+
this.handleDisabledState();
|
|
10642
10647
|
this.changeDetectorRef.markForCheck();
|
|
10643
10648
|
}
|
|
10644
10649
|
setupFormControls(languages) {
|
|
@@ -10652,6 +10657,15 @@ class TranslationFormComponent {
|
|
|
10652
10657
|
this.formGroup.removeControl(key);
|
|
10653
10658
|
}
|
|
10654
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
|
+
}
|
|
10655
10669
|
}
|
|
10656
10670
|
}
|
|
10657
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 });
|