@m3e/chips 1.1.5 → 1.1.7
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/index.js
CHANGED
|
@@ -885,9 +885,9 @@ let M3eFilterChipSetElement = class M3eFilterChipSetElement extends Labelled(Dir
|
|
|
885
885
|
get selected() {
|
|
886
886
|
return this[selectionManager]?.selectedItems ?? [];
|
|
887
887
|
}
|
|
888
|
-
/** The selected value(s) of the set. */
|
|
888
|
+
/** The selected (enabled) value(s) of the set. */
|
|
889
889
|
get value() {
|
|
890
|
-
const values = this.selected.map(x => x.value);
|
|
890
|
+
const values = this.selected.filter(x => !x.disabled).map(x => x.value);
|
|
891
891
|
switch (values.length) {
|
|
892
892
|
case 0:
|
|
893
893
|
return null;
|
|
@@ -1490,7 +1490,7 @@ let M3eInputChipSetElement = class M3eInputChipSetElement extends RequiredConstr
|
|
|
1490
1490
|
}
|
|
1491
1491
|
/** The values of the set. */
|
|
1492
1492
|
get value() {
|
|
1493
|
-
const values = this.chips.map(x => x.value);
|
|
1493
|
+
const values = this.chips.filter(x => !x.disabled).map(x => x.value);
|
|
1494
1494
|
return values.length == 0 ? null : values;
|
|
1495
1495
|
}
|
|
1496
1496
|
/** @inheritdoc @internal */
|