@adia-ai/a2ui 0.8.45 → 0.8.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/catalog/catalog-a2ui_0_9.json +183 -5
- package/catalog/catalog-a2ui_0_9_rules.txt +12 -3
- package/catalog/tier-index.json +9 -3
- package/package.json +1 -1
- package/registry.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5836,7 +5836,7 @@
|
|
|
5836
5836
|
"default": null
|
|
5837
5837
|
},
|
|
5838
5838
|
"data": {
|
|
5839
|
-
"description": "JS property (set programmatically — `el.data = [...]`). An array of plain objects; each object's keys are named by the `x` and `y` attributes — e.g. `<chart-ui x=\"month\" y=\"revenue\">` consumes `[{month:'Jan', revenue:3200}, {month:'Feb', revenue:4100}]`. The Chart.js `{labels, datasets}` envelope is NOT chart-ui's API — passing it (or any non-array value) renders an empty chart. May also be supplied declaratively as a JSON-array `data=\"[…]\"` attribute, hydrated once at connect. Custom accessor on the element class, not a reflected attribute.",
|
|
5839
|
+
"description": "JS property (set programmatically — `el.data = [...]`). An array of plain objects; each object's keys are named by the `x` and `y` attributes — e.g. `<chart-ui x=\"month\" y=\"revenue\">` consumes `[{month:'Jan', revenue:3200}, {month:'Feb', revenue:4100}]`. The Chart.js `{labels, datasets}` envelope is NOT chart-ui's API — passing it (or any non-array value) renders an empty chart. May also be supplied declaratively as a JSON-array `data=\"[…]\"` attribute, hydrated once at connect. Custom accessor on the element class, not a reflected attribute. A datum object carrying a truthy `provisional` key (ADR-0081) renders that period's type-specific incomplete-period treatment (hollow/dashed bar, dashed line + faded area, hollow ring dot) on cartesian types; a no-op on radial/part-to-whole types and sparkline (gh#1690's N/A list). Provisional state is per-datum data-shape, not a chart-ui attribute — see ADR-0081 §3.",
|
|
5840
5840
|
"$ref": "#/$defs/DynamicObjectList"
|
|
5841
5841
|
},
|
|
5842
5842
|
"dots": {
|
|
@@ -5861,6 +5861,16 @@
|
|
|
5861
5861
|
],
|
|
5862
5862
|
"default": "abbr"
|
|
5863
5863
|
},
|
|
5864
|
+
"labels": {
|
|
5865
|
+
"description": "Chart 2.0 axis-label mode (ADR-0081). Unset (default, \"\") always resolves to `outside` — today's pre-2.0 outside-the-plot axis labels, byte-for-byte unchanged. Set explicitly to `chip` to opt into the pill-treated overlay labels inset within the plot box (never hanging outside it) — the resolved value reflects onto the host as `data-labels-resolved=\"chip\"|\"outside\"`. Deliberately explicit-opt-in rather than auto-detected from full-bleed ancestry (`section[bleed]`/ `card-ui[padding=\"none\"]`): an earlier draft auto-activated chip mode on any full-bleed composition, which silently changed the rendering of every ALREADY-SHIPPED full-bleed chart the moment it shipped — this build's own 60-fixture Charts visual-eval floor caught it (2 `comp-chart-in-card-n-*` regressions). `chart-in-card` compositions opt in explicitly once their own examples are updated (gh#1805).",
|
|
5866
|
+
"type": "string",
|
|
5867
|
+
"enum": [
|
|
5868
|
+
"",
|
|
5869
|
+
"chip",
|
|
5870
|
+
"outside"
|
|
5871
|
+
],
|
|
5872
|
+
"default": ""
|
|
5873
|
+
},
|
|
5864
5874
|
"loading": {
|
|
5865
5875
|
"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).",
|
|
5866
5876
|
"type": "boolean",
|
|
@@ -5911,6 +5921,11 @@
|
|
|
5911
5921
|
"type": "number",
|
|
5912
5922
|
"default": 0.4
|
|
5913
5923
|
},
|
|
5924
|
+
"today": {
|
|
5925
|
+
"description": "Names the datum whose x-axis value marks \"today\" (ADR-0081). Unset (default, \"\") renders no marker — additive. Compared against each datum's x-key value via a loose string comparison (`String(datum[x]) === String(today)`), so category axes (\"month\", \"region\") work the same as literal date strings; chart-ui never auto-derives today from the clock. Renders a baseline dot + a short band tick (REQ-F-008) on cartesian types (bar, line, area, scatter, multi-line, stacked-bar, grouped-bar, composed); a no-op on every radial/part-to-whole type and on sparkline (gh#1690's N/A list). Fallback (not the primary mechanism): a datum already carrying a truthy `today` key is treated as an equivalent marker even with this attribute unset.",
|
|
5926
|
+
"type": "string",
|
|
5927
|
+
"default": ""
|
|
5928
|
+
},
|
|
5914
5929
|
"x": {
|
|
5915
5930
|
"description": "Data key for x-axis (category) values",
|
|
5916
5931
|
"type": "string",
|
|
@@ -25003,6 +25018,11 @@
|
|
|
25003
25018
|
"type": "boolean",
|
|
25004
25019
|
"default": false
|
|
25005
25020
|
},
|
|
25021
|
+
"filteredCount": {
|
|
25022
|
+
"description": "Read-only. The row count AFTER search + column filters apply but BEFORE pagination slices it (gh#1807, ADR-0080, REQ-W-006) — a plain JS getter, no setter, never a reflected attribute. table-footer-ui's client-mode range-total derivation reads this directly; a raw `.data.length` read (the toolbar's own `count` fallback precedent) would double-count a filtered-out row. In server mode ([range-total] set, gh#1754, ADR-0082), filteredCount stays page-scoped — the loaded page's rows after local filters, NOT the server total across all pages; [range-total] is the server total, filteredCount never is (REQ-D-006).",
|
|
25023
|
+
"type": "number",
|
|
25024
|
+
"readOnly": true
|
|
25025
|
+
},
|
|
25006
25026
|
"frameless": {
|
|
25007
25027
|
"description": "Drop the table's outer 1px perimeter and nothing else (gh#511) — row dividers are untouched (the perimeter is split onto its own --table-perimeter token, defaulting to --table-border). For card-composed tables: the card owns the frame, so the table's square perimeter otherwise renders a doubled edge (flush bleed) or a stray inner box (with content above). Standalone tables keep their chrome by default. Theming path without the attribute: set --table-perimeter to transparent per instance. Note: `<card-ui><section bleed>` already drops a direct-child table-ui's chrome automatically (card.css, gh#796) — `frameless`/`raw` on the instance still applies and is honored, but is no longer required just to avoid the doubled-edge look in that composition.",
|
|
25008
25028
|
"type": "boolean",
|
|
@@ -25013,8 +25033,18 @@
|
|
|
25013
25033
|
"type": "boolean",
|
|
25014
25034
|
"default": false
|
|
25015
25035
|
},
|
|
25036
|
+
"no-pager": {
|
|
25037
|
+
"description": "Hide the internal pagination bar while leaving [paginate] slicing, page state, the `page` event, and the `footer-page` command listener all intact (gh#1807, ADR-0080). The anti-doubled-pager mechanism for a table-footer-ui composition, client- or server-mode alike (gh#1754, ADR-0082): without it, a bound footer's own composed pager and the table's own internal one would both render for any non-empty paginated table. Explicit author intent — never suppressed automatically just because a footer happens to be bound.",
|
|
25038
|
+
"type": "boolean",
|
|
25039
|
+
"default": false
|
|
25040
|
+
},
|
|
25016
25041
|
"paginate": {
|
|
25017
|
-
"description": "Rows per page. 0 = show all rows without pagination. When > 0, renders
|
|
25042
|
+
"description": "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.",
|
|
25043
|
+
"type": "number",
|
|
25044
|
+
"default": 0
|
|
25045
|
+
},
|
|
25046
|
+
"range-total": {
|
|
25047
|
+
"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.",
|
|
25018
25048
|
"type": "number",
|
|
25019
25049
|
"default": 0
|
|
25020
25050
|
},
|
|
@@ -25024,7 +25054,7 @@
|
|
|
25024
25054
|
"default": false
|
|
25025
25055
|
},
|
|
25026
25056
|
"search": {
|
|
25027
|
-
"description": "Global search/filter string. Filters visible rows across all columns using case-insensitive substring matching.
|
|
25057
|
+
"description": "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.",
|
|
25028
25058
|
"type": "string",
|
|
25029
25059
|
"default": ""
|
|
25030
25060
|
},
|
|
@@ -25110,10 +25140,10 @@
|
|
|
25110
25140
|
}
|
|
25111
25141
|
},
|
|
25112
25142
|
"page": {
|
|
25113
|
-
"description": "Fired when the
|
|
25143
|
+
"description": "Fired when the table's own internal page state changes — an internal pager click, or a `footer-page` command applied (REQ-W-002). This is a RESYNC notification a bound `<table-footer-ui>` listens to for its own `page` attribute (REQ-W-004) — it is NOT the public server-mode fetch trigger a consumer should listen to; use `<table-footer-ui>`'s own `page-change` event for that (1-based, gh#1754/ADR-0082 REQ-W-003). Listening to both risks a duplicate fetch or an index-base mismatch.",
|
|
25114
25144
|
"detail": {
|
|
25115
25145
|
"page": {
|
|
25116
|
-
"description": "New active page index (1-based).",
|
|
25146
|
+
"description": "New active page index (0-based — gh#1808; the `footer-page` command and the `page` attribute on <table-footer-ui> are 1-based, this event's own detail is not).",
|
|
25117
25147
|
"type": "number"
|
|
25118
25148
|
}
|
|
25119
25149
|
}
|
|
@@ -25564,6 +25594,154 @@
|
|
|
25564
25594
|
"version": 1
|
|
25565
25595
|
}
|
|
25566
25596
|
},
|
|
25597
|
+
"TableFooter": {
|
|
25598
|
+
"title": "TableFooter",
|
|
25599
|
+
"description": "Footer / companion bar for a sibling table-ui (gh#1807, ADR-0080) — a \"Showing X–Y of N\" range label paired with a composed pagination-ui. Derivation-model API: set `page` / `page-size` / `range-total` and the footer derives total pages and the range window itself, so it never drifts out of sync with its own pager. Wired to the target table via a [for] id-ref and CustomEvents only (ADR-0079/ADR-0080) — the footer never writes a property or calls a method on the bound table. Drop below (or inside a card-ui footer alongside) any table-ui to add the standard data-grid pager + range summary without re-implementing pagination-ui's ellipsis truncation, keyboard handling, or ARIA.",
|
|
25600
|
+
"type": "object",
|
|
25601
|
+
"allOf": [
|
|
25602
|
+
{
|
|
25603
|
+
"$ref": "#/$defs/ComponentCommon"
|
|
25604
|
+
},
|
|
25605
|
+
{
|
|
25606
|
+
"$ref": "#/$defs/CatalogComponentCommon"
|
|
25607
|
+
}
|
|
25608
|
+
],
|
|
25609
|
+
"properties": {
|
|
25610
|
+
"component": {
|
|
25611
|
+
"const": "TableFooter"
|
|
25612
|
+
},
|
|
25613
|
+
"for": {
|
|
25614
|
+
"description": "id-ref of the table-ui to control. Falls back to the first sibling table-ui within the same parent when omitted.",
|
|
25615
|
+
"type": "string",
|
|
25616
|
+
"default": ""
|
|
25617
|
+
},
|
|
25618
|
+
"page": {
|
|
25619
|
+
"description": "Current page, 1-based. Explicit attributes always win over derivation (per-attribute, not all-or-nothing) — see page-size/range-total.",
|
|
25620
|
+
"type": "number",
|
|
25621
|
+
"default": 1
|
|
25622
|
+
},
|
|
25623
|
+
"page-size": {
|
|
25624
|
+
"description": "Rows per page. Default 0 (unknown) is the ORDINARY default state, not an exotic edge case: with page-size absent/0 and range-total present, the range label renders in count-only form (\"128 items\") and the pager does not render — the derivation math (pages = range-total / page-size) is undefined without a page size. In a client-mode composition (the resolved target has [paginate] > 0) and this attribute is unset, the footer derives page-size from the target's own [paginate] value.",
|
|
25625
|
+
"type": "number",
|
|
25626
|
+
"default": 0
|
|
25627
|
+
},
|
|
25628
|
+
"range-total": {
|
|
25629
|
+
"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.",
|
|
25630
|
+
"type": "number",
|
|
25631
|
+
"default": 0
|
|
25632
|
+
},
|
|
25633
|
+
"siblings": {
|
|
25634
|
+
"description": "Passed through to the composed pagination-ui's own [siblings] (page-number window size on each side of the current page).",
|
|
25635
|
+
"type": "number",
|
|
25636
|
+
"default": 1
|
|
25637
|
+
},
|
|
25638
|
+
"size": {
|
|
25639
|
+
"description": "Passed through to the composed pagination-ui's own [size] (sm | md | lg, the universal size system).",
|
|
25640
|
+
"type": "string",
|
|
25641
|
+
"default": "md"
|
|
25642
|
+
}
|
|
25643
|
+
},
|
|
25644
|
+
"required": [
|
|
25645
|
+
"component"
|
|
25646
|
+
],
|
|
25647
|
+
"unevaluatedProperties": false,
|
|
25648
|
+
"x-adiaui": {
|
|
25649
|
+
"anti_patterns": [
|
|
25650
|
+
{
|
|
25651
|
+
"fix": "<table-footer-ui page=\"1\" page-size=\"10\" range-total=\"128\"></table-footer-ui>",
|
|
25652
|
+
"why": "table-footer-ui is derivation-only (REQ-F-002) — there is no [range-start]/[range-end] attribute pair (that shape belongs to table-toolbar-ui, which has no page/page-size knowledge of its own). Setting [page] + [page-size] + [range-total] derives the range window instead; a permanent three-way drift hazard is exactly what the derivation model exists to avoid.",
|
|
25653
|
+
"wrong": "<table-footer-ui range-start=\"1\" range-end=\"10\" range-total=\"128\"></table-footer-ui>"
|
|
25654
|
+
}
|
|
25655
|
+
],
|
|
25656
|
+
"category": "agent",
|
|
25657
|
+
"composes": [
|
|
25658
|
+
"pagination-ui"
|
|
25659
|
+
],
|
|
25660
|
+
"events": {
|
|
25661
|
+
"footer-page": {
|
|
25662
|
+
"description": "gh#1807, ADR-0080 (events-only interaction contract, extending ADR-0079's sender-prefixed toolbar-* precedent to a second sender) — dispatched directly at the resolved [for] target on every pager interaction. Detail: { page } (1-based). table-ui listens for this on itself, applied only when [paginate] > 0 (clamped to the valid page range; a non-numeric/NaN detail.page is a no-op); at [paginate=\"0\"] the command is a documented no-op on the table. Additive: any consumer, not only table-footer-ui, may dispatch this at a table-ui."
|
|
25663
|
+
},
|
|
25664
|
+
"page-change": {
|
|
25665
|
+
"description": "The footer's own consumer-facing notification — a distinct name from the inbound footer-page command (ADR-0079's command≠notification separation). Fires on every pager interaction, in both client- and server-mode. Detail: { page } (1-based). This is the server-mode fetch hook: a consumer listens for it, fetches the new page, then sets `table.data` and the footer's own `page` (and `range-total` if the server's total moved) — the footer never optimistically advances its own state in server-mode."
|
|
25666
|
+
}
|
|
25667
|
+
},
|
|
25668
|
+
"examples": [
|
|
25669
|
+
{
|
|
25670
|
+
"description": "Server-mode footer (gh#1754 Shape 1) paired with a for=-bound table-ui.",
|
|
25671
|
+
"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]",
|
|
25672
|
+
"name": "table-footer-server-mode"
|
|
25673
|
+
},
|
|
25674
|
+
{
|
|
25675
|
+
"description": "Client-mode footer bound to a [paginate]d table-ui with its own internal pager suppressed via [no-pager].",
|
|
25676
|
+
"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]",
|
|
25677
|
+
"name": "table-footer-client-mode"
|
|
25678
|
+
}
|
|
25679
|
+
],
|
|
25680
|
+
"keywords": [
|
|
25681
|
+
"table-footer",
|
|
25682
|
+
"pagination",
|
|
25683
|
+
"pager",
|
|
25684
|
+
"range",
|
|
25685
|
+
"showing",
|
|
25686
|
+
"data-grid",
|
|
25687
|
+
"directory",
|
|
25688
|
+
"admin",
|
|
25689
|
+
"backoffice",
|
|
25690
|
+
"listing",
|
|
25691
|
+
"records"
|
|
25692
|
+
],
|
|
25693
|
+
"name": "UITableFooter",
|
|
25694
|
+
"parts": {},
|
|
25695
|
+
"related": [
|
|
25696
|
+
"table",
|
|
25697
|
+
"table-toolbar",
|
|
25698
|
+
"pagination",
|
|
25699
|
+
"card"
|
|
25700
|
+
],
|
|
25701
|
+
"slots": {
|
|
25702
|
+
"empty": {
|
|
25703
|
+
"description": "Renders in place of the range label — the same [data-range] 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). Mutually exclusive with a positive [range-total]: the normal \"Showing X–Y of N\" (or count-only) text always wins whenever range-total resolves positive. Plain author-supplied markup — table-footer-ui does not template or constrain its shape. Naming matches table-toolbar-ui's own `empty` slot convention."
|
|
25704
|
+
}
|
|
25705
|
+
},
|
|
25706
|
+
"states": [
|
|
25707
|
+
{
|
|
25708
|
+
"description": "Default, ready for interaction.",
|
|
25709
|
+
"name": "idle"
|
|
25710
|
+
}
|
|
25711
|
+
],
|
|
25712
|
+
"status": "beta",
|
|
25713
|
+
"synonyms": {
|
|
25714
|
+
"pager": [
|
|
25715
|
+
"table-footer",
|
|
25716
|
+
"pagination"
|
|
25717
|
+
],
|
|
25718
|
+
"pagination": [
|
|
25719
|
+
"table-footer",
|
|
25720
|
+
"pagination"
|
|
25721
|
+
]
|
|
25722
|
+
},
|
|
25723
|
+
"tag": "table-footer-ui",
|
|
25724
|
+
"tokens": {
|
|
25725
|
+
"--table-footer-gap": {
|
|
25726
|
+
"description": "Gap between the range label and the pager"
|
|
25727
|
+
},
|
|
25728
|
+
"--table-footer-px": {
|
|
25729
|
+
"description": "Horizontal padding"
|
|
25730
|
+
},
|
|
25731
|
+
"--table-footer-py": {
|
|
25732
|
+
"description": "Vertical padding"
|
|
25733
|
+
},
|
|
25734
|
+
"--table-footer-summary-fg": {
|
|
25735
|
+
"description": "Range-label text color"
|
|
25736
|
+
},
|
|
25737
|
+
"--table-footer-summary-size": {
|
|
25738
|
+
"description": "Range-label font size"
|
|
25739
|
+
}
|
|
25740
|
+
},
|
|
25741
|
+
"traits": [],
|
|
25742
|
+
"version": 1
|
|
25743
|
+
}
|
|
25744
|
+
},
|
|
25567
25745
|
"TableOfContents": {
|
|
25568
25746
|
"title": "TableOfContents",
|
|
25569
25747
|
"description": "Auto-generated in-page table of contents. Scans a target container\nfor headings (default `h2,h3`), ensures each has an `id` (slugifies\nthe text content if missing), and stamps a `<nav>` list of anchor\nlinks. An `IntersectionObserver` tracks the active heading and\napplies `[data-active]` to the matching link so consumers can style\nthe currently-visible section. Smooth-scroll on click is handled by\nthe global `scroll-behavior: smooth` set in resets.css.\n\nPair with a sticky container (`position: sticky; top: <offset>;`) in\nan aside / right rail for the classic docs-site outline pattern.\n",
|
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
- Heading slot accepts inline badges/metadata: <span slot="heading"><text-ui strong>Title</text-ui><badge-ui text="New" variant="primary"></badge-ui></span> renders title + badge on one row.
|
|
159
159
|
- Description slot also accepts bare <p> or <small> elements as siblings of the heading — they participate in the grid's row 2 without needing slot="description".
|
|
160
160
|
- Multiple <section> siblings are allowed and stack vertically. [bleed] on a section removes its margin for edge-to-edge content (tables, charts); [padding] adds a canvas-scrim background for hero regions.
|
|
161
|
+
- [bleed] is unconditionally author-controlled — card.css never restores the section's inset on your behalf (gh#1801, operator ruling 2026-08-20; supersedes gh#1095's removed auto-restore guard). A full-bleed <chart-ui> that still draws gridlines or value labels, or is paired with a <chart-legend-ui>, can clip that text under the card's own corner-rounded overflow:hidden — keeping it clear of the card frame is YOUR responsibility as the author, e.g. by rendering value/ guide text as overlay chips INSET within the plot area rather than hanging outside it, or by placing a <chart-legend-ui> in its own non-bled section. See chart-in-card.examples.html for the pattern.
|
|
161
162
|
- When neither [raw] nor [frameless] is present, a <table-ui> placed directly inside a <section bleed> automatically renders chromeless (background/box-shadow/border-radius reset; card.css, gh#796): the card already owns the frame, so the table doesn't need its own. table.yaml's [raw]/[frameless] docs describe the same composition; an explicit [raw] or [frameless] on the table still applies and is honored. A plain (non-bleed) <section> is unaffected — its own padding keeps a nested table's frame legible as an intentional nested surface.
|
|
162
163
|
- [grow] on a section makes it fill the card's remaining height (flex:1 — same semantics as col-ui[grow]/row-ui[grow]). The card becomes a flex column so the section absorbs the leftover space after the header/footer. Requires the card to have a definite height (inline height, grid row track, or flex parent) — a content-sized card has nothing to fill. Combine with [bleed] for edge-to-edge fill: <section bleed grow>. A <chart-ui> directly inside a <section bleed> auto-grows without [grow] (zero-config convenience for the common chart case).
|
|
163
164
|
- Footer with a [slot="description"] + [slot="action"] pair triggers justify-content: space-between — useful for a "Last saved …" note on the left and a Save/Cancel button group on the right.
|
|
@@ -701,10 +702,17 @@
|
|
|
701
702
|
- Binary on/off only — no third state. For tri-state controls use <check-ui> with [indeterminate].
|
|
702
703
|
- Use for settings toggles, feature flags, mode switches; for form gates / consent / multi-select use <check-ui> instead.
|
|
703
704
|
|
|
705
|
+
## TableFooter
|
|
706
|
+
- Pair <table-footer-ui> with <table-ui> via [for="<table-id>"] (or rely on first-sibling fallback when both are inside the same parent). Client-mode composition (a [paginate]-sliced table): set [no-pager] on the table-ui so its own internal pagination bar doesn't render alongside the footer's composed one — table-footer-ui never auto-suppresses it for you.
|
|
707
|
+
- Server-mode composition (gh#1754 Shape 1 — the server returns the page's rows plus the total row count): set [range-total] to the server's total, [page] / [page-size] from your own request state, and listen for the footer's `page-change` event to fetch the next page — the footer does not optimistically advance its own [page] in server-mode; write it back after the fetch resolves.
|
|
708
|
+
- The toolbar's [count] badge and this footer's range label coexist by design — they answer different questions (the collection summary vs. the page-window position) and neither replaces the other. In a composition that includes a table-footer-ui, leave the toolbar's [range-start]/[range-end]/[range-total] unset — the range summary's home is the footer.
|
|
709
|
+
- Canonical composition: card-ui header (title + primary action) → a plain <section> wrapping a title-less <table-toolbar-ui for> → a <section bleed> wrapping the <table-ui id> → a <footer divider> wrapping this <table-footer-ui for> — see the table-in-card pattern.
|
|
710
|
+
- Use <span slot="empty"> (or any markup) inside a table-footer-ui that also sets [range-total="0"] to show a "no results" message in the range label's own position, without a layout shift versus the normal range text. Only fires on an EXPLICIT range-total="0" — omitting range-total entirely (loading) never shows it.
|
|
711
|
+
|
|
704
712
|
## TableToolbar
|
|
705
|
-
- Pair <table-toolbar-ui> with <table-ui> via [for="<table-id>"] (or rely on first-sibling fallback when both are inside the same parent). One toolbar per table.
|
|
713
|
+
- Pair <table-toolbar-ui> with <table-ui> via [for="<table-id>"] (or rely on first-sibling fallback when both are inside the same parent). One toolbar per table. The doubled-chrome hazard is a TITLE COLLISION, not a blanket card-header ban (gh#1807, SPEC REQ-C-004): a toolbar carrying [text] must not share a card with a heading-slotted <card-ui> <header> — that pairing doubles the title row. A title-less toolbar (no [text]) inside a card whose <header> owns the title is the canonical table-in-card composition (see the table-in-card pattern) and is NOT doubled chrome — the toolbar renders only its count/search/filter/sort/ columns cluster, with the title living in the card header alone.
|
|
706
714
|
- All four affordances (search, filter, sort, columns) default ON. Opt out individually via [no-search] / [no-filter] / [no-sort] / [no-columns]. The previous [searchable] / [filterable] attributes are deprecated — do NOT emit them.
|
|
707
|
-
-
|
|
715
|
+
- Three legitimate placements: ABOVE the <card-ui> containing the table-ui; standing alone outside a card-ui parent with [variant="card"] (wraps the toolbar in card-style chrome); or INSIDE the card, in its own plain (non-bleed) <section> between the card header and the bleed table section — the canonical table-in-card shape (gh#1807) — title-less (no [text]) since the card header already owns the title (see the title-collision rule above).
|
|
708
716
|
- Use slot="action" (or [slot="actions"]) for trailing primary buttons (Invite, Export, +New). Use [text] / [count] props for the left cluster, or slotted [slot="title"] / [slot="count"] when content is markup (a <span> + <badge-ui>, etc.).
|
|
709
717
|
- Listen for toolbar events (`search`, `filter-change`, `sort-change`, `columns-change`, `page-size-change`) only to mirror state to URL / persistence / analytics. The toolbar already wires its changes into the bound table — you don't need to manually update the table.
|
|
710
718
|
- Use [slot="scope"] for a leading scope/view switcher (an org's teams, a saved view) rendered before [text]/[count]. Use [range-start] / [range-end] / [range-total] together for a "Showing X–Y of N" summary — it renders independently of, and alongside, [text]/[count], never in place of them. Use [page-size] + [page-size-options] for a rows-per-page select; it applies directly to the bound table's [paginate] prop the same way filter/sort/columns changes apply directly to the target.
|
|
@@ -716,10 +724,11 @@
|
|
|
716
724
|
## Table
|
|
717
725
|
- Canonical composition: wrap <table-ui> in <card-ui><section bleed> for edge-to-edge tables. The [bleed] removes section padding so columns span the full card width (see apps/saas/members, billing, admin-dashboard).
|
|
718
726
|
- Pair with <table-toolbar-ui for="<table-id>"> for any table that needs search / filter / sort / columns visibility. Do NOT re-implement those affordances in the card header — the toolbar auto-wires search/filter/sort/columns changes into the bound table via `toolbar-*` CustomEvents (gh#1764/#1780, ADR-0079 — events-only interaction contract; table-ui listens for toolbar-search/toolbar-filter-set/toolbar-filter-clear/ toolbar-columns-set/toolbar-paginate on itself). Any consumer, not only table-toolbar-ui, may dispatch these events directly at a table-ui instance.
|
|
727
|
+
- Pair with <table-footer-ui for="<table-id>"> for the pager + "Showing X-Y of N" range label (gh#1807, ADR-0080; gh#1754, ADR-0082) — table-ui listens for its `footer-page` command (detail {page}, 1-based) on itself, applied whenever [paginate] > 0 — client mode AND table-authoritative server mode ([range-total] set) alike — clamped to the valid page range (server-derived when [range-total] is set). Only at [paginate="0"] does the table treat it as a documented no-op, in either mode. Set [no-pager] on the table when a composition also binds a footer (client- or server-mode), or the internal pagination bar and the footer's composed one both render — [no-pager] leaves slicing/page-state/the `page` event untouched, it only hides the internal bar.
|
|
719
728
|
- Cells truncate single-line by default (v0.6.21 §403 truncate-default). Opt out per-table with [wrap] for whole-table multiline, or per-cell with [data-wrap] on a single column / cell.
|
|
720
729
|
- [raw] is a visual-and-lifecycle chrome reset for consumer-owned body markup — render()'s early return (`if (this.raw) return;`) is unconditional: no header injection, no .data/.columns reconciliation, no empty/loading overlays, no aggregation or pagination footers, even if .columns and .data are set. Reach for it only when the consumer authors 100% of the body (spreadsheet / inline-edit style patterns wrapping a native <table>) — never to "keep the data lifecycle but skip demo seeding."
|
|
721
730
|
- Listen for the `sort` event with detail.key + detail.dir (NOT .column / .direction). `cell-click` detail carries {key, row, value, dataIndex}. Per ADR-0027, table-ui composes check-ui, icon-ui, progress-ui, pagination-ui, skeleton-ui, badge-ui — consumer pages must explicitly import the ones they use.
|
|
722
|
-
- For large datasets (100+ rows), use [paginate="N"] to limit rendered rows and add a pagination bar. [virtual] is NOT a recognized prop and is silently ignored — there is no DOM-level virtual scrolling in table-ui. [paginate] is the supported performance mechanism.
|
|
731
|
+
- For large datasets (100+ rows), use [paginate="N"] to limit rendered rows and add a pagination bar. [virtual] is NOT a recognized prop and is silently ignored — there is no DOM-level virtual scrolling in table-ui. [paginate] is the supported performance mechanism. For server-driven pagination (gh#1754, ADR-0082), set [paginate="N"] (page size) + [range-total="M"] (server total row count) together — [paginate] then becomes purely presentational (no local slicing), `.data` holds exactly the current server page. The table's own `page` event (0-based) is an internal resync notification, not the fetch trigger — a bound <table-footer-ui> listens to it to keep its own [page] in sync. The PUBLIC fetch trigger is <table-footer-ui>'s own `page-change` event (1-based): listen for it, fetch that server page, then write the rows back to `.data` and the footer's own [page]. Listening to the table's `page` event instead risks a duplicate fetch or an index-base mismatch (0-based vs 1-based). [search]/[sort]/column filters, when used alongside server paging, still operate on the loaded page only — not a server-side query.
|
|
723
732
|
|
|
724
733
|
## Tab
|
|
725
734
|
- <tab-ui> only renders inside <tabs-ui>. Never use it standalone. The parent reads each tab's [text] + [icon] + [value] to render the button strip; the tab's default slot is the panel content that the parent auto-hides when inactive.
|
package/catalog/tier-index.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"catalogId": "adia.tiers@0.8.
|
|
2
|
+
"catalogId": "adia.tiers@0.8.46",
|
|
3
3
|
"description": "Tier index of the AdiaUI catalog contract (ADR-0050). L0-L4 ladder; every tier-N entry is a declared composition of tier-(N-1) entries. L1 `composes` edges speak A2UI component TYPE names — the R-C7 catalogs’ `components` keys (genui-system SPEC R-C13). Derived — regenerate with `npm run build:catalog-tiers`, never hand-edit.",
|
|
4
4
|
"extends": {
|
|
5
5
|
"catalogId": "adia.base",
|
|
6
|
-
"version": "0.8.
|
|
6
|
+
"version": "0.8.46"
|
|
7
7
|
},
|
|
8
8
|
"tiers": {
|
|
9
9
|
"L0": {
|
|
10
10
|
"composesTier": null,
|
|
11
|
-
"count":
|
|
11
|
+
"count": 190,
|
|
12
12
|
"entries": {
|
|
13
13
|
"A2UIRoot": {
|
|
14
14
|
"category": "container",
|
|
@@ -1000,6 +1000,12 @@
|
|
|
1000
1000
|
"origin": "primitive",
|
|
1001
1001
|
"tag": "table-ui"
|
|
1002
1002
|
},
|
|
1003
|
+
"TableFooter": {
|
|
1004
|
+
"category": "agent",
|
|
1005
|
+
"composes": [],
|
|
1006
|
+
"origin": "primitive",
|
|
1007
|
+
"tag": "table-footer-ui"
|
|
1008
|
+
},
|
|
1003
1009
|
"TableOfContents": {
|
|
1004
1010
|
"category": "navigation",
|
|
1005
1011
|
"composes": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adia-ai/a2ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.46",
|
|
4
4
|
"description": "The A2UI protocol — runtime (renderer, registry, streams, surface manifest, wiring primitives, dockable base classes) plus protocol-side validation. Framework-agnostic and dependency-free; pairs with any A2UI-conformant component set. Folded from @adia-ai/a2ui-runtime + the protocol half of @adia-ai/a2ui-validator (ADR-0048).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
package/registry.js
CHANGED
|
@@ -339,6 +339,8 @@ export const registry = new Map([
|
|
|
339
339
|
['Spinner', 'spinner-ui'],
|
|
340
340
|
['StepProgress', 'step-progress-ui'],
|
|
341
341
|
['Swatch', 'swatch-ui'],
|
|
342
|
+
// gh#1807, ADR-0080 — footer/companion bar for a sibling table-ui.
|
|
343
|
+
['TableFooter', 'table-footer-ui'],
|
|
342
344
|
// sidecar directory is `toc/toc.a2ui.json`; catalog title is TableOfContents
|
|
343
345
|
// but the component's own tag is the shorter `toc-ui` (x-adiaui.tag) — not
|
|
344
346
|
// the naive `table-of-contents-ui` kebab expansion of the type name.
|