@vectoriox/iox-builder 3.2.0 → 3.3.1

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;
@@ -7725,8 +7733,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
7725
7733
  type: Injectable
7726
7734
  }] });
7727
7735
 
7728
- // StylePanelComponent and PagePanelComponent use <dynamic-input> which must be
7729
- // provided by the consuming app (InputsModule). Declare them there, not here.
7736
+ // The Style / Page / Bindings / Interactions panels are NOT part of this library: the builder
7737
+ // projects them in through <ng-content select="[builderPanel]"> and the consuming app declares
7738
+ // them (they need <dynamic-input> from its InputsModule). Stale copies of the Style and Page
7739
+ // panels used to sit under lib/panels/ — undeclared and unexported, so editing them changed
7740
+ // nothing on screen. Deleted; do not reintroduce them here.
7730
7741
  const DECLARATIONS = [
7731
7742
  BuilderComponent,
7732
7743
  RenderDirective,