reneco-hierarchized-picker 0.4.0-beta.10 → 0.4.0-beta.12

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.
@@ -18623,6 +18623,10 @@ const HierarchizedPickerComponent = class {
18623
18623
  // });
18624
18624
  // ---------------------------------------
18625
18625
  // this.theOptions = newValue;
18626
+ if (typeof newValue == 'string')
18627
+ newValue = JSON.parse(newValue);
18628
+ if (typeof oldValue == 'string')
18629
+ oldValue = JSON.parse(oldValue);
18626
18630
  this.optionsManager.updateOptions(newValue);
18627
18631
  this.setDisplayedValue(this.value);
18628
18632
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18668,6 +18672,8 @@ const HierarchizedPickerComponent = class {
18668
18672
  }
18669
18673
  isChangeInOptions(newV, oldV) {
18670
18674
  const isEqual = lodash.isEqual(newV, oldV);
18675
+ if (!newV.defaultValue && !oldV.defaultValue)
18676
+ return;
18671
18677
  const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
18672
18678
  if (!isEqual && changeDefaultValue) {
18673
18679
  return changeDefaultValue;
@@ -18726,6 +18732,7 @@ const HierarchizedPickerComponent = class {
18726
18732
  }
18727
18733
  async componentWillLoad() {
18728
18734
  this.isDisabled = this.disabled;
18735
+ this.options = this.getOptionsAsIConf(this.options);
18729
18736
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18730
18737
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18731
18738
  await this.loadHierarchizedPicker();
@@ -103,6 +103,10 @@ export class HierarchizedPickerComponent {
103
103
  // });
104
104
  // ---------------------------------------
105
105
  // this.theOptions = newValue;
106
+ if (typeof newValue == 'string')
107
+ newValue = JSON.parse(newValue);
108
+ if (typeof oldValue == 'string')
109
+ oldValue = JSON.parse(oldValue);
106
110
  this.optionsManager.updateOptions(newValue);
107
111
  this.setDisplayedValue(this.value);
108
112
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -148,6 +152,8 @@ export class HierarchizedPickerComponent {
148
152
  }
149
153
  isChangeInOptions(newV, oldV) {
150
154
  const isEqual = _.isEqual(newV, oldV);
155
+ if (!newV.defaultValue && !oldV.defaultValue)
156
+ return;
151
157
  const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
152
158
  if (!isEqual && changeDefaultValue) {
153
159
  return changeDefaultValue;
@@ -201,6 +207,7 @@ export class HierarchizedPickerComponent {
201
207
  }
202
208
  async componentWillLoad() {
203
209
  this.isDisabled = this.disabled;
210
+ this.options = this.getOptionsAsIConf(this.options);
204
211
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
205
212
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
206
213
  await this.loadHierarchizedPicker();
@@ -18620,6 +18620,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18620
18620
  // });
18621
18621
  // ---------------------------------------
18622
18622
  // this.theOptions = newValue;
18623
+ if (typeof newValue == 'string')
18624
+ newValue = JSON.parse(newValue);
18625
+ if (typeof oldValue == 'string')
18626
+ oldValue = JSON.parse(oldValue);
18623
18627
  this.optionsManager.updateOptions(newValue);
18624
18628
  this.setDisplayedValue(this.value);
18625
18629
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18665,6 +18669,8 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18665
18669
  }
18666
18670
  isChangeInOptions(newV, oldV) {
18667
18671
  const isEqual = lodash.isEqual(newV, oldV);
18672
+ if (!newV.defaultValue && !oldV.defaultValue)
18673
+ return;
18668
18674
  const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
18669
18675
  if (!isEqual && changeDefaultValue) {
18670
18676
  return changeDefaultValue;
@@ -18724,6 +18730,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18724
18730
  }
18725
18731
  async componentWillLoad() {
18726
18732
  this.isDisabled = this.disabled;
18733
+ this.options = this.getOptionsAsIConf(this.options);
18727
18734
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18728
18735
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18729
18736
  await this.loadHierarchizedPicker();
@@ -18619,6 +18619,10 @@ const HierarchizedPickerComponent = class {
18619
18619
  // });
18620
18620
  // ---------------------------------------
18621
18621
  // this.theOptions = newValue;
18622
+ if (typeof newValue == 'string')
18623
+ newValue = JSON.parse(newValue);
18624
+ if (typeof oldValue == 'string')
18625
+ oldValue = JSON.parse(oldValue);
18622
18626
  this.optionsManager.updateOptions(newValue);
18623
18627
  this.setDisplayedValue(this.value);
18624
18628
  const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
@@ -18664,6 +18668,8 @@ const HierarchizedPickerComponent = class {
18664
18668
  }
18665
18669
  isChangeInOptions(newV, oldV) {
18666
18670
  const isEqual = lodash.isEqual(newV, oldV);
18671
+ if (!newV.defaultValue && !oldV.defaultValue)
18672
+ return;
18667
18673
  const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
18668
18674
  if (!isEqual && changeDefaultValue) {
18669
18675
  return changeDefaultValue;
@@ -18722,6 +18728,7 @@ const HierarchizedPickerComponent = class {
18722
18728
  }
18723
18729
  async componentWillLoad() {
18724
18730
  this.isDisabled = this.disabled;
18731
+ this.options = this.getOptionsAsIConf(this.options);
18725
18732
  this.optionsManager = new OptionsManager(this.getOptionsAsIConf(this.options));
18726
18733
  this.rawDataManager = new RawDataManager(() => this.getToken(), this.optionsManager);
18727
18734
  await this.loadHierarchizedPicker();