@genesislcap/grid-pro 14.50.1 → 14.50.2-alpha-301637d.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/actions-menu.renderer.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +6 -5
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/cell-renderers/actions-menu.renderer.js +2 -1
- package/dist/esm/grid-pro.js +4 -2
- package/dist/grid-pro.d.ts +6 -5
- package/package.json +7 -7
|
@@ -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;
|
|
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;AAI/D;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,iBAAkB,YAAW,iBAAiB;IAClE,MAAM,EAAE,mBAAmB,CAAC;IAExC,IAAI,CAAC,MAAM,EAAE,mBAAmB;IAKhC,MAAM,IAAI,WAAW;IAIrB,OAAO,CAAC,MAAM,EAAE,mBAAmB;CAG3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC;;;;;;8BAQ/C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,YACnB,cAAc,EAAE,gBACZ,MAAM,4BACM,MAAM,eACnB,OAAO,qBACA,MAAM,KACxB,MAqBF,CAAC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -90,7 +90,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
90
90
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
91
91
|
hasAttributes(): boolean;
|
|
92
92
|
hasPointerCapture(pointerId: number): boolean;
|
|
93
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
93
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element; /**
|
|
94
|
+
* Gets the saved grid ColumnState[] from local storage
|
|
95
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
96
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
94
99
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
95
100
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
96
101
|
matches(selectors: string): boolean;
|
|
@@ -254,10 +259,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
254
259
|
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
255
260
|
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
256
261
|
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
257
|
-
/**
|
|
258
|
-
* Grid Pro default configuration.
|
|
259
|
-
* @public
|
|
260
|
-
*/
|
|
261
262
|
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
262
263
|
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
263
264
|
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -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,EAIN,WAAW,EACZ,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAU1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,
|
|
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,EAIN,WAAW,EACZ,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAU1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAqL5D;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApLL;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,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O,CAAC,4BAA4B;IAIpC,OAAO,CAAC,eAAe;IAkBvB;;;;;OAKG;IACH,mBAAmB,IAAI,WAAW,EAAE;IAapC,OAAO,CAAC,kBAAkB;IAa1B;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,wBAAwB,IAAI,wBAAwB,CAEvD;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA6EnC;IAED,OAAO,CAAC,kBAAkB;IAiB1B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,UAAQ;IA8CzE,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html, observable } from '@microsoft/fast-element';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import { convertToKebabCase } from '../grid-pro';
|
|
4
5
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
5
6
|
/**
|
|
6
7
|
* The Actions Menu Renderer element.
|
|
@@ -83,7 +84,7 @@ export const getActionsMenuDef = (actions, overrideDef = {}, customActionsOpener
|
|
|
83
84
|
buttonText: customActionsOpenerName,
|
|
84
85
|
},
|
|
85
86
|
cellStyle: { border: 'none', overflow: 'visible' },
|
|
86
|
-
field: 'actions'
|
|
87
|
+
field: `${convertToKebabCase(overrideDef.headerName) || 'actions-menu'}`,
|
|
87
88
|
headerName: 'Actions',
|
|
88
89
|
// valueGetter: (params: ValueGetterParams) => {
|
|
89
90
|
// params.data.actions = actions;
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -28,7 +28,7 @@ ModuleRegistry.registerModules([CsvExportModule, ClientSideRowModelModule]);
|
|
|
28
28
|
* @returns The Kebab case result.
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
|
-
export const convertToKebabCase = (value) => value.replace(/([a-z])([A-Z])
|
|
31
|
+
export const convertToKebabCase = (value) => value.replace(/([a-z])([A-Z])|\s+/g, '$1-$2').toLowerCase();
|
|
32
32
|
/**
|
|
33
33
|
* The Grid Pro element.
|
|
34
34
|
* @remarks Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
@@ -286,7 +286,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
286
286
|
}
|
|
287
287
|
if (this.gridProGenesisDatasource && deferredColumnDefs) {
|
|
288
288
|
const savedColumnState = this.getSavedColumnState();
|
|
289
|
-
|
|
289
|
+
if (savedColumnState.length > 0) {
|
|
290
|
+
return mergeAndDedupColDefWithColumnState(colDefsToReturn, savedColumnState);
|
|
291
|
+
}
|
|
290
292
|
}
|
|
291
293
|
return colDefsToReturn;
|
|
292
294
|
}
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -941,7 +941,12 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
941
941
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
942
942
|
hasAttributes(): boolean;
|
|
943
943
|
hasPointerCapture(pointerId: number): boolean;
|
|
944
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
944
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element; /**
|
|
945
|
+
* Gets the saved grid ColumnState[] from local storage
|
|
946
|
+
* @remarks This is used to restore the grid state when the grid is rehydrated
|
|
947
|
+
* @privateRemarks Not using `columnApi.get|setColumnState()` for these flows as it doesn't work setting new columnDefs vs different ordering.
|
|
948
|
+
* @public
|
|
949
|
+
*/
|
|
945
950
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
946
951
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
947
952
|
matches(selectors: string): boolean;
|
|
@@ -1105,10 +1110,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1105
1110
|
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1106
1111
|
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1107
1112
|
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1108
|
-
/**
|
|
1109
|
-
* Grid Pro default configuration.
|
|
1110
|
-
* @public
|
|
1111
|
-
*/
|
|
1112
1113
|
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
1113
1114
|
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1114
1115
|
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
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.50.
|
|
4
|
+
"version": "14.50.2-alpha-301637d.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"serve": "genx serve"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@genesislcap/foundation-testing": "
|
|
25
|
-
"@genesislcap/genx": "
|
|
24
|
+
"@genesislcap/foundation-testing": "14.50.2-alpha-301637d.0",
|
|
25
|
+
"@genesislcap/genx": "14.50.2-alpha-301637d.0",
|
|
26
26
|
"bulma": "^0.9.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@genesislcap/foundation-comms": "
|
|
30
|
-
"@genesislcap/foundation-ui": "
|
|
31
|
-
"@genesislcap/foundation-utils": "
|
|
29
|
+
"@genesislcap/foundation-comms": "14.50.2-alpha-301637d.0",
|
|
30
|
+
"@genesislcap/foundation-ui": "14.50.2-alpha-301637d.0",
|
|
31
|
+
"@genesislcap/foundation-utils": "14.50.2-alpha-301637d.0",
|
|
32
32
|
"@microsoft/fast-colors": "^5.1.4",
|
|
33
33
|
"@microsoft/fast-components": "^2.21.3",
|
|
34
34
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"customElements": "dist/custom-elements.json",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ff09b6e992060921ecfea7e04fe951587e6c425d"
|
|
55
55
|
}
|