@genesislcap/grid-pro 14.168.0 → 14.170.0-genxgit.1
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 +126 -3
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.config.d.ts +9 -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 +14 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.d.ts +25 -0
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.d.ts.map +1 -0
- package/dist/dts/grid-pro-genesis-datasource/index.d.ts +2 -0
- package/dist/dts/grid-pro-genesis-datasource/index.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +13 -15
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.definitions.d.ts +15 -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 +28 -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 +8 -0
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +10 -2
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.js +1 -0
- package/dist/esm/grid-pro-genesis-datasource/index.js +2 -0
- package/dist/esm/grid-pro.definitions.js +15 -0
- package/dist/esm/grid-pro.js +24 -2
- package/dist/esm/grid-pro.styles.js +35 -5
- package/dist/esm/grid-pro.template.js +41 -2
- package/dist/grid-pro.api.json +453 -1
- package/dist/grid-pro.d.ts +121 -20
- package/docs/api/grid-pro.getgridprotemplate.md +13 -0
- package/docs/api/grid-pro.gridpro.griderroritems.md +11 -0
- package/docs/api/grid-pro.gridpro.md +1 -0
- package/docs/api/grid-pro.gridproerrorevent.md +15 -0
- package/docs/api/grid-pro.gridproerroritem.detail.md +11 -0
- package/docs/api/grid-pro.gridproerroritem.md +21 -0
- package/docs/api/grid-pro.gridproerroritem.type.md +11 -0
- package/docs/api/grid-pro.gridproerrornames.md +16 -0
- package/docs/api/grid-pro.gridproerrortypes.md +15 -0
- package/docs/api/grid-pro.gridproeventnames.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourceerrorevent.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourceerroreventdetail.md +15 -0
- package/docs/api/grid-pro.gridprogenesisdatasourceeventnames.md +16 -0
- package/docs/api/grid-pro.gridprogenesisrowdatasetevent.md +15 -0
- package/docs/api/grid-pro.gridprogenesisrowdataseteventdetail.md +15 -0
- package/docs/api/grid-pro.gridprotemplate.md +5 -2
- package/docs/api/grid-pro.md +12 -1
- package/docs/api-report.md +61 -1
- package/package.json +13 -13
|
@@ -135,6 +135,26 @@
|
|
|
135
135
|
],
|
|
136
136
|
"description": "Returns a formatted date value from an epoch number.",
|
|
137
137
|
"deprecated": "No longer used in the Grid Pro package."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "variable",
|
|
141
|
+
"name": "gridProEventNames",
|
|
142
|
+
"type": {
|
|
143
|
+
"text": "object"
|
|
144
|
+
},
|
|
145
|
+
"default": "{\n datasourceErrorClose: 'datasource-error-close',\n}",
|
|
146
|
+
"description": "The event names for the Grid Pro component.",
|
|
147
|
+
"privacy": "public"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"kind": "variable",
|
|
151
|
+
"name": "gridProErrorNames",
|
|
152
|
+
"type": {
|
|
153
|
+
"text": "{\n datasource: 'datasource',\n unknown: 'unknown',\n}"
|
|
154
|
+
},
|
|
155
|
+
"default": "{\n datasource: 'datasource',\n unknown: 'unknown',\n}",
|
|
156
|
+
"description": "The error names for the Grid Pro component.",
|
|
157
|
+
"privacy": "public"
|
|
138
158
|
}
|
|
139
159
|
],
|
|
140
160
|
"exports": [
|
|
@@ -177,6 +197,22 @@
|
|
|
177
197
|
"name": "formatDateExtra",
|
|
178
198
|
"module": "src/grid-pro.definitions.ts"
|
|
179
199
|
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "js",
|
|
203
|
+
"name": "gridProEventNames",
|
|
204
|
+
"declaration": {
|
|
205
|
+
"name": "gridProEventNames",
|
|
206
|
+
"module": "src/grid-pro.definitions.ts"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "js",
|
|
211
|
+
"name": "gridProErrorNames",
|
|
212
|
+
"declaration": {
|
|
213
|
+
"name": "gridProErrorNames",
|
|
214
|
+
"module": "src/grid-pro.definitions.ts"
|
|
215
|
+
}
|
|
180
216
|
}
|
|
181
217
|
]
|
|
182
218
|
},
|
|
@@ -190,7 +226,7 @@
|
|
|
190
226
|
"type": {
|
|
191
227
|
"text": "ElementStyles"
|
|
192
228
|
},
|
|
193
|
-
"default": "css`\n ${agExternalStockStyles}\n :host {\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n
|
|
229
|
+
"default": "css`\n ${agExternalStockStyles}\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n --datasource-error-dialog-min-width: auto;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n display: block;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 40%;\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 --dialog-min-width: var(--datasource-error-dialog-min-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`",
|
|
194
230
|
"description": "The Grid Pro styles.",
|
|
195
231
|
"privacy": "public"
|
|
196
232
|
}
|
|
@@ -210,18 +246,42 @@
|
|
|
210
246
|
"kind": "javascript-module",
|
|
211
247
|
"path": "src/grid-pro.template.ts",
|
|
212
248
|
"declarations": [
|
|
249
|
+
{
|
|
250
|
+
"kind": "function",
|
|
251
|
+
"name": "getGridProTemplate",
|
|
252
|
+
"parameters": [
|
|
253
|
+
{
|
|
254
|
+
"name": "prefix",
|
|
255
|
+
"default": "'foundation'",
|
|
256
|
+
"description": "The design system prefix to use. Defaults to 'foundation'."
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"description": "Get a Design System prefixed The Grid Pro template.",
|
|
260
|
+
"return": {
|
|
261
|
+
"type": {
|
|
262
|
+
"text": ""
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"privacy": "public"
|
|
266
|
+
},
|
|
213
267
|
{
|
|
214
268
|
"kind": "variable",
|
|
215
269
|
"name": "gridProTemplate",
|
|
216
270
|
"type": {
|
|
217
271
|
"text": "ViewTemplate"
|
|
218
272
|
},
|
|
219
|
-
"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`",
|
|
220
|
-
"description": "The Grid Pro Template.",
|
|
221
273
|
"privacy": "public"
|
|
222
274
|
}
|
|
223
275
|
],
|
|
224
276
|
"exports": [
|
|
277
|
+
{
|
|
278
|
+
"kind": "js",
|
|
279
|
+
"name": "getGridProTemplate",
|
|
280
|
+
"declaration": {
|
|
281
|
+
"name": "getGridProTemplate",
|
|
282
|
+
"module": "src/grid-pro.template.ts"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
225
285
|
{
|
|
226
286
|
"kind": "js",
|
|
227
287
|
"name": "gridProTemplate",
|
|
@@ -255,6 +315,14 @@
|
|
|
255
315
|
"text": "GridApi"
|
|
256
316
|
}
|
|
257
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "field",
|
|
320
|
+
"name": "gridErrorItems",
|
|
321
|
+
"type": {
|
|
322
|
+
"text": "GridProErrorItem<GridProErrorEvent['detail']>[]"
|
|
323
|
+
},
|
|
324
|
+
"default": "[]"
|
|
325
|
+
},
|
|
258
326
|
{
|
|
259
327
|
"kind": "field",
|
|
260
328
|
"name": "statePersistence",
|
|
@@ -512,6 +580,15 @@
|
|
|
512
580
|
"privacy": "private",
|
|
513
581
|
"default": "false"
|
|
514
582
|
},
|
|
583
|
+
{
|
|
584
|
+
"kind": "field",
|
|
585
|
+
"name": "rootEventsListeners",
|
|
586
|
+
"type": {
|
|
587
|
+
"text": "GridProEventsListeners"
|
|
588
|
+
},
|
|
589
|
+
"privacy": "private",
|
|
590
|
+
"default": "[]"
|
|
591
|
+
},
|
|
515
592
|
{
|
|
516
593
|
"kind": "field",
|
|
517
594
|
"name": "gridEventsQueue",
|
|
@@ -599,6 +676,30 @@
|
|
|
599
676
|
}
|
|
600
677
|
]
|
|
601
678
|
},
|
|
679
|
+
{
|
|
680
|
+
"kind": "method",
|
|
681
|
+
"name": "handleError",
|
|
682
|
+
"privacy": "private",
|
|
683
|
+
"parameters": [
|
|
684
|
+
{
|
|
685
|
+
"name": "type",
|
|
686
|
+
"type": {
|
|
687
|
+
"text": "GridProErrorTypes"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "event",
|
|
692
|
+
"type": {
|
|
693
|
+
"text": "GridProErrorEvent"
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"kind": "method",
|
|
700
|
+
"name": "hideDatasourceError",
|
|
701
|
+
"privacy": "private"
|
|
702
|
+
},
|
|
602
703
|
{
|
|
603
704
|
"kind": "method",
|
|
604
705
|
"name": "combineAllGridComponents",
|
|
@@ -10835,11 +10936,33 @@
|
|
|
10835
10936
|
}
|
|
10836
10937
|
]
|
|
10837
10938
|
},
|
|
10939
|
+
{
|
|
10940
|
+
"kind": "javascript-module",
|
|
10941
|
+
"path": "src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts",
|
|
10942
|
+
"declarations": [],
|
|
10943
|
+
"exports": []
|
|
10944
|
+
},
|
|
10838
10945
|
{
|
|
10839
10946
|
"kind": "javascript-module",
|
|
10840
10947
|
"path": "src/grid-pro-genesis-datasource/index.ts",
|
|
10841
10948
|
"declarations": [],
|
|
10842
10949
|
"exports": [
|
|
10950
|
+
{
|
|
10951
|
+
"kind": "js",
|
|
10952
|
+
"name": "*",
|
|
10953
|
+
"declaration": {
|
|
10954
|
+
"name": "*",
|
|
10955
|
+
"package": "./grid-pro-genesis-datasource.config"
|
|
10956
|
+
}
|
|
10957
|
+
},
|
|
10958
|
+
{
|
|
10959
|
+
"kind": "js",
|
|
10960
|
+
"name": "*",
|
|
10961
|
+
"declaration": {
|
|
10962
|
+
"name": "*",
|
|
10963
|
+
"package": "./grid-pro-genesis-datasource.types"
|
|
10964
|
+
}
|
|
10965
|
+
},
|
|
10843
10966
|
{
|
|
10844
10967
|
"kind": "js",
|
|
10845
10968
|
"name": "*",
|
|
@@ -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,kCAAkC;;;CAG9C,CAAC"}
|
|
@@ -22,6 +22,13 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
22
22
|
readonly accessKeyLabel: string;
|
|
23
23
|
autocapitalize: string;
|
|
24
24
|
dir: string;
|
|
25
|
+
/**
|
|
26
|
+
* Initializes the datasource.
|
|
27
|
+
* @public
|
|
28
|
+
* @param columnDefinitions - Optionally set the `gridOptions` up with column definitions
|
|
29
|
+
* @param columnStates - Optionally set the grid up with column state
|
|
30
|
+
* @remarks This method is called automatically when the element is connected to the DOM.
|
|
31
|
+
*/
|
|
25
32
|
draggable: boolean;
|
|
26
33
|
hidden: boolean;
|
|
27
34
|
inert: boolean;
|
|
@@ -85,7 +92,9 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
85
92
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
86
93
|
hasAttribute(qualifiedName: string): boolean;
|
|
87
94
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
88
|
-
hasAttributes(): boolean;
|
|
95
|
+
hasAttributes(): boolean; /**
|
|
96
|
+
* Force the grid to redispatch the current rows
|
|
97
|
+
*/
|
|
89
98
|
hasPointerCapture(pointerId: number): boolean;
|
|
90
99
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
91
100
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
@@ -150,6 +159,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
150
159
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
151
160
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
152
161
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
162
|
+
readonly ELEMENT_NODE: number;
|
|
163
|
+
readonly ENTITY_NODE: number;
|
|
164
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
|
165
|
+
readonly NOTATION_NODE: number;
|
|
153
166
|
/**
|
|
154
167
|
* Initializes the datasource and loads the data for the grid.
|
|
155
168
|
* Handles both snapshot and stream data (for both REQUEST_SERVER and DATASERVER resource types).
|
|
@@ -157,10 +170,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
157
170
|
* @param withFullInit - if true, will call datasource.init() with requiresMetadataFetch = true, fetching fresh metadata
|
|
158
171
|
* @internal
|
|
159
172
|
*/
|
|
160
|
-
readonly ELEMENT_NODE: number;
|
|
161
|
-
readonly ENTITY_NODE: number;
|
|
162
|
-
readonly ENTITY_REFERENCE_NODE: number;
|
|
163
|
-
readonly NOTATION_NODE: number;
|
|
164
173
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
165
174
|
readonly TEXT_NODE: number;
|
|
166
175
|
dispatchEvent(event: Event): boolean;
|
|
@@ -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,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,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,EACV,MAAM,EACN,WAAW,EAEX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,IAAI,EACJ,UAAU,EAYX,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;IAsIpE;;;;;;OA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IAyDrE;;;OAGG;IACH,MAAM;IAIN;;;;OAIG;IACH,KAAK;IAmCL;;;OAGG;IACH,OAAO;IAYP;;OAEG;IACH,WAAW;IAIX;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAWpB;;;;OAIG;YACW,UAAU;IAqCxB;;;;;OAKG;YACW,kBAAkB;IAahC;;;;;;OAMG;YACW,gBAAgB;IA0D9B,OAAO,CAAC,cAAc;IActB,YAAY,CAAC,MAAM,KAAA;IAYnB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,mBAAmB;YAsBb,eAAe;IAc7B,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The event detail for the grid pro genesis datasource `error` event.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export type GridProGenesisDatasourceErrorEventDetail = {
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The error event grid pro genesis datasource.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type GridProGenesisDatasourceErrorEvent = CustomEvent<GridProGenesisDatasourceErrorEventDetail>;
|
|
13
|
+
/**
|
|
14
|
+
* The event detail for the grid pro genesis datasource `rowDataSet` event.
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type GridProGenesisRowDataSetEventDetail = {
|
|
18
|
+
data: any[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The rowDataSet event grid pro genesis datasource.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type GridProGenesisRowDataSetEvent = CustomEvent<GridProGenesisRowDataSetEventDetail>;
|
|
25
|
+
//# sourceMappingURL=grid-pro-genesis-datasource.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.types.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAC5C,WAAW,CAAC,wCAAwC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,GAAG,EAAE,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,WAAW,CAAC,mCAAmC,CAAC,CAAC"}
|
|
@@ -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,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColDef, ColumnApi, ColumnState, Grid, GridApi, GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
3
|
import { GridProBaseDatasource } from './datasource/base.datasource';
|
|
4
|
-
import { GridComponents, GridOptionsConfig, GridProCaseType } from './grid-pro.types';
|
|
4
|
+
import { GridComponents, GridOptionsConfig, GridProCaseType, GridProErrorItem, GridProErrorEvent } from './grid-pro.types';
|
|
5
5
|
import { StatePersistence } from './state-persistence';
|
|
6
6
|
declare const GridPro_base: (new (...args: any[]) => {
|
|
7
7
|
"__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
@@ -15,6 +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
|
+
/**
|
|
19
|
+
* @deprecated - use `enableRowFlashing` instead.
|
|
20
|
+
*/
|
|
18
21
|
connectedCallback(): void;
|
|
19
22
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
20
23
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
@@ -63,20 +66,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
63
66
|
readonly scrollHeight: number;
|
|
64
67
|
scrollLeft: number;
|
|
65
68
|
scrollTop: number;
|
|
66
|
-
readonly scrollWidth: number;
|
|
67
|
-
* Injectable config that allows to change grid options on an app level basis
|
|
68
|
-
* To modify options, register instance of the config in DOM container that is
|
|
69
|
-
* above the grid or on the top level of the application, so it applies to all grids.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```
|
|
73
|
-
* DI.getOrCreateDOMContainer().register([
|
|
74
|
-
* Registration.instance<GridOptionsConfig>(GridOptionsConfig, {
|
|
75
|
-
* headerHeight: 50,
|
|
76
|
-
* }),
|
|
77
|
-
* ]);
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
69
|
+
readonly scrollWidth: number;
|
|
80
70
|
readonly shadowRoot: ShadowRoot;
|
|
81
71
|
slot: string;
|
|
82
72
|
readonly tagName: string;
|
|
@@ -166,6 +156,10 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
166
156
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
167
157
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
168
158
|
readonly ELEMENT_NODE: number;
|
|
159
|
+
/**
|
|
160
|
+
* If {@link @genesislcap/grid-pro#GridPro.gridAutosizingEnabled} is true, will remove the widths from the column states.
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
169
163
|
readonly ENTITY_NODE: number;
|
|
170
164
|
readonly ENTITY_REFERENCE_NODE: number;
|
|
171
165
|
readonly NOTATION_NODE: number;
|
|
@@ -350,6 +344,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
350
344
|
export declare class GridPro extends GridPro_base {
|
|
351
345
|
columnApi: ColumnApi;
|
|
352
346
|
gridApi: GridApi;
|
|
347
|
+
gridErrorItems: GridProErrorItem<GridProErrorEvent['detail']>[];
|
|
353
348
|
statePersistence: StatePersistence;
|
|
354
349
|
/**
|
|
355
350
|
* Timeout function used to debounce resize calls
|
|
@@ -429,6 +424,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
429
424
|
protected agGridOptions: GridOptions;
|
|
430
425
|
protected initialised: boolean;
|
|
431
426
|
private rehydrationAttempted;
|
|
427
|
+
private rootEventsListeners;
|
|
432
428
|
private gridEventsQueue;
|
|
433
429
|
private _filterConfig;
|
|
434
430
|
getfilterModel(): Promise<{
|
|
@@ -455,6 +451,8 @@ export declare class GridPro extends GridPro_base {
|
|
|
455
451
|
constructor();
|
|
456
452
|
addEventListener(type: any, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
457
453
|
private addGridEventListener;
|
|
454
|
+
private handleError;
|
|
455
|
+
private hideDatasourceError;
|
|
458
456
|
connectedCallback(): void;
|
|
459
457
|
disconnectedCallback(): void;
|
|
460
458
|
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;AAarE,OAAO,EAKL,cAAc,EAId,iBAAiB,EACjB,eAAe,EAEf,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;IA2ErD;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2OH;;;OAGG;;;;;;;;;;;;;;;;;;;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AAW,EAAE,CAAC;YAUrC,kBAAkB;IAYhC,OAAO,CAAC,iBAAiB;IAInB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;IAShD;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,iBAAiB,IAAI,qBAAqB,CAM7C;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EA+EnC;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"}
|
|
@@ -42,4 +42,19 @@ export declare function formatDateExtra(epoch: number): string;
|
|
|
42
42
|
* @internal
|
|
43
43
|
*/
|
|
44
44
|
export declare const DEBOUNCED_RESIZE_TIME = 5;
|
|
45
|
+
/**
|
|
46
|
+
* The event names for the Grid Pro component.
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export declare const gridProEventNames: {
|
|
50
|
+
datasourceErrorClose: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The error names for the Grid Pro component.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare const gridProErrorNames: {
|
|
57
|
+
readonly datasource: "datasource";
|
|
58
|
+
readonly unknown: "unknown";
|
|
59
|
+
};
|
|
45
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;AAG/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;;;;;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;AAG/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;;;;;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,iBAAiB;;CAE7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,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,aA0DrC,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;AAG1C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,iDAoC9B,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,YAAmC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { CSSVarTokenMap } from '@genesislcap/foundation-ui';
|
|
3
|
+
import type { GridProGenesisDatasourceErrorEvent } from './grid-pro-genesis-datasource/grid-pro-genesis-datasource.types';
|
|
4
|
+
import { gridProErrorNames } from './grid-pro.definitions';
|
|
3
5
|
/**
|
|
4
6
|
* All official AG CSS variables
|
|
5
7
|
* @public
|
|
@@ -181,4 +183,30 @@ export declare enum GridProCaseType {
|
|
|
181
183
|
sentenceCase = "sentenceCase",
|
|
182
184
|
snakeCase = "snakeCase"
|
|
183
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Grid Pro Event Listeners
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
export type GridProEventsListeners = {
|
|
191
|
+
key: string;
|
|
192
|
+
action: (event: Event) => void;
|
|
193
|
+
}[];
|
|
194
|
+
/**
|
|
195
|
+
* Grid Pro Error Types
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
export type GridProErrorTypes = keyof typeof gridProErrorNames;
|
|
199
|
+
/**
|
|
200
|
+
* Grid Pro Error Item
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
export interface GridProErrorItem<GridProErrorItemDetailType> {
|
|
204
|
+
detail: GridProErrorItemDetailType;
|
|
205
|
+
type: GridProErrorTypes;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Grid Pro possible error events
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export type GridProErrorEvent = GridProGenesisDatasourceErrorEvent | CustomEvent<GridProErrorItem<any>>;
|
|
184
212
|
//# 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;
|
|
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;AAGhF,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iEAAiE,CAAC;AAC1H,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;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;IAC5D,+BAA+B,4CAA4C;IAC3E,2BAA2B,wCAAwC;IACnE,0BAA0B,uCAAuC;IACjE,qBAAqB,kCAAkC;IACvD,aAAa,yBAAyB;IACt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W,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { catchError, debounceTime, skip, tap } from 'rxjs/operators';
|
|
|
7
7
|
import { GridProBaseDatasource } from '../datasource/base.datasource';
|
|
8
8
|
import { getClientSideFilterParamsByFieldType } from '../datasource/client-side.grid-definitions';
|
|
9
9
|
import { logger } from '../utils/logger';
|
|
10
|
+
import { gridProGenesisDatasourceEventNames } from './grid-pro-genesis-datasource.config';
|
|
10
11
|
const criteriaDelimiter = ';';
|
|
11
12
|
const criteriaJoin = ' && ';
|
|
12
13
|
const withoutFullInit = null;
|
|
@@ -263,6 +264,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
263
264
|
this.agTransaction = { add: [...data], remove: [], update: [], addIndex: 0 };
|
|
264
265
|
this.applyAllAgTransactions();
|
|
265
266
|
this.requiresFullRowDataAndColDefs = false;
|
|
267
|
+
this.$emit(gridProGenesisDatasourceEventNames.rowDataSet, { data });
|
|
266
268
|
});
|
|
267
269
|
}
|
|
268
270
|
/**
|
|
@@ -354,9 +356,15 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
354
356
|
return result.inserts;
|
|
355
357
|
}
|
|
356
358
|
handleErrors(result) {
|
|
359
|
+
var _a;
|
|
357
360
|
if (result.ERROR) {
|
|
358
|
-
this.agGrid
|
|
359
|
-
|
|
361
|
+
if (this.agGrid) {
|
|
362
|
+
(_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.setRowData([]);
|
|
363
|
+
this.agGrid.setAttribute('ds-disconnected', 'ds-disconnected');
|
|
364
|
+
}
|
|
365
|
+
this.$emit(gridProGenesisDatasourceEventNames.error, {
|
|
366
|
+
message: result.ERROR,
|
|
367
|
+
});
|
|
360
368
|
}
|
|
361
369
|
}
|
|
362
370
|
datasourceOptions() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -77,3 +77,18 @@ export function formatDateExtra(epoch) {
|
|
|
77
77
|
* @internal
|
|
78
78
|
*/
|
|
79
79
|
export const DEBOUNCED_RESIZE_TIME = 5;
|
|
80
|
+
/**
|
|
81
|
+
* The event names for the Grid Pro component.
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export const gridProEventNames = {
|
|
85
|
+
datasourceErrorClose: 'datasource-error-close',
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The error names for the Grid Pro component.
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export const gridProErrorNames = {
|
|
92
|
+
datasource: 'datasource',
|
|
93
|
+
unknown: 'unknown',
|
|
94
|
+
};
|