@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.
@@ -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";
@@ -152,7 +152,7 @@ function getMonsterVersion() {
152
152
  }
153
153
 
154
154
  /** don't touch, replaced by make with package.json version */
155
- monsterVersion = new Version("3.58.4");
155
+ monsterVersion = new Version("3.59.1");
156
156
 
157
157
  return monsterVersion;
158
158
  }
@@ -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
+ });
@@ -46,7 +46,7 @@ describe('Tabs', function () {
46
46
  }));
47
47
  }
48
48
 
49
- promises.push(import("../../../../source/components/form/tabs.mjs").then((m) => {
49
+ promises.push(import("../../../../source/components/layout/tabs.mjs").then((m) => {
50
50
  Tabs = m['Tabs'];
51
51
  }))
52
52
 
@@ -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.58.4")
10
+ monsterVersion = new Version("3.59.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -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";
@@ -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.57.0</h1>
19
- <div id="lastupdate" style='font-size:0.7em'>last update So 17. Mär 11:35:11 CET 2024</div>
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>