@ds-mo/ui 14.7.0 → 14.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/.package-ready.json +1 -1
  2. package/dist/agent-patterns.json +1 -1
  3. package/dist/agent.json +270 -5
  4. package/dist/angular/ds-select.d.ts +7 -1
  5. package/dist/angular/ds-select.js +5 -2
  6. package/dist/angular/ds-table-saved-views.d.ts +49 -0
  7. package/dist/angular/ds-table-saved-views.js +57 -0
  8. package/dist/angular/ds-table-toolbar.d.ts +12 -0
  9. package/dist/angular/ds-table-toolbar.js +38 -0
  10. package/dist/angular/ds-table.d.ts +4 -1
  11. package/dist/angular/ds-table.js +7 -4
  12. package/dist/angular/index.d.ts +1 -1
  13. package/dist/angular/index.js +2 -0
  14. package/dist/angular/proxies.d.ts +2 -0
  15. package/dist/angular/proxies.js +2 -0
  16. package/dist/components/ds-bar-nav.js +1 -1
  17. package/dist/components/ds-bar-title.js +1 -1
  18. package/dist/components/ds-bar-workflow.js +1 -1
  19. package/dist/components/ds-bar-workflow.js.map +1 -1
  20. package/dist/components/ds-conversation-list-item.js +1 -1
  21. package/dist/components/ds-conversation-list-item.js.map +1 -1
  22. package/dist/components/ds-field.js +1 -1
  23. package/dist/components/ds-field.js.map +1 -1
  24. package/dist/components/ds-filter-menu.js +1 -1
  25. package/dist/components/ds-filter-menu.js.map +1 -1
  26. package/dist/components/ds-input.js +1 -1
  27. package/dist/components/ds-input.js.map +1 -1
  28. package/dist/components/ds-menu.js +1 -1
  29. package/dist/components/ds-mobile-header.js +1 -1
  30. package/dist/components/ds-mobile-section-switcher.js +1 -1
  31. package/dist/components/ds-modal.js +1 -1
  32. package/dist/components/ds-modal.js.map +1 -1
  33. package/dist/components/ds-pagination.js +1 -1
  34. package/dist/components/ds-panel-tool-search.js +1 -1
  35. package/dist/components/ds-select.js +1 -1
  36. package/dist/components/ds-shell-app.js +1 -1
  37. package/dist/components/ds-shell-tools.js +1 -1
  38. package/dist/components/ds-table-saved-views.d.ts +11 -0
  39. package/dist/components/ds-table-saved-views.js +2 -0
  40. package/dist/components/ds-table-saved-views.js.map +1 -0
  41. package/dist/components/ds-table-toolbar.d.ts +11 -0
  42. package/dist/components/ds-table-toolbar.js +2 -0
  43. package/dist/components/ds-table-toolbar.js.map +1 -0
  44. package/dist/components/ds-table.js +1 -1
  45. package/dist/components/ds-table.js.map +1 -1
  46. package/dist/components/ds-toast.js +1 -1
  47. package/dist/components/ds-typing-indicator.js +1 -1
  48. package/dist/components/{p-B5um-ps9.js → p-BCg_6ErW.js} +2 -2
  49. package/dist/components/p-BFSnIEsC.js +2 -0
  50. package/dist/components/p-BFSnIEsC.js.map +1 -0
  51. package/dist/components/p-BPnmiiIS.js +2 -0
  52. package/dist/components/p-BPnmiiIS.js.map +1 -0
  53. package/dist/components/p-BVmKcpyP.js +2 -0
  54. package/dist/components/p-BVmKcpyP.js.map +1 -0
  55. package/dist/components/p-BiTwXttN.js +2 -0
  56. package/dist/components/{p-BKWgofxz.js.map → p-BiTwXttN.js.map} +1 -1
  57. package/dist/components/{p-DQUxg6Si.js → p-BmWWU20X.js} +2 -2
  58. package/dist/components/{p-BAebDW3a.js → p-BuGGwWmt.js} +2 -2
  59. package/dist/components/{p-BmqfTAXM.js → p-Bv1CFHgD.js} +2 -2
  60. package/dist/components/{p--VFa9x3k.js → p-C-Zgq_Fx.js} +2 -2
  61. package/dist/components/p-C1q-tq3U.js +2 -0
  62. package/dist/components/p-C1q-tq3U.js.map +1 -0
  63. package/dist/components/p-C6DNhlES.js +2 -0
  64. package/dist/components/p-C6DNhlES.js.map +1 -0
  65. package/dist/components/{p-DOC4RaAy.js → p-CqbMoVDQ.js} +2 -2
  66. package/dist/components/{p-BAgjMUt3.js → p-Cxr0IQjC.js} +1 -1
  67. package/dist/components/p-Cxr0IQjC.js.map +1 -0
  68. package/dist/docs/components.json +844 -64
  69. package/dist/lib/utils/choice-list.d.ts +8 -1
  70. package/dist/mcp-data/registry/registry.json +275 -4
  71. package/dist/mcp-data/registry/select.json +20 -3
  72. package/dist/mcp-data/registry/table-saved-views.json +383 -0
  73. package/dist/mcp-data/registry/table-toolbar.json +146 -0
  74. package/dist/mcp-data/registry/table.json +111 -6
  75. package/dist/react/components.d.ts +2 -0
  76. package/dist/react/components.js +2 -0
  77. package/dist/react/ds-select.d.ts +2 -1
  78. package/dist/react/ds-select.js +2 -1
  79. package/dist/react/ds-table-saved-views.d.ts +17 -0
  80. package/dist/react/ds-table-saved-views.js +19 -0
  81. package/dist/react/ds-table-toolbar.d.ts +9 -0
  82. package/dist/react/ds-table-toolbar.js +12 -0
  83. package/dist/react/ds-table.d.ts +2 -1
  84. package/dist/react/ds-table.js +2 -1
  85. package/dist/styles/table.css +12 -0
  86. package/dist/types/components/Select/Select.d.ts +7 -0
  87. package/dist/types/components/Select/index.d.ts +1 -1
  88. package/dist/types/components/Table/Table.d.ts +19 -1
  89. package/dist/types/components/Table/index.d.ts +1 -1
  90. package/dist/types/components/Table/table-data-mode-switcher.d.ts +9 -0
  91. package/dist/types/components/Table/table-types.d.ts +5 -0
  92. package/dist/types/components/TableSavedViews/TableSavedViews.d.ts +61 -0
  93. package/dist/types/components/TableSavedViews/index.d.ts +2 -0
  94. package/dist/types/components/TableSavedViews/table-saved-views-types.d.ts +24 -0
  95. package/dist/types/components/TableToolbar/TableToolbar.d.ts +6 -0
  96. package/dist/types/components.d.ts +232 -4
  97. package/dist/types/utils/choice-list-parts.d.ts +1 -0
  98. package/dist/types/utils/choice-list.d.ts +8 -1
  99. package/package.json +1 -1
  100. package/dist/components/p-BAgjMUt3.js.map +0 -1
  101. package/dist/components/p-BKWgofxz.js +0 -2
  102. package/dist/components/p-mLRtp5A4.js +0 -2
  103. package/dist/components/p-mLRtp5A4.js.map +0 -1
  104. package/dist/components/p-tR8INOIN.js +0 -2
  105. package/dist/components/p-tR8INOIN.js.map +0 -1
  106. /package/dist/components/{p-B5um-ps9.js.map → p-BCg_6ErW.js.map} +0 -0
  107. /package/dist/components/{p-DQUxg6Si.js.map → p-BmWWU20X.js.map} +0 -0
  108. /package/dist/components/{p-BAebDW3a.js.map → p-BuGGwWmt.js.map} +0 -0
  109. /package/dist/components/{p-BmqfTAXM.js.map → p-Bv1CFHgD.js.map} +0 -0
  110. /package/dist/components/{p--VFa9x3k.js.map → p-C-Zgq_Fx.js.map} +0 -0
  111. /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
- /** Once one option needs supporting text, every row keeps the same two-line structure. */
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[];
@@ -7233,6 +7233,7 @@
7233
7233
  "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
7234
  "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
7235
  "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.",
7236
+ "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
7237
  "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
7238
  "While the popup is open, the trigger holds the pressed interaction wash without changing its resting foreground or selected-value treatment.",
7238
7239
  "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 +7259,7 @@
7258
7259
  "Assign options, sections, and multiple-mode array values through JavaScript properties because arrays and objects cannot be represented safely as attributes."
7259
7260
  ],
7260
7261
  "react": [
7261
- "Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, and onDsOptionAction."
7262
+ "Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, onDsOptionAction, and onDsOptionSubtextAction."
7262
7263
  ],
7263
7264
  "angular": [
7264
7265
  "Import DsSelect and SelectValueAccessor when integrating with Angular Forms; bind options and sections as properties."
@@ -7445,6 +7446,10 @@
7445
7446
  {
7446
7447
  "name": "dsOptionAction",
7447
7448
  "detail": "SelectOptionActionDetail"
7449
+ },
7450
+ {
7451
+ "name": "dsOptionSubtextAction",
7452
+ "detail": "SelectOptionSubtextActionDetail"
7448
7453
  }
7449
7454
  ],
7450
7455
  "slots": [],
@@ -8842,7 +8847,7 @@
8842
8847
  "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
8848
  "useWhen": [
8844
8849
  "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 an opted-in table-owned column customizer while retaining ownership of the data query, catalog, and persistence.",
8850
+ "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
8851
  "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
8852
  ],
8848
8853
  "avoidWhen": [
@@ -8856,6 +8861,8 @@
8856
8861
  "component:ds-skeleton",
8857
8862
  "component:ds-loader",
8858
8863
  "component:ds-pagination",
8864
+ "component:ds-table-toolbar",
8865
+ "component:ds-table-saved-views",
8859
8866
  "component:ds-bar-action",
8860
8867
  "component:ds-button-unfilled",
8861
8868
  "component:ds-menu",
@@ -8868,6 +8875,7 @@
8868
8875
  ],
8869
8876
  "accessibility": [
8870
8877
  "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.",
8878
+ "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
8879
  "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
8880
  "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.",
8873
8881
  "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.",
@@ -8877,7 +8885,7 @@
8877
8885
  "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
8886
  ],
8879
8887
  "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 a trailing Customize table Menu trigger and requires caption visibility. 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.",
8888
+ "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
8889
  "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
8890
  "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
8891
  "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.",
@@ -8895,7 +8903,7 @@
8895
8903
  "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
8904
  "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
8905
  "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.",
8906
+ "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
8907
  "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
8908
  "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
8909
  "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 +8969,18 @@
8961
8969
  "type": "TableDataMode",
8962
8970
  "required": false
8963
8971
  },
8972
+ "dataModeMenuLabel": {
8973
+ "type": "string",
8974
+ "required": false
8975
+ },
8976
+ "dataModeSwitcher": {
8977
+ "type": "boolean",
8978
+ "required": false
8979
+ },
8980
+ "dataModeSwitcherLabel": {
8981
+ "type": "string",
8982
+ "required": false
8983
+ },
8964
8984
  "displayedCount": {
8965
8985
  "type": "number | undefined",
8966
8986
  "required": false
@@ -9041,6 +9061,10 @@
9041
9061
  "type": "string[]",
9042
9062
  "required": false
9043
9063
  },
9064
+ "infiniteModeLabel": {
9065
+ "type": "string",
9066
+ "required": false
9067
+ },
9044
9068
  "loadIdentity": {
9045
9069
  "type": "string | number",
9046
9070
  "required": false
@@ -9081,6 +9105,10 @@
9081
9105
  "type": "TablePaginationState | null",
9082
9106
  "required": false
9083
9107
  },
9108
+ "paginationModeLabel": {
9109
+ "type": "string",
9110
+ "required": false
9111
+ },
9084
9112
  "resultSummaryLabel": {
9085
9113
  "type": "string",
9086
9114
  "required": false
@@ -9143,6 +9171,10 @@
9143
9171
  "name": "dsColumnsConfigChange",
9144
9172
  "detail": "TableColumnsConfigChangeDetail"
9145
9173
  },
9174
+ {
9175
+ "name": "dsDataModeChange",
9176
+ "detail": "TableDataModeChangeDetail"
9177
+ },
9146
9178
  {
9147
9179
  "name": "dsGroupCollapseChange",
9148
9180
  "detail": "TableGroupCollapseChangeDetail"
@@ -9187,6 +9219,7 @@
9187
9219
  "registryDependencies": [
9188
9220
  "button-unfilled",
9189
9221
  "checkbox",
9222
+ "divider",
9190
9223
  "empty-state",
9191
9224
  "icon",
9192
9225
  "loader",
@@ -9198,6 +9231,244 @@
9198
9231
  "tooltip"
9199
9232
  ]
9200
9233
  },
9234
+ {
9235
+ "name": "table-saved-views",
9236
+ "title": "TableSavedViews",
9237
+ "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.",
9238
+ "type": "registry:ui",
9239
+ "meta": {
9240
+ "library": "@ds-mo/ui",
9241
+ "distribution": "npm",
9242
+ "storybook": "https://zainadeel.github.io/compomo/?path=/story/table-saved-views",
9243
+ "source": "src/wc/components/TableSavedViews/TableSavedViews.tsx",
9244
+ "intentStatus": "complete",
9245
+ "intent": {
9246
+ "audience": "general",
9247
+ "status": "stable",
9248
+ "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.",
9249
+ "useWhen": [
9250
+ "A table workspace lets people recall and manage named combinations of table controls.",
9251
+ "Several products need the same saved-view interaction while retaining different view payloads and storage systems."
9252
+ ],
9253
+ "avoidWhen": [
9254
+ "The choices do not represent restorable table configurations.",
9255
+ "The application expects the component to serialize filters, grouping, sorting, columns, pagination, or product-specific state."
9256
+ ],
9257
+ "commonlyComposedWith": [
9258
+ "component:ds-table-toolbar",
9259
+ "component:ds-table",
9260
+ "component:ds-select",
9261
+ "component:ds-menu",
9262
+ "component:ds-modal"
9263
+ ],
9264
+ "patterns": [
9265
+ "pattern:menu-trigger"
9266
+ ],
9267
+ "accessibility": [
9268
+ "The primary control retains combobox semantics and exposes a direct accessible name.",
9269
+ "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.",
9270
+ "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."
9271
+ ],
9272
+ "states": [
9273
+ "views, value, and dirty are controlled. Selection, create, save, discard, rename, and remove events communicate intent and never mutate application records.",
9274
+ "The component owns only transient interaction state: the contextual menu, naming dialog, draft name, duplicate-name validation, and focus restoration.",
9275
+ "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."
9276
+ ],
9277
+ "responsiveBehavior": [
9278
+ "The control remains a single toolbar item and relies on Select, Menu, and Modal collision and viewport behavior.",
9279
+ "Place it in the leading region of ds-table-toolbar so narrow table headers preserve the expected control order."
9280
+ ],
9281
+ "frameworkCaveats": {
9282
+ "customElements": [
9283
+ "Assign views through the JavaScript property and update value after handling dsViewChange."
9284
+ ],
9285
+ "react": [
9286
+ "Keep view records and serialized table configuration in application state; update controlled props in response to the component events."
9287
+ ],
9288
+ "angular": [
9289
+ "Import the generated DsTableSavedViews adapter and bind views, value, and dirty; handle event.detail for selection and mutations."
9290
+ ]
9291
+ },
9292
+ "references": [
9293
+ {
9294
+ "label": "Storybook review states",
9295
+ "path": "src/wc/components/TableSavedViews/TableSavedViews.stories.ts"
9296
+ },
9297
+ {
9298
+ "label": "Toolbar composition owner",
9299
+ "path": "src/wc/components/TableToolbar/TableToolbar.agent.json"
9300
+ }
9301
+ ]
9302
+ },
9303
+ "props": {
9304
+ "createLabel": {
9305
+ "type": "string",
9306
+ "required": false
9307
+ },
9308
+ "defaultViewId": {
9309
+ "type": "string",
9310
+ "required": false
9311
+ },
9312
+ "defaultViewLabel": {
9313
+ "type": "string",
9314
+ "required": false
9315
+ },
9316
+ "dirty": {
9317
+ "type": "boolean",
9318
+ "required": false
9319
+ },
9320
+ "label": {
9321
+ "type": "string",
9322
+ "required": false
9323
+ },
9324
+ "triggerLabel": {
9325
+ "type": "string",
9326
+ "required": false
9327
+ },
9328
+ "value": {
9329
+ "type": "string",
9330
+ "required": false
9331
+ },
9332
+ "views": {
9333
+ "type": "TableSavedView[]",
9334
+ "required": false
9335
+ }
9336
+ },
9337
+ "events": [
9338
+ {
9339
+ "name": "dsViewChange",
9340
+ "detail": "TableSavedViewChangeDetail"
9341
+ },
9342
+ {
9343
+ "name": "dsViewCreate",
9344
+ "detail": "TableSavedViewCreateDetail"
9345
+ },
9346
+ {
9347
+ "name": "dsViewDiscard",
9348
+ "detail": "TableSavedViewDiscardDetail"
9349
+ },
9350
+ {
9351
+ "name": "dsViewRemove",
9352
+ "detail": "TableSavedViewRemoveDetail"
9353
+ },
9354
+ {
9355
+ "name": "dsViewRename",
9356
+ "detail": "TableSavedViewRenameDetail"
9357
+ },
9358
+ {
9359
+ "name": "dsViewSave",
9360
+ "detail": "TableSavedViewSaveDetail"
9361
+ }
9362
+ ],
9363
+ "slots": [],
9364
+ "exports": {
9365
+ "customElement": "ds-table-saved-views",
9366
+ "react": "DsTableSavedViews",
9367
+ "angular": "DsTableSavedViews"
9368
+ }
9369
+ },
9370
+ "dependencies": [
9371
+ "@ds-mo/ui",
9372
+ "@ds-mo/tokens"
9373
+ ],
9374
+ "registryDependencies": [
9375
+ "button-filled",
9376
+ "button-unfilled",
9377
+ "field",
9378
+ "input",
9379
+ "menu",
9380
+ "modal",
9381
+ "select"
9382
+ ]
9383
+ },
9384
+ {
9385
+ "name": "table-toolbar",
9386
+ "title": "TableToolbar",
9387
+ "description": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
9388
+ "type": "registry:ui",
9389
+ "meta": {
9390
+ "library": "@ds-mo/ui",
9391
+ "distribution": "npm",
9392
+ "storybook": "https://zainadeel.github.io/compomo/?path=/story/table-toolbar",
9393
+ "source": "src/wc/components/TableToolbar/TableToolbar.tsx",
9394
+ "intentStatus": "complete",
9395
+ "intent": {
9396
+ "audience": "general",
9397
+ "status": "stable",
9398
+ "summary": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
9399
+ "useWhen": [
9400
+ "Several table pages repeat the same leading discovery controls and trailing result-shaping controls.",
9401
+ "A ds-table header slot needs consistent control spacing, alignment, grouping, and narrow-width overflow without moving product behavior into the table."
9402
+ ],
9403
+ "avoidWhen": [
9404
+ "The controls do not operate on a table or structured result set.",
9405
+ "The application expects the toolbar to define filters, saved views, grouping choices, persistence, or data transformations.",
9406
+ "Only one standalone control is present and needs no grouped toolbar semantics."
9407
+ ],
9408
+ "commonlyComposedWith": [
9409
+ "component:ds-table",
9410
+ "component:ds-table-saved-views",
9411
+ "component:ds-input",
9412
+ "component:ds-filter-menu",
9413
+ "component:ds-button-unfilled"
9414
+ ],
9415
+ "patterns": [],
9416
+ "accessibility": [
9417
+ "The component exposes a named toolbar while each slotted control retains its own accessible name and native keyboard behavior.",
9418
+ "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.",
9419
+ "Tab order follows authored DOM order. The toolbar does not add roving focus because it may contain heterogeneous form and popup controls."
9420
+ ],
9421
+ "states": [
9422
+ "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.",
9423
+ "Either region may be empty. The populated region continues to occupy the available width without adding placeholder chrome."
9424
+ ],
9425
+ "responsiveBehavior": [
9426
+ "The two control groups stay on one line and horizontally scroll when their complete controls no longer fit.",
9427
+ "The scrollbar is visually suppressed without removing touch, trackpad, mouse-wheel, or keyboard scrolling from the overflow container.",
9428
+ "Trailing controls remain grouped after leading controls; the toolbar does not collapse controls into an application-specific overflow menu."
9429
+ ],
9430
+ "frameworkCaveats": {
9431
+ "customElements": [
9432
+ "Project controls through slot=leading or slot=trailing and provide a label that names their table context when Table controls is insufficient."
9433
+ ],
9434
+ "react": [
9435
+ "Set slot=leading or slot=trailing on each child control; keep values and event handlers in the application."
9436
+ ],
9437
+ "angular": [
9438
+ "Set slot=leading or slot=trailing on each child control and import the generated DsTableToolbar adapter alongside those controls."
9439
+ ]
9440
+ },
9441
+ "references": [
9442
+ {
9443
+ "label": "Storybook review states",
9444
+ "path": "src/wc/components/TableToolbar/TableToolbar.stories.ts"
9445
+ },
9446
+ {
9447
+ "label": "Table composition owner",
9448
+ "path": "src/wc/components/Table/Table.agent.json"
9449
+ }
9450
+ ]
9451
+ },
9452
+ "props": {
9453
+ "label": {
9454
+ "type": "string",
9455
+ "required": false
9456
+ }
9457
+ },
9458
+ "events": [],
9459
+ "slots": [],
9460
+ "exports": {
9461
+ "customElement": "ds-table-toolbar",
9462
+ "react": "DsTableToolbar",
9463
+ "angular": "DsTableToolbar"
9464
+ }
9465
+ },
9466
+ "dependencies": [
9467
+ "@ds-mo/ui",
9468
+ "@ds-mo/tokens"
9469
+ ],
9470
+ "registryDependencies": []
9471
+ },
9201
9472
  {
9202
9473
  "name": "tag",
9203
9474
  "title": "Tag",