@vectoriox/iox-builder 3.2.0 → 3.3.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.
|
@@ -16,7 +16,7 @@ import { SelectModule } from 'primeng/select';
|
|
|
16
16
|
import { TooltipModule } from 'primeng/tooltip';
|
|
17
17
|
import { DialogModule } from 'primeng/dialog';
|
|
18
18
|
import * as i16 from '@vectoriox/iox-ui';
|
|
19
|
-
import { DEFAULT_WIDTH_BY_TYPE, ContextStore, ComponentInstanceRegistryService, isContextAction, contextActionEffect, resolveContextValue, buildTargetedStateSelector, compileDeclarations, safeSetInput, composeVirtualTraits, collectContextSlotKeys, withContextSlots, nodeUsesContext, resolvePath, applyBindingPipes, IS_PREVIEW, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, IoxPageModule } from '@vectoriox/iox-ui';
|
|
19
|
+
import { DEFAULT_WIDTH_BY_TYPE, ContextStore, ComponentInstanceRegistryService, isActionEnabled, isContextAction, contextActionEffect, resolveContextValue, buildTargetedStateSelector, compileDeclarations, safeSetInput, composeVirtualTraits, collectContextSlotKeys, withContextSlots, nodeUsesContext, resolvePath, applyBindingPipes, IS_PREVIEW, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, IoxPageModule } from '@vectoriox/iox-ui';
|
|
20
20
|
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
21
21
|
import Lenis from 'lenis';
|
|
22
22
|
import { Subject, BehaviorSubject, of, forkJoin } from 'rxjs';
|
|
@@ -2110,6 +2110,10 @@ class InteractionEngineService {
|
|
|
2110
2110
|
const skipPreState = inBuilder && ix.trigger === 'scrollProgress';
|
|
2111
2111
|
if (!skipPreState) {
|
|
2112
2112
|
for (const action of ix.actions) {
|
|
2113
|
+
// A disabled action must not pre-state: it would hide the element with nothing
|
|
2114
|
+
// left to reveal it.
|
|
2115
|
+
if (!isActionEnabled(action))
|
|
2116
|
+
continue;
|
|
2113
2117
|
if (this.ENTRANCE_TYPES.has(action.type)) {
|
|
2114
2118
|
const target = this.resolveTarget(node, action, element);
|
|
2115
2119
|
if (target) {
|
|
@@ -2385,6 +2389,8 @@ class InteractionEngineService {
|
|
|
2385
2389
|
const leaveHandler = () => {
|
|
2386
2390
|
// Reverse animations on leave for hover triggers
|
|
2387
2391
|
for (const action of ix.actions) {
|
|
2392
|
+
if (!isActionEnabled(action))
|
|
2393
|
+
continue;
|
|
2388
2394
|
// Context actions have no "backwards" — the shared table decides what leave does
|
|
2389
2395
|
// (clear, unless the action sets noReverse). Same call the SSR engine makes.
|
|
2390
2396
|
if (isContextAction(action)) {
|
|
@@ -2407,6 +2413,8 @@ class InteractionEngineService {
|
|
|
2407
2413
|
// ── Actions ──────────────────────────────────────────────
|
|
2408
2414
|
runActions(node, actions, selfEl) {
|
|
2409
2415
|
for (const action of actions) {
|
|
2416
|
+
if (!isActionEnabled(action))
|
|
2417
|
+
continue; // switched off by the author
|
|
2410
2418
|
if (this.SWIPER_ACTIONS.has(action.type)) {
|
|
2411
2419
|
this.executeSwiperAction(action);
|
|
2412
2420
|
continue;
|