@adia-ai/web-components 0.8.43 → 0.8.44

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 (93) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/components/avatar/avatar.class.js +12 -1
  3. package/components/button/button.d.ts +4 -0
  4. package/components/chart/chart.a2ui.json +26 -0
  5. package/components/chart/chart.class.js +1304 -222
  6. package/components/chart/chart.css +151 -1
  7. package/components/chart/chart.d.ts +6 -0
  8. package/components/chart/chart.yaml +57 -0
  9. package/components/chart-legend/chart-legend.a2ui.json +17 -2
  10. package/components/chart-legend/chart-legend.class.js +69 -4
  11. package/components/chart-legend/chart-legend.css +65 -1
  12. package/components/chart-legend/chart-legend.d.ts +4 -2
  13. package/components/chart-legend/chart-legend.examples.md +4 -4
  14. package/components/chart-legend/chart-legend.yaml +43 -3
  15. package/components/combobox/combobox.a2ui.json +3 -0
  16. package/components/combobox/combobox.class.js +9 -8
  17. package/components/combobox/combobox.css +25 -4
  18. package/components/combobox/combobox.yaml +6 -0
  19. package/components/command/command.css +17 -1
  20. package/components/context-menu/context-menu.d.ts +2 -0
  21. package/components/heatmap/heatmap.a2ui.json +5 -0
  22. package/components/heatmap/heatmap.d.ts +2 -0
  23. package/components/heatmap/heatmap.yaml +8 -0
  24. package/components/input/input.a2ui.json +2 -2
  25. package/components/input/input.class.js +12 -7
  26. package/components/input/input.yaml +6 -5
  27. package/components/integration-card/integration-card.d.ts +2 -0
  28. package/components/noodles/noodles.a2ui.json +0 -15
  29. package/components/noodles/noodles.yaml +0 -12
  30. package/components/number-format/number-format.class.js +10 -0
  31. package/components/pagination/pagination.class.js +88 -4
  32. package/components/popover/popover.d.ts +2 -0
  33. package/components/progress/progress.class.js +11 -6
  34. package/components/range/range.class.js +9 -1
  35. package/components/select/select.a2ui.json +5 -1
  36. package/components/select/select.class.js +14 -14
  37. package/components/select/select.css +14 -1
  38. package/components/select/select.yaml +7 -1
  39. package/components/stream/stream.d.ts +2 -0
  40. package/components/table/table.a2ui.json +6 -1
  41. package/components/table/table.class.js +18 -1
  42. package/components/table/table.css +31 -6
  43. package/components/table/table.d.ts +3 -1
  44. package/components/table/table.examples.md +2 -2
  45. package/components/table/table.yaml +9 -1
  46. package/components/table-toolbar/table-toolbar.a2ui.json +28 -4
  47. package/components/table-toolbar/table-toolbar.class.js +346 -11
  48. package/components/table-toolbar/table-toolbar.css +265 -0
  49. package/components/table-toolbar/table-toolbar.d.ts +5 -1
  50. package/components/table-toolbar/table-toolbar.yaml +130 -15
  51. package/components/tag/tag.class.js +13 -1
  52. package/components/text/text.a2ui.json +3 -3
  53. package/components/text/text.d.ts +5 -3
  54. package/components/text/text.yaml +3 -3
  55. package/components/textarea/textarea.class.js +9 -1
  56. package/components/tour/tour.d.ts +10 -0
  57. package/core/a11y.d.ts +22 -0
  58. package/core/a11y.js +64 -0
  59. package/core/anchor.js +9 -5
  60. package/core/element.js +1 -1
  61. package/custom-elements.json +73 -29
  62. package/dist/host.min.css +1 -1
  63. package/dist/host.sheet.js +1 -1
  64. package/dist/theme-provider.min.js +1 -1
  65. package/dist/web-components.min.css +1 -1
  66. package/dist/web-components.min.js +119 -119
  67. package/dist/web-components.sheet.js +1 -1
  68. package/package.json +1 -1
  69. package/patterns/access-requests/access-requests.examples.html +1 -1
  70. package/patterns/admin-keys-and-export/admin-keys-and-export.examples.html +7 -7
  71. package/patterns/agent-cost/agent-cost.examples.html +6 -6
  72. package/patterns/agent-memory/agent-memory.examples.html +3 -3
  73. package/patterns/agent-prompt-library/agent-prompt-library.examples.html +8 -8
  74. package/patterns/agent-tool-call/agent-tool-call.examples.html +1 -1
  75. package/patterns/approvals/approvals.examples.html +6 -6
  76. package/patterns/audit-log/audit-log.examples.html +1 -1
  77. package/patterns/bulk-action-toolbar/bulk-action-toolbar.examples.html +4 -4
  78. package/patterns/chart-in-card/chart-in-card.examples.html +114 -0
  79. package/patterns/chart-in-card/chart-in-card.examples.js +37 -0
  80. package/patterns/comments-and-collaboration/comments-and-collaboration.examples.html +5 -5
  81. package/patterns/data-tables-inline-edit-and-tree/data-tables-inline-edit-and-tree.examples.html +2 -2
  82. package/patterns/diff-review/diff-review.examples.html +6 -6
  83. package/patterns/export-flow/export-flow.examples.html +2 -2
  84. package/patterns/filter-bar/filter-bar.examples.html +2 -2
  85. package/patterns/forms-conditional-and-autocomplete/forms-conditional-and-autocomplete.examples.html +2 -2
  86. package/patterns/inline-dialog/inline-dialog.examples.html +2 -2
  87. package/patterns/marketing-engagement/marketing-engagement.examples.html +4 -4
  88. package/patterns/notifications-bell-and-digest/notifications-bell-and-digest.examples.html +1 -1
  89. package/patterns/permissions-matrix/permissions-matrix.examples.html +1 -1
  90. package/patterns/permissions-sharing/permissions-sharing.examples.html +2 -2
  91. package/patterns/profile-public-and-verification/profile-public-and-verification.examples.html +4 -4
  92. package/patterns/search-discovery/search-discovery.examples.html +2 -2
  93. package/styles/type/roles.css +29 -9
@@ -18,6 +18,7 @@
18
18
  */
19
19
 
20
20
  import { UIFormElement } from '../../core/form.js';
21
+ import { syncAutoAriaLabel } from '../../core/a11y.js';
21
22
 
22
23
  export class UITextarea extends UIFormElement {
23
24
  static labelDeprecated = false; // §170 (v0.5.4): label is first-class per textarea.yaml
@@ -32,6 +33,10 @@ export class UITextarea extends UIFormElement {
32
33
  static template = () => null;
33
34
 
34
35
  #textEl = null;
36
+ // gh#1647: tracks the aria-label VALUE this element itself last derived
37
+ // from `label`/`placeholder` (undefined when none) — value-tracking
38
+ // guard ported from tag.class.js/select.class.js (gh#1644/#1646).
39
+ #lastAutoAriaLabel = undefined;
35
40
 
36
41
  connected() {
37
42
  super.connected();
@@ -82,7 +87,10 @@ export class UITextarea extends UIFormElement {
82
87
  const label = this.querySelector('[slot="label"]');
83
88
  if (label && this.label) label.setAttribute('label', this.label);
84
89
 
85
- this.setAttribute('aria-label', this.label || this.placeholder || '');
90
+ // A11y (gh#1647): never clobber a consumer's own aria-label
91
+ // (value-tracking guard, gh#1644/#1646).
92
+ const ariaSource = this.label || this.placeholder || '';
93
+ this.#lastAutoAriaLabel = syncAutoAriaLabel(this, this.#lastAutoAriaLabel, ariaSource);
86
94
  }
87
95
 
88
96
  #onInput = () => {
@@ -43,10 +43,20 @@ export class UITour extends UIElement {
43
43
  the spotlight + popover; setting to `false` tears down.
44
44
  */
45
45
  active: boolean;
46
+ /** Start the tour automatically when the element connects. Useful for
47
+ first-run flows gated by a storage flag on the consumer side.
48
+ */
49
+ autoStart: boolean;
46
50
  /** Current step index (0-based). Setting this property advances the
47
51
  tour to that step (updating spotlight + popover position).
48
52
  */
49
53
  step: number;
54
+ /** Optional localStorage key. When set, the tour records its
55
+ completion state (`"done"`) to that key on finish/skip — and
56
+ refuses to auto-start on subsequent loads if the key is "done".
57
+ Useful for "show this tour once per user" flows.
58
+ */
59
+ storageKey: string;
50
60
 
51
61
  addEventListener(type: 'tour-finish', listener: (ev: TourFinishEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
52
62
  addEventListener(type: 'tour-skip', listener: (ev: TourSkipEvent) => unknown, options?: boolean | AddEventListenerOptions): void;
package/core/a11y.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ /**
2
+ * core/a11y.js — shared accessible-name authorship guard.
3
+ *
4
+ * See the runtime module's own JSDoc for the full contract and the usage
5
+ * pattern (gh#1644 / gh#1646 / gh#1647).
6
+ */
7
+
8
+ /**
9
+ * Reconcile an auto-derived `aria-label` against a possible consumer
10
+ * override, using a value-tracking guard rather than a plain boolean flag.
11
+ *
12
+ * @param el - the host element.
13
+ * @param lastAuto - the value this component wrote last time (`undefined`
14
+ * = no active auto-derived value, either never set or consumer-owned).
15
+ * @param source - the label this render would derive; falsy = no auto name.
16
+ * @returns the new `lastAuto` to store back in the caller's own field.
17
+ */
18
+ export function syncAutoAriaLabel(
19
+ el: HTMLElement,
20
+ lastAuto: string | undefined,
21
+ source: string,
22
+ ): string | undefined;
package/core/a11y.js ADDED
@@ -0,0 +1,64 @@
1
+ /**
2
+ * core/a11y.js — shared accessible-name authorship guard.
3
+ *
4
+ * Ports the value-tracking guard proven on `tag.class.js`'s
5
+ * `#syncAccessibleName` (gh#1644 / PR #1645) and `select.class.js`'s
6
+ * `labeledElsewhere` variant (gh#1646 / PR #1648) into one shared helper,
7
+ * so every primitive that derives its own `aria-label` doesn't need to
8
+ * reimplement the compare-against-what-we-last-wrote logic (gh#1647).
9
+ *
10
+ * A plain boolean "did we ever set it" flag isn't enough: a consumer can
11
+ * overwrite `aria-label` directly via `setAttribute` at any point BETWEEN
12
+ * renders, bypassing the flag entirely. This guard instead compares the
13
+ * CURRENT attribute value against the value THIS component last wrote —
14
+ * a mismatch means a consumer has taken ownership, and auto-derivation
15
+ * stops until the source value the caller passes in changes again.
16
+ *
17
+ * Per-component gating (e.g. select-ui's `labeledElsewhere` — don't
18
+ * auto-name when a visible `label` or `aria-labelledby` already names the
19
+ * element, or don't auto-name off a default/placeholder-only value) is
20
+ * the CALLER's job: resolve the source string to '' when no auto name
21
+ * should apply this render, and pass the real derived string otherwise.
22
+ * This helper only ever reconciles "what we'd write" against "what's
23
+ * there now, and did we write it" — it carries no per-component policy.
24
+ *
25
+ * Usage (per component):
26
+ *
27
+ * import { syncAutoAriaLabel } from '../../core/a11y.js';
28
+ *
29
+ * #lastAutoAriaLabel = undefined;
30
+ *
31
+ * #syncAccessibleName() {
32
+ * const source = <derive the label this render, or '' for none>;
33
+ * this.#lastAutoAriaLabel = syncAutoAriaLabel(this, this.#lastAutoAriaLabel, source);
34
+ * }
35
+ *
36
+ * Call `#syncAccessibleName()` early in `render()`, before any other
37
+ * aria-* bookkeeping that might read the (possibly just-changed)
38
+ * `aria-label` attribute.
39
+ *
40
+ * @param {HTMLElement} el
41
+ * @param {string | undefined} lastAuto - the value this component wrote
42
+ * last time (`undefined` = the component has never derived a name for
43
+ * the CURRENT attribute value, either because it never has, or because
44
+ * a consumer has since taken ownership).
45
+ * @param {string} source - the label the component would derive right
46
+ * now. Empty string (or any other falsy value) means "no auto name" —
47
+ * any auto-set label is removed.
48
+ * @returns {string | undefined} the new `lastAuto` value — store this
49
+ * back into the caller's own private field.
50
+ */
51
+ export function syncAutoAriaLabel(el, lastAuto, source) {
52
+ const current = el.getAttribute('aria-label');
53
+ if (lastAuto !== undefined && current !== lastAuto) {
54
+ lastAuto = undefined; // a consumer took ownership between renders
55
+ }
56
+ const authored = current !== null && lastAuto === undefined;
57
+ if (authored) return lastAuto;
58
+ if (source) {
59
+ if (current !== source) el.setAttribute('aria-label', source);
60
+ return source;
61
+ }
62
+ if (current !== null) el.removeAttribute('aria-label');
63
+ return undefined;
64
+ }
package/core/anchor.js CHANGED
@@ -127,11 +127,15 @@ function anchorNative(anchor, popover, { placement, gap, matchWidth }) {
127
127
  };
128
128
  }
129
129
 
130
- // Resolve a --popover-max-height declaration to px. The convention's consumers
131
- // declare px (JS-measured caps) or rem (stylesheet defaults); anything else
132
- // (calc, var chains, empty) returns NaN and the caller falls back to content
133
- // height. Kept deliberately narrow this feeds a fit DECISION, not layout.
134
- function resolveLengthPx(raw) {
130
+ // Resolve a px/rem CSS custom-property declaration to px. Originally scoped
131
+ // to --popover-max-height (consumers declare px, JS-measured caps, or rem,
132
+ // stylesheet defaults); exported (ADR-0076, table-toolbar-ui's stage-
133
+ // resolution breakpoints, PLAN step 7) since a second, unrelated consumer
134
+ // needs the identical px/rem-only resolution — anything else (calc, var
135
+ // chains, empty) returns NaN and the caller falls back to its own default.
136
+ // Kept deliberately narrow — this feeds a classification DECISION, not
137
+ // layout, in both consumers.
138
+ export function resolveLengthPx(raw) {
135
139
  const v = String(raw || '').trim();
136
140
  if (!v) return NaN;
137
141
  const m = /^(-?\d+(?:\.\d+)?)(px|rem)$/.exec(v);
package/core/element.js CHANGED
@@ -91,7 +91,7 @@ function reflect(el, a, v, t) {
91
91
  }
92
92
 
93
93
  const parseAttr = (v, t) =>
94
- t === Boolean ? v !== null : t === Number ? (v === null ? null : +v) : v;
94
+ t === Boolean ? v !== null && v !== 'false' : t === Number ? (v === null ? null : +v) : v;
95
95
 
96
96
  function adoptStyles(ctor) {
97
97
  if (Object.hasOwn(ctor, '_sa')) return;
@@ -1938,7 +1938,7 @@
1938
1938
  "type": {
1939
1939
  "text": "string"
1940
1940
  },
1941
- "description": "JSON array of {key, label, slot?, pct?} legend items. Takes precedence over [for] when both are provided."
1941
+ "description": "JSON array of {key, label, slot?, pct?, deemphasized?} legend items. Takes precedence over [for] when both are provided. `deemphasized` (REQ-R-007) mutes the row's swatch/label to the same muted-neutral tier chart-ui's own internal legend uses for a de-emphasized series (e.g. `composed@1:1`'s secondary line) — mirrored automatically from a `[for]`-bound chart's own `.legendData`, or settable explicitly here."
1942
1942
  },
1943
1943
  {
1944
1944
  "name": "shape",
@@ -1954,7 +1954,14 @@
1954
1954
  "text": "string"
1955
1955
  },
1956
1956
  "default": "bottom",
1957
- "description": "Layout hint — drives flex-direction. Actual placement follows DOM order."
1957
+ "description": "Layout hint — drives flex-direction. Actual placement follows DOM order. Superseded by a resolved `ratio` bucket (below) whenever one is in effect; this is the pre-ADR-0074 fallback for a legend with neither an explicit `ratio` nor a `[for]`-bound chart."
1958
+ },
1959
+ {
1960
+ "name": "ratio",
1961
+ "type": {
1962
+ "text": "string"
1963
+ },
1964
+ "description": "Chart 2.0 legend layout bucket (ADR-0074, gh#1624 plan step 5, REQ-R-005): 3:2 renders a horizontal row, 1:1 a wrapped 2-column grid, 2:3 a vertical stacked list. An explicit value PINS the bucket regardless of any bound chart. Unset (default) auto-mirrors the `[for]`-bound chart's own resolved `data-ratio-resolved` bucket — the legend never runs its own container-query classification, since its own box is typically a thin strip with no studied aspect of its own. With neither a pin nor a bound chart, no bucket resolves and `position`'s flex-direction rules apply unchanged. The resolved bucket reflects read-only onto the host as `data-ratio-resolved`, mirroring chart-ui's own convention."
1958
1965
  },
1959
1966
  {
1960
1967
  "name": "interactive",
@@ -2077,6 +2084,13 @@
2077
2084
  },
2078
2085
  "description": "Chart size"
2079
2086
  },
2087
+ {
2088
+ "name": "ratio",
2089
+ "type": {
2090
+ "text": "string"
2091
+ },
2092
+ "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)."
2093
+ },
2080
2094
  {
2081
2095
  "name": "smooth",
2082
2096
  "type": {
@@ -2108,6 +2122,22 @@
2108
2122
  "default": "false",
2109
2123
  "description": "Show a skeleton placeholder instead of the chart body. Set to true while data is being fetched; clear once data arrives. Preserves the element's aspect-ratio dimensions so the skeleton occupies the same space the chart will fill. Parity with stat-ui[loading] and table-ui[loading] (§FB-12, v0.6.27)."
2110
2124
  },
2125
+ {
2126
+ "name": "y-min",
2127
+ "type": {
2128
+ "text": "number"
2129
+ },
2130
+ "default": "null",
2131
+ "description": "Pins the value-axis domain floor for cartesian types (bar, line, area, scatter, multi-line, stacked-bar, grouped-bar, composed). Unset (default, null) already floors a positive series at 0 (the pre-1690 behavior, unchanged) — a migrating d3 consumer's own \"pin the floor to 0\" habit is the built-in default, not something to configure. Pin `y-min` explicitly for three OTHER cases: (1) zooming a narrow window — e.g. `y-min=\"0.9\" y-max=\"1\"` magnifies a percent series clustered near 92-95%, which reads flatter against the full auto-scaled [0,1] domain; (2) a mixed-sign series, where the unpinned floor never goes below 0 and negative values clip at the axis; (3) aligning two charts to one shared scale for a fair comparison. N/A for radial/part-to-whole types (pie, donut, radar, radial-bar, gauge, funnel, treemap, sankey, segments, sparkline) — those never read a shared linear value axis, so this prop is a no-op there (gh#1690). A datum outside the pinned domain is CLAMPED to the nearest edge for rendering (the value label/tooltip still shows the real value) rather than escaping the plot box."
2132
+ },
2133
+ {
2134
+ "name": "y-max",
2135
+ "type": {
2136
+ "text": "number"
2137
+ },
2138
+ "default": "null",
2139
+ "description": "Pins the value-axis domain ceiling for cartesian types (bar, line, area, scatter, multi-line, stacked-bar, grouped-bar, composed). Unset (default, null) keeps today's auto-scale ceiling (the data max). Pairs with `yMin` to pin the full domain; either may be set alone. N/A for radial/part-to-whole types — see `yMin` (gh#1690). A datum outside the pinned domain is CLAMPED to the nearest edge for rendering (the value label/tooltip still shows the real value) rather than escaping the plot box."
2140
+ },
2111
2141
  {
2112
2142
  "name": "x",
2113
2143
  "type": {
@@ -4564,6 +4594,13 @@
4564
4594
  "default": "wide",
4565
4595
  "description": "Aspect ratio"
4566
4596
  },
4597
+ {
4598
+ "name": "data",
4599
+ "type": {
4600
+ "text": "string"
4601
+ },
4602
+ "description": "Cell data as a JSON array of `{ r, c, v, label? }` objects, or set the `.data` property directly with an already-parsed array. Parsed on connect if the attribute is present and `.data` hasn't already been set programmatically."
4603
+ },
4567
4604
  {
4568
4605
  "name": "color-scheme",
4569
4606
  "type": {
@@ -6566,14 +6603,6 @@
6566
6603
  "default": "false",
6567
6604
  "description": "Allow interactive creation/deletion of connections via drag"
6568
6605
  },
6569
- {
6570
- "name": "port-size",
6571
- "type": {
6572
- "text": "number"
6573
- },
6574
- "default": "10",
6575
- "description": "Port indicator dot size in pixels"
6576
- },
6577
6606
  {
6578
6607
  "name": "port-size",
6579
6608
  "type": {
@@ -6590,14 +6619,6 @@
6590
6619
  "default": "false",
6591
6620
  "description": "View-only mode; disables drag/edit while keeping connections visible"
6592
6621
  },
6593
- {
6594
- "name": "show-ports",
6595
- "type": {
6596
- "text": "boolean"
6597
- },
6598
- "default": "false",
6599
- "description": "Show port indicator dots. Defaults to true when editable"
6600
- },
6601
6622
  {
6602
6623
  "name": "show-ports",
6603
6624
  "type": {
@@ -6606,14 +6627,6 @@
6606
6627
  "default": "false",
6607
6628
  "description": "Show port indicators"
6608
6629
  },
6609
- {
6610
- "name": "stroke-width",
6611
- "type": {
6612
- "text": "number"
6613
- },
6614
- "default": "2",
6615
- "description": "Stroke width in pixels"
6616
- },
6617
6630
  {
6618
6631
  "name": "stroke-width",
6619
6632
  "type": {
@@ -9890,7 +9903,7 @@
9890
9903
  "declarations": [
9891
9904
  {
9892
9905
  "kind": "class",
9893
- "description": "Header / companion bar for a sibling table-ui. Renders an optional leading [slot=\"scope\"] region, title + count badge, an optional \"Showing X–Y of N\" range summary, filter / sort / columns popovers, a search input, an optional page-size select, and a trailing [slot=\"actions\"] region — all wired to the target table via an [for] id-ref. Modeled on chart-legend-ui's [for] binding pattern. Drop next to (or above) any table-ui to add the standard data-grid toolbar without re-implementing search, filter, sort, column visibility, or pagination summary/page-size. Filter rows auto-pick a primitive per column: ≤ 50 distinct values → multi-select (searchable when ≥ 12 options), id-like keys → free-text contains. The column descriptor's `filter` field overrides the auto-detect: `'select'` forces multi-select even on high-cardinality columns; `'text'` forces a contains input even on small enums.",
9906
+ "description": "Header / companion bar for a sibling table-ui. Renders an optional leading [slot=\"scope\"] region, title + count badge, an optional \"Showing X–Y of N\" range summary, filter / sort / columns popovers, a search input, an optional [slot=\"actions-leading\"] region, an optional page-size select, and a trailing [slot=\"actions\"] region — all wired to the target table via an [for] id-ref. Modeled on chart-legend-ui's [for] binding pattern. Drop next to (or above) any table-ui to add the standard data-grid toolbar without re-implementing search, filter, sort, column visibility, or pagination summary/page-size. Filter rows auto-pick a primitive per column: ≤ 50 distinct values → multi-select (searchable when ≥ 12 options), id-like keys → free-text contains. The column descriptor's `filter` field overrides the auto-detect: `'select'` forces multi-select even on high-cardinality columns; `'text'` forces a contains input even on small enums.",
9894
9907
  "name": "UITableToolbar",
9895
9908
  "tagName": "table-toolbar-ui",
9896
9909
  "superclass": {
@@ -9991,6 +10004,21 @@
9991
10004
  "default": "false",
9992
10005
  "description": "Hide the search input. Search is shown by default; set to opt out."
9993
10006
  },
10007
+ {
10008
+ "name": "stage",
10009
+ "type": {
10010
+ "text": "string"
10011
+ },
10012
+ "description": "Explicit compaction-stage override (ADR-0076). Unset (the default, empty string) means auto-snap: the toolbar's own inline-size container query picks the nearest stage from its live width against the three --table-toolbar-bp-* breakpoints, snapping discretely, never interpolating. Setting stage explicitly pins that stage's rendering regardless of the container's actual width — overriding the container query, mirroring chart-ui's ratio override shape. Primary use: visual-eval fixtures that need a deterministic stage without resizing a real container, and a consumer embedding the toolbar inside a known-narrow panel who wants to skip auto-detection entirely. All four stages' CSS is now live (ADR-0076): search-tight steps the search field down (step 2); icon-only drops control labels and compacts/hides the range summary (steps 3+4); overflow collapses Filter/Sort/Columns into one \"More\" trigger routed through the same menu-ui/menu-item-ui pattern used elsewhere in the corpus (step 5). The resolved stage — the pin if set, otherwise the live width classification — also reflects onto the host as `data-stage-resolved` (step 7, informational only, mirrors chart-ui's `data-ratio-resolved` convention — never drives table-toolbar's own rendering, which stays 100% CSS-driven)."
10013
+ },
10014
+ {
10015
+ "name": "chrome-only",
10016
+ "type": {
10017
+ "text": "boolean"
10018
+ },
10019
+ "default": "false",
10020
+ "description": "Suppress all four native controls/search at once (filter, sort, columns, search) as additive sugar over noFilter/noSort/noColumns/ noSearch (ADR-0076, ADIA2-9123). Precedence is pure, absolute OR — while set, all four stay off regardless of any individual no-* attribute's own value, with no partial re-enable path; to re-enable one control, remove chrome-only entirely and set the other three no-* attributes explicitly instead. The four granular attributes are not deprecated or removed — they remain the independently-addressable shipped API; chrome-only never replaces them, it's a convenience preset on top."
10021
+ },
9994
10022
  {
9995
10023
  "name": "placeholder",
9996
10024
  "type": {
@@ -10013,9 +10041,17 @@
10013
10041
  "name": "scope",
10014
10042
  "description": "Leading region rendered BEFORE the [text]/[count] title cluster — e.g. a scope/view-switcher menu (an org's teams, a saved view). Positioning is CSS by DOM order, mirroring how [slot=\"actions\"] is a real, author-fillable insertion point rather than template-stamped content."
10015
10043
  },
10044
+ {
10045
+ "name": "empty",
10046
+ "description": "Renders in place of the range-summary text — the same [data-summary] region — when [range-total] is EXPLICITLY present and equal to \"0\" (checked via hasAttribute, never the computed value alone, so an unset range-total during loading never flashes this content; ADR-0076, REQ-E-001). Mutually exclusive with a positive [range-total]: the normal \"Showing X-Y of N\" text always wins whenever range-total is a positive number. Empty (the default) preserves today's exact behavior — [data-summary] hides on a confirmed range-total=\"0\" exactly as before this slot existed. Plain author-supplied markup (text, an empty-state-ui composite, an icon+text pair) — table-toolbar does not template or constrain its shape. Naming matches chart-ui's own existing `empty` slot convention."
10047
+ },
10048
+ {
10049
+ "name": "actions-leading",
10050
+ "description": "Region rendered AFTER the search input and BEFORE the native page-size select (gh#1649) — for app-owned trigger buttons (e.g. custom Filter / Columns triggers that open the consumer's own drawer instead of the native filter/columns popovers) that must land ahead of the page-size select rather than after it, unlike [slot=\"actions\"]. Same real-insertion-point pattern as [slot=\"scope\"] / [slot=\"actions\"] — positioning is CSS by DOM order, not a template stamp. Empty (the default) has zero footprint on existing consumers."
10051
+ },
10016
10052
  {
10017
10053
  "name": "actions",
10018
- "description": "Trailing action area — primary buttons (e.g. \"New row\") rendered after the search input."
10054
+ "description": "Trailing action area — primary buttons (e.g. \"New row\") rendered after the search input, [slot=\"actions-leading\"], and the page-size select."
10019
10055
  }
10020
10056
  ],
10021
10057
  "events": [
@@ -10088,7 +10124,7 @@
10088
10124
  "text": "array"
10089
10125
  },
10090
10126
  "default": "[]",
10091
- "description": "Column definitions. Array of {key, label, type?, width?, minWidth?, maxWidth?, flex?, sortable?, resizable?, filterable?, pinned?, hidden?, wrap?, valign?, accessor?, format?, render?, sortFn?, filterType?, meta?}. `valign` ('top'|'center') overrides the host [valign] for that column's body cells only — header cells always stay centered. Alternative to declarative <col-def> children (<col-def valign=\"top\">); col-def also accepts `meta` as a JSON attribute (gh#925) — e.g. <col-def type=\"badge\" meta='{\"variants\":{\"Online\":\"success\"}}'> — so cell-type meta (badge variant maps, currency codes) is expressible in static HTML."
10127
+ "description": "Column definitions. Array of {key, label, type?, width?, minWidth?, maxWidth?, flex?, sortable?, resizable?, filterable?, pinned?, hidden?, wrap?, valign?, accessor?, format?, render?, sortFn?, filterType?, meta?}. `valign` ('top'|'center') overrides the host [valign] for that column's body cells only — header cells always stay centered. Alternative to declarative <col-def> children (<col-def valign=\"top\">); col-def also accepts `meta` as a JSON attribute (gh#925) — e.g. <col-def type=\"badge\" meta='{\"variants\":{\"Online\":\"success\"}}'> — so cell-type meta (badge variant maps, currency codes) is expressible in static HTML. Truncation contract for `render` cells (gh#1681) — a `render(value, row, cell, dataIndex)` function's returned markup isn't guaranteed to be a bare <span>/<a> the way built-in cell types are, so single-line ellipsis truncation isn't automatic; set `data-truncate` on whichever rendered element (any tag, including a custom element) should single-line-ellipsis to opt it into the same contract built-in cells get for free. `[wrap]` (host) / `[data-wrap]` (per-column) override it back to multi-line, matching built-in cells."
10092
10128
  },
10093
10129
  {
10094
10130
  "name": "data",
@@ -10145,6 +10181,14 @@
10145
10181
  "default": "false",
10146
10182
  "description": "Show checkbox column for row selection. Select-all checkbox in header. Shift+click for"
10147
10183
  },
10184
+ {
10185
+ "name": "clickable-rows",
10186
+ "type": {
10187
+ "text": "boolean"
10188
+ },
10189
+ "default": "false",
10190
+ "description": "Renders body rows with `cursor: pointer`. `row-click` fires unconditionally whether or not a listener is attached, so the cursor can't be inferred from listener presence — set this explicitly when row-click behavior is wired up (master-detail, open-flyout, navigation) so rows read as actionable."
10191
+ },
10148
10192
  {
10149
10193
  "name": "sortable",
10150
10194
  "type": {