@schukai/monster 3.105.0 → 3.105.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
+ ## [3.105.1] - 2025-02-06
6
+
7
+ ### Bug Fixes
8
+
9
+ - **select:** lookup after setSelection
10
+
11
+
12
+
5
13
  ## [3.105.0] - 2025-02-05
6
14
 
7
15
  ### Add Features
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.105.0"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.105.1"}
@@ -314,7 +314,7 @@ function getTemplate() {
314
314
  <button data-monster-attributes="disabled path:disabled | if:true,
315
315
  class path:classes.button,
316
316
  aria-role path:aria.role,
317
- path:aria.label | if:true,
317
+ path:aria.label | if:true,
318
318
  type path:type"
319
319
  data-monster-role="button"
320
320
  part="button"
@@ -2282,6 +2282,7 @@ function isValueIsEmptyThenGetNormalize(value) {
2282
2282
  * @returns {Promise<unknown | void>}
2283
2283
  */
2284
2284
  function setSelection(selection) {
2285
+ const self = this;
2285
2286
 
2286
2287
  if (isString(selection) || isInteger(selection)) {
2287
2288
  const result = convertValueToSelection.call(this, selection);
@@ -2328,6 +2329,14 @@ function setSelection(selection) {
2328
2329
 
2329
2330
  fireEvent(this, "change"); // https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/291
2330
2331
 
2332
+ const lazyLoadFlag =
2333
+ this.getOption("features.lazyLoad") && this[lazyLoadDoneSymbol] !== true;
2334
+ let remoteFilterFlag = getFilterMode.call(this) === FILTER_MODE_REMOTE;
2335
+
2336
+ if (lazyLoadFlag || remoteFilterFlag) {
2337
+ lookupSelection.call(self);
2338
+ }
2339
+
2331
2340
  return new Processing(() => {
2332
2341
  const CLASSNAME = "selected";
2333
2342