@coding_doc/sveltedt 0.0.0 → 0.1.0-rehearsal.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +52 -0
  3. package/README.md +618 -2
  4. package/dist/DataTable.svelte +313 -0
  5. package/dist/DataTable.svelte.d.ts +26 -0
  6. package/dist/Pagination.svelte +125 -0
  7. package/dist/Pagination.svelte.d.ts +5 -0
  8. package/dist/checks.d.ts +5 -0
  9. package/dist/checks.js +7 -0
  10. package/dist/connection/answer.d.ts +6 -0
  11. package/dist/connection/answer.js +47 -0
  12. package/dist/connection/connection.svelte.d.ts +16 -0
  13. package/dist/connection/connection.svelte.js +214 -0
  14. package/dist/connection/index.d.ts +8 -0
  15. package/dist/connection/index.js +7 -0
  16. package/dist/connection/request.d.ts +4 -0
  17. package/dist/connection/request.js +71 -0
  18. package/dist/connection/types.d.ts +182 -0
  19. package/dist/connection/types.js +1 -0
  20. package/dist/faults.d.ts +6 -0
  21. package/dist/faults.js +64 -0
  22. package/dist/filters.d.ts +23 -0
  23. package/dist/filters.js +65 -0
  24. package/dist/index.d.ts +9 -0
  25. package/dist/index.js +8 -0
  26. package/dist/messages.d.ts +4 -0
  27. package/dist/messages.js +62 -0
  28. package/dist/pager.d.ts +19 -0
  29. package/dist/pager.js +80 -0
  30. package/dist/parts/ColumnFilter.svelte +213 -0
  31. package/dist/parts/ColumnFilter.svelte.d.ts +11 -0
  32. package/dist/parts/HeaderCell.svelte +90 -0
  33. package/dist/parts/HeaderCell.svelte.d.ts +34 -0
  34. package/dist/parts/Search.svelte +79 -0
  35. package/dist/parts/Search.svelte.d.ts +9 -0
  36. package/dist/parts/Toolbar.svelte +70 -0
  37. package/dist/parts/Toolbar.svelte.d.ts +29 -0
  38. package/dist/picks.svelte.d.ts +6 -0
  39. package/dist/picks.svelte.js +42 -0
  40. package/dist/search.svelte.d.ts +15 -0
  41. package/dist/search.svelte.js +76 -0
  42. package/dist/sort.d.ts +6 -0
  43. package/dist/sort.js +32 -0
  44. package/dist/styles.css +230 -0
  45. package/dist/types.d.ts +323 -0
  46. package/dist/types.js +1 -0
  47. package/dist/validate.d.ts +5 -0
  48. package/dist/validate.js +201 -0
  49. package/dist/view.svelte.d.ts +7 -0
  50. package/dist/view.svelte.js +75 -0
  51. package/package.json +83 -3
@@ -0,0 +1,70 @@
1
+ <script lang="ts" generics="Row">
2
+ import type { TableFault } from "../faults.js";
3
+ import { badges, resetShown } from "../filters.js";
4
+ import type { DataTableMessages, DataTableProps } from "../types.js";
5
+
6
+ type Props = Pick<
7
+ DataTableProps<Row>,
8
+ | "columns"
9
+ | "filters"
10
+ | "criteria"
11
+ | "onclearfilter"
12
+ | "onclearfilters"
13
+ | "onreset"
14
+ > & { fault: TableFault | null; words: DataTableMessages };
15
+
16
+ const {
17
+ fault,
18
+ columns,
19
+ filters,
20
+ words,
21
+ criteria,
22
+ onclearfilter,
23
+ onclearfilters,
24
+ onreset,
25
+ }: Props = $props();
26
+ // The applied filters as badges; none while the alert shows, as the table cannot vouch for filters it could not
27
+ // validate (FILT-08)
28
+ const badgeList = $derived(
29
+ fault === null ? badges(columns, filters, words) : [],
30
+ );
31
+ </script>
32
+
33
+ <!-- No element of its own: the controls render in place, in this order, as the table's direct children. A wrapper, a
34
+ role="toolbar" included, would change the document and how it reads -->
35
+ {#each badgeList as badge (badge.id)}
36
+ <!-- A badge exists only for a column with a filter, so the table has an onclearfilter (FILT-32) -->
37
+ <button
38
+ class="sdt-button"
39
+ type="button"
40
+ aria-label={words.clearFilter(badge.text)}
41
+ onclick={() =>
42
+ // Stryker disable next-line OptionalChaining: unreachable fallback, a badge exists only with an onclearfilter (FILT-32)
43
+ onclearfilter?.({ id: badge.id })}
44
+ >
45
+ {badge.text}
46
+ </button>
47
+ {/each}
48
+ {@render criteria?.()}
49
+ {#if badgeList.length > 0}
50
+ <button
51
+ class="sdt-button"
52
+ type="button"
53
+ onclick={() =>
54
+ // Stryker disable next-line OptionalChaining: unreachable fallback, the table has an onclearfilters (FILT-32)
55
+ onclearfilters?.()}
56
+ >
57
+ {words.clearFilters}
58
+ </button>
59
+ {/if}
60
+ {#if resetShown(fault, columns, onreset)}
61
+ <button
62
+ class="sdt-button"
63
+ type="button"
64
+ onclick={() =>
65
+ // Stryker disable next-line OptionalChaining: unreachable fallback, the button shows only with an onreset (FILT-30)
66
+ onreset?.()}
67
+ >
68
+ {words.reset}
69
+ </button>
70
+ {/if}
@@ -0,0 +1,29 @@
1
+ import type { TableFault } from "../faults.js";
2
+ import type { DataTableMessages, DataTableProps } from "../types.js";
3
+ declare function $$render<Row>(): {
4
+ props: Pick<DataTableProps<Row>, "columns" | "filters" | "criteria" | "onclearfilter" | "onclearfilters" | "onreset"> & {
5
+ fault: TableFault | null;
6
+ words: DataTableMessages;
7
+ };
8
+ exports: {};
9
+ bindings: "";
10
+ slots: {};
11
+ events: {};
12
+ };
13
+ declare class __sveltets_Render<Row> {
14
+ props(): ReturnType<typeof $$render<Row>>['props'];
15
+ events(): ReturnType<typeof $$render<Row>>['events'];
16
+ slots(): ReturnType<typeof $$render<Row>>['slots'];
17
+ bindings(): "";
18
+ exports(): {};
19
+ }
20
+ interface $$IsomorphicComponent {
21
+ new <Row>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Row>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Row>['props']>, ReturnType<__sveltets_Render<Row>['events']>, ReturnType<__sveltets_Render<Row>['slots']>> & {
22
+ $$bindings?: ReturnType<__sveltets_Render<Row>['bindings']>;
23
+ } & ReturnType<__sveltets_Render<Row>['exports']>;
24
+ <Row>(internal: unknown, props: ReturnType<__sveltets_Render<Row>['props']> & {}): ReturnType<__sveltets_Render<Row>['exports']>;
25
+ z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
26
+ }
27
+ declare const Toolbar: $$IsomorphicComponent;
28
+ type Toolbar<Row> = InstanceType<typeof Toolbar<Row>>;
29
+ export default Toolbar;
@@ -0,0 +1,6 @@
1
+ export declare class Picks {
2
+ #private;
3
+ constructor(applied: () => readonly string[], open: () => boolean);
4
+ get selected(): readonly string[];
5
+ press(next: readonly string[]): void;
6
+ }
@@ -0,0 +1,42 @@
1
+ import { untrack } from "svelte";
2
+ // A selection's values in one order, so two selections compare by their values, in whatever order `filters` lists
3
+ // them (FILT-61; FILT-32 fixes no order)
4
+ const key = (selection) => JSON.stringify([...selection].sort());
5
+ // What a categorical filter's dialog shows and works from (FILT-61, FILT-62): the selection its last press emitted while
6
+ // `filters` has not answered it, else the applied one. Built by the part that shows the dialog, once, while it
7
+ // initialises
8
+ export class Picks {
9
+ // The selections presses emitted that `filters` has not answered, oldest first; empty while the dialog waits for none
10
+ // Stryker disable next-line ArrayDeclaration: the effect's first run, with the dialog closed, empties it before any read
11
+ #sent = $state.raw([]);
12
+ #applied;
13
+ constructor(applied, open) {
14
+ this.#applied = applied;
15
+ let before;
16
+ $effect.pre(() => {
17
+ const now = key(applied());
18
+ const shown = open();
19
+ untrack(() => {
20
+ // Closing the dialog ends the wait (FILT-61)
21
+ if (!shown)
22
+ this.#sent = [];
23
+ // A change of the applied selection to an earlier waiting press's answers that press only; any other change
24
+ // ends the wait; an equal selection given again is no change (FILT-61)
25
+ else if (now !== before) {
26
+ const at = this.#sent
27
+ .slice(0, -1)
28
+ .findIndex((each) => key(each) === now);
29
+ this.#sent = at < 0 ? [] : this.#sent.toSpliced(at, 1);
30
+ }
31
+ before = now;
32
+ });
33
+ });
34
+ }
35
+ get selected() {
36
+ return this.#sent.at(-1) ?? this.#applied();
37
+ }
38
+ // A press: the dialog shows and works from its selection until `filters` answers it or the dialog closes
39
+ press(next) {
40
+ this.#sent = [...this.#sent, next];
41
+ }
42
+ }
@@ -0,0 +1,15 @@
1
+ export declare class SearchText {
2
+ #private;
3
+ own: string | null;
4
+ constructor(applied: () => string, settings: () => {
5
+ delay: number;
6
+ onEnter: boolean;
7
+ maxLength: number;
8
+ }, emit: (text: string) => void);
9
+ get text(): string;
10
+ get trimmed(): string;
11
+ get hidden(): boolean;
12
+ get tooLong(): boolean;
13
+ input(value: string): void;
14
+ apply(): void;
15
+ }
@@ -0,0 +1,76 @@
1
+ // Adapted from ontoprism, frontend/src/lib/components/data-table/DataTableFilterPopover.svelte (Apache License 2.0,
2
+ // the owner's own project): the pause timer with its cancel and teardown, and the apply step that compares the text
3
+ // with the applied one and emits.
4
+ // Unicode category Cc: U+0000-U+001F and U+007F-U+009F; U+0085 is one, although `trim` does not remove it
5
+ const CONTROL = /\p{Cc}/u;
6
+ // The state of the global search field and of a text filter's field (FILT-01): the text as typed, the pause timer
7
+ // (PRD-B2) and the refusals of FILT-42, a control character or too many code points in the trimmed text. Built by the
8
+ // part that shows the field, once, while that part initialises
9
+ export class SearchText {
10
+ // The field's text as typed; null: it shows the applied search, which is the one source of truth
11
+ own = $state(null);
12
+ // Typed since the field last took the applied text or applied its own (cleared by an apply that is not refused); a
13
+ // plain field, so the effect below does not rerun on it (`own` does, via `own?.trim()`)
14
+ #newer = false;
15
+ #timer;
16
+ #applied;
17
+ #settings;
18
+ #emit;
19
+ constructor(applied, settings, emit) {
20
+ this.#applied = applied;
21
+ this.#settings = settings;
22
+ this.#emit = emit;
23
+ // A changed applied search replaces the field's text, unless newer typing holds it (FILT-44, FILT-49) or it is the
24
+ // field's own text trimmed (FILT-58)
25
+ $effect.pre(() => {
26
+ const now = this.#applied();
27
+ if (!this.#newer && now !== this.own?.trim())
28
+ this.own = null;
29
+ });
30
+ // A pause that is still running when the field goes emits nothing (FOOT-05, FILT-35: a dialog that closes removes
31
+ // its field)
32
+ $effect(() => () => clearTimeout(this.#timer));
33
+ }
34
+ get text() {
35
+ return this.own ?? this.#applied();
36
+ }
37
+ // The text as emitted: without its leading and trailing white space (FILT-57)
38
+ get trimmed() {
39
+ return this.text.trim();
40
+ }
41
+ // The trimmed text holds a control character (FILT-42, FILT-48)
42
+ get hidden() {
43
+ return CONTROL.test(this.trimmed);
44
+ }
45
+ // The trimmed text is longer than `maxLength` code points (FILT-42, FILT-48)
46
+ get tooLong() {
47
+ return [...this.trimmed].length > this.#settings().maxLength;
48
+ }
49
+ // Every input event: the new text, then the pause. Under searchOnEnter only Enter applies (FILT-28); a delay of 0
50
+ // applies at once (FILT-01)
51
+ input(value) {
52
+ this.own = value;
53
+ this.#newer = true;
54
+ clearTimeout(this.#timer);
55
+ const { delay, onEnter } = this.#settings();
56
+ if (onEnter)
57
+ return;
58
+ if (delay === 0)
59
+ this.apply();
60
+ else
61
+ this.#timer = setTimeout(() => this.apply(), delay);
62
+ }
63
+ // The pause ending or Enter: emits the trimmed text unless it is refused (FILT-42) or equals the applied one
64
+ // (FILT-27, FILT-57); the pause then emits nothing more
65
+ apply() {
66
+ clearTimeout(this.#timer);
67
+ if (this.hidden || this.tooLong)
68
+ return;
69
+ const text = this.trimmed;
70
+ // Cleared before the equality return: a field that holds the applied text has taken it (FILT-44)
71
+ this.#newer = false;
72
+ if (text === this.#applied())
73
+ return;
74
+ this.#emit(text);
75
+ }
76
+ }
package/dist/sort.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { DataTableSortEntry, SortDirection } from "./types.ts";
2
+ export declare function nextOrder(order: readonly DataTableSortEntry[], id: string, sortable: readonly SortDirection[], add: boolean): DataTableSortEntry[];
3
+ export declare function sortState(order: readonly DataTableSortEntry[], id: string): {
4
+ direction: SortDirection | null;
5
+ rank: number | null;
6
+ };
package/dist/sort.js ADDED
@@ -0,0 +1,32 @@
1
+ // The column's entry one press on, or null after its last direction: it then leaves the order
2
+ function step(id, sortable, entry) {
3
+ // A press steps through the directions in the order the column lists them (SORT-01)
4
+ const next = entry
5
+ ? sortable[sortable.indexOf(entry.direction) + 1]
6
+ : sortable[0];
7
+ return next ? { id, direction: next } : null;
8
+ }
9
+ // An entry as a list of at most one: none once the column leaves the order
10
+ const listed = (entry) => entry ? [entry] : [];
11
+ // The whole order after a press on a column's sort button: without Shift (SORT-01) a lead column steps on alone and
12
+ // any other column becomes the only one; with Shift (SORT-02) only that column steps on, joining at the end
13
+ export function nextOrder(order, id, sortable, add) {
14
+ const own = order.find((entry) => entry.id === id);
15
+ if (!add)
16
+ return listed(step(id, sortable, order[0]?.id === id ? own : undefined));
17
+ const next = listed(step(id, sortable, own));
18
+ return own
19
+ ? order.flatMap((entry) => (entry.id !== id ? [entry] : next))
20
+ : [...order, ...next];
21
+ }
22
+ // A column's direction and rank in the order; the rank only while two or more columns are sorted (SORT-05, SORT-06)
23
+ export function sortState(order, id) {
24
+ const place = order.findIndex((entry) => entry.id === id);
25
+ const entry = order[place];
26
+ if (!entry)
27
+ return { direction: null, rank: null };
28
+ return {
29
+ direction: entry.direction,
30
+ rank: order.length > 1 ? place + 1 : null,
31
+ };
32
+ }
@@ -0,0 +1,230 @@
1
+ /* SvelteDT's stylesheet: one file, no layer, no import (THEME-04). Every selector has one class at most (THEME-12), so
2
+ an application's own rule of a class and an element wins in any load order (THEME-11); the one exception is the row
3
+ rule, which has the specificity of one element (see it) and so wins over a framework's element rule only by coming
4
+ after it, the order PRD-D9 advises. Each rule names the real-browser statement whose test proves it (THEME-13). */
5
+
6
+ /* No border of its own, also under a reset that gives every element a solid zero border, as Tailwind's Preflight does
7
+ (CON-12 of spec/package.md) */
8
+ /* @spec("THEME-10") */
9
+ .sdt-region {
10
+ position: relative;
11
+ box-sizing: border-box;
12
+ border: 0 none;
13
+ }
14
+
15
+ /* The region scrolls sideways when the table is wider than it (PRD section 5.1); overflow-y then computes to auto too,
16
+ and the region's Tab stop follows widths only (a height cap on the region is not supported) */
17
+ /* @spec("A11Y-08") */
18
+ .sdt-region {
19
+ overflow-x: auto;
20
+ }
21
+
22
+ /* @spec("THEME-10") */
23
+ .sdt-table {
24
+ border: 0 none;
25
+ border-collapse: collapse;
26
+ caption-side: top;
27
+ }
28
+
29
+ /* The caption and the live count stay in the accessibility tree and take no room (A11Y-13); so does the stopped
30
+ message in the status region, which the table's cell shows (A11Y-32) */
31
+ /* @spec("THEME-10") */
32
+ .sdt-caption,
33
+ .sdt-sr-only,
34
+ .sdt-stopped {
35
+ position: absolute;
36
+ box-sizing: border-box;
37
+ width: 1px;
38
+ height: 1px;
39
+ margin: -1px;
40
+ padding: 0;
41
+ border: 0;
42
+ overflow: hidden;
43
+ clip: rect(0, 0, 0, 0);
44
+ clip-path: inset(50%);
45
+ white-space: nowrap;
46
+ text-align: start;
47
+ }
48
+
49
+ /* The rows are reached through the table's own children, so the empty message's row (no class) and no row of a table
50
+ inside a cell is left out or caught; :where() keeps the specificity at one element */
51
+ /* @spec("THEME-10") */
52
+ :where(.sdt-table) > :where(thead, tbody) > tr,
53
+ .sdt-th,
54
+ .sdt-cell {
55
+ box-sizing: border-box;
56
+ border: 0 none;
57
+ }
58
+
59
+ /* @spec("THEME-10") */
60
+ .sdt-th,
61
+ .sdt-cell {
62
+ padding: 0.5rem 0.75rem;
63
+ text-align: start;
64
+ }
65
+
66
+ /* The default row divider (docs/departures.md): on the cells of every data row but the last */
67
+ /* @spec("THEME-10") */
68
+ :where(.sdt-row:not(:last-child)) > .sdt-cell {
69
+ border-block-end: 1px solid var(--sdt-border, GrayText);
70
+ }
71
+
72
+ /* The status line holds the status region and "Cancel" on one line, with room for the progress indicator at its foot.
73
+ The component gives it this class from the first load or refetch until unmount, so nothing after it moves while
74
+ they come and go */
75
+ /* @spec("STATE-15") */
76
+ .sdt-status {
77
+ position: relative;
78
+ display: flex;
79
+ flex-wrap: wrap;
80
+ align-items: center;
81
+ column-gap: 0.5em;
82
+ box-sizing: border-box;
83
+ min-block-size: 2.5em;
84
+ padding-block-end: 0.25em;
85
+ }
86
+
87
+ /* The progress indicator: a bar along the foot of the status line, painted by its border so that forced colours keep
88
+ it. It grows from its centre five times in 5 seconds, then rests full */
89
+ /* @spec("STATE-13") */
90
+ .sdt-progress {
91
+ position: absolute;
92
+ inset-inline: 0;
93
+ inset-block-end: 0;
94
+ block-size: 0;
95
+ border-block-end: 0.25em solid var(--sdt-progress, CanvasText);
96
+ animation: sdt-progress 1s ease-in-out 5;
97
+ }
98
+
99
+ /* @spec("STATE-13") */
100
+ @keyframes sdt-progress {
101
+ from {
102
+ transform: scaleX(0);
103
+ }
104
+ to {
105
+ transform: scaleX(1);
106
+ }
107
+ }
108
+
109
+ @media (prefers-reduced-motion: reduce) {
110
+ /* A user who asked for less motion gets the bar still from the start */
111
+ /* @spec("STATE-14") */
112
+ .sdt-progress {
113
+ animation: none;
114
+ }
115
+ }
116
+
117
+ /* The controls' classes are internal (THEME-50); an application restyles a control with a rule of a public class and
118
+ an element, which beats these one-class rules in any load order (docs/styling.md). Every button and field takes the
119
+ page's font and a box of its own, whatever a framework loaded before gave it */
120
+ /* @spec("THEME-51") */
121
+ .sdt-button,
122
+ .sdt-field {
123
+ box-sizing: border-box;
124
+ margin: 0;
125
+ padding: 0.25rem 0.5rem;
126
+ font: inherit;
127
+ color: inherit;
128
+ background: transparent;
129
+ border: 1px solid var(--sdt-control-border, CanvasText);
130
+ border-radius: 0.25rem;
131
+ }
132
+
133
+ /* @spec("THEME-51") */
134
+ .sdt-button {
135
+ appearance: none;
136
+ }
137
+
138
+ /* A field keeps the engine's own look (the select its arrow), also under a framework that sets another on a search
139
+ field */
140
+ /* @spec("THEME-51") */
141
+ .sdt-field {
142
+ appearance: auto;
143
+ }
144
+
145
+ /* The sort button reads as the header's text; its minimum size keeps a short label at 24 by 24 px (A11Y-39) */
146
+ /* @spec("SORT-25") */
147
+ .sdt-sort {
148
+ appearance: none;
149
+ box-sizing: border-box;
150
+ min-inline-size: 24px;
151
+ min-block-size: 24px;
152
+ margin: 0;
153
+ padding: 0;
154
+ font: inherit;
155
+ color: inherit;
156
+ text-align: inherit;
157
+ background: transparent;
158
+ border: 0 none;
159
+ }
160
+
161
+ /* @spec("PAGE-36") */
162
+ .sdt-pager {
163
+ box-sizing: border-box;
164
+ }
165
+
166
+ /* The current page, found by its documented ARIA state (PRD-K3); :where() keeps the specificity at one class */
167
+ /* @spec("PAGE-36") */
168
+ .sdt-button:where([aria-current="page"]) {
169
+ font-weight: bold;
170
+ border-width: 2px;
171
+ }
172
+
173
+ /* The filter dialog: a box of its own over the page, which a framework's reset leaves without border or padding. Its
174
+ colours come as a pair, so a dark background never meets the light scheme's text colour. Centred in the viewport and
175
+ no larger than it, its content scrolling, as the browser places a popover, also under a reset that zeroes every
176
+ margin: the placement of a browser without anchor positioning (PRD-E1) and the last resort of the rule below */
177
+ /* @spec("THEME-52") */
178
+ .sdt-dialog {
179
+ box-sizing: border-box;
180
+ max-inline-size: min(20rem, calc(100vw - 1rem));
181
+ max-block-size: calc(100dvh - 1rem);
182
+ overflow: auto;
183
+ margin: auto;
184
+ padding: 0.5rem;
185
+ color: var(--sdt-dialog-text, CanvasText);
186
+ background-color: var(--sdt-dialog-background, Canvas);
187
+ border: 1px solid var(--sdt-control-border, CanvasText);
188
+ border-radius: 0.25rem;
189
+ }
190
+
191
+ /* Where the browser anchors a popover to the button that opens it, the dialog opens under its button; above it where
192
+ the room below is short; across the viewport's width where it is wider than the room beside its button; centred
193
+ where nothing else fits. The explicit margin, inset and anchor serve engines whose defaults differ (FILT-69) */
194
+ @supports (position-area: block-end) and (position-anchor: auto) {
195
+ /* @spec("FILT-69") */
196
+ .sdt-dialog {
197
+ margin: 0;
198
+ inset: auto;
199
+ position-anchor: auto;
200
+ position-area: block-end span-inline-end;
201
+ position-try-fallbacks:
202
+ flip-block,
203
+ block-end span-all,
204
+ block-start span-all,
205
+ --sdt-centre;
206
+ }
207
+
208
+ /* @spec("FILT-69") */
209
+ @position-try --sdt-centre {
210
+ position-area: none;
211
+ inset: 0;
212
+ margin: auto;
213
+ }
214
+ }
215
+
216
+ /* An option's box and its label on one line, each option on its own, at least 24 px tall (A11Y-39) */
217
+ /* @spec("THEME-52") */
218
+ .sdt-option {
219
+ display: flex;
220
+ align-items: center;
221
+ gap: 0.5rem;
222
+ min-block-size: 1.5rem;
223
+ }
224
+
225
+ /* A step button that cannot move, found by its ARIA state as the current page is (PAGE-05) */
226
+ /* @spec("PAGE-36") */
227
+ .sdt-button:where([aria-disabled="true"]) {
228
+ color: var(--sdt-control-disabled, GrayText);
229
+ border-color: var(--sdt-control-disabled, GrayText);
230
+ }