@cloudscape-design/components 3.0.215 → 3.0.217
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/internal/components/option/highlight-match.js +3 -3
- package/internal/components/option/highlight-match.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/select/parts/item.js +1 -1
- package/select/parts/item.js.map +1 -1
- package/test-utils/dom/alert/index.js +20 -40
- package/test-utils/dom/alert/index.js.map +1 -1
- package/test-utils/dom/annotation/index.js +24 -44
- package/test-utils/dom/annotation/index.js.map +1 -1
- package/test-utils/dom/app-layout/index.js +27 -47
- package/test-utils/dom/app-layout/index.js.map +1 -1
- package/test-utils/dom/area-chart/index.js +12 -32
- package/test-utils/dom/area-chart/index.js.map +1 -1
- package/test-utils/dom/attribute-editor/index.js +32 -57
- package/test-utils/dom/attribute-editor/index.js.map +1 -1
- package/test-utils/dom/autosuggest/index.js +76 -114
- package/test-utils/dom/autosuggest/index.js.map +1 -1
- package/test-utils/dom/badge/index.js +5 -25
- package/test-utils/dom/badge/index.js.map +1 -1
- package/test-utils/dom/bar-chart/index.js +5 -25
- package/test-utils/dom/bar-chart/index.js.map +1 -1
- package/test-utils/dom/box/index.js +5 -25
- package/test-utils/dom/box/index.js.map +1 -1
- package/test-utils/dom/breadcrumb-group/index.js +17 -37
- package/test-utils/dom/breadcrumb-group/index.js.map +1 -1
- package/test-utils/dom/button/index.js +16 -36
- package/test-utils/dom/button/index.js.map +1 -1
- package/test-utils/dom/button-dropdown/index.js +38 -59
- package/test-utils/dom/button-dropdown/index.js.map +1 -1
- package/test-utils/dom/calendar/index.js +20 -40
- package/test-utils/dom/calendar/index.js.map +1 -1
- package/test-utils/dom/cards/index.js +55 -83
- package/test-utils/dom/cards/index.js.map +1 -1
- package/test-utils/dom/checkbox/index.js +14 -34
- package/test-utils/dom/checkbox/index.js.map +1 -1
- package/test-utils/dom/code-editor/index.js +33 -53
- package/test-utils/dom/code-editor/index.js.map +1 -1
- package/test-utils/dom/collection-preferences/index.js +40 -65
- package/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/test-utils/dom/collection-preferences/page-size-preference.js +12 -32
- package/test-utils/dom/collection-preferences/page-size-preference.js.map +1 -1
- package/test-utils/dom/collection-preferences/visible-content-preference.js +18 -38
- package/test-utils/dom/collection-preferences/visible-content-preference.js.map +1 -1
- package/test-utils/dom/column-layout/index.js +5 -25
- package/test-utils/dom/column-layout/index.js.map +1 -1
- package/test-utils/dom/container/index.js +11 -31
- package/test-utils/dom/container/index.js.map +1 -1
- package/test-utils/dom/content-layout/index.js +9 -29
- package/test-utils/dom/content-layout/index.js.map +1 -1
- package/test-utils/dom/date-input/index.js +5 -25
- package/test-utils/dom/date-input/index.js.map +1 -1
- package/test-utils/dom/date-picker/index.js +26 -47
- package/test-utils/dom/date-picker/index.js.map +1 -1
- package/test-utils/dom/date-range-picker/index.js +87 -119
- package/test-utils/dom/date-range-picker/index.js.map +1 -1
- package/test-utils/dom/expandable-section/index.js +15 -35
- package/test-utils/dom/expandable-section/index.js.map +1 -1
- package/test-utils/dom/flashbar/flash.js +18 -38
- package/test-utils/dom/flashbar/flash.js.map +1 -1
- package/test-utils/dom/flashbar/index.js +9 -29
- package/test-utils/dom/flashbar/index.js.map +1 -1
- package/test-utils/dom/form/index.js +15 -35
- package/test-utils/dom/form/index.js.map +1 -1
- package/test-utils/dom/form-field/index.js +21 -41
- package/test-utils/dom/form-field/index.js.map +1 -1
- package/test-utils/dom/grid/index.js +8 -28
- package/test-utils/dom/grid/index.js.map +1 -1
- package/test-utils/dom/header/index.js +15 -35
- package/test-utils/dom/header/index.js.map +1 -1
- package/test-utils/dom/help-panel/index.js +11 -31
- package/test-utils/dom/help-panel/index.js.map +1 -1
- package/test-utils/dom/hotspot/index.js +12 -32
- package/test-utils/dom/hotspot/index.js.map +1 -1
- package/test-utils/dom/icon/index.js +5 -25
- package/test-utils/dom/icon/index.js.map +1 -1
- package/test-utils/dom/index.js +133 -134
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/input/base-input.js +35 -57
- package/test-utils/dom/input/base-input.js.map +1 -1
- package/test-utils/dom/input/index.js +7 -27
- package/test-utils/dom/input/index.js.map +1 -1
- package/test-utils/dom/internal/abstract-switch.js +12 -32
- package/test-utils/dom/internal/abstract-switch.js.map +1 -1
- package/test-utils/dom/internal/autosuggest-input.js +14 -34
- package/test-utils/dom/internal/autosuggest-input.js.map +1 -1
- package/test-utils/dom/internal/chart-filter.js +11 -31
- package/test-utils/dom/internal/chart-filter.js.map +1 -1
- package/test-utils/dom/internal/chart-legend.js +13 -33
- package/test-utils/dom/internal/chart-legend.js.map +1 -1
- package/test-utils/dom/internal/chart-popover.js +14 -34
- package/test-utils/dom/internal/chart-popover.js.map +1 -1
- package/test-utils/dom/internal/charts.js +20 -40
- package/test-utils/dom/internal/charts.js.map +1 -1
- package/test-utils/dom/internal/dropdown-host.js +89 -125
- package/test-utils/dom/internal/dropdown-host.js.map +1 -1
- package/test-utils/dom/internal/dropdown.js +7 -27
- package/test-utils/dom/internal/dropdown.js.map +1 -1
- package/test-utils/dom/internal/filtering-token.js +13 -33
- package/test-utils/dom/internal/filtering-token.js.map +1 -1
- package/test-utils/dom/internal/option.js +13 -33
- package/test-utils/dom/internal/option.js.map +1 -1
- package/test-utils/dom/internal/options-list.js +5 -25
- package/test-utils/dom/internal/options-list.js.map +1 -1
- package/test-utils/dom/line-chart/index.js +5 -25
- package/test-utils/dom/line-chart/index.js.map +1 -1
- package/test-utils/dom/link/index.js +5 -25
- package/test-utils/dom/link/index.js.map +1 -1
- package/test-utils/dom/mixed-line-bar-chart/index.js +29 -54
- package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/dom/modal/index.js +18 -38
- package/test-utils/dom/modal/index.js.map +1 -1
- package/test-utils/dom/multiselect/index.js +38 -61
- package/test-utils/dom/multiselect/index.js.map +1 -1
- package/test-utils/dom/pagination/index.js +19 -39
- package/test-utils/dom/pagination/index.js.map +1 -1
- package/test-utils/dom/pie-chart/index.js +22 -42
- package/test-utils/dom/pie-chart/index.js.map +1 -1
- package/test-utils/dom/popover/index.js +16 -39
- package/test-utils/dom/popover/index.js.map +1 -1
- package/test-utils/dom/progress-bar/index.js +13 -33
- package/test-utils/dom/progress-bar/index.js.map +1 -1
- package/test-utils/dom/property-filter/index.js +15 -35
- package/test-utils/dom/property-filter/index.js.map +1 -1
- package/test-utils/dom/radio-group/index.js +13 -33
- package/test-utils/dom/radio-group/index.js.map +1 -1
- package/test-utils/dom/radio-group/radio-button.js +12 -32
- package/test-utils/dom/radio-group/radio-button.js.map +1 -1
- package/test-utils/dom/s3-resource-selector/index.js +40 -70
- package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
- package/test-utils/dom/segmented-control/index.js +9 -29
- package/test-utils/dom/segmented-control/index.js.map +1 -1
- package/test-utils/dom/select/index.js +28 -51
- package/test-utils/dom/select/index.js.map +1 -1
- package/test-utils/dom/side-navigation/index.js +41 -66
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/dom/space-between/index.js +5 -25
- package/test-utils/dom/space-between/index.js.map +1 -1
- package/test-utils/dom/spinner/index.js +5 -25
- package/test-utils/dom/spinner/index.js.map +1 -1
- package/test-utils/dom/split-panel/index.js +25 -45
- package/test-utils/dom/split-panel/index.js.map +1 -1
- package/test-utils/dom/status-indicator/index.js +5 -25
- package/test-utils/dom/status-indicator/index.js.map +1 -1
- package/test-utils/dom/table/index.js +76 -94
- package/test-utils/dom/table/index.js.map +1 -1
- package/test-utils/dom/tabs/index.js +19 -39
- package/test-utils/dom/tabs/index.js.map +1 -1
- package/test-utils/dom/tag-editor/index.js +19 -44
- package/test-utils/dom/tag-editor/index.js.map +1 -1
- package/test-utils/dom/text-content/index.js +5 -25
- package/test-utils/dom/text-content/index.js.map +1 -1
- package/test-utils/dom/text-filter/index.js +10 -30
- package/test-utils/dom/text-filter/index.js.map +1 -1
- package/test-utils/dom/textarea/index.js +16 -36
- package/test-utils/dom/textarea/index.js.map +1 -1
- package/test-utils/dom/tiles/index.js +17 -37
- package/test-utils/dom/tiles/index.js.map +1 -1
- package/test-utils/dom/tiles/tile.js +16 -36
- package/test-utils/dom/tiles/tile.js.map +1 -1
- package/test-utils/dom/time-input/index.js +5 -25
- package/test-utils/dom/time-input/index.js.map +1 -1
- package/test-utils/dom/toggle/index.js +14 -34
- package/test-utils/dom/toggle/index.js.map +1 -1
- package/test-utils/dom/token-group/index.js +14 -34
- package/test-utils/dom/token-group/index.js.map +1 -1
- package/test-utils/dom/token-group/token.js +12 -32
- package/test-utils/dom/token-group/token.js.map +1 -1
- package/test-utils/dom/top-navigation/1.0-beta/index.js +56 -91
- package/test-utils/dom/top-navigation/1.0-beta/index.js.map +1 -1
- package/test-utils/dom/top-navigation/index.js +73 -108
- package/test-utils/dom/top-navigation/index.js.map +1 -1
- package/test-utils/dom/tutorial-panel/index.js +38 -63
- package/test-utils/dom/tutorial-panel/index.js.map +1 -1
- package/test-utils/dom/tutorial-panel/tutorial.js +29 -49
- package/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
- package/test-utils/dom/wizard/index.js +33 -53
- package/test-utils/dom/wizard/index.js.map +1 -1
- package/test-utils/selectors/alert/index.js +20 -40
- package/test-utils/selectors/alert/index.js.map +1 -1
- package/test-utils/selectors/annotation/index.js +24 -44
- package/test-utils/selectors/annotation/index.js.map +1 -1
- package/test-utils/selectors/app-layout/index.js +27 -47
- package/test-utils/selectors/app-layout/index.js.map +1 -1
- package/test-utils/selectors/area-chart/index.js +12 -32
- package/test-utils/selectors/area-chart/index.js.map +1 -1
- package/test-utils/selectors/attribute-editor/index.js +32 -57
- package/test-utils/selectors/attribute-editor/index.js.map +1 -1
- package/test-utils/selectors/autosuggest/index.js +69 -103
- package/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/test-utils/selectors/badge/index.js +5 -25
- package/test-utils/selectors/badge/index.js.map +1 -1
- package/test-utils/selectors/bar-chart/index.js +5 -25
- package/test-utils/selectors/bar-chart/index.js.map +1 -1
- package/test-utils/selectors/box/index.js +5 -25
- package/test-utils/selectors/box/index.js.map +1 -1
- package/test-utils/selectors/breadcrumb-group/index.js +17 -37
- package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
- package/test-utils/selectors/button/index.js +11 -31
- package/test-utils/selectors/button/index.js.map +1 -1
- package/test-utils/selectors/button-dropdown/index.js +30 -50
- package/test-utils/selectors/button-dropdown/index.js.map +1 -1
- package/test-utils/selectors/calendar/index.js +20 -40
- package/test-utils/selectors/calendar/index.js.map +1 -1
- package/test-utils/selectors/cards/index.js +55 -83
- package/test-utils/selectors/cards/index.js.map +1 -1
- package/test-utils/selectors/checkbox/index.js +14 -34
- package/test-utils/selectors/checkbox/index.js.map +1 -1
- package/test-utils/selectors/code-editor/index.js +25 -45
- package/test-utils/selectors/code-editor/index.js.map +1 -1
- package/test-utils/selectors/collection-preferences/index.js +40 -65
- package/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/test-utils/selectors/collection-preferences/page-size-preference.js +12 -32
- package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
- package/test-utils/selectors/collection-preferences/visible-content-preference.js +18 -38
- package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
- package/test-utils/selectors/column-layout/index.js +5 -25
- package/test-utils/selectors/column-layout/index.js.map +1 -1
- package/test-utils/selectors/container/index.js +11 -31
- package/test-utils/selectors/container/index.js.map +1 -1
- package/test-utils/selectors/content-layout/index.js +9 -29
- package/test-utils/selectors/content-layout/index.js.map +1 -1
- package/test-utils/selectors/date-input/index.js +5 -25
- package/test-utils/selectors/date-input/index.js.map +1 -1
- package/test-utils/selectors/date-picker/index.js +22 -43
- package/test-utils/selectors/date-picker/index.js.map +1 -1
- package/test-utils/selectors/date-range-picker/index.js +81 -112
- package/test-utils/selectors/date-range-picker/index.js.map +1 -1
- package/test-utils/selectors/expandable-section/index.js +15 -35
- package/test-utils/selectors/expandable-section/index.js.map +1 -1
- package/test-utils/selectors/flashbar/flash.js +18 -38
- package/test-utils/selectors/flashbar/flash.js.map +1 -1
- package/test-utils/selectors/flashbar/index.js +9 -29
- package/test-utils/selectors/flashbar/index.js.map +1 -1
- package/test-utils/selectors/form/index.js +15 -35
- package/test-utils/selectors/form/index.js.map +1 -1
- package/test-utils/selectors/form-field/index.js +21 -41
- package/test-utils/selectors/form-field/index.js.map +1 -1
- package/test-utils/selectors/grid/index.js +8 -28
- package/test-utils/selectors/grid/index.js.map +1 -1
- package/test-utils/selectors/header/index.js +15 -35
- package/test-utils/selectors/header/index.js.map +1 -1
- package/test-utils/selectors/help-panel/index.js +11 -31
- package/test-utils/selectors/help-panel/index.js.map +1 -1
- package/test-utils/selectors/hotspot/index.js +12 -32
- package/test-utils/selectors/hotspot/index.js.map +1 -1
- package/test-utils/selectors/icon/index.js +5 -25
- package/test-utils/selectors/icon/index.js.map +1 -1
- package/test-utils/selectors/index.js +133 -134
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/input/base-input.js +7 -27
- package/test-utils/selectors/input/base-input.js.map +1 -1
- package/test-utils/selectors/input/index.js +7 -27
- package/test-utils/selectors/input/index.js.map +1 -1
- package/test-utils/selectors/internal/abstract-switch.js +12 -32
- package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
- package/test-utils/selectors/internal/autosuggest-input.js +14 -34
- package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
- package/test-utils/selectors/internal/chart-filter.js +11 -31
- package/test-utils/selectors/internal/chart-filter.js.map +1 -1
- package/test-utils/selectors/internal/chart-legend.js +13 -33
- package/test-utils/selectors/internal/chart-legend.js.map +1 -1
- package/test-utils/selectors/internal/chart-popover.js +14 -34
- package/test-utils/selectors/internal/chart-popover.js.map +1 -1
- package/test-utils/selectors/internal/charts.js +20 -40
- package/test-utils/selectors/internal/charts.js.map +1 -1
- package/test-utils/selectors/internal/dropdown-host.js +59 -91
- package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
- package/test-utils/selectors/internal/dropdown.js +7 -27
- package/test-utils/selectors/internal/dropdown.js.map +1 -1
- package/test-utils/selectors/internal/filtering-token.js +13 -33
- package/test-utils/selectors/internal/filtering-token.js.map +1 -1
- package/test-utils/selectors/internal/option.js +13 -33
- package/test-utils/selectors/internal/option.js.map +1 -1
- package/test-utils/selectors/internal/options-list.js +5 -25
- package/test-utils/selectors/internal/options-list.js.map +1 -1
- package/test-utils/selectors/line-chart/index.js +5 -25
- package/test-utils/selectors/line-chart/index.js.map +1 -1
- package/test-utils/selectors/link/index.js +5 -25
- package/test-utils/selectors/link/index.js.map +1 -1
- package/test-utils/selectors/mixed-line-bar-chart/index.js +29 -54
- package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/selectors/modal/index.js +13 -33
- package/test-utils/selectors/modal/index.js.map +1 -1
- package/test-utils/selectors/multiselect/index.js +38 -61
- package/test-utils/selectors/multiselect/index.js.map +1 -1
- package/test-utils/selectors/pagination/index.js +19 -39
- package/test-utils/selectors/pagination/index.js.map +1 -1
- package/test-utils/selectors/pie-chart/index.js +22 -42
- package/test-utils/selectors/pie-chart/index.js.map +1 -1
- package/test-utils/selectors/popover/index.js +22 -45
- package/test-utils/selectors/popover/index.js.map +1 -1
- package/test-utils/selectors/progress-bar/index.js +13 -33
- package/test-utils/selectors/progress-bar/index.js.map +1 -1
- package/test-utils/selectors/property-filter/index.js +15 -35
- package/test-utils/selectors/property-filter/index.js.map +1 -1
- package/test-utils/selectors/radio-group/index.js +13 -33
- package/test-utils/selectors/radio-group/index.js.map +1 -1
- package/test-utils/selectors/radio-group/radio-button.js +12 -32
- package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
- package/test-utils/selectors/s3-resource-selector/index.js +40 -70
- package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
- package/test-utils/selectors/segmented-control/index.js +9 -29
- package/test-utils/selectors/segmented-control/index.js.map +1 -1
- package/test-utils/selectors/select/index.js +28 -51
- package/test-utils/selectors/select/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.js +41 -66
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/space-between/index.js +5 -25
- package/test-utils/selectors/space-between/index.js.map +1 -1
- package/test-utils/selectors/spinner/index.js +5 -25
- package/test-utils/selectors/spinner/index.js.map +1 -1
- package/test-utils/selectors/split-panel/index.js +25 -45
- package/test-utils/selectors/split-panel/index.js.map +1 -1
- package/test-utils/selectors/status-indicator/index.js +5 -25
- package/test-utils/selectors/status-indicator/index.js.map +1 -1
- package/test-utils/selectors/table/index.js +76 -94
- package/test-utils/selectors/table/index.js.map +1 -1
- package/test-utils/selectors/tabs/index.js +19 -39
- package/test-utils/selectors/tabs/index.js.map +1 -1
- package/test-utils/selectors/tag-editor/index.js +19 -44
- package/test-utils/selectors/tag-editor/index.js.map +1 -1
- package/test-utils/selectors/text-content/index.js +5 -25
- package/test-utils/selectors/text-content/index.js.map +1 -1
- package/test-utils/selectors/text-filter/index.js +10 -30
- package/test-utils/selectors/text-filter/index.js.map +1 -1
- package/test-utils/selectors/textarea/index.js +7 -27
- package/test-utils/selectors/textarea/index.js.map +1 -1
- package/test-utils/selectors/tiles/index.js +17 -37
- package/test-utils/selectors/tiles/index.js.map +1 -1
- package/test-utils/selectors/tiles/tile.js +16 -36
- package/test-utils/selectors/tiles/tile.js.map +1 -1
- package/test-utils/selectors/time-input/index.js +5 -25
- package/test-utils/selectors/time-input/index.js.map +1 -1
- package/test-utils/selectors/toggle/index.js +14 -34
- package/test-utils/selectors/toggle/index.js.map +1 -1
- package/test-utils/selectors/token-group/index.js +14 -34
- package/test-utils/selectors/token-group/index.js.map +1 -1
- package/test-utils/selectors/token-group/token.js +12 -32
- package/test-utils/selectors/token-group/token.js.map +1 -1
- package/test-utils/selectors/top-navigation/1.0-beta/index.js +56 -91
- package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
- package/test-utils/selectors/top-navigation/index.js +73 -108
- package/test-utils/selectors/top-navigation/index.js.map +1 -1
- package/test-utils/selectors/tutorial-panel/index.js +38 -63
- package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
- package/test-utils/selectors/tutorial-panel/tutorial.js +29 -49
- package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
- package/test-utils/selectors/wizard/index.js +33 -53
- package/test-utils/selectors/wizard/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -24,140 +9,122 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
9
|
exports.PortalAutosuggestDropdownWrapper = exports.AutosuggestDropdownWrapper = void 0;
|
|
25
10
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
26
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
AutosuggestDropdownWrapper.prototype.findOptions = function () {
|
|
46
|
-
return this.findAll(".".concat(styles_selectors_js_3.default['selectable-item'], "[data-test-index]")).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
|
|
47
|
-
};
|
|
12
|
+
const test_utils_1 = require("react-dom/test-utils");
|
|
13
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
14
|
+
const input_1 = require("../input");
|
|
15
|
+
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
16
|
+
const option_1 = require("../internal/option");
|
|
17
|
+
const options_list_1 = require("../internal/options-list");
|
|
18
|
+
const dropdown_1 = require("../internal/dropdown");
|
|
19
|
+
const styles_selectors_js_1 = require("../../../autosuggest/styles.selectors.js");
|
|
20
|
+
const styles_selectors_js_2 = require("../../../internal/components/dropdown-status/styles.selectors.js");
|
|
21
|
+
const styles_selectors_js_3 = require("../../../internal/components/selectable-item/styles.selectors.js");
|
|
22
|
+
const styles_selectors_js_4 = require("../../../internal/components/dropdown-status/styles.selectors.js");
|
|
23
|
+
const styles_selectors_js_5 = require("../../../internal/components/option/styles.selectors.js");
|
|
24
|
+
const styles_selectors_js_6 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
25
|
+
class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
26
|
+
findOptions() {
|
|
27
|
+
return this.findAll(`.${styles_selectors_js_3.default['selectable-item']}[data-test-index]`).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
28
|
+
}
|
|
48
29
|
/**
|
|
49
30
|
* Returns an option from the dropdown.
|
|
50
31
|
*
|
|
51
32
|
* @param optionIndex 1-based index of the option to select.
|
|
52
33
|
*/
|
|
53
|
-
|
|
54
|
-
return this.findComponent(
|
|
55
|
-
}
|
|
34
|
+
findOption(optionIndex) {
|
|
35
|
+
return this.findComponent(`.${styles_selectors_js_3.default['selectable-item']}[data-test-index="${optionIndex}"]`, option_1.default);
|
|
36
|
+
}
|
|
56
37
|
/**
|
|
57
38
|
* Returns an option from the autosuggest by it's value
|
|
58
39
|
*
|
|
59
40
|
* @param value The 'value' of the option.
|
|
60
41
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return this.findComponent(
|
|
64
|
-
}
|
|
42
|
+
findOptionByValue(value) {
|
|
43
|
+
const toReplace = (0, utils_1.escapeSelector)(value);
|
|
44
|
+
return this.findComponent(`.${option_1.default.rootSelector}[data-value="${toReplace}"]`, option_1.default);
|
|
45
|
+
}
|
|
65
46
|
/**
|
|
66
47
|
* Returns an option from the dropdown.
|
|
67
48
|
*
|
|
68
49
|
* @param groupIndex 1-based index of the group to select an option in.
|
|
69
50
|
* @param optionIndex 1-based index of the option to select.
|
|
70
51
|
*/
|
|
71
|
-
|
|
72
|
-
return this.findComponent(
|
|
73
|
-
}
|
|
52
|
+
findOptionInGroup(groupIndex, optionIndex) {
|
|
53
|
+
return this.findComponent(`.${styles_selectors_js_3.default['selectable-item']}[data-group-index="${groupIndex}"][data-in-group-index="${optionIndex}"]`, option_1.default);
|
|
54
|
+
}
|
|
74
55
|
/**
|
|
75
56
|
* Use this element to scroll through the list of options
|
|
76
57
|
*/
|
|
77
|
-
|
|
58
|
+
findOptionsContainer() {
|
|
78
59
|
return this.findByClassName(options_list_1.default.rootSelector);
|
|
79
|
-
}
|
|
80
|
-
|
|
60
|
+
}
|
|
61
|
+
findFooterRegion() {
|
|
81
62
|
return this.findByClassName(styles_selectors_js_4.default.root);
|
|
82
|
-
}
|
|
83
|
-
|
|
63
|
+
}
|
|
64
|
+
findOpenDropdown() {
|
|
84
65
|
// Autosuggest always has a dropdown
|
|
85
66
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
86
|
-
|
|
67
|
+
const dropdown = new dropdown_1.default(this.getElement());
|
|
87
68
|
return dropdown.findOpenDropdown();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return this.findComponent(
|
|
91
|
-
}
|
|
69
|
+
}
|
|
70
|
+
findHighlightedOption() {
|
|
71
|
+
return this.findComponent(`.${styles_selectors_js_3.default.highlighted}`, option_1.default);
|
|
72
|
+
}
|
|
92
73
|
/**
|
|
93
74
|
* Returns all the selected options.
|
|
94
75
|
*/
|
|
95
|
-
|
|
96
|
-
return this.findAllByClassName(styles_selectors_js_3.default.disabled).map(
|
|
97
|
-
}
|
|
76
|
+
findDisabledOptions() {
|
|
77
|
+
return this.findAllByClassName(styles_selectors_js_3.default.disabled).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
78
|
+
}
|
|
98
79
|
/**
|
|
99
80
|
* Returns highlighted text fragments from all of the options.
|
|
100
81
|
* Options get highlighted when they match the value of the input field.
|
|
101
82
|
*/
|
|
102
|
-
|
|
83
|
+
findHighlightedMatches() {
|
|
103
84
|
return this.findAllByClassName(styles_selectors_js_5.default['filtering-match-highlight']);
|
|
104
|
-
}
|
|
105
|
-
|
|
85
|
+
}
|
|
86
|
+
findHighlightedAriaLiveRegion() {
|
|
106
87
|
return this.find('[aria-live]');
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}(dom_1.ComponentWrapper));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
110
90
|
exports.AutosuggestDropdownWrapper = AutosuggestDropdownWrapper;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
115
|
-
}
|
|
116
|
-
PortalAutosuggestDropdownWrapper.prototype.findOpenDropdown = function () {
|
|
117
|
-
return (0, dom_1.createWrapper)().find(".".concat(styles_selectors_js_6.default.dropdown, "[data-open=true]"));
|
|
118
|
-
};
|
|
119
|
-
return PortalAutosuggestDropdownWrapper;
|
|
120
|
-
}(AutosuggestDropdownWrapper));
|
|
121
|
-
exports.PortalAutosuggestDropdownWrapper = PortalAutosuggestDropdownWrapper;
|
|
122
|
-
var AutosuggestWrapper = /** @class */ (function (_super) {
|
|
123
|
-
__extends(AutosuggestWrapper, _super);
|
|
124
|
-
function AutosuggestWrapper() {
|
|
125
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
91
|
+
class PortalAutosuggestDropdownWrapper extends AutosuggestDropdownWrapper {
|
|
92
|
+
findOpenDropdown() {
|
|
93
|
+
return (0, dom_1.createWrapper)().find(`.${styles_selectors_js_6.default.dropdown}[data-open=true]`);
|
|
126
94
|
}
|
|
95
|
+
}
|
|
96
|
+
exports.PortalAutosuggestDropdownWrapper = PortalAutosuggestDropdownWrapper;
|
|
97
|
+
class AutosuggestWrapper extends input_1.default {
|
|
127
98
|
/**
|
|
128
99
|
* @param options
|
|
129
100
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
130
101
|
*/
|
|
131
|
-
|
|
132
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
102
|
+
findDropdown(options = { expandToViewport: false }) {
|
|
133
103
|
return options.expandToViewport
|
|
134
|
-
? (0, dom_1.createWrapper)().findComponent(
|
|
104
|
+
? (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_6.default.dropdown}[data-open=true]`, PortalAutosuggestDropdownWrapper)
|
|
135
105
|
: new AutosuggestDropdownWrapper(this.getElement());
|
|
136
|
-
}
|
|
106
|
+
}
|
|
137
107
|
/**
|
|
138
108
|
* @param options
|
|
139
109
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
140
110
|
*/
|
|
141
|
-
|
|
142
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
111
|
+
findStatusIndicator(options = { expandToViewport: false }) {
|
|
143
112
|
return this.findDropdown(options).findByClassName(styles_selectors_js_2.default.root);
|
|
144
|
-
}
|
|
113
|
+
}
|
|
145
114
|
/**
|
|
146
115
|
* @param options
|
|
147
116
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
148
117
|
*/
|
|
149
|
-
|
|
150
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
118
|
+
findErrorRecoveryButton(options = { expandToViewport: false }) {
|
|
151
119
|
return this.findDropdown(options).findByClassName(styles_selectors_js_4.default.recovery);
|
|
152
|
-
}
|
|
120
|
+
}
|
|
153
121
|
/**
|
|
154
122
|
* @param options
|
|
155
123
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
156
124
|
*/
|
|
157
|
-
|
|
158
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
125
|
+
findEnteredTextOption(options = { expandToViewport: false }) {
|
|
159
126
|
return this.findDropdown(options).findByClassName(styles_selectors_js_3.default['has-background']);
|
|
160
|
-
}
|
|
127
|
+
}
|
|
161
128
|
/**
|
|
162
129
|
* Selects a suggestion from the dropdown by simulating mouse events.
|
|
163
130
|
*
|
|
@@ -165,14 +132,12 @@ var AutosuggestWrapper = /** @class */ (function (_super) {
|
|
|
165
132
|
* @param options
|
|
166
133
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
167
134
|
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
171
|
-
(0, test_utils_1.act)(function () {
|
|
135
|
+
selectSuggestion(index, options = { expandToViewport: false }) {
|
|
136
|
+
(0, test_utils_1.act)(() => {
|
|
172
137
|
var _a;
|
|
173
|
-
(_a =
|
|
138
|
+
(_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOption(index).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
|
|
174
139
|
});
|
|
175
|
-
}
|
|
140
|
+
}
|
|
176
141
|
/**
|
|
177
142
|
* Selects a suggestion from the dropdown by simulating mouse events.
|
|
178
143
|
*
|
|
@@ -180,22 +145,19 @@ var AutosuggestWrapper = /** @class */ (function (_super) {
|
|
|
180
145
|
* @param options
|
|
181
146
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
182
147
|
*/
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
186
|
-
(0, test_utils_1.act)(function () {
|
|
148
|
+
selectSuggestionByValue(value, options = { expandToViewport: false }) {
|
|
149
|
+
(0, test_utils_1.act)(() => {
|
|
187
150
|
var _a;
|
|
188
|
-
(_a =
|
|
151
|
+
(_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOptionByValue(value).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
|
|
189
152
|
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}(input_1.default));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
AutosuggestWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
156
|
+
__decorate([
|
|
157
|
+
dom_1.usesDom
|
|
158
|
+
], AutosuggestWrapper.prototype, "selectSuggestion", null);
|
|
159
|
+
__decorate([
|
|
160
|
+
dom_1.usesDom
|
|
161
|
+
], AutosuggestWrapper.prototype, "selectSuggestionByValue", null);
|
|
200
162
|
exports.default = AutosuggestWrapper;
|
|
201
163
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qEAAqE;AACrE,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CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACL,CAAC;;AAlEM,+BAAY,GAAW,6BAAU,CAAC,IAAI,CAAC;AA4C9C;IADC,aAAO;0DAOP;AAUD;IADC,aAAO;iEAOP;AAnEH,qCAoEC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function BadgeWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
BadgeWrapper.rootSelector = styles_selectors_js_1.default.badge;
|
|
28
|
-
return BadgeWrapper;
|
|
29
|
-
}(dom_1.ComponentWrapper));
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../badge/styles.selectors.js");
|
|
7
|
+
class BadgeWrapper extends dom_1.ComponentWrapper {
|
|
8
|
+
}
|
|
30
9
|
exports.default = BadgeWrapper;
|
|
10
|
+
BadgeWrapper.rootSelector = styles_selectors_js_1.default.badge;
|
|
31
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/badge/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/badge/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAC1E,4EAAwD;AAExD,MAAqB,YAAa,SAAQ,sBAAiC;;AAA3E,+BAEC;AADQ,yBAAY,GAAW,6BAAM,CAAC,KAAK,CAAC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function BarChartWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
BarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
28
|
-
return BarChartWrapper;
|
|
29
|
-
}(mixed_line_bar_chart_1.default));
|
|
5
|
+
const mixed_line_bar_chart_1 = require("../mixed-line-bar-chart");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../bar-chart/styles.selectors.js");
|
|
7
|
+
class BarChartWrapper extends mixed_line_bar_chart_1.default {
|
|
8
|
+
}
|
|
30
9
|
exports.default = BarChartWrapper;
|
|
10
|
+
BarChartWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
31
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/bar-chart/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/bar-chart/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,kEAA+D;AAC/D,gFAA4D;AAE5D,MAAqB,eAAgB,SAAQ,8BAAwB;;AAArE,kCAEC;AADQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function BoxWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
BoxWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
28
|
-
return BoxWrapper;
|
|
29
|
-
}(dom_1.ComponentWrapper));
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../box/styles.selectors.js");
|
|
7
|
+
class BoxWrapper extends dom_1.ComponentWrapper {
|
|
8
|
+
}
|
|
30
9
|
exports.default = BoxWrapper;
|
|
10
|
+
BoxWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
31
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/box/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/box/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAC1E,0EAAsD;AAEtD,MAAqB,UAAW,SAAQ,sBAAiC;;AAAzE,6BAEC;AADQ,uBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
__extends(BreadcrumbGroupWrapper, _super);
|
|
27
|
-
function BreadcrumbGroupWrapper() {
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const button_dropdown_1 = require("../button-dropdown");
|
|
7
|
+
const styles_selectors_js_1 = require("../../../breadcrumb-group/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_2 = require("../../../breadcrumb-group/item/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_3 = require("../../../button-dropdown/styles.selectors.js");
|
|
10
|
+
class BreadcrumbGroupWrapper extends dom_1.ComponentWrapper {
|
|
30
11
|
/**
|
|
31
12
|
* Returns all breadcrumb items. Note that this includes the 'current' page item for backwards compatibility,
|
|
32
13
|
* even though it is not technically a link.
|
|
@@ -34,30 +15,29 @@ var BreadcrumbGroupWrapper = /** @class */ (function (_super) {
|
|
|
34
15
|
* To find a specific item use the `findBreadcrumbLink(n)` function as chaining `findBreadcrumbLinks().get(n)` can return unexpected results.
|
|
35
16
|
* @see findBreadcrumbLink
|
|
36
17
|
*/
|
|
37
|
-
|
|
38
|
-
return this.findAll(
|
|
39
|
-
}
|
|
18
|
+
findBreadcrumbLinks() {
|
|
19
|
+
return this.findAll(`.${styles_selectors_js_2.default.breadcrumb} .${styles_selectors_js_2.default.anchor}`);
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Returns an item for a given index. Note that this may return the 'current' page item for backwards compatibility,
|
|
42
23
|
* even though it is not technically a link.
|
|
43
24
|
*
|
|
44
25
|
* @param index 1-based item index
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
findBreadcrumbLink(index) {
|
|
47
28
|
// We insert the breadcrumb-ellipsis as the second element so we have to filter it out.
|
|
48
29
|
// Unfortunately, there is no efficient CSS selector for it in CSS Selectors-3 spec.
|
|
49
30
|
// In the future we can use li:nth-child(n of .awsui-breadcrumb-item) when Selectors-4 spec is supported https://caniuse.com/#feat=css-nth-child-of
|
|
50
31
|
if (index > 1) {
|
|
51
32
|
index++;
|
|
52
33
|
}
|
|
53
|
-
return this.find(
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
return this.find(`.${styles_selectors_js_1.default.item}:nth-child(${index}) .${styles_selectors_js_2.default.anchor}`);
|
|
35
|
+
}
|
|
36
|
+
findDropdown() {
|
|
37
|
+
const buttonDropdown = this.find(`.${styles_selectors_js_3.default['button-dropdown']}`);
|
|
57
38
|
return buttonDropdown && new button_dropdown_1.default(buttonDropdown.getElement());
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return BreadcrumbGroupWrapper;
|
|
61
|
-
}(dom_1.ComponentWrapper));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
62
41
|
exports.default = BreadcrumbGroupWrapper;
|
|
42
|
+
BreadcrumbGroupWrapper.rootSelector = styles_selectors_js_1.default['breadcrumb-group'];
|
|
63
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/breadcrumb-group/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,wDAAuD;AACvD,uFAAmE;AACnE,4FAA4E;AAC5E,sFAAgF;AAEhF,MAAqB,sBAAuB,SAAQ,sBAAgB;IAElE;;;;;;OAMG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAU,CAAC,UAAU,KAAK,6BAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;IACD;;;;;OAKG;IACH,kBAAkB,CAAC,KAAa;QAC9B,uFAAuF;QACvF,oFAAoF;QACpF,mJAAmJ;QACnJ,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,KAAK,EAAE,CAAC;SACT;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,IAAI,cAAc,KAAK,MAAM,6BAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,YAAY;QACV,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAoB,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;QAChF,OAAO,cAAc,IAAI,IAAI,yBAAqB,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;IAClF,CAAC;;AA/BH,yCAgCC;AA/BQ,mCAAY,GAAW,6BAAM,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,33 +8,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
9
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
25
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
12
|
+
const styles_selectors_js_1 = require("../../../button/styles.selectors.js");
|
|
13
|
+
const styles_selectors_js_2 = require("../../../spinner/styles.selectors.js");
|
|
14
|
+
class ButtonWrapper extends dom_1.ComponentWrapper {
|
|
15
|
+
findLoadingIndicator() {
|
|
16
|
+
return this.find(`.${styles_selectors_js_1.default['icon-left']}.${styles_selectors_js_2.default.root}`);
|
|
33
17
|
}
|
|
34
|
-
|
|
35
|
-
return this.find(
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return this.find(".".concat(styles_selectors_js_1.default.content));
|
|
39
|
-
};
|
|
40
|
-
ButtonWrapper.prototype.isDisabled = function () {
|
|
18
|
+
findTextRegion() {
|
|
19
|
+
return this.find(`.${styles_selectors_js_1.default.content}`);
|
|
20
|
+
}
|
|
21
|
+
isDisabled() {
|
|
41
22
|
if (this.element.tagName === 'A') {
|
|
42
23
|
return this.element.getAttribute('aria-disabled') === 'true';
|
|
43
24
|
}
|
|
44
25
|
else {
|
|
45
26
|
return this.element.disabled;
|
|
46
27
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}(dom_1.ComponentWrapper));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
ButtonWrapper.rootSelector = styles_selectors_js_1.default.button;
|
|
31
|
+
__decorate([
|
|
32
|
+
dom_1.usesDom
|
|
33
|
+
], ButtonWrapper.prototype, "isDisabled", null);
|
|
54
34
|
exports.default = ButtonWrapper;
|
|
55
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/button/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/button/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAmG;AACnG,6EAAyD;AACzD,8EAAiE;AAEjE,MAAqB,aAAc,SAAQ,sBAAmC;IAG5E,oBAAoB;QAClB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,WAAW,CAAC,IAAI,6BAAa,CAAC,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IACzC,CAAC;IAGD,UAAU;QACR,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,GAAG,EAAE;YAChC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC;SAC9D;aAAM;YACL,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;SAC9B;IACH,CAAC;;AAjBM,0BAAY,GAAW,6BAAM,CAAC,MAAM,CAAC;AAW5C;IADC,aAAO;+CAOP;AAlBH,gCAmBC"}
|