@ds-mo/ui 14.6.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.
- package/dist/.package-ready.json +1 -1
- package/dist/agent-patterns.json +6 -6
- package/dist/agent.json +316 -21
- package/dist/angular/ds-menu.d.ts +7 -1
- package/dist/angular/ds-menu.js +5 -2
- 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 +7 -1
- package/dist/angular/ds-table.js +10 -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-agent-questionnaire.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- 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-button-unfilled.js +1 -1
- package/dist/components/ds-card-chart.js +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-code-block.js +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-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-actions.js +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-scroller.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-mobile-sheet-nav.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-nav.js +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tools.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-C7-ylLcB.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-BiTwXttN.js.map +1 -0
- package/dist/components/{p-C5230yJY.js → p-BmWWU20X.js} +2 -2
- package/dist/components/{p-K_vg9Eng.js → p-BuGGwWmt.js} +2 -2
- package/dist/components/{p-DL12lNtv.js → p-Bv1CFHgD.js} +2 -2
- package/dist/components/{p-CDEME0Uc.js → p-C-L4InQ0.js} +2 -2
- package/dist/components/{p-BGQUiJuJ.js → p-C-Zgq_Fx.js} +2 -2
- package/dist/components/{p-BykcjUd6.js → p-C1jsgfeh.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-BFDKKBYh.js → p-CoQSB3tl.js} +2 -2
- package/dist/components/{p-CCpJcSTE.js → p-CqbMoVDQ.js} +2 -2
- package/dist/components/{p-DJ-n-gyr.js → p-CvwtYbmh.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/components/{p-os90t2-f.js → p-D5VglrfF.js} +2 -2
- package/dist/components/{p-BX-R5EhL.js → p-D5bPuNiF.js} +2 -2
- package/dist/components/{p-DTf90AyI.js → p-bQm3gfr1.js} +2 -2
- package/dist/components/{p-CTTDiW33.js → p-c_5SXjwx.js} +2 -2
- package/dist/components/p-c_5SXjwx.js.map +1 -0
- package/dist/docs/components.json +951 -20
- package/dist/lib/utils/choice-list.d.ts +8 -1
- package/dist/mcp-data/registry/button-unfilled.json +6 -6
- package/dist/mcp-data/registry/menu.json +40 -12
- package/dist/mcp-data/registry/registry.json +321 -20
- 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 +188 -11
- package/dist/react/components.d.ts +2 -0
- package/dist/react/components.js +2 -0
- package/dist/react/ds-menu.d.ts +2 -1
- package/dist/react/ds-menu.js +2 -1
- 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 +3 -1
- package/dist/react/ds-table.js +3 -1
- package/dist/styles/table.css +34 -1
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +4 -2
- package/dist/types/components/Menu/Menu.d.ts +18 -1
- package/dist/types/components/Menu/menu-reorder.d.ts +21 -0
- package/dist/types/components/Menu/menu-types.d.ts +12 -0
- 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 +46 -1
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/components/Table/table-column-customizer.d.ts +33 -0
- package/dist/types/components/Table/table-data-mode-switcher.d.ts +9 -0
- package/dist/types/components/Table/table-types.d.ts +10 -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 +274 -8
- 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-3r4TfcZX.js +0 -2
- package/dist/components/p-3r4TfcZX.js.map +0 -1
- package/dist/components/p-BAgjMUt3.js.map +0 -1
- package/dist/components/p-CRi7P5gQ.js +0 -2
- package/dist/components/p-CRi7P5gQ.js.map +0 -1
- package/dist/components/p-CTTDiW33.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-C7-ylLcB.js.map → p-BCg_6ErW.js.map} +0 -0
- /package/dist/components/{p-C5230yJY.js.map → p-BmWWU20X.js.map} +0 -0
- /package/dist/components/{p-K_vg9Eng.js.map → p-BuGGwWmt.js.map} +0 -0
- /package/dist/components/{p-DL12lNtv.js.map → p-Bv1CFHgD.js.map} +0 -0
- /package/dist/components/{p-CDEME0Uc.js.map → p-C-L4InQ0.js.map} +0 -0
- /package/dist/components/{p-BGQUiJuJ.js.map → p-C-Zgq_Fx.js.map} +0 -0
- /package/dist/components/{p-BykcjUd6.js.map → p-C1jsgfeh.js.map} +0 -0
- /package/dist/components/{p-BFDKKBYh.js.map → p-CoQSB3tl.js.map} +0 -0
- /package/dist/components/{p-CCpJcSTE.js.map → p-CqbMoVDQ.js.map} +0 -0
- /package/dist/components/{p-DJ-n-gyr.js.map → p-CvwtYbmh.js.map} +0 -0
- /package/dist/components/{p-os90t2-f.js.map → p-D5VglrfF.js.map} +0 -0
- /package/dist/components/{p-BX-R5EhL.js.map → p-D5bPuNiF.js.map} +0 -0
- /package/dist/components/{p-DTf90AyI.js.map → p-bQm3gfr1.js.map} +0 -0
package/dist/.package-ready.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"package":"@ds-mo/ui","version":"14.
|
|
1
|
+
{"schemaVersion":1,"package":"@ds-mo/ui","version":"14.8.0","components":72,"digest":"e0f698a341e8a2d2099382d71e58d815c87bf021f8fb302a5a42cff1c75ddb5a","completedAt":"2026-08-21T03:30:13.970Z"}
|
package/dist/agent-patterns.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"package": "@ds-mo/ui",
|
|
4
|
-
"packageVersion": "14.
|
|
4
|
+
"packageVersion": "14.8.0",
|
|
5
5
|
"kind": "patterns",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
@@ -451,16 +451,16 @@
|
|
|
451
451
|
"The application synchronizes one open boolean to the trigger's expanded prop and Menu.open.",
|
|
452
452
|
"An open popup is a transient pressed state, not a selected one. The trigger holds only its pressed wash for the popup's rendered lifecycle from expanded alone, without changing foreground, so never also set isActive to represent an open menu.",
|
|
453
453
|
"Menu owns popup placement and keyboard navigation; the application never calculates popup coordinates or applies positional CSS.",
|
|
454
|
-
"On dsSelect, update the selected value, close the Menu, and restore focus to the trigger.",
|
|
454
|
+
"On dsSelect from a command or single-selection row, update the selected value, close the Menu, and restore focus to the trigger.",
|
|
455
|
+
"Switch rows and reorderable rows report dsSelect or dsReorder without closing; replace the items array from those events.",
|
|
455
456
|
"On dsClose, synchronize the application open state to false."
|
|
456
457
|
],
|
|
457
458
|
"accessibility": [
|
|
458
459
|
"A button either has a menu or is a menu, and the trigger's variant selects between the two shapes.",
|
|
459
460
|
"Has a menu: a label or icon-label action that opens a menu. Set hasMenu, which implies aria-haspopup of menu and renders the trailing chevron that communicates the popup. Both button primitives support this shape.",
|
|
460
|
-
"Is a menu: an icon-only
|
|
461
|
-
"Never pair hasMenu with an icon-only glyph that does not read as a menu on its own; there is no chevron to fall back on.",
|
|
461
|
+
"Is a menu: an icon-only control. Set hasMenu, which adds no chevron, so the glyph must convey the menu alone. Use Ellipses for generic more-options or overflow. Use a specific icon when the menu has a named purpose, such as Preferences for Customize table. Only ButtonUnfilled carries this shape, because the role is chrome rather than a primary action.",
|
|
462
462
|
"Set controls to the Menu id and expanded from the same open state passed to Menu.",
|
|
463
|
-
"Give an icon-only trigger an accessible name that states the role, such as More options, because no visible label or chevron carries it.",
|
|
463
|
+
"Give an icon-only trigger an accessible name that states the role, such as More options or Customize table, because no visible label or chevron carries it.",
|
|
464
464
|
"Use haspopup directly instead of hasMenu for a non-menu popup such as a listbox or dialog; those cases get no chevron.",
|
|
465
465
|
"Give Menu a concise menuLabel describing the available commands or views.",
|
|
466
466
|
"Set Menu.initialFocusVisible only when the trigger MouseEvent detail is zero, indicating keyboard activation.",
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
{
|
|
485
485
|
"path": "view-menu.html",
|
|
486
486
|
"language": "html",
|
|
487
|
-
"content": "<ds-button-unfilled\n id=\"view-menu-trigger\"\n label=\"View · Overview\"\n has-menu\n controls=\"view-menu\"\n></ds-button-unfilled>\n<ds-menu\n id=\"view-menu\"\n anchor-id=\"view-menu-trigger\"\n menu-label=\"Choose view\"\n></ds-menu>\n\n<!-- Overflow shape:
|
|
487
|
+
"content": "<ds-button-unfilled\n id=\"view-menu-trigger\"\n label=\"View · Overview\"\n has-menu\n controls=\"view-menu\"\n></ds-button-unfilled>\n<ds-menu\n id=\"view-menu\"\n anchor-id=\"view-menu-trigger\"\n menu-label=\"Choose view\"\n></ds-menu>\n\n<!-- Overflow shape: Ellipses means more options, so no chevron is added. -->\n<ds-button-unfilled\n id=\"row-menu-trigger\"\n variant=\"icon\"\n icon=\"Ellipses\"\n aria-label=\"More options\"\n has-menu\n controls=\"row-menu\"\n></ds-button-unfilled>\n<ds-menu\n id=\"row-menu\"\n anchor-id=\"row-menu-trigger\"\n menu-label=\"More options\"\n align=\"end\"\n></ds-menu>\n\n<!-- Named menu: a specific glyph when the menu is not generic overflow. -->\n<ds-button-unfilled\n id=\"customize-menu-trigger\"\n variant=\"icon\"\n icon=\"Preferences\"\n aria-label=\"Customize table\"\n has-menu\n controls=\"customize-menu\"\n></ds-button-unfilled>\n<ds-menu\n id=\"customize-menu\"\n anchor-id=\"customize-menu-trigger\"\n menu-label=\"Customize table\"\n align=\"end\"\n></ds-menu>"
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
"path": "view-menu.ts",
|
package/dist/agent.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"package": "@ds-mo/ui",
|
|
4
|
-
"packageVersion": "14.
|
|
4
|
+
"packageVersion": "14.8.0",
|
|
5
5
|
"kind": "components",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
@@ -1950,7 +1950,7 @@
|
|
|
1950
1950
|
"accessibility": [
|
|
1951
1951
|
"Provide an explicit accessible name for every icon-only action.",
|
|
1952
1952
|
"Set hasMenu when the button triggers a Menu; it implies aria-haspopup of menu. Pass controls with the Menu id and expanded from the same open state given to Menu. Expanded popup triggers hold only the pressed wash while open, without changing their resting foreground; expanded disclosure controls without popup semantics retain the normal resting appearance.",
|
|
1953
|
-
"Give an icon-only menu button an accessible name that states the role, such as More options, because no visible label or chevron carries it.",
|
|
1953
|
+
"Give an icon-only menu button an accessible name that states the role, such as More options or Customize table, because no visible label or chevron carries it.",
|
|
1954
1954
|
"Use haspopup directly for a non-menu popup such as a listbox or dialog; those cases get no chevron.",
|
|
1955
1955
|
"Use pressed only for a genuine toggle button; it supplies aria-pressed and dsChange intent. Use isActive only for owner-controlled visual emphasis inside a composite whose selection semantics live on the owner.",
|
|
1956
1956
|
"Treat notification dots as supplemental unread or status information; never use a dot as the sole state, meaning, or accessible name.",
|
|
@@ -1970,8 +1970,8 @@
|
|
|
1970
1970
|
"Rounded changes only the control radius to the half-radius treatment; it does not change hierarchy, size, variant, or interaction semantics.",
|
|
1971
1971
|
"Physical press scaling is on by default. Disable it only when an owning composite must keep child or background geometry fixed; hover and pressed interaction washes remain available.",
|
|
1972
1972
|
"Icon and icon-label loading replace the icon in place. Label-only loading centers the loader while preserving the button's measured width.",
|
|
1973
|
-
"hasMenu covers two distinct menu-button shapes and the variant selects between them. With label or icon-label the action has a menu, and a trailing chevron carries the affordance. With icon the button is a menu
|
|
1974
|
-
"Because the icon-only shape has no chevron, its glyph must convey the menu on its own
|
|
1973
|
+
"hasMenu covers two distinct menu-button shapes and the variant selects between them. With label or icon-label the action has a menu, and a trailing chevron carries the affordance. With icon the button is a menu and no chevron is added.",
|
|
1974
|
+
"Because the icon-only shape has no chevron, its glyph must convey the menu on its own. Use Ellipses for a generic more-options or overflow control. Use a specific icon when the menu has a named purpose, such as Preferences for Customize table.",
|
|
1975
1975
|
"An open popup is a transient pressed state rather than a selected one. While expanded is true and haspopup or hasMenu identifies a popup, the pressed wash is held for the popup's complete rendered lifecycle and survives hover without promoting foreground or selected fill, including when chrome opts out of selected fills with activeFill set to false. Expanded disclosure buttons without popup semantics remain visually neutral."
|
|
1976
1976
|
],
|
|
1977
1977
|
"responsiveBehavior": [
|
|
@@ -4486,15 +4486,15 @@
|
|
|
4486
4486
|
"tag": "ds-menu",
|
|
4487
4487
|
"name": "menu",
|
|
4488
4488
|
"title": "Menu",
|
|
4489
|
-
"summary": "Anchored action menu with flat commands, grouped sections, single-selection choices, supplemental notification dots or trailing tags, switches, and destructive actions.",
|
|
4489
|
+
"summary": "Anchored action menu with flat commands, grouped sections, single-selection choices, supplemental notification dots or trailing tags, prefix icons, reorderable rows, switches, and destructive actions.",
|
|
4490
4490
|
"intentStatus": "complete",
|
|
4491
4491
|
"intent": {
|
|
4492
4492
|
"audience": "general",
|
|
4493
4493
|
"status": "stable",
|
|
4494
|
-
"summary": "Anchored action menu with flat commands, grouped sections, single-selection choices, supplemental notification dots or trailing tags, switches, and destructive actions.",
|
|
4494
|
+
"summary": "Anchored action menu with flat commands, grouped sections, single-selection choices, supplemental notification dots or trailing tags, prefix icons, reorderable rows, switches, and destructive actions.",
|
|
4495
4495
|
"useWhen": [
|
|
4496
4496
|
"A trigger reveals a short contextual list of commands or state-changing actions.",
|
|
4497
|
-
"Actions need grouping, mutually exclusive selected state, supplemental notification dots or trailing tags, switch rows, or destructive treatment."
|
|
4497
|
+
"Actions need grouping, mutually exclusive selected state, supplemental notification dots or trailing tags, prefix icons, reorderable switch or command rows, or destructive treatment."
|
|
4498
4498
|
],
|
|
4499
4499
|
"avoidWhen": [
|
|
4500
4500
|
"The user is selecting a value for a form field.",
|
|
@@ -4535,17 +4535,21 @@
|
|
|
4535
4535
|
"Single-selection menus use menuitemradio semantics and aria-checked on each row, but render no nested radio control; selected interaction fill and primary foreground provide the visual state.",
|
|
4536
4536
|
"A swatch-picker section changes the popup to a non-modal dialog so its radio group and ordinary preference buttons keep valid nested semantics; Tab moves between its controls, then leaves and closes at the popup boundary.",
|
|
4537
4537
|
"Use notification dots only as supplemental status and not as the sole indication of important information.",
|
|
4538
|
-
"Trailing tags are non-interactive supplemental content; their visible label remains part of the menu item's accessible name."
|
|
4538
|
+
"Trailing tags are non-interactive supplemental content; their visible label remains part of the menu item's accessible name.",
|
|
4539
|
+
"Reorderable rows keep a presentation Drag handle. Pointer drag on the handle and Alt+Arrow Up or Down emit dsReorder without closing. Pointer cancellation abandons the pending move. Hide-locked reorderable rows expose aria-disabled for the unavailable toggle but stay focusable so they can move; fully locked rows stay out of the contiguous reorderable run.",
|
|
4540
|
+
"Announce the new position through a polite live region that is a sibling of the role=menu popup, so the menu retains only permitted descendants."
|
|
4539
4541
|
],
|
|
4540
4542
|
"states": [
|
|
4541
4543
|
"The host owns open state and responds to selection and close events.",
|
|
4542
4544
|
"Use either flat items or sections, not both.",
|
|
4543
4545
|
"After dsSelect from a switch row, replace the items or sections array with updated switchValue data so the controlled indicator reflects the new state.",
|
|
4546
|
+
"After dsReorder, replace items or the affected section with the emitted items array. Menu never mutates order and does not close.",
|
|
4544
4547
|
"For selectionMode single, keep exactly one item isSelected and replace the items or sections array after dsSelect; Menu never mutates consumer-owned selection data.",
|
|
4545
4548
|
"Arrays, objects, and element anchors must be assigned as JavaScript properties.",
|
|
4546
4549
|
"Use a swatch-picker section for a small curated visual preference and apply dsSwatchSelect immediately without closing the popup.",
|
|
4547
4550
|
"Ordinary rows, section headings, and supporting text consume the Menu size. At xs, both the primary label and supporting text use caption metrics.",
|
|
4548
|
-
"A trailing tag resolves one density smaller than its menu row so it nests without changing row height. Do not combine tag, dot, and switch suffixes on one item."
|
|
4551
|
+
"A trailing tag resolves one density smaller than its menu row and uses the inset recipe so it nests without changing row height. Do not combine tag, dot, and switch suffixes on one item.",
|
|
4552
|
+
"Reorderable rows use the Drag prefix and ignore icon. Prefix and drag-handle icons inherit the choice-popup secondary foreground, matching Select. When any row in a section has an icon or is reorderable, the remaining rows get a spacer so labels align."
|
|
4549
4553
|
],
|
|
4550
4554
|
"responsiveBehavior": [
|
|
4551
4555
|
"Keep the default choice-cell anchor alignment so the first or last interactive row edge aligns with its trigger, matching Select; use popup-frame only for deliberate custom frame geometry.",
|
|
@@ -4554,13 +4558,14 @@
|
|
|
4554
4558
|
],
|
|
4555
4559
|
"frameworkCaveats": {
|
|
4556
4560
|
"customElements": [
|
|
4557
|
-
"Assign items, sections, and HTMLElement anchors as properties after the element is defined."
|
|
4561
|
+
"Assign items, sections, and HTMLElement anchors as properties after the element is defined.",
|
|
4562
|
+
"Handle dsReorder by replacing the items or section items with the emitted items array; Menu never mutates order."
|
|
4558
4563
|
],
|
|
4559
4564
|
"react": [
|
|
4560
|
-
"Pass arrays and objects as wrapper props and handle generated onDsSelect and onDsClose event props."
|
|
4565
|
+
"Pass arrays and objects as wrapper props and handle generated onDsSelect, onDsReorder, and onDsClose event props."
|
|
4561
4566
|
],
|
|
4562
4567
|
"angular": [
|
|
4563
|
-
"Use property bindings for arrays, objects, and anchors and event bindings for dsSelect and dsClose."
|
|
4568
|
+
"Use property bindings for arrays, objects, and anchors and event bindings for dsSelect, dsReorder, and dsClose."
|
|
4564
4569
|
]
|
|
4565
4570
|
},
|
|
4566
4571
|
"references": [
|
|
@@ -4650,6 +4655,10 @@
|
|
|
4650
4655
|
"name": "dsClose",
|
|
4651
4656
|
"detail": "void"
|
|
4652
4657
|
},
|
|
4658
|
+
{
|
|
4659
|
+
"name": "dsReorder",
|
|
4660
|
+
"detail": "MenuReorderDetail"
|
|
4661
|
+
},
|
|
4653
4662
|
{
|
|
4654
4663
|
"name": "dsSelect",
|
|
4655
4664
|
"detail": "MenuItemData"
|
|
@@ -4668,10 +4677,12 @@
|
|
|
4668
4677
|
},
|
|
4669
4678
|
"dependencies": [
|
|
4670
4679
|
"@ds-mo/ui",
|
|
4671
|
-
"@ds-mo/tokens"
|
|
4680
|
+
"@ds-mo/tokens",
|
|
4681
|
+
"@ds-mo/icons"
|
|
4672
4682
|
],
|
|
4673
4683
|
"componentDependencies": [
|
|
4674
4684
|
"badge",
|
|
4685
|
+
"icon",
|
|
4675
4686
|
"swatch-picker",
|
|
4676
4687
|
"switch",
|
|
4677
4688
|
"tag",
|
|
@@ -7040,6 +7051,7 @@
|
|
|
7040
7051
|
"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.",
|
|
7041
7052
|
"Option labels and the selected trigger label stay on one line and truncate when constrained. Option subtext may wrap to at most two lines.",
|
|
7042
7053
|
"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.",
|
|
7054
|
+
"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.",
|
|
7043
7055
|
"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.",
|
|
7044
7056
|
"While the popup is open, the trigger holds the pressed interaction wash without changing its resting foreground or selected-value treatment.",
|
|
7045
7057
|
"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.",
|
|
@@ -7065,7 +7077,7 @@
|
|
|
7065
7077
|
"Assign options, sections, and multiple-mode array values through JavaScript properties because arrays and objects cannot be represented safely as attributes."
|
|
7066
7078
|
],
|
|
7067
7079
|
"react": [
|
|
7068
|
-
"Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, and
|
|
7080
|
+
"Pass options or sections as wrapper props, set multiple for array values, and handle onDsChange, onDsClear, onDsOpenChange, onDsFooterAction, onDsOptionAction, and onDsOptionSubtextAction."
|
|
7069
7081
|
],
|
|
7070
7082
|
"angular": [
|
|
7071
7083
|
"Import DsSelect and SelectValueAccessor when integrating with Angular Forms; bind options and sections as properties."
|
|
@@ -7253,6 +7265,10 @@
|
|
|
7253
7265
|
{
|
|
7254
7266
|
"name": "dsOptionAction",
|
|
7255
7267
|
"detail": "SelectOptionActionDetail"
|
|
7268
|
+
},
|
|
7269
|
+
{
|
|
7270
|
+
"name": "dsOptionSubtextAction",
|
|
7271
|
+
"detail": "SelectOptionSubtextActionDetail"
|
|
7256
7272
|
}
|
|
7257
7273
|
],
|
|
7258
7274
|
"slots": []
|
|
@@ -8622,7 +8638,7 @@
|
|
|
8622
8638
|
"summary": "Semantic, controlled data table with durable visual primitives for cell geometry, grouping, sorting, multi-selection, sticky overflow, incremental loading, and top-level pagination.",
|
|
8623
8639
|
"useWhen": [
|
|
8624
8640
|
"A structured dataset needs native row and column relationships, optional one-level grouping, or comparable values across records.",
|
|
8625
|
-
"An application needs controlled sorting, loaded-row selection, infinite loading, or
|
|
8641
|
+
"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.",
|
|
8626
8642
|
"A product table needs a token-backed recipe whose individual header, group, row, cell, selection, state, and load-more layers remain easy to restyle."
|
|
8627
8643
|
],
|
|
8628
8644
|
"avoidWhen": [
|
|
@@ -8636,6 +8652,8 @@
|
|
|
8636
8652
|
"component:ds-skeleton",
|
|
8637
8653
|
"component:ds-loader",
|
|
8638
8654
|
"component:ds-pagination",
|
|
8655
|
+
"component:ds-table-toolbar",
|
|
8656
|
+
"component:ds-table-saved-views",
|
|
8639
8657
|
"component:ds-bar-action",
|
|
8640
8658
|
"component:ds-button-unfilled",
|
|
8641
8659
|
"component:ds-menu",
|
|
@@ -8647,7 +8665,9 @@
|
|
|
8647
8665
|
"pattern:menu-trigger"
|
|
8648
8666
|
],
|
|
8649
8667
|
"accessibility": [
|
|
8650
|
-
"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
|
|
8668
|
+
"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.",
|
|
8669
|
+
"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.",
|
|
8670
|
+
"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.",
|
|
8651
8671
|
"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.",
|
|
8652
8672
|
"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.",
|
|
8653
8673
|
"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.",
|
|
@@ -8656,8 +8676,9 @@
|
|
|
8656
8676
|
"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."
|
|
8657
8677
|
],
|
|
8658
8678
|
"states": [
|
|
8659
|
-
"Columns, rows, groups, grouping, sorting, selected row IDs, collapsed group IDs, dataMode, pagination, displayedCount, totalCount, and incremental-loading state are controlled inputs. Events communicate intent and never mutate those inputs. The optional header is one
|
|
8679
|
+
"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.",
|
|
8660
8680
|
"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.",
|
|
8681
|
+
"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.",
|
|
8661
8682
|
"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.",
|
|
8662
8683
|
"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.",
|
|
8663
8684
|
"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.",
|
|
@@ -8673,21 +8694,22 @@
|
|
|
8673
8694
|
"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.",
|
|
8674
8695
|
"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.",
|
|
8675
8696
|
"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.",
|
|
8676
|
-
"Explicit column sizes establish the horizontal overflow width; unsized columns share remaining space.",
|
|
8697
|
+
"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.",
|
|
8677
8698
|
"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.",
|
|
8678
8699
|
"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.",
|
|
8679
8700
|
"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."
|
|
8680
8701
|
],
|
|
8681
8702
|
"frameworkCaveats": {
|
|
8682
8703
|
"customElements": [
|
|
8683
|
-
"Assign columns, rows, groups, grouping, sort, selectedRowIds, collapsedGroupIds, pagination, displayedCount, and totalCount through JavaScript properties rather than HTML attribute strings.",
|
|
8704
|
+
"Assign columns, rows, groups, grouping, sort, selectedRowIds, collapsedGroupIds, hiddenColumnIds, columnOrder, pagination, displayedCount, and totalCount through JavaScript properties rather than HTML attribute strings.",
|
|
8684
8705
|
"When an action cell supplies items, the table opens one shared ds-menu from the Ellipses trigger; dsCellAction fires for the selected command, not for opening or closing the menu.",
|
|
8706
|
+
"When columnCustomizer is enabled, the Preferences trigger opens the same shared ds-menu of reorderable switch rows; toggling a switch or reordering a row emits dsColumnsConfigChange and does not close the menu.",
|
|
8685
8707
|
"Overflowing text tracks present one shared ds-tooltip with the omitted value. Unlimited wrapping tracks and disabled rows never show it. The tooltip is not linked with aria-describedby because the full string remains in the cell.",
|
|
8686
|
-
"Replace controlled property values in response to dsSortChange, dsGroupCollapseChange, dsSelectionChange, dsLoadMore, dsGroupLoadMore, and
|
|
8708
|
+
"Replace controlled property values in response to dsSortChange, dsGroupCollapseChange, dsSelectionChange, dsLoadMore, dsGroupLoadMore, dsPaginationChange, and dsColumnsConfigChange; route dsRowActivate in the application owner. When columnCustomizer is enabled, keep columns as the full catalog and replace hiddenColumnIds and columnOrder from that event."
|
|
8687
8709
|
],
|
|
8688
8710
|
"react": [
|
|
8689
8711
|
"Pass new array and state-object references when the controlled data or query state changes.",
|
|
8690
|
-
"Apply emitted sort, collapse, selection, action, pagination, or global/group loading detail to application state and perform data transformations in the owning layer."
|
|
8712
|
+
"Apply emitted sort, collapse, selection, action, pagination, column-customizer, or global/group loading detail to application state and perform data transformations in the owning layer."
|
|
8691
8713
|
],
|
|
8692
8714
|
"angular": [
|
|
8693
8715
|
"Bind complex table inputs as properties and update the controlled values from the corresponding output events.",
|
|
@@ -8723,6 +8745,14 @@
|
|
|
8723
8745
|
"type": "string[]",
|
|
8724
8746
|
"required": false
|
|
8725
8747
|
},
|
|
8748
|
+
"columnCustomizer": {
|
|
8749
|
+
"type": "boolean",
|
|
8750
|
+
"required": false
|
|
8751
|
+
},
|
|
8752
|
+
"columnOrder": {
|
|
8753
|
+
"type": "string[]",
|
|
8754
|
+
"required": false
|
|
8755
|
+
},
|
|
8726
8756
|
"columns": {
|
|
8727
8757
|
"type": "TableColumn[]",
|
|
8728
8758
|
"required": false
|
|
@@ -8731,6 +8761,18 @@
|
|
|
8731
8761
|
"type": "TableDataMode",
|
|
8732
8762
|
"required": false
|
|
8733
8763
|
},
|
|
8764
|
+
"dataModeMenuLabel": {
|
|
8765
|
+
"type": "string",
|
|
8766
|
+
"required": false
|
|
8767
|
+
},
|
|
8768
|
+
"dataModeSwitcher": {
|
|
8769
|
+
"type": "boolean",
|
|
8770
|
+
"required": false
|
|
8771
|
+
},
|
|
8772
|
+
"dataModeSwitcherLabel": {
|
|
8773
|
+
"type": "string",
|
|
8774
|
+
"required": false
|
|
8775
|
+
},
|
|
8734
8776
|
"displayedCount": {
|
|
8735
8777
|
"type": "number | undefined",
|
|
8736
8778
|
"required": false
|
|
@@ -8807,6 +8849,14 @@
|
|
|
8807
8849
|
"type": "string | number | undefined",
|
|
8808
8850
|
"required": false
|
|
8809
8851
|
},
|
|
8852
|
+
"hiddenColumnIds": {
|
|
8853
|
+
"type": "string[]",
|
|
8854
|
+
"required": false
|
|
8855
|
+
},
|
|
8856
|
+
"infiniteModeLabel": {
|
|
8857
|
+
"type": "string",
|
|
8858
|
+
"required": false
|
|
8859
|
+
},
|
|
8810
8860
|
"loadIdentity": {
|
|
8811
8861
|
"type": "string | number",
|
|
8812
8862
|
"required": false
|
|
@@ -8847,6 +8897,10 @@
|
|
|
8847
8897
|
"type": "TablePaginationState | null",
|
|
8848
8898
|
"required": false
|
|
8849
8899
|
},
|
|
8900
|
+
"paginationModeLabel": {
|
|
8901
|
+
"type": "string",
|
|
8902
|
+
"required": false
|
|
8903
|
+
},
|
|
8850
8904
|
"resultSummaryLabel": {
|
|
8851
8905
|
"type": "string",
|
|
8852
8906
|
"required": false
|
|
@@ -8905,6 +8959,14 @@
|
|
|
8905
8959
|
"name": "dsCellAction",
|
|
8906
8960
|
"detail": "TableCellActionDetail"
|
|
8907
8961
|
},
|
|
8962
|
+
{
|
|
8963
|
+
"name": "dsColumnsConfigChange",
|
|
8964
|
+
"detail": "TableColumnsConfigChangeDetail"
|
|
8965
|
+
},
|
|
8966
|
+
{
|
|
8967
|
+
"name": "dsDataModeChange",
|
|
8968
|
+
"detail": "TableDataModeChangeDetail"
|
|
8969
|
+
},
|
|
8908
8970
|
{
|
|
8909
8971
|
"name": "dsGroupCollapseChange",
|
|
8910
8972
|
"detail": "TableGroupCollapseChangeDetail"
|
|
@@ -8949,6 +9011,7 @@
|
|
|
8949
9011
|
"componentDependencies": [
|
|
8950
9012
|
"button-unfilled",
|
|
8951
9013
|
"checkbox",
|
|
9014
|
+
"divider",
|
|
8952
9015
|
"empty-state",
|
|
8953
9016
|
"icon",
|
|
8954
9017
|
"loader",
|
|
@@ -8960,6 +9023,238 @@
|
|
|
8960
9023
|
"tooltip"
|
|
8961
9024
|
]
|
|
8962
9025
|
},
|
|
9026
|
+
{
|
|
9027
|
+
"id": "component:ds-table-saved-views",
|
|
9028
|
+
"tag": "ds-table-saved-views",
|
|
9029
|
+
"name": "table-saved-views",
|
|
9030
|
+
"title": "TableSavedViews",
|
|
9031
|
+
"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.",
|
|
9032
|
+
"intentStatus": "complete",
|
|
9033
|
+
"intent": {
|
|
9034
|
+
"audience": "general",
|
|
9035
|
+
"status": "stable",
|
|
9036
|
+
"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.",
|
|
9037
|
+
"useWhen": [
|
|
9038
|
+
"A table workspace lets people recall and manage named combinations of table controls.",
|
|
9039
|
+
"Several products need the same saved-view interaction while retaining different view payloads and storage systems."
|
|
9040
|
+
],
|
|
9041
|
+
"avoidWhen": [
|
|
9042
|
+
"The choices do not represent restorable table configurations.",
|
|
9043
|
+
"The application expects the component to serialize filters, grouping, sorting, columns, pagination, or product-specific state."
|
|
9044
|
+
],
|
|
9045
|
+
"commonlyComposedWith": [
|
|
9046
|
+
"component:ds-table-toolbar",
|
|
9047
|
+
"component:ds-table",
|
|
9048
|
+
"component:ds-select",
|
|
9049
|
+
"component:ds-menu",
|
|
9050
|
+
"component:ds-modal"
|
|
9051
|
+
],
|
|
9052
|
+
"patterns": [
|
|
9053
|
+
"pattern:menu-trigger"
|
|
9054
|
+
],
|
|
9055
|
+
"accessibility": [
|
|
9056
|
+
"The primary control retains combobox semantics and exposes a direct accessible name.",
|
|
9057
|
+
"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.",
|
|
9058
|
+
"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."
|
|
9059
|
+
],
|
|
9060
|
+
"states": [
|
|
9061
|
+
"views, value, and dirty are controlled. Selection, create, save, discard, rename, and remove events communicate intent and never mutate application records.",
|
|
9062
|
+
"The component owns only transient interaction state: the contextual menu, naming dialog, draft name, duplicate-name validation, and focus restoration.",
|
|
9063
|
+
"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."
|
|
9064
|
+
],
|
|
9065
|
+
"responsiveBehavior": [
|
|
9066
|
+
"The control remains a single toolbar item and relies on Select, Menu, and Modal collision and viewport behavior.",
|
|
9067
|
+
"Place it in the leading region of ds-table-toolbar so narrow table headers preserve the expected control order."
|
|
9068
|
+
],
|
|
9069
|
+
"frameworkCaveats": {
|
|
9070
|
+
"customElements": [
|
|
9071
|
+
"Assign views through the JavaScript property and update value after handling dsViewChange."
|
|
9072
|
+
],
|
|
9073
|
+
"react": [
|
|
9074
|
+
"Keep view records and serialized table configuration in application state; update controlled props in response to the component events."
|
|
9075
|
+
],
|
|
9076
|
+
"angular": [
|
|
9077
|
+
"Import the generated DsTableSavedViews adapter and bind views, value, and dirty; handle event.detail for selection and mutations."
|
|
9078
|
+
]
|
|
9079
|
+
},
|
|
9080
|
+
"references": [
|
|
9081
|
+
{
|
|
9082
|
+
"label": "Storybook review states",
|
|
9083
|
+
"path": "src/wc/components/TableSavedViews/TableSavedViews.stories.ts"
|
|
9084
|
+
},
|
|
9085
|
+
{
|
|
9086
|
+
"label": "Toolbar composition owner",
|
|
9087
|
+
"path": "src/wc/components/TableToolbar/TableToolbar.agent.json"
|
|
9088
|
+
}
|
|
9089
|
+
]
|
|
9090
|
+
},
|
|
9091
|
+
"api": {
|
|
9092
|
+
"props": {
|
|
9093
|
+
"createLabel": {
|
|
9094
|
+
"type": "string",
|
|
9095
|
+
"required": false
|
|
9096
|
+
},
|
|
9097
|
+
"defaultViewId": {
|
|
9098
|
+
"type": "string",
|
|
9099
|
+
"required": false
|
|
9100
|
+
},
|
|
9101
|
+
"defaultViewLabel": {
|
|
9102
|
+
"type": "string",
|
|
9103
|
+
"required": false
|
|
9104
|
+
},
|
|
9105
|
+
"dirty": {
|
|
9106
|
+
"type": "boolean",
|
|
9107
|
+
"required": false
|
|
9108
|
+
},
|
|
9109
|
+
"label": {
|
|
9110
|
+
"type": "string",
|
|
9111
|
+
"required": false
|
|
9112
|
+
},
|
|
9113
|
+
"triggerLabel": {
|
|
9114
|
+
"type": "string",
|
|
9115
|
+
"required": false
|
|
9116
|
+
},
|
|
9117
|
+
"value": {
|
|
9118
|
+
"type": "string",
|
|
9119
|
+
"required": false
|
|
9120
|
+
},
|
|
9121
|
+
"views": {
|
|
9122
|
+
"type": "TableSavedView[]",
|
|
9123
|
+
"required": false
|
|
9124
|
+
}
|
|
9125
|
+
},
|
|
9126
|
+
"events": [
|
|
9127
|
+
{
|
|
9128
|
+
"name": "dsViewChange",
|
|
9129
|
+
"detail": "TableSavedViewChangeDetail"
|
|
9130
|
+
},
|
|
9131
|
+
{
|
|
9132
|
+
"name": "dsViewCreate",
|
|
9133
|
+
"detail": "TableSavedViewCreateDetail"
|
|
9134
|
+
},
|
|
9135
|
+
{
|
|
9136
|
+
"name": "dsViewDiscard",
|
|
9137
|
+
"detail": "TableSavedViewDiscardDetail"
|
|
9138
|
+
},
|
|
9139
|
+
{
|
|
9140
|
+
"name": "dsViewRemove",
|
|
9141
|
+
"detail": "TableSavedViewRemoveDetail"
|
|
9142
|
+
},
|
|
9143
|
+
{
|
|
9144
|
+
"name": "dsViewRename",
|
|
9145
|
+
"detail": "TableSavedViewRenameDetail"
|
|
9146
|
+
},
|
|
9147
|
+
{
|
|
9148
|
+
"name": "dsViewSave",
|
|
9149
|
+
"detail": "TableSavedViewSaveDetail"
|
|
9150
|
+
}
|
|
9151
|
+
],
|
|
9152
|
+
"slots": []
|
|
9153
|
+
},
|
|
9154
|
+
"exports": {
|
|
9155
|
+
"customElement": "ds-table-saved-views",
|
|
9156
|
+
"react": "DsTableSavedViews",
|
|
9157
|
+
"angular": "DsTableSavedViews"
|
|
9158
|
+
},
|
|
9159
|
+
"dependencies": [
|
|
9160
|
+
"@ds-mo/ui",
|
|
9161
|
+
"@ds-mo/tokens"
|
|
9162
|
+
],
|
|
9163
|
+
"componentDependencies": [
|
|
9164
|
+
"button-filled",
|
|
9165
|
+
"button-unfilled",
|
|
9166
|
+
"field",
|
|
9167
|
+
"input",
|
|
9168
|
+
"menu",
|
|
9169
|
+
"modal",
|
|
9170
|
+
"select"
|
|
9171
|
+
]
|
|
9172
|
+
},
|
|
9173
|
+
{
|
|
9174
|
+
"id": "component:ds-table-toolbar",
|
|
9175
|
+
"tag": "ds-table-toolbar",
|
|
9176
|
+
"name": "table-toolbar",
|
|
9177
|
+
"title": "TableToolbar",
|
|
9178
|
+
"summary": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
|
|
9179
|
+
"intentStatus": "complete",
|
|
9180
|
+
"intent": {
|
|
9181
|
+
"audience": "general",
|
|
9182
|
+
"status": "stable",
|
|
9183
|
+
"summary": "Data-agnostic companion layout for application-owned controls in a table header, with leading and trailing control groups and narrow-width horizontal overflow.",
|
|
9184
|
+
"useWhen": [
|
|
9185
|
+
"Several table pages repeat the same leading discovery controls and trailing result-shaping controls.",
|
|
9186
|
+
"A ds-table header slot needs consistent control spacing, alignment, grouping, and narrow-width overflow without moving product behavior into the table."
|
|
9187
|
+
],
|
|
9188
|
+
"avoidWhen": [
|
|
9189
|
+
"The controls do not operate on a table or structured result set.",
|
|
9190
|
+
"The application expects the toolbar to define filters, saved views, grouping choices, persistence, or data transformations.",
|
|
9191
|
+
"Only one standalone control is present and needs no grouped toolbar semantics."
|
|
9192
|
+
],
|
|
9193
|
+
"commonlyComposedWith": [
|
|
9194
|
+
"component:ds-table",
|
|
9195
|
+
"component:ds-table-saved-views",
|
|
9196
|
+
"component:ds-input",
|
|
9197
|
+
"component:ds-filter-menu",
|
|
9198
|
+
"component:ds-button-unfilled"
|
|
9199
|
+
],
|
|
9200
|
+
"patterns": [],
|
|
9201
|
+
"accessibility": [
|
|
9202
|
+
"The component exposes a named toolbar while each slotted control retains its own accessible name and native keyboard behavior.",
|
|
9203
|
+
"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.",
|
|
9204
|
+
"Tab order follows authored DOM order. The toolbar does not add roving focus because it may contain heterogeneous form and popup controls."
|
|
9205
|
+
],
|
|
9206
|
+
"states": [
|
|
9207
|
+
"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.",
|
|
9208
|
+
"Either region may be empty. The populated region continues to occupy the available width without adding placeholder chrome."
|
|
9209
|
+
],
|
|
9210
|
+
"responsiveBehavior": [
|
|
9211
|
+
"The two control groups stay on one line and horizontally scroll when their complete controls no longer fit.",
|
|
9212
|
+
"The scrollbar is visually suppressed without removing touch, trackpad, mouse-wheel, or keyboard scrolling from the overflow container.",
|
|
9213
|
+
"Trailing controls remain grouped after leading controls; the toolbar does not collapse controls into an application-specific overflow menu."
|
|
9214
|
+
],
|
|
9215
|
+
"frameworkCaveats": {
|
|
9216
|
+
"customElements": [
|
|
9217
|
+
"Project controls through slot=leading or slot=trailing and provide a label that names their table context when Table controls is insufficient."
|
|
9218
|
+
],
|
|
9219
|
+
"react": [
|
|
9220
|
+
"Set slot=leading or slot=trailing on each child control; keep values and event handlers in the application."
|
|
9221
|
+
],
|
|
9222
|
+
"angular": [
|
|
9223
|
+
"Set slot=leading or slot=trailing on each child control and import the generated DsTableToolbar adapter alongside those controls."
|
|
9224
|
+
]
|
|
9225
|
+
},
|
|
9226
|
+
"references": [
|
|
9227
|
+
{
|
|
9228
|
+
"label": "Storybook review states",
|
|
9229
|
+
"path": "src/wc/components/TableToolbar/TableToolbar.stories.ts"
|
|
9230
|
+
},
|
|
9231
|
+
{
|
|
9232
|
+
"label": "Table composition owner",
|
|
9233
|
+
"path": "src/wc/components/Table/Table.agent.json"
|
|
9234
|
+
}
|
|
9235
|
+
]
|
|
9236
|
+
},
|
|
9237
|
+
"api": {
|
|
9238
|
+
"props": {
|
|
9239
|
+
"label": {
|
|
9240
|
+
"type": "string",
|
|
9241
|
+
"required": false
|
|
9242
|
+
}
|
|
9243
|
+
},
|
|
9244
|
+
"events": [],
|
|
9245
|
+
"slots": []
|
|
9246
|
+
},
|
|
9247
|
+
"exports": {
|
|
9248
|
+
"customElement": "ds-table-toolbar",
|
|
9249
|
+
"react": "DsTableToolbar",
|
|
9250
|
+
"angular": "DsTableToolbar"
|
|
9251
|
+
},
|
|
9252
|
+
"dependencies": [
|
|
9253
|
+
"@ds-mo/ui",
|
|
9254
|
+
"@ds-mo/tokens"
|
|
9255
|
+
],
|
|
9256
|
+
"componentDependencies": []
|
|
9257
|
+
},
|
|
8963
9258
|
{
|
|
8964
9259
|
"id": "component:ds-tag",
|
|
8965
9260
|
"tag": "ds-tag",
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, ElementRef, NgZone, EventEmitter } from '@angular/co
|
|
|
2
2
|
import type { Components } from '@ds-mo/ui/components';
|
|
3
3
|
import type { DsMenuCustomEvent } from '@ds-mo/ui/components';
|
|
4
4
|
import type { MenuItemData as IDsMenuMenuItemData } from '@ds-mo/ui/components';
|
|
5
|
+
import type { MenuReorderDetail as IDsMenuMenuReorderDetail } from '@ds-mo/ui/components';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DsMenu {
|
|
7
8
|
protected z: NgZone;
|
|
@@ -10,9 +11,10 @@ export declare class DsMenu {
|
|
|
10
11
|
dsAfterClose: EventEmitter<DsMenuCustomEvent<void>>;
|
|
11
12
|
dsSelect: EventEmitter<DsMenuCustomEvent<IDsMenuMenuItemData>>;
|
|
12
13
|
dsSwatchSelect: EventEmitter<DsMenuCustomEvent<string>>;
|
|
14
|
+
dsReorder: EventEmitter<DsMenuCustomEvent<IDsMenuMenuReorderDetail>>;
|
|
13
15
|
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DsMenu, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DsMenu, "ds-menu", never, { "align": { "alias": "align"; "required": false; }; "alignOffset": { "alias": "alignOffset"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "anchorAlignment": { "alias": "anchorAlignment"; "required": false; }; "anchorId": { "alias": "anchorId"; "required": false; }; "initialFocusVisible": { "alias": "initialFocusVisible"; "required": false; }; "items": { "alias": "items"; "required": false; }; "menuLabel": { "alias": "menuLabel"; "required": false; }; "menuWidth": { "alias": "menuWidth"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "open": { "alias": "open"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "side": { "alias": "side"; "required": false; }; "sideOffset": { "alias": "sideOffset"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "dsClose": "dsClose"; "dsAfterClose": "dsAfterClose"; "dsSelect": "dsSelect"; "dsSwatchSelect": "dsSwatchSelect"; }, never, ["*"], true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DsMenu, "ds-menu", never, { "align": { "alias": "align"; "required": false; }; "alignOffset": { "alias": "alignOffset"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "anchorAlignment": { "alias": "anchorAlignment"; "required": false; }; "anchorId": { "alias": "anchorId"; "required": false; }; "initialFocusVisible": { "alias": "initialFocusVisible"; "required": false; }; "items": { "alias": "items"; "required": false; }; "menuLabel": { "alias": "menuLabel"; "required": false; }; "menuWidth": { "alias": "menuWidth"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "open": { "alias": "open"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "side": { "alias": "side"; "required": false; }; "sideOffset": { "alias": "sideOffset"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "dsClose": "dsClose"; "dsAfterClose": "dsAfterClose"; "dsSelect": "dsSelect"; "dsSwatchSelect": "dsSwatchSelect"; "dsReorder": "dsReorder"; }, never, ["*"], true, never>;
|
|
16
18
|
}
|
|
17
19
|
export declare interface DsMenu extends Components.DsMenu {
|
|
18
20
|
dsClose: EventEmitter<DsMenuCustomEvent<void>>;
|
|
@@ -25,4 +27,8 @@ export declare interface DsMenu extends Components.DsMenu {
|
|
|
25
27
|
* Emitted when a generic `swatch-picker` section option is chosen.
|
|
26
28
|
*/
|
|
27
29
|
dsSwatchSelect: EventEmitter<DsMenuCustomEvent<string>>;
|
|
30
|
+
/**
|
|
31
|
+
* Emitted after a pointer drop or keyboard move; Menu never mutates item order.
|
|
32
|
+
*/
|
|
33
|
+
dsReorder: EventEmitter<DsMenuCustomEvent<IDsMenuMenuReorderDetail>>;
|
|
28
34
|
}
|