@schukai/monster 4.48.0 → 4.48.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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
 
4
4
 
5
+ ## [4.48.1] - 2025-11-28
6
+
7
+ ### Bug Fixes
8
+
9
+ - **components:** Prevent duplicate entries in select component [#345](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/345)
10
+
11
+
12
+
5
13
  ## [4.48.0] - 2025-11-28
6
14
 
7
15
  ### Add Features
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.48.0"}
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.48.1"}
@@ -1047,21 +1047,25 @@ function importOptionsIntern(data) {
1047
1047
  }
1048
1048
 
1049
1049
  for (const [value, label] of entries) {
1050
+ let found = false;
1050
1051
  for (const option of options) {
1051
1052
  if (option.value === value) {
1052
1053
  option.label = label;
1053
1054
  option.visibility = visibility;
1054
1055
  option.data = map.get(value);
1055
- continue;
1056
+ found = true;
1057
+ break;
1056
1058
  }
1057
1059
  }
1058
1060
 
1059
- options.push({
1060
- value,
1061
- label,
1062
- visibility,
1063
- data: map.get(value),
1064
- });
1061
+ if (!found) {
1062
+ options.push({
1063
+ value,
1064
+ label,
1065
+ visibility,
1066
+ data: map.get(value),
1067
+ });
1068
+ }
1065
1069
  }
1066
1070
 
1067
1071
  this.setOption("options", options);