@genesislcap/foundation-workspace 14.406.0-workspaces.8 → 14.411.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.
Files changed (144) hide show
  1. package/dist/dts/workspace/grid-register/grid-register.d.ts +5 -3
  2. package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -1
  3. package/dist/dts/workspace/grid-register/grid-register.template.d.ts +1 -1
  4. package/dist/dts/workspace/grid-register/grid-register.template.d.ts.map +1 -1
  5. package/dist/dts/workspace/grid-registry.d.ts +1 -9
  6. package/dist/dts/workspace/grid-registry.d.ts.map +1 -1
  7. package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts +4 -2
  8. package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts.map +1 -1
  9. package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts +1 -1
  10. package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts.map +1 -1
  11. package/dist/dts/workspace-components.d.ts +1 -1
  12. package/dist/dts/workspace-components.d.ts.map +1 -1
  13. package/dist/dts/workspace-manager/workspace-manager.d.ts +1 -1
  14. package/dist/dts/workspace-manager/workspace-manager.d.ts.map +1 -1
  15. package/dist/dts/workspace-manager/workspace-manager.styles.d.ts.map +1 -1
  16. package/dist/dts/workspace-manager/workspace-manager.template.d.ts +5 -1
  17. package/dist/dts/workspace-manager/workspace-manager.template.d.ts.map +1 -1
  18. package/dist/esm/workspace/filter-registry.js +1 -1
  19. package/dist/esm/workspace/grid-register/grid-register.js +20 -16
  20. package/dist/esm/workspace/grid-register/grid-register.template.js +1 -1
  21. package/dist/esm/workspace/grid-registry.js +21 -10
  22. package/dist/esm/workspace/layout-registry.js +1 -1
  23. package/dist/esm/workspace/layout-wrapper/layout-wrapper.js +13 -6
  24. package/dist/esm/workspace/layout-wrapper/layout-wrapper.template.js +1 -1
  25. package/dist/esm/workspace/workspace-state.js +1 -1
  26. package/dist/esm/workspace-manager/workspace-manager.js +2 -2
  27. package/dist/esm/workspace-manager/workspace-manager.styles.js +2 -25
  28. package/dist/esm/workspace-manager/workspace-manager.template.js +22 -12
  29. package/dist/foundation-workspace.api.json +64 -4
  30. package/dist/foundation-workspace.d.ts +7 -15
  31. package/package.json +16 -19
  32. package/src/workspace/filter-registry.ts +1 -1
  33. package/src/workspace/grid-register/grid-register.template.ts +1 -2
  34. package/src/workspace/grid-register/grid-register.ts +17 -16
  35. package/src/workspace/grid-registry.ts +23 -18
  36. package/src/workspace/layout-registry.ts +1 -1
  37. package/src/workspace/layout-wrapper/layout-wrapper.template.ts +1 -2
  38. package/src/workspace/layout-wrapper/layout-wrapper.ts +10 -6
  39. package/src/workspace/workspace-state.ts +1 -1
  40. package/src/workspace-components.ts +1 -1
  41. package/src/workspace-manager/workspace-manager.styles.ts +2 -25
  42. package/src/workspace-manager/workspace-manager.template.ts +28 -15
  43. package/src/workspace-manager/workspace-manager.ts +2 -2
  44. package/docs/.gitkeep +0 -1
  45. package/docs/api/foundation-workspace.defaultfilterregistry.md +0 -17
  46. package/docs/api/foundation-workspace.defaultgridregistry.md +0 -17
  47. package/docs/api/foundation-workspace.defaultlayoutregistry.md +0 -18
  48. package/docs/api/foundation-workspace.defaultworkspacestate._constructor_.md +0 -65
  49. package/docs/api/foundation-workspace.defaultworkspacestate.auth.md +0 -14
  50. package/docs/api/foundation-workspace.defaultworkspacestate.kvstorage.md +0 -14
  51. package/docs/api/foundation-workspace.defaultworkspacestate.md +0 -115
  52. package/docs/api/foundation-workspace.filterregistration.filterkey.md +0 -14
  53. package/docs/api/foundation-workspace.filterregistration.getfiltervalue.md +0 -14
  54. package/docs/api/foundation-workspace.filterregistration.md +0 -98
  55. package/docs/api/foundation-workspace.filterregistration.setfiltervalue.md +0 -14
  56. package/docs/api/foundation-workspace.filterregistry.applyfiltersvalues.md +0 -53
  57. package/docs/api/foundation-workspace.filterregistry.getallfiltersvalues.md +0 -18
  58. package/docs/api/foundation-workspace.filterregistry.md +0 -16
  59. package/docs/api/foundation-workspace.filterregistry.registerfilter.md +0 -81
  60. package/docs/api/foundation-workspace.filterregistry.unregisterfilter.md +0 -53
  61. package/docs/api/foundation-workspace.gridregister.gridkey.md +0 -14
  62. package/docs/api/foundation-workspace.gridregister.gridregistry.md +0 -14
  63. package/docs/api/foundation-workspace.gridregister.md +0 -100
  64. package/docs/api/foundation-workspace.gridregister.workspacestate.md +0 -14
  65. package/docs/api/foundation-workspace.gridregistration.columnapi.md +0 -14
  66. package/docs/api/foundation-workspace.gridregistration.gridapi.md +0 -14
  67. package/docs/api/foundation-workspace.gridregistration.gridkey.md +0 -14
  68. package/docs/api/foundation-workspace.gridregistration.md +0 -98
  69. package/docs/api/foundation-workspace.gridregistry.applyallgridssettings.md +0 -53
  70. package/docs/api/foundation-workspace.gridregistry.applygridsettings.md +0 -72
  71. package/docs/api/foundation-workspace.gridregistry.getallgridssettings.md +0 -18
  72. package/docs/api/foundation-workspace.gridregistry.getgrid.md +0 -53
  73. package/docs/api/foundation-workspace.gridregistry.md +0 -16
  74. package/docs/api/foundation-workspace.gridregistry.registergrid.md +0 -81
  75. package/docs/api/foundation-workspace.gridregistry.unregistergrid.md +0 -53
  76. package/docs/api/foundation-workspace.layoutregistry.applysavedlayouts.md +0 -53
  77. package/docs/api/foundation-workspace.layoutregistry.getlayoutsconfigs.md +0 -18
  78. package/docs/api/foundation-workspace.layoutregistry.md +0 -16
  79. package/docs/api/foundation-workspace.layoutregistry.registerlayout.md +0 -67
  80. package/docs/api/foundation-workspace.layoutregistry.unregisterlayout.md +0 -53
  81. package/docs/api/foundation-workspace.layoutwrapper.layoutkey.md +0 -14
  82. package/docs/api/foundation-workspace.layoutwrapper.layoutregistry.md +0 -14
  83. package/docs/api/foundation-workspace.layoutwrapper.md +0 -81
  84. package/docs/api/foundation-workspace.loadmode.md +0 -16
  85. package/docs/api/foundation-workspace.md +0 -332
  86. package/docs/api/foundation-workspace.savedfiltervalue.filterkey.md +0 -14
  87. package/docs/api/foundation-workspace.savedfiltervalue.md +0 -79
  88. package/docs/api/foundation-workspace.savedfiltervalue.value.md +0 -14
  89. package/docs/api/foundation-workspace.savedgridsettings.columnstate.md +0 -14
  90. package/docs/api/foundation-workspace.savedgridsettings.gridkey.md +0 -14
  91. package/docs/api/foundation-workspace.savedgridsettings.md +0 -99
  92. package/docs/api/foundation-workspace.savedgridsettings.savedat.md +0 -14
  93. package/docs/api/foundation-workspace.savedlayout.layout.md +0 -14
  94. package/docs/api/foundation-workspace.savedlayout.layoutkey.md +0 -14
  95. package/docs/api/foundation-workspace.savedlayout.md +0 -79
  96. package/docs/api/foundation-workspace.savedworkspace.description.md +0 -14
  97. package/docs/api/foundation-workspace.savedworkspace.filters.md +0 -14
  98. package/docs/api/foundation-workspace.savedworkspace.grids.md +0 -14
  99. package/docs/api/foundation-workspace.savedworkspace.layouts.md +0 -14
  100. package/docs/api/foundation-workspace.savedworkspace.md +0 -174
  101. package/docs/api/foundation-workspace.savedworkspace.name.md +0 -14
  102. package/docs/api/foundation-workspace.savedworkspace.savedat.md +0 -14
  103. package/docs/api/foundation-workspace.savedworkspace.username.md +0 -14
  104. package/docs/api/foundation-workspace.sharedworkspace.createdon.md +0 -14
  105. package/docs/api/foundation-workspace.sharedworkspace.data.md +0 -14
  106. package/docs/api/foundation-workspace.sharedworkspace.description.md +0 -14
  107. package/docs/api/foundation-workspace.sharedworkspace.id.md +0 -14
  108. package/docs/api/foundation-workspace.sharedworkspace.md +0 -174
  109. package/docs/api/foundation-workspace.sharedworkspace.modifiedon.md +0 -14
  110. package/docs/api/foundation-workspace.sharedworkspace.name.md +0 -14
  111. package/docs/api/foundation-workspace.sharedworkspace.username.md +0 -14
  112. package/docs/api/foundation-workspace.workspacecomponents.md +0 -29
  113. package/docs/api/foundation-workspace.workspacemanager.applyingworkspace.md +0 -14
  114. package/docs/api/foundation-workspace.workspacemanager.auth.md +0 -14
  115. package/docs/api/foundation-workspace.workspacemanager.canshareworkspace.md +0 -14
  116. package/docs/api/foundation-workspace.workspacemanager.connect.md +0 -14
  117. package/docs/api/foundation-workspace.workspacemanager.dialogboundary.md +0 -14
  118. package/docs/api/foundation-workspace.workspacemanager.filterregistry.md +0 -14
  119. package/docs/api/foundation-workspace.workspacemanager.gridregistry.md +0 -14
  120. package/docs/api/foundation-workspace.workspacemanager.isloading.md +0 -14
  121. package/docs/api/foundation-workspace.workspacemanager.layoutregistry.md +0 -14
  122. package/docs/api/foundation-workspace.workspacemanager.loadmodal.md +0 -14
  123. package/docs/api/foundation-workspace.workspacemanager.loadmode.md +0 -14
  124. package/docs/api/foundation-workspace.workspacemanager.md +0 -442
  125. package/docs/api/foundation-workspace.workspacemanager.savedworkspaces.md +0 -14
  126. package/docs/api/foundation-workspace.workspacemanager.savemodal.md +0 -14
  127. package/docs/api/foundation-workspace.workspacemanager.savemode.md +0 -14
  128. package/docs/api/foundation-workspace.workspacemanager.selectedworkspacetooverwrite.md +0 -14
  129. package/docs/api/foundation-workspace.workspacemanager.sharedworkspacedialogboundary.md +0 -14
  130. package/docs/api/foundation-workspace.workspacemanager.sharedworkspaces.md +0 -14
  131. package/docs/api/foundation-workspace.workspacemanager.workspacedescription.md +0 -14
  132. package/docs/api/foundation-workspace.workspacemanager.workspacename.md +0 -14
  133. package/docs/api/foundation-workspace.workspacemanager.workspacestate.md +0 -14
  134. package/docs/api/foundation-workspace.workspacemanager.workspacetoshare.md +0 -14
  135. package/docs/api/foundation-workspace.workspacestate.deleteworkspace.md +0 -53
  136. package/docs/api/foundation-workspace.workspacestate.getcurrentworkspace.md +0 -18
  137. package/docs/api/foundation-workspace.workspacestate.getsavedworkspaces.md +0 -18
  138. package/docs/api/foundation-workspace.workspacestate.loadworkspace.md +0 -53
  139. package/docs/api/foundation-workspace.workspacestate.md +0 -16
  140. package/docs/api/foundation-workspace.workspacestate.saveworkspace.md +0 -111
  141. package/docs/api/foundation-workspace.workspacestate.setcurrentworkspace.md +0 -53
  142. package/docs/api/index.md +0 -30
  143. package/docs/api-report.md.api.md +0 -384
  144. package/temp/api-report.md.api.md +0 -384
@@ -1,53 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-workspace](./foundation-workspace.md) &gt; [WorkspaceState](./foundation-workspace.workspacestate.md) &gt; [loadWorkspace](./foundation-workspace.workspacestate.loadworkspace.md)
4
-
5
- ## WorkspaceState.loadWorkspace() method
6
-
7
- > This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
- >
9
-
10
- **Signature:**
11
-
12
- ```typescript
13
- loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- workspaceName
37
-
38
-
39
- </td><td>
40
-
41
- string
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td></tr>
48
- </tbody></table>
49
-
50
- **Returns:**
51
-
52
- Promise&lt;[SavedWorkspace](./foundation-workspace.savedworkspace.md) \| null&gt;
53
-
@@ -1,16 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-workspace](./foundation-workspace.md) &gt; [WorkspaceState](./foundation-workspace.workspacestate.md)
4
-
5
- ## WorkspaceState variable
6
-
7
- > This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
- >
9
-
10
- DI token for workspace state.
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- WorkspaceState: import("@microsoft/fast-foundation").InterfaceSymbol<WorkspaceState>
16
- ```
@@ -1,111 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-workspace](./foundation-workspace.md) &gt; [WorkspaceState](./foundation-workspace.workspacestate.md) &gt; [saveWorkspace](./foundation-workspace.workspacestate.saveworkspace.md)
4
-
5
- ## WorkspaceState.saveWorkspace() method
6
-
7
- > This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
- >
9
-
10
- **Signature:**
11
-
12
- ```typescript
13
- saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- workspaceName
37
-
38
-
39
- </td><td>
40
-
41
- string
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td></tr>
48
- <tr><td>
49
-
50
- layouts
51
-
52
-
53
- </td><td>
54
-
55
- [SavedLayout](./foundation-workspace.savedlayout.md)<!-- -->\[\]
56
-
57
-
58
- </td><td>
59
-
60
-
61
- </td></tr>
62
- <tr><td>
63
-
64
- grids
65
-
66
-
67
- </td><td>
68
-
69
- [SavedGridSettings](./foundation-workspace.savedgridsettings.md)<!-- -->\[\]
70
-
71
-
72
- </td><td>
73
-
74
-
75
- </td></tr>
76
- <tr><td>
77
-
78
- filters
79
-
80
-
81
- </td><td>
82
-
83
- [SavedFilterValue](./foundation-workspace.savedfiltervalue.md)<!-- -->\[\]
84
-
85
-
86
- </td><td>
87
-
88
-
89
- </td></tr>
90
- <tr><td>
91
-
92
- description
93
-
94
-
95
- </td><td>
96
-
97
- string
98
-
99
-
100
- </td><td>
101
-
102
- _(Optional)_
103
-
104
-
105
- </td></tr>
106
- </tbody></table>
107
-
108
- **Returns:**
109
-
110
- Promise&lt;void&gt;
111
-
@@ -1,53 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-workspace](./foundation-workspace.md) &gt; [WorkspaceState](./foundation-workspace.workspacestate.md) &gt; [setCurrentWorkspace](./foundation-workspace.workspacestate.setcurrentworkspace.md)
4
-
5
- ## WorkspaceState.setCurrentWorkspace() method
6
-
7
- > This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
8
- >
9
-
10
- **Signature:**
11
-
12
- ```typescript
13
- setCurrentWorkspace(workspace: SavedWorkspace | null): void;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- workspace
37
-
38
-
39
- </td><td>
40
-
41
- [SavedWorkspace](./foundation-workspace.savedworkspace.md) \| null
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td></tr>
48
- </tbody></table>
49
-
50
- **Returns:**
51
-
52
- void
53
-
package/docs/api/index.md DELETED
@@ -1,30 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md)
4
-
5
- ## API Reference
6
-
7
- ## Packages
8
-
9
- <table><thead><tr><th>
10
-
11
- Package
12
-
13
-
14
- </th><th>
15
-
16
- Description
17
-
18
-
19
- </th></tr></thead>
20
- <tbody><tr><td>
21
-
22
- [@genesislcap/foundation-workspace](./foundation-workspace.md)
23
-
24
-
25
- </td><td>
26
-
27
-
28
- </td></tr>
29
- </tbody></table>
30
-
@@ -1,384 +0,0 @@
1
- ## API Report File for "@genesislcap/foundation-workspace"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { Auth } from '@genesislcap/foundation-comms';
8
- import type { ColumnApi } from '@ag-grid-community/core';
9
- import { Connect } from '@genesislcap/foundation-comms';
10
- import type { Container } from '@microsoft/fast-foundation';
11
- import { FoundationElement } from '@microsoft/fast-foundation';
12
- import type { FoundationLayout } from '@genesislcap/foundation-layout';
13
- import type { GridApi } from '@ag-grid-community/core';
14
- import { InterfaceSymbol } from '@microsoft/fast-foundation';
15
- import { KVStorage } from '@genesislcap/foundation-comms';
16
- import { Modal } from '@genesislcap/foundation-ui';
17
- import type { SerialisedLayout } from '@genesislcap/foundation-layout';
18
-
19
- // @alpha (undocumented)
20
- export class DefaultFilterRegistry implements FilterRegistry {
21
- // (undocumented)
22
- applyFiltersValues(filtersValues: SavedFilterValue[]): void;
23
- // (undocumented)
24
- getAllFiltersValues(): SavedFilterValue[];
25
- // (undocumented)
26
- registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
27
- // (undocumented)
28
- unregisterFilter(filterKey: string): void;
29
- }
30
-
31
- // @alpha (undocumented)
32
- export class DefaultGridRegistry implements GridRegistry {
33
- // (undocumented)
34
- applyAllGridsSettings(gridsSettings: SavedGridSettings[], maxRetries?: number, delayMs?: number): Promise<void>;
35
- // (undocumented)
36
- applyGridSettings(gridSetting: SavedGridSettings, options?: {
37
- applyColumns?: boolean;
38
- applyFilters?: boolean;
39
- }): Promise<boolean>;
40
- // (undocumented)
41
- getAllGridsSettings(): SavedGridSettings[];
42
- // (undocumented)
43
- getGrid(gridKey: string): GridRegistration | null;
44
- // (undocumented)
45
- registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
46
- // (undocumented)
47
- unregisterGrid(gridKey: string): void;
48
- }
49
-
50
- // @alpha
51
- export class DefaultLayoutRegistry implements LayoutRegistry {
52
- // (undocumented)
53
- applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
54
- // (undocumented)
55
- getLayoutsConfigs(): SavedLayout[];
56
- // (undocumented)
57
- registerLayout(layoutKey: string, layout: FoundationLayout): void;
58
- // (undocumented)
59
- unregisterLayout(layoutKey: string): void;
60
- }
61
-
62
- // @alpha
63
- export class DefaultWorkspaceState implements WorkspaceState {
64
- constructor(kvStorage: KVStorage, auth: Auth);
65
- // (undocumented)
66
- auth: Auth;
67
- // (undocumented)
68
- deleteWorkspace(workspaceName: string): Promise<void>;
69
- // (undocumented)
70
- getCurrentWorkspace(): SavedWorkspace | null;
71
- // (undocumented)
72
- getSavedWorkspaces(): Promise<SavedWorkspace[]>;
73
- // (undocumented)
74
- kvStorage: KVStorage;
75
- // (undocumented)
76
- loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
77
- // (undocumented)
78
- saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
79
- // (undocumented)
80
- setCurrentWorkspace(workspace: SavedWorkspace | null): void;
81
- }
82
-
83
- // @alpha (undocumented)
84
- export interface FilterRegistration {
85
- // (undocumented)
86
- filterKey: string;
87
- // (undocumented)
88
- getFilterValue: () => SavedFilterValue | null;
89
- // (undocumented)
90
- setFilterValue: (value: string) => void;
91
- }
92
-
93
- // @alpha (undocumented)
94
- export interface FilterRegistry {
95
- // (undocumented)
96
- applyFiltersValues(savedFilters: SavedFilterValue[]): void;
97
- // (undocumented)
98
- getAllFiltersValues(): SavedFilterValue[];
99
- // (undocumented)
100
- registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
101
- // (undocumented)
102
- unregisterFilter(filterKey: string): void;
103
- }
104
-
105
- // @alpha
106
- export const FilterRegistry: InterfaceSymbol<FilterRegistry>;
107
-
108
- // @alpha
109
- export class GridRegister extends HTMLElement {
110
- // (undocumented)
111
- connectedCallback(): void;
112
- // (undocumented)
113
- disconnectedCallback(): void;
114
- // (undocumented)
115
- gridKey: string;
116
- // (undocumented)
117
- gridRegistry: GridRegistry;
118
- // (undocumented)
119
- workspaceState: WorkspaceState;
120
- }
121
-
122
- // @alpha (undocumented)
123
- export interface GridRegistration {
124
- // (undocumented)
125
- columnApi: ColumnApi;
126
- // (undocumented)
127
- gridApi: GridApi;
128
- // (undocumented)
129
- gridKey: string;
130
- }
131
-
132
- // @alpha (undocumented)
133
- export interface GridRegistration {
134
- // (undocumented)
135
- columnApi: ColumnApi;
136
- // (undocumented)
137
- gridApi: GridApi;
138
- // (undocumented)
139
- gridKey: string;
140
- }
141
-
142
- // @alpha (undocumented)
143
- export interface GridRegistry {
144
- // (undocumented)
145
- applyAllGridsSettings(gridsSettings: SavedGridSettings[]): Promise<void>;
146
- // (undocumented)
147
- applyGridSettings(gridSetting: SavedGridSettings, options?: {
148
- applyColumns?: boolean;
149
- applyFilters?: boolean;
150
- }): Promise<boolean>;
151
- // (undocumented)
152
- getAllGridsSettings(): SavedGridSettings[];
153
- // (undocumented)
154
- getGrid(gridKey: string): GridRegistration | null;
155
- // (undocumented)
156
- registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
157
- // (undocumented)
158
- unregisterGrid(gridKey: string): void;
159
- }
160
-
161
- // @alpha
162
- export const GridRegistry: InterfaceSymbol<GridRegistry>;
163
-
164
- // @alpha (undocumented)
165
- export interface LayoutRegistry {
166
- // (undocumented)
167
- applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
168
- // (undocumented)
169
- getLayoutsConfigs(): SavedLayout[];
170
- // (undocumented)
171
- registerLayout(layoutKey: string, layout: unknown): void;
172
- // (undocumented)
173
- unregisterLayout(layoutKey: string): void;
174
- }
175
-
176
- // @alpha
177
- export const LayoutRegistry: InterfaceSymbol<LayoutRegistry>;
178
-
179
- // @alpha
180
- export class LayoutWrapper extends HTMLElement {
181
- // (undocumented)
182
- connectedCallback(): void;
183
- // (undocumented)
184
- disconnectedCallback(): void;
185
- // (undocumented)
186
- layoutKey: string;
187
- // (undocumented)
188
- layoutRegistry: LayoutRegistry;
189
- }
190
-
191
- // @alpha
192
- export type LoadMode = 'MY' | 'SHARED';
193
-
194
- // @alpha (undocumented)
195
- export interface SavedFilterValue {
196
- // (undocumented)
197
- filterKey: string;
198
- // (undocumented)
199
- value: string;
200
- }
201
-
202
- // @alpha
203
- export interface SavedGridSettings {
204
- // (undocumented)
205
- columnState: any[];
206
- // (undocumented)
207
- gridKey: string;
208
- // (undocumented)
209
- savedAt: string;
210
- }
211
-
212
- // @alpha (undocumented)
213
- export interface SavedLayout {
214
- // (undocumented)
215
- layout: SerialisedLayout;
216
- // (undocumented)
217
- layoutKey: string;
218
- }
219
-
220
- // @alpha (undocumented)
221
- export interface SavedWorkspace {
222
- // (undocumented)
223
- description?: string;
224
- // (undocumented)
225
- filters: SavedFilterValue[];
226
- // (undocumented)
227
- grids: SavedGridSettings[];
228
- // (undocumented)
229
- layouts: SavedLayout[];
230
- // (undocumented)
231
- name: string;
232
- // (undocumented)
233
- savedAt: string;
234
- // (undocumented)
235
- username: string;
236
- }
237
-
238
- // @alpha (undocumented)
239
- export interface SharedWorkspace {
240
- // (undocumented)
241
- createdOn?: string | number;
242
- // (undocumented)
243
- data: string;
244
- // (undocumented)
245
- description?: string;
246
- // (undocumented)
247
- id: string;
248
- // (undocumented)
249
- modifiedOn?: string | number;
250
- // (undocumented)
251
- name: string;
252
- // (undocumented)
253
- userName: string;
254
- }
255
-
256
- // @alpha
257
- export const workspaceComponents: {
258
- workspaceManager: () => {
259
- register(_container?: Container, ..._rest: any[]): void;
260
- };
261
- layoutWrapper: () => {
262
- register(_container?: Container, ..._rest: any[]): void;
263
- };
264
- gridRegister: () => {
265
- register(_container?: Container, ..._rest: any[]): void;
266
- };
267
- register(container?: Container, ...rest: any[]): void;
268
- };
269
-
270
- // @alpha
271
- export class WorkspaceManager extends FoundationElement {
272
- // (undocumented)
273
- applyingWorkspace: boolean;
274
- // (undocumented)
275
- auth: Auth;
276
- // (undocumented)
277
- canShareWorkspace: boolean;
278
- // (undocumented)
279
- closeLoadDialog(): void;
280
- // (undocumented)
281
- closeSaveDialog(): void;
282
- // (undocumented)
283
- confirmDeleteSharedWorkspace(sharedWorkspace: SharedWorkspace): void;
284
- // (undocumented)
285
- confirmDeleteWorkspace(workspaceName: string): void;
286
- // (undocumented)
287
- connect: Connect;
288
- // (undocumented)
289
- connectedCallback(): Promise<void>;
290
- // (undocumented)
291
- deleteSharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
292
- // (undocumented)
293
- deleteWorkspace(workspaceName: string): Promise<void>;
294
- // (undocumented)
295
- dialogBoundary: HTMLElement;
296
- // (undocumented)
297
- filterRegistry: FilterRegistry;
298
- // (undocumented)
299
- gridRegistry: GridRegistry;
300
- // (undocumented)
301
- isLoading: boolean;
302
- // (undocumented)
303
- isWorkspaceExisting(workspaceName: string): boolean;
304
- // (undocumented)
305
- layoutRegistry: LayoutRegistry;
306
- // (undocumented)
307
- loadModal: Modal;
308
- // (undocumented)
309
- loadMode: LoadMode;
310
- // (undocumented)
311
- loadSharedWorkspace(shared: {
312
- id: string;
313
- name: string;
314
- userName: string;
315
- createdOn?: string | number;
316
- modifiedOn?: string | number;
317
- data: string;
318
- }): Promise<void>;
319
- // (undocumented)
320
- loadWorkspace(workspaceName: string): Promise<void>;
321
- // (undocumented)
322
- modifySharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
323
- // (undocumented)
324
- openLoadDialog(): void;
325
- // (undocumented)
326
- openSaveDialog(): Promise<void>;
327
- // (undocumented)
328
- refreshSavedWorkspaces(): Promise<void>;
329
- // (undocumented)
330
- refreshSharedWorkspaces(): Promise<void>;
331
- // (undocumented)
332
- savedWorkspaces: SavedWorkspace[];
333
- // (undocumented)
334
- saveModal: Modal;
335
- // (undocumented)
336
- saveMode: 'create' | 'overwrite' | 'shared';
337
- // (undocumented)
338
- saveModeChanged(oldValue: string, newValue: string): void;
339
- // (undocumented)
340
- saveWorkspace(): Promise<void>;
341
- // (undocumented)
342
- selectedWorkspaceToOverwrite: string;
343
- // (undocumented)
344
- selectedWorkspaceToOverwriteChanged(oldValue: string, newValue: string): void;
345
- // (undocumented)
346
- sharedWorkspaceDialogBoundary: HTMLElement;
347
- // (undocumented)
348
- sharedWorkspaces: SharedWorkspace[];
349
- // (undocumented)
350
- shareExistingWorkspace(workspaceName: string): Promise<void>;
351
- // (undocumented)
352
- updateWorkspaceDescription(raw: string): void;
353
- // (undocumented)
354
- workspaceDescription: string;
355
- // (undocumented)
356
- workspaceName: string;
357
- // (undocumented)
358
- workspaceState: WorkspaceState;
359
- // (undocumented)
360
- workspaceToShare: string;
361
- }
362
-
363
- // @alpha (undocumented)
364
- export interface WorkspaceState {
365
- // (undocumented)
366
- deleteWorkspace(workspaceName: string): Promise<void>;
367
- // (undocumented)
368
- getCurrentWorkspace(): SavedWorkspace | null;
369
- // (undocumented)
370
- getSavedWorkspaces(): Promise<SavedWorkspace[]>;
371
- // (undocumented)
372
- loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
373
- // (undocumented)
374
- saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
375
- // (undocumented)
376
- setCurrentWorkspace(workspace: SavedWorkspace | null): void;
377
- }
378
-
379
- // @alpha
380
- export const WorkspaceState: InterfaceSymbol<WorkspaceState>;
381
-
382
- // (No @packageDocumentation comment for this package)
383
-
384
- ```