reneco-hierarchized-picker 0.4.0-beta.6 → 0.4.0-beta.8
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 +18 -7
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +17 -3
- package/dist/collection/core/raw-data-manager.js +1 -4
- package/dist/custom-elements/index.js +18 -7
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +18 -7
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-5ef6194e.system.entry.js → p-4acaddc6.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-66f22909.entry.js → p-f38bdbc8.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
|
@@ -18086,10 +18086,7 @@ class RawDataManager {
|
|
|
18086
18086
|
const newUrl = pathSegment
|
|
18087
18087
|
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18088
18088
|
: `${endpoint}/${queryString}`;
|
|
18089
|
-
await this.makeRequest('GET', newUrl, null, loader)
|
|
18090
|
-
this.loadData(data);
|
|
18091
|
-
});
|
|
18092
|
-
return;
|
|
18089
|
+
return await this.makeRequest('GET', newUrl, null, loader);
|
|
18093
18090
|
}
|
|
18094
18091
|
// Fetch data from a generic source
|
|
18095
18092
|
async getFromSource(endpoint, options, loader) {
|
|
@@ -19337,7 +19334,21 @@ const HierarchizedPickerComponent = class {
|
|
|
19337
19334
|
if (this.optionsManager.getOptions().source == 'webservice') {
|
|
19338
19335
|
if (this.optionsManager.getOptions().origin == 'classification') {
|
|
19339
19336
|
console.log("FLAG 02", this.optionsManager.getOptions());
|
|
19340
|
-
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
19337
|
+
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
|
|
19338
|
+
this.rawData = data;
|
|
19339
|
+
if (init) {
|
|
19340
|
+
this.formatDefaultValue();
|
|
19341
|
+
this.showSelectedNodes();
|
|
19342
|
+
}
|
|
19343
|
+
})
|
|
19344
|
+
.catch(error => {
|
|
19345
|
+
try {
|
|
19346
|
+
this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
|
|
19347
|
+
}
|
|
19348
|
+
catch (_a) {
|
|
19349
|
+
console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
|
|
19350
|
+
}
|
|
19351
|
+
});
|
|
19341
19352
|
}
|
|
19342
19353
|
else {
|
|
19343
19354
|
this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
@@ -19350,10 +19361,10 @@ const HierarchizedPickerComponent = class {
|
|
|
19350
19361
|
})
|
|
19351
19362
|
.catch(error => {
|
|
19352
19363
|
try {
|
|
19353
|
-
this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
|
|
19364
|
+
this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
|
|
19354
19365
|
}
|
|
19355
19366
|
catch (_a) {
|
|
19356
|
-
console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
|
|
19367
|
+
console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
|
|
19357
19368
|
}
|
|
19358
19369
|
});
|
|
19359
19370
|
}
|
|
@@ -819,7 +819,21 @@ export class HierarchizedPickerComponent {
|
|
|
819
819
|
if (this.optionsManager.getOptions().source == 'webservice') {
|
|
820
820
|
if (this.optionsManager.getOptions().origin == 'classification') {
|
|
821
821
|
console.log("FLAG 02", this.optionsManager.getOptions());
|
|
822
|
-
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
822
|
+
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
|
|
823
|
+
this.rawData = data;
|
|
824
|
+
if (init) {
|
|
825
|
+
this.formatDefaultValue();
|
|
826
|
+
this.showSelectedNodes();
|
|
827
|
+
}
|
|
828
|
+
})
|
|
829
|
+
.catch(error => {
|
|
830
|
+
try {
|
|
831
|
+
this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
|
|
832
|
+
}
|
|
833
|
+
catch (_a) {
|
|
834
|
+
console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
|
|
835
|
+
}
|
|
836
|
+
});
|
|
823
837
|
}
|
|
824
838
|
else {
|
|
825
839
|
this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
@@ -832,10 +846,10 @@ export class HierarchizedPickerComponent {
|
|
|
832
846
|
})
|
|
833
847
|
.catch(error => {
|
|
834
848
|
try {
|
|
835
|
-
this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
|
|
849
|
+
this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
|
|
836
850
|
}
|
|
837
851
|
catch (_a) {
|
|
838
|
-
console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
|
|
852
|
+
console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
|
|
839
853
|
}
|
|
840
854
|
});
|
|
841
855
|
}
|
|
@@ -60,10 +60,7 @@ export class RawDataManager {
|
|
|
60
60
|
const newUrl = pathSegment
|
|
61
61
|
? `${endpoint}/${pathSegment}/${queryString}`
|
|
62
62
|
: `${endpoint}/${queryString}`;
|
|
63
|
-
await this.makeRequest('GET', newUrl, null, loader)
|
|
64
|
-
this.loadData(data);
|
|
65
|
-
});
|
|
66
|
-
return;
|
|
63
|
+
return await this.makeRequest('GET', newUrl, null, loader);
|
|
67
64
|
}
|
|
68
65
|
// Fetch data from a generic source
|
|
69
66
|
async getFromSource(endpoint, options, loader) {
|
|
@@ -18083,10 +18083,7 @@ class RawDataManager {
|
|
|
18083
18083
|
const newUrl = pathSegment
|
|
18084
18084
|
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18085
18085
|
: `${endpoint}/${queryString}`;
|
|
18086
|
-
await this.makeRequest('GET', newUrl, null, loader)
|
|
18087
|
-
this.loadData(data);
|
|
18088
|
-
});
|
|
18089
|
-
return;
|
|
18086
|
+
return await this.makeRequest('GET', newUrl, null, loader);
|
|
18090
18087
|
}
|
|
18091
18088
|
// Fetch data from a generic source
|
|
18092
18089
|
async getFromSource(endpoint, options, loader) {
|
|
@@ -19335,7 +19332,21 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19335
19332
|
if (this.optionsManager.getOptions().source == 'webservice') {
|
|
19336
19333
|
if (this.optionsManager.getOptions().origin == 'classification') {
|
|
19337
19334
|
console.log("FLAG 02", this.optionsManager.getOptions());
|
|
19338
|
-
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
19335
|
+
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
|
|
19336
|
+
this.rawData = data;
|
|
19337
|
+
if (init) {
|
|
19338
|
+
this.formatDefaultValue();
|
|
19339
|
+
this.showSelectedNodes();
|
|
19340
|
+
}
|
|
19341
|
+
})
|
|
19342
|
+
.catch(error => {
|
|
19343
|
+
try {
|
|
19344
|
+
this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
|
|
19345
|
+
}
|
|
19346
|
+
catch (_a) {
|
|
19347
|
+
console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
|
|
19348
|
+
}
|
|
19349
|
+
});
|
|
19339
19350
|
}
|
|
19340
19351
|
else {
|
|
19341
19352
|
this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
@@ -19348,10 +19359,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19348
19359
|
})
|
|
19349
19360
|
.catch(error => {
|
|
19350
19361
|
try {
|
|
19351
|
-
this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
|
|
19362
|
+
this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
|
|
19352
19363
|
}
|
|
19353
19364
|
catch (_a) {
|
|
19354
|
-
console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
|
|
19365
|
+
console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
|
|
19355
19366
|
}
|
|
19356
19367
|
});
|
|
19357
19368
|
}
|
|
@@ -18082,10 +18082,7 @@ class RawDataManager {
|
|
|
18082
18082
|
const newUrl = pathSegment
|
|
18083
18083
|
? `${endpoint}/${pathSegment}/${queryString}`
|
|
18084
18084
|
: `${endpoint}/${queryString}`;
|
|
18085
|
-
await this.makeRequest('GET', newUrl, null, loader)
|
|
18086
|
-
this.loadData(data);
|
|
18087
|
-
});
|
|
18088
|
-
return;
|
|
18085
|
+
return await this.makeRequest('GET', newUrl, null, loader);
|
|
18089
18086
|
}
|
|
18090
18087
|
// Fetch data from a generic source
|
|
18091
18088
|
async getFromSource(endpoint, options, loader) {
|
|
@@ -19333,7 +19330,21 @@ const HierarchizedPickerComponent = class {
|
|
|
19333
19330
|
if (this.optionsManager.getOptions().source == 'webservice') {
|
|
19334
19331
|
if (this.optionsManager.getOptions().origin == 'classification') {
|
|
19335
19332
|
console.log("FLAG 02", this.optionsManager.getOptions());
|
|
19336
|
-
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
19333
|
+
this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
|
|
19334
|
+
this.rawData = data;
|
|
19335
|
+
if (init) {
|
|
19336
|
+
this.formatDefaultValue();
|
|
19337
|
+
this.showSelectedNodes();
|
|
19338
|
+
}
|
|
19339
|
+
})
|
|
19340
|
+
.catch(error => {
|
|
19341
|
+
try {
|
|
19342
|
+
this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
|
|
19343
|
+
}
|
|
19344
|
+
catch (_a) {
|
|
19345
|
+
console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
|
|
19346
|
+
}
|
|
19347
|
+
});
|
|
19337
19348
|
}
|
|
19338
19349
|
else {
|
|
19339
19350
|
this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
|
|
@@ -19346,10 +19357,10 @@ const HierarchizedPickerComponent = class {
|
|
|
19346
19357
|
})
|
|
19347
19358
|
.catch(error => {
|
|
19348
19359
|
try {
|
|
19349
|
-
this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
|
|
19360
|
+
this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
|
|
19350
19361
|
}
|
|
19351
19362
|
catch (_a) {
|
|
19352
|
-
console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
|
|
19363
|
+
console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
|
|
19353
19364
|
}
|
|
19354
19365
|
});
|
|
19355
19366
|
}
|