@schukai/monster 4.44.1 → 4.44.3
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 +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [4.44.3] - 2025-11-02
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **Select:** show only if filter inline
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [4.44.2] - 2025-11-02
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **Select:** disable sort if option is null
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
5
21
|
## [4.44.1] - 2025-11-01
|
|
6
22
|
|
|
7
23
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.4","@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.44.
|
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.4","@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.44.3"}
|
|
@@ -1007,7 +1007,17 @@ function importOptionsIntern(data) {
|
|
|
1007
1007
|
|
|
1008
1008
|
let entries = Array.from(map.entries());
|
|
1009
1009
|
|
|
1010
|
-
if (
|
|
1010
|
+
if (
|
|
1011
|
+
sort === "false" ||
|
|
1012
|
+
sort === false ||
|
|
1013
|
+
sort === null ||
|
|
1014
|
+
sort === "null" ||
|
|
1015
|
+
sort === "" ||
|
|
1016
|
+
sort === "none" ||
|
|
1017
|
+
sort === "no"
|
|
1018
|
+
) {
|
|
1019
|
+
// no sorting
|
|
1020
|
+
} else if (isString(sort)) {
|
|
1011
1021
|
if (sort.startsWith("run:")) {
|
|
1012
1022
|
const code = sort.replace("run:", "");
|
|
1013
1023
|
const sortFn = new Function("a", "b", "control", code);
|
|
@@ -1028,8 +1038,6 @@ function importOptionsIntern(data) {
|
|
|
1028
1038
|
addErrorAttribute(this, new Error(`Unknown sort function ${fkt}`));
|
|
1029
1039
|
}
|
|
1030
1040
|
}
|
|
1031
|
-
} else if (sort === false) {
|
|
1032
|
-
// no sorting
|
|
1033
1041
|
} else {
|
|
1034
1042
|
entries.sort((a, b) => {
|
|
1035
1043
|
const la = a[1]?.toString() ?? "";
|
|
@@ -2384,8 +2392,6 @@ function filterFromRemote() {
|
|
|
2384
2392
|
return Promise.reject(new Error("Missing Filter Element."));
|
|
2385
2393
|
}
|
|
2386
2394
|
|
|
2387
|
-
show.call(this);
|
|
2388
|
-
|
|
2389
2395
|
const url = this.getOption("url");
|
|
2390
2396
|
if (!url) {
|
|
2391
2397
|
addErrorAttribute(this, "Missing URL for Remote Filter.");
|
|
@@ -2397,6 +2403,7 @@ function filterFromRemote() {
|
|
|
2397
2403
|
|
|
2398
2404
|
switch (this.getOption("filter.position")) {
|
|
2399
2405
|
case FILTER_POSITION_INLINE:
|
|
2406
|
+
setTimeoput(() => show.call(this), 0);
|
|
2400
2407
|
if (this[inlineFilterElementSymbol] instanceof HTMLElement) {
|
|
2401
2408
|
filterValue = this[inlineFilterElementSymbol].value.toLowerCase();
|
|
2402
2409
|
}
|