@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/package.json +1 -1
  3. package/source/components/datatable/change-button.mjs +4 -4
  4. package/source/components/datatable/columnbar.mjs +2 -2
  5. package/source/components/datatable/dataset.mjs +2 -2
  6. package/source/components/datatable/datasource/rest.mjs +8 -8
  7. package/source/components/datatable/datatable.mjs +6 -6
  8. package/source/components/datatable/filter/date-range.mjs +6 -6
  9. package/source/components/datatable/filter/range.mjs +4 -4
  10. package/source/components/datatable/filter.mjs +4 -4
  11. package/source/components/datatable/save-button.mjs +4 -4
  12. package/source/components/datatable/util.mjs +2 -2
  13. package/source/components/form/api-button.mjs +0 -1
  14. package/source/components/form/context-error.mjs +0 -1
  15. package/source/components/form/context-help.mjs +0 -1
  16. package/source/components/form/message-state-button.mjs +0 -1
  17. package/source/components/form/popper-button.mjs +0 -1
  18. package/source/components/form/select.mjs +16 -5
  19. package/source/components/form/toggle-switch.mjs +0 -3
  20. package/source/components/form/tree-select.mjs +0 -1
  21. package/source/components/layout/slider.mjs +649 -0
  22. package/source/components/layout/style/slider.pcss +114 -0
  23. package/source/components/layout/stylesheet/slider.mjs +38 -0
  24. package/source/components/navigation/table-of-content.mjs +0 -1
  25. package/source/components/tree-menu/dragable-tree-menu.mjs +4 -4
  26. package/source/components/tree-menu/tree-menu.mjs +6 -6
  27. package/source/data/datasource/server/restapi.mjs +0 -1
  28. package/source/dom/events.mjs +1 -1
  29. package/source/dom/updater.mjs +767 -772
  30. package/source/monster.mjs +11 -3
  31. package/source/types/observer.mjs +7 -8
  32. package/source/types/version.mjs +1 -1
  33. package/test/cases/monster.mjs +1 -1
  34. package/test/web/test.html +2 -2
  35. package/test/web/tests.js +243 -202
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright © schukai GmbH and all contributing authors, {{copyRightYear}}. All rights reserved.
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
- return new Promise(function (resolve, reject) {
136
- if (!isObject(subject)) {
137
- reject("subject must be an object");
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
- setTimeout(() => {
142
+ queueMicrotask(() => {
144
143
  try {
145
- // the queue and the `setTimeout` ensure that an object is not
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
- }, 0);
163
+ });
165
164
  });
166
165
  }
167
166
  }
@@ -159,7 +159,7 @@ function getMonsterVersion() {
159
159
  }
160
160
 
161
161
  /** don't touch, replaced by make with package.json version */
162
- monsterVersion = new Version("3.73.6");
162
+ monsterVersion = new Version("3.74.0");
163
163
 
164
164
  return monsterVersion;
165
165
  }
@@ -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.73.6")
10
+ monsterVersion = new Version("3.74.0")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -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.73.6</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update Do 1. Aug 15:58:34 CEST 2024</div>
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>