slickgrid-react 5.14.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -42
- package/dist/{types/components → components}/slickgrid-react.d.ts +26 -22
- package/dist/{esm/components → components}/slickgrid-react.js +367 -327
- package/dist/components/slickgrid-react.js.map +1 -0
- package/dist/{types/components → components}/slickgridReactProps.d.ts +19 -19
- package/dist/components/slickgridReactProps.js.map +1 -0
- package/dist/{types/constants.d.ts → constants.d.ts} +0 -1
- package/dist/constants.js +89 -0
- package/dist/constants.js.map +1 -0
- package/dist/contexts/i18nextContext.d.ts +5 -0
- package/dist/contexts/i18nextContext.js +5 -0
- package/dist/contexts/i18nextContext.js.map +1 -0
- package/dist/{types/extensions → extensions}/slickRowDetailView.d.ts +3 -4
- package/dist/{esm/extensions → extensions}/slickRowDetailView.js +40 -44
- package/dist/extensions/slickRowDetailView.js.map +1 -0
- package/dist/{types/global-grid-options.d.ts → global-grid-options.d.ts} +1 -2
- package/dist/{esm/global-grid-options.js → global-grid-options.js} +19 -19
- package/dist/global-grid-options.js.map +1 -0
- package/dist/i18n/en/translation.json +109 -0
- package/dist/i18n/fr/translation.json +110 -0
- package/dist/{types/index.d.ts → index.d.ts} +6 -6
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/{types/models → models}/gridOption.interface.d.ts +3 -4
- package/dist/models/gridOption.interface.js.map +1 -0
- package/dist/models/i18next.interface.d.ts +27 -0
- package/dist/models/i18next.interface.js +2 -0
- package/dist/models/i18next.interface.js.map +1 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js.map +1 -0
- package/dist/{types/models → models}/reactComponentOutput.interface.d.ts +0 -1
- package/dist/models/reactComponentOutput.interface.js.map +1 -0
- package/dist/{types/models → models}/rowDetailView.interface.d.ts +1 -2
- package/dist/models/rowDetailView.interface.js.map +1 -0
- package/dist/{types/models → models}/slickgridReactInstance.interface.d.ts +0 -3
- package/dist/models/slickgridReactInstance.interface.js.map +1 -0
- package/dist/{types/models → models}/viewModelBindableData.interface.d.ts +1 -2
- package/dist/models/viewModelBindableData.interface.js.map +1 -0
- package/dist/{types/models → models}/viewModelBindableInputData.interface.d.ts +1 -2
- package/dist/models/viewModelBindableInputData.interface.js.map +1 -0
- package/dist/{types/services → services}/container.service.d.ts +0 -1
- package/dist/{esm/services → services}/container.service.js +1 -3
- package/dist/services/container.service.js.map +1 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/index.js +4 -0
- package/dist/services/index.js.map +1 -0
- package/dist/{types/services → services}/reactUtils.d.ts +0 -1
- package/dist/{esm/services → services}/reactUtils.js +4 -5
- package/dist/services/reactUtils.js.map +1 -0
- package/dist/{types/services → services}/singletons.d.ts +1 -2
- package/dist/{esm/services → services}/singletons.js +1 -1
- package/dist/services/singletons.js.map +1 -0
- package/dist/{types/services/translater.service.d.ts → services/translaterI18Next.service.d.ts} +5 -3
- package/dist/{esm/services/translater.service.js → services/translaterI18Next.service.js} +9 -8
- package/dist/services/translaterI18Next.service.js.map +1 -0
- package/dist/{types/services → services}/utilities.d.ts +0 -1
- package/dist/{esm/services → services}/utilities.js +1 -1
- package/dist/services/utilities.js.map +1 -0
- package/dist/slickgrid-config.d.ts +5 -0
- package/dist/slickgrid-config.js +8 -0
- package/dist/slickgrid-config.js.map +1 -0
- package/package.json +15 -101
- package/src/assets/locales/en/translation.json +109 -0
- package/src/assets/locales/fr/translation.json +110 -0
- package/src/{slickgrid-react/components → components}/slickgrid-react.tsx +365 -240
- package/src/{slickgrid-react/components → components}/slickgridReactProps.ts +72 -73
- package/src/{slickgrid-react/constants.ts → constants.ts} +11 -5
- package/src/contexts/i18nextContext.ts +7 -0
- package/src/{slickgrid-react/extensions → extensions}/slickRowDetailView.ts +46 -41
- package/src/{slickgrid-react/global-grid-options.ts → global-grid-options.ts} +18 -16
- package/src/index.ts +21 -0
- package/src/{slickgrid-react/models → models}/gridOption.interface.ts +7 -4
- package/src/models/i18next.interface.ts +34 -0
- package/src/models/index.ts +7 -0
- package/src/{slickgrid-react/models → models}/rowDetailView.interface.ts +1 -1
- package/src/{slickgrid-react/models → models}/slickgridReactInstance.interface.ts +1 -4
- package/src/{slickgrid-react/models → models}/viewModelBindableData.interface.ts +1 -1
- package/src/{slickgrid-react/models → models}/viewModelBindableInputData.interface.ts +1 -1
- package/src/services/index.ts +3 -0
- package/src/{slickgrid-react/services → services}/reactUtils.ts +14 -5
- package/src/{slickgrid-react/services → services}/singletons.ts +2 -1
- package/src/{slickgrid-react/services/translater.service.ts → services/translaterI18Next.service.ts} +12 -6
- package/src/slickgrid-config.ts +10 -0
- package/src/vite-env.d.ts +1 -0
- package/dist/cjs/components/slickgrid-react.js +0 -1375
- package/dist/cjs/components/slickgrid-react.js.map +0 -1
- package/dist/cjs/components/slickgridReactProps.js +0 -3
- package/dist/cjs/components/slickgridReactProps.js.map +0 -1
- package/dist/cjs/constants.js +0 -92
- package/dist/cjs/constants.js.map +0 -1
- package/dist/cjs/extensions/slickRowDetailView.js +0 -341
- package/dist/cjs/extensions/slickRowDetailView.js.map +0 -1
- package/dist/cjs/global-grid-options.js +0 -281
- package/dist/cjs/global-grid-options.js.map +0 -1
- package/dist/cjs/index.js +0 -28
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/gridOption.interface.js +0 -3
- package/dist/cjs/models/gridOption.interface.js.map +0 -1
- package/dist/cjs/models/index.js +0 -3
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/reactComponentOutput.interface.js +0 -3
- package/dist/cjs/models/reactComponentOutput.interface.js.map +0 -1
- package/dist/cjs/models/rowDetailView.interface.js +0 -3
- package/dist/cjs/models/rowDetailView.interface.js.map +0 -1
- package/dist/cjs/models/slickgridReactInstance.interface.js +0 -3
- package/dist/cjs/models/slickgridReactInstance.interface.js.map +0 -1
- package/dist/cjs/models/viewModelBindableData.interface.js +0 -3
- package/dist/cjs/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/cjs/models/viewModelBindableInputData.interface.js +0 -3
- package/dist/cjs/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/cjs/services/container.service.js +0 -16
- package/dist/cjs/services/container.service.js.map +0 -1
- package/dist/cjs/services/index.js +0 -20
- package/dist/cjs/services/index.js.map +0 -1
- package/dist/cjs/services/reactUtils.js +0 -26
- package/dist/cjs/services/reactUtils.js.map +0 -1
- package/dist/cjs/services/singletons.js +0 -10
- package/dist/cjs/services/singletons.js.map +0 -1
- package/dist/cjs/services/translater.service.js +0 -41
- package/dist/cjs/services/translater.service.js.map +0 -1
- package/dist/cjs/services/utilities.js +0 -20
- package/dist/cjs/services/utilities.js.map +0 -1
- package/dist/cjs/slickgrid-config.js +0 -11
- package/dist/cjs/slickgrid-config.js.map +0 -1
- package/dist/esm/components/slickgrid-react.js.map +0 -1
- package/dist/esm/components/slickgridReactProps.js.map +0 -1
- package/dist/esm/constants.js +0 -88
- package/dist/esm/constants.js.map +0 -1
- package/dist/esm/extensions/slickRowDetailView.js.map +0 -1
- package/dist/esm/global-grid-options.js.map +0 -1
- package/dist/esm/index.js +0 -8
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/models/gridOption.interface.js.map +0 -1
- package/dist/esm/models/index.js.map +0 -1
- package/dist/esm/models/reactComponentOutput.interface.js.map +0 -1
- package/dist/esm/models/rowDetailView.interface.js.map +0 -1
- package/dist/esm/models/slickgridReactInstance.interface.js.map +0 -1
- package/dist/esm/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/esm/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/esm/services/container.service.js.map +0 -1
- package/dist/esm/services/index.js +0 -4
- package/dist/esm/services/index.js.map +0 -1
- package/dist/esm/services/reactUtils.js.map +0 -1
- package/dist/esm/services/singletons.js.map +0 -1
- package/dist/esm/services/translater.service.js.map +0 -1
- package/dist/esm/services/utilities.js.map +0 -1
- package/dist/esm/slickgrid-config.js +0 -7
- package/dist/esm/slickgrid-config.js.map +0 -1
- package/dist/types/components/slickgrid-react.d.ts.map +0 -1
- package/dist/types/components/slickgridReactProps.d.ts.map +0 -1
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/extensions/slickRowDetailView.d.ts.map +0 -1
- package/dist/types/global-grid-options.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/models/gridOption.interface.d.ts.map +0 -1
- package/dist/types/models/index.d.ts +0 -7
- package/dist/types/models/index.d.ts.map +0 -1
- package/dist/types/models/reactComponentOutput.interface.d.ts.map +0 -1
- package/dist/types/models/rowDetailView.interface.d.ts.map +0 -1
- package/dist/types/models/slickgridReactInstance.interface.d.ts.map +0 -1
- package/dist/types/models/viewModelBindableData.interface.d.ts.map +0 -1
- package/dist/types/models/viewModelBindableInputData.interface.d.ts.map +0 -1
- package/dist/types/services/container.service.d.ts.map +0 -1
- package/dist/types/services/index.d.ts +0 -4
- package/dist/types/services/index.d.ts.map +0 -1
- package/dist/types/services/reactUtils.d.ts.map +0 -1
- package/dist/types/services/singletons.d.ts.map +0 -1
- package/dist/types/services/translater.service.d.ts.map +0 -1
- package/dist/types/services/utilities.d.ts.map +0 -1
- package/dist/types/slickgrid-config.d.ts +0 -6
- package/dist/types/slickgrid-config.d.ts.map +0 -1
- package/src/slickgrid-react/index.ts +0 -29
- package/src/slickgrid-react/models/index.ts +0 -6
- package/src/slickgrid-react/services/index.ts +0 -3
- package/src/slickgrid-react/slickgrid-config.ts +0 -10
- /package/dist/{esm/components → components}/slickgridReactProps.js +0 -0
- /package/dist/{esm/models → models}/gridOption.interface.js +0 -0
- /package/dist/{esm/models → models}/index.js +0 -0
- /package/dist/{esm/models → models}/reactComponentOutput.interface.js +0 -0
- /package/dist/{esm/models → models}/rowDetailView.interface.js +0 -0
- /package/dist/{esm/models → models}/slickgridReactInstance.interface.js +0 -0
- /package/dist/{esm/models → models}/viewModelBindableData.interface.js +0 -0
- /package/dist/{esm/models → models}/viewModelBindableInputData.interface.js +0 -0
- /package/src/{slickgrid-react/models → models}/reactComponentOutput.interface.ts +0 -0
- /package/src/{slickgrid-react/services → services}/container.service.ts +0 -0
- /package/src/{slickgrid-react/services → services}/utilities.ts +0 -0
package/README.md
CHANGED
|
@@ -2,33 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
4
|
[](http://www.typescriptlang.org/)
|
|
5
|
-
[](https://www.cypress.io/)
|
|
6
5
|
[](https://npmjs.org/package/slickgrid-react)
|
|
7
6
|
[](https://www.npmjs.com/package/slickgrid-react)
|
|
8
7
|
[](https://bundlephobia.com/result?p=slickgrid-react)
|
|
9
|
-
[
|
|
12
|
-
> [!NOTE]
|
|
13
|
-
> Please note that Angular-Slickgrid (and all other supported frameworks) will soon be moved under the [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal) project.
|
|
14
|
-
> This will happen in the next major version, which is expected by end of April 2025. The installation will remain the same `npm install angular-slickgrid`, it's just the project that will be moved into a central location (much easier to maintain).
|
|
8
|
+
[](https://github.com/ghiscoding/slickgrid-universal/actions/workflows/test-react.yml)
|
|
15
9
|
|
|
16
10
|
### Brief introduction
|
|
17
|
-
|
|
11
|
+
SlickGrid-React is a custom component created specifically for [React](https://react.dev/) framework, it is a wrapper on top of Slickgrid-Universal library which contains the core functionalities. Slickgrid-Universal is written with TypeScript in browser native code, it is framework agnostic and is a monorepo that includes all Editors, Filters, Extensions and Services related to SlickGrid usage with also a few optional packages (like GraphQL, OData, Export to Excel, ...).
|
|
18
12
|
|
|
19
13
|
## Documentation
|
|
20
14
|
📘 [Documentation](https://ghiscoding.gitbook.io/slickgrid-react/getting-started/quick-start) website powered by GitBook for version 4+ (_... or use the [Wikis](https://github.com/ghiscoding/Slickgrid-React/wiki) for older versions_).
|
|
21
15
|
|
|
22
16
|
## Installation
|
|
17
|
+
|
|
23
18
|
Available in Stackblitz (Codeflow) below, this can also be used to provide an issue repro.
|
|
24
19
|
|
|
25
|
-
[](https://stackblitz.com/github/ghiscoding/slickgrid-react-demos)
|
|
26
21
|
|
|
27
22
|
Refer to the **[Docs - Quick Start](https://ghiscoding.gitbook.io/slickgrid-react/getting-started/quick-start)** and/or clone the [Slickgrid-React-Demos](https://github.com/ghiscoding/slickgrid-react-demos) repository. Please consult all documentation before opening new issues, also consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid) unless you think there's a bug with the library.
|
|
28
23
|
|
|
29
24
|
### NPM Package
|
|
30
25
|
[slickgrid-react on NPM](https://www.npmjs.com/package/slickgrid-react)
|
|
31
26
|
|
|
27
|
+
## License
|
|
28
|
+
[MIT License](../../LICENSE)
|
|
29
|
+
|
|
32
30
|
#### Install it
|
|
33
31
|
|
|
34
32
|
```sh
|
|
@@ -66,8 +64,8 @@ export default function Example() {
|
|
|
66
64
|
|
|
67
65
|
return !options ? null : (
|
|
68
66
|
<SlickgridReact gridId="grid1"
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
columns={columns}
|
|
68
|
+
options={options}
|
|
71
69
|
dataset={dataset}
|
|
72
70
|
/>
|
|
73
71
|
);
|
|
@@ -76,7 +74,7 @@ export default function Example() {
|
|
|
76
74
|
|
|
77
75
|
### Troubleshooting
|
|
78
76
|
|
|
79
|
-
This project **does not** work well with `React.StrictMode`, so please make sure to disable it to avoid getting mad at the library :P
|
|
77
|
+
This project **does not** work well with `React.StrictMode`, so please make sure to disable it to avoid getting mad at the library :P
|
|
80
78
|
|
|
81
79
|
### Versions Compatibility
|
|
82
80
|
|
|
@@ -84,7 +82,8 @@ This project **does not** work well with `React.StrictMode`, so please make sure
|
|
|
84
82
|
|
|
85
83
|
| Slickgrid-React | React version | Migration Guide | Notes |
|
|
86
84
|
|-------------------|-----------------|-----------------|------|
|
|
87
|
-
|
|
|
85
|
+
| 9.x | React 18+ | [Migration 9.x](https://ghiscoding.gitbook.io/slickgrid-react/migrations/migration-to-9.x) | ESM-Only, requires Slickgrid-Universal [9.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v9.0.0) |
|
|
86
|
+
| 5.x | React 18+ | [Migration 5.x](https://ghiscoding.gitbook.io/slickgrid-react/migrations/migration-to-5.x) | Modern UI / Dark Mode, requires Slickgrid-Universal [5.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v5.0.0) |
|
|
88
87
|
| 4.x | | [Migration 4.x](https://ghiscoding.gitbook.io/slickgrid-react/migrations/migration-to-4.x) | merge SlickGrid into Slickgrid-Universal, requires Slickgrid-Universal [4.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v4.0.2) |
|
|
89
88
|
| 3.x | | [Migration 3.x](https://github.com/ghiscoding/slickgrid-react/wiki/Migration-to-3.x) | removal of jQuery (now uses browser native code), requires Slickgrid-Universal [3.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v3.0.0) |
|
|
90
89
|
| 2.x | React 18+ | [Migration 2.x](https://github.com/ghiscoding/slickgrid-react/wiki/Migration-to-2.x) | removal of jQueryUI, requires Slickgrid-Universal [2.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v2.0.0) version |
|
|
@@ -106,9 +105,6 @@ Also note that all of these themes also have **Dark Theme** equivalent and even
|
|
|
106
105
|
#### Working Demos
|
|
107
106
|
For a complete set of working demos (40+ examples), we strongly suggest you to clone the [Slickgrid-React Demos](https://github.com/ghiscoding/slickgrid-react-demos) repository (instructions are provided inside it). The repo provides multiple examples and are updated every time a new release is out, so it is updated frequently and is used as the GitHub live demo page.
|
|
108
107
|
|
|
109
|
-
## License
|
|
110
|
-
[MIT License](LICENSE)
|
|
111
|
-
|
|
112
108
|
## Latest News & Releases
|
|
113
109
|
Check out the [Releases](https://github.com/ghiscoding/slickgrid-react/releases) section for all latest News & Releases.
|
|
114
110
|
|
|
@@ -119,29 +115,3 @@ Slickgrid-Universal has **100%** Unit Test Coverage and all Slickgrid-React Exam
|
|
|
119
115
|
You like **Slickgrid-React**? Be sure to upvote ⭐, and perhaps support me with caffeine [☕](https://ko-fi.com/ghiscoding) or GitHub sponsoring and feel free to contribute. 👷👷♀️
|
|
120
116
|
|
|
121
117
|
<a href='https://ko-fi.com/ghiscoding' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
|
122
|
-
|
|
123
|
-
## Sponsors
|
|
124
|
-
|
|
125
|
-
Thanks to all my sponsors!
|
|
126
|
-
|
|
127
|
-
<div>
|
|
128
|
-
<span>
|
|
129
|
-
<a href="https://github.com/wundergraph" class="Link" title="Wundergraph" target="_blank"><img src="https://avatars.githubusercontent.com/u/64281914" width="50" height="50" valign="middle" /></a>
|
|
130
|
-
</span>
|
|
131
|
-
|
|
132
|
-
<span>
|
|
133
|
-
<a href="https://github.com/johnsoncodehk" class="Link" title="johnsoncodehk (Volar)" target="_blank"><img src="https://avatars.githubusercontent.com/u/16279759" width="50" height="50" valign="middle" /></a>
|
|
134
|
-
</span>
|
|
135
|
-
|
|
136
|
-
<span>
|
|
137
|
-
<a href="https://github.com/kevinburkett" class="Link" title="kevinburkett" target="_blank"><img class="circle avatar-user" src="https://avatars.githubusercontent.com/u/48218815?s=52&v=4" width="45" height="45" valign="middle" /></a>
|
|
138
|
-
</span>
|
|
139
|
-
|
|
140
|
-
<span>
|
|
141
|
-
<a href="https://github.com/anton-gustafsson" class="Link" title="anton-gustafsson" target="_blank"><img src="https://avatars.githubusercontent.com/u/22906905?s=52&v=4" width="50" height="50" valign="middle" /></a>
|
|
142
|
-
</span>
|
|
143
|
-
|
|
144
|
-
<span>
|
|
145
|
-
<a href="https://github.com/gibson552" class="Link" title="gibson552" target="_blank"><img src="https://avatars.githubusercontent.com/u/84058359?s=52&v=4" width="50" height="50" valign="middle" /></a>
|
|
146
|
-
</span>
|
|
147
|
-
</div>
|
|
@@ -4,28 +4,33 @@ import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-compone
|
|
|
4
4
|
import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { Subscription } from 'rxjs';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
7
|
+
import { I18nextContext } from '../contexts/i18nextContext.js';
|
|
8
|
+
import type { GridOption, I18Next, SlickgridReactInstance } from '../models/index.js';
|
|
9
|
+
import { TranslaterI18NextService } from '../services/translaterI18Next.service.js';
|
|
10
|
+
import type { SlickgridReactProps } from './slickgridReactProps.js';
|
|
10
11
|
interface State {
|
|
11
|
-
|
|
12
|
-
_gridOptions: GridOption;
|
|
12
|
+
_options: GridOption;
|
|
13
13
|
paginationService: PaginationService;
|
|
14
|
+
showPagination: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class SlickgridReact<TData = any> extends React.Component<SlickgridReactProps, State> {
|
|
16
17
|
readonly props: SlickgridReactProps;
|
|
18
|
+
static contextType: React.Context<I18Next | null>;
|
|
19
|
+
context: React.ContextType<typeof I18nextContext>;
|
|
17
20
|
protected _mounted: boolean;
|
|
18
21
|
protected setStateValue(key: string, value: any, callback?: () => void): void;
|
|
19
|
-
protected
|
|
22
|
+
protected _columns: Column<TData>[];
|
|
20
23
|
protected _currentDatasetLength: number;
|
|
21
24
|
protected _dataset: any[] | null;
|
|
25
|
+
protected _options: GridOption;
|
|
22
26
|
protected _elm?: HTMLDivElement | null;
|
|
23
|
-
protected _collectionObservers: Array<null |
|
|
27
|
+
protected _collectionObservers: Array<null | {
|
|
24
28
|
disconnect: () => void;
|
|
25
|
-
}
|
|
29
|
+
}>;
|
|
26
30
|
protected _eventHandler: SlickEventHandler;
|
|
27
31
|
protected _eventPubSubService: EventPubSubService;
|
|
28
32
|
protected _hideHeaderRowAfterPageLoad: boolean;
|
|
33
|
+
protected _i18next: I18Next | null;
|
|
29
34
|
protected _isAutosizeColsCalled: boolean;
|
|
30
35
|
protected _isGridInitialized: boolean;
|
|
31
36
|
protected _isDatasetInitialized: boolean;
|
|
@@ -35,9 +40,8 @@ export declare class SlickgridReact<TData = any> extends React.Component<Slickgr
|
|
|
35
40
|
protected _paginationOptions: Pagination | undefined;
|
|
36
41
|
protected _registeredResources: ExternalResource[];
|
|
37
42
|
protected _scrollEndCalled: boolean;
|
|
38
|
-
protected
|
|
39
|
-
protected
|
|
40
|
-
protected set gridOptions(options: GridOption);
|
|
43
|
+
protected get options(): GridOption;
|
|
44
|
+
protected set options(options: GridOption);
|
|
41
45
|
groupItemMetadataProvider?: SlickGroupItemMetadataProvider;
|
|
42
46
|
backendServiceApi: BackendServiceApi | undefined;
|
|
43
47
|
metrics?: Metrics;
|
|
@@ -69,11 +73,12 @@ export declare class SlickgridReact<TData = any> extends React.Component<Slickgr
|
|
|
69
73
|
extensions: ExtensionList<any>;
|
|
70
74
|
instances: SlickgridReactInstance | null;
|
|
71
75
|
static defaultProps: {
|
|
72
|
-
containerService: import("../services").ContainerService;
|
|
73
|
-
translaterService:
|
|
74
|
-
dataset: never[];
|
|
76
|
+
containerService: import("../services/container.service.js").ContainerService;
|
|
77
|
+
translaterService: TranslaterI18NextService;
|
|
75
78
|
gridId: string;
|
|
76
|
-
|
|
79
|
+
dataset: never[];
|
|
80
|
+
columns: never[];
|
|
81
|
+
options: {};
|
|
77
82
|
};
|
|
78
83
|
get dataset(): any[];
|
|
79
84
|
set dataset(newDataset: any[]);
|
|
@@ -95,7 +100,7 @@ export declare class SlickgridReact<TData = any> extends React.Component<Slickgr
|
|
|
95
100
|
dispose(shouldEmptyDomElementContainer?: boolean): void;
|
|
96
101
|
disposeExternalResources(): void;
|
|
97
102
|
componentDidUpdate(prevProps: SlickgridReactProps): void;
|
|
98
|
-
|
|
103
|
+
columnsChanged(columns?: Column[]): void;
|
|
99
104
|
/**
|
|
100
105
|
* Define our internal Post Process callback, it will execute internally after we get back result from the Process backend call
|
|
101
106
|
* Currently ONLY available with the GraphQL Backend Service.
|
|
@@ -134,17 +139,17 @@ export declare class SlickgridReact<TData = any> extends React.Component<Slickgr
|
|
|
134
139
|
* We will re-render the grid so that the new header and data shows up correctly.
|
|
135
140
|
* If using i18n, we also need to trigger a re-translate of the column headers
|
|
136
141
|
*/
|
|
137
|
-
|
|
142
|
+
updateColumnsList(newColumns: Column<TData>[]): void;
|
|
138
143
|
/**
|
|
139
144
|
* assignment changes are not triggering on the column definitions, for that
|
|
140
145
|
* we can use our internal array observer for any changes done via (push, pop, shift, ...)
|
|
141
146
|
*/
|
|
142
|
-
protected
|
|
147
|
+
protected observeColumns(): void;
|
|
143
148
|
/**
|
|
144
149
|
* Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
|
|
145
150
|
* We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
|
|
146
151
|
*/
|
|
147
|
-
protected copyColumnWidthsReference(
|
|
152
|
+
protected copyColumnWidthsReference(columns: Column<TData>[]): void;
|
|
148
153
|
protected displayEmptyDataWarning(showWarning?: boolean): void;
|
|
149
154
|
/** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
|
|
150
155
|
protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
|
|
@@ -191,14 +196,13 @@ export declare class SlickgridReact<TData = any> extends React.Component<Slickgr
|
|
|
191
196
|
*/
|
|
192
197
|
protected sortTreeDataset<U>(flatDatasetInput: U[], forceGridRefresh?: boolean): U[];
|
|
193
198
|
/** Prepare and load all SlickGrid editors, if an async editor is found then we'll also execute it. */
|
|
194
|
-
protected loadSlickGridEditors(
|
|
199
|
+
protected loadSlickGridEditors(columns: Column<TData>[]): Column<TData>[];
|
|
195
200
|
protected suggestDateParsingWhenHelpful(): void;
|
|
196
201
|
/**
|
|
197
202
|
* When the Editor(s) has a "editor.collection" property, we'll load the async collection.
|
|
198
203
|
* Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
|
|
199
204
|
*/
|
|
200
205
|
protected updateEditorCollection<U extends TData = any>(column: Column<U>, newCollection: U[]): void;
|
|
201
|
-
render():
|
|
206
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
202
207
|
}
|
|
203
208
|
export {};
|
|
204
|
-
//# sourceMappingURL=slickgrid-react.d.ts.map
|