@solexllc/usx-react 0.8.0 → 0.10.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/README.md +16 -0
- package/dist/index.cjs +3231 -3270
- package/dist/index.js +3232 -3271
- package/package.json +4 -4
- package/src/components/accordion/Accordion.tsx +4 -1
- package/src/components/accordion/accordion.django.html +1 -1
- package/src/components/accordion/config.json +1 -0
- package/src/components/banner/Banner.tsx +3 -1
- package/src/components/banner/banner.django.html +1 -1
- package/src/components/banner/config.json +1 -0
- package/src/components/carousel/carousel.django-snapshot.html +0 -40
- package/src/components/carousel/carousel.react-snapshot.html +0 -38
- package/src/components/character-count/CharacterCount.tsx +3 -0
- package/src/components/character-count/character-count.django-snapshot.html +43 -0
- package/src/components/character-count/character-count.django.html +2 -2
- package/src/components/character-count/character-count.react-snapshot.html +37 -0
- package/src/components/character-count/config.json +9 -0
- package/src/components/checkbox/Checkbox.tsx +17 -13
- package/src/components/checkbox/checkbox.django-snapshot.html +18 -0
- package/src/components/checkbox/checkbox.django.html +6 -4
- package/src/components/checkbox/checkbox.react-snapshot.html +14 -0
- package/src/components/checkbox/config.json +10 -1
- package/src/components/checkbox-group/checkbox-group.django-snapshot.html +54 -0
- package/src/components/checkbox-group/checkbox-group.react-snapshot.html +45 -0
- package/src/components/combobox/Combobox.tsx +6 -1
- package/src/components/combobox/combobox.django-snapshot.html +141 -0
- package/src/components/combobox/combobox.django.html +2 -2
- package/src/components/combobox/combobox.react-snapshot.html +76 -0
- package/src/components/combobox/config.json +9 -0
- package/src/components/data-table/DataTable.tsx +180 -0
- package/src/components/data-table/README.md +42 -0
- package/src/components/data-table/TableBody.tsx +123 -0
- package/src/components/{table → data-table}/TableCell.tsx +6 -3
- package/src/components/data-table/TableContext.tsx +49 -0
- package/src/components/{table → data-table}/TableFoot.tsx +8 -7
- package/src/components/data-table/TableGroup.tsx +62 -0
- package/src/components/data-table/TableHead.tsx +126 -0
- package/src/components/data-table/TableRow.tsx +24 -0
- package/src/components/data-table/cells.ts +49 -0
- package/src/components/data-table/columns.ts +15 -0
- package/src/components/data-table/config.json +379 -0
- package/src/components/data-table/data-table.django-snapshot.html +13560 -0
- package/src/components/data-table/data-table.django.html +13 -0
- package/src/components/data-table/data-table.html +34 -0
- package/src/components/data-table/data-table.react-snapshot.html +12033 -0
- package/src/components/{table → data-table}/table-body.django.html +12 -12
- package/src/components/{table → data-table}/table-foot.django.html +6 -6
- package/src/components/data-table/table-group.django.html +24 -0
- package/src/components/data-table/table-head.django.html +21 -0
- package/src/components/data-table/table-row.django.html +57 -0
- package/src/components/{table → data-table}/types.ts +48 -5
- package/src/components/date-picker/DatePicker.tsx +6 -1
- package/src/components/date-picker/config.json +9 -0
- package/src/components/date-picker/date-picker.django-snapshot.html +23 -0
- package/src/components/date-picker/date-picker.django.html +4 -4
- package/src/components/date-picker/date-picker.react-snapshot.html +19 -0
- package/src/components/date-range-picker/DateRangePicker.tsx +11 -2
- package/src/components/date-range-picker/config.json +14 -0
- package/src/components/date-range-picker/date-range-picker.django-snapshot.html +47 -0
- package/src/components/date-range-picker/date-range-picker.django.html +5 -5
- package/src/components/date-range-picker/date-range-picker.react-snapshot.html +38 -0
- package/src/components/drawer/Drawer.tsx +3 -1
- package/src/components/drawer/config.json +4 -0
- package/src/components/drawer/drawer.django.html +1 -1
- package/src/components/file-input/FileInput.tsx +7 -2
- package/src/components/file-input/_contents.django.html +2 -1
- package/src/components/file-input/config.json +4 -0
- package/src/components/header/Header.tsx +15 -9
- package/src/components/header/config.json +1 -0
- package/src/components/header/header.django-snapshot.html +24 -0
- package/src/components/header/header.django.html +8 -4
- package/src/components/header/header.html +20 -0
- package/src/components/header/header.react-snapshot.html +20 -0
- package/src/components/in-page-nav/InPageNav.tsx +3 -0
- package/src/components/in-page-nav/config.json +1 -0
- package/src/components/in-page-nav/in-page-nav.django.html +1 -1
- package/src/components/input/Input.tsx +3 -0
- package/src/components/input/config.json +10 -0
- package/src/components/input/input.django-snapshot.html +24 -0
- package/src/components/input/input.django.html +4 -4
- package/src/components/input/input.react-snapshot.html +22 -0
- package/src/components/language-selector/LanguageSelector.tsx +10 -5
- package/src/components/language-selector/config.json +1 -0
- package/src/components/language-selector/language-selector.django.html +2 -2
- package/src/components/layout/Layout.tsx +3 -1
- package/src/components/layout/config.json +4 -0
- package/src/components/layout/layout.django.html +1 -1
- package/src/components/memorable-date/MemorableDate.tsx +18 -3
- package/src/components/memorable-date/config.json +15 -0
- package/src/components/memorable-date/memorable-date.django-snapshot.html +82 -0
- package/src/components/memorable-date/memorable-date.django.html +14 -14
- package/src/components/memorable-date/memorable-date.react-snapshot.html +70 -0
- package/src/components/modal/Modal.tsx +3 -0
- package/src/components/modal/config.json +1 -0
- package/src/components/modal/modal.django.html +1 -1
- package/src/components/pagination/Pagination.tsx +7 -1
- package/src/components/pagination/config.json +8 -0
- package/src/components/pagination/navigation/PaginationNavigation.tsx +10 -0
- package/src/components/pagination/step-options/PaginationStepOptions.tsx +3 -0
- package/src/components/popover/Popover.tsx +3 -0
- package/src/components/popover/config.json +4 -0
- package/src/components/popover/popover.django-snapshot.html +30 -0
- package/src/components/popover/popover.django.html +1 -0
- package/src/components/radio-buttons/RadioButtons.tsx +41 -27
- package/src/components/radio-buttons/config.json +19 -1
- package/src/components/radio-buttons/radio-buttons.django-snapshot.html +93 -60
- package/src/components/radio-buttons/radio-buttons.django.html +16 -28
- package/src/components/radio-buttons/radio-buttons.react-snapshot.html +53 -0
- package/src/components/range-slider/RangeSlider.tsx +4 -2
- package/src/components/range-slider/config.json +1 -0
- package/src/components/range-slider/range-slider.django-snapshot.html +17 -0
- package/src/components/range-slider/range-slider.django.html +4 -4
- package/src/components/range-slider/range-slider.react-snapshot.html +16 -0
- package/src/components/search/Search.tsx +6 -1
- package/src/components/search/config.json +5 -0
- package/src/components/search/search.django-snapshot.html +683 -563
- package/src/components/search/search.django.html +1 -1
- package/src/components/search/search.react-snapshot.html +25 -0
- package/src/components/select/Select.tsx +3 -1
- package/src/components/select/config.json +5 -0
- package/src/components/select/select.django-snapshot.html +15 -0
- package/src/components/select/select.django.html +2 -2
- package/src/components/select/select.react-snapshot.html +11 -0
- package/src/components/switch/Switch.tsx +13 -70
- package/src/components/switch/config.json +60 -23
- package/src/components/switch/switch.django-snapshot.html +507 -56
- package/src/components/switch/switch.django.html +23 -26
- package/src/components/switch/switch.html +425 -33
- package/src/components/switch/switch.react-snapshot.html +447 -58
- package/src/components/table/Table.tsx +66 -334
- package/src/components/table/config.json +22 -339
- package/src/components/table/table.django-snapshot.html +712 -1482
- package/src/components/table/table.django.html +14 -59
- package/src/components/table/table.html +7 -2364
- package/src/components/table/table.react-snapshot.html +711 -2085
- package/src/components/text-area/TextArea.tsx +3 -1
- package/src/components/text-area/config.json +5 -0
- package/src/components/text-area/text-area.django-snapshot.html +18 -0
- package/src/components/text-area/text-area.django.html +4 -4
- package/src/components/text-area/text-area.react-snapshot.html +16 -0
- package/src/components/theme-picker/ThemePicker.tsx +3 -1
- package/src/components/theme-picker/config.json +14 -1
- package/src/components/theme-picker/theme-picker.django-snapshot.html +64 -0
- package/src/components/theme-picker/theme-picker.django.html +2 -2
- package/src/components/theme-picker/theme-picker.react-snapshot.html +52 -0
- package/src/components/time-picker/TimePicker.tsx +6 -1
- package/src/components/time-picker/config.json +9 -0
- package/src/components/time-picker/time-picker.django-snapshot.html +26 -0
- package/src/components/time-picker/time-picker.django.html +4 -4
- package/src/components/time-picker/time-picker.react-snapshot.html +22 -0
- package/src/index.js +1 -0
- package/src/components/table/TableBody.tsx +0 -256
- package/src/components/table/TableContext.tsx +0 -87
- package/src/components/table/TableGroup.tsx +0 -69
- package/src/components/table/TableHead.tsx +0 -139
- package/src/components/table/TableRow.tsx +0 -56
- package/src/components/table/hooks/useRowDetails.ts +0 -34
- package/src/components/table/hooks/useTableGroups.ts +0 -61
- package/src/components/table/hooks/useTableSelect.ts +0 -82
- package/src/components/table/hooks/useTableSort.ts +0 -60
- package/src/components/table/table-group.django.html +0 -40
- package/src/components/table/table-head.django.html +0 -85
- package/src/components/table/table-row.django.html +0 -98
- package/src/components/table/table_helper.py +0 -298
- /package/src/components/{table → data-table}/table-detail-row.django.html +0 -0
|
@@ -1,352 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "table",
|
|
3
3
|
"template": "table/table.django.html",
|
|
4
|
-
"version":
|
|
5
|
-
"required": [
|
|
6
|
-
"columns",
|
|
7
|
-
"data"
|
|
8
|
-
],
|
|
4
|
+
"version": 3,
|
|
5
|
+
"required": ["columns", "data", "caption"],
|
|
9
6
|
"default": {
|
|
10
|
-
"id": "standard",
|
|
11
7
|
"columns": [
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"primary": true
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"key": "description",
|
|
19
|
-
"header": "Description"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"key": "year",
|
|
23
|
-
"header": "Year",
|
|
24
|
-
"align": "right"
|
|
25
|
-
}
|
|
8
|
+
{ "key": "title", "header": "Document title", "primary": true },
|
|
9
|
+
{ "key": "description", "header": "Description" },
|
|
10
|
+
{ "key": "year", "header": "Year" }
|
|
26
11
|
],
|
|
27
12
|
"data": [
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"description": "Statement adopted by the Continental Congress declaring independence from the British Empire.",
|
|
32
|
-
"year": 1776
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"id": 2,
|
|
36
|
-
"title": "Bill of Rights",
|
|
37
|
-
"description": "The first ten amendments of the U.S. Constitution guaranteeing rights and freedoms.",
|
|
38
|
-
"year": 1791
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"id": 3,
|
|
42
|
-
"title": "Declaration of Sentiments",
|
|
43
|
-
"description": "A document written during the Seneca Falls Convention outlining the rights that American women should be entitled to as citizens.",
|
|
44
|
-
"year": 1848
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": 4,
|
|
48
|
-
"title": "Emancipation Proclamation",
|
|
49
|
-
"description": "An executive order granting freedom to slaves in designated southern states.",
|
|
50
|
-
"year": 1863
|
|
51
|
-
}
|
|
13
|
+
{ "title": "Declaration of Independence", "description": "Statement adopted by the Continental Congress.", "year": 1776 },
|
|
14
|
+
{ "title": "Bill of Rights", "description": "The first ten amendments to the Constitution.", "year": 1791 },
|
|
15
|
+
{ "title": "Emancipation Proclamation", "description": "An executive order ending slavery in designated states.", "year": 1863 }
|
|
52
16
|
],
|
|
53
17
|
"caption": "Historic U.S. documents"
|
|
54
18
|
},
|
|
55
19
|
"props": {
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
"header": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "Column header text."
|
|
74
|
-
},
|
|
75
|
-
"render": {
|
|
76
|
-
"type": "function",
|
|
77
|
-
"description": "Custom cell renderer: (value, row) => node."
|
|
78
|
-
},
|
|
79
|
-
"align": {
|
|
80
|
-
"type": "select",
|
|
81
|
-
"options": [
|
|
82
|
-
"left",
|
|
83
|
-
"center",
|
|
84
|
-
"right"
|
|
85
|
-
],
|
|
86
|
-
"description": "Cell text alignment."
|
|
87
|
-
},
|
|
88
|
-
"sortable": {
|
|
89
|
-
"type": "boolean",
|
|
90
|
-
"description": "Allow sorting by this column."
|
|
91
|
-
},
|
|
92
|
-
"width": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"description": "CSS width for the column."
|
|
95
|
-
},
|
|
96
|
-
"pin": {
|
|
97
|
-
"type": "select",
|
|
98
|
-
"options": [
|
|
99
|
-
"left",
|
|
100
|
-
"right"
|
|
101
|
-
],
|
|
102
|
-
"description": "Pin the column on horizontal scroll."
|
|
103
|
-
},
|
|
104
|
-
"primary": {
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "Marks the primary column shown in stacked/responsive mode."
|
|
107
|
-
},
|
|
108
|
-
"hidden": {
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"description": "Hide the column."
|
|
111
|
-
},
|
|
112
|
-
"aggregate": {
|
|
113
|
-
"type": "function",
|
|
114
|
-
"description": "Footer aggregate function: (data) => value."
|
|
115
|
-
},
|
|
116
|
-
"footer": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"description": "Static footer cell content."
|
|
119
|
-
},
|
|
120
|
-
"className": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"description": "Additional cell classes."
|
|
123
|
-
},
|
|
124
|
-
"headerClassName": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"description": "Additional header cell classes."
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"data": {
|
|
132
|
-
"type": "array",
|
|
133
|
-
"description": "Array of row data objects."
|
|
134
|
-
},
|
|
135
|
-
"primaryKey": {
|
|
136
|
-
"type": "string",
|
|
137
|
-
"default": "id",
|
|
138
|
-
"description": "Property name used as the unique row identifier."
|
|
139
|
-
},
|
|
140
|
-
"caption": {
|
|
141
|
-
"type": "slot",
|
|
142
|
-
"description": "Table caption rendered as <caption>."
|
|
143
|
-
},
|
|
144
|
-
"striped": {
|
|
145
|
-
"type": "boolean",
|
|
146
|
-
"default": false,
|
|
147
|
-
"description": "Apply alternating row shading (usa-table--striped)."
|
|
148
|
-
},
|
|
149
|
-
"borderless": {
|
|
150
|
-
"type": "boolean",
|
|
151
|
-
"default": false,
|
|
152
|
-
"description": "Remove cell borders (usa-table--borderless)."
|
|
153
|
-
},
|
|
154
|
-
"compact": {
|
|
155
|
-
"type": "boolean",
|
|
156
|
-
"default": false,
|
|
157
|
-
"description": "Reduce cell padding (usa-table--compact)."
|
|
158
|
-
},
|
|
159
|
-
"scrollable": {
|
|
160
|
-
"type": "boolean",
|
|
161
|
-
"default": false,
|
|
162
|
-
"description": "Wrap the table in a horizontally-scrollable container."
|
|
163
|
-
},
|
|
164
|
-
"height": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"description": "CSS max-height for vertical scrolling (e.g. '400px')."
|
|
167
|
-
},
|
|
168
|
-
"responsive": {
|
|
169
|
-
"type": "select",
|
|
170
|
-
"options": [
|
|
171
|
-
"false",
|
|
172
|
-
"stack",
|
|
173
|
-
"stack-header"
|
|
174
|
-
],
|
|
175
|
-
"default": "false",
|
|
176
|
-
"description": "Responsive mode: 'stack' or 'stack-header' for mobile stacking behaviour."
|
|
177
|
-
},
|
|
178
|
-
"stickyHeader": {
|
|
179
|
-
"type": "boolean",
|
|
180
|
-
"default": false,
|
|
181
|
-
"description": "Keep the header row visible while scrolling (usa-table--sticky-header)."
|
|
182
|
-
},
|
|
183
|
-
"stickyFirstColumn": {
|
|
184
|
-
"type": "boolean",
|
|
185
|
-
"default": false,
|
|
186
|
-
"description": "Sticky-pin the first column on horizontal scroll."
|
|
187
|
-
},
|
|
188
|
-
"sortable": {
|
|
189
|
-
"type": "boolean",
|
|
190
|
-
"default": false,
|
|
191
|
-
"description": "Enable sorting on all columns (individual columns can opt out via column.sortable: false)."
|
|
192
|
-
},
|
|
193
|
-
"sort": {
|
|
194
|
-
"type": "object",
|
|
195
|
-
"description": "Controlled sort state: { key: string, direction: 'asc' | 'desc' | null }."
|
|
196
|
-
},
|
|
197
|
-
"onSort": {
|
|
198
|
-
"type": "function",
|
|
199
|
-
"description": "Callback fired when a column header is clicked: ({ key, direction }) => void."
|
|
200
|
-
},
|
|
201
|
-
"selectionMode": {
|
|
202
|
-
"type": "select",
|
|
203
|
-
"options": [
|
|
204
|
-
"null",
|
|
205
|
-
"checkbox",
|
|
206
|
-
"radio"
|
|
207
|
-
],
|
|
208
|
-
"default": "null",
|
|
209
|
-
"description": "Row selection mode. 'checkbox' enables multi-select; 'radio' enables single-select."
|
|
210
|
-
},
|
|
211
|
-
"selectionPosition": {
|
|
212
|
-
"type": "select",
|
|
213
|
-
"options": [
|
|
214
|
-
"left",
|
|
215
|
-
"right"
|
|
216
|
-
],
|
|
217
|
-
"default": "left",
|
|
218
|
-
"description": "Position of the selection column."
|
|
219
|
-
},
|
|
220
|
-
"select": {
|
|
221
|
-
"type": "array",
|
|
222
|
-
"description": "Controlled array of selected primary key values."
|
|
223
|
-
},
|
|
224
|
-
"onSelect": {
|
|
225
|
-
"type": "function",
|
|
226
|
-
"description": "Callback fired when selection changes: (selectedKeys[]) => void."
|
|
227
|
-
},
|
|
228
|
-
"allowSelectAll": {
|
|
229
|
-
"type": "boolean",
|
|
230
|
-
"default": true,
|
|
231
|
-
"description": "Show 'select all' checkbox in header (checkbox mode only)."
|
|
232
|
-
},
|
|
233
|
-
"disabled": {
|
|
234
|
-
"type": "array",
|
|
235
|
-
"description": "Array of primary key values for rows that should be non-interactive."
|
|
236
|
-
},
|
|
237
|
-
"onClickRow": {
|
|
238
|
-
"type": "function",
|
|
239
|
-
"description": "Callback fired when a row is clicked: (rowData, event) => void."
|
|
240
|
-
},
|
|
241
|
-
"groupBy": {
|
|
242
|
-
"type": "object",
|
|
243
|
-
"description": "Group rows by a property. String shorthand or object: { property, expand, onExpand, defaultExpanded }."
|
|
244
|
-
},
|
|
245
|
-
"rowDetails": {
|
|
246
|
-
"type": "object",
|
|
247
|
-
"description": "Enable expandable row detail panels. Function: (row) => ReactNode. Object: { render, expand, onExpand, expandLabel }."
|
|
248
|
-
},
|
|
249
|
-
"showFooter": {
|
|
250
|
-
"type": "boolean",
|
|
251
|
-
"default": false,
|
|
252
|
-
"description": "Render a <tfoot> row using column.footer or column.aggregate values."
|
|
253
|
-
},
|
|
254
|
-
"paginate": {
|
|
255
|
-
"type": "object",
|
|
256
|
-
"description": "Enable pagination. true for client-side; object { pageSize, totalCount, onPageChange } for server-side."
|
|
257
|
-
},
|
|
258
|
-
"onMore": {
|
|
259
|
-
"type": "function",
|
|
260
|
-
"description": "Infinite scroll callback, called when the last row becomes visible."
|
|
261
|
-
},
|
|
262
|
-
"loading": {
|
|
263
|
-
"type": "boolean",
|
|
264
|
-
"default": false,
|
|
265
|
-
"description": "Show a loading state overlay. Does not affect interactivity."
|
|
266
|
-
},
|
|
267
|
-
"placeholder": {
|
|
268
|
-
"type": "slot",
|
|
269
|
-
"description": "Content shown when the data array is empty."
|
|
270
|
-
},
|
|
271
|
-
"className": {
|
|
272
|
-
"type": "string",
|
|
273
|
-
"default": "",
|
|
274
|
-
"description": "Additional CSS classes applied to the <table> element."
|
|
275
|
-
},
|
|
276
|
-
"header_rows": {
|
|
277
|
-
"type": "array",
|
|
278
|
-
"default": null,
|
|
279
|
-
"description": "Django only. Pre-computed header row structure from table_helper.build_header_rows(columns). Required for rendering; compute in the view and pass as context."
|
|
280
|
-
},
|
|
281
|
-
"leaf_columns": {
|
|
282
|
-
"type": "array",
|
|
283
|
-
"default": null,
|
|
284
|
-
"description": "Django only. Flat list of leaf (non-parent) columns from table_helper.get_leaf_cols(columns). Required for body and footer rendering."
|
|
285
|
-
},
|
|
286
|
-
"total_cols": {
|
|
287
|
-
"type": "number",
|
|
288
|
-
"default": null,
|
|
289
|
-
"description": "Django only. Total column count including aux columns (selection, detail). From table_helper.total_col_count()."
|
|
290
|
-
},
|
|
291
|
-
"total_depth": {
|
|
292
|
-
"type": "number",
|
|
293
|
-
"default": 1,
|
|
294
|
-
"description": "Django only. Number of header levels; len(header_rows). Required for rowspan calculations."
|
|
295
|
-
},
|
|
296
|
-
"groups": {
|
|
297
|
-
"type": "array",
|
|
298
|
-
"default": null,
|
|
299
|
-
"description": "Django only. Pre-grouped data from table_helper.group_data(data, field). Required when groupBy is set."
|
|
300
|
-
},
|
|
301
|
-
"defaultExpanded": {
|
|
302
|
-
"type": "boolean",
|
|
303
|
-
"default": true,
|
|
304
|
-
"description": "Django only. Whether grouped rows start expanded. Defaults to true. Pass false to render all groups collapsed."
|
|
305
|
-
},
|
|
306
|
-
"footerValues": {
|
|
307
|
-
"type": "object",
|
|
308
|
-
"default": null,
|
|
309
|
-
"description": "Django only. Pre-computed footer values dict from table_helper.compute_footer(columns, data). Required when showFooter is True."
|
|
310
|
-
},
|
|
311
|
-
"expandedRows": {
|
|
312
|
-
"type": "array",
|
|
313
|
-
"default": [],
|
|
314
|
-
"description": "Django only. List of primary-key values whose detail rows are open on initial render. Mirrors the React rowDetails.expand controlled prop."
|
|
315
|
-
},
|
|
316
|
-
"rowDetailTemplate": {
|
|
317
|
-
"type": "string",
|
|
318
|
-
"default": null,
|
|
319
|
-
"description": "Django only. Path to a Django partial template rendered as row-detail content (replaces React rowDetails.render)."
|
|
320
|
-
},
|
|
321
|
-
"rowDetailField": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"default": null,
|
|
324
|
-
"description": "Django only. Key in each row dict whose value is used as inline row-detail content (simpler alternative to rowDetailTemplate)."
|
|
325
|
-
},
|
|
326
|
-
"rowUrlField": {
|
|
327
|
-
"type": "string",
|
|
328
|
-
"default": null,
|
|
329
|
-
"description": "Django only. Key in each row dict holding the navigation URL for clickable rows (replaces React onClickRow). The block-link CSS pattern is used; no JS required."
|
|
330
|
-
},
|
|
331
|
-
"paginateUrlPrefix": {
|
|
332
|
-
"type": "string",
|
|
333
|
-
"default": "?page=",
|
|
334
|
-
"description": "Django only. URL prefix for pagination page links, forwarded to the pagination sub-template."
|
|
335
|
-
},
|
|
336
|
-
"pagination": {
|
|
337
|
-
"type": "object",
|
|
338
|
-
"default": null,
|
|
339
|
-
"description": "Django only. Pagination state dict from table_helper.paginate_table(): {current_page, total_pages, total, page_size}. Required when paginate is True."
|
|
340
|
-
},
|
|
341
|
-
"children": {
|
|
342
|
-
"type": "slot",
|
|
343
|
-
"description": "Composed table sections, replacing the generated table sections (React only).",
|
|
344
|
-
"renderers": {
|
|
345
|
-
"django": {
|
|
346
|
-
"supported": false,
|
|
347
|
-
"description": "The Django template does not consume children."
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
20
|
+
"extraAttributes": { "type": "object", "description": "Additional attributes on the USWDS enhancement target." },
|
|
21
|
+
"id": { "type": "string", "description": "Optional table ID." },
|
|
22
|
+
"columns": { "type": "array", "description": "Column definitions: key, header, primary (row header), sortable (USWDS sorting)." },
|
|
23
|
+
"data": { "type": "array", "description": "Array of records displayed in the same order provided." },
|
|
24
|
+
"caption": { "type": "slot", "description": "Accessible table title. Required for sortable tables." },
|
|
25
|
+
"striped": { "type": "boolean", "default": false, "description": "Alternating row shading." },
|
|
26
|
+
"borderless": { "type": "boolean", "default": false, "description": "Remove outer cell borders." },
|
|
27
|
+
"compact": { "type": "boolean", "default": false, "description": "Reduce cell padding." },
|
|
28
|
+
"scrollable": { "type": "boolean", "default": false, "description": "Wrap the table in a horizontal scroll container." },
|
|
29
|
+
"scrollHeight": { "type": "string", "description": "Fixed height for the scroll container when scrollable is true; useful with stickyHeader." },
|
|
30
|
+
"stickyHeader": { "type": "boolean", "default": false, "description": "Keep headings visible during scrolling." },
|
|
31
|
+
"responsive": { "type": "select", "options": [false, "stack", "stack-header"], "default": false, "description": "USWDS mobile stacking variant." },
|
|
32
|
+
"className": { "type": "string", "description": "Additional table classes." },
|
|
33
|
+
"children": { "type": "slot", "description": "Optional hand-authored table markup for React.", "renderers": { "django": { "supported": false } } }
|
|
351
34
|
}
|
|
352
35
|
}
|