@schukai/monster 3.55.0 → 3.55.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/source/components/datatable/datasource/rest.mjs +313 -326
  4. package/source/components/datatable/datatable/header.mjs +1 -1
  5. package/source/components/datatable/datatable.mjs +586 -591
  6. package/source/components/datatable/embedded-pagination.mjs +42 -49
  7. package/source/components/datatable/filter/util.mjs +115 -99
  8. package/source/components/datatable/filter.mjs +901 -842
  9. package/source/components/datatable/pagination.mjs +333 -334
  10. package/source/components/datatable/status.mjs +134 -156
  11. package/source/components/datatable/stylesheet/column-bar.mjs +14 -8
  12. package/source/components/datatable/stylesheet/dataset.mjs +14 -8
  13. package/source/components/datatable/stylesheet/datasource.mjs +14 -8
  14. package/source/components/datatable/stylesheet/datatable.mjs +14 -8
  15. package/source/components/datatable/stylesheet/embedded-pagination.mjs +14 -8
  16. package/source/components/datatable/stylesheet/filter-button.mjs +14 -8
  17. package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +14 -8
  18. package/source/components/datatable/stylesheet/filter-date-range.mjs +14 -8
  19. package/source/components/datatable/stylesheet/filter-range.mjs +14 -8
  20. package/source/components/datatable/stylesheet/filter.mjs +14 -8
  21. package/source/components/datatable/stylesheet/pagination.mjs +14 -8
  22. package/source/components/datatable/stylesheet/select-filter.mjs +14 -8
  23. package/source/components/datatable/stylesheet/status.mjs +14 -8
  24. package/source/components/form/action-button.mjs +3 -1
  25. package/source/components/form/confirm-button.mjs +3 -1
  26. package/source/components/form/context-error.mjs +161 -164
  27. package/source/components/form/context-help.mjs +3 -1
  28. package/source/components/form/form.mjs +3 -1
  29. package/source/components/form/message-state-button.mjs +3 -1
  30. package/source/components/form/popper-button.mjs +6 -4
  31. package/source/components/form/popper.mjs +310 -310
  32. package/source/components/form/select.mjs +2 -2
  33. package/source/components/form/state-button.mjs +3 -1
  34. package/source/components/form/stylesheet/action-button.mjs +14 -8
  35. package/source/components/form/stylesheet/api-button.mjs +14 -8
  36. package/source/components/form/stylesheet/button-bar.mjs +14 -8
  37. package/source/components/form/stylesheet/button.mjs +14 -8
  38. package/source/components/form/stylesheet/confirm-button.mjs +14 -8
  39. package/source/components/form/stylesheet/context-error.mjs +14 -8
  40. package/source/components/form/stylesheet/context-help.mjs +14 -8
  41. package/source/components/form/stylesheet/form.mjs +14 -8
  42. package/source/components/form/stylesheet/message-state-button.mjs +14 -8
  43. package/source/components/form/stylesheet/popper-button.mjs +14 -8
  44. package/source/components/form/stylesheet/popper.mjs +14 -8
  45. package/source/components/form/stylesheet/select.mjs +14 -8
  46. package/source/components/form/stylesheet/state-button.mjs +14 -8
  47. package/source/components/form/stylesheet/tabs.mjs +14 -8
  48. package/source/components/form/stylesheet/tree-select.mjs +14 -8
  49. package/source/components/form/tabs.mjs +754 -758
  50. package/source/components/host/collapse.mjs +2 -4
  51. package/source/components/host/config-manager.mjs +11 -9
  52. package/source/components/host/stylesheet/call-button.mjs +14 -8
  53. package/source/components/host/stylesheet/collapse.mjs +14 -8
  54. package/source/components/host/stylesheet/config-manager.mjs +14 -8
  55. package/source/components/host/stylesheet/details.mjs +14 -8
  56. package/source/components/host/stylesheet/host.mjs +14 -8
  57. package/source/components/host/stylesheet/overlay.mjs +14 -8
  58. package/source/components/host/stylesheet/toggle-button.mjs +14 -8
  59. package/source/components/host/stylesheet/viewer.mjs +14 -8
  60. package/source/components/host/util.mjs +2 -2
  61. package/source/components/notify/stylesheet/message.mjs +14 -8
  62. package/source/components/notify/stylesheet/notify.mjs +14 -8
  63. package/source/components/state/stylesheet/log.mjs +14 -8
  64. package/source/components/state/stylesheet/state.mjs +14 -8
  65. package/source/components/stylesheet/badge.mjs +14 -8
  66. package/source/components/stylesheet/border.mjs +14 -8
  67. package/source/components/stylesheet/button.mjs +14 -8
  68. package/source/components/stylesheet/card.mjs +14 -8
  69. package/source/components/stylesheet/color.mjs +14 -8
  70. package/source/components/stylesheet/common.mjs +14 -8
  71. package/source/components/stylesheet/control.mjs +14 -8
  72. package/source/components/stylesheet/data-grid.mjs +14 -8
  73. package/source/components/stylesheet/display.mjs +14 -8
  74. package/source/components/stylesheet/floating-ui.mjs +14 -8
  75. package/source/components/stylesheet/form.mjs +14 -8
  76. package/source/components/stylesheet/host.mjs +14 -8
  77. package/source/components/stylesheet/icons.mjs +14 -8
  78. package/source/components/stylesheet/link.mjs +14 -8
  79. package/source/components/stylesheet/normalize.mjs +14 -8
  80. package/source/components/stylesheet/popper.mjs +14 -8
  81. package/source/components/stylesheet/property.mjs +14 -8
  82. package/source/components/stylesheet/ripple.mjs +14 -8
  83. package/source/components/stylesheet/skeleton.mjs +14 -8
  84. package/source/components/stylesheet/space.mjs +14 -8
  85. package/source/components/stylesheet/spinner.mjs +14 -8
  86. package/source/components/stylesheet/table.mjs +14 -8
  87. package/source/components/stylesheet/theme.mjs +14 -8
  88. package/source/components/stylesheet/typography.mjs +14 -8
  89. package/source/components/tree-menu/stylesheet/tree-menu.mjs +14 -8
  90. package/source/data/transformer.mjs +6 -8
  91. package/source/dom/attributes.mjs +5 -5
  92. package/source/dom/customelement.mjs +1 -1
  93. package/source/dom/updater.mjs +697 -700
  94. package/source/dom/util.mjs +2 -2
  95. package/source/monster.mjs +0 -1
  96. package/source/types/noderecursiveiterator.mjs +9 -7
  97. package/source/types/version.mjs +1 -1
  98. package/source/util/sleep.mjs +3 -4
  99. package/test/cases/monster.mjs +1 -1
@@ -212,7 +212,7 @@ function findElementWithIdUpwards(element, targetId) {
212
212
  * Recursively searches upwards from a given element to find an ancestor element
213
213
  * with a specified selector, considering both normal DOM and shadow DOM.
214
214
  * This method is useful for finding a parent element with a specific class.
215
- *
215
+ *
216
216
  * @param {HTMLElement|ShadowRoot} element - The starting element or shadow root to search from.
217
217
  * @param {string} selector - The selector of the target element to find.
218
218
  * @returns {HTMLElement|null} - The ancestor element with the specified selector, or null if not found.
@@ -220,7 +220,7 @@ function findElementWithIdUpwards(element, targetId) {
220
220
  * @since 3.55.0
221
221
  */
222
222
  function findElementWithSelectorUpwards(element, selector) {
223
- if (!element) {
223
+ if (!element || !selector) {
224
224
  return null;
225
225
  }
226
226
 
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
4
3
  * Node module: @schukai/monster
@@ -22,7 +22,7 @@ export { NodeRecursiveIterator };
22
22
  const isNodeListSymbol = Symbol("isNodeList");
23
23
 
24
24
  /**
25
- * You can create the instance via the monster namespace `new Monster.Types.NodeRecursiveIterator()`.
25
+ * Represents a recursive iterator for traversing nodes in a DOM tree.
26
26
  *
27
27
  * @externalExample ../../example/types/noderecursiveiterator.mjs
28
28
  * @license AGPLv3
@@ -30,22 +30,25 @@ const isNodeListSymbol = Symbol("isNodeList");
30
30
  * @copyright schukai GmbH
31
31
  * @memberOf Monster.Types
32
32
  * @summary An iterator to run recursively through a tree of nodes
33
+ * @extends Base
33
34
  */
34
35
  class NodeRecursiveIterator extends Base {
35
36
  /**
36
- * @param {Node} [data]
37
+ * @param node
37
38
  */
38
39
  constructor(node) {
39
40
  super();
40
41
 
41
42
  this[isNodeListSymbol] = false;
42
43
 
43
- // iterator is a nodelist
44
+ // iterator is a NodeList
44
45
  if (isInstance(node, NodeList)) {
45
46
  const children = node;
46
- node = new Node();
47
- node.childNodes = children;
47
+ let n = new Node();
48
+ n.childNodes = children;
48
49
  this[isNodeListSymbol] = true;
50
+ this[internalSymbol] = n;
51
+ return;
49
52
  }
50
53
 
51
54
  this[internalSymbol] = validateInstance(node, Node);
@@ -77,8 +80,7 @@ class NodeRecursiveIterator extends Base {
77
80
  yield* new NodeRecursiveIterator(node);
78
81
  }
79
82
  }
80
-
81
- return;
83
+
82
84
  };
83
85
 
84
86
  /**
@@ -152,7 +152,7 @@ function getMonsterVersion() {
152
152
  }
153
153
 
154
154
  /** don't touch, replaced by make with package.json version */
155
- monsterVersion = new Version("3.55.0");
155
+ monsterVersion = new Version("3.55.1");
156
156
 
157
157
  return monsterVersion;
158
158
  }
@@ -5,14 +5,13 @@
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
6
6
  */
7
7
 
8
-
9
8
  /**
10
- *
9
+ *
11
10
  * @param milliseconds
12
11
  * @returns {Promise<unknown>}
13
12
  * @since 3.55.0
14
13
  * @memberOf Monster.Util
15
14
  */
16
15
  export function Sleep(milliseconds) {
17
- return new Promise(resolve => setTimeout(resolve, milliseconds));
18
- }
16
+ return new Promise((resolve) => setTimeout(resolve, milliseconds));
17
+ }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.55.0")
10
+ monsterVersion = new Version("3.55.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13