@genesislcap/pbc-reporting-ui 15.35.1 → 15.35.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.
@@ -4336,6 +4336,104 @@
4336
4336
  }
4337
4337
  ]
4338
4338
  },
4339
+ {
4340
+ "kind": "javascript-module",
4341
+ "path": "src/old/utils/grid-api.ts",
4342
+ "declarations": [
4343
+ {
4344
+ "kind": "function",
4345
+ "name": "setGridRowData",
4346
+ "return": {
4347
+ "type": {
4348
+ "text": "void"
4349
+ }
4350
+ },
4351
+ "parameters": [
4352
+ {
4353
+ "name": "grid",
4354
+ "type": {
4355
+ "text": "ReportingGrid | undefined"
4356
+ }
4357
+ },
4358
+ {
4359
+ "name": "rows",
4360
+ "type": {
4361
+ "text": "unknown[]"
4362
+ }
4363
+ }
4364
+ ],
4365
+ "description": "Replaces the grid's row data on whichever AG Grid API generation the host grid exposes:\n`setGridOption('rowData')` on v36, `setRowData` on v29."
4366
+ },
4367
+ {
4368
+ "kind": "function",
4369
+ "name": "setGridColumnDefs",
4370
+ "return": {
4371
+ "type": {
4372
+ "text": "void"
4373
+ }
4374
+ },
4375
+ "parameters": [
4376
+ {
4377
+ "name": "grid",
4378
+ "type": {
4379
+ "text": "ReportingGrid | undefined"
4380
+ }
4381
+ },
4382
+ {
4383
+ "name": "columnDefs",
4384
+ "type": {
4385
+ "text": "unknown[]"
4386
+ }
4387
+ }
4388
+ ],
4389
+ "description": "Replaces the grid's column definitions on whichever AG Grid API generation the host grid\nexposes: `setGridOption('columnDefs')` on v36, `setColumnDefs` on v29."
4390
+ },
4391
+ {
4392
+ "kind": "function",
4393
+ "name": "autoSizeAllColumns",
4394
+ "return": {
4395
+ "type": {
4396
+ "text": "void"
4397
+ }
4398
+ },
4399
+ "parameters": [
4400
+ {
4401
+ "name": "grid",
4402
+ "type": {
4403
+ "text": "ReportingGrid | undefined"
4404
+ }
4405
+ }
4406
+ ],
4407
+ "description": "Auto-sizes every column: on AG Grid v36 the method lives on `gridApi`, on v29 on `columnApi`."
4408
+ }
4409
+ ],
4410
+ "exports": [
4411
+ {
4412
+ "kind": "js",
4413
+ "name": "setGridRowData",
4414
+ "declaration": {
4415
+ "name": "setGridRowData",
4416
+ "module": "src/old/utils/grid-api.ts"
4417
+ }
4418
+ },
4419
+ {
4420
+ "kind": "js",
4421
+ "name": "setGridColumnDefs",
4422
+ "declaration": {
4423
+ "name": "setGridColumnDefs",
4424
+ "module": "src/old/utils/grid-api.ts"
4425
+ }
4426
+ },
4427
+ {
4428
+ "kind": "js",
4429
+ "name": "autoSizeAllColumns",
4430
+ "declaration": {
4431
+ "name": "autoSizeAllColumns",
4432
+ "module": "src/old/utils/grid-api.ts"
4433
+ }
4434
+ }
4435
+ ]
4436
+ },
4339
4437
  {
4340
4438
  "kind": "javascript-module",
4341
4439
  "path": "src/old/utils/index.ts",
@@ -6313,7 +6411,7 @@
6313
6411
  "kind": "field",
6314
6412
  "name": "grid",
6315
6413
  "type": {
6316
- "text": "GridPro"
6414
+ "text": "ReportingGrid"
6317
6415
  },
6318
6416
  "privacy": "public"
6319
6417
  },
@@ -6529,7 +6627,7 @@
6529
6627
  "kind": "field",
6530
6628
  "name": "grid",
6531
6629
  "type": {
6532
- "text": "GridPro"
6630
+ "text": "ReportingGrid"
6533
6631
  },
6534
6632
  "privacy": "public"
6535
6633
  },
@@ -7273,7 +7371,7 @@
7273
7371
  "kind": "field",
7274
7372
  "name": "allFieldsGrid",
7275
7373
  "type": {
7276
- "text": "GridPro"
7374
+ "text": "ReportingGrid"
7277
7375
  },
7278
7376
  "privacy": "public"
7279
7377
  },
@@ -7281,7 +7379,7 @@
7281
7379
  "kind": "field",
7282
7380
  "name": "selectedFieldsGrid",
7283
7381
  "type": {
7284
- "text": "GridPro"
7382
+ "text": "ReportingGrid"
7285
7383
  },
7286
7384
  "privacy": "public"
7287
7385
  },
@@ -7610,7 +7708,7 @@
7610
7708
  "kind": "field",
7611
7709
  "name": "availableFieldsGrid",
7612
7710
  "type": {
7613
- "text": "GridPro"
7711
+ "text": "ReportingGrid"
7614
7712
  },
7615
7713
  "privacy": "public"
7616
7714
  },
@@ -7618,7 +7716,7 @@
7618
7716
  "kind": "field",
7619
7717
  "name": "selectedFiltersGrid",
7620
7718
  "type": {
7621
- "text": "GridPro"
7719
+ "text": "ReportingGrid"
7622
7720
  },
7623
7721
  "privacy": "public"
7624
7722
  },
@@ -1,7 +1,7 @@
1
1
  import { Connect } from '@genesislcap/foundation-comms';
2
- import { GridPro } from '@genesislcap/grid-pro';
3
2
  import { GenesisElement } from '@genesislcap/web-core';
4
3
  import { ReportingConfig } from '../../config/config';
4
+ import type { ReportingGrid } from '../../utils/grid-api';
5
5
  /**
6
6
  * Detail payload for the `rowSelectionEvent` event. `selectedRows` is a getter
7
7
  * returning the rows selected at call time.
@@ -24,7 +24,7 @@ export declare class List extends GenesisElement {
24
24
  userInteractedRow: {};
25
25
  selectedRows: any[];
26
26
  config: ReportingConfig;
27
- grid: GridPro;
27
+ grid: ReportingGrid;
28
28
  slectionEvent: CustomEvent<{
29
29
  selectedRows: () => any[];
30
30
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,OAAO,EAAE,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,qBAKa,IAAK,SAAQ,cAAc;IAC7B,OAAO,EAAG,OAAO,CAAC;IACf,iBAAiB,KAAM;IACvB,YAAY,QAAM;IACb,MAAM,EAAG,eAAe,CAAC;IAEnC,IAAI,EAAE,OAAO,CAAC;IAErB,aAAa;;OAEV;IAEG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoB3B,MAAM,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BzC,WAAW,IAAI,IAAI;IAKnB,SAAS,GAAI,MAAM,GAAG,KAAG,IAAI,CAElC;IAEK,UAAU,GAAI,MAAM,GAAG,KAAG,IAAI,CAEnC;IAEK,YAAY,GAAI,MAAM,GAAG,KAAG,IAAI,CAErC;CACH"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,OAAO,EAAE,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,qBAKa,IAAK,SAAQ,cAAc;IAC7B,OAAO,EAAG,OAAO,CAAC;IACf,iBAAiB,KAAM;IACvB,YAAY,QAAM;IACb,MAAM,EAAG,eAAe,CAAC;IAEnC,IAAI,EAAE,aAAa,CAAC;IAE3B,aAAa;;OAEV;IAEG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoB3B,MAAM,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BzC,WAAW,IAAI,IAAI;IAKnB,SAAS,GAAI,MAAM,GAAG,KAAG,IAAI,CAElC;IAEK,UAAU,GAAI,MAAM,GAAG,KAAG,IAAI,CAEnC;IAEK,YAAY,GAAI,MAAM,GAAG,KAAG,IAAI,CAErC;CACH"}
@@ -1,9 +1,9 @@
1
1
  import { Datasource, FilteredDataServerResult } from '@genesislcap/foundation-comms';
2
- import type { GridPro } from '@genesislcap/grid-pro';
3
2
  import { GenesisElement } from '@genesislcap/web-core';
4
3
  import { ReportingConfig } from '../../config/config';
4
+ import { type ReportingGrid } from '../../utils/grid-api';
5
5
  export declare class Preview extends GenesisElement {
6
- grid: GridPro;
6
+ grid: ReportingGrid;
7
7
  datasource: Datasource;
8
8
  report: any;
9
9
  data: FilteredDataServerResult;
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/preview/preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAiB,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQtD,qBAKa,OAAQ,SAAQ,cAAc;IAClC,IAAI,EAAG,OAAO,CAAC;IACV,UAAU,EAAG,UAAU,CAAC;IAC9B,MAAM,EAAE,GAAG,CAAM;IACX,IAAI,EAAE,wBAAwB,CAAC;IAC/B,kBAAkB,MAAC;IACd,MAAM,EAAG,eAAe,CAAC;IAE1C;;OAEG;IACH,aAAa,CAAC,GAAG,KAAA,EAAE,QAAQ,KAAA;IAwB3B;;OAEG;IACH,iBAAiB;IAwCjB;;OAEG;IACI,kBAAkB,sBAevB;IAEF;;OAEG;IACI,WAAW,aAShB;IAEK,cAAc,GAAI,eAAU,SAYjC;CACH"}
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/preview/preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAErF,OAAO,EAAiB,cAAc,EAAyB,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,sBAAsB,CAAC;AAO9B,qBAKa,OAAQ,SAAQ,cAAc;IAClC,IAAI,EAAG,aAAa,CAAC;IAChB,UAAU,EAAG,UAAU,CAAC;IAC9B,MAAM,EAAE,GAAG,CAAM;IACX,IAAI,EAAE,wBAAwB,CAAC;IAC/B,kBAAkB,MAAC;IACd,MAAM,EAAG,eAAe,CAAC;IAE1C;;OAEG;IACH,aAAa,CAAC,GAAG,KAAA,EAAE,QAAQ,KAAA;IAwB3B;;OAEG;IACH,iBAAiB;IAwCjB;;OAEG;IACI,kBAAkB,sBAevB;IAEF;;OAEG;IACI,WAAW,aAShB;IAEK,cAAc,GAAI,eAAU,SAYjC;CACH"}
@@ -1,7 +1,7 @@
1
1
  import { Connect } from '@genesislcap/foundation-comms';
2
- import type { GridPro } from '@genesislcap/grid-pro';
3
2
  import { GenesisElement } from '@genesislcap/web-core';
4
3
  import { ReportingConfig } from '../../config/config';
4
+ import { type ReportingGrid } from '../../utils/grid-api';
5
5
  /**
6
6
  * Detail payload for the `setSelectedFields` event.
7
7
  * @public
@@ -16,8 +16,8 @@ export interface SelectedFieldsEventDetail {
16
16
  * @fires setSelectedFields - Fired when selected report fields change. detail: `SelectedFieldsEventDetail`
17
17
  */
18
18
  export declare class SelectFields extends GenesisElement {
19
- allFieldsGrid: GridPro;
20
- selectedFieldsGrid: GridPro;
19
+ allFieldsGrid: ReportingGrid;
20
+ selectedFieldsGrid: ReportingGrid;
21
21
  connect: Connect;
22
22
  fieldsToRemove: any[];
23
23
  fieldData: any;
@@ -1 +1 @@
1
- {"version":3,"file":"select-fields.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/select-fields/select-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAiB,cAAc,EAAoB,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMtD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,qBAKa,YAAa,SAAQ,cAAc;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAE1B,OAAO,EAAE,OAAO,CAAC;IACd,cAAc,QAAM;IACpB,SAAS,MAAC;IACV,MAAM,KAAM;IACZ,cAAc,MAAC;IACrB,kBAAkB,EAAE,MAAM,CAAM;IACrB,MAAM,EAAG,eAAe,CAAC;IAE1C;;OAEG;IACH,qBAAqB,CAAC,QAAQ,KAAA;IAO9B,iBAAiB,IAAI,IAAI;IAMzB;;;;OAIG;IACI,2BAA2B,GAAI,UAAK,SAQzC;IAEF;;OAEG;IACI,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;IAItE;;OAEG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B/C;;OAEG;IACU,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuCpD;;;;OAIG;IACI,iBAAiB,GAAU,UAAK,EAAE,WAAM,mBAY7C;IAEF;;OAEG;IACI,0BAA0B,QAAO,IAAI,CAM1C;IAEF;;OAEG;IACI,oBAAoB,QAAO,IAAI,CAepC;IAEF;;OAEG;IACI,mBAAmB,IAAI,IAAI;CAWnC"}
1
+ {"version":3,"file":"select-fields.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/select-fields/select-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAiB,cAAc,EAAoB,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,sBAAsB,CAAC;AAK1E;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACxC;AAED;;;;;GAKG;AACH,qBAKa,YAAa,SAAQ,cAAc;IACvC,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,aAAa,CAAC;IAEhC,OAAO,EAAE,OAAO,CAAC;IACd,cAAc,QAAM;IACpB,SAAS,MAAC;IACV,MAAM,KAAM;IACZ,cAAc,MAAC;IACrB,kBAAkB,EAAE,MAAM,CAAM;IACrB,MAAM,EAAG,eAAe,CAAC;IAE1C;;OAEG;IACH,qBAAqB,CAAC,QAAQ,KAAA;IAO9B,iBAAiB,IAAI,IAAI;IAMzB;;;;OAIG;IACI,2BAA2B,GAAI,UAAK,SAQzC;IAEF;;OAEG;IACI,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;IAItE;;OAEG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B/C;;OAEG;IACU,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuCpD;;;;OAIG;IACI,iBAAiB,GAAU,UAAK,EAAE,WAAM,mBAY7C;IAEF;;OAEG;IACI,0BAA0B,QAAO,IAAI,CAM1C;IAEF;;OAEG;IACI,oBAAoB,QAAO,IAAI,CAepC;IAEF;;OAEG;IACI,mBAAmB,IAAI,IAAI;CAWnC"}
@@ -1,7 +1,7 @@
1
1
  import { Connect } from '@genesislcap/foundation-comms';
2
- import type { GridPro } from '@genesislcap/grid-pro';
3
2
  import { GenesisElement } from '@genesislcap/web-core';
4
3
  import { ReportingConfig } from '../../config/config';
4
+ import { type ReportingGrid } from '../../utils/grid-api';
5
5
  /**
6
6
  * Detail payload for the `setSelectedFilters` event.
7
7
  * @public
@@ -16,8 +16,8 @@ export interface SelectedFiltersEventDetail {
16
16
  * @fires setSelectedFilters - Fired when selected filters change. detail: `SelectedFiltersEventDetail`
17
17
  */
18
18
  export declare class SelectFilters extends GenesisElement {
19
- availableFieldsGrid: GridPro;
20
- selectedFiltersGrid: GridPro;
19
+ availableFieldsGrid: ReportingGrid;
20
+ selectedFiltersGrid: ReportingGrid;
21
21
  connect: Connect;
22
22
  filtersToRemove: any[];
23
23
  selectedFields: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"select-filters.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/select-filters/select-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACzC;AAED;;;;;GAKG;AACH,qBAKa,aAAc,SAAQ,cAAc;IACxC,mBAAmB,EAAG,OAAO,CAAC;IAC9B,mBAAmB,EAAG,OAAO,CAAC;IAE5B,OAAO,EAAE,OAAO,CAAC;IACd,eAAe,QAAM;IACrB,cAAc,QAAM;IACpB,eAAe,QAAM;IACrB,eAAe,EAAE,OAAO,CAAS;IAC5B,MAAM,EAAG,eAAe,CAAC;IAE1C,OAAO,CAAC,mBAAmB,CAAkB;IAE7C,iBAAiB,IAAI,IAAI;IAOlB,2BAA2B,GAAI,UAAK,SAQzC;IAEF,sBAAsB,IAAI,IAAI;IAO9B;;OAEG;IACI,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;IAIxE;;;;OAIG;IACI,oBAAoB,IAAI,KAAK,CAAC,MAAM,CAAC;IAI5C;;OAEG;IACU,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBrD;;OAEG;IACI,uBAAuB,IAAI,IAAI;IAsD/B,cAAc,GAAI,UAAK,EAAE,WAAM,UAwBpC;IAEK,mBAAmB,GAAI,UAAK,EAAE,WAAM,UAyBzC;IAEF;;OAEG;IACI,qBAAqB,QAAO,IAAI,CAerC;IAEF;;OAEG;IACI,oBAAoB,IAAI,IAAI;CAWpC"}
1
+ {"version":3,"file":"select-filters.d.ts","sourceRoot":"","sources":["../../../../../src/old/components/select-filters/select-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,sBAAsB,CAAC;AAM1E;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACzC;AAED;;;;;GAKG;AACH,qBAKa,aAAc,SAAQ,cAAc;IACxC,mBAAmB,EAAG,aAAa,CAAC;IACpC,mBAAmB,EAAG,aAAa,CAAC;IAElC,OAAO,EAAE,OAAO,CAAC;IACd,eAAe,QAAM;IACrB,cAAc,QAAM;IACpB,eAAe,QAAM;IACrB,eAAe,EAAE,OAAO,CAAS;IAC5B,MAAM,EAAG,eAAe,CAAC;IAE1C,OAAO,CAAC,mBAAmB,CAAkB;IAE7C,iBAAiB,IAAI,IAAI;IAOlB,2BAA2B,GAAI,UAAK,SAQzC;IAEF,sBAAsB,IAAI,IAAI;IAO9B;;OAEG;IACI,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;IAIxE;;;;OAIG;IACI,oBAAoB,IAAI,KAAK,CAAC,MAAM,CAAC;IAI5C;;OAEG;IACU,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBrD;;OAEG;IACI,uBAAuB,IAAI,IAAI;IAsD/B,cAAc,GAAI,UAAK,EAAE,WAAM,UAwBpC;IAEK,mBAAmB,GAAI,UAAK,EAAE,WAAM,UAyBzC;IAEF;;OAEG;IACI,qBAAqB,QAAO,IAAI,CAerC;IAEF;;OAEG;IACI,oBAAoB,IAAI,IAAI;CAWpC"}
@@ -0,0 +1,21 @@
1
+ import type { GridPro, GridProLegacy } from '@genesislcap/grid-pro';
2
+ /**
3
+ * The grid element the reporting screens render as `<prefix>-grid-pro`: the AG Grid v36
4
+ * `GridPro` under the rapid design system, the AG Grid v29 `GridProLegacy` under zero.
5
+ */
6
+ export type ReportingGrid = GridPro | GridProLegacy;
7
+ /**
8
+ * Replaces the grid's row data on whichever AG Grid API generation the host grid exposes:
9
+ * `setGridOption('rowData')` on v36, `setRowData` on v29.
10
+ */
11
+ export declare const setGridRowData: (grid: ReportingGrid | undefined, rows: unknown[]) => void;
12
+ /**
13
+ * Replaces the grid's column definitions on whichever AG Grid API generation the host grid
14
+ * exposes: `setGridOption('columnDefs')` on v36, `setColumnDefs` on v29.
15
+ */
16
+ export declare const setGridColumnDefs: (grid: ReportingGrid | undefined, columnDefs: unknown[]) => void;
17
+ /**
18
+ * Auto-sizes every column: on AG Grid v36 the method lives on `gridApi`, on v29 on `columnApi`.
19
+ */
20
+ export declare const autoSizeAllColumns: (grid: ReportingGrid | undefined) => void;
21
+ //# sourceMappingURL=grid-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-api.d.ts","sourceRoot":"","sources":["../../../../src/old/utils/grid-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,aAAa,CAAC;AAYpD;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,aAAa,GAAG,SAAS,EAAE,MAAM,OAAO,EAAE,KAAG,IAQjF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,aAAa,GAAG,SAAS,EAAE,YAAY,OAAO,EAAE,KAAG,IAQ1F,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,aAAa,GAAG,SAAS,KAAG,IAOpE,CAAC"}
@@ -4,6 +4,7 @@ import { formatDateTimestamp, formatDateTimeTimestamp } from '@genesislcap/found
4
4
  import { customElement, GenesisElement, observable, attr, DOM } from '@genesislcap/web-core';
5
5
  import { ReportingConfig } from '../../config/config';
6
6
  import { getFilterTypeByFieldType } from '../../utils/getFiltersByType';
7
+ import { autoSizeAllColumns, setGridColumnDefs, setGridRowData, } from '../../utils/grid-api';
7
8
  import { getColumns, getGridOptions } from './columns';
8
9
  import { PreviewStyles as styles } from './preview.styles';
9
10
  import { PreviewReportTemplate as template } from './preview.template';
@@ -58,8 +59,8 @@ let Preview = class Preview extends GenesisElement {
58
59
  Object.keys(newValue).length > 0 &&
59
60
  (newValue['REPORT_DATASOURCE'] || newValue['REPORT_DATA_SOURCE'])) {
60
61
  if (this.data && this.grid.gridApi) {
61
- this.grid.gridApi.setColumnDefs([]);
62
- this.grid.gridApi.setRowData([]);
62
+ setGridColumnDefs(this.grid, []);
63
+ setGridRowData(this.grid, []);
63
64
  this.grid.gridApi.showLoadingOverlay();
64
65
  DOM.queueUpdate(() => {
65
66
  this.fetchAndLoadToGrid();
@@ -105,8 +106,7 @@ let Preview = class Preview extends GenesisElement {
105
106
  this.grid.gridApi.setFilterModel(model);
106
107
  window.addEventListener('resize', () => {
107
108
  setTimeout(() => {
108
- var _a, _b;
109
- (_b = (_a = this.grid) === null || _a === void 0 ? void 0 : _a.columnApi) === null || _b === void 0 ? void 0 : _b.autoSizeAllColumns();
109
+ autoSizeAllColumns(this.grid);
110
110
  });
111
111
  });
112
112
  });
@@ -4,6 +4,7 @@ import { RapidAgTextRenderer } from '@genesislcap/rapid-grid-pro';
4
4
  import { customElement, GenesisElement, observable, attr } from '@genesislcap/web-core';
5
5
  import { ReportingConfig } from '../../config/config';
6
6
  import { filterObjectArray, getSelectedFields } from '../../utils';
7
+ import { setGridRowData } from '../../utils/grid-api';
7
8
  import { FIELD_SELECT_CONFIG, SELECTED_FIELDS_CONFIG } from './columns';
8
9
  import { SelectFieldsStyles } from './select-fields.styles';
9
10
  import { SelectFieldsTemplate } from './select-fields.template';
@@ -77,10 +78,10 @@ let SelectFields = class SelectFields extends GenesisElement {
77
78
  * Loading selected fields grid when we have selected rows
78
79
  */
79
80
  selectedFieldsChanged(oldValue) {
80
- var _a, _b, _c, _d;
81
+ var _a, _b;
81
82
  if (oldValue) {
82
- (_b = (_a = this.selectedFieldsGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.setRowData(this.selectedFields);
83
- (_d = (_c = this.selectedFieldsGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.refreshCells();
83
+ setGridRowData(this.selectedFieldsGrid, this.selectedFields);
84
+ (_b = (_a = this.selectedFieldsGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.refreshCells();
84
85
  }
85
86
  }
86
87
  connectedCallback() {
@@ -4,6 +4,7 @@ import { RapidAgSelectRenderer } from '@genesislcap/rapid-grid-pro';
4
4
  import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
5
5
  import { ReportingConfig } from '../../config/config';
6
6
  import { filterObjectArray, getFiltersByFieldType } from '../../utils';
7
+ import { setGridRowData } from '../../utils/grid-api';
7
8
  import { FilterValueRenderer } from '../renderers/filter-value-renderer';
8
9
  import { AVAILABLE_FIELDS_CONFIG, SELECTED_FILTERS_CONFIG } from './columns';
9
10
  import { SelectFiltersStyles } from './select-filters.styles';
@@ -99,7 +100,7 @@ let SelectFilters = class SelectFilters extends GenesisElement {
99
100
  }
100
101
  selectedFiltersChanged() {
101
102
  if (this.filterGridReady && !this.suppressGridRefresh) {
102
- this.selectedFiltersGrid.gridApi.setRowData(this.selectedFilters);
103
+ setGridRowData(this.selectedFiltersGrid, this.selectedFilters);
103
104
  this.selectedFiltersGrid.gridApi.refreshCells();
104
105
  }
105
106
  }
@@ -0,0 +1,46 @@
1
+ const gridApiOf = (grid) => grid === null || grid === void 0 ? void 0 : grid.gridApi;
2
+ /**
3
+ * Replaces the grid's row data on whichever AG Grid API generation the host grid exposes:
4
+ * `setGridOption('rowData')` on v36, `setRowData` on v29.
5
+ */
6
+ export const setGridRowData = (grid, rows) => {
7
+ var _a;
8
+ const api = gridApiOf(grid);
9
+ if (!api)
10
+ return;
11
+ if (api.setGridOption) {
12
+ api.setGridOption('rowData', rows);
13
+ }
14
+ else {
15
+ (_a = api.setRowData) === null || _a === void 0 ? void 0 : _a.call(api, rows);
16
+ }
17
+ };
18
+ /**
19
+ * Replaces the grid's column definitions on whichever AG Grid API generation the host grid
20
+ * exposes: `setGridOption('columnDefs')` on v36, `setColumnDefs` on v29.
21
+ */
22
+ export const setGridColumnDefs = (grid, columnDefs) => {
23
+ var _a;
24
+ const api = gridApiOf(grid);
25
+ if (!api)
26
+ return;
27
+ if (api.setGridOption) {
28
+ api.setGridOption('columnDefs', columnDefs);
29
+ }
30
+ else {
31
+ (_a = api.setColumnDefs) === null || _a === void 0 ? void 0 : _a.call(api, columnDefs);
32
+ }
33
+ };
34
+ /**
35
+ * Auto-sizes every column: on AG Grid v36 the method lives on `gridApi`, on v29 on `columnApi`.
36
+ */
37
+ export const autoSizeAllColumns = (grid) => {
38
+ var _a;
39
+ const api = gridApiOf(grid);
40
+ if (api === null || api === void 0 ? void 0 : api.autoSizeAllColumns) {
41
+ api.autoSizeAllColumns();
42
+ }
43
+ else {
44
+ (_a = grid === null || grid === void 0 ? void 0 : grid.columnApi) === null || _a === void 0 ? void 0 : _a.autoSizeAllColumns();
45
+ }
46
+ };
@@ -4,8 +4,9 @@ import { Connect } from '@genesislcap/foundation-comms';
4
4
  import { ElementStyles } from '@microsoft/fast-element';
5
5
  import { GenesisElement } from '@genesislcap/web-core';
6
6
  import { GridOptions } from '@ag-grid-community/core';
7
- import { GridPro } from '@genesislcap/grid-pro';
7
+ import type { GridPro } from '@genesislcap/grid-pro';
8
8
  import { GridProGenesisDatasource } from '@genesislcap/rapid-grid-pro';
9
+ import type { GridProLegacy } from '@genesislcap/grid-pro';
9
10
  import { InterfaceSymbol } from '@microsoft/fast-foundation';
10
11
  import { NavigationPhase } from '@genesislcap/web-core';
11
12
  import { PartialGenesisElementDefinition } from '@genesislcap/web-core';
@@ -192,7 +193,7 @@ declare class List extends GenesisElement {
192
193
  userInteractedRow: {};
193
194
  selectedRows: any[];
194
195
  config: ReportingConfig;
195
- grid: GridPro;
196
+ grid: ReportingGrid;
196
197
  slectionEvent: CustomEvent<{
197
198
  selectedRows: () => any[];
198
199
  }>;
@@ -304,6 +305,12 @@ declare enum ReportingEvents {
304
305
  refreshColumnFormatGrid = "refresh-column-format-grid"
305
306
  }
306
307
 
308
+ /**
309
+ * The grid element the reporting screens render as `<prefix>-grid-pro`: the AG Grid v36
310
+ * `GridPro` under the rapid design system, the AG Grid v29 `GridProLegacy` under zero.
311
+ */
312
+ declare type ReportingGrid = GridPro | GridProLegacy;
313
+
307
314
  export declare class ReportingSandbox extends GenesisElement {
308
315
  connect: Connect;
309
316
  auth: Auth;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reporting-ui",
3
3
  "description": "Genesis PBC Reporting UI",
4
- "version": "15.35.1",
4
+ "version": "15.35.4",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -86,32 +86,32 @@
86
86
  "@ag-grid-community/core": "29.2.0"
87
87
  },
88
88
  "dependencies": {
89
- "@genesislcap/foundation-comms": "15.35.1",
90
- "@genesislcap/foundation-entity-management": "15.35.1",
91
- "@genesislcap/foundation-events": "15.35.1",
92
- "@genesislcap/foundation-forms": "15.35.1",
93
- "@genesislcap/foundation-logger": "15.35.1",
94
- "@genesislcap/foundation-notifications": "15.35.1",
95
- "@genesislcap/foundation-ui": "15.35.1",
96
- "@genesislcap/foundation-user": "15.35.1",
97
- "@genesislcap/foundation-utils": "15.35.1",
98
- "@genesislcap/foundation-zero": "15.35.1",
99
- "@genesislcap/foundation-zero-grid-pro": "15.35.1",
100
- "@genesislcap/grid-pro": "15.35.1",
101
- "@genesislcap/rapid-design-system": "15.35.1",
102
- "@genesislcap/rapid-grid-pro": "15.35.1",
103
- "@genesislcap/web-core": "15.35.1",
89
+ "@genesislcap/foundation-comms": "15.35.4",
90
+ "@genesislcap/foundation-entity-management": "15.35.4",
91
+ "@genesislcap/foundation-events": "15.35.4",
92
+ "@genesislcap/foundation-forms": "15.35.4",
93
+ "@genesislcap/foundation-logger": "15.35.4",
94
+ "@genesislcap/foundation-notifications": "15.35.4",
95
+ "@genesislcap/foundation-ui": "15.35.4",
96
+ "@genesislcap/foundation-user": "15.35.4",
97
+ "@genesislcap/foundation-utils": "15.35.4",
98
+ "@genesislcap/foundation-zero": "15.35.4",
99
+ "@genesislcap/foundation-zero-grid-pro": "15.35.4",
100
+ "@genesislcap/grid-pro": "15.35.4",
101
+ "@genesislcap/rapid-design-system": "15.35.4",
102
+ "@genesislcap/rapid-grid-pro": "15.35.4",
103
+ "@genesislcap/web-core": "15.35.4",
104
104
  "@reduxjs/toolkit": "^2.2.5",
105
105
  "@types/node": "^22.10.2",
106
106
  "change-case": "^5.4.3",
107
107
  "lodash": "^4.17.21"
108
108
  },
109
109
  "devDependencies": {
110
- "@genesislcap/eslint-config": "15.35.1",
111
- "@genesislcap/foundation-testing": "15.35.1",
112
- "@genesislcap/genx": "15.35.1",
113
- "@genesislcap/prettier-config": "15.35.1",
114
- "@genesislcap/stylelint-config": "15.35.1",
110
+ "@genesislcap/eslint-config": "15.35.4",
111
+ "@genesislcap/foundation-testing": "15.35.4",
112
+ "@genesislcap/genx": "15.35.4",
113
+ "@genesislcap/prettier-config": "15.35.4",
114
+ "@genesislcap/stylelint-config": "15.35.4",
115
115
  "@types/json-schema": "^7.0.11",
116
116
  "playwright-lighthouse": "^4.0.0",
117
117
  "rimraf": "^5.0.0"