@schukai/monster 4.45.1 → 4.45.3

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,22 @@
2
2
 
3
3
 
4
4
 
5
+ ## [4.45.3] - 2025-11-03
6
+
7
+ ### Bug Fixes
8
+
9
+ - **Select:** check if url is set [#339](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/339)
10
+
11
+
12
+
13
+ ## [4.45.2] - 2025-11-03
14
+
15
+ ### Bug Fixes
16
+
17
+ - **LocalSelect:** isobject -> isArray [#338](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/338)
18
+
19
+
20
+
5
21
  ## [4.45.1] - 2025-11-03
6
22
 
7
23
  ### 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.45.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.45.3"}
@@ -16,7 +16,7 @@ import {
16
16
  assembleMethodSymbol,
17
17
  registerCustomElement,
18
18
  } from "../../dom/customelement.mjs";
19
- import { isFunction, isObject } from "../../types/is.mjs";
19
+ import { isFunction, isObject, isArray } from "../../types/is.mjs";
20
20
  import { LocalePickerStyleSheet } from "./stylesheet/locale-picker.mjs";
21
21
  import { detectUserLanguagePreference } from "../../i18n/util.mjs";
22
22
 
@@ -253,7 +253,7 @@ function initSelectOptions() {
253
253
  );
254
254
  }
255
255
 
256
- if (this[selectElementSymbol] && isObject(options)) {
256
+ if (this[selectElementSymbol] && isArray(options)) {
257
257
  this[selectElementSymbol].setOption("mapping.labelTemplate", "${label}");
258
258
  this[selectElementSymbol].setOption("mapping.valueTemplate", "${href}");
259
259
  this[selectElementSymbol].setOption(
@@ -760,7 +760,7 @@ function getTranslations() {
760
760
  username: "Nom d'utilisateur ou e-mail",
761
761
  password: "Mot de passe",
762
762
  login: "Connexion",
763
- forgotPasswordLink: "Mot de passe oublié ?",
763
+ forgotPasswordLink: "Mot de passe oublié ?",
764
764
  mailAddress: "Adresse e-mail",
765
765
  requestLink: "Demander un lien",
766
766
  digits: "Code",
@@ -3253,6 +3253,10 @@ function show() {
3253
3253
  return;
3254
3254
  }
3255
3255
 
3256
+ const hasDefaultOptionsUrl = isString(
3257
+ this.getOption("filter.defaultOptionsUrl"),
3258
+ );
3259
+
3256
3260
  initDefaultOptionsFromUrl.call(this);
3257
3261
 
3258
3262
  const hasPopperFilterFlag =
@@ -3273,13 +3277,15 @@ function show() {
3273
3277
  new Processing(() => {
3274
3278
  if (!self?.[remoteFilterFirstOpendSymbol]) {
3275
3279
  self[remoteFilterFirstOpendSymbol] = true;
3276
- setTimeout(
3277
- () =>
3280
+
3281
+ if (!hasDefaultOptionsUrl) {
3282
+ setTimeout(() => {
3283
+ self[cleanupOptionsListSymbol] = true;
3278
3284
  filterFromRemote.call(self).catch((e) => {
3279
3285
  addErrorAttribute(self, e);
3280
- }),
3281
- 0,
3282
- );
3286
+ });
3287
+ }, 0);
3288
+ }
3283
3289
  }
3284
3290
  calcAndSetOptionsDimension.call(this);
3285
3291
  focusFilter.call(this);