@cloudscape-design/components 3.0.824 → 3.0.825
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/file-upload/interfaces.d.ts +5 -0
- package/file-upload/interfaces.d.ts.map +1 -1
- package/file-upload/interfaces.js.map +1 -1
- package/file-upload/internal.d.ts.map +1 -1
- package/file-upload/internal.js +7 -13
- package/file-upload/internal.js.map +1 -1
- package/internal/components/file-token-group/default-formatters.d.ts.map +1 -0
- package/{file-upload → internal/components/file-token-group}/default-formatters.js +1 -1
- package/internal/components/file-token-group/default-formatters.js.map +1 -0
- package/internal/components/file-token-group/file-token.d.ts +32 -0
- package/internal/components/file-token-group/file-token.d.ts.map +1 -0
- package/internal/components/file-token-group/file-token.js +71 -0
- package/internal/components/file-token-group/file-token.js.map +1 -0
- package/internal/components/file-token-group/index.d.ts +8 -0
- package/internal/components/file-token-group/index.d.ts.map +1 -0
- package/internal/components/file-token-group/index.js +41 -0
- package/internal/components/file-token-group/index.js.map +1 -0
- package/internal/components/file-token-group/interfaces.d.ts +85 -0
- package/internal/components/file-token-group/interfaces.d.ts.map +1 -0
- package/internal/components/file-token-group/interfaces.js +2 -0
- package/internal/components/file-token-group/interfaces.js.map +1 -0
- package/internal/components/file-token-group/styles.css.js +27 -0
- package/internal/components/file-token-group/styles.scoped.css +375 -0
- package/internal/components/file-token-group/styles.selectors.js +28 -0
- package/internal/components/file-token-group/test-classes/styles.css.js +11 -0
- package/internal/components/file-token-group/test-classes/styles.scoped.css +12 -0
- package/internal/components/file-token-group/test-classes/styles.selectors.js +12 -0
- package/internal/components/file-token-group/thumbnail.d.ts.map +1 -0
- package/internal/components/file-token-group/thumbnail.js.map +1 -0
- package/internal/components/token-list/index.d.ts.map +1 -1
- package/internal/components/token-list/index.js +5 -1
- package/internal/components/token-list/index.js.map +1 -1
- package/internal/components/token-list/interfaces.d.ts +1 -1
- package/internal/components/token-list/interfaces.d.ts.map +1 -1
- package/internal/components/token-list/interfaces.js.map +1 -1
- package/internal/components/token-list/styles.css.js +10 -9
- package/internal/components/token-list/styles.scoped.css +41 -21
- package/internal/components/token-list/styles.selectors.js +10 -9
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/test-utils/dom/file-upload/index.d.ts +1 -10
- package/test-utils/dom/file-upload/index.js +13 -36
- package/test-utils/dom/file-upload/index.js.map +1 -1
- package/test-utils/dom/internal/file-token-group.d.ts +21 -0
- package/test-utils/dom/internal/file-token-group.js +51 -0
- package/test-utils/dom/internal/file-token-group.js.map +1 -0
- package/test-utils/selectors/file-upload/index.d.ts +1 -10
- package/test-utils/selectors/file-upload/index.js +13 -36
- package/test-utils/selectors/file-upload/index.js.map +1 -1
- package/test-utils/selectors/internal/file-token-group.d.ts +21 -0
- package/test-utils/selectors/internal/file-token-group.js +51 -0
- package/test-utils/selectors/internal/file-token-group.js.map +1 -0
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/token-group/styles.css.js +8 -10
- package/token-group/styles.scoped.css +25 -38
- package/token-group/styles.selectors.js +8 -10
- package/token-group/token.d.ts +1 -5
- package/token-group/token.d.ts.map +1 -1
- package/token-group/token.js +4 -11
- package/token-group/token.js.map +1 -1
- package/file-upload/default-formatters.d.ts.map +0 -1
- package/file-upload/default-formatters.js.map +0 -1
- package/file-upload/file-option/index.d.ts +0 -10
- package/file-upload/file-option/index.d.ts.map +0 -1
- package/file-upload/file-option/index.js +0 -22
- package/file-upload/file-option/index.js.map +0 -1
- package/file-upload/file-option/styles.css.js +0 -12
- package/file-upload/file-option/styles.scoped.css +0 -35
- package/file-upload/file-option/styles.selectors.js +0 -13
- package/file-upload/file-option/thumbnail.d.ts.map +0 -1
- package/file-upload/file-option/thumbnail.js.map +0 -1
- /package/{file-upload → internal/components/file-token-group}/default-formatters.d.ts +0 -0
- /package/{file-upload/file-option → internal/components/file-token-group}/thumbnail.d.ts +0 -0
- /package/{file-upload/file-option → internal/components/file-token-group}/thumbnail.js +0 -0
|
@@ -178,20 +178,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
178
178
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
179
179
|
SPDX-License-Identifier: Apache-2.0
|
|
180
180
|
*/
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
/*
|
|
182
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
|
+
SPDX-License-Identifier: Apache-2.0
|
|
184
|
+
*/
|
|
185
|
+
/*
|
|
186
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
187
|
+
SPDX-License-Identifier: Apache-2.0
|
|
188
|
+
*/
|
|
189
|
+
.awsui_root_gfwv3_1rcgd_189:not(#\9) {
|
|
183
190
|
gap: var(--space-scaled-xs-26e2du, 8px);
|
|
184
191
|
}
|
|
185
|
-
.
|
|
192
|
+
.awsui_root_gfwv3_1rcgd_189.awsui_horizontal_gfwv3_1rcgd_192:not(#\9) {
|
|
193
|
+
display: flex;
|
|
186
194
|
gap: var(--space-xs-zb16t3, 8px);
|
|
187
195
|
flex-direction: row;
|
|
188
196
|
flex-wrap: wrap;
|
|
189
197
|
}
|
|
190
|
-
.
|
|
198
|
+
.awsui_root_gfwv3_1rcgd_189.awsui_vertical_gfwv3_1rcgd_198:not(#\9) {
|
|
199
|
+
display: flex;
|
|
191
200
|
flex-direction: column;
|
|
192
201
|
}
|
|
193
202
|
|
|
194
|
-
.
|
|
203
|
+
.awsui_list_gfwv3_1rcgd_203:not(#\9) {
|
|
195
204
|
display: contents;
|
|
196
205
|
list-style: none;
|
|
197
206
|
padding-block: 0;
|
|
@@ -199,32 +208,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
199
208
|
margin-block: 0;
|
|
200
209
|
margin-inline: 0;
|
|
201
210
|
}
|
|
202
|
-
.
|
|
211
|
+
.awsui_list_gfwv3_1rcgd_203.awsui_horizontal_gfwv3_1rcgd_192:not(#\9), .awsui_list_gfwv3_1rcgd_203.awsui_vertical_gfwv3_1rcgd_198:not(#\9) {
|
|
203
212
|
display: flex;
|
|
204
213
|
gap: var(--space-xs-zb16t3, 8px);
|
|
205
214
|
}
|
|
206
|
-
.
|
|
215
|
+
.awsui_list_gfwv3_1rcgd_203.awsui_horizontal_gfwv3_1rcgd_192:not(#\9) {
|
|
207
216
|
flex-direction: row;
|
|
208
217
|
flex-wrap: wrap;
|
|
209
218
|
}
|
|
210
|
-
.
|
|
219
|
+
.awsui_list_gfwv3_1rcgd_203.awsui_vertical_gfwv3_1rcgd_198:not(#\9) {
|
|
211
220
|
flex-direction: column;
|
|
212
221
|
}
|
|
222
|
+
.awsui_list_gfwv3_1rcgd_203.awsui_grid_gfwv3_1rcgd_222:not(#\9) {
|
|
223
|
+
display: grid;
|
|
224
|
+
gap: var(--space-xs-zb16t3, 8px);
|
|
225
|
+
grid-template-columns: repeat(auto-fill, 230px);
|
|
226
|
+
}
|
|
227
|
+
@media (max-width: 688px) {
|
|
228
|
+
.awsui_list_gfwv3_1rcgd_203.awsui_grid_gfwv3_1rcgd_222:not(#\9) {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
213
233
|
|
|
214
|
-
.awsui_list-
|
|
234
|
+
.awsui_list-item_gfwv3_1rcgd_234:not(#\9) {
|
|
215
235
|
padding-block: 0;
|
|
216
236
|
padding-inline: 0;
|
|
217
237
|
margin-block: 0;
|
|
218
238
|
margin-inline: 0;
|
|
219
239
|
}
|
|
220
240
|
|
|
221
|
-
.awsui_toggle-container-
|
|
241
|
+
.awsui_toggle-container-inline_gfwv3_1rcgd_241:not(#\9) {
|
|
222
242
|
padding-inline-start: var(--space-xs-zb16t3, 8px);
|
|
223
243
|
display: flex;
|
|
224
244
|
align-items: center;
|
|
225
245
|
}
|
|
226
246
|
|
|
227
|
-
.
|
|
247
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9) {
|
|
228
248
|
border-collapse: separate;
|
|
229
249
|
border-spacing: 0;
|
|
230
250
|
box-sizing: border-box;
|
|
@@ -279,34 +299,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
279
299
|
transition-duration: var(--motion-duration-refresh-only-medium-nf6485, 165ms);
|
|
280
300
|
}
|
|
281
301
|
@media (prefers-reduced-motion: reduce) {
|
|
282
|
-
.
|
|
302
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9) {
|
|
283
303
|
animation: none;
|
|
284
304
|
transition: none;
|
|
285
305
|
}
|
|
286
306
|
}
|
|
287
|
-
.awsui-motion-disabled .
|
|
307
|
+
.awsui-motion-disabled .awsui_toggle_gfwv3_1rcgd_241:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_1rcgd_241:not(#\9) {
|
|
288
308
|
animation: none;
|
|
289
309
|
transition: none;
|
|
290
310
|
}
|
|
291
|
-
.
|
|
311
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9):hover {
|
|
292
312
|
cursor: pointer;
|
|
293
313
|
color: var(--color-text-link-hover-49uoe9, #002b66);
|
|
294
314
|
}
|
|
295
|
-
.
|
|
315
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9):focus {
|
|
296
316
|
outline: none;
|
|
297
317
|
}
|
|
298
|
-
.
|
|
318
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9):active {
|
|
299
319
|
color: var(--color-text-link-hover-49uoe9, #002b66);
|
|
300
320
|
}
|
|
301
|
-
.
|
|
321
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9):active, .awsui_toggle_gfwv3_1rcgd_241:not(#\9):focus, .awsui_toggle_gfwv3_1rcgd_241:not(#\9):hover {
|
|
302
322
|
text-decoration-line: underline;
|
|
303
323
|
text-decoration-color: currentColor;
|
|
304
324
|
}
|
|
305
|
-
.
|
|
325
|
+
.awsui_toggle_gfwv3_1rcgd_241:not(#\9):active, .awsui_toggle_gfwv3_1rcgd_241:not(#\9):focus, .awsui_toggle_gfwv3_1rcgd_241:not(#\9):hover {
|
|
306
326
|
text-decoration: none;
|
|
307
327
|
text-decoration-color: transparent;
|
|
308
328
|
}
|
|
309
|
-
body[data-awsui-focus-visible=true] .
|
|
329
|
+
body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_1rcgd_241:not(#\9):focus {
|
|
310
330
|
outline: 2px dotted transparent;
|
|
311
331
|
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
312
332
|
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
@@ -316,11 +336,11 @@ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_5sril_221:not(#\9):focus
|
|
|
316
336
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
317
337
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
318
338
|
}
|
|
319
|
-
.
|
|
339
|
+
.awsui_toggle_gfwv3_1rcgd_241 > .awsui_description_gfwv3_1rcgd_336:not(#\9) {
|
|
320
340
|
margin-inline-start: var(--space-xxs-p8yyaw, 4px);
|
|
321
341
|
}
|
|
322
342
|
|
|
323
|
-
.
|
|
343
|
+
.awsui_separator_gfwv3_1rcgd_340:not(#\9) {
|
|
324
344
|
margin-block: 0;
|
|
325
345
|
margin-inline: var(--space-scaled-m-mo5yse, 16px);
|
|
326
346
|
inline-size: var(--border-divider-section-width-1061zr, 1px);
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"horizontal": "
|
|
7
|
-
"vertical": "
|
|
8
|
-
"list": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"toggle": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
5
|
+
"root": "awsui_root_gfwv3_1rcgd_189",
|
|
6
|
+
"horizontal": "awsui_horizontal_gfwv3_1rcgd_192",
|
|
7
|
+
"vertical": "awsui_vertical_gfwv3_1rcgd_198",
|
|
8
|
+
"list": "awsui_list_gfwv3_1rcgd_203",
|
|
9
|
+
"grid": "awsui_grid_gfwv3_1rcgd_222",
|
|
10
|
+
"list-item": "awsui_list-item_gfwv3_1rcgd_234",
|
|
11
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_1rcgd_241",
|
|
12
|
+
"toggle": "awsui_toggle_gfwv3_1rcgd_241",
|
|
13
|
+
"description": "awsui_description_gfwv3_1rcgd_336",
|
|
14
|
+
"separator": "awsui_separator_gfwv3_1rcgd_340"
|
|
14
15
|
};
|
|
15
16
|
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
2
|
import ButtonWrapper from '../button';
|
|
3
|
+
import { FileTokenWrapper } from '../internal/file-token-group';
|
|
3
4
|
export default class FileUploadWrapper extends ComponentWrapper<HTMLElement> {
|
|
4
5
|
static rootSelector: string;
|
|
5
6
|
findUploadButton(): ButtonWrapper;
|
|
@@ -19,13 +20,3 @@ export default class FileUploadWrapper extends ComponentWrapper<HTMLElement> {
|
|
|
19
20
|
findError(): null | ElementWrapper;
|
|
20
21
|
findWarning(): null | ElementWrapper;
|
|
21
22
|
}
|
|
22
|
-
declare class FileTokenWrapper extends ComponentWrapper {
|
|
23
|
-
findFileName(): ElementWrapper;
|
|
24
|
-
findFileSize(): null | ElementWrapper;
|
|
25
|
-
findFileLastModified(): null | ElementWrapper;
|
|
26
|
-
findFileThumbnail(): null | ElementWrapper;
|
|
27
|
-
findFileError(): null | ElementWrapper;
|
|
28
|
-
findFileWarning(): null | ElementWrapper;
|
|
29
|
-
findRemoveButton(): ElementWrapper;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
6
|
const button_1 = require("../button");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const file_token_group_1 = require("../internal/file-token-group");
|
|
8
|
+
const styles_selectors_js_1 = require("../../../file-upload/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_2 = require("../../../form-field/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_3 = require("../../../internal/components/file-input/styles.selectors.js");
|
|
11
|
+
const styles_selectors_js_4 = require("../../../internal/components/file-token-group/styles.selectors.js");
|
|
11
12
|
const styles_selectors_js_5 = require("../../../internal/components/token-list/styles.selectors.js");
|
|
12
|
-
const styles_selectors_js_6 = require("../../../token-group/styles.selectors.js");
|
|
13
13
|
class FileUploadWrapper extends dom_1.ComponentWrapper {
|
|
14
14
|
findUploadButton() {
|
|
15
|
-
return this.findComponent(`.${
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_3.default['file-input-button']}`, button_1.default);
|
|
16
16
|
}
|
|
17
17
|
findNativeInput() {
|
|
18
|
-
return this.findByClassName(
|
|
18
|
+
return this.findByClassName(styles_selectors_js_3.default['file-input']);
|
|
19
19
|
}
|
|
20
20
|
findFileTokens() {
|
|
21
|
-
return this.findAllByClassName(
|
|
21
|
+
return this.findAllByClassName(styles_selectors_js_4.default.token).map(tokenElement => new file_token_group_1.FileTokenWrapper(tokenElement.getElement()));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Returns a file token from for a given index.
|
|
@@ -26,7 +26,7 @@ class FileUploadWrapper extends dom_1.ComponentWrapper {
|
|
|
26
26
|
* @param tokenIndex 1-based index of the file token to return.
|
|
27
27
|
*/
|
|
28
28
|
findFileToken(fileTokenIndex) {
|
|
29
|
-
return this.findComponent(`.${
|
|
29
|
+
return this.findComponent(`.${styles_selectors_js_4.default.token}[data-index="${fileTokenIndex - 1}"]`, file_token_group_1.FileTokenWrapper);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Returns the token toggle button.
|
|
@@ -35,38 +35,15 @@ class FileUploadWrapper extends dom_1.ComponentWrapper {
|
|
|
35
35
|
return this.findByClassName(styles_selectors_js_5.default.toggle);
|
|
36
36
|
}
|
|
37
37
|
findConstraint() {
|
|
38
|
-
return this.find(`.${
|
|
38
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.constraint}`);
|
|
39
39
|
}
|
|
40
40
|
findError() {
|
|
41
|
-
return this.find(`.${
|
|
41
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.error} .${styles_selectors_js_2.default.error__message}`);
|
|
42
42
|
}
|
|
43
43
|
findWarning() {
|
|
44
|
-
return this.find(`.${
|
|
44
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.warning} .${styles_selectors_js_2.default.warning__message}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.default = FileUploadWrapper;
|
|
48
|
-
FileUploadWrapper.rootSelector =
|
|
49
|
-
class FileTokenWrapper extends dom_1.ComponentWrapper {
|
|
50
|
-
findFileName() {
|
|
51
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-name']);
|
|
52
|
-
}
|
|
53
|
-
findFileSize() {
|
|
54
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-size']);
|
|
55
|
-
}
|
|
56
|
-
findFileLastModified() {
|
|
57
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-last-modified']);
|
|
58
|
-
}
|
|
59
|
-
findFileThumbnail() {
|
|
60
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-thumbnail-image']);
|
|
61
|
-
}
|
|
62
|
-
findFileError() {
|
|
63
|
-
return this.find(`.${styles_selectors_js_3.default.error} .${styles_selectors_js_3.default.error__message}`);
|
|
64
|
-
}
|
|
65
|
-
findFileWarning() {
|
|
66
|
-
return this.find(`.${styles_selectors_js_3.default.warning} .${styles_selectors_js_3.default.warning__message}`);
|
|
67
|
-
}
|
|
68
|
-
findRemoveButton() {
|
|
69
|
-
return this.findByClassName(styles_selectors_js_6.default['dismiss-button']);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
48
|
+
FileUploadWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
72
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/file-upload/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/file-upload/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AACtC,mEAAgE;AAEhE,kFAA2E;AAC3E,iFAAsE;AACtE,qGAAmG;AACnG,2GAAoG;AACpG,qGAA6F;AAE7F,MAAqB,iBAAkB,SAAQ,sBAA6B;IAG1E,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAwB,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IACjG,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAwB,CAAC,YAAY,CAAC,CAAE,CAAC;IACvE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAmB,CAAC,KAAK,CAAC,CAAC,GAAG,CAC3D,YAAY,CAAC,EAAE,CAAC,IAAI,mCAAgB,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,cAAsB;QAClC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAmB,CAAC,KAAK,gBAAgB,cAAc,GAAG,CAAC,IAAI,EAAE,mCAAgB,CAAC,CAAC;IACnH,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAkB,CAAC,MAAM,CAAC,CAAC;IACzD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAmB,CAAC,KAAK,KAAK,6BAAe,CAAC,UAAU,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAmB,CAAC,KAAK,KAAK,6BAAe,CAAC,KAAK,KAAK,6BAAe,CAAC,cAAc,EAAE,CAAC,CAAC;IACjH,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAmB,CAAC,KAAK,KAAK,6BAAe,CAAC,OAAO,KAAK,6BAAe,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACrH,CAAC;;AA3CH,oCA4CC;AA3CQ,8BAAY,GAAW,6BAAmB,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
+
export default class FileTokenGroupWrapper extends ComponentWrapper {
|
|
3
|
+
static rootSelector: string;
|
|
4
|
+
findFileTokens(): Array<FileTokenWrapper>;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a file token from for a given index.
|
|
7
|
+
*
|
|
8
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
9
|
+
*/
|
|
10
|
+
findFileToken(fileTokenIndex: number): null | FileTokenWrapper;
|
|
11
|
+
}
|
|
12
|
+
export declare class FileTokenWrapper extends ComponentWrapper {
|
|
13
|
+
static rootSelector: string;
|
|
14
|
+
findFileName(): ElementWrapper;
|
|
15
|
+
findFileSize(): ElementWrapper;
|
|
16
|
+
findFileLastModified(): ElementWrapper;
|
|
17
|
+
findFileThumbnail(): ElementWrapper;
|
|
18
|
+
findFileError(): ElementWrapper;
|
|
19
|
+
findFileWarning(): ElementWrapper;
|
|
20
|
+
findRemoveButton(): ElementWrapper;
|
|
21
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileTokenWrapper = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
7
|
+
const styles_selectors_js_1 = require("../../../form-field/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_2 = require("../../../internal/components/file-token-group/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_3 = require("../../../internal/components/file-token-group/test-classes/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_4 = require("../../../token-group/styles.selectors.js");
|
|
11
|
+
class FileTokenGroupWrapper extends dom_1.ComponentWrapper {
|
|
12
|
+
findFileTokens() {
|
|
13
|
+
return this.findAllByClassName(styles_selectors_js_2.default.token).map(tokenElement => new FileTokenWrapper(tokenElement.getElement()));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a file token from for a given index.
|
|
17
|
+
*
|
|
18
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
19
|
+
*/
|
|
20
|
+
findFileToken(fileTokenIndex) {
|
|
21
|
+
return this.findComponent(`.${styles_selectors_js_2.default.token}[data-index="${fileTokenIndex - 1}"]`, FileTokenWrapper);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = FileTokenGroupWrapper;
|
|
25
|
+
FileTokenGroupWrapper.rootSelector = styles_selectors_js_3.default.root;
|
|
26
|
+
class FileTokenWrapper extends dom_1.ComponentWrapper {
|
|
27
|
+
findFileName() {
|
|
28
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-name']);
|
|
29
|
+
}
|
|
30
|
+
findFileSize() {
|
|
31
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-size']);
|
|
32
|
+
}
|
|
33
|
+
findFileLastModified() {
|
|
34
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-last-modified']);
|
|
35
|
+
}
|
|
36
|
+
findFileThumbnail() {
|
|
37
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-thumbnail']);
|
|
38
|
+
}
|
|
39
|
+
findFileError() {
|
|
40
|
+
return this.find(`.${styles_selectors_js_1.default.error} .${styles_selectors_js_1.default.error__message}`);
|
|
41
|
+
}
|
|
42
|
+
findFileWarning() {
|
|
43
|
+
return this.find(`.${styles_selectors_js_1.default.warning} .${styles_selectors_js_1.default.warning__message}`);
|
|
44
|
+
}
|
|
45
|
+
findRemoveButton() {
|
|
46
|
+
return this.findByClassName(styles_selectors_js_4.default['dismiss-button']);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.FileTokenWrapper = FileTokenWrapper;
|
|
50
|
+
FileTokenWrapper.rootSelector = styles_selectors_js_2.default.token;
|
|
51
|
+
//# sourceMappingURL=file-token-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-token-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/file-token-group.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,iFAAsE;AACtE,2GAA0F;AAC1F,wHAA2G;AAC3G,kFAA2E;AAE3E,MAAqB,qBAAsB,SAAQ,sBAAgB;IAGjE,cAAc;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BA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}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
2
|
import ButtonWrapper from '../button';
|
|
3
|
+
import { FileTokenWrapper } from '../internal/file-token-group';
|
|
3
4
|
export default class FileUploadWrapper extends ComponentWrapper {
|
|
4
5
|
static rootSelector: string;
|
|
5
6
|
findUploadButton(): ButtonWrapper;
|
|
@@ -19,13 +20,3 @@ export default class FileUploadWrapper extends ComponentWrapper {
|
|
|
19
20
|
findError(): ElementWrapper;
|
|
20
21
|
findWarning(): ElementWrapper;
|
|
21
22
|
}
|
|
22
|
-
declare class FileTokenWrapper extends ComponentWrapper {
|
|
23
|
-
findFileName(): ElementWrapper;
|
|
24
|
-
findFileSize(): ElementWrapper;
|
|
25
|
-
findFileLastModified(): ElementWrapper;
|
|
26
|
-
findFileThumbnail(): ElementWrapper;
|
|
27
|
-
findFileError(): ElementWrapper;
|
|
28
|
-
findFileWarning(): ElementWrapper;
|
|
29
|
-
findRemoveButton(): ElementWrapper;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
6
|
const button_1 = require("../button");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
7
|
+
const file_token_group_1 = require("../internal/file-token-group");
|
|
8
|
+
const styles_selectors_js_1 = require("../../../file-upload/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_2 = require("../../../form-field/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_3 = require("../../../internal/components/file-input/styles.selectors.js");
|
|
11
|
+
const styles_selectors_js_4 = require("../../../internal/components/file-token-group/styles.selectors.js");
|
|
11
12
|
const styles_selectors_js_5 = require("../../../internal/components/token-list/styles.selectors.js");
|
|
12
|
-
const styles_selectors_js_6 = require("../../../token-group/styles.selectors.js");
|
|
13
13
|
class FileUploadWrapper extends selectors_1.ComponentWrapper {
|
|
14
14
|
findUploadButton() {
|
|
15
|
-
return this.findComponent(`.${
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_3.default['file-input-button']}`, button_1.default);
|
|
16
16
|
}
|
|
17
17
|
findNativeInput() {
|
|
18
|
-
return this.findByClassName(
|
|
18
|
+
return this.findByClassName(styles_selectors_js_3.default['file-input']);
|
|
19
19
|
}
|
|
20
20
|
findFileTokens() {
|
|
21
|
-
return this.findAllByClassName(
|
|
21
|
+
return this.findAllByClassName(styles_selectors_js_4.default.token).map(tokenElement => new file_token_group_1.FileTokenWrapper(tokenElement.getElement()));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Returns a file token from for a given index.
|
|
@@ -26,7 +26,7 @@ class FileUploadWrapper extends selectors_1.ComponentWrapper {
|
|
|
26
26
|
* @param tokenIndex 1-based index of the file token to return.
|
|
27
27
|
*/
|
|
28
28
|
findFileToken(fileTokenIndex) {
|
|
29
|
-
return this.findComponent(`.${
|
|
29
|
+
return this.findComponent(`.${styles_selectors_js_4.default.token}[data-index="${fileTokenIndex - 1}"]`, file_token_group_1.FileTokenWrapper);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Returns the token toggle button.
|
|
@@ -35,38 +35,15 @@ class FileUploadWrapper extends selectors_1.ComponentWrapper {
|
|
|
35
35
|
return this.findByClassName(styles_selectors_js_5.default.toggle);
|
|
36
36
|
}
|
|
37
37
|
findConstraint() {
|
|
38
|
-
return this.find(`.${
|
|
38
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.constraint}`);
|
|
39
39
|
}
|
|
40
40
|
findError() {
|
|
41
|
-
return this.find(`.${
|
|
41
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.error} .${styles_selectors_js_2.default.error__message}`);
|
|
42
42
|
}
|
|
43
43
|
findWarning() {
|
|
44
|
-
return this.find(`.${
|
|
44
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_2.default.warning} .${styles_selectors_js_2.default.warning__message}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.default = FileUploadWrapper;
|
|
48
|
-
FileUploadWrapper.rootSelector =
|
|
49
|
-
class FileTokenWrapper extends selectors_1.ComponentWrapper {
|
|
50
|
-
findFileName() {
|
|
51
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-name']);
|
|
52
|
-
}
|
|
53
|
-
findFileSize() {
|
|
54
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-size']);
|
|
55
|
-
}
|
|
56
|
-
findFileLastModified() {
|
|
57
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-last-modified']);
|
|
58
|
-
}
|
|
59
|
-
findFileThumbnail() {
|
|
60
|
-
return this.findByClassName(styles_selectors_js_1.default['file-option-thumbnail-image']);
|
|
61
|
-
}
|
|
62
|
-
findFileError() {
|
|
63
|
-
return this.find(`.${styles_selectors_js_3.default.error} .${styles_selectors_js_3.default.error__message}`);
|
|
64
|
-
}
|
|
65
|
-
findFileWarning() {
|
|
66
|
-
return this.find(`.${styles_selectors_js_3.default.warning} .${styles_selectors_js_3.default.warning__message}`);
|
|
67
|
-
}
|
|
68
|
-
findRemoveButton() {
|
|
69
|
-
return this.findByClassName(styles_selectors_js_6.default['dismiss-button']);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
48
|
+
FileUploadWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
72
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/file-upload/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot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O,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAmB,CAAC,KAAK,KAAK,6BAAe,CAAC,OAAO,KAAK,6BAAe,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACrH,CAAC;;AAnCH,oCAoCC;AAnCQ,8BAAY,GAAW,6BAAmB,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/test-utils-core/selectors";
|
|
2
|
+
export default class FileTokenGroupWrapper extends ComponentWrapper {
|
|
3
|
+
static rootSelector: string;
|
|
4
|
+
findFileTokens(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<FileTokenWrapper>;
|
|
5
|
+
/**
|
|
6
|
+
* Returns a file token from for a given index.
|
|
7
|
+
*
|
|
8
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
9
|
+
*/
|
|
10
|
+
findFileToken(fileTokenIndex: number): FileTokenWrapper;
|
|
11
|
+
}
|
|
12
|
+
export declare class FileTokenWrapper extends ComponentWrapper {
|
|
13
|
+
static rootSelector: string;
|
|
14
|
+
findFileName(): ElementWrapper;
|
|
15
|
+
findFileSize(): ElementWrapper;
|
|
16
|
+
findFileLastModified(): ElementWrapper;
|
|
17
|
+
findFileThumbnail(): ElementWrapper;
|
|
18
|
+
findFileError(): ElementWrapper;
|
|
19
|
+
findFileWarning(): ElementWrapper;
|
|
20
|
+
findRemoveButton(): ElementWrapper;
|
|
21
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileTokenWrapper = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
7
|
+
const styles_selectors_js_1 = require("../../../form-field/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_2 = require("../../../internal/components/file-token-group/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_3 = require("../../../internal/components/file-token-group/test-classes/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_4 = require("../../../token-group/styles.selectors.js");
|
|
11
|
+
class FileTokenGroupWrapper extends selectors_1.ComponentWrapper {
|
|
12
|
+
findFileTokens() {
|
|
13
|
+
return this.findAllByClassName(styles_selectors_js_2.default.token).map(tokenElement => new FileTokenWrapper(tokenElement.getElement()));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns a file token from for a given index.
|
|
17
|
+
*
|
|
18
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
19
|
+
*/
|
|
20
|
+
findFileToken(fileTokenIndex) {
|
|
21
|
+
return this.findComponent(`.${styles_selectors_js_2.default.token}[data-index="${fileTokenIndex - 1}"]`, FileTokenWrapper);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = FileTokenGroupWrapper;
|
|
25
|
+
FileTokenGroupWrapper.rootSelector = styles_selectors_js_3.default.root;
|
|
26
|
+
class FileTokenWrapper extends selectors_1.ComponentWrapper {
|
|
27
|
+
findFileName() {
|
|
28
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-name']);
|
|
29
|
+
}
|
|
30
|
+
findFileSize() {
|
|
31
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-size']);
|
|
32
|
+
}
|
|
33
|
+
findFileLastModified() {
|
|
34
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-last-modified']);
|
|
35
|
+
}
|
|
36
|
+
findFileThumbnail() {
|
|
37
|
+
return this.findByClassName(styles_selectors_js_2.default['file-option-thumbnail']);
|
|
38
|
+
}
|
|
39
|
+
findFileError() {
|
|
40
|
+
return this.find(`.${styles_selectors_js_1.default.error} .${styles_selectors_js_1.default.error__message}`);
|
|
41
|
+
}
|
|
42
|
+
findFileWarning() {
|
|
43
|
+
return this.find(`.${styles_selectors_js_1.default.warning} .${styles_selectors_js_1.default.warning__message}`);
|
|
44
|
+
}
|
|
45
|
+
findRemoveButton() {
|
|
46
|
+
return this.findByClassName(styles_selectors_js_4.default['dismiss-button']);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.FileTokenWrapper = FileTokenWrapper;
|
|
50
|
+
FileTokenWrapper.rootSelector = styles_selectors_js_2.default.token;
|
|
51
|
+
//# sourceMappingURL=file-token-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-token-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/internal/file-token-group.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,iFAAsE;AACtE,2GAA0F;AAC1F,wHAA2G;AAC3G,kFAA2E;AAC3E,MAAqB,qBAAsB,SAAQ,4BAAgB;IAEjE,cAAc;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,gBAAgB,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACvH,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,cAAsB;QAClC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAS,CAAC,KAAK,gBAAgB,cAAc,GAAG,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACzG,CAAC;;AAbH,wCAcC;AAbQ,kCAAY,GAAW,6BAAa,CAAC,IAAI,CAAC;AAcnD,MAAa,gBAAiB,SAAQ,4BAAgB;IAEpD,YAAY;QACV,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAS,CAAC,kBAAkB,CAAC,CAAE,CAAC;IAC9D,CAAC;IACD,YAAY;QACV,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAS,CAAC,kBAAkB,CAAC,CAAE,CAAC;IAC9D,CAAC;IACD,oBAAoB;QAClB,OA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