slickgrid-react 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -22
- package/README.md +3 -8
- package/dist/cjs/components/slickgrid-react.js +1 -1
- package/dist/cjs/components/slickgrid-react.js.map +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/services/reactUtil.service.js +2 -0
- package/dist/cjs/services/reactUtil.service.js.map +1 -1
- package/dist/esm/components/slickgrid-react.js +1 -2
- package/dist/esm/components/slickgrid-react.js.map +1 -1
- package/dist/esm/constants.js +1 -2
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/services/reactUtil.service.js +2 -0
- package/dist/esm/services/reactUtil.service.js.map +1 -1
- package/dist/{cjs → types}/components/slickgrid-react.d.ts +1 -0
- package/dist/types/components/slickgrid-react.d.ts.map +1 -0
- package/dist/{cjs → types}/components/slickgridEventAggregator.d.ts +1 -0
- package/dist/types/components/slickgridEventAggregator.d.ts.map +1 -0
- package/dist/{cjs → types}/components/slickgridReactProps.d.ts +1 -1
- package/dist/types/components/slickgridReactProps.d.ts.map +1 -0
- package/dist/{esm → types}/constants.d.ts +1 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/{cjs → types}/global-grid-options.d.ts +1 -0
- package/dist/types/global-grid-options.d.ts.map +1 -0
- package/dist/{cjs → types}/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{cjs → types}/models/gridOption.interface.d.ts +1 -0
- package/dist/types/models/gridOption.interface.d.ts.map +1 -0
- package/dist/{esm → types}/models/index.d.ts +1 -0
- package/dist/types/models/index.d.ts.map +1 -0
- package/dist/{esm → types}/models/reactComponentOutput.interface.d.ts +1 -0
- package/dist/types/models/reactComponentOutput.interface.d.ts.map +1 -0
- package/dist/{esm → types}/models/slickGrid.interface.d.ts +1 -0
- package/dist/types/models/slickGrid.interface.d.ts.map +1 -0
- package/dist/{cjs → types}/models/slickgridReactInstance.interface.d.ts +1 -0
- package/dist/types/models/slickgridReactInstance.interface.d.ts.map +1 -0
- package/dist/{esm → types}/services/container.service.d.ts +1 -0
- package/dist/types/services/container.service.d.ts.map +1 -0
- package/dist/{esm → types}/services/index.d.ts +1 -0
- package/dist/types/services/index.d.ts.map +1 -0
- package/dist/{cjs → types}/services/reactUtil.service.d.ts +1 -0
- package/dist/types/services/reactUtil.service.d.ts.map +1 -0
- package/dist/{cjs → types}/services/singletons.d.ts +1 -0
- package/dist/types/services/singletons.d.ts.map +1 -0
- package/dist/{esm → types}/services/translater.service.d.ts +1 -0
- package/dist/types/services/translater.service.d.ts.map +1 -0
- package/dist/{esm → types}/services/utilities.d.ts +1 -0
- package/dist/types/services/utilities.d.ts.map +1 -0
- package/dist/{esm → types}/slickgrid-config.d.ts +1 -0
- package/dist/types/slickgrid-config.d.ts.map +1 -0
- package/package.json +59 -63
- package/dist/cjs/constants.d.ts +0 -23
- package/dist/cjs/models/index.d.ts +0 -4
- package/dist/cjs/models/reactComponentOutput.interface.d.ts +0 -6
- package/dist/cjs/models/slickGrid.interface.d.ts +0 -6
- package/dist/cjs/services/container.service.d.ts +0 -6
- package/dist/cjs/services/index.d.ts +0 -4
- package/dist/cjs/services/translater.service.d.ts +0 -25
- package/dist/cjs/services/utilities.d.ts +0 -7
- package/dist/cjs/slickgrid-config.d.ts +0 -5
- package/dist/esm/components/slickgrid-react.d.ts +0 -207
- package/dist/esm/components/slickgridEventAggregator.d.ts +0 -10
- package/dist/esm/components/slickgridReactProps.d.ts +0 -290
- package/dist/esm/global-grid-options.d.ts +0 -5
- package/dist/esm/index.d.ts +0 -8
- package/dist/esm/models/gridOption.interface.d.ts +0 -6
- package/dist/esm/models/slickgridReactInstance.interface.d.ts +0 -36
- package/dist/esm/services/reactUtil.service.d.ts +0 -5
- package/dist/esm/services/singletons.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slickgrid-react",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Slickgrid components made available in React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,8 +40,9 @@
|
|
|
40
40
|
"module": "dist/esm/index.js",
|
|
41
41
|
"exports": {
|
|
42
42
|
".": {
|
|
43
|
-
"
|
|
43
|
+
"types": "./dist/types/index.d.ts",
|
|
44
44
|
"require": "./dist/cjs/index.js",
|
|
45
|
+
"import": "./dist/esm/index.js",
|
|
45
46
|
"default": "./dist/esm/index.js"
|
|
46
47
|
},
|
|
47
48
|
"./*": "./*"
|
|
@@ -49,31 +50,31 @@
|
|
|
49
50
|
"typesVersions": {
|
|
50
51
|
"*": {
|
|
51
52
|
"*": [
|
|
52
|
-
"./dist/
|
|
53
|
+
"./dist/types/index.d.ts"
|
|
53
54
|
]
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
|
-
"types": "dist/
|
|
57
|
+
"types": "dist/types/index.d.ts",
|
|
57
58
|
"scripts": {
|
|
58
59
|
"build:demo": "webpack --env production",
|
|
59
60
|
"delete:dist": "rimraf dist",
|
|
60
61
|
"lint": "eslint src/slickgrid-react --ext .ts",
|
|
61
|
-
"build:cjs": "
|
|
62
|
-
"postbuild:cjs": "
|
|
63
|
-
"build:esm": "
|
|
64
|
-
"postbuild:esm": "
|
|
62
|
+
"build:cjs": "tsc --project src/slickgrid-react/tsconfig.build.json --outDir dist/cjs --module commonjs --declaration false",
|
|
63
|
+
"postbuild:cjs": "copyfiles --up 2 src/slickgrid-react/**/*.html dist/cjs",
|
|
64
|
+
"build:esm": "tsc --project src/slickgrid-react/tsconfig.build.json --outDir dist/esm --module esnext --target es2018 --declaration false",
|
|
65
|
+
"postbuild:esm": "copyfiles --up 2 src/slickgrid-react/**/*.html dist/esm",
|
|
66
|
+
"build:types": "tsc --project src/slickgrid-react/tsconfig.build.json --emitDeclarationOnly --declarationMap --outDir dist/types",
|
|
65
67
|
"prebuild": "npm-run-all delete:dist lint",
|
|
66
|
-
"build": "npm-run-all build:cjs build:esm",
|
|
68
|
+
"build": "npm-run-all build:cjs build:esm build:types",
|
|
67
69
|
"postbuild": "npm-run-all copy-i18n:dist copy-asset-lib",
|
|
68
|
-
"copy-asset-lib": "
|
|
69
|
-
"copy-i18n:dist": "
|
|
70
|
+
"copy-asset-lib": "copyfiles --up 2 src/assets/lib/** dist",
|
|
71
|
+
"copy-i18n:dist": "copyfiles --up 3 src/assets/i18n/**/*.* dist/i18n",
|
|
70
72
|
"start:dev": "webpack serve --env development",
|
|
71
|
-
"cypress": "cypress open --config-file test/cypress.config.ts",
|
|
73
|
+
"cypress:open": "cypress open --config-file test/cypress.config.ts",
|
|
72
74
|
"cypress:ci": "cypress run --config-file test/cypress.config.ts",
|
|
73
75
|
"test:ci": "npx jest --runInBand --coverage=true --ci --config ./test/jest.config.js",
|
|
74
76
|
"test:jest": "npx jest --watch --detectOpenHandles --config test/jest.config.js",
|
|
75
77
|
"test:jest:coverage": "npx jest --detectOpenHandles --runInBand --coverage --config test/jest.config.js",
|
|
76
|
-
"update-npm-versions": "npm-check --skip-unused --update-all",
|
|
77
78
|
"preview:release": "release-it --dry-run",
|
|
78
79
|
"release": "release-it --only-version",
|
|
79
80
|
"serve:demo": "serve ./docs -l 8080"
|
|
@@ -90,13 +91,13 @@
|
|
|
90
91
|
]
|
|
91
92
|
},
|
|
92
93
|
"dependencies": {
|
|
93
|
-
"@slickgrid-universal/common": "3.
|
|
94
|
-
"@slickgrid-universal/custom-footer-component": "3.
|
|
95
|
-
"@slickgrid-universal/empty-warning-component": "3.
|
|
96
|
-
"@slickgrid-universal/event-pub-sub": "3.
|
|
97
|
-
"@slickgrid-universal/pagination-component": "3.
|
|
94
|
+
"@slickgrid-universal/common": "3.1.0",
|
|
95
|
+
"@slickgrid-universal/custom-footer-component": "3.1.0",
|
|
96
|
+
"@slickgrid-universal/empty-warning-component": "3.1.0",
|
|
97
|
+
"@slickgrid-universal/event-pub-sub": "3.1.0",
|
|
98
|
+
"@slickgrid-universal/pagination-component": "3.1.0",
|
|
98
99
|
"dequal": "^2.0.3",
|
|
99
|
-
"dompurify": "^3.0.
|
|
100
|
+
"dompurify": "^3.0.5",
|
|
100
101
|
"font-awesome": "^4.7.0",
|
|
101
102
|
"i18next": ">=22.5.0",
|
|
102
103
|
"moment-mini": "^2.29.4",
|
|
@@ -104,19 +105,19 @@
|
|
|
104
105
|
"sortablejs": "^1.15.0"
|
|
105
106
|
},
|
|
106
107
|
"devDependencies": {
|
|
107
|
-
"@4tw/cypress-drag-drop": "^2.2.
|
|
108
|
+
"@4tw/cypress-drag-drop": "^2.2.4",
|
|
108
109
|
"@faker-js/faker": "^8.0.2",
|
|
109
110
|
"@fnando/sparkline": "^0.3.10",
|
|
110
111
|
"@popperjs/core": "^2.11.8",
|
|
111
|
-
"@release-it/conventional-changelog": "^
|
|
112
|
-
"@slickgrid-universal/composite-editor-component": "3.
|
|
113
|
-
"@slickgrid-universal/custom-tooltip-plugin": "3.
|
|
114
|
-
"@slickgrid-universal/excel-export": "3.
|
|
115
|
-
"@slickgrid-universal/graphql": "3.
|
|
116
|
-
"@slickgrid-universal/odata": "3.
|
|
117
|
-
"@slickgrid-universal/rxjs-observable": "3.
|
|
118
|
-
"@slickgrid-universal/text-export": "3.
|
|
119
|
-
"@testing-library/jest-dom": "^5.
|
|
112
|
+
"@release-it/conventional-changelog": "^7.0.0",
|
|
113
|
+
"@slickgrid-universal/composite-editor-component": "3.1.0",
|
|
114
|
+
"@slickgrid-universal/custom-tooltip-plugin": "3.1.0",
|
|
115
|
+
"@slickgrid-universal/excel-export": "3.1.0",
|
|
116
|
+
"@slickgrid-universal/graphql": "3.1.0",
|
|
117
|
+
"@slickgrid-universal/odata": "3.1.0",
|
|
118
|
+
"@slickgrid-universal/rxjs-observable": "3.1.0",
|
|
119
|
+
"@slickgrid-universal/text-export": "3.1.0",
|
|
120
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
120
121
|
"@testing-library/react": "^14.0.0",
|
|
121
122
|
"@testing-library/user-event": "^14.4.3",
|
|
122
123
|
"@types/bluebird": "^3.5.38",
|
|
@@ -124,71 +125,66 @@
|
|
|
124
125
|
"@types/flatpickr": "^3.1.2",
|
|
125
126
|
"@types/fnando__sparkline": "^0.3.4",
|
|
126
127
|
"@types/i18next-xhr-backend": "^1.4.2",
|
|
127
|
-
"@types/jest": "^29.5.
|
|
128
|
-
"@types/node": "^
|
|
129
|
-
"@types/react": "^18.2.
|
|
130
|
-
"@types/react-dom": "^18.2.
|
|
128
|
+
"@types/jest": "^29.5.3",
|
|
129
|
+
"@types/node": "^20.4.2",
|
|
130
|
+
"@types/react": "^18.2.15",
|
|
131
|
+
"@types/react-dom": "^18.2.7",
|
|
131
132
|
"@types/sortablejs": "^1.15.1",
|
|
132
133
|
"@types/text-encoding-utf-8": "^1.0.2",
|
|
133
134
|
"@types/webpack": "^5.28.1",
|
|
134
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
135
|
-
"@typescript-eslint/parser": "^
|
|
136
|
-
"@webpack-cli/serve": "^2.0.
|
|
137
|
-
"bootstrap": "^5.
|
|
135
|
+
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
136
|
+
"@typescript-eslint/parser": "^6.1.0",
|
|
137
|
+
"@webpack-cli/serve": "^2.0.5",
|
|
138
|
+
"bootstrap": "^5.3.0",
|
|
138
139
|
"clean-webpack-plugin": "^4.0.0",
|
|
139
|
-
"concurrently": "^8.0
|
|
140
|
+
"concurrently": "^8.2.0",
|
|
140
141
|
"copy-webpack-plugin": "^11.0.0",
|
|
141
142
|
"copyfiles": "^2.4.1",
|
|
142
|
-
"cross-env": "^7.0.3",
|
|
143
143
|
"css-loader": "^6.8.1",
|
|
144
144
|
"custom-event-polyfill": "^1.0.7",
|
|
145
145
|
"esbuild-loader": "^3.0.1",
|
|
146
|
-
"cypress": "^12.
|
|
147
|
-
"eslint": "^8.
|
|
146
|
+
"cypress": "^12.17.2",
|
|
147
|
+
"eslint": "^8.45.0",
|
|
148
148
|
"eslint-plugin-import": "^2.27.5",
|
|
149
149
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
150
|
-
"fetch-jsonp": "^1.
|
|
151
|
-
"file-loader": "6.2.0",
|
|
150
|
+
"fetch-jsonp": "^1.3.0",
|
|
152
151
|
"font-awesome": "^4.7.0",
|
|
153
152
|
"html-loader": "4.2.0",
|
|
154
|
-
"html-webpack-plugin": "5.5.
|
|
153
|
+
"html-webpack-plugin": "5.5.3",
|
|
155
154
|
"i18next-http-backend": "^2.2.1",
|
|
156
155
|
"isomorphic-fetch": "^3.0.0",
|
|
157
|
-
"
|
|
158
|
-
"jest": "^29.
|
|
159
|
-
"jest-
|
|
160
|
-
"jest-
|
|
161
|
-
"jest-extended": "^3.2.4",
|
|
156
|
+
"jest": "^29.6.1",
|
|
157
|
+
"jest-cli": "^29.6.1",
|
|
158
|
+
"jest-environment-jsdom": "^29.6.1",
|
|
159
|
+
"jest-extended": "^4.0.0",
|
|
162
160
|
"jsdom-global": "^3.0.2",
|
|
163
161
|
"mini-css-extract-plugin": "^2.7.6",
|
|
164
|
-
"minimatch": "^9.0.1",
|
|
165
162
|
"moment-mini": "^2.29.4",
|
|
166
|
-
"npm-
|
|
167
|
-
"npm-run-all": "^4.1.5",
|
|
163
|
+
"npm-run-all2": "^6.0.6",
|
|
168
164
|
"promise-polyfill": "^8.3.0",
|
|
169
165
|
"react": "^18.2.0",
|
|
170
166
|
"react-dom": "^18.2.0",
|
|
171
167
|
"react-i18next": "^12.3.1",
|
|
172
|
-
"react-router-dom": "^6.
|
|
173
|
-
"release-it": "^
|
|
168
|
+
"react-router-dom": "^6.14.2",
|
|
169
|
+
"release-it": "^16.1.3",
|
|
174
170
|
"rimraf": "^5.0.1",
|
|
175
171
|
"rxjs": "^7.8.1",
|
|
176
|
-
"sass": "^1.
|
|
177
|
-
"sass-loader": "^13.3.
|
|
172
|
+
"sass": "^1.64.0",
|
|
173
|
+
"sass-loader": "^13.3.2",
|
|
178
174
|
"serve": "^14.2.0",
|
|
179
175
|
"style-loader": "3.3.3",
|
|
180
|
-
"ts-jest": "^29.1.
|
|
181
|
-
"ts-loader": "^9.4.
|
|
182
|
-
"typescript": "^5.
|
|
183
|
-
"webpack": "^5.
|
|
184
|
-
"webpack-cli": "^5.1.
|
|
185
|
-
"webpack-dev-server": "^4.15.
|
|
176
|
+
"ts-jest": "^29.1.1",
|
|
177
|
+
"ts-loader": "^9.4.4",
|
|
178
|
+
"typescript": "^5.1.6",
|
|
179
|
+
"webpack": "^5.88.2",
|
|
180
|
+
"webpack-cli": "^5.1.4",
|
|
181
|
+
"webpack-dev-server": "^4.15.1"
|
|
186
182
|
},
|
|
187
183
|
"engines": {
|
|
188
184
|
"node": ">=16.15.0",
|
|
189
185
|
"npm": ">=8.5.0"
|
|
190
186
|
},
|
|
191
187
|
"resolutions": {
|
|
192
|
-
"caniuse-lite": "1.0.
|
|
188
|
+
"caniuse-lite": "1.0.30001517"
|
|
193
189
|
}
|
|
194
190
|
}
|
package/dist/cjs/constants.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Locale } from '@slickgrid-universal/common';
|
|
2
|
-
export declare class Constants {
|
|
3
|
-
static readonly locales: Locale;
|
|
4
|
-
static readonly VALIDATION_REQUIRED_FIELD = "Field is required";
|
|
5
|
-
static readonly VALIDATION_EDITOR_VALID_NUMBER = "Please enter a valid number";
|
|
6
|
-
static readonly VALIDATION_EDITOR_VALID_INTEGER = "Please enter a valid integer number";
|
|
7
|
-
static readonly VALIDATION_EDITOR_INTEGER_BETWEEN = "Please enter a valid integer number between {{minValue}} and {{maxValue}}";
|
|
8
|
-
static readonly VALIDATION_EDITOR_INTEGER_MAX = "Please enter a valid integer number that is lower than {{maxValue}}";
|
|
9
|
-
static readonly VALIDATION_EDITOR_INTEGER_MAX_INCLUSIVE = "Please enter a valid integer number that is lower than or equal to {{maxValue}}";
|
|
10
|
-
static readonly VALIDATION_EDITOR_INTEGER_MIN = "Please enter a valid integer number that is greater than {{minValue}}";
|
|
11
|
-
static readonly VALIDATION_EDITOR_INTEGER_MIN_INCLUSIVE = "Please enter a valid integer number that is greater than or equal to {{minValue}}";
|
|
12
|
-
static readonly VALIDATION_EDITOR_NUMBER_BETWEEN = "Please enter a valid number between {{minValue}} and {{maxValue}}";
|
|
13
|
-
static readonly VALIDATION_EDITOR_NUMBER_MAX = "Please enter a valid number that is lower than {{maxValue}}";
|
|
14
|
-
static readonly VALIDATION_EDITOR_NUMBER_MAX_INCLUSIVE = "Please enter a valid number that is lower than or equal to {{maxValue}}";
|
|
15
|
-
static readonly VALIDATION_EDITOR_NUMBER_MIN = "Please enter a valid number that is greater than {{minValue}}";
|
|
16
|
-
static readonly VALIDATION_EDITOR_NUMBER_MIN_INCLUSIVE = "Please enter a valid number that is greater than or equal to {{minValue}}";
|
|
17
|
-
static readonly VALIDATION_EDITOR_DECIMAL_BETWEEN = "Please enter a valid number with a maximum of {{maxDecimal}} decimals";
|
|
18
|
-
static readonly VALIDATION_EDITOR_TEXT_LENGTH_BETWEEN = "Please make sure your text length is between {{minLength}} and {{maxLength}} characters";
|
|
19
|
-
static readonly VALIDATION_EDITOR_TEXT_MAX_LENGTH = "Please make sure your text is less than {{maxLength}} characters";
|
|
20
|
-
static readonly VALIDATION_EDITOR_TEXT_MAX_LENGTH_INCLUSIVE = "Please make sure your text is less than or equal to {{maxLength}} characters";
|
|
21
|
-
static readonly VALIDATION_EDITOR_TEXT_MIN_LENGTH = "Please make sure your text is more than {{minLength}} character(s)";
|
|
22
|
-
static readonly VALIDATION_EDITOR_TEXT_MIN_LENGTH_INCLUSIVE = "Please make sure your text is at least {{minLength}} character(s)";
|
|
23
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SlickGrid as UniversalSlickGrid } from '@slickgrid-universal/common';
|
|
2
|
-
import { GridOption } from './gridOption.interface';
|
|
3
|
-
export interface SlickGrid extends UniversalSlickGrid {
|
|
4
|
-
/** Returns an object containing all of the Grid options set on the grid. See a list of Grid Options here. */
|
|
5
|
-
getOptions(): GridOption;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
|
|
2
|
-
export declare class ContainerService implements UniversalContainerService {
|
|
3
|
-
private readonly container;
|
|
4
|
-
get<T = any>(key: string): T | null;
|
|
5
|
-
registerInstance(key: string, instance: any): void;
|
|
6
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TranslaterService as UniversalTranslateService } from '@slickgrid-universal/common';
|
|
2
|
-
/**
|
|
3
|
-
* This is a Translate Service Wrapper for Slickgrid-Universal monorepo lib to work properly,
|
|
4
|
-
* it must implement Slickgrid-Universal TranslaterService interface to work properly
|
|
5
|
-
*/
|
|
6
|
-
export declare class TranslaterService implements UniversalTranslateService {
|
|
7
|
-
private readonly i18n;
|
|
8
|
-
/**
|
|
9
|
-
* Method to return the current language used by the App
|
|
10
|
-
* @return {string} current language
|
|
11
|
-
*/
|
|
12
|
-
getCurrentLanguage(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Method to set the language to use in the App and Translate Service
|
|
15
|
-
* @param {string} language
|
|
16
|
-
* @return {Promise} output
|
|
17
|
-
*/
|
|
18
|
-
use(newLang: string): Promise<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Method which receives a translation key and returns the translated value assigned to that key
|
|
21
|
-
* @param {string} translation key
|
|
22
|
-
* @return {string} translated value
|
|
23
|
-
*/
|
|
24
|
-
translate(translationKey: string): string;
|
|
25
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EventSubscription } from '@slickgrid-universal/common';
|
|
2
|
-
/**
|
|
3
|
-
* Loop through and dispose of all subscriptions when they are disposable
|
|
4
|
-
* @param subscriptions
|
|
5
|
-
* @return empty array
|
|
6
|
-
*/
|
|
7
|
-
export declare function disposeAllSubscriptions(subscriptions: Array<EventSubscription>): Array<EventSubscription>;
|
|
@@ -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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { EventSubscription } from '@slickgrid-universal/common';
|
|
2
|
-
/**
|
|
3
|
-
* A class that will be used for internal communication of parent-child
|
|
4
|
-
*
|
|
5
|
-
* All methods are abstract for typings purposes only
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class SlickgridEventAggregator {
|
|
8
|
-
abstract publish(event: string, data: any): void;
|
|
9
|
-
abstract subscribe(event: string, callback: (data: any) => void): EventSubscription;
|
|
10
|
-
}
|