@cloudscape-design/components 3.0.215 → 3.0.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internal/components/option/highlight-match.js +3 -3
- package/internal/components/option/highlight-match.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/select/parts/item.js +1 -1
- package/select/parts/item.js.map +1 -1
- package/test-utils/dom/alert/index.js +20 -40
- package/test-utils/dom/alert/index.js.map +1 -1
- package/test-utils/dom/annotation/index.js +24 -44
- package/test-utils/dom/annotation/index.js.map +1 -1
- package/test-utils/dom/app-layout/index.js +27 -47
- package/test-utils/dom/app-layout/index.js.map +1 -1
- package/test-utils/dom/area-chart/index.js +12 -32
- package/test-utils/dom/area-chart/index.js.map +1 -1
- package/test-utils/dom/attribute-editor/index.js +32 -57
- package/test-utils/dom/attribute-editor/index.js.map +1 -1
- package/test-utils/dom/autosuggest/index.js +76 -114
- package/test-utils/dom/autosuggest/index.js.map +1 -1
- package/test-utils/dom/badge/index.js +5 -25
- package/test-utils/dom/badge/index.js.map +1 -1
- package/test-utils/dom/bar-chart/index.js +5 -25
- package/test-utils/dom/bar-chart/index.js.map +1 -1
- package/test-utils/dom/box/index.js +5 -25
- package/test-utils/dom/box/index.js.map +1 -1
- package/test-utils/dom/breadcrumb-group/index.js +17 -37
- package/test-utils/dom/breadcrumb-group/index.js.map +1 -1
- package/test-utils/dom/button/index.js +16 -36
- package/test-utils/dom/button/index.js.map +1 -1
- package/test-utils/dom/button-dropdown/index.js +38 -59
- package/test-utils/dom/button-dropdown/index.js.map +1 -1
- package/test-utils/dom/calendar/index.js +20 -40
- package/test-utils/dom/calendar/index.js.map +1 -1
- package/test-utils/dom/cards/index.js +55 -83
- package/test-utils/dom/cards/index.js.map +1 -1
- package/test-utils/dom/checkbox/index.js +14 -34
- package/test-utils/dom/checkbox/index.js.map +1 -1
- package/test-utils/dom/code-editor/index.js +33 -53
- package/test-utils/dom/code-editor/index.js.map +1 -1
- package/test-utils/dom/collection-preferences/index.js +40 -65
- package/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/test-utils/dom/collection-preferences/page-size-preference.js +12 -32
- package/test-utils/dom/collection-preferences/page-size-preference.js.map +1 -1
- package/test-utils/dom/collection-preferences/visible-content-preference.js +18 -38
- package/test-utils/dom/collection-preferences/visible-content-preference.js.map +1 -1
- package/test-utils/dom/column-layout/index.js +5 -25
- package/test-utils/dom/column-layout/index.js.map +1 -1
- package/test-utils/dom/container/index.js +11 -31
- package/test-utils/dom/container/index.js.map +1 -1
- package/test-utils/dom/content-layout/index.js +9 -29
- package/test-utils/dom/content-layout/index.js.map +1 -1
- package/test-utils/dom/date-input/index.js +5 -25
- package/test-utils/dom/date-input/index.js.map +1 -1
- package/test-utils/dom/date-picker/index.js +26 -47
- package/test-utils/dom/date-picker/index.js.map +1 -1
- package/test-utils/dom/date-range-picker/index.js +87 -119
- package/test-utils/dom/date-range-picker/index.js.map +1 -1
- package/test-utils/dom/expandable-section/index.js +15 -35
- package/test-utils/dom/expandable-section/index.js.map +1 -1
- package/test-utils/dom/flashbar/flash.js +18 -38
- package/test-utils/dom/flashbar/flash.js.map +1 -1
- package/test-utils/dom/flashbar/index.js +9 -29
- package/test-utils/dom/flashbar/index.js.map +1 -1
- package/test-utils/dom/form/index.js +15 -35
- package/test-utils/dom/form/index.js.map +1 -1
- package/test-utils/dom/form-field/index.js +21 -41
- package/test-utils/dom/form-field/index.js.map +1 -1
- package/test-utils/dom/grid/index.js +8 -28
- package/test-utils/dom/grid/index.js.map +1 -1
- package/test-utils/dom/header/index.js +15 -35
- package/test-utils/dom/header/index.js.map +1 -1
- package/test-utils/dom/help-panel/index.js +11 -31
- package/test-utils/dom/help-panel/index.js.map +1 -1
- package/test-utils/dom/hotspot/index.js +12 -32
- package/test-utils/dom/hotspot/index.js.map +1 -1
- package/test-utils/dom/icon/index.js +5 -25
- package/test-utils/dom/icon/index.js.map +1 -1
- package/test-utils/dom/index.js +133 -134
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/dom/input/base-input.js +35 -57
- package/test-utils/dom/input/base-input.js.map +1 -1
- package/test-utils/dom/input/index.js +7 -27
- package/test-utils/dom/input/index.js.map +1 -1
- package/test-utils/dom/internal/abstract-switch.js +12 -32
- package/test-utils/dom/internal/abstract-switch.js.map +1 -1
- package/test-utils/dom/internal/autosuggest-input.js +14 -34
- package/test-utils/dom/internal/autosuggest-input.js.map +1 -1
- package/test-utils/dom/internal/chart-filter.js +11 -31
- package/test-utils/dom/internal/chart-filter.js.map +1 -1
- package/test-utils/dom/internal/chart-legend.js +13 -33
- package/test-utils/dom/internal/chart-legend.js.map +1 -1
- package/test-utils/dom/internal/chart-popover.js +14 -34
- package/test-utils/dom/internal/chart-popover.js.map +1 -1
- package/test-utils/dom/internal/charts.js +20 -40
- package/test-utils/dom/internal/charts.js.map +1 -1
- package/test-utils/dom/internal/dropdown-host.js +89 -125
- package/test-utils/dom/internal/dropdown-host.js.map +1 -1
- package/test-utils/dom/internal/dropdown.js +7 -27
- package/test-utils/dom/internal/dropdown.js.map +1 -1
- package/test-utils/dom/internal/filtering-token.js +13 -33
- package/test-utils/dom/internal/filtering-token.js.map +1 -1
- package/test-utils/dom/internal/option.js +13 -33
- package/test-utils/dom/internal/option.js.map +1 -1
- package/test-utils/dom/internal/options-list.js +5 -25
- package/test-utils/dom/internal/options-list.js.map +1 -1
- package/test-utils/dom/line-chart/index.js +5 -25
- package/test-utils/dom/line-chart/index.js.map +1 -1
- package/test-utils/dom/link/index.js +5 -25
- package/test-utils/dom/link/index.js.map +1 -1
- package/test-utils/dom/mixed-line-bar-chart/index.js +29 -54
- package/test-utils/dom/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/dom/modal/index.js +18 -38
- package/test-utils/dom/modal/index.js.map +1 -1
- package/test-utils/dom/multiselect/index.js +38 -61
- package/test-utils/dom/multiselect/index.js.map +1 -1
- package/test-utils/dom/pagination/index.js +19 -39
- package/test-utils/dom/pagination/index.js.map +1 -1
- package/test-utils/dom/pie-chart/index.js +22 -42
- package/test-utils/dom/pie-chart/index.js.map +1 -1
- package/test-utils/dom/popover/index.js +16 -39
- package/test-utils/dom/popover/index.js.map +1 -1
- package/test-utils/dom/progress-bar/index.js +13 -33
- package/test-utils/dom/progress-bar/index.js.map +1 -1
- package/test-utils/dom/property-filter/index.js +15 -35
- package/test-utils/dom/property-filter/index.js.map +1 -1
- package/test-utils/dom/radio-group/index.js +13 -33
- package/test-utils/dom/radio-group/index.js.map +1 -1
- package/test-utils/dom/radio-group/radio-button.js +12 -32
- package/test-utils/dom/radio-group/radio-button.js.map +1 -1
- package/test-utils/dom/s3-resource-selector/index.js +40 -70
- package/test-utils/dom/s3-resource-selector/index.js.map +1 -1
- package/test-utils/dom/segmented-control/index.js +9 -29
- package/test-utils/dom/segmented-control/index.js.map +1 -1
- package/test-utils/dom/select/index.js +28 -51
- package/test-utils/dom/select/index.js.map +1 -1
- package/test-utils/dom/side-navigation/index.js +41 -66
- package/test-utils/dom/side-navigation/index.js.map +1 -1
- package/test-utils/dom/space-between/index.js +5 -25
- package/test-utils/dom/space-between/index.js.map +1 -1
- package/test-utils/dom/spinner/index.js +5 -25
- package/test-utils/dom/spinner/index.js.map +1 -1
- package/test-utils/dom/split-panel/index.js +25 -45
- package/test-utils/dom/split-panel/index.js.map +1 -1
- package/test-utils/dom/status-indicator/index.js +5 -25
- package/test-utils/dom/status-indicator/index.js.map +1 -1
- package/test-utils/dom/table/index.js +76 -94
- package/test-utils/dom/table/index.js.map +1 -1
- package/test-utils/dom/tabs/index.js +19 -39
- package/test-utils/dom/tabs/index.js.map +1 -1
- package/test-utils/dom/tag-editor/index.js +19 -44
- package/test-utils/dom/tag-editor/index.js.map +1 -1
- package/test-utils/dom/text-content/index.js +5 -25
- package/test-utils/dom/text-content/index.js.map +1 -1
- package/test-utils/dom/text-filter/index.js +10 -30
- package/test-utils/dom/text-filter/index.js.map +1 -1
- package/test-utils/dom/textarea/index.js +16 -36
- package/test-utils/dom/textarea/index.js.map +1 -1
- package/test-utils/dom/tiles/index.js +17 -37
- package/test-utils/dom/tiles/index.js.map +1 -1
- package/test-utils/dom/tiles/tile.js +16 -36
- package/test-utils/dom/tiles/tile.js.map +1 -1
- package/test-utils/dom/time-input/index.js +5 -25
- package/test-utils/dom/time-input/index.js.map +1 -1
- package/test-utils/dom/toggle/index.js +14 -34
- package/test-utils/dom/toggle/index.js.map +1 -1
- package/test-utils/dom/token-group/index.js +14 -34
- package/test-utils/dom/token-group/index.js.map +1 -1
- package/test-utils/dom/token-group/token.js +12 -32
- package/test-utils/dom/token-group/token.js.map +1 -1
- package/test-utils/dom/top-navigation/1.0-beta/index.js +56 -91
- package/test-utils/dom/top-navigation/1.0-beta/index.js.map +1 -1
- package/test-utils/dom/top-navigation/index.js +73 -108
- package/test-utils/dom/top-navigation/index.js.map +1 -1
- package/test-utils/dom/tutorial-panel/index.js +38 -63
- package/test-utils/dom/tutorial-panel/index.js.map +1 -1
- package/test-utils/dom/tutorial-panel/tutorial.js +29 -49
- package/test-utils/dom/tutorial-panel/tutorial.js.map +1 -1
- package/test-utils/dom/wizard/index.js +33 -53
- package/test-utils/dom/wizard/index.js.map +1 -1
- package/test-utils/selectors/alert/index.js +20 -40
- package/test-utils/selectors/alert/index.js.map +1 -1
- package/test-utils/selectors/annotation/index.js +24 -44
- package/test-utils/selectors/annotation/index.js.map +1 -1
- package/test-utils/selectors/app-layout/index.js +27 -47
- package/test-utils/selectors/app-layout/index.js.map +1 -1
- package/test-utils/selectors/area-chart/index.js +12 -32
- package/test-utils/selectors/area-chart/index.js.map +1 -1
- package/test-utils/selectors/attribute-editor/index.js +32 -57
- package/test-utils/selectors/attribute-editor/index.js.map +1 -1
- package/test-utils/selectors/autosuggest/index.js +69 -103
- package/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/test-utils/selectors/badge/index.js +5 -25
- package/test-utils/selectors/badge/index.js.map +1 -1
- package/test-utils/selectors/bar-chart/index.js +5 -25
- package/test-utils/selectors/bar-chart/index.js.map +1 -1
- package/test-utils/selectors/box/index.js +5 -25
- package/test-utils/selectors/box/index.js.map +1 -1
- package/test-utils/selectors/breadcrumb-group/index.js +17 -37
- package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
- package/test-utils/selectors/button/index.js +11 -31
- package/test-utils/selectors/button/index.js.map +1 -1
- package/test-utils/selectors/button-dropdown/index.js +30 -50
- package/test-utils/selectors/button-dropdown/index.js.map +1 -1
- package/test-utils/selectors/calendar/index.js +20 -40
- package/test-utils/selectors/calendar/index.js.map +1 -1
- package/test-utils/selectors/cards/index.js +55 -83
- package/test-utils/selectors/cards/index.js.map +1 -1
- package/test-utils/selectors/checkbox/index.js +14 -34
- package/test-utils/selectors/checkbox/index.js.map +1 -1
- package/test-utils/selectors/code-editor/index.js +25 -45
- package/test-utils/selectors/code-editor/index.js.map +1 -1
- package/test-utils/selectors/collection-preferences/index.js +40 -65
- package/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/test-utils/selectors/collection-preferences/page-size-preference.js +12 -32
- package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
- package/test-utils/selectors/collection-preferences/visible-content-preference.js +18 -38
- package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
- package/test-utils/selectors/column-layout/index.js +5 -25
- package/test-utils/selectors/column-layout/index.js.map +1 -1
- package/test-utils/selectors/container/index.js +11 -31
- package/test-utils/selectors/container/index.js.map +1 -1
- package/test-utils/selectors/content-layout/index.js +9 -29
- package/test-utils/selectors/content-layout/index.js.map +1 -1
- package/test-utils/selectors/date-input/index.js +5 -25
- package/test-utils/selectors/date-input/index.js.map +1 -1
- package/test-utils/selectors/date-picker/index.js +22 -43
- package/test-utils/selectors/date-picker/index.js.map +1 -1
- package/test-utils/selectors/date-range-picker/index.js +81 -112
- package/test-utils/selectors/date-range-picker/index.js.map +1 -1
- package/test-utils/selectors/expandable-section/index.js +15 -35
- package/test-utils/selectors/expandable-section/index.js.map +1 -1
- package/test-utils/selectors/flashbar/flash.js +18 -38
- package/test-utils/selectors/flashbar/flash.js.map +1 -1
- package/test-utils/selectors/flashbar/index.js +9 -29
- package/test-utils/selectors/flashbar/index.js.map +1 -1
- package/test-utils/selectors/form/index.js +15 -35
- package/test-utils/selectors/form/index.js.map +1 -1
- package/test-utils/selectors/form-field/index.js +21 -41
- package/test-utils/selectors/form-field/index.js.map +1 -1
- package/test-utils/selectors/grid/index.js +8 -28
- package/test-utils/selectors/grid/index.js.map +1 -1
- package/test-utils/selectors/header/index.js +15 -35
- package/test-utils/selectors/header/index.js.map +1 -1
- package/test-utils/selectors/help-panel/index.js +11 -31
- package/test-utils/selectors/help-panel/index.js.map +1 -1
- package/test-utils/selectors/hotspot/index.js +12 -32
- package/test-utils/selectors/hotspot/index.js.map +1 -1
- package/test-utils/selectors/icon/index.js +5 -25
- package/test-utils/selectors/icon/index.js.map +1 -1
- package/test-utils/selectors/index.js +133 -134
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/selectors/input/base-input.js +7 -27
- package/test-utils/selectors/input/base-input.js.map +1 -1
- package/test-utils/selectors/input/index.js +7 -27
- package/test-utils/selectors/input/index.js.map +1 -1
- package/test-utils/selectors/internal/abstract-switch.js +12 -32
- package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
- package/test-utils/selectors/internal/autosuggest-input.js +14 -34
- package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
- package/test-utils/selectors/internal/chart-filter.js +11 -31
- package/test-utils/selectors/internal/chart-filter.js.map +1 -1
- package/test-utils/selectors/internal/chart-legend.js +13 -33
- package/test-utils/selectors/internal/chart-legend.js.map +1 -1
- package/test-utils/selectors/internal/chart-popover.js +14 -34
- package/test-utils/selectors/internal/chart-popover.js.map +1 -1
- package/test-utils/selectors/internal/charts.js +20 -40
- package/test-utils/selectors/internal/charts.js.map +1 -1
- package/test-utils/selectors/internal/dropdown-host.js +59 -91
- package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
- package/test-utils/selectors/internal/dropdown.js +7 -27
- package/test-utils/selectors/internal/dropdown.js.map +1 -1
- package/test-utils/selectors/internal/filtering-token.js +13 -33
- package/test-utils/selectors/internal/filtering-token.js.map +1 -1
- package/test-utils/selectors/internal/option.js +13 -33
- package/test-utils/selectors/internal/option.js.map +1 -1
- package/test-utils/selectors/internal/options-list.js +5 -25
- package/test-utils/selectors/internal/options-list.js.map +1 -1
- package/test-utils/selectors/line-chart/index.js +5 -25
- package/test-utils/selectors/line-chart/index.js.map +1 -1
- package/test-utils/selectors/link/index.js +5 -25
- package/test-utils/selectors/link/index.js.map +1 -1
- package/test-utils/selectors/mixed-line-bar-chart/index.js +29 -54
- package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
- package/test-utils/selectors/modal/index.js +13 -33
- package/test-utils/selectors/modal/index.js.map +1 -1
- package/test-utils/selectors/multiselect/index.js +38 -61
- package/test-utils/selectors/multiselect/index.js.map +1 -1
- package/test-utils/selectors/pagination/index.js +19 -39
- package/test-utils/selectors/pagination/index.js.map +1 -1
- package/test-utils/selectors/pie-chart/index.js +22 -42
- package/test-utils/selectors/pie-chart/index.js.map +1 -1
- package/test-utils/selectors/popover/index.js +22 -45
- package/test-utils/selectors/popover/index.js.map +1 -1
- package/test-utils/selectors/progress-bar/index.js +13 -33
- package/test-utils/selectors/progress-bar/index.js.map +1 -1
- package/test-utils/selectors/property-filter/index.js +15 -35
- package/test-utils/selectors/property-filter/index.js.map +1 -1
- package/test-utils/selectors/radio-group/index.js +13 -33
- package/test-utils/selectors/radio-group/index.js.map +1 -1
- package/test-utils/selectors/radio-group/radio-button.js +12 -32
- package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
- package/test-utils/selectors/s3-resource-selector/index.js +40 -70
- package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
- package/test-utils/selectors/segmented-control/index.js +9 -29
- package/test-utils/selectors/segmented-control/index.js.map +1 -1
- package/test-utils/selectors/select/index.js +28 -51
- package/test-utils/selectors/select/index.js.map +1 -1
- package/test-utils/selectors/side-navigation/index.js +41 -66
- package/test-utils/selectors/side-navigation/index.js.map +1 -1
- package/test-utils/selectors/space-between/index.js +5 -25
- package/test-utils/selectors/space-between/index.js.map +1 -1
- package/test-utils/selectors/spinner/index.js +5 -25
- package/test-utils/selectors/spinner/index.js.map +1 -1
- package/test-utils/selectors/split-panel/index.js +25 -45
- package/test-utils/selectors/split-panel/index.js.map +1 -1
- package/test-utils/selectors/status-indicator/index.js +5 -25
- package/test-utils/selectors/status-indicator/index.js.map +1 -1
- package/test-utils/selectors/table/index.js +76 -94
- package/test-utils/selectors/table/index.js.map +1 -1
- package/test-utils/selectors/tabs/index.js +19 -39
- package/test-utils/selectors/tabs/index.js.map +1 -1
- package/test-utils/selectors/tag-editor/index.js +19 -44
- package/test-utils/selectors/tag-editor/index.js.map +1 -1
- package/test-utils/selectors/text-content/index.js +5 -25
- package/test-utils/selectors/text-content/index.js.map +1 -1
- package/test-utils/selectors/text-filter/index.js +10 -30
- package/test-utils/selectors/text-filter/index.js.map +1 -1
- package/test-utils/selectors/textarea/index.js +7 -27
- package/test-utils/selectors/textarea/index.js.map +1 -1
- package/test-utils/selectors/tiles/index.js +17 -37
- package/test-utils/selectors/tiles/index.js.map +1 -1
- package/test-utils/selectors/tiles/tile.js +16 -36
- package/test-utils/selectors/tiles/tile.js.map +1 -1
- package/test-utils/selectors/time-input/index.js +5 -25
- package/test-utils/selectors/time-input/index.js.map +1 -1
- package/test-utils/selectors/toggle/index.js +14 -34
- package/test-utils/selectors/toggle/index.js.map +1 -1
- package/test-utils/selectors/token-group/index.js +14 -34
- package/test-utils/selectors/token-group/index.js.map +1 -1
- package/test-utils/selectors/token-group/token.js +12 -32
- package/test-utils/selectors/token-group/token.js.map +1 -1
- package/test-utils/selectors/top-navigation/1.0-beta/index.js +56 -91
- package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
- package/test-utils/selectors/top-navigation/index.js +73 -108
- package/test-utils/selectors/top-navigation/index.js.map +1 -1
- package/test-utils/selectors/tutorial-panel/index.js +38 -63
- package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
- package/test-utils/selectors/tutorial-panel/tutorial.js +29 -49
- package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
- package/test-utils/selectors/wizard/index.js +33 -53
- package/test-utils/selectors/wizard/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -1,154 +1,136 @@
|
|
|
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
|
-
};
|
|
40
|
-
TableWrapper.prototype.findActiveTHead = function () {
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../table/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_2 = require("../../../table/header-cell/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_3 = require("../../../table/body-cell/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_4 = require("../../../table/selection-control/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_5 = require("../../../table/resizer/styles.selectors.js");
|
|
11
|
+
const collection_preferences_1 = require("../collection-preferences");
|
|
12
|
+
const container_1 = require("../container");
|
|
13
|
+
const pagination_1 = require("../pagination");
|
|
14
|
+
const text_filter_1 = require("../text-filter");
|
|
15
|
+
class TableWrapper extends dom_1.ComponentWrapper {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.containerWrapper = new container_1.default(this.getElement());
|
|
19
|
+
}
|
|
20
|
+
findNativeTable() {
|
|
21
|
+
return this.find(`.${styles_selectors_js_1.default.wrapper} > .${styles_selectors_js_1.default.table}`);
|
|
22
|
+
}
|
|
23
|
+
findActiveTHead() {
|
|
41
24
|
return this.findByClassName(styles_selectors_js_1.default['thead-active']);
|
|
42
|
-
}
|
|
43
|
-
|
|
25
|
+
}
|
|
26
|
+
findHeaderSlot() {
|
|
44
27
|
return this.findByClassName(styles_selectors_js_1.default['header-controls']);
|
|
45
|
-
}
|
|
28
|
+
}
|
|
46
29
|
/**
|
|
47
30
|
* Alias for findHeader method for compatibility with previous versions
|
|
48
31
|
* @deprecated
|
|
49
32
|
*/
|
|
50
|
-
|
|
33
|
+
findHeaderRegion() {
|
|
51
34
|
return this.findHeaderSlot();
|
|
52
|
-
}
|
|
53
|
-
|
|
35
|
+
}
|
|
36
|
+
findFooterSlot() {
|
|
54
37
|
return this.containerWrapper.findFooter();
|
|
55
|
-
}
|
|
56
|
-
|
|
38
|
+
}
|
|
39
|
+
findColumnHeaders() {
|
|
57
40
|
return this.findActiveTHead().findAll('tr > *');
|
|
58
|
-
}
|
|
41
|
+
}
|
|
59
42
|
/**
|
|
60
43
|
* Returns the element the user clicks when resizing a column.
|
|
61
44
|
*
|
|
62
45
|
* @param columnIndex 1-based index of the column containing the resizer.
|
|
63
46
|
*/
|
|
64
|
-
|
|
65
|
-
return this.findActiveTHead().find(
|
|
66
|
-
}
|
|
47
|
+
findColumnResizer(columnIndex) {
|
|
48
|
+
return this.findActiveTHead().find(`th:nth-child(${columnIndex}) .${styles_selectors_js_5.default.resizer}`);
|
|
49
|
+
}
|
|
67
50
|
/**
|
|
68
51
|
* Returns a table cell based on given row and column indices.
|
|
69
52
|
*
|
|
70
53
|
* @param rowIndex 1-based index of the row of the cell to select.
|
|
71
54
|
* @param columnIndex 1-based index of the column of the cell to select.
|
|
72
55
|
*/
|
|
73
|
-
|
|
74
|
-
return this.findNativeTable().find(
|
|
75
|
-
}
|
|
76
|
-
|
|
56
|
+
findBodyCell(rowIndex, columnIndex) {
|
|
57
|
+
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) td:nth-child(${columnIndex})`);
|
|
58
|
+
}
|
|
59
|
+
findRows() {
|
|
77
60
|
return this.findNativeTable().findAllByClassName(styles_selectors_js_1.default.row);
|
|
78
|
-
}
|
|
79
|
-
|
|
61
|
+
}
|
|
62
|
+
findSelectedRows() {
|
|
80
63
|
return this.findAllByClassName(styles_selectors_js_1.default['row-selected']);
|
|
81
|
-
}
|
|
64
|
+
}
|
|
82
65
|
/**
|
|
83
66
|
* Alias for findEmptySlot method for compatibility with previous versions
|
|
84
67
|
* @deprecated
|
|
85
68
|
*/
|
|
86
|
-
|
|
69
|
+
findEmptyRegion() {
|
|
87
70
|
return this.findEmptySlot();
|
|
88
|
-
}
|
|
89
|
-
|
|
71
|
+
}
|
|
72
|
+
findEmptySlot() {
|
|
90
73
|
return this.findByClassName(styles_selectors_js_1.default.empty);
|
|
91
|
-
}
|
|
92
|
-
|
|
74
|
+
}
|
|
75
|
+
findLoadingText() {
|
|
93
76
|
return this.findByClassName(styles_selectors_js_1.default.loading);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return this.findActiveTHead().find(
|
|
97
|
-
}
|
|
77
|
+
}
|
|
78
|
+
findColumnSortingArea(colIndex) {
|
|
79
|
+
return this.findActiveTHead().find(`tr > *:nth-child(${colIndex}) [role=button]`);
|
|
80
|
+
}
|
|
98
81
|
/**
|
|
99
82
|
* Returns the column that is used for ascending sorting.
|
|
100
83
|
*/
|
|
101
|
-
|
|
84
|
+
findAscSortedColumn() {
|
|
102
85
|
return this.findNativeTable().findByClassName(styles_selectors_js_2.default['header-cell-ascending']);
|
|
103
|
-
}
|
|
86
|
+
}
|
|
104
87
|
/**
|
|
105
88
|
* Returns the column that is used for descending sorting.
|
|
106
89
|
*/
|
|
107
|
-
|
|
90
|
+
findDescSortedColumn() {
|
|
108
91
|
return this.findNativeTable().findByClassName(styles_selectors_js_2.default['header-cell-descending']);
|
|
109
|
-
}
|
|
92
|
+
}
|
|
110
93
|
/**
|
|
111
94
|
* Returns a row selection area for a given index.
|
|
112
95
|
*
|
|
113
96
|
* @param rowIndex 1-based index of the row selection area to return.
|
|
114
97
|
*/
|
|
115
|
-
|
|
116
|
-
return this.findNativeTable().find(
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return this.findActiveTHead().find(
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return this.findComponent(
|
|
123
|
-
}
|
|
98
|
+
findRowSelectionArea(rowIndex) {
|
|
99
|
+
return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${styles_selectors_js_4.default.root}`);
|
|
100
|
+
}
|
|
101
|
+
findSelectAllTrigger() {
|
|
102
|
+
return this.findActiveTHead().find(`.${styles_selectors_js_4.default.root}`);
|
|
103
|
+
}
|
|
104
|
+
findTextFilter() {
|
|
105
|
+
return this.findComponent(`.${styles_selectors_js_1.default['tools-filtering']}`, text_filter_1.default);
|
|
106
|
+
}
|
|
124
107
|
//
|
|
125
108
|
// findPropertyFiltering(): TablePropertyFilteringWrapper {
|
|
126
109
|
// return new TablePropertyFilteringWrapper(this.find('awsui-table-property-filtering').getElement());
|
|
127
110
|
// }
|
|
128
111
|
//
|
|
129
|
-
|
|
130
|
-
return this.findComponent(
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return this.findComponent(
|
|
134
|
-
}
|
|
135
|
-
|
|
112
|
+
findCollectionPreferences() {
|
|
113
|
+
return this.findComponent(`.${styles_selectors_js_1.default['tools-preferences']}`, collection_preferences_1.default);
|
|
114
|
+
}
|
|
115
|
+
findPagination() {
|
|
116
|
+
return this.findComponent(`.${styles_selectors_js_1.default['tools-pagination']}`, pagination_1.default);
|
|
117
|
+
}
|
|
118
|
+
findEditingCell() {
|
|
136
119
|
return this.findNativeTable().findByClassName(styles_selectors_js_3.default['body-cell-edit-active']);
|
|
137
|
-
}
|
|
138
|
-
|
|
120
|
+
}
|
|
121
|
+
_findEditingCellControls() {
|
|
139
122
|
var _a, _b;
|
|
140
123
|
return (_b = (_a = this.findEditingCell()) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_3.default['body-cell-editor-controls'])) !== null && _b !== void 0 ? _b : null;
|
|
141
|
-
}
|
|
142
|
-
|
|
124
|
+
}
|
|
125
|
+
findEditingCellSaveButton() {
|
|
143
126
|
var _a, _b;
|
|
144
127
|
return (_b = (_a = this._findEditingCellControls()) === null || _a === void 0 ? void 0 : _a.find('button[type="submit"]')) !== null && _b !== void 0 ? _b : null;
|
|
145
|
-
}
|
|
146
|
-
|
|
128
|
+
}
|
|
129
|
+
findEditingCellCancelButton() {
|
|
147
130
|
var _a, _b;
|
|
148
131
|
return (_b = (_a = this._findEditingCellControls()) === null || _a === void 0 ? void 0 : _a.find('button:first-child')) !== null && _b !== void 0 ? _b : null;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return TableWrapper;
|
|
152
|
-
}(dom_1.ComponentWrapper));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
153
134
|
exports.default = TableWrapper;
|
|
135
|
+
TableWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
154
136
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/table/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/table/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,65 +1,45 @@
|
|
|
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
|
-
__extends(TabsWrapper, _super);
|
|
24
|
-
function TabsWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../tabs/styles.selectors.js");
|
|
7
|
+
class TabsWrapper extends dom_1.ComponentWrapper {
|
|
27
8
|
/**
|
|
28
9
|
* Finds all tab headers and returns the clickable elements from their labels.
|
|
29
10
|
*/
|
|
30
|
-
|
|
11
|
+
findTabLinks() {
|
|
31
12
|
return this.findAllByClassName(styles_selectors_js_1.default['tabs-tab-link']);
|
|
32
|
-
}
|
|
13
|
+
}
|
|
33
14
|
/**
|
|
34
15
|
* Finds the tab at the given position (1-based) and returns the clickable element from its tab label.
|
|
35
16
|
*
|
|
36
17
|
* @param index 1-based index of the clickable element to return
|
|
37
18
|
*/
|
|
38
|
-
|
|
39
|
-
return this.find(
|
|
40
|
-
}
|
|
19
|
+
findTabLinkByIndex(index) {
|
|
20
|
+
return this.find(`.${styles_selectors_js_1.default['tabs-tab']}:nth-child(${index}) .${styles_selectors_js_1.default['tabs-tab-link']}`);
|
|
21
|
+
}
|
|
41
22
|
/**
|
|
42
23
|
* Finds the tab with the given ID and returns the clickable element from its tab label.
|
|
43
24
|
*
|
|
44
25
|
* @param index ID of the clickable element to return
|
|
45
26
|
*/
|
|
46
|
-
|
|
47
|
-
return this.find(
|
|
48
|
-
}
|
|
27
|
+
findTabLinkById(id) {
|
|
28
|
+
return this.find(`.${styles_selectors_js_1.default['tabs-tab-link']}[data-testid="${id}"]`);
|
|
29
|
+
}
|
|
49
30
|
/**
|
|
50
31
|
* Finds the currently active tab and returns the clickable element from its tab label.
|
|
51
32
|
*/
|
|
52
|
-
|
|
53
|
-
return this.find(
|
|
54
|
-
}
|
|
33
|
+
findActiveTab() {
|
|
34
|
+
return this.find(`.${styles_selectors_js_1.default['tabs-tab-active']}`);
|
|
35
|
+
}
|
|
55
36
|
/**
|
|
56
37
|
* Finds the currently displayed tab content and returns it.
|
|
57
38
|
*/
|
|
58
|
-
|
|
59
|
-
return this.find(
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return TabsWrapper;
|
|
63
|
-
}(dom_1.ComponentWrapper));
|
|
39
|
+
findTabContent() {
|
|
40
|
+
return this.find(`.${styles_selectors_js_1.default['tabs-content-active']}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
64
43
|
exports.default = TabsWrapper;
|
|
44
|
+
TabsWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
65
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tabs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tabs/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,2EAAuD;AAEvD,MAAqB,WAAY,SAAQ,sBAAmC;IAG1E;;OAEG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,KAAa;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,UAAU,CAAC,cAAc,KAAK,MAAM,6BAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,EAAU;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,eAAe,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,6BAAM,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IACxD,CAAC;;AAxCH,8BAyCC;AAxCQ,wBAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,63 +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
|
exports.TagEditorRowWrapper = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4
|
+
const styles_selectors_js_1 = require("../../../tag-editor/styles.selectors.js");
|
|
5
|
+
const styles_selectors_js_2 = require("../../../attribute-editor/styles.selectors.js");
|
|
6
|
+
const link_1 = require("../link");
|
|
7
|
+
const attribute_editor_1 = require("../attribute-editor");
|
|
8
|
+
class TagEditorRowWrapper extends attribute_editor_1.AttributeEditorRowWrapper {
|
|
9
|
+
findUndoButton() {
|
|
10
|
+
return this.findComponent(`.${styles_selectors_js_1.default['undo-button']}`, link_1.default);
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
return this.findComponent(".".concat(styles_selectors_js_1.default['undo-button']), link_1.default);
|
|
30
|
-
};
|
|
31
|
-
return TagEditorRowWrapper;
|
|
32
|
-
}(attribute_editor_1.AttributeEditorRowWrapper));
|
|
12
|
+
}
|
|
33
13
|
exports.TagEditorRowWrapper = TagEditorRowWrapper;
|
|
34
|
-
|
|
35
|
-
__extends(TagEditorWrapper, _super);
|
|
36
|
-
function TagEditorWrapper() {
|
|
37
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
-
}
|
|
14
|
+
class TagEditorWrapper extends attribute_editor_1.default {
|
|
39
15
|
/**
|
|
40
16
|
* Returns a row for a given index.
|
|
41
17
|
*
|
|
42
18
|
* @param row 1-based row index
|
|
43
19
|
*/
|
|
44
|
-
|
|
45
|
-
return this.findComponent(
|
|
46
|
-
}
|
|
20
|
+
findRow(row) {
|
|
21
|
+
return this.findComponent(`.${styles_selectors_js_2.default.row}:nth-child(${row})`, TagEditorRowWrapper);
|
|
22
|
+
}
|
|
47
23
|
/**
|
|
48
24
|
* Returns all rows.
|
|
49
25
|
*
|
|
50
26
|
* To find a specific row use the `findRow(n)` function as chaining `findRows().get(n)` can return unexpected results.
|
|
51
27
|
* @see findRow
|
|
52
28
|
*/
|
|
53
|
-
|
|
54
|
-
return this.findAllByClassName(styles_selectors_js_2.default.row).map(
|
|
55
|
-
}
|
|
56
|
-
|
|
29
|
+
findRows() {
|
|
30
|
+
return this.findAllByClassName(styles_selectors_js_2.default.row).map(i => new TagEditorRowWrapper(i.getElement()));
|
|
31
|
+
}
|
|
32
|
+
findLoadingText() {
|
|
57
33
|
return this.findByClassName(styles_selectors_js_1.default.loading);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return TagEditorWrapper;
|
|
61
|
-
}(attribute_editor_1.default));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
62
36
|
exports.default = TagEditorWrapper;
|
|
37
|
+
TagEditorWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
63
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tag-editor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/tag-editor/index.ts"],"names":[],"mappings":";;;AAGA,iFAA6D;AAC7D,uFAAkF;AAClF,kCAAkC;AAClC,0DAAwF;AAExF,MAAa,mBAAoB,SAAQ,4CAAyB;IAChE,cAAc;QACZ,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,aAAa,CAAC,EAAE,EAAE,cAAW,CAAC,CAAC;IACtE,CAAC;CACF;AAJD,kDAIC;AAED,MAAqB,gBAAiB,SAAQ,0BAAsB;IAGlE;;;;OAIG;IACH,OAAO,CAAC,GAAW;QACjB,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAqB,CAAC,GAAG,cAAc,GAAG,GAAG,EAAE,mBAAmB,CAAC,CAAC;IACpG,CAAC;IAED;;;;;OAKG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC9G,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;;AAxBH,mCAyBC;AAxBQ,6BAAY,GAAW,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function TextContentWrapper() {
|
|
25
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
}
|
|
27
|
-
TextContentWrapper.rootSelector = styles_selectors_js_1.default['text-content'];
|
|
28
|
-
return TextContentWrapper;
|
|
29
|
-
}(dom_1.ComponentWrapper));
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../text-content/styles.selectors.js");
|
|
7
|
+
class TextContentWrapper extends dom_1.ComponentWrapper {
|
|
8
|
+
}
|
|
30
9
|
exports.default = TextContentWrapper;
|
|
10
|
+
TextContentWrapper.rootSelector = styles_selectors_js_1.default['text-content'];
|
|
31
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/text-content/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/text-content/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0E;AAC1E,mFAA+D;AAE/D,MAAqB,kBAAmB,SAAQ,sBAAiC;;AAAjF,qCAEC;AADQ,+BAAY,GAAW,6BAAM,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,38 +1,18 @@
|
|
|
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
|
-
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("../../../text-filter/styles.selectors.js");
|
|
7
|
+
const input_1 = require("../input");
|
|
8
|
+
class TextFilterWrapper extends dom_1.ComponentWrapper {
|
|
9
|
+
findInput() {
|
|
10
|
+
return this.findComponent(`.${styles_selectors_js_1.default.input}`, input_1.default);
|
|
27
11
|
}
|
|
28
|
-
|
|
29
|
-
return this.findComponent(".".concat(styles_selectors_js_1.default.input), input_1.default);
|
|
30
|
-
};
|
|
31
|
-
TextFilterWrapper.prototype.findResultsCount = function () {
|
|
12
|
+
findResultsCount() {
|
|
32
13
|
return this.findByClassName(styles_selectors_js_1.default.results);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return TextFilterWrapper;
|
|
36
|
-
}(dom_1.ComponentWrapper));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
37
16
|
exports.default = TextFilterWrapper;
|
|
17
|
+
TextFilterWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
38
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/text-filter/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/text-filter/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,kFAA8D;AAC9D,oCAAoC;AAEpC,MAAqB,iBAAkB,SAAQ,sBAAgB;IAG7D,SAAS;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAM,CAAC,KAAK,EAAE,EAAE,eAAY,CAAE,CAAC;IAC/D,CAAC;IAED,gBAAgB;QACd,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,OAAO,CAAE,CAAC;IAC/C,CAAC;;AATH,oCAUC;AATQ,8BAAY,GAAG,6BAAM,CAAC,IAAI,CAAC"}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,33 +8,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
9
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
25
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
+
const test_utils_1 = require("react-dom/test-utils");
|
|
12
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
13
|
+
const styles_selectors_js_1 = require("../../../textarea/styles.selectors.js");
|
|
14
|
+
class TextareaWrapper extends dom_1.ComponentWrapper {
|
|
15
|
+
findNativeTextarea() {
|
|
16
|
+
return this.find(`.${styles_selectors_js_1.default.textarea}`);
|
|
33
17
|
}
|
|
34
|
-
TextareaWrapper.prototype.findNativeTextarea = function () {
|
|
35
|
-
return this.find(".".concat(styles_selectors_js_1.default.textarea));
|
|
36
|
-
};
|
|
37
18
|
/**
|
|
38
19
|
* Sets the value of the component and calls the onChange handler.
|
|
39
20
|
*
|
|
40
21
|
* @param value value to set the textarea to.
|
|
41
22
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
(0, test_utils_1.act)(
|
|
45
|
-
test_utils_1.Simulate.change(element, { target: { value
|
|
23
|
+
setTextareaValue(value) {
|
|
24
|
+
const element = this.findNativeTextarea().getElement();
|
|
25
|
+
(0, test_utils_1.act)(() => {
|
|
26
|
+
test_utils_1.Simulate.change(element, { target: { value } });
|
|
46
27
|
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}(dom_1.ComponentWrapper));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
TextareaWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
31
|
+
__decorate([
|
|
32
|
+
dom_1.usesDom
|
|
33
|
+
], TextareaWrapper.prototype, "setTextareaValue", null);
|
|
54
34
|
exports.default = TextareaWrapper;
|
|
55
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/textarea/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/textarea/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,qDAAqD;AACrD,gEAAmG;AACnG,+EAA8D;AAE9D,MAAqB,eAAgB,SAAQ,sBAAqC;IAGhF,kBAAkB;QAChB,OAAO,IAAI,CAAC,IAAI,CAAsB,IAAI,6BAAS,CAAC,QAAQ,EAAE,CAAE,CAAC;IACnE,CAAC;IAED;;;;OAIG;IACM,gBAAgB,CAAC,KAAa;QACrC,MAAM,OAAO,GAAwB,IAAI,CAAC,kBAAkB,EAAE,CAAC,UAAU,EAAE,CAAC;QAC5E,IAAA,gBAAG,EAAC,GAAG,EAAE;YACP,qBAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAA4B,EAAE,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;IACL,CAAC;;AAhBM,4BAAY,GAAW,6BAAS,CAAC,IAAI,CAAC;AAWpC;IAAR,aAAO;uDAKP;AAjBH,kCAkBC"}
|