@schukai/monster 3.55.0 → 3.55.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 +16 -0
- package/package.json +1 -1
- package/source/components/datatable/datasource/rest.mjs +313 -326
- package/source/components/datatable/datatable/header.mjs +1 -1
- package/source/components/datatable/datatable.mjs +586 -591
- package/source/components/datatable/embedded-pagination.mjs +42 -49
- package/source/components/datatable/filter/util.mjs +115 -99
- package/source/components/datatable/filter.mjs +901 -842
- package/source/components/datatable/pagination.mjs +333 -334
- package/source/components/datatable/status.mjs +134 -156
- package/source/components/datatable/stylesheet/column-bar.mjs +14 -8
- package/source/components/datatable/stylesheet/dataset.mjs +14 -8
- package/source/components/datatable/stylesheet/datasource.mjs +14 -8
- package/source/components/datatable/stylesheet/datatable.mjs +14 -8
- package/source/components/datatable/stylesheet/embedded-pagination.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-button.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-controls-defaults.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-date-range.mjs +14 -8
- package/source/components/datatable/stylesheet/filter-range.mjs +14 -8
- package/source/components/datatable/stylesheet/filter.mjs +14 -8
- package/source/components/datatable/stylesheet/pagination.mjs +14 -8
- package/source/components/datatable/stylesheet/select-filter.mjs +14 -8
- package/source/components/datatable/stylesheet/status.mjs +14 -8
- package/source/components/form/action-button.mjs +3 -1
- package/source/components/form/confirm-button.mjs +3 -1
- package/source/components/form/context-error.mjs +161 -164
- package/source/components/form/context-help.mjs +3 -1
- package/source/components/form/form.mjs +3 -1
- package/source/components/form/message-state-button.mjs +3 -1
- package/source/components/form/popper-button.mjs +6 -4
- package/source/components/form/popper.mjs +310 -310
- package/source/components/form/select.mjs +2 -2
- package/source/components/form/state-button.mjs +3 -1
- package/source/components/form/stylesheet/action-button.mjs +14 -8
- package/source/components/form/stylesheet/api-button.mjs +14 -8
- package/source/components/form/stylesheet/button-bar.mjs +14 -8
- package/source/components/form/stylesheet/button.mjs +14 -8
- package/source/components/form/stylesheet/confirm-button.mjs +14 -8
- package/source/components/form/stylesheet/context-error.mjs +14 -8
- package/source/components/form/stylesheet/context-help.mjs +14 -8
- package/source/components/form/stylesheet/form.mjs +14 -8
- package/source/components/form/stylesheet/message-state-button.mjs +14 -8
- package/source/components/form/stylesheet/popper-button.mjs +14 -8
- package/source/components/form/stylesheet/popper.mjs +14 -8
- package/source/components/form/stylesheet/select.mjs +14 -8
- package/source/components/form/stylesheet/state-button.mjs +14 -8
- package/source/components/form/stylesheet/tabs.mjs +14 -8
- package/source/components/form/stylesheet/tree-select.mjs +14 -8
- package/source/components/form/tabs.mjs +754 -758
- package/source/components/host/collapse.mjs +2 -4
- package/source/components/host/config-manager.mjs +11 -9
- package/source/components/host/stylesheet/call-button.mjs +14 -8
- package/source/components/host/stylesheet/collapse.mjs +14 -8
- package/source/components/host/stylesheet/config-manager.mjs +14 -8
- package/source/components/host/stylesheet/details.mjs +14 -8
- package/source/components/host/stylesheet/host.mjs +14 -8
- package/source/components/host/stylesheet/overlay.mjs +14 -8
- package/source/components/host/stylesheet/toggle-button.mjs +14 -8
- package/source/components/host/stylesheet/viewer.mjs +14 -8
- package/source/components/host/util.mjs +2 -2
- package/source/components/notify/stylesheet/message.mjs +14 -8
- package/source/components/notify/stylesheet/notify.mjs +14 -8
- package/source/components/state/stylesheet/log.mjs +14 -8
- package/source/components/state/stylesheet/state.mjs +14 -8
- package/source/components/stylesheet/badge.mjs +14 -8
- package/source/components/stylesheet/border.mjs +14 -8
- package/source/components/stylesheet/button.mjs +14 -8
- package/source/components/stylesheet/card.mjs +14 -8
- package/source/components/stylesheet/color.mjs +14 -8
- package/source/components/stylesheet/common.mjs +14 -8
- package/source/components/stylesheet/control.mjs +14 -8
- package/source/components/stylesheet/data-grid.mjs +14 -8
- package/source/components/stylesheet/display.mjs +14 -8
- package/source/components/stylesheet/floating-ui.mjs +14 -8
- package/source/components/stylesheet/form.mjs +14 -8
- package/source/components/stylesheet/host.mjs +14 -8
- package/source/components/stylesheet/icons.mjs +14 -8
- package/source/components/stylesheet/link.mjs +14 -8
- package/source/components/stylesheet/normalize.mjs +14 -8
- package/source/components/stylesheet/popper.mjs +14 -8
- package/source/components/stylesheet/property.mjs +14 -8
- package/source/components/stylesheet/ripple.mjs +14 -8
- package/source/components/stylesheet/skeleton.mjs +14 -8
- package/source/components/stylesheet/space.mjs +14 -8
- package/source/components/stylesheet/spinner.mjs +14 -8
- package/source/components/stylesheet/table.mjs +14 -8
- package/source/components/stylesheet/theme.mjs +14 -8
- package/source/components/stylesheet/typography.mjs +14 -8
- package/source/components/tree-menu/stylesheet/tree-menu.mjs +14 -8
- package/source/data/transformer.mjs +6 -8
- package/source/dom/attributes.mjs +5 -5
- package/source/dom/customelement.mjs +1 -1
- package/source/dom/updater.mjs +697 -700
- package/source/dom/util.mjs +2 -2
- package/source/monster.mjs +0 -1
- package/source/types/noderecursiveiterator.mjs +9 -7
- package/source/types/version.mjs +1 -1
- package/source/util/sleep.mjs +3 -4
- package/test/cases/monster.mjs +1 -1
package/source/dom/util.mjs
CHANGED
@@ -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
|
|
package/source/monster.mjs
CHANGED
@@ -22,7 +22,7 @@ export { NodeRecursiveIterator };
|
|
22
22
|
const isNodeListSymbol = Symbol("isNodeList");
|
23
23
|
|
24
24
|
/**
|
25
|
-
*
|
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
|
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
|
44
|
+
// iterator is a NodeList
|
44
45
|
if (isInstance(node, NodeList)) {
|
45
46
|
const children = node;
|
46
|
-
|
47
|
-
|
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
|
/**
|
package/source/types/version.mjs
CHANGED
package/source/util/sleep.mjs
CHANGED
@@ -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
|
-
|
18
|
-
}
|
16
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
17
|
+
}
|
package/test/cases/monster.mjs
CHANGED