@schukai/monster 4.37.0 → 4.37.2
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/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/source/components/form/select.mjs +6 -2
- package/source/dom/error.mjs +7 -0
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +18 -4
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,25 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [4.37.2] - 2025-07-19
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- missing parameter
|
10
|
+
### Changes
|
11
|
+
|
12
|
+
- doc
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## [4.37.1] - 2025-07-19
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
- add import statement
|
21
|
+
|
22
|
+
|
23
|
+
|
5
24
|
## [4.37.0] - 2025-07-19
|
6
25
|
|
7
26
|
### Add Features
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.2","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.37.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.2","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.37.2"}
|
@@ -27,7 +27,11 @@ import {
|
|
27
27
|
getSlottedElements,
|
28
28
|
registerCustomElement,
|
29
29
|
} from "../../dom/customelement.mjs";
|
30
|
-
import {
|
30
|
+
import {
|
31
|
+
resetErrorAttribute,
|
32
|
+
addErrorAttribute,
|
33
|
+
removeErrorAttribute,
|
34
|
+
} from "../../dom/error.mjs";
|
31
35
|
import {
|
32
36
|
findTargetElementFromEvent,
|
33
37
|
fireCustomEvent,
|
@@ -579,7 +583,7 @@ class Select extends CustomControl {
|
|
579
583
|
this.setOption("messages.total", "");
|
580
584
|
this.setOption("messages.summary", "");
|
581
585
|
|
582
|
-
resetErrorAttribute
|
586
|
+
resetErrorAttribute(this);
|
583
587
|
|
584
588
|
this[lazyLoadDoneSymbol] = false;
|
585
589
|
this[runLookupOnceSymbol] = false;
|
package/source/dom/error.mjs
CHANGED
@@ -17,6 +17,13 @@ import { ATTRIBUTE_ERRORMESSAGE } from "./constants.mjs";
|
|
17
17
|
|
18
18
|
export { resetErrorAttribute, addErrorAttribute, removeErrorAttribute };
|
19
19
|
|
20
|
+
/**
|
21
|
+
* This method can be used to reset the error attribute of an element.
|
22
|
+
* @license AGPLv3
|
23
|
+
* @since 4.37.1
|
24
|
+
* @param {HTMLElement} element
|
25
|
+
* @return {HTMLElement}
|
26
|
+
*/
|
20
27
|
function resetErrorAttribute(element) {
|
21
28
|
validateInstance(element, HTMLElement);
|
22
29
|
if (element.hasAttribute(ATTRIBUTE_ERRORMESSAGE)) {
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED
package/test/web/test.html
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
12
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 4.
|
13
|
-
<div id="lastupdate" style='font-size:0.7em'>last update Sa 19. Jul
|
12
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 4.37.1</h1>
|
13
|
+
<div id="lastupdate" style='font-size:0.7em'>last update Sa 19. Jul 19:26:49 CEST 2025</div>
|
14
14
|
</div>
|
15
15
|
<div id="mocha-errors"
|
16
16
|
style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>
|