@schukai/monster 4.51.1 → 4.51.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.51.3] - 2025-12-28
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Improve pagination component performance with setTimeout
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [4.51.2] - 2025-12-28
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- Add undefined check for transformed payload in RestAPI
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
5
21
|
## [4.51.1] - 2025-12-25
|
|
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.51.
|
|
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.51.3"}
|
|
@@ -240,7 +240,7 @@ class Pagination extends CustomElement {
|
|
|
240
240
|
addAttributeToken(this, ATTRIBUTE_ERRORMESSAGE, e?.message || `${e}`);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
setTimeout(() => {
|
|
244
244
|
const parentParentNode = parentNode?.parentNode || parentNode;
|
|
245
245
|
|
|
246
246
|
const parentWidth = parentParentNode.offsetWidth;
|
|
@@ -282,8 +282,8 @@ class Pagination extends CustomElement {
|
|
|
282
282
|
});
|
|
283
283
|
});
|
|
284
284
|
|
|
285
|
-
this[resizeObserverSymbol].observe(
|
|
286
|
-
});
|
|
285
|
+
this[resizeObserverSymbol].observe(parentParentNode);
|
|
286
|
+
}, 0);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
@@ -157,7 +157,11 @@ class RestAPI extends Server {
|
|
|
157
157
|
let callback = this.getOption("read.responseCallback");
|
|
158
158
|
if (!callback) {
|
|
159
159
|
callback = (obj) => {
|
|
160
|
-
this.
|
|
160
|
+
const transformedPayload = this.transformServerPayload.call(this, obj);
|
|
161
|
+
if (typeof transformedPayload === "undefined") {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this.set(transformedPayload);
|
|
161
165
|
};
|
|
162
166
|
}
|
|
163
167
|
|