@schukai/monster 4.20.0 → 4.20.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,18 @@
2
2
 
3
3
 
4
4
 
5
+ ## [4.20.1] - 2025-06-12
6
+
7
+ ### Bug Fixes
8
+
9
+ - update css styles
10
+ - update css collapse
11
+ ### Changes
12
+
13
+ - move issues [#323](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/323)
14
+
15
+
16
+
5
17
  ## [4.20.0] - 2025-06-11
6
18
 
7
19
  ### Add Features
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.1","@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.20.0"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.1","@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.20.1"}
@@ -23,9 +23,9 @@ import { clone } from "../../util/clone.mjs";
23
23
  import { ColumnBarStyleSheet } from "./stylesheet/column-bar.mjs";
24
24
  import { createPopper } from "@popperjs/core";
25
25
  import { getLocaleOfDocument } from "../../dom/locale.mjs";
26
- import {hasObjectLink} from "../../dom/attributes.mjs";
27
- import {customElementUpdaterLinkSymbol} from "../../dom/constants.mjs";
28
- import {getGlobalObject} from "../../types/global.mjs";
26
+ import { hasObjectLink } from "../../dom/attributes.mjs";
27
+ import { customElementUpdaterLinkSymbol } from "../../dom/constants.mjs";
28
+ import { getGlobalObject } from "../../types/global.mjs";
29
29
 
30
30
  export { ColumnBar };
31
31
 
@@ -89,10 +89,7 @@ class ColumnBar extends CustomElement {
89
89
  * @returns {Map<unknown, unknown>}
90
90
  */
91
91
  get customization() {
92
- return new Map([
93
- ...super.customization,
94
- ["templateFormatter.i18n", true],
95
- ]);
92
+ return new Map([...super.customization, ["templateFormatter.i18n", true]]);
96
93
  }
97
94
 
98
95
  /**
@@ -130,14 +127,23 @@ class ColumnBar extends CustomElement {
130
127
  const isOutsideElement = !path.includes(this);
131
128
  const isOutsideShadow = !path.includes(this.shadowRoot);
132
129
 
133
- if (isOutsideElement && isOutsideShadow && this[settingsLayerElementSymbol]) {
130
+ if (
131
+ isOutsideElement &&
132
+ isOutsideShadow &&
133
+ this[settingsLayerElementSymbol]
134
+ ) {
134
135
  this[settingsLayerElementSymbol].classList.remove("visible");
135
136
  }
136
- }
137
-
138
- getGlobalObject("document").addEventListener("click" , this[closeEventHandlerSymbol]);
139
- getGlobalObject("document").addEventListener("touch" , this[closeEventHandlerSymbol]);
137
+ };
140
138
 
139
+ getGlobalObject("document").addEventListener(
140
+ "click",
141
+ this[closeEventHandlerSymbol],
142
+ );
143
+ getGlobalObject("document").addEventListener(
144
+ "touch",
145
+ this[closeEventHandlerSymbol],
146
+ );
141
147
  }
142
148
 
143
149
  /**
@@ -149,12 +155,17 @@ class ColumnBar extends CustomElement {
149
155
  disconnectedCallback() {
150
156
  super.disconnectedCallback();
151
157
 
152
- if(this[closeEventHandlerSymbol]) {
153
- getGlobalObject("document").removeEventListener("click", this[closeEventHandlerSymbol]);
154
- getGlobalObject("document").removeEventListener("touch", this[closeEventHandlerSymbol]);
158
+ if (this[closeEventHandlerSymbol]) {
159
+ getGlobalObject("document").removeEventListener(
160
+ "click",
161
+ this[closeEventHandlerSymbol],
162
+ );
163
+ getGlobalObject("document").removeEventListener(
164
+ "touch",
165
+ this[closeEventHandlerSymbol],
166
+ );
155
167
  this[closeEventHandlerSymbol] = null;
156
168
  }
157
-
158
169
  }
159
170
 
160
171
  /**
@@ -1260,8 +1260,8 @@ function collectSearchQueries() {
1260
1260
  return "";
1261
1261
  }
1262
1262
 
1263
- if(!op || !isString(op)) op = "OR";
1264
- op = " "+op.toUpperCase().trim()+" ";
1263
+ if (!op || !isString(op)) op = "OR";
1264
+ op = " " + op.toUpperCase().trim() + " ";
1265
1265
 
1266
1266
  let query = "";
1267
1267
  value.forEach((v) => {
@@ -1282,8 +1282,8 @@ function collectSearchQueries() {
1282
1282
  return "";
1283
1283
  }
1284
1284
 
1285
- if(!op || !isString(op)) op = "OR";
1286
- op = " "+op.toUpperCase().trim()+" ";
1285
+ if (!op || !isString(op)) op = "OR";
1286
+ op = " " + op.toUpperCase().trim() + " ";
1287
1287
 
1288
1288
  let query = "";
1289
1289
  value.forEach((v) => {