@schukai/monster 4.100.1 → 4.101.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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
 
4
4
 
5
+ ## [4.101.0] - 2026-01-17
6
+
7
+ ### Add Features
8
+
9
+ - Add control overflow property to Panel component
10
+
11
+
12
+
5
13
  ## [4.100.1] - 2026-01-16
6
14
 
7
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"Volker Schukai","dependencies":{"@floating-ui/dom":"^1.7.4","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.100.1"}
1
+ {"author":"Volker Schukai","dependencies":{"@floating-ui/dom":"^1.7.4","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"4.101.0"}
@@ -72,6 +72,7 @@ class Panel extends CustomElement {
72
72
  * @property {Object} templates Template definitions
73
73
  * @property {string} templates.main Main template
74
74
  * @property {string} heightAdjustment Height adjustment
75
+ * @property {string} controlOverflow Overflow value applied to the control element
75
76
  */
76
77
  get defaults() {
77
78
  return Object.assign({}, super.defaults, {
@@ -79,6 +80,7 @@ class Panel extends CustomElement {
79
80
  main: getTemplate(),
80
81
  },
81
82
  heightAdjustment: 4,
83
+ controlOverflow: "auto",
82
84
  });
83
85
  }
84
86
 
@@ -91,6 +93,7 @@ class Panel extends CustomElement {
91
93
 
92
94
  initControlReferences.call(this);
93
95
  initEventHandler.call(this);
96
+ applyControlOverflow.call(this);
94
97
 
95
98
  calcHeight.call(this);
96
99
  }
@@ -272,6 +275,24 @@ function initEventHandler() {
272
275
  return this;
273
276
  }
274
277
 
278
+ /**
279
+ * @private
280
+ */
281
+ function applyControlOverflow() {
282
+ const control = this[PanelElementSymbol];
283
+ if (!(control instanceof HTMLElement)) {
284
+ return;
285
+ }
286
+
287
+ const overflow = this.getOption("controlOverflow");
288
+ if (overflow === null || overflow === undefined || overflow === "") {
289
+ control.style.removeProperty("overflow");
290
+ return;
291
+ }
292
+
293
+ control.style.overflow = overflow;
294
+ }
295
+
275
296
  /**
276
297
  * @private
277
298
  * @return {string}