@schukai/monster 3.113.0 → 3.114.1

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.
@@ -103,10 +103,9 @@ class Slider extends CustomElement {
103
103
  eventHandler: {
104
104
  mouseOverPause: null,
105
105
  mouseout: null,
106
- touchstart : null,
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
- if(this[configSymbol].eventHandler.mouseOverPause===null) {
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("mouseover",this[configSymbol].eventHandler.mouseOverPause);
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("mouseout", this[configSymbol].eventHandler.mouseout);
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("touchstart",this[configSymbol].eventHandler.touchstart);
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("touchend", this[configSymbol].eventHandler.touchend);
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
- * Calls a callback function if it exists.
730
+ * Invokes a callback function with the given name and arguments.
729
731
  *
730
- * @param {string} name
731
- * @param {*} args
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);
@@ -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
- * Get the real object
92
+ * Retrieves the real subject associated with the current instance.
93
93
  *
94
- * Changes to this object are not noticed by the observers, so you can make a large number of changes and inform the observers later.
95
- *
96
- * @return {object}
94
+ * @return {Object} The real subject object.
97
95
  */
98
96
  getRealSubject() {
99
97
  return this.realSubject;
@@ -156,7 +156,7 @@ function getMonsterVersion() {
156
156
  }
157
157
 
158
158
  /** don't touch, replaced by make with package.json version */
159
- monsterVersion = new Version("3.112.4");
159
+ monsterVersion = new Version("3.113.0");
160
160
 
161
161
  return monsterVersion;
162
162
  }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.112.4")
10
+ monsterVersion = new Version("3.113.0")
11
11
 
12
12
  let m = getMonsterVersion();
13
13
 
@@ -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.112.4</h1>
13
- <div id="lastupdate" style='font-size:0.7em'>last update Mi 12. Mär 17:05:03 CET 2025</div>
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>