@schukai/monster 3.73.0 → 3.73.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,56 +2,72 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.73.2] - 2024-07-01
6
+
7
+ ### Bug Fixes
8
+
9
+ - id not defined
10
+
11
+
12
+
13
+ ## [3.73.1] - 2024-06-30
14
+
15
+ ### Bug Fixes
16
+
17
+ - update deadman switch assignment
18
+ ### Changes
19
+
20
+ - update issues
21
+ - remove node debug flag
22
+ - tidy changelog
23
+ - new task create documentation fragments and optimize create class task
24
+ - cleanup code
25
+
5
26
  ## [3.73.0] - 2024-06-28
6
27
 
7
28
  ### Add Features
8
29
 
9
- - create new form-bind attribute function [#224](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/224)
30
+ - create new form-bind attribute function [#224](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/224)
10
31
 
11
32
  ## 2024-06-22
12
- - new options to define the markers that are used for the label template [#203](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/203)
33
+ - new options to define the markers that are used for the label template [#203](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/203)
13
34
 
14
35
  ## [3.72.0] - 2024-06-27
15
36
 
16
37
  ### Add Features
17
38
 
18
39
  - optimize tree menu [#191](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/191)
40
+
19
41
  ### Bug Fixes
20
42
 
21
43
  - remove style=display: block;
22
44
  - remove display property [#219](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/219)
45
+
23
46
  ### Changes
24
47
 
25
- - tidy and stylings
48
+ - tidy and styling adjustments
49
+
26
50
  ### Code Refactoring
27
51
 
28
52
  - paragraph mixin without text-alignment [#220](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/220)
29
53
 
30
-
31
-
32
54
  ## [3.71.3] - 2024-06-26
33
55
 
34
56
  ### Bug Fixes
35
57
 
36
58
  - remove display property [#219](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/219)
37
59
 
38
-
39
-
40
60
  ## [3.71.2] - 2024-06-25
41
61
 
42
62
  ### Bug Fixes
43
63
 
44
64
  - data-monster-option-filter [#194](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/194)
45
65
 
46
-
47
-
48
66
  ## [3.71.1] - 2024-06-25
49
67
 
50
- ### Bug Fixes
51
-
52
- - remove polifill [#218](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/218)
53
-
68
+ ### Security
54
69
 
70
+ - remove polyfill (polyfill.io attack) [#218](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/218)
55
71
 
56
72
  ## [3.71.0] - 2024-06-25
57
73
 
@@ -146,7 +162,6 @@
146
162
  - call Button use findElementWithSelectorUpwards [#201](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/201)
147
163
  - slight color adjustments
148
164
 
149
-
150
165
  ## [3.65.21] - 2024-06-20
151
166
 
152
167
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.6","@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.73.0"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.6","@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.73.2"}
@@ -201,7 +201,6 @@ class ContextError extends Popper {
201
201
  }
202
202
 
203
203
  if (c === "<slot></slot>") {
204
- console.log(this.shadowRoot.querySelector("slot"));
205
204
 
206
205
  const sr = this.shadowRoot;
207
206
  if (!sr) {
@@ -74,11 +74,11 @@ class Form extends DataSet {
74
74
  },
75
75
 
76
76
  writeBack: {
77
- events: ["change", "input", "keyup"],
77
+ events: ["keyup", "click", "change", "drop", "touchend", "input"]
78
78
  },
79
79
 
80
80
  bind: {
81
- events: ["keyup", "click", "change", "drop", "touchend", "input"],
81
+ events: ["keyup", "click", "change", "drop", "touchend", "input"]
82
82
  },
83
83
 
84
84
  reportValidity: {
@@ -170,23 +170,41 @@ function initEventHandler() {
170
170
  this.addEventListener(event, (e) => {
171
171
  const element = findTargetElementFromEvent(e, ATTRIBUTE_FORM_BIND);
172
172
 
173
- if (element === undefined) {
173
+ if (!(element instanceof HTMLElement)) {
174
174
  return;
175
175
  }
176
176
 
177
- if (this[debounceBindSymbol][element] instanceof DeadMansSwitch) {
177
+ let elementID = element.id;
178
+
179
+ if (elementID === "") {
180
+ elementID = element.getAttribute("name");
181
+ }
182
+
183
+ if (elementID === "") {
184
+ elementID = element.getAttribute("data-monster-attributes");
185
+ }
186
+
187
+ if (elementID === "") {
188
+ elementID = element.innerText.substring(0, 20);
189
+ }
190
+
191
+ elementID = elementID.replace(/\s/g, "_")
192
+
193
+ if (this[debounceBindSymbol][elementID] instanceof DeadMansSwitch) {
178
194
  try {
179
- this[debounceBindSymbol][element].touch();
195
+ this[debounceBindSymbol][elementID].touch();
180
196
  return;
181
197
  } catch (e) {
182
198
  if (e.message !== "has already run") {
183
199
  throw e;
184
200
  }
185
- delete this[debounceBindSymbol][element];
201
+
202
+ delete this[debounceBindSymbol][elementID];
186
203
  }
187
204
  }
188
205
 
189
- this[debounceBindSymbol][element] = new DeadMansSwitch(200, () => {
206
+ this[debounceBindSymbol][elementID] = new DeadMansSwitch(200, () => {
207
+ delete this[debounceBindSymbol][elementID];
190
208
  retrieveAndSetValue.call(this, element);
191
209
  });
192
210
  });
@@ -342,10 +360,7 @@ function retrieveAndSetValue(element) {
342
360
  if (diffResult.length > 0) {
343
361
  setTimeout(() => {
344
362
  this.setOption(path, value);
345
- }, 100);
346
- setTimeout(() => {
347
- console.log(this[internalSymbol].getRealSubject().options.data);
348
- }, 1000);
363
+ }, 50);
349
364
  }
350
365
  }
351
366
 
@@ -236,8 +236,6 @@ class TreeMenu extends CustomElement {
236
236
  "[data-monster-insert-reference=entries-" + index + "]",
237
237
  );
238
238
 
239
- console.log(currentNode);
240
-
241
239
  currentNode.click();
242
240
 
243
241
  let intend = parseInt(currentNode.getAttribute(ATTRIBUTE_INTEND));