@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,165 @@
|
|
|
1
|
+
import type DataEvent from './DataEvent.js';
|
|
2
|
+
import type DataTable from './DataTable.js';
|
|
3
|
+
import type DataTableOptions from './DataTableOptions.js';
|
|
4
|
+
/**
|
|
5
|
+
* Class to manage columns and rows in a table structure. It provides methods
|
|
6
|
+
* to add, remove, and manipulate columns and rows, as well as to retrieve data
|
|
7
|
+
* from specific cells.
|
|
8
|
+
*
|
|
9
|
+
* @class
|
|
10
|
+
* @name Highcharts.DataTable
|
|
11
|
+
*
|
|
12
|
+
* @param {Highcharts.DataTableOptions} [options]
|
|
13
|
+
* Options to initialize the new DataTable instance.
|
|
14
|
+
*/
|
|
15
|
+
declare class DataTableCore {
|
|
16
|
+
/**
|
|
17
|
+
* Constructs an instance of the DataTable class.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const dataTable = new Highcharts.DataTableCore({
|
|
21
|
+
* columns: {
|
|
22
|
+
* year: [2020, 2021, 2022, 2023],
|
|
23
|
+
* cost: [11, 13, 12, 14],
|
|
24
|
+
* revenue: [12, 15, 14, 18]
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
|
|
28
|
+
*
|
|
29
|
+
* @param {Highcharts.DataTableOptions} [options]
|
|
30
|
+
* Options to initialize the new DataTable instance.
|
|
31
|
+
*/
|
|
32
|
+
constructor(options?: DataTableOptions);
|
|
33
|
+
readonly autoId: boolean;
|
|
34
|
+
readonly columns: Record<string, DataTable.Column>;
|
|
35
|
+
readonly id: string;
|
|
36
|
+
modified?: this;
|
|
37
|
+
rowCount: number;
|
|
38
|
+
protected versionTag: string;
|
|
39
|
+
/**
|
|
40
|
+
* Applies a row count to the table by setting the `rowCount` property and
|
|
41
|
+
* adjusting the length of all columns.
|
|
42
|
+
*
|
|
43
|
+
* @private
|
|
44
|
+
* @param {number} rowCount The new row count.
|
|
45
|
+
*/
|
|
46
|
+
protected applyRowCount(rowCount: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Delete rows. Simplified version of the full
|
|
49
|
+
* `DataTable.deleteRows` method.
|
|
50
|
+
*
|
|
51
|
+
* @param {number} rowIndex
|
|
52
|
+
* The start row index
|
|
53
|
+
*
|
|
54
|
+
* @param {number} [rowCount=1]
|
|
55
|
+
* The number of rows to delete
|
|
56
|
+
*
|
|
57
|
+
* @return {void}
|
|
58
|
+
*
|
|
59
|
+
* @emits #afterDeleteRows
|
|
60
|
+
*/
|
|
61
|
+
deleteRows(rowIndex: number, rowCount?: number): void;
|
|
62
|
+
/**
|
|
63
|
+
* Fetches the given column by the canonical column name. Simplified version
|
|
64
|
+
* of the full `DataTable.getRow` method, always returning by reference.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} columnId
|
|
67
|
+
* Name of the column to get.
|
|
68
|
+
*
|
|
69
|
+
* @return {Highcharts.DataTableColumn|undefined}
|
|
70
|
+
* A copy of the column, or `undefined` if not found.
|
|
71
|
+
*/
|
|
72
|
+
getColumn(columnId: string, asReference?: true): (DataTable.Column | undefined);
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves all or the given columns. Simplified version of the full
|
|
75
|
+
* `DataTable.getColumns` method, always returning by reference.
|
|
76
|
+
*
|
|
77
|
+
* @param {Array<string>} [columnIds]
|
|
78
|
+
* Column ids to retrieve.
|
|
79
|
+
*
|
|
80
|
+
* @return {Highcharts.DataTableColumnCollection}
|
|
81
|
+
* Collection of columns. If a requested column was not found, it is
|
|
82
|
+
* `undefined`.
|
|
83
|
+
*/
|
|
84
|
+
getColumns(columnIds?: Array<string>, asReference?: true): DataTable.ColumnCollection;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves the row at a given index.
|
|
87
|
+
*
|
|
88
|
+
* @param {number} rowIndex
|
|
89
|
+
* Row index to retrieve. First row has index 0.
|
|
90
|
+
*
|
|
91
|
+
* @param {Array<string>} [columnIds]
|
|
92
|
+
* Column names to retrieve.
|
|
93
|
+
*
|
|
94
|
+
* @return {Record<string, number|string|undefined>|undefined}
|
|
95
|
+
* Returns the row values, or `undefined` if not found.
|
|
96
|
+
*/
|
|
97
|
+
getRow(rowIndex: number, columnIds?: Array<string>): (DataTable.Row | undefined);
|
|
98
|
+
/**
|
|
99
|
+
* Sets cell values for a column. Will insert a new column, if not found.
|
|
100
|
+
*
|
|
101
|
+
* @param {string} columnId
|
|
102
|
+
* Column name to set.
|
|
103
|
+
*
|
|
104
|
+
* @param {Highcharts.DataTableColumn} [column]
|
|
105
|
+
* Values to set in the column.
|
|
106
|
+
*
|
|
107
|
+
* @param {number} [rowIndex]
|
|
108
|
+
* Index of the first row to change. (Default: 0)
|
|
109
|
+
*
|
|
110
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
111
|
+
* Custom information for pending events.
|
|
112
|
+
*
|
|
113
|
+
* @emits #setColumns
|
|
114
|
+
* @emits #afterSetColumns
|
|
115
|
+
*/
|
|
116
|
+
setColumn(columnId: string, column?: DataTable.Column, rowIndex?: number, eventDetail?: DataEvent.Detail): void;
|
|
117
|
+
/**
|
|
118
|
+
* Sets cell values for multiple columns. Will insert new columns, if not
|
|
119
|
+
* found. Simplified version of the full `DataTableCore.setColumns`, limited
|
|
120
|
+
* to full replacement of the columns (undefined `rowIndex`).
|
|
121
|
+
*
|
|
122
|
+
* @param {Highcharts.DataTableColumnCollection} columns
|
|
123
|
+
* Columns as a collection, where the keys are the column names.
|
|
124
|
+
*
|
|
125
|
+
* @param {number} [rowIndex]
|
|
126
|
+
* Index of the first row to change. Ignored in the `DataTableCore`, as it
|
|
127
|
+
* always replaces the full column.
|
|
128
|
+
*
|
|
129
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
130
|
+
* Custom information for pending events.
|
|
131
|
+
*
|
|
132
|
+
* @emits #setColumns
|
|
133
|
+
* @emits #afterSetColumns
|
|
134
|
+
*/
|
|
135
|
+
setColumns(columns: DataTable.ColumnCollection, rowIndex?: number, eventDetail?: DataEvent.Detail): void;
|
|
136
|
+
/**
|
|
137
|
+
* Sets cell values of a row. Will insert a new row if no index was
|
|
138
|
+
* provided, or if the index is higher than the total number of table rows.
|
|
139
|
+
* A simplified version of the full `DateTable.setRow`, limited to objects.
|
|
140
|
+
*
|
|
141
|
+
* @param {Record<string, number|string|undefined>} row
|
|
142
|
+
* Cell values to set.
|
|
143
|
+
*
|
|
144
|
+
* @param {number} [rowIndex]
|
|
145
|
+
* Index of the row to set. Leave `undefined` to add as a new row.
|
|
146
|
+
*
|
|
147
|
+
* @param {boolean} [insert]
|
|
148
|
+
* Whether to insert the row at the given index, or to overwrite the row.
|
|
149
|
+
*
|
|
150
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
151
|
+
* Custom information for pending events.
|
|
152
|
+
*
|
|
153
|
+
* @emits #afterSetRows
|
|
154
|
+
*/
|
|
155
|
+
setRow(row: DataTable.RowObject, rowIndex?: number, insert?: boolean, eventDetail?: DataEvent.Detail): void;
|
|
156
|
+
/**
|
|
157
|
+
* Returns the medified (clone) or the original data table if the modified
|
|
158
|
+
* one does not exist.
|
|
159
|
+
*
|
|
160
|
+
* @return {Highcharts.DataTableCore}
|
|
161
|
+
* The medified (clone) or the original data table.
|
|
162
|
+
*/
|
|
163
|
+
getModified(): this;
|
|
164
|
+
}
|
|
165
|
+
export default DataTableCore;
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2009-2025 Highsoft AS
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* Authors:
|
|
10
|
+
* - Sophie Bremer
|
|
11
|
+
* - Gøran Slettemark
|
|
12
|
+
* - Torstein Hønsi
|
|
13
|
+
*
|
|
14
|
+
* */
|
|
15
|
+
'use strict';
|
|
16
|
+
import ColumnUtils from './ColumnUtils.js';
|
|
17
|
+
const { setLength, splice } = ColumnUtils;
|
|
18
|
+
import U from '../Core/Utilities.js';
|
|
19
|
+
const { fireEvent, objectEach, uniqueKey } = U;
|
|
20
|
+
/* *
|
|
21
|
+
*
|
|
22
|
+
* Class
|
|
23
|
+
*
|
|
24
|
+
* */
|
|
25
|
+
/**
|
|
26
|
+
* Class to manage columns and rows in a table structure. It provides methods
|
|
27
|
+
* to add, remove, and manipulate columns and rows, as well as to retrieve data
|
|
28
|
+
* from specific cells.
|
|
29
|
+
*
|
|
30
|
+
* @class
|
|
31
|
+
* @name Highcharts.DataTable
|
|
32
|
+
*
|
|
33
|
+
* @param {Highcharts.DataTableOptions} [options]
|
|
34
|
+
* Options to initialize the new DataTable instance.
|
|
35
|
+
*/
|
|
36
|
+
class DataTableCore {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs an instance of the DataTable class.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* const dataTable = new Highcharts.DataTableCore({
|
|
42
|
+
* columns: {
|
|
43
|
+
* year: [2020, 2021, 2022, 2023],
|
|
44
|
+
* cost: [11, 13, 12, 14],
|
|
45
|
+
* revenue: [12, 15, 14, 18]
|
|
46
|
+
* }
|
|
47
|
+
* });
|
|
48
|
+
|
|
49
|
+
*
|
|
50
|
+
* @param {Highcharts.DataTableOptions} [options]
|
|
51
|
+
* Options to initialize the new DataTable instance.
|
|
52
|
+
*/
|
|
53
|
+
constructor(options = {}) {
|
|
54
|
+
/**
|
|
55
|
+
* Whether the ID was automatic generated or given in the constructor.
|
|
56
|
+
*
|
|
57
|
+
* @name Highcharts.DataTable#autoId
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
*/
|
|
60
|
+
this.autoId = !options.id;
|
|
61
|
+
this.columns = {};
|
|
62
|
+
/**
|
|
63
|
+
* ID of the table for identification purposes.
|
|
64
|
+
*
|
|
65
|
+
* @name Highcharts.DataTable#id
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
this.id = (options.id || uniqueKey());
|
|
69
|
+
this.rowCount = 0;
|
|
70
|
+
this.versionTag = uniqueKey();
|
|
71
|
+
let rowCount = 0;
|
|
72
|
+
objectEach(options.columns || {}, (column, columnId) => {
|
|
73
|
+
this.columns[columnId] = column.slice();
|
|
74
|
+
rowCount = Math.max(rowCount, column.length);
|
|
75
|
+
});
|
|
76
|
+
this.applyRowCount(rowCount);
|
|
77
|
+
}
|
|
78
|
+
/* *
|
|
79
|
+
*
|
|
80
|
+
* Functions
|
|
81
|
+
*
|
|
82
|
+
* */
|
|
83
|
+
/**
|
|
84
|
+
* Applies a row count to the table by setting the `rowCount` property and
|
|
85
|
+
* adjusting the length of all columns.
|
|
86
|
+
*
|
|
87
|
+
* @private
|
|
88
|
+
* @param {number} rowCount The new row count.
|
|
89
|
+
*/
|
|
90
|
+
applyRowCount(rowCount) {
|
|
91
|
+
this.rowCount = rowCount;
|
|
92
|
+
objectEach(this.columns, (column, columnId) => {
|
|
93
|
+
if (column.length !== rowCount) {
|
|
94
|
+
this.columns[columnId] = setLength(column, rowCount);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Delete rows. Simplified version of the full
|
|
100
|
+
* `DataTable.deleteRows` method.
|
|
101
|
+
*
|
|
102
|
+
* @param {number} rowIndex
|
|
103
|
+
* The start row index
|
|
104
|
+
*
|
|
105
|
+
* @param {number} [rowCount=1]
|
|
106
|
+
* The number of rows to delete
|
|
107
|
+
*
|
|
108
|
+
* @return {void}
|
|
109
|
+
*
|
|
110
|
+
* @emits #afterDeleteRows
|
|
111
|
+
*/
|
|
112
|
+
deleteRows(rowIndex, rowCount = 1) {
|
|
113
|
+
if (rowCount > 0 && rowIndex < this.rowCount) {
|
|
114
|
+
let length = 0;
|
|
115
|
+
objectEach(this.columns, (column, columnId) => {
|
|
116
|
+
this.columns[columnId] =
|
|
117
|
+
splice(column, rowIndex, rowCount).array;
|
|
118
|
+
length = column.length;
|
|
119
|
+
});
|
|
120
|
+
this.rowCount = length;
|
|
121
|
+
}
|
|
122
|
+
fireEvent(this, 'afterDeleteRows', { rowIndex, rowCount });
|
|
123
|
+
this.versionTag = uniqueKey();
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Fetches the given column by the canonical column name. Simplified version
|
|
127
|
+
* of the full `DataTable.getRow` method, always returning by reference.
|
|
128
|
+
*
|
|
129
|
+
* @param {string} columnId
|
|
130
|
+
* Name of the column to get.
|
|
131
|
+
*
|
|
132
|
+
* @return {Highcharts.DataTableColumn|undefined}
|
|
133
|
+
* A copy of the column, or `undefined` if not found.
|
|
134
|
+
*/
|
|
135
|
+
getColumn(columnId,
|
|
136
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
137
|
+
asReference) {
|
|
138
|
+
return this.columns[columnId];
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves all or the given columns. Simplified version of the full
|
|
142
|
+
* `DataTable.getColumns` method, always returning by reference.
|
|
143
|
+
*
|
|
144
|
+
* @param {Array<string>} [columnIds]
|
|
145
|
+
* Column ids to retrieve.
|
|
146
|
+
*
|
|
147
|
+
* @return {Highcharts.DataTableColumnCollection}
|
|
148
|
+
* Collection of columns. If a requested column was not found, it is
|
|
149
|
+
* `undefined`.
|
|
150
|
+
*/
|
|
151
|
+
getColumns(columnIds,
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
153
|
+
asReference) {
|
|
154
|
+
return (columnIds || Object.keys(this.columns)).reduce((columns, columnId) => {
|
|
155
|
+
columns[columnId] = this.columns[columnId];
|
|
156
|
+
return columns;
|
|
157
|
+
}, {});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Retrieves the row at a given index.
|
|
161
|
+
*
|
|
162
|
+
* @param {number} rowIndex
|
|
163
|
+
* Row index to retrieve. First row has index 0.
|
|
164
|
+
*
|
|
165
|
+
* @param {Array<string>} [columnIds]
|
|
166
|
+
* Column names to retrieve.
|
|
167
|
+
*
|
|
168
|
+
* @return {Record<string, number|string|undefined>|undefined}
|
|
169
|
+
* Returns the row values, or `undefined` if not found.
|
|
170
|
+
*/
|
|
171
|
+
getRow(rowIndex, columnIds) {
|
|
172
|
+
return (columnIds || Object.keys(this.columns)).map((key) => this.columns[key]?.[rowIndex]);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Sets cell values for a column. Will insert a new column, if not found.
|
|
176
|
+
*
|
|
177
|
+
* @param {string} columnId
|
|
178
|
+
* Column name to set.
|
|
179
|
+
*
|
|
180
|
+
* @param {Highcharts.DataTableColumn} [column]
|
|
181
|
+
* Values to set in the column.
|
|
182
|
+
*
|
|
183
|
+
* @param {number} [rowIndex]
|
|
184
|
+
* Index of the first row to change. (Default: 0)
|
|
185
|
+
*
|
|
186
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
187
|
+
* Custom information for pending events.
|
|
188
|
+
*
|
|
189
|
+
* @emits #setColumns
|
|
190
|
+
* @emits #afterSetColumns
|
|
191
|
+
*/
|
|
192
|
+
setColumn(columnId, column = [], rowIndex = 0, eventDetail) {
|
|
193
|
+
this.setColumns({ [columnId]: column }, rowIndex, eventDetail);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Sets cell values for multiple columns. Will insert new columns, if not
|
|
197
|
+
* found. Simplified version of the full `DataTableCore.setColumns`, limited
|
|
198
|
+
* to full replacement of the columns (undefined `rowIndex`).
|
|
199
|
+
*
|
|
200
|
+
* @param {Highcharts.DataTableColumnCollection} columns
|
|
201
|
+
* Columns as a collection, where the keys are the column names.
|
|
202
|
+
*
|
|
203
|
+
* @param {number} [rowIndex]
|
|
204
|
+
* Index of the first row to change. Ignored in the `DataTableCore`, as it
|
|
205
|
+
* always replaces the full column.
|
|
206
|
+
*
|
|
207
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
208
|
+
* Custom information for pending events.
|
|
209
|
+
*
|
|
210
|
+
* @emits #setColumns
|
|
211
|
+
* @emits #afterSetColumns
|
|
212
|
+
*/
|
|
213
|
+
setColumns(columns, rowIndex, eventDetail) {
|
|
214
|
+
let rowCount = this.rowCount;
|
|
215
|
+
objectEach(columns, (column, columnId) => {
|
|
216
|
+
this.columns[columnId] = column.slice();
|
|
217
|
+
rowCount = column.length;
|
|
218
|
+
});
|
|
219
|
+
this.applyRowCount(rowCount);
|
|
220
|
+
if (!eventDetail?.silent) {
|
|
221
|
+
fireEvent(this, 'afterSetColumns');
|
|
222
|
+
this.versionTag = uniqueKey();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Sets cell values of a row. Will insert a new row if no index was
|
|
227
|
+
* provided, or if the index is higher than the total number of table rows.
|
|
228
|
+
* A simplified version of the full `DateTable.setRow`, limited to objects.
|
|
229
|
+
*
|
|
230
|
+
* @param {Record<string, number|string|undefined>} row
|
|
231
|
+
* Cell values to set.
|
|
232
|
+
*
|
|
233
|
+
* @param {number} [rowIndex]
|
|
234
|
+
* Index of the row to set. Leave `undefined` to add as a new row.
|
|
235
|
+
*
|
|
236
|
+
* @param {boolean} [insert]
|
|
237
|
+
* Whether to insert the row at the given index, or to overwrite the row.
|
|
238
|
+
*
|
|
239
|
+
* @param {Record<string, (boolean|number|string|null|undefined)>} [eventDetail]
|
|
240
|
+
* Custom information for pending events.
|
|
241
|
+
*
|
|
242
|
+
* @emits #afterSetRows
|
|
243
|
+
*/
|
|
244
|
+
setRow(row, rowIndex = this.rowCount, insert, eventDetail) {
|
|
245
|
+
const { columns } = this, indexRowCount = insert ? this.rowCount + 1 : rowIndex + 1;
|
|
246
|
+
objectEach(row, (cellValue, columnId) => {
|
|
247
|
+
let column = columns[columnId] ||
|
|
248
|
+
eventDetail?.addColumns !== false && new Array(indexRowCount);
|
|
249
|
+
if (column) {
|
|
250
|
+
if (insert) {
|
|
251
|
+
column = splice(column, rowIndex, 0, true, [cellValue]).array;
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
column[rowIndex] = cellValue;
|
|
255
|
+
}
|
|
256
|
+
columns[columnId] = column;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
if (indexRowCount > this.rowCount) {
|
|
260
|
+
this.applyRowCount(indexRowCount);
|
|
261
|
+
}
|
|
262
|
+
if (!eventDetail?.silent) {
|
|
263
|
+
fireEvent(this, 'afterSetRows');
|
|
264
|
+
this.versionTag = uniqueKey();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Returns the medified (clone) or the original data table if the modified
|
|
269
|
+
* one does not exist.
|
|
270
|
+
*
|
|
271
|
+
* @return {Highcharts.DataTableCore}
|
|
272
|
+
* The medified (clone) or the original data table.
|
|
273
|
+
*/
|
|
274
|
+
getModified() {
|
|
275
|
+
return this.modified || this;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/* *
|
|
279
|
+
*
|
|
280
|
+
* Default Export
|
|
281
|
+
*
|
|
282
|
+
* */
|
|
283
|
+
export default DataTableCore;
|
|
284
|
+
/* *
|
|
285
|
+
*
|
|
286
|
+
* API Declarations
|
|
287
|
+
*
|
|
288
|
+
* */
|
|
289
|
+
/**
|
|
290
|
+
* A typed array.
|
|
291
|
+
* @typedef {Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array} Highcharts.TypedArray
|
|
292
|
+
* //**
|
|
293
|
+
* A column of values in a data table.
|
|
294
|
+
* @typedef {Array<boolean|null|number|string|undefined>|Highcharts.TypedArray} Highcharts.DataTableColumn
|
|
295
|
+
*/ /**
|
|
296
|
+
* A collection of data table columns defined by a object where the key is the
|
|
297
|
+
* column name and the value is an array of the column values.
|
|
298
|
+
* @typedef {Record<string, Highcharts.DataTableColumn>} Highcharts.DataTableColumnCollection
|
|
299
|
+
*/
|
|
300
|
+
/**
|
|
301
|
+
* Options for the `DataTable` or `DataTableCore` classes.
|
|
302
|
+
* @interface Highcharts.DataTableOptions
|
|
303
|
+
*/ /**
|
|
304
|
+
* The column options for the data table. The columns are defined by an object
|
|
305
|
+
* where the key is the column ID and the value is an array of the column
|
|
306
|
+
* values.
|
|
307
|
+
*
|
|
308
|
+
* @name Highcharts.DataTableOptions.columns
|
|
309
|
+
* @type {Highcharts.DataTableColumnCollection|undefined}
|
|
310
|
+
*/ /**
|
|
311
|
+
* Custom ID to identify the new DataTable instance.
|
|
312
|
+
*
|
|
313
|
+
* @name Highcharts.DataTableOptions.id
|
|
314
|
+
* @type {string|undefined}
|
|
315
|
+
*/
|
|
316
|
+
(''); // Keeps doclets above in JS file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TypedArray } from '../Shared/Types';
|
|
2
|
+
/**
|
|
3
|
+
* Options to initialize a new DataTable instance.
|
|
4
|
+
*/
|
|
5
|
+
export interface DataTableOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Initial columns with their values.
|
|
8
|
+
*/
|
|
9
|
+
columns?: Record<string, Array<DataTableValue> | TypedArray>;
|
|
10
|
+
/**
|
|
11
|
+
* Custom ID to identify the new DataTable instance.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* A reference to the specific data table key defined in the component's
|
|
16
|
+
* connector options.
|
|
17
|
+
*/
|
|
18
|
+
key?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Metadata to describe the dataTable.
|
|
21
|
+
*/
|
|
22
|
+
metadata?: Record<string, DataTableValue>;
|
|
23
|
+
}
|
|
24
|
+
export type DataTableValue = (boolean | null | number | string | undefined);
|
|
25
|
+
export default DataTableOptions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2009-2025 Highsoft AS
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* Authors:
|
|
10
|
+
* - Sophie Bremer
|
|
11
|
+
* - Dawid Dragula
|
|
12
|
+
*
|
|
13
|
+
* */
|
|
14
|
+
'use strict';
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './Functions/ABS.js';
|
|
2
|
+
import './Functions/AND.js';
|
|
3
|
+
import './Functions/AVERAGE.js';
|
|
4
|
+
import './Functions/AVERAGEA.js';
|
|
5
|
+
import './Functions/COUNT.js';
|
|
6
|
+
import './Functions/COUNTA.js';
|
|
7
|
+
import './Functions/IF.js';
|
|
8
|
+
import './Functions/ISNA.js';
|
|
9
|
+
import './Functions/MAX.js';
|
|
10
|
+
import './Functions/MEDIAN.js';
|
|
11
|
+
import './Functions/MIN.js';
|
|
12
|
+
import './Functions/MOD.js';
|
|
13
|
+
import './Functions/MODE.js';
|
|
14
|
+
import './Functions/NOT.js';
|
|
15
|
+
import './Functions/OR.js';
|
|
16
|
+
import './Functions/PRODUCT.js';
|
|
17
|
+
import './Functions/SUM.js';
|
|
18
|
+
import './Functions/XOR.js';
|
|
19
|
+
export type { FormulaParserError } from './FormulaParser';
|
|
20
|
+
export type { Arguments, Formula, Function, Item, Operator, Range, Reference, Term, Value } from './FormulaTypes';
|
|
21
|
+
export default Formula;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2009-2025 Highsoft AS
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* Authors:
|
|
10
|
+
* - Sophie Bremer
|
|
11
|
+
*
|
|
12
|
+
* */
|
|
13
|
+
'use strict';
|
|
14
|
+
/* *
|
|
15
|
+
*
|
|
16
|
+
* Imports
|
|
17
|
+
*
|
|
18
|
+
* */
|
|
19
|
+
import FormulaParser from './FormulaParser.js';
|
|
20
|
+
import FormulaProcessor from './FormulaProcessor.js';
|
|
21
|
+
import FormulaType from './FormulaTypes.js';
|
|
22
|
+
import './Functions/ABS.js';
|
|
23
|
+
import './Functions/AND.js';
|
|
24
|
+
import './Functions/AVERAGE.js';
|
|
25
|
+
import './Functions/AVERAGEA.js';
|
|
26
|
+
import './Functions/COUNT.js';
|
|
27
|
+
import './Functions/COUNTA.js';
|
|
28
|
+
import './Functions/IF.js';
|
|
29
|
+
import './Functions/ISNA.js';
|
|
30
|
+
import './Functions/MAX.js';
|
|
31
|
+
import './Functions/MEDIAN.js';
|
|
32
|
+
import './Functions/MIN.js';
|
|
33
|
+
import './Functions/MOD.js';
|
|
34
|
+
import './Functions/MODE.js';
|
|
35
|
+
import './Functions/NOT.js';
|
|
36
|
+
import './Functions/OR.js';
|
|
37
|
+
import './Functions/PRODUCT.js';
|
|
38
|
+
import './Functions/SUM.js';
|
|
39
|
+
import './Functions/XOR.js';
|
|
40
|
+
/* *
|
|
41
|
+
*
|
|
42
|
+
* Default Export
|
|
43
|
+
*
|
|
44
|
+
* */
|
|
45
|
+
/**
|
|
46
|
+
* Formula engine to make use of spreadsheet formula strings.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
const Formula = {
|
|
50
|
+
...FormulaParser,
|
|
51
|
+
...FormulaProcessor,
|
|
52
|
+
...FormulaType
|
|
53
|
+
};
|
|
54
|
+
export default Formula;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Formula } from './FormulaTypes.js';
|
|
2
|
+
/**
|
|
3
|
+
* Formula parser might struggle over a syntax error.
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export interface FormulaParserError extends Error {
|
|
7
|
+
message: string;
|
|
8
|
+
name: 'FormulaParseError';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Converts a spreadsheet formula string into a formula array. Throws a
|
|
12
|
+
* `FormulaParserError` when the string can not be parsed.
|
|
13
|
+
*
|
|
14
|
+
* @private
|
|
15
|
+
* @function Formula.parseFormula
|
|
16
|
+
*
|
|
17
|
+
* @param {string} text
|
|
18
|
+
* Spreadsheet formula string, without the leading `=`.
|
|
19
|
+
*
|
|
20
|
+
* @param {boolean} alternativeSeparators
|
|
21
|
+
* * `false` to expect `,` between arguments and `.` in decimals.
|
|
22
|
+
* * `true` to expect `;` between arguments and `,` in decimals.
|
|
23
|
+
*
|
|
24
|
+
* @return {Formula.Formula}
|
|
25
|
+
* Formula array representing the string.
|
|
26
|
+
*/
|
|
27
|
+
declare function parseFormula(text: string, alternativeSeparators: boolean): Formula;
|
|
28
|
+
declare const FormulaParser: {
|
|
29
|
+
parseFormula: typeof parseFormula;
|
|
30
|
+
};
|
|
31
|
+
export default FormulaParser;
|