@cloudscape-design/components-themeable 3.0.287 → 3.0.288
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/collection-preferences/content-display/content-display-option.scss +1 -0
- package/lib/internal/scss/collection-preferences/styles.scss +1 -6
- package/lib/internal/scss/table/body-cell/styles.scss +0 -52
- package/lib/internal/scss/table/header-cell/styles.scss +0 -28
- package/lib/internal/template/collection-preferences/content-display/styles.css.js +11 -11
- package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +18 -17
- package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +11 -11
- package/lib/internal/template/collection-preferences/index.d.ts +1 -1
- package/lib/internal/template/collection-preferences/index.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/index.js +4 -6
- package/lib/internal/template/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.d.ts +12 -42
- package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
- package/lib/internal/template/collection-preferences/styles.css.js +32 -37
- package/lib/internal/template/collection-preferences/styles.scoped.css +40 -44
- package/lib/internal/template/collection-preferences/styles.selectors.js +32 -37
- package/lib/internal/template/collection-preferences/utils.d.ts +1 -12
- package/lib/internal/template/collection-preferences/utils.d.ts.map +1 -1
- package/lib/internal/template/collection-preferences/utils.js +1 -15
- package/lib/internal/template/collection-preferences/utils.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +0 -14
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/table/body-cell/styles.css.js +23 -28
- package/lib/internal/template/table/body-cell/styles.scoped.css +55 -111
- package/lib/internal/template/table/body-cell/styles.selectors.js +23 -28
- package/lib/internal/template/table/body-cell/td-element.d.ts +0 -3
- package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/td-element.js +2 -16
- package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts +1 -4
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +2 -9
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +19 -24
- package/lib/internal/template/table/header-cell/styles.scoped.css +32 -67
- package/lib/internal/template/table/header-cell/styles.selectors.js +19 -24
- package/lib/internal/template/table/interfaces.d.ts +0 -14
- package/lib/internal/template/table/interfaces.d.ts.map +1 -1
- package/lib/internal/template/table/interfaces.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +6 -19
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/thead.d.ts +0 -2
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +4 -12
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/table/use-sticky-columns.d.ts.map +1 -1
- package/lib/internal/template/table/use-sticky-columns.js +1 -5
- package/lib/internal/template/table/use-sticky-columns.js.map +1 -1
- package/lib/internal/template/table/utils.d.ts +0 -4
- package/lib/internal/template/table/utils.d.ts.map +1 -1
- package/lib/internal/template/table/utils.js +0 -8
- package/lib/internal/template/table/utils.js.map +1 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/index.d.ts +0 -2
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js +1 -6
- package/lib/internal/template/test-utils/dom/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.d.ts +0 -2
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js +1 -6
- package/lib/internal/template/test-utils/selectors/collection-preferences/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.d.ts +0 -9
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.js +0 -23
- package/lib/internal/template/test-utils/dom/collection-preferences/sticky-columns-preference.js.map +0 -1
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.d.ts +0 -9
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.js +0 -23
- package/lib/internal/template/test-utils/selectors/collection-preferences/sticky-columns-preference.js.map +0 -1
package/lib/internal/scss/collection-preferences/content-display/content-display-option.scss
CHANGED
|
@@ -40,6 +40,7 @@ $border-radius: awsui.$border-radius-item;
|
|
|
40
40
|
border-top: awsui.$border-divider-list-width solid awsui.$color-border-divider-default;
|
|
41
41
|
&:not(.placeholder).sorting {
|
|
42
42
|
@include animated;
|
|
43
|
+
z-index: 1;
|
|
43
44
|
}
|
|
44
45
|
&.placeholder {
|
|
45
46
|
> .content-display-option-content {
|
|
@@ -26,11 +26,6 @@
|
|
|
26
26
|
.content-density,
|
|
27
27
|
.page-size,
|
|
28
28
|
.page-size-form-field,
|
|
29
|
-
.page-size-radio-group
|
|
30
|
-
.sticky-columns,
|
|
31
|
-
.sticky-columns-form-field,
|
|
32
|
-
.sticky-columns-radio-group,
|
|
33
|
-
.sticky-columns-first,
|
|
34
|
-
.sticky-columns-last {
|
|
29
|
+
.page-size-radio-group {
|
|
35
30
|
/* used in test-utils */
|
|
36
31
|
}
|
|
@@ -53,9 +53,6 @@ $border-placeholder: awsui.$border-item-width solid transparent;
|
|
|
53
53
|
*/
|
|
54
54
|
&:first-child.has-striped-rows {
|
|
55
55
|
padding-left: awsui.$space-xxs;
|
|
56
|
-
&-sticky-cell-pad-left {
|
|
57
|
-
padding-left: awsui.$space-table-horizontal;
|
|
58
|
-
}
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
/*
|
|
@@ -105,48 +102,6 @@ $border-placeholder: awsui.$border-item-width solid transparent;
|
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
104
|
|
|
108
|
-
&.sticky-cell {
|
|
109
|
-
position: sticky;
|
|
110
|
-
background: awsui.$color-background-container-content;
|
|
111
|
-
z-index: 798; // Our sticky elements should have z-index in the range of 800-850, this value needs to be lower
|
|
112
|
-
&-pad-left:not(.has-selection):not(.is-visual-refresh.body-cell:first-child.has-striped-rows) {
|
|
113
|
-
padding-left: awsui.$space-table-horizontal;
|
|
114
|
-
}
|
|
115
|
-
&.body-cell-shaded {
|
|
116
|
-
background: awsui.$color-background-cell-shaded;
|
|
117
|
-
}
|
|
118
|
-
&.body-cell-selected {
|
|
119
|
-
background-color: awsui.$color-background-item-selected;
|
|
120
|
-
|
|
121
|
-
// Create a background using box-shadow and clip path to hide underlying elements
|
|
122
|
-
&:first-child {
|
|
123
|
-
box-shadow: 0 0 0 4px awsui.$color-background-container-content;
|
|
124
|
-
clip-path: inset(0 0 0 0);
|
|
125
|
-
}
|
|
126
|
-
&:last-child {
|
|
127
|
-
box-shadow: 4px 0 0 0 awsui.$color-background-container-content;
|
|
128
|
-
clip-path: inset(0 0 0 0);
|
|
129
|
-
&.sticky-cell-last-right {
|
|
130
|
-
box-shadow: awsui.$shadow-sticky-column-last, 8px 0 0 0 awsui.$color-background-container-content;
|
|
131
|
-
clip-path: inset(0 0 0 -24px);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
&-last-left {
|
|
136
|
-
box-shadow: awsui.$shadow-sticky-column-first;
|
|
137
|
-
clip-path: inset(0px -24px 0px 0px);
|
|
138
|
-
}
|
|
139
|
-
&-last-right {
|
|
140
|
-
box-shadow: awsui.$shadow-sticky-column-last;
|
|
141
|
-
clip-path: inset(0 0 0 -24px);
|
|
142
|
-
}
|
|
143
|
-
@include styles.with-motion {
|
|
144
|
-
transition-property: padding;
|
|
145
|
-
transition-duration: awsui.$motion-duration-transition-show-quick;
|
|
146
|
-
transition-timing-function: awsui.$motion-easing-sticky;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
105
|
// Use padding as a selected border placeholder to make sure rows don't change height on selection (visual refresh)
|
|
151
106
|
&-selected:not(:first-child) {
|
|
152
107
|
padding-top: $cell-vertical-padding-w-border;
|
|
@@ -238,15 +193,8 @@ $border-placeholder: awsui.$border-item-width solid transparent;
|
|
|
238
193
|
position: relative;
|
|
239
194
|
cursor: pointer;
|
|
240
195
|
|
|
241
|
-
&.sticky-cell {
|
|
242
|
-
position: sticky;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
196
|
&.body-cell-edit-active {
|
|
246
197
|
overflow: visible;
|
|
247
|
-
&.sticky-cell {
|
|
248
|
-
position: sticky;
|
|
249
|
-
}
|
|
250
198
|
}
|
|
251
199
|
|
|
252
200
|
&:not(.body-cell-edit-active) {
|
|
@@ -31,31 +31,6 @@
|
|
|
31
31
|
padding-right: awsui.$space-xs;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
&.sticky-cell {
|
|
35
|
-
position: sticky;
|
|
36
|
-
background: awsui.$color-background-table-header;
|
|
37
|
-
z-index: 798; // Lower than the AppLayout's notification slot z-index(799)
|
|
38
|
-
&-pad-left:not(.has-selection) {
|
|
39
|
-
padding-left: awsui.$space-table-horizontal;
|
|
40
|
-
}
|
|
41
|
-
&-last-left {
|
|
42
|
-
box-shadow: awsui.$shadow-sticky-column-first;
|
|
43
|
-
clip-path: inset(0px -24px 0px 0px);
|
|
44
|
-
&:not(.header-cell-resizable):before {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
&-last-right {
|
|
49
|
-
box-shadow: awsui.$shadow-sticky-column-last;
|
|
50
|
-
clip-path: inset(0 0 0 -24px);
|
|
51
|
-
}
|
|
52
|
-
@include styles.with-motion {
|
|
53
|
-
transition-property: padding;
|
|
54
|
-
transition-duration: awsui.$motion-duration-transition-show-quick;
|
|
55
|
-
transition-timing-function: awsui.$motion-easing-sticky;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
34
|
&:not(:last-child):before {
|
|
60
35
|
$gap: calc(2 * #{awsui.$space-xs} + #{awsui.$space-xxxs});
|
|
61
36
|
|
|
@@ -164,9 +139,6 @@ settings icon in the pagination slot.
|
|
|
164
139
|
.header-cell.is-visual-refresh {
|
|
165
140
|
&:first-child:not(.has-striped-rows) {
|
|
166
141
|
padding-left: awsui.$space-xxxs;
|
|
167
|
-
&.sticky-cell-pad-left {
|
|
168
|
-
padding-left: awsui.$space-table-horizontal;
|
|
169
|
-
}
|
|
170
142
|
}
|
|
171
143
|
|
|
172
144
|
/*
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
5
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
6
|
-
"content-display-option": "awsui_content-display-
|
|
7
|
-
"placeholder": "
|
|
8
|
-
"sorting": "
|
|
9
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
10
|
-
"drag-overlay": "awsui_drag-
|
|
11
|
-
"content-display": "awsui_content-
|
|
12
|
-
"content-display-title": "awsui_content-display-
|
|
13
|
-
"content-display-description": "awsui_content-display-
|
|
14
|
-
"content-display-option-list": "awsui_content-display-option-
|
|
4
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_p05e7_185",
|
|
5
|
+
"content-display-option-content": "awsui_content-display-option-content_1f3h0_p05e7_189",
|
|
6
|
+
"content-display-option": "awsui_content-display-option_1f3h0_p05e7_185",
|
|
7
|
+
"placeholder": "awsui_placeholder_1f3h0_p05e7_212",
|
|
8
|
+
"sorting": "awsui_sorting_1f3h0_p05e7_212",
|
|
9
|
+
"content-display-option-label": "awsui_content-display-option-label_1f3h0_p05e7_240",
|
|
10
|
+
"drag-overlay": "awsui_drag-overlay_1f3h0_p05e7_248",
|
|
11
|
+
"content-display": "awsui_content-display_1f3h0_p05e7_185",
|
|
12
|
+
"content-display-title": "awsui_content-display-title_1f3h0_p05e7_275",
|
|
13
|
+
"content-display-description": "awsui_content-display-description_1f3h0_p05e7_283",
|
|
14
|
+
"content-display-option-list": "awsui_content-display-option-list_1f3h0_p05e7_291"
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -182,11 +182,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.awsui_content-display-option-
|
|
185
|
+
.awsui_content-display-option-toggle_1f3h0_p05e7_185:not(#\9) {
|
|
186
186
|
/* used in test-utils */
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
.awsui_content-display-option-
|
|
189
|
+
.awsui_content-display-option-content_1f3h0_p05e7_189:not(#\9) {
|
|
190
190
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
191
191
|
border-collapse: separate;
|
|
192
192
|
border-spacing: 0;
|
|
@@ -230,28 +230,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
230
230
|
border-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.awsui_content-display-
|
|
233
|
+
.awsui_content-display-option_1f3h0_p05e7_185:not(#\9) {
|
|
234
234
|
list-style: none;
|
|
235
235
|
position: relative;
|
|
236
236
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-k96bks, #eaeded);
|
|
237
237
|
}
|
|
238
|
-
.awsui_content-display-
|
|
238
|
+
.awsui_content-display-option_1f3h0_p05e7_185:not(#\9):not(.awsui_placeholder_1f3h0_p05e7_212).awsui_sorting_1f3h0_p05e7_212 {
|
|
239
239
|
transition: transform var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
|
|
240
|
+
z-index: 1;
|
|
240
241
|
}
|
|
241
242
|
@media (prefers-reduced-motion: reduce) {
|
|
242
|
-
.awsui_content-display-
|
|
243
|
+
.awsui_content-display-option_1f3h0_p05e7_185:not(#\9):not(.awsui_placeholder_1f3h0_p05e7_212).awsui_sorting_1f3h0_p05e7_212 {
|
|
243
244
|
animation: none;
|
|
244
245
|
transition: none;
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
|
-
.awsui-motion-disabled .awsui_content-display-
|
|
248
|
+
.awsui-motion-disabled .awsui_content-display-option_1f3h0_p05e7_185:not(#\9):not(.awsui_placeholder_1f3h0_p05e7_212).awsui_sorting_1f3h0_p05e7_212, .awsui-mode-entering .awsui_content-display-option_1f3h0_p05e7_185:not(#\9):not(.awsui_placeholder_1f3h0_p05e7_212).awsui_sorting_1f3h0_p05e7_212 {
|
|
248
249
|
animation: none;
|
|
249
250
|
transition: none;
|
|
250
251
|
}
|
|
251
|
-
.awsui_content-display-
|
|
252
|
+
.awsui_content-display-option_1f3h0_p05e7_185.awsui_placeholder_1f3h0_p05e7_212 > .awsui_content-display-option-content_1f3h0_p05e7_189:not(#\9) {
|
|
252
253
|
position: relative;
|
|
253
254
|
}
|
|
254
|
-
.awsui_content-display-
|
|
255
|
+
.awsui_content-display-option_1f3h0_p05e7_185.awsui_placeholder_1f3h0_p05e7_212 > .awsui_content-display-option-content_1f3h0_p05e7_189:not(#\9):after {
|
|
255
256
|
content: " ";
|
|
256
257
|
position: absolute;
|
|
257
258
|
top: 0;
|
|
@@ -262,7 +263,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
262
263
|
border-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
263
264
|
}
|
|
264
265
|
|
|
265
|
-
.awsui_content-display-option-
|
|
266
|
+
.awsui_content-display-option-label_1f3h0_p05e7_240:not(#\9) {
|
|
266
267
|
flex-grow: 1;
|
|
267
268
|
min-width: 0;
|
|
268
269
|
-ms-word-break: break-all;
|
|
@@ -270,18 +271,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
270
271
|
padding-right: var(--space-l-4vl6xu, 20px);
|
|
271
272
|
}
|
|
272
273
|
|
|
273
|
-
.awsui_drag-
|
|
274
|
+
.awsui_drag-overlay_1f3h0_p05e7_248:not(#\9) {
|
|
274
275
|
box-shadow: var(--shadow-container-active-h4jsj2, 0px 4px 8px rgba(0, 28, 36, 0.45));
|
|
275
276
|
border-radius: var(--border-radius-item-wjpc1f, 0px);
|
|
276
277
|
}
|
|
277
|
-
body[data-awsui-focus-visible=true] .awsui_drag-
|
|
278
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_p05e7_248:not(#\9) {
|
|
278
279
|
position: relative;
|
|
279
280
|
}
|
|
280
|
-
body[data-awsui-focus-visible=true] .awsui_drag-
|
|
281
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_p05e7_248:not(#\9) {
|
|
281
282
|
outline: 2px dotted transparent;
|
|
282
283
|
outline-offset: calc(0px - 1px);
|
|
283
284
|
}
|
|
284
|
-
body[data-awsui-focus-visible=true] .awsui_drag-
|
|
285
|
+
body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_p05e7_248:not(#\9)::before {
|
|
285
286
|
content: " ";
|
|
286
287
|
display: block;
|
|
287
288
|
position: absolute;
|
|
@@ -293,11 +294,11 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_vuun8_247:not(#\9)
|
|
|
293
294
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
294
295
|
}
|
|
295
296
|
|
|
296
|
-
.awsui_content-
|
|
297
|
+
.awsui_content-display_1f3h0_p05e7_185:not(#\9) {
|
|
297
298
|
/* used in test-utils */
|
|
298
299
|
}
|
|
299
300
|
|
|
300
|
-
.awsui_content-display-
|
|
301
|
+
.awsui_content-display-title_1f3h0_p05e7_275:not(#\9) {
|
|
301
302
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
302
303
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
303
304
|
font-weight: var(--font-display-label-weight-tjy9e4, 400);
|
|
@@ -305,7 +306,7 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_vuun8_247:not(#\9)
|
|
|
305
306
|
margin: 0;
|
|
306
307
|
}
|
|
307
308
|
|
|
308
|
-
.awsui_content-display-
|
|
309
|
+
.awsui_content-display-description_1f3h0_p05e7_283:not(#\9) {
|
|
309
310
|
color: var(--color-text-form-secondary-1c3szk, #687078);
|
|
310
311
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
311
312
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
@@ -313,7 +314,7 @@ body[data-awsui-focus-visible=true] .awsui_drag-overlay_1f3h0_vuun8_247:not(#\9)
|
|
|
313
314
|
margin-top: var(--space-scaled-xxxs-lo883m, 2px);
|
|
314
315
|
}
|
|
315
316
|
|
|
316
|
-
.awsui_content-display-option-
|
|
317
|
+
.awsui_content-display-option-list_1f3h0_p05e7_291:not(#\9) {
|
|
317
318
|
position: relative;
|
|
318
319
|
list-style: none;
|
|
319
320
|
padding: 0;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content-display-option-toggle": "awsui_content-display-option-
|
|
6
|
-
"content-display-option-content": "awsui_content-display-option-
|
|
7
|
-
"content-display-option": "awsui_content-display-
|
|
8
|
-
"placeholder": "
|
|
9
|
-
"sorting": "
|
|
10
|
-
"content-display-option-label": "awsui_content-display-option-
|
|
11
|
-
"drag-overlay": "awsui_drag-
|
|
12
|
-
"content-display": "awsui_content-
|
|
13
|
-
"content-display-title": "awsui_content-display-
|
|
14
|
-
"content-display-description": "awsui_content-display-
|
|
15
|
-
"content-display-option-list": "awsui_content-display-option-
|
|
5
|
+
"content-display-option-toggle": "awsui_content-display-option-toggle_1f3h0_p05e7_185",
|
|
6
|
+
"content-display-option-content": "awsui_content-display-option-content_1f3h0_p05e7_189",
|
|
7
|
+
"content-display-option": "awsui_content-display-option_1f3h0_p05e7_185",
|
|
8
|
+
"placeholder": "awsui_placeholder_1f3h0_p05e7_212",
|
|
9
|
+
"sorting": "awsui_sorting_1f3h0_p05e7_212",
|
|
10
|
+
"content-display-option-label": "awsui_content-display-option-label_1f3h0_p05e7_240",
|
|
11
|
+
"drag-overlay": "awsui_drag-overlay_1f3h0_p05e7_248",
|
|
12
|
+
"content-display": "awsui_content-display_1f3h0_p05e7_185",
|
|
13
|
+
"content-display-title": "awsui_content-display-title_1f3h0_p05e7_275",
|
|
14
|
+
"content-display-description": "awsui_content-display-description_1f3h0_p05e7_283",
|
|
15
|
+
"content-display-option-list": "awsui_content-display-option-list_1f3h0_p05e7_291"
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CollectionPreferencesProps } from './interfaces';
|
|
3
3
|
export { CollectionPreferencesProps };
|
|
4
|
-
export default function CollectionPreferences({ title, confirmLabel, cancelLabel, disabled, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference,
|
|
4
|
+
export default function CollectionPreferences({ title, confirmLabel, cancelLabel, disabled, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, preferences, customPreference, ...rest }: CollectionPreferencesProps): JSX.Element;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAO1D,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAItC,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,WAAW,EACX,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,0BAA0B,eA4J5B"}
|
|
@@ -9,7 +9,7 @@ import InternalBox from '../box/internal';
|
|
|
9
9
|
import { InternalButton } from '../button/internal';
|
|
10
10
|
import InternalModal from '../modal/internal';
|
|
11
11
|
import InternalSpaceBetween from '../space-between/internal';
|
|
12
|
-
import { copyPreferences, mergePreferences, ModalContentLayout, PageSizePreference, WrapLinesPreference, StripedRowsPreference, ContentDensityPreference,
|
|
12
|
+
import { copyPreferences, mergePreferences, ModalContentLayout, PageSizePreference, WrapLinesPreference, StripedRowsPreference, ContentDensityPreference, CustomPreference, } from './utils';
|
|
13
13
|
import VisibleContentPreference from './visible-content';
|
|
14
14
|
import checkControlled from '../internal/hooks/check-controlled';
|
|
15
15
|
import styles from './styles.css.js';
|
|
@@ -19,9 +19,9 @@ import ContentDisplayPreference from './content-display';
|
|
|
19
19
|
import { warnOnce } from '../internal/logging';
|
|
20
20
|
const componentName = 'CollectionPreferences';
|
|
21
21
|
export default function CollectionPreferences(_a) {
|
|
22
|
-
var { title, confirmLabel, cancelLabel, disabled = false, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference,
|
|
23
|
-
const { __internalRootRef } = useBaseComponent(
|
|
24
|
-
checkControlled(
|
|
22
|
+
var { title, confirmLabel, cancelLabel, disabled = false, onConfirm, onCancel, visibleContentPreference, contentDisplayPreference, pageSizePreference, wrapLinesPreference, stripedRowsPreference, contentDensityPreference, preferences, customPreference } = _a, rest = __rest(_a, ["title", "confirmLabel", "cancelLabel", "disabled", "onConfirm", "onCancel", "visibleContentPreference", "contentDisplayPreference", "pageSizePreference", "wrapLinesPreference", "stripedRowsPreference", "contentDensityPreference", "preferences", "customPreference"]);
|
|
23
|
+
const { __internalRootRef } = useBaseComponent(componentName);
|
|
24
|
+
checkControlled(componentName, 'preferences', preferences, 'onConfirm', onConfirm);
|
|
25
25
|
const baseProps = getBaseProps(rest);
|
|
26
26
|
const [modalVisible, setModalVisible] = useState(false);
|
|
27
27
|
const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));
|
|
@@ -48,7 +48,6 @@ export default function CollectionPreferences(_a) {
|
|
|
48
48
|
wrapLinesPreference ||
|
|
49
49
|
stripedRowsPreference ||
|
|
50
50
|
contentDensityPreference ||
|
|
51
|
-
stickyColumnsPreference ||
|
|
52
51
|
customPreference);
|
|
53
52
|
const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);
|
|
54
53
|
const onChange = (changedPreferences) => setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));
|
|
@@ -69,7 +68,6 @@ export default function CollectionPreferences(_a) {
|
|
|
69
68
|
wrapLinesPreference && (React.createElement(WrapLinesPreference, Object.assign({ value: temporaryPreferences.wrapLines }, wrapLinesPreference, { onChange: wrapLines => onChange({ wrapLines }) }))),
|
|
70
69
|
stripedRowsPreference && (React.createElement(StripedRowsPreference, Object.assign({ value: temporaryPreferences.stripedRows }, stripedRowsPreference, { onChange: stripedRows => onChange({ stripedRows }) }))),
|
|
71
70
|
contentDensityPreference && (React.createElement(ContentDensityPreference, Object.assign({ value: temporaryPreferences.contentDensity }, contentDensityPreference, { onChange: contentDensity => onChange({ contentDensity }) }))),
|
|
72
|
-
stickyColumnsPreference && (React.createElement(StickyColumnsPreference, Object.assign({ value: temporaryPreferences.stickyColumns }, stickyColumnsPreference, { onChange: stickyColumns => onChange({ stickyColumns }) }))),
|
|
73
71
|
customPreference && (React.createElement(CustomPreference, { value: temporaryPreferences.custom, customPreference: customPreference, onChange: custom => onChange({ custom }) })))), right: contentDisplayPreference ? (React.createElement(ContentDisplayPreference, Object.assign({}, contentDisplayPreference, { value: temporaryPreferences.contentDisplay, onChange: contentDisplay => onChange({ contentDisplay }) }))) : (visibleContentPreference && (React.createElement(VisibleContentPreference, Object.assign({ value: temporaryPreferences.visibleContent }, visibleContentPreference, { onChange: visibleItems => onChange({ visibleContent: visibleItems }) })))) })))));
|
|
74
72
|
}
|
|
75
73
|
applyDisplayName(CollectionPreferences, componentName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["collection-preferences/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,wBAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AAEjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;A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Y,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport {\n copyPreferences,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n WrapLinesPreference,\n StripedRowsPreference,\n ContentDensityPreference,\n StickyColumnsPreference,\n CustomPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport ContentDisplayPreference from './content-display';\nimport { warnOnce } from '../internal/logging';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n stickyColumnsPreference,\n\n preferences,\n customPreference,\n ...rest\n}: CollectionPreferencesProps) {\n const { __internalRootRef } = useBaseComponent('CollectionPreferences');\n checkControlled('CollectionPreferences', 'preferences', preferences, 'onConfirm', onConfirm);\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n stickyColumnsPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <InternalButton\n ref={triggerRef}\n className={styles['trigger-button']}\n disabled={disabled}\n ariaLabel={title}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n header={title}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n >\n {cancelLabel}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n >\n {confirmLabel}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {stickyColumnsPreference && (\n <StickyColumnsPreference\n value={temporaryPreferences.stickyColumns}\n {...stickyColumnsPreference}\n onChange={stickyColumns => onChange({ stickyColumns })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
|
|
1
|
+
{"version":3,"file":"index.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AC,IACxD,CACH;oBACA,gBAAgB,IAAI,CACnB,oBAAC,gBAAgB,IACf,KAAK,EAAE,oBAAoB,CAAC,MAAM,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,GACxC,CACH,CACoB,CACxB,EAEH,KAAK,EACH,wBAAwB,CAAC,CAAC,CAAC,CACzB,oBAAC,wBAAwB,oBACnB,wBAAwB,IAC5B,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAC1C,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,IACxD,CACH,CAAC,CAAC,CAAC,CACF,wBAAwB,IAAI,CAC1B,oBAAC,wBAAwB,kBACvB,KAAK,EAAE,oBAAoB,CAAC,cAAc,IACtC,wBAAwB,IAC5B,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,IACpE,CACH,CACF,GAEH,CACY,CACjB,CACG,CACP,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalBox from '../box/internal';\nimport { ButtonProps } from '../button/interfaces';\nimport { InternalButton } from '../button/internal';\nimport InternalModal from '../modal/internal';\nimport InternalSpaceBetween from '../space-between/internal';\nimport {\n copyPreferences,\n mergePreferences,\n ModalContentLayout,\n PageSizePreference,\n WrapLinesPreference,\n StripedRowsPreference,\n ContentDensityPreference,\n CustomPreference,\n} from './utils';\nimport VisibleContentPreference from './visible-content';\nimport checkControlled from '../internal/hooks/check-controlled';\nimport { CollectionPreferencesProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport ContentDisplayPreference from './content-display';\nimport { warnOnce } from '../internal/logging';\n\nexport { CollectionPreferencesProps };\n\nconst componentName = 'CollectionPreferences';\n\nexport default function CollectionPreferences({\n title,\n confirmLabel,\n cancelLabel,\n disabled = false,\n onConfirm,\n onCancel,\n visibleContentPreference,\n contentDisplayPreference,\n pageSizePreference,\n wrapLinesPreference,\n stripedRowsPreference,\n contentDensityPreference,\n preferences,\n customPreference,\n ...rest\n}: CollectionPreferencesProps) {\n const { __internalRootRef } = useBaseComponent(componentName);\n checkControlled(componentName, 'preferences', preferences, 'onConfirm', onConfirm);\n const baseProps = getBaseProps(rest);\n const [modalVisible, setModalVisible] = useState(false);\n const [temporaryPreferences, setTemporaryPreferences] = useState(copyPreferences(preferences || {}));\n const triggerRef = useRef<ButtonProps.Ref>(null);\n const dialogPreviouslyOpen = useRef(false);\n useEffect(() => {\n if (!modalVisible) {\n dialogPreviouslyOpen.current && triggerRef.current && triggerRef.current.focus();\n } else {\n dialogPreviouslyOpen.current = true;\n }\n }, [modalVisible]);\n\n const onConfirmListener = () => {\n setModalVisible(false);\n fireNonCancelableEvent(onConfirm, temporaryPreferences);\n };\n\n const onCancelListener = () => {\n fireNonCancelableEvent(onCancel, {});\n setModalVisible(false);\n setTemporaryPreferences(copyPreferences(preferences || {}));\n };\n\n const hasContentOnTheLeft = !!(\n pageSizePreference ||\n wrapLinesPreference ||\n stripedRowsPreference ||\n contentDensityPreference ||\n customPreference\n );\n const hasContentOnTheRight = !!(visibleContentPreference || contentDisplayPreference);\n\n const onChange = (changedPreferences: CollectionPreferencesProps.Preferences) =>\n setTemporaryPreferences(mergePreferences(changedPreferences, temporaryPreferences));\n\n if (visibleContentPreference && contentDisplayPreference) {\n warnOnce(\n componentName,\n 'You provided both `visibleContentPreference` and `contentDisplayPreference` props. `visibleContentPreference` will be ignored and only `contentDisplayPreference` will be rendered.'\n );\n }\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={__internalRootRef}>\n <InternalButton\n ref={triggerRef}\n className={styles['trigger-button']}\n disabled={disabled}\n ariaLabel={title}\n onClick={() => {\n setTemporaryPreferences(copyPreferences(preferences || {}));\n setModalVisible(true);\n }}\n variant=\"icon\"\n iconName=\"settings\"\n formAction=\"none\"\n />\n {!disabled && modalVisible && (\n <InternalModal\n className={styles['modal-root']}\n visible={true}\n header={title}\n footer={\n <InternalBox float=\"right\">\n <InternalSpaceBetween direction=\"horizontal\" size=\"xs\">\n <InternalButton\n className={styles['cancel-button']}\n variant=\"link\"\n formAction=\"none\"\n onClick={onCancelListener}\n >\n {cancelLabel}\n </InternalButton>\n <InternalButton\n className={styles['confirm-button']}\n variant=\"primary\"\n formAction=\"none\"\n onClick={onConfirmListener}\n >\n {confirmLabel}\n </InternalButton>\n </InternalSpaceBetween>\n </InternalBox>\n }\n closeAriaLabel={cancelLabel}\n size={hasContentOnTheLeft && hasContentOnTheRight ? 'large' : 'medium'}\n onDismiss={onCancelListener}\n >\n <ModalContentLayout\n left={\n hasContentOnTheLeft && (\n <InternalSpaceBetween size=\"l\">\n {pageSizePreference && (\n <PageSizePreference\n value={temporaryPreferences.pageSize}\n {...pageSizePreference}\n onChange={pageSize => onChange({ pageSize })}\n />\n )}\n {wrapLinesPreference && (\n <WrapLinesPreference\n value={temporaryPreferences.wrapLines}\n {...wrapLinesPreference}\n onChange={wrapLines => onChange({ wrapLines })}\n />\n )}\n {stripedRowsPreference && (\n <StripedRowsPreference\n value={temporaryPreferences.stripedRows}\n {...stripedRowsPreference}\n onChange={stripedRows => onChange({ stripedRows })}\n />\n )}\n {contentDensityPreference && (\n <ContentDensityPreference\n value={temporaryPreferences.contentDensity}\n {...contentDensityPreference}\n onChange={contentDensity => onChange({ contentDensity })}\n />\n )}\n {customPreference && (\n <CustomPreference\n value={temporaryPreferences.custom}\n customPreference={customPreference}\n onChange={custom => onChange({ custom })}\n />\n )}\n </InternalSpaceBetween>\n )\n }\n right={\n contentDisplayPreference ? (\n <ContentDisplayPreference\n {...contentDisplayPreference}\n value={temporaryPreferences.contentDisplay}\n onChange={contentDisplay => onChange({ contentDisplay })}\n />\n ) : (\n visibleContentPreference && (\n <VisibleContentPreference\n value={temporaryPreferences.visibleContent}\n {...visibleContentPreference}\n onChange={visibleItems => onChange({ visibleContent: visibleItems })}\n />\n )\n )\n }\n />\n </InternalModal>\n )}\n </div>\n );\n}\n\napplyDisplayName(CollectionPreferences, componentName);\n"]}
|
|
@@ -68,18 +68,6 @@ export interface CollectionPreferencesProps<CustomPreferenceType = any> extends
|
|
|
68
68
|
* You must set the current value in the `preferences.contentDensity` property.
|
|
69
69
|
*/
|
|
70
70
|
contentDensityPreference?: CollectionPreferencesProps.ContentDensityPreference;
|
|
71
|
-
/**
|
|
72
|
-
* Configures the sticky columns preference.
|
|
73
|
-
*
|
|
74
|
-
* You can set it for both left and right columns.
|
|
75
|
-
*
|
|
76
|
-
* It contains the following:
|
|
77
|
-
* - `label` (string) - Specifies the label for each radio group.
|
|
78
|
-
* - `description` (string) - Specifies the text displayed below each radio group label.
|
|
79
|
-
*
|
|
80
|
-
* You must set the current value in the `preferences.stickyColumns` property.
|
|
81
|
-
*/
|
|
82
|
-
stickyColumnsPreference?: CollectionPreferencesProps.StickyColumnsPreference;
|
|
83
71
|
/**
|
|
84
72
|
* Configures the built-in content display preference for order and visibility of columns in a table.
|
|
85
73
|
*
|
|
@@ -174,17 +162,16 @@ export interface CollectionPreferencesProps<CustomPreferenceType = any> extends
|
|
|
174
162
|
onConfirm?: NonCancelableEventHandler<CollectionPreferencesProps.Preferences<CustomPreferenceType>>;
|
|
175
163
|
}
|
|
176
164
|
export declare namespace CollectionPreferencesProps {
|
|
177
|
-
|
|
165
|
+
interface Preferences<CustomPreferenceType = any> {
|
|
178
166
|
pageSize?: number;
|
|
179
167
|
wrapLines?: boolean;
|
|
180
168
|
stripedRows?: boolean;
|
|
181
169
|
contentDensity?: 'comfortable' | 'compact';
|
|
182
170
|
visibleContent?: ReadonlyArray<string>;
|
|
183
|
-
stickyColumns?: StickyColumns;
|
|
184
171
|
contentDisplay?: ReadonlyArray<ContentDisplayItem>;
|
|
185
172
|
custom?: CustomPreferenceType;
|
|
186
173
|
}
|
|
187
|
-
|
|
174
|
+
interface ContentDisplayPreference {
|
|
188
175
|
title: string;
|
|
189
176
|
description?: string;
|
|
190
177
|
options: ReadonlyArray<CollectionPreferencesProps.ContentDisplayOption>;
|
|
@@ -195,64 +182,47 @@ export declare namespace CollectionPreferencesProps {
|
|
|
195
182
|
dragHandleAriaLabel?: string;
|
|
196
183
|
dragHandleAriaDescription?: string;
|
|
197
184
|
}
|
|
198
|
-
|
|
185
|
+
interface ContentDisplayOption {
|
|
199
186
|
id: string;
|
|
200
187
|
label: string;
|
|
201
188
|
alwaysVisible?: boolean;
|
|
202
189
|
}
|
|
203
|
-
|
|
190
|
+
interface ContentDisplayItem {
|
|
204
191
|
id: string;
|
|
205
192
|
visible: boolean;
|
|
206
193
|
}
|
|
207
|
-
|
|
194
|
+
interface VisibleContentPreference {
|
|
208
195
|
title: string;
|
|
209
196
|
options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOptionsGroup>;
|
|
210
197
|
}
|
|
211
|
-
|
|
198
|
+
interface VisibleContentOptionsGroup {
|
|
212
199
|
label: string;
|
|
213
200
|
options: ReadonlyArray<CollectionPreferencesProps.VisibleContentOption>;
|
|
214
201
|
}
|
|
215
|
-
|
|
202
|
+
interface VisibleContentOption {
|
|
216
203
|
id: string;
|
|
217
204
|
label: string;
|
|
218
205
|
editable?: boolean;
|
|
219
206
|
}
|
|
220
|
-
|
|
207
|
+
interface PageSizePreference {
|
|
221
208
|
title: string;
|
|
222
209
|
options: ReadonlyArray<PageSizeOption>;
|
|
223
210
|
}
|
|
224
|
-
|
|
211
|
+
interface PageSizeOption {
|
|
225
212
|
value: number;
|
|
226
213
|
label: string;
|
|
227
214
|
}
|
|
228
|
-
|
|
215
|
+
interface WrapLinesPreference {
|
|
229
216
|
label: string;
|
|
230
217
|
description: string;
|
|
231
218
|
}
|
|
232
|
-
|
|
219
|
+
interface StripedRowsPreference {
|
|
233
220
|
label: string;
|
|
234
221
|
description: string;
|
|
235
222
|
}
|
|
236
|
-
|
|
223
|
+
interface ContentDensityPreference {
|
|
237
224
|
label: string;
|
|
238
225
|
description: string;
|
|
239
226
|
}
|
|
240
|
-
interface StickyColumns {
|
|
241
|
-
first?: number;
|
|
242
|
-
last?: number;
|
|
243
|
-
}
|
|
244
|
-
interface StickyColumnPreference {
|
|
245
|
-
title: string;
|
|
246
|
-
description: string;
|
|
247
|
-
options: ReadonlyArray<{
|
|
248
|
-
label: string;
|
|
249
|
-
value: number;
|
|
250
|
-
}>;
|
|
251
|
-
}
|
|
252
|
-
export interface StickyColumnsPreference {
|
|
253
|
-
firstColumns?: StickyColumnPreference;
|
|
254
|
-
lastColumns?: StickyColumnPreference;
|
|
255
|
-
}
|
|
256
|
-
export {};
|
|
257
227
|
}
|
|
258
228
|
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["collection-preferences/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,0BAA0B,CAAC,oBAAoB,GAAG,GAAG,CAAE,SAAQ,kBAAkB;IAChG;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EA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