@cloudscape-design/components-themeable 3.0.197 → 3.0.199
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/main.scss +3 -1
- package/lib/internal/template/app-layout/visual-refresh/header.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/header.js +2 -1
- package/lib/internal/template/app-layout/visual-refresh/header.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/notifications.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/notifications.js +2 -1
- package/lib/internal/template/app-layout/visual-refresh/notifications.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +60 -60
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +150 -148
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +60 -60
- package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.js +13 -10
- package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +38 -40
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +14 -14
- package/lib/internal/template/segmented-control/styles.scoped.css +37 -37
- package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
- package/lib/internal/template/test-utils/dom/breadcrumb-group/index.d.ts +6 -4
- package/lib/internal/template/test-utils/dom/breadcrumb-group/index.js +8 -6
- package/lib/internal/template/test-utils/dom/breadcrumb-group/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/breadcrumb-group/index.d.ts +6 -4
- package/lib/internal/template/test-utils/selectors/breadcrumb-group/index.js +8 -6
- package/lib/internal/template/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
.
|
|
97
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9) {
|
|
98
98
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
99
99
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
100
100
|
word-wrap: break-word;
|
|
@@ -111,41 +111,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
111
111
|
color: var(--color-text-segment-default-9k644f, #545b64);
|
|
112
112
|
overflow: visible;
|
|
113
113
|
}
|
|
114
|
-
.
|
|
114
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):focus {
|
|
115
115
|
outline: none;
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(1) {
|
|
118
118
|
grid-column: 1;
|
|
119
119
|
-ms-grid-column: 1;
|
|
120
120
|
}
|
|
121
|
-
.
|
|
121
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(2) {
|
|
122
122
|
grid-column: 2;
|
|
123
123
|
-ms-grid-column: 2;
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(3) {
|
|
126
126
|
grid-column: 3;
|
|
127
127
|
-ms-grid-column: 3;
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(4) {
|
|
130
130
|
grid-column: 4;
|
|
131
131
|
-ms-grid-column: 4;
|
|
132
132
|
}
|
|
133
|
-
.
|
|
133
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(5) {
|
|
134
134
|
grid-column: 5;
|
|
135
135
|
-ms-grid-column: 5;
|
|
136
136
|
}
|
|
137
|
-
.
|
|
137
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):nth-child(6) {
|
|
138
138
|
grid-column: 6;
|
|
139
139
|
-ms-grid-column: 6;
|
|
140
140
|
}
|
|
141
|
-
.
|
|
141
|
+
.awsui_segment_8cbea_nkx9o_97[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
142
142
|
position: relative;
|
|
143
143
|
}
|
|
144
|
-
.
|
|
144
|
+
.awsui_segment_8cbea_nkx9o_97[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
145
145
|
outline: 2px dotted transparent;
|
|
146
146
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-82bijn, 0px) - 1px);
|
|
147
147
|
}
|
|
148
|
-
.
|
|
148
|
+
.awsui_segment_8cbea_nkx9o_97[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
149
149
|
content: " ";
|
|
150
150
|
display: block;
|
|
151
151
|
position: absolute;
|
|
@@ -156,53 +156,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
156
156
|
border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
|
|
157
157
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
158
158
|
}
|
|
159
|
-
.
|
|
159
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):last-child {
|
|
160
160
|
border-right-width: var(--border-field-width-y6x4sn, 1px);
|
|
161
161
|
border-radius: 0 var(--border-radius-button-qh52qv, 2px) var(--border-radius-button-qh52qv, 2px) 0;
|
|
162
162
|
}
|
|
163
|
-
.
|
|
163
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):first-child {
|
|
164
164
|
border-radius: var(--border-radius-button-qh52qv, 2px) 0 0 var(--border-radius-button-qh52qv, 2px);
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
.awsui_segment_8cbea_nkx9o_97.awsui_disabled_8cbea_nkx9o_166:not(#\9) {
|
|
167
167
|
background: var(--color-background-segment-disabled-gcpwaz, #ffffff);
|
|
168
168
|
border-color: var(--color-border-segment-disabled-fqvszu, #d5dbdb);
|
|
169
169
|
color: var(--color-text-interactive-disabled-jcikk2, #aab7b8);
|
|
170
170
|
}
|
|
171
|
-
.
|
|
171
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):not(.awsui_disabled_8cbea_nkx9o_166) + .awsui_segment_8cbea_nkx9o_97.awsui_disabled_8cbea_nkx9o_166 {
|
|
172
172
|
border-left-color: var(--color-border-segment-default-zm0agy, #687078);
|
|
173
173
|
}
|
|
174
|
-
.
|
|
175
|
-
background: var(--color-background-segment-active-
|
|
174
|
+
.awsui_segment_8cbea_nkx9o_97.awsui_selected_8cbea_nkx9o_174:not(#\9) {
|
|
175
|
+
background: var(--color-background-segment-active-rod112, #0073bb);
|
|
176
176
|
border-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
177
|
-
color: var(--color-text-segment-active-
|
|
177
|
+
color: var(--color-text-segment-active-p9yawx, #ffffff);
|
|
178
178
|
}
|
|
179
|
-
.
|
|
179
|
+
.awsui_segment_8cbea_nkx9o_97.awsui_selected_8cbea_nkx9o_174 + .awsui_segment_8cbea_nkx9o_97:not(#\9), .awsui_segment_8cbea_nkx9o_97.awsui_selected_8cbea_nkx9o_174 + .awsui_segment_8cbea_nkx9o_97.awsui_disabled_8cbea_nkx9o_166:not(#\9) {
|
|
180
180
|
border-left-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
181
181
|
}
|
|
182
|
-
.
|
|
183
|
-
background: var(--color-background-segment-hover-
|
|
184
|
-
color: var(--color-text-segment-hover-
|
|
182
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):hover:not(.awsui_selected_8cbea_nkx9o_174):not(.awsui_disabled_8cbea_nkx9o_166):not(:focus) {
|
|
183
|
+
background: var(--color-background-segment-hover-eccr37, #ffffff);
|
|
184
|
+
color: var(--color-text-segment-hover-1lgt1u, #0073bb);
|
|
185
185
|
border-color: var(--color-border-segment-hover-0iwmji, #16191f);
|
|
186
186
|
cursor: pointer;
|
|
187
187
|
}
|
|
188
|
-
.
|
|
188
|
+
.awsui_segment_8cbea_nkx9o_97:not(#\9):hover:not(.awsui_selected_8cbea_nkx9o_174):not(.awsui_disabled_8cbea_nkx9o_166):not(:focus) + .awsui_segment_8cbea_nkx9o_97:not(.awsui_selected_8cbea_nkx9o_174) {
|
|
189
189
|
border-left-color: var(--color-border-segment-hover-0iwmji, #16191f);
|
|
190
190
|
}
|
|
191
|
-
.
|
|
191
|
+
.awsui_segment_8cbea_nkx9o_97.awsui_selected_8cbea_nkx9o_174 + .awsui_segment_8cbea_nkx9o_97:not(#\9):hover:not(.awsui_selected_8cbea_nkx9o_174):not(.awsui_disabled_8cbea_nkx9o_166):not(:focus) {
|
|
192
192
|
border-left-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.
|
|
195
|
+
.awsui_icon_8cbea_nkx9o_195:not(#\9) {
|
|
196
196
|
/* used in test-utils */
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
.awsui_with-
|
|
199
|
+
.awsui_with-text_8cbea_nkx9o_199:not(#\9) {
|
|
200
200
|
position: relative;
|
|
201
201
|
left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
202
202
|
margin-right: var(--space-xxs-ynfts5, 4px);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
.awsui_with-no-
|
|
205
|
+
.awsui_with-no-text_8cbea_nkx9o_205:not(#\9) {
|
|
206
206
|
margin-right: auto;
|
|
207
207
|
margin-left: auto;
|
|
208
208
|
right: 0;
|
|
@@ -213,7 +213,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
213
213
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
214
214
|
SPDX-License-Identifier: Apache-2.0
|
|
215
215
|
*/
|
|
216
|
-
.
|
|
216
|
+
.awsui_root_8cbea_nkx9o_216:not(#\9) {
|
|
217
217
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
218
218
|
border-collapse: separate;
|
|
219
219
|
border-spacing: 0;
|
|
@@ -252,40 +252,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
252
252
|
-moz-osx-font-smoothing: auto;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
.awsui_segment-
|
|
255
|
+
.awsui_segment-part_8cbea_nkx9o_229:not(#\9) {
|
|
256
256
|
display: inline-grid;
|
|
257
257
|
}
|
|
258
258
|
@media (max-width: 688px) {
|
|
259
|
-
.awsui_segment-
|
|
259
|
+
.awsui_segment-part_8cbea_nkx9o_229:not(#\9) {
|
|
260
260
|
display: none;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.
|
|
264
|
+
.awsui_select_8cbea_nkx9o_174:not(#\9) {
|
|
265
265
|
display: none;
|
|
266
266
|
}
|
|
267
267
|
@media (max-width: 688px) {
|
|
268
|
-
.
|
|
268
|
+
.awsui_select_8cbea_nkx9o_174:not(#\9) {
|
|
269
269
|
display: block;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
.awsui_segment-count-
|
|
273
|
+
.awsui_segment-count-2_8cbea_nkx9o_248:not(#\9) {
|
|
274
274
|
grid-template-columns: 1fr 1fr;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
.awsui_segment-count-
|
|
277
|
+
.awsui_segment-count-3_8cbea_nkx9o_253:not(#\9) {
|
|
278
278
|
grid-template-columns: 1fr 1fr 1fr;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
.awsui_segment-count-
|
|
281
|
+
.awsui_segment-count-4_8cbea_nkx9o_258:not(#\9) {
|
|
282
282
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
.awsui_segment-count-
|
|
285
|
+
.awsui_segment-count-5_8cbea_nkx9o_263:not(#\9) {
|
|
286
286
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.awsui_segment-count-
|
|
289
|
+
.awsui_segment-count-6_8cbea_nkx9o_268:not(#\9) {
|
|
290
290
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
291
291
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"selected": "
|
|
8
|
-
"icon": "
|
|
9
|
-
"with-text": "awsui_with-
|
|
10
|
-
"with-no-text": "awsui_with-no-
|
|
11
|
-
"root": "
|
|
12
|
-
"segment-part": "awsui_segment-
|
|
13
|
-
"select": "
|
|
14
|
-
"segment-count-2": "awsui_segment-count-
|
|
15
|
-
"segment-count-3": "awsui_segment-count-
|
|
16
|
-
"segment-count-4": "awsui_segment-count-
|
|
17
|
-
"segment-count-5": "awsui_segment-count-
|
|
18
|
-
"segment-count-6": "awsui_segment-count-
|
|
5
|
+
"segment": "awsui_segment_8cbea_nkx9o_97",
|
|
6
|
+
"disabled": "awsui_disabled_8cbea_nkx9o_166",
|
|
7
|
+
"selected": "awsui_selected_8cbea_nkx9o_174",
|
|
8
|
+
"icon": "awsui_icon_8cbea_nkx9o_195",
|
|
9
|
+
"with-text": "awsui_with-text_8cbea_nkx9o_199",
|
|
10
|
+
"with-no-text": "awsui_with-no-text_8cbea_nkx9o_205",
|
|
11
|
+
"root": "awsui_root_8cbea_nkx9o_216",
|
|
12
|
+
"segment-part": "awsui_segment-part_8cbea_nkx9o_229",
|
|
13
|
+
"select": "awsui_select_8cbea_nkx9o_174",
|
|
14
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_nkx9o_248",
|
|
15
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_nkx9o_253",
|
|
16
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_nkx9o_258",
|
|
17
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_nkx9o_263",
|
|
18
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_nkx9o_268"
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -3,16 +3,18 @@ import ButtonDropdownWrapper from '../button-dropdown';
|
|
|
3
3
|
export default class BreadcrumbGroupWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
/**
|
|
6
|
-
* Returns all
|
|
6
|
+
* Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
|
|
7
|
+
* even though it is not technically a link.
|
|
7
8
|
*
|
|
8
|
-
* To find a specific
|
|
9
|
+
* To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
|
|
9
10
|
* @see findBreadcrumbLink
|
|
10
11
|
*/
|
|
11
12
|
findBreadcrumbLinks(): Array<ElementWrapper>;
|
|
12
13
|
/**
|
|
13
|
-
* Returns
|
|
14
|
+
* Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
|
|
15
|
+
* even though it is not technically a link.
|
|
14
16
|
*
|
|
15
|
-
* @param index 1-based
|
|
17
|
+
* @param index 1-based item index
|
|
16
18
|
*/
|
|
17
19
|
findBreadcrumbLink(index: number): ElementWrapper | null;
|
|
18
20
|
findDropdown(): ButtonDropdownWrapper | null;
|
|
@@ -28,18 +28,20 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
|
|
|
28
28
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Returns all
|
|
31
|
+
* Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
|
|
32
|
+
* even though it is not technically a link.
|
|
32
33
|
*
|
|
33
|
-
* To find a specific
|
|
34
|
+
* To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
|
|
34
35
|
* @see findBreadcrumbLink
|
|
35
36
|
*/
|
|
36
37
|
BreadcrumbGroupWrapper.prototype.findBreadcrumbLinks = function () {
|
|
37
|
-
return this.findAll(".".concat(styles_selectors_js_2.default.breadcrumb, "
|
|
38
|
+
return this.findAll(".".concat(styles_selectors_js_2.default.breadcrumb, " .").concat(styles_selectors_js_2.default.anchor));
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
|
-
* Returns
|
|
41
|
+
* Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
|
|
42
|
+
* even though it is not technically a link.
|
|
41
43
|
*
|
|
42
|
-
* @param index 1-based
|
|
44
|
+
* @param index 1-based item index
|
|
43
45
|
*/
|
|
44
46
|
BreadcrumbGroupWrapper.prototype.findBreadcrumbLink = function (index) {
|
|
45
47
|
// We insert the breadcrumb-ellipsis as the second element so we have to filter it out.
|
|
@@ -48,7 +50,7 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
|
|
|
48
50
|
if (index > 1) {
|
|
49
51
|
index++;
|
|
50
52
|
}
|
|
51
|
-
return this.find(".".concat(styles_selectors_js_1.default.item, ":nth-child(").concat(index, ")
|
|
53
|
+
return this.find(".".concat(styles_selectors_js_1.default.item, ":nth-child(").concat(index, ") .").concat(styles_selectors_js_2.default.anchor));
|
|
52
54
|
};
|
|
53
55
|
BreadcrumbGroupWrapper.prototype.findDropdown = function () {
|
|
54
56
|
var buttonDropdown = this.find(".".concat(styles_selectors_js_3.default['button-dropdown']));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,sDAAuD;AACvD,qFAAmE;AACnE,0FAA4E;AAC5E,oFAAgF;AAEhF;IAAoD,0CAAgB;IAApE;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,8DAA0F;AAC1F,sDAAuD;AACvD,qFAAmE;AACnE,0FAA4E;AAC5E,oFAAgF;AAEhF;IAAoD,0CAAgB;IAApE;;IAgCA,CAAC;IA9BC;;;;;;OAMG;IACH,oDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAI,6BAAU,CAAC,UAAU,eAAK,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IACzE,CAAC;IACD;;;;;OAKG;IACH,mDAAkB,GAAlB,UAAmB,KAAa;QAC9B,uFAAuF;QACvF,oFAAoF;QACpF,mJAAmJ;QACnJ,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,KAAK,EAAE,CAAC;SACT;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,IAAI,wBAAc,KAAK,gBAAM,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IAChF,CAAC;IAED,6CAAY,GAAZ;QACE,IAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAoB,CAAC,iBAAiB,CAAC,CAAE,CAAC,CAAC;QAChF,OAAO,cAAc,IAAI,IAAI,yBAAqB,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAClF,CAAC;IA9BM,mCAAY,GAAW,6BAAM,CAAC,kBAAkB,CAAC,CAAC;IA+B3D,6BAAC;CAAA,AAhCD,CAAoD,sBAAgB,GAgCnE;kBAhCoB,sBAAsB"}
|
|
@@ -3,16 +3,18 @@ import ButtonDropdownWrapper from '../button-dropdown';
|
|
|
3
3
|
export default class BreadcrumbGroupWrapper extends ComponentWrapper {
|
|
4
4
|
static rootSelector: string;
|
|
5
5
|
/**
|
|
6
|
-
* Returns all
|
|
6
|
+
* Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
|
|
7
|
+
* even though it is not technically a link.
|
|
7
8
|
*
|
|
8
|
-
* To find a specific
|
|
9
|
+
* To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
|
|
9
10
|
* @see findBreadcrumbLink
|
|
10
11
|
*/
|
|
11
12
|
findBreadcrumbLinks(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
|
|
12
13
|
/**
|
|
13
|
-
* Returns
|
|
14
|
+
* Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
|
|
15
|
+
* even though it is not technically a link.
|
|
14
16
|
*
|
|
15
|
-
* @param index 1-based
|
|
17
|
+
* @param index 1-based item index
|
|
16
18
|
*/
|
|
17
19
|
findBreadcrumbLink(index: number): ElementWrapper;
|
|
18
20
|
findDropdown(): ButtonDropdownWrapper;
|
|
@@ -28,18 +28,20 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
|
|
|
28
28
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Returns all
|
|
31
|
+
* Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
|
|
32
|
+
* even though it is not technically a link.
|
|
32
33
|
*
|
|
33
|
-
* To find a specific
|
|
34
|
+
* To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
|
|
34
35
|
* @see findBreadcrumbLink
|
|
35
36
|
*/
|
|
36
37
|
BreadcrumbGroupWrapper.prototype.findBreadcrumbLinks = function () {
|
|
37
|
-
return this.findAll(".".concat(styles_selectors_js_2.default.breadcrumb, "
|
|
38
|
+
return this.findAll(".".concat(styles_selectors_js_2.default.breadcrumb, " .").concat(styles_selectors_js_2.default.anchor));
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
|
-
* Returns
|
|
41
|
+
* Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
|
|
42
|
+
* even though it is not technically a link.
|
|
41
43
|
*
|
|
42
|
-
* @param index 1-based
|
|
44
|
+
* @param index 1-based item index
|
|
43
45
|
*/
|
|
44
46
|
BreadcrumbGroupWrapper.prototype.findBreadcrumbLink = function (index) {
|
|
45
47
|
// We insert the breadcrumb-ellipsis as the second element so we have to filter it out.
|
|
@@ -48,7 +50,7 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
|
|
|
48
50
|
if (index > 1) {
|
|
49
51
|
index++;
|
|
50
52
|
}
|
|
51
|
-
return this.find(".".concat(styles_selectors_js_1.default.item, ":nth-child(").concat(index, ")
|
|
53
|
+
return this.find(".".concat(styles_selectors_js_1.default.item, ":nth-child(").concat(index, ") .").concat(styles_selectors_js_2.default.anchor));
|
|
52
54
|
};
|
|
53
55
|
BreadcrumbGroupWrapper.prototype.findDropdown = function () {
|
|
54
56
|
var buttonDropdown = this.find(".".concat(styles_selectors_js_3.default['button-dropdown']));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/breadcrumb-group/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,sDAAuD;AACvD,qFAAmE;AACnE,0FAA4E;AAC5E,oFAAgF;AAChF;IAAoD,0CAAgB;IAApE;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/breadcrumb-group/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0EAAgG;AAChG,sDAAuD;AACvD,qFAAmE;AACnE,0FAA4E;AAC5E,oFAAgF;AAChF;IAAoD,0CAAgB;IAApE;;IA+BA,CAAC;IA7BC;;;;;;OAMG;IACH,oDAAmB,GAAnB;QACE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAI,6BAAU,CAAC,UAAU,eAAK,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IACzE,CAAC;IACD;;;;;OAKG;IACH,mDAAkB,GAAlB,UAAmB,KAAa;QAC9B,uFAAuF;QACvF,oFAAoF;QACpF,mJAAmJ;QACnJ,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,KAAK,EAAE,CAAC;SACT;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAM,CAAC,IAAI,wBAAc,KAAK,gBAAM,6BAAU,CAAC,MAAM,CAAE,CAAC,CAAC;IAChF,CAAC;IACD,6CAAY,GAAZ;QACE,IAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAI,6BAAoB,CAAC,iBAAiB,CAAC,CAAE,CAAC,CAAC;QAChF,OAAO,cAAc,IAAI,IAAI,yBAAqB,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAClF,CAAC;IA7BM,mCAAY,GAAW,6BAAM,CAAC,kBAAkB,CAAC,CAAC;IA8B3D,6BAAC;CAAA,AA/BD,CAAoD,4BAAgB,GA+BnE;kBA/BoB,sBAAsB"}
|