@breadstone/mosaik-elements-svelte 0.0.119 → 0.0.120

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
@@ -1,3 +1,9 @@
1
+ ## 0.0.120 (2025-08-18)
2
+
3
+ ### 🚀 Features
4
+
5
+ - Add ToggleButtonElementValueAccessor and integrate with ToggleButtonComponent ([5e831d7fbd](https://github.com/RueDeRennes/mosaik/commit/5e831d7fbd))
6
+
1
7
  ## 0.0.119 (2025-08-18)
2
8
 
3
9
  ### 🚀 Features
package/index.mjs CHANGED
@@ -29440,6 +29440,16 @@ let w1 = class extends P(Ji(Zt(Ki(qo(bn(Ew(Lt(Zi(Fr))))))))) {
29440
29440
  static get is() {
29441
29441
  return "mosaik-toggle-button";
29442
29442
  }
29443
+ // #endregion
29444
+ // #region Methods
29445
+ /**
29446
+ * Resets the element to its initial state.
29447
+ *
29448
+ * @public
29449
+ */
29450
+ reset() {
29451
+ this.isChecked = !1;
29452
+ }
29443
29453
  };
29444
29454
  w1 = bU([
29445
29455
  O({
@@ -142231,11 +142241,6 @@ Vi = vl([
142231
142241
  function krt(o) {
142232
142242
  return w`
142233
142243
  <div part="root">
142234
- <output part="value"
142235
- for="input">
142236
- <mosaik-text part="text"
142237
- .text="${o.tooltipAccessor(o.value)}"></mosaik-text>
142238
- </output>
142239
142244
  <div part="surface"
142240
142245
  role="slider"
142241
142246
  aria-valuemin=${o.min}
@@ -142254,6 +142259,10 @@ function krt(o) {
142254
142259
  .max=${o.max.toString()}
142255
142260
  .step=${o.step.toString()}
142256
142261
  .value=${String(o.value)} />
142262
+ <div part="hint">
142263
+ <slot name="hint"
142264
+ @slotchange="${(t) => t.target.assignedElements().map((e, r) => F.current.setStyle(e, "order", r))}"></slot>
142265
+ </div>
142257
142266
  </div>
142258
142267
  `;
142259
142268
  }
@@ -142432,6 +142441,12 @@ function _rt() {
142432
142441
  display: grid;
142433
142442
  }
142434
142443
 
142444
+ :host [part="hint"] {
142445
+ flex-direction: row;
142446
+ justify-content: space-between;
142447
+ display: flex;
142448
+ }
142449
+
142435
142450
  :host .visually-hidden {
142436
142451
  clip: rect(0 0 0 0);
142437
142452
  white-space: nowrap;
@@ -142658,6 +142673,12 @@ function jrt() {
142658
142673
  display: grid;
142659
142674
  }
142660
142675
 
142676
+ :host [part="hint"] {
142677
+ flex-direction: row;
142678
+ justify-content: space-between;
142679
+ display: flex;
142680
+ }
142681
+
142661
142682
  :host .visually-hidden {
142662
142683
  clip: rect(0 0 0 0);
142663
142684
  white-space: nowrap;
@@ -142884,6 +142905,12 @@ function zrt() {
142884
142905
  display: grid;
142885
142906
  }
142886
142907
 
142908
+ :host [part="hint"] {
142909
+ flex-direction: row;
142910
+ justify-content: space-between;
142911
+ display: flex;
142912
+ }
142913
+
142887
142914
  :host .visually-hidden {
142888
142915
  clip: rect(0 0 0 0);
142889
142916
  white-space: nowrap;
@@ -143020,6 +143047,12 @@ let xa = class extends P(Zt(W(tt(gt(nr(Ze(rl))))))) {
143020
143047
  set pxPerStep(t) {
143021
143048
  this._pxPerStep !== t && t > 0 && (this._pxPerStep = t, this.requestUpdate("pxPerStep"));
143022
143049
  }
143050
+ /**
143051
+ * Accelerate the slider when dragging.
143052
+ *
143053
+ * @public
143054
+ * @default true
143055
+ */
143023
143056
  get accelerate() {
143024
143057
  return this._accelerate;
143025
143058
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.119",
3
+ "version": "0.0.120",
4
4
  "description": "Mosaik elements for Svelte.",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
@@ -15,8 +15,8 @@
15
15
  "vite": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@breadstone/mosaik-elements": "^0.0.119",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.119",
18
+ "@breadstone/mosaik-elements": "^0.0.120",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.120",
20
20
  "tslib": "^2.8.1"
21
21
  },
22
22
  "exports": {