@genesislcap/foundation-workspace 15.78.1 → 15.79.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.
@@ -64,7 +64,7 @@
64
64
  "declarations": [
65
65
  {
66
66
  "kind": "class",
67
- "description": "",
67
+ "description": "Default filter registry implementation.",
68
68
  "name": "DefaultFilterRegistry",
69
69
  "members": [
70
70
  {
@@ -76,6 +76,15 @@
76
76
  "privacy": "private",
77
77
  "default": "new Map()"
78
78
  },
79
+ {
80
+ "kind": "field",
81
+ "name": "stored",
82
+ "type": {
83
+ "text": "Map<string, SavedFilterValue>"
84
+ },
85
+ "privacy": "private",
86
+ "default": "new Map()"
87
+ },
79
88
  {
80
89
  "kind": "method",
81
90
  "name": "registerFilter",
@@ -147,6 +156,24 @@
147
156
  }
148
157
  }
149
158
  ]
159
+ },
160
+ {
161
+ "kind": "method",
162
+ "name": "readValue",
163
+ "privacy": "private",
164
+ "return": {
165
+ "type": {
166
+ "text": "SavedFilterValue"
167
+ }
168
+ },
169
+ "parameters": [
170
+ {
171
+ "name": "registration",
172
+ "type": {
173
+ "text": "FilterRegistration"
174
+ }
175
+ }
176
+ ]
150
177
  }
151
178
  ]
152
179
  },
@@ -181,9 +208,36 @@
181
208
  "declarations": [
182
209
  {
183
210
  "kind": "class",
184
- "description": "",
211
+ "description": "Default grid registry implementation.",
185
212
  "name": "DefaultGridRegistry",
186
213
  "members": [
214
+ {
215
+ "kind": "field",
216
+ "name": "filterSettleMs",
217
+ "default": "1500",
218
+ "description": "Quiet period after the last start-up event before the filter guard ends.",
219
+ "type": {
220
+ "text": "number"
221
+ }
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "filterGuardMaxMs",
226
+ "default": "10000",
227
+ "description": "Longest the filter guard runs after it is armed, however often it is re-armed.",
228
+ "type": {
229
+ "text": "number"
230
+ }
231
+ },
232
+ {
233
+ "kind": "field",
234
+ "name": "maxFilterReapplies",
235
+ "default": "3",
236
+ "description": "Most re-applies the filter guard makes per arming.",
237
+ "type": {
238
+ "text": "number"
239
+ }
240
+ },
187
241
  {
188
242
  "kind": "field",
189
243
  "name": "grids",
@@ -195,13 +249,32 @@
195
249
  },
196
250
  {
197
251
  "kind": "field",
198
- "name": "cachedSettings",
252
+ "name": "stored",
199
253
  "type": {
200
254
  "text": "Map<string, SavedGridSettings>"
201
255
  },
202
256
  "privacy": "private",
203
257
  "default": "new Map()"
204
258
  },
259
+ {
260
+ "kind": "field",
261
+ "name": "listeners",
262
+ "privacy": "private",
263
+ "default": "new Map<GridRegistration, [string, GridEventListener][]>()"
264
+ },
265
+ {
266
+ "kind": "field",
267
+ "name": "guards",
268
+ "privacy": "private",
269
+ "default": "new Map<GridRegistration, FilterGuard>()"
270
+ },
271
+ {
272
+ "kind": "field",
273
+ "name": "settled",
274
+ "privacy": "private",
275
+ "default": "new Set<GridRegistration>()",
276
+ "description": "Registrations whose first data has rendered or whose filters the user has changed."
277
+ },
205
278
  {
206
279
  "kind": "method",
207
280
  "name": "registerGrid",
@@ -228,9 +301,42 @@
228
301
  "type": {
229
302
  "text": "unknown"
230
303
  }
304
+ },
305
+ {
306
+ "name": "filterPersistence",
307
+ "optional": true,
308
+ "type": {
309
+ "text": "GridFilterPersistence"
310
+ }
231
311
  }
232
312
  ]
233
313
  },
314
+ {
315
+ "kind": "method",
316
+ "name": "applyStoredSettings",
317
+ "privacy": "private",
318
+ "return": {
319
+ "type": {
320
+ "text": "void"
321
+ }
322
+ },
323
+ "parameters": [
324
+ {
325
+ "name": "registration",
326
+ "type": {
327
+ "text": "GridRegistration"
328
+ }
329
+ },
330
+ {
331
+ "name": "options",
332
+ "optional": true,
333
+ "type": {
334
+ "text": "{ applyFilters?: boolean }"
335
+ }
336
+ }
337
+ ],
338
+ "description": "Applies the stored settings for a grid, unless it already has exactly that state."
339
+ },
234
340
  {
235
341
  "kind": "method",
236
342
  "name": "getGrid",
@@ -312,12 +418,276 @@
312
418
  "type": {
313
419
  "text": "SavedGridSettings[]"
314
420
  }
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "kind": "method",
426
+ "name": "applyFilterModel",
427
+ "privacy": "private",
428
+ "return": {
429
+ "type": {
430
+ "text": "void"
431
+ }
432
+ },
433
+ "parameters": [
434
+ {
435
+ "name": "registration",
436
+ "type": {
437
+ "text": "GridRegistration"
438
+ }
439
+ },
440
+ {
441
+ "name": "filterModel",
442
+ "type": {
443
+ "text": "Record<string, unknown>"
444
+ }
445
+ }
446
+ ],
447
+ "description": "Writes a filter model into the grid's own persistence, then onto the grid, and records what\nthe grid reports back so the guard can tell a later replacement from AG Grid's normalisation."
448
+ },
449
+ {
450
+ "kind": "method",
451
+ "name": "reapplyStoredFilter",
452
+ "privacy": "private",
453
+ "return": {
454
+ "type": {
455
+ "text": "void"
456
+ }
457
+ },
458
+ "parameters": [
459
+ {
460
+ "name": "registration",
461
+ "type": {
462
+ "text": "GridRegistration"
463
+ }
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "kind": "method",
469
+ "name": "filterWasReplaced",
470
+ "privacy": "private",
471
+ "return": {
472
+ "type": {
473
+ "text": "boolean"
474
+ }
475
+ },
476
+ "parameters": [
477
+ {
478
+ "name": "registration",
479
+ "type": {
480
+ "text": "GridRegistration"
481
+ }
482
+ }
483
+ ],
484
+ "description": "Whether the grid's filter model moved away from what the registry last applied — a stale\nrestore or other programmatic change, rather than AG Grid normalising the applied model (which\nreads back the same each time)."
485
+ },
486
+ {
487
+ "kind": "method",
488
+ "name": "armFilterGuard",
489
+ "privacy": "private",
490
+ "return": {
491
+ "type": {
492
+ "text": "void"
493
+ }
494
+ },
495
+ "parameters": [
496
+ {
497
+ "name": "registration",
498
+ "type": {
499
+ "text": "GridRegistration"
500
+ }
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "kind": "method",
506
+ "name": "touchFilterGuard",
507
+ "privacy": "private",
508
+ "return": {
509
+ "type": {
510
+ "text": "void"
511
+ }
512
+ },
513
+ "parameters": [
514
+ {
515
+ "name": "registration",
516
+ "type": {
517
+ "text": "GridRegistration"
518
+ }
519
+ }
520
+ ],
521
+ "description": "Restarts the settle timer: the grid just did something that can precede a stale restore."
522
+ },
523
+ {
524
+ "kind": "method",
525
+ "name": "guardActive",
526
+ "privacy": "private",
527
+ "return": {
528
+ "type": {
529
+ "text": "boolean"
530
+ }
531
+ },
532
+ "parameters": [
533
+ {
534
+ "name": "registration",
535
+ "type": {
536
+ "text": "GridRegistration"
537
+ }
538
+ }
539
+ ]
540
+ },
541
+ {
542
+ "kind": "method",
543
+ "name": "endFilterGuard",
544
+ "privacy": "private",
545
+ "return": {
546
+ "type": {
547
+ "text": "void"
548
+ }
549
+ },
550
+ "parameters": [
551
+ {
552
+ "name": "registration",
553
+ "type": {
554
+ "text": "GridRegistration"
555
+ }
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "kind": "method",
561
+ "name": "addListener",
562
+ "privacy": "private",
563
+ "parameters": [
564
+ {
565
+ "name": "registration",
566
+ "type": {
567
+ "text": "GridRegistration"
568
+ }
569
+ },
570
+ {
571
+ "name": "type",
572
+ "type": {
573
+ "text": "string"
574
+ }
575
+ },
576
+ {
577
+ "name": "listener",
578
+ "type": {
579
+ "text": "GridEventListener"
580
+ }
581
+ }
582
+ ]
583
+ },
584
+ {
585
+ "kind": "method",
586
+ "name": "removeListener",
587
+ "privacy": "private",
588
+ "return": {
589
+ "type": {
590
+ "text": "void"
591
+ }
592
+ },
593
+ "parameters": [
594
+ {
595
+ "name": "registration",
596
+ "type": {
597
+ "text": "GridRegistration"
598
+ }
599
+ },
600
+ {
601
+ "name": "type",
602
+ "type": {
603
+ "text": "string"
604
+ }
605
+ },
606
+ {
607
+ "name": "listener",
608
+ "type": {
609
+ "text": "GridEventListener"
610
+ }
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "kind": "method",
616
+ "name": "storeSnapshot",
617
+ "privacy": "private",
618
+ "return": {
619
+ "type": {
620
+ "text": "void"
621
+ }
622
+ },
623
+ "parameters": [
624
+ {
625
+ "name": "registration",
626
+ "type": {
627
+ "text": "GridRegistration"
628
+ }
629
+ }
630
+ ],
631
+ "description": "Stores a grid's live state over its stored entry, except what the grid can't report yet:\n- nothing, once its API is destroyed (grid-pro destroys the outgoing grid before the new one\n re-registers, and a destroyed v36 API returns `undefined` rather than throwing);\n- the stored column state and filter model while the grid has no columns: before datasource\n columns exist, and after a datasource restart clears them (AG Grid then drops every filter,\n before grid-pro rebuilds the grid). With nothing stored, the filter model is left out, so the\n next registration leaves grid-pro to restore its own persisted filters;\n- the stored filter model until the first data renders or the user filters, since before that\n the grid may not have applied it yet (its columns or grid-pro's restore still pending)."
632
+ },
633
+ {
634
+ "kind": "method",
635
+ "name": "detach",
636
+ "privacy": "private",
637
+ "return": {
638
+ "type": {
639
+ "text": "void"
640
+ }
641
+ },
642
+ "parameters": [
643
+ {
644
+ "name": "registration",
645
+ "type": {
646
+ "text": "GridRegistration"
647
+ }
648
+ }
649
+ ],
650
+ "description": "Removes a registration's grid listeners and stops its filter guard."
651
+ },
652
+ {
653
+ "kind": "method",
654
+ "name": "hasSettings",
655
+ "privacy": "private",
656
+ "return": {
657
+ "type": {
658
+ "text": "boolean"
659
+ }
660
+ },
661
+ "parameters": [
662
+ {
663
+ "name": "grid",
664
+ "type": {
665
+ "text": "GridRegistration"
666
+ }
315
667
  },
316
668
  {
317
- "name": "maxRetries",
318
- "default": "3",
669
+ "name": "settings",
670
+ "type": {
671
+ "text": "SavedGridSettings"
672
+ }
673
+ }
674
+ ],
675
+ "description": "Whether the grid already has exactly these settings, so re-applying them is a no-op."
676
+ },
677
+ {
678
+ "kind": "method",
679
+ "name": "readFilterModel",
680
+ "privacy": "private",
681
+ "return": {
682
+ "type": {
683
+ "text": "string"
684
+ }
685
+ },
686
+ "parameters": [
687
+ {
688
+ "name": "grid",
319
689
  "type": {
320
- "text": "number"
690
+ "text": "GridRegistration"
321
691
  }
322
692
  }
323
693
  ]
@@ -457,11 +827,27 @@
457
827
  "kind": "field",
458
828
  "name": "layouts",
459
829
  "type": {
460
- "text": "Map<string, FoundationLayout>"
830
+ "text": "Map<string, WorkspaceLayout>"
831
+ },
832
+ "privacy": "private",
833
+ "default": "new Map()"
834
+ },
835
+ {
836
+ "kind": "field",
837
+ "name": "stored",
838
+ "type": {
839
+ "text": "Map<string, SerialisedLayout>"
461
840
  },
462
841
  "privacy": "private",
463
842
  "default": "new Map()"
464
843
  },
844
+ {
845
+ "kind": "field",
846
+ "name": "waiting",
847
+ "privacy": "private",
848
+ "default": "new WeakSet<WorkspaceLayout>()",
849
+ "description": "Layouts with a stored-config load queued for their first load."
850
+ },
465
851
  {
466
852
  "kind": "method",
467
853
  "name": "registerLayout",
@@ -480,7 +866,7 @@
480
866
  {
481
867
  "name": "layout",
482
868
  "type": {
483
- "text": "FoundationLayout"
869
+ "text": "WorkspaceLayout"
484
870
  }
485
871
  }
486
872
  ]
@@ -527,6 +913,50 @@
527
913
  }
528
914
  }
529
915
  ]
916
+ },
917
+ {
918
+ "kind": "method",
919
+ "name": "readLayout",
920
+ "privacy": "private",
921
+ "return": {
922
+ "type": {
923
+ "text": "SerialisedLayout | null"
924
+ }
925
+ },
926
+ "parameters": [
927
+ {
928
+ "name": "layout",
929
+ "type": {
930
+ "text": "WorkspaceLayout"
931
+ }
932
+ }
933
+ ],
934
+ "description": "A layout's config is only meaningful once it has finished its first load; before that it has\nno panes yet, and storing that would wipe the saved config."
935
+ },
936
+ {
937
+ "kind": "method",
938
+ "name": "loadStored",
939
+ "privacy": "private",
940
+ "return": {
941
+ "type": {
942
+ "text": "void"
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "layoutKey",
948
+ "type": {
949
+ "text": "string"
950
+ }
951
+ },
952
+ {
953
+ "name": "layout",
954
+ "type": {
955
+ "text": "WorkspaceLayout"
956
+ }
957
+ }
958
+ ],
959
+ "description": "Loads a layout's stored config once it has finished its first load. The config is read at load\ntime, so a workspace loaded while waiting wins, and a layout waiting already isn't queued twice;\nnothing loads into a layout that has since unregistered or been replaced under its key."
530
960
  }
531
961
  ]
532
962
  },
@@ -1236,7 +1666,8 @@
1236
1666
  "text": "SavedWorkspace"
1237
1667
  }
1238
1668
  }
1239
- ]
1669
+ ],
1670
+ "description": "Seeds every registry's store with the workspace's entries (replacing whatever was stored,\neven when a list is empty) and applies them to what's mounted; unmounted grids, layouts and\nfilters pick theirs up when they register. Grids and filters are seeded before layouts:\nloading a layout rebuilds its panes, and the grids/filters inside re-register straight away."
1240
1671
  },
1241
1672
  {
1242
1673
  "kind": "method",
@@ -1668,13 +2099,28 @@
1668
2099
  },
1669
2100
  {
1670
2101
  "kind": "javascript-module",
1671
- "path": "src/workspace/grid-register/grid-register.template.ts",
2102
+ "path": "src/workspace/layout-wrapper/index.ts",
2103
+ "declarations": [],
2104
+ "exports": [
2105
+ {
2106
+ "kind": "js",
2107
+ "name": "*",
2108
+ "declaration": {
2109
+ "name": "*",
2110
+ "package": "./layout-wrapper"
2111
+ }
2112
+ }
2113
+ ]
2114
+ },
2115
+ {
2116
+ "kind": "javascript-module",
2117
+ "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
1672
2118
  "declarations": [
1673
2119
  {
1674
2120
  "kind": "variable",
1675
- "name": "GridRegisterTemplate",
2121
+ "name": "LayoutWrapperTemplate",
1676
2122
  "type": {
1677
- "text": "ViewTemplate<GridRegister>"
2123
+ "text": "ViewTemplate<LayoutWrapper>"
1678
2124
  },
1679
2125
  "default": "html`\n <slot></slot>\n`"
1680
2126
  }
@@ -1682,26 +2128,26 @@
1682
2128
  "exports": [
1683
2129
  {
1684
2130
  "kind": "js",
1685
- "name": "GridRegisterTemplate",
2131
+ "name": "LayoutWrapperTemplate",
1686
2132
  "declaration": {
1687
- "name": "GridRegisterTemplate",
1688
- "module": "src/workspace/grid-register/grid-register.template.ts"
2133
+ "name": "LayoutWrapperTemplate",
2134
+ "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
1689
2135
  }
1690
2136
  }
1691
2137
  ]
1692
2138
  },
1693
2139
  {
1694
2140
  "kind": "javascript-module",
1695
- "path": "src/workspace/grid-register/grid-register.ts",
2141
+ "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
1696
2142
  "declarations": [
1697
2143
  {
1698
2144
  "kind": "class",
1699
- "description": "Registers an AG Grid instance so workspace state can apply/load it.",
1700
- "name": "GridRegister",
2145
+ "description": "Registers a layout instance so workspace state can apply/load it.",
2146
+ "name": "LayoutWrapper",
1701
2147
  "members": [
1702
2148
  {
1703
2149
  "kind": "field",
1704
- "name": "gridKey",
2150
+ "name": "layoutKey",
1705
2151
  "type": {
1706
2152
  "text": "string"
1707
2153
  }
@@ -1716,76 +2162,23 @@
1716
2162
  },
1717
2163
  {
1718
2164
  "kind": "field",
1719
- "name": "gridRegistry",
1720
- "type": {
1721
- "text": "GridRegistry"
1722
- }
1723
- },
1724
- {
1725
- "kind": "field",
1726
- "name": "workspaceState",
2165
+ "name": "layoutRegistry",
1727
2166
  "type": {
1728
- "text": "WorkspaceState"
2167
+ "text": "LayoutRegistry"
1729
2168
  }
1730
2169
  },
1731
2170
  {
1732
2171
  "kind": "field",
1733
- "name": "gridElement",
1734
- "type": {
1735
- "text": "GridPro | GridProLegacy | null"
1736
- },
1737
- "privacy": "private",
1738
- "default": "null",
1739
- "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
1740
- },
1741
- {
1742
- "kind": "field",
1743
- "name": "gridApi",
2172
+ "name": "layoutElement",
1744
2173
  "type": {
1745
- "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
2174
+ "text": "FoundationLayout | null"
1746
2175
  },
1747
2176
  "privacy": "private",
1748
2177
  "default": "null"
1749
2178
  },
1750
- {
1751
- "kind": "field",
1752
- "name": "columnApi",
1753
- "type": {
1754
- "text": "ColumnApi | null"
1755
- },
1756
- "privacy": "private",
1757
- "default": "null",
1758
- "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
1759
- },
1760
- {
1761
- "kind": "method",
1762
- "name": "findAndRegisterGrid",
1763
- "privacy": "private",
1764
- "return": {
1765
- "type": {
1766
- "text": "void"
1767
- }
1768
- }
1769
- },
1770
- {
1771
- "kind": "field",
1772
- "name": "handleGridReady",
1773
- "privacy": "private",
1774
- "readonly": true
1775
- },
1776
- {
1777
- "kind": "method",
1778
- "name": "attachToGridApis",
1779
- "privacy": "private",
1780
- "return": {
1781
- "type": {
1782
- "text": "void"
1783
- }
1784
- }
1785
- },
1786
2179
  {
1787
2180
  "kind": "method",
1788
- "name": "detachFromGridApis",
2181
+ "name": "findAndRegisterLayout",
1789
2182
  "privacy": "private",
1790
2183
  "return": {
1791
2184
  "type": {
@@ -1793,46 +2186,6 @@
1793
2186
  }
1794
2187
  }
1795
2188
  },
1796
- {
1797
- "kind": "method",
1798
- "name": "loadWorkspaceSettings",
1799
- "privacy": "private",
1800
- "return": {
1801
- "type": {
1802
- "text": "Promise<void>"
1803
- }
1804
- },
1805
- "parameters": [
1806
- {
1807
- "name": "options",
1808
- "optional": true,
1809
- "type": {
1810
- "text": "{ applyColumns?: boolean }"
1811
- }
1812
- }
1813
- ]
1814
- },
1815
- {
1816
- "kind": "method",
1817
- "name": "readColumnState",
1818
- "privacy": "private",
1819
- "return": {
1820
- "type": {
1821
- "text": "ColumnState[]"
1822
- }
1823
- },
1824
- "description": "Column state comes from `gridApi` on AG Grid v36 and from `columnApi` on v29; mirrors the\nfallback `GridRegistry` uses when saving."
1825
- },
1826
- {
1827
- "kind": "method",
1828
- "name": "loadWorkspaceColumnState",
1829
- "privacy": "private",
1830
- "return": {
1831
- "type": {
1832
- "text": "Promise<void>"
1833
- }
1834
- }
1835
- },
1836
2189
  {
1837
2190
  "kind": "field",
1838
2191
  "name": "_presentation",
@@ -1947,11 +2300,11 @@
1947
2300
  ],
1948
2301
  "attributes": [
1949
2302
  {
1950
- "name": "grid-key",
2303
+ "name": "layout-key",
1951
2304
  "type": {
1952
2305
  "text": "string"
1953
2306
  },
1954
- "fieldName": "gridKey"
2307
+ "fieldName": "layoutKey"
1955
2308
  },
1956
2309
  {
1957
2310
  "name": "design-system-prefix",
@@ -1966,68 +2319,38 @@
1966
2319
  "name": "FoundationElement",
1967
2320
  "package": "@genesislcap/web-core"
1968
2321
  },
1969
- "tagName": "grid-register",
2322
+ "tagName": "layout-register",
1970
2323
  "customElement": true
1971
2324
  }
1972
2325
  ],
1973
2326
  "exports": [
1974
2327
  {
1975
2328
  "kind": "js",
1976
- "name": "GridRegister",
2329
+ "name": "LayoutWrapper",
1977
2330
  "declaration": {
1978
- "name": "GridRegister",
1979
- "module": "src/workspace/grid-register/grid-register.ts"
2331
+ "name": "LayoutWrapper",
2332
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
1980
2333
  }
1981
2334
  },
1982
2335
  {
1983
2336
  "kind": "custom-element-definition",
1984
- "name": "grid-register",
1985
- "declaration": {
1986
- "name": "GridRegister",
1987
- "module": "src/workspace/grid-register/grid-register.ts"
1988
- }
1989
- }
1990
- ]
1991
- },
1992
- {
1993
- "kind": "javascript-module",
1994
- "path": "src/workspace/grid-register/index.ts",
1995
- "declarations": [],
1996
- "exports": [
1997
- {
1998
- "kind": "js",
1999
- "name": "*",
2000
- "declaration": {
2001
- "name": "*",
2002
- "package": "./grid-register"
2003
- }
2004
- }
2005
- ]
2006
- },
2007
- {
2008
- "kind": "javascript-module",
2009
- "path": "src/workspace/layout-wrapper/index.ts",
2010
- "declarations": [],
2011
- "exports": [
2012
- {
2013
- "kind": "js",
2014
- "name": "*",
2337
+ "name": "layout-register",
2015
2338
  "declaration": {
2016
- "name": "*",
2017
- "package": "./layout-wrapper"
2339
+ "name": "LayoutWrapper",
2340
+ "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2018
2341
  }
2019
2342
  }
2020
2343
  ]
2021
2344
  },
2022
2345
  {
2023
2346
  "kind": "javascript-module",
2024
- "path": "src/workspace/layout-wrapper/layout-wrapper.template.ts",
2347
+ "path": "src/workspace/grid-register/grid-register.template.ts",
2025
2348
  "declarations": [
2026
2349
  {
2027
2350
  "kind": "variable",
2028
- "name": "LayoutWrapperTemplate",
2351
+ "name": "GridRegisterTemplate",
2029
2352
  "type": {
2030
- "text": "ViewTemplate<LayoutWrapper>"
2353
+ "text": "ViewTemplate<GridRegister>"
2031
2354
  },
2032
2355
  "default": "html`\n <slot></slot>\n`"
2033
2356
  }
@@ -2035,26 +2358,26 @@
2035
2358
  "exports": [
2036
2359
  {
2037
2360
  "kind": "js",
2038
- "name": "LayoutWrapperTemplate",
2361
+ "name": "GridRegisterTemplate",
2039
2362
  "declaration": {
2040
- "name": "LayoutWrapperTemplate",
2041
- "module": "src/workspace/layout-wrapper/layout-wrapper.template.ts"
2363
+ "name": "GridRegisterTemplate",
2364
+ "module": "src/workspace/grid-register/grid-register.template.ts"
2042
2365
  }
2043
2366
  }
2044
2367
  ]
2045
2368
  },
2046
2369
  {
2047
2370
  "kind": "javascript-module",
2048
- "path": "src/workspace/layout-wrapper/layout-wrapper.ts",
2371
+ "path": "src/workspace/grid-register/grid-register.ts",
2049
2372
  "declarations": [
2050
2373
  {
2051
2374
  "kind": "class",
2052
- "description": "Registers a layout instance so workspace state can apply/load it.",
2053
- "name": "LayoutWrapper",
2375
+ "description": "Registers an AG Grid instance so workspace state can apply/load it. Registering applies the\ngrid's stored column state (from the loaded workspace, or its last state this session) — see\n`DefaultGridRegistry`.",
2376
+ "name": "GridRegister",
2054
2377
  "members": [
2055
2378
  {
2056
2379
  "kind": "field",
2057
- "name": "layoutKey",
2380
+ "name": "gridKey",
2058
2381
  "type": {
2059
2382
  "text": "string"
2060
2383
  }
@@ -2069,23 +2392,69 @@
2069
2392
  },
2070
2393
  {
2071
2394
  "kind": "field",
2072
- "name": "layoutRegistry",
2395
+ "name": "gridRegistry",
2073
2396
  "type": {
2074
- "text": "LayoutRegistry"
2397
+ "text": "GridRegistry"
2075
2398
  }
2076
2399
  },
2077
2400
  {
2078
2401
  "kind": "field",
2079
- "name": "layoutElement",
2402
+ "name": "gridElement",
2080
2403
  "type": {
2081
- "text": "FoundationLayout | null"
2404
+ "text": "GridPro | GridProLegacy | null"
2405
+ },
2406
+ "privacy": "private",
2407
+ "default": "null",
2408
+ "description": "`<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid."
2409
+ },
2410
+ {
2411
+ "kind": "field",
2412
+ "name": "gridApi",
2413
+ "type": {
2414
+ "text": "GridPro['gridApi'] | GridProLegacy['gridApi'] | null"
2082
2415
  },
2083
2416
  "privacy": "private",
2084
2417
  "default": "null"
2085
2418
  },
2419
+ {
2420
+ "kind": "field",
2421
+ "name": "columnApi",
2422
+ "type": {
2423
+ "text": "ColumnApi | null"
2424
+ },
2425
+ "privacy": "private",
2426
+ "default": "null",
2427
+ "description": "Only the v29 grid has a column API; on v36 the column state lives on `gridApi`."
2428
+ },
2086
2429
  {
2087
2430
  "kind": "method",
2088
- "name": "findAndRegisterLayout",
2431
+ "name": "findAndRegisterGrid",
2432
+ "privacy": "private",
2433
+ "return": {
2434
+ "type": {
2435
+ "text": "void"
2436
+ }
2437
+ }
2438
+ },
2439
+ {
2440
+ "kind": "field",
2441
+ "name": "handleGridReady",
2442
+ "privacy": "private",
2443
+ "readonly": true
2444
+ },
2445
+ {
2446
+ "kind": "method",
2447
+ "name": "attachToGridApis",
2448
+ "privacy": "private",
2449
+ "return": {
2450
+ "type": {
2451
+ "text": "void"
2452
+ }
2453
+ }
2454
+ },
2455
+ {
2456
+ "kind": "method",
2457
+ "name": "detachFromGridApis",
2089
2458
  "privacy": "private",
2090
2459
  "return": {
2091
2460
  "type": {
@@ -2207,11 +2576,11 @@
2207
2576
  ],
2208
2577
  "attributes": [
2209
2578
  {
2210
- "name": "layout-key",
2579
+ "name": "grid-key",
2211
2580
  "type": {
2212
2581
  "text": "string"
2213
2582
  },
2214
- "fieldName": "layoutKey"
2583
+ "fieldName": "gridKey"
2215
2584
  },
2216
2585
  {
2217
2586
  "name": "design-system-prefix",
@@ -2226,25 +2595,40 @@
2226
2595
  "name": "FoundationElement",
2227
2596
  "package": "@genesislcap/web-core"
2228
2597
  },
2229
- "tagName": "layout-register",
2598
+ "tagName": "grid-register",
2230
2599
  "customElement": true
2231
2600
  }
2232
2601
  ],
2233
2602
  "exports": [
2234
2603
  {
2235
2604
  "kind": "js",
2236
- "name": "LayoutWrapper",
2605
+ "name": "GridRegister",
2237
2606
  "declaration": {
2238
- "name": "LayoutWrapper",
2239
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2607
+ "name": "GridRegister",
2608
+ "module": "src/workspace/grid-register/grid-register.ts"
2240
2609
  }
2241
2610
  },
2242
2611
  {
2243
2612
  "kind": "custom-element-definition",
2244
- "name": "layout-register",
2613
+ "name": "grid-register",
2245
2614
  "declaration": {
2246
- "name": "LayoutWrapper",
2247
- "module": "src/workspace/layout-wrapper/layout-wrapper.ts"
2615
+ "name": "GridRegister",
2616
+ "module": "src/workspace/grid-register/grid-register.ts"
2617
+ }
2618
+ }
2619
+ ]
2620
+ },
2621
+ {
2622
+ "kind": "javascript-module",
2623
+ "path": "src/workspace/grid-register/index.ts",
2624
+ "declarations": [],
2625
+ "exports": [
2626
+ {
2627
+ "kind": "js",
2628
+ "name": "*",
2629
+ "declaration": {
2630
+ "name": "*",
2631
+ "package": "./grid-register"
2248
2632
  }
2249
2633
  }
2250
2634
  ]