@cloudscape-design/components-themeable 3.0.1342 → 3.0.1344
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/alert/styles.scss +9 -8
- package/lib/internal/scss/flashbar/styles.scss +4 -4
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/link/styles.scss +2 -2
- package/lib/internal/scss/progress-bar/styles.scss +20 -0
- package/lib/internal/template/action-card/styles.css.js +17 -17
- package/lib/internal/template/action-card/styles.scoped.css +113 -113
- package/lib/internal/template/action-card/styles.selectors.js +17 -17
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +57 -56
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/anchor-navigation/styles.css.js +8 -8
- package/lib/internal/template/anchor-navigation/styles.scoped.css +28 -28
- package/lib/internal/template/anchor-navigation/styles.selectors.js +8 -8
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +26 -26
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/drawer/styles.css.js +14 -14
- package/lib/internal/template/app-layout/drawer/styles.scoped.css +31 -31
- package/lib/internal/template/app-layout/drawer/styles.selectors.js +14 -14
- package/lib/internal/template/app-layout/mobile-toolbar/styles.css.js +8 -8
- package/lib/internal/template/app-layout/mobile-toolbar/styles.scoped.css +12 -12
- package/lib/internal/template/app-layout/mobile-toolbar/styles.selectors.js +8 -8
- package/lib/internal/template/app-layout/styles.css.js +12 -12
- package/lib/internal/template/app-layout/styles.scoped.css +15 -15
- package/lib/internal/template/app-layout/styles.selectors.js +12 -12
- package/lib/internal/template/app-layout/toggles/styles.css.js +2 -2
- package/lib/internal/template/app-layout/toggles/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/toggles/styles.selectors.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +207 -207
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +113 -113
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +10 -10
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.scoped.css +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +73 -73
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.css.js +14 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +45 -45
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/styles.selectors.js +14 -14
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +26 -26
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +6 -6
- package/lib/internal/template/area-chart/styles.css.js +6 -6
- package/lib/internal/template/area-chart/styles.scoped.css +10 -10
- package/lib/internal/template/area-chart/styles.selectors.js +6 -6
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +33 -33
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/badge/styles.css.js +10 -10
- package/lib/internal/template/badge/styles.scoped.css +17 -17
- package/lib/internal/template/badge/styles.selectors.js +10 -10
- package/lib/internal/template/box/styles.css.js +220 -220
- package/lib/internal/template/box/styles.scoped.css +309 -309
- package/lib/internal/template/box/styles.selectors.js +220 -220
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +34 -34
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/breadcrumb-group/styles.css.js +14 -14
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +33 -33
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +14 -14
- package/lib/internal/template/button/styles.css.js +23 -23
- package/lib/internal/template/button/styles.scoped.css +134 -134
- package/lib/internal/template/button/styles.selectors.js +23 -23
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +18 -18
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +40 -40
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +18 -18
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +57 -57
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.scoped.css +7 -7
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/lib/internal/template/button-dropdown/styles.css.js +23 -23
- package/lib/internal/template/button-dropdown/styles.scoped.css +35 -35
- package/lib/internal/template/button-dropdown/styles.selectors.js +23 -23
- package/lib/internal/template/button-group/styles.css.js +4 -4
- package/lib/internal/template/button-group/styles.scoped.css +6 -6
- package/lib/internal/template/button-group/styles.selectors.js +4 -4
- package/lib/internal/template/calendar/styles.css.js +21 -21
- package/lib/internal/template/calendar/styles.scoped.css +64 -64
- package/lib/internal/template/calendar/styles.selectors.js +21 -21
- package/lib/internal/template/cards/styles.css.js +38 -38
- package/lib/internal/template/cards/styles.scoped.css +42 -42
- package/lib/internal/template/cards/styles.selectors.js +38 -38
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +7 -7
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/styles.css.js +33 -33
- package/lib/internal/template/code-editor/styles.scoped.css +226 -226
- package/lib/internal/template/code-editor/styles.selectors.js +33 -33
- package/lib/internal/template/collection-preferences/styles.css.js +38 -38
- package/lib/internal/template/collection-preferences/styles.scoped.css +47 -47
- package/lib/internal/template/collection-preferences/styles.selectors.js +38 -38
- package/lib/internal/template/column-layout/flexible-column-layout/styles.css.js +5 -5
- package/lib/internal/template/column-layout/flexible-column-layout/styles.scoped.css +9 -9
- package/lib/internal/template/column-layout/flexible-column-layout/styles.selectors.js +5 -5
- package/lib/internal/template/column-layout/styles.css.js +13 -13
- package/lib/internal/template/column-layout/styles.scoped.css +47 -47
- package/lib/internal/template/column-layout/styles.selectors.js +13 -13
- package/lib/internal/template/container/styles.css.js +33 -33
- package/lib/internal/template/container/styles.scoped.css +69 -69
- package/lib/internal/template/container/styles.selectors.js +33 -33
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +19 -19
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/date-picker/styles.css.js +7 -7
- package/lib/internal/template/date-picker/styles.scoped.css +11 -11
- package/lib/internal/template/date-picker/styles.selectors.js +7 -7
- package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +30 -30
- package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +79 -79
- package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +30 -30
- package/lib/internal/template/date-range-picker/styles.css.js +23 -23
- package/lib/internal/template/date-range-picker/styles.scoped.css +40 -40
- package/lib/internal/template/date-range-picker/styles.selectors.js +23 -23
- package/lib/internal/template/divider/styles.css.js +6 -6
- package/lib/internal/template/divider/styles.scoped.css +10 -10
- package/lib/internal/template/divider/styles.selectors.js +6 -6
- package/lib/internal/template/drawer/styles.css.js +29 -29
- package/lib/internal/template/drawer/styles.scoped.css +47 -47
- package/lib/internal/template/drawer/styles.selectors.js +29 -29
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +43 -43
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/expandable-section/styles.css.js +42 -42
- package/lib/internal/template/expandable-section/styles.scoped.css +101 -101
- package/lib/internal/template/expandable-section/styles.selectors.js +42 -42
- package/lib/internal/template/file-dropzone/styles.css.js +3 -3
- package/lib/internal/template/file-dropzone/styles.scoped.css +12 -12
- package/lib/internal/template/file-dropzone/styles.selectors.js +3 -3
- package/lib/internal/template/file-input/styles.css.js +5 -5
- package/lib/internal/template/file-input/styles.scoped.css +10 -10
- package/lib/internal/template/file-input/styles.selectors.js +5 -5
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +51 -51
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +6 -1
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +165 -165
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/form/styles.css.js +8 -8
- package/lib/internal/template/form/styles.scoped.css +9 -9
- package/lib/internal/template/form/styles.selectors.js +8 -8
- package/lib/internal/template/form-field/styles.css.js +24 -24
- package/lib/internal/template/form-field/styles.scoped.css +44 -44
- package/lib/internal/template/form-field/styles.selectors.js +24 -24
- package/lib/internal/template/grid/styles.css.js +53 -53
- package/lib/internal/template/grid/styles.scoped.css +55 -55
- package/lib/internal/template/grid/styles.selectors.js +53 -53
- package/lib/internal/template/header/styles.css.js +35 -35
- package/lib/internal/template/header/styles.scoped.css +59 -59
- package/lib/internal/template/header/styles.selectors.js +35 -35
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +83 -83
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/icon/styles.css.js +41 -41
- package/lib/internal/template/icon/styles.scoped.css +106 -106
- package/lib/internal/template/icon/styles.selectors.js +41 -41
- package/lib/internal/template/input/styles.css.js +28 -28
- package/lib/internal/template/input/styles.scoped.css +120 -120
- package/lib/internal/template/input/styles.selectors.js +28 -28
- package/lib/internal/template/internal/base-component/styles.scoped.css +2879 -2756
- package/lib/internal/template/internal/components/abstract-switch/styles.css.js +13 -13
- package/lib/internal/template/internal/components/abstract-switch/styles.scoped.css +23 -23
- package/lib/internal/template/internal/components/abstract-switch/styles.selectors.js +13 -13
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +14 -14
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +63 -63
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +14 -14
- package/lib/internal/template/internal/components/cartesian-chart/styles.css.js +28 -28
- package/lib/internal/template/internal/components/cartesian-chart/styles.scoped.css +36 -36
- package/lib/internal/template/internal/components/cartesian-chart/styles.selectors.js +28 -28
- package/lib/internal/template/internal/components/chart-filter/styles.css.js +3 -3
- package/lib/internal/template/internal/components/chart-filter/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/chart-filter/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/chart-legend/styles.css.js +6 -6
- package/lib/internal/template/internal/components/chart-legend/styles.scoped.css +16 -16
- package/lib/internal/template/internal/components/chart-legend/styles.selectors.js +6 -6
- package/lib/internal/template/internal/components/chart-plot/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-plot/styles.scoped.css +6 -6
- package/lib/internal/template/internal/components/chart-plot/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/chart-popover/styles.css.js +3 -3
- package/lib/internal/template/internal/components/chart-popover/styles.scoped.css +6 -6
- package/lib/internal/template/internal/components/chart-popover/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/chart-series-details/styles.css.js +19 -19
- package/lib/internal/template/internal/components/chart-series-details/styles.scoped.css +37 -37
- package/lib/internal/template/internal/components/chart-series-details/styles.selectors.js +19 -19
- package/lib/internal/template/internal/components/chart-series-marker/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-series-marker/styles.scoped.css +9 -9
- package/lib/internal/template/internal/components/chart-series-marker/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/chart-status-container/styles.css.js +2 -2
- package/lib/internal/template/internal/components/chart-status-container/styles.scoped.css +3 -3
- package/lib/internal/template/internal/components/chart-status-container/styles.selectors.js +2 -2
- package/lib/internal/template/internal/components/chart-wrapper/styles.css.js +9 -9
- package/lib/internal/template/internal/components/chart-wrapper/styles.scoped.css +10 -10
- package/lib/internal/template/internal/components/chart-wrapper/styles.selectors.js +9 -9
- package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +9 -9
- package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +17 -17
- package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/lib/internal/template/internal/components/drag-handle/styles.css.js +14 -14
- package/lib/internal/template/internal/components/drag-handle/styles.scoped.css +24 -24
- package/lib/internal/template/internal/components/drag-handle/styles.selectors.js +14 -14
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +50 -50
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/dropdown-footer/styles.css.js +3 -3
- package/lib/internal/template/internal/components/dropdown-footer/styles.scoped.css +6 -6
- package/lib/internal/template/internal/components/dropdown-footer/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/dropdown-status/styles.css.js +2 -2
- package/lib/internal/template/internal/components/dropdown-status/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/dropdown-status/styles.selectors.js +2 -2
- package/lib/internal/template/internal/components/expand-toggle-button/styles.css.js +4 -4
- package/lib/internal/template/internal/components/expand-toggle-button/styles.scoped.css +18 -18
- package/lib/internal/template/internal/components/expand-toggle-button/styles.selectors.js +4 -4
- package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +19 -19
- package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/option/styles.css.js +17 -17
- package/lib/internal/template/internal/components/option/styles.scoped.css +37 -37
- package/lib/internal/template/internal/components/option/styles.selectors.js +17 -17
- package/lib/internal/template/internal/components/options-list/styles.css.js +3 -3
- package/lib/internal/template/internal/components/options-list/styles.scoped.css +4 -4
- package/lib/internal/template/internal/components/options-list/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/panel-resize-handle/styles.css.js +3 -3
- package/lib/internal/template/internal/components/panel-resize-handle/styles.scoped.css +8 -8
- package/lib/internal/template/internal/components/panel-resize-handle/styles.selectors.js +3 -3
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +22 -22
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -22
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +79 -79
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -22
- package/lib/internal/template/internal/components/sortable-area/styles.css.js +8 -8
- package/lib/internal/template/internal/components/sortable-area/styles.scoped.css +20 -20
- package/lib/internal/template/internal/components/sortable-area/styles.selectors.js +8 -8
- package/lib/internal/template/internal/components/structured-item/styles.css.js +7 -7
- package/lib/internal/template/internal/components/structured-item/styles.scoped.css +10 -10
- package/lib/internal/template/internal/components/structured-item/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +30 -30
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +19 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +342 -323
- package/lib/internal/template/internal/generated/theming/index.cjs +940 -351
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +5 -5
- package/lib/internal/template/internal/generated/theming/index.d.ts +5 -5
- package/lib/internal/template/internal/generated/theming/index.js +940 -351
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +58 -58
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/key-value-pairs/styles.css.js +8 -8
- package/lib/internal/template/key-value-pairs/styles.scoped.css +14 -14
- package/lib/internal/template/key-value-pairs/styles.selectors.js +8 -8
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +116 -116
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/list/styles.css.js +5 -5
- package/lib/internal/template/list/styles.scoped.css +9 -9
- package/lib/internal/template/list/styles.selectors.js +5 -5
- package/lib/internal/template/modal/styles.css.js +31 -31
- package/lib/internal/template/modal/styles.scoped.css +54 -54
- package/lib/internal/template/modal/styles.selectors.js +31 -31
- package/lib/internal/template/multiselect/styles.css.js +5 -5
- package/lib/internal/template/multiselect/styles.scoped.css +7 -7
- package/lib/internal/template/multiselect/styles.selectors.js +5 -5
- package/lib/internal/template/package.json +94 -0
- package/lib/internal/template/pagination/styles.css.js +12 -12
- package/lib/internal/template/pagination/styles.scoped.css +47 -47
- package/lib/internal/template/pagination/styles.selectors.js +12 -12
- package/lib/internal/template/panel-layout/styles.css.js +7 -7
- package/lib/internal/template/panel-layout/styles.scoped.css +13 -13
- package/lib/internal/template/panel-layout/styles.selectors.js +7 -7
- package/lib/internal/template/pie-chart/styles.css.js +27 -27
- package/lib/internal/template/pie-chart/styles.scoped.css +53 -53
- package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
- package/lib/internal/template/popover/styles.css.js +58 -58
- package/lib/internal/template/popover/styles.scoped.css +110 -110
- package/lib/internal/template/popover/styles.selectors.js +58 -58
- package/lib/internal/template/progress-bar/internal.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/internal.js +1 -1
- package/lib/internal/template/progress-bar/internal.js.map +1 -1
- package/lib/internal/template/progress-bar/styles.css.js +19 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +44 -32
- package/lib/internal/template/progress-bar/styles.selectors.js +19 -18
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +102 -102
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/property-filter/filtering-token/styles.css.js +18 -18
- package/lib/internal/template/property-filter/filtering-token/styles.scoped.css +55 -55
- package/lib/internal/template/property-filter/filtering-token/styles.selectors.js +18 -18
- package/lib/internal/template/property-filter/styles.css.js +39 -39
- package/lib/internal/template/property-filter/styles.scoped.css +52 -52
- package/lib/internal/template/property-filter/styles.selectors.js +39 -39
- package/lib/internal/template/radio-button/styles.css.js +1 -1
- package/lib/internal/template/radio-button/styles.scoped.css +2 -2
- package/lib/internal/template/radio-button/styles.selectors.js +1 -1
- package/lib/internal/template/radio-group/styles.css.js +5 -5
- package/lib/internal/template/radio-group/styles.scoped.css +7 -7
- package/lib/internal/template/radio-group/styles.selectors.js +5 -5
- package/lib/internal/template/s3-resource-selector/s3-in-context/styles.css.js +7 -7
- package/lib/internal/template/s3-resource-selector/s3-in-context/styles.scoped.css +9 -9
- package/lib/internal/template/s3-resource-selector/s3-in-context/styles.selectors.js +7 -7
- package/lib/internal/template/s3-resource-selector/s3-modal/styles.css.js +3 -3
- package/lib/internal/template/s3-resource-selector/s3-modal/styles.scoped.css +4 -4
- package/lib/internal/template/s3-resource-selector/s3-modal/styles.selectors.js +3 -3
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +46 -46
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/select/parts/styles.css.js +21 -21
- package/lib/internal/template/select/parts/styles.scoped.css +28 -28
- package/lib/internal/template/select/parts/styles.selectors.js +21 -21
- package/lib/internal/template/select/styles.css.js +3 -3
- package/lib/internal/template/select/styles.scoped.css +4 -4
- package/lib/internal/template/select/styles.selectors.js +3 -3
- package/lib/internal/template/side-navigation/styles.css.js +50 -50
- package/lib/internal/template/side-navigation/styles.scoped.css +92 -92
- package/lib/internal/template/side-navigation/styles.selectors.js +50 -50
- package/lib/internal/template/skeleton/styles.css.js +15 -15
- package/lib/internal/template/skeleton/styles.scoped.css +27 -27
- package/lib/internal/template/skeleton/styles.selectors.js +15 -15
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +154 -154
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +21 -21
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/split-panel/icons/styles.css.js +22 -22
- package/lib/internal/template/split-panel/icons/styles.scoped.css +44 -44
- package/lib/internal/template/split-panel/icons/styles.selectors.js +22 -22
- package/lib/internal/template/split-panel/styles.css.js +38 -38
- package/lib/internal/template/split-panel/styles.scoped.css +68 -68
- package/lib/internal/template/split-panel/styles.selectors.js +38 -38
- package/lib/internal/template/status-indicator/styles.css.js +25 -25
- package/lib/internal/template/status-indicator/styles.scoped.css +70 -70
- package/lib/internal/template/status-indicator/styles.selectors.js +25 -25
- package/lib/internal/template/steps/styles.css.js +17 -17
- package/lib/internal/template/steps/styles.scoped.css +37 -37
- package/lib/internal/template/steps/styles.selectors.js +17 -17
- package/lib/internal/template/table/body-cell/styles.css.js +48 -48
- package/lib/internal/template/table/body-cell/styles.scoped.css +405 -405
- package/lib/internal/template/table/body-cell/styles.selectors.js +48 -48
- package/lib/internal/template/table/header-cell/styles.css.js +38 -38
- package/lib/internal/template/table/header-cell/styles.scoped.css +102 -102
- package/lib/internal/template/table/header-cell/styles.selectors.js +38 -38
- package/lib/internal/template/table/interfaces.d.ts +62 -45
- 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 +2 -2
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/resizer/styles.css.js +17 -17
- package/lib/internal/template/table/resizer/styles.scoped.css +33 -33
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -17
- package/lib/internal/template/table/skeleton-rows.d.ts +2 -1
- package/lib/internal/template/table/skeleton-rows.d.ts.map +1 -1
- package/lib/internal/template/table/skeleton-rows.js +5 -2
- package/lib/internal/template/table/skeleton-rows.js.map +1 -1
- package/lib/internal/template/table/sticky-scrollbar/styles.css.js +6 -6
- package/lib/internal/template/table/sticky-scrollbar/styles.scoped.css +10 -10
- package/lib/internal/template/table/sticky-scrollbar/styles.selectors.js +6 -6
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +52 -52
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +64 -64
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +5 -0
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +15 -15
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +71 -71
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/text-filter/styles.css.js +3 -3
- package/lib/internal/template/text-filter/styles.scoped.css +5 -5
- package/lib/internal/template/text-filter/styles.selectors.js +3 -3
- package/lib/internal/template/textarea/styles.css.js +9 -9
- package/lib/internal/template/textarea/styles.scoped.css +46 -46
- package/lib/internal/template/textarea/styles.selectors.js +9 -9
- package/lib/internal/template/tiles/styles.css.js +30 -30
- package/lib/internal/template/tiles/styles.scoped.css +90 -90
- package/lib/internal/template/tiles/styles.selectors.js +30 -30
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +27 -27
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/toggle-button/styles.css.js +4 -4
- package/lib/internal/template/toggle-button/styles.scoped.css +12 -12
- package/lib/internal/template/toggle-button/styles.selectors.js +4 -4
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +47 -47
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/token-group/styles.css.js +5 -5
- package/lib/internal/template/token-group/styles.scoped.css +5 -5
- package/lib/internal/template/token-group/styles.selectors.js +5 -5
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +86 -86
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/lib/internal/template/tree-view/styles.css.js +2 -2
- package/lib/internal/template/tree-view/styles.scoped.css +3 -3
- package/lib/internal/template/tree-view/styles.selectors.js +2 -2
- package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -10
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +17 -17
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -10
- package/lib/internal/template/tree-view/vertical-connector/styles.css.js +3 -3
- package/lib/internal/template/tree-view/vertical-connector/styles.scoped.css +4 -4
- package/lib/internal/template/tree-view/vertical-connector/styles.selectors.js +3 -3
- package/lib/internal/template/truncated-text/styles.css.js +1 -1
- package/lib/internal/template/truncated-text/styles.scoped.css +6 -6
- package/lib/internal/template/truncated-text/styles.selectors.js +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +25 -25
- package/lib/internal/template/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +35 -35
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/lib/internal/template/tutorial-panel/styles.css.js +1 -1
- package/lib/internal/template/tutorial-panel/styles.scoped.css +7 -7
- package/lib/internal/template/tutorial-panel/styles.selectors.js +1 -1
- package/lib/internal/template/wizard/styles.css.js +30 -30
- package/lib/internal/template/wizard/styles.scoped.css +84 -84
- package/lib/internal/template/wizard/styles.selectors.js +30 -30
- package/package.json +1 -1
|
@@ -53,8 +53,11 @@ export interface TableProps<T = any> extends BaseComponentProps {
|
|
|
53
53
|
* - `minAutoRows` (number) - Sets the minimum number of skeleton rows rendered when `totalRows` is set to `'auto'`.
|
|
54
54
|
* Defaults to 1. Useful for tables rendered off-screen, where the calculated available height would
|
|
55
55
|
* otherwise yield a single row.
|
|
56
|
+
* - `renderCell` ((column) => ReactNode) - Renders a custom skeleton placeholder per column, for cells whose
|
|
57
|
+
* final content is not a single line of text (for example, multi-line cells, status indicators, or actions).
|
|
58
|
+
* Return `undefined` for a column to fall back to the default single-line skeleton.
|
|
56
59
|
*/
|
|
57
|
-
skeleton?: TableProps.SkeletonConfig
|
|
60
|
+
skeleton?: TableProps.SkeletonConfig<T>;
|
|
58
61
|
/**
|
|
59
62
|
* Specifies a property that uniquely identifies an individual item.
|
|
60
63
|
* When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)
|
|
@@ -456,18 +459,18 @@ export interface TableProps<T = any> extends BaseComponentProps {
|
|
|
456
459
|
renderLoaderCounter?: (detail: TableProps.RenderLoaderCounterDetail<T>) => React.ReactNode;
|
|
457
460
|
}
|
|
458
461
|
export declare namespace TableProps {
|
|
459
|
-
interface AnalyticsMetadata {
|
|
462
|
+
export interface AnalyticsMetadata {
|
|
460
463
|
instanceIdentifier?: string;
|
|
461
464
|
flowType?: 'view-resource';
|
|
462
465
|
resourceType?: string;
|
|
463
466
|
}
|
|
464
|
-
type TrackBy<T> = string | ((item: T) => string);
|
|
465
|
-
interface CellContext<V> {
|
|
467
|
+
export type TrackBy<T> = string | ((item: T) => string);
|
|
468
|
+
export interface CellContext<V> {
|
|
466
469
|
currentValue: Optional<V>;
|
|
467
470
|
setValue: (value: V | undefined) => void;
|
|
468
471
|
submitValue: () => void;
|
|
469
472
|
}
|
|
470
|
-
interface EditConfig<T, V = any> {
|
|
473
|
+
export interface EditConfig<T, V = any> {
|
|
471
474
|
/**
|
|
472
475
|
* Specifies a label for the edit control. Visually hidden but read
|
|
473
476
|
* by screen readers.
|
|
@@ -509,7 +512,7 @@ export declare namespace TableProps {
|
|
|
509
512
|
*/
|
|
510
513
|
disableNativeForm?: boolean;
|
|
511
514
|
}
|
|
512
|
-
type ColumnDefinition<T> = {
|
|
515
|
+
export type ColumnDefinition<T> = {
|
|
513
516
|
id?: string;
|
|
514
517
|
header: React.ReactNode;
|
|
515
518
|
ariaLabel?(data: LabelData): string;
|
|
@@ -523,33 +526,33 @@ export declare namespace TableProps {
|
|
|
523
526
|
hasDynamicContent?: boolean;
|
|
524
527
|
cell(item: T): React.ReactNode;
|
|
525
528
|
} & SortingColumn<T>;
|
|
526
|
-
interface GroupDefinition<T = any> {
|
|
529
|
+
export interface GroupDefinition<T = any> {
|
|
527
530
|
id: string;
|
|
528
531
|
header: React.ReactNode;
|
|
529
532
|
ariaLabel?: (data: LabelData) => string;
|
|
530
533
|
}
|
|
531
|
-
interface ItemCounterData<T> {
|
|
534
|
+
export interface ItemCounterData<T> {
|
|
532
535
|
item: T;
|
|
533
536
|
itemsCount?: number;
|
|
534
537
|
selectedItemsCount?: number;
|
|
535
538
|
}
|
|
536
|
-
interface StickyColumns {
|
|
539
|
+
export interface StickyColumns {
|
|
537
540
|
first?: number;
|
|
538
541
|
last?: number;
|
|
539
542
|
}
|
|
540
|
-
type VerticalAlign = 'middle' | 'top';
|
|
541
|
-
type SelectionType = 'single' | 'multi';
|
|
542
|
-
type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';
|
|
543
|
-
interface SelectionState<T> {
|
|
543
|
+
export type VerticalAlign = 'middle' | 'top';
|
|
544
|
+
export type SelectionType = 'single' | 'multi';
|
|
545
|
+
export type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';
|
|
546
|
+
export interface SelectionState<T> {
|
|
544
547
|
selectedItems: ReadonlyArray<T>;
|
|
545
548
|
itemsCount?: number;
|
|
546
549
|
selectedItemsCount?: number;
|
|
547
550
|
}
|
|
548
|
-
interface SelectionChangeDetail<T> {
|
|
551
|
+
export interface SelectionChangeDetail<T> {
|
|
549
552
|
selectedItems: T[];
|
|
550
553
|
}
|
|
551
|
-
type IsItemDisabled<T> = (item: T) => boolean;
|
|
552
|
-
interface AriaLabels<T> {
|
|
554
|
+
export type IsItemDisabled<T> = (item: T) => boolean;
|
|
555
|
+
export interface AriaLabels<T> {
|
|
553
556
|
allItemsSelectionLabel?: (data: SelectionState<T>) => string;
|
|
554
557
|
itemSelectionLabel?: (data: SelectionState<T>, row: T) => string;
|
|
555
558
|
itemLoaderSelectionLabel?: (data: SelectionState<T>, row: null | T) => string;
|
|
@@ -575,22 +578,22 @@ export declare namespace TableProps {
|
|
|
575
578
|
priority: number;
|
|
576
579
|
}) => string;
|
|
577
580
|
}
|
|
578
|
-
interface SortingState<T> {
|
|
581
|
+
export interface SortingState<T> {
|
|
579
582
|
isDescending?: boolean;
|
|
580
583
|
sortingColumn: SortingColumn<T>;
|
|
581
584
|
}
|
|
582
|
-
interface SortingColumn<T> {
|
|
585
|
+
export interface SortingColumn<T> {
|
|
583
586
|
sortingField?: string;
|
|
584
587
|
sortingComparator?: (a: T, b: T) => number;
|
|
585
588
|
}
|
|
586
|
-
interface MultiColumnSort<T> {
|
|
589
|
+
export interface MultiColumnSort<T> {
|
|
587
590
|
sortingColumns: ReadonlyArray<SortingState<T>>;
|
|
588
591
|
onChange: NonCancelableEventHandler<MultiColumnSortChangeDetail<T>>;
|
|
589
592
|
}
|
|
590
|
-
interface MultiColumnSortChangeDetail<T> {
|
|
593
|
+
export interface MultiColumnSortChangeDetail<T> {
|
|
591
594
|
sortingColumns: ReadonlyArray<SortingState<T>>;
|
|
592
595
|
}
|
|
593
|
-
interface I18nStrings {
|
|
596
|
+
export interface I18nStrings {
|
|
594
597
|
sortDropdownSortAscending?: string;
|
|
595
598
|
sortDropdownSortDescending?: string;
|
|
596
599
|
sortDropdownMultiColumnSortGroup?: string;
|
|
@@ -601,32 +604,32 @@ export declare namespace TableProps {
|
|
|
601
604
|
sortDropdownRemoveFromSortDisabledReason?: string;
|
|
602
605
|
clearSort?: string;
|
|
603
606
|
}
|
|
604
|
-
interface LabelData {
|
|
607
|
+
export interface LabelData {
|
|
605
608
|
sorted: boolean;
|
|
606
609
|
descending: boolean;
|
|
607
610
|
disabled: boolean;
|
|
608
611
|
sortIndex?: number;
|
|
609
612
|
}
|
|
610
|
-
interface OnRowClickDetail<T> {
|
|
613
|
+
export interface OnRowClickDetail<T> {
|
|
611
614
|
rowIndex: number;
|
|
612
615
|
item: T;
|
|
613
616
|
}
|
|
614
|
-
interface OnRowContextMenuDetail<T> {
|
|
617
|
+
export interface OnRowContextMenuDetail<T> {
|
|
615
618
|
rowIndex: number;
|
|
616
619
|
item: T;
|
|
617
620
|
clientX: number;
|
|
618
621
|
clientY: number;
|
|
619
622
|
}
|
|
620
|
-
interface ColumnWidthsChangeDetail {
|
|
623
|
+
export interface ColumnWidthsChangeDetail {
|
|
621
624
|
widths: ReadonlyArray<number>;
|
|
622
625
|
}
|
|
623
|
-
interface LiveAnnouncement {
|
|
626
|
+
export interface LiveAnnouncement {
|
|
624
627
|
firstIndex: number;
|
|
625
628
|
lastIndex: number;
|
|
626
629
|
visibleItemsCount: number;
|
|
627
630
|
totalItemsCount?: number;
|
|
628
631
|
}
|
|
629
|
-
interface Ref {
|
|
632
|
+
export interface Ref {
|
|
630
633
|
/**
|
|
631
634
|
* When the sticky header is enabled and you call this function, the table
|
|
632
635
|
* scroll parent scrolls to reveal the first row of the table.
|
|
@@ -637,20 +640,20 @@ export declare namespace TableProps {
|
|
|
637
640
|
*/
|
|
638
641
|
cancelEdit?(): void;
|
|
639
642
|
}
|
|
640
|
-
type SubmitEditFunction<ItemType, ValueType = unknown> = (item: ItemType, column: ColumnDefinition<ItemType>, newValue: ValueType) => Promise<void> | void;
|
|
641
|
-
interface ColumnDisplay {
|
|
643
|
+
export type SubmitEditFunction<ItemType, ValueType = unknown> = (item: ItemType, column: ColumnDefinition<ItemType>, newValue: ValueType) => Promise<void> | void;
|
|
644
|
+
export interface ColumnDisplay {
|
|
642
645
|
type?: 'column';
|
|
643
646
|
id: string;
|
|
644
647
|
visible: boolean;
|
|
645
648
|
}
|
|
646
|
-
interface GroupDisplay {
|
|
649
|
+
export interface GroupDisplay {
|
|
647
650
|
type: 'group';
|
|
648
651
|
id: string;
|
|
649
652
|
visible: boolean;
|
|
650
653
|
children: ReadonlyArray<ColumnDisplayProperties>;
|
|
651
654
|
}
|
|
652
|
-
type ColumnDisplayProperties = ColumnDisplay | GroupDisplay;
|
|
653
|
-
interface ExpandableRows<T> {
|
|
655
|
+
export type ColumnDisplayProperties = ColumnDisplay | GroupDisplay;
|
|
656
|
+
export interface ExpandableRows<T> {
|
|
654
657
|
getItemChildren: (item: T) => readonly T[];
|
|
655
658
|
isItemExpandable: (item: T) => boolean;
|
|
656
659
|
expandedItems: ReadonlyArray<T>;
|
|
@@ -662,43 +665,57 @@ export declare namespace TableProps {
|
|
|
662
665
|
getSelectedItemsCount?: (item: T) => number;
|
|
663
666
|
totalSelectedItemsCount?: number;
|
|
664
667
|
}
|
|
665
|
-
type OnExpandableItemToggle<T> = NonCancelableEventHandler<ExpandableItemToggleDetail<T>>;
|
|
666
|
-
interface ExpandableItemToggleDetail<T> {
|
|
668
|
+
export type OnExpandableItemToggle<T> = NonCancelableEventHandler<ExpandableItemToggleDetail<T>>;
|
|
669
|
+
export interface ExpandableItemToggleDetail<T> {
|
|
667
670
|
item: T;
|
|
668
671
|
expanded: boolean;
|
|
669
672
|
}
|
|
670
|
-
type OnGroupSelectionChange<T> = NonCancelableEventHandler<GroupSelectionChangeDetail<T>>;
|
|
671
|
-
interface GroupSelectionChangeDetail<T> {
|
|
673
|
+
export type OnGroupSelectionChange<T> = NonCancelableEventHandler<GroupSelectionChangeDetail<T>>;
|
|
674
|
+
export interface GroupSelectionChangeDetail<T> {
|
|
672
675
|
groupSelection: GroupSelectionState<T>;
|
|
673
676
|
}
|
|
674
|
-
interface GroupSelectionState<T> {
|
|
677
|
+
export interface GroupSelectionState<T> {
|
|
675
678
|
inverted: boolean;
|
|
676
679
|
toggledItems: readonly T[];
|
|
677
680
|
}
|
|
678
|
-
type GetLoadingStatus<T> = (item: null | T) => LoadingStatus;
|
|
679
|
-
type LoadingStatus = 'pending' | 'loading' | 'error' | 'finished';
|
|
680
|
-
interface RenderLoaderDetail<T> {
|
|
681
|
+
export type GetLoadingStatus<T> = (item: null | T) => LoadingStatus;
|
|
682
|
+
export type LoadingStatus = 'pending' | 'loading' | 'error' | 'finished';
|
|
683
|
+
export interface RenderLoaderDetail<T> {
|
|
681
684
|
item: null | T;
|
|
682
685
|
}
|
|
683
|
-
interface RenderLoaderCounterDetail<T> {
|
|
686
|
+
export interface RenderLoaderCounterDetail<T> {
|
|
684
687
|
loadingStatus: LoadingStatus;
|
|
685
688
|
selected: boolean;
|
|
686
689
|
item: null | T;
|
|
687
690
|
}
|
|
688
|
-
interface RenderLoaderEmptyDetail<T> {
|
|
691
|
+
export interface RenderLoaderEmptyDetail<T> {
|
|
689
692
|
item: T;
|
|
690
693
|
}
|
|
691
|
-
interface
|
|
694
|
+
interface BaseSkeletonConfig<T> {
|
|
695
|
+
/**
|
|
696
|
+
* Renders a custom skeleton placeholder for each cell of the given column while data is loading.
|
|
697
|
+
* Use for columns whose final content is not a single line of text, so the placeholder matches the
|
|
698
|
+
* settled cell shape and the load-to-settle transition stays stable. Compose the returned content
|
|
699
|
+
* from the `Skeleton` component. Return `undefined` for a column to use the default single-line
|
|
700
|
+
* skeleton; return `null` to render an empty placeholder for that column.
|
|
701
|
+
*
|
|
702
|
+
* The returned content is rendered inside an `aria-hidden` row, so it is not announced to screen
|
|
703
|
+
* readers; do not render focusable or interactive elements.
|
|
704
|
+
*/
|
|
705
|
+
renderCell?: (column: TableProps.ColumnDefinition<T>) => React.ReactNode;
|
|
706
|
+
}
|
|
707
|
+
export interface FixedSkeletonConfig<T = any> extends BaseSkeletonConfig<T> {
|
|
692
708
|
totalRows: number;
|
|
693
709
|
maxAutoRows?: never;
|
|
694
710
|
minAutoRows?: never;
|
|
695
711
|
}
|
|
696
|
-
interface AutoSkeletonConfig {
|
|
712
|
+
export interface AutoSkeletonConfig<T = any> extends BaseSkeletonConfig<T> {
|
|
697
713
|
totalRows: 'auto';
|
|
698
714
|
maxAutoRows?: number;
|
|
699
715
|
minAutoRows?: number;
|
|
700
716
|
}
|
|
701
|
-
type SkeletonConfig = FixedSkeletonConfig | AutoSkeletonConfig
|
|
717
|
+
export type SkeletonConfig<T = any> = FixedSkeletonConfig<T> | AutoSkeletonConfig<T>;
|
|
718
|
+
export {};
|
|
702
719
|
}
|
|
703
720
|
export type TableRow<T> = TableDataRow<T> | TableLoaderRow<T>;
|
|
704
721
|
interface TableDataRow<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/table/interfaces.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,uBAAuB,GAAG,UAAU,CAAC,uBAAuB,CAAC;AAYpE,MAAM,WAAW,mBAAmB;IAClC,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC;CAC9E;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB;IAC7D;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACjD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,UA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,SAAQ,kBAAkB,CAAC,CAAC,CAAC;QACxE,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;;CACtF;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,YAAY,CAAC,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,CAAC;CACT;AAED,UAAU,cAAc,CAAC,CAAC;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC,aAAa,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/table/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { CancelableEventHandler, NonCancelableEventHandler } from '../types/events';\nimport { Optional } from '../types/utils';\nimport ColumnDisplayProperties = TableProps.ColumnDisplayProperties;\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface TableForwardRefType {\n <T>(props: TableProps<T> & { ref?: React.Ref<TableProps.Ref> }): JSX.Element;\n}\n\nexport interface TableProps<T = any> extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * * `resourceType` - Identifies the type of resource represented by the flow. **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: TableProps.AnalyticsMetadata;\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Footer of the table container.\n */\n footer?: React.ReactNode;\n\n /**\n * Displayed when the `items` property is an empty array. Use it to render an empty or no-match state.\n */\n empty?: React.ReactNode;\n\n /**\n * Specifies the data that's displayed in the table rows. Each item contains the data for one row. The display of a row is handled\n * by the `cell` property of each column definition in the `columnDefinitions` property.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the table in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text that's displayed when the table is in a loading state.\n * In skeleton-loading mode this will be used as a label for screenreaders.\n */\n loadingText?: string;\n\n /**\n * Renders skeleton placeholder rows to fill the table while data is loading. Accepts:\n * - `totalRows` (number) - The total number of rows that should be rendered. If `items`\n * are also provided, those items will be rendered first, and `totalRows - items.length`\n * additional skeleton rows rendered after.\n * - `totalRows` ('auto') - The number of skeleton rows is calculated from the available viewport height.\n * - `maxAutoRows` (number) - Limits the number of skeleton rows rendered when `totalRows` is set to `'auto'`.\n * - `minAutoRows` (number) - Sets the minimum number of skeleton rows rendered when `totalRows` is set to `'auto'`.\n * Defaults to 1. Useful for tables rendered off-screen, where the calculated available height would\n * otherwise yield a single row.\n */\n skeleton?: TableProps.SkeletonConfig;\n\n /**\n * Specifies a property that uniquely identifies an individual item.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It is also used in the following situations:\n * - to connect `items` and `selectedItems` values when they reference different objects.\n * - to connect `items` and `expandableRows.expandedItems` values when they reference different objects.\n * - to attach successful edit state to the correct item if its row index changes after editing.\n */\n trackBy?: TableProps.TrackBy<T>;\n\n /**\n * The columns configuration object\n * * `id` (string) - Specifies a unique column identifier. The property is used 1) as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering,\n * and 2) to match entries in the `columnDisplay` property, if defined.\n * * `header` (ReactNode) - Determines the display of the column header.\n * * `cell` ((item) => ReactNode) - Determines the display of a cell's content. You receive the current table row\n * item as an argument.\n * * `width` (string | number) - Specifies the column width. Corresponds to the `width` css-property. If the width is not set,\n * the browser automatically adjusts the column width based on the content. When `resizableColumns` property is\n * set to `true`, additional constraints apply: 1) string values are not allowed, and 2) the last visible column always\n * fills the remaining space of the table so the specified width is ignored.\n * * `minWidth` (string | number) - Specifies the minimum column width. Corresponds to the `min-width` css-property. When\n * `resizableColumns` property is set to `true`, additional constraints apply: 1) string values are not allowed,\n * and 2) the column can't resize below than the specified width (defaults to \"120px\"). We recommend that you set a minimum width\n * of at least 176px for columns that are editable.\n * * `maxWidth` (string | number) - Specifies the maximum column width. Corresponds to the `max-width` css-property.\n * Note that when the `resizableColumns` property is set to `true` this property is ignored.\n * * `ariaLabel` (LabelData => string) - An optional function that's called to provide an `aria-label` for the cell header.\n * It receives the current sorting state of this column, the direction it's sorted in, and an indication of\n * whether the sorting is disabled, as three Boolean values: `sorted`, `descending` and `disabled`,\n * plus a number `sortIndex` if the column is part of a multi-column sort.\n * We recommend that you use this for sortable columns to provide more meaningful labels based on the\n * current sorting direction.\n * * `sortingField` (string) - Enables default column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. Provide the name of the property within each item that should be used for sorting by this column.\n * For more complex sorting use `sortingComparator` instead.\n * * `sortingComparator` ((T, T) => number) - Enables custom column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. This property accepts a custom comparator that is used to compare two items.\n * The comparator must implement ascending ordering, and the output is inverted automatically in case of descending order.\n * If present, the `sortingField` property is ignored.\n * * `counter` ((ItemCounterData) => string) - Specifies secondary cell content, displayed next to the primary. Use it to display\n * resource counters in the first column of expandable tables with data grouping.\n * * `editConfig` (EditConfig) - Enables inline editing in column when present. The value is used to configure the editing behavior.\n * * `editConfig.ariaLabel` (string) - Specifies a label for the edit control. Visually hidden but read by screen readers.\n * * `editConfig.errorIconAriaLabel` (string) - Specifies an ariaLabel for the error icon that is displayed when the validation fails.\n * * `editConfig.editIconAriaLabel` (string) - Specifies an alternate text for the edit icon used in column header.\n * * `editConfig.constraintText` (string) - Constraint text that is displayed below the edit control.\n * * `editConfig.disabledReason` ((item) => string | undefined) - A function that determines whether inline edit for certain items is disabled, and provides a reason why.\n * Return a string from the function to disable inline edit with a reason. Return `undefined` (or no return) from the function allow inline edit.\n * * `editConfig.validation` ((item, value) => string) - A function that allows you to validate the value of the edit control.\n * Return a string from the function to display an error message. Return `undefined` (or no return) from the function to indicate that the value is valid.\n * * `editConfig.editingCell` ((item, cellContext) => ReactNode) - Determines the display of a cell's content when inline editing is active on a cell;\n * You receive the current table row `item` and a `cellContext` object as arguments.\n * The `cellContext` object contains the following properties:\n * * `cellContext.currentValue` - State to keep track of a value in input fields while editing.\n * * `cellContext.setValue` - Function to update `currentValue`. This should be called when the value in input field changes.\n * * `cellContext.submitValue` - Function to submit the `currentValue`.\n * * `editConfig.disableNativeForm` (boolean) - Disables the use of a `<form>` element to capture submissions inside the inline editor.\n * If enabled, ensure that any text inputs in the editing cell submit the cell value when the Enter key is pressed, using `cellContext.submitValue`.\n * * `isRowHeader` (boolean) - Specifies that cells in this column should be used as row headers.\n * * `hasDynamicContent` (boolean) - Specifies that cells in this column may have dynamic content. The contents will then be observed to update calculated column widths.\n * This may have a negative performance impact, so should be used only if necessary. It has no effect if `resizableColumns` is set to `true`.\n * * `verticalAlign` ('middle' | 'top') - Determines the alignment of the content in the table cell.\n */\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n\n /**\n * Determines the alignment of the content inside table cells.\n * This property affects all cells, including the ones in the selection column.\n * To target individual cells use `columnDefinitions.verticalAlign`, that takes precedence over `cellVerticalAlign`.\n */\n cellVerticalAlign?: 'middle' | 'top';\n\n /**\n * Specifies the selection type (`'single' | 'multi'`).\n */\n selectionType?: TableProps.SelectionType;\n /**\n * List of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n\n /**\n * Use this slot to add filtering controls to the table.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the table.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the table.\n */\n preferences?: React.ReactNode;\n\n /**\n * Determines whether a given item is disabled. If an item is disabled, the user can't select it.\n */\n isItemDisabled?: TableProps.IsItemDisabled<T>;\n\n /**\n * Specifies if text wraps within table cells. If set to `true`, long text within cells may wrap onto\n * multiple lines instead of being truncated with an ellipsis.\n */\n wrapLines?: boolean;\n\n /**\n * Specifies if table rows alternate being shaded and unshaded. If set to `true`, every other row will be shaded.\n */\n stripedRows?: boolean;\n\n /**\n * Toggles the content density of the table. Defaults to `'comfortable'`.\n */\n contentDensity?: 'comfortable' | 'compact';\n\n /**\n * Specifies if columns can be resized. If set to `true`, users can resize the columns in the table.\n */\n resizableColumns?: boolean;\n\n /**\n * Specifies alternative text for the selection components (checkboxes and radio buttons) as follows:\n * * `selectionGroupLabel` (string) - Specifies the alternative text for the whole selection and single-selection column header.\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Specifies the alternative text for item selection controls.\n * The selection state includes:\n * * `selectedItems` (Item[]) - corresponds to table's `selectedItems`.\n * * `itemsCount` (optional, number) - corresponds to table's `expandableRows.getItemsCount(item)`.\n * * `selectedItemsCount` (optional, number) - corresponds to table's `expandableRows.getItemsCount(item)`.\n * * `allItemsSelectionLabel` ((SelectionState) => string) - Specifies the alternative text for all items selection control.\n * The selection state includes:\n * * `selectedItems` (Item[]) - corresponds to table's `selectedItems`.\n * * `itemsCount` (optional, number) - corresponds to `expandableRows.totalItemsCount` or `totalItemsCount`.\n * * `selectedItemsCount` (optional, number) - corresponds to `expandableRows.totalSelectedItemsCount` or `selectedItems.length`.\n * * `itemLoaderSelectionLabel`: ((SelectionState, Item) => string) - Specifies the alternative text for resource loader selector\n * in tables with data grouping.\n * * `tableLabel` (string) - Provides an alternative text for the table. If you use a header for this table, you may reuse the string\n * to provide a caption-like description. For example, tableLabel=Instances will be announced as 'Instances table'.\n * * `resizerRoleDescription` (string) - Provides role description for table column resizer buttons.\n * * `resizerTooltipText` (string) - Provides text for the table column resizer tooltip.\n * * `activateEditLabel` (EditableColumnDefinition, Item) => string -\n * Specifies an alternative text for the edit button in editable cells.\n * * `cancelEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the cancel button in editable cells.\n * * `submitEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the submit button in editable cells.\n * * `successfulEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the success icon in editable cells. This text is also announced to screen readers.\n * * `submittingEditText` (EditableColumnDefinition) => string -\n * Specifies a text that is announced to screen readers when a cell edit operation is submitted.\n * * `expandButtonLabel` (Item) => string - Specifies an alternative text for row expand button.\n * * `collapseButtonLabel` (Item) => string - Specifies an alternative text for row collapse button.\n * * `sortMenuTriggerLabel` (string) - Provides an alternative text for the column header sort menu trigger button when multi-column sort is enabled.\n * * `sortAscending` (string) - Screen reader word for ascending sort direction, used in sort announcements and a sorted column header's accessible text.\n * * `sortDescending` (string) - Screen reader word for descending sort direction, used in sort announcements and a sorted column header's accessible text.\n * * `liveAnnouncementSortOrder` (({ columns }) => string) - Formats the screen reader announcement for the current multi-column sort order.\n * * `liveAnnouncementSortCleared` (string) - Screen reader announcement made when the multi-column sort is cleared.\n * * `sortPriority` (({ priority }) => string) - Formats a sorted column's position in a multi-column sort, used in the sorted column header's accessible label.\n * @i18n\n */\n ariaLabels?: TableProps.AriaLabels<T>;\n\n /**\n * Specifies the definition object of the currently sorted column. Make sure you pass an object that's\n * present in the `columnDefinitions` array.\n */\n sortingColumn?: TableProps.SortingColumn<T>;\n /**\n * Specifies whether to use a descending sort order.\n */\n sortingDescending?: boolean;\n /**\n * Specifies if sorting buttons are disabled. For example, use this property\n * to prevent the user from sorting before items are fully loaded.\n */\n sortingDisabled?: boolean;\n\n /**\n * Enables multi-column sorting on the table. The object contains:\n *\n * * `sortingColumns` (ReadonlyArray<TableProps.SortingState<T>>) - The current multi-column\n * sort state. The first entry has the highest sort priority, and subsequent entries act as\n * tiebreakers.\n * * `onChange` (NonCancelableEventHandler<TableProps.MultiColumnSortChangeDetail<T>>) - Called\n * when the user changes the sort state.\n *\n * Use either this property or `sortingColumn` / `sortingDescending` / `onSortingChange`, but not both.\n */\n multiColumnSort?: TableProps.MultiColumnSort<T>;\n\n /**\n * Object containing the localized visible strings used by the Table component.\n *\n * When multi-column sorting is enabled it provides the sort UI labels:\n *\n * * `sortDropdownSortAscending` (string): Label for the \"Sort ascending\" dropdown menu item.\n * * `sortDropdownSortDescending` (string): Label for the \"Sort descending\" dropdown menu item.\n * * `sortDropdownMultiColumnSortGroup` (string): Label for the multi-column sort dropdown menu group.\n * * `sortDropdownAddToSortAscending` (string): Label for the \"Add to sort (ascending)\" dropdown menu item.\n * * `sortDropdownAddToSortDescending` (string): Label for the \"Add to sort (descending)\" dropdown menu item.\n * * `sortDropdownRemoveFromSort` (string): Label for the \"Remove from sort\" dropdown menu item.\n * * `sortDropdownAddToSortDisabledReason` (string): Reason shown when the \"Add to sort\" menu items are disabled.\n * * `sortDropdownRemoveFromSortDisabledReason` (string): Reason shown when the \"Remove from sort\" menu item is disabled.\n * * `clearSort` (string): Label for the \"Clear sort\" button.\n *\n * @i18n\n */\n i18nStrings?: TableProps.I18nStrings;\n\n /**\n * Specifies the number of first and/or last columns that should be sticky.\n *\n * If the available scrollable space is less than a certain threshold, the feature is deactivated.\n *\n * Use it in conjunction with the sticky columns preference of the\n * [collection preferences](/components/collection-preferences/) component.\n *\n */\n stickyColumns?: TableProps.StickyColumns;\n\n /**\n * Specifies an array that represents the table columns in the order in which they will be displayed, together with their visibility.\n *\n * If not set, all columns are displayed and the order is dictated by the `columnDefinitions` property.\n *\n * Use it in conjunction with the content display preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * Each entry is one of the following:\n * - `ColumnDisplay` - Represents a single column.\n * - `type` ('column') - (Optional) Identifies the entry as a column. Defaults to `'column'` when omitted.\n * - `id` (string) - The column identifier. Must match a column `id` from `columnDefinitions`.\n * - `visible` (boolean) - Whether the column is visible.\n * - `GroupDisplay` - Represents a column group.\n * - `type` ('group') - Identifies the entry as a group.\n * - `id` (string) - The group identifier. Must match a group `id` from `groupDefinitions`.\n * - `visible` (boolean) - Whether the group is visible.\n * - `children` (ReadonlyArray<ColumnDisplayProperties>) - The columns or nested groups within this group.\n */\n columnDisplay?: ReadonlyArray<ColumnDisplayProperties>;\n\n /**\n * Defines the column groups. Each group has an `id` and `header` used to label the group header cell.\n *\n * When using grouped columns, you must also provide the `columnDisplay` property with `{ type: 'group', id, children }` entries\n * to assign columns to their respective groups and define the display hierarchy.\n *\n * Each group definition contains the following:\n * - `id` (string) - A unique identifier for the group.\n * - `header` (ReactNode) - The content displayed in the group header cell.\n * - `ariaLabel` ((LabelData) => string) - (Optional) A function that provides an `aria-label` for the group header.\n */\n groupDefinitions?: ReadonlyArray<TableProps.GroupDefinition<T>>;\n\n /**\n * Specifies an array containing the `id`s of visible columns. If not set, all columns are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of ids doesn't influence the order in which columns are displayed - this is dictated by the `columnDefinitions` property.\n *\n * @deprecated Replaced by `columnDisplay`.\n */\n visibleColumns?: ReadonlyArray<string>;\n\n /**\n * Fired when the user resizes a table column. The event detail contains an array of column widths in pixels,\n * including the hidden via preferences columns. Use this event to persist the column widths.\n */\n onColumnWidthsChange?: NonCancelableEventHandler<TableProps.ColumnWidthsChangeDetail>;\n\n /**\n * Called when either the column to sort by or the direction of sorting changes upon user interaction.\n * The event detail contains the current sortingColumn and isDescending.\n */\n onSortingChange?: NonCancelableEventHandler<TableProps.SortingState<T>>;\n\n /**\n * Fired when a user interaction triggers a change in the list of selected items.\n * The event `detail` contains the new state for `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<TableProps.SelectionChangeDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row. The event detail contains the index of the\n * clicked row and the row object itself. Use this event to define a row click behavior.\n */\n onRowClick?: NonCancelableEventHandler<TableProps.OnRowClickDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row with the right mouse click. The event detail\n * contains the index of the clicked row and the row object itself. Use this event to override\n * the default browser context menu behavior.\n */\n onRowContextMenu?: CancelableEventHandler<TableProps.OnRowContextMenuDetail<T>>;\n\n /**\n * If set to `true`, the table header remains visible when the user scrolls down.\n *\n * Do not use `stickyHeader` conditionally. Instead, keep its value constant during the component lifecycle.\n */\n stickyHeader?: boolean;\n\n /**\n * Specifies a vertical offset (in pixels) for the sticky header. For example, use this if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Specify a table variant with one of the following:\n * * `container` - Use this variant to have the table displayed within a container.\n * * `borderless` - Use this variant when the table should have no outer borders or shadow\n * (such as in a dashboard item container).\n * * `embedded` - Use this variant within a parent container (such as a modal, expandable\n * section, container or split panel).\n * **Deprecated**, replaced by `borderless` and `container`.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * * `full-page` – Use this variant when the table is the entire content of a page.\n * @visualrefresh `embedded`, `stacked`, and `full-page` variants\n */\n variant?: TableProps.Variant;\n\n /**\n * Use this property to inform screen readers how many items there are in a table.\n * It specifies the total count of all items in a table.\n * If there is an unknown total of items in a table, leave this property undefined.\n */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of items is currently displayed in the table.\n * It specifies the index (1-based) of the first item in the table.\n */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * The function argument takes the following properties:\n * * `firstIndex` (number) - The provided `firstIndex` property which defaults to 1 when not defined.\n * * `lastIndex` (number) - The index of the last visible item of the table.\n * * `visibleItemsCount` (number) - The number of rendered table items.\n * * `totalItemsCount` (optional, number) - The provided `totalItemsCount` property.\n * Important: in tables with expandable rows the `firstIndex`, `lastIndex`, and `totalItemsCount` reflect the top-level items only.\n */\n renderAriaLive?: (data: TableProps.LiveAnnouncement) => string;\n /**\n * Specifies a function that will be called after user submits an inline edit.\n * Return a promise to keep loading state while the submit request is in progress.\n */\n submitEdit?: TableProps.SubmitEditFunction<T>;\n\n /**\n * Called whenever user cancels an inline edit. Use this function to reset any\n * validation states, or show warning for unsaved changes.\n */\n onEditCancel?: CancelableEventHandler;\n\n /**\n * Use this property to activate advanced keyboard navigation and focusing behaviors.\n * When set to `true`, table cells become navigable with arrow keys, and the entire table has a single tab stop.\n *\n * By default, the keyboard navigation is active for tables with expandable rows.\n */\n enableKeyboardNavigation?: boolean;\n\n /**\n * Use this property to define expandable table rows. The expandableRows configuration object consists of:\n * * `getItemChildren` ((Item) => Item[]) - Use it to define nested data that are shown when an item gets expanded.\n * * `isItemExpandable` ((Item) => boolean) - Use it for items that can be expanded to show nested data.\n * * `expandedItems` (Item[]) - Use it to represent the expanded state of items.\n * * `onExpandableItemToggle` (TableProps.OnExpandableItemToggle<Item>) - Called when an item's expand toggle is clicked.\n * * `groupSelection` (optional, GroupSelectionState<Item>) - Tree-like selection state for tables with grouped data. When defined, the\n * properties `selectionType` and `selectedItems` no longer apply. It reads as (assuming item \"a.1\" is nested under \"a\"):\n * * `{ inverted: false, toggledItems: [] }` - no items are selected;\n * * `{ inverted: true, toggledItems: [] }` - all items are selected;\n * * `{ inverted: false, toggledItems: [\"a\", \"a.1\"] }` - all items nested under \"a\", unless also nested under \"a.1\", are selected.\n * * `{ inverted: true, toggledItems: [\"a\", \"a.1\"] }` - the opposite of above.\n * * `onGroupSelectionChange` (optional, TableProps.OnGroupSelectionChange<Item>) - Called when group selection changes.\n * * `getItemsCount` (optional, (Item) => number) - Use it to indicate the number of resources nested under the given item.\n * The value is passed as `itemsCount` property to the `columnDefinitions[index].counter` and `ariaLabels.itemSelectionLabel` functions.\n * * `totalItemsCount` (optional, number) - Use it to indicate the total number of resources in the table.\n * The value is passed as `itemsCount` property to the `ariaLabels.allItemsSelectionLabel`.\n * * `getSelectedItemsCount` (optional, (Item) => number) - Use it to indicate the number of selected resources nested under the given item.\n * The value is passed as `selectedItemsCount` property to the `columnDefinitions[index].counter` and `ariaLabels.itemSelectionLabel` functions.\n * * `totalSelectedItemsCount` (optional, number) - Use it to indicate the total number of selected resources in the table.\n * The value is passed as `selectedItemsCount` property to the `ariaLabels.allItemsSelectionLabel`.\n */\n expandableRows?: TableProps.ExpandableRows<T>;\n\n /**\n * A function that specifies the current status of loading more items. It is called once for the entire\n * table with `item=null` and then for each expanded item. The function result is one of the four possible states:\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that loading has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch.\n **/\n getLoadingStatus?: TableProps.GetLoadingStatus<T>;\n /**\n * Renders loader row content for pending state.\n */\n renderLoaderPending?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for loading state.\n */\n renderLoaderLoading?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for error state.\n */\n renderLoaderError?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for empty row state: the loading status is \"finished\",\n * and the row is expanded but has empty children array.\n *\n * The empty loader state is only supported for expandable rows. Use `empty` slot if\n * the table items array is empty.\n */\n renderLoaderEmpty?: (detail: TableProps.RenderLoaderEmptyDetail<T>) => React.ReactNode;\n /**\n * Renders loader counter that is appended to the loader content in all loader states.\n */\n renderLoaderCounter?: (detail: TableProps.RenderLoaderCounterDetail<T>) => React.ReactNode;\n}\n\nexport namespace TableProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: 'view-resource';\n resourceType?: string;\n }\n\n export type TrackBy<T> = string | ((item: T) => string);\n\n export interface CellContext<V> {\n currentValue: Optional<V>;\n setValue: (value: V | undefined) => void;\n submitValue: () => void;\n }\n\n export interface EditConfig<T, V = any> {\n /**\n * Specifies a label for the edit control. Visually hidden but read\n * by screen readers.\n */\n ariaLabel?: string;\n /**\n * Specifies an ariaLabel for the error icon that is displayed when\n * the validation fails.\n */\n errorIconAriaLabel?: string;\n /**\n * Specifies an alternate text for the edit icon used in column header.\n */\n editIconAriaLabel?: string;\n /**\n * Constraint text that is displayed below the edit control.\n */\n constraintText?: string;\n /**\n * A function that allows you to validate the value of the edit control. Return\n * a string from the function to display an error message. Return\n * `undefined` (or no return) from the function to indicate that the value is valid.\n * @param item - The item that is being edited.\n * @param value - The current value of the edit control.\n */\n validation?: (item: T, value: Optional<V>) => Optional<string>;\n\n /**\n * Determines the display of a cell's content when inline edit is active.\n */\n editingCell(item: T, ctx: TableProps.CellContext<any>): React.ReactNode;\n\n /**\n * Determines whether inline edit for certain items is disabled, and provides a reason why.\n */\n disabledReason?: (item: T) => string | undefined;\n\n /**\n * Disables the use of a `<form>` element to capture submissions inside the inline editor.\n * If enabled, ensure that any text inputs in the editing cell submit the cell value when\n * the Enter key is pressed, using `cellContext.submitValue`.\n */\n disableNativeForm?: boolean;\n }\n\n export type ColumnDefinition<T> = {\n id?: string;\n header: React.ReactNode;\n ariaLabel?(data: LabelData): string;\n width?: number | string;\n minWidth?: number | string;\n maxWidth?: number | string;\n counter?(props: ItemCounterData<T>): React.ReactNode;\n editConfig?: EditConfig<T>;\n isRowHeader?: boolean;\n verticalAlign?: VerticalAlign;\n hasDynamicContent?: boolean;\n cell(item: T): React.ReactNode;\n } & SortingColumn<T>;\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n export interface GroupDefinition<T = any> {\n id: string;\n header: React.ReactNode;\n ariaLabel?: (data: LabelData) => string;\n }\n\n export interface ItemCounterData<T> {\n item: T;\n itemsCount?: number;\n selectedItemsCount?: number;\n }\n\n export interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n export type VerticalAlign = 'middle' | 'top';\n export type SelectionType = 'single' | 'multi';\n export type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n itemsCount?: number;\n selectedItemsCount?: number;\n }\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n export type IsItemDisabled<T> = (item: T) => boolean;\n export interface AriaLabels<T> {\n allItemsSelectionLabel?: (data: SelectionState<T>) => string;\n itemSelectionLabel?: (data: SelectionState<T>, row: T) => string;\n itemLoaderSelectionLabel?: (data: SelectionState<T>, row: null | T) => string;\n selectionGroupLabel?: string;\n tableLabel?: string;\n resizerRoleDescription?: string;\n resizerTooltipText?: string;\n // do not use <T> to prevent overly strict validation on consumer end\n // it works, practically, we are only interested in `id` and `header` properties only\n activateEditLabel?: (column: ColumnDefinition<any>, item: T) => string;\n cancelEditLabel?: (column: ColumnDefinition<any>) => string;\n submitEditLabel?: (column: ColumnDefinition<any>) => string;\n submittingEditText?: (column: ColumnDefinition<any>) => string;\n successfulEditLabel?: (column: ColumnDefinition<any>) => string;\n expandButtonLabel?: (item: T) => string;\n collapseButtonLabel?: (item: T) => string;\n sortMenuTriggerLabel?: string;\n sortAscending?: string;\n sortDescending?: string;\n liveAnnouncementSortOrder?: (data: { columns: string }) => string;\n liveAnnouncementSortCleared?: string;\n sortPriority?: (data: { priority: number }) => string;\n }\n export interface SortingState<T> {\n isDescending?: boolean;\n sortingColumn: SortingColumn<T>;\n }\n export interface SortingColumn<T> {\n sortingField?: string;\n sortingComparator?: (a: T, b: T) => number;\n }\n export interface MultiColumnSort<T> {\n sortingColumns: ReadonlyArray<SortingState<T>>;\n onChange: NonCancelableEventHandler<MultiColumnSortChangeDetail<T>>;\n }\n export interface MultiColumnSortChangeDetail<T> {\n sortingColumns: ReadonlyArray<SortingState<T>>;\n }\n export interface I18nStrings {\n sortDropdownSortAscending?: string;\n sortDropdownSortDescending?: string;\n sortDropdownMultiColumnSortGroup?: string;\n sortDropdownAddToSortAscending?: string;\n sortDropdownAddToSortDescending?: string;\n sortDropdownRemoveFromSort?: string;\n sortDropdownAddToSortDisabledReason?: string;\n sortDropdownRemoveFromSortDisabledReason?: string;\n clearSort?: string;\n }\n export interface LabelData {\n sorted: boolean;\n descending: boolean;\n disabled: boolean;\n sortIndex?: number;\n }\n export interface OnRowClickDetail<T> {\n rowIndex: number;\n item: T;\n }\n export interface OnRowContextMenuDetail<T> {\n rowIndex: number;\n item: T;\n clientX: number;\n clientY: number;\n }\n\n export interface ColumnWidthsChangeDetail {\n widths: ReadonlyArray<number>;\n }\n\n export interface LiveAnnouncement {\n firstIndex: number;\n lastIndex: number;\n visibleItemsCount: number;\n totalItemsCount?: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled and you call this function, the table\n * scroll parent scrolls to reveal the first row of the table.\n */\n scrollToTop(): void;\n\n /**\n * Dismiss an inline edit if currently active.\n */\n cancelEdit?(): void;\n }\n\n export type SubmitEditFunction<ItemType, ValueType = unknown> = (\n item: ItemType,\n column: ColumnDefinition<ItemType>,\n newValue: ValueType\n ) => Promise<void> | void;\n\n export interface ColumnDisplay {\n type?: 'column';\n id: string;\n visible: boolean;\n }\n\n export interface GroupDisplay {\n type: 'group';\n id: string;\n visible: boolean;\n children: ReadonlyArray<ColumnDisplayProperties>;\n }\n\n export type ColumnDisplayProperties = ColumnDisplay | GroupDisplay;\n\n export interface ExpandableRows<T> {\n getItemChildren: (item: T) => readonly T[];\n isItemExpandable: (item: T) => boolean;\n expandedItems: ReadonlyArray<T>;\n onExpandableItemToggle: OnExpandableItemToggle<T>;\n groupSelection?: GroupSelectionState<T>;\n onGroupSelectionChange?: OnGroupSelectionChange<T>;\n getItemsCount?: (item: T) => number;\n totalItemsCount?: number;\n getSelectedItemsCount?: (item: T) => number;\n totalSelectedItemsCount?: number;\n }\n\n export type OnExpandableItemToggle<T> = NonCancelableEventHandler<ExpandableItemToggleDetail<T>>;\n\n export interface ExpandableItemToggleDetail<T> {\n item: T;\n expanded: boolean;\n }\n\n export type OnGroupSelectionChange<T> = NonCancelableEventHandler<GroupSelectionChangeDetail<T>>;\n\n export interface GroupSelectionChangeDetail<T> {\n groupSelection: GroupSelectionState<T>;\n }\n\n export interface GroupSelectionState<T> {\n inverted: boolean;\n toggledItems: readonly T[];\n }\n\n export type GetLoadingStatus<T> = (item: null | T) => LoadingStatus;\n\n export type LoadingStatus = 'pending' | 'loading' | 'error' | 'finished';\n\n export interface RenderLoaderDetail<T> {\n item: null | T;\n }\n\n export interface RenderLoaderCounterDetail<T> {\n loadingStatus: LoadingStatus;\n selected: boolean;\n item: null | T;\n }\n\n export interface RenderLoaderEmptyDetail<T> {\n item: T;\n }\n\n export interface FixedSkeletonConfig {\n totalRows: number;\n maxAutoRows?: never;\n minAutoRows?: never;\n }\n\n export interface AutoSkeletonConfig {\n totalRows: 'auto';\n maxAutoRows?: number;\n minAutoRows?: number;\n }\n\n export type SkeletonConfig = FixedSkeletonConfig | AutoSkeletonConfig;\n}\n\nexport type TableRow<T> = TableDataRow<T> | TableLoaderRow<T>;\n\ninterface TableDataRow<T> {\n type: 'data';\n item: T;\n}\n\ninterface TableLoaderRow<T> {\n type: 'loader';\n item: null | T;\n level: number;\n status: TableProps.LoadingStatus;\n from: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/table/interfaces.tsx"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport { CancelableEventHandler, NonCancelableEventHandler } from '../types/events';\nimport { Optional } from '../types/utils';\nimport ColumnDisplayProperties = TableProps.ColumnDisplayProperties;\n\n/*\n * HACK: Cast the component to a named parametrized interface.\n *\n * This lets us use React.forwardRef and still let the component have type\n * parameters, and the naming convention lets the documenter know that this is\n * a forwardRef-wrapped component.\n *\n * We don't need to expose this type to customers because it's just a simple\n * function type.\n */\nexport interface TableForwardRefType {\n <T>(props: TableProps<T> & { ref?: React.Ref<TableProps.Ref> }): JSX.Element;\n}\n\nexport interface TableProps<T = any> extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * * `resourceType` - Identifies the type of resource represented by the flow. **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: TableProps.AnalyticsMetadata;\n /**\n * Heading element of the table container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Footer of the table container.\n */\n footer?: React.ReactNode;\n\n /**\n * Displayed when the `items` property is an empty array. Use it to render an empty or no-match state.\n */\n empty?: React.ReactNode;\n\n /**\n * Specifies the data that's displayed in the table rows. Each item contains the data for one row. The display of a row is handled\n * by the `cell` property of each column definition in the `columnDefinitions` property.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Renders the table in a loading state. We recommend that you also set a `loadingText`.\n */\n loading?: boolean;\n\n /**\n * Specifies the text that's displayed when the table is in a loading state.\n * In skeleton-loading mode this will be used as a label for screenreaders.\n */\n loadingText?: string;\n\n /**\n * Renders skeleton placeholder rows to fill the table while data is loading. Accepts:\n * - `totalRows` (number) - The total number of rows that should be rendered. If `items`\n * are also provided, those items will be rendered first, and `totalRows - items.length`\n * additional skeleton rows rendered after.\n * - `totalRows` ('auto') - The number of skeleton rows is calculated from the available viewport height.\n * - `maxAutoRows` (number) - Limits the number of skeleton rows rendered when `totalRows` is set to `'auto'`.\n * - `minAutoRows` (number) - Sets the minimum number of skeleton rows rendered when `totalRows` is set to `'auto'`.\n * Defaults to 1. Useful for tables rendered off-screen, where the calculated available height would\n * otherwise yield a single row.\n * - `renderCell` ((column) => ReactNode) - Renders a custom skeleton placeholder per column, for cells whose\n * final content is not a single line of text (for example, multi-line cells, status indicators, or actions).\n * Return `undefined` for a column to fall back to the default single-line skeleton.\n */\n skeleton?: TableProps.SkeletonConfig<T>;\n\n /**\n * Specifies a property that uniquely identifies an individual item.\n * When it's set, it's used to provide [keys for React](https://reactjs.org/docs/lists-and-keys.html#keys)\n * for performance optimizations.\n *\n * It is also used in the following situations:\n * - to connect `items` and `selectedItems` values when they reference different objects.\n * - to connect `items` and `expandableRows.expandedItems` values when they reference different objects.\n * - to attach successful edit state to the correct item if its row index changes after editing.\n */\n trackBy?: TableProps.TrackBy<T>;\n\n /**\n * The columns configuration object\n * * `id` (string) - Specifies a unique column identifier. The property is used 1) as a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering,\n * and 2) to match entries in the `columnDisplay` property, if defined.\n * * `header` (ReactNode) - Determines the display of the column header.\n * * `cell` ((item) => ReactNode) - Determines the display of a cell's content. You receive the current table row\n * item as an argument.\n * * `width` (string | number) - Specifies the column width. Corresponds to the `width` css-property. If the width is not set,\n * the browser automatically adjusts the column width based on the content. When `resizableColumns` property is\n * set to `true`, additional constraints apply: 1) string values are not allowed, and 2) the last visible column always\n * fills the remaining space of the table so the specified width is ignored.\n * * `minWidth` (string | number) - Specifies the minimum column width. Corresponds to the `min-width` css-property. When\n * `resizableColumns` property is set to `true`, additional constraints apply: 1) string values are not allowed,\n * and 2) the column can't resize below than the specified width (defaults to \"120px\"). We recommend that you set a minimum width\n * of at least 176px for columns that are editable.\n * * `maxWidth` (string | number) - Specifies the maximum column width. Corresponds to the `max-width` css-property.\n * Note that when the `resizableColumns` property is set to `true` this property is ignored.\n * * `ariaLabel` (LabelData => string) - An optional function that's called to provide an `aria-label` for the cell header.\n * It receives the current sorting state of this column, the direction it's sorted in, and an indication of\n * whether the sorting is disabled, as three Boolean values: `sorted`, `descending` and `disabled`,\n * plus a number `sortIndex` if the column is part of a multi-column sort.\n * We recommend that you use this for sortable columns to provide more meaningful labels based on the\n * current sorting direction.\n * * `sortingField` (string) - Enables default column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. Provide the name of the property within each item that should be used for sorting by this column.\n * For more complex sorting use `sortingComparator` instead.\n * * `sortingComparator` ((T, T) => number) - Enables custom column sorting. The value is used in [collection hooks](/get-started/dev-guides/collection-hooks/)\n * to reorder the items. This property accepts a custom comparator that is used to compare two items.\n * The comparator must implement ascending ordering, and the output is inverted automatically in case of descending order.\n * If present, the `sortingField` property is ignored.\n * * `counter` ((ItemCounterData) => string) - Specifies secondary cell content, displayed next to the primary. Use it to display\n * resource counters in the first column of expandable tables with data grouping.\n * * `editConfig` (EditConfig) - Enables inline editing in column when present. The value is used to configure the editing behavior.\n * * `editConfig.ariaLabel` (string) - Specifies a label for the edit control. Visually hidden but read by screen readers.\n * * `editConfig.errorIconAriaLabel` (string) - Specifies an ariaLabel for the error icon that is displayed when the validation fails.\n * * `editConfig.editIconAriaLabel` (string) - Specifies an alternate text for the edit icon used in column header.\n * * `editConfig.constraintText` (string) - Constraint text that is displayed below the edit control.\n * * `editConfig.disabledReason` ((item) => string | undefined) - A function that determines whether inline edit for certain items is disabled, and provides a reason why.\n * Return a string from the function to disable inline edit with a reason. Return `undefined` (or no return) from the function allow inline edit.\n * * `editConfig.validation` ((item, value) => string) - A function that allows you to validate the value of the edit control.\n * Return a string from the function to display an error message. Return `undefined` (or no return) from the function to indicate that the value is valid.\n * * `editConfig.editingCell` ((item, cellContext) => ReactNode) - Determines the display of a cell's content when inline editing is active on a cell;\n * You receive the current table row `item` and a `cellContext` object as arguments.\n * The `cellContext` object contains the following properties:\n * * `cellContext.currentValue` - State to keep track of a value in input fields while editing.\n * * `cellContext.setValue` - Function to update `currentValue`. This should be called when the value in input field changes.\n * * `cellContext.submitValue` - Function to submit the `currentValue`.\n * * `editConfig.disableNativeForm` (boolean) - Disables the use of a `<form>` element to capture submissions inside the inline editor.\n * If enabled, ensure that any text inputs in the editing cell submit the cell value when the Enter key is pressed, using `cellContext.submitValue`.\n * * `isRowHeader` (boolean) - Specifies that cells in this column should be used as row headers.\n * * `hasDynamicContent` (boolean) - Specifies that cells in this column may have dynamic content. The contents will then be observed to update calculated column widths.\n * This may have a negative performance impact, so should be used only if necessary. It has no effect if `resizableColumns` is set to `true`.\n * * `verticalAlign` ('middle' | 'top') - Determines the alignment of the content in the table cell.\n */\n columnDefinitions: ReadonlyArray<TableProps.ColumnDefinition<T>>;\n\n /**\n * Determines the alignment of the content inside table cells.\n * This property affects all cells, including the ones in the selection column.\n * To target individual cells use `columnDefinitions.verticalAlign`, that takes precedence over `cellVerticalAlign`.\n */\n cellVerticalAlign?: 'middle' | 'top';\n\n /**\n * Specifies the selection type (`'single' | 'multi'`).\n */\n selectionType?: TableProps.SelectionType;\n /**\n * List of selected items.\n */\n selectedItems?: ReadonlyArray<T>;\n\n /**\n * Use this slot to add filtering controls to the table.\n */\n filter?: React.ReactNode;\n\n /**\n * Use this slot to add the [pagination component](/components/pagination/) to the table.\n */\n pagination?: React.ReactNode;\n\n /**\n * Use this slot to add [collection preferences](/components/collection-preferences/) to the table.\n */\n preferences?: React.ReactNode;\n\n /**\n * Determines whether a given item is disabled. If an item is disabled, the user can't select it.\n */\n isItemDisabled?: TableProps.IsItemDisabled<T>;\n\n /**\n * Specifies if text wraps within table cells. If set to `true`, long text within cells may wrap onto\n * multiple lines instead of being truncated with an ellipsis.\n */\n wrapLines?: boolean;\n\n /**\n * Specifies if table rows alternate being shaded and unshaded. If set to `true`, every other row will be shaded.\n */\n stripedRows?: boolean;\n\n /**\n * Toggles the content density of the table. Defaults to `'comfortable'`.\n */\n contentDensity?: 'comfortable' | 'compact';\n\n /**\n * Specifies if columns can be resized. If set to `true`, users can resize the columns in the table.\n */\n resizableColumns?: boolean;\n\n /**\n * Specifies alternative text for the selection components (checkboxes and radio buttons) as follows:\n * * `selectionGroupLabel` (string) - Specifies the alternative text for the whole selection and single-selection column header.\n * * `itemSelectionLabel` ((SelectionState, Item) => string) - Specifies the alternative text for item selection controls.\n * The selection state includes:\n * * `selectedItems` (Item[]) - corresponds to table's `selectedItems`.\n * * `itemsCount` (optional, number) - corresponds to table's `expandableRows.getItemsCount(item)`.\n * * `selectedItemsCount` (optional, number) - corresponds to table's `expandableRows.getItemsCount(item)`.\n * * `allItemsSelectionLabel` ((SelectionState) => string) - Specifies the alternative text for all items selection control.\n * The selection state includes:\n * * `selectedItems` (Item[]) - corresponds to table's `selectedItems`.\n * * `itemsCount` (optional, number) - corresponds to `expandableRows.totalItemsCount` or `totalItemsCount`.\n * * `selectedItemsCount` (optional, number) - corresponds to `expandableRows.totalSelectedItemsCount` or `selectedItems.length`.\n * * `itemLoaderSelectionLabel`: ((SelectionState, Item) => string) - Specifies the alternative text for resource loader selector\n * in tables with data grouping.\n * * `tableLabel` (string) - Provides an alternative text for the table. If you use a header for this table, you may reuse the string\n * to provide a caption-like description. For example, tableLabel=Instances will be announced as 'Instances table'.\n * * `resizerRoleDescription` (string) - Provides role description for table column resizer buttons.\n * * `resizerTooltipText` (string) - Provides text for the table column resizer tooltip.\n * * `activateEditLabel` (EditableColumnDefinition, Item) => string -\n * Specifies an alternative text for the edit button in editable cells.\n * * `cancelEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the cancel button in editable cells.\n * * `submitEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the submit button in editable cells.\n * * `successfulEditLabel` (EditableColumnDefinition) => string -\n * Specifies an alternative text for the success icon in editable cells. This text is also announced to screen readers.\n * * `submittingEditText` (EditableColumnDefinition) => string -\n * Specifies a text that is announced to screen readers when a cell edit operation is submitted.\n * * `expandButtonLabel` (Item) => string - Specifies an alternative text for row expand button.\n * * `collapseButtonLabel` (Item) => string - Specifies an alternative text for row collapse button.\n * * `sortMenuTriggerLabel` (string) - Provides an alternative text for the column header sort menu trigger button when multi-column sort is enabled.\n * * `sortAscending` (string) - Screen reader word for ascending sort direction, used in sort announcements and a sorted column header's accessible text.\n * * `sortDescending` (string) - Screen reader word for descending sort direction, used in sort announcements and a sorted column header's accessible text.\n * * `liveAnnouncementSortOrder` (({ columns }) => string) - Formats the screen reader announcement for the current multi-column sort order.\n * * `liveAnnouncementSortCleared` (string) - Screen reader announcement made when the multi-column sort is cleared.\n * * `sortPriority` (({ priority }) => string) - Formats a sorted column's position in a multi-column sort, used in the sorted column header's accessible label.\n * @i18n\n */\n ariaLabels?: TableProps.AriaLabels<T>;\n\n /**\n * Specifies the definition object of the currently sorted column. Make sure you pass an object that's\n * present in the `columnDefinitions` array.\n */\n sortingColumn?: TableProps.SortingColumn<T>;\n /**\n * Specifies whether to use a descending sort order.\n */\n sortingDescending?: boolean;\n /**\n * Specifies if sorting buttons are disabled. For example, use this property\n * to prevent the user from sorting before items are fully loaded.\n */\n sortingDisabled?: boolean;\n\n /**\n * Enables multi-column sorting on the table. The object contains:\n *\n * * `sortingColumns` (ReadonlyArray<TableProps.SortingState<T>>) - The current multi-column\n * sort state. The first entry has the highest sort priority, and subsequent entries act as\n * tiebreakers.\n * * `onChange` (NonCancelableEventHandler<TableProps.MultiColumnSortChangeDetail<T>>) - Called\n * when the user changes the sort state.\n *\n * Use either this property or `sortingColumn` / `sortingDescending` / `onSortingChange`, but not both.\n */\n multiColumnSort?: TableProps.MultiColumnSort<T>;\n\n /**\n * Object containing the localized visible strings used by the Table component.\n *\n * When multi-column sorting is enabled it provides the sort UI labels:\n *\n * * `sortDropdownSortAscending` (string): Label for the \"Sort ascending\" dropdown menu item.\n * * `sortDropdownSortDescending` (string): Label for the \"Sort descending\" dropdown menu item.\n * * `sortDropdownMultiColumnSortGroup` (string): Label for the multi-column sort dropdown menu group.\n * * `sortDropdownAddToSortAscending` (string): Label for the \"Add to sort (ascending)\" dropdown menu item.\n * * `sortDropdownAddToSortDescending` (string): Label for the \"Add to sort (descending)\" dropdown menu item.\n * * `sortDropdownRemoveFromSort` (string): Label for the \"Remove from sort\" dropdown menu item.\n * * `sortDropdownAddToSortDisabledReason` (string): Reason shown when the \"Add to sort\" menu items are disabled.\n * * `sortDropdownRemoveFromSortDisabledReason` (string): Reason shown when the \"Remove from sort\" menu item is disabled.\n * * `clearSort` (string): Label for the \"Clear sort\" button.\n *\n * @i18n\n */\n i18nStrings?: TableProps.I18nStrings;\n\n /**\n * Specifies the number of first and/or last columns that should be sticky.\n *\n * If the available scrollable space is less than a certain threshold, the feature is deactivated.\n *\n * Use it in conjunction with the sticky columns preference of the\n * [collection preferences](/components/collection-preferences/) component.\n *\n */\n stickyColumns?: TableProps.StickyColumns;\n\n /**\n * Specifies an array that represents the table columns in the order in which they will be displayed, together with their visibility.\n *\n * If not set, all columns are displayed and the order is dictated by the `columnDefinitions` property.\n *\n * Use it in conjunction with the content display preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * Each entry is one of the following:\n * - `ColumnDisplay` - Represents a single column.\n * - `type` ('column') - (Optional) Identifies the entry as a column. Defaults to `'column'` when omitted.\n * - `id` (string) - The column identifier. Must match a column `id` from `columnDefinitions`.\n * - `visible` (boolean) - Whether the column is visible.\n * - `GroupDisplay` - Represents a column group.\n * - `type` ('group') - Identifies the entry as a group.\n * - `id` (string) - The group identifier. Must match a group `id` from `groupDefinitions`.\n * - `visible` (boolean) - Whether the group is visible.\n * - `children` (ReadonlyArray<ColumnDisplayProperties>) - The columns or nested groups within this group.\n */\n columnDisplay?: ReadonlyArray<ColumnDisplayProperties>;\n\n /**\n * Defines the column groups. Each group has an `id` and `header` used to label the group header cell.\n *\n * When using grouped columns, you must also provide the `columnDisplay` property with `{ type: 'group', id, children }` entries\n * to assign columns to their respective groups and define the display hierarchy.\n *\n * Each group definition contains the following:\n * - `id` (string) - A unique identifier for the group.\n * - `header` (ReactNode) - The content displayed in the group header cell.\n * - `ariaLabel` ((LabelData) => string) - (Optional) A function that provides an `aria-label` for the group header.\n */\n groupDefinitions?: ReadonlyArray<TableProps.GroupDefinition<T>>;\n\n /**\n * Specifies an array containing the `id`s of visible columns. If not set, all columns are displayed.\n *\n * Use it in conjunction with the visible content preference of the [collection preferences](/components/collection-preferences/) component.\n *\n * The order of ids doesn't influence the order in which columns are displayed - this is dictated by the `columnDefinitions` property.\n *\n * @deprecated Replaced by `columnDisplay`.\n */\n visibleColumns?: ReadonlyArray<string>;\n\n /**\n * Fired when the user resizes a table column. The event detail contains an array of column widths in pixels,\n * including the hidden via preferences columns. Use this event to persist the column widths.\n */\n onColumnWidthsChange?: NonCancelableEventHandler<TableProps.ColumnWidthsChangeDetail>;\n\n /**\n * Called when either the column to sort by or the direction of sorting changes upon user interaction.\n * The event detail contains the current sortingColumn and isDescending.\n */\n onSortingChange?: NonCancelableEventHandler<TableProps.SortingState<T>>;\n\n /**\n * Fired when a user interaction triggers a change in the list of selected items.\n * The event `detail` contains the new state for `selectedItems`.\n */\n onSelectionChange?: NonCancelableEventHandler<TableProps.SelectionChangeDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row. The event detail contains the index of the\n * clicked row and the row object itself. Use this event to define a row click behavior.\n */\n onRowClick?: NonCancelableEventHandler<TableProps.OnRowClickDetail<T>>;\n\n /**\n * Note: This feature is provided for backwards compatibility. Its use is not recommended,\n * and it may be deprecated in the future.\n *\n * Called when the user clicked at a table row with the right mouse click. The event detail\n * contains the index of the clicked row and the row object itself. Use this event to override\n * the default browser context menu behavior.\n */\n onRowContextMenu?: CancelableEventHandler<TableProps.OnRowContextMenuDetail<T>>;\n\n /**\n * If set to `true`, the table header remains visible when the user scrolls down.\n *\n * Do not use `stickyHeader` conditionally. Instead, keep its value constant during the component lifecycle.\n */\n stickyHeader?: boolean;\n\n /**\n * Specifies a vertical offset (in pixels) for the sticky header. For example, use this if you\n * need to position the sticky header below other fixed position elements on the page.\n */\n stickyHeaderVerticalOffset?: number;\n\n /**\n * Specify a table variant with one of the following:\n * * `container` - Use this variant to have the table displayed within a container.\n * * `borderless` - Use this variant when the table should have no outer borders or shadow\n * (such as in a dashboard item container).\n * * `embedded` - Use this variant within a parent container (such as a modal, expandable\n * section, container or split panel).\n * **Deprecated**, replaced by `borderless` and `container`.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * * `full-page` – Use this variant when the table is the entire content of a page.\n * @visualrefresh `embedded`, `stacked`, and `full-page` variants\n */\n variant?: TableProps.Variant;\n\n /**\n * Use this property to inform screen readers how many items there are in a table.\n * It specifies the total count of all items in a table.\n * If there is an unknown total of items in a table, leave this property undefined.\n */\n totalItemsCount?: number;\n /**\n * Use this property to inform screen readers which range of items is currently displayed in the table.\n * It specifies the index (1-based) of the first item in the table.\n */\n firstIndex?: number;\n /**\n * Use this function to announce page changes to screen reader users.\n * The function argument takes the following properties:\n * * `firstIndex` (number) - The provided `firstIndex` property which defaults to 1 when not defined.\n * * `lastIndex` (number) - The index of the last visible item of the table.\n * * `visibleItemsCount` (number) - The number of rendered table items.\n * * `totalItemsCount` (optional, number) - The provided `totalItemsCount` property.\n * Important: in tables with expandable rows the `firstIndex`, `lastIndex`, and `totalItemsCount` reflect the top-level items only.\n */\n renderAriaLive?: (data: TableProps.LiveAnnouncement) => string;\n /**\n * Specifies a function that will be called after user submits an inline edit.\n * Return a promise to keep loading state while the submit request is in progress.\n */\n submitEdit?: TableProps.SubmitEditFunction<T>;\n\n /**\n * Called whenever user cancels an inline edit. Use this function to reset any\n * validation states, or show warning for unsaved changes.\n */\n onEditCancel?: CancelableEventHandler;\n\n /**\n * Use this property to activate advanced keyboard navigation and focusing behaviors.\n * When set to `true`, table cells become navigable with arrow keys, and the entire table has a single tab stop.\n *\n * By default, the keyboard navigation is active for tables with expandable rows.\n */\n enableKeyboardNavigation?: boolean;\n\n /**\n * Use this property to define expandable table rows. The expandableRows configuration object consists of:\n * * `getItemChildren` ((Item) => Item[]) - Use it to define nested data that are shown when an item gets expanded.\n * * `isItemExpandable` ((Item) => boolean) - Use it for items that can be expanded to show nested data.\n * * `expandedItems` (Item[]) - Use it to represent the expanded state of items.\n * * `onExpandableItemToggle` (TableProps.OnExpandableItemToggle<Item>) - Called when an item's expand toggle is clicked.\n * * `groupSelection` (optional, GroupSelectionState<Item>) - Tree-like selection state for tables with grouped data. When defined, the\n * properties `selectionType` and `selectedItems` no longer apply. It reads as (assuming item \"a.1\" is nested under \"a\"):\n * * `{ inverted: false, toggledItems: [] }` - no items are selected;\n * * `{ inverted: true, toggledItems: [] }` - all items are selected;\n * * `{ inverted: false, toggledItems: [\"a\", \"a.1\"] }` - all items nested under \"a\", unless also nested under \"a.1\", are selected.\n * * `{ inverted: true, toggledItems: [\"a\", \"a.1\"] }` - the opposite of above.\n * * `onGroupSelectionChange` (optional, TableProps.OnGroupSelectionChange<Item>) - Called when group selection changes.\n * * `getItemsCount` (optional, (Item) => number) - Use it to indicate the number of resources nested under the given item.\n * The value is passed as `itemsCount` property to the `columnDefinitions[index].counter` and `ariaLabels.itemSelectionLabel` functions.\n * * `totalItemsCount` (optional, number) - Use it to indicate the total number of resources in the table.\n * The value is passed as `itemsCount` property to the `ariaLabels.allItemsSelectionLabel`.\n * * `getSelectedItemsCount` (optional, (Item) => number) - Use it to indicate the number of selected resources nested under the given item.\n * The value is passed as `selectedItemsCount` property to the `columnDefinitions[index].counter` and `ariaLabels.itemSelectionLabel` functions.\n * * `totalSelectedItemsCount` (optional, number) - Use it to indicate the total number of selected resources in the table.\n * The value is passed as `selectedItemsCount` property to the `ariaLabels.allItemsSelectionLabel`.\n */\n expandableRows?: TableProps.ExpandableRows<T>;\n\n /**\n * A function that specifies the current status of loading more items. It is called once for the entire\n * table with `item=null` and then for each expanded item. The function result is one of the four possible states:\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that loading has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch.\n **/\n getLoadingStatus?: TableProps.GetLoadingStatus<T>;\n /**\n * Renders loader row content for pending state.\n */\n renderLoaderPending?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for loading state.\n */\n renderLoaderLoading?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for error state.\n */\n renderLoaderError?: (detail: TableProps.RenderLoaderDetail<T>) => React.ReactNode;\n /**\n * Renders loader row content for empty row state: the loading status is \"finished\",\n * and the row is expanded but has empty children array.\n *\n * The empty loader state is only supported for expandable rows. Use `empty` slot if\n * the table items array is empty.\n */\n renderLoaderEmpty?: (detail: TableProps.RenderLoaderEmptyDetail<T>) => React.ReactNode;\n /**\n * Renders loader counter that is appended to the loader content in all loader states.\n */\n renderLoaderCounter?: (detail: TableProps.RenderLoaderCounterDetail<T>) => React.ReactNode;\n}\n\nexport namespace TableProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: 'view-resource';\n resourceType?: string;\n }\n\n export type TrackBy<T> = string | ((item: T) => string);\n\n export interface CellContext<V> {\n currentValue: Optional<V>;\n setValue: (value: V | undefined) => void;\n submitValue: () => void;\n }\n\n export interface EditConfig<T, V = any> {\n /**\n * Specifies a label for the edit control. Visually hidden but read\n * by screen readers.\n */\n ariaLabel?: string;\n /**\n * Specifies an ariaLabel for the error icon that is displayed when\n * the validation fails.\n */\n errorIconAriaLabel?: string;\n /**\n * Specifies an alternate text for the edit icon used in column header.\n */\n editIconAriaLabel?: string;\n /**\n * Constraint text that is displayed below the edit control.\n */\n constraintText?: string;\n /**\n * A function that allows you to validate the value of the edit control. Return\n * a string from the function to display an error message. Return\n * `undefined` (or no return) from the function to indicate that the value is valid.\n * @param item - The item that is being edited.\n * @param value - The current value of the edit control.\n */\n validation?: (item: T, value: Optional<V>) => Optional<string>;\n\n /**\n * Determines the display of a cell's content when inline edit is active.\n */\n editingCell(item: T, ctx: TableProps.CellContext<any>): React.ReactNode;\n\n /**\n * Determines whether inline edit for certain items is disabled, and provides a reason why.\n */\n disabledReason?: (item: T) => string | undefined;\n\n /**\n * Disables the use of a `<form>` element to capture submissions inside the inline editor.\n * If enabled, ensure that any text inputs in the editing cell submit the cell value when\n * the Enter key is pressed, using `cellContext.submitValue`.\n */\n disableNativeForm?: boolean;\n }\n\n export type ColumnDefinition<T> = {\n id?: string;\n header: React.ReactNode;\n ariaLabel?(data: LabelData): string;\n width?: number | string;\n minWidth?: number | string;\n maxWidth?: number | string;\n counter?(props: ItemCounterData<T>): React.ReactNode;\n editConfig?: EditConfig<T>;\n isRowHeader?: boolean;\n verticalAlign?: VerticalAlign;\n hasDynamicContent?: boolean;\n cell(item: T): React.ReactNode;\n } & SortingColumn<T>;\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n export interface GroupDefinition<T = any> {\n id: string;\n header: React.ReactNode;\n ariaLabel?: (data: LabelData) => string;\n }\n\n export interface ItemCounterData<T> {\n item: T;\n itemsCount?: number;\n selectedItemsCount?: number;\n }\n\n export interface StickyColumns {\n first?: number;\n last?: number;\n }\n\n export type VerticalAlign = 'middle' | 'top';\n export type SelectionType = 'single' | 'multi';\n export type Variant = 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page';\n export interface SelectionState<T> {\n selectedItems: ReadonlyArray<T>;\n itemsCount?: number;\n selectedItemsCount?: number;\n }\n export interface SelectionChangeDetail<T> {\n selectedItems: T[];\n }\n export type IsItemDisabled<T> = (item: T) => boolean;\n export interface AriaLabels<T> {\n allItemsSelectionLabel?: (data: SelectionState<T>) => string;\n itemSelectionLabel?: (data: SelectionState<T>, row: T) => string;\n itemLoaderSelectionLabel?: (data: SelectionState<T>, row: null | T) => string;\n selectionGroupLabel?: string;\n tableLabel?: string;\n resizerRoleDescription?: string;\n resizerTooltipText?: string;\n // do not use <T> to prevent overly strict validation on consumer end\n // it works, practically, we are only interested in `id` and `header` properties only\n activateEditLabel?: (column: ColumnDefinition<any>, item: T) => string;\n cancelEditLabel?: (column: ColumnDefinition<any>) => string;\n submitEditLabel?: (column: ColumnDefinition<any>) => string;\n submittingEditText?: (column: ColumnDefinition<any>) => string;\n successfulEditLabel?: (column: ColumnDefinition<any>) => string;\n expandButtonLabel?: (item: T) => string;\n collapseButtonLabel?: (item: T) => string;\n sortMenuTriggerLabel?: string;\n sortAscending?: string;\n sortDescending?: string;\n liveAnnouncementSortOrder?: (data: { columns: string }) => string;\n liveAnnouncementSortCleared?: string;\n sortPriority?: (data: { priority: number }) => string;\n }\n export interface SortingState<T> {\n isDescending?: boolean;\n sortingColumn: SortingColumn<T>;\n }\n export interface SortingColumn<T> {\n sortingField?: string;\n sortingComparator?: (a: T, b: T) => number;\n }\n export interface MultiColumnSort<T> {\n sortingColumns: ReadonlyArray<SortingState<T>>;\n onChange: NonCancelableEventHandler<MultiColumnSortChangeDetail<T>>;\n }\n export interface MultiColumnSortChangeDetail<T> {\n sortingColumns: ReadonlyArray<SortingState<T>>;\n }\n export interface I18nStrings {\n sortDropdownSortAscending?: string;\n sortDropdownSortDescending?: string;\n sortDropdownMultiColumnSortGroup?: string;\n sortDropdownAddToSortAscending?: string;\n sortDropdownAddToSortDescending?: string;\n sortDropdownRemoveFromSort?: string;\n sortDropdownAddToSortDisabledReason?: string;\n sortDropdownRemoveFromSortDisabledReason?: string;\n clearSort?: string;\n }\n export interface LabelData {\n sorted: boolean;\n descending: boolean;\n disabled: boolean;\n sortIndex?: number;\n }\n export interface OnRowClickDetail<T> {\n rowIndex: number;\n item: T;\n }\n export interface OnRowContextMenuDetail<T> {\n rowIndex: number;\n item: T;\n clientX: number;\n clientY: number;\n }\n\n export interface ColumnWidthsChangeDetail {\n widths: ReadonlyArray<number>;\n }\n\n export interface LiveAnnouncement {\n firstIndex: number;\n lastIndex: number;\n visibleItemsCount: number;\n totalItemsCount?: number;\n }\n\n export interface Ref {\n /**\n * When the sticky header is enabled and you call this function, the table\n * scroll parent scrolls to reveal the first row of the table.\n */\n scrollToTop(): void;\n\n /**\n * Dismiss an inline edit if currently active.\n */\n cancelEdit?(): void;\n }\n\n export type SubmitEditFunction<ItemType, ValueType = unknown> = (\n item: ItemType,\n column: ColumnDefinition<ItemType>,\n newValue: ValueType\n ) => Promise<void> | void;\n\n export interface ColumnDisplay {\n type?: 'column';\n id: string;\n visible: boolean;\n }\n\n export interface GroupDisplay {\n type: 'group';\n id: string;\n visible: boolean;\n children: ReadonlyArray<ColumnDisplayProperties>;\n }\n\n export type ColumnDisplayProperties = ColumnDisplay | GroupDisplay;\n\n export interface ExpandableRows<T> {\n getItemChildren: (item: T) => readonly T[];\n isItemExpandable: (item: T) => boolean;\n expandedItems: ReadonlyArray<T>;\n onExpandableItemToggle: OnExpandableItemToggle<T>;\n groupSelection?: GroupSelectionState<T>;\n onGroupSelectionChange?: OnGroupSelectionChange<T>;\n getItemsCount?: (item: T) => number;\n totalItemsCount?: number;\n getSelectedItemsCount?: (item: T) => number;\n totalSelectedItemsCount?: number;\n }\n\n export type OnExpandableItemToggle<T> = NonCancelableEventHandler<ExpandableItemToggleDetail<T>>;\n\n export interface ExpandableItemToggleDetail<T> {\n item: T;\n expanded: boolean;\n }\n\n export type OnGroupSelectionChange<T> = NonCancelableEventHandler<GroupSelectionChangeDetail<T>>;\n\n export interface GroupSelectionChangeDetail<T> {\n groupSelection: GroupSelectionState<T>;\n }\n\n export interface GroupSelectionState<T> {\n inverted: boolean;\n toggledItems: readonly T[];\n }\n\n export type GetLoadingStatus<T> = (item: null | T) => LoadingStatus;\n\n export type LoadingStatus = 'pending' | 'loading' | 'error' | 'finished';\n\n export interface RenderLoaderDetail<T> {\n item: null | T;\n }\n\n export interface RenderLoaderCounterDetail<T> {\n loadingStatus: LoadingStatus;\n selected: boolean;\n item: null | T;\n }\n\n export interface RenderLoaderEmptyDetail<T> {\n item: T;\n }\n\n interface BaseSkeletonConfig<T> {\n /**\n * Renders a custom skeleton placeholder for each cell of the given column while data is loading.\n * Use for columns whose final content is not a single line of text, so the placeholder matches the\n * settled cell shape and the load-to-settle transition stays stable. Compose the returned content\n * from the `Skeleton` component. Return `undefined` for a column to use the default single-line\n * skeleton; return `null` to render an empty placeholder for that column.\n *\n * The returned content is rendered inside an `aria-hidden` row, so it is not announced to screen\n * readers; do not render focusable or interactive elements.\n */\n renderCell?: (column: TableProps.ColumnDefinition<T>) => React.ReactNode;\n }\n\n export interface FixedSkeletonConfig<T = any> extends BaseSkeletonConfig<T> {\n totalRows: number;\n maxAutoRows?: never;\n minAutoRows?: never;\n }\n\n export interface AutoSkeletonConfig<T = any> extends BaseSkeletonConfig<T> {\n totalRows: 'auto';\n maxAutoRows?: number;\n minAutoRows?: number;\n }\n\n export type SkeletonConfig<T = any> = FixedSkeletonConfig<T> | AutoSkeletonConfig<T>;\n}\n\nexport type TableRow<T> = TableDataRow<T> | TableLoaderRow<T>;\n\ninterface TableDataRow<T> {\n type: 'data';\n item: T;\n}\n\ninterface TableLoaderRow<T> {\n type: 'loader';\n item: null | T;\n level: number;\n status: TableProps.LoadingStatus;\n from: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AA+CzE,eAAO,MAAM,sBAAsB,EAW9B,mBAAmB,CAAC;AAEzB,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AA+CzE,eAAO,MAAM,sBAAsB,EAW9B,mBAAmB,CAAC;AAEzB,QAAA,MAAM,aAAa,EAizBd,mBAAmB,CAAC;AAEzB,eAAe,aAAa,CAAC"}
|
|
@@ -395,7 +395,7 @@ const InternalTable = React.forwardRef(({ header, footer, empty, filter, paginat
|
|
|
395
395
|
resizableColumns && columnGroupsLayout && columnGroupsLayout.rows.length > 1 && (React.createElement(TableColGroup, { visibleColumnDefinitions: visibleColumnDefinitions, hasSelection: hasSelection })),
|
|
396
396
|
React.createElement(Thead, { ref: theadRef, hidden: stickyHeader, onFocusedComponentChange: focusId => { var _a; return (_a = stickyHeaderRef.current) === null || _a === void 0 ? void 0 : _a.setFocus(focusId); }, ...theadProps }),
|
|
397
397
|
React.createElement("tbody", { ref: tableBodyRef },
|
|
398
|
-
skeleton && allItems.length === 0 && loading ? (React.createElement(SkeletonRows, { count: skeletonRowsCount, hasDataRows: false, totalColumnsCount: totalColumnsCount, loadingText: loadingText, hasSelection: hasSelection, hasFooter: hasFooter, stickyState: stickyState, tableRole: tableRole, ariaLabels: ariaLabels, cellVerticalAlign: cellVerticalAlign, computedVariant: computedVariant, visibleColumnDefinitions: visibleColumnDefinitions, wrapLines: wrapLines, resizableColumns: resizableColumns, colIndexOffset: colIndexOffset })) : !skeleton && (loading || allItems.length === 0) ? (React.createElement("tr", null,
|
|
398
|
+
skeleton && allItems.length === 0 && loading ? (React.createElement(SkeletonRows, { count: skeletonRowsCount, hasDataRows: false, totalColumnsCount: totalColumnsCount, loadingText: loadingText, hasSelection: hasSelection, hasFooter: hasFooter, stickyState: stickyState, tableRole: tableRole, ariaLabels: ariaLabels, cellVerticalAlign: cellVerticalAlign, computedVariant: computedVariant, visibleColumnDefinitions: visibleColumnDefinitions, wrapLines: wrapLines, resizableColumns: resizableColumns, colIndexOffset: colIndexOffset, renderCell: skeleton === null || skeleton === void 0 ? void 0 : skeleton.renderCell })) : !skeleton && (loading || allItems.length === 0) ? (React.createElement("tr", null,
|
|
399
399
|
React.createElement(NoDataCell, { totalColumnsCount: totalColumnsCount, hasFooter: hasFooter, loading: loading, loadingText: loadingText, empty: empty, tableRef: tableRefObject, containerRef: wrapperMeasureRefObject }))) : (allRows.map((row, rowIndex) => {
|
|
400
400
|
const isFirstRow = rowIndex === 0;
|
|
401
401
|
const hasSkeletonBelow = loading && skeleton && allItems.length > 0 && skeletonRowsCount - allItems.length > 0;
|
|
@@ -497,7 +497,7 @@ const InternalTable = React.forwardRef(({ header, footer, empty, filter, paginat
|
|
|
497
497
|
return (React.createElement(TableLoaderCell, { key: getColumnKey(column, colIndex), ...sharedCellProps, wrapLines: false, columnId: (_a = column.id) !== null && _a !== void 0 ? _a : colIndex, colIndex: colIndex + colIndexOffset, isSelected: selectionType === 'group' && !!(loaderSelectionProps === null || loaderSelectionProps === void 0 ? void 0 : loaderSelectionProps.checked), isRowHeader: colIndex === 0, level: row.level, item: row.item, trackBy: trackBy, counter: loaderCounter }, loaderContent));
|
|
498
498
|
}))));
|
|
499
499
|
})),
|
|
500
|
-
loading && skeleton && allItems.length > 0 && skeletonRowsCount - allItems.length > 0 && (React.createElement(SkeletonRows, { count: skeletonRowsCount - allItems.length, hasDataRows: true, totalColumnsCount: totalColumnsCount, loadingText: loadingText, hasSelection: hasSelection, hasFooter: hasFooter, stickyState: stickyState, tableRole: tableRole, ariaLabels: ariaLabels, cellVerticalAlign: cellVerticalAlign, computedVariant: computedVariant, visibleColumnDefinitions: visibleColumnDefinitions, wrapLines: wrapLines, resizableColumns: resizableColumns, colIndexOffset: colIndexOffset }))))),
|
|
500
|
+
loading && skeleton && allItems.length > 0 && skeletonRowsCount - allItems.length > 0 && (React.createElement(SkeletonRows, { count: skeletonRowsCount - allItems.length, hasDataRows: true, totalColumnsCount: totalColumnsCount, loadingText: loadingText, hasSelection: hasSelection, hasFooter: hasFooter, stickyState: stickyState, tableRole: tableRole, ariaLabels: ariaLabels, cellVerticalAlign: cellVerticalAlign, computedVariant: computedVariant, visibleColumnDefinitions: visibleColumnDefinitions, wrapLines: wrapLines, resizableColumns: resizableColumns, colIndexOffset: colIndexOffset, renderCell: skeleton === null || skeleton === void 0 ? void 0 : skeleton.renderCell }))))),
|
|
501
501
|
resizableColumns && React.createElement(ResizeTracker, null)),
|
|
502
502
|
React.createElement(StickyScrollbar, { ref: scrollbarRef, wrapperRef: wrapperRefObject, tableRef: tableRefObject, onScroll: handleScroll, hasStickyColumns: hasStickyColumns }))))));
|
|
503
503
|
});
|