@schukai/monster 3.108.5 → 3.109.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.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"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.109.0"}
|
@@ -104,9 +104,7 @@ class ConfirmButton extends PopperButton {
|
|
104
104
|
this.hideDialog();
|
105
105
|
};
|
106
106
|
|
107
|
-
obj["actions"]["confirm"] = (
|
108
|
-
throw new Error("this callback must be implemented");
|
109
|
-
};
|
107
|
+
obj["actions"]["confirm"] = () => {};
|
110
108
|
|
111
109
|
return obj;
|
112
110
|
}
|
@@ -119,7 +117,7 @@ class ConfirmButton extends PopperButton {
|
|
119
117
|
|
120
118
|
/**
|
121
119
|
*
|
122
|
-
* @return {
|
120
|
+
* @return {PopperButton}
|
123
121
|
*/
|
124
122
|
[assembleMethodSymbol]() {
|
125
123
|
super[assembleMethodSymbol]();
|
@@ -145,7 +143,7 @@ class ConfirmButton extends PopperButton {
|
|
145
143
|
|
146
144
|
/**
|
147
145
|
*
|
148
|
-
* @return {
|
146
|
+
* @return {ConfirmButton}
|
149
147
|
*/
|
150
148
|
showDialog() {
|
151
149
|
const confirmButtonClass = this.getOption("classes.confirmButton");
|
@@ -172,7 +170,7 @@ class ConfirmButton extends PopperButton {
|
|
172
170
|
*
|
173
171
|
* @param {string} state
|
174
172
|
* @param {number} timeout
|
175
|
-
* @return {
|
173
|
+
* @return {ConfirmButton}
|
176
174
|
*/
|
177
175
|
setConfirmButtonState(state, timeout) {
|
178
176
|
this[confirmButtonElementSymbol].setState(state, timeout);
|
@@ -184,7 +182,7 @@ class ConfirmButton extends PopperButton {
|
|
184
182
|
*
|
185
183
|
* @param {string} message
|
186
184
|
* @param {number} timeout
|
187
|
-
* @return {
|
185
|
+
* @return {ConfirmButton}
|
188
186
|
*/
|
189
187
|
showConfirmButtonMessage(message, timeout) {
|
190
188
|
this[confirmButtonElementSymbol].setMessage(message);
|
@@ -216,8 +214,8 @@ function getAction(type) {
|
|
216
214
|
/**
|
217
215
|
* @private
|
218
216
|
* @return {initEventhandler}
|
219
|
-
* @fires
|
220
|
-
* @fires
|
217
|
+
* @fires ConfirmButton#monster-confirm
|
218
|
+
* @fires ConfirmButton#monster-confirmed
|
221
219
|
*/
|
222
220
|
function initEventhandler() {
|
223
221
|
this[cancelButtonElementSymbol].setOption(
|
@@ -235,9 +233,13 @@ function initEventhandler() {
|
|
235
233
|
);
|
236
234
|
this[confirmButtonElementSymbol].setOption("actions.click", () => {
|
237
235
|
const callback = getAction.call(this, "confirm");
|
238
|
-
fireCustomEvent(this, "monster-confirm", {
|
236
|
+
fireCustomEvent(this, "monster-confirm", {
|
237
|
+
button: this,
|
238
|
+
});
|
239
239
|
callback.call(this);
|
240
|
-
fireCustomEvent(this, "monster-confirmed", {
|
240
|
+
fireCustomEvent(this, "monster-confirmed", {
|
241
|
+
button: this,
|
242
|
+
});
|
241
243
|
});
|
242
244
|
|
243
245
|
return this;
|
@@ -131,6 +131,10 @@ class Slider extends CustomElement {
|
|
131
131
|
* @property {boolean} features.thumbnails Thumbnails feature
|
132
132
|
* @property {boolean} features.drag Drag feature
|
133
133
|
* @property {Object} slides Slides configuration, an object with breakpoints and the number of slides to show
|
134
|
+
* @property {Object} slides.0 Number of slides to show at 0px
|
135
|
+
* @property {Object} slides.600 Number of slides to show at 600px @since 3.109.0
|
136
|
+
* @property {Object} slides.1200 Number of slides to show at 1200px @since 3.109.0
|
137
|
+
* @property {Object} slides.1800 Number of slides to show at 1800px @since 3.109.0
|
134
138
|
* @property {Object} carousel Carousel configuration
|
135
139
|
* @property {number} carousel.transition Transition time between a full rotation of the carousel
|
136
140
|
* @property {Object} autoPlay Auto play configuration
|
@@ -160,6 +164,9 @@ class Slider extends CustomElement {
|
|
160
164
|
|
161
165
|
slides: {
|
162
166
|
0: 1,
|
167
|
+
600: 2,
|
168
|
+
1200: 3,
|
169
|
+
1800: 4,
|
163
170
|
},
|
164
171
|
|
165
172
|
carousel: {
|