@vectoriox/iox-ui 5.162.0 → 5.163.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.
- package/actions-core/index.d.ts +171 -3
- package/assist-core/index.d.ts +3 -2
- package/composite-core/index.d.ts +185 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +243 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -5
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +404 -163
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +56 -5
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +140 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +80 -23
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +383 -10
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +46 -5
- package/harness-core/index.d.ts +132 -2
- package/index.d.ts +105 -3
- package/package.json +1 -1
- package/scene-core/index.d.ts +44 -12
- package/src/actions-core/popup-arrival.ts +328 -0
- package/src/actions-core/public-api.ts +1 -0
- package/src/assist-core/media-generate.ts +6 -5
- package/src/composite-core/popup.ts +285 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/generation-core/ai-run.ts +65 -2
- package/src/generation-core/pictures.ts +4 -3
- package/src/harness-core/business-types.ts +2 -0
- package/src/harness-core/harness-spec.generated.ts +83 -0
- package/src/harness-core/popup-stance.ts +111 -0
- package/src/harness-core/public-api.ts +1 -0
- package/src/scene-core/scroll-driver.ts +97 -25
- package/styles/iox-design.css +121 -2
|
@@ -8,12 +8,12 @@ import * as i1 from '@angular/common';
|
|
|
8
8
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
9
9
|
import { SPEC_AXES, resolveDesignMotion, FILTER_FUNCTIONS, BACKDROP_FUNCTIONS, decomposeCssFunctions, FieldClass, HeaderAttribute, HeaderBehaviour, HeaderInk, OPENING_ATTRIBUTE, schemeOfClasses, schemeUnderBar, BRAND_NAME_ATTRIBUTE, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, BRAND_ROLE, brandNameAttributes, REDUCED_ENTRANCE_MAX_MS, roleClass, preloaderWords, PreloaderKind, preloaderGraphemes, PRELOADER_EXIT_EASE, PRELOADER_CAP_MS, isFirstVisit, PRELOADER_ENTER_EASE, PreloaderExit, PRELOADER_MIN_SHOW_MS, preloaderLeaveAt, preloaderExitMotion, preloaderPercent, inkOnGround, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
10
10
|
export * from '@vectoriox/iox-ui/design-core';
|
|
11
|
+
import { setPageScroller, pageScroller, SceneAttribute, SCENE_WAKE_EVENT, SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, playTextReveal, textRevealByOf, textRevealLookOf, ScrollActionKind, lightMotionWanted, scrubTextReveal, ScrollPlay, gentleFrames, SCENE_PHONE_MAX_WIDTH, normalizeParallaxDepth, normalizeParallaxPhone, parallaxShift, parallaxRest, parallaxFrames, PROGRESS_BAR_FRAMES, ParallaxPhone, outermostNodeOf, normalizeScrollRange, scrollPlayFor, ScrollRange } from '@vectoriox/iox-ui/scene-core';
|
|
11
12
|
import Lenis from 'lenis';
|
|
12
|
-
import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouselA11y, attachSliderBar, isSliderPart, MARQUEE_NODE_ATTRIBUTES, SLIDE_TYPE, SLIDE_CAPTION_TRAIT, marqueeRootAttributes, MarqueeRole } from '@vectoriox/iox-ui/composite-core';
|
|
13
|
-
import { SceneAttribute, SCENE_WAKE_EVENT, SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, playTextReveal, textRevealByOf, textRevealLookOf, ScrollActionKind, lightMotionWanted, scrubTextReveal, ScrollPlay, gentleFrames, SCENE_PHONE_MAX_WIDTH, normalizeParallaxDepth, normalizeParallaxPhone, parallaxShift, parallaxRest, parallaxFrames, PROGRESS_BAR_FRAMES, ParallaxPhone, outermostNodeOf, normalizeScrollRange, scrollPlayFor, ScrollRange } from '@vectoriox/iox-ui/scene-core';
|
|
13
|
+
import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouselA11y, attachSliderBar, isSliderPart, MARQUEE_NODE_ATTRIBUTES, POPUP_ATTRIBUTES, popupDialogAttributes, SLIDE_TYPE, SLIDE_CAPTION_TRAIT, marqueeRootAttributes, MarqueeRole, PopupAttribute, PopupTrait, popupWords, PopupForm } from '@vectoriox/iox-ui/composite-core';
|
|
14
14
|
import { getByPath } from '@vectoriox/iox-ui/data-core';
|
|
15
15
|
export * from '@vectoriox/iox-ui/data-core';
|
|
16
|
-
import { runExitMotion, isExiting, popoverOpenersSelector, OpenerAttribute, cancelExit, POPOVER_NODE_TYPE, dialogOpenerAttributes, popoverOpenerAttributes, popoverDomId, dialogDomId, COUNT_UP_TRIGGERS, SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
16
|
+
import { runExitMotion, isExiting, popoverOpenersSelector, OpenerAttribute, cancelExit, POPOVER_NODE_TYPE, dialogOpenerAttributes, popoverOpenerAttributes, popoverDomId, dialogDomId, COUNT_UP_TRIGGERS, SCROLL_PROGRESS_TRIGGER, planPopupArrival, ArrivalTrigger, popupDue, popupFormOn, popupMotionScale, popupFadesOnly, overlayTurn, isQuietRoute, popupOfTurn, arrivalFired, focusDialogSheet, popupMemoryStore, PopupMemoryStore, popupMemoryKey, decodePopupMemory, encodePopupMemory, popupVersionOf } from '@vectoriox/iox-ui/actions-core';
|
|
17
17
|
export { SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
18
18
|
import { VideoKind, planVideo, videoRootAttributes, videoInnerHtml, videoWords, VideoAttribute, attachVideoAt, VideoClass } from '@vectoriox/iox-ui/media-core';
|
|
19
19
|
import * as i1$1 from '@angular/platform-browser';
|
|
@@ -497,6 +497,10 @@ class PageScrollProvider {
|
|
|
497
497
|
if (!start.lenis)
|
|
498
498
|
return;
|
|
499
499
|
this.lenis = new Lenis({ ...start.lenis, ...(start.wrapper ? { wrapper: start.wrapper } : {}), ...(start.content ? { content: start.content } : {}) });
|
|
500
|
+
// Smoothing the DOCUMENT: a Scene reads its scroll where Lenis has it, and follows it only while Lenis smooths
|
|
501
|
+
// (RT-D2, vectoriox/iox-ui#140). A wrapper's Lenis (a specimen, Preview) is never the page's.
|
|
502
|
+
if (!start.wrapper)
|
|
503
|
+
setPageScroller(window, this.lenis);
|
|
500
504
|
this.startLoop();
|
|
501
505
|
}
|
|
502
506
|
/** Provided by a component (a page, the Design step's specimen): its Lenis and loop go with it. */
|
|
@@ -508,6 +512,8 @@ class PageScrollProvider {
|
|
|
508
512
|
if (this.rafId != null)
|
|
509
513
|
cancelAnimationFrame(this.rafId);
|
|
510
514
|
this.rafId = undefined;
|
|
515
|
+
if (this.lenis && typeof window !== 'undefined' && pageScroller(window) === this.lenis)
|
|
516
|
+
setPageScroller(window, null);
|
|
511
517
|
this.lenis?.destroy();
|
|
512
518
|
this.lenis = null;
|
|
513
519
|
this.unlock();
|
|
@@ -5815,7 +5821,7 @@ const FLOATING_LAYER_CLASS = 'iox-float-layer';
|
|
|
5815
5821
|
/** The selector of an open modal dialog — a floating element raised from inside one belongs to its layer. */
|
|
5816
5822
|
const OPEN_MODAL = 'dialog[open]';
|
|
5817
5823
|
/** True when the browser has the Popover API (jsdom and old engines do not — they open by `hidden`). */
|
|
5818
|
-
function canPopover(el) {
|
|
5824
|
+
function canPopover$1(el) {
|
|
5819
5825
|
return typeof el.showPopover === 'function';
|
|
5820
5826
|
}
|
|
5821
5827
|
/** True while a `popover` element is shown in the top layer. */
|
|
@@ -5829,7 +5835,7 @@ function isOpenPopover(el) {
|
|
|
5829
5835
|
}
|
|
5830
5836
|
/** Show a `popover` element in the top layer; an element without the API is un-hidden instead. */
|
|
5831
5837
|
function showInTopLayer(el) {
|
|
5832
|
-
if (!el.hasAttribute('popover') || !canPopover(el)) {
|
|
5838
|
+
if (!el.hasAttribute('popover') || !canPopover$1(el)) {
|
|
5833
5839
|
el.hidden = false;
|
|
5834
5840
|
return;
|
|
5835
5841
|
}
|
|
@@ -5841,7 +5847,7 @@ function showInTopLayer(el) {
|
|
|
5841
5847
|
}
|
|
5842
5848
|
/** Take a `popover` element out of the top layer (or hide it). */
|
|
5843
5849
|
function hideFromTopLayer(el) {
|
|
5844
|
-
if (!el.hasAttribute('popover') || !canPopover(el)) {
|
|
5850
|
+
if (!el.hasAttribute('popover') || !canPopover$1(el)) {
|
|
5845
5851
|
el.hidden = true;
|
|
5846
5852
|
return;
|
|
5847
5853
|
}
|
|
@@ -5869,7 +5875,7 @@ function floatingLayer(scope, options = {}) {
|
|
|
5869
5875
|
// Display only — the tooltip names what it describes through aria-describedby, the toasts speak through their
|
|
5870
5876
|
// own live region; the layer itself is not a landmark.
|
|
5871
5877
|
layer.setAttribute('data-iox-chrome', '');
|
|
5872
|
-
if (options.topLayer !== false && canPopover(layer))
|
|
5878
|
+
if (options.topLayer !== false && canPopover$1(layer))
|
|
5873
5879
|
layer.setAttribute('popover', 'manual');
|
|
5874
5880
|
scope.appendChild(layer);
|
|
5875
5881
|
}
|
|
@@ -5878,7 +5884,7 @@ function floatingLayer(scope, options = {}) {
|
|
|
5878
5884
|
}
|
|
5879
5885
|
/** Show a top-layer layer (again): a layer closed by a scope change, or one a later modal dialog now covers. */
|
|
5880
5886
|
function raiseFloatingLayer(layer) {
|
|
5881
|
-
if (!layer.hasAttribute('popover') || !canPopover(layer))
|
|
5887
|
+
if (!layer.hasAttribute('popover') || !canPopover$1(layer))
|
|
5882
5888
|
return;
|
|
5883
5889
|
showInTopLayer(layer);
|
|
5884
5890
|
}
|
|
@@ -9149,7 +9155,7 @@ const MANAGED_A11Y_ATTRIBUTES = [
|
|
|
9149
9155
|
A11yAttribute.Label, A11yAttribute.Hidden, A11yAttribute.Current, A11yAttribute.Id,
|
|
9150
9156
|
'aria-haspopup', 'aria-expanded', 'aria-controls', DIALOG_CLOSE_ABOVE_ATTRIBUTE,
|
|
9151
9157
|
HeaderAttribute.Behaviour, HeaderAttribute.Edge, BRAND_NAME_ATTRIBUTE, SLIDE_CAPTION_ATTRIBUTE,
|
|
9152
|
-
TOOLTIP_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, ...MARQUEE_NODE_ATTRIBUTES, ...MENU_ATTRIBUTES,
|
|
9158
|
+
TOOLTIP_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, ...MARQUEE_NODE_ATTRIBUTES, ...MENU_ATTRIBUTES, ...POPUP_ATTRIBUTES,
|
|
9153
9159
|
];
|
|
9154
9160
|
/** The type of a menu button and of the menu's Close (header-ingredients HI2a: its kind — lines · word · dots). */
|
|
9155
9161
|
const MENU_BUTTON_TYPE = 'ButtonBlock';
|
|
@@ -9205,6 +9211,9 @@ function nodeA11yAttributes(node, ctx = {}) {
|
|
|
9205
9211
|
out[DIALOG_CLOSE_ABOVE_ATTRIBUTE] = String(minWidth);
|
|
9206
9212
|
// HI2a: the menu's form, how it opens, what the mouse does in it, its phone form — the shared CSS reads these.
|
|
9207
9213
|
Object.assign(out, menuDialogAttributes((name) => nodeTraitValue(node, name)));
|
|
9214
|
+
// Popups PU1: the popup's kind, form, arrival, memory and dates (the shared CSS and the popup runtime read these),
|
|
9215
|
+
// `data-nosnippet`, and the non-modal opening (a popup's corner / bar, or a Dialog set `modal: false`).
|
|
9216
|
+
Object.assign(out, popupDialogAttributes((name) => nodeTraitValue(node, name)));
|
|
9208
9217
|
}
|
|
9209
9218
|
if (node.type === MENU_BUTTON_TYPE)
|
|
9210
9219
|
Object.assign(out, menuButtonAttributes((name) => nodeTraitValue(node, name)));
|
|
@@ -13429,6 +13438,370 @@ function attachTooltips(root, options = {}) {
|
|
|
13429
13438
|
return tooltipsOf(root) ?? new TooltipRuntime(root, options);
|
|
13430
13439
|
}
|
|
13431
13440
|
|
|
13441
|
+
/**
|
|
13442
|
+
* THE POPUP on the live site (popups-plan.md PU1, §4–§8). ONE DOM runtime for both engine paths: it finds every
|
|
13443
|
+
* `dialog[data-iox-popup]` (the attributes `nodeA11yAttributes` wrote from the popup traits), asks the ONE planner
|
|
13444
|
+
* (actions-core `overlayTurn` / `planPopupArrival` / `popupDue`) whose turn it is and when the arrival fires, and obeys:
|
|
13445
|
+
*
|
|
13446
|
+
* - **Non-modal** (`corner`, `bar`, and `centred` on a phone): the SAME `<dialog>` opened with `showPopover()`
|
|
13447
|
+
* (`popover="manual"`, set while closed) — the top layer, no inert page, no focus trap, the page scroller keeps running;
|
|
13448
|
+
* focus is NEVER moved (WCAG 3.2.2); its title is announced once through a polite status region. A browser with no
|
|
13449
|
+
* Popover API opens it with `show()` (non-modal, in flow).
|
|
13450
|
+
* - **Modal** (`centred` on a laptop): `showModal()`, the sheet takes focus (`focusDialogSheet`), focus returns on close.
|
|
13451
|
+
* - Esc closes it when focus is inside it or on the page body (never while typing in a field); the ✕ is named in the
|
|
13452
|
+
* site's language. A close (✕, Esc, the scrim) writes the memory; following its link or sending its form writes `acted`.
|
|
13453
|
+
* - The clock starts when the popup's TURN starts: `time` counts visible seconds from then, `scroll` needs the visitor's
|
|
13454
|
+
* own scroll after it (a programmatic scroll before any input is never counted).
|
|
13455
|
+
* - Memory: `iox-popup:<scope>:<id>` → `{ v, closedAt, acted }` in localStorage (`visit`: sessionStorage), falling back to
|
|
13456
|
+
* the session, then to this page view. Necessary (consent-core): no identifier, never sent.
|
|
13457
|
+
*
|
|
13458
|
+
* The engine reports what only it knows (`overlayState`: the preloader, the consent debt, another overlay) and calls
|
|
13459
|
+
* `refresh()`; a tick re-asks the planner while any popup waits. The builder canvas never runs this (PU-D14).
|
|
13460
|
+
*/
|
|
13461
|
+
const POPUP_SELECTOR = `dialog[${PopupAttribute.Kind}]`;
|
|
13462
|
+
/** A popup that is open, or on its way out. */
|
|
13463
|
+
const POPUP_OPEN_ATTRIBUTE = 'data-iox-popup-open';
|
|
13464
|
+
/** Still (How animated): the popup fades, nothing moves. */
|
|
13465
|
+
const POPUP_STILL_ATTRIBUTE = 'data-iox-popup-still';
|
|
13466
|
+
/** The custom property the shared CSS scales `popup-dur-*` by (How animated). */
|
|
13467
|
+
const POPUP_SCALE_PROPERTY = '--popup-scale';
|
|
13468
|
+
const POPUP_ANNOUNCE_ATTRIBUTE = 'data-iox-popup-announce';
|
|
13469
|
+
const CLOSE_SELECTOR = '[data-iox-dialog-close], .iox-dialog-close';
|
|
13470
|
+
const TICK_MS = 250;
|
|
13471
|
+
/** Keys that scroll a page — a keyboard scroll is the visitor's own. */
|
|
13472
|
+
const SCROLL_KEYS = new Set(['ArrowDown', 'ArrowUp', 'PageDown', 'PageUp', 'Home', 'End', ' ', 'Spacebar']);
|
|
13473
|
+
const PHONE_QUERY = '(max-width: 767px)';
|
|
13474
|
+
const FINE_POINTER_QUERY = '(hover: hover) and (pointer: fine)';
|
|
13475
|
+
/** The popup id a `<dialog>` carries (its node id — the element id is `iox-dialog-<id>`). */
|
|
13476
|
+
function popupIdOf(dialog) {
|
|
13477
|
+
return dialog.id.replace(/^iox-dialog-/, '') || dialog.getAttribute('data-iox-node') || '';
|
|
13478
|
+
}
|
|
13479
|
+
/** A trait getter over the attributes a popup rendered — the planner reads the same names on a node and an element. */
|
|
13480
|
+
function popupAttributeGetter(dialog) {
|
|
13481
|
+
const map = {
|
|
13482
|
+
[PopupTrait.Kind]: PopupAttribute.Kind, [PopupTrait.Form]: PopupAttribute.Form, [PopupTrait.Arrive]: PopupAttribute.Arrive,
|
|
13483
|
+
[PopupTrait.Screens]: PopupAttribute.Screens, [PopupTrait.PageShare]: PopupAttribute.PageShare, [PopupTrait.Seconds]: PopupAttribute.Seconds,
|
|
13484
|
+
[PopupTrait.Again]: PopupAttribute.Again, [PopupTrait.Days]: PopupAttribute.Days, [PopupTrait.ShowFrom]: PopupAttribute.ShowFrom,
|
|
13485
|
+
[PopupTrait.ShowUntil]: PopupAttribute.ShowUntil, [PopupTrait.Version]: PopupAttribute.Version,
|
|
13486
|
+
};
|
|
13487
|
+
return (name) => (map[name] ? dialog.getAttribute(map[name]) ?? undefined : undefined);
|
|
13488
|
+
}
|
|
13489
|
+
const canPopover = (el) => typeof el.showPopover === 'function';
|
|
13490
|
+
const popoverOpen = (el) => { try {
|
|
13491
|
+
return el.matches(':popover-open');
|
|
13492
|
+
}
|
|
13493
|
+
catch {
|
|
13494
|
+
return false;
|
|
13495
|
+
} };
|
|
13496
|
+
const isTyping = (el) => !!el && (el.matches('input, textarea, select, [contenteditable=""], [contenteditable="true"]'));
|
|
13497
|
+
class PopupRuntime {
|
|
13498
|
+
constructor(root, options) {
|
|
13499
|
+
this.root = root;
|
|
13500
|
+
this.options = options;
|
|
13501
|
+
this.cleanups = [];
|
|
13502
|
+
this.pageMemory = new Map();
|
|
13503
|
+
this.opened = new Set();
|
|
13504
|
+
this.pending = [];
|
|
13505
|
+
this.clock = null;
|
|
13506
|
+
this.timer = null;
|
|
13507
|
+
this.arrivedThisView = false;
|
|
13508
|
+
this.returnFocus = null;
|
|
13509
|
+
this.destroyed = false;
|
|
13510
|
+
this.doc = root instanceof Document ? root : root.ownerDocument;
|
|
13511
|
+
this.win = this.doc.defaultView;
|
|
13512
|
+
}
|
|
13513
|
+
/** Find the popups, prepare them closed, and start waiting for a turn. */
|
|
13514
|
+
start() {
|
|
13515
|
+
const dialogs = Array.from(this.root.querySelectorAll(POPUP_SELECTOR));
|
|
13516
|
+
const finePointer = !!this.win?.matchMedia?.(FINE_POINTER_QUERY).matches;
|
|
13517
|
+
const words = popupWords(this.options.lang ?? this.doc.documentElement.lang);
|
|
13518
|
+
for (const dialog of dialogs) {
|
|
13519
|
+
const get = popupAttributeGetter(dialog);
|
|
13520
|
+
const id = popupIdOf(dialog);
|
|
13521
|
+
if (!id)
|
|
13522
|
+
continue;
|
|
13523
|
+
this.prepare(dialog, words.close);
|
|
13524
|
+
const plan = planPopupArrival(get, { finePointer });
|
|
13525
|
+
if (plan.trigger === ArrivalTrigger.Never)
|
|
13526
|
+
continue;
|
|
13527
|
+
if (popupDue(get, this.readMemory(dialog), this.now()) !== null)
|
|
13528
|
+
continue;
|
|
13529
|
+
this.pending.push({ id, dialog, plan });
|
|
13530
|
+
}
|
|
13531
|
+
// Page popups first, then the globals — the engine renders the globals around the page, so order by place: a popup
|
|
13532
|
+
// inside the page's own content wins (§4b step 6), then document order.
|
|
13533
|
+
this.pending.sort((a, b) => Number(this.isGlobal(a.dialog)) - Number(this.isGlobal(b.dialog)));
|
|
13534
|
+
this.listen();
|
|
13535
|
+
this.tick();
|
|
13536
|
+
}
|
|
13537
|
+
/** Ask the planner again now (the engine calls it when the consent banner is answered or an overlay closes). */
|
|
13538
|
+
refresh() { this.tick(); }
|
|
13539
|
+
/** Stop everything; open popups are left as they are. */
|
|
13540
|
+
destroy() {
|
|
13541
|
+
this.destroyed = true;
|
|
13542
|
+
if (this.timer !== null)
|
|
13543
|
+
clearInterval(this.timer);
|
|
13544
|
+
this.timer = null;
|
|
13545
|
+
for (const fn of this.cleanups.splice(0))
|
|
13546
|
+
fn();
|
|
13547
|
+
}
|
|
13548
|
+
/** Close a popup as the visitor would (the ✕), writing its memory. */
|
|
13549
|
+
close(dialog, acted = false) {
|
|
13550
|
+
this.remember(dialog, acted);
|
|
13551
|
+
return this.hide(dialog);
|
|
13552
|
+
}
|
|
13553
|
+
// ── preparation ──────────────────────────────────────────────────────────────────────────────────────────────────
|
|
13554
|
+
prepare(dialog, closeWord) {
|
|
13555
|
+
const get = popupAttributeGetter(dialog);
|
|
13556
|
+
const nonModal = dialog.hasAttribute(PopupAttribute.NonModal) || popupFormOn(get, { phone: this.phone() }) !== PopupForm.Centred;
|
|
13557
|
+
if (nonModal && canPopover(dialog) && !dialog.open)
|
|
13558
|
+
dialog.setAttribute('popover', 'manual');
|
|
13559
|
+
dialog.setAttribute('aria-modal', String(!nonModal));
|
|
13560
|
+
const title = dialog.querySelector('.iox-role-popup-title');
|
|
13561
|
+
if (title) {
|
|
13562
|
+
if (!title.id)
|
|
13563
|
+
title.id = `${dialog.id || 'iox-popup'}-title`;
|
|
13564
|
+
dialog.setAttribute('aria-labelledby', title.id);
|
|
13565
|
+
}
|
|
13566
|
+
dialog.querySelector(CLOSE_SELECTOR)?.setAttribute('aria-label', closeWord);
|
|
13567
|
+
dialog.style.setProperty(POPUP_SCALE_PROPERTY, String(popupMotionScale(this.options.animate)));
|
|
13568
|
+
dialog.toggleAttribute(POPUP_STILL_ATTRIBUTE, popupFadesOnly(this.options.animate));
|
|
13569
|
+
// The ✕ is the popup's own (an engine close handler bubbling from it would call close() on a popover — a no-op).
|
|
13570
|
+
const onClick = (e) => {
|
|
13571
|
+
const target = e.target;
|
|
13572
|
+
if (target?.closest(CLOSE_SELECTOR)) {
|
|
13573
|
+
e.stopPropagation();
|
|
13574
|
+
void this.close(dialog);
|
|
13575
|
+
return;
|
|
13576
|
+
}
|
|
13577
|
+
// Following its link is acting on it (never asked again until the owner changes it).
|
|
13578
|
+
if (target?.closest('a[href]'))
|
|
13579
|
+
this.remember(dialog, true);
|
|
13580
|
+
};
|
|
13581
|
+
const onSubmit = () => this.remember(dialog, true);
|
|
13582
|
+
// A modal's Esc and a click on its scrim (`closeOnBackdrop`) end in `close` — a close, remembered.
|
|
13583
|
+
const onCancel = (e) => { e.preventDefault(); void this.close(dialog); };
|
|
13584
|
+
const onBackdrop = (e) => { if (e.target === dialog && dialog.open && !nonModal)
|
|
13585
|
+
void this.close(dialog); };
|
|
13586
|
+
dialog.addEventListener('click', onClick, true);
|
|
13587
|
+
dialog.addEventListener('submit', onSubmit, true);
|
|
13588
|
+
dialog.addEventListener('cancel', onCancel);
|
|
13589
|
+
dialog.addEventListener('click', onBackdrop);
|
|
13590
|
+
this.cleanups.push(() => {
|
|
13591
|
+
dialog.removeEventListener('click', onClick, true);
|
|
13592
|
+
dialog.removeEventListener('submit', onSubmit, true);
|
|
13593
|
+
dialog.removeEventListener('cancel', onCancel);
|
|
13594
|
+
dialog.removeEventListener('click', onBackdrop);
|
|
13595
|
+
});
|
|
13596
|
+
}
|
|
13597
|
+
isGlobal(dialog) {
|
|
13598
|
+
return this.options.isGlobal?.(dialog) ?? !!dialog.closest('[data-iox-global]');
|
|
13599
|
+
}
|
|
13600
|
+
phone() {
|
|
13601
|
+
return !!this.win?.matchMedia?.(PHONE_QUERY).matches;
|
|
13602
|
+
}
|
|
13603
|
+
now() {
|
|
13604
|
+
return this.options.now?.() ?? new Date();
|
|
13605
|
+
}
|
|
13606
|
+
scrollY() {
|
|
13607
|
+
return this.options.scrollY?.() ?? this.win?.scrollY ?? 0;
|
|
13608
|
+
}
|
|
13609
|
+
// ── the clock ────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
13610
|
+
listen() {
|
|
13611
|
+
const on = (target, type, fn, opts) => {
|
|
13612
|
+
if (!target)
|
|
13613
|
+
return;
|
|
13614
|
+
target.addEventListener(type, fn, opts);
|
|
13615
|
+
this.cleanups.push(() => target.removeEventListener(type, fn, opts));
|
|
13616
|
+
};
|
|
13617
|
+
const input = () => { if (this.clock)
|
|
13618
|
+
this.clock.userInput = true; };
|
|
13619
|
+
for (const type of ['wheel', 'touchmove', 'pointerdown'])
|
|
13620
|
+
on(this.win, type, input, { passive: true });
|
|
13621
|
+
on(this.win, 'keydown', e => { if (SCROLL_KEYS.has(e.key))
|
|
13622
|
+
input(); this.onKey(e); });
|
|
13623
|
+
on(this.win, 'scroll', () => this.onScroll(), { passive: true });
|
|
13624
|
+
if (this.pending.length)
|
|
13625
|
+
this.timer = setInterval(() => this.tick(TICK_MS), TICK_MS);
|
|
13626
|
+
}
|
|
13627
|
+
onScroll() {
|
|
13628
|
+
const c = this.clock;
|
|
13629
|
+
if (!c || !c.userInput)
|
|
13630
|
+
return;
|
|
13631
|
+
c.scrolledPx = Math.max(c.scrolledPx, Math.abs(this.scrollY() - c.baselineY));
|
|
13632
|
+
this.tick();
|
|
13633
|
+
}
|
|
13634
|
+
onKey(e) {
|
|
13635
|
+
if (e.key !== 'Escape')
|
|
13636
|
+
return;
|
|
13637
|
+
const active = this.doc.activeElement;
|
|
13638
|
+
for (const dialog of this.openPopups()) {
|
|
13639
|
+
if (dialog.open && dialog.getAttribute('aria-modal') === 'true')
|
|
13640
|
+
continue; // a modal's Esc is its `cancel`
|
|
13641
|
+
const inside = !!active && dialog.contains(active);
|
|
13642
|
+
const onPage = !active || active === this.doc.body;
|
|
13643
|
+
if ((inside && !isTyping(active)) || onPage) {
|
|
13644
|
+
void this.close(dialog);
|
|
13645
|
+
return;
|
|
13646
|
+
}
|
|
13647
|
+
}
|
|
13648
|
+
}
|
|
13649
|
+
tick(elapsedMs = 0) {
|
|
13650
|
+
if (this.destroyed)
|
|
13651
|
+
return;
|
|
13652
|
+
const state = this.options.overlayState?.() ?? this.defaultOverlayState();
|
|
13653
|
+
const turn = overlayTurn({
|
|
13654
|
+
...state,
|
|
13655
|
+
quietRoute: isQuietRoute(this.options.route),
|
|
13656
|
+
popupArrivedThisView: this.arrivedThisView,
|
|
13657
|
+
due: this.pending.map(p => p.id),
|
|
13658
|
+
});
|
|
13659
|
+
const id = popupOfTurn(turn);
|
|
13660
|
+
if (!id) {
|
|
13661
|
+
this.clock = null;
|
|
13662
|
+
return;
|
|
13663
|
+
}
|
|
13664
|
+
if (this.clock?.id !== id) {
|
|
13665
|
+
// The turn starts NOW: time counts from here, a scroll must come after it.
|
|
13666
|
+
this.clock = { id, baselineY: this.scrollY(), scrolledPx: 0, visibleMs: 0, userInput: false };
|
|
13667
|
+
elapsedMs = 0;
|
|
13668
|
+
}
|
|
13669
|
+
if (this.doc.visibilityState !== 'hidden')
|
|
13670
|
+
this.clock.visibleMs += elapsedMs;
|
|
13671
|
+
const p = this.pending.find(x => x.id === id);
|
|
13672
|
+
const fired = arrivalFired(p.plan, {
|
|
13673
|
+
scrolledPx: this.clock.scrolledPx, scrollY: this.scrollY(),
|
|
13674
|
+
viewportHeight: this.win?.innerHeight ?? 0, pageHeight: this.doc.documentElement.scrollHeight,
|
|
13675
|
+
visibleSeconds: this.clock.visibleMs / 1000,
|
|
13676
|
+
});
|
|
13677
|
+
if (fired)
|
|
13678
|
+
this.arrive(p);
|
|
13679
|
+
}
|
|
13680
|
+
defaultOverlayState() {
|
|
13681
|
+
const other = Array.from(this.doc.querySelectorAll('dialog[open]')).some(d => !d.hasAttribute(PopupAttribute.Kind));
|
|
13682
|
+
return { preloaderShowing: false, consentOwed: false, otherOverlayOpen: other };
|
|
13683
|
+
}
|
|
13684
|
+
// ── arriving and leaving ─────────────────────────────────────────────────────────────────────────────────────────
|
|
13685
|
+
arrive(p) {
|
|
13686
|
+
this.pending = this.pending.filter(x => x !== p);
|
|
13687
|
+
this.arrivedThisView = true; // one popup per page view (PU-D8)
|
|
13688
|
+
this.clock = null;
|
|
13689
|
+
if (!this.pending.length && this.timer !== null) {
|
|
13690
|
+
clearInterval(this.timer);
|
|
13691
|
+
this.timer = null;
|
|
13692
|
+
}
|
|
13693
|
+
this.show(p.dialog);
|
|
13694
|
+
}
|
|
13695
|
+
show(dialog) {
|
|
13696
|
+
dialog.setAttribute(POPUP_OPEN_ATTRIBUTE, '');
|
|
13697
|
+
this.opened.add(popupIdOf(dialog));
|
|
13698
|
+
if (dialog.getAttribute('aria-modal') === 'true') {
|
|
13699
|
+
this.returnFocus = this.doc.activeElement;
|
|
13700
|
+
if (!dialog.open)
|
|
13701
|
+
dialog.showModal();
|
|
13702
|
+
if (!focusDialogSheet(dialog)) {
|
|
13703
|
+
dialog.setAttribute('tabindex', '-1');
|
|
13704
|
+
dialog.focus({ preventScroll: true });
|
|
13705
|
+
}
|
|
13706
|
+
return;
|
|
13707
|
+
}
|
|
13708
|
+
// Non-modal: focus stays where the visitor is (R-H7); the title is said once.
|
|
13709
|
+
if (dialog.hasAttribute('popover') && canPopover(dialog)) {
|
|
13710
|
+
try {
|
|
13711
|
+
dialog.showPopover();
|
|
13712
|
+
}
|
|
13713
|
+
catch { /* not connected */ }
|
|
13714
|
+
}
|
|
13715
|
+
else if (!dialog.open)
|
|
13716
|
+
dialog.show();
|
|
13717
|
+
this.announce(dialog);
|
|
13718
|
+
}
|
|
13719
|
+
async hide(dialog) {
|
|
13720
|
+
const modal = dialog.getAttribute('aria-modal') === 'true';
|
|
13721
|
+
if (!dialog.open && !popoverOpen(dialog))
|
|
13722
|
+
return;
|
|
13723
|
+
if (isExiting(dialog))
|
|
13724
|
+
return;
|
|
13725
|
+
const finish = await runExitMotion(dialog, { animate: motionAllowed(this.win) });
|
|
13726
|
+
if (!finish)
|
|
13727
|
+
return; // opened again meanwhile — it stays
|
|
13728
|
+
if (popoverOpen(dialog)) {
|
|
13729
|
+
try {
|
|
13730
|
+
dialog.hidePopover();
|
|
13731
|
+
}
|
|
13732
|
+
catch { /* gone */ }
|
|
13733
|
+
}
|
|
13734
|
+
if (dialog.open)
|
|
13735
|
+
dialog.close();
|
|
13736
|
+
cancelExit(dialog);
|
|
13737
|
+
dialog.removeAttribute(POPUP_OPEN_ATTRIBUTE);
|
|
13738
|
+
if (modal) {
|
|
13739
|
+
this.returnFocus?.focus?.({ preventScroll: true });
|
|
13740
|
+
this.returnFocus = null;
|
|
13741
|
+
}
|
|
13742
|
+
}
|
|
13743
|
+
openPopups() {
|
|
13744
|
+
return Array.from(this.root.querySelectorAll(`${POPUP_SELECTOR}[${POPUP_OPEN_ATTRIBUTE}]`));
|
|
13745
|
+
}
|
|
13746
|
+
announce(dialog) {
|
|
13747
|
+
const labelledBy = dialog.getAttribute('aria-labelledby');
|
|
13748
|
+
const words = (labelledBy ? this.doc.getElementById(labelledBy)?.textContent?.trim() : '') || dialog.getAttribute('aria-label') || '';
|
|
13749
|
+
if (!words)
|
|
13750
|
+
return;
|
|
13751
|
+
let region = this.doc.querySelector(`[${POPUP_ANNOUNCE_ATTRIBUTE}]`);
|
|
13752
|
+
if (!region) {
|
|
13753
|
+
region = this.doc.createElement('div');
|
|
13754
|
+
region.setAttribute(POPUP_ANNOUNCE_ATTRIBUTE, '');
|
|
13755
|
+
region.setAttribute('role', 'status');
|
|
13756
|
+
region.setAttribute('aria-live', 'polite');
|
|
13757
|
+
region.setAttribute('data-iox-chrome', '');
|
|
13758
|
+
// Heard, never seen (the classic visually-hidden box — no class to depend on).
|
|
13759
|
+
region.style.cssText = 'position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;';
|
|
13760
|
+
this.doc.body.appendChild(region);
|
|
13761
|
+
}
|
|
13762
|
+
region.textContent = words;
|
|
13763
|
+
}
|
|
13764
|
+
// ── memory ───────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
13765
|
+
store(dialog) {
|
|
13766
|
+
const kind = popupMemoryStore(dialog.getAttribute(PopupAttribute.Again));
|
|
13767
|
+
const pick = (which) => {
|
|
13768
|
+
const injected = which === PopupMemoryStore.Local ? this.options.storage?.local : this.options.storage?.session;
|
|
13769
|
+
if (injected !== undefined)
|
|
13770
|
+
return injected;
|
|
13771
|
+
try {
|
|
13772
|
+
return which === PopupMemoryStore.Local ? this.win?.localStorage ?? null : this.win?.sessionStorage ?? null;
|
|
13773
|
+
}
|
|
13774
|
+
catch {
|
|
13775
|
+
return null;
|
|
13776
|
+
}
|
|
13777
|
+
};
|
|
13778
|
+
return pick(kind) ?? (kind === PopupMemoryStore.Local ? pick(PopupMemoryStore.Session) : null);
|
|
13779
|
+
}
|
|
13780
|
+
key(dialog) {
|
|
13781
|
+
return popupMemoryKey(this.options.scope, popupIdOf(dialog));
|
|
13782
|
+
}
|
|
13783
|
+
readMemory(dialog) {
|
|
13784
|
+
const key = this.key(dialog);
|
|
13785
|
+
let raw = this.pageMemory.get(key) ?? null;
|
|
13786
|
+
try {
|
|
13787
|
+
raw = this.store(dialog)?.getItem(key) ?? raw;
|
|
13788
|
+
}
|
|
13789
|
+
catch { /* refused: this page view's memory */ }
|
|
13790
|
+
return decodePopupMemory(raw);
|
|
13791
|
+
}
|
|
13792
|
+
remember(dialog, acted) {
|
|
13793
|
+
const get = popupAttributeGetter(dialog);
|
|
13794
|
+
const previous = this.readMemory(dialog);
|
|
13795
|
+
const value = encodePopupMemory({ v: popupVersionOf(get), closedAt: this.now().getTime(), acted: acted || !!previous?.acted });
|
|
13796
|
+
const key = this.key(dialog);
|
|
13797
|
+
this.pageMemory.set(key, value);
|
|
13798
|
+
try {
|
|
13799
|
+
this.store(dialog)?.setItem(key, value);
|
|
13800
|
+
}
|
|
13801
|
+
catch { /* quota / refused: this page view remembers */ }
|
|
13802
|
+
}
|
|
13803
|
+
}
|
|
13804
|
+
|
|
13432
13805
|
/*
|
|
13433
13806
|
* Public API Surface of iox-ui
|
|
13434
13807
|
*/
|
|
@@ -13437,5 +13810,5 @@ function attachTooltips(root, options = {}) {
|
|
|
13437
13810
|
* Generated bundle index. Do not edit.
|
|
13438
13811
|
*/
|
|
13439
13812
|
|
|
13440
|
-
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, 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_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, 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, 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, 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, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, 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_CLOSE_WORDS, 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, 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, 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, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, 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, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, 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, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
13813
|
+
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, 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_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, 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, 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, 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_CLOSE_WORDS, 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, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover$1 as canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, 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, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, gateHoverRule, getSeoValue, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerShouldHide, hideFromTopLayer, hidingHeadersIn, 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, 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, toastCloseWord, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
13441
13814
|
//# sourceMappingURL=vectoriox-iox-ui.mjs.map
|