reneco-hierarchized-picker 0.4.2-beta.11 → 0.4.2-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.
- package/dist/cjs/reneco-hierarchized-picker_2.cjs.entry.js +4 -1
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +4 -1
- package/dist/custom-elements/index.js +4 -1
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +4 -1
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-1250bf7d.entry.js → p-61375f23.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-9191110a.system.entry.js → p-a249a122.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
|
@@ -18812,7 +18812,10 @@ const HierarchizedPickerComponent = class {
|
|
|
18812
18812
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18813
18813
|
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18814
18814
|
return;
|
|
18815
|
-
const
|
|
18815
|
+
const newDefault = Array.isArray(newV.defaultValue) ? newV.defaultValue : [newV.defaultValue];
|
|
18816
|
+
const oldDefault = Array.isArray(oldV.defaultValue) ? oldV.defaultValue : [oldV.defaultValue];
|
|
18817
|
+
const changeDefaultValue = newDefault.length !== oldDefault.length ||
|
|
18818
|
+
!newDefault.every(value => oldDefault.includes(value));
|
|
18816
18819
|
if (!isEqual && changeDefaultValue) {
|
|
18817
18820
|
return changeDefaultValue;
|
|
18818
18821
|
}
|
|
@@ -156,7 +156,10 @@ export class HierarchizedPickerComponent {
|
|
|
156
156
|
const isEqual = _.isEqual(newV, oldV);
|
|
157
157
|
if (!newV.defaultValue && !oldV.defaultValue)
|
|
158
158
|
return;
|
|
159
|
-
const
|
|
159
|
+
const newDefault = Array.isArray(newV.defaultValue) ? newV.defaultValue : [newV.defaultValue];
|
|
160
|
+
const oldDefault = Array.isArray(oldV.defaultValue) ? oldV.defaultValue : [oldV.defaultValue];
|
|
161
|
+
const changeDefaultValue = newDefault.length !== oldDefault.length ||
|
|
162
|
+
!newDefault.every(value => oldDefault.includes(value));
|
|
160
163
|
if (!isEqual && changeDefaultValue) {
|
|
161
164
|
return changeDefaultValue;
|
|
162
165
|
}
|
|
@@ -18809,7 +18809,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18809
18809
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18810
18810
|
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18811
18811
|
return;
|
|
18812
|
-
const
|
|
18812
|
+
const newDefault = Array.isArray(newV.defaultValue) ? newV.defaultValue : [newV.defaultValue];
|
|
18813
|
+
const oldDefault = Array.isArray(oldV.defaultValue) ? oldV.defaultValue : [oldV.defaultValue];
|
|
18814
|
+
const changeDefaultValue = newDefault.length !== oldDefault.length ||
|
|
18815
|
+
!newDefault.every(value => oldDefault.includes(value));
|
|
18813
18816
|
if (!isEqual && changeDefaultValue) {
|
|
18814
18817
|
return changeDefaultValue;
|
|
18815
18818
|
}
|
|
@@ -18808,7 +18808,10 @@ const HierarchizedPickerComponent = class {
|
|
|
18808
18808
|
const isEqual = lodash.isEqual(newV, oldV);
|
|
18809
18809
|
if (!newV.defaultValue && !oldV.defaultValue)
|
|
18810
18810
|
return;
|
|
18811
|
-
const
|
|
18811
|
+
const newDefault = Array.isArray(newV.defaultValue) ? newV.defaultValue : [newV.defaultValue];
|
|
18812
|
+
const oldDefault = Array.isArray(oldV.defaultValue) ? oldV.defaultValue : [oldV.defaultValue];
|
|
18813
|
+
const changeDefaultValue = newDefault.length !== oldDefault.length ||
|
|
18814
|
+
!newDefault.every(value => oldDefault.includes(value));
|
|
18812
18815
|
if (!isEqual && changeDefaultValue) {
|
|
18813
18816
|
return changeDefaultValue;
|
|
18814
18817
|
}
|