@schukai/monster 3.100.10 → 3.100.12

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,22 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.100.12] - 2025-01-19
6
+
7
+ ### Bug Fixes
8
+
9
+ - some small issues [#283](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/283)
10
+
11
+
12
+
13
+ ## [3.100.11] - 2025-01-19
14
+
15
+ ### Bug Fixes
16
+
17
+ - css issues
18
+
19
+
20
+
5
21
  ## [3.100.10] - 2025-01-19
6
22
 
7
23
  ### Bug Fixes
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.100.10"}
1
+ {"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@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":"3.100.12"}
@@ -342,19 +342,21 @@ class DataTable extends CustomElement {
342
342
  initControlReferences.call(this);
343
343
  initEventHandler.call(this);
344
344
 
345
- getSlottedElements.call(this,"[data-monster-role=row-action-button]","bar").forEach((i,e) => {
346
- if (e instanceof HTMLElement) {
347
- e.style.visibility = "hidden";
348
- e.style.width= "max-content";
349
-
350
- const pN = e.parentNode;
351
- if (pN instanceof HTMLElement) {
352
- pN.style.flexGrow = "10";
353
- pN.style.display = "flex";
354
- pN.style.justifyContent = "flex-start";
345
+ getSlottedElements
346
+ .call(this, "[data-monster-role=row-action-button]", "bar")
347
+ .forEach((i, e) => {
348
+ if (e instanceof HTMLElement) {
349
+ e.style.visibility = "hidden";
350
+ e.style.width = "max-content";
351
+
352
+ const pN = e.parentNode;
353
+ if (pN instanceof HTMLElement) {
354
+ pN.style.flexGrow = "10";
355
+ pN.style.display = "flex";
356
+ pN.style.justifyContent = "flex-start";
357
+ }
355
358
  }
356
- }
357
- })
359
+ });
358
360
 
359
361
  getHostConfig
360
362
  .call(this, getColumnVisibilityConfigKey)
@@ -887,7 +889,7 @@ function initEventHandler() {
887
889
  return;
888
890
  }
889
891
 
890
- const parentNode= element.parentNode
892
+ const parentNode = element.parentNode;
891
893
  if (!(parentNode instanceof HTMLDivElement)) {
892
894
  return;
893
895
  }
@@ -929,13 +931,15 @@ function initEventHandler() {
929
931
  `[data-monster-role="select-all"]`,
930
932
  );
931
933
 
932
- getSlottedElements.call(this,"[data-monster-role=row-action-button]","bar").forEach((i,e) => {
933
- const selected = self.getSelectedRows();
934
- const mode = (selected.length === 0) ? "hidden" : "visible";
935
- if (e instanceof HTMLElement) {
936
- e.style.visibility = mode;
937
- }
938
- })
934
+ getSlottedElements
935
+ .call(this, "[data-monster-role=row-action-button]", "bar")
936
+ .forEach((i, e) => {
937
+ const selected = self.getSelectedRows();
938
+ const mode = selected.length === 0 ? "hidden" : "visible";
939
+ if (e instanceof HTMLElement) {
940
+ e.style.visibility = mode;
941
+ }
942
+ });
939
943
 
940
944
  if (selectAll) {
941
945
  selectAll.checked = allSelected;
@@ -965,12 +969,13 @@ function initEventHandler() {
965
969
  fireCustomEvent(this, "monster-datatable-all-rows-deselected", {});
966
970
  }
967
971
 
968
- getSlottedElements.call(this,"[data-monster-role=row-action-button]","bar").forEach((i,e) => {
969
- if (e instanceof HTMLElement) {
970
- e.style.visibility = mode ? "visible" : "hidden";
971
- }
972
- })
973
-
972
+ getSlottedElements
973
+ .call(this, "[data-monster-role=row-action-button]", "bar")
974
+ .forEach((i, e) => {
975
+ if (e instanceof HTMLElement) {
976
+ e.style.visibility = mode ? "visible" : "hidden";
977
+ }
978
+ });
974
979
 
975
980
  fireCustomEvent(this, "monster-datatable-selection-changed", {});
976
981
  }
@@ -32,6 +32,7 @@ import { Datasource } from "./datasource.mjs";
32
32
  import { Rest as RestDatasource } from "./datasource/rest.mjs";
33
33
  import { BadgeStyleSheet } from "../stylesheet/badge.mjs";
34
34
  import { SaveButtonStyleSheet } from "./stylesheet/save-button.mjs";
35
+ import "../form/state-button.mjs";
35
36
 
36
37
  import {
37
38
  handleDataSourceChanges,