@schukai/monster 3.57.0 → 3.58.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -1
- package/package.json +1 -1
- package/source/components/datatable/change-button.mjs +8 -4
- package/source/components/datatable/dataset.mjs +1 -1
- package/source/components/datatable/filter.mjs +0 -1
- package/source/components/form/select.mjs +1781 -1769
- package/source/components/form/style/button-bar.pcss +2 -0
- package/source/components/form/style/button.pcss +2 -0
- package/source/components/form/style/toggle-switch.pcss +67 -58
- package/source/components/form/stylesheet/button-bar.mjs +1 -1
- package/source/components/form/stylesheet/button.mjs +1 -1
- package/source/components/form/stylesheet/select.mjs +1 -1
- package/source/components/form/stylesheet/toggle-switch.mjs +1 -1
- package/source/components/form/tabs.mjs +0 -1
- package/source/components/form/toggle-switch.mjs +282 -280
- package/source/data/transformer.mjs +4 -6
- package/source/dom/customelement.mjs +897 -904
- package/source/dom/events.mjs +3 -3
- package/source/dom/updater.mjs +754 -749
- package/source/dom/util/set-option-from-attribute.mjs +1 -2
- package/source/i18n/translations.mjs +1 -1
- package/source/monster.mjs +2 -0
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/import.js +1 -0
- package/test/web/test.html +2 -2
- package/test/web/tests.js +990 -460
@@ -775,16 +775,16 @@ function transform(value) {
|
|
775
775
|
defaultValue = convertSpecialStrings(defaultValue, value);
|
776
776
|
|
777
777
|
return translations.getText(key, defaultValue);
|
778
|
-
|
778
|
+
|
779
779
|
case "set-toggle":
|
780
780
|
case "set-set":
|
781
781
|
case "set-remove":
|
782
|
-
|
782
|
+
const modifier = args.shift();
|
783
783
|
let delimiter = args.shift();
|
784
784
|
if (delimiter === undefined) {
|
785
785
|
delimiter = " ";
|
786
786
|
}
|
787
|
-
|
787
|
+
|
788
788
|
const set = new Set(value.split(delimiter));
|
789
789
|
const toggle = new Set(modifier.split(delimiter));
|
790
790
|
if (this.command === "set-toggle") {
|
@@ -805,9 +805,7 @@ function transform(value) {
|
|
805
805
|
}
|
806
806
|
}
|
807
807
|
return Array.from(set).join(delimiter);
|
808
|
-
|
809
|
-
|
810
|
-
|
808
|
+
|
811
809
|
default:
|
812
810
|
throw new Error(`unknown command ${this.command}`);
|
813
811
|
}
|