@schukai/monster 3.74.0 → 3.76.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/CHANGELOG.md +35 -6
  2. package/package.json +1 -1
  3. package/source/components/datatable/datasource/rest.mjs +0 -1
  4. package/source/components/form/api-button.mjs +0 -1
  5. package/source/components/form/context-error.mjs +0 -1
  6. package/source/components/form/context-help.mjs +0 -1
  7. package/source/components/form/message-state-button.mjs +0 -1
  8. package/source/components/form/popper-button.mjs +0 -1
  9. package/source/components/form/select.mjs +16 -5
  10. package/source/components/form/toggle-switch.mjs +0 -3
  11. package/source/components/form/tree-select.mjs +0 -1
  12. package/source/components/layout/collapse.mjs +361 -395
  13. package/source/components/layout/details.mjs +10 -40
  14. package/source/components/layout/iframe.mjs +358 -0
  15. package/source/components/layout/panel.mjs +10 -25
  16. package/source/components/layout/slider.mjs +420 -439
  17. package/source/components/layout/split-panel.mjs +7 -39
  18. package/source/components/layout/style/iframe.pcss +39 -0
  19. package/source/components/layout/style/panel.pcss +10 -3
  20. package/source/components/layout/style/split-panel.pcss +2 -0
  21. package/source/components/layout/stylesheet/iframe.mjs +38 -0
  22. package/source/components/layout/stylesheet/panel.mjs +1 -1
  23. package/source/components/layout/stylesheet/slider.mjs +13 -6
  24. package/source/components/layout/tabs.mjs +6 -35
  25. package/source/components/layout/width-toggle.mjs +10 -31
  26. package/source/components/navigation/table-of-content.mjs +0 -1
  27. package/source/components/tree-menu/dragable-tree-menu.mjs +4 -4
  28. package/source/components/tree-menu/tree-menu.mjs +16 -12
  29. package/source/data/datasource/server/restapi.mjs +1 -1
  30. package/source/dom/updater.mjs +767 -771
  31. package/source/math/random.mjs +2 -3
  32. package/source/monster.mjs +12 -3
  33. package/source/types/version.mjs +1 -1
  34. package/test/cases/components/form/button.mjs +2 -1
  35. package/test/cases/components/form/confirm-button.mjs +1 -1
  36. package/test/cases/components/form/form.mjs +1 -1
  37. package/test/cases/components/form/reload.mjs +1 -1
  38. package/test/cases/components/form/select.mjs +1 -1
  39. package/test/cases/components/form/state-button.mjs +1 -1
  40. package/test/cases/components/form/template.mjs +1 -1
  41. package/test/cases/components/form/toggle-switch.mjs +1 -1
  42. package/test/cases/components/form/tree-select.mjs +1 -1
  43. package/test/cases/components/host/details.mjs +1 -1
  44. package/test/cases/components/host/host.mjs +1 -1
  45. package/test/cases/components/host/overlay.mjs +1 -1
  46. package/test/cases/components/layout/panel.mjs +1 -1
  47. package/test/cases/components/layout/slit-panel.mjs +1 -1
  48. package/test/cases/components/layout/tabs.mjs +1 -1
  49. package/test/cases/components/notify/message.mjs +1 -1
  50. package/test/cases/components/notify/notify.mjs +1 -1
  51. package/test/cases/dom/customcontrol.mjs +1 -1
  52. package/test/cases/dom/customelement-initfromscripthost.mjs +1 -1
  53. package/test/cases/dom/customelement.mjs +1 -1
  54. package/test/cases/dom/resource/data.mjs +1 -1
  55. package/test/cases/dom/resource/link/stylesheet.mjs +1 -1
  56. package/test/cases/dom/resource/link.mjs +1 -1
  57. package/test/cases/dom/resource/script.mjs +1 -1
  58. package/test/cases/dom/updater.mjs +1 -1
  59. package/test/cases/monster.mjs +1 -1
  60. package/test/web/test.html +2 -2
  61. package/test/web/tests.js +6 -15
@@ -69,10 +69,9 @@ Math.log2 =
69
69
  * @throws {Error} the distance is too small to create a random number.
70
70
  */
71
71
  function create(min, max) {
72
- let crypt;
73
72
  const globalReference = getGlobal();
74
73
 
75
- crypt =
74
+ const crypt =
76
75
  globalReference?.["crypto"] ||
77
76
  globalReference?.["msCrypto"] ||
78
77
  globalReference?.["crypto"] ||
@@ -99,7 +98,7 @@ function create(min, max) {
99
98
  crypt.getRandomValues(byteArray);
100
99
 
101
100
  let p = (bytesNeeded - 1) * 8;
102
- for (var i = 0; i < bytesNeeded; i++) {
101
+ for (let i = 0; i < bytesNeeded; i++) {
103
102
  rval += byteArray[i] * Math.pow(2, p);
104
103
  p -= 8;
105
104
  }
@@ -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,17 +8,25 @@
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";
22
+ export * from "./components/layout/iframe.mjs";
16
23
  export * from "./components/layout/tabs.mjs";
17
24
  export * from "./components/layout/split-panel.mjs";
18
25
  export * from "./components/layout/popper.mjs";
19
26
  export * from "./components/layout/width-toggle.mjs";
20
27
  export * from "./components/layout/panel.mjs";
21
28
  export * from "./components/layout/details.mjs";
29
+ export * from "./components/layout/slider.mjs";
22
30
  export * from "./components/form/message-state-button.mjs";
23
31
  export * from "./components/form/button-bar.mjs";
24
32
  export * from "./components/form/reload.mjs";
@@ -47,6 +55,7 @@ export * from "./components/form/constants.mjs";
47
55
  export * from "./components/notify/message.mjs";
48
56
  export * from "./components/notify/notify.mjs";
49
57
  export * from "./components/notify/constants.mjs";
58
+ //export * from "./components/tree-menu/dragable-tree-menu.mjs";
50
59
  export * from "./components/tree-menu/tree-menu.mjs";
51
60
  export * from "./components/host/collapse.mjs";
52
61
  export * from "./components/host/config-manager.mjs";
@@ -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.9");
162
+ monsterVersion = new Version("3.74.0");
163
163
 
164
164
  return monsterVersion;
165
165
  }
@@ -1,5 +1,6 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+
3
+ import * as chai from 'chai';
3
4
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
5
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
6
 
@@ -1,7 +1,7 @@
1
1
  import {DataUrl} from "../../../../source/types/dataurl.mjs";
2
2
 
3
3
  import {getGlobal} from "../../../../source/types/global.mjs";
4
- import chai from "chai"
4
+ import * as chai from 'chai';
5
5
  import {chaiDom} from "../../../util/chai-dom.mjs";
6
6
  import {initJSDOM} from "../../../util/jsdom.mjs";
7
7
  import {ResizeObserverMock} from "../../../util/resize-observer.mjs";
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
  import {Datasource} from "../../../../source/data/datasource.mjs";
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {setupIntersectionObserverMock} from "../../../util/intersection-mock.mjs";
5
5
  import {initJSDOM} from "../../../util/jsdom.mjs";
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
  import {ResizeObserverMock} from "../../../util/resize-observer.mjs";
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
  import {ResizeObserverMock} from "../../../util/resize-observer.mjs";
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {setupIntersectionObserverMock} from "../../../util/intersection-mock.mjs";
5
5
  import {initJSDOM} from "../../../util/jsdom.mjs";
@@ -1,5 +1,5 @@
1
1
  import { getGlobal } from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import { chaiDom } from "../../../util/chai-dom.mjs";
4
4
  import { initJSDOM } from "../../../util/jsdom.mjs";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,6 +1,6 @@
1
1
  import {initJSDOM} from "../../../util/jsdom.mjs";
2
2
  import {getGlobal} from "../../../../source/types/global.mjs";
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {chaiDom} from "../../../util/chai-dom.mjs";
5
5
  import {ResizeObserverMock} from "../../../util/resize-observer.mjs";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import {initJSDOM} from "../../../util/jsdom.mjs";
2
2
  import {getGlobal} from "../../../../source/types/global.mjs";
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {chaiDom} from "../../../util/chai-dom.mjs";
5
5
 
6
6
  let expect = chai.expect;
@@ -1,6 +1,6 @@
1
1
  import {initJSDOM} from "../../../util/jsdom.mjs";
2
2
  import {getGlobal} from "../../../../source/types/global.mjs";
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {chaiDom} from "../../../util/chai-dom.mjs";
5
5
 
6
6
 
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,5 +1,5 @@
1
1
  //import {getGlobal} from "../../../../source/types/global.mjs";
2
- import chai from "chai"
2
+ import * as chai from 'chai';
3
3
  import {chaiDom} from "../../../util/chai-dom.mjs";
4
4
  import {initJSDOM} from "../../../util/jsdom.mjs";
5
5
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {getDocument} from "../../../source/dom/util.mjs";
5
5
  import {chaiDom} from "../../util/chai-dom.mjs";
6
6
  import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../util/cleanupdom.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {getDocument} from "../../../source/dom/util.mjs";
5
5
  import {chaiDom} from "../../util/chai-dom.mjs";
6
6
  import {initJSDOM} from "../../util/jsdom.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {internalSymbol} from "../../../source/constants.mjs";
5
5
  import {getDocument} from "../../../source/dom/util.mjs";
6
6
  import {ProxyObserver} from "../../../source/types/proxyobserver.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {Data} from "../../../../source/dom/resource/data.mjs";
5
5
  import {DataUrl} from "../../../../source/types/dataurl.mjs";
6
6
  import {ID} from "../../../../source/types/id.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {Stylesheet} from "../../../../../source/dom/resource/link/stylesheet.mjs";
5
5
  import {DataUrl} from "../../../../../source/types/dataurl.mjs";
6
6
  import {ID} from "../../../../../source/types/id.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {Link} from "../../../../source/dom/resource/link.mjs";
5
5
  import {DataUrl} from "../../../../source/types/dataurl.mjs";
6
6
  import {ID} from "../../../../source/types/id.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
  import {Script} from "../../../../source/dom/resource/script.mjs";
5
5
  import {DataUrl} from "../../../../source/types/dataurl.mjs";
6
6
  import {ID} from "../../../../source/types/id.mjs";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- import chai from "chai"
3
+ import * as chai from 'chai';
4
4
 
5
5
  import {ID} from "../../../source/types/id.mjs";
6
6
  import {Observer} from "../../../source/types/observer.mjs";
@@ -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.9")
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.9</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update So 15. Sep 19:44:25 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>