@schukai/monster 3.108.0 → 3.108.2
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
|
+
## [3.108.2] - 2025-02-13
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- **api-bar:** response is not available in catch
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [3.108.1] - 2025-02-11
|
14
|
+
|
15
|
+
### Bug Fixes
|
16
|
+
|
17
|
+
- **save-button:** ignore not work with arrays [#292](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/292)
|
18
|
+
|
19
|
+
|
20
|
+
|
5
21
|
## [3.108.0] - 2025-02-11
|
6
22
|
|
7
23
|
### Add Features
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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.108.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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.108.2"}
|
@@ -205,7 +205,9 @@ class SaveButton extends CustomElement {
|
|
205
205
|
const result = diff(self[originValuesSymbol], currentValues);
|
206
206
|
if (self.getOption("logLevel") === "debug") {
|
207
207
|
console.groupCollapsed("SaveButton");
|
208
|
-
console.log(
|
208
|
+
console.log("originValues", JSON.parse(JSON.stringify(currentValues)));
|
209
|
+
console.log("result of diff", result);
|
210
|
+
console.log("ignoreChanges", ignoreChanges);
|
209
211
|
|
210
212
|
if (isArray(result) && result.length > 0) {
|
211
213
|
const formattedDiff = result.map((change) => ({
|
@@ -229,7 +231,13 @@ class SaveButton extends CustomElement {
|
|
229
231
|
for (const item of result) {
|
230
232
|
for (const ignorePattern of ignoreChanges) {
|
231
233
|
const p = new RegExp(ignorePattern);
|
232
|
-
|
234
|
+
|
235
|
+
let matchPath = item.path
|
236
|
+
if(isArray(item.path)){
|
237
|
+
matchPath = item.path.join(".");
|
238
|
+
}
|
239
|
+
|
240
|
+
if (p.test(matchPath)) {
|
233
241
|
itemsToRemove.push(item);
|
234
242
|
break;
|
235
243
|
}
|
@@ -497,7 +497,7 @@ function executeAPIButton(event, opts) {
|
|
497
497
|
}
|
498
498
|
|
499
499
|
if (isFunction(failedApiCall)) {
|
500
|
-
failedApiCall.call(self, button, error
|
500
|
+
failedApiCall.call(self, button, error);
|
501
501
|
} else if (
|
502
502
|
button instanceof MessageStateButton ||
|
503
503
|
button instanceof StateButton
|
@@ -99,7 +99,7 @@ class MessageStateButton extends Popper {
|
|
99
99
|
* @property {string|HTMLElement} message.content The message content
|
100
100
|
* @property {string} message.title The message title
|
101
101
|
* @property {string} message.icon The message icon
|
102
|
-
* @property {string} mode The mode of the button
|
102
|
+
* @property {string} mode The mode of the button, can be `manual` or `submit`
|
103
103
|
* @property {string} labels.button Button label
|
104
104
|
* @property {boolean} features.disableButton Disable the button
|
105
105
|
* @property {Object} aria Aria attributes
|