@openproject/primer-view-components 0.0.0-20260618175416 → 0.0.0-20260618210321
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/app/assets/javascripts/components/primer/open_project/data_table_element.d.ts +0 -1
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/open_project/data_table.css +1 -1
- package/app/components/primer/open_project/data_table.css.json +5 -3
- package/app/components/primer/open_project/data_table_element.d.ts +0 -1
- package/app/components/primer/open_project/data_table_element.js +1 -4
- package/package.json +1 -1
- package/static/arguments.json +51 -11
- package/static/audited_at.json +1 -0
- package/static/classes.json +6 -3
- package/static/constants.json +6 -1
- package/static/info_arch.json +140 -29
- package/static/previews.json +39 -0
- package/static/statuses.json +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.TableSortButton{align-items:center;appearance:none;background:none;border:0;color:inherit;column-gap:var(--base-size-8);cursor:pointer;display:inline-flex;font:inherit;margin:0;padding:0;text-align:start}.TableSortButton::-moz-focus-inner{border:0}.TableContainer{display:grid;grid-template-areas:"title" "subtitle" "table" "footer"}.TableTitle{align-self:center;font-size:var(--text-body-size-medium);font-weight:var(--base-text-weight-semibold);grid-area:title;line-height:var(--text-body-lineHeight-medium)}.TableSubtitle,.TableTitle{color:var(--fgColor-default);margin:0}.TableSubtitle{font-size:var(--text-body-size-small);font-weight:var(--base-text-weight-normal);grid-area:subtitle;line-height:var(--text-title-lineHeight-small)}.TableSubtitle+.TableOverflowWrapper,.TableTitle+.TableOverflowWrapper{margin-block-start:var(--base-size-8)}.Table,.TableOverflowWrapper{grid-area:table}.Table{--table-border-radius:var(--borderRadius-medium);--table-cell-padding:var(--cell-padding-block,var(--base-size-8)) var(--cell-padding-inline,var(--base-size-12));background-color:var(--bgColor-default);border-collapse:initial;border-spacing:0;display:grid;font-size:var(--text-body-size-small);grid-template-columns:var(--grid-template-columns);line-height:var(--text-body-lineHeight-small);width:100%}.Table:where([data-cell-padding=condensed]){--cell-padding-block:var(--base-size-4);--cell-padding-inline:var(--base-size-8)}.Table:where([data-cell-padding=normal]){--cell-padding-block:var(--base-size-8);--cell-padding-inline:var(--base-size-12)}.Table:where([data-cell-padding=spacious]){--cell-padding-block:var(--base-size-12);--cell-padding-inline:var(--base-size-16)}.TableCell:first-child,.TableHeader:first-child{border-inline-start:var(--borderWidth-thin) solid var(--borderColor-default)}.TableCell:last-child,.TableHeader:last-child{border-inline-end:var(--borderWidth-thin) solid var(--borderColor-default)}.TableCell,.TableHeader{align-items:center;border-block-end:var(--borderWidth-thin) solid var(--borderColor-default);display:flex;padding:var(--table-cell-padding);text-align:start}.TableCell:where([data-cell-align=end]),.TableHeader:where([data-cell-align=end]){display:flex;justify-content:flex-end;text-align:end}.TableHeader[data-cell-align=end] .TableSortButton{display:flex;flex-direction:row-reverse}.TableHead .TableRow:first-of-type .TableHeader{border-block-start:var(--borderWidth-thin) solid var(--borderColor-default)}.TableHead .TableRow:first-of-type .TableHeader:first-child{border-top-left-radius:var(--table-border-radius)}.TableHead .TableRow:first-of-type .TableHeader:last-child{border-top-right-radius:var(--table-border-radius)}.TableOverflowWrapper:last-child .Table .TableBody .TableRow:last-of-type .TableCell:first-child{border-bottom-left-radius:var(--table-border-radius)}.TableOverflowWrapper:last-child .Table .TableBody .TableRow:last-of-type .TableCell:last-child{border-bottom-right-radius:var(--table-border-radius)}.TableRow>:first-child{padding-inline-start:var(--base-size-16)}.TableRow>:last-child{padding-inline-end:var(--base-size-16)}.TableHeader{background-color:var(--bgColor-muted);border-block-start:var(--borderWidth-thin) solid var(--borderColor-default);color:var(--fgColor-muted);font-weight:var(--base-text-weight-semibold)}.TableHeader:where([aria-sort=ascending]),.TableHeader:where([aria-sort=descending]){color:var(--fgColor-default)}.TableSortIcon{visibility:hidden}.TableHeader .TableSortButton:focus .TableSortIcon--ascending,.TableHeader:hover .TableSortIcon--ascending,.TableHeader[aria-sort=ascending] .TableSortIcon--ascending,.TableHeader[aria-sort=descending] .TableSortIcon--descending{visibility:visible}.TableRow:hover .TableCell{background-color:var(--control-transparent-bgColor-hover)}.TableCell:where([scope=row]){align-items:center;color:var(--fgColor-default);display:flex;font-weight:var(--base-text-weight-semibold)}.TablePagination{align-items:center;border:var(--borderWidth-thin) solid var(--borderColor-default);border-end-end-radius:var(--borderRadius-medium);border-end-start-radius:var(--borderRadius-medium);border-top-width:0;column-gap:var(--base-size-16);display:flex;grid-area:footer;justify-content:space-between;padding:var(--base-size-8) var(--base-size-16);width:100%}.TablePaginationRange{color:var(--fgColor-muted);font-size:var(--text-body-size-small);margin:0}.TablePagination .PaginationContainer{margin:0;margin-inline-start:auto}.TableBody,.TableHead,.TableRow{display:contents}@supports (grid-template-columns:subgrid){.TableBody,.TableHead,.TableRow{display:grid;grid-column:-1/1;grid-template-columns:subgrid}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open_project/data_table",
|
|
3
3
|
"selectors": [
|
|
4
|
-
".
|
|
5
|
-
".
|
|
4
|
+
".TableSortButton",
|
|
5
|
+
".TableSortButton::-moz-focus-inner",
|
|
6
6
|
".TableContainer",
|
|
7
7
|
".TableTitle",
|
|
8
8
|
".TableSubtitle",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
".TableHeader[aria-sort=descending] .TableSortIcon--descending",
|
|
39
39
|
".TableRow:hover .TableCell",
|
|
40
40
|
".TableCell:where([scope=row])",
|
|
41
|
-
".
|
|
41
|
+
".TablePagination",
|
|
42
|
+
".TablePaginationRange",
|
|
43
|
+
".TablePagination .PaginationContainer",
|
|
42
44
|
".TableBody",
|
|
43
45
|
".TableHead",
|
|
44
46
|
".TableRow"
|
|
@@ -12,9 +12,6 @@ const SortDirection = {
|
|
|
12
12
|
};
|
|
13
13
|
const DEFAULT_SORT_DIRECTION = SortDirection.ASC;
|
|
14
14
|
let DataTableElement = class DataTableElement extends HTMLElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
}
|
|
18
15
|
connectedCallback() {
|
|
19
16
|
sortTableByAriaSort(this.table);
|
|
20
17
|
updateSortIcons(this.table);
|
|
@@ -38,7 +35,7 @@ let DataTableElement = class DataTableElement extends HTMLElement {
|
|
|
38
35
|
}
|
|
39
36
|
};
|
|
40
37
|
DataTableElement = __decorate([
|
|
41
|
-
controller
|
|
38
|
+
controller('data-table')
|
|
42
39
|
], DataTableElement);
|
|
43
40
|
export { DataTableElement };
|
|
44
41
|
function resetSort(th) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openproject/primer-view-components",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20260618210321",
|
|
4
4
|
"description": "ViewComponents of the Primer Design System for OpenProject",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/arguments.json
CHANGED
|
@@ -6066,7 +6066,7 @@
|
|
|
6066
6066
|
},
|
|
6067
6067
|
{
|
|
6068
6068
|
"name": "initial_sort_column",
|
|
6069
|
-
"type": "
|
|
6069
|
+
"type": "String, Symbol, nil",
|
|
6070
6070
|
"default": "`nil`",
|
|
6071
6071
|
"description": "ID or field of the column by which the table is initially sorted"
|
|
6072
6072
|
},
|
|
@@ -6130,9 +6130,9 @@
|
|
|
6130
6130
|
},
|
|
6131
6131
|
{
|
|
6132
6132
|
"name": "sort_by",
|
|
6133
|
-
"type": "
|
|
6133
|
+
"type": "Boolean, Symbol, nil",
|
|
6134
6134
|
"default": "`nil`",
|
|
6135
|
-
"description": "
|
|
6135
|
+
"description": "Whether this column is sortable, or the sort strategy to use"
|
|
6136
6136
|
},
|
|
6137
6137
|
{
|
|
6138
6138
|
"name": "row_header",
|
|
@@ -6154,6 +6154,46 @@
|
|
|
6154
6154
|
}
|
|
6155
6155
|
]
|
|
6156
6156
|
},
|
|
6157
|
+
{
|
|
6158
|
+
"component": "OpenProject::DataTable::PaginationFooter",
|
|
6159
|
+
"status": "open_project",
|
|
6160
|
+
"a11y_reviewed": false,
|
|
6161
|
+
"short_name": "OpenProjectDataTablePaginationFooter",
|
|
6162
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/data_table/pagination_footer.rb",
|
|
6163
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/data_table/pagination_footer/default/",
|
|
6164
|
+
"parameters": [
|
|
6165
|
+
{
|
|
6166
|
+
"name": "current_page",
|
|
6167
|
+
"type": "Integer",
|
|
6168
|
+
"default": "N/A",
|
|
6169
|
+
"description": "The page that is currently being viewed (1-based)."
|
|
6170
|
+
},
|
|
6171
|
+
{
|
|
6172
|
+
"name": "total_count",
|
|
6173
|
+
"type": "Integer, nil",
|
|
6174
|
+
"default": "`nil`",
|
|
6175
|
+
"description": "The total number of items across all pages. Required (together with `page_size`) to render the range summary."
|
|
6176
|
+
},
|
|
6177
|
+
{
|
|
6178
|
+
"name": "page_size",
|
|
6179
|
+
"type": "Integer, nil",
|
|
6180
|
+
"default": "`nil`",
|
|
6181
|
+
"description": "The number of items rendered per page. Required (together with `total_count`) to render the range summary."
|
|
6182
|
+
},
|
|
6183
|
+
{
|
|
6184
|
+
"name": "aria_label",
|
|
6185
|
+
"type": "String, nil",
|
|
6186
|
+
"default": "`nil`",
|
|
6187
|
+
"description": "Accessible name for the pagination navigation landmark."
|
|
6188
|
+
},
|
|
6189
|
+
{
|
|
6190
|
+
"name": "system_arguments",
|
|
6191
|
+
"type": "Hash",
|
|
6192
|
+
"default": "N/A",
|
|
6193
|
+
"description": "System arguments passed to the root element. All remaining arguments are forwarded to [OpenProject::Pagination](/components/openprojectpagination)."
|
|
6194
|
+
}
|
|
6195
|
+
]
|
|
6196
|
+
},
|
|
6157
6197
|
{
|
|
6158
6198
|
"component": "OpenProject::DataTable::SortHeader",
|
|
6159
6199
|
"status": "open_project",
|
|
@@ -6320,25 +6360,25 @@
|
|
|
6320
6360
|
{
|
|
6321
6361
|
"name": "filter_input_arguments",
|
|
6322
6362
|
"type": "Hash",
|
|
6323
|
-
"default": "`
|
|
6363
|
+
"default": "`{}`",
|
|
6324
6364
|
"description": "Arguments that will be passed to the [TextField](/components/alpha/textfield) component."
|
|
6325
6365
|
},
|
|
6326
6366
|
{
|
|
6327
6367
|
"name": "filter_mode_control_arguments",
|
|
6328
6368
|
"type": "Hash",
|
|
6329
|
-
"default": "`
|
|
6369
|
+
"default": "`{}`",
|
|
6330
6370
|
"description": "Arguments that will be passed to the [SegmentedControl](/components/alpha/segmentedcontrol) component."
|
|
6331
6371
|
},
|
|
6332
6372
|
{
|
|
6333
6373
|
"name": "include_sub_items_check_box_arguments",
|
|
6334
6374
|
"type": "Hash",
|
|
6335
|
-
"default": "`
|
|
6375
|
+
"default": "`{}`",
|
|
6336
6376
|
"description": "Arguments that will be passed to the [CheckBox](/components/alpha/checkbox) component."
|
|
6337
6377
|
},
|
|
6338
6378
|
{
|
|
6339
6379
|
"name": "no_results_node_arguments",
|
|
6340
6380
|
"type": "Hash",
|
|
6341
|
-
"default": "`
|
|
6381
|
+
"default": "`{}`",
|
|
6342
6382
|
"description": "Arguments that will be passed to a [TreeView::LeafNode](/components/alpha/treeviewleafnode) component that appears when no items match the filter criteria."
|
|
6343
6383
|
}
|
|
6344
6384
|
]
|
|
@@ -6732,12 +6772,12 @@
|
|
|
6732
6772
|
]
|
|
6733
6773
|
},
|
|
6734
6774
|
{
|
|
6735
|
-
"component": "OpenProject::SubHeader::
|
|
6775
|
+
"component": "OpenProject::SubHeader::QuickAction",
|
|
6736
6776
|
"status": "open_project",
|
|
6737
6777
|
"a11y_reviewed": false,
|
|
6738
|
-
"short_name": "
|
|
6739
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header/
|
|
6740
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/
|
|
6778
|
+
"short_name": "OpenProjectSubHeaderQuickAction",
|
|
6779
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header/quick_action_component.rb",
|
|
6780
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/quick_action/default/",
|
|
6741
6781
|
"parameters": []
|
|
6742
6782
|
},
|
|
6743
6783
|
{
|
package/static/audited_at.json
CHANGED
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
"Primer::OpenProject::DangerDialog::FormWrapper": "",
|
|
152
152
|
"Primer::OpenProject::DataTable": "",
|
|
153
153
|
"Primer::OpenProject::DataTable::Column": "",
|
|
154
|
+
"Primer::OpenProject::DataTable::PaginationFooter": "",
|
|
154
155
|
"Primer::OpenProject::DataTable::SortHeader": "",
|
|
155
156
|
"Primer::OpenProject::DragHandle": "",
|
|
156
157
|
"Primer::OpenProject::FeedbackDialog": "",
|
package/static/classes.json
CHANGED
|
@@ -241,9 +241,6 @@
|
|
|
241
241
|
"ButtonGroup": [
|
|
242
242
|
"Primer::Beta::ButtonGroup"
|
|
243
243
|
],
|
|
244
|
-
"ButtonReset": [
|
|
245
|
-
"Primer::OpenProject::DataTable"
|
|
246
|
-
],
|
|
247
244
|
"CollapsibleHeader": [
|
|
248
245
|
"Primer::OpenProject::BorderBox::CollapsibleHeader"
|
|
249
246
|
],
|
|
@@ -731,6 +728,12 @@
|
|
|
731
728
|
"TableOverflowWrapper": [
|
|
732
729
|
"Primer::OpenProject::DataTable"
|
|
733
730
|
],
|
|
731
|
+
"TablePagination": [
|
|
732
|
+
"Primer::OpenProject::DataTable"
|
|
733
|
+
],
|
|
734
|
+
"TablePaginationRange": [
|
|
735
|
+
"Primer::OpenProject::DataTable"
|
|
736
|
+
],
|
|
734
737
|
"TableRow": [
|
|
735
738
|
"Primer::OpenProject::DataTable"
|
|
736
739
|
],
|
package/static/constants.json
CHANGED
|
@@ -1777,7 +1777,9 @@
|
|
|
1777
1777
|
"Column": "Primer::OpenProject::DataTable::Column",
|
|
1778
1778
|
"GeneratedSlotMethods": "Primer::OpenProject::DataTable::GeneratedSlotMethods",
|
|
1779
1779
|
"Header": "Primer::OpenProject::DataTable::Header",
|
|
1780
|
-
"
|
|
1780
|
+
"PaginationFooter": "Primer::OpenProject::DataTable::PaginationFooter",
|
|
1781
|
+
"SortHeader": "Primer::OpenProject::DataTable::SortHeader",
|
|
1782
|
+
"Sorting": "Primer::OpenProject::DataTable::Sorting"
|
|
1781
1783
|
},
|
|
1782
1784
|
"Primer::OpenProject::DataTable::Column": {
|
|
1783
1785
|
"COLUMN_WIDTH_OPTIONS": [
|
|
@@ -1787,6 +1789,9 @@
|
|
|
1787
1789
|
],
|
|
1788
1790
|
"GeneratedSlotMethods": "Primer::OpenProject::DataTable::Column::GeneratedSlotMethods"
|
|
1789
1791
|
},
|
|
1792
|
+
"Primer::OpenProject::DataTable::PaginationFooter": {
|
|
1793
|
+
"GeneratedSlotMethods": "Primer::OpenProject::DataTable::PaginationFooter::GeneratedSlotMethods"
|
|
1794
|
+
},
|
|
1790
1795
|
"Primer::OpenProject::DataTable::SortHeader": {
|
|
1791
1796
|
"ARIA_SORT_OPTIONS": {
|
|
1792
1797
|
"ASC": "ascending",
|
package/static/info_arch.json
CHANGED
|
@@ -19970,7 +19970,7 @@
|
|
|
19970
19970
|
},
|
|
19971
19971
|
{
|
|
19972
19972
|
"name": "initial_sort_column",
|
|
19973
|
-
"type": "
|
|
19973
|
+
"type": "String, Symbol, nil",
|
|
19974
19974
|
"default": "`nil`",
|
|
19975
19975
|
"description": "ID or field of the column by which the table is initially sorted"
|
|
19976
19976
|
},
|
|
@@ -20008,6 +20008,11 @@
|
|
|
20008
20008
|
"name": "columns",
|
|
20009
20009
|
"description": null,
|
|
20010
20010
|
"parameters": []
|
|
20011
|
+
},
|
|
20012
|
+
{
|
|
20013
|
+
"name": "pagination",
|
|
20014
|
+
"description": null,
|
|
20015
|
+
"parameters": []
|
|
20011
20016
|
}
|
|
20012
20017
|
],
|
|
20013
20018
|
"methods": [
|
|
@@ -20063,6 +20068,32 @@
|
|
|
20063
20068
|
"color-contrast"
|
|
20064
20069
|
]
|
|
20065
20070
|
}
|
|
20071
|
+
},
|
|
20072
|
+
{
|
|
20073
|
+
"preview_path": "primer/open_project/data_table/with_pagination",
|
|
20074
|
+
"name": "with_pagination",
|
|
20075
|
+
"snapshot": "true",
|
|
20076
|
+
"skip_rules": {
|
|
20077
|
+
"wont_fix": [
|
|
20078
|
+
"region"
|
|
20079
|
+
],
|
|
20080
|
+
"will_fix": [
|
|
20081
|
+
"color-contrast"
|
|
20082
|
+
]
|
|
20083
|
+
}
|
|
20084
|
+
},
|
|
20085
|
+
{
|
|
20086
|
+
"preview_path": "primer/open_project/data_table/with_pagination_using_default_page_index",
|
|
20087
|
+
"name": "with_pagination_using_default_page_index",
|
|
20088
|
+
"snapshot": "true",
|
|
20089
|
+
"skip_rules": {
|
|
20090
|
+
"wont_fix": [
|
|
20091
|
+
"region"
|
|
20092
|
+
],
|
|
20093
|
+
"will_fix": [
|
|
20094
|
+
"color-contrast"
|
|
20095
|
+
]
|
|
20096
|
+
}
|
|
20066
20097
|
}
|
|
20067
20098
|
],
|
|
20068
20099
|
"subcomponents": []
|
|
@@ -20113,9 +20144,9 @@
|
|
|
20113
20144
|
},
|
|
20114
20145
|
{
|
|
20115
20146
|
"name": "sort_by",
|
|
20116
|
-
"type": "
|
|
20147
|
+
"type": "Boolean, Symbol, nil",
|
|
20117
20148
|
"default": "`nil`",
|
|
20118
|
-
"description": "
|
|
20149
|
+
"description": "Whether this column is sortable, or the sort strategy to use"
|
|
20119
20150
|
},
|
|
20120
20151
|
{
|
|
20121
20152
|
"name": "row_header",
|
|
@@ -20136,13 +20167,7 @@
|
|
|
20136
20167
|
"description": "Maximum width"
|
|
20137
20168
|
}
|
|
20138
20169
|
],
|
|
20139
|
-
"slots": [
|
|
20140
|
-
{
|
|
20141
|
-
"name": "header",
|
|
20142
|
-
"description": null,
|
|
20143
|
-
"parameters": []
|
|
20144
|
-
}
|
|
20145
|
-
],
|
|
20170
|
+
"slots": [],
|
|
20146
20171
|
"methods": [
|
|
20147
20172
|
{
|
|
20148
20173
|
"name": "id",
|
|
@@ -20203,6 +20228,69 @@
|
|
|
20203
20228
|
"description": "Provide a custom cell renderer.",
|
|
20204
20229
|
"parameters": [],
|
|
20205
20230
|
"return_types": []
|
|
20231
|
+
},
|
|
20232
|
+
{
|
|
20233
|
+
"name": "with_header",
|
|
20234
|
+
"description": "Provide a custom header renderer.",
|
|
20235
|
+
"parameters": [],
|
|
20236
|
+
"return_types": []
|
|
20237
|
+
}
|
|
20238
|
+
],
|
|
20239
|
+
"previews": [],
|
|
20240
|
+
"subcomponents": []
|
|
20241
|
+
},
|
|
20242
|
+
{
|
|
20243
|
+
"fully_qualified_name": "Primer::OpenProject::DataTable::PaginationFooter",
|
|
20244
|
+
"description": "This component is part of `Primer::OpenProject::DataTable` and should\nnot be used as a standalone component.\n\nIt renders the table's pagination footer: an optional \"range\" summary\n(e.g. \"1 ‒ 10 of 95\") alongside the paginated navigation provided by\n{{#link_to_component}}Primer::OpenProject::Pagination{{/link_to_component}}.",
|
|
20245
|
+
"accessibility_docs": null,
|
|
20246
|
+
"is_form_component": false,
|
|
20247
|
+
"is_published": true,
|
|
20248
|
+
"requires_js": false,
|
|
20249
|
+
"component": "OpenProject::DataTable::PaginationFooter",
|
|
20250
|
+
"status": "open_project",
|
|
20251
|
+
"a11y_reviewed": false,
|
|
20252
|
+
"short_name": "OpenProjectDataTablePaginationFooter",
|
|
20253
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/data_table/pagination_footer.rb",
|
|
20254
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/data_table/pagination_footer/default/",
|
|
20255
|
+
"parameters": [
|
|
20256
|
+
{
|
|
20257
|
+
"name": "current_page",
|
|
20258
|
+
"type": "Integer",
|
|
20259
|
+
"default": "N/A",
|
|
20260
|
+
"description": "The page that is currently being viewed (1-based)."
|
|
20261
|
+
},
|
|
20262
|
+
{
|
|
20263
|
+
"name": "total_count",
|
|
20264
|
+
"type": "Integer, nil",
|
|
20265
|
+
"default": "`nil`",
|
|
20266
|
+
"description": "The total number of items across all pages. Required (together with `page_size`) to render the range summary."
|
|
20267
|
+
},
|
|
20268
|
+
{
|
|
20269
|
+
"name": "page_size",
|
|
20270
|
+
"type": "Integer, nil",
|
|
20271
|
+
"default": "`nil`",
|
|
20272
|
+
"description": "The number of items rendered per page. Required (together with `total_count`) to render the range summary."
|
|
20273
|
+
},
|
|
20274
|
+
{
|
|
20275
|
+
"name": "aria_label",
|
|
20276
|
+
"type": "String, nil",
|
|
20277
|
+
"default": "`nil`",
|
|
20278
|
+
"description": "Accessible name for the pagination navigation landmark."
|
|
20279
|
+
},
|
|
20280
|
+
{
|
|
20281
|
+
"name": "system_arguments",
|
|
20282
|
+
"type": "Hash",
|
|
20283
|
+
"default": "N/A",
|
|
20284
|
+
"description": "System arguments passed to the root element. All remaining arguments are forwarded to {{#link_to_component}}Primer::OpenProject::Pagination{{/link_to_component}}."
|
|
20285
|
+
}
|
|
20286
|
+
],
|
|
20287
|
+
"slots": [],
|
|
20288
|
+
"methods": [
|
|
20289
|
+
{
|
|
20290
|
+
"name": "aria_label",
|
|
20291
|
+
"description": "Returns the value of attribute aria_label.",
|
|
20292
|
+
"parameters": [],
|
|
20293
|
+
"return_types": []
|
|
20206
20294
|
}
|
|
20207
20295
|
],
|
|
20208
20296
|
"previews": [],
|
|
@@ -20681,25 +20769,25 @@
|
|
|
20681
20769
|
{
|
|
20682
20770
|
"name": "filter_input_arguments",
|
|
20683
20771
|
"type": "Hash",
|
|
20684
|
-
"default": "`
|
|
20772
|
+
"default": "`{}`",
|
|
20685
20773
|
"description": "Arguments that will be passed to the {{#link_to_component}}Primer::Alpha::TextField{{/link_to_component}} component."
|
|
20686
20774
|
},
|
|
20687
20775
|
{
|
|
20688
20776
|
"name": "filter_mode_control_arguments",
|
|
20689
20777
|
"type": "Hash",
|
|
20690
|
-
"default": "`
|
|
20778
|
+
"default": "`{}`",
|
|
20691
20779
|
"description": "Arguments that will be passed to the {{#link_to_component}}Primer::Alpha::SegmentedControl{{/link_to_component}} component."
|
|
20692
20780
|
},
|
|
20693
20781
|
{
|
|
20694
20782
|
"name": "include_sub_items_check_box_arguments",
|
|
20695
20783
|
"type": "Hash",
|
|
20696
|
-
"default": "`
|
|
20784
|
+
"default": "`{}`",
|
|
20697
20785
|
"description": "Arguments that will be passed to the {{#link_to_component}}Primer::Alpha::CheckBox{{/link_to_component}} component."
|
|
20698
20786
|
},
|
|
20699
20787
|
{
|
|
20700
20788
|
"name": "no_results_node_arguments",
|
|
20701
20789
|
"type": "Hash",
|
|
20702
|
-
"default": "`
|
|
20790
|
+
"default": "`{}`",
|
|
20703
20791
|
"description": "Arguments that will be passed to a {{#link_to_component}}Primer::Alpha::TreeView::LeafNode{{/link_to_component}} component that appears when no items match the filter criteria."
|
|
20704
20792
|
}
|
|
20705
20793
|
],
|
|
@@ -21365,6 +21453,19 @@
|
|
|
21365
21453
|
"color-contrast"
|
|
21366
21454
|
]
|
|
21367
21455
|
}
|
|
21456
|
+
},
|
|
21457
|
+
{
|
|
21458
|
+
"preview_path": "primer/open_project/input_group/with_error_message",
|
|
21459
|
+
"name": "with_error_message",
|
|
21460
|
+
"snapshot": "true",
|
|
21461
|
+
"skip_rules": {
|
|
21462
|
+
"wont_fix": [
|
|
21463
|
+
"region"
|
|
21464
|
+
],
|
|
21465
|
+
"will_fix": [
|
|
21466
|
+
"color-contrast"
|
|
21467
|
+
]
|
|
21468
|
+
}
|
|
21368
21469
|
}
|
|
21369
21470
|
],
|
|
21370
21471
|
"subcomponents": []
|
|
@@ -22098,9 +22199,19 @@
|
|
|
22098
22199
|
"description": "A button or custom content that will render on the left-hand side of the component, next to the filter input.\n\nTo render a button, call the `with_filter_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_filter_component` method and pass a block that returns HTML.",
|
|
22099
22200
|
"parameters": []
|
|
22100
22201
|
},
|
|
22202
|
+
{
|
|
22203
|
+
"name": "quick_sort",
|
|
22204
|
+
"description": "A slot for a generic sorting component. Will be rendered next to the search input",
|
|
22205
|
+
"parameters": []
|
|
22206
|
+
},
|
|
22207
|
+
{
|
|
22208
|
+
"name": "quick_group",
|
|
22209
|
+
"description": "A slot for a generic sorting component. Will be rendered next to the sorting button",
|
|
22210
|
+
"parameters": []
|
|
22211
|
+
},
|
|
22101
22212
|
{
|
|
22102
22213
|
"name": "quick_filters",
|
|
22103
|
-
"description": "Quick filters shown in the left pane next to the search bar (0–5 items).\nHidden on
|
|
22214
|
+
"description": "Quick filters shown in the left pane next to the search bar (0–5 items total across all types).\nHidden on smaller screens when more than one `quick_filter` is provided. Requires `filter_button` when using more than one `quick_filter`.\nSupports ActionMenus, Buttons, IconButtons, SelectPanels, and SegmentedControls inside the block.",
|
|
22104
22215
|
"parameters": []
|
|
22105
22216
|
},
|
|
22106
22217
|
{
|
|
@@ -22412,12 +22523,12 @@
|
|
|
22412
22523
|
"is_form_component": false,
|
|
22413
22524
|
"is_published": true,
|
|
22414
22525
|
"requires_js": false,
|
|
22415
|
-
"component": "OpenProject::SubHeader::
|
|
22526
|
+
"component": "OpenProject::SubHeader::QuickAction",
|
|
22416
22527
|
"status": "open_project",
|
|
22417
22528
|
"a11y_reviewed": false,
|
|
22418
|
-
"short_name": "
|
|
22419
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header/
|
|
22420
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/
|
|
22529
|
+
"short_name": "OpenProjectSubHeaderQuickAction",
|
|
22530
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header/quick_action_component.rb",
|
|
22531
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/quick_action/default/",
|
|
22421
22532
|
"parameters": [],
|
|
22422
22533
|
"slots": [],
|
|
22423
22534
|
"methods": [],
|
|
@@ -22560,7 +22671,7 @@
|
|
|
22560
22671
|
},
|
|
22561
22672
|
{
|
|
22562
22673
|
"fully_qualified_name": "Primer::OpenProject::Table::Body",
|
|
22563
|
-
"description": "The `Table`'s body.\n\nThis component
|
|
22674
|
+
"description": "The `Table`'s body.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22564
22675
|
"accessibility_docs": null,
|
|
22565
22676
|
"is_form_component": false,
|
|
22566
22677
|
"is_published": true,
|
|
@@ -22585,7 +22696,7 @@
|
|
|
22585
22696
|
},
|
|
22586
22697
|
{
|
|
22587
22698
|
"fully_qualified_name": "Primer::OpenProject::Table::Caption",
|
|
22588
|
-
"description": "The `Table`'s caption.\n\nThis component
|
|
22699
|
+
"description": "The `Table`'s caption.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22589
22700
|
"accessibility_docs": null,
|
|
22590
22701
|
"is_form_component": false,
|
|
22591
22702
|
"is_published": true,
|
|
@@ -22611,7 +22722,7 @@
|
|
|
22611
22722
|
},
|
|
22612
22723
|
{
|
|
22613
22724
|
"fully_qualified_name": "Primer::OpenProject::Table::Cell",
|
|
22614
|
-
"description": "A `Table` cell.\n\nThis component
|
|
22725
|
+
"description": "A `Table` cell.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22615
22726
|
"accessibility_docs": null,
|
|
22616
22727
|
"is_form_component": false,
|
|
22617
22728
|
"is_published": true,
|
|
@@ -22637,7 +22748,7 @@
|
|
|
22637
22748
|
},
|
|
22638
22749
|
{
|
|
22639
22750
|
"fully_qualified_name": "Primer::OpenProject::Table::ColGroup",
|
|
22640
|
-
"description": "A `Table` column group.\n\nThis component
|
|
22751
|
+
"description": "A `Table` column group.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22641
22752
|
"accessibility_docs": null,
|
|
22642
22753
|
"is_form_component": false,
|
|
22643
22754
|
"is_published": true,
|
|
@@ -22662,7 +22773,7 @@
|
|
|
22662
22773
|
},
|
|
22663
22774
|
{
|
|
22664
22775
|
"fully_qualified_name": "Primer::OpenProject::Table::ColGroup::Col",
|
|
22665
|
-
"description": "A `Table` column.\n\nThis component
|
|
22776
|
+
"description": "A `Table` column.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22666
22777
|
"accessibility_docs": null,
|
|
22667
22778
|
"is_form_component": false,
|
|
22668
22779
|
"is_published": true,
|
|
@@ -22681,7 +22792,7 @@
|
|
|
22681
22792
|
},
|
|
22682
22793
|
{
|
|
22683
22794
|
"fully_qualified_name": "Primer::OpenProject::Table::Foot",
|
|
22684
|
-
"description": "The `Table`'s footer.\n\nThis component
|
|
22795
|
+
"description": "The `Table`'s footer.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22685
22796
|
"accessibility_docs": null,
|
|
22686
22797
|
"is_form_component": false,
|
|
22687
22798
|
"is_published": true,
|
|
@@ -22706,7 +22817,7 @@
|
|
|
22706
22817
|
},
|
|
22707
22818
|
{
|
|
22708
22819
|
"fully_qualified_name": "Primer::OpenProject::Table::Head",
|
|
22709
|
-
"description": "The `Table`'s head (`thead`) (not to be confused with header cells).\n\nThis component
|
|
22820
|
+
"description": "The `Table`'s head (`thead`) (not to be confused with header cells).\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22710
22821
|
"accessibility_docs": null,
|
|
22711
22822
|
"is_form_component": false,
|
|
22712
22823
|
"is_published": true,
|
|
@@ -22731,7 +22842,7 @@
|
|
|
22731
22842
|
},
|
|
22732
22843
|
{
|
|
22733
22844
|
"fully_qualified_name": "Primer::OpenProject::Table::Header",
|
|
22734
|
-
"description": "A `Table`'s header cell.\n\nThis component
|
|
22845
|
+
"description": "A `Table`'s header cell.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22735
22846
|
"accessibility_docs": null,
|
|
22736
22847
|
"is_form_component": false,
|
|
22737
22848
|
"is_published": true,
|
|
@@ -22750,7 +22861,7 @@
|
|
|
22750
22861
|
},
|
|
22751
22862
|
{
|
|
22752
22863
|
"fully_qualified_name": "Primer::OpenProject::Table::HeaderRow",
|
|
22753
|
-
"description": "The `Table`'s header row.\n\nThis component
|
|
22864
|
+
"description": "The `Table`'s header row.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22754
22865
|
"accessibility_docs": null,
|
|
22755
22866
|
"is_form_component": false,
|
|
22756
22867
|
"is_published": true,
|
|
@@ -22775,7 +22886,7 @@
|
|
|
22775
22886
|
},
|
|
22776
22887
|
{
|
|
22777
22888
|
"fully_qualified_name": "Primer::OpenProject::Table::Row",
|
|
22778
|
-
"description": "A `Table` row.\n\nThis component
|
|
22889
|
+
"description": "A `Table` row.\n\nThis component should not be used directly, except for advanced use\ncases.",
|
|
22779
22890
|
"accessibility_docs": null,
|
|
22780
22891
|
"is_form_component": false,
|
|
22781
22892
|
"is_published": true,
|
package/static/previews.json
CHANGED
|
@@ -3665,6 +3665,32 @@
|
|
|
3665
3665
|
"color-contrast"
|
|
3666
3666
|
]
|
|
3667
3667
|
}
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"preview_path": "primer/open_project/data_table/with_pagination",
|
|
3671
|
+
"name": "with_pagination",
|
|
3672
|
+
"snapshot": "true",
|
|
3673
|
+
"skip_rules": {
|
|
3674
|
+
"wont_fix": [
|
|
3675
|
+
"region"
|
|
3676
|
+
],
|
|
3677
|
+
"will_fix": [
|
|
3678
|
+
"color-contrast"
|
|
3679
|
+
]
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"preview_path": "primer/open_project/data_table/with_pagination_using_default_page_index",
|
|
3684
|
+
"name": "with_pagination_using_default_page_index",
|
|
3685
|
+
"snapshot": "true",
|
|
3686
|
+
"skip_rules": {
|
|
3687
|
+
"wont_fix": [
|
|
3688
|
+
"region"
|
|
3689
|
+
],
|
|
3690
|
+
"will_fix": [
|
|
3691
|
+
"color-contrast"
|
|
3692
|
+
]
|
|
3693
|
+
}
|
|
3668
3694
|
}
|
|
3669
3695
|
]
|
|
3670
3696
|
},
|
|
@@ -5307,6 +5333,19 @@
|
|
|
5307
5333
|
"color-contrast"
|
|
5308
5334
|
]
|
|
5309
5335
|
}
|
|
5336
|
+
},
|
|
5337
|
+
{
|
|
5338
|
+
"preview_path": "primer/open_project/input_group/with_error_message",
|
|
5339
|
+
"name": "with_error_message",
|
|
5340
|
+
"snapshot": "true",
|
|
5341
|
+
"skip_rules": {
|
|
5342
|
+
"wont_fix": [
|
|
5343
|
+
"region"
|
|
5344
|
+
],
|
|
5345
|
+
"will_fix": [
|
|
5346
|
+
"color-contrast"
|
|
5347
|
+
]
|
|
5348
|
+
}
|
|
5310
5349
|
}
|
|
5311
5350
|
]
|
|
5312
5351
|
},
|
package/static/statuses.json
CHANGED
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
"Primer::OpenProject::DangerDialog::FormWrapper": "open_project",
|
|
152
152
|
"Primer::OpenProject::DataTable": "open_project",
|
|
153
153
|
"Primer::OpenProject::DataTable::Column": "open_project",
|
|
154
|
+
"Primer::OpenProject::DataTable::PaginationFooter": "open_project",
|
|
154
155
|
"Primer::OpenProject::DataTable::SortHeader": "open_project",
|
|
155
156
|
"Primer::OpenProject::DragHandle": "open_project",
|
|
156
157
|
"Primer::OpenProject::FeedbackDialog": "open_project",
|