@vectoriox/iox-builder 11.31.1 → 11.31.2
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.
|
@@ -13305,24 +13305,26 @@ class SliderContainerComponent {
|
|
|
13305
13305
|
get children() { return this._children; }
|
|
13306
13306
|
/** A saved slider whose controls are not parts yet keeps Swiper-drawn ones. */
|
|
13307
13307
|
get legacyControls() { return !this.controlParts; }
|
|
13308
|
+
/**
|
|
13309
|
+
* The node's style traits, as the render directive hands every layout. The slider does NOT write them inline: the
|
|
13310
|
+
* compiled class rule on `.iox-node-<id>` already carries them through the ONE shared compiler, which drops a
|
|
13311
|
+
* no-op baseline (`overflow: visible`, `position: static` — NOOP_INITIAL_VALUES). Written inline on Preview's
|
|
13312
|
+
* `.swiper`, the saved `overflow: visible` beat Swiper's `overflow: hidden` and the track's off-screen slides widened
|
|
13313
|
+
* the page (iox-ui#137 / iox-cms-client#102); an inline map also outranked every per-width rule and went stale after
|
|
13314
|
+
* an edit. The engine's `.swiper` carries no inline style either — one rule, both renderers.
|
|
13315
|
+
*/
|
|
13308
13316
|
set style(v) {
|
|
13309
13317
|
if (v === this._style)
|
|
13310
13318
|
return;
|
|
13311
13319
|
this._style = v;
|
|
13312
|
-
// `direction` is driven by the `dir` (Language direction) trait via [style.direction].
|
|
13313
|
-
// Strip it from the ngStyle map: NgStyle writes the inline style last and would otherwise
|
|
13314
|
-
// override the dir-driven direction with the generic Layout default → RTL wouldn't apply.
|
|
13315
|
-
// Rebuild cached objects so ngStyle only re-applies on real input changes (avoids MO spam).
|
|
13316
|
-
const { direction: _dropDirection, ...rest } = v || {};
|
|
13317
|
-
this._restStyle = rest;
|
|
13318
13320
|
this.composeStageStyles();
|
|
13319
13321
|
}
|
|
13320
|
-
/**
|
|
13321
|
-
* never
|
|
13322
|
+
/** What the slider itself owns inline: the edit shell is the arrows' positioning box, and a slider the scroll plays
|
|
13323
|
+
* is a sticky stage (it never engages on the canvas, where the driver pins it, so its top never offsets the shell;
|
|
13324
|
+
* in Preview it holds the slider mid-screen). Built once per change so ngStyle only re-applies on a real change. */
|
|
13322
13325
|
composeStageStyles() {
|
|
13323
|
-
|
|
13324
|
-
this.
|
|
13325
|
-
this._editShellStyle = { ...this._restStyle, position: stage ? 'sticky' : 'relative' };
|
|
13326
|
+
this._previewStyle = this.scrollPlays ? { position: 'sticky' } : {};
|
|
13327
|
+
this._editShellStyle = { position: this.scrollPlays ? 'sticky' : 'relative' };
|
|
13326
13328
|
}
|
|
13327
13329
|
get style() { return this._style; }
|
|
13328
13330
|
get previewStyle() { return this._previewStyle; }
|
|
@@ -13378,7 +13380,6 @@ class SliderContainerComponent {
|
|
|
13378
13380
|
this._style = {};
|
|
13379
13381
|
this._previewStyle = {};
|
|
13380
13382
|
this._editShellStyle = { position: 'relative' };
|
|
13381
|
-
this._restStyle = {};
|
|
13382
13383
|
this.nodeId = '';
|
|
13383
13384
|
this.dropListId = '';
|
|
13384
13385
|
// ── Parameters ─────────────────────────────────────────────────────────────
|