@schukai/monster 3.73.0 → 3.73.1

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,64 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.73.1] - 2024-06-30
6
+
7
+ ### Bug Fixes
8
+
9
+ - update deadman switch assignment
10
+ ### Changes
11
+
12
+ - update issues
13
+ - remove node debug flag
14
+ - tidy changelog
15
+ - new task create documentation fragments and optimize create class task
16
+ - cleanup code
17
+
5
18
  ## [3.73.0] - 2024-06-28
6
19
 
7
20
  ### Add Features
8
21
 
9
- - create new form-bind attribute function [#224](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/224)
22
+ - create new form-bind attribute function [#224](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/224)
10
23
 
11
24
  ## 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)
25
+ - 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
26
 
14
27
  ## [3.72.0] - 2024-06-27
15
28
 
16
29
  ### Add Features
17
30
 
18
31
  - optimize tree menu [#191](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/191)
32
+
19
33
  ### Bug Fixes
20
34
 
21
35
  - remove style=display: block;
22
36
  - remove display property [#219](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/219)
37
+
23
38
  ### Changes
24
39
 
25
- - tidy and stylings
40
+ - tidy and styling adjustments
41
+
26
42
  ### Code Refactoring
27
43
 
28
44
  - paragraph mixin without text-alignment [#220](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/220)
29
45
 
30
-
31
-
32
46
  ## [3.71.3] - 2024-06-26
33
47
 
34
48
  ### Bug Fixes
35
49
 
36
50
  - remove display property [#219](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/219)
37
51
 
38
-
39
-
40
52
  ## [3.71.2] - 2024-06-25
41
53
 
42
54
  ### Bug Fixes
43
55
 
44
56
  - data-monster-option-filter [#194](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/194)
45
57
 
46
-
47
-
48
58
  ## [3.71.1] - 2024-06-25
49
59
 
50
- ### Bug Fixes
51
-
52
- - remove polifill [#218](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/218)
53
-
60
+ ### Security
54
61
 
62
+ - remove polyfill (polyfill.io attack) [#218](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/218)
55
63
 
56
64
  ## [3.71.0] - 2024-06-25
57
65
 
@@ -146,7 +154,6 @@
146
154
  - call Button use findElementWithSelectorUpwards [#201](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/201)
147
155
  - slight color adjustments
148
156
 
149
-
150
157
  ## [3.65.21] - 2024-06-20
151
158
 
152
159
  ### 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.1"}
@@ -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 (id === "") {
180
+ elementID = element.getAttribute("name");
181
+ }
182
+
183
+ if (id === "") {
184
+ elementID = element.getAttribute("data-monster-attributes");
185
+ }
186
+
187
+ if (id === "") {
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));