@schukai/monster 3.73.9 → 3.75.0
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 +27 -0
- package/package.json +1 -1
- package/source/components/datatable/change-button.mjs +4 -4
- package/source/components/datatable/columnbar.mjs +2 -2
- package/source/components/datatable/dataset.mjs +2 -2
- package/source/components/datatable/datasource/rest.mjs +8 -8
- package/source/components/datatable/datatable.mjs +6 -6
- package/source/components/datatable/filter/date-range.mjs +6 -6
- package/source/components/datatable/filter/range.mjs +4 -4
- package/source/components/datatable/filter.mjs +4 -4
- package/source/components/datatable/save-button.mjs +4 -4
- package/source/components/datatable/util.mjs +2 -2
- package/source/components/form/api-button.mjs +0 -1
- package/source/components/form/context-error.mjs +0 -1
- package/source/components/form/context-help.mjs +0 -1
- package/source/components/form/message-state-button.mjs +0 -1
- package/source/components/form/popper-button.mjs +0 -1
- package/source/components/form/select.mjs +16 -5
- package/source/components/form/toggle-switch.mjs +0 -3
- package/source/components/form/tree-select.mjs +0 -1
- package/source/components/layout/slider.mjs +649 -0
- package/source/components/layout/style/slider.pcss +114 -0
- package/source/components/layout/stylesheet/slider.mjs +38 -0
- package/source/components/navigation/table-of-content.mjs +0 -1
- package/source/components/tree-menu/dragable-tree-menu.mjs +4 -4
- package/source/components/tree-menu/tree-menu.mjs +6 -6
- package/source/data/datasource/server/restapi.mjs +0 -1
- package/source/dom/events.mjs +1 -1
- package/source/dom/updater.mjs +767 -772
- package/source/monster.mjs +11 -3
- package/source/types/observer.mjs +7 -8
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +243 -202
package/source/monster.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright © schukai GmbH and all contributing authors,
|
|
2
|
+
* Copyright © schukai GmbH and all contributing authors, 2024. All rights reserved.
|
|
3
3
|
* Node module: @schukai/monster
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
|
|
@@ -8,10 +8,16 @@
|
|
|
8
8
|
* For those who do not wish to adhere to the AGPLv3, a commercial license is available.
|
|
9
9
|
* Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
|
|
10
10
|
* For more information about purchasing a commercial license, please contact schukai GmbH.
|
|
11
|
-
*
|
|
12
|
-
* SPDX-License-Identifier: AGPL-3.0
|
|
13
11
|
*/
|
|
14
12
|
|
|
13
|
+
// THIS FILE IS AUTOGENERATED. DO NOT EDIT THIS FILE DIRECTLY.
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Main namespace for Monster.
|
|
17
|
+
*
|
|
18
|
+
* @namespace Monster
|
|
19
|
+
* @author schukai GmbH
|
|
20
|
+
*/
|
|
15
21
|
export * from "./components/layout/collapse.mjs";
|
|
16
22
|
export * from "./components/layout/tabs.mjs";
|
|
17
23
|
export * from "./components/layout/split-panel.mjs";
|
|
@@ -19,6 +25,7 @@ export * from "./components/layout/popper.mjs";
|
|
|
19
25
|
export * from "./components/layout/width-toggle.mjs";
|
|
20
26
|
export * from "./components/layout/panel.mjs";
|
|
21
27
|
export * from "./components/layout/details.mjs";
|
|
28
|
+
export * from "./components/layout/slider.mjs";
|
|
22
29
|
export * from "./components/form/message-state-button.mjs";
|
|
23
30
|
export * from "./components/form/button-bar.mjs";
|
|
24
31
|
export * from "./components/form/reload.mjs";
|
|
@@ -47,6 +54,7 @@ export * from "./components/form/constants.mjs";
|
|
|
47
54
|
export * from "./components/notify/message.mjs";
|
|
48
55
|
export * from "./components/notify/notify.mjs";
|
|
49
56
|
export * from "./components/notify/constants.mjs";
|
|
57
|
+
export * from "./components/tree-menu/dragable-tree-menu.mjs";
|
|
50
58
|
export * from "./components/tree-menu/tree-menu.mjs";
|
|
51
59
|
export * from "./components/host/collapse.mjs";
|
|
52
60
|
export * from "./components/host/config-manager.mjs";
|
|
@@ -132,17 +132,16 @@ class Observer extends Base {
|
|
|
132
132
|
update(subject) {
|
|
133
133
|
const self = this;
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
135
|
+
if (!isObject(subject)) {
|
|
136
|
+
return Promise.reject("subject must be an object");
|
|
137
|
+
}
|
|
140
138
|
|
|
139
|
+
return new Promise(function (resolve, reject) {
|
|
141
140
|
self.queue.add(subject);
|
|
142
141
|
|
|
143
|
-
|
|
142
|
+
queueMicrotask(() => {
|
|
144
143
|
try {
|
|
145
|
-
// the queue and the `
|
|
144
|
+
// the queue and the `queueMicrotask` ensure that an object is not
|
|
146
145
|
// informed of the same change more than once.
|
|
147
146
|
if (self.queue.isEmpty()) {
|
|
148
147
|
resolve();
|
|
@@ -161,7 +160,7 @@ class Observer extends Base {
|
|
|
161
160
|
} catch (e) {
|
|
162
161
|
reject(e);
|
|
163
162
|
}
|
|
164
|
-
}
|
|
163
|
+
});
|
|
165
164
|
});
|
|
166
165
|
}
|
|
167
166
|
}
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED
package/test/web/test.html
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
|
12
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 3.
|
|
13
|
-
<div id="lastupdate" style='font-size:0.7em'>last update
|
|
12
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.74.0</h1>
|
|
13
|
+
<div id="lastupdate" style='font-size:0.7em'>last update Fr 20. Sep 17:42:55 CEST 2024</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div id="mocha-errors"
|
|
16
16
|
style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>
|