@cloudscape-design/components 3.0.272 → 3.0.274
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/expandable-section/styles.css.js +24 -24
- package/expandable-section/styles.scoped.css +47 -51
- package/expandable-section/styles.selectors.js +24 -24
- package/internal/environment.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/internal.js +9 -10
- package/popover/internal.js.map +1 -1
- package/property-filter/controller.d.ts +8 -16
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/controller.js +17 -48
- package/property-filter/controller.js.map +1 -1
- package/property-filter/index.d.ts.map +1 -1
- package/property-filter/index.js +38 -14
- package/property-filter/index.js.map +1 -1
- package/property-filter/interfaces.d.ts +18 -2
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/property-editor.d.ts +4 -4
- package/property-filter/property-editor.d.ts.map +1 -1
- package/property-filter/property-editor.js +1 -1
- package/property-filter/property-editor.js.map +1 -1
- package/property-filter/token-editor.d.ts +3 -3
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js +11 -11
- package/property-filter/token-editor.js.map +1 -1
- package/property-filter/token.d.ts +3 -3
- package/property-filter/token.d.ts.map +1 -1
- package/property-filter/token.js +1 -1
- package/property-filter/token.js.map +1 -1
- package/property-filter/use-load-items.d.ts +1 -1
- package/property-filter/use-load-items.js +1 -1
- package/property-filter/use-load-items.js.map +1 -1
- package/property-filter/utils.d.ts +10 -3
- package/property-filter/utils.d.ts.map +1 -1
- package/property-filter/utils.js +12 -0
- package/property-filter/utils.js.map +1 -1
- package/table/use-sticky-columns.d.ts +5 -4
- package/table/use-sticky-columns.d.ts.map +1 -1
- package/table/use-sticky-columns.js +38 -24
- package/table/use-sticky-columns.js.map +1 -1
- package/top-navigation/interfaces.d.ts +1 -1
- package/top-navigation/interfaces.js.map +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"content-enter": "awsui_content-
|
|
5
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
6
|
-
"trigger-expanded": "awsui_trigger-
|
|
7
|
-
"icon": "
|
|
8
|
-
"root": "
|
|
9
|
-
"expanded": "
|
|
10
|
-
"icon-container": "awsui_icon-
|
|
11
|
-
"icon-container-container": "awsui_icon-container-
|
|
12
|
-
"trigger": "
|
|
13
|
-
"trigger-default": "awsui_trigger-
|
|
14
|
-
"trigger-footer": "awsui_trigger-
|
|
15
|
-
"trigger-navigation": "awsui_trigger-
|
|
16
|
-
"trigger-container": "awsui_trigger-
|
|
17
|
-
"header": "
|
|
18
|
-
"header-wrapper": "awsui_header-
|
|
19
|
-
"header-button": "awsui_header-
|
|
20
|
-
"header-container": "awsui_header-
|
|
21
|
-
"header-container-button": "awsui_header-container-
|
|
22
|
-
"header-navigation": "awsui_header-
|
|
23
|
-
"content": "
|
|
24
|
-
"content-default": "awsui_content-
|
|
25
|
-
"content-footer": "awsui_content-
|
|
26
|
-
"content-expanded": "awsui_content-
|
|
27
|
-
"focusable": "
|
|
4
|
+
"content-enter": "awsui_content-enter_gwq0h_z8cam_97",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_z8cam_1",
|
|
6
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_z8cam_119",
|
|
7
|
+
"icon": "awsui_icon_gwq0h_z8cam_133",
|
|
8
|
+
"root": "awsui_root_gwq0h_z8cam_151",
|
|
9
|
+
"expanded": "awsui_expanded_gwq0h_z8cam_171",
|
|
10
|
+
"icon-container": "awsui_icon-container_gwq0h_z8cam_175",
|
|
11
|
+
"icon-container-container": "awsui_icon-container-container_gwq0h_z8cam_180",
|
|
12
|
+
"trigger": "awsui_trigger_gwq0h_z8cam_119",
|
|
13
|
+
"trigger-default": "awsui_trigger-default_gwq0h_z8cam_193",
|
|
14
|
+
"trigger-footer": "awsui_trigger-footer_gwq0h_z8cam_196",
|
|
15
|
+
"trigger-navigation": "awsui_trigger-navigation_gwq0h_z8cam_202",
|
|
16
|
+
"trigger-container": "awsui_trigger-container_gwq0h_z8cam_216",
|
|
17
|
+
"header": "awsui_header_gwq0h_z8cam_226",
|
|
18
|
+
"header-wrapper": "awsui_header-wrapper_gwq0h_z8cam_229",
|
|
19
|
+
"header-button": "awsui_header-button_gwq0h_z8cam_236",
|
|
20
|
+
"header-container": "awsui_header-container_gwq0h_z8cam_258",
|
|
21
|
+
"header-container-button": "awsui_header-container-button_gwq0h_z8cam_273",
|
|
22
|
+
"header-navigation": "awsui_header-navigation_gwq0h_z8cam_277",
|
|
23
|
+
"content": "awsui_content_gwq0h_z8cam_97",
|
|
24
|
+
"content-default": "awsui_content-default_gwq0h_z8cam_313",
|
|
25
|
+
"content-footer": "awsui_content-footer_gwq0h_z8cam_316",
|
|
26
|
+
"content-expanded": "awsui_content-expanded_gwq0h_z8cam_319",
|
|
27
|
+
"focusable": "awsui_focusable_gwq0h_z8cam_323"
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -94,10 +94,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.awsui_content-
|
|
98
|
-
animation: awsui_awsui-motion-fade-
|
|
97
|
+
.awsui_content-enter_gwq0h_z8cam_97:not(#\9) {
|
|
98
|
+
animation: awsui_awsui-motion-fade-in_gwq0h_z8cam_1 var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
99
99
|
}
|
|
100
|
-
@keyframes awsui_awsui-motion-fade-
|
|
100
|
+
@keyframes awsui_awsui-motion-fade-in_gwq0h_z8cam_1 {
|
|
101
101
|
from {
|
|
102
102
|
opacity: 0.2;
|
|
103
103
|
}
|
|
@@ -106,40 +106,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
@media (prefers-reduced-motion: reduce) {
|
|
109
|
-
.awsui_content-
|
|
109
|
+
.awsui_content-enter_gwq0h_z8cam_97:not(#\9) {
|
|
110
110
|
animation: none;
|
|
111
111
|
transition: none;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
.awsui-motion-disabled .awsui_content-
|
|
114
|
+
.awsui-motion-disabled .awsui_content-enter_gwq0h_z8cam_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_z8cam_97:not(#\9) {
|
|
115
115
|
animation: none;
|
|
116
116
|
transition: none;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.awsui_trigger-
|
|
119
|
+
.awsui_trigger-expanded_gwq0h_z8cam_119:not(#\9) {
|
|
120
120
|
transition: border-bottom-color var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
121
121
|
}
|
|
122
122
|
@media (prefers-reduced-motion: reduce) {
|
|
123
|
-
.awsui_trigger-
|
|
123
|
+
.awsui_trigger-expanded_gwq0h_z8cam_119:not(#\9) {
|
|
124
124
|
animation: none;
|
|
125
125
|
transition: none;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
.awsui-motion-disabled .awsui_trigger-
|
|
128
|
+
.awsui-motion-disabled .awsui_trigger-expanded_gwq0h_z8cam_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_z8cam_119:not(#\9) {
|
|
129
129
|
animation: none;
|
|
130
130
|
transition: none;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.awsui_icon_gwq0h_z8cam_133:not(#\9) {
|
|
134
134
|
transition: transform var(--motion-duration-rotate-90-ux18sr, 135ms) var(--motion-easing-rotate-90-eoew89, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
135
135
|
}
|
|
136
136
|
@media (prefers-reduced-motion: reduce) {
|
|
137
|
-
.
|
|
137
|
+
.awsui_icon_gwq0h_z8cam_133:not(#\9) {
|
|
138
138
|
animation: none;
|
|
139
139
|
transition: none;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
.awsui-motion-disabled .
|
|
142
|
+
.awsui-motion-disabled .awsui_icon_gwq0h_z8cam_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_z8cam_133:not(#\9) {
|
|
143
143
|
animation: none;
|
|
144
144
|
transition: none;
|
|
145
145
|
}
|
|
@@ -148,7 +148,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
148
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
149
149
|
SPDX-License-Identifier: Apache-2.0
|
|
150
150
|
*/
|
|
151
|
-
.
|
|
151
|
+
.awsui_root_gwq0h_z8cam_151:not(#\9) {
|
|
152
152
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
153
153
|
border-collapse: separate;
|
|
154
154
|
border-spacing: 0;
|
|
@@ -191,23 +191,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
display: block;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_icon_gwq0h_z8cam_133:not(#\9) {
|
|
195
195
|
transform: rotate(-90deg);
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
.awsui_icon_gwq0h_z8cam_133.awsui_expanded_gwq0h_z8cam_171:not(#\9) {
|
|
198
198
|
transform: rotate(0deg);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
.awsui_icon-
|
|
201
|
+
.awsui_icon-container_gwq0h_z8cam_175:not(#\9) {
|
|
202
202
|
position: relative;
|
|
203
203
|
margin-left: calc((var(--font-body-m-line-height-i7xxvv, 22px) - var(--size-icon-normal-j1z5fn, 16px)) / -2);
|
|
204
204
|
margin-right: calc(var(--space-xxs-ynfts5, 4px) + var(--border-divider-list-width-hacikr, 1px));
|
|
205
205
|
}
|
|
206
|
-
.awsui_icon-container-
|
|
206
|
+
.awsui_icon-container-container_gwq0h_z8cam_180:not(#\9) {
|
|
207
207
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.
|
|
210
|
+
.awsui_trigger_gwq0h_z8cam_119:not(#\9) {
|
|
211
211
|
cursor: pointer;
|
|
212
212
|
box-sizing: border-box;
|
|
213
213
|
display: flex;
|
|
@@ -216,19 +216,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
216
216
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
217
217
|
text-align: left;
|
|
218
218
|
}
|
|
219
|
-
.awsui_trigger-
|
|
219
|
+
.awsui_trigger-default_gwq0h_z8cam_193:not(#\9) {
|
|
220
220
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-xxs-ynfts5, 4px);
|
|
221
221
|
}
|
|
222
|
-
.awsui_trigger-
|
|
222
|
+
.awsui_trigger-footer_gwq0h_z8cam_196:not(#\9) {
|
|
223
223
|
padding: var(--space-scaled-xxs-95dhkm, 4px) 0;
|
|
224
224
|
}
|
|
225
|
-
.awsui_trigger-
|
|
225
|
+
.awsui_trigger-default_gwq0h_z8cam_193:not(#\9), .awsui_trigger-footer_gwq0h_z8cam_196:not(#\9) {
|
|
226
226
|
border: var(--border-divider-section-width-4wm2it, 2px) solid transparent;
|
|
227
227
|
}
|
|
228
|
-
.awsui_trigger-
|
|
228
|
+
.awsui_trigger-navigation_gwq0h_z8cam_202:not(#\9) {
|
|
229
229
|
border-left: var(--border-divider-section-width-4wm2it, 2px) solid transparent;
|
|
230
230
|
}
|
|
231
|
-
.awsui_trigger-
|
|
231
|
+
.awsui_trigger-default_gwq0h_z8cam_193:not(#\9), .awsui_trigger-navigation_gwq0h_z8cam_202:not(#\9), .awsui_trigger-footer_gwq0h_z8cam_196:not(#\9) {
|
|
232
232
|
color: var(--color-text-expandable-section-default-k03p1p, #000716);
|
|
233
233
|
font-weight: var(--font-heading-s-weight-k8ys41, 800);
|
|
234
234
|
-webkit-font-smoothing: var(--font-smoothing-webkit-vu3hx4, antialiased);
|
|
@@ -236,41 +236,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
236
236
|
font-size: var(--font-expandable-heading-size-m2wptt, 16px);
|
|
237
237
|
letter-spacing: var(--font-heading-s-letter-spacing-4d69jc, -0.005em);
|
|
238
238
|
}
|
|
239
|
-
.awsui_trigger-
|
|
239
|
+
.awsui_trigger-default_gwq0h_z8cam_193:not(#\9):hover, .awsui_trigger-navigation_gwq0h_z8cam_202:not(#\9):hover, .awsui_trigger-footer_gwq0h_z8cam_196:not(#\9):hover {
|
|
240
240
|
color: var(--color-text-expandable-section-hover-73g3du, #0972d3);
|
|
241
241
|
}
|
|
242
|
-
.awsui_trigger-
|
|
242
|
+
.awsui_trigger-container_gwq0h_z8cam_216:not(#\9) {
|
|
243
243
|
padding: var(--space-container-header-vertical-zsjhel, 12px) var(--space-container-horizontal-tlw03i, 20px);
|
|
244
244
|
}
|
|
245
|
-
body[data-awsui-focus-visible=true] .awsui_trigger-
|
|
245
|
+
body[data-awsui-focus-visible=true] .awsui_trigger-container_gwq0h_z8cam_216:not(#\9):focus {
|
|
246
246
|
padding: calc(var(--space-scaled-s-cu1hzn, 12px) - var(--border-divider-section-width-4wm2it, 2px)) calc(var(--space-l-4vl6xu, 20px) - var(--border-divider-section-width-4wm2it, 2px));
|
|
247
247
|
}
|
|
248
|
-
.awsui_trigger-
|
|
248
|
+
.awsui_trigger-default_gwq0h_z8cam_193.awsui_trigger-expanded_gwq0h_z8cam_119:not(#\9) {
|
|
249
249
|
border-bottom-color: var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.
|
|
252
|
+
.awsui_header_gwq0h_z8cam_226:not(#\9) {
|
|
253
253
|
display: flex;
|
|
254
254
|
}
|
|
255
|
-
.awsui_header-
|
|
255
|
+
.awsui_header-wrapper_gwq0h_z8cam_229:not(#\9) {
|
|
256
256
|
font-weight: inherit;
|
|
257
257
|
font-size: inherit;
|
|
258
258
|
letter-spacing: inherit;
|
|
259
259
|
margin: 0;
|
|
260
260
|
padding: 0;
|
|
261
261
|
}
|
|
262
|
-
.awsui_header-
|
|
262
|
+
.awsui_header-button_gwq0h_z8cam_236:not(#\9) {
|
|
263
263
|
box-sizing: border-box;
|
|
264
264
|
display: flex;
|
|
265
265
|
}
|
|
266
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
266
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_z8cam_236:not(#\9):focus {
|
|
267
267
|
position: relative;
|
|
268
268
|
}
|
|
269
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
269
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_z8cam_236:not(#\9):focus {
|
|
270
270
|
outline: 2px dotted transparent;
|
|
271
271
|
outline-offset: calc(0px - 1px);
|
|
272
272
|
}
|
|
273
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
273
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_z8cam_236:not(#\9):focus::before {
|
|
274
274
|
content: " ";
|
|
275
275
|
display: block;
|
|
276
276
|
position: absolute;
|
|
@@ -281,13 +281,13 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_15y3s_236:not(#\9
|
|
|
281
281
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
282
282
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
283
283
|
}
|
|
284
|
-
.awsui_header-
|
|
284
|
+
.awsui_header-container_gwq0h_z8cam_258:not(#\9) {
|
|
285
285
|
width: 100%;
|
|
286
286
|
}
|
|
287
|
-
.awsui_header-
|
|
287
|
+
.awsui_header-container_gwq0h_z8cam_258 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9) {
|
|
288
288
|
margin-top: var(--space-expandable-section-icon-offset-top-q2xewd, 4px);
|
|
289
289
|
}
|
|
290
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
290
|
+
body[data-awsui-focus-visible=true] .awsui_header-container_gwq0h_z8cam_258:not(#\9):focus-within {
|
|
291
291
|
outline: none;
|
|
292
292
|
text-decoration: none;
|
|
293
293
|
padding: calc(var(--space-scaled-s-cu1hzn, 12px) - var(--border-divider-section-width-4wm2it, 2px)) calc(var(--space-l-4vl6xu, 20px) - var(--border-divider-section-width-4wm2it, 2px));
|
|
@@ -296,15 +296,11 @@ body[data-awsui-focus-visible=true] .awsui_header-container_gwq0h_15y3s_258:not(
|
|
|
296
296
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
297
297
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-srzyiu, 0px) var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
298
298
|
}
|
|
299
|
-
.awsui_header-container-
|
|
300
|
-
box-sizing: border-box;
|
|
301
|
-
display: flex;
|
|
302
|
-
}
|
|
303
|
-
body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_15y3s_273:not(#\9):focus {
|
|
299
|
+
body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_z8cam_273:not(#\9):focus {
|
|
304
300
|
outline: none;
|
|
305
301
|
text-decoration: none;
|
|
306
302
|
}
|
|
307
|
-
.awsui_header-
|
|
303
|
+
.awsui_header-navigation_gwq0h_z8cam_277 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9) {
|
|
308
304
|
display: inline-flex;
|
|
309
305
|
cursor: pointer;
|
|
310
306
|
color: var(--color-text-expandable-section-navigation-icon-default-lb9rm0, #414d5c);
|
|
@@ -315,17 +311,17 @@ body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_15y3s_2
|
|
|
315
311
|
text-decoration: none;
|
|
316
312
|
flex-direction: column;
|
|
317
313
|
}
|
|
318
|
-
.awsui_header-
|
|
314
|
+
.awsui_header-navigation_gwq0h_z8cam_277 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9):hover {
|
|
319
315
|
color: var(--color-text-expandable-section-hover-73g3du, #0972d3);
|
|
320
316
|
}
|
|
321
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
317
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_z8cam_277 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9):focus {
|
|
322
318
|
position: relative;
|
|
323
319
|
}
|
|
324
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
320
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_z8cam_277 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9):focus {
|
|
325
321
|
outline: 2px dotted transparent;
|
|
326
322
|
outline-offset: calc(2px - 1px);
|
|
327
323
|
}
|
|
328
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
324
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_z8cam_277 > .awsui_icon-container_gwq0h_z8cam_175:not(#\9):focus::before {
|
|
329
325
|
content: " ";
|
|
330
326
|
display: block;
|
|
331
327
|
position: absolute;
|
|
@@ -337,24 +333,24 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_15y3s_281 > .
|
|
|
337
333
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
338
334
|
}
|
|
339
335
|
|
|
340
|
-
.
|
|
336
|
+
.awsui_content_gwq0h_z8cam_97:not(#\9) {
|
|
341
337
|
display: none;
|
|
342
338
|
}
|
|
343
|
-
.awsui_content-
|
|
339
|
+
.awsui_content-default_gwq0h_z8cam_313:not(#\9) {
|
|
344
340
|
padding: var(--space-scaled-xs-6859qs, 8px) 0;
|
|
345
341
|
}
|
|
346
|
-
.awsui_content-
|
|
342
|
+
.awsui_content-footer_gwq0h_z8cam_316:not(#\9) {
|
|
347
343
|
padding: var(--space-xs-rsr2qu, 8px) 0;
|
|
348
344
|
}
|
|
349
|
-
.awsui_content-
|
|
345
|
+
.awsui_content-expanded_gwq0h_z8cam_319:not(#\9) {
|
|
350
346
|
display: block;
|
|
351
347
|
}
|
|
352
348
|
|
|
353
|
-
.
|
|
349
|
+
.awsui_focusable_gwq0h_z8cam_323:not(#\9):focus {
|
|
354
350
|
outline: none;
|
|
355
351
|
text-decoration: none;
|
|
356
352
|
}
|
|
357
|
-
body[data-awsui-focus-visible=true] .
|
|
353
|
+
body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_z8cam_323:not(#\9):focus {
|
|
358
354
|
outline: 2px dotted transparent;
|
|
359
355
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
360
356
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content-enter": "awsui_content-
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"trigger-expanded": "awsui_trigger-
|
|
8
|
-
"icon": "
|
|
9
|
-
"root": "
|
|
10
|
-
"expanded": "
|
|
11
|
-
"icon-container": "awsui_icon-
|
|
12
|
-
"icon-container-container": "awsui_icon-container-
|
|
13
|
-
"trigger": "
|
|
14
|
-
"trigger-default": "awsui_trigger-
|
|
15
|
-
"trigger-footer": "awsui_trigger-
|
|
16
|
-
"trigger-navigation": "awsui_trigger-
|
|
17
|
-
"trigger-container": "awsui_trigger-
|
|
18
|
-
"header": "
|
|
19
|
-
"header-wrapper": "awsui_header-
|
|
20
|
-
"header-button": "awsui_header-
|
|
21
|
-
"header-container": "awsui_header-
|
|
22
|
-
"header-container-button": "awsui_header-container-
|
|
23
|
-
"header-navigation": "awsui_header-
|
|
24
|
-
"content": "
|
|
25
|
-
"content-default": "awsui_content-
|
|
26
|
-
"content-footer": "awsui_content-
|
|
27
|
-
"content-expanded": "awsui_content-
|
|
28
|
-
"focusable": "
|
|
5
|
+
"content-enter": "awsui_content-enter_gwq0h_z8cam_97",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_z8cam_1",
|
|
7
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_z8cam_119",
|
|
8
|
+
"icon": "awsui_icon_gwq0h_z8cam_133",
|
|
9
|
+
"root": "awsui_root_gwq0h_z8cam_151",
|
|
10
|
+
"expanded": "awsui_expanded_gwq0h_z8cam_171",
|
|
11
|
+
"icon-container": "awsui_icon-container_gwq0h_z8cam_175",
|
|
12
|
+
"icon-container-container": "awsui_icon-container-container_gwq0h_z8cam_180",
|
|
13
|
+
"trigger": "awsui_trigger_gwq0h_z8cam_119",
|
|
14
|
+
"trigger-default": "awsui_trigger-default_gwq0h_z8cam_193",
|
|
15
|
+
"trigger-footer": "awsui_trigger-footer_gwq0h_z8cam_196",
|
|
16
|
+
"trigger-navigation": "awsui_trigger-navigation_gwq0h_z8cam_202",
|
|
17
|
+
"trigger-container": "awsui_trigger-container_gwq0h_z8cam_216",
|
|
18
|
+
"header": "awsui_header_gwq0h_z8cam_226",
|
|
19
|
+
"header-wrapper": "awsui_header-wrapper_gwq0h_z8cam_229",
|
|
20
|
+
"header-button": "awsui_header-button_gwq0h_z8cam_236",
|
|
21
|
+
"header-container": "awsui_header-container_gwq0h_z8cam_258",
|
|
22
|
+
"header-container-button": "awsui_header-container-button_gwq0h_z8cam_273",
|
|
23
|
+
"header-navigation": "awsui_header-navigation_gwq0h_z8cam_277",
|
|
24
|
+
"content": "awsui_content_gwq0h_z8cam_97",
|
|
25
|
+
"content-default": "awsui_content-default_gwq0h_z8cam_313",
|
|
26
|
+
"content-footer": "awsui_content-footer_gwq0h_z8cam_316",
|
|
27
|
+
"content-expanded": "awsui_content-expanded_gwq0h_z8cam_319",
|
|
28
|
+
"focusable": "awsui_focusable_gwq0h_z8cam_323"
|
|
29
29
|
};
|
|
30
30
|
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
package/popover/internal.js
CHANGED
|
@@ -75,15 +75,14 @@ function InternalPopover(_a, ref) {
|
|
|
75
75
|
const popoverContent = (React.createElement("div", { "aria-live": dismissButton ? undefined : 'polite', "aria-atomic": dismissButton ? undefined : true, className: clsx(popoverClasses, styles['popover-content']) }, visible && (React.createElement(PopoverContainer, { size: size, fixedWidth: fixedWidth, position: position, trackRef: triggerRef, arrow: position => React.createElement(Arrow, { position: position }), renderWithPortal: renderWithPortal, zIndex: renderWithPortal ? 7000 : undefined },
|
|
76
76
|
React.createElement(PopoverBody, { dismissButton: dismissButton, dismissAriaLabel: dismissAriaLabel, header: header, onDismiss: onDismiss, overflowVisible: "both" }, content)))));
|
|
77
77
|
const mergedRef = useMergeRefs(popoverRef, __internalRootRef);
|
|
78
|
-
return (React.createElement(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
clickFrameId.current =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
renderWithPortal ? React.createElement(Portal, null, popoverContent) : popoverContent)));
|
|
78
|
+
return (React.createElement("span", Object.assign({}, baseProps, { className: clsx(styles.root, baseProps.className), ref: mergedRef, onMouseDown: () => {
|
|
79
|
+
// Indicate there was a click inside popover recently, including nested portals.
|
|
80
|
+
clickFrameId.current = requestAnimationFrame(() => {
|
|
81
|
+
clickFrameId.current = null;
|
|
82
|
+
});
|
|
83
|
+
} }),
|
|
84
|
+
triggerType === 'text' ? (React.createElement("button", Object.assign({}, triggerProps, { type: "button", "aria-haspopup": "dialog" }),
|
|
85
|
+
React.createElement("span", { className: styles['trigger-inner-text'] }, children))) : (React.createElement("span", Object.assign({}, triggerProps), children)),
|
|
86
|
+
React.createElement(FormFieldContext.Provider, { value: {} }, renderWithPortal ? React.createElement(Portal, null, popoverContent) : popoverContent)));
|
|
88
87
|
}
|
|
89
88
|
//# sourceMappingURL=internal.js.map
|
package/popover/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["popover/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,WAAW,MAAM,QAAQ,CAAC;AAEjC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAA6B,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAU3D,eAAe,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAEjD,SAAS,eAAe,CACtB,EAgBuB,EACvB,GAAkC;QAjBlC,EACE,QAAQ,GAAG,OAAO,EAClB,IAAI,GAAG,QAAQ,EACf,UAAU,GAAG,KAAK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AC,SAAS,CAAC,EACjD,GAAG,EAAE,SAAS,EACd,WAAW,EAAE,GAAG,EAAE;YAChB,gFAAgF;YAChF,YAAY,CAAC,OAAO,GAAG,qBAAqB,CAAC,GAAG,EAAE;gBAChD,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;YAC9B,CAAC,CAAC,CAAC;QACL,CAAC;QAEA,WAAW,KAAK,MAAM,CAAC,CAAC,CAAC,CACxB,gDAAY,YAAY,IAAE,IAAI,EAAC,QAAQ,mBAAe,QAAQ;YAC5D,8BAAM,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,IAAG,QAAQ,CAAQ,CACzD,CACV,CAAC,CAAC,CAAC,CACF,8CAAU,YAAY,GAAG,QAAQ,CAAQ,CAC1C;QACD,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IACjC,gBAAgB,CAAC,CAAC,CAAC,oBAAC,MAAM,QAAE,cAAc,CAAU,CAAC,CAAC,CAAC,cAAc,CAC5C,CACvB,CACR,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useEffect, useRef, useState, useImperativeHandle } from 'react';\nimport clsx from 'clsx';\n\nimport { KeyCode } from '../internal/keycode';\nimport { getBaseProps } from '../internal/base-component';\nimport { FormFieldContext } from '../internal/context/form-field-context';\n\nimport Arrow from './arrow';\nimport Portal from '../internal/components/portal';\nimport { PopoverProps } from './interfaces';\nimport PopoverContainer from './container';\nimport PopoverBody from './body';\n\nimport styles from './styles.css.js';\nimport { NonCancelableEventHandler, fireNonCancelableEvent } from '../internal/events/index';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { usePortalModeClasses } from '../internal/hooks/use-portal-mode-classes';\nimport { useInternalI18n } from '../internal/i18n/context';\n\nexport interface InternalPopoverProps extends PopoverProps, InternalBaseComponentProps {\n __onOpen?: NonCancelableEventHandler<null>;\n}\n\nexport interface InternalPopoverRef {\n dismissPopover: () => void;\n}\n\nexport default React.forwardRef(InternalPopover);\n\nfunction InternalPopover(\n {\n position = 'right',\n size = 'medium',\n fixedWidth = false,\n triggerType = 'text',\n dismissButton = true,\n\n children,\n header,\n content,\n\n renderWithPortal = false,\n\n __onOpen,\n __internalRootRef = null,\n ...restProps\n }: InternalPopoverProps,\n ref: React.Ref<InternalPopoverRef>\n) {\n const baseProps = getBaseProps(restProps);\n const triggerRef = useRef<HTMLElement | null>(null);\n const popoverRef = useRef<HTMLDivElement | null>(null);\n const clickFrameId = useRef<number | null>(null);\n\n const i18n = useInternalI18n('popover');\n const dismissAriaLabel = i18n('dismissAriaLabel', restProps.dismissAriaLabel);\n\n const [visible, setVisible] = useState(false);\n\n const focusTrigger = useCallback(() => {\n triggerRef.current?.focus();\n }, []);\n\n const onTriggerClick = useCallback(() => {\n fireNonCancelableEvent(__onOpen);\n setVisible(true);\n }, [__onOpen]);\n\n const onDismiss = useCallback(() => {\n setVisible(false);\n focusTrigger();\n }, [focusTrigger]);\n\n const onTriggerKeyDown = useCallback((event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.tab || event.keyCode === KeyCode.escape) {\n setVisible(false);\n }\n }, []);\n\n useImperativeHandle(ref, () => ({\n dismissPopover: onDismiss,\n }));\n\n useEffect(() => {\n if (!triggerRef.current) {\n return;\n }\n const document = triggerRef.current.ownerDocument;\n\n const onDocumentClick = () => {\n // Dismiss popover unless there was a click inside within the last animation frame.\n if (clickFrameId.current === null) {\n setVisible(false);\n }\n };\n\n // useCapture=false makes sure this listener is called after the one attached to the element.\n // the options.capture notation is unsupported by IE.\n document.addEventListener('mousedown', onDocumentClick, false);\n\n return () => {\n document.removeEventListener('mousedown', onDocumentClick, false);\n };\n }, []);\n\n const popoverClasses = usePortalModeClasses(triggerRef);\n\n const triggerProps = {\n // https://github.com/microsoft/TypeScript/issues/36659\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref: triggerRef as any,\n onClick: onTriggerClick,\n onKeyDown: onTriggerKeyDown,\n className: clsx(styles.trigger, styles[`trigger-type-${triggerType}`]),\n };\n\n const popoverContent = (\n <div\n aria-live={dismissButton ? undefined : 'polite'}\n aria-atomic={dismissButton ? undefined : true}\n className={clsx(popoverClasses, styles['popover-content'])}\n >\n {visible && (\n <PopoverContainer\n size={size}\n fixedWidth={fixedWidth}\n position={position}\n trackRef={triggerRef}\n arrow={position => <Arrow position={position} />}\n renderWithPortal={renderWithPortal}\n zIndex={renderWithPortal ? 7000 : undefined}\n >\n <PopoverBody\n dismissButton={dismissButton}\n dismissAriaLabel={dismissAriaLabel}\n header={header}\n onDismiss={onDismiss}\n overflowVisible=\"both\"\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n )}\n </div>\n );\n\n const mergedRef = useMergeRefs(popoverRef, __internalRootRef);\n\n return (\n <span\n {...baseProps}\n className={clsx(styles.root, baseProps.className)}\n ref={mergedRef}\n onMouseDown={() => {\n // Indicate there was a click inside popover recently, including nested portals.\n clickFrameId.current = requestAnimationFrame(() => {\n clickFrameId.current = null;\n });\n }}\n >\n {triggerType === 'text' ? (\n <button {...triggerProps} type=\"button\" aria-haspopup=\"dialog\">\n <span className={styles['trigger-inner-text']}>{children}</span>\n </button>\n ) : (\n <span {...triggerProps}>{children}</span>\n )}\n <FormFieldContext.Provider value={{}}>\n {renderWithPortal ? <Portal>{popoverContent}</Portal> : popoverContent}\n </FormFieldContext.Provider>\n </span>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComparisonOperator,
|
|
1
|
+
import { ComparisonOperator, GroupText, I18nStrings, InternalFilteringOption, InternalFilteringProperty, JoinOperation, ParsedText, Query, Token } from './interfaces';
|
|
2
2
|
import { NonCancelableEventHandler } from '../internal/events';
|
|
3
3
|
import { AutosuggestInputRef } from '../internal/components/autosuggest-input';
|
|
4
4
|
export declare const getQueryActions: (query: Query, onChange: NonCancelableEventHandler<Query>, inputRef: React.RefObject<AutosuggestInputRef>) => {
|
|
@@ -8,19 +8,17 @@ export declare const getQueryActions: (query: Query, onChange: NonCancelableEven
|
|
|
8
8
|
addToken: (newToken: Token) => void;
|
|
9
9
|
setOperation: (newOperation: JoinOperation) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const getAllowedOperators: (property:
|
|
12
|
-
export declare const parseText: (filteringText: string, filteringProperties: readonly
|
|
13
|
-
export declare const getPropertyOptions: (filteringProperty:
|
|
11
|
+
export declare const getAllowedOperators: (property: InternalFilteringProperty) => ComparisonOperator[];
|
|
12
|
+
export declare const parseText: (filteringText: string, filteringProperties: readonly InternalFilteringProperty<any>[] | undefined, disableFreeTextFiltering: boolean) => ParsedText;
|
|
13
|
+
export declare const getPropertyOptions: (filteringProperty: InternalFilteringProperty, filteringOptions: readonly InternalFilteringOption[]) => InternalFilteringOption[];
|
|
14
14
|
interface OptionGroup<T> {
|
|
15
15
|
label: string;
|
|
16
16
|
options: T[];
|
|
17
17
|
}
|
|
18
|
-
export declare const getAllValueSuggestions: (filteringOptions: readonly
|
|
19
|
-
export declare
|
|
20
|
-
export declare function
|
|
21
|
-
export declare
|
|
22
|
-
export declare function getPropertySuggestions<T>(filteringProperties: readonly FilteringProperty[], customGroupsText: readonly GroupText[], i18nStrings: I18nStrings, filteringPropertyToOption: (filteringProperty: FilteringProperty) => T): OptionGroup<T>[];
|
|
23
|
-
export declare const getAutosuggestOptions: (parsedText: ParsedText, filteringOptions: readonly FilteringOption[], filteringProperties: readonly FilteringProperty[], customGroupsText: readonly GroupText[], i18nStrings: I18nStrings) => {
|
|
18
|
+
export declare const getAllValueSuggestions: (filteringOptions: readonly InternalFilteringOption[], filteringProperties: readonly InternalFilteringProperty[], operator: ComparisonOperator | undefined, i18nStrings: I18nStrings, customGroupsText: readonly GroupText[]) => OptionGroup<import("../internal/components/option/interfaces").OptionDefinition>[];
|
|
19
|
+
export declare function createPropertiesCompatibilityMap(filteringProperties: readonly InternalFilteringProperty[]): (propertyA: string, propertyB: string) => boolean;
|
|
20
|
+
export declare function getPropertySuggestions<T>(filteringProperties: readonly InternalFilteringProperty[], customGroupsText: readonly GroupText[], i18nStrings: I18nStrings, filteringPropertyToOption: (filteringProperty: InternalFilteringProperty) => T): OptionGroup<T>[];
|
|
21
|
+
export declare const getAutosuggestOptions: (parsedText: ParsedText, filteringOptions: readonly InternalFilteringOption[], filteringProperties: readonly InternalFilteringProperty[], customGroupsText: readonly GroupText[], i18nStrings: I18nStrings) => {
|
|
24
22
|
filterText: string;
|
|
25
23
|
options: {
|
|
26
24
|
options: {
|
|
@@ -54,11 +52,5 @@ export declare const getAutosuggestOptions: (parsedText: ParsedText, filteringOp
|
|
|
54
52
|
}>)[];
|
|
55
53
|
};
|
|
56
54
|
export declare const operatorToDescription: (operator: ComparisonOperator, i18nStrings: I18nStrings) => string | undefined;
|
|
57
|
-
export declare function getFormattedToken(filteringProperties: readonly FilteringProperty[], token: Token): {
|
|
58
|
-
property: string | undefined;
|
|
59
|
-
operator: import("@cloudscape-design/collection-hooks").PropertyFilterOperator;
|
|
60
|
-
value: any;
|
|
61
|
-
label: string;
|
|
62
|
-
};
|
|
63
55
|
export {};
|
|
64
56
|
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"lib/default/","sources":["property-filter/controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAElB,
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"lib/default/","sources":["property-filter/controller.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAElB,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,aAAa,EACb,UAAU,EACV,KAAK,EACL,KAAK,EACN,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0B,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAUvF,OAAO,EAAE,mBAA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