@breadstone/mosaik-elements-svelte 0.0.274 → 0.0.276

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 +12 -0
  2. package/index.mjs +15 -2
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.0.276 (2026-05-15)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **popup:** add sync property to PopupElement and related components ([5b644a14fb](https://github.com/RueDeRennes/mosaik/commit/5b644a14fb))
6
+
7
+ ## 0.0.275 (2026-05-15)
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **popup:** add options for open mode and focus delegation ([f544d36064](https://github.com/RueDeRennes/mosaik/commit/f544d36064))
12
+
1
13
  ## 0.0.274 (2026-05-15)
2
14
 
3
15
  This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
package/index.mjs CHANGED
@@ -95116,6 +95116,7 @@ var PV;
95116
95116
  flip: !0,
95117
95117
  shift: !0,
95118
95118
  trapFocus: !1,
95119
+ sync: "none",
95119
95120
  enter: mw,
95120
95121
  exit: hw,
95121
95122
  elevation: "regular"
@@ -95142,6 +95143,7 @@ function FV(e) {
95142
95143
  .flipFallbackPlacements="${e.placements}"
95143
95144
  .distance="${e.distance}"
95144
95145
  .skidding="${e.skidding}"
95146
+ .sync="${e.sync}"
95145
95147
  .flip="${e.flip}"
95146
95148
  .shift="${e.shift}"
95147
95149
  .enter="${e.enter}"
@@ -95149,7 +95151,7 @@ function FV(e) {
95149
95151
  @mouseenter="${() => e.onPopupMouseEnter()}"
95150
95152
  @mouseleave="${() => e.onPopupMouseLeave()}">
95151
95153
  <mosaik-elevation part="elevation"
95152
- .weight="${e.elevation}"
95154
+ .weigh="${e.elevation}"
95153
95155
  @connected="${(t) => t.target.attach(e)}"></mosaik-elevation>
95154
95156
  <div part="body">
95155
95157
  <div part="header">
@@ -95541,6 +95543,7 @@ var zV = function(e, t, n, r) {
95541
95543
  _shift;
95542
95544
  _trapFocus;
95543
95545
  _hoverTimeout;
95546
+ _sync;
95544
95547
  _blurSubscription;
95545
95548
  _focusSubscription;
95546
95549
  _clickSubscription;
@@ -95551,7 +95554,7 @@ var zV = function(e, t, n, r) {
95551
95554
  _anchorReady;
95552
95555
  _previousActiveElement;
95553
95556
  constructor() {
95554
- super(), this._placement = PV.DEFAULTS.placement, this._placements = PV.DEFAULTS.placements, this._distance = PV.DEFAULTS.distance, this._skidding = PV.DEFAULTS.skidding, this._trigger = PV.DEFAULTS.trigger, this._showDelay = PV.DEFAULTS.showDelay, this._hideDelay = PV.DEFAULTS.hideDelay, this._staysOpen = PV.DEFAULTS.staysOpen, this._closeOnScroll = PV.DEFAULTS.closeOnScroll, this._interactive = PV.DEFAULTS.interactive, this._flip = PV.DEFAULTS.flip, this._shift = PV.DEFAULTS.shift, this._trapFocus = PV.DEFAULTS.trapFocus, this._floatingElement = null, this._hoverTimeout = null, this._blurSubscription = null, this._focusSubscription = null, this._clickSubscription = null, this._mouseoverSubscription = null, this._mouseoutSubscription = null, this._scrollSubscription = null, this._slottedControl = null, this._anchorReady = !1, this._previousActiveElement = null, Object.assign(this, { enter: PV.DEFAULTS.enter }), Object.assign(this, { exit: PV.DEFAULTS.exit }), Object.assign(this, { elevation: PV.DEFAULTS.elevation }), this._projectionController = new $w(this, {
95557
+ super(), this._placement = PV.DEFAULTS.placement, this._placements = PV.DEFAULTS.placements, this._distance = PV.DEFAULTS.distance, this._skidding = PV.DEFAULTS.skidding, this._trigger = PV.DEFAULTS.trigger, this._showDelay = PV.DEFAULTS.showDelay, this._hideDelay = PV.DEFAULTS.hideDelay, this._staysOpen = PV.DEFAULTS.staysOpen, this._closeOnScroll = PV.DEFAULTS.closeOnScroll, this._interactive = PV.DEFAULTS.interactive, this._flip = PV.DEFAULTS.flip, this._shift = PV.DEFAULTS.shift, this._trapFocus = PV.DEFAULTS.trapFocus, this._sync = PV.DEFAULTS.sync, this._floatingElement = null, this._hoverTimeout = null, this._blurSubscription = null, this._focusSubscription = null, this._clickSubscription = null, this._mouseoverSubscription = null, this._mouseoutSubscription = null, this._scrollSubscription = null, this._slottedControl = null, this._anchorReady = !1, this._previousActiveElement = null, Object.assign(this, { enter: PV.DEFAULTS.enter }), Object.assign(this, { exit: PV.DEFAULTS.exit }), Object.assign(this, { elevation: PV.DEFAULTS.elevation }), this._projectionController = new $w(this, {
95555
95558
  slotName: "content",
95556
95559
  targetSelector: "[part=\"projection\"]"
95557
95560
  }), this._clickOutsideController = new sC(this, {
@@ -95655,6 +95658,12 @@ var zV = function(e, t, n, r) {
95655
95658
  set trapFocus(e) {
95656
95659
  this._trapFocus !== e && (this._trapFocus = e, this.requestUpdate("trapFocus"));
95657
95660
  }
95661
+ get sync() {
95662
+ return this._sync;
95663
+ }
95664
+ set sync(e) {
95665
+ this._sync !== e && (this._sync = e, this.requestUpdate("sync"));
95666
+ }
95658
95667
  async open() {
95659
95668
  this.isOpen || this.disabled || (this._previousActiveElement = document.activeElement, await super.open(), this._trapFocus && (await this.updateComplete, this._focusTrapController.activate()), this._closeOnScroll && (this._scrollSubscription = D(window, "scroll", () => void this.close(), {
95660
95669
  passive: !0,
@@ -95855,6 +95864,10 @@ zV([
95855
95864
  BV("design:type", Boolean),
95856
95865
  BV("design:paramtypes", [Boolean])
95857
95866
  ], VV.prototype, "trapFocus", null), zV([
95867
+ A({ type: Aw }),
95868
+ BV("design:type", String),
95869
+ BV("design:paramtypes", [String])
95870
+ ], VV.prototype, "sync", null), zV([
95858
95871
  L("isOpen", { waitUntilFirstUpdate: !0 }),
95859
95872
  BV("design:type", Function),
95860
95873
  BV("design:paramtypes", []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.0.274",
3
+ "version": "0.0.276",
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.274",
19
- "@breadstone/mosaik-elements-foundation": "^0.0.274"
18
+ "@breadstone/mosaik-elements": "^0.0.276",
19
+ "@breadstone/mosaik-elements-foundation": "^0.0.276"
20
20
  },
21
21
  "exports": {
22
22
  ".": {