@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
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.
|
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);
|