reneco-hierarchized-picker 0.3.2-beta.10 → 0.3.2-beta.2

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.
@@ -231,7 +231,9 @@ Tree.prototype.bindEvent = function (ele) {
231
231
  if (this.options.parentApi.theOptions.origin == 'classification') {
232
232
  // WS Call
233
233
  this.options.parentApi
234
- .getDataFromSourceClassification(this.options.parentApi.theOptions.url, Object.assign(Object.assign({}, this.options.parentApi.theOptions.options), { startNode: target.parentNode.nodeId }))
234
+ .getDataFromSourceClassification(this.options.parentApi.theOptions.url, {
235
+ startNode: target.parentNode.nodeId
236
+ })
235
237
  .then(data => {
236
238
  this.options.parentApi.completeCurrentTreeWithTree(data);
237
239
  });
@@ -18418,14 +18420,10 @@ const HierarchizedPickerComponent = class {
18418
18420
  targetURL += '&searchedValue=' + options.search.searchedValue;
18419
18421
  }
18420
18422
  else {
18421
- let urloptions = '';
18422
- if (options.Reach && init) {
18423
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'reach=' + options.Reach;
18424
- }
18425
- if (options.IsDeprecated) {
18426
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'isDeprecated=' + options.IsDeprecated;
18423
+ targetURL += '/' + options.startNode;
18424
+ if (options.Reach) {
18425
+ targetURL += '/?reach=' + options.options.Reach;
18427
18426
  }
18428
- targetURL += '/' + options.startNode + urloptions;
18429
18427
  }
18430
18428
  let getDataPromise = new Promise((resolve, reject) => {
18431
18429
  this.getToken().then(token => {
@@ -643,14 +643,10 @@ export class HierarchizedPickerComponent {
643
643
  targetURL += '&searchedValue=' + options.search.searchedValue;
644
644
  }
645
645
  else {
646
- let urloptions = '';
647
- if (options.Reach && init) {
648
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'reach=' + options.Reach;
646
+ targetURL += '/' + options.startNode;
647
+ if (options.Reach) {
648
+ targetURL += '/?reach=' + options.options.Reach;
649
649
  }
650
- if (options.IsDeprecated) {
651
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'isDeprecated=' + options.IsDeprecated;
652
- }
653
- targetURL += '/' + options.startNode + urloptions;
654
650
  }
655
651
  let getDataPromise = new Promise((resolve, reject) => {
656
652
  this.getToken().then(token => {
@@ -199,7 +199,9 @@ Tree.prototype.bindEvent = function (ele) {
199
199
  if (this.options.parentApi.theOptions.origin == 'classification') {
200
200
  // WS Call
201
201
  this.options.parentApi
202
- .getDataFromSourceClassification(this.options.parentApi.theOptions.url, Object.assign(Object.assign({}, this.options.parentApi.theOptions.options), { startNode: target.parentNode.nodeId }))
202
+ .getDataFromSourceClassification(this.options.parentApi.theOptions.url, {
203
+ startNode: target.parentNode.nodeId
204
+ })
203
205
  .then(data => {
204
206
  this.options.parentApi.completeCurrentTreeWithTree(data);
205
207
  });
@@ -228,7 +228,9 @@ Tree.prototype.bindEvent = function (ele) {
228
228
  if (this.options.parentApi.theOptions.origin == 'classification') {
229
229
  // WS Call
230
230
  this.options.parentApi
231
- .getDataFromSourceClassification(this.options.parentApi.theOptions.url, Object.assign(Object.assign({}, this.options.parentApi.theOptions.options), { startNode: target.parentNode.nodeId }))
231
+ .getDataFromSourceClassification(this.options.parentApi.theOptions.url, {
232
+ startNode: target.parentNode.nodeId
233
+ })
232
234
  .then(data => {
233
235
  this.options.parentApi.completeCurrentTreeWithTree(data);
234
236
  });
@@ -18416,14 +18418,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18416
18418
  targetURL += '&searchedValue=' + options.search.searchedValue;
18417
18419
  }
18418
18420
  else {
18419
- let urloptions = '';
18420
- if (options.Reach && init) {
18421
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'reach=' + options.Reach;
18422
- }
18423
- if (options.IsDeprecated) {
18424
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'isDeprecated=' + options.IsDeprecated;
18421
+ targetURL += '/' + options.startNode;
18422
+ if (options.Reach) {
18423
+ targetURL += '/?reach=' + options.options.Reach;
18425
18424
  }
18426
- targetURL += '/' + options.startNode + urloptions;
18427
18425
  }
18428
18426
  let getDataPromise = new Promise((resolve, reject) => {
18429
18427
  this.getToken().then(token => {
@@ -227,7 +227,9 @@ Tree.prototype.bindEvent = function (ele) {
227
227
  if (this.options.parentApi.theOptions.origin == 'classification') {
228
228
  // WS Call
229
229
  this.options.parentApi
230
- .getDataFromSourceClassification(this.options.parentApi.theOptions.url, Object.assign(Object.assign({}, this.options.parentApi.theOptions.options), { startNode: target.parentNode.nodeId }))
230
+ .getDataFromSourceClassification(this.options.parentApi.theOptions.url, {
231
+ startNode: target.parentNode.nodeId
232
+ })
231
233
  .then(data => {
232
234
  this.options.parentApi.completeCurrentTreeWithTree(data);
233
235
  });
@@ -18414,14 +18416,10 @@ const HierarchizedPickerComponent = class {
18414
18416
  targetURL += '&searchedValue=' + options.search.searchedValue;
18415
18417
  }
18416
18418
  else {
18417
- let urloptions = '';
18418
- if (options.Reach && init) {
18419
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'reach=' + options.Reach;
18420
- }
18421
- if (options.IsDeprecated) {
18422
- urloptions += (urloptions.length == 0 ? '/?' : '&') + 'isDeprecated=' + options.IsDeprecated;
18419
+ targetURL += '/' + options.startNode;
18420
+ if (options.Reach) {
18421
+ targetURL += '/?reach=' + options.options.Reach;
18423
18422
  }
18424
- targetURL += '/' + options.startNode + urloptions;
18425
18423
  }
18426
18424
  let getDataPromise = new Promise((resolve, reject) => {
18427
18425
  this.getToken().then(token => {