@cloudscape-design/components-themeable 3.0.475 → 3.0.477
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 +14 -21
- package/lib/internal/scss/anchor-navigation/styles.scss +12 -21
- package/lib/internal/scss/annotation-context/annotation/arrow.scss +15 -20
- package/lib/internal/scss/annotation-context/annotation/styles.scss +6 -7
- package/lib/internal/scss/app-layout/constants.scss +3 -2
- package/lib/internal/scss/app-layout/content-wrapper/styles.scss +7 -7
- package/lib/internal/scss/app-layout/drawer/styles.scss +10 -9
- package/lib/internal/scss/app-layout/mobile-toolbar/styles.scss +9 -10
- package/lib/internal/scss/app-layout/notifications/styles.scss +1 -1
- package/lib/internal/scss/app-layout/split-panel/styles.scss +1 -1
- package/lib/internal/scss/app-layout/styles.scss +7 -7
- package/lib/internal/scss/app-layout/toggles/styles.scss +3 -4
- package/lib/internal/scss/app-layout/visual-refresh/background.scss +3 -3
- package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +19 -20
- package/lib/internal/scss/app-layout/visual-refresh/layout.scss +2 -2
- package/lib/internal/scss/app-layout/visual-refresh/main.scss +3 -4
- package/lib/internal/scss/app-layout/visual-refresh/mobile-toolbar.scss +6 -7
- package/lib/internal/scss/app-layout/visual-refresh/navigation.scss +13 -14
- package/lib/internal/scss/app-layout/visual-refresh/notifications.scss +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/split-panel.scss +9 -9
- package/lib/internal/scss/app-layout/visual-refresh/tools.scss +14 -15
- package/lib/internal/scss/app-layout/visual-refresh/trigger-button.scss +12 -20
- package/lib/internal/scss/area-chart/styles.scss +2 -3
- package/lib/internal/scss/attribute-editor/styles.scss +5 -6
- package/lib/internal/scss/autosuggest/styles.scss +2 -2
- package/lib/internal/scss/badge/styles.scss +2 -6
- package/lib/internal/scss/box/base-styles.scss +2 -4
- package/lib/internal/scss/box/layout.scss +0 -2
- package/lib/internal/scss/box/text.scss +3 -3
- package/lib/internal/scss/breadcrumb-group/item/styles.scss +2 -3
- package/lib/internal/scss/breadcrumb-group/styles.scss +9 -16
- package/lib/internal/scss/button/styles.scss +1 -2
- package/lib/internal/scss/button-dropdown/category-elements/styles.scss +28 -37
- package/lib/internal/scss/button-dropdown/item-element/styles.scss +15 -20
- package/lib/internal/scss/button-dropdown/mobile-expandable-group/styles.scss +3 -3
- package/lib/internal/scss/button-dropdown/styles.scss +14 -17
- package/lib/internal/scss/calendar/styles.scss +20 -36
- package/lib/internal/scss/cards/styles.scss +24 -40
- package/lib/internal/scss/code-editor/ace-editor.scss +12 -12
- package/lib/internal/scss/code-editor/pane.scss +21 -23
- package/lib/internal/scss/code-editor/resizable-box/styles.scss +5 -5
- package/lib/internal/scss/code-editor/styles.scss +30 -38
- package/lib/internal/scss/collection-preferences/content-display/content-display-option.scss +10 -18
- package/lib/internal/scss/collection-preferences/content-display/styles.scss +3 -5
- package/lib/internal/scss/collection-preferences/styles.scss +1 -1
- package/lib/internal/scss/collection-preferences/visible-content.scss +8 -11
- package/lib/internal/scss/column-layout/flexible-column-layout/styles.scss +5 -4
- package/lib/internal/scss/column-layout/styles.scss +9 -15
- package/lib/internal/scss/container/shared.scss +3 -1
- package/lib/internal/scss/container/styles.scss +43 -53
- package/lib/internal/scss/content-layout/styles.scss +4 -4
- package/lib/internal/scss/date-picker/styles.scss +3 -3
- package/lib/internal/scss/date-range-picker/calendar/grids/styles.scss +18 -29
- package/lib/internal/scss/date-range-picker/relative-range/styles.scss +8 -8
- package/lib/internal/scss/date-range-picker/styles.scss +21 -26
- package/lib/internal/scss/drawer/styles.scss +10 -13
- package/lib/internal/scss/expandable-section/styles.scss +57 -43
- package/lib/internal/scss/file-upload/dropzone/styles.scss +2 -6
- package/lib/internal/scss/file-upload/file-option/styles.scss +7 -7
- package/lib/internal/scss/file-upload/styles.scss +1 -1
- package/lib/internal/scss/flashbar/collapsible.scss +25 -25
- package/lib/internal/scss/flashbar/styles.scss +19 -29
- package/lib/internal/scss/form/styles.scss +10 -10
- package/lib/internal/scss/form-field/styles.scss +5 -5
- package/lib/internal/scss/internal/components/chart-series-details/styles.scss +60 -9
- package/lib/internal/scss/internal/components/chart-series-marker/styles.scss +5 -2
- package/lib/internal/template/alert/styles.css.js +25 -25
- package/lib/internal/template/alert/styles.scoped.css +53 -59
- package/lib/internal/template/alert/styles.selectors.js +25 -25
- package/lib/internal/template/anchor-navigation/styles.css.js +8 -8
- package/lib/internal/template/anchor-navigation/styles.scoped.css +30 -39
- package/lib/internal/template/anchor-navigation/styles.selectors.js +8 -8
- package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +48 -55
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
- package/lib/internal/template/app-layout/content-wrapper/styles.css.js +3 -3
- package/lib/internal/template/app-layout/content-wrapper/styles.scoped.css +15 -15
- package/lib/internal/template/app-layout/content-wrapper/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/drawer/styles.css.js +12 -12
- package/lib/internal/template/app-layout/drawer/styles.scoped.css +30 -29
- package/lib/internal/template/app-layout/drawer/styles.selectors.js +12 -12
- package/lib/internal/template/app-layout/interfaces.d.ts +4 -3
- package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
- package/lib/internal/template/app-layout/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/mobile-toolbar/styles.css.js +8 -8
- package/lib/internal/template/app-layout/mobile-toolbar/styles.scoped.css +17 -18
- package/lib/internal/template/app-layout/mobile-toolbar/styles.selectors.js +8 -8
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +6 -6
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/split-panel/styles.css.js +2 -2
- package/lib/internal/template/app-layout/split-panel/styles.scoped.css +3 -3
- package/lib/internal/template/app-layout/split-panel/styles.selectors.js +2 -2
- package/lib/internal/template/app-layout/styles.css.js +16 -16
- package/lib/internal/template/app-layout/styles.scoped.css +26 -26
- package/lib/internal/template/app-layout/styles.selectors.js +16 -16
- package/lib/internal/template/app-layout/toggles/styles.css.js +2 -2
- package/lib/internal/template/app-layout/toggles/styles.scoped.css +9 -10
- package/lib/internal/template/app-layout/toggles/styles.selectors.js +2 -2
- package/lib/internal/template/app-layout/utils/use-drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/context.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +80 -80
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +251 -268
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +80 -80
- package/lib/internal/template/area-chart/styles.css.js +6 -6
- package/lib/internal/template/area-chart/styles.scoped.css +11 -12
- package/lib/internal/template/area-chart/styles.selectors.js +6 -6
- package/lib/internal/template/attribute-editor/styles.css.js +14 -14
- package/lib/internal/template/attribute-editor/styles.scoped.css +29 -30
- package/lib/internal/template/attribute-editor/styles.selectors.js +14 -14
- package/lib/internal/template/autosuggest/styles.css.js +3 -3
- package/lib/internal/template/autosuggest/styles.scoped.css +5 -5
- package/lib/internal/template/autosuggest/styles.selectors.js +3 -3
- package/lib/internal/template/badge/styles.css.js +5 -5
- package/lib/internal/template/badge/styles.scoped.css +7 -11
- package/lib/internal/template/badge/styles.selectors.js +5 -5
- package/lib/internal/template/bar-chart/index.d.ts +1 -1
- package/lib/internal/template/bar-chart/index.d.ts.map +1 -1
- package/lib/internal/template/bar-chart/index.js +2 -2
- package/lib/internal/template/bar-chart/index.js.map +1 -1
- package/lib/internal/template/bar-chart/interfaces.d.ts +3 -8
- package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
- package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
- package/lib/internal/template/box/styles.css.js +190 -190
- package/lib/internal/template/box/styles.scoped.css +240 -244
- package/lib/internal/template/box/styles.selectors.js +190 -190
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +9 -9
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +19 -20
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +9 -9
- package/lib/internal/template/breadcrumb-group/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +21 -28
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +7 -7
- package/lib/internal/template/button/styles.css.js +20 -20
- package/lib/internal/template/button/styles.scoped.css +153 -155
- package/lib/internal/template/button/styles.selectors.js +20 -20
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +13 -13
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +50 -60
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +15 -15
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +33 -38
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +15 -15
- 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 +8 -8
- package/lib/internal/template/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/lib/internal/template/button-dropdown/styles.css.js +15 -15
- package/lib/internal/template/button-dropdown/styles.scoped.css +36 -39
- package/lib/internal/template/button-dropdown/styles.selectors.js +15 -15
- package/lib/internal/template/calendar/styles.css.js +18 -18
- package/lib/internal/template/calendar/styles.scoped.css +59 -75
- package/lib/internal/template/calendar/styles.selectors.js +18 -18
- package/lib/internal/template/cards/styles.css.js +38 -38
- package/lib/internal/template/cards/styles.scoped.css +94 -110
- package/lib/internal/template/cards/styles.selectors.js +38 -38
- package/lib/internal/template/code-editor/resizable-box/styles.css.js +3 -3
- package/lib/internal/template/code-editor/resizable-box/styles.scoped.css +13 -13
- package/lib/internal/template/code-editor/resizable-box/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/styles.css.js +32 -32
- package/lib/internal/template/code-editor/styles.scoped.css +246 -258
- package/lib/internal/template/code-editor/styles.selectors.js +32 -32
- package/lib/internal/template/collection-preferences/content-display/styles.css.js +11 -11
- package/lib/internal/template/collection-preferences/content-display/styles.scoped.css +30 -40
- package/lib/internal/template/collection-preferences/content-display/styles.selectors.js +11 -11
- package/lib/internal/template/collection-preferences/styles.css.js +37 -37
- package/lib/internal/template/collection-preferences/styles.scoped.css +66 -79
- package/lib/internal/template/collection-preferences/styles.selectors.js +37 -37
- 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 -8
- 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 +64 -70
- package/lib/internal/template/column-layout/styles.selectors.js +13 -13
- package/lib/internal/template/container/styles.css.js +28 -28
- package/lib/internal/template/container/styles.scoped.css +98 -106
- package/lib/internal/template/container/styles.selectors.js +28 -28
- package/lib/internal/template/content-layout/styles.css.js +7 -7
- package/lib/internal/template/content-layout/styles.scoped.css +15 -15
- package/lib/internal/template/content-layout/styles.selectors.js +7 -7
- package/lib/internal/template/date-picker/styles.css.js +7 -7
- package/lib/internal/template/date-picker/styles.scoped.css +12 -12
- package/lib/internal/template/date-picker/styles.selectors.js +7 -7
- package/lib/internal/template/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/lib/internal/template/date-range-picker/calendar/grids/styles.scoped.css +60 -71
- package/lib/internal/template/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/lib/internal/template/date-range-picker/relative-range/styles.css.js +9 -9
- package/lib/internal/template/date-range-picker/relative-range/styles.scoped.css +21 -21
- package/lib/internal/template/date-range-picker/relative-range/styles.selectors.js +9 -9
- package/lib/internal/template/date-range-picker/styles.css.js +38 -38
- package/lib/internal/template/date-range-picker/styles.scoped.css +68 -73
- package/lib/internal/template/date-range-picker/styles.selectors.js +38 -38
- package/lib/internal/template/drawer/styles.css.js +3 -3
- package/lib/internal/template/drawer/styles.scoped.css +18 -21
- package/lib/internal/template/drawer/styles.selectors.js +3 -3
- package/lib/internal/template/expandable-section/expandable-section-container.d.ts +2 -2
- package/lib/internal/template/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-container.js.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts +2 -3
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +11 -7
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/interfaces.d.ts +1 -0
- package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
- package/lib/internal/template/expandable-section/internal.d.ts +4 -2
- package/lib/internal/template/expandable-section/internal.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/internal.js.map +1 -1
- package/lib/internal/template/expandable-section/styles.css.js +32 -29
- package/lib/internal/template/expandable-section/styles.scoped.css +106 -99
- package/lib/internal/template/expandable-section/styles.selectors.js +32 -29
- package/lib/internal/template/expandable-section/utils.d.ts +3 -2
- package/lib/internal/template/expandable-section/utils.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/utils.js +4 -1
- package/lib/internal/template/expandable-section/utils.js.map +1 -1
- package/lib/internal/template/file-upload/dropzone/styles.css.js +2 -2
- package/lib/internal/template/file-upload/dropzone/styles.scoped.css +4 -8
- package/lib/internal/template/file-upload/dropzone/styles.selectors.js +2 -2
- package/lib/internal/template/file-upload/file-option/styles.css.js +7 -7
- package/lib/internal/template/file-upload/file-option/styles.scoped.css +15 -15
- package/lib/internal/template/file-upload/file-option/styles.selectors.js +7 -7
- package/lib/internal/template/file-upload/styles.css.js +2 -2
- package/lib/internal/template/file-upload/styles.scoped.css +4 -4
- package/lib/internal/template/file-upload/styles.selectors.js +2 -2
- package/lib/internal/template/flashbar/styles.css.js +47 -47
- package/lib/internal/template/flashbar/styles.scoped.css +215 -220
- package/lib/internal/template/flashbar/styles.selectors.js +47 -47
- package/lib/internal/template/form/styles.css.js +9 -9
- package/lib/internal/template/form/styles.scoped.css +18 -18
- package/lib/internal/template/form/styles.selectors.js +9 -9
- package/lib/internal/template/form-field/styles.css.js +19 -19
- package/lib/internal/template/form-field/styles.scoped.css +34 -34
- package/lib/internal/template/form-field/styles.selectors.js +19 -19
- package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
- package/lib/internal/template/internal/components/chart-plot/index.d.ts +1 -1
- package/lib/internal/template/internal/components/chart-plot/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/chart-plot/index.js.map +1 -1
- package/lib/internal/template/internal/components/chart-series-details/index.d.ts +12 -4
- package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/chart-series-details/index.js +46 -10
- package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
- package/lib/internal/template/internal/components/chart-series-details/series-details-text.d.ts +2 -0
- package/lib/internal/template/internal/components/chart-series-details/series-details-text.d.ts.map +1 -0
- package/lib/internal/template/internal/components/chart-series-details/series-details-text.js +17 -0
- package/lib/internal/template/internal/components/chart-series-details/series-details-text.js.map +1 -0
- package/lib/internal/template/internal/components/chart-series-details/styles.css.js +19 -5
- package/lib/internal/template/internal/components/chart-series-details/styles.scoped.css +141 -15
- package/lib/internal/template/internal/components/chart-series-details/styles.selectors.js +19 -5
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/line-chart/interfaces.d.ts +2 -8
- package/lib/internal/template/line-chart/interfaces.d.ts.map +1 -1
- package/lib/internal/template/line-chart/interfaces.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +2 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js +17 -8
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-popover.d.ts +1 -0
- package/lib/internal/template/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-popover.js +13 -3
- package/lib/internal/template/mixed-line-bar-chart/chart-popover.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +7 -2
- package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js +25 -5
- package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +38 -6
- package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/internal.d.ts +1 -1
- package/lib/internal/template/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/internal.js +2 -2
- package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
- package/lib/internal/template/modal/styles.css.js +23 -23
- package/lib/internal/template/modal/styles.scoped.css +39 -39
- package/lib/internal/template/modal/styles.selectors.js +23 -23
- package/lib/internal/template/pie-chart/interfaces.d.ts +5 -5
- package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.d.ts +1 -1
- package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.js +21 -18
- package/lib/internal/template/pie-chart/pie-chart.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/no-data-cell.d.ts +13 -0
- package/lib/internal/template/table/no-data-cell.d.ts.map +1 -0
- package/lib/internal/template/table/no-data-cell.js +24 -0
- package/lib/internal/template/table/no-data-cell.js.map +1 -0
- package/lib/internal/template/test-utils/dom/internal/chart-popover.d.ts +8 -0
- package/lib/internal/template/test-utils/dom/internal/chart-popover.js +23 -0
- package/lib/internal/template/test-utils/dom/internal/chart-popover.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.d.ts +8 -0
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.js +22 -0
- package/lib/internal/template/test-utils/selectors/internal/chart-popover.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/lib/internal/template/tiles/styles.css.js +29 -29
- package/lib/internal/template/tiles/styles.scoped.css +91 -97
- package/lib/internal/template/tiles/styles.selectors.js +29 -29
- package/package.json +1 -1
- package/lib/internal/template/table/node-data-cell.d.ts +0 -15
- package/lib/internal/template/table/node-data-cell.d.ts.map +0 -1
- package/lib/internal/template/table/node-data-cell.js +0 -25
- package/lib/internal/template/table/node-data-cell.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/chart-plot/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,sB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AAK,EAAE;gBACL,KAAK;gBACL,MAAM;gBACN,SAAS,EAAE,SAAS;gBACpB,YAAY,EAAE,YAAY;gBAC1B,UAAU,EAAE,UAAU;gBACtB,WAAW,EAAE,WAAW;aACzB,EACD,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;gBAC3B,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,WAAW;gBAC/B,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,SAAS;aAC5B,CAAC,EACF,WAAW,EAAE,eAAe,EAC5B,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,aAAa;YAExB,oBAAC,YAAY,IAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAI;YAEpF,2BAAG,SAAS,EAAE,SAAS;gBACrB,oBAAC,qBAAqB,IACpB,gBAAgB,EAAE,gBAAgB,IAAI,IAAI,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,oBAAoB,GAC/B;gBAGD,eAAe,IAAI,aAAa,IAAI,CACnC,6CAAkB,MAAM,EAAC,EAAE,EAAE,qBAAqB,IAC/C,eAAe,CACX,CACR;gBAEA,QAAQ;gBAET,oBAAC,YAAY,IACX,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,oBAAoB,IAAI,gBAAgB,EACpD,MAAM,EAAE,wBAAwB,GAChC,CACA,CACA;QAEN,oBAAC,UAAU,QAAE,cAAc,CAAc,CACxC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\nimport { useUniqueId } from '../../hooks/use-unique-id';\n\nimport { KeyCode } from '../../keycode';\nimport LiveRegion from '../live-region/index';\nimport ApplicationController, { ApplicationRef } from './application-controller';\nimport FocusOutline from './focus-outline';\nimport { Offset } from '../interfaces';\nimport { useInternalI18n } from '../../../i18n/context';\n\nconst DEFAULT_PLOT_FOCUS_OFFSET = 3;\nconst DEFAULT_ELEMENT_FOCUS_OFFSET = 3;\n\nexport interface ChartPlotRef {\n svg: SVGSVGElement;\n focusPlot(): void;\n focusApplication(): void;\n}\n\nexport interface ChartPlotProps {\n width: number | string;\n height: number | string;\n transform?: string;\n offsetTop?: number;\n offsetBottom?: number;\n offsetLeft?: number;\n offsetRight?: number;\n focusOffset?: number;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescription?: string;\n ariaDescribedby?: string;\n ariaRoleDescription?: string;\n activeElementKey?: null | string | number | boolean;\n activeElementRef?: React.RefObject<SVGGElement>;\n activeElementFocusOffset?: Offset;\n ariaLiveRegion?: React.ReactNode;\n isClickable?: boolean;\n isPrecise?: boolean;\n onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseMove?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseOut?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onFocus?: (event: React.FocusEvent<SVGGElement>, trigger: 'mouse' | 'keyboard') => void;\n onBlur?: (event: React.FocusEvent<SVGGElement>) => void;\n onKeyDown?: (event: React.KeyboardEvent<SVGGElement>) => void;\n children: React.ReactNode;\n}\n\n/**\n An extension for the SVG to be used for charts. It includes a controller element to\n handle the focus and keyboard interactions in a way that is supported by screen readers.\n\n The application mimics the aria-activedescendant behavior which is unsupported by Safari. The\n activeElementRef is the pointer to the secondary-focus element and activeElementKey denotes when\n the focus transition was made.\n\n Alternatively, ariaLiveRegion can be used to make announcements.\n*/\nexport default forwardRef(ChartPlot);\n\nfunction ChartPlot(\n {\n width,\n height,\n transform,\n offsetTop,\n offsetBottom,\n offsetLeft,\n offsetRight,\n ariaLabel,\n ariaLabelledby,\n ariaRoleDescription,\n ariaDescription,\n ariaDescribedby,\n activeElementKey,\n activeElementRef,\n ariaLiveRegion,\n isClickable,\n isPrecise,\n children,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n focusOffset = DEFAULT_PLOT_FOCUS_OFFSET,\n activeElementFocusOffset = DEFAULT_ELEMENT_FOCUS_OFFSET,\n ...restProps\n }: ChartPlotProps,\n ref: React.Ref<ChartPlotRef>\n) {\n const i18n = useInternalI18n('[charts]');\n const svgRef = useRef<SVGSVGElement>(null);\n const applicationRef = useRef<ApplicationRef>(null);\n const plotClickedRef = useRef(false);\n const [isPlotFocused, setPlotFocused] = useState(false);\n const [isApplicationFocused, setApplicationFocused] = useState(false);\n\n const internalDescriptionId = useUniqueId('awsui-chart-plot__description');\n const ariaDescriptionId = [ariaDescription && internalDescriptionId, ariaDescribedby].filter(Boolean).join(' ');\n\n useImperativeHandle(ref, () => ({\n svg: svgRef.current!,\n focusPlot: () => svgRef.current!.focus(),\n focusApplication: () => applicationRef.current!.focus(),\n }));\n\n const onPlotMouseDown = () => {\n // Record the click was made for the application focus handler.\n plotClickedRef.current = true;\n };\n const onPlotFocus = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current && !plotClickedRef.current) {\n setPlotFocused(true);\n }\n // The click should focus the underling application bypassing the svg.\n else if (plotClickedRef.current) {\n applicationRef.current!.focus();\n }\n };\n const onPlotClick = (event: React.MouseEvent<SVGSVGElement, MouseEvent>) => {\n onClick && onClick(event);\n };\n const onPlotBlur = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current) {\n setPlotFocused(false);\n }\n };\n // Once one of the expected keys is pressed the focus is delegated to the application controller.\n const onPlotKeyDown = (event: React.KeyboardEvent) => {\n if (isPlotFocused) {\n // Delegate the focus to the application if one of the expected keys was pressed.\n const codes = [KeyCode.space, KeyCode.enter, KeyCode.up, KeyCode.left, KeyCode.right, KeyCode.down];\n if (codes.indexOf(event.keyCode) !== -1) {\n applicationRef.current!.focus();\n }\n }\n };\n\n const onApplicationFocus = (event: React.FocusEvent<SVGGElement>) => {\n onFocus && onFocus(event, plotClickedRef.current ? 'mouse' : 'keyboard');\n // \"Release\" the click reference to not affect the next call of this handler.\n plotClickedRef.current = false;\n setApplicationFocused(true);\n };\n const onApplicationBlur = (event: React.FocusEvent<SVGGElement>) => {\n onBlur && onBlur(event);\n setApplicationFocused(false);\n };\n const onApplicationKeyDown = onKeyDown;\n\n const plotFocusable = !isApplicationFocused;\n const plotTabIndex = plotFocusable ? 0 : -1;\n const plotAria = !isApplicationFocused\n ? {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescriptionId,\n 'aria-roledescription': i18n('i18nStrings.chartAriaRoleDescription', ariaRoleDescription),\n }\n : {};\n\n return (\n <>\n <svg\n {...restProps}\n focusable={plotFocusable}\n tabIndex={plotTabIndex}\n role=\"application\"\n aria-hidden=\"false\"\n {...plotAria}\n ref={svgRef}\n style={{\n width,\n height,\n marginTop: offsetTop,\n marginBottom: offsetBottom,\n marginLeft: offsetLeft,\n marginRight: offsetRight,\n }}\n className={clsx(styles.root, {\n [styles.clickable]: isClickable,\n [styles.precise]: isPrecise,\n })}\n onMouseDown={onPlotMouseDown}\n onClick={onPlotClick}\n onFocus={onPlotFocus}\n onBlur={onPlotBlur}\n onKeyDown={onPlotKeyDown}\n >\n <FocusOutline elementRef={svgRef} elementKey={isPlotFocused} offset={focusOffset} />\n\n <g transform={transform}>\n <ApplicationController\n activeElementKey={activeElementKey || null}\n activeElementRef={activeElementRef}\n ref={applicationRef}\n onFocus={onApplicationFocus}\n onBlur={onApplicationBlur}\n onKeyDown={onApplicationKeyDown}\n />\n\n {/* Only show description when plot is focusable to avoid repetition in Safari and Firefox */}\n {ariaDescription && plotFocusable && (\n <desc aria-hidden=\"true\" id={internalDescriptionId}>\n {ariaDescription}\n </desc>\n )}\n\n {children}\n\n <FocusOutline\n elementRef={activeElementRef}\n elementKey={isApplicationFocused && activeElementKey}\n offset={activeElementFocusOffset}\n />\n </g>\n </svg>\n\n <LiveRegion>{ariaLiveRegion}</LiveRegion>\n </>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/chart-plot/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,qBAAyC,MAAM,0BAA0B,CAAC;AACjF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,yBAAyB,GAAG,CAAC,CAAC;AACpC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAqCvC;;;;;;;;;EASE;AACF,eAAe,UAAU,CAAC,SAAS,CAAC,CAAC;AAErC,SAAS,SAAS,CAChB,EA0BiB,EACjB,GAA4B;QA3B5B,EACE,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,WAAW,GAAG,yBAAyB,EACvC,wBAAwB,GAAG,4BAA4B,OAExC,EADZ,SAAS,cAzBd,gXA0BC,CAD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B,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,oBAAoB,GAC/B;gBAGD,eAAe,IAAI,aAAa,IAAI,CACnC,6CAAkB,MAAM,EAAC,EAAE,EAAE,qBAAqB,IAC/C,eAAe,CACX,CACR;gBAEA,QAAQ;gBAET,oBAAC,YAAY,IACX,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,oBAAoB,IAAI,gBAAgB,EACpD,MAAM,EAAE,wBAAwB,GAChC,CACA,CACA;QAEN,oBAAC,UAAU,QAAE,cAAc,CAAc,CACxC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\nimport { useUniqueId } from '../../hooks/use-unique-id';\n\nimport { KeyCode } from '../../keycode';\nimport LiveRegion from '../live-region/index';\nimport ApplicationController, { ApplicationRef } from './application-controller';\nimport FocusOutline from './focus-outline';\nimport { Offset } from '../interfaces';\nimport { useInternalI18n } from '../../../i18n/context';\n\nconst DEFAULT_PLOT_FOCUS_OFFSET = 3;\nconst DEFAULT_ELEMENT_FOCUS_OFFSET = 3;\n\nexport interface ChartPlotRef {\n svg: SVGSVGElement;\n focusPlot(): void;\n focusApplication(): void;\n}\n\nexport interface ChartPlotProps {\n width: number | string;\n height: number | string;\n transform?: string;\n offsetTop?: number;\n offsetBottom?: number;\n offsetLeft?: number;\n offsetRight?: number;\n focusOffset?: number;\n ariaLabel?: string;\n ariaLabelledby?: string;\n ariaDescription?: string;\n ariaDescribedby?: string;\n ariaRoleDescription?: string;\n activeElementKey?: null | string | number | boolean;\n activeElementRef?: React.RefObject<SVGGElement>;\n activeElementFocusOffset?: Offset;\n ariaLiveRegion?: string;\n isClickable?: boolean;\n isPrecise?: boolean;\n onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseMove?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onMouseOut?: (event: React.MouseEvent<SVGSVGElement>) => void;\n onFocus?: (event: React.FocusEvent<SVGGElement>, trigger: 'mouse' | 'keyboard') => void;\n onBlur?: (event: React.FocusEvent<SVGGElement>) => void;\n onKeyDown?: (event: React.KeyboardEvent<SVGGElement>) => void;\n children: React.ReactNode;\n}\n\n/**\n An extension for the SVG to be used for charts. It includes a controller element to\n handle the focus and keyboard interactions in a way that is supported by screen readers.\n\n The application mimics the aria-activedescendant behavior which is unsupported by Safari. The\n activeElementRef is the pointer to the secondary-focus element and activeElementKey denotes when\n the focus transition was made.\n\n Alternatively, ariaLiveRegion can be used to make announcements.\n*/\nexport default forwardRef(ChartPlot);\n\nfunction ChartPlot(\n {\n width,\n height,\n transform,\n offsetTop,\n offsetBottom,\n offsetLeft,\n offsetRight,\n ariaLabel,\n ariaLabelledby,\n ariaRoleDescription,\n ariaDescription,\n ariaDescribedby,\n activeElementKey,\n activeElementRef,\n ariaLiveRegion,\n isClickable,\n isPrecise,\n children,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n focusOffset = DEFAULT_PLOT_FOCUS_OFFSET,\n activeElementFocusOffset = DEFAULT_ELEMENT_FOCUS_OFFSET,\n ...restProps\n }: ChartPlotProps,\n ref: React.Ref<ChartPlotRef>\n) {\n const i18n = useInternalI18n('[charts]');\n const svgRef = useRef<SVGSVGElement>(null);\n const applicationRef = useRef<ApplicationRef>(null);\n const plotClickedRef = useRef(false);\n const [isPlotFocused, setPlotFocused] = useState(false);\n const [isApplicationFocused, setApplicationFocused] = useState(false);\n\n const internalDescriptionId = useUniqueId('awsui-chart-plot__description');\n const ariaDescriptionId = [ariaDescription && internalDescriptionId, ariaDescribedby].filter(Boolean).join(' ');\n\n useImperativeHandle(ref, () => ({\n svg: svgRef.current!,\n focusPlot: () => svgRef.current!.focus(),\n focusApplication: () => applicationRef.current!.focus(),\n }));\n\n const onPlotMouseDown = () => {\n // Record the click was made for the application focus handler.\n plotClickedRef.current = true;\n };\n const onPlotFocus = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current && !plotClickedRef.current) {\n setPlotFocused(true);\n }\n // The click should focus the underling application bypassing the svg.\n else if (plotClickedRef.current) {\n applicationRef.current!.focus();\n }\n };\n const onPlotClick = (event: React.MouseEvent<SVGSVGElement, MouseEvent>) => {\n onClick && onClick(event);\n };\n const onPlotBlur = (event: React.FocusEvent<SVGSVGElement>) => {\n if (event.target === svgRef.current) {\n setPlotFocused(false);\n }\n };\n // Once one of the expected keys is pressed the focus is delegated to the application controller.\n const onPlotKeyDown = (event: React.KeyboardEvent) => {\n if (isPlotFocused) {\n // Delegate the focus to the application if one of the expected keys was pressed.\n const codes = [KeyCode.space, KeyCode.enter, KeyCode.up, KeyCode.left, KeyCode.right, KeyCode.down];\n if (codes.indexOf(event.keyCode) !== -1) {\n applicationRef.current!.focus();\n }\n }\n };\n\n const onApplicationFocus = (event: React.FocusEvent<SVGGElement>) => {\n onFocus && onFocus(event, plotClickedRef.current ? 'mouse' : 'keyboard');\n // \"Release\" the click reference to not affect the next call of this handler.\n plotClickedRef.current = false;\n setApplicationFocused(true);\n };\n const onApplicationBlur = (event: React.FocusEvent<SVGGElement>) => {\n onBlur && onBlur(event);\n setApplicationFocused(false);\n };\n const onApplicationKeyDown = onKeyDown;\n\n const plotFocusable = !isApplicationFocused;\n const plotTabIndex = plotFocusable ? 0 : -1;\n const plotAria = !isApplicationFocused\n ? {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescriptionId,\n 'aria-roledescription': i18n('i18nStrings.chartAriaRoleDescription', ariaRoleDescription),\n }\n : {};\n\n return (\n <>\n <svg\n {...restProps}\n focusable={plotFocusable}\n tabIndex={plotTabIndex}\n role=\"application\"\n aria-hidden=\"false\"\n {...plotAria}\n ref={svgRef}\n style={{\n width,\n height,\n marginTop: offsetTop,\n marginBottom: offsetBottom,\n marginLeft: offsetLeft,\n marginRight: offsetRight,\n }}\n className={clsx(styles.root, {\n [styles.clickable]: isClickable,\n [styles.precise]: isPrecise,\n })}\n onMouseDown={onPlotMouseDown}\n onClick={onPlotClick}\n onFocus={onPlotFocus}\n onBlur={onPlotBlur}\n onKeyDown={onPlotKeyDown}\n >\n <FocusOutline elementRef={svgRef} elementKey={isPlotFocused} offset={focusOffset} />\n\n <g transform={transform}>\n <ApplicationController\n activeElementKey={activeElementKey || null}\n activeElementRef={activeElementRef}\n ref={applicationRef}\n onFocus={onApplicationFocus}\n onBlur={onApplicationBlur}\n onKeyDown={onApplicationKeyDown}\n />\n\n {/* Only show description when plot is focusable to avoid repetition in Safari and Firefox */}\n {ariaDescription && plotFocusable && (\n <desc aria-hidden=\"true\" id={internalDescriptionId}>\n {ariaDescription}\n </desc>\n )}\n\n {children}\n\n <FocusOutline\n elementRef={activeElementRef}\n elementKey={isApplicationFocused && activeElementKey}\n offset={activeElementFocusOffset}\n />\n </g>\n </svg>\n\n <LiveRegion>{ariaLiveRegion}</LiveRegion>\n </>\n );\n}\n"]}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { BaseComponentProps } from '../../base-component';
|
|
3
|
-
import { ChartDetailPair } from '../../../pie-chart/interfaces';
|
|
4
3
|
import { ChartSeriesMarkerType } from '../chart-series-marker';
|
|
4
|
+
interface ChartDetailPair {
|
|
5
|
+
key: ReactNode;
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
}
|
|
5
8
|
export interface ChartSeriesDetailItem extends ChartDetailPair {
|
|
6
9
|
markerType?: ChartSeriesMarkerType;
|
|
7
10
|
color?: string;
|
|
8
11
|
isDimmed?: boolean;
|
|
12
|
+
subItems?: ReadonlyArray<ChartDetailPair>;
|
|
13
|
+
expandableId?: string;
|
|
9
14
|
}
|
|
15
|
+
export type ExpandedSeries = Set<string>;
|
|
10
16
|
export interface ChartSeriesDetailsProps extends BaseComponentProps {
|
|
11
17
|
details: ReadonlyArray<ChartSeriesDetailItem>;
|
|
18
|
+
expandedSeries?: ExpandedSeries;
|
|
19
|
+
setPopoverText?: (s: string) => void;
|
|
20
|
+
setExpandedState?: (seriesTitle: string, state: boolean) => void;
|
|
12
21
|
}
|
|
13
|
-
declare const _default: React.MemoExoticComponent<
|
|
22
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ChartSeriesDetailsProps & React.RefAttributes<HTMLDivElement>>>;
|
|
14
23
|
export default _default;
|
|
15
|
-
declare function ChartSeriesDetails({ details, ...restProps }: ChartSeriesDetailsProps): JSX.Element;
|
|
16
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAoB,SAAS,EAAqB,MAAM,OAAO,CAAC;AAG9E,OAAO,EAAE,kBAAkB,EAAgB,MAAM,sBAAsB,CAAC;AACxE,OAA0B,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAMlF,UAAU,eAAe;IACvB,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,SAAS,CAAC;CAClB;AAUD,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AAEzC,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,OAAO,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAClE;;AAED,wBAAoD"}
|
|
@@ -1,25 +1,61 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import React, { memo } from 'react';
|
|
4
|
+
import React, { forwardRef, memo, useEffect, useRef } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { getBaseProps } from '../../base-component';
|
|
7
|
-
import InternalBox from '../../../box/internal';
|
|
8
7
|
import ChartSeriesMarker from '../chart-series-marker';
|
|
9
8
|
import styles from './styles.css.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
import InternalExpandableSection from '../../../expandable-section/internal';
|
|
10
|
+
import getSeriesDetailsText from './series-details-text';
|
|
11
|
+
import { useMergeRefs } from '../../hooks/use-merge-refs';
|
|
12
|
+
export default memo(forwardRef(ChartSeriesDetails));
|
|
13
|
+
function ChartSeriesDetails(_a, ref) {
|
|
14
|
+
var { details, expandedSeries, setPopoverText, setExpandedState } = _a, restProps = __rest(_a, ["details", "expandedSeries", "setPopoverText", "setExpandedState"]);
|
|
13
15
|
const baseProps = getBaseProps(restProps);
|
|
14
16
|
const className = clsx(baseProps.className, styles.root);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
const detailsRef = useRef(null);
|
|
18
|
+
const mergedRef = useMergeRefs(ref, detailsRef);
|
|
19
|
+
// Once the component has rendered, pass its content in plain text
|
|
20
|
+
// so that it can be used by screen readers.
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (setPopoverText) {
|
|
23
|
+
if (detailsRef.current) {
|
|
24
|
+
setPopoverText(getSeriesDetailsText(detailsRef.current));
|
|
25
|
+
}
|
|
26
|
+
return () => {
|
|
27
|
+
setPopoverText('');
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}, [details, setPopoverText]);
|
|
31
|
+
const isExpanded = (seriesTitle) => !!expandedSeries && expandedSeries.has(seriesTitle);
|
|
32
|
+
return (React.createElement("div", Object.assign({}, baseProps, { className: className, ref: mergedRef }),
|
|
33
|
+
React.createElement("ul", { className: styles.list }, details.map(({ key, value, markerType, color, isDimmed, subItems, expandableId }, index) => (React.createElement("li", { key: index, className: clsx({
|
|
17
34
|
[styles.dimmed]: isDimmed,
|
|
18
35
|
[styles['list-item']]: true,
|
|
19
|
-
|
|
36
|
+
[styles['with-sub-items']]: subItems === null || subItems === void 0 ? void 0 : subItems.length,
|
|
37
|
+
[styles.expandable]: !!expandableId,
|
|
38
|
+
}) }, (subItems === null || subItems === void 0 ? void 0 : subItems.length) && !!expandableId ? (React.createElement(ExpandableSeries, { itemKey: key, value: value, markerType: markerType, color: color, subItems: subItems, expanded: isExpanded(expandableId), setExpandedState: state => setExpandedState && setExpandedState(expandableId, state) })) : (React.createElement(NonExpandableSeries, { itemKey: key, value: value, markerType: markerType, color: color, subItems: subItems }))))))));
|
|
39
|
+
}
|
|
40
|
+
function SubItems({ items, expandable, expanded, }) {
|
|
41
|
+
return (React.createElement("ul", { className: clsx(styles['sub-items'], expandable && styles.expandable) }, items.map(({ key, value }, index) => (React.createElement("li", { key: index, className: clsx(styles['inner-list-item'], styles['key-value-pair'], (expanded || !expandable) && styles.announced) },
|
|
42
|
+
React.createElement("span", { className: styles.key }, key),
|
|
43
|
+
React.createElement("span", { className: styles.value }, value))))));
|
|
44
|
+
}
|
|
45
|
+
function ExpandableSeries({ itemKey, value, subItems, markerType, color, expanded, setExpandedState, }) {
|
|
46
|
+
return (React.createElement("div", { className: styles['expandable-section'] },
|
|
47
|
+
markerType && color && React.createElement(ChartSeriesMarker, { type: markerType, color: color }),
|
|
48
|
+
React.createElement("div", { className: styles['full-width'] },
|
|
49
|
+
React.createElement(InternalExpandableSection, { variant: "compact", headerText: itemKey, headerActions: React.createElement("span", { className: clsx(styles.value, styles.expandable) }, value), expanded: expanded, onChange: ({ detail }) => setExpandedState(detail.expanded) },
|
|
50
|
+
React.createElement(SubItems, { items: subItems, expandable: true, expanded: expanded })))));
|
|
51
|
+
}
|
|
52
|
+
function NonExpandableSeries({ itemKey, value, subItems, markerType, color }) {
|
|
53
|
+
return (React.createElement(React.Fragment, null,
|
|
54
|
+
React.createElement("div", { className: clsx(styles['key-value-pair'], styles.announced) },
|
|
20
55
|
React.createElement("div", { className: styles.key },
|
|
21
56
|
markerType && color && React.createElement(ChartSeriesMarker, { type: markerType, color: color }),
|
|
22
|
-
React.createElement("span", null,
|
|
23
|
-
React.createElement(
|
|
57
|
+
React.createElement("span", null, itemKey)),
|
|
58
|
+
React.createElement("span", { className: styles.value }, value)),
|
|
59
|
+
subItems && React.createElement(SubItems, { items: subItems })));
|
|
24
60
|
}
|
|
25
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAa,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EA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AAC;gBAE3D,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,CACzC,CACxB,CACF,CACP,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAiB;IACzF,OAAO,CACL;QACE,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;YAC9D,6BAAK,SAAS,EAAE,MAAM,CAAC,GAAG;gBACvB,UAAU,IAAI,KAAK,IAAI,oBAAC,iBAAiB,IAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAI;gBAC7E,kCAAO,OAAO,CAAQ,CAClB;YACN,8BAAM,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,KAAK,CAAQ,CACzC;QACL,QAAQ,IAAI,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,GAAI,CACzC,CACJ,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { forwardRef, memo, ReactNode, useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { BaseComponentProps, getBaseProps } from '../../base-component';\nimport ChartSeriesMarker, { ChartSeriesMarkerType } from '../chart-series-marker';\nimport styles from './styles.css.js';\nimport InternalExpandableSection from '../../../expandable-section/internal';\nimport getSeriesDetailsText from './series-details-text';\nimport { useMergeRefs } from '../../hooks/use-merge-refs';\n\ninterface ChartDetailPair {\n key: ReactNode;\n value: ReactNode;\n}\n\ninterface ListItemProps {\n itemKey: ReactNode;\n value: ReactNode;\n subItems?: ReadonlyArray<ChartDetailPair>;\n markerType?: ChartSeriesMarkerType;\n color?: string;\n}\n\nexport interface ChartSeriesDetailItem extends ChartDetailPair {\n markerType?: ChartSeriesMarkerType;\n color?: string;\n isDimmed?: boolean;\n subItems?: ReadonlyArray<ChartDetailPair>;\n expandableId?: string;\n}\nexport type ExpandedSeries = Set<string>;\n\nexport interface ChartSeriesDetailsProps extends BaseComponentProps {\n details: ReadonlyArray<ChartSeriesDetailItem>;\n expandedSeries?: ExpandedSeries;\n setPopoverText?: (s: string) => void;\n setExpandedState?: (seriesTitle: string, state: boolean) => void;\n}\n\nexport default memo(forwardRef(ChartSeriesDetails));\n\nfunction ChartSeriesDetails(\n { details, expandedSeries, setPopoverText, setExpandedState, ...restProps }: ChartSeriesDetailsProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const baseProps = getBaseProps(restProps);\n const className = clsx(baseProps.className, styles.root);\n const detailsRef = useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergeRefs(ref, detailsRef);\n\n // Once the component has rendered, pass its content in plain text\n // so that it can be used by screen readers.\n useEffect(() => {\n if (setPopoverText) {\n if (detailsRef.current) {\n setPopoverText(getSeriesDetailsText(detailsRef.current));\n }\n return () => {\n setPopoverText('');\n };\n }\n }, [details, setPopoverText]);\n\n const isExpanded = (seriesTitle: string) => !!expandedSeries && expandedSeries.has(seriesTitle);\n\n return (\n <div {...baseProps} className={className} ref={mergedRef}>\n <ul className={styles.list}>\n {details.map(({ key, value, markerType, color, isDimmed, subItems, expandableId }, index) => (\n <li\n key={index}\n className={clsx({\n [styles.dimmed]: isDimmed,\n [styles['list-item']]: true,\n [styles['with-sub-items']]: subItems?.length,\n [styles.expandable]: !!expandableId,\n })}\n >\n {subItems?.length && !!expandableId ? (\n <ExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n expanded={isExpanded(expandableId)}\n setExpandedState={state => setExpandedState && setExpandedState(expandableId, state)}\n />\n ) : (\n <NonExpandableSeries\n itemKey={key}\n value={value}\n markerType={markerType}\n color={color}\n subItems={subItems}\n />\n )}\n </li>\n ))}\n </ul>\n </div>\n );\n}\n\nfunction SubItems({\n items,\n expandable,\n expanded,\n}: {\n items: ReadonlyArray<ChartDetailPair>;\n expandable?: boolean;\n expanded?: boolean;\n}) {\n return (\n <ul className={clsx(styles['sub-items'], expandable && styles.expandable)}>\n {items.map(({ key, value }, index) => (\n <li\n key={index}\n className={clsx(\n styles['inner-list-item'],\n styles['key-value-pair'],\n (expanded || !expandable) && styles.announced\n )}\n >\n <span className={styles.key}>{key}</span>\n <span className={styles.value}>{value}</span>\n </li>\n ))}\n </ul>\n );\n}\n\nfunction ExpandableSeries({\n itemKey,\n value,\n subItems,\n markerType,\n color,\n expanded,\n setExpandedState,\n}: ListItemProps &\n Required<Pick<ListItemProps, 'subItems'>> & {\n expanded: boolean;\n setExpandedState: (state: boolean) => void;\n }) {\n return (\n <div className={styles['expandable-section']}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <div className={styles['full-width']}>\n <InternalExpandableSection\n variant=\"compact\"\n headerText={itemKey}\n headerActions={<span className={clsx(styles.value, styles.expandable)}>{value}</span>}\n expanded={expanded}\n onChange={({ detail }) => setExpandedState(detail.expanded)}\n >\n <SubItems items={subItems} expandable={true} expanded={expanded} />\n </InternalExpandableSection>\n </div>\n </div>\n );\n}\n\nfunction NonExpandableSeries({ itemKey, value, subItems, markerType, color }: ListItemProps) {\n return (\n <>\n <div className={clsx(styles['key-value-pair'], styles.announced)}>\n <div className={styles.key}>\n {markerType && color && <ChartSeriesMarker type={markerType} color={color} />}\n <span>{itemKey}</span>\n </div>\n <span className={styles.value}>{value}</span>\n </div>\n {subItems && <SubItems items={subItems} />}\n </>\n );\n}\n"]}
|
package/lib/internal/template/internal/components/chart-series-details/series-details-text.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-details-text.d.ts","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/series-details-text.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,OAAO,EAAE,WAAW,UAgBhE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import styles from './styles.css.js';
|
|
4
|
+
import expandabeleSectionHeaderStyles from '../../../expandable-section/styles.css.js';
|
|
5
|
+
export default function getSeriesDetailsText(element) {
|
|
6
|
+
const elementsWithText = Array.from(element.querySelectorAll(`.${styles.announced},.${expandabeleSectionHeaderStyles.header}`));
|
|
7
|
+
return elementsWithText
|
|
8
|
+
.map(element => {
|
|
9
|
+
var _a;
|
|
10
|
+
if (element instanceof HTMLElement) {
|
|
11
|
+
return (_a = element.innerText) === null || _a === void 0 ? void 0 : _a.split('\n').map(s => s.trim()).join(' ').trim();
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
.filter(Boolean)
|
|
15
|
+
.join(', ');
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=series-details-text.js.map
|
package/lib/internal/template/internal/components/chart-series-details/series-details-text.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-details-text.js","sourceRoot":"lib/default/","sources":["internal/components/chart-series-details/series-details-text.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,8BAA8B,MAAM,2CAA2C,CAAC;AAEvF,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,OAAoB;IAC/D,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CACjC,OAAO,CAAC,gBAAgB,CAAC,IAAI,MAAM,CAAC,SAAS,KAAK,8BAA8B,CAAC,MAAM,EAAE,CAAC,CAC3F,CAAC;IACF,OAAO,gBAAgB;SACpB,GAAG,CAAC,OAAO,CAAC,EAAE;;QACb,IAAI,OAAO,YAAY,WAAW,EAAE;YAClC,OAAO,MAAA,OAAO,CAAC,SAAS,0CACpB,KAAK,CAAC,IAAI,EACX,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EACjB,IAAI,CAAC,GAAG,EACR,IAAI,EAAE,CAAC;SACX;IACH,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport styles from './styles.css.js';\nimport expandabeleSectionHeaderStyles from '../../../expandable-section/styles.css.js';\n\nexport default function getSeriesDetailsText(element: HTMLElement) {\n const elementsWithText = Array.from(\n element.querySelectorAll(`.${styles.announced},.${expandabeleSectionHeaderStyles.header}`)\n );\n return elementsWithText\n .map(element => {\n if (element instanceof HTMLElement) {\n return element.innerText\n ?.split('\\n')\n .map(s => s.trim())\n .join(' ')\n .trim();\n }\n })\n .filter(Boolean)\n .join(', ');\n}\n"]}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"dimmed": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
4
|
+
"dimmed": "awsui_dimmed_10ipo_7wfnc_93",
|
|
5
|
+
"marker": "awsui_marker_10ipo_7wfnc_122",
|
|
6
|
+
"marker--line": "awsui_marker--line_10ipo_7wfnc_140",
|
|
7
|
+
"marker--rectangle": "awsui_marker--rectangle_10ipo_7wfnc_144",
|
|
8
|
+
"marker--hollow-rectangle": "awsui_marker--hollow-rectangle_10ipo_7wfnc_148",
|
|
9
|
+
"marker--dashed": "awsui_marker--dashed_10ipo_7wfnc_160",
|
|
10
|
+
"root": "awsui_root_10ipo_7wfnc_180",
|
|
11
|
+
"value": "awsui_value_10ipo_7wfnc_193",
|
|
12
|
+
"expandable": "awsui_expandable_10ipo_7wfnc_197",
|
|
13
|
+
"list-item": "awsui_list-item_10ipo_7wfnc_201",
|
|
14
|
+
"inner-list-item": "awsui_inner-list-item_10ipo_7wfnc_202",
|
|
15
|
+
"key-value-pair": "awsui_key-value-pair_10ipo_7wfnc_207",
|
|
16
|
+
"expandable-section": "awsui_expandable-section_10ipo_7wfnc_208",
|
|
17
|
+
"key": "awsui_key_10ipo_7wfnc_207",
|
|
18
|
+
"sub-items": "awsui_sub-items_10ipo_7wfnc_221",
|
|
19
|
+
"list": "awsui_list_10ipo_7wfnc_201",
|
|
20
|
+
"with-sub-items": "awsui_with-sub-items_10ipo_7wfnc_245",
|
|
21
|
+
"full-width": "awsui_full-width_10ipo_7wfnc_250",
|
|
22
|
+
"announced": "awsui_announced_10ipo_7wfnc_254"
|
|
9
23
|
};
|
|
10
24
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_dimmed_10ipo_7wfnc_93:not(#\9) {
|
|
94
94
|
transition: opacity var(--motion-duration-transition-quick-j01tkg, 90ms) var(--motion-easing-transition-quick-9ktw66, linear);
|
|
95
95
|
transition-delay: var(--motion-duration-transition-quick-j01tkg, 90ms);
|
|
96
96
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
@@ -131,12 +131,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
131
131
|
-moz-osx-font-smoothing: auto;
|
|
132
132
|
}
|
|
133
133
|
@media (prefers-reduced-motion: reduce) {
|
|
134
|
-
.
|
|
134
|
+
.awsui_dimmed_10ipo_7wfnc_93:not(#\9) {
|
|
135
135
|
animation: none;
|
|
136
136
|
transition: none;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
.awsui-motion-disabled .
|
|
139
|
+
.awsui-motion-disabled .awsui_dimmed_10ipo_7wfnc_93:not(#\9), .awsui-mode-entering .awsui_dimmed_10ipo_7wfnc_93:not(#\9) {
|
|
140
140
|
animation: none;
|
|
141
141
|
transition: none;
|
|
142
142
|
}
|
|
@@ -145,7 +145,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
145
145
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
146
146
|
SPDX-License-Identifier: Apache-2.0
|
|
147
147
|
*/
|
|
148
|
-
.
|
|
148
|
+
.awsui_marker_10ipo_7wfnc_122:not(#\9) {
|
|
149
149
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
@@ -182,27 +182,153 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
font-family: var(--font-family-base-0nmw8v, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
183
183
|
-webkit-font-smoothing: auto;
|
|
184
184
|
-moz-osx-font-smoothing: auto;
|
|
185
|
+
margin-right: var(--space-xxs-9rrxti, 4px);
|
|
186
|
+
margin-top: var(--space-xxs-9rrxti, 4px);
|
|
187
|
+
border-radius: 2px;
|
|
188
|
+
width: 14px;
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
cursor: inherit;
|
|
191
|
+
}
|
|
192
|
+
.awsui_marker--line_10ipo_7wfnc_140:not(#\9) {
|
|
193
|
+
margin-top: 9px;
|
|
194
|
+
height: 4px;
|
|
195
|
+
}
|
|
196
|
+
.awsui_marker--rectangle_10ipo_7wfnc_144:not(#\9) {
|
|
197
|
+
height: 14px;
|
|
198
|
+
border-radius: 2px;
|
|
199
|
+
}
|
|
200
|
+
.awsui_marker--hollow-rectangle_10ipo_7wfnc_148:not(#\9) {
|
|
201
|
+
height: 14px;
|
|
202
|
+
border-radius: 2px;
|
|
203
|
+
}
|
|
204
|
+
.awsui_marker--hollow-rectangle_10ipo_7wfnc_148:not(#\9)::after {
|
|
205
|
+
content: "";
|
|
206
|
+
display: block;
|
|
207
|
+
margin: 2px;
|
|
208
|
+
height: 10px;
|
|
209
|
+
background-color: var(--color-background-container-content-il2pe5, #ffffff);
|
|
210
|
+
opacity: 0.5;
|
|
211
|
+
}
|
|
212
|
+
.awsui_marker--dashed_10ipo_7wfnc_160:not(#\9) {
|
|
213
|
+
height: 4px;
|
|
214
|
+
width: 6px;
|
|
215
|
+
margin-top: 9px;
|
|
216
|
+
margin-right: 12px;
|
|
217
|
+
}
|
|
218
|
+
.awsui_marker--dashed_10ipo_7wfnc_160:not(#\9)::after {
|
|
219
|
+
content: "";
|
|
220
|
+
display: block;
|
|
221
|
+
width: 6px;
|
|
222
|
+
height: 4px;
|
|
223
|
+
margin-left: 8px;
|
|
224
|
+
border-radius: 2px;
|
|
225
|
+
background-color: inherit;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
230
|
+
SPDX-License-Identifier: Apache-2.0
|
|
231
|
+
*/
|
|
232
|
+
.awsui_root_10ipo_7wfnc_180:not(#\9) {
|
|
233
|
+
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
234
|
+
border-collapse: separate;
|
|
235
|
+
border-spacing: 0;
|
|
236
|
+
caption-side: top;
|
|
237
|
+
cursor: auto;
|
|
238
|
+
direction: ltr;
|
|
239
|
+
empty-cells: show;
|
|
240
|
+
font-family: serif;
|
|
241
|
+
font-size: medium;
|
|
242
|
+
font-style: normal;
|
|
243
|
+
font-variant: normal;
|
|
244
|
+
font-weight: normal;
|
|
245
|
+
font-stretch: normal;
|
|
246
|
+
line-height: normal;
|
|
247
|
+
-webkit-hyphens: none;
|
|
248
|
+
hyphens: none;
|
|
249
|
+
letter-spacing: normal;
|
|
250
|
+
list-style: disc outside none;
|
|
251
|
+
tab-size: 8;
|
|
252
|
+
text-align: left;
|
|
253
|
+
text-align-last: auto;
|
|
254
|
+
text-indent: 0;
|
|
255
|
+
text-shadow: none;
|
|
256
|
+
text-transform: none;
|
|
257
|
+
visibility: visible;
|
|
258
|
+
white-space: normal;
|
|
259
|
+
widows: 2;
|
|
260
|
+
word-spacing: normal;
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
font-size: var(--font-size-body-m-pa3mqb, 14px);
|
|
263
|
+
line-height: var(--line-height-body-m-2zx78l, 22px);
|
|
264
|
+
color: var(--color-text-body-default-ki9w9u, #16191f);
|
|
265
|
+
font-weight: 400;
|
|
266
|
+
font-family: var(--font-family-base-0nmw8v, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
267
|
+
-webkit-font-smoothing: auto;
|
|
268
|
+
-moz-osx-font-smoothing: auto;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.awsui_value_10ipo_7wfnc_193:not(#\9) {
|
|
272
|
+
text-align: right;
|
|
273
|
+
margin-inline-start: var(--space-xxl-pd3205, 32px);
|
|
274
|
+
}
|
|
275
|
+
.awsui_value_10ipo_7wfnc_193.awsui_expandable_10ipo_7wfnc_197:not(#\9) {
|
|
276
|
+
font-weight: var(--font-weight-heading-s-mkhu7c, 700);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.awsui_list-item_10ipo_7wfnc_201:not(#\9),
|
|
280
|
+
.awsui_inner-list-item_10ipo_7wfnc_202:not(#\9) {
|
|
281
|
+
list-style: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.awsui_inner-list-item_10ipo_7wfnc_202:not(#\9),
|
|
285
|
+
.awsui_list-item_10ipo_7wfnc_201 > .awsui_key-value-pair_10ipo_7wfnc_207:not(#\9),
|
|
286
|
+
.awsui_list-item_10ipo_7wfnc_201 > .awsui_expandable-section_10ipo_7wfnc_208:not(#\9) {
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: row;
|
|
289
|
+
justify-content: space-between;
|
|
290
|
+
width: 100%;
|
|
291
|
+
}
|
|
292
|
+
.awsui_inner-list-item_10ipo_7wfnc_202 > .awsui_key_10ipo_7wfnc_207:not(#\9),
|
|
293
|
+
.awsui_list-item_10ipo_7wfnc_201 > .awsui_key-value-pair_10ipo_7wfnc_207 > .awsui_key_10ipo_7wfnc_207:not(#\9),
|
|
294
|
+
.awsui_list-item_10ipo_7wfnc_201 > .awsui_expandable-section_10ipo_7wfnc_208 > .awsui_key_10ipo_7wfnc_207:not(#\9) {
|
|
295
|
+
display: inline-flex;
|
|
296
|
+
color: var(--color-text-group-label-7crvc9, #545b64);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.awsui_sub-items_10ipo_7wfnc_221:not(#\9):not(.awsui_expandable_10ipo_7wfnc_197) {
|
|
300
|
+
padding-inline-start: calc(14px + var(--space-xxs-9rrxti, 4px));
|
|
301
|
+
}
|
|
302
|
+
.awsui_sub-items_10ipo_7wfnc_221.awsui_expandable_10ipo_7wfnc_197:not(#\9) {
|
|
303
|
+
padding-inline-start: 0;
|
|
304
|
+
}
|
|
305
|
+
.awsui_sub-items_10ipo_7wfnc_221.awsui_expandable_10ipo_7wfnc_197 > .awsui_inner-list-item_10ipo_7wfnc_202 > .awsui_value_10ipo_7wfnc_193:not(#\9) {
|
|
306
|
+
white-space: nowrap;
|
|
185
307
|
}
|
|
186
308
|
|
|
187
|
-
.
|
|
309
|
+
.awsui_list_10ipo_7wfnc_201:not(#\9) {
|
|
188
310
|
display: flex;
|
|
189
311
|
margin: 0;
|
|
190
312
|
padding: 0;
|
|
191
313
|
list-style: none;
|
|
192
314
|
flex-direction: column;
|
|
193
315
|
}
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
|
|
316
|
+
.awsui_list_10ipo_7wfnc_201 > .awsui_list-item_10ipo_7wfnc_201 > .awsui_key-value-pair_10ipo_7wfnc_207 > .awsui_key_10ipo_7wfnc_207:not(#\9) {
|
|
317
|
+
align-items: flex-start;
|
|
318
|
+
}
|
|
319
|
+
.awsui_list_10ipo_7wfnc_201 > .awsui_list-item_10ipo_7wfnc_201.awsui_dimmed_10ipo_7wfnc_93:not(#\9) {
|
|
320
|
+
opacity: 0.35;
|
|
197
321
|
}
|
|
198
322
|
|
|
199
|
-
.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
color: var(--color-text-group-label-7crvc9, #545b64);
|
|
203
|
-
margin-right: var(--space-xxl-pd3205, 32px);
|
|
323
|
+
.awsui_list-item_10ipo_7wfnc_201.awsui_with-sub-items_10ipo_7wfnc_245:not(#\9):not(.awsui_expandable_10ipo_7wfnc_197) > .awsui_key-value-pair_10ipo_7wfnc_207 > .awsui_key_10ipo_7wfnc_207,
|
|
324
|
+
.awsui_list-item_10ipo_7wfnc_201.awsui_with-sub-items_10ipo_7wfnc_245:not(#\9):not(.awsui_expandable_10ipo_7wfnc_197) > .awsui_key-value-pair_10ipo_7wfnc_207 > .awsui_value_10ipo_7wfnc_193 {
|
|
325
|
+
font-weight: var(--font-weight-heading-s-mkhu7c, 700);
|
|
204
326
|
}
|
|
205
327
|
|
|
206
|
-
.
|
|
207
|
-
|
|
328
|
+
.awsui_full-width_10ipo_7wfnc_250:not(#\9) {
|
|
329
|
+
width: 100%;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.awsui_announced_10ipo_7wfnc_254:not(#\9) {
|
|
333
|
+
/* Used by getSeriesDetailText to select text to be announced by screen readers */
|
|
208
334
|
}
|
|
@@ -2,10 +2,24 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"dimmed": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
5
|
+
"dimmed": "awsui_dimmed_10ipo_7wfnc_93",
|
|
6
|
+
"marker": "awsui_marker_10ipo_7wfnc_122",
|
|
7
|
+
"marker--line": "awsui_marker--line_10ipo_7wfnc_140",
|
|
8
|
+
"marker--rectangle": "awsui_marker--rectangle_10ipo_7wfnc_144",
|
|
9
|
+
"marker--hollow-rectangle": "awsui_marker--hollow-rectangle_10ipo_7wfnc_148",
|
|
10
|
+
"marker--dashed": "awsui_marker--dashed_10ipo_7wfnc_160",
|
|
11
|
+
"root": "awsui_root_10ipo_7wfnc_180",
|
|
12
|
+
"value": "awsui_value_10ipo_7wfnc_193",
|
|
13
|
+
"expandable": "awsui_expandable_10ipo_7wfnc_197",
|
|
14
|
+
"list-item": "awsui_list-item_10ipo_7wfnc_201",
|
|
15
|
+
"inner-list-item": "awsui_inner-list-item_10ipo_7wfnc_202",
|
|
16
|
+
"key-value-pair": "awsui_key-value-pair_10ipo_7wfnc_207",
|
|
17
|
+
"expandable-section": "awsui_expandable-section_10ipo_7wfnc_208",
|
|
18
|
+
"key": "awsui_key_10ipo_7wfnc_207",
|
|
19
|
+
"sub-items": "awsui_sub-items_10ipo_7wfnc_221",
|
|
20
|
+
"list": "awsui_list_10ipo_7wfnc_201",
|
|
21
|
+
"with-sub-items": "awsui_with-sub-items_10ipo_7wfnc_245",
|
|
22
|
+
"full-width": "awsui_full-width_10ipo_7wfnc_250",
|
|
23
|
+
"announced": "awsui_announced_10ipo_7wfnc_254"
|
|
10
24
|
};
|
|
11
25
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChartDataTypes, MixedLineBarChartProps } from '../mixed-line-bar-chart/interfaces';
|
|
1
|
+
import { ChartDataTypes, CommonMixedChartProps, MixedLineBarChartProps } from '../mixed-line-bar-chart/interfaces';
|
|
3
2
|
type LineSeries<T> = MixedLineBarChartProps.LineDataSeries<T> | MixedLineBarChartProps.ThresholdSeries<T>;
|
|
4
|
-
export interface LineChartProps<T extends ChartDataTypes> extends
|
|
3
|
+
export interface LineChartProps<T extends ChartDataTypes> extends CommonMixedChartProps<T> {
|
|
5
4
|
/**
|
|
6
5
|
* Array that represents the source of data for the displayed chart.
|
|
7
6
|
* Each element can represent a line series or a threshold, and can have the following properties:
|
|
@@ -13,11 +12,6 @@ export interface LineChartProps<T extends ChartDataTypes> extends CartesianChart
|
|
|
13
12
|
* * `valueFormatter` (Function): (Optional) A function that formats data values before rendering in the UI, For example, in the details popover.
|
|
14
13
|
*/
|
|
15
14
|
series: ReadonlyArray<LineSeries<T>>;
|
|
16
|
-
/**
|
|
17
|
-
* When set to `true`, adds a visual emphasis on the zero baseline axis.
|
|
18
|
-
* See the usage guidelines for more details.
|
|
19
|
-
*/
|
|
20
|
-
emphasizeBaselineAxis?: boolean;
|
|
21
15
|
}
|
|
22
16
|
export declare namespace LineChartProps { }
|
|
23
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["line-chart/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["line-chart/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAEnH,KAAK,UAAU,CAAC,CAAC,IAAI,sBAAsB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;AAE1G,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,qBAAqB,CAAC,CAAC,CAAC;IACxF;;;;;;;;;OASG;IACH,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC;AAGD,yBAAiB,cAAc,CAAC,GAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["line-chart/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport {
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["line-chart/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes, CommonMixedChartProps, MixedLineBarChartProps } from '../mixed-line-bar-chart/interfaces';\n\ntype LineSeries<T> = MixedLineBarChartProps.LineDataSeries<T> | MixedLineBarChartProps.ThresholdSeries<T>;\n\nexport interface LineChartProps<T extends ChartDataTypes> extends CommonMixedChartProps<T> {\n /**\n * Array that represents the source of data for the displayed chart.\n * Each element can represent a line series or a threshold, and can have the following properties:\n *\n * * `title` (string): A human-readable title for this series\n * * `type` (string): Series type (`\"line\"`, or `\"threshold\"`)\n * * `data` (Array): An array of data points, represented as objects with `x` and `y` properties\n * * `color` (string): (Optional) A color hex value for this series. When assigned, it takes priority over the automatically assigned color\n * * `valueFormatter` (Function): (Optional) A function that formats data values before rendering in the UI, For example, in the details popover.\n */\n series: ReadonlyArray<LineSeries<T>>;\n}\n\n// W/o this documenter injects CartesianChartProps namespace properties into LineChartProps definition.\nexport namespace LineChartProps {}\n"]}
|
|
@@ -31,6 +31,7 @@ export interface ChartContainerProps<T extends ChartDataTypes> {
|
|
|
31
31
|
ariaDescription: MixedLineBarChartProps<T>['ariaDescription'];
|
|
32
32
|
i18nStrings: MixedLineBarChartProps<T>['i18nStrings'];
|
|
33
33
|
plotContainerRef: React.RefObject<HTMLDivElement>;
|
|
34
|
+
detailPopoverSeriesContent?: MixedLineBarChartProps.DetailPopoverSeriesContent<T>;
|
|
34
35
|
}
|
|
35
|
-
export default function ChartContainer<T extends ChartDataTypes>({ fitHeight, height: explicitPlotHeight, series, visibleSeries, highlightedSeries, onHighlightChange, highlightedPoint, setHighlightedPoint, highlightedGroupIndex, setHighlightedGroupIndex, detailPopoverFooter, detailPopoverSize, stackedBars, horizontalBars, xScaleType, yScaleType, xTickFormatter, yTickFormatter, emphasizeBaselineAxis, xTitle, yTitle, ariaLabel, ariaLabelledby, ariaDescription, i18nStrings, plotContainerRef, ...props }: ChartContainerProps<T>): JSX.Element;
|
|
36
|
+
export default function ChartContainer<T extends ChartDataTypes>({ fitHeight, height: explicitPlotHeight, series, visibleSeries, highlightedSeries, onHighlightChange, highlightedPoint, setHighlightedPoint, highlightedGroupIndex, setHighlightedGroupIndex, detailPopoverFooter, detailPopoverSize, stackedBars, horizontalBars, xScaleType, yScaleType, xTickFormatter, yTickFormatter, emphasizeBaselineAxis, xTitle, yTitle, ariaLabel, ariaLabelledby, ariaDescription, i18nStrings, plotContainerRef, detailPopoverSeriesContent, ...props }: ChartContainerProps<T>): JSX.Element;
|
|
36
37
|
//# sourceMappingURL=chart-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-container.d.ts","sourceRoot":"lib/default/","sources":["mixed-line-bar-chart/chart-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAgBlG,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,SAAS,EAAmB,MAAM,cAAc,CAAC;AAGvH,OAAyB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAYxF,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,cAAc;IAC3D,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IAErD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAClE,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,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