@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.
- package/all.js +2 -2
- package/all.js.map +1 -1
- package/custom-elements.json +18 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/core/grid.d.ts +23 -0
- package/lib/core/internal/style-injector.d.ts +0 -8
- package/lib/core/types.d.ts +32 -0
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/editing/index.js.map +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/index.js +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/filtering/types.d.ts +0 -28
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts +53 -2
- package/lib/plugins/grouping-rows/index.js +2 -2
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/grouping-rows/types.d.ts +10 -8
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts +0 -1
- package/lib/plugins/master-detail/index.js +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/master-detail/types.d.ts +0 -2
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/print/index.js.map +1 -1
- package/lib/plugins/reorder-columns/index.js.map +1 -1
- package/lib/plugins/reorder-rows/index.js.map +1 -1
- package/lib/plugins/responsive/index.js +1 -1
- package/lib/plugins/responsive/index.js.map +1 -1
- package/lib/plugins/responsive/types.d.ts +11 -2
- package/lib/plugins/row-drag-drop/index.js.map +1 -1
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/datasource-types.d.ts +8 -0
- package/lib/plugins/server-side/index.js +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/server-side/types.d.ts +9 -10
- package/lib/plugins/sticky-rows/index.js.map +1 -1
- package/lib/plugins/tooltip/index.js +1 -1
- package/lib/plugins/tooltip/index.js.map +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/lib/plugins/visibility/types.d.ts +5 -10
- package/lib/plugins/visibility/visibility.d.ts +5 -3
- package/package.json +1 -1
- package/themes/dg-theme-bootstrap.css +2 -2
- package/themes/dg-theme-contrast.css +1 -1
- package/themes/dg-theme-large.css +1 -1
- package/themes/dg-theme-material.css +2 -2
- package/themes/dg-theme-standard.css +1 -1
- package/themes/dg-theme-vibrant.css +1 -1
- package/umd/grid.all.umd.js +1 -1
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +1 -1
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -1
- package/umd/plugins/filtering.umd.js.map +1 -1
- package/umd/plugins/grouping-rows.umd.js +1 -1
- package/umd/plugins/grouping-rows.umd.js.map +1 -1
- package/umd/plugins/master-detail.umd.js +1 -1
- package/umd/plugins/master-detail.umd.js.map +1 -1
- package/umd/plugins/responsive.umd.js +1 -1
- package/umd/plugins/responsive.umd.js.map +1 -1
- package/umd/plugins/server-side.umd.js +1 -1
- package/umd/plugins/server-side.umd.js.map +1 -1
- package/umd/plugins/tooltip.umd.js +1 -1
- package/umd/plugins/tooltip.umd.js.map +1 -1
- package/umd/plugins/visibility.umd.js +1 -1
- 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
|
|
23
|
-
*
|
|
24
|
-
*
|
|
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
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
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
|
-
* `
|
|
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)
|