reneco-hierarchized-picker 0.4.2-beta.10 → 0.4.2-beta.11
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/dist/cjs/reneco-hierarchized-picker_2.cjs.entry.js +9 -8
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +9 -8
- package/dist/custom-elements/index.js +9 -8
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +9 -8
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-c5e8c2f8.entry.js → p-1250bf7d.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-1a128ef2.system.entry.js → p-9191110a.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
|
@@ -19105,15 +19105,17 @@ const HierarchizedPickerComponent = class {
|
|
|
19105
19105
|
}
|
|
19106
19106
|
}
|
|
19107
19107
|
getContextualApiURL() {
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19108
|
+
const { options, url } = this.optionsManager.getOptions();
|
|
19109
|
+
if (options.Reach) {
|
|
19110
|
+
// Use a base URL for relative paths
|
|
19111
|
+
const base = window.location.origin; // fallback for relative URLs
|
|
19112
|
+
const parsedUrl = new URL(url, base);
|
|
19113
|
+
const pathSegments = parsedUrl.pathname.split('/');
|
|
19111
19114
|
const dynamicType = pathSegments[pathSegments.length - 2];
|
|
19112
|
-
const newPathname = `/api/v1/classification/reach/${dynamicType}/${
|
|
19113
|
-
return `${
|
|
19115
|
+
const newPathname = `/api/v1/classification/reach/${dynamicType}/${options.Reach}`;
|
|
19116
|
+
return `${parsedUrl.origin}${newPathname}`;
|
|
19114
19117
|
}
|
|
19115
|
-
|
|
19116
|
-
return this.optionsManager.getOptions().url;
|
|
19118
|
+
return url;
|
|
19117
19119
|
}
|
|
19118
19120
|
getContextualApiParams(options = null) {
|
|
19119
19121
|
if (!options)
|
|
@@ -19129,7 +19131,6 @@ const HierarchizedPickerComponent = class {
|
|
|
19129
19131
|
optionsToReturn.startingnode = optionsToReturn.StartNodeID;
|
|
19130
19132
|
delete optionsToReturn.StartNodeID;
|
|
19131
19133
|
}
|
|
19132
|
-
console.log("JE RETOURNE", optionsToReturn);
|
|
19133
19134
|
return optionsToReturn;
|
|
19134
19135
|
}
|
|
19135
19136
|
else
|
|
@@ -447,15 +447,17 @@ export class HierarchizedPickerComponent {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
getContextualApiURL() {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
const { options, url } = this.optionsManager.getOptions();
|
|
451
|
+
if (options.Reach) {
|
|
452
|
+
// Use a base URL for relative paths
|
|
453
|
+
const base = window.location.origin; // fallback for relative URLs
|
|
454
|
+
const parsedUrl = new URL(url, base);
|
|
455
|
+
const pathSegments = parsedUrl.pathname.split('/');
|
|
453
456
|
const dynamicType = pathSegments[pathSegments.length - 2];
|
|
454
|
-
const newPathname = `/api/v1/classification/reach/${dynamicType}/${
|
|
455
|
-
return `${
|
|
457
|
+
const newPathname = `/api/v1/classification/reach/${dynamicType}/${options.Reach}`;
|
|
458
|
+
return `${parsedUrl.origin}${newPathname}`;
|
|
456
459
|
}
|
|
457
|
-
|
|
458
|
-
return this.optionsManager.getOptions().url;
|
|
460
|
+
return url;
|
|
459
461
|
}
|
|
460
462
|
getContextualApiParams(options = null) {
|
|
461
463
|
if (!options)
|
|
@@ -471,7 +473,6 @@ export class HierarchizedPickerComponent {
|
|
|
471
473
|
optionsToReturn.startingnode = optionsToReturn.StartNodeID;
|
|
472
474
|
delete optionsToReturn.StartNodeID;
|
|
473
475
|
}
|
|
474
|
-
console.log("JE RETOURNE", optionsToReturn);
|
|
475
476
|
return optionsToReturn;
|
|
476
477
|
}
|
|
477
478
|
else
|
|
@@ -19103,15 +19103,17 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19103
19103
|
}
|
|
19104
19104
|
}
|
|
19105
19105
|
getContextualApiURL() {
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19106
|
+
const { options, url } = this.optionsManager.getOptions();
|
|
19107
|
+
if (options.Reach) {
|
|
19108
|
+
// Use a base URL for relative paths
|
|
19109
|
+
const base = window.location.origin; // fallback for relative URLs
|
|
19110
|
+
const parsedUrl = new URL(url, base);
|
|
19111
|
+
const pathSegments = parsedUrl.pathname.split('/');
|
|
19109
19112
|
const dynamicType = pathSegments[pathSegments.length - 2];
|
|
19110
|
-
const newPathname = `/api/v1/classification/reach/${dynamicType}/${
|
|
19111
|
-
return `${
|
|
19113
|
+
const newPathname = `/api/v1/classification/reach/${dynamicType}/${options.Reach}`;
|
|
19114
|
+
return `${parsedUrl.origin}${newPathname}`;
|
|
19112
19115
|
}
|
|
19113
|
-
|
|
19114
|
-
return this.optionsManager.getOptions().url;
|
|
19116
|
+
return url;
|
|
19115
19117
|
}
|
|
19116
19118
|
getContextualApiParams(options = null) {
|
|
19117
19119
|
if (!options)
|
|
@@ -19127,7 +19129,6 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19127
19129
|
optionsToReturn.startingnode = optionsToReturn.StartNodeID;
|
|
19128
19130
|
delete optionsToReturn.StartNodeID;
|
|
19129
19131
|
}
|
|
19130
|
-
console.log("JE RETOURNE", optionsToReturn);
|
|
19131
19132
|
return optionsToReturn;
|
|
19132
19133
|
}
|
|
19133
19134
|
else
|
|
@@ -19101,15 +19101,17 @@ const HierarchizedPickerComponent = class {
|
|
|
19101
19101
|
}
|
|
19102
19102
|
}
|
|
19103
19103
|
getContextualApiURL() {
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19104
|
+
const { options, url } = this.optionsManager.getOptions();
|
|
19105
|
+
if (options.Reach) {
|
|
19106
|
+
// Use a base URL for relative paths
|
|
19107
|
+
const base = window.location.origin; // fallback for relative URLs
|
|
19108
|
+
const parsedUrl = new URL(url, base);
|
|
19109
|
+
const pathSegments = parsedUrl.pathname.split('/');
|
|
19107
19110
|
const dynamicType = pathSegments[pathSegments.length - 2];
|
|
19108
|
-
const newPathname = `/api/v1/classification/reach/${dynamicType}/${
|
|
19109
|
-
return `${
|
|
19111
|
+
const newPathname = `/api/v1/classification/reach/${dynamicType}/${options.Reach}`;
|
|
19112
|
+
return `${parsedUrl.origin}${newPathname}`;
|
|
19110
19113
|
}
|
|
19111
|
-
|
|
19112
|
-
return this.optionsManager.getOptions().url;
|
|
19114
|
+
return url;
|
|
19113
19115
|
}
|
|
19114
19116
|
getContextualApiParams(options = null) {
|
|
19115
19117
|
if (!options)
|
|
@@ -19125,7 +19127,6 @@ const HierarchizedPickerComponent = class {
|
|
|
19125
19127
|
optionsToReturn.startingnode = optionsToReturn.StartNodeID;
|
|
19126
19128
|
delete optionsToReturn.StartNodeID;
|
|
19127
19129
|
}
|
|
19128
|
-
console.log("JE RETOURNE", optionsToReturn);
|
|
19129
19130
|
return optionsToReturn;
|
|
19130
19131
|
}
|
|
19131
19132
|
else
|