@cloudscape-design/components 3.0.216 → 3.0.218
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/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +64 -63
- package/popover/styles.selectors.js +50 -50
- 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,124 +1,89 @@
|
|
|
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.TopNavigationMenuDropdownWrapper = exports.TopNavigationUtilityWrapper = exports.OverflowMenu = void 0;
|
|
19
4
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
20
5
|
// SPDX-License-Identifier: Apache-2.0
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return this.findAll(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-index]")).map(function (i) { return new TopNavigationUtilityWrapper(i.getElement()); });
|
|
47
|
-
};
|
|
48
|
-
TopNavigationWrapper.prototype.findUtility = function (index) {
|
|
49
|
-
return this.findComponent(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-index=\"").concat(index - 1, "\"]"), TopNavigationUtilityWrapper);
|
|
50
|
-
};
|
|
51
|
-
TopNavigationWrapper.prototype.findSearchButton = function () {
|
|
52
|
-
return this.find(".".concat(styles_selectors_js_1.default['utility-wrapper'], "[data-utility-special=\"search\"] a"));
|
|
53
|
-
};
|
|
54
|
-
TopNavigationWrapper.prototype.findOverflowMenuButton = function () {
|
|
55
|
-
return this.findComponent("[data-utility-special=\"menu-trigger\"] > button", button_1.default);
|
|
56
|
-
};
|
|
57
|
-
TopNavigationWrapper.prototype.findOverflowMenu = function () {
|
|
58
|
-
return (0, dom_1.createWrapper)().findComponent(".".concat(styles_selectors_js_1.default['overflow-menu-drawer']), OverflowMenu);
|
|
59
|
-
};
|
|
60
|
-
TopNavigationWrapper.rootSelector = "".concat(styles_selectors_js_1.default['top-navigation'], ":not(.").concat(styles_selectors_js_1.default.hidden, ")");
|
|
61
|
-
return TopNavigationWrapper;
|
|
62
|
-
}(dom_1.ComponentWrapper));
|
|
63
|
-
exports.default = TopNavigationWrapper;
|
|
64
|
-
var OverflowMenu = /** @class */ (function (_super) {
|
|
65
|
-
__extends(OverflowMenu, _super);
|
|
66
|
-
function OverflowMenu() {
|
|
67
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
7
|
+
const link_1 = require("../link");
|
|
8
|
+
const button_1 = require("../button");
|
|
9
|
+
const button_dropdown_1 = require("../button-dropdown");
|
|
10
|
+
const styles_selectors_js_1 = require("../../../top-navigation/styles.selectors.js");
|
|
11
|
+
const styles_selectors_js_2 = require("../../../button-dropdown/styles.selectors.js");
|
|
12
|
+
const styles_selectors_js_3 = require("../../../internal/components/menu-dropdown/styles.selectors.js");
|
|
13
|
+
class TopNavigationWrapper extends dom_1.ComponentWrapper {
|
|
14
|
+
findIdentityLink() {
|
|
15
|
+
return this.find(`.${styles_selectors_js_1.default.identity} a`);
|
|
16
|
+
}
|
|
17
|
+
findLogo() {
|
|
18
|
+
return this.find(`.${styles_selectors_js_1.default.logo}`);
|
|
19
|
+
}
|
|
20
|
+
findTitle() {
|
|
21
|
+
return this.find(`.${styles_selectors_js_1.default.title}`);
|
|
22
|
+
}
|
|
23
|
+
findSearch() {
|
|
24
|
+
return this.find(`.${styles_selectors_js_1.default.search}`);
|
|
25
|
+
}
|
|
26
|
+
findUtilities() {
|
|
27
|
+
return this.findAll(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-index]`).map(i => new TopNavigationUtilityWrapper(i.getElement()));
|
|
28
|
+
}
|
|
29
|
+
findUtility(index) {
|
|
30
|
+
return this.findComponent(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-index="${index - 1}"]`, TopNavigationUtilityWrapper);
|
|
68
31
|
}
|
|
69
|
-
|
|
32
|
+
findSearchButton() {
|
|
33
|
+
return this.find(`.${styles_selectors_js_1.default['utility-wrapper']}[data-utility-special="search"] a`);
|
|
34
|
+
}
|
|
35
|
+
findOverflowMenuButton() {
|
|
36
|
+
return this.findComponent(`[data-utility-special="menu-trigger"] > button`, button_1.default);
|
|
37
|
+
}
|
|
38
|
+
findOverflowMenu() {
|
|
39
|
+
return (0, dom_1.createWrapper)().findComponent(`.${styles_selectors_js_1.default['overflow-menu-drawer']}`, OverflowMenu);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = TopNavigationWrapper;
|
|
43
|
+
TopNavigationWrapper.rootSelector = `${styles_selectors_js_1.default['top-navigation']}:not(.${styles_selectors_js_1.default.hidden})`;
|
|
44
|
+
class OverflowMenu extends dom_1.ComponentWrapper {
|
|
45
|
+
findDismissButton() {
|
|
70
46
|
return this.findByClassName(styles_selectors_js_1.default['overflow-menu-dismiss-button']);
|
|
71
|
-
}
|
|
72
|
-
|
|
47
|
+
}
|
|
48
|
+
findBackButton() {
|
|
73
49
|
return this.findByClassName(styles_selectors_js_1.default['overflow-menu-back-button']);
|
|
74
|
-
}
|
|
75
|
-
|
|
50
|
+
}
|
|
51
|
+
findTitle() {
|
|
76
52
|
return this.findByClassName(styles_selectors_js_1.default['overflow-menu-header-text--title']);
|
|
77
|
-
}
|
|
78
|
-
|
|
53
|
+
}
|
|
54
|
+
findDescription() {
|
|
79
55
|
return this.findByClassName(styles_selectors_js_1.default['overflow-menu-header-text--secondary']);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return this.find(
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return this.find(
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}(dom_1.ComponentWrapper));
|
|
56
|
+
}
|
|
57
|
+
findUtility(index) {
|
|
58
|
+
return this.find(`[data-testid="__${index - 1}"]`);
|
|
59
|
+
}
|
|
60
|
+
findMenuDropdownItemById(id) {
|
|
61
|
+
return this.find(`[data-testid="${id}"]`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
89
64
|
exports.OverflowMenu = OverflowMenu;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
TopNavigationUtilityWrapper.prototype.findMenuDropdownType = function () {
|
|
102
|
-
return this.findComponent(".".concat(button_dropdown_1.default.rootSelector), TopNavigationMenuDropdownWrapper);
|
|
103
|
-
};
|
|
104
|
-
return TopNavigationUtilityWrapper;
|
|
105
|
-
}(dom_1.ComponentWrapper));
|
|
65
|
+
class TopNavigationUtilityWrapper extends dom_1.ComponentWrapper {
|
|
66
|
+
findButtonLinkType() {
|
|
67
|
+
return this.findComponent(`.${link_1.default.rootSelector}`, link_1.default);
|
|
68
|
+
}
|
|
69
|
+
findPrimaryButtonType() {
|
|
70
|
+
return this.findComponent(`.${button_1.default.rootSelector}`, button_1.default);
|
|
71
|
+
}
|
|
72
|
+
findMenuDropdownType() {
|
|
73
|
+
return this.findComponent(`.${button_dropdown_1.default.rootSelector}`, TopNavigationMenuDropdownWrapper);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
106
76
|
exports.TopNavigationUtilityWrapper = TopNavigationUtilityWrapper;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
TopNavigationMenuDropdownWrapper.prototype.findNativeButton = function () {
|
|
113
|
-
return this.find(".".concat(styles_selectors_js_3.default.button));
|
|
114
|
-
};
|
|
115
|
-
TopNavigationMenuDropdownWrapper.prototype.findTitle = function () {
|
|
77
|
+
class TopNavigationMenuDropdownWrapper extends button_dropdown_1.default {
|
|
78
|
+
findNativeButton() {
|
|
79
|
+
return this.find(`.${styles_selectors_js_3.default.button}`);
|
|
80
|
+
}
|
|
81
|
+
findTitle() {
|
|
116
82
|
return this.findByClassName(styles_selectors_js_2.default.title);
|
|
117
|
-
}
|
|
118
|
-
|
|
83
|
+
}
|
|
84
|
+
findDescription() {
|
|
119
85
|
return this.findByClassName(styles_selectors_js_2.default.description);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
}(button_dropdown_1.default));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
123
88
|
exports.TopNavigationMenuDropdownWrapper = TopNavigationMenuDropdownWrapper;
|
|
124
89
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/top-navigation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/top-navigation/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,74 +1,49 @@
|
|
|
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 styles_selectors_js_1 = require("../../../tutorial-panel/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_2 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_3 = require("../../../tutorial-panel/components/tutorial-detail-view/styles.selectors.js");
|
|
9
|
+
const link_1 = require("../link");
|
|
10
|
+
const tutorial_1 = require("./tutorial");
|
|
11
|
+
const button_1 = require("../button");
|
|
12
|
+
const expandable_section_1 = require("../expandable-section");
|
|
13
|
+
class TutorialPanelWrapper extends dom_1.ComponentWrapper {
|
|
14
|
+
findTutorials() {
|
|
15
|
+
return this.findAllByClassName(styles_selectors_js_2.default['tutorial-box']).map(item => new tutorial_1.default(item.getElement()));
|
|
32
16
|
}
|
|
33
|
-
|
|
34
|
-
return this.
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return this.
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return this.
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return this.findComponent(".".concat(styles_selectors_js_3.default['dismiss-button']), button_1.default);
|
|
44
|
-
};
|
|
45
|
-
TutorialPanelWrapper.prototype.findCompletionScreenTitle = function () {
|
|
17
|
+
findDownloadLink() {
|
|
18
|
+
return this.findComponent(`.${styles_selectors_js_2.default['download-link']}`, link_1.default);
|
|
19
|
+
}
|
|
20
|
+
findTaskList() {
|
|
21
|
+
return this.findAllByClassName(styles_selectors_js_3.default.task).map(item => new TutorialTaskWrapper(item.getElement()));
|
|
22
|
+
}
|
|
23
|
+
findDismissButton() {
|
|
24
|
+
return this.findComponent(`.${styles_selectors_js_3.default['dismiss-button']}`, button_1.default);
|
|
25
|
+
}
|
|
26
|
+
findCompletionScreenTitle() {
|
|
46
27
|
return this.findByClassName(styles_selectors_js_3.default['completion-screen-title']);
|
|
47
|
-
}
|
|
48
|
-
|
|
28
|
+
}
|
|
29
|
+
findCompletionScreenDescription() {
|
|
49
30
|
return this.findByClassName(styles_selectors_js_3.default['completion-screen-description']);
|
|
50
|
-
};
|
|
51
|
-
TutorialPanelWrapper.prototype.findFeedbackLink = function () {
|
|
52
|
-
return this.findComponent(".".concat(styles_selectors_js_3.default['feedback-link']), link_1.default);
|
|
53
|
-
};
|
|
54
|
-
TutorialPanelWrapper.rootSelector = styles_selectors_js_1.default['tutorial-panel'];
|
|
55
|
-
return TutorialPanelWrapper;
|
|
56
|
-
}(dom_1.ComponentWrapper));
|
|
57
|
-
exports.default = TutorialPanelWrapper;
|
|
58
|
-
var TutorialTaskWrapper = /** @class */ (function (_super) {
|
|
59
|
-
__extends(TutorialTaskWrapper, _super);
|
|
60
|
-
function TutorialTaskWrapper() {
|
|
61
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
62
31
|
}
|
|
63
|
-
|
|
32
|
+
findFeedbackLink() {
|
|
33
|
+
return this.findComponent(`.${styles_selectors_js_3.default['feedback-link']}`, link_1.default);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = TutorialPanelWrapper;
|
|
37
|
+
TutorialPanelWrapper.rootSelector = styles_selectors_js_1.default['tutorial-panel'];
|
|
38
|
+
class TutorialTaskWrapper extends dom_1.ComponentWrapper {
|
|
39
|
+
findTitle() {
|
|
64
40
|
return this.findByClassName(styles_selectors_js_3.default['task-title']);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return this.findComponent(
|
|
68
|
-
}
|
|
69
|
-
|
|
41
|
+
}
|
|
42
|
+
findStepsTitle() {
|
|
43
|
+
return this.findComponent(`.${styles_selectors_js_3.default['expandable-section-wrapper']}`, expandable_section_1.default).findHeader();
|
|
44
|
+
}
|
|
45
|
+
findSteps() {
|
|
70
46
|
return this.findAllByClassName(styles_selectors_js_3.default['step-title']);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}(dom_1.ComponentWrapper));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
74
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,qFAAiE;AACjE,8GAA8F;AAC9F,qHAAuG;AACvG,kCAAkC;AAClC,yCAA6C;AAC7C,sCAAsC;AACtC,8DAA6D;AAE7D,MAAqB,oBAAqB,SAAQ,sBAAgB;IAGhE,aAAa;QACX,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAU,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,kBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACrH,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAU,CAAC,eAAe,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC5E,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5G,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IACjF,CAAC;IAED,yBAAyB;QACvB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAY,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,+BAA+B;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAY,CAAC,+BAA+B,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,eAAe,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC9E,CAAC;;AA7BH,uCA8BC;AA7BQ,iCAAY,GAAW,6BAAM,CAAC,gBAAgB,CAAC,CAAC;AA+BzD,MAAM,mBAAoB,SAAQ,sBAAgB;IAChD,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAY,CAAC,YAAY,CAAC,CAAE,CAAC;IAC3D,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAY,CAAC,4BAA4B,CAAC,EAAE,EAAE,4BAAwB,CAAE,CAAC,UAAU,EAAE,CAAC;IACtH,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAY,CAAC,YAAY,CAAC,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -1,58 +1,38 @@
|
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
TutorialItemWrapper.prototype.findCollapseButton = function () {
|
|
40
|
-
return this.findComponent(".".concat(styles_selectors_js_1.default['collapse-button']), button_1.default);
|
|
41
|
-
};
|
|
42
|
-
TutorialItemWrapper.prototype.findDescription = function () {
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../tutorial-panel/components/tutorial-list/styles.selectors.js");
|
|
7
|
+
const button_1 = require("../button");
|
|
8
|
+
const index_js_1 = require("../index.js");
|
|
9
|
+
const link_1 = require("../link");
|
|
10
|
+
class TutorialItemWrapper extends dom_1.ComponentWrapper {
|
|
11
|
+
findStartButton() {
|
|
12
|
+
return this.findComponent(`.${styles_selectors_js_1.default.start}`, button_1.default);
|
|
13
|
+
}
|
|
14
|
+
findLearnMoreLink() {
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_1.default['learn-more-link']}`, link_1.default);
|
|
16
|
+
}
|
|
17
|
+
findExpandButton() {
|
|
18
|
+
return this.findComponent(`.${styles_selectors_js_1.default['expand-button']}`, button_1.default);
|
|
19
|
+
}
|
|
20
|
+
findCollapseButton() {
|
|
21
|
+
return this.findComponent(`.${styles_selectors_js_1.default['collapse-button']}`, button_1.default);
|
|
22
|
+
}
|
|
23
|
+
findDescription() {
|
|
43
24
|
return this.findByClassName(styles_selectors_js_1.default['tutorial-description']);
|
|
44
|
-
}
|
|
45
|
-
|
|
25
|
+
}
|
|
26
|
+
findTitle() {
|
|
46
27
|
return this.findByClassName(styles_selectors_js_1.default.title);
|
|
47
|
-
}
|
|
48
|
-
|
|
28
|
+
}
|
|
29
|
+
findCompleted() {
|
|
49
30
|
return this.findByClassName(styles_selectors_js_1.default.completed);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return this.findComponent(
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return TutorialItemWrapper;
|
|
56
|
-
}(dom_1.ComponentWrapper));
|
|
31
|
+
}
|
|
32
|
+
findPrerequisitesAlert() {
|
|
33
|
+
return this.findComponent(`.${styles_selectors_js_1.default['prerequisites-alert']}`, index_js_1.AlertWrapper);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
57
36
|
exports.default = TutorialItemWrapper;
|
|
37
|
+
TutorialItemWrapper.rootSelector = styles_selectors_js_1.default['tutorial-box'];
|
|
58
38
|
//# sourceMappingURL=tutorial.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tutorial.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tutorial-panel/tutorial.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,8GAA0F;AAC1F,sCAAsC;AACtC,0CAA2C;AAC3C,kCAAkC;AAElC,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC/D,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IAC1E,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC1E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;IAED,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,uBAAY,CAAC,CAAC;IAC/E,CAAC;;AAjCH,sCAkCC;AAjCQ,gCAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,51 +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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function WizardWrapper() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
28
|
-
WizardWrapper.prototype.findHeader = function () {
|
|
3
|
+
const styles_selectors_js_1 = require("../../../form/styles.selectors.js");
|
|
4
|
+
const styles_selectors_js_2 = require("../../../wizard/styles.selectors.js");
|
|
5
|
+
const button_1 = require("../button");
|
|
6
|
+
const form_1 = require("../form");
|
|
7
|
+
const header_1 = require("../header");
|
|
8
|
+
class WizardWrapper extends form_1.default {
|
|
9
|
+
findHeader() {
|
|
29
10
|
return this.findByClassName(styles_selectors_js_2.default['form-header-component']);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return this.findComponent(
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return this.findComponent(
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return this.findComponent(
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return this.findComponent(
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return this.findComponent(
|
|
45
|
-
}
|
|
46
|
-
|
|
11
|
+
}
|
|
12
|
+
findInfo() {
|
|
13
|
+
return this.findComponent(`.${styles_selectors_js_2.default['form-header']}`, header_1.default).findInfo();
|
|
14
|
+
}
|
|
15
|
+
findCancelButton() {
|
|
16
|
+
return this.findComponent(`.${styles_selectors_js_2.default['cancel-button']}`, button_1.default);
|
|
17
|
+
}
|
|
18
|
+
findSkipToButton() {
|
|
19
|
+
return this.findComponent(`.${styles_selectors_js_2.default['skip-to-button']}`, button_1.default);
|
|
20
|
+
}
|
|
21
|
+
findPreviousButton() {
|
|
22
|
+
return this.findComponent(`.${styles_selectors_js_2.default['previous-button']}`, button_1.default);
|
|
23
|
+
}
|
|
24
|
+
findPrimaryButton() {
|
|
25
|
+
return this.findComponent(`.${styles_selectors_js_2.default['primary-button']}`, button_1.default);
|
|
26
|
+
}
|
|
27
|
+
findMenuNavigationLinks() {
|
|
47
28
|
return this.findAllByClassName(styles_selectors_js_2.default['navigation-link']);
|
|
48
|
-
}
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Returns a link for a given step number.
|
|
51
32
|
*
|
|
@@ -57,15 +38,14 @@ var WizardWrapper = /** @class */ (function (_super) {
|
|
|
57
38
|
* - "active": for the active menu entry
|
|
58
39
|
* - undefined: for any entry
|
|
59
40
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return this.find(
|
|
63
|
-
}
|
|
64
|
-
|
|
41
|
+
findMenuNavigationLink(stepNumber, state) {
|
|
42
|
+
const additionalClassName = state ? `.${styles_selectors_js_2.default[`navigation-link-${state}`]}` : '';
|
|
43
|
+
return this.find(`.${styles_selectors_js_2.default['navigation-link-item']}:nth-child(${stepNumber}) .${styles_selectors_js_2.default['navigation-link']}${additionalClassName}`);
|
|
44
|
+
}
|
|
45
|
+
findSecondaryActions() {
|
|
65
46
|
return this.findByClassName(styles_selectors_js_1.default['secondary-actions']);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return WizardWrapper;
|
|
69
|
-
}(form_1.default));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
70
49
|
exports.default = WizardWrapper;
|
|
50
|
+
WizardWrapper.rootSelector = styles_selectors_js_2.default.root;
|
|
71
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/wizard/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/wizard/index.ts"],"names":[],"mappings":";;AAGA,2EAA2D;AAC3D,6EAAyD;AACzD,sCAAsC;AACtC,kCAAkC;AAClC,sCAAsC;AAEtC,MAAqB,aAAc,SAAQ,cAAW;IAGpD,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC,QAAQ,EAAE,CAAC;IACpF,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC3E,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;IAED,kBAAkB;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAC5E,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC5E,CAAC;IAED,uBAAuB;QACrB,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,UAAkB,EAAE,KAAc;QACvD,MAAM,mBAAmB,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,6BAAM,CAAC,mBAAmB,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CACd,IAAI,6BAAM,CAAC,sBAAsB,CAAC,cAAc,UAAU,MAAM,6BAAM,CAAC,iBAAiB,CAAC,GAAG,mBAAmB,EAAE,CAClH,CAAC;IACJ,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC/D,CAAC;;AAnDH,gCAoDC;AAnDQ,0BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|