@schukai/monster 3.118.0 → 3.118.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
@@ -2,6 +2,17 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.118.1] - 2025-05-02
6
+
7
+ ### Bug Fixes
8
+
9
+ - remove strange chars from toggle
10
+ ### Changes
11
+
12
+ - update import
13
+
14
+
15
+
5
16
  ## [3.118.0] - 2025-05-01
6
17
 
7
18
  ### Add Features
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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":"3.118.0"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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":"3.118.1"}
@@ -16,7 +16,7 @@ import { instanceSymbol } from "../../constants.mjs";
16
16
  import { registerCustomElement } from "../../dom/customelement.mjs";
17
17
  import { CustomControl } from "../../dom/customcontrol.mjs";
18
18
  import { ContextHelpStyleSheet } from "./stylesheet/context-help.mjs";
19
- import { Popper } from "./popper.mjs";
19
+ import { Popper } from "../layout/popper.mjs";
20
20
 
21
21
  export { ContextHelp };
22
22
 
@@ -104,7 +104,7 @@ class ToggleSwitch extends CustomControl {
104
104
  off: "off",
105
105
  },
106
106
  labels: {
107
- toggleSwitchOn: "✔��",
107
+ toggleSwitchOn: "",
108
108
  toggleSwitchOff: "×",
109
109
  },
110
110
  templates: {
@@ -625,9 +625,12 @@ function show(element) {
625
625
  if (id === reference) {
626
626
  node.classList.add("active");
627
627
 
628
- const openDelay = parseInt(this.getOption("features.openDelay"), 10);
628
+ const openDelay = Number.parseInt(
629
+ this.getOption("features.openDelay"),
630
+ 10,
631
+ );
629
632
 
630
- if (!isNaN(openDelay) && openDelay > 0) {
633
+ if (!Number.isNaN(openDelay) && openDelay > 0) {
631
634
  node.style.visibility = "hidden";
632
635
 
633
636
  setTimeout(() => {