@vectoriox/iox-ui 5.164.1 → 5.166.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/design-core/index.d.ts +112 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +133 -5
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +516 -95
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +261 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +137 -10
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +25 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +412 -225
- package/harness-core/index.d.ts +192 -1
- package/index.d.ts +5 -1
- package/package.json +1 -1
- package/scene-core/index.d.ts +42 -6
- package/src/design-core/flavor-spec.generated.ts +98 -0
- package/src/design-core/footer-classes.ts +38 -0
- package/src/design-core/node-classes.ts +3 -2
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/carry-fill.ts +1 -1
- package/src/generation-core/check-layout.ts +1 -1
- package/src/generation-core/compose-layout.ts +36 -5
- package/src/generation-core/compose-site.ts +34 -6
- package/src/generation-core/footer-mix.ts +292 -34
- package/src/generation-core/node-baselines.generated.ts +14 -1
- package/src/generation-core/patterns.ts +4 -1
- package/src/generation-core/site-spec.generated.ts +173 -45
- package/src/harness-core/business-types.ts +12 -0
- package/src/harness-core/harness-spec.generated.ts +261 -0
- package/src/scene-core/scene.ts +2 -0
- package/src/scene-core/scroll-driver.ts +121 -5
- package/src/scene-core/split-text.ts +17 -4
- package/styles/iox-design.css +99 -0
|
@@ -8,7 +8,7 @@ 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
|
+
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';
|
|
@@ -9130,8 +9130,9 @@ function watchHeaderInk(source, sections, host, root = host.ownerDocument ?? hos
|
|
|
9130
9130
|
/** The types that are pure decoration to assistive technology (an Icon has no name of its own). */
|
|
9131
9131
|
const DECORATIVE_TYPES = ['Icon'];
|
|
9132
9132
|
/** The parts that are decoration to assistive technology by their role: a drawer's spine repeats its step's own heading
|
|
9133
|
-
* (AW9 `drawers`), so it is read once
|
|
9134
|
-
|
|
9133
|
+
* (AW9 `drawers`), so it is read once; a footer's gradient or embossed closing name is a copy of the name the footer's
|
|
9134
|
+
* brand block says (AW12-D12, generation-core `FooterRole.NameCopy`). */
|
|
9135
|
+
const DECORATIVE_ROLES = [SceneRole.DrawerSpine, 'footer.name-copy'];
|
|
9135
9136
|
const DIALOG_NODE_TYPE = 'Dialog';
|
|
9136
9137
|
/** Named for assistive technology, but never an icon-only CONTROL the audit should flag: a Dialog, a carousel. */
|
|
9137
9138
|
const NAME_NOT_REQUIRED_TYPES = [DIALOG_NODE_TYPE, POPOVER_NODE_TYPE, 'SliderContainer'];
|
|
@@ -9829,7 +9830,7 @@ function animateAction(el, action, frames, timing, options = {}) {
|
|
|
9829
9830
|
return count ?? tagged(el.animate([], { duration: 0 }));
|
|
9830
9831
|
}
|
|
9831
9832
|
if (action.type === RevealActionType.Text && !options.reverse) {
|
|
9832
|
-
const reveal = playTextReveal(el, textRevealByOf(action.params?.['by']), timing, textRevealLookOf(action.params?.['look']));
|
|
9833
|
+
const reveal = playTextReveal(el, textRevealByOf(action.params?.['by']), timing, textRevealLookOf(action.params?.['look']), textRevealStaggerOf(action.params?.['stagger']));
|
|
9833
9834
|
if (reveal)
|
|
9834
9835
|
return reveal;
|
|
9835
9836
|
}
|
|
@@ -13652,6 +13653,8 @@ class PopupRuntime {
|
|
|
13652
13653
|
tick(elapsedMs = 0) {
|
|
13653
13654
|
if (this.destroyed)
|
|
13654
13655
|
return;
|
|
13656
|
+
// A popup the visitor opened from a button (§9: that opening is their own), or closed after it, waits no more.
|
|
13657
|
+
this.pending = this.pending.filter(p => !this.showing(p.dialog) && popupDue(popupAttributeGetter(p.dialog), this.readMemory(p.dialog), this.now()) === null);
|
|
13655
13658
|
const state = this.options.overlayState?.() ?? this.defaultOverlayState();
|
|
13656
13659
|
const turn = overlayTurn({
|
|
13657
13660
|
...state,
|
|
@@ -13708,7 +13711,10 @@ class PopupRuntime {
|
|
|
13708
13711
|
}
|
|
13709
13712
|
return;
|
|
13710
13713
|
}
|
|
13711
|
-
// Non-modal: focus stays where the visitor is (R-H7); the title is said once.
|
|
13714
|
+
// Non-modal: focus stays where the visitor is (R-H7); the title is said once. ⚠️ `showPopover()` on a `<dialog>` runs
|
|
13715
|
+
// the DIALOG focusing steps (HTML "popover focusing steps"), as `show()` does — focus would jump to the ✕, so it is
|
|
13716
|
+
// put back.
|
|
13717
|
+
const before = this.doc.activeElement;
|
|
13712
13718
|
if (dialog.hasAttribute('popover') && canPopover(dialog)) {
|
|
13713
13719
|
try {
|
|
13714
13720
|
dialog.showPopover();
|
|
@@ -13717,6 +13723,7 @@ class PopupRuntime {
|
|
|
13717
13723
|
}
|
|
13718
13724
|
else if (!dialog.open)
|
|
13719
13725
|
dialog.show();
|
|
13726
|
+
this.keepFocus(before);
|
|
13720
13727
|
this.announce(dialog);
|
|
13721
13728
|
}
|
|
13722
13729
|
async hide(dialog) {
|
|
@@ -13743,6 +13750,19 @@ class PopupRuntime {
|
|
|
13743
13750
|
this.returnFocus = null;
|
|
13744
13751
|
}
|
|
13745
13752
|
}
|
|
13753
|
+
/** Focus back where it was before a non-modal open (nothing happens when it did not move). */
|
|
13754
|
+
keepFocus(before) {
|
|
13755
|
+
if (this.doc.activeElement === before)
|
|
13756
|
+
return;
|
|
13757
|
+
const view = this.win;
|
|
13758
|
+
if (before && view && before instanceof view.HTMLElement && before !== this.doc.body && before.isConnected)
|
|
13759
|
+
before.focus({ preventScroll: true });
|
|
13760
|
+
else
|
|
13761
|
+
this.doc.activeElement?.blur?.();
|
|
13762
|
+
}
|
|
13763
|
+
showing(dialog) {
|
|
13764
|
+
return dialog.open || popoverOpen(dialog);
|
|
13765
|
+
}
|
|
13746
13766
|
openPopups() {
|
|
13747
13767
|
return Array.from(this.root.querySelectorAll(`${POPUP_SELECTOR}[${POPUP_OPEN_ATTRIBUTE}]`));
|
|
13748
13768
|
}
|