@breadstone/mosaik-elements-svelte 0.0.118 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.mjs +71 -20
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
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
+
7
+ ## 0.0.119 (2025-08-18)
8
+
9
+ ### 🚀 Features
10
+
11
+ - **wizard:** add isFirstStep and isLastStep properties to Wizard component ([b398a839e2](https://github.com/RueDeRennes/mosaik/commit/b398a839e2))
12
+
13
+ ### 🩹 Fixes
14
+
15
+ - **release:** update version to 0.0.118 in release script ([4ac4717314](https://github.com/RueDeRennes/mosaik/commit/4ac4717314))
16
+
1
17
  ## 0.0.118 (2025-08-18)
2
18
 
3
19
  ### 🩹 Fixes
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
  }
@@ -142347,10 +142356,10 @@ function _rt() {
142347
142356
  --center-width: 3px;
142348
142357
  --tick-gap: 12px;
142349
142358
  --tick-width: 2px;
142350
- --tick-color: #b9bcc2;
142359
+ --tick-color: var(--joy-scheme-highlight);
142351
142360
  --tick-color-strong: #8b8f96;
142352
- --track-bg: #fff;
142353
- --center-color: #e53935;
142361
+ --track-bg: var(--joy-scheme-background);
142362
+ --center-color: var(--joy-color-danger-500);
142354
142363
  --value-font: 700 48px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
142355
142364
  font-family: var(--scrub-slider-font-family);
142356
142365
  font-size: var(--scrub-slider-font-size);
@@ -142417,8 +142426,8 @@ function _rt() {
142417
142426
  pointer-events: none;
142418
142427
  border-radius: 1px;
142419
142428
  position: absolute;
142420
- top: 8px;
142421
- bottom: 8px;
142429
+ top: 0;
142430
+ bottom: 0;
142422
142431
  left: 50%;
142423
142432
  transform: translateX(-50%);
142424
142433
  }
@@ -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;
@@ -142573,10 +142588,10 @@ function jrt() {
142573
142588
  --center-width: 3px;
142574
142589
  --tick-gap: 12px;
142575
142590
  --tick-width: 2px;
142576
- --tick-color: #b9bcc2;
142591
+ --tick-color: var(--joy-scheme-highlight);
142577
142592
  --tick-color-strong: #8b8f96;
142578
- --track-bg: #fff;
142579
- --center-color: #e53935;
142593
+ --track-bg: var(--joy-scheme-background);
142594
+ --center-color: var(--joy-color-danger-500);
142580
142595
  --value-font: 700 48px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
142581
142596
  font-family: var(--scrub-slider-font-family);
142582
142597
  font-size: var(--scrub-slider-font-size);
@@ -142643,8 +142658,8 @@ function jrt() {
142643
142658
  pointer-events: none;
142644
142659
  border-radius: 1px;
142645
142660
  position: absolute;
142646
- top: 8px;
142647
- bottom: 8px;
142661
+ top: 0;
142662
+ bottom: 0;
142648
142663
  left: 50%;
142649
142664
  transform: translateX(-50%);
142650
142665
  }
@@ -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;
@@ -142799,10 +142820,10 @@ function zrt() {
142799
142820
  --center-width: 3px;
142800
142821
  --tick-gap: 12px;
142801
142822
  --tick-width: 2px;
142802
- --tick-color: #b9bcc2;
142823
+ --tick-color: var(--joy-scheme-highlight);
142803
142824
  --tick-color-strong: #8b8f96;
142804
- --track-bg: #fff;
142805
- --center-color: #e53935;
142825
+ --track-bg: var(--joy-scheme-background);
142826
+ --center-color: var(--joy-color-danger-500);
142806
142827
  --value-font: 700 48px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
142807
142828
  font-family: var(--scrub-slider-font-family);
142808
142829
  font-size: var(--scrub-slider-font-size);
@@ -142869,8 +142890,8 @@ function zrt() {
142869
142890
  pointer-events: none;
142870
142891
  border-radius: 1px;
142871
142892
  position: absolute;
142872
- top: 8px;
142873
- bottom: 8px;
142893
+ top: 0;
142894
+ bottom: 0;
142874
142895
  left: 50%;
142875
142896
  transform: translateX(-50%);
142876
142897
  }
@@ -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
  }
@@ -156417,6 +156450,24 @@ let cp = class extends P(At(qo(W(ja)))) {
156417
156450
  get activeIndex() {
156418
156451
  return this.items.findIndex((t) => t.isActive);
156419
156452
  }
156453
+ /**
156454
+ * Gets the first step of the wizard.
156455
+ *
156456
+ * @public
156457
+ * @readonly
156458
+ */
156459
+ get isFirstStep() {
156460
+ return this.activeIndex === 0;
156461
+ }
156462
+ /**
156463
+ * Gets the last step of the wizard.
156464
+ *
156465
+ * @public
156466
+ * @readonly
156467
+ */
156468
+ get isLastStep() {
156469
+ return this.activeIndex === this.items.length - 1;
156470
+ }
156420
156471
  /**
156421
156472
  * Called when the active step has changed.
156422
156473
  * Provides reference to `{@link IEventDetail}` as event detail.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.118",
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.118",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.118",
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": {