@genesislcap/grid-pro 14.11.2 → 14.11.3-alpha-8168d51.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/dts/cell-renderers/action.renderer.d.ts +7 -0
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts +7 -0
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/boolean.renderer.d.ts +7 -0
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/text.renderer.d.ts +11 -0
- package/dist/dts/cell-renderers/text.renderer.d.ts.map +1 -1
- package/dist/dts/column/utils/grid-pro-columns.d.ts +7 -0
- package/dist/dts/column/utils/grid-pro-columns.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.d.ts +3 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +13 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +28 -0
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +4 -0
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/esm/cell-renderers/action.renderer.js +7 -0
- package/dist/esm/cell-renderers/actions-menu.renderer.js +12 -0
- package/dist/esm/cell-renderers/boolean.renderer.js +7 -0
- package/dist/esm/cell-renderers/text.renderer.js +12 -0
- package/dist/esm/cell-renderers/utils/accessor.js +3 -0
- package/dist/esm/column/utils/grid-pro-columns.js +7 -0
- package/dist/esm/grid-components.js +2 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.js +39 -3
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +54 -12
- package/dist/esm/grid-pro.definitions.js +39 -1
- package/dist/esm/grid-pro.js +40 -2
- package/package.json +9 -10
|
@@ -21,6 +21,13 @@ export declare class ActionRenderer extends FoundationElement implements ICellRe
|
|
|
21
21
|
}
|
|
22
22
|
export declare const actionHeightMultiplier: import("@microsoft/fast-foundation").CSSDesignToken<string>;
|
|
23
23
|
export declare const agActionRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
24
|
+
/**
|
|
25
|
+
* The Foundation Action Renderer
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Element: \<foundation-grid-pro-action-renderer\>
|
|
30
|
+
*/
|
|
24
31
|
export declare const foundationGridProActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
25
32
|
baseName: string;
|
|
26
33
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/action.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAe,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG5E,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,cAAe,SAAQ,iBAAkB,YAAW,iBAAiB;IAEzE,MAAM,EAAE,mBAAmB,GA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AAGD,eAAO,MAAM,sBAAsB,6DAElC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iDAelC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;yBAe1C,CAAC"}
|
|
@@ -8,6 +8,13 @@ export declare class ActionsMenuRenderer extends FoundationElement implements IC
|
|
|
8
8
|
destroy(): void;
|
|
9
9
|
refresh(params: ICellRendererParams): boolean;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The Foundation Actions Menu Renderer
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
* @remarks
|
|
16
|
+
* HTML Element: \<grid-pro-actions-menu-renderer\>
|
|
17
|
+
*/
|
|
11
18
|
export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
12
19
|
baseName: string;
|
|
13
20
|
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;
|
|
1
|
+
{"version":3,"file":"actions-menu.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/actions-menu.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,KACxB,MAqBF,CAAC"}
|
|
@@ -12,6 +12,13 @@ export declare class BooleanRenderer extends FoundationElement implements ICellR
|
|
|
12
12
|
}
|
|
13
13
|
export declare const agBooleanRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
14
14
|
export declare const getAgBooleanRendererTemplate: (designSystem?: string) => import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
15
|
+
/**
|
|
16
|
+
* The Foundation Boolean Renderer
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
* @remarks
|
|
20
|
+
* HTML Element: \<foundation-boolean-renderer\>
|
|
21
|
+
*/
|
|
15
22
|
export declare const foundationAgBooleanRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
16
23
|
baseName: string;
|
|
17
24
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC;CAC3B;AAED,qBAAa,eAAgB,SAAQ,iBAAkB,YAAW,iBAAiB;IAE1E,MAAM,EAAE,qBAAqB,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,qBAAqB;IAKlC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,qBAAqB;CAG7C;AAED,eAAO,MAAM,uBAAuB,iDAMnC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qFASxC,CAAC;
|
|
1
|
+
{"version":3,"file":"boolean.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/boolean.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC;CAC3B;AAED,qBAAa,eAAgB,SAAQ,iBAAkB,YAAW,iBAAiB;IAE1E,MAAM,EAAE,qBAAqB,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,qBAAqB;IAKlC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,qBAAqB;CAG7C;AAED,eAAO,MAAM,uBAAuB,iDAMnC,CAAC;AAEF,eAAO,MAAM,4BAA4B,qFASxC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;0BAItC,CAAC"}
|
|
@@ -13,10 +13,21 @@ export declare class AgTextRenderer extends FoundationElement implements ICellRe
|
|
|
13
13
|
getGui(): HTMLElement;
|
|
14
14
|
destroy(): void;
|
|
15
15
|
refresh(params: FuiCellRendererParams): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* On text change handler
|
|
18
|
+
* @param e CustomEvent
|
|
19
|
+
*/
|
|
16
20
|
textChanged: (e: any) => void;
|
|
17
21
|
}
|
|
18
22
|
export declare const textRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
19
23
|
export declare const getTextRendererTemplate: (designSystem?: string) => import("@microsoft/fast-element").ViewTemplate<AgTextRenderer, any>;
|
|
24
|
+
/**
|
|
25
|
+
* The Foundation Text Renderer
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
* @remarks
|
|
29
|
+
* HTML Element: \<foundation-grid-text-renderer\>
|
|
30
|
+
*/
|
|
20
31
|
export declare const foundationAgTextRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
21
32
|
baseName: string;
|
|
22
33
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/text.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACnE;AAED,qBAAa,cAAe,SAAQ,iBAAkB,YAAW,iBAAiB;IACzE,SAAS,EAAE,SAAS,CAAC;IAGhB,SAAS,EAAE,MAAM,CAAM;IAG5B,MAAM,EAAE,qBAAqB,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,qBAAqB;IAUlC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,qBAAqB;
|
|
1
|
+
{"version":3,"file":"text.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/text.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,UAAU,qBAAsB,SAAQ,mBAAmB;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACnE;AAED,qBAAa,cAAe,SAAQ,iBAAkB,YAAW,iBAAiB;IACzE,SAAS,EAAE,SAAS,CAAC;IAGhB,SAAS,EAAE,MAAM,CAAM;IAG5B,MAAM,EAAE,qBAAqB,CAAC;IAE9B,IAAI,CAAC,MAAM,EAAE,qBAAqB;IAUlC,MAAM,IAAI,WAAW;IAIrB,OAAO;IAEP,OAAO,CAAC,MAAM,EAAE,qBAAqB;IAI5C;;;OAGG;IACI,WAAW,mBAGhB;CACH;AAED,eAAO,MAAM,kBAAkB,iDAU9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gGAWnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;yBAInC,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { ColDef } from '@ag-grid-community/core';
|
|
2
2
|
import { Binding, CaptureType } from '@microsoft/fast-element';
|
|
3
|
+
/**
|
|
4
|
+
* A directive that renders a set of grid-pro-column elements from a given input binding
|
|
5
|
+
*
|
|
6
|
+
* @param itemsBinding - The array to render
|
|
7
|
+
* @param includeRenderers - Optionally tells whether to include cell renderers, if available
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
3
10
|
export declare function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, readonly ColDef[]> | readonly ColDef[], includeRenderers?: boolean): CaptureType<TSource>;
|
|
4
11
|
//# sourceMappingURL=grid-pro-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-columns.d.ts","sourceRoot":"","sources":["../../../../src/column/utils/grid-pro-columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAsB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro-columns.d.ts","sourceRoot":"","sources":["../../../../src/column/utils/grid-pro-columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAEnF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAG,GAAG,EAC1C,YAAY,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,SAAS,MAAM,EAAE,EACrE,gBAAgB,GAAE,OAAc,GAC/B,WAAW,CAAC,OAAO,CAAC,CAmBtB"}
|
|
@@ -383,6 +383,7 @@ export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasour
|
|
|
383
383
|
maxView: number;
|
|
384
384
|
orderBy: string;
|
|
385
385
|
resourceName: string;
|
|
386
|
+
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
386
387
|
pagination: boolean;
|
|
387
388
|
reverse: boolean;
|
|
388
389
|
private indexes;
|
|
@@ -392,7 +393,9 @@ export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasour
|
|
|
392
393
|
disconnectedCallback(): void;
|
|
393
394
|
init(): void;
|
|
394
395
|
reset(): void;
|
|
396
|
+
restart(): void;
|
|
395
397
|
private get agGrid();
|
|
398
|
+
private clearRowData;
|
|
396
399
|
private getResourceIndexes;
|
|
397
400
|
get params(): any;
|
|
398
401
|
private createDataserverStream;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource-next.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EACrB,wBAAwB,EAIzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,OAAO,EAMP,wBAAwB,EAIxB,cAAc,EACd,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAa/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IACnD,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,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,qBAAa,gBAAiB,YAAW,qBAAqB;IACnD,OAAO,EAAG,OAAO,CAAC;IAE3B,gBAAgB,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;IAC7D,OAAO,CAAC,YAAY,CAAS;IAC7B,cAAc,EAAE,GAAG,CAAC;IACpB,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,eAAe,CAAmB;IAE1C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,UAAU,CAAU;IAE5B,eAAe,EAAE,MAAM,CAAC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IAKP,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,kBAAkB;IAU1B,IAAI,MAAM,QA0BT;YAEa,sBAAsB;IAapC,OAAO,CAAC,eAAe;CAgDxB"}
|
|
@@ -349,24 +349,32 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
349
349
|
orderBy: string;
|
|
350
350
|
request: any;
|
|
351
351
|
resourceName: string;
|
|
352
|
+
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
352
353
|
reverse: boolean;
|
|
353
354
|
rowId: string;
|
|
354
|
-
|
|
355
|
+
restartOnReconnection: boolean;
|
|
355
356
|
private dataSub;
|
|
356
|
-
private
|
|
357
|
+
private updateSub;
|
|
358
|
+
private connectionSub;
|
|
359
|
+
private requiresFullRowDataAndColDefs;
|
|
360
|
+
private dataSubWasLoggedOff;
|
|
357
361
|
private rows;
|
|
358
362
|
private agTransaction;
|
|
359
|
-
private
|
|
363
|
+
private sourceRef;
|
|
360
364
|
private criteriaFromFilters;
|
|
361
365
|
private update;
|
|
362
|
-
private updateSub;
|
|
363
|
-
private connectionSub;
|
|
364
366
|
connectedCallback(): void;
|
|
365
367
|
disconnectedCallback(): void;
|
|
366
368
|
deepClone(): Node;
|
|
367
369
|
private get agGrid();
|
|
368
370
|
init(): void;
|
|
371
|
+
deinit(): void;
|
|
372
|
+
/**
|
|
373
|
+
* Use {@link deinit} instead
|
|
374
|
+
* @deprecated
|
|
375
|
+
*/
|
|
369
376
|
reset(): void;
|
|
377
|
+
restart(): void;
|
|
370
378
|
private clearRowData;
|
|
371
379
|
private updateRowData;
|
|
372
380
|
private loadResourceData;
|
|
@@ -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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACL,OAAO,EAEP,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB/D,qBAGa,wBAAyB,SAAQ,6BAAiC;IACpE,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,WAAW,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,EAAE,OAAO,CAAS;IAChD,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IACnD,OAAO,EAAE,MAAM,CAAC;IACrC,OAAO,EAAE,GAAG,CAAC;IACa,YAAY,EAAE,MAAM,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,EAAU,WAAW,EAAsB,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACL,OAAO,EAEP,UAAU,EAWX,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,oBAAoB;IAQX,SAAS,IAAI,IAAI;IAO1B,OAAO,KAAK,MAAM,GAEjB;IAGD,IAAI;IAkCJ,MAAM;IAIN;;;OAGG;IACH,KAAK;IA8BL,OAAO;IAKP,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,aAAa;YAUP,gBAAgB;IAiD9B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,sBAAsB;IAmC9B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA0CvB,OAAO,CAAC,aAAa;IAMrB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASjD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -344,9 +344,21 @@ export declare class GridPro extends GridPro_base {
|
|
|
344
344
|
autoCellRendererByType: boolean;
|
|
345
345
|
onlyTemplateColDefs: boolean;
|
|
346
346
|
enabledRowFlashing: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
349
|
+
*/
|
|
347
350
|
enableCellFlashing: boolean;
|
|
348
351
|
persistColumnStateKey: string;
|
|
352
|
+
/**
|
|
353
|
+
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
354
|
+
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
355
|
+
* in local storage if you are using `persist-column-state-key`.
|
|
356
|
+
*/
|
|
349
357
|
gridAutosizingEnabled: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* Timeout function used to debounce resize calls
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
350
362
|
private debounced;
|
|
351
363
|
gridFontFace: string;
|
|
352
364
|
columnComponentName: string;
|
|
@@ -371,7 +383,16 @@ export declare class GridPro extends GridPro_base {
|
|
|
371
383
|
disconnectedCallback(): void;
|
|
372
384
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
373
385
|
statePersistanceEnabled(): boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
388
|
+
* a stack overflow of calls to resize, so we need to debounce it.
|
|
389
|
+
* @internal
|
|
390
|
+
*/
|
|
374
391
|
private debouncedColumnAutosize;
|
|
392
|
+
/**
|
|
393
|
+
* If {@link gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
394
|
+
* @internal
|
|
395
|
+
*/
|
|
375
396
|
private removeConfigWidthsToAutosize;
|
|
376
397
|
private serialiseStoreTableConfig;
|
|
377
398
|
private rehydrateTableConfig;
|
|
@@ -389,6 +410,13 @@ export declare const foundationGridProShadowOptions: ShadowRootInit;
|
|
|
389
410
|
export declare const defaultGridProConfig: {
|
|
390
411
|
shadowOptions: any;
|
|
391
412
|
};
|
|
413
|
+
/**
|
|
414
|
+
* The Foundation AgGrid
|
|
415
|
+
*
|
|
416
|
+
* @public
|
|
417
|
+
* @remarks
|
|
418
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
419
|
+
*/
|
|
392
420
|
export declare const foundationGridPro: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
393
421
|
shadowOptions: any;
|
|
394
422
|
baseName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,SAAS,EACT,OAAO,EAEP,WAAW,EACX,MAAM,EAKP,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAc/D,OAAO,EAK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OlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,oBAAoB;IAa5B,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA2EnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,GAAE,MAAM,EAAO;IAgClD,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAmBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAGD,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -5,5 +5,9 @@ export declare function getFilterParamsByFieldType(type: string): any;
|
|
|
5
5
|
export declare function dateValueFormatter({ value }: ValueFormatterParams): any;
|
|
6
6
|
export declare function dateTimeValueFormatter({ value }: ValueFormatterParams): any;
|
|
7
7
|
export declare function formatDateExtra(epoch: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* The time between allowing the grids to automatically resize.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
8
12
|
export declare const DEBOUNCED_RESIZE_TIME = 5;
|
|
9
13
|
//# sourceMappingURL=grid-pro.definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.definitions.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CActD;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CASvD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAwC5D;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAID,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;
|
|
1
|
+
{"version":3,"file":"grid-pro.definitions.d.ts","sourceRoot":"","sources":["../../src/grid-pro.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CActD;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,CASvD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAwC5D;AAED,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAID,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
|
|
@@ -67,6 +67,13 @@ export const agActionRendererStyles = css `
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
`;
|
|
70
|
+
/**
|
|
71
|
+
* The Foundation Action Renderer
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
* @remarks
|
|
75
|
+
* HTML Element: \<foundation-grid-pro-action-renderer\>
|
|
76
|
+
*/
|
|
70
77
|
export const foundationGridProActionRenderer = ActionRenderer.compose({
|
|
71
78
|
baseName: 'grid-pro-action-renderer',
|
|
72
79
|
styles: css `
|
|
@@ -19,6 +19,13 @@ export class ActionsMenuRenderer extends FoundationElement {
|
|
|
19
19
|
__decorate([
|
|
20
20
|
observable
|
|
21
21
|
], ActionsMenuRenderer.prototype, "params", void 0);
|
|
22
|
+
/**
|
|
23
|
+
* The Foundation Actions Menu Renderer
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
* @remarks
|
|
27
|
+
* HTML Element: \<grid-pro-actions-menu-renderer\>
|
|
28
|
+
*/
|
|
22
29
|
export const foundationGridProActionsMenuRenderer = ActionsMenuRenderer.compose({
|
|
23
30
|
baseName: 'grid-pro-actions-menu-renderer',
|
|
24
31
|
template: html `
|
|
@@ -40,6 +47,11 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
|
|
|
40
47
|
cellStyle: { border: 'none', overflow: 'visible' },
|
|
41
48
|
field: 'actions',
|
|
42
49
|
headerName: 'Actions',
|
|
50
|
+
// valueGetter: (params: ValueGetterParams) => {
|
|
51
|
+
// params.data.actions = actions;
|
|
52
|
+
// params.data.buttonText = customActionsOpenerName;
|
|
53
|
+
// return null;
|
|
54
|
+
// },
|
|
43
55
|
width: 150,
|
|
44
56
|
};
|
|
45
57
|
return Object.assign(Object.assign({}, actionsMenuDef), overrideDef);
|
|
@@ -35,6 +35,13 @@ export const getAgBooleanRendererTemplate = (designSystem = 'foundation') => {
|
|
|
35
35
|
></${checkboxComponent}>
|
|
36
36
|
`;
|
|
37
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* The Foundation Boolean Renderer
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
* @remarks
|
|
43
|
+
* HTML Element: \<foundation-boolean-renderer\>
|
|
44
|
+
*/
|
|
38
45
|
export const foundationAgBooleanRenderer = BooleanRenderer.compose({
|
|
39
46
|
baseName: 'boolean-renderer',
|
|
40
47
|
styles: agBooleanRendererStyles,
|
|
@@ -6,7 +6,12 @@ import { setValueWithAccessor } from './utils';
|
|
|
6
6
|
export class AgTextRenderer extends FoundationElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
// Text field value
|
|
9
10
|
this.textValue = '';
|
|
11
|
+
/**
|
|
12
|
+
* On text change handler
|
|
13
|
+
* @param e CustomEvent
|
|
14
|
+
*/
|
|
10
15
|
this.textChanged = (e) => {
|
|
11
16
|
this.textValue = e.target.value;
|
|
12
17
|
this.params.onChange(e.target.value, this.params);
|
|
@@ -59,6 +64,13 @@ export const getTextRendererTemplate = (designSystem = 'foundation') => {
|
|
|
59
64
|
></${textComponent}>
|
|
60
65
|
`;
|
|
61
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* The Foundation Text Renderer
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @remarks
|
|
72
|
+
* HTML Element: \<foundation-grid-text-renderer\>
|
|
73
|
+
*/
|
|
62
74
|
export const foundationAgTextRenderer = AgTextRenderer.compose({
|
|
63
75
|
baseName: 'grid-text-renderer',
|
|
64
76
|
styles: textRendererStyles,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export const setValueWithAccessor = (data, accessor) => {
|
|
2
|
+
// if no '.', then it's not a deep value
|
|
2
3
|
if (accessor.indexOf('.') < 0) {
|
|
4
|
+
// data[field] = newValue;
|
|
3
5
|
return data[accessor];
|
|
4
6
|
}
|
|
5
7
|
else {
|
|
8
|
+
// otherwise it is a deep value, so need to dig for it
|
|
6
9
|
const accessorPieces = accessor.split('.');
|
|
7
10
|
let currentObject = data;
|
|
8
11
|
while (accessorPieces.length > 0 && currentObject) {
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { html, repeat, when } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* A directive that renders a set of grid-pro-column elements from a given input binding
|
|
4
|
+
*
|
|
5
|
+
* @param itemsBinding - The array to render
|
|
6
|
+
* @param includeRenderers - Optionally tells whether to include cell renderers, if available
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
2
9
|
export function gridProColumns(itemsBinding, includeRenderers = true) {
|
|
3
10
|
return html `
|
|
4
11
|
${repeat(typeof itemsBinding === 'function' ? itemsBinding : () => itemsBinding, html `
|
|
@@ -9,6 +9,8 @@ export const foundationGridComponents = {
|
|
|
9
9
|
foundationGridPro,
|
|
10
10
|
register(container, ...rest) {
|
|
11
11
|
if (!container) {
|
|
12
|
+
// preserve backward compatibility with code that loops through
|
|
13
|
+
// the values of this object and calls them as funcs with no args
|
|
12
14
|
return;
|
|
13
15
|
}
|
|
14
16
|
for (const key in this) {
|
|
@@ -51,7 +51,7 @@ export class StreamDatasource {
|
|
|
51
51
|
}
|
|
52
52
|
else if (toBeAppliedSortModel.length > 0) {
|
|
53
53
|
this.currentSortModel = toBeAppliedSortModel;
|
|
54
|
-
const coldIdBeingSorted = this.currentSortModel[0].colId;
|
|
54
|
+
const coldIdBeingSorted = this.currentSortModel[0].colId; // Not allowing multiple sorts by user
|
|
55
55
|
const sortTypeBeingApplied = this.currentSortModel[0].sort;
|
|
56
56
|
const orderByAndToBeSortedColIds = this.getOrderByAndToBeSortedColIds(this.resourceIndexes, coldIdBeingSorted);
|
|
57
57
|
orderByAndToBeSortedColIds.toBeSorted.forEach((colId) => {
|
|
@@ -136,9 +136,23 @@ export class StreamDatasource {
|
|
|
136
136
|
const criteria = this.resourceParams.CRITERIA_MATCH.concat(this.criteriaFromFilters());
|
|
137
137
|
return criteria.join(' && ');
|
|
138
138
|
}
|
|
139
|
+
// we need to combine all filters into a valid groovy expression, for now limited to search in strings
|
|
139
140
|
criteriaFromFilters() {
|
|
140
141
|
const filters = [];
|
|
141
142
|
this.getFiltersByType('text').forEach((k) => filters.push(`Expr.containsIgnoreCase(${k}, '${this.currentFilterModel[k].filter.toLowerCase()}')`));
|
|
143
|
+
// TODO: Add all other filters
|
|
144
|
+
// this.getFiltersByType('number').forEach((k) => {
|
|
145
|
+
// const v = this.currentFilterModel[k].value;
|
|
146
|
+
// !isNaN(v.min) && filters.push(`${k} >= ${v.min}`);
|
|
147
|
+
// !isNaN(v.max) && filters.push(`${k} <= ${v.max}`);
|
|
148
|
+
// });
|
|
149
|
+
// this.getFiltersByType('boolean').forEach(k => filters.push(`${k} == ${this.currentFilterModel[k].value}`));
|
|
150
|
+
// this.getFiltersByType('date').forEach((k) => {
|
|
151
|
+
// const v = this.currentFilterModel[k].value;
|
|
152
|
+
// !isNaN(v.min) && filters.push(`Expr.dateTimeIsAfter(${k}, '${formatDateExtra(v.min)}')`);
|
|
153
|
+
// !isNaN(v.max) && filters.push(`Expr.dateTimeIsBefore(${k}, '${formatDateExtra(v.max)}')`);
|
|
154
|
+
// });
|
|
155
|
+
// this.getFiltersByType('enum').forEach(k => filters.push(`${k} == '${this.currentFilterModel[k].value}'`));
|
|
142
156
|
return filters;
|
|
143
157
|
}
|
|
144
158
|
getFiltersByType(filterType) {
|
|
@@ -159,6 +173,11 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
159
173
|
this.pagination = false;
|
|
160
174
|
this.reverse = false;
|
|
161
175
|
}
|
|
176
|
+
resourceNameChanged(oldValue, newValue) {
|
|
177
|
+
if (!oldValue || oldValue === newValue)
|
|
178
|
+
return;
|
|
179
|
+
this.restart();
|
|
180
|
+
}
|
|
162
181
|
connectedCallback() {
|
|
163
182
|
super.connectedCallback();
|
|
164
183
|
DOM.queueUpdate(() => {
|
|
@@ -191,7 +210,7 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
191
210
|
suppressServerSideInfiniteScroll: false,
|
|
192
211
|
suppressMultiSort: true,
|
|
193
212
|
onFilterChanged: (params) => { },
|
|
194
|
-
onSortChanged: (params) => { },
|
|
213
|
+
onSortChanged: (params) => { }, // TODO: confirm FUI-512
|
|
195
214
|
};
|
|
196
215
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
197
216
|
const meta = yield this.connect
|
|
@@ -221,10 +240,24 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
221
240
|
}
|
|
222
241
|
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
223
242
|
}
|
|
224
|
-
reset() {
|
|
243
|
+
reset() {
|
|
244
|
+
this.clearRowData();
|
|
245
|
+
this.dataserverStream = undefined;
|
|
246
|
+
this.originalFieldDef = undefined;
|
|
247
|
+
this.agGrid.gridApi.setServerSideDatasource(this.dataserverStream);
|
|
248
|
+
}
|
|
249
|
+
restart() {
|
|
250
|
+
this.reset();
|
|
251
|
+
this.init();
|
|
252
|
+
}
|
|
225
253
|
get agGrid() {
|
|
226
254
|
return this.parentElement;
|
|
227
255
|
}
|
|
256
|
+
clearRowData() {
|
|
257
|
+
var _a, _b, _c, _d;
|
|
258
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
|
|
259
|
+
(_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setRowData([]);
|
|
260
|
+
}
|
|
228
261
|
getResourceIndexes(avaialbleIndexes) {
|
|
229
262
|
const resourceIndexesMap = new Map();
|
|
230
263
|
avaialbleIndexes === null || avaialbleIndexes === void 0 ? void 0 : avaialbleIndexes.forEach((index) => {
|
|
@@ -284,6 +317,9 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
284
317
|
if (this.agGrid.onlyTemplateColDefs && !templateColDef) {
|
|
285
318
|
return [];
|
|
286
319
|
}
|
|
320
|
+
// if (this.fields && !this.fields.includes(field.name)) {
|
|
321
|
+
// return [];
|
|
322
|
+
// }
|
|
287
323
|
return Object.assign(Object.assign({ field: field.name, type: getColumnType(field.type), filter: getFilterByFieldType(field.type), sortable: [].concat(...this.indexes.values()).includes(field.name) }, cellConfigs), templateColDef);
|
|
288
324
|
});
|
|
289
325
|
const colDefsMergedWithTemplateDefs = this.agGrid.applyTemplateDefinitions(colDefsFromGenesisData);
|
|
@@ -19,12 +19,18 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
19
19
|
this.maxView = DatasourceDefaults.MAX_VIEW_1000;
|
|
20
20
|
this.reverse = false;
|
|
21
21
|
this.rowId = 'ROW_REF';
|
|
22
|
+
this.restartOnReconnection = false;
|
|
22
23
|
this.requiresFullRowDataAndColDefs = true;
|
|
23
|
-
this.rows = new Map();
|
|
24
24
|
this.dataSubWasLoggedOff = false;
|
|
25
|
+
this.rows = new Map();
|
|
25
26
|
this.criteriaFromFilters = new Map();
|
|
26
27
|
this.update = new BehaviorSubject(new Map());
|
|
27
28
|
}
|
|
29
|
+
resourceNameChanged(oldValue, newValue) {
|
|
30
|
+
if (!oldValue || oldValue === newValue)
|
|
31
|
+
return;
|
|
32
|
+
this.restart();
|
|
33
|
+
}
|
|
28
34
|
connectedCallback() {
|
|
29
35
|
super.connectedCallback();
|
|
30
36
|
DOM.queueUpdate(() => {
|
|
@@ -33,23 +39,24 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
33
39
|
this.init();
|
|
34
40
|
});
|
|
35
41
|
this.connectionSub = this.connect.isConnectedSubject.subscribe((isConnected) => {
|
|
36
|
-
if (isConnected) {
|
|
42
|
+
if (isConnected && this.agGrid.attributes['ds-disconnected']) {
|
|
37
43
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
44
|
+
if (this.restartOnReconnection) {
|
|
45
|
+
this.restart();
|
|
46
|
+
}
|
|
38
47
|
}
|
|
39
|
-
|
|
48
|
+
if (!isConnected) {
|
|
40
49
|
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
41
50
|
}
|
|
42
51
|
});
|
|
43
52
|
}
|
|
44
53
|
disconnectedCallback() {
|
|
45
|
-
var _a;
|
|
46
54
|
super.disconnectedCallback();
|
|
47
55
|
DOM.queueUpdate(() => {
|
|
48
56
|
if (!this.shouldRunDisconnect)
|
|
49
57
|
return;
|
|
50
|
-
this.
|
|
58
|
+
this.deinit();
|
|
51
59
|
});
|
|
52
|
-
(_a = this.connectionSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
53
60
|
}
|
|
54
61
|
deepClone() {
|
|
55
62
|
const copy = super.deepClone();
|
|
@@ -60,6 +67,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
60
67
|
get agGrid() {
|
|
61
68
|
return this.parentElement;
|
|
62
69
|
}
|
|
70
|
+
// Genesis Specific
|
|
63
71
|
init() {
|
|
64
72
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
65
73
|
const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
|
|
@@ -77,21 +85,50 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
77
85
|
}
|
|
78
86
|
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
79
87
|
}
|
|
88
|
+
deinit() {
|
|
89
|
+
this.reset();
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Use {@link deinit} instead
|
|
93
|
+
* @deprecated
|
|
94
|
+
*/
|
|
80
95
|
reset() {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
if (this.dataSub) {
|
|
97
|
+
this.dataSub.unsubscribe();
|
|
98
|
+
this.dataSub = undefined;
|
|
99
|
+
}
|
|
100
|
+
if (this.updateSub) {
|
|
101
|
+
this.updateSub.unsubscribe();
|
|
102
|
+
this.updateSub = undefined;
|
|
103
|
+
}
|
|
104
|
+
if (this.connectionSub) {
|
|
105
|
+
this.connectionSub.unsubscribe();
|
|
106
|
+
this.connectionSub = undefined;
|
|
107
|
+
}
|
|
84
108
|
this.requiresFullRowDataAndColDefs = true;
|
|
109
|
+
this.dataSubWasLoggedOff = false;
|
|
85
110
|
this.clearRowData();
|
|
111
|
+
if (this.sourceRef) {
|
|
112
|
+
this.connect.dataLogoff(this.sourceRef);
|
|
113
|
+
this.sourceRef = undefined;
|
|
114
|
+
}
|
|
115
|
+
this.criteriaFromFilters = new Map();
|
|
116
|
+
this.update = new BehaviorSubject(new Map());
|
|
117
|
+
}
|
|
118
|
+
restart() {
|
|
119
|
+
this.deinit();
|
|
120
|
+
this.init();
|
|
86
121
|
}
|
|
87
122
|
clearRowData() {
|
|
88
|
-
var _a, _b;
|
|
123
|
+
var _a, _b, _c, _d;
|
|
89
124
|
this.rows = new Map();
|
|
90
|
-
|
|
125
|
+
this.agTransaction = undefined;
|
|
126
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setColumnDefs([]);
|
|
127
|
+
(_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setRowData([]);
|
|
91
128
|
}
|
|
92
129
|
updateRowData(rowData) {
|
|
93
130
|
const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
|
|
94
|
-
if (agColumnDefs
|
|
131
|
+
if (agColumnDefs) {
|
|
95
132
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
96
133
|
}
|
|
97
134
|
this.agGrid.gridApi.setRowData(rowData);
|
|
@@ -107,6 +144,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
107
144
|
const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
|
|
108
145
|
if (!initOK) {
|
|
109
146
|
logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
|
|
147
|
+
this.clearRowData();
|
|
110
148
|
return;
|
|
111
149
|
}
|
|
112
150
|
if (this.isSnapshot) {
|
|
@@ -238,6 +276,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
238
276
|
this.rows.set(updateData[this.rowId], updatedRow);
|
|
239
277
|
});
|
|
240
278
|
}
|
|
279
|
+
// FUTURE: Work with the field types vs ag grid column def types!
|
|
241
280
|
getAgColumnDefs(fieldsMetadata) {
|
|
242
281
|
const colDefsFromGenesisData = fieldsMetadata === null || fieldsMetadata === void 0 ? void 0 : fieldsMetadata.flatMap((field) => {
|
|
243
282
|
var _a;
|
|
@@ -331,6 +370,9 @@ __decorate([
|
|
|
331
370
|
__decorate([
|
|
332
371
|
attr({ attribute: 'row-id' })
|
|
333
372
|
], GridProGenesisDatasource.prototype, "rowId", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
375
|
+
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
334
376
|
GridProGenesisDatasource = __decorate([
|
|
335
377
|
customElement({
|
|
336
378
|
name: 'grid-pro-genesis-datasource',
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { formatDateTimestamp, formatDateTimeTimestamp } from '@genesislcap/foundation-utils';
|
|
2
2
|
export function getFilterByFieldType(type) {
|
|
3
3
|
switch (type) {
|
|
4
|
+
// case 'int':
|
|
5
|
+
// case 'long':
|
|
6
|
+
// case 'double':
|
|
7
|
+
// case 'bigdecimal':
|
|
8
|
+
// case 'number':
|
|
9
|
+
// return 'agNumberColumnFilter';
|
|
10
|
+
// case 'date':
|
|
11
|
+
// case 'datetime':
|
|
12
|
+
// return 'agDateColumnFilter';
|
|
4
13
|
default:
|
|
5
14
|
return 'agTextColumnFilter';
|
|
6
15
|
}
|
|
@@ -17,11 +26,35 @@ export function getColumnType(metadataType) {
|
|
|
17
26
|
}
|
|
18
27
|
export function getFilterParamsByFieldType(type) {
|
|
19
28
|
switch (type) {
|
|
29
|
+
// case FieldTypeEnum.DATE:
|
|
30
|
+
// case FieldTypeEnum.DATETIME: {
|
|
31
|
+
// return {
|
|
32
|
+
// comparator: function(filterLocalDateAtMidnight: Date, cellValue: number) {
|
|
33
|
+
// if (!cellValue) return -1;
|
|
34
|
+
// const cellValueTime = new Date(cellValue).setHours(0, 0, 0, 0);
|
|
35
|
+
// const filterValueTime = filterLocalDateAtMidnight.getTime();
|
|
36
|
+
// if (cellValueTime === filterValueTime) {
|
|
37
|
+
// return 0;
|
|
38
|
+
// }
|
|
39
|
+
// if (cellValueTime < filterValueTime) {
|
|
40
|
+
// return -1;
|
|
41
|
+
// }
|
|
42
|
+
// if (cellValueTime > filterValueTime) {
|
|
43
|
+
// return 1;
|
|
44
|
+
// }
|
|
45
|
+
// },
|
|
46
|
+
// buttons: ['reset', 'apply'],
|
|
47
|
+
// closeOnApply: true,
|
|
48
|
+
// closeOnClear: true,
|
|
49
|
+
// suppressAndOrCondition: true,
|
|
50
|
+
// browserDatePicker: true,
|
|
51
|
+
// };
|
|
52
|
+
// }
|
|
20
53
|
default: {
|
|
21
54
|
return {
|
|
22
55
|
suppressAndOrCondition: true,
|
|
23
56
|
filterOptions: [
|
|
24
|
-
'contains',
|
|
57
|
+
'contains', // TODO: Temp lock to only have [text-contains] filter
|
|
25
58
|
],
|
|
26
59
|
};
|
|
27
60
|
}
|
|
@@ -33,6 +66,7 @@ export function dateValueFormatter({ value }) {
|
|
|
33
66
|
export function dateTimeValueFormatter({ value }) {
|
|
34
67
|
return formatDateTimeTimestamp(value);
|
|
35
68
|
}
|
|
69
|
+
// TODO: possible duplicate - need to evaluate the differences
|
|
36
70
|
const isoDateTimeSliceEnd = 19;
|
|
37
71
|
export function formatDateExtra(epoch) {
|
|
38
72
|
return new Date(epoch)
|
|
@@ -41,4 +75,8 @@ export function formatDateExtra(epoch) {
|
|
|
41
75
|
.replace(/-/g, '')
|
|
42
76
|
.replace('T', '-');
|
|
43
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* The time between allowing the grids to automatically resize.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
44
82
|
export const DEBOUNCED_RESIZE_TIME = 5;
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -34,11 +34,21 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
34
34
|
}
|
|
35
35
|
constructor() {
|
|
36
36
|
super();
|
|
37
|
+
// Genesis-specific attrs
|
|
37
38
|
this.autoCellRendererByType = false;
|
|
38
39
|
this.onlyTemplateColDefs = false;
|
|
39
40
|
this.enabledRowFlashing = false;
|
|
41
|
+
/**
|
|
42
|
+
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
43
|
+
*/
|
|
40
44
|
this.enableCellFlashing = false;
|
|
45
|
+
/**
|
|
46
|
+
* Boolean attribute to control whether the grid autosizes the columns upon interaction.
|
|
47
|
+
* This will disable the column widths from being manually set, and doesn't save the widths
|
|
48
|
+
* in local storage if you are using `persist-column-state-key`.
|
|
49
|
+
*/
|
|
41
50
|
this.gridAutosizingEnabled = false;
|
|
51
|
+
// AG-specific attrs
|
|
42
52
|
this.gridFontFace = defaultAgGridFontFace;
|
|
43
53
|
this.columnComponentName = 'grid-pro-column';
|
|
44
54
|
this.theme = AgGridTheme.alpine;
|
|
@@ -94,6 +104,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
94
104
|
}
|
|
95
105
|
return true;
|
|
96
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
109
|
+
* a stack overflow of calls to resize, so we need to debounce it.
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
97
112
|
debouncedColumnAutosize() {
|
|
98
113
|
if (!this.gridAutosizingEnabled)
|
|
99
114
|
return;
|
|
@@ -106,6 +121,10 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
106
121
|
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.sizeColumnsToFit();
|
|
107
122
|
}, DEBOUNCED_RESIZE_TIME);
|
|
108
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* If {@link gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
109
128
|
removeConfigWidthsToAutosize(colState) {
|
|
110
129
|
return colState.map((col) => (Object.assign(Object.assign({}, col), { width: null })));
|
|
111
130
|
}
|
|
@@ -172,7 +191,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
172
191
|
};
|
|
173
192
|
DOM.queueUpdate(() => {
|
|
174
193
|
if (this.initialised) {
|
|
194
|
+
// Needed due gridSlot children cleanup
|
|
175
195
|
if (this.gridSlot.firstChild) {
|
|
196
|
+
// prevent re-instantiating the grid using the same slot content
|
|
176
197
|
this.gridSlot.removeChild(this.gridSlot.firstChild);
|
|
177
198
|
}
|
|
178
199
|
}
|
|
@@ -205,6 +226,8 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
205
226
|
if (this.enableCellFlashing && x.definition.enableCellChangeFlash === undefined) {
|
|
206
227
|
x.definition.enableCellChangeFlash = true;
|
|
207
228
|
}
|
|
229
|
+
// Applies the default valueformatter for given data type, if unspecified in user colDefs
|
|
230
|
+
// Skip if autoCellRendererByType is disabled
|
|
208
231
|
if (!this.autoCellRendererByType || x.definition.valueFormatter) {
|
|
209
232
|
return x.definition;
|
|
210
233
|
}
|
|
@@ -218,18 +241,23 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
218
241
|
return mergedColumnDefs;
|
|
219
242
|
}
|
|
220
243
|
get observedAttributes() {
|
|
244
|
+
// allow properties to be supplied either lowercased or hyphenated
|
|
245
|
+
// this allows the user to either supply (for example) enableSorting or enabled-sorting
|
|
246
|
+
// properties lowercased
|
|
221
247
|
const lowerCasedPropertyNames = ComponentUtil.ALL_PROPERTIES.map((property) => property.toLowerCase());
|
|
248
|
+
// properties hyphenated
|
|
222
249
|
const hyphenatedPropertyNames = ComponentUtil.ALL_PROPERTIES.map((property) => hypenateAndLowercase(property));
|
|
223
250
|
return lowerCasedPropertyNames.concat(hyphenatedPropertyNames);
|
|
224
251
|
}
|
|
225
252
|
agAttributeChangedCallback(attName, oldValue, newValue) {
|
|
226
|
-
if (oldValue === newValue)
|
|
253
|
+
if (!oldValue || oldValue === newValue)
|
|
227
254
|
return;
|
|
228
|
-
}
|
|
229
255
|
const gridPropertyName = this.agPropertiesMap[attName];
|
|
230
256
|
if (gridPropertyName) {
|
|
257
|
+
// for properties set before gridOptions is called
|
|
231
258
|
this.agAttributes[gridPropertyName] = newValue;
|
|
232
259
|
if (this.initialised) {
|
|
260
|
+
// for subsequent (post gridOptions) changes
|
|
233
261
|
const changeObject = {};
|
|
234
262
|
changeObject[gridPropertyName] = { currentValue: newValue };
|
|
235
263
|
ComponentUtil.processOnChange(changeObject, this.gridApi);
|
|
@@ -241,7 +269,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
241
269
|
const browserEvent = new Event(eventLowerCase);
|
|
242
270
|
const browserEventNoType = browserEvent;
|
|
243
271
|
browserEventNoType.agGridDetails = event;
|
|
272
|
+
// for when defining events via myGrid.addEventListener('columnresized', function (event) {...
|
|
244
273
|
this.dispatchEvent(browserEvent);
|
|
274
|
+
// for when defining events via myGrid.oncolumnresized = function (event) {....
|
|
245
275
|
const callbackMethod = 'on' + eventLowerCase;
|
|
246
276
|
if (typeof this[callbackMethod] === 'function') {
|
|
247
277
|
this[callbackMethod](browserEvent);
|
|
@@ -319,9 +349,17 @@ __decorate([
|
|
|
319
349
|
__decorate([
|
|
320
350
|
observable
|
|
321
351
|
], GridPro.prototype, "gridComponents", void 0);
|
|
352
|
+
// explicitly declaring for extensibility
|
|
322
353
|
export const foundationGridProShadowOptions = undefined;
|
|
323
354
|
export const defaultGridProConfig = {
|
|
324
355
|
shadowOptions: undefined,
|
|
325
356
|
};
|
|
357
|
+
/**
|
|
358
|
+
* The Foundation AgGrid
|
|
359
|
+
*
|
|
360
|
+
* @public
|
|
361
|
+
* @remarks
|
|
362
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
363
|
+
*/
|
|
326
364
|
export const foundationGridPro = GridPro.compose(Object.assign({ baseName: 'grid-pro', styles,
|
|
327
365
|
template, shadowOptions: foundationGridProShadowOptions }, defaultGridProConfig));
|
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.11.
|
|
4
|
+
"version": "14.11.3-alpha-8168d51.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -9,27 +9,26 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "npm run clean && npm run build:tsc && npm run copy-files",
|
|
11
11
|
"build:rollup": "rollup -c",
|
|
12
|
-
"build:tsc": "tsc -b ./tsconfig.
|
|
12
|
+
"build:tsc": "tsc -b ./tsconfig.json",
|
|
13
13
|
"build:webpack": "cross-env NODE_ENV=production webpack",
|
|
14
14
|
"build:webpack:make-federated-types": "make-federated-types",
|
|
15
15
|
"clean": "npm run clean:dist",
|
|
16
|
-
"clean:dist": "node ../../../../../build/clean dist tsconfig.
|
|
16
|
+
"clean:dist": "node ../../../../../build/clean dist tsconfig.tsbuildinfo .rollup.cache",
|
|
17
17
|
"copy-files": "copyfiles -u 1 src/**/*.{css,scss,ttf} ./dist/esm",
|
|
18
18
|
"dev": "npm run build:tsc",
|
|
19
19
|
"dev:rollup": "rollup -c -w --configDev",
|
|
20
|
-
"dev:tsc": "tsc -b ./tsconfig.
|
|
20
|
+
"dev:tsc": "tsc -b ./tsconfig.json -w",
|
|
21
21
|
"dev:webpack": "cross-env NODE_ENV=development webpack serve",
|
|
22
22
|
"serve": "serve dist -p 4020",
|
|
23
23
|
"test": "echo \"Error: no test specified\""
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@genesislcap/foundation-testing": "
|
|
26
|
+
"@genesislcap/foundation-testing": "14.11.3-alpha-8168d51.0",
|
|
27
27
|
"@playwright/test": "^1.18.1",
|
|
28
28
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
30
30
|
"@rollup/plugin-terser": "^0.4.0",
|
|
31
31
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
32
|
-
"@types/mocha": "^9.1.0",
|
|
33
32
|
"bulma": "^0.9.3",
|
|
34
33
|
"c8": "^7.11.0",
|
|
35
34
|
"camel-case": "^4.1.2",
|
|
@@ -75,9 +74,9 @@
|
|
|
75
74
|
"webpack-merge": "^5.7.3"
|
|
76
75
|
},
|
|
77
76
|
"dependencies": {
|
|
78
|
-
"@genesislcap/foundation-comms": "
|
|
79
|
-
"@genesislcap/foundation-ui": "
|
|
80
|
-
"@genesislcap/foundation-utils": "
|
|
77
|
+
"@genesislcap/foundation-comms": "14.11.3-alpha-8168d51.0",
|
|
78
|
+
"@genesislcap/foundation-ui": "14.11.3-alpha-8168d51.0",
|
|
79
|
+
"@genesislcap/foundation-utils": "14.11.3-alpha-8168d51.0",
|
|
81
80
|
"@microsoft/fast-colors": "^5.1.4",
|
|
82
81
|
"@microsoft/fast-components": "^2.21.3",
|
|
83
82
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -98,5 +97,5 @@
|
|
|
98
97
|
"publishConfig": {
|
|
99
98
|
"access": "public"
|
|
100
99
|
},
|
|
101
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "fb0f983f03347db0ea7ead62c5abfaf2a9a49122"
|
|
102
101
|
}
|