@genesislcap/grid-pro 14.290.0 → 14.291.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/dist/custom-elements.json +93 -620
- package/dist/dts/datasource/base.datasource.d.ts +11 -44
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/base.types.d.ts +0 -21
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +3 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +4 -9
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts +1 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/esm/datasource/base.datasource.js +1 -172
- package/dist/esm/datasource/base.types.js +1 -8
- package/dist/esm/datasource/server-side.datasource.js +2 -9
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +48 -11
- package/dist/esm/grid-pro.js +3 -20
- package/dist/esm/grid-pro.styles.js +22 -2
- package/dist/esm/grid-pro.template.js +33 -3
- package/dist/grid-pro.api.json +79 -369
- package/dist/grid-pro.d.ts +18 -67
- package/docs/api/grid-pro.genesisgriddatasourceelement.md +0 -3
- package/docs/api/grid-pro.gridprobasedatasource.md +0 -7
- package/docs/api/grid-pro.gridprogenesisdatasource.handleerrors.md +22 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.md +2 -0
- package/docs/api/grid-pro.gridprogenesisdatasource.restartonreconnection.md +11 -0
- package/docs/api/grid-pro.gridprotemplate.md +1 -1
- package/docs/api-report.md +4 -19
- package/package.json +13 -13
- package/dist/dts/datasource/error-handler.dialog.d.ts +0 -3
- package/dist/dts/datasource/error-handler.dialog.d.ts.map +0 -1
- package/dist/esm/datasource/error-handler.dialog.js +0 -114
- package/docs/api/grid-pro.genesisgriddatasourceelement.clearerrors.md +0 -17
- package/docs/api/grid-pro.genesisgriddatasourceelement.handleerrors.md +0 -25
- package/docs/api/grid-pro.genesisgriddatasourceelement.restartonreconnection.md +0 -18
- package/docs/api/grid-pro.gridprobasedatasource.connectedcallback.md +0 -15
- package/docs/api/grid-pro.gridprobasedatasource.connectionsub.md +0 -11
- package/docs/api/grid-pro.gridprobasedatasource.disconnectedcallback.md +0 -15
- package/docs/api/grid-pro.gridprobasedatasource.isdisconnected.md +0 -17
- package/docs/api/grid-pro.gridprobasedatasource.setdisconnected.md +0 -24
- package/docs/api/grid-pro.gridprobasedatasource.subscribetoconnection.md +0 -15
- package/docs/api/grid-pro.gridprobasedatasource.unsubscribefromconnection.md +0 -15
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ColDef, ColumnState, GridOptions, RowDataTransaction, ServerSideTransaction } from '@ag-grid-community/core';
|
|
2
2
|
import { Datasource, DatasourceOptions, DatasourceStatus, FieldMetadata } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
-
import { BehaviorSubject
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import type { GridPro } from '../grid-pro';
|
|
6
|
-
import { type BaseDatasourceErrorEventDetail } from './base.types';
|
|
7
6
|
/**
|
|
8
7
|
* The delimiter for the criteria string.
|
|
9
8
|
* @public
|
|
@@ -26,7 +25,11 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
26
25
|
autocapitalize: string;
|
|
27
26
|
dir: string;
|
|
28
27
|
draggable: boolean;
|
|
29
|
-
hidden: boolean;
|
|
28
|
+
hidden: boolean; /**
|
|
29
|
+
* Attribute to set whether the REQUEST object should be automatically set up.
|
|
30
|
+
* @remarks Defaults to `true`. Only applies to REQUEST_SERVER (REQ-REP) resources.
|
|
31
|
+
* @privateRemarks To avoid breaking changes for now, once V15 is out this will be removed and the default behavior will be the same as `false` here.
|
|
32
|
+
*/
|
|
30
33
|
inert: boolean;
|
|
31
34
|
innerText: string;
|
|
32
35
|
lang: string;
|
|
@@ -182,9 +185,7 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
182
185
|
ariaModal: string;
|
|
183
186
|
ariaMultiLine: string;
|
|
184
187
|
ariaMultiSelectable: string;
|
|
185
|
-
ariaOrientation: string;
|
|
186
|
-
* @public
|
|
187
|
-
*/
|
|
188
|
+
ariaOrientation: string;
|
|
188
189
|
ariaPlaceholder: string;
|
|
189
190
|
ariaPosInSet: string;
|
|
190
191
|
ariaPressed: string;
|
|
@@ -272,7 +273,10 @@ declare const GenesisGridDatasourceElement_base: new () => {
|
|
|
272
273
|
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
273
274
|
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
274
275
|
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
275
|
-
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
276
|
+
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any; /**
|
|
277
|
+
* Helper function to extract configuration for status bar actions
|
|
278
|
+
* @internal
|
|
279
|
+
*/
|
|
276
280
|
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
277
281
|
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
278
282
|
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
@@ -374,12 +378,6 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
|
|
|
374
378
|
* @privateRemarks Attribute-only, not to be used as a property. Use `rowId` getter instead.
|
|
375
379
|
*/
|
|
376
380
|
rowIdAttr: any;
|
|
377
|
-
/**
|
|
378
|
-
* Attribute to set whether the datasource should restart when it reconnects.
|
|
379
|
-
* @remarks Defaults to `true`.
|
|
380
|
-
* @privateRemarks This attribute is shared across all datasources to ensure consistent behavior.
|
|
381
|
-
*/
|
|
382
|
-
restartOnReconnection: boolean;
|
|
383
381
|
protected get rowId(): string;
|
|
384
382
|
/**
|
|
385
383
|
* Returns whether the `row-id` attribute is the default one, depending on the resource type.
|
|
@@ -396,23 +394,6 @@ export declare class GenesisGridDatasourceElement extends GenesisGridDatasourceE
|
|
|
396
394
|
get isRequestServer(): boolean;
|
|
397
395
|
datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
|
|
398
396
|
protected get agGrid(): GridPro | null;
|
|
399
|
-
/**
|
|
400
|
-
* Handles errors and emits appropriate error events.
|
|
401
|
-
* @param errors - The error message or array of error messages
|
|
402
|
-
* @param type - The type of error that occurred
|
|
403
|
-
* @public
|
|
404
|
-
*/
|
|
405
|
-
handleErrors(errors: string | any[], type?: BaseDatasourceErrorEventDetail['type']): void;
|
|
406
|
-
/**
|
|
407
|
-
* Clears error state and emits connected event.
|
|
408
|
-
* @public
|
|
409
|
-
*/
|
|
410
|
-
clearErrors(): void;
|
|
411
|
-
/**
|
|
412
|
-
* Override datasource initialization to handle errors properly.
|
|
413
|
-
* @internal
|
|
414
|
-
*/
|
|
415
|
-
protected initializeDatasource(options: DatasourceOptions, fetchMeta?: boolean, startStream?: boolean): Promise<boolean>;
|
|
416
397
|
}
|
|
417
398
|
/**
|
|
418
399
|
* The operation type for the {@link @genesislcap/grid-pro#GridProBaseDatasource.mapTransaction} method.
|
|
@@ -432,11 +413,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
432
413
|
protected agTransaction: RowDataTransaction | ServerSideTransaction;
|
|
433
414
|
protected applyFuncName: string;
|
|
434
415
|
protected applyAsyncFuncName: string;
|
|
435
|
-
protected connectionSub: Subscription | undefined;
|
|
436
|
-
connectedCallback(): void;
|
|
437
|
-
disconnectedCallback(): void;
|
|
438
|
-
protected subscribeToConnection(): void;
|
|
439
|
-
protected unsubscribeFromConnection(): void;
|
|
440
416
|
protected generateColumnDefsFromMetadata(fieldsMetadata: FieldMetadata[], getFilterParamsByFieldType: Function): ColDef[];
|
|
441
417
|
protected handleStreamInserts(insertedRows: any[], addIndex?: number): void;
|
|
442
418
|
protected handleStreamDeletes(deletedRows: any[]): void;
|
|
@@ -458,15 +434,6 @@ export declare class GridProBaseDatasource extends GenesisGridDatasourceElement
|
|
|
458
434
|
restart(): void;
|
|
459
435
|
reloadResourceData(): void;
|
|
460
436
|
destroy(): void;
|
|
461
|
-
/**
|
|
462
|
-
* Sets or removes the ds-disconnected attribute on the grid element.
|
|
463
|
-
* @param disconnected - true to set, false to remove
|
|
464
|
-
*/
|
|
465
|
-
setDisconnected(disconnected: boolean): void;
|
|
466
|
-
/**
|
|
467
|
-
* Returns true if the grid has the ds-disconnected attribute.
|
|
468
|
-
*/
|
|
469
|
-
isDisconnected(): boolean;
|
|
470
437
|
/**
|
|
471
438
|
* Helper function to extract configuration for status bar actions
|
|
472
439
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EAKd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EAGV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa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AQ,GACnC,MAAM,EAAE;IAsEX,SAAS,CAAC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE,EAAE,QAAQ,GAAE,MAAU;IAmCvE,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,sBAAsB;IAyChC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAkBhC,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,GAAG;IAIlE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAyBtB,SAAS,KAAK,UAAU,IAAI,OAAO,CAGlC;IAED,QAAQ;IAIR,OAAO;IAIP,kBAAkB;IAIlB,OAAO;IAIP;;;OAGG;IACH,SAAS,CAAC,wBAAwB,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,GAAG,CAAC,GAAG,SAAS,GAAG;QAC3E,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,CAAC,CAAC;KACZ;IAaD;;;;OAIG;IACI,4BAA4B,CAAC,YAAY,EAAE,OAAO,GAAG,GAAG,EAAE;CAiElE"}
|
|
@@ -19,25 +19,4 @@ export type ServerSideDatasourceOptions = {
|
|
|
19
19
|
pagination?: boolean;
|
|
20
20
|
zeroBasedViewNumber?: boolean;
|
|
21
21
|
};
|
|
22
|
-
/**
|
|
23
|
-
* Base datasource error event names.
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export declare const baseDatasourceEventNames: {
|
|
27
|
-
readonly error: "base-datasource-error";
|
|
28
|
-
readonly connected: "base-datasource-connected";
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Base datasource error event detail.
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
export type BaseDatasourceErrorEventDetail = {
|
|
35
|
-
message: string;
|
|
36
|
-
type: 'connection' | 'resource-validation' | 'resource-type' | 'metadata' | 'stream' | 'criteria' | 'unknown';
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Base datasource error event.
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
export type BaseDatasourceErrorEvent = CustomEvent<BaseDatasourceErrorEventDetail>;
|
|
43
22
|
//# sourceMappingURL=base.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0BAA0B,CAAC,EAAE,CAC3B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,uBAAuB,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjF,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC
|
|
1
|
+
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0BAA0B,CAAC,EAAE,CAC3B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,uBAAuB,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjF,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAEnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAGL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,iBAA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,mCAAmC;IAoB3C;;;OAGG;IACH,OAAO,CAAC,oCAAoC;IActC,IAAI;IAqGV,mBAAmB,CAAC,KAAK,EAAE,sBAAsB;IAMlC,OAAO;IAiBP,OAAO;IAKtB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QAyBT;IAED,IAAI,QAAQ,IAAI,mBAAmB,CAElC;YAEa,mBAAmB;YAKnB,sBAAsB;YAgEtB,eAAe;IAkBpB,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,2BAA2B;IAIhF,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,KAAK,IAAI;IAK9C,QAAQ;CAGlB"}
|
|
@@ -64,11 +64,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
64
64
|
readonly shadowRoot: ShadowRoot;
|
|
65
65
|
slot: string;
|
|
66
66
|
readonly tagName: string;
|
|
67
|
-
/**
|
|
68
|
-
* Deinitialises the datasource, resetting it to its initial state.
|
|
69
|
-
* @deprecated Use `destroy` instead
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
67
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
73
68
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
|
74
69
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
|
@@ -342,9 +337,11 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
342
337
|
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
343
338
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
344
339
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
340
|
+
restartOnReconnection: boolean;
|
|
345
341
|
keepColDefsOnClearRowData: boolean;
|
|
346
342
|
private dataSub;
|
|
347
343
|
private updateSub;
|
|
344
|
+
private connectionSub;
|
|
348
345
|
private requiresFullRowDataAndColDefs;
|
|
349
346
|
private _lastMoreRows;
|
|
350
347
|
private _isMoreRowsResult;
|
|
@@ -423,6 +420,7 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
423
420
|
*/
|
|
424
421
|
private loadResourceData;
|
|
425
422
|
private handleSnapshot;
|
|
423
|
+
handleErrors(errors: string | any[]): void;
|
|
426
424
|
private handleStreamResult;
|
|
427
425
|
/**
|
|
428
426
|
* 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":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE;IAyBnC,OAAO,CAAC,kBAAkB;IAU1B;;;;;;;;OAQG;IACH,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,sBAAsB;IAoE9B,OAAO,CAAC,mBAAmB;YA0Bb,eAAe;IActB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;IAIP,OAAO,CAAC,iBAAiB;IAQhB,mBAAmB,CAAC,OAAO,QAAK;IAKhC,mBAAmB,CAAC,OAAO,QAAK;IAKzC;;;OAGG;IACM,mBAAmB,CAAC,OAAO,QAAK;IAKhC,QAAQ;CAGlB"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -46,6 +46,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
46
46
|
spellcheck: boolean;
|
|
47
47
|
title: string;
|
|
48
48
|
translate: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
51
|
+
*/
|
|
49
52
|
attachInternals(): ElementInternals;
|
|
50
53
|
click(): void;
|
|
51
54
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -154,14 +157,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
154
157
|
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
155
158
|
readonly DOCUMENT_NODE: number;
|
|
156
159
|
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
157
|
-
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
158
|
-
* Adds an event listener to the grid element.
|
|
159
|
-
* @param eventType - The event type to listen for. Recommened to use the `Events` from AG Grid.
|
|
160
|
-
* @param listener - The event listener to call when the event is fired.
|
|
161
|
-
* @param options - An options object that specifies characteristics about the event listener.
|
|
162
|
-
* @privateRemarks
|
|
163
|
-
* This will change once we do the AG Upgrade and `eventType` will be correctly typed.
|
|
164
|
-
*/
|
|
160
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
165
161
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
166
162
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
167
163
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
@@ -512,7 +508,6 @@ export declare class GridPro extends GridPro_base {
|
|
|
512
508
|
addEventListener(eventType: string, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
513
509
|
private addGridEventListener;
|
|
514
510
|
private handleError;
|
|
515
|
-
private handleBaseDatasourceError;
|
|
516
511
|
hideDatasourceError(): void;
|
|
517
512
|
connectedCallback(): void;
|
|
518
513
|
disconnectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAuB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,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;;;;OAIG;IACH,IAAI,iBAAiB,IAAI,qBAAqB,CAM7C;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAmGnC;IAED,OAAO,CAAC,mBAAmB;IAO3B;;;OAGG;IACH,qBAAqB;IAIrB,OAAO,CAAC,QAAQ;IAehB;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,kBAAkB;IAW1B,SAAS,CAAC,2BAA2B,CAAC,WAAW,EAAE,WAAW;IAuC9D,IAAI,kBAAkB,aAWrB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAuFrC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const getGridProTemplate: (prefix?: string) => ViewTemplate<GridP
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
* @remarks
|
|
14
|
-
* HTML Element:
|
|
14
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
15
15
|
*/
|
|
16
16
|
export declare const gridProTemplate: ViewTemplate;
|
|
17
17
|
//# sourceMappingURL=grid-pro.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAqC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
2
|
import { Datasource, DatasourceDefaults, DatasourceEventHandler, FieldTypeEnum, logger, normaliseCriteria, ResourceType, } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
4
|
import { attr, observable, volatile } from '@microsoft/fast-element';
|
|
@@ -6,7 +6,6 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { dateValueFormatter, dateTimeValueFormatter, getColumnType, getFilterByFieldType, } from '../grid-pro.definitions';
|
|
8
8
|
import { GridProRendererTypes, GridProStatusBarTypes } from '../grid-pro.types';
|
|
9
|
-
import { baseDatasourceEventNames } from './base.types';
|
|
10
9
|
/**
|
|
11
10
|
* The delimiter for the criteria string.
|
|
12
11
|
* @public
|
|
@@ -37,12 +36,6 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
37
36
|
* @privateRemarks To avoid breaking changes for now, once V15 is out this will be removed and the default behavior will be the same as `false` here.
|
|
38
37
|
*/
|
|
39
38
|
this.requestAutoSetup = true;
|
|
40
|
-
/**
|
|
41
|
-
* Attribute to set whether the datasource should restart when it reconnects.
|
|
42
|
-
* @remarks Defaults to `true`.
|
|
43
|
-
* @privateRemarks This attribute is shared across all datasources to ensure consistent behavior.
|
|
44
|
-
*/
|
|
45
|
-
this.restartOnReconnection = true;
|
|
46
39
|
this.criteriaFromFilters = new Map();
|
|
47
40
|
this.update = new BehaviorSubject(new Map());
|
|
48
41
|
}
|
|
@@ -119,114 +112,6 @@ export class GenesisGridDatasourceElement extends DatasourceEventHandler(Foundat
|
|
|
119
112
|
get agGrid() {
|
|
120
113
|
return this.parentElement;
|
|
121
114
|
}
|
|
122
|
-
/**
|
|
123
|
-
* Handles errors and emits appropriate error events.
|
|
124
|
-
* @param errors - The error message or array of error messages
|
|
125
|
-
* @param type - The type of error that occurred
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
handleErrors(errors, type = 'unknown') {
|
|
129
|
-
let message;
|
|
130
|
-
if (Array.isArray(errors)) {
|
|
131
|
-
const stringArray = errors.map((item) => {
|
|
132
|
-
if (typeof item === 'string') {
|
|
133
|
-
return item;
|
|
134
|
-
}
|
|
135
|
-
else if (typeof item === 'object' && item !== null && 'TEXT' in item) {
|
|
136
|
-
return item.TEXT;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return String(item);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
message = stringArray.join(', ');
|
|
143
|
-
}
|
|
144
|
-
else if (typeof errors === 'string') {
|
|
145
|
-
message = errors;
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
message = String(errors);
|
|
149
|
-
}
|
|
150
|
-
// Set visual indicator on grid if available
|
|
151
|
-
if (this.agGrid) {
|
|
152
|
-
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
153
|
-
}
|
|
154
|
-
if (message) {
|
|
155
|
-
logger.error(`${type}: ${message}`);
|
|
156
|
-
this.$emit(baseDatasourceEventNames.error, { message, type });
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Clears error state and emits connected event.
|
|
161
|
-
* @public
|
|
162
|
-
*/
|
|
163
|
-
clearErrors() {
|
|
164
|
-
if (this.agGrid) {
|
|
165
|
-
this.agGrid.removeAttribute('ds-disconnected');
|
|
166
|
-
}
|
|
167
|
-
this.$emit(baseDatasourceEventNames.connected);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Override datasource initialization to handle errors properly.
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
initializeDatasource(options, fetchMeta = true, startStream = true) {
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
try {
|
|
176
|
-
const success = yield this.datasource.init(options, fetchMeta, startStream);
|
|
177
|
-
if (success) {
|
|
178
|
-
this.clearErrors();
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
// Determine error type based on the initialization failure
|
|
183
|
-
const resourceName = options.resourceName;
|
|
184
|
-
if (!resourceName) {
|
|
185
|
-
this.handleErrors('Resource name is required', 'resource-validation');
|
|
186
|
-
}
|
|
187
|
-
else if (!this.connect.isConnected) {
|
|
188
|
-
this.handleErrors(`Unable to connect to ${this.connect.host}`, 'connection');
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
// Check if it's a resource validation issue
|
|
192
|
-
const isValidResource = yield this.connect.getMetadata(resourceName).catch(() => null);
|
|
193
|
-
if (!isValidResource) {
|
|
194
|
-
this.handleErrors(`Resource '${resourceName}' does not exist on ${this.connect.host}`, 'resource-validation');
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
this.handleErrors(`Failed to initialize datasource for ${resourceName}`, 'unknown');
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return false;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
let errorMessage = 'Unknown initialization error';
|
|
205
|
-
let errorType = 'unknown';
|
|
206
|
-
if (error instanceof Error) {
|
|
207
|
-
errorMessage = error.message;
|
|
208
|
-
// Categorize error types based on message content
|
|
209
|
-
if (errorMessage.includes('connect') || errorMessage.includes('connection')) {
|
|
210
|
-
errorType = 'connection';
|
|
211
|
-
}
|
|
212
|
-
else if (errorMessage.includes('resource') || errorMessage.includes('does not exist')) {
|
|
213
|
-
errorType = 'resource-validation';
|
|
214
|
-
}
|
|
215
|
-
else if (errorMessage.includes('metadata')) {
|
|
216
|
-
errorType = 'metadata';
|
|
217
|
-
}
|
|
218
|
-
else if (errorMessage.includes('stream')) {
|
|
219
|
-
errorType = 'stream';
|
|
220
|
-
}
|
|
221
|
-
else if (errorMessage.includes('criteria')) {
|
|
222
|
-
errorType = 'criteria';
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
this.handleErrors(errorMessage, errorType);
|
|
226
|
-
return false;
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
115
|
}
|
|
231
116
|
__decorate([
|
|
232
117
|
Connect
|
|
@@ -288,9 +173,6 @@ __decorate([
|
|
|
288
173
|
__decorate([
|
|
289
174
|
attr({ attribute: 'row-id' })
|
|
290
175
|
], GenesisGridDatasourceElement.prototype, "rowIdAttr", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
293
|
-
], GenesisGridDatasourceElement.prototype, "restartOnReconnection", void 0);
|
|
294
176
|
__decorate([
|
|
295
177
|
volatile
|
|
296
178
|
], GenesisGridDatasourceElement.prototype, "isRequestServer", null);
|
|
@@ -318,38 +200,6 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
318
200
|
update: [],
|
|
319
201
|
};
|
|
320
202
|
}
|
|
321
|
-
connectedCallback() {
|
|
322
|
-
if (super.connectedCallback)
|
|
323
|
-
super.connectedCallback();
|
|
324
|
-
this.subscribeToConnection();
|
|
325
|
-
}
|
|
326
|
-
disconnectedCallback() {
|
|
327
|
-
if (super.disconnectedCallback)
|
|
328
|
-
super.disconnectedCallback();
|
|
329
|
-
this.unsubscribeFromConnection();
|
|
330
|
-
}
|
|
331
|
-
subscribeToConnection() {
|
|
332
|
-
var _a;
|
|
333
|
-
if (this.connect && this.connect.isConnected$) {
|
|
334
|
-
(_a = this.connectionSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
335
|
-
this.connectionSub = this.connect.isConnected$.subscribe((isConnected) => {
|
|
336
|
-
if (isConnected) {
|
|
337
|
-
this.setDisconnected(false);
|
|
338
|
-
if (this.restartOnReconnection && typeof this.reloadResourceData === 'function') {
|
|
339
|
-
this.reloadResourceData();
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
this.setDisconnected(true);
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
unsubscribeFromConnection() {
|
|
349
|
-
var _a;
|
|
350
|
-
(_a = this.connectionSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
351
|
-
this.connectionSub = undefined;
|
|
352
|
-
}
|
|
353
203
|
generateColumnDefsFromMetadata(fieldsMetadata, getFilterParamsByFieldType) {
|
|
354
204
|
return fieldsMetadata === null || fieldsMetadata === void 0 ? void 0 : fieldsMetadata.flatMap((field) => {
|
|
355
205
|
var _a;
|
|
@@ -547,27 +397,6 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
547
397
|
destroy() {
|
|
548
398
|
throw new Error('destroy() method must be implemented by subclass');
|
|
549
399
|
}
|
|
550
|
-
/**
|
|
551
|
-
* Sets or removes the ds-disconnected attribute on the grid element.
|
|
552
|
-
* @param disconnected - true to set, false to remove
|
|
553
|
-
*/
|
|
554
|
-
setDisconnected(disconnected) {
|
|
555
|
-
if (!this.agGrid)
|
|
556
|
-
return;
|
|
557
|
-
if (disconnected) {
|
|
558
|
-
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
this.agGrid.removeAttribute('ds-disconnected');
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
/**
|
|
565
|
-
* Returns true if the grid has the ds-disconnected attribute.
|
|
566
|
-
*/
|
|
567
|
-
isDisconnected() {
|
|
568
|
-
var _a;
|
|
569
|
-
return !!((_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.hasAttribute('ds-disconnected'));
|
|
570
|
-
}
|
|
571
400
|
/**
|
|
572
401
|
* Helper function to extract configuration for status bar actions
|
|
573
402
|
* @internal
|
|
@@ -137,7 +137,6 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
137
137
|
// Cache the current filter model before clearing data to preserve column filters
|
|
138
138
|
yield ((_b = this.agGrid) === null || _b === void 0 ? void 0 : _b.cacheFilterConfig());
|
|
139
139
|
this.clearRowData(withoutColumnDefs);
|
|
140
|
-
this.setDisconnected(false);
|
|
141
140
|
(_c = this.agGrid.gridApi) === null || _c === void 0 ? void 0 : _c.refreshServerSide({ purge: true });
|
|
142
141
|
if (params) {
|
|
143
142
|
const options = Object.assign(Object.assign({}, this.datasourceOptions()), params);
|
|
@@ -220,11 +219,9 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
220
219
|
if (!initOK) {
|
|
221
220
|
logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
|
|
222
221
|
this.clearRowData();
|
|
223
|
-
this.setDisconnected(true);
|
|
224
222
|
return;
|
|
225
223
|
}
|
|
226
224
|
this.$emit(gridProGenesisDatasourceEventNames.dataInit);
|
|
227
|
-
this.setDisconnected(false);
|
|
228
225
|
this.indexes = this.getResourceIndexes(this.datasource.availableIndexes);
|
|
229
226
|
const fieldMetadata = toFieldMetadata(this.datasource.originalFieldDef);
|
|
230
227
|
const agColumnDefs = yield this.getAgColumnDefs(fieldMetadata);
|
|
@@ -267,7 +264,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
267
264
|
}), { once: true });
|
|
268
265
|
return;
|
|
269
266
|
}
|
|
270
|
-
|
|
267
|
+
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
271
268
|
});
|
|
272
269
|
}
|
|
273
270
|
onPaginationChanged(event) {
|
|
@@ -382,11 +379,7 @@ let GridProServerSideDatasource = class GridProServerSideDatasource extends Life
|
|
|
382
379
|
}
|
|
383
380
|
}
|
|
384
381
|
});
|
|
385
|
-
const onError = (error) =>
|
|
386
|
-
var _a;
|
|
387
|
-
logger.error(error);
|
|
388
|
-
this.handleErrors(((_a = error.receivedMessage) === null || _a === void 0 ? void 0 : _a.ERROR) || error.message, 'stream');
|
|
389
|
-
};
|
|
382
|
+
const onError = (error) => logger.error(error);
|
|
390
383
|
this.liveUpdatesStream = this.connect
|
|
391
384
|
.stream(this.resourceName, () => { }, onError, existingParams !== null && existingParams !== void 0 ? existingParams : this.params)
|
|
392
385
|
.subscribe((message) => streamOnMessage(message));
|