@schukai/monster 3.83.1 → 3.84.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [3.84.0] - 2024-10-28
|
6
|
+
|
7
|
+
### Add Features
|
8
|
+
|
9
|
+
- neue Methoden zum löschen der Nachricht und prüfung auf leere Nachricht...
|
10
|
+
- neue Methoden zum löschen der Nachricht und prüfung auf leere Nachricht...
|
11
|
+
|
12
|
+
|
13
|
+
|
5
14
|
## [3.83.1] - 2024-10-28
|
6
15
|
|
7
16
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.11","@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.11","@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.84.0"}
|
@@ -210,11 +210,25 @@ class MessageStateButton extends Popper {
|
|
210
210
|
}
|
211
211
|
|
212
212
|
/**
|
213
|
+
* clears the Message
|
214
|
+
*
|
215
|
+
* @return {Monster.Components.Form.MessageStateButton}
|
216
|
+
*/
|
217
|
+
clearMessage() {
|
218
|
+
this.setOption("message.title", undefined);
|
219
|
+
this.setOption("message.content", undefined);
|
220
|
+
this.setOption("message.icon", undefined);
|
221
|
+
return this;
|
222
|
+
}
|
223
|
+
|
224
|
+
/**
|
225
|
+
* With this method you can show the popper with timeout feature.
|
226
|
+
*
|
213
227
|
* @param {number} timeout
|
214
228
|
* @return {MessageStateButton}
|
215
229
|
*/
|
216
230
|
showMessage(timeout) {
|
217
|
-
|
231
|
+
this.showDialog.call(this);
|
218
232
|
|
219
233
|
if (timeout !== undefined) {
|
220
234
|
setTimeout(() => {
|
@@ -225,6 +239,19 @@ class MessageStateButton extends Popper {
|
|
225
239
|
return this;
|
226
240
|
}
|
227
241
|
|
242
|
+
/**
|
243
|
+
* With this method you can show the popper.
|
244
|
+
*
|
245
|
+
* @return {MessageStateButton}
|
246
|
+
*/
|
247
|
+
showDialog(){
|
248
|
+
if (this.getOption("message.content") === undefined) {
|
249
|
+
return;
|
250
|
+
}
|
251
|
+
super.showDialog();
|
252
|
+
return this;
|
253
|
+
}
|
254
|
+
|
228
255
|
/**
|
229
256
|
*
|
230
257
|
* @return {Monster.Components.Form.MessageStateButton}
|