@schukai/monster 4.44.1 → 4.44.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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
 
4
4
 
5
+ ## [4.44.2] - 2025-11-02
6
+
7
+ ### Bug Fixes
8
+
9
+ - **Select:** disable sort if option is null
10
+
11
+
12
+
5
13
  ## [4.44.1] - 2025-11-01
6
14
 
7
15
  ### 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"}
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.2"}
@@ -1007,7 +1007,17 @@ function importOptionsIntern(data) {
1007
1007
 
1008
1008
  let entries = Array.from(map.entries());
1009
1009
 
1010
- if (isString(sort)) {
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() ?? "";