@cloudscape-design/components 3.0.307 → 3.0.309
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/column-layout/interfaces.d.ts +1 -3
- package/column-layout/interfaces.d.ts.map +1 -1
- package/column-layout/interfaces.js.map +1 -1
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +6 -7
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/styles.css.js +27 -26
- package/expandable-section/styles.scoped.css +51 -47
- package/expandable-section/styles.selectors.js +27 -26
- package/form-field/internal.d.ts.map +1 -1
- package/form-field/internal.js +2 -1
- package/form-field/internal.js.map +1 -1
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +5 -2
- package/header/internal.js.map +1 -1
- package/i18n/messages/all.all.d.ts +1 -1
- package/i18n/messages/all.de.d.ts +1 -1
- package/i18n/messages/all.en-GB.d.ts +1 -1
- package/i18n/messages/all.en.d.ts +1 -1
- package/i18n/messages/all.es.d.ts +1 -1
- package/i18n/messages/all.fr.d.ts +1 -1
- package/i18n/messages/all.id.d.ts +1 -1
- package/i18n/messages/all.it.d.ts +1 -1
- package/i18n/messages/all.ja.d.ts +1 -1
- package/i18n/messages/all.ko.d.ts +1 -1
- package/i18n/messages/all.pt-BR.d.ts +1 -1
- package/i18n/messages/all.zh-CN.d.ts +1 -1
- package/i18n/messages/all.zh-TW.d.ts +1 -1
- package/internal/context/info-link-label-context.d.ts +3 -0
- package/internal/context/info-link-label-context.d.ts.map +1 -0
- package/internal/context/info-link-label-context.js +5 -0
- package/internal/context/info-link-label-context.js.map +1 -0
- package/internal/environment.js +1 -1
- package/internal/i18n/messages/all.all.d.ts +1 -1
- package/internal/i18n/messages/all.de.d.ts +1 -1
- package/internal/i18n/messages/all.en-GB.d.ts +1 -1
- package/internal/i18n/messages/all.en.d.ts +1 -1
- package/internal/i18n/messages/all.es.d.ts +1 -1
- package/internal/i18n/messages/all.fr.d.ts +1 -1
- package/internal/i18n/messages/all.id.d.ts +1 -1
- package/internal/i18n/messages/all.it.d.ts +1 -1
- package/internal/i18n/messages/all.ja.d.ts +1 -1
- package/internal/i18n/messages/all.ko.d.ts +1 -1
- package/internal/i18n/messages/all.pt-BR.d.ts +1 -1
- package/internal/i18n/messages/all.zh-CN.d.ts +1 -1
- package/internal/i18n/messages/all.zh-TW.d.ts +1 -1
- package/internal/manifest.json +1 -1
- package/link/internal.d.ts.map +1 -1
- package/link/internal.js +12 -4
- package/link/internal.js.map +1 -1
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +39 -38
- package/modal/styles.selectors.js +23 -23
- package/package.json +1 -1
- package/test-utils/dom/expandable-section/index.d.ts +1 -0
- package/test-utils/dom/expandable-section/index.js +6 -0
- package/test-utils/dom/expandable-section/index.js.map +1 -1
- package/test-utils/selectors/expandable-section/index.d.ts +1 -0
- package/test-utils/selectors/expandable-section/index.js +6 -0
- package/test-utils/selectors/expandable-section/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
package/modal/styles.scoped.css
CHANGED
|
@@ -94,7 +94,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
@keyframes awsui_modal-slide-
|
|
97
|
+
@keyframes awsui_modal-slide-up_1d2i7_x1ilq_1 {
|
|
98
98
|
0% {
|
|
99
99
|
transform: translate(0, 10px);
|
|
100
100
|
}
|
|
@@ -102,12 +102,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
102
102
|
transform: translate(0, 0);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
.
|
|
106
|
-
animation: awsui_modal-slide-
|
|
105
|
+
.awsui_dialog_1d2i7_x1ilq_105:not(#\9) {
|
|
106
|
+
animation: awsui_modal-slide-up_1d2i7_x1ilq_1 var(--motion-duration-slow-qk0n8k, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_x1ilq_1 var(--motion-duration-slow-qk0n8k, 180ms) ease-out;
|
|
107
107
|
animation-delay: var(--motion-duration-fast-3oez8u, 90ms);
|
|
108
108
|
animation-fill-mode: both;
|
|
109
109
|
}
|
|
110
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
110
|
+
@keyframes awsui_awsui-motion-fade-in-0_1d2i7_x1ilq_1 {
|
|
111
111
|
from {
|
|
112
112
|
opacity: 0;
|
|
113
113
|
}
|
|
@@ -116,22 +116,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
@media (prefers-reduced-motion: reduce) {
|
|
119
|
-
.
|
|
119
|
+
.awsui_dialog_1d2i7_x1ilq_105:not(#\9) {
|
|
120
120
|
animation: none;
|
|
121
121
|
transition: none;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
.awsui-motion-disabled .
|
|
124
|
+
.awsui-motion-disabled .awsui_dialog_1d2i7_x1ilq_105:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_x1ilq_105:not(#\9) {
|
|
125
125
|
animation: none;
|
|
126
126
|
transition: none;
|
|
127
127
|
}
|
|
128
|
-
.
|
|
129
|
-
animation: awsui_awsui-motion-scale-
|
|
128
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
129
|
+
animation: awsui_awsui-motion-scale-popup_1d2i7_x1ilq_1, awsui_awsui-motion-fade-in-0_1d2i7_x1ilq_1;
|
|
130
130
|
animation-duration: var(--motion-duration-refresh-only-fast-q2mprk, 115ms);
|
|
131
131
|
animation-timing-function: var(--motion-easing-refresh-only-a-6ywz7k, cubic-bezier(0, 0, 0, 1));
|
|
132
132
|
animation-fill-mode: both;
|
|
133
133
|
}
|
|
134
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
134
|
+
@keyframes awsui_awsui-motion-fade-in-0_1d2i7_x1ilq_1 {
|
|
135
135
|
from {
|
|
136
136
|
opacity: 0;
|
|
137
137
|
}
|
|
@@ -139,7 +139,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
139
139
|
opacity: 1;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
@keyframes awsui_awsui-motion-scale-
|
|
142
|
+
@keyframes awsui_awsui-motion-scale-popup_1d2i7_x1ilq_1 {
|
|
143
143
|
0% {
|
|
144
144
|
transform: scale(0.95);
|
|
145
145
|
}
|
|
@@ -148,21 +148,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
@media (prefers-reduced-motion: reduce) {
|
|
151
|
-
.
|
|
151
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
152
152
|
animation: none;
|
|
153
153
|
transition: none;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
.awsui-motion-disabled .
|
|
156
|
+
.awsui-motion-disabled .awsui_dialog_1d2i7_x1ilq_105.awsui_refresh_1d2i7_x1ilq_128:not(#\9), .awsui-mode-entering .awsui_dialog_1d2i7_x1ilq_105.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
157
157
|
animation: none;
|
|
158
158
|
transition: none;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.
|
|
162
|
-
animation: awsui_awsui-motion-fade-
|
|
161
|
+
.awsui_root_1d2i7_x1ilq_161:not(#\9) {
|
|
162
|
+
animation: awsui_awsui-motion-fade-in_1d2i7_x1ilq_1 var(--motion-duration-extra-slow-q9xfa7, 270ms) ease-out;
|
|
163
163
|
animation-fill-mode: both;
|
|
164
164
|
}
|
|
165
|
-
@keyframes awsui_awsui-motion-fade-
|
|
165
|
+
@keyframes awsui_awsui-motion-fade-in_1d2i7_x1ilq_1 {
|
|
166
166
|
from {
|
|
167
167
|
opacity: 0.2;
|
|
168
168
|
}
|
|
@@ -171,25 +171,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
@media (prefers-reduced-motion: reduce) {
|
|
174
|
-
.
|
|
174
|
+
.awsui_root_1d2i7_x1ilq_161:not(#\9) {
|
|
175
175
|
animation: none;
|
|
176
176
|
transition: none;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
.awsui-motion-disabled .
|
|
179
|
+
.awsui-motion-disabled .awsui_root_1d2i7_x1ilq_161:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_x1ilq_161:not(#\9) {
|
|
180
180
|
animation: none;
|
|
181
181
|
transition: none;
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.awsui_root_1d2i7_x1ilq_161.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
184
184
|
animation-duration: var(--motion-duration-refresh-only-fast-q2mprk, 115ms);
|
|
185
185
|
}
|
|
186
186
|
@media (prefers-reduced-motion: reduce) {
|
|
187
|
-
.
|
|
187
|
+
.awsui_root_1d2i7_x1ilq_161.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
188
188
|
animation: none;
|
|
189
189
|
transition: none;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
.awsui-motion-disabled .
|
|
192
|
+
.awsui-motion-disabled .awsui_root_1d2i7_x1ilq_161.awsui_refresh_1d2i7_x1ilq_128:not(#\9), .awsui-mode-entering .awsui_root_1d2i7_x1ilq_161.awsui_refresh_1d2i7_x1ilq_128:not(#\9) {
|
|
193
193
|
animation: none;
|
|
194
194
|
transition: none;
|
|
195
195
|
}
|
|
@@ -198,7 +198,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
198
198
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
199
199
|
SPDX-License-Identifier: Apache-2.0
|
|
200
200
|
*/
|
|
201
|
-
.
|
|
201
|
+
.awsui_root_1d2i7_x1ilq_161:not(#\9) {
|
|
202
202
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
203
203
|
border-collapse: separate;
|
|
204
204
|
border-spacing: 0;
|
|
@@ -249,11 +249,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
249
249
|
overflow: auto;
|
|
250
250
|
cursor: pointer;
|
|
251
251
|
}
|
|
252
|
-
.
|
|
252
|
+
.awsui_root_1d2i7_x1ilq_161.awsui_hidden_1d2i7_x1ilq_226:not(#\9) {
|
|
253
253
|
display: none;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.awsui_focus-
|
|
256
|
+
.awsui_focus-lock_1d2i7_x1ilq_230:not(#\9) {
|
|
257
257
|
align-self: flex-start;
|
|
258
258
|
margin: auto;
|
|
259
259
|
padding: var(--space-s-hdd878, 12px) 0;
|
|
@@ -261,7 +261,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
261
261
|
pointer-events: none;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.
|
|
264
|
+
.awsui_dialog_1d2i7_x1ilq_105:not(#\9) {
|
|
265
265
|
position: static;
|
|
266
266
|
top: 0;
|
|
267
267
|
transform: translate(0, 0);
|
|
@@ -271,21 +271,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
271
271
|
z-index: 5000;
|
|
272
272
|
pointer-events: all;
|
|
273
273
|
}
|
|
274
|
-
.
|
|
274
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_small_1d2i7_x1ilq_248:not(#\9) {
|
|
275
275
|
max-width: 320px;
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_medium_1d2i7_x1ilq_251:not(#\9) {
|
|
278
278
|
max-width: 600px;
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_large_1d2i7_x1ilq_254:not(#\9) {
|
|
281
281
|
max-width: 820px;
|
|
282
282
|
}
|
|
283
|
-
.
|
|
283
|
+
.awsui_dialog_1d2i7_x1ilq_105.awsui_max_1d2i7_x1ilq_257.awsui_breakpoint-xs_1d2i7_x1ilq_257:not(#\9) {
|
|
284
284
|
max-width: calc(100vw - (2 * 4 * 10px + var(--space-xxxl-65sweb, 40px)));
|
|
285
285
|
margin: auto;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
.
|
|
288
|
+
.awsui_container_1d2i7_x1ilq_262:not(#\9) {
|
|
289
289
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
290
290
|
border-collapse: separate;
|
|
291
291
|
border-spacing: 0;
|
|
@@ -330,45 +330,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
330
330
|
box-shadow: var(--shadow-modal-5wj6rn, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.
|
|
333
|
+
.awsui_content_1d2i7_x1ilq_281:not(#\9) {
|
|
334
334
|
padding: var(--space-container-content-top-aj37fz, 0px) var(--space-modal-horizontal-rzqrfo, 20px) var(--space-modal-content-bottom-4lprrr, 16px);
|
|
335
335
|
}
|
|
336
|
-
.
|
|
336
|
+
.awsui_content_1d2i7_x1ilq_281.awsui_no-paddings_1d2i7_x1ilq_284:not(#\9) {
|
|
337
337
|
padding: 0;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
.
|
|
340
|
+
.awsui_header_1d2i7_x1ilq_288:not(#\9) {
|
|
341
341
|
padding: var(--space-s-hdd878, 12px) var(--space-modal-horizontal-rzqrfo, 20px);
|
|
342
342
|
background-color: var(--color-background-container-header-l5cy7j, #ffffff);
|
|
343
343
|
border-bottom: 1px solid var(--color-border-container-divider-tildlh, transparent);
|
|
344
344
|
border-radius: var(--border-radius-container-pmtq2d, 16px) var(--border-radius-container-pmtq2d, 16px) 0 0;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
.awsui_header--
|
|
347
|
+
.awsui_header--text_1d2i7_x1ilq_295:not(#\9) {
|
|
348
348
|
/* used in test-utils */
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
.
|
|
351
|
+
.awsui_footer_1d2i7_x1ilq_299:not(#\9) {
|
|
352
352
|
border-top: var(--border-divider-section-width-orq175, 2px) solid var(--color-border-divider-default-9o8zql, #e9ebed);
|
|
353
353
|
padding: var(--space-scaled-s-913kwi, 12px) var(--space-container-horizontal-jxdgil, 20px);
|
|
354
354
|
background-color: var(--color-background-container-content-og3y0v, #ffffff);
|
|
355
355
|
position: sticky;
|
|
356
356
|
bottom: 0;
|
|
357
|
+
z-index: 800;
|
|
357
358
|
}
|
|
358
|
-
.awsui_footer--
|
|
359
|
+
.awsui_footer--stuck_1d2i7_x1ilq_307:not(#\9) {
|
|
359
360
|
border-radius: 0 0 var(--border-radius-container-pmtq2d, 16px) var(--border-radius-container-pmtq2d, 16px);
|
|
360
361
|
}
|
|
361
|
-
.
|
|
362
|
+
.awsui_footer_1d2i7_x1ilq_299:not(#\9):after {
|
|
362
363
|
content: "";
|
|
363
364
|
display: table;
|
|
364
365
|
clear: both;
|
|
365
366
|
}
|
|
366
367
|
|
|
367
|
-
.awsui_dismiss-
|
|
368
|
+
.awsui_dismiss-control_1d2i7_x1ilq_316:not(#\9) {
|
|
368
369
|
/* used in test-utils */
|
|
369
370
|
}
|
|
370
371
|
|
|
371
|
-
.awsui_modal-
|
|
372
|
+
.awsui_modal-open_1d2i7_x1ilq_320:not(#\9) {
|
|
372
373
|
overflow: hidden;
|
|
373
374
|
/*
|
|
374
375
|
* When padding-right is added to account for scrollbar being turned
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"dialog": "
|
|
6
|
-
"modal-slide-up": "awsui_modal-slide-
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"refresh": "
|
|
9
|
-
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-
|
|
10
|
-
"root": "
|
|
11
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
12
|
-
"hidden": "
|
|
13
|
-
"focus-lock": "awsui_focus-
|
|
14
|
-
"small": "
|
|
15
|
-
"medium": "
|
|
16
|
-
"large": "
|
|
17
|
-
"max": "
|
|
18
|
-
"breakpoint-xs": "awsui_breakpoint-
|
|
19
|
-
"container": "
|
|
20
|
-
"content": "
|
|
21
|
-
"no-paddings": "awsui_no-
|
|
22
|
-
"header": "
|
|
23
|
-
"header--text": "awsui_header--
|
|
24
|
-
"footer": "
|
|
25
|
-
"footer--stuck": "awsui_footer--
|
|
26
|
-
"dismiss-control": "awsui_dismiss-
|
|
27
|
-
"modal-open": "awsui_modal-
|
|
5
|
+
"dialog": "awsui_dialog_1d2i7_x1ilq_105",
|
|
6
|
+
"modal-slide-up": "awsui_modal-slide-up_1d2i7_x1ilq_1",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1d2i7_x1ilq_1",
|
|
8
|
+
"refresh": "awsui_refresh_1d2i7_x1ilq_128",
|
|
9
|
+
"awsui-motion-scale-popup": "awsui_awsui-motion-scale-popup_1d2i7_x1ilq_1",
|
|
10
|
+
"root": "awsui_root_1d2i7_x1ilq_161",
|
|
11
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_1d2i7_x1ilq_1",
|
|
12
|
+
"hidden": "awsui_hidden_1d2i7_x1ilq_226",
|
|
13
|
+
"focus-lock": "awsui_focus-lock_1d2i7_x1ilq_230",
|
|
14
|
+
"small": "awsui_small_1d2i7_x1ilq_248",
|
|
15
|
+
"medium": "awsui_medium_1d2i7_x1ilq_251",
|
|
16
|
+
"large": "awsui_large_1d2i7_x1ilq_254",
|
|
17
|
+
"max": "awsui_max_1d2i7_x1ilq_257",
|
|
18
|
+
"breakpoint-xs": "awsui_breakpoint-xs_1d2i7_x1ilq_257",
|
|
19
|
+
"container": "awsui_container_1d2i7_x1ilq_262",
|
|
20
|
+
"content": "awsui_content_1d2i7_x1ilq_281",
|
|
21
|
+
"no-paddings": "awsui_no-paddings_1d2i7_x1ilq_284",
|
|
22
|
+
"header": "awsui_header_1d2i7_x1ilq_288",
|
|
23
|
+
"header--text": "awsui_header--text_1d2i7_x1ilq_295",
|
|
24
|
+
"footer": "awsui_footer_1d2i7_x1ilq_299",
|
|
25
|
+
"footer--stuck": "awsui_footer--stuck_1d2i7_x1ilq_307",
|
|
26
|
+
"dismiss-control": "awsui_dismiss-control_1d2i7_x1ilq_316",
|
|
27
|
+
"modal-open": "awsui_modal-open_1d2i7_x1ilq_320"
|
|
28
28
|
};
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ export default class ExpandableSectionWrapper extends ComponentWrapper {
|
|
|
3
3
|
static rootSelector: string;
|
|
4
4
|
findHeader(): ElementWrapper;
|
|
5
5
|
findContent(): ElementWrapper;
|
|
6
|
+
findExpandButton(): ElementWrapper;
|
|
6
7
|
findExpandedContent(): ElementWrapper | null;
|
|
7
8
|
findExpandIcon(): ElementWrapper;
|
|
8
9
|
}
|
|
@@ -12,6 +12,12 @@ class ExpandableSectionWrapper extends dom_1.ComponentWrapper {
|
|
|
12
12
|
findContent() {
|
|
13
13
|
return this.findByClassName(styles_selectors_js_1.default.content);
|
|
14
14
|
}
|
|
15
|
+
/*
|
|
16
|
+
* Returns the area that can be clicked in order to expand or collapse the section.
|
|
17
|
+
*/
|
|
18
|
+
findExpandButton() {
|
|
19
|
+
return this.findByClassName(styles_selectors_js_1.default['expand-button']);
|
|
20
|
+
}
|
|
15
21
|
findExpandedContent() {
|
|
16
22
|
return this.find(`:scope > .${styles_selectors_js_1.default['content-expanded']}, :scope > .${styles_selectors_js_2.default.content} > .${styles_selectors_js_1.default['content-expanded']}`);
|
|
17
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,yFAAqE;AACrE,gFAAqE;AAErE,MAAqB,wBAAyB,SAAQ,sBAAgB;IAGpE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CACd,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CACjH,CAAC;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,yFAAqE;AACrE,gFAAqE;AAErE,MAAqB,wBAAyB,SAAQ,sBAAgB;IAGpE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAE,CAAC;IACxD,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CACd,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CACjH,CAAC;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;AA1BH,2CA2BC;AA1BQ,qCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -3,6 +3,7 @@ export default class ExpandableSectionWrapper extends ComponentWrapper {
|
|
|
3
3
|
static rootSelector: string;
|
|
4
4
|
findHeader(): ElementWrapper;
|
|
5
5
|
findContent(): ElementWrapper;
|
|
6
|
+
findExpandButton(): ElementWrapper;
|
|
6
7
|
findExpandedContent(): ElementWrapper;
|
|
7
8
|
findExpandIcon(): ElementWrapper;
|
|
8
9
|
}
|
|
@@ -12,6 +12,12 @@ class ExpandableSectionWrapper extends selectors_1.ComponentWrapper {
|
|
|
12
12
|
findContent() {
|
|
13
13
|
return this.findByClassName(styles_selectors_js_1.default.content);
|
|
14
14
|
}
|
|
15
|
+
/*
|
|
16
|
+
* Returns the area that can be clicked in order to expand or collapse the section.
|
|
17
|
+
*/
|
|
18
|
+
findExpandButton() {
|
|
19
|
+
return this.findByClassName(styles_selectors_js_1.default['expand-button']);
|
|
20
|
+
}
|
|
15
21
|
findExpandedContent() {
|
|
16
22
|
return this.find(`:scope > .${styles_selectors_js_1.default['content-expanded']}, :scope > .${styles_selectors_js_2.default.content} > .${styles_selectors_js_1.default['content-expanded']}`);
|
|
17
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,yFAAqE;AACrE,gFAAqE;AACrE,MAAqB,wBAAyB,SAAQ,4BAAgB;IAEpE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,yFAAqE;AACrE,gFAAqE;AACrE,MAAqB,wBAAyB,SAAQ,4BAAgB;IAEpE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAE,CAAC;IACxD,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;AApBH,2CAqBC;AApBQ,qCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|