@genesislcap/foundation-workspace 15.73.0-FUI-2628.4 → 15.74.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/dist/custom-elements.json +57 -407
- package/dist/dts/workspace/filter-registry.d.ts +0 -12
- package/dist/dts/workspace/filter-registry.d.ts.map +1 -1
- package/dist/dts/workspace/grid-register/grid-register.d.ts +10 -3
- package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -1
- package/dist/dts/workspace/grid-registry.d.ts +4 -76
- package/dist/dts/workspace/grid-registry.d.ts.map +1 -1
- package/dist/dts/workspace/layout-registry.d.ts +2 -38
- package/dist/dts/workspace/layout-registry.d.ts.map +1 -1
- package/dist/dts/workspace/workspace.types.d.ts +0 -6
- package/dist/dts/workspace/workspace.types.d.ts.map +1 -1
- package/dist/dts/workspace-manager/workspace-manager.d.ts +0 -6
- package/dist/dts/workspace-manager/workspace-manager.d.ts.map +1 -1
- package/dist/esm/workspace/filter-registry.js +21 -32
- package/dist/esm/workspace/grid-register/grid-register.js +54 -7
- package/dist/esm/workspace/grid-registry.js +32 -329
- package/dist/esm/workspace/layout-registry.js +8 -60
- package/dist/esm/workspace-manager/workspace-manager.js +9 -10
- package/dist/foundation-workspace.api.json +39 -473
- package/dist/foundation-workspace.d.ts +15 -142
- package/package.json +14 -14
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"declarations": [
|
|
65
65
|
{
|
|
66
66
|
"kind": "class",
|
|
67
|
-
"description": "
|
|
67
|
+
"description": "",
|
|
68
68
|
"name": "DefaultFilterRegistry",
|
|
69
69
|
"members": [
|
|
70
70
|
{
|
|
@@ -76,15 +76,6 @@
|
|
|
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
|
-
},
|
|
88
79
|
{
|
|
89
80
|
"kind": "method",
|
|
90
81
|
"name": "registerFilter",
|
|
@@ -156,24 +147,6 @@
|
|
|
156
147
|
}
|
|
157
148
|
}
|
|
158
149
|
]
|
|
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
|
-
]
|
|
177
150
|
}
|
|
178
151
|
]
|
|
179
152
|
},
|
|
@@ -208,36 +181,9 @@
|
|
|
208
181
|
"declarations": [
|
|
209
182
|
{
|
|
210
183
|
"kind": "class",
|
|
211
|
-
"description": "
|
|
184
|
+
"description": "",
|
|
212
185
|
"name": "DefaultGridRegistry",
|
|
213
186
|
"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
|
-
},
|
|
241
187
|
{
|
|
242
188
|
"kind": "field",
|
|
243
189
|
"name": "grids",
|
|
@@ -249,25 +195,13 @@
|
|
|
249
195
|
},
|
|
250
196
|
{
|
|
251
197
|
"kind": "field",
|
|
252
|
-
"name": "
|
|
198
|
+
"name": "cachedSettings",
|
|
253
199
|
"type": {
|
|
254
200
|
"text": "Map<string, SavedGridSettings>"
|
|
255
201
|
},
|
|
256
202
|
"privacy": "private",
|
|
257
203
|
"default": "new Map()"
|
|
258
204
|
},
|
|
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
205
|
{
|
|
272
206
|
"kind": "method",
|
|
273
207
|
"name": "registerGrid",
|
|
@@ -294,42 +228,9 @@
|
|
|
294
228
|
"type": {
|
|
295
229
|
"text": "unknown"
|
|
296
230
|
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "filterPersistence",
|
|
300
|
-
"optional": true,
|
|
301
|
-
"type": {
|
|
302
|
-
"text": "GridFilterPersistence"
|
|
303
|
-
}
|
|
304
231
|
}
|
|
305
232
|
]
|
|
306
233
|
},
|
|
307
|
-
{
|
|
308
|
-
"kind": "method",
|
|
309
|
-
"name": "applyStoredSettings",
|
|
310
|
-
"privacy": "private",
|
|
311
|
-
"return": {
|
|
312
|
-
"type": {
|
|
313
|
-
"text": "void"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"parameters": [
|
|
317
|
-
{
|
|
318
|
-
"name": "registration",
|
|
319
|
-
"type": {
|
|
320
|
-
"text": "GridRegistration"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"name": "options",
|
|
325
|
-
"optional": true,
|
|
326
|
-
"type": {
|
|
327
|
-
"text": "{ applyFilters?: boolean }"
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
],
|
|
331
|
-
"description": "Applies the stored settings for a grid, unless it already has exactly that state."
|
|
332
|
-
},
|
|
333
234
|
{
|
|
334
235
|
"kind": "method",
|
|
335
236
|
"name": "getGrid",
|
|
@@ -411,257 +312,12 @@
|
|
|
411
312
|
"type": {
|
|
412
313
|
"text": "SavedGridSettings[]"
|
|
413
314
|
}
|
|
414
|
-
}
|
|
415
|
-
]
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"kind": "method",
|
|
419
|
-
"name": "applyFilterModel",
|
|
420
|
-
"privacy": "private",
|
|
421
|
-
"return": {
|
|
422
|
-
"type": {
|
|
423
|
-
"text": "void"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
"parameters": [
|
|
427
|
-
{
|
|
428
|
-
"name": "registration",
|
|
429
|
-
"type": {
|
|
430
|
-
"text": "GridRegistration"
|
|
431
|
-
}
|
|
432
315
|
},
|
|
433
316
|
{
|
|
434
|
-
"name": "
|
|
317
|
+
"name": "maxRetries",
|
|
318
|
+
"default": "3",
|
|
435
319
|
"type": {
|
|
436
|
-
"text": "
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"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."
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"kind": "method",
|
|
444
|
-
"name": "reapplyStoredFilter",
|
|
445
|
-
"privacy": "private",
|
|
446
|
-
"return": {
|
|
447
|
-
"type": {
|
|
448
|
-
"text": "void"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
"parameters": [
|
|
452
|
-
{
|
|
453
|
-
"name": "registration",
|
|
454
|
-
"type": {
|
|
455
|
-
"text": "GridRegistration"
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
"kind": "method",
|
|
462
|
-
"name": "filterWasReplaced",
|
|
463
|
-
"privacy": "private",
|
|
464
|
-
"return": {
|
|
465
|
-
"type": {
|
|
466
|
-
"text": "boolean"
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
"parameters": [
|
|
470
|
-
{
|
|
471
|
-
"name": "registration",
|
|
472
|
-
"type": {
|
|
473
|
-
"text": "GridRegistration"
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
"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)."
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"kind": "method",
|
|
481
|
-
"name": "armFilterGuard",
|
|
482
|
-
"privacy": "private",
|
|
483
|
-
"return": {
|
|
484
|
-
"type": {
|
|
485
|
-
"text": "void"
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
"parameters": [
|
|
489
|
-
{
|
|
490
|
-
"name": "registration",
|
|
491
|
-
"type": {
|
|
492
|
-
"text": "GridRegistration"
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"kind": "method",
|
|
499
|
-
"name": "touchFilterGuard",
|
|
500
|
-
"privacy": "private",
|
|
501
|
-
"return": {
|
|
502
|
-
"type": {
|
|
503
|
-
"text": "void"
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
"parameters": [
|
|
507
|
-
{
|
|
508
|
-
"name": "registration",
|
|
509
|
-
"type": {
|
|
510
|
-
"text": "GridRegistration"
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
"description": "Restarts the settle timer: the grid just did something that can precede a stale restore."
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"kind": "method",
|
|
518
|
-
"name": "guardActive",
|
|
519
|
-
"privacy": "private",
|
|
520
|
-
"return": {
|
|
521
|
-
"type": {
|
|
522
|
-
"text": "boolean"
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
"parameters": [
|
|
526
|
-
{
|
|
527
|
-
"name": "registration",
|
|
528
|
-
"type": {
|
|
529
|
-
"text": "GridRegistration"
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"kind": "method",
|
|
536
|
-
"name": "endFilterGuard",
|
|
537
|
-
"privacy": "private",
|
|
538
|
-
"return": {
|
|
539
|
-
"type": {
|
|
540
|
-
"text": "void"
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
"parameters": [
|
|
544
|
-
{
|
|
545
|
-
"name": "registration",
|
|
546
|
-
"type": {
|
|
547
|
-
"text": "GridRegistration"
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
]
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"kind": "method",
|
|
554
|
-
"name": "addListener",
|
|
555
|
-
"privacy": "private",
|
|
556
|
-
"parameters": [
|
|
557
|
-
{
|
|
558
|
-
"name": "registration",
|
|
559
|
-
"type": {
|
|
560
|
-
"text": "GridRegistration"
|
|
561
|
-
}
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"name": "type",
|
|
565
|
-
"type": {
|
|
566
|
-
"text": "string"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
"name": "listener",
|
|
571
|
-
"type": {
|
|
572
|
-
"text": "GridEventListener"
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
]
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"kind": "method",
|
|
579
|
-
"name": "removeListener",
|
|
580
|
-
"privacy": "private",
|
|
581
|
-
"return": {
|
|
582
|
-
"type": {
|
|
583
|
-
"text": "void"
|
|
584
|
-
}
|
|
585
|
-
},
|
|
586
|
-
"parameters": [
|
|
587
|
-
{
|
|
588
|
-
"name": "registration",
|
|
589
|
-
"type": {
|
|
590
|
-
"text": "GridRegistration"
|
|
591
|
-
}
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "type",
|
|
595
|
-
"type": {
|
|
596
|
-
"text": "string"
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
{
|
|
600
|
-
"name": "listener",
|
|
601
|
-
"type": {
|
|
602
|
-
"text": "GridEventListener"
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
]
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"kind": "method",
|
|
609
|
-
"name": "detach",
|
|
610
|
-
"privacy": "private",
|
|
611
|
-
"return": {
|
|
612
|
-
"type": {
|
|
613
|
-
"text": "void"
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
"parameters": [
|
|
617
|
-
{
|
|
618
|
-
"name": "registration",
|
|
619
|
-
"type": {
|
|
620
|
-
"text": "GridRegistration"
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"description": "Removes a registration's grid listeners and stops its filter guard."
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"kind": "method",
|
|
628
|
-
"name": "hasSettings",
|
|
629
|
-
"privacy": "private",
|
|
630
|
-
"return": {
|
|
631
|
-
"type": {
|
|
632
|
-
"text": "boolean"
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
"parameters": [
|
|
636
|
-
{
|
|
637
|
-
"name": "grid",
|
|
638
|
-
"type": {
|
|
639
|
-
"text": "GridRegistration"
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
"name": "settings",
|
|
644
|
-
"type": {
|
|
645
|
-
"text": "SavedGridSettings"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
],
|
|
649
|
-
"description": "Whether the grid already has exactly these settings, so re-applying them is a no-op."
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
"kind": "method",
|
|
653
|
-
"name": "readFilterModel",
|
|
654
|
-
"privacy": "private",
|
|
655
|
-
"return": {
|
|
656
|
-
"type": {
|
|
657
|
-
"text": "string"
|
|
658
|
-
}
|
|
659
|
-
},
|
|
660
|
-
"parameters": [
|
|
661
|
-
{
|
|
662
|
-
"name": "grid",
|
|
663
|
-
"type": {
|
|
664
|
-
"text": "GridRegistration"
|
|
320
|
+
"text": "number"
|
|
665
321
|
}
|
|
666
322
|
}
|
|
667
323
|
]
|
|
@@ -801,16 +457,7 @@
|
|
|
801
457
|
"kind": "field",
|
|
802
458
|
"name": "layouts",
|
|
803
459
|
"type": {
|
|
804
|
-
"text": "Map<string,
|
|
805
|
-
},
|
|
806
|
-
"privacy": "private",
|
|
807
|
-
"default": "new Map()"
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
"kind": "field",
|
|
811
|
-
"name": "stored",
|
|
812
|
-
"type": {
|
|
813
|
-
"text": "Map<string, SerialisedLayout>"
|
|
460
|
+
"text": "Map<string, FoundationLayout>"
|
|
814
461
|
},
|
|
815
462
|
"privacy": "private",
|
|
816
463
|
"default": "new Map()"
|
|
@@ -833,7 +480,7 @@
|
|
|
833
480
|
{
|
|
834
481
|
"name": "layout",
|
|
835
482
|
"type": {
|
|
836
|
-
"text": "
|
|
483
|
+
"text": "FoundationLayout"
|
|
837
484
|
}
|
|
838
485
|
}
|
|
839
486
|
]
|
|
@@ -880,49 +527,6 @@
|
|
|
880
527
|
}
|
|
881
528
|
}
|
|
882
529
|
]
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"kind": "method",
|
|
886
|
-
"name": "readLayout",
|
|
887
|
-
"privacy": "private",
|
|
888
|
-
"return": {
|
|
889
|
-
"type": {
|
|
890
|
-
"text": "SerialisedLayout | null"
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
"parameters": [
|
|
894
|
-
{
|
|
895
|
-
"name": "layout",
|
|
896
|
-
"type": {
|
|
897
|
-
"text": "WorkspaceLayout"
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
],
|
|
901
|
-
"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."
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
"kind": "method",
|
|
905
|
-
"name": "whenFirstLoaded",
|
|
906
|
-
"privacy": "private",
|
|
907
|
-
"return": {
|
|
908
|
-
"type": {
|
|
909
|
-
"text": "void"
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
"parameters": [
|
|
913
|
-
{
|
|
914
|
-
"name": "layout",
|
|
915
|
-
"type": {
|
|
916
|
-
"text": "WorkspaceLayout"
|
|
917
|
-
}
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
"name": "callback",
|
|
921
|
-
"type": {
|
|
922
|
-
"text": "() => void"
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
]
|
|
926
530
|
}
|
|
927
531
|
]
|
|
928
532
|
},
|
|
@@ -1632,8 +1236,7 @@
|
|
|
1632
1236
|
"text": "SavedWorkspace"
|
|
1633
1237
|
}
|
|
1634
1238
|
}
|
|
1635
|
-
]
|
|
1636
|
-
"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."
|
|
1239
|
+
]
|
|
1637
1240
|
},
|
|
1638
1241
|
{
|
|
1639
1242
|
"kind": "method",
|
|
@@ -2093,7 +1696,7 @@
|
|
|
2093
1696
|
"declarations": [
|
|
2094
1697
|
{
|
|
2095
1698
|
"kind": "class",
|
|
2096
|
-
"description": "Registers an AG Grid instance so workspace state can apply/load it.
|
|
1699
|
+
"description": "Registers an AG Grid instance so workspace state can apply/load it.",
|
|
2097
1700
|
"name": "GridRegister",
|
|
2098
1701
|
"members": [
|
|
2099
1702
|
{
|
|
@@ -2118,6 +1721,13 @@
|
|
|
2118
1721
|
"text": "GridRegistry"
|
|
2119
1722
|
}
|
|
2120
1723
|
},
|
|
1724
|
+
{
|
|
1725
|
+
"kind": "field",
|
|
1726
|
+
"name": "workspaceState",
|
|
1727
|
+
"type": {
|
|
1728
|
+
"text": "WorkspaceState"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
2121
1731
|
{
|
|
2122
1732
|
"kind": "field",
|
|
2123
1733
|
"name": "gridElement",
|
|
@@ -2183,6 +1793,46 @@
|
|
|
2183
1793
|
}
|
|
2184
1794
|
}
|
|
2185
1795
|
},
|
|
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
|
+
},
|
|
2186
1836
|
{
|
|
2187
1837
|
"kind": "field",
|
|
2188
1838
|
"name": "_presentation",
|
|
@@ -17,26 +17,14 @@ export interface FilterRegistration {
|
|
|
17
17
|
setFilterValue: (value: string) => void;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Default filter registry implementation.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Keeps a store of every filter's last known value by key, so a workspace covers filters that
|
|
24
|
-
* aren't currently mounted (e.g. on another route):
|
|
25
|
-
* - `unregisterFilter` stores the filter's last value; `registerFilter` applies any stored value.
|
|
26
|
-
* - `applyFiltersValues` (workspace load) replaces the store with the loaded values and applies
|
|
27
|
-
* them to mounted filters; unmounted ones pick theirs up when they register.
|
|
28
|
-
* - `getAllFiltersValues` (workspace save) returns the store with mounted filters' live values on
|
|
29
|
-
* top, so a filter the user never visited keeps its loaded value rather than being dropped.
|
|
30
20
|
* @alpha
|
|
31
21
|
*/
|
|
32
22
|
export declare class DefaultFilterRegistry implements FilterRegistry {
|
|
33
23
|
private filters;
|
|
34
|
-
private stored;
|
|
35
24
|
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
36
25
|
unregisterFilter(filterKey: string): void;
|
|
37
26
|
getAllFiltersValues(): SavedFilterValue[];
|
|
38
27
|
applyFiltersValues(filtersValues: SavedFilterValue[]): void;
|
|
39
|
-
private readValue;
|
|
40
28
|
}
|
|
41
29
|
/**
|
|
42
30
|
* DI token for filter registry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-registry.d.ts","sourceRoot":"","sources":["../../../src/workspace/filter-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,gBAAgB,GAAG,IAAI,EAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GACtC,IAAI,CAAC;IACR,mBAAmB,IAAI,gBAAgB,EAAE,CAAC;IAC1C,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,kBAAkB,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;CAC5D;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED
|
|
1
|
+
{"version":3,"file":"filter-registry.d.ts","sourceRoot":"","sources":["../../../src/workspace/filter-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,gBAAgB,GAAG,IAAI,EAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GACtC,IAAI,CAAC;IACR,mBAAmB,IAAI,gBAAgB,EAAE,CAAC;IAC1C,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,kBAAkB,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;CAC5D;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED;;GAEG;AACH,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,OAAO,CAAC,OAAO,CAA8C;IAE7D,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,gBAAgB,GAAG,IAAI,EAC7C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GACtC,IAAI;IAQP,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIzC,mBAAmB,IAAI,gBAAgB,EAAE;IAYzC,kBAAkB,CAAC,aAAa,EAAE,gBAAgB,EAAE,GAAG,IAAI;CAU5D;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FoundationElement } from '@genesislcap/web-core';
|
|
2
2
|
import { GridRegistry } from '../grid-registry';
|
|
3
|
+
import { WorkspaceState } from '../workspace-state';
|
|
3
4
|
/**
|
|
4
|
-
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
5
|
-
* grid's stored column state (from the loaded workspace, or its last state this session) — see
|
|
6
|
-
* `DefaultGridRegistry`.
|
|
5
|
+
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
7
6
|
* @alpha
|
|
8
7
|
*/
|
|
9
8
|
export declare class GridRegister extends FoundationElement {
|
|
10
9
|
gridKey: string;
|
|
11
10
|
designSystemPrefix: string;
|
|
12
11
|
gridRegistry: GridRegistry;
|
|
12
|
+
workspaceState: WorkspaceState;
|
|
13
13
|
/** `<prefix>-grid-pro` is the AG Grid v36 `GridPro` by default; `GridProLegacy` is the v29 grid. */
|
|
14
14
|
private gridElement;
|
|
15
15
|
private gridApi;
|
|
@@ -21,5 +21,12 @@ export declare class GridRegister extends FoundationElement {
|
|
|
21
21
|
private readonly handleGridReady;
|
|
22
22
|
private attachToGridApis;
|
|
23
23
|
private detachFromGridApis;
|
|
24
|
+
private loadWorkspaceSettings;
|
|
25
|
+
/**
|
|
26
|
+
* Column state comes from `gridApi` on AG Grid v36 and from `columnApi` on v29; mirrors the
|
|
27
|
+
* fallback `GridRegistry` uses when saving.
|
|
28
|
+
*/
|
|
29
|
+
private readColumnState;
|
|
30
|
+
private loadWorkspaceColumnState;
|
|
24
31
|
}
|
|
25
32
|
//# sourceMappingURL=grid-register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;GAGG;AACH,qBAIa,YAAa,SAAQ,iBAAiB;IAChB,OAAO,EAAE,MAAM,CAAC;IACJ,kBAAkB,EAAE,MAAM,CAAW;IAEpE,YAAY,EAAE,YAAY,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAE/C,oGAAoG;IACpG,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,OAAO,CAA8D;IAC7E,sFAAsF;IACtF,OAAO,CAAC,SAAS,CAA0B;IAE3C,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAS5B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IAEF,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,kBAAkB;YAUZ,qBAAqB;IAmCnC;;;OAGG;IACH,OAAO,CAAC,eAAe;YAKT,wBAAwB;CAGvC"}
|