@genesislcap/grid-pro 14.155.0 → 14.155.2-alpha-d9bfff1.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 +66 -3
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.d.ts +8 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.d.ts.map +1 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/index.d.ts +1 -0
- package/dist/dts/grid-pro-genesis-datasource/index.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +11 -15
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +7 -0
- package/dist/dts/grid-pro.definitions.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/dts/grid-pro.template.d.ts +11 -1
- package/dist/dts/grid-pro.template.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +8 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.js +7 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +7 -2
- package/dist/esm/grid-pro-genesis-datasource/index.js +1 -0
- package/dist/esm/grid-pro.definitions.js +7 -0
- package/dist/esm/grid-pro.js +22 -2
- package/dist/esm/grid-pro.styles.js +30 -8
- package/dist/esm/grid-pro.template.js +40 -2
- package/dist/grid-pro.api.json +95 -1
- package/dist/grid-pro.d.ts +47 -16
- package/docs/api/grid-pro.getgridprotemplate.md +13 -0
- package/docs/api/grid-pro.gridpro.griddserrormessage.md +11 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api/grid-pro.gridprogenesisdatasourceeventsnames.md +15 -0
- package/docs/api/grid-pro.gridprotemplate.md +5 -2
- package/docs/api/grid-pro.md +3 -1
- package/docs/api-report.md +26 -1
- package/package.json +13 -13
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"type": {
|
|
218
218
|
"text": "ElementStyles"
|
|
219
219
|
},
|
|
220
|
-
"default": "css`\n ${agExternalStockStyles}\n :host {\n width: 100%;\n height: 100%;\n
|
|
220
|
+
"default": "css`\n ${agExternalStockStyles}\n :host {\n position: relative;\n width: 100%;\n height: 100%;\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 0.4;\n pointer-events: none;\n }\n\n .ag-side-bar,\n .ag-menu {\n --ag-subheader-background-color: var(--ag-background-color);\n --ag-control-panel-background-color: var(--ag-background-color);\n }\n\n .ag-cell-inline-editing {\n height: inherit !important;\n }\n\n .hidden {\n display: none;\n }\n\n .grid-datasource-error-dialog::part(dialog) {\n position: absolute;\n z-index: 2;\n max-width: var(--datasource-error-dialog-max-width);\n }\n\n .grid-datasource-error-dialog::before {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n height: 100%;\n width: 100%;\n border-radius: 2px;\n background-color: var(--datasource-error-background-color);\n opacity: var(--datasource-error-background-opacity);\n z-index: 1;\n }\n`",
|
|
221
221
|
"description": "The Grid Pro styles.",
|
|
222
222
|
"privacy": "public"
|
|
223
223
|
}
|
|
@@ -237,18 +237,42 @@
|
|
|
237
237
|
"kind": "javascript-module",
|
|
238
238
|
"path": "src/grid-pro.template.ts",
|
|
239
239
|
"declarations": [
|
|
240
|
+
{
|
|
241
|
+
"kind": "function",
|
|
242
|
+
"name": "getGridProTemplate",
|
|
243
|
+
"parameters": [
|
|
244
|
+
{
|
|
245
|
+
"name": "prefix",
|
|
246
|
+
"default": "'foundation'",
|
|
247
|
+
"description": "The design system prefix to use. Defaults to 'foundation'."
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"description": "Get a Design System prefixed The Grid Pro template.",
|
|
251
|
+
"return": {
|
|
252
|
+
"type": {
|
|
253
|
+
"text": ""
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"privacy": "public"
|
|
257
|
+
},
|
|
240
258
|
{
|
|
241
259
|
"kind": "variable",
|
|
242
260
|
"name": "gridProTemplate",
|
|
243
261
|
"type": {
|
|
244
262
|
"text": "ViewTemplate"
|
|
245
263
|
},
|
|
246
|
-
"default": "html<GridPro>`\n <template>\n <span part=\"grid\" class=\"${(x) => x.classNames}\">\n <slot name=\"grid\" ${ref('gridSlot')}></slot>\n <slot></slot>\n </span>\n </template>\n`",
|
|
247
|
-
"description": "The Grid Pro Template.",
|
|
248
264
|
"privacy": "public"
|
|
249
265
|
}
|
|
250
266
|
],
|
|
251
267
|
"exports": [
|
|
268
|
+
{
|
|
269
|
+
"kind": "js",
|
|
270
|
+
"name": "getGridProTemplate",
|
|
271
|
+
"declaration": {
|
|
272
|
+
"name": "getGridProTemplate",
|
|
273
|
+
"module": "src/grid-pro.template.ts"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
252
276
|
{
|
|
253
277
|
"kind": "js",
|
|
254
278
|
"name": "gridProTemplate",
|
|
@@ -282,6 +306,13 @@
|
|
|
282
306
|
"text": "GridApi"
|
|
283
307
|
}
|
|
284
308
|
},
|
|
309
|
+
{
|
|
310
|
+
"kind": "field",
|
|
311
|
+
"name": "gridDSErrorMessage",
|
|
312
|
+
"type": {
|
|
313
|
+
"text": "string"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
285
316
|
{
|
|
286
317
|
"kind": "field",
|
|
287
318
|
"name": "statePersistence",
|
|
@@ -531,6 +562,15 @@
|
|
|
531
562
|
"privacy": "private",
|
|
532
563
|
"default": "false"
|
|
533
564
|
},
|
|
565
|
+
{
|
|
566
|
+
"kind": "field",
|
|
567
|
+
"name": "rootEventsListeners",
|
|
568
|
+
"type": {
|
|
569
|
+
"text": "GirProEventsListeners"
|
|
570
|
+
},
|
|
571
|
+
"privacy": "private",
|
|
572
|
+
"default": "[]"
|
|
573
|
+
},
|
|
534
574
|
{
|
|
535
575
|
"kind": "field",
|
|
536
576
|
"name": "gridEventsQueue",
|
|
@@ -592,6 +632,21 @@
|
|
|
592
632
|
}
|
|
593
633
|
]
|
|
594
634
|
},
|
|
635
|
+
{
|
|
636
|
+
"kind": "method",
|
|
637
|
+
"name": "handleDataSourceError",
|
|
638
|
+
"privacy": "private",
|
|
639
|
+
"parameters": [
|
|
640
|
+
{
|
|
641
|
+
"name": "e"
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"kind": "method",
|
|
647
|
+
"name": "hideDataSourceError",
|
|
648
|
+
"privacy": "private"
|
|
649
|
+
},
|
|
595
650
|
{
|
|
596
651
|
"kind": "method",
|
|
597
652
|
"name": "combineAllGridComponents",
|
|
@@ -10526,6 +10581,14 @@
|
|
|
10526
10581
|
"name": "*",
|
|
10527
10582
|
"package": "./grid-pro-genesis-datasource"
|
|
10528
10583
|
}
|
|
10584
|
+
},
|
|
10585
|
+
{
|
|
10586
|
+
"kind": "js",
|
|
10587
|
+
"name": "*",
|
|
10588
|
+
"declaration": {
|
|
10589
|
+
"name": "*",
|
|
10590
|
+
"package": "./grid-pro-genesis-datasource.config"
|
|
10591
|
+
}
|
|
10529
10592
|
}
|
|
10530
10593
|
]
|
|
10531
10594
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.config.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mCAAmC;;CAE/C,CAAC"}
|
|
@@ -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,KAAK,EAAU,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EACL,IAAI,EACJ,UAAU,EAaX,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAK5B,gBAAgB,CACvB,aAAa,EAAE,kBAAkB,GAChC,kBAAkB,GAAG,IAAI,GAAG,SAAS;IAI/B,qBAAqB,CAC5B,aAAa,EAAE,kBAAkB,EACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAC3C,IAAI;CAGR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
15
15
|
readonly shouldRunConnect: boolean;
|
|
16
16
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
17
17
|
"__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
18
|
-
connectedCallback(): void;
|
|
18
|
+
connectedCallback(): void; /**
|
|
19
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
20
|
+
*/
|
|
19
21
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
20
22
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
21
23
|
disconnectedCallback(): void;
|
|
@@ -45,20 +47,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
45
47
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
46
48
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
47
49
|
readonly attributes: NamedNodeMap;
|
|
48
|
-
/**
|
|
49
|
-
* Injectable config that allows to change grid options on an app level basis
|
|
50
|
-
* To modify options, register instance of the config in DOM container that is
|
|
51
|
-
* above the grid or on the top level of the application, so it applies to all grids.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```
|
|
55
|
-
* DI.getOrCreateDOMContainer().register([
|
|
56
|
-
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
57
|
-
* headerHeight: 50,
|
|
58
|
-
* }),
|
|
59
|
-
* ]);
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
50
|
readonly classList: DOMTokenList;
|
|
63
51
|
className: string;
|
|
64
52
|
readonly clientHeight: number;
|
|
@@ -142,6 +130,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
142
130
|
textContent: string;
|
|
143
131
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
144
132
|
compareDocumentPosition(other: Node): number;
|
|
133
|
+
/**
|
|
134
|
+
* If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
145
137
|
contains(other: Node): boolean;
|
|
146
138
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
147
139
|
hasChildNodes(): boolean;
|
|
@@ -351,6 +343,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
351
343
|
export declare class GridPro extends GridPro_base {
|
|
352
344
|
columnApi: ColumnApi;
|
|
353
345
|
gridApi: GridApi;
|
|
346
|
+
gridDSErrorMessage: string;
|
|
354
347
|
statePersistence: StatePersistence;
|
|
355
348
|
/**
|
|
356
349
|
* Timeout function used to debounce resize calls
|
|
@@ -426,6 +419,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
426
419
|
protected agGridOptions: GridOptions;
|
|
427
420
|
protected initialised: boolean;
|
|
428
421
|
private rehydrationAttempted;
|
|
422
|
+
private rootEventsListeners;
|
|
429
423
|
private gridEventsQueue;
|
|
430
424
|
private filterConfig;
|
|
431
425
|
/**
|
|
@@ -446,6 +440,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
446
440
|
constructor();
|
|
447
441
|
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
448
442
|
private addGridEventListener;
|
|
443
|
+
private handleDataSourceError;
|
|
444
|
+
private hideDataSourceError;
|
|
449
445
|
connectedCallback(): void;
|
|
450
446
|
disconnectedCallback(): void;
|
|
451
447
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,IAAI,EACJ,OAAO,EACP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,SAAS,EACT,WAAW,EAGX,IAAI,EACJ,OAAO,EACP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AASrE,OAAO,EAKL,cAAc,EAId,iBAAiB,EACjB,e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B,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YAUrC,kBAAkB;IAYhC,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,iBAAiB,IAAI,qBAAqB,CAM7C;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA4EnC;IAED,OAAO,CAAC,eAAe;IAwBvB;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAKhF;;;;;;;;OAQG;IACG,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,yBAAyB,UAAQ;IAuFzF,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"}
|
|
@@ -50,4 +50,11 @@ export declare function formatDateExtra(epoch: number): string;
|
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
52
|
export declare const DEBOUNCED_RESIZE_TIME = 5;
|
|
53
|
+
/**
|
|
54
|
+
* The time between allowing the grids to automatically resize.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare const gridProEventsNames: {
|
|
58
|
+
dsErrorClose: string;
|
|
59
|
+
};
|
|
53
60
|
//# 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;AAI/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAczD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS1D;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CA+B5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC"}
|
|
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;AAI/D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAczD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS1D;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CA+B5D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,GAAG,GAAG,CAE3E;AAKD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"grid-pro.styles.d.ts","sourceRoot":"","sources":["../../src/grid-pro.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,aAkDrC,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { GridPro } from './grid-pro';
|
|
2
3
|
/**
|
|
3
|
-
* The Grid Pro
|
|
4
|
+
* Get a Design System prefixed The Grid Pro template.
|
|
5
|
+
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
6
|
+
* @returns A grid Pro template prefixed with the correct design system.
|
|
4
7
|
* @public
|
|
5
8
|
*/
|
|
9
|
+
export declare const getGridProTemplate: (prefix?: string) => ViewTemplate<GridPro, any>;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
* @remarks
|
|
14
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
15
|
+
*/
|
|
6
16
|
export declare const gridProTemplate: ViewTemplate;
|
|
7
17
|
//# sourceMappingURL=grid-pro.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.template.d.ts","sourceRoot":"","sources":["../../src/grid-pro.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAoC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
|
|
@@ -181,4 +181,12 @@ export declare enum GridProCaseType {
|
|
|
181
181
|
sentenceCase = "sentenceCase",
|
|
182
182
|
snakeCase = "snakeCase"
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Grid Pro Event Listeners
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export type GirProEventsListeners = {
|
|
189
|
+
key: string;
|
|
190
|
+
action: (event: Event) => void;
|
|
191
|
+
}[];
|
|
184
192
|
//# sourceMappingURL=grid-pro.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.types.d.ts","sourceRoot":"","sources":["../../src/grid-pro.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAsB,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIhF;;;GAGG;AACH,oBAAY,aAAa;IACvB,eAAe,0BAA0B;IACzC,SAAS,oBAAoB;IAC7B,wBAAwB,oCAAoC;IAC5D,qBAAqB,iCAAiC;IACtD,uBAAuB,mCAAmC;IAC1D,eAAe,0BAA0B;IACzC,qBAAqB,iCAAiC;IACtD,wBAAwB,oCAAoC;IA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} from '../datasource/base.datasource';
|
|
|
8
8
|
import { dateTimeValueFormatter, dateValueFormatter, getFilterParamsByFieldType, } from '../grid-pro.definitions';
|
|
9
9
|
import { GridProRendererTypes } from '../grid-pro.types';
|
|
10
10
|
import { logger } from '../utils/logger';
|
|
11
|
+
import { gridProGenesisDatasourceEventsNames } from './grid-pro-genesis-datasource.config';
|
|
11
12
|
const criteriaDelimiter = ';';
|
|
12
13
|
const criteriaJoin = ' && ';
|
|
13
14
|
const withoutFullInit = null;
|
|
@@ -309,9 +310,13 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
309
310
|
return result.inserts;
|
|
310
311
|
}
|
|
311
312
|
handleErrors(result) {
|
|
313
|
+
var _a;
|
|
312
314
|
if (result.ERROR) {
|
|
313
|
-
this.agGrid
|
|
314
|
-
|
|
315
|
+
if (this.agGrid) {
|
|
316
|
+
(_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.setRowData([]);
|
|
317
|
+
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
318
|
+
}
|
|
319
|
+
this.parentElement.dispatchEvent(new CustomEvent(gridProGenesisDatasourceEventsNames.error, { detail: result.ERROR }));
|
|
315
320
|
}
|
|
316
321
|
}
|
|
317
322
|
datasourceOptions() {
|
|
@@ -114,3 +114,10 @@ export function formatDateExtra(epoch) {
|
|
|
114
114
|
* @internal
|
|
115
115
|
*/
|
|
116
116
|
export const DEBOUNCED_RESIZE_TIME = 5;
|
|
117
|
+
/**
|
|
118
|
+
* The time between allowing the grids to automatically resize.
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
export const gridProEventsNames = {
|
|
122
|
+
dsErrorClose: 'datasource-error-close',
|
|
123
|
+
};
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -14,8 +14,8 @@ import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer, EditableRenderer,
|
|
|
14
14
|
import { GridProColumn } from './column';
|
|
15
15
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
16
16
|
import { agThemeFontFaceMap, defaultAgGridFontFace } from './external';
|
|
17
|
-
import { GridProGenesisDatasource } from './grid-pro-genesis-datasource';
|
|
18
|
-
import { DEBOUNCED_RESIZE_TIME } from './grid-pro.definitions';
|
|
17
|
+
import { GridProGenesisDatasource, gridProGenesisDatasourceEventsNames, } from './grid-pro-genesis-datasource';
|
|
18
|
+
import { DEBOUNCED_RESIZE_TIME, gridProEventsNames } from './grid-pro.definitions';
|
|
19
19
|
import { foundationGridProStyles as styles } from './grid-pro.styles';
|
|
20
20
|
import { gridProTemplate as template } from './grid-pro.template';
|
|
21
21
|
import { AgGridTheme, GridProRendererTypes, agThemeFontsId, agThemeTokenMapClassname, GRID_READY_EVENT, ERROR_COLUMN_FIELD, EDITED_COLUMN_FIELD, GridOptionsConfig, } from './grid-pro.types';
|
|
@@ -93,6 +93,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
93
93
|
this.columnComponentName = 'grid-pro-column';
|
|
94
94
|
this.theme = AgGridTheme.alpine;
|
|
95
95
|
this.rehydrationAttempted = false;
|
|
96
|
+
this.rootEventsListeners = [];
|
|
96
97
|
this.gridEventsQueue = [];
|
|
97
98
|
this.filterConfig = undefined;
|
|
98
99
|
this.agAttributes = {};
|
|
@@ -101,6 +102,10 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
101
102
|
map[convertToKebabCase(property)] = property;
|
|
102
103
|
return map;
|
|
103
104
|
}, {});
|
|
105
|
+
this.rootEventsListeners.push({ key: gridProEventsNames.dsErrorClose, action: this.hideDataSourceError.bind(this) }, {
|
|
106
|
+
key: gridProGenesisDatasourceEventsNames.error,
|
|
107
|
+
action: this.handleDataSourceError.bind(this),
|
|
108
|
+
});
|
|
104
109
|
}
|
|
105
110
|
addEventListener(type, listener, options) {
|
|
106
111
|
super.addEventListener(type, listener, options);
|
|
@@ -118,6 +123,12 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
118
123
|
this.$emit(type, e);
|
|
119
124
|
});
|
|
120
125
|
}
|
|
126
|
+
handleDataSourceError(e) {
|
|
127
|
+
this.gridDSErrorMessage = e.detail;
|
|
128
|
+
}
|
|
129
|
+
hideDataSourceError() {
|
|
130
|
+
this.gridDSErrorMessage = null;
|
|
131
|
+
}
|
|
121
132
|
connectedCallback() {
|
|
122
133
|
super.connectedCallback();
|
|
123
134
|
this.rehydrationAttempted = false;
|
|
@@ -139,6 +150,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
139
150
|
configurable: true,
|
|
140
151
|
});
|
|
141
152
|
});
|
|
153
|
+
this.rootEventsListeners.forEach(({ key, action }) => {
|
|
154
|
+
this.addEventListener(key, action);
|
|
155
|
+
});
|
|
142
156
|
}
|
|
143
157
|
disconnectedCallback() {
|
|
144
158
|
var _a;
|
|
@@ -149,6 +163,9 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
149
163
|
return;
|
|
150
164
|
this.initialised = false;
|
|
151
165
|
(_a = this.gridApi) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
166
|
+
this.rootEventsListeners.forEach(({ key, action }) => {
|
|
167
|
+
this.removeEventListener(key, action);
|
|
168
|
+
});
|
|
152
169
|
}
|
|
153
170
|
combineAllGridComponents(gridOptionsComponents) {
|
|
154
171
|
const defaultFoundationAgComponents = {
|
|
@@ -471,6 +488,9 @@ __decorate([
|
|
|
471
488
|
__decorate([
|
|
472
489
|
observable
|
|
473
490
|
], GridPro.prototype, "gridApi", void 0);
|
|
491
|
+
__decorate([
|
|
492
|
+
observable
|
|
493
|
+
], GridPro.prototype, "gridDSErrorMessage", void 0);
|
|
474
494
|
__decorate([
|
|
475
495
|
StatePersistence
|
|
476
496
|
], GridPro.prototype, "statePersistence", void 0);
|
|
@@ -8,19 +8,17 @@ import { agExternalStockStyles } from './external';
|
|
|
8
8
|
export const foundationGridProStyles = css `
|
|
9
9
|
${agExternalStockStyles}
|
|
10
10
|
:host {
|
|
11
|
+
position: relative;
|
|
11
12
|
width: 100%;
|
|
12
13
|
height: 100%;
|
|
14
|
+
--datasource-error-background-color: var(--neutral-layer-4);
|
|
15
|
+
--datasource-error-background-opacity: 0.5;
|
|
16
|
+
--datasource-error-dialog-max-width: 50%;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
:host([ds-disconnected]) {
|
|
16
|
-
opacity: 40%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host([ds-disconnected]) > * {
|
|
19
|
+
:host([ds-disconnected])::part(grid) {
|
|
20
20
|
cursor: not-allowed;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
:host([ds-disconnected]) > * > * {
|
|
21
|
+
opacity: 0.4;
|
|
24
22
|
pointer-events: none;
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -33,4 +31,28 @@ export const foundationGridProStyles = css `
|
|
|
33
31
|
.ag-cell-inline-editing {
|
|
34
32
|
height: inherit !important;
|
|
35
33
|
}
|
|
34
|
+
|
|
35
|
+
.hidden {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.grid-datasource-error-dialog::part(dialog) {
|
|
40
|
+
position: absolute;
|
|
41
|
+
z-index: 2;
|
|
42
|
+
max-width: var(--datasource-error-dialog-max-width);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.grid-datasource-error-dialog::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 50%;
|
|
49
|
+
transform: translateY(-50%);
|
|
50
|
+
left: 0;
|
|
51
|
+
height: 100%;
|
|
52
|
+
width: 100%;
|
|
53
|
+
border-radius: 2px;
|
|
54
|
+
background-color: var(--datasource-error-background-color);
|
|
55
|
+
opacity: var(--datasource-error-background-opacity);
|
|
56
|
+
z-index: 1;
|
|
57
|
+
}
|
|
36
58
|
`;
|
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
import { html, ref } from '@microsoft/fast-element';
|
|
2
2
|
/**
|
|
3
|
-
* The Grid Pro
|
|
3
|
+
* Get a Design System prefixed The Grid Pro template.
|
|
4
|
+
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
5
|
+
* @returns A grid Pro template prefixed with the correct design system.
|
|
4
6
|
* @public
|
|
5
7
|
*/
|
|
6
|
-
export const
|
|
8
|
+
export const getGridProTemplate = (prefix = 'foundation') => html `
|
|
7
9
|
<template>
|
|
8
10
|
<span part="grid" class="${(x) => x.classNames}">
|
|
9
11
|
<slot name="grid" ${ref('gridSlot')}></slot>
|
|
10
12
|
<slot></slot>
|
|
11
13
|
</span>
|
|
14
|
+
<slot
|
|
15
|
+
name="grid-datasource-error"
|
|
16
|
+
part="grid-datasource-error"
|
|
17
|
+
class="${(x) => (x.gridDSErrorMessage ? '' : 'hidden')}"
|
|
18
|
+
>
|
|
19
|
+
<${prefix}-dialog
|
|
20
|
+
class="grid-datasource-error-dialog"
|
|
21
|
+
type="error"
|
|
22
|
+
show-close-icon="false"
|
|
23
|
+
open
|
|
24
|
+
>
|
|
25
|
+
<h2 slot="top" class="title">Component unavailable</h2>
|
|
26
|
+
<p>
|
|
27
|
+
Please refresh to reconnect.
|
|
28
|
+
It is recommended that you save your data before refreshing.
|
|
29
|
+
Data is not current and may be incomplete.
|
|
30
|
+
</p>
|
|
31
|
+
<div slot="bottom">
|
|
32
|
+
<${prefix}-button
|
|
33
|
+
appearance="lightweight"
|
|
34
|
+
@click=${() => {
|
|
35
|
+
window.location.reload();
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
Refresh
|
|
39
|
+
</${prefix}-button>
|
|
40
|
+
</div>
|
|
41
|
+
</${prefix}-dialog>
|
|
42
|
+
</slot>
|
|
12
43
|
</template>
|
|
13
44
|
`;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
* @remarks
|
|
49
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
50
|
+
*/
|
|
51
|
+
export const gridProTemplate = getGridProTemplate();
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -7020,6 +7020,47 @@
|
|
|
7020
7020
|
"endIndex": 6
|
|
7021
7021
|
}
|
|
7022
7022
|
},
|
|
7023
|
+
{
|
|
7024
|
+
"kind": "Variable",
|
|
7025
|
+
"canonicalReference": "@genesislcap/grid-pro!getGridProTemplate:var",
|
|
7026
|
+
"docComment": "/**\n * Get a Design System prefixed The Grid Pro template.\n *\n * @param prefix - The design system prefix to use. Defaults to 'foundation'.\n *\n * @returns A grid Pro template prefixed with the correct design system.\n *\n * @public\n */\n",
|
|
7027
|
+
"excerptTokens": [
|
|
7028
|
+
{
|
|
7029
|
+
"kind": "Content",
|
|
7030
|
+
"text": "getGridProTemplate: "
|
|
7031
|
+
},
|
|
7032
|
+
{
|
|
7033
|
+
"kind": "Content",
|
|
7034
|
+
"text": "(prefix?: string) => "
|
|
7035
|
+
},
|
|
7036
|
+
{
|
|
7037
|
+
"kind": "Reference",
|
|
7038
|
+
"text": "ViewTemplate",
|
|
7039
|
+
"canonicalReference": "@microsoft/fast-element!ViewTemplate:class"
|
|
7040
|
+
},
|
|
7041
|
+
{
|
|
7042
|
+
"kind": "Content",
|
|
7043
|
+
"text": "<"
|
|
7044
|
+
},
|
|
7045
|
+
{
|
|
7046
|
+
"kind": "Reference",
|
|
7047
|
+
"text": "GridPro",
|
|
7048
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro:class"
|
|
7049
|
+
},
|
|
7050
|
+
{
|
|
7051
|
+
"kind": "Content",
|
|
7052
|
+
"text": ", any>"
|
|
7053
|
+
}
|
|
7054
|
+
],
|
|
7055
|
+
"fileUrlPath": "src/grid-pro.template.ts",
|
|
7056
|
+
"isReadonly": true,
|
|
7057
|
+
"releaseTag": "Public",
|
|
7058
|
+
"name": "getGridProTemplate",
|
|
7059
|
+
"variableTypeTokenRange": {
|
|
7060
|
+
"startIndex": 1,
|
|
7061
|
+
"endIndex": 6
|
|
7062
|
+
}
|
|
7063
|
+
},
|
|
7023
7064
|
{
|
|
7024
7065
|
"kind": "Variable",
|
|
7025
7066
|
"canonicalReference": "@genesislcap/grid-pro!getMultiselectEditorTemplate:var",
|
|
@@ -8475,6 +8516,36 @@
|
|
|
8475
8516
|
"isProtected": false,
|
|
8476
8517
|
"isAbstract": false
|
|
8477
8518
|
},
|
|
8519
|
+
{
|
|
8520
|
+
"kind": "Property",
|
|
8521
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridDSErrorMessage:member",
|
|
8522
|
+
"docComment": "",
|
|
8523
|
+
"excerptTokens": [
|
|
8524
|
+
{
|
|
8525
|
+
"kind": "Content",
|
|
8526
|
+
"text": "gridDSErrorMessage: "
|
|
8527
|
+
},
|
|
8528
|
+
{
|
|
8529
|
+
"kind": "Content",
|
|
8530
|
+
"text": "string"
|
|
8531
|
+
},
|
|
8532
|
+
{
|
|
8533
|
+
"kind": "Content",
|
|
8534
|
+
"text": ";"
|
|
8535
|
+
}
|
|
8536
|
+
],
|
|
8537
|
+
"isReadonly": false,
|
|
8538
|
+
"isOptional": false,
|
|
8539
|
+
"releaseTag": "Public",
|
|
8540
|
+
"name": "gridDSErrorMessage",
|
|
8541
|
+
"propertyTypeTokenRange": {
|
|
8542
|
+
"startIndex": 1,
|
|
8543
|
+
"endIndex": 2
|
|
8544
|
+
},
|
|
8545
|
+
"isStatic": false,
|
|
8546
|
+
"isProtected": false,
|
|
8547
|
+
"isAbstract": false
|
|
8548
|
+
},
|
|
8478
8549
|
{
|
|
8479
8550
|
"kind": "Property",
|
|
8480
8551
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#gridFontFace:member",
|
|
@@ -10902,6 +10973,29 @@
|
|
|
10902
10973
|
},
|
|
10903
10974
|
"implementsTokenRanges": []
|
|
10904
10975
|
},
|
|
10976
|
+
{
|
|
10977
|
+
"kind": "Variable",
|
|
10978
|
+
"canonicalReference": "@genesislcap/grid-pro!gridProGenesisDatasourceEventsNames:var",
|
|
10979
|
+
"docComment": "/**\n * The Genesis Datasource events names.\n *\n * @public\n */\n",
|
|
10980
|
+
"excerptTokens": [
|
|
10981
|
+
{
|
|
10982
|
+
"kind": "Content",
|
|
10983
|
+
"text": "gridProGenesisDatasourceEventsNames: "
|
|
10984
|
+
},
|
|
10985
|
+
{
|
|
10986
|
+
"kind": "Content",
|
|
10987
|
+
"text": "{\n error: string;\n}"
|
|
10988
|
+
}
|
|
10989
|
+
],
|
|
10990
|
+
"fileUrlPath": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.ts",
|
|
10991
|
+
"isReadonly": true,
|
|
10992
|
+
"releaseTag": "Public",
|
|
10993
|
+
"name": "gridProGenesisDatasourceEventsNames",
|
|
10994
|
+
"variableTypeTokenRange": {
|
|
10995
|
+
"startIndex": 1,
|
|
10996
|
+
"endIndex": 2
|
|
10997
|
+
}
|
|
10998
|
+
},
|
|
10905
10999
|
{
|
|
10906
11000
|
"kind": "Enum",
|
|
10907
11001
|
"canonicalReference": "@genesislcap/grid-pro!GridProRendererTypes:enum",
|
|
@@ -11153,7 +11247,7 @@
|
|
|
11153
11247
|
{
|
|
11154
11248
|
"kind": "Variable",
|
|
11155
11249
|
"canonicalReference": "@genesislcap/grid-pro!gridProTemplate:var",
|
|
11156
|
-
"docComment": "/**\n *
|
|
11250
|
+
"docComment": "/**\n * @remarks\n *\n * HTML Element: \\<foundation-grid-pro\\>\n *\n * @public\n */\n",
|
|
11157
11251
|
"excerptTokens": [
|
|
11158
11252
|
{
|
|
11159
11253
|
"kind": "Content",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -1078,6 +1078,14 @@ export declare function getFilterByFieldType(type: string): string;
|
|
|
1078
1078
|
*/
|
|
1079
1079
|
export declare function getFilterParamsByFieldType(type: string): any;
|
|
1080
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* Get a Design System prefixed The Grid Pro template.
|
|
1083
|
+
* @param prefix - The design system prefix to use. Defaults to 'foundation'.
|
|
1084
|
+
* @returns A grid Pro template prefixed with the correct design system.
|
|
1085
|
+
* @public
|
|
1086
|
+
*/
|
|
1087
|
+
export declare const getGridProTemplate: (prefix?: string) => ViewTemplate<GridPro, any>;
|
|
1088
|
+
|
|
1081
1089
|
/**
|
|
1082
1090
|
* Get a Design System prefixed Select template.
|
|
1083
1091
|
* @param designSystem - The design system prefix to use. Defaults to 'foundation'.
|
|
@@ -1132,6 +1140,15 @@ export declare const getTextFieldRendererTemplate: (designSystem?: string) => Vi
|
|
|
1132
1140
|
*/
|
|
1133
1141
|
export declare const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
1134
1142
|
|
|
1143
|
+
/**
|
|
1144
|
+
* Grid Pro Event Listeners
|
|
1145
|
+
* @internal
|
|
1146
|
+
*/
|
|
1147
|
+
export declare type GirProEventsListeners = {
|
|
1148
|
+
key: string;
|
|
1149
|
+
action: (event: Event) => void;
|
|
1150
|
+
}[];
|
|
1151
|
+
|
|
1135
1152
|
/**
|
|
1136
1153
|
* Event fired when grid is ready
|
|
1137
1154
|
* @public
|
|
@@ -1168,6 +1185,7 @@ export declare const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
1168
1185
|
export declare class GridPro extends GridPro_base {
|
|
1169
1186
|
columnApi: ColumnApi;
|
|
1170
1187
|
gridApi: GridApi;
|
|
1188
|
+
gridDSErrorMessage: string;
|
|
1171
1189
|
statePersistence: StatePersistence;
|
|
1172
1190
|
/**
|
|
1173
1191
|
* Timeout function used to debounce resize calls
|
|
@@ -1243,6 +1261,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
1243
1261
|
protected agGridOptions: GridOptions;
|
|
1244
1262
|
protected initialised: boolean;
|
|
1245
1263
|
private rehydrationAttempted;
|
|
1264
|
+
private rootEventsListeners;
|
|
1246
1265
|
private gridEventsQueue;
|
|
1247
1266
|
private filterConfig;
|
|
1248
1267
|
/**
|
|
@@ -1263,6 +1282,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
1263
1282
|
constructor();
|
|
1264
1283
|
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
1265
1284
|
private addGridEventListener;
|
|
1285
|
+
private handleDataSourceError;
|
|
1286
|
+
private hideDataSourceError;
|
|
1266
1287
|
connectedCallback(): void;
|
|
1267
1288
|
disconnectedCallback(): void;
|
|
1268
1289
|
combineAllGridComponents(gridOptionsComponents: GridComponents): GridComponents;
|
|
@@ -1334,7 +1355,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1334
1355
|
readonly shouldRunConnect: boolean;
|
|
1335
1356
|
"__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
|
|
1336
1357
|
"__#1@#_tryFindContainingLayout"(e: Element): FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
1337
|
-
connectedCallback(): void;
|
|
1358
|
+
connectedCallback(): void; /**
|
|
1359
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
1360
|
+
*/
|
|
1338
1361
|
readonly $fastController: Controller;
|
|
1339
1362
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
1340
1363
|
disconnectedCallback(): void;
|
|
@@ -1364,20 +1387,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1364
1387
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
|
1365
1388
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1366
1389
|
readonly attributes: NamedNodeMap;
|
|
1367
|
-
/**
|
|
1368
|
-
* Injectable config that allows to change grid options on an app level basis
|
|
1369
|
-
* To modify options, register instance of the config in DOM container that is
|
|
1370
|
-
* above the grid or on the top level of the application, so it applies to all grids.
|
|
1371
|
-
*
|
|
1372
|
-
* @example
|
|
1373
|
-
* ```
|
|
1374
|
-
* DI.getOrCreateDOMContainer().register([
|
|
1375
|
-
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
1376
|
-
* headerHeight: 50,
|
|
1377
|
-
* }),
|
|
1378
|
-
* ]);
|
|
1379
|
-
* ```
|
|
1380
|
-
*/
|
|
1381
1390
|
readonly classList: DOMTokenList;
|
|
1382
1391
|
className: string;
|
|
1383
1392
|
readonly clientHeight: number;
|
|
@@ -1461,6 +1470,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
1461
1470
|
textContent: string;
|
|
1462
1471
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
1463
1472
|
compareDocumentPosition(other: Node): number;
|
|
1473
|
+
/**
|
|
1474
|
+
* If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
1475
|
+
* @internal
|
|
1476
|
+
*/
|
|
1464
1477
|
contains(other: Node): boolean;
|
|
1465
1478
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
1466
1479
|
hasChildNodes(): boolean;
|
|
@@ -1747,6 +1760,14 @@ export declare class GridProColumn extends FoundationElement {
|
|
|
1747
1760
|
*/
|
|
1748
1761
|
export declare function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, readonly ColDef[]> | readonly ColDef[], includeRenderers?: boolean): CaptureType<TSource>;
|
|
1749
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* The time between allowing the grids to automatically resize.
|
|
1765
|
+
* @internal
|
|
1766
|
+
*/
|
|
1767
|
+
export declare const gridProEventsNames: {
|
|
1768
|
+
dsErrorClose: string;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1750
1771
|
/**
|
|
1751
1772
|
* The Genesis Datasource element, for CSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
1752
1773
|
* @remarks Only supports Client-Side Row Model.
|
|
@@ -2173,6 +2194,14 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2173
2194
|
focus(options?: FocusOptions): void;
|
|
2174
2195
|
}) & typeof GridProBaseDatasource;
|
|
2175
2196
|
|
|
2197
|
+
/**
|
|
2198
|
+
* The Genesis Datasource events names.
|
|
2199
|
+
* @public
|
|
2200
|
+
*/
|
|
2201
|
+
export declare const gridProGenesisDatasourceEventsNames: {
|
|
2202
|
+
error: string;
|
|
2203
|
+
};
|
|
2204
|
+
|
|
2176
2205
|
/**
|
|
2177
2206
|
* The available Grid Pro Renderer Types
|
|
2178
2207
|
* @public
|
|
@@ -2559,8 +2588,10 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
2559
2588
|
}) & typeof GridProBaseDatasource;
|
|
2560
2589
|
|
|
2561
2590
|
/**
|
|
2562
|
-
*
|
|
2591
|
+
*
|
|
2563
2592
|
* @public
|
|
2593
|
+
* @remarks
|
|
2594
|
+
* HTML Element: \<foundation-grid-pro\>
|
|
2564
2595
|
*/
|
|
2565
2596
|
export declare const gridProTemplate: ViewTemplate;
|
|
2566
2597
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [getGridProTemplate](./grid-pro.getgridprotemplate.md)
|
|
4
|
+
|
|
5
|
+
## getGridProTemplate variable
|
|
6
|
+
|
|
7
|
+
Get a Design System prefixed The Grid Pro template.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
getGridProTemplate: (prefix?: string) => ViewTemplate<GridPro, any>
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [GridPro](./grid-pro.gridpro.md) > [gridDSErrorMessage](./grid-pro.gridpro.griddserrormessage.md)
|
|
4
|
+
|
|
5
|
+
## GridPro.gridDSErrorMessage property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
gridDSErrorMessage: string;
|
|
11
|
+
```
|
|
@@ -46,6 +46,7 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
46
46
|
| [gridApi](./grid-pro.gridpro.gridapi.md) | | GridApi | |
|
|
47
47
|
| [gridAutosizingEnabled](./grid-pro.gridpro.gridautosizingenabled.md) | | boolean | Boolean attribute to control whether the grid autosizes the columns upon interaction. This will disable the column widths from being manually set, and doesn't save the widths in local storage if you are using <code>persist-column-state-key</code>. |
|
|
48
48
|
| [gridComponents](./grid-pro.gridpro.gridcomponents.md) | | { \[componentName: string\]: any; } | |
|
|
49
|
+
| [gridDSErrorMessage](./grid-pro.gridpro.griddserrormessage.md) | | string | |
|
|
49
50
|
| [gridFontFace](./grid-pro.gridpro.gridfontface.md) | | string | |
|
|
50
51
|
| [gridOptions](./grid-pro.gridpro.gridoptions.md) | | GridOptions | |
|
|
51
52
|
| [gridOptionsConfig](./grid-pro.gridpro.gridoptionsconfig.md) | | [GridOptionsConfig](./grid-pro.gridoptionsconfig.md) | Injectable config that allows to change grid options on an app level basis To modify options, register instance of the config in DOM container that is above the grid or on the top level of the application, so it applies to all grids. |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [gridProGenesisDatasourceEventsNames](./grid-pro.gridprogenesisdatasourceeventsnames.md)
|
|
4
|
+
|
|
5
|
+
## gridProGenesisDatasourceEventsNames variable
|
|
6
|
+
|
|
7
|
+
The Genesis Datasource events names.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
gridProGenesisDatasourceEventsNames: {
|
|
13
|
+
error: string;
|
|
14
|
+
}
|
|
15
|
+
```
|
package/docs/api/grid-pro.md
CHANGED
|
@@ -116,6 +116,7 @@
|
|
|
116
116
|
| [getAgBooleanRendererTemplate](./grid-pro.getagbooleanrenderertemplate.md) | Get a Design System prefixed Checkbox template. |
|
|
117
117
|
| [getAgEditableRendererTemplate](./grid-pro.getageditablerenderertemplate.md) | Get a Design System prefixed Checkbox template. |
|
|
118
118
|
| [getDateEditorTemplate](./grid-pro.getdateeditortemplate.md) | Get a Design System prefixed Select template. |
|
|
119
|
+
| [getGridProTemplate](./grid-pro.getgridprotemplate.md) | Get a Design System prefixed The Grid Pro template. |
|
|
119
120
|
| [getMultiselectEditorTemplate](./grid-pro.getmultiselecteditortemplate.md) | Get a Design System prefixed Select template. |
|
|
120
121
|
| [getNumberEditorTemplate](./grid-pro.getnumbereditortemplate.md) | Get a Design System prefixed Select template. |
|
|
121
122
|
| [getSelectEditorTemplate](./grid-pro.getselecteditortemplate.md) | Get a Design System prefixed Select template. |
|
|
@@ -124,7 +125,8 @@
|
|
|
124
125
|
| [getTextFieldRendererTemplate](./grid-pro.gettextfieldrenderertemplate.md) | Get a Design System prefixed Text Field template. |
|
|
125
126
|
| [getTextRendererTemplate](./grid-pro.gettextrenderertemplate.md) | |
|
|
126
127
|
| [GRID\_READY\_EVENT](./grid-pro.grid_ready_event.md) | Event fired when grid is ready |
|
|
127
|
-
| [
|
|
128
|
+
| [gridProGenesisDatasourceEventsNames](./grid-pro.gridprogenesisdatasourceeventsnames.md) | The Genesis Datasource events names. |
|
|
129
|
+
| [gridProTemplate](./grid-pro.gridprotemplate.md) | |
|
|
128
130
|
| [logger](./grid-pro.logger.md) | Logger for the grid-pro package |
|
|
129
131
|
| [textFieldRendererStyles](./grid-pro.textfieldrendererstyles.md) | The AG Text Field Renderer Styles. |
|
|
130
132
|
| [textRendererStyles](./grid-pro.textrendererstyles.md) | |
|
package/docs/api-report.md
CHANGED
|
@@ -743,6 +743,9 @@ export function getFilterByFieldType(type: string): string;
|
|
|
743
743
|
// @alpha
|
|
744
744
|
export function getFilterParamsByFieldType(type: string): any;
|
|
745
745
|
|
|
746
|
+
// @public
|
|
747
|
+
export const getGridProTemplate: (prefix?: string) => ViewTemplate<GridPro, any>;
|
|
748
|
+
|
|
746
749
|
// @public
|
|
747
750
|
export const getMultiselectEditorTemplate: (designSystem?: string) => ViewTemplate<MultiselectEditor, any>;
|
|
748
751
|
|
|
@@ -764,6 +767,14 @@ export const getTextFieldRendererTemplate: (designSystem?: string) => ViewTempla
|
|
|
764
767
|
// @public @deprecated (undocumented)
|
|
765
768
|
export const getTextRendererTemplate: (designSystem?: string) => ViewTemplate<AgTextFieldRenderer, any>;
|
|
766
769
|
|
|
770
|
+
// Warning: (ae-internal-missing-underscore) The name "GirProEventsListeners" should be prefixed with an underscore because the declaration is marked as @internal
|
|
771
|
+
//
|
|
772
|
+
// @internal
|
|
773
|
+
export type GirProEventsListeners = {
|
|
774
|
+
key: string;
|
|
775
|
+
action: (event: Event) => void;
|
|
776
|
+
}[];
|
|
777
|
+
|
|
767
778
|
// @public
|
|
768
779
|
export const GRID_READY_EVENT = "onGridReady";
|
|
769
780
|
|
|
@@ -835,6 +846,8 @@ export class GridPro extends GridPro_base {
|
|
|
835
846
|
[componentName: string]: any;
|
|
836
847
|
};
|
|
837
848
|
// (undocumented)
|
|
849
|
+
gridDSErrorMessage: string;
|
|
850
|
+
// (undocumented)
|
|
838
851
|
gridFontFace: string;
|
|
839
852
|
// (undocumented)
|
|
840
853
|
get gridOptions(): GridOptions;
|
|
@@ -932,6 +945,13 @@ export class GridProColumn extends FoundationElement {
|
|
|
932
945
|
// @public
|
|
933
946
|
export function gridProColumns<TSource = any>(itemsBinding: Binding<TSource, readonly ColDef[]> | readonly ColDef[], includeRenderers?: boolean): CaptureType<TSource>;
|
|
934
947
|
|
|
948
|
+
// Warning: (ae-internal-missing-underscore) The name "gridProEventsNames" should be prefixed with an underscore because the declaration is marked as @internal
|
|
949
|
+
//
|
|
950
|
+
// @internal
|
|
951
|
+
export const gridProEventsNames: {
|
|
952
|
+
dsErrorClose: string;
|
|
953
|
+
};
|
|
954
|
+
|
|
935
955
|
// Warning: (ae-forgotten-export) The symbol "GridProGenesisDatasource_base" needs to be exported by the entry point index.d.ts
|
|
936
956
|
//
|
|
937
957
|
// @public
|
|
@@ -980,6 +1000,11 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
980
1000
|
setFilter(fieldName: string, newFilter: string): void;
|
|
981
1001
|
}
|
|
982
1002
|
|
|
1003
|
+
// @public
|
|
1004
|
+
export const gridProGenesisDatasourceEventsNames: {
|
|
1005
|
+
error: string;
|
|
1006
|
+
};
|
|
1007
|
+
|
|
983
1008
|
// @public
|
|
984
1009
|
export enum GridProRendererTypes {
|
|
985
1010
|
// (undocumented)
|
|
@@ -1042,7 +1067,7 @@ export class GridProServerSideDatasource extends GridProServerSideDatasource_bas
|
|
|
1042
1067
|
get rowModel(): IServerSideRowModel;
|
|
1043
1068
|
}
|
|
1044
1069
|
|
|
1045
|
-
// @public
|
|
1070
|
+
// @public (undocumented)
|
|
1046
1071
|
export const gridProTemplate: ViewTemplate;
|
|
1047
1072
|
|
|
1048
1073
|
// @public
|
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.155.0",
|
|
4
|
+
"version": "14.155.2-alpha-d9bfff1.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"test:debug": "genx test --debug"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/foundation-testing": "14.155.0",
|
|
34
|
-
"@genesislcap/genx": "14.155.0",
|
|
35
|
-
"@genesislcap/rollup-builder": "14.155.0",
|
|
36
|
-
"@genesislcap/ts-builder": "14.155.0",
|
|
37
|
-
"@genesislcap/uvu-playwright-builder": "14.155.0",
|
|
38
|
-
"@genesislcap/vite-builder": "14.155.0",
|
|
39
|
-
"@genesislcap/webpack-builder": "14.155.0",
|
|
33
|
+
"@genesislcap/foundation-testing": "14.155.2-alpha-d9bfff1.0",
|
|
34
|
+
"@genesislcap/genx": "14.155.2-alpha-d9bfff1.0",
|
|
35
|
+
"@genesislcap/rollup-builder": "14.155.2-alpha-d9bfff1.0",
|
|
36
|
+
"@genesislcap/ts-builder": "14.155.2-alpha-d9bfff1.0",
|
|
37
|
+
"@genesislcap/uvu-playwright-builder": "14.155.2-alpha-d9bfff1.0",
|
|
38
|
+
"@genesislcap/vite-builder": "14.155.2-alpha-d9bfff1.0",
|
|
39
|
+
"@genesislcap/webpack-builder": "14.155.2-alpha-d9bfff1.0",
|
|
40
40
|
"rimraf": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@genesislcap/foundation-comms": "14.155.0",
|
|
44
|
-
"@genesislcap/foundation-logger": "14.155.0",
|
|
45
|
-
"@genesislcap/foundation-ui": "14.155.0",
|
|
46
|
-
"@genesislcap/foundation-utils": "14.155.0",
|
|
43
|
+
"@genesislcap/foundation-comms": "14.155.2-alpha-d9bfff1.0",
|
|
44
|
+
"@genesislcap/foundation-logger": "14.155.2-alpha-d9bfff1.0",
|
|
45
|
+
"@genesislcap/foundation-ui": "14.155.2-alpha-d9bfff1.0",
|
|
46
|
+
"@genesislcap/foundation-utils": "14.155.2-alpha-d9bfff1.0",
|
|
47
47
|
"@microsoft/fast-colors": "^5.3.1",
|
|
48
48
|
"@microsoft/fast-components": "^2.30.6",
|
|
49
49
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"customElements": "dist/custom-elements.json",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "e438f9d706092a1c8b11c3a78f084b1f3c3ac091"
|
|
73
73
|
}
|