@schukai/monster 4.40.0 → 4.40.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.40.1] - 2025-09-26
6
+
7
+ ### Bug Fixes
8
+
9
+ - update additional entries message [#333](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/333)
10
+
11
+
12
+
5
13
  ## [4.40.0] - 2025-09-25
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.40.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.40.1"}
@@ -1938,21 +1938,19 @@ function setTotalText() {
1938
1938
 
1939
1939
  const count = this.getOption("options").length;
1940
1940
  const total = Number.parseInt(this.getOption("total"));
1941
-
1942
1941
  if (Number.isNaN(total)) {
1943
1942
  this.setOption("messages.total", "");
1944
1943
  return;
1945
1944
  }
1946
1945
 
1947
1946
  const translations = getDefaultTranslation.call(this);
1948
- const text = translations.getPluralRuleText("total", total, "");
1949
1947
 
1950
1948
  const diff = total - count;
1951
1949
  if (diff < 0) {
1952
1950
  this.setOption("messages.total", "");
1953
1951
  return;
1954
1952
  }
1955
-
1953
+ const text = translations.getPluralRuleText("total", diff, "");
1956
1954
  const selectedText = new Formatter({
1957
1955
  count: String(diff),
1958
1956
  }).format(text);