reneco-hierarchized-picker 0.4.0-beta.4 → 0.4.0-beta.6
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 +19 -3
- package/dist/collection/core/raw-data-manager.js +19 -3
- package/dist/custom-elements/index.js +19 -3
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +19 -3
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/p-5ef6194e.system.entry.js +3 -0
- package/dist/reneco-hierarchized-picker/{p-42488027.entry.js → p-66f22909.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
- package/dist/reneco-hierarchized-picker/p-9cdaaa71.system.entry.js +0 -3
|
@@ -18068,9 +18068,25 @@ class RawDataManager {
|
|
|
18068
18068
|
}
|
|
18069
18069
|
// Fetch data from classification
|
|
18070
18070
|
async getFromClassification(endpoint, options, loader) {
|
|
18071
|
-
|
|
18072
|
-
const
|
|
18073
|
-
|
|
18071
|
+
let pathSegment = '';
|
|
18072
|
+
const queryParams = [];
|
|
18073
|
+
for (const key in options) {
|
|
18074
|
+
if (!options.hasOwnProperty(key))
|
|
18075
|
+
continue;
|
|
18076
|
+
const value = options[key];
|
|
18077
|
+
const lowerKey = key.toLowerCase();
|
|
18078
|
+
if ((lowerKey === 'startnode' || lowerKey === 'startnodeid') && !pathSegment) {
|
|
18079
|
+
pathSegment = encodeURIComponent(value);
|
|
18080
|
+
continue; // Skip adding this to the query string
|
|
18081
|
+
}
|
|
18082
|
+
// Add other keys to query string
|
|
18083
|
+
queryParams.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
18084
|
+
}
|
|
18085
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
18086
|
+
const newUrl = pathSegment
|
|
18087
|
+
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18088
|
+
: `${endpoint}/${queryString}`;
|
|
18089
|
+
await this.makeRequest('GET', newUrl, null, loader).then((data) => {
|
|
18074
18090
|
this.loadData(data);
|
|
18075
18091
|
});
|
|
18076
18092
|
return;
|
|
@@ -42,9 +42,25 @@ export class RawDataManager {
|
|
|
42
42
|
}
|
|
43
43
|
// Fetch data from classification
|
|
44
44
|
async getFromClassification(endpoint, options, loader) {
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
45
|
+
let pathSegment = '';
|
|
46
|
+
const queryParams = [];
|
|
47
|
+
for (const key in options) {
|
|
48
|
+
if (!options.hasOwnProperty(key))
|
|
49
|
+
continue;
|
|
50
|
+
const value = options[key];
|
|
51
|
+
const lowerKey = key.toLowerCase();
|
|
52
|
+
if ((lowerKey === 'startnode' || lowerKey === 'startnodeid') && !pathSegment) {
|
|
53
|
+
pathSegment = encodeURIComponent(value);
|
|
54
|
+
continue; // Skip adding this to the query string
|
|
55
|
+
}
|
|
56
|
+
// Add other keys to query string
|
|
57
|
+
queryParams.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
58
|
+
}
|
|
59
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
60
|
+
const newUrl = pathSegment
|
|
61
|
+
? `${endpoint}/${pathSegment}/${queryString}`
|
|
62
|
+
: `${endpoint}/${queryString}`;
|
|
63
|
+
await this.makeRequest('GET', newUrl, null, loader).then((data) => {
|
|
48
64
|
this.loadData(data);
|
|
49
65
|
});
|
|
50
66
|
return;
|
|
@@ -18065,9 +18065,25 @@ class RawDataManager {
|
|
|
18065
18065
|
}
|
|
18066
18066
|
// Fetch data from classification
|
|
18067
18067
|
async getFromClassification(endpoint, options, loader) {
|
|
18068
|
-
|
|
18069
|
-
const
|
|
18070
|
-
|
|
18068
|
+
let pathSegment = '';
|
|
18069
|
+
const queryParams = [];
|
|
18070
|
+
for (const key in options) {
|
|
18071
|
+
if (!options.hasOwnProperty(key))
|
|
18072
|
+
continue;
|
|
18073
|
+
const value = options[key];
|
|
18074
|
+
const lowerKey = key.toLowerCase();
|
|
18075
|
+
if ((lowerKey === 'startnode' || lowerKey === 'startnodeid') && !pathSegment) {
|
|
18076
|
+
pathSegment = encodeURIComponent(value);
|
|
18077
|
+
continue; // Skip adding this to the query string
|
|
18078
|
+
}
|
|
18079
|
+
// Add other keys to query string
|
|
18080
|
+
queryParams.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
18081
|
+
}
|
|
18082
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
18083
|
+
const newUrl = pathSegment
|
|
18084
|
+
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18085
|
+
: `${endpoint}/${queryString}`;
|
|
18086
|
+
await this.makeRequest('GET', newUrl, null, loader).then((data) => {
|
|
18071
18087
|
this.loadData(data);
|
|
18072
18088
|
});
|
|
18073
18089
|
return;
|
|
@@ -18064,9 +18064,25 @@ class RawDataManager {
|
|
|
18064
18064
|
}
|
|
18065
18065
|
// Fetch data from classification
|
|
18066
18066
|
async getFromClassification(endpoint, options, loader) {
|
|
18067
|
-
|
|
18068
|
-
const
|
|
18069
|
-
|
|
18067
|
+
let pathSegment = '';
|
|
18068
|
+
const queryParams = [];
|
|
18069
|
+
for (const key in options) {
|
|
18070
|
+
if (!options.hasOwnProperty(key))
|
|
18071
|
+
continue;
|
|
18072
|
+
const value = options[key];
|
|
18073
|
+
const lowerKey = key.toLowerCase();
|
|
18074
|
+
if ((lowerKey === 'startnode' || lowerKey === 'startnodeid') && !pathSegment) {
|
|
18075
|
+
pathSegment = encodeURIComponent(value);
|
|
18076
|
+
continue; // Skip adding this to the query string
|
|
18077
|
+
}
|
|
18078
|
+
// Add other keys to query string
|
|
18079
|
+
queryParams.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
18080
|
+
}
|
|
18081
|
+
const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';
|
|
18082
|
+
const newUrl = pathSegment
|
|
18083
|
+
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18084
|
+
: `${endpoint}/${queryString}`;
|
|
18085
|
+
await this.makeRequest('GET', newUrl, null, loader).then((data) => {
|
|
18070
18086
|
this.loadData(data);
|
|
18071
18087
|
});
|
|
18072
18088
|
return;
|