@schukai/monster 4.15.2 → 4.15.4
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 +4 -4
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [4.15.4] - 2025-06-07
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- Remove unused property and improve option fetching in select component
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [4.15.3] - 2025-06-07
|
14
|
+
|
15
|
+
### Bug Fixes
|
16
|
+
|
17
|
+
- remove debugger from code
|
18
|
+
|
19
|
+
|
20
|
+
|
5
21
|
## [4.15.2] - 2025-06-07
|
6
22
|
|
7
23
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.1","@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.15.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.1","@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.15.4"}
|
@@ -417,7 +417,6 @@ class Select extends CustomControl {
|
|
417
417
|
* @property {boolean} features.useStrictValueComparison Use strict (`===`) comparison when matching option values.
|
418
418
|
* @property {boolean} features.showRemoteInfo When the filter mode is set to "remote," display a badge indicating the possibility of additional remote options.
|
419
419
|
* @property {Object} remoteInfo Configuration for remote info badge.
|
420
|
-
* @property {string} remoteInfo.path Path to the remote info badge.
|
421
420
|
* @property {string} remoteInfo.url URL for total count of options when `filter.mode==="remote"` is set.
|
422
421
|
* @property {Object} placeholder Placeholder text for the control.
|
423
422
|
* @property {string} placeholder.filter Placeholder text for filter input.
|
@@ -474,7 +473,6 @@ class Select extends CustomControl {
|
|
474
473
|
url: null,
|
475
474
|
|
476
475
|
remoteInfo: {
|
477
|
-
path: null,
|
478
476
|
url: null,
|
479
477
|
},
|
480
478
|
|
@@ -2727,7 +2725,7 @@ function convertSelectionToValue(selection) {
|
|
2727
2725
|
* @returns {boolean}
|
2728
2726
|
*/
|
2729
2727
|
function isValueIsEmpty(value) {
|
2730
|
-
|
2728
|
+
|
2731
2729
|
let equivalents = this.getOption("empty.equivalents");
|
2732
2730
|
if (!isArray(equivalents)) {
|
2733
2731
|
if (equivalents === undefined) {
|
@@ -3035,8 +3033,10 @@ function initTotal() {
|
|
3035
3033
|
return;
|
3036
3034
|
}
|
3037
3035
|
|
3036
|
+
const fetchOptions = this.getOption("fetch", {});
|
3037
|
+
|
3038
3038
|
getGlobal()
|
3039
|
-
.fetch(url)
|
3039
|
+
.fetch(url, fetchOptions)
|
3040
3040
|
.then((response) => {
|
3041
3041
|
if (!response.ok) {
|
3042
3042
|
// Improved status checking using `response.ok`
|