@genesislcap/grid-pro 14.11.2-cem-manifest.1 → 14.11.2
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 +0 -7
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts +0 -7
- package/dist/dts/cell-renderers/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/boolean.renderer.d.ts +0 -7
- package/dist/dts/cell-renderers/boolean.renderer.d.ts.map +1 -1
- package/dist/dts/cell-renderers/text.renderer.d.ts +0 -11
- package/dist/dts/cell-renderers/text.renderer.d.ts.map +1 -1
- package/dist/dts/column/utils/grid-pro-columns.d.ts +0 -7
- 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 +0 -3
- 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 +5 -13
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +0 -28
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +0 -4
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/esm/cell-renderers/action.renderer.js +0 -7
- package/dist/esm/cell-renderers/actions-menu.renderer.js +0 -12
- package/dist/esm/cell-renderers/boolean.renderer.js +0 -7
- package/dist/esm/cell-renderers/text.renderer.js +0 -12
- package/dist/esm/cell-renderers/utils/accessor.js +0 -3
- package/dist/esm/column/utils/grid-pro-columns.js +0 -7
- package/dist/esm/grid-components.js +0 -2
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource-next.js +3 -39
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +12 -54
- package/dist/esm/grid-pro.definitions.js +1 -39
- package/dist/esm/grid-pro.js +2 -40
- package/package.json +10 -9
|
@@ -21,13 +21,6 @@ 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
|
-
*/
|
|
31
24
|
export declare const foundationGridProActionRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
32
25
|
baseName: string;
|
|
33
26
|
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,GAAG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GD,eAAO,MAAM,sBAAsB,6DAElC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iDAelC,CAAC;AASF,eAAO,MAAM,+BAA+B;;;;;;;;yBAe1C,CAAC"}
|
|
@@ -8,13 +8,6 @@ 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
|
-
*/
|
|
18
11
|
export declare const foundationGridProActionsMenuRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
19
12
|
baseName: string;
|
|
20
13
|
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;AASD,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,13 +12,6 @@ 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
|
-
*/
|
|
22
15
|
export declare const foundationAgBooleanRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
23
16
|
baseName: string;
|
|
24
17
|
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;AASF,eAAO,MAAM,2BAA2B;;;;;;;;0BAItC,CAAC"}
|
|
@@ -13,21 +13,10 @@ 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
|
-
*/
|
|
20
16
|
textChanged: (e: any) => void;
|
|
21
17
|
}
|
|
22
18
|
export declare const textRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
23
19
|
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
|
-
*/
|
|
31
20
|
export declare const foundationAgTextRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
32
21
|
baseName: string;
|
|
33
22
|
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;IAQrC,WAAW,mBAGhB;CACH;AAED,eAAO,MAAM,kBAAkB,iDAU9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,gGAWnC,CAAC;AASF,eAAO,MAAM,wBAAwB;;;;;;;;yBAInC,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
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
|
-
*/
|
|
10
3
|
export declare function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, readonly ColDef[]> | readonly ColDef[], includeRenderers?: boolean): CaptureType<TSource>;
|
|
11
4
|
//# 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;AASnF,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,7 +383,6 @@ 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;
|
|
387
386
|
pagination: boolean;
|
|
388
387
|
reverse: boolean;
|
|
389
388
|
private indexes;
|
|
@@ -393,9 +392,7 @@ export declare class GridProGenesisDatasourceNext extends GridProGenesisDatasour
|
|
|
393
392
|
disconnectedCallback(): void;
|
|
394
393
|
init(): void;
|
|
395
394
|
reset(): void;
|
|
396
|
-
restart(): void;
|
|
397
395
|
private get agGrid();
|
|
398
|
-
private clearRowData;
|
|
399
396
|
private getResourceIndexes;
|
|
400
397
|
get params(): any;
|
|
401
398
|
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;IACxB,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,mBAAmB,CAAK;IAChC,OAAO,CAAC,cAAc,CAAK;IAE3B,OAAO,CAAC,kBAAkB,CAAM;IAChC,OAAO,CAAC,qBAAqB,CAAoB;IACjD,OAAO,CAAC,gBAAgB,CAAkB;gBAE9B,OAAO,EAAE,uBAAuB;IAetC,OAAO,CAAC,MAAM,EAAE,wBAAwB;IAiG9C,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,6BAA6B;IAWrC,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,6BAA6B;IAmBrC,OAAO,CAAC,mBAAmB;IA8B3B,OAAO,CAAC,gBAAgB;CAKzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAGa,4BAA6B,SAAQ,iCAAiC;IACxE,OAAO,EAAG,OAAO,CAAC;IAErB,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;IACX,YAAY,EAAE,MAAM,CAAC;
|
|
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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isDatasource_b
|
|
|
349
349
|
orderBy: string;
|
|
350
350
|
request: any;
|
|
351
351
|
resourceName: string;
|
|
352
|
-
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
353
352
|
reverse: boolean;
|
|
354
353
|
rowId: string;
|
|
355
|
-
restartOnReconnection: boolean;
|
|
356
|
-
private dataSub;
|
|
357
|
-
private updateSub;
|
|
358
|
-
private connectionSub;
|
|
359
354
|
private requiresFullRowDataAndColDefs;
|
|
360
|
-
private
|
|
355
|
+
private dataSub;
|
|
356
|
+
private sourceRef;
|
|
361
357
|
private rows;
|
|
362
358
|
private agTransaction;
|
|
363
|
-
private
|
|
359
|
+
private dataSubWasLoggedOff;
|
|
364
360
|
private criteriaFromFilters;
|
|
365
361
|
private update;
|
|
362
|
+
private updateSub;
|
|
363
|
+
private connectionSub;
|
|
366
364
|
connectedCallback(): void;
|
|
367
365
|
disconnectedCallback(): void;
|
|
368
366
|
deepClone(): Node;
|
|
369
367
|
private get agGrid();
|
|
370
368
|
init(): void;
|
|
371
|
-
deinit(): void;
|
|
372
|
-
/**
|
|
373
|
-
* Use {@link deinit} instead
|
|
374
|
-
* @deprecated
|
|
375
|
-
*/
|
|
376
369
|
reset(): void;
|
|
377
|
-
restart(): void;
|
|
378
370
|
private clearRowData;
|
|
379
371
|
private updateRowData;
|
|
380
372
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,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,21 +344,9 @@ 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
|
-
*/
|
|
350
347
|
enableCellFlashing: boolean;
|
|
351
348
|
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
|
-
*/
|
|
357
349
|
gridAutosizingEnabled: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* Timeout function used to debounce resize calls
|
|
360
|
-
* @internal
|
|
361
|
-
*/
|
|
362
350
|
private debounced;
|
|
363
351
|
gridFontFace: string;
|
|
364
352
|
columnComponentName: string;
|
|
@@ -383,16 +371,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
383
371
|
disconnectedCallback(): void;
|
|
384
372
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
385
373
|
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
|
-
*/
|
|
391
374
|
private debouncedColumnAutosize;
|
|
392
|
-
/**
|
|
393
|
-
* If {@link gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
394
|
-
* @internal
|
|
395
|
-
*/
|
|
396
375
|
private removeConfigWidthsToAutosize;
|
|
397
376
|
private serialiseStoreTableConfig;
|
|
398
377
|
private rehydrateTableConfig;
|
|
@@ -410,13 +389,6 @@ export declare const foundationGridProShadowOptions: ShadowRootInit;
|
|
|
410
389
|
export declare const defaultGridProConfig: {
|
|
411
390
|
shadowOptions: any;
|
|
412
391
|
};
|
|
413
|
-
/**
|
|
414
|
-
* The Foundation AgGrid
|
|
415
|
-
*
|
|
416
|
-
* @public
|
|
417
|
-
* @remarks
|
|
418
|
-
* HTML Element: \<foundation-grid-pro\>
|
|
419
|
-
*/
|
|
420
392
|
export declare const foundationGridPro: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
421
393
|
shadowOptions: any;
|
|
422
394
|
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,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AiBpC,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;AASF,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -5,9 +5,5 @@ 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
|
-
*/
|
|
12
8
|
export declare const DEBOUNCED_RESIZE_TIME = 5;
|
|
13
9
|
//# 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;AAMD,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
|
|
@@ -67,13 +67,6 @@ 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
|
-
*/
|
|
77
70
|
export const foundationGridProActionRenderer = ActionRenderer.compose({
|
|
78
71
|
baseName: 'grid-pro-action-renderer',
|
|
79
72
|
styles: css `
|
|
@@ -19,13 +19,6 @@ 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
|
-
*/
|
|
29
22
|
export const foundationGridProActionsMenuRenderer = ActionsMenuRenderer.compose({
|
|
30
23
|
baseName: 'grid-pro-actions-menu-renderer',
|
|
31
24
|
template: html `
|
|
@@ -47,11 +40,6 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
|
|
|
47
40
|
cellStyle: { border: 'none', overflow: 'visible' },
|
|
48
41
|
field: 'actions',
|
|
49
42
|
headerName: 'Actions',
|
|
50
|
-
// valueGetter: (params: ValueGetterParams) => {
|
|
51
|
-
// params.data.actions = actions;
|
|
52
|
-
// params.data.buttonText = customActionsOpenerName;
|
|
53
|
-
// return null;
|
|
54
|
-
// },
|
|
55
43
|
width: 150,
|
|
56
44
|
};
|
|
57
45
|
return Object.assign(Object.assign({}, actionsMenuDef), overrideDef);
|
|
@@ -35,13 +35,6 @@ 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
|
-
*/
|
|
45
38
|
export const foundationAgBooleanRenderer = BooleanRenderer.compose({
|
|
46
39
|
baseName: 'boolean-renderer',
|
|
47
40
|
styles: agBooleanRendererStyles,
|
|
@@ -6,12 +6,7 @@ import { setValueWithAccessor } from './utils';
|
|
|
6
6
|
export class AgTextRenderer extends FoundationElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
-
// Text field value
|
|
10
9
|
this.textValue = '';
|
|
11
|
-
/**
|
|
12
|
-
* On text change handler
|
|
13
|
-
* @param e CustomEvent
|
|
14
|
-
*/
|
|
15
10
|
this.textChanged = (e) => {
|
|
16
11
|
this.textValue = e.target.value;
|
|
17
12
|
this.params.onChange(e.target.value, this.params);
|
|
@@ -64,13 +59,6 @@ export const getTextRendererTemplate = (designSystem = 'foundation') => {
|
|
|
64
59
|
></${textComponent}>
|
|
65
60
|
`;
|
|
66
61
|
};
|
|
67
|
-
/**
|
|
68
|
-
* The Foundation Text Renderer
|
|
69
|
-
*
|
|
70
|
-
* @public
|
|
71
|
-
* @remarks
|
|
72
|
-
* HTML Element: \<foundation-grid-text-renderer\>
|
|
73
|
-
*/
|
|
74
62
|
export const foundationAgTextRenderer = AgTextRenderer.compose({
|
|
75
63
|
baseName: 'grid-text-renderer',
|
|
76
64
|
styles: textRendererStyles,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export const setValueWithAccessor = (data, accessor) => {
|
|
2
|
-
// if no '.', then it's not a deep value
|
|
3
2
|
if (accessor.indexOf('.') < 0) {
|
|
4
|
-
// data[field] = newValue;
|
|
5
3
|
return data[accessor];
|
|
6
4
|
}
|
|
7
5
|
else {
|
|
8
|
-
// otherwise it is a deep value, so need to dig for it
|
|
9
6
|
const accessorPieces = accessor.split('.');
|
|
10
7
|
let currentObject = data;
|
|
11
8
|
while (accessorPieces.length > 0 && currentObject) {
|
|
@@ -1,11 +1,4 @@
|
|
|
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
|
-
*/
|
|
9
2
|
export function gridProColumns(itemsBinding, includeRenderers = true) {
|
|
10
3
|
return html `
|
|
11
4
|
${repeat(typeof itemsBinding === 'function' ? itemsBinding : () => itemsBinding, html `
|
|
@@ -9,8 +9,6 @@ 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
|
|
14
12
|
return;
|
|
15
13
|
}
|
|
16
14
|
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;
|
|
55
55
|
const sortTypeBeingApplied = this.currentSortModel[0].sort;
|
|
56
56
|
const orderByAndToBeSortedColIds = this.getOrderByAndToBeSortedColIds(this.resourceIndexes, coldIdBeingSorted);
|
|
57
57
|
orderByAndToBeSortedColIds.toBeSorted.forEach((colId) => {
|
|
@@ -136,23 +136,9 @@ 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
|
|
140
139
|
criteriaFromFilters() {
|
|
141
140
|
const filters = [];
|
|
142
141
|
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}'`));
|
|
156
142
|
return filters;
|
|
157
143
|
}
|
|
158
144
|
getFiltersByType(filterType) {
|
|
@@ -173,11 +159,6 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
173
159
|
this.pagination = false;
|
|
174
160
|
this.reverse = false;
|
|
175
161
|
}
|
|
176
|
-
resourceNameChanged(oldValue, newValue) {
|
|
177
|
-
if (!oldValue || oldValue === newValue)
|
|
178
|
-
return;
|
|
179
|
-
this.restart();
|
|
180
|
-
}
|
|
181
162
|
connectedCallback() {
|
|
182
163
|
super.connectedCallback();
|
|
183
164
|
DOM.queueUpdate(() => {
|
|
@@ -210,7 +191,7 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
210
191
|
suppressServerSideInfiniteScroll: false,
|
|
211
192
|
suppressMultiSort: true,
|
|
212
193
|
onFilterChanged: (params) => { },
|
|
213
|
-
onSortChanged: (params) => { },
|
|
194
|
+
onSortChanged: (params) => { },
|
|
214
195
|
};
|
|
215
196
|
this.agGrid.addEventListener('onGridReady', () => __awaiter(this, void 0, void 0, function* () {
|
|
216
197
|
const meta = yield this.connect
|
|
@@ -240,24 +221,10 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
240
221
|
}
|
|
241
222
|
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
242
223
|
}
|
|
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
|
-
}
|
|
224
|
+
reset() { }
|
|
253
225
|
get agGrid() {
|
|
254
226
|
return this.parentElement;
|
|
255
227
|
}
|
|
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
|
-
}
|
|
261
228
|
getResourceIndexes(avaialbleIndexes) {
|
|
262
229
|
const resourceIndexesMap = new Map();
|
|
263
230
|
avaialbleIndexes === null || avaialbleIndexes === void 0 ? void 0 : avaialbleIndexes.forEach((index) => {
|
|
@@ -317,9 +284,6 @@ let GridProGenesisDatasourceNext = class GridProGenesisDatasourceNext extends Li
|
|
|
317
284
|
if (this.agGrid.onlyTemplateColDefs && !templateColDef) {
|
|
318
285
|
return [];
|
|
319
286
|
}
|
|
320
|
-
// if (this.fields && !this.fields.includes(field.name)) {
|
|
321
|
-
// return [];
|
|
322
|
-
// }
|
|
323
287
|
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);
|
|
324
288
|
});
|
|
325
289
|
const colDefsMergedWithTemplateDefs = this.agGrid.applyTemplateDefinitions(colDefsFromGenesisData);
|
|
@@ -19,18 +19,12 @@ 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;
|
|
23
22
|
this.requiresFullRowDataAndColDefs = true;
|
|
24
|
-
this.dataSubWasLoggedOff = false;
|
|
25
23
|
this.rows = new Map();
|
|
24
|
+
this.dataSubWasLoggedOff = false;
|
|
26
25
|
this.criteriaFromFilters = new Map();
|
|
27
26
|
this.update = new BehaviorSubject(new Map());
|
|
28
27
|
}
|
|
29
|
-
resourceNameChanged(oldValue, newValue) {
|
|
30
|
-
if (!oldValue || oldValue === newValue)
|
|
31
|
-
return;
|
|
32
|
-
this.restart();
|
|
33
|
-
}
|
|
34
28
|
connectedCallback() {
|
|
35
29
|
super.connectedCallback();
|
|
36
30
|
DOM.queueUpdate(() => {
|
|
@@ -39,24 +33,23 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
39
33
|
this.init();
|
|
40
34
|
});
|
|
41
35
|
this.connectionSub = this.connect.isConnectedSubject.subscribe((isConnected) => {
|
|
42
|
-
if (isConnected
|
|
36
|
+
if (isConnected) {
|
|
43
37
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
44
|
-
if (this.restartOnReconnection) {
|
|
45
|
-
this.restart();
|
|
46
|
-
}
|
|
47
38
|
}
|
|
48
|
-
|
|
39
|
+
else {
|
|
49
40
|
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
50
41
|
}
|
|
51
42
|
});
|
|
52
43
|
}
|
|
53
44
|
disconnectedCallback() {
|
|
45
|
+
var _a;
|
|
54
46
|
super.disconnectedCallback();
|
|
55
47
|
DOM.queueUpdate(() => {
|
|
56
48
|
if (!this.shouldRunDisconnect)
|
|
57
49
|
return;
|
|
58
|
-
this.
|
|
50
|
+
this.reset();
|
|
59
51
|
});
|
|
52
|
+
(_a = this.connectionSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
60
53
|
}
|
|
61
54
|
deepClone() {
|
|
62
55
|
const copy = super.deepClone();
|
|
@@ -67,7 +60,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
67
60
|
get agGrid() {
|
|
68
61
|
return this.parentElement;
|
|
69
62
|
}
|
|
70
|
-
// Genesis Specific
|
|
71
63
|
init() {
|
|
72
64
|
if (this.agGrid && this.resourceName && this.connect.isConnected) {
|
|
73
65
|
const gridOptions = Object.assign({ getRowId: (params) => params.data[this.rowId] }, this.deferredGridOptions);
|
|
@@ -85,50 +77,21 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
85
77
|
}
|
|
86
78
|
logger.warn(`Application not connected, falling back to local columnDefs/rowData`);
|
|
87
79
|
}
|
|
88
|
-
deinit() {
|
|
89
|
-
this.reset();
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Use {@link deinit} instead
|
|
93
|
-
* @deprecated
|
|
94
|
-
*/
|
|
95
80
|
reset() {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
}
|
|
81
|
+
var _a, _b;
|
|
82
|
+
(_a = this.dataSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
83
|
+
(_b = this.updateSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
108
84
|
this.requiresFullRowDataAndColDefs = true;
|
|
109
|
-
this.dataSubWasLoggedOff = false;
|
|
110
85
|
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();
|
|
121
86
|
}
|
|
122
87
|
clearRowData() {
|
|
123
|
-
var _a, _b
|
|
88
|
+
var _a, _b;
|
|
124
89
|
this.rows = new Map();
|
|
125
|
-
this.
|
|
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([]);
|
|
90
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData([]);
|
|
128
91
|
}
|
|
129
92
|
updateRowData(rowData) {
|
|
130
93
|
const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
|
|
131
|
-
if (agColumnDefs) {
|
|
94
|
+
if (agColumnDefs.length > 0) {
|
|
132
95
|
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
133
96
|
}
|
|
134
97
|
this.agGrid.gridApi.setRowData(rowData);
|
|
@@ -144,7 +107,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
144
107
|
const initOK = yield this.datasource.init(this.datasourceOptions(), requiresMetadataFetch);
|
|
145
108
|
if (!initOK) {
|
|
146
109
|
logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
|
|
147
|
-
this.clearRowData();
|
|
148
110
|
return;
|
|
149
111
|
}
|
|
150
112
|
if (this.isSnapshot) {
|
|
@@ -276,7 +238,6 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
276
238
|
this.rows.set(updateData[this.rowId], updatedRow);
|
|
277
239
|
});
|
|
278
240
|
}
|
|
279
|
-
// FUTURE: Work with the field types vs ag grid column def types!
|
|
280
241
|
getAgColumnDefs(fieldsMetadata) {
|
|
281
242
|
const colDefsFromGenesisData = fieldsMetadata === null || fieldsMetadata === void 0 ? void 0 : fieldsMetadata.flatMap((field) => {
|
|
282
243
|
var _a;
|
|
@@ -370,9 +331,6 @@ __decorate([
|
|
|
370
331
|
__decorate([
|
|
371
332
|
attr({ attribute: 'row-id' })
|
|
372
333
|
], GridProGenesisDatasource.prototype, "rowId", void 0);
|
|
373
|
-
__decorate([
|
|
374
|
-
attr({ mode: 'boolean', attribute: 'restart-on-reconnection' })
|
|
375
|
-
], GridProGenesisDatasource.prototype, "restartOnReconnection", void 0);
|
|
376
334
|
GridProGenesisDatasource = __decorate([
|
|
377
335
|
customElement({
|
|
378
336
|
name: 'grid-pro-genesis-datasource',
|
|
@@ -1,15 +1,6 @@
|
|
|
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';
|
|
13
4
|
default:
|
|
14
5
|
return 'agTextColumnFilter';
|
|
15
6
|
}
|
|
@@ -26,35 +17,11 @@ export function getColumnType(metadataType) {
|
|
|
26
17
|
}
|
|
27
18
|
export function getFilterParamsByFieldType(type) {
|
|
28
19
|
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
|
-
// }
|
|
53
20
|
default: {
|
|
54
21
|
return {
|
|
55
22
|
suppressAndOrCondition: true,
|
|
56
23
|
filterOptions: [
|
|
57
|
-
'contains',
|
|
24
|
+
'contains',
|
|
58
25
|
],
|
|
59
26
|
};
|
|
60
27
|
}
|
|
@@ -66,7 +33,6 @@ export function dateValueFormatter({ value }) {
|
|
|
66
33
|
export function dateTimeValueFormatter({ value }) {
|
|
67
34
|
return formatDateTimeTimestamp(value);
|
|
68
35
|
}
|
|
69
|
-
// TODO: possible duplicate - need to evaluate the differences
|
|
70
36
|
const isoDateTimeSliceEnd = 19;
|
|
71
37
|
export function formatDateExtra(epoch) {
|
|
72
38
|
return new Date(epoch)
|
|
@@ -75,8 +41,4 @@ export function formatDateExtra(epoch) {
|
|
|
75
41
|
.replace(/-/g, '')
|
|
76
42
|
.replace('T', '-');
|
|
77
43
|
}
|
|
78
|
-
/**
|
|
79
|
-
* The time between allowing the grids to automatically resize.
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
44
|
export const DEBOUNCED_RESIZE_TIME = 5;
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -34,21 +34,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
34
34
|
}
|
|
35
35
|
constructor() {
|
|
36
36
|
super();
|
|
37
|
-
// Genesis-specific attrs
|
|
38
37
|
this.autoCellRendererByType = false;
|
|
39
38
|
this.onlyTemplateColDefs = false;
|
|
40
39
|
this.enabledRowFlashing = false;
|
|
41
|
-
/**
|
|
42
|
-
* If true, will enable cell flashing for all cell renderers, unless otherwise defined in custom colDef
|
|
43
|
-
*/
|
|
44
40
|
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
|
-
*/
|
|
50
41
|
this.gridAutosizingEnabled = false;
|
|
51
|
-
// AG-specific attrs
|
|
52
42
|
this.gridFontFace = defaultAgGridFontFace;
|
|
53
43
|
this.columnComponentName = 'grid-pro-column';
|
|
54
44
|
this.theme = AgGridTheme.alpine;
|
|
@@ -104,11 +94,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
104
94
|
}
|
|
105
95
|
return true;
|
|
106
96
|
}
|
|
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
|
-
*/
|
|
112
97
|
debouncedColumnAutosize() {
|
|
113
98
|
if (!this.gridAutosizingEnabled)
|
|
114
99
|
return;
|
|
@@ -121,10 +106,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
121
106
|
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.sizeColumnsToFit();
|
|
122
107
|
}, DEBOUNCED_RESIZE_TIME);
|
|
123
108
|
}
|
|
124
|
-
/**
|
|
125
|
-
* If {@link gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
109
|
removeConfigWidthsToAutosize(colState) {
|
|
129
110
|
return colState.map((col) => (Object.assign(Object.assign({}, col), { width: null })));
|
|
130
111
|
}
|
|
@@ -191,9 +172,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
191
172
|
};
|
|
192
173
|
DOM.queueUpdate(() => {
|
|
193
174
|
if (this.initialised) {
|
|
194
|
-
// Needed due gridSlot children cleanup
|
|
195
175
|
if (this.gridSlot.firstChild) {
|
|
196
|
-
// prevent re-instantiating the grid using the same slot content
|
|
197
176
|
this.gridSlot.removeChild(this.gridSlot.firstChild);
|
|
198
177
|
}
|
|
199
178
|
}
|
|
@@ -226,8 +205,6 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
226
205
|
if (this.enableCellFlashing && x.definition.enableCellChangeFlash === undefined) {
|
|
227
206
|
x.definition.enableCellChangeFlash = true;
|
|
228
207
|
}
|
|
229
|
-
// Applies the default valueformatter for given data type, if unspecified in user colDefs
|
|
230
|
-
// Skip if autoCellRendererByType is disabled
|
|
231
208
|
if (!this.autoCellRendererByType || x.definition.valueFormatter) {
|
|
232
209
|
return x.definition;
|
|
233
210
|
}
|
|
@@ -241,23 +218,18 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
241
218
|
return mergedColumnDefs;
|
|
242
219
|
}
|
|
243
220
|
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
|
|
247
221
|
const lowerCasedPropertyNames = ComponentUtil.ALL_PROPERTIES.map((property) => property.toLowerCase());
|
|
248
|
-
// properties hyphenated
|
|
249
222
|
const hyphenatedPropertyNames = ComponentUtil.ALL_PROPERTIES.map((property) => hypenateAndLowercase(property));
|
|
250
223
|
return lowerCasedPropertyNames.concat(hyphenatedPropertyNames);
|
|
251
224
|
}
|
|
252
225
|
agAttributeChangedCallback(attName, oldValue, newValue) {
|
|
253
|
-
if (
|
|
226
|
+
if (oldValue === newValue) {
|
|
254
227
|
return;
|
|
228
|
+
}
|
|
255
229
|
const gridPropertyName = this.agPropertiesMap[attName];
|
|
256
230
|
if (gridPropertyName) {
|
|
257
|
-
// for properties set before gridOptions is called
|
|
258
231
|
this.agAttributes[gridPropertyName] = newValue;
|
|
259
232
|
if (this.initialised) {
|
|
260
|
-
// for subsequent (post gridOptions) changes
|
|
261
233
|
const changeObject = {};
|
|
262
234
|
changeObject[gridPropertyName] = { currentValue: newValue };
|
|
263
235
|
ComponentUtil.processOnChange(changeObject, this.gridApi);
|
|
@@ -269,9 +241,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
269
241
|
const browserEvent = new Event(eventLowerCase);
|
|
270
242
|
const browserEventNoType = browserEvent;
|
|
271
243
|
browserEventNoType.agGridDetails = event;
|
|
272
|
-
// for when defining events via myGrid.addEventListener('columnresized', function (event) {...
|
|
273
244
|
this.dispatchEvent(browserEvent);
|
|
274
|
-
// for when defining events via myGrid.oncolumnresized = function (event) {....
|
|
275
245
|
const callbackMethod = 'on' + eventLowerCase;
|
|
276
246
|
if (typeof this[callbackMethod] === 'function') {
|
|
277
247
|
this[callbackMethod](browserEvent);
|
|
@@ -349,17 +319,9 @@ __decorate([
|
|
|
349
319
|
__decorate([
|
|
350
320
|
observable
|
|
351
321
|
], GridPro.prototype, "gridComponents", void 0);
|
|
352
|
-
// explicitly declaring for extensibility
|
|
353
322
|
export const foundationGridProShadowOptions = undefined;
|
|
354
323
|
export const defaultGridProConfig = {
|
|
355
324
|
shadowOptions: undefined,
|
|
356
325
|
};
|
|
357
|
-
/**
|
|
358
|
-
* The Foundation AgGrid
|
|
359
|
-
*
|
|
360
|
-
* @public
|
|
361
|
-
* @remarks
|
|
362
|
-
* HTML Element: \<foundation-grid-pro\>
|
|
363
|
-
*/
|
|
364
326
|
export const foundationGridPro = GridPro.compose(Object.assign({ baseName: 'grid-pro', styles,
|
|
365
327
|
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.2
|
|
4
|
+
"version": "14.11.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -9,26 +9,27 @@
|
|
|
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.json",
|
|
12
|
+
"build:tsc": "tsc -b ./tsconfig.build.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.tsbuildinfo .rollup.cache",
|
|
16
|
+
"clean:dist": "node ../../../../../build/clean dist tsconfig.build.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.json -w",
|
|
20
|
+
"dev:tsc": "tsc -b ./tsconfig.build.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": "14.11.2
|
|
26
|
+
"@genesislcap/foundation-testing": "^14.11.2",
|
|
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",
|
|
32
33
|
"bulma": "^0.9.3",
|
|
33
34
|
"c8": "^7.11.0",
|
|
34
35
|
"camel-case": "^4.1.2",
|
|
@@ -74,9 +75,9 @@
|
|
|
74
75
|
"webpack-merge": "^5.7.3"
|
|
75
76
|
},
|
|
76
77
|
"dependencies": {
|
|
77
|
-
"@genesislcap/foundation-comms": "14.11.2
|
|
78
|
-
"@genesislcap/foundation-ui": "14.11.2
|
|
79
|
-
"@genesislcap/foundation-utils": "14.11.2
|
|
78
|
+
"@genesislcap/foundation-comms": "^14.11.2",
|
|
79
|
+
"@genesislcap/foundation-ui": "^14.11.2",
|
|
80
|
+
"@genesislcap/foundation-utils": "^14.11.2",
|
|
80
81
|
"@microsoft/fast-colors": "^5.1.4",
|
|
81
82
|
"@microsoft/fast-components": "^2.21.3",
|
|
82
83
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -97,5 +98,5 @@
|
|
|
97
98
|
"publishConfig": {
|
|
98
99
|
"access": "public"
|
|
99
100
|
},
|
|
100
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "7fae89487845d3a9321dd16f743e27c25251f5b5"
|
|
101
102
|
}
|