(props: DataTableCoreProps 0;
const columns = useColumns(props.children);
const selectionGroupName = useId();
+ const useCards = useMobileLayout(props);
+ const presentationRoot = useDataTablePresentationFocus(useCards);
const { filters, updateFilter, globalFilter, setGlobalFilter, sort, setSort } =
useDataTableState(props);
const rows = useDataTableRows({
@@ -153,19 +183,7 @@ export const DataTableCore = (props: DataTableCoreProps
+
{!!globalFilterFields?.length && (
(props: DataTableCoreProps
)}
-
+ ) : (props: DataTableCoreProps
)}
/>
-
-
+ }
+
);
};
diff --git a/Source/DataTables/DataTableForObservableQuery.stories.tsx b/Source/DataTables/DataTableForObservableQuery.stories.tsx
index d1435033..7182cef0 100644
--- a/Source/DataTables/DataTableForObservableQuery.stories.tsx
+++ b/Source/DataTables/DataTableForObservableQuery.stories.tsx
@@ -126,6 +126,19 @@ class TasksQuery extends ObservableQueryFor {
}
}
+/** The same observable updates reach the current presentation without resubscribing on resize. */
+export const MobileCards: Story = {
+ render: () => (
+
+
+ Example} sortable filter />
+
+ header='Action' body={row => Open example } />
+
+
+ ),
+};
+
class LiveTasksQuery extends TasksQuery {
override subscribe(
callback: (result: QueryResult) => void,
diff --git a/Source/DataTables/DataTableForObservableQuery.tsx b/Source/DataTables/DataTableForObservableQuery.tsx
index ef596968..10117ded 100644
--- a/Source/DataTables/DataTableForObservableQuery.tsx
+++ b/Source/DataTables/DataTableForObservableQuery.tsx
@@ -2,6 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import type { DataTableParts } from './DataTableCore';
+import type { DataTableMobileLayoutProps } from './DataTableMobileLayoutProps';
import type { Constructor } from '@cratis/fundamentals';
import { type IObservableQueryFor, Paging } from '@cratis/arc/queries';
import { useObservableQueryWithPaging } from '@cratis/arc.react/queries';
@@ -33,7 +34,7 @@ export interface DataTableForObservableQueryProps<
| IObservableQueryFor,
TDataType extends object,
TArguments extends object,
-> {
+> extends DataTableMobileLayoutProps {
/**
* Children to render — `` elements describing the visible columns.
*/
@@ -305,6 +306,8 @@ export const DataTableForObservableQuery = <
data={rows}
+ mobileLayout={props.mobileLayout}
+ mobileBreakpoint={props.mobileBreakpoint}
dataKey={props.dataKey}
emptyMessage={props.emptyMessage}
filteredEmptyMessage={props.filteredEmptyMessage}
diff --git a/Source/DataTables/DataTableForQuery.stories.tsx b/Source/DataTables/DataTableForQuery.stories.tsx
index b10cb5c9..9a629bc1 100644
--- a/Source/DataTables/DataTableForQuery.stories.tsx
+++ b/Source/DataTables/DataTableForQuery.stories.tsx
@@ -65,6 +65,19 @@ class ProductsQuery extends QueryFor {
}
}
+/** Uses the paged synthetic query; resize below 640px to exercise cards and paginator together. */
+export const MobileCards: Story = {
+ render: () => (
+
+
+ Example} sortable filter />
+
+ header='Action' body={row => Open example } />
+
+
+ ),
+};
+
const manyProducts: Product[] = Array.from({ length: 24 }, (_, index) => ({
id: index + 1,
name: `Product ${index + 1}`,
diff --git a/Source/DataTables/DataTableForQuery.tsx b/Source/DataTables/DataTableForQuery.tsx
index 56cda250..204fe101 100644
--- a/Source/DataTables/DataTableForQuery.tsx
+++ b/Source/DataTables/DataTableForQuery.tsx
@@ -2,6 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import type { DataTableParts } from './DataTableCore';
+import type { DataTableMobileLayoutProps } from './DataTableMobileLayoutProps';
import type { Constructor } from '@cratis/fundamentals';
import { type IQueryFor, Paging } from '@cratis/arc/queries';
import { useQueryWithPaging } from '@cratis/arc.react/queries';
@@ -32,7 +33,7 @@ export interface DataTableForQueryProps<
TQuery extends IQueryFor | IQueryFor,
TDataType extends object,
TArguments extends object,
-> {
+> extends DataTableMobileLayoutProps {
/**
* Children to render — `` elements describing the visible columns.
*/
@@ -267,6 +268,8 @@ export const DataTableForQuery = <
data={rows}
+ mobileLayout={props.mobileLayout}
+ mobileBreakpoint={props.mobileBreakpoint}
dataKey={props.dataKey}
emptyMessage={props.emptyMessage}
filteredEmptyMessage={props.filteredEmptyMessage}
diff --git a/Source/DataTables/DataTableHeaderCell.tsx b/Source/DataTables/DataTableHeaderCell.tsx
index a2f1c71b..96dff953 100644
--- a/Source/DataTables/DataTableHeaderCell.tsx
+++ b/Source/DataTables/DataTableHeaderCell.tsx
@@ -5,16 +5,11 @@ import { cloneElement, type ReactElement, type ReactNode, type RefObject } from
import { useComponentPresentation } from '../configuration/identity/useComponentPresentation';
import { columnDescriptor } from './columnDescriptor';
import type { ColumnProps } from './Column';
-import { ColumnFilterMenu } from './ColumnFilterMenu';
import { classNames } from '../ClassNames/classNames';
-import type {
- DataTableFilterConstraint,
- DataTableFilterMeta,
-} from './DataTableFilterMeta';
+import type { DataTableFilterConstraint, DataTableFilterMeta } from './DataTableFilterMeta';
import type { DataTableParts } from './DataTableParts';
import type { DataTableSort } from './DataTableSort';
-import { DataTableSortDirection } from './DataTableSortDirection';
-import { firstConstraint } from './matchesFilterEntry';
+import { DataTableHeaderContent } from './DataTableHeaderContent';
/* eslint-disable @typescript-eslint/no-explicit-any */
@@ -26,10 +21,7 @@ export interface DataTableHeaderCellProps {
sort: DataTableSort | null;
onSort: (sort: DataTableSort) => void;
filters: DataTableFilterMeta;
- updateFilter: (
- field: string,
- constraint: DataTableFilterConstraint | undefined,
- ) => void;
+ updateFilter: (field: string, constraint: DataTableFilterConstraint | undefined) => void;
resolvedSelectionAriaLabel: string;
resolvedSelectAllAriaLabel: string;
allFilteredRowsSelected: boolean;
@@ -39,119 +31,25 @@ export interface DataTableHeaderCellProps {
sortDescendingIcon: ReactNode;
}
-/** One column header: its label, sort control, filter menu, and select-all or selection label. */
-export const DataTableHeaderCell = ({
- column: declaredColumn,
- parts: pt,
- sort,
- onSort,
- filters,
- updateFilter,
- resolvedSelectionAriaLabel,
- resolvedSelectAllAriaLabel,
- allFilteredRowsSelected,
- selectAllRef,
- toggleSelectAll,
- sortAscendingIcon,
- sortDescendingIcon,
-}: DataTableHeaderCellProps) => {
- const [columnProps, marker] = useComponentPresentation(
- columnDescriptor,
- declaredColumn.props,
- declaredColumn.props.field,
- );
+/** One column header, retaining the semantic table wrapper around the shared controls. */
+export const DataTableHeaderCell = (props: DataTableHeaderCellProps) => {
+ const { column: declaredColumn, parts: pt, sort, resolvedSelectionAriaLabel } = props;
+ const [columnProps, marker] = useComponentPresentation(columnDescriptor, declaredColumn.props, declaredColumn.props.field);
const column = columnProps === declaredColumn.props ? declaredColumn : cloneElement(declaredColumn, columnProps);
- const field = column.props.filterField ?? column.props.field;
- const ariaSort =
- sort && sort.field === column.props.field ? sort.direction : undefined;
+ const ariaSort = sort && sort.field === column.props.field ? sort.direction : undefined;
return (
-
- {column.props.selectionMode === 'multiple' ? (
-
- ) : (
- column.props.selectionMode && (
-
- {resolvedSelectionAriaLabel}
-
- )
- )}
- {column.props.sortable && column.props.field ? (
-
- onSort({
- field: column.props.field as string,
- direction:
- sort?.field === column.props.field &&
- sort?.direction === DataTableSortDirection.Ascending
- ? DataTableSortDirection.Descending
- : DataTableSortDirection.Ascending,
- })
- }
- >
- {column.props.header}
- {ariaSort && (
-
- {ariaSort === 'ascending'
- ? sortAscendingIcon
- : sortDescendingIcon}
-
- )}
-
- ) : (
- column.props.header
- )}
- {column.props.filter && field && (
- updateFilter(field, constraint)}
- onClear={() => updateFilter(field, undefined)}
- />
- )}
-
+
);
};
diff --git a/Source/DataTables/DataTableHeaderContent.tsx b/Source/DataTables/DataTableHeaderContent.tsx
new file mode 100644
index 00000000..9a175a3f
--- /dev/null
+++ b/Source/DataTables/DataTableHeaderContent.tsx
@@ -0,0 +1,64 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import { useId } from 'react';
+import { ColumnFilterMenu } from './ColumnFilterMenu';
+import type { DataTableHeaderCellProps } from './DataTableHeaderCell';
+import { DataTableSortDirection } from './DataTableSortDirection';
+import { firstConstraint } from './matchesFilterEntry';
+
+type HeaderContentProps = DataTableHeaderCellProps & { cardSortDirection?: string; cardMode?: boolean };
+
+/** The shared select-all control for headers and cards. */
+export const DataTableSelectAll = ({ resolvedSelectAllAriaLabel, allFilteredRowsSelected, selectAllRef, toggleSelectAll }: Pick) => (
+
+);
+const sortDirection = ({ column, sort }: DataTableHeaderCellProps) => {
+ const isAscending = sort?.field === column.props.field && sort?.direction === DataTableSortDirection.Ascending;
+ return isAscending ? DataTableSortDirection.Descending : DataTableSortDirection.Ascending;
+};
+const HeaderSort = (props: HeaderContentProps) => {
+ const { column, sort, onSort, sortAscendingIcon, sortDescendingIcon, cardSortDirection, cardMode } = props;
+ const directionId = useId();
+ if (!column.props.sortable || !column.props.field) return column.props.header;
+ const ariaSort = sort && sort.field === column.props.field ? sort.direction : undefined;
+ return <>
+ onSort({ field: column.props.field as string, direction: sortDirection(props) })}>
+ {column.props.header}
+ {ariaSort && {ariaSort === 'ascending' ? sortAscendingIcon : sortDescendingIcon} }
+
+ {cardSortDirection && {cardSortDirection} }
+ >;
+};
+const HeaderFilter = ({ column, filters, updateFilter }: DataTableHeaderCellProps) => {
+ const field = column.props.filterField ?? column.props.field;
+ if (!column.props.filter || !field) return null;
+ return updateFilter(field, constraint)} onClear={() => updateFilter(field, undefined)}
+ />;
+};
+const HeaderSelection = (props: DataTableHeaderCellProps) => {
+ if (props.column.props.selectionMode === 'multiple') return ;
+ return props.column.props.selectionMode ? {props.resolvedSelectionAriaLabel} : null;
+};
+
+/** Sort, filter and selection content shared without changing the desktop header markup. */
+export const DataTableHeaderContent = (props: HeaderContentProps) => {
+ const selected = props.sort?.field === props.column.props.field && !!props.sort;
+ return (
+
+
+
+
+
+ );
+};
diff --git a/Source/DataTables/DataTableMessages.ts b/Source/DataTables/DataTableMessages.ts
index 0c506b31..d0722c98 100644
--- a/Source/DataTables/DataTableMessages.ts
+++ b/Source/DataTables/DataTableMessages.ts
@@ -5,6 +5,8 @@ import type { ReactNode } from 'react';
/** The table messages to show, after props and provider messages are applied. */
export interface DataTableMessages {
+ resolvedSortAscending: string;
+ resolvedSortDescending: string;
resolvedSelectionAriaLabel: string;
resolvedSelectAllAriaLabel: string;
resolvedGlobalSearchPlaceholder: string;
diff --git a/Source/DataTables/DataTableMobileLayoutProps.ts b/Source/DataTables/DataTableMobileLayoutProps.ts
new file mode 100644
index 00000000..262479ea
--- /dev/null
+++ b/Source/DataTables/DataTableMobileLayoutProps.ts
@@ -0,0 +1,10 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+/** Optional viewport-based presentation for the DataTable family. */
+export interface DataTableMobileLayoutProps {
+ /** Render cards below the viewport breakpoint. Omit to keep the semantic table at every width. */
+ mobileLayout?: 'cards';
+ /** Exclusive viewport threshold in CSS pixels. Defaults to 640; nonfinite/nonpositive values use the default. */
+ mobileBreakpoint?: number;
+}
diff --git a/Source/DataTables/DataTableParts.ts b/Source/DataTables/DataTableParts.ts
index 68ec8c02..41db9583 100644
--- a/Source/DataTables/DataTableParts.ts
+++ b/Source/DataTables/DataTableParts.ts
@@ -19,6 +19,18 @@ export interface DataTableParts {
searchInput?: React.InputHTMLAttributes;
/** Scroll container. */
tableContainer?: HTMLAttributes;
+ /** Semantic card list. */
+ cards?: HTMLAttributes;
+ /** One row presented as a card. */
+ card?: HTMLAttributes;
+ /** Column label in a card. */
+ cardLabel?: HTMLAttributes;
+ /** Column value in a card. */
+ cardValue?: HTMLAttributes;
+ /** Sorting, filtering and select-all controls above cards. */
+ cardControls?: HTMLAttributes;
+ /** Non-table loading, failure or empty status. */
+ cardStatus?: HTMLAttributes;
/** Semantic table element. */
table?: TableHTMLAttributes;
/** Table head. */
diff --git a/Source/DataTables/DataTableRow.tsx b/Source/DataTables/DataTableRow.tsx
index b1c2464a..5416c1de 100644
--- a/Source/DataTables/DataTableRow.tsx
+++ b/Source/DataTables/DataTableRow.tsx
@@ -1,26 +1,19 @@
// Copyright (c) Cratis. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-import type { ReactElement, ReactNode, SyntheticEvent } from 'react';
+import type { ReactElement, SyntheticEvent } from 'react';
import type { ColumnProps } from './Column';
import { classNames } from '../ClassNames/classNames';
import type { DataTableParts } from './DataTableParts';
-import { valueAtPath } from './valueAtPath';
+import { dataTableCellContent } from './dataTableCellContent';
/* eslint-disable @typescript-eslint/no-explicit-any */
-const renderCellContent = (
- column: ColumnProps,
- row: Record,
-): ReactNode => {
- if (column.body) return column.body(row);
- const value = valueAtPath(row, column.field);
- return value == null ? '' : String(value);
-};
-
/** Props for {@link DataTableRow}. */
export interface DataTableRowProps {
row: TData;
+ /** Shared identity for focus transfer between presentations. */
+ rowKey?: string;
columns: ReactElement>[];
/** The table's part attributes. */
parts?: DataTableParts;
@@ -38,6 +31,7 @@ export interface DataTableRowProps {
/** One data row, activated by click, Enter or Space. */
export const DataTableRow = ({
row,
+ rowKey,
columns,
parts: pt,
selectionMode,
@@ -60,6 +54,7 @@ export const DataTableRow = ({
rowClassName?.(row),
)}
data-cratis-part='row'
+ data-datatable-row-key={rowKey}
data-selected={isSelected || undefined}
data-interactive={isInteractive || undefined}
onClick={(event) => onActivate(event)}
@@ -109,7 +104,7 @@ export const DataTableRow = ({
checked={isSelected}
/>
) : (
- renderCellContent(column.props, row as Record)
+ dataTableCellContent(column.props, row)
)}
))}
diff --git a/Source/DataTables/DataTableRows.tsx b/Source/DataTables/DataTableRows.tsx
index 901d34c2..20148009 100644
--- a/Source/DataTables/DataTableRows.tsx
+++ b/Source/DataTables/DataTableRows.tsx
@@ -33,6 +33,7 @@ export const DataTableRows = ({
key={state.rowKeys[loadedIndex]}
row={row}
+ rowKey={state.rowKeys[loadedIndex]}
selectionMode={selectionMode}
isSelected={selectionMode === 'single' && state.isSelectedRow(row, loadedIndex)}
isInteractive={state.isInteractive}
diff --git a/Source/DataTables/dataTableCellContent.ts b/Source/DataTables/dataTableCellContent.ts
new file mode 100644
index 00000000..8f14999d
--- /dev/null
+++ b/Source/DataTables/dataTableCellContent.ts
@@ -0,0 +1,13 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import type { ReactNode } from 'react';
+import type { ColumnProps } from './Column';
+import { valueAtPath } from './valueAtPath';
+
+/** Resolves a body template or nested field identically in either presentation. */
+export const dataTableCellContent = (column: ColumnProps, row: TData): ReactNode => {
+ if (column.body) return column.body(row);
+ const value = valueAtPath(row as Record, column.field);
+ return value == null ? '' : String(value);
+};
diff --git a/Source/DataTables/for_DataTableCore/given/a_mobile_viewport.ts b/Source/DataTables/for_DataTableCore/given/a_mobile_viewport.ts
new file mode 100644
index 00000000..afbf0ba7
--- /dev/null
+++ b/Source/DataTables/for_DataTableCore/given/a_mobile_viewport.ts
@@ -0,0 +1,33 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import { vi } from 'vitest';
+
+/** A controllable viewport that follows the strict CSS width query used by mobile cards. */
+export const aMobileViewport = (initialWidth = 639) => {
+ let width = initialWidth;
+ const queries = new Map();
+ const listeners = new Map>();
+ vi.stubGlobal('matchMedia', (media: string) => {
+ if (!queries.has(media)) {
+ const changes = new Set();
+ listeners.set(media, changes);
+ queries.set(media, {
+ media,
+ get matches() { return width < Number(media.match(/[\d.]+/)?.[0]); },
+ addEventListener: (_type: string, listener: EventListenerOrEventListenerObject) => changes.add(listener),
+ removeEventListener: (_type: string, listener: EventListenerOrEventListenerObject) => changes.delete(listener),
+ } as MediaQueryList);
+ }
+ return queries.get(media);
+ });
+ return {
+ resize: (nextWidth: number) => {
+ width = nextWidth;
+ listeners.forEach((changes) => changes.forEach((listener) => {
+ if (typeof listener === 'function') listener(new Event('change'));
+ }));
+ },
+ listenerCount: () => [...listeners.values()].reduce((count, changes) => count + changes.size, 0),
+ };
+};
diff --git a/Source/DataTables/for_DataTableCore/when_hydrating_mobile_layout.tsx b/Source/DataTables/for_DataTableCore/when_hydrating_mobile_layout.tsx
new file mode 100644
index 00000000..3b80852f
--- /dev/null
+++ b/Source/DataTables/for_DataTableCore/when_hydrating_mobile_layout.tsx
@@ -0,0 +1,48 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+// @vitest-environment jsdom
+
+import { should } from 'chai';
+import { act } from 'react';
+import { hydrateRoot, type Root } from 'react-dom/client';
+import { renderToString } from 'react-dom/server';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { Column } from '../Column';
+import { DataTableCore } from '../DataTableCore';
+import { aMobileViewport } from './given/a_mobile_viewport';
+
+should();
+const table = ;
+
+it('should server-render table markup regardless of a narrow viewport', () => {
+ aMobileViewport();
+ renderToString(table).should.contain(' {
+ let container: HTMLDivElement;
+ let root: Root;
+ let errors: unknown[];
+ beforeEach(async () => {
+ (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+ aMobileViewport();
+ errors = [];
+ container = document.createElement('div');
+ container.innerHTML = renderToString(table);
+ document.body.append(container);
+ await act(async () => { root = hydrateRoot(container, table, { onRecoverableError: error => errors.push(error) }); });
+ });
+ afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+ vi.unstubAllGlobals();
+ });
+ it('should not have a hydration mismatch', () => {
+ errors.should.have.lengthOf(0);
+ });
+ it('should switch to cards after hydration', () => {
+ container.querySelectorAll('ul').length.should.equal(1);
+ });
+});
diff --git a/Source/DataTables/for_DataTableCore/when_rendering_mobile_cards.tsx b/Source/DataTables/for_DataTableCore/when_rendering_mobile_cards.tsx
new file mode 100644
index 00000000..f45e83c5
--- /dev/null
+++ b/Source/DataTables/for_DataTableCore/when_rendering_mobile_cards.tsx
@@ -0,0 +1,189 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+// @vitest-environment jsdom
+
+import { should } from 'chai';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { CratisComponentsProvider } from '../../Common/CratisComponentsProvider';
+import { Column } from '../Column';
+import { DataTableCore, type DataTableCoreProps } from '../DataTableCore';
+import { DataTableStatus } from '../DataTableStatus';
+import { DataTableRowProcessing } from '../DataTableRowProcessing';
+import { DataTableSortDirection } from '../DataTableSortDirection';
+import { aMobileViewport } from './given/a_mobile_viewport';
+
+should();
+const data = [{ id: 1, name: 'Example Project' }, { id: 2, name: 'Demo Project' }];
+type Row = (typeof data)[number];
+
+describe('when rendering mobile cards', () => {
+ let container: HTMLDivElement;
+ let root: Root;
+ let viewport: ReturnType;
+ const activated = vi.fn();
+ const selectionChanged = vi.fn();
+ const render = async (props: Partial> = {}, descending?: string) => {
+ await act(async () => root.render(
+
+
+
+
+ field='name' header={Project name } sortable filter body={row => <>{row.name} Action Link Example Enabled >} />
+
+
+ ,
+ ));
+ };
+ beforeEach(() => {
+ (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+ viewport = aMobileViewport();
+ container = document.createElement('div');
+ document.body.append(container);
+ root = createRoot(container);
+ });
+ afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+ vi.unstubAllGlobals();
+ activated.mockReset();
+ selectionChanged.mockReset();
+ });
+
+ it('should omit selection marker fields and keep body templates and blank values', async () => {
+ await render();
+ [...container.querySelectorAll('li dd')].map(value => value.textContent).should.deep.equal([
+ 'Example ProjectActionLinkExampleEnabled', '', 'Demo ProjectActionLinkExampleEnabled', '',
+ ]);
+ });
+ it('should keep server row order despite a controlled sort and unmatched search', async () => {
+ await render({ rowProcessing: DataTableRowProcessing.None, globalFilter: 'Unmatched', globalFilterFields: ['name'], sort: { field: 'name', direction: DataTableSortDirection.Ascending } });
+ [...container.querySelectorAll('li dd > span')].map(value => value.textContent).should.deep.equal(data.map(row => row.name));
+ });
+ it('should provide one select-all and one row checkbox despite repeated markers', async () => {
+ await render({ selectionMode: 'multiple' });
+ container.querySelectorAll('[data-cratis-part="select-all"], li > input[type="checkbox"]').length.should.equal(3);
+ });
+ it('should toggle native selection without row activation', async () => {
+ await render({ selectionMode: 'multiple', onSelectedItemsChange: selectionChanged });
+ await act(async () => container.querySelector('li > input')!.click());
+ activated.mock.calls.length.should.equal(0);
+ });
+ it('should report native selection once', async () => {
+ await render({ selectionMode: 'multiple', onSelectedItemsChange: selectionChanged });
+ await act(async () => container.querySelector('li > input')!.click());
+ selectionChanged.mock.calls.should.deep.equal([[ [data[0]] ]]);
+ });
+ it.each(['button', 'a', 'input', 'select', 'textarea', 'label'])('should not activate through nested %s', async selector => {
+ await render();
+ await act(async () => container.querySelector(`li dd ${selector}`)!.click());
+ activated.mock.calls.length.should.equal(0);
+ });
+ it.each(['Enter', ' '])('should activate a focused card once with %s', async key => {
+ await render({ selectionMode: 'single', onSelectionChange: selectionChanged });
+ await act(async () => container.querySelector('li')!.dispatchEvent(new KeyboardEvent('keydown', { key, bubbles: true })));
+ selectionChanged.mock.calls.length.should.equal(1);
+ });
+ it('should activate a noninteractive card value once on click', async () => {
+ await render();
+ await act(async () => container.querySelector('li dd > span')!.click());
+ activated.mock.calls.length.should.equal(1);
+ });
+ it('should expose selection with native checked state rather than invalid listitem attributes', async () => {
+ await render({ selectionMode: 'single', selection: data[0] });
+ container.querySelector('li > input')!.checked.should.equal(true);
+ });
+ it('should retain select-all indeterminate state through a partial-selection layout roundtrip', async () => {
+ await act(async () => viewport.resize(640));
+ await act(async () => root.render(
+
+
+
+ ,
+ ));
+ const states = [container.querySelector('[data-cratis-part="select-all"]')!.indeterminate];
+ await act(async () => viewport.resize(639));
+ states.push(container.querySelector('[data-cratis-part="select-all"]')!.indeterminate);
+ await act(async () => viewport.resize(640));
+ states.push(container.querySelector('[data-cratis-part="select-all"]')!.indeterminate);
+ states.should.deep.equal([true, true, true]);
+ });
+ it('should activate an already-selected card when its radio is clicked', async () => {
+ await render({ selectionMode: 'single', selection: data[0] });
+ await act(async () => container.querySelector('li > input[type="radio"]')!.click());
+ activated.mock.calls.length.should.equal(1);
+ });
+ it('should keep the single-selection radio read-only and outside the tab order', async () => {
+ await render({ selectionMode: 'single', selection: data[0] });
+ const radio = container.querySelector('li > input[type="radio"]')!;
+ (radio.readOnly && radio.tabIndex === -1).should.equal(true);
+ });
+ it('should preserve a focused keyed row across both presentation changes', async () => {
+ await render({ selectionMode: 'single' });
+ container.querySelector('li')!.focus();
+ await act(async () => viewport.resize(640));
+ await act(async () => viewport.resize(639));
+ document.activeElement!.getAttribute('data-datatable-row-key')!.should.equal('identity:1');
+ });
+ it('should preserve focus outside the replaced presentation', async () => {
+ await render({ globalFilterFields: ['name'] });
+ const search = container.querySelector('[data-cratis-part="search-input"]')!;
+ search.focus();
+ await act(async () => viewport.resize(640));
+ (document.activeElement === search).should.equal(true);
+ });
+ it('should not emit activation callbacks when the viewport changes', async () => {
+ await render({ selectionMode: 'single', onSelectionChange: selectionChanged });
+ await act(async () => viewport.resize(640));
+ await act(async () => viewport.resize(639));
+ selectionChanged.mock.calls.length.should.equal(0);
+ });
+ it('should keep card-specific part attributes separate from table parts', async () => {
+ await render({ pt: { card: { title: 'Card detail', className: 'custom-card' }, cell: { title: 'Desktop cell' }, cardValue: { style: { color: 'red' }, title: 'Card value' } } });
+ container.querySelectorAll('.custom-card[title="Card detail"] dd[title="Card value"]').length.should.equal(4);
+ });
+ it('should expose sort direction audibly without aria-sort on listitems', async () => {
+ await render({ sort: { field: 'name', direction: DataTableSortDirection.Descending } });
+ const description = container.querySelector('[data-cratis-part="sort"]')!.getAttribute('aria-describedby')!;
+ document.getElementById(description)!.textContent!.should.equal('Descending');
+ });
+ it('should localize the associated card sort direction', async () => {
+ await render({ sort: { field: 'name', direction: DataTableSortDirection.Descending } }, 'Example descending');
+ const description = container.querySelector('[data-cratis-part="sort"]')!.getAttribute('aria-describedby')!;
+ document.getElementById(description)!.textContent!.should.equal('Example descending');
+ });
+ it('should not use table-only selection semantics on listitems', async () => {
+ await render({ selectionMode: 'single', selection: data[0] });
+ container.querySelectorAll('li[aria-selected], li[aria-sort]').length.should.equal(0);
+ });
+ it('should let a prevented part event cancel activation', async () => {
+ await render({ pt: { card: { onClick: event => event.preventDefault() } } });
+ await act(async () => container.querySelector('li')!.click());
+ activated.mock.calls.length.should.equal(0);
+ });
+ it('should move lost control focus to the stable root without activating', async () => {
+ await render();
+ container.querySelector('[data-cratis-part="sort"]')!.focus();
+ await act(async () => viewport.resize(640));
+ (document.activeElement === container.querySelector('[data-cratis-component="DataTableCore"]')).should.equal(true);
+ });
+ it('should use filtered-empty status for unmatched loaded-page search', async () => {
+ await render({ globalFilter: 'Unmatched', globalFilterFields: ['name'] });
+ container.querySelector('[role="status"]')!.textContent!.should.equal('No rows on this page match the search.');
+ });
+ it('should retain loaded rows with busy state during refetch', async () => {
+ await render({ status: DataTableStatus.Loading });
+ container.querySelectorAll('ul[aria-busy="true"] > li').length.should.equal(2);
+ });
+ it.each([
+ [DataTableStatus.Loading, 'status', 'Loading…'],
+ [DataTableStatus.Failed, 'alert', 'Could not load data.'],
+ [DataTableStatus.Unauthorized, 'alert', 'You are not authorized to view this data.'],
+ [DataTableStatus.Ready, 'status', 'No rows'],
+ ])('should show %s as a non-table status', async (status, role, message) => {
+ await render({ data: [], status: status as DataTableStatus });
+ container.querySelector(`[role="${role}"]`)!.textContent!.should.equal(message);
+ });
+});
diff --git a/Source/DataTables/for_DataTableCore/when_switching_mobile_layout.tsx b/Source/DataTables/for_DataTableCore/when_switching_mobile_layout.tsx
new file mode 100644
index 00000000..f30f0d9b
--- /dev/null
+++ b/Source/DataTables/for_DataTableCore/when_switching_mobile_layout.tsx
@@ -0,0 +1,98 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+// @vitest-environment jsdom
+
+import { should } from 'chai';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { Column } from '../Column';
+import { DataTableCore, type DataTableCoreProps } from '../DataTableCore';
+import { aMobileViewport } from './given/a_mobile_viewport';
+
+should();
+
+describe('when switching mobile layout', () => {
+ let container: HTMLDivElement;
+ let root: Root;
+ let viewport: ReturnType;
+ const onSortChange = vi.fn();
+ const render = async (props: Partial> = {}) => {
+ await act(async () => root.render(
+
+ Name} sortable />
+ ,
+ ));
+ };
+
+ beforeEach(() => {
+ (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+ viewport = aMobileViewport();
+ container = document.createElement('div');
+ document.body.append(container);
+ root = createRoot(container);
+ });
+ afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+ vi.unstubAllGlobals();
+ onSortChange.mockReset();
+ });
+
+ it('should show labeled values in a semantic list below the default threshold', async () => {
+ await render();
+ container.querySelectorAll('ul > li dl dt strong').length.should.equal(1);
+ });
+ it('should keep the table when cards are not requested', async () => {
+ await render({ mobileLayout: undefined });
+ container.querySelectorAll('table').length.should.equal(1);
+ });
+ it('should keep the table when only a breakpoint is supplied', async () => {
+ await render({ mobileLayout: undefined, mobileBreakpoint: 900 });
+ container.querySelectorAll('table').length.should.equal(1);
+ });
+ it('should restore the table at the exact boundary without changing sort', async () => {
+ await render();
+ await act(async () => viewport.resize(640));
+ container.querySelectorAll('table').length.should.equal(1);
+ onSortChange.mock.calls.length.should.equal(0);
+ });
+ it.each([0, -10, NaN, Infinity])('should use the default for invalid breakpoint %s', async (mobileBreakpoint) => {
+ await render({ mobileBreakpoint });
+ container.querySelectorAll('ul').length.should.equal(1);
+ });
+ it('should resubscribe when the threshold changes', async () => {
+ await render({ mobileBreakpoint: 600 });
+ await render({ mobileBreakpoint: 700 });
+ viewport.listenerCount().should.equal(1);
+ container.querySelectorAll('ul').length.should.equal(1);
+ });
+ it('should keep uncontrolled sort and its order when the viewport changes', async () => {
+ await render();
+ await act(async () => container.querySelector('[data-cratis-part="sort"]')!.click());
+ await act(async () => viewport.resize(640));
+ container.querySelector('th')!.getAttribute('aria-sort')!.should.equal('ascending');
+ });
+ it('should report only the user sort change and not the layout switch', async () => {
+ await render();
+ await act(async () => container.querySelector('[data-cratis-part="sort"]')!.click());
+ await act(async () => viewport.resize(640));
+ onSortChange.mock.calls.length.should.equal(1);
+ });
+ it('should unsubscribe when the opt-in is disabled', async () => {
+ await render();
+ await render({ mobileLayout: undefined });
+ viewport.listenerCount().should.equal(0);
+ });
+ it('should safely use the table without matchMedia', async () => {
+ vi.stubGlobal('matchMedia', undefined);
+ await render();
+ container.querySelectorAll('table').length.should.equal(1);
+ });
+ it('should release the viewport listener on unmount', async () => {
+ await render();
+ await act(async () => root.unmount());
+ viewport.listenerCount().should.equal(0);
+ });
+});
diff --git a/Source/DataTables/for_DataTableForObservableQuery/when_switching_mobile_layout.tsx b/Source/DataTables/for_DataTableForObservableQuery/when_switching_mobile_layout.tsx
new file mode 100644
index 00000000..ab8ff76c
--- /dev/null
+++ b/Source/DataTables/for_DataTableForObservableQuery/when_switching_mobile_layout.tsx
@@ -0,0 +1,74 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+// @vitest-environment jsdom
+
+import { should } from 'chai';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { ObservableQueryFor } from '@cratis/arc/queries';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { Column } from '../Column';
+import { DataTableForObservableQuery } from '../DataTableForObservableQuery';
+import { aMobileViewport } from '../for_DataTableCore/given/a_mobile_viewport';
+
+should();
+interface Row { id: number; name: string }
+class ExampleQuery extends ObservableQueryFor {
+ readonly route = '/api/examples';
+ readonly defaultValue: Row[] = [];
+ readonly parameterDescriptors = [];
+ get requiredRequestParameters() { return []; }
+ constructor() { super(Object, false); }
+}
+const controls = vi.hoisted(() => ({
+ page: vi.fn(), sort: vi.fn(), args: vi.fn(),
+ data: [{ id: 1, name: 'Example Project' }],
+}));
+vi.mock('@cratis/arc.react/queries', () => ({
+ useObservableQueryWithPaging: () => [{
+ data: controls.data, isSuccess: true, isAuthorized: true, isValid: true,
+ isPerforming: false, hasExceptions: false, paging: { page: 0, size: 20, totalItems: 40, totalPages: 2 },
+ }, controls.page, controls.sort, controls.args],
+}));
+
+describe('when switching observable query mobile layout', () => {
+ let container: HTMLDivElement;
+ let root: Root;
+ let viewport: ReturnType;
+ const render = async () => {
+ await act(async () => root.render(
+ query={ExampleQuery} emptyMessage='No rows' mobileLayout='cards' mobileBreakpoint={768}>
+
+ ,
+ ));
+ };
+ beforeEach(async () => {
+ (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+ controls.data = [{ id: 1, name: 'Example Project' }];
+ viewport = aMobileViewport(700);
+ vi.stubGlobal('ResizeObserver', class { observe() { /* No layout in jsdom. */ } disconnect() { /* No layout in jsdom. */ } });
+ container = document.createElement('div');
+ document.body.append(container);
+ root = createRoot(container);
+ await render();
+ vi.clearAllMocks();
+ });
+ afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+ vi.unstubAllGlobals();
+ });
+ it('should forward the custom breakpoint to cards', () => {
+ container.querySelectorAll('ul > li').length.should.equal(1);
+ });
+ it('should render an incoming result in the active presentation', async () => {
+ controls.data = [{ id: 2, name: 'Demo Project' }];
+ await render();
+ container.querySelector('li dd')!.textContent!.should.equal('Demo Project');
+ });
+ it('should not change page, sort or query arguments on resize', async () => {
+ await act(async () => viewport.resize(768));
+ [...controls.page.mock.calls, ...controls.sort.mock.calls, ...controls.args.mock.calls].should.have.lengthOf(0);
+ });
+});
diff --git a/Source/DataTables/for_DataTableForQuery/when_switching_mobile_layout.tsx b/Source/DataTables/for_DataTableForQuery/when_switching_mobile_layout.tsx
new file mode 100644
index 00000000..58c02e55
--- /dev/null
+++ b/Source/DataTables/for_DataTableForQuery/when_switching_mobile_layout.tsx
@@ -0,0 +1,67 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+// @vitest-environment jsdom
+
+import { should } from 'chai';
+import { act } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { QueryFor } from '@cratis/arc/queries';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { Column } from '../Column';
+import { DataTableForQuery } from '../DataTableForQuery';
+import { aMobileViewport } from '../for_DataTableCore/given/a_mobile_viewport';
+
+should();
+interface Row { id: number; name: string }
+class ExampleQuery extends QueryFor {
+ readonly route = '/api/examples';
+ readonly defaultValue: Row[] = [];
+ readonly parameterDescriptors = [];
+ get requiredRequestParameters() { return []; }
+ constructor() { super(Object, true); }
+}
+const controls = vi.hoisted(() => ({ page: vi.fn(), sort: vi.fn(), args: vi.fn() }));
+vi.mock('@cratis/arc.react/queries', () => ({
+ useQueryWithPaging: () => [{
+ data: [{ id: 1, name: 'Example Project' }], isSuccess: true, isAuthorized: true, isValid: true,
+ isPerforming: false, hasExceptions: false, paging: { page: 0, size: 20, totalItems: 40, totalPages: 2 },
+ }, controls.page, controls.sort, controls.args],
+}));
+
+describe('when switching snapshot query mobile layout', () => {
+ let container: HTMLDivElement;
+ let root: Root;
+ let viewport: ReturnType;
+ beforeEach(async () => {
+ (globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+ viewport = aMobileViewport(700);
+ vi.stubGlobal('ResizeObserver', class { observe() { /* No layout in jsdom. */ } disconnect() { /* No layout in jsdom. */ } });
+ container = document.createElement('div');
+ document.body.append(container);
+ root = createRoot(container);
+ await act(async () => root.render(
+ query={ExampleQuery} emptyMessage='No rows' mobileLayout='cards' mobileBreakpoint={768}>
+
+ ,
+ ));
+ vi.clearAllMocks();
+ });
+ afterEach(async () => {
+ await act(async () => root.unmount());
+ container.remove();
+ vi.unstubAllGlobals();
+ });
+ it('should forward the custom breakpoint to cards', () => {
+ container.querySelectorAll('ul > li').length.should.equal(1);
+ });
+ it('should retain the same paginator during a resize', async () => {
+ const paginator = container.querySelector('[data-cratis-component="TablePaginator"]');
+ await act(async () => viewport.resize(768));
+ (paginator !== null && container.querySelector('[data-cratis-component="TablePaginator"]') === paginator).should.equal(true);
+ });
+ it('should not change page, sort or query arguments on resize', async () => {
+ await act(async () => viewport.resize(768));
+ [...controls.page.mock.calls, ...controls.sort.mock.calls, ...controls.args.mock.calls].should.have.lengthOf(0);
+ });
+});
diff --git a/Source/DataTables/useDataTableMessages.ts b/Source/DataTables/useDataTableMessages.ts
index 6d8cac04..78ed549e 100644
--- a/Source/DataTables/useDataTableMessages.ts
+++ b/Source/DataTables/useDataTableMessages.ts
@@ -18,6 +18,8 @@ export const useDataTableMessages = (
const { messages } = useCratisComponentsConfig();
const dataTableMessages = messages?.dataTable;
return {
+ resolvedSortAscending: dataTableMessages?.sortAscending ?? 'Ascending',
+ resolvedSortDescending: dataTableMessages?.sortDescending ?? 'Descending',
resolvedSelectionAriaLabel:
overrides.selectionAriaLabel ?? dataTableMessages?.selectRow ?? 'Select row',
resolvedSelectAllAriaLabel:
diff --git a/Source/DataTables/useDataTablePresentationFocus.ts b/Source/DataTables/useDataTablePresentationFocus.ts
new file mode 100644
index 00000000..6272900e
--- /dev/null
+++ b/Source/DataTables/useDataTablePresentationFocus.ts
@@ -0,0 +1,45 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import { useEffect, useLayoutEffect, useRef } from 'react';
+
+const rowSelector = '[data-datatable-row-key]';
+const selectionSelector = 'input[type="checkbox"], input[type="radio"]';
+interface PresentationFocus { element: HTMLElement; key?: string; selection: boolean }
+
+const rememberElement = (element: EventTarget | null, root: HTMLElement | null): PresentationFocus | undefined => {
+ if (!(element instanceof HTMLElement) || !root?.contains(element)) return undefined;
+ return {
+ element,
+ key: element.closest(rowSelector)?.getAttribute('data-datatable-row-key') ?? undefined,
+ selection: element.matches(selectionSelector),
+ };
+};
+const replacementTarget = (root: HTMLElement | null, outgoing: PresentationFocus) => {
+ const row = Array.from(root?.querySelectorAll(rowSelector) ?? [])
+ .find(candidate => candidate.getAttribute('data-datatable-row-key') === outgoing.key);
+ const selection = outgoing.selection ? row?.querySelector(selectionSelector) : undefined;
+ return selection ?? (row?.hasAttribute('tabindex') ? row : undefined) ?? root;
+};
+const restoreRemovedFocus = (root: HTMLElement | null, outgoing?: PresentationFocus) => {
+ if (!outgoing || outgoing.element.isConnected) return;
+ if (document.activeElement !== document.body) return;
+ replacementTarget(root, outgoing)?.focus({ preventScroll: true });
+};
+
+/** Transfers only focus lost when the outgoing presentation is removed. Never moves external focus. */
+export const useDataTablePresentationFocus = (cards: boolean) => {
+ const root = useRef(null);
+ const previous = useRef(cards);
+ const focused = useRef(undefined);
+ useEffect(() => {
+ const remember = (event: FocusEvent) => { focused.current = rememberElement(event.target, root.current); };
+ document.addEventListener('focusin', remember);
+ return () => document.removeEventListener('focusin', remember);
+ }, []);
+ useLayoutEffect(() => {
+ if (previous.current !== cards) restoreRemovedFocus(root.current, focused.current);
+ previous.current = cards;
+ }, [cards]);
+ return root;
+};
diff --git a/Source/DataTables/useMobileLayout.ts b/Source/DataTables/useMobileLayout.ts
new file mode 100644
index 00000000..38ae0e3e
--- /dev/null
+++ b/Source/DataTables/useMobileLayout.ts
@@ -0,0 +1,22 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import { useMemo, useSyncExternalStore } from 'react';
+import type { DataTableMobileLayoutProps } from './DataTableMobileLayoutProps';
+
+const serverSnapshot = () => false;
+const noSubscription = () => () => undefined;
+
+/** Whether this opt-in table should currently use cards; server rendering always uses a table. */
+export const useMobileLayout = ({ mobileLayout, mobileBreakpoint = 640 }: DataTableMobileLayoutProps): boolean => {
+ const breakpoint = Number.isFinite(mobileBreakpoint) && mobileBreakpoint > 0 ? mobileBreakpoint : 640;
+ const query = useMemo(() => {
+ if (mobileLayout !== 'cards' || typeof window === 'undefined' || typeof window.matchMedia !== 'function') return undefined;
+ return window.matchMedia(`(width < ${breakpoint}px)`);
+ }, [mobileLayout, breakpoint]);
+ const subscribe = useMemo(() => query ? (notify: () => void) => {
+ query.addEventListener('change', notify);
+ return () => query.removeEventListener('change', notify);
+ } : noSubscription, [query]);
+ return useSyncExternalStore(subscribe, () => query?.matches ?? false, serverSnapshot);
+};
diff --git a/Source/DataTables/useRowSelection.ts b/Source/DataTables/useRowSelection.ts
index 38dba6ca..bbf29ad9 100644
--- a/Source/DataTables/useRowSelection.ts
+++ b/Source/DataTables/useRowSelection.ts
@@ -89,11 +89,13 @@ export const useRowSelection = ({
visibleRows.length > 0 && selectedVisibleCount === visibleRows.length;
const someFilteredRowsSelected = selectedVisibleCount > 0 && !allFilteredRowsSelected;
const selectAllRef = useRef(null);
+ // Layout changes replace the input without changing the partial-selection boolean.
+ // Reapply after every commit so a newly mounted select-all gets its mixed state too.
useEffect(() => {
if (selectAllRef.current) {
selectAllRef.current.indeterminate = someFilteredRowsSelected;
}
- }, [someFilteredRowsSelected]);
+ });
const toggleSelectAll = () => {
if (allFilteredRowsSelected) {
diff --git a/Source/DataTables/viewport.browser.test.tsx b/Source/DataTables/viewport.browser.test.tsx
new file mode 100644
index 00000000..ce257292
--- /dev/null
+++ b/Source/DataTables/viewport.browser.test.tsx
@@ -0,0 +1,99 @@
+// Copyright (c) Cratis. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+import { should } from 'chai';
+import type {} from 'chai/register-should';
+import { useState } from 'react';
+import { createRoot, type Root } from 'react-dom/client';
+import { afterEach, beforeEach, describe, it, vi } from 'vitest';
+import { page, userEvent } from 'vitest/browser';
+import { Column } from './Column';
+import { DataTableCore } from './DataTableCore';
+import { DataTableStatus } from './DataTableStatus';
+import './DataTableCore.css';
+
+should();
+const rows = [
+ { id: 1, name: 'Example Project', notes: 'LongSyntheticContentWithoutBreaksThatMustWrapWithinTheCardWithoutHorizontalViewportOverflow' },
+ { id: 2, name: 'Demo Project', notes: '' },
+];
+const activated = vi.fn();
+const bodyAction = vi.fn();
+
+const Example = ({ selectionMarker = true }: { selectionMarker?: boolean }) => {
+ const [selectedItems, setSelectedItems] = useState([]);
+ return
+ {selectionMarker && }
+
+
+ Body action } />
+ ;
+};
+
+describe('DataTable viewport presentation', () => {
+ let container: HTMLDivElement;
+ let root: Root;
+ beforeEach(async () => {
+ await page.viewport(390, 800);
+ container = document.createElement('div');
+ document.body.append(container);
+ root = createRoot(container);
+ root.render( );
+ await vi.waitFor(() => container.querySelectorAll('ul > li').length.should.equal(2));
+ });
+ afterEach(() => {
+ root.unmount();
+ container.remove();
+ activated.mockReset();
+ bodyAction.mockReset();
+ });
+ it('should render labeled cards without horizontal overflow at phone width', () => {
+ (document.documentElement.scrollWidth <= window.innerWidth).should.equal(true);
+ });
+ it('should retain native selection and transfer its focus through the strict boundary', async () => {
+ const checkbox = container.querySelector('li > input')!;
+ checkbox.click();
+ checkbox.focus();
+ await page.viewport(640, 800);
+ await vi.waitFor(() => container.querySelectorAll('table tbody tr').length.should.equal(2));
+ await page.viewport(639, 800);
+ await vi.waitFor(() => container.querySelectorAll('ul > li').length.should.equal(2));
+ (document.activeElement as HTMLInputElement).checked.should.equal(true);
+ });
+ it('should fall back to the keyed row when desktop has no selection marker', async () => {
+ await page.viewport(640, 800);
+ await vi.waitFor(() => container.querySelectorAll('table tbody tr').length.should.equal(2));
+ root.render( );
+ await vi.waitFor(() => container.querySelectorAll('table input[type="checkbox"]').length.should.equal(0));
+ await page.viewport(639, 800);
+ await vi.waitFor(() => container.querySelectorAll('ul > li').length.should.equal(2));
+ container.querySelector('li > input')!.focus();
+ await page.viewport(640, 800);
+ await vi.waitFor(() => container.querySelectorAll('table tbody tr').length.should.equal(2));
+ const desktopRowFocused = document.activeElement === container.querySelector('tbody tr');
+ await page.viewport(639, 800);
+ await vi.waitFor(() => container.querySelectorAll('ul > li').length.should.equal(2));
+ [desktopRowFocused, document.activeElement === container.querySelector('li')].should.deep.equal([true, true]);
+ });
+ it('should keep body actions independent from card activation', async () => {
+ await page.getByRole('button', { name: 'Body action' }).first().click();
+ activated.mock.calls.should.have.lengthOf(0);
+ });
+ it('should activate the focused card with Space once', async () => {
+ container.querySelector('li')!.focus();
+ await userEvent.keyboard(' ');
+ activated.mock.calls.should.have.lengthOf(1);
+ });
+ it('should keep search focus while the presentation changes', async () => {
+ const search = container.querySelector('[data-cratis-part="search-input"]')!;
+ search.focus();
+ await page.viewport(640, 800);
+ await vi.waitFor(() => container.querySelectorAll('table').length.should.equal(1));
+ (document.activeElement === search).should.equal(true);
+ });
+ it('should keep a localized failure outside table-only markup', async () => {
+ root.render( );
+ await vi.waitFor(() => container.querySelector('[role="alert"]')!.textContent!.should.equal('Example unavailable'));
+ });
+});
diff --git a/Source/api-surface.json b/Source/api-surface.json
index a32cefdc..7cb0ab40 100644
--- a/Source/api-surface.json
+++ b/Source/api-surface.json
@@ -7,7 +7,7 @@
"CratisComponentsProvider": "CratisComponentsProvider: (props: CratisComponentsProviderProps) => import(\"react\").JSX.Element",
"CratisComponentsProviderProps": "export interface CratisComponentsProviderProps { value?: CratisComponentsConfig; dialogHeaderActions?: DialogHeaderActionsRenderer; toaster?: boolean | ToasterProps; library?: unstable_UiLibrary | readonly unstable_UiLibrary[]; libraryMode?: 'strict' | 'degrade'; rendererFallback?: 'core' | 'throw'; overlayEnvironment?: CratisOverlayEnvironment; rendererSetup?: CratisRendererSetup; children: ReactNode; }",
"CratisComponentsRouter": "export interface CratisComponentsRouter { navigate: (href: string) => void; useHref?: (href: string) => string; }",
- "CratisDataTableMessages": "export interface CratisDataTableMessages { selectRow?: string; selectAllRows?: string; search?: string; searchAriaLabel?: string; loading?: string; failed?: string; unauthorized?: string; filteredEmpty?: string; filteredEmptyServer?: string; }",
+ "CratisDataTableMessages": "export interface CratisDataTableMessages { selectRow?: string; selectAllRows?: string; sortAscending?: string; sortDescending?: string; search?: string; searchAriaLabel?: string; loading?: string; failed?: string; unauthorized?: string; filteredEmpty?: string; filteredEmptyServer?: string; }",
"CratisDatePickerMessages": "export interface CratisDatePickerMessages { today?: string; clear?: string; openCalendar?: string; previousMonth?: string; nextMonth?: string; label?: string; }",
"CratisDialogMessages": "export interface CratisDialogMessages { ok?: string; cancel?: string; yes?: string; no?: string; close?: string; refused?: string; }",
"CratisDropdownMessages": "export interface CratisDropdownMessages { showOptions?: string; clearSelection?: string; }",
@@ -317,7 +317,7 @@
"CratisComponentsProvider": "CratisComponentsProvider: (props: CratisComponentsProviderProps) => import(\"react\").JSX.Element",
"CratisComponentsProviderProps": "export interface CratisComponentsProviderProps { value?: CratisComponentsConfig; dialogHeaderActions?: DialogHeaderActionsRenderer; toaster?: boolean | ToasterProps; library?: unstable_UiLibrary | readonly unstable_UiLibrary[]; libraryMode?: 'strict' | 'degrade'; rendererFallback?: 'core' | 'throw'; overlayEnvironment?: CratisOverlayEnvironment; rendererSetup?: CratisRendererSetup; children: ReactNode; }",
"CratisComponentsRouter": "export interface CratisComponentsRouter { navigate: (href: string) => void; useHref?: (href: string) => string; }",
- "CratisDataTableMessages": "export interface CratisDataTableMessages { selectRow?: string; selectAllRows?: string; search?: string; searchAriaLabel?: string; loading?: string; failed?: string; unauthorized?: string; filteredEmpty?: string; filteredEmptyServer?: string; }",
+ "CratisDataTableMessages": "export interface CratisDataTableMessages { selectRow?: string; selectAllRows?: string; sortAscending?: string; sortDescending?: string; search?: string; searchAriaLabel?: string; loading?: string; failed?: string; unauthorized?: string; filteredEmpty?: string; filteredEmptyServer?: string; }",
"CratisDatePickerMessages": "export interface CratisDatePickerMessages { today?: string; clear?: string; openCalendar?: string; previousMonth?: string; nextMonth?: string; label?: string; }",
"CratisDialogMessages": "export interface CratisDialogMessages { ok?: string; cancel?: string; yes?: string; no?: string; close?: string; refused?: string; }",
"CratisDropdownMessages": "export interface CratisDropdownMessages { showOptions?: string; clearSelection?: string; }",
@@ -490,7 +490,7 @@
"ColumnFilterOption": "export interface ColumnFilterOption { label: string; value: unknown; }",
"ColumnProps": "export interface ColumnProps { field?: string; header?: React.ReactNode; body?: (rowData: TData) => React.ReactNode; sortable?: boolean; filter?: boolean; filterField?: string; filterPlaceholder?: string; dataType?: ColumnFilterDataType; showFilterMatchModes?: boolean; filterElement?: ColumnFilterElement; filterOptions?: ColumnFilterOption[]; filterLabels?: Partial; filterPt?: ColumnFilterMenuParts; selectionMode?: 'single' | 'multiple'; style?: React.CSSProperties; className?: string; headerStyle?: React.CSSProperties; headerClassName?: string; bodyStyle?: React.CSSProperties; bodyClassName?: string; }",
"DataTableCore": "DataTableCore: (props: DataTableCoreProps) => React.JSX.Element",
- "DataTableCoreProps": "export interface DataTableCoreProps { data: TData[]; children?: ReactNode; dataKey?: string; emptyMessage: ReactNode; filteredEmptyMessage?: ReactNode; status?: DataTableStatus; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; selectionMode?: 'single' | 'multiple'; selectionAriaLabel?: string; selectAllAriaLabel?: string; selection?: TData | null; onSelectionChange?: (event: DataTableSelectionChangeEvent) => void; selectedItems?: TData[]; onSelectedItemsChange?: (items: TData[]) => void; onRowClick?: (event: DataTableRowClickEvent) => void; rowClassName?: (rowData: TData) => string; globalFilterFields?: string[]; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; filters?: DataTableFilterMeta; onFilter?: (filters: DataTableFilterMeta) => void; globalFilter?: string; onGlobalFilterChange?: (globalFilter: string) => void; sort?: DataTableSort | null; onSortChange?: (sort: DataTableSort | null) => void; rowProcessing?: DataTableRowProcessing; scrollable?: boolean; scrollHeight?: string; className?: string; style?: CSSProperties; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; }",
+ "DataTableCoreProps": "export interface DataTableCoreProps extends DataTableMobileLayoutProps { data: TData[]; children?: ReactNode; dataKey?: string; emptyMessage: ReactNode; filteredEmptyMessage?: ReactNode; status?: DataTableStatus; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; selectionMode?: 'single' | 'multiple'; selectionAriaLabel?: string; selectAllAriaLabel?: string; selection?: TData | null; onSelectionChange?: (event: DataTableSelectionChangeEvent) => void; selectedItems?: TData[]; onSelectedItemsChange?: (items: TData[]) => void; onRowClick?: (event: DataTableRowClickEvent) => void; rowClassName?: (rowData: TData) => string; globalFilterFields?: string[]; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; filters?: DataTableFilterMeta; onFilter?: (filters: DataTableFilterMeta) => void; globalFilter?: string; onGlobalFilterChange?: (globalFilter: string) => void; sort?: DataTableSort | null; onSortChange?: (sort: DataTableSort | null) => void; rowProcessing?: DataTableRowProcessing; scrollable?: boolean; scrollHeight?: string; className?: string; style?: CSSProperties; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; }",
"DataTableCustomFilterMatchMode": "export type DataTableCustomFilterMatchMode = string & { readonly [customFilterMatchMode]: true; };",
"DataTableFilterConstraint": "export interface DataTableFilterConstraint { value: unknown; matchMode?: DataTableFilterMatchMode; }",
"DataTableFilterEntry": "export type DataTableFilterEntry = DataTableFilterConstraint | DataTableOperatorFilterConstraint;",
@@ -499,11 +499,12 @@
"DataTableFilterMatcherRegistration": "export interface DataTableFilterMatcherRegistration { matchMode: DataTableCustomFilterMatchMode; unregister(): void; }",
"DataTableFilterMeta": "export type DataTableFilterMeta = Record;",
"DataTableForObservableQuery": "DataTableForObservableQuery: | IObservableQueryFor, TDataType extends object, TArguments extends object>(props: DataTableForObservableQueryProps) => import(\"react\").JSX.Element",
- "DataTableForObservableQueryProps": "export interface DataTableForObservableQueryProps | IObservableQueryFor, TDataType extends object, TArguments extends object> { children?: ReactNode; query: Constructor; queryArguments?: TArguments; emptyMessage: string; filteredEmptyMessage?: ReactNode; onGlobalFilterChange?: (globalFilter: string) => void; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; dataKey?: string | undefined; selection?: TDataType | undefined | null; onSelectionChange?(event: DataTableSelectionChangeEvent): void; selectionMode?: 'single' | 'multiple'; selectedItems?: TDataType[]; onSelectedItemsChange?(items: TDataType[]): void; globalFilterFields?: string[] | undefined; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; clientFiltering?: boolean; serverQuery?: DataTableServerQuery; className?: string; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; pageLinks?: TablePaginatorProps['pageLinks']; paginatorClassName?: string; paginatorPt?: TablePaginatorParts; paginatorPtOptions?: object; paginatorAriaLabels?: TablePaginatorProps['ariaLabels']; }",
+ "DataTableForObservableQueryProps": "export interface DataTableForObservableQueryProps | IObservableQueryFor, TDataType extends object, TArguments extends object> extends DataTableMobileLayoutProps { children?: ReactNode; query: Constructor; queryArguments?: TArguments; emptyMessage: string; filteredEmptyMessage?: ReactNode; onGlobalFilterChange?: (globalFilter: string) => void; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; dataKey?: string | undefined; selection?: TDataType | undefined | null; onSelectionChange?(event: DataTableSelectionChangeEvent): void; selectionMode?: 'single' | 'multiple'; selectedItems?: TDataType[]; onSelectedItemsChange?(items: TDataType[]): void; globalFilterFields?: string[] | undefined; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; clientFiltering?: boolean; serverQuery?: DataTableServerQuery; className?: string; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; pageLinks?: TablePaginatorProps['pageLinks']; paginatorClassName?: string; paginatorPt?: TablePaginatorParts; paginatorPtOptions?: object; paginatorAriaLabels?: TablePaginatorProps['ariaLabels']; }",
"DataTableForQuery": "DataTableForQuery: | IQueryFor, TDataType extends object, TArguments extends object>(props: DataTableForQueryProps) => import(\"react\").JSX.Element",
- "DataTableForQueryProps": "export interface DataTableForQueryProps | IQueryFor, TDataType extends object, TArguments extends object> { children?: ReactNode; query: Constructor; queryArguments?: TArguments; emptyMessage: string; filteredEmptyMessage?: ReactNode; onGlobalFilterChange?: (globalFilter: string) => void; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; dataKey?: string | undefined; selection?: TDataType | undefined | null; onSelectionChange?(event: DataTableSelectionChangeEvent): void; selectionMode?: 'single' | 'multiple'; selectedItems?: TDataType[]; onSelectedItemsChange?(items: TDataType[]): void; globalFilterFields?: string[] | undefined; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; clientFiltering?: boolean; serverQuery?: DataTableServerQuery; className?: string; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; pageLinks?: TablePaginatorProps['pageLinks']; paginatorClassName?: string; paginatorPt?: TablePaginatorParts; paginatorPtOptions?: object; paginatorAriaLabels?: TablePaginatorProps['ariaLabels']; }",
+ "DataTableForQueryProps": "export interface DataTableForQueryProps | IQueryFor, TDataType extends object, TArguments extends object> extends DataTableMobileLayoutProps { children?: ReactNode; query: Constructor; queryArguments?: TArguments; emptyMessage: string; filteredEmptyMessage?: ReactNode; onGlobalFilterChange?: (globalFilter: string) => void; loadingMessage?: ReactNode; failureMessage?: ReactNode; unauthorizedMessage?: ReactNode; dataKey?: string | undefined; selection?: TDataType | undefined | null; onSelectionChange?(event: DataTableSelectionChangeEvent): void; selectionMode?: 'single' | 'multiple'; selectedItems?: TDataType[]; onSelectedItemsChange?(items: TDataType[]): void; globalFilterFields?: string[] | undefined; globalSearchPlaceholder?: string; globalSearchAriaLabel?: string; defaultFilters?: DataTableFilterMeta; clientFiltering?: boolean; serverQuery?: DataTableServerQuery; className?: string; pt?: DataTableParts; ptOptions?: object; unstyled?: boolean; pageLinks?: TablePaginatorProps['pageLinks']; paginatorClassName?: string; paginatorPt?: TablePaginatorParts; paginatorPtOptions?: object; paginatorAriaLabels?: TablePaginatorProps['ariaLabels']; }",
+ "DataTableMobileLayoutProps": "export interface DataTableMobileLayoutProps { mobileLayout?: 'cards'; mobileBreakpoint?: number; }",
"DataTableOperatorFilterConstraint": "export interface DataTableOperatorFilterConstraint { operator?: string; constraints: DataTableFilterConstraint[]; }",
- "DataTableParts": "export interface DataTableParts { root?: HTMLAttributes; search?: HTMLAttributes; searchInput?: React.InputHTMLAttributes; tableContainer?: HTMLAttributes; table?: TableHTMLAttributes; head?: HTMLAttributes; headerRow?: HTMLAttributes; headerCell?: ThHTMLAttributes; body?: HTMLAttributes; row?: HTMLAttributes; cell?: TdHTMLAttributes; emptyRow?: HTMLAttributes; emptyCell?: TdHTMLAttributes; loadingRow?: HTMLAttributes; loadingCell?: TdHTMLAttributes; failureRow?: HTMLAttributes; failureCell?: TdHTMLAttributes; }",
+ "DataTableParts": "export interface DataTableParts { root?: HTMLAttributes; search?: HTMLAttributes; searchInput?: React.InputHTMLAttributes; tableContainer?: HTMLAttributes; cards?: HTMLAttributes; card?: HTMLAttributes; cardLabel?: HTMLAttributes; cardValue?: HTMLAttributes; cardControls?: HTMLAttributes; cardStatus?: HTMLAttributes; table?: TableHTMLAttributes; head?: HTMLAttributes; headerRow?: HTMLAttributes; headerCell?: ThHTMLAttributes; body?: HTMLAttributes; row?: HTMLAttributes; cell?: TdHTMLAttributes; emptyRow?: HTMLAttributes; emptyCell?: TdHTMLAttributes; loadingRow?: HTMLAttributes; loadingCell?: TdHTMLAttributes; failureRow?: HTMLAttributes; failureCell?: TdHTMLAttributes; }",
"DataTableRowClickEvent": "export interface DataTableRowClickEvent { data: TData; index: number; }",
"DataTableRowProcessing": "export declare enum DataTableRowProcessing { Loaded = \"loaded\", None = \"none\" }",
"DataTableSelectionChangeEvent": "export interface DataTableSelectionChangeEvent { value: TData | null; originalEvent?: SyntheticEvent; }",
@@ -841,7 +842,7 @@
"PartsOf": "export type PartsOf = CratisPartsManifest[K][number];",
"TypeFormat": "export interface TypeFormat { jsonType: string; format: string; }",
"cratisCanonicalPartStates": "cratisCanonicalPartStates: readonly [ 'disabled', 'loading', 'selected', 'open', 'invalid', 'readonly', 'busy', 'focused', 'pressed' ]",
- "cratisPartStates": "cratisPartStates: { readonly CheckboxField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RatingField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly star: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RadioButtonField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RadioGroupField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly ChipsField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly item: readonly [ \"selected\" ]; readonly remove: readonly [ \"disabled\", \"selected\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly ToggleSwitchField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly control: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly handle: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly SliderField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"invalid\" ]; readonly value: readonly [ \"invalid\" ]; }; readonly NumberField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly ComboBox: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"loading\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly trigger: readonly [ \"disabled\", \"open\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly optionLabel: readonly [ ]; readonly optionDescription: readonly [ ]; readonly loading: readonly [ ]; readonly empty: readonly [ ]; readonly failure: readonly [ ]; readonly action: readonly [ ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly NumberInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"focused\" ]; readonly prefix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly suffix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly step: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly NumberInputField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"focused\" ]; readonly prefix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly suffix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly step: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly ColorPickerField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"invalid\" ]; readonly value: readonly [ \"invalid\" ]; }; readonly PasswordField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly toggle: readonly [ \"disabled\" ]; }; readonly InputTextField: { readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly GuidField: { readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly TextAreaField: { readonly textarea: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly Dropdown: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly DropdownField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly MultiSelectField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly DatePickerInput: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly segment: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly placeholder: readonly [ ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ \"open\" ]; readonly calendar: readonly [ \"open\" ]; readonly header: readonly [ ]; readonly previous: readonly [ ]; readonly heading: readonly [ ]; readonly next: readonly [ ]; readonly grid: readonly [ ]; readonly cell: readonly [ \"selected\" ]; readonly 'button-bar': readonly [ ]; readonly today: readonly [ \"disabled\" ]; readonly clear: readonly [ \"disabled\" ]; }; readonly CalendarField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly segment: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly placeholder: readonly [ ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ \"open\" ]; readonly calendar: readonly [ \"open\" ]; readonly header: readonly [ ]; readonly previous: readonly [ ]; readonly heading: readonly [ ]; readonly next: readonly [ ]; readonly grid: readonly [ ]; readonly cell: readonly [ \"selected\" ]; readonly 'button-bar': readonly [ ]; readonly today: readonly [ \"disabled\" ]; readonly clear: readonly [ \"disabled\" ]; }; readonly Button: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ActionMenubar: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly IconButton: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly TextInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly NumericInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly TextArea: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly Checkbox: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Radio: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Switch: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly control: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly handle: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Surface: { readonly root: readonly [ ]; }; readonly Tooltip: { readonly trigger: readonly [ ]; readonly popup: readonly [ \"open\" ]; }; readonly ToggleGroup: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"selected\", \"disabled\", \"invalid\" ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly Tabs: { readonly root: readonly [ \"disabled\" ]; readonly list: readonly [ ]; readonly tab: readonly [ \"selected\", \"disabled\" ]; readonly panel: readonly [ \"selected\" ]; }; readonly TagGroup: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly list: readonly [ ]; readonly tag: readonly [ \"disabled\" ]; readonly remove: readonly [ ]; readonly input: readonly [ \"invalid\" ]; }; readonly Breadcrumbs: { readonly root: readonly [ ]; readonly item: readonly [ \"selected\" ]; readonly link: readonly [ \"selected\" ]; readonly separator: readonly [ ]; }; readonly Dialog: { readonly backdrop: readonly [ \"open\", \"busy\" ]; readonly positioner: readonly [ \"open\", \"busy\" ]; readonly root: readonly [ \"open\", \"busy\" ]; readonly header: readonly [ ]; readonly title: readonly [ ]; readonly subtitle: readonly [ ]; readonly 'header-actions': readonly [ ]; readonly close: readonly [ \"disabled\", \"busy\" ]; readonly content: readonly [ \"open\", \"busy\" ]; readonly 'busy-scope': readonly [ \"busy\" ]; readonly footer: readonly [ ]; readonly confirm: readonly [ \"disabled\", \"busy\" ]; readonly cancel: readonly [ \"disabled\", \"busy\" ]; }; readonly ComponentPicker: { readonly overlay: readonly [ ]; readonly frame: readonly [ ]; readonly name: readonly [ ]; }; readonly ComponentHighlight: { readonly overlay: readonly [ ]; readonly frame: readonly [ ]; readonly name: readonly [ ]; }; readonly PresentationPropertyEditor: { readonly root: readonly [ ]; readonly empty: readonly [ ]; readonly property: readonly [ ]; readonly label: readonly [ ]; readonly input: readonly [ ]; readonly description: readonly [ ]; }; readonly CommandDialog: { readonly backdrop: readonly [ \"open\", \"busy\" ]; readonly positioner: readonly [ \"open\", \"busy\" ]; readonly root: readonly [ \"open\", \"busy\" ]; readonly header: readonly [ ]; readonly title: readonly [ ]; readonly subtitle: readonly [ ]; readonly 'header-actions': readonly [ ]; readonly close: readonly [ \"disabled\", \"busy\" ]; readonly content: readonly [ \"open\", \"busy\" ]; readonly 'busy-scope': readonly [ \"busy\" ]; readonly footer: readonly [ ]; readonly confirm: readonly [ \"disabled\", \"busy\" ]; readonly cancel: readonly [ \"disabled\", \"busy\" ]; }; readonly CommandStepper: { readonly root: readonly [ \"invalid\", \"busy\" ]; readonly list: readonly [ \"invalid\", \"busy\" ]; readonly step: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly header: readonly [ \"disabled\", \"selected\", \"invalid\", \"busy\" ]; readonly number: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly title: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly separator: readonly [ \"invalid\", \"busy\" ]; readonly panels: readonly [ \"invalid\", \"busy\" ]; readonly panel: readonly [ \"selected\", \"invalid\", \"busy\" ]; }; readonly DataTableCore: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly DataTableForObservableQuery: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly DataTableForQuery: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly ColumnFilterMenu: { readonly 'filter-trigger': readonly [ \"selected\", \"open\", \"pressed\" ]; readonly 'filter-popover': readonly [ \"open\" ]; readonly 'filter-menu': readonly [ \"open\" ]; readonly 'filter-actions': readonly [ ]; }; readonly TablePaginator: { readonly root: readonly [ ]; readonly range: readonly [ ]; readonly info: readonly [ ]; readonly pages: readonly [ ]; readonly page: readonly [ \"selected\" ]; readonly ellipsis: readonly [ ]; }; readonly Toaster: { readonly region: readonly [ ]; readonly toast: readonly [ \"loading\", \"busy\" ]; readonly icon: readonly [ ]; readonly content: readonly [ \"loading\", \"busy\" ]; readonly title: readonly [ ]; readonly description: readonly [ ]; readonly close: readonly [ ]; readonly action: readonly [ ]; }; readonly EventsView: { readonly timeline: readonly [ ]; readonly event: readonly [ \"selected\" ]; readonly separator: readonly [ ]; readonly marker: readonly [ \"selected\" ]; readonly connector: readonly [ ]; readonly content: readonly [ ]; }; readonly ChatSidebar: { readonly backdrop: readonly [ \"selected\", \"open\" ]; readonly root: readonly [ \"selected\", \"open\" ]; readonly header: readonly [ ]; readonly back: readonly [ ]; readonly title: readonly [ ]; readonly close: readonly [ ]; readonly content: readonly [ ]; }; readonly Toolbar: { readonly root: readonly [ ]; }; readonly ToolbarButton: { readonly button: readonly [ \"selected\" ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ToolbarFolder: { readonly 'toolbar-folder': readonly [ \"open\" ]; readonly 'toolbar-folder-trigger': readonly [ \"open\" ]; readonly 'toolbar-folder-panel': readonly [ \"open\" ]; readonly 'toolbar-folder-header': readonly [ ]; readonly 'toolbar-folder-title': readonly [ ]; readonly 'toolbar-folder-close': readonly [ ]; readonly 'toolbar-folder-tile': readonly [ \"disabled\", \"selected\" ]; readonly 'toolbar-folder-tile-icon': readonly [ ]; readonly 'toolbar-folder-tile-label': readonly [ ]; }; readonly ToolbarFanOutItem: { readonly 'fanout-root': readonly [ \"open\" ]; readonly 'fanout-trigger': readonly [ \"open\" ]; readonly 'fanout-panel': readonly [ \"open\" ]; }; readonly ToolbarSeparator: { readonly 'toolbar-separator': readonly [ ]; }; readonly ToolbarSection: { readonly 'toolbar-section': readonly [ ]; readonly 'toolbar-context': readonly [ \"selected\" ]; }; readonly ToolbarGroup: { readonly 'toolbar-group': readonly [ ]; readonly 'toolbar-slot': readonly [ ]; readonly 'toolbar-slot-incoming': readonly [ ]; readonly 'toolbar-slot-outgoing': readonly [ ]; }; readonly ToolbarLayout: { readonly 'toolbar-layout': readonly [ ]; readonly 'toolbar-slot': readonly [ ]; readonly 'toolbar-slot-incoming': readonly [ ]; readonly 'toolbar-slot-outgoing': readonly [ ]; }; readonly OrderedItemEditor: { readonly root: readonly [ ]; readonly section: readonly [ ]; readonly sectionTitle: readonly [ ]; readonly list: readonly [ ]; readonly item: readonly [ ]; readonly handle: readonly [ ]; readonly moveUp: readonly [ ]; readonly moveDown: readonly [ ]; readonly label: readonly [ \"invalid\" ]; readonly icon: readonly [ ]; readonly destination: readonly [ \"invalid\" ]; readonly remove: readonly [ ]; readonly add: readonly [ ]; readonly message: readonly [ \"invalid\" ]; readonly state: readonly [ ]; readonly empty: readonly [ ]; readonly status: readonly [ ]; }; readonly PropertyControls: { readonly root: readonly [ ]; readonly group: readonly [ ]; readonly groupTitle: readonly [ ]; readonly groupDescription: readonly [ ]; readonly property: readonly [ \"readonly\" ]; readonly label: readonly [ ]; readonly value: readonly [ ]; readonly input: readonly [ \"invalid\" ]; readonly select: readonly [ \"invalid\" ]; readonly unit: readonly [ ]; readonly message: readonly [ \"invalid\" ]; }; readonly Skeleton: { readonly root: readonly [ ]; }; readonly Message: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly text: readonly [ ]; }; readonly Badge: { readonly root: readonly [ ]; }; readonly ProgressSpinner: { readonly root: readonly [ \"loading\", \"busy\" ]; readonly svg: readonly [ ]; readonly track: readonly [ ]; readonly range: readonly [ ]; }; readonly Avatar: { readonly root: readonly [ ]; readonly image: readonly [ ]; readonly fallback: readonly [ ]; }; readonly Tag: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ProgressBar: { readonly root: readonly [ \"loading\", \"busy\" ]; readonly indicator: readonly [ ]; readonly label: readonly [ ]; }; readonly Chip: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; readonly remove: readonly [ ]; }; readonly MarkdownEditor: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"busy\" ]; readonly toolbar: readonly [ ]; readonly format: readonly [ \"disabled\" ]; readonly toggle: readonly [ \"pressed\" ]; readonly textarea: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly preview: readonly [ ]; readonly status: readonly [ ]; readonly suggestions: readonly [ ]; readonly suggestion: readonly [ \"selected\" ]; }; readonly IconPicker: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly trigger: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly glyph: readonly [ ]; readonly name: readonly [ ]; readonly message: readonly [ ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ ]; readonly title: readonly [ ]; readonly close: readonly [ ]; readonly search: readonly [ ]; readonly clear: readonly [ ]; readonly categories: readonly [ ]; readonly category: readonly [ \"selected\" ]; readonly library: readonly [ ]; readonly summary: readonly [ ]; readonly status: readonly [ \"loading\" ]; readonly group: readonly [ ]; readonly groupTitle: readonly [ ]; readonly showAll: readonly [ ]; readonly grid: readonly [ ]; readonly tile: readonly [ \"selected\", \"disabled\" ]; readonly tileIcon: readonly [ ]; readonly tileName: readonly [ ]; readonly provider: readonly [ ]; readonly attribution: readonly [ ]; }; readonly SchemaEditor: { readonly root: readonly [ \"readonly\" ]; readonly header: readonly [ ]; readonly list: readonly [ ]; readonly property: readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly leading: readonly [ ]; readonly name: readonly [ ]; readonly nameInput: readonly [ \"invalid\" ]; readonly badge: readonly [ ]; readonly typeButton: readonly [ ]; readonly menu: readonly [ ]; readonly menuItem: readonly [ ]; readonly required: readonly [ ]; readonly key: readonly [ \"pressed\" ]; readonly generated: readonly [ \"pressed\" ]; readonly accessory: readonly [ ]; readonly remove: readonly [ ]; readonly protected: readonly [ ]; readonly details: readonly [ ]; readonly add: readonly [ ]; readonly empty: readonly [ ]; readonly message: readonly [ ]; readonly footer: readonly [ ]; }; }",
- "cratisParts": "cratisParts: { readonly CheckboxField: readonly [ 'root', 'input', 'box', 'indicator' ]; readonly RatingField: readonly [ 'root', 'option', 'input', 'star' ]; readonly RadioButtonField: readonly [ 'root', 'input', 'box', 'indicator' ]; readonly RadioGroupField: readonly [ 'root', 'option', 'input', 'box', 'indicator' ]; readonly ChipsField: readonly [ 'root', 'item', 'remove', 'input' ]; readonly ToggleSwitchField: readonly [ 'root', 'input', 'control', 'handle' ]; readonly SliderField: readonly [ 'root', 'input', 'value' ]; readonly NumberField: readonly [ 'root', 'input' ]; readonly ComboBox: readonly [ 'root', 'input', 'trigger', 'popover', 'listbox', 'option', 'optionLabel', 'optionDescription', 'loading', 'empty', 'failure', 'action', 'description', 'error' ]; readonly NumberInput: readonly [ 'root', 'group', 'input', 'prefix', 'suffix', 'step', 'description', 'error' ]; readonly NumberInputField: readonly [ 'root', 'group', 'input', 'prefix', 'suffix', 'step', 'description', 'error' ]; readonly ColorPickerField: readonly [ 'root', 'input', 'value' ]; readonly PasswordField: readonly [ 'root', 'input', 'toggle' ]; readonly InputTextField: readonly [ 'input' ]; readonly GuidField: readonly [ 'input' ]; readonly TextAreaField: readonly [ 'textarea' ]; readonly Dropdown: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly DropdownField: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly MultiSelectField: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly DatePickerInput: readonly [ 'root', 'group', 'input', 'segment', 'placeholder', 'trigger', 'popover', 'dialog', 'calendar', 'header', 'previous', 'heading', 'next', 'grid', 'cell', 'button-bar', 'today', 'clear' ]; readonly CalendarField: readonly [ 'root', 'group', 'input', 'segment', 'placeholder', 'trigger', 'popover', 'dialog', 'calendar', 'header', 'previous', 'heading', 'next', 'grid', 'cell', 'button-bar', 'today', 'clear' ]; readonly Button: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly ActionMenubar: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly IconButton: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly TextInput: readonly [ 'root' ]; readonly NumericInput: readonly [ 'root' ]; readonly TextArea: readonly [ 'root' ]; readonly Checkbox: readonly [ 'root', 'input', 'box', 'indicator', 'label' ]; readonly Radio: readonly [ 'root', 'input', 'box', 'indicator', 'label' ]; readonly Switch: readonly [ 'root', 'input', 'control', 'handle', 'label' ]; readonly Surface: readonly [ 'root' ]; readonly Tooltip: readonly [ 'trigger', 'popup' ]; readonly ToggleGroup: readonly [ 'root', 'option', 'icon', 'label' ]; readonly Tabs: readonly [ 'root', 'list', 'tab', 'panel' ]; readonly TagGroup: readonly [ 'root', 'list', 'tag', 'remove', 'input' ]; readonly Breadcrumbs: readonly [ 'root', 'item', 'link', 'separator' ]; readonly Dialog: readonly [ 'backdrop', 'positioner', 'root', 'header', 'title', 'subtitle', 'header-actions', 'close', 'content', 'busy-scope', 'footer', 'confirm', 'cancel' ]; readonly ComponentPicker: readonly [ 'overlay', 'frame', 'name' ]; readonly ComponentHighlight: readonly [ 'overlay', 'frame', 'name' ]; readonly PresentationPropertyEditor: readonly [ 'root', 'empty', 'property', 'label', 'input', 'description' ]; readonly CommandDialog: readonly [ 'backdrop', 'positioner', 'root', 'header', 'title', 'subtitle', 'header-actions', 'close', 'content', 'busy-scope', 'footer', 'confirm', 'cancel' ]; readonly CommandStepper: readonly [ 'root', 'list', 'step', 'header', 'number', 'title', 'separator', 'panels', 'panel' ]; readonly DataTableCore: readonly [ 'root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly DataTableForObservableQuery: readonly [ 'root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly DataTableForQuery: readonly [ 'root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly ColumnFilterMenu: readonly [ 'filter-trigger', 'filter-popover', 'filter-menu', 'filter-actions' ]; readonly TablePaginator: readonly [ 'root', 'range', 'info', 'pages', 'page', 'ellipsis' ]; readonly Toaster: readonly [ 'region', 'toast', 'icon', 'content', 'title', 'description', 'close', 'action' ]; readonly EventsView: readonly [ 'timeline', 'event', 'separator', 'marker', 'connector', 'content' ]; readonly ChatSidebar: readonly [ 'backdrop', 'root', 'header', 'back', 'title', 'close', 'content' ]; readonly Toolbar: readonly [ 'root' ]; readonly ToolbarButton: readonly [ 'button', 'icon', 'label' ]; readonly ToolbarFolder: readonly [ 'toolbar-folder', 'toolbar-folder-trigger', 'toolbar-folder-panel', 'toolbar-folder-header', 'toolbar-folder-title', 'toolbar-folder-close', 'toolbar-folder-tile', 'toolbar-folder-tile-icon', 'toolbar-folder-tile-label' ]; readonly ToolbarFanOutItem: readonly [ 'fanout-root', 'fanout-trigger', 'fanout-panel' ]; readonly ToolbarSeparator: readonly [ 'toolbar-separator' ]; readonly ToolbarSection: readonly [ 'toolbar-section', 'toolbar-context' ]; readonly ToolbarGroup: readonly [ 'toolbar-group', 'toolbar-slot', 'toolbar-slot-incoming', 'toolbar-slot-outgoing' ]; readonly ToolbarLayout: readonly [ 'toolbar-layout', 'toolbar-slot', 'toolbar-slot-incoming', 'toolbar-slot-outgoing' ]; readonly OrderedItemEditor: readonly [ 'root', 'section', 'sectionTitle', 'list', 'item', 'handle', 'moveUp', 'moveDown', 'label', 'icon', 'destination', 'remove', 'add', 'message', 'state', 'empty', 'status' ]; readonly PropertyControls: readonly [ 'root', 'group', 'groupTitle', 'groupDescription', 'property', 'label', 'value', 'input', 'select', 'unit', 'message' ]; readonly Skeleton: readonly [ 'root' ]; readonly Message: readonly [ 'root', 'icon', 'text' ]; readonly Badge: readonly [ 'root' ]; readonly ProgressSpinner: readonly [ 'root', 'svg', 'track', 'range' ]; readonly Avatar: readonly [ 'root', 'image', 'fallback' ]; readonly Tag: readonly [ 'root', 'icon', 'label' ]; readonly ProgressBar: readonly [ 'root', 'indicator', 'label' ]; readonly Chip: readonly [ 'root', 'icon', 'label', 'remove' ]; readonly MarkdownEditor: readonly [ 'root', 'toolbar', 'format', 'toggle', 'textarea', 'preview', 'status', 'suggestions', 'suggestion' ]; readonly IconPicker: readonly [ 'root', 'trigger', 'glyph', 'name', 'message', 'popover', 'dialog', 'title', 'close', 'search', 'clear', 'categories', 'category', 'library', 'summary', 'status', 'group', 'groupTitle', 'showAll', 'grid', 'tile', 'tileIcon', 'tileName', 'provider', 'attribution' ]; readonly SchemaEditor: readonly [ 'root', 'header', 'list', 'property', 'row', 'leading', 'name', 'nameInput', 'badge', 'typeButton', 'menu', 'menuItem', 'required', 'key', 'generated', 'accessory', 'remove', 'protected', 'details', 'add', 'empty', 'message', 'footer' ]; }"
+ "cratisPartStates": "cratisPartStates: { readonly CheckboxField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RatingField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly star: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RadioButtonField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly RadioGroupField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly ChipsField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly item: readonly [ \"selected\" ]; readonly remove: readonly [ \"disabled\", \"selected\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly ToggleSwitchField: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly control: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly handle: readonly [ \"disabled\", \"selected\", \"invalid\" ]; }; readonly SliderField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"invalid\" ]; readonly value: readonly [ \"invalid\" ]; }; readonly NumberField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly ComboBox: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"loading\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly trigger: readonly [ \"disabled\", \"open\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly optionLabel: readonly [ ]; readonly optionDescription: readonly [ ]; readonly loading: readonly [ ]; readonly empty: readonly [ ]; readonly failure: readonly [ ]; readonly action: readonly [ ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly NumberInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"focused\" ]; readonly prefix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly suffix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly step: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly NumberInputField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\", \"focused\" ]; readonly prefix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly suffix: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly step: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly description: readonly [ ]; readonly error: readonly [ \"invalid\" ]; }; readonly ColorPickerField: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly input: readonly [ \"disabled\", \"invalid\" ]; readonly value: readonly [ \"invalid\" ]; }; readonly PasswordField: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly toggle: readonly [ \"disabled\" ]; }; readonly InputTextField: { readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly GuidField: { readonly input: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly TextAreaField: { readonly textarea: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly Dropdown: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly DropdownField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly MultiSelectField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly value: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly filter: readonly [ \"disabled\", \"open\", \"invalid\" ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\" ]; readonly clear: readonly [ \"disabled\" ]; readonly popover: readonly [ \"open\" ]; readonly listbox: readonly [ \"open\" ]; readonly option: readonly [ \"disabled\", \"selected\" ]; readonly multiple: readonly [ \"disabled\", \"selected\", \"invalid\" ]; readonly indicator: readonly [ \"disabled\", \"open\", \"invalid\" ]; }; readonly DatePickerInput: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly segment: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly placeholder: readonly [ ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ \"open\" ]; readonly calendar: readonly [ \"open\" ]; readonly header: readonly [ ]; readonly previous: readonly [ ]; readonly heading: readonly [ ]; readonly next: readonly [ ]; readonly grid: readonly [ ]; readonly cell: readonly [ \"selected\" ]; readonly 'button-bar': readonly [ ]; readonly today: readonly [ \"disabled\" ]; readonly clear: readonly [ \"disabled\" ]; }; readonly CalendarField: { readonly root: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly group: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly segment: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly placeholder: readonly [ ]; readonly trigger: readonly [ \"disabled\", \"selected\", \"open\", \"invalid\", \"readonly\" ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ \"open\" ]; readonly calendar: readonly [ \"open\" ]; readonly header: readonly [ ]; readonly previous: readonly [ ]; readonly heading: readonly [ ]; readonly next: readonly [ ]; readonly grid: readonly [ ]; readonly cell: readonly [ \"selected\" ]; readonly 'button-bar': readonly [ ]; readonly today: readonly [ \"disabled\" ]; readonly clear: readonly [ \"disabled\" ]; }; readonly Button: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ActionMenubar: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly IconButton: { readonly root: readonly [ \"disabled\", \"loading\" ]; readonly spinner: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly TextInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly NumericInput: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly TextArea: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; }; readonly Checkbox: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Radio: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly box: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly indicator: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Switch: { readonly root: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly input: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly control: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly handle: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; readonly label: readonly [ \"disabled\", \"selected\", \"invalid\", \"readonly\" ]; }; readonly Surface: { readonly root: readonly [ ]; }; readonly Tooltip: { readonly trigger: readonly [ ]; readonly popup: readonly [ \"open\" ]; }; readonly ToggleGroup: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly option: readonly [ \"selected\", \"disabled\", \"invalid\" ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly Tabs: { readonly root: readonly [ \"disabled\" ]; readonly list: readonly [ ]; readonly tab: readonly [ \"selected\", \"disabled\" ]; readonly panel: readonly [ \"selected\" ]; }; readonly TagGroup: { readonly root: readonly [ \"disabled\", \"invalid\" ]; readonly list: readonly [ ]; readonly tag: readonly [ \"disabled\" ]; readonly remove: readonly [ ]; readonly input: readonly [ \"invalid\" ]; }; readonly Breadcrumbs: { readonly root: readonly [ ]; readonly item: readonly [ \"selected\" ]; readonly link: readonly [ \"selected\" ]; readonly separator: readonly [ ]; }; readonly Dialog: { readonly backdrop: readonly [ \"open\", \"busy\" ]; readonly positioner: readonly [ \"open\", \"busy\" ]; readonly root: readonly [ \"open\", \"busy\" ]; readonly header: readonly [ ]; readonly title: readonly [ ]; readonly subtitle: readonly [ ]; readonly 'header-actions': readonly [ ]; readonly close: readonly [ \"disabled\", \"busy\" ]; readonly content: readonly [ \"open\", \"busy\" ]; readonly 'busy-scope': readonly [ \"busy\" ]; readonly footer: readonly [ ]; readonly confirm: readonly [ \"disabled\", \"busy\" ]; readonly cancel: readonly [ \"disabled\", \"busy\" ]; }; readonly ComponentPicker: { readonly overlay: readonly [ ]; readonly frame: readonly [ ]; readonly name: readonly [ ]; }; readonly ComponentHighlight: { readonly overlay: readonly [ ]; readonly frame: readonly [ ]; readonly name: readonly [ ]; }; readonly PresentationPropertyEditor: { readonly root: readonly [ ]; readonly empty: readonly [ ]; readonly property: readonly [ ]; readonly label: readonly [ ]; readonly input: readonly [ ]; readonly description: readonly [ ]; }; readonly CommandDialog: { readonly backdrop: readonly [ \"open\", \"busy\" ]; readonly positioner: readonly [ \"open\", \"busy\" ]; readonly root: readonly [ \"open\", \"busy\" ]; readonly header: readonly [ ]; readonly title: readonly [ ]; readonly subtitle: readonly [ ]; readonly 'header-actions': readonly [ ]; readonly close: readonly [ \"disabled\", \"busy\" ]; readonly content: readonly [ \"open\", \"busy\" ]; readonly 'busy-scope': readonly [ \"busy\" ]; readonly footer: readonly [ ]; readonly confirm: readonly [ \"disabled\", \"busy\" ]; readonly cancel: readonly [ \"disabled\", \"busy\" ]; }; readonly CommandStepper: { readonly root: readonly [ \"invalid\", \"busy\" ]; readonly list: readonly [ \"invalid\", \"busy\" ]; readonly step: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly header: readonly [ \"disabled\", \"selected\", \"invalid\", \"busy\" ]; readonly number: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly title: readonly [ \"selected\", \"invalid\", \"busy\" ]; readonly separator: readonly [ \"invalid\", \"busy\" ]; readonly panels: readonly [ \"invalid\", \"busy\" ]; readonly panel: readonly [ \"selected\", \"invalid\", \"busy\" ]; }; readonly DataTableCore: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly cards: readonly [ \"busy\" ]; readonly card: readonly [ \"selected\" ]; readonly 'card-label': readonly [ ]; readonly 'card-value': readonly [ ]; readonly 'card-controls': readonly [ ]; readonly 'card-status': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly DataTableForObservableQuery: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly cards: readonly [ \"busy\" ]; readonly card: readonly [ \"selected\" ]; readonly 'card-label': readonly [ ]; readonly 'card-value': readonly [ ]; readonly 'card-controls': readonly [ ]; readonly 'card-status': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly DataTableForQuery: { readonly root: readonly [ \"busy\" ]; readonly search: readonly [ ]; readonly 'search-input': readonly [ ]; readonly 'table-container': readonly [ ]; readonly cards: readonly [ \"busy\" ]; readonly card: readonly [ \"selected\" ]; readonly 'card-label': readonly [ ]; readonly 'card-value': readonly [ ]; readonly 'card-controls': readonly [ ]; readonly 'card-status': readonly [ ]; readonly table: readonly [ ]; readonly head: readonly [ ]; readonly 'header-row': readonly [ ]; readonly 'header-cell': readonly [ \"selected\" ]; readonly 'header-content': readonly [ \"selected\" ]; readonly sort: readonly [ \"pressed\" ]; readonly 'select-all': readonly [ ]; readonly body: readonly [ ]; readonly 'empty-row': readonly [ ]; readonly 'empty-cell': readonly [ ]; readonly 'loading-row': readonly [ ]; readonly 'loading-cell': readonly [ ]; readonly 'failure-row': readonly [ ]; readonly 'failure-cell': readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly cell: readonly [ \"selected\" ]; }; readonly ColumnFilterMenu: { readonly 'filter-trigger': readonly [ \"selected\", \"open\", \"pressed\" ]; readonly 'filter-popover': readonly [ \"open\" ]; readonly 'filter-menu': readonly [ \"open\" ]; readonly 'filter-actions': readonly [ ]; }; readonly TablePaginator: { readonly root: readonly [ ]; readonly range: readonly [ ]; readonly info: readonly [ ]; readonly pages: readonly [ ]; readonly page: readonly [ \"selected\" ]; readonly ellipsis: readonly [ ]; }; readonly Toaster: { readonly region: readonly [ ]; readonly toast: readonly [ \"loading\", \"busy\" ]; readonly icon: readonly [ ]; readonly content: readonly [ \"loading\", \"busy\" ]; readonly title: readonly [ ]; readonly description: readonly [ ]; readonly close: readonly [ ]; readonly action: readonly [ ]; }; readonly EventsView: { readonly timeline: readonly [ ]; readonly event: readonly [ \"selected\" ]; readonly separator: readonly [ ]; readonly marker: readonly [ \"selected\" ]; readonly connector: readonly [ ]; readonly content: readonly [ ]; }; readonly ChatSidebar: { readonly backdrop: readonly [ \"selected\", \"open\" ]; readonly root: readonly [ \"selected\", \"open\" ]; readonly header: readonly [ ]; readonly back: readonly [ ]; readonly title: readonly [ ]; readonly close: readonly [ ]; readonly content: readonly [ ]; }; readonly Toolbar: { readonly root: readonly [ ]; }; readonly ToolbarButton: { readonly button: readonly [ \"selected\" ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ToolbarFolder: { readonly 'toolbar-folder': readonly [ \"open\" ]; readonly 'toolbar-folder-trigger': readonly [ \"open\" ]; readonly 'toolbar-folder-panel': readonly [ \"open\" ]; readonly 'toolbar-folder-header': readonly [ ]; readonly 'toolbar-folder-title': readonly [ ]; readonly 'toolbar-folder-close': readonly [ ]; readonly 'toolbar-folder-tile': readonly [ \"disabled\", \"selected\" ]; readonly 'toolbar-folder-tile-icon': readonly [ ]; readonly 'toolbar-folder-tile-label': readonly [ ]; }; readonly ToolbarFanOutItem: { readonly 'fanout-root': readonly [ \"open\" ]; readonly 'fanout-trigger': readonly [ \"open\" ]; readonly 'fanout-panel': readonly [ \"open\" ]; }; readonly ToolbarSeparator: { readonly 'toolbar-separator': readonly [ ]; }; readonly ToolbarSection: { readonly 'toolbar-section': readonly [ ]; readonly 'toolbar-context': readonly [ \"selected\" ]; }; readonly ToolbarGroup: { readonly 'toolbar-group': readonly [ ]; readonly 'toolbar-slot': readonly [ ]; readonly 'toolbar-slot-incoming': readonly [ ]; readonly 'toolbar-slot-outgoing': readonly [ ]; }; readonly ToolbarLayout: { readonly 'toolbar-layout': readonly [ ]; readonly 'toolbar-slot': readonly [ ]; readonly 'toolbar-slot-incoming': readonly [ ]; readonly 'toolbar-slot-outgoing': readonly [ ]; }; readonly OrderedItemEditor: { readonly root: readonly [ ]; readonly section: readonly [ ]; readonly sectionTitle: readonly [ ]; readonly list: readonly [ ]; readonly item: readonly [ ]; readonly handle: readonly [ ]; readonly moveUp: readonly [ ]; readonly moveDown: readonly [ ]; readonly label: readonly [ \"invalid\" ]; readonly icon: readonly [ ]; readonly destination: readonly [ \"invalid\" ]; readonly remove: readonly [ ]; readonly add: readonly [ ]; readonly message: readonly [ \"invalid\" ]; readonly state: readonly [ ]; readonly empty: readonly [ ]; readonly status: readonly [ ]; }; readonly PropertyControls: { readonly root: readonly [ ]; readonly group: readonly [ ]; readonly groupTitle: readonly [ ]; readonly groupDescription: readonly [ ]; readonly property: readonly [ \"readonly\" ]; readonly label: readonly [ ]; readonly value: readonly [ ]; readonly input: readonly [ \"invalid\" ]; readonly select: readonly [ \"invalid\" ]; readonly unit: readonly [ ]; readonly message: readonly [ \"invalid\" ]; }; readonly Skeleton: { readonly root: readonly [ ]; }; readonly Message: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly text: readonly [ ]; }; readonly Badge: { readonly root: readonly [ ]; }; readonly ProgressSpinner: { readonly root: readonly [ \"loading\", \"busy\" ]; readonly svg: readonly [ ]; readonly track: readonly [ ]; readonly range: readonly [ ]; }; readonly Avatar: { readonly root: readonly [ ]; readonly image: readonly [ ]; readonly fallback: readonly [ ]; }; readonly Tag: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; }; readonly ProgressBar: { readonly root: readonly [ \"loading\", \"busy\" ]; readonly indicator: readonly [ ]; readonly label: readonly [ ]; }; readonly Chip: { readonly root: readonly [ ]; readonly icon: readonly [ ]; readonly label: readonly [ ]; readonly remove: readonly [ ]; }; readonly MarkdownEditor: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"busy\" ]; readonly toolbar: readonly [ ]; readonly format: readonly [ \"disabled\" ]; readonly toggle: readonly [ \"pressed\" ]; readonly textarea: readonly [ \"disabled\", \"invalid\", \"readonly\" ]; readonly preview: readonly [ ]; readonly status: readonly [ ]; readonly suggestions: readonly [ ]; readonly suggestion: readonly [ \"selected\" ]; }; readonly IconPicker: { readonly root: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly trigger: readonly [ \"disabled\", \"invalid\", \"readonly\", \"open\" ]; readonly glyph: readonly [ ]; readonly name: readonly [ ]; readonly message: readonly [ ]; readonly popover: readonly [ \"open\" ]; readonly dialog: readonly [ ]; readonly title: readonly [ ]; readonly close: readonly [ ]; readonly search: readonly [ ]; readonly clear: readonly [ ]; readonly categories: readonly [ ]; readonly category: readonly [ \"selected\" ]; readonly library: readonly [ ]; readonly summary: readonly [ ]; readonly status: readonly [ \"loading\" ]; readonly group: readonly [ ]; readonly groupTitle: readonly [ ]; readonly showAll: readonly [ ]; readonly grid: readonly [ ]; readonly tile: readonly [ \"selected\", \"disabled\" ]; readonly tileIcon: readonly [ ]; readonly tileName: readonly [ ]; readonly provider: readonly [ ]; readonly attribution: readonly [ ]; }; readonly SchemaEditor: { readonly root: readonly [ \"readonly\" ]; readonly header: readonly [ ]; readonly list: readonly [ ]; readonly property: readonly [ ]; readonly row: readonly [ \"selected\" ]; readonly leading: readonly [ ]; readonly name: readonly [ ]; readonly nameInput: readonly [ \"invalid\" ]; readonly badge: readonly [ ]; readonly typeButton: readonly [ ]; readonly menu: readonly [ ]; readonly menuItem: readonly [ ]; readonly required: readonly [ ]; readonly key: readonly [ \"pressed\" ]; readonly generated: readonly [ \"pressed\" ]; readonly accessory: readonly [ ]; readonly remove: readonly [ ]; readonly protected: readonly [ ]; readonly details: readonly [ ]; readonly add: readonly [ ]; readonly empty: readonly [ ]; readonly message: readonly [ ]; readonly footer: readonly [ ]; }; }",
+ "cratisParts": "cratisParts: { readonly CheckboxField: readonly [ 'root', 'input', 'box', 'indicator' ]; readonly RatingField: readonly [ 'root', 'option', 'input', 'star' ]; readonly RadioButtonField: readonly [ 'root', 'input', 'box', 'indicator' ]; readonly RadioGroupField: readonly [ 'root', 'option', 'input', 'box', 'indicator' ]; readonly ChipsField: readonly [ 'root', 'item', 'remove', 'input' ]; readonly ToggleSwitchField: readonly [ 'root', 'input', 'control', 'handle' ]; readonly SliderField: readonly [ 'root', 'input', 'value' ]; readonly NumberField: readonly [ 'root', 'input' ]; readonly ComboBox: readonly [ 'root', 'input', 'trigger', 'popover', 'listbox', 'option', 'optionLabel', 'optionDescription', 'loading', 'empty', 'failure', 'action', 'description', 'error' ]; readonly NumberInput: readonly [ 'root', 'group', 'input', 'prefix', 'suffix', 'step', 'description', 'error' ]; readonly NumberInputField: readonly [ 'root', 'group', 'input', 'prefix', 'suffix', 'step', 'description', 'error' ]; readonly ColorPickerField: readonly [ 'root', 'input', 'value' ]; readonly PasswordField: readonly [ 'root', 'input', 'toggle' ]; readonly InputTextField: readonly [ 'input' ]; readonly GuidField: readonly [ 'input' ]; readonly TextAreaField: readonly [ 'textarea' ]; readonly Dropdown: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly DropdownField: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly MultiSelectField: readonly [ 'root', 'value', 'filter', 'trigger', 'clear', 'popover', 'listbox', 'option', 'multiple', 'indicator' ]; readonly DatePickerInput: readonly [ 'root', 'group', 'input', 'segment', 'placeholder', 'trigger', 'popover', 'dialog', 'calendar', 'header', 'previous', 'heading', 'next', 'grid', 'cell', 'button-bar', 'today', 'clear' ]; readonly CalendarField: readonly [ 'root', 'group', 'input', 'segment', 'placeholder', 'trigger', 'popover', 'dialog', 'calendar', 'header', 'previous', 'heading', 'next', 'grid', 'cell', 'button-bar', 'today', 'clear' ]; readonly Button: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly ActionMenubar: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly IconButton: readonly [ 'root', 'spinner', 'icon', 'label' ]; readonly TextInput: readonly [ 'root' ]; readonly NumericInput: readonly [ 'root' ]; readonly TextArea: readonly [ 'root' ]; readonly Checkbox: readonly [ 'root', 'input', 'box', 'indicator', 'label' ]; readonly Radio: readonly [ 'root', 'input', 'box', 'indicator', 'label' ]; readonly Switch: readonly [ 'root', 'input', 'control', 'handle', 'label' ]; readonly Surface: readonly [ 'root' ]; readonly Tooltip: readonly [ 'trigger', 'popup' ]; readonly ToggleGroup: readonly [ 'root', 'option', 'icon', 'label' ]; readonly Tabs: readonly [ 'root', 'list', 'tab', 'panel' ]; readonly TagGroup: readonly [ 'root', 'list', 'tag', 'remove', 'input' ]; readonly Breadcrumbs: readonly [ 'root', 'item', 'link', 'separator' ]; readonly Dialog: readonly [ 'backdrop', 'positioner', 'root', 'header', 'title', 'subtitle', 'header-actions', 'close', 'content', 'busy-scope', 'footer', 'confirm', 'cancel' ]; readonly ComponentPicker: readonly [ 'overlay', 'frame', 'name' ]; readonly ComponentHighlight: readonly [ 'overlay', 'frame', 'name' ]; readonly PresentationPropertyEditor: readonly [ 'root', 'empty', 'property', 'label', 'input', 'description' ]; readonly CommandDialog: readonly [ 'backdrop', 'positioner', 'root', 'header', 'title', 'subtitle', 'header-actions', 'close', 'content', 'busy-scope', 'footer', 'confirm', 'cancel' ]; readonly CommandStepper: readonly [ 'root', 'list', 'step', 'header', 'number', 'title', 'separator', 'panels', 'panel' ]; readonly DataTableCore: readonly [ 'root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly DataTableForObservableQuery: readonly [ 'root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly DataTableForQuery: readonly [ 'root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell' ]; readonly ColumnFilterMenu: readonly [ 'filter-trigger', 'filter-popover', 'filter-menu', 'filter-actions' ]; readonly TablePaginator: readonly [ 'root', 'range', 'info', 'pages', 'page', 'ellipsis' ]; readonly Toaster: readonly [ 'region', 'toast', 'icon', 'content', 'title', 'description', 'close', 'action' ]; readonly EventsView: readonly [ 'timeline', 'event', 'separator', 'marker', 'connector', 'content' ]; readonly ChatSidebar: readonly [ 'backdrop', 'root', 'header', 'back', 'title', 'close', 'content' ]; readonly Toolbar: readonly [ 'root' ]; readonly ToolbarButton: readonly [ 'button', 'icon', 'label' ]; readonly ToolbarFolder: readonly [ 'toolbar-folder', 'toolbar-folder-trigger', 'toolbar-folder-panel', 'toolbar-folder-header', 'toolbar-folder-title', 'toolbar-folder-close', 'toolbar-folder-tile', 'toolbar-folder-tile-icon', 'toolbar-folder-tile-label' ]; readonly ToolbarFanOutItem: readonly [ 'fanout-root', 'fanout-trigger', 'fanout-panel' ]; readonly ToolbarSeparator: readonly [ 'toolbar-separator' ]; readonly ToolbarSection: readonly [ 'toolbar-section', 'toolbar-context' ]; readonly ToolbarGroup: readonly [ 'toolbar-group', 'toolbar-slot', 'toolbar-slot-incoming', 'toolbar-slot-outgoing' ]; readonly ToolbarLayout: readonly [ 'toolbar-layout', 'toolbar-slot', 'toolbar-slot-incoming', 'toolbar-slot-outgoing' ]; readonly OrderedItemEditor: readonly [ 'root', 'section', 'sectionTitle', 'list', 'item', 'handle', 'moveUp', 'moveDown', 'label', 'icon', 'destination', 'remove', 'add', 'message', 'state', 'empty', 'status' ]; readonly PropertyControls: readonly [ 'root', 'group', 'groupTitle', 'groupDescription', 'property', 'label', 'value', 'input', 'select', 'unit', 'message' ]; readonly Skeleton: readonly [ 'root' ]; readonly Message: readonly [ 'root', 'icon', 'text' ]; readonly Badge: readonly [ 'root' ]; readonly ProgressSpinner: readonly [ 'root', 'svg', 'track', 'range' ]; readonly Avatar: readonly [ 'root', 'image', 'fallback' ]; readonly Tag: readonly [ 'root', 'icon', 'label' ]; readonly ProgressBar: readonly [ 'root', 'indicator', 'label' ]; readonly Chip: readonly [ 'root', 'icon', 'label', 'remove' ]; readonly MarkdownEditor: readonly [ 'root', 'toolbar', 'format', 'toggle', 'textarea', 'preview', 'status', 'suggestions', 'suggestion' ]; readonly IconPicker: readonly [ 'root', 'trigger', 'glyph', 'name', 'message', 'popover', 'dialog', 'title', 'close', 'search', 'clear', 'categories', 'category', 'library', 'summary', 'status', 'group', 'groupTitle', 'showAll', 'grid', 'tile', 'tileIcon', 'tileName', 'provider', 'attribution' ]; readonly SchemaEditor: readonly [ 'root', 'header', 'list', 'property', 'row', 'leading', 'name', 'nameInput', 'badge', 'typeButton', 'menu', 'menuItem', 'required', 'key', 'generated', 'accessory', 'remove', 'protected', 'details', 'add', 'empty', 'message', 'footer' ]; }"
}
}
diff --git a/Source/scripts/generate-parts.mjs b/Source/scripts/generate-parts.mjs
index 72bd30b9..45d10a7f 100644
--- a/Source/scripts/generate-parts.mjs
+++ b/Source/scripts/generate-parts.mjs
@@ -432,6 +432,12 @@ export const partDefinitions = {
'search',
'search-input',
'table-container',
+ 'cards',
+ 'card',
+ 'card-label',
+ 'card-value',
+ 'card-controls',
+ 'card-status',
'table',
'head',
'header-row',
@@ -455,6 +461,10 @@ export const partDefinitions = {
'DataTables/DataTableHead.tsx',
'DataTables/DataTableSearch.tsx',
'DataTables/DataTableHeaderCell.tsx',
+ 'DataTables/DataTableHeaderContent.tsx',
+ 'DataTables/DataTableCards.tsx',
+ 'DataTables/DataTableCard.tsx',
+ 'DataTables/DataTableCardControls.tsx',
'DataTables/DataTableBody.tsx',
'DataTables/DataTableRow.tsx',
],
@@ -463,6 +473,12 @@ export const partDefinitions = {
'search',
'searchInput',
'tableContainer',
+ 'cards',
+ 'card',
+ 'cardLabel',
+ 'cardValue',
+ 'cardControls',
+ 'cardStatus',
'table',
'head',
'headerRow',
@@ -1154,6 +1170,12 @@ export const partStateDefinitions = {
search: [],
'search-input': [],
'table-container': [],
+ cards: ['busy'],
+ card: ['selected'],
+ 'card-label': [],
+ 'card-value': [],
+ 'card-controls': [],
+ 'card-status': [],
table: [],
head: [],
'header-row': [],
diff --git a/Source/scripts/parts-inventory.json b/Source/scripts/parts-inventory.json
index 97406ced..4d2edc1d 100644
--- a/Source/scripts/parts-inventory.json
+++ b/Source/scripts/parts-inventory.json
@@ -108,6 +108,12 @@
"ComponentPicker.name",
"ComponentPicker.overlay",
"DataTableCore.body",
+ "DataTableCore.card",
+ "DataTableCore.card-controls",
+ "DataTableCore.card-label",
+ "DataTableCore.card-status",
+ "DataTableCore.card-value",
+ "DataTableCore.cards",
"DataTableCore.cell",
"DataTableCore.empty-cell",
"DataTableCore.empty-row",
@@ -128,6 +134,12 @@
"DataTableCore.table",
"DataTableCore.table-container",
"DataTableForObservableQuery.body",
+ "DataTableForObservableQuery.card",
+ "DataTableForObservableQuery.card-controls",
+ "DataTableForObservableQuery.card-label",
+ "DataTableForObservableQuery.card-status",
+ "DataTableForObservableQuery.card-value",
+ "DataTableForObservableQuery.cards",
"DataTableForObservableQuery.cell",
"DataTableForObservableQuery.empty-cell",
"DataTableForObservableQuery.empty-row",
@@ -148,6 +160,12 @@
"DataTableForObservableQuery.table",
"DataTableForObservableQuery.table-container",
"DataTableForQuery.body",
+ "DataTableForQuery.card",
+ "DataTableForQuery.card-controls",
+ "DataTableForQuery.card-label",
+ "DataTableForQuery.card-status",
+ "DataTableForQuery.card-value",
+ "DataTableForQuery.cards",
"DataTableForQuery.cell",
"DataTableForQuery.empty-cell",
"DataTableForQuery.empty-row",
@@ -602,18 +620,24 @@
"CommandStepper.title.busy",
"CommandStepper.title.invalid",
"CommandStepper.title.selected",
+ "DataTableCore.card.selected",
+ "DataTableCore.cards.busy",
"DataTableCore.cell.selected",
"DataTableCore.header-cell.selected",
"DataTableCore.header-content.selected",
"DataTableCore.root.busy",
"DataTableCore.row.selected",
"DataTableCore.sort.pressed",
+ "DataTableForObservableQuery.card.selected",
+ "DataTableForObservableQuery.cards.busy",
"DataTableForObservableQuery.cell.selected",
"DataTableForObservableQuery.header-cell.selected",
"DataTableForObservableQuery.header-content.selected",
"DataTableForObservableQuery.root.busy",
"DataTableForObservableQuery.row.selected",
"DataTableForObservableQuery.sort.pressed",
+ "DataTableForQuery.card.selected",
+ "DataTableForQuery.cards.busy",
"DataTableForQuery.cell.selected",
"DataTableForQuery.header-cell.selected",
"DataTableForQuery.header-content.selected",
diff --git a/Source/scripts/verify-package-archive.mjs b/Source/scripts/verify-package-archive.mjs
index caada24e..bcac5f56 100644
--- a/Source/scripts/verify-package-archive.mjs
+++ b/Source/scripts/verify-package-archive.mjs
@@ -310,11 +310,12 @@ const declarationBlocks = styles.match(/\{/gu)?.length ?? 0;
// Measured when fields, dialogs and the table paginator took the focus outline hook and the type and corner tokens: raw 253522 (796 bytes over). Raw moves by the overage; blocks and gzip hold.
// Measured when tabs, toggles, tags and breadcrumbs gained a forced-colors focus outline: raw 254040 (518 bytes over), one more declaration block. Raw and blocks move by the overage; gzip holds.
// Measured when the Designsystemet bridge gained the secondary-button and Arc error mappings and the column sort buttons a forced-colors border and focus outline: raw 254357 (317 bytes over), two more declaration blocks. Raw and blocks move by the overage; gzip holds.
+// Measured when opt-in DataTable mobile cards joined: raw 256010 (1653 bytes over), 14 more declaration blocks. Raw and blocks move by the overage; gzip holds.
// Never group a :has() selector with others: a browser without :has() drops the whole list.
const styleBudget = {
- rawBytes: 254357,
+ rawBytes: 256010,
gzipBytes: 38 * 1024,
- declarationBlocks: 1391,
+ declarationBlocks: 1405,
};
const exceeded = [
styleBytes > styleBudget.rawBytes &&
@@ -372,7 +373,7 @@ const areaStyleBudgets = new Map([
['styles.ObjectNavigationalBar.css', 5120], // measured 4576
['styles.PivotViewer.css', 7680], // measured 6840
['styles.renderer.builtin.css', 8704], // measured 7987
- ['styles.SchemaEditor.css', 9216], // measured 8387 (7417 before the tree layout joined the table layout)
+ ['styles.SchemaEditor.css', 10240], // measured 9298 (9154 before the DataTable mobile card layout)
['styles.TimeMachine.css', 5120], // measured 4440
['styles.Toolbar.css', 8192], // measured 7758
]);
diff --git a/Source/types/parts.ts b/Source/types/parts.ts
index 83b65271..dbb88b72 100644
--- a/Source/types/parts.ts
+++ b/Source/types/parts.ts
@@ -47,9 +47,9 @@ export const cratisParts = {
PresentationPropertyEditor: ['root', 'empty', 'property', 'label', 'input', 'description'],
CommandDialog: ['backdrop', 'positioner', 'root', 'header', 'title', 'subtitle', 'header-actions', 'close', 'content', 'busy-scope', 'footer', 'confirm', 'cancel'],
CommandStepper: ['root', 'list', 'step', 'header', 'number', 'title', 'separator', 'panels', 'panel'],
- DataTableCore: ['root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
- DataTableForObservableQuery: ['root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
- DataTableForQuery: ['root', 'search', 'search-input', 'table-container', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
+ DataTableCore: ['root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
+ DataTableForObservableQuery: ['root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
+ DataTableForQuery: ['root', 'search', 'search-input', 'table-container', 'cards', 'card', 'card-label', 'card-value', 'card-controls', 'card-status', 'table', 'head', 'header-row', 'header-cell', 'header-content', 'sort', 'select-all', 'body', 'empty-row', 'empty-cell', 'loading-row', 'loading-cell', 'failure-row', 'failure-cell', 'row', 'cell'],
ColumnFilterMenu: ['filter-trigger', 'filter-popover', 'filter-menu', 'filter-actions'],
TablePaginator: ['root', 'range', 'info', 'pages', 'page', 'ellipsis'],
Toaster: ['region', 'toast', 'icon', 'content', 'title', 'description', 'close', 'action'],
@@ -416,6 +416,12 @@ export const cratisPartStates = {
'search': [],
'search-input': [],
'table-container': [],
+ 'cards': ['busy'],
+ 'card': ['selected'],
+ 'card-label': [],
+ 'card-value': [],
+ 'card-controls': [],
+ 'card-status': [],
'table': [],
'head': [],
'header-row': [],
@@ -438,6 +444,12 @@ export const cratisPartStates = {
'search': [],
'search-input': [],
'table-container': [],
+ 'cards': ['busy'],
+ 'card': ['selected'],
+ 'card-label': [],
+ 'card-value': [],
+ 'card-controls': [],
+ 'card-status': [],
'table': [],
'head': [],
'header-row': [],
@@ -460,6 +472,12 @@ export const cratisPartStates = {
'search': [],
'search-input': [],
'table-container': [],
+ 'cards': ['busy'],
+ 'card': ['selected'],
+ 'card-label': [],
+ 'card-value': [],
+ 'card-controls': [],
+ 'card-status': [],
'table': [],
'head': [],
'header-row': [],
diff --git a/Storybook/scripts/storybook-inventory.json b/Storybook/scripts/storybook-inventory.json
index 3a4cb1c4..e88c4211 100644
--- a/Storybook/scripts/storybook-inventory.json
+++ b/Storybook/scripts/storybook-inventory.json
@@ -226,13 +226,22 @@
"datatables-columnfiltermenu--text",
"datatables-datatablecore--empty",
"datatables-datatablecore--loaded-array",
+ "datatables-datatablecore--mobile-cards",
+ "datatables-datatablecore--mobile-empty",
+ "datatables-datatablecore--mobile-failed",
+ "datatables-datatablecore--mobile-filtered-empty",
+ "datatables-datatablecore--mobile-loading",
+ "datatables-datatablecore--mobile-refetch",
+ "datatables-datatablecore--mobile-unauthorized",
"datatables-datatablecore--multiple-selection",
"datatables-datatablecore--query-states",
"datatables-datatableforobservablequery--default",
"datatables-datatableforobservablequery--live-update",
+ "datatables-datatableforobservablequery--mobile-cards",
"datatables-datatableforobservablequery--with-selection",
"datatables-datatableforquery--default",
"datatables-datatableforquery--in-bounded-height",
+ "datatables-datatableforquery--mobile-cards",
"datatables-datatableforquery--server-mode",
"datatables-datatableforquery--with-selection",
"datatables-tablepaginator--default",
@@ -567,13 +576,22 @@
"datatables-columnfiltermenu--text",
"datatables-datatablecore--empty",
"datatables-datatablecore--loaded-array",
+ "datatables-datatablecore--mobile-cards",
+ "datatables-datatablecore--mobile-empty",
+ "datatables-datatablecore--mobile-failed",
+ "datatables-datatablecore--mobile-filtered-empty",
+ "datatables-datatablecore--mobile-loading",
+ "datatables-datatablecore--mobile-refetch",
+ "datatables-datatablecore--mobile-unauthorized",
"datatables-datatablecore--multiple-selection",
"datatables-datatablecore--query-states",
"datatables-datatableforobservablequery--default",
"datatables-datatableforobservablequery--live-update",
+ "datatables-datatableforobservablequery--mobile-cards",
"datatables-datatableforobservablequery--with-selection",
"datatables-datatableforquery--default",
"datatables-datatableforquery--in-bounded-height",
+ "datatables-datatableforquery--mobile-cards",
"datatables-datatableforquery--server-mode",
"datatables-datatableforquery--with-selection",
"datatables-tablepaginator--default",
diff --git a/Storybook/vitest.viewport.config.ts b/Storybook/vitest.viewport.config.ts
index 43e746aa..f3d0385a 100644
--- a/Storybook/vitest.viewport.config.ts
+++ b/Storybook/vitest.viewport.config.ts
@@ -23,7 +23,7 @@ export default defineConfig({
},
plugins: [react()],
test: {
- include: ['PivotViewer/viewport.browser.test.tsx', 'CommandDialog/stepperConnector.browser.test.tsx', 'Common/datePickerModality.browser.test.tsx', 'CommandForm/calendarFieldModality.browser.test.tsx', 'Dialogs/dismissal.browser.test.tsx', 'Dialogs/atomicDialogHost.browser.test.tsx'],
+ include: ['DataTables/viewport.browser.test.tsx', 'PivotViewer/viewport.browser.test.tsx', 'CommandDialog/stepperConnector.browser.test.tsx', 'Common/datePickerModality.browser.test.tsx', 'CommandForm/calendarFieldModality.browser.test.tsx', 'Dialogs/dismissal.browser.test.tsx', 'Dialogs/atomicDialogHost.browser.test.tsx'],
testTimeout: 60_000,
browser: {
enabled: true,