@recursyve/nice-ui-kit.v2 14.0.0-beta.127 → 14.0.0-beta.129
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/fesm2015/recursyve-nice-ui-kit.v2.mjs +12 -3
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +12 -3
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- 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) {
|