@genesislcap/grid-pro 14.83.4-alpha-7f87e78.0 → 14.83.4
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 +661 -702
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +11 -19
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +1 -18
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +12 -18
- package/dist/esm/grid-pro.js +4 -30
- package/dist/grid-pro.api.json +3 -112
- package/dist/grid-pro.d.ts +12 -37
- package/docs/api/grid-pro.gridpro.applytemplatedefinitions.md +3 -12
- package/docs/api/grid-pro.gridpro.md +1 -2
- package/docs/api/grid-pro.gridprogenesisdatasource.md +0 -1
- package/docs/api-report.md +3 -6
- package/package.json +8 -8
- package/docs/api/grid-pro.gridpro.mergeallcolumndefsandstates.md +0 -31
- package/docs/api/grid-pro.gridprogenesisdatasource.deferredcolumnstates.md +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
2
2
|
import { Auth, Connect, Datasource } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
4
|
/**
|
|
@@ -38,11 +38,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
38
38
|
lang: string;
|
|
39
39
|
readonly offsetHeight: number;
|
|
40
40
|
readonly offsetLeft: number;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the row id attribute, depending on the resource type.
|
|
43
|
-
* @remarks Will favour the `row-id` attribute if set.
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
41
|
readonly offsetParent: Element;
|
|
47
42
|
readonly offsetTop: number;
|
|
48
43
|
readonly offsetWidth: number;
|
|
@@ -77,11 +72,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
77
72
|
scrollTop: number;
|
|
78
73
|
readonly scrollWidth: number;
|
|
79
74
|
readonly shadowRoot: ShadowRoot;
|
|
80
|
-
/**
|
|
81
|
-
* Resets the datasource to its initial state.
|
|
82
|
-
* @public
|
|
83
|
-
* @deprecated Use `deinit` instead
|
|
84
|
-
*/
|
|
85
75
|
slot: string;
|
|
86
76
|
readonly tagName: string;
|
|
87
77
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -92,7 +82,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
92
82
|
getAttributeNS(namespace: string, localName: string): string;
|
|
93
83
|
getAttributeNames(): string[];
|
|
94
84
|
getAttributeNode(qualifiedName: string): Attr;
|
|
95
|
-
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
85
|
+
getAttributeNodeNS(namespace: string, localName: string): Attr; /**
|
|
86
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
96
89
|
getBoundingClientRect(): DOMRect;
|
|
97
90
|
getClientRects(): DOMRectList;
|
|
98
91
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
@@ -109,11 +102,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
109
102
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
110
103
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
111
104
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
112
|
-
/**
|
|
113
|
-
* Sets the columnDefs and rowData for the grid.
|
|
114
|
-
* @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
105
|
matches(selectors: string): boolean;
|
|
118
106
|
releasePointerCapture(pointerId: number): void;
|
|
119
107
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -258,7 +246,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
258
246
|
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
259
247
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
260
248
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
261
|
-
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
249
|
+
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any; /**
|
|
250
|
+
* Maps the transaction data to the row data mapper function, if it exists.
|
|
251
|
+
* @param transaction - The transaction data to be mapped.
|
|
252
|
+
* @param operations - The operations to be mapped. Can be 'add', 'update' or 'remove'.
|
|
253
|
+
* @returns The mapped transaction (if the row data mapper function exists), or the original transaction.
|
|
254
|
+
*/
|
|
262
255
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
263
256
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
264
257
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -360,7 +353,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
360
353
|
connect: Connect;
|
|
361
354
|
datasource: Datasource;
|
|
362
355
|
deferredGridOptions: GridOptions;
|
|
363
|
-
deferredColumnStates: ColumnState[];
|
|
364
356
|
criteria: string;
|
|
365
357
|
criteriaChanged(oldCriteria: string, newCriteria: string): void;
|
|
366
358
|
fields: string;
|
|
@@ -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,
|
|
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,EA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,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,eAAe;IA6CvB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -451,24 +451,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
451
451
|
get gridProGenesisDatasource(): GridProGenesisDatasource;
|
|
452
452
|
set gridOptions(options: GridOptions);
|
|
453
453
|
private enableFlashingRows;
|
|
454
|
-
|
|
455
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
456
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
457
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
458
|
-
* @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.
|
|
459
|
-
* @returns The merged column definitions.
|
|
460
|
-
*/
|
|
461
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
|
|
462
|
-
/**
|
|
463
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
464
|
-
* @public
|
|
465
|
-
* @remarks This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
466
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
467
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property
|
|
468
|
-
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
469
|
-
* @returns The merged column definitions.
|
|
470
|
-
*/
|
|
471
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
|
|
454
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
|
|
472
455
|
get observedAttributes(): string[];
|
|
473
456
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
474
457
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -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,EAEX,OAAO,EACP,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAIL,IAAI,EAEL,MAAM,yBAAyB,CAAC;AASjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAKL,cAAc,EACf,MAAM,kBAAkB,CAAC;AAU1B;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,UAAW,MAAM,WACa,CAAC;;;;;;;;uBAgD5D;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7CL;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,YAAiC;IAChD,SAAS,EAAG,SAAS,CAAC;IACtB,OAAO,EAAG,OAAO,CAAC;IACrB,OAAO,CAAC,OAAO,CAAU;IAElC;;;OAGG;IACH,OAAO,CAAC,SA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C,OAAO,CAAC,YAAY,CAAiD;;IAarE,iBAAiB,IAAI,IAAI;IAyBzB,oBAAoB,IAAI,IAAI;IAS5B,wBAAwB,CAAC,qBAAqB,EAAE,cAAc,GAAG,cAAc;IAc/E,uBAAuB,IAAI,OAAO;IAOlC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,eAAe;IAkBvB;;;;;OAKG;IACH,mBAAmB,IAAI,WAAW,EAAE;IAapC,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,yBAAyB;IAOjC;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,wBAAwB,IAAI,wBAAwB,CAEvD;IAED,IAAI,WAAW,CAAC,OAAO,EAAE,WAAW,EAmFnC;IAED,OAAO,CAAC,kBAAkB;IAwB1B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,UAAQ;IA8CzE,IAAI,kBAAkB,aAerB;IAED,0BAA0B,CAAC,OAAO,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAqBtD,mBAAmB,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;IAiBpC,OAAO,CAAC,eAAe,CAAa;IAEpC,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;CAMxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,EAAE,cAA0B,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;kBAM5B,CAAC"}
|
|
@@ -216,12 +216,9 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
216
216
|
* @internal
|
|
217
217
|
*/
|
|
218
218
|
setRowData(rowData) {
|
|
219
|
-
const
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
if (agColumnDefs) {
|
|
223
|
-
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
224
|
-
}
|
|
219
|
+
const agColumnDefs = this.getAgColumnDefs(this.datasource.fieldMetadata);
|
|
220
|
+
if (agColumnDefs) {
|
|
221
|
+
this.agGrid.gridApi.setColumnDefs(agColumnDefs);
|
|
225
222
|
}
|
|
226
223
|
const data = this.rowDataMapper ? this.rowDataMapper(rowData) : rowData;
|
|
227
224
|
this.agGrid.gridApi.setRowData(data);
|
|
@@ -443,33 +440,33 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
443
440
|
getAgColumnDefs(fieldsMetadata) {
|
|
444
441
|
const colDefsFromGenesisData = fieldsMetadata === null || fieldsMetadata === void 0 ? void 0 : fieldsMetadata.flatMap((field) => {
|
|
445
442
|
var _a;
|
|
446
|
-
const
|
|
447
|
-
|
|
443
|
+
const cellConfigs = {};
|
|
444
|
+
cellConfigs.filterParams = getFilterParamsByFieldType(field.type);
|
|
448
445
|
switch (field.type) {
|
|
449
446
|
case FieldTypeEnum.BOOLEAN:
|
|
450
447
|
if (this.agGrid.autoCellRendererByType) {
|
|
451
|
-
|
|
448
|
+
cellConfigs.cellRenderer = GridProRendererTypes.boolean;
|
|
452
449
|
}
|
|
453
450
|
break;
|
|
454
451
|
case FieldTypeEnum.DATE:
|
|
455
|
-
|
|
452
|
+
cellConfigs.valueFormatter = dateValueFormatter;
|
|
456
453
|
break;
|
|
457
454
|
case FieldTypeEnum.DATETIME:
|
|
458
|
-
|
|
455
|
+
cellConfigs.valueFormatter = dateTimeValueFormatter;
|
|
459
456
|
break;
|
|
460
457
|
default:
|
|
461
458
|
break;
|
|
462
459
|
}
|
|
463
|
-
const
|
|
464
|
-
if (this.agGrid.onlyTemplateColDefs && !
|
|
460
|
+
const templateColDef = (_a = this.agGrid.gridApi) === null || _a === void 0 ? void 0 : _a.getColumnDef(field.name);
|
|
461
|
+
if (this.agGrid.onlyTemplateColDefs && !templateColDef) {
|
|
465
462
|
return [];
|
|
466
463
|
}
|
|
467
464
|
if (this.fields && !this.fields.includes(field.name)) {
|
|
468
465
|
return [];
|
|
469
466
|
}
|
|
470
|
-
return Object.assign(Object.assign({ field: field.name },
|
|
467
|
+
return Object.assign(Object.assign({ field: field.name }, cellConfigs), templateColDef);
|
|
471
468
|
});
|
|
472
|
-
const colDefsMergedWithTemplateDefs = this.agGrid.
|
|
469
|
+
const colDefsMergedWithTemplateDefs = this.agGrid.applyTemplateDefinitions(colDefsFromGenesisData, true);
|
|
473
470
|
return colDefsMergedWithTemplateDefs;
|
|
474
471
|
}
|
|
475
472
|
buildCriteria() {
|
|
@@ -499,9 +496,6 @@ __decorate([
|
|
|
499
496
|
__decorate([
|
|
500
497
|
observable
|
|
501
498
|
], GridProGenesisDatasource.prototype, "deferredGridOptions", void 0);
|
|
502
|
-
__decorate([
|
|
503
|
-
observable
|
|
504
|
-
], GridProGenesisDatasource.prototype, "deferredColumnStates", void 0);
|
|
505
499
|
__decorate([
|
|
506
500
|
attr
|
|
507
501
|
], GridProGenesisDatasource.prototype, "criteria", void 0);
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -269,10 +269,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
269
269
|
onFirstDataRendered(event);
|
|
270
270
|
}
|
|
271
271
|
}, onColumnPinned: gridOnChangeCallback, onColumnResized: gridOnChangeCallback, onColumnMoved: gridOnChangeCallback, onDisplayedColumnsChanged: gridOnChangeCallback, onFilterChanged: gridOnChangeCallback, onGridSizeChanged: gridOnChangeCallback, onSortChanged: gridOnChangeCallback }), rest);
|
|
272
|
-
if (this.gridProGenesisDatasource) {
|
|
273
|
-
derivedOptions.columnDefs = columnDefs;
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
272
|
+
if (!this.gridProGenesisDatasource) {
|
|
276
273
|
derivedOptions.columnDefs = this.applyTemplateDefinitions(columnDefs);
|
|
277
274
|
}
|
|
278
275
|
this.agGridOptions = Object.assign(Object.assign({}, this.agGridOptions), ComponentUtil.copyAttributesToGridOptions(derivedOptions, this.agAttributes));
|
|
@@ -308,27 +305,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
308
305
|
});
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
|
-
|
|
312
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
313
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
314
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
315
|
-
* @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.
|
|
316
|
-
* @returns The merged column definitions.
|
|
317
|
-
*/
|
|
318
|
-
applyTemplateDefinitions(columnDefs, deferredColumnDefsOrState = false) {
|
|
319
|
-
return this.mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState);
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
323
|
-
* @public
|
|
324
|
-
* @remarks This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
325
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
326
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property
|
|
327
|
-
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
328
|
-
* @returns The merged column definitions.
|
|
329
|
-
*/
|
|
330
|
-
mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState = false) {
|
|
331
|
-
var _a;
|
|
308
|
+
applyTemplateDefinitions(columnDefs, deferredColumnDefs = false) {
|
|
332
309
|
const columnDefinitions = columnDefs || [];
|
|
333
310
|
const agColumnNodes = this.querySelectorAll(this.columnComponentName);
|
|
334
311
|
const overrides = Array.from(agColumnNodes).map((x) => { var _a; return (_a = x.definition) === null || _a === void 0 ? void 0 : _a.field; });
|
|
@@ -357,14 +334,11 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
357
334
|
}),
|
|
358
335
|
];
|
|
359
336
|
}
|
|
360
|
-
if (this.gridProGenesisDatasource &&
|
|
337
|
+
if (this.gridProGenesisDatasource && deferredColumnDefs) {
|
|
361
338
|
const savedColumnState = this.getSavedColumnState();
|
|
362
|
-
if (
|
|
339
|
+
if (savedColumnState.length > 0) {
|
|
363
340
|
return mergeAndDedupColDefWithColumnState(colDefsToReturn, savedColumnState);
|
|
364
341
|
}
|
|
365
|
-
else if (((_a = this.gridProGenesisDatasource.deferredColumnStates) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
366
|
-
return mergeAndDedupColDefWithColumnState(colDefsToReturn, this.gridProGenesisDatasource.deferredColumnStates);
|
|
367
|
-
}
|
|
368
342
|
}
|
|
369
343
|
return colDefsToReturn;
|
|
370
344
|
}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -5033,7 +5033,7 @@
|
|
|
5033
5033
|
{
|
|
5034
5034
|
"kind": "Method",
|
|
5035
5035
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#applyTemplateDefinitions:member(1)",
|
|
5036
|
-
"docComment": "
|
|
5036
|
+
"docComment": "",
|
|
5037
5037
|
"excerptTokens": [
|
|
5038
5038
|
{
|
|
5039
5039
|
"kind": "Content",
|
|
@@ -5050,7 +5050,7 @@
|
|
|
5050
5050
|
},
|
|
5051
5051
|
{
|
|
5052
5052
|
"kind": "Content",
|
|
5053
|
-
"text": ",
|
|
5053
|
+
"text": ", deferredColumnDefs?: "
|
|
5054
5054
|
},
|
|
5055
5055
|
{
|
|
5056
5056
|
"kind": "Content",
|
|
@@ -5092,7 +5092,7 @@
|
|
|
5092
5092
|
"isOptional": false
|
|
5093
5093
|
},
|
|
5094
5094
|
{
|
|
5095
|
-
"parameterName": "
|
|
5095
|
+
"parameterName": "deferredColumnDefs",
|
|
5096
5096
|
"parameterTypeTokenRange": {
|
|
5097
5097
|
"startIndex": 4,
|
|
5098
5098
|
"endIndex": 5
|
|
@@ -5930,80 +5930,6 @@
|
|
|
5930
5930
|
"isProtected": true,
|
|
5931
5931
|
"isAbstract": false
|
|
5932
5932
|
},
|
|
5933
|
-
{
|
|
5934
|
-
"kind": "Method",
|
|
5935
|
-
"canonicalReference": "@genesislcap/grid-pro!GridPro#mergeAllColumnDefsAndStates:member(1)",
|
|
5936
|
-
"docComment": "/**\n * Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.\n *\n * @remarks\n *\n * This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.\n *\n * @param columnDefs - The column definitions to apply to the grid.\n *\n * @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. Defaults to false but `grid-pro-genesis-datasource` will set this to true.\n *\n * @returns The merged column definitions.\n *\n * @public\n */\n",
|
|
5937
|
-
"excerptTokens": [
|
|
5938
|
-
{
|
|
5939
|
-
"kind": "Content",
|
|
5940
|
-
"text": "mergeAllColumnDefsAndStates(columnDefs: "
|
|
5941
|
-
},
|
|
5942
|
-
{
|
|
5943
|
-
"kind": "Reference",
|
|
5944
|
-
"text": "ColDef",
|
|
5945
|
-
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
5946
|
-
},
|
|
5947
|
-
{
|
|
5948
|
-
"kind": "Content",
|
|
5949
|
-
"text": "[]"
|
|
5950
|
-
},
|
|
5951
|
-
{
|
|
5952
|
-
"kind": "Content",
|
|
5953
|
-
"text": ", deferredColumnDefsOrState?: "
|
|
5954
|
-
},
|
|
5955
|
-
{
|
|
5956
|
-
"kind": "Content",
|
|
5957
|
-
"text": "boolean"
|
|
5958
|
-
},
|
|
5959
|
-
{
|
|
5960
|
-
"kind": "Content",
|
|
5961
|
-
"text": "): "
|
|
5962
|
-
},
|
|
5963
|
-
{
|
|
5964
|
-
"kind": "Reference",
|
|
5965
|
-
"text": "ColDef",
|
|
5966
|
-
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
5967
|
-
},
|
|
5968
|
-
{
|
|
5969
|
-
"kind": "Content",
|
|
5970
|
-
"text": "<any>[]"
|
|
5971
|
-
},
|
|
5972
|
-
{
|
|
5973
|
-
"kind": "Content",
|
|
5974
|
-
"text": ";"
|
|
5975
|
-
}
|
|
5976
|
-
],
|
|
5977
|
-
"isStatic": false,
|
|
5978
|
-
"returnTypeTokenRange": {
|
|
5979
|
-
"startIndex": 6,
|
|
5980
|
-
"endIndex": 8
|
|
5981
|
-
},
|
|
5982
|
-
"releaseTag": "Public",
|
|
5983
|
-
"isProtected": false,
|
|
5984
|
-
"overloadIndex": 1,
|
|
5985
|
-
"parameters": [
|
|
5986
|
-
{
|
|
5987
|
-
"parameterName": "columnDefs",
|
|
5988
|
-
"parameterTypeTokenRange": {
|
|
5989
|
-
"startIndex": 1,
|
|
5990
|
-
"endIndex": 3
|
|
5991
|
-
},
|
|
5992
|
-
"isOptional": false
|
|
5993
|
-
},
|
|
5994
|
-
{
|
|
5995
|
-
"parameterName": "deferredColumnDefsOrState",
|
|
5996
|
-
"parameterTypeTokenRange": {
|
|
5997
|
-
"startIndex": 4,
|
|
5998
|
-
"endIndex": 5
|
|
5999
|
-
},
|
|
6000
|
-
"isOptional": true
|
|
6001
|
-
}
|
|
6002
|
-
],
|
|
6003
|
-
"isOptional": false,
|
|
6004
|
-
"isAbstract": false,
|
|
6005
|
-
"name": "mergeAllColumnDefsAndStates"
|
|
6006
|
-
},
|
|
6007
5933
|
{
|
|
6008
5934
|
"kind": "Property",
|
|
6009
5935
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#observedAttributes:member",
|
|
@@ -7007,41 +6933,6 @@
|
|
|
7007
6933
|
"isAbstract": false,
|
|
7008
6934
|
"name": "deepClone"
|
|
7009
6935
|
},
|
|
7010
|
-
{
|
|
7011
|
-
"kind": "Property",
|
|
7012
|
-
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#deferredColumnStates:member",
|
|
7013
|
-
"docComment": "",
|
|
7014
|
-
"excerptTokens": [
|
|
7015
|
-
{
|
|
7016
|
-
"kind": "Content",
|
|
7017
|
-
"text": "deferredColumnStates: "
|
|
7018
|
-
},
|
|
7019
|
-
{
|
|
7020
|
-
"kind": "Reference",
|
|
7021
|
-
"text": "ColumnState",
|
|
7022
|
-
"canonicalReference": "@ag-grid-community/core!ColumnState:interface"
|
|
7023
|
-
},
|
|
7024
|
-
{
|
|
7025
|
-
"kind": "Content",
|
|
7026
|
-
"text": "[]"
|
|
7027
|
-
},
|
|
7028
|
-
{
|
|
7029
|
-
"kind": "Content",
|
|
7030
|
-
"text": ";"
|
|
7031
|
-
}
|
|
7032
|
-
],
|
|
7033
|
-
"isReadonly": false,
|
|
7034
|
-
"isOptional": false,
|
|
7035
|
-
"releaseTag": "Public",
|
|
7036
|
-
"name": "deferredColumnStates",
|
|
7037
|
-
"propertyTypeTokenRange": {
|
|
7038
|
-
"startIndex": 1,
|
|
7039
|
-
"endIndex": 3
|
|
7040
|
-
},
|
|
7041
|
-
"isStatic": false,
|
|
7042
|
-
"isProtected": false,
|
|
7043
|
-
"isAbstract": false
|
|
7044
|
-
},
|
|
7045
6936
|
{
|
|
7046
6937
|
"kind": "Property",
|
|
7047
6938
|
"canonicalReference": "@genesislcap/grid-pro!GridProGenesisDatasource#deferredGridOptions:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
|
19
19
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
20
20
|
import { Grid } from '@ag-grid-community/core';
|
|
21
21
|
import type { GridApi } from '@ag-grid-community/core';
|
|
22
|
-
import
|
|
22
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
23
23
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
24
24
|
import { ICellRendererFunc } from '@ag-grid-community/core';
|
|
25
25
|
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
@@ -886,24 +886,7 @@ export declare class GridPro extends GridPro_base {
|
|
|
886
886
|
get gridProGenesisDatasource(): GridProGenesisDatasource;
|
|
887
887
|
set gridOptions(options: GridOptions);
|
|
888
888
|
private enableFlashingRows;
|
|
889
|
-
|
|
890
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
891
|
-
* @deprecated use `applyTemplateDefinitions` instead.
|
|
892
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
893
|
-
* @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.
|
|
894
|
-
* @returns The merged column definitions.
|
|
895
|
-
*/
|
|
896
|
-
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
|
|
897
|
-
/**
|
|
898
|
-
* Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`.
|
|
899
|
-
* @public
|
|
900
|
-
* @remarks This will favor the column state from the browser's local storage over the `deferredColumnStates` property on the `grid-pro-genesis-datasource` element.
|
|
901
|
-
* @param columnDefs - The column definitions to apply to the grid.
|
|
902
|
-
* @param deferredColumnDefsOrState - If true, will merge the column definitions with the saved column state or the `deferredColumnStates` property
|
|
903
|
-
* on the `grid-pro-genesis-datasource` element. Defaults to false but `grid-pro-genesis-datasource` will set this to true.
|
|
904
|
-
* @returns The merged column definitions.
|
|
905
|
-
*/
|
|
906
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
|
|
889
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
|
|
907
890
|
get observedAttributes(): string[];
|
|
908
891
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
909
892
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -1277,7 +1260,6 @@ export declare class GridProGenesisDatasource extends GridProGenesisDatasource_b
|
|
|
1277
1260
|
connect: Connect;
|
|
1278
1261
|
datasource: Datasource;
|
|
1279
1262
|
deferredGridOptions: GridOptions;
|
|
1280
|
-
deferredColumnStates: ColumnState[];
|
|
1281
1263
|
criteria: string;
|
|
1282
1264
|
criteriaChanged(oldCriteria: string, newCriteria: string): void;
|
|
1283
1265
|
fields: string;
|
|
@@ -1435,11 +1417,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1435
1417
|
lang: string;
|
|
1436
1418
|
readonly offsetHeight: number;
|
|
1437
1419
|
readonly offsetLeft: number;
|
|
1438
|
-
/**
|
|
1439
|
-
* Returns the row id attribute, depending on the resource type.
|
|
1440
|
-
* @remarks Will favour the `row-id` attribute if set.
|
|
1441
|
-
* @internal
|
|
1442
|
-
*/
|
|
1443
1420
|
readonly offsetParent: Element;
|
|
1444
1421
|
readonly offsetTop: number;
|
|
1445
1422
|
readonly offsetWidth: number;
|
|
@@ -1474,11 +1451,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1474
1451
|
scrollTop: number;
|
|
1475
1452
|
readonly scrollWidth: number;
|
|
1476
1453
|
readonly shadowRoot: ShadowRoot;
|
|
1477
|
-
/**
|
|
1478
|
-
* Resets the datasource to its initial state.
|
|
1479
|
-
* @public
|
|
1480
|
-
* @deprecated Use `deinit` instead
|
|
1481
|
-
*/
|
|
1482
1454
|
slot: string;
|
|
1483
1455
|
readonly tagName: string;
|
|
1484
1456
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
@@ -1489,7 +1461,10 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1489
1461
|
getAttributeNS(namespace: string, localName: string): string;
|
|
1490
1462
|
getAttributeNames(): string[];
|
|
1491
1463
|
getAttributeNode(qualifiedName: string): Attr;
|
|
1492
|
-
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
1464
|
+
getAttributeNodeNS(namespace: string, localName: string): Attr; /**
|
|
1465
|
+
* Restarts the datasource, uses `deinit` and `init` in sequence.
|
|
1466
|
+
* @public
|
|
1467
|
+
*/
|
|
1493
1468
|
getBoundingClientRect(): DOMRect;
|
|
1494
1469
|
getClientRects(): DOMRectList;
|
|
1495
1470
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
@@ -1506,11 +1481,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1506
1481
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
1507
1482
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
1508
1483
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
1509
|
-
/**
|
|
1510
|
-
* Sets the columnDefs and rowData for the grid.
|
|
1511
|
-
* @remarks This should only happen once, when the grid is first initialized. Follow up updates will use the agTransaction.
|
|
1512
|
-
* @internal
|
|
1513
|
-
*/
|
|
1514
1484
|
matches(selectors: string): boolean;
|
|
1515
1485
|
releasePointerCapture(pointerId: number): void;
|
|
1516
1486
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -1655,7 +1625,12 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
1655
1625
|
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
1656
1626
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
1657
1627
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
1658
|
-
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
1628
|
+
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any; /**
|
|
1629
|
+
* Maps the transaction data to the row data mapper function, if it exists.
|
|
1630
|
+
* @param transaction - The transaction data to be mapped.
|
|
1631
|
+
* @param operations - The operations to be mapped. Can be 'add', 'update' or 'remove'.
|
|
1632
|
+
* @returns The mapped transaction (if the row data mapper function exists), or the original transaction.
|
|
1633
|
+
*/
|
|
1659
1634
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
1660
1635
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
1661
1636
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -4,29 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
## GridPro.applyTemplateDefinitions() method
|
|
6
6
|
|
|
7
|
-
> Warning: This API is now obsolete.
|
|
8
|
-
>
|
|
9
|
-
> use `applyTemplateDefinitions` instead.
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
Will merge templated column definitions with `columnDefs` plus localStorage's column state or `deferredColumnStates`<!-- -->.
|
|
13
|
-
|
|
14
7
|
**Signature:**
|
|
15
8
|
|
|
16
9
|
```typescript
|
|
17
|
-
applyTemplateDefinitions(columnDefs: ColDef[],
|
|
10
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
|
|
18
11
|
```
|
|
19
12
|
|
|
20
13
|
## Parameters
|
|
21
14
|
|
|
22
15
|
| Parameter | Type | Description |
|
|
23
16
|
| --- | --- | --- |
|
|
24
|
-
| columnDefs | ColDef\[\] |
|
|
25
|
-
|
|
|
17
|
+
| columnDefs | ColDef\[\] | |
|
|
18
|
+
| deferredColumnDefs | boolean | _(Optional)_ |
|
|
26
19
|
|
|
27
20
|
**Returns:**
|
|
28
21
|
|
|
29
22
|
ColDef<any>\[\]
|
|
30
23
|
|
|
31
|
-
The merged column definitions.
|
|
32
|
-
|
|
@@ -63,13 +63,12 @@ Grid Pro is a Web Component wrapper around the AG Grid Community library.
|
|
|
63
63
|
| Method | Modifiers | Description |
|
|
64
64
|
| --- | --- | --- |
|
|
65
65
|
| [agAttributeChangedCallback(attName, oldValue, newValue)](./grid-pro.gridpro.agattributechangedcallback.md) | | |
|
|
66
|
-
| [applyTemplateDefinitions(columnDefs,
|
|
66
|
+
| [applyTemplateDefinitions(columnDefs, deferredColumnDefs)](./grid-pro.gridpro.applytemplatedefinitions.md) | | |
|
|
67
67
|
| [combineAllGridComponents(gridOptionsComponents)](./grid-pro.gridpro.combineallgridcomponents.md) | | |
|
|
68
68
|
| [connectedCallback()](./grid-pro.gridpro.connectedcallback.md) | | |
|
|
69
69
|
| [disconnectedCallback()](./grid-pro.gridpro.disconnectedcallback.md) | | |
|
|
70
70
|
| [getSavedColumnState()](./grid-pro.gridpro.getsavedcolumnstate.md) | | Gets the saved grid ColumnState\[\] from local storage |
|
|
71
71
|
| [globalEventListener(eventType, event)](./grid-pro.gridpro.globaleventlistener.md) | | |
|
|
72
|
-
| [mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState)](./grid-pro.gridpro.mergeallcolumndefsandstates.md) | | Will merge templated column definitions with <code>columnDefs</code> plus localStorage's column state or <code>deferredColumnStates</code>. |
|
|
73
72
|
| [statePersistanceEnabled()](./grid-pro.gridpro.statepersistanceenabled.md) | | |
|
|
74
73
|
| [themeChanged(oldValue, newValue)](./grid-pro.gridpro.themechanged.md) | | |
|
|
75
74
|
|
|
@@ -25,7 +25,6 @@ Only supports Client-Side Row Model.
|
|
|
25
25
|
| [connect](./grid-pro.gridprogenesisdatasource.connect.md) | | Connect | |
|
|
26
26
|
| [criteria](./grid-pro.gridprogenesisdatasource.criteria.md) | | string | |
|
|
27
27
|
| [datasource](./grid-pro.gridprogenesisdatasource.datasource.md) | | Datasource | |
|
|
28
|
-
| [deferredColumnStates](./grid-pro.gridprogenesisdatasource.deferredcolumnstates.md) | | ColumnState\[\] | |
|
|
29
28
|
| [deferredGridOptions](./grid-pro.gridprogenesisdatasource.deferredgridoptions.md) | | GridOptions | |
|
|
30
29
|
| [fields](./grid-pro.gridprogenesisdatasource.fields.md) | | string | |
|
|
31
30
|
| [isSnapshot](./grid-pro.gridprogenesisdatasource.issnapshot.md) | | boolean | |
|
package/docs/api-report.md
CHANGED
|
@@ -25,7 +25,7 @@ import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
|
25
25
|
import { FoundationLayoutContainer } from '@genesislcap/foundation-utils';
|
|
26
26
|
import { Grid } from '@ag-grid-community/core';
|
|
27
27
|
import type { GridApi } from '@ag-grid-community/core';
|
|
28
|
-
import
|
|
28
|
+
import { GridOptions } from '@ag-grid-community/core';
|
|
29
29
|
import { ICellRendererComp } from '@ag-grid-community/core';
|
|
30
30
|
import { ICellRendererFunc } from '@ag-grid-community/core';
|
|
31
31
|
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
@@ -541,8 +541,8 @@ export class GridPro extends GridPro_base {
|
|
|
541
541
|
protected agGridOptions: GridOptions;
|
|
542
542
|
// (undocumented)
|
|
543
543
|
protected agPropertiesMap: Record<string, string>;
|
|
544
|
-
//
|
|
545
|
-
applyTemplateDefinitions(columnDefs: ColDef[],
|
|
544
|
+
// (undocumented)
|
|
545
|
+
applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefs?: boolean): ColDef<any>[];
|
|
546
546
|
asyncAdd: boolean;
|
|
547
547
|
asyncRemove: boolean;
|
|
548
548
|
asyncUpdate: boolean;
|
|
@@ -589,7 +589,6 @@ export class GridPro extends GridPro_base {
|
|
|
589
589
|
headerHeight: number;
|
|
590
590
|
// (undocumented)
|
|
591
591
|
protected initialised: boolean;
|
|
592
|
-
mergeAllColumnDefsAndStates(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): ColDef<any>[];
|
|
593
592
|
// (undocumented)
|
|
594
593
|
get observedAttributes(): string[];
|
|
595
594
|
// (undocumented)
|
|
@@ -649,8 +648,6 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
649
648
|
// (undocumented)
|
|
650
649
|
deepClone(): Node;
|
|
651
650
|
// (undocumented)
|
|
652
|
-
deferredColumnStates: ColumnState[];
|
|
653
|
-
// (undocumented)
|
|
654
651
|
deferredGridOptions: GridOptions;
|
|
655
652
|
deinit(): void;
|
|
656
653
|
// (undocumented)
|
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.83.4
|
|
4
|
+
"version": "14.83.4",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"test:debug": "genx test --debug"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@genesislcap/foundation-testing": "14.83.4
|
|
35
|
-
"@genesislcap/genx": "14.83.4
|
|
34
|
+
"@genesislcap/foundation-testing": "14.83.4",
|
|
35
|
+
"@genesislcap/genx": "14.83.4",
|
|
36
36
|
"rimraf": "^3.0.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@genesislcap/foundation-comms": "14.83.4
|
|
40
|
-
"@genesislcap/foundation-logger": "14.83.4
|
|
41
|
-
"@genesislcap/foundation-ui": "14.83.4
|
|
42
|
-
"@genesislcap/foundation-utils": "14.83.4
|
|
39
|
+
"@genesislcap/foundation-comms": "14.83.4",
|
|
40
|
+
"@genesislcap/foundation-logger": "14.83.4",
|
|
41
|
+
"@genesislcap/foundation-ui": "14.83.4",
|
|
42
|
+
"@genesislcap/foundation-utils": "14.83.4",
|
|
43
43
|
"@microsoft/fast-colors": "^5.1.4",
|
|
44
44
|
"@microsoft/fast-components": "^2.21.3",
|
|
45
45
|
"@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": "9660d0aabe48fa3c9bc69fd134c687a4da570009"
|
|
66
66
|
}
|