reneco-hierarchized-picker 0.2.2-beta.3 → 0.2.2-beta.5

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.
@@ -18559,10 +18559,10 @@ const HierarchizedPickerComponent = class {
18559
18559
  .then(displayResults)
18560
18560
  .catch((error) => {
18561
18561
  try {
18562
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
18562
+ this.errorToLog = "getDataFromSource 1 rejected:" + JSON.stringify(error, replacer, 2);
18563
18563
  }
18564
18564
  catch (_a) {
18565
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
18565
+ console.error("getDataFromSource 2 rejected:", JSON.stringify(error, replacer, 2));
18566
18566
  }
18567
18567
  });
18568
18568
  }
@@ -19176,8 +19176,9 @@ const HierarchizedPickerComponent = class {
19176
19176
  }
19177
19177
  // Search a value in the tree and triggers a search when necessary
19178
19178
  search(searched) {
19179
- if (this.theOptions.mode == 'input') {
19180
- document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input').classList.remove('fieldError');
19179
+ let searchinput = document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input');
19180
+ if (this.theOptions.mode == 'input' && searchinput) {
19181
+ searchinput.classList.remove('fieldError');
19181
19182
  }
19182
19183
  if (searched.length > 2) {
19183
19184
  this.searchToDisplay += 1;
@@ -19283,10 +19284,10 @@ const HierarchizedPickerComponent = class {
19283
19284
  })
19284
19285
  .catch((error) => {
19285
19286
  try {
19286
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
19287
+ this.errorToLog = "getDataFromSource 3 rejected:" + JSON.stringify(error, replacer, 2);
19287
19288
  }
19288
19289
  catch (_a) {
19289
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
19290
+ console.error("getDataFromSource 4 rejected:", JSON.stringify(error, replacer, 2));
19290
19291
  }
19291
19292
  });
19292
19293
  }
@@ -19345,7 +19346,7 @@ const HierarchizedPickerComponent = class {
19345
19346
  if (typeof dfValue == 'string' && isNumeric(dfValue)) {
19346
19347
  dfValue = parseInt(dfValue);
19347
19348
  }
19348
- if (that.options.origin == 'classification') {
19349
+ if (that.theOptions.origin == 'classification') {
19349
19350
  if ((typeof dfValue == 'string' && that.getPropertyFromNode(element, 'Properties.FullPath') == dfValue) ||
19350
19351
  (typeof dfValue == 'number' && that.getPropertyFromNode(element, 'ID') == dfValue)) {
19351
19352
  element.nodeid = element.id;
@@ -790,10 +790,10 @@ export class HierarchizedPickerComponent {
790
790
  .then(displayResults)
791
791
  .catch((error) => {
792
792
  try {
793
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
793
+ this.errorToLog = "getDataFromSource 1 rejected:" + JSON.stringify(error, replacer, 2);
794
794
  }
795
795
  catch (_a) {
796
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
796
+ console.error("getDataFromSource 2 rejected:", JSON.stringify(error, replacer, 2));
797
797
  }
798
798
  });
799
799
  }
@@ -1407,8 +1407,9 @@ export class HierarchizedPickerComponent {
1407
1407
  }
1408
1408
  // Search a value in the tree and triggers a search when necessary
1409
1409
  search(searched) {
1410
- if (this.theOptions.mode == 'input') {
1411
- document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input').classList.remove('fieldError');
1410
+ let searchinput = document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input');
1411
+ if (this.theOptions.mode == 'input' && searchinput) {
1412
+ searchinput.classList.remove('fieldError');
1412
1413
  }
1413
1414
  if (searched.length > 2) {
1414
1415
  this.searchToDisplay += 1;
@@ -1514,10 +1515,10 @@ export class HierarchizedPickerComponent {
1514
1515
  })
1515
1516
  .catch((error) => {
1516
1517
  try {
1517
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
1518
+ this.errorToLog = "getDataFromSource 3 rejected:" + JSON.stringify(error, replacer, 2);
1518
1519
  }
1519
1520
  catch (_a) {
1520
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
1521
+ console.error("getDataFromSource 4 rejected:", JSON.stringify(error, replacer, 2));
1521
1522
  }
1522
1523
  });
1523
1524
  }
@@ -1576,7 +1577,7 @@ export class HierarchizedPickerComponent {
1576
1577
  if (typeof dfValue == 'string' && isNumeric(dfValue)) {
1577
1578
  dfValue = parseInt(dfValue);
1578
1579
  }
1579
- if (that.options.origin == 'classification') {
1580
+ if (that.theOptions.origin == 'classification') {
1580
1581
  if ((typeof dfValue == 'string' && that.getPropertyFromNode(element, 'Properties.FullPath') == dfValue) ||
1581
1582
  (typeof dfValue == 'number' && that.getPropertyFromNode(element, 'ID') == dfValue)) {
1582
1583
  element.nodeid = element.id;
@@ -18557,10 +18557,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18557
18557
  .then(displayResults)
18558
18558
  .catch((error) => {
18559
18559
  try {
18560
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
18560
+ this.errorToLog = "getDataFromSource 1 rejected:" + JSON.stringify(error, replacer, 2);
18561
18561
  }
18562
18562
  catch (_a) {
18563
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
18563
+ console.error("getDataFromSource 2 rejected:", JSON.stringify(error, replacer, 2));
18564
18564
  }
18565
18565
  });
18566
18566
  }
@@ -19174,8 +19174,9 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19174
19174
  }
19175
19175
  // Search a value in the tree and triggers a search when necessary
19176
19176
  search(searched) {
19177
- if (this.theOptions.mode == 'input') {
19178
- document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input').classList.remove('fieldError');
19177
+ let searchinput = document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input');
19178
+ if (this.theOptions.mode == 'input' && searchinput) {
19179
+ searchinput.classList.remove('fieldError');
19179
19180
  }
19180
19181
  if (searched.length > 2) {
19181
19182
  this.searchToDisplay += 1;
@@ -19281,10 +19282,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19281
19282
  })
19282
19283
  .catch((error) => {
19283
19284
  try {
19284
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
19285
+ this.errorToLog = "getDataFromSource 3 rejected:" + JSON.stringify(error, replacer, 2);
19285
19286
  }
19286
19287
  catch (_a) {
19287
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
19288
+ console.error("getDataFromSource 4 rejected:", JSON.stringify(error, replacer, 2));
19288
19289
  }
19289
19290
  });
19290
19291
  }
@@ -19343,7 +19344,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19343
19344
  if (typeof dfValue == 'string' && isNumeric(dfValue)) {
19344
19345
  dfValue = parseInt(dfValue);
19345
19346
  }
19346
- if (that.options.origin == 'classification') {
19347
+ if (that.theOptions.origin == 'classification') {
19347
19348
  if ((typeof dfValue == 'string' && that.getPropertyFromNode(element, 'Properties.FullPath') == dfValue) ||
19348
19349
  (typeof dfValue == 'number' && that.getPropertyFromNode(element, 'ID') == dfValue)) {
19349
19350
  element.nodeid = element.id;
@@ -18555,10 +18555,10 @@ const HierarchizedPickerComponent = class {
18555
18555
  .then(displayResults)
18556
18556
  .catch((error) => {
18557
18557
  try {
18558
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
18558
+ this.errorToLog = "getDataFromSource 1 rejected:" + JSON.stringify(error, replacer, 2);
18559
18559
  }
18560
18560
  catch (_a) {
18561
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
18561
+ console.error("getDataFromSource 2 rejected:", JSON.stringify(error, replacer, 2));
18562
18562
  }
18563
18563
  });
18564
18564
  }
@@ -19172,8 +19172,9 @@ const HierarchizedPickerComponent = class {
19172
19172
  }
19173
19173
  // Search a value in the tree and triggers a search when necessary
19174
19174
  search(searched) {
19175
- if (this.theOptions.mode == 'input') {
19176
- document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input').classList.remove('fieldError');
19175
+ let searchinput = document.querySelector('#hierarchized-picker-' + this.componentID + ' .hierarchized-picker-search input');
19176
+ if (this.theOptions.mode == 'input' && searchinput) {
19177
+ searchinput.classList.remove('fieldError');
19177
19178
  }
19178
19179
  if (searched.length > 2) {
19179
19180
  this.searchToDisplay += 1;
@@ -19279,10 +19280,10 @@ const HierarchizedPickerComponent = class {
19279
19280
  })
19280
19281
  .catch((error) => {
19281
19282
  try {
19282
- this.errorToLog = "getDataFromSource rejected:" + JSON.stringify(error, replacer, 2);
19283
+ this.errorToLog = "getDataFromSource 3 rejected:" + JSON.stringify(error, replacer, 2);
19283
19284
  }
19284
19285
  catch (_a) {
19285
- console.error("getDataFromSource rejected:", JSON.stringify(error, replacer, 2));
19286
+ console.error("getDataFromSource 4 rejected:", JSON.stringify(error, replacer, 2));
19286
19287
  }
19287
19288
  });
19288
19289
  }
@@ -19341,7 +19342,7 @@ const HierarchizedPickerComponent = class {
19341
19342
  if (typeof dfValue == 'string' && isNumeric(dfValue)) {
19342
19343
  dfValue = parseInt(dfValue);
19343
19344
  }
19344
- if (that.options.origin == 'classification') {
19345
+ if (that.theOptions.origin == 'classification') {
19345
19346
  if ((typeof dfValue == 'string' && that.getPropertyFromNode(element, 'Properties.FullPath') == dfValue) ||
19346
19347
  (typeof dfValue == 'number' && that.getPropertyFromNode(element, 'ID') == dfValue)) {
19347
19348
  element.nodeid = element.id;