@schukai/monster 3.102.3 → 3.102.5

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,25 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.102.5] - 2025-01-30
6
+
7
+ ### Bug Fixes
8
+
9
+ - **select:** remove fireEvent [#291](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/291)
10
+
11
+
12
+
13
+ ## [3.102.4] - 2025-01-29
14
+
15
+ ### Bug Fixes
16
+
17
+ - remove request frame as it causes problems (performance) [#290](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/290)
18
+ ### Changes
19
+
20
+ - update webtest
21
+
22
+
23
+
5
24
  ## [3.102.3] - 2025-01-29
6
25
 
7
26
  ### Bug Fixes
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.102.3"}
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.102.5"}
@@ -236,7 +236,7 @@ class DataSet extends CustomElement {
236
236
  [assembleMethodSymbol]() {
237
237
  super[assembleMethodSymbol]();
238
238
 
239
- requestAnimationFrame(() => {
239
+ setTimeout(() => {
240
240
  if (!this[datasourceLinkedElementSymbol]) {
241
241
  const selector = this.getOption("datasource.selector");
242
242
 
@@ -278,7 +278,7 @@ class DataSet extends CustomElement {
278
278
  }
279
279
 
280
280
  initEventHandler.call(this);
281
- });
281
+ },10);
282
282
  }
283
283
 
284
284
  /**
@@ -414,7 +414,7 @@ class DataTable extends CustomElement {
414
414
 
415
415
  this[datasourceLinkedElementSymbol] = element;
416
416
 
417
- getWindow().requestAnimationFrame(() => {
417
+ queueMicrotask(() => {
418
418
  handleDataSourceChanges.call(this);
419
419
  if (element && "datasource" in element) {
420
420
  element.datasource.attachObserver(
@@ -547,11 +547,9 @@ function updateFilterSelections() {
547
547
  this[filterSelectElementSymbol].setOption("options", options);
548
548
 
549
549
  setTimeout(() => {
550
- window.requestAnimationFrame(() => {
551
- this[filterSelectElementSymbol].value =
552
- this[settingsSymbol].getSelected();
553
- });
554
- }, 0);
550
+ this[filterSelectElementSymbol].value =
551
+ this[settingsSymbol].getSelected();
552
+ }, 10);
555
553
  });
556
554
  }
557
555
 
@@ -516,7 +516,7 @@ function handleDataSourceChanges() {
516
516
  pagination.items = [];
517
517
  }
518
518
 
519
- getWindow().requestAnimationFrame(() => {
519
+ queueMicrotask(() => {
520
520
  this.setOption("pagination", pagination);
521
521
  });
522
522
  }
@@ -2298,7 +2298,7 @@ function setSelection(selection) {
2298
2298
  selection,
2299
2299
  });
2300
2300
 
2301
- fireEvent(this, "change");
2301
+ //fireEvent(this, "change"); // https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/291
2302
2302
 
2303
2303
  return new Processing(() => {
2304
2304
  const CLASSNAME = "selected";