@vectoriox/iox-ui 5.126.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.
@@ -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) {