@cloudscape-design/components-themeable 3.0.1304 → 3.0.1306
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/app-layout/visual-refresh-toolbar/skeleton/styles.scss +58 -0
- package/lib/internal/scss/calendar/calendar.scss +1 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/toggle-button/styles.scss +4 -0
- package/lib/internal/scss/truncated-text/styles.scss +26 -0
- package/lib/internal/scss/truncated-text/test-classes/styles.scss +8 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +29 -27
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +115 -46
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +29 -27
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/props-merger.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js +2 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-app-layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +5 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/lib/internal/template/calendar/styles.css.js +21 -21
- package/lib/internal/template/calendar/styles.scoped.css +44 -44
- package/lib/internal/template/calendar/styles.selectors.js +21 -21
- package/lib/internal/template/collection-preferences/content-display/index.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/content-display/index.js +1 -1
- package/lib/internal/template/collection-preferences/content-display/index.js.map +1 -1
- package/lib/internal/template/container/interfaces.d.ts +0 -1
- package/lib/internal/template/container/interfaces.d.ts.map +1 -1
- package/lib/internal/template/container/interfaces.js.map +1 -1
- package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +30 -30
- package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +56 -56
- package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +30 -30
- package/lib/internal/template/dropdown/index.d.ts +0 -3
- package/lib/internal/template/dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/dropdown/index.js +0 -3
- package/lib/internal/template/dropdown/index.js.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.ar.js +1 -1
- package/lib/internal/template/i18n/messages/all.ar.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.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/icon-provider/index.d.ts +0 -3
- package/lib/internal/template/icon-provider/index.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/index.js +0 -3
- package/lib/internal/template/icon-provider/index.js.map +1 -1
- package/lib/internal/template/index.d.ts +1 -0
- package/lib/internal/template/index.d.ts.map +1 -1
- package/lib/internal/template/index.js +1 -0
- package/lib/internal/template/index.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +16 -2
- package/lib/internal/template/internal/components/drag-handle/button.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/button.js +1 -1
- package/lib/internal/template/internal/components/drag-handle/button.js.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/index.js +1 -0
- package/lib/internal/template/internal/components/sortable-area/index.js.map +1 -1
- package/lib/internal/template/internal/environment.d.ts +2 -1
- package/lib/internal/template/internal/environment.js +4 -3
- package/lib/internal/template/internal/environment.json +4 -3
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +2 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +2 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +68 -0
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +27 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +27 -0
- package/lib/internal/template/internal/generated/theming/index.js +68 -0
- package/lib/internal/template/navigable-group/index.d.ts +0 -3
- package/lib/internal/template/navigable-group/index.d.ts.map +1 -1
- package/lib/internal/template/navigable-group/index.js +0 -3
- package/lib/internal/template/navigable-group/index.js.map +1 -1
- package/lib/internal/template/package.json +1 -0
- package/lib/internal/template/radio-button/index.d.ts +0 -3
- package/lib/internal/template/radio-button/index.d.ts.map +1 -1
- package/lib/internal/template/radio-button/index.js +0 -3
- package/lib/internal/template/radio-button/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/index.d.ts +28 -0
- package/lib/internal/template/test-utils/dom/index.js +20 -1
- package/lib/internal/template/test-utils/dom/index.js.map +1 -1
- package/lib/internal/template/test-utils/dom/truncated-text/index.d.ts +6 -0
- package/lib/internal/template/test-utils/dom/truncated-text/index.js +17 -0
- package/lib/internal/template/test-utils/dom/truncated-text/index.js.map +1 -0
- package/lib/internal/template/test-utils/selectors/index.d.ts +18 -0
- package/lib/internal/template/test-utils/selectors/index.js +15 -1
- package/lib/internal/template/test-utils/selectors/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/truncated-text/index.d.ts +6 -0
- package/lib/internal/template/test-utils/selectors/truncated-text/index.js +17 -0
- package/lib/internal/template/test-utils/selectors/truncated-text/index.js.map +1 -0
- package/lib/internal/template/toggle-button/styles.css.js +3 -3
- package/lib/internal/template/toggle-button/styles.scoped.css +6 -2
- package/lib/internal/template/toggle-button/styles.selectors.js +3 -3
- package/lib/internal/template/truncated-text/index.d.ts +4 -0
- package/lib/internal/template/truncated-text/index.d.ts.map +1 -0
- package/lib/internal/template/truncated-text/index.js +18 -0
- package/lib/internal/template/truncated-text/index.js.map +1 -0
- package/lib/internal/template/truncated-text/interfaces.d.ts +17 -0
- package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -0
- package/lib/internal/template/truncated-text/interfaces.js +2 -0
- package/lib/internal/template/truncated-text/interfaces.js.map +1 -0
- package/lib/internal/template/truncated-text/internal.d.ts +6 -0
- package/lib/internal/template/truncated-text/internal.d.ts.map +1 -0
- package/lib/internal/template/truncated-text/internal.js +47 -0
- package/lib/internal/template/truncated-text/internal.js.map +1 -0
- package/lib/internal/template/truncated-text/styles.css.js +6 -0
- package/lib/internal/template/truncated-text/styles.scoped.css +177 -0
- package/lib/internal/template/truncated-text/styles.selectors.js +7 -0
- package/lib/internal/template/truncated-text/test-classes/styles.css.js +6 -0
- package/lib/internal/template/truncated-text/test-classes/styles.scoped.css +7 -0
- package/lib/internal/template/truncated-text/test-classes/styles.selectors.js +7 -0
- package/package.json +1 -1
|
@@ -150,11 +150,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
150
150
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
151
|
SPDX-License-Identifier: Apache-2.0
|
|
152
152
|
*/
|
|
153
|
-
.
|
|
154
|
-
animation: awsui_awsui-motion-fade-in-
|
|
153
|
+
.awsui_calendar_1ykar_bheeb_153:not(#\9) {
|
|
154
|
+
animation: awsui_awsui-motion-fade-in-0_1ykar_bheeb_1 var(--motion-duration-show-quick-i2gulq, 135ms) var(--motion-easing-show-quick-xucy9w, ease-out);
|
|
155
155
|
animation-fill-mode: both;
|
|
156
156
|
}
|
|
157
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
157
|
+
@keyframes awsui_awsui-motion-fade-in-0_1ykar_bheeb_1 {
|
|
158
158
|
from {
|
|
159
159
|
opacity: 0;
|
|
160
160
|
}
|
|
@@ -163,12 +163,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
@media (prefers-reduced-motion: reduce) {
|
|
166
|
-
.
|
|
166
|
+
.awsui_calendar_1ykar_bheeb_153:not(#\9) {
|
|
167
167
|
animation: none;
|
|
168
168
|
transition: none;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
.awsui-motion-disabled .
|
|
171
|
+
.awsui-motion-disabled .awsui_calendar_1ykar_bheeb_153:not(#\9), .awsui-mode-entering .awsui_calendar_1ykar_bheeb_153:not(#\9) {
|
|
172
172
|
animation: none;
|
|
173
173
|
transition: none;
|
|
174
174
|
}
|
|
@@ -177,11 +177,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
177
177
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
178
178
|
SPDX-License-Identifier: Apache-2.0
|
|
179
179
|
*/
|
|
180
|
-
.
|
|
180
|
+
.awsui_root_1ykar_bheeb_180:not(#\9) {
|
|
181
181
|
/* used in test-utils */
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.
|
|
184
|
+
.awsui_calendar_1ykar_bheeb_153:not(#\9) {
|
|
185
185
|
border-collapse: separate;
|
|
186
186
|
border-spacing: 0;
|
|
187
187
|
box-sizing: border-box;
|
|
@@ -215,16 +215,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
215
215
|
inline-size: var(--size-calendar-grid-width-goqv80, 234px);
|
|
216
216
|
overflow: auto;
|
|
217
217
|
}
|
|
218
|
-
.awsui_calendar-
|
|
218
|
+
.awsui_calendar-inner_1ykar_bheeb_218:not(#\9) {
|
|
219
219
|
margin-block: var(--space-xs-kw7k3v, 8px);
|
|
220
220
|
margin-inline: var(--space-xs-kw7k3v, 8px);
|
|
221
221
|
}
|
|
222
|
-
.awsui_calendar-
|
|
222
|
+
.awsui_calendar-header_1ykar_bheeb_222:not(#\9) {
|
|
223
223
|
display: flex;
|
|
224
224
|
justify-content: space-between;
|
|
225
225
|
align-items: center;
|
|
226
226
|
}
|
|
227
|
-
.awsui_calendar-header-
|
|
227
|
+
.awsui_calendar-header-title_1ykar_bheeb_227:not(#\9) {
|
|
228
228
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
229
229
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
230
230
|
font-weight: var(--font-weight-bold-p16d06, 700);
|
|
@@ -232,30 +232,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
232
232
|
margin-block: 0;
|
|
233
233
|
margin-inline: 0;
|
|
234
234
|
}
|
|
235
|
-
.awsui_calendar-next-
|
|
235
|
+
.awsui_calendar-next-btn_1ykar_bheeb_235:not(#\9) {
|
|
236
236
|
/* used for identifying element */
|
|
237
237
|
}
|
|
238
|
-
.awsui_calendar-prev-
|
|
238
|
+
.awsui_calendar-prev-btn_1ykar_bheeb_238:not(#\9) {
|
|
239
239
|
/* used for identifying element */
|
|
240
240
|
}
|
|
241
|
-
.awsui_calendar-
|
|
241
|
+
.awsui_calendar-grid_1ykar_bheeb_241:not(#\9) {
|
|
242
242
|
inline-size: 100%;
|
|
243
243
|
table-layout: fixed;
|
|
244
244
|
}
|
|
245
|
-
.awsui_calendar-
|
|
245
|
+
.awsui_calendar-grid_1ykar_bheeb_241:not(#\9):not(.awsui_calendar-grid-dense_1ykar_bheeb_245) {
|
|
246
246
|
border-spacing: var(--space-calendar-grid-gutter-ma9rnc, 0px);
|
|
247
247
|
padding-block: var(--space-xs-kw7k3v, 8px);
|
|
248
248
|
padding-inline: var(--space-xs-kw7k3v, 8px);
|
|
249
249
|
}
|
|
250
|
-
.awsui_calendar-grid-
|
|
250
|
+
.awsui_calendar-grid-dense_1ykar_bheeb_245:not(#\9) {
|
|
251
251
|
border-spacing: 0;
|
|
252
252
|
}
|
|
253
|
-
.awsui_calendar-grid-
|
|
253
|
+
.awsui_calendar-grid-cell_1ykar_bheeb_253:not(#\9) {
|
|
254
254
|
word-break: break-word;
|
|
255
255
|
text-align: center;
|
|
256
256
|
font-weight: unset;
|
|
257
257
|
}
|
|
258
|
-
.awsui_calendar-date-
|
|
258
|
+
.awsui_calendar-date-header_1ykar_bheeb_258:not(#\9) {
|
|
259
259
|
padding-block-start: var(--space-s-4a5hs8, 12px);
|
|
260
260
|
padding-block-end: var(--space-xxs-jnczic, 4px);
|
|
261
261
|
padding-inline: 0;
|
|
@@ -264,7 +264,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
264
264
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
265
265
|
letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
|
|
266
266
|
}
|
|
267
|
-
.awsui_calendar-
|
|
267
|
+
.awsui_calendar-date_1ykar_bheeb_258:not(#\9) {
|
|
268
268
|
border-block-end: 1px solid var(--color-border-calendar-grid-zrkvhb, #eaeded);
|
|
269
269
|
border-inline-end: 1px solid var(--color-border-calendar-grid-zrkvhb, #eaeded);
|
|
270
270
|
padding-block: var(--space-xxs-jnczic, 4px);
|
|
@@ -272,23 +272,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
272
272
|
color: var(--color-text-dropdown-item-disabled-oysy8n, #aab7b8);
|
|
273
273
|
position: relative;
|
|
274
274
|
}
|
|
275
|
-
.awsui_calendar-
|
|
275
|
+
.awsui_calendar-date_1ykar_bheeb_258:not(#\9):first-child {
|
|
276
276
|
border-inline-start: 1px solid var(--color-border-calendar-grid-zrkvhb, #eaeded);
|
|
277
277
|
}
|
|
278
|
-
.awsui_calendar-date-
|
|
278
|
+
.awsui_calendar-date-enabled_1ykar_bheeb_278:not(#\9) {
|
|
279
279
|
cursor: pointer;
|
|
280
280
|
color: var(--color-text-dropdown-item-secondary-fi0yxi, #687078);
|
|
281
281
|
}
|
|
282
|
-
.awsui_calendar-date-
|
|
282
|
+
.awsui_calendar-date-enabled_1ykar_bheeb_278:not(#\9)::after {
|
|
283
283
|
border-start-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
284
284
|
border-start-end-radius: var(--border-radius-item-xggxkd, 0px);
|
|
285
285
|
border-end-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
286
286
|
border-end-end-radius: var(--border-radius-item-xggxkd, 0px);
|
|
287
287
|
}
|
|
288
|
-
.awsui_calendar-date-
|
|
288
|
+
.awsui_calendar-date-enabled_1ykar_bheeb_278.awsui_calendar-date-current-page_1ykar_bheeb_288:not(#\9) {
|
|
289
289
|
color: var(--color-text-dropdown-item-default-a6mvc9, #16191f);
|
|
290
290
|
}
|
|
291
|
-
.awsui_calendar-date-
|
|
291
|
+
.awsui_calendar-date-enabled_1ykar_bheeb_278.awsui_calendar-date-current-page_1ykar_bheeb_288:not(#\9):hover {
|
|
292
292
|
border-start-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
293
293
|
border-start-end-radius: var(--border-radius-item-xggxkd, 0px);
|
|
294
294
|
border-end-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
@@ -296,11 +296,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
296
296
|
color: var(--color-text-calendar-date-hover-79yvmk, #16191f);
|
|
297
297
|
background-color: var(--color-background-dropdown-item-hover-353r6f, #f2f3f3);
|
|
298
298
|
}
|
|
299
|
-
.awsui_calendar-date-
|
|
299
|
+
.awsui_calendar-date-enabled_1ykar_bheeb_278.awsui_calendar-date-current-page_1ykar_bheeb_288:not(#\9):hover:not(.awsui_calendar-date-selected_1ykar_bheeb_299)::after {
|
|
300
300
|
border-block: var(--border-item-width-acvlhx, 1px) solid var(--color-border-dropdown-item-hover-vony6u, #879596);
|
|
301
301
|
border-inline: var(--border-item-width-acvlhx, 1px) solid var(--color-border-dropdown-item-hover-vony6u, #879596);
|
|
302
302
|
}
|
|
303
|
-
.awsui_calendar-date-
|
|
303
|
+
.awsui_calendar-date-current_1ykar_bheeb_288:not(#\9) {
|
|
304
304
|
border-start-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
305
305
|
border-start-end-radius: var(--border-radius-item-xggxkd, 0px);
|
|
306
306
|
border-end-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
@@ -308,7 +308,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
308
308
|
background-color: var(--color-background-calendar-current-date-62569q, #f2f3f3);
|
|
309
309
|
font-weight: var(--font-weight-bold-p16d06, 700);
|
|
310
310
|
}
|
|
311
|
-
.awsui_calendar-
|
|
311
|
+
.awsui_calendar-date_1ykar_bheeb_258:not(#\9)::after {
|
|
312
312
|
content: "";
|
|
313
313
|
position: absolute;
|
|
314
314
|
z-index: 1;
|
|
@@ -317,29 +317,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
317
317
|
inset-inline-start: calc(-1 * var(--border-item-width-acvlhx, 1px));
|
|
318
318
|
inset-inline-end: calc(-1 * var(--border-item-width-acvlhx, 1px));
|
|
319
319
|
}
|
|
320
|
-
.awsui_calendar-
|
|
320
|
+
.awsui_calendar-date_1ykar_bheeb_258:not(#\9):not(.awsui_calendar-date-dense_1ykar_bheeb_320)::after {
|
|
321
321
|
inset-block-end: calc(-1 * var(--border-item-width-acvlhx, 1px));
|
|
322
322
|
inset-inline-start: calc(-1 * var(--border-item-width-acvlhx, 1px));
|
|
323
323
|
}
|
|
324
|
-
.awsui_calendar-date-
|
|
324
|
+
.awsui_calendar-date-dense_1ykar_bheeb_320:not(#\9)::after {
|
|
325
325
|
inset-block-end: -1px;
|
|
326
326
|
inset-inline-start: -1px;
|
|
327
327
|
}
|
|
328
|
-
.awsui_calendar-
|
|
328
|
+
.awsui_calendar-date_1ykar_bheeb_258 > .awsui_date-inner_1ykar_bheeb_328:not(#\9) {
|
|
329
329
|
position: relative;
|
|
330
330
|
z-index: 1;
|
|
331
331
|
}
|
|
332
|
-
.awsui_calendar-
|
|
332
|
+
.awsui_calendar-date_1ykar_bheeb_258:not(#\9):focus {
|
|
333
333
|
outline: none;
|
|
334
334
|
}
|
|
335
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-
|
|
335
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date_1ykar_bheeb_258:not(#\9):focus:focus {
|
|
336
336
|
position: relative;
|
|
337
337
|
}
|
|
338
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-
|
|
338
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date_1ykar_bheeb_258:not(#\9):focus:focus {
|
|
339
339
|
outline: 2px dotted transparent;
|
|
340
340
|
outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-e14r1f, 0px) - 1px);
|
|
341
341
|
}
|
|
342
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-
|
|
342
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date_1ykar_bheeb_258:not(#\9):focus:focus::before {
|
|
343
343
|
content: " ";
|
|
344
344
|
display: block;
|
|
345
345
|
position: absolute;
|
|
@@ -353,23 +353,23 @@ body[data-awsui-focus-visible=true] .awsui_calendar-date_1ykar_nr2li_258:not(#\9
|
|
|
353
353
|
border-end-end-radius: var(--border-radius-calendar-day-focus-ring-1443fe, 2px);
|
|
354
354
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
355
355
|
}
|
|
356
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-
|
|
356
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date_1ykar_bheeb_258:not(#\9):focus:focus::before {
|
|
357
357
|
z-index: 2;
|
|
358
358
|
}
|
|
359
|
-
.awsui_calendar-date-
|
|
359
|
+
.awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9) {
|
|
360
360
|
border-color: transparent;
|
|
361
361
|
position: relative;
|
|
362
362
|
z-index: 2;
|
|
363
363
|
font-weight: var(--font-weight-bold-p16d06, 700);
|
|
364
364
|
}
|
|
365
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-date-
|
|
365
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9):focus:focus {
|
|
366
366
|
position: relative;
|
|
367
367
|
}
|
|
368
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-date-
|
|
368
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9):focus:focus {
|
|
369
369
|
outline: 2px dotted transparent;
|
|
370
370
|
outline-offset: calc(var(--space-calendar-grid-focus-outline-gutter-e14r1f, 0px) - 1px);
|
|
371
371
|
}
|
|
372
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-date-
|
|
372
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9):focus:focus::before {
|
|
373
373
|
content: " ";
|
|
374
374
|
display: block;
|
|
375
375
|
position: absolute;
|
|
@@ -383,10 +383,10 @@ body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_nr2li_29
|
|
|
383
383
|
border-end-end-radius: var(--border-radius-calendar-day-focus-ring-1443fe, 2px);
|
|
384
384
|
box-shadow: 0 0 0 2px var(--color-border-calendar-grid-selected-focus-ring-nzjlw6, #0073bb);
|
|
385
385
|
}
|
|
386
|
-
body[data-awsui-focus-visible=true] .awsui_calendar-date-
|
|
386
|
+
body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9):focus:focus::before {
|
|
387
387
|
z-index: 2;
|
|
388
388
|
}
|
|
389
|
-
.awsui_calendar-date-
|
|
389
|
+
.awsui_calendar-date-selected_1ykar_bheeb_299:not(#\9)::after {
|
|
390
390
|
border-start-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
391
391
|
border-start-end-radius: var(--border-radius-item-xggxkd, 0px);
|
|
392
392
|
border-end-start-radius: var(--border-radius-item-xggxkd, 0px);
|
|
@@ -395,15 +395,15 @@ body[data-awsui-focus-visible=true] .awsui_calendar-date-selected_1ykar_nr2li_29
|
|
|
395
395
|
border-block: var(--border-item-width-acvlhx, 1px) solid var(--color-background-control-checked-se0x0e, #0073bb);
|
|
396
396
|
border-inline: var(--border-item-width-acvlhx, 1px) solid var(--color-background-control-checked-se0x0e, #0073bb);
|
|
397
397
|
}
|
|
398
|
-
.awsui_calendar-date-
|
|
398
|
+
.awsui_calendar-date-selected_1ykar_bheeb_299 > .awsui_date-inner_1ykar_bheeb_328:not(#\9) {
|
|
399
399
|
z-index: 2;
|
|
400
|
-
color: var(--color-
|
|
400
|
+
color: var(--color-text-calendar-date-selected-tuncoe, #ffffff);
|
|
401
401
|
position: relative;
|
|
402
402
|
}
|
|
403
|
-
.awsui_calendar-
|
|
403
|
+
.awsui_calendar-row_1ykar_bheeb_403:not(#\9):first-child > .awsui_calendar-date_1ykar_bheeb_258 {
|
|
404
404
|
border-block-start: 1px solid var(--color-border-calendar-grid-zrkvhb, #eaeded);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
.awsui_disabled-reason-
|
|
407
|
+
.awsui_disabled-reason-tooltip_1ykar_bheeb_407:not(#\9) {
|
|
408
408
|
/* used in test-utils or tests */
|
|
409
409
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"calendar": "
|
|
6
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
7
|
-
"root": "
|
|
8
|
-
"calendar-inner": "awsui_calendar-
|
|
9
|
-
"calendar-header": "awsui_calendar-
|
|
10
|
-
"calendar-header-title": "awsui_calendar-header-
|
|
11
|
-
"calendar-next-btn": "awsui_calendar-next-
|
|
12
|
-
"calendar-prev-btn": "awsui_calendar-prev-
|
|
13
|
-
"calendar-grid": "awsui_calendar-
|
|
14
|
-
"calendar-grid-dense": "awsui_calendar-grid-
|
|
15
|
-
"calendar-grid-cell": "awsui_calendar-grid-
|
|
16
|
-
"calendar-date-header": "awsui_calendar-date-
|
|
17
|
-
"calendar-date": "awsui_calendar-
|
|
18
|
-
"calendar-date-enabled": "awsui_calendar-date-
|
|
19
|
-
"calendar-date-current-page": "awsui_calendar-date-current-
|
|
20
|
-
"calendar-date-selected": "awsui_calendar-date-
|
|
21
|
-
"calendar-date-current": "awsui_calendar-date-
|
|
22
|
-
"calendar-date-dense": "awsui_calendar-date-
|
|
23
|
-
"date-inner": "awsui_date-
|
|
24
|
-
"calendar-row": "awsui_calendar-
|
|
25
|
-
"disabled-reason-tooltip": "awsui_disabled-reason-
|
|
5
|
+
"calendar": "awsui_calendar_1ykar_bheeb_153",
|
|
6
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_1ykar_bheeb_1",
|
|
7
|
+
"root": "awsui_root_1ykar_bheeb_180",
|
|
8
|
+
"calendar-inner": "awsui_calendar-inner_1ykar_bheeb_218",
|
|
9
|
+
"calendar-header": "awsui_calendar-header_1ykar_bheeb_222",
|
|
10
|
+
"calendar-header-title": "awsui_calendar-header-title_1ykar_bheeb_227",
|
|
11
|
+
"calendar-next-btn": "awsui_calendar-next-btn_1ykar_bheeb_235",
|
|
12
|
+
"calendar-prev-btn": "awsui_calendar-prev-btn_1ykar_bheeb_238",
|
|
13
|
+
"calendar-grid": "awsui_calendar-grid_1ykar_bheeb_241",
|
|
14
|
+
"calendar-grid-dense": "awsui_calendar-grid-dense_1ykar_bheeb_245",
|
|
15
|
+
"calendar-grid-cell": "awsui_calendar-grid-cell_1ykar_bheeb_253",
|
|
16
|
+
"calendar-date-header": "awsui_calendar-date-header_1ykar_bheeb_258",
|
|
17
|
+
"calendar-date": "awsui_calendar-date_1ykar_bheeb_258",
|
|
18
|
+
"calendar-date-enabled": "awsui_calendar-date-enabled_1ykar_bheeb_278",
|
|
19
|
+
"calendar-date-current-page": "awsui_calendar-date-current-page_1ykar_bheeb_288",
|
|
20
|
+
"calendar-date-selected": "awsui_calendar-date-selected_1ykar_bheeb_299",
|
|
21
|
+
"calendar-date-current": "awsui_calendar-date-current_1ykar_bheeb_288",
|
|
22
|
+
"calendar-date-dense": "awsui_calendar-date-dense_1ykar_bheeb_320",
|
|
23
|
+
"date-inner": "awsui_date-inner_1ykar_bheeb_328",
|
|
24
|
+
"calendar-row": "awsui_calendar-row_1ykar_bheeb_403",
|
|
25
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_1ykar_bheeb_407"
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAU3D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxF,KAAK,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CACtE;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAGG,EACH,QAAQ,EACR,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,qBAA6B,EAC7B,WAAW,GACZ,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAU3D,UAAU,6BAA8B,SAAQ,0BAA0B,CAAC,wBAAwB;IACjG,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACxF,KAAK,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;CACtE;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAGG,EACH,QAAQ,EACR,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,qBAA6B,EAC7B,WAAW,GACZ,EAAE,6BAA6B,eAgI/B"}
|
|
@@ -34,7 +34,7 @@ export default function ContentDisplayPreference({ title, description, options,
|
|
|
34
34
|
// are not in the value yet, so they're added as non-visible after the known ones.
|
|
35
35
|
onChange(sortedOptions.map(({ id, visible }) => ({ id, visible: id === option.id ? !option.visible : visible })));
|
|
36
36
|
};
|
|
37
|
-
return (React.createElement("div", { className: styles[componentPrefix], ...getAnalyticsInnerContextAttribute('contentDisplay') },
|
|
37
|
+
return (React.createElement("div", { role: "group", "aria-labelledby": titleId, "aria-describedby": descriptionId, className: styles[componentPrefix], ...getAnalyticsInnerContextAttribute('contentDisplay') },
|
|
38
38
|
React.createElement("h3", { className: getClassName('title'), id: titleId }, i18n('contentDisplayPreference.title', title)),
|
|
39
39
|
React.createElement("p", { className: getClassName('description'), id: descriptionId }, i18n('contentDisplayPreference.description', description)),
|
|
40
40
|
enableColumnFiltering && (React.createElement("div", { className: getClassName('text-filter') },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,gEAAgE,CAAC;AACxE,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAwB,MAAM,SAAS,CAAC;AAErF,OAAO,MAAM,MAAM,kBAAk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EAAE,EAAE,EAAE,EAAE;gBACzC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC,EACD,eAAe,EAAE,aAAa,EAC9B,cAAc,EAAE,OAAO,EACvB,WAAW,EAAE;gBACX,0BAA0B,EAAE,IAAI,CAC9B,qDAAqD,EACrD,0BAA0B,EAC1B,gBAAgB,CACjB;gBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,sBAAsB,CACvB;gBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,sBAAsB,CACvB;gBACD,4BAA4B,EAAE,IAAI,CAChC,uDAAuD,EACvD,4BAA4B,CAC7B;gBACD,mBAAmB,EAAE,IAAI,CAAC,8CAA8C,EAAE,mBAAmB,CAAC;gBAC9F,yBAAyB,EAAE,IAAI,CAC7B,oDAAoD,EACpD,yBAAyB,CAC1B;aACF,GACD,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo, useState } from 'react';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalBox from '../../box/internal';\nimport InternalButton from '../../button/internal';\nimport { useInternalI18n } from '../../i18n/context';\nimport {\n formatDndItemCommitted,\n formatDndItemReordered,\n formatDndStarted,\n} from '../../internal/components/sortable-area/use-live-announcements';\nimport InternalList from '../../list/internal';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { getAnalyticsInnerContextAttribute } from '../analytics-metadata/utils';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport ContentDisplayOption from './content-display-option';\nimport { getFilteredOptions, getSortedOptions, OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display';\n\nconst getClassName = (suffix: string) => styles[`${componentPrefix}-${suffix}`];\n\ninterface ContentDisplayPreferenceProps extends CollectionPreferencesProps.ContentDisplayPreference {\n onChange: (value: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>) => void;\n value?: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}\n\nexport default function ContentDisplayPreference({\n title,\n description,\n options,\n value = options.map(({ id }) => ({\n id,\n visible: true,\n })),\n onChange,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n dragHandleAriaDescription,\n dragHandleAriaLabel,\n enableColumnFiltering = false,\n i18nStrings,\n}: ContentDisplayPreferenceProps) {\n const idPrefix = useUniqueId(componentPrefix);\n const i18n = useInternalI18n('collection-preferences');\n const [columnFilteringText, setColumnFilteringText] = useState('');\n\n const titleId = `${idPrefix}-title`;\n const descriptionId = `${idPrefix}-description`;\n\n const [sortedOptions, sortedAndFilteredOptions] = useMemo(() => {\n const sorted = getSortedOptions({ options, contentDisplay: value });\n const filtered = getFilteredOptions(sorted, columnFilteringText);\n return [sorted, filtered];\n }, [columnFilteringText, options, value]);\n\n const onToggle = (option: OptionWithVisibility) => {\n // We use sortedOptions as base and not value because there might be options that\n // are not in the value yet, so they're added as non-visible after the known ones.\n onChange(sortedOptions.map(({ id, visible }) => ({ id, visible: id === option.id ? !option.visible : visible })));\n };\n\n return (\n <div className={styles[componentPrefix]} {...getAnalyticsInnerContextAttribute('contentDisplay')}>\n <h3 className={getClassName('title')} id={titleId}>\n {i18n('contentDisplayPreference.title', title)}\n </h3>\n <p className={getClassName('description')} id={descriptionId}>\n {i18n('contentDisplayPreference.description', description)}\n </p>\n\n {/* Filter input */}\n {enableColumnFiltering && (\n <div className={getClassName('text-filter')}>\n <InternalTextFilter\n filteringText={columnFilteringText}\n filteringPlaceholder={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringPlaceholder',\n i18nStrings?.columnFilteringPlaceholder\n )}\n filteringAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringAriaLabel',\n i18nStrings?.columnFilteringAriaLabel\n )}\n filteringClearAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n onChange={({ detail }) => setColumnFilteringText(detail.filteringText)}\n countText={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringCountText',\n i18nStrings?.columnFilteringCountText\n ? i18nStrings?.columnFilteringCountText(sortedAndFilteredOptions.length)\n : undefined,\n format => format({ count: sortedAndFilteredOptions.length })\n )}\n />\n </div>\n )}\n\n {/* No match */}\n {sortedAndFilteredOptions.length === 0 && (\n <div className={getClassName('no-match')}>\n <InternalSpaceBetween size=\"s\" alignItems=\"center\">\n <InternalBox margin={{ top: 'm' }}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringNoMatchText',\n i18nStrings?.columnFilteringNoMatchText\n )}\n </InternalBox>\n <InternalButton onClick={() => setColumnFilteringText('')}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n </InternalButton>\n </InternalSpaceBetween>\n </div>\n )}\n\n <InternalList\n items={sortedAndFilteredOptions}\n renderItem={item => ({\n id: item.id,\n content: <ContentDisplayOption option={item} onToggle={onToggle} />,\n announcementLabel: item.label,\n })}\n disableItemPaddings={true}\n sortable={true}\n sortDisabled={columnFilteringText.trim().length > 0}\n onSortingChange={({ detail: { items } }) => {\n onChange(items);\n }}\n ariaDescribedby={descriptionId}\n ariaLabelledby={titleId}\n i18nStrings={{\n liveAnnouncementDndStarted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndStarted',\n liveAnnouncementDndStarted,\n formatDndStarted\n ),\n liveAnnouncementDndItemReordered: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemReordered',\n liveAnnouncementDndItemReordered,\n formatDndItemReordered\n ),\n liveAnnouncementDndItemCommitted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemCommitted',\n liveAnnouncementDndItemCommitted,\n formatDndItemCommitted\n ),\n liveAnnouncementDndDiscarded: i18n(\n 'contentDisplayPreference.liveAnnouncementDndDiscarded',\n liveAnnouncementDndDiscarded\n ),\n dragHandleAriaLabel: i18n('contentDisplayPreference.dragHandleAriaLabel', dragHandleAriaLabel),\n dragHandleAriaDescription: i18n(\n 'contentDisplayPreference.dragHandleAriaDescription',\n dragHandleAriaDescription\n ),\n }}\n />\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collection-preferences/content-display/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,gEAAgE,CAAC;AACxE,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,kBAAkB,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAEhF,OAAO,oBAAoB,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAwB,MAAM,SAAS,CAAC;AAErF,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,eAAe,IAAI,MAAM,EAAE,CAAC,CAAC;AAOhF,MAAM,CAAC,OA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AAW,EAAE;gBACX,0BAA0B,EAAE,IAAI,CAC9B,qDAAqD,EACrD,0BAA0B,EAC1B,gBAAgB,CACjB;gBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,sBAAsB,CACvB;gBACD,gCAAgC,EAAE,IAAI,CACpC,2DAA2D,EAC3D,gCAAgC,EAChC,sBAAsB,CACvB;gBACD,4BAA4B,EAAE,IAAI,CAChC,uDAAuD,EACvD,4BAA4B,CAC7B;gBACD,mBAAmB,EAAE,IAAI,CAAC,8CAA8C,EAAE,mBAAmB,CAAC;gBAC9F,yBAAyB,EAAE,IAAI,CAC7B,oDAAoD,EACpD,yBAAyB,CAC1B;aACF,GACD,CACE,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useMemo, useState } from 'react';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalBox from '../../box/internal';\nimport InternalButton from '../../button/internal';\nimport { useInternalI18n } from '../../i18n/context';\nimport {\n formatDndItemCommitted,\n formatDndItemReordered,\n formatDndStarted,\n} from '../../internal/components/sortable-area/use-live-announcements';\nimport InternalList from '../../list/internal';\nimport InternalSpaceBetween from '../../space-between/internal';\nimport InternalTextFilter from '../../text-filter/internal';\nimport { getAnalyticsInnerContextAttribute } from '../analytics-metadata/utils';\nimport { CollectionPreferencesProps } from '../interfaces';\nimport ContentDisplayOption from './content-display-option';\nimport { getFilteredOptions, getSortedOptions, OptionWithVisibility } from './utils';\n\nimport styles from '../styles.css.js';\n\nconst componentPrefix = 'content-display';\n\nconst getClassName = (suffix: string) => styles[`${componentPrefix}-${suffix}`];\n\ninterface ContentDisplayPreferenceProps extends CollectionPreferencesProps.ContentDisplayPreference {\n onChange: (value: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>) => void;\n value?: ReadonlyArray<CollectionPreferencesProps.ContentDisplayItem>;\n}\n\nexport default function ContentDisplayPreference({\n title,\n description,\n options,\n value = options.map(({ id }) => ({\n id,\n visible: true,\n })),\n onChange,\n liveAnnouncementDndStarted,\n liveAnnouncementDndItemReordered,\n liveAnnouncementDndItemCommitted,\n liveAnnouncementDndDiscarded,\n dragHandleAriaDescription,\n dragHandleAriaLabel,\n enableColumnFiltering = false,\n i18nStrings,\n}: ContentDisplayPreferenceProps) {\n const idPrefix = useUniqueId(componentPrefix);\n const i18n = useInternalI18n('collection-preferences');\n const [columnFilteringText, setColumnFilteringText] = useState('');\n\n const titleId = `${idPrefix}-title`;\n const descriptionId = `${idPrefix}-description`;\n\n const [sortedOptions, sortedAndFilteredOptions] = useMemo(() => {\n const sorted = getSortedOptions({ options, contentDisplay: value });\n const filtered = getFilteredOptions(sorted, columnFilteringText);\n return [sorted, filtered];\n }, [columnFilteringText, options, value]);\n\n const onToggle = (option: OptionWithVisibility) => {\n // We use sortedOptions as base and not value because there might be options that\n // are not in the value yet, so they're added as non-visible after the known ones.\n onChange(sortedOptions.map(({ id, visible }) => ({ id, visible: id === option.id ? !option.visible : visible })));\n };\n\n return (\n <div\n role=\"group\"\n aria-labelledby={titleId}\n aria-describedby={descriptionId}\n className={styles[componentPrefix]}\n {...getAnalyticsInnerContextAttribute('contentDisplay')}\n >\n <h3 className={getClassName('title')} id={titleId}>\n {i18n('contentDisplayPreference.title', title)}\n </h3>\n <p className={getClassName('description')} id={descriptionId}>\n {i18n('contentDisplayPreference.description', description)}\n </p>\n\n {/* Filter input */}\n {enableColumnFiltering && (\n <div className={getClassName('text-filter')}>\n <InternalTextFilter\n filteringText={columnFilteringText}\n filteringPlaceholder={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringPlaceholder',\n i18nStrings?.columnFilteringPlaceholder\n )}\n filteringAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringAriaLabel',\n i18nStrings?.columnFilteringAriaLabel\n )}\n filteringClearAriaLabel={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n onChange={({ detail }) => setColumnFilteringText(detail.filteringText)}\n countText={i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringCountText',\n i18nStrings?.columnFilteringCountText\n ? i18nStrings?.columnFilteringCountText(sortedAndFilteredOptions.length)\n : undefined,\n format => format({ count: sortedAndFilteredOptions.length })\n )}\n />\n </div>\n )}\n\n {/* No match */}\n {sortedAndFilteredOptions.length === 0 && (\n <div className={getClassName('no-match')}>\n <InternalSpaceBetween size=\"s\" alignItems=\"center\">\n <InternalBox margin={{ top: 'm' }}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringNoMatchText',\n i18nStrings?.columnFilteringNoMatchText\n )}\n </InternalBox>\n <InternalButton onClick={() => setColumnFilteringText('')}>\n {i18n(\n 'contentDisplayPreference.i18nStrings.columnFilteringClearFilterText',\n i18nStrings?.columnFilteringClearFilterText\n )}\n </InternalButton>\n </InternalSpaceBetween>\n </div>\n )}\n\n <InternalList\n items={sortedAndFilteredOptions}\n renderItem={item => ({\n id: item.id,\n content: <ContentDisplayOption option={item} onToggle={onToggle} />,\n announcementLabel: item.label,\n })}\n disableItemPaddings={true}\n sortable={true}\n sortDisabled={columnFilteringText.trim().length > 0}\n onSortingChange={({ detail: { items } }) => {\n onChange(items);\n }}\n ariaDescribedby={descriptionId}\n ariaLabelledby={titleId}\n i18nStrings={{\n liveAnnouncementDndStarted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndStarted',\n liveAnnouncementDndStarted,\n formatDndStarted\n ),\n liveAnnouncementDndItemReordered: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemReordered',\n liveAnnouncementDndItemReordered,\n formatDndItemReordered\n ),\n liveAnnouncementDndItemCommitted: i18n(\n 'contentDisplayPreference.liveAnnouncementDndItemCommitted',\n liveAnnouncementDndItemCommitted,\n formatDndItemCommitted\n ),\n liveAnnouncementDndDiscarded: i18n(\n 'contentDisplayPreference.liveAnnouncementDndDiscarded',\n liveAnnouncementDndDiscarded\n ),\n dragHandleAriaLabel: i18n('contentDisplayPreference.dragHandleAriaLabel', dragHandleAriaLabel),\n dragHandleAriaDescription: i18n(\n 'contentDisplayPreference.dragHandleAriaDescription',\n dragHandleAriaDescription\n ),\n }}\n />\n </div>\n );\n}\n"]}
|
|
@@ -57,7 +57,6 @@ export interface ContainerProps extends BaseComponentProps {
|
|
|
57
57
|
footer?: React.ReactNode;
|
|
58
58
|
/**
|
|
59
59
|
* Determines whether the container footer has padding. If `true`, removes the default padding from the footer.
|
|
60
|
-
* @awsuiSystem core
|
|
61
60
|
*/
|
|
62
61
|
disableFooterPaddings?: boolean;
|
|
63
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;IAErD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../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AAI,CAAC,EAAE;YACL,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,OAAO,CAAC,EAAE;YACR,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,IAAI,EAAE;gBACJ,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,aAAa,CAAC,EAAE,MAAM,CAAC;aACxB,CAAC;YACF,OAAO,EAAE;gBACP,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;SACH,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * @analytics\n */\n analyticsMetadata?: ContainerProps.AnalyticsMetadata;\n\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n *\n * Use this slot to render a media element. Supported element types are 'img', 'video', and 'picture'.\n * You can define different positions and sizes for the media element within the container.\n *\n * * `content` - Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.\n *\n * * `position` - Defines the media slot's position within the container. Defaults to `top`.\n *\n * * `width` - Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it.\n * Note: This value is considered only when `position` is set to `side`.\n * If no width is provided, the media slot will take a maximum of 66% of the container's width.\n *\n * * `height` - Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it. * Note: This value is only considered if `position` is set to `top`.\n * If no height is provided, the media slot will be displayed at its full height.\n *\n */\n media?: ContainerProps.Media;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Determines whether the container footer has padding. If `true`, removes the default padding from the footer.\n
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * @analytics\n */\n analyticsMetadata?: ContainerProps.AnalyticsMetadata;\n\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n *\n * Use this slot to render a media element. Supported element types are 'img', 'video', and 'picture'.\n * You can define different positions and sizes for the media element within the container.\n *\n * * `content` - Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.\n *\n * * `position` - Defines the media slot's position within the container. Defaults to `top`.\n *\n * * `width` - Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it.\n * Note: This value is considered only when `position` is set to `side`.\n * If no width is provided, the media slot will take a maximum of 66% of the container's width.\n *\n * * `height` - Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.\n * When this value is set, media elements larger than the defined width may be cropped, with 'object-fit: cover' centering it. * Note: This value is only considered if `position` is set to `top`.\n * If no height is provided, the media slot will be displayed at its full height.\n *\n */\n media?: ContainerProps.Media;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Determines whether the container footer has padding. If `true`, removes the default padding from the footer.\n */\n disableFooterPaddings?: boolean;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n\n /**\n * An object containing CSS properties to customize the container's visual appearance.\n * Refer to the [style](/components/container/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: ContainerProps.Style;\n}\n\nexport namespace ContainerProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n }\n export interface Media {\n /**\n * Use this slot to render your media element. We support `img`, `video`, `picture`, and `iframe` elements.\n */\n content: React.ReactNode;\n\n /**\n * Defines the media slot's position within the container. Defaults to `top`.\n */\n position?: 'top' | 'side';\n\n /**\n * Defines the width of the media slot when positioned on the side. Corresponds to the `width` CSS-property.\n * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.\n *\n * Note: This value is considered only when `position` is set to `side`.\n * If no width is provided, the media slot will take a maximum of 66% of the container's width.\n */\n width?: string | number;\n\n /**\n * Defines the height of the media slot when position on the top. Corresponds to the `height` CSS-property.\n * When this value is set, the media element may be cropped, with `object-fit: cover` centering it.\n *\n * Note: This value is only considered if `position` is set to `top`.\n * If no height is provided, the media slot will be displayed at its full height.\n */\n height?: string | number;\n }\n\n export interface Style {\n root?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: string;\n color?: string;\n };\n content?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n header?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n footer?: {\n root: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n divider: {\n borderColor?: string;\n borderWidth?: string;\n };\n };\n }\n}\n"]}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"grid": "
|
|
5
|
-
"grid-cell": "awsui_grid-
|
|
6
|
-
"day-header": "awsui_day-
|
|
7
|
-
"day": "
|
|
8
|
-
"month": "
|
|
9
|
-
"day-inner": "awsui_day-
|
|
10
|
-
"month-inner": "awsui_month-
|
|
11
|
-
"in-first-row": "awsui_in-first-
|
|
12
|
-
"in-previous-month": "awsui_in-previous-
|
|
13
|
-
"in-previous-year": "awsui_in-previous-
|
|
14
|
-
"last-day-of-month": "awsui_last-day-of-
|
|
15
|
-
"last-month-of-year": "awsui_last-month-of-
|
|
16
|
-
"in-next-month": "awsui_in-next-
|
|
17
|
-
"in-next-year": "awsui_in-next-
|
|
18
|
-
"in-first-column": "awsui_in-first-
|
|
19
|
-
"in-visible-calendar": "awsui_in-visible-
|
|
20
|
-
"in-current-month": "awsui_in-current-
|
|
21
|
-
"in-current-year": "awsui_in-current-
|
|
22
|
-
"enabled": "
|
|
23
|
-
"in-range": "awsui_in-
|
|
24
|
-
"end-date": "awsui_end-
|
|
25
|
-
"start-date": "awsui_start-
|
|
26
|
-
"no-range": "awsui_no-
|
|
27
|
-
"selected": "
|
|
28
|
-
"today": "
|
|
29
|
-
"this-month": "awsui_this-
|
|
30
|
-
"in-range-border-block-start": "awsui_in-range-border-block-
|
|
31
|
-
"in-range-border-inline-end": "awsui_in-range-border-inline-
|
|
32
|
-
"in-range-border-block-end": "awsui_in-range-border-block-
|
|
33
|
-
"in-range-border-inline-start": "awsui_in-range-border-inline-
|
|
4
|
+
"grid": "awsui_grid_1mfbn_1vm0p_149",
|
|
5
|
+
"grid-cell": "awsui_grid-cell_1mfbn_1vm0p_154",
|
|
6
|
+
"day-header": "awsui_day-header_1mfbn_1vm0p_161",
|
|
7
|
+
"day": "awsui_day_1mfbn_1vm0p_161",
|
|
8
|
+
"month": "awsui_month_1mfbn_1vm0p_172",
|
|
9
|
+
"day-inner": "awsui_day-inner_1mfbn_1vm0p_220",
|
|
10
|
+
"month-inner": "awsui_month-inner_1mfbn_1vm0p_221",
|
|
11
|
+
"in-first-row": "awsui_in-first-row_1mfbn_1vm0p_228",
|
|
12
|
+
"in-previous-month": "awsui_in-previous-month_1mfbn_1vm0p_228",
|
|
13
|
+
"in-previous-year": "awsui_in-previous-year_1mfbn_1vm0p_229",
|
|
14
|
+
"last-day-of-month": "awsui_last-day-of-month_1mfbn_1vm0p_233",
|
|
15
|
+
"last-month-of-year": "awsui_last-month-of-year_1mfbn_1vm0p_234",
|
|
16
|
+
"in-next-month": "awsui_in-next-month_1mfbn_1vm0p_238",
|
|
17
|
+
"in-next-year": "awsui_in-next-year_1mfbn_1vm0p_239",
|
|
18
|
+
"in-first-column": "awsui_in-first-column_1mfbn_1vm0p_243",
|
|
19
|
+
"in-visible-calendar": "awsui_in-visible-calendar_1mfbn_1vm0p_246",
|
|
20
|
+
"in-current-month": "awsui_in-current-month_1mfbn_1vm0p_246",
|
|
21
|
+
"in-current-year": "awsui_in-current-year_1mfbn_1vm0p_246",
|
|
22
|
+
"enabled": "awsui_enabled_1mfbn_1vm0p_250",
|
|
23
|
+
"in-range": "awsui_in-range_1mfbn_1vm0p_256",
|
|
24
|
+
"end-date": "awsui_end-date_1mfbn_1vm0p_256",
|
|
25
|
+
"start-date": "awsui_start-date_1mfbn_1vm0p_256",
|
|
26
|
+
"no-range": "awsui_no-range_1mfbn_1vm0p_256",
|
|
27
|
+
"selected": "awsui_selected_1mfbn_1vm0p_266",
|
|
28
|
+
"today": "awsui_today_1mfbn_1vm0p_271",
|
|
29
|
+
"this-month": "awsui_this-month_1mfbn_1vm0p_272",
|
|
30
|
+
"in-range-border-block-start": "awsui_in-range-border-block-start_1mfbn_1vm0p_328",
|
|
31
|
+
"in-range-border-inline-end": "awsui_in-range-border-inline-end_1mfbn_1vm0p_331",
|
|
32
|
+
"in-range-border-block-end": "awsui_in-range-border-block-end_1mfbn_1vm0p_334",
|
|
33
|
+
"in-range-border-inline-start": "awsui_in-range-border-inline-start_1mfbn_1vm0p_337"
|
|
34
34
|
};
|
|
35
35
|
|