@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,117 +1,87 @@
|
|
|
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
|
exports.DrpDropdownWrapper = exports.SelectionModeSwitchWrapper = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
__extends(DateRangePickerWrapper, _super);
|
|
30
|
-
function DateRangePickerWrapper() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
4
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
5
|
+
const styles_selectors_js_1 = require("../../../date-range-picker/styles.selectors.js");
|
|
6
|
+
const styles_selectors_js_2 = require("../../../date-range-picker/calendar/grids/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_3 = require("../../../date-range-picker/relative-range/styles.selectors.js");
|
|
8
|
+
const select_1 = require("../select");
|
|
9
|
+
const button_1 = require("../button");
|
|
10
|
+
const radio_group_1 = require("../radio-group");
|
|
11
|
+
const input_1 = require("../input");
|
|
12
|
+
const segmented_control_1 = require("../segmented-control");
|
|
13
|
+
class DateRangePickerWrapper extends selectors_1.ComponentWrapper {
|
|
33
14
|
/**
|
|
34
15
|
* Alias for `findTrigger`
|
|
35
16
|
* @deprecated
|
|
36
17
|
*/
|
|
37
|
-
|
|
18
|
+
findLabel() {
|
|
38
19
|
return this.findTrigger();
|
|
39
|
-
}
|
|
20
|
+
}
|
|
40
21
|
/**
|
|
41
22
|
* Returns the trigger element that can be used to open the picker dropdown.
|
|
42
23
|
*/
|
|
43
|
-
|
|
24
|
+
findTrigger() {
|
|
44
25
|
return this.findByClassName(styles_selectors_js_1.default.label);
|
|
45
|
-
}
|
|
26
|
+
}
|
|
46
27
|
/**
|
|
47
28
|
* @param options
|
|
48
29
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
49
30
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return wrapper.findComponent(".".concat(styles_selectors_js_1.default.dropdown), DrpDropdownWrapper);
|
|
56
|
-
};
|
|
57
|
-
DateRangePickerWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
58
|
-
return DateRangePickerWrapper;
|
|
59
|
-
}(selectors_1.ComponentWrapper));
|
|
60
|
-
exports.default = DateRangePickerWrapper;
|
|
61
|
-
var SelectionModeSwitchWrapper = /** @class */ (function (_super) {
|
|
62
|
-
__extends(SelectionModeSwitchWrapper, _super);
|
|
63
|
-
function SelectionModeSwitchWrapper() {
|
|
64
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
31
|
+
findDropdown(options = {
|
|
32
|
+
expandToViewport: false
|
|
33
|
+
}) {
|
|
34
|
+
const wrapper = options.expandToViewport ? (0, selectors_1.createWrapper)() : this;
|
|
35
|
+
return wrapper.findComponent(`.${styles_selectors_js_1.default.dropdown}`, DrpDropdownWrapper);
|
|
65
36
|
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = DateRangePickerWrapper;
|
|
39
|
+
DateRangePickerWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
40
|
+
class SelectionModeSwitchWrapper extends selectors_1.ElementWrapper {
|
|
66
41
|
/**
|
|
67
42
|
* Returns the mode selector as a SegmentedControl wrapper.
|
|
68
43
|
*
|
|
69
44
|
* The mode selector is only rendered as a SegmentedControl on wide viewports. On narrow viewports, use `findModesAsSelect()` instead.
|
|
70
45
|
*/
|
|
71
|
-
|
|
46
|
+
findModesAsSegments() {
|
|
72
47
|
return new segmented_control_1.default(this.getElement());
|
|
73
|
-
}
|
|
48
|
+
}
|
|
74
49
|
/**
|
|
75
50
|
* Returns the mode selector as a Select wrapper.
|
|
76
51
|
* The mode selector is only rendered as a Select on narrow viewports. On wide viewports, use `findModesAsSegments()` instead.
|
|
77
52
|
*/
|
|
78
|
-
|
|
53
|
+
findModesAsSelect() {
|
|
79
54
|
return new select_1.default(this.getElement());
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
}(selectors_1.ElementWrapper));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
83
57
|
exports.SelectionModeSwitchWrapper = SelectionModeSwitchWrapper;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
DrpDropdownWrapper.prototype.findSelectionModeSwitch = function () {
|
|
90
|
-
return this.findComponent(".".concat(styles_selectors_js_1.default['mode-switch']), SelectionModeSwitchWrapper);
|
|
91
|
-
};
|
|
92
|
-
DrpDropdownWrapper.prototype.findValidationError = function () {
|
|
58
|
+
class DrpDropdownWrapper extends selectors_1.ComponentWrapper {
|
|
59
|
+
findSelectionModeSwitch() {
|
|
60
|
+
return this.findComponent(`.${styles_selectors_js_1.default['mode-switch']}`, SelectionModeSwitchWrapper);
|
|
61
|
+
}
|
|
62
|
+
findValidationError() {
|
|
93
63
|
return this.findByClassName(styles_selectors_js_1.default['validation-error']);
|
|
94
|
-
}
|
|
64
|
+
}
|
|
95
65
|
// -- Relative mode --
|
|
96
|
-
|
|
97
|
-
return this.findComponent(
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return this.findComponent(
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return this.findComponent(
|
|
104
|
-
}
|
|
66
|
+
findRelativeRangeRadioGroup() {
|
|
67
|
+
return this.findComponent(`.${styles_selectors_js_3.default['relative-range-radio-group']}`, radio_group_1.default);
|
|
68
|
+
}
|
|
69
|
+
findCustomRelativeRangeDuration() {
|
|
70
|
+
return this.findComponent(`.${styles_selectors_js_3.default['custom-range-duration-input']}`, input_1.default);
|
|
71
|
+
}
|
|
72
|
+
findCustomRelativeRangeUnit() {
|
|
73
|
+
return this.findComponent(`.${styles_selectors_js_3.default['custom-range-unit-select']}`, select_1.default);
|
|
74
|
+
}
|
|
105
75
|
// -- Absolute mode --
|
|
106
|
-
|
|
76
|
+
findHeader() {
|
|
107
77
|
return this.findByClassName(styles_selectors_js_1.default['calendar-header']);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return this.findComponent(
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return this.findComponent(
|
|
114
|
-
}
|
|
78
|
+
}
|
|
79
|
+
findPreviousMonthButton() {
|
|
80
|
+
return this.findComponent(`.${styles_selectors_js_1.default['calendar-prev-month-btn']}`, button_1.default);
|
|
81
|
+
}
|
|
82
|
+
findNextMonthButton() {
|
|
83
|
+
return this.findComponent(`.${styles_selectors_js_1.default['calendar-next-month-btn']}`, button_1.default);
|
|
84
|
+
}
|
|
115
85
|
/**
|
|
116
86
|
* Returns a day container on the calendar.
|
|
117
87
|
*
|
|
@@ -119,39 +89,38 @@ var DrpDropdownWrapper = /** @class */ (function (_super) {
|
|
|
119
89
|
* @param row 1-based row index of the day.
|
|
120
90
|
* @param column 1-based column index of the day.
|
|
121
91
|
*/
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return this.find(
|
|
125
|
-
}
|
|
126
|
-
|
|
92
|
+
findDateAt(grid, row, column) {
|
|
93
|
+
const gridClassName = grid === 'right' ? styles_selectors_js_1.default['second-grid'] : styles_selectors_js_1.default['first-grid'];
|
|
94
|
+
return this.find(`.${gridClassName} .${styles_selectors_js_2.default.week}:nth-child(${row}) .${styles_selectors_js_2.default.day}:nth-child(${column})`);
|
|
95
|
+
}
|
|
96
|
+
findSelectedStartDate() {
|
|
127
97
|
return this.findByClassName(styles_selectors_js_2.default['start-date']);
|
|
128
|
-
}
|
|
129
|
-
|
|
98
|
+
}
|
|
99
|
+
findSelectedEndDate() {
|
|
130
100
|
return this.findByClassName(styles_selectors_js_2.default['end-date']);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return this.findComponent(
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return this.findComponent(
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return this.findComponent(
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return this.findComponent(
|
|
143
|
-
}
|
|
101
|
+
}
|
|
102
|
+
findStartDateInput() {
|
|
103
|
+
return this.findComponent(`.${styles_selectors_js_1.default['start-date-input']}`, input_1.default);
|
|
104
|
+
}
|
|
105
|
+
findStartTimeInput() {
|
|
106
|
+
return this.findComponent(`.${styles_selectors_js_1.default['start-time-input']}`, input_1.default);
|
|
107
|
+
}
|
|
108
|
+
findEndDateInput() {
|
|
109
|
+
return this.findComponent(`.${styles_selectors_js_1.default['end-date-input']}`, input_1.default);
|
|
110
|
+
}
|
|
111
|
+
findEndTimeInput() {
|
|
112
|
+
return this.findComponent(`.${styles_selectors_js_1.default['end-time-input']}`, input_1.default);
|
|
113
|
+
}
|
|
144
114
|
// -- Footer --
|
|
145
|
-
|
|
146
|
-
return this.findComponent(
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return this.findComponent(
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return this.findComponent(
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
}(selectors_1.ComponentWrapper));
|
|
115
|
+
findClearButton() {
|
|
116
|
+
return this.findComponent(`.${styles_selectors_js_1.default['clear-button']}`, button_1.default);
|
|
117
|
+
}
|
|
118
|
+
findCancelButton() {
|
|
119
|
+
return this.findComponent(`.${styles_selectors_js_1.default['cancel-button']}`, button_1.default);
|
|
120
|
+
}
|
|
121
|
+
findApplyButton() {
|
|
122
|
+
return this.findComponent(`.${styles_selectors_js_1.default['apply-button']}`, button_1.default);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
156
125
|
exports.DrpDropdownWrapper = DrpDropdownWrapper;
|
|
157
126
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/date-range-picker/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/date-range-picker/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,44 +1,24 @@
|
|
|
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
|
-
function ExpandableSectionWrapper() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
28
|
-
ExpandableSectionWrapper.prototype.findHeader = function () {
|
|
5
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../expandable-section/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_2 = require("../../../container/styles.selectors.js");
|
|
8
|
+
class ExpandableSectionWrapper extends selectors_1.ComponentWrapper {
|
|
9
|
+
findHeader() {
|
|
29
10
|
return this.findByClassName(styles_selectors_js_1.default.header);
|
|
30
|
-
}
|
|
31
|
-
|
|
11
|
+
}
|
|
12
|
+
findContent() {
|
|
32
13
|
return this.findByClassName(styles_selectors_js_1.default.content);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return this.find(
|
|
36
|
-
}
|
|
37
|
-
|
|
14
|
+
}
|
|
15
|
+
findExpandedContent() {
|
|
16
|
+
return this.find(`:scope > .${styles_selectors_js_1.default['content-expanded']}, :scope > .${styles_selectors_js_2.default.content} > .${styles_selectors_js_1.default['content-expanded']}`);
|
|
17
|
+
}
|
|
18
|
+
findExpandIcon() {
|
|
38
19
|
return this.findByClassName(styles_selectors_js_1.default['icon-container']);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return ExpandableSectionWrapper;
|
|
42
|
-
}(selectors_1.ComponentWrapper));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
43
22
|
exports.default = ExpandableSectionWrapper;
|
|
23
|
+
ExpandableSectionWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
44
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/expandable-section/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,yFAAqE;AACrE,gFAAqE;AACrE,MAAqB,wBAAyB,SAAQ,4BAAgB;IAEpE,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAE,CAAC;IAC9C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;IACD,mBAAmB;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,6BAAM,CAAC,kBAAkB,CAAC,eAAe,6BAAe,CAAC,OAAO,OAAO,6BAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACrI,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IACzD,CAAC;;AAbH,2CAcC;AAbQ,qCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,60 +1,40 @@
|
|
|
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
|
-
__extends(FlashWrapper, _super);
|
|
25
|
-
function FlashWrapper() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
5
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../flashbar/styles.selectors.js");
|
|
7
|
+
const button_1 = require("../button");
|
|
8
|
+
class FlashWrapper extends selectors_1.ComponentWrapper {
|
|
28
9
|
/**
|
|
29
10
|
* Returns the dismiss button.
|
|
30
11
|
*
|
|
31
12
|
* The dismiss button is only rendered when the `dismissible` property is set to `true`.
|
|
32
13
|
*/
|
|
33
|
-
|
|
34
|
-
return this.findComponent(
|
|
35
|
-
}
|
|
14
|
+
findDismissButton() {
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_1.default['dismiss-button']}`, button_1.default);
|
|
16
|
+
}
|
|
36
17
|
/**
|
|
37
18
|
* Returns the action slot.
|
|
38
19
|
*/
|
|
39
|
-
|
|
20
|
+
findAction() {
|
|
40
21
|
return this.findByClassName(styles_selectors_js_1.default['action-button-wrapper']);
|
|
41
|
-
}
|
|
22
|
+
}
|
|
42
23
|
/**
|
|
43
24
|
* Returns the action button.
|
|
44
25
|
*
|
|
45
26
|
* The action button is only rendered when the `buttonText` property is set.
|
|
46
27
|
*/
|
|
47
|
-
|
|
48
|
-
return this.findComponent(
|
|
49
|
-
}
|
|
50
|
-
|
|
28
|
+
findActionButton() {
|
|
29
|
+
return this.findComponent(`.${styles_selectors_js_1.default['action-button']}`, button_1.default);
|
|
30
|
+
}
|
|
31
|
+
findHeader() {
|
|
51
32
|
return this.findByClassName(styles_selectors_js_1.default['flash-header']);
|
|
52
|
-
}
|
|
53
|
-
|
|
33
|
+
}
|
|
34
|
+
findContent() {
|
|
54
35
|
return this.findByClassName(styles_selectors_js_1.default['flash-content']);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return FlashWrapper;
|
|
58
|
-
}(selectors_1.ComponentWrapper));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
59
38
|
exports.default = FlashWrapper;
|
|
39
|
+
FlashWrapper.rootSelector = styles_selectors_js_1.default['flash-list-item'];
|
|
60
40
|
//# sourceMappingURL=flash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flash.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/flash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flash.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/flash.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,+EAA2D;AAC3D,sCAAsC;AACtC,MAAqB,YAAa,SAAQ,4BAAgB;IAGxD;;;;OAIG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,cAAc,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IACvD,CAAC;;AAhCH,+BAiCC;AAhCQ,yBAAY,GAAW,6BAAM,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,40 +1,20 @@
|
|
|
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
|
-
__extends(FlashbarWrapper, _super);
|
|
25
|
-
function FlashbarWrapper() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
5
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../flashbar/styles.selectors.js");
|
|
7
|
+
const flash_1 = require("./flash");
|
|
8
|
+
class FlashbarWrapper extends selectors_1.ComponentWrapper {
|
|
28
9
|
/**
|
|
29
10
|
* Returns the individual flashes of this flashbar.
|
|
30
11
|
*
|
|
31
12
|
* If the items are stacked, only the item at the top of the stack is returned.
|
|
32
13
|
*/
|
|
33
|
-
|
|
34
|
-
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return FlashbarWrapper;
|
|
38
|
-
}(selectors_1.ComponentWrapper));
|
|
14
|
+
findItems() {
|
|
15
|
+
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(item => new flash_1.default(item.getElement()));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
39
18
|
exports.default = FlashbarWrapper;
|
|
19
|
+
FlashbarWrapper.rootSelector = styles_selectors_js_1.default.flashbar;
|
|
40
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgF;AAChF,+EAA2D;AAC3D,mCAAmC;AACnC,MAAqB,eAAgB,SAAQ,4BAAgB;IAG3D;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC7G,CAAC;;AAVH,kCAWC;AAVQ,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC"}
|
|
@@ -1,46 +1,26 @@
|
|
|
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 FormWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
FormWrapper.prototype.findHeader = function () {
|
|
5
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../form/styles.selectors.js");
|
|
7
|
+
class FormWrapper extends selectors_1.ComponentWrapper {
|
|
8
|
+
findHeader() {
|
|
28
9
|
return this.findByClassName(styles_selectors_js_1.default.header);
|
|
29
|
-
}
|
|
30
|
-
|
|
10
|
+
}
|
|
11
|
+
findContent() {
|
|
31
12
|
return this.findByClassName(styles_selectors_js_1.default.content);
|
|
32
|
-
}
|
|
33
|
-
|
|
13
|
+
}
|
|
14
|
+
findError() {
|
|
34
15
|
return this.findByClassName(styles_selectors_js_1.default.error);
|
|
35
|
-
}
|
|
36
|
-
|
|
16
|
+
}
|
|
17
|
+
findActions() {
|
|
37
18
|
return this.findByClassName(styles_selectors_js_1.default.actions);
|
|
38
|
-
}
|
|
39
|
-
|
|
19
|
+
}
|
|
20
|
+
findSecondaryActions() {
|
|
40
21
|
return this.findByClassName(styles_selectors_js_1.default['secondary-actions']);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return FormWrapper;
|
|
44
|
-
}(selectors_1.ComponentWrapper));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
45
24
|
exports.default = FormWrapper;
|
|
25
|
+
FormWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
46
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/form/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/form/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,2EAAuD;AACvD,MAAqB,WAAY,SAAQ,4BAAgB;IAEvD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACD,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IACD,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3D,CAAC;;AAhBH,8BAiBC;AAhBQ,wBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,52 +1,32 @@
|
|
|
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 FormFieldWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
FormFieldWrapper.prototype.findControl = function () {
|
|
5
|
+
const selectors_1 = require("@cloudscape-design/test-utils-core/selectors");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../form-field/styles.selectors.js");
|
|
7
|
+
class FormFieldWrapper extends selectors_1.ComponentWrapper {
|
|
8
|
+
findControl() {
|
|
28
9
|
return this.findByClassName(styles_selectors_js_1.default.control);
|
|
29
|
-
}
|
|
30
|
-
|
|
10
|
+
}
|
|
11
|
+
findLabel() {
|
|
31
12
|
return this.findByClassName(styles_selectors_js_1.default.label);
|
|
32
|
-
}
|
|
33
|
-
|
|
13
|
+
}
|
|
14
|
+
findInfo() {
|
|
34
15
|
return this.findByClassName(styles_selectors_js_1.default.info);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return this.find(
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return this.find(
|
|
41
|
-
}
|
|
42
|
-
|
|
16
|
+
}
|
|
17
|
+
findConstraint() {
|
|
18
|
+
return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.constraint}`);
|
|
19
|
+
}
|
|
20
|
+
findError() {
|
|
21
|
+
return this.find(`:scope > .${styles_selectors_js_1.default.hints} .${styles_selectors_js_1.default.error} .${styles_selectors_js_1.default.error__message}`);
|
|
22
|
+
}
|
|
23
|
+
findDescription() {
|
|
43
24
|
return this.findByClassName(styles_selectors_js_1.default.description);
|
|
44
|
-
}
|
|
45
|
-
|
|
25
|
+
}
|
|
26
|
+
findSecondaryControl() {
|
|
46
27
|
return this.findByClassName(styles_selectors_js_1.default['secondary-control']);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return FormFieldWrapper;
|
|
50
|
-
}(selectors_1.ComponentWrapper));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
51
30
|
exports.default = FormFieldWrapper;
|
|
31
|
+
FormFieldWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
52
32
|
//# sourceMappingURL=index.js.map
|