@highcharts/grid-pro 2.0.0 → 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 +93 -90
- 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/Chart/Chart.js +1 -1
- 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 +22 -25
- 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/HeaderCell.js +3 -4
- 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 +6650 -6277
- package/package.json +13 -4
- package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +0 -29
|
@@ -242,16 +242,25 @@ class DataTableCore {
|
|
|
242
242
|
* @emits #afterSetRows
|
|
243
243
|
*/
|
|
244
244
|
setRow(row, rowIndex = this.rowCount, insert, eventDetail) {
|
|
245
|
-
const { columns } = this, indexRowCount = insert ? this.rowCount + 1 : rowIndex + 1;
|
|
246
|
-
|
|
247
|
-
let
|
|
248
|
-
|
|
245
|
+
const { columns } = this, indexRowCount = insert ? this.rowCount + 1 : rowIndex + 1, rowKeys = Object.keys(row);
|
|
246
|
+
if (eventDetail?.addColumns !== false) {
|
|
247
|
+
for (let i = 0, iEnd = rowKeys.length; i < iEnd; i++) {
|
|
248
|
+
const key = rowKeys[i];
|
|
249
|
+
if (!columns[key]) {
|
|
250
|
+
columns[key] = [];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
objectEach(columns, (column, columnId) => {
|
|
255
|
+
if (!column && eventDetail?.addColumns !== false) {
|
|
256
|
+
column = new Array(indexRowCount);
|
|
257
|
+
}
|
|
249
258
|
if (column) {
|
|
250
259
|
if (insert) {
|
|
251
|
-
column = splice(column, rowIndex, 0, true, [
|
|
260
|
+
column = splice(column, rowIndex, 0, true, [row[columnId] ?? null]).array;
|
|
252
261
|
}
|
|
253
262
|
else {
|
|
254
|
-
column[rowIndex] =
|
|
263
|
+
column[rowIndex] = row[columnId] ?? null;
|
|
255
264
|
}
|
|
256
265
|
columns[columnId] = column;
|
|
257
266
|
}
|
|
@@ -64,7 +64,7 @@ declare class Accessibility {
|
|
|
64
64
|
* @param state
|
|
65
65
|
* The sort state to be set for the column header cell.
|
|
66
66
|
*/
|
|
67
|
-
setColumnSortState(thElement: HTMLElement, state:
|
|
67
|
+
setColumnSortState(thElement: HTMLElement, state: AriaSortState): void;
|
|
68
68
|
/**
|
|
69
69
|
* Announce the message to the screen reader that the user filtered the
|
|
70
70
|
* column.
|
|
@@ -75,7 +75,7 @@ declare class Accessibility {
|
|
|
75
75
|
* @param filteringApplied
|
|
76
76
|
* Whether the filtering was applied or cleared.
|
|
77
77
|
*/
|
|
78
|
-
userFilteredColumn(filteredColumnValues:
|
|
78
|
+
userFilteredColumn(filteredColumnValues: FilteredColumnValues, filteringApplied: boolean): void;
|
|
79
79
|
/**
|
|
80
80
|
* Adds high contrast CSS class, if the browser is in High Contrast mode.
|
|
81
81
|
*/
|
|
@@ -99,17 +99,15 @@ declare class Accessibility {
|
|
|
99
99
|
*/
|
|
100
100
|
destroy(): void;
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
};
|
|
114
|
-
}
|
|
102
|
+
/**
|
|
103
|
+
* The possible states of the aria-sort attribute.
|
|
104
|
+
*/
|
|
105
|
+
export type AriaSortState = 'ascending' | 'descending' | 'none';
|
|
106
|
+
/**
|
|
107
|
+
* The values of the filtered column.
|
|
108
|
+
*/
|
|
109
|
+
export type FilteredColumnValues = FilteringCondition & {
|
|
110
|
+
columnId: string;
|
|
111
|
+
rowsCount: number;
|
|
112
|
+
};
|
|
115
113
|
export default Accessibility;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import type Options from './Options';
|
|
1
|
+
import type { Options, LangOptions } from './Options';
|
|
2
2
|
import type { DeepPartial } from '../../Shared/Types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Default language options for the Grid.
|
|
5
5
|
*/
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
export declare const defaultLangOptions: DeepPartial<LangOptions>;
|
|
7
|
+
/**
|
|
8
|
+
* Default options for the Grid.
|
|
9
|
+
*/
|
|
10
|
+
export declare const defaultOptions: DeepPartial<Options>;
|
|
11
|
+
/**
|
|
12
|
+
* Merge the default options with custom options. Commonly used for defining
|
|
13
|
+
* reusable templates.
|
|
14
|
+
*
|
|
15
|
+
* @param options
|
|
16
|
+
* The new custom grid options.
|
|
17
|
+
*/
|
|
18
|
+
export declare function setOptions(options: DeepPartial<Options>): void;
|
|
19
|
+
declare const _default: {
|
|
20
|
+
readonly defaultOptions: DeepPartial<Options>;
|
|
21
|
+
readonly setOptions: typeof setOptions;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -14,135 +14,137 @@
|
|
|
14
14
|
*
|
|
15
15
|
* */
|
|
16
16
|
'use strict';
|
|
17
|
+
import Pagination from './Pagination/Pagination.js';
|
|
17
18
|
import Utils from '../../Core/Utilities.js';
|
|
18
19
|
const { merge } = Utils;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Default language options for the Grid.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
Defaults.defaultOptions = {
|
|
28
|
-
accessibility: {
|
|
29
|
-
enabled: true,
|
|
30
|
-
highContrastMode: 'auto',
|
|
23
|
+
export const defaultLangOptions = {
|
|
24
|
+
accessibility: {
|
|
25
|
+
sorting: {
|
|
26
|
+
sortable: 'Sortable.',
|
|
31
27
|
announcements: {
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
ascending: 'Sorted ascending.',
|
|
29
|
+
descending: 'Sorted descending.',
|
|
30
|
+
none: 'Not sorted.'
|
|
34
31
|
}
|
|
35
32
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
announcements: {
|
|
41
|
-
ascending: 'Sorted ascending.',
|
|
42
|
-
descending: 'Sorted descending.',
|
|
43
|
-
none: 'Not sorted.'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
pagination: {
|
|
47
|
-
announcements: {
|
|
48
|
-
pageSizeChange: 'Page size changed to',
|
|
49
|
-
pageChange: 'Page changed to'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
filtering: {
|
|
53
|
-
announcements: {
|
|
54
|
-
filterApplied: 'Filter applied for {columnId}, ' +
|
|
55
|
-
'{condition} {value}. {rowsCount} results found.',
|
|
56
|
-
emptyFilterApplied: 'Filter applied for {columnId}, ' +
|
|
57
|
-
'{condition} values. {rowsCount} results found.',
|
|
58
|
-
filterCleared: 'Filter cleared for {columnId}. ' +
|
|
59
|
-
'{rowsCount} results found.'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
loading: 'Loading...',
|
|
64
|
-
noData: 'No data to display',
|
|
65
|
-
filter: 'Filter',
|
|
66
|
-
sortAscending: 'Sort ascending',
|
|
67
|
-
sortDescending: 'Sort descending',
|
|
68
|
-
column: 'Column',
|
|
69
|
-
setFilter: 'Set filter',
|
|
70
|
-
pagination: {
|
|
71
|
-
pageInfo: 'Showing {start} - {end} of {total} ' +
|
|
72
|
-
'(page {currentPage} of {totalPages})',
|
|
73
|
-
pageSizeLabel: 'rows per page',
|
|
74
|
-
firstPage: 'First page',
|
|
75
|
-
previousPage: 'Previous page',
|
|
76
|
-
nextPage: 'Next page',
|
|
77
|
-
lastPage: 'Last page',
|
|
78
|
-
pageNumber: 'Page {page}',
|
|
79
|
-
ellipsis: 'More pages'
|
|
80
|
-
},
|
|
81
|
-
columnFilteringConditions: {
|
|
82
|
-
contains: 'Contains',
|
|
83
|
-
doesNotContain: 'Does not contain',
|
|
84
|
-
equals: 'Equals',
|
|
85
|
-
doesNotEqual: 'Does not equal',
|
|
86
|
-
beginsWith: 'Begins with',
|
|
87
|
-
endsWith: 'Ends with',
|
|
88
|
-
empty: 'Empty',
|
|
89
|
-
notEmpty: 'Not empty',
|
|
90
|
-
greaterThan: 'Greater than',
|
|
91
|
-
greaterThanOrEqualTo: 'Greater than or equal to',
|
|
92
|
-
lessThan: 'Less than',
|
|
93
|
-
lessThanOrEqualTo: 'Less than or equal to',
|
|
94
|
-
before: 'Before',
|
|
95
|
-
after: 'After',
|
|
96
|
-
all: 'All',
|
|
97
|
-
'true': 'True',
|
|
98
|
-
'false': 'False'
|
|
33
|
+
pagination: {
|
|
34
|
+
announcements: {
|
|
35
|
+
pageSizeChange: 'Page size changed to',
|
|
36
|
+
pageChange: 'Page changed to'
|
|
99
37
|
}
|
|
100
38
|
},
|
|
101
|
-
|
|
102
|
-
|
|
39
|
+
filtering: {
|
|
40
|
+
announcements: {
|
|
41
|
+
filterApplied: 'Filter applied for {columnId}, ' +
|
|
42
|
+
'{condition} {value}. {rowsCount} results found.',
|
|
43
|
+
emptyFilterApplied: 'Filter applied for {columnId}, ' +
|
|
44
|
+
'{condition} values. {rowsCount} results found.',
|
|
45
|
+
filterCleared: 'Filter cleared for {columnId}. ' +
|
|
46
|
+
'{rowsCount} results found.'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
loading: 'Loading...',
|
|
51
|
+
noData: 'No data to display',
|
|
52
|
+
filter: 'Filter',
|
|
53
|
+
sortAscending: 'Sort ascending',
|
|
54
|
+
sortDescending: 'Sort descending',
|
|
55
|
+
column: 'Column',
|
|
56
|
+
setFilter: 'Set filter',
|
|
57
|
+
pagination: {
|
|
58
|
+
pageInfo: 'Showing {start} - {end} of {total} ' +
|
|
59
|
+
'(page {currentPage} of {totalPages})',
|
|
60
|
+
pageSizeLabel: 'rows per page',
|
|
61
|
+
firstPage: 'First page',
|
|
62
|
+
previousPage: 'Previous page',
|
|
63
|
+
nextPage: 'Next page',
|
|
64
|
+
lastPage: 'Last page',
|
|
65
|
+
pageNumber: 'Page {page}',
|
|
66
|
+
ellipsis: 'More pages'
|
|
67
|
+
},
|
|
68
|
+
columnFilteringConditions: {
|
|
69
|
+
contains: 'Contains',
|
|
70
|
+
doesNotContain: 'Does not contain',
|
|
71
|
+
equals: 'Equals',
|
|
72
|
+
doesNotEqual: 'Does not equal',
|
|
73
|
+
beginsWith: 'Begins with',
|
|
74
|
+
endsWith: 'Ends with',
|
|
75
|
+
empty: 'Empty',
|
|
76
|
+
notEmpty: 'Not empty',
|
|
77
|
+
greaterThan: 'Greater than',
|
|
78
|
+
greaterThanOrEqualTo: 'Greater than or equal to',
|
|
79
|
+
lessThan: 'Less than',
|
|
80
|
+
lessThanOrEqualTo: 'Less than or equal to',
|
|
81
|
+
before: 'Before',
|
|
82
|
+
after: 'After',
|
|
83
|
+
all: 'All',
|
|
84
|
+
'true': 'True',
|
|
85
|
+
'false': 'False'
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Default options for the Grid.
|
|
90
|
+
*/
|
|
91
|
+
export const defaultOptions = {
|
|
92
|
+
accessibility: {
|
|
93
|
+
enabled: true,
|
|
94
|
+
highContrastMode: 'auto',
|
|
95
|
+
announcements: {
|
|
96
|
+
sorting: true,
|
|
97
|
+
filtering: true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
time: {
|
|
101
|
+
timezone: 'UTC'
|
|
102
|
+
},
|
|
103
|
+
rendering: {
|
|
104
|
+
rows: {
|
|
105
|
+
bufferSize: 10,
|
|
106
|
+
minVisibleRows: 2,
|
|
107
|
+
strictHeights: false,
|
|
108
|
+
virtualizationThreshold: 50
|
|
103
109
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
bufferSize: 10,
|
|
107
|
-
minVisibleRows: 2,
|
|
108
|
-
strictHeights: false,
|
|
109
|
-
virtualizationThreshold: 50
|
|
110
|
-
},
|
|
111
|
-
header: {
|
|
112
|
-
enabled: true
|
|
113
|
-
},
|
|
114
|
-
columns: {
|
|
115
|
-
resizing: {
|
|
116
|
-
enabled: true,
|
|
117
|
-
mode: 'adjacent'
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
theme: 'hcg-theme-default'
|
|
110
|
+
header: {
|
|
111
|
+
enabled: true
|
|
121
112
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
filtering: {
|
|
127
|
-
inline: false
|
|
113
|
+
columns: {
|
|
114
|
+
resizing: {
|
|
115
|
+
enabled: true,
|
|
116
|
+
mode: 'adjacent'
|
|
128
117
|
}
|
|
118
|
+
},
|
|
119
|
+
theme: 'hcg-theme-default'
|
|
120
|
+
},
|
|
121
|
+
columnDefaults: {
|
|
122
|
+
sorting: {
|
|
123
|
+
sortable: true
|
|
124
|
+
},
|
|
125
|
+
filtering: {
|
|
126
|
+
inline: false
|
|
129
127
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
128
|
+
},
|
|
129
|
+
pagination: Pagination.defaultOptions,
|
|
130
|
+
lang: defaultLangOptions
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Merge the default options with custom options. Commonly used for defining
|
|
134
|
+
* reusable templates.
|
|
135
|
+
*
|
|
136
|
+
* @param options
|
|
137
|
+
* The new custom grid options.
|
|
138
|
+
*/
|
|
139
|
+
export function setOptions(options) {
|
|
140
|
+
merge(true, defaultOptions, options);
|
|
141
|
+
}
|
|
143
142
|
/* *
|
|
144
143
|
*
|
|
145
144
|
* Default Export
|
|
146
145
|
*
|
|
147
146
|
* */
|
|
148
|
-
export default
|
|
147
|
+
export default {
|
|
148
|
+
defaultOptions,
|
|
149
|
+
setOptions
|
|
150
|
+
};
|
|
@@ -1,13 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export type DeepRequired<T> = {
|
|
2
|
+
[K in keyof T]-?: DeepRequired<T[K]>;
|
|
3
|
+
};
|
|
4
|
+
export type ClassNameKey = keyof typeof rawClassNames;
|
|
5
|
+
export declare const classNamePrefix: string;
|
|
6
|
+
export declare const version = "2.1.0";
|
|
7
|
+
export declare const rawClassNames: {
|
|
8
|
+
readonly container: "container";
|
|
9
|
+
readonly tableElement: "table";
|
|
10
|
+
readonly captionElement: "caption";
|
|
11
|
+
readonly descriptionElement: "description";
|
|
12
|
+
readonly theadElement: "thead";
|
|
13
|
+
readonly tbodyElement: "tbody";
|
|
14
|
+
readonly rowElement: "row";
|
|
15
|
+
readonly rowEven: "row-even";
|
|
16
|
+
readonly rowOdd: "row-odd";
|
|
17
|
+
readonly hoveredRow: "hovered-row";
|
|
18
|
+
readonly columnElement: "column";
|
|
19
|
+
readonly hoveredCell: "hovered-cell";
|
|
20
|
+
readonly hoveredColumn: "hovered-column";
|
|
21
|
+
readonly syncedRow: "synced-row";
|
|
22
|
+
readonly syncedCell: "synced-cell";
|
|
23
|
+
readonly syncedColumn: "synced-column";
|
|
24
|
+
readonly editedCell: "edited-cell";
|
|
25
|
+
readonly mockedRow: "mocked-row";
|
|
26
|
+
readonly rowsContentNowrap: "rows-content-nowrap";
|
|
27
|
+
readonly virtualization: "virtualization";
|
|
28
|
+
readonly scrollableContent: "scrollable-content";
|
|
29
|
+
readonly headerCell: "header-cell";
|
|
30
|
+
readonly headerCellContainer: "header-cell-container";
|
|
31
|
+
readonly headerCellContent: "header-cell-content";
|
|
32
|
+
readonly headerCellFilterIcon: "header-cell-filter-icon";
|
|
33
|
+
readonly headerCellIcons: "header-cell-icons";
|
|
34
|
+
readonly headerCellSortIcon: "header-cell-sort-icon";
|
|
35
|
+
readonly headerCellMenuIcon: "header-cell-menu-icon";
|
|
36
|
+
readonly headerRow: "head-row-content";
|
|
37
|
+
readonly noData: "no-data";
|
|
38
|
+
readonly noPadding: "no-padding";
|
|
39
|
+
readonly columnFirst: "column-first";
|
|
40
|
+
readonly columnSortable: "column-sortable";
|
|
41
|
+
readonly columnSortableIcon: "column-sortable-icon";
|
|
42
|
+
readonly columnSortedAsc: "column-sorted-asc";
|
|
43
|
+
readonly columnSortedDesc: "column-sorted-desc";
|
|
44
|
+
readonly resizableContent: "resizable-content";
|
|
45
|
+
readonly resizerHandles: "column-resizer";
|
|
46
|
+
readonly resizedColumn: "column-resized";
|
|
47
|
+
readonly creditsContainer: "credits-container";
|
|
48
|
+
readonly creditsText: "credits";
|
|
49
|
+
readonly creditsPro: "credits-pro";
|
|
50
|
+
readonly visuallyHidden: "visually-hidden";
|
|
51
|
+
readonly lastHeaderCellInRow: "last-header-cell-in-row";
|
|
52
|
+
readonly loadingWrapper: "loading-wrapper";
|
|
53
|
+
readonly loadingSpinner: "spinner";
|
|
54
|
+
readonly loadingMessage: "loading-message";
|
|
55
|
+
readonly popup: "popup";
|
|
56
|
+
readonly button: "button";
|
|
57
|
+
readonly buttonSelected: "button-selected";
|
|
58
|
+
readonly input: "input";
|
|
59
|
+
readonly icon: "icon";
|
|
60
|
+
readonly iconSearch: "icon-search";
|
|
61
|
+
readonly popupContent: "popup-content";
|
|
62
|
+
readonly columnFilterWrapper: "column-filter-wrapper";
|
|
63
|
+
readonly toolbarButtonActiveIndicator: "active-indicator";
|
|
64
|
+
readonly menuContainer: "menu-container";
|
|
65
|
+
readonly menuItem: "menu-item";
|
|
66
|
+
readonly menuHeader: "menu-header";
|
|
67
|
+
readonly menuHeaderCategory: "menu-header-category";
|
|
68
|
+
readonly menuHeaderName: "menu-header-name";
|
|
69
|
+
readonly menuItemIcon: "menu-item-icon";
|
|
70
|
+
readonly menuItemLabel: "menu-item-label";
|
|
71
|
+
readonly menuDivider: "menu-divider";
|
|
72
|
+
readonly clearFilterButton: "clear-filter-button";
|
|
73
|
+
readonly paginationWrapper: "pagination-wrapper";
|
|
74
|
+
readonly paginationContainer: "pagination-container";
|
|
75
|
+
readonly paginationPageInfo: "pagination-info";
|
|
76
|
+
readonly paginationControlsContainer: "pagination-controls-container";
|
|
77
|
+
readonly paginationNavButtonsContainer: "pagination-nav-buttons-container";
|
|
78
|
+
readonly paginationNavDropdown: "pagination-nav-dropdown";
|
|
79
|
+
readonly paginationPageSize: "pagination-page-size";
|
|
80
|
+
readonly noWidth: "no-width";
|
|
81
|
+
readonly rightAlign: "right";
|
|
82
|
+
readonly centerAlign: "center";
|
|
83
|
+
readonly leftAlign: "left";
|
|
84
|
+
};
|
|
85
|
+
export declare const win: Window & typeof globalThis;
|
|
86
|
+
export declare const composed: Array<string>;
|
|
87
|
+
export declare const userAgent: string;
|
|
88
|
+
export declare const isChrome: boolean;
|
|
89
|
+
export declare const isSafari: boolean;
|
|
90
|
+
export declare const getClassName: (classNameKey: ClassNameKey) => string;
|
|
91
|
+
declare const _default: {
|
|
92
|
+
readonly classNamePrefix: string;
|
|
93
|
+
readonly version: "2.1.0";
|
|
94
|
+
readonly rawClassNames: {
|
|
11
95
|
readonly container: "container";
|
|
12
96
|
readonly tableElement: "table";
|
|
13
97
|
readonly captionElement: "caption";
|
|
@@ -57,6 +141,8 @@ declare namespace Globals {
|
|
|
57
141
|
readonly loadingMessage: "loading-message";
|
|
58
142
|
readonly popup: "popup";
|
|
59
143
|
readonly button: "button";
|
|
144
|
+
readonly buttonSelected: "button-selected";
|
|
145
|
+
readonly input: "input";
|
|
60
146
|
readonly icon: "icon";
|
|
61
147
|
readonly iconSearch: "icon-search";
|
|
62
148
|
readonly popupContent: "popup-content";
|
|
@@ -74,30 +160,20 @@ declare namespace Globals {
|
|
|
74
160
|
readonly paginationWrapper: "pagination-wrapper";
|
|
75
161
|
readonly paginationContainer: "pagination-container";
|
|
76
162
|
readonly paginationPageInfo: "pagination-info";
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly paginationPrevButton: "pagination-prev";
|
|
82
|
-
readonly paginationNextButton: "pagination-next";
|
|
83
|
-
readonly paginationLastButton: "pagination-last";
|
|
84
|
-
readonly paginationPageButton: "pagination-page";
|
|
85
|
-
readonly paginationPageButtonActive: "pagination-page-active";
|
|
86
|
-
readonly paginationEllipsis: "pagination-ellipsis";
|
|
87
|
-
readonly paginationMobileSelector: "pagination-mobile-selector";
|
|
88
|
-
readonly paginationMobilePageSizeSelector: "pagination-mobile-page-size-selector";
|
|
89
|
-
readonly paginationPageSizeContainer: "pagination-page-size-container";
|
|
90
|
-
readonly paginationPageSizeSelect: "pagination-page-size-select";
|
|
163
|
+
readonly paginationControlsContainer: "pagination-controls-container";
|
|
164
|
+
readonly paginationNavButtonsContainer: "pagination-nav-buttons-container";
|
|
165
|
+
readonly paginationNavDropdown: "pagination-nav-dropdown";
|
|
166
|
+
readonly paginationPageSize: "pagination-page-size";
|
|
91
167
|
readonly noWidth: "no-width";
|
|
92
168
|
readonly rightAlign: "right";
|
|
93
169
|
readonly centerAlign: "center";
|
|
94
170
|
readonly leftAlign: "left";
|
|
95
171
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
export default
|
|
172
|
+
readonly win: Window & typeof globalThis;
|
|
173
|
+
readonly composed: string[];
|
|
174
|
+
readonly userAgent: string;
|
|
175
|
+
readonly isChrome: boolean;
|
|
176
|
+
readonly isSafari: boolean;
|
|
177
|
+
readonly getClassName: (classNameKey: ClassNameKey) => string;
|
|
178
|
+
};
|
|
179
|
+
export default _default;
|