reneco-hierarchized-picker 0.4.0-beta.11 → 0.4.0-beta.13

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.
@@ -18625,6 +18625,8 @@ const HierarchizedPickerComponent = class {
18625
18625
  // this.theOptions = newValue;
18626
18626
  if (typeof newValue == 'string')
18627
18627
  newValue = JSON.parse(newValue);
18628
+ if (typeof oldValue == 'string')
18629
+ oldValue = JSON.parse(oldValue);
18628
18630
  this.optionsManager.updateOptions(newValue);
18629
18631
  this.setDisplayedValue(this.value);
18630
18632
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18661,7 +18663,7 @@ const HierarchizedPickerComponent = class {
18661
18663
  this.filterTree(newfilter);
18662
18664
  }
18663
18665
  optionsChange(newValue, oldValue) {
18664
- if (!this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18666
+ if (!this.optionsManager || !this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18665
18667
  return;
18666
18668
  }
18667
18669
  if (typeof newValue == 'string')
@@ -18730,6 +18732,7 @@ const HierarchizedPickerComponent = class {
18730
18732
  }
18731
18733
  async componentWillLoad() {
18732
18734
  this.isDisabled = this.disabled;
18735
+ this.options = this.getOptionsAsIConf(this.options);
18733
18736
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18734
18737
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18735
18738
  await this.loadHierarchizedPicker();
@@ -105,6 +105,8 @@ export class HierarchizedPickerComponent {
105
105
  // this.theOptions = newValue;
106
106
  if (typeof newValue == 'string')
107
107
  newValue = JSON.parse(newValue);
108
+ if (typeof oldValue == 'string')
109
+ oldValue = JSON.parse(oldValue);
108
110
  this.optionsManager.updateOptions(newValue);
109
111
  this.setDisplayedValue(this.value);
110
112
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -141,7 +143,7 @@ export class HierarchizedPickerComponent {
141
143
  this.filterTree(newfilter);
142
144
  }
143
145
  optionsChange(newValue, oldValue) {
144
- if (!this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
146
+ if (!this.optionsManager || !this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
145
147
  return;
146
148
  }
147
149
  if (typeof newValue == 'string')
@@ -205,6 +207,7 @@ export class HierarchizedPickerComponent {
205
207
  }
206
208
  async componentWillLoad() {
207
209
  this.isDisabled = this.disabled;
210
+ this.options = this.getOptionsAsIConf(this.options);
208
211
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
209
212
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
210
213
  await this.loadHierarchizedPicker();
@@ -18622,6 +18622,8 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18622
18622
  // this.theOptions = newValue;
18623
18623
  if (typeof newValue == 'string')
18624
18624
  newValue = JSON.parse(newValue);
18625
+ if (typeof oldValue == 'string')
18626
+ oldValue = JSON.parse(oldValue);
18625
18627
  this.optionsManager.updateOptions(newValue);
18626
18628
  this.setDisplayedValue(this.value);
18627
18629
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18658,7 +18660,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18658
18660
  this.filterTree(newfilter);
18659
18661
  }
18660
18662
  optionsChange(newValue, oldValue) {
18661
- if (!this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18663
+ if (!this.optionsManager || !this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18662
18664
  return;
18663
18665
  }
18664
18666
  if (typeof newValue == 'string')
@@ -18728,6 +18730,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18728
18730
  }
18729
18731
  async componentWillLoad() {
18730
18732
  this.isDisabled = this.disabled;
18733
+ this.options = this.getOptionsAsIConf(this.options);
18731
18734
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18732
18735
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18733
18736
  await this.loadHierarchizedPicker();
@@ -18621,6 +18621,8 @@ const HierarchizedPickerComponent = class {
18621
18621
  // this.theOptions = newValue;
18622
18622
  if (typeof newValue == 'string')
18623
18623
  newValue = JSON.parse(newValue);
18624
+ if (typeof oldValue == 'string')
18625
+ oldValue = JSON.parse(oldValue);
18624
18626
  this.optionsManager.updateOptions(newValue);
18625
18627
  this.setDisplayedValue(this.value);
18626
18628
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18657,7 +18659,7 @@ const HierarchizedPickerComponent = class {
18657
18659
  this.filterTree(newfilter);
18658
18660
  }
18659
18661
  optionsChange(newValue, oldValue) {
18660
- if (!this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18662
+ if (!this.optionsManager || !this.optionsManager.getOptions() || !this.ready || this.ignoreOptionsChanges) {
18661
18663
  return;
18662
18664
  }
18663
18665
  if (typeof newValue == 'string')
@@ -18726,6 +18728,7 @@ const HierarchizedPickerComponent = class {
18726
18728
  }
18727
18729
  async componentWillLoad() {
18728
18730
  this.isDisabled = this.disabled;
18731
+ this.options = this.getOptionsAsIConf(this.options);
18729
18732
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18730
18733
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18731
18734
  await this.loadHierarchizedPicker();