@schukai/monster 3.100.9 → 3.100.11

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.11] - 2025-01-19
6
+
7
+ ### Bug Fixes
8
+
9
+ - css issues
10
+
11
+
12
+
13
+ ## [3.100.10] - 2025-01-19
14
+
15
+ ### Bug Fixes
16
+
17
+ - datatable css glitches
18
+
19
+
20
+
5
21
  ## [3.100.9] - 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.9"}
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.11"}
@@ -342,17 +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";
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
+ }
353
358
  }
354
- }
355
- })
359
+ });
356
360
 
357
361
  getHostConfig
358
362
  .call(this, getColumnVisibilityConfigKey)
@@ -885,7 +889,7 @@ function initEventHandler() {
885
889
  return;
886
890
  }
887
891
 
888
- const parentNode= element.parentNode
892
+ const parentNode = element.parentNode;
889
893
  if (!(parentNode instanceof HTMLDivElement)) {
890
894
  return;
891
895
  }
@@ -927,13 +931,15 @@ function initEventHandler() {
927
931
  `[data-monster-role="select-all"]`,
928
932
  );
929
933
 
930
- getSlottedElements.call(this,"[data-monster-role=row-action-button]","bar").forEach((i,e) => {
931
- const selected = self.getSelectedRows();
932
- const mode = (selected.length === 0) ? "hidden" : "visible";
933
- if (e instanceof HTMLElement) {
934
- e.style.visibility = mode;
935
- }
936
- })
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
+ });
937
943
 
938
944
  if (selectAll) {
939
945
  selectAll.checked = allSelected;
@@ -963,12 +969,13 @@ function initEventHandler() {
963
969
  fireCustomEvent(this, "monster-datatable-all-rows-deselected", {});
964
970
  }
965
971
 
966
- getSlottedElements.call(this,"[data-monster-role=row-action-button]","bar").forEach((i,e) => {
967
- if (e instanceof HTMLElement) {
968
- e.style.visibility = mode ? "visible" : "hidden";
969
- }
970
- })
971
-
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
+ });
972
979
 
973
980
  fireCustomEvent(this, "monster-datatable-selection-changed", {});
974
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,
@@ -61,9 +61,6 @@
61
61
  ::slotted(.monster-button-group) {
62
62
  margin: 0 !important;
63
63
  flex-grow: 2;
64
- }
65
-
66
- ::slotted(.monster-button-group) {
67
64
  display: flex;
68
65
  flex-direction: row !important;
69
66
  align-items: center;