@adia-ai/web-components 0.8.46 → 0.8.48

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/components/card/card.css +25 -2
  3. package/components/chart/chart.a2ui.json +1 -1
  4. package/components/chart/chart.d.ts +1 -1
  5. package/components/chart/chart.yaml +6 -3
  6. package/components/link/link.css +3 -2
  7. package/components/nav/nav.css +7 -3
  8. package/components/nav-group/nav-group.css +38 -41
  9. package/components/nav-item/nav-item.css +11 -5
  10. package/components/preview/preview.class.js +12 -2
  11. package/components/richtext/richtext.css +2 -2
  12. package/components/table/table.a2ui.json +5 -2
  13. package/components/table/table.class.js +36 -1
  14. package/components/table/table.d.ts +2 -2
  15. package/components/table/table.yaml +17 -1
  16. package/components/table-footer/table-footer.a2ui.json +20 -2
  17. package/components/table-footer/table-footer.class.js +94 -8
  18. package/components/table-footer/table-footer.d.ts +6 -2
  19. package/components/table-footer/table-footer.yaml +57 -6
  20. package/components/table-toolbar/table-toolbar.a2ui.json +35 -2
  21. package/components/table-toolbar/table-toolbar.class.js +117 -9
  22. package/components/table-toolbar/table-toolbar.css +104 -3
  23. package/components/table-toolbar/table-toolbar.d.ts +10 -2
  24. package/components/table-toolbar/table-toolbar.examples.md +47 -45
  25. package/components/table-toolbar/table-toolbar.yaml +97 -9
  26. package/core/anchor.js +21 -1
  27. package/custom-elements.json +50 -5
  28. package/dist/host.min.css +1 -1
  29. package/dist/host.sheet.js +1 -1
  30. package/dist/theme-provider.min.js +8 -8
  31. package/dist/themes.min.css +1 -1
  32. package/dist/themes.sheet.js +1 -1
  33. package/dist/web-components.min.css +1 -1
  34. package/dist/web-components.min.js +52 -52
  35. package/dist/web-components.sheet.js +1 -1
  36. package/package.json +1 -1
  37. package/styles/colors/material-static.css +298 -234
  38. package/styles/themes.css +2676 -0
  39. package/styles/type/elements.css +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # Changelog — @adia-ai/web-components
2
2
 
3
+ ## [0.8.48] — 2026-08-23
4
+
5
+ ### Added
6
+ - **`table-ui`/`table-footer-ui`/`table-toolbar-ui` range grammar — `open-total`, `range-of`, `range-noun` (gh#1877), ADR-0082 Amendment.** Server-side pagination's range summary ("1–20 of 200") gets three composable authoring knobs: `open-total` drops the known-total suffix for unbounded/streamed counts, `range-of` swaps the connector word, `range-noun` supplies the counted-thing label — wired through `components/table/table.css`, `components/table-footer/table-footer.js`, and `components/table-toolbar/table-toolbar.js` (#1890).
7
+ - **`table-toolbar-ui[title-always]` opt-out for the scope-reconciliation title hide (gh#1879).** The `:has([data-scope]:not(:empty)) [data-title]` reconciliation rule (landed in 0.8.47) drops the title whenever a scope chip is present; `title-always` opts a toolbar out so the title survives alongside scope chips (#1880).
8
+
9
+ ### Changed
10
+ - **`link-ui`/`anchor-ui`-bearing surfaces get hover tokens, transitions, and a new `--link-fg-disabled` (gh#1881).** Every anchor-bearing component now declares `--link-fg-hover`/`--link-fg-active` plus a `color`/`text-decoration-color` transition instead of relying on inherited defaults; `--link-fg-disabled` fills the missing disabled-state role (#1887).
11
+ - **`[prose]`/`[verse]` live usages swept to `scale=` (gh#1822).** Component demos and yaml examples using the deprecated `[prose]`/`[verse]` attribute pair migrated to the `scale=` contract ratified in an earlier cut (#1874).
12
+
13
+ ### Fixed
14
+ - **`card-ui` preserves footer top inset in content-sized cards (gh#1866).** A content-sized (non-fixed-height) card's footer lost its top inset because the inset was conditioned on a fixed-height layout branch that content-sized cards never take; the inset now applies unconditionally (`components/card/card.css`) (#1875).
15
+ - **A2UI runtime stops stamping synthetic `.id` onto elements with no authored id.** `resolve-node.js`'s synthetic-id path was firing for every unauthored element, polluting the DOM with runtime-only ids that leaked into snapshot tests and event targeting; now only elements that need an id for event wiring get one (#1872).
16
+ - **A2UI runtime reflects `JS_PROPS` as JSON attributes alongside property writes (gh#1858).** `prop-apply.js` wrote JS property values but skipped the matching attribute reflection for `JS_PROPS`-classified props, so attribute-based selectors and SSR snapshots saw a stale value; both now update together (#1870).
17
+ - **`themes.css`/`material-static.css` theme-scoped semantic alias resolution under descendant `[theme]` scopes (gh#1863).** A `--a-*` semantic alias resolved against the wrong `[theme]` ancestor when a themed subtree nested inside another themed subtree; two new gates guard the resolution order (#1873).
18
+
19
+ ### Docs
20
+ - **`site/components/table-toolbar` canonical sample composes the toolbar as a `card-ui` header (#1884).** Replaces the prior bare-toolbar sample with the pattern most consumers actually use.
21
+ - **`components/chart/chart.yaml` `ratio=` comment repaired** — the per-type wave landed in an earlier cut; the yaml comment still described the old single-ratio contract (#1871).
22
+
23
+ ### Maintenance
24
+ - **`dist/` bundles rebuilt** in this cut's window — regenerated from the source changes described above, not independent edits.
25
+ - **`styles/` touched in this release window** (`colors/material-static.css`, `themes.css`) — carried by the theme-scoped alias fix above (gh#1863, #1873).
26
+
27
+ ## [0.8.47] — 2026-08-22
28
+
29
+ ### Changed
30
+ - **`nav-group-ui`/`nav-item-ui`/`nav-ui` token simplification (gh#1740, gh#459, gh#1736).** `nav-group-ui` header text settles on one unconditional NEUTRAL-HIGH (`--nav-group-fg-active` deleted; `--nav-group-fg-selected` kept for the popover's current-option row); `nav-ui[data-nav-label]` moves from `--a-fg-muted` to plain NEUTRAL with retuned padding (top 16 / sides 4 / bottom 8). Dev server: `vite.config.js` gets an explicit `server.fs.allow`/`deny` — fixes vite's default `**/.git/**` deny blocking its own `/@vite/client` after resolving pnpm symlinks into a bootstrapped worktree's shared store (#1853).
31
+
32
+ ### Fixed
33
+ - **`material-static.css`'s identical-leg `light-dark()` roles dropped; stale `themes.css` dead-code claim corrected (gh#1852).** ~224 solid-fill/hover/active/on-*/alpha-family `--md-sys-color-*` roles wrapped in a no-op `light-dark()` (both legs identical) — unwrapped. The header's second claim, that `themes.css` ships a dead divergent neutral ramp, was a false premise on investigation (a themed ancestor's override wins via ordinary custom-property inheritance, verified in Playwright) — corrected in place rather than deleting live theming infrastructure (#1854).
34
+ - **`table-toolbar-ui[size]` prop, overflow-trigger cascade tie, and three min-width floor fights.** New `size` prop wired via ambient CSS inheritance; the `[data-toolbar-overflow]` cascade tie with `menu-ui`'s base rule (redundant "More" trigger re-render) fixed; `:has([data-scope]:not(:empty)) [data-title]` reconciliation drops a duplicate title/count cluster; toolbar/input/select/menu min-width floors reconciled (#1855).
35
+ - **`core/anchor.js` popover-anchor reuse guard (all 12 consumers).** A trigger reused as the anchor for a second popover had its anchor-name clobbered by the first popover's async close-cleanup, landing the second popover at the viewport origin — fixed with an ownership guard in the cleanup closure (284 consumer tests green) (#1855).
36
+
37
+ ### Docs
38
+ - **`site/components/table-toolbar` side-by-side docs demos.** `[data-preview-split]` opt-in pairs a demo's live render with its authored HTML side by side; table-toolbar visual goldens re-baselined after the verified layout fixes (#1855).
39
+
40
+ ### Maintenance
41
+ - **`components/` touched in this release window** (12 file(s), e.g. `nav-group/nav-group.css`) — carried by the entries above.
42
+ - **`core/` touched in this release window** (1 file(s), e.g. `core/anchor.js`) — carried by the entries above.
43
+ - **`dist/` bundles rebuilt** in this cut's window (6 file(s)) — regenerated from the source changes described above, not independent edits.
44
+ - **`styles/` touched in this release window** (1 file(s), e.g. `colors/material-static.css`) — carried by the entries above.
45
+
3
46
  ## [0.8.46] — 2026-08-22
4
47
 
5
48
 
@@ -76,8 +76,30 @@
76
76
  display: flex;
77
77
  flex-direction: column;
78
78
  }
79
+ /* Explicit (not left to the base `& > footer` rule further down) so this
80
+ value is the one that wins regardless of declaration order — kept
81
+ alongside the bottom-pin spacer it replaces, gh#1866. */
79
82
  :scope > footer {
80
- margin-top: auto;
83
+ margin-block-start: var(--card-inset);
84
+ }
85
+
86
+ /* Bottom-pin (gh#559), preserved WITHOUT sacrificing the footer's own
87
+ top inset (gh#1866). The old approach put `margin-top: auto` directly
88
+ on the footer: that absorbs FREE SPACE in an equal-height grid/flex
89
+ row (the pin), but a content-sized card has none to absorb, so the
90
+ auto margin resolved to 0 and the footer lost its --card-inset gap
91
+ entirely — every OTHER region kept its inset, only the footer didn't.
92
+ Moving the auto margin to the region immediately before the footer
93
+ keeps both behaviors distinct: that region still soaks up any
94
+ leftover height (still bottom-pinning the footer in an equal-height
95
+ card), while the footer's own margin-block-start above stays the
96
+ ordinary --card-inset in every card, content-sized included.
97
+ `:has(+ footer)` (not `:last-of-type`) so exactly the ONE region
98
+ directly adjacent to the footer gets the spacer — `:last-of-type` would
99
+ match the last header AND the last section independently when both are
100
+ present, splitting the auto margin across two elements instead of one. */
101
+ :scope:has(> footer) > :is(header, section):has(+ footer) {
102
+ margin-block-end: auto;
81
103
  }
82
104
 
83
105
  /* Flex containers never collapse adjacent margins the way block flow
@@ -87,7 +109,8 @@
87
109
  single inset block flow would have collapsed them to. The leading
88
110
  region's own margin-bottom already supplies that inset; zero the
89
111
  trailing region's margin-top. footer is excluded — its margin-top is
90
- handled above (bottom-pin `auto`) or by [divider] below. */
112
+ handled above (its own explicit --card-inset, gh#1866) or by
113
+ [divider] below. */
91
114
  :scope:has(> footer) > :is(header, section) + :is(header, section) {
92
115
  margin-block-start: 0;
93
116
  }
@@ -118,7 +118,7 @@
118
118
  "default": false
119
119
  },
120
120
  "ratio": {
121
- "description": "Chart 2.0 aspect-ratio bucket (ADR-0074). Unset (default) auto-snaps to the nearest of the three studied ratios by comparing the chart's own live box aspect against two midpoint boundaries (5:4 between 3:2/1:1, 4:5 between 1:1/2:3) — never interpolated; the resolved bucket reflects onto the host as `data-ratio-resolved`. Setting `ratio` explicitly pins that bucket regardless of the box's actual aspect, overriding the auto-snap. Orthogonal to `size` (overall scale) and `type`/`color` (ADR-0064's family axis) — this attribute lands the grammar + snap plumbing only; per-type studied renderings per bucket are later waves (gh#1624 plan steps 2-4).",
121
+ "description": "Chart 2.0 aspect-ratio bucket (ADR-0074). Unset (default) auto-snaps to the nearest of the three studied ratios by comparing the chart's own live box aspect against two midpoint boundaries (5:4 between 3:2/1:1, 4:5 between 1:1/2:3) — never interpolated; the resolved bucket reflects onto the host as `data-ratio-resolved`. Setting `ratio` explicitly pins that bucket regardless of the box's actual aspect, overriding the auto-snap. Orthogonal to `size` (overall scale) and `type`/`color` (ADR-0064's family axis) — per-type studied renderings per bucket shipped across Waves A-C (gh#1624 plan steps 2-4: #1658 bar/line/area/pie/donut/sparkline, #1659 radar/scatter/ radial-bar/gauge/segments/stacked-bar/grouped-bar/multi-line, #1662 funnel/treemap/sankey/composed) — all 18 types have dedicated per-ratio render paths.",
122
122
  "type": "string",
123
123
  "enum": [
124
124
  "3:2",
@@ -40,7 +40,7 @@ export class UIChart extends UIElement {
40
40
  noGrid: boolean;
41
41
  /** Hide value labels. Canonical spelling (ADR-0063, gh#1563) — the deprecated `hideValues` dual-read shim was cut in 0.8.43 (gh#1617). */
42
42
  noValues: boolean;
43
- /** Chart 2.0 aspect-ratio bucket (ADR-0074). Unset (default) auto-snaps to the nearest of the three studied ratios by comparing the chart's own live box aspect against two midpoint boundaries (5:4 between 3:2/1:1, 4:5 between 1:1/2:3) — never interpolated; the resolved bucket reflects onto the host as `data-ratio-resolved`. Setting `ratio` explicitly pins that bucket regardless of the box's actual aspect, overriding the auto-snap. Orthogonal to `size` (overall scale) and `type`/`color` (ADR-0064's family axis) — this attribute lands the grammar + snap plumbing only; per-type studied renderings per bucket are later waves (gh#1624 plan steps 2-4). */
43
+ /** Chart 2.0 aspect-ratio bucket (ADR-0074). Unset (default) auto-snaps to the nearest of the three studied ratios by comparing the chart's own live box aspect against two midpoint boundaries (5:4 between 3:2/1:1, 4:5 between 1:1/2:3) — never interpolated; the resolved bucket reflects onto the host as `data-ratio-resolved`. Setting `ratio` explicitly pins that bucket regardless of the box's actual aspect, overriding the auto-snap. Orthogonal to `size` (overall scale) and `type`/`color` (ADR-0064's family axis) — per-type studied renderings per bucket shipped across Waves A-C (gh#1624 plan steps 2-4: #1658 bar/line/area/pie/donut/sparkline, #1659 radar/scatter/ radial-bar/gauge/segments/stacked-bar/grouped-bar/multi-line, #1662 funnel/treemap/sankey/composed) — all 18 types have dedicated per-ratio render paths. */
44
44
  ratio: '3:2' | '1:1' | '2:3';
45
45
  /** Multi-line only. Names one series key (matching a `y` key) to render at full strength — area fill + full-opacity line. Every other series drops its area fill and renders line-only at --chart-deemphasized-opacity. Empty (default) applies full treatment to every series, unchanged from pre-gh#561 behavior. */
46
46
  seriesEmphasis: string;
@@ -105,9 +105,12 @@ props:
105
105
  bucket reflects onto the host as `data-ratio-resolved`. Setting
106
106
  `ratio` explicitly pins that bucket regardless of the box's actual
107
107
  aspect, overriding the auto-snap. Orthogonal to `size` (overall
108
- scale) and `type`/`color` (ADR-0064's family axis) — this attribute
109
- lands the grammar + snap plumbing only; per-type studied renderings
110
- per bucket are later waves (gh#1624 plan steps 2-4).
108
+ scale) and `type`/`color` (ADR-0064's family axis) — per-type studied
109
+ renderings per bucket shipped across Waves A-C (gh#1624 plan steps
110
+ 2-4: #1658 bar/line/area/pie/donut/sparkline, #1659 radar/scatter/
111
+ radial-bar/gauge/segments/stacked-bar/grouped-bar/multi-line, #1662
112
+ funnel/treemap/sankey/composed) — all 18 types have dedicated
113
+ per-ratio render paths.
111
114
  type: string
112
115
  default: ""
113
116
  enum:
@@ -10,6 +10,7 @@
10
10
  --link-fg: var(--a-link);
11
11
  --link-fg-hover: var(--a-link-hover);
12
12
  --link-fg-visited: var(--a-link-visited);
13
+ --link-fg-disabled: var(--md-sys-color-neutral-on-surface-disabled);
13
14
  --link-underline-offset: 2px;
14
15
  --link-focus-ring: var(--a-focus-ring);
15
16
  }
@@ -89,9 +90,9 @@
89
90
  /* ── Disabled ── */
90
91
 
91
92
  :scope[disabled] > a {
92
- color: var(--md-sys-color-neutral-on-surface-disabled);
93
+ color: var(--link-fg-disabled);
93
94
  cursor: not-allowed;
94
- text-decoration-color: var(--md-sys-color-neutral-on-surface-disabled);
95
+ text-decoration-color: var(--link-fg-disabled);
95
96
  pointer-events: none;
96
97
  }
97
98
  }
@@ -29,11 +29,11 @@
29
29
  --nav-icon-size-collapsed: 18px;
30
30
 
31
31
  /* Group-heading kicker */
32
- --nav-label-fg: var(--a-fg-muted);
32
+ --nav-label-fg: var(--md-sys-color-neutral);
33
33
  --nav-label-font-size: var(--a-kicker-sm);
34
34
  --nav-label-weight: var(--a-weight-medium);
35
- --nav-label-px: var(--a-space-4);
36
- --nav-label-py: var(--a-space-3) var(--a-space-1);
35
+ --nav-label-px: var(--a-space-2);
36
+ --nav-label-py: var(--a-space-4) var(--a-space-1);
37
37
  }
38
38
 
39
39
  :scope {
@@ -76,6 +76,10 @@
76
76
  [data-nav-label] {
77
77
  display: block;
78
78
  padding: var(--nav-label-py) var(--nav-label-px);
79
+ /* Deliberate inline-start bump beyond the shared padding shorthand
80
+ above, so the kicker breathes more on its leading edge than its
81
+ trailing one (gh#1736). */
82
+ padding-inline-start: var(--a-space-2);
79
83
  font-size: var(--nav-label-font-size);
80
84
  font-weight: var(--nav-label-weight);
81
85
  color: var(--nav-label-fg);
@@ -19,20 +19,26 @@
19
19
  glyph ruling); Figma's neutral/surfaceBright was considered for the
20
20
  selected fill and RULED OUT — container stays (gh#795's mirror).
21
21
  gh#968's ladder above is about ROUTE selection (hover/selected);
22
- it says nothing about the group's own open/closed disclosure state,
23
- which --nav-group-fg left pinned unconditionally to one role
24
- (neutral-high) regardless of [open]. gh#1740 (operator ruling,
25
- 2026-08-19) supersedes that unconditional pin with a second,
26
- orthogonal axis the header text and caret glyph now also shift
27
- role by [open], the same way they already shift by [selected]/
28
- hover; the two ladders compose (a selected-route header still wins
29
- its --nav-group-fg-selected treatment regardless of open state
30
- see the :scope[open] rule below, kept lower-precedence than
31
- :scope[selected] by source order). */
32
- --nav-group-fg: var(--md-sys-color-neutral);
33
- --nav-group-fg-active: var(--md-sys-color-neutral-high);
22
+ it says nothing about the group's own open/closed disclosure state.
23
+ Header-TEXT history: gh#1740 (2026-08-19) split idle text into an
24
+ [open]-keyed role (idle NEUTRAL, open NEUTRAL-HIGH), and PR 460
25
+ (gh#459) added a third [selected] role on top. On 2026-08-22 (Kim,
26
+ live) the state split was removed and the header text settled on
27
+ one unconditional NEUTRAL-HIGH for idle/open/selected alike no
28
+ [open]/[selected] header-text override rules exist below anymore.
29
+ --nav-group-fg-selected is KEPT (not deleted) because a second,
30
+ unrelated consumer still needs the distinct role: the popover's
31
+ selected/current-option row below (`[role="option"]
32
+ [aria-current="page"]`/`[aria-selected="true"]`) documents (TKT-
33
+ 0017) that its color change is one of three signals (with bg fill
34
+ + font-weight) marking the current page in that list. The caret
35
+ glyph's own [open] ladder (gh#1740, below) is UNCHANGED. */
36
+ --nav-group-fg: var(--md-sys-color-neutral-high);
34
37
  --nav-group-fg-hover: var(--a-fg-strong);
35
38
  --nav-group-fg-muted: var(--a-fg-muted);
39
+ /* Consumed ONLY by the popover's selected/current-option row further
40
+ down this file — no longer by the group header (see the
41
+ --nav-group-fg comment above); keep this scoped to that one use. */
36
42
  --nav-group-fg-selected: var(--a-fg-strong);
37
43
  --nav-group-icon-fg: var(--md-sys-color-neutral);
38
44
  --nav-group-icon-fg-selected: var(--a-fg-strong);
@@ -89,40 +95,31 @@
89
95
  background: var(--nav-group-indent-rail-bg, var(--md-sys-color-neutral-outline-variant));
90
96
  pointer-events: none;
91
97
  }
92
- /* Disclosure-state ladder (gh#1740, operator ruling 2026-08-19): the
93
- header text and caret glyph step UP a role when the group is open
94
- idle/closed reads NEUTRAL, expanded reads NEUTRAL-HIGH. Placed BEFORE
95
- the [selected]/[data-selected-within] block below so an equal-
96
- specificity (0,3,0) tie always resolves to the route-selection color:
97
- a selected-route group keeps its existing --nav-group-fg-selected
98
- treatment regardless of its own open/closed state — this rule only
99
- ever wins when the group is open AND not selected. */
100
- :scope[open] > [slot="header"] {
101
- color: var(--nav-group-fg-active);
102
- }
98
+ /* Disclosure-state ladder (gh#1740, operator ruling 2026-08-19) the
99
+ caret glyph steps UP a role when the group is open: idle/closed reads
100
+ NEUTRAL-LOW, expanded reads NEUTRAL. The matching header-TEXT half of
101
+ this ladder (--nav-group-fg-active) was reverted 2026-08-22 header
102
+ text is unconditional plain NEUTRAL now (see the --nav-group-fg
103
+ comment above), so only the caret still steps by [open]. */
103
104
  :scope[open] > [slot="header"] [slot="caret"] {
104
105
  color: var(--nav-group-caret-fg-active);
105
106
  }
106
- /* Selected-look header treatment keys on [selected] the CSS half of
107
- gh issue 459 (PR 460 corrected the icon weight): the group CONTAINING
108
- the selected route reads strong; a merely-expanded group does not.
109
- Text color applies in BOTH rail modes subtle, no double-marking risk.
110
- The BACKGROUND fill (gh#795) is collapsed-only (see the two
111
- nav-ui[collapsed] / @container sidebar blocks below): [selected] and
107
+ /* Selected header TEXT color previously diverged here (gh#459/PR 460:
108
+ the group CONTAINING the selected route read strong text). Reverted
109
+ 2026-08-22 along with the [open] split above header text is now
110
+ plain NEUTRAL in every state, so this rule was removed as dead code
111
+ rather than left pointing at a token that resolves to the same value
112
+ as the ambient [slot="header"] color. The BACKGROUND fill (gh#795)
113
+ is UNCHANGED and still collapsed-only (see the two nav-ui[collapsed]
114
+ / @container sidebar blocks below): [selected] and
112
115
  [data-selected-within] both mean "CONTAINS the selected route", never
113
116
  "IS the selected route" (nav-group.class.js's own doc comment on the
114
- `selected` prop consumers set it from active-route logic exactly
115
- like the JS-derived data-selected-within case; there is no
116
- directly-selected-leaf-group state distinct from it). In the expanded
117
- rail the contained child already paints its own real selected pill
118
- (nav-item.css), so a header background here double-marks the same
119
- selection (gh#806 operator screenshot, profile-security). Collapsed
120
- hides the children, so the header becomes the ONLY selection signal
121
- and needs the fill nav-item-ui gets. */
122
- :scope[selected] > [slot="header"],
123
- :scope[data-selected-within] > [slot="header"] {
124
- color: var(--nav-group-fg-selected);
125
- }
117
+ `selected` prop). In the expanded rail the contained child already
118
+ paints its own real selected pill (nav-item.css), so a header
119
+ background here would double-mark the same selection (gh#806);
120
+ collapsed hides the children, so the header becomes the ONLY
121
+ selection signal and needs the fill nav-item-ui gets — that part of
122
+ the design is untouched by this text-color collapse. */
126
123
  /* Icon color = the SELECTION color, one language with nav-item's accent
127
124
  glyph (gh#522, operator ruling 2026-07-30): filled + primary whenever
128
125
  this group is selected OR contains the selected route.
@@ -40,14 +40,20 @@ nav-item-ui[selected] [slot="icon"]:empty::before {
40
40
  --nav-item-font-size-sm: var(--a-ui-sm);
41
41
  --nav-item-font-size-lg: var(--a-ui-lg);
42
42
  --nav-item-font-weight: var(--a-weight-normal);
43
- /* State color spec (gh#968, operator ruling 2026-08-11):
43
+ /* State color spec (gh#968, operator ruling 2026-08-11; idle tier
44
+ re-confirmed NEUTRAL-HIGH 2026-08-22 after a brief same-day
45
+ collapse-to-NEUTRAL experiment, Kim — mirrored in nav-group-ui's
46
+ header, nav-group.css):
44
47
  idle — bg transparent · icon NEUTRAL · text NEUTRAL-HIGH
45
48
  hover — bg container-low · icon + text ON-SURFACE
46
49
  selected — bg container · icon + text ON-SURFACE
47
- Idle sits two quiet steps down (icon quieter than text); hover and
48
- selected converge on on-surface. The selected ICON no longer takes
49
- the primary accent (supersedes gh#522 for the glyph) the accent
50
- BAR remains the primary selection marker. */
50
+ Hover and selected converge on on-surface (--a-ui-text-hover/
51
+ -selected) that ladder step carries the component's only
52
+ remaining visual selected-state cue in the section variant (see
53
+ below) and is intentionally distinct from idle.
54
+ The selected ICON no longer takes the primary accent (supersedes
55
+ gh#522 for the glyph) — the accent BAR remains the primary
56
+ selection marker. */
51
57
  --nav-item-fg: var(--md-sys-color-neutral-high);
52
58
  --nav-item-fg-hover: var(--a-ui-text-hover);
53
59
  --nav-item-fg-selected: var(--a-ui-text-selected);
@@ -90,8 +90,18 @@ export class UIPreview extends UIElement {
90
90
  const code = document.createElement('code-ui');
91
91
  code.setAttribute('language', lang);
92
92
  // The CODE pane shows the clean consumer-facing HTML — strip doc-only
93
- // corpus markers (data-chunk / -kind / -slot) that the render keeps.
94
- code.textContent = source.replace(/\s+data-chunk(?:-[a-z]+)?="[^"]*"/g, '');
93
+ // corpus markers (data-chunk / -kind / -slot) that the render keeps,
94
+ // plus `data-a2ui-id` — bookkeeping the A2UI runtime renderer stamps on
95
+ // every element it creates (packages/gen-ui/a2ui/renderer.js's
96
+ // `newEl.setAttribute('data-a2ui-id', comp.id)`), never something an
97
+ // author writes. Only reachable when this source came from ALREADY-
98
+ // rendered A2UI DOM (site-a2ui docs pages feeding real component
99
+ // subtrees into <preview-ui> as children instead of authoring literal
100
+ // markup) — a hand-authored `<preview-ui>` in an .examples.html never
101
+ // has it, so the strip is a no-op there.
102
+ code.textContent = source
103
+ .replace(/\s+data-chunk(?:-[a-z]+)?="[^"]*"/g, '')
104
+ .replace(/\s+data-a2ui-id="[^"]*"/g, '');
95
105
  codeWrap.appendChild(code);
96
106
  return codeFirst ? [codeWrap, render] : [render, codeWrap];
97
107
  }
@@ -21,8 +21,8 @@
21
21
  page and inverted inside cards. Same tier as --a-bg-muted/hover. */
22
22
  --richtext-code-bg: var(--md-sys-color-neutral-container-low);
23
23
  --richtext-border: var(--md-sys-color-neutral-outline-variant);
24
- --richtext-link: var(--a-primary-bg);
25
- --richtext-link-hover: var(--md-sys-color-primary);
24
+ --richtext-link: var(--a-link);
25
+ --richtext-link-hover: var(--a-link-hover);
26
26
 
27
27
  /* ── Typography ── */
28
28
  --richtext-font: var(--a-font-family);
@@ -60,8 +60,11 @@
60
60
  "default": 0
61
61
  },
62
62
  "range-total": {
63
- "description": "Total row count across ALL server pages (gh#1754, ADR-0082) — the table-authoritative server-mode data contract. Presence-gated: the attribute's PRESENCE, not its value, is the mode switch (checked via hasAttribute, never the coerced value alone — the same discipline table-footer-ui's own [range-total] ships). Absent (the default) means client mode: today's behavior exactly, [paginate] slices `.data` as always. Present with [paginate] > 0 means server mode: no local slicing (`.data` IS the current page and renders whole, after local search/sort/filter), the internal pager's page count becomes `max(1, ceil(range-total / paginate))` (one calc site, consolidated), and the internal page-reset sites (`data` set, `setFilter`, `clearFilters`) are suppressed so a fetch write-back never fights the pager back to page 0 — page state then moves only via pager interaction, the `footer-page` command, or `setState()`. The existing `page` event (0-based, unchanged) becomes the fetch trigger: the consumer listens for it, fetches that server page, and writes `.data` back. Explicit `range-total=\"0\"` is server-confirmed empty (pager hidden), never conflated with absent. With [paginate] absent/0, [range-total] is inert for this table's own rendering but stays readable by a bound table-footer-ui (REQ-W-006 branch 2) for its count-only label — see the footer-authoritative shape below, which remains lawful and is unaffected by this attribute. Named identically to table-toolbar-ui's and table-footer-ui's own [range-total] (rows, never `pagination-ui[total]`'s pages — the ADR-0063 B5 collision rule); a third instance of one name for one concept.",
64
- "type": "number",
63
+ "description": "Total row count across ALL server pages (gh#1754, ADR-0082) — the table-authoritative server-mode data contract. Presence-gated: the attribute's PRESENCE, not its value, is the mode switch (checked via hasAttribute, never the coerced value alone — the same discipline table-footer-ui's own [range-total] ships). Absent (the default) means client mode: today's behavior exactly, [paginate] slices `.data` as always. Present with [paginate] > 0 means server mode: no local slicing (`.data` IS the current page and renders whole, after local search/sort/filter), the internal pager's page count becomes `max(1, ceil(range-total / paginate))` (one calc site, consolidated), and the internal page-reset sites (`data` set, `setFilter`, `clearFilters`) are suppressed so a fetch write-back never fights the pager back to page 0 — page state then moves only via pager interaction, the `footer-page` command, or `setState()`. The existing `page` event (0-based, unchanged) becomes the fetch trigger: the consumer listens for it, fetches that server page, and writes `.data` back. Explicit `range-total=\"0\"` is server-confirmed empty (pager hidden), never conflated with absent. With [paginate] absent/0, [range-total] is inert for this table's own rendering but stays readable by a bound table-footer-ui (REQ-W-006 branch 2) for its count-only label — see the footer-authoritative shape below, which remains lawful and is unaffected by this attribute. Named identically to table-toolbar-ui's and table-footer-ui's own [range-total] (rows, never `pagination-ui[total]`'s pages — the ADR-0063 B5 collision rule); a third instance of one name for one concept. Explicit `range-total=\"?\"` (gh#1877, ADR-0082 Amendment) is the OPEN/unproven-total state — cursor/hasMore server paging with no known row count yet: still server mode (still presence-gated), but the internal pager's page count stays exactly one page ahead of wherever the pager currently sits (never a fixed ceil(...) total), keeping `next` enabled indefinitely instead of hiding the pager the way a confirmed `range-total=\"0\"` would. Resolves to the normal finite server-mode behavior the instant a real number replaces the \"?\" — every reader downstream (table-toolbar-ui, table-footer-ui) shares this same distinction. Note: since this prop is Number-typed and reflected, the framework's own attribute-reflection immediately rewrites the DOM attribute to the literal string \"NaN\" once \"?\" is parsed (`+\"?\"` → NaN, then stringified back onto the attribute) — the coerced numeric PROPERTY is what carries the open/unproven signal (non-finite), never a literal \"?\" surviving as the live DOM attribute value.",
64
+ "type": [
65
+ "number",
66
+ "string"
67
+ ],
65
68
  "default": 0
66
69
  },
67
70
  "raw": {
@@ -41,6 +41,16 @@
41
41
  * conflated with absent. With [paginate] absent/0, [range-total] is
42
42
  * inert for this table's own rendering but stays readable by a
43
43
  * bound table-footer-ui for its count-only label.
44
+ * range-total="?" — gh#1877/ADR-0082 Amendment (2026-08-22) — the OPEN/
45
+ * unproven-total state: server mode with no known total yet
46
+ * (cursor/hasMore paging). Still presence-gated into server
47
+ * mode like any other [range-total] value; #pageCount stays
48
+ * one page ahead of the current page (never a fixed number)
49
+ * so the pager's `next` stays enabled indefinitely, and
50
+ * pagination visibility no longer requires a positive
51
+ * #safeRangeTotal() while open. Resolves to a normal finite
52
+ * server-mode table the moment a real range-total replaces
53
+ * the "?".
44
54
  * loading — show loading overlay
45
55
  * search — global search filter string
46
56
  *
@@ -326,6 +336,20 @@ export class UITable extends UIElement {
326
336
  // reset-suppression call sites for why that widened scope is safe).
327
337
  get #serverMode() { return this.hasAttribute('range-total'); }
328
338
 
339
+ // gh#1877/ADR-0082 Amendment — the open/unproven-total state. NOT keyed
340
+ // on the raw attribute string: `rangeTotal` is a Number-typed reflected
341
+ // prop (installProps in core/element.js), so setting range-total="?" is
342
+ // parsed via `+"?"` → NaN and immediately reflected straight back onto
343
+ // the DOM attribute as the literal string "NaN" (reflect() in
344
+ // element.js stringifies any non-null coerced value) — by the time
345
+ // #draw()/render() runs, `getAttribute('range-total')` already reads
346
+ // "NaN", never the authored "?". The coerced PROPERTY still holds NaN
347
+ // stably, though (Object.is(NaN, NaN) is true, so the reflect's own
348
+ // re-parse never re-writes it) — that's the one signal that survives,
349
+ // and it's what #pageCount/showPagination below need to tell "no total
350
+ // yet" apart from "confirmed empty" (range-total="0", a finite 0).
351
+ get #rangeOpen() { return this.#serverMode && !Number.isFinite(Number(this.rangeTotal)); }
352
+
329
353
  // gh#1754/ADR-0082 REQ-D-003 (CodeRabbit, PR #1828) — a raw
330
354
  // `Number(x) || 0` accepts negative and non-finite values verbatim (both
331
355
  // are truthy), which can drive #pageCount/the footer's own range text
@@ -933,6 +957,13 @@ export class UITable extends UIElement {
933
957
  // derived, not the loaded page's own length (the exact dual-math drift
934
958
  // gh#1754's evidence quoted — this is now the ONE calc site;
935
959
  // #renderPagination reads this getter instead of recomputing).
960
+ // gh#1877/ADR-0082 Amendment — open/unproven total: no real total to
961
+ // derive from, so pageCount stays exactly one page ahead of wherever
962
+ // the pager currently is. That keeps `next` enabled indefinitely
963
+ // (never a false "last page") without inventing a fake total; the
964
+ // moment range-total resolves to a real number, this branch stops
965
+ // firing and the real ceil(...) math above takes over.
966
+ if (this.#rangeOpen) return this.#page + 2;
936
967
  if (this.#serverMode) return Math.max(1, Math.ceil(this.#safeRangeTotal() / this.paginate));
937
968
  // pageCount should reflect filtered data, not raw data
938
969
  const filteredCount = this.#getProcessedIndices().length;
@@ -1054,8 +1085,12 @@ export class UITable extends UIElement {
1054
1085
  // `data.length > 0` term: an in-flight fetch (momentarily empty `.data`)
1055
1086
  // must not flicker the pager away, so visibility gates on `range-total`
1056
1087
  // instead.
1088
+ // gh#1877/ADR-0082 Amendment — an open/unproven total (REQ-D-003
1089
+ // widened) always shows the pager while server mode is active: there's
1090
+ // no confirmed-zero signal to gate on yet, and hiding it would read as
1091
+ // "no more rows" when the real answer is "unknown, keep going".
1057
1092
  const showPagination = this.paginate > 0 && !this.noPager
1058
- && (this.#serverMode ? this.#safeRangeTotal() > 0 : this.#data.length > 0);
1093
+ && (this.#serverMode ? (this.#rangeOpen || this.#safeRangeTotal() > 0) : this.#data.length > 0);
1059
1094
  let footer = this.querySelector(':scope > [data-footer]');
1060
1095
 
1061
1096
  if (showPagination) {
@@ -104,8 +104,8 @@ export class UITable extends UIElement {
104
104
  noPager: boolean;
105
105
  /** Rows per page. 0 = show all rows without pagination. When > 0, renders the internal pagination bar below the table — UNLESS [no-pager] is also set (gh#1807, ADR-0080), which keeps [paginate]'s slicing/page-state/`page`-event/`footer-page`-listener behavior but suppresses only the bar itself (the anti-doubled-pager path for a table-footer-ui composition). When [range-total] is also set (gh#1754, ADR-0082), [paginate] becomes purely presentational — it supplies only the page-size for pager math; no local slicing runs. */
106
106
  paginate: number;
107
- /** Total row count across ALL server pages (gh#1754, ADR-0082) — the table-authoritative server-mode data contract. Presence-gated: the attribute's PRESENCE, not its value, is the mode switch (checked via hasAttribute, never the coerced value alone — the same discipline table-footer-ui's own [range-total] ships). Absent (the default) means client mode: today's behavior exactly, [paginate] slices `.data` as always. Present with [paginate] > 0 means server mode: no local slicing (`.data` IS the current page and renders whole, after local search/sort/filter), the internal pager's page count becomes `max(1, ceil(range-total / paginate))` (one calc site, consolidated), and the internal page-reset sites (`data` set, `setFilter`, `clearFilters`) are suppressed so a fetch write-back never fights the pager back to page 0 — page state then moves only via pager interaction, the `footer-page` command, or `setState()`. The existing `page` event (0-based, unchanged) becomes the fetch trigger: the consumer listens for it, fetches that server page, and writes `.data` back. Explicit `range-total="0"` is server-confirmed empty (pager hidden), never conflated with absent. With [paginate] absent/0, [range-total] is inert for this table's own rendering but stays readable by a bound table-footer-ui (REQ-W-006 branch 2) for its count-only label — see the footer-authoritative shape below, which remains lawful and is unaffected by this attribute. Named identically to table-toolbar-ui's and table-footer-ui's own [range-total] (rows, never `pagination-ui[total]`'s pages — the ADR-0063 B5 collision rule); a third instance of one name for one concept. */
108
- rangeTotal: number;
107
+ /** Total row count across ALL server pages (gh#1754, ADR-0082) — the table-authoritative server-mode data contract. Presence-gated: the attribute's PRESENCE, not its value, is the mode switch (checked via hasAttribute, never the coerced value alone — the same discipline table-footer-ui's own [range-total] ships). Absent (the default) means client mode: today's behavior exactly, [paginate] slices `.data` as always. Present with [paginate] > 0 means server mode: no local slicing (`.data` IS the current page and renders whole, after local search/sort/filter), the internal pager's page count becomes `max(1, ceil(range-total / paginate))` (one calc site, consolidated), and the internal page-reset sites (`data` set, `setFilter`, `clearFilters`) are suppressed so a fetch write-back never fights the pager back to page 0 — page state then moves only via pager interaction, the `footer-page` command, or `setState()`. The existing `page` event (0-based, unchanged) becomes the fetch trigger: the consumer listens for it, fetches that server page, and writes `.data` back. Explicit `range-total="0"` is server-confirmed empty (pager hidden), never conflated with absent. With [paginate] absent/0, [range-total] is inert for this table's own rendering but stays readable by a bound table-footer-ui (REQ-W-006 branch 2) for its count-only label — see the footer-authoritative shape below, which remains lawful and is unaffected by this attribute. Named identically to table-toolbar-ui's and table-footer-ui's own [range-total] (rows, never `pagination-ui[total]`'s pages — the ADR-0063 B5 collision rule); a third instance of one name for one concept. Explicit `range-total="?"` (gh#1877, ADR-0082 Amendment) is the OPEN/unproven-total state — cursor/hasMore server paging with no known row count yet: still server mode (still presence-gated), but the internal pager's page count stays exactly one page ahead of wherever the pager currently sits (never a fixed ceil(...) total), keeping `next` enabled indefinitely instead of hiding the pager the way a confirmed `range-total="0"` would. Resolves to the normal finite server-mode behavior the instant a real number replaces the "?" — every reader downstream (table-toolbar-ui, table-footer-ui) shares this same distinction. Note: since this prop is Number-typed and reflected, the framework's own attribute-reflection immediately rewrites the DOM attribute to the literal string "NaN" once "?" is parsed (`+"?"` → NaN, then stringified back onto the attribute) — the coerced numeric PROPERTY is what carries the open/unproven signal (non-finite), never a literal "?" surviving as the live DOM attribute value. */
108
+ rangeTotal: number | string;
109
109
  /** Visual-only passthrough — applies `<table-ui>`'s chrome reset (background / border / border-radius all transparent) AND short-circuits the data lifecycle entirely. The consumer owns the body shape: no header injection, no row reconciliation from `.data`, no empty-state / loading overlays, no aggregation or pagination footers. Use raw when embedding `<table-ui>` inside surfaces that supply their own chrome (e.g. `<card-ui><section bleed>`), or when wrapping a consumer-authored native `<table>` for design-token styling without the framework's data semantics. Note: a `<table-ui>` placed directly inside `<card-ui><section bleed>` drops the table's visual chrome automatically (card.css, gh#796) even without `raw` — `raw` is still required to also short-circuit the data lifecycle. Pre-v0.6.33 (FB-53 §2) `raw` was visual-only and the data lifecycle still ran — wrapping a `.data`-unset native table produced a phantom "No data" overlay. v0.6.33+ matches the documented contract. */
110
110
  raw: boolean;
111
111
  /** Global search/filter string. Filters visible rows across all columns using case-insensitive substring matching. Does NOT reset the current page (verified against source at the gh#1754/ADR-0082 build — unlike setFilter()/clearFilters(), no internal page reset ever ran for a search change; this description previously claimed "resets to page 1 on change," which the source never did). Aligning the doc to observed behavior here, not a behavior change — a page reset on search, if wanted, is a separate client-mode ticket. */
@@ -98,7 +98,23 @@ props:
98
98
  to table-toolbar-ui's and table-footer-ui's own [range-total]
99
99
  (rows, never `pagination-ui[total]`'s pages — the ADR-0063 B5
100
100
  collision rule); a third instance of one name for one concept.
101
- type: number
101
+ Explicit `range-total="?"` (gh#1877, ADR-0082 Amendment) is the
102
+ OPEN/unproven-total state — cursor/hasMore server paging with no
103
+ known row count yet: still server mode (still presence-gated), but
104
+ the internal pager's page count stays exactly one page ahead of
105
+ wherever the pager currently sits (never a fixed ceil(...) total),
106
+ keeping `next` enabled indefinitely instead of hiding the pager the
107
+ way a confirmed `range-total="0"` would. Resolves to the normal
108
+ finite server-mode behavior the instant a real number replaces the
109
+ "?" — every reader downstream (table-toolbar-ui, table-footer-ui)
110
+ shares this same distinction. Note: since this prop is Number-typed
111
+ and reflected, the framework's own attribute-reflection immediately
112
+ rewrites the DOM attribute to the literal string "NaN" once "?" is
113
+ parsed (`+"?"` → NaN, then stringified back onto the attribute) —
114
+ the coerced numeric PROPERTY is what carries the open/unproven
115
+ signal (non-finite), never a literal "?" surviving as the live DOM
116
+ attribute value.
117
+ type: [number, string]
102
118
  default: 0
103
119
  reflect: true
104
120
  filteredCount:
@@ -31,11 +31,24 @@
31
31
  "type": "number",
32
32
  "default": 0
33
33
  },
34
- "range-total": {
35
- "description": "Total ROWS across all pages. Absent (the default) means \"not yet known\" (loading) — never \"zero\"; both the range label and the pager stay hidden until this is set. Explicit range-total=\"0\" is the confirmed-empty state (pager hidden; the `empty` slot renders in the range label's position when supplied). Named identically to table-toolbar-ui's [range-total] and table-ui's own [range-total] (gh#1754, ADR-0082) and deliberately NOT `total` (pagination-ui's `total` is total PAGES the ADR-0063 B5 collision rule). When this attribute is unset, the footer derives it from the resolved target via a two-branch ladder (REQ-W-006, amended 0.2.0/ADR-0082): (1) the target's own [range-total] attribute, when present — the table-authoritative SERVER mode (gh#1754 Shape 1's second lawful composition); the identity rule: the footer's range-total derives from the table's range-total, never the table's filteredCount, and this branch wins even when the target's [paginate] is also > 0; (2) otherwise, when the target has [paginate] > 0, CLIENT mode: the target's filtered row count (search + column filters applied, before pagination). Refreshes on the target's `page` / `filter-change` / `sort` events in either branch. Widened named staleness edge: a programmatic `.data` swap on the target — or a `range-total` update on the target without an accompanying page move — emits no event; either re-set this footer's own attributes after such a change, or accept staleness until the target's next event.",
34
+ "range-noun": {
35
+ "description": "gh#1877, ADR-0082 Amendmentoptional per-slice noun appended after the range total (\"of 80 users\") so consumers stop hand-painting the noun themselves. Applies in both the normal finite range text and the open/unproven-total text (\"Showing 51–100 users\" with no \"of N\"). Unset (the default) changes nothing. Named identically on table-toolbar-ui (ADR-0082 §\"same name on both companions\").",
36
+ "type": "string",
37
+ "default": ""
38
+ },
39
+ "range-of": {
40
+ "description": "gh#1877, ADR-0082 Amendment — secondary whole-set total for the \"filtered-of-whole\" shape: a client-side facet narrows [range-total] (a filtered count) while range-of names the unfiltered set size, e.g. \"Showing 1–4 of 4 traversals (6 total)\". Appends \"(of <range-of> total)\" onto the normal finite range text; unset (the default) changes nothing. Never applies while [range-total] is absent (loading) or \"?\" (open/unproven) — there's no finite range text to append onto yet. Named identically on table-toolbar-ui (ADR-0082 §\"same name on both companions\").",
36
41
  "type": "number",
37
42
  "default": 0
38
43
  },
44
+ "range-total": {
45
+ "description": "Total ROWS across all pages. Absent (the default) means \"not yet known\" (loading) — never \"zero\"; both the range label and the pager stay hidden until this is set. Explicit range-total=\"0\" is the confirmed-empty state (pager hidden; the `empty` slot renders in the range label's position when supplied). Named identically to table-toolbar-ui's [range-total] and table-ui's own [range-total] (gh#1754, ADR-0082) and deliberately NOT `total` (pagination-ui's `total` is total PAGES — the ADR-0063 B5 collision rule). Explicit range-total=\"?\" (gh#1877, ADR-0082 Amendment) is the OPEN/unproven- total state — cursor/hasMore server paging with no known row count yet: the range label renders \"Showing X–Y\" with no \"of N\", and the pager stays in has-more mode (next enabled) rather than hiding — distinct from both \"loading\" (attribute absent) and \"confirmed empty\" (range-total=\"0\"). Resolves to the normal finite behavior the moment a real number replaces the \"?\". When this attribute is unset, the footer derives it from the resolved target via a two-branch ladder (REQ-W-006, amended 0.2.0/ADR-0082): (1) the target's own [range-total] attribute, when present — the table-authoritative SERVER mode (gh#1754 Shape 1's second lawful composition; the target's own \"?\" carries through identically); the identity rule: the footer's range-total derives from the table's range-total, never the table's filteredCount, and this branch wins even when the target's [paginate] is also > 0; (2) otherwise, when the target has [paginate] > 0, CLIENT mode: the target's filtered row count (search + column filters applied, before pagination). Refreshes on the target's `page` / `filter-change` / `sort` events in either branch. Widened named staleness edge: a programmatic `.data` swap on the target — or a `range-total` update on the target without an accompanying page move — emits no event; either re-set this footer's own attributes after such a change, or accept staleness until the target's next event.",
46
+ "type": [
47
+ "number",
48
+ "string"
49
+ ],
50
+ "default": 0
51
+ },
39
52
  "siblings": {
40
53
  "description": "Passed through to the composed pagination-ui's own [siblings] (page-number window size on each side of the current page).",
41
54
  "type": "number",
@@ -77,6 +90,11 @@
77
90
  "a2ui": "[\n {\"id\": \"root\", \"component\": \"Column\", \"gap\": \"0\", \"children\": [\"tests\", \"ftr\"]},\n {\"id\": \"tests\", \"component\": \"Table\", \"raw\": true},\n {\"id\": \"ftr\", \"component\": \"TableFooter\", \"for\": \"tests\", \"page\": 1, \"page-size\": 10, \"range-total\": 128}\n]",
78
91
  "name": "table-footer-server-mode"
79
92
  },
93
+ {
94
+ "description": "gh#1877, ADR-0082 Amendment — cursor/hasMore server mode with no known row count yet: [range-total=\"?\"] renders \"Showing 1–50 subscriptions\" (via [range-noun]) with `next` kept enabled until a real total resolves.",
95
+ "a2ui": "[\n {\"id\": \"root\", \"component\": \"Column\", \"gap\": \"0\", \"children\": [\"subs\", \"ftr\"]},\n {\"id\": \"subs\", \"component\": \"Table\", \"raw\": true},\n {\"id\": \"ftr\", \"component\": \"TableFooter\", \"for\": \"subs\", \"page\": 1, \"page-size\": 50, \"range-total\": \"?\", \"range-noun\": \"subscriptions\"}\n]",
96
+ "name": "table-footer-open-total"
97
+ },
80
98
  {
81
99
  "description": "Client-mode footer bound to a [paginate]d table-ui with its own internal pager suppressed via [no-pager].",
82
100
  "a2ui": "[\n {\"id\": \"root\", \"component\": \"Column\", \"gap\": \"0\", \"children\": [\"tests-c\", \"ftr\"]},\n {\"id\": \"tests-c\", \"component\": \"Table\", \"paginate\": 10, \"no-pager\": true, \"raw\": true},\n {\"id\": \"ftr\", \"component\": \"TableFooter\", \"for\": \"tests-c\"}\n]",