@schukai/monster 4.78.0 → 4.79.0
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,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [4.79.0] - 2026-01-06
|
|
6
|
+
|
|
7
|
+
### Add Features
|
|
8
|
+
|
|
9
|
+
- Add HTML, MJS, and mock files for issue [#363](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/363)
|
|
10
|
+
### Changes
|
|
11
|
+
|
|
12
|
+
- cloase issues [#361](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/361) [#363](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/363)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
5
16
|
## [4.78.0] - 2026-01-06
|
|
6
17
|
|
|
7
18
|
### Add Features
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"Volker Schukai","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.
|
|
1
|
+
{"author":"Volker Schukai","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.79.0"}
|
|
@@ -378,7 +378,7 @@ class DataTable extends CustomElement {
|
|
|
378
378
|
.then((config) => {
|
|
379
379
|
const headerOrderMap = new Map();
|
|
380
380
|
|
|
381
|
-
getHostConfig
|
|
381
|
+
return getHostConfig
|
|
382
382
|
.call(this, getStoredOrderConfigKey)
|
|
383
383
|
.then((orderConfig) => {
|
|
384
384
|
if (isArray(orderConfig) || orderConfig.length > 0) {
|
|
@@ -399,9 +399,6 @@ class DataTable extends CustomElement {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
updateColumnBar.call(this);
|
|
402
|
-
})
|
|
403
|
-
.catch((error) => {
|
|
404
|
-
addErrorAttribute(this, error);
|
|
405
402
|
});
|
|
406
403
|
})
|
|
407
404
|
.catch((error) => {
|
|
@@ -1268,6 +1265,10 @@ function initGridAndStructs(hostConfig, headerOrderMap) {
|
|
|
1268
1265
|
});
|
|
1269
1266
|
}
|
|
1270
1267
|
|
|
1268
|
+
/**
|
|
1269
|
+
* @private
|
|
1270
|
+
*/
|
|
1271
|
+
|
|
1271
1272
|
/**
|
|
1272
1273
|
* @private
|
|
1273
1274
|
* @returns {object}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
import { ConfigManagerStyleSheet } from "./stylesheet/config-manager.mjs";
|
|
21
21
|
import { getWindow } from "../../dom/util.mjs";
|
|
22
22
|
import { instanceSymbol } from "../../constants.mjs";
|
|
23
|
+
import { diff } from "../../data/diff.mjs";
|
|
23
24
|
|
|
24
25
|
export { ConfigManager };
|
|
25
26
|
|
|
@@ -144,7 +145,20 @@ class ConfigManager extends CustomElement {
|
|
|
144
145
|
*/
|
|
145
146
|
setConfig(key, value) {
|
|
146
147
|
return this.ready().then(() => {
|
|
147
|
-
return
|
|
148
|
+
return getBlob
|
|
149
|
+
.call(this, key)
|
|
150
|
+
.then((storedValue) => {
|
|
151
|
+
if (diff(storedValue, value).length === 0) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
return setBlob.call(this, key, value);
|
|
155
|
+
})
|
|
156
|
+
.catch((error) => {
|
|
157
|
+
if (error?.message?.match(/is not defined/)) {
|
|
158
|
+
return setBlob.call(this, key, value);
|
|
159
|
+
}
|
|
160
|
+
throw error;
|
|
161
|
+
});
|
|
148
162
|
});
|
|
149
163
|
}
|
|
150
164
|
|
|
@@ -277,6 +291,9 @@ function getBlob(key) {
|
|
|
277
291
|
}
|
|
278
292
|
reject(new Error("The value of the key '" + key + "' is not defined."));
|
|
279
293
|
};
|
|
294
|
+
req.onerror = function () {
|
|
295
|
+
reject(req.error || new Error("IndexedDB get() failed"));
|
|
296
|
+
};
|
|
280
297
|
});
|
|
281
298
|
}
|
|
282
299
|
|