@cloudscape-design/components 3.0.216 → 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/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +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,48 +1,28 @@
|
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const chart_legend_1 = require("./chart-legend");
|
|
7
|
+
const chart_filter_1 = require("./chart-filter");
|
|
8
|
+
const chart_popover_1 = require("./chart-popover");
|
|
9
|
+
const styles_selectors_js_1 = require("../../../internal/components/chart-legend/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_2 = require("../../../internal/components/chart-filter/styles.selectors.js");
|
|
11
|
+
const styles_selectors_js_3 = require("../../../internal/components/chart-popover/styles.selectors.js");
|
|
12
|
+
const styles_selectors_js_4 = require("../../../internal/components/chart-status-container/styles.selectors.js");
|
|
13
|
+
class CommonChartWrapper extends dom_1.ComponentWrapper {
|
|
14
|
+
findDefaultFilter() {
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_2.default['chart-filter']}`, chart_filter_1.default);
|
|
32
16
|
}
|
|
33
|
-
|
|
34
|
-
return this.findComponent(".".concat(styles_selectors_js_2.default['chart-filter']), chart_filter_1.default);
|
|
35
|
-
};
|
|
36
|
-
CommonChartWrapper.prototype.findStatusContainer = function () {
|
|
17
|
+
findStatusContainer() {
|
|
37
18
|
return this.findByClassName(styles_selectors_js_4.default.root);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return this.findComponent(
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return this.findComponent(
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}(dom_1.ComponentWrapper));
|
|
19
|
+
}
|
|
20
|
+
findLegend() {
|
|
21
|
+
return this.findComponent(`.${styles_selectors_js_1.default.root}`, chart_legend_1.default);
|
|
22
|
+
}
|
|
23
|
+
findDetailPopover() {
|
|
24
|
+
return this.findComponent(`.${styles_selectors_js_3.default.root}`, chart_popover_1.default);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
47
27
|
exports.default = CommonChartWrapper;
|
|
48
28
|
//# sourceMappingURL=charts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/charts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"charts.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/charts.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,iDAAgD;AAChD,iDAAgD;AAChD,mDAAkD;AAClD,uGAAyF;AACzF,uGAAyF;AACzF,wGAA2F;AAC3F,iHAA4G;AAE5G,MAAqB,kBAAmB,SAAQ,sBAAgB;IAC9D,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,cAAc,CAAC,EAAE,EAAE,sBAAkB,CAAC,CAAC;IACpF,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAqB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,IAAI,EAAE,EAAE,sBAAkB,CAAC,CAAC;IACzE,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAa,CAAC,IAAI,EAAE,EAAE,uBAAmB,CAAC,CAAC;IAC3E,CAAC;CACF;AAhBD,qCAgBC"}
|
|
@@ -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,65 +9,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
9
|
exports.PortalDropdownContentWrapper = exports.DropdownContentWrapper = 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
|
-
__extends(DropdownHostComponentWrapper, _super);
|
|
39
|
-
function DropdownHostComponentWrapper() {
|
|
40
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
-
}
|
|
12
|
+
const test_utils_1 = require("react-dom/test-utils");
|
|
13
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
14
|
+
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
15
|
+
const dropdown_1 = require("./dropdown");
|
|
16
|
+
const options_list_1 = require("./options-list");
|
|
17
|
+
const option_1 = require("./option");
|
|
18
|
+
const styles_selectors_js_1 = require("../../../internal/components/selectable-item/styles.selectors.js");
|
|
19
|
+
const styles_selectors_js_2 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
20
|
+
const styles_selectors_js_3 = require("../../../internal/components/dropdown-status/styles.selectors.js");
|
|
21
|
+
const styles_selectors_js_4 = require("../../../internal/components/option/styles.selectors.js");
|
|
22
|
+
class DropdownHostComponentWrapper extends dom_1.ComponentWrapper {
|
|
42
23
|
/**
|
|
43
24
|
* @param options
|
|
44
25
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
45
26
|
*/
|
|
46
|
-
|
|
27
|
+
assertOpenDropdown(options = { expandToViewport: false }) {
|
|
47
28
|
var _a;
|
|
48
|
-
|
|
49
|
-
var isOpen = !!((_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOpenDropdown());
|
|
29
|
+
const isOpen = !!((_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOpenDropdown());
|
|
50
30
|
if (!isOpen) {
|
|
51
31
|
throw new Error('Unable to select an option when dropdown is closed');
|
|
52
32
|
}
|
|
53
|
-
}
|
|
33
|
+
}
|
|
54
34
|
/**
|
|
55
35
|
* @param options
|
|
56
36
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
57
37
|
*/
|
|
58
|
-
|
|
59
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
38
|
+
findDropdown(options = { expandToViewport: false }) {
|
|
60
39
|
return options.expandToViewport
|
|
61
|
-
? (0, dom_1.createWrapper)().findComponent(
|
|
40
|
+
? (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_2.default.dropdown}[data-open=true]`, PortalDropdownContentWrapper)
|
|
62
41
|
: new DropdownContentWrapper(this.getElement());
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
_this.findTrigger().fireEvent(new MouseEvent('mousedown', { bubbles: true }));
|
|
42
|
+
}
|
|
43
|
+
openDropdown() {
|
|
44
|
+
(0, test_utils_1.act)(() => {
|
|
45
|
+
this.findTrigger().fireEvent(new MouseEvent('mousedown', { bubbles: true }));
|
|
68
46
|
});
|
|
69
|
-
}
|
|
47
|
+
}
|
|
70
48
|
/**
|
|
71
49
|
* @param options
|
|
72
50
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
73
51
|
*/
|
|
74
|
-
|
|
75
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
52
|
+
closeDropdown(options = { expandToViewport: false }) {
|
|
76
53
|
if (document.activeElement &&
|
|
77
54
|
(this.element.contains(document.activeElement) ||
|
|
78
55
|
this.findDropdown(options).getElement().contains(document.activeElement)) &&
|
|
79
56
|
document.activeElement instanceof HTMLElement) {
|
|
80
|
-
|
|
81
|
-
(0, test_utils_1.act)(
|
|
82
|
-
|
|
57
|
+
const element = document.activeElement;
|
|
58
|
+
(0, test_utils_1.act)(() => {
|
|
59
|
+
element.blur();
|
|
83
60
|
});
|
|
84
61
|
}
|
|
85
|
-
}
|
|
62
|
+
}
|
|
86
63
|
/**
|
|
87
64
|
* Selects an option for the given index by triggering corresponding events.
|
|
88
65
|
*
|
|
@@ -99,20 +76,19 @@ var DropdownHostComponentWrapper = /** @class */ (function (_super) {
|
|
|
99
76
|
* @param options
|
|
100
77
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
101
78
|
*/
|
|
102
|
-
|
|
103
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
79
|
+
selectOption(index, options = { expandToViewport: false }) {
|
|
104
80
|
if (index < 1) {
|
|
105
81
|
throw new Error('Option index should be a 1-based integer number');
|
|
106
82
|
}
|
|
107
83
|
this.assertOpenDropdown(options);
|
|
108
|
-
|
|
84
|
+
const option = this.findDropdown(options).findOption(index);
|
|
109
85
|
if (!option) {
|
|
110
|
-
throw new Error(
|
|
86
|
+
throw new Error(`Can't select the option, because there is no option with the index ${index}.`);
|
|
111
87
|
}
|
|
112
|
-
(0, test_utils_1.act)(
|
|
88
|
+
(0, test_utils_1.act)(() => {
|
|
113
89
|
option.fireEvent(new MouseEvent('mouseup', { bubbles: true }));
|
|
114
90
|
});
|
|
115
|
-
}
|
|
91
|
+
}
|
|
116
92
|
/**
|
|
117
93
|
* Selects an option for the given value by triggering corresponding events.
|
|
118
94
|
*
|
|
@@ -129,105 +105,93 @@ var DropdownHostComponentWrapper = /** @class */ (function (_super) {
|
|
|
129
105
|
* @param options
|
|
130
106
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
131
107
|
*/
|
|
132
|
-
|
|
133
|
-
if (options === void 0) { options = { expandToViewport: false }; }
|
|
108
|
+
selectOptionByValue(value, options = { expandToViewport: false }) {
|
|
134
109
|
this.assertOpenDropdown(options);
|
|
135
|
-
|
|
110
|
+
const option = this.findDropdown(options).findOptionByValue(value);
|
|
136
111
|
if (!option) {
|
|
137
|
-
throw new Error(
|
|
112
|
+
throw new Error(`Can't select the option, because there is no option with the value ${JSON.stringify(value)}.`);
|
|
138
113
|
}
|
|
139
|
-
(0, test_utils_1.act)(
|
|
114
|
+
(0, test_utils_1.act)(() => {
|
|
140
115
|
option.fireEvent(new MouseEvent('mouseup', { bubbles: true }));
|
|
141
116
|
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}(dom_1.ComponentWrapper));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
__decorate([
|
|
120
|
+
dom_1.usesDom
|
|
121
|
+
], DropdownHostComponentWrapper.prototype, "openDropdown", null);
|
|
122
|
+
__decorate([
|
|
123
|
+
dom_1.usesDom
|
|
124
|
+
], DropdownHostComponentWrapper.prototype, "closeDropdown", null);
|
|
125
|
+
__decorate([
|
|
126
|
+
dom_1.usesDom
|
|
127
|
+
], DropdownHostComponentWrapper.prototype, "selectOption", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
dom_1.usesDom
|
|
130
|
+
], DropdownHostComponentWrapper.prototype, "selectOptionByValue", null);
|
|
157
131
|
exports.default = DropdownHostComponentWrapper;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
DropdownContentWrapper.prototype.findDisabledOptions = function () {
|
|
164
|
-
return this.findAllByClassName(styles_selectors_js_1.default.disabled).map(function (elementWrapper) { return new option_1.default(elementWrapper.getElement()); });
|
|
165
|
-
};
|
|
166
|
-
DropdownContentWrapper.prototype.findFooterRegion = function () {
|
|
132
|
+
class DropdownContentWrapper extends dom_1.ComponentWrapper {
|
|
133
|
+
findDisabledOptions() {
|
|
134
|
+
return this.findAllByClassName(styles_selectors_js_1.default.disabled).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
135
|
+
}
|
|
136
|
+
findFooterRegion() {
|
|
167
137
|
return this.findByClassName(styles_selectors_js_3.default.root);
|
|
168
|
-
}
|
|
169
|
-
|
|
138
|
+
}
|
|
139
|
+
findHighlightedAriaLiveRegion() {
|
|
170
140
|
return this.find('[aria-live]');
|
|
171
|
-
}
|
|
141
|
+
}
|
|
172
142
|
/**
|
|
173
143
|
* Returns highlighted text fragments from all of the options.
|
|
174
144
|
* Options get highlighted when they match the value of the input field.
|
|
175
145
|
*/
|
|
176
|
-
|
|
146
|
+
findHighlightedMatches() {
|
|
177
147
|
return this.findAllByClassName(styles_selectors_js_4.default['filtering-match-highlight']);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return this.findComponent(
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
148
|
+
}
|
|
149
|
+
findHighlightedOption() {
|
|
150
|
+
return this.findComponent(`.${styles_selectors_js_1.default.highlighted}`, option_1.default);
|
|
151
|
+
}
|
|
152
|
+
findOpenDropdown() {
|
|
153
|
+
const dropdown = new dropdown_1.default(this.getElement());
|
|
184
154
|
return dropdown.findOpenDropdown();
|
|
185
|
-
}
|
|
155
|
+
}
|
|
186
156
|
/**
|
|
187
157
|
* Returns an option from the dropdown.
|
|
188
158
|
*
|
|
189
159
|
* @param optionIndex 1-based index of the option to select.
|
|
190
160
|
*/
|
|
191
|
-
|
|
192
|
-
return this.findComponent(
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return this.findComponent(
|
|
197
|
-
}
|
|
161
|
+
findOption(optionIndex) {
|
|
162
|
+
return this.findComponent(`.${styles_selectors_js_1.default['selectable-item']}[data-test-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
|
|
163
|
+
}
|
|
164
|
+
findOptionByValue(value) {
|
|
165
|
+
const toReplace = (0, utils_1.escapeSelector)(value);
|
|
166
|
+
return this.findComponent(`.${option_1.default.rootSelector}[data-value="${toReplace}"]`, option_1.default);
|
|
167
|
+
}
|
|
198
168
|
/**
|
|
199
169
|
* Returns an option from the dropdown.
|
|
200
170
|
*
|
|
201
171
|
* @param groupIndex 1-based index of the group to select an option in.
|
|
202
172
|
* @param optionIndex 1-based index of the option to select.
|
|
203
173
|
*/
|
|
204
|
-
|
|
205
|
-
return this.findComponent(
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
return this.findAll(
|
|
209
|
-
}
|
|
174
|
+
findOptionInGroup(groupIndex, optionIndex) {
|
|
175
|
+
return this.findComponent(`.${styles_selectors_js_1.default['selectable-item']}[data-group-index="${groupIndex}"][data-child-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
|
|
176
|
+
}
|
|
177
|
+
findOptions() {
|
|
178
|
+
return this.findAll(`.${styles_selectors_js_1.default['selectable-item']}[data-test-index] .${option_1.default.rootSelector}`).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
179
|
+
}
|
|
210
180
|
/**
|
|
211
181
|
* Use this element to scroll through the list of options
|
|
212
182
|
*/
|
|
213
|
-
|
|
183
|
+
findOptionsContainer() {
|
|
214
184
|
return this.findByClassName(options_list_1.default.rootSelector);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
return this.findAllByClassName(styles_selectors_js_1.default.selected).map(
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
}(dom_1.ComponentWrapper));
|
|
185
|
+
}
|
|
186
|
+
findSelectedOptions() {
|
|
187
|
+
return this.findAllByClassName(styles_selectors_js_1.default.selected).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
221
190
|
exports.DropdownContentWrapper = DropdownContentWrapper;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
PortalDropdownContentWrapper.prototype.findOpenDropdown = function () {
|
|
228
|
-
return (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_2.default.dropdown, "[data-open=true]"), dropdown_1.default);
|
|
229
|
-
};
|
|
230
|
-
return PortalDropdownContentWrapper;
|
|
231
|
-
}(DropdownContentWrapper));
|
|
191
|
+
class PortalDropdownContentWrapper extends DropdownContentWrapper {
|
|
192
|
+
findOpenDropdown() {
|
|
193
|
+
return (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_2.default.dropdown}[data-open=true]`, dropdown_1.default);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
232
196
|
exports.PortalDropdownContentWrapper = PortalDropdownContentWrapper;
|
|
233
197
|
//# sourceMappingURL=dropdown-host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-host.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown-host.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dropdown-host.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown-host.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,qDAA2C;AAC3C,gEAAkH;AAClH,oEAA0E;AAE1E,yCAAyC;AACzC,iDAAgD;AAChD,qCAAqC;AACrC,0GAAgG;AAChG,mGAAuF;AACvF,0GAA4F;AAC5F,iGAAmF;AAEnF,MAA8B,4BAA6B,SAAQ,sBAAgB;IAGjF;;;OAGG;IACK,kBAAkB,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;;QAC9D,MAAM,MAAM,GAAG,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,0CAAE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QACvD,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,sBAAsB,UAAU,wBAAwB,WAAW,OAAO,gBAAa,CAAC,YAAY,EAAE,EAC7I,gBAAa,CACd,CAAC;IACJ,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,sBAAsB,gBAAa,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAChH,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CACnF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,sBAAkB,CAAC,YAAY,CAAC,CAAC;IAC/D,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAgB,CAAC,QAAQ,CAAC,CAAC,GAAG,CAC3D,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CACnF,CAAC;IACJ,CAAC;CACF;AAhFD,wDAgFC;AAED,MAAa,4BAA6B,SAAQ,sBAAsB;IACtE,gBAAgB;QACd,OAAO,IAAA,mBAAa,GAAE,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,QAAQ,kBAAkB,EAAE,kBAAe,CAAC,CAAC;IACvG,CAAC;CACF;AAJD,oEAIC"}
|
|
@@ -1,34 +1,14 @@
|
|
|
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
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../internal/components/dropdown/styles.selectors.js");
|
|
7
|
+
class DropdownWrapper extends dom_1.ElementWrapper {
|
|
8
|
+
findOpenDropdown() {
|
|
9
|
+
return this.find(`.${styles_selectors_js_1.default.dropdown}[data-open=true]`);
|
|
26
10
|
}
|
|
27
|
-
|
|
28
|
-
return this.find(".".concat(styles_selectors_js_1.default.dropdown, "[data-open=true]"));
|
|
29
|
-
};
|
|
30
|
-
DropdownWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
31
|
-
return DropdownWrapper;
|
|
32
|
-
}(dom_1.ElementWrapper));
|
|
11
|
+
}
|
|
33
12
|
exports.default = DropdownWrapper;
|
|
13
|
+
DropdownWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
34
14
|
//# sourceMappingURL=dropdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/dropdown.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAwE;AACxE,mGAA+E;AAC/E,MAAqB,eAAgB,SAAQ,oBAAc;IAGzD,gBAAgB;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,QAAQ,kBAAkB,CAAC,CAAC;IAC1D,CAAC;;AALH,kCAMC;AALQ,4BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,41 +1,21 @@
|
|
|
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 FilteringTokenWrapper() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
28
|
-
FilteringTokenWrapper.prototype.findLabel = function () {
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const select_1 = require("../select");
|
|
7
|
+
const styles_selectors_js_1 = require("../../../internal/components/filtering-token/styles.selectors.js");
|
|
8
|
+
class FilteringTokenWrapper extends dom_1.ComponentWrapper {
|
|
9
|
+
findLabel() {
|
|
29
10
|
return this.findByClassName(styles_selectors_js_1.default['token-content']);
|
|
30
|
-
}
|
|
31
|
-
|
|
11
|
+
}
|
|
12
|
+
findRemoveButton() {
|
|
32
13
|
return this.findByClassName(styles_selectors_js_1.default['dismiss-button']);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return this.findComponent(
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return FilteringTokenWrapper;
|
|
39
|
-
}(dom_1.ComponentWrapper));
|
|
14
|
+
}
|
|
15
|
+
findTokenOperation() {
|
|
16
|
+
return this.findComponent(`.${styles_selectors_js_1.default.select}`, select_1.default);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
40
19
|
exports.default = FilteringTokenWrapper;
|
|
20
|
+
FilteringTokenWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
41
21
|
//# sourceMappingURL=filtering-token.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering-token.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/filtering-token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filtering-token.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/filtering-token.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,sCAAsC;AACtC,0GAAsF;AAEtF,MAAqB,qBAAsB,SAAQ,sBAAgB;IAGjE,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAE,CAAC;IACxD,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAoB,6BAAM,CAAC,gBAAgB,CAAC,CAAE,CAAC;IAC5E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,MAAM,EAAE,EAAE,gBAAa,CAAC,CAAC;IAChE,CAAC;;AAbH,wCAcC;AAbQ,kCAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -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
|
-
function OptionWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
OptionWrapper.prototype.findLabel = function () {
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../internal/components/option/styles.selectors.js");
|
|
7
|
+
class OptionWrapper extends dom_1.ComponentWrapper {
|
|
8
|
+
findLabel() {
|
|
28
9
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
29
10
|
return this.findByClassName(styles_selectors_js_1.default.label);
|
|
30
|
-
}
|
|
31
|
-
|
|
11
|
+
}
|
|
12
|
+
findDescription() {
|
|
32
13
|
return this.findByClassName(styles_selectors_js_1.default.description);
|
|
33
|
-
}
|
|
34
|
-
|
|
14
|
+
}
|
|
15
|
+
findLabelTag() {
|
|
35
16
|
return this.findByClassName(styles_selectors_js_1.default['label-tag']);
|
|
36
|
-
}
|
|
37
|
-
|
|
17
|
+
}
|
|
18
|
+
findTags() {
|
|
38
19
|
return this.findAllByClassName(styles_selectors_js_1.default.tag);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return OptionWrapper;
|
|
42
|
-
}(dom_1.ComponentWrapper));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
43
22
|
exports.default = OptionWrapper;
|
|
23
|
+
OptionWrapper.rootSelector = styles_selectors_js_1.default.option;
|
|
44
24
|
//# sourceMappingURL=option.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/option.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"option.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/option.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,iGAA6E;AAE7E,MAAqB,aAAc,SAAQ,sBAAgB;IAGzD,SAAS;QACP,oEAAoE;QACpE,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;;AAlBH,gCAmBC;AAlBQ,0BAAY,GAAW,6BAAM,CAAC,MAAM,CAAC"}
|