@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 +16 -0
- package/package.json +1 -1
- package/source/components/datatable/datatable.mjs +31 -24
- package/source/components/datatable/save-button.mjs +1 -0
- package/source/components/datatable/style/datatable.pcss +0 -3
- package/source/components/datatable/stylesheet/datatable.mjs +14 -7
- package/source/components/form/action-button.mjs +1 -1
- package/source/components/form/button.mjs +1 -1
- package/source/components/form/message-state-button.mjs +0 -1
- package/source/components/form/popper-button.mjs +1 -4
- package/source/components/form/state-button.mjs +0 -1
- package/source/components/form/stylesheet/message-state-button.mjs +13 -6
- package/source/components/form/stylesheet/state-button.mjs +13 -6
package/CHANGELOG.md
CHANGED
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.
|
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
|
346
|
-
|
347
|
-
|
348
|
-
e
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
pN
|
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
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
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
|
967
|
-
|
968
|
-
|
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,
|