@schukai/monster 3.59.0 → 3.59.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/source/components/layout/split-screen.mjs +0 -9
- package/source/types/version.mjs +1 -1
- package/test/cases/components/layout/slit-screen.mjs +83 -0
- package/test/cases/monster.mjs +1 -1
- package/test/web/import.js +1 -0
- package/test/web/test.html +2 -2
- package/test/web/tests.js +1363 -1072
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
|
2
|
+
## [3.59.1] - 2024-03-23
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
- console log [#171](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/171)
|
7
|
+
|
2
8
|
## [3.59.0] - 2024-03-23
|
3
9
|
|
4
10
|
### Add Features
|
@@ -6,6 +12,7 @@
|
|
6
12
|
- new split-screen [#171](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/171)
|
7
13
|
### Changes
|
8
14
|
|
15
|
+
- release and publish to npm new version 3.59.0
|
9
16
|
- update tests and doc
|
10
17
|
|
11
18
|
## [3.58.4] - 2024-03-18
|
package/package.json
CHANGED
@@ -226,15 +226,6 @@ function initEventHandler() {
|
|
226
226
|
applyPanelDimensions.call(this);
|
227
227
|
});
|
228
228
|
|
229
|
-
const resizeObserver = new ResizeObserver((entries) => {
|
230
|
-
for (let entry of entries) {
|
231
|
-
console.log(entry.contentRect.width);
|
232
|
-
}
|
233
|
-
});
|
234
|
-
|
235
|
-
resizeObserver.observe(this[splitScreenElementSymbol]);
|
236
|
-
|
237
|
-
|
238
229
|
this[draggerElementSymbol].addEventListener('mousedown', () => {
|
239
230
|
self[internalSymbol].getSubject().isDragging = true;
|
240
231
|
|
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,6 +1,7 @@
|
|
1
1
|
/** this file was created automatically by the run-web-tests script */
|
2
2
|
import "./prepare.js";
|
3
3
|
import "../cases/components/layout/tabs.mjs";
|
4
|
+
import "../cases/components/layout/slit-screen.mjs";
|
4
5
|
import "../cases/components/form/reload.mjs";
|
5
6
|
import "../cases/components/form/state-button.mjs";
|
6
7
|
import "../cases/components/form/select.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 Sa 23. Mär 22:
|
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>
|