@cloudscape-design/components 3.0.23 → 3.0.26

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.
Files changed (163) hide show
  1. package/alert/styles.scoped.css +0 -34
  2. package/annotation-context/annotation/styles.scoped.css +0 -18
  3. package/app-layout/content-wrapper/styles.scoped.css +0 -4
  4. package/app-layout/mobile-toolbar/styles.scoped.css +0 -9
  5. package/app-layout/styles.scoped.css +0 -20
  6. package/app-layout/toggles/styles.scoped.css +0 -16
  7. package/app-layout/visual-refresh/styles.scoped.css +0 -71
  8. package/area-chart/styles.scoped.css +0 -13
  9. package/attribute-editor/styles.scoped.css +0 -23
  10. package/badge/styles.scoped.css +0 -15
  11. package/bar-chart/interfaces.d.ts +1 -1
  12. package/bar-chart/interfaces.d.ts.map +1 -1
  13. package/bar-chart/interfaces.js.map +1 -1
  14. package/box/styles.scoped.css +0 -171
  15. package/breadcrumb-group/item/styles.scoped.css +0 -11
  16. package/breadcrumb-group/styles.scoped.css +0 -10
  17. package/button/styles.scoped.css +0 -264
  18. package/button-dropdown/category-elements/styles.scoped.css +0 -26
  19. package/button-dropdown/item-element/styles.scoped.css +0 -22
  20. package/button-dropdown/mobile-expandable-group/styles.scoped.css +0 -5
  21. package/button-dropdown/styles.scoped.css +0 -7
  22. package/cards/styles.scoped.css +0 -45
  23. package/checkbox/styles.scoped.css +0 -11
  24. package/code-editor/styles.scoped.css +0 -87
  25. package/collection-preferences/styles.scoped.css +0 -12
  26. package/column-layout/styles.scoped.css +0 -12
  27. package/container/styles.scoped.css +0 -27
  28. package/date-picker/styles.scoped.css +0 -45
  29. package/date-range-picker/calendar/grids/day/styles.scoped.css +0 -45
  30. package/date-range-picker/index.d.ts.map +1 -1
  31. package/date-range-picker/index.js +13 -15
  32. package/date-range-picker/index.js.map +1 -1
  33. package/date-range-picker/relative-range/styles.scoped.css +0 -3
  34. package/date-range-picker/styles.css.js +41 -42
  35. package/date-range-picker/styles.scoped.css +49 -92
  36. package/date-range-picker/styles.selectors.js +41 -42
  37. package/expandable-section/styles.scoped.css +0 -33
  38. package/flashbar/styles.scoped.css +0 -36
  39. package/form/styles.scoped.css +0 -12
  40. package/form-field/styles.scoped.css +0 -26
  41. package/grid/styles.scoped.css +0 -6
  42. package/header/styles.scoped.css +0 -51
  43. package/help-panel/styles.scoped.css +0 -73
  44. package/hotspot/styles.scoped.css +0 -3
  45. package/icon/styles.scoped.css +0 -33
  46. package/input/styles.scoped.css +0 -49
  47. package/internal/base-component/styles.scoped.css +0 -1
  48. package/internal/components/abstract-switch/styles.scoped.css +0 -7
  49. package/internal/components/button-trigger/styles.scoped.css +0 -42
  50. package/internal/components/cartesian-chart/styles.scoped.css +0 -10
  51. package/internal/components/chart-filter/styles.scoped.css +0 -4
  52. package/internal/components/chart-legend/styles.scoped.css +0 -8
  53. package/internal/components/chart-plot/styles.scoped.css +0 -1
  54. package/internal/components/chart-popover/styles.scoped.css +0 -4
  55. package/internal/components/chart-series-details/styles.scoped.css +0 -12
  56. package/internal/components/chart-series-marker/styles.scoped.css +0 -7
  57. package/internal/components/chart-status-container/styles.scoped.css +0 -1
  58. package/internal/components/checkbox-icon/styles.scoped.css +0 -10
  59. package/internal/components/content-layout/styles.scoped.css +0 -5
  60. package/internal/components/dark-ribbon/styles.scoped.css +0 -1
  61. package/internal/components/dropdown/styles.scoped.css +0 -17
  62. package/internal/components/dropdown-footer/styles.scoped.css +0 -6
  63. package/internal/components/dropdown-status/styles.scoped.css +0 -6
  64. package/internal/components/filtering-token/styles.scoped.css +0 -21
  65. package/internal/components/menu-dropdown/styles.scoped.css +0 -17
  66. package/internal/components/option/styles.scoped.css +0 -16
  67. package/internal/components/options-list/styles.scoped.css +0 -5
  68. package/internal/components/selectable-item/styles.scoped.css +0 -44
  69. package/internal/environment.js +1 -1
  70. package/line-chart/interfaces.d.ts +1 -1
  71. package/line-chart/interfaces.d.ts.map +1 -1
  72. package/line-chart/interfaces.js.map +1 -1
  73. package/link/styles.scoped.css +0 -77
  74. package/mixed-line-bar-chart/bar-series.d.ts +1 -1
  75. package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
  76. package/mixed-line-bar-chart/bar-series.js.map +1 -1
  77. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  78. package/mixed-line-bar-chart/chart-container.js +9 -10
  79. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  80. package/mixed-line-bar-chart/chart-filters.d.ts +2 -2
  81. package/mixed-line-bar-chart/chart-filters.d.ts.map +1 -1
  82. package/mixed-line-bar-chart/chart-filters.js +1 -2
  83. package/mixed-line-bar-chart/chart-filters.js.map +1 -1
  84. package/mixed-line-bar-chart/chart-legend.d.ts +2 -2
  85. package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  86. package/mixed-line-bar-chart/chart-legend.js +1 -2
  87. package/mixed-line-bar-chart/chart-legend.js.map +1 -1
  88. package/mixed-line-bar-chart/domain.d.ts +4 -0
  89. package/mixed-line-bar-chart/domain.d.ts.map +1 -0
  90. package/mixed-line-bar-chart/domain.js +138 -0
  91. package/mixed-line-bar-chart/domain.js.map +1 -0
  92. package/mixed-line-bar-chart/format-highlighted.d.ts +2 -4
  93. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  94. package/mixed-line-bar-chart/format-highlighted.js +26 -15
  95. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  96. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  97. package/mixed-line-bar-chart/hooks/use-mouse-hover.js +3 -2
  98. package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  99. package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  100. package/mixed-line-bar-chart/hooks/use-navigation.js +23 -35
  101. package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  102. package/mixed-line-bar-chart/interfaces.d.ts +12 -2
  103. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  104. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  105. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  106. package/mixed-line-bar-chart/internal.js +14 -6
  107. package/mixed-line-bar-chart/internal.js.map +1 -1
  108. package/mixed-line-bar-chart/line-series.d.ts +2 -2
  109. package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
  110. package/mixed-line-bar-chart/line-series.js +21 -9
  111. package/mixed-line-bar-chart/line-series.js.map +1 -1
  112. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  113. package/mixed-line-bar-chart/make-scaled-bar-groups.js +11 -4
  114. package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  115. package/mixed-line-bar-chart/make-scaled-series.d.ts +2 -4
  116. package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  117. package/mixed-line-bar-chart/make-scaled-series.js +89 -25
  118. package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  119. package/mixed-line-bar-chart/styles.scoped.css +0 -13
  120. package/mixed-line-bar-chart/utils.d.ts +5 -6
  121. package/mixed-line-bar-chart/utils.d.ts.map +1 -1
  122. package/mixed-line-bar-chart/utils.js +11 -112
  123. package/mixed-line-bar-chart/utils.js.map +1 -1
  124. package/modal/styles.scoped.css +0 -31
  125. package/multiselect/styles.scoped.css +0 -4
  126. package/package.json +1 -1
  127. package/pagination/styles.scoped.css +0 -22
  128. package/pie-chart/styles.scoped.css +0 -25
  129. package/popover/styles.scoped.css +0 -35
  130. package/progress-bar/styles.scoped.css +0 -25
  131. package/property-filter/styles.scoped.css +0 -22
  132. package/radio-group/styles.scoped.css +0 -22
  133. package/s3-resource-selector/s3-in-context/styles.scoped.css +0 -6
  134. package/segmented-control/styles.scoped.css +0 -36
  135. package/select/parts/styles.scoped.css +0 -6
  136. package/select/styles.scoped.css +0 -4
  137. package/side-navigation/styles.scoped.css +0 -38
  138. package/space-between/styles.scoped.css +0 -40
  139. package/spinner/styles.scoped.css +0 -17
  140. package/split-panel/styles.scoped.css +0 -65
  141. package/status-indicator/styles.scoped.css +0 -20
  142. package/table/body-cell/styles.scoped.css +0 -29
  143. package/table/header-cell/styles.scoped.css +0 -32
  144. package/table/resizer/styles.scoped.css +0 -6
  145. package/table/selection-control/styles.scoped.css +0 -3
  146. package/table/styles.scoped.css +0 -39
  147. package/table/use-selection.d.ts.map +1 -1
  148. package/table/use-selection.js +5 -5
  149. package/table/use-selection.js.map +1 -1
  150. package/tabs/styles.scoped.css +0 -41
  151. package/tag-editor/styles.scoped.css +0 -12
  152. package/text-content/styles.scoped.css +0 -54
  153. package/text-filter/styles.scoped.css +0 -7
  154. package/textarea/styles.scoped.css +0 -30
  155. package/tiles/styles.scoped.css +0 -55
  156. package/toggle/styles.scoped.css +0 -14
  157. package/token-group/styles.scoped.css +0 -35
  158. package/top-navigation/1.0-beta/styles.scoped.css +0 -40
  159. package/top-navigation/styles.scoped.css +0 -75
  160. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +0 -22
  161. package/tutorial-panel/components/tutorial-list/styles.scoped.css +0 -24
  162. package/tutorial-panel/styles.scoped.css +0 -5
  163. package/wizard/styles.scoped.css +0 -54
@@ -1 +1 @@
1
- {"version":3,"file":"make-scaled-series.js","sourceRoot":"","sources":["../../../src/mixed-line-bar-chart/make-scaled-series.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,MAA6C,EAC7C,MAAkB,EAClB,MAAyB;IAEzB,IAAM,OAAO,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7F,IAAM,MAAM,GAAG,UAAC,CAAI,IAAK,OAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAz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B;IAC/F,IAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,KAA4B,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,EAAE;QAAvB,IAAQ,CAAC,sBAAA;QACpB,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,EAAE;YAC1B,KAAgB,UAAM,EAAN,KAAA,CAAC,CAAC,IAAI,EAAN,cAAM,EAAN,IAAM,EAAE;gBAAnB,IAAM,CAAC,SAAA;gBACV,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC9B;SACF;KACF;IACD,IAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,WAAW,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAhB,CAAgB,CAAC,CAAC;IAE3C,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces';\nimport { ChartScale, NumericChartScale } from '../internal/components/cartesian-chart/scales';\n\nexport interface ScaledPoint<T> {\n x: number;\n y: number;\n color: string;\n datum?: MixedLineBarChartProps.Datum<T> | undefined;\n series: MixedLineBarChartProps.ChartSeries<T>;\n}\n\n/**\n * Combine all line series into an array of scaled data points with the given scales.\n */\nexport default function makeScaledSeries<T extends ChartDataTypes>(\n series: ReadonlyArray<InternalChartSeries<T>>,\n xScale: ChartScale,\n yScale: NumericChartScale\n): readonly ScaledPoint<T>[] {\n const xOffset = xScale.isCategorical() ? Math.max(0, xScale.d3Scale.bandwidth() - 1) / 2 : 0;\n const scaleX = (x: T) => (xScale.d3Scale(x as any) || 0) + xOffset;\n const scaleY = (y: number) => yScale.d3Scale(y) || 0;\n const allScaledX = getAllScaledX(series, scaleX);\n\n // Support threshold-only setup.\n if (allScaledX.length === 0) {\n allScaledX.push(NaN);\n }\n\n return series.reduce((acc, { series, color }) => {\n if (series.type === 'line') {\n for (const datum of series.data as MixedLineBarChartProps.Datum<T>[]) {\n acc.push({ x: scaleX(datum.x), y: scaleY(datum.y), datum, series, color });\n }\n } else if (series.type === 'threshold') {\n for (const x of allScaledX) {\n acc.push({ x, y: scaleY(series.y), series, color });\n }\n }\n return acc;\n }, [] as ScaledPoint<T>[]);\n}\n\n/**\n * Collect unique x values from all data series.\n */\nfunction getAllScaledX<T>(series: ReadonlyArray<InternalChartSeries<T>>, scaleX: (x: T) => number) {\n const addDataXSet = new Set<number>();\n for (const { series: s } of series) {\n if (s.type !== 'threshold') {\n for (const d of s.data) {\n addDataXSet.add(scaleX(d.x));\n }\n }\n }\n const allDataX: number[] = [];\n addDataXSet.forEach(x => allDataX.push(x));\n\n return allDataX;\n}\n"]}
1
+ {"version":3,"file":"make-scaled-series.js","sourceRoot":"","sources":["../../../src/mixed-line-bar-chart/make-scaled-series.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAUrD,yFAAyF;AACzF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,SAAgD,EAChD,MAAkB,EAClB,MAAyB;IAEzB,IAAM,OAAO,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7F,IAAM,MAAM,GAAG,UAAC,CAAI,IAAK,OAAA,CAAC,MAAM,CAAC,OAAO,CAAC,CAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAzC,CAAyC,CAAC;IACnE,IAAM,MAAM,GAAG,UAAC,CAAS,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,E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C,CAAC,IAAI,EAAN,cAAM,EAAN,IAAM,EAAE;oBAAnB,IAAM,CAAC,SAAA;oBACV,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;iBACtB;gBACD,MAAM;YAER,KAAK,WAAW;gBACd,sCAAsC;gBACtC,IAAI,YAAY,CAAC,CAAC,CAAC,EAAE;oBACnB,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;iBACtB;gBACD,kCAAkC;gBAClC,MAAM;SACT;KACF;IACD,IAAM,QAAQ,GAAQ,EAAE,CAAC;IACzB,WAAW,CAAC,OAAO,CAAC,UAAA,CAAC,IAAI,OAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAhB,CAAgB,CAAC,CAAC;IAE3C,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,OAAO,CAAI,MAAa;IAC/B,IAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KAAoB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,EAAE;QAAvB,IAAM,KAAK,eAAA;QACd,KAAmB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;YAArB,IAAM,IAAI,cAAA;YACb,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACnB;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces';\nimport { ChartScale, NumericChartScale } from '../internal/components/cartesian-chart/scales';\nimport { isXThreshold, isYThreshold } from './utils';\n\nexport interface ScaledPoint<T> {\n x: number;\n y: number;\n color: string;\n datum?: MixedLineBarChartProps.Datum<T> | undefined;\n series: MixedLineBarChartProps.ChartSeries<T>;\n}\n\n/** Combine all line series into an array of scaled data points with the given scales. */\nexport default function makeScaledSeries<T extends ChartDataTypes>(\n allSeries: ReadonlyArray<InternalChartSeries<T>>,\n xScale: ChartScale,\n yScale: NumericChartScale\n): readonly ScaledPoint<T>[] {\n const xOffset = xScale.isCategorical() ? Math.max(0, xScale.d3Scale.bandwidth() - 1) / 2 : 0;\n const scaleX = (x: T) => (xScale.d3Scale(x as any) || 0) + xOffset;\n const scaleY = (y: number) => yScale.d3Scale(y) || 0;\n const allX = getAllX(allSeries);\n\n function mergeLineSeriesPointsWithXThresholds(\n scaledPoints: ScaledPoint<T>[],\n xThresholdSeries: MixedLineBarChartProps.ThresholdSeries<T> & { x: T },\n xThresholdSeriesColor: string\n ) {\n const x = scaleX(xThresholdSeries.x);\n\n // Locate a point the x-threshold can be inserted after (if such exists).\n let bisectIndex = -1;\n for (let i = 0; i < scaledPoints.length - 1; i++) {\n if (scaledPoints[i].x < x && x < scaledPoints[i + 1].x) {\n bisectIndex = i;\n break;\n }\n }\n\n // Insert x-threshold point into the given series using extrapolated Y value.\n // The extrapolated value is only used to render highlighted point on the chart plot.\n if (bisectIndex !== -1) {\n const prevY = scaledPoints[bisectIndex].datum?.y || 0;\n const nextY = scaledPoints[bisectIndex + 1].datum?.y || 0;\n const averageY = (prevY + nextY) / 2;\n scaledPoints.push({\n x: x,\n y: scaleY(averageY),\n datum: { x: xThresholdSeries.x, y: NaN },\n series: scaledPoints[bisectIndex].series,\n color: xThresholdSeriesColor,\n });\n }\n }\n\n const scaledSeriesX = allSeries.map(({ series, color }) => {\n const scaledPoints: ScaledPoint<T>[] = [];\n\n // Scale and add all line series data points.\n if (series.type === 'line') {\n for (const datum of series.data as MixedLineBarChartProps.Datum<T>[]) {\n scaledPoints.push({ x: scaleX(datum.x), y: scaleY(datum.y), datum, series, color });\n }\n\n // Sort scaled points to ensure correct x-thresholds insertion.\n scaledPoints.sort((s1, s2) => s1.x - s2.x);\n\n // Merge x-thresholds into series if they don't have a shared coordinate.\n for (const otherSeries of allSeries) {\n if (isXThreshold(otherSeries.series)) {\n mergeLineSeriesPointsWithXThresholds(scaledPoints, otherSeries.series, otherSeries.color);\n }\n }\n }\n // Y-thresholds only have Y. To make thresholds navigable they are mapped to all defined X values.\n else if (isYThreshold(series)) {\n for (const x of allX) {\n scaledPoints.push({ x: scaleX(x), y: scaleY(series.y), datum: { x, y: series.y }, series, color });\n }\n // Support threshold-only setup.\n if (allX.length === 0) {\n scaledPoints.push({ x: NaN, y: scaleY(series.y), series, color });\n }\n }\n // X-thresholds only have X. The y value is taken as NaN which means there is no associated point - only vertical marker.\n else if (isXThreshold(series)) {\n scaledPoints.push({ x: scaleX(series.x), y: NaN, datum: { x: series.x, y: NaN }, series, color });\n }\n // Bar series are handled separately.\n return scaledPoints;\n });\n\n // Sort scaled points by x to ensure their order matches visual order in the chart to support navigation.\n return flatten(scaledSeriesX).sort((s1, s2) => s1.x - s2.x);\n}\n\n/** Collect unique x values from all data series. */\nfunction getAllX<T>(series: ReadonlyArray<InternalChartSeries<T>>) {\n const addDataXSet = new Set<T>();\n for (const { series: s } of series) {\n switch (s.type) {\n // Add all X values from data series.\n case 'bar':\n case 'line':\n for (const d of s.data) {\n addDataXSet.add(d.x);\n }\n break;\n\n case 'threshold':\n // X-thresholds have a single X value.\n if (isXThreshold(s)) {\n addDataXSet.add(s.x);\n }\n // Thresholds don't have X values.\n break;\n }\n }\n const allDataX: T[] = [];\n addDataXSet.forEach(x => allDataX.push(x));\n\n return allDataX;\n}\n\nfunction flatten<T>(arrays: T[][]): T[] {\n const merged: T[] = [];\n for (const array of arrays) {\n for (const item of array) {\n merged.push(item);\n }\n }\n return merged;\n}\n"]}
@@ -92,7 +92,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
92
92
  */
93
93
  .awsui_series_1yz9c_13bfe_93:not(#\9),
94
94
  .awsui_series--bar_1yz9c_13bfe_94 > .awsui_series__rect_1yz9c_13bfe_94:not(#\9) {
95
- transition: opacity 90ms linear;
96
95
  transition: opacity var(--motion-duration-transition-quick-x85tae, 90ms) var(--motion-easing-transition-quick-lukbd8, linear);
97
96
  }
98
97
  @media (prefers-reduced-motion: reduce) {
@@ -108,7 +107,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
108
107
  }
109
108
 
110
109
  .awsui_exiting_1yz9c_13bfe_111:not(#\9) {
111
- animation: awsui_awsui-motion-fade-out-0_1yz9c_13bfe_1 115ms cubic-bezier(1, 0, 0.83, 1);
112
110
  animation: awsui_awsui-motion-fade-out-0_1yz9c_13bfe_1 var(--motion-duration-refresh-only-fast-addxjd, 115ms) var(--motion-easing-refresh-only-b-nspng9, cubic-bezier(1, 0, 0.83, 1));
113
111
  }
114
112
  @keyframes awsui_awsui-motion-fade-out-0_1yz9c_13bfe_1 {
@@ -164,14 +162,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
164
162
  widows: 2;
165
163
  word-spacing: normal;
166
164
  box-sizing: border-box;
167
- font-size: 14px;
168
165
  font-size: var(--font-body-m-size-sregvd, 14px);
169
- line-height: 22px;
170
166
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
171
- color: #000716;
172
167
  color: var(--color-text-body-default-ajf1h5, #000716);
173
168
  font-weight: 400;
174
- font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
175
169
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
176
170
  position: relative;
177
171
  display: block;
@@ -209,22 +203,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
209
203
  }
210
204
 
211
205
  .awsui_content--reserve-filter_1yz9c_13bfe_181:not(#\9) {
212
- margin-top: calc(2 * 22px);
213
206
  margin-top: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
214
207
  }
215
208
 
216
209
  .awsui_content--reserve-legend_1yz9c_13bfe_185:not(#\9) {
217
- margin-bottom: calc(2 * 22px);
218
210
  margin-bottom: calc(2 * var(--font-body-m-line-height-i7xxvv, 22px));
219
211
  }
220
212
 
221
213
  .awsui_series_1yz9c_13bfe_93:not(#\9) {
222
214
  display: block;
223
- stroke-width: 2px;
224
215
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
225
216
  fill: none;
226
217
  stroke-linecap: round;
227
- stroke-linejoin: round;
228
218
  stroke-linejoin: var(--border-line-chart-line-join-nan7pn, round);
229
219
  pointer-events: none;
230
220
  }
@@ -239,15 +229,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
239
229
  }
240
230
 
241
231
  .awsui_series--bar_1yz9c_13bfe_94 > .awsui_series__rect_1yz9c_13bfe_94:not(#\9) {
242
- stroke: #ffffff;
243
232
  stroke: var(--color-background-container-content-i8i4a0, #ffffff);
244
233
  stroke-width: 2px;
245
234
  }
246
235
 
247
236
  .awsui_series--threshold_1yz9c_13bfe_212:not(#\9) {
248
- stroke-dasharray: 3 5;
249
237
  stroke-dasharray: var(--border-line-chart-dash-array-4wa4ab, 3 5);
250
- stroke-width: 2px;
251
238
  stroke-width: var(--border-line-chart-width-nj0hc5, 2px);
252
239
  }
253
240
 
@@ -1,9 +1,7 @@
1
1
  import { ChartSeriesMarkerType } from '../internal/components/chart-series-marker';
2
- import { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps, ScaleType } from './interfaces';
2
+ import { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces';
3
3
  import { ScaledBarGroup } from './make-scaled-bar-groups';
4
4
  export declare const chartLegendMap: Record<string, ChartSeriesMarkerType>;
5
- export declare function computeDomainX<T>(series: readonly InternalChartSeries<T>[], xScaleType: ScaleType): T[];
6
- export declare function computeDomainY<T>(series: readonly InternalChartSeries<T>[], scaleType: 'linear' | 'log', stackedBars: boolean): number[];
7
5
  export declare const nextValidDomainIndex: <T>(nextGroupIndex: number, barGroups: ScaledBarGroup<T>[], direction?: number) => number;
8
6
  /**
9
7
  * Find the subset of series that are individually navigable with keyboard.
@@ -27,8 +25,9 @@ export interface StackedOffsets {
27
25
  * Calculates list of offset maps from all data by accumulating each value
28
26
  */
29
27
  export declare function calculateOffsetMaps(data: Array<readonly MixedLineBarChartProps.Datum<ChartDataTypes>[]>): StackedOffsets[];
30
- /**
31
- * Returns string or number value for ChartDataTypes key
32
- */
28
+ /** Returns string or number value for ChartDataTypes key */
33
29
  export declare const getKeyValue: (key: ChartDataTypes) => string | number;
30
+ export declare function isYThreshold<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.YThresholdSeries;
31
+ export declare function isXThreshold<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.XThresholdSeries<T>;
32
+ export declare function isDataSeries<T>(series: MixedLineBarChartProps.ChartSeries<T>): series is MixedLineBarChartProps.DataSeries<T>;
34
33
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/mixed-line-bar-chart/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtG,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAIhE,CAAC;AAEF,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,SAAS,OAyBjG;AAYD,wBAAgB,cAAc,CAAC,CAAC,EAC9B,MAAM,EAAE,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAAE,EACzC,SAAS,EAAE,QAAQ,GAAG,KAAK,EAC3B,WAAW,EAAE,OAAO,YAgFrB;AAGD,eAAO,MAAM,oBAAoB,sBAAuB,MAAM,+DAqB7D,C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CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,SAAS,CAAC;IAC3B,eAAe,EAAE,SAAS,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,KAAK,CAAC,SAAS,sBAAsB,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,GACnE,cAAc,EAAE,CA6BlB;AAED,4DAA4D;AAC5D,eAAO,MAAM,WAAW,QAAS,cAAc,oBAAgD,CAAC;AAEhG,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAAC,GAC5C,MAAM,IAAI,sBAAsB,CAAC,gBAAgB,CAEnD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAAC,GAC5C,MAAM,IAAI,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAEtD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAAC,GAC5C,MAAM,IAAI,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC,CAEhD"}
@@ -1,117 +1,9 @@
1
- import { __assign, __spreadArray } from "tslib";
1
+ import { __assign } from "tslib";
2
2
  export var chartLegendMap = {
3
3
  line: 'line',
4
4
  bar: 'rectangle',
5
5
  threshold: 'dashed'
6
6
  };
7
- export function computeDomainX(series, xScaleType) {
8
- if (xScaleType === 'categorical') {
9
- return series.reduce(function (acc, s) {
10
- if (s.series.type !== 'threshold') {
11
- s.series.data.forEach(function (_a) {
12
- var x = _a.x;
13
- if (acc.indexOf(x) === -1) {
14
- acc.push(x);
15
- }
16
- });
17
- }
18
- return acc;
19
- }, []);
20
- }
21
- return series.reduce(function (acc, curr) {
22
- if (curr.series.type === 'threshold') {
23
- return acc;
24
- }
25
- return curr.series.data.reduce(function (_a, _b) {
26
- var min = _a[0], max = _a[1];
27
- var x = _b.x;
28
- var newMin = min === undefined || x < min ? x : min;
29
- var newMax = max === undefined || max < x ? x : max;
30
- return [newMin, newMax];
31
- }, acc);
32
- }, []);
33
- }
34
- function find(arr, func) {
35
- for (var i = 0; i < arr.length; i++) {
36
- var found = func(arr[i]);
37
- if (found) {
38
- return arr[i];
39
- }
40
- }
41
- return null;
42
- }
43
- export function computeDomainY(series, scaleType, stackedBars) {
44
- var _series = series;
45
- // For stacked bars, we need to accumulate all the bar series into a positive and a negative series
46
- if (stackedBars) {
47
- var _a = series.reduce(function (acc, curr) {
48
- if (curr.series.type === 'bar') {
49
- curr.series.data.forEach(function (_a) {
50
- var x = _a.x, y = _a.y;
51
- var data = y < 0 ? acc.negativeData : acc.positiveData;
52
- var stackedDatum = find(data, function (el) { return matchesX(el.x, x); });
53
- if (stackedDatum) {
54
- stackedDatum.y += y;
55
- }
56
- else {
57
- data.push({ x: x, y: y });
58
- }
59
- return acc;
60
- });
61
- }
62
- return acc;
63
- }, {
64
- positiveData: [],
65
- negativeData: []
66
- }), positiveData = _a.positiveData, negativeData = _a.negativeData;
67
- // Artificial series with the sum of all bars when stacked
68
- var stackedSeries = [
69
- {
70
- color: '',
71
- index: NaN,
72
- series: {
73
- type: 'bar',
74
- title: 'positive',
75
- data: positiveData
76
- }
77
- },
78
- {
79
- color: '',
80
- index: NaN,
81
- series: {
82
- type: 'bar',
83
- title: 'negative',
84
- data: negativeData
85
- }
86
- },
87
- ];
88
- // MixedLineBarChart can also contain other non-bar series,
89
- // so we replace all bars with the artificial bar series
90
- // Then proceed to compute range with it and the remaining (non-bar) series
91
- _series = __spreadArray(__spreadArray([], stackedSeries, true), _series.filter(function (s) { return s.series.type !== 'bar'; }), true);
92
- }
93
- var domain = _series.reduce(function (acc, curr) {
94
- if (curr.series.type === 'threshold') {
95
- var min = acc[0], max = acc[1];
96
- var y = curr.series.y;
97
- var newMin = min === undefined || y < min ? y : min;
98
- var newMax = max === undefined || max < y ? y : max;
99
- return [newMin, newMax];
100
- }
101
- return curr.series.data.reduce(function (_a, _b) {
102
- var min = _a[0], max = _a[1];
103
- var y = _b.y;
104
- var newMin = min === undefined || y < min ? y : min;
105
- var newMax = max === undefined || max < y ? y : max;
106
- return [newMin, newMax];
107
- }, acc);
108
- }, [0, 0]);
109
- // Log scales can't start from 0, so if possible, start from 1.
110
- if (scaleType === 'log' && domain[0] === 0 && domain[1] > 1) {
111
- return [1, domain[1]];
112
- }
113
- return domain;
114
- }
115
7
  // Starting from the given index, find the first x value in the x domain that has bar data attached to it.
116
8
  export var nextValidDomainIndex = function (nextGroupIndex, barGroups, direction) {
117
9
  if (direction === void 0) { direction = 1; }
@@ -197,8 +89,15 @@ export function calculateOffsetMaps(data) {
197
89
  return acc;
198
90
  }, []);
199
91
  }
200
- /**
201
- * Returns string or number value for ChartDataTypes key
202
- */
92
+ /** Returns string or number value for ChartDataTypes key */
203
93
  export var getKeyValue = function (key) { return (key instanceof Date ? key.getTime() : key); };
94
+ export function isYThreshold(series) {
95
+ return series.type === 'threshold' && 'y' in series;
96
+ }
97
+ export function isXThreshold(series) {
98
+ return series.type === 'threshold' && 'x' in series;
99
+ }
100
+ export function isDataSeries(series) {
101
+ return series.type === 'line' || series.type === 'bar';
102
+ }
204
103
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/mixed-line-bar-chart/utils.ts"],"names":[],"mappings":";AAMA,MAAM,CAAC,IAAM,cAAc,GAA0C;IACnE,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,WAAW;IAChB,SAAS,EAAE,QAAQ;CACpB,CAAC;AAEF,MAAM,UAAU,cAAc,CAAI,MAAyC,EAAE,UAAqB;IAChG,IAAI,UAAU,KAAK,aAAa,EAAE;QAChC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW,E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SeriesMarkerType } from '../internal/components/chart-series-marker';\nimport { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps, ScaleType } from './interfaces';\nimport { ScaledBarGroup } from './make-scaled-bar-groups';\n\nexport const chartLegendMap: Record<string, ChartSeriesMarkerType> = {\n line: 'line',\n bar: 'rectangle',\n threshold: 'dashed',\n};\n\nexport function computeDomainX<T>(series: readonly InternalChartSeries<T>[], xScaleType: ScaleType) {\n if (xScaleType === 'categorical') {\n return series.reduce((acc, s) => {\n if (s.series.type !== 'threshold') {\n s.series.data.forEach(({ x }) => {\n if (acc.indexOf(x) === -1) {\n acc.push(x);\n }\n });\n }\n return acc;\n }, [] as T[]);\n }\n\n return series.reduce((acc, curr) => {\n if (curr.series.type === 'threshold') {\n return acc;\n }\n\n return curr.series.data.reduce(([min, max], { x }) => {\n const newMin = min === undefined || x < min ? x : min;\n const newMax = max === undefined || max < x ? x : max;\n return [newMin, newMax] as T[];\n }, acc);\n }, [] as T[]);\n}\n\nfunction find<Q>(arr: readonly Q[], func: (el: Q) => boolean) {\n for (let i = 0; i < arr.length; i++) {\n const found = func(arr[i]);\n if (found) {\n return arr[i];\n }\n }\n return null;\n}\n\nexport function computeDomainY<T>(\n series: readonly InternalChartSeries<T>[],\n scaleType: 'linear' | 'log',\n stackedBars: boolean\n) {\n let _series = series;\n\n // For stacked bars, we need to accumulate all the bar series into a positive and a negative series\n if (stackedBars) {\n const { positiveData, negativeData } = series.reduce(\n (acc, curr) => {\n if (curr.series.type === 'bar') {\n curr.series.data.forEach(({ x, y }) => {\n const data = y < 0 ? acc.negativeData : acc.positiveData;\n const stackedDatum = find(data, el => matchesX(el.x, x));\n if (stackedDatum) {\n stackedDatum.y += y;\n } else {\n data.push({ x, y });\n }\n return acc;\n });\n }\n return acc;\n },\n {\n positiveData: [] as MixedLineBarChartProps.Datum<T>[],\n negativeData: [] as MixedLineBarChartProps.Datum<T>[],\n }\n );\n\n // Artificial series with the sum of all bars when stacked\n const stackedSeries: InternalChartSeries<T>[] = [\n {\n color: '',\n index: NaN,\n series: {\n type: 'bar',\n title: 'positive',\n data: positiveData as any,\n },\n },\n {\n color: '',\n index: NaN,\n series: {\n type: 'bar',\n title: 'negative',\n data: negativeData as any,\n },\n },\n ];\n\n // MixedLineBarChart can also contain other non-bar series,\n // so we replace all bars with the artificial bar series\n // Then proceed to compute range with it and the remaining (non-bar) series\n _series = [...stackedSeries, ..._series.filter(s => s.series.type !== 'bar')];\n }\n\n const domain = _series.reduce(\n (acc, curr) => {\n if (curr.series.type === 'threshold') {\n const [min, max] = acc;\n const y = curr.series.y;\n const newMin = min === undefined || y < min ? y : min;\n const newMax = max === undefined || max < y ? y : max;\n return [newMin, newMax];\n }\n\n return curr.series.data.reduce(([min, max], { y }) => {\n const newMin = min === undefined || y < min ? y : min;\n const newMax = max === undefined || max < y ? y : max;\n return [newMin, newMax];\n }, acc);\n },\n [0, 0]\n );\n\n // Log scales can't start from 0, so if possible, start from 1.\n if (scaleType === 'log' && domain[0] === 0 && domain[1] > 1) {\n return [1, domain[1]];\n }\n return domain;\n}\n\n// Starting from the given index, find the first x value in the x domain that has bar data attached to it.\nexport const nextValidDomainIndex = <T>(nextGroupIndex: number, barGroups: ScaledBarGroup<T>[], direction = 1) => {\n let index = nextGroupIndex;\n\n if (index < 0 || index >= barGroups.length) {\n index = 0;\n }\n\n do {\n if (barGroups[index].isValid && barGroups[index].hasData) {\n return index;\n }\n index += direction;\n\n // Loop back to the beginning if necessary\n if (index >= barGroups.length) {\n index = 0;\n } else if (index < 0) {\n index = barGroups.length - 1;\n }\n } while (index !== nextGroupIndex);\n return 0;\n};\n\n/**\n * Find the subset of series that are individually navigable with keyboard.\n * Lines and thresholds are navigated individually, while bar series are grouped as one.\n */\nexport function findNavigableSeries<T extends ChartDataTypes>(series: ReadonlyArray<InternalChartSeries<T>>) {\n const navigableSeries: Array<MixedLineBarChartProps.ChartSeries<T>> = [];\n let navigableBarSeriesIndex = -1;\n\n series.forEach(internalSeries => {\n if (internalSeries.series.type === 'bar') {\n // Only include the first bar series because all bar series are handled as one\n if (navigableBarSeriesIndex === -1) {\n navigableBarSeriesIndex = navigableSeries.length;\n navigableSeries.push(internalSeries.series);\n }\n } else {\n navigableSeries.push(internalSeries.series);\n }\n });\n return { navigableSeries, navigableBarSeriesIndex };\n}\n\n/**\n * Checks if two x values are equal.\n * With a special treat for Date values which need to be converted to numbers first.\n */\nexport const matchesX = <T>(x1: T, x2: T) => {\n if (x1 instanceof Date && x2 instanceof Date) {\n return x1.getTime() === x2.getTime();\n }\n return x1 === x2;\n};\n\nexport type OffsetMap = Record<string | number, number>;\n\nexport interface StackedOffsets {\n positiveOffsets: OffsetMap;\n negativeOffsets: OffsetMap;\n}\n\n/**\n * Calculates list of offset maps from all data by accumulating each value\n */\nexport function calculateOffsetMaps(\n data: Array<readonly MixedLineBarChartProps.Datum<ChartDataTypes>[]>\n): StackedOffsets[] {\n return data.reduce((acc, curr, idx) => {\n // First series receives empty offsets map\n if (idx === 0) {\n acc.push({ positiveOffsets: {}, negativeOffsets: {} });\n }\n const lastMap = acc[idx];\n const map: StackedOffsets = lastMap\n ? { positiveOffsets: { ...lastMap.positiveOffsets }, negativeOffsets: { ...lastMap.negativeOffsets } }\n : { positiveOffsets: {}, negativeOffsets: {} };\n\n curr.forEach(({ x, y }) => {\n const key = getKeyValue(x);\n if (y < 0) {\n const lastValue = lastMap?.negativeOffsets[key] || 0;\n map.negativeOffsets[key] = lastValue + y;\n } else {\n const lastValue = lastMap?.positiveOffsets[key] || 0;\n map.positiveOffsets[key] = lastValue + y;\n }\n });\n\n // Ignore last value for map but still run it for logging\n if (idx < data.length - 1) {\n acc.push(map);\n }\n\n return acc;\n }, [] as StackedOffsets[]);\n}\n\n/**\n * Returns string or number value for ChartDataTypes key\n */\nexport const getKeyValue = (key: ChartDataTypes) => (key instanceof Date ? key.getTime() : key);\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/mixed-line-bar-chart/utils.ts"],"names":[],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P,OAAO,CAAE,eAAe,CAAC,GAAG,CAAC,KAAI,CAAC,CAAC;gBACrD,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;aAC1C;iBAAM;gBACL,IAAM,SAAS,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAC,GAAG,CAAC,KAAI,CAAC,CAAC;gBACrD,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;aAC1C;QACH,CAAC,CAAC,CAAC;QAEH,yDAAyD;QACzD,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACf;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAsB,CAAC,CAAC;AAC7B,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,GAAmB,IAAK,OAAA,CAAC,GAAG,YAAY,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAA3C,CAA2C,CAAC;AAEhG,MAAM,UAAU,YAAY,CAC1B,MAA6C;IAE7C,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,GAAG,IAAI,MAAM,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,MAA6C;IAE7C,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,GAAG,IAAI,MAAM,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,MAA6C;IAE7C,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;AACzD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ChartSeriesMarkerType } from '../internal/components/chart-series-marker';\nimport { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps } from './interfaces';\nimport { ScaledBarGroup } from './make-scaled-bar-groups';\n\nexport const chartLegendMap: Record<string, ChartSeriesMarkerType> = {\n line: 'line',\n bar: 'rectangle',\n threshold: 'dashed',\n};\n\n// Starting from the given index, find the first x value in the x domain that has bar data attached to it.\nexport const nextValidDomainIndex = <T>(nextGroupIndex: number, barGroups: ScaledBarGroup<T>[], direction = 1) => {\n let index = nextGroupIndex;\n\n if (index < 0 || index >= barGroups.length) {\n index = 0;\n }\n\n do {\n if (barGroups[index].isValid && barGroups[index].hasData) {\n return index;\n }\n index += direction;\n\n // Loop back to the beginning if necessary\n if (index >= barGroups.length) {\n index = 0;\n } else if (index < 0) {\n index = barGroups.length - 1;\n }\n } while (index !== nextGroupIndex);\n return 0;\n};\n\n/**\n * Find the subset of series that are individually navigable with keyboard.\n * Lines and thresholds are navigated individually, while bar series are grouped as one.\n */\nexport function findNavigableSeries<T extends ChartDataTypes>(series: ReadonlyArray<InternalChartSeries<T>>) {\n const navigableSeries: Array<MixedLineBarChartProps.ChartSeries<T>> = [];\n let navigableBarSeriesIndex = -1;\n\n series.forEach(internalSeries => {\n if (internalSeries.series.type === 'bar') {\n // Only include the first bar series because all bar series are handled as one\n if (navigableBarSeriesIndex === -1) {\n navigableBarSeriesIndex = navigableSeries.length;\n navigableSeries.push(internalSeries.series);\n }\n } else {\n navigableSeries.push(internalSeries.series);\n }\n });\n return { navigableSeries, navigableBarSeriesIndex };\n}\n\n/**\n * Checks if two x values are equal.\n * With a special treat for Date values which need to be converted to numbers first.\n */\nexport const matchesX = <T>(x1: T, x2: T) => {\n if (x1 instanceof Date && x2 instanceof Date) {\n return x1.getTime() === x2.getTime();\n }\n return x1 === x2;\n};\n\nexport type OffsetMap = Record<string | number, number>;\n\nexport interface StackedOffsets {\n positiveOffsets: OffsetMap;\n negativeOffsets: OffsetMap;\n}\n\n/**\n * Calculates list of offset maps from all data by accumulating each value\n */\nexport function calculateOffsetMaps(\n data: Array<readonly MixedLineBarChartProps.Datum<ChartDataTypes>[]>\n): StackedOffsets[] {\n return data.reduce((acc, curr, idx) => {\n // First series receives empty offsets map\n if (idx === 0) {\n acc.push({ positiveOffsets: {}, negativeOffsets: {} });\n }\n const lastMap = acc[idx];\n const map: StackedOffsets = lastMap\n ? { positiveOffsets: { ...lastMap.positiveOffsets }, negativeOffsets: { ...lastMap.negativeOffsets } }\n : { positiveOffsets: {}, negativeOffsets: {} };\n\n curr.forEach(({ x, y }) => {\n const key = getKeyValue(x);\n if (y < 0) {\n const lastValue = lastMap?.negativeOffsets[key] || 0;\n map.negativeOffsets[key] = lastValue + y;\n } else {\n const lastValue = lastMap?.positiveOffsets[key] || 0;\n map.positiveOffsets[key] = lastValue + y;\n }\n });\n\n // Ignore last value for map but still run it for logging\n if (idx < data.length - 1) {\n acc.push(map);\n }\n\n return acc;\n }, [] as StackedOffsets[]);\n}\n\n/** Returns string or number value for ChartDataTypes key */\nexport const getKeyValue = (key: ChartDataTypes) => (key instanceof Date ? key.getTime() : key);\n\nexport function isYThreshold<T>(\n series: MixedLineBarChartProps.ChartSeries<T>\n): series is MixedLineBarChartProps.YThresholdSeries {\n return series.type === 'threshold' && 'y' in series;\n}\n\nexport function isXThreshold<T>(\n series: MixedLineBarChartProps.ChartSeries<T>\n): series is MixedLineBarChartProps.XThresholdSeries<T> {\n return series.type === 'threshold' && 'x' in series;\n}\n\nexport function isDataSeries<T>(\n series: MixedLineBarChartProps.ChartSeries<T>\n): series is MixedLineBarChartProps.DataSeries<T> {\n return series.type === 'line' || series.type === 'bar';\n}\n"]}
@@ -103,9 +103,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
103
103
  }
104
104
  }
105
105
  .awsui_dialog_1d2i7_1q6b4_105:not(#\9) {
106
- animation: awsui_modal-slide-up_1d2i7_1q6b4_1 180ms ease-out, awsui_awsui-motion-fade-in-0_1d2i7_1q6b4_1 180ms ease-out;
107
106
  animation: awsui_modal-slide-up_1d2i7_1q6b4_1 var(--motion-duration-slow-0273ow, 180ms) ease-out, awsui_awsui-motion-fade-in-0_1d2i7_1q6b4_1 var(--motion-duration-slow-0273ow, 180ms) ease-out;
108
- animation-delay: 90ms;
109
107
  animation-delay: var(--motion-duration-fast-nk2ap0, 90ms);
110
108
  animation-fill-mode: both;
111
109
  }
@@ -129,9 +127,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
129
127
  }
130
128
  .awsui_dialog_1d2i7_1q6b4_105.awsui_refresh_1d2i7_1q6b4_128:not(#\9) {
131
129
  animation: awsui_awsui-motion-scale-popup_1d2i7_1q6b4_1, awsui_awsui-motion-fade-in-0_1d2i7_1q6b4_1;
132
- animation-duration: 115ms;
133
130
  animation-duration: var(--motion-duration-refresh-only-fast-addxjd, 115ms);
134
- animation-timing-function: cubic-bezier(0, 0, 0, 1);
135
131
  animation-timing-function: var(--motion-easing-refresh-only-a-sy0g8m, cubic-bezier(0, 0, 0, 1));
136
132
  animation-fill-mode: both;
137
133
  }
@@ -163,7 +159,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
163
159
  }
164
160
 
165
161
  .awsui_root_1d2i7_1q6b4_161:not(#\9) {
166
- animation: awsui_awsui-motion-fade-in_1d2i7_1q6b4_1 270ms ease-out;
167
162
  animation: awsui_awsui-motion-fade-in_1d2i7_1q6b4_1 var(--motion-duration-extra-slow-8ks5rs, 270ms) ease-out;
168
163
  animation-fill-mode: both;
169
164
  }
@@ -186,7 +181,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
186
181
  transition: none;
187
182
  }
188
183
  .awsui_root_1d2i7_1q6b4_161.awsui_refresh_1d2i7_1q6b4_128:not(#\9) {
189
- animation-duration: 115ms;
190
184
  animation-duration: var(--motion-duration-refresh-only-fast-addxjd, 115ms);
191
185
  }
192
186
  @media (prefers-reduced-motion: reduce) {
@@ -234,16 +228,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
234
228
  widows: 2;
235
229
  word-spacing: normal;
236
230
  box-sizing: border-box;
237
- font-size: 14px;
238
231
  font-size: var(--font-body-m-size-sregvd, 14px);
239
- line-height: 22px;
240
232
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
241
- color: #000716;
242
233
  color: var(--color-text-body-default-ajf1h5, #000716);
243
234
  font-weight: 400;
244
- font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
245
235
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
246
- background-color: rgba(35, 47, 62, 0.7);
247
236
  background-color: var(--color-background-modal-overlay-17dapf, rgba(35, 47, 62, 0.7));
248
237
  display: flex;
249
238
  align-items: center;
@@ -265,7 +254,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
265
254
  .awsui_focus-lock_1d2i7_1q6b4_228:not(#\9) {
266
255
  align-self: flex-start;
267
256
  margin: auto;
268
- padding: 12px 0;
269
257
  padding: var(--space-s-hv8c1d, 12px) 0;
270
258
  z-index: 5000;
271
259
  pointer-events: none;
@@ -275,7 +263,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
275
263
  position: static;
276
264
  top: 0;
277
265
  transform: translate(0, 0);
278
- width: calc(100vw - 12px * 2);
279
266
  width: calc(100vw - var(--space-s-hv8c1d, 12px) * 2);
280
267
  box-sizing: border-box;
281
268
  outline: none;
@@ -292,7 +279,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
292
279
  max-width: 820px;
293
280
  }
294
281
  .awsui_dialog_1d2i7_1q6b4_105.awsui_max_1d2i7_1q6b4_255.awsui_breakpoint-xs_1d2i7_1q6b4_255:not(#\9) {
295
- max-width: calc(100vw - (2 * 4 * 10px + 40px));
296
282
  max-width: calc(100vw - (2 * 4 * 10px + var(--space-xxxl-bo9z7f, 40px)));
297
283
  margin: auto;
298
284
  }
@@ -327,38 +313,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
327
313
  widows: 2;
328
314
  word-spacing: normal;
329
315
  box-sizing: border-box;
330
- font-size: 14px;
331
316
  font-size: var(--font-body-m-size-sregvd, 14px);
332
- line-height: 22px;
333
317
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
334
- color: #000716;
335
318
  color: var(--color-text-body-default-ajf1h5, #000716);
336
319
  font-weight: 400;
337
- font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
338
320
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
339
321
  display: block;
340
- background-color: #ffffff;
341
322
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
342
- box-shadow: 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12);
343
323
  box-shadow: var(--shadow-container-7nblnj, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
344
- border-top: 0px solid transparent;
345
324
  border-top: var(--border-container-top-width-jk6fhm, 0px) solid var(--color-border-container-top-srcvx4, transparent);
346
- border-radius: 16px;
347
325
  border-radius: var(--border-radius-container-gh9ysk, 16px);
348
326
  box-sizing: border-box;
349
- box-shadow: 0px 4px 20px 1px rgba(0, 7, 22, 0.1);
350
327
  box-shadow: var(--shadow-modal-3qhlqt, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
351
328
  word-wrap: break-word;
352
329
  }
353
330
  @media screen and (-ms-high-contrast: active) {
354
331
  .awsui_container_1d2i7_1q6b4_260:not(#\9) {
355
- border: 2px solid transparent;
356
332
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
357
333
  }
358
334
  }
359
335
 
360
336
  .awsui_content_1d2i7_1q6b4_284:not(#\9) {
361
- padding: 0px 24px 16px;
362
337
  padding: var(--space-container-content-top-fsd8nr, 0px) var(--space-modal-horizontal-738tw9, 24px) var(--space-modal-content-bottom-cecclv, 16px);
363
338
  }
364
339
  .awsui_content_1d2i7_1q6b4_284.awsui_no-paddings_1d2i7_1q6b4_287:not(#\9) {
@@ -366,13 +341,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
366
341
  }
367
342
 
368
343
  .awsui_header_1d2i7_1q6b4_291:not(#\9) {
369
- padding: 12px 24px;
370
344
  padding: var(--space-s-hv8c1d, 12px) var(--space-modal-horizontal-738tw9, 24px);
371
- background-color: #ffffff;
372
345
  background-color: var(--color-background-container-header-4flbq5, #ffffff);
373
- border-bottom: 1px solid transparent;
374
346
  border-bottom: 1px solid var(--color-border-container-divider-4ade7z, transparent);
375
- border-radius: 16px 16px 0 0;
376
347
  border-radius: var(--border-radius-container-gh9ysk, 16px) var(--border-radius-container-gh9ysk, 16px) 0 0;
377
348
  }
378
349
 
@@ -381,9 +352,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
381
352
  }
382
353
 
383
354
  .awsui_footer_1d2i7_1q6b4_302:not(#\9) {
384
- border-top: 2px solid #e9ebed;
385
355
  border-top: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
386
- padding: 12px 24px;
387
356
  padding: var(--space-scaled-s-cu1hzn, 12px) var(--space-container-horizontal-ddrezg, 24px);
388
357
  }
389
358
  .awsui_footer_1d2i7_1q6b4_302:not(#\9):after {
@@ -120,13 +120,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
120
120
  widows: 2;
121
121
  word-spacing: normal;
122
122
  box-sizing: border-box;
123
- font-size: 14px;
124
123
  font-size: var(--font-body-m-size-sregvd, 14px);
125
- line-height: 22px;
126
124
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
127
- color: #000716;
128
125
  color: var(--color-text-body-default-ajf1h5, #000716);
129
126
  font-weight: 400;
130
- font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
131
127
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
132
128
  }
package/package.json CHANGED
@@ -110,6 +110,6 @@
110
110
  "./internal/base-component/index.js",
111
111
  "./internal/base-component/styles.css.js"
112
112
  ],
113
- "version": "3.0.23",
113
+ "version": "3.0.26",
114
114
  "license": "Apache-2.0"
115
115
  }
@@ -120,14 +120,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
120
120
  widows: 2;
121
121
  word-spacing: normal;
122
122
  box-sizing: border-box;
123
- font-size: 14px;
124
123
  font-size: var(--font-body-m-size-sregvd, 14px);
125
- line-height: 22px;
126
124
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
127
- color: #000716;
128
125
  color: var(--color-text-body-default-ajf1h5, #000716);
129
126
  font-weight: 400;
130
- font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
131
127
  font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
132
128
  display: flex;
133
129
  flex-direction: row;
@@ -140,9 +136,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
140
136
 
141
137
  .awsui_button_fvjdu_1wwfw_111:not(#\9),
142
138
  .awsui_dots_fvjdu_1wwfw_112:not(#\9) {
143
- min-width: 20px;
144
139
  min-width: var(--space-l-4vl6xu, 20px);
145
- border: 2px solid transparent;
146
140
  border: var(--border-field-width-idlekx, 2px) solid transparent;
147
141
  }
148
142
 
@@ -159,63 +153,48 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
153
  }
160
154
  .awsui_button_fvjdu_1wwfw_111[data-awsui-focus-visible=true]:not(#\9):focus {
161
155
  outline: 2px dotted transparent;
162
- border: 2px solid #0972d3;
163
156
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-focused-ap3b6s, #0972d3);
164
- border-radius: 4px;
165
157
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
166
- box-shadow: 0 0 0 0px #0972d3;
167
158
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-srzyiu, 0px) var(--color-border-item-focused-ap3b6s, #0972d3);
168
159
  }
169
160
  .awsui_button-disabled_fvjdu_1wwfw_134:not(#\9) {
170
161
  cursor: default;
171
- color: #9ba7b6;
172
162
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
173
163
  }
174
164
 
175
165
  .awsui_arrow_fvjdu_1wwfw_139:not(#\9) {
176
- color: #414d5c;
177
166
  color: var(--color-text-interactive-default-eg5fsa, #414d5c);
178
167
  }
179
168
  .awsui_arrow_fvjdu_1wwfw_139:not(#\9):not(.awsui_button-disabled_fvjdu_1wwfw_134):hover {
180
- color: #000716;
181
169
  color: var(--color-text-interactive-hover-v3lasm, #000716);
182
170
  }
183
171
  .awsui_arrow_fvjdu_1wwfw_139.awsui_button-disabled_fvjdu_1wwfw_134:not(#\9) {
184
- color: #9ba7b6;
185
172
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
186
173
  }
187
174
 
188
175
  .awsui_page-number_fvjdu_1wwfw_149:not(#\9) {
189
- color: #414d5c;
190
176
  color: var(--color-text-pagination-page-number-default-z6gnaa, #414d5c);
191
177
  }
192
178
  .awsui_page-number_fvjdu_1wwfw_149:not(#\9):not(.awsui_button-disabled_fvjdu_1wwfw_134):hover {
193
- color: #000716;
194
179
  color: var(--color-text-interactive-hover-v3lasm, #000716);
195
180
  }
196
181
  .awsui_page-number_fvjdu_1wwfw_149.awsui_button-current_fvjdu_1wwfw_155:not(#\9) {
197
- font-weight: 800;
198
182
  font-weight: var(--font-wayfinding-link-active-weight-l3fid7, 800);
199
- color: #000716;
200
183
  color: var(--color-text-interactive-active-vol84d, #000716);
201
184
  }
202
185
  .awsui_page-number_fvjdu_1wwfw_149.awsui_button-current_fvjdu_1wwfw_155.awsui_button-disabled_fvjdu_1wwfw_134:not(#\9) {
203
- color: #9ba7b6;
204
186
  color: var(--color-text-pagination-page-number-active-disabled-sjs1t5, #9ba7b6);
205
187
  }
206
188
  .awsui_page-number_fvjdu_1wwfw_149.awsui_button-disabled_fvjdu_1wwfw_134:not(#\9) {
207
- color: #9ba7b6;
208
189
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
209
190
  }
210
191
 
211
192
  .awsui_dots_fvjdu_1wwfw_112:not(#\9) {
212
- color: #414d5c;
213
193
  color: var(--color-text-interactive-default-eg5fsa, #414d5c);
214
194
  }
215
195
 
216
196
  .awsui_page-item_fvjdu_1wwfw_170:not(#\9),
217
197
  .awsui_dots_fvjdu_1wwfw_112:not(#\9) {
218
- margin: 4px 4px;
219
198
  margin: var(--space-scaled-xxs-95dhkm, 4px) var(--space-xxs-ynfts5, 4px);
220
199
  text-align: center;
221
200
  box-sizing: border-box;
@@ -231,6 +210,5 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
231
210
  }
232
211
 
233
212
  .awsui_root-disabled_fvjdu_1wwfw_186 > .awsui_dots_fvjdu_1wwfw_112:not(#\9) {
234
- color: #9ba7b6;
235
213
  color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
236
214
  }