slickgrid-react 1.0.0-beta.1 → 2.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/.eslintrc +2 -2
- package/.hintrc +11 -0
- package/.release-it.json +25 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +1 -1
- package/README.md +65 -38
- package/dist/amd/{custom-elements → components}/slickgrid-react.d.ts +68 -98
- package/dist/amd/{custom-elements → components}/slickgrid-react.js +380 -314
- package/dist/amd/components/slickgrid-react.js.map +1 -0
- package/dist/amd/{custom-elements → components}/slickgridEventAggregator.d.ts +0 -0
- package/dist/amd/{custom-elements → components}/slickgridEventAggregator.js +0 -0
- package/dist/amd/components/slickgridEventAggregator.js.map +1 -0
- package/dist/amd/components/slickgridReactProps.d.ts +288 -0
- package/dist/amd/{models/rowDetailView.interface.js → components/slickgridReactProps.js} +1 -1
- package/dist/amd/components/slickgridReactProps.js.map +1 -0
- package/dist/amd/constants.js +1 -0
- package/dist/amd/constants.js.map +1 -1
- package/dist/amd/global-grid-options.js +1 -11
- package/dist/amd/global-grid-options.js.map +1 -1
- package/dist/amd/index.d.ts +4 -7
- package/dist/amd/index.js +8 -4
- package/dist/amd/index.js.map +1 -1
- package/dist/amd/models/gridOption.interface.d.ts +0 -3
- package/dist/amd/models/index.d.ts +0 -3
- package/dist/amd/models/index.js +6 -5
- package/dist/amd/models/index.js.map +1 -1
- package/dist/amd/models/reactGridInstance.interface.d.ts +3 -3
- package/dist/amd/services/index.js +5 -1
- package/dist/amd/services/index.js.map +1 -1
- package/dist/amd/services/reactUtil.service.js +1 -1
- package/dist/amd/services/reactUtil.service.js.map +1 -1
- package/dist/amd/services/translater.service.d.ts +0 -1
- package/dist/amd/services/translater.service.js +2 -11
- package/dist/amd/services/translater.service.js.map +1 -1
- package/dist/amd/services/utilities.js +1 -2
- package/dist/amd/services/utilities.js.map +1 -1
- package/dist/{esm/custom-elements → cjs/components}/slickgrid-react.d.ts +68 -98
- package/dist/{commonjs/custom-elements → cjs/components}/slickgrid-react.js +383 -321
- package/dist/cjs/components/slickgrid-react.js.map +1 -0
- package/dist/{commonjs/custom-elements → cjs/components}/slickgridEventAggregator.d.ts +0 -0
- package/dist/{commonjs/custom-elements → cjs/components}/slickgridEventAggregator.js +0 -0
- package/dist/cjs/components/slickgridEventAggregator.js.map +1 -0
- package/dist/cjs/components/slickgridReactProps.d.ts +288 -0
- package/dist/{commonjs/models/rowDetailView.interface.js → cjs/components/slickgridReactProps.js} +1 -1
- package/dist/cjs/components/slickgridReactProps.js.map +1 -0
- package/dist/{commonjs → cjs}/constants.d.ts +0 -0
- package/dist/{commonjs → cjs}/constants.js +1 -0
- package/dist/{commonjs → cjs}/constants.js.map +1 -1
- package/dist/{commonjs → cjs}/global-grid-options.d.ts +0 -0
- package/dist/{commonjs → cjs}/global-grid-options.js +1 -11
- package/dist/{commonjs → cjs}/global-grid-options.js.map +1 -1
- package/dist/cjs/index.d.ts +8 -0
- package/dist/{commonjs → cjs}/index.js +9 -8
- package/dist/cjs/index.js.map +1 -0
- package/dist/{native-modules → cjs}/models/gridOption.interface.d.ts +0 -3
- package/dist/{commonjs → cjs}/models/gridOption.interface.js +0 -0
- package/dist/{commonjs → cjs}/models/gridOption.interface.js.map +0 -0
- package/dist/{native-modules → cjs}/models/index.d.ts +0 -3
- package/dist/{commonjs → cjs}/models/index.js +5 -4
- package/dist/{commonjs → cjs}/models/index.js.map +1 -1
- package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.d.ts +0 -0
- package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.js +0 -0
- package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.js.map +0 -0
- package/dist/{native-modules → cjs}/models/reactGridInstance.interface.d.ts +3 -3
- package/dist/{commonjs → cjs}/models/reactGridInstance.interface.js +0 -0
- package/dist/{commonjs → cjs}/models/reactGridInstance.interface.js.map +0 -0
- package/dist/{commonjs → cjs}/models/slickGrid.interface.d.ts +0 -0
- package/dist/{commonjs → cjs}/models/slickGrid.interface.js +0 -0
- package/dist/{commonjs → cjs}/models/slickGrid.interface.js.map +0 -0
- package/dist/{commonjs → cjs}/services/container.service.d.ts +0 -0
- package/dist/{commonjs → cjs}/services/container.service.js +0 -0
- package/dist/{commonjs → cjs}/services/container.service.js.map +0 -0
- package/dist/{commonjs → cjs}/services/index.d.ts +0 -0
- package/dist/{commonjs → cjs}/services/index.js +5 -1
- package/dist/{commonjs → cjs}/services/index.js.map +1 -1
- package/dist/{commonjs → cjs}/services/reactUtil.service.d.ts +0 -0
- package/dist/{commonjs → cjs}/services/reactUtil.service.js +1 -1
- package/dist/cjs/services/reactUtil.service.js.map +1 -0
- package/dist/{commonjs → cjs}/services/singletons.d.ts +0 -0
- package/dist/{commonjs → cjs}/services/singletons.js +0 -0
- package/dist/{commonjs → cjs}/services/singletons.js.map +0 -0
- package/dist/{native-modules → cjs}/services/translater.service.d.ts +0 -1
- package/dist/{commonjs → cjs}/services/translater.service.js +1 -11
- package/dist/cjs/services/translater.service.js.map +1 -0
- package/dist/{commonjs → cjs}/services/utilities.d.ts +0 -0
- package/dist/{commonjs → cjs}/services/utilities.js +1 -2
- package/dist/cjs/services/utilities.js.map +1 -0
- package/dist/{commonjs → cjs}/slickgrid-config.d.ts +0 -0
- package/dist/{commonjs → cjs}/slickgrid-config.js +0 -0
- package/dist/{commonjs → cjs}/slickgrid-config.js.map +0 -0
- package/dist/{commonjs/custom-elements → esm/components}/slickgrid-react.d.ts +68 -98
- package/dist/esm/{custom-elements → components}/slickgrid-react.js +360 -323
- package/dist/esm/components/slickgrid-react.js.map +1 -0
- package/dist/esm/{custom-elements → components}/slickgridEventAggregator.d.ts +0 -0
- package/dist/esm/{custom-elements → components}/slickgridEventAggregator.js +0 -0
- package/dist/esm/components/slickgridEventAggregator.js.map +1 -0
- package/dist/esm/components/slickgridReactProps.d.ts +288 -0
- package/dist/esm/components/slickgridReactProps.js +2 -0
- package/dist/esm/components/slickgridReactProps.js.map +1 -0
- package/dist/esm/constants.js +1 -0
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/global-grid-options.js +1 -11
- package/dist/esm/global-grid-options.js.map +1 -1
- package/dist/esm/index.d.ts +4 -7
- package/dist/esm/index.js +3 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/gridOption.interface.d.ts +0 -3
- package/dist/esm/models/index.d.ts +0 -3
- package/dist/esm/models/index.js +0 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/reactGridInstance.interface.d.ts +3 -3
- package/dist/esm/services/reactUtil.service.js +1 -1
- package/dist/esm/services/reactUtil.service.js.map +1 -1
- package/dist/esm/services/translater.service.d.ts +0 -1
- package/dist/esm/services/translater.service.js +1 -11
- package/dist/esm/services/translater.service.js.map +1 -1
- package/dist/esm/services/utilities.js +1 -2
- package/dist/esm/services/utilities.js.map +1 -1
- package/package.json +103 -126
- package/dist/amd/custom-elements/slickgrid-react.js.map +0 -1
- package/dist/amd/custom-elements/slickgridEventAggregator.js.map +0 -1
- package/dist/amd/extensions/index.d.ts +0 -1
- package/dist/amd/extensions/index.js +0 -16
- package/dist/amd/extensions/index.js.map +0 -1
- package/dist/amd/extensions/rowDetailViewExtension.d.ts +0 -70
- package/dist/amd/extensions/rowDetailViewExtension.js +0 -362
- package/dist/amd/extensions/rowDetailViewExtension.js.map +0 -1
- package/dist/amd/models/rowDetailView.interface.d.ts +0 -24
- package/dist/amd/models/rowDetailView.interface.js.map +0 -1
- package/dist/amd/models/viewModelBindableData.interface.d.ts +0 -10
- package/dist/amd/models/viewModelBindableData.interface.js +0 -5
- package/dist/amd/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/amd/models/viewModelBindableInputData.interface.d.ts +0 -9
- package/dist/amd/models/viewModelBindableInputData.interface.js +0 -5
- package/dist/amd/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/amd/value-converters/asgDateFormat.d.ts +0 -3
- package/dist/amd/value-converters/asgDateFormat.js +0 -16
- package/dist/amd/value-converters/asgDateFormat.js.map +0 -1
- package/dist/amd/value-converters/asgNumber.d.ts +0 -3
- package/dist/amd/value-converters/asgNumber.js +0 -13
- package/dist/amd/value-converters/asgNumber.js.map +0 -1
- package/dist/commonjs/custom-elements/slickgrid-react.js.map +0 -1
- package/dist/commonjs/custom-elements/slickgridEventAggregator.js.map +0 -1
- package/dist/commonjs/extensions/index.d.ts +0 -1
- package/dist/commonjs/extensions/index.js +0 -14
- package/dist/commonjs/extensions/index.js.map +0 -1
- package/dist/commonjs/extensions/rowDetailViewExtension.d.ts +0 -70
- package/dist/commonjs/extensions/rowDetailViewExtension.js +0 -363
- package/dist/commonjs/extensions/rowDetailViewExtension.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -11
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/models/gridOption.interface.d.ts +0 -9
- package/dist/commonjs/models/index.d.ts +0 -7
- package/dist/commonjs/models/reactGridInstance.interface.d.ts +0 -36
- package/dist/commonjs/models/rowDetailView.interface.d.ts +0 -24
- package/dist/commonjs/models/rowDetailView.interface.js.map +0 -1
- package/dist/commonjs/models/viewModelBindableData.interface.d.ts +0 -10
- package/dist/commonjs/models/viewModelBindableData.interface.js +0 -3
- package/dist/commonjs/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/commonjs/models/viewModelBindableInputData.interface.d.ts +0 -9
- package/dist/commonjs/models/viewModelBindableInputData.interface.js +0 -3
- package/dist/commonjs/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/commonjs/services/reactUtil.service.js.map +0 -1
- package/dist/commonjs/services/translater.service.d.ts +0 -26
- package/dist/commonjs/services/translater.service.js.map +0 -1
- package/dist/commonjs/services/utilities.js.map +0 -1
- package/dist/commonjs/value-converters/asgDateFormat.d.ts +0 -3
- package/dist/commonjs/value-converters/asgDateFormat.js +0 -14
- package/dist/commonjs/value-converters/asgDateFormat.js.map +0 -1
- package/dist/commonjs/value-converters/asgNumber.d.ts +0 -3
- package/dist/commonjs/value-converters/asgNumber.js +0 -11
- package/dist/commonjs/value-converters/asgNumber.js.map +0 -1
- package/dist/esm/custom-elements/slickgrid-react.js.map +0 -1
- package/dist/esm/custom-elements/slickgridEventAggregator.js.map +0 -1
- package/dist/esm/extensions/index.d.ts +0 -1
- package/dist/esm/extensions/index.js +0 -2
- package/dist/esm/extensions/index.js.map +0 -1
- package/dist/esm/extensions/rowDetailViewExtension.d.ts +0 -70
- package/dist/esm/extensions/rowDetailViewExtension.js +0 -337
- package/dist/esm/extensions/rowDetailViewExtension.js.map +0 -1
- package/dist/esm/models/rowDetailView.interface.d.ts +0 -24
- package/dist/esm/models/rowDetailView.interface.js +0 -2
- package/dist/esm/models/rowDetailView.interface.js.map +0 -1
- package/dist/esm/models/viewModelBindableData.interface.d.ts +0 -10
- package/dist/esm/models/viewModelBindableData.interface.js +0 -2
- package/dist/esm/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/esm/models/viewModelBindableInputData.interface.d.ts +0 -9
- package/dist/esm/models/viewModelBindableInputData.interface.js +0 -2
- package/dist/esm/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/esm/value-converters/asgDateFormat.d.ts +0 -3
- package/dist/esm/value-converters/asgDateFormat.js +0 -7
- package/dist/esm/value-converters/asgDateFormat.js.map +0 -1
- package/dist/esm/value-converters/asgNumber.d.ts +0 -3
- package/dist/esm/value-converters/asgNumber.js +0 -7
- package/dist/esm/value-converters/asgNumber.js.map +0 -1
- package/dist/i18n/en/aurelia-slickgrid.json +0 -97
- package/dist/i18n/fr/aurelia-slickgrid.json +0 -98
- package/dist/native-modules/constants.d.ts +0 -23
- package/dist/native-modules/constants.js +0 -86
- package/dist/native-modules/constants.js.map +0 -1
- package/dist/native-modules/custom-elements/slickgrid-react.d.ts +0 -236
- package/dist/native-modules/custom-elements/slickgrid-react.js +0 -1257
- package/dist/native-modules/custom-elements/slickgrid-react.js.map +0 -1
- package/dist/native-modules/custom-elements/slickgridEventAggregator.d.ts +0 -10
- package/dist/native-modules/custom-elements/slickgridEventAggregator.js +0 -8
- package/dist/native-modules/custom-elements/slickgridEventAggregator.js.map +0 -1
- package/dist/native-modules/extensions/index.d.ts +0 -1
- package/dist/native-modules/extensions/index.js +0 -2
- package/dist/native-modules/extensions/index.js.map +0 -1
- package/dist/native-modules/extensions/rowDetailViewExtension.d.ts +0 -70
- package/dist/native-modules/extensions/rowDetailViewExtension.js +0 -337
- package/dist/native-modules/extensions/rowDetailViewExtension.js.map +0 -1
- package/dist/native-modules/global-grid-options.d.ts +0 -5
- package/dist/native-modules/global-grid-options.js +0 -270
- package/dist/native-modules/global-grid-options.js.map +0 -1
- package/dist/native-modules/index.d.ts +0 -11
- package/dist/native-modules/index.js +0 -12
- package/dist/native-modules/index.js.map +0 -1
- package/dist/native-modules/models/gridOption.interface.js +0 -2
- package/dist/native-modules/models/gridOption.interface.js.map +0 -1
- package/dist/native-modules/models/index.js +0 -8
- package/dist/native-modules/models/index.js.map +0 -1
- package/dist/native-modules/models/reactComponentOutput.interface.d.ts +0 -6
- package/dist/native-modules/models/reactComponentOutput.interface.js +0 -2
- package/dist/native-modules/models/reactComponentOutput.interface.js.map +0 -1
- package/dist/native-modules/models/reactGridInstance.interface.js +0 -2
- package/dist/native-modules/models/reactGridInstance.interface.js.map +0 -1
- package/dist/native-modules/models/rowDetailView.interface.d.ts +0 -24
- package/dist/native-modules/models/rowDetailView.interface.js +0 -2
- package/dist/native-modules/models/rowDetailView.interface.js.map +0 -1
- package/dist/native-modules/models/slickGrid.interface.d.ts +0 -6
- package/dist/native-modules/models/slickGrid.interface.js +0 -2
- package/dist/native-modules/models/slickGrid.interface.js.map +0 -1
- package/dist/native-modules/models/viewModelBindableData.interface.d.ts +0 -10
- package/dist/native-modules/models/viewModelBindableData.interface.js +0 -2
- package/dist/native-modules/models/viewModelBindableData.interface.js.map +0 -1
- package/dist/native-modules/models/viewModelBindableInputData.interface.d.ts +0 -9
- package/dist/native-modules/models/viewModelBindableInputData.interface.js +0 -2
- package/dist/native-modules/models/viewModelBindableInputData.interface.js.map +0 -1
- package/dist/native-modules/services/container.service.d.ts +0 -6
- package/dist/native-modules/services/container.service.js +0 -12
- package/dist/native-modules/services/container.service.js.map +0 -1
- package/dist/native-modules/services/index.d.ts +0 -4
- package/dist/native-modules/services/index.js +0 -5
- package/dist/native-modules/services/index.js.map +0 -1
- package/dist/native-modules/services/reactUtil.service.d.ts +0 -5
- package/dist/native-modules/services/reactUtil.service.js +0 -21
- package/dist/native-modules/services/reactUtil.service.js.map +0 -1
- package/dist/native-modules/services/singletons.d.ts +0 -6
- package/dist/native-modules/services/singletons.js +0 -7
- package/dist/native-modules/services/singletons.js.map +0 -1
- package/dist/native-modules/services/translater.service.js +0 -44
- package/dist/native-modules/services/translater.service.js.map +0 -1
- package/dist/native-modules/services/utilities.d.ts +0 -7
- package/dist/native-modules/services/utilities.js +0 -18
- package/dist/native-modules/services/utilities.js.map +0 -1
- package/dist/native-modules/slickgrid-config.d.ts +0 -5
- package/dist/native-modules/slickgrid-config.js +0 -7
- package/dist/native-modules/slickgrid-config.js.map +0 -1
- package/dist/native-modules/value-converters/asgDateFormat.d.ts +0 -3
- package/dist/native-modules/value-converters/asgDateFormat.js +0 -7
- package/dist/native-modules/value-converters/asgDateFormat.js.map +0 -1
- package/dist/native-modules/value-converters/asgNumber.d.ts +0 -3
- package/dist/native-modules/value-converters/asgNumber.js +0 -7
- package/dist/native-modules/value-converters/asgNumber.js.map +0 -1
package/.eslintrc
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@typescript-eslint/member-ordering": "off",
|
|
55
55
|
"@typescript-eslint/member-delimiter-style": "off",
|
|
56
56
|
"@typescript-eslint/no-empty-function": "off",
|
|
57
|
-
"@typescript-eslint/no-empty-interface": "
|
|
57
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
58
58
|
"@typescript-eslint/no-explicit-any": "off",
|
|
59
59
|
"@typescript-eslint/no-misused-new": "error",
|
|
60
60
|
"@typescript-eslint/no-namespace": "error",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@typescript-eslint/no-this-alias": "error",
|
|
66
66
|
"@typescript-eslint/no-use-before-define": "off",
|
|
67
67
|
"@typescript-eslint/no-var-requires": "off",
|
|
68
|
-
"@typescript-eslint/no-unused-vars": "
|
|
68
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
69
69
|
"@typescript-eslint/prefer-for-of": "off",
|
|
70
70
|
"@typescript-eslint/prefer-function-type": "error",
|
|
71
71
|
"@typescript-eslint/prefer-namespace-keyword": "error",
|
package/.hintrc
ADDED
package/.release-it.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"git": {
|
|
3
|
+
"commitMessage": "chore: release v${version}"
|
|
4
|
+
},
|
|
5
|
+
"github": {
|
|
6
|
+
"release": true
|
|
7
|
+
},
|
|
8
|
+
"hooks": {
|
|
9
|
+
"before:init": [
|
|
10
|
+
"npm run lint"
|
|
11
|
+
],
|
|
12
|
+
"after:bump": "npm run build",
|
|
13
|
+
"after:git:release": "echo After git push, before GitHub Release",
|
|
14
|
+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
|
|
15
|
+
},
|
|
16
|
+
"plugins": {
|
|
17
|
+
"@release-it/conventional-changelog": {
|
|
18
|
+
"header": "# Change Log \n\nAll notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.",
|
|
19
|
+
"preset": "angular",
|
|
20
|
+
"ignoreRecommendedBump": true,
|
|
21
|
+
"infile": "CHANGELOG.md"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
# 2.0.0 (2022-12-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add missing grid container for HeaderMenu plugin to work correctly ([ca9887e](https://github.com/ghiscoding/slickgrid-react/commit/ca9887e119e6d3d61acace26197e6e299d536c84))
|
|
11
|
+
* **comp:** switch to reusable Slickgrid-Universal Pagination ([549862f](https://github.com/ghiscoding/slickgrid-react/commit/549862ffff59bac1ad2ad86aae0bfad23ed686b3))
|
|
12
|
+
* Custom Events not working out of the box in React ([1a16ae3](https://github.com/ghiscoding/slickgrid-react/commit/1a16ae3491f4efa533a4b43c4aa8b7c137ca45a4))
|
|
13
|
+
* few more small examples fixes ([4ffc694](https://github.com/ghiscoding/slickgrid-react/commit/4ffc69457633e99aef71c7879087e4e2919af22e))
|
|
14
|
+
* fixing few small issues in Examples after adding Cypress E2E tests ([217bf9d](https://github.com/ghiscoding/slickgrid-react/commit/217bf9d7e72ae40f1a02974e681f26494ae51807))
|
|
15
|
+
* Grid Presets should load all presets including pinning ([3253148](https://github.com/ghiscoding/slickgrid-react/commit/32531486c617d16a8e8a01807438f3499c9d8c53))
|
|
16
|
+
* most Examples should now work with Custom Events and i18n ([d3100b2](https://github.com/ghiscoding/slickgrid-react/commit/d3100b21629369d12bc3446f674242be34496969))
|
|
17
|
+
* **pinning:** cols reorder & freezing shouldn't affect order ([#12](https://github.com/ghiscoding/slickgrid-react/issues/12)) ([b6c806b](https://github.com/ghiscoding/slickgrid-react/commit/b6c806b3a24327ad4c54b1e37f4cd7a31b5acc6a))
|
|
18
|
+
* **sorting:** update Slickgrid-Universal, fixes date sort shuffling ([#21](https://github.com/ghiscoding/slickgrid-react/issues/21)) ([2d35508](https://github.com/ghiscoding/slickgrid-react/commit/2d35508d58de82cbdfdefc25b1df67dbcb7bcfcf))
|
|
19
|
+
* **ui:** use correct grid container on Resizer to fix Pagination ([b00dc98](https://github.com/ghiscoding/slickgrid-react/commit/b00dc98153934922e77b9a113f36eb191ed5ab89))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add locale support via react-i18next ([c7c86d0](https://github.com/ghiscoding/slickgrid-react/commit/c7c86d00ac7212aa40c25f6d9b998cbbf71e1c75))
|
|
25
|
+
* add new Example 33 (tooltip) and 34 (trading platform) ([aa4ad8b](https://github.com/ghiscoding/slickgrid-react/commit/aa4ad8bc8975a8c2e76b8bb2ef11a46e6c8f3149))
|
|
26
|
+
* add Slots and fix issue to hide header row when provided ([d9bcded](https://github.com/ghiscoding/slickgrid-react/commit/d9bcdedd993d4ccbbca8e1a1759372c89878e3c1))
|
|
27
|
+
* add Tree Data grid functionality ([6422ae0](https://github.com/ghiscoding/slickgrid-react/commit/6422ae0eca678c878ff4311187f78d3879f8b38c))
|
|
28
|
+
* **core:** BREAKING CHANGE replace jQueryUI by SortableJS ([e4052d6](https://github.com/ghiscoding/slickgrid-react/commit/e4052d62bba7f150b68c2e299fe074dd75729246))
|
|
29
|
+
* **OData:** add `$select` and `$expand` query options ([631434c](https://github.com/ghiscoding/slickgrid-react/commit/631434ccb8051ac7fcd896732b1e6ece3e8f23ef))
|
|
30
|
+
* upgrade to latest Slickgrid-Universal version 1.x ([3a12f0f](https://github.com/ghiscoding/slickgrid-react/commit/3a12f0f516dbeae84daec875914f31d2d223f8d0))
|
|
31
|
+
|
|
1
32
|
# Changelog
|
|
2
33
|
|
|
3
34
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,70 +1,97 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Slickgrid-React
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
[](http://www.typescriptlang.org/)
|
|
5
|
+
[](https://www.npmjs.com/package/slickgrid-react)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
[](https://github.com/ghiscoding/slickgrid-react/actions)
|
|
8
|
+
[](https://www.cypress.io/)
|
|
9
|
+
<!-- [](https://github.com/facebook/jest)
|
|
10
|
+
[](https://codecov.io/gh/ghiscoding/slickgrid-react) -->
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
## Upcoming Release (stay tuned) 📣
|
|
13
|
+
An offical supported release 2.x is about to land very, very soon (in coming days), checkout the [Releases](https://github.com/ghiscoding/slickgrid-react/releases) and [Discussions](https://github.com/ghiscoding/slickgrid-react/discussions) sections for an update on the subject. You can already see and try out the new [Live Demo](https://ghiscoding.github.io/slickgrid-react/) of the upcoming version.
|
|
8
14
|
|
|
9
|
-
###
|
|
15
|
+
### Brief introduction
|
|
16
|
+
One of the best javascript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid) which was originally developed by @mleibman is now available to React. I have used a few datagrids and SlickGrid beats most of them in terms of functionalities and performance (it can easily deal with even a million row). We will be using the [6pac/SlickGrid](https://github.com/6pac/SlickGrid/) fork, this is the most active fork since the original @mleibman fork was closed some time ago by his author for personal reasons. Also worth to know, that I also contributed a lot to the 6pac/SlickGrid fork for the benefit of Slickgrid-React.
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
## Installation
|
|
19
|
+
Refer to the **[Wiki - HOWTO Step by Step](https://github.com/ghiscoding/slickgrid-react/wiki/HOWTO--Step-by-Step)** and/or clone the [Slickgrid-React-Demos](https://github.com/ghiscoding/slickgrid-react-demos) repository. Please consult all Wikis 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.
|
|
13
20
|
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
### License
|
|
22
|
+
[MIT License](LICENSE)
|
|
16
23
|
|
|
17
|
-
###
|
|
24
|
+
### NPM Package
|
|
25
|
+
[slickgrid-react on NPM](https://www.npmjs.com/package/slickgrid-react)
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
### Live Demo page
|
|
28
|
+
`Slickgrid-React` works with all `Bootstrap` versions and/or any other UI framework you wish to use (Bulma, Material Design, ...), you can see a demo of each one below. There are also 2 new styling Themes, Material & Salesforce which are also available. You can also use different SVG icons, you may want to look at the [Wiki - SVG Icons](https://github.com/ghiscoding/slickgrid-react/wiki/SVG-Icons)
|
|
29
|
+
- [Bootstrap 5 demo](https://ghiscoding.github.io/slickgrid-react)
|
|
21
30
|
|
|
22
|
-
|
|
31
|
+
#### Working Demos
|
|
32
|
+
For a complete working set of working demos, you strongly suggest that you clone the [Slickgrid-React Demos](https://github.com/ghiscoding/slickgrid-react-demos) repository (instructions are provided in the demo repo). This repo provides multiple samples and it is also worth to know that these demos are updated frequently.
|
|
23
33
|
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
34
|
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
### Like it? :star: it
|
|
36
|
+
You like **Slickgrid-React**? Be sure to upvote :star:, and perhaps support me with cafeine :coffee: and feel free to contribute. 👷👷♀️
|
|
29
37
|
|
|
30
|
-
|
|
38
|
+
<a href='https://ko-fi.com/ghiscoding' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />
|
|
31
39
|
|
|
32
|
-
|
|
40
|
+
## Latest News & Releases
|
|
41
|
+
Check out the [Releases](https://github.com/ghiscoding/slickgrid-react/releases) section for all latest News & Releases.
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
### Fully Tested with [Jest](https://jestjs.io/) (Unit Tests) - [Cypress](https://www.cypress.io/) (E2E Tests)
|
|
44
|
+
Slickgrid-React and Slickgrid-Universal both have **100%** Unit Test Coverage, we are talking about +15,000 lines of code (+3,750 unit tests) that are fully tested with [Jest](https://jestjs.io/). On the UI side, all Slickgrid-React Examples are tested with [Cypress](https://www.cypress.io/), there are over +500 Cypress E2E tests.
|
|
35
45
|
|
|
36
|
-
|
|
46
|
+
## Installation
|
|
47
|
+
Refer to the **[Wiki - HOWTO Step by Step](https://github.com/ghiscoding/slickgrid-react/wiki/HOWTO---Step-by-Step)**. Please don't open any issue unless you have followed these steps (from the Wiki), and if any of the steps are incorrect or confusing, then please let me know.
|
|
37
48
|
|
|
38
|
-
|
|
49
|
+
**NOTE:** if you have any question, please consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid)
|
|
39
50
|
|
|
40
|
-
|
|
51
|
+
## Wiki / Documentation
|
|
52
|
+
The Wiki is where all the documentation and instructions will go, so please consult the [slickgrid-react - Wiki](https://github.com/ghiscoding/slickgrid-react/wiki) before opening any issues. The [Wiki - HOWTO](https://github.com/ghiscoding/slickgrid-react/wiki/HOWTO---Step-by-Step) is a great place to start with. You can also take a look at the [Demo page](https://ghiscoding.github.io/slickgrid-react), it includes sample for most of the features and it keeps growing (so you might want to consult it whenever a new version comes out).
|
|
41
53
|
|
|
42
|
-
##
|
|
54
|
+
## Main features
|
|
55
|
+
You can see some screenshots below and the instructions down below and if that is not enough for you to decide, head over to the [Wiki - Main Features](https://github.com/ghiscoding/slickgrid-react/wiki).
|
|
43
56
|
|
|
44
|
-
|
|
57
|
+
## Missing features
|
|
58
|
+
What if `Slickgrid-React` is missing feature(s) compare to the original core library [6pac/SlickGrid](https://github.com/6pac/SlickGrid/)?
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
Fear not, and just simply reference the `SlickGrid` and `DataView` objects, just like in the core lib, those are exposed through Event Emitters. For more info continue reading on [Wiki - SlickGrid & DataView objects](/ghiscoding/slickgrid-react/wiki/SlickGrid-&-DataView-Objects) and [Wiki - Grid & DataView Events](https://github.com/ghiscoding/slickgrid-react/wiki/Grid-&-DataView-Events)
|
|
47
61
|
|
|
48
|
-
### Code Splitting
|
|
49
62
|
|
|
50
|
-
|
|
63
|
+
## Screenshots
|
|
51
64
|
|
|
52
|
-
|
|
65
|
+
Screenshots from the demo app with the `Bootstrap` theme.
|
|
53
66
|
|
|
54
|
-
|
|
67
|
+
_Note that the styling changed a bit, the best is to simply head over to the [Live Demo](https://ghiscoding.github.io/slickgrid-react) page._
|
|
55
68
|
|
|
56
|
-
###
|
|
69
|
+
### Slickgrid example with Formatters (last column shown is a custom Formatter)
|
|
57
70
|
|
|
58
|
-
|
|
71
|
+
#### _You can also see the Grid Menu opened (aka hambuger menu)_
|
|
59
72
|
|
|
60
|
-
|
|
73
|
+

|
|
61
74
|
|
|
62
|
-
|
|
75
|
+
### Filters and Multi-Column Sort
|
|
63
76
|
|
|
64
|
-
|
|
77
|
+

|
|
65
78
|
|
|
66
|
-
|
|
79
|
+
### Inline Editing
|
|
67
80
|
|
|
68
|
-
|
|
81
|
+

|
|
69
82
|
|
|
70
|
-
|
|
83
|
+
### Pinned (aka frozen) Columns/Rows
|
|
84
|
+
|
|
85
|
+

|
|
86
|
+
|
|
87
|
+
### Draggable Grouping & Aggregators
|
|
88
|
+
|
|
89
|
+

|
|
90
|
+
|
|
91
|
+
### Slickgrid Example with Server Side (Filter/Sort/Pagination)
|
|
92
|
+
#### Comes with OData & GraphQL support (you can implement custom ones too)
|
|
93
|
+
|
|
94
|
+

|
|
95
|
+
|
|
96
|
+
### Composite Editor Modal Windows
|
|
97
|
+

|
|
@@ -1,79 +1,48 @@
|
|
|
1
|
-
import 'slickgrid/lib/jquery.event.drag-2.3.0';
|
|
2
|
-
import 'slickgrid/lib/jquery.mousewheel';
|
|
3
|
-
import 'slickgrid/slick.core';
|
|
4
|
-
import 'slickgrid/slick.dataview';
|
|
5
|
-
import 'slickgrid/slick.grid';
|
|
6
|
-
import 'slickgrid/slick.groupitemmetadataprovider';
|
|
7
1
|
import React from 'react';
|
|
8
|
-
import
|
|
2
|
+
import 'slickgrid/dist/slick.core.min';
|
|
3
|
+
import 'slickgrid/dist/slick.interactions.min';
|
|
4
|
+
import 'slickgrid/dist/slick.grid.min';
|
|
5
|
+
import 'slickgrid/dist/slick.dataview.min';
|
|
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';
|
|
9
7
|
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
10
8
|
import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
|
|
11
9
|
import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
|
|
12
10
|
import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
|
|
13
11
|
import { ReactGridInstance, GridOption } from '../models/index';
|
|
14
|
-
import { ReactUtilService,
|
|
12
|
+
import { ReactUtilService, TranslaterService } from '../services/index';
|
|
15
13
|
import { Subscription } from 'rxjs';
|
|
16
|
-
import {
|
|
17
|
-
interface Props {
|
|
18
|
-
reactUtilService: ReactUtilService;
|
|
19
|
-
globalEa: SlickgridEventAggregator;
|
|
20
|
-
containerService: ContainerService;
|
|
21
|
-
translaterService: TranslaterService;
|
|
22
|
-
externalServices?: {
|
|
23
|
-
backendUtilityService?: BackendUtilityService;
|
|
24
|
-
collectionService?: CollectionService;
|
|
25
|
-
eventPubSubService?: EventPubSubService;
|
|
26
|
-
extensionService?: ExtensionService;
|
|
27
|
-
extensionUtility?: ExtensionUtility;
|
|
28
|
-
filterService?: FilterService;
|
|
29
|
-
gridEventService?: GridEventService;
|
|
30
|
-
gridService?: GridService;
|
|
31
|
-
gridStateService?: GridStateService;
|
|
32
|
-
groupingAndColspanService?: GroupingAndColspanService;
|
|
33
|
-
paginationService?: PaginationService;
|
|
34
|
-
resizerService?: ResizerService;
|
|
35
|
-
rxjs?: RxJsFacade;
|
|
36
|
-
sharedService?: SharedService;
|
|
37
|
-
sortService?: SortService;
|
|
38
|
-
treeDataService?: TreeDataService;
|
|
39
|
-
};
|
|
40
|
-
customDataView?: SlickDataView;
|
|
41
|
-
dataset: any[];
|
|
42
|
-
datasetHierarchical?: any[] | null;
|
|
43
|
-
gridId: string;
|
|
44
|
-
gridOptions: GridOption;
|
|
45
|
-
columnDefinitions: Column[];
|
|
46
|
-
}
|
|
14
|
+
import { SlickgridReactProps } from './slickgridReactProps';
|
|
47
15
|
interface State {
|
|
48
16
|
showPagination: boolean;
|
|
49
17
|
_gridOptions: GridOption;
|
|
50
18
|
paginationService: PaginationService;
|
|
51
19
|
}
|
|
52
|
-
export declare class
|
|
53
|
-
readonly props:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
20
|
+
export declare class ReactSlickgrid 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;
|
|
72
42
|
backendServiceApi: BackendServiceApi | undefined;
|
|
73
43
|
locales: Locale;
|
|
74
44
|
metrics?: Metrics;
|
|
75
|
-
|
|
76
|
-
private set showPagination(value);
|
|
45
|
+
showPagination: boolean;
|
|
77
46
|
serviceList: any[];
|
|
78
47
|
subscriptions: Array<EventSubscription | Subscription>;
|
|
79
48
|
paginationData?: {
|
|
@@ -83,56 +52,57 @@ export declare class ReactSlickgridCustomElement extends React.Component<Props,
|
|
|
83
52
|
slickEmptyWarning: SlickEmptyWarningComponent | undefined;
|
|
84
53
|
slickFooter: SlickFooterComponent | undefined;
|
|
85
54
|
slickPagination: SlickPaginationComponent | undefined;
|
|
86
|
-
extensionUtility: ExtensionUtility;
|
|
87
55
|
backendUtilityService: BackendUtilityService;
|
|
88
56
|
collectionService: CollectionService;
|
|
89
57
|
extensionService: ExtensionService;
|
|
58
|
+
extensionUtility: ExtensionUtility;
|
|
90
59
|
filterFactory: FilterFactory;
|
|
91
60
|
filterService: FilterService;
|
|
92
61
|
gridEventService: GridEventService;
|
|
93
62
|
gridService: GridService;
|
|
94
63
|
gridStateService: GridStateService;
|
|
95
64
|
groupingService: GroupingAndColspanService;
|
|
96
|
-
|
|
97
|
-
|
|
65
|
+
protected get paginationService(): PaginationService;
|
|
66
|
+
protected set paginationService(value: PaginationService);
|
|
98
67
|
resizerService: ResizerService;
|
|
99
68
|
rxjs?: RxJsFacade;
|
|
100
69
|
sharedService: SharedService;
|
|
101
70
|
sortService: SortService;
|
|
102
71
|
treeDataService: TreeDataService;
|
|
103
|
-
|
|
72
|
+
dataView: SlickDataView;
|
|
104
73
|
grid: SlickGrid;
|
|
105
74
|
totalItems: number;
|
|
106
|
-
extensions: ExtensionList<any
|
|
75
|
+
extensions: ExtensionList<any>;
|
|
107
76
|
instances: ReactGridInstance | null;
|
|
108
|
-
private elm;
|
|
109
77
|
static defaultProps: {
|
|
110
78
|
reactUtilService: ReactUtilService;
|
|
111
|
-
|
|
112
|
-
containerService: ContainerService;
|
|
79
|
+
containerService: import("../services/container.service").ContainerService;
|
|
113
80
|
translaterService: TranslaterService;
|
|
114
81
|
dataset: never[];
|
|
115
82
|
gridId: string;
|
|
116
83
|
columnDefinitions: never[];
|
|
117
84
|
};
|
|
118
|
-
|
|
85
|
+
get dataset(): any[];
|
|
86
|
+
set dataset(newDataset: any[]);
|
|
87
|
+
get datasetHierarchical(): any[] | undefined;
|
|
88
|
+
set datasetHierarchical(newHierarchicalDataset: any[] | undefined);
|
|
89
|
+
constructor(props: SlickgridReactProps);
|
|
119
90
|
get eventHandler(): SlickEventHandler;
|
|
120
91
|
get isDatasetInitialized(): boolean;
|
|
121
92
|
set isDatasetInitialized(isInitialized: boolean);
|
|
93
|
+
set isDatasetHierarchicalInitialized(isInitialized: boolean);
|
|
122
94
|
get registeredResources(): ExternalResource[];
|
|
123
95
|
componentDidMount(): void;
|
|
124
96
|
initialization(eventHandler: SlickEventHandler): void;
|
|
125
97
|
componentWillUnmount(shouldEmptyDomElementContainer?: boolean): void;
|
|
126
98
|
emptyGridContainerElm(): void;
|
|
127
99
|
dispose(shouldEmptyDomElementContainer?: boolean): void;
|
|
128
|
-
componentDidUpdate(prevProps:
|
|
100
|
+
componentDidUpdate(prevProps: SlickgridReactProps): void;
|
|
129
101
|
columnDefinitionsChanged(): void;
|
|
130
102
|
/**
|
|
131
103
|
* Commits the current edit to the grid
|
|
132
104
|
*/
|
|
133
105
|
commitEdit(target: Element): void;
|
|
134
|
-
datasetChanged(newDataset: any[], oldValue: any[]): void;
|
|
135
|
-
datasetHierarchicalChanged(newHierarchicalDataset: any[] | undefined): void;
|
|
136
106
|
/**
|
|
137
107
|
* Define our internal Post Process callback, it will execute internally after we get back result from the Process backend call
|
|
138
108
|
* For now, this is GraphQL Service ONLY feature and it will basically
|
|
@@ -174,63 +144,63 @@ export declare class ReactSlickgridCustomElement extends React.Component<Props,
|
|
|
174
144
|
* Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
|
|
175
145
|
* We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
|
|
176
146
|
*/
|
|
177
|
-
|
|
178
|
-
|
|
147
|
+
protected copyColumnWidthsReference(columnDefinitions: Column[]): void;
|
|
148
|
+
protected displayEmptyDataWarning(showWarning?: boolean): void;
|
|
179
149
|
/** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
|
|
180
|
-
|
|
150
|
+
protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
|
|
181
151
|
/** Initialize the Pagination Service once */
|
|
182
|
-
|
|
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;
|
|
183
160
|
/** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
|
|
184
|
-
|
|
161
|
+
protected loadEditorCollectionAsync(column: Column): void;
|
|
185
162
|
/** Load any possible Columns Grid Presets */
|
|
186
|
-
|
|
163
|
+
protected loadColumnPresetsWhenDatasetInitialized(): void;
|
|
187
164
|
/** Load any possible Filters Grid Presets */
|
|
188
|
-
|
|
165
|
+
protected loadFilterPresetsWhenDatasetInitialized(): void;
|
|
189
166
|
/**
|
|
190
167
|
* local grid, check if we need to show the Pagination
|
|
191
168
|
* if so then also check if there's any presets and finally initialize the PaginationService
|
|
192
169
|
* 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
|
|
193
170
|
*/
|
|
194
|
-
|
|
171
|
+
protected loadLocalGridPagination(dataset?: any[]): void;
|
|
195
172
|
/** Load any Row Selections into the DataView that were presets by the user */
|
|
196
|
-
|
|
197
|
-
|
|
173
|
+
protected loadRowSelectionPresetWhenExists(): void;
|
|
174
|
+
protected mergeGridOptions(gridOptions: GridOption): GridOption;
|
|
198
175
|
/** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
|
|
199
|
-
|
|
200
|
-
|
|
176
|
+
protected preRegisterResources(): void;
|
|
177
|
+
protected registerResources(): void;
|
|
201
178
|
/** Register the RxJS Resource in all necessary services which uses */
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Render (or dispose) the Pagination Component, user can optionally provide False (to not show it) which will in term dispose of the Pagination,
|
|
205
|
-
* 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)
|
|
206
|
-
* @param {Boolean} showPagination - show (new render) or not (dispose) the Pagination
|
|
207
|
-
* @param {Boolean} shouldDisposePaginationService - when disposing the Pagination, do we also want to dispose of the Pagination Service? (defaults to True)
|
|
208
|
-
*/
|
|
209
|
-
private renderPagination;
|
|
179
|
+
protected registerRxJsResource(resource: RxJsFacade): void;
|
|
210
180
|
/**
|
|
211
181
|
* Takes a flat dataset with parent/child relationship, sort it (via its tree structure) and return the sorted flat array
|
|
212
182
|
* @param {Array<Object>} flatDatasetInput - flat dataset input
|
|
213
183
|
* @param {Boolean} forceGridRefresh - optionally force a full grid refresh
|
|
214
184
|
* @returns {Array<Object>} sort flat parent/child dataset
|
|
215
185
|
*/
|
|
216
|
-
|
|
186
|
+
protected sortTreeDataset<T>(flatDatasetInput: T[], forceGridRefresh?: boolean): T[];
|
|
217
187
|
/**
|
|
218
188
|
* For convenience to the user, we provide the property "editor" as an Slickgrid-React editor complex object
|
|
219
189
|
* however "editor" is used internally by SlickGrid for it's own Editor Factory
|
|
220
190
|
* so in our lib we will swap "editor" and copy it into a new property called "internalColumnEditor"
|
|
221
191
|
* then take back "editor.model" and make it the new "editor" so that SlickGrid Editor Factory still works
|
|
222
192
|
*/
|
|
223
|
-
|
|
193
|
+
protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): any[];
|
|
224
194
|
/** translate all columns (including hidden columns) */
|
|
225
|
-
|
|
195
|
+
protected translateColumnHeaderTitleKeys(): void;
|
|
226
196
|
/** translate all column groups (including hidden columns) */
|
|
227
|
-
|
|
197
|
+
protected translateColumnGroupKeys(): void;
|
|
228
198
|
/**
|
|
229
199
|
* Update the "internalColumnEditor.collection" property.
|
|
230
200
|
* Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
|
|
231
201
|
* Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
|
|
232
202
|
*/
|
|
233
|
-
|
|
203
|
+
protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
|
|
234
204
|
render(): JSX.Element;
|
|
235
205
|
}
|
|
236
206
|
export {};
|