@cloudscape-design/components 3.0.253 → 3.0.255
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/cards/index.js +3 -3
- package/cards/index.js.map +1 -1
- package/cards/interfaces.d.ts +3 -0
- package/cards/interfaces.d.ts.map +1 -1
- package/cards/interfaces.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/link/interfaces.d.ts +4 -3
- package/link/interfaces.d.ts.map +1 -1
- package/link/interfaces.js.map +1 -1
- package/package.json +1 -1
- package/table/body-cell/index.d.ts.map +1 -1
- package/table/body-cell/index.js +8 -5
- package/table/body-cell/index.js.map +1 -1
- package/table/body-cell/styles.css.js +18 -18
- package/table/body-cell/styles.scoped.css +64 -52
- package/table/body-cell/styles.selectors.js +18 -18
- package/table/body-cell/td-element.d.ts +2 -0
- package/table/body-cell/td-element.d.ts.map +1 -1
- package/table/body-cell/td-element.js +2 -2
- package/table/body-cell/td-element.js.map +1 -1
- package/test-utils/dom/table/index.d.ts +7 -0
- package/test-utils/dom/table/index.js +10 -0
- package/test-utils/dom/table/index.js.map +1 -1
- package/test-utils/selectors/table/index.d.ts +7 -0
- package/test-utils/selectors/table/index.js +10 -0
- package/test-utils/selectors/table/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -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_body-
|
|
93
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9) {
|
|
94
94
|
box-sizing: border-box;
|
|
95
95
|
padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
|
|
96
96
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
@@ -99,19 +99,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
99
99
|
word-wrap: break-word;
|
|
100
100
|
border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
101
101
|
}
|
|
102
|
-
.awsui_body-
|
|
102
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_1tfsn_102) {
|
|
103
103
|
white-space: nowrap;
|
|
104
104
|
overflow: hidden;
|
|
105
105
|
text-overflow: ellipsis;
|
|
106
106
|
}
|
|
107
|
-
.awsui_body-
|
|
107
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9):first-child {
|
|
108
108
|
border-left: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
109
109
|
}
|
|
110
|
-
.awsui_body-
|
|
110
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9):last-child {
|
|
111
111
|
border-right: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
112
112
|
padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
113
113
|
}
|
|
114
|
-
.awsui_body-
|
|
114
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):first-child {
|
|
115
115
|
/*
|
|
116
116
|
Striped rows requires additional left padding because the
|
|
117
117
|
shaded background makes the child content appear too close
|
|
@@ -123,85 +123,85 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
123
123
|
that the placeholder border would consume.
|
|
124
124
|
*/
|
|
125
125
|
}
|
|
126
|
-
.awsui_body-
|
|
126
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1tfsn_126) {
|
|
127
127
|
padding-left: var(--space-xxxs-k2w98v, 2px);
|
|
128
128
|
}
|
|
129
|
-
.awsui_body-
|
|
129
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1tfsn_126):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129).awsui_body-cell-editable_c6tup_1tfsn_129:hover {
|
|
130
130
|
padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
|
|
131
131
|
}
|
|
132
|
-
.awsui_body-
|
|
132
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_1tfsn_126 {
|
|
133
133
|
padding-left: var(--space-xxs-ynfts5, 4px);
|
|
134
134
|
}
|
|
135
|
-
.awsui_body-
|
|
135
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_1tfsn_135):not(.awsui_body-cell-editable_c6tup_1tfsn_129) {
|
|
136
136
|
border-left: none;
|
|
137
137
|
}
|
|
138
|
-
.awsui_body-
|
|
138
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_1tfsn_114) {
|
|
139
139
|
padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
140
140
|
}
|
|
141
|
-
.awsui_body-cell-first-
|
|
141
|
+
.awsui_body-cell-first-row_c6tup_1tfsn_141:not(#\9) {
|
|
142
142
|
border-top: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
143
143
|
}
|
|
144
|
-
.awsui_body-cell-last-
|
|
144
|
+
.awsui_body-cell-last-row_c6tup_1tfsn_144:not(#\9):not(.awsui_body-cell-selected_c6tup_1tfsn_144):not(.awsui_has-footer_c6tup_1tfsn_144) {
|
|
145
145
|
border-bottom: var(--border-item-width-qbbbsa, 2px) solid transparent;
|
|
146
146
|
}
|
|
147
|
-
.awsui_body-cell-last-
|
|
147
|
+
.awsui_body-cell-last-row_c6tup_1tfsn_144:not(#\9):not(.awsui_body-cell-selected_c6tup_1tfsn_144).awsui_has-footer_c6tup_1tfsn_144 {
|
|
148
148
|
/*
|
|
149
149
|
Add a bottom border to the body cells of the last row as a separator between the
|
|
150
150
|
table and the footer
|
|
151
151
|
*/
|
|
152
152
|
border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
153
153
|
}
|
|
154
|
-
.awsui_body-cell-
|
|
154
|
+
.awsui_body-cell-shaded_c6tup_1tfsn_154:not(#\9) {
|
|
155
155
|
background: var(--color-background-cell-shaded-26ubfj, #f8f8f8);
|
|
156
156
|
}
|
|
157
|
-
.awsui_body-cell-
|
|
157
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144:not(#\9) {
|
|
158
158
|
background-color: var(--color-background-item-selected-ebt4bi, #f2f8fd);
|
|
159
159
|
border-top: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
160
160
|
border-bottom: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
161
161
|
padding-bottom: var(--space-scaled-xs-6859qs, 8px);
|
|
162
162
|
}
|
|
163
|
-
.awsui_body-cell-
|
|
163
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144:not(#\9):first-child {
|
|
164
164
|
border-left: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
165
165
|
border-radius: var(--border-radius-item-u2ibpi, 8px) 0 0 var(--border-radius-item-u2ibpi, 8px);
|
|
166
166
|
}
|
|
167
|
-
.awsui_body-cell-
|
|
167
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144:not(#\9):last-child {
|
|
168
168
|
border-right: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
169
169
|
border-radius: 0 var(--border-radius-item-u2ibpi, 8px) var(--border-radius-item-u2ibpi, 8px) 0;
|
|
170
170
|
}
|
|
171
|
-
.awsui_body-cell-
|
|
171
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144:not(#\9):not(:first-child) {
|
|
172
172
|
padding-top: calc(
|
|
173
173
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
|
-
.awsui_body-
|
|
176
|
+
.awsui_body-cell_c6tup_1tfsn_93:not(#\9):not(.awsui_body-cell-selected_c6tup_1tfsn_144).awsui_body-cell-next-selected_c6tup_1tfsn_176 {
|
|
177
177
|
border-bottom: 0;
|
|
178
178
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
|
|
179
179
|
}
|
|
180
|
-
.awsui_body-cell-
|
|
180
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-prev-selected_c6tup_1tfsn_180:not(#\9) {
|
|
181
181
|
padding-top: calc(
|
|
182
182
|
var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
|
|
183
183
|
);
|
|
184
184
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-jgzhnb, #0972d3);
|
|
185
185
|
}
|
|
186
|
-
.awsui_body-cell-
|
|
186
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-next-selected_c6tup_1tfsn_176:not(#\9) {
|
|
187
187
|
border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
|
|
188
188
|
}
|
|
189
|
-
.awsui_body-cell-
|
|
189
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-next-selected_c6tup_1tfsn_176:not(#\9):first-child {
|
|
190
190
|
border-bottom-left-radius: 0;
|
|
191
191
|
}
|
|
192
|
-
.awsui_body-cell-
|
|
192
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-next-selected_c6tup_1tfsn_176:not(#\9):last-child {
|
|
193
193
|
border-bottom-right-radius: 0;
|
|
194
194
|
}
|
|
195
|
-
.awsui_body-cell-
|
|
195
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-prev-selected_c6tup_1tfsn_180:not(#\9):first-child {
|
|
196
196
|
border-top-left-radius: 0;
|
|
197
197
|
}
|
|
198
|
-
.awsui_body-cell-
|
|
198
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144.awsui_body-cell-prev-selected_c6tup_1tfsn_180:not(#\9):last-child {
|
|
199
199
|
border-top-right-radius: 0;
|
|
200
200
|
}
|
|
201
|
-
.awsui_body-cell-
|
|
201
|
+
.awsui_body-cell-selected_c6tup_1tfsn_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_1tfsn_180) {
|
|
202
202
|
padding-top: var(--space-scaled-xs-6859qs, 8px);
|
|
203
203
|
}
|
|
204
|
-
.awsui_body-cell-
|
|
204
|
+
.awsui_body-cell-editor_c6tup_1tfsn_204:not(#\9) {
|
|
205
205
|
top: 0;
|
|
206
206
|
right: 0;
|
|
207
207
|
bottom: 0;
|
|
@@ -209,41 +209,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
209
209
|
display: flex;
|
|
210
210
|
align-items: center;
|
|
211
211
|
justify-content: flex-end;
|
|
212
|
-
|
|
212
|
+
cursor: pointer;
|
|
213
|
+
outline: 0;
|
|
214
|
+
background: 0;
|
|
215
|
+
border: 0;
|
|
216
|
+
padding: 0;
|
|
217
|
+
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px));
|
|
218
|
+
color: var(--color-text-button-normal-default-u8647m, #0972d3);
|
|
219
|
+
}
|
|
220
|
+
.awsui_body-cell-editor_c6tup_1tfsn_204:not(#\9):hover {
|
|
221
|
+
color: var(--color-text-button-normal-hover-kxmvcc, #033160);
|
|
222
|
+
}
|
|
223
|
+
.awsui_body-cell-editor_c6tup_1tfsn_204:not(#\9):active {
|
|
224
|
+
color: var(--color-text-button-normal-active-6obrzh, #033160);
|
|
213
225
|
}
|
|
214
|
-
.awsui_body-cell-editor-
|
|
226
|
+
.awsui_body-cell-editor-form_c6tup_1tfsn_226:not(#\9) {
|
|
215
227
|
margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
|
|
216
228
|
}
|
|
217
|
-
.awsui_is-visual-
|
|
229
|
+
.awsui_is-visual-refresh_c6tup_1tfsn_114.awsui_body-cell_c6tup_1tfsn_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_1tfsn_126 > .awsui_body-cell-editor-form_c6tup_1tfsn_226 {
|
|
218
230
|
margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
219
231
|
}
|
|
220
|
-
.awsui_is-visual-
|
|
232
|
+
.awsui_is-visual-refresh_c6tup_1tfsn_114.awsui_body-cell_c6tup_1tfsn_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1tfsn_126) > .awsui_body-cell-editor-form_c6tup_1tfsn_226 {
|
|
221
233
|
margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
|
|
222
234
|
}
|
|
223
|
-
.awsui_body-cell-editor-
|
|
235
|
+
.awsui_body-cell-editor-row_c6tup_1tfsn_235:not(#\9) {
|
|
224
236
|
display: flex;
|
|
225
237
|
flex-flow: row nowrap;
|
|
226
238
|
align-items: center;
|
|
227
239
|
justify-content: space-between;
|
|
228
240
|
column-gap: var(--space-xxs-ynfts5, 4px);
|
|
229
241
|
}
|
|
230
|
-
.awsui_body-cell-editor-
|
|
242
|
+
.awsui_body-cell-editor-row_c6tup_1tfsn_235 > :not(#\9):not(:last-child) {
|
|
231
243
|
flex-grow: 1;
|
|
232
244
|
}
|
|
233
|
-
.awsui_body-cell-editor-
|
|
245
|
+
.awsui_body-cell-editor-controls_c6tup_1tfsn_245:not(#\9) {
|
|
234
246
|
flex-shrink: 0;
|
|
235
247
|
}
|
|
236
|
-
.awsui_body-
|
|
248
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9) {
|
|
237
249
|
position: relative;
|
|
238
250
|
cursor: pointer;
|
|
239
251
|
}
|
|
240
|
-
.awsui_body-
|
|
252
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129.awsui_body-cell-edit-active_c6tup_1tfsn_129:not(#\9) {
|
|
241
253
|
overflow: visible;
|
|
242
254
|
}
|
|
243
|
-
.awsui_body-
|
|
255
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129) > .awsui_body-cell-editor_c6tup_1tfsn_204 {
|
|
244
256
|
opacity: 0;
|
|
245
257
|
}
|
|
246
|
-
.awsui_body-
|
|
258
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover {
|
|
247
259
|
position: relative;
|
|
248
260
|
background-color: var(--color-background-dropdown-item-hover-mqsxkv, #f4f4f4);
|
|
249
261
|
border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-m3lmsh, #7d8998);
|
|
@@ -251,39 +263,39 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
251
263
|
right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
|
|
252
264
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
253
265
|
}
|
|
254
|
-
.awsui_body-
|
|
266
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover > .awsui_body-cell-editor_c6tup_1tfsn_204 {
|
|
255
267
|
opacity: 1;
|
|
256
268
|
}
|
|
257
|
-
.awsui_body-
|
|
269
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover:first-child {
|
|
258
270
|
left: 0;
|
|
259
271
|
right: 0;
|
|
260
272
|
}
|
|
261
|
-
.awsui_body-
|
|
262
|
-
padding-right: calc(var(--space-xs-rsr2qu, 8px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
|
|
273
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover > .awsui_body-cell-editor_c6tup_1tfsn_204 {
|
|
274
|
+
padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
|
|
263
275
|
}
|
|
264
|
-
.awsui_body-
|
|
276
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover.awsui_body-cell-last-row_c6tup_1tfsn_144.awsui_body-cell-selected_c6tup_1tfsn_144, .awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover.awsui_body-cell-next-selected_c6tup_1tfsn_176 {
|
|
265
277
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
266
278
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
|
|
267
279
|
}
|
|
268
|
-
.awsui_body-
|
|
280
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover.awsui_body-cell-last-row_c6tup_1tfsn_144:not(.awsui_body-cell-selected_c6tup_1tfsn_144) {
|
|
269
281
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
270
282
|
}
|
|
271
|
-
.awsui_body-
|
|
283
|
+
.awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover.awsui_body-cell-first-row_c6tup_1tfsn_141:not(.awsui_body-cell-selected_c6tup_1tfsn_144) {
|
|
272
284
|
padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
273
285
|
padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
|
|
274
286
|
}
|
|
275
|
-
body[data-awsui-focus-visible=true] .awsui_body-
|
|
287
|
+
body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):focus-within {
|
|
276
288
|
padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
|
|
277
289
|
position: relative;
|
|
278
290
|
}
|
|
279
|
-
body[data-awsui-focus-visible=true] .awsui_body-
|
|
291
|
+
body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):focus-within > .awsui_body-cell-editor_c6tup_1tfsn_204 {
|
|
280
292
|
opacity: 1;
|
|
281
293
|
}
|
|
282
|
-
body[data-awsui-focus-visible=true] .awsui_body-
|
|
294
|
+
body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):focus-within {
|
|
283
295
|
outline: 2px dotted transparent;
|
|
284
296
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
|
|
285
297
|
}
|
|
286
|
-
body[data-awsui-focus-visible=true] .awsui_body-
|
|
298
|
+
body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_1tfsn_93.awsui_body-cell-editable_c6tup_1tfsn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):focus-within::before {
|
|
287
299
|
content: " ";
|
|
288
300
|
display: block;
|
|
289
301
|
position: absolute;
|
|
@@ -294,14 +306,14 @@ body[data-awsui-focus-visible=true] .awsui_body-cell_c6tup_1eoa3_93.awsui_body-c
|
|
|
294
306
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
295
307
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
296
308
|
}
|
|
297
|
-
.awsui_body-cell-
|
|
309
|
+
.awsui_body-cell-editable_c6tup_1tfsn_129.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover:first-child {
|
|
298
310
|
border-top-left-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
299
311
|
border-bottom-left-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
300
312
|
}
|
|
301
|
-
.awsui_body-cell-
|
|
313
|
+
.awsui_body-cell-editable_c6tup_1tfsn_129.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover:last-child {
|
|
302
314
|
border-top-right-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
303
315
|
border-bottom-right-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
304
316
|
}
|
|
305
|
-
.awsui_body-cell-
|
|
317
|
+
.awsui_body-cell-editable_c6tup_1tfsn_129.awsui_is-visual-refresh_c6tup_1tfsn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1tfsn_129):hover.awsui_body-cell-first-row_c6tup_1tfsn_141 > .awsui_body-cell-editor_c6tup_1tfsn_204 {
|
|
306
318
|
padding-top: var(--border-divider-list-width-hacikr, 1px);
|
|
307
319
|
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"body-cell": "awsui_body-
|
|
6
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
7
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
8
|
-
"has-striped-rows": "awsui_has-striped-
|
|
9
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
10
|
-
"body-cell-editable": "awsui_body-cell-
|
|
11
|
-
"has-selection": "awsui_has-
|
|
12
|
-
"body-cell-first-row": "awsui_body-cell-first-
|
|
13
|
-
"body-cell-last-row": "awsui_body-cell-last-
|
|
14
|
-
"body-cell-selected": "awsui_body-cell-
|
|
15
|
-
"has-footer": "awsui_has-
|
|
16
|
-
"body-cell-shaded": "awsui_body-cell-
|
|
17
|
-
"body-cell-next-selected": "awsui_body-cell-next-
|
|
18
|
-
"body-cell-prev-selected": "awsui_body-cell-prev-
|
|
19
|
-
"body-cell-editor": "awsui_body-cell-
|
|
20
|
-
"body-cell-editor-form": "awsui_body-cell-editor-
|
|
21
|
-
"body-cell-editor-row": "awsui_body-cell-editor-
|
|
22
|
-
"body-cell-editor-controls": "awsui_body-cell-editor-
|
|
5
|
+
"body-cell": "awsui_body-cell_c6tup_1tfsn_93",
|
|
6
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_1tfsn_102",
|
|
7
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_1tfsn_114",
|
|
8
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_1tfsn_126",
|
|
9
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_1tfsn_129",
|
|
10
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_1tfsn_129",
|
|
11
|
+
"has-selection": "awsui_has-selection_c6tup_1tfsn_135",
|
|
12
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_1tfsn_141",
|
|
13
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_1tfsn_144",
|
|
14
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_1tfsn_144",
|
|
15
|
+
"has-footer": "awsui_has-footer_c6tup_1tfsn_144",
|
|
16
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_1tfsn_154",
|
|
17
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1tfsn_176",
|
|
18
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1tfsn_180",
|
|
19
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_1tfsn_204",
|
|
20
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_1tfsn_226",
|
|
21
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_1tfsn_235",
|
|
22
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_1tfsn_245"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -10,6 +10,8 @@ export interface TableTdElementProps {
|
|
|
10
10
|
isPrevSelected: boolean;
|
|
11
11
|
nativeAttributes?: Omit<React.HTMLAttributes<HTMLTableCellElement>, 'style' | 'className' | 'onClick'>;
|
|
12
12
|
onClick?: () => void;
|
|
13
|
+
onMouseEnter?: () => void;
|
|
14
|
+
onMouseLeave?: () => void;
|
|
13
15
|
children?: React.ReactNode;
|
|
14
16
|
isEvenRow?: boolean;
|
|
15
17
|
stripedRows?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"td-element.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACvG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"td-element.d.ts","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACvG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,kGAoD1B,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import styles from './styles.css.js';
|
|
6
|
-
export const TableTdElement = React.forwardRef(({ className, style, children, wrapLines, isFirstRow, isLastRow, isSelected, isNextSelected, isPrevSelected, nativeAttributes, onClick, isEvenRow, stripedRows, isVisualRefresh, hasSelection, hasFooter, }, ref) => {
|
|
7
|
-
return (React.createElement("td", Object.assign({ style: style, className: clsx(className, styles['body-cell'], wrapLines && styles['body-cell-wrap'], isFirstRow && styles['body-cell-first-row'], isLastRow && styles['body-cell-last-row'], isSelected && styles['body-cell-selected'], isNextSelected && styles['body-cell-next-selected'], isPrevSelected && styles['body-cell-prev-selected'], !isEvenRow && stripedRows && styles['body-cell-shaded'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], hasSelection && styles['has-selection'], hasFooter && styles['has-footer']), onClick: onClick, ref: ref }, nativeAttributes), children));
|
|
6
|
+
export const TableTdElement = React.forwardRef(({ className, style, children, wrapLines, isFirstRow, isLastRow, isSelected, isNextSelected, isPrevSelected, nativeAttributes, onClick, onMouseEnter, onMouseLeave, isEvenRow, stripedRows, isVisualRefresh, hasSelection, hasFooter, }, ref) => {
|
|
7
|
+
return (React.createElement("td", Object.assign({ style: style, className: clsx(className, styles['body-cell'], wrapLines && styles['body-cell-wrap'], isFirstRow && styles['body-cell-first-row'], isLastRow && styles['body-cell-last-row'], isSelected && styles['body-cell-selected'], isNextSelected && styles['body-cell-next-selected'], isPrevSelected && styles['body-cell-prev-selected'], !isEvenRow && stripedRows && styles['body-cell-shaded'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], hasSelection && styles['has-selection'], hasFooter && styles['has-footer']), onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ref: ref }, nativeAttributes), children));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=td-element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"td-element.js","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"td-element.js","sourceRoot":"lib/default/","sources":["table/body-cell/td-element.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAuBrC,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAC5C,CACE,EACE,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,WAAW,EACX,eAAe,EACf,YAAY,EACZ,SAAS,GACV,EACD,GAAG,EACH,EAAE;IACF,OAAO,CACL,0CACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAI,CACb,SAAS,EACT,MAAM,CAAC,WAAW,CAAC,EACnB,SAAS,IAAI,MAAM,CAAC,gBAAgB,CAAC,EACrC,UAAU,IAAI,MAAM,CAAC,qBAAqB,CAAC,EAC3C,SAAS,IAAI,MAAM,CAAC,oBAAoB,CAAC,EACzC,UAAU,IAAI,MAAM,CAAC,oBAAoB,CAAC,EAC1C,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,cAAc,IAAI,MAAM,CAAC,yBAAyB,CAAC,EACnD,CAAC,SAAS,IAAI,WAAW,IAAI,MAAM,CAAC,kBAAkB,CAAC,EACvD,WAAW,IAAI,MAAM,CAAC,kBAAkB,CAAC,EACzC,eAAe,IAAI,MAAM,CAAC,mBAAmB,CAAC,EAC9C,YAAY,IAAI,MAAM,CAAC,eAAe,CAAC,EACvC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,CAClC,EACD,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,GAAG,IACJ,gBAAgB,GAEnB,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CACF,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 styles from './styles.css.js';\n\nexport interface TableTdElementProps {\n className?: string;\n style?: React.CSSProperties;\n wrapLines: boolean | undefined;\n isFirstRow: boolean;\n isLastRow: boolean;\n isSelected: boolean;\n isNextSelected: boolean;\n isPrevSelected: boolean;\n nativeAttributes?: Omit<React.HTMLAttributes<HTMLTableCellElement>, 'style' | 'className' | 'onClick'>;\n onClick?: () => void;\n onMouseEnter?: () => void;\n onMouseLeave?: () => void;\n children?: React.ReactNode;\n isEvenRow?: boolean;\n stripedRows?: boolean;\n hasSelection?: boolean;\n hasFooter?: boolean;\n isVisualRefresh?: boolean;\n}\n\nexport const TableTdElement = React.forwardRef<HTMLTableCellElement, TableTdElementProps>(\n (\n {\n className,\n style,\n children,\n wrapLines,\n isFirstRow,\n isLastRow,\n isSelected,\n isNextSelected,\n isPrevSelected,\n nativeAttributes,\n onClick,\n onMouseEnter,\n onMouseLeave,\n isEvenRow,\n stripedRows,\n isVisualRefresh,\n hasSelection,\n hasFooter,\n },\n ref\n ) => {\n return (\n <td\n style={style}\n className={clsx(\n className,\n styles['body-cell'],\n wrapLines && styles['body-cell-wrap'],\n isFirstRow && styles['body-cell-first-row'],\n isLastRow && styles['body-cell-last-row'],\n isSelected && styles['body-cell-selected'],\n isNextSelected && styles['body-cell-next-selected'],\n isPrevSelected && styles['body-cell-prev-selected'],\n !isEvenRow && stripedRows && styles['body-cell-shaded'],\n stripedRows && styles['has-striped-rows'],\n isVisualRefresh && styles['is-visual-refresh'],\n hasSelection && styles['has-selection'],\n hasFooter && styles['has-footer']\n )}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n ref={ref}\n {...nativeAttributes}\n >\n {children}\n </td>\n );\n }\n);\n"]}
|
|
@@ -56,6 +56,13 @@ export default class TableWrapper extends ComponentWrapper {
|
|
|
56
56
|
findTextFilter(): TextFilterWrapper | null;
|
|
57
57
|
findCollectionPreferences(): CollectionPreferencesWrapper | null;
|
|
58
58
|
findPagination(): PaginationWrapper | null;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the button that activates inline editing for a table cell based on given row and column indices.
|
|
61
|
+
*
|
|
62
|
+
* @param rowIndex 1-based index of the row of the cell to select.
|
|
63
|
+
* @param columnIndex 1-based index of the column of the cell to select.
|
|
64
|
+
*/
|
|
65
|
+
findEditCellButton(rowIndex: number, columnIndex: number): ElementWrapper | null;
|
|
59
66
|
findEditingCell(): ElementWrapper | null;
|
|
60
67
|
private _findEditingCellControls;
|
|
61
68
|
findEditingCellSaveButton(): ElementWrapper | null;
|
|
@@ -115,6 +115,16 @@ class TableWrapper extends dom_1.ComponentWrapper {
|
|
|
115
115
|
findPagination() {
|
|
116
116
|
return this.findComponent(`.${styles_selectors_js_1.default['tools-pagination']}`, pagination_1.default);
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Returns the button that activates inline editing for a table cell based on given row and column indices.
|
|
120
|
+
*
|
|
121
|
+
* @param rowIndex 1-based index of the row of the cell to select.
|
|
122
|
+
* @param columnIndex 1-based index of the column of the cell to select.
|
|
123
|
+
*/
|
|
124
|
+
findEditCellButton(rowIndex, columnIndex) {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor'])) !== null && _b !== void 0 ? _b : null;
|
|
127
|
+
}
|
|
118
128
|
findEditingCell() {
|
|
119
129
|
return this.findNativeTable().findByClassName(styles_selectors_js_3.default['body-cell-edit-active']);
|
|
120
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,4EAAwD;AACxD,wFAA8E;AAC9E,sFAA0E;AAC1E,8FAAmF;AACnF,oFAAuE;AACvE,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAE/C,MAAqB,YAAa,SAAQ,sBAAgB;IAA1D;;QAGU,qBAAgB,GAAG,IAAI,mBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;
|
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6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -56,6 +56,13 @@ export default class TableWrapper extends ComponentWrapper {
|
|
|
56
56
|
findTextFilter(): TextFilterWrapper;
|
|
57
57
|
findCollectionPreferences(): CollectionPreferencesWrapper;
|
|
58
58
|
findPagination(): PaginationWrapper;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the button that activates inline editing for a table cell based on given row and column indices.
|
|
61
|
+
*
|
|
62
|
+
* @param rowIndex 1-based index of the row of the cell to select.
|
|
63
|
+
* @param columnIndex 1-based index of the column of the cell to select.
|
|
64
|
+
*/
|
|
65
|
+
findEditCellButton(rowIndex: number, columnIndex: number): ElementWrapper;
|
|
59
66
|
findEditingCell(): ElementWrapper;
|
|
60
67
|
private _findEditingCellControls;
|
|
61
68
|
findEditingCellSaveButton(): ElementWrapper;
|
|
@@ -115,6 +115,16 @@ class TableWrapper extends selectors_1.ComponentWrapper {
|
|
|
115
115
|
findPagination() {
|
|
116
116
|
return this.findComponent(`.${styles_selectors_js_1.default['tools-pagination']}`, pagination_1.default);
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Returns the button that activates inline editing for a table cell based on given row and column indices.
|
|
120
|
+
*
|
|
121
|
+
* @param rowIndex 1-based index of the row of the cell to select.
|
|
122
|
+
* @param columnIndex 1-based index of the column of the cell to select.
|
|
123
|
+
*/
|
|
124
|
+
findEditCellButton(rowIndex, columnIndex) {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
return (_b = (_a = this.findBodyCell(rowIndex, columnIndex)) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor'])) !== null && _b !== void 0 ? _b : null;
|
|
127
|
+
}
|
|
118
128
|
findEditingCell() {
|
|
119
129
|
return this.findNativeTable().findByClassName(styles_selectors_js_3.default['body-cell-edit-active']);
|
|
120
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,4EAAwD;AACxD,wFAA8E;AAC9E,sFAA0E;AAC1E,8FAAmF;AACnF,oFAAuE;AACvE,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAC/C,MAAqB,YAAa,SAAQ,4BAAgB;IAA1D;;QAEU,qBAAgB,GAAG,IAAI,mBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/table/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,4EAAwD;AACxD,wFAA8E;AAC9E,sFAA0E;AAC1E,8FAAmF;AACnF,oFAAuE;AACvE,sEAAqE;AACrE,4CAA4C;AAC5C,8CAA8C;AAC9C,gDAA+C;AAC/C,MAAqB,YAAa,SAAQ,4BAAgB;IAA1D;;QAEU,qBAAgB,GAAG,IAAI,mBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IAgIrE,CAAC;IA/HS,eAAe;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,OAAO,OAAO,6BAAM,CAAC,KAAK,EAAE,CAAE,CAAC;IAC7D,CAAC;IACO,eAAe;QACrB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,cAAc,CAAC,CAAE,CAAC;IACvD,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC;IAC/B,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAC5C,CAAC;IACD,iBAAiB;QACf,O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