@vectoriox/iox-ui 5.203.0 → 5.205.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.
Files changed (52) hide show
  1. package/actions-core/index.d.ts +8 -1
  2. package/design-core/index.d.ts +70 -2
  3. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +8 -1
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +131 -11
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +5294 -267
  8. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui.mjs +524 -112
  10. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  11. package/generation-core/index.d.ts +2308 -6
  12. package/index.d.ts +159 -13
  13. package/package.json +1 -1
  14. package/src/actions-core/element-actions.ts +9 -0
  15. package/src/design-core/contrast-audit.ts +93 -11
  16. package/src/design-core/flavor-spec.generated.ts +19 -0
  17. package/src/design-core/image-alt.ts +27 -0
  18. package/src/design-core/node-links.ts +12 -0
  19. package/src/design-core/public-api.ts +1 -0
  20. package/src/generation-core/ai-run.ts +31 -0
  21. package/src/generation-core/audit-site.ts +17 -3
  22. package/src/generation-core/baseline-roles.ts +10 -6
  23. package/src/generation-core/check-free.ts +12 -2
  24. package/src/generation-core/check-layout.ts +3 -2
  25. package/src/generation-core/critic-calibration.ts +178 -0
  26. package/src/generation-core/critic-prompt.ts +174 -0
  27. package/src/generation-core/critic-rubric.generated.ts +24 -0
  28. package/src/generation-core/critic-sheet.ts +270 -0
  29. package/src/generation-core/critic.ts +189 -0
  30. package/src/generation-core/design-doc-index.ts +58 -0
  31. package/src/generation-core/design-motion.ts +247 -0
  32. package/src/generation-core/design-ops-check.ts +370 -0
  33. package/src/generation-core/design-ops-of.ts +200 -0
  34. package/src/generation-core/design-ops.model.ts +239 -0
  35. package/src/generation-core/design-ops.schema.ts +122 -0
  36. package/src/generation-core/design-ops.ts +361 -0
  37. package/src/generation-core/design-recipes.ts +58 -0
  38. package/src/generation-core/designer-brief.ts +82 -0
  39. package/src/generation-core/designer-direction.ts +248 -0
  40. package/src/generation-core/designer-estimate.ts +171 -0
  41. package/src/generation-core/designer-lessons.generated.ts +653 -0
  42. package/src/generation-core/designer-lessons.ts +153 -0
  43. package/src/generation-core/designer-stop.ts +94 -0
  44. package/src/generation-core/footer-mix.ts +3 -1
  45. package/src/generation-core/node-baselines.generated.ts +953 -10
  46. package/src/generation-core/public-api.ts +20 -0
  47. package/src/generation-core/site-spec.generated.ts +73 -11
  48. package/src/generation-core/social-links.ts +195 -2
  49. package/src/generation-core/structure-fingerprint.ts +565 -0
  50. package/src/generation-core/templates.ts +39 -3
  51. package/styles/iox-design.css +26 -1
  52. package/styles/iox-forms.css +22 -0
package/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
11
11
  import { VideoPlan } from '@vectoriox/iox-ui/media-core';
12
12
  import { SliderWords } from '@vectoriox/iox-ui/composite-core';
13
13
  import { OpenerNodeLike, RouteInfo } from '@vectoriox/iox-ui/actions-core';
14
- export { SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
14
+ export { ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
15
15
  import { ScrollDriver, ScrollMotionEnv, ScrollPlay, ScrollActionKind } from '@vectoriox/iox-ui/scene-core';
16
16
  export * from '@vectoriox/iox-ui/data-core';
17
17
 
@@ -255,6 +255,8 @@ declare const IMAGE_DEFAULT_CSS: readonly string[];
255
255
  declare class BuilderImageComponent {
256
256
  src: string;
257
257
  alt: string;
258
+ /** AD0b C9: the author's "decorative" switch — the picture is announced as nothing (`alt=""`), whatever Alt holds. */
259
+ decorative: boolean;
258
260
  nodeId: string;
259
261
  /**
260
262
  * What a MARKED image shows WHENEVER it has no source (design-system DS3) — set by each renderer
@@ -286,7 +288,7 @@ declare class BuilderImageComponent {
286
288
  get altAttr(): string;
287
289
  get ariaHiddenAttr(): 'true' | null;
288
290
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderImageComponent, never>;
289
- static ɵcmp: i0.ɵɵComponentDeclaration<BuilderImageComponent, "img[iox-img]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "emptySrc": { "alias": "emptySrc"; "required": false; }; }, {}, never, never, false, never>;
291
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuilderImageComponent, "img[iox-img]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "emptySrc": { "alias": "emptySrc"; "required": false; }; }, {}, never, never, false, never>;
290
292
  }
291
293
 
292
294
  /** Directive-host spacer: the `<div>` IS the host — no wrapper. All styles on `.iox-node`. */
@@ -348,6 +350,8 @@ declare class BuilderLinkComponent {
348
350
  [key: string]: any;
349
351
  };
350
352
  constructor(isPreview: boolean);
353
+ /** `noopener` for a new tab (the string renderer writes the same), else no attribute. A getter so it is unit-tested. */
354
+ get relAttr(): string | null;
351
355
  get resolvedHref(): string;
352
356
  onLinkClick(event: MouseEvent): void;
353
357
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderLinkComponent, [{ optional: true; }]>;
@@ -432,6 +436,16 @@ declare class BuilderHeadingComponent implements OnInit {
432
436
  static ɵcmp: i0.ɵɵComponentDeclaration<BuilderHeadingComponent, "h1[iox-heading],h2[iox-heading],h3[iox-heading],h4[iox-heading],h5[iox-heading],h6[iox-heading],span[iox-heading]", never, { "content": { "alias": "content"; "required": false; }; "level": { "alias": "level"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; "linkType": { "alias": "linkType"; "required": false; }; "url": { "alias": "url"; "required": false; }; "pageRoute": { "alias": "pageRoute"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, {}, never, never, false, never>;
433
437
  }
434
438
 
439
+ /**
440
+ * The Text's own defaults, as global CSS (no emulated `[_nghost-…]` attribute), the Image's way (iox-ui#104):
441
+ *
442
+ * - `white-space: pre-wrap` (typed spaces and line breaks show) at specificity 0,0,0 (`:where(…)`), so the node's
443
+ * `.iox-node-<id>` wins: Typography ▸ Line Breaks and ▸ Wrap (AD0b C1). As `:host` (0,1,0) it tied with the node rule
444
+ * and, appended after it, won — every Text ignored Line Breaks, and the shorthand reset the wrap mode, so Wrap ▸
445
+ * No Wrap never held on a Text either (measured by the engine's `e2e:batchc`).
446
+ * - the editing outline stays at 0,2,0, what `:host[contenteditable]` compiled to.
447
+ */
448
+ declare const TEXT_DEFAULT_CSS: readonly string[];
435
449
  /**
436
450
  * Directive-host Text: the real `<p>`/`<span>` IS the host — no `app-text-block` wrapper,
437
451
  * no inner/outer split. The tag is chosen by whoever CREATES the component (engine/builder
@@ -544,6 +558,8 @@ declare class ButtonBlockComponent {
544
558
  nodeId: string;
545
559
  childrenHost: ViewContainerRef;
546
560
  get resolvedHref(): string | null;
561
+ /** `noopener` when an `<a>` opens a new tab (the string renderer writes the same), else no attribute. */
562
+ get rel(): string | null;
547
563
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBlockComponent, never>;
548
564
  static ɵcmp: i0.ɵɵComponentDeclaration<ButtonBlockComponent, "a[iox-button-block],button[iox-button-block]", never, { "tag": { "alias": "tag"; "required": false; }; "linkType": { "alias": "linkType"; "required": false; }; "href": { "alias": "href"; "required": false; }; "pageRoute": { "alias": "pageRoute"; "required": false; }; "target": { "alias": "target"; "required": false; }; "type": { "alias": "type"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
549
565
  }
@@ -778,6 +794,8 @@ declare class ClientSliderContainerComponent implements AfterViewInit, OnDestroy
778
794
  scrollPlays: boolean;
779
795
  /** AW11-D1: the creative effect's named setting (`fan` — a list's fan you drag). */
780
796
  creativePreset: string;
797
+ /** AD0b C8: the coverflow's angle (degrees; unset = Swiper's 50). */
798
+ coverflowRotate: number | string | null;
781
799
  childrenHost: ViewContainerRef;
782
800
  leadHost: ViewContainerRef;
783
801
  trailHost: ViewContainerRef;
@@ -809,7 +827,7 @@ declare class ClientSliderContainerComponent implements AfterViewInit, OnDestroy
809
827
  private boot;
810
828
  private inputs;
811
829
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientSliderContainerComponent, never>;
812
- static ɵcmp: i0.ɵɵComponentDeclaration<ClientSliderContainerComponent, "iox-slider-container", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "slidesPerView": { "alias": "slidesPerView"; "required": false; }; "slidesPerGroup": { "alias": "slidesPerGroup"; "required": false; }; "spaceBetween": { "alias": "spaceBetween"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "effect": { "alias": "effect"; "required": false; }; "grabCursor": { "alias": "grabCursor"; "required": false; }; "centeredSlides": { "alias": "centeredSlides"; "required": false; }; "initialSlide": { "alias": "initialSlide"; "required": false; }; "autoHeight": { "alias": "autoHeight"; "required": false; }; "slideToClickedSlide": { "alias": "slideToClickedSlide"; "required": false; }; "freeMode": { "alias": "freeMode"; "required": false; }; "enableNavigation": { "alias": "enableNavigation"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "enableScrollbar": { "alias": "enableScrollbar"; "required": false; }; "enableAutoplay": { "alias": "enableAutoplay"; "required": false; }; "enableKeyboard": { "alias": "enableKeyboard"; "required": false; }; "enableMousewheel": { "alias": "enableMousewheel"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "enableGrid": { "alias": "enableGrid"; "required": false; }; "enableParallax": { "alias": "enableParallax"; "required": false; }; "autoplayDelay": { "alias": "autoplayDelay"; "required": false; }; "autoplayPauseOnMouseEnter": { "alias": "autoplayPauseOnMouseEnter"; "required": false; }; "autoplayDisableOnInteraction": { "alias": "autoplayDisableOnInteraction"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "paginationClickable": { "alias": "paginationClickable"; "required": false; }; "paginationDynamicBullets": { "alias": "paginationDynamicBullets"; "required": false; }; "navigationColor": { "alias": "navigationColor"; "required": false; }; "paginationColor": { "alias": "paginationColor"; "required": false; }; "gridRows": { "alias": "gridRows"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "controlParts": { "alias": "controlParts"; "required": false; }; "scrollPlays": { "alias": "scrollPlays"; "required": false; }; "creativePreset": { "alias": "creativePreset"; "required": false; }; }, {}, never, never, false, never>;
830
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClientSliderContainerComponent, "iox-slider-container", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "slidesPerView": { "alias": "slidesPerView"; "required": false; }; "slidesPerGroup": { "alias": "slidesPerGroup"; "required": false; }; "spaceBetween": { "alias": "spaceBetween"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "effect": { "alias": "effect"; "required": false; }; "grabCursor": { "alias": "grabCursor"; "required": false; }; "centeredSlides": { "alias": "centeredSlides"; "required": false; }; "initialSlide": { "alias": "initialSlide"; "required": false; }; "autoHeight": { "alias": "autoHeight"; "required": false; }; "slideToClickedSlide": { "alias": "slideToClickedSlide"; "required": false; }; "freeMode": { "alias": "freeMode"; "required": false; }; "enableNavigation": { "alias": "enableNavigation"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "enableScrollbar": { "alias": "enableScrollbar"; "required": false; }; "enableAutoplay": { "alias": "enableAutoplay"; "required": false; }; "enableKeyboard": { "alias": "enableKeyboard"; "required": false; }; "enableMousewheel": { "alias": "enableMousewheel"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "enableGrid": { "alias": "enableGrid"; "required": false; }; "enableParallax": { "alias": "enableParallax"; "required": false; }; "autoplayDelay": { "alias": "autoplayDelay"; "required": false; }; "autoplayPauseOnMouseEnter": { "alias": "autoplayPauseOnMouseEnter"; "required": false; }; "autoplayDisableOnInteraction": { "alias": "autoplayDisableOnInteraction"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "paginationClickable": { "alias": "paginationClickable"; "required": false; }; "paginationDynamicBullets": { "alias": "paginationDynamicBullets"; "required": false; }; "navigationColor": { "alias": "navigationColor"; "required": false; }; "paginationColor": { "alias": "paginationColor"; "required": false; }; "gridRows": { "alias": "gridRows"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "controlParts": { "alias": "controlParts"; "required": false; }; "scrollPlays": { "alias": "scrollPlays"; "required": false; }; "creativePreset": { "alias": "creativePreset"; "required": false; }; "coverflowRotate": { "alias": "coverflowRotate"; "required": false; }; }, {}, never, never, false, never>;
813
831
  }
814
832
 
815
833
  /**
@@ -1799,6 +1817,8 @@ interface SliderInputs {
1799
1817
  scrollPlays?: boolean;
1800
1818
  /** AW11: a named setting for the `creative` effect (`fan` — a list's fan you drag). */
1801
1819
  creativePreset?: string;
1820
+ /** AD0b C8: how far each side slide of the `coverflow` effect turns, in degrees (unset = Swiper's own 50). */
1821
+ coverflowRotate?: number | string | null;
1802
1822
  }
1803
1823
  /** The slider's controls, when they are PARTS (CC3) — the elements Swiper is handed. */
1804
1824
  interface SliderControlElements {
@@ -1841,6 +1861,13 @@ declare const SLIDER_FEEL: {
1841
1861
  readonly resistanceRatio: 0.65;
1842
1862
  readonly threshold: 6;
1843
1863
  };
1864
+ /** AD0b C8: the coverflow angle's range (degrees). 0 is a flat centred row; past 90 a slide shows its back. */
1865
+ declare const COVERFLOW_ROTATE: {
1866
+ readonly min: 0;
1867
+ readonly max: 90;
1868
+ };
1869
+ /** The coverflow's turn the author set, clamped to {@link COVERFLOW_ROTATE}; null when unset (Swiper keeps its 50). */
1870
+ declare function coverflowRotate(value: unknown): number | null;
1844
1871
  /**
1845
1872
  * A "cards" stack (a list's deck, LI7): each card behind turns a little and peeks out a little; Swiper's shading on it is
1846
1873
  * rounded and coloured by the shared CSS (iox-design.css). Under reduced motion the stack keeps its depth and drops the
@@ -1992,6 +2019,7 @@ declare function sliderInputsFromProps(props: Record<string, unknown>, responsiv
1992
2019
  * `1vh` / `1vw` fallbacks restore native browser behaviour.
1993
2020
  */
1994
2021
  declare function rewriteViewportUnits(value: string): string;
2022
+ declare function orderShorthandsFirst(props: Record<string, any>): Record<string, any>;
1995
2023
  declare const SUPPRESSED_STYLE_PROPS_BY_TYPE: Readonly<Record<string, readonly string[]>>;
1996
2024
  /** Remove the style props whose value a type's render-default always overrides. Returns the map
1997
2025
  * unchanged (same reference) when the type suppresses nothing. */
@@ -2084,7 +2112,16 @@ declare function componentStatesFor(type: string | null | undefined, role?: stri
2084
2112
  * on shadow (board 10). Every renderer emits a node's state rules in `orderStatesForEmit` order.
2085
2113
  */
2086
2114
  declare const LAST_EMITTED_STATES: ReadonlyArray<string>;
2087
- /** `states` in the order their rules are emitted: as given, with the LAST_EMITTED_STATES moved to the end. */
2115
+ /**
2116
+ * The states that say what a node IS — the chosen tab, the open item, the current page, a pressed option, a busy or
2117
+ * disabled control — emitted AFTER every pointer state (AD0 A4, hotel MISSING 11): `:hover` ties with each of them on
2118
+ * specificity, so a hover stored after `on` used to repaint the ON tab's ground on hover. What a node is holds; the hover
2119
+ * styles the others. Focus stays after them all.
2120
+ */
2121
+ declare const CHOSEN_STATES: ReadonlyArray<string>;
2122
+ /** Where a state's rules go in a node's emit order: 0 the rest (pointer states, scrolled…), 1 the chosen states, 2 focus. */
2123
+ declare function stateEmitRank(state: string): number;
2124
+ /** `states` in the order their rules are emitted: as given within a rank — the rest, the chosen states, then focus. */
2088
2125
  declare function orderStatesForEmit<T extends string>(states: ReadonlyArray<T>): T[];
2089
2126
  /** True when a rule key (`<nodeId>:<state>`) holds a state emitted last. */
2090
2127
  declare function isLastEmittedStateKey(key: string): boolean;
@@ -2220,6 +2257,19 @@ declare function isGradientPaint(value: unknown): boolean;
2220
2257
  declare const BACKDROP_WHOLE_KEY = "backdropFilter";
2221
2258
  /** The prefixed twin emitted beside every composed `backdropFilter` (Safari). */
2222
2259
  declare const BACKDROP_TWIN_KEY = "WebkitBackdropFilter";
2260
+ /** The Effects ▸ Fade Edges trait: a WORD the compiler turns into `mask-image`, so a stored value never holds a colour. */
2261
+ declare const MASK_FADE_KEY = "maskFade";
2262
+ declare enum MaskFade {
2263
+ None = "none",
2264
+ /** Both inline ends — a marquee's soft edges. Symmetric, so a right-to-left page needs no mirror. */
2265
+ Sides = "sides",
2266
+ TopBottom = "top-bottom",
2267
+ Top = "top",
2268
+ Bottom = "bottom"
2269
+ }
2270
+ declare const MASK_FADE_IMAGES: Readonly<Record<MaskFade, string>>;
2271
+ /** The `mask-image` a Fade Edges word stands for; undefined for a word the list does not hold. */
2272
+ declare function maskFadeImage(word: unknown): string | undefined;
2223
2273
  declare const VIRTUAL_TRAIT_GROUPS: readonly VirtualTraitGroup[];
2224
2274
  /** Every virtual trait key — derived from the groups so there is one list to maintain. */
2225
2275
  declare const VIRTUAL_TRAIT_KEYS: Set<string>;
@@ -2414,6 +2464,61 @@ declare function isHoverState(state: string | null | undefined): boolean;
2414
2464
  /** `css` as it is emitted for `state`: inside `HOVER_MEDIA_QUERY` for a hover state, unchanged otherwise. */
2415
2465
  declare function gateHoverRule(state: string | null | undefined, css: string): string;
2416
2466
 
2467
+ /** What a stacked row's direct child defaults to — its own height, never a share of the column. */
2468
+ declare const STACKED_CHILD_DEFAULTS: Readonly<StyleMap>;
2469
+ /** What kind of box stacks: a flex row (its children get the defaults) or a grid (the grid gets them — AD-D24). */
2470
+ declare enum StackKind {
2471
+ Flex = "flex",
2472
+ Grid = "grid"
2473
+ }
2474
+ /** What a grid that becomes one column defaults to — its tracks hug their items (AD-D24). */
2475
+ declare const STACKED_GRID_DEFAULTS: Readonly<StyleMap>;
2476
+ /** …and, where the author's rows are `fr` tracks (a share of the height), no explicit rows: each row its item's height. */
2477
+ declare const STACKED_GRID_FR_ROWS: Readonly<StyleMap>;
2478
+ /** One stretch of widths over which a node is a column that was a row just wider. */
2479
+ interface StackedChildRule {
2480
+ /** The breakpoint where the row turns into a column; the rule holds at it and every narrower width… */
2481
+ breakpoint: OverrideBreakpoint;
2482
+ /** …until this narrower breakpoint, where the node stops being a column (a row again, or no flex box); null = all the way down. */
2483
+ until: OverrideBreakpoint | null;
2484
+ kind: StackKind;
2485
+ /** A grid: the declarations the GRID gets (the flex kind's go to its children — `STACKED_CHILD_DEFAULTS`). */
2486
+ grid?: StyleMap;
2487
+ }
2488
+ /** A compiled rule, ready to be placed BEFORE its breakpoint's own rules. */
2489
+ interface StackedChildBlock extends StackedChildRule {
2490
+ css: string;
2491
+ }
2492
+ /**
2493
+ * How many columns a `grid-template-columns` value draws: none / unset = one (the implicit column), `repeat(n, …)` counts
2494
+ * its tracks n times. null when the count depends on the width (`auto-fit` / `auto-fill`) or cannot be read.
2495
+ */
2496
+ declare function gridColumnCount(value: unknown): number | null;
2497
+ /**
2498
+ * Where a node's children stack: every breakpoint at which its effective layout turns from a row (just wider — a flex row,
2499
+ * or a grid of two or more columns) into a column (a flex column, or a one-column grid), each up to the narrower
2500
+ * breakpoint where it stops being one. Only a row of the column's own kind stacks (a grid that turns into a flex box
2501
+ * changes its layout altogether). A node with no breakpoint layer never changes — nothing. A one-column grid whose author already placed it (its own
2502
+ * `align-content`, no `fr` rows) needs nothing either.
2503
+ */
2504
+ declare function planStackedChildren(styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined): StackedChildRule[];
2505
+ /**
2506
+ * The node's direct children, whatever element each renders as: a component's host (`iox-outer-*`) or a one-element node
2507
+ * (`iox-node-*`, an Image). `:where()` keeps the parent weightless, `:is()` weighs one class — the child's own rules' weight.
2508
+ */
2509
+ declare function stackedChildSelector(cssId: string): string;
2510
+ /** A one-column grid's own rule: the node itself, at one class — the weight of its own rules. */
2511
+ declare function stackedGridSelector(cssId: string): string;
2512
+ /** The query a rule holds under: its breakpoint's `max-width`, and the next one's `min-width` when it stops before the narrowest. */
2513
+ declare function stackedChildQuery(rule: Pick<StackedChildRule, 'breakpoint' | 'until'>, kind?: BreakpointQueryKind, containerName?: string): string;
2514
+ /**
2515
+ * THE B-D4 rule, compiled: one block per stretch where `cssId`'s row stacks, each to be placed after every base rule and
2516
+ * before the breakpoint rules of `breakpoint` (the engine wraps in `@media`, the canvas in its `@container`). A flex row's
2517
+ * block sizes its children; a grid's (AD-D24) places its own tracks. Declarations are compiled in the Override context —
2518
+ * `0`, `auto` and `none` undo the wider value, they are not no-ops here.
2519
+ */
2520
+ declare function compileStackedChildren(cssId: string, styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, kind?: BreakpointQueryKind, containerName?: string): StackedChildBlock[];
2521
+
2417
2522
  /** Trait names whose value Swiper reads per breakpoint. Anything else is config-wide. */
2418
2523
  declare const SWIPER_RESPONSIVE_TRAITS: readonly string[];
2419
2524
  /** `{ [minWidth]: { slidesPerView, … } }` — Swiper's own `breakpoints` shape. */
@@ -2663,7 +2768,8 @@ declare enum A11yAttribute {
2663
2768
  Label = "aria-label",
2664
2769
  Hidden = "aria-hidden",
2665
2770
  Current = "aria-current",
2666
- Id = "id"
2771
+ Id = "id",
2772
+ Role = "role"
2667
2773
  }
2668
2774
  /** Every attribute this module may set — what `syncNodeA11yAttributes` owns on an element. */
2669
2775
  declare const MANAGED_A11Y_ATTRIBUTES: ReadonlyArray<string>;
@@ -2682,6 +2788,9 @@ interface A11yNodeSource extends OpenerNodeLike {
2682
2788
  name?: string;
2683
2789
  default?: unknown;
2684
2790
  }>> | null;
2791
+ /** A site-wide element (global-elements.md): where it renders, before or after every page. */
2792
+ isGlobal?: boolean | null;
2793
+ globalPosition?: string | null;
2685
2794
  }
2686
2795
  /** A content trait's value from `props` (serialized) or `traits[]` (builder). */
2687
2796
  declare function nodeTraitValue(node: A11yNodeSource | null | undefined, name: string): unknown;
@@ -2696,6 +2805,16 @@ interface NodeA11yContext {
2696
2805
  href?: string | null;
2697
2806
  currentLink?: CurrentLinkOptions;
2698
2807
  }
2808
+ /** The ARIA landmark of the site's footer. */
2809
+ declare const FOOTER_LANDMARK_ROLE = "contentinfo";
2810
+ /**
2811
+ * The landmark a node is to assistive technology, or null (vectoriox/iox-ui#204). A Section placed after every page as a
2812
+ * global IS the site's footer: it is the `contentinfo` landmark a screen reader jumps to for the contact details and the
2813
+ * legal row. Its tag stays a `<section>` (the canvas and the component path) or a `<div>` (the string path) — the role is
2814
+ * what assistive technology reads, and no CSS that names the tag moves. A drawer, a dialog or a bar placed after the page
2815
+ * is not a Section and stays what it is. One footer per site: the composer and the palette make one.
2816
+ */
2817
+ declare function landmarkRoleOf(node: A11yNodeSource | null | undefined): string | null;
2699
2818
  /** The attributes a node renders. */
2700
2819
  declare function nodeA11yAttributes(node: A11yNodeSource | null | undefined, ctx?: NodeA11yContext): Record<string, string>;
2701
2820
  /** The node's tooltip words (premium M5), trimmed, or '' — only on the types that carry one. */
@@ -2776,6 +2895,7 @@ declare function scrollbarsTakeWidthScript(): string;
2776
2895
  * It is still visual-only — the element keeps its box — which is why the actions picker says so and
2777
2896
  * why the mobile-nav pattern uses a Dialog instead (D9).
2778
2897
  */
2898
+
2779
2899
  type InteractionKeyframe = Readonly<Record<string, string | number>>;
2780
2900
  /** The attribute a runtime puts on an element an interaction has hidden (and removes on reveal). */
2781
2901
  declare const INTERACTION_HIDDEN_ATTRIBUTE = "data-iox-hidden";
@@ -2803,10 +2923,7 @@ declare enum ScrollActionType {
2803
2923
  Parallax = "parallax",
2804
2924
  ProgressBar = "progressBar"
2805
2925
  }
2806
- /** Actions that reveal an element (hidden → visible). Their FIRST frame is the pre-state. */
2807
- declare const ENTRANCE_ACTION_TYPES: ReadonlySet<string>;
2808
- /** Actions that hide an element (visible → hidden). */
2809
- declare const EXIT_ACTION_TYPES: ReadonlySet<string>;
2926
+
2810
2927
  /** How far a dissolve grows when its stamp names no `grow` (the opening's picture — the contract's `rules.dissolve`). */
2811
2928
  declare const DISSOLVE_GROW_DEFAULT = 1.5;
2812
2929
  /** `params.grow` of a dissolve: its last scale, in (1, 2]. */
@@ -2852,9 +2969,13 @@ interface SettleOptions {
2852
2969
  * frame is written (Hold) or released (Release) BEFORE `anim` is cancelled, so nothing flashes between the two.
2853
2970
  */
2854
2971
  declare function settleInteraction(el: HTMLElement, frames: ReadonlyArray<InteractionKeyframe> | null | undefined, mode: SettleMode, options?: SettleOptions, anim?: Animation | null): void;
2972
+ /** The frames of a run without the properties it handed to a later run — what its settle may touch: a property handed
2973
+ * over is the later run's to settle (an exit's held `opacity: 0` is never released by the entrance it interrupted). */
2974
+ declare function framesStillAnimated(anim: Animation | null | undefined, frames: ReadonlyArray<InteractionKeyframe> | null | undefined): InteractionKeyframe[];
2855
2975
  /**
2856
- * Interrupt (Emil 52/59/62): the interaction runs in flight on `el` over the same properties are stopped — never
2857
- * stacked — and the new run starts from what the element shows NOW (its presentation value), not from frame 0: a
2976
+ * Interrupt (Emil 52/59/62): the interaction runs in flight on `el` over the same properties hand them over — never
2977
+ * stacked; a run keeps playing only what the new one does not animate (`handOver`) — and the new run starts from what
2978
+ * the element shows NOW (its presentation value), not from frame 0: a
2858
2979
  * hover-out halfway through the hover-in turns back from where it is, a re-trigger continues. Untouched when
2859
2980
  * nothing is running (the run starts from its own first frame, as before).
2860
2981
  */
@@ -3518,6 +3639,31 @@ declare function declaredInputNames(type: Type<unknown>): Set<string>;
3518
3639
  */
3519
3640
  declare function safeSetInput(ref: ComponentRef<unknown>, name: string, value: unknown): boolean;
3520
3641
 
3642
+ /**
3643
+ * The attributes a component's selector names — what an EXPLICIT host element must carry.
3644
+ *
3645
+ * WHY THIS EXISTS: a variable-tag directive host (Heading, Text, List, ButtonBlock, a Container's `htmlTag`)
3646
+ * is created on a host element of the right tag — `createComponent(cls, { hostElement })` — because
3647
+ * `vcr.createComponent` would always pick the selector's FIRST tag. Angular writes a selector's attributes
3648
+ * (`p[iox-text]` → `iox-text`) only on a host it creates itself, so on ours the component's own CSS
3649
+ * (`:where(p[iox-text], span[iox-text]) { white-space: pre-wrap }`) never matched and a typed line break
3650
+ * collapsed (engine#44, the 5.204.0 release blocker). ONE helper for every renderer that creates on an
3651
+ * explicit host: the builder's `RenderDirective` and the engine's `ClientTreeRendererService`.
3652
+ */
3653
+ /** One selector attribute: its name and the value the selector asks for (`''` for a bare `[name]`). */
3654
+ interface SelectorAttribute {
3655
+ readonly name: string;
3656
+ readonly value: string;
3657
+ }
3658
+ /**
3659
+ * The attributes `type`'s selector names, each once, across every alternative
3660
+ * (`a[iox-button-block],button[iox-button-block]` → `iox-button-block`). Cached per class; empty for an
3661
+ * element selector or a class Angular can't reflect.
3662
+ */
3663
+ declare function hostSelectorAttributes(type: Type<unknown>): ReadonlyArray<SelectorAttribute>;
3664
+ /** Write `type`'s selector attributes on `host` — call before `createComponent(type, { hostElement: host })`. */
3665
+ declare function stampSelectorAttributes<T extends Element>(host: T, type: Type<unknown>): T;
3666
+
3521
3667
  /**
3522
3668
  * Phosphor's CSS needs TWO classes — a weight and a name (`.ph-thin.ph-house:before`). A class
3523
3669
  * string carrying only the name matches nothing at all: no `font-family`, no glyph, so the element
@@ -5171,5 +5317,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
5171
5317
  /** Raise the form's Sent toast (from the form — its scope and its look). */
5172
5318
  declare function raiseFormToast(form: Element): ToastHandle | null;
5173
5319
 
5174
- export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COLOUR_FLOW_CLASS, COLOUR_FLOW_MAX_STOPS, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_ACTION_TYPES, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EXIT_ACTION_TYPES, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FLOW_STOPS_PROPERTY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, IMAGE_DEFAULT_CSS, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MAX_LINES_KEY, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DIRECTION_KEY, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachColourFlow, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, colourFlowOpacities, commitInlineEdit, compileDeclarations, compilePageStyle, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, flowStopProperty, flowStopsIn, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, groundHeadersIn, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerHeightScopeOf, headerShouldHide, heldFrames, hideFromTopLayer, hidingHeadersIn, holdsOnScreen, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderStatesForEmit, pageLanguageOf, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, popupAttributeGetter, popupIdOf, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderHeight, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
5175
- export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, BoundValueSpec, BreakpointDef, ColourFlowHost, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PopupOverlayState, PopupRuntimeOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
5320
+ export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, CHOSEN_STATES, COLOUR_FLOW_CLASS, COLOUR_FLOW_MAX_STOPS, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, COVERFLOW_ROTATE, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FLOW_STOPS_PROPERTY, FOOTER_LANDMARK_ROLE, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, IMAGE_DEFAULT_CSS, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MASK_FADE_IMAGES, MASK_FADE_KEY, MAX_LINES_KEY, MaskFade, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STACKED_CHILD_DEFAULTS, STACKED_GRID_DEFAULTS, STACKED_GRID_FR_ROWS, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StackKind, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DEFAULT_CSS, TEXT_DIRECTION_KEY, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachColourFlow, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, colourFlowOpacities, commitInlineEdit, compileDeclarations, compilePageStyle, compileStackedChildren, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, coverflowRotate, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, flowStopProperty, flowStopsIn, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, framesStillAnimated, gateHoverRule, getSeoValue, gridColumnCount, groundHeadersIn, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerHeightScopeOf, headerShouldHide, heldFrames, hideFromTopLayer, hidingHeadersIn, holdsOnScreen, hostSelectorAttributes, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, landmarkRoleOf, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, maskFadeImage, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderShorthandsFirst, orderStatesForEmit, pageLanguageOf, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStackedChildren, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, popupAttributeGetter, popupIdOf, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stackedChildQuery, stackedChildSelector, stackedGridSelector, stampSelectorAttributes, stateEmitRank, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderHeight, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
5321
+ export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, BoundValueSpec, BreakpointDef, ColourFlowHost, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PopupOverlayState, PopupRuntimeOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SelectorAttribute, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StackedChildBlock, StackedChildRule, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.203.0",
3
+ "version": "5.205.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -41,6 +41,15 @@ export const COUNT_UP_TRIGGERS: ReadonlyArray<string> = Object.freeze(['viewport
41
41
  */
42
42
  export const DISSOLVE_ACTION = 'dissolve';
43
43
 
44
+ /**
45
+ * Actions that REVEAL an element (hidden → visible) — their first frame is the pre-state — and actions that HIDE one.
46
+ * Both interaction runtimes (iox-ui `interaction-keyframes`, which re-exports these) and the designer's static motion check
47
+ * (generation-core `design-motion`) read this ONE pair.
48
+ */
49
+ export const ENTRANCE_ACTION_TYPES: ReadonlySet<string> =
50
+ new Set(['fadeIn', 'moveUp', 'moveDown', 'moveLeft', 'moveRight', 'scaleIn', 'show', 'clipReveal', 'zoomOut', 'revealText', 'blurIn']);
51
+ export const EXIT_ACTION_TYPES: ReadonlySet<string> = new Set(['fadeOut', 'scaleOut', 'hide', DISSOLVE_ACTION]);
52
+
44
53
  export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([
45
54
  // ── Motion (shipped WAAPI actions — timing row applies) ──────────────────
46
55
  { type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
@@ -3,7 +3,7 @@ import { WCAG_AA_UI } from './brand-neutrals';
3
3
  import { compositeOver, paintColours, parseCssColour, quantizeRgb, Rgba, ringColour } from './colour-eval';
4
4
  import { ElementStyle, ELEMENT_STYLES } from './element-styles';
5
5
  import { SPEC_CONTRAST_AUDIT, SPEC_INK_SCOPES, SPEC_SCHEMES } from './flavor-spec.generated';
6
- import { SCHEME_INK } from './node-classes';
6
+ import { colorSchemeOf, DesignClassSource, SCHEME_INK } from './node-classes';
7
7
  import { DesignTokenLike, ResolvedMode, schemeTokenResolver } from './token-css';
8
8
 
9
9
  /**
@@ -146,20 +146,30 @@ export function auditDesignContrast(rows: ReadonlyArray<DesignTokenLike>, mode:
146
146
  return findings.map(f => ({ ...f }));
147
147
  }
148
148
 
149
+ /** A CONTAINER style — a Layout / Overlays style that paints a fill of its own (Card, Panel, Navigation bar, Dialog): what
150
+ * it holds is judged inside it. The section is the ground every scheme is judged on, never a box. */
151
+ function isBoxStyle(e: ElementStyle): boolean {
152
+ return CONTAINER_GROUPS.has(e.group) && !!ownStyle(e)['backgroundColor'] && e.id !== SECTION_STYLE;
153
+ }
154
+
155
+ /** An ITEM style — a Layout style that paints ink but no fill of its own (the bottom bar's item, CC1) — sits ON a
156
+ * container like any content, so it is judged as content (the contract's audit, 1:1). */
157
+ function isItemStyle(e: ElementStyle): boolean {
158
+ return CONTAINER_GROUPS.has(e.group) && !ownStyle(e)['backgroundColor'] && !!ownStyle(e)['color'] && ownStyle(e)['color'] !== 'inherit';
159
+ }
160
+
161
+ /** A CONTENT style — what the sweep judges on every ground (text, buttons, links, glyphs, items). */
162
+ function isContentStyle(e: ElementStyle): boolean {
163
+ return (!CONTAINER_GROUPS.has(e.group) || isItemStyle(e)) && !!(ownStyle(e)['color'] || ownStyle(e)['backgroundColor'])
164
+ && e.group !== FORMS_GROUP && !NOT_CONTENT.has(e.id) && !SCRIM_STYLES.has(e.id) && !MARK_STYLES.has(e.id);
165
+ }
166
+
149
167
  function sweepDesignContrast(rows: ReadonlyArray<DesignTokenLike>, mode: ResolvedMode): ContrastFinding[] {
150
168
  const findings: ContrastFinding[] = [];
151
169
  const styles = ELEMENT_STYLES;
152
170
  const byId = new Map(styles.map(e => [e.id, e]));
153
- const containers: Array<ElementStyle | null> = [
154
- null,
155
- ...styles.filter(e => CONTAINER_GROUPS.has(e.group) && ownStyle(e)['backgroundColor'] && e.id !== SECTION_STYLE),
156
- ];
157
- // An ITEM style — a Layout style that paints ink but no fill of its own (the bottom bar's item, CC1) —
158
- // sits ON a container like any content, so it is judged as content (the contract's audit, 1:1).
159
- const isItem = (e: ElementStyle) => CONTAINER_GROUPS.has(e.group) && !ownStyle(e)['backgroundColor']
160
- && !!ownStyle(e)['color'] && ownStyle(e)['color'] !== 'inherit';
161
- const content = styles.filter(e => (!CONTAINER_GROUPS.has(e.group) || isItem(e)) && (ownStyle(e)['color'] || ownStyle(e)['backgroundColor'])
162
- && e.group !== FORMS_GROUP && !NOT_CONTENT.has(e.id) && !SCRIM_STYLES.has(e.id) && !MARK_STYLES.has(e.id));
171
+ const containers: Array<ElementStyle | null> = [null, ...styles.filter(isBoxStyle)];
172
+ const content = styles.filter(isContentStyle);
163
173
  const marks = styles.filter(e => MARK_STYLES.has(e.id));
164
174
  const notices = styles.filter(e => e.group === FORMS_GROUP && ownStyle(e)['color']);
165
175
  const section = ownStyle(byId.get(SECTION_STYLE) as ElementStyle);
@@ -446,3 +456,75 @@ export function floatingGroundFindings(
446
456
  }
447
457
  return out;
448
458
  }
459
+
460
+ // ── What the pages RENDER (AD0 A6) ──────────────────────────────────────────────────────────────────────────────────
461
+
462
+ /** A node as the rendered-pairs walk reads it: a saved layout node or a builder node (its scheme, its element style). */
463
+ export interface ContrastTreeNode extends DesignClassSource {
464
+ type?: string;
465
+ children?: ReadonlyArray<ContrastTreeNode | null | undefined> | null;
466
+ }
467
+
468
+ /** A tree the site renders, and the schemes its root may stand in (a global header follows each page's opening). */
469
+ export interface ContrastTree {
470
+ nodes: ReadonlyArray<ContrastTreeNode | null | undefined>;
471
+ /** The schemes the tree's root stands in — `default` when absent. */
472
+ schemes?: ReadonlyArray<string>;
473
+ }
474
+
475
+ const pairKey = (scheme: string, container: string, element: string) => `${scheme}\u0001${container}\u0001${element}`;
476
+ const STYLE_BY_ID: ReadonlyMap<string, ElementStyle> = new Map(ELEMENT_STYLES.map(e => [e.id, e]));
477
+
478
+ /** A node's own scheme, when it wears a real non-default one. */
479
+ function ownScheme(node: ContrastTreeNode): string | null {
480
+ const id = colorSchemeOf(node);
481
+ return id && id !== DEFAULT_SCHEME && SCHEME_IDS.includes(id) ? id : null;
482
+ }
483
+
484
+ /**
485
+ * The (scheme, container, element) triples the pages actually RENDER — every element style a node wears, in the scheme
486
+ * it stands in and the nearest container style around it, as `auditDesignContrast` names its findings. Pure.
487
+ */
488
+ export function renderedContrastPairs(trees: ReadonlyArray<ContrastTree>): Set<string> {
489
+ const out = new Set<string>();
490
+ const visit = (node: ContrastTreeNode, scheme: string, container: string) => {
491
+ const own = ownScheme(node);
492
+ const here = own ?? scheme;
493
+ const style = node.elementStyle ? STYLE_BY_ID.get(node.elementStyle) : undefined;
494
+ let inside = container;
495
+ if (own) out.add(pairKey(here, container, container));
496
+ if (style?.id === SECTION_STYLE) {
497
+ inside = SECTION;
498
+ out.add(pairKey(here, SECTION, SECTION));
499
+ } else if (style && isBoxStyle(style)) {
500
+ inside = style.id;
501
+ out.add(pairKey(here, style.id, style.id));
502
+ if (own) out.add(pairKey(own, `${style.id} in a ${scheme} section`, INHERITED_TEXT));
503
+ } else if (style) {
504
+ out.add(pairKey(here, container, style.id));
505
+ }
506
+ for (const child of node.children ?? []) if (child) visit(child, here, inside);
507
+ };
508
+ for (const tree of trees) {
509
+ for (const scheme of tree.schemes?.length ? tree.schemes : [DEFAULT_SCHEME]) {
510
+ out.add(pairKey(scheme, SECTION, SECTION));
511
+ for (const node of tree.nodes) if (node) visit(node, scheme, SECTION);
512
+ }
513
+ }
514
+ return out;
515
+ }
516
+
517
+ /**
518
+ * The findings of `auditDesignContrast` that a site's pages RENDER (AD0 A6): the sweep judges every pairing the look COULD
519
+ * make (472 failing on both designer-loop proof sites, almost all in schemes and boxes nobody used), so the Publish gate
520
+ * counted noise. Kept: a finding whose scheme, container and element the pages wear together (`renderedContrastPairs`);
521
+ * text over an image when the pages wear that scrim style; a Field's parts when a Field stands in that scheme and box.
522
+ */
523
+ export function renderedContrastFindings(findings: ReadonlyArray<ContrastFinding>, trees: ReadonlyArray<ContrastTree>): ContrastFinding[] {
524
+ const pairs = renderedContrastPairs(trees);
525
+ const wornStyles = new Set([...pairs].map(k => k.split('\u0001')[2]));
526
+ return findings.filter(f => SCRIM_STYLES.has(f.element)
527
+ ? wornStyles.has(f.element)
528
+ : pairs.has(pairKey(f.scheme, f.container, f.element)));
529
+ }
530
+
@@ -5696,6 +5696,25 @@ export const SPEC_FIELD_CLASS_BASELINE = {
5696
5696
  "inline-size": "100%",
5697
5697
  "box-sizing": "border-box"
5698
5698
  },
5699
+ ".iox-es-field .iox-field__control:where(input:not([type='checkbox'], [type='radio'], [type='range']), select, .iox-field__control--date)": {
5700
+ "line-height": "1.25"
5701
+ },
5702
+ ".iox-es-field select.iox-field__control": {
5703
+ "appearance": "none",
5704
+ "-webkit-appearance": "none",
5705
+ "padding-inline-end": "2.25em",
5706
+ "background-image": "linear-gradient(45deg, transparent 50%, var(--iox-text-muted) 50%), linear-gradient(135deg, var(--iox-text-muted) 50%, transparent 50%)",
5707
+ "background-size": "0.35em 0.35em, 0.35em 0.35em",
5708
+ "background-repeat": "no-repeat",
5709
+ "background-position": "right calc(1em + 0.35em) center, right 1em center"
5710
+ },
5711
+ ".iox-es-field select.iox-field__control:dir(rtl)": {
5712
+ "background-position": "left 1em center, left calc(1em + 0.35em) center"
5713
+ },
5714
+ ".iox-es-field .iox-field__control--date": {
5715
+ "inline-size": "100%",
5716
+ "box-sizing": "border-box"
5717
+ },
5699
5718
  ".iox-es-field .iox-field__label": {
5700
5719
  "font-family": "var(--iox-font-body)",
5701
5720
  "font-size": "var(--iox-field-label-size)",
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A picture's words for assistive technology (ai-designer-plan AD0b C9, law MISSING 19). ONE reading for both renderers
3
+ * and the Publish gate: a picture marked DECORATIVE (the Image panel's switch) is announced as nothing — `alt=""` —
4
+ * whatever its Alt field still holds; any other picture says its Alt text. The switch is the author's statement that the
5
+ * picture carries no information (a texture, a colour twin, an ornament), which is what WCAG 1.1.1 asks for an empty alt.
6
+ */
7
+
8
+ /** The Image's alt-related props (the node's `props`, the component's inputs). */
9
+ export enum ImageTrait {
10
+ Alt = 'alt',
11
+ Decorative = 'decorative',
12
+ }
13
+
14
+ /** The shape this module reads: any node's props or a component's inputs. */
15
+ export type ImageAltProps = Readonly<Record<string, unknown>> | null | undefined;
16
+
17
+ /** True when the author marked the picture decorative (the switch is on). */
18
+ export function isDecorativeImage(props: ImageAltProps): boolean {
19
+ return props?.[ImageTrait.Decorative] === true;
20
+ }
21
+
22
+ /** The `alt` attribute both renderers write: `''` for a decorative picture, else the Alt text (`''` when none). */
23
+ export function imageAlt(props: ImageAltProps): string {
24
+ if (isDecorativeImage(props)) return '';
25
+ const alt = props?.[ImageTrait.Alt];
26
+ return typeof alt === 'string' ? alt : alt == null ? '' : String(alt);
27
+ }
@@ -46,6 +46,18 @@ export const CARD_LINK_CLASS = 'iox-card-link';
46
46
  * card stays clickable (board 8). */
47
47
  export const CANVAS_LINK_ATTRIBUTE = 'data-iox-canvas';
48
48
 
49
+ /** The ONE target that opens a new tab. */
50
+ export const NEW_TAB_TARGET = '_blank';
51
+
52
+ /**
53
+ * The `rel` a link opening `target` carries, or `null` for none: a new tab never reaches back to the page that
54
+ * opened it (`noopener`). ONE answer for every link a renderer draws — Link, a linked Heading, an `<a>`
55
+ * ButtonBlock — on the builder canvas and both engine paths.
56
+ */
57
+ export function linkRel(target: unknown): string | null {
58
+ return target === NEW_TAB_TARGET ? 'noopener' : null;
59
+ }
60
+
49
61
  /**
50
62
  * The href a linked Heading renders (Card v2: the card's title IS its link), or `null` when it links
51
63
  * nowhere — `none`, or a link with no target yet (the title then renders as plain words). A page link goes
@@ -26,6 +26,7 @@ export * from './footer-classes';
26
26
  export * from './ink-on-ground';
27
27
  export * from './field-classes';
28
28
  export * from './empty-image';
29
+ export * from './image-alt';
29
30
  export * from './node-links';
30
31
  export * from './brand';
31
32
  export * from './colour-eval';