@highcharts/grid-pro 2.0.0
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/README.md +35 -0
- package/css/grid-pro.css +1756 -0
- package/es-modules/Accessibility/A11yI18n.d.ts +95 -0
- package/es-modules/Accessibility/A11yI18n.js +290 -0
- package/es-modules/Accessibility/Accessibility.d.ts +116 -0
- package/es-modules/Accessibility/Accessibility.js +402 -0
- package/es-modules/Accessibility/AccessibilityComponent.d.ts +97 -0
- package/es-modules/Accessibility/AccessibilityComponent.js +147 -0
- package/es-modules/Accessibility/Components/AnnotationsA11y.d.ts +43 -0
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +160 -0
- package/es-modules/Accessibility/Components/ContainerComponent.d.ts +48 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +142 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.d.ts +144 -0
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +555 -0
- package/es-modules/Accessibility/Components/LegendComponent.d.ts +124 -0
- package/es-modules/Accessibility/Components/LegendComponent.js +474 -0
- package/es-modules/Accessibility/Components/MenuComponent.d.ts +93 -0
- package/es-modules/Accessibility/Components/MenuComponent.js +430 -0
- package/es-modules/Accessibility/Components/NavigatorComponent.d.ts +57 -0
- package/es-modules/Accessibility/Components/NavigatorComponent.js +235 -0
- package/es-modules/Accessibility/Components/RangeSelectorComponent.d.ts +126 -0
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +473 -0
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.d.ts +18 -0
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +234 -0
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.d.ts +87 -0
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +309 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.d.ts +53 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +130 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.d.ts +28 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +415 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.d.ts +114 -0
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +721 -0
- package/es-modules/Accessibility/Components/ZoomComponent.d.ts +96 -0
- package/es-modules/Accessibility/Components/ZoomComponent.js +314 -0
- package/es-modules/Accessibility/FocusBorder.d.ts +40 -0
- package/es-modules/Accessibility/FocusBorder.js +301 -0
- package/es-modules/Accessibility/HighContrastMode.d.ts +35 -0
- package/es-modules/Accessibility/HighContrastMode.js +100 -0
- package/es-modules/Accessibility/HighContrastTheme.d.ts +11 -0
- package/es-modules/Accessibility/HighContrastTheme.js +212 -0
- package/es-modules/Accessibility/KeyboardNavigation.d.ts +133 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +450 -0
- package/es-modules/Accessibility/KeyboardNavigationHandler.d.ts +48 -0
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +126 -0
- package/es-modules/Accessibility/Options/A11yDefaults.d.ts +68 -0
- package/es-modules/Accessibility/Options/A11yDefaults.js +971 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.d.ts +22 -0
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +265 -0
- package/es-modules/Accessibility/Options/LangDefaults.d.ts +4 -0
- package/es-modules/Accessibility/Options/LangDefaults.js +440 -0
- package/es-modules/Accessibility/ProxyElement.d.ts +78 -0
- package/es-modules/Accessibility/ProxyElement.js +223 -0
- package/es-modules/Accessibility/ProxyProvider.d.ts +90 -0
- package/es-modules/Accessibility/ProxyProvider.js +315 -0
- package/es-modules/Accessibility/Utils/Announcer.d.ts +26 -0
- package/es-modules/Accessibility/Utils/Announcer.js +90 -0
- package/es-modules/Accessibility/Utils/ChartUtilities.d.ts +90 -0
- package/es-modules/Accessibility/Utils/ChartUtilities.js +298 -0
- package/es-modules/Accessibility/Utils/DOMElementProvider.d.ts +20 -0
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +69 -0
- package/es-modules/Accessibility/Utils/EventProvider.d.ts +26 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +65 -0
- package/es-modules/Accessibility/Utils/HTMLUtilities.d.ts +108 -0
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +319 -0
- package/es-modules/Core/Animation/AnimationUtilities.d.ts +107 -0
- package/es-modules/Core/Animation/AnimationUtilities.js +200 -0
- package/es-modules/Core/Animation/Fx.d.ts +130 -0
- package/es-modules/Core/Animation/Fx.js +388 -0
- package/es-modules/Core/Chart/Chart.d.ts +1009 -0
- package/es-modules/Core/Chart/Chart.js +3008 -0
- package/es-modules/Core/Chart/Chart3D.d.ts +276 -0
- package/es-modules/Core/Chart/Chart3D.js +1686 -0
- package/es-modules/Core/Chart/ChartDefaults.d.ts +8 -0
- package/es-modules/Core/Chart/ChartDefaults.js +1304 -0
- package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +55 -0
- package/es-modules/Core/Chart/ChartNavigationComposition.js +90 -0
- package/es-modules/Core/Chart/GanttChart.d.ts +74 -0
- package/es-modules/Core/Chart/GanttChart.js +189 -0
- package/es-modules/Core/Chart/MapChart.d.ts +132 -0
- package/es-modules/Core/Chart/MapChart.js +232 -0
- package/es-modules/Core/Chart/StockChart.d.ts +117 -0
- package/es-modules/Core/Chart/StockChart.js +641 -0
- package/es-modules/Core/Color/Color.d.ts +112 -0
- package/es-modules/Core/Color/Color.js +418 -0
- package/es-modules/Core/Color/Palettes.d.ts +84 -0
- package/es-modules/Core/Color/Palettes.js +23 -0
- package/es-modules/Core/Defaults.d.ts +42 -0
- package/es-modules/Core/Defaults.js +2977 -0
- package/es-modules/Core/Foundation.d.ts +19 -0
- package/es-modules/Core/Foundation.js +63 -0
- package/es-modules/Core/Geometry/CircleUtilities.d.ts +189 -0
- package/es-modules/Core/Geometry/CircleUtilities.js +388 -0
- package/es-modules/Core/Geometry/GeometryUtilities.d.ts +48 -0
- package/es-modules/Core/Geometry/GeometryUtilities.js +105 -0
- package/es-modules/Core/Geometry/PolygonClip.d.ts +19 -0
- package/es-modules/Core/Geometry/PolygonClip.js +96 -0
- package/es-modules/Core/Globals.d.ts +110 -0
- package/es-modules/Core/Globals.js +127 -0
- package/es-modules/Core/HttpUtilities.d.ts +61 -0
- package/es-modules/Core/HttpUtilities.js +214 -0
- package/es-modules/Core/MSPointer.d.ts +74 -0
- package/es-modules/Core/MSPointer.js +218 -0
- package/es-modules/Core/Math3D.d.ts +117 -0
- package/es-modules/Core/Math3D.js +250 -0
- package/es-modules/Core/Pointer.d.ts +590 -0
- package/es-modules/Core/Pointer.js +1631 -0
- package/es-modules/Core/Renderer/HTML/AST.d.ts +163 -0
- package/es-modules/Core/Renderer/HTML/AST.js +562 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +76 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +471 -0
- package/es-modules/Core/Renderer/RendererRegistry.d.ts +29 -0
- package/es-modules/Core/Renderer/RendererRegistry.js +76 -0
- package/es-modules/Core/Renderer/RendererUtilities.d.ts +26 -0
- package/es-modules/Core/Renderer/RendererUtilities.js +172 -0
- package/es-modules/Core/Responsive.d.ts +55 -0
- package/es-modules/Core/Responsive.js +260 -0
- package/es-modules/Core/Templating.d.ts +125 -0
- package/es-modules/Core/Templating.js +428 -0
- package/es-modules/Core/Time.d.ts +69 -0
- package/es-modules/Core/Time.js +172 -0
- package/es-modules/Core/Tooltip.d.ts +297 -0
- package/es-modules/Core/Tooltip.js +1377 -0
- package/es-modules/Core/Utilities.d.ts +770 -0
- package/es-modules/Core/Utilities.js +1989 -0
- package/es-modules/Data/ColumnUtils.d.ts +87 -0
- package/es-modules/Data/ColumnUtils.js +140 -0
- package/es-modules/Data/Connectors/CSVConnector.d.ts +63 -0
- package/es-modules/Data/Connectors/CSVConnector.js +149 -0
- package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +149 -0
- package/es-modules/Data/Connectors/DataConnector.d.ts +204 -0
- package/es-modules/Data/Connectors/DataConnector.js +345 -0
- package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +87 -0
- package/es-modules/Data/Connectors/DataConnectorType.d.ts +45 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnector.d.ts +65 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +226 -0
- package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +167 -0
- package/es-modules/Data/Connectors/HTMLTableConnector.d.ts +77 -0
- package/es-modules/Data/Connectors/HTMLTableConnector.js +119 -0
- package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +49 -0
- package/es-modules/Data/Connectors/JSONConnector.d.ts +64 -0
- package/es-modules/Data/Connectors/JSONConnector.js +156 -0
- package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +185 -0
- package/es-modules/Data/Converters/CSVConverter.d.ts +64 -0
- package/es-modules/Data/Converters/CSVConverter.js +374 -0
- package/es-modules/Data/Converters/CSVConverterOptions.d.ts +53 -0
- package/es-modules/Data/Converters/DataConverter.d.ts +168 -0
- package/es-modules/Data/Converters/DataConverter.js +387 -0
- package/es-modules/Data/Converters/DataConverterType.d.ts +40 -0
- package/es-modules/Data/Converters/DataConverterUtils.d.ts +82 -0
- package/es-modules/Data/Converters/DataConverterUtils.js +216 -0
- package/es-modules/Data/Converters/GoogleSheetsConverter.d.ts +46 -0
- package/es-modules/Data/Converters/GoogleSheetsConverter.js +135 -0
- package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +52 -0
- package/es-modules/Data/Converters/HTMLTableConverter.d.ts +72 -0
- package/es-modules/Data/Converters/HTMLTableConverter.js +362 -0
- package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +51 -0
- package/es-modules/Data/Converters/JSONConverter.d.ts +99 -0
- package/es-modules/Data/Converters/JSONConverter.js +239 -0
- package/es-modules/Data/Converters/JSONConverterOptions.d.ts +52 -0
- package/es-modules/Data/DataCursor.d.ts +176 -0
- package/es-modules/Data/DataCursor.js +379 -0
- package/es-modules/Data/DataEvent.d.ts +81 -0
- package/es-modules/Data/DataEvent.js +14 -0
- package/es-modules/Data/DataPool.d.ts +130 -0
- package/es-modules/Data/DataPool.js +257 -0
- package/es-modules/Data/DataPoolOptions.d.ts +66 -0
- package/es-modules/Data/DataTable.d.ts +563 -0
- package/es-modules/Data/DataTable.js +930 -0
- package/es-modules/Data/DataTableCore.d.ts +165 -0
- package/es-modules/Data/DataTableCore.js +316 -0
- package/es-modules/Data/DataTableOptions.d.ts +25 -0
- package/es-modules/Data/DataTableOptions.js +15 -0
- package/es-modules/Data/Formula/Formula.d.ts +21 -0
- package/es-modules/Data/Formula/Formula.js +54 -0
- package/es-modules/Data/Formula/FormulaParser.d.ts +31 -0
- package/es-modules/Data/Formula/FormulaParser.js +488 -0
- package/es-modules/Data/Formula/FormulaProcessor.d.ts +155 -0
- package/es-modules/Data/Formula/FormulaProcessor.js +529 -0
- package/es-modules/Data/Formula/FormulaTypes.d.ts +138 -0
- package/es-modules/Data/Formula/FormulaTypes.js +135 -0
- package/es-modules/Data/Formula/Functions/ABS.d.ts +19 -0
- package/es-modules/Data/Formula/Functions/ABS.js +67 -0
- package/es-modules/Data/Formula/Functions/AND.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AND.js +59 -0
- package/es-modules/Data/Formula/Functions/AVERAGE.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AVERAGE.js +74 -0
- package/es-modules/Data/Formula/Functions/AVERAGEA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/AVERAGEA.js +90 -0
- package/es-modules/Data/Formula/Functions/COUNT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/COUNT.js +65 -0
- package/es-modules/Data/Formula/Functions/COUNTA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/COUNTA.js +71 -0
- package/es-modules/Data/Formula/Functions/IF.d.ts +21 -0
- package/es-modules/Data/Formula/Functions/IF.js +54 -0
- package/es-modules/Data/Formula/Functions/ISNA.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/ISNA.js +52 -0
- package/es-modules/Data/Formula/Functions/MAX.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MAX.js +69 -0
- package/es-modules/Data/Formula/Functions/MEDIAN.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MEDIAN.js +78 -0
- package/es-modules/Data/Formula/Functions/MIN.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MIN.js +69 -0
- package/es-modules/Data/Formula/Functions/MOD.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/MOD.js +63 -0
- package/es-modules/Data/Formula/Functions/MODE.d.ts +41 -0
- package/es-modules/Data/Formula/Functions/MODE.js +149 -0
- package/es-modules/Data/Formula/Functions/NOT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/NOT.js +60 -0
- package/es-modules/Data/Formula/Functions/OR.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/OR.js +62 -0
- package/es-modules/Data/Formula/Functions/PRODUCT.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/PRODUCT.js +68 -0
- package/es-modules/Data/Formula/Functions/SUM.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/SUM.js +65 -0
- package/es-modules/Data/Formula/Functions/XOR.d.ts +20 -0
- package/es-modules/Data/Formula/Functions/XOR.js +81 -0
- package/es-modules/Data/Modifiers/ChainModifier.d.ts +128 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +231 -0
- package/es-modules/Data/Modifiers/ChainModifierOptions.d.ts +20 -0
- package/es-modules/Data/Modifiers/ChainModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/DataModifier.d.ts +117 -0
- package/es-modules/Data/Modifiers/DataModifier.js +202 -0
- package/es-modules/Data/Modifiers/DataModifierEvent.d.ts +28 -0
- package/es-modules/Data/Modifiers/DataModifierEvent.js +15 -0
- package/es-modules/Data/Modifiers/DataModifierOptions.d.ts +11 -0
- package/es-modules/Data/Modifiers/DataModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/DataModifierType.d.ts +44 -0
- package/es-modules/Data/Modifiers/FilterModifier.d.ts +53 -0
- package/es-modules/Data/Modifiers/FilterModifier.js +172 -0
- package/es-modules/Data/Modifiers/FilterModifierOptions.d.ts +110 -0
- package/es-modules/Data/Modifiers/FilterModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/InvertModifier.d.ts +48 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +116 -0
- package/es-modules/Data/Modifiers/InvertModifierOptions.d.ts +11 -0
- package/es-modules/Data/Modifiers/InvertModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/MathModifier.d.ts +68 -0
- package/es-modules/Data/Modifiers/MathModifier.js +165 -0
- package/es-modules/Data/Modifiers/MathModifierOptions.d.ts +50 -0
- package/es-modules/Data/Modifiers/MathModifierOptions.js +14 -0
- package/es-modules/Data/Modifiers/RangeModifier.d.ts +46 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +96 -0
- package/es-modules/Data/Modifiers/RangeModifierOptions.d.ts +22 -0
- package/es-modules/Data/Modifiers/RangeModifierOptions.js +15 -0
- package/es-modules/Data/Modifiers/SortModifier.d.ts +54 -0
- package/es-modules/Data/Modifiers/SortModifier.js +144 -0
- package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +44 -0
- package/es-modules/Data/Modifiers/SortModifierOptions.js +14 -0
- package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +148 -0
- package/es-modules/Grid/Core/Accessibility/A11yOptions.js +17 -0
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +115 -0
- package/es-modules/Grid/Core/Accessibility/Accessibility.js +231 -0
- package/es-modules/Grid/Core/Credits.d.ts +57 -0
- package/es-modules/Grid/Core/Credits.js +125 -0
- package/es-modules/Grid/Core/Defaults.d.ts +20 -0
- package/es-modules/Grid/Core/Defaults.js +148 -0
- package/es-modules/Grid/Core/Globals.d.ts +103 -0
- package/es-modules/Grid/Core/Globals.js +134 -0
- package/es-modules/Grid/Core/Grid.d.ts +295 -0
- package/es-modules/Grid/Core/Grid.js +730 -0
- package/es-modules/Grid/Core/GridUtils.d.ts +110 -0
- package/es-modules/Grid/Core/GridUtils.js +191 -0
- package/es-modules/Grid/Core/Options.d.ts +599 -0
- package/es-modules/Grid/Core/Options.js +16 -0
- package/es-modules/Grid/Core/Pagination/Icons.d.ts +7 -0
- package/es-modules/Grid/Core/Pagination/Icons.js +7 -0
- package/es-modules/Grid/Core/Pagination/Pagination.d.ts +278 -0
- package/es-modules/Grid/Core/Pagination/Pagination.js +842 -0
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +228 -0
- package/es-modules/Grid/Core/Querying/FilteringController.d.ts +66 -0
- package/es-modules/Grid/Core/Querying/FilteringController.js +256 -0
- package/es-modules/Grid/Core/Querying/PaginationController.d.ts +50 -0
- package/es-modules/Grid/Core/Querying/PaginationController.js +101 -0
- package/es-modules/Grid/Core/Querying/QueryingController.d.ts +58 -0
- package/es-modules/Grid/Core/Querying/QueryingController.js +127 -0
- package/es-modules/Grid/Core/Querying/SortingController.d.ts +67 -0
- package/es-modules/Grid/Core/Querying/SortingController.js +136 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +114 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +351 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +14 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +86 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.d.ts +19 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +80 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +52 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +81 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +56 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +170 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.d.ts +55 -0
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +182 -0
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +87 -0
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +346 -0
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +88 -0
- package/es-modules/Grid/Core/Table/Body/TableCell.js +231 -0
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +79 -0
- package/es-modules/Grid/Core/Table/Body/TableRow.js +177 -0
- package/es-modules/Grid/Core/Table/Cell.d.ts +92 -0
- package/es-modules/Grid/Core/Table/Cell.js +223 -0
- package/es-modules/Grid/Core/Table/CellContent/CellContent.d.ts +30 -0
- package/es-modules/Grid/Core/Table/CellContent/CellContent.js +40 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +19 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +98 -0
- package/es-modules/Grid/Core/Table/Column.d.ts +136 -0
- package/es-modules/Grid/Core/Table/Column.js +230 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +62 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +32 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +68 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +53 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.d.ts +7 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +63 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +92 -0
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +194 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.d.ts +68 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +187 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +29 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +77 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.d.ts +13 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +79 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +71 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +66 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +25 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +65 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +81 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +12 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +80 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +11 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +81 -0
- package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +70 -0
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +225 -0
- package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +53 -0
- package/es-modules/Grid/Core/Table/Header/HeaderRow.js +182 -0
- package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +65 -0
- package/es-modules/Grid/Core/Table/Header/TableHeader.js +159 -0
- package/es-modules/Grid/Core/Table/Row.d.ts +76 -0
- package/es-modules/Grid/Core/Table/Row.js +131 -0
- package/es-modules/Grid/Core/Table/Table.d.ts +181 -0
- package/es-modules/Grid/Core/Table/Table.js +399 -0
- package/es-modules/Grid/Core/UI/Button.d.ts +31 -0
- package/es-modules/Grid/Core/UI/Button.js +16 -0
- package/es-modules/Grid/Core/UI/ContextMenu.d.ts +38 -0
- package/es-modules/Grid/Core/UI/ContextMenu.js +132 -0
- package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +126 -0
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +183 -0
- package/es-modules/Grid/Core/UI/Popup.d.ts +149 -0
- package/es-modules/Grid/Core/UI/Popup.js +271 -0
- package/es-modules/Grid/Core/UI/SvgIcons.d.ts +53 -0
- package/es-modules/Grid/Core/UI/SvgIcons.js +158 -0
- package/es-modules/Grid/Core/UI/Toolbar.d.ts +16 -0
- package/es-modules/Grid/Core/UI/Toolbar.js +16 -0
- package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +135 -0
- package/es-modules/Grid/Core/UI/ToolbarButton.js +191 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +112 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +80 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +211 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +123 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +198 -0
- package/es-modules/Grid/Pro/CellRendering/CellContentPro.d.ts +23 -0
- package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +45 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +50 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +41 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +18 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +58 -0
- package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +48 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +18 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +79 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.d.ts +30 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +122 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +12 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +39 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +66 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +145 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +12 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +38 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +158 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +173 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +28 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +157 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.d.ts +58 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +168 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +13 -0
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +41 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +50 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +26 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +16 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +52 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +74 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +66 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +45 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +89 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +54 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +65 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +43 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +74 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +37 -0
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +64 -0
- package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +29 -0
- package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +118 -0
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +270 -0
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +32 -0
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +63 -0
- package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +35 -0
- package/es-modules/Grid/Pro/Credits/CreditsPro.js +112 -0
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +28 -0
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +61 -0
- package/es-modules/Grid/Pro/Export/Exporting.d.ts +68 -0
- package/es-modules/Grid/Pro/Export/Exporting.js +202 -0
- package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +68 -0
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +55 -0
- package/es-modules/Grid/Pro/GridEvents.d.ts +119 -0
- package/es-modules/Grid/Pro/GridEvents.js +107 -0
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +75 -0
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +76 -0
- package/es-modules/Grid/Pro/highcharts.d.ts +7 -0
- package/es-modules/Grid/index.d.ts +5 -0
- package/es-modules/Grid/index.js +19 -0
- package/es-modules/Shared/BaseForm.d.ts +49 -0
- package/es-modules/Shared/BaseForm.js +126 -0
- package/es-modules/Shared/DownloadURL.d.ts +85 -0
- package/es-modules/Shared/DownloadURL.js +198 -0
- package/es-modules/Shared/LangOptionsCore.d.ts +27 -0
- package/es-modules/Shared/TimeBase.d.ts +353 -0
- package/es-modules/Shared/TimeBase.js +830 -0
- package/es-modules/Shared/Types.d.ts +48 -0
- package/es-modules/masters/grid-pro.src.d.ts +99 -0
- package/es-modules/masters/grid-pro.src.js +129 -0
- package/grid-pro.d.ts +50 -0
- package/grid-pro.js +12 -0
- package/grid-pro.js.map +1 -0
- package/grid-pro.src.d.ts +50 -0
- package/grid-pro.src.js +26623 -0
- package/package.json +21 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type ColorString from './ColorString';
|
|
2
|
+
import type { ColorBase, ColorType } from './ColorType';
|
|
3
|
+
/**
|
|
4
|
+
* Handle color operations. Some object methods are chainable.
|
|
5
|
+
*
|
|
6
|
+
* @class
|
|
7
|
+
* @name Highcharts.Color
|
|
8
|
+
*
|
|
9
|
+
* @param {Highcharts.ColorType} input
|
|
10
|
+
* The input color.
|
|
11
|
+
*/
|
|
12
|
+
declare class Color implements ColorBase {
|
|
13
|
+
/**
|
|
14
|
+
* Collection of named colors. Can be extended from the outside by adding
|
|
15
|
+
* colors to Highcharts.Color.names.
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
static names: Record<string, ColorString>;
|
|
19
|
+
/**
|
|
20
|
+
* Collection of parsers. This can be extended from the outside by pushing
|
|
21
|
+
* parsers to `Color.parsers`.
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
static parsers: {
|
|
25
|
+
regex: RegExp;
|
|
26
|
+
parse: (result: RegExpExecArray) => Color.RGBA;
|
|
27
|
+
}[];
|
|
28
|
+
/**
|
|
29
|
+
* Whether to use CSS `color-mix` for color handling (brightening,
|
|
30
|
+
* tweening). This can be disabled from the outside.
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
static useColorMix: boolean;
|
|
34
|
+
static readonly None: Color;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a color instance out of a color string or object.
|
|
37
|
+
*
|
|
38
|
+
* @function Highcharts.Color.parse
|
|
39
|
+
*
|
|
40
|
+
* @param {Highcharts.ColorType} [input]
|
|
41
|
+
* The input color.
|
|
42
|
+
*
|
|
43
|
+
* @return {Highcharts.Color}
|
|
44
|
+
* Color instance.
|
|
45
|
+
*/
|
|
46
|
+
static parse(input?: ColorType): Color;
|
|
47
|
+
constructor(input: ColorType);
|
|
48
|
+
input: ColorType;
|
|
49
|
+
output?: string;
|
|
50
|
+
rgba: Color.RGBA;
|
|
51
|
+
stops?: Array<Color>;
|
|
52
|
+
/**
|
|
53
|
+
* Return the color or gradient stops in the specified format
|
|
54
|
+
*
|
|
55
|
+
* @function Highcharts.Color#get
|
|
56
|
+
*
|
|
57
|
+
* @param {string} [format]
|
|
58
|
+
* Possible values are 'a', 'rgb', 'rgba' (default).
|
|
59
|
+
*
|
|
60
|
+
* @return {Highcharts.ColorType}
|
|
61
|
+
* This color as a string or gradient stops.
|
|
62
|
+
*/
|
|
63
|
+
get(format?: ('a' | 'rgb' | 'rgba')): ColorType;
|
|
64
|
+
/**
|
|
65
|
+
* Brighten the color instance.
|
|
66
|
+
*
|
|
67
|
+
* @function Highcharts.Color#brighten
|
|
68
|
+
*
|
|
69
|
+
* @param {number} alpha
|
|
70
|
+
* The alpha value.
|
|
71
|
+
*
|
|
72
|
+
* @return {Highcharts.Color}
|
|
73
|
+
* This color with modifications.
|
|
74
|
+
*/
|
|
75
|
+
brighten(alpha: number): this;
|
|
76
|
+
/**
|
|
77
|
+
* Set the color's opacity to a given alpha value.
|
|
78
|
+
*
|
|
79
|
+
* @function Highcharts.Color#setOpacity
|
|
80
|
+
*
|
|
81
|
+
* @param {number} alpha
|
|
82
|
+
* Opacity between 0 and 1.
|
|
83
|
+
*
|
|
84
|
+
* @return {Highcharts.Color}
|
|
85
|
+
* Color with modifications.
|
|
86
|
+
*/
|
|
87
|
+
setOpacity(alpha: number): this;
|
|
88
|
+
/**
|
|
89
|
+
* Return an intermediate color between two colors.
|
|
90
|
+
*
|
|
91
|
+
* @function Highcharts.Color#tweenTo
|
|
92
|
+
*
|
|
93
|
+
* @param {Highcharts.Color} to
|
|
94
|
+
* The color object to tween to.
|
|
95
|
+
*
|
|
96
|
+
* @param {number} pos
|
|
97
|
+
* The intermediate position, where 0 is the from color (current color
|
|
98
|
+
* item), and 1 is the `to` color.
|
|
99
|
+
*
|
|
100
|
+
* @return {Highcharts.ColorType}
|
|
101
|
+
* The intermediate color in rgba notation, or unsupported type.
|
|
102
|
+
*/
|
|
103
|
+
tweenTo(to: Color, pos: number): ColorType;
|
|
104
|
+
}
|
|
105
|
+
declare namespace Color {
|
|
106
|
+
interface Parser {
|
|
107
|
+
regex: RegExp;
|
|
108
|
+
parse: (result: RegExpExecArray) => RGBA;
|
|
109
|
+
}
|
|
110
|
+
type RGBA = [number, number, number, number];
|
|
111
|
+
}
|
|
112
|
+
export default Color;
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2025 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
'use strict';
|
|
11
|
+
import H from '../Globals.js';
|
|
12
|
+
const { win } = H;
|
|
13
|
+
import U from '../Utilities.js';
|
|
14
|
+
const { isNumber, isString, merge, pInt, defined } = U;
|
|
15
|
+
/* *
|
|
16
|
+
*
|
|
17
|
+
* Helpers
|
|
18
|
+
*
|
|
19
|
+
* */
|
|
20
|
+
const colorMix = (color1, color2, weight) => `color-mix(in srgb,${color1},${color2} ${weight * 100}%)`;
|
|
21
|
+
const isStringColor = (color) => isString(color) && !!color && color !== 'none';
|
|
22
|
+
/* *
|
|
23
|
+
*
|
|
24
|
+
* Class
|
|
25
|
+
*
|
|
26
|
+
* */
|
|
27
|
+
/* eslint-disable valid-jsdoc */
|
|
28
|
+
/**
|
|
29
|
+
* Handle color operations. Some object methods are chainable.
|
|
30
|
+
*
|
|
31
|
+
* @class
|
|
32
|
+
* @name Highcharts.Color
|
|
33
|
+
*
|
|
34
|
+
* @param {Highcharts.ColorType} input
|
|
35
|
+
* The input color.
|
|
36
|
+
*/
|
|
37
|
+
class Color {
|
|
38
|
+
/* *
|
|
39
|
+
*
|
|
40
|
+
* Static Functions
|
|
41
|
+
*
|
|
42
|
+
* */
|
|
43
|
+
/**
|
|
44
|
+
* Creates a color instance out of a color string or object.
|
|
45
|
+
*
|
|
46
|
+
* @function Highcharts.Color.parse
|
|
47
|
+
*
|
|
48
|
+
* @param {Highcharts.ColorType} [input]
|
|
49
|
+
* The input color.
|
|
50
|
+
*
|
|
51
|
+
* @return {Highcharts.Color}
|
|
52
|
+
* Color instance.
|
|
53
|
+
*/
|
|
54
|
+
static parse(input) {
|
|
55
|
+
return input ? new Color(input) : Color.None;
|
|
56
|
+
}
|
|
57
|
+
/* *
|
|
58
|
+
*
|
|
59
|
+
* Constructor
|
|
60
|
+
*
|
|
61
|
+
* */
|
|
62
|
+
constructor(input) {
|
|
63
|
+
this.rgba = [NaN, NaN, NaN, NaN];
|
|
64
|
+
this.input = input;
|
|
65
|
+
const GlobalColor = H.Color;
|
|
66
|
+
// Backwards compatibility, allow class overwrite
|
|
67
|
+
if (GlobalColor && GlobalColor !== Color) {
|
|
68
|
+
return new GlobalColor(input);
|
|
69
|
+
}
|
|
70
|
+
let result, rgba, i, parser;
|
|
71
|
+
// Gradients
|
|
72
|
+
if (typeof input === 'object' &&
|
|
73
|
+
typeof input.stops !== 'undefined') {
|
|
74
|
+
this.stops = input.stops.map((stop) => new Color(stop[1]));
|
|
75
|
+
// Solid colors
|
|
76
|
+
}
|
|
77
|
+
else if (typeof input === 'string') {
|
|
78
|
+
this.input = input = (Color.names[input.toLowerCase()] || input);
|
|
79
|
+
i = Color.parsers.length;
|
|
80
|
+
while (i-- && !rgba) {
|
|
81
|
+
parser = Color.parsers[i];
|
|
82
|
+
result = parser.regex.exec(input);
|
|
83
|
+
if (result) {
|
|
84
|
+
rgba = parser.parse(result);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (rgba) {
|
|
89
|
+
this.rgba = rgba;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/* *
|
|
93
|
+
*
|
|
94
|
+
* Functions
|
|
95
|
+
*
|
|
96
|
+
* */
|
|
97
|
+
/**
|
|
98
|
+
* Return the color or gradient stops in the specified format
|
|
99
|
+
*
|
|
100
|
+
* @function Highcharts.Color#get
|
|
101
|
+
*
|
|
102
|
+
* @param {string} [format]
|
|
103
|
+
* Possible values are 'a', 'rgb', 'rgba' (default).
|
|
104
|
+
*
|
|
105
|
+
* @return {Highcharts.ColorType}
|
|
106
|
+
* This color as a string or gradient stops.
|
|
107
|
+
*/
|
|
108
|
+
get(format) {
|
|
109
|
+
const input = this.input, rgba = this.rgba;
|
|
110
|
+
if (this.output) {
|
|
111
|
+
return this.output;
|
|
112
|
+
}
|
|
113
|
+
if (typeof input === 'object' &&
|
|
114
|
+
typeof this.stops !== 'undefined') {
|
|
115
|
+
const ret = merge(input);
|
|
116
|
+
ret.stops = [].slice.call(ret.stops);
|
|
117
|
+
this.stops.forEach((stop, i) => {
|
|
118
|
+
ret.stops[i] = [
|
|
119
|
+
ret.stops[i][0],
|
|
120
|
+
stop.get(format)
|
|
121
|
+
];
|
|
122
|
+
});
|
|
123
|
+
return ret;
|
|
124
|
+
}
|
|
125
|
+
// It's NaN if gradient colors on a column chart
|
|
126
|
+
if (rgba && isNumber(rgba[0])) {
|
|
127
|
+
if (format === 'rgb' || (!format && rgba[3] === 1)) {
|
|
128
|
+
return 'rgb(' + rgba[0] + ',' + rgba[1] + ',' + rgba[2] + ')';
|
|
129
|
+
}
|
|
130
|
+
if (format === 'a') {
|
|
131
|
+
return `${rgba[3]}`;
|
|
132
|
+
}
|
|
133
|
+
return 'rgba(' + rgba.join(',') + ')';
|
|
134
|
+
}
|
|
135
|
+
return input;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Brighten the color instance.
|
|
139
|
+
*
|
|
140
|
+
* @function Highcharts.Color#brighten
|
|
141
|
+
*
|
|
142
|
+
* @param {number} alpha
|
|
143
|
+
* The alpha value.
|
|
144
|
+
*
|
|
145
|
+
* @return {Highcharts.Color}
|
|
146
|
+
* This color with modifications.
|
|
147
|
+
*/
|
|
148
|
+
brighten(alpha) {
|
|
149
|
+
const rgba = this.rgba;
|
|
150
|
+
if (this.stops) {
|
|
151
|
+
this.stops.forEach(function (stop) {
|
|
152
|
+
stop.brighten(alpha);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else if (isNumber(alpha) && alpha !== 0) {
|
|
156
|
+
if (isNumber(rgba[0])) {
|
|
157
|
+
for (let i = 0; i < 3; i++) {
|
|
158
|
+
rgba[i] += pInt(alpha * 255);
|
|
159
|
+
if (rgba[i] < 0) {
|
|
160
|
+
rgba[i] = 0;
|
|
161
|
+
}
|
|
162
|
+
if (rgba[i] > 255) {
|
|
163
|
+
rgba[i] = 255;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else if (Color.useColorMix && isStringColor(this.input)) {
|
|
168
|
+
this.output = colorMix(this.input, alpha > 0 ? 'white' : 'black', Math.abs(alpha));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Set the color's opacity to a given alpha value.
|
|
175
|
+
*
|
|
176
|
+
* @function Highcharts.Color#setOpacity
|
|
177
|
+
*
|
|
178
|
+
* @param {number} alpha
|
|
179
|
+
* Opacity between 0 and 1.
|
|
180
|
+
*
|
|
181
|
+
* @return {Highcharts.Color}
|
|
182
|
+
* Color with modifications.
|
|
183
|
+
*/
|
|
184
|
+
setOpacity(alpha) {
|
|
185
|
+
this.rgba[3] = alpha;
|
|
186
|
+
return this;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Return an intermediate color between two colors.
|
|
190
|
+
*
|
|
191
|
+
* @function Highcharts.Color#tweenTo
|
|
192
|
+
*
|
|
193
|
+
* @param {Highcharts.Color} to
|
|
194
|
+
* The color object to tween to.
|
|
195
|
+
*
|
|
196
|
+
* @param {number} pos
|
|
197
|
+
* The intermediate position, where 0 is the from color (current color
|
|
198
|
+
* item), and 1 is the `to` color.
|
|
199
|
+
*
|
|
200
|
+
* @return {Highcharts.ColorType}
|
|
201
|
+
* The intermediate color in rgba notation, or unsupported type.
|
|
202
|
+
*/
|
|
203
|
+
tweenTo(to, pos) {
|
|
204
|
+
const fromRgba = this.rgba, toRgba = to.rgba;
|
|
205
|
+
// Unsupported color, return to-color (#3920, #7034)
|
|
206
|
+
if (!isNumber(fromRgba[0]) || !isNumber(toRgba[0])) {
|
|
207
|
+
if (Color.useColorMix &&
|
|
208
|
+
isStringColor(this.input) &&
|
|
209
|
+
isStringColor(to.input) &&
|
|
210
|
+
pos < 0.99) {
|
|
211
|
+
return colorMix(this.input, to.input, pos);
|
|
212
|
+
}
|
|
213
|
+
return to.input || 'none';
|
|
214
|
+
}
|
|
215
|
+
// Check for has alpha, because rgba colors perform worse due to
|
|
216
|
+
// lack of support in WebKit.
|
|
217
|
+
const hasAlpha = (toRgba[3] !== 1 || fromRgba[3] !== 1), channel = (to, i) => to + (fromRgba[i] - to) * (1 - pos), rgba = toRgba.slice(0, 3).map(channel).map(Math.round);
|
|
218
|
+
if (hasAlpha) {
|
|
219
|
+
rgba.push(channel(toRgba[3], 3));
|
|
220
|
+
}
|
|
221
|
+
return (hasAlpha ? 'rgba(' : 'rgb(') + rgba.join(',') + ')';
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/* *
|
|
225
|
+
*
|
|
226
|
+
* Static Properties
|
|
227
|
+
*
|
|
228
|
+
* */
|
|
229
|
+
/**
|
|
230
|
+
* Collection of named colors. Can be extended from the outside by adding
|
|
231
|
+
* colors to Highcharts.Color.names.
|
|
232
|
+
* @private
|
|
233
|
+
*/
|
|
234
|
+
Color.names = {
|
|
235
|
+
white: '#ffffff',
|
|
236
|
+
black: '#000000'
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Collection of parsers. This can be extended from the outside by pushing
|
|
240
|
+
* parsers to `Color.parsers`.
|
|
241
|
+
* @private
|
|
242
|
+
*/
|
|
243
|
+
Color.parsers = [{
|
|
244
|
+
// RGBA color
|
|
245
|
+
// eslint-disable-next-line max-len
|
|
246
|
+
regex: /rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,
|
|
247
|
+
parse: function (result) {
|
|
248
|
+
return [
|
|
249
|
+
pInt(result[1]),
|
|
250
|
+
pInt(result[2]),
|
|
251
|
+
pInt(result[3]),
|
|
252
|
+
parseFloat(result[4], 10)
|
|
253
|
+
];
|
|
254
|
+
}
|
|
255
|
+
}, {
|
|
256
|
+
// RGB color
|
|
257
|
+
regex: /rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,
|
|
258
|
+
parse: function (result) {
|
|
259
|
+
return [pInt(result[1]), pInt(result[2]), pInt(result[3]), 1];
|
|
260
|
+
}
|
|
261
|
+
}, {
|
|
262
|
+
// RGBA 3 & 4 digit hex color, e.g. #F0F, #F0FA
|
|
263
|
+
regex: /^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,
|
|
264
|
+
parse: function (result) {
|
|
265
|
+
// #abcd => #aabbccdd, hence result + result.
|
|
266
|
+
return [
|
|
267
|
+
(pInt(result[1] + result[1], 16)),
|
|
268
|
+
(pInt(result[2] + result[2], 16)),
|
|
269
|
+
(pInt(result[3] + result[3], 16)),
|
|
270
|
+
!defined(result[4]) ?
|
|
271
|
+
1 :
|
|
272
|
+
(pInt(result[4] + result[4], 16) / 255)
|
|
273
|
+
];
|
|
274
|
+
}
|
|
275
|
+
}, {
|
|
276
|
+
// RGBA 6 & 8 digit hex color, e.g. #FFCC00, #FFCC00FF
|
|
277
|
+
regex: /^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,
|
|
278
|
+
parse: function (result) {
|
|
279
|
+
return [
|
|
280
|
+
pInt(result[1], 16),
|
|
281
|
+
pInt(result[2], 16),
|
|
282
|
+
pInt(result[3], 16),
|
|
283
|
+
!defined(result[4]) ?
|
|
284
|
+
1 :
|
|
285
|
+
(pInt(result[4], 16) / 255)
|
|
286
|
+
];
|
|
287
|
+
}
|
|
288
|
+
}];
|
|
289
|
+
/**
|
|
290
|
+
* Whether to use CSS `color-mix` for color handling (brightening,
|
|
291
|
+
* tweening). This can be disabled from the outside.
|
|
292
|
+
* @private
|
|
293
|
+
*/
|
|
294
|
+
Color.useColorMix = win.CSS?.supports('color', 'color-mix(in srgb,red,blue 9%)');
|
|
295
|
+
// Must be last static member for init cycle
|
|
296
|
+
Color.None = new Color('');
|
|
297
|
+
/* *
|
|
298
|
+
*
|
|
299
|
+
* Default Export
|
|
300
|
+
*
|
|
301
|
+
* */
|
|
302
|
+
export default Color;
|
|
303
|
+
/* *
|
|
304
|
+
*
|
|
305
|
+
* API Declarations
|
|
306
|
+
*
|
|
307
|
+
* */
|
|
308
|
+
/**
|
|
309
|
+
* A valid color to be parsed and handled by Highcharts.
|
|
310
|
+
*
|
|
311
|
+
* @typedef {string} Highcharts.ColorString
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* A valid color type than can be parsed and handled by Highcharts. It can be a
|
|
315
|
+
* color string, a gradient object, or a pattern object.
|
|
316
|
+
*
|
|
317
|
+
* @typedef {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} Highcharts.ColorType
|
|
318
|
+
*/
|
|
319
|
+
/**
|
|
320
|
+
* Gradient options instead of a solid color.
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* // Linear gradient used as a color option
|
|
324
|
+
* color: {
|
|
325
|
+
* linearGradient: { x1: 0, x2: 0, y1: 0, y2: 1 },
|
|
326
|
+
* stops: [
|
|
327
|
+
* [0, '#003399'], // start
|
|
328
|
+
* [0.5, '#ffffff'], // middle
|
|
329
|
+
* [1, '#3366AA'] // end
|
|
330
|
+
* ]
|
|
331
|
+
* }
|
|
332
|
+
*
|
|
333
|
+
* @interface Highcharts.GradientColorObject
|
|
334
|
+
*/ /**
|
|
335
|
+
* Holds an object that defines the start position and the end position relative
|
|
336
|
+
* to the shape.
|
|
337
|
+
* @name Highcharts.GradientColorObject#linearGradient
|
|
338
|
+
* @type {Highcharts.LinearGradientColorObject|undefined}
|
|
339
|
+
*/ /**
|
|
340
|
+
* Holds an object that defines the center position and the radius.
|
|
341
|
+
* @name Highcharts.GradientColorObject#radialGradient
|
|
342
|
+
* @type {Highcharts.RadialGradientColorObject|undefined}
|
|
343
|
+
*/ /**
|
|
344
|
+
* The first item in each tuple is the position in the gradient, where 0 is the
|
|
345
|
+
* start of the gradient and 1 is the end of the gradient. Multiple stops can be
|
|
346
|
+
* applied. The second item is the color for each stop. This color can also be
|
|
347
|
+
* given in the rgba format.
|
|
348
|
+
* @name Highcharts.GradientColorObject#stops
|
|
349
|
+
* @type {Array<Highcharts.GradientColorStopObject>}
|
|
350
|
+
*/
|
|
351
|
+
/**
|
|
352
|
+
* Color stop tuple.
|
|
353
|
+
*
|
|
354
|
+
* @see Highcharts.GradientColorObject
|
|
355
|
+
*
|
|
356
|
+
* @interface Highcharts.GradientColorStopObject
|
|
357
|
+
*/ /**
|
|
358
|
+
* @name Highcharts.GradientColorStopObject#0
|
|
359
|
+
* @type {number}
|
|
360
|
+
*/ /**
|
|
361
|
+
* @name Highcharts.GradientColorStopObject#1
|
|
362
|
+
* @type {Highcharts.ColorString}
|
|
363
|
+
*/ /**
|
|
364
|
+
* @name Highcharts.GradientColorStopObject#color
|
|
365
|
+
* @type {Highcharts.Color|undefined}
|
|
366
|
+
*/
|
|
367
|
+
/**
|
|
368
|
+
* Defines the start position and the end position for a gradient relative
|
|
369
|
+
* to the shape. Start position (x1, y1) and end position (x2, y2) are relative
|
|
370
|
+
* to the shape, where 0 means top/left and 1 is bottom/right.
|
|
371
|
+
*
|
|
372
|
+
* @interface Highcharts.LinearGradientColorObject
|
|
373
|
+
*/ /**
|
|
374
|
+
* Start horizontal position of the gradient. Float ranges 0-1.
|
|
375
|
+
* @name Highcharts.LinearGradientColorObject#x1
|
|
376
|
+
* @type {number}
|
|
377
|
+
*/ /**
|
|
378
|
+
* End horizontal position of the gradient. Float ranges 0-1.
|
|
379
|
+
* @name Highcharts.LinearGradientColorObject#x2
|
|
380
|
+
* @type {number}
|
|
381
|
+
*/ /**
|
|
382
|
+
* Start vertical position of the gradient. Float ranges 0-1.
|
|
383
|
+
* @name Highcharts.LinearGradientColorObject#y1
|
|
384
|
+
* @type {number}
|
|
385
|
+
*/ /**
|
|
386
|
+
* End vertical position of the gradient. Float ranges 0-1.
|
|
387
|
+
* @name Highcharts.LinearGradientColorObject#y2
|
|
388
|
+
* @type {number}
|
|
389
|
+
*/
|
|
390
|
+
/**
|
|
391
|
+
* Defines the center position and the radius for a gradient.
|
|
392
|
+
*
|
|
393
|
+
* @interface Highcharts.RadialGradientColorObject
|
|
394
|
+
*/ /**
|
|
395
|
+
* Center horizontal position relative to the shape. Float ranges 0-1.
|
|
396
|
+
* @name Highcharts.RadialGradientColorObject#cx
|
|
397
|
+
* @type {number}
|
|
398
|
+
*/ /**
|
|
399
|
+
* Center vertical position relative to the shape. Float ranges 0-1.
|
|
400
|
+
* @name Highcharts.RadialGradientColorObject#cy
|
|
401
|
+
* @type {number}
|
|
402
|
+
*/ /**
|
|
403
|
+
* Radius relative to the shape. Float ranges 0-1.
|
|
404
|
+
* @name Highcharts.RadialGradientColorObject#r
|
|
405
|
+
* @type {number}
|
|
406
|
+
*/
|
|
407
|
+
/**
|
|
408
|
+
* Creates a color instance out of a color string.
|
|
409
|
+
*
|
|
410
|
+
* @function Highcharts.color
|
|
411
|
+
*
|
|
412
|
+
* @param {Highcharts.ColorType} input
|
|
413
|
+
* The input color.
|
|
414
|
+
*
|
|
415
|
+
* @return {Highcharts.Color}
|
|
416
|
+
* Color instance
|
|
417
|
+
*/
|
|
418
|
+
(''); // Detach doclets above
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type ColorString from './ColorString';
|
|
2
|
+
/**
|
|
3
|
+
* Palette for Highcharts. Palette colors are defined in highcharts.css.
|
|
4
|
+
* **Do not edit this file!** This file is generated using the 'gulp palette' task.
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
7
|
+
export declare const enum Palette {
|
|
8
|
+
/**
|
|
9
|
+
* Chart background, point stroke for markers and columns etc
|
|
10
|
+
*/
|
|
11
|
+
backgroundColor = "#ffffff",
|
|
12
|
+
/**
|
|
13
|
+
* Strong text.
|
|
14
|
+
*/
|
|
15
|
+
neutralColor100 = "#000000",
|
|
16
|
+
/**
|
|
17
|
+
* Main text, axis labels and some strokes.
|
|
18
|
+
*/
|
|
19
|
+
neutralColor80 = "#333333",
|
|
20
|
+
/**
|
|
21
|
+
* Axis title, connector fallback.
|
|
22
|
+
*/
|
|
23
|
+
neutralColor60 = "#666666",
|
|
24
|
+
/**
|
|
25
|
+
* Credits text, export menu stroke.
|
|
26
|
+
*/
|
|
27
|
+
neutralColor40 = "#999999",
|
|
28
|
+
/**
|
|
29
|
+
* Disabled texts, button strokes, crosshair etc.
|
|
30
|
+
*/
|
|
31
|
+
neutralColor20 = "#cccccc",
|
|
32
|
+
/**
|
|
33
|
+
* Grid lines etc.
|
|
34
|
+
*/
|
|
35
|
+
neutralColor10 = "#e6e6e6",
|
|
36
|
+
/**
|
|
37
|
+
* Minor grid lines etc.
|
|
38
|
+
*/
|
|
39
|
+
neutralColor5 = "#f2f2f2",
|
|
40
|
+
/**
|
|
41
|
+
* Tooltip background, button fills, map null points.
|
|
42
|
+
*/
|
|
43
|
+
neutralColor3 = "#f7f7f7",
|
|
44
|
+
/**
|
|
45
|
+
* Drilldown clickable labels, color axis max color.
|
|
46
|
+
*/
|
|
47
|
+
highlightColor100 = "#0022ff",
|
|
48
|
+
/**
|
|
49
|
+
* Selection marker, menu hover, button hover, chart border, navigator series.
|
|
50
|
+
*/
|
|
51
|
+
highlightColor80 = "#334eff",
|
|
52
|
+
/**
|
|
53
|
+
* Navigator mask fill.
|
|
54
|
+
*/
|
|
55
|
+
highlightColor60 = "#667aff",
|
|
56
|
+
/**
|
|
57
|
+
* Ticks and axis line.
|
|
58
|
+
*/
|
|
59
|
+
highlightColor20 = "#ccd3ff",
|
|
60
|
+
/**
|
|
61
|
+
* Pressed button, color axis min color.
|
|
62
|
+
*/
|
|
63
|
+
highlightColor10 = "#e6e9ff",
|
|
64
|
+
/**
|
|
65
|
+
* Indicators
|
|
66
|
+
*/
|
|
67
|
+
positiveColor = "#06b535",
|
|
68
|
+
/**
|
|
69
|
+
* Indicators
|
|
70
|
+
*/
|
|
71
|
+
negativeColor = "#f21313"
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Series palettes for Highcharts. Series colors are defined in highcharts.css.
|
|
75
|
+
* **Do not edit this file!** This file is generated using the 'gulp palette' task.
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
78
|
+
declare const SeriesPalettes: {
|
|
79
|
+
/**
|
|
80
|
+
* Colors for data series and points
|
|
81
|
+
*/
|
|
82
|
+
colors: Array<ColorString>;
|
|
83
|
+
};
|
|
84
|
+
export default SeriesPalettes;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Series palettes for Highcharts. Series colors are defined in highcharts.css.
|
|
3
|
+
* **Do not edit this file!** This file is generated using the 'gulp palette' task.
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
const SeriesPalettes = {
|
|
7
|
+
/**
|
|
8
|
+
* Colors for data series and points
|
|
9
|
+
*/
|
|
10
|
+
colors: [
|
|
11
|
+
'#2caffe',
|
|
12
|
+
'#544fc5',
|
|
13
|
+
'#00e272',
|
|
14
|
+
'#fe6a35',
|
|
15
|
+
'#6b8abc',
|
|
16
|
+
'#d568fb',
|
|
17
|
+
'#2ee0ca',
|
|
18
|
+
'#fa4b42',
|
|
19
|
+
'#feb56a',
|
|
20
|
+
'#91e8e1'
|
|
21
|
+
],
|
|
22
|
+
};
|
|
23
|
+
export default SeriesPalettes;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { DeepPartial } from '../Shared/Types';
|
|
2
|
+
import type { DefaultOptions, Options } from './Options';
|
|
3
|
+
import Time from './Time.js';
|
|
4
|
+
declare module './GlobalsBase' {
|
|
5
|
+
interface GlobalsBase {
|
|
6
|
+
defaultOptions: DefaultOptions;
|
|
7
|
+
time: Time;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the updated default options. Until 3.0.7, merely exposing defaultOptions
|
|
12
|
+
* for outside modules wasn't enough because the setOptions method created a new
|
|
13
|
+
* object.
|
|
14
|
+
*
|
|
15
|
+
* @function Highcharts.getOptions
|
|
16
|
+
*
|
|
17
|
+
* @return {Highcharts.Options}
|
|
18
|
+
* Default options.
|
|
19
|
+
*/
|
|
20
|
+
declare function getOptions(): DefaultOptions;
|
|
21
|
+
/**
|
|
22
|
+
* Merge the default options with custom options and return the new options
|
|
23
|
+
* structure. Commonly used for defining reusable templates.
|
|
24
|
+
*
|
|
25
|
+
* @sample highcharts/members/setoptions Applying a global theme
|
|
26
|
+
*
|
|
27
|
+
* @function Highcharts.setOptions
|
|
28
|
+
*
|
|
29
|
+
* @param {Highcharts.Options} options
|
|
30
|
+
* The new custom chart options.
|
|
31
|
+
*
|
|
32
|
+
* @return {Highcharts.Options}
|
|
33
|
+
* Updated options.
|
|
34
|
+
*/
|
|
35
|
+
declare function setOptions(options: DeepPartial<DefaultOptions>): Options;
|
|
36
|
+
declare const DefaultOptions: {
|
|
37
|
+
defaultOptions: DefaultOptions;
|
|
38
|
+
defaultTime: Time;
|
|
39
|
+
getOptions: typeof getOptions;
|
|
40
|
+
setOptions: typeof setOptions;
|
|
41
|
+
};
|
|
42
|
+
export default DefaultOptions;
|