@genesislcap/grid-pro 15.50.0-BACE-0.1 → 15.50.1

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.
@@ -17847,16 +17847,7 @@
17847
17847
  },
17848
17848
  {
17849
17849
  "kind": "Content",
17850
- "text": "<any, any, any>;\n headerTooltip?: import(\"ag-grid-community\")."
17851
- },
17852
- {
17853
- "kind": "Reference",
17854
- "text": "TooltipDefinition",
17855
- "canonicalReference": "ag-grid-community!TooltipDefinition:type"
17856
- },
17857
- {
17858
- "kind": "Content",
17859
- "text": "<any, any>;\n headerClass?: string | string[] | ((params: import(\"@ag-grid-community/core\")."
17850
+ "text": "<any, any, any>;\n headerTooltip?: string;\n headerClass?: string | string[] | ((params: import(\"@ag-grid-community/core\")."
17860
17851
  },
17861
17852
  {
17862
17853
  "kind": "Reference",
@@ -17910,25 +17901,25 @@
17910
17901
  },
17911
17902
  {
17912
17903
  "kind": "Content",
17913
- "text": "<any, any, any>) => string | string[] | undefined);\n suppressColumnsToolPanel?: boolean;\n suppressFiltersToolPanel?: boolean;\n tooltipComponent?: any;\n tooltipComponentFramework?: any;\n tooltipComponentParams?: any;\n pivotKeys?: string[];\n filter?: any;\n filterFramework?: any;\n filterParams?: any;\n floatingFilterComponent?: any;\n floatingFilterComponentFramework?: any;\n floatingFilterComponentParams?: any;\n cellDataType?: boolean | string;\n allowFormula?: boolean;\n calculatedExpression?: string;\n tooltip?: import(\"ag-grid-community\")."
17904
+ "text": "<any, any, any>) => string | string[] | undefined);\n suppressColumnsToolPanel?: boolean;\n suppressFiltersToolPanel?: boolean;\n tooltipComponent?: any;\n tooltipComponentFramework?: any;\n tooltipComponentParams?: any;\n pivotKeys?: string[];\n filter?: any;\n filterFramework?: any;\n filterParams?: any;\n floatingFilterComponent?: any;\n floatingFilterComponentFramework?: any;\n floatingFilterComponentParams?: any;\n cellDataType?: boolean | string;\n allowFormula?: boolean;\n calculatedExpression?: string;\n tooltipComponentSelector?: import(\"ag-grid-community\")."
17914
17905
  },
17915
17906
  {
17916
17907
  "kind": "Reference",
17917
- "text": "TooltipDefinition",
17918
- "canonicalReference": "ag-grid-community!TooltipDefinition:type"
17908
+ "text": "CellEditorSelectorFunc",
17909
+ "canonicalReference": "ag-grid-community!CellEditorSelectorFunc:type"
17919
17910
  },
17920
17911
  {
17921
17912
  "kind": "Content",
17922
- "text": "<any, any>;\n tooltipComponentSelector?: import(\"ag-grid-community\")."
17913
+ "text": " | import(\"ag-grid-community\")."
17923
17914
  },
17924
17915
  {
17925
17916
  "kind": "Reference",
17926
- "text": "TooltipComponentSelectorFunc",
17927
- "canonicalReference": "ag-grid-community!TooltipComponentSelectorFunc:type"
17917
+ "text": "CellRendererSelectorFunc",
17918
+ "canonicalReference": "ag-grid-community!CellRendererSelectorFunc:type"
17928
17919
  },
17929
17920
  {
17930
17921
  "kind": "Content",
17931
- "text": "<any, any, any>;\n suppressNoteActions?: boolean | import(\"ag-grid-community\")."
17922
+ "text": ";\n suppressNoteActions?: boolean | import(\"ag-grid-community\")."
17932
17923
  },
17933
17924
  {
17934
17925
  "kind": "Reference",
@@ -18007,33 +17998,6 @@
18007
17998
  "text": "GetMainMenuItems",
18008
17999
  "canonicalReference": "ag-grid-community!GetMainMenuItems:type"
18009
18000
  },
18010
- {
18011
- "kind": "Content",
18012
- "text": "<any>;\n columnMenuItems?: (import(\"ag-grid-community\")."
18013
- },
18014
- {
18015
- "kind": "Reference",
18016
- "text": "MenuItemDef",
18017
- "canonicalReference": "ag-grid-community!MenuItemDef:interface"
18018
- },
18019
- {
18020
- "kind": "Content",
18021
- "text": "<any, any> | import(\"ag-grid-community\")."
18022
- },
18023
- {
18024
- "kind": "Reference",
18025
- "text": "DefaultColumnMenuItem",
18026
- "canonicalReference": "ag-grid-community!DefaultColumnMenuItem:type"
18027
- },
18028
- {
18029
- "kind": "Content",
18030
- "text": ")[] | import(\"ag-grid-community\")."
18031
- },
18032
- {
18033
- "kind": "Reference",
18034
- "text": "GetColumnMenuItems",
18035
- "canonicalReference": "ag-grid-community!GetColumnMenuItems:type"
18036
- },
18037
18001
  {
18038
18002
  "kind": "Content",
18039
18003
  "text": "<any>;\n contextMenuItems?: (import(\"ag-grid-community\")."
@@ -18063,25 +18027,7 @@
18063
18027
  },
18064
18028
  {
18065
18029
  "kind": "Content",
18066
- "text": "<any>;\n pivotSort?: import(\"ag-grid-community\")."
18067
- },
18068
- {
18069
- "kind": "Reference",
18070
- "text": "SortDirection",
18071
- "canonicalReference": "ag-grid-community!SortDirection:type"
18072
- },
18073
- {
18074
- "kind": "Content",
18075
- "text": ";\n initialPivotSort?: import(\"ag-grid-community\")."
18076
- },
18077
- {
18078
- "kind": "Reference",
18079
- "text": "SortDirection",
18080
- "canonicalReference": "ag-grid-community!SortDirection:type"
18081
- },
18082
- {
18083
- "kind": "Content",
18084
- "text": ";\n loadingCellRenderer?: any;\n loadingCellRendererParams?: any;\n loadingCellRendererSelector?: import(\"ag-grid-community\")."
18030
+ "text": "<any>;\n loadingCellRenderer?: any;\n loadingCellRendererParams?: any;\n loadingCellRendererSelector?: import(\"ag-grid-community\")."
18085
18031
  },
18086
18032
  {
18087
18033
  "kind": "Reference",
@@ -18162,7 +18108,7 @@
18162
18108
  },
18163
18109
  {
18164
18110
  "kind": "Content",
18165
- "text": "<any, any, any>;\n suppressSpanHeaderHeight?: boolean;\n headerNameEditable?: boolean;\n headerTooltipValueGetter?: import(\"ag-grid-community\")."
18111
+ "text": "<any, any, any>;\n suppressSpanHeaderHeight?: boolean;\n headerTooltipValueGetter?: import(\"ag-grid-community\")."
18166
18112
  },
18167
18113
  {
18168
18114
  "kind": "Reference",
@@ -18199,7 +18145,7 @@
18199
18145
  "isStatic": false,
18200
18146
  "returnTypeTokenRange": {
18201
18147
  "startIndex": 6,
18202
- "endIndex": 254
18148
+ "endIndex": 242
18203
18149
  },
18204
18150
  "releaseTag": "Public",
18205
18151
  "isProtected": false,
@@ -47,7 +47,6 @@ import { Datasource } from '@genesislcap/foundation-comms';
47
47
  import { DatasourceOptions } from '@genesislcap/foundation-comms';
48
48
  import { DatasourceStatus } from '@genesislcap/foundation-comms';
49
49
  import { DatasourceStatusChangedEvent } from '@genesislcap/foundation-comms';
50
- import { DefaultColumnMenuItem } from 'ag-grid-community';
51
50
  import { DefaultMenuItem } from 'ag-grid-community';
52
51
  import { DndSourceCallback } from '@ag-grid-community/core';
53
52
  import { DndSourceCallback as DndSourceCallback_2 } from 'ag-grid-community';
@@ -63,7 +62,6 @@ import { FilteredDataServerResult } from '@genesislcap/foundation-comms';
63
62
  import { FoundationElement } from '@microsoft/fast-foundation';
64
63
  import { FoundationElementRegistry } from '@microsoft/fast-foundation';
65
64
  import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
66
- import { GetColumnMenuItems } from 'ag-grid-community';
67
65
  import { GetContextMenuItems } from 'ag-grid-community';
68
66
  import { GetFindTextFunc } from 'ag-grid-community';
69
67
  import { GetMainMenuItems } from 'ag-grid-community';
@@ -159,8 +157,6 @@ import { SwatchRGB } from '@microsoft/fast-components';
159
157
  import { TextField } from '@genesislcap/foundation-ui';
160
158
  import { ToolPanelClassParams } from '@ag-grid-community/core';
161
159
  import { ToolPanelClassParams as ToolPanelClassParams_2 } from 'ag-grid-community';
162
- import { TooltipComponentSelectorFunc } from 'ag-grid-community';
163
- import { TooltipDefinition } from 'ag-grid-community';
164
160
  import { TooltipValueGetterFunc } from 'ag-grid-community';
165
161
  import { ValueFormatterFunc } from '@ag-grid-community/core';
166
162
  import { ValueFormatterFunc as ValueFormatterFunc_2 } from 'ag-grid-community';
@@ -3028,8 +3024,8 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3028
3024
  /**
3029
3025
  * Called when an unsolicited batch changes which rows exist or their order (an INSERT or a
3030
3026
  * DELETE). The cache cannot be patched in place for those - a created row arrives at the end
3031
- * rather than in sort position, and a delete below the delivered watermark is skipped to keep
3032
- * slice offsets stable - so the rows have to be re-read. Receives the pushed change so the
3027
+ * rather than in sort position, and removing a delivered row would shift the slice offsets of
3028
+ * every later block - so the rows have to be re-read. Receives the pushed change so the
3033
3029
  * host can report it before the re-read.
3034
3030
  * @internal
3035
3031
  */
@@ -3137,12 +3133,19 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3137
3133
  private rowData;
3138
3134
  /** Blocks waiting for the cache to reach their range. @internal */
3139
3135
  private pendingBlocks;
3140
- /** Highest absolute row index already handed to AG Grid. @internal */
3141
- private deliveredRowCount;
3142
3136
  /** False until the first message arrives on the subscription. @internal */
3143
3137
  private streamStarted;
3144
3138
  /** MORE_ROWS from the most recent batch. @internal */
3145
3139
  private moreRows;
3140
+ /**
3141
+ * Set when paging stops short of MORE_ROWS false: the view is full at MAX_VIEW, or a MORE_ROWS
3142
+ * came back empty while the view had room (see `DataserverPagingStatus`).
3143
+ * @remarks Treated like the end of the data, so the walk stops instead of answering each empty
3144
+ * page with another request. A moving view is capped at MAX_VIEW too: past the cap its pages
3145
+ * arrive as INSERT+DELETE pairs, and every DELETE re-reads the cache from a fresh logon.
3146
+ * @internal
3147
+ */
3148
+ private pagingStopped;
3146
3149
  /** Whether a MORE_ROWS request is awaiting its batch. @internal */
3147
3150
  private moreRowsInFlight;
3148
3151
  /**
@@ -3156,8 +3159,6 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3156
3159
  private serverRowsCount;
3157
3160
  /** Whether the current subscription was opened with a CRITERIA_MATCH. @internal */
3158
3161
  private hasCriteria;
3159
- /** So the MAX_VIEW truncation warning is logged once per subscription. @internal */
3160
- private viewTruncationWarned;
3161
3162
  constructor(options: {
3162
3163
  createSnapshotFunc: (params?: any) => Promise<RequestServerResult | FilteredDataServerResult>;
3163
3164
  createDataserverStreamFunc?: (params?: any) => SocketObservable<FilteredDataServerResult>;
@@ -3249,6 +3250,15 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3249
3250
  * @internal
3250
3251
  */
3251
3252
  private handleDataserverMessage;
3253
+ /**
3254
+ * Stops the walk when the view is full at MAX_VIEW (checked by row count, which saves asking for
3255
+ * the empty page) or a MORE_ROWS came back empty, and says why.
3256
+ * @param emptyReply - Whether this message answered a MORE_ROWS with no rows.
3257
+ * @internal
3258
+ */
3259
+ private notePagingStatus;
3260
+ /** Whether the stream will deliver no more rows: the data ran out, or paging stopped. @internal */
3261
+ private get streamEnded();
3252
3262
  /**
3253
3263
  * Reports a server-pushed change to the host so the grid can catch up.
3254
3264
  * @internal
@@ -3262,12 +3272,12 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3262
3272
  /** @internal */
3263
3273
  private createBlockTimer;
3264
3274
  /**
3265
- * Merges a batch into the cumulative cache.
3275
+ * Merges a batch's INSERT and MODIFY rows into the cumulative cache.
3276
+ * @remarks A DELETE never reaches here: any batch carrying one drops the cache instead (see
3277
+ * notifyLiveChange), as removing a delivered row would shift the slice of every later block.
3266
3278
  * @internal
3267
3279
  */
3268
3280
  private accumulate;
3269
- /** Position of a key in the cache, or -1. @internal */
3270
- private cacheIndexOf;
3271
3281
  /**
3272
3282
  * Settles every pending block the cache now covers.
3273
3283
  * @internal
@@ -3291,15 +3301,6 @@ declare class GenesisInfiniteDatasource implements IDatasource {
3291
3301
  * @internal
3292
3302
  */
3293
3303
  private deliverRows;
3294
- /**
3295
- * Warns when the view filled up before the data ran out.
3296
- * @remarks The server stops sending at MAX_VIEW rows and reports MORE_ROWS false, which is
3297
- * indistinguishable from the end of the data - the grid would silently show a truncated view
3298
- * and a row count smaller than the resource's. Raising `max-view` past the row count is the
3299
- * fix, so say so rather than leaving it to be discovered.
3300
- * @internal
3301
- */
3302
- private warnIfViewTruncated;
3303
3304
  /** @internal */
3304
3305
  private failAllPendingBlocks;
3305
3306
  /**
@@ -4090,7 +4091,7 @@ export declare class GridPro extends GridPro_base {
4090
4091
  spanHeaderHeight?: boolean;
4091
4092
  headerName?: string;
4092
4093
  headerValueGetter?: string | HeaderValueGetterFunc<any> | HeaderValueGetterFunc_2<any, any, any>;
4093
- headerTooltip?: TooltipDefinition<any, any>;
4094
+ headerTooltip?: string;
4094
4095
  headerClass?: string | string[] | ((params: HeaderClassParams<any>) => string | string[] | undefined) | ((params: HeaderClassParams_2<any, any, any>) => string | string[] | undefined);
4095
4096
  suppressHeaderKeyboardEvent?: ((params: SuppressHeaderKeyboardEventParams<any>) => boolean) | SuppressHeaderKeyboardEventFunc<any, any, any>;
4096
4097
  columnGroupShow?: "open" | "closed";
@@ -4110,8 +4111,7 @@ export declare class GridPro extends GridPro_base {
4110
4111
  cellDataType?: boolean | string;
4111
4112
  allowFormula?: boolean;
4112
4113
  calculatedExpression?: string;
4113
- tooltip?: TooltipDefinition<any, any>;
4114
- tooltipComponentSelector?: TooltipComponentSelectorFunc<any, any, any>;
4114
+ tooltipComponentSelector?: CellEditorSelectorFunc_2 | CellRendererSelectorFunc_2;
4115
4115
  suppressNoteActions?: boolean | SuppressNoteActionsCallback<any, any, any>;
4116
4116
  useValueFormatterForExport?: boolean;
4117
4117
  groupRowEditable?: boolean | GroupRowEditableCallback<any, any>;
@@ -4125,10 +4125,7 @@ export declare class GridPro extends GridPro_base {
4125
4125
  suppressHeaderMenuButton?: boolean;
4126
4126
  suppressHeaderFilterButton?: boolean;
4127
4127
  mainMenuItems?: (MenuItemDef<any, any> | DefaultMenuItem)[] | GetMainMenuItems<any>;
4128
- columnMenuItems?: (MenuItemDef<any, any> | DefaultColumnMenuItem)[] | GetColumnMenuItems<any>;
4129
4128
  contextMenuItems?: (MenuItemDef<any, any> | DefaultMenuItem)[] | GetContextMenuItems<any>;
4130
- pivotSort?: SortDirection;
4131
- initialPivotSort?: SortDirection;
4132
4129
  loadingCellRenderer?: any;
4133
4130
  loadingCellRendererParams?: any;
4134
4131
  loadingCellRendererSelector?: ILoadingCellRendererSelectorFunc<any, any, any>;
@@ -4142,7 +4139,6 @@ export declare class GridPro extends GridPro_base {
4142
4139
  groupHierarchy?: (string | ColDef_2<any, any>)[];
4143
4140
  spanRows?: boolean | SpanRowsFunc<any, any, any>;
4144
4141
  suppressSpanHeaderHeight?: boolean;
4145
- headerNameEditable?: boolean;
4146
4142
  headerTooltipValueGetter?: HeaderTooltipValueGetterFunc<any, any, any>;
4147
4143
  headerStyle?: HeaderStyle | HeaderStyleFunc<any, any, any>;
4148
4144
  cellAriaRole?: string;
@@ -5251,6 +5247,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
5251
5247
  private requiresFullRowDataAndColDefs;
5252
5248
  private _lastMoreRows;
5253
5249
  private _isMoreRowsResult;
5250
+ /** How many MORE_ROWS sent by loadMore() are awaiting their reply. @internal */
5251
+ private _pendingLoadMore;
5252
+ /** The latest MORE_ROWS the server sent. @internal */
5253
+ private _serverMoreRows;
5254
+ /** Set when Load More stops short of MORE_ROWS false - see notePagingStatus. @internal */
5255
+ private _pagingStopped;
5254
5256
  private _sourceRef;
5255
5257
  private _nextOffset;
5256
5258
  private _loadMoreCount;
@@ -5342,6 +5344,25 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
5342
5344
  private loadResourceData;
5343
5345
  private handleSnapshot;
5344
5346
  private handleStreamResult;
5347
+ /**
5348
+ * Counts off one reply to an outstanding loadMore().
5349
+ * @returns Whether a loadMore() was awaiting this reply.
5350
+ * @internal
5351
+ */
5352
+ private takeLoadMoreReply;
5353
+ /**
5354
+ * Works out whether more rows can be loaded after a stream message.
5355
+ * @remarks On DATASERVER, Load More turns off once the view is full at MAX_VIEW, as every
5356
+ * further MORE_ROWS would come back empty (see `dataserverPagingStatus`), or after a MORE_ROWS
5357
+ * came back empty while the view had room. It turns back on when a full view shrinks, since GSF
5358
+ * fills the freed room on the next MORE_ROWS. A moving view never fills, and under VIEW_NUMBER
5359
+ * pagination the view is a single page, so both follow MORE_ROWS alone, as REQUEST_SERVER does.
5360
+ * @returns Whether more rows can be loaded, or `undefined` before the server has said.
5361
+ * @internal
5362
+ */
5363
+ private notePagingStatus;
5364
+ /** Emits `more-rows-changed` when the availability of more rows changes. @internal */
5365
+ private emitMoreRowsChanged;
5345
5366
  /**
5346
5367
  * Updates the status bar based on more rows status
5347
5368
  * @param moreRows - Whether more rows are available
@@ -5526,12 +5547,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
5526
5547
  setAttributeNodeNS(attr: Attr): Attr | null;
5527
5548
  setHTMLUnsafe(html: string): void;
5528
5549
  setPointerCapture(pointerId: number): void;
5529
- toggleAttribute(qualifiedName: string, force? /**
5530
- * Sets the columnDefs and rowData for the grid.
5531
- * @remarks Full replace: the snapshot is authoritative. Stream deltas still use `emitDataChanged`.
5532
- * An empty snapshot emits `datasource-no-data-available`; a snapshot with rows emits `datasource-loading-finished`.
5533
- * @internal
5534
- */: boolean): boolean;
5550
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
5535
5551
  webkitMatchesSelector(selectors: string): boolean;
5536
5552
  textContent: string;
5537
5553
  readonly baseURI: string;
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": "15.50.0-BACE-0.1",
4
+ "version": "15.50.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,19 +38,19 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "15.50.0-BACE-0.1",
42
- "@genesislcap/genx": "15.50.0-BACE-0.1",
43
- "@genesislcap/ts-builder": "15.50.0-BACE-0.1",
44
- "@genesislcap/uvu-playwright-builder": "15.50.0-BACE-0.1",
45
- "@genesislcap/vite-builder": "15.50.0-BACE-0.1",
46
- "@genesislcap/webpack-builder": "15.50.0-BACE-0.1"
41
+ "@genesislcap/foundation-testing": "15.50.1",
42
+ "@genesislcap/genx": "15.50.1",
43
+ "@genesislcap/ts-builder": "15.50.1",
44
+ "@genesislcap/uvu-playwright-builder": "15.50.1",
45
+ "@genesislcap/vite-builder": "15.50.1",
46
+ "@genesislcap/webpack-builder": "15.50.1"
47
47
  },
48
48
  "dependencies": {
49
- "@genesislcap/foundation-comms": "15.50.0-BACE-0.1",
50
- "@genesislcap/foundation-criteria": "15.50.0-BACE-0.1",
51
- "@genesislcap/foundation-logger": "15.50.0-BACE-0.1",
52
- "@genesislcap/foundation-ui": "15.50.0-BACE-0.1",
53
- "@genesislcap/foundation-utils": "15.50.0-BACE-0.1",
49
+ "@genesislcap/foundation-comms": "15.50.1",
50
+ "@genesislcap/foundation-criteria": "15.50.1",
51
+ "@genesislcap/foundation-logger": "15.50.1",
52
+ "@genesislcap/foundation-ui": "15.50.1",
53
+ "@genesislcap/foundation-utils": "15.50.1",
54
54
  "@microsoft/fast-colors": "5.3.1",
55
55
  "@microsoft/fast-components": "2.30.6",
56
56
  "@microsoft/fast-element": "1.14.0",
@@ -65,8 +65,8 @@
65
65
  "@ag-grid-community/client-side-row-model": "29.2.0",
66
66
  "@ag-grid-community/core": "29.2.0",
67
67
  "@ag-grid-community/csv-export": "29.2.0",
68
- "ag-grid-community": "36.2.0",
69
- "ag-grid-enterprise": "36.2.0"
68
+ "ag-grid-community": "36.0.0",
69
+ "ag-grid-enterprise": "36.0.0"
70
70
  },
71
71
  "peerDependenciesMeta": {
72
72
  "ag-grid-enterprise": {