@schukai/monster 3.59.0 → 3.59.1

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.59.0",
3
+ "version": "3.59.1",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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
 
@@ -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.59.0");
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
+ });
@@ -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.59.0")
10
+ monsterVersion = new Version("3.59.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -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";
@@ -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.58.4</h1>
19
- <div id="lastupdate" style='font-size:0.7em'>last update Sa 23. Mär 22:04:34 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>