@canonical/design-system 0.46.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/pattern/data_views.ttl +85 -0
- package/data/apps/pattern/datatable.ttl +3 -73
- package/data/apps/pattern/page_header.ttl +50 -5
- package/data/apps/subcomponent/data_table-action_bar.ttl +2 -2
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +2 -2
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +1 -1
- 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/side_panel-footer.ttl +1 -1
- package/data/apps_launchpad/component/modal.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl +3 -3
- package/data/{apps_workplaceengineering → apps_workplace}/component/label-highlight.ttl +4 -4
- package/data/{apps_workplaceengineering → apps_workplace}/component/org_chart.ttl +2 -2
- 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 +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/callout_numbers_card.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/confirmation_modal.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/pattern/org_event_card.ttl +2 -2
- package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl +2 -2
- 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 +0 -1
- 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 +1 -2
- 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 +0 -1
- 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 +0 -1
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +0 -1
- 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 +0 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +0 -1
- package/data/documentation/pattern/library_side_navigation.ttl +2 -2
- package/data/global/component/accordion.ttl +2 -2
- package/data/global/component/announcement.ttl +2 -1
- package/data/global/component/avatar.ttl +1 -1
- package/data/global/component/badge.ttl +2 -2
- package/data/global/component/breadcrumbs.ttl +3 -3
- package/data/global/component/button.ttl +3 -3
- package/data/global/component/button_link.ttl +1 -1
- package/data/global/component/card.ttl +3 -7
- package/data/global/component/chip.ttl +1 -0
- package/data/global/component/code_snippet.ttl +1 -1
- package/data/global/component/drag_and_drop_list.ttl +1 -1
- package/data/global/component/dropdown_button.ttl +2 -2
- package/data/global/component/file_upload_field.ttl +509 -60
- package/data/global/component/icon.ttl +1 -1
- package/data/global/component/icon_button.ttl +26 -4
- package/data/{apps → global}/component/key_value_pair.ttl +2 -2
- package/data/global/{subcomponent/markdown_input.ttl → component/markdown_editor_field.ttl} +3 -3
- package/data/global/component/mode_switcher.ttl +1 -1
- package/data/global/component/number_field.ttl +1 -1
- package/data/global/component/range_field.ttl +0 -80
- package/data/global/component/table.ttl +2 -2
- package/data/global/component/tile.ttl +1 -1
- package/data/global/component/tooltip.ttl +51 -91
- package/data/global/component/{data_tooltip.ttl → tooltip_data.ttl} +31 -23
- package/data/global/component/tooltip_wrapper.ttl +70 -14
- package/data/global/group/cards.ttl +1 -1
- package/data/{apps → global}/group/key_value_pairs.ttl +2 -2
- package/data/global/modifier/constructive.ttl +1 -1
- package/data/global/modifier/elevated.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/modal.ttl +1 -1
- package/data/global/pattern/timeline.ttl +1 -1
- package/data/global/pattern/{navigation.ttl → top_navigation.ttl} +2 -2
- package/data/global/subcomponent/chart_legend.ttl +1 -1
- package/data/global/subcomponent/chart_legend_item.ttl +1 -1
- package/data/global/subcomponent/file_upload_input.ttl +503 -50
- package/data/global/subcomponent/markdown_editor_input.ttl +13 -0
- package/data/global/subcomponent/modal-footer.ttl +1 -1
- package/data/global/subcomponent/number_input.ttl +1 -1
- package/data/global/subcomponent/range_input.ttl +3 -84
- package/data/global/{component/markdown_field.ttl → subcomponent/text_editor_input.ttl} +3 -3
- package/data/global/variant/tooltip_dense.ttl +86 -5
- 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/global_dataviews.ttl +6 -0
- package/data/sites/component/store_card.ttl +1 -1
- package/data/tag/{wpeinital-implementation.ttl → workplaceinitial-implementation.ttl} +2 -2
- package/data/tag/{wpetriageupstream-and-deprecate.ttl → workplacetriageupstream-and-deprecate.ttl} +2 -2
- package/definitions/ontology.ttl +8 -2
- package/package.json +6 -6
- package/skills/adoption-a1-styles/SKILL.md +11 -0
- package/skills/adoption-a2-components/SKILL.md +82 -2
- package/skills/anatomy-author/SKILL.md +278 -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/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
|
@@ -0,0 +1,85 @@
|
|
|
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.pattern.data_views a ds:Pattern;
|
|
6
|
+
ds:name "DataViews";
|
|
7
|
+
ds:summary "DataViews presents one collection of records with search, filters, sorting, pagination and saved views around a renderer, such as a table or cards. Every part reads and edits the same view, so each renderer shows the same query and the same selection. Use it for machine inventories, order lists and audit logs, where users narrow a large collection and act on what they find.";
|
|
8
|
+
ds:anatomyDsl "---\n# Authored 2026-11-14 from @canonical/dataviews-react DataViews and its connected parts\nnode:\n uri: apps.pattern.data_views\n edges:\n - node:\n uri: global.subcomponent.search_input\n relation:\n cardinality: \"0..1\"\n slotName: search\n - node:\n role: filters\n relation:\n cardinality: \"0..1\"\n slotName: filters\n - node:\n role: sort panel\n relation:\n cardinality: \"0..1\"\n slotName: sort\n - node:\n role: saved views\n relation:\n cardinality: \"0..1\"\n slotName: views\n - node:\n uri: apps.pattern.datatable\n relation:\n cardinality: \"0..*\"\n slotName: table\n - node:\n uri: global.group.cards\n relation:\n cardinality: \"0..*\"\n slotName: cards\n - node:\n uri: apps.subcomponent.data_table-settings_menu\n relation:\n cardinality: \"0..1\"\n slotName: settings\n - node:\n uri: apps.subcomponent.data_table-action_bar\n relation:\n cardinality: \"0..1\"\n slotName: actions\n - node:\n uri: apps.subcomponent.data_table-pagination_bar\n relation:\n cardinality: \"0..1\"\n slotName: pagination";
|
|
9
|
+
ds:anatomyClassic "";
|
|
10
|
+
ds:usage "## When to use\n\n- A collection users search, filter, sort or page through, as a table, cards or both\n\n## When not to use\n\n- A short, fixed list: use a table or a list on its own";
|
|
11
|
+
ds:guidelines "# States & interaction\n\n- Every part edits one view, so a change in one shows in every renderer.\n- A search or filter change returns to the first page.\n- The action bar shows only while records are selected; persistent selection spans pages.\n\n# Accessibility\n\n- Every part is labelled, and a change with no visible result is announced in one polite live region.\n- Without scripting, search, filters and pagination work as links and GET forms.";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "selection-mode";
|
|
17
|
+
ds:summary "Simple selection is page-scoped and dropped on navigation; persistent selection spans pages, sorting and filtering.";
|
|
18
|
+
ds:propertyType "choice";
|
|
19
|
+
ds:optional "true";
|
|
20
|
+
ds:constraints "Views with grouping and selection use persistent.";
|
|
21
|
+
ds:defaultValue "none"
|
|
22
|
+
], [
|
|
23
|
+
a ds:Property;
|
|
24
|
+
ds:name "unique-identifier-field";
|
|
25
|
+
ds:summary "The field that identifies each record across pages.";
|
|
26
|
+
ds:propertyType "text";
|
|
27
|
+
ds:optional "true";
|
|
28
|
+
ds:constraints "Required when selection-mode is not none."
|
|
29
|
+
], [
|
|
30
|
+
a ds:Property;
|
|
31
|
+
ds:name "max-selection-count";
|
|
32
|
+
ds:summary "The most records a user can select.";
|
|
33
|
+
ds:propertyType "number";
|
|
34
|
+
ds:optional "true";
|
|
35
|
+
ds:constraints "A positive integer."
|
|
36
|
+
], [
|
|
37
|
+
a ds:Property;
|
|
38
|
+
ds:name "pagination-mode";
|
|
39
|
+
ds:summary "Offset navigates to any page; keyset moves forward and back only.";
|
|
40
|
+
ds:propertyType "choice";
|
|
41
|
+
ds:optional "true";
|
|
42
|
+
ds:constraints "Keyset is incompatible with grouping and sorting.";
|
|
43
|
+
ds:defaultValue "none"
|
|
44
|
+
], [
|
|
45
|
+
a ds:Property;
|
|
46
|
+
ds:name "page-size-options";
|
|
47
|
+
ds:summary "The page sizes offered; the first is the default.";
|
|
48
|
+
ds:propertyType "list of text";
|
|
49
|
+
ds:optional "true";
|
|
50
|
+
ds:constraints "Each value is a positive integer.";
|
|
51
|
+
ds:defaultValue "50, 75, 100"
|
|
52
|
+
], [
|
|
53
|
+
a ds:Property;
|
|
54
|
+
ds:name "item-label";
|
|
55
|
+
ds:summary "The noun the pagination bar uses for the records, such as \"machines\".";
|
|
56
|
+
ds:propertyType "text";
|
|
57
|
+
ds:optional "true";
|
|
58
|
+
ds:defaultValue "items"
|
|
59
|
+
], [
|
|
60
|
+
a ds:Property;
|
|
61
|
+
ds:name "bulk-actions";
|
|
62
|
+
ds:summary "The actions shown while records are selected, each a label and an optional icon, standalone or grouped in a menu.";
|
|
63
|
+
ds:propertyType "object";
|
|
64
|
+
ds:optional "true";
|
|
65
|
+
ds:constraints "At most 7 top-level actions; the deselect button does not count."
|
|
66
|
+
], [
|
|
67
|
+
a ds:Property;
|
|
68
|
+
ds:name "on-page-change";
|
|
69
|
+
ds:summary "Called with the target page and page size when the user changes page.";
|
|
70
|
+
ds:propertyType "callback";
|
|
71
|
+
ds:optional "true"
|
|
72
|
+
], [
|
|
73
|
+
a ds:Property;
|
|
74
|
+
ds:name "on-selection-change";
|
|
75
|
+
ds:summary "Called with the selected record identifiers.";
|
|
76
|
+
ds:propertyType "callback";
|
|
77
|
+
ds:optional "true"
|
|
78
|
+
], [
|
|
79
|
+
a ds:Property;
|
|
80
|
+
ds:name "on-bulk-action";
|
|
81
|
+
ds:summary "Called with the action and the selected record identifiers.";
|
|
82
|
+
ds:propertyType "callback";
|
|
83
|
+
ds:optional "true"
|
|
84
|
+
];
|
|
85
|
+
ds:hasSubcomponent ds:apps.subcomponent.data_views-filters, ds:apps.subcomponent.data_views-sort_panel, ds:apps.subcomponent.data_views-saved_views, ds:apps.subcomponent.data_table-pagination_bar, ds:apps.subcomponent.data_table-action_bar.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.pattern.datatable a ds:Pattern;
|
|
6
6
|
ds:name "DataTable";
|
|
7
|
-
ds:summary "The data table
|
|
7
|
+
ds:summary "The data table presents structured data in rows and columns, with sorting, row selection, inline editing, column management and grouping. It suits application products where users work with medium to large datasets, and it adapts across viewport sizes. Use it for machine inventories, user lists and job histories, where users compare records attribute by attribute. Each of its parts is documented as a separate subcomponent.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "https://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3336-11041&t=8RN2Hpk8UX3gMX3u-4";
|
|
10
10
|
ds:usage "The data table is for presenting structured, tabular data in application-tier products. It is the right choice when users need to work with medium-to-large datasets that share a consistent structure, where each item has the same set of fields. The data table provides tools for navigating, organizing, and acting on that data, including sorting, pagination, row selection, inline editing, column management, grouping, and bulk actions. It is a complex component designed for workflows where data interaction is a core part of the user’s task, not a passive display.\n\n## When to use\n\n- The dataset has a consistent structure where each item shares the same set of fields.\n- Users need to scan or sort across many items.\n- Users need to perform actions on individual rows or in bulk, such as editing, deleting, or exporting.\n- The data is large enough that pagination, column management, or grouping would help users navigate it.\n\n## When not to use\n\n- The data is simple enough that a basic table or a list would suffice. If users only need to read a small, static dataset with no sorting, filtering, or row actions, a simpler component avoids unnecessary complexity.\n- Each item requires a rich visual representation, such as images, charts, or multi-line summaries. A card-based layout is better suited to this kind of content.\n- The dataset has only one or two attributes per item. A list or a key-value layout is more appropriate than a full table.\n- The primary task is comparison between two or three specific items rather than scanning a larger set. A dedicated comparison view serves this better than a table.\n\n## Sorting\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-4599&t=bxRtnsSQKBPwCGkE-4\n\n\n\nThe data table supports column-level sorting. Sorting is not enabled by default. The designer chooses which columns are sortable based on whether the sort order is obvious and helpful to the user. When a user sorts by a column, the table reorders its rows accordingly. Sorting follows a three-step cycle: ascending, descending, and back to unsorted.\n\nIf the table is paginated, sorting may reset the user to the first page and drop any active simple selection. If grouping is enabled, sorting applies only within each group, not across groups.\n\nRefer to [DataTable.HeaderCell](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8yifr5hfPa) for the full sorting interaction, header cell states, and edge cases such as sorting with pagination and double rows.\n\n\n\n\n\n## Pagination\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-5498&t=bxRtnsSQKBPwCGkE-4\n\nThe data table supports pagination to split large datasets into manageable pages. Two pagination modes are available: **offset pagination** for backends that support random-access page navigation, and **keyset pagination** for backends that can only determine whether more pages exist.\n\nThe designer chooses the pagination mode based on the backend’s capabilities. The pagination bar is sticky and always visible at the bottom of the table.\n\nRefer to [DataTable.PaginationBar](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-I82k_zrGpw) for the full anatomy, interaction details, and guidance on choosing page-size options.\n\n## Inline editing\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-7270&t=bxRtnsSQKBPwCGkE-4\n\n\n\nThe data table supports inline editing, allowing users to modify data values directly in the table without navigating to a separate form. Editing is configured at the column level. The designer chooses which columns are editable and which edit mode to use (text, textarea, or select).\n\nInline editing is best suited for quick, small corrections. For complex edits that involve validation, multi-field dependencies, or high-consequence changes, a dedicated edit form or detail panel is a better fit.\n\nRefer to [DataTable.BodyCell](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-xsvt3IgB-u) for the full editing interaction, save behavior options, and validation states.\n\n## Grouping\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-8159&t=bxRtnsSQKBPwCGkE-4\n\nThe data table supports grouping rows by a shared column value. When grouping is active, rows are organized under collapsible group header rows. Only columns with enumerated values (a small, known set of options) can be grouped. The user activates grouping through the table settings panel.\n\nA table can only be grouped by one column at a time. Grouping is incompatible with keyset pagination.\n\nRefer to [DataTable.GroupHeaderRow](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-2tgGCrnrBv) for the full grouping interaction, selection behavior within groups, and pagination considerations.\n\n## Row selection\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-11054&t=bxRtnsSQKBPwCGkE-4\n\nThe data table supports row selection through per-row checkboxes. Two selection modes are available: **simple selection** and **persistent selection**.\n\nSimple selection is page-scoped. The selection is dropped when the user navigates to a different table page, sorts, or applies any action that changes which rows are visible. Use simple selection when users only need to act on items visible on the current page.\n\nPersistent selection preserves the selection across page changes, sorting, and other navigation actions. It adds a persistent selection panel where users can review and manage their full selection. Use persistent selection when users need to build up a selection of items across multiple pages before performing a bulk action.\n\nRefer to the row selection section in Interactions for the full behavior, header checkbox states, shift selection, and performance considerations. Refer to the [DataTable.PersistentSelection](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Zx_Vr61cn4) for the panel UI and expanded view.\n\n## Bulk actions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-12858&t=bxRtnsSQKBPwCGkE-4\n\nWhen row selection is enabled, the data table can show a bulk action bar at the bottom of the table. The bar appears when one or more rows are selected and provides action buttons for operations that apply to the entire selection, such as exporting, archiving, or deleting.\n\nThe designer defines which bulk actions are available for each table instance. The bar supports a maximum of 7 actions, with overflow grouped into expandable dropdown menus.\n\nRefer to the [DataTable.ActionBar](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-Tccmneq3YD) for guidance on choosing bulk actions, destructive action styling, and interaction details.\n\n## Column management\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-11158&t=2PBanDq6QA2yNcI2-4\n\nUsers can customize the table layout by reordering, resizing, pinning, and hiding columns. These features are accessed through the header cell interactions (drag-and-drop reordering, resize handles) and the settings menu (reordering, pinning, visibility toggles). The settings menu is enabled by default and provides a centralized interface for all column customizations.\n\nColumn customizations are persisted in browser storage across sessions. Users can reset all customizations to their defaults through the settings menu.\n\nRefer to [DataTable.HeaderCell](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-8yifr5hfPa) and [DataTable.SettingsMenu](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-wyr7Qk04SN) for the full interaction details and configuration options.\n\n## Density\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3432-12172&t=2PBanDq6QA2yNcI2-4\n\n\n\nDensity controls the vertical spacing of rows. Choose a density based on the user’s task and the amount of data they need to scan.\n\n- **Default** suits most use cases. It balances scannability with readability and provides enough vertical space for comfortable mouse interaction.\n- **Dense** works well when users need to compare many rows at once, such as scanning a log of recent events or triaging a long list of items. The reduced row height keeps more data visible without scrolling. Avoid dense spacing when rows contain complex content or when touch interaction is expected.\n- **Cozy** is a good fit when rows contain longer text values or when the table is not the only focus on the page. The extra breathing room reduces visual fatigue during extended reading. On mobile, cozy is the default density because it provides larger touch targets.\n- **Spacious** is appropriate when each row represents a distinct item the user evaluates individually, such as a list of candidates or detailed records. The generous spacing helps users focus on one row at a time. Avoid spacious spacing in tables with many rows, as it pushes content out of view. \n\n";
|
|
@@ -25,51 +25,6 @@ ds:apps.pattern.datatable a ds:Pattern;
|
|
|
25
25
|
ds:propertyType "choice";
|
|
26
26
|
ds:optional "true";
|
|
27
27
|
ds:defaultValue "default"
|
|
28
|
-
], [
|
|
29
|
-
a ds:Property;
|
|
30
|
-
ds:name "selection-mode";
|
|
31
|
-
ds:summary "Sets whether and how rows can be selected. Simple selection is page-scoped and dropped on navigation. Persistent selection persists across page changes, sorting, and filtering through a persistent selection panel.";
|
|
32
|
-
ds:propertyType "choice";
|
|
33
|
-
ds:optional "true";
|
|
34
|
-
ds:constraints "Tables with grouping and selection must use persistent.";
|
|
35
|
-
ds:defaultValue "none"
|
|
36
|
-
], [
|
|
37
|
-
a ds:Property;
|
|
38
|
-
ds:name "unique-identifier-field";
|
|
39
|
-
ds:summary "The column or field used to uniquely identify each row. Used by persistent selection to track items across pages and display them in the persistent selection panel.";
|
|
40
|
-
ds:propertyType "text";
|
|
41
|
-
ds:optional "true";
|
|
42
|
-
ds:constraints "Required when selection-mode is not none."
|
|
43
|
-
], [
|
|
44
|
-
a ds:Property;
|
|
45
|
-
ds:name "max-selection-count";
|
|
46
|
-
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.";
|
|
47
|
-
ds:propertyType "number";
|
|
48
|
-
ds:optional "true";
|
|
49
|
-
ds:constraints "Must be a positive integer."
|
|
50
|
-
], [
|
|
51
|
-
a ds:Property;
|
|
52
|
-
ds:name "pagination-mode";
|
|
53
|
-
ds:summary "Sets the pagination strategy. Offset provides random-access page navigation. Keyset supports forward and back navigation only.";
|
|
54
|
-
ds:propertyType "choice";
|
|
55
|
-
ds:optional "true";
|
|
56
|
-
ds:constraints "Keyset pagination is incompatible with grouping and sorting.";
|
|
57
|
-
ds:defaultValue "none"
|
|
58
|
-
], [
|
|
59
|
-
a ds:Property;
|
|
60
|
-
ds:name "page-size-options";
|
|
61
|
-
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.";
|
|
62
|
-
ds:propertyType "list of text";
|
|
63
|
-
ds:optional "true";
|
|
64
|
-
ds:constraints "Each value must be a positive integer.";
|
|
65
|
-
ds:defaultValue "50, 75, 100"
|
|
66
|
-
], [
|
|
67
|
-
a ds:Property;
|
|
68
|
-
ds:name "item-label";
|
|
69
|
-
ds:summary "A context-specific noun used in the pagination bar in place of \"Items\" (for example, \"Machines\" or \"Orders\"). Applied to the item amount label and the item count summary.";
|
|
70
|
-
ds:propertyType "text";
|
|
71
|
-
ds:optional "true";
|
|
72
|
-
ds:defaultValue "items"
|
|
73
28
|
], [
|
|
74
29
|
a ds:Property;
|
|
75
30
|
ds:name "default-sort-column";
|
|
@@ -158,13 +113,6 @@ ds:apps.pattern.datatable a ds:Pattern;
|
|
|
158
113
|
ds:summary "Defines the column hiding order and double-row pairing rules that activate as the viewport narrows. Includes which columns can be combined, which is primary and secondary in each pair, the order in which pairs combine, which columns to hide, and in what order.";
|
|
159
114
|
ds:propertyType "object";
|
|
160
115
|
ds:optional "true"
|
|
161
|
-
], [
|
|
162
|
-
a ds:Property;
|
|
163
|
-
ds:name "bulk-actions";
|
|
164
|
-
ds:summary "The set of bulk actions shown in the bulk action bar when rows are selected. Each action defines a label and an optional icon. Actions can be standalone buttons or grouped into expandable dropdown menus. A grouped action defines a top-level button with a dropdown caret and a list of sub-actions that appear in a popover menu above the action bar (for example, an \"Export\" group expanding into \"Export as CSV\", \"Export as JSON\", and \"Export as PDF\"). Grouping is also available as a design choice when fewer than 7 actions exist.";
|
|
165
|
-
ds:propertyType "object";
|
|
166
|
-
ds:optional "true";
|
|
167
|
-
ds:constraints "Maximum of 7 top-level actions. The deselect button does not count toward this limit."
|
|
168
116
|
], [
|
|
169
117
|
a ds:Property;
|
|
170
118
|
ds:name "loading";
|
|
@@ -178,34 +126,16 @@ ds:apps.pattern.datatable a ds:Pattern;
|
|
|
178
126
|
ds:summary "Called when the user sorts a column. Receives the column identifier and sort direction. Use for backend-paginated tables where sorting triggers a data fetch.";
|
|
179
127
|
ds:propertyType "callback";
|
|
180
128
|
ds:optional "true"
|
|
181
|
-
], [
|
|
182
|
-
a ds:Property;
|
|
183
|
-
ds:name "on-page-change";
|
|
184
|
-
ds:summary "Called when the user navigates to a different page. Receives the target page number and page size. Use for backend-paginated tables where page changes trigger a data fetch.";
|
|
185
|
-
ds:propertyType "callback";
|
|
186
|
-
ds:optional "true"
|
|
187
|
-
], [
|
|
188
|
-
a ds:Property;
|
|
189
|
-
ds:name "on-selection-change";
|
|
190
|
-
ds:summary "Called when the selection changes. Receives the current set of selected item identifiers.";
|
|
191
|
-
ds:propertyType "callback";
|
|
192
|
-
ds:optional "true"
|
|
193
129
|
], [
|
|
194
130
|
a ds:Property;
|
|
195
131
|
ds:name "on-edit";
|
|
196
132
|
ds:summary "Called when a cell value is saved (either through auto-save or explicit save). Receives the row identifier, column identifier, and new value.";
|
|
197
133
|
ds:propertyType "callback";
|
|
198
134
|
ds:optional "true"
|
|
199
|
-
], [
|
|
200
|
-
a ds:Property;
|
|
201
|
-
ds:name "on-bulk-action";
|
|
202
|
-
ds:summary "Called when the user performs a bulk action. Receives the action identifier and the set of selected item identifiers.";
|
|
203
|
-
ds:propertyType "callback";
|
|
204
|
-
ds:optional "true"
|
|
205
135
|
];
|
|
136
|
+
ds:hasSubcomponent ds:apps.subcomponent.data_table-persistent_selection, ds:apps.subcomponent.data_table-group_header_row, ds:apps.subcomponent.data_table-body_cell, ds:apps.subcomponent.data_table-settings_menu, ds:apps.subcomponent.data_table-header_cell;
|
|
206
137
|
ds:changeLog [
|
|
207
138
|
a ds:ChangeLogEntry;
|
|
208
139
|
ds:timestamp "2026-03-24T00:00:00.000+01:00";
|
|
209
140
|
ds:changeType "change"
|
|
210
|
-
]
|
|
211
|
-
ds:hasSubcomponent ds:apps.subcomponent.data_table-persistent_selection, ds:apps.subcomponent.data_table-group_header_row, ds:apps.subcomponent.data_table-body_cell, ds:apps.subcomponent.data_table-settings_menu, ds:apps.subcomponent.data_table-action_bar, ds:apps.subcomponent.data_table-header_cell, ds:apps.subcomponent.data_table-pagination_bar.
|
|
141
|
+
].
|
|
@@ -4,10 +4,55 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.pattern.page_header a ds:Pattern;
|
|
6
6
|
ds:name "PageHeader";
|
|
7
|
-
ds:summary "", "The **Page Header** (l-main_header)
|
|
8
|
-
ds:anatomyDsl "";
|
|
9
|
-
ds:anatomyClassic "", "
|
|
10
|
-
ds:usage "", "**When to use**\n\
|
|
7
|
+
ds:summary "", "The **Page Header** (l-main_header) is a highly customisable UI block used to orient users on new pages by clearly communicating where the user is within an application and providing immediate access to page-level context and actions. \n\n It is positioned at the top of a page’s Main area, and is mandatory for every application page.";
|
|
8
|
+
ds:anatomyDsl "", "Page header — vertical layout\n├── Breadcrumb row (optional)\n│ └── Breadcrumbs\n│\n└── Header row — horizontal layout\n ├── Title wrapper\n │ ├── Page image (optional)\n │ └── Text stack — vertical layout\n │ ├── Title row — horizontal layout\n │ │ ├── Page title\n │ │ ├── Title Info wrapper (optional)\n │ │ │ └── Information icon\n │ │ └── Title status tag (optional)\n │ └── Metadata slot (optional)\n │ └── Supporting text or custom content\n │\n └── Action bar (optional)\n ├── Primary action\n ├── Secondary action (repeatable)\n └── Tertiary action (repeatable)\n";
|
|
9
|
+
ds:anatomyClassic "", "Anatomy\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14579-7657&t=WLa5VR7fRSsbUeyJ-4\n\nStyling\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=14579-7679&t=WLa5VR7fRSsbUeyJ-4";
|
|
10
|
+
ds:usage "", "**When to use**\n\nThe Page Header component should be always be used at the top of every page in an application.";
|
|
11
11
|
ds:guidelines "";
|
|
12
12
|
ds:tier ds:apps;
|
|
13
|
-
ds:documentationStage ds:tag.needstriage
|
|
13
|
+
ds:documentationStage ds:tag.needstriage;
|
|
14
|
+
ds:hasProperty [
|
|
15
|
+
a ds:Property;
|
|
16
|
+
ds:name "Breadcrumbs";
|
|
17
|
+
ds:propertyType "boolean";
|
|
18
|
+
ds:optional "true";
|
|
19
|
+
ds:defaultValue "`false`"
|
|
20
|
+
], [
|
|
21
|
+
a ds:Property;
|
|
22
|
+
ds:name "Page image";
|
|
23
|
+
ds:propertyType "boolean";
|
|
24
|
+
ds:optional "true";
|
|
25
|
+
ds:defaultValue "`false`"
|
|
26
|
+
], [
|
|
27
|
+
a ds:Property;
|
|
28
|
+
ds:name "Page title";
|
|
29
|
+
ds:propertyType "text";
|
|
30
|
+
ds:optional "false"
|
|
31
|
+
], [
|
|
32
|
+
a ds:Property;
|
|
33
|
+
ds:name "Page title icon";
|
|
34
|
+
ds:propertyType "boolean";
|
|
35
|
+
ds:optional "true";
|
|
36
|
+
ds:defaultValue "`false`"
|
|
37
|
+
], [
|
|
38
|
+
a ds:Property;
|
|
39
|
+
ds:name "Page status tag";
|
|
40
|
+
ds:propertyType "boolean";
|
|
41
|
+
ds:optional "false";
|
|
42
|
+
ds:defaultValue "`false`"
|
|
43
|
+
], [
|
|
44
|
+
a ds:Property;
|
|
45
|
+
ds:name "Action bar";
|
|
46
|
+
ds:propertyType "list of objects";
|
|
47
|
+
ds:optional "true";
|
|
48
|
+
ds:defaultValue "`true`"
|
|
49
|
+
], [
|
|
50
|
+
a ds:Property;
|
|
51
|
+
ds:name "Meta data";
|
|
52
|
+
ds:propertyType "list of objects";
|
|
53
|
+
ds:optional "true"
|
|
54
|
+
];
|
|
55
|
+
ds:changeLog [
|
|
56
|
+
a ds:ChangeLogEntry;
|
|
57
|
+
ds:timestamp "2026-11-25T00:00:00.000+01:00"
|
|
58
|
+
].
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
ds:apps.subcomponent.data_table-action_bar a ds:Subcomponent;
|
|
6
6
|
ds:name "DataTable.ActionBar";
|
|
7
|
-
ds:summary "When one or more
|
|
7
|
+
ds:summary "When one or more records are selected, the action bar appears at the bottom of the view, with the bulk actions defined for that view and a deselect button on the far right. With persistent selection, it also shows the number of selected items, such as \"5 Selected\". Use it to delete, export or tag several records 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-1631&t=8RN2Hpk8UX3gMX3u-4\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=4781-83072&t=2fO23I8WsyT0YVJ1-4";
|
|
10
10
|
ds:usage "The bulk action bar appears when one or more rows are selected, giving users a way to apply an operation to their entire selection at once. It eliminates the need to act on rows one at a time, which is especially valuable in enterprise applications where users regularly manage large datasets. For example, a system administrator might select 30 machines across several pages and archive them in a single step, rather than repeating the action on each row individually.\n\n## When to use\n\n- Users need to perform the same operation on multiple table rows at once.\n- The table is used in workflows where bulk operations such as archiving, exporting, deleting, or reassigning are common.\n\n## When not to use\n\n- The table does not support row selection. Use inline row actions in the action column instead.\n- The available bulk operations are unlikely to be used. A bulk action bar that appears on selection but offers only one rarely used action adds complexity without meaningful benefit.\n\n## Choosing bulk actions\n\nhttps://www.figma.com/design/WGHcOmGMEUF9hMAEoRafL8/%F0%9F%93%95-Pragma---documentation-visuals?node-id=3419-12858&t=2PBanDq6QA2yNcI2-4\n\nThe designer defines which bulk actions appear in the bar for each table instance. Start by identifying what users need to do with multiple items at once. Consider what operations are common enough to justify a bulk workflow and whether the product’s backend supports performing them in batch. Not every action available on a single row needs a bulk equivalent. Focus on the actions that save users the most time when applied to many items at once.\n\nThe action bar supports a maximum of 7 bulk actions. The deselect (X) button does not count toward this limit. When more than 7 actions are needed, group related actions into expandable dropdown menus. A grouped button displays a dropdown caret and opens a popover menu above the action bar listing the sub-actions (for example, an “Export” button expanding into “Export as CSV”, “Export as JSON”, and “Export as PDF”). Grouping is also available as a design choice when fewer than 7 actions exist. If there is a logical grouping the designer wants to enforce, expandable menus can be used even when space is not a constraint.\n\n## Destructive actions\n\nDestructive actions such as “Delete” may be visually distinguished with a red text style, making them clearly identifiable in the action bar.";
|
|
@@ -26,4 +26,4 @@ ds:apps.subcomponent.data_table-action_bar a ds:Subcomponent;
|
|
|
26
26
|
ds:optional "false";
|
|
27
27
|
ds:constraints "Inherited from the data table. Maximum of 7 top-level actions. The deselect button does not count toward this limit."
|
|
28
28
|
];
|
|
29
|
-
ds:parentComponent ds:apps.pattern.
|
|
29
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -4,7 +4,7 @@
|
|
|
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.";
|
|
@@ -43,4 +43,4 @@ ds:apps.subcomponent.data_table-pagination_bar a ds:Subcomponent;
|
|
|
43
43
|
ds:optional "true";
|
|
44
44
|
ds:defaultValue "Determined by pagination-mode."
|
|
45
45
|
];
|
|
46
|
-
ds:parentComponent ds:apps.pattern.
|
|
46
|
+
ds:parentComponent ds:apps.pattern.data_views.
|
|
@@ -8,7 +8,7 @@ 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
13
|
ds:documentationStage ds:tag.needscoredocumentation;
|
|
14
14
|
ds:hasProperty [
|
|
@@ -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.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
ds:apps.subcomponent.side_panel-footer a ds:Subcomponent;
|
|
6
6
|
ds:name "SidePanel.Footer";
|
|
7
7
|
ds:summary "";
|
|
8
|
-
ds:anatomyDsl "", "---\n\n# Authored 2026-09-17 from @canonical/react-ds-app\n\n# src/lib/SidePanel/common/Footer/styles.css on .ds.side-panel-footer.\n\nnode:\n\n uri: apps.subcomponent.side_panel-footer\n\n styles:\n\n # Never shrinks, and stays visible: the panel scrolls beneath it.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.position: sticky\n\n layout.offset.block.end: 0\n\n # Above the in-flow content, whatever it contains.\n\n layout.stack: 1\n\n # Opaque, so scrolling content passes behind rather than through; `inherit`\n\n # resolves whatever surface colour the panel painted.\n\n appearance.background: inherit\n\n layout.type: flex\n\n layout.justify:
|
|
8
|
+
ds:anatomyDsl "", "---\n\n# Authored 2026-09-17 from @canonical/react-ds-app\n\n# src/lib/SidePanel/common/Footer/styles.css on .ds.side-panel-footer.\n\nnode:\n\n uri: apps.subcomponent.side_panel-footer\n\n styles:\n\n # Never shrinks, and stays visible: the panel scrolls beneath it.\n\n layout.flex.grow: 0\n\n layout.flex.shrink: 0\n\n layout.position: sticky\n\n layout.offset.block.end: 0\n\n # Above the in-flow content, whatever it contains.\n\n layout.stack: 1\n\n # Opaque, so scrolling content passes behind rather than through; `inherit`\n\n # resolves whatever surface colour the panel painted.\n\n appearance.background: inherit\n\n layout.type: flex\n\n layout.justify: flex-start\n\n layout.align: center\n\n layout.wrap: wrap\n\n spacing.gap: 0.5rem\n\n spacing.internal.block.start: 0.5rem\n\n spacing.internal.block.end: 0.5rem\n\n # Closes the scroll region. It lives here rather than on the content pane\n\n # because the panel is the scroller: a border on the content would scroll\n\n # away, whereas this one is pinned by the sticky footer. The colour is the\n\n # muted border (--color-border-muted), a divider, not a boundary. The\n\n # roster measures border widths on the top key and colours on the\n\n # block-start key; the shorthand's `solid` goes through the box-wide style\n\n # key.\n\n appearance.border.top.width: dimension.stroke.thickness.medium\n\n appearance.border.block.start.color: color.border.muted\n\n appearance.border.style: solid\n\n edges:\n\n - node:\n\n uri: global.component.button\n\n relation:\n\n cardinality: \"0..*\"\n\n slotName: default";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
@@ -30,9 +30,9 @@ ds:apps_launchpad.component.modal a ds:Component;
|
|
|
30
30
|
ds:summary "Forwarded HTML dialog attributes.";
|
|
31
31
|
ds:optional "true"
|
|
32
32
|
];
|
|
33
|
+
ds:hasSubcomponent ds:apps_launchpad.subcomponent.modal-content;
|
|
33
34
|
ds:changeLog [
|
|
34
35
|
a ds:ChangeLogEntry;
|
|
35
36
|
ds:timestamp "2026-06-19T00:00:00.000+02:00";
|
|
36
37
|
ds:changeType "change"
|
|
37
|
-
]
|
|
38
|
-
ds:hasSubcomponent ds:apps_launchpad.subcomponent.modal-content.
|
|
38
|
+
].
|
package/data/{apps_workplaceengineering → apps_workplace}/component/complex_multi_select.ttl
RENAMED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.complex_multi_select a ds:Component;
|
|
6
6
|
ds:name "Complex multi select";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
13
|
-
ds:parentComponent ds:
|
|
12
|
+
ds:tier ds:apps_workplace;
|
|
13
|
+
ds:parentComponent ds:apps_workplace.component.label-highlight.
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.label-highlight a ds:Component;
|
|
6
6
|
ds:name "Label.Highlight";
|
|
7
7
|
ds:summary "This component is a variant (?) of the [Tag](https://docs.superhuman.com/d/_dNyzE_TLZDh#_tugrid-20dWwIHYhx/_rui-osLY8UcQUp) component. It is a read-only label, meant to stand out when multiple labels are used. \nPossible names: High contrast label chips, highlighted label chip.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "Anatomy is WIP, current look: \n\n \nFigma file reference (WIP as of 19 feb 2026): [link](https://www.figma.com/design/PWvbBHNoPeCIyhWWvJ6uvN/26.04-Promotion-tool---Historical-applications?node-id=12738-8830&t=SUMGjIyfz79K6FOQ-1)";
|
|
10
10
|
ds:usage "Usage example (WIP UI as per 19 feb 2026): \n\n\n\n\n\n";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace;
|
|
13
|
+
ds:hasSubcomponent ds:apps_workplace.component.label-highlight, ds:apps_workplace.component.complex_multi_select;
|
|
13
14
|
ds:changeLog [
|
|
14
15
|
a ds:ChangeLogEntry;
|
|
15
16
|
ds:timestamp "2026-02-19T00:00:00.000+01:00";
|
|
16
17
|
ds:changeType "change"
|
|
17
18
|
];
|
|
18
|
-
ds:
|
|
19
|
-
ds:parentComponent ds:apps_workplaceengineering.component.label-highlight.
|
|
19
|
+
ds:parentComponent ds:apps_workplace.component.label-highlight.
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.org_chart a ds:Component;
|
|
6
6
|
ds:name "OrgChart";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.rule a ds:Component;
|
|
6
6
|
ds:name "Rule";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace;
|
|
13
13
|
ds:documentationStage ds:tag.needstriage.
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.skip_link a ds:Component;
|
|
6
6
|
ds:name "SkipLink";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.component.theme_switcher a ds:Component;
|
|
6
6
|
ds:name "ThemeSwitcher";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.pattern.callout_numbers_card a ds:Pattern;
|
|
6
6
|
ds:name "Callout numbers card";
|
|
7
7
|
ds:summary "A high-level dashboard widget designed to display crucial **Key Performance Indicators (KPIs)** at a glance. This component groups individual metric cards in a horizontal grid, combining primary callout numbers, contextual comparison badges, and minimalist trend sparklines to give users immediate, actionable insights.";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "- **Header:** Includes a clean, uppercase section title (`KEY METRICS`) accompanied by an info tooltip icon for quick metric definitions.\n- **Hero Callout:** Large, bold typography emphasizing the primary metric value (e.g., `89 days`, `5 hires`).\n- **Metric Label & Tooltip:** Explanatory text directly below the value (e.g., `Median time to hire`) paired with an inline information icon.\n- **Comparison Badges (Pragma Tags):** \n - **Green tag:** Indicates a positive trend (e.g., *decreasing* time to hire).\n - **Red tag:** Indicates a negative trend (e.g., *decreasing* total hires or *increasing* overdue actions).\n- **Trend Sparkline:** A compact, gradient-filled area chart plotted over a quarterly timeline (Q1'26 to Q3'26). It features a distinct end-point node (orange dot) to highlight the most recent data point.";
|
|
10
10
|
ds:usage "## \n\n- Tracking time-to-hire, seats filled, and pending onboarding actions.\n- Reviewing quarterly targets, open leads, or overdue tasks.\n- Monitoring completed milestones, or backlog items.";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace;
|
|
13
13
|
ds:documentationStage ds:tag.needscoredocumentation.
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.pattern.confirmation_modal a ds:Pattern;
|
|
6
6
|
ds:name "ConfirmationModal";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace.
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.pattern.org_event_card a ds:Pattern;
|
|
6
6
|
ds:name "OrgEventCard";
|
|
7
7
|
ds:summary "";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace.
|
package/data/{apps_workplaceengineering → apps_workplace}/subcomponent/multi_select_input.ttl
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
3
|
@prefix dt: <https://dt.canonical.com/>.
|
|
4
4
|
|
|
5
|
-
ds:
|
|
5
|
+
ds:apps_workplace.subcomponent.multi_select_input a ds:Subcomponent;
|
|
6
6
|
ds:name "MultiSelectInput";
|
|
7
7
|
ds:summary "A MultiSelect input that allows selection (and selection clearing) over a group of options.\n\n\n\nThis is proposed within Workplace tier first as none of the current React form components support the combobox behavior shown in the design mock above.\n\nWe could adapt the [Launchpad Combobox component](https://ds-svelte-global.canonical.com/?path=/story/components-combobox--in-a-popover).";
|
|
8
8
|
ds:anatomyDsl "";
|
|
9
9
|
ds:anatomyClassic "";
|
|
10
10
|
ds:usage "";
|
|
11
11
|
ds:guidelines "";
|
|
12
|
-
ds:tier ds:
|
|
12
|
+
ds:tier ds:apps_workplace.
|