@schukai/monster 3.83.0 → 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,27 @@
|
|
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
|
+
|
14
|
+
## [3.83.1] - 2024-10-28
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
- F gelöscht [#256](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/256)
|
19
|
+
- argument must be checked against true [#255](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/255)
|
20
|
+
### Changes
|
21
|
+
|
22
|
+
- close issues and move files [#252](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/252) [#255](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/255)
|
23
|
+
|
24
|
+
|
25
|
+
|
5
26
|
## [3.83.0] - 2024-10-27
|
6
27
|
|
7
28
|
### Add Features
|
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}
|
@@ -366,7 +393,7 @@ function getTemplate() {
|
|
366
393
|
<div data-monster-role="control" part="control">
|
367
394
|
|
368
395
|
<monster-state-button exportparts="button:button-button,control:button-control"
|
369
|
-
data-monster-attributes="data-monster-option-classes-button path:classes.button, disabled path:features.disableButton"
|
396
|
+
data-monster-attributes="data-monster-option-classes-button path:classes.button, disabled path:features.disableButton | if:true"
|
370
397
|
part="button"
|
371
398
|
name="button"
|
372
399
|
data-monster-role="button">
|