@canonical/design-system 0.44.0 → 0.47.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/data/apps/component/file_tree.ttl +1 -1
- package/data/apps/component/inline_panel.ttl +17 -0
- package/data/apps/{subcomponent → component}/log.ttl +1 -1
- package/data/apps/component/navigation.ttl +1 -1
- package/data/apps/component/notification.ttl +1 -1
- package/data/apps/component/side_navigation.ttl +50 -6
- package/data/apps/group/notifications.ttl +1 -1
- package/data/apps/layout/application_layout.ttl +1 -1
- package/data/apps/layout/content_layout.ttl +2 -3
- package/data/apps/layout/empty_layout.ttl +1 -1
- package/data/apps/layout/empty_state.ttl +1 -1
- package/data/apps/layout/login_layout.ttl +12 -0
- package/data/apps/layout/side_panel_form_layout.ttl +13 -0
- package/data/apps/pattern/action_bar.ttl +2 -2
- package/data/apps/pattern/code_diff.ttl +1 -1
- package/data/apps/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +20 -91
- package/data/apps/pattern/destructive_modal.ttl +1 -1
- package/data/apps/pattern/drawer.ttl +1 -1
- package/data/apps/pattern/notification_center.ttl +2 -2
- package/data/apps/pattern/page_header.ttl +58 -0
- package/data/apps/pattern/side_panel.ttl +258 -10
- package/data/apps/subcomponent/data_table-action_bar.ttl +8 -8
- package/data/apps/subcomponent/data_table-body_cell.ttl +26 -26
- package/data/apps/subcomponent/data_table-group_header_row.ttl +8 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -13
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -11
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +10 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +15 -15
- package/data/apps/subcomponent/data_views-filters.ttl +13 -0
- package/data/apps/subcomponent/data_views-saved_views.ttl +13 -0
- package/data/apps/subcomponent/data_views-sort_panel.ttl +13 -0
- package/data/apps/subcomponent/drawer-content.ttl +1 -1
- package/data/apps/subcomponent/drawer-footer.ttl +1 -1
- package/data/apps/subcomponent/drawer-header.ttl +1 -1
- package/data/apps/subcomponent/side_navigation-content.ttl +13 -0
- package/data/apps/subcomponent/side_navigation-context_switcher.ttl +53 -0
- package/data/apps/subcomponent/side_navigation-item.ttl +80 -0
- package/data/apps/subcomponent/side_navigation-item_group.ttl +13 -0
- package/data/apps/subcomponent/side_panel-content.ttl +2 -2
- package/data/apps/subcomponent/side_panel-footer.ttl +196 -3
- package/data/apps/subcomponent/side_panel-header.ttl +212 -3
- package/data/apps_anbox/component/theme_switcher.ttl +1 -1
- package/data/apps_anbox/pattern/side_menu.ttl +0 -1
- package/data/{tagcategory/lpupstream.ttl → apps_identity.ttl} +2 -2
- package/data/apps_landscape/component/checkbox_group.ttl +24 -24
- package/data/apps_landscape/component/code_editor.ttl +35 -35
- package/data/apps_landscape/component/cron_schedule.ttl +4 -4
- package/data/apps_landscape/component/expandable_radio_group.ttl +47 -47
- package/data/apps_landscape/component/expandable_truncation.ttl +20 -20
- package/data/apps_landscape/component/form_section.ttl +4 -4
- package/data/apps_landscape/component/gpg_key_field.ttl +27 -27
- package/data/apps_landscape/component/grouped_select.ttl +25 -25
- package/data/apps_landscape/component/loading_state.ttl +8 -8
- package/data/apps_landscape/component/managed_file_input.ttl +18 -18
- package/data/apps_landscape/component/multi_select_field.ttl +50 -50
- package/data/apps_landscape/component/password_constraints.ttl +1 -1
- package/data/apps_landscape/component/progress_bar.ttl +20 -20
- package/data/apps_landscape/component/read_only_field.ttl +15 -15
- package/data/apps_landscape/component/search_help_popup.ttl +10 -10
- package/data/apps_landscape/component/search_query_editor.ttl +33 -33
- package/data/apps_landscape/component/tag_multi_select.ttl +9 -9
- package/data/apps_landscape/pattern/content_blocks.ttl +20 -20
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +37 -37
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +6 -6
- package/data/apps_landscape/pattern/form_field_help.ttl +28 -28
- package/data/apps_landscape/pattern/header_search_controls.ttl +41 -41
- package/data/apps_landscape/pattern/ignorable_notification.ttl +16 -16
- package/data/apps_landscape/pattern/information_grid.ttl +14 -14
- package/data/apps_landscape/pattern/instance_association.ttl +5 -5
- package/data/apps_landscape/pattern/process_flow.ttl +11 -11
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +32 -32
- package/data/apps_landscape/pattern/recurring_schedule.ttl +3 -3
- package/data/apps_landscape/pattern/responsive_action_group.ttl +12 -12
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +14 -14
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +11 -11
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +40 -40
- package/data/apps_landscape/pattern/sortable_list.ttl +14 -14
- package/data/apps_landscape/pattern/table_filter.ttl +57 -57
- package/data/apps_landscape/pattern/table_filter_chips.ttl +67 -67
- package/data/apps_landscape/pattern/table_pagination.ttl +63 -63
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +22 -22
- package/data/apps_landscape/subcomponent/bold_substring.ttl +4 -4
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +8 -8
- package/data/apps_landscape/subcomponent/label_with_description.ttl +14 -14
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +8 -8
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +7 -7
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +12 -12
- package/data/apps_launchpad/component/avatar.ttl +2 -2
- package/data/apps_launchpad/component/badge.ttl +2 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +1 -1
- package/data/apps_launchpad/component/button.ttl +2 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +4 -4
- package/data/apps_launchpad/component/combobox.ttl +2 -2
- package/data/apps_launchpad/component/drawer.ttl +4 -4
- package/data/apps_launchpad/component/modal.ttl +4 -12
- package/data/apps_launchpad/component/radio_input.ttl +5 -5
- package/data/apps_launchpad/component/select_input.ttl +1 -1
- package/data/apps_launchpad/component/switch.ttl +5 -5
- package/data/apps_launchpad/component/text_input.ttl +8 -8
- package/data/apps_launchpad/component/textarea_input.ttl +10 -10
- package/data/apps_launchpad/component/tooltip.ttl +3 -3
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +2 -2
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +4 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +1 -1
- package/data/apps_launchpad/subcomponent/modal-content.ttl +2 -2
- package/data/apps_lxd/component/back_link.ttl +1 -1
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +1 -1
- package/data/apps_lxd/component/doc_link.ttl +2 -2
- package/data/apps_lxd/component/meter.ttl +5 -5
- package/data/apps_lxd/component/output_field.ttl +2 -3
- package/data/apps_lxd/component/rename_header.ttl +15 -15
- package/data/apps_lxd/component/tab_links.ttl +4 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -2
- package/data/apps_lxd/view/network_topology.ttl +3 -4
- package/data/apps_portal/layout/details_view.ttl +0 -1
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +5 -6
- package/data/apps_workplace/component/org_chart.ttl +12 -0
- package/data/{apps_workplaceengineering → apps_workplace}/component/rule.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/skip_link.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/theme_switcher.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +4 -4
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
- package/data/apps_workplace/pattern/org_event_card.ttl +12 -0
- package/data/apps_workplace/subcomponent/multi_select_input.ttl +12 -0
- package/data/{apps_workplaceengineering.ttl → apps_workplace.ttl} +2 -2
- package/data/concept/Accessibility.ttl +9 -0
- package/data/concept/Breakpoints.ttl +9 -0
- package/data/concept/Design-tokens-Overview.ttl +10 -0
- package/data/concept/Filtering-patterns.ttl +10 -0
- package/data/concept/Foundations-Baseline.ttl +0 -1
- package/data/concept/Foundations-Color.ttl +10 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +0 -1
- package/data/concept/Foundations-Grid--Layout.ttl +2 -3
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +0 -1
- package/data/concept/Foundations-Spacing.ttl +0 -1
- package/data/concept/Foundations-Surfaces.ttl +1 -2
- package/data/concept/Foundations-Typography.ttl +1 -2
- package/data/concept/How-to-choose-between-question-mark-and-information-icon.ttl +10 -0
- package/data/concept/How-to-differentiate-types-of-UI-blocks-.ttl +3 -4
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +1 -2
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +0 -1
- package/data/concept/Intentional-friction.ttl +0 -1
- package/data/concept/Overflow.ttl +10 -0
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/layout/content_page_layout.ttl +13 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -1
- package/data/documentation/layout/library_layout.ttl +13 -0
- package/data/documentation/layout/search_page_layout.ttl +13 -0
- package/data/documentation/pattern/library_side_navigation.ttl +4 -4
- package/data/global/component/accordion.ttl +5 -184
- package/data/global/component/announcement.ttl +4 -4
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +7 -9
- package/data/global/component/breadcrumbs.ttl +8 -7
- package/data/global/component/button.ttl +7 -25
- package/data/global/component/button_link.ttl +1 -1
- package/data/global/component/card.ttl +3 -12
- package/data/global/component/checkbox_field.ttl +1 -1
- package/data/global/component/chip.ttl +5 -6
- package/data/global/component/choices_field.ttl +11 -3
- package/data/global/component/code_snippet.ttl +1 -2
- package/data/global/component/color_field.ttl +1 -1
- package/data/global/component/combobox_field.ttl +2 -18
- package/data/global/component/contextual_menu.ttl +4 -6
- package/data/global/component/date_field.ttl +1 -1
- package/data/global/component/date_time_field.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +3 -3
- package/data/global/component/dropdown_button.ttl +2 -3
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/heading.ttl +4 -4
- package/data/global/component/hidden_field.ttl +1 -1
- package/data/global/component/icon.ttl +3 -3
- package/data/global/component/icon_button.ttl +35 -0
- package/data/global/component/icon_in_container.ttl +7 -2
- package/data/global/component/inline_code.ttl +1 -1
- package/data/{apps → global}/component/key_value_pair.ttl +3 -3
- package/data/global/component/keyboard_key.ttl +1 -1
- package/data/global/{pattern/navigation.ttl → component/link.ttl} +3 -3
- package/data/global/component/links.ttl +12 -0
- package/data/global/component/markdown_editor_field.ttl +13 -0
- package/data/global/component/mode_switcher.ttl +2 -2
- package/data/global/component/notification_toast.ttl +1 -1
- package/data/global/component/number_field.ttl +1 -1
- package/data/global/component/pagination.ttl +2 -2
- package/data/global/component/password_field.ttl +1 -1
- package/data/global/component/phone_field.ttl +1 -1
- package/data/global/component/popover.ttl +1 -1
- package/data/global/component/query_builder.ttl +12 -0
- package/data/global/component/range_field.ttl +1 -81
- package/data/global/component/rating_field.ttl +1 -1
- package/data/global/component/relative_timestamp.ttl +2 -1
- package/data/global/component/rich_choices_field.ttl +1 -1
- package/data/global/component/rich_text_editor.ttl +12 -0
- package/data/global/component/rich_text_field.ttl +1 -1
- package/data/global/component/search_field.ttl +1 -1
- package/data/global/{subcomponent/markdown_input.ttl → component/segmented_control.ttl} +3 -3
- package/data/global/component/segmented_control_field.ttl +1 -1
- package/data/global/component/select_field.ttl +1 -1
- package/data/global/component/switch_field.ttl +1 -1
- package/data/global/component/table.ttl +4 -4
- package/data/global/component/tabs.ttl +1 -1
- package/data/global/component/tag.ttl +2 -2
- package/data/global/component/text_field.ttl +1 -1
- package/data/global/component/textarea_field.ttl +1 -1
- package/data/global/component/tile.ttl +2 -5
- package/data/global/component/time_field.ttl +1 -1
- package/data/global/component/timestamp.ttl +2 -1
- package/data/global/component/tooltip.ttl +78 -120
- package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
- package/data/global/component/tooltip_wrapper.ttl +71 -15
- package/data/global/group/buttons.ttl +1 -8
- package/data/global/group/cards.ttl +2 -6
- package/data/global/group/code_snippets.ttl +1 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +3 -3
- package/data/global/group/keyboard_keys.ttl +1 -1
- package/data/global/group/tiles.ttl +1 -1
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/elevated.ttl +1 -1
- package/data/global/modifier/information.ttl +1 -1
- package/data/global/modifier_family/_emphasis.ttl +1 -2
- package/data/global/modifier_family/_other.ttl +1 -2
- package/data/global/modifier_family/surface.ttl +1 -1
- package/data/global/pattern/description_list.ttl +1 -1
- package/data/global/pattern/field.ttl +1 -1
- package/data/global/{component/markdown_field.ttl → pattern/filter.ttl} +3 -3
- package/data/global/pattern/form_login.ttl +1 -1
- package/data/global/pattern/modal.ttl +5 -21
- package/data/global/pattern/stepper.ttl +1 -1
- package/data/global/pattern/table_of_contents.ttl +1 -1
- package/data/global/pattern/timeline.ttl +14 -19
- package/data/global/pattern/top_navigation.ttl +13 -0
- package/data/global/subcomponent/accordion-item.ttl +3 -156
- package/data/global/subcomponent/card-content.ttl +1 -1
- package/data/global/subcomponent/card-footer.ttl +1 -1
- package/data/global/subcomponent/card-header.ttl +1 -1
- package/data/global/subcomponent/card-image.ttl +2 -2
- package/data/global/subcomponent/card-thumbnail.ttl +1 -1
- package/data/global/subcomponent/chart_legend.ttl +1 -1
- package/data/global/subcomponent/chart_legend_item.ttl +1 -1
- package/data/global/subcomponent/checkbox_input.ttl +1 -1
- package/data/global/subcomponent/color_input.ttl +1 -1
- package/data/global/subcomponent/combobox_input.ttl +2 -18
- package/data/global/subcomponent/date_input.ttl +1 -1
- package/data/global/subcomponent/date_time_input.ttl +1 -1
- package/data/global/subcomponent/field-description.ttl +1 -1
- package/data/global/subcomponent/field-label.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/hidden_input.ttl +1 -1
- package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
- package/data/global/subcomponent/modal-content.ttl +1 -1
- package/data/global/subcomponent/modal-footer.ttl +3 -19
- package/data/global/subcomponent/modal-header.ttl +5 -21
- package/data/global/subcomponent/number_input.ttl +1 -1
- package/data/global/subcomponent/password_input.ttl +1 -1
- package/data/global/subcomponent/phone_input.ttl +1 -1
- package/data/global/subcomponent/radio_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +3 -84
- package/data/global/subcomponent/rating_input.ttl +1 -1
- package/data/global/subcomponent/rich_text_input.ttl +1 -1
- package/data/global/subcomponent/search_input.ttl +3 -4
- package/data/global/subcomponent/segmented_control_input.ttl +1 -1
- package/data/global/subcomponent/select_input.ttl +1 -1
- package/data/global/subcomponent/spinner.ttl +2 -2
- package/data/global/subcomponent/switch_input.ttl +1 -1
- package/data/global/{layout/form_layout.ttl → subcomponent/text_editor_input.ttl} +2 -2
- package/data/global/subcomponent/text_input.ttl +1 -1
- package/data/global/subcomponent/textarea_input.ttl +1 -1
- package/data/global/subcomponent/tile-content.ttl +1 -1
- package/data/global/subcomponent/time_input.ttl +1 -1
- package/data/global/subcomponent/timeline-content.ttl +2 -2
- package/data/global/subcomponent/timeline-event.ttl +5 -5
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +1 -1
- package/data/global/subcomponent/timeline-header.ttl +1 -1
- package/data/global/variant/tooltip_dense.ttl +87 -6
- package/data/global_dataviews/component/filter_button.ttl +487 -0
- package/data/global_dataviews/component/query_bar.ttl +1639 -0
- package/data/global_dataviews/component/query_chip.ttl +605 -0
- package/data/global_dataviews/group/query_chips.ttl +565 -0
- package/data/global_dataviews/modifier/exclusion.ttl +8 -0
- package/data/global_dataviews/modifier/inclusion.ttl +8 -0
- package/data/global_dataviews/modifier/match.ttl +8 -0
- package/data/global_dataviews/modifier/presence.ttl +8 -0
- package/data/global_dataviews/modifier/range.ttl +8 -0
- package/data/global_dataviews/modifier_family/condition.ttl +9 -0
- package/data/global_dataviews/subcomponent/query_chip-entry.ttl +186 -0
- package/data/global_dataviews/subcomponent/query_chip-segment.ttl +241 -0
- package/data/global_dataviews/subcomponent/query_input.ttl +1287 -0
- package/data/{tagcategory/documentation-stage.ttl → global_dataviews.ttl} +2 -2
- package/data/sites/component/store_card.ttl +92 -0
- package/data/sites/pattern/hero.ttl +295 -4
- package/data/{stores.ttl → sites_stores.ttl} +2 -2
- package/data/tag/designin-progress.ttl +9 -0
- package/data/tag/devbatch1.ttl +1 -1
- package/data/tag/devbatch2.ttl +1 -1
- package/data/tag/devbatch3.ttl +1 -1
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → devdone.ttl} +3 -2
- package/data/tag/devin-progress.ttl +9 -0
- package/data/tag/{stylesready.ttl → devin-review.ttl} +3 -3
- package/data/tag/devpre-approved.ttl +9 -0
- package/data/tag/{devreactapproved.ttl → devreactdone.ttl} +3 -3
- package/data/tag/devreactpreapproved.ttl +1 -1
- package/data/tag/{wpeinital-implementation.ttl → devsveltepreapproved.ttl} +3 -3
- package/data/tag/divergent.ttl +1 -1
- package/data/tag/docscomplete.ttl +1 -1
- package/data/tag/global-docs-missing.ttl +1 -1
- package/data/tag/has-no-global-entry.ttl +1 -1
- package/data/tag/implementationcomplete.ttl +9 -0
- package/data/tag/lpto-be-upstreamed.ttl +1 -1
- package/data/tag/lptriageblocked-reqs-design.ttl +1 -1
- package/data/tag/lptriageno-upstream.ttl +1 -1
- package/data/tag/lptriagereimplement-and-deprecate.ttl +1 -1
- package/data/tag/lptriagereimplement-and-keep.ttl +1 -1
- package/data/tag/lptriageupstream-and-deprecate.ttl +1 -1
- package/data/tag/{needsdefinition.ttl → needscoredocumentation.ttl} +3 -3
- package/data/tag/needsdesign.ttl +9 -0
- package/data/tag/{needsdocumentation.ttl → needsfulldocumentation.ttl} +3 -3
- package/data/tag/needsimplementation.ttl +9 -0
- package/data/tag/needstriage.ttl +1 -1
- package/data/tag/specialadoption-docs.ttl +1 -1
- package/data/tag/triagedbacklog.ttl +2 -2
- package/data/tag/triagedrejected.ttl +2 -2
- package/data/tag/upstream-candidate.ttl +1 -1
- package/data/tag/upstream-compliant.ttl +1 -1
- package/data/tag/waiting-for-delta-review.ttl +1 -1
- package/data/tag/workplaceinitial-implementation.ttl +9 -0
- package/data/tag/workplacetriageupstream-and-deprecate.ttl +9 -0
- package/data/tagcategory/design--documentation-status.ttl +6 -0
- package/data/tagcategory/implementationnotes.ttl +6 -0
- package/data/tagcategory/implementationstatus.ttl +6 -0
- package/data/tagcategory/implementationworkflow.ttl +6 -0
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +48 -7
- package/skills/adoption-a2-components/SKILL.md +125 -5
- package/skills/anatomy-author/SKILL.md +302 -95
- package/skills/anatomy-author/clarification-guidelines.md +150 -0
- package/skills/anatomy-author/completeness-checklist.md +224 -0
- package/skills/implement-component/SKILL.md +2 -2
- package/skills/map-journeys/SKILL.md +395 -0
- package/skills/map-journeys/journey-graph.example.html +298 -0
- package/skills/model-domains/SKILL.md +502 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +0 -13
- package/data/apps_workplaceengineering/pattern/group_card.ttl +0 -13
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +0 -14
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +0 -12
- package/data/concept/Question-mark-vs-information-icon.ttl +0 -11
- package/data/global/modifier/editable.ttl +0 -8
- package/data/global/modifier/focused.ttl +0 -8
- package/data/global/modifier/highlighted.ttl +0 -8
- package/data/global/modifier/loading.ttl +0 -8
- package/data/global/modifier/muted.ttl +0 -8
- package/data/global/modifier/wireframe.ttl +0 -8
|
@@ -10,36 +10,36 @@ ds:apps.subcomponent.data_table-group_header_row a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "Grouping organizes table rows into collapsible sections based on a shared column value. It makes categorical structure visible directly in the table, so users can scan, focus on, and act on subsets of data without relying on filters or manual scanning. Consider grouping when users already think about the data in categories. For example, a table of support cases is naturally understood by severity, and a table of deployments is naturally understood by environment. Grouping reflects that mental model in the table layout itself.\n\nGrouping works best with medium-to-large datasets where a flat list becomes hard to navigate. It is less useful when the dataset is small or when the user’s primary task is comparing individual rows across categories, since grouping separates rows into sections that make cross-group comparison harder.\n\n## When to use\n\n- Users frequently scan or act on rows by a categorical attribute such as status, priority, or region.\n- The dataset is large enough that a flat list makes it hard to find relevant rows.\n- The data has a natural hierarchy that users already think in.\n\n## When not to use\n\n- The dataset is small enough that users can scan all rows without difficulty.\n- The primary task is comparing individual rows across categories. Sorting is a better fit.\n- The table uses keyset pagination. Grouping is incompatible with keyset pagination. Refer to the pagination with groups section for details.\n- No column has a small, known set of values. Grouping only works with enumerated values.\n\n## What can be grouped\n\nGroups are always based on columns in the table. Rows are grouped by a value in a column.\n\n- Groups can **only** be created for columns with **enumerated values**, where the value can only be one out of a set of known options (for example, “In progress”, “Finished”, “Queued”).\n- Groups **cannot** be created for columns with unique data, because that would produce many groups containing only one row. For such columns, sorting is more appropriate.\n- Tables **can** be grouped by a column that is hidden. The column does not need to be visible for grouping to work.\n\nWhen designing a table, the designer chooses which columns support grouping.\n\n## Order of groups\n\nThe order of groups is **alphabetical by default**. The designer can choose a custom order if there is meaning associated with a specific sequence. For example, a Status column could be ordered from start to finish: “In progress”, “Success”, “Failed”.\n\n## Empty groups\n\nGroups with no items are not shown. If a group has no content, the group header row is hidden entirely.\n\n## One active grouping at a time\n\nA table can only be grouped by one column at a time. If the user activates grouping on a different column, the previous grouping is deactivated and replaced by the new one.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Choosing which column to group by\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-39979&t=2PBanDq6QA2yNcI2-4\n\nThe user selects the grouping column through the **table settings panel**.\n\n- Not all columns support grouping. Columns that do display a **“Group by” button** next to them in the settings panel.\n- Selecting the “Group by” button activates grouping for that column. The button enters an **active state**.\n- Since the table needs to be restructured and new data likely fetched, the table enters a **full skeleton loading state** while grouping is applied.\n- After loading completes, the table displays the grouped data.\n- Selecting an active “Group by” button again **deactivates** grouping. The table enters a loading state and then returns to an ungrouped view.\n- If the user selects a different column’s “Group by” button while one is already active, the previous grouping is deactivated and the new one is activated.\n- A table may offer multiple columns that support grouping.\n\n## Expand and collapse\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-50231&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-51205&t=2PBanDq6QA2yNcI2-4\n\nSelecting the group header row toggles the group between expanded and collapsed states. The chevron direction updates accordingly (down for open, right for closed).\n\nCollapsing a group hides its child rows, which means new rows may need to be loaded into the freed space. The loading behavior depends on how the group relates to pagination:\n\n- **Group spans multiple pages:** When a multi-page group is collapsed, skeleton loading placeholders appear beneath the collapsed group header while new data is fetched to fill the page.\n- **Group fits on the current page:** When a single-page group is collapsed, the loading state appears only toward the bottom of the page where new items load in. The other groups and their rows remain visible above.\n\nAfter loading completes, the collapsed group shows only its header row. The remaining space is filled with rows from subsequent groups.\n\n## Sorting within groups\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-49256&t=2PBanDq6QA2yNcI2-4\n\nWhen grouping is enabled, sorting applies **only within each group**. There is no sorting across groups.\n\n- **Without pagination (single-page groups):** Sorting is straightforward with no loading state needed. Rows within each group reorder immediately.\n- **With multi-page groups:** A loading state is required while new sorted rows are fetched. The group header remains visible with skeleton loading placeholders replacing the child rows until the sorted data arrives.\n\n## Pagination with groups\n\n\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42366&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42596&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-42826&t=2PBanDq6QA2yNcI2-4\n\nIf a group spans multiple pages, the **group header row is repeated** at the top of each subsequent page that contains rows from that group. For example, if the “In progress” group starts on page 1 and its last 3 items appear on page 2, the “In progress” group header row appears again at the top of page 2 above those 3 remaining rows.\n\nCollapsing a group hides rows, which changes the total page count:\n\n- While the table is in the loading state after a collapse, the **total number of pages also enters a skeleton loading state** because the page count needs to be recalculated.\n- After loading completes, the updated page count is displayed (for example, “of 20 pages” may become “of 19 pages” after collapsing a group).\n\nGrouping is **fundamentally incompatible with keyset pagination**. Keyset pagination filters rows based on the last seen value of the sort column, fetching only the next slice of individually ordered rows. Grouping requires the database to first collect all rows belonging to the same group, aggregate them, and return the collapsed result. These two concepts conflict because keyset pagination relies on a stable, unique cursor value per row, but grouped results are aggregated summaries that no longer correspond to individual rows with unique cursor values. A group may span multiple pages of the underlying data, so there is no reliable way to point a cursor at “the last group seen” using a row-level column value.\n\n\n\n## Selection with groups\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-52279&t=2PBanDq6QA2yNcI2-4\n\nThe checkbox in the group header row selects or deselects **all rows in the group**. All child row checkboxes within that group become checked or unchecked accordingly.\n\nIf only some rows within a group are selected, the group header checkbox displays a **“child selected” (indeterminate) state**, shown as a dash instead of a checkmark. This occurs both when the user deselects individual rows from a fully selected group and when the user selects individual rows without selecting the full group.\n\nGroups can span multiple pages. When the user selects a multi-page group via its header checkbox, **all items in the group are selected, including those not currently visible on the page**. The selection persists when navigating to subsequent pages. Rows belonging to the selected group on other pages also appear checked.\n\nBecause of this requirement, a table that has both selection and grouping **cannot use simple selection**. It must use **persistent selection**.\n\n### Backend dependency for group selection\n\nSelecting an entire group through the header checkbox likely requires backend support. When a group spans multiple pages, the frontend only has access to the rows currently loaded on the page. It cannot know the full set of items in the group without querying the backend. The backend needs to resolve which rows belong to the group and return them so the selection state is accurate across all pages.\n\nIf the backend does not support group-level selection, remove the checkbox from the group header row. Users can still select individual rows within a group, but they cannot select the entire group at once. This avoids a misleading interaction where the user expects all items in the group to be selected but only the currently loaded rows are affected.\n\nGrouping can also be used in tables that have no selection at all. In this case, no checkboxes appear on group headers or data rows. Only action icons (for example, edit or delete) appear on rows.\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "grouping-columns";
|
|
17
17
|
ds:summary "The set of columns that support grouping. Only columns with a small, known set of values are valid. The user selects which column to group by through the settings menu.";
|
|
18
18
|
ds:propertyType "list of text";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
19
|
+
ds:optional "true";
|
|
20
|
+
ds:constraints "Inherited from the data table. Each value must reference an enumerated-value column."
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "default-group-column";
|
|
24
24
|
ds:summary "The column the table is grouped by on initial load.";
|
|
25
25
|
ds:propertyType "text";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:optional "true";
|
|
27
|
+
ds:constraints "Inherited from the data table. Must reference a column in grouping-columns."
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "group-order";
|
|
31
31
|
ds:summary "The order in which groups are displayed. Use a custom order when there is meaning associated with a specific sequence (for example, a status column ordered from start to finish).";
|
|
32
32
|
ds:propertyType "choice";
|
|
33
|
-
ds:constraints "Inherited from the data table. When custom, a custom order must be provided.";
|
|
34
33
|
ds:optional "true";
|
|
34
|
+
ds:constraints "Inherited from the data table. When custom, a custom order must be provided.";
|
|
35
35
|
ds:defaultValue "alphabetical"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "groups-expanded-by-default";
|
|
39
39
|
ds:summary "Whether groups are expanded or collapsed on initial load.";
|
|
40
40
|
ds:propertyType "boolean";
|
|
41
|
-
ds:constraints "Inherited from the data table.";
|
|
42
41
|
ds:optional "true";
|
|
42
|
+
ds:constraints "Inherited from the data table.";
|
|
43
43
|
ds:defaultValue "true"
|
|
44
44
|
], [
|
|
45
45
|
a ds:Property;
|
|
@@ -53,8 +53,8 @@ ds:apps.subcomponent.data_table-group_header_row a ds:Subcomponent;
|
|
|
53
53
|
ds:name "show-group-checkbox";
|
|
54
54
|
ds:summary "Whether a selection checkbox is shown on the group header row. When the backend does not support group-level selection, set to false to avoid a misleading interaction. Users can still select individual rows within the group.";
|
|
55
55
|
ds:propertyType "boolean";
|
|
56
|
-
ds:constraints "Requires persistent selection when used with grouping. Requires backend support for group-level selection across pages.";
|
|
57
56
|
ds:optional "true";
|
|
57
|
+
ds:constraints "Requires persistent selection when used with grouping. Requires backend support for group-level selection across pages.";
|
|
58
58
|
ds:defaultValue "true when selection is enabled."
|
|
59
59
|
];
|
|
60
60
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -7,10 +7,10 @@ ds:apps.subcomponent.data_table-header_cell a ds:Subcomponent;
|
|
|
7
7
|
ds:summary "The header cell is the interactive column header element within a data table. It handles sorting, resizing, reordering, and pinning for its column. It is a sub-component and cannot function outside of a data table.\n\n\n\nThe header cell is distinct from the body cell. While the body cell displays data values and provides row-level interactions such as inline editing and row actions, the header cell is responsible for column-level controls that affect how the entire column behaves.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-5297&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4604-105392&t=2fO23I8WsyT0YVJ1-4";
|
|
10
|
-
ds:usage "
|
|
11
|
-
ds:guidelines "# Interactions\n\n## Sorting\n\n### Sort interaction cycle\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54052&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54942&t=2PBanDq6QA2yNcI2-4\n\nSorting follows a three-step cycle on the column header:\n\n1. **First select - sort ascending.** The sort icon changes from the neutral “sort both” (up-and-down arrows) icon to the “sort up” icon. The header cell receives focus (visible focus ring).\n2. **Second select - sort descending.** The icon changes from “sort up” to “sort down”. The arrow animates with a 180-degree clockwise rotation from up to down.\n3. **Third select - return to unsorted.** The icon returns to the neutral “sort both” state. The table data returns to its original unsorted order.\n\nAfter the cycle completes, the next interaction starts the cycle again from ascending.\n\n### Header cell states\n\n**Default (unsorted, not hovered)**\n\nNo sort icon is shown on sortable column headers in their resting state.\n\n**Hover**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4**\n\nWhen the user hovers a sortable column header, the header cell receives a hover background color and the cursor becomes a pointer. The “sort both” icon appears (if the column is not currently sorted) to indicate the column is sortable and interactive.\n\nIf the column is already sorted (ascending or descending), hovering still shows the pointer cursor, and the existing sort direction icon remains visible. The header stays interactive.\n\n**Active sort column (not focused)**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-55830&t=2PBanDq6QA2yNcI2-4**\n\nWhile a column is the active sort column, its header cell retains the hover-style background color persistently, even when the cell is no longer focused. The sort direction icon (up or down) remains visible. This persistent highlight communicates which column the table is currently sorted by.\n\n**Focused**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-56714&t=2PBanDq6QA2yNcI2-4**\n\nImmediately after selecting to sort, the header cell shows a blue focus ring in addition to the hover-style background and the sort direction icon.\n\n### Sorting with pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-57610&t=2PBanDq6QA2yNcI2-4\n\n**Offset pagination**\n\nIf the table is offset-paginated and the user is not on page 1, selecting a sort header triggers a modal warning before sorting is applied. The warning informs the user that sorting will reset pagination back to page 1. After the user confirms, the table is sorted and pagination resets to page 1.\n\n**Sorting with selection (simple selection)**\n\nIf the table has an active simple selection (not persistent selection), the modal also warns that the selection will be dropped. If both pagination reset and selection drop apply, the two messages are combined into a single warning.\n\n**Warning modal**\n\nThe modal has the title “Sorting will reset pagination and selection” and the body text: “Are you sure you want to sort? Sorting the table differently will reset the pagination and selection.” It contains a “Don’t ask again” checkbox, a “Cancel” button, and a primary action button labeled “Sort and reset the table”. The user can dismiss this warning permanently through the checkbox.\n\n**Keyset pagination**\n\nSorting is not practical on keyset-paginated tables. Sorting must be disabled entirely on keyset-paginated tables. If sorting is needed for a given use case, change the table to offset pagination instead.\n\n\n\n### Backend vs. frontend pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-58594&t=2PBanDq6QA2yNcI2-4\n\nWhen the table is paginated on the backend, selecting a sort column puts the table body into a loading/skeleton state while the newly sorted page is fetched. Column headers remain visible and readable during loading. Only the body rows show gray skeleton placeholder bars. Once the data is fetched, the table displays the sorted results.\n\nIf the table is paginated on the frontend, the sorted results can be shown immediately without a loading state.\n\n### Double row state\n\nIn a double row configuration (where columns are collapsed into stacked rows within cells due to a narrower viewport), a column can only be sorted by its first row.\n\nIf the second row was previously an independent column that was sorted, and the user then decreases the viewport so that column becomes the second row of a double row, the table remains sorted by that second-row value. The header it belongs to shows the sorting state. However, selecting that header cell sorts by the first row instead. After that point, sorting by the second row is no longer possible while in the double row state.\n\n## Column resizing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-60460&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-61348&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-62238&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-63126&t=2PBanDq6QA2yNcI2-4\n\n### Resize handles\n\nResize handles are thin vertical lines shown at the right edge of each column header. They indicate that a column can be resized. The interaction target for the resize handle is more generous than it appears, to make it easier to grab even for users with lower dexterity. The selectable area extends beyond the visible thin line.\n\nResize handles do not appear:\n\n- **After a checkbox column.** The checkbox column cannot be resized. No resize handle appears between the checkbox column and the first data column.\n- **After the last column.** There is no resize handle at the trailing edge of the last column.\n\n### Mouse interaction\n\n**Header cell hover**\n\nIf a cell header is hovered, the background color change does not extend to the resize handle. The hover background intentionally stops short of the resize handle area.\n\n**Resize handle hover**\n\nWhen the user hovers over the resize handle, the cursor changes to `col-resize`. After hovering the resize handle for 500 ms, the column line gets highlighted with a more visible vertical line extending from the header row down through all data rows. This provides a clear visual indicator of which column border will be resized.\n\n**Dragging**\n\nOnce the user starts dragging the resize handle, a blue “focus” line appears at the column’s edge to indicate which column border is being resized. The column resizes by the amount the user drags left or right. A column cannot be resized beyond its min-width. Only horizontal mouse position changes are taken into account. Vertical movement is ignored.\n\n**Double-select to reset**\n\nThe user can reset a column’s custom size back to the default growth behavior by double-selecting the resize handle.\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64014&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64911&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-65810&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-66694&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a resize**\n\nTo resize a column with the keyboard, the user must first focus the header cell (the header cell shows a visible focus ring).\n\nThe user then presses **Option/Alt + Left/Right arrow keys** to resize the column. While this combination is held, the resize column border indicator (the same one used for mouse interaction) is shown instead of the header cell focus ring.\n\n**Debounce behavior**\n\nThere is a slight debounce after the user stops pressing the keyboard combination, so that the UI does not jump between focus on the header cell and focus on the column border if the user pauses briefly (for example, stops for half a second) and then resumes resizing. After the debounce completes, focus returns to the header cell.\n\n**Reset with keyboard**\n\nIf the user presses **Option/Alt + 0** while a column header is focused, the column size resets to the default auto-sizing behavior.\n\n\n\n## Column reordering\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-67592&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-68484&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-69377&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-70279&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-71181&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72085&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72987&t=2PBanDq6QA2yNcI2-4\n\n### Mouse / pointer interaction\n\n**Hover state**\n\nIf the user hovers a header cell, it enters the hovered state and shows the sort icon. This is the entry point for initiating a drag.\n\n**Starting a drag**\n\nIf the user starts dragging, the hover effect on the column header disappears (including the sort both-ways icon). Instead the whole column receives a **3px focused outline**.\n\nAbove the dragged column, a **gray-translucent ghost column** appears. It follows the user’s pointer.\n\n- The **focused column** indicates what column is being dragged.\n- The **ghost column** indicates where the column is being dragged to.\n\n**Moving the ghost column**\n\nAs the user moves while dragging, the ghost column follows. A **drop zone indicator line** also appears. It indicates where the column would be dropped if the user released the column.\n\n**Drop position logic**\n\nWhere the column will be dropped is determined by the edges of the ghost column crossing the **horizontal midpoint** of a target column. For example, if the right edge of the ghost column has crossed a target column’s midpoint, the dragged column will be dropped to the right of that target column.\n\n**Releasing the column**\n\nWhen the user releases the ghost column, the actual column moves to where the drop zone indicator line indicated. **The move is animated.**\n\n**Completed state**\n\nAfter the column has been moved:\n\n- The drop zone indicator line disappears.\n- The column is no longer focused.\n- The ghost column disappears.\n\nThe table returns to a clean, resting state with the new column order.\n\n\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-73870&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-74768&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a keyboard move**\n\nTo move a column with the keyboard, the user must have a table header cell focused.\n\n**Key combination**\n\nIf a table header cell is focused and **Shift + Arrow Left/Right** is pressed, the column moves left or right (if it can).\n\n**Animation and focus retention**\n\nThe move is animated. The header cell **remains focused** after the move, allowing continued keyboard interaction without re-focusing.\n\n### Constraints\n\n**Immovable columns**\n\n- **Checkbox column:** The checkbox column cannot be moved, and no column can be moved before the checkbox column. It serves as the fixed left boundary.\n- **Action column:** The action column cannot be moved, and no column can be moved after the action column. It serves as the fixed right boundary.\n\n**Pinned column behavior during drag**\n\n- If a **pinned column** is dragged between non-pinned columns, that column becomes **non-pinned**.\n- If a **non-pinned column** is dragged to the left of a pinned column, it becomes **pinned** as well.\n\n## Column pinning\n\n### How to pin a column\n\nThe user pins a column through the **table settings panel** (opened from the gear icon on the far right of the header row). The settings panel displays a list of all columns, each with a pin icon and a delete icon. Selecting the pin icon on a column pins it.\n\nWhen the user **hovers** the pin icon, a tooltip appears explaining what the button does. The tooltip also states that pinning only takes effect when the table is horizontally scrolling, so users are not confused if pinning has no visible result on a table that fits within the viewport.\n\n### Column repositioning on pin\n\nIf the user pins a column that is not already adjacent to the left edge, the column is **moved to the left** into the pinned column group. The settings panel column order updates to reflect the new arrangement.";
|
|
10
|
+
ds:usage "\n\n### Sortable columns\n\nSortability is not enabled by default. The designer must explicitly enable sorting on each column. Enable sorting only for columns where the sort order is obvious and helpful to the user. For example, sorting on a MAC address column would not be obvious or helpful, so it should not be enabled. Similarly, utility columns such as an actions column (containing edit/delete buttons) should never be sortable.\n\n### Column resizing configuration\n\nResize handles are shown by default, but the designer can choose to hide them.\n\nEvery column in the data table has a header cell. Its primary purpose is to display the column label. The label should clearly and concisely describe the data shown in the column, so users can scan the header row and immediately understand what each column contains. Choose labels that are specific and unambiguous. For example, \"Last updated\" is more useful than \"Date\", and \"Assigned to\" is clearer than \"User\". Beyond labeling, the header cell also serves as the interface for column-level controls such as sorting, resizing, reordering, and pinning. The designer configures which of these features are available on each column. Not every column needs all capabilities. Focus on enabling the controls that match how users work with the data in that column.Columns that have been resized by the user count as fixed-size columns and no longer participate in the automatic growth behavior of the columns, unless the size is reset to auto (through double-selecting the resize handle or pressing Option + 0).\n\nThe fixed width of a resized column is persisted in browser storage across sessions.";
|
|
11
|
+
ds:guidelines "# Interactions\n\n## Sorting\n\n### Sort interaction cycle\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54052&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-54942&t=2PBanDq6QA2yNcI2-4\n\nSorting follows a three-step cycle on the column header:\n\n1. **First select - sort ascending.** The sort icon changes from the neutral “sort both” (up-and-down arrows) icon to the “sort up” icon. The header cell receives focus (visible focus ring).\n2. **Second select - sort descending.** The icon changes from “sort up” to “sort down”. The arrow animates with a 180-degree clockwise rotation from up to down.\n3. **Third select - return to unsorted.** The icon returns to the neutral “sort both” state. The table data returns to its original unsorted order.\n\nAfter the cycle completes, the next interaction starts the cycle again from ascending.\n\n\n\n### Header cell states\n\n**Default (unsorted, not hovered)**\n\nNo sort icon is shown on sortable column headers in their resting state.\n\n**Hover**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-53162&t=2PBanDq6QA2yNcI2-4**\n\nWhen the user hovers a sortable column header, the header cell receives a hover background color and the cursor becomes a pointer. The “sort both” icon appears (if the column is not currently sorted) to indicate the column is sortable and interactive.\n\nIf the column is already sorted (ascending or descending), hovering still shows the pointer cursor, and the existing sort direction icon remains visible. The header stays interactive.\n\n\n\n**Active sort column (not focused)**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-55830&t=2PBanDq6QA2yNcI2-4**\n\nWhile a column is the active sort column, its header cell retains the hover-style background color persistently, even when the cell is no longer focused. The sort direction icon (up or down) remains visible. This persistent highlight communicates which column the table is currently sorted by.\n\n\n\n**Focused**\n\n**https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-56714&t=2PBanDq6QA2yNcI2-4**\n\nImmediately after selecting to sort, the header cell shows a blue focus ring in addition to the hover-style background and the sort direction icon.\n\n### Sorting with pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-57610&t=2PBanDq6QA2yNcI2-4\n\n**Offset pagination**\n\nIf the table is offset-paginated and the user is not on page 1, selecting a sort header triggers a modal warning before sorting is applied. The warning informs the user that sorting will reset pagination back to page 1. After the user confirms, the table is sorted and pagination resets to page 1.\n\n**Sorting with selection (simple selection)**\n\nIf the table has an active simple selection (not persistent selection), the modal also warns that the selection will be dropped. If both pagination reset and selection drop apply, the two messages are combined into a single warning.\n\n**Warning modal**\n\nThe modal has the title “Sorting will reset pagination and selection” and the body text: “Are you sure you want to sort? Sorting the table differently will reset the pagination and selection.” It contains a “Don’t ask again” checkbox, a “Cancel” button, and a primary action button labeled “Sort and reset the table”. The user can dismiss this warning permanently through the checkbox.\n\n**Keyset pagination**\n\nSorting is not practical on keyset-paginated tables. Sorting must be disabled entirely on keyset-paginated tables. If sorting is needed for a given use case, change the table to offset pagination instead.\n\n\n\n### Backend vs. frontend pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-58594&t=2PBanDq6QA2yNcI2-4\n\nWhen the table is paginated on the backend, selecting a sort column puts the table body into a loading/skeleton state while the newly sorted page is fetched. Column headers remain visible and readable during loading. Only the body rows show gray skeleton placeholder bars. Once the data is fetched, the table displays the sorted results.\n\nIf the table is paginated on the frontend, the sorted results can be shown immediately without a loading state.\n\n### Double row state\n\nIn a double row configuration (where columns are collapsed into stacked rows within cells due to a narrower viewport), a column can only be sorted by its first row.\n\nIf the second row was previously an independent column that was sorted, and the user then decreases the viewport so that column becomes the second row of a double row, the table remains sorted by that second-row value. The header it belongs to shows the sorting state. However, selecting that header cell sorts by the first row instead. After that point, sorting by the second row is no longer possible while in the double row state.\n\n## Column resizing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-60460&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-61348&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-62238&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-63126&t=2PBanDq6QA2yNcI2-4\n\n### Resize handles\n\nResize handles are thin vertical lines shown at the right edge of each column header. They indicate that a column can be resized. The interaction target for the resize handle is more generous than it appears, to make it easier to grab even for users with lower dexterity. The selectable area extends beyond the visible thin line.\n\nResize handles do not appear:\n\n- **After a checkbox column.** The checkbox column cannot be resized. No resize handle appears between the checkbox column and the first data column.\n- **After the last column.** There is no resize handle at the trailing edge of the last column.\n\n### Mouse interaction\n\n**Header cell hover**\n\nIf a cell header is hovered, the background color change does not extend to the resize handle. The hover background intentionally stops short of the resize handle area.\n\n**Resize handle hover**\n\nWhen the user hovers over the resize handle, the cursor changes to `col-resize`. After hovering the resize handle for 500 ms, the column line gets highlighted with a more visible vertical line extending from the header row down through all data rows. This provides a clear visual indicator of which column border will be resized.\n\n**Dragging**\n\nOnce the user starts dragging the resize handle, a blue “focus” line appears at the column’s edge to indicate which column border is being resized. The column resizes by the amount the user drags left or right. A column cannot be resized beyond its min-width. Only horizontal mouse position changes are taken into account. Vertical movement is ignored.\n\n**Double-select to reset**\n\nThe user can reset a column’s custom size back to the default growth behavior by double-selecting the resize handle.\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64014&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-64911&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-65810&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-66694&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a resize**\n\nTo resize a column with the keyboard, the user must first focus the header cell (the header cell shows a visible focus ring).\n\nThe user then presses **Option/Alt + Left/Right arrow keys** to resize the column. While this combination is held, the resize column border indicator (the same one used for mouse interaction) is shown instead of the header cell focus ring.\n\n**Debounce behavior**\n\nThere is a slight debounce after the user stops pressing the keyboard combination, so that the UI does not jump between focus on the header cell and focus on the column border if the user pauses briefly (for example, stops for half a second) and then resumes resizing. After the debounce completes, focus returns to the header cell.\n\n**Reset with keyboard**\n\nIf the user presses **Option/Alt + 0** while a column header is focused, the column size resets to the default auto-sizing behavior.\n\n\n\n## Column reordering\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-67592&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-68484&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-69377&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-70279&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-71181&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72085&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-72987&t=2PBanDq6QA2yNcI2-4\n\n### Mouse / pointer interaction\n\n**Hover state**\n\nIf the user hovers a header cell, it enters the hovered state and shows the sort icon. This is the entry point for initiating a drag.\n\n**Starting a drag**\n\nIf the user starts dragging, the hover effect on the column header disappears (including the sort both-ways icon). Instead the whole column receives a **3px focused outline**.\n\nAbove the dragged column, a **gray-translucent ghost column** appears. It follows the user’s pointer.\n\n- The **focused column** indicates what column is being dragged.\n- The **ghost column** indicates where the column is being dragged to.\n\n**Moving the ghost column**\n\nAs the user moves while dragging, the ghost column follows. A **drop zone indicator line** also appears. It indicates where the column would be dropped if the user released the column.\n\n**Drop position logic**\n\nWhere the column will be dropped is determined by the edges of the ghost column crossing the **horizontal midpoint** of a target column. For example, if the right edge of the ghost column has crossed a target column’s midpoint, the dragged column will be dropped to the right of that target column.\n\n**Releasing the column**\n\nWhen the user releases the ghost column, the actual column moves to where the drop zone indicator line indicated. **The move is animated.**\n\n**Completed state**\n\nAfter the column has been moved:\n\n- The drop zone indicator line disappears.\n- The column is no longer focused.\n- The ghost column disappears.\n\nThe table returns to a clean, resting state with the new column order.\n\n\n\n### Keyboard interaction\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-73870&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-74768&t=2PBanDq6QA2yNcI2-4\n\n**Initiating a keyboard move**\n\nTo move a column with the keyboard, the user must have a table header cell focused.\n\n**Key combination**\n\nIf a table header cell is focused and **Shift + Arrow Left/Right** is pressed, the column moves left or right (if it can).\n\n**Animation and focus retention**\n\nThe move is animated. The header cell **remains focused** after the move, allowing continued keyboard interaction without re-focusing.\n\n### Constraints\n\n**Immovable columns**\n\n- **Checkbox column:** The checkbox column cannot be moved, and no column can be moved before the checkbox column. It serves as the fixed left boundary.\n- **Action column:** The action column cannot be moved, and no column can be moved after the action column. It serves as the fixed right boundary.\n\n**Pinned column behavior during drag**\n\n- If a **pinned column** is dragged between non-pinned columns, that column becomes **non-pinned**.\n- If a **non-pinned column** is dragged to the left of a pinned column, it becomes **pinned** as well.\n\n## Column pinning\n\n### How to pin a column\n\nThe user pins a column through the **table settings panel** (opened from the gear icon on the far right of the header row). The settings panel displays a list of all columns, each with a pin icon and a delete icon. Selecting the pin icon on a column pins it.\n\nWhen the user **hovers** the pin icon, a tooltip appears explaining what the button does. The tooltip also states that pinning only takes effect when the table is horizontally scrolling, so users are not confused if pinning has no visible result on a table that fits within the viewport.\n\n### Column repositioning on pin\n\nIf the user pins a column that is not already adjacent to the left edge, the column is **moved to the left** into the pinned column group. The settings panel column order updates to reflect the new arrangement.";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "label";
|
|
@@ -23,40 +23,40 @@ ds:apps.subcomponent.data_table-header_cell a ds:Subcomponent;
|
|
|
23
23
|
ds:summary "Whether the column header responds to sort interactions. Enable only for columns where the sort order is obvious and helpful to the user.";
|
|
24
24
|
ds:propertyType "boolean";
|
|
25
25
|
ds:optional "true";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:constraints "Not available on checkbox or action variants. Disabled entirely on keyset-paginated tables.";
|
|
27
|
+
ds:defaultValue "false"
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "resizable";
|
|
31
31
|
ds:summary "Whether the resize handle is shown at the right edge of the header cell.";
|
|
32
32
|
ds:propertyType "boolean";
|
|
33
33
|
ds:optional "true";
|
|
34
|
-
ds:
|
|
35
|
-
ds:
|
|
34
|
+
ds:constraints "Not available on checkbox or action variants.";
|
|
35
|
+
ds:defaultValue "true"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "reorderable";
|
|
39
39
|
ds:summary "Whether the column can be dragged to a new position through the header cell or the settings menu.";
|
|
40
40
|
ds:propertyType "boolean";
|
|
41
41
|
ds:optional "true";
|
|
42
|
-
ds:
|
|
43
|
-
ds:
|
|
42
|
+
ds:constraints "Checkbox and action columns are never reorderable.";
|
|
43
|
+
ds:defaultValue "true"
|
|
44
44
|
], [
|
|
45
45
|
a ds:Property;
|
|
46
46
|
ds:name "pinnable";
|
|
47
47
|
ds:summary "Whether the column can be pinned to the left side of the table through the settings menu.";
|
|
48
48
|
ds:propertyType "boolean";
|
|
49
49
|
ds:optional "true";
|
|
50
|
-
ds:
|
|
51
|
-
ds:
|
|
50
|
+
ds:constraints "Subject to smart pinning constraints. Pinning only takes effect during horizontal scrolling.";
|
|
51
|
+
ds:defaultValue "true"
|
|
52
52
|
], [
|
|
53
53
|
a ds:Property;
|
|
54
54
|
ds:name "sort-direction";
|
|
55
55
|
ds:summary "The current sort state of the column. Follows a three-step cycle: ascending, descending, unsorted.";
|
|
56
56
|
ds:propertyType "choice";
|
|
57
57
|
ds:optional "true";
|
|
58
|
-
ds:
|
|
59
|
-
ds:
|
|
58
|
+
ds:constraints "Only applies when sortable is true.";
|
|
59
|
+
ds:defaultValue "unsorted"
|
|
60
60
|
], [
|
|
61
61
|
a ds:Property;
|
|
62
62
|
ds:name "column-width";
|
|
@@ -4,43 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.subcomponent.data_table-pagination_bar a ds:Subcomponent;
|
|
6
6
|
ds:name "DataTable.PaginationBar";
|
|
7
|
-
ds:summary "The pagination bar is
|
|
7
|
+
ds:summary "The pagination bar is anchored to the bottom of the view and lets users move between pages of records. It supports offset and keyset pagination, chosen by the backend's pagination model, with shared controls that differ in what they expose. Use it for machine inventories, order lists and logs too large to load at once.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-6556&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4571-81816&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "Pagination splits a large dataset into discrete pages, loading and displaying only a subset of rows at a time. This reduces initial load time, keeps the interface responsive, and prevents the browser from rendering thousands of rows at once. Without pagination, the table loads the entire dataset upfront, which works for small, static datasets but becomes a performance and usability problem as the row count grows.\n\nThe decision to paginate depends on both the size of the dataset and how users interact with it. If users need to see all items at a glance or rely on browser search to find specific rows, pagination can get in the way. If the dataset is large, dynamic, or backend-driven, pagination is almost always the right choice.\n\n## When to use\n\n- The dataset contains more than a few dozen rows.\n- Data is fetched from a backend and loading all items at once would be slow or impractical.\n- Users work through data page by page rather than needing a complete view of all items simultaneously.\n- Users benefit from stable page positions as a reference point. Pagination gives users a sense of location within the dataset, making it easier to return to a previously seen item or communicate its position to others (for example, “it’s on page 3”).\n- The table supports sorting, filtering, or grouping that triggers new data fetches.\n\n## When not to use\n\n- The dataset is small and static, such as a configuration table with fewer than 20 rows.\n- Users need to see all items at once to compare or scan across the full set.\n- The table is used for display only and the full dataset is already available on the frontend.\n\n## Offset vs. keyset pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76133&t=2PBanDq6QA2yNcI2-4\n\nOffset pagination is for backends that support offset-based pagination. It provides full random-access navigation across pages.\n\nKeyset pagination is for backends that support keyset-based pagination. Because the backend cannot report a total item count or support arbitrary page jumps, the UI adapts accordingly.\n\n## Page-size options\n\nThe default page-size options are **50, 75, 100**. The designer can change these when the context demands different amounts. For example, a table displaying log entries or audit events may benefit from larger page sizes (such as 100, 250, 500) because users typically scan many rows quickly. A table displaying detailed records where each row requires careful reading may work better with smaller page sizes (such as 10, 25, 50) to avoid overwhelming the user.\n\n## Positioning\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76173&t=2PBanDq6QA2yNcI2-4\n\nThe pagination bar is **sticky** and always visible at the bottom of the table container, even when the table body is scrolled. This makes sure users can navigate between pages without scrolling to the bottom of the table first. On dedicated table pages, the pagination bar sits at the bottom of the page.\n\n**Border treatment** varies with scroll state:\n\n- **1px border** when there are no items scrolled underneath (content does not overflow).\n- **2px border** when there are items below the visible area (content overflows).\n\nWhen **multiple tables** appear on the same page, each table gets its own pagination bar that hugs the table’s content directly, rather than being pushed to the bottom of the page.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Page selector\n\nThe page selector allows the user to jump directly to a specific page without stepping through pages one at a time. It is a **browser-native dropdown** rather than a free-text input field. This avoids the need for input validation and error states inside a pagination bar, which are difficult to handle well. A dropdown restricts the user to valid inputs only. When the dropdown is focused, the user can still type a number and the dropdown selects the matching entry.\n\n## Navigation buttons\n\nIn offset pagination, four buttons are provided:\n\n- Jump to **first page** (double left arrow)\n- Go **one page back** (single left arrow)\n- Go **one page forward** (single right arrow)\n- Jump to **last page** (double right arrow)\n\nIn keyset pagination, only the previous and next buttons are shown.\n\nWhen an action is not possible, for example the previous-page button when the user is already on the first page, the button is **disabled**.\n\n## Keyset item count tooltip\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-76134&t=2PBanDq6QA2yNcI2-4\n\nA **tooltip** is available on hover over the item count summary in keyset pagination. It explains why no definite total can be given. This addresses potential user confusion about the “more than X items” messaging by clarifying that keyset pagination does not provide a total count.\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "pagination-mode";
|
|
17
17
|
ds:summary "The pagination strategy. Offset provides random-access page navigation with a page selector, jump-to-first, and jump-to-last buttons. Keyset supports forward and back navigation only and displays an approximate item count.";
|
|
18
18
|
ds:propertyType "choice";
|
|
19
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
20
|
ds:constraints "Inherited from the data table. Keyset pagination is incompatible with grouping and sorting.";
|
|
21
|
-
ds:
|
|
21
|
+
ds:defaultValue "offset"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "page-size-options";
|
|
25
25
|
ds:summary "The set of page sizes available in the page-size selector dropdown. The first value in the list is used as the default page size.";
|
|
26
26
|
ds:propertyType "list of text";
|
|
27
|
-
ds:
|
|
27
|
+
ds:optional "true";
|
|
28
28
|
ds:constraints "Inherited from the data table. Each value must be a positive integer.";
|
|
29
|
-
ds:
|
|
29
|
+
ds:defaultValue "50, 75, 100"
|
|
30
30
|
], [
|
|
31
31
|
a ds:Property;
|
|
32
32
|
ds:name "item-label";
|
|
33
33
|
ds:summary "A context-specific noun used in the item amount label and the item count summary in place of \"Items\" (for example, \"Machines\" or \"Orders\").";
|
|
34
34
|
ds:propertyType "text";
|
|
35
|
-
ds:
|
|
35
|
+
ds:optional "true";
|
|
36
36
|
ds:constraints "Inherited from the data table.";
|
|
37
|
-
ds:
|
|
37
|
+
ds:defaultValue "Items"
|
|
38
38
|
], [
|
|
39
39
|
a ds:Property;
|
|
40
40
|
ds:name "item-count-display";
|
|
41
41
|
ds:summary "How the total item count is shown. Offset pagination displays an exact total (for example, \"out of 942 items\"). Keyset pagination displays an approximate total (for example, \"of more than 150 items\") because the backend cannot report a definitive count. A tooltip on the keyset item count explains why no exact total is available.";
|
|
42
42
|
ds:propertyType "choice";
|
|
43
|
-
ds:
|
|
44
|
-
ds:
|
|
43
|
+
ds:optional "true";
|
|
44
|
+
ds:defaultValue "Determined by pagination-mode."
|
|
45
45
|
];
|
|
46
|
-
ds:parentComponent ds:apps.pattern.
|
|
46
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -8,45 +8,45 @@ ds:apps.subcomponent.data_table-persistent_selection a ds:Subcomponent;
|
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3340-7087&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4815-84027&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "The persistent selection panel supports workflows where users need to build up a selection of items across multiple table pages before performing a bulk action. Without it, users would lose their selection every time they navigate to a different page, sort, or filter. The panel makes the current selection visible and manageable at all times.\n\nIn enterprise applications, users often work with large datasets where the items they need to act on are not conveniently grouped on a single page. For example, a system administrator managing a fleet of machines may need to select specific instances across several pages to reassign them to a different team, apply a configuration change, or schedule maintenance. The persistent selection panel lets them browse through pages, pick items as they go, and review the full selection before committing to the action. Without persistent selection, this workflow would require the user to memorize or manually track which items they need, then act on them one page at a time.\n\n## When to use\n\n- Users need to select items across multiple table pages before performing a bulk action.\n- The dataset is large enough that relevant items are spread across different pages.\n- Users need to review and adjust their selection before committing to an action.\n\n## When not to use\n\n- All selectable items fit on a single table page. Simple selection is sufficient in this case.\n- The table does not support row selection at all.\n- Bulk actions are not a feature of the table.\n\n## Large selections\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78504&t=2PBanDq6QA2yNcI2-4\n\nFor tables with hundreds of thousands of items, users could potentially select a very large number. It would be impractical to show all of them in the compact panel. After a certain threshold, a warning message appears when the user scrolls to the bottom of the panel, telling them that the selection is too large to show inline and that they should use the expand function to view the full selection.\n\nIf there are performance concerns related to the number of selected items or frontend pagination of the selection, a hard limit on the number of items a user can select may need to be considered.";
|
|
11
|
-
ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=
|
|
11
|
+
ds:guidelines "# Interactions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3486-78505&t=2PBanDq6QA2yNcI2-4\n\n## Opening the panel\n\nSelecting the persistent selection button in the action bar opens the dark panel labeled “Current selection:” that shows the list of selected items.\n\n## Item display and ordering\n\nEach item in the panel shows its human-readable unique ID, usually the value from the first column (the name column). Each item has an “X” button to remove it individually from the selection. This per-row deselect behavior is the same in both the floating and expanded views.\n\nThe panel shows selected items in the order they were selected, with the most recently selected item on top.\n\n## Panel growth and scrolling\n\nAs the user selects more items, the panel grows in size until it reaches a maximum height. After that, the panel content becomes scrollable.\n\n## https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-69949&t=2PBanDq6QA2yNcI2-4\n\n\n\n## Expanded (popped out) view\n\nBefore performing a bulk action, a user might want to inspect their selection more closely, for example using the supporting information in other columns. Sometimes they might not remember the full picture of their selection based on the name column alone.\n\nTo support this, the action bar and persistent selection panel can be “popped out” into an expanded view that shows the selection as a full table with all columns visible. The transition between the floating action bar and the expanded view is animated. The smaller floating action bar visually transforms into the expanded modal-style selection and action bar in a seamless transition.\n\nThere are two ways to close the expanded view:\n\n1. **Collapse button** - selecting the decrease/collapse icon at the top right of the expanded panel returns it to the floating version. The same animated transition plays in reverse.\n2. **Persistent selection button** - selecting the persistent selection button closes the popped-out state entirely, returning to the floating version and also closing the panel.\n\nThe expanded view has a maximum height. Once reached, the table body becomes scrollable. The table cannot show more than 50 items per page. If there are more than 50 items in the selection, a simplified pagination control appears, allowing the user to page through the selection (for example, “of 4 pages” with forward/back navigation arrows).\n\n\n\nA prototype of the rough interaction of the collapse and expand of the panel can be found here: {\"Name\":\"Expand Action Bar Prototype\",\"Image\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/thumbnails/a3563251-6cd3-4486-9b57-4f3321524cee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ4GOSFWC3WM52WPH%2F20261122%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20261122T120000Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=9d8900f71153a009de0509612cb99513f4ed052da4f06aeff3ed5e6abf24ffcd\",\"outline\":true},\"Url\":{\"type\":\"urlref\",\"url\":\"https://www.figma.com/make/4V5OfFCOm2lYDgYnMVKxTl/Expand-Action-Bar-Prototype?t=hWsBoH4yq28uty6g-1\",\"name\":\"\"},\"Modified\":{\"type\":\"dt\",\"input\":\"5/21/2026 3:52:33 PM\",\"epoch\":1779371553.337,\"formatted\":\"5/21/2026\"},\"ModifiedBy\":{\"type\":\"obj\",\"value\":{\"Handle\":\"Maximilian Blazek\",\"Avatar\":{\"type\":\"imageurlref\",\"url\":\"https://s3-alpha.figma.com/profile/534b2668-e456-4568-98c9-60d645790fdc\",\"outline\":true}}},\"Label\":\"2356039340008127983\",\"CommentsCount\":0}\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-72617&t=2PBanDq6QA2yNcI2-4\n\n## Deselecting items\n\nUsers can deselect individual items by selecting the “X” button on each row in either the floating panel or the expanded view.\n\nSelecting the main deselect (X) button in the action bar deselects everything. If the expanded view is open, the modal closes, and the floating bar is also hidden since nothing remains selected.\n\nAfter the user deselects everything through the main deselect button, a toast notification appears with a message such as “Deselected everything by accident?” with an undo option. This toast disappears after 10 seconds. Proper accessibility needs to be provided for this toast.\n\n## Tooltips\n\nAll interactive selection elements have tooltips on hover:\n\nTable 6\n\n";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "unique-identifier-field";
|
|
17
17
|
ds:summary "The column or field used to identify each selected item in the panel. Usually the first column (the name column). The panel displays this value as the human-readable label for each selected item.";
|
|
18
18
|
ds:propertyType "text";
|
|
19
|
-
ds:
|
|
20
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
|
+
ds:constraints "Inherited from the data table."
|
|
21
21
|
], [
|
|
22
22
|
a ds:Property;
|
|
23
23
|
ds:name "max-selection-count";
|
|
24
24
|
ds:summary "A hard limit on the number of items a user can select. Use when there are performance concerns related to the number of selected items or frontend pagination of the selection.";
|
|
25
25
|
ds:propertyType "number";
|
|
26
|
-
ds:
|
|
27
|
-
ds:
|
|
26
|
+
ds:optional "true";
|
|
27
|
+
ds:constraints "Inherited from the data table. Must be a positive integer."
|
|
28
28
|
], [
|
|
29
29
|
a ds:Property;
|
|
30
30
|
ds:name "max-items-per-page";
|
|
31
31
|
ds:summary "The maximum number of selected items shown per page in the expanded view before simplified pagination controls appear.";
|
|
32
32
|
ds:propertyType "number";
|
|
33
|
-
ds:constraints "Must be a positive integer.";
|
|
34
33
|
ds:optional "true";
|
|
34
|
+
ds:constraints "Must be a positive integer.";
|
|
35
35
|
ds:defaultValue "50"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "undo-toast-duration";
|
|
39
39
|
ds:summary "How long the undo toast remains visible after the user deselects all items through the main deselect button.";
|
|
40
40
|
ds:propertyType "number";
|
|
41
|
-
ds:constraints "Must be a positive integer, in seconds.";
|
|
42
41
|
ds:optional "true";
|
|
42
|
+
ds:constraints "Must be a positive integer, in seconds.";
|
|
43
43
|
ds:defaultValue "10"
|
|
44
44
|
], [
|
|
45
45
|
a ds:Property;
|
|
46
46
|
ds:name "large-selection-threshold";
|
|
47
47
|
ds:summary "The number of selected items after which a warning message appears at the bottom of the compact panel, advising the user to use the expanded view. When not set, no threshold warning is shown.";
|
|
48
48
|
ds:propertyType "number";
|
|
49
|
-
ds:
|
|
50
|
-
ds:
|
|
49
|
+
ds:optional "true";
|
|
50
|
+
ds:constraints "Must be a positive integer."
|
|
51
51
|
];
|
|
52
52
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -10,56 +10,56 @@ ds:apps.subcomponent.data_table-settings_menu a ds:Subcomponent;
|
|
|
10
10
|
ds:usage "The settings menu gives users control over how the table is structured and displayed. It is enabled by default on every data table. It is the central place for adjusting column order, visibility, and pinning without leaving the table context. If any of these customization features are enabled on the table, the settings menu must be present to provide access to them. The settings menu is only hidden when the designer has actively disabled all customization features, making the table fully static.\n\nFor example, a network operations team may want to pin a status column and hide columns irrelevant to their role, while a capacity planning team viewing the same table may prioritize different columns entirely.\n\n## When to use\n\n- The table has enough columns that users benefit from hiding, reordering, or pinning them.\n- Different users or roles interact with the same table but care about different columns.\n- The table is a core part of the user’s daily workflow and they are likely to customize it over time.\n\n## When not to use\n\n- The designer has disabled all customization features (column reordering, pinning, and visibility). Only then can the settings menu be hidden.\n- The table is temporary or shown briefly, such as in a modal or a summary view, where customization adds no value.";
|
|
11
11
|
ds:guidelines "# Interactions\n\n## Button states\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-76790&t=2PBanDq6QA2yNcI2-4\n\n- **Hover** - the gear icon displays a hover effect. A tooltip appears (for example, “Open table settings”).\n- **Select** - selecting the gear icon opens the settings dropdown menu.\n\n## Column reordering through drag-and-drop\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78680&t=2PBanDq6QA2yNcI2-4\n\n\n\nUsers can reorder columns by dragging items in the settings menu. The first item corresponds to the first table column, the second to the second column, and so on.\n\n### Starting a drag\n\nThe user initiates a drag from the **drag handle area** on the left side of a menu item. When dragging begins:\n\n- The item being reordered receives a **3px focus outline** (border-primary color) and stays in its original position throughout the drag. This prevents items from shifting around during the interaction, which could lead to accidental misplacement.\n- A **“ghost item”** appears directly over the original item. The ghost has a gray background with opacity and a blue secondary border.\n\n### During the drag\n\n- The ghost item follows the cursor as the user drags up or down.\n- A **3px-wide drop zone indicator line** (border-primary color) appears between items, showing where the item will land if the user releases.\n- The original item retains its focus outline so the user always knows which item is being moved.\n\n### Drop zone change logic\n\nThe drop position updates based on a **halfway-point rule**: the drop zone shifts past an item once the upper or lower edge of the ghost item crosses the vertical midpoint of the item currently being dragged over. For example, if the ghost item’s bottom edge has not yet crossed the midpoint of a given row, the drop zone remains above that row. Once it crosses, the drop zone moves below it.\n\n### Completing the drop\n\nWhen the user releases, the item moves to the position indicated by the drop zone line. The reorder **is animated**.\n\n### \n\n## Column reordering through keyboard\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78937&t=2PBanDq6QA2yNcI2-4\n\nTo reorder columns using the keyboard:\n\n1. Focus a column item in the settings menu.\n2. Press **Shift + Arrow Up** or **Shift + Arrow Down** to move the item.\n\nThe move happens immediately on key press, is animated, and the item remains focused after moving.\n\n## Column pinning toggle\n\nSelecting the **pin icon** on a menu item pins the corresponding column. Refer to the column pinning section for full pinning behavior.\n\n## Column visibility toggle\n\nSelecting the **eye (show/hide) icon** on a menu item toggles the corresponding column between visible and hidden.\n\n## Tooltips\n\nEvery interactive element in the settings menu and the settings button itself displays a tooltip on hover:\n\nTable 2\n\n## Reset table settings\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-78939&t=2PBanDq6QA2yNcI2-4\n\nThe “Reset table settings” action link at the bottom of the menu resets all user-made table customizations to their defaults. This includes column resizing, column reordering, column pinning, column visibility, and any other saved preferences.\n\nThese table settings are persisted in **browser cross-session storage**. Resetting clears everything written to that storage.\n\nA **confirmation modal** is shown after selecting the link. The table is only reset if the user confirms.\n\n## Keyboard shortcuts modal\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-79945&t=2PBanDq6QA2yNcI2-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3579-81019&t=2PBanDq6QA2yNcI2-4\n\nThe “Table keyboard shortcuts” action link at the bottom of the menu opens a **modal dialog** titled “Table keyboard shortcuts”. The modal has a two-column layout with “Command” and “Shortcut” headers.\n\n### General navigation\n\nTable 3\n\n### While a header cell is focused\n\nTable 4\n\n### While a table settings item is focused\n\nTable 5";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
15
15
|
a ds:Property;
|
|
16
16
|
ds:name "settings-menu";
|
|
17
17
|
ds:summary "Whether the settings gear icon and menu are shown in the header row.";
|
|
18
18
|
ds:propertyType "boolean";
|
|
19
|
-
ds:
|
|
19
|
+
ds:optional "false";
|
|
20
20
|
ds:constraints "Inherited from the data table. Only set to false when all column customization features are disabled.";
|
|
21
|
-
ds:
|
|
21
|
+
ds:defaultValue "true"
|
|
22
22
|
], [
|
|
23
23
|
a ds:Property;
|
|
24
24
|
ds:name "grouping-columns";
|
|
25
25
|
ds:summary "The set of columns that support grouping. Columns in this list display a \"Group by\" button in the settings menu.";
|
|
26
26
|
ds:propertyType "list of text";
|
|
27
|
-
ds:
|
|
28
|
-
ds:
|
|
27
|
+
ds:optional "false";
|
|
28
|
+
ds:constraints "Inherited from the data table. Each value must reference an enumerated-value column."
|
|
29
29
|
], [
|
|
30
30
|
a ds:Property;
|
|
31
31
|
ds:name "reorderable-columns";
|
|
32
32
|
ds:summary "Whether columns can be reordered through drag-and-drop or keyboard in the settings menu. When false, drag handles are hidden.";
|
|
33
33
|
ds:propertyType "boolean";
|
|
34
|
-
ds:
|
|
35
|
-
ds:
|
|
34
|
+
ds:optional "false";
|
|
35
|
+
ds:defaultValue "true"
|
|
36
36
|
], [
|
|
37
37
|
a ds:Property;
|
|
38
38
|
ds:name "pinnable-columns";
|
|
39
39
|
ds:summary "Whether the pin icon is available on column items in the settings menu. When false, pin icons are hidden.";
|
|
40
40
|
ds:propertyType "boolean";
|
|
41
|
-
ds:
|
|
42
|
-
ds:
|
|
41
|
+
ds:optional "false";
|
|
42
|
+
ds:defaultValue "true"
|
|
43
43
|
], [
|
|
44
44
|
a ds:Property;
|
|
45
45
|
ds:name "hideable-columns";
|
|
46
46
|
ds:summary "Whether the eye (visibility) icon is available on column items in the settings menu. When false, visibility icons are hidden.";
|
|
47
47
|
ds:propertyType "boolean";
|
|
48
|
-
ds:
|
|
49
|
-
ds:
|
|
48
|
+
ds:optional "false";
|
|
49
|
+
ds:defaultValue "true"
|
|
50
50
|
], [
|
|
51
51
|
a ds:Property;
|
|
52
52
|
ds:name "reset-enabled";
|
|
53
53
|
ds:summary "Whether the \"Reset table settings\" action link is shown at the bottom of the menu. Resetting clears all user customizations persisted in browser storage.";
|
|
54
54
|
ds:propertyType "boolean";
|
|
55
|
-
ds:
|
|
56
|
-
ds:
|
|
55
|
+
ds:optional "false";
|
|
56
|
+
ds:defaultValue "true"
|
|
57
57
|
], [
|
|
58
58
|
a ds:Property;
|
|
59
59
|
ds:name "keyboard-shortcuts-enabled";
|
|
60
60
|
ds:summary "Whether the \"Table keyboard shortcuts\" action link is shown at the bottom of the menu.";
|
|
61
61
|
ds:propertyType "boolean";
|
|
62
|
-
ds:
|
|
63
|
-
ds:
|
|
62
|
+
ds:optional "false";
|
|
63
|
+
ds:defaultValue "true"
|
|
64
64
|
];
|
|
65
65
|
ds:parentComponent ds:apps.pattern.datatable.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.data_views-filters a ds:Subcomponent;
|
|
6
|
+
ds:name "DataViews.Filters";
|
|
7
|
+
ds:summary "";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.data_views-saved_views a ds:Subcomponent;
|
|
6
|
+
ds:name "DataViews.SavedViews";
|
|
7
|
+
ds:summary "";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.data_views-sort_panel a ds:Subcomponent;
|
|
6
|
+
ds:name "DataViews.SortPanel";
|
|
7
|
+
ds:summary "";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-content a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.Content";
|
|
7
|
+
ds:summary "Side navigation content contains navigation item groups and, optionally, a context switcher. It sits below the header and above the footer (when present), and scrolls when its contents exceed the available height, while the header and footer remain fixed.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.Content\n├── Context switcher (optional, primary only)\n└── Nav\n └── Navigation item group (repeatable)\n ├── Divider (shown before every group except the first)\n ├── Group header (optional)\n └── Navigation item (repeatable)\n```\n\n```\n---\n# SideNavigation.Content — the navigation region of a pane.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# One Content block serves both panes: the context switcher edge is optional\n# and, per the tree, appears in the primary pane only. \"Nav\" is the\n# navigation landmark itself and is anonymous — no block names it.\nnode:\n uri: apps.subcomponent.side_navigation-content\n edges:\n # Primary pane only.\n - node:\n uri: apps.subcomponent.side_navigation-context_switcher\n relation:\n cardinality: \"0..1\"\n slotName: context-switcher\n - node:\n role: nav\n edges:\n - node:\n uri: apps.subcomponent.side_navigation-item_group\n relation:\n cardinality: \"1..*\"\n slotName: default\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "## Content specification\n\n### Primary navigation\n\nThe content can include the following sub-components:\n\n- Context switcher (optional)\n- Navigation item groups\n\nThe context switcher, when used, is always positioned at the top, before the navigation item groups.\n\n### Secondary navigation\n\nThe content can include navigation item groups only. The context switcher is not supported in secondary navigation.\n\n## Responsive behaviour\n\n### Desktop\n\nThe content is displayed when the primary navigation is expanded and hidden when it is collapsed.\n\n### Mobile\n\nOn mobile, the content is hidden when the navigation menu is closed and displayed when the menu is opened.\n\nThe content follows the mobile navigation behaviour defined in the main Side navigation documentation.\n\n## Interaction\n\n### Scrolling\n\nWhen the navigation content exceeds the available height, it scrolls independently of the fixed header and footer.\n\n### Overflow\n\nOverflow lines appear below the sticky header and above the sticky footer only when there is additional content to scroll in the corresponding direction.\n\nIn secondary navigation, there is no bottom overflow line. The content simply scrolls beyond the bottom of the viewport.\n\n## Accessibility\n\n### Keyboard navigation\n\nInteractive elements within the content should follow a logical, top-to-bottom focus order.\n\nWhen a context switcher is present, it should receive focus before the navigation items.\n\nWhen the content is hidden, its interactive elements must not be reachable through keyboard navigation.\n\n### Scrolling\n\nUsers must be able to access all navigation content using a keyboard, including content that requires scrolling.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:parentComponent ds:apps.component.side_navigation.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.subcomponent.side_navigation-context_switcher a ds:Subcomponent;
|
|
6
|
+
ds:name "SideNavigation.ContextSwitcher";
|
|
7
|
+
ds:summary "The context switcher allows users to switch between different contexts, such as projects or users, within an application. The context switcher is a dropdown that includes the currently selected context, a list of available contexts, and an optional action to create a new context.";
|
|
8
|
+
ds:anatomyDsl "SideNavigation.ContextSwitcher\n├── Label (optional)\n├── Context switcher dropdown\n│ ├── Current context\n│ └── Dropdown icon\n└── Context list (visible only when dropdown is open)\n ├── Context switcher item (repeatable)\n │ ├── Context title\n │ ├── Context description\n │ └── Badge (optional)\n ├── Separator (when Create context is shown)\n └── Create context button (optional)\n ├── Create icon\n └── Create context label\n```\n\n```\n---\n# SideNavigation.ContextSwitcher — a dropdown for switching between\n# contexts.\n#\n# Authored 2026-10-16 from the supplied planning tree ALONE. No\n# implementation was read, so this anatomy carries STRUCTURE ONLY.\n#\n# The tree marks the context list \"visible only when the dropdown is open\".\n# That is conditional display, for which the DSL has no construct: the list\n# is modelled as a node and the condition recorded here.\n#\n# The tree says \"Context description\" without marking it optional, so it is\n# required. Only \"Badge\" and \"Create context button\" carry the optional mark\n# inside the list.\nnode:\n uri: apps.subcomponent.side_navigation-context_switcher\n edges:\n - node:\n role: label\n relation:\n cardinality: \"0..1\"\n slotName: label\n - node:\n role: context switcher dropdown\n edges:\n - node:\n role: current context\n relation:\n cardinality: \"1\"\n slotName: label\n # The tree does not name the glyph, so no prop is pinned here.\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"1\"\n slotName: end\n relation:\n cardinality: \"1\"\n slotName: trigger\n - node:\n # Visible only while the dropdown is open.\n role: context list\n edges:\n - node:\n role: context switcher item\n edges:\n - node:\n role: context title\n relation:\n cardinality: \"1\"\n slotName: title\n - node:\n role: context description\n relation:\n cardinality: \"1\"\n slotName: description\n - node:\n uri: global.component.badge\n relation:\n cardinality: \"0..1\"\n slotName: badge\n relation:\n cardinality: \"1..*\"\n slotName: default\n # Present only when the create-context button is.\n - node:\n role: separator\n relation:\n cardinality: \"0..1\"\n - node:\n role: create context button\n edges:\n # The tree does not name the glyph, so no prop is pinned.\n - node:\n uri: global.component.icon\n relation:\n cardinality: \"1\"\n slotName: icon\n - node:\n role: create context label\n relation:\n cardinality: \"1\"\n slotName: default\n relation:\n cardinality: \"0..1\"\n slotName: create\n relation:\n cardinality: \"1\"\n slotName: default";
|
|
9
|
+
ds:anatomyClassic "Context switcher anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10062-13449&t=HfRgpBcYWYYrZVn8-1\n\nContext switcher styling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=10064-25238&t=HfRgpBcYWYYrZVn8-1\n\nMobile navigation — Context switcher open anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=11030-17767&t=kljb9kz81nAn2N2G-1";
|
|
10
|
+
ds:usage "### When to use\n\nUse the context switcher if your application classifies content into different contexts, projects, users, or similar. The navigation pages should remain the same for every context, while the content varies depending on the selected context.\n\n### When not to use\n\nDo not use the context switcher to navigate between unrelated sections or pages of an application. Use navigation items instead.";
|
|
11
|
+
ds:guidelines "## Content specification\n\nThe context switcher can only be used in the primary navigation. It is always positioned at the top of the navigation content, before the navigation item groups.\n\n### Context switcher dropdown\n\nThe context switcher dropdown displays the currently selected context.\n\nThe context switcher can have an optional label that describes the context being selected.\n\n### Context list\n\nThe context switcher items are user-generated. Users should be able to create new contexts, which are then listed in the context list.\n\nA context switcher item can have a badge, which should be used to convey dynamic and actionable information related to that context. Badges indicate a quantifiable status change and should not be used to convey passive information.\n\nThe Create context button is optional. When used, it is separated from the context switcher items by a separator.\n\n## Responsive behaviour\n\n### Mobile\n\nThe context switcher appears in the same position as on desktop. When the user opens the dropdown, the context list is displayed on top of the navigation content.\n\nWhen the context is switched, the mobile navigation closes.\n\n## Interaction\n\n### Context switcher dropdown\n\n**Hover**\n\nOn hover, the background colour of the context switcher dropdown changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen the context switcher dropdown is clicked, the `is-open` property is toggled to show or hide the context list.\n\n### Context switcher item\n\n**Hover**\n\nOn hover, the background colour of the context switcher item changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen a context switcher item is clicked, the current context is set to the selected context. This may refresh the content of the page to reflect the newly selected context.\n\nThe current page remains open if it exists in the newly selected context. Otherwise, the default page of the new context is opened.\n\n### Create context button\n\n**Hover**\n\nOn hover, the background colour of the Create context menu item changes and the cursor changes to a pointer.\n\n**Click**\n\nWhen the Create context menu item is clicked, the user is forwarded to the page where a new context can be created.\n\n## Accessibility\n\n### Keyboard navigation\n\nThe context switcher should come before the navigation items in the focus order, following its position in the navigation content.\n\nThe dropdown and its menu items must be accessible using the keyboard.\n\n### Screen reader\n\nThe context switcher must have an accessible name, and the currently selected context must be identifiable to screen-reader users.\n\nContext switcher items must have accessible names that describe their purpose.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:hasProperty [
|
|
14
|
+
a ds:Property;
|
|
15
|
+
ds:name "current-context";
|
|
16
|
+
ds:summary "Sets the currently selected context and its name in the dropdown field.";
|
|
17
|
+
ds:propertyType "choice";
|
|
18
|
+
ds:optional "false"
|
|
19
|
+
], [
|
|
20
|
+
a ds:Property;
|
|
21
|
+
ds:name "is-open";
|
|
22
|
+
ds:summary "Controls whether the context list is open or closed.";
|
|
23
|
+
ds:propertyType "boolean";
|
|
24
|
+
ds:optional "false";
|
|
25
|
+
ds:defaultValue "`false`"
|
|
26
|
+
], [
|
|
27
|
+
a ds:Property;
|
|
28
|
+
ds:name "contexts";
|
|
29
|
+
ds:summary "Defines the context switcher items.";
|
|
30
|
+
ds:propertyType "list of nodes";
|
|
31
|
+
ds:optional "false";
|
|
32
|
+
ds:constraints "Only context switcher items are allowed."
|
|
33
|
+
], [
|
|
34
|
+
a ds:Property;
|
|
35
|
+
ds:name "context-name";
|
|
36
|
+
ds:summary "Defines the name of the context.";
|
|
37
|
+
ds:propertyType "text";
|
|
38
|
+
ds:optional "false"
|
|
39
|
+
], [
|
|
40
|
+
a ds:Property;
|
|
41
|
+
ds:name "context-description";
|
|
42
|
+
ds:summary "Defines the description of the context.";
|
|
43
|
+
ds:propertyType "text";
|
|
44
|
+
ds:optional "false"
|
|
45
|
+
], [
|
|
46
|
+
a ds:Property;
|
|
47
|
+
ds:name "badge";
|
|
48
|
+
ds:summary "Controls whether the badge is displayed.";
|
|
49
|
+
ds:propertyType "boolean";
|
|
50
|
+
ds:optional "false";
|
|
51
|
+
ds:defaultValue "`false`"
|
|
52
|
+
];
|
|
53
|
+
ds:parentComponent ds:apps.component.side_navigation.
|