@schukai/monster 3.74.0 → 3.76.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 +35 -6
- package/package.json +1 -1
- package/source/components/datatable/datasource/rest.mjs +0 -1
- 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/collapse.mjs +361 -395
- package/source/components/layout/details.mjs +10 -40
- package/source/components/layout/iframe.mjs +358 -0
- package/source/components/layout/panel.mjs +10 -25
- package/source/components/layout/slider.mjs +420 -439
- package/source/components/layout/split-panel.mjs +7 -39
- package/source/components/layout/style/iframe.pcss +39 -0
- package/source/components/layout/style/panel.pcss +10 -3
- package/source/components/layout/style/split-panel.pcss +2 -0
- package/source/components/layout/stylesheet/iframe.mjs +38 -0
- package/source/components/layout/stylesheet/panel.mjs +1 -1
- package/source/components/layout/stylesheet/slider.mjs +13 -6
- package/source/components/layout/tabs.mjs +6 -35
- package/source/components/layout/width-toggle.mjs +10 -31
- 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 +16 -12
- package/source/data/datasource/server/restapi.mjs +1 -1
- package/source/dom/updater.mjs +767 -771
- package/source/math/random.mjs +2 -3
- package/source/monster.mjs +12 -3
- package/source/types/version.mjs +1 -1
- package/test/cases/components/form/button.mjs +2 -1
- package/test/cases/components/form/confirm-button.mjs +1 -1
- package/test/cases/components/form/form.mjs +1 -1
- package/test/cases/components/form/reload.mjs +1 -1
- package/test/cases/components/form/select.mjs +1 -1
- package/test/cases/components/form/state-button.mjs +1 -1
- package/test/cases/components/form/template.mjs +1 -1
- package/test/cases/components/form/toggle-switch.mjs +1 -1
- package/test/cases/components/form/tree-select.mjs +1 -1
- package/test/cases/components/host/details.mjs +1 -1
- package/test/cases/components/host/host.mjs +1 -1
- package/test/cases/components/host/overlay.mjs +1 -1
- package/test/cases/components/layout/panel.mjs +1 -1
- package/test/cases/components/layout/slit-panel.mjs +1 -1
- package/test/cases/components/layout/tabs.mjs +1 -1
- package/test/cases/components/notify/message.mjs +1 -1
- package/test/cases/components/notify/notify.mjs +1 -1
- package/test/cases/dom/customcontrol.mjs +1 -1
- package/test/cases/dom/customelement-initfromscripthost.mjs +1 -1
- package/test/cases/dom/customelement.mjs +1 -1
- package/test/cases/dom/resource/data.mjs +1 -1
- package/test/cases/dom/resource/link/stylesheet.mjs +1 -1
- package/test/cases/dom/resource/link.mjs +1 -1
- package/test/cases/dom/resource/script.mjs +1 -1
- package/test/cases/dom/updater.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +6 -15
package/source/math/random.mjs
CHANGED
|
@@ -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 (
|
|
101
|
+
for (let i = 0; i < bytesNeeded; i++) {
|
|
103
102
|
rval += byteArray[i] * Math.pow(2, p);
|
|
104
103
|
p -= 8;
|
|
105
104
|
}
|
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,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";
|
package/source/types/version.mjs
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import {initJSDOM} from "../../../util/jsdom.mjs";
|
|
2
2
|
import {getGlobal} from "../../../../source/types/global.mjs";
|
|
3
|
-
import chai from
|
|
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
|
'use strict';
|
|
2
2
|
|
|
3
|
-
import chai from
|
|
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
|
|
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
|
|
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";
|
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>
|