@highcharts/grid-pro 2.1.1 → 2.2.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/css/grid-pro.css +428 -432
- package/es-modules/Accessibility/A11yI18n.js +3 -3
- package/es-modules/Accessibility/Accessibility.js +4 -3
- package/es-modules/Accessibility/AccessibilityComponent.d.ts +1 -1
- package/es-modules/Accessibility/AccessibilityComponent.js +4 -3
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +4 -3
- package/es-modules/Accessibility/Components/ContainerComponent.js +4 -3
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +4 -3
- package/es-modules/Accessibility/Components/LegendComponent.js +4 -3
- package/es-modules/Accessibility/Components/MenuComponent.js +4 -3
- package/es-modules/Accessibility/Components/NavigatorComponent.js +3 -3
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -3
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +14 -3
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +4 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +4 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -3
- package/es-modules/Accessibility/Components/ZoomComponent.js +4 -3
- package/es-modules/Accessibility/FocusBorder.js +4 -3
- package/es-modules/Accessibility/HighContrastMode.js +4 -3
- package/es-modules/Accessibility/HighContrastTheme.js +4 -3
- package/es-modules/Accessibility/KeyboardNavigation.js +4 -3
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +4 -3
- package/es-modules/Accessibility/Options/A11yDefaults.js +4 -3
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +4 -3
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -3
- package/es-modules/Accessibility/ProxyElement.js +4 -3
- package/es-modules/Accessibility/ProxyProvider.js +4 -3
- package/es-modules/Accessibility/Utils/Announcer.js +4 -3
- package/es-modules/Accessibility/Utils/ChartUtilities.js +4 -3
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +4 -3
- package/es-modules/Accessibility/Utils/EventProvider.d.ts +1 -1
- package/es-modules/Accessibility/Utils/EventProvider.js +4 -3
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +4 -3
- package/es-modules/Core/Animation/AnimationOptions.d.ts +42 -0
- package/es-modules/Core/Animation/AnimationOptions.js +10 -0
- package/es-modules/Core/Animation/AnimationUtilities.js +39 -3
- package/es-modules/Core/Animation/Fx.d.ts +1 -130
- package/es-modules/Core/Animation/Fx.js +13 -6
- package/es-modules/Core/Animation/FxBase.d.ts +1 -0
- package/es-modules/Core/Animation/FxBase.js +11 -0
- package/es-modules/Core/Callback.d.ts +49 -0
- package/es-modules/Core/Callback.js +10 -0
- package/es-modules/Core/Chart/Chart.d.ts +659 -400
- package/es-modules/Core/Chart/Chart.js +64 -54
- package/es-modules/Core/Chart/Chart3D.d.ts +123 -233
- package/es-modules/Core/Chart/Chart3D.js +22 -35
- package/es-modules/Core/Chart/ChartBase.d.ts +3 -0
- package/es-modules/Core/Chart/ChartBase.js +11 -0
- package/es-modules/Core/Chart/ChartDefaults.js +7 -12
- package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +1 -55
- package/es-modules/Core/Chart/ChartNavigationComposition.js +13 -13
- package/es-modules/Core/Chart/ChartOptions.d.ts +1217 -0
- package/es-modules/Core/Chart/ChartOptions.js +10 -0
- package/es-modules/Core/Chart/GanttChart.d.ts +0 -38
- package/es-modules/Core/Chart/GanttChart.js +4 -3
- package/es-modules/Core/Chart/MapChart.d.ts +9 -4
- package/es-modules/Core/Chart/MapChart.js +13 -3
- package/es-modules/Core/Chart/StockChart.d.ts +0 -85
- package/es-modules/Core/Chart/StockChart.js +33 -15
- package/es-modules/Core/Color/Color.d.ts +16 -24
- package/es-modules/Core/Color/Color.js +26 -8
- package/es-modules/Core/Color/ColorString.d.ts +0 -23
- package/es-modules/Core/Color/ColorString.js +11 -0
- package/es-modules/Core/Color/ColorType.d.ts +0 -33
- package/es-modules/Core/Color/ColorType.js +11 -0
- package/es-modules/Core/Color/GradientColor.d.ts +0 -33
- package/es-modules/Core/Color/GradientColor.js +11 -0
- package/es-modules/Core/Color/Palettes.d.ts +1 -84
- package/es-modules/Core/Color/Palettes.js +2 -1
- package/es-modules/Core/Defaults.d.ts +6 -0
- package/es-modules/Core/Defaults.js +30 -66
- package/es-modules/Core/Foundation.d.ts +1 -19
- package/es-modules/Core/Foundation.js +7 -4
- package/es-modules/Core/Geometry/CircleObject.d.ts +5 -0
- package/es-modules/Core/Geometry/CircleObject.js +10 -0
- package/es-modules/Core/Geometry/CircleUtilities.d.ts +1 -189
- package/es-modules/Core/Geometry/CircleUtilities.js +17 -15
- package/es-modules/Core/Geometry/GeometryObject.d.ts +7 -0
- package/es-modules/Core/Geometry/GeometryObject.js +10 -0
- package/es-modules/Core/Geometry/GeometryUtilities.d.ts +1 -48
- package/es-modules/Core/Geometry/GeometryUtilities.js +9 -7
- package/es-modules/Core/Geometry/IntersectionObject.d.ts +7 -0
- package/es-modules/Core/Geometry/IntersectionObject.js +10 -0
- package/es-modules/Core/Geometry/PolygonClip.d.ts +1 -19
- package/es-modules/Core/Geometry/PolygonClip.js +9 -7
- package/es-modules/Core/Globals.d.ts +9 -31
- package/es-modules/Core/Globals.js +9 -10
- package/es-modules/Core/GlobalsBase.d.ts +35 -0
- package/es-modules/Core/GlobalsBase.js +11 -0
- package/es-modules/Core/HttpUtilities.d.ts +54 -17
- package/es-modules/Core/HttpUtilities.js +15 -14
- package/es-modules/Core/JSON.d.ts +29 -0
- package/es-modules/Core/JSON.js +13 -0
- package/es-modules/Core/KeyboardEvent.d.ts +1 -0
- package/es-modules/Core/KeyboardEvent.js +11 -0
- package/es-modules/Core/MSPointer.d.ts +1 -74
- package/es-modules/Core/MSPointer.js +23 -13
- package/es-modules/Core/Math3D.d.ts +1 -117
- package/es-modules/Core/Math3D.js +13 -10
- package/es-modules/Core/Options.d.ts +334 -0
- package/es-modules/Core/Options.js +10 -0
- package/es-modules/Core/Pointer.d.ts +71 -445
- package/es-modules/Core/Pointer.js +51 -65
- package/es-modules/Core/PointerEvent.d.ts +18 -0
- package/es-modules/Core/PointerEvent.js +11 -0
- package/es-modules/Core/Renderer/AlignObject.d.ts +25 -27
- package/es-modules/Core/Renderer/AlignObject.js +11 -0
- package/es-modules/Core/Renderer/BBoxObject.d.ts +20 -31
- package/es-modules/Core/Renderer/BBoxObject.js +11 -0
- package/es-modules/Core/Renderer/CSSObject.d.ts +268 -59
- package/es-modules/Core/Renderer/CSSObject.js +10 -0
- package/es-modules/Core/Renderer/DOMElementType.d.ts +1 -33
- package/es-modules/Core/Renderer/DOMElementType.js +11 -0
- package/es-modules/Core/Renderer/DashStyleValue.d.ts +1 -27
- package/es-modules/Core/Renderer/DashStyleValue.js +11 -0
- package/es-modules/Core/Renderer/FontMetricsObject.d.ts +6 -26
- package/es-modules/Core/Renderer/FontMetricsObject.js +11 -0
- package/es-modules/Core/Renderer/HTML/AST.d.ts +3 -15
- package/es-modules/Core/Renderer/HTML/AST.js +22 -13
- package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +1 -25
- package/es-modules/Core/Renderer/HTML/HTMLAttributes.js +11 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +0 -54
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +27 -22
- package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +15 -12
- package/es-modules/Core/Renderer/PolygonBoxObject.js +11 -0
- package/es-modules/Core/Renderer/Position3DObject.d.ts +6 -30
- package/es-modules/Core/Renderer/Position3DObject.js +11 -0
- package/es-modules/Core/Renderer/PositionObject.d.ts +9 -23
- package/es-modules/Core/Renderer/PositionObject.js +11 -0
- package/es-modules/Core/Renderer/RectangleObject.d.ts +6 -30
- package/es-modules/Core/Renderer/RectangleObject.js +11 -0
- package/es-modules/Core/Renderer/RendererRegistry.d.ts +1 -29
- package/es-modules/Core/Renderer/RendererRegistry.js +6 -3
- package/es-modules/Core/Renderer/RendererType.d.ts +1 -53
- package/es-modules/Core/Renderer/RendererType.js +11 -0
- package/es-modules/Core/Renderer/RendererUtilities.d.ts +1 -26
- package/es-modules/Core/Renderer/RendererUtilities.js +7 -4
- package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +26 -31
- package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +1 -44
- package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +15 -51
- package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +1 -42
- package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +1 -42
- package/es-modules/Core/Renderer/SVG/SVGElement.d.ts +459 -0
- package/es-modules/Core/Renderer/SVG/SVGElement3D.d.ts +1 -0
- package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +0 -23
- package/es-modules/Core/Renderer/SVG/SVGLabel.d.ts +14 -0
- package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +18 -56
- package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +0 -30
- package/es-modules/Core/Renderer/SVG/SVGRenderer.d.ts +652 -0
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.d.ts +1 -0
- package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +0 -24
- package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +3 -26
- package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +1 -41
- package/es-modules/Core/Renderer/SVG/Symbols.d.ts +146 -0
- package/es-modules/Core/Renderer/SVG/TextBuilder.d.ts +1 -0
- package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +21 -30
- package/es-modules/Core/Renderer/ShadowOptionsObject.js +11 -0
- package/es-modules/Core/Renderer/SizeObject.d.ts +0 -23
- package/es-modules/Core/Renderer/SizeObject.js +11 -0
- package/es-modules/Core/Responsive.d.ts +91 -28
- package/es-modules/Core/Responsive.js +7 -8
- package/es-modules/Core/Templating.d.ts +16 -0
- package/es-modules/Core/Templating.js +9 -4
- package/es-modules/Core/Time.d.ts +10 -1
- package/es-modules/Core/Time.js +4 -3
- package/es-modules/Core/Tooltip.d.ts +63 -115
- package/es-modules/Core/Tooltip.js +61 -27
- package/es-modules/Core/TooltipOptions.d.ts +681 -0
- package/es-modules/Core/TooltipOptions.js +10 -0
- package/es-modules/Core/Utilities.d.ts +75 -106
- package/es-modules/Core/Utilities.js +19 -53
- package/es-modules/Data/ColumnUtils.js +3 -3
- package/es-modules/Data/Connectors/CSVConnector.js +3 -3
- package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +3 -3
- package/es-modules/Data/Connectors/DataConnector.d.ts +12 -1
- package/es-modules/Data/Connectors/DataConnector.js +34 -4
- package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +3 -3
- package/es-modules/Data/Connectors/DataConnectorType.d.ts +3 -3
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +3 -3
- package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +3 -3
- package/es-modules/Data/Connectors/HTMLTableConnector.js +3 -3
- package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +3 -3
- package/es-modules/Data/Connectors/JSONConnector.js +3 -3
- package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +3 -3
- package/es-modules/Data/Converters/CSVConverter.js +3 -3
- package/es-modules/Data/Converters/CSVConverterOptions.d.ts +3 -3
- package/es-modules/Data/Converters/DataConverter.js +3 -3
- package/es-modules/Data/Converters/DataConverterType.d.ts +3 -3
- package/es-modules/Data/Converters/DataConverterUtils.js +3 -3
- package/es-modules/Data/Converters/GoogleSheetsConverter.js +3 -3
- package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +3 -3
- package/es-modules/Data/Converters/HTMLTableConverter.js +3 -3
- package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +3 -3
- package/es-modules/Data/Converters/JSONConverter.js +3 -3
- package/es-modules/Data/Converters/JSONConverterOptions.d.ts +3 -3
- package/es-modules/Data/DataCursor.js +3 -3
- package/es-modules/Data/DataEvent.js +3 -3
- package/es-modules/Data/DataPool.js +3 -3
- package/es-modules/Data/DataPoolOptions.d.ts +3 -3
- package/es-modules/Data/DataTable.d.ts +6 -6
- package/es-modules/Data/DataTable.js +64 -30
- package/es-modules/Data/DataTableCore.d.ts +2 -2
- package/es-modules/Data/DataTableCore.js +5 -5
- package/es-modules/Data/DataTableOptions.js +3 -3
- package/es-modules/Data/Formula/Formula.js +3 -3
- package/es-modules/Data/Formula/FormulaParser.js +3 -3
- package/es-modules/Data/Formula/FormulaProcessor.js +3 -3
- package/es-modules/Data/Formula/FormulaTypes.js +3 -3
- package/es-modules/Data/Formula/Functions/ABS.js +3 -3
- package/es-modules/Data/Formula/Functions/AND.js +3 -3
- package/es-modules/Data/Formula/Functions/AVERAGE.js +3 -3
- package/es-modules/Data/Formula/Functions/AVERAGEA.js +3 -3
- package/es-modules/Data/Formula/Functions/COUNT.js +3 -3
- package/es-modules/Data/Formula/Functions/COUNTA.js +3 -3
- package/es-modules/Data/Formula/Functions/IF.js +3 -3
- package/es-modules/Data/Formula/Functions/ISNA.js +3 -3
- package/es-modules/Data/Formula/Functions/MAX.js +3 -3
- package/es-modules/Data/Formula/Functions/MEDIAN.js +3 -3
- package/es-modules/Data/Formula/Functions/MIN.js +3 -3
- package/es-modules/Data/Formula/Functions/MOD.js +3 -3
- package/es-modules/Data/Formula/Functions/MODE.js +3 -3
- package/es-modules/Data/Formula/Functions/NOT.js +3 -3
- package/es-modules/Data/Formula/Functions/OR.js +3 -3
- package/es-modules/Data/Formula/Functions/PRODUCT.js +3 -3
- package/es-modules/Data/Formula/Functions/SUM.js +3 -3
- package/es-modules/Data/Formula/Functions/XOR.js +3 -3
- package/es-modules/Data/Modifiers/ChainModifier.js +3 -3
- package/es-modules/Data/Modifiers/ChainModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/DataModifier.js +3 -3
- package/es-modules/Data/Modifiers/DataModifierEvent.js +3 -3
- package/es-modules/Data/Modifiers/DataModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/DataModifierType.d.ts +3 -3
- package/es-modules/Data/Modifiers/FilterModifier.js +3 -3
- package/es-modules/Data/Modifiers/FilterModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/InvertModifier.js +3 -3
- package/es-modules/Data/Modifiers/InvertModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/MathModifier.js +3 -3
- package/es-modules/Data/Modifiers/MathModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/RangeModifier.js +3 -3
- package/es-modules/Data/Modifiers/RangeModifierOptions.js +3 -3
- package/es-modules/Data/Modifiers/SortModifier.js +32 -6
- package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +41 -4
- package/es-modules/Data/Modifiers/SortModifierOptions.js +3 -3
- package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +77 -0
- package/es-modules/Grid/Core/Accessibility/A11yOptions.js +4 -3
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +67 -0
- package/es-modules/Grid/Core/Accessibility/Accessibility.js +176 -3
- package/es-modules/Grid/Core/Credits.js +3 -3
- package/es-modules/Grid/Core/Defaults.js +17 -5
- package/es-modules/Grid/Core/Globals.d.ts +4 -4
- package/es-modules/Grid/Core/Globals.js +5 -5
- package/es-modules/Grid/Core/Grid.d.ts +12 -1
- package/es-modules/Grid/Core/Grid.js +110 -8
- package/es-modules/Grid/Core/GridUtils.js +3 -3
- package/es-modules/Grid/Core/Options.d.ts +17 -1
- package/es-modules/Grid/Core/Options.js +3 -3
- package/es-modules/Grid/Core/Pagination/Pagination.js +3 -3
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +0 -40
- package/es-modules/Grid/Core/Pagination/PaginationOptions.js +11 -0
- package/es-modules/Grid/Core/Querying/FilteringController.js +3 -3
- package/es-modules/Grid/Core/Querying/PaginationController.js +3 -3
- package/es-modules/Grid/Core/Querying/QueryingController.js +3 -3
- package/es-modules/Grid/Core/Querying/SortingController.d.ts +15 -0
- package/es-modules/Grid/Core/Querying/SortingController.js +89 -51
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +2 -2
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +12 -2
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +85 -18
- package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +3 -3
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +37 -0
- package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +137 -26
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +9 -2
- package/es-modules/Grid/Core/Table/Body/TableCell.js +15 -8
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +18 -0
- package/es-modules/Grid/Core/Table/Body/TableRow.js +56 -10
- package/es-modules/Grid/Core/Table/Cell.d.ts +0 -7
- package/es-modules/Grid/Core/Table/Cell.js +5 -3
- package/es-modules/Grid/Core/Table/CellContent/CellContent.js +3 -3
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +4 -4
- package/es-modules/Grid/Core/Table/Column.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Column.js +3 -3
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +3 -3
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +3 -3
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +3 -3
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +3 -3
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +3 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +14 -5
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +3 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +3 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +9 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +35 -6
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +5 -4
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +11 -7
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +3 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +3 -3
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +5 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +92 -9
- package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +2 -2
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +8 -7
- package/es-modules/Grid/Core/Table/Header/HeaderRow.js +3 -3
- package/es-modules/Grid/Core/Table/Header/TableHeader.js +3 -3
- package/es-modules/Grid/Core/Table/Row.js +3 -3
- package/es-modules/Grid/Core/Table/Table.d.ts +30 -0
- package/es-modules/Grid/Core/Table/Table.js +118 -7
- package/es-modules/Grid/Core/UI/Button.js +3 -3
- package/es-modules/Grid/Core/UI/ContextMenu.js +3 -3
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +3 -3
- package/es-modules/Grid/Core/UI/Popup.js +3 -3
- package/es-modules/Grid/Core/UI/SvgIcons.js +3 -3
- package/es-modules/Grid/Core/UI/Toolbar.js +3 -3
- package/es-modules/Grid/Core/UI/ToolbarButton.js +3 -3
- package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +3 -44
- package/es-modules/Grid/Pro/CellEditing/CellEditMode.js +16 -0
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +3 -3
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +1 -34
- package/es-modules/Grid/Pro/CellRendering/CellRendererType.js +15 -0
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +7 -5
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +10 -1
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +50 -8
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +3 -3
- package/es-modules/Grid/Pro/Credits/CreditsPro.js +3 -3
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +3 -3
- package/es-modules/Grid/Pro/Export/Exporting.js +4 -5
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +3 -3
- package/es-modules/Grid/Pro/GridEvents.d.ts +1 -0
- package/es-modules/Grid/Pro/GridEvents.js +3 -3
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +3 -3
- package/es-modules/Grid/index.js +3 -3
- package/es-modules/Shared/BaseForm.js +3 -3
- package/es-modules/Shared/DownloadURL.d.ts +1 -85
- package/es-modules/Shared/DownloadURL.js +14 -11
- package/es-modules/Shared/LangOptionsCore.d.ts +4 -3
- package/es-modules/Shared/TimeBase.d.ts +1 -46
- package/es-modules/Shared/TimeBase.js +8 -7
- package/es-modules/Shared/Types.d.ts +4 -3
- package/es-modules/masters/grid-pro.src.d.ts +8 -13
- package/es-modules/masters/grid-pro.src.js +15 -7
- package/grid-pro.d.ts +8 -13
- package/grid-pro.js +6 -5
- package/grid-pro.js.map +1 -1
- package/grid-pro.src.d.ts +8 -13
- package/grid-pro.src.js +1923 -721
- package/package.json +1 -1
- package/es-modules/Grid/Pro/highcharts.d.ts +0 -7
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type AxisType from './Axis/AxisType';
|
|
2
1
|
import type Chart from './Chart/Chart';
|
|
3
2
|
import type CSSObject from './Renderer/CSSObject';
|
|
4
|
-
import type { DeepPartial } from '../Shared/Types';
|
|
3
|
+
import type { DeepPartial, TypedArray } from '../Shared/Types';
|
|
5
4
|
import type { DOMElementType, HTMLDOMElement } from './Renderer/DOMElementType';
|
|
6
|
-
import type EventCallback from './
|
|
5
|
+
import type { EventCallback } from './Callback';
|
|
7
6
|
import type HTMLAttributes from './Renderer/HTML/HTMLAttributes';
|
|
8
|
-
import type Series from './Series/Series';
|
|
9
7
|
import type SVGAttributes from './Renderer/SVG/SVGAttributes';
|
|
10
|
-
import type Time from './Time';
|
|
11
|
-
import type Types from '../Shared/Types';
|
|
12
8
|
type NonArray<T> = T extends Array<unknown> ? never : T;
|
|
13
9
|
type NonFunction<T> = T extends Function ? never : T;
|
|
14
10
|
type NullType = (null | undefined);
|
|
@@ -48,50 +44,6 @@ declare namespace error {
|
|
|
48
44
|
}
|
|
49
45
|
declare function merge<T = object>(extend: true, a?: T, ...n: Array<DeepPartial<T> | undefined>): (T);
|
|
50
46
|
declare function merge<T1 extends object = object, T2 = unknown, T3 = unknown, T4 = unknown, T5 = unknown, T6 = unknown, T7 = unknown, T8 = unknown, T9 = unknown>(a?: T1, b?: T2, c?: T3, d?: T4, e?: T5, f?: T6, g?: T7, h?: T8, i?: T9): (T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9);
|
|
51
|
-
/**
|
|
52
|
-
* Constrain a value to within a lower and upper threshold.
|
|
53
|
-
*
|
|
54
|
-
* @private
|
|
55
|
-
* @param {number} value The initial value
|
|
56
|
-
* @param {number} min The lower threshold
|
|
57
|
-
* @param {number} max The upper threshold
|
|
58
|
-
* @return {number} Returns a number value within min and max.
|
|
59
|
-
*/
|
|
60
|
-
declare function clamp(value: number, min: number, max: number): number;
|
|
61
|
-
/**
|
|
62
|
-
* Utility for crisping a line position to the nearest full pixel depening on
|
|
63
|
-
* the line width
|
|
64
|
-
* @param {number} value The raw pixel position
|
|
65
|
-
* @param {number} lineWidth The line width
|
|
66
|
-
* @param {boolean} [inverted] Whether the containing group is inverted.
|
|
67
|
-
* Crisping round numbers on the y-scale need to go
|
|
68
|
-
* to the other side because the coordinate system
|
|
69
|
-
* is flipped (scaleY is -1)
|
|
70
|
-
* @return {number} The pixel position to use for a crisp display
|
|
71
|
-
*/
|
|
72
|
-
declare function crisp(value: number, lineWidth?: number, inverted?: boolean): number;
|
|
73
|
-
/**
|
|
74
|
-
* Return the deep difference between two objects. It can either return the new
|
|
75
|
-
* properties, or optionally return the old values of new properties.
|
|
76
|
-
* @private
|
|
77
|
-
*/
|
|
78
|
-
declare function diffObjects(newer: AnyRecord, older: AnyRecord, keepOlder?: boolean, collectionsWithUpdate?: string[]): AnyRecord;
|
|
79
|
-
/**
|
|
80
|
-
* Shortcut for parseInt
|
|
81
|
-
*
|
|
82
|
-
* @private
|
|
83
|
-
* @function Highcharts.pInt
|
|
84
|
-
*
|
|
85
|
-
* @param {*} s
|
|
86
|
-
* any
|
|
87
|
-
*
|
|
88
|
-
* @param {number} [mag]
|
|
89
|
-
* Magnitude
|
|
90
|
-
*
|
|
91
|
-
* @return {number}
|
|
92
|
-
* number
|
|
93
|
-
*/
|
|
94
|
-
declare function pInt(s: any, mag?: number): number;
|
|
95
47
|
/**
|
|
96
48
|
* Utility function to check for string type.
|
|
97
49
|
*
|
|
@@ -169,21 +121,6 @@ declare function isNumber(n: unknown): n is number;
|
|
|
169
121
|
* @return {void}
|
|
170
122
|
*/
|
|
171
123
|
declare function erase(arr: Array<unknown>, item: unknown): void;
|
|
172
|
-
/**
|
|
173
|
-
* Insert a series or an axis in a collection with other items, either the
|
|
174
|
-
* chart series or yAxis series or axis collections, in the correct order
|
|
175
|
-
* according to the index option and whether it is internal. Used internally
|
|
176
|
-
* when adding series and axes.
|
|
177
|
-
*
|
|
178
|
-
* @private
|
|
179
|
-
* @function Highcharts.Chart#insertItem
|
|
180
|
-
* @param {Highcharts.Series|Highcharts.Axis} item
|
|
181
|
-
* The item to insert
|
|
182
|
-
* @param {Array<Highcharts.Series>|Array<Highcharts.Axis>} collection
|
|
183
|
-
* A collection of items, like `chart.series` or `xAxis.series`.
|
|
184
|
-
* @return {number} The index of the series in the collection.
|
|
185
|
-
*/
|
|
186
|
-
declare function insertItem(item: Series | AxisType, collection: Array<Series | AxisType>): number;
|
|
187
124
|
/**
|
|
188
125
|
* Adds an item to an array, if it is not present in the array.
|
|
189
126
|
*
|
|
@@ -473,7 +410,7 @@ declare function stableSort<T>(arr: Array<T>, sortFunction: (a: T, b: T) => numb
|
|
|
473
410
|
* @return {number}
|
|
474
411
|
* The lowest number.
|
|
475
412
|
*/
|
|
476
|
-
declare function arrayMin(data: Array<any> |
|
|
413
|
+
declare function arrayMin(data: Array<any> | TypedArray): number;
|
|
477
414
|
/**
|
|
478
415
|
* Non-recursive method to find the lowest member of an array. `Math.max` raises
|
|
479
416
|
* a maximum call stack size exceeded error in Chrome when trying to apply more
|
|
@@ -487,7 +424,7 @@ declare function arrayMin(data: Array<any> | Types.TypedArray): number;
|
|
|
487
424
|
* @return {number}
|
|
488
425
|
* The highest number.
|
|
489
426
|
*/
|
|
490
|
-
declare function arrayMax(data: Array<any> |
|
|
427
|
+
declare function arrayMax(data: Array<any> | TypedArray): number;
|
|
491
428
|
/**
|
|
492
429
|
* Utility method that destroys any SVGElement instances that are properties on
|
|
493
430
|
* the given object. It loops all properties and invokes destroy if there is a
|
|
@@ -526,36 +463,25 @@ declare function discardElement(element?: HTMLDOMElement): void;
|
|
|
526
463
|
* The corrected float number.
|
|
527
464
|
*/
|
|
528
465
|
declare function correctFloat(num: number, prec?: number): number;
|
|
466
|
+
declare function getStyle(el: HTMLDOMElement, prop: string, toInt: true): (number | undefined);
|
|
467
|
+
declare function getStyle(el: HTMLDOMElement, prop: string, toInt?: false): (number | string | undefined);
|
|
529
468
|
/**
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
* @function Highcharts.getClosestDistance
|
|
533
|
-
*
|
|
534
|
-
* @param {Array<Array<number>>} arrays
|
|
535
|
-
* An array of arrays of numbers
|
|
536
|
-
*
|
|
537
|
-
* @return {number | undefined}
|
|
538
|
-
* The closest distance between values
|
|
539
|
-
*/
|
|
540
|
-
declare function getClosestDistance(arrays: (number[] | Types.TypedArray)[], onError?: Function): (number | undefined);
|
|
541
|
-
/**
|
|
542
|
-
* Returns the value of a property path on a given object.
|
|
469
|
+
* Return the value of the first element in the array that satisfies the
|
|
470
|
+
* provided testing function.
|
|
543
471
|
*
|
|
544
|
-
* @
|
|
545
|
-
* @function getNestedProperty
|
|
472
|
+
* @function Highcharts.find<T>
|
|
546
473
|
*
|
|
547
|
-
* @param {
|
|
548
|
-
*
|
|
474
|
+
* @param {Array<T>} arr
|
|
475
|
+
* The array to test.
|
|
549
476
|
*
|
|
550
|
-
* @param {
|
|
551
|
-
*
|
|
477
|
+
* @param {Function} callback
|
|
478
|
+
* The callback function. The function receives the item as the first
|
|
479
|
+
* argument. Return `true` if this item satisfies the condition.
|
|
552
480
|
*
|
|
553
|
-
* @return {
|
|
554
|
-
*
|
|
481
|
+
* @return {T|undefined}
|
|
482
|
+
* The value of the element.
|
|
555
483
|
*/
|
|
556
|
-
declare
|
|
557
|
-
declare function getStyle(el: HTMLDOMElement, prop: string, toInt: true): (number | undefined);
|
|
558
|
-
declare function getStyle(el: HTMLDOMElement, prop: string, toInt?: false): (number | string | undefined);
|
|
484
|
+
declare const find: <T>(arr: Array<T>, callback: Utilities.FindCallback<T>) => (T | undefined);
|
|
559
485
|
/**
|
|
560
486
|
* Get the element's offset position, corrected for `overflow: auto`.
|
|
561
487
|
*
|
|
@@ -654,6 +580,20 @@ declare function removeEvent<T>(el: (Class<T> | T), type?: string, fn?: (EventCa
|
|
|
654
580
|
* @return {void}
|
|
655
581
|
*/
|
|
656
582
|
declare function fireEvent<T>(el: T, type: string, eventArguments?: (AnyRecord | Event), defaultFunction?: (EventCallback<T> | Function)): void;
|
|
583
|
+
/**
|
|
584
|
+
* Get a unique key for using in internal element id's and pointers. The key is
|
|
585
|
+
* composed of a random hash specific to this Highcharts instance, and a
|
|
586
|
+
* counter.
|
|
587
|
+
*
|
|
588
|
+
* @example
|
|
589
|
+
* let id = uniqueKey(); // => 'highcharts-x45f6hp-0'
|
|
590
|
+
*
|
|
591
|
+
* @function Highcharts.uniqueKey
|
|
592
|
+
*
|
|
593
|
+
* @return {string}
|
|
594
|
+
* A unique key.
|
|
595
|
+
*/
|
|
596
|
+
declare const uniqueKey: () => string;
|
|
657
597
|
/**
|
|
658
598
|
* Activates a serial mode for element IDs provided by
|
|
659
599
|
* {@link Highcharts.uniqueKey}. This mode can be used in automated tests, where
|
|
@@ -680,21 +620,47 @@ declare function fireEvent<T>(el: T, type: string, eventArguments?: (AnyRecord |
|
|
|
680
620
|
*/
|
|
681
621
|
declare function useSerialIds(mode?: boolean): (boolean | undefined);
|
|
682
622
|
declare function isFunction(obj: unknown): obj is Function;
|
|
683
|
-
declare function ucfirst(s: unknown): string;
|
|
684
623
|
declare namespace Utilities {
|
|
685
624
|
type RelativeSize = (number | string);
|
|
686
625
|
interface ErrorMessageEventObject {
|
|
626
|
+
/**
|
|
627
|
+
* The chart that causes the error.
|
|
628
|
+
*/
|
|
687
629
|
chart?: Chart;
|
|
630
|
+
/**
|
|
631
|
+
* The error code.
|
|
632
|
+
*/
|
|
688
633
|
code: number;
|
|
634
|
+
/**
|
|
635
|
+
* The error message.
|
|
636
|
+
*/
|
|
689
637
|
message?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Additional parameters for the generated message.
|
|
640
|
+
*/
|
|
690
641
|
params?: Record<string, string>;
|
|
691
642
|
}
|
|
692
643
|
interface EventOptions {
|
|
644
|
+
/**
|
|
645
|
+
* The order the event handler should be called. This opens for having
|
|
646
|
+
* one handler be called before another, independent of in which order
|
|
647
|
+
* they were added.
|
|
648
|
+
*/
|
|
693
649
|
order?: number;
|
|
650
|
+
/**
|
|
651
|
+
* Whether an event should be passive or not. When set to `true`, the
|
|
652
|
+
* function specified by listener will never call `preventDefault()`.
|
|
653
|
+
*/
|
|
694
654
|
passive?: boolean;
|
|
695
655
|
}
|
|
696
656
|
interface EventWrapperObject<T> {
|
|
657
|
+
/**
|
|
658
|
+
* The function callback to execute when the event is fired.
|
|
659
|
+
*/
|
|
697
660
|
fn: EventCallback<T>;
|
|
661
|
+
/**
|
|
662
|
+
* The order the event handler should be called.
|
|
663
|
+
*/
|
|
698
664
|
order: number;
|
|
699
665
|
}
|
|
700
666
|
interface FindCallback<T> {
|
|
@@ -704,42 +670,47 @@ declare namespace Utilities {
|
|
|
704
670
|
(this: TContext, value: TObject[keyof TObject], key: Extract<keyof TObject, string>, obj: TObject): void;
|
|
705
671
|
}
|
|
706
672
|
interface OffsetObject {
|
|
673
|
+
/**
|
|
674
|
+
* Height of the element.
|
|
675
|
+
*/
|
|
707
676
|
height: number;
|
|
677
|
+
/**
|
|
678
|
+
* Left distance to the page border.
|
|
679
|
+
*/
|
|
708
680
|
left: number;
|
|
681
|
+
/**
|
|
682
|
+
* Top distance to the page border.
|
|
683
|
+
*/
|
|
709
684
|
top: number;
|
|
685
|
+
/**
|
|
686
|
+
* Width of the element.
|
|
687
|
+
*/
|
|
710
688
|
width: number;
|
|
711
689
|
}
|
|
712
690
|
interface WrapProceedFunction<T extends ArrowFunction> {
|
|
713
691
|
(proceed: (T & ArrowFunction), ...args: Array<any>): ReturnType<T>;
|
|
714
692
|
}
|
|
715
693
|
}
|
|
716
|
-
|
|
694
|
+
interface Utilities {
|
|
717
695
|
addEvent: typeof addEvent;
|
|
718
696
|
arrayMax: typeof arrayMax;
|
|
719
697
|
arrayMin: typeof arrayMin;
|
|
720
698
|
attr: typeof attr;
|
|
721
|
-
clamp: typeof clamp;
|
|
722
699
|
clearTimeout: typeof internalClearTimeout;
|
|
723
700
|
correctFloat: typeof correctFloat;
|
|
724
701
|
createElement: typeof createElement;
|
|
725
|
-
crisp: typeof crisp;
|
|
726
702
|
css: typeof css;
|
|
727
703
|
defined: typeof defined;
|
|
728
704
|
destroyObjectProperties: typeof destroyObjectProperties;
|
|
729
|
-
diffObjects: typeof diffObjects;
|
|
730
705
|
discardElement: typeof discardElement;
|
|
731
706
|
erase: typeof erase;
|
|
732
707
|
error: typeof error;
|
|
733
708
|
extend: typeof extend;
|
|
734
709
|
extendClass: typeof extendClass;
|
|
735
|
-
find:
|
|
710
|
+
find: typeof find;
|
|
736
711
|
fireEvent: typeof fireEvent;
|
|
737
|
-
getAlignFactor: (align?: string) => number;
|
|
738
|
-
getClosestDistance: typeof getClosestDistance;
|
|
739
712
|
getMagnitude: typeof getMagnitude;
|
|
740
|
-
getNestedProperty: typeof getNestedProperty;
|
|
741
713
|
getStyle: typeof getStyle;
|
|
742
|
-
insertItem: typeof insertItem;
|
|
743
714
|
isArray: typeof isArray;
|
|
744
715
|
isClass: typeof isClass;
|
|
745
716
|
isDOMElement: typeof isDOMElement;
|
|
@@ -753,7 +724,6 @@ declare const Utilities: {
|
|
|
753
724
|
offset: typeof offset;
|
|
754
725
|
pad: typeof pad;
|
|
755
726
|
pick: typeof pick;
|
|
756
|
-
pInt: typeof pInt;
|
|
757
727
|
pushUnique: typeof pushUnique;
|
|
758
728
|
relativeLength: typeof relativeLength;
|
|
759
729
|
removeEvent: typeof removeEvent;
|
|
@@ -761,10 +731,9 @@ declare const Utilities: {
|
|
|
761
731
|
splat: typeof splat;
|
|
762
732
|
stableSort: typeof stableSort;
|
|
763
733
|
syncTimeout: typeof syncTimeout;
|
|
764
|
-
|
|
765
|
-
ucfirst: typeof ucfirst;
|
|
766
|
-
uniqueKey: () => string;
|
|
734
|
+
uniqueKey: typeof uniqueKey;
|
|
767
735
|
useSerialIds: typeof useSerialIds;
|
|
768
736
|
wrap: typeof wrap;
|
|
769
|
-
}
|
|
737
|
+
}
|
|
738
|
+
declare const Utilities: Utilities;
|
|
770
739
|
export default Utilities;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2010-
|
|
3
|
+
* (c) 2010-2026 Highsoft AS
|
|
4
|
+
* Author: Torstein Honsi
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
+
* A commercial license may be required depending on use.
|
|
7
|
+
* See www.highcharts.com/license
|
|
6
8
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
9
|
*
|
|
9
10
|
* */
|
|
10
11
|
'use strict';
|
|
@@ -144,7 +145,7 @@ function merge(extendOrSource, ...sources) {
|
|
|
144
145
|
/**
|
|
145
146
|
* Constrain a value to within a lower and upper threshold.
|
|
146
147
|
*
|
|
147
|
-
* @
|
|
148
|
+
* @internal
|
|
148
149
|
* @param {number} value The initial value
|
|
149
150
|
* @param {number} min The lower threshold
|
|
150
151
|
* @param {number} max The upper threshold
|
|
@@ -172,7 +173,7 @@ function crisp(value, lineWidth = 0, inverted) {
|
|
|
172
173
|
/**
|
|
173
174
|
* Return the deep difference between two objects. It can either return the new
|
|
174
175
|
* properties, or optionally return the old values of new properties.
|
|
175
|
-
* @
|
|
176
|
+
* @internal
|
|
176
177
|
*/
|
|
177
178
|
function diffObjects(newer, older, keepOlder, collectionsWithUpdate) {
|
|
178
179
|
const ret = {};
|
|
@@ -238,7 +239,7 @@ function diffObjects(newer, older, keepOlder, collectionsWithUpdate) {
|
|
|
238
239
|
/**
|
|
239
240
|
* Shortcut for parseInt
|
|
240
241
|
*
|
|
241
|
-
* @
|
|
242
|
+
* @internal
|
|
242
243
|
* @function Highcharts.pInt
|
|
243
244
|
*
|
|
244
245
|
* @param {*} s
|
|
@@ -375,7 +376,7 @@ function erase(arr, item) {
|
|
|
375
376
|
* according to the index option and whether it is internal. Used internally
|
|
376
377
|
* when adding series and axes.
|
|
377
378
|
*
|
|
378
|
-
* @
|
|
379
|
+
* @internal
|
|
379
380
|
* @function Highcharts.Chart#insertItem
|
|
380
381
|
* @param {Highcharts.Series|Highcharts.Axis} item
|
|
381
382
|
* The item to insert
|
|
@@ -1006,14 +1007,14 @@ const timeUnits = {
|
|
|
1006
1007
|
/**
|
|
1007
1008
|
* Easing definition
|
|
1008
1009
|
*
|
|
1009
|
-
* @
|
|
1010
|
+
* @internal
|
|
1010
1011
|
* @function Math.easeInOutSine
|
|
1011
1012
|
*
|
|
1012
1013
|
* @param {number} pos
|
|
1013
|
-
*
|
|
1014
|
+
* Current position, ranging from 0 to 1.
|
|
1014
1015
|
*
|
|
1015
1016
|
* @return {number}
|
|
1016
|
-
*
|
|
1017
|
+
* Ease result
|
|
1017
1018
|
*/
|
|
1018
1019
|
Math.easeInOutSine = function (pos) {
|
|
1019
1020
|
return -0.5 * (Math.cos(Math.PI * pos) - 1);
|
|
@@ -1021,7 +1022,7 @@ Math.easeInOutSine = function (pos) {
|
|
|
1021
1022
|
/**
|
|
1022
1023
|
* Convenience function to get the align factor, used several places for
|
|
1023
1024
|
* computing positions
|
|
1024
|
-
* @
|
|
1025
|
+
* @internal
|
|
1025
1026
|
*/
|
|
1026
1027
|
const getAlignFactor = (align = '') => ({
|
|
1027
1028
|
center: 0.5,
|
|
@@ -1031,7 +1032,7 @@ const getAlignFactor = (align = '') => ({
|
|
|
1031
1032
|
}[align] || 0);
|
|
1032
1033
|
/**
|
|
1033
1034
|
* Find the closest distance between two values of a two-dimensional array
|
|
1034
|
-
* @
|
|
1035
|
+
* @internal
|
|
1035
1036
|
* @function Highcharts.getClosestDistance
|
|
1036
1037
|
*
|
|
1037
1038
|
* @param {Array<Array<number>>} arrays
|
|
@@ -1064,7 +1065,7 @@ function getClosestDistance(arrays, onError) {
|
|
|
1064
1065
|
/**
|
|
1065
1066
|
* Returns the value of a property path on a given object.
|
|
1066
1067
|
*
|
|
1067
|
-
* @
|
|
1068
|
+
* @internal
|
|
1068
1069
|
* @function getNestedProperty
|
|
1069
1070
|
*
|
|
1070
1071
|
* @param {string} path
|
|
@@ -1332,18 +1333,14 @@ function addEvent(el, type, fn, options = {}) {
|
|
|
1332
1333
|
*/
|
|
1333
1334
|
function removeEvent(el, type, fn) {
|
|
1334
1335
|
/* eslint-enable valid-jsdoc */
|
|
1335
|
-
/**
|
|
1336
|
-
* @private
|
|
1337
|
-
*/
|
|
1336
|
+
/** @internal */
|
|
1338
1337
|
function removeOneEvent(type, fn) {
|
|
1339
1338
|
const removeEventListener = el.removeEventListener;
|
|
1340
1339
|
if (removeEventListener) {
|
|
1341
1340
|
removeEventListener.call(el, type, fn, false);
|
|
1342
1341
|
}
|
|
1343
1342
|
}
|
|
1344
|
-
/**
|
|
1345
|
-
* @private
|
|
1346
|
-
*/
|
|
1343
|
+
/** @internal */
|
|
1347
1344
|
function removeAllEvents(eventCollection) {
|
|
1348
1345
|
let types, len;
|
|
1349
1346
|
if (!el.nodeName) {
|
|
@@ -1595,11 +1592,6 @@ if (win.jQuery) {
|
|
|
1595
1592
|
}
|
|
1596
1593
|
};
|
|
1597
1594
|
}
|
|
1598
|
-
/* *
|
|
1599
|
-
*
|
|
1600
|
-
* Default Export
|
|
1601
|
-
*
|
|
1602
|
-
* */
|
|
1603
1595
|
// TODO use named exports when supported.
|
|
1604
1596
|
const Utilities = {
|
|
1605
1597
|
addEvent,
|
|
@@ -1661,35 +1653,6 @@ export default Utilities;
|
|
|
1661
1653
|
* API Declarations
|
|
1662
1654
|
*
|
|
1663
1655
|
* */
|
|
1664
|
-
/**
|
|
1665
|
-
* An animation configuration. Animation configurations can also be defined as
|
|
1666
|
-
* booleans, where `false` turns off animation and `true` defaults to a duration
|
|
1667
|
-
* of 500ms and defer of 0ms.
|
|
1668
|
-
*
|
|
1669
|
-
* @interface Highcharts.AnimationOptionsObject
|
|
1670
|
-
*/ /**
|
|
1671
|
-
* A callback function to execute when the animation finishes.
|
|
1672
|
-
* @name Highcharts.AnimationOptionsObject#complete
|
|
1673
|
-
* @type {Function|undefined}
|
|
1674
|
-
*/ /**
|
|
1675
|
-
* The animation defer in milliseconds.
|
|
1676
|
-
* @name Highcharts.AnimationOptionsObject#defer
|
|
1677
|
-
* @type {number|undefined}
|
|
1678
|
-
*/ /**
|
|
1679
|
-
* The animation duration in milliseconds.
|
|
1680
|
-
* @name Highcharts.AnimationOptionsObject#duration
|
|
1681
|
-
* @type {number|undefined}
|
|
1682
|
-
*/ /**
|
|
1683
|
-
* The name of an easing function as defined on the `Math` object.
|
|
1684
|
-
* @name Highcharts.AnimationOptionsObject#easing
|
|
1685
|
-
* @type {string|Function|undefined}
|
|
1686
|
-
*/ /**
|
|
1687
|
-
* A callback function to execute on each step of each attribute or CSS property
|
|
1688
|
-
* that's being animated. The first argument contains information about the
|
|
1689
|
-
* animation and progress.
|
|
1690
|
-
* @name Highcharts.AnimationOptionsObject#step
|
|
1691
|
-
* @type {Function|undefined}
|
|
1692
|
-
*/
|
|
1693
1656
|
/**
|
|
1694
1657
|
* Creates a frame for the animated SVG element.
|
|
1695
1658
|
*
|
|
@@ -1850,6 +1813,9 @@ export default Utilities;
|
|
|
1850
1813
|
* @name Highcharts.Dictionary<T>#[key:string]
|
|
1851
1814
|
* @type {T}
|
|
1852
1815
|
*/
|
|
1816
|
+
/**
|
|
1817
|
+
* @typedef {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} Highcharts.DOMElementType
|
|
1818
|
+
*/
|
|
1853
1819
|
/**
|
|
1854
1820
|
* The function callback to execute when the event is fired. The `this` context
|
|
1855
1821
|
* contains the instance, that fired the event.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2020-
|
|
3
|
+
* (c) 2020-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Dawid Dragula
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Torstein Hønsi
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Karol Kolodziej
|
|
@@ -4,6 +4,7 @@ import type DataEvent from '../DataEvent';
|
|
|
4
4
|
import type DataConverterType from '../Converters/DataConverterType';
|
|
5
5
|
import DataConverter from '../Converters/DataConverter.js';
|
|
6
6
|
import DataTable from '../DataTable.js';
|
|
7
|
+
import { DeepPartial } from '../../Shared/Types';
|
|
7
8
|
/**
|
|
8
9
|
* Abstract class providing an interface for managing a DataConnector.
|
|
9
10
|
*/
|
|
@@ -95,6 +96,16 @@ declare abstract class DataConnector implements DataEvent.Emitter<DataConnector.
|
|
|
95
96
|
* Order of columns.
|
|
96
97
|
*/
|
|
97
98
|
setColumnOrder(columnIds: Array<string>): void;
|
|
99
|
+
/**
|
|
100
|
+
* Updates the connector with new options.
|
|
101
|
+
*
|
|
102
|
+
* @param newOptions
|
|
103
|
+
* The new options to be applied to the connector.
|
|
104
|
+
*
|
|
105
|
+
* @param reload
|
|
106
|
+
* Whether to reload the connector after applying the new options.
|
|
107
|
+
*/
|
|
108
|
+
update(newOptions: DeepPartial<typeof this.options>, reload?: boolean): Promise<void>;
|
|
98
109
|
/**
|
|
99
110
|
* The default load method, which fires the `afterLoad` event
|
|
100
111
|
*
|
|
@@ -163,7 +174,7 @@ declare namespace DataConnector {
|
|
|
163
174
|
* The event type that is provided on events within DataConnector.
|
|
164
175
|
*/
|
|
165
176
|
interface Event extends DataEvent {
|
|
166
|
-
readonly type: 'loadError' | 'load' | 'afterLoad';
|
|
177
|
+
readonly type: ('loadError' | 'load' | 'afterLoad' | 'beforeUpdate' | 'afterUpdate');
|
|
167
178
|
readonly error?: string | Error;
|
|
168
179
|
}
|
|
169
180
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Sophie Bremer
|
|
@@ -166,6 +166,34 @@ class DataConnector {
|
|
|
166
166
|
connector.describeColumn(columnIds[i], { index: i });
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Updates the connector with new options.
|
|
171
|
+
*
|
|
172
|
+
* @param newOptions
|
|
173
|
+
* The new options to be applied to the connector.
|
|
174
|
+
*
|
|
175
|
+
* @param reload
|
|
176
|
+
* Whether to reload the connector after applying the new options.
|
|
177
|
+
*/
|
|
178
|
+
async update(newOptions, reload = true) {
|
|
179
|
+
this.emit({ type: 'beforeUpdate' });
|
|
180
|
+
merge(true, this.options, newOptions);
|
|
181
|
+
const { options } = this;
|
|
182
|
+
if ('enablePolling' in newOptions || 'dataRefreshRate' in newOptions) {
|
|
183
|
+
if ('enablePolling' in options && options.enablePolling) {
|
|
184
|
+
this.stopPolling();
|
|
185
|
+
this.startPolling(('dataRefreshRate' in options &&
|
|
186
|
+
typeof options.dataRefreshRate === 'number') ? Math.max(options.dataRefreshRate, 1) * 1000 : 1000);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
this.stopPolling();
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (reload) {
|
|
193
|
+
await this.load();
|
|
194
|
+
}
|
|
195
|
+
this.emit({ type: 'afterUpdate' });
|
|
196
|
+
}
|
|
169
197
|
/**
|
|
170
198
|
* The default load method, which fires the `afterLoad` event
|
|
171
199
|
*
|
|
@@ -209,7 +237,9 @@ class DataConnector {
|
|
|
209
237
|
this.pollingController = new AbortController();
|
|
210
238
|
// Clear the polling timeout.
|
|
211
239
|
window.clearTimeout(connector._polling);
|
|
212
|
-
connector._polling = window.setTimeout(
|
|
240
|
+
connector._polling = window.setTimeout(
|
|
241
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
242
|
+
() => connector
|
|
213
243
|
.load()['catch']((error) => connector.emit({
|
|
214
244
|
type: 'loadError',
|
|
215
245
|
error
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Sophie Bremer
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Sophie Bremer
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Torstein Hønsi
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Karol Kolodziej
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* *
|
|
2
2
|
*
|
|
3
|
-
* (c) 2009-
|
|
3
|
+
* (c) 2009-2026 Highsoft AS
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* A commercial license may be required depending on use.
|
|
6
|
+
* See www.highcharts.com/license
|
|
6
7
|
*
|
|
7
|
-
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* Authors:
|
|
10
10
|
* - Torstein Hønsi
|