@vectoriox/iox-ui 5.194.0 → 5.196.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 +1 -0
- package/commerce-core/index.d.ts +0 -1
- package/composite-core/index.d.ts +39 -12
- package/design-core/index.d.ts +396 -9
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +1 -0
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +0 -2
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +89 -36
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +864 -335
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +885 -513
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +221 -2
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs +11 -5
- package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +83 -31
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +322 -95
- package/harness-core/index.d.ts +165 -3
- package/identity-core/index.d.ts +8 -1
- package/index.d.ts +30 -8
- package/package.json +1 -1
- package/src/actions-core/public-api.ts +3 -0
- package/src/commerce-core/shop-display.ts +0 -2
- package/src/composite-core/account-runtime.ts +2 -2
- package/src/composite-core/header.ts +23 -1
- package/src/composite-core/lightbox.ts +27 -8
- package/src/composite-core/shop.ts +45 -28
- package/src/design-core/close-word.ts +18 -0
- package/src/design-core/contrast-audit.ts +62 -14
- package/src/design-core/flavor-spec.generated.ts +275 -1
- package/src/design-core/header-behaviour.ts +172 -3
- package/src/design-core/locale-direction.ts +17 -0
- package/src/design-core/node-classes.ts +9 -2
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/token-css.ts +62 -3
- package/src/generation-core/audit-site.ts +26 -5
- package/src/generation-core/audit-words.ts +8 -0
- package/src/generation-core/compose-site.ts +28 -10
- package/src/generation-core/header-mix.ts +165 -12
- package/src/generation-core/import-plan.ts +41 -0
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-spec.generated.ts +41 -9
- package/src/generation-core/stock-photos.ts +23 -4
- package/src/generation-core/stock-search.ts +235 -0
- package/src/harness-core/business-types.ts +11 -0
- package/src/harness-core/harness-spec.generated.ts +213 -0
- package/src/harness-core/run-compose-context.ts +9 -3
- package/src/identity-core/site-auth-transport.ts +11 -4
- package/styles/iox-design.css +148 -6
|
@@ -6,14 +6,14 @@ import { Subject, fromEvent } from 'rxjs';
|
|
|
6
6
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule, isPlatformBrowser } from '@angular/common';
|
|
9
|
-
import { SPEC_AXES, resolveDesignMotion, FILTER_FUNCTIONS, BACKDROP_FUNCTIONS, decomposeCssFunctions, languageOf, FieldClass, HeaderAttribute, HeaderBehaviour, HeaderInk, OPENING_ATTRIBUTE, schemeOfClasses, schemeUnderBar, BRAND_NAME_ATTRIBUTE, BAR_ATTRIBUTE, BAR_NAME_ATTRIBUTE, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, BRAND_ROLE, brandNameAttributes, NAV_ROLE, navBarAttributes, 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';
|
|
9
|
+
import { SPEC_AXES, resolveDesignMotion, FILTER_FUNCTIONS, BACKDROP_FUNCTIONS, decomposeCssFunctions, languageOf, FieldClass, HeaderAttribute, HeaderBehaviour, HEADER_HEIGHT_VAR, HeaderInk, OPENING_ATTRIBUTE, schemeOfClasses, schemeUnderBar, BRAND_NAME_ATTRIBUTE, BAR_ATTRIBUTE, BAR_NAME_ATTRIBUTE, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, BRAND_ROLE, brandNameAttributes, NAV_ROLE, navBarAttributes, 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
11
|
import { setPageScroller, pageScroller, SceneAttribute, SCENE_WAKE_EVENT, SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, playTextReveal, textRevealByOf, textRevealLookOf, textRevealStaggerOf, 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';
|
|
12
12
|
import Lenis from 'lenis';
|
|
13
13
|
import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouselA11y, attachSliderBar, isSliderPart, SceneRole, 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, DISSOLVE_ACTION, 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';
|
|
16
|
+
import { closeWord, runExitMotion, isExiting, popoverOpenersSelector, OpenerAttribute, cancelExit, POPOVER_NODE_TYPE, dialogOpenerAttributes, popoverOpenerAttributes, popoverDomId, dialogDomId, COUNT_UP_TRIGGERS, DISSOLVE_ACTION, 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';
|
|
@@ -5912,6 +5912,15 @@ function dateHtml(p, options, describedBy) {
|
|
|
5912
5912
|
* disagree. See iox-ai-guidance `architecture/builder/forms-and-inputs-plan.md` §5.
|
|
5913
5913
|
*/
|
|
5914
5914
|
|
|
5915
|
+
/**
|
|
5916
|
+
* The page's language for a form part: the nearest `lang` (the builder canvas's site scope, the engine's `<html>`), else
|
|
5917
|
+
* the document's. ONE reading for every form word the page's language picks — the submit button's Sending / Sent, the
|
|
5918
|
+
* toast, the failure announcement (iox-ui#158, #161) — on the component path and the string path alike.
|
|
5919
|
+
*/
|
|
5920
|
+
function pageLanguageOf(element) {
|
|
5921
|
+
return element?.closest?.('[lang]')?.getAttribute('lang') ?? element?.ownerDocument?.documentElement?.lang;
|
|
5922
|
+
}
|
|
5923
|
+
|
|
5915
5924
|
/**
|
|
5916
5925
|
* placeFloating — where a panel anchored to a control goes (premium components N8; M5's tooltip and popover).
|
|
5917
5926
|
*
|
|
@@ -6161,13 +6170,6 @@ const TOAST_MS_PER_CHAR = 60;
|
|
|
6161
6170
|
const DESIGN_MARKER$1 = '.iox-es';
|
|
6162
6171
|
const SVG_NS = 'http://www.w3.org/2000/svg';
|
|
6163
6172
|
const CLOSE_PATH = 'M6 6l12 12M18 6L6 18';
|
|
6164
|
-
/** The close control's words in the page's language. */
|
|
6165
|
-
const TOAST_CLOSE_WORDS = Object.freeze({ en: 'Close', he: 'סגירה' });
|
|
6166
|
-
/** "Close" in `lang` (its base language), else English. */
|
|
6167
|
-
function toastCloseWord(lang) {
|
|
6168
|
-
const base = String(lang ?? '').toLowerCase().split(/[-_]/)[0];
|
|
6169
|
-
return TOAST_CLOSE_WORDS[base] ?? TOAST_CLOSE_WORDS['en'];
|
|
6170
|
-
}
|
|
6171
6173
|
/** How long a toast stays: long enough to read, within bounds. Pure. */
|
|
6172
6174
|
function toastDuration(text, override) {
|
|
6173
6175
|
if (typeof override === 'number' && Number.isFinite(override) && override > 0)
|
|
@@ -6288,7 +6290,7 @@ class ToastStack {
|
|
|
6288
6290
|
const close = doc.createElement('button');
|
|
6289
6291
|
close.type = 'button';
|
|
6290
6292
|
close.className = ToastClass.Close;
|
|
6291
|
-
const name =
|
|
6293
|
+
const name = closeWord(options.lang ?? pageLanguageOf(options.from) ?? doc.documentElement.lang);
|
|
6292
6294
|
close.setAttribute('aria-label', name);
|
|
6293
6295
|
close.title = name;
|
|
6294
6296
|
close.appendChild(closeIcon(doc));
|
|
@@ -6446,15 +6448,6 @@ function showToastDesign(doc, text, show, options = {}) {
|
|
|
6446
6448
|
stackOf(layer, toastEdge(options.edge)).stack.add(String(text ?? '').trim() || ' ', options, true);
|
|
6447
6449
|
}
|
|
6448
6450
|
|
|
6449
|
-
/**
|
|
6450
|
-
* The page's language for a form part: the nearest `lang` (the builder canvas's site scope, the engine's `<html>`), else
|
|
6451
|
-
* the document's. ONE reading for every form word the page's language picks — the submit button's Sending / Sent, the
|
|
6452
|
-
* toast, the failure announcement (iox-ui#158, #161) — on the component path and the string path alike.
|
|
6453
|
-
*/
|
|
6454
|
-
function pageLanguageOf(element) {
|
|
6455
|
-
return element?.closest?.('[lang]')?.getAttribute('lang') ?? element?.ownerDocument?.documentElement?.lang;
|
|
6456
|
-
}
|
|
6457
|
-
|
|
6458
6451
|
/**
|
|
6459
6452
|
* A form that KEEPS its fields after sending says so in a toast (premium M5, N3 — the Form's After sending ▸ "Keep the
|
|
6460
6453
|
* fields and show a toast"). Its words are the form's own Sent words — the ones its submit button shows once it has sent
|
|
@@ -8165,11 +8158,13 @@ const isOff = (v) => v === false || v === 'false';
|
|
|
8165
8158
|
* Directive-host: the `<dialog>` IS the host, carrying exactly the markup the string renderer
|
|
8166
8159
|
* writes (`data-iox-dialog`, the opt-in backdrop-close / consent-role / placement attributes and
|
|
8167
8160
|
* the close X), so the runtime's dialog actions, the consent prompt and `styles.scss` treat both
|
|
8168
|
-
* paths alike. Ships CLOSED — only the dialog actions open it.
|
|
8161
|
+
* paths alike. Ships CLOSED — only the dialog actions open it. The close X is named in the PAGE's language (actions-core
|
|
8162
|
+
* `closeWord`, the word the string path writes too — iox-ui#167). Before this existed, a page holding
|
|
8169
8163
|
* a Dialog fell back to the string renderer wholesale.
|
|
8170
8164
|
*/
|
|
8171
8165
|
class IoxDialogComponent {
|
|
8172
|
-
constructor() {
|
|
8166
|
+
constructor(host) {
|
|
8167
|
+
this.host = host;
|
|
8173
8168
|
this.nodeId = '';
|
|
8174
8169
|
this.placement = 'center';
|
|
8175
8170
|
this.closeOnBackdrop = true;
|
|
@@ -8179,20 +8174,24 @@ class IoxDialogComponent {
|
|
|
8179
8174
|
get backdropCloses() { return !isOff(this.closeOnBackdrop); }
|
|
8180
8175
|
get closeButtonShown() { return !isOff(this.showCloseButton); }
|
|
8181
8176
|
get consentRoleOn() { return isOn(this.consentRole); }
|
|
8177
|
+
/** The close X's accessible name: "Close" in the page's language (the nearest `lang`, else the document's). */
|
|
8178
|
+
get closeName() { return closeWord(pageLanguageOf(this.host?.nativeElement)); }
|
|
8182
8179
|
get placementAttr() { return PLACEMENTS.includes(String(this.placement)) ? String(this.placement) : null; }
|
|
8183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IoxDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8184
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: IoxDialogComponent, isStandalone: false, selector: "dialog[iox-dialog]", inputs: { nodeId: "nodeId", placement: "placement", closeOnBackdrop: "closeOnBackdrop", showCloseButton: "showCloseButton", consentRole: "consentRole" }, host: { attributes: { "data-iox-dialog": "" }, properties: { "class": "'iox-node-' + nodeId", "attr.data-iox-dialog-backdrop-close": "backdropCloses ? '' : null", "attr.data-iox-consent-role": "consentRoleOn ? '' : null", "attr.data-iox-dialog-placement": "placementAttr" } }, viewQueries: [{ propertyName: "childrenHost", first: true, predicate: ["childrenHost"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `@if (closeButtonShown) {<button type="button" class="iox-dialog-close" data-iox-dialog-close aria-label="
|
|
8180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IoxDialogComponent, deps: [{ token: i0.ElementRef, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: IoxDialogComponent, isStandalone: false, selector: "dialog[iox-dialog]", inputs: { nodeId: "nodeId", placement: "placement", closeOnBackdrop: "closeOnBackdrop", showCloseButton: "showCloseButton", consentRole: "consentRole" }, host: { attributes: { "data-iox-dialog": "" }, properties: { "class": "'iox-node-' + nodeId", "attr.data-iox-dialog-backdrop-close": "backdropCloses ? '' : null", "attr.data-iox-consent-role": "consentRoleOn ? '' : null", "attr.data-iox-dialog-placement": "placementAttr" } }, viewQueries: [{ propertyName: "childrenHost", first: true, predicate: ["childrenHost"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `@if (closeButtonShown) {<button type="button" class="iox-dialog-close" data-iox-dialog-close [attr.aria-label]="closeName">×</button>}<ng-container #childrenHost></ng-container>`, isInline: true, styles: [":host{box-sizing:border-box}\n"] }); }
|
|
8185
8182
|
}
|
|
8186
8183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IoxDialogComponent, decorators: [{
|
|
8187
8184
|
type: Component,
|
|
8188
|
-
args: [{ selector: 'dialog[iox-dialog]', template: `@if (closeButtonShown) {<button type="button" class="iox-dialog-close" data-iox-dialog-close aria-label="
|
|
8185
|
+
args: [{ selector: 'dialog[iox-dialog]', template: `@if (closeButtonShown) {<button type="button" class="iox-dialog-close" data-iox-dialog-close [attr.aria-label]="closeName">×</button>}<ng-container #childrenHost></ng-container>`, host: {
|
|
8189
8186
|
'[class]': "'iox-node-' + nodeId",
|
|
8190
8187
|
'data-iox-dialog': '',
|
|
8191
8188
|
'[attr.data-iox-dialog-backdrop-close]': "backdropCloses ? '' : null",
|
|
8192
8189
|
'[attr.data-iox-consent-role]': "consentRoleOn ? '' : null",
|
|
8193
8190
|
'[attr.data-iox-dialog-placement]': 'placementAttr',
|
|
8194
8191
|
}, standalone: false, styles: [":host{box-sizing:border-box}\n"] }]
|
|
8195
|
-
}],
|
|
8192
|
+
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
8193
|
+
type: Optional
|
|
8194
|
+
}] }], propDecorators: { nodeId: [{
|
|
8196
8195
|
type: Input
|
|
8197
8196
|
}], placement: [{
|
|
8198
8197
|
type: Input
|
|
@@ -9198,14 +9197,65 @@ function hidingHeadersIn(root) {
|
|
|
9198
9197
|
}
|
|
9199
9198
|
return [...out];
|
|
9200
9199
|
}
|
|
9200
|
+
const GROUND_SELECTOR = `[${HeaderAttribute.Ground}]`;
|
|
9201
|
+
const TOKEN_SCOPE = '.iox-token-scope';
|
|
9202
|
+
/** The headers that stand on a ground (HI3 slice 1: over · over-glass · glass): in `root`, or among `elements`. */
|
|
9203
|
+
function groundHeadersIn(root) {
|
|
9204
|
+
if (typeof root.querySelectorAll === 'function')
|
|
9205
|
+
return Array.from(root.querySelectorAll(GROUND_SELECTOR));
|
|
9206
|
+
const out = new Set();
|
|
9207
|
+
for (const el of root) {
|
|
9208
|
+
if (el.matches?.(GROUND_SELECTOR))
|
|
9209
|
+
out.add(el);
|
|
9210
|
+
el.querySelectorAll?.(GROUND_SELECTOR).forEach(h => out.add(h));
|
|
9211
|
+
}
|
|
9212
|
+
return [...out];
|
|
9213
|
+
}
|
|
9214
|
+
/** Where a header's height is written by default: its token scope (the canvas's globals layer), else the document's root
|
|
9215
|
+
* element (the live site, whose tokens are on `:root` — an inline value there wins over them). */
|
|
9216
|
+
function headerHeightScopeOf(header) {
|
|
9217
|
+
return header.closest?.(TOKEN_SCOPE) ?? header.ownerDocument?.documentElement ?? null;
|
|
9218
|
+
}
|
|
9219
|
+
/**
|
|
9220
|
+
* HI3-D7: keep `--header-h` (`HEADER_HEIGHT_VAR`) on `scopes` equal to the header's layout height (px — a canvas zoom
|
|
9221
|
+
* or a hide's translate never changes it), through ONE ResizeObserver: the header gives that height back over a pictured
|
|
9222
|
+
* opening and the opening's words keep clear of it (iox-design.css). Written at once and only when it changes; the stop
|
|
9223
|
+
* removes it (the raw SSR's fallback — the look's bar height — returns). The builder hands its two scopes (the globals
|
|
9224
|
+
* layer and the page); the live site its root element.
|
|
9225
|
+
*/
|
|
9226
|
+
function watchHeaderHeight(header, scopes) {
|
|
9227
|
+
const targets = (scopes ?? [headerHeightScopeOf(header)]).filter((el) => !!el);
|
|
9228
|
+
let last = '';
|
|
9229
|
+
const write = () => {
|
|
9230
|
+
const value = `${Math.max(0, Math.round(header.offsetHeight))}px`;
|
|
9231
|
+
if (value === last)
|
|
9232
|
+
return;
|
|
9233
|
+
last = value;
|
|
9234
|
+
for (const el of targets)
|
|
9235
|
+
el.style.setProperty(HEADER_HEIGHT_VAR, value);
|
|
9236
|
+
};
|
|
9237
|
+
const view = header.ownerDocument?.defaultView;
|
|
9238
|
+
const observer = view?.ResizeObserver ? new view.ResizeObserver(write) : null;
|
|
9239
|
+
observer?.observe(header);
|
|
9240
|
+
write();
|
|
9241
|
+
return () => {
|
|
9242
|
+
observer?.disconnect();
|
|
9243
|
+
for (const el of targets)
|
|
9244
|
+
el.style.removeProperty(HEADER_HEIGHT_VAR);
|
|
9245
|
+
};
|
|
9246
|
+
}
|
|
9201
9247
|
/**
|
|
9202
9248
|
* The live site's door: every hiding header in `root` (or among `elements`) follows `source` (the window), through ONE
|
|
9203
|
-
* passive listener read once per frame
|
|
9249
|
+
* passive listener read once per frame; every header standing on a ground keeps its height on the page (HI3-D7). Returns
|
|
9250
|
+
* the stop.
|
|
9204
9251
|
*/
|
|
9205
9252
|
function watchHeaders(source, root, options = {}) {
|
|
9253
|
+
const heights = groundHeadersIn(root).map(el => watchHeaderHeight(el));
|
|
9254
|
+
const stopHeights = () => { for (const stop of heights)
|
|
9255
|
+
stop(); };
|
|
9206
9256
|
const runtimes = hidingHeadersIn(root).map(el => new HeaderRuntime(el, options));
|
|
9207
9257
|
if (!runtimes.length)
|
|
9208
|
-
return
|
|
9258
|
+
return stopHeights;
|
|
9209
9259
|
let frame = 0;
|
|
9210
9260
|
const raf = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : (fn) => setTimeout(() => fn(0), 16);
|
|
9211
9261
|
const caf = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : (id) => clearTimeout(id);
|
|
@@ -9225,6 +9275,7 @@ function watchHeaders(source, root, options = {}) {
|
|
|
9225
9275
|
caf(frame);
|
|
9226
9276
|
for (const r of runtimes)
|
|
9227
9277
|
r.destroy();
|
|
9278
|
+
stopHeights();
|
|
9228
9279
|
};
|
|
9229
9280
|
}
|
|
9230
9281
|
|
|
@@ -9387,7 +9438,7 @@ var A11yAttribute;
|
|
|
9387
9438
|
const MANAGED_A11Y_ATTRIBUTES = [
|
|
9388
9439
|
A11yAttribute.Label, A11yAttribute.Hidden, A11yAttribute.Current, A11yAttribute.Id,
|
|
9389
9440
|
'aria-haspopup', 'aria-expanded', 'aria-controls', DIALOG_CLOSE_ABOVE_ATTRIBUTE,
|
|
9390
|
-
HeaderAttribute.Behaviour, HeaderAttribute.Edge, BRAND_NAME_ATTRIBUTE, BAR_ATTRIBUTE, BAR_NAME_ATTRIBUTE, SLIDE_CAPTION_ATTRIBUTE,
|
|
9441
|
+
HeaderAttribute.Behaviour, HeaderAttribute.Edge, HeaderAttribute.Ink, HeaderAttribute.Ground, BRAND_NAME_ATTRIBUTE, BAR_ATTRIBUTE, BAR_NAME_ATTRIBUTE, SLIDE_CAPTION_ATTRIBUTE,
|
|
9391
9442
|
TOOLTIP_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, ...MARQUEE_NODE_ATTRIBUTES, ...MENU_ATTRIBUTES, ...POPUP_ATTRIBUTES,
|
|
9392
9443
|
];
|
|
9393
9444
|
/** The type of a menu button and of the menu's Close (header-ingredients HI2a: its kind — lines · word · dots). */
|
|
@@ -9450,8 +9501,9 @@ function nodeA11yAttributes(node, ctx = {}) {
|
|
|
9450
9501
|
}
|
|
9451
9502
|
if (node.type === MENU_BUTTON_TYPE)
|
|
9452
9503
|
Object.assign(out, menuButtonAttributes((name) => nodeTraitValue(node, name)));
|
|
9453
|
-
// T2 (M4): how a header behaves as the page scrolls — the shared CSS and the header runtime read these.
|
|
9454
|
-
|
|
9504
|
+
// T2 (M4): how a header behaves as the page scrolls — the shared CSS and the header runtime read these. HI3 slice 1:
|
|
9505
|
+
// what it stands on (over · over-glass · glass).
|
|
9506
|
+
Object.assign(out, headerAttributes(nodeTraitValue(node, HeaderTrait.Behaviour), nodeTraitValue(node, HeaderTrait.Edge), nodeTraitValue(node, HeaderTrait.Ink), nodeTraitValue(node, HeaderTrait.Ground)));
|
|
9455
9507
|
if (node.type === SLIDE_TYPE) {
|
|
9456
9508
|
const caption = trimmed$1(nodeTraitValue(node, SLIDE_CAPTION_TRAIT));
|
|
9457
9509
|
if (caption)
|
|
@@ -14323,5 +14375,5 @@ class PopupRuntime {
|
|
|
14323
14375
|
* Generated bundle index. Do not edit.
|
|
14324
14376
|
*/
|
|
14325
14377
|
|
|
14326
|
-
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_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, 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,
|
|
14378
|
+
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_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, 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, 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, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, 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 };
|
|
14327
14379
|
//# sourceMappingURL=vectoriox-iox-ui.mjs.map
|