reneco-hierarchized-picker 0.4.0-beta.10 → 0.4.0-beta.11
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.
- package/dist/cjs/reneco-hierarchized-picker_2.cjs.entry.js +4 -0
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +4 -0
- package/dist/custom-elements/index.js +4 -0
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +4 -0
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-864aed9d.entry.js → p-66e3a25c.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/{p-8d26b3d2.system.entry.js → p-6779e11c.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
|
@@ -18623,6 +18623,8 @@ const HierarchizedPickerComponent = class {
|
|
|
18623
18623
|
// });
|
|
18624
18624
|
// ---------------------------------------
|
|
18625
18625
|
// this.theOptions = newValue;
|
|
18626
|
+
if (typeof newValue == 'string')
|
|
18627
|
+
newValue = JSON.parse(newValue);
|
|
18626
18628
|
this.optionsManager.updateOptions(newValue);
|
|
18627
18629
|
this.setDisplayedValue(this.value);
|
|
18628
18630
|
const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
|
|
@@ -18668,6 +18670,8 @@ const HierarchizedPickerComponent = class {
|
|
|
18668
18670
|
}
|
|
18669
18671
|
isChangeInOptions(newV, oldV) {
|
|
18670
18672
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18673
|
+
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18674
|
+
return;
|
|
18671
18675
|
const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
|
|
18672
18676
|
if (!isEqual && changeDefaultValue) {
|
|
18673
18677
|
return changeDefaultValue;
|
|
@@ -103,6 +103,8 @@ export class HierarchizedPickerComponent {
|
|
|
103
103
|
// });
|
|
104
104
|
// ---------------------------------------
|
|
105
105
|
// this.theOptions = newValue;
|
|
106
|
+
if (typeof newValue == 'string')
|
|
107
|
+
newValue = JSON.parse(newValue);
|
|
106
108
|
this.optionsManager.updateOptions(newValue);
|
|
107
109
|
this.setDisplayedValue(this.value);
|
|
108
110
|
const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
|
|
@@ -148,6 +150,8 @@ export class HierarchizedPickerComponent {
|
|
|
148
150
|
}
|
|
149
151
|
isChangeInOptions(newV, oldV) {
|
|
150
152
|
const isEqual = _.isEqual(newV, oldV);
|
|
153
|
+
if (!newV.defaultValue && !oldV.defaultValue)
|
|
154
|
+
return;
|
|
151
155
|
const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
|
|
152
156
|
if (!isEqual && changeDefaultValue) {
|
|
153
157
|
return changeDefaultValue;
|
|
@@ -18620,6 +18620,8 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18620
18620
|
// });
|
|
18621
18621
|
// ---------------------------------------
|
|
18622
18622
|
// this.theOptions = newValue;
|
|
18623
|
+
if (typeof newValue == 'string')
|
|
18624
|
+
newValue = JSON.parse(newValue);
|
|
18623
18625
|
this.optionsManager.updateOptions(newValue);
|
|
18624
18626
|
this.setDisplayedValue(this.value);
|
|
18625
18627
|
const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
|
|
@@ -18665,6 +18667,8 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18665
18667
|
}
|
|
18666
18668
|
isChangeInOptions(newV, oldV) {
|
|
18667
18669
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18670
|
+
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18671
|
+
return;
|
|
18668
18672
|
const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
|
|
18669
18673
|
if (!isEqual && changeDefaultValue) {
|
|
18670
18674
|
return changeDefaultValue;
|
|
@@ -18619,6 +18619,8 @@ const HierarchizedPickerComponent = class {
|
|
|
18619
18619
|
// });
|
|
18620
18620
|
// ---------------------------------------
|
|
18621
18621
|
// this.theOptions = newValue;
|
|
18622
|
+
if (typeof newValue == 'string')
|
|
18623
|
+
newValue = JSON.parse(newValue);
|
|
18622
18624
|
this.optionsManager.updateOptions(newValue);
|
|
18623
18625
|
this.setDisplayedValue(this.value);
|
|
18624
18626
|
const originOrNodeIdAreDifferent = !oldValue || (newValue.origin != oldValue.origin || newValue.options.StartNodeID != oldValue.options.StartNodeID);
|
|
@@ -18664,6 +18666,8 @@ const HierarchizedPickerComponent = class {
|
|
|
18664
18666
|
}
|
|
18665
18667
|
isChangeInOptions(newV, oldV) {
|
|
18666
18668
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18669
|
+
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18670
|
+
return;
|
|
18667
18671
|
const changeDefaultValue = !(newV.defaultValue.length == oldV.defaultValue.length && newV.defaultValue.every(value => oldV.defaultValue.includes(value)));
|
|
18668
18672
|
if (!isEqual && changeDefaultValue) {
|
|
18669
18673
|
return changeDefaultValue;
|