@ds-mo/ui 14.7.0 → 14.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.package-ready.json +1 -1
- package/dist/agent-patterns.json +1 -1
- package/dist/agent.json +273 -7
- package/dist/angular/ds-select.d.ts +7 -1
- package/dist/angular/ds-select.js +5 -2
- package/dist/angular/ds-table-saved-views.d.ts +49 -0
- package/dist/angular/ds-table-saved-views.js +57 -0
- package/dist/angular/ds-table-toolbar.d.ts +12 -0
- package/dist/angular/ds-table-toolbar.js +38 -0
- package/dist/angular/ds-table.d.ts +4 -1
- package/dist/angular/ds-table.js +7 -4
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +2 -0
- package/dist/angular/proxies.d.ts +2 -0
- package/dist/angular/proxies.js +2 -0
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-bar-workflow.js.map +1 -1
- package/dist/components/ds-conversation-list-item.js +1 -1
- package/dist/components/ds-conversation-list-item.js.map +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-field.js.map +1 -1
- package/dist/components/ds-filter-menu.js +1 -1
- package/dist/components/ds-filter-menu.js.map +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-input.js.map +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-mobile-header.js +1 -1
- package/dist/components/ds-mobile-section-switcher.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-modal.js.map +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-table-saved-views.d.ts +11 -0
- package/dist/components/ds-table-saved-views.js +2 -0
- package/dist/components/ds-table-saved-views.js.map +1 -0
- package/dist/components/ds-table-toolbar.d.ts +11 -0
- package/dist/components/ds-table-toolbar.js +2 -0
- package/dist/components/ds-table-toolbar.js.map +1 -0
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/{p-B5um-ps9.js → p-BCg_6ErW.js} +2 -2
- package/dist/components/p-BFSnIEsC.js +2 -0
- package/dist/components/p-BFSnIEsC.js.map +1 -0
- package/dist/components/p-BPnmiiIS.js +2 -0
- package/dist/components/p-BPnmiiIS.js.map +1 -0
- package/dist/components/p-BVmKcpyP.js +2 -0
- package/dist/components/p-BVmKcpyP.js.map +1 -0
- package/dist/components/p-BiTwXttN.js +2 -0
- package/dist/components/{p-BKWgofxz.js.map → p-BiTwXttN.js.map} +1 -1
- package/dist/components/{p-DQUxg6Si.js → p-BmWWU20X.js} +2 -2
- package/dist/components/{p-BAebDW3a.js → p-BuGGwWmt.js} +2 -2
- package/dist/components/{p-BmqfTAXM.js → p-Bv1CFHgD.js} +2 -2
- package/dist/components/{p--VFa9x3k.js → p-C-Zgq_Fx.js} +2 -2
- package/dist/components/p-C1q-tq3U.js +2 -0
- package/dist/components/p-C1q-tq3U.js.map +1 -0
- package/dist/components/p-C6DNhlES.js +2 -0
- package/dist/components/p-C6DNhlES.js.map +1 -0
- package/dist/components/{p-DOC4RaAy.js → p-CqbMoVDQ.js} +2 -2
- package/dist/components/{p-BAgjMUt3.js → p-Cxr0IQjC.js} +1 -1
- package/dist/components/p-Cxr0IQjC.js.map +1 -0
- package/dist/docs/components.json +844 -64
- package/dist/lib/utils/choice-list.d.ts +8 -1
- package/dist/mcp-data/registry/empty-state.json +1 -0
- package/dist/mcp-data/registry/registry.json +278 -6
- package/dist/mcp-data/registry/select.json +20 -3
- package/dist/mcp-data/registry/table-saved-views.json +383 -0
- package/dist/mcp-data/registry/table-toolbar.json +146 -0
- package/dist/mcp-data/registry/table.json +113 -8
- package/dist/react/components.d.ts +2 -0
- package/dist/react/components.js +2 -0
- package/dist/react/ds-select.d.ts +2 -1
- package/dist/react/ds-select.js +2 -1
- package/dist/react/ds-table-saved-views.d.ts +17 -0
- package/dist/react/ds-table-saved-views.js +19 -0
- package/dist/react/ds-table-toolbar.d.ts +9 -0
- package/dist/react/ds-table-toolbar.js +12 -0
- package/dist/react/ds-table.d.ts +2 -1
- package/dist/react/ds-table.js +2 -1
- package/dist/styles/table.css +49 -1
- package/dist/types/components/Select/Select.d.ts +7 -0
- package/dist/types/components/Select/index.d.ts +1 -1
- package/dist/types/components/Table/Table.d.ts +19 -1
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/table-data-mode-switcher.d.ts +9 -0
- package/dist/types/components/Table/table-types.d.ts +7 -0
- package/dist/types/components/TableSavedViews/TableSavedViews.d.ts +61 -0
- package/dist/types/components/TableSavedViews/index.d.ts +2 -0
- package/dist/types/components/TableSavedViews/table-saved-views-types.d.ts +24 -0
- package/dist/types/components/TableToolbar/TableToolbar.d.ts +6 -0
- package/dist/types/components.d.ts +232 -4
- package/dist/types/utils/choice-list-parts.d.ts +1 -0
- package/dist/types/utils/choice-list.d.ts +8 -1
- package/package.json +1 -1
- package/dist/components/p-BAgjMUt3.js.map +0 -1
- package/dist/components/p-BKWgofxz.js +0 -2
- package/dist/components/p-mLRtp5A4.js +0 -2
- package/dist/components/p-mLRtp5A4.js.map +0 -1
- package/dist/components/p-tR8INOIN.js +0 -2
- package/dist/components/p-tR8INOIN.js.map +0 -1
- /package/dist/components/{p-B5um-ps9.js.map → p-BCg_6ErW.js.map} +0 -0
- /package/dist/components/{p-DQUxg6Si.js.map → p-BmWWU20X.js.map} +0 -0
- /package/dist/components/{p-BAebDW3a.js.map → p-BuGGwWmt.js.map} +0 -0
- /package/dist/components/{p-BmqfTAXM.js.map → p-Bv1CFHgD.js.map} +0 -0
- /package/dist/components/{p--VFa9x3k.js.map → p-C-Zgq_Fx.js.map} +0 -0
- /package/dist/components/{p-DOC4RaAy.js.map → p-CqbMoVDQ.js.map} +0 -0
|
@@ -7,6 +7,13 @@ export interface ChoiceOption {
|
|
|
7
7
|
isInactive?: boolean;
|
|
8
8
|
/** Optional contextual action shown at the trailing edge of this option. */
|
|
9
9
|
action?: ChoiceOptionAction;
|
|
10
|
+
/** Optional compact actions rendered as supporting content beneath the option label. */
|
|
11
|
+
subtextActions?: ChoiceOptionSubtextAction[];
|
|
12
|
+
}
|
|
13
|
+
export interface ChoiceOptionSubtextAction {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
tone?: 'action' | 'negative';
|
|
10
17
|
}
|
|
11
18
|
export interface ChoiceOptionAction {
|
|
12
19
|
/** Accessible name for the fixed ellipsis action. */
|
|
@@ -26,7 +33,7 @@ export declare function resolveChoiceSections(options: ChoiceOption[], sections:
|
|
|
26
33
|
export declare function flattenChoiceSections(sections: ChoiceSection[]): ChoiceOption[];
|
|
27
34
|
/** A choice list has one stable row layout: every option has an icon, or none do. */
|
|
28
35
|
export declare function choiceListUsesIcons(options: ChoiceOption[]): boolean;
|
|
29
|
-
/**
|
|
36
|
+
/** Descriptive subtext gives the complete list one stable two-line row layout. */
|
|
30
37
|
export declare function choiceListUsesSubtext(options: ChoiceOption[]): boolean;
|
|
31
38
|
export declare function filterChoiceSections(sections: ChoiceSection[], searchTerm: string): ChoiceSection[];
|
|
32
39
|
export declare function enabledChoiceIndexes(options: ChoiceOption[]): number[];
|
|
@@ -3660,6 +3660,7 @@
|
|
|
3660
3660
|
}
|
|
3661
3661
|
],
|
|
3662
3662
|
"commonlyComposedWith": [
|
|
3663
|
+
"component:ds-table",
|
|
3663
3664
|
"component:ds-select",
|
|
3664
3665
|
"component:ds-text",
|
|
3665
3666
|
"component:ds-icon"
|
|
@@ -7233,6 +7234,7 @@
|
|
|
7233
7234
|
"When any option supplies subtext, every row uses the same subtext structure and missing values render an em dash. Subtext should disambiguate or add decision-helpful information.",
|
|
7234
7235
|
"Option labels and the selected trigger label stay on one line and truncate when constrained. Option subtext may wrap to at most two lines.",
|
|
7235
7236
|
"Use an option action only for a contextual menu about that user-managed option. The fixed ellipsis action appears on hover, keyboard activity, focus, and touch; expanded keeps it visible while its controlled menu is open. Activating it emits dsOptionAction without selecting the option or closing the Select popup.",
|
|
7237
|
+
"Use option subtextActions for a compact set of immediate actions that belong to one option. They render beneath only that option's label using the standard supporting-text inset and rhythm, use action or negative semantic color, and emit dsOptionSubtextAction without selecting the option or closing the popup. Unlike descriptive subtext, they do not reserve a blank supporting line on neighboring options.",
|
|
7236
7238
|
"The optional prefix icon and trailing indicator always use the parent surface's secondary foreground color, including when a selected value promotes the label to primary. The default down indicator communicates disclosure; up-down is reserved for compact value steppers such as pagination page size.",
|
|
7237
7239
|
"While the popup is open, the trigger holds the pressed interaction wash without changing its resting foreground or selected-value treatment.",
|
|
7238
7240
|
"The shared popup search control follows the Select density, using the same text, icon, and internal spacing as a borderless trigger. Its container uses menu-item padding on every side and owns a 1px bottom divider that becomes a 1.5px bold-brand stroke while search has focus. Search placeholder text is secondary at rest and quaternary while focused because it becomes decorative once the editable field is active.",
|
|
@@ -7258,7 +7260,7 @@
|
|
|
7258
7260
|
"Assign options, sections, and multiple-mode array values through JavaScript properties because arrays and objects cannot be represented safely as attributes."
|
|
7259
7261
|
],
|
|
7260
7262
|
"react": [
|
|
7261
|
-
"Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, and
|
|
7263
|
+
"Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, onDsOptionAction, and onDsOptionSubtextAction."
|
|
7262
7264
|
],
|
|
7263
7265
|
"angular": [
|
|
7264
7266
|
"Import DsSelect and SelectValueAccessor when integrating with Angular Forms; bind options and sections as properties."
|
|
@@ -7445,6 +7447,10 @@
|
|
|
7445
7447
|
{
|
|
7446
7448
|
"name": "dsOptionAction",
|
|
7447
7449
|
"detail": "SelectOptionActionDetail"
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
"name": "dsOptionSubtextAction",
|
|
7453
|
+
"detail": "SelectOptionSubtextActionDetail"
|
|
7448
7454
|
}
|
|
7449
7455
|
],
|
|
7450
7456
|
"slots": [],
|
|
@@ -8842,7 +8848,7 @@
|
|
|
8842
8848
|
"summary": "Semantic, controlled data table with durable visual primitives for cell geometry, grouping, sorting, multi-selection, sticky overflow, incremental loading, and top-level pagination.",
|
|
8843
8849
|
"useWhen": [
|
|
8844
8850
|
"A structured dataset needs native row and column relationships, optional one-level grouping, or comparable values across records.",
|
|
8845
|
-
"An application needs controlled sorting, loaded-row selection, infinite loading, pagination, or
|
|
8851
|
+
"An application needs controlled sorting, loaded-row selection, infinite loading, pagination, or opted-in table-owned data-mode and column controls while retaining ownership of the data query, catalog, and persistence.",
|
|
8846
8852
|
"A product table needs a token-backed recipe whose individual header, group, row, cell, selection, state, and load-more layers remain easy to restyle."
|
|
8847
8853
|
],
|
|
8848
8854
|
"avoidWhen": [
|
|
@@ -8856,6 +8862,8 @@
|
|
|
8856
8862
|
"component:ds-skeleton",
|
|
8857
8863
|
"component:ds-loader",
|
|
8858
8864
|
"component:ds-pagination",
|
|
8865
|
+
"component:ds-table-toolbar",
|
|
8866
|
+
"component:ds-table-saved-views",
|
|
8859
8867
|
"component:ds-bar-action",
|
|
8860
8868
|
"component:ds-button-unfilled",
|
|
8861
8869
|
"component:ds-menu",
|
|
@@ -8868,8 +8876,9 @@
|
|
|
8868
8876
|
],
|
|
8869
8877
|
"accessibility": [
|
|
8870
8878
|
"The rendered structure uses a native table, caption, column headers, row groups, and data cells; keep the caption non-empty. The native caption remains visually hidden as the table's accessible name. When caption visibility is enabled, a 48px header bar renders as component chrome outside the horizontal scrollport. It defaults to a presentational caption title that does not duplicate the accessible name. Application-owned labeled controls supplied through the single named header slot replace that fallback and occupy the leading content width inside the component-owned 8px inset. When columnCustomizer is enabled, the table adds a trailing Preferences control named Customize table; otherwise the header slot receives the complete content width.",
|
|
8879
|
+
"The data-mode switcher is the shared Menu of the table's supported infinite and pagination modes. It is the final caption-bar action; when the column customizer is also present, a decorative vertical divider separates the two controls. dataMode remains controlled, and the application responds to change intent by supplying the matching records, pagination state, loading behavior, and query consequences. Escape, dismissal, and selection return focus to the trigger.",
|
|
8871
8880
|
"The column customizer is the shared Menu of switch rows, not a table-owned dialog. Data columns can be shown, hidden, and reordered. Locked action columns stay visible, inactive, and last. The selection checkbox is not a column and never appears. The last remaining visible data column cannot be hidden, but it stays focusable so it can still be reordered. Escape and outside click restore focus to the trigger. Persistence stays in the application.",
|
|
8872
|
-
"Sorting controls remain buttons inside column headers and expose the table's one controlled member-row sort through aria-sort. Grouping never adds a second sort indicator or header control; the application supplies groups in its fixed product order.",
|
|
8881
|
+
"Sorting controls remain buttons inside column headers and expose the table's one controlled member-row sort through aria-sort. Grouping never adds a second sort indicator or header control; the application supplies groups in its fixed product order. Optional column help underlines the header label with the shared dotted decoration and shows ds-tooltip from that label; it does not add a second header control or replace the column name.",
|
|
8873
8882
|
"Selection controls expose checkbox semantics and explicit row names; select-all affects selectable loaded rows only and preserves selected identities outside the loaded window. When grouping is active with multi-selection, each group section header also exposes a checkbox that selects or clears that group's selectable loaded rows.",
|
|
8874
8883
|
"Interactive rows are focusable as native rows, activate with Enter or Space, and do not steal activation from their nested selection, action, overflow-menu, or primary-text link controls.",
|
|
8875
8884
|
"Scrollable table regions become keyboard focusable and named only when overflow exists.",
|
|
@@ -8877,12 +8886,12 @@
|
|
|
8877
8886
|
"Static and infinite tables may show an optional result summary footer when displayedCount and totalCount are finite. Pagination mode instead renders a named Pagination control with a compact selected-size total, vertical divider, and page position; range changes are announced independently with complete phrasing. While focus is anywhere inside a paginated table, unmodified Left and Right Arrow request the adjacent page; editable fields, choice controls, sliders, and modified key combinations retain their own keyboard behavior. The footer slot can replace summary copy, while footer-leading and footer-trailing remain available in the same compact-bar anatomy."
|
|
8878
8887
|
],
|
|
8879
8888
|
"states": [
|
|
8880
|
-
"Columns, rows, groups, grouping, sorting, selected row IDs, collapsed group IDs, hiddenColumnIds, columnOrder, dataMode, pagination, displayedCount, totalCount, and incremental-loading state are controlled inputs. Events communicate intent and never mutate those inputs. The optional header is one composable table-local surface: the component owns its 48px chrome, 8px inset on every side, and sticky placement while the application owns the leading slot's internal layout, controls, labels, filtering behavior, and action handling. Opting into columnCustomizer adds
|
|
8889
|
+
"Columns, rows, groups, grouping, sorting, selected row IDs, collapsed group IDs, hiddenColumnIds, columnOrder, dataMode, pagination, displayedCount, totalCount, and incremental-loading state are controlled inputs. Events communicate intent and never mutate those inputs. The optional header is one composable table-local surface: the component owns its 48px chrome, 8px inset on every side, and sticky placement while the application owns the leading slot's internal layout, controls, labels, filtering behavior, and action handling. Opting into dataModeSwitcher and columnCustomizer adds their trailing Menu triggers and requires caption visibility. When both are present, Customize table precedes a decorative divider and the data-mode trigger remains the final action. The table closes one trailing Menu before opening the other. The footer retains its compact-bar composition: application-owned leading status sits left while a controlled result summary or Pagination aligns right, before any trailing action. Content-sized tables remain natural for sparse or fixed-count results. height bounds the complete header, frame, and footer composition. fitViewport reserves the compact-state composition height in the nearest vertical scrollport while growing the visible table into that reservation as surrounding page chrome collapses.",
|
|
8881
8890
|
"Grouping supports one level. The application supplies groups in a fixed product-defined order and supplies ordered member rows independently. Group section headers show an emphasized text-body-medium label followed by a middle dot and plain secondary loaded progress, for example Critical · 50 of 166. The loaded value comes from the supplied member rows and the total comes from totalCount. A localized countLabel total phrase remains available for the complete assistive progress announcement. Groups may declare an optional intent (brand, neutral, negative, warning, caution, positive) that paints an LTR gradient from the faint intent surface at the label edge into faint neutral at the trailing edge, plus a bold intent title color. Neutral groups remain solid faint neutral. Section separators are painted inside that viewport-width surface so translucent border tokens composite with each intent background. Internal sections keep their separators; a collapsed or empty section header yields its separator only when it is the table's final rendered item. A trailing visually neutral icon-only ButtonUnfilled uses the 24px md double-inset action recipe and toggles controlled collapsedGroupIds, showing ChevronUp while expanded and ChevronDown while collapsed. While any group is expanded, a ChevronDownUp action uses the xs sort-control recipe widened to a table-owned 24px lane and collapses every group. It appears at the inline-end edge of the trailing column declared with kind action when one exists; otherwise a button-hugging 24px by 16px medium-elevation surface floats at the visible scrollport's header edge so the action remains reachable while member columns scroll beneath it. With stickyHeader enabled, each contained section uses its one real section row as a native sticky header inside its real row-group boundary. The browser therefore owns pinning, push-off, scrolling, and resize layout in one pass without a duplicated lane, active-section state, transforms, or scroll-time geometry. Shared grid tracks retain exact header and member-cell alignment. The section surface also stays pinned to the visible horizontal scrollport and spans the smaller of the visible viewport or table width.",
|
|
8882
8891
|
"When columnCustomizer is false, columns render in catalog order. When it is true, columns remains the catalog: hiddenColumnIds and columnOrder control visibility and data-column sequence, action columns stay last and cannot be hidden, and dsColumnsConfigChange reports the next hidden ids and data-column order without mutating those inputs. The customizer Menu live-applies show/hide and data-column reorder. The table does not persist preferences.",
|
|
8883
8892
|
"An active member sort toggles only between ascending and descending; activating a different sortable label moves the one sorting state to that key. Applications may still clear the controlled sort state explicitly. Grouping does not introduce another interactive direction.",
|
|
8884
8893
|
"Compound headers can expose multiple related labels with independent sort keys. Each label owns only its content-width interaction target while the active direction remains in the column's alignment-aware sort lane.",
|
|
8885
|
-
"Initial loading defaults to ten row-shaped skeletons and preserves row dividers, column dividers, selection lanes, and sticky boundaries. A selectable table renders a checkbox-sized control skeleton in its selection lane so loading geometry matches the real checkbox instead of a generic icon. Each column may declare representative text, multiline text, image, Tag, icon, icon-and-text, action, or intentionally blank loading geometry; the table applies the matching resolved-cell padding and track anatomy so the placeholder row has the same height and rhythm as its data row. Columns without a declaration use one text line, while action columns infer an icon action placeholder. Empty, initial error, load-more, retry, loading-more, and terminal bands remain fixed to the visible table width while data columns scroll horizontally beneath them. Incremental loading retains existing rows and supports automatic sentinel, manual load-more, retry, and terminal states. When grouping is active, each expanded group owns its load band at the end of its member rows; internal group load bands keep their bottom divider, while a terminal group load band yields it to the table edge or footer. The global bottom-of-table loader is not rendered.",
|
|
8894
|
+
"Initial loading defaults to ten row-shaped skeletons and preserves row dividers, column dividers, selection lanes, and sticky boundaries. A selectable table renders a checkbox-sized control skeleton in its selection lane so loading geometry matches the real checkbox instead of a generic icon. Each column may declare representative text, multiline text, image, Tag, icon, icon-and-text, action, or intentionally blank loading geometry; the table applies the matching resolved-cell padding and track anatomy so the placeholder row has the same height and rhythm as its data row. Columns without a declaration use one text line, while action columns infer an icon action placeholder. Empty and initial error replace only the body with ds-empty-state, using Inbox or ErrorTriangle plus the table heading and body copy. In height-bounded and maxHeight tables that region fills the remaining viewport below the column header; content-sized tables keep a minimum empty-region height. Empty, initial error, load-more, retry, loading-more, and terminal bands remain fixed to the visible table width while data columns scroll horizontally beneath them. Incremental loading retains existing rows and supports automatic sentinel, manual load-more, retry, and terminal states. When grouping is active, each expanded group owns its load band at the end of its member rows; internal group load bands keep their bottom divider, while a terminal group load band yields it to the table edge or footer. The global bottom-of-table loader is not rendered.",
|
|
8886
8895
|
"dataMode selects the top-level window: infinite appends ungrouped rows through dsLoadMore when hasMore is true, and pagination renders the controlled page supplied by the application and emits dsPaginationChange. Infinite mode also covers fixed result sets by leaving hasMore false. In a grouped paginated table, pagination counts and windows only parent groups; each expanded parent can still append its own members through dsGroupLoadMore. The application owns requests, cancellation, cursors, deduplication, slicing, and query identity.",
|
|
8887
8896
|
"When pagination enables Fit to page on a bounded table, the table proposes the number of complete top-level rows that fit below its column header. Grouped tables count group headers only; member rows never affect capacity. Selecting Fit captures that numeric snapshot. A changed fitIdentity requests one fresh snapshot for a new query shape, while viewport resizing alone does not change the active controlled page size.",
|
|
8888
8897
|
"Rows opt into complete-row activation with interactive and emit dsRowActivate without owning navigation. Selection paints through the shared selected ::before layer; interactive hover and press paint through the shared ::after layer.",
|
|
@@ -8895,7 +8904,7 @@
|
|
|
8895
8904
|
"stickyHeader follows the active vertical scroll owner: a maxHeight, height, or fitViewport table keeps its native header and group sections inside one bounded table scrollport, while a document-flow table retains a semantic native header and renders a sticky control header whose columns follow the body's native inline scroll timeline. Consumers set --ds-table-sticky-header-offset when page chrome occupies an unbounded document scrollport edge. When the 48px table header bar is visible, it sticks at that external offset and the column header stacks immediately below it.",
|
|
8896
8905
|
"fitViewport uses viewportInsetBlockStart and viewportInsetBlockEnd to describe compact surrounding chrome and page gutters relative to the nearest vertical scroll owner. Before the table reaches that compact position, its host reserves the eventual height while the visible composition grows and vertical input remains owned by the outer page. Once settled, the internal table viewport becomes the vertical scroll owner. Bounded grouped tables use browser-native sticky section rows inside real block row-group boundaries, so scroll and resize do not run component JavaScript or trigger reactive section swaps. Document-flow tables retain the synchronized visual lane required by their separate horizontal scrollport.",
|
|
8897
8906
|
"Without maxHeight the table grows the document and automatic lazy loading observes the browser viewport. Horizontal scrolling chains vertical wheel and trackpad movement to the page instead of trapping it.",
|
|
8898
|
-
"Explicit column sizes establish the horizontal overflow width; unsized columns share remaining space.",
|
|
8907
|
+
"Explicit column sizes establish the horizontal overflow width; unsized columns share remaining space. Set imageTracks on an image column to derive its fixed width from the matching 1-, 2-, or 3-track 16:9 image geometry plus table cell padding instead of copying a numeric width.",
|
|
8899
8908
|
"Prefer the named xs through xl column sizes, which resolve through TokoMo's table-column width tokens; numeric pixel sizes remain an escape hatch for exceptional application-owned widths.",
|
|
8900
8909
|
"Column headers use one 32px geometry. Body rows use a 40px single-track minimum with shared 8px cell padding; additional tracks grow downward. Image previews fill the same content box as their declared track count. The second text track and the third text track share one subdued body-small recipe so line 3 lines up with line 2.",
|
|
8901
8910
|
"Long content truncates to one line by default. Hover (or keyboard-focus a primary link) shows the omitted value in one table-owned tooltip when that track overflows. maxLines 2 or 3 wrap onto the named 2-track and 3-track row heights, then ellipsize with the same tooltip. wrap: true remains unlimited and does not show a truncation tooltip. Wrapping 1-track primary occupies the named 2-track and 3-track row heights instead of a private line-height scale. Wrapping secondary on a 2-track cell occupies the named 3-track row and a 106px fourth track for three lines."
|
|
@@ -8961,6 +8970,18 @@
|
|
|
8961
8970
|
"type": "TableDataMode",
|
|
8962
8971
|
"required": false
|
|
8963
8972
|
},
|
|
8973
|
+
"dataModeMenuLabel": {
|
|
8974
|
+
"type": "string",
|
|
8975
|
+
"required": false
|
|
8976
|
+
},
|
|
8977
|
+
"dataModeSwitcher": {
|
|
8978
|
+
"type": "boolean",
|
|
8979
|
+
"required": false
|
|
8980
|
+
},
|
|
8981
|
+
"dataModeSwitcherLabel": {
|
|
8982
|
+
"type": "string",
|
|
8983
|
+
"required": false
|
|
8984
|
+
},
|
|
8964
8985
|
"displayedCount": {
|
|
8965
8986
|
"type": "number | undefined",
|
|
8966
8987
|
"required": false
|
|
@@ -9041,6 +9062,10 @@
|
|
|
9041
9062
|
"type": "string[]",
|
|
9042
9063
|
"required": false
|
|
9043
9064
|
},
|
|
9065
|
+
"infiniteModeLabel": {
|
|
9066
|
+
"type": "string",
|
|
9067
|
+
"required": false
|
|
9068
|
+
},
|
|
9044
9069
|
"loadIdentity": {
|
|
9045
9070
|
"type": "string | number",
|
|
9046
9071
|
"required": false
|
|
@@ -9081,6 +9106,10 @@
|
|
|
9081
9106
|
"type": "TablePaginationState | null",
|
|
9082
9107
|
"required": false
|
|
9083
9108
|
},
|
|
9109
|
+
"paginationModeLabel": {
|
|
9110
|
+
"type": "string",
|
|
9111
|
+
"required": false
|
|
9112
|
+
},
|
|
9084
9113
|
"resultSummaryLabel": {
|
|
9085
9114
|
"type": "string",
|
|
9086
9115
|
"required": false
|
|
@@ -9143,6 +9172,10 @@
|
|
|
9143
9172
|
"name": "dsColumnsConfigChange",
|
|
9144
9173
|
"detail": "TableColumnsConfigChangeDetail"
|
|
9145
9174
|
},
|
|
9175
|
+
{
|
|
9176
|
+
"name": "dsDataModeChange",
|
|
9177
|
+
"detail": "TableDataModeChangeDetail"
|
|
9178
|
+
},
|
|
9146
9179
|
{
|
|
9147
9180
|
"name": "dsGroupCollapseChange",
|
|
9148
9181
|
"detail": "TableGroupCollapseChangeDetail"
|
|
@@ -9187,6 +9220,7 @@
|
|
|
9187
9220
|
"registryDependencies": [
|
|
9188
9221
|
"button-unfilled",
|
|
9189
9222
|
"checkbox",
|
|
9223
|
+
"divider",
|
|
9190
9224
|
"empty-state",
|
|
9191
9225
|
"icon",
|
|
9192
9226
|
"loader",
|
|
@@ -9198,6 +9232,244 @@
|
|
|
9198
9232
|
"tooltip"
|
|
9199
9233
|
]
|
|
9200
9234
|
},
|
|
9235
|
+
{
|
|
9236
|
+
"name": "table-saved-views",
|
|
9237
|
+
"title": "TableSavedViews",
|
|
9238
|
+
"description": "Controlled saved-views UI for table toolbars, including selection, dirty state, create, save, discard, rename, remove, validation, and focus behavior without owning table configuration or persistence.",
|
|
9239
|
+
"type": "registry:ui",
|
|
9240
|
+
"meta": {
|
|
9241
|
+
"library": "@ds-mo/ui",
|
|
9242
|
+
"distribution": "npm",
|
|
9243
|
+
"storybook": "https://zainadeel.github.io/compomo/?path=/story/table-saved-views",
|
|
9244
|
+
"source": "src/wc/components/TableSavedViews/TableSavedViews.tsx",
|
|
9245
|
+
"intentStatus": "complete",
|
|
9246
|
+
"intent": {
|
|
9247
|
+
"audience": "general",
|
|
9248
|
+
"status": "stable",
|
|
9249
|
+
"summary": "Controlled saved-views UI for table toolbars, including selection, dirty state, create, save, discard, rename, remove, validation, and focus behavior without owning table configuration or persistence.",
|
|
9250
|
+
"useWhen": [
|
|
9251
|
+
"A table workspace lets people recall and manage named combinations of table controls.",
|
|
9252
|
+
"Several products need the same saved-view interaction while retaining different view payloads and storage systems."
|
|
9253
|
+
],
|
|
9254
|
+
"avoidWhen": [
|
|
9255
|
+
"The choices do not represent restorable table configurations.",
|
|
9256
|
+
"The application expects the component to serialize filters, grouping, sorting, columns, pagination, or product-specific state."
|
|
9257
|
+
],
|
|
9258
|
+
"commonlyComposedWith": [
|
|
9259
|
+
"component:ds-table-toolbar",
|
|
9260
|
+
"component:ds-table",
|
|
9261
|
+
"component:ds-select",
|
|
9262
|
+
"component:ds-menu",
|
|
9263
|
+
"component:ds-modal"
|
|
9264
|
+
],
|
|
9265
|
+
"patterns": [
|
|
9266
|
+
"pattern:menu-trigger"
|
|
9267
|
+
],
|
|
9268
|
+
"accessibility": [
|
|
9269
|
+
"The primary control retains combobox semantics and exposes a direct accessible name.",
|
|
9270
|
+
"Each custom view exposes a separately named options trigger. The options menu supports keyboard navigation and returns focus through the shared Select and Menu behavior.",
|
|
9271
|
+
"The naming dialog traps focus through Modal behavior, associates validation text with the input through Field, and restores focus to the saved-views control after closing."
|
|
9272
|
+
],
|
|
9273
|
+
"states": [
|
|
9274
|
+
"views, value, and dirty are controlled. Selection, create, save, discard, rename, and remove events communicate intent and never mutate application records.",
|
|
9275
|
+
"The component owns only transient interaction state: the contextual menu, naming dialog, draft name, duplicate-name validation, and focus restoration.",
|
|
9276
|
+
"The default view is a non-editable template. Application-owned custom views appear in a separate section with Rename and Remove actions. New view opens the naming dialog. When an editable selected view is dirty, that view row shows Save and negative Discard supporting actions while the footer remains dedicated to New view. The application decides which table state to capture, restore, and persist."
|
|
9277
|
+
],
|
|
9278
|
+
"responsiveBehavior": [
|
|
9279
|
+
"The control remains a single toolbar item and relies on Select, Menu, and Modal collision and viewport behavior.",
|
|
9280
|
+
"Place it in the leading region of ds-table-toolbar so narrow table headers preserve the expected control order."
|
|
9281
|
+
],
|
|
9282
|
+
"frameworkCaveats": {
|
|
9283
|
+
"customElements": [
|
|
9284
|
+
"Assign views through the JavaScript property and update value after handling dsViewChange."
|
|
9285
|
+
],
|
|
9286
|
+
"react": [
|
|
9287
|
+
"Keep view records and serialized table configuration in application state; update controlled props in response to the component events."
|
|
9288
|
+
],
|
|
9289
|
+
"angular": [
|
|
9290
|
+
"Import the generated DsTableSavedViews adapter and bind views, value, and dirty; handle event.detail for selection and mutations."
|
|
9291
|
+
]
|
|
9292
|
+
},
|
|
9293
|
+
"references": [
|
|
9294
|
+
{
|
|
9295
|
+
"label": "Storybook review states",
|
|
9296
|
+
"path": "src/wc/components/TableSavedViews/TableSavedViews.stories.ts"
|
|
9297
|
+
},
|
|
9298
|
+
{
|
|
9299
|
+
"label": "Toolbar composition owner",
|
|
9300
|
+
"path": "src/wc/components/TableToolbar/TableToolbar.agent.json"
|
|
9301
|
+
}
|
|
9302
|
+
]
|
|
9303
|
+
},
|
|
9304
|
+
"props": {
|
|
9305
|
+
"createLabel": {
|
|
9306
|
+
"type": "string",
|
|
9307
|
+
"required": false
|
|
9308
|
+
},
|
|
9309
|
+
"defaultViewId": {
|
|
9310
|
+
"type": "string",
|
|
9311
|
+
"required": false
|
|
9312
|
+
},
|
|
9313
|
+
"defaultViewLabel": {
|
|
9314
|
+
"type": "string",
|
|
9315
|
+
"required": false
|
|
9316
|
+
},
|
|
9317
|
+
"dirty": {
|
|
9318
|
+
"type": "boolean",
|
|
9319
|
+
"required": false
|
|
9320
|
+
},
|
|
9321
|
+
"label": {
|
|
9322
|
+
"type": "string",
|
|
9323
|
+
"required": false
|
|
9324
|
+
},
|
|
9325
|
+
"triggerLabel": {
|
|
9326
|
+
"type": "string",
|
|
9327
|
+
"required": false
|
|
9328
|
+
},
|
|
9329
|
+
"value": {
|
|
9330
|
+
"type": "string",
|
|
9331
|
+
"required": false
|
|
9332
|
+
},
|
|
9333
|
+
"views": {
|
|
9334
|
+
"type": "TableSavedView[]",
|
|
9335
|
+
"required": false
|
|
9336
|
+
}
|
|
9337
|
+
},
|
|
9338
|
+
"events": [
|
|
9339
|
+
{
|
|
9340
|
+
"name": "dsViewChange",
|
|
9341
|
+
"detail": "TableSavedViewChangeDetail"
|
|
9342
|
+
},
|
|
9343
|
+
{
|
|
9344
|
+
"name": "dsViewCreate",
|
|
9345
|
+
"detail": "TableSavedViewCreateDetail"
|
|
9346
|
+
},
|
|
9347
|
+
{
|
|
9348
|
+
"name": "dsViewDiscard",
|
|
9349
|
+
"detail": "TableSavedViewDiscardDetail"
|
|
9350
|
+
},
|
|
9351
|
+
{
|
|
9352
|
+
"name": "dsViewRemove",
|
|
9353
|
+
"detail": "TableSavedViewRemoveDetail"
|
|
9354
|
+
},
|
|
9355
|
+
{
|
|
9356
|
+
"name": "dsViewRename",
|
|
9357
|
+
"detail": "TableSavedViewRenameDetail"
|
|
9358
|
+
},
|
|
9359
|
+
{
|
|
9360
|
+
"name": "dsViewSave",
|
|
9361
|
+
"detail": "TableSavedViewSaveDetail"
|
|
9362
|
+
}
|
|
9363
|
+
],
|
|
9364
|
+
"slots": [],
|
|
9365
|
+
"exports": {
|
|
9366
|
+
"customElement": "ds-table-saved-views",
|
|
9367
|
+
"react": "DsTableSavedViews",
|
|
9368
|
+
"angular": "DsTableSavedViews"
|
|
9369
|
+
}
|
|
9370
|
+
},
|
|
9371
|
+
"dependencies": [
|
|
9372
|
+
"@ds-mo/ui",
|
|
9373
|
+
"@ds-mo/tokens"
|
|
9374
|
+
],
|
|
9375
|
+
"registryDependencies": [
|
|
9376
|
+
"button-filled",
|
|
9377
|
+
"button-unfilled",
|
|
9378
|
+
"field",
|
|
9379
|
+
"input",
|
|
9380
|
+
"menu",
|
|
9381
|
+
"modal",
|
|
9382
|
+
"select"
|
|
9383
|
+
]
|
|
9384
|
+
},
|
|
9385
|
+
{
|
|
9386
|
+
"name": "table-toolbar",
|
|
9387
|
+
"title": "TableToolbar",
|
|
9388
|
+
"description": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
|
|
9389
|
+
"type": "registry:ui",
|
|
9390
|
+
"meta": {
|
|
9391
|
+
"library": "@ds-mo/ui",
|
|
9392
|
+
"distribution": "npm",
|
|
9393
|
+
"storybook": "https://zainadeel.github.io/compomo/?path=/story/table-toolbar",
|
|
9394
|
+
"source": "src/wc/components/TableToolbar/TableToolbar.tsx",
|
|
9395
|
+
"intentStatus": "complete",
|
|
9396
|
+
"intent": {
|
|
9397
|
+
"audience": "general",
|
|
9398
|
+
"status": "stable",
|
|
9399
|
+
"summary": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
|
|
9400
|
+
"useWhen": [
|
|
9401
|
+
"Several table pages repeat the same leading discovery controls and trailing result-shaping controls.",
|
|
9402
|
+
"A ds-table header slot needs consistent control spacing, alignment, grouping, and narrow-width overflow without moving product behavior into the table."
|
|
9403
|
+
],
|
|
9404
|
+
"avoidWhen": [
|
|
9405
|
+
"The controls do not operate on a table or structured result set.",
|
|
9406
|
+
"The application expects the toolbar to define filters, saved views, grouping choices, persistence, or data transformations.",
|
|
9407
|
+
"Only one standalone control is present and needs no grouped toolbar semantics."
|
|
9408
|
+
],
|
|
9409
|
+
"commonlyComposedWith": [
|
|
9410
|
+
"component:ds-table",
|
|
9411
|
+
"component:ds-table-saved-views",
|
|
9412
|
+
"component:ds-input",
|
|
9413
|
+
"component:ds-filter-menu",
|
|
9414
|
+
"component:ds-button-unfilled"
|
|
9415
|
+
],
|
|
9416
|
+
"patterns": [],
|
|
9417
|
+
"accessibility": [
|
|
9418
|
+
"The component exposes a named toolbar while each slotted control retains its own accessible name and native keyboard behavior.",
|
|
9419
|
+
"Use the leading slot for discovery and context controls such as saved views and search. Use the trailing slot for result-shaping controls such as filters and grouping.",
|
|
9420
|
+
"Tab order follows authored DOM order. The toolbar does not add roving focus because it may contain heterogeneous form and popup controls."
|
|
9421
|
+
],
|
|
9422
|
+
"states": [
|
|
9423
|
+
"The component owns layout only. Slotted controls, values, menus, loading, persistence, and consequences remain controlled by the application. Use ds-table-saved-views when saved-view interaction needs the shared CompoMo behavior while application storage remains external.",
|
|
9424
|
+
"Either region may be empty. The populated region continues to occupy the available width without adding placeholder chrome."
|
|
9425
|
+
],
|
|
9426
|
+
"responsiveBehavior": [
|
|
9427
|
+
"The two control groups stay on one line and horizontally scroll when their complete controls no longer fit.",
|
|
9428
|
+
"The scrollbar is visually suppressed without removing touch, trackpad, mouse-wheel, or keyboard scrolling from the overflow container.",
|
|
9429
|
+
"Trailing controls remain grouped after leading controls; the toolbar does not collapse controls into an application-specific overflow menu."
|
|
9430
|
+
],
|
|
9431
|
+
"frameworkCaveats": {
|
|
9432
|
+
"customElements": [
|
|
9433
|
+
"Project controls through slot=leading or slot=trailing and provide a label that names their table context when Table controls is insufficient."
|
|
9434
|
+
],
|
|
9435
|
+
"react": [
|
|
9436
|
+
"Set slot=leading or slot=trailing on each child control; keep values and event handlers in the application."
|
|
9437
|
+
],
|
|
9438
|
+
"angular": [
|
|
9439
|
+
"Set slot=leading or slot=trailing on each child control and import the generated DsTableToolbar adapter alongside those controls."
|
|
9440
|
+
]
|
|
9441
|
+
},
|
|
9442
|
+
"references": [
|
|
9443
|
+
{
|
|
9444
|
+
"label": "Storybook review states",
|
|
9445
|
+
"path": "src/wc/components/TableToolbar/TableToolbar.stories.ts"
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
"label": "Table composition owner",
|
|
9449
|
+
"path": "src/wc/components/Table/Table.agent.json"
|
|
9450
|
+
}
|
|
9451
|
+
]
|
|
9452
|
+
},
|
|
9453
|
+
"props": {
|
|
9454
|
+
"label": {
|
|
9455
|
+
"type": "string",
|
|
9456
|
+
"required": false
|
|
9457
|
+
}
|
|
9458
|
+
},
|
|
9459
|
+
"events": [],
|
|
9460
|
+
"slots": [],
|
|
9461
|
+
"exports": {
|
|
9462
|
+
"customElement": "ds-table-toolbar",
|
|
9463
|
+
"react": "DsTableToolbar",
|
|
9464
|
+
"angular": "DsTableToolbar"
|
|
9465
|
+
}
|
|
9466
|
+
},
|
|
9467
|
+
"dependencies": [
|
|
9468
|
+
"@ds-mo/ui",
|
|
9469
|
+
"@ds-mo/tokens"
|
|
9470
|
+
],
|
|
9471
|
+
"registryDependencies": []
|
|
9472
|
+
},
|
|
9201
9473
|
{
|
|
9202
9474
|
"name": "tag",
|
|
9203
9475
|
"title": "Tag",
|