@genesislcap/grid-pro 14.325.1 → 14.326.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/custom-elements.json +236 -0
- package/dist/dts/cell-renderers/action.renderer.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +57 -0
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/state-persistence/kv-state.d.ts +1 -0
- package/dist/dts/state-persistence/kv-state.d.ts.map +1 -1
- package/dist/dts/state-persistence/local-state.d.ts +1 -0
- package/dist/dts/state-persistence/local-state.d.ts.map +1 -1
- package/dist/dts/state-persistence/state-persistence.d.ts +5 -0
- package/dist/dts/state-persistence/state-persistence.d.ts.map +1 -1
- package/dist/dts/utils/array.d.ts +14 -0
- package/dist/dts/utils/array.d.ts.map +1 -1
- package/dist/esm/cell-renderers/action.renderer.js +5 -3
- package/dist/esm/cell-renderers/boolean.renderer.js +4 -3
- package/dist/esm/grid-pro.js +156 -2
- package/dist/esm/state-persistence/kv-state.js +5 -0
- package/dist/esm/state-persistence/local-state.js +7 -0
- package/dist/esm/utils/array.js +31 -0
- package/dist/grid-pro.api.json +406 -0
- package/dist/grid-pro.d.ts +80 -0
- package/docs/api/grid-pro.convertcoldefstocolumnstates.md +56 -0
- package/docs/api/grid-pro.convertcoldeftocolumnstate.md +56 -0
- package/docs/api/grid-pro.gridpro.defaultcolumnconfig.md +13 -0
- package/docs/api/grid-pro.gridpro.deletecolumnstate.md +58 -0
- package/docs/api/grid-pro.gridpro.md +71 -0
- package/docs/api/grid-pro.gridpro.sizecolumnstocontent.md +13 -0
- package/docs/api/grid-pro.gridpro.sizecolumnstofit.md +13 -0
- package/docs/api/grid-pro.kvstoragestatepersistence.deletecolumnstate.md +50 -0
- package/docs/api/grid-pro.kvstoragestatepersistence.md +12 -0
- package/docs/api/grid-pro.localstoragestatepersistence.deletecolumnstate.md +50 -0
- package/docs/api/grid-pro.localstoragestatepersistence.md +12 -0
- package/docs/api/grid-pro.md +22 -0
- package/docs/api/grid-pro.statepersistence.deletecolumnstate.md +52 -0
- package/docs/api/grid-pro.statepersistence.md +11 -0
- package/docs/api-report.md.api.md +15 -0
- package/package.json +13 -13
package/dist/grid-pro.api.json
CHANGED
|
@@ -3526,6 +3526,108 @@
|
|
|
3526
3526
|
"endIndex": 6
|
|
3527
3527
|
}
|
|
3528
3528
|
},
|
|
3529
|
+
{
|
|
3530
|
+
"kind": "Function",
|
|
3531
|
+
"canonicalReference": "@genesislcap/grid-pro!convertColDefsToColumnStates:function(1)",
|
|
3532
|
+
"docComment": "/**\n * Converts an array of ColDef to an array of ColumnState\n *\n * @param colDefs - The column definitions to convert\n *\n * @returns The corresponding ColumnState array\n *\n * @public\n */\n",
|
|
3533
|
+
"excerptTokens": [
|
|
3534
|
+
{
|
|
3535
|
+
"kind": "Content",
|
|
3536
|
+
"text": "export declare function convertColDefsToColumnStates(colDefs: "
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"kind": "Reference",
|
|
3540
|
+
"text": "ColDef",
|
|
3541
|
+
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"kind": "Content",
|
|
3545
|
+
"text": "[]"
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"kind": "Content",
|
|
3549
|
+
"text": "): "
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"kind": "Reference",
|
|
3553
|
+
"text": "ColumnState",
|
|
3554
|
+
"canonicalReference": "@ag-grid-community/core!ColumnState:interface"
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"kind": "Content",
|
|
3558
|
+
"text": "[]"
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"kind": "Content",
|
|
3562
|
+
"text": ";"
|
|
3563
|
+
}
|
|
3564
|
+
],
|
|
3565
|
+
"fileUrlPath": "src/utils/array.ts",
|
|
3566
|
+
"returnTypeTokenRange": {
|
|
3567
|
+
"startIndex": 4,
|
|
3568
|
+
"endIndex": 6
|
|
3569
|
+
},
|
|
3570
|
+
"releaseTag": "Public",
|
|
3571
|
+
"overloadIndex": 1,
|
|
3572
|
+
"parameters": [
|
|
3573
|
+
{
|
|
3574
|
+
"parameterName": "colDefs",
|
|
3575
|
+
"parameterTypeTokenRange": {
|
|
3576
|
+
"startIndex": 1,
|
|
3577
|
+
"endIndex": 3
|
|
3578
|
+
},
|
|
3579
|
+
"isOptional": false
|
|
3580
|
+
}
|
|
3581
|
+
],
|
|
3582
|
+
"name": "convertColDefsToColumnStates"
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"kind": "Function",
|
|
3586
|
+
"canonicalReference": "@genesislcap/grid-pro!convertColDefToColumnState:function(1)",
|
|
3587
|
+
"docComment": "/**\n * Converts a ColDef to a ColumnState\n *\n * @param colDef - The column definition to convert\n *\n * @returns The corresponding ColumnState\n *\n * @public\n */\n",
|
|
3588
|
+
"excerptTokens": [
|
|
3589
|
+
{
|
|
3590
|
+
"kind": "Content",
|
|
3591
|
+
"text": "export declare function convertColDefToColumnState(colDef: "
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"kind": "Reference",
|
|
3595
|
+
"text": "ColDef",
|
|
3596
|
+
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
3597
|
+
},
|
|
3598
|
+
{
|
|
3599
|
+
"kind": "Content",
|
|
3600
|
+
"text": "): "
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"kind": "Reference",
|
|
3604
|
+
"text": "ColumnState",
|
|
3605
|
+
"canonicalReference": "@ag-grid-community/core!ColumnState:interface"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"kind": "Content",
|
|
3609
|
+
"text": ";"
|
|
3610
|
+
}
|
|
3611
|
+
],
|
|
3612
|
+
"fileUrlPath": "src/utils/array.ts",
|
|
3613
|
+
"returnTypeTokenRange": {
|
|
3614
|
+
"startIndex": 3,
|
|
3615
|
+
"endIndex": 4
|
|
3616
|
+
},
|
|
3617
|
+
"releaseTag": "Public",
|
|
3618
|
+
"overloadIndex": 1,
|
|
3619
|
+
"parameters": [
|
|
3620
|
+
{
|
|
3621
|
+
"parameterName": "colDef",
|
|
3622
|
+
"parameterTypeTokenRange": {
|
|
3623
|
+
"startIndex": 1,
|
|
3624
|
+
"endIndex": 2
|
|
3625
|
+
},
|
|
3626
|
+
"isOptional": false
|
|
3627
|
+
}
|
|
3628
|
+
],
|
|
3629
|
+
"name": "convertColDefToColumnState"
|
|
3630
|
+
},
|
|
3529
3631
|
{
|
|
3530
3632
|
"kind": "Function",
|
|
3531
3633
|
"canonicalReference": "@genesislcap/grid-pro!convertToKebabCase:function(1)",
|
|
@@ -10681,6 +10783,94 @@
|
|
|
10681
10783
|
"isProtected": false,
|
|
10682
10784
|
"isAbstract": false
|
|
10683
10785
|
},
|
|
10786
|
+
{
|
|
10787
|
+
"kind": "Property",
|
|
10788
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#defaultColumnConfig:member",
|
|
10789
|
+
"docComment": "/**\n * The default column config to reset to when deleteColumnState is called.\n */\n",
|
|
10790
|
+
"excerptTokens": [
|
|
10791
|
+
{
|
|
10792
|
+
"kind": "Content",
|
|
10793
|
+
"text": "defaultColumnConfig: "
|
|
10794
|
+
},
|
|
10795
|
+
{
|
|
10796
|
+
"kind": "Reference",
|
|
10797
|
+
"text": "ColDef",
|
|
10798
|
+
"canonicalReference": "@ag-grid-community/core!ColDef:interface"
|
|
10799
|
+
},
|
|
10800
|
+
{
|
|
10801
|
+
"kind": "Content",
|
|
10802
|
+
"text": "[]"
|
|
10803
|
+
},
|
|
10804
|
+
{
|
|
10805
|
+
"kind": "Content",
|
|
10806
|
+
"text": ";"
|
|
10807
|
+
}
|
|
10808
|
+
],
|
|
10809
|
+
"isReadonly": false,
|
|
10810
|
+
"isOptional": false,
|
|
10811
|
+
"releaseTag": "Public",
|
|
10812
|
+
"name": "defaultColumnConfig",
|
|
10813
|
+
"propertyTypeTokenRange": {
|
|
10814
|
+
"startIndex": 1,
|
|
10815
|
+
"endIndex": 3
|
|
10816
|
+
},
|
|
10817
|
+
"isStatic": false,
|
|
10818
|
+
"isProtected": false,
|
|
10819
|
+
"isAbstract": false
|
|
10820
|
+
},
|
|
10821
|
+
{
|
|
10822
|
+
"kind": "Method",
|
|
10823
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#deleteColumnState:member(1)",
|
|
10824
|
+
"docComment": "/**\n * Deletes the saved column state for the current grid\n *\n * @remarks\n *\n * This removes the persisted column state from storage, allowing the grid to use default column configuration\n *\n * @param resetToDefault - Whether to reset columns to their default configuration. Defaults to true.\n *\n * @public\n */\n",
|
|
10825
|
+
"excerptTokens": [
|
|
10826
|
+
{
|
|
10827
|
+
"kind": "Content",
|
|
10828
|
+
"text": "deleteColumnState(resetToDefault?: "
|
|
10829
|
+
},
|
|
10830
|
+
{
|
|
10831
|
+
"kind": "Content",
|
|
10832
|
+
"text": "boolean"
|
|
10833
|
+
},
|
|
10834
|
+
{
|
|
10835
|
+
"kind": "Content",
|
|
10836
|
+
"text": "): "
|
|
10837
|
+
},
|
|
10838
|
+
{
|
|
10839
|
+
"kind": "Reference",
|
|
10840
|
+
"text": "Promise",
|
|
10841
|
+
"canonicalReference": "!Promise:interface"
|
|
10842
|
+
},
|
|
10843
|
+
{
|
|
10844
|
+
"kind": "Content",
|
|
10845
|
+
"text": "<void>"
|
|
10846
|
+
},
|
|
10847
|
+
{
|
|
10848
|
+
"kind": "Content",
|
|
10849
|
+
"text": ";"
|
|
10850
|
+
}
|
|
10851
|
+
],
|
|
10852
|
+
"isStatic": false,
|
|
10853
|
+
"returnTypeTokenRange": {
|
|
10854
|
+
"startIndex": 3,
|
|
10855
|
+
"endIndex": 5
|
|
10856
|
+
},
|
|
10857
|
+
"releaseTag": "Public",
|
|
10858
|
+
"isProtected": false,
|
|
10859
|
+
"overloadIndex": 1,
|
|
10860
|
+
"parameters": [
|
|
10861
|
+
{
|
|
10862
|
+
"parameterName": "resetToDefault",
|
|
10863
|
+
"parameterTypeTokenRange": {
|
|
10864
|
+
"startIndex": 1,
|
|
10865
|
+
"endIndex": 2
|
|
10866
|
+
},
|
|
10867
|
+
"isOptional": true
|
|
10868
|
+
}
|
|
10869
|
+
],
|
|
10870
|
+
"isOptional": false,
|
|
10871
|
+
"isAbstract": false,
|
|
10872
|
+
"name": "deleteColumnState"
|
|
10873
|
+
},
|
|
10684
10874
|
{
|
|
10685
10875
|
"kind": "Method",
|
|
10686
10876
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#disconnectedCallback:member(1)",
|
|
@@ -12046,6 +12236,66 @@
|
|
|
12046
12236
|
"isAbstract": false,
|
|
12047
12237
|
"name": "setupPaginationAndStatusBar"
|
|
12048
12238
|
},
|
|
12239
|
+
{
|
|
12240
|
+
"kind": "Property",
|
|
12241
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#sizeColumnsToContent:member",
|
|
12242
|
+
"docComment": "/**\n * Boolean attribute to control whether the grid automatically sizes columns to fit their content. This will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.\n *\n * @public\n */\n",
|
|
12243
|
+
"excerptTokens": [
|
|
12244
|
+
{
|
|
12245
|
+
"kind": "Content",
|
|
12246
|
+
"text": "sizeColumnsToContent: "
|
|
12247
|
+
},
|
|
12248
|
+
{
|
|
12249
|
+
"kind": "Content",
|
|
12250
|
+
"text": "boolean"
|
|
12251
|
+
},
|
|
12252
|
+
{
|
|
12253
|
+
"kind": "Content",
|
|
12254
|
+
"text": ";"
|
|
12255
|
+
}
|
|
12256
|
+
],
|
|
12257
|
+
"isReadonly": false,
|
|
12258
|
+
"isOptional": false,
|
|
12259
|
+
"releaseTag": "Public",
|
|
12260
|
+
"name": "sizeColumnsToContent",
|
|
12261
|
+
"propertyTypeTokenRange": {
|
|
12262
|
+
"startIndex": 1,
|
|
12263
|
+
"endIndex": 2
|
|
12264
|
+
},
|
|
12265
|
+
"isStatic": false,
|
|
12266
|
+
"isProtected": false,
|
|
12267
|
+
"isAbstract": false
|
|
12268
|
+
},
|
|
12269
|
+
{
|
|
12270
|
+
"kind": "Property",
|
|
12271
|
+
"canonicalReference": "@genesislcap/grid-pro!GridPro#sizeColumnsToFit:member",
|
|
12272
|
+
"docComment": "/**\n * Boolean attribute to adjust the size of columns to fit the available horizontal space. This will call AG Grid's sizeColumnsToFit() method.\n *\n * @public\n */\n",
|
|
12273
|
+
"excerptTokens": [
|
|
12274
|
+
{
|
|
12275
|
+
"kind": "Content",
|
|
12276
|
+
"text": "sizeColumnsToFit: "
|
|
12277
|
+
},
|
|
12278
|
+
{
|
|
12279
|
+
"kind": "Content",
|
|
12280
|
+
"text": "boolean"
|
|
12281
|
+
},
|
|
12282
|
+
{
|
|
12283
|
+
"kind": "Content",
|
|
12284
|
+
"text": ";"
|
|
12285
|
+
}
|
|
12286
|
+
],
|
|
12287
|
+
"isReadonly": false,
|
|
12288
|
+
"isOptional": false,
|
|
12289
|
+
"releaseTag": "Public",
|
|
12290
|
+
"name": "sizeColumnsToFit",
|
|
12291
|
+
"propertyTypeTokenRange": {
|
|
12292
|
+
"startIndex": 1,
|
|
12293
|
+
"endIndex": 2
|
|
12294
|
+
},
|
|
12295
|
+
"isStatic": false,
|
|
12296
|
+
"isProtected": false,
|
|
12297
|
+
"isAbstract": false
|
|
12298
|
+
},
|
|
12049
12299
|
{
|
|
12050
12300
|
"kind": "Method",
|
|
12051
12301
|
"canonicalReference": "@genesislcap/grid-pro!GridPro#statePersistanceEnabled:member(1)",
|
|
@@ -17255,6 +17505,59 @@
|
|
|
17255
17505
|
"name": "KVStorageStatePersistence",
|
|
17256
17506
|
"preserveMemberOrder": false,
|
|
17257
17507
|
"members": [
|
|
17508
|
+
{
|
|
17509
|
+
"kind": "Method",
|
|
17510
|
+
"canonicalReference": "@genesislcap/grid-pro!KVStorageStatePersistence#deleteColumnState:member(1)",
|
|
17511
|
+
"docComment": "",
|
|
17512
|
+
"excerptTokens": [
|
|
17513
|
+
{
|
|
17514
|
+
"kind": "Content",
|
|
17515
|
+
"text": "deleteColumnState(persistColumnStateKey: "
|
|
17516
|
+
},
|
|
17517
|
+
{
|
|
17518
|
+
"kind": "Content",
|
|
17519
|
+
"text": "string"
|
|
17520
|
+
},
|
|
17521
|
+
{
|
|
17522
|
+
"kind": "Content",
|
|
17523
|
+
"text": "): "
|
|
17524
|
+
},
|
|
17525
|
+
{
|
|
17526
|
+
"kind": "Reference",
|
|
17527
|
+
"text": "Promise",
|
|
17528
|
+
"canonicalReference": "!Promise:interface"
|
|
17529
|
+
},
|
|
17530
|
+
{
|
|
17531
|
+
"kind": "Content",
|
|
17532
|
+
"text": "<void>"
|
|
17533
|
+
},
|
|
17534
|
+
{
|
|
17535
|
+
"kind": "Content",
|
|
17536
|
+
"text": ";"
|
|
17537
|
+
}
|
|
17538
|
+
],
|
|
17539
|
+
"isStatic": false,
|
|
17540
|
+
"returnTypeTokenRange": {
|
|
17541
|
+
"startIndex": 3,
|
|
17542
|
+
"endIndex": 5
|
|
17543
|
+
},
|
|
17544
|
+
"releaseTag": "Public",
|
|
17545
|
+
"isProtected": false,
|
|
17546
|
+
"overloadIndex": 1,
|
|
17547
|
+
"parameters": [
|
|
17548
|
+
{
|
|
17549
|
+
"parameterName": "persistColumnStateKey",
|
|
17550
|
+
"parameterTypeTokenRange": {
|
|
17551
|
+
"startIndex": 1,
|
|
17552
|
+
"endIndex": 2
|
|
17553
|
+
},
|
|
17554
|
+
"isOptional": false
|
|
17555
|
+
}
|
|
17556
|
+
],
|
|
17557
|
+
"isOptional": false,
|
|
17558
|
+
"isAbstract": false,
|
|
17559
|
+
"name": "deleteColumnState"
|
|
17560
|
+
},
|
|
17258
17561
|
{
|
|
17259
17562
|
"kind": "Method",
|
|
17260
17563
|
"canonicalReference": "@genesislcap/grid-pro!KVStorageStatePersistence#getColumnState:member(1)",
|
|
@@ -18030,6 +18333,59 @@
|
|
|
18030
18333
|
"name": "LocalStorageStatePersistence",
|
|
18031
18334
|
"preserveMemberOrder": false,
|
|
18032
18335
|
"members": [
|
|
18336
|
+
{
|
|
18337
|
+
"kind": "Method",
|
|
18338
|
+
"canonicalReference": "@genesislcap/grid-pro!LocalStorageStatePersistence#deleteColumnState:member(1)",
|
|
18339
|
+
"docComment": "",
|
|
18340
|
+
"excerptTokens": [
|
|
18341
|
+
{
|
|
18342
|
+
"kind": "Content",
|
|
18343
|
+
"text": "deleteColumnState(persistColumnStateKey: "
|
|
18344
|
+
},
|
|
18345
|
+
{
|
|
18346
|
+
"kind": "Content",
|
|
18347
|
+
"text": "string"
|
|
18348
|
+
},
|
|
18349
|
+
{
|
|
18350
|
+
"kind": "Content",
|
|
18351
|
+
"text": "): "
|
|
18352
|
+
},
|
|
18353
|
+
{
|
|
18354
|
+
"kind": "Reference",
|
|
18355
|
+
"text": "Promise",
|
|
18356
|
+
"canonicalReference": "!Promise:interface"
|
|
18357
|
+
},
|
|
18358
|
+
{
|
|
18359
|
+
"kind": "Content",
|
|
18360
|
+
"text": "<void>"
|
|
18361
|
+
},
|
|
18362
|
+
{
|
|
18363
|
+
"kind": "Content",
|
|
18364
|
+
"text": ";"
|
|
18365
|
+
}
|
|
18366
|
+
],
|
|
18367
|
+
"isStatic": false,
|
|
18368
|
+
"returnTypeTokenRange": {
|
|
18369
|
+
"startIndex": 3,
|
|
18370
|
+
"endIndex": 5
|
|
18371
|
+
},
|
|
18372
|
+
"releaseTag": "Public",
|
|
18373
|
+
"isProtected": false,
|
|
18374
|
+
"overloadIndex": 1,
|
|
18375
|
+
"parameters": [
|
|
18376
|
+
{
|
|
18377
|
+
"parameterName": "persistColumnStateKey",
|
|
18378
|
+
"parameterTypeTokenRange": {
|
|
18379
|
+
"startIndex": 1,
|
|
18380
|
+
"endIndex": 2
|
|
18381
|
+
},
|
|
18382
|
+
"isOptional": false
|
|
18383
|
+
}
|
|
18384
|
+
],
|
|
18385
|
+
"isOptional": false,
|
|
18386
|
+
"isAbstract": false,
|
|
18387
|
+
"name": "deleteColumnState"
|
|
18388
|
+
},
|
|
18033
18389
|
{
|
|
18034
18390
|
"kind": "Method",
|
|
18035
18391
|
"canonicalReference": "@genesislcap/grid-pro!LocalStorageStatePersistence#getColumnState:member(1)",
|
|
@@ -21531,6 +21887,56 @@
|
|
|
21531
21887
|
"name": "StatePersistence",
|
|
21532
21888
|
"preserveMemberOrder": false,
|
|
21533
21889
|
"members": [
|
|
21890
|
+
{
|
|
21891
|
+
"kind": "MethodSignature",
|
|
21892
|
+
"canonicalReference": "@genesislcap/grid-pro!StatePersistence#deleteColumnState:member(1)",
|
|
21893
|
+
"docComment": "/**\n * Deletes the column state for the given key.\n *\n * @public\n */\n",
|
|
21894
|
+
"excerptTokens": [
|
|
21895
|
+
{
|
|
21896
|
+
"kind": "Content",
|
|
21897
|
+
"text": "deleteColumnState(persistColumnStateKey: "
|
|
21898
|
+
},
|
|
21899
|
+
{
|
|
21900
|
+
"kind": "Content",
|
|
21901
|
+
"text": "string"
|
|
21902
|
+
},
|
|
21903
|
+
{
|
|
21904
|
+
"kind": "Content",
|
|
21905
|
+
"text": "): "
|
|
21906
|
+
},
|
|
21907
|
+
{
|
|
21908
|
+
"kind": "Reference",
|
|
21909
|
+
"text": "Promise",
|
|
21910
|
+
"canonicalReference": "!Promise:interface"
|
|
21911
|
+
},
|
|
21912
|
+
{
|
|
21913
|
+
"kind": "Content",
|
|
21914
|
+
"text": "<void>"
|
|
21915
|
+
},
|
|
21916
|
+
{
|
|
21917
|
+
"kind": "Content",
|
|
21918
|
+
"text": ";"
|
|
21919
|
+
}
|
|
21920
|
+
],
|
|
21921
|
+
"isOptional": false,
|
|
21922
|
+
"returnTypeTokenRange": {
|
|
21923
|
+
"startIndex": 3,
|
|
21924
|
+
"endIndex": 5
|
|
21925
|
+
},
|
|
21926
|
+
"releaseTag": "Public",
|
|
21927
|
+
"overloadIndex": 1,
|
|
21928
|
+
"parameters": [
|
|
21929
|
+
{
|
|
21930
|
+
"parameterName": "persistColumnStateKey",
|
|
21931
|
+
"parameterTypeTokenRange": {
|
|
21932
|
+
"startIndex": 1,
|
|
21933
|
+
"endIndex": 2
|
|
21934
|
+
},
|
|
21935
|
+
"isOptional": false
|
|
21936
|
+
}
|
|
21937
|
+
],
|
|
21938
|
+
"name": "deleteColumnState"
|
|
21939
|
+
},
|
|
21534
21940
|
{
|
|
21535
21941
|
"kind": "MethodSignature",
|
|
21536
21942
|
"canonicalReference": "@genesislcap/grid-pro!StatePersistence#getColumnState:member(1)",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -489,6 +489,22 @@ export declare const CellTemplate: ViewTemplate<GridProCell, any>;
|
|
|
489
489
|
*/
|
|
490
490
|
export declare const ColumnTemplate: ViewTemplate<GridProColumn, any>;
|
|
491
491
|
|
|
492
|
+
/**
|
|
493
|
+
* Converts an array of ColDef to an array of ColumnState
|
|
494
|
+
* @param colDefs - The column definitions to convert
|
|
495
|
+
* @returns The corresponding ColumnState array
|
|
496
|
+
* @public
|
|
497
|
+
*/
|
|
498
|
+
export declare function convertColDefsToColumnStates(colDefs: ColDef[]): ColumnState[];
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Converts a ColDef to a ColumnState
|
|
502
|
+
* @param colDef - The column definition to convert
|
|
503
|
+
* @returns The corresponding ColumnState
|
|
504
|
+
* @public
|
|
505
|
+
*/
|
|
506
|
+
export declare function convertColDefToColumnState(colDef: ColDef): ColumnState;
|
|
507
|
+
|
|
492
508
|
/**
|
|
493
509
|
* Convert string values from 'camelCase' to 'kebab-case'
|
|
494
510
|
* @param value - The value to convert to Kebab case.
|
|
@@ -1762,6 +1778,8 @@ export declare const GridOptionsConfig: InterfaceSymbol<GridOptionsConfig>;
|
|
|
1762
1778
|
export declare class GridPro extends GridPro_base {
|
|
1763
1779
|
columnApi: ColumnApi;
|
|
1764
1780
|
gridApi: GridApi;
|
|
1781
|
+
private cachedTotalColumnWidth;
|
|
1782
|
+
private columnCount;
|
|
1765
1783
|
gridErrorItems: GridProErrorItem<GridProErrorEvent['detail']>[];
|
|
1766
1784
|
statePersistence: StatePersistence;
|
|
1767
1785
|
/**
|
|
@@ -1777,6 +1795,18 @@ export declare class GridPro extends GridPro_base {
|
|
|
1777
1795
|
* in local storage if you are using `persist-column-state-key`.
|
|
1778
1796
|
*/
|
|
1779
1797
|
gridAutosizingEnabled: boolean;
|
|
1798
|
+
/**
|
|
1799
|
+
* Boolean attribute to control whether the grid automatically sizes columns to fit their content.
|
|
1800
|
+
* This will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.
|
|
1801
|
+
* @public
|
|
1802
|
+
*/
|
|
1803
|
+
sizeColumnsToContent: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* Boolean attribute to adjust the size of columns to fit the available horizontal space.
|
|
1806
|
+
* This will call AG Grid's sizeColumnsToFit() method.
|
|
1807
|
+
* @public
|
|
1808
|
+
*/
|
|
1809
|
+
sizeColumnsToFit: boolean;
|
|
1780
1810
|
/**
|
|
1781
1811
|
* The index to add new rows to when using `applyTransaction` or `applyTransactionAsync`
|
|
1782
1812
|
*/
|
|
@@ -1817,6 +1847,10 @@ export declare class GridPro extends GridPro_base {
|
|
|
1817
1847
|
* The key to use for persisting the filter model in local browser or KV storage.
|
|
1818
1848
|
*/
|
|
1819
1849
|
persistFilterModelKey: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* The default column config to reset to when deleteColumnState is called.
|
|
1852
|
+
*/
|
|
1853
|
+
defaultColumnConfig: ColDef[];
|
|
1820
1854
|
/**
|
|
1821
1855
|
* The case type to use for the header names. If not set, the default CONSTANT_CASE will be used.
|
|
1822
1856
|
* @remarks Can be one of the following: camelCase, capitalCase, dotCase, headerCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase.
|
|
@@ -1974,6 +2008,13 @@ export declare class GridPro extends GridPro_base {
|
|
|
1974
2008
|
* @public
|
|
1975
2009
|
*/
|
|
1976
2010
|
getSavedColumnState(): Promise<ColumnState[]>;
|
|
2011
|
+
/**
|
|
2012
|
+
* Deletes the saved column state for the current grid
|
|
2013
|
+
* @param resetToDefault - Whether to reset columns to their default configuration. Defaults to true.
|
|
2014
|
+
* @remarks This removes the persisted column state from storage, allowing the grid to use default column configuration
|
|
2015
|
+
* @public
|
|
2016
|
+
*/
|
|
2017
|
+
deleteColumnState(resetToDefault?: boolean): Promise<void>;
|
|
1977
2018
|
private restoreColumnState;
|
|
1978
2019
|
cacheFilterConfig(): void;
|
|
1979
2020
|
restoreCachedFilterConfig(): Promise<void>;
|
|
@@ -2028,6 +2069,38 @@ export declare class GridPro extends GridPro_base {
|
|
|
2028
2069
|
private addDatasourcePanels;
|
|
2029
2070
|
private addPaginationPanel;
|
|
2030
2071
|
protected setupPaginationAndStatusBar(gridOptions: GridOptions): void;
|
|
2072
|
+
/**
|
|
2073
|
+
* Handles column sizing based on sizeColumnsToContent and sizeColumnsToFit attributes
|
|
2074
|
+
* @private
|
|
2075
|
+
*/
|
|
2076
|
+
private handleColumnSizing;
|
|
2077
|
+
/**
|
|
2078
|
+
* Handles when both sizeColumnsToContent and sizeColumnsToFit are enabled
|
|
2079
|
+
* @private
|
|
2080
|
+
*/
|
|
2081
|
+
private handleBothSizingModes;
|
|
2082
|
+
/**
|
|
2083
|
+
* Handles individual sizing modes when only one is enabled
|
|
2084
|
+
* @private
|
|
2085
|
+
*/
|
|
2086
|
+
private handleIndividualSizingModes;
|
|
2087
|
+
/**
|
|
2088
|
+
* Calculates the total width of all columns
|
|
2089
|
+
* @private
|
|
2090
|
+
*/
|
|
2091
|
+
private calculateTotalColumnWidth;
|
|
2092
|
+
/**
|
|
2093
|
+
* Invalidates the cached column width calculation
|
|
2094
|
+
* @private
|
|
2095
|
+
* @remarks This method is called automatically when column changes occur (resize, move, pin, etc.)
|
|
2096
|
+
* to ensure the cached width calculation remains accurate.
|
|
2097
|
+
*/
|
|
2098
|
+
private invalidateColumnWidthCache;
|
|
2099
|
+
/**
|
|
2100
|
+
* Gets the available grid width with fallbacks
|
|
2101
|
+
* @private
|
|
2102
|
+
*/
|
|
2103
|
+
private getGridWidth;
|
|
2031
2104
|
get observedAttributes(): string[];
|
|
2032
2105
|
agAttributeChangedCallback(attName: any, oldValue: any, newValue: any): void;
|
|
2033
2106
|
globalEventListener(eventType: any, event: any): void;
|
|
@@ -4046,6 +4119,7 @@ export declare class KVStorageStatePersistence implements StatePersistence {
|
|
|
4046
4119
|
session: Session;
|
|
4047
4120
|
getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
|
|
4048
4121
|
saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
|
|
4122
|
+
deleteColumnState(persistColumnStateKey: string): Promise<void>;
|
|
4049
4123
|
private migrateLocalStorageToKVStorage;
|
|
4050
4124
|
getFilterModel(persistFilterModelKey: string): Promise<{
|
|
4051
4125
|
[key: string]: any;
|
|
@@ -4127,6 +4201,7 @@ export declare class LocalStorageStatePersistence implements StatePersistence {
|
|
|
4127
4201
|
session: Session;
|
|
4128
4202
|
getColumnState(persistColumnStateKey: string): Promise<ColumnState[]>;
|
|
4129
4203
|
saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
|
|
4204
|
+
deleteColumnState(persistColumnStateKey: string): Promise<void>;
|
|
4130
4205
|
getFilterModel(persistFilterModelKey: string): Promise<{
|
|
4131
4206
|
[key: string]: any;
|
|
4132
4207
|
}>;
|
|
@@ -4406,6 +4481,11 @@ export declare interface StatePersistence {
|
|
|
4406
4481
|
* @public
|
|
4407
4482
|
*/
|
|
4408
4483
|
saveColumnState(persistColumnStateKey: string, columnState: ColumnState[]): Promise<void>;
|
|
4484
|
+
/**
|
|
4485
|
+
* Deletes the column state for the given key.
|
|
4486
|
+
* @public
|
|
4487
|
+
*/
|
|
4488
|
+
deleteColumnState(persistColumnStateKey: string): Promise<void>;
|
|
4409
4489
|
/**
|
|
4410
4490
|
* Returns the filter model for the given key.
|
|
4411
4491
|
* @public
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [convertColDefsToColumnStates](./grid-pro.convertcoldefstocolumnstates.md)
|
|
4
|
+
|
|
5
|
+
## convertColDefsToColumnStates() function
|
|
6
|
+
|
|
7
|
+
Converts an array of ColDef to an array of ColumnState
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function convertColDefsToColumnStates(colDefs: ColDef[]): ColumnState[];
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
colDefs
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
ColDef\[\]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
The column definitions to convert
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
50
|
+
|
|
51
|
+
**Returns:**
|
|
52
|
+
|
|
53
|
+
ColumnState\[\]
|
|
54
|
+
|
|
55
|
+
The corresponding ColumnState array
|
|
56
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [convertColDefToColumnState](./grid-pro.convertcoldeftocolumnstate.md)
|
|
4
|
+
|
|
5
|
+
## convertColDefToColumnState() function
|
|
6
|
+
|
|
7
|
+
Converts a ColDef to a ColumnState
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function convertColDefToColumnState(colDef: ColDef): ColumnState;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Parameter
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Type
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Description
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th></tr></thead>
|
|
33
|
+
<tbody><tr><td>
|
|
34
|
+
|
|
35
|
+
colDef
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
ColDef
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
The column definition to convert
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
50
|
+
|
|
51
|
+
**Returns:**
|
|
52
|
+
|
|
53
|
+
ColumnState
|
|
54
|
+
|
|
55
|
+
The corresponding ColumnState
|
|
56
|
+
|