@cloudscape-design/components 3.0.250 → 3.0.252
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/app-layout/visual-refresh/app-bar.js +1 -1
- package/app-layout/visual-refresh/app-bar.js.map +1 -1
- package/autosuggest/internal.d.ts.map +1 -1
- package/autosuggest/internal.js +2 -1
- package/autosuggest/internal.js.map +1 -1
- package/autosuggest/options-list.d.ts +2 -1
- package/autosuggest/options-list.d.ts.map +1 -1
- package/autosuggest/options-list.js +8 -2
- package/autosuggest/options-list.js.map +1 -1
- package/button/internal.d.ts +1 -1
- package/button/internal.d.ts.map +1 -1
- package/button/internal.js +3 -2
- package/button/internal.js.map +1 -1
- package/button/styles.css.js +20 -19
- package/button/styles.scoped.css +298 -136
- package/button/styles.selectors.js +20 -19
- package/file-upload/default-formatters.d.ts +3 -0
- package/file-upload/default-formatters.d.ts.map +1 -0
- package/file-upload/default-formatters.js +23 -0
- package/file-upload/default-formatters.js.map +1 -0
- package/file-upload/dropzone/index.d.ts +9 -0
- package/file-upload/dropzone/index.d.ts.map +1 -0
- package/file-upload/dropzone/index.js +69 -0
- package/file-upload/dropzone/index.js.map +1 -0
- package/file-upload/dropzone/styles.css.js +7 -0
- package/file-upload/dropzone/styles.scoped.css +108 -0
- package/file-upload/dropzone/styles.selectors.js +8 -0
- package/file-upload/file-input/index.d.ts +14 -0
- package/file-upload/file-input/index.d.ts.map +1 -0
- package/file-upload/file-input/index.js +55 -0
- package/file-upload/file-input/index.js.map +1 -0
- package/file-upload/file-input/styles.css.js +8 -0
- package/file-upload/file-input/styles.scoped.css +21 -0
- package/file-upload/file-input/styles.selectors.js +9 -0
- package/file-upload/file-option/index.d.ts +10 -0
- package/file-upload/file-option/index.d.ts.map +1 -0
- package/file-upload/file-option/index.js +22 -0
- package/file-upload/file-option/index.js.map +1 -0
- package/file-upload/file-option/styles.css.js +12 -0
- package/file-upload/file-option/styles.scoped.css +35 -0
- package/file-upload/file-option/styles.selectors.js +13 -0
- package/file-upload/file-option/thumbnail.d.ts +7 -0
- package/file-upload/file-option/thumbnail.d.ts.map +1 -0
- package/file-upload/file-option/thumbnail.js +20 -0
- package/file-upload/file-option/thumbnail.js.map +1 -0
- package/file-upload/index.d.ts +6 -0
- package/file-upload/index.d.ts.map +1 -0
- package/file-upload/index.js +17 -0
- package/file-upload/index.js.map +1 -0
- package/file-upload/interfaces.d.ts +99 -0
- package/file-upload/interfaces.d.ts.map +1 -0
- package/file-upload/interfaces.js +4 -0
- package/file-upload/interfaces.js.map +1 -0
- package/file-upload/internal.d.ts +7 -0
- package/file-upload/internal.d.ts.map +1 -0
- package/file-upload/internal.js +72 -0
- package/file-upload/internal.js.map +1 -0
- package/file-upload/styles.css.js +7 -0
- package/file-upload/styles.scoped.css +16 -0
- package/file-upload/styles.selectors.js +8 -0
- package/form-field/internal.d.ts +6 -1
- package/form-field/internal.d.ts.map +1 -1
- package/form-field/internal.js +6 -3
- package/form-field/internal.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/base-component/styles.scoped.css +25 -5
- package/internal/components/dropdown-footer/index.d.ts +1 -0
- package/internal/components/dropdown-footer/index.d.ts.map +1 -1
- package/internal/components/dropdown-footer/index.js +2 -2
- package/internal/components/dropdown-footer/index.js.map +1 -1
- package/internal/components/live-region/index.d.ts +2 -1
- package/internal/components/live-region/index.d.ts.map +1 -1
- package/internal/components/live-region/index.js +2 -2
- package/internal/components/live-region/index.js.map +1 -1
- package/internal/components/options-list/index.d.ts +1 -0
- package/internal/components/options-list/index.d.ts.map +1 -1
- package/internal/components/options-list/index.js +2 -2
- package/internal/components/options-list/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/generated/theming/index.cjs +142 -25
- package/internal/generated/theming/index.js +142 -25
- package/internal/manifest.json +1 -1
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +4 -3
- package/multiselect/internal.js.map +1 -1
- package/package.json +2 -1
- package/property-filter/index.d.ts.map +1 -1
- package/property-filter/index.js +1 -1
- package/property-filter/index.js.map +1 -1
- package/property-filter/interfaces.d.ts +2 -1
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
- package/property-filter/property-filter-autosuggest.js +4 -2
- package/property-filter/property-filter-autosuggest.js.map +1 -1
- package/select/internal.d.ts.map +1 -1
- package/select/internal.js +4 -3
- package/select/internal.js.map +1 -1
- package/split-panel/interfaces.d.ts +8 -8
- package/split-panel/interfaces.d.ts.map +1 -1
- package/split-panel/interfaces.js.map +1 -1
- package/split-panel/preferences-modal.d.ts +7 -7
- package/split-panel/preferences-modal.d.ts.map +1 -1
- package/split-panel/preferences-modal.js.map +1 -1
- package/table/body-cell/index.js +1 -1
- package/table/body-cell/index.js.map +1 -1
- package/table/header-cell/styles.css.js +19 -19
- package/table/header-cell/styles.scoped.css +33 -33
- package/table/header-cell/styles.selectors.js +19 -19
- package/table/resizer/styles.css.js +6 -6
- package/table/resizer/styles.scoped.css +13 -13
- package/table/resizer/styles.selectors.js +6 -6
- package/test-utils/dom/file-upload/index.d.ts +29 -0
- package/test-utils/dom/file-upload/index.js +66 -0
- package/test-utils/dom/file-upload/index.js.map +1 -0
- package/test-utils/dom/index.d.ts +3 -0
- package/test-utils/dom/index.js +10 -2
- package/test-utils/dom/index.js.map +1 -1
- package/test-utils/selectors/file-upload/index.d.ts +29 -0
- package/test-utils/selectors/file-upload/index.js +66 -0
- package/test-utils/selectors/file-upload/index.js.map +1 -0
- package/test-utils/selectors/index.d.ts +3 -0
- package/test-utils/selectors/index.js +10 -2
- package/test-utils/selectors/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/theming/index.d.ts +2 -1
- package/theming/index.d.ts.map +1 -1
- package/theming/index.js +2 -1
- package/theming/index.js.map +1 -1
- package/token-group/styles.css.js +7 -5
- package/token-group/styles.scoped.css +41 -23
- package/token-group/styles.selectors.js +7 -5
- package/token-group/token.d.ts +4 -1
- package/token-group/token.d.ts.map +1 -1
- package/token-group/token.js +13 -4
- package/token-group/token.js.map +1 -1
package/table/body-cell/index.js
CHANGED
|
@@ -26,7 +26,7 @@ function TableCellEditable(_a) {
|
|
|
26
26
|
return (React.createElement(TableTdElement, Object.assign({}, rest, { nativeAttributes: tdNativeAttributes, className: clsx(className, styles['body-cell-editable'], isEditing && styles['body-cell-edit-active'], isVisualRefresh && styles['is-visual-refresh']), onClick: !isEditing ? onEditStart : undefined }), isEditing ? (React.createElement(InlineEditor, { ariaLabels: ariaLabels, column: column, item: item, onEditEnd: onEditEnd, submitEdit: submitEdit !== null && submitEdit !== void 0 ? submitEdit : submitHandlerFallback })) : (React.createElement(React.Fragment, null,
|
|
27
27
|
column.cell(item),
|
|
28
28
|
React.createElement("span", { className: styles['body-cell-editor'] },
|
|
29
|
-
React.createElement(Button, {
|
|
29
|
+
React.createElement(Button, { __forcedFocusState: "none", __internalRootRef: editActivateRef, ariaLabel: (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.activateEditLabel) === null || _b === void 0 ? void 0 : _b.call(ariaLabels, column), formAction: "none", iconName: "edit", variant: "inline-icon" }))))));
|
|
30
30
|
}
|
|
31
31
|
export function TableBodyCell(_a) {
|
|
32
32
|
var { isEditable } = _a, rest = __rest(_a, ["isEditable"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/body-cell/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,MAAM,MA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I,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAkB,CAAC;AACxE,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport React, { useRef } from 'react';\nimport { useEffectOnUpdate } from '../../internal/hooks/use-effect-on-update';\nimport Button from '../../button/internal';\nimport { ButtonProps } from '../../button/interfaces';\nimport { TableProps } from '../interfaces';\nimport { TableTdElement, TableTdElementProps } from './td-element';\nimport { InlineEditor } from './inline-editor';\n\nconst submitHandlerFallback = () => {\n throw new Error('The function `handleSubmit` is required for editable columns');\n};\n\ninterface TableBodyCellProps<ItemType> extends TableTdElementProps {\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n isEditing: boolean;\n onEditStart: () => void;\n onEditEnd: () => void;\n submitEdit?: TableProps.SubmitEditFunction<ItemType>;\n ariaLabels: TableProps['ariaLabels'];\n}\n\nfunction TableCellEditable<ItemType>({\n className,\n item,\n column,\n isEditing,\n onEditStart,\n onEditEnd,\n submitEdit,\n ariaLabels,\n isVisualRefresh,\n ...rest\n}: TableBodyCellProps<ItemType>) {\n const editActivateRef = useRef<ButtonProps.Ref>(null);\n const tdNativeAttributes = {\n 'data-inline-editing-active': isEditing.toString(),\n };\n\n useEffectOnUpdate(() => {\n if (!isEditing && editActivateRef.current) {\n editActivateRef.current.focus();\n }\n }, [isEditing]);\n\n return (\n <TableTdElement\n {...rest}\n nativeAttributes={tdNativeAttributes as TableTdElementProps['nativeAttributes']}\n className={clsx(\n className,\n styles['body-cell-editable'],\n isEditing && styles['body-cell-edit-active'],\n isVisualRefresh && styles['is-visual-refresh']\n )}\n onClick={!isEditing ? onEditStart : undefined}\n >\n {isEditing ? (\n <InlineEditor\n ariaLabels={ariaLabels}\n column={column}\n item={item}\n onEditEnd={onEditEnd}\n submitEdit={submitEdit ?? submitHandlerFallback}\n />\n ) : (\n <>\n {column.cell(item)}\n <span className={styles['body-cell-editor']}>\n <Button\n __forcedFocusState=\"none\"\n __internalRootRef={editActivateRef}\n ariaLabel={ariaLabels?.activateEditLabel?.(column)}\n formAction=\"none\"\n iconName=\"edit\"\n variant=\"inline-icon\"\n />\n </span>\n </>\n )}\n </TableTdElement>\n );\n}\n\nexport function TableBodyCell<ItemType>({\n isEditable,\n ...rest\n}: TableBodyCellProps<ItemType> & { isEditable: boolean }) {\n if (isEditable || rest.isEditing) {\n return <TableCellEditable {...rest} />;\n }\n const { column, item } = rest;\n return <TableTdElement {...rest}>{column.cell(item)}</TableTdElement>;\n}\n"]}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"header-cell": "awsui_header-
|
|
5
|
-
"header-cell-sticky": "awsui_header-cell-
|
|
6
|
-
"header-cell-stuck": "awsui_header-cell-
|
|
7
|
-
"header-cell-variant-full-page": "awsui_header-cell-variant-full-
|
|
8
|
-
"header-cell-hidden": "awsui_header-cell-
|
|
9
|
-
"header-cell-sortable": "awsui_header-cell-
|
|
10
|
-
"header-cell-resizable": "awsui_header-cell-
|
|
11
|
-
"sorting-icon": "awsui_sorting-
|
|
12
|
-
"edit-icon": "awsui_edit-
|
|
13
|
-
"header-cell-content": "awsui_header-cell-
|
|
14
|
-
"header-cell-fake-focus": "awsui_header-cell-fake-
|
|
15
|
-
"header-cell-disabled": "awsui_header-cell-
|
|
16
|
-
"header-cell-sorted": "awsui_header-cell-
|
|
17
|
-
"header-cell-text": "awsui_header-cell-
|
|
18
|
-
"header-cell-text-wrap": "awsui_header-cell-text-
|
|
19
|
-
"header-cell-ascending": "awsui_header-cell-
|
|
20
|
-
"header-cell-descending": "awsui_header-cell-
|
|
21
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
22
|
-
"has-striped-rows": "awsui_has-striped-
|
|
4
|
+
"header-cell": "awsui_header-cell_1spae_f15ng_93",
|
|
5
|
+
"header-cell-sticky": "awsui_header-cell-sticky_1spae_f15ng_105",
|
|
6
|
+
"header-cell-stuck": "awsui_header-cell-stuck_1spae_f15ng_108",
|
|
7
|
+
"header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_f15ng_108",
|
|
8
|
+
"header-cell-hidden": "awsui_header-cell-hidden_1spae_f15ng_111",
|
|
9
|
+
"header-cell-sortable": "awsui_header-cell-sortable_1spae_f15ng_114",
|
|
10
|
+
"header-cell-resizable": "awsui_header-cell-resizable_1spae_f15ng_129",
|
|
11
|
+
"sorting-icon": "awsui_sorting-icon_1spae_f15ng_133",
|
|
12
|
+
"edit-icon": "awsui_edit-icon_1spae_f15ng_141",
|
|
13
|
+
"header-cell-content": "awsui_header-cell-content_1spae_f15ng_147",
|
|
14
|
+
"header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_f15ng_176",
|
|
15
|
+
"header-cell-disabled": "awsui_header-cell-disabled_1spae_f15ng_194",
|
|
16
|
+
"header-cell-sorted": "awsui_header-cell-sorted_1spae_f15ng_194",
|
|
17
|
+
"header-cell-text": "awsui_header-cell-text_1spae_f15ng_208",
|
|
18
|
+
"header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_f15ng_213",
|
|
19
|
+
"header-cell-ascending": "awsui_header-cell-ascending_1spae_f15ng_219",
|
|
20
|
+
"header-cell-descending": "awsui_header-cell-descending_1spae_f15ng_220",
|
|
21
|
+
"is-visual-refresh": "awsui_is-visual-refresh_1spae_f15ng_230",
|
|
22
|
+
"has-striped-rows": "awsui_has-striped-rows_1spae_f15ng_241"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.awsui_header-
|
|
93
|
+
.awsui_header-cell_1spae_f15ng_93:not(#\9) {
|
|
94
94
|
position: relative;
|
|
95
95
|
text-align: left;
|
|
96
96
|
box-sizing: border-box;
|
|
@@ -102,19 +102,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
102
102
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
|
|
103
103
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-scaled-xs-6859qs, 8px);
|
|
104
104
|
}
|
|
105
|
-
.awsui_header-cell-
|
|
105
|
+
.awsui_header-cell-sticky_1spae_f15ng_105:not(#\9) {
|
|
106
106
|
border-bottom: var(--border-table-sticky-width-h1tlxy, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
107
107
|
}
|
|
108
|
-
.awsui_header-cell-
|
|
108
|
+
.awsui_header-cell-stuck_1spae_f15ng_108:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_f15ng_108) {
|
|
109
109
|
border-bottom-color: transparent;
|
|
110
110
|
}
|
|
111
|
-
.awsui_header-cell-variant-full-
|
|
111
|
+
.awsui_header-cell-variant-full-page_1spae_f15ng_108.awsui_header-cell-hidden_1spae_f15ng_111:not(#\9) {
|
|
112
112
|
border-bottom-color: transparent;
|
|
113
113
|
}
|
|
114
|
-
.awsui_header-
|
|
114
|
+
.awsui_header-cell_1spae_f15ng_93:not(#\9):last-child, .awsui_header-cell_1spae_f15ng_93.awsui_header-cell-sortable_1spae_f15ng_114:not(#\9) {
|
|
115
115
|
padding-right: var(--space-xs-rsr2qu, 8px);
|
|
116
116
|
}
|
|
117
|
-
.awsui_header-
|
|
117
|
+
.awsui_header-cell_1spae_f15ng_93:not(#\9):not(:last-child):before {
|
|
118
118
|
content: "";
|
|
119
119
|
position: absolute;
|
|
120
120
|
right: 0;
|
|
@@ -126,11 +126,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
126
126
|
border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
127
127
|
box-sizing: border-box;
|
|
128
128
|
}
|
|
129
|
-
.awsui_header-cell-
|
|
130
|
-
border-left-color: var(--color-border-divider-interactive-default-
|
|
129
|
+
.awsui_header-cell-resizable_1spae_f15ng_129:not(#\9):not(:last-child):before {
|
|
130
|
+
border-left-color: var(--color-border-divider-interactive-default-0hdcst, #414d5c);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.awsui_sorting-
|
|
133
|
+
.awsui_sorting-icon_1spae_f15ng_133:not(#\9) {
|
|
134
134
|
position: absolute;
|
|
135
135
|
top: 50%;
|
|
136
136
|
transform: translateY(-50%);
|
|
@@ -138,31 +138,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
138
138
|
color: var(--color-text-column-sorting-icon-q5sr09, #414d5c);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.awsui_edit-
|
|
141
|
+
.awsui_edit-icon_1spae_f15ng_141:not(#\9) {
|
|
142
142
|
margin-left: var(--space-xxs-ynfts5, 4px);
|
|
143
143
|
margin-top: var(--space-scaled-xxs-95dhkm, 4px);
|
|
144
144
|
color: inherit;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.awsui_header-cell-
|
|
147
|
+
.awsui_header-cell-content_1spae_f15ng_147:not(#\9) {
|
|
148
148
|
position: relative;
|
|
149
149
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-s-hv8c1d, 12px);
|
|
150
150
|
}
|
|
151
|
-
.awsui_header-cell-
|
|
151
|
+
.awsui_header-cell-sortable_1spae_f15ng_114 > .awsui_header-cell-content_1spae_f15ng_147:not(#\9) {
|
|
152
152
|
padding-right: calc(var(--space-xl-a39hup, 24px) + var(--space-xxs-ynfts5, 4px));
|
|
153
153
|
}
|
|
154
|
-
.awsui_header-cell-
|
|
154
|
+
.awsui_header-cell-content_1spae_f15ng_147:not(#\9):focus {
|
|
155
155
|
outline: none;
|
|
156
156
|
text-decoration: none;
|
|
157
157
|
}
|
|
158
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
158
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147:not(#\9):focus {
|
|
159
159
|
position: relative;
|
|
160
160
|
}
|
|
161
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
161
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147:not(#\9):focus {
|
|
162
162
|
outline: 2px dotted transparent;
|
|
163
163
|
outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
|
|
164
164
|
}
|
|
165
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
165
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147:not(#\9):focus::before {
|
|
166
166
|
content: " ";
|
|
167
167
|
display: block;
|
|
168
168
|
position: absolute;
|
|
@@ -173,14 +173,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_qocl2_147:n
|
|
|
173
173
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
174
174
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
175
175
|
}
|
|
176
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
176
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147.awsui_header-cell-fake-focus_1spae_f15ng_176:not(#\9) {
|
|
177
177
|
position: relative;
|
|
178
178
|
}
|
|
179
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
179
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147.awsui_header-cell-fake-focus_1spae_f15ng_176:not(#\9) {
|
|
180
180
|
outline: 2px dotted transparent;
|
|
181
181
|
outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
|
|
182
182
|
}
|
|
183
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
183
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_f15ng_147.awsui_header-cell-fake-focus_1spae_f15ng_176:not(#\9)::before {
|
|
184
184
|
content: " ";
|
|
185
185
|
display: block;
|
|
186
186
|
position: absolute;
|
|
@@ -191,33 +191,33 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_qocl2_147.a
|
|
|
191
191
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
192
192
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
193
193
|
}
|
|
194
|
-
.awsui_header-cell-
|
|
194
|
+
.awsui_header-cell-disabled_1spae_f15ng_194.awsui_header-cell-sorted_1spae_f15ng_194 > .awsui_header-cell-content_1spae_f15ng_147 > .awsui_sorting-icon_1spae_f15ng_133:not(#\9) {
|
|
195
195
|
color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
.awsui_header-cell-
|
|
198
|
+
.awsui_header-cell-sortable_1spae_f15ng_114:not(#\9):not(.awsui_header-cell-disabled_1spae_f15ng_194) > .awsui_header-cell-content_1spae_f15ng_147 {
|
|
199
199
|
cursor: pointer;
|
|
200
200
|
}
|
|
201
|
-
.awsui_header-cell-
|
|
201
|
+
.awsui_header-cell-sortable_1spae_f15ng_114:not(#\9):not(.awsui_header-cell-disabled_1spae_f15ng_194) > .awsui_header-cell-content_1spae_f15ng_147:hover, .awsui_header-cell-sortable_1spae_f15ng_114:not(#\9):not(.awsui_header-cell-disabled_1spae_f15ng_194).awsui_header-cell-sorted_1spae_f15ng_194 > .awsui_header-cell-content_1spae_f15ng_147 {
|
|
202
202
|
color: var(--color-text-interactive-active-vol84d, #000716);
|
|
203
203
|
}
|
|
204
|
-
.awsui_header-cell-
|
|
204
|
+
.awsui_header-cell-sortable_1spae_f15ng_114:not(#\9):not(.awsui_header-cell-disabled_1spae_f15ng_194) > .awsui_header-cell-content_1spae_f15ng_147:hover > .awsui_sorting-icon_1spae_f15ng_133, .awsui_header-cell-sortable_1spae_f15ng_114:not(#\9):not(.awsui_header-cell-disabled_1spae_f15ng_194).awsui_header-cell-sorted_1spae_f15ng_194 > .awsui_header-cell-content_1spae_f15ng_147 > .awsui_sorting-icon_1spae_f15ng_133 {
|
|
205
205
|
color: var(--color-text-interactive-active-vol84d, #000716);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.awsui_header-cell-
|
|
208
|
+
.awsui_header-cell-text_1spae_f15ng_208:not(#\9) {
|
|
209
209
|
line-height: var(--font-heading-xs-line-height-5x131j, 18px);
|
|
210
210
|
padding-top: calc(var(--space-xxxs-k2w98v, 2px) / 2);
|
|
211
211
|
padding-bottom: calc(var(--space-xxxs-k2w98v, 2px) / 2);
|
|
212
212
|
}
|
|
213
|
-
.awsui_header-cell-
|
|
213
|
+
.awsui_header-cell-text_1spae_f15ng_208:not(#\9):not(.awsui_header-cell-text-wrap_1spae_f15ng_213) {
|
|
214
214
|
white-space: nowrap;
|
|
215
215
|
overflow: hidden;
|
|
216
216
|
text-overflow: ellipsis;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
.awsui_header-cell-
|
|
220
|
-
.awsui_header-cell-
|
|
219
|
+
.awsui_header-cell-ascending_1spae_f15ng_219:not(#\9),
|
|
220
|
+
.awsui_header-cell-descending_1spae_f15ng_220:not(#\9) {
|
|
221
221
|
/* used in test-utils */
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -227,26 +227,26 @@ with the left edge of the table as closely as possible. If the
|
|
|
227
227
|
last header cell is sortable the sort icon should align with the
|
|
228
228
|
settings icon in the pagination slot.
|
|
229
229
|
*/
|
|
230
|
-
.awsui_header-
|
|
230
|
+
.awsui_header-cell_1spae_f15ng_93:not(#\9):not(.awsui_is-visual-refresh_1spae_f15ng_230):first-child {
|
|
231
231
|
padding-left: var(--space-xs-rsr2qu, 8px);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.awsui_header-
|
|
234
|
+
.awsui_header-cell_1spae_f15ng_93.awsui_is-visual-refresh_1spae_f15ng_230:not(#\9) {
|
|
235
235
|
/*
|
|
236
236
|
Striped rows requires additional left padding because the
|
|
237
237
|
shaded background makes the child content appear too close
|
|
238
238
|
to the table edge.
|
|
239
239
|
*/
|
|
240
240
|
}
|
|
241
|
-
.awsui_header-
|
|
241
|
+
.awsui_header-cell_1spae_f15ng_93.awsui_is-visual-refresh_1spae_f15ng_230:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_f15ng_241) {
|
|
242
242
|
padding-left: var(--space-xxxs-k2w98v, 2px);
|
|
243
243
|
}
|
|
244
|
-
.awsui_header-
|
|
244
|
+
.awsui_header-cell_1spae_f15ng_93.awsui_is-visual-refresh_1spae_f15ng_230:not(#\9):first-child.awsui_has-striped-rows_1spae_f15ng_241 {
|
|
245
245
|
padding-left: var(--space-xxs-ynfts5, 4px);
|
|
246
246
|
}
|
|
247
|
-
.awsui_header-
|
|
247
|
+
.awsui_header-cell_1spae_f15ng_93.awsui_is-visual-refresh_1spae_f15ng_230:not(#\9):first-child > .awsui_header-cell-content_1spae_f15ng_147 {
|
|
248
248
|
padding-left: 0;
|
|
249
249
|
}
|
|
250
|
-
.awsui_header-
|
|
250
|
+
.awsui_header-cell_1spae_f15ng_93.awsui_is-visual-refresh_1spae_f15ng_230:not(#\9):last-child.awsui_header-cell-sortable_1spae_f15ng_114 {
|
|
251
251
|
padding-right: var(--space-xxxs-k2w98v, 2px);
|
|
252
252
|
}
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"header-cell": "awsui_header-
|
|
6
|
-
"header-cell-sticky": "awsui_header-cell-
|
|
7
|
-
"header-cell-stuck": "awsui_header-cell-
|
|
8
|
-
"header-cell-variant-full-page": "awsui_header-cell-variant-full-
|
|
9
|
-
"header-cell-hidden": "awsui_header-cell-
|
|
10
|
-
"header-cell-sortable": "awsui_header-cell-
|
|
11
|
-
"header-cell-resizable": "awsui_header-cell-
|
|
12
|
-
"sorting-icon": "awsui_sorting-
|
|
13
|
-
"edit-icon": "awsui_edit-
|
|
14
|
-
"header-cell-content": "awsui_header-cell-
|
|
15
|
-
"header-cell-fake-focus": "awsui_header-cell-fake-
|
|
16
|
-
"header-cell-disabled": "awsui_header-cell-
|
|
17
|
-
"header-cell-sorted": "awsui_header-cell-
|
|
18
|
-
"header-cell-text": "awsui_header-cell-
|
|
19
|
-
"header-cell-text-wrap": "awsui_header-cell-text-
|
|
20
|
-
"header-cell-ascending": "awsui_header-cell-
|
|
21
|
-
"header-cell-descending": "awsui_header-cell-
|
|
22
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
23
|
-
"has-striped-rows": "awsui_has-striped-
|
|
5
|
+
"header-cell": "awsui_header-cell_1spae_f15ng_93",
|
|
6
|
+
"header-cell-sticky": "awsui_header-cell-sticky_1spae_f15ng_105",
|
|
7
|
+
"header-cell-stuck": "awsui_header-cell-stuck_1spae_f15ng_108",
|
|
8
|
+
"header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_f15ng_108",
|
|
9
|
+
"header-cell-hidden": "awsui_header-cell-hidden_1spae_f15ng_111",
|
|
10
|
+
"header-cell-sortable": "awsui_header-cell-sortable_1spae_f15ng_114",
|
|
11
|
+
"header-cell-resizable": "awsui_header-cell-resizable_1spae_f15ng_129",
|
|
12
|
+
"sorting-icon": "awsui_sorting-icon_1spae_f15ng_133",
|
|
13
|
+
"edit-icon": "awsui_edit-icon_1spae_f15ng_141",
|
|
14
|
+
"header-cell-content": "awsui_header-cell-content_1spae_f15ng_147",
|
|
15
|
+
"header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_f15ng_176",
|
|
16
|
+
"header-cell-disabled": "awsui_header-cell-disabled_1spae_f15ng_194",
|
|
17
|
+
"header-cell-sorted": "awsui_header-cell-sorted_1spae_f15ng_194",
|
|
18
|
+
"header-cell-text": "awsui_header-cell-text_1spae_f15ng_208",
|
|
19
|
+
"header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_f15ng_213",
|
|
20
|
+
"header-cell-ascending": "awsui_header-cell-ascending_1spae_f15ng_219",
|
|
21
|
+
"header-cell-descending": "awsui_header-cell-descending_1spae_f15ng_220",
|
|
22
|
+
"is-visual-refresh": "awsui_is-visual-refresh_1spae_f15ng_230",
|
|
23
|
+
"has-striped-rows": "awsui_has-striped-rows_1spae_f15ng_241"
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"resize-active": "awsui_resize-
|
|
5
|
-
"resize-active-with-focus": "awsui_resize-active-with-
|
|
6
|
-
"resizer": "
|
|
7
|
-
"resizer-active": "awsui_resizer-
|
|
8
|
-
"has-focus": "awsui_has-
|
|
9
|
-
"tracker": "
|
|
4
|
+
"resize-active": "awsui_resize-active_x7peu_84vi8_93",
|
|
5
|
+
"resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_84vi8_93",
|
|
6
|
+
"resizer": "awsui_resizer_x7peu_84vi8_98",
|
|
7
|
+
"resizer-active": "awsui_resizer-active_x7peu_84vi8_114",
|
|
8
|
+
"has-focus": "awsui_has-focus_x7peu_84vi8_126",
|
|
9
|
+
"tracker": "awsui_tracker_x7peu_84vi8_149"
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -90,13 +90,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.awsui_resize-
|
|
93
|
+
.awsui_resize-active_x7peu_84vi8_93:not(#\9):not(.awsui_resize-active-with-focus_x7peu_84vi8_93) * {
|
|
94
94
|
cursor: col-resize;
|
|
95
95
|
-webkit-user-select: none;
|
|
96
96
|
user-select: none;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.
|
|
99
|
+
.awsui_resizer_x7peu_84vi8_98:not(#\9) {
|
|
100
100
|
bottom: 0;
|
|
101
101
|
cursor: col-resize;
|
|
102
102
|
position: absolute;
|
|
@@ -105,14 +105,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
105
105
|
width: var(--space-l-4vl6xu, 20px);
|
|
106
106
|
z-index: 10;
|
|
107
107
|
}
|
|
108
|
-
.awsui_resize-
|
|
108
|
+
.awsui_resize-active_x7peu_84vi8_93 .awsui_resizer_x7peu_84vi8_98:not(#\9) {
|
|
109
109
|
pointer-events: none;
|
|
110
110
|
}
|
|
111
|
-
th:not(#\9):last-child > .
|
|
111
|
+
th:not(#\9):last-child > .awsui_resizer_x7peu_84vi8_98 {
|
|
112
112
|
width: calc(var(--space-l-4vl6xu, 20px) / 2);
|
|
113
113
|
right: 0;
|
|
114
114
|
}
|
|
115
|
-
th:not(#\9):not(:last-child) > .
|
|
115
|
+
th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_84vi8_98:hover::before, th:not(#\9):not(:last-child) > .awsui_resizer-active_x7peu_84vi8_114::before {
|
|
116
116
|
content: "";
|
|
117
117
|
position: absolute;
|
|
118
118
|
left: calc(var(--space-l-4vl6xu, 20px) / 2 - 2px);
|
|
@@ -121,18 +121,18 @@ th:not(#\9):not(:last-child) > .awsui_resizer_x7peu_1px6f_98:hover::before, th:n
|
|
|
121
121
|
min-height: var(--font-heading-xs-line-height-5x131j, 18px);
|
|
122
122
|
max-height: calc(100% - calc(2 * var(--space-xs-rsr2qu, 8px) + var(--space-xxxs-k2w98v, 2px)));
|
|
123
123
|
margin: auto;
|
|
124
|
-
border-left: 2px solid var(--color-border-divider-active-
|
|
124
|
+
border-left: 2px solid var(--color-border-divider-active-t11l9l, #000716);
|
|
125
125
|
box-sizing: border-box;
|
|
126
126
|
}
|
|
127
|
-
body[data-awsui-focus-visible=true] .
|
|
127
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_84vi8_98.awsui_has-focus_x7peu_84vi8_126:not(#\9) {
|
|
128
128
|
position: relative;
|
|
129
129
|
position: absolute;
|
|
130
130
|
}
|
|
131
|
-
body[data-awsui-focus-visible=true] .
|
|
131
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_84vi8_98.awsui_has-focus_x7peu_84vi8_126:not(#\9) {
|
|
132
132
|
outline: 2px dotted transparent;
|
|
133
133
|
outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
|
|
134
134
|
}
|
|
135
|
-
body[data-awsui-focus-visible=true] .
|
|
135
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_84vi8_98.awsui_has-focus_x7peu_84vi8_126:not(#\9)::before {
|
|
136
136
|
content: " ";
|
|
137
137
|
display: block;
|
|
138
138
|
position: absolute;
|
|
@@ -143,18 +143,18 @@ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_1px6f_98.awsui_has-focu
|
|
|
143
143
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
144
144
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
145
145
|
}
|
|
146
|
-
body[data-awsui-focus-visible=true] .
|
|
146
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_84vi8_98.awsui_has-focus_x7peu_84vi8_126:not(#\9)::before {
|
|
147
147
|
box-shadow: inset 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.
|
|
150
|
+
.awsui_tracker_x7peu_84vi8_149:not(#\9) {
|
|
151
151
|
display: none;
|
|
152
152
|
position: absolute;
|
|
153
|
-
border-left: var(--border-divider-list-width-hacikr, 1px) dashed var(--color-border-divider-active-
|
|
153
|
+
border-left: var(--border-divider-list-width-hacikr, 1px) dashed var(--color-border-divider-active-t11l9l, #000716);
|
|
154
154
|
width: 0;
|
|
155
155
|
top: 0;
|
|
156
156
|
bottom: 0;
|
|
157
157
|
}
|
|
158
|
-
.awsui_resize-
|
|
158
|
+
.awsui_resize-active_x7peu_84vi8_93 .awsui_tracker_x7peu_84vi8_149:not(#\9) {
|
|
159
159
|
display: block;
|
|
160
160
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"resize-active": "awsui_resize-
|
|
6
|
-
"resize-active-with-focus": "awsui_resize-active-with-
|
|
7
|
-
"resizer": "
|
|
8
|
-
"resizer-active": "awsui_resizer-
|
|
9
|
-
"has-focus": "awsui_has-
|
|
10
|
-
"tracker": "
|
|
5
|
+
"resize-active": "awsui_resize-active_x7peu_84vi8_93",
|
|
6
|
+
"resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_84vi8_93",
|
|
7
|
+
"resizer": "awsui_resizer_x7peu_84vi8_98",
|
|
8
|
+
"resizer-active": "awsui_resizer-active_x7peu_84vi8_114",
|
|
9
|
+
"has-focus": "awsui_has-focus_x7peu_84vi8_126",
|
|
10
|
+
"tracker": "awsui_tracker_x7peu_84vi8_149"
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
|
|
2
|
+
import ButtonWrapper from '../button';
|
|
3
|
+
export default class FileUploadWrapper extends ComponentWrapper<HTMLElement> {
|
|
4
|
+
static rootSelector: string;
|
|
5
|
+
findUploadButton(): ButtonWrapper;
|
|
6
|
+
findNativeInput(): ElementWrapper<HTMLInputElement>;
|
|
7
|
+
findFileTokens(): Array<FileTokenWrapper>;
|
|
8
|
+
/**
|
|
9
|
+
* Returns a file token from for a given index.
|
|
10
|
+
*
|
|
11
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
12
|
+
*/
|
|
13
|
+
findFileToken(fileTokenIndex: number): null | FileTokenWrapper;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the token toggle button.
|
|
16
|
+
*/
|
|
17
|
+
findTokenToggle(): null | ElementWrapper;
|
|
18
|
+
findConstraint(): null | ElementWrapper;
|
|
19
|
+
findError(): null | ElementWrapper;
|
|
20
|
+
}
|
|
21
|
+
declare class FileTokenWrapper extends ComponentWrapper {
|
|
22
|
+
findFileName(): ElementWrapper;
|
|
23
|
+
findFileSize(): null | ElementWrapper;
|
|
24
|
+
findFileLastModified(): null | ElementWrapper;
|
|
25
|
+
findFileThumbnail(): null | ElementWrapper;
|
|
26
|
+
findFileError(): null | ElementWrapper;
|
|
27
|
+
findRemoveButton(): ElementWrapper;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
|
+
const styles_selectors_js_1 = require("../../../file-upload/styles.selectors.js");
|
|
7
|
+
const styles_selectors_js_2 = require("../../../file-upload/file-input/styles.selectors.js");
|
|
8
|
+
const styles_selectors_js_3 = require("../../../file-upload/file-option/styles.selectors.js");
|
|
9
|
+
const styles_selectors_js_4 = require("../../../token-group/styles.selectors.js");
|
|
10
|
+
const styles_selectors_js_5 = require("../../../internal/components/token-list/styles.selectors.js");
|
|
11
|
+
const styles_selectors_js_6 = require("../../../form-field/styles.selectors.js");
|
|
12
|
+
const button_1 = require("../button");
|
|
13
|
+
class FileUploadWrapper extends dom_1.ComponentWrapper {
|
|
14
|
+
findUploadButton() {
|
|
15
|
+
return this.findComponent(`.${styles_selectors_js_2.default['upload-button']}`, button_1.default);
|
|
16
|
+
}
|
|
17
|
+
findNativeInput() {
|
|
18
|
+
return this.findByClassName(styles_selectors_js_2.default['upload-input']);
|
|
19
|
+
}
|
|
20
|
+
findFileTokens() {
|
|
21
|
+
return this.findAllByClassName(styles_selectors_js_4.default.token).map(tokenElement => new FileTokenWrapper(tokenElement.getElement()));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a file token from for a given index.
|
|
25
|
+
*
|
|
26
|
+
* @param tokenIndex 1-based index of the file token to return.
|
|
27
|
+
*/
|
|
28
|
+
findFileToken(fileTokenIndex) {
|
|
29
|
+
return this.findComponent(`.${styles_selectors_js_4.default.token}[data-index="${fileTokenIndex - 1}"]`, FileTokenWrapper);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the token toggle button.
|
|
33
|
+
*/
|
|
34
|
+
findTokenToggle() {
|
|
35
|
+
return this.findByClassName(styles_selectors_js_5.default.toggle);
|
|
36
|
+
}
|
|
37
|
+
findConstraint() {
|
|
38
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_6.default.constraint}`);
|
|
39
|
+
}
|
|
40
|
+
findError() {
|
|
41
|
+
return this.find(`.${styles_selectors_js_1.default.hints} .${styles_selectors_js_6.default.error} .${styles_selectors_js_6.default.error__message}`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = FileUploadWrapper;
|
|
45
|
+
FileUploadWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
46
|
+
class FileTokenWrapper extends dom_1.ComponentWrapper {
|
|
47
|
+
findFileName() {
|
|
48
|
+
return this.findByClassName(styles_selectors_js_3.default['file-option-name']);
|
|
49
|
+
}
|
|
50
|
+
findFileSize() {
|
|
51
|
+
return this.findByClassName(styles_selectors_js_3.default['file-option-size']);
|
|
52
|
+
}
|
|
53
|
+
findFileLastModified() {
|
|
54
|
+
return this.findByClassName(styles_selectors_js_3.default['file-option-last-modified']);
|
|
55
|
+
}
|
|
56
|
+
findFileThumbnail() {
|
|
57
|
+
return this.findByClassName(styles_selectors_js_3.default['file-option-thumbnail-image']);
|
|
58
|
+
}
|
|
59
|
+
findFileError() {
|
|
60
|
+
return this.find(`.${styles_selectors_js_6.default.error} .${styles_selectors_js_6.default.error__message}`);
|
|
61
|
+
}
|
|
62
|
+
findRemoveButton() {
|
|
63
|
+
return this.findByClassName(styles_selectors_js_4.default['dismiss-button']);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/file-upload/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAC1F,kFAA2E;AAC3E,6FAA2F;AAC3F,8FAA6F;AAC7F,kFAA2E;AAC3E,qGAA6F;AAC7F,iFAAsE;AACtE,sCAAsC;AAEtC,MAAqB,iBAAkB,SAAQ,sBAA6B;IAG1E,gBAAgB;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAwB,CAAC,eAAe,CAAC,EAAE,EAAE,gBAAa,CAAE,CAAC;IAC7F,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAwB,CAAC,cAAc,CAAC,CAAE,CAAC;IACzE,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAmB,CAAC,KAAK,CAAC,CAAC,GAAG,CAC3D,YAAY,CAAC,EAAE,CAAC,IAAI,gBAAgB,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,cAAsB;QAClC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,6BAAmB,CAAC,KAAK,gBAA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from './date-range-picker';
|
|
|
48
48
|
export { DateRangePickerWrapper };
|
|
49
49
|
import ExpandableSectionWrapper from './expandable-section';
|
|
50
50
|
export { ExpandableSectionWrapper };
|
|
51
|
+
import FileUploadWrapper from './file-upload';
|
|
52
|
+
export { FileUploadWrapper };
|
|
51
53
|
import FlashbarWrapper from './flashbar';
|
|
52
54
|
export { FlashbarWrapper };
|
|
53
55
|
import FormWrapper from './form';
|
|
@@ -156,6 +158,7 @@ declare module '@cloudscape-design/test-utils-core/dist/dom' {
|
|
|
156
158
|
findDatePicker(selector?: string): DatePickerWrapper | null;
|
|
157
159
|
findDateRangePicker(selector?: string): DateRangePickerWrapper | null;
|
|
158
160
|
findExpandableSection(selector?: string): ExpandableSectionWrapper | null;
|
|
161
|
+
findFileUpload(selector?: string): FileUploadWrapper | null;
|
|
159
162
|
findFlashbar(selector?: string): FlashbarWrapper | null;
|
|
160
163
|
findForm(selector?: string): FormWrapper | null;
|
|
161
164
|
findFormField(selector?: string): FormFieldWrapper | null;
|
package/test-utils/dom/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = void 0;
|
|
3
|
+
exports.SideNavigationWrapper = exports.SelectWrapper = exports.SegmentedControlWrapper = exports.S3ResourceSelectorWrapper = exports.RadioGroupWrapper = exports.PropertyFilterWrapper = exports.ProgressBarWrapper = exports.PopoverWrapper = exports.PieChartWrapper = exports.PaginationWrapper = exports.MultiselectWrapper = exports.ModalWrapper = exports.MixedLineBarChartWrapper = exports.LinkWrapper = exports.LineChartWrapper = exports.InputWrapper = exports.IconWrapper = exports.HotspotWrapper = exports.HelpPanelWrapper = exports.HeaderWrapper = exports.GridWrapper = exports.FormFieldWrapper = exports.FormWrapper = exports.FlashbarWrapper = exports.FileUploadWrapper = exports.ExpandableSectionWrapper = exports.DateRangePickerWrapper = exports.DatePickerWrapper = exports.DateInputWrapper = exports.ContentLayoutWrapper = exports.ContainerWrapper = exports.ColumnLayoutWrapper = exports.CollectionPreferencesWrapper = exports.CodeEditorWrapper = exports.CheckboxWrapper = exports.CardsWrapper = exports.CalendarWrapper = exports.ButtonDropdownWrapper = exports.ButtonWrapper = exports.BreadcrumbGroupWrapper = exports.BoxWrapper = exports.BarChartWrapper = exports.BadgeWrapper = exports.AutosuggestWrapper = exports.AttributeEditorWrapper = exports.AreaChartWrapper = exports.AppLayoutWrapper = exports.AnnotationWrapper = exports.AlertWrapper = exports.ElementWrapper = void 0;
|
|
4
|
+
exports.WizardWrapper = exports.TutorialPanelWrapper = exports.TopNavigationWrapper = exports.TokenGroupWrapper = exports.ToggleWrapper = exports.TimeInputWrapper = exports.TilesWrapper = exports.TextareaWrapper = exports.TextFilterWrapper = exports.TextContentWrapper = exports.TagEditorWrapper = exports.TabsWrapper = exports.TableWrapper = exports.StatusIndicatorWrapper = exports.SplitPanelWrapper = exports.SpinnerWrapper = exports.SpaceBetweenWrapper = void 0;
|
|
5
5
|
const dom_1 = require("@cloudscape-design/test-utils-core/dom");
|
|
6
6
|
Object.defineProperty(exports, "ElementWrapper", { enumerable: true, get: function () { return dom_1.ElementWrapper; } });
|
|
7
7
|
const utils_1 = require("@cloudscape-design/test-utils-core/utils");
|
|
@@ -53,6 +53,8 @@ const date_range_picker_1 = require("./date-range-picker");
|
|
|
53
53
|
exports.DateRangePickerWrapper = date_range_picker_1.default;
|
|
54
54
|
const expandable_section_1 = require("./expandable-section");
|
|
55
55
|
exports.ExpandableSectionWrapper = expandable_section_1.default;
|
|
56
|
+
const file_upload_1 = require("./file-upload");
|
|
57
|
+
exports.FileUploadWrapper = file_upload_1.default;
|
|
56
58
|
const flashbar_1 = require("./flashbar");
|
|
57
59
|
exports.FlashbarWrapper = flashbar_1.default;
|
|
58
60
|
const form_1 = require("./form");
|
|
@@ -279,6 +281,12 @@ dom_1.ElementWrapper.prototype.findExpandableSection = function (selector) {
|
|
|
279
281
|
// https://github.com/microsoft/TypeScript/issues/29132
|
|
280
282
|
return this.findComponent(selector ? (0, utils_1.appendSelector)(selector, rootSelector) : rootSelector, expandable_section_1.default);
|
|
281
283
|
};
|
|
284
|
+
dom_1.ElementWrapper.prototype.findFileUpload = function (selector) {
|
|
285
|
+
const rootSelector = `.${file_upload_1.default.rootSelector}`;
|
|
286
|
+
// casting to 'any' is needed to avoid this issue with generics
|
|
287
|
+
// https://github.com/microsoft/TypeScript/issues/29132
|
|
288
|
+
return this.findComponent(selector ? (0, utils_1.appendSelector)(selector, rootSelector) : rootSelector, file_upload_1.default);
|
|
289
|
+
};
|
|
282
290
|
dom_1.ElementWrapper.prototype.findFlashbar = function (selector) {
|
|
283
291
|
const rootSelector = `.${flashbar_1.default.rootSelector}`;
|
|
284
292
|
// casting to 'any' is needed to avoid this issue with generics
|