@cloudscape-design/components-themeable 3.0.1390 → 3.0.1392
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/box/visual-accent.scss +0 -24
- package/lib/internal/scss/button/constants.scss +15 -0
- package/lib/internal/scss/button/styles.scss +21 -1
- package/lib/internal/scss/input/styles.scss +15 -29
- package/lib/internal/scss/internal/components/autosuggest-input/styles.scss +138 -0
- package/lib/internal/scss/internal/components/autosuggest-input/test-classes/styles.scss +19 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +20 -1
- package/lib/internal/scss/internal/components/control-group/styles.scss +39 -15
- package/lib/internal/scss/internal/components/control-group/test-classes/styles.scss +16 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/forms/grouped-control.scss +65 -0
- package/lib/internal/scss/internal/styles/forms/index.scss +1 -0
- package/lib/internal/scss/internal/styles/forms/mixins.scss +41 -43
- package/lib/internal/scss/internal/styles/utils/mixins.scss +10 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +3 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/autosuggest/i18n-utils.d.ts +12 -0
- package/lib/internal/template/autosuggest/i18n-utils.d.ts.map +1 -0
- package/lib/internal/template/autosuggest/i18n-utils.js +15 -0
- package/lib/internal/template/autosuggest/i18n-utils.js.map +1 -0
- package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/index.js +3 -0
- package/lib/internal/template/autosuggest/index.js.map +1 -1
- package/lib/internal/template/autosuggest/interfaces.d.ts +94 -1
- package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +21 -12
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/options-controller.d.ts +2 -1
- package/lib/internal/template/autosuggest/options-controller.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/options-controller.js +3 -6
- package/lib/internal/template/autosuggest/options-controller.js.map +1 -1
- package/lib/internal/template/box/interfaces.d.ts +4 -1
- package/lib/internal/template/box/interfaces.d.ts.map +1 -1
- package/lib/internal/template/box/interfaces.js.map +1 -1
- package/lib/internal/template/box/styles.css.js +214 -220
- package/lib/internal/template/box/styles.scoped.css +259 -289
- package/lib/internal/template/box/styles.selectors.js +214 -220
- package/lib/internal/template/button/internal.d.ts +2 -2
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +9 -1
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button/styles.css.js +24 -23
- package/lib/internal/template/button/styles.scoped.css +116 -70
- package/lib/internal/template/button/styles.selectors.js +24 -23
- package/lib/internal/template/button-dropdown/filter.d.ts +1 -1
- package/lib/internal/template/button-dropdown/filter.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/i18n/messages-types.d.ts +13 -0
- package/lib/internal/template/i18n/messages-types.d.ts.map +1 -1
- package/lib/internal/template/i18n/messages-types.js.map +1 -1
- package/lib/internal/template/input/internal.d.ts +1 -0
- package/lib/internal/template/input/internal.d.ts.map +1 -1
- package/lib/internal/template/input/internal.js +2 -2
- package/lib/internal/template/input/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +38 -36
- package/lib/internal/template/input/styles.scoped.css +89 -76
- package/lib/internal/template/input/styles.selectors.js +38 -36
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +0 -61
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +154 -11
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts +21 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js +95 -0
- package/lib/internal/template/internal/components/autosuggest-input/inline-tokens.js.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts +16 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js +94 -0
- package/lib/internal/template/internal/components/autosuggest-input/overflow-dropdown.js.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/styles.css.js +27 -2
- package/lib/internal/template/internal/components/autosuggest-input/styles.scoped.css +195 -2
- package/lib/internal/template/internal/components/autosuggest-input/styles.selectors.js +27 -2
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.css.js +9 -0
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.scoped.css +19 -0
- package/lib/internal/template/internal/components/autosuggest-input/test-classes/styles.selectors.js +10 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts +21 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.d.ts.map +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js +63 -0
- package/lib/internal/template/internal/components/autosuggest-input/use-token-overflow.js.map +1 -0
- package/lib/internal/template/internal/components/button-trigger/index.d.ts +4 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +5 -3
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +23 -21
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +79 -36
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +23 -21
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts +1 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js +3 -2
- package/lib/internal/template/internal/components/control-group/grouped-control-styles.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/index.d.ts +3 -9
- package/lib/internal/template/internal/components/control-group/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/control-group/index.js +16 -10
- package/lib/internal/template/internal/components/control-group/index.js.map +1 -1
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts +43 -0
- package/lib/internal/template/internal/components/control-group/interfaces.d.ts.map +1 -0
- package/lib/internal/template/internal/components/control-group/interfaces.js +2 -0
- package/lib/internal/template/internal/components/control-group/interfaces.js.map +1 -0
- package/lib/internal/template/internal/components/control-group/styles.css.js +16 -11
- package/lib/internal/template/internal/components/control-group/styles.scoped.css +34 -14
- package/lib/internal/template/internal/components/control-group/styles.selectors.js +16 -11
- package/lib/internal/template/internal/components/control-group/test-classes/styles.css.js +8 -0
- package/lib/internal/template/internal/components/control-group/test-classes/styles.scoped.css +15 -0
- package/lib/internal/template/internal/components/control-group/test-classes/styles.selectors.js +9 -0
- package/lib/internal/template/internal/context/control-group-context.d.ts +5 -0
- package/lib/internal/template/internal/context/control-group-context.d.ts.map +1 -1
- package/lib/internal/template/internal/context/control-group-context.js +1 -0
- package/lib/internal/template/internal/context/control-group-context.js.map +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/segmented-control/styles.css.js +27 -26
- package/lib/internal/template/segmented-control/styles.scoped.css +51 -47
- package/lib/internal/template/segmented-control/styles.selectors.js +27 -26
- package/lib/internal/template/select/parts/filter.d.ts +1 -1
- package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
- package/lib/internal/template/test-utils/dom/autosuggest/index.d.ts +39 -0
- package/lib/internal/template/test-utils/dom/autosuggest/index.js +68 -16
- package/lib/internal/template/test-utils/dom/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/internal/control-group.d.ts +5 -0
- package/lib/internal/template/test-utils/dom/internal/control-group.js +9 -2
- package/lib/internal/template/test-utils/dom/internal/control-group.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/autosuggest/index.d.ts +53 -0
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js +84 -16
- package/lib/internal/template/test-utils/selectors/autosuggest/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/control-group.d.ts +5 -0
- package/lib/internal/template/test-utils/selectors/internal/control-group.js +9 -2
- package/lib/internal/template/test-utils/selectors/internal/control-group.js.map +1 -1
- package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
- package/lib/internal/template/token/dismiss-button.js +6 -3
- package/lib/internal/template/token/dismiss-button.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
14
14
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
15
15
|
SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
*/
|
|
17
|
-
.
|
|
17
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9) {
|
|
18
18
|
font-size: var(--font-size-body-m-tq5a14, 14px);
|
|
19
19
|
line-height: var(--line-height-body-m-5xw6xo, 22px);
|
|
20
20
|
word-wrap: break-word;
|
|
@@ -41,27 +41,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
41
41
|
border-block: none;
|
|
42
42
|
--awsui-style-focus-ring-box-shadow-ka4djm: 0 0 0 var(--awsui-style-focus-ring-border-width-ka4djm, 2px) var(--awsui-style-focus-ring-border-color-ka4djm, var(--color-border-item-focused-sewkzn, #0073bb));
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.awsui_segment_8cbea_1ai8f_17.awsui_full-width_8cbea_1ai8f_44:not(#\9) {
|
|
45
45
|
justify-content: center;
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47) {
|
|
48
48
|
block-size: calc(100% - var(--space-static-xxs-vzto3j, 4px) - 2 * var(--border-width-field-2365x3, 1px));
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
|
|
51
51
|
outline: none;
|
|
52
52
|
}
|
|
53
|
-
.
|
|
53
|
+
.awsui_segment_8cbea_1ai8f_17.awsui_disabled_8cbea_1ai8f_53:not(#\9) {
|
|
54
54
|
background: var(--awsui-style-background-disabled-ka4djm, var(--color-background-segment-disabled-mjubn7, #ffffff));
|
|
55
55
|
color: var(--awsui-style-color-disabled-ka4djm, var(--color-text-interactive-disabled-tuxgxq, #aab7b8));
|
|
56
56
|
}
|
|
57
|
-
body[data-awsui-focus-visible=true] .
|
|
57
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
|
-
body[data-awsui-focus-visible=true] .
|
|
60
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus {
|
|
61
61
|
outline: 2px dotted transparent;
|
|
62
62
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-sz9jgo, 3px) - 1px);
|
|
63
63
|
}
|
|
64
|
-
body[data-awsui-focus-visible=true] .
|
|
64
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1ai8f_17:not(#\9):focus::before {
|
|
65
65
|
content: " ";
|
|
66
66
|
display: block;
|
|
67
67
|
position: absolute;
|
|
@@ -76,7 +76,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_q3zoc_17:not(#\9):focus
|
|
|
76
76
|
box-shadow: var(--awsui-style-focus-ring-box-shadow-ka4djm);
|
|
77
77
|
z-index: 1;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):not(:last-child)::after {
|
|
80
80
|
content: "";
|
|
81
81
|
position: absolute;
|
|
82
82
|
inset-inline-end: calc(-1 * (var(--space-static-xxs-vzto3j, 4px) + 1px));
|
|
@@ -86,54 +86,54 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_q3zoc_17:not(#\9):focus
|
|
|
86
86
|
background: var(--color-border-segment-divider-mq01bu, #687078);
|
|
87
87
|
z-index: 1;
|
|
88
88
|
}
|
|
89
|
-
.
|
|
89
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47):not(:last-child)::after {
|
|
90
90
|
inset-inline-end: calc(-1 * var(--space-static-xxs-vzto3j, 4px));
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(1) {
|
|
93
93
|
grid-column: 1;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(2) {
|
|
96
96
|
grid-column: 2;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(3) {
|
|
99
99
|
grid-column: 3;
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(4) {
|
|
102
102
|
grid-column: 4;
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(5) {
|
|
105
105
|
grid-column: 5;
|
|
106
106
|
}
|
|
107
|
-
.
|
|
107
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):nth-child(6) {
|
|
108
108
|
grid-column: 6;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.awsui_segment_8cbea_1ai8f_17.awsui_selected_8cbea_1ai8f_110:not(#\9) {
|
|
111
111
|
background: var(--awsui-style-background-active-ka4djm, var(--color-background-segment-active-ns5rt6, #0073bb));
|
|
112
112
|
color: var(--awsui-style-color-active-ka4djm, var(--color-text-segment-active-hbbf1h, #ffffff));
|
|
113
113
|
box-shadow: inset 0 0 0 var(--awsui-internal-style-segment-selected-border-width, 0) var(--color-border-segment-active-y8x5lr, #16191f);
|
|
114
114
|
}
|
|
115
|
-
.
|
|
115
|
+
.awsui_segment_8cbea_1ai8f_17:not(#\9):hover:not(.awsui_selected_8cbea_1ai8f_110):not(.awsui_disabled_8cbea_1ai8f_53):not(:focus) {
|
|
116
116
|
background: var(--awsui-style-background-hover-ka4djm, var(--color-background-segment-hover-el4hte, #fafafa));
|
|
117
117
|
color: var(--awsui-style-color-hover-ka4djm, var(--color-text-segment-hover-qq2b2e, #16191f));
|
|
118
118
|
cursor: pointer;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
.awsui_icon_8cbea_1ai8f_121:not(#\9) {
|
|
122
122
|
/* used in test-utils */
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.awsui_with-
|
|
125
|
+
.awsui_with-text_8cbea_1ai8f_125:not(#\9) {
|
|
126
126
|
position: relative;
|
|
127
127
|
inset-inline-start: calc(-1 * var(--space-xxs-3o1yoq, 4px));
|
|
128
128
|
margin-inline-end: var(--space-xxs-3o1yoq, 4px);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.awsui_with-no-
|
|
131
|
+
.awsui_with-no-text_8cbea_1ai8f_131:not(#\9) {
|
|
132
132
|
margin-inline: auto;
|
|
133
133
|
inset-inline: 0;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.
|
|
136
|
+
.awsui_root_8cbea_1ai8f_136:not(#\9) {
|
|
137
137
|
border-collapse: separate;
|
|
138
138
|
border-spacing: 0;
|
|
139
139
|
box-sizing: border-box;
|
|
@@ -165,7 +165,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_q3zoc_17:not(#\9):focus
|
|
|
165
165
|
-moz-osx-font-smoothing: auto;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.awsui_segment-
|
|
168
|
+
.awsui_segment-part_8cbea_1ai8f_168:not(#\9) {
|
|
169
169
|
display: inline-grid;
|
|
170
170
|
border-inline: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
|
|
171
171
|
border-block: solid var(--border-width-field-2365x3, 1px) var(--color-border-segment-wrapper-ofstpm, #687078);
|
|
@@ -180,103 +180,107 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_q3zoc_17:not(#\9):focus
|
|
|
180
180
|
padding-inline: calc(var(--space-static-xxs-vzto3j, 4px) - var(--border-width-field-2365x3, 1px));
|
|
181
181
|
gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 + 1px);
|
|
182
182
|
}
|
|
183
|
-
.awsui_segment-
|
|
183
|
+
.awsui_segment-part_8cbea_1ai8f_168:not(#\9):not(.awsui_refresh_8cbea_1ai8f_47) {
|
|
184
184
|
padding-inline: calc(var(--space-static-xxxs-opeihl, 2px) + var(--border-width-field-2365x3, 1px));
|
|
185
185
|
padding-block: 0;
|
|
186
186
|
gap: calc(var(--space-static-xxs-vzto3j, 4px) * 2 - 1px);
|
|
187
187
|
}
|
|
188
188
|
@media (max-width: 688px) {
|
|
189
|
-
.awsui_segment-
|
|
189
|
+
.awsui_segment-part_8cbea_1ai8f_168:not(#\9):not(.awsui_grouped_8cbea_1ai8f_189), .awsui_segment-part_8cbea_1ai8f_168.awsui_grouped-only_8cbea_1ai8f_189:not(#\9) {
|
|
190
190
|
display: none;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
.awsui_segment-
|
|
193
|
+
.awsui_segment-part_8cbea_1ai8f_168.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
194
194
|
inline-size: 100%;
|
|
195
195
|
box-sizing: border-box;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
.
|
|
198
|
+
.awsui_grouped_8cbea_1ai8f_189:not(#\9) {
|
|
199
199
|
border-start-start-radius: var(--border-radius-input-k1q34z, 2px);
|
|
200
200
|
border-start-end-radius: var(--border-radius-input-k1q34z, 2px);
|
|
201
201
|
border-end-start-radius: var(--border-radius-input-k1q34z, 2px);
|
|
202
202
|
border-end-end-radius: var(--border-radius-input-k1q34z, 2px);
|
|
203
203
|
}
|
|
204
|
-
.awsui_grouped-horizontal-
|
|
204
|
+
.awsui_grouped-horizontal-first_8cbea_1ai8f_204:not(#\9) {
|
|
205
205
|
border-start-end-radius: 0;
|
|
206
206
|
border-end-end-radius: 0;
|
|
207
207
|
}
|
|
208
|
-
.awsui_grouped-horizontal-
|
|
208
|
+
.awsui_grouped-horizontal-middle_8cbea_1ai8f_208:not(#\9) {
|
|
209
209
|
border-start-start-radius: 0;
|
|
210
210
|
border-start-end-radius: 0;
|
|
211
211
|
border-end-start-radius: 0;
|
|
212
212
|
border-end-end-radius: 0;
|
|
213
213
|
}
|
|
214
|
-
.awsui_grouped-horizontal-
|
|
214
|
+
.awsui_grouped-horizontal-last_8cbea_1ai8f_214:not(#\9) {
|
|
215
215
|
border-start-start-radius: 0;
|
|
216
216
|
border-end-start-radius: 0;
|
|
217
217
|
}
|
|
218
|
-
.awsui_grouped-vertical-
|
|
218
|
+
.awsui_grouped-vertical-first_8cbea_1ai8f_218:not(#\9) {
|
|
219
219
|
border-end-start-radius: 0;
|
|
220
220
|
border-end-end-radius: 0;
|
|
221
221
|
}
|
|
222
|
-
.awsui_grouped-vertical-
|
|
222
|
+
.awsui_grouped-vertical-middle_8cbea_1ai8f_222:not(#\9) {
|
|
223
223
|
border-start-start-radius: 0;
|
|
224
224
|
border-start-end-radius: 0;
|
|
225
225
|
border-end-start-radius: 0;
|
|
226
226
|
border-end-end-radius: 0;
|
|
227
227
|
}
|
|
228
|
-
.awsui_grouped-vertical-
|
|
228
|
+
.awsui_grouped-vertical-last_8cbea_1ai8f_228:not(#\9) {
|
|
229
229
|
border-start-start-radius: 0;
|
|
230
230
|
border-start-end-radius: 0;
|
|
231
231
|
}
|
|
232
|
-
.
|
|
232
|
+
.awsui_grouped-with-action_8cbea_1ai8f_232:not(#\9) {
|
|
233
|
+
border-start-end-radius: 0;
|
|
234
|
+
border-end-end-radius: 0;
|
|
235
|
+
}
|
|
236
|
+
.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-horizontal-middle_8cbea_1ai8f_208:not(#\9), .awsui_grouped_8cbea_1ai8f_189.awsui_grouped-horizontal-last_8cbea_1ai8f_214:not(#\9) {
|
|
233
237
|
border-inline-start: none;
|
|
234
238
|
}
|
|
235
239
|
|
|
236
|
-
.
|
|
240
|
+
.awsui_select_8cbea_1ai8f_110:not(#\9) {
|
|
237
241
|
display: none;
|
|
238
242
|
}
|
|
239
243
|
@media (max-width: 688px) {
|
|
240
|
-
.
|
|
244
|
+
.awsui_select_8cbea_1ai8f_110:not(#\9):not(.awsui_grouped_8cbea_1ai8f_189), .awsui_select_8cbea_1ai8f_110.awsui_grouped-only_8cbea_1ai8f_189:not(#\9) {
|
|
241
245
|
display: block;
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
|
|
245
|
-
.awsui_segment-count-
|
|
249
|
+
.awsui_segment-count-2_8cbea_1ai8f_249:not(#\9) {
|
|
246
250
|
grid-template-columns: repeat(2, auto);
|
|
247
251
|
}
|
|
248
|
-
.awsui_segment-count-
|
|
252
|
+
.awsui_segment-count-2_8cbea_1ai8f_249.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
249
253
|
grid-template-columns: repeat(2, 1fr);
|
|
250
254
|
}
|
|
251
255
|
|
|
252
|
-
.awsui_segment-count-
|
|
256
|
+
.awsui_segment-count-3_8cbea_1ai8f_256:not(#\9) {
|
|
253
257
|
grid-template-columns: repeat(3, auto);
|
|
254
258
|
}
|
|
255
|
-
.awsui_segment-count-
|
|
259
|
+
.awsui_segment-count-3_8cbea_1ai8f_256.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
256
260
|
grid-template-columns: repeat(3, 1fr);
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
.awsui_segment-count-
|
|
263
|
+
.awsui_segment-count-4_8cbea_1ai8f_263:not(#\9) {
|
|
260
264
|
grid-template-columns: repeat(4, auto);
|
|
261
265
|
}
|
|
262
|
-
.awsui_segment-count-
|
|
266
|
+
.awsui_segment-count-4_8cbea_1ai8f_263.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
263
267
|
grid-template-columns: repeat(4, 1fr);
|
|
264
268
|
}
|
|
265
269
|
|
|
266
|
-
.awsui_segment-count-
|
|
270
|
+
.awsui_segment-count-5_8cbea_1ai8f_270:not(#\9) {
|
|
267
271
|
grid-template-columns: repeat(5, auto);
|
|
268
272
|
}
|
|
269
|
-
.awsui_segment-count-
|
|
273
|
+
.awsui_segment-count-5_8cbea_1ai8f_270.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
270
274
|
grid-template-columns: repeat(5, 1fr);
|
|
271
275
|
}
|
|
272
276
|
|
|
273
|
-
.awsui_segment-count-
|
|
277
|
+
.awsui_segment-count-6_8cbea_1ai8f_277:not(#\9) {
|
|
274
278
|
grid-template-columns: repeat(6, auto);
|
|
275
279
|
}
|
|
276
|
-
.awsui_segment-count-
|
|
280
|
+
.awsui_segment-count-6_8cbea_1ai8f_277.awsui_grouped_8cbea_1ai8f_189.awsui_grouped-vertical_8cbea_1ai8f_193:not(#\9) {
|
|
277
281
|
grid-template-columns: repeat(6, 1fr);
|
|
278
282
|
}
|
|
279
283
|
|
|
280
|
-
.awsui_disabled-reason-
|
|
284
|
+
.awsui_disabled-reason-tooltip_8cbea_1ai8f_284:not(#\9) {
|
|
281
285
|
/* used in test-utils or tests */
|
|
282
286
|
}
|
|
@@ -2,31 +2,32 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment": "
|
|
6
|
-
"full-width": "awsui_full-
|
|
7
|
-
"refresh": "
|
|
8
|
-
"disabled": "
|
|
9
|
-
"selected": "
|
|
10
|
-
"icon": "
|
|
11
|
-
"with-text": "awsui_with-
|
|
12
|
-
"with-no-text": "awsui_with-no-
|
|
13
|
-
"root": "
|
|
14
|
-
"segment-part": "awsui_segment-
|
|
15
|
-
"grouped": "
|
|
16
|
-
"grouped-only": "awsui_grouped-
|
|
17
|
-
"grouped-vertical": "awsui_grouped-
|
|
18
|
-
"grouped-horizontal-first": "awsui_grouped-horizontal-
|
|
19
|
-
"grouped-horizontal-middle": "awsui_grouped-horizontal-
|
|
20
|
-
"grouped-horizontal-last": "awsui_grouped-horizontal-
|
|
21
|
-
"grouped-vertical-first": "awsui_grouped-vertical-
|
|
22
|
-
"grouped-vertical-middle": "awsui_grouped-vertical-
|
|
23
|
-
"grouped-vertical-last": "awsui_grouped-vertical-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"segment-count-
|
|
27
|
-
"segment-count-
|
|
28
|
-
"segment-count-
|
|
29
|
-
"segment-count-
|
|
30
|
-
"
|
|
5
|
+
"segment": "awsui_segment_8cbea_1ai8f_17",
|
|
6
|
+
"full-width": "awsui_full-width_8cbea_1ai8f_44",
|
|
7
|
+
"refresh": "awsui_refresh_8cbea_1ai8f_47",
|
|
8
|
+
"disabled": "awsui_disabled_8cbea_1ai8f_53",
|
|
9
|
+
"selected": "awsui_selected_8cbea_1ai8f_110",
|
|
10
|
+
"icon": "awsui_icon_8cbea_1ai8f_121",
|
|
11
|
+
"with-text": "awsui_with-text_8cbea_1ai8f_125",
|
|
12
|
+
"with-no-text": "awsui_with-no-text_8cbea_1ai8f_131",
|
|
13
|
+
"root": "awsui_root_8cbea_1ai8f_136",
|
|
14
|
+
"segment-part": "awsui_segment-part_8cbea_1ai8f_168",
|
|
15
|
+
"grouped": "awsui_grouped_8cbea_1ai8f_189",
|
|
16
|
+
"grouped-only": "awsui_grouped-only_8cbea_1ai8f_189",
|
|
17
|
+
"grouped-vertical": "awsui_grouped-vertical_8cbea_1ai8f_193",
|
|
18
|
+
"grouped-horizontal-first": "awsui_grouped-horizontal-first_8cbea_1ai8f_204",
|
|
19
|
+
"grouped-horizontal-middle": "awsui_grouped-horizontal-middle_8cbea_1ai8f_208",
|
|
20
|
+
"grouped-horizontal-last": "awsui_grouped-horizontal-last_8cbea_1ai8f_214",
|
|
21
|
+
"grouped-vertical-first": "awsui_grouped-vertical-first_8cbea_1ai8f_218",
|
|
22
|
+
"grouped-vertical-middle": "awsui_grouped-vertical-middle_8cbea_1ai8f_222",
|
|
23
|
+
"grouped-vertical-last": "awsui_grouped-vertical-last_8cbea_1ai8f_228",
|
|
24
|
+
"grouped-with-action": "awsui_grouped-with-action_8cbea_1ai8f_232",
|
|
25
|
+
"select": "awsui_select_8cbea_1ai8f_110",
|
|
26
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_1ai8f_249",
|
|
27
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_1ai8f_256",
|
|
28
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_1ai8f_263",
|
|
29
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_1ai8f_270",
|
|
30
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_1ai8f_277",
|
|
31
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_1ai8f_284"
|
|
31
32
|
};
|
|
32
33
|
|
|
@@ -5,6 +5,6 @@ export interface FilterProps extends InternalInputProps {
|
|
|
5
5
|
ref?: React.Ref<HTMLInputElement>;
|
|
6
6
|
filteringType: SelectProps.FilteringType;
|
|
7
7
|
}
|
|
8
|
-
declare const Filter: React.ForwardRefExoticComponent<Pick<FilterProps, "style" | "disabled" | "className" | "id" | "name" | "type" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "placeholder" | "prefix" | "inputMode" | "autoFocus" | "value" | "autoComplete" | "readOnly" | "step" | "invalid" | "ariaLabel" | "ariaDescribedby" | "__internalRootRef" | "warning" | "ariaLabelledby" | "filteringType" | "__injectAnalyticsComponentMetadata" | "__skipNativeAttributesWarnings" | "ariaRequired" | "controlId" | "inlineLabelText" | "suffix" | "nativeInputAttributes" | "disableBrowserAutocorrect" | "spellcheck" | "clearAriaLabel" | "__startIcon" | "__startIconVariant" | "__onStartIconClick" | "__endIcon" | "__onEndIconClick" | "__noBorderRadius" | "__onDelayedInput" | "__onBlurWithDetail" | "__inheritFormFieldProps" | "__fullWidth"> & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
declare const Filter: React.ForwardRefExoticComponent<Pick<FilterProps, "style" | "disabled" | "className" | "id" | "name" | "type" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "placeholder" | "prefix" | "inputMode" | "autoFocus" | "value" | "autoComplete" | "readOnly" | "step" | "invalid" | "ariaLabel" | "ariaDescribedby" | "__internalRootRef" | "warning" | "ariaLabelledby" | "filteringType" | "__injectAnalyticsComponentMetadata" | "__skipNativeAttributesWarnings" | "ariaRequired" | "controlId" | "inlineLabelText" | "suffix" | "nativeInputAttributes" | "disableBrowserAutocorrect" | "spellcheck" | "clearAriaLabel" | "__startIcon" | "__startIconVariant" | "__onStartIconClick" | "__endIcon" | "__onEndIconClick" | "__noBorderRadius" | "__noBorder" | "__onDelayedInput" | "__onBlurWithDetail" | "__inheritFormFieldProps" | "__fullWidth"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export default Filter;
|
|
10
10
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAsB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/select/parts/filter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAsB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC;CAC1C;AAED,QAAA,MAAM,MAAM,m3BA0BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
2
|
import InputWrapper from '../input';
|
|
3
3
|
import OptionWrapper from '../internal/option';
|
|
4
|
+
import TokenWrapper from '../token';
|
|
4
5
|
export declare class AutosuggestDropdownWrapper extends ComponentWrapper {
|
|
5
6
|
findOptions(): Array<OptionWrapper>;
|
|
6
7
|
/**
|
|
@@ -90,4 +91,42 @@ export default class AutosuggestWrapper extends InputWrapper {
|
|
|
90
91
|
selectSuggestionByValue(value: string, options?: {
|
|
91
92
|
expandToViewport: boolean;
|
|
92
93
|
}): void;
|
|
94
|
+
/**
|
|
95
|
+
* Returns the tokens shown inline in the input (tokens collapsed into the overflow dropdown are excluded).
|
|
96
|
+
* Applies only when the `tokens` property is set.
|
|
97
|
+
*/
|
|
98
|
+
findVisibleTokens(): Array<TokenWrapper>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns an inline token. Applies only when the `tokens` property is set.
|
|
101
|
+
*
|
|
102
|
+
* @param index 1-based index among the visible tokens.
|
|
103
|
+
*/
|
|
104
|
+
findVisibleToken(index: number): TokenWrapper | null;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the `+N` button that opens the overflow dropdown, or `null` when all tokens fit.
|
|
107
|
+
* Applies only when the `tokens` property is set.
|
|
108
|
+
*/
|
|
109
|
+
findOverflowTrigger(): ElementWrapper<HTMLButtonElement> | null;
|
|
110
|
+
/**
|
|
111
|
+
* Returns the open overflow dropdown that lists the tokens collapsed behind the `+N` button.
|
|
112
|
+
*
|
|
113
|
+
* @param options
|
|
114
|
+
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
115
|
+
*/
|
|
116
|
+
findOverflowDropdown(options?: {
|
|
117
|
+
expandToViewport: boolean;
|
|
118
|
+
}): AutosuggestOverflowDropdownWrapper | null;
|
|
119
|
+
}
|
|
120
|
+
export declare class AutosuggestOverflowDropdownWrapper extends ComponentWrapper {
|
|
121
|
+
static rootSelector: string;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the tokens listed in the overflow dropdown.
|
|
124
|
+
*/
|
|
125
|
+
findTokens(): Array<TokenWrapper>;
|
|
126
|
+
/**
|
|
127
|
+
* Returns a token from the overflow dropdown.
|
|
128
|
+
*
|
|
129
|
+
* @param index 1-based index of the token.
|
|
130
|
+
*/
|
|
131
|
+
findToken(index: number): TokenWrapper | null;
|
|
93
132
|
}
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AutosuggestDropdownWrapper = void 0;
|
|
9
|
+
exports.AutosuggestOverflowDropdownWrapper = exports.AutosuggestDropdownWrapper = void 0;
|
|
10
10
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
@@ -16,15 +16,17 @@ const input_1 = require("../input");
|
|
|
16
16
|
const dropdown_1 = require("../internal/dropdown");
|
|
17
17
|
const option_1 = require("../internal/option");
|
|
18
18
|
const options_list_1 = require("../internal/options-list");
|
|
19
|
+
const token_1 = require("../token");
|
|
19
20
|
const styles_selectors_js_1 = require("../../../autosuggest/styles.selectors.js");
|
|
20
21
|
const styles_selectors_js_2 = require("../../../dropdown/styles.selectors.js");
|
|
21
|
-
const styles_selectors_js_3 = require("../../../internal/components/
|
|
22
|
+
const styles_selectors_js_3 = require("../../../internal/components/autosuggest-input/test-classes/styles.selectors.js");
|
|
22
23
|
const styles_selectors_js_4 = require("../../../internal/components/dropdown-status/styles.selectors.js");
|
|
23
|
-
const styles_selectors_js_5 = require("../../../internal/components/
|
|
24
|
-
const styles_selectors_js_6 = require("../../../internal/components/
|
|
24
|
+
const styles_selectors_js_5 = require("../../../internal/components/dropdown-status/styles.selectors.js");
|
|
25
|
+
const styles_selectors_js_6 = require("../../../internal/components/option/styles.selectors.js");
|
|
26
|
+
const styles_selectors_js_7 = require("../../../internal/components/selectable-item/styles.selectors.js");
|
|
25
27
|
class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
26
28
|
findOptions() {
|
|
27
|
-
return this.findAll(`.${
|
|
29
|
+
return this.findAll(`.${styles_selectors_js_7.default['selectable-item']}[data-test-index] .${option_1.default.rootSelector}`).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Returns an option from the dropdown.
|
|
@@ -32,7 +34,7 @@ class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
|
32
34
|
* @param optionIndex 1-based index of the option to select.
|
|
33
35
|
*/
|
|
34
36
|
findOption(optionIndex) {
|
|
35
|
-
return this.findComponent(`.${
|
|
37
|
+
return this.findComponent(`.${styles_selectors_js_7.default['selectable-item']}[data-test-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Returns an option from the autosuggest by it's value
|
|
@@ -41,7 +43,7 @@ class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
|
41
43
|
*/
|
|
42
44
|
findOptionByValue(value) {
|
|
43
45
|
const toReplace = (0, utils_1.escapeSelector)(value);
|
|
44
|
-
return this.findComponent(`.${
|
|
46
|
+
return this.findComponent(`.${styles_selectors_js_7.default['selectable-item']} .${option_1.default.rootSelector}[data-value="${toReplace}"]`, option_1.default);
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Returns an option from the dropdown.
|
|
@@ -50,7 +52,7 @@ class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
|
50
52
|
* @param optionIndex 1-based index of the option to select.
|
|
51
53
|
*/
|
|
52
54
|
findOptionInGroup(groupIndex, optionIndex) {
|
|
53
|
-
return this.findComponent(`.${
|
|
55
|
+
return this.findComponent(`.${styles_selectors_js_7.default['selectable-item']}[data-group-index="${groupIndex}"][data-in-group-index="${optionIndex}"] .${option_1.default.rootSelector}`, option_1.default);
|
|
54
56
|
}
|
|
55
57
|
/**
|
|
56
58
|
* Use this element to scroll through the list of options
|
|
@@ -59,31 +61,31 @@ class AutosuggestDropdownWrapper extends dom_1.ComponentWrapper {
|
|
|
59
61
|
return this.findByClassName(options_list_1.default.rootSelector);
|
|
60
62
|
}
|
|
61
63
|
findFooterRegion() {
|
|
62
|
-
return this.findByClassName(
|
|
64
|
+
return this.findByClassName(styles_selectors_js_5.default.root);
|
|
63
65
|
}
|
|
64
66
|
findOpenDropdown() {
|
|
65
67
|
const dropdown = new dropdown_1.default(this.getElement());
|
|
66
68
|
return dropdown.findOpenDropdown();
|
|
67
69
|
}
|
|
68
70
|
findHighlightedOption() {
|
|
69
|
-
return this.findComponent(`.${
|
|
71
|
+
return this.findComponent(`.${styles_selectors_js_7.default.highlighted}`, option_1.default);
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
72
74
|
* Returns all the selected options.
|
|
73
75
|
*/
|
|
74
76
|
findDisabledOptions() {
|
|
75
|
-
return this.findAllByClassName(
|
|
77
|
+
return this.findAllByClassName(styles_selectors_js_7.default.disabled).map((elementWrapper) => new option_1.default(elementWrapper.getElement()));
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Returns highlighted text fragments from all of the options.
|
|
79
81
|
* Options get highlighted when they match the value of the input field.
|
|
80
82
|
*/
|
|
81
83
|
findHighlightedMatches() {
|
|
82
|
-
return this.findAllByClassName(
|
|
84
|
+
return this.findAllByClassName(styles_selectors_js_6.default['filtering-match-highlight']);
|
|
83
85
|
}
|
|
84
86
|
findHighlightedAriaLiveRegion() {
|
|
85
87
|
var _a, _b;
|
|
86
|
-
return (_b = (_a = this.findHighlightedOption()) === null || _a === void 0 ? void 0 : _a.findByClassName(
|
|
88
|
+
return (_b = (_a = this.findHighlightedOption()) === null || _a === void 0 ? void 0 : _a.findByClassName(styles_selectors_js_7.default['screenreader-content'])) !== null && _b !== void 0 ? _b : null;
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
exports.AutosuggestDropdownWrapper = AutosuggestDropdownWrapper;
|
|
@@ -107,21 +109,21 @@ class AutosuggestWrapper extends input_1.default {
|
|
|
107
109
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
108
110
|
*/
|
|
109
111
|
findStatusIndicator(options = { expandToViewport: false }) {
|
|
110
|
-
return this.findDropdown(options).findByClassName(
|
|
112
|
+
return this.findDropdown(options).findByClassName(styles_selectors_js_4.default.root);
|
|
111
113
|
}
|
|
112
114
|
/**
|
|
113
115
|
* @param options
|
|
114
116
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
115
117
|
*/
|
|
116
118
|
findErrorRecoveryButton(options = { expandToViewport: false }) {
|
|
117
|
-
return this.findDropdown(options).findByClassName(
|
|
119
|
+
return this.findDropdown(options).findByClassName(styles_selectors_js_5.default.recovery);
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
* @param options
|
|
121
123
|
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
122
124
|
*/
|
|
123
125
|
findEnteredTextOption(options = { expandToViewport: false }) {
|
|
124
|
-
return this.findDropdown(options).findByClassName(
|
|
126
|
+
return this.findDropdown(options).findByClassName(styles_selectors_js_7.default['has-background']);
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
129
|
* Selects a suggestion from the dropdown by simulating mouse events.
|
|
@@ -149,6 +151,38 @@ class AutosuggestWrapper extends input_1.default {
|
|
|
149
151
|
(_a = this.findDropdown(options)) === null || _a === void 0 ? void 0 : _a.findOptionByValue(value).fireEvent(new MouseEvent('mouseup', { bubbles: true }));
|
|
150
152
|
});
|
|
151
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Returns the tokens shown inline in the input (tokens collapsed into the overflow dropdown are excluded).
|
|
156
|
+
* Applies only when the `tokens` property is set.
|
|
157
|
+
*/
|
|
158
|
+
findVisibleTokens() {
|
|
159
|
+
return this.findAll(`.${styles_selectors_js_3.default['token-list-item']} > .${token_1.default.rootSelector}`).map((elementWrapper) => new token_1.default(elementWrapper.getElement()));
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Returns an inline token. Applies only when the `tokens` property is set.
|
|
163
|
+
*
|
|
164
|
+
* @param index 1-based index among the visible tokens.
|
|
165
|
+
*/
|
|
166
|
+
findVisibleToken(index) {
|
|
167
|
+
return this.findComponent(`.${styles_selectors_js_3.default['token-list']} > li:nth-child(${index}) > .${token_1.default.rootSelector}`, token_1.default);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns the `+N` button that opens the overflow dropdown, or `null` when all tokens fit.
|
|
171
|
+
* Applies only when the `tokens` property is set.
|
|
172
|
+
*/
|
|
173
|
+
findOverflowTrigger() {
|
|
174
|
+
return this.findByClassName(styles_selectors_js_3.default['token-overflow-trigger']);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns the open overflow dropdown that lists the tokens collapsed behind the `+N` button.
|
|
178
|
+
*
|
|
179
|
+
* @param options
|
|
180
|
+
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
|
|
181
|
+
*/
|
|
182
|
+
findOverflowDropdown(options = { expandToViewport: false }) {
|
|
183
|
+
const root = options.expandToViewport ? (0, dom_1.createWrapper)() : this;
|
|
184
|
+
return root.findComponent(`.${styles_selectors_js_2.default.dropdown}[data-open=true] .${AutosuggestOverflowDropdownWrapper.rootSelector}`, AutosuggestOverflowDropdownWrapper);
|
|
185
|
+
}
|
|
152
186
|
}
|
|
153
187
|
AutosuggestWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
154
188
|
exports.default = AutosuggestWrapper;
|
|
@@ -158,4 +192,22 @@ __decorate([
|
|
|
158
192
|
__decorate([
|
|
159
193
|
dom_1.usesDom
|
|
160
194
|
], AutosuggestWrapper.prototype, "selectSuggestionByValue", null);
|
|
195
|
+
class AutosuggestOverflowDropdownWrapper extends dom_1.ComponentWrapper {
|
|
196
|
+
/**
|
|
197
|
+
* Returns the tokens listed in the overflow dropdown.
|
|
198
|
+
*/
|
|
199
|
+
findTokens() {
|
|
200
|
+
return this.findAll(`li > .${token_1.default.rootSelector}`).map((elementWrapper) => new token_1.default(elementWrapper.getElement()));
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Returns a token from the overflow dropdown.
|
|
204
|
+
*
|
|
205
|
+
* @param index 1-based index of the token.
|
|
206
|
+
*/
|
|
207
|
+
findToken(index) {
|
|
208
|
+
return this.findComponent(`li:nth-child(${index}) > .${token_1.default.rootSelector}`, token_1.default);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.AutosuggestOverflowDropdownWrapper = AutosuggestOverflowDropdownWrapper;
|
|
212
|
+
AutosuggestOverflowDropdownWrapper.rootSelector = styles_selectors_js_3.default['overflow-dropdown'];
|
|
161
213
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAkH;AAClH,oEAA0E;AAC1E,4EAAmE;AAEnE,oCAAoC;AACpC,mDAAmD;AACnD,+CAA+C;AAC/C,2DAA0D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/autosuggest/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAkH;AAClH,oEAA0E;AAC1E,4EAAmE;AAEnE,oCAAoC;AACpC,mDAAmD;AACnD,+CAA+C;AAC/C,2DAA0D;AAC1D,oCAAoC;AAEpC,kFAAkE;AAClE,+EAAmE;AACnE,yHAA6H;AAC7H,0GAAoG;AACpG,0GAA4F;AAC5F,iGAAmF;AACnF,0GAAgG;AAEhG,MAAa,0BAA2B,SAAQ,sBAAgB;IAC9D,WAAW;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,sBAAsB,gBAAa,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAChH,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,gBAAa,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CACnF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,WAAmB;QAC5B,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAgB,CAAC,iBAAiB,CAAC,qBAAqB,WAAW,OAAO,gBAAa,CAAC,YAAY,EAAE,EAC1G,gBAAa,CACd,CAAC;IACJ,CAAC;IAED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AC,eAAe,CAAoB,6BAA8B,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE;QACxD,MAAM,IAAI,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAA,mBAAa,GAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/D,OAAO,IAAI,CAAC,aAAa,CACvB,IAAI,6BAAc,CAAC,QAAQ,qBAAqB,kCAAkC,CAAC,YAAY,EAAE,EACjG,kCAAkC,CACnC,CAAC;IACJ,CAAC;;AA9GM,+BAAY,GAAW,6BAAU,CAAC,IAAI,CAAC;kBAD3B,kBAAkB;AA6CrC;IADC,aAAO;0DAOP;AAUD;IADC,aAAO;iEAOP;AA+CH,MAAa,kCAAmC,SAAQ,sBAAgB;IAGtE;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,eAAY,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAC3D,CAAC,cAA8B,EAAE,EAAE,CAAC,IAAI,eAAY,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC,CAClF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC,gBAAgB,KAAK,QAAQ,eAAY,CAAC,YAAY,EAAE,EAAE,eAAY,CAAC,CAAC;IACpG,CAAC;;AAnBH,gFAoBC;AAnBQ,+CAAY,GAAW,6BAA8B,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
+
import ButtonWrapper from '../button';
|
|
2
3
|
export default class ControlGroupWrapper extends ComponentWrapper {
|
|
3
4
|
static rootSelector: string;
|
|
4
5
|
/**
|
|
5
6
|
* Returns the visible inline label element, or null if no label is set.
|
|
6
7
|
*/
|
|
7
8
|
findInlineLabel(): ElementWrapper | null;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the action button, or null if no action is set.
|
|
11
|
+
*/
|
|
12
|
+
findActionButton(): ButtonWrapper | null;
|
|
8
13
|
}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
-
const
|
|
6
|
+
const button_1 = require("../button");
|
|
7
|
+
const styles_selectors_js_1 = require("../../../internal/components/control-group/test-classes/styles.selectors.js");
|
|
7
8
|
class ControlGroupWrapper extends dom_1.ComponentWrapper {
|
|
8
9
|
/**
|
|
9
10
|
* Returns the visible inline label element, or null if no label is set.
|
|
@@ -11,7 +12,13 @@ class ControlGroupWrapper extends dom_1.ComponentWrapper {
|
|
|
11
12
|
findInlineLabel() {
|
|
12
13
|
return this.findByClassName(styles_selectors_js_1.default['inline-label']);
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns the action button, or null if no action is set.
|
|
17
|
+
*/
|
|
18
|
+
findActionButton() {
|
|
19
|
+
return this.findComponent(`.${styles_selectors_js_1.default['action-button']}`, button_1.default);
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
|
-
ControlGroupWrapper.rootSelector = styles_selectors_js_1.default
|
|
22
|
+
ControlGroupWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
16
23
|
exports.default = ControlGroupWrapper;
|
|
17
24
|
//# sourceMappingURL=control-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,
|
|
1
|
+
{"version":3,"file":"control-group.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/internal/control-group.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,sCAAsC;AAEtC,qHAAyG;AAEzG,MAAqB,mBAAoB,SAAQ,sBAAgB;IAG/D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAc,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAC,CAAC;IAClF,CAAC;;AAdM,gCAAY,GAAW,6BAAc,CAAC,IAAI,CAAC;kBAD/B,mBAAmB"}
|