@vectoriox/iox-ui 5.125.0 → 5.127.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 +74 -2
- package/design-core/index.d.ts +148 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +64 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +191 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +3435 -158
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +482 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +8 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +2982 -178
- package/harness-core/index.d.ts +270 -0
- package/package.json +1 -1
- package/src/actions-core/public-api.ts +1 -0
- package/src/actions-core/reveal-origin.ts +102 -0
- package/src/design-core/flavor-spec.generated.ts +47 -0
- package/src/design-core/menu-look.ts +157 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/check-list.ts +28 -9
- package/src/generation-core/compose-site.ts +10 -5
- package/src/generation-core/footer-mix.ts +67 -8
- package/src/generation-core/header-mix.ts +38 -4
- package/src/generation-core/layout-language.ts +18 -0
- package/src/generation-core/nav-shape.ts +80 -1
- package/src/generation-core/site-spec.generated.ts +3117 -39
- package/src/harness-core/harness-spec.generated.ts +482 -0
- package/styles/iox-design.css +374 -2
|
@@ -6,7 +6,7 @@ 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, FieldClass, HeaderAttribute, HeaderBehaviour, headerAttributes, HeaderTrait, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
9
|
+
import { SPEC_AXES, resolveDesignMotion, FieldClass, HeaderAttribute, HeaderBehaviour, MENU_ATTRIBUTES, menuDialogAttributes, menuButtonAttributes, headerAttributes, HeaderTrait, writeFieldError } from '@vectoriox/iox-ui/design-core';
|
|
10
10
|
export * from '@vectoriox/iox-ui/design-core';
|
|
11
11
|
import Lenis from 'lenis';
|
|
12
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';
|
|
@@ -8891,8 +8891,10 @@ const MANAGED_A11Y_ATTRIBUTES = [
|
|
|
8891
8891
|
A11yAttribute.Label, A11yAttribute.Hidden, A11yAttribute.Current, A11yAttribute.Id,
|
|
8892
8892
|
'aria-haspopup', 'aria-expanded', 'aria-controls', DIALOG_CLOSE_ABOVE_ATTRIBUTE,
|
|
8893
8893
|
HeaderAttribute.Behaviour, HeaderAttribute.Edge, SLIDE_CAPTION_ATTRIBUTE,
|
|
8894
|
-
TOOLTIP_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, ...MARQUEE_NODE_ATTRIBUTES,
|
|
8894
|
+
TOOLTIP_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, ...MARQUEE_NODE_ATTRIBUTES, ...MENU_ATTRIBUTES,
|
|
8895
8895
|
];
|
|
8896
|
+
/** The type of a menu button and of the menu's Close (header-ingredients HI2a: its kind — lines · word · dots). */
|
|
8897
|
+
const MENU_BUTTON_TYPE = 'ButtonBlock';
|
|
8896
8898
|
/** A content trait's value from `props` (serialized) or `traits[]` (builder). */
|
|
8897
8899
|
function nodeTraitValue(node, name) {
|
|
8898
8900
|
if (!node)
|
|
@@ -8943,7 +8945,11 @@ function nodeA11yAttributes(node, ctx = {}) {
|
|
|
8943
8945
|
const minWidth = dialogCloseAboveMinWidth(nodeTraitValue(node, A11yTrait.CloseAbove));
|
|
8944
8946
|
if (minWidth !== null)
|
|
8945
8947
|
out[DIALOG_CLOSE_ABOVE_ATTRIBUTE] = String(minWidth);
|
|
8948
|
+
// HI2a: the menu's form, how it opens, what the mouse does in it, its phone form — the shared CSS reads these.
|
|
8949
|
+
Object.assign(out, menuDialogAttributes((name) => nodeTraitValue(node, name)));
|
|
8946
8950
|
}
|
|
8951
|
+
if (node.type === MENU_BUTTON_TYPE)
|
|
8952
|
+
Object.assign(out, menuButtonAttributes((name) => nodeTraitValue(node, name)));
|
|
8947
8953
|
// T2 (M4): how a header behaves as the page scrolls — the shared CSS and the header runtime read these.
|
|
8948
8954
|
Object.assign(out, headerAttributes(nodeTraitValue(node, HeaderTrait.Behaviour), nodeTraitValue(node, HeaderTrait.Edge)));
|
|
8949
8955
|
if (node.type === SLIDE_TYPE) {
|