@recursyve/nice-ui-kit.v2 15.0.0-beta.128 → 15.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.
@@ -638,12 +638,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
638
638
  function mixinNiceApi(base) {
639
639
  return class extends base {
640
640
  url(route = "") {
641
- if (route === "" && (!this.path || this.path === "")) {
642
- return this.apiUrl;
641
+ if (!this.path || this.path === "") {
642
+ if (route === "") {
643
+ return this.apiUrl;
644
+ }
645
+ if (route === "/") {
646
+ return `${this.apiUrl}/`;
647
+ }
648
+ return `${this.apiUrl}/${route}`;
643
649
  }
644
- else if (route === "") {
650
+ if (route === "") {
645
651
  return `${this.apiUrl}/${this.path}`;
646
652
  }
653
+ if (route === "/") {
654
+ return `${this.apiUrl}/${this.path}/`;
655
+ }
647
656
  return `${this.apiUrl}/${this.path}/${route}`;
648
657
  }
649
658
  delete(route = "", options) {
@@ -5365,7 +5374,7 @@ class NiceControlStatusDirective {
5365
5374
  }
5366
5375
  ngAfterViewInit() {
5367
5376
  this.control = this.formField._control.ngControl;
5368
- this.control.statusChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(() => this.onChange());
5377
+ this.formField._control.stateChanges.pipe(takeUntil(this.unsubscribeAll$)).subscribe(() => this.onChange());
5369
5378
  }
5370
5379
  ngOnDestroy() {
5371
5380
  this.unsubscribeAll$.next();