@cloudscape-design/components 3.0.22 → 3.0.25
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/alert/styles.scoped.css +0 -34
- package/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
- package/annotation-context/annotation/annotation-popover.js +12 -16
- package/annotation-context/annotation/annotation-popover.js.map +1 -1
- package/annotation-context/annotation/styles.scoped.css +0 -18
- package/app-layout/content-wrapper/styles.scoped.css +0 -4
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +6 -4
- package/app-layout/index.js.map +1 -1
- package/app-layout/mobile-toolbar/styles.scoped.css +0 -9
- package/app-layout/styles.scoped.css +0 -20
- package/app-layout/toggles/styles.scoped.css +0 -16
- package/app-layout/visual-refresh/styles.scoped.css +0 -71
- package/area-chart/styles.scoped.css +0 -13
- package/attribute-editor/styles.scoped.css +0 -23
- package/badge/styles.scoped.css +0 -15
- package/bar-chart/interfaces.d.ts +1 -1
- package/bar-chart/interfaces.d.ts.map +1 -1
- package/bar-chart/interfaces.js.map +1 -1
- package/box/styles.scoped.css +0 -171
- package/breadcrumb-group/item/styles.scoped.css +0 -11
- package/breadcrumb-group/styles.scoped.css +0 -10
- package/button/styles.scoped.css +0 -264
- package/button-dropdown/category-elements/styles.scoped.css +0 -26
- package/button-dropdown/item-element/styles.scoped.css +0 -22
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +0 -5
- package/button-dropdown/styles.scoped.css +0 -7
- package/cards/styles.scoped.css +0 -45
- package/checkbox/styles.scoped.css +0 -11
- package/code-editor/styles.scoped.css +0 -87
- package/collection-preferences/styles.scoped.css +0 -12
- package/column-layout/styles.scoped.css +0 -12
- package/container/styles.scoped.css +0 -27
- package/date-picker/calendar/index.d.ts.map +1 -1
- package/date-picker/calendar/index.js +2 -2
- package/date-picker/calendar/index.js.map +1 -1
- package/date-picker/calendar/utils/locales.d.ts +2 -0
- package/date-picker/calendar/utils/locales.d.ts.map +1 -1
- package/date-picker/calendar/utils/locales.js +4 -0
- package/date-picker/calendar/utils/locales.js.map +1 -1
- package/date-picker/styles.scoped.css +0 -45
- package/date-range-picker/calendar/grids/day/styles.scoped.css +0 -45
- package/date-range-picker/calendar/index.js +2 -2
- package/date-range-picker/calendar/index.js.map +1 -1
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +13 -15
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/relative-range/styles.scoped.css +0 -3
- package/date-range-picker/styles.css.js +41 -42
- package/date-range-picker/styles.scoped.css +49 -92
- package/date-range-picker/styles.selectors.js +41 -42
- package/expandable-section/styles.scoped.css +0 -33
- package/flashbar/styles.scoped.css +0 -36
- package/form/styles.scoped.css +0 -12
- package/form-field/styles.scoped.css +0 -26
- package/grid/styles.scoped.css +0 -6
- package/header/styles.scoped.css +0 -51
- package/help-panel/styles.scoped.css +0 -73
- package/hotspot/styles.scoped.css +0 -3
- package/icon/styles.scoped.css +0 -33
- package/input/styles.scoped.css +0 -49
- package/internal/base-component/styles.scoped.css +0 -1
- package/internal/components/abstract-switch/styles.scoped.css +0 -7
- package/internal/components/button-trigger/styles.scoped.css +0 -42
- package/internal/components/cartesian-chart/styles.scoped.css +0 -10
- package/internal/components/chart-filter/styles.scoped.css +0 -4
- package/internal/components/chart-legend/styles.scoped.css +0 -8
- package/internal/components/chart-plot/styles.scoped.css +0 -1
- package/internal/components/chart-popover/styles.scoped.css +0 -4
- package/internal/components/chart-series-details/styles.scoped.css +0 -12
- package/internal/components/chart-series-marker/styles.scoped.css +0 -7
- package/internal/components/chart-status-container/styles.scoped.css +0 -1
- package/internal/components/checkbox-icon/styles.scoped.css +0 -10
- package/internal/components/content-layout/styles.scoped.css +0 -5
- package/internal/components/dark-ribbon/styles.scoped.css +0 -1
- package/internal/components/dropdown/styles.scoped.css +0 -17
- package/internal/components/dropdown-footer/styles.scoped.css +0 -6
- package/internal/components/dropdown-status/styles.scoped.css +0 -6
- package/internal/components/filtering-token/styles.scoped.css +0 -21
- package/internal/components/menu-dropdown/styles.scoped.css +0 -17
- package/internal/components/option/index.js +3 -3
- package/internal/components/option/index.js.map +1 -1
- package/internal/components/option/option-parts.js +3 -3
- package/internal/components/option/option-parts.js.map +1 -1
- package/internal/components/option/styles.scoped.css +0 -16
- package/internal/components/options-list/styles.scoped.css +0 -5
- package/internal/components/selectable-item/styles.scoped.css +0 -44
- package/internal/environment.js +1 -1
- package/line-chart/interfaces.d.ts +1 -1
- package/line-chart/interfaces.d.ts.map +1 -1
- package/line-chart/interfaces.js.map +1 -1
- package/link/styles.scoped.css +0 -77
- package/mixed-line-bar-chart/bar-series.d.ts +1 -1
- package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/bar-series.js.map +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js +9 -10
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/chart-filters.d.ts +2 -2
- package/mixed-line-bar-chart/chart-filters.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-filters.js +1 -2
- package/mixed-line-bar-chart/chart-filters.js.map +1 -1
- package/mixed-line-bar-chart/chart-legend.d.ts +2 -2
- package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-legend.js +1 -2
- package/mixed-line-bar-chart/chart-legend.js.map +1 -1
- package/mixed-line-bar-chart/domain.d.ts +4 -0
- package/mixed-line-bar-chart/domain.d.ts.map +1 -0
- package/mixed-line-bar-chart/domain.js +138 -0
- package/mixed-line-bar-chart/domain.js.map +1 -0
- package/mixed-line-bar-chart/format-highlighted.d.ts +2 -4
- package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.js +26 -15
- package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js +3 -2
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.js +23 -35
- package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
- package/mixed-line-bar-chart/interfaces.d.ts +12 -2
- package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
- package/mixed-line-bar-chart/interfaces.js.map +1 -1
- package/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/mixed-line-bar-chart/internal.js +14 -6
- package/mixed-line-bar-chart/internal.js.map +1 -1
- package/mixed-line-bar-chart/line-series.d.ts +2 -2
- package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/line-series.js +21 -9
- package/mixed-line-bar-chart/line-series.js.map +1 -1
- package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
- package/mixed-line-bar-chart/make-scaled-bar-groups.js +11 -4
- package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
- package/mixed-line-bar-chart/make-scaled-series.d.ts +2 -4
- package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/make-scaled-series.js +89 -25
- package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
- package/mixed-line-bar-chart/styles.scoped.css +0 -13
- package/mixed-line-bar-chart/utils.d.ts +5 -6
- package/mixed-line-bar-chart/utils.d.ts.map +1 -1
- package/mixed-line-bar-chart/utils.js +11 -112
- package/mixed-line-bar-chart/utils.js.map +1 -1
- package/modal/styles.scoped.css +0 -31
- package/multiselect/styles.scoped.css +0 -4
- package/package.json +1 -1
- package/pagination/styles.scoped.css +0 -22
- package/pie-chart/styles.scoped.css +0 -25
- package/popover/styles.scoped.css +0 -35
- package/progress-bar/internal.d.ts.map +1 -1
- package/progress-bar/internal.js +1 -1
- package/progress-bar/internal.js.map +1 -1
- package/progress-bar/styles.scoped.css +0 -25
- package/property-filter/controller.d.ts +3 -3
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/interfaces.d.ts +7 -20
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/styles.scoped.css +0 -22
- package/property-filter/use-load-items.d.ts +1 -1
- package/radio-group/styles.scoped.css +0 -22
- package/s3-resource-selector/s3-in-context/styles.scoped.css +0 -6
- package/segmented-control/styles.scoped.css +0 -36
- package/select/parts/styles.scoped.css +0 -6
- package/select/styles.scoped.css +0 -4
- package/side-navigation/styles.scoped.css +0 -38
- package/space-between/styles.scoped.css +0 -40
- package/spinner/styles.scoped.css +0 -17
- package/split-panel/styles.scoped.css +0 -65
- package/status-indicator/styles.scoped.css +0 -20
- package/table/body-cell/styles.scoped.css +0 -29
- package/table/header-cell/styles.scoped.css +0 -32
- package/table/resizer/styles.scoped.css +0 -6
- package/table/selection-control/styles.scoped.css +0 -3
- package/table/styles.scoped.css +0 -39
- package/tabs/styles.scoped.css +0 -41
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +3 -1
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/styles.scoped.css +0 -12
- package/test-utils/dom/split-panel/index.d.ts +1 -0
- package/test-utils/dom/split-panel/index.js +3 -0
- package/test-utils/dom/split-panel/index.js.map +1 -1
- package/test-utils/selectors/split-panel/index.d.ts +1 -0
- package/test-utils/selectors/split-panel/index.js +3 -0
- package/test-utils/selectors/split-panel/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/text-content/styles.scoped.css +0 -54
- package/text-filter/styles.scoped.css +0 -7
- package/textarea/styles.scoped.css +0 -30
- package/tiles/styles.scoped.css +0 -55
- package/toggle/styles.scoped.css +0 -14
- package/token-group/styles.scoped.css +0 -35
- package/top-navigation/1.0-beta/styles.scoped.css +0 -40
- package/top-navigation/styles.scoped.css +0 -75
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +0 -22
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +0 -24
- package/tutorial-panel/styles.scoped.css +0 -5
- package/wizard/styles.scoped.css +0 -54
|
@@ -183,8 +183,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
185
|
.awsui_progress_11huc_kp8rg_185:not(#\9)::-webkit-progress-value {
|
|
186
|
-
-webkit-transition: width 135ms linear;
|
|
187
|
-
transition: width 135ms linear;
|
|
188
186
|
-webkit-transition: width var(--motion-duration-moderate-vgx1te, 135ms) linear;
|
|
189
187
|
transition: width var(--motion-duration-moderate-vgx1te, 135ms) linear;
|
|
190
188
|
}
|
|
@@ -202,7 +200,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
200
|
}
|
|
203
201
|
|
|
204
202
|
.awsui_result-state_11huc_kp8rg_199:not(#\9) {
|
|
205
|
-
animation: awsui_awsui-motion-fade-in_11huc_kp8rg_1 180ms ease-out;
|
|
206
203
|
animation: awsui_awsui-motion-fade-in_11huc_kp8rg_1 var(--motion-duration-transition-show-paced-ai4wlf, 180ms) var(--motion-easing-transition-show-paced-bg1hyg, ease-out);
|
|
207
204
|
}
|
|
208
205
|
@keyframes awsui_awsui-motion-fade-in_11huc_kp8rg_1 {
|
|
@@ -254,19 +251,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
254
251
|
widows: 2;
|
|
255
252
|
word-spacing: normal;
|
|
256
253
|
box-sizing: border-box;
|
|
257
|
-
font-size: 14px;
|
|
258
254
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
259
|
-
line-height: 22px;
|
|
260
255
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
261
|
-
color: #000716;
|
|
262
256
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
263
257
|
font-weight: 400;
|
|
264
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
265
258
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
266
259
|
}
|
|
267
260
|
|
|
268
261
|
.awsui_with-result-button_11huc_kp8rg_232:not(#\9) {
|
|
269
|
-
padding-right: 16px;
|
|
270
262
|
padding-right: var(--space-m-17eucw, 16px);
|
|
271
263
|
}
|
|
272
264
|
|
|
@@ -280,7 +272,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
280
272
|
|
|
281
273
|
.awsui_result-button_11huc_kp8rg_244:not(#\9) {
|
|
282
274
|
display: inline-block;
|
|
283
|
-
margin: 4px 0;
|
|
284
275
|
margin: var(--space-scaled-xxs-95dhkm, 4px) 0;
|
|
285
276
|
}
|
|
286
277
|
|
|
@@ -295,11 +286,8 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
295
286
|
font-weight: 700;
|
|
296
287
|
}
|
|
297
288
|
.awsui_label-key-value_11huc_kp8rg_259:not(#\9) {
|
|
298
|
-
font-weight: 700;
|
|
299
289
|
font-weight: var(--font-display-label-weight-m18hjh, 700);
|
|
300
|
-
color: #000716;
|
|
301
290
|
color: var(--color-text-label-gxskdy, #000716);
|
|
302
|
-
margin-bottom: 2px;
|
|
303
291
|
margin-bottom: var(--space-scaled-xxxs-b6dm8t, 2px);
|
|
304
292
|
}
|
|
305
293
|
|
|
@@ -311,7 +299,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
311
299
|
display: flex;
|
|
312
300
|
align-items: center;
|
|
313
301
|
max-width: 800px;
|
|
314
|
-
height: 22px;
|
|
315
302
|
height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
316
303
|
}
|
|
317
304
|
|
|
@@ -320,11 +307,8 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
320
307
|
flex-shrink: 0;
|
|
321
308
|
white-space: nowrap;
|
|
322
309
|
text-align: right;
|
|
323
|
-
font-size: 12px;
|
|
324
310
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
325
|
-
line-height: 16px;
|
|
326
311
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
327
|
-
letter-spacing: 0.005em;
|
|
328
312
|
letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
|
|
329
313
|
}
|
|
330
314
|
|
|
@@ -334,14 +318,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
334
318
|
|
|
335
319
|
.awsui_progress_11huc_kp8rg_185:not(#\9) {
|
|
336
320
|
width: 100%;
|
|
337
|
-
margin-right: 12px;
|
|
338
321
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
339
322
|
min-width: 0;
|
|
340
323
|
height: 4px;
|
|
341
324
|
border: 0 none;
|
|
342
325
|
box-sizing: border-box;
|
|
343
326
|
border-radius: 10px;
|
|
344
|
-
background-color: #e9ebed;
|
|
345
327
|
background-color: var(--color-background-progress-bar-layout-default-9xbpym, #e9ebed);
|
|
346
328
|
}
|
|
347
329
|
.awsui_progress_11huc_kp8rg_185:not(#\9)::-webkit-progress-bar {
|
|
@@ -349,12 +331,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
349
331
|
border: 0 none;
|
|
350
332
|
box-sizing: border-box;
|
|
351
333
|
border-radius: 10px;
|
|
352
|
-
background-color: #e9ebed;
|
|
353
334
|
background-color: var(--color-background-progress-bar-layout-default-9xbpym, #e9ebed);
|
|
354
335
|
}
|
|
355
336
|
.awsui_progress_11huc_kp8rg_185:not(#\9)::-webkit-progress-value {
|
|
356
337
|
border-radius: 10px 0px 0px 10px;
|
|
357
|
-
background-color: #0972d3;
|
|
358
338
|
background-color: var(--color-background-progress-bar-content-default-r4tyyh, #0972d3);
|
|
359
339
|
}
|
|
360
340
|
.awsui_progress_11huc_kp8rg_185.awsui_complete_11huc_kp8rg_311:not(#\9)::-webkit-progress-value {
|
|
@@ -362,7 +342,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
362
342
|
}
|
|
363
343
|
.awsui_progress_11huc_kp8rg_185:not(#\9)::-moz-progress-bar {
|
|
364
344
|
border-radius: 10px 0px 0px 10px;
|
|
365
|
-
background-color: #0972d3;
|
|
366
345
|
background-color: var(--color-background-progress-bar-content-default-r4tyyh, #0972d3);
|
|
367
346
|
}
|
|
368
347
|
.awsui_progress_11huc_kp8rg_185:not(#\9)::-ms-fill {
|
|
@@ -374,19 +353,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
374
353
|
border-radius: 10px;
|
|
375
354
|
}
|
|
376
355
|
.awsui_progress_11huc_kp8rg_185.awsui_progress-in-flash_11huc_kp8rg_326:not(#\9) {
|
|
377
|
-
background-color: rgba(255, 255, 255, 0.25);
|
|
378
356
|
background-color: var(--color-background-progress-bar-layout-in-flash-phmfak, rgba(255, 255, 255, 0.25));
|
|
379
357
|
}
|
|
380
358
|
.awsui_progress_11huc_kp8rg_185.awsui_progress-in-flash_11huc_kp8rg_326:not(#\9)::-webkit-progress-bar {
|
|
381
|
-
background-color: rgba(255, 255, 255, 0.25);
|
|
382
359
|
background-color: var(--color-background-progress-bar-layout-in-flash-phmfak, rgba(255, 255, 255, 0.25));
|
|
383
360
|
}
|
|
384
361
|
.awsui_progress_11huc_kp8rg_185.awsui_progress-in-flash_11huc_kp8rg_326:not(#\9)::-webkit-progress-value {
|
|
385
|
-
background-color: #ffffff;
|
|
386
362
|
background-color: var(--color-background-progress-bar-content-in-flash-37g8fy, #ffffff);
|
|
387
363
|
}
|
|
388
364
|
.awsui_progress_11huc_kp8rg_185.awsui_progress-in-flash_11huc_kp8rg_326:not(#\9)::-moz-progress-bar {
|
|
389
|
-
background-color: #ffffff;
|
|
390
365
|
background-color: var(--color-background-progress-bar-content-in-flash-37g8fy, #ffffff);
|
|
391
366
|
}
|
|
392
367
|
.awsui_progress_11huc_kp8rg_185.awsui_progress-in-flash_11huc_kp8rg_326:not(#\9)::-ms-fill {
|
|
@@ -23,8 +23,8 @@ export declare type ParsedText = {
|
|
|
23
23
|
value: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const getAllowedOperators: (property: PropertyFilterProps.FilteringProperty) => PropertyFilterProps.ComparisonOperator[];
|
|
26
|
-
export declare const parseText: (filteringText: string, filteringProperties: readonly
|
|
27
|
-
export declare const getPropertyOptions: (filteringProperty: PropertyFilterProps.FilteringProperty, filteringOptions: PropertyFilterProps['filteringOptions']) =>
|
|
26
|
+
export declare const parseText: (filteringText: string, filteringProperties: readonly import("@cloudscape-design/collection-hooks").PropertyFilterProperty[] | undefined, disableFreeTextFiltering: boolean) => ParsedText;
|
|
27
|
+
export declare const getPropertyOptions: (filteringProperty: PropertyFilterProps.FilteringProperty, filteringOptions: PropertyFilterProps['filteringOptions']) => import("@cloudscape-design/collection-hooks").PropertyFilterOption[] | undefined;
|
|
28
28
|
interface OptionGroup<T> {
|
|
29
29
|
label: string;
|
|
30
30
|
options: T[];
|
|
@@ -33,7 +33,7 @@ interface ExtendedAutosuggestOption extends AutosuggestProps.Option {
|
|
|
33
33
|
tokenValue: string;
|
|
34
34
|
}
|
|
35
35
|
export declare const getAllValueSuggestions: (filteringOptions: PropertyFilterProps['filteringOptions'], filteringProperties: PropertyFilterProps['filteringProperties'], operator: PropertyFilterProps.ComparisonOperator | undefined, i18nStrings: Pick<PropertyFilterProps.I18nStrings, 'groupValuesText'>, customGroupsText: PropertyFilterProps['customGroupsText']) => OptionGroup<ExtendedAutosuggestOption>[];
|
|
36
|
-
export declare const getPropertyByKey: (filteringProperties: PropertyFilterProps['filteringProperties'], key: string) =>
|
|
36
|
+
export declare const getPropertyByKey: (filteringProperties: PropertyFilterProps['filteringProperties'], key: string) => import("@cloudscape-design/collection-hooks").PropertyFilterProperty | undefined;
|
|
37
37
|
export declare function getPropertySuggestions<T>(filteringProperties: PropertyFilterProps['filteringProperties'], customGroupsText: PropertyFilterProps['customGroupsText'], i18nStrings: Pick<PropertyFilterProps['i18nStrings'], 'groupPropertiesText'>, filteringPropertyToOption: (filteringProperty: PropertyFilterProps.FilteringProperty) => T): OptionGroup<T>[];
|
|
38
38
|
export declare type OperatorStrings = 'operatorLessText' | 'operatorLessOrEqualText' | 'operatorGreaterText' | 'operatorGreaterOrEqualText' | 'operatorContainsText' | 'operatorDoesNotContainText' | 'operatorEqualsText' | 'operatorDoesNotEqualText';
|
|
39
39
|
export declare const getAutosuggestOptions: (parsedText: ParsedText, filteringOptions: PropertyFilterProps['filteringOptions'], filteringProperties: PropertyFilterProps['filteringProperties'], customGroupsText: PropertyFilterProps['customGroupsText'], i18nStrings: Pick<PropertyFilterProps['i18nStrings'], 'groupPropertiesText' | 'groupValuesText' | 'operatorsText' | OperatorStrings>) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/property-filter/controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,eAAO,MAAM,eAAe,UACnB,mBAAmB,CAAC,OAAO,CAAC,YACzB,mBAAmB,CAAC,UAAU,CAAC,YAC/B,MAAM,SAAS,CAAC,WAAW,GAAG,CAAC,gBAC3B,MAAM,gBAAgB,CAAC,OAAO,CAAC;sBAKpB,MAAM,YAAY,oBAAoB,KAAK;yBAOxC,MAAM;;yBAWN,oBAAoB,KAAK;iCAKjB,oBAAoB,aAAa;CAUtE,CAAC;AAEF,oBAAY,UAAU,GAClB;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AAC,EAC5E,yBAAyB,EAAE,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,iBAAiB,KAAK,CAAC,oBA2B3F;AAED,oBAAY,eAAe,GACvB,kBAAkB,GAClB,yBAAyB,GACzB,qBAAqB,GACrB,4BAA4B,GAC5B,sBAAsB,GACtB,4BAA4B,GAC5B,oBAAoB,GACpB,0BAA0B,CAAC;AAC/B,eAAO,MAAM,qBAAqB,eACpB,UAAU,oBACJ,mBAAmB,CAAC,kBAAkB,CAAC,uBACpC,mBAAmB,CAAC,qBAAqB,CAAC,oBAC7C,mBAAmB,CAAC,kBAAkB,CAAC,eAC5C,KACX,mBAAmB,CAAC,aAAa,CAAC,EAClC,qBAAqB,GAAG,iBAAiB,GAAG,eAAe,GAAG,eAAe,CAC9E;;;;;;;;;;;;;;;;CAqEF,CAAC;AAEF,eAAO,MAAM,qBAAqB,aACtB,oBAAoB,kBAAkB,eACnC,KAAK,mBAAmB,CAAC,aAAa,CAAC,EAAE,eAAe,CAAC,WAavE,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { NonCancelableEventHandler } from '../internal/events';
|
|
|
3
3
|
import { DropdownStatusProps } from '../internal/components/dropdown-status';
|
|
4
4
|
import { AutosuggestProps } from '../autosuggest/interfaces';
|
|
5
5
|
import { ExpandToViewport } from '../internal/components/dropdown/interfaces';
|
|
6
|
+
import { PropertyFilterOperator, PropertyFilterOperation, PropertyFilterToken, PropertyFilterProperty, PropertyFilterOption } from '@cloudscape-design/collection-hooks';
|
|
6
7
|
export interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {
|
|
7
8
|
/**
|
|
8
9
|
* If set to `true`, the filtering input will be disabled.
|
|
@@ -139,11 +140,15 @@ export interface PropertyFilterProps extends BaseComponentProps, ExpandToViewpor
|
|
|
139
140
|
filteringStatusType?: DropdownStatusProps.StatusType;
|
|
140
141
|
}
|
|
141
142
|
export declare namespace PropertyFilterProps {
|
|
143
|
+
type Token = PropertyFilterToken;
|
|
144
|
+
type JoinOperation = PropertyFilterOperation;
|
|
145
|
+
type ComparisonOperator = PropertyFilterOperator;
|
|
146
|
+
type FilteringProperty = PropertyFilterProperty;
|
|
147
|
+
type FilteringOption = PropertyFilterOption;
|
|
142
148
|
interface Query {
|
|
143
|
-
tokens:
|
|
149
|
+
tokens: ReadonlyArray<PropertyFilterProps.Token>;
|
|
144
150
|
operation: PropertyFilterProps.JoinOperation;
|
|
145
151
|
}
|
|
146
|
-
type JoinOperation = 'and' | 'or';
|
|
147
152
|
interface LoadItemsDetail {
|
|
148
153
|
filteringProperty?: FilteringProperty;
|
|
149
154
|
filteringOperator?: ComparisonOperator;
|
|
@@ -185,24 +190,11 @@ export declare namespace PropertyFilterProps {
|
|
|
185
190
|
removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;
|
|
186
191
|
enteredTextLabel: AutosuggestProps.EnteredTextLabel;
|
|
187
192
|
}
|
|
188
|
-
type ComparisonOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=';
|
|
189
|
-
interface FilteringProperty {
|
|
190
|
-
key: string;
|
|
191
|
-
groupValuesLabel: string;
|
|
192
|
-
propertyLabel: string;
|
|
193
|
-
operators?: readonly ComparisonOperator[];
|
|
194
|
-
defaultOperator?: ComparisonOperator;
|
|
195
|
-
group?: string;
|
|
196
|
-
}
|
|
197
193
|
interface GroupText {
|
|
198
194
|
properties: string;
|
|
199
195
|
values: string;
|
|
200
196
|
group: string;
|
|
201
197
|
}
|
|
202
|
-
interface FilteringOption {
|
|
203
|
-
propertyKey: string;
|
|
204
|
-
value: string;
|
|
205
|
-
}
|
|
206
198
|
interface FilteringChangeDetail {
|
|
207
199
|
filteringText: string;
|
|
208
200
|
filteringProperty?: FilteringProperty;
|
|
@@ -213,10 +205,5 @@ export declare namespace PropertyFilterProps {
|
|
|
213
205
|
*/
|
|
214
206
|
focus(): void;
|
|
215
207
|
}
|
|
216
|
-
interface Token {
|
|
217
|
-
value: string;
|
|
218
|
-
propertyKey?: string;
|
|
219
|
-
operator: ComparisonOperator;
|
|
220
|
-
}
|
|
221
208
|
}
|
|
222
209
|
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,gBAAgB;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAC7C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC;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BAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,gBAAgB,EAAE,MAAM,CAAC;QACzB,0BAA0B,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,KAAK,KAAK,MAAM,CAAC;QACzE,gBAAgB,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;KACrD;IAED,UAAiB,SAAS;QACxB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,qBAAqB;QACpC,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACvC;IAED,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export interface Query {\n tokens: readonly PropertyFilterProps.Token[];\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export type JoinOperation = 'and' | 'or';\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export type ComparisonOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=';\n\n export interface FilteringProperty {\n key: string;\n groupValuesLabel: string;\n propertyLabel: string;\n operators?: readonly ComparisonOperator[];\n defaultOperator?: ComparisonOperator;\n group?: string;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringOption {\n propertyKey: string;\n value: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n\n export interface Token {\n value: string;\n propertyKey?: string;\n operator: ComparisonOperator;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperator,\n PropertyFilterOperation,\n PropertyFilterToken,\n PropertyFilterProperty,\n PropertyFilterOption,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type FilteringProperty = PropertyFilterProperty;\n export type FilteringOption = PropertyFilterOption;\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n"]}
|
|
@@ -120,21 +120,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
120
120
|
widows: 2;
|
|
121
121
|
word-spacing: normal;
|
|
122
122
|
box-sizing: border-box;
|
|
123
|
-
font-size: 14px;
|
|
124
123
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
125
|
-
line-height: 22px;
|
|
126
124
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
127
|
-
color: #000716;
|
|
128
125
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
129
126
|
font-weight: 400;
|
|
130
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
131
127
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
132
128
|
}
|
|
133
129
|
|
|
134
130
|
.awsui_search-field_1wzqe_5ev6f_104:not(#\9) {
|
|
135
131
|
display: flex;
|
|
136
132
|
align-items: center;
|
|
137
|
-
max-width: calc(688px - 2 * 20px);
|
|
138
133
|
max-width: calc(688px - 2 * var(--space-l-4vl6xu, 20px));
|
|
139
134
|
}
|
|
140
135
|
|
|
@@ -143,17 +138,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
143
138
|
}
|
|
144
139
|
|
|
145
140
|
.awsui_add-token_1wzqe_5ev6f_114:not(#\9) {
|
|
146
|
-
border-left: 1px solid #e9ebed;
|
|
147
141
|
border-left: 1px solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
148
142
|
box-sizing: border-box;
|
|
149
|
-
margin-left: 16px;
|
|
150
143
|
margin-left: var(--space-m-17eucw, 16px);
|
|
151
|
-
padding-left: 16px;
|
|
152
144
|
padding-left: var(--space-m-17eucw, 16px);
|
|
153
145
|
}
|
|
154
146
|
|
|
155
147
|
.awsui_tokens_1wzqe_5ev6f_121:not(#\9) {
|
|
156
|
-
margin-top: 8px;
|
|
157
148
|
margin-top: var(--space-xs-rsr2qu, 8px);
|
|
158
149
|
}
|
|
159
150
|
|
|
@@ -162,7 +153,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
162
153
|
}
|
|
163
154
|
|
|
164
155
|
.awsui_token-editor_1wzqe_5ev6f_129:not(#\9) {
|
|
165
|
-
margin: 4px;
|
|
166
156
|
margin: var(--space-xxs-ynfts5, 4px);
|
|
167
157
|
min-width: 300px;
|
|
168
158
|
display: flex;
|
|
@@ -182,22 +172,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
172
|
.awsui_token-editor-field_1wzqe_5ev6f_146:not(#\9) {
|
|
183
173
|
width: 200px;
|
|
184
174
|
flex-shrink: 0;
|
|
185
|
-
margin-left: 24px;
|
|
186
175
|
margin-left: var(--space-xl-a39hup, 24px);
|
|
187
176
|
}
|
|
188
177
|
.awsui_token-editor-actions_1wzqe_5ev6f_151:not(#\9) {
|
|
189
178
|
display: flex;
|
|
190
179
|
justify-content: flex-end;
|
|
191
|
-
margin-top: 24px;
|
|
192
180
|
margin-top: var(--space-scaled-xl-w2t504, 24px);
|
|
193
181
|
}
|
|
194
182
|
.awsui_token-editor-commit_1wzqe_5ev6f_156:not(#\9) {
|
|
195
|
-
margin-left: 8px;
|
|
196
183
|
margin-left: var(--space-xs-rsr2qu, 8px);
|
|
197
184
|
}
|
|
198
185
|
|
|
199
186
|
.awsui_custom-control_1wzqe_5ev6f_160:not(#\9) {
|
|
200
|
-
margin-right: 12px;
|
|
201
187
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
202
188
|
}
|
|
203
189
|
|
|
@@ -206,31 +192,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
206
192
|
}
|
|
207
193
|
|
|
208
194
|
.awsui_results_1wzqe_5ev6f_168:not(#\9) {
|
|
209
|
-
color: #000716;
|
|
210
195
|
color: var(--color-text-form-label-k3j0b4, #000716);
|
|
211
196
|
display: inline-block;
|
|
212
197
|
box-sizing: border-box;
|
|
213
198
|
white-space: nowrap;
|
|
214
199
|
}
|
|
215
200
|
.awsui_results-visible_1wzqe_5ev6f_174:not(#\9) {
|
|
216
|
-
padding-left: 12px;
|
|
217
201
|
padding-left: var(--space-s-hv8c1d, 12px);
|
|
218
202
|
}
|
|
219
203
|
|
|
220
204
|
.awsui_separator_1wzqe_5ev6f_178:not(#\9) {
|
|
221
|
-
margin: 0px 16px;
|
|
222
205
|
margin: 0px var(--space-scaled-m-pv0fmt, 16px);
|
|
223
206
|
height: 100%;
|
|
224
|
-
width: 2px;
|
|
225
207
|
width: var(--border-divider-section-width-4wm2it, 2px);
|
|
226
|
-
background-color: #e9ebed;
|
|
227
208
|
background-color: var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
228
209
|
}
|
|
229
210
|
|
|
230
211
|
.awsui_toggle-collapsed_1wzqe_5ev6f_185:not(#\9) {
|
|
231
|
-
margin-top: calc(-1 * 4px);
|
|
232
212
|
margin-top: calc(-1 * var(--space-scaled-xxs-95dhkm, 4px));
|
|
233
|
-
margin-left: 8px;
|
|
234
213
|
margin-left: var(--space-xs-rsr2qu, 8px);
|
|
235
214
|
}
|
|
236
215
|
|
|
@@ -241,7 +220,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
241
220
|
}
|
|
242
221
|
|
|
243
222
|
.awsui_token-editor-cancel_1wzqe_5ev6f_196:not(#\9) {
|
|
244
|
-
margin-right: 8px;
|
|
245
223
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
246
224
|
}
|
|
247
225
|
|
|
@@ -7,7 +7,7 @@ import { PropertyFilterProps } from './interfaces';
|
|
|
7
7
|
* the same event from firing twice in a row. This means, refocusing the control sometimes results in
|
|
8
8
|
* `onLoadItems` firing, but sometimes not.
|
|
9
9
|
*/
|
|
10
|
-
export declare const useLoadItems: (onLoadItems: PropertyFilterProps['onLoadItems'], focusFilteringText?: string | undefined, currentFilteringProperty?:
|
|
10
|
+
export declare const useLoadItems: (onLoadItems: PropertyFilterProps['onLoadItems'], focusFilteringText?: string | undefined, currentFilteringProperty?: import("@cloudscape-design/collection-hooks").PropertyFilterProperty | undefined, currentFilteringText?: string | undefined, currentFilteringOperator?: import("@cloudscape-design/collection-hooks").PropertyFilterOperator | undefined) => {
|
|
11
11
|
onBlur: () => void;
|
|
12
12
|
onFocus: () => void;
|
|
13
13
|
onLoadItems: NonCancelableEventHandler<import("../internal/components/dropdown/interfaces").OptionsLoadItemsDetail>;
|
|
@@ -120,14 +120,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
120
120
|
widows: 2;
|
|
121
121
|
word-spacing: normal;
|
|
122
122
|
box-sizing: border-box;
|
|
123
|
-
font-size: 14px;
|
|
124
123
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
125
|
-
line-height: 22px;
|
|
126
124
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
127
|
-
color: #000716;
|
|
128
125
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
129
126
|
font-weight: 400;
|
|
130
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
131
127
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
132
128
|
display: block;
|
|
133
129
|
}
|
|
@@ -137,25 +133,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
.awsui_radio_1mabk_6gh4j_105 + .awsui_radio_1mabk_6gh4j_105:not(#\9) {
|
|
140
|
-
margin-top: 4px;
|
|
141
136
|
margin-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
142
137
|
}
|
|
143
138
|
|
|
144
139
|
.awsui_radio--has-description_1mabk_6gh4j_113 + .awsui_radio_1mabk_6gh4j_105:not(#\9) {
|
|
145
|
-
margin-top: 8px;
|
|
146
140
|
margin-top: var(--space-scaled-xs-6859qs, 8px);
|
|
147
141
|
}
|
|
148
142
|
|
|
149
143
|
.awsui_radio-control_1mabk_6gh4j_117:not(#\9) {
|
|
150
|
-
margin-top: calc((22px - 16px) / 2);
|
|
151
144
|
margin-top: calc((var(--font-body-m-line-height-i7xxvv, 22px) - var(--size-control-n9i4yo, 16px)) / 2);
|
|
152
|
-
min-height: 16px;
|
|
153
145
|
min-height: var(--size-control-n9i4yo, 16px);
|
|
154
|
-
min-width: 16px;
|
|
155
146
|
min-width: var(--size-control-n9i4yo, 16px);
|
|
156
|
-
height: 16px;
|
|
157
147
|
height: var(--size-control-n9i4yo, 16px);
|
|
158
|
-
width: 16px;
|
|
159
148
|
width: var(--size-control-n9i4yo, 16px);
|
|
160
149
|
}
|
|
161
150
|
|
|
@@ -177,41 +166,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
177
166
|
top: calc(-1 * 2px);
|
|
178
167
|
width: calc(100% + 2 * 2px);
|
|
179
168
|
height: calc(100% + 2 * 2px);
|
|
180
|
-
border-radius: 4px;
|
|
181
169
|
border-radius: var(--border-radius-control-circular-focus-ring-qawzn7, 4px);
|
|
182
|
-
box-shadow: 0 0 0 2px #0972d3;
|
|
183
170
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
184
171
|
}
|
|
185
172
|
|
|
186
173
|
.awsui_styled-circle-border_1mabk_6gh4j_147:not(#\9) {
|
|
187
|
-
stroke: #7d8998;
|
|
188
174
|
stroke: var(--color-border-control-default-m3lmsh, #7d8998);
|
|
189
|
-
fill: #ffffff;
|
|
190
175
|
fill: var(--color-background-control-default-4pa05r, #ffffff);
|
|
191
176
|
}
|
|
192
177
|
.awsui_styled-circle-border_1mabk_6gh4j_147.awsui_styled-circle-disabled_1mabk_6gh4j_151:not(#\9) {
|
|
193
|
-
fill: #d1d5db;
|
|
194
178
|
fill: var(--color-background-control-disabled-zplipy, #d1d5db);
|
|
195
|
-
stroke: #d1d5db;
|
|
196
179
|
stroke: var(--color-background-control-disabled-zplipy, #d1d5db);
|
|
197
180
|
}
|
|
198
181
|
|
|
199
182
|
.awsui_styled-circle-fill_1mabk_6gh4j_156:not(#\9) {
|
|
200
|
-
stroke: #0972d3;
|
|
201
183
|
stroke: var(--color-background-control-checked-9admlu, #0972d3);
|
|
202
|
-
fill: #ffffff;
|
|
203
184
|
fill: var(--color-foreground-control-default-7ajdem, #ffffff);
|
|
204
185
|
opacity: 0;
|
|
205
|
-
transition: opacity 90ms linear;
|
|
206
186
|
transition: opacity var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
|
|
207
187
|
}
|
|
208
188
|
.awsui_styled-circle-fill_1mabk_6gh4j_156.awsui_styled-circle-checked_1mabk_6gh4j_162:not(#\9) {
|
|
209
189
|
opacity: 1;
|
|
210
190
|
}
|
|
211
191
|
.awsui_styled-circle-fill_1mabk_6gh4j_156.awsui_styled-circle-disabled_1mabk_6gh4j_151:not(#\9) {
|
|
212
|
-
fill: #ffffff;
|
|
213
192
|
fill: var(--color-foreground-control-disabled-v6a97u, #ffffff);
|
|
214
|
-
stroke: #d1d5db;
|
|
215
193
|
stroke: var(--color-background-control-disabled-zplipy, #d1d5db);
|
|
216
194
|
}
|
|
217
195
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-wrap: wrap;
|
|
24
24
|
align-items: flex-end;
|
|
25
|
-
margin: calc(-1 * 8px);
|
|
26
25
|
margin: calc(-1 * var(--space-xs-rsr2qu, 8px));
|
|
27
26
|
/* stylelint-disable selector-max-universal */
|
|
28
27
|
}
|
|
29
28
|
.awsui_layout_1vtzr_7zub1_21 > *:not(#\9) {
|
|
30
|
-
margin: 8px;
|
|
31
29
|
margin: var(--space-xs-rsr2qu, 8px);
|
|
32
30
|
}
|
|
33
31
|
.awsui_layout-uri_1vtzr_7zub1_31:not(#\9) {
|
|
@@ -40,12 +38,8 @@
|
|
|
40
38
|
width: 20%;
|
|
41
39
|
}
|
|
42
40
|
.awsui_layout-divider_1vtzr_7zub1_40:not(#\9) {
|
|
43
|
-
height: calc(
|
|
44
|
-
2 * 2px + 2 * 4px + 22px
|
|
45
|
-
);
|
|
46
41
|
height: calc(
|
|
47
42
|
2 * var(--border-divider-section-width-4wm2it, 2px) + 2 * var(--space-scaled-xxs-95dhkm, 4px) + var(--font-body-m-line-height-i7xxvv, 22px)
|
|
48
43
|
);
|
|
49
|
-
border-left: 2px solid #e9ebed;
|
|
50
44
|
border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
51
45
|
}
|
|
@@ -95,24 +95,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
97
|
.awsui_segment_8cbea_1d363_97:not(#\9) {
|
|
98
|
-
font-size: 14px;
|
|
99
98
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
100
|
-
line-height: 22px;
|
|
101
99
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
102
100
|
word-wrap: break-word;
|
|
103
101
|
max-width: 100%;
|
|
104
102
|
overflow: hidden;
|
|
105
|
-
border: 2px solid #414d5c;
|
|
106
103
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-segment-default-091088, #414d5c);
|
|
107
|
-
padding: 4px 20px;
|
|
108
104
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-l-4vl6xu, 20px);
|
|
109
105
|
border-right-width: 0;
|
|
110
|
-
font-weight: 800;
|
|
111
106
|
font-weight: var(--font-button-weight-7rj5fx, 800);
|
|
112
107
|
letter-spacing: 0.25px;
|
|
113
|
-
background: #ffffff;
|
|
114
108
|
background: var(--color-background-segment-default-5k37bj, #ffffff);
|
|
115
|
-
color: #414d5c;
|
|
116
109
|
color: var(--color-text-segment-default-bf7rka, #414d5c);
|
|
117
110
|
overflow: visible;
|
|
118
111
|
}
|
|
@@ -148,75 +141,52 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
141
|
}
|
|
149
142
|
.awsui_segment_8cbea_1d363_97[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
150
143
|
outline: 2px dotted transparent;
|
|
151
|
-
outline-offset: calc(4px - 1px);
|
|
152
144
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-99x5b9, 4px) - 1px);
|
|
153
145
|
}
|
|
154
146
|
.awsui_segment_8cbea_1d363_97[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
155
147
|
content: " ";
|
|
156
148
|
display: block;
|
|
157
149
|
position: absolute;
|
|
158
|
-
left: calc(-1 * 4px);
|
|
159
150
|
left: calc(-1 * var(--space-segmented-control-focus-outline-gutter-99x5b9, 4px));
|
|
160
|
-
top: calc(-1 * 4px);
|
|
161
151
|
top: calc(-1 * var(--space-segmented-control-focus-outline-gutter-99x5b9, 4px));
|
|
162
|
-
width: calc(100% + 2 * 4px);
|
|
163
152
|
width: calc(100% + 2 * var(--space-segmented-control-focus-outline-gutter-99x5b9, 4px));
|
|
164
|
-
height: calc(100% + 2 * 4px);
|
|
165
153
|
height: calc(100% + 2 * var(--space-segmented-control-focus-outline-gutter-99x5b9, 4px));
|
|
166
|
-
border-radius: 4px;
|
|
167
154
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
168
|
-
box-shadow: 0 0 0 2px #0972d3;
|
|
169
155
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
170
156
|
}
|
|
171
157
|
.awsui_segment_8cbea_1d363_97:not(#\9):last-child {
|
|
172
|
-
border-right-width: 2px;
|
|
173
158
|
border-right-width: var(--border-field-width-idlekx, 2px);
|
|
174
|
-
border-radius: 0 20px 20px 0;
|
|
175
159
|
border-radius: 0 var(--border-radius-button-axewzv, 20px) var(--border-radius-button-axewzv, 20px) 0;
|
|
176
160
|
}
|
|
177
161
|
.awsui_segment_8cbea_1d363_97:not(#\9):first-child {
|
|
178
|
-
border-radius: 20px 0 0 20px;
|
|
179
162
|
border-radius: var(--border-radius-button-axewzv, 20px) 0 0 var(--border-radius-button-axewzv, 20px);
|
|
180
163
|
}
|
|
181
164
|
.awsui_segment_8cbea_1d363_97.awsui_disabled_8cbea_1d363_164:not(#\9) {
|
|
182
|
-
background: #ffffff;
|
|
183
165
|
background: var(--color-background-segment-disabled-hgka10, #ffffff);
|
|
184
|
-
border-color: #414d5c;
|
|
185
166
|
border-color: var(--color-border-segment-disabled-6v5zlt, #414d5c);
|
|
186
|
-
color: #9ba7b6;
|
|
187
167
|
color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
|
|
188
168
|
}
|
|
189
169
|
.awsui_segment_8cbea_1d363_97:not(#\9):not(.awsui_disabled_8cbea_1d363_164) + .awsui_segment_8cbea_1d363_97.awsui_disabled_8cbea_1d363_164 {
|
|
190
|
-
border-left-color: #414d5c;
|
|
191
170
|
border-left-color: var(--color-border-segment-default-091088, #414d5c);
|
|
192
171
|
}
|
|
193
172
|
.awsui_segment_8cbea_1d363_97.awsui_selected_8cbea_1d363_172:not(#\9) {
|
|
194
|
-
background: #0972d3;
|
|
195
173
|
background: var(--color-background-segment-active-bl0u6r, #0972d3);
|
|
196
|
-
border-color: #414d5c;
|
|
197
174
|
border-color: var(--color-border-segment-active-kdy5tm, #414d5c);
|
|
198
|
-
color: #ffffff;
|
|
199
175
|
color: var(--color-text-segment-active-gc2jjl, #ffffff);
|
|
200
176
|
}
|
|
201
177
|
.awsui_segment_8cbea_1d363_97.awsui_selected_8cbea_1d363_172 + .awsui_segment_8cbea_1d363_97:not(#\9), .awsui_segment_8cbea_1d363_97.awsui_selected_8cbea_1d363_172 + .awsui_segment_8cbea_1d363_97.awsui_disabled_8cbea_1d363_164:not(#\9) {
|
|
202
|
-
border-left-color: #414d5c;
|
|
203
178
|
border-left-color: var(--color-border-segment-active-kdy5tm, #414d5c);
|
|
204
179
|
}
|
|
205
180
|
.awsui_segment_8cbea_1d363_97:not(#\9):hover:not(.awsui_selected_8cbea_1d363_172):not(.awsui_disabled_8cbea_1d363_164):not(:focus) {
|
|
206
|
-
background: #ffffff;
|
|
207
181
|
background: var(--color-background-segment-hover-s3f27a, #ffffff);
|
|
208
|
-
color: #0972d3;
|
|
209
182
|
color: var(--color-text-segment-hover-5pccvg, #0972d3);
|
|
210
|
-
border-color: #414d5c;
|
|
211
183
|
border-color: var(--color-border-segment-hover-9notuw, #414d5c);
|
|
212
184
|
cursor: pointer;
|
|
213
185
|
}
|
|
214
186
|
.awsui_segment_8cbea_1d363_97:not(#\9):hover:not(.awsui_selected_8cbea_1d363_172):not(.awsui_disabled_8cbea_1d363_164):not(:focus) + .awsui_segment_8cbea_1d363_97:not(.awsui_selected_8cbea_1d363_172) {
|
|
215
|
-
border-left-color: #414d5c;
|
|
216
187
|
border-left-color: var(--color-border-segment-hover-9notuw, #414d5c);
|
|
217
188
|
}
|
|
218
189
|
.awsui_segment_8cbea_1d363_97.awsui_selected_8cbea_1d363_172 + .awsui_segment_8cbea_1d363_97:not(#\9):hover:not(.awsui_selected_8cbea_1d363_172):not(.awsui_disabled_8cbea_1d363_164):not(:focus) {
|
|
219
|
-
border-left-color: #414d5c;
|
|
220
190
|
border-left-color: var(--color-border-segment-active-kdy5tm, #414d5c);
|
|
221
191
|
}
|
|
222
192
|
|
|
@@ -226,9 +196,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
226
196
|
|
|
227
197
|
.awsui_with-text_8cbea_1d363_197:not(#\9) {
|
|
228
198
|
position: relative;
|
|
229
|
-
left: calc(-1 * 4px);
|
|
230
199
|
left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
231
|
-
margin-right: 4px;
|
|
232
200
|
margin-right: var(--space-xxs-ynfts5, 4px);
|
|
233
201
|
}
|
|
234
202
|
|
|
@@ -273,14 +241,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
273
241
|
widows: 2;
|
|
274
242
|
word-spacing: normal;
|
|
275
243
|
box-sizing: border-box;
|
|
276
|
-
font-size: 14px;
|
|
277
244
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
278
|
-
line-height: 22px;
|
|
279
245
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
280
|
-
color: #000716;
|
|
281
246
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
282
247
|
font-weight: 400;
|
|
283
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
284
248
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
285
249
|
}
|
|
286
250
|
|