@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
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,26 @@
|
|
1
1
|
|
2
|
+
## [3.58.1] - 2024-03-17
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
- toggle-switch layout and text [#170](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/170)
|
7
|
+
|
8
|
+
## [3.58.0] - 2024-03-17
|
9
|
+
|
10
|
+
### Add Features
|
11
|
+
|
12
|
+
- new select feature emptyValueIfNoOptions [#142](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/142)
|
13
|
+
### Changes
|
14
|
+
|
15
|
+
- release and publish to npm new version 3.58.0
|
16
|
+
- update deploy script
|
17
|
+
- lint code
|
18
|
+
- build-webtest
|
19
|
+
- lint code
|
20
|
+
- code format
|
21
|
+
- release and publish to npm new version 3.57.0
|
22
|
+
- tests and more
|
23
|
+
|
2
24
|
## [3.57.0] - 2024-03-06
|
3
25
|
|
4
26
|
### Add Features
|
@@ -14,7 +36,6 @@
|
|
14
36
|
- add arrowdown handler [#160](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/160) [#161](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/161)
|
15
37
|
### Changes
|
16
38
|
|
17
|
-
- tests and more
|
18
39
|
- tests and more
|
19
40
|
- fix tests
|
20
41
|
- updates [#160](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/160)
|
package/package.json
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
import { instanceSymbol } from "../../constants.mjs";
|
7
7
|
import { diff } from "../../data/diff.mjs";
|
8
|
-
import {addAttributeToken} from "../../dom/attributes.mjs";
|
9
|
-
import {ATTRIBUTE_ERRORMESSAGE} from "../../dom/constants.mjs";
|
8
|
+
import { addAttributeToken } from "../../dom/attributes.mjs";
|
9
|
+
import { ATTRIBUTE_ERRORMESSAGE } from "../../dom/constants.mjs";
|
10
10
|
import {
|
11
11
|
assembleMethodSymbol,
|
12
12
|
CustomElement,
|
@@ -116,7 +116,7 @@ class ChangeButton extends CustomElement {
|
|
116
116
|
* This method is responsible for assembling the component.
|
117
117
|
*/
|
118
118
|
[assembleMethodSymbol]() {
|
119
|
-
super[assembleMethodSymbol]()
|
119
|
+
super[assembleMethodSymbol]();
|
120
120
|
|
121
121
|
initControlReferences.call(this);
|
122
122
|
initEventHandler.call(this);
|
@@ -213,7 +213,11 @@ function getIndex() {
|
|
213
213
|
|
214
214
|
const ref = row.getAttribute("data-monster-insert-reference");
|
215
215
|
if (!ref) {
|
216
|
-
addAttributeToken(
|
216
|
+
addAttributeToken(
|
217
|
+
this,
|
218
|
+
ATTRIBUTE_ERRORMESSAGE,
|
219
|
+
"reference is missing or empty",
|
220
|
+
);
|
217
221
|
return;
|
218
222
|
}
|
219
223
|
|