@schukai/monster 4.51.3 → 4.52.0
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
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.4","@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.
|
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.7.4","@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.52.0"}
|
|
@@ -753,6 +753,18 @@ function updateConfigColumnBar() {
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
+
/**
|
|
757
|
+
* @private
|
|
758
|
+
* @param {HTMLElement} cell
|
|
759
|
+
* @return {string}
|
|
760
|
+
*/
|
|
761
|
+
function getCellValueForCopy(cell) {
|
|
762
|
+
if (cell.hasAttribute("data-monster-raw-value")) {
|
|
763
|
+
return cell.getAttribute("data-monster-raw-value");
|
|
764
|
+
}
|
|
765
|
+
return cell.textContent.trim();
|
|
766
|
+
}
|
|
767
|
+
|
|
756
768
|
/**
|
|
757
769
|
* @private
|
|
758
770
|
*/
|
|
@@ -903,10 +915,11 @@ function initEventHandler() {
|
|
|
903
915
|
) {
|
|
904
916
|
continue;
|
|
905
917
|
}
|
|
906
|
-
|
|
907
|
-
|
|
918
|
+
|
|
919
|
+
const cellValue = getCellValueForCopy(col);
|
|
920
|
+
if (cellValue) {
|
|
908
921
|
colTexts.push(
|
|
909
|
-
quoteOpenChar +
|
|
922
|
+
quoteOpenChar + cellValue + quoteCloseChar,
|
|
910
923
|
);
|
|
911
924
|
}
|
|
912
925
|
}
|
|
@@ -920,7 +933,7 @@ function initEventHandler() {
|
|
|
920
933
|
) {
|
|
921
934
|
return;
|
|
922
935
|
}
|
|
923
|
-
text = headCell
|
|
936
|
+
text = getCellValueForCopy(headCell);
|
|
924
937
|
}
|
|
925
938
|
|
|
926
939
|
if (getWindow().navigator.clipboard && text) {
|
|
@@ -970,9 +983,10 @@ function initEventHandler() {
|
|
|
970
983
|
continue;
|
|
971
984
|
}
|
|
972
985
|
|
|
973
|
-
|
|
986
|
+
const cellValue = getCellValueForCopy(col);
|
|
987
|
+
if (cellValue) {
|
|
974
988
|
currentRow.push(
|
|
975
|
-
quoteOpenChar +
|
|
989
|
+
quoteOpenChar + cellValue + quoteCloseChar,
|
|
976
990
|
);
|
|
977
991
|
}
|
|
978
992
|
}
|