@schukai/monster 4.31.0 → 4.32.1
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 +16 -0
- package/package.json +1 -1
- package/source/components/form/select.mjs +37 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [4.32.1] - 2025-07-08
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- Improve select reset functionality with additional hiding logic
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [4.32.0] - 2025-07-08
|
14
|
+
|
15
|
+
### Add Features
|
16
|
+
|
17
|
+
- Add reset functionality to Select component
|
18
|
+
|
19
|
+
|
20
|
+
|
5
21
|
## [4.31.0] - 2025-07-08
|
6
22
|
|
7
23
|
### 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.
|
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.32.1"}
|
@@ -557,6 +557,43 @@ class Select extends CustomControl {
|
|
557
557
|
);
|
558
558
|
}
|
559
559
|
|
560
|
+
/**
|
561
|
+
* Resets the select control: clears selection, resets options, removes status/errors.
|
562
|
+
*/
|
563
|
+
reset() {
|
564
|
+
try {
|
565
|
+
|
566
|
+
hide.call(this);
|
567
|
+
|
568
|
+
setSelection.call(this, null).then(() => {
|
569
|
+
const lazyLoadFlag = this.getOption("features.lazyLoad");
|
570
|
+
const remoteFilterFlag = getFilterMode.call(this) === FILTER_MODE_REMOTE;
|
571
|
+
|
572
|
+
if (lazyLoadFlag || remoteFilterFlag) {
|
573
|
+
this.setOption("options", []);
|
574
|
+
}
|
575
|
+
|
576
|
+
this.setOption("messages.selected", "");
|
577
|
+
this.setOption("messages.total", "");
|
578
|
+
this.setOption("messages.summary", "");
|
579
|
+
|
580
|
+
removeErrorAttribute(this);
|
581
|
+
|
582
|
+
this[lazyLoadDoneSymbol] = false;
|
583
|
+
this[runLookupOnceSymbol] = false;
|
584
|
+
|
585
|
+
checkOptionState.call(this);
|
586
|
+
calcAndSetOptionsDimension.call(this);
|
587
|
+
updatePopper.call(this);
|
588
|
+
}).catch((e) => {
|
589
|
+
addErrorAttribute(this, e);
|
590
|
+
});
|
591
|
+
} catch (e) {
|
592
|
+
addErrorAttribute(this, e);
|
593
|
+
}
|
594
|
+
}
|
595
|
+
|
596
|
+
|
560
597
|
/**
|
561
598
|
* @return {Select}
|
562
599
|
*/
|