@toolbox-web/grid 2.13.0 → 2.14.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 (75) hide show
  1. package/all.js +2 -2
  2. package/all.js.map +1 -1
  3. package/custom-elements.json +18 -0
  4. package/index.js +1 -1
  5. package/index.js.map +1 -1
  6. package/lib/core/grid.d.ts +23 -0
  7. package/lib/core/internal/style-injector.d.ts +0 -8
  8. package/lib/core/types.d.ts +32 -0
  9. package/lib/plugins/clipboard/index.js.map +1 -1
  10. package/lib/plugins/column-virtualization/index.js.map +1 -1
  11. package/lib/plugins/context-menu/index.js.map +1 -1
  12. package/lib/plugins/editing/index.js.map +1 -1
  13. package/lib/plugins/export/index.js.map +1 -1
  14. package/lib/plugins/filtering/index.js +1 -1
  15. package/lib/plugins/filtering/index.js.map +1 -1
  16. package/lib/plugins/filtering/types.d.ts +0 -28
  17. package/lib/plugins/grouping-columns/index.js.map +1 -1
  18. package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts +53 -2
  19. package/lib/plugins/grouping-rows/index.js +2 -2
  20. package/lib/plugins/grouping-rows/index.js.map +1 -1
  21. package/lib/plugins/grouping-rows/types.d.ts +10 -8
  22. package/lib/plugins/master-detail/MasterDetailPlugin.d.ts +0 -1
  23. package/lib/plugins/master-detail/index.js +1 -1
  24. package/lib/plugins/master-detail/index.js.map +1 -1
  25. package/lib/plugins/master-detail/types.d.ts +0 -2
  26. package/lib/plugins/multi-sort/index.js.map +1 -1
  27. package/lib/plugins/pinned-columns/index.js.map +1 -1
  28. package/lib/plugins/pinned-rows/index.js.map +1 -1
  29. package/lib/plugins/pivot/index.js.map +1 -1
  30. package/lib/plugins/print/index.js.map +1 -1
  31. package/lib/plugins/reorder-columns/index.js.map +1 -1
  32. package/lib/plugins/reorder-rows/index.js.map +1 -1
  33. package/lib/plugins/responsive/index.js +1 -1
  34. package/lib/plugins/responsive/index.js.map +1 -1
  35. package/lib/plugins/responsive/types.d.ts +11 -2
  36. package/lib/plugins/row-drag-drop/index.js.map +1 -1
  37. package/lib/plugins/selection/index.js.map +1 -1
  38. package/lib/plugins/server-side/datasource-types.d.ts +8 -0
  39. package/lib/plugins/server-side/index.js +1 -1
  40. package/lib/plugins/server-side/index.js.map +1 -1
  41. package/lib/plugins/server-side/types.d.ts +9 -10
  42. package/lib/plugins/sticky-rows/index.js.map +1 -1
  43. package/lib/plugins/tooltip/index.js +1 -1
  44. package/lib/plugins/tooltip/index.js.map +1 -1
  45. package/lib/plugins/tree/index.js.map +1 -1
  46. package/lib/plugins/undo-redo/index.js.map +1 -1
  47. package/lib/plugins/visibility/index.js +1 -1
  48. package/lib/plugins/visibility/index.js.map +1 -1
  49. package/lib/plugins/visibility/types.d.ts +5 -10
  50. package/lib/plugins/visibility/visibility.d.ts +5 -3
  51. package/package.json +1 -1
  52. package/themes/dg-theme-bootstrap.css +2 -2
  53. package/themes/dg-theme-contrast.css +1 -1
  54. package/themes/dg-theme-large.css +1 -1
  55. package/themes/dg-theme-material.css +2 -2
  56. package/themes/dg-theme-standard.css +1 -1
  57. package/themes/dg-theme-vibrant.css +1 -1
  58. package/umd/grid.all.umd.js +1 -1
  59. package/umd/grid.all.umd.js.map +1 -1
  60. package/umd/grid.umd.js +1 -1
  61. package/umd/grid.umd.js.map +1 -1
  62. package/umd/plugins/filtering.umd.js +1 -1
  63. package/umd/plugins/filtering.umd.js.map +1 -1
  64. package/umd/plugins/grouping-rows.umd.js +1 -1
  65. package/umd/plugins/grouping-rows.umd.js.map +1 -1
  66. package/umd/plugins/master-detail.umd.js +1 -1
  67. package/umd/plugins/master-detail.umd.js.map +1 -1
  68. package/umd/plugins/responsive.umd.js +1 -1
  69. package/umd/plugins/responsive.umd.js.map +1 -1
  70. package/umd/plugins/server-side.umd.js +1 -1
  71. package/umd/plugins/server-side.umd.js.map +1 -1
  72. package/umd/plugins/tooltip.umd.js +1 -1
  73. package/umd/plugins/tooltip.umd.js.map +1 -1
  74. package/umd/plugins/visibility.umd.js +1 -1
  75. package/umd/plugins/visibility.umd.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ServerSideDataSource } from './datasource-types';
2
- export type { DataRequestModel, DataSourceChildrenDetail, DataSourceDataDetail, DataSourceErrorDetail, DataSourceLoadingDetail, FetchChildrenQuery, GetChildRowsParams, GetChildRowsResult, GetRowsParams, GetRowsResult, ServerSideDataSource, Subscribable, ViewportMappingQuery, ViewportMappingResponse } from './datasource-types';
2
+ export type { DataRequestModel, DataSourceChildrenDetail, DataSourceDataDetail, DataSourceErrorDetail, DataSourceLoadingDetail, FetchChildrenQuery, GetChildRowsParams, GetChildRowsResult, GetRowsParams, GetRowsResult, ServerSideDataSource, Subscribable, ViewportMappingQuery, ViewportMappingResponse, } from './datasource-types';
3
3
  /**
4
4
  * Configuration for the server-side data plugin.
5
5
  *
@@ -11,7 +11,6 @@ export type { DataRequestModel, DataSourceChildrenDetail, DataSourceDataDetail,
11
11
  * ```typescript
12
12
  * new ServerSidePlugin({
13
13
  * pageSize: 100,
14
- * cacheBlockSize: 200,
15
14
  * maxConcurrentRequests: 2,
16
15
  * })
17
16
  * ```
@@ -19,17 +18,17 @@ export type { DataRequestModel, DataSourceChildrenDetail, DataSourceDataDetail,
19
18
  */
20
19
  export interface ServerSideConfig {
21
20
  /**
22
- * Number of nodes to request per fetch.
23
- * This determines the `endNode - startNode` range passed to `getRows()`.
24
- * Smaller values mean faster initial loads but more frequent requests while scrolling.
21
+ * Number of nodes requested per `getRows()` call. The same value is surfaced
22
+ * on `params.pageSize` inside the callback, so backends that expect an
23
+ * explicit page-size query parameter can forward it directly. Larger values
24
+ * reduce request count at the cost of longer per-request latency.
25
25
  * @default 100
26
26
  */
27
27
  pageSize?: number;
28
28
  /**
29
- * Number of nodes kept in each cache block.
30
- * When a block is evicted (e.g. scrolled far away), re-scrolling back triggers a new fetch.
31
- * Should be ≥ `pageSize`; larger values reduce re-fetches at the cost of memory.
32
- * @default 200
29
+ * @deprecated Alias for {@link ServerSideConfig.pageSize}. Use `pageSize`
30
+ * instead. If both are set, `pageSize` wins. Will be removed in the next
31
+ * major release.
33
32
  */
34
33
  cacheBlockSize?: number;
35
34
  /**
@@ -53,7 +52,7 @@ export interface ServerSideConfig {
53
52
  * server with requests.
54
53
  *
55
54
  * A reasonable starting point is `pageSize / 2`. Values larger than
56
- * `cacheBlockSize` will eagerly request 2+ blocks ahead, which can hurt
55
+ * `pageSize` will eagerly request 2+ blocks ahead, which can hurt
57
56
  * perceived performance with slow backends.
58
57
  *
59
58
  * @default 0 (fetch only when the visible window enters an unloaded block)