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.
Files changed (265) hide show
  1. package/.eslintrc +2 -2
  2. package/.hintrc +11 -0
  3. package/.release-it.json +25 -0
  4. package/CHANGELOG.md +31 -0
  5. package/LICENSE +1 -1
  6. package/README.md +65 -38
  7. package/dist/amd/{custom-elements → components}/slickgrid-react.d.ts +68 -98
  8. package/dist/amd/{custom-elements → components}/slickgrid-react.js +380 -314
  9. package/dist/amd/components/slickgrid-react.js.map +1 -0
  10. package/dist/amd/{custom-elements → components}/slickgridEventAggregator.d.ts +0 -0
  11. package/dist/amd/{custom-elements → components}/slickgridEventAggregator.js +0 -0
  12. package/dist/amd/components/slickgridEventAggregator.js.map +1 -0
  13. package/dist/amd/components/slickgridReactProps.d.ts +288 -0
  14. package/dist/amd/{models/rowDetailView.interface.js → components/slickgridReactProps.js} +1 -1
  15. package/dist/amd/components/slickgridReactProps.js.map +1 -0
  16. package/dist/amd/constants.js +1 -0
  17. package/dist/amd/constants.js.map +1 -1
  18. package/dist/amd/global-grid-options.js +1 -11
  19. package/dist/amd/global-grid-options.js.map +1 -1
  20. package/dist/amd/index.d.ts +4 -7
  21. package/dist/amd/index.js +8 -4
  22. package/dist/amd/index.js.map +1 -1
  23. package/dist/amd/models/gridOption.interface.d.ts +0 -3
  24. package/dist/amd/models/index.d.ts +0 -3
  25. package/dist/amd/models/index.js +6 -5
  26. package/dist/amd/models/index.js.map +1 -1
  27. package/dist/amd/models/reactGridInstance.interface.d.ts +3 -3
  28. package/dist/amd/services/index.js +5 -1
  29. package/dist/amd/services/index.js.map +1 -1
  30. package/dist/amd/services/reactUtil.service.js +1 -1
  31. package/dist/amd/services/reactUtil.service.js.map +1 -1
  32. package/dist/amd/services/translater.service.d.ts +0 -1
  33. package/dist/amd/services/translater.service.js +2 -11
  34. package/dist/amd/services/translater.service.js.map +1 -1
  35. package/dist/amd/services/utilities.js +1 -2
  36. package/dist/amd/services/utilities.js.map +1 -1
  37. package/dist/{esm/custom-elements → cjs/components}/slickgrid-react.d.ts +68 -98
  38. package/dist/{commonjs/custom-elements → cjs/components}/slickgrid-react.js +383 -321
  39. package/dist/cjs/components/slickgrid-react.js.map +1 -0
  40. package/dist/{commonjs/custom-elements → cjs/components}/slickgridEventAggregator.d.ts +0 -0
  41. package/dist/{commonjs/custom-elements → cjs/components}/slickgridEventAggregator.js +0 -0
  42. package/dist/cjs/components/slickgridEventAggregator.js.map +1 -0
  43. package/dist/cjs/components/slickgridReactProps.d.ts +288 -0
  44. package/dist/{commonjs/models/rowDetailView.interface.js → cjs/components/slickgridReactProps.js} +1 -1
  45. package/dist/cjs/components/slickgridReactProps.js.map +1 -0
  46. package/dist/{commonjs → cjs}/constants.d.ts +0 -0
  47. package/dist/{commonjs → cjs}/constants.js +1 -0
  48. package/dist/{commonjs → cjs}/constants.js.map +1 -1
  49. package/dist/{commonjs → cjs}/global-grid-options.d.ts +0 -0
  50. package/dist/{commonjs → cjs}/global-grid-options.js +1 -11
  51. package/dist/{commonjs → cjs}/global-grid-options.js.map +1 -1
  52. package/dist/cjs/index.d.ts +8 -0
  53. package/dist/{commonjs → cjs}/index.js +9 -8
  54. package/dist/cjs/index.js.map +1 -0
  55. package/dist/{native-modules → cjs}/models/gridOption.interface.d.ts +0 -3
  56. package/dist/{commonjs → cjs}/models/gridOption.interface.js +0 -0
  57. package/dist/{commonjs → cjs}/models/gridOption.interface.js.map +0 -0
  58. package/dist/{native-modules → cjs}/models/index.d.ts +0 -3
  59. package/dist/{commonjs → cjs}/models/index.js +5 -4
  60. package/dist/{commonjs → cjs}/models/index.js.map +1 -1
  61. package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.d.ts +0 -0
  62. package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.js +0 -0
  63. package/dist/{commonjs → cjs}/models/reactComponentOutput.interface.js.map +0 -0
  64. package/dist/{native-modules → cjs}/models/reactGridInstance.interface.d.ts +3 -3
  65. package/dist/{commonjs → cjs}/models/reactGridInstance.interface.js +0 -0
  66. package/dist/{commonjs → cjs}/models/reactGridInstance.interface.js.map +0 -0
  67. package/dist/{commonjs → cjs}/models/slickGrid.interface.d.ts +0 -0
  68. package/dist/{commonjs → cjs}/models/slickGrid.interface.js +0 -0
  69. package/dist/{commonjs → cjs}/models/slickGrid.interface.js.map +0 -0
  70. package/dist/{commonjs → cjs}/services/container.service.d.ts +0 -0
  71. package/dist/{commonjs → cjs}/services/container.service.js +0 -0
  72. package/dist/{commonjs → cjs}/services/container.service.js.map +0 -0
  73. package/dist/{commonjs → cjs}/services/index.d.ts +0 -0
  74. package/dist/{commonjs → cjs}/services/index.js +5 -1
  75. package/dist/{commonjs → cjs}/services/index.js.map +1 -1
  76. package/dist/{commonjs → cjs}/services/reactUtil.service.d.ts +0 -0
  77. package/dist/{commonjs → cjs}/services/reactUtil.service.js +1 -1
  78. package/dist/cjs/services/reactUtil.service.js.map +1 -0
  79. package/dist/{commonjs → cjs}/services/singletons.d.ts +0 -0
  80. package/dist/{commonjs → cjs}/services/singletons.js +0 -0
  81. package/dist/{commonjs → cjs}/services/singletons.js.map +0 -0
  82. package/dist/{native-modules → cjs}/services/translater.service.d.ts +0 -1
  83. package/dist/{commonjs → cjs}/services/translater.service.js +1 -11
  84. package/dist/cjs/services/translater.service.js.map +1 -0
  85. package/dist/{commonjs → cjs}/services/utilities.d.ts +0 -0
  86. package/dist/{commonjs → cjs}/services/utilities.js +1 -2
  87. package/dist/cjs/services/utilities.js.map +1 -0
  88. package/dist/{commonjs → cjs}/slickgrid-config.d.ts +0 -0
  89. package/dist/{commonjs → cjs}/slickgrid-config.js +0 -0
  90. package/dist/{commonjs → cjs}/slickgrid-config.js.map +0 -0
  91. package/dist/{commonjs/custom-elements → esm/components}/slickgrid-react.d.ts +68 -98
  92. package/dist/esm/{custom-elements → components}/slickgrid-react.js +360 -323
  93. package/dist/esm/components/slickgrid-react.js.map +1 -0
  94. package/dist/esm/{custom-elements → components}/slickgridEventAggregator.d.ts +0 -0
  95. package/dist/esm/{custom-elements → components}/slickgridEventAggregator.js +0 -0
  96. package/dist/esm/components/slickgridEventAggregator.js.map +1 -0
  97. package/dist/esm/components/slickgridReactProps.d.ts +288 -0
  98. package/dist/esm/components/slickgridReactProps.js +2 -0
  99. package/dist/esm/components/slickgridReactProps.js.map +1 -0
  100. package/dist/esm/constants.js +1 -0
  101. package/dist/esm/constants.js.map +1 -1
  102. package/dist/esm/global-grid-options.js +1 -11
  103. package/dist/esm/global-grid-options.js.map +1 -1
  104. package/dist/esm/index.d.ts +4 -7
  105. package/dist/esm/index.js +3 -6
  106. package/dist/esm/index.js.map +1 -1
  107. package/dist/esm/models/gridOption.interface.d.ts +0 -3
  108. package/dist/esm/models/index.d.ts +0 -3
  109. package/dist/esm/models/index.js +0 -3
  110. package/dist/esm/models/index.js.map +1 -1
  111. package/dist/esm/models/reactGridInstance.interface.d.ts +3 -3
  112. package/dist/esm/services/reactUtil.service.js +1 -1
  113. package/dist/esm/services/reactUtil.service.js.map +1 -1
  114. package/dist/esm/services/translater.service.d.ts +0 -1
  115. package/dist/esm/services/translater.service.js +1 -11
  116. package/dist/esm/services/translater.service.js.map +1 -1
  117. package/dist/esm/services/utilities.js +1 -2
  118. package/dist/esm/services/utilities.js.map +1 -1
  119. package/package.json +103 -126
  120. package/dist/amd/custom-elements/slickgrid-react.js.map +0 -1
  121. package/dist/amd/custom-elements/slickgridEventAggregator.js.map +0 -1
  122. package/dist/amd/extensions/index.d.ts +0 -1
  123. package/dist/amd/extensions/index.js +0 -16
  124. package/dist/amd/extensions/index.js.map +0 -1
  125. package/dist/amd/extensions/rowDetailViewExtension.d.ts +0 -70
  126. package/dist/amd/extensions/rowDetailViewExtension.js +0 -362
  127. package/dist/amd/extensions/rowDetailViewExtension.js.map +0 -1
  128. package/dist/amd/models/rowDetailView.interface.d.ts +0 -24
  129. package/dist/amd/models/rowDetailView.interface.js.map +0 -1
  130. package/dist/amd/models/viewModelBindableData.interface.d.ts +0 -10
  131. package/dist/amd/models/viewModelBindableData.interface.js +0 -5
  132. package/dist/amd/models/viewModelBindableData.interface.js.map +0 -1
  133. package/dist/amd/models/viewModelBindableInputData.interface.d.ts +0 -9
  134. package/dist/amd/models/viewModelBindableInputData.interface.js +0 -5
  135. package/dist/amd/models/viewModelBindableInputData.interface.js.map +0 -1
  136. package/dist/amd/value-converters/asgDateFormat.d.ts +0 -3
  137. package/dist/amd/value-converters/asgDateFormat.js +0 -16
  138. package/dist/amd/value-converters/asgDateFormat.js.map +0 -1
  139. package/dist/amd/value-converters/asgNumber.d.ts +0 -3
  140. package/dist/amd/value-converters/asgNumber.js +0 -13
  141. package/dist/amd/value-converters/asgNumber.js.map +0 -1
  142. package/dist/commonjs/custom-elements/slickgrid-react.js.map +0 -1
  143. package/dist/commonjs/custom-elements/slickgridEventAggregator.js.map +0 -1
  144. package/dist/commonjs/extensions/index.d.ts +0 -1
  145. package/dist/commonjs/extensions/index.js +0 -14
  146. package/dist/commonjs/extensions/index.js.map +0 -1
  147. package/dist/commonjs/extensions/rowDetailViewExtension.d.ts +0 -70
  148. package/dist/commonjs/extensions/rowDetailViewExtension.js +0 -363
  149. package/dist/commonjs/extensions/rowDetailViewExtension.js.map +0 -1
  150. package/dist/commonjs/index.d.ts +0 -11
  151. package/dist/commonjs/index.js.map +0 -1
  152. package/dist/commonjs/models/gridOption.interface.d.ts +0 -9
  153. package/dist/commonjs/models/index.d.ts +0 -7
  154. package/dist/commonjs/models/reactGridInstance.interface.d.ts +0 -36
  155. package/dist/commonjs/models/rowDetailView.interface.d.ts +0 -24
  156. package/dist/commonjs/models/rowDetailView.interface.js.map +0 -1
  157. package/dist/commonjs/models/viewModelBindableData.interface.d.ts +0 -10
  158. package/dist/commonjs/models/viewModelBindableData.interface.js +0 -3
  159. package/dist/commonjs/models/viewModelBindableData.interface.js.map +0 -1
  160. package/dist/commonjs/models/viewModelBindableInputData.interface.d.ts +0 -9
  161. package/dist/commonjs/models/viewModelBindableInputData.interface.js +0 -3
  162. package/dist/commonjs/models/viewModelBindableInputData.interface.js.map +0 -1
  163. package/dist/commonjs/services/reactUtil.service.js.map +0 -1
  164. package/dist/commonjs/services/translater.service.d.ts +0 -26
  165. package/dist/commonjs/services/translater.service.js.map +0 -1
  166. package/dist/commonjs/services/utilities.js.map +0 -1
  167. package/dist/commonjs/value-converters/asgDateFormat.d.ts +0 -3
  168. package/dist/commonjs/value-converters/asgDateFormat.js +0 -14
  169. package/dist/commonjs/value-converters/asgDateFormat.js.map +0 -1
  170. package/dist/commonjs/value-converters/asgNumber.d.ts +0 -3
  171. package/dist/commonjs/value-converters/asgNumber.js +0 -11
  172. package/dist/commonjs/value-converters/asgNumber.js.map +0 -1
  173. package/dist/esm/custom-elements/slickgrid-react.js.map +0 -1
  174. package/dist/esm/custom-elements/slickgridEventAggregator.js.map +0 -1
  175. package/dist/esm/extensions/index.d.ts +0 -1
  176. package/dist/esm/extensions/index.js +0 -2
  177. package/dist/esm/extensions/index.js.map +0 -1
  178. package/dist/esm/extensions/rowDetailViewExtension.d.ts +0 -70
  179. package/dist/esm/extensions/rowDetailViewExtension.js +0 -337
  180. package/dist/esm/extensions/rowDetailViewExtension.js.map +0 -1
  181. package/dist/esm/models/rowDetailView.interface.d.ts +0 -24
  182. package/dist/esm/models/rowDetailView.interface.js +0 -2
  183. package/dist/esm/models/rowDetailView.interface.js.map +0 -1
  184. package/dist/esm/models/viewModelBindableData.interface.d.ts +0 -10
  185. package/dist/esm/models/viewModelBindableData.interface.js +0 -2
  186. package/dist/esm/models/viewModelBindableData.interface.js.map +0 -1
  187. package/dist/esm/models/viewModelBindableInputData.interface.d.ts +0 -9
  188. package/dist/esm/models/viewModelBindableInputData.interface.js +0 -2
  189. package/dist/esm/models/viewModelBindableInputData.interface.js.map +0 -1
  190. package/dist/esm/value-converters/asgDateFormat.d.ts +0 -3
  191. package/dist/esm/value-converters/asgDateFormat.js +0 -7
  192. package/dist/esm/value-converters/asgDateFormat.js.map +0 -1
  193. package/dist/esm/value-converters/asgNumber.d.ts +0 -3
  194. package/dist/esm/value-converters/asgNumber.js +0 -7
  195. package/dist/esm/value-converters/asgNumber.js.map +0 -1
  196. package/dist/i18n/en/aurelia-slickgrid.json +0 -97
  197. package/dist/i18n/fr/aurelia-slickgrid.json +0 -98
  198. package/dist/native-modules/constants.d.ts +0 -23
  199. package/dist/native-modules/constants.js +0 -86
  200. package/dist/native-modules/constants.js.map +0 -1
  201. package/dist/native-modules/custom-elements/slickgrid-react.d.ts +0 -236
  202. package/dist/native-modules/custom-elements/slickgrid-react.js +0 -1257
  203. package/dist/native-modules/custom-elements/slickgrid-react.js.map +0 -1
  204. package/dist/native-modules/custom-elements/slickgridEventAggregator.d.ts +0 -10
  205. package/dist/native-modules/custom-elements/slickgridEventAggregator.js +0 -8
  206. package/dist/native-modules/custom-elements/slickgridEventAggregator.js.map +0 -1
  207. package/dist/native-modules/extensions/index.d.ts +0 -1
  208. package/dist/native-modules/extensions/index.js +0 -2
  209. package/dist/native-modules/extensions/index.js.map +0 -1
  210. package/dist/native-modules/extensions/rowDetailViewExtension.d.ts +0 -70
  211. package/dist/native-modules/extensions/rowDetailViewExtension.js +0 -337
  212. package/dist/native-modules/extensions/rowDetailViewExtension.js.map +0 -1
  213. package/dist/native-modules/global-grid-options.d.ts +0 -5
  214. package/dist/native-modules/global-grid-options.js +0 -270
  215. package/dist/native-modules/global-grid-options.js.map +0 -1
  216. package/dist/native-modules/index.d.ts +0 -11
  217. package/dist/native-modules/index.js +0 -12
  218. package/dist/native-modules/index.js.map +0 -1
  219. package/dist/native-modules/models/gridOption.interface.js +0 -2
  220. package/dist/native-modules/models/gridOption.interface.js.map +0 -1
  221. package/dist/native-modules/models/index.js +0 -8
  222. package/dist/native-modules/models/index.js.map +0 -1
  223. package/dist/native-modules/models/reactComponentOutput.interface.d.ts +0 -6
  224. package/dist/native-modules/models/reactComponentOutput.interface.js +0 -2
  225. package/dist/native-modules/models/reactComponentOutput.interface.js.map +0 -1
  226. package/dist/native-modules/models/reactGridInstance.interface.js +0 -2
  227. package/dist/native-modules/models/reactGridInstance.interface.js.map +0 -1
  228. package/dist/native-modules/models/rowDetailView.interface.d.ts +0 -24
  229. package/dist/native-modules/models/rowDetailView.interface.js +0 -2
  230. package/dist/native-modules/models/rowDetailView.interface.js.map +0 -1
  231. package/dist/native-modules/models/slickGrid.interface.d.ts +0 -6
  232. package/dist/native-modules/models/slickGrid.interface.js +0 -2
  233. package/dist/native-modules/models/slickGrid.interface.js.map +0 -1
  234. package/dist/native-modules/models/viewModelBindableData.interface.d.ts +0 -10
  235. package/dist/native-modules/models/viewModelBindableData.interface.js +0 -2
  236. package/dist/native-modules/models/viewModelBindableData.interface.js.map +0 -1
  237. package/dist/native-modules/models/viewModelBindableInputData.interface.d.ts +0 -9
  238. package/dist/native-modules/models/viewModelBindableInputData.interface.js +0 -2
  239. package/dist/native-modules/models/viewModelBindableInputData.interface.js.map +0 -1
  240. package/dist/native-modules/services/container.service.d.ts +0 -6
  241. package/dist/native-modules/services/container.service.js +0 -12
  242. package/dist/native-modules/services/container.service.js.map +0 -1
  243. package/dist/native-modules/services/index.d.ts +0 -4
  244. package/dist/native-modules/services/index.js +0 -5
  245. package/dist/native-modules/services/index.js.map +0 -1
  246. package/dist/native-modules/services/reactUtil.service.d.ts +0 -5
  247. package/dist/native-modules/services/reactUtil.service.js +0 -21
  248. package/dist/native-modules/services/reactUtil.service.js.map +0 -1
  249. package/dist/native-modules/services/singletons.d.ts +0 -6
  250. package/dist/native-modules/services/singletons.js +0 -7
  251. package/dist/native-modules/services/singletons.js.map +0 -1
  252. package/dist/native-modules/services/translater.service.js +0 -44
  253. package/dist/native-modules/services/translater.service.js.map +0 -1
  254. package/dist/native-modules/services/utilities.d.ts +0 -7
  255. package/dist/native-modules/services/utilities.js +0 -18
  256. package/dist/native-modules/services/utilities.js.map +0 -1
  257. package/dist/native-modules/slickgrid-config.d.ts +0 -5
  258. package/dist/native-modules/slickgrid-config.js +0 -7
  259. package/dist/native-modules/slickgrid-config.js.map +0 -1
  260. package/dist/native-modules/value-converters/asgDateFormat.d.ts +0 -3
  261. package/dist/native-modules/value-converters/asgDateFormat.js +0 -7
  262. package/dist/native-modules/value-converters/asgDateFormat.js.map +0 -1
  263. package/dist/native-modules/value-converters/asgNumber.d.ts +0 -3
  264. package/dist/native-modules/value-converters/asgNumber.js +0 -7
  265. 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": "error",
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": "error",
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
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": [
3
+ "development"
4
+ ],
5
+ "hints": {
6
+ "no-inline-styles": "off",
7
+ "disown-opener": "off",
8
+ "axe/forms": "off",
9
+ "button-type": "off"
10
+ }
11
+ }
@@ -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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2021, Ghislain B. - slickgrid-react
1
+ Copyright (c) 2022-present, Slickgrid-React - Ghislain B.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -1,70 +1,97 @@
1
- # Getting Started with Create React App
1
+ # Slickgrid-React
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
5
+ [![npm](https://img.shields.io/npm/v/slickgrid-react.svg?logo=npm&logoColor=fff&label=npm)](https://www.npmjs.com/package/slickgrid-react)
4
6
 
5
- ## Available Scripts
7
+ [![Actions Status](https://github.com/ghiscoding/slickgrid-react/workflows/CI%20Build/badge.svg)](https://github.com/ghiscoding/slickgrid-react/actions)
8
+ [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
9
+ <!-- [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
10
+ [![codecov](https://codecov.io/gh/ghiscoding/slickgrid-react/branch/master/graph/badge.svg)](https://codecov.io/gh/ghiscoding/slickgrid-react) -->
6
11
 
7
- In the project directory, you can run:
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
- ### `npm start`
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
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
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
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
21
+ ### License
22
+ [MIT License](LICENSE)
16
23
 
17
- ### `npm test`
24
+ ### NPM Package
25
+ [slickgrid-react on NPM](https://www.npmjs.com/package/slickgrid-react)
18
26
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
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
- ### `npm run build`
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
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
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
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
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
- ### `npm run eject`
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
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
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
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
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
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
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
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
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
- ## Learn More
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
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
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
- To learn React, check out the [React documentation](https://reactjs.org/).
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
- This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
63
+ ## Screenshots
51
64
 
52
- ### Analyzing the Bundle Size
65
+ Screenshots from the demo app with the `Bootstrap` theme.
53
66
 
54
- This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
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
- ### Making a Progressive Web App
69
+ ### Slickgrid example with Formatters (last column shown is a custom Formatter)
57
70
 
58
- This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
71
+ #### _You can also see the Grid Menu opened (aka hambuger menu)_
59
72
 
60
- ### Advanced Configuration
73
+ ![Default Slickgrid Example](/screenshots/formatters.png)
61
74
 
62
- This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
75
+ ### Filters and Multi-Column Sort
63
76
 
64
- ### Deployment
77
+ ![Filter and Sort](/screenshots/filter_and_sort.png)
65
78
 
66
- This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
79
+ ### Inline Editing
67
80
 
68
- ### `npm run build` fails to minify
81
+ ![Editors](/screenshots/editors.png)
69
82
 
70
- This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
83
+ ### Pinned (aka frozen) Columns/Rows
84
+
85
+ ![Pinned Columns/Rows](/screenshots/frozen.png)
86
+
87
+ ### Draggable Grouping & Aggregators
88
+
89
+ ![Draggable Grouping](/screenshots/draggable-grouping.png)
90
+
91
+ ### Slickgrid Example with Server Side (Filter/Sort/Pagination)
92
+ #### Comes with OData & GraphQL support (you can implement custom ones too)
93
+
94
+ ![Slickgrid Server Side](/screenshots/pagination.png)
95
+
96
+ ### Composite Editor Modal Windows
97
+ ![Composite Editor Modal](/screenshots/composite-editor.png)
@@ -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 { BackendServiceApi, Column, EventSubscription, ExtensionList, ExternalResource, Locale, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService, ExtensionUtility } from '@slickgrid-universal/common';
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, ContainerService, TranslaterService } from '../services/index';
12
+ import { ReactUtilService, TranslaterService } from '../services/index';
15
13
  import { Subscription } from 'rxjs';
16
- import { SlickgridEventAggregator } from '../custom-elements/slickgridEventAggregator';
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 ReactSlickgridCustomElement extends React.Component<Props, State> {
53
- readonly props: Props;
54
- private _mounted;
55
- private setStateValue;
56
- private _columnDefinitions;
57
- private _currentDatasetLength;
58
- private _dataset;
59
- private _eventHandler;
60
- private _eventPubSubService;
61
- private _hideHeaderRowAfterPageLoad;
62
- private _isGridInitialized;
63
- private _isDatasetInitialized;
64
- private _isDatasetHierarchicalInitialized;
65
- private _isPaginationInitialized;
66
- private _isLocalGrid;
67
- private _paginationOptions;
68
- private _registeredResources;
69
- private get _gridOptions();
70
- private set _gridOptions(value);
71
- groupItemMetadataProvider: any;
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
- private get showPagination();
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
- private get paginationService();
97
- private set paginationService(value);
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
- dataview: SlickDataView;
72
+ dataView: SlickDataView;
104
73
  grid: SlickGrid;
105
74
  totalItems: number;
106
- extensions: ExtensionList<any, any>;
75
+ extensions: ExtensionList<any>;
107
76
  instances: ReactGridInstance | null;
108
- private elm;
109
77
  static defaultProps: {
110
78
  reactUtilService: ReactUtilService;
111
- globalEa: EventPubSubService;
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
- constructor(props: Props);
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: Props): void;
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
- private copyColumnWidthsReference;
178
- private displayEmptyDataWarning;
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
- private handleOnItemCountChanged;
150
+ protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
181
151
  /** Initialize the Pagination Service once */
182
- private initializePaginationService;
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
- private loadEditorCollectionAsync;
161
+ protected loadEditorCollectionAsync(column: Column): void;
185
162
  /** Load any possible Columns Grid Presets */
186
- private loadColumnPresetsWhenDatasetInitialized;
163
+ protected loadColumnPresetsWhenDatasetInitialized(): void;
187
164
  /** Load any possible Filters Grid Presets */
188
- private loadFilterPresetsWhenDatasetInitialized;
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
- private loadLocalGridPagination;
171
+ protected loadLocalGridPagination(dataset?: any[]): void;
195
172
  /** Load any Row Selections into the DataView that were presets by the user */
196
- private loadRowSelectionPresetWhenExists;
197
- private mergeGridOptions;
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
- private preRegisterResources;
200
- private registerResources;
176
+ protected preRegisterResources(): void;
177
+ protected registerResources(): void;
201
178
  /** Register the RxJS Resource in all necessary services which uses */
202
- private registerRxJsResource;
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
- private sortTreeDataset;
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
- private swapInternalEditorToSlickGridFactoryEditor;
193
+ protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): any[];
224
194
  /** translate all columns (including hidden columns) */
225
- private translateColumnHeaderTitleKeys;
195
+ protected translateColumnHeaderTitleKeys(): void;
226
196
  /** translate all column groups (including hidden columns) */
227
- private translateColumnGroupKeys;
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
- private updateEditorCollection;
203
+ protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
234
204
  render(): JSX.Element;
235
205
  }
236
206
  export {};