@genesislcap/grid-pro 14.393.3 → 14.393.4

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 (44) hide show
  1. package/dist/custom-elements.json +21 -5
  2. package/dist/dts/datasource/base.types.d.ts +1 -1
  3. package/dist/dts/datasource/index.d.ts +3 -2
  4. package/dist/dts/datasource/index.d.ts.map +1 -1
  5. package/dist/dts/grid-pro-genesis-datasource/index.d.ts +2 -1
  6. package/dist/dts/grid-pro-genesis-datasource/index.d.ts.map +1 -1
  7. package/dist/esm/datasource/index.js +3 -2
  8. package/dist/esm/grid-pro-genesis-datasource/index.js +2 -1
  9. package/dist/grid-pro.api.json +1079 -76
  10. package/dist/grid-pro.d.ts +175 -1
  11. package/docs/api/grid-pro.basedatasourceerrorevent.md +15 -0
  12. package/docs/api/grid-pro.basedatasourceerroreventdetail.md +16 -0
  13. package/docs/api/grid-pro.basedatasourceeventnames.md +16 -0
  14. package/docs/api/grid-pro.datachangedeventdetail.changes.md +16 -0
  15. package/docs/api/grid-pro.datachangedeventdetail.md +56 -0
  16. package/docs/api/grid-pro.dataclearedeventdetail.includeschema.md +11 -0
  17. package/docs/api/grid-pro.dataclearedeventdetail.md +58 -0
  18. package/docs/api/grid-pro.dataloadedeventdetail.data.md +11 -0
  19. package/docs/api/grid-pro.dataloadedeventdetail.isinitialload.md +11 -0
  20. package/docs/api/grid-pro.dataloadedeventdetail.md +75 -0
  21. package/docs/api/grid-pro.datasourceerroreventdetail.md +73 -0
  22. package/docs/api/grid-pro.datasourceerroreventdetail.message.md +11 -0
  23. package/docs/api/grid-pro.datasourceerroreventdetail.type.md +11 -0
  24. package/docs/api/grid-pro.datasourceevent.md +57 -0
  25. package/docs/api/grid-pro.datasourceevent.type.md +11 -0
  26. package/docs/api/grid-pro.datasourceeventdetail.md +15 -0
  27. package/docs/api/grid-pro.datasourceeventnames.md +34 -0
  28. package/docs/api/grid-pro.genesisgriddatasourceelement.handleerrors.md +1 -1
  29. package/docs/api/grid-pro.initializeeventdetail.keepcoldefsonclearrowdata.md +11 -0
  30. package/docs/api/grid-pro.initializeeventdetail.md +73 -0
  31. package/docs/api/grid-pro.initializeeventdetail.options.md +15 -0
  32. package/docs/api/grid-pro.md +165 -0
  33. package/docs/api/grid-pro.moredataavailableeventdetail.hasmoredata.md +11 -0
  34. package/docs/api/grid-pro.moredataavailableeventdetail.md +73 -0
  35. package/docs/api/grid-pro.moredataavailableeventdetail.sourceref.md +11 -0
  36. package/docs/api/grid-pro.schemaupdatedeventdetail.md +75 -0
  37. package/docs/api/grid-pro.schemaupdatedeventdetail.metadata.md +11 -0
  38. package/docs/api/grid-pro.schemaupdatedeventdetail.schema.md +11 -0
  39. package/docs/api/grid-pro.serversidedatasourceoptions.md +45 -0
  40. package/docs/api/grid-pro.sizechangedeventdetail.md +73 -0
  41. package/docs/api/grid-pro.sizechangedeventdetail.oldvalue.md +11 -0
  42. package/docs/api/grid-pro.sizechangedeventdetail.value.md +11 -0
  43. package/docs/api-report.md.api.md +149 -1
  44. package/package.json +13 -13
@@ -0,0 +1,73 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [SizeChangedEventDetail](./grid-pro.sizechangedeventdetail.md)
4
+
5
+ ## SizeChangedEventDetail interface
6
+
7
+ Event detail for size changes
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface SizeChangedEventDetail
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Property
20
+
21
+
22
+ </th><th>
23
+
24
+ Modifiers
25
+
26
+
27
+ </th><th>
28
+
29
+ Type
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [oldValue](./grid-pro.sizechangedeventdetail.oldvalue.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ number
49
+
50
+
51
+ </td><td>
52
+
53
+
54
+ </td></tr>
55
+ <tr><td>
56
+
57
+ [value](./grid-pro.sizechangedeventdetail.value.md)
58
+
59
+
60
+ </td><td>
61
+
62
+
63
+ </td><td>
64
+
65
+ number
66
+
67
+
68
+ </td><td>
69
+
70
+
71
+ </td></tr>
72
+ </tbody></table>
73
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [SizeChangedEventDetail](./grid-pro.sizechangedeventdetail.md) &gt; [oldValue](./grid-pro.sizechangedeventdetail.oldvalue.md)
4
+
5
+ ## SizeChangedEventDetail.oldValue property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ oldValue: number;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [SizeChangedEventDetail](./grid-pro.sizechangedeventdetail.md) &gt; [value](./grid-pro.sizechangedeventdetail.value.md)
4
+
5
+ ## SizeChangedEventDetail.value property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ value: number;
11
+ ```
@@ -46,6 +46,7 @@ import { CountdownUnit } from '@genesislcap/foundation-ui';
46
46
  import { CSSDesignToken } from '@microsoft/fast-foundation';
47
47
  import { CSSVarTokenMap } from '@genesislcap/foundation-ui';
48
48
  import { CsvExportParams } from '@ag-grid-community/core';
49
+ import { DataserverParams } from '@genesislcap/foundation-comms';
49
50
  import { Datasource } from '@genesislcap/foundation-comms';
50
51
  import { DatasourceOptions } from '@genesislcap/foundation-comms';
51
52
  import { DatasourceStatus } from '@genesislcap/foundation-comms';
@@ -61,6 +62,7 @@ import { EditableCallback as EditableCallback_2 } from 'ag-grid-community';
61
62
  import { ElementStyles } from '@microsoft/fast-element';
62
63
  import { FieldMetadata } from '@genesislcap/foundation-comms';
63
64
  import { FieldTypeEnum } from '@genesislcap/foundation-comms';
65
+ import { FilteredDataServerResult } from '@genesislcap/foundation-comms';
64
66
  import { FoundationElement } from '@microsoft/fast-foundation';
65
67
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
66
68
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
@@ -108,14 +110,18 @@ import { KVStorage } from '@genesislcap/foundation-comms';
108
110
  import { LayoutCacheContainer } from '@genesislcap/foundation-utils';
109
111
  import { Logger } from '@genesislcap/foundation-logger';
110
112
  import { MenuItemDef } from 'ag-grid-community';
113
+ import { MetadataDetail } from '@genesislcap/foundation-comms';
111
114
  import { NewValueParams } from '@ag-grid-community/core';
112
115
  import { NewValueParams as NewValueParams_2 } from 'ag-grid-community';
113
116
  import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
117
+ import { RequestParams } from '@genesislcap/foundation-comms';
118
+ import { RequestServerResult } from '@genesislcap/foundation-comms';
114
119
  import { RowDragCallback } from '@ag-grid-community/core';
115
120
  import { RowDragCallback as RowDragCallback_2 } from 'ag-grid-community';
116
121
  import { RowSpanParams } from '@ag-grid-community/core';
117
122
  import { RowSpanParams as RowSpanParams_2 } from 'ag-grid-community';
118
123
  import { Session } from '@genesislcap/foundation-comms';
124
+ import { SocketObservable } from '@genesislcap/foundation-comms';
119
125
  import { SortComparatorFn } from 'ag-grid-community/dist/types/src/entities/colDef';
120
126
  import { SortDef } from 'ag-grid-community';
121
127
  import { SortDirection } from 'ag-grid-community';
@@ -426,6 +432,21 @@ export const agThemeTokenMapCSS: (themeName: string, tokenMap: CSSVarTokenMap<an
426
432
  // @internal @deprecated
427
433
  export const backgroundSwatch: SwatchRGB;
428
434
 
435
+ // @public
436
+ export type BaseDatasourceErrorEvent = CustomEvent<BaseDatasourceErrorEventDetail>;
437
+
438
+ // @public
439
+ export type BaseDatasourceErrorEventDetail = {
440
+ message: string;
441
+ type: 'connection' | 'resource-validation' | 'resource-type' | 'metadata' | 'stream' | 'criteria' | 'unknown';
442
+ };
443
+
444
+ // @public
445
+ export const baseDatasourceEventNames: {
446
+ readonly error: "base-datasource-error";
447
+ readonly connected: "base-datasource-connected";
448
+ };
449
+
429
450
  // @public
430
451
  export class BooleanRenderer extends FoundationElement implements ICellRendererComp {
431
452
  // (undocumented)
@@ -488,6 +509,72 @@ export const criteriaJoin = " && ";
488
509
  // @public
489
510
  export const csvExportParams: CsvExportParams;
490
511
 
512
+ // @public
513
+ export interface DataChangedEventDetail {
514
+ // (undocumented)
515
+ changes: {
516
+ add?: any[];
517
+ remove?: any[];
518
+ update?: any[];
519
+ insertIndex?: number;
520
+ };
521
+ }
522
+
523
+ // @public
524
+ export interface DataClearedEventDetail {
525
+ // (undocumented)
526
+ includeSchema?: boolean;
527
+ }
528
+
529
+ // @public
530
+ export interface DataLoadedEventDetail {
531
+ // (undocumented)
532
+ data: any[];
533
+ // (undocumented)
534
+ isInitialLoad?: boolean;
535
+ }
536
+
537
+ // @public
538
+ export interface DatasourceErrorEventDetail {
539
+ // (undocumented)
540
+ message: string;
541
+ // (undocumented)
542
+ type: 'stream' | 'criteria' | 'connection' | 'unknown';
543
+ }
544
+
545
+ // @public
546
+ export interface DatasourceEvent<T = DatasourceEventDetail> extends CustomEvent<T> {
547
+ // (undocumented)
548
+ type: keyof typeof datasourceEventNames;
549
+ }
550
+
551
+ // @public
552
+ export type DatasourceEventDetail = InitializeEventDetail | DataLoadedEventDetail | DataChangedEventDetail | SchemaUpdatedEventDetail | MoreDataAvailableEventDetail | SizeChangedEventDetail | DataClearedEventDetail | DatasourceErrorEventDetail;
553
+
554
+ // @public
555
+ export const datasourceEventNames: {
556
+ readonly initialize: "datasource-initialize";
557
+ readonly ready: "datasource-ready";
558
+ readonly dataLoaded: "datasource-data-loaded";
559
+ readonly dataChanged: "datasource-data-changed";
560
+ readonly dataCleared: "datasource-data-cleared";
561
+ readonly schemaUpdated: "datasource-schema-updated";
562
+ readonly loadingStarted: "datasource-loading-started";
563
+ readonly loadingFinished: "datasource-loading-finished";
564
+ readonly noDataAvailable: "datasource-no-data-available";
565
+ readonly moreDataAvailable: "datasource-more-data-available";
566
+ readonly filtersRestored: "datasource-filters-restored";
567
+ readonly error: "datasource-error";
568
+ readonly destroy: "datasource-destroy";
569
+ readonly sizeChanged: "datasource-size-changed";
570
+ readonly cacheFilterConfig: "cache-filter-config";
571
+ readonly refreshServerSide: "refresh-server-side";
572
+ readonly setServerSideDatasource: "set-server-side-datasource";
573
+ readonly addGridCssClass: "add-grid-css-class";
574
+ readonly removeGridCssClass: "remove-grid-css-class";
575
+ readonly applyServerSideTransaction: "apply-server-side-transaction";
576
+ };
577
+
491
578
  // @public
492
579
  export type DatasourceType = 'client' | 'server';
493
580
 
@@ -912,7 +999,6 @@ export class GenesisGridDatasourceElement extends GenesisGridDatasourceElement_b
912
999
  deferredGridOptions: GridOptions;
913
1000
  disablePolling: boolean;
914
1001
  fields: string;
915
- // Warning: (ae-forgotten-export) The symbol "BaseDatasourceErrorEventDetail" needs to be exported by the entry point index.d.ts
916
1002
  handleErrors(errors: string | any[], type?: BaseDatasourceErrorEventDetail['type']): void;
917
1003
  // @internal
918
1004
  protected get hasDefaultRowId(): boolean;
@@ -1755,6 +1841,18 @@ export type GrigProGenesisDatasourceSizeChangedEventDetail = {
1755
1841
  oldValue: number;
1756
1842
  };
1757
1843
 
1844
+ // @public
1845
+ export interface InitializeEventDetail {
1846
+ // (undocumented)
1847
+ keepColDefsOnClearRowData: boolean;
1848
+ // (undocumented)
1849
+ options: {
1850
+ getRowId?: (params: any) => string;
1851
+ columnDefs?: ColDef[];
1852
+ [key: string]: any;
1853
+ };
1854
+ }
1855
+
1758
1856
  // @public
1759
1857
  export class KVStorageStatePersistence implements StatePersistence {
1760
1858
  // (undocumented)
@@ -1844,6 +1942,14 @@ export const logger: Logger;
1844
1942
  // @public
1845
1943
  export function mergeAndDedupColDefWithColumnState(colDefs: ColDef[], columnStates: ColumnState[]): ColDef[];
1846
1944
 
1945
+ // @public
1946
+ export interface MoreDataAvailableEventDetail {
1947
+ // (undocumented)
1948
+ hasMoreData: boolean;
1949
+ // (undocumented)
1950
+ sourceRef: string;
1951
+ }
1952
+
1847
1953
  // @public
1848
1954
  export type MoreRowsDetail = {
1849
1955
  moreRows: boolean;
@@ -1988,6 +2094,14 @@ export class RowCountStatusBarComponent implements IStatusPanelComp {
1988
2094
  init(params: IStatusPanelParams): void;
1989
2095
  }
1990
2096
 
2097
+ // @public
2098
+ export interface SchemaUpdatedEventDetail {
2099
+ // (undocumented)
2100
+ metadata?: FieldMetadata[];
2101
+ // (undocumented)
2102
+ schema: ColDef[];
2103
+ }
2104
+
1991
2105
  // @public
1992
2106
  export interface SelectCellRendererParams extends ICellRendererParams {
1993
2107
  // (undocumented)
@@ -2084,6 +2198,40 @@ export interface SelectRendererOptions {
2084
2198
  tooltip?: string;
2085
2199
  }
2086
2200
 
2201
+ // @alpha
2202
+ export type ServerSideDatasourceOptions = {
2203
+ createDataserverStreamFunc?: (existingParams?: any) => Promise<SocketObservable<FilteredDataServerResult>>;
2204
+ createReqRepRequestFunc?: (existingParams?: any) => Promise<RequestServerResult>;
2205
+ createReqRepStreamFunc?: (params?: any) => Promise<{
2206
+ stream: SocketObservable<RequestServerResult>;
2207
+ datasource: Datasource;
2208
+ }>;
2209
+ onPollingUpdateFunc?: (result: RequestServerResult) => void;
2210
+ resetPreviousPollResultFunc?: () => void;
2211
+ reloadResourceDataFunc?: (params: any) => Promise<void>;
2212
+ errorHandlerFunc?: (message: string, type: string) => void;
2213
+ resourceName: string;
2214
+ resourceParams?: DataserverParams | RequestParams;
2215
+ resourceIndexes?: Map<string, [string]>;
2216
+ resourceColDefs?: MetadataDetail[];
2217
+ maxRows?: number;
2218
+ maxView?: number;
2219
+ rowId?: string;
2220
+ pagination?: boolean;
2221
+ zeroBasedViewNumber?: boolean;
2222
+ pagingMode?: PagingMode | undefined;
2223
+ criteriaOnlyRequest?: boolean;
2224
+ usePolling?: boolean;
2225
+ };
2226
+
2227
+ // @public
2228
+ export interface SizeChangedEventDetail {
2229
+ // (undocumented)
2230
+ oldValue: number;
2231
+ // (undocumented)
2232
+ value: number;
2233
+ }
2234
+
2087
2235
  // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "StatePersistence" because one of its declarations is marked as @internal
2088
2236
  //
2089
2237
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.393.3",
4
+ "version": "14.393.4",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,19 +40,19 @@
40
40
  }
41
41
  },
42
42
  "devDependencies": {
43
- "@genesislcap/foundation-testing": "14.393.3",
44
- "@genesislcap/genx": "14.393.3",
45
- "@genesislcap/rollup-builder": "14.393.3",
46
- "@genesislcap/ts-builder": "14.393.3",
47
- "@genesislcap/uvu-playwright-builder": "14.393.3",
48
- "@genesislcap/vite-builder": "14.393.3",
49
- "@genesislcap/webpack-builder": "14.393.3"
43
+ "@genesislcap/foundation-testing": "14.393.4",
44
+ "@genesislcap/genx": "14.393.4",
45
+ "@genesislcap/rollup-builder": "14.393.4",
46
+ "@genesislcap/ts-builder": "14.393.4",
47
+ "@genesislcap/uvu-playwright-builder": "14.393.4",
48
+ "@genesislcap/vite-builder": "14.393.4",
49
+ "@genesislcap/webpack-builder": "14.393.4"
50
50
  },
51
51
  "dependencies": {
52
- "@genesislcap/foundation-comms": "14.393.3",
53
- "@genesislcap/foundation-logger": "14.393.3",
54
- "@genesislcap/foundation-ui": "14.393.3",
55
- "@genesislcap/foundation-utils": "14.393.3",
52
+ "@genesislcap/foundation-comms": "14.393.4",
53
+ "@genesislcap/foundation-logger": "14.393.4",
54
+ "@genesislcap/foundation-ui": "14.393.4",
55
+ "@genesislcap/foundation-utils": "14.393.4",
56
56
  "@microsoft/fast-colors": "5.3.1",
57
57
  "@microsoft/fast-components": "2.30.6",
58
58
  "@microsoft/fast-element": "1.14.0",
@@ -79,5 +79,5 @@
79
79
  "access": "public"
80
80
  },
81
81
  "customElements": "dist/custom-elements.json",
82
- "gitHead": "ebb3f21dffc97d5139e2127dac78a0a1f8934986"
82
+ "gitHead": "b1ee3b153d9a2d9fea81ec401c3a3a7ca4f2db6e"
83
83
  }