slickgrid-react 3.0.0 → 3.0.1
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/CHANGELOG.md +7 -0
- package/dist/cjs/components/slickgridReactProps.d.ts +2 -0
- package/dist/esm/components/slickgridReactProps.d.ts +2 -0
- package/package.json +21 -12
- package/tsconfig.json +1 -1
- package/dist/amd/components/slickgrid-react.d.ts +0 -207
- package/dist/amd/components/slickgrid-react.js +0 -1326
- package/dist/amd/components/slickgrid-react.js.map +0 -1
- package/dist/amd/components/slickgridEventAggregator.d.ts +0 -10
- package/dist/amd/components/slickgridEventAggregator.js +0 -14
- package/dist/amd/components/slickgridEventAggregator.js.map +0 -1
- package/dist/amd/components/slickgridReactProps.d.ts +0 -288
- package/dist/amd/components/slickgridReactProps.js +0 -5
- package/dist/amd/components/slickgridReactProps.js.map +0 -1
- package/dist/amd/constants.d.ts +0 -23
- package/dist/amd/constants.js +0 -93
- package/dist/amd/constants.js.map +0 -1
- package/dist/amd/global-grid-options.d.ts +0 -5
- package/dist/amd/global-grid-options.js +0 -268
- package/dist/amd/global-grid-options.js.map +0 -1
- package/dist/amd/index.d.ts +0 -8
- package/dist/amd/index.js +0 -27
- package/dist/amd/index.js.map +0 -1
- package/dist/amd/models/gridOption.interface.d.ts +0 -6
- package/dist/amd/models/gridOption.interface.js +0 -5
- package/dist/amd/models/gridOption.interface.js.map +0 -1
- package/dist/amd/models/index.d.ts +0 -4
- package/dist/amd/models/index.js +0 -23
- package/dist/amd/models/index.js.map +0 -1
- package/dist/amd/models/reactComponentOutput.interface.d.ts +0 -6
- package/dist/amd/models/reactComponentOutput.interface.js +0 -5
- package/dist/amd/models/reactComponentOutput.interface.js.map +0 -1
- package/dist/amd/models/slickGrid.interface.d.ts +0 -6
- package/dist/amd/models/slickGrid.interface.js +0 -5
- package/dist/amd/models/slickGrid.interface.js.map +0 -1
- package/dist/amd/models/slickgridReactInstance.interface.d.ts +0 -36
- package/dist/amd/models/slickgridReactInstance.interface.js +0 -5
- package/dist/amd/models/slickgridReactInstance.interface.js.map +0 -1
- package/dist/amd/services/container.service.d.ts +0 -6
- package/dist/amd/services/container.service.js +0 -18
- package/dist/amd/services/container.service.js.map +0 -1
- package/dist/amd/services/index.d.ts +0 -4
- package/dist/amd/services/index.js +0 -23
- package/dist/amd/services/index.js.map +0 -1
- package/dist/amd/services/reactUtil.service.d.ts +0 -5
- package/dist/amd/services/reactUtil.service.js +0 -30
- package/dist/amd/services/reactUtil.service.js.map +0 -1
- package/dist/amd/services/singletons.d.ts +0 -6
- package/dist/amd/services/singletons.js +0 -9
- package/dist/amd/services/singletons.js.map +0 -1
- package/dist/amd/services/translater.service.d.ts +0 -25
- package/dist/amd/services/translater.service.js +0 -43
- package/dist/amd/services/translater.service.js.map +0 -1
- package/dist/amd/services/utilities.d.ts +0 -7
- package/dist/amd/services/utilities.js +0 -23
- package/dist/amd/services/utilities.js.map +0 -1
- package/dist/amd/slickgrid-config.d.ts +0 -5
- package/dist/amd/slickgrid-config.js +0 -12
- package/dist/amd/slickgrid-config.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.1](https://github.com/ghiscoding/slickgrid-react/compare/v3.0.0...v3.0.1) (2023-05-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* prefer ESM module over CJS & prefer TS loaders ([#113](https://github.com/ghiscoding/slickgrid-react/issues/113)) ([3c1d510](https://github.com/ghiscoding/slickgrid-react/commit/3c1d510bcff82b331fbe0e4c47a7aa24fc6ff7e3))
|
|
11
|
+
|
|
5
12
|
# [3.0.0](https://github.com/ghiscoding/slickgrid-react/compare/v2.6.4...v3.0.0) (2023-05-29)
|
|
6
13
|
|
|
7
14
|
## [2.6.4](https://github.com/ghiscoding/slickgrid-react/compare/v2.6.3...v2.6.4) (2023-05-20)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BackendUtilityService, CollectionService, Column, ContainerService, ExtensionList, ExtensionService, ExtensionUtility, FilterService, GridOption, GridEventService, GridService, GridStateService, GroupingAndColspanService, Pagination, PaginationService, ResizerService, RxJsFacade, SharedService, SlickControlList, SlickDataView, SlickPluginList, SortService, TranslaterService, TreeDataService, SlickGridEventData, OnActiveCellChangedEventArgs, DragRowMove, OnAddNewRowEventArgs, OnAutosizeColumnsEventArgs, OnBeforeAppendCellEventArgs, OnBeforeCellEditorDestroyEventArgs, OnBeforeColumnsResizeEventArgs, OnBeforeEditCellEventArgs, OnBeforeFooterRowCellDestroyEventArgs, OnBeforeHeaderCellDestroyEventArgs, OnBeforeHeaderRowCellDestroyEventArgs, OnBeforeSetColumnsEventArgs, OnCellChangeEventArgs, OnCellCssStylesChangedEventArgs, OnClickEventArgs, OnColumnsDragEventArgs, OnColumnsReorderedEventArgs, OnColumnsResizeDblClickEventArgs, OnColumnsResizedEventArgs, OnCompositeEditorChangeEventArgs, OnDblClickEventArgs, OnFooterClickEventArgs, OnFooterContextMenuEventArgs, OnFooterRowCellRenderedEventArgs, OnHeaderCellRenderedEventArgs, OnHeaderClickEventArgs, OnHeaderContextMenuEventArgs, OnHeaderMouseEventArgs, OnHeaderRowCellRenderedEventArgs, OnKeyDownEventArgs, OnRenderedEventArgs, OnScrollEventArgs, OnSelectedRowsChangedEventArgs, OnSetOptionsEventArgs, OnValidationErrorEventArgs, SingleColumnSort, OnGroupCollapsedEventArgs, OnGroupExpandedEventArgs, OnRowCountChangedEventArgs, OnRowsChangedEventArgs, OnRowsOrCountChangedEventArgs, OnSetItemsCalledEventArgs, PagingInfo } from '@slickgrid-universal/common';
|
|
2
3
|
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
3
4
|
import { SlickgridReactInstance } from '../models';
|
|
@@ -280,6 +281,7 @@ export interface SlickgridReactProps {
|
|
|
280
281
|
onGridStateChanged?: (e: CustomEvent<any>) => void;
|
|
281
282
|
onPaginationChanged?: (e: CustomEvent<any>) => void;
|
|
282
283
|
onReactGridCreated?: (e: CustomEvent<any>) => void;
|
|
284
|
+
onSelectedRowIdsChanged?: (e: CustomEvent<any>) => void;
|
|
283
285
|
onSortChanged?: (e: CustomEvent<any>) => void;
|
|
284
286
|
onToggleTreeCollapsed?: (e: CustomEvent<any>) => void;
|
|
285
287
|
onTreeItemToggled?: (e: CustomEvent<any>) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BackendUtilityService, CollectionService, Column, ContainerService, ExtensionList, ExtensionService, ExtensionUtility, FilterService, GridOption, GridEventService, GridService, GridStateService, GroupingAndColspanService, Pagination, PaginationService, ResizerService, RxJsFacade, SharedService, SlickControlList, SlickDataView, SlickPluginList, SortService, TranslaterService, TreeDataService, SlickGridEventData, OnActiveCellChangedEventArgs, DragRowMove, OnAddNewRowEventArgs, OnAutosizeColumnsEventArgs, OnBeforeAppendCellEventArgs, OnBeforeCellEditorDestroyEventArgs, OnBeforeColumnsResizeEventArgs, OnBeforeEditCellEventArgs, OnBeforeFooterRowCellDestroyEventArgs, OnBeforeHeaderCellDestroyEventArgs, OnBeforeHeaderRowCellDestroyEventArgs, OnBeforeSetColumnsEventArgs, OnCellChangeEventArgs, OnCellCssStylesChangedEventArgs, OnClickEventArgs, OnColumnsDragEventArgs, OnColumnsReorderedEventArgs, OnColumnsResizeDblClickEventArgs, OnColumnsResizedEventArgs, OnCompositeEditorChangeEventArgs, OnDblClickEventArgs, OnFooterClickEventArgs, OnFooterContextMenuEventArgs, OnFooterRowCellRenderedEventArgs, OnHeaderCellRenderedEventArgs, OnHeaderClickEventArgs, OnHeaderContextMenuEventArgs, OnHeaderMouseEventArgs, OnHeaderRowCellRenderedEventArgs, OnKeyDownEventArgs, OnRenderedEventArgs, OnScrollEventArgs, OnSelectedRowsChangedEventArgs, OnSetOptionsEventArgs, OnValidationErrorEventArgs, SingleColumnSort, OnGroupCollapsedEventArgs, OnGroupExpandedEventArgs, OnRowCountChangedEventArgs, OnRowsChangedEventArgs, OnRowsOrCountChangedEventArgs, OnSetItemsCalledEventArgs, PagingInfo } from '@slickgrid-universal/common';
|
|
2
3
|
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
3
4
|
import { SlickgridReactInstance } from '../models';
|
|
@@ -280,6 +281,7 @@ export interface SlickgridReactProps {
|
|
|
280
281
|
onGridStateChanged?: (e: CustomEvent<any>) => void;
|
|
281
282
|
onPaginationChanged?: (e: CustomEvent<any>) => void;
|
|
282
283
|
onReactGridCreated?: (e: CustomEvent<any>) => void;
|
|
284
|
+
onSelectedRowIdsChanged?: (e: CustomEvent<any>) => void;
|
|
283
285
|
onSortChanged?: (e: CustomEvent<any>) => void;
|
|
284
286
|
onToggleTreeCollapsed?: (e: CustomEvent<any>) => void;
|
|
285
287
|
onTreeItemToggled?: (e: CustomEvent<any>) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slickgrid-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Slickgrid components made available in React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,19 +37,33 @@
|
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
"main": "dist/cjs/index.js",
|
|
40
|
-
"
|
|
40
|
+
"module": "dist/esm/index.js",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": "./dist/esm/index.js",
|
|
44
|
+
"require": "./dist/cjs/index.js",
|
|
45
|
+
"default": "./dist/esm/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./*": "./*"
|
|
48
|
+
},
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"*": {
|
|
51
|
+
"*": [
|
|
52
|
+
"./dist/esm/index.d.ts"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"types": "dist/esm/index.d.ts",
|
|
41
57
|
"scripts": {
|
|
42
58
|
"build:demo": "webpack --env production",
|
|
43
59
|
"delete:dist": "rimraf dist",
|
|
44
60
|
"lint": "eslint src/slickgrid-react --ext .ts",
|
|
45
|
-
"build:amd": "cross-env tsc --project src/slickgrid-react/tsconfig.build.json --outDir dist/amd --module amd",
|
|
46
|
-
"postbuild:amd": "cross-env copyfiles --up 2 src/slickgrid-react/**/*.html dist/amd",
|
|
47
61
|
"build:cjs": "cross-env tsc --project src/slickgrid-react/tsconfig.build.json --outDir dist/cjs --module commonjs",
|
|
48
62
|
"postbuild:cjs": "cross-env copyfiles --up 2 src/slickgrid-react/**/*.html dist/cjs",
|
|
49
63
|
"build:esm": "cross-env tsc --project src/slickgrid-react/tsconfig.build.json --outDir dist/esm --module esnext --target es2018",
|
|
50
64
|
"postbuild:esm": "cross-env copyfiles --up 2 src/slickgrid-react/**/*.html dist/esm",
|
|
51
65
|
"prebuild": "npm-run-all delete:dist lint",
|
|
52
|
-
"build": "npm-run-all build:
|
|
66
|
+
"build": "npm-run-all build:cjs build:esm",
|
|
53
67
|
"postbuild": "npm-run-all copy-i18n:dist copy-asset-lib",
|
|
54
68
|
"copy-asset-lib": "cross-env copyfiles --up 2 src/assets/lib/** dist",
|
|
55
69
|
"copy-i18n:dist": "cross-env copyfiles --up 3 src/assets/i18n/**/*.* dist/i18n",
|
|
@@ -91,9 +105,6 @@
|
|
|
91
105
|
},
|
|
92
106
|
"devDependencies": {
|
|
93
107
|
"@4tw/cypress-drag-drop": "^2.2.3",
|
|
94
|
-
"@babel/preset-env": "^7.22.4",
|
|
95
|
-
"@babel/preset-react": "^7.22.3",
|
|
96
|
-
"@babel/preset-typescript": "^7.21.5",
|
|
97
108
|
"@faker-js/faker": "^8.0.2",
|
|
98
109
|
"@fnando/sparkline": "^0.3.10",
|
|
99
110
|
"@popperjs/core": "^2.11.8",
|
|
@@ -123,7 +134,6 @@
|
|
|
123
134
|
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
124
135
|
"@typescript-eslint/parser": "^5.59.8",
|
|
125
136
|
"@webpack-cli/serve": "^2.0.4",
|
|
126
|
-
"babel-loader": "^9.1.2",
|
|
127
137
|
"bootstrap": "^5.2.3",
|
|
128
138
|
"clean-webpack-plugin": "^4.0.0",
|
|
129
139
|
"concurrently": "^8.0.1",
|
|
@@ -132,6 +142,7 @@
|
|
|
132
142
|
"cross-env": "^7.0.3",
|
|
133
143
|
"css-loader": "^6.8.1",
|
|
134
144
|
"custom-event-polyfill": "^1.0.7",
|
|
145
|
+
"esbuild-loader": "^3.0.1",
|
|
135
146
|
"cypress": "^12.13.0",
|
|
136
147
|
"eslint": "^8.41.0",
|
|
137
148
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -158,10 +169,8 @@
|
|
|
158
169
|
"react": "^18.2.0",
|
|
159
170
|
"react-dom": "^18.2.0",
|
|
160
171
|
"react-i18next": "^12.3.1",
|
|
161
|
-
"react-scripts": "^5.0.1",
|
|
162
172
|
"react-router-dom": "^6.11.2",
|
|
163
173
|
"release-it": "^15.10.3",
|
|
164
|
-
"require-dir": "^1.2.0",
|
|
165
174
|
"rimraf": "^5.0.1",
|
|
166
175
|
"rxjs": "^7.8.1",
|
|
167
176
|
"sass": "^1.62.1",
|
|
@@ -180,6 +189,6 @@
|
|
|
180
189
|
"npm": ">=8.5.0"
|
|
181
190
|
},
|
|
182
191
|
"resolutions": {
|
|
183
|
-
"caniuse-lite": "1.0.
|
|
192
|
+
"caniuse-lite": "1.0.30001490"
|
|
184
193
|
}
|
|
185
194
|
}
|
package/tsconfig.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"moduleResolution": "node",
|
|
13
13
|
"allowJs": true,
|
|
14
14
|
"baseUrl": "src",
|
|
15
|
+
"resolveJsonModule": true,
|
|
15
16
|
"skipLibCheck": true,
|
|
16
17
|
"strict": true,
|
|
17
18
|
"jsx": "react",
|
|
@@ -27,7 +28,6 @@
|
|
|
27
28
|
"exclude": [
|
|
28
29
|
"react_project",
|
|
29
30
|
"dist",
|
|
30
|
-
"jspm_packages",
|
|
31
31
|
"node_modules",
|
|
32
32
|
"**/*.spec.ts"
|
|
33
33
|
],
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'slickgrid/slick.core';
|
|
3
|
-
import 'slickgrid/slick.interactions';
|
|
4
|
-
import 'slickgrid/slick.grid';
|
|
5
|
-
import 'slickgrid/slick.dataview';
|
|
6
|
-
import { BackendServiceApi, Column, EventSubscription, ExtensionList, ExternalResource, Locale, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SlickGroupItemMetadataProvider, SortService, TreeDataService } from '@slickgrid-universal/common';
|
|
7
|
-
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
8
|
-
import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
|
|
9
|
-
import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
|
|
10
|
-
import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
|
|
11
|
-
import { SlickgridReactInstance, GridOption } from '../models/index';
|
|
12
|
-
import { ReactUtilService, TranslaterService } from '../services/index';
|
|
13
|
-
import { Subscription } from 'rxjs';
|
|
14
|
-
import { SlickgridReactProps } from './slickgridReactProps';
|
|
15
|
-
interface State {
|
|
16
|
-
showPagination: boolean;
|
|
17
|
-
_gridOptions: GridOption;
|
|
18
|
-
paginationService: PaginationService;
|
|
19
|
-
}
|
|
20
|
-
export declare class SlickgridReact extends React.Component<SlickgridReactProps, State> {
|
|
21
|
-
readonly props: SlickgridReactProps;
|
|
22
|
-
protected _mounted: boolean;
|
|
23
|
-
protected setStateValue(key: string, value: any, callback?: () => void): void;
|
|
24
|
-
protected _columnDefinitions: Column[];
|
|
25
|
-
protected _currentDatasetLength: number;
|
|
26
|
-
protected _dataset: any[] | null;
|
|
27
|
-
protected _elm?: HTMLDivElement | null;
|
|
28
|
-
protected _eventHandler: SlickEventHandler;
|
|
29
|
-
protected _eventPubSubService: EventPubSubService;
|
|
30
|
-
protected _hideHeaderRowAfterPageLoad: boolean;
|
|
31
|
-
protected _isGridInitialized: boolean;
|
|
32
|
-
protected _isDatasetInitialized: boolean;
|
|
33
|
-
protected _isDatasetHierarchicalInitialized: boolean;
|
|
34
|
-
protected _isPaginationInitialized: boolean;
|
|
35
|
-
protected _isLocalGrid: boolean;
|
|
36
|
-
protected _paginationOptions: Pagination | undefined;
|
|
37
|
-
protected _registeredResources: ExternalResource[];
|
|
38
|
-
protected _gridOptions?: GridOption;
|
|
39
|
-
protected get gridOptions(): GridOption;
|
|
40
|
-
protected set gridOptions(options: GridOption);
|
|
41
|
-
groupItemMetadataProvider?: SlickGroupItemMetadataProvider;
|
|
42
|
-
backendServiceApi: BackendServiceApi | undefined;
|
|
43
|
-
locales: Locale;
|
|
44
|
-
metrics?: Metrics;
|
|
45
|
-
showPagination: boolean;
|
|
46
|
-
serviceList: any[];
|
|
47
|
-
subscriptions: Array<EventSubscription | Subscription>;
|
|
48
|
-
paginationData?: {
|
|
49
|
-
gridOptions: GridOption;
|
|
50
|
-
paginationService: PaginationService;
|
|
51
|
-
};
|
|
52
|
-
slickEmptyWarning: SlickEmptyWarningComponent | undefined;
|
|
53
|
-
slickFooter: SlickFooterComponent | undefined;
|
|
54
|
-
slickPagination: SlickPaginationComponent | undefined;
|
|
55
|
-
backendUtilityService: BackendUtilityService;
|
|
56
|
-
collectionService: CollectionService;
|
|
57
|
-
extensionService: ExtensionService;
|
|
58
|
-
extensionUtility: ExtensionUtility;
|
|
59
|
-
filterFactory: FilterFactory;
|
|
60
|
-
filterService: FilterService;
|
|
61
|
-
gridEventService: GridEventService;
|
|
62
|
-
gridService: GridService;
|
|
63
|
-
gridStateService: GridStateService;
|
|
64
|
-
groupingService: GroupingAndColspanService;
|
|
65
|
-
protected get paginationService(): PaginationService;
|
|
66
|
-
protected set paginationService(value: PaginationService);
|
|
67
|
-
resizerService: ResizerService;
|
|
68
|
-
rxjs?: RxJsFacade;
|
|
69
|
-
sharedService: SharedService;
|
|
70
|
-
sortService: SortService;
|
|
71
|
-
treeDataService: TreeDataService;
|
|
72
|
-
dataView: SlickDataView;
|
|
73
|
-
grid: SlickGrid;
|
|
74
|
-
totalItems: number;
|
|
75
|
-
extensions: ExtensionList<any>;
|
|
76
|
-
instances: SlickgridReactInstance | null;
|
|
77
|
-
static defaultProps: {
|
|
78
|
-
reactUtilService: ReactUtilService;
|
|
79
|
-
containerService: import("../services/container.service").ContainerService;
|
|
80
|
-
translaterService: TranslaterService;
|
|
81
|
-
dataset: never[];
|
|
82
|
-
gridId: string;
|
|
83
|
-
columnDefinitions: never[];
|
|
84
|
-
};
|
|
85
|
-
get dataset(): any[];
|
|
86
|
-
set dataset(newDataset: any[]);
|
|
87
|
-
get datasetHierarchical(): any[] | undefined;
|
|
88
|
-
set datasetHierarchical(newHierarchicalDataset: any[] | undefined);
|
|
89
|
-
constructor(props: SlickgridReactProps);
|
|
90
|
-
get eventHandler(): SlickEventHandler;
|
|
91
|
-
get isDatasetInitialized(): boolean;
|
|
92
|
-
set isDatasetInitialized(isInitialized: boolean);
|
|
93
|
-
set isDatasetHierarchicalInitialized(isInitialized: boolean);
|
|
94
|
-
get registeredResources(): ExternalResource[];
|
|
95
|
-
componentDidMount(): void;
|
|
96
|
-
initialization(eventHandler: SlickEventHandler): void;
|
|
97
|
-
componentWillUnmount(shouldEmptyDomElementContainer?: boolean): void;
|
|
98
|
-
emptyGridContainerElm(): void;
|
|
99
|
-
dispose(shouldEmptyDomElementContainer?: boolean): void;
|
|
100
|
-
componentDidUpdate(prevProps: SlickgridReactProps): void;
|
|
101
|
-
columnDefinitionsChanged(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Commits the current edit to the grid
|
|
104
|
-
*/
|
|
105
|
-
commitEdit(target: Element): void;
|
|
106
|
-
/**
|
|
107
|
-
* Define our internal Post Process callback, it will execute internally after we get back result from the Process backend call
|
|
108
|
-
* For now, this is GraphQL Service ONLY feature and it will basically
|
|
109
|
-
* refresh the Dataset & Pagination without having the user to create his own PostProcess every time
|
|
110
|
-
*/
|
|
111
|
-
createBackendApiInternalPostProcessCallback(gridOptions: GridOption): void;
|
|
112
|
-
bindDifferentHooks(grid: SlickGrid, gridOptions: GridOption, dataView: SlickDataView): void;
|
|
113
|
-
bindBackendCallbackFunctions(gridOptions: GridOption): void;
|
|
114
|
-
bindResizeHook(grid: SlickGrid, options: GridOption): void;
|
|
115
|
-
executeAfterDataviewCreated(_grid: SlickGrid, gridOptions: GridOption): void;
|
|
116
|
-
/**
|
|
117
|
-
* On a Pagination changed, we will trigger a Grid State changed with the new pagination info
|
|
118
|
-
* Also if we use Row Selection or the Checkbox Selector with a Backend Service (Odata, GraphQL), we need to reset any selection
|
|
119
|
-
*/
|
|
120
|
-
paginationChanged(pagination: ServicePagination): void;
|
|
121
|
-
paginationOptionsChanged(newPaginationOptions: Pagination): void;
|
|
122
|
-
/**
|
|
123
|
-
* When dataset changes, we need to refresh the entire grid UI & possibly resize it as well
|
|
124
|
-
* @param dataset
|
|
125
|
-
*/
|
|
126
|
-
refreshGridData(dataset: any[], totalCount?: number): void;
|
|
127
|
-
/**
|
|
128
|
-
* Show the filter row displayed on first row, we can optionally pass false to hide it.
|
|
129
|
-
* @param showing
|
|
130
|
-
*/
|
|
131
|
-
showHeaderRow(showing?: boolean): boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Check if there's any Pagination Presets defined in the Grid Options,
|
|
134
|
-
* if there are then load them in the paginationOptions object
|
|
135
|
-
*/
|
|
136
|
-
setPaginationOptionsWhenPresetDefined(gridOptions: GridOption, paginationOptions: Pagination): Pagination;
|
|
137
|
-
/**
|
|
138
|
-
* Dynamically change or update the column definitions list.
|
|
139
|
-
* We will re-render the grid so that the new header and data shows up correctly.
|
|
140
|
-
* If using i18n, we also need to trigger a re-translate of the column headers
|
|
141
|
-
*/
|
|
142
|
-
updateColumnDefinitionsList(newColumnDefinitions: Column[]): void;
|
|
143
|
-
/**
|
|
144
|
-
* Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
|
|
145
|
-
* We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
|
|
146
|
-
*/
|
|
147
|
-
protected copyColumnWidthsReference(columnDefinitions: Column[]): void;
|
|
148
|
-
protected displayEmptyDataWarning(showWarning?: boolean): void;
|
|
149
|
-
/** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
|
|
150
|
-
protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
|
|
151
|
-
/** Initialize the Pagination Service once */
|
|
152
|
-
protected initializePaginationService(paginationOptions: Pagination): void;
|
|
153
|
-
/**
|
|
154
|
-
* Render (or dispose) the Pagination Component, user can optionally provide False (to not show it) which will in term dispose of the Pagination,
|
|
155
|
-
* also while disposing we can choose to omit the disposable of the Pagination Service (if we are simply toggling the Pagination, we want to keep the Service alive)
|
|
156
|
-
* @param {Boolean} showPagination - show (new render) or not (dispose) the Pagination
|
|
157
|
-
* @param {Boolean} shouldDisposePaginationService - when disposing the Pagination, do we also want to dispose of the Pagination Service? (defaults to True)
|
|
158
|
-
*/
|
|
159
|
-
protected renderPagination(showPagination?: boolean): void;
|
|
160
|
-
/** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
|
|
161
|
-
protected loadEditorCollectionAsync(column: Column): void;
|
|
162
|
-
protected insertDynamicPresetColumns(columnId: string, gridPresetColumns: Column[]): void;
|
|
163
|
-
/** Load any possible Columns Grid Presets */
|
|
164
|
-
protected loadColumnPresetsWhenDatasetInitialized(): void;
|
|
165
|
-
/** Load any possible Filters Grid Presets */
|
|
166
|
-
protected loadFilterPresetsWhenDatasetInitialized(): void;
|
|
167
|
-
/**
|
|
168
|
-
* local grid, check if we need to show the Pagination
|
|
169
|
-
* if so then also check if there's any presets and finally initialize the PaginationService
|
|
170
|
-
* a local grid with Pagination presets will potentially have a different total of items, we'll need to get it from the DataView and update our total
|
|
171
|
-
*/
|
|
172
|
-
protected loadLocalGridPagination(dataset?: any[]): void;
|
|
173
|
-
/** Load any Row Selections into the DataView that were presets by the user */
|
|
174
|
-
protected loadRowSelectionPresetWhenExists(): void;
|
|
175
|
-
protected mergeGridOptions(gridOptions: GridOption): GridOption;
|
|
176
|
-
/** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
|
|
177
|
-
protected preRegisterResources(): void;
|
|
178
|
-
protected registerResources(): void;
|
|
179
|
-
/** Register the RxJS Resource in all necessary services which uses */
|
|
180
|
-
protected registerRxJsResource(resource: RxJsFacade): void;
|
|
181
|
-
/**
|
|
182
|
-
* Takes a flat dataset with parent/child relationship, sort it (via its tree structure) and return the sorted flat array
|
|
183
|
-
* @param {Array<Object>} flatDatasetInput - flat dataset input
|
|
184
|
-
* @param {Boolean} forceGridRefresh - optionally force a full grid refresh
|
|
185
|
-
* @returns {Array<Object>} sort flat parent/child dataset
|
|
186
|
-
*/
|
|
187
|
-
protected sortTreeDataset<T>(flatDatasetInput: T[], forceGridRefresh?: boolean): T[];
|
|
188
|
-
/**
|
|
189
|
-
* For convenience to the user, we provide the property "editor" as an Slickgrid-React editor complex object
|
|
190
|
-
* however "editor" is used internally by SlickGrid for it's own Editor Factory
|
|
191
|
-
* so in our lib we will swap "editor" and copy it into a new property called "internalColumnEditor"
|
|
192
|
-
* then take back "editor.model" and make it the new "editor" so that SlickGrid Editor Factory still works
|
|
193
|
-
*/
|
|
194
|
-
protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): any[];
|
|
195
|
-
/** translate all columns (including hidden columns) */
|
|
196
|
-
protected translateColumnHeaderTitleKeys(): void;
|
|
197
|
-
/** translate all column groups (including hidden columns) */
|
|
198
|
-
protected translateColumnGroupKeys(): void;
|
|
199
|
-
/**
|
|
200
|
-
* Update the "internalColumnEditor.collection" property.
|
|
201
|
-
* Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
|
|
202
|
-
* Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
|
|
203
|
-
*/
|
|
204
|
-
protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
|
|
205
|
-
render(): React.JSX.Element;
|
|
206
|
-
}
|
|
207
|
-
export {};
|