@highcharts/grid-pro 2.0.1 → 2.1.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 +69 -85
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +2 -0
- package/es-modules/Accessibility/Options/LangDefaults.js +6 -1
- package/es-modules/Accessibility/Utils/ChartUtilities.js +3 -3
- package/es-modules/Core/Color/ColorString.d.ts +25 -0
- package/es-modules/Core/Color/ColorType.d.ts +43 -0
- package/es-modules/Core/Color/GradientColor.d.ts +57 -0
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Renderer/AlignObject.d.ts +37 -0
- package/es-modules/Core/Renderer/BBoxObject.d.ts +40 -0
- package/es-modules/Core/Renderer/CSSObject.d.ts +130 -0
- package/es-modules/Core/Renderer/DOMElementType.d.ts +36 -0
- package/es-modules/Core/Renderer/DashStyleValue.d.ts +28 -0
- package/es-modules/Core/Renderer/FontMetricsObject.d.ts +38 -0
- package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +57 -0
- package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +19 -0
- package/es-modules/Core/Renderer/Position3DObject.d.ts +35 -0
- package/es-modules/Core/Renderer/PositionObject.d.ts +28 -0
- package/es-modules/Core/Renderer/RectangleObject.d.ts +35 -0
- package/es-modules/Core/Renderer/RendererType.d.ts +53 -0
- package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +43 -0
- package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +44 -0
- package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +147 -0
- package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +42 -0
- package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +42 -0
- package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +31 -0
- package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +97 -0
- package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +40 -0
- package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +31 -0
- package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +41 -0
- package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +50 -0
- package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +40 -0
- package/es-modules/Core/Renderer/SizeObject.d.ts +28 -0
- package/es-modules/Core/Templating.js +6 -7
- package/es-modules/Data/Connectors/DataConnector.js +3 -2
- package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +1 -1
- package/es-modules/Data/DataTable.d.ts +1 -1
- package/es-modules/Data/DataTable.js +3 -2
- package/es-modules/Data/DataTableCore.js +15 -6
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +13 -15
- package/es-modules/Grid/Core/Credits.d.ts +0 -2
- package/es-modules/Grid/Core/Defaults.d.ts +20 -17
- package/es-modules/Grid/Core/Defaults.js +116 -114
- package/es-modules/Grid/Core/Globals.d.ts +108 -32
- package/es-modules/Grid/Core/Globals.js +98 -111
- package/es-modules/Grid/Core/Grid.d.ts +51 -17
- package/es-modules/Grid/Core/Grid.js +369 -79
- package/es-modules/Grid/Core/GridUtils.d.ts +96 -89
- package/es-modules/Grid/Core/GridUtils.js +143 -155
- package/es-modules/Grid/Core/Options.d.ts +3 -7
- package/es-modules/Grid/Core/Pagination/Icons.d.ts +4 -4
- package/es-modules/Grid/Core/Pagination/Pagination.d.ts +32 -57
- package/es-modules/Grid/Core/Pagination/Pagination.js +206 -214
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +22 -15
- package/es-modules/Grid/Core/Querying/PaginationController.d.ts +32 -9
- package/es-modules/Grid/Core/Querying/PaginationController.js +58 -18
- package/es-modules/Grid/Core/Querying/SortingController.d.ts +7 -15
- package/es-modules/Grid/Core/Querying/SortingController.js +2 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +32 -4
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +3 -5
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +1 -5
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +14 -10
- package/es-modules/Grid/Core/Table/Body/TableCell.js +19 -21
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Cell.js +30 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +2 -7
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +25 -14
- package/es-modules/Grid/Core/Table/Column.d.ts +7 -9
- package/es-modules/Grid/Core/Table/Column.js +23 -1
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +2 -2
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +30 -23
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +39 -39
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +1 -1
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +2 -2
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +6 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +10 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +2 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +26 -24
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +37 -39
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Table.d.ts +11 -13
- package/es-modules/Grid/Core/Table/Table.js +9 -5
- package/es-modules/Grid/Core/UI/Button.d.ts +1 -1
- package/es-modules/Grid/Core/UI/ContextMenu.d.ts +1 -1
- package/es-modules/Grid/Core/UI/ContextMenu.js +1 -1
- package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +39 -44
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +4 -4
- package/es-modules/Grid/Core/UI/Popup.d.ts +17 -19
- package/es-modules/Grid/Core/UI/Popup.js +2 -1
- package/es-modules/Grid/Core/UI/SvgIcons.d.ts +49 -50
- package/es-modules/Grid/Core/UI/SvgIcons.js +114 -123
- package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +46 -52
- package/es-modules/Grid/Core/UI/ToolbarButton.js +4 -3
- package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +6 -8
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +8 -11
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +27 -1
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +149 -149
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +18 -20
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +1 -1
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +19 -17
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +28 -34
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +12 -1
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +41 -46
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +4 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +19 -8
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +17 -13
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +18 -20
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +17 -20
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +20 -22
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +40 -42
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +16 -18
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +14 -22
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +22 -24
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +46 -51
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +62 -77
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +16 -3
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +26 -31
- package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +0 -2
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +12 -11
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +29 -31
- package/es-modules/Grid/Pro/Export/Exporting.d.ts +3 -3
- package/es-modules/Grid/Pro/Export/Exporting.js +35 -29
- package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +12 -11
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +24 -26
- package/es-modules/Grid/Pro/GridEvents.d.ts +19 -1
- package/es-modules/Grid/Pro/GridEvents.js +6 -2
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +4 -11
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +44 -45
- package/es-modules/Grid/index.d.ts +1 -0
- package/es-modules/masters/grid-pro.src.d.ts +62 -37
- package/es-modules/masters/grid-pro.src.js +37 -39
- package/grid-pro.d.ts +122 -48
- package/grid-pro.js +3 -6
- package/grid-pro.js.map +1 -1
- package/grid-pro.src.d.ts +122 -48
- package/grid-pro.src.js +6645 -6270
- package/package.json +13 -4
- package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +0 -29
|
@@ -13,43 +13,41 @@
|
|
|
13
13
|
*
|
|
14
14
|
* */
|
|
15
15
|
'use strict';
|
|
16
|
-
import
|
|
16
|
+
import { defaultOptions } from '../../Core/Defaults.js';
|
|
17
17
|
import Exporting from './Exporting.js';
|
|
18
18
|
import Globals from '../../Core/Globals.js';
|
|
19
19
|
import U from '../../../Core/Utilities.js';
|
|
20
20
|
const { addEvent, pushUnique } = U;
|
|
21
21
|
/* *
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* Composition
|
|
24
24
|
*
|
|
25
25
|
* */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (!pushUnique(Globals.composed, 'Exporting')) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
Defaults.defaultOptions.exporting = Exporting.defaultOptions;
|
|
40
|
-
addEvent(GridClass, 'beforeLoad', initExporting);
|
|
41
|
-
}
|
|
42
|
-
ExportingComposition.compose = compose;
|
|
43
|
-
/**
|
|
44
|
-
* Init exporting
|
|
45
|
-
*/
|
|
46
|
-
function initExporting() {
|
|
47
|
-
this.exporting = new Exporting(this);
|
|
26
|
+
/**
|
|
27
|
+
* Extends the grid classes with exporting.
|
|
28
|
+
*
|
|
29
|
+
* @param GridClass
|
|
30
|
+
* The class to extend.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export function compose(GridClass) {
|
|
34
|
+
if (!pushUnique(Globals.composed, 'Exporting')) {
|
|
35
|
+
return;
|
|
48
36
|
}
|
|
49
|
-
|
|
37
|
+
defaultOptions.exporting = Exporting.defaultOptions;
|
|
38
|
+
addEvent(GridClass, 'beforeLoad', initExporting);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Init exporting
|
|
42
|
+
*/
|
|
43
|
+
function initExporting() {
|
|
44
|
+
this.exporting = new Exporting(this);
|
|
45
|
+
}
|
|
50
46
|
/* *
|
|
51
47
|
*
|
|
52
48
|
* Default Export
|
|
53
49
|
*
|
|
54
50
|
* */
|
|
55
|
-
export default
|
|
51
|
+
export default {
|
|
52
|
+
compose
|
|
53
|
+
};
|
|
@@ -12,7 +12,7 @@ export type ColumnEventCallback = (this: Column) => void;
|
|
|
12
12
|
/**
|
|
13
13
|
* Callback function to be called when a grid event is triggered.
|
|
14
14
|
*/
|
|
15
|
-
export type GridEventCallback = (this: Grid) => void;
|
|
15
|
+
export type GridEventCallback = (this: Grid, e: AnyRecord) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Events related to the cells.
|
|
18
18
|
*/
|
|
@@ -90,6 +90,24 @@ export interface GridEvents {
|
|
|
90
90
|
* Callback function to be called after the grid is loaded.
|
|
91
91
|
*/
|
|
92
92
|
afterLoad?: GridEventCallback;
|
|
93
|
+
/**
|
|
94
|
+
* Callback function to be called before the grid options are updated.
|
|
95
|
+
*/
|
|
96
|
+
beforeUpdate?: GridEventCallback;
|
|
97
|
+
/**
|
|
98
|
+
* Callback function to be called after the grid options are updated.
|
|
99
|
+
*/
|
|
100
|
+
afterUpdate?: GridEventCallback;
|
|
101
|
+
/**
|
|
102
|
+
* Callback function to be called before the grid is redrawn after an
|
|
103
|
+
* update.
|
|
104
|
+
*/
|
|
105
|
+
beforeRedraw?: GridEventCallback;
|
|
106
|
+
/**
|
|
107
|
+
* Callback function to be called after the grid is redrawn after an
|
|
108
|
+
* update.
|
|
109
|
+
*/
|
|
110
|
+
afterRedraw?: GridEventCallback;
|
|
93
111
|
}
|
|
94
112
|
declare module '../Core/Options' {
|
|
95
113
|
interface Options {
|
|
@@ -54,11 +54,15 @@ function compose(GridClass, ColumnClass, HeaderCellClass, TableCellClass) {
|
|
|
54
54
|
}
|
|
55
55
|
[
|
|
56
56
|
'beforeLoad',
|
|
57
|
-
'afterLoad'
|
|
57
|
+
'afterLoad',
|
|
58
|
+
'beforeUpdate',
|
|
59
|
+
'afterUpdate',
|
|
60
|
+
'beforeRedraw',
|
|
61
|
+
'afterRedraw'
|
|
58
62
|
].forEach((name) => {
|
|
59
63
|
addEvent(GridClass, name, (e) => {
|
|
60
64
|
const grid = e.target;
|
|
61
|
-
grid.options?.events?.[name]?.call(grid);
|
|
65
|
+
grid.options?.events?.[name]?.call(grid, e);
|
|
62
66
|
});
|
|
63
67
|
});
|
|
64
68
|
[
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import type Pagination from '../../Core/Pagination/Pagination';
|
|
2
|
-
declare namespace PaginationComposition {
|
|
3
|
-
/**
|
|
4
|
-
* Extends the pagination class with events.
|
|
5
|
-
*
|
|
6
|
-
* @param PaginationClass
|
|
7
|
-
* The class to extend.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
function compose(PaginationClass: typeof Pagination): void;
|
|
11
|
-
}
|
|
12
2
|
declare module '../../Core/Pagination/PaginationOptions' {
|
|
13
3
|
interface PaginationOptions {
|
|
14
4
|
/**
|
|
@@ -72,4 +62,7 @@ export interface AfterPageSizeChangeEvent {
|
|
|
72
62
|
export type PaginationEvent = Record<string, number> & {
|
|
73
63
|
target: Pagination;
|
|
74
64
|
};
|
|
75
|
-
|
|
65
|
+
declare const _default: {
|
|
66
|
+
readonly compose: typeof compose;
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
@@ -18,59 +18,58 @@ import Globals from '../../../Core/Globals.js';
|
|
|
18
18
|
const { addEvent, pushUnique } = Utilities;
|
|
19
19
|
/* *
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* Composition
|
|
22
22
|
*
|
|
23
23
|
* */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
pageSize: pageSize
|
|
44
|
-
});
|
|
24
|
+
/**
|
|
25
|
+
* Extends the pagination class with events.
|
|
26
|
+
*
|
|
27
|
+
* @param PaginationClass
|
|
28
|
+
* The class to extend.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export function compose(PaginationClass) {
|
|
33
|
+
if (!pushUnique(Globals.composed, 'PaginationPro')) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
// Register pagination events
|
|
37
|
+
addEvent(PaginationClass, 'beforePageChange', (e) => {
|
|
38
|
+
const { target, currentPage, nextPage, pageSize } = e;
|
|
39
|
+
target.options?.events?.beforePageChange?.call(target, {
|
|
40
|
+
currentPage: currentPage,
|
|
41
|
+
nextPage: nextPage,
|
|
42
|
+
pageSize: pageSize
|
|
45
43
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
});
|
|
45
|
+
addEvent(PaginationClass, 'afterPageChange', (e) => {
|
|
46
|
+
const { target, currentPage, previousPage, pageSize } = e;
|
|
47
|
+
target.options?.events?.afterPageChange?.call(target, {
|
|
48
|
+
currentPage: currentPage,
|
|
49
|
+
previousPage: previousPage,
|
|
50
|
+
pageSize: pageSize
|
|
53
51
|
});
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
});
|
|
53
|
+
addEvent(PaginationClass, 'beforePageSizeChange', (e) => {
|
|
54
|
+
const { target, newPageSize, pageSize } = e;
|
|
55
|
+
target.options?.events?.beforePageSizeChange?.call(target, {
|
|
56
|
+
pageSize: pageSize,
|
|
57
|
+
newPageSize: newPageSize
|
|
60
58
|
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
});
|
|
60
|
+
addEvent(PaginationClass, 'afterPageSizeChange', (e) => {
|
|
61
|
+
const { target, previousPageSize, pageSize } = e;
|
|
62
|
+
target.options?.events?.afterPageSizeChange?.call(target, {
|
|
63
|
+
pageSize: pageSize,
|
|
64
|
+
previousPageSize: previousPageSize
|
|
67
65
|
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
})(PaginationComposition || (PaginationComposition = {}));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
71
68
|
/* *
|
|
72
69
|
*
|
|
73
70
|
* Default Export
|
|
74
71
|
*
|
|
75
72
|
* */
|
|
76
|
-
export default
|
|
73
|
+
export default {
|
|
74
|
+
compose
|
|
75
|
+
};
|
|
@@ -3,3 +3,4 @@ export type { default as Options } from './Core/Options';
|
|
|
3
3
|
export { default as Column } from './Core/Table/Column.js';
|
|
4
4
|
export { default as TableRow } from './Core/Table/Row.js';
|
|
5
5
|
export { default as TableCell } from './Core/Table/Body/TableCell.js';
|
|
6
|
+
export { TableCellEvent } from './Core/Table/Body/TableCell.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Grid Pro
|
|
2
|
+
* @license Highcharts Grid Pro v2.1.0 (2025-12-09)
|
|
3
3
|
* @module grid/grid-pro
|
|
4
4
|
*
|
|
5
5
|
* (c) 2009-2025 Highsoft AS
|
|
@@ -18,10 +18,6 @@ import _Grid from '../Grid/Core/Grid.js';
|
|
|
18
18
|
import DataModifier from '../Data/Modifiers/DataModifier.js';
|
|
19
19
|
import DataPool from '../Data/DataPool.js';
|
|
20
20
|
import DataTable from '../Data/DataTable.js';
|
|
21
|
-
import Defaults from '../Grid/Core/Defaults.js';
|
|
22
|
-
import Globals from '../Grid/Core/Globals.js';
|
|
23
|
-
import whcm from '../Accessibility/HighContrastMode.js';
|
|
24
|
-
import Utilities from '../Core/Utilities.js';
|
|
25
21
|
import Table from '../Grid/Core/Table/Table.js';
|
|
26
22
|
import Column from '../Grid/Core/Table/Column.js';
|
|
27
23
|
import HeaderCell from '../Grid/Core/Table/Header/HeaderCell.js';
|
|
@@ -31,6 +27,7 @@ import CellRendererRegistry from '../Grid/Pro/CellRendering/CellRendererRegistry
|
|
|
31
27
|
import Pagination from '../Grid/Core/Pagination/Pagination.js';
|
|
32
28
|
import CellContentPro from '../Grid/Pro/CellRendering/CellContentPro.js';
|
|
33
29
|
import CellRenderer from '../Grid/Pro/CellRendering/CellRenderer.js';
|
|
30
|
+
import Popup from '../Grid/Core/UI/Popup.js';
|
|
34
31
|
import '../Data/Connectors/CSVConnector.js';
|
|
35
32
|
import '../Data/Connectors/GoogleSheetsConnector.js';
|
|
36
33
|
import '../Data/Connectors/HTMLTableConnector.js';
|
|
@@ -56,43 +53,71 @@ import '../Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js';
|
|
|
56
53
|
import '../Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js';
|
|
57
54
|
import '../Grid/Pro/CellRendering/Renderers/SparklineRenderer.js';
|
|
58
55
|
import '../Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js';
|
|
56
|
+
declare const G: {
|
|
57
|
+
readonly AST: typeof AST;
|
|
58
|
+
readonly CellContentPro: typeof CellContentPro;
|
|
59
|
+
readonly CellRenderer: typeof CellRenderer;
|
|
60
|
+
readonly CellRendererRegistry: {
|
|
61
|
+
readonly types: import("../Grid/Pro/CellRendering/CellRendererType").CellRendererTypeRegistry;
|
|
62
|
+
readonly registerRenderer: typeof import("../Grid/Pro/CellRendering/CellRendererRegistry.js").registerRenderer;
|
|
63
|
+
};
|
|
64
|
+
readonly classNamePrefix: string;
|
|
65
|
+
readonly Column: typeof Column;
|
|
66
|
+
readonly ColumnResizing: {
|
|
67
|
+
readonly initMode: typeof import("../Grid/Core/Table/ColumnResizing/ColumnResizing.js").initMode;
|
|
68
|
+
readonly types: {
|
|
69
|
+
adjacent: typeof import("../Grid/Core/Table/ColumnResizing/AdjacentResizingMode").default;
|
|
70
|
+
distributed: typeof import("../Grid/Core/Table/ColumnResizing/DistributedResizingMode").default;
|
|
71
|
+
independent: typeof import("../Grid/Core/Table/ColumnResizing/IndependentResizingMode").default;
|
|
72
|
+
};
|
|
73
|
+
readonly AbstractStrategy: typeof import("../Grid/Core/Table/ColumnResizing/ResizingMode").default;
|
|
74
|
+
};
|
|
75
|
+
readonly DataConnector: typeof DataConnector;
|
|
76
|
+
readonly DataConverter: typeof DataConverter;
|
|
77
|
+
readonly DataCursor: typeof DataCursor;
|
|
78
|
+
readonly DataModifier: typeof DataModifier;
|
|
79
|
+
readonly DataPool: typeof DataPool;
|
|
80
|
+
readonly DataTable: typeof DataTable;
|
|
81
|
+
readonly defaultOptions: import("../Shared/Types").DeepPartial<_Options>;
|
|
82
|
+
readonly Grid: typeof _Grid;
|
|
83
|
+
readonly grid: typeof _Grid.grid;
|
|
84
|
+
readonly grids: (_Grid | undefined)[];
|
|
85
|
+
readonly HeaderCell: typeof HeaderCell;
|
|
86
|
+
readonly isHighContrastModeActive: () => boolean;
|
|
87
|
+
readonly merge: {
|
|
88
|
+
<T = object>(extend: true, a?: T, ...n: Array<import("../Shared/Types").DeepPartial<T> | undefined>): (T);
|
|
89
|
+
<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);
|
|
90
|
+
};
|
|
91
|
+
readonly Pagination: typeof Pagination;
|
|
92
|
+
readonly Popup: typeof Popup;
|
|
93
|
+
readonly product: "Grid Pro";
|
|
94
|
+
readonly setOptions: typeof import("../Grid/Core/Defaults.js").setOptions;
|
|
95
|
+
readonly SvgIcons: {
|
|
96
|
+
readonly createGridIcon: typeof import("../Grid/Core/UI/SvgIcons.js").createGridIcon;
|
|
97
|
+
readonly icons: Record<import("../Grid/Core/UI/SvgIcons.js").GridIconName, import("../Grid/Core/UI/SvgIcons.js").SVGDefinition>;
|
|
98
|
+
readonly pathDefaults: Partial<import("../Grid/Core/UI/SvgIcons.js").PathDefinition>;
|
|
99
|
+
};
|
|
100
|
+
readonly Table: typeof Table;
|
|
101
|
+
readonly TableCell: typeof TableCell;
|
|
102
|
+
readonly Templating: {
|
|
103
|
+
dateFormat: (format: string, timestamp: number, upperCaseFirst?: boolean) => string;
|
|
104
|
+
format: (str: string | undefined, ctx: any, owner?: Templating.Owner) => string;
|
|
105
|
+
helpers: Record<string, Function>;
|
|
106
|
+
numberFormat: (this: Templating.Owner | void, number: number, decimals: number, decimalPoint?: string, thousandsSep?: string) => string;
|
|
107
|
+
};
|
|
108
|
+
readonly version: "2.1.0";
|
|
109
|
+
readonly win: Window & typeof globalThis;
|
|
110
|
+
};
|
|
111
|
+
export { AST, CellContentPro, CellRenderer, CellRendererRegistry, Column, ColumnResizing, DataConnector, DataConverter, DataCursor, DataModifier, DataPool, DataTable, HeaderCell, Pagination, Popup, SvgIcons, Table, TableCell, Templating };
|
|
112
|
+
export declare const classNamePrefix: string, defaultOptions: import("../Shared/Types").DeepPartial<_Options>, Grid: typeof _Grid, grid: typeof _Grid.grid, grids: (_Grid | undefined)[], isHighContrastModeActive: () => boolean, merge: {
|
|
113
|
+
<T = object>(extend: true, a?: T, ...n: Array<import("../Shared/Types").DeepPartial<T> | undefined>): (T);
|
|
114
|
+
<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);
|
|
115
|
+
}, product: "Grid Pro", setOptions: typeof import("../Grid/Core/Defaults.js").setOptions, version: "2.1.0", win: Window & typeof globalThis;
|
|
59
116
|
declare global {
|
|
60
|
-
interface GridNamespace {
|
|
61
|
-
win: typeof Globals.win;
|
|
62
|
-
product: 'Grid Lite' | 'Grid Pro';
|
|
63
|
-
AST: typeof AST;
|
|
64
|
-
classNamePrefix: typeof Globals.classNamePrefix;
|
|
65
|
-
Grid: typeof _Grid;
|
|
66
|
-
grid: typeof _Grid.grid;
|
|
67
|
-
grids: Array<(_Grid | undefined)>;
|
|
68
|
-
ColumnResizing: typeof ColumnResizing;
|
|
69
|
-
DataConverter: typeof DataConverter;
|
|
70
|
-
DataCursor: typeof DataCursor;
|
|
71
|
-
DataModifier: typeof DataModifier;
|
|
72
|
-
DataConnector: typeof DataConnector;
|
|
73
|
-
DataPool: typeof DataPool;
|
|
74
|
-
DataTable: typeof DataTable;
|
|
75
|
-
isHighContrastModeActive: typeof whcm.isHighContrastModeActive;
|
|
76
|
-
defaultOptions: typeof Defaults.defaultOptions;
|
|
77
|
-
setOptions: typeof Defaults.setOptions;
|
|
78
|
-
Table: typeof Table;
|
|
79
|
-
Column: typeof Column;
|
|
80
|
-
HeaderCell: typeof HeaderCell;
|
|
81
|
-
TableCell: typeof TableCell;
|
|
82
|
-
Pagination: typeof Pagination;
|
|
83
|
-
Templating: typeof Templating;
|
|
84
|
-
CellContentPro: typeof CellContentPro;
|
|
85
|
-
merge: typeof Utilities.merge;
|
|
86
|
-
CellRendererRegistry: typeof CellRendererRegistry;
|
|
87
|
-
CellRenderer: typeof CellRenderer;
|
|
88
|
-
SvgIcons: typeof SvgIcons;
|
|
89
|
-
}
|
|
90
117
|
interface Window {
|
|
91
|
-
Grid: GridNamespace;
|
|
92
118
|
Highcharts?: typeof H;
|
|
93
119
|
}
|
|
94
120
|
}
|
|
95
|
-
declare const G: GridNamespace;
|
|
96
121
|
declare namespace G {
|
|
97
122
|
type Options = _Options;
|
|
98
123
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Grid Pro
|
|
2
|
+
* @license Highcharts Grid Pro v2.1.0 (2025-12-09)
|
|
3
3
|
* @module grid/grid-pro
|
|
4
4
|
*
|
|
5
5
|
* (c) 2009-2025 Highsoft AS
|
|
6
6
|
*
|
|
7
7
|
* License: www.highcharts.com/license
|
|
8
8
|
*/
|
|
9
|
-
'use strict';
|
|
10
9
|
import AST from '../Core/Renderer/HTML/AST.js';
|
|
11
10
|
import Templating from '../Core/Templating.js';
|
|
12
11
|
import ColumnResizing from '../Grid/Core/Table/ColumnResizing/ColumnResizing.js';
|
|
@@ -37,6 +36,7 @@ import PaginationComposition from '../Grid/Pro/Pagination/PaginationComposition.
|
|
|
37
36
|
import Pagination from '../Grid/Core/Pagination/Pagination.js';
|
|
38
37
|
import CellContentPro from '../Grid/Pro/CellRendering/CellContentPro.js';
|
|
39
38
|
import CellRenderer from '../Grid/Pro/CellRendering/CellRenderer.js';
|
|
39
|
+
import Popup from '../Grid/Core/UI/Popup.js';
|
|
40
40
|
/* *
|
|
41
41
|
*
|
|
42
42
|
* Registers Imports
|
|
@@ -75,30 +75,38 @@ import '../Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js';
|
|
|
75
75
|
* Namespace
|
|
76
76
|
*
|
|
77
77
|
* */
|
|
78
|
-
const G =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
const G = {
|
|
79
|
+
AST,
|
|
80
|
+
CellContentPro,
|
|
81
|
+
CellRenderer,
|
|
82
|
+
CellRendererRegistry,
|
|
83
|
+
classNamePrefix: Globals.classNamePrefix,
|
|
84
|
+
Column,
|
|
85
|
+
ColumnResizing,
|
|
86
|
+
DataConnector,
|
|
87
|
+
DataConverter,
|
|
88
|
+
DataCursor,
|
|
89
|
+
DataModifier,
|
|
90
|
+
DataPool,
|
|
91
|
+
DataTable,
|
|
92
|
+
defaultOptions: Defaults.defaultOptions,
|
|
93
|
+
Grid: _Grid,
|
|
94
|
+
grid: _Grid.grid,
|
|
95
|
+
grids: _Grid.grids,
|
|
96
|
+
HeaderCell,
|
|
97
|
+
isHighContrastModeActive: whcm.isHighContrastModeActive,
|
|
98
|
+
merge: Utilities.merge,
|
|
99
|
+
Pagination,
|
|
100
|
+
Popup,
|
|
101
|
+
product: 'Grid Pro',
|
|
102
|
+
setOptions: Defaults.setOptions,
|
|
103
|
+
SvgIcons,
|
|
104
|
+
Table,
|
|
105
|
+
TableCell,
|
|
106
|
+
Templating,
|
|
107
|
+
version: Globals.version,
|
|
108
|
+
win: Globals.win
|
|
109
|
+
};
|
|
102
110
|
GridEvents.compose(G.Grid, G.Column, G.HeaderCell, G.TableCell);
|
|
103
111
|
CellEditingComposition.compose(G.Table, G.TableCell, G.Column);
|
|
104
112
|
CreditsProComposition.compose(G.Grid);
|
|
@@ -106,24 +114,14 @@ ExportingComposition.compose(G.Grid);
|
|
|
106
114
|
ValidatorComposition.compose(G.Table);
|
|
107
115
|
CellRenderersComposition.compose(G.Column);
|
|
108
116
|
PaginationComposition.compose(G.Pagination);
|
|
109
|
-
G.CellRendererRegistry = G.CellRendererRegistry || CellRendererRegistry;
|
|
110
|
-
G.CellContentPro = CellContentPro;
|
|
111
|
-
G.CellRenderer = CellRenderer;
|
|
112
|
-
G.SvgIcons = SvgIcons;
|
|
113
117
|
/* *
|
|
114
118
|
*
|
|
115
|
-
*
|
|
119
|
+
* Named Exports
|
|
116
120
|
*
|
|
117
121
|
* */
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
122
|
+
export { AST, CellContentPro, CellRenderer, CellRendererRegistry, Column, ColumnResizing, DataConnector, DataConverter, DataCursor, DataModifier, DataPool, DataTable, HeaderCell, Pagination, Popup, SvgIcons, Table, TableCell, Templating };
|
|
123
|
+
export const { classNamePrefix, defaultOptions, Grid, grid, grids, isHighContrastModeActive, merge, product, setOptions, version, win } = G;
|
|
121
124
|
if (G.win.Highcharts) {
|
|
122
125
|
G.CellRendererRegistry.types.sparkline.useHighcharts(G.win.Highcharts);
|
|
123
126
|
}
|
|
124
|
-
/* *
|
|
125
|
-
*
|
|
126
|
-
* Default Export
|
|
127
|
-
*
|
|
128
|
-
* */
|
|
129
127
|
export default G;
|