@cloudscape-design/components 3.0.443 → 3.0.444

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.
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_header-cell_1spae_de3ps_93:not(#\9) {
93
+ .awsui_header-cell_1spae_1hunm_93:not(#\9) {
94
94
  position: relative;
95
95
  text-align: left;
96
96
  box-sizing: border-box;
@@ -102,19 +102,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
102
102
  -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
103
103
  padding: var(--space-scaled-xxs-7597g1, 4px) var(--space-scaled-xs-26e2du, 8px);
104
104
  }
105
- .awsui_header-cell-sticky_1spae_de3ps_105:not(#\9) {
105
+ .awsui_header-cell-sticky_1spae_1hunm_105:not(#\9) {
106
106
  border-bottom: var(--border-table-sticky-width-vc4wb9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
107
107
  }
108
- .awsui_header-cell-stuck_1spae_de3ps_108:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_de3ps_108) {
108
+ .awsui_header-cell-stuck_1spae_1hunm_108:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_1hunm_108) {
109
109
  border-bottom-color: transparent;
110
110
  }
111
- .awsui_header-cell-variant-full-page_1spae_de3ps_108.awsui_header-cell-hidden_1spae_de3ps_111:not(#\9) {
111
+ .awsui_header-cell-variant-full-page_1spae_1hunm_108.awsui_header-cell-hidden_1spae_1hunm_111:not(#\9) {
112
112
  border-bottom-color: transparent;
113
113
  }
114
- .awsui_header-cell_1spae_de3ps_93:not(#\9):last-child, .awsui_header-cell_1spae_de3ps_93.awsui_header-cell-sortable_1spae_de3ps_114:not(#\9) {
114
+ .awsui_header-cell_1spae_1hunm_93:not(#\9):last-child, .awsui_header-cell_1spae_1hunm_93.awsui_header-cell-sortable_1spae_1hunm_114:not(#\9) {
115
115
  padding-right: var(--space-xs-zb16t3, 8px);
116
116
  }
117
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell_1spae_de3ps_117:not(#\9) {
117
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell_1spae_1hunm_117:not(#\9) {
118
118
  position: sticky;
119
119
  background: var(--color-background-table-header-82ew8p, #ffffff);
120
120
  z-index: 798;
@@ -122,47 +122,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
122
122
  transition-duration: var(--motion-duration-transition-show-quick-osg026, 90ms);
123
123
  transition-timing-function: var(--motion-easing-sticky-56u8cd, cubic-bezier(1, 0, 0.83, 1));
124
124
  }
125
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell-pad-left_1spae_de3ps_125:not(#\9):not(.awsui_has-selection_1spae_de3ps_125) {
125
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell-pad-left_1spae_1hunm_125:not(#\9):not(.awsui_has-selection_1spae_1hunm_125) {
126
126
  padding-left: var(--space-table-horizontal-8davlm, 20px);
127
127
  }
128
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell-last-left_1spae_de3ps_128:not(#\9) {
128
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell-last-left_1spae_1hunm_128:not(#\9) {
129
129
  box-shadow: var(--shadow-sticky-column-first-avt88z, 4px 0px 20px 1px rgba(0, 7, 22, 0.1));
130
130
  clip-path: inset(0px -24px 0px 0px);
131
131
  }
132
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell-last-left_1spae_de3ps_128:not(#\9):not(.awsui_header-cell-resizable_1spae_de3ps_132):before {
132
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell-last-left_1spae_1hunm_128 > .awsui_resize-divider_1spae_1hunm_132:not(#\9) {
133
133
  display: none;
134
134
  }
135
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell-last-right_1spae_de3ps_135:not(#\9) {
135
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell-last-right_1spae_1hunm_135:not(#\9) {
136
136
  box-shadow: var(--shadow-sticky-column-last-9r9bro, -4px 0 20px 1px rgba(0, 28, 36, 0.1));
137
137
  clip-path: inset(0 0 0 -24px);
138
138
  }
139
139
  @media (prefers-reduced-motion: reduce) {
140
- .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell_1spae_de3ps_117:not(#\9) {
140
+ .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell_1spae_1hunm_117:not(#\9) {
141
141
  animation: none;
142
142
  transition: none;
143
143
  }
144
144
  }
145
- .awsui-motion-disabled .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell_1spae_de3ps_117:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_de3ps_93.awsui_sticky-cell_1spae_de3ps_117:not(#\9) {
145
+ .awsui-motion-disabled .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell_1spae_1hunm_117:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_1hunm_93.awsui_sticky-cell_1spae_1hunm_117:not(#\9) {
146
146
  animation: none;
147
147
  transition: none;
148
148
  }
149
- .awsui_header-cell_1spae_de3ps_93:not(#\9):not(:last-child):before {
150
- content: "";
151
- position: absolute;
152
- right: 0;
153
- bottom: 0;
154
- top: 0;
155
- min-height: var(--line-height-heading-xs-aeleja, 18px);
156
- max-height: calc(100% - calc(2 * var(--space-xs-zb16t3, 8px) + var(--space-xxxs-zbmxqb, 2px)));
157
- margin: auto;
158
- border-left: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
159
- box-sizing: border-box;
160
- }
161
- .awsui_header-cell-resizable_1spae_de3ps_132:not(#\9):not(:last-child):before {
162
- border-left-color: var(--color-border-divider-interactive-default-byy830, #7d8998);
163
- }
164
149
 
165
- .awsui_sorting-icon_1spae_de3ps_165:not(#\9) {
150
+ .awsui_sorting-icon_1spae_1hunm_150:not(#\9) {
166
151
  position: absolute;
167
152
  top: 50%;
168
153
  transform: translateY(-50%);
@@ -170,31 +155,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
170
155
  color: var(--color-text-column-sorting-icon-8or30j, #414d5c);
171
156
  }
172
157
 
173
- .awsui_edit-icon_1spae_de3ps_173:not(#\9) {
158
+ .awsui_edit-icon_1spae_1hunm_158:not(#\9) {
174
159
  margin-left: var(--space-xxs-p8yyaw, 4px);
175
160
  margin-top: var(--space-scaled-xxs-7597g1, 4px);
176
161
  color: inherit;
177
162
  }
178
163
 
179
- .awsui_header-cell-content_1spae_de3ps_179:not(#\9) {
164
+ .awsui_header-cell-content_1spae_1hunm_164:not(#\9) {
180
165
  position: relative;
181
166
  padding: var(--space-scaled-xxs-7597g1, 4px) var(--space-s-34lx8l, 12px);
182
167
  }
183
- .awsui_header-cell-sortable_1spae_de3ps_114 > .awsui_header-cell-content_1spae_de3ps_179:not(#\9) {
168
+ .awsui_header-cell-sortable_1spae_1hunm_114 > .awsui_header-cell-content_1spae_1hunm_164:not(#\9) {
184
169
  padding-right: calc(var(--space-xl-lmui9r, 24px) + var(--space-xxs-p8yyaw, 4px));
185
170
  }
186
- .awsui_header-cell-content_1spae_de3ps_179:not(#\9):focus {
171
+ .awsui_header-cell-content_1spae_1hunm_164:not(#\9):focus {
187
172
  outline: none;
188
173
  text-decoration: none;
189
174
  }
190
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179:not(#\9):focus {
175
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164:not(#\9):focus {
191
176
  position: relative;
192
177
  }
193
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179:not(#\9):focus {
178
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164:not(#\9):focus {
194
179
  outline: 2px dotted transparent;
195
180
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-7js4en, 0px) - 1px);
196
181
  }
197
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179:not(#\9):focus::before {
182
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164:not(#\9):focus::before {
198
183
  content: " ";
199
184
  display: block;
200
185
  position: absolute;
@@ -205,14 +190,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179:n
205
190
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
206
191
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
207
192
  }
208
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179.awsui_header-cell-fake-focus_1spae_de3ps_208:not(#\9) {
193
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164.awsui_header-cell-fake-focus_1spae_1hunm_193:not(#\9) {
209
194
  position: relative;
210
195
  }
211
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179.awsui_header-cell-fake-focus_1spae_de3ps_208:not(#\9) {
196
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164.awsui_header-cell-fake-focus_1spae_1hunm_193:not(#\9) {
212
197
  outline: 2px dotted transparent;
213
198
  outline-offset: calc(var(--space-table-header-focus-outline-gutter-7js4en, 0px) - 1px);
214
199
  }
215
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179.awsui_header-cell-fake-focus_1spae_de3ps_208:not(#\9)::before {
200
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1hunm_164.awsui_header-cell-fake-focus_1spae_1hunm_193:not(#\9)::before {
216
201
  content: " ";
217
202
  display: block;
218
203
  position: absolute;
@@ -223,33 +208,33 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_de3ps_179.a
223
208
  border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
224
209
  box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
225
210
  }
226
- .awsui_header-cell-disabled_1spae_de3ps_226.awsui_header-cell-sorted_1spae_de3ps_226 > .awsui_header-cell-content_1spae_de3ps_179 > .awsui_sorting-icon_1spae_de3ps_165:not(#\9) {
211
+ .awsui_header-cell-disabled_1spae_1hunm_211.awsui_header-cell-sorted_1spae_1hunm_211 > .awsui_header-cell-content_1spae_1hunm_164 > .awsui_sorting-icon_1spae_1hunm_150:not(#\9) {
227
212
  color: var(--color-text-interactive-disabled-z7a3t4, #9ba7b6);
228
213
  }
229
214
 
230
- .awsui_header-cell-sortable_1spae_de3ps_114:not(#\9):not(.awsui_header-cell-disabled_1spae_de3ps_226) > .awsui_header-cell-content_1spae_de3ps_179 {
215
+ .awsui_header-cell-sortable_1spae_1hunm_114:not(#\9):not(.awsui_header-cell-disabled_1spae_1hunm_211) > .awsui_header-cell-content_1spae_1hunm_164 {
231
216
  cursor: pointer;
232
217
  }
233
- .awsui_header-cell-sortable_1spae_de3ps_114:not(#\9):not(.awsui_header-cell-disabled_1spae_de3ps_226) > .awsui_header-cell-content_1spae_de3ps_179:hover, .awsui_header-cell-sortable_1spae_de3ps_114:not(#\9):not(.awsui_header-cell-disabled_1spae_de3ps_226).awsui_header-cell-sorted_1spae_de3ps_226 > .awsui_header-cell-content_1spae_de3ps_179 {
218
+ .awsui_header-cell-sortable_1spae_1hunm_114:not(#\9):not(.awsui_header-cell-disabled_1spae_1hunm_211) > .awsui_header-cell-content_1spae_1hunm_164:hover, .awsui_header-cell-sortable_1spae_1hunm_114:not(#\9):not(.awsui_header-cell-disabled_1spae_1hunm_211).awsui_header-cell-sorted_1spae_1hunm_211 > .awsui_header-cell-content_1spae_1hunm_164 {
234
219
  color: var(--color-text-interactive-active-ox3ozh, #000716);
235
220
  }
236
- .awsui_header-cell-sortable_1spae_de3ps_114:not(#\9):not(.awsui_header-cell-disabled_1spae_de3ps_226) > .awsui_header-cell-content_1spae_de3ps_179:hover > .awsui_sorting-icon_1spae_de3ps_165, .awsui_header-cell-sortable_1spae_de3ps_114:not(#\9):not(.awsui_header-cell-disabled_1spae_de3ps_226).awsui_header-cell-sorted_1spae_de3ps_226 > .awsui_header-cell-content_1spae_de3ps_179 > .awsui_sorting-icon_1spae_de3ps_165 {
221
+ .awsui_header-cell-sortable_1spae_1hunm_114:not(#\9):not(.awsui_header-cell-disabled_1spae_1hunm_211) > .awsui_header-cell-content_1spae_1hunm_164:hover > .awsui_sorting-icon_1spae_1hunm_150, .awsui_header-cell-sortable_1spae_1hunm_114:not(#\9):not(.awsui_header-cell-disabled_1spae_1hunm_211).awsui_header-cell-sorted_1spae_1hunm_211 > .awsui_header-cell-content_1spae_1hunm_164 > .awsui_sorting-icon_1spae_1hunm_150 {
237
222
  color: var(--color-text-interactive-active-ox3ozh, #000716);
238
223
  }
239
224
 
240
- .awsui_header-cell-text_1spae_de3ps_240:not(#\9) {
225
+ .awsui_header-cell-text_1spae_1hunm_225:not(#\9) {
241
226
  line-height: var(--line-height-heading-xs-aeleja, 18px);
242
227
  padding-top: calc(var(--space-xxxs-zbmxqb, 2px) / 2);
243
228
  padding-bottom: calc(var(--space-xxxs-zbmxqb, 2px) / 2);
244
229
  }
245
- .awsui_header-cell-text_1spae_de3ps_240:not(#\9):not(.awsui_header-cell-text-wrap_1spae_de3ps_245) {
230
+ .awsui_header-cell-text_1spae_1hunm_225:not(#\9):not(.awsui_header-cell-text-wrap_1spae_1hunm_230) {
246
231
  white-space: nowrap;
247
232
  overflow: hidden;
248
233
  text-overflow: ellipsis;
249
234
  }
250
235
 
251
- .awsui_header-cell-ascending_1spae_de3ps_251:not(#\9),
252
- .awsui_header-cell-descending_1spae_de3ps_252:not(#\9) {
236
+ .awsui_header-cell-ascending_1spae_1hunm_236:not(#\9),
237
+ .awsui_header-cell-descending_1spae_1hunm_237:not(#\9) {
253
238
  /* used in test-utils */
254
239
  }
255
240
 
@@ -259,29 +244,29 @@ with the left edge of the table as closely as possible. If the
259
244
  last header cell is sortable the sort icon should align with the
260
245
  settings icon in the pagination slot.
261
246
  */
262
- .awsui_header-cell_1spae_de3ps_93:not(#\9):not(.awsui_is-visual-refresh_1spae_de3ps_262):first-child {
247
+ .awsui_header-cell_1spae_1hunm_93:not(#\9):not(.awsui_is-visual-refresh_1spae_1hunm_247):first-child {
263
248
  padding-left: var(--space-xs-zb16t3, 8px);
264
249
  }
265
250
 
266
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9) {
251
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9) {
267
252
  /*
268
253
  Striped rows requires additional left padding because the
269
254
  shaded background makes the child content appear too close
270
255
  to the table edge.
271
256
  */
272
257
  }
273
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_de3ps_273) {
258
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_1hunm_258) {
274
259
  padding-left: var(--space-xxxs-zbmxqb, 2px);
275
260
  }
276
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_de3ps_273).awsui_sticky-cell-pad-left_1spae_de3ps_125 {
261
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_1hunm_258).awsui_sticky-cell-pad-left_1spae_1hunm_125 {
277
262
  padding-left: var(--space-table-horizontal-8davlm, 20px);
278
263
  }
279
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9):first-child.awsui_has-striped-rows_1spae_de3ps_273 {
264
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9):first-child.awsui_has-striped-rows_1spae_1hunm_258 {
280
265
  padding-left: var(--space-xxs-p8yyaw, 4px);
281
266
  }
282
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9):first-child > .awsui_header-cell-content_1spae_de3ps_179 {
267
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9):first-child > .awsui_header-cell-content_1spae_1hunm_164 {
283
268
  padding-left: 0;
284
269
  }
285
- .awsui_header-cell_1spae_de3ps_93.awsui_is-visual-refresh_1spae_de3ps_262:not(#\9):last-child.awsui_header-cell-sortable_1spae_de3ps_114 {
270
+ .awsui_header-cell_1spae_1hunm_93.awsui_is-visual-refresh_1spae_1hunm_247:not(#\9):last-child.awsui_header-cell-sortable_1spae_1hunm_114 {
286
271
  padding-right: var(--space-xxxs-zbmxqb, 2px);
287
272
  }
@@ -2,29 +2,29 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "header-cell": "awsui_header-cell_1spae_de3ps_93",
6
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_de3ps_105",
7
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_de3ps_108",
8
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_de3ps_108",
9
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_de3ps_111",
10
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_de3ps_114",
11
- "sticky-cell": "awsui_sticky-cell_1spae_de3ps_117",
12
- "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_de3ps_125",
13
- "has-selection": "awsui_has-selection_1spae_de3ps_125",
14
- "sticky-cell-last-left": "awsui_sticky-cell-last-left_1spae_de3ps_128",
15
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_de3ps_132",
16
- "sticky-cell-last-right": "awsui_sticky-cell-last-right_1spae_de3ps_135",
17
- "sorting-icon": "awsui_sorting-icon_1spae_de3ps_165",
18
- "edit-icon": "awsui_edit-icon_1spae_de3ps_173",
19
- "header-cell-content": "awsui_header-cell-content_1spae_de3ps_179",
20
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_de3ps_208",
21
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_de3ps_226",
22
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_de3ps_226",
23
- "header-cell-text": "awsui_header-cell-text_1spae_de3ps_240",
24
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_de3ps_245",
25
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_de3ps_251",
26
- "header-cell-descending": "awsui_header-cell-descending_1spae_de3ps_252",
27
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_de3ps_262",
28
- "has-striped-rows": "awsui_has-striped-rows_1spae_de3ps_273"
5
+ "header-cell": "awsui_header-cell_1spae_1hunm_93",
6
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_1hunm_105",
7
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_1hunm_108",
8
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1hunm_108",
9
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_1hunm_111",
10
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_1hunm_114",
11
+ "sticky-cell": "awsui_sticky-cell_1spae_1hunm_117",
12
+ "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_1hunm_125",
13
+ "has-selection": "awsui_has-selection_1spae_1hunm_125",
14
+ "sticky-cell-last-left": "awsui_sticky-cell-last-left_1spae_1hunm_128",
15
+ "resize-divider": "awsui_resize-divider_1spae_1hunm_132",
16
+ "sticky-cell-last-right": "awsui_sticky-cell-last-right_1spae_1hunm_135",
17
+ "sorting-icon": "awsui_sorting-icon_1spae_1hunm_150",
18
+ "edit-icon": "awsui_edit-icon_1spae_1hunm_158",
19
+ "header-cell-content": "awsui_header-cell-content_1spae_1hunm_164",
20
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1hunm_193",
21
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_1hunm_211",
22
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_1hunm_211",
23
+ "header-cell-text": "awsui_header-cell-text_1spae_1hunm_225",
24
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1hunm_230",
25
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_1hunm_236",
26
+ "header-cell-descending": "awsui_header-cell-descending_1spae_1hunm_237",
27
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_1hunm_247",
28
+ "has-striped-rows": "awsui_has-striped-rows_1spae_1hunm_258"
29
29
  };
30
30
 
@@ -9,13 +9,12 @@ interface TableThElementProps {
9
9
  sortingDisabled?: boolean;
10
10
  hidden?: boolean;
11
11
  colIndex: number;
12
- resizableColumns?: boolean;
13
12
  columnId: PropertyKey;
14
13
  stickyState: StickyColumnsModel;
15
14
  cellRef?: React.RefCallback<HTMLElement>;
16
15
  tableRole: TableRole;
17
16
  children: React.ReactNode;
18
17
  }
19
- export declare function TableThElement({ className, style, sortingStatus, sortingDisabled, hidden, colIndex, resizableColumns, columnId, stickyState, cellRef, tableRole, children, }: TableThElementProps): JSX.Element;
18
+ export declare function TableThElement({ className, style, sortingStatus, sortingDisabled, hidden, colIndex, columnId, stickyState, cellRef, tableRole, children, }: TableThElementProps): JSX.Element;
20
19
  export {};
21
20
  //# sourceMappingURL=th-element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"th-element.d.ts","sourceRoot":"lib/default/","sources":["table/header-cell/th-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAuB,MAAM,mBAAmB,CAAC;AAE5E,OAAO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QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,aAAa,EACb,eAAe,EACf,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,eA8BrB"}
@@ -7,7 +7,7 @@ import { getStickyClassNames } from '../utils';
7
7
  import { useStickyCellStyles } from '../sticky-columns';
8
8
  import { useMergeRefs } from '../../internal/hooks/use-merge-refs';
9
9
  import { getTableColHeaderRoleProps } from '../table-role';
10
- export function TableThElement({ className, style, sortingStatus, sortingDisabled, hidden, colIndex, resizableColumns, columnId, stickyState, cellRef, tableRole, children, }) {
10
+ export function TableThElement({ className, style, sortingStatus, sortingDisabled, hidden, colIndex, columnId, stickyState, cellRef, tableRole, children, }) {
11
11
  const stickyStyles = useStickyCellStyles({
12
12
  stickyColumns: stickyState,
13
13
  columnId,
@@ -15,7 +15,6 @@ export function TableThElement({ className, style, sortingStatus, sortingDisable
15
15
  });
16
16
  const mergedRef = useMergeRefs(stickyStyles.ref, cellRef);
17
17
  return (React.createElement("th", Object.assign({ className: clsx(className, {
18
- [styles['header-cell-resizable']]: !!resizableColumns,
19
18
  [styles['header-cell-sortable']]: sortingStatus,
20
19
  [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',
21
20
  [styles['header-cell-disabled']]: sortingDisabled,
@@ -1 +1 @@
1
- {"version":3,"file":"th-element.js","sourceRoot":"lib/default/","sources":["table/header-cell/th-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IA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,oBAAoB,CAAC,CAAC,EAAE,MAAM;SACvC,EACD,YAAY,CAAC,SAAS,CACvB,EACD,KAAK,kCAAO,KAAK,GAAK,YAAY,CAAC,KAAK,GACxC,GAAG,EAAE,SAAS,IACV,0BAA0B,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,GAErE,QAAQ,CACN,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { SortingStatus } from './utils';\nimport styles from './styles.css.js';\nimport { getStickyClassNames } from '../utils';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { useMergeRefs } from '../../internal/hooks/use-merge-refs';\nimport { TableRole, getTableColHeaderRoleProps } from '../table-role';\n\ninterface TableThElementProps {\n className?: string;\n style?: React.CSSProperties;\n sortingStatus?: SortingStatus;\n sortingDisabled?: boolean;\n hidden?: boolean;\n colIndex: number;\n resizableColumns?: boolean;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef?: React.RefCallback<HTMLElement>;\n tableRole: TableRole;\n children: React.ReactNode;\n}\n\nexport function TableThElement({\n className,\n style,\n sortingStatus,\n sortingDisabled,\n hidden,\n colIndex,\n resizableColumns,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n children,\n}: TableThElementProps) {\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const mergedRef = useMergeRefs(stickyStyles.ref, cellRef);\n\n return (\n <th\n className={clsx(\n className,\n {\n [styles['header-cell-resizable']]: !!resizableColumns,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n },\n stickyStyles.className\n )}\n style={{ ...style, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n >\n {children}\n </th>\n );\n}\n"]}
1
+ {"version":3,"file":"th-element.js","sourceRoot":"lib/default/","sources":["table/header-cell/th-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAsB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAa,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAgBtE,MAAM,UAAU,cAAc,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,aAAa,EACb,eAAe,EACf,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,GACY;IACpB,MAAM,YAAY,GAAG,mBAAmB,CAAC;QACvC,aAAa,EAAE,WAAW;QAC1B,QAAQ;QACR,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC;KAC1D,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAE1D,OAAO,CACL,0CACE,SAAS,EAAE,IAAI,CACb,SAAS,EACT;YACE,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,aAAa;YAC/C,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,aAAa,KAAK,WAAW,IAAI,aAAa,KAAK,YAAY;YAC/F,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,eAAe;YACjD,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,aAAa,KAAK,WAAW;YAChE,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,aAAa,KAAK,YAAY;YAClE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM;SACvC,EACD,YAAY,CAAC,SAAS,CACvB,EACD,KAAK,kCAAO,KAAK,GAAK,YAAY,CAAC,KAAK,GACxC,GAAG,EAAE,SAAS,IACV,0BAA0B,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,GAErE,QAAQ,CACN,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport { SortingStatus } from './utils';\nimport styles from './styles.css.js';\nimport { getStickyClassNames } from '../utils';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { useMergeRefs } from '../../internal/hooks/use-merge-refs';\nimport { TableRole, getTableColHeaderRoleProps } from '../table-role';\n\ninterface TableThElementProps {\n className?: string;\n style?: React.CSSProperties;\n sortingStatus?: SortingStatus;\n sortingDisabled?: boolean;\n hidden?: boolean;\n colIndex: number;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef?: React.RefCallback<HTMLElement>;\n tableRole: TableRole;\n children: React.ReactNode;\n}\n\nexport function TableThElement({\n className,\n style,\n sortingStatus,\n sortingDisabled,\n hidden,\n colIndex,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n children,\n}: TableThElementProps) {\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const mergedRef = useMergeRefs(stickyStyles.ref, cellRef);\n\n return (\n <th\n className={clsx(\n className,\n {\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n },\n stickyStyles.className\n )}\n style={{ ...style, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n >\n {children}\n </th>\n );\n}\n"]}
@@ -191,7 +191,9 @@ export interface TableProps<T = any> extends BaseComponentProps {
191
191
  * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.
192
192
  *
193
193
  * The order of ids doesn't influence the order in which columns are displayed - this is dictated by the `columnDefinitions` property.
194
- * */
194
+ *
195
+ * @deprecated Replaced by `columnDisplay`.
196
+ */
195
197
  visibleColumns?: ReadonlyArray<string>;
196
198
  /**
197
199
  * Fired when the user resizes a table column. The event detail contains an array of column widths in pixels,
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["table/interfaces.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,uBAAuB,GAAG,UAAU,CAAC,uBAAuB,CAAC;AAYpE,MAAM,WAAW,mBAAmB;IAClC,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;CAC9E;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,GA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,MAAM,CAAC;KACnB;IAED,UAAiB,GAAG;QAClB;;;WAGG;QACH,WAAW,IAAI,IAAI,CAAC;QAEpB;;WAEG;QACH,UAAU,CAAC,IAAI,IAAI,CAAC;KACrB;IAED,KAAY,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,IAAI,CAC9D,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAClC,QAAQ,EAAE,SAAS,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE1B,UAAiB,uBAAuB;QACtC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,OAAO,CAAC;KAClB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["table/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler, CancelableEventHandler } from '../internal/events';\nimport { Optional } from '../internal/types';\nimport ColumnDisplayProperties = TableProps.ColumnDisplayProperties;\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface TableForwardRefType {\n <T>(props: TableProps<T> & { ref?: React.Ref<TableProps.Ref> }): JSX.Element;\n}\n\nexport interface TableProps<T = any> extends BaseComponentProps {\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Footer of the table container.\n */\n footer?: React.ReactNode;\n\n /**\n * Displayed when the `items` property is an empty array. Use it to render an empty or no-match state.\n */\n empty?: React.ReactNode;\n\n /**\n * Specifies the data that's displayed in the table rows. Each item contains the data for one row. The display of a row is handled\n * by the `cell` property of each column definition in the `columnDefinitions` property.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the table in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text that's displayed when the table is in a loading state.\n */\n loadingText?: string;\n\n /**\n * Specifies a property that uniquely identifies an individual item.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It's also used to connect `items` and `selectedItems` values when they reference different objects.\n */\n trackBy?: TableProps.TrackBy<T>;\n\n /**\n * The columns configuration object\n * * `id` (string) - Specifies a unique column identifier. The property is used 1) as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering,\n * and 2) to match entries in the `columnDisplay` property, if defined.\n * * `header` (ReactNode) - Determines the display of the column header.\n * * `cell` ((item) => ReactNode) - Determines the display of a cell's content. You receive the current table row\n * item as an argument.\n * * `width` (string | number) - Specifies the column width. Corresponds to the `width` css-property. If the width is not set,\n * the browser automatically adjusts the column width based on the content. When `resizableColumns` property is\n * set to `true`, additional constraints apply: 1) string values are not allowed, and 2) the last visible column always\n * fills the remaining space of the table so the specified width is ignored.\n * * `minWidth` (string | number) - Specifies the minimum column width. Corresponds to the `min-width` css-property. When\n * `resizableColumns` property is set to `true`, additional constraints apply: 1) string values are not allowed,\n * and 2) the column can't resize below than the specified width (defaults to \"120px\"). We recommend that you set a minimum width\n * of at least 176px for columns that are editable.\n * * `maxWidth` (string | number) - Specifies the maximum column width. Corresponds to the `max-width` css-property.\n * Note that when the `resizableColumns` property is set to `true` this property is ignored.\n * * `ariaLabel` (LabelData => string) - An optional function that's called to provide an `aria-label` for the cell header.\n * It receives the current sorting state of this column, the direction it's sorted in, and an indication of\n * whether the sorting is disabled, as three Boolean values: `sorted`, `descending` and `disabled`.\n * We recommend that you use this for sortable columns to provide more meaningful labels based on the\n * current sorting direction.\n * * `sortingField` (string) - Enables default column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. Provide the name of the property within each item that should be used for sorting by this column.\n * For more complex sorting use `sortingComparator` instead.\n * * `sortingComparator` ((T, T) => number) - Enables custom column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. This property accepts a custom comparator that is used to compare two items.\n * The comparator must implement ascending ordering, and the output is inverted automatically in case of descending order.\n * If present, the `sortingField` property is ignored.\n * * `editConfig` (EditConfig) - Enables inline editing in column when present. The value is used to configure the editing behavior.\n * * * `editConfig.ariaLabel` (string) - Specifies a label for the edit control. Visually hidden but read by screen readers.\n * * * `editConfig.errorIconAriaLabel` (string) - Specifies an ariaLabel for the error icon that is displayed when the validation fails.\n * * * `editConfig.editIconAriaLabel` (string) - Specifies an alternate text for the edit icon used in column header.\n * * * `editConfig.constraintText` (string) - Constraint text that is displayed below the edit control.\n * * * `editConfig.validation` ((item, value) => string) - A function that allows you to validate the value of the edit control.\n * Return a string from the function to display an error message. Return `undefined` (or no return) from the function to indicate that the value is valid.\n * * * `editConfig.editingCell` ((item, cellContext) => ReactNode) - Determines the display of a cell's content when inline editing is active on a cell;\n * You receive the current table row `item` and a `cellContext` object as arguments.\n * The `cellContext` object contains the following properties:\n * * * `cellContext.currentValue` - State to keep track of a value in input fields while editing.\n * * * `cellContext.setValue` - Function to update `currentValue`. This should be called when the value in input field changes.\n * * `isRowHeader` (boolean) - Specifies that cells in this column should be used as row headers.\n */\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n /**\n * Specifies the selection type (`'single' | 'multi'`).\n */\n selectionType?: TableProps.SelectionType;\n /**\n * List of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n\n /**\n * Use this slot to add filtering controls to the table.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the table.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the table.\n */\n preferences?: React.ReactNode;\n\n /**\n * Determines whether a given item is disabled. If an item is disabled, the user can't select it.\n */\n isItemDisabled?: TableProps.IsItemDisabled<T>;\n\n /**\n * Specifies if text wraps within table cells. If set to `true`, long text within cells may wrap onto\n * multiple lines instead of being truncated with an ellipsis.\n */\n wrapLines?: boolean;\n\n /**\n * Specifies if table rows alternate being shaded and unshaded. If set to `true`, every other row will be shaded.\n */\n stripedRows?: boolean;\n\n /**\n * Toggles the content density of the table. Defaults to `'comfortable'`.\n */\n contentDensity?: 'comfortable' | 'compact';\n\n /**\n * Specifies if columns can be resized. If set to `true`, users can resize the columns in the table.\n */\n resizableColumns?: boolean;\n\n /**\n * Specifies alternative text for the selection components (checkboxes and radio buttons) as follows:\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Specifies the alternative text for an item.\n * * `allItemsSelectionLabel` ((SelectionState) => string) - Specifies the alternative text for multi-selection column header.\n * * `selectionGroupLabel` (string) - Specifies the alternative text for the whole selection and single-selection column header.\n * It is prefixed to `itemSelectionLabel` and `allItemsSelectionLabel` when they are set.\n * You can use the first argument of type `SelectionState` to access the current selection\n * state of the component (for example, the `selectedItems` list). The `itemSelectionLabel` for individual\n * items also receives the corresponding `Item` object. You can use the `selectionGroupLabel` to\n * add a meaningful description to the whole selection.\n * * `tableLabel` (string) - Provides an alternative text for the table. If you use a header for this table, you may reuse the string\n * to provide a caption-like description. For example, tableLabel=Instances will be announced as 'Instances table'.\n * * `resizerRoleDescription` (string) - Provides role description for table column resizer buttons.\n * * `activateEditLabel` (EditableColumnDefinition, Item) => string -\n * Specifies an alternative text for the edit button in editable cells.\n * * `cancelEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the cancel button in editable cells.\n * * `submitEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the submit button in editable cells.\n * * `successfulEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the success icon in editable cells. This text is also announced to screen readers.\n * * `submittingEditText` (EditableColumnDefinition) => string -\n * Specifies a text that is announced to screen readers when a cell edit operation is submitted.\n * @i18n\n */\n ariaLabels?: TableProps.AriaLabels<T>;\n\n /**\n * Specifies the definition object of the currently sorted column. Make sure you pass an object that's\n * present in the `columnDefinitions` array.\n */\n sortingColumn?: TableProps.SortingColumn<T>;\n /**\n * Specifies whether to use a descending sort order.\n */\n sortingDescending?: boolean;\n /**\n * Specifies if sorting buttons are disabled. For example, use this property\n * to prevent the user from sorting before items are fully loaded.\n */\n sortingDisabled?: boolean;\n\n /**\n * Specifies the number of first and/or last columns that should be sticky.\n *\n * If the available scrollable space is less than a certain threshold, the feature is deactivated.\n *\n * Use it in conjunction with the sticky columns preference of the\n * [collection preferences](/components/collection-preferences/) component.\n *\n */\n stickyColumns?: TableProps.StickyColumns;\n\n /**\n * Specifies an array that represents the table columns in the order in which they will be displayed, together with their visibility.\n *\n * If not set, all columns are displayed and the order is dictated by the `columnDefinitions` property.\n *\n * Use it in conjunction with the content display preference of the [collection preferences](/components/collection-preferences/) component.\n */\n columnDisplay?: ReadonlyArray<ColumnDisplayProperties>;\n\n /**\n * Specifies an array containing the `id`s of visible columns. If not set, all columns are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of ids doesn't influence the order in which columns are displayed - this is dictated by the `columnDefinitions` property.\n * */\n visibleColumns?: ReadonlyArray<string>;\n\n /**\n * Fired when the user resizes a table column. The event detail contains an array of column widths in pixels,\n * including the hidden via preferences columns. Use this event to persist the column widths.\n */\n onColumnWidthsChange?: NonCancelableEventHandler<TableProps.ColumnWidthsChangeDetail>;\n\n /**\n * Called when either the column to sort by or the direction of sorting changes upon user interaction.\n * The event detail contains the current sortingColumn and isDescending.\n */\n onSortingChange?: NonCancelableEventHandler<TableProps.SortingState<T>>;\n\n /**\n * Fired when a user interaction triggers a change in the list of selected items.\n * The event `detail` contains the current list of `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<TableProps.SelectionChangeDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row. The event detail contains the index of the\n * clicked row and the row object itself. Use this event to define a row click behavior.\n */\n onRowClick?: NonCancelableEventHandler<TableProps.OnRowClickDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row with the right mouse click. The event detail\n * contains the index of the clicked row and the row object itself. Use this event to override\n * the default browser context menu behavior.\n */\n onRowContextMenu?: CancelableEventHandler<TableProps.OnRowContextMenuDetail<T>>;\n\n /**\n * If set to `true`, the table header remains visible when the user scrolls down.\n */\n stickyHeader?: boolean;\n\n /**\n * Specifies a vertical offset (in pixels) for the sticky header. For example, use this if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Specify a table variant with one of the following:\n * * `container` - Use this variant to have the table displayed within a container.\n * * `borderless` - Use this variant when the table should have no outer borders or shadow\n * (such as in a dashboard item container).\n * * `embedded` - Use this variant within a parent container (such as a modal, expandable\n * section, container or split panel).\n * **Deprecated**, replaced by `borderless` and `container`.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * * `full-page` – Use this variant when the table is the entire content of a page. Full page variants\n * implement the high contrast header and content behavior automatically.\n * @visualrefresh `embedded`, `stacked`, and `full-page` variants\n */\n variant?: TableProps.Variant;\n\n /**\n * Use this property to inform screen readers how many items there are in a table.\n * It specifies the total count of all items in a table.\n * If there is an unknown total of items in a table, leave this property undefined. */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of items is currently displayed in the table.\n * It specifies the index (1-based) of the first item in the table.\n * If the table has no pagination, leave this property undefined. */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * Requires the properties firstIndex and totalItemsCount to be set correctly.\n */\n renderAriaLive?: (data: TableProps.LiveAnnouncement) => string;\n /**\n * Specifies a function that will be called after user submits an inline edit.\n * Return a promise to keep loading state while the submit request is in progress.\n */\n submitEdit?: TableProps.SubmitEditFunction<T>;\n\n /**\n * Called whenever user cancels an inline edit. Use this function to reset any\n * validation states, or show warning for unsaved changes.\n */\n onEditCancel?: CancelableEventHandler;\n}\n\nexport namespace TableProps {\n export type TrackBy<T> = string | ((item: T) => string);\n\n export interface CellContext<V> {\n currentValue: Optional<V>;\n setValue: (value: V | undefined) => void;\n }\n\n export interface EditConfig<T, V = any> {\n /**\n * Specifies a label for the edit control. Visually hidden but read\n * by screen readers.\n */\n ariaLabel?: string;\n /**\n * Specifies an ariaLabel for the error icon that is displayed when\n * the validation fails.\n */\n errorIconAriaLabel?: string;\n /**\n * Specifies an alternate text for the edit icon used in column header.\n */\n editIconAriaLabel?: string;\n /**\n * Constraint text that is displayed below the edit control.\n */\n constraintText?: string;\n /**\n * A function that allows you to validate the value of the edit control. Return\n * a string from the function to display an error message. Return\n * `undefined` (or no return) from the function to indicate that the value is valid.\n * @param item - The item that is being edited.\n * @param value - The current value of the edit control.\n */\n validation?: (item: T, value: Optional<V>) => Optional<string>;\n\n /**\n * Determines the display of a cell's content when inline edit is active.\n */\n editingCell(item: T, ctx: TableProps.CellContext<any>): React.ReactNode;\n }\n\n export type ColumnDefinition<ItemType> = {\n id?: string;\n header: React.ReactNode;\n ariaLabel?(data: LabelData): string;\n width?: number | string;\n minWidth?: number | string;\n maxWidth?: number | string;\n editConfig?: EditConfig<ItemType>;\n isRowHeader?: boolean;\n cell(item: ItemType): React.ReactNode;\n } & SortingColumn<ItemType>;\n\n export interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n export type SelectionType = 'single' | 'multi';\n export type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n }\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n export type IsItemDisabled<T> = (item: T) => boolean;\n export interface AriaLabels<T> {\n allItemsSelectionLabel?: (data: TableProps.SelectionState<T>) => string;\n itemSelectionLabel?: (data: TableProps.SelectionState<T>, row: T) => string;\n selectionGroupLabel?: string;\n tableLabel?: string;\n resizerRoleDescription?: string;\n // do not use <T> to prevent overly strict validation on consumer end\n // it works, practically, we are only interested in `id` and `header` properties only\n activateEditLabel?: (column: ColumnDefinition<any>, item: T) => string;\n cancelEditLabel?: (column: ColumnDefinition<any>) => string;\n submitEditLabel?: (column: ColumnDefinition<any>) => string;\n submittingEditText?: (column: ColumnDefinition<any>) => string;\n successfulEditLabel?: (column: ColumnDefinition<any>) => string;\n }\n export interface SortingState<T> {\n isDescending?: boolean;\n sortingColumn: SortingColumn<T>;\n }\n export interface SortingColumn<T> {\n sortingField?: string;\n sortingComparator?: (a: T, b: T) => number;\n }\n export interface LabelData {\n sorted: boolean;\n descending: boolean;\n disabled: boolean;\n }\n export interface OnRowClickDetail<T> {\n rowIndex: number;\n item: T;\n }\n export interface OnRowContextMenuDetail<T> {\n rowIndex: number;\n item: T;\n clientX: number;\n clientY: number;\n }\n\n export interface ColumnWidthsChangeDetail {\n widths: ReadonlyArray<number>;\n }\n\n export interface LiveAnnouncement {\n totalItemsCount?: number;\n firstIndex: number;\n lastIndex: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled and you call this function, the table\n * scroll parent scrolls to reveal the first row of the table.\n */\n scrollToTop(): void;\n\n /**\n * Dismiss an inline edit if currently active.\n */\n cancelEdit?(): void;\n }\n\n export type SubmitEditFunction<ItemType, ValueType = unknown> = (\n item: ItemType,\n column: ColumnDefinition<ItemType>,\n newValue: ValueType\n ) => Promise<void> | void;\n\n export interface ColumnDisplayProperties {\n id: string;\n visible: boolean;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["table/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler, CancelableEventHandler } from '../internal/events';\nimport { Optional } from '../internal/types';\nimport ColumnDisplayProperties = TableProps.ColumnDisplayProperties;\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface TableForwardRefType {\n <T>(props: TableProps<T> & { ref?: React.Ref<TableProps.Ref> }): JSX.Element;\n}\n\nexport interface TableProps<T = any> extends BaseComponentProps {\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Footer of the table container.\n */\n footer?: React.ReactNode;\n\n /**\n * Displayed when the `items` property is an empty array. Use it to render an empty or no-match state.\n */\n empty?: React.ReactNode;\n\n /**\n * Specifies the data that's displayed in the table rows. Each item contains the data for one row. The display of a row is handled\n * by the `cell` property of each column definition in the `columnDefinitions` property.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the table in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text that's displayed when the table is in a loading state.\n */\n loadingText?: string;\n\n /**\n * Specifies a property that uniquely identifies an individual item.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It's also used to connect `items` and `selectedItems` values when they reference different objects.\n */\n trackBy?: TableProps.TrackBy<T>;\n\n /**\n * The columns configuration object\n * * `id` (string) - Specifies a unique column identifier. The property is used 1) as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering,\n * and 2) to match entries in the `columnDisplay` property, if defined.\n * * `header` (ReactNode) - Determines the display of the column header.\n * * `cell` ((item) => ReactNode) - Determines the display of a cell's content. You receive the current table row\n * item as an argument.\n * * `width` (string | number) - Specifies the column width. Corresponds to the `width` css-property. If the width is not set,\n * the browser automatically adjusts the column width based on the content. When `resizableColumns` property is\n * set to `true`, additional constraints apply: 1) string values are not allowed, and 2) the last visible column always\n * fills the remaining space of the table so the specified width is ignored.\n * * `minWidth` (string | number) - Specifies the minimum column width. Corresponds to the `min-width` css-property. When\n * `resizableColumns` property is set to `true`, additional constraints apply: 1) string values are not allowed,\n * and 2) the column can't resize below than the specified width (defaults to \"120px\"). We recommend that you set a minimum width\n * of at least 176px for columns that are editable.\n * * `maxWidth` (string | number) - Specifies the maximum column width. Corresponds to the `max-width` css-property.\n * Note that when the `resizableColumns` property is set to `true` this property is ignored.\n * * `ariaLabel` (LabelData => string) - An optional function that's called to provide an `aria-label` for the cell header.\n * It receives the current sorting state of this column, the direction it's sorted in, and an indication of\n * whether the sorting is disabled, as three Boolean values: `sorted`, `descending` and `disabled`.\n * We recommend that you use this for sortable columns to provide more meaningful labels based on the\n * current sorting direction.\n * * `sortingField` (string) - Enables default column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. Provide the name of the property within each item that should be used for sorting by this column.\n * For more complex sorting use `sortingComparator` instead.\n * * `sortingComparator` ((T, T) => number) - Enables custom column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. This property accepts a custom comparator that is used to compare two items.\n * The comparator must implement ascending ordering, and the output is inverted automatically in case of descending order.\n * If present, the `sortingField` property is ignored.\n * * `editConfig` (EditConfig) - Enables inline editing in column when present. The value is used to configure the editing behavior.\n * * * `editConfig.ariaLabel` (string) - Specifies a label for the edit control. Visually hidden but read by screen readers.\n * * * `editConfig.errorIconAriaLabel` (string) - Specifies an ariaLabel for the error icon that is displayed when the validation fails.\n * * * `editConfig.editIconAriaLabel` (string) - Specifies an alternate text for the edit icon used in column header.\n * * * `editConfig.constraintText` (string) - Constraint text that is displayed below the edit control.\n * * * `editConfig.validation` ((item, value) => string) - A function that allows you to validate the value of the edit control.\n * Return a string from the function to display an error message. Return `undefined` (or no return) from the function to indicate that the value is valid.\n * * * `editConfig.editingCell` ((item, cellContext) => ReactNode) - Determines the display of a cell's content when inline editing is active on a cell;\n * You receive the current table row `item` and a `cellContext` object as arguments.\n * The `cellContext` object contains the following properties:\n * * * `cellContext.currentValue` - State to keep track of a value in input fields while editing.\n * * * `cellContext.setValue` - Function to update `currentValue`. This should be called when the value in input field changes.\n * * `isRowHeader` (boolean) - Specifies that cells in this column should be used as row headers.\n */\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n /**\n * Specifies the selection type (`'single' | 'multi'`).\n */\n selectionType?: TableProps.SelectionType;\n /**\n * List of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n\n /**\n * Use this slot to add filtering controls to the table.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the table.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the table.\n */\n preferences?: React.ReactNode;\n\n /**\n * Determines whether a given item is disabled. If an item is disabled, the user can't select it.\n */\n isItemDisabled?: TableProps.IsItemDisabled<T>;\n\n /**\n * Specifies if text wraps within table cells. If set to `true`, long text within cells may wrap onto\n * multiple lines instead of being truncated with an ellipsis.\n */\n wrapLines?: boolean;\n\n /**\n * Specifies if table rows alternate being shaded and unshaded. If set to `true`, every other row will be shaded.\n */\n stripedRows?: boolean;\n\n /**\n * Toggles the content density of the table. Defaults to `'comfortable'`.\n */\n contentDensity?: 'comfortable' | 'compact';\n\n /**\n * Specifies if columns can be resized. If set to `true`, users can resize the columns in the table.\n */\n resizableColumns?: boolean;\n\n /**\n * Specifies alternative text for the selection components (checkboxes and radio buttons) as follows:\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Specifies the alternative text for an item.\n * * `allItemsSelectionLabel` ((SelectionState) => string) - Specifies the alternative text for multi-selection column header.\n * * `selectionGroupLabel` (string) - Specifies the alternative text for the whole selection and single-selection column header.\n * It is prefixed to `itemSelectionLabel` and `allItemsSelectionLabel` when they are set.\n * You can use the first argument of type `SelectionState` to access the current selection\n * state of the component (for example, the `selectedItems` list). The `itemSelectionLabel` for individual\n * items also receives the corresponding `Item` object. You can use the `selectionGroupLabel` to\n * add a meaningful description to the whole selection.\n * * `tableLabel` (string) - Provides an alternative text for the table. If you use a header for this table, you may reuse the string\n * to provide a caption-like description. For example, tableLabel=Instances will be announced as 'Instances table'.\n * * `resizerRoleDescription` (string) - Provides role description for table column resizer buttons.\n * * `activateEditLabel` (EditableColumnDefinition, Item) => string -\n * Specifies an alternative text for the edit button in editable cells.\n * * `cancelEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the cancel button in editable cells.\n * * `submitEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the submit button in editable cells.\n * * `successfulEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the success icon in editable cells. This text is also announced to screen readers.\n * * `submittingEditText` (EditableColumnDefinition) => string -\n * Specifies a text that is announced to screen readers when a cell edit operation is submitted.\n * @i18n\n */\n ariaLabels?: TableProps.AriaLabels<T>;\n\n /**\n * Specifies the definition object of the currently sorted column. Make sure you pass an object that's\n * present in the `columnDefinitions` array.\n */\n sortingColumn?: TableProps.SortingColumn<T>;\n /**\n * Specifies whether to use a descending sort order.\n */\n sortingDescending?: boolean;\n /**\n * Specifies if sorting buttons are disabled. For example, use this property\n * to prevent the user from sorting before items are fully loaded.\n */\n sortingDisabled?: boolean;\n\n /**\n * Specifies the number of first and/or last columns that should be sticky.\n *\n * If the available scrollable space is less than a certain threshold, the feature is deactivated.\n *\n * Use it in conjunction with the sticky columns preference of the\n * [collection preferences](/components/collection-preferences/) component.\n *\n */\n stickyColumns?: TableProps.StickyColumns;\n\n /**\n * Specifies an array that represents the table columns in the order in which they will be displayed, together with their visibility.\n *\n * If not set, all columns are displayed and the order is dictated by the `columnDefinitions` property.\n *\n * Use it in conjunction with the content display preference of the [collection preferences](/components/collection-preferences/) component.\n */\n columnDisplay?: ReadonlyArray<ColumnDisplayProperties>;\n\n /**\n * Specifies an array containing the `id`s of visible columns. If not set, all columns are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of ids doesn't influence the order in which columns are displayed - this is dictated by the `columnDefinitions` property.\n *\n * @deprecated Replaced by `columnDisplay`.\n */\n visibleColumns?: ReadonlyArray<string>;\n\n /**\n * Fired when the user resizes a table column. The event detail contains an array of column widths in pixels,\n * including the hidden via preferences columns. Use this event to persist the column widths.\n */\n onColumnWidthsChange?: NonCancelableEventHandler<TableProps.ColumnWidthsChangeDetail>;\n\n /**\n * Called when either the column to sort by or the direction of sorting changes upon user interaction.\n * The event detail contains the current sortingColumn and isDescending.\n */\n onSortingChange?: NonCancelableEventHandler<TableProps.SortingState<T>>;\n\n /**\n * Fired when a user interaction triggers a change in the list of selected items.\n * The event `detail` contains the current list of `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<TableProps.SelectionChangeDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row. The event detail contains the index of the\n * clicked row and the row object itself. Use this event to define a row click behavior.\n */\n onRowClick?: NonCancelableEventHandler<TableProps.OnRowClickDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row with the right mouse click. The event detail\n * contains the index of the clicked row and the row object itself. Use this event to override\n * the default browser context menu behavior.\n */\n onRowContextMenu?: CancelableEventHandler<TableProps.OnRowContextMenuDetail<T>>;\n\n /**\n * If set to `true`, the table header remains visible when the user scrolls down.\n */\n stickyHeader?: boolean;\n\n /**\n * Specifies a vertical offset (in pixels) for the sticky header. For example, use this if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Specify a table variant with one of the following:\n * * `container` - Use this variant to have the table displayed within a container.\n * * `borderless` - Use this variant when the table should have no outer borders or shadow\n * (such as in a dashboard item container).\n * * `embedded` - Use this variant within a parent container (such as a modal, expandable\n * section, container or split panel).\n * **Deprecated**, replaced by `borderless` and `container`.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * * `full-page` – Use this variant when the table is the entire content of a page. Full page variants\n * implement the high contrast header and content behavior automatically.\n * @visualrefresh `embedded`, `stacked`, and `full-page` variants\n */\n variant?: TableProps.Variant;\n\n /**\n * Use this property to inform screen readers how many items there are in a table.\n * It specifies the total count of all items in a table.\n * If there is an unknown total of items in a table, leave this property undefined. */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of items is currently displayed in the table.\n * It specifies the index (1-based) of the first item in the table.\n * If the table has no pagination, leave this property undefined. */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * Requires the properties firstIndex and totalItemsCount to be set correctly.\n */\n renderAriaLive?: (data: TableProps.LiveAnnouncement) => string;\n /**\n * Specifies a function that will be called after user submits an inline edit.\n * Return a promise to keep loading state while the submit request is in progress.\n */\n submitEdit?: TableProps.SubmitEditFunction<T>;\n\n /**\n * Called whenever user cancels an inline edit. Use this function to reset any\n * validation states, or show warning for unsaved changes.\n */\n onEditCancel?: CancelableEventHandler;\n}\n\nexport namespace TableProps {\n export type TrackBy<T> = string | ((item: T) => string);\n\n export interface CellContext<V> {\n currentValue: Optional<V>;\n setValue: (value: V | undefined) => void;\n }\n\n export interface EditConfig<T, V = any> {\n /**\n * Specifies a label for the edit control. Visually hidden but read\n * by screen readers.\n */\n ariaLabel?: string;\n /**\n * Specifies an ariaLabel for the error icon that is displayed when\n * the validation fails.\n */\n errorIconAriaLabel?: string;\n /**\n * Specifies an alternate text for the edit icon used in column header.\n */\n editIconAriaLabel?: string;\n /**\n * Constraint text that is displayed below the edit control.\n */\n constraintText?: string;\n /**\n * A function that allows you to validate the value of the edit control. Return\n * a string from the function to display an error message. Return\n * `undefined` (or no return) from the function to indicate that the value is valid.\n * @param item - The item that is being edited.\n * @param value - The current value of the edit control.\n */\n validation?: (item: T, value: Optional<V>) => Optional<string>;\n\n /**\n * Determines the display of a cell's content when inline edit is active.\n */\n editingCell(item: T, ctx: TableProps.CellContext<any>): React.ReactNode;\n }\n\n export type ColumnDefinition<ItemType> = {\n id?: string;\n header: React.ReactNode;\n ariaLabel?(data: LabelData): string;\n width?: number | string;\n minWidth?: number | string;\n maxWidth?: number | string;\n editConfig?: EditConfig<ItemType>;\n isRowHeader?: boolean;\n cell(item: ItemType): React.ReactNode;\n } & SortingColumn<ItemType>;\n\n export interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n export type SelectionType = 'single' | 'multi';\n export type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n }\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n export type IsItemDisabled<T> = (item: T) => boolean;\n export interface AriaLabels<T> {\n allItemsSelectionLabel?: (data: TableProps.SelectionState<T>) => string;\n itemSelectionLabel?: (data: TableProps.SelectionState<T>, row: T) => string;\n selectionGroupLabel?: string;\n tableLabel?: string;\n resizerRoleDescription?: string;\n // do not use <T> to prevent overly strict validation on consumer end\n // it works, practically, we are only interested in `id` and `header` properties only\n activateEditLabel?: (column: ColumnDefinition<any>, item: T) => string;\n cancelEditLabel?: (column: ColumnDefinition<any>) => string;\n submitEditLabel?: (column: ColumnDefinition<any>) => string;\n submittingEditText?: (column: ColumnDefinition<any>) => string;\n successfulEditLabel?: (column: ColumnDefinition<any>) => string;\n }\n export interface SortingState<T> {\n isDescending?: boolean;\n sortingColumn: SortingColumn<T>;\n }\n export interface SortingColumn<T> {\n sortingField?: string;\n sortingComparator?: (a: T, b: T) => number;\n }\n export interface LabelData {\n sorted: boolean;\n descending: boolean;\n disabled: boolean;\n }\n export interface OnRowClickDetail<T> {\n rowIndex: number;\n item: T;\n }\n export interface OnRowContextMenuDetail<T> {\n rowIndex: number;\n item: T;\n clientX: number;\n clientY: number;\n }\n\n export interface ColumnWidthsChangeDetail {\n widths: ReadonlyArray<number>;\n }\n\n export interface LiveAnnouncement {\n totalItemsCount?: number;\n firstIndex: number;\n lastIndex: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled and you call this function, the table\n * scroll parent scrolls to reveal the first row of the table.\n */\n scrollToTop(): void;\n\n /**\n * Dismiss an inline edit if currently active.\n */\n cancelEdit?(): void;\n }\n\n export type SubmitEditFunction<ItemType, ValueType = unknown> = (\n item: ItemType,\n column: ColumnDefinition<ItemType>,\n newValue: ValueType\n ) => Promise<void> | void;\n\n export interface ColumnDisplayProperties {\n id: string;\n visible: boolean;\n }\n}\n"]}
@@ -9,6 +9,9 @@ interface ResizerProps {
9
9
  showFocusRing?: boolean;
10
10
  roleDescription?: string;
11
11
  }
12
+ export declare function Divider({ className }: {
13
+ className?: string;
14
+ }): JSX.Element;
12
15
  export declare function Resizer({ onWidthUpdate, onWidthUpdateCommit, ariaLabelledby, minWidth, tabIndex, showFocusRing, focusId, roleDescription, }: ResizerProps): JSX.Element;
13
16
  export declare function ResizeTracker(): JSX.Element;
14
17
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/resizer/index.tsx"],"names":[],"mappings":";AAWA,UAAU,YAAY;IACpB,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAMD,wBAAgB,OAAO,CAAC,EACtB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,QAA+B,EAC/B,QAAQ,EACR,aAAa,EACb,OAAO,EACP,eAAe,GAChB,EAAE,YAAY,eAmMd;AAED,wBAAgB,aAAa,gBAE5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["table/resizer/index.tsx"],"names":[],"mappings":";AAWA,UAAU,YAAY;IACpB,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAMD,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,eAE5D;AAED,wBAAgB,OAAO,CAAC,EACtB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,QAA+B,EAC/B,QAAQ,EACR,aAAa,EACb,OAAO,EACP,eAAe,GAChB,EAAE,YAAY,eAmMd;AAED,wBAAgB,aAAa,gBAE5B"}
@@ -11,6 +11,9 @@ import { getHeaderWidth, getResizerElements } from './resizer-lookup';
11
11
  const AUTO_GROW_START_TIME = 10;
12
12
  const AUTO_GROW_INTERVAL = 10;
13
13
  const AUTO_GROW_INCREMENT = 5;
14
+ export function Divider({ className }) {
15
+ return React.createElement("span", { className: clsx(styles.divider, styles['divider-disabled'], className) });
16
+ }
14
17
  export function Resizer({ onWidthUpdate, onWidthUpdateCommit, ariaLabelledby, minWidth = DEFAULT_COLUMN_WIDTH, tabIndex, showFocusRing, focusId, roleDescription, }) {
15
18
  onWidthUpdate = useStableCallback(onWidthUpdate);
16
19
  onWidthUpdateCommit = useStableCallback(onWidthUpdateCommit);
@@ -129,7 +132,7 @@ export function Resizer({ onWidthUpdate, onWidthUpdateCommit, ariaLabelledby, mi
129
132
  };
130
133
  }, [minWidth, isDragging, isKeyboardDragging, resizerHasFocus, onWidthUpdate, onWidthUpdateCommit]);
131
134
  return (React.createElement(React.Fragment, null,
132
- React.createElement("button", { ref: resizerToggleRef, className: clsx(styles.resizer, isDragging && styles['resizer-active'], (resizerHasFocus || showFocusRing || isKeyboardDragging) && styles['has-focus']), onMouseDown: event => {
135
+ React.createElement("button", { ref: resizerToggleRef, className: clsx(styles.resizer, (resizerHasFocus || showFocusRing || isKeyboardDragging) && styles['has-focus']), onMouseDown: event => {
133
136
  if (event.button !== 0) {
134
137
  return;
135
138
  }
@@ -152,7 +155,7 @@ export function Resizer({ onWidthUpdate, onWidthUpdateCommit, ariaLabelledby, mi
152
155
  setResizerHasFocus(false);
153
156
  }
154
157
  }, "aria-roledescription": roleDescription, "aria-labelledby": ariaLabelledby, tabIndex: tabIndex, "data-focus-id": focusId }),
155
- React.createElement("span", { ref: resizerSeparatorRef, id: separatorId, role: "separator", tabIndex: -1, "aria-hidden": !isKeyboardDragging, "aria-orientation": "vertical", "aria-valuenow": headerCellWidth, "aria-valuetext": headerCellWidth.toFixed(0), "aria-valuemin": minWidth, "data-focus-id": focusId, onBlur: () => {
158
+ React.createElement("span", { className: clsx(styles.divider, isDragging && styles['divider-active']), ref: resizerSeparatorRef, id: separatorId, role: "separator", tabIndex: -1, "aria-hidden": !isKeyboardDragging, "aria-orientation": "vertical", "aria-valuenow": headerCellWidth, "aria-valuetext": headerCellWidth.toFixed(0), "aria-valuemin": minWidth, "data-focus-id": focusId, onBlur: () => {
156
159
  setResizerHasFocus(false);
157
160
  if (isKeyboardDragging) {
158
161
  setIsKeyboardDragging(false);