@genesislcap/grid-pro 14.116.1 → 14.117.1-alpha-7cac6ae.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +9 -0
- package/dist/dts/grid-pro.d.ts +9 -20
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro.js +8 -1
- package/dist/grid-pro.d.ts +9 -20
- package/package.json +8 -8
|
@@ -740,6 +740,15 @@
|
|
|
740
740
|
"name": "destroyFontFace",
|
|
741
741
|
"privacy": "private"
|
|
742
742
|
},
|
|
743
|
+
{
|
|
744
|
+
"kind": "field",
|
|
745
|
+
"name": "csvExportParams",
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "CsvExportParams"
|
|
748
|
+
},
|
|
749
|
+
"privacy": "private",
|
|
750
|
+
"readonly": true
|
|
751
|
+
},
|
|
743
752
|
{
|
|
744
753
|
"kind": "method",
|
|
745
754
|
"name": "cloneNode",
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -89,23 +89,8 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
89
89
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
90
90
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
91
91
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
92
|
-
/**
|
|
93
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
94
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
92
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
98
|
-
/**
|
|
99
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
100
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
93
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
104
|
-
/**
|
|
105
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
106
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
94
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
110
95
|
hasAttribute(qualifiedName: string): boolean;
|
|
111
96
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -233,7 +218,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
233
218
|
readonly childElementCount: number;
|
|
234
219
|
readonly children: HTMLCollection;
|
|
235
220
|
readonly firstElementChild: Element;
|
|
236
|
-
readonly lastElementChild: Element;
|
|
221
|
+
readonly lastElementChild: Element; /**
|
|
222
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
223
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
224
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
225
|
+
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
226
|
+
* @returns The merged column definitions.
|
|
227
|
+
*/
|
|
237
228
|
append(...nodes: (string | Node)[]): void;
|
|
238
229
|
prepend(...nodes: (string | Node)[]): void;
|
|
239
230
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -327,10 +318,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
327
318
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
328
319
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
329
320
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
330
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
331
|
-
* Grid Pro default configuration.
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
321
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
322
|
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
335
323
|
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
336
324
|
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
@@ -488,6 +476,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
488
476
|
private fontFaceDestroy;
|
|
489
477
|
private insertFontFace;
|
|
490
478
|
private destroyFontFace;
|
|
479
|
+
private get csvExportParams();
|
|
491
480
|
}
|
|
492
481
|
/**
|
|
493
482
|
* GridPro shadow root options.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EAGX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAiB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AAS9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAmB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAMrE,OAAO,EAKL,cAAc,EAIf,MAAM,kBAAkB,CAAC;AAY1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;IAOvB,OAAO,KAAK,eAAe,GAS1B;CACF;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"}
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -256,7 +256,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
256
256
|
this.agAttributes[attrName] = attribute.value;
|
|
257
257
|
});
|
|
258
258
|
const { columnDefs, components, defaultColDef, onGridReady, onFirstDataRendered } = options, rest = __rest(options, ["columnDefs", "components", "defaultColDef", "onGridReady", "onFirstDataRendered"]);
|
|
259
|
-
const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
259
|
+
const derivedOptions = Object.assign(Object.assign(Object.assign({ defaultColDef: Object.assign({ enableCellChangeFlash: this.enableCellFlashing, filter: true, resizable: true, sortable: true }, defaultColDef), defaultCsvExportParams: this.csvExportParams, components: this.combineAllGridComponents(components), suppressDragLeaveHidesColumns: true }, this.eventsAndCallbacks), { onGridReady: (event) => {
|
|
260
260
|
var _a, _b;
|
|
261
261
|
this.gridApi = (_a = options.api) !== null && _a !== void 0 ? _a : event.api;
|
|
262
262
|
this.columnApi = (_b = options.columnApi) !== null && _b !== void 0 ? _b : event.columnApi;
|
|
@@ -425,6 +425,13 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
425
425
|
this.fontFaceDestroy = null;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
+
get csvExportParams() {
|
|
429
|
+
return {
|
|
430
|
+
processCellCallback: (params) => ['+', '-', '=', '@', '\t', '\n'].some((character) => String(params.value).startsWith(character))
|
|
431
|
+
? '#ERROR formulas not allowed'
|
|
432
|
+
: params.value,
|
|
433
|
+
};
|
|
434
|
+
}
|
|
428
435
|
}
|
|
429
436
|
__decorate([
|
|
430
437
|
observable
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1207,6 +1207,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1207
1207
|
private fontFaceDestroy;
|
|
1208
1208
|
private insertFontFace;
|
|
1209
1209
|
private destroyFontFace;
|
|
1210
|
+
private get csvExportParams();
|
|
1210
1211
|
}
|
|
1211
1212
|
|
|
1212
1213
|
declare const GridPro_base: (new (...args: any[]) => {
|
|
@@ -1288,23 +1289,8 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1288
1289
|
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
1289
1290
|
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
1290
1291
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1291
|
-
/**
|
|
1292
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1293
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1294
|
-
* @internal
|
|
1295
|
-
*/
|
|
1296
1292
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1297
|
-
/**
|
|
1298
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1299
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1300
|
-
* @internal
|
|
1301
|
-
*/
|
|
1302
1293
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
1303
|
-
/**
|
|
1304
|
-
* Because we try and resize the grid to fit using callbacks on events, this will cause
|
|
1305
|
-
* a stack overflow of calls to resize, so we need to debounce it.
|
|
1306
|
-
* @internal
|
|
1307
|
-
*/
|
|
1308
1294
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
1309
1295
|
hasAttribute(qualifiedName: string): boolean;
|
|
1310
1296
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
@@ -1432,7 +1418,13 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1432
1418
|
readonly childElementCount: number;
|
|
1433
1419
|
readonly children: HTMLCollection;
|
|
1434
1420
|
readonly firstElementChild: Element;
|
|
1435
|
-
readonly lastElementChild: Element;
|
|
1421
|
+
readonly lastElementChild: Element; /**
|
|
1422
|
+
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
1423
|
+
* @deprecated use `applyTemplateDefinitions` instead.
|
|
1424
|
+
* @param columnDefs - The column definitions to apply to the grid.
|
|
1425
|
+
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
1426
|
+
* @returns The merged column definitions.
|
|
1427
|
+
*/
|
|
1436
1428
|
append(...nodes: (string | Node)[]): void;
|
|
1437
1429
|
prepend(...nodes: (string | Node)[]): void;
|
|
1438
1430
|
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
|
@@ -1526,10 +1518,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1526
1518
|
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
1527
1519
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1528
1520
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1529
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1530
|
-
* Grid Pro default configuration.
|
|
1531
|
-
* @public
|
|
1532
|
-
*/
|
|
1521
|
+
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1533
1522
|
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
1534
1523
|
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
1535
1524
|
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => 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.
|
|
4
|
+
"version": "14.117.1-alpha-7cac6ae.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.
|
|
34
|
-
"@genesislcap/genx": "14.
|
|
33
|
+
"@genesislcap/foundation-testing": "14.117.1-alpha-7cac6ae.0",
|
|
34
|
+
"@genesislcap/genx": "14.117.1-alpha-7cac6ae.0",
|
|
35
35
|
"rimraf": "^3.0.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@genesislcap/foundation-comms": "14.
|
|
39
|
-
"@genesislcap/foundation-logger": "14.
|
|
40
|
-
"@genesislcap/foundation-ui": "14.
|
|
41
|
-
"@genesislcap/foundation-utils": "14.
|
|
38
|
+
"@genesislcap/foundation-comms": "14.117.1-alpha-7cac6ae.0",
|
|
39
|
+
"@genesislcap/foundation-logger": "14.117.1-alpha-7cac6ae.0",
|
|
40
|
+
"@genesislcap/foundation-ui": "14.117.1-alpha-7cac6ae.0",
|
|
41
|
+
"@genesislcap/foundation-utils": "14.117.1-alpha-7cac6ae.0",
|
|
42
42
|
"@microsoft/fast-colors": "^5.1.4",
|
|
43
43
|
"@microsoft/fast-components": "^2.21.3",
|
|
44
44
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"customElements": "dist/custom-elements.json",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "2512159d58bbc359d03ec49dd788ca01b9ea0dbf"
|
|
66
66
|
}
|