@vectoriox/iox-ui 5.174.0 → 5.176.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.
@@ -19150,6 +19150,9 @@ interface ListPanelContext {
19150
19150
  readonly never?: LayoutListNever | null;
19151
19151
  /** The admin's language — each word's hint is its meaning in it (`he`: the contract's `LIST.meaningsHe`, #123). */
19152
19152
  readonly locale?: string | null;
19153
+ /** The list sits in a held section (its Scene `pin`s): the scroll turns it, so a deck is judged a row, as `checkLayout`
19154
+ * judges it (vectoriox/iox-ui#128) — the host passes its section's pin. */
19155
+ readonly held?: boolean;
19153
19156
  }
19154
19157
  /** The word(s) a mix wears for an ingredient. */
19155
19158
  declare function listMixValue(mix: LayoutListMix, k: ListIngredient): string | ReadonlyArray<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.174.0",
3
+ "version": "5.176.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -189,8 +189,9 @@ export const BAR_CROWDED_AT = 3;
189
189
  export const PHONE_BAR_CONTROL_ROLES: ReadonlyArray<string> = ['nav.menu-button', 'shop.cart-button', 'account', 'nav.pinned', 'nav.actions'];
190
190
  /** What never counts: the drawer (a Dialog) and everything in it. */
191
191
  const BAR_SKIPPED_TYPES: ReadonlyArray<string> = ['Dialog'];
192
- /** The phone layers that may hide a part (responsive-breakpoints plan: `mobile` ≤ 767, `small` ≤ 479). */
193
- const PHONE_LAYERS: ReadonlyArray<string> = ['mobile', 'small'];
192
+ /** The layers that reach a phone held upright, widest → narrowest — the cascade order (iox-ui `BREAKPOINTS`: `laptop`
193
+ * ≤ 1200, `tablet` ≤ 991, `mobile` ≤ 767, `small` ≤ 479). Spelled here: design-core reads no Angular entry. */
194
+ const PHONE_CASCADE: ReadonlyArray<string> = ['laptop', 'tablet', 'mobile', 'small'];
194
195
 
195
196
  export interface BarNode {
196
197
  role?: string | null;
@@ -200,8 +201,17 @@ export interface BarNode {
200
201
  children?: ReadonlyArray<unknown> | null;
201
202
  }
202
203
 
203
- const hiddenOnPhone = (node: BarNode): boolean =>
204
- node.styleProps?.['display'] === 'none' || PHONE_LAYERS.some(bp => node.responsive?.[bp]?.styleProps?.['display'] === 'none');
204
+ /** Hidden on a phone: its display where a phone held upright lands, the last layer that says one (base → `small`).
205
+ * vectoriox/iox-ui#143: a menu button is `none` at base and shown from its breakpoint down — read by its base alone it
206
+ * was "hidden", the store bar (account · bag · menu) counted two and was never crowded, and its name broke at 390. */
207
+ const hiddenOnPhone = (node: BarNode): boolean => {
208
+ let display = node.styleProps?.['display'];
209
+ for (const bp of PHONE_CASCADE) {
210
+ const layer = node.responsive?.[bp]?.styleProps?.['display'];
211
+ if (layer !== undefined && layer !== null && layer !== '') display = layer;
212
+ }
213
+ return display === 'none';
214
+ };
205
215
 
206
216
  /** How many controls sit beside the name in the navigation's phone bar. */
207
217
  export function phoneBarControls(nav: BarNode | null | undefined): number {
@@ -49,6 +49,9 @@ export interface ListPanelContext {
49
49
  readonly never?: LayoutListNever | null;
50
50
  /** The admin's language — each word's hint is its meaning in it (`he`: the contract's `LIST.meaningsHe`, #123). */
51
51
  readonly locale?: string | null;
52
+ /** The list sits in a held section (its Scene `pin`s): the scroll turns it, so a deck is judged a row, as `checkLayout`
53
+ * judges it (vectoriox/iox-ui#128) — the host passes its section's pin. */
54
+ readonly held?: boolean;
52
55
  }
53
56
 
54
57
  const MANY: ReadonlySet<string> = new Set(LIST_TABLE.many as ReadonlyArray<string>);
@@ -120,7 +123,7 @@ export function pickListWord(mix: LayoutListMix, k: ListIngredient, word: string
120
123
  return { mix, said: [], words: [], refused: [{ code: LayoutIssueCode.Value, path: `list.${k}`, message: `${k} "${word}": ${refusal}` }] };
121
124
  }
122
125
  const next = withListWord(mix, k, word);
123
- const issues = checkList(next, ctx.shape, 'list', ctx.never, { tier: ctx.tier });
126
+ const issues = checkList(next, ctx.shape, 'list', ctx.never, { tier: ctx.tier, held: !!ctx.held });
124
127
  const refused = issues.filter(i => !i.mend);
125
128
  if (refused.length) return { mix, said: [], words: [], refused };
126
129
  const mend = issues.map(i => i.mend).find(m => m?.kind === LayoutMendKind.List);
@@ -577,10 +577,12 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
577
577
  menu). The name's own step (`data-iox-name`) counts its characters and cannot see its neighbours: on a 390 store header
578
578
  "Homeware shop in Tel Aviv" kept 77px at `size-lead` and broke inside "Homeware". The navigation root says the bar is
579
579
  crowded (design-core `navBarAttributes`): an empty side cell gives back its gap, the controls sit at a quarter of the
580
- look's gap, a worded menu button keeps half the gap on each side (still well over a 44px target), and the name takes the
580
+ look's gap — in a cell and, where they are the bar's own children (a store's account · bag · menu), in the bar itself:
581
+ at 320 the bar's half-gaps took 48px of the name's 66 (iox-ui#143 at 320) — a worded menu button keeps half the gap on each side (still well over a 44px target), and the name takes the
581
582
  crowded step (`data-iox-bar-name`) — never larger type than its own step (equal specificity, written after it).
582
583
  Both carriers, as for the brand (#135): the attribute on the role's element or on its direct child. */
583
584
  @media (max-width: 767px) {
585
+ :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) { column-gap: calc(var(--iox-space-gap) / 4); }
584
586
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
585
587
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
586
588
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
@@ -589,6 +591,7 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
589
591
  :is(.iox-role-nav[data-iox-bar-name='longest'], .iox-role-nav > [data-iox-bar-name='longest']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
590
592
  }
591
593
  @container iox-canvas (max-width: 767px) {
594
+ :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) { column-gap: calc(var(--iox-space-gap) / 4); }
592
595
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
593
596
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
594
597
  :is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
@@ -1905,13 +1908,16 @@ span.iox-video__play { pointer-events: none; }
1905
1908
  style's heading size, inside a card padded as a full-width one: at 320 a half tile kept 46px for its words, and the
1906
1909
  price ran 9px past its card at 390, 24 at 360, the ₪ cut by the card's clip (vectoriox/iox-ui#127). In a half tile a
1907
1910
  card that sells keeps half its padding (only it: a turned or colour-block card keeps its own). The price itself is sized
1908
- against its CARD (below), so a list with no arrangement word steps it too. */
1911
+ against its CARD (below), so a list with no arrangement word steps it too — and so is a selling card's title (#147;
1912
+ the rule is repeated here because the list's own title step would otherwise outrank the card's). */
1909
1913
  @container iox-list (max-width: 640px) {
1910
- :is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
1914
+ :is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); overflow-wrap: break-word; }
1915
+ :is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) .iox-role-card-title { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.2), var(--iox-size-lead)); }
1911
1916
  :is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
1912
1917
  }
1913
1918
  @container iox-strips (max-width: 640px) {
1914
- :is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
1919
+ :is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); overflow-wrap: break-word; }
1920
+ :is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) .iox-role-card-title { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.2), var(--iox-size-lead)); }
1915
1921
  :is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
1916
1922
  }
1917
1923
 
@@ -1921,10 +1927,15 @@ span.iox-video__play { pointer-events: none; }
1921
1927
  CARD it reaches every narrow card that sells: once the card's content box is under 220px (a half tile on any phone; a
1922
1928
  one-across card keeps its own size down to 320) the price is sized to that box (100cqi) over the ~5.2em an eleven-glyph
1923
1929
  price stands (`1,249.00 ₪`) — never above the lead size, never under the small one. "From ₪89.00" (#142) breaks at its
1924
- space. The card's own width comes from its cell (Card v2 is `width: 100%`), so inline-size containment changes no size. */
1930
+ space. The card's own width comes from its cell (Card v2 is `width: 100%`), so inline-size containment changes no size.
1931
+ vectoriox/iox-ui#147: its TITLE is sized to the same box. At the lead size one English word ("workshop", 4.6em in the
1932
+ display face) ran 27px past a 78px box at 320, 7 past 98 at 360 — Hebrew words are shorter and fit. Over 5em the
1933
+ title stands any word of nine or ten letters (15.6px in 78, 19.6 in 98, near the lead size at 390); a longer word than a
1934
+ size can hold breaks inside the card (`break-word`, the floor every two-across title keeps) instead of running out. */
1925
1935
  .iox-role-card:has(.iox-role-shop-price-amount) { container: iox-price-card / inline-size; }
1926
1936
  @container iox-price-card (max-width: 220px) {
1927
1937
  .iox-role-card .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.19), var(--iox-size-lead)); }
1938
+ .iox-role-card .iox-role-card-title { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.2), var(--iox-size-lead)); overflow-wrap: break-word; }
1928
1939
  }
1929
1940
 
1930
1941
  /* ITEM WORDS — what each item is, carried by the frame (`iox-list-item-<word>`). */