@vectoriox/iox-builder 11.31.1 → 11.32.0
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.
|
@@ -29,7 +29,7 @@ import * as i1 from '@angular/common/http';
|
|
|
29
29
|
import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatalog, SAMPLE_STUDIO, SAMPLE_CART_LINE, SAMPLE_SWATCHES } from '@vectoriox/iox-ui/commerce-core';
|
|
30
30
|
import { POPOVER_ACTION_TYPE_SET, TOAST_ACTION_TYPES, itemActionOf, BEHAVIOUR_ACTION_TYPES, SHOP_ACTION_TYPES, ACCOUNT_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES, opensAtClickedItem, openedDialogId, DIALOG_CLOSING_ATTRIBUTE, cancelExit, runExitMotion, dialogOpenersSelector, dialogDomId, revealOrigin, holdClosedWhile, revealOriginStyle, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
|
|
31
31
|
import { NavRole, navShapeBreakpoint, isScrubbedEntrance, ENTRANCE_TRIGGER, entranceInteraction, entranceAction, sectionEntrances, EntrancePart } from '@vectoriox/iox-ui/generation-core';
|
|
32
|
-
import { ScrollDriver, syncSceneAttributes, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
|
|
32
|
+
import { ScrollDriver, syncSceneAttributes, SCENE_LAND_TRIGGER, onSceneLand, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
|
|
33
33
|
import Lenis from 'lenis';
|
|
34
34
|
import { simulatedSiteAuthTransport } from '@vectoriox/iox-ui/identity-core';
|
|
35
35
|
import Moveable from 'moveable';
|
|
@@ -4931,6 +4931,9 @@ class InteractionEngineService {
|
|
|
4931
4931
|
case 'itemOn':
|
|
4932
4932
|
case 'itemOff':
|
|
4933
4933
|
return this.attachItemState(node, ix, element, ix.trigger === 'itemOn');
|
|
4934
|
+
case SCENE_LAND_TRIGGER:
|
|
4935
|
+
// AW10: a drawer's words arrive as its step lands, on the canvas's driver as on the site's (shared).
|
|
4936
|
+
return onSceneLand(element, () => this.runActions(node, ix.actions, element));
|
|
4934
4937
|
default:
|
|
4935
4938
|
return () => { };
|
|
4936
4939
|
}
|
|
@@ -13305,24 +13308,26 @@ class SliderContainerComponent {
|
|
|
13305
13308
|
get children() { return this._children; }
|
|
13306
13309
|
/** A saved slider whose controls are not parts yet keeps Swiper-drawn ones. */
|
|
13307
13310
|
get legacyControls() { return !this.controlParts; }
|
|
13311
|
+
/**
|
|
13312
|
+
* The node's style traits, as the render directive hands every layout. The slider does NOT write them inline: the
|
|
13313
|
+
* compiled class rule on `.iox-node-<id>` already carries them through the ONE shared compiler, which drops a
|
|
13314
|
+
* no-op baseline (`overflow: visible`, `position: static` — NOOP_INITIAL_VALUES). Written inline on Preview's
|
|
13315
|
+
* `.swiper`, the saved `overflow: visible` beat Swiper's `overflow: hidden` and the track's off-screen slides widened
|
|
13316
|
+
* the page (iox-ui#137 / iox-cms-client#102); an inline map also outranked every per-width rule and went stale after
|
|
13317
|
+
* an edit. The engine's `.swiper` carries no inline style either — one rule, both renderers.
|
|
13318
|
+
*/
|
|
13308
13319
|
set style(v) {
|
|
13309
13320
|
if (v === this._style)
|
|
13310
13321
|
return;
|
|
13311
13322
|
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
13323
|
this.composeStageStyles();
|
|
13319
13324
|
}
|
|
13320
|
-
/**
|
|
13321
|
-
* never
|
|
13325
|
+
/** What the slider itself owns inline: the edit shell is the arrows' positioning box, and a slider the scroll plays
|
|
13326
|
+
* is a sticky stage (it never engages on the canvas, where the driver pins it, so its top never offsets the shell;
|
|
13327
|
+
* in Preview it holds the slider mid-screen). Built once per change so ngStyle only re-applies on a real change. */
|
|
13322
13328
|
composeStageStyles() {
|
|
13323
|
-
|
|
13324
|
-
this.
|
|
13325
|
-
this._editShellStyle = { ...this._restStyle, position: stage ? 'sticky' : 'relative' };
|
|
13329
|
+
this._previewStyle = this.scrollPlays ? { position: 'sticky' } : {};
|
|
13330
|
+
this._editShellStyle = { position: this.scrollPlays ? 'sticky' : 'relative' };
|
|
13326
13331
|
}
|
|
13327
13332
|
get style() { return this._style; }
|
|
13328
13333
|
get previewStyle() { return this._previewStyle; }
|
|
@@ -13378,7 +13383,6 @@ class SliderContainerComponent {
|
|
|
13378
13383
|
this._style = {};
|
|
13379
13384
|
this._previewStyle = {};
|
|
13380
13385
|
this._editShellStyle = { position: 'relative' };
|
|
13381
|
-
this._restStyle = {};
|
|
13382
13386
|
this.nodeId = '';
|
|
13383
13387
|
this.dropListId = '';
|
|
13384
13388
|
// ── Parameters ─────────────────────────────────────────────────────────────
|