@genesislcap/grid-pro 14.433.0 → 14.434.0-moreRowsPolling.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.
@@ -497,6 +497,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
497
497
  */
498
498
  private loadResourceData;
499
499
  private handleSnapshot;
500
+ /**
501
+ * Persists the dataserver subscription id used for {@link GridProGenesisDatasource.loadMore} and MORE_ROWS.
502
+ * @remarks In HTTP polling mode the stream can emit `MSG_NACK` (and similar) with HTTP 200.
503
+ * Those envelopes use a per-request `SOURCE_REF` and must not replace the active subscription ref.
504
+ */
505
+ private captureStreamSourceRef;
500
506
  private handleStreamResult;
501
507
  /**
502
508
  * Updates the status bar based on more rows status
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AAsBzF;;GAEG;AACH,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;;;;kBAsBqE,CAAC;;;;;;;;8BAsDrE,CAAA,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAiCA,CAAC;4IAGV,CAAP;wFAKiC,CAAC;+IAMrB,CAAC;2FAE2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgChC,CAAA;;;;;;;;;;;;;;;;;;;;;;;mBAsFmC,CAAC;;;;;;;;;;;;;6BAyBZ,CAAC;8BAGvC,CAAC;kBACS,CAAC;;oBAKrB,CAAD;;sBAC+C,CAAC;oBAAkE,CAAC;;;;;;;;gDAetE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,CAAC,EAAE,OAAO;IAiC9C;;;OAGG;IACM,OAAO;IAyChB;;;;OAIG;IACH,MAAM;IAKN;;;;OAIG;IACH,KAAK;IAKL;;;OAGG;IACY,OAAO;IAKtB;;OAEG;IACH,WAAW;IAKX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAwBxB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;;;;OAMG;IACU,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBhD;;;;;;;OAOG;YACW,gBAAgB;IAwG9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,kBAAkB;IAU1B;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,sBAAsB;IAoE9B,OAAO,CAAC,mBAAmB;YA0Bb,eAAe;IAWtB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CAAC,WAAW,EAAE,GAAG;IAI1C,OAAO,CAAC,iBAAiB;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CA+BlB"}
1
+ {"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AAsBzF;;GAEG;AACH,UAAU,eAAe;IACvB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,EAAE,C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B,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CA+BlB"}
@@ -79,6 +79,15 @@ export declare const GridPro: React.ForwardRefExoticComponent<
79
79
  >;
80
80
  export type GridProRef = GridProWC;
81
81
 
82
+ export declare const GridProCell: React.ForwardRefExoticComponent<
83
+ React.PropsWithChildren<
84
+ Omit<PublicOf<GridProCellWC>, 'children' | 'style'> &
85
+ HTMLWCProps & {
86
+ }
87
+ > & React.RefAttributes<GridProCellWC>
88
+ >;
89
+ export type GridProCellRef = GridProCellWC;
90
+
82
91
  export declare const DateEditor: React.ForwardRefExoticComponent<
83
92
  React.PropsWithChildren<
84
93
  Omit<PublicOf<DateEditorWC>, 'children' | 'style'> &
@@ -124,15 +133,6 @@ export declare const StringEditor: React.ForwardRefExoticComponent<
124
133
  >;
125
134
  export type StringEditorRef = StringEditorWC;
126
135
 
127
- export declare const GridProCell: React.ForwardRefExoticComponent<
128
- React.PropsWithChildren<
129
- Omit<PublicOf<GridProCellWC>, 'children' | 'style'> &
130
- HTMLWCProps & {
131
- }
132
- > & React.RefAttributes<GridProCellWC>
133
- >;
134
- export type GridProCellRef = GridProCellWC;
135
-
136
136
  export declare const ActionRenderer: React.ForwardRefExoticComponent<
137
137
  React.PropsWithChildren<
138
138
  Omit<PublicOf<ActionRendererWC>, 'children' | 'style'> &
@@ -363,7 +363,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
363
363
  return EMPTY;
364
364
  }))
365
365
  .subscribe((result) => {
366
- this._sourceRef = result.SOURCE_REF;
366
+ this.captureStreamSourceRef(result);
367
367
  const hasMoreRowsInResult = 'MORE_ROWS' in result;
368
368
  const hasRowsCountInResult = 'ROWS_COUNT' in result;
369
369
  const hasNextOffsetInResult = this.datasource.resourceType === ResourceType.REQUEST_SERVER && 'NEXT_OFFSET' in result;
@@ -424,6 +424,25 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
424
424
  }
425
425
  return result.inserts;
426
426
  }
427
+ /**
428
+ * Persists the dataserver subscription id used for {@link GridProGenesisDatasource.loadMore} and MORE_ROWS.
429
+ * @remarks In HTTP polling mode the stream can emit `MSG_NACK` (and similar) with HTTP 200.
430
+ * Those envelopes use a per-request `SOURCE_REF` and must not replace the active subscription ref.
431
+ */
432
+ captureStreamSourceRef(result) {
433
+ if (!(result === null || result === void 0 ? void 0 : result.SOURCE_REF)) {
434
+ return;
435
+ }
436
+ const messageType = result.MESSAGE_TYPE;
437
+ if (messageType === MessageType.MSG_NACK || messageType === MessageType.LOGON_NACK) {
438
+ return;
439
+ }
440
+ const hasError = Array.isArray(result.ERROR) ? result.ERROR.length > 0 : Boolean(result.ERROR);
441
+ if (hasError) {
442
+ return;
443
+ }
444
+ this._sourceRef = result.SOURCE_REF;
445
+ }
427
446
  handleStreamResult(result) {
428
447
  if (!result)
429
448
  return;
@@ -4470,6 +4470,12 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
4470
4470
  */
4471
4471
  private loadResourceData;
4472
4472
  private handleSnapshot;
4473
+ /**
4474
+ * Persists the dataserver subscription id used for {@link GridProGenesisDatasource.loadMore} and MORE_ROWS.
4475
+ * @remarks In HTTP polling mode the stream can emit `MSG_NACK` (and similar) with HTTP 200.
4476
+ * Those envelopes use a per-request `SOURCE_REF` and must not replace the active subscription ref.
4477
+ */
4478
+ private captureStreamSourceRef;
4473
4479
  private handleStreamResult;
4474
4480
  /**
4475
4481
  * Updates the status bar based on more rows status
package/dist/react.cjs CHANGED
@@ -91,6 +91,11 @@ const GridPro = React.forwardRef(function GridPro(props, ref) {
91
91
  return React.createElement(customElements.getName(GridProWC) ?? '%%prefix%%-grid-pro', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
92
92
  });
93
93
 
94
+ const GridProCell = React.forwardRef(function GridProCell(props, ref) {
95
+ const { children, ...rest } = props;
96
+ return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
97
+ });
98
+
94
99
  const DateEditor = React.forwardRef(function DateEditor(props, ref) {
95
100
  const { children, ...rest } = props;
96
101
  return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
@@ -116,11 +121,6 @@ const StringEditor = React.forwardRef(function StringEditor(props, ref) {
116
121
  return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
117
122
  });
118
123
 
119
- const GridProCell = React.forwardRef(function GridProCell(props, ref) {
120
- const { children, ...rest } = props;
121
- return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
122
- });
123
-
124
124
  const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
125
125
  const { children, ...rest } = props;
126
126
  return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
@@ -485,12 +485,12 @@ const MulticolumnDropdown = React.forwardRef(function MulticolumnDropdown(props,
485
485
  module.exports = {
486
486
  GridProBeta,
487
487
  GridPro,
488
+ GridProCell,
488
489
  DateEditor,
489
490
  MultiselectEditor,
490
491
  NumberEditor,
491
492
  SelectEditor,
492
493
  StringEditor,
493
- GridProCell,
494
494
  ActionRenderer,
495
495
  ActionsMenuRenderer,
496
496
  BooleanRenderer,
package/dist/react.mjs CHANGED
@@ -89,6 +89,11 @@ export const GridPro = React.forwardRef(function GridPro(props, ref) {
89
89
  return React.createElement(customElements.getName(GridProWC) ?? '%%prefix%%-grid-pro', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
90
90
  });
91
91
 
92
+ export const GridProCell = React.forwardRef(function GridProCell(props, ref) {
93
+ const { children, ...rest } = props;
94
+ return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
95
+ });
96
+
92
97
  export const DateEditor = React.forwardRef(function DateEditor(props, ref) {
93
98
  const { children, ...rest } = props;
94
99
  return React.createElement(customElements.getName(DateEditorWC) ?? '%%prefix%%-date-editor', { ...rest, ref }, children);
@@ -114,11 +119,6 @@ export const StringEditor = React.forwardRef(function StringEditor(props, ref) {
114
119
  return React.createElement(customElements.getName(StringEditorWC) ?? '%%prefix%%-string-editor', { ...rest, ref }, children);
115
120
  });
116
121
 
117
- export const GridProCell = React.forwardRef(function GridProCell(props, ref) {
118
- const { children, ...rest } = props;
119
- return React.createElement(customElements.getName(GridProCellWC) ?? 'grid-pro-cell', { ...rest, ref }, children);
120
- });
121
-
122
122
  export const ActionRenderer = React.forwardRef(function ActionRenderer(props, ref) {
123
123
  const { children, ...rest } = props;
124
124
  return React.createElement(customElements.getName(ActionRendererWC) ?? '%%prefix%%-grid-pro-action-renderer', { ...rest, ref }, children);
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.433.0",
4
+ "version": "14.434.0-moreRowsPolling.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,20 +40,20 @@
40
40
  }
41
41
  },
42
42
  "devDependencies": {
43
- "@genesislcap/foundation-testing": "14.433.0",
44
- "@genesislcap/genx": "14.433.0",
45
- "@genesislcap/rollup-builder": "14.433.0",
46
- "@genesislcap/ts-builder": "14.433.0",
47
- "@genesislcap/uvu-playwright-builder": "14.433.0",
48
- "@genesislcap/vite-builder": "14.433.0",
49
- "@genesislcap/webpack-builder": "14.433.0"
43
+ "@genesislcap/foundation-testing": "14.434.0-moreRowsPolling.1",
44
+ "@genesislcap/genx": "14.434.0-moreRowsPolling.1",
45
+ "@genesislcap/rollup-builder": "14.434.0-moreRowsPolling.1",
46
+ "@genesislcap/ts-builder": "14.434.0-moreRowsPolling.1",
47
+ "@genesislcap/uvu-playwright-builder": "14.434.0-moreRowsPolling.1",
48
+ "@genesislcap/vite-builder": "14.434.0-moreRowsPolling.1",
49
+ "@genesislcap/webpack-builder": "14.434.0-moreRowsPolling.1"
50
50
  },
51
51
  "dependencies": {
52
- "@genesislcap/foundation-comms": "14.433.0",
53
- "@genesislcap/foundation-criteria": "14.433.0",
54
- "@genesislcap/foundation-logger": "14.433.0",
55
- "@genesislcap/foundation-ui": "14.433.0",
56
- "@genesislcap/foundation-utils": "14.433.0",
52
+ "@genesislcap/foundation-comms": "14.434.0-moreRowsPolling.1",
53
+ "@genesislcap/foundation-criteria": "14.434.0-moreRowsPolling.1",
54
+ "@genesislcap/foundation-logger": "14.434.0-moreRowsPolling.1",
55
+ "@genesislcap/foundation-ui": "14.434.0-moreRowsPolling.1",
56
+ "@genesislcap/foundation-utils": "14.434.0-moreRowsPolling.1",
57
57
  "@microsoft/fast-colors": "5.3.1",
58
58
  "@microsoft/fast-components": "2.30.6",
59
59
  "@microsoft/fast-element": "1.14.0",
@@ -91,5 +91,5 @@
91
91
  "require": "./dist/react.cjs"
92
92
  }
93
93
  },
94
- "gitHead": "0ddedcdfa75d7b64b9c7b1397dcfa3008e23cd04"
94
+ "gitHead": "97967285045d6e3778834faf8a9a17c50f410936"
95
95
  }