@cloudscape-design/components 3.0.653 → 3.0.655
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/styles.css.js +82 -82
- package/app-layout/visual-refresh/styles.scoped.css +162 -161
- package/app-layout/visual-refresh/styles.selectors.js +82 -82
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/table/body-cell/inline-editor.js +1 -1
- package/table/body-cell/inline-editor.js.map +1 -1
- package/table/body-cell/styles.css.js +46 -45
- package/table/body-cell/styles.scoped.css +191 -188
- package/table/body-cell/styles.selectors.js +46 -45
|
@@ -2,87 +2,87 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"background": "
|
|
6
|
-
"scrolling-background": "awsui_scrolling-
|
|
7
|
-
"breadcrumbs": "
|
|
8
|
-
"drawers-container": "awsui_drawers-
|
|
9
|
-
"has-open-drawer": "awsui_has-open-
|
|
10
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
11
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
12
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
13
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
14
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
15
|
-
"drawers-trigger-overflow": "awsui_drawers-trigger-
|
|
16
|
-
"drawers-trigger": "awsui_drawers-
|
|
17
|
-
"drawer": "
|
|
18
|
-
"drawer-content-container": "awsui_drawer-content-
|
|
19
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
20
|
-
"drawer-content": "awsui_drawer-
|
|
21
|
-
"drawer-content-hidden": "awsui_drawer-content-
|
|
22
|
-
"drawer-slider": "awsui_drawer-
|
|
23
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
24
|
-
"content": "
|
|
25
|
-
"layout": "
|
|
26
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
27
|
-
"content-type-dashboard": "awsui_content-type-
|
|
28
|
-
"content-type-table": "awsui_content-type-
|
|
29
|
-
"content-type-cards": "awsui_content-type-
|
|
30
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
31
|
-
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-
|
|
32
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
33
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
34
|
-
"has-breadcrumbs": "awsui_has-
|
|
35
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
36
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
37
|
-
"has-header": "awsui_has-
|
|
38
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
39
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
40
|
-
"has-left-toggles-gutter": "awsui_has-left-toggles-
|
|
41
|
-
"has-right-toggles-gutter": "awsui_has-right-toggles-
|
|
42
|
-
"has-split-panel": "awsui_has-split-
|
|
43
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
44
|
-
"block-body-scroll": "awsui_block-body-
|
|
45
|
-
"unfocusable": "
|
|
46
|
-
"container": "
|
|
47
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
48
|
-
"is-tools-open": "awsui_is-tools-
|
|
49
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
50
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
51
|
-
"has-active-drawer": "awsui_has-active-
|
|
52
|
-
"mobile-toolbar": "awsui_mobile-
|
|
53
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
54
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
55
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
56
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
57
|
-
"navigation-container": "awsui_navigation-
|
|
58
|
-
"show-navigation": "awsui_show-
|
|
59
|
-
"animating": "
|
|
60
|
-
"showButtons": "
|
|
61
|
-
"navigation": "
|
|
62
|
-
"openNavigation": "
|
|
63
|
-
"animated-content": "awsui_animated-
|
|
64
|
-
"hide-navigation": "awsui_hide-
|
|
65
|
-
"notifications": "
|
|
66
|
-
"has-notification-content": "awsui_has-notification-
|
|
67
|
-
"sticky-notifications": "awsui_sticky-
|
|
68
|
-
"high-contrast": "awsui_high-
|
|
69
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
70
|
-
"position-bottom": "awsui_position-
|
|
71
|
-
"openSplitPanelBottom": "
|
|
72
|
-
"split-panel-side": "awsui_split-panel-
|
|
73
|
-
"position-side": "awsui_position-
|
|
74
|
-
"tools-container": "awsui_tools-
|
|
75
|
-
"tools": "
|
|
76
|
-
"openTools": "
|
|
77
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
78
|
-
"hide-tools": "awsui_hide-
|
|
79
|
-
"show-tools": "awsui_show-
|
|
80
|
-
"has-tools-form": "awsui_has-tools-
|
|
81
|
-
"trigger-badge-wrapper": "awsui_trigger-badge-
|
|
82
|
-
"trigger": "
|
|
83
|
-
"selected": "
|
|
84
|
-
"badge": "
|
|
85
|
-
"trigger-wrapper": "awsui_trigger-
|
|
86
|
-
"dot": "
|
|
5
|
+
"background": "awsui_background_hyvsj_gc2xf_97",
|
|
6
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_gc2xf_100",
|
|
7
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_gc2xf_111",
|
|
8
|
+
"drawers-container": "awsui_drawers-container_hyvsj_gc2xf_124",
|
|
9
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_gc2xf_135",
|
|
10
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_gc2xf_156",
|
|
11
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_gc2xf_161",
|
|
12
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_gc2xf_202",
|
|
13
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_gc2xf_212",
|
|
14
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_gc2xf_217",
|
|
15
|
+
"drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_gc2xf_231",
|
|
16
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_gc2xf_217",
|
|
17
|
+
"drawer": "awsui_drawer_hyvsj_gc2xf_124",
|
|
18
|
+
"drawer-content-container": "awsui_drawer-content-container_hyvsj_gc2xf_262",
|
|
19
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_gc2xf_271",
|
|
20
|
+
"drawer-content": "awsui_drawer-content_hyvsj_gc2xf_262",
|
|
21
|
+
"drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_gc2xf_279",
|
|
22
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_gc2xf_282",
|
|
23
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_gc2xf_289",
|
|
24
|
+
"content": "awsui_content_hyvsj_gc2xf_315",
|
|
25
|
+
"layout": "awsui_layout_hyvsj_gc2xf_336",
|
|
26
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_gc2xf_408",
|
|
27
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_gc2xf_423",
|
|
28
|
+
"content-type-table": "awsui_content-type-table_hyvsj_gc2xf_437",
|
|
29
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_gc2xf_437",
|
|
30
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_gc2xf_443",
|
|
31
|
+
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_gc2xf_446",
|
|
32
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_gc2xf_460",
|
|
33
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_gc2xf_463",
|
|
34
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_gc2xf_473",
|
|
35
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_gc2xf_476",
|
|
36
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_gc2xf_476",
|
|
37
|
+
"has-header": "awsui_has-header_hyvsj_gc2xf_476",
|
|
38
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_gc2xf_491",
|
|
39
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_gc2xf_491",
|
|
40
|
+
"has-left-toggles-gutter": "awsui_has-left-toggles-gutter_hyvsj_gc2xf_511",
|
|
41
|
+
"has-right-toggles-gutter": "awsui_has-right-toggles-gutter_hyvsj_gc2xf_514",
|
|
42
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_gc2xf_534",
|
|
43
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_gc2xf_534",
|
|
44
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_gc2xf_542",
|
|
45
|
+
"unfocusable": "awsui_unfocusable_hyvsj_gc2xf_547",
|
|
46
|
+
"container": "awsui_container_hyvsj_gc2xf_557",
|
|
47
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_gc2xf_583",
|
|
48
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_gc2xf_586",
|
|
49
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_gc2xf_586",
|
|
50
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_gc2xf_586",
|
|
51
|
+
"has-active-drawer": "awsui_has-active-drawer_hyvsj_gc2xf_586",
|
|
52
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_gc2xf_595",
|
|
53
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_gc2xf_612",
|
|
54
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_gc2xf_616",
|
|
55
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_gc2xf_620",
|
|
56
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_gc2xf_624",
|
|
57
|
+
"navigation-container": "awsui_navigation-container_hyvsj_gc2xf_633",
|
|
58
|
+
"show-navigation": "awsui_show-navigation_hyvsj_gc2xf_671",
|
|
59
|
+
"animating": "awsui_animating_hyvsj_gc2xf_694",
|
|
60
|
+
"showButtons": "awsui_showButtons_hyvsj_gc2xf_1",
|
|
61
|
+
"navigation": "awsui_navigation_hyvsj_gc2xf_633",
|
|
62
|
+
"openNavigation": "awsui_openNavigation_hyvsj_gc2xf_1",
|
|
63
|
+
"animated-content": "awsui_animated-content_hyvsj_gc2xf_756",
|
|
64
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_gc2xf_765",
|
|
65
|
+
"notifications": "awsui_notifications_hyvsj_gc2xf_775",
|
|
66
|
+
"has-notification-content": "awsui_has-notification-content_hyvsj_gc2xf_780",
|
|
67
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_gc2xf_784",
|
|
68
|
+
"high-contrast": "awsui_high-contrast_hyvsj_gc2xf_789",
|
|
69
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_gc2xf_807",
|
|
70
|
+
"position-bottom": "awsui_position-bottom_hyvsj_gc2xf_854",
|
|
71
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_gc2xf_1",
|
|
72
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_gc2xf_883",
|
|
73
|
+
"position-side": "awsui_position-side_hyvsj_gc2xf_896",
|
|
74
|
+
"tools-container": "awsui_tools-container_hyvsj_gc2xf_918",
|
|
75
|
+
"tools": "awsui_tools_hyvsj_gc2xf_918",
|
|
76
|
+
"openTools": "awsui_openTools_hyvsj_gc2xf_1",
|
|
77
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_gc2xf_1007",
|
|
78
|
+
"hide-tools": "awsui_hide-tools_hyvsj_gc2xf_1017",
|
|
79
|
+
"show-tools": "awsui_show-tools_hyvsj_gc2xf_1029",
|
|
80
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_gc2xf_1007",
|
|
81
|
+
"trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_gc2xf_1112",
|
|
82
|
+
"trigger": "awsui_trigger_hyvsj_gc2xf_1112",
|
|
83
|
+
"selected": "awsui_selected_hyvsj_gc2xf_1190",
|
|
84
|
+
"badge": "awsui_badge_hyvsj_gc2xf_1210",
|
|
85
|
+
"trigger-wrapper": "awsui_trigger-wrapper_hyvsj_gc2xf_1214",
|
|
86
|
+
"dot": "awsui_dot_hyvsj_gc2xf_1225"
|
|
87
87
|
};
|
|
88
88
|
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ export function InlineEditor({ ariaLabels, item, column, onEditEnd, submitEdit,
|
|
|
73
73
|
React.createElement("form", { onSubmit: onSubmitClick, className: styles['body-cell-editor-form'] },
|
|
74
74
|
React.createElement(FormField, { stretch: true, label: ariaLabel, constraintText: constraintText, __hideLabel: true, __disableGutters: true, i18nStrings: { errorIconAriaLabel }, errorText: validation(item, currentEditValue) },
|
|
75
75
|
React.createElement("div", { className: styles['body-cell-editor-row'] },
|
|
76
|
-
editingCell(item, cellContext),
|
|
76
|
+
React.createElement("div", { className: styles['body-cell-editor-row-editor'] }, editingCell(item, cellContext)),
|
|
77
77
|
React.createElement("span", { className: styles['body-cell-editor-controls'] },
|
|
78
78
|
React.createElement(SpaceBetween, { direction: "horizontal", size: "xxs" },
|
|
79
79
|
!currentEditLoading ? (React.createElement(Button, { ariaLabel: (_b = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.cancelEditLabel) === null || _b === void 0 ? void 0 : _b.call(ariaLabels, column), formAction: "none", iconName: "close", variant: "inline-icon", onClick: () => onCancel() })) : null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AAkB,2DAAG,MAAM,CAAC,CAAC;gCACjF,CAAC,CAAC,EAAE,CACK,CACR,CACH,CACI,CACP,CACH,CACI,CACb,CAAC;AACJ,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 Button from '../../button/internal';\nimport FormField from '../../form-field/internal';\nimport SpaceBetween from '../../space-between/internal';\nimport { useClickAway } from './click-away';\nimport { TableProps } from '../interfaces';\nimport styles from './styles.css.js';\nimport { Optional } from '../../internal/types';\nimport FocusLock, { FocusLockRef } from '../../internal/components/focus-lock';\nimport LiveRegion from '../../internal/components/live-region';\nimport { useInternalI18n } from '../../i18n/context';\n\n// A function that does nothing\nconst noop = () => undefined;\n\ninterface OnEditEndOptions {\n cancelled: boolean;\n refocusCell: boolean;\n}\n\ninterface InlineEditorProps<ItemType> {\n ariaLabels: TableProps['ariaLabels'];\n column: TableProps.ColumnDefinition<ItemType>;\n item: ItemType;\n onEditEnd: (options: OnEditEndOptions) => void;\n submitEdit: TableProps.SubmitEditFunction<ItemType>;\n __onRender?: () => void;\n}\n\nexport function InlineEditor<ItemType>({\n ariaLabels,\n item,\n column,\n onEditEnd,\n submitEdit,\n __onRender,\n}: InlineEditorProps<ItemType>) {\n const [currentEditLoading, setCurrentEditLoading] = useState(false);\n const [currentEditValue, setCurrentEditValue] = useState<Optional<any>>();\n const i18n = useInternalI18n('table');\n\n const focusLockRef = useRef<FocusLockRef>(null);\n\n const cellContext = {\n currentValue: currentEditValue,\n setValue: setCurrentEditValue,\n };\n\n function finishEdit({ cancelled = false, refocusCell = true }: Partial<OnEditEndOptions> = {}) {\n if (!cancelled) {\n setCurrentEditValue(undefined);\n }\n onEditEnd({ cancelled, refocusCell: refocusCell });\n }\n\n async function onSubmitClick(evt: React.FormEvent) {\n evt.preventDefault();\n if (currentEditValue === undefined) {\n finishEdit();\n return;\n }\n\n setCurrentEditLoading(true);\n try {\n await submitEdit(item, column, currentEditValue);\n setCurrentEditLoading(false);\n finishEdit();\n } catch (e) {\n setCurrentEditLoading(false);\n focusLockRef.current?.focusFirst();\n }\n }\n\n function onCancel({ reFocusEditedCell = true } = {}) {\n if (currentEditLoading) {\n return;\n }\n finishEdit({ cancelled: true, refocusCell: reFocusEditedCell });\n }\n\n function handleEscape(event: React.KeyboardEvent): void {\n if (event.key === 'Escape') {\n onCancel();\n }\n }\n\n const clickAwayRef = useClickAway(() => onCancel({ reFocusEditedCell: false }));\n\n useEffect(() => {\n if (__onRender) {\n const timer = setTimeout(__onRender, 1);\n return () => clearTimeout(timer);\n }\n }, [__onRender]);\n\n // asserting non-undefined editConfig here because this component is unreachable otherwise\n const {\n ariaLabel = undefined,\n validation = noop,\n errorIconAriaLabel,\n constraintText,\n editingCell,\n } = column.editConfig!;\n\n return (\n <FocusLock restoreFocus={true} ref={focusLockRef}>\n <div\n role=\"dialog\"\n ref={clickAwayRef}\n aria-label={ariaLabels?.activateEditLabel?.(column, item)}\n onKeyDown={handleEscape}\n >\n <form onSubmit={onSubmitClick} className={styles['body-cell-editor-form']}>\n <FormField\n stretch={true}\n label={ariaLabel}\n constraintText={constraintText}\n __hideLabel={true}\n __disableGutters={true}\n i18nStrings={{ errorIconAriaLabel }}\n errorText={validation(item, currentEditValue)}\n >\n <div className={styles['body-cell-editor-row']}>\n <div className={styles['body-cell-editor-row-editor']}>{editingCell(item, cellContext)}</div>\n <span className={styles['body-cell-editor-controls']}>\n <SpaceBetween direction=\"horizontal\" size=\"xxs\">\n {!currentEditLoading ? (\n <Button\n ariaLabel={ariaLabels?.cancelEditLabel?.(column)}\n formAction=\"none\"\n iconName=\"close\"\n variant=\"inline-icon\"\n onClick={() => onCancel()}\n />\n ) : null}\n <Button\n ariaLabel={ariaLabels?.submitEditLabel?.(column)}\n formAction=\"submit\"\n iconName=\"check\"\n variant=\"inline-icon\"\n loading={currentEditLoading}\n />\n </SpaceBetween>\n <LiveRegion>\n {currentEditLoading\n ? i18n('ariaLabels.submittingEditText', ariaLabels?.submittingEditText?.(column))\n : ''}\n </LiveRegion>\n </span>\n </div>\n </FormField>\n </form>\n </div>\n </FocusLock>\n );\n}\n"]}
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"expandable-toggle-wrapper": "awsui_expandable-toggle-
|
|
5
|
-
"body-cell": "awsui_body-
|
|
6
|
-
"body-cell-content": "awsui_body-cell-
|
|
7
|
-
"expandable-level-0": "awsui_expandable-level-
|
|
8
|
-
"expandable-level-1": "awsui_expandable-level-
|
|
9
|
-
"expandable-level-2": "awsui_expandable-level-
|
|
10
|
-
"expandable-level-3": "awsui_expandable-level-
|
|
11
|
-
"expandable-level-4": "awsui_expandable-level-
|
|
12
|
-
"expandable-level-5": "awsui_expandable-level-
|
|
13
|
-
"expandable-level-6": "awsui_expandable-level-
|
|
14
|
-
"expandable-level-7": "awsui_expandable-level-
|
|
15
|
-
"expandable-level-8": "awsui_expandable-level-
|
|
16
|
-
"expandable-level-9": "awsui_expandable-level-
|
|
17
|
-
"expandable-level-next": "awsui_expandable-level-
|
|
18
|
-
"body-cell-wrap": "awsui_body-cell-
|
|
19
|
-
"is-visual-refresh": "awsui_is-visual-
|
|
20
|
-
"has-striped-rows": "awsui_has-striped-
|
|
21
|
-
"body-cell-edit-active": "awsui_body-cell-edit-
|
|
22
|
-
"body-cell-interactive": "awsui_body-cell-
|
|
23
|
-
"body-cell-editable": "awsui_body-cell-
|
|
24
|
-
"has-striped-rows-sticky-cell-pad-inline-start": "awsui_has-striped-rows-sticky-cell-pad-inline-
|
|
25
|
-
"has-selection": "awsui_has-
|
|
26
|
-
"body-cell-first-row": "awsui_body-cell-first-
|
|
27
|
-
"body-cell-last-row": "awsui_body-cell-last-
|
|
28
|
-
"body-cell-selected": "awsui_body-cell-
|
|
29
|
-
"has-footer": "awsui_has-
|
|
30
|
-
"body-cell-shaded": "awsui_body-cell-
|
|
31
|
-
"sticky-cell": "awsui_sticky-
|
|
32
|
-
"sticky-cell-pad-left": "awsui_sticky-cell-pad-
|
|
33
|
-
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-
|
|
34
|
-
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-
|
|
35
|
-
"body-cell-next-selected": "awsui_body-cell-next-
|
|
36
|
-
"body-cell-prev-selected": "awsui_body-cell-prev-
|
|
37
|
-
"body-cell-editor-wrapper": "awsui_body-cell-editor-
|
|
38
|
-
"body-cell-success": "awsui_body-cell-
|
|
39
|
-
"body-cell-editor": "awsui_body-cell-
|
|
40
|
-
"body-cell-editor-disabled": "awsui_body-cell-editor-
|
|
41
|
-
"body-cell-editor-form": "awsui_body-cell-editor-
|
|
42
|
-
"body-cell-editor-row": "awsui_body-cell-editor-
|
|
43
|
-
"body-cell-editor-controls": "awsui_body-cell-editor-
|
|
44
|
-
"body-cell-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"body-cell-
|
|
4
|
+
"expandable-toggle-wrapper": "awsui_expandable-toggle-wrapper_c6tup_14u7g_97",
|
|
5
|
+
"body-cell": "awsui_body-cell_c6tup_14u7g_105",
|
|
6
|
+
"body-cell-content": "awsui_body-cell-content_c6tup_14u7g_113",
|
|
7
|
+
"expandable-level-0": "awsui_expandable-level-0_c6tup_14u7g_116",
|
|
8
|
+
"expandable-level-1": "awsui_expandable-level-1_c6tup_14u7g_119",
|
|
9
|
+
"expandable-level-2": "awsui_expandable-level-2_c6tup_14u7g_122",
|
|
10
|
+
"expandable-level-3": "awsui_expandable-level-3_c6tup_14u7g_125",
|
|
11
|
+
"expandable-level-4": "awsui_expandable-level-4_c6tup_14u7g_128",
|
|
12
|
+
"expandable-level-5": "awsui_expandable-level-5_c6tup_14u7g_131",
|
|
13
|
+
"expandable-level-6": "awsui_expandable-level-6_c6tup_14u7g_134",
|
|
14
|
+
"expandable-level-7": "awsui_expandable-level-7_c6tup_14u7g_137",
|
|
15
|
+
"expandable-level-8": "awsui_expandable-level-8_c6tup_14u7g_140",
|
|
16
|
+
"expandable-level-9": "awsui_expandable-level-9_c6tup_14u7g_143",
|
|
17
|
+
"expandable-level-next": "awsui_expandable-level-next_c6tup_14u7g_146",
|
|
18
|
+
"body-cell-wrap": "awsui_body-cell-wrap_c6tup_14u7g_163",
|
|
19
|
+
"is-visual-refresh": "awsui_is-visual-refresh_c6tup_14u7g_177",
|
|
20
|
+
"has-striped-rows": "awsui_has-striped-rows_c6tup_14u7g_189",
|
|
21
|
+
"body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_14u7g_225",
|
|
22
|
+
"body-cell-interactive": "awsui_body-cell-interactive_c6tup_14u7g_225",
|
|
23
|
+
"body-cell-editable": "awsui_body-cell-editable_c6tup_14u7g_225",
|
|
24
|
+
"has-striped-rows-sticky-cell-pad-inline-start": "awsui_has-striped-rows-sticky-cell-pad-inline-start_c6tup_14u7g_297",
|
|
25
|
+
"has-selection": "awsui_has-selection_c6tup_14u7g_333",
|
|
26
|
+
"body-cell-first-row": "awsui_body-cell-first-row_c6tup_14u7g_376",
|
|
27
|
+
"body-cell-last-row": "awsui_body-cell-last-row_c6tup_14u7g_379",
|
|
28
|
+
"body-cell-selected": "awsui_body-cell-selected_c6tup_14u7g_379",
|
|
29
|
+
"has-footer": "awsui_has-footer_c6tup_14u7g_379",
|
|
30
|
+
"body-cell-shaded": "awsui_body-cell-shaded_c6tup_14u7g_389",
|
|
31
|
+
"sticky-cell": "awsui_sticky-cell_c6tup_14u7g_417",
|
|
32
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_c6tup_14u7g_425",
|
|
33
|
+
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_c6tup_14u7g_475",
|
|
34
|
+
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_c6tup_14u7g_484",
|
|
35
|
+
"body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_14u7g_517",
|
|
36
|
+
"body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_14u7g_523",
|
|
37
|
+
"body-cell-editor-wrapper": "awsui_body-cell-editor-wrapper_c6tup_14u7g_549",
|
|
38
|
+
"body-cell-success": "awsui_body-cell-success_c6tup_14u7g_556",
|
|
39
|
+
"body-cell-editor": "awsui_body-cell-editor_c6tup_14u7g_549",
|
|
40
|
+
"body-cell-editor-disabled": "awsui_body-cell-editor-disabled_c6tup_14u7g_583",
|
|
41
|
+
"body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_14u7g_592",
|
|
42
|
+
"body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_14u7g_602",
|
|
43
|
+
"body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_14u7g_612",
|
|
44
|
+
"body-cell-editor-row-editor": "awsui_body-cell-editor-row-editor_c6tup_14u7g_615",
|
|
45
|
+
"body-cell-expandable": "awsui_body-cell-expandable_c6tup_14u7g_618",
|
|
46
|
+
"resizable-columns": "awsui_resizable-columns_c6tup_14u7g_639",
|
|
47
|
+
"expandable-cell-content": "awsui_expandable-cell-content_c6tup_14u7g_642",
|
|
48
|
+
"body-cell-has-success": "awsui_body-cell-has-success_c6tup_14u7g_711",
|
|
49
|
+
"body-cell-edit-disabled-popover": "awsui_body-cell-edit-disabled-popover_c6tup_14u7g_711"
|
|
49
50
|
};
|
|
50
51
|
|