@schukai/monster 3.58.4 → 3.59.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/source/components/form/tabs.mjs +5 -1026
- package/source/components/host/overlay.mjs +1 -1
- package/source/components/host/viewer.mjs +2 -14
- package/source/components/layout/namespace.mjs +13 -0
- package/source/components/layout/split-screen.mjs +332 -0
- package/source/components/layout/style/split-screen.pcss +59 -0
- package/source/components/{form → layout}/style/tabs.pcss +0 -3
- package/source/components/layout/stylesheet/split-screen.mjs +27 -0
- package/source/components/layout/tabs.mjs +1075 -0
- package/source/monster.mjs +5 -1
- package/source/types/version.mjs +1 -1
- package/test/cases/components/layout/slit-screen.mjs +83 -0
- package/test/cases/components/{form → layout}/tabs.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/import.js +2 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +18085 -17797
- /package/source/components/{form → layout}/stylesheet/tabs.mjs +0 -0
package/source/monster.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
/**
|
2
3
|
* Copyright schukai GmbH and contributors 2023. All Rights Reserved.
|
3
4
|
* Node module: @schukai/monster
|
@@ -15,6 +16,10 @@
|
|
15
16
|
* @author schukai GmbH
|
16
17
|
*/
|
17
18
|
|
19
|
+
export * from "./components/layout/tabs.mjs";
|
20
|
+
export * from "./components/layout/split-screen.mjs";
|
21
|
+
export * from "./components/layout/stylesheet/tabs.mjs";
|
22
|
+
export * from "./components/layout/stylesheet/split-screen.mjs";
|
18
23
|
export * from "./components/form/message-state-button.mjs";
|
19
24
|
export * from "./components/form/button-bar.mjs";
|
20
25
|
export * from "./components/form/reload.mjs";
|
@@ -42,7 +47,6 @@ export * from "./components/form/constants.mjs";
|
|
42
47
|
export * from "./components/form/stylesheet/message-state-button.mjs";
|
43
48
|
export * from "./components/form/stylesheet/button-bar.mjs";
|
44
49
|
export * from "./components/form/stylesheet/context-help.mjs";
|
45
|
-
export * from "./components/form/stylesheet/tabs.mjs";
|
46
50
|
export * from "./components/form/stylesheet/state-button.mjs";
|
47
51
|
export * from "./components/form/stylesheet/popper.mjs";
|
48
52
|
export * from "./components/form/stylesheet/select.mjs";
|
package/source/types/version.mjs
CHANGED
@@ -0,0 +1,83 @@
|
|
1
|
+
import {getGlobal} from "../../../../source/types/global.mjs";
|
2
|
+
import chai from "chai"
|
3
|
+
import {chaiDom} from "../../../util/chai-dom.mjs";
|
4
|
+
import {initJSDOM} from "../../../util/jsdom.mjs";
|
5
|
+
|
6
|
+
let expect = chai.expect;
|
7
|
+
chai.use(chaiDom);
|
8
|
+
|
9
|
+
const global = getGlobal();
|
10
|
+
|
11
|
+
|
12
|
+
// language=html
|
13
|
+
let html1 = `
|
14
|
+
<monster-split-screen id="my-split-screen">
|
15
|
+
|
16
|
+
</monster-split-screen>
|
17
|
+
`;
|
18
|
+
|
19
|
+
let SplitScreen;
|
20
|
+
|
21
|
+
describe('SplitScreen', function () {
|
22
|
+
|
23
|
+
before(function (done) {
|
24
|
+
initJSDOM().then(() => {
|
25
|
+
|
26
|
+
import("element-internals-polyfill").catch(e => done(e));
|
27
|
+
|
28
|
+
let promises = []
|
29
|
+
|
30
|
+
if (!global['crypto']) {
|
31
|
+
promises.push(import("@peculiar/webcrypto").then((m) => {
|
32
|
+
const Crypto = m['Crypto'];
|
33
|
+
global['crypto'] = new Crypto();
|
34
|
+
}));
|
35
|
+
}
|
36
|
+
|
37
|
+
promises.push(import("../../../../source/components/layout/split-screen.mjs").then((m) => {
|
38
|
+
SplitScreen = m['SplitScreen'];
|
39
|
+
}))
|
40
|
+
|
41
|
+
Promise.all(promises).then(()=>{
|
42
|
+
done();
|
43
|
+
}).catch(e => done(e))
|
44
|
+
|
45
|
+
});
|
46
|
+
})
|
47
|
+
|
48
|
+
describe('document.createElement()', function () {
|
49
|
+
|
50
|
+
afterEach(() => {
|
51
|
+
let mocks = document.getElementById('mocks');
|
52
|
+
mocks.innerHTML = "";
|
53
|
+
})
|
54
|
+
|
55
|
+
it('should have buttons and SplitScreen', function (done) {
|
56
|
+
|
57
|
+
let mocks = document.getElementById('mocks');
|
58
|
+
mocks.innerHTML = html1;
|
59
|
+
|
60
|
+
setTimeout(() => {
|
61
|
+
try {
|
62
|
+
const SplitScreen = document.getElementById('my-split-screen')
|
63
|
+
expect(SplitScreen).is.instanceof(HTMLElement);
|
64
|
+
|
65
|
+
setTimeout(() => {
|
66
|
+
let div = SplitScreen.shadowRoot.querySelector('div');
|
67
|
+
expect(div.hasChildNodes()).to.be.true;
|
68
|
+
done();
|
69
|
+
}, 100)
|
70
|
+
|
71
|
+
} catch (e) {
|
72
|
+
return done(e);
|
73
|
+
}
|
74
|
+
|
75
|
+
}, 0)
|
76
|
+
|
77
|
+
|
78
|
+
});
|
79
|
+
|
80
|
+
});
|
81
|
+
|
82
|
+
|
83
|
+
});
|
package/test/cases/monster.mjs
CHANGED
package/test/web/import.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
/** this file was created automatically by the run-web-tests script */
|
2
2
|
import "./prepare.js";
|
3
|
+
import "../cases/components/layout/tabs.mjs";
|
4
|
+
import "../cases/components/layout/slit-screen.mjs";
|
3
5
|
import "../cases/components/form/reload.mjs";
|
4
|
-
import "../cases/components/form/tabs.mjs";
|
5
6
|
import "../cases/components/form/state-button.mjs";
|
6
7
|
import "../cases/components/form/select.mjs";
|
7
8
|
import "../cases/components/form/confirm-button.mjs";
|
package/test/web/test.html
CHANGED
@@ -15,8 +15,8 @@
|
|
15
15
|
</head>
|
16
16
|
<body>
|
17
17
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
18
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 3.
|
19
|
-
<div id="lastupdate" style='font-size:0.7em'>last update
|
18
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.59.0</h1>
|
19
|
+
<div id="lastupdate" style='font-size:0.7em'>last update Sa 23. Mär 22:14:15 CET 2024</div>
|
20
20
|
</div>
|
21
21
|
<div id="mocha-errors"
|
22
22
|
style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>
|