@schukai/monster 3.113.0 → 3.114.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 +12 -0
- package/package.json +1 -1
- package/source/components/form/digits.mjs +372 -0
- package/source/components/form/field-set.mjs +2 -1
- package/source/components/form/form.mjs +4 -2
- package/source/components/form/login.mjs +1565 -0
- package/source/components/form/password.mjs +21 -8
- package/source/components/form/style/digits.pcss +38 -0
- package/source/components/form/style/field-set.pcss +12 -1
- package/source/components/form/style/invalid.pcss +25 -0
- package/source/components/form/style/login.pcss +112 -0
- package/source/components/form/style/password.pcss +2 -0
- package/source/components/form/stylesheet/digits.mjs +38 -0
- package/source/components/form/stylesheet/field-set.mjs +1 -1
- package/source/components/form/stylesheet/invalid.mjs +38 -0
- package/source/components/form/stylesheet/login.mjs +38 -0
- package/source/components/form/stylesheet/password.mjs +1 -1
- package/source/components/form/toggle-switch.mjs +5 -2
- package/source/components/layout/slider.mjs +34 -32
- package/source/dom/customelement.mjs +8 -6
- package/source/monster.mjs +2 -0
- package/source/types/proxyobserver.mjs +2 -4
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +15 -15
@@ -103,10 +103,9 @@ class Slider extends CustomElement {
|
|
103
103
|
eventHandler: {
|
104
104
|
mouseOverPause: null,
|
105
105
|
mouseout: null,
|
106
|
-
touchstart
|
107
|
-
touchend: null
|
108
|
-
}
|
109
|
-
|
106
|
+
touchstart: null,
|
107
|
+
touchend: null,
|
108
|
+
},
|
110
109
|
};
|
111
110
|
|
112
111
|
// set --monster-slides-width
|
@@ -370,48 +369,56 @@ function initAutoPlay() {
|
|
370
369
|
}, startDelay);
|
371
370
|
|
372
371
|
if (autoPlay.mouseOverPause) {
|
373
|
-
|
374
|
-
|
375
|
-
this[configSymbol].eventHandler.mouseOverPause = () => {
|
372
|
+
if (this[configSymbol].eventHandler.mouseOverPause === null) {
|
373
|
+
this[configSymbol].eventHandler.mouseOverPause = () => {
|
376
374
|
clearInterval(this[configSymbol].autoPlayInterval);
|
377
|
-
}
|
375
|
+
};
|
378
376
|
|
379
|
-
this.addEventListener(
|
377
|
+
this.addEventListener(
|
378
|
+
"mouseover",
|
379
|
+
this[configSymbol].eventHandler.mouseOverPause,
|
380
|
+
);
|
380
381
|
}
|
381
382
|
|
382
|
-
if(this[configSymbol].eventHandler.mouseout===null) {
|
383
|
-
|
383
|
+
if (this[configSymbol].eventHandler.mouseout === null) {
|
384
384
|
this[configSymbol].eventHandler.mouseout = () => {
|
385
385
|
if (this[configSymbol].isDragging) {
|
386
386
|
return;
|
387
387
|
}
|
388
388
|
start();
|
389
|
-
}
|
389
|
+
};
|
390
390
|
|
391
|
-
this.addEventListener(
|
391
|
+
this.addEventListener(
|
392
|
+
"mouseout",
|
393
|
+
this[configSymbol].eventHandler.mouseout,
|
394
|
+
);
|
392
395
|
}
|
393
|
-
|
394
396
|
}
|
395
397
|
|
396
398
|
if (autoPlay.touchPause) {
|
397
|
-
if(this[configSymbol].eventHandler.touchstart===null) {
|
398
|
-
this[configSymbol].eventHandler.touchstart =
|
399
|
+
if (this[configSymbol].eventHandler.touchstart === null) {
|
400
|
+
this[configSymbol].eventHandler.touchstart = () => {
|
399
401
|
clearInterval(this[configSymbol].autoPlayInterval);
|
400
|
-
}
|
402
|
+
};
|
401
403
|
|
402
|
-
this.addEventListener(
|
404
|
+
this.addEventListener(
|
405
|
+
"touchstart",
|
406
|
+
this[configSymbol].eventHandler.touchstart,
|
407
|
+
);
|
403
408
|
}
|
404
409
|
|
405
|
-
if(this[configSymbol].eventHandler.touchend===null) {
|
406
|
-
|
410
|
+
if (this[configSymbol].eventHandler.touchend === null) {
|
407
411
|
this[configSymbol].eventHandler.touchend = () => {
|
408
412
|
if (this[configSymbol].isDragging) {
|
409
413
|
return;
|
410
414
|
}
|
411
415
|
start();
|
412
|
-
}
|
416
|
+
};
|
413
417
|
|
414
|
-
this.addEventListener(
|
418
|
+
this.addEventListener(
|
419
|
+
"touchend",
|
420
|
+
this[configSymbol].eventHandler.touchend,
|
421
|
+
);
|
415
422
|
}
|
416
423
|
}
|
417
424
|
}
|
@@ -672,17 +679,15 @@ function initEventHandler() {
|
|
672
679
|
);
|
673
680
|
}
|
674
681
|
|
675
|
-
|
676
682
|
const initialSize = {
|
677
683
|
width: this[sliderElementSymbol]?.offsetWidth || 0,
|
678
|
-
height: this[sliderElementSymbol]?.offsetHeight || 0
|
684
|
+
height: this[sliderElementSymbol]?.offsetHeight || 0,
|
679
685
|
};
|
680
686
|
|
681
|
-
const resizeObserver = new ResizeObserver(entries => {
|
687
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
682
688
|
for (let entry of entries) {
|
683
|
-
const {width, height} = entry.contentRect;
|
689
|
+
const { width, height } = entry.contentRect;
|
684
690
|
if (width !== initialSize.width || height !== initialSize.height) {
|
685
|
-
|
686
691
|
self.stopAutoPlay();
|
687
692
|
|
688
693
|
if (this.getOption("features.thumbnails")) {
|
@@ -695,12 +700,12 @@ function initEventHandler() {
|
|
695
700
|
`${100 / slidesVisible}%`,
|
696
701
|
);
|
697
702
|
|
698
|
-
moveTo.call(self,0,false)
|
703
|
+
moveTo.call(self, 0, false);
|
699
704
|
self.startAutoPlay();
|
700
705
|
|
701
706
|
fireCustomEvent(self, "monster-slider-resized", {
|
702
707
|
width: width,
|
703
|
-
height: height
|
708
|
+
height: height,
|
704
709
|
});
|
705
710
|
}
|
706
711
|
}
|
@@ -708,8 +713,6 @@ function initEventHandler() {
|
|
708
713
|
|
709
714
|
resizeObserver.observe(this[sliderElementSymbol]);
|
710
715
|
|
711
|
-
|
712
|
-
|
713
716
|
return this;
|
714
717
|
}
|
715
718
|
|
@@ -807,7 +810,6 @@ function initControlReferences() {
|
|
807
810
|
this[thumbnailElementSymbol] = this.shadowRoot.querySelector(
|
808
811
|
`[${ATTRIBUTE_ROLE}="thumbnails"]`,
|
809
812
|
);
|
810
|
-
|
811
813
|
}
|
812
814
|
|
813
815
|
/**
|
@@ -706,9 +706,11 @@ class CustomElement extends HTMLElement {
|
|
706
706
|
}
|
707
707
|
|
708
708
|
/**
|
709
|
+
* Checks if the provided node is part of this component's child nodes,
|
710
|
+
* including those within the shadow root, if present.
|
709
711
|
*
|
710
|
-
* @param {Node} node
|
711
|
-
* @return {boolean}
|
712
|
+
* @param {Node} node - The node to check for within this component's child nodes.
|
713
|
+
* @return {boolean} Returns true if the given node is found, otherwise false.
|
712
714
|
* @throws {TypeError} value is not an instance of
|
713
715
|
* @since 1.19.0
|
714
716
|
*/
|
@@ -725,11 +727,11 @@ class CustomElement extends HTMLElement {
|
|
725
727
|
}
|
726
728
|
|
727
729
|
/**
|
728
|
-
*
|
730
|
+
* Invokes a callback function with the given name and arguments.
|
729
731
|
*
|
730
|
-
* @param {string} name
|
731
|
-
* @param {
|
732
|
-
* @return {*}
|
732
|
+
* @param {string} name - The name of the callback to be executed.
|
733
|
+
* @param {Array} args - An array of arguments to be passed to the callback function.
|
734
|
+
* @return {*} The result of the callback function execution.
|
733
735
|
*/
|
734
736
|
callCallback(name, args) {
|
735
737
|
return callControlCallback.call(this, name, ...args);
|
package/source/monster.mjs
CHANGED
@@ -47,11 +47,13 @@ export * from "./components/form/tabs.mjs";
|
|
47
47
|
export * from "./components/form/state-button.mjs";
|
48
48
|
export * from "./components/form/popper.mjs";
|
49
49
|
export * from "./components/form/select.mjs";
|
50
|
+
export * from "./components/form/login.mjs";
|
50
51
|
export * from "./components/form/confirm-button.mjs";
|
51
52
|
export * from "./components/form/context-error.mjs";
|
52
53
|
export * from "./components/form/action-button.mjs";
|
53
54
|
export * from "./components/form/form.mjs";
|
54
55
|
export * from "./components/form/api-button.mjs";
|
56
|
+
export * from "./components/form/digits.mjs";
|
55
57
|
export * from "./components/form/tree-select.mjs";
|
56
58
|
export * from "./components/form/popper-button.mjs";
|
57
59
|
export * from "./components/form/input-group.mjs";
|
@@ -89,11 +89,9 @@ class ProxyObserver extends Base {
|
|
89
89
|
}
|
90
90
|
|
91
91
|
/**
|
92
|
-
*
|
92
|
+
* Retrieves the real subject associated with the current instance.
|
93
93
|
*
|
94
|
-
*
|
95
|
-
*
|
96
|
-
* @return {object}
|
94
|
+
* @return {Object} The real subject object.
|
97
95
|
*/
|
98
96
|
getRealSubject() {
|
99
97
|
return this.realSubject;
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED
package/test/web/test.html
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
12
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 3.
|
13
|
-
<div id="lastupdate" style='font-size:0.7em'>last update
|
12
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.113.0</h1>
|
13
|
+
<div id="lastupdate" style='font-size:0.7em'>last update So 23. Mär 19:30:03 CET 2025</div>
|
14
14
|
</div>
|
15
15
|
<div id="mocha-errors"
|
16
16
|
style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>
|