@schukai/monster 3.87.1 → 3.88.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.6.12","@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.
|
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.12","@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.88.0"}
|
|
@@ -80,6 +80,8 @@ import {generateUniqueConfigKey} from "../host/util.mjs";
|
|
|
80
80
|
import "./datasource/dom.mjs";
|
|
81
81
|
import "./datasource/rest.mjs";
|
|
82
82
|
|
|
83
|
+
import "../form/context-help.mjs";
|
|
84
|
+
|
|
83
85
|
export {DataTable};
|
|
84
86
|
|
|
85
87
|
/**
|
|
@@ -213,6 +215,10 @@ class DataTable extends CustomElement {
|
|
|
213
215
|
labels: {
|
|
214
216
|
theListContainsNoEntries: "The list contains no entries",
|
|
215
217
|
copyAll: "Copy all",
|
|
218
|
+
helpText: "<p>You can copy the values from individual rows<br>" +
|
|
219
|
+
"to the clipboard by double-clicking on the relevant column.</p>" +
|
|
220
|
+
"<p>To copy an entire row, hold down the Shift key while clicking.<br>" +
|
|
221
|
+
"If you want to copy all rows, you can use the <strong>Copy All</strong> button.</p>",
|
|
216
222
|
},
|
|
217
223
|
|
|
218
224
|
classes: {
|
|
@@ -227,6 +233,7 @@ class DataTable extends CustomElement {
|
|
|
227
233
|
autoInit: true,
|
|
228
234
|
doubleClickCopyToClipboard: true,
|
|
229
235
|
copyAll: true,
|
|
236
|
+
help: true,
|
|
230
237
|
},
|
|
231
238
|
|
|
232
239
|
copy: {
|
|
@@ -1155,6 +1162,10 @@ function getTemplate() {
|
|
|
1155
1162
|
<slot name="filter"></slot>
|
|
1156
1163
|
</div>
|
|
1157
1164
|
<div class="bar">
|
|
1165
|
+
<monster-context-help
|
|
1166
|
+
data-monster-attributes="class path:features.help | ?::hidden"
|
|
1167
|
+
data-monster-replace="path:labels.helpText"
|
|
1168
|
+
></monster-context-help>
|
|
1158
1169
|
<a href="#" data-monster-attributes="class path:features.copyAll | ?::hidden" data-monster-role="copy-all" data-monster-replace="path:locale.copyAll">Copy all</a>
|
|
1159
1170
|
<monster-column-bar
|
|
1160
1171
|
data-monster-attributes="class path:features.settings | ?::hidden"></monster-column-bar>
|