reneco-hierarchized-picker 0.4.0-beta.6 → 0.4.0-beta.7

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.
@@ -19337,7 +19337,21 @@ const HierarchizedPickerComponent = class {
19337
19337
  if (this.optionsManager.getOptions().source == 'webservice') {
19338
19338
  if (this.optionsManager.getOptions().origin == 'classification') {
19339
19339
  console.log("FLAG 02", this.optionsManager.getOptions());
19340
- this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader);
19340
+ this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
19341
+ this.rawData = data;
19342
+ if (init) {
19343
+ this.formatDefaultValue();
19344
+ this.showSelectedNodes();
19345
+ }
19346
+ })
19347
+ .catch(error => {
19348
+ try {
19349
+ this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
19350
+ }
19351
+ catch (_a) {
19352
+ console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
19353
+ }
19354
+ });
19341
19355
  }
19342
19356
  else {
19343
19357
  this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
@@ -19350,10 +19364,10 @@ const HierarchizedPickerComponent = class {
19350
19364
  })
19351
19365
  .catch(error => {
19352
19366
  try {
19353
- this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
19367
+ this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
19354
19368
  }
19355
19369
  catch (_a) {
19356
- console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
19370
+ console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
19357
19371
  }
19358
19372
  });
19359
19373
  }
@@ -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
  }
@@ -19335,7 +19335,21 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19335
19335
  if (this.optionsManager.getOptions().source == 'webservice') {
19336
19336
  if (this.optionsManager.getOptions().origin == 'classification') {
19337
19337
  console.log("FLAG 02", this.optionsManager.getOptions());
19338
- this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader);
19338
+ this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
19339
+ this.rawData = data;
19340
+ if (init) {
19341
+ this.formatDefaultValue();
19342
+ this.showSelectedNodes();
19343
+ }
19344
+ })
19345
+ .catch(error => {
19346
+ try {
19347
+ this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
19348
+ }
19349
+ catch (_a) {
19350
+ console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
19351
+ }
19352
+ });
19339
19353
  }
19340
19354
  else {
19341
19355
  this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
@@ -19348,10 +19362,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19348
19362
  })
19349
19363
  .catch(error => {
19350
19364
  try {
19351
- this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
19365
+ this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
19352
19366
  }
19353
19367
  catch (_a) {
19354
- console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
19368
+ console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
19355
19369
  }
19356
19370
  });
19357
19371
  }
@@ -19333,7 +19333,21 @@ const HierarchizedPickerComponent = class {
19333
19333
  if (this.optionsManager.getOptions().source == 'webservice') {
19334
19334
  if (this.optionsManager.getOptions().origin == 'classification') {
19335
19335
  console.log("FLAG 02", this.optionsManager.getOptions());
19336
- this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader);
19336
+ this.rawDataManager.getFromClassification(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader).then((data) => {
19337
+ this.rawData = data;
19338
+ if (init) {
19339
+ this.formatDefaultValue();
19340
+ this.showSelectedNodes();
19341
+ }
19342
+ })
19343
+ .catch(error => {
19344
+ try {
19345
+ this.errorToLog = 'getDataFromSource 3 classification rejected:' + JSON.stringify(error, replacer, 2);
19346
+ }
19347
+ catch (_a) {
19348
+ console.error('getDataFromSource 4 classification rejected:', JSON.stringify(error, replacer, 2));
19349
+ }
19350
+ });
19337
19351
  }
19338
19352
  else {
19339
19353
  this.rawDataManager.getFromSource(this.optionsManager.getOptions().url, this.optionsManager.getOptions().options, loader)
@@ -19346,10 +19360,10 @@ const HierarchizedPickerComponent = class {
19346
19360
  })
19347
19361
  .catch(error => {
19348
19362
  try {
19349
- this.errorToLog = 'getDataFromSource 3 rejected:' + JSON.stringify(error, replacer, 2);
19363
+ this.errorToLog = 'getDataFromSource 3 legacy rejected:' + JSON.stringify(error, replacer, 2);
19350
19364
  }
19351
19365
  catch (_a) {
19352
- console.error('getDataFromSource 4 rejected:', JSON.stringify(error, replacer, 2));
19366
+ console.error('getDataFromSource 4 legacy rejected:', JSON.stringify(error, replacer, 2));
19353
19367
  }
19354
19368
  });
19355
19369
  }