@genesislcap/foundation-workspace 14.406.0-workspaces.7
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/api-extractor.json +5 -0
- package/dist/dts/index.d.ts +4 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/workspace/filter-registry.d.ts +34 -0
- package/dist/dts/workspace/filter-registry.d.ts.map +1 -0
- package/dist/dts/workspace/grid-register/grid-register.d.ts +23 -0
- package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -0
- package/dist/dts/workspace/grid-register/grid-register.template.d.ts +4 -0
- package/dist/dts/workspace/grid-register/grid-register.template.d.ts.map +1 -0
- package/dist/dts/workspace/grid-register/index.d.ts +2 -0
- package/dist/dts/workspace/grid-register/index.d.ts.map +1 -0
- package/dist/dts/workspace/grid-registry.d.ts +47 -0
- package/dist/dts/workspace/grid-registry.d.ts.map +1 -0
- package/dist/dts/workspace/index.d.ts +9 -0
- package/dist/dts/workspace/index.d.ts.map +1 -0
- package/dist/dts/workspace/layout-registry.d.ts +27 -0
- package/dist/dts/workspace/layout-registry.d.ts.map +1 -0
- package/dist/dts/workspace/layout-wrapper/index.d.ts +2 -0
- package/dist/dts/workspace/layout-wrapper/index.d.ts.map +1 -0
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts +14 -0
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts.map +1 -0
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts +4 -0
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts.map +1 -0
- package/dist/dts/workspace/workspace-state.d.ts +45 -0
- package/dist/dts/workspace/workspace-state.d.ts.map +1 -0
- package/dist/dts/workspace/workspace-state.types.d.ts +26 -0
- package/dist/dts/workspace/workspace-state.types.d.ts.map +1 -0
- package/dist/dts/workspace/workspace.types.d.ts +25 -0
- package/dist/dts/workspace/workspace.types.d.ts.map +1 -0
- package/dist/dts/workspace-components.d.ts +22 -0
- package/dist/dts/workspace-components.d.ts.map +1 -0
- package/dist/dts/workspace-manager/index.d.ts +2 -0
- package/dist/dts/workspace-manager/index.d.ts.map +1 -0
- package/dist/dts/workspace-manager/workspace-manager.d.ts +70 -0
- package/dist/dts/workspace-manager/workspace-manager.d.ts.map +1 -0
- package/dist/dts/workspace-manager/workspace-manager.styles.d.ts +2 -0
- package/dist/dts/workspace-manager/workspace-manager.styles.d.ts.map +1 -0
- package/dist/dts/workspace-manager/workspace-manager.template.d.ts +4 -0
- package/dist/dts/workspace-manager/workspace-manager.template.d.ts.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/workspace/filter-registry.js +47 -0
- package/dist/esm/workspace/grid-register/grid-register.js +136 -0
- package/dist/esm/workspace/grid-register/grid-register.template.js +4 -0
- package/dist/esm/workspace/grid-register/index.js +1 -0
- package/dist/esm/workspace/grid-registry.js +109 -0
- package/dist/esm/workspace/index.js +8 -0
- package/dist/esm/workspace/layout-registry.js +45 -0
- package/dist/esm/workspace/layout-wrapper/index.js +1 -0
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.js +64 -0
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.template.js +4 -0
- package/dist/esm/workspace/workspace-state.js +193 -0
- package/dist/esm/workspace/workspace-state.types.js +1 -0
- package/dist/esm/workspace/workspace.types.js +1 -0
- package/dist/esm/workspace-components.js +43 -0
- package/dist/esm/workspace-manager/index.js +1 -0
- package/dist/esm/workspace-manager/workspace-manager.js +436 -0
- package/dist/esm/workspace-manager/workspace-manager.styles.js +138 -0
- package/dist/esm/workspace-manager/workspace-manager.template.js +259 -0
- package/dist/foundation-workspace.api.json +3614 -0
- package/dist/foundation-workspace.d.ts +343 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/docs/.gitkeep +1 -0
- package/docs/api/foundation-workspace.defaultfilterregistry.md +17 -0
- package/docs/api/foundation-workspace.defaultgridregistry.md +17 -0
- package/docs/api/foundation-workspace.defaultlayoutregistry.md +18 -0
- package/docs/api/foundation-workspace.defaultworkspacestate._constructor_.md +65 -0
- package/docs/api/foundation-workspace.defaultworkspacestate.auth.md +14 -0
- package/docs/api/foundation-workspace.defaultworkspacestate.kvstorage.md +14 -0
- package/docs/api/foundation-workspace.defaultworkspacestate.md +115 -0
- package/docs/api/foundation-workspace.filterregistration.filterkey.md +14 -0
- package/docs/api/foundation-workspace.filterregistration.getfiltervalue.md +14 -0
- package/docs/api/foundation-workspace.filterregistration.md +98 -0
- package/docs/api/foundation-workspace.filterregistration.setfiltervalue.md +14 -0
- package/docs/api/foundation-workspace.filterregistry.applyfiltersvalues.md +53 -0
- package/docs/api/foundation-workspace.filterregistry.getallfiltersvalues.md +18 -0
- package/docs/api/foundation-workspace.filterregistry.md +16 -0
- package/docs/api/foundation-workspace.filterregistry.registerfilter.md +81 -0
- package/docs/api/foundation-workspace.filterregistry.unregisterfilter.md +53 -0
- package/docs/api/foundation-workspace.gridregister.gridkey.md +14 -0
- package/docs/api/foundation-workspace.gridregister.gridregistry.md +14 -0
- package/docs/api/foundation-workspace.gridregister.md +100 -0
- package/docs/api/foundation-workspace.gridregister.workspacestate.md +14 -0
- package/docs/api/foundation-workspace.gridregistration.columnapi.md +14 -0
- package/docs/api/foundation-workspace.gridregistration.gridapi.md +14 -0
- package/docs/api/foundation-workspace.gridregistration.gridkey.md +14 -0
- package/docs/api/foundation-workspace.gridregistration.md +98 -0
- package/docs/api/foundation-workspace.gridregistry.applyallgridssettings.md +53 -0
- package/docs/api/foundation-workspace.gridregistry.applygridsettings.md +72 -0
- package/docs/api/foundation-workspace.gridregistry.getallgridssettings.md +18 -0
- package/docs/api/foundation-workspace.gridregistry.getgrid.md +53 -0
- package/docs/api/foundation-workspace.gridregistry.md +16 -0
- package/docs/api/foundation-workspace.gridregistry.registergrid.md +81 -0
- package/docs/api/foundation-workspace.gridregistry.unregistergrid.md +53 -0
- package/docs/api/foundation-workspace.layoutregistry.applysavedlayouts.md +53 -0
- package/docs/api/foundation-workspace.layoutregistry.getlayoutsconfigs.md +18 -0
- package/docs/api/foundation-workspace.layoutregistry.md +16 -0
- package/docs/api/foundation-workspace.layoutregistry.registerlayout.md +67 -0
- package/docs/api/foundation-workspace.layoutregistry.unregisterlayout.md +53 -0
- package/docs/api/foundation-workspace.layoutwrapper.layoutkey.md +14 -0
- package/docs/api/foundation-workspace.layoutwrapper.layoutregistry.md +14 -0
- package/docs/api/foundation-workspace.layoutwrapper.md +81 -0
- package/docs/api/foundation-workspace.loadmode.md +16 -0
- package/docs/api/foundation-workspace.md +332 -0
- package/docs/api/foundation-workspace.savedfiltervalue.filterkey.md +14 -0
- package/docs/api/foundation-workspace.savedfiltervalue.md +79 -0
- package/docs/api/foundation-workspace.savedfiltervalue.value.md +14 -0
- package/docs/api/foundation-workspace.savedgridsettings.columnstate.md +14 -0
- package/docs/api/foundation-workspace.savedgridsettings.gridkey.md +14 -0
- package/docs/api/foundation-workspace.savedgridsettings.md +99 -0
- package/docs/api/foundation-workspace.savedgridsettings.savedat.md +14 -0
- package/docs/api/foundation-workspace.savedlayout.layout.md +14 -0
- package/docs/api/foundation-workspace.savedlayout.layoutkey.md +14 -0
- package/docs/api/foundation-workspace.savedlayout.md +79 -0
- package/docs/api/foundation-workspace.savedworkspace.description.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.filters.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.grids.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.layouts.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.md +174 -0
- package/docs/api/foundation-workspace.savedworkspace.name.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.savedat.md +14 -0
- package/docs/api/foundation-workspace.savedworkspace.username.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.createdon.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.data.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.description.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.id.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.md +174 -0
- package/docs/api/foundation-workspace.sharedworkspace.modifiedon.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.name.md +14 -0
- package/docs/api/foundation-workspace.sharedworkspace.username.md +14 -0
- package/docs/api/foundation-workspace.workspacecomponents.md +29 -0
- package/docs/api/foundation-workspace.workspacemanager.applyingworkspace.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.auth.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.canshareworkspace.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.connect.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.dialogboundary.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.filterregistry.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.gridregistry.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.isloading.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.layoutregistry.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.loadmodal.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.loadmode.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.md +442 -0
- package/docs/api/foundation-workspace.workspacemanager.savedworkspaces.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.savemodal.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.savemode.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.selectedworkspacetooverwrite.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.sharedworkspacedialogboundary.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.sharedworkspaces.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.workspacedescription.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.workspacename.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.workspacestate.md +14 -0
- package/docs/api/foundation-workspace.workspacemanager.workspacetoshare.md +14 -0
- package/docs/api/foundation-workspace.workspacestate.deleteworkspace.md +53 -0
- package/docs/api/foundation-workspace.workspacestate.getcurrentworkspace.md +18 -0
- package/docs/api/foundation-workspace.workspacestate.getsavedworkspaces.md +18 -0
- package/docs/api/foundation-workspace.workspacestate.loadworkspace.md +53 -0
- package/docs/api/foundation-workspace.workspacestate.md +16 -0
- package/docs/api/foundation-workspace.workspacestate.saveworkspace.md +111 -0
- package/docs/api/foundation-workspace.workspacestate.setcurrentworkspace.md +53 -0
- package/docs/api/index.md +30 -0
- package/docs/api-report.md.api.md +372 -0
- package/license.txt +46 -0
- package/package.json +69 -0
- package/src/index.ts +3 -0
- package/src/workspace/filter-registry.ts +80 -0
- package/src/workspace/grid-register/grid-register.template.ts +7 -0
- package/src/workspace/grid-register/grid-register.ts +142 -0
- package/src/workspace/grid-register/index.ts +1 -0
- package/src/workspace/grid-registry.ts +157 -0
- package/src/workspace/index.ts +8 -0
- package/src/workspace/layout-registry.ts +58 -0
- package/src/workspace/layout-wrapper/index.ts +1 -0
- package/src/workspace/layout-wrapper/layout-wrapper.template.ts +7 -0
- package/src/workspace/layout-wrapper/layout-wrapper.ts +66 -0
- package/src/workspace/workspace-state.ts +234 -0
- package/src/workspace/workspace-state.types.ts +27 -0
- package/src/workspace/workspace.types.ts +26 -0
- package/src/workspace-components.ts +51 -0
- package/src/workspace-manager/index.ts +1 -0
- package/src/workspace-manager/workspace-manager.styles.ts +139 -0
- package/src/workspace-manager/workspace-manager.template.ts +352 -0
- package/src/workspace-manager/workspace-manager.ts +420 -0
- package/temp/api-report.md.api.md +372 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
+
import type { ColumnApi } from '@ag-grid-community/core';
|
|
3
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
4
|
+
import type { Container } from '@microsoft/fast-foundation';
|
|
5
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
|
+
import type { GridApi } from '@ag-grid-community/core';
|
|
7
|
+
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
8
|
+
import { KVStorage } from '@genesislcap/foundation-comms';
|
|
9
|
+
import { Modal } from '@genesislcap/foundation-ui';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export declare class DefaultFilterRegistry implements FilterRegistry {
|
|
15
|
+
private filters;
|
|
16
|
+
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
17
|
+
unregisterFilter(filterKey: string): void;
|
|
18
|
+
getAllFiltersValues(): SavedFilterValue[];
|
|
19
|
+
applyFiltersValues(filtersValues: SavedFilterValue[]): void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @alpha
|
|
24
|
+
*/
|
|
25
|
+
export declare class DefaultGridRegistry implements GridRegistry {
|
|
26
|
+
private grids;
|
|
27
|
+
private cachedSettings;
|
|
28
|
+
registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
|
|
29
|
+
getGrid(gridKey: string): unknown;
|
|
30
|
+
unregisterGrid(gridKey: string): void;
|
|
31
|
+
getAllGridsSettings(): SavedGridSettings[];
|
|
32
|
+
applyGridSettings(gridSetting: SavedGridSettings, options?: {
|
|
33
|
+
applyColumns?: boolean;
|
|
34
|
+
applyFilters?: boolean;
|
|
35
|
+
}): Promise<boolean>;
|
|
36
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[], maxRetries?: number, delayMs?: number): Promise<void>;
|
|
37
|
+
private getGridSettings;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Default layout registry implementation.
|
|
42
|
+
* @alpha
|
|
43
|
+
*/
|
|
44
|
+
export declare class DefaultLayoutRegistry implements LayoutRegistry {
|
|
45
|
+
private layouts;
|
|
46
|
+
registerLayout(layoutKey: string, layout: any): void;
|
|
47
|
+
unregisterLayout(layoutKey: string): void;
|
|
48
|
+
getLayoutsConfigs(): SavedLayout[];
|
|
49
|
+
applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Default workspace persistence implementation backed by KVStorage.
|
|
54
|
+
*
|
|
55
|
+
* @alpha
|
|
56
|
+
*/
|
|
57
|
+
export declare class DefaultWorkspaceState implements WorkspaceState {
|
|
58
|
+
kvStorage: KVStorage;
|
|
59
|
+
auth: Auth;
|
|
60
|
+
private readonly STORAGE_PREFIX;
|
|
61
|
+
private readonly WORKSPACES_LIST_KEY;
|
|
62
|
+
private currentWorkspace;
|
|
63
|
+
constructor(kvStorage: KVStorage, auth: Auth);
|
|
64
|
+
private getCurrentUsername;
|
|
65
|
+
private getWorkspaceStorageKey;
|
|
66
|
+
private getWorkspacesListKey;
|
|
67
|
+
saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
|
|
68
|
+
loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
|
|
69
|
+
private getWorkspace;
|
|
70
|
+
getCurrentWorkspace(): SavedWorkspace | null;
|
|
71
|
+
setCurrentWorkspace(workspace: SavedWorkspace | null): void;
|
|
72
|
+
getSavedWorkspaces(): Promise<SavedWorkspace[]>;
|
|
73
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
74
|
+
private updateWorkspacesList;
|
|
75
|
+
private removeFromWorkspacesList;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @alpha
|
|
80
|
+
*/
|
|
81
|
+
export declare interface FilterRegistration {
|
|
82
|
+
filterKey: string;
|
|
83
|
+
getFilterValue: () => SavedFilterValue | null;
|
|
84
|
+
setFilterValue: (value: string) => void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @alpha
|
|
89
|
+
*/
|
|
90
|
+
export declare interface FilterRegistry {
|
|
91
|
+
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
92
|
+
getAllFiltersValues(): SavedFilterValue[];
|
|
93
|
+
unregisterFilter(filterKey: string): void;
|
|
94
|
+
applyFiltersValues(savedFilters: SavedFilterValue[]): void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* DI token for filter registry.
|
|
99
|
+
* @alpha
|
|
100
|
+
*/
|
|
101
|
+
export declare const FilterRegistry: InterfaceSymbol<FilterRegistry>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
105
|
+
* @alpha
|
|
106
|
+
*/
|
|
107
|
+
export declare class GridRegister extends HTMLElement {
|
|
108
|
+
gridKey: string;
|
|
109
|
+
gridRegistry: GridRegistry;
|
|
110
|
+
workspaceState: WorkspaceState;
|
|
111
|
+
private gridElement;
|
|
112
|
+
private gridApi;
|
|
113
|
+
private columnApi;
|
|
114
|
+
private workspaceSettingsApplied;
|
|
115
|
+
connectedCallback(): void;
|
|
116
|
+
disconnectedCallback(): void;
|
|
117
|
+
private findAndRegisterGrid;
|
|
118
|
+
private readonly handleGridReady;
|
|
119
|
+
private attachToGridApis;
|
|
120
|
+
private detachFromGridApis;
|
|
121
|
+
private loadWorkspaceSettings;
|
|
122
|
+
private loadWorkspaceColumnState;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @alpha
|
|
127
|
+
*/
|
|
128
|
+
export declare interface GridRegistration {
|
|
129
|
+
gridKey: string;
|
|
130
|
+
gridApi: GridApi;
|
|
131
|
+
columnApi: ColumnApi;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @alpha
|
|
136
|
+
*/
|
|
137
|
+
export declare interface GridRegistry {
|
|
138
|
+
registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
|
|
139
|
+
getGrid(gridKey: string): unknown;
|
|
140
|
+
unregisterGrid(gridKey: string): void;
|
|
141
|
+
getAllGridsSettings(): SavedGridSettings[];
|
|
142
|
+
applyGridSettings(gridSetting: SavedGridSettings, options?: {
|
|
143
|
+
applyColumns?: boolean;
|
|
144
|
+
applyFilters?: boolean;
|
|
145
|
+
}): Promise<boolean>;
|
|
146
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[]): Promise<void>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* DI token for grid registry.
|
|
151
|
+
* @alpha
|
|
152
|
+
*/
|
|
153
|
+
export declare const GridRegistry: InterfaceSymbol<GridRegistry>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @alpha
|
|
157
|
+
*/
|
|
158
|
+
export declare interface LayoutRegistry {
|
|
159
|
+
registerLayout(layoutKey: string, layout: unknown): void;
|
|
160
|
+
unregisterLayout(layoutKey: string): void;
|
|
161
|
+
getLayoutsConfigs(): SavedLayout[];
|
|
162
|
+
applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* DI token for layout registry.
|
|
167
|
+
* @alpha
|
|
168
|
+
*/
|
|
169
|
+
export declare const LayoutRegistry: InterfaceSymbol<LayoutRegistry>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Registers a layout instance so workspace state can apply/load it.
|
|
173
|
+
* @alpha
|
|
174
|
+
*/
|
|
175
|
+
export declare class LayoutWrapper extends HTMLElement {
|
|
176
|
+
layoutKey: string;
|
|
177
|
+
layoutRegistry: LayoutRegistry;
|
|
178
|
+
private layoutElement;
|
|
179
|
+
connectedCallback(): void;
|
|
180
|
+
disconnectedCallback(): void;
|
|
181
|
+
private findAndRegisterLayout;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Workspace load mode.
|
|
186
|
+
* @alpha
|
|
187
|
+
*/
|
|
188
|
+
export declare type LoadMode = 'MY' | 'SHARED';
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @alpha
|
|
192
|
+
*/
|
|
193
|
+
export declare interface SavedFilterValue {
|
|
194
|
+
filterKey: string;
|
|
195
|
+
value: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Workspace persistence types.
|
|
200
|
+
* Layout and column state use generic shapes so consumers can use foundation-layout and ag-grid types.
|
|
201
|
+
* @alpha
|
|
202
|
+
*/
|
|
203
|
+
export declare interface SavedGridSettings {
|
|
204
|
+
gridKey: string;
|
|
205
|
+
columnState: any[];
|
|
206
|
+
savedAt: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @alpha
|
|
211
|
+
*/
|
|
212
|
+
export declare interface SavedLayout {
|
|
213
|
+
layoutKey: string;
|
|
214
|
+
layout: unknown;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @alpha
|
|
219
|
+
*/
|
|
220
|
+
export declare interface SavedWorkspace {
|
|
221
|
+
name: string;
|
|
222
|
+
username: string;
|
|
223
|
+
description?: string;
|
|
224
|
+
layouts: SavedLayout[];
|
|
225
|
+
grids: SavedGridSettings[];
|
|
226
|
+
filters: SavedFilterValue[];
|
|
227
|
+
savedAt: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @alpha
|
|
232
|
+
*/
|
|
233
|
+
export declare interface SharedWorkspace {
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
userName: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
createdOn?: string | number;
|
|
239
|
+
modifiedOn?: string | number;
|
|
240
|
+
data: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Registration object for workspace-related components.
|
|
245
|
+
*
|
|
246
|
+
* Mirrors the shape of `rapidGridComponents` so it can be passed into
|
|
247
|
+
* `provideDesignSystem().register(...)` without additional glue code.
|
|
248
|
+
*
|
|
249
|
+
* @alpha
|
|
250
|
+
*/
|
|
251
|
+
export declare const workspaceComponents: {
|
|
252
|
+
workspaceManager: () => {
|
|
253
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
254
|
+
};
|
|
255
|
+
layoutWrapper: () => {
|
|
256
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
257
|
+
};
|
|
258
|
+
gridRegister: () => {
|
|
259
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
260
|
+
};
|
|
261
|
+
register(container?: Container, ...rest: any[]): void;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Workspace persistence UI (save/load + share/delete shared workspaces).
|
|
266
|
+
* @alpha
|
|
267
|
+
*/
|
|
268
|
+
export declare class WorkspaceManager extends FoundationElement {
|
|
269
|
+
workspaceName: string;
|
|
270
|
+
workspaceDescription: string;
|
|
271
|
+
savedWorkspaces: SavedWorkspace[];
|
|
272
|
+
sharedWorkspaces: SharedWorkspace[];
|
|
273
|
+
isLoading: boolean;
|
|
274
|
+
applyingWorkspace: boolean;
|
|
275
|
+
loadMode: LoadMode;
|
|
276
|
+
saveModal: Modal;
|
|
277
|
+
loadModal: Modal;
|
|
278
|
+
saveMode: 'create' | 'overwrite' | 'shared';
|
|
279
|
+
selectedWorkspaceToOverwrite: string;
|
|
280
|
+
workspaceToShare: string;
|
|
281
|
+
dialogBoundary: HTMLElement;
|
|
282
|
+
sharedWorkspaceDialogBoundary: HTMLElement;
|
|
283
|
+
layoutRegistry: LayoutRegistry;
|
|
284
|
+
gridRegistry: GridRegistry;
|
|
285
|
+
filterRegistry: FilterRegistry;
|
|
286
|
+
workspaceState: WorkspaceState;
|
|
287
|
+
connect: Connect;
|
|
288
|
+
auth: Auth;
|
|
289
|
+
canShareWorkspace: boolean;
|
|
290
|
+
private sanitizeDescription;
|
|
291
|
+
updateWorkspaceDescription(raw: string): void;
|
|
292
|
+
private setDescriptionFromSelectedWorkspace;
|
|
293
|
+
connectedCallback(): Promise<void>;
|
|
294
|
+
refreshSavedWorkspaces(): Promise<void>;
|
|
295
|
+
refreshSharedWorkspaces(): Promise<void>;
|
|
296
|
+
private notifyError;
|
|
297
|
+
saveWorkspace(): Promise<void>;
|
|
298
|
+
private applyWorkspace;
|
|
299
|
+
loadWorkspace(workspaceName: string): Promise<void>;
|
|
300
|
+
private requestSharedWorkspace;
|
|
301
|
+
loadSharedWorkspace(shared: {
|
|
302
|
+
id: string;
|
|
303
|
+
name: string;
|
|
304
|
+
userName: string;
|
|
305
|
+
createdOn?: string | number;
|
|
306
|
+
modifiedOn?: string | number;
|
|
307
|
+
data: string;
|
|
308
|
+
}): Promise<void>;
|
|
309
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
310
|
+
private showDeleteConfirmation;
|
|
311
|
+
confirmDeleteWorkspace(workspaceName: string): void;
|
|
312
|
+
modifySharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
313
|
+
deleteSharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
314
|
+
confirmDeleteSharedWorkspace(sharedWorkspace: SharedWorkspace): void;
|
|
315
|
+
shareExistingWorkspace(workspaceName: string): Promise<void>;
|
|
316
|
+
openSaveDialog(): Promise<void>;
|
|
317
|
+
isWorkspaceExisting(workspaceName: string): boolean;
|
|
318
|
+
saveModeChanged(oldValue: string, newValue: string): void;
|
|
319
|
+
selectedWorkspaceToOverwriteChanged(oldValue: string, newValue: string): void;
|
|
320
|
+
openLoadDialog(): void;
|
|
321
|
+
closeSaveDialog(): void;
|
|
322
|
+
closeLoadDialog(): void;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @alpha
|
|
327
|
+
*/
|
|
328
|
+
export declare interface WorkspaceState {
|
|
329
|
+
saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
|
|
330
|
+
loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
|
|
331
|
+
getSavedWorkspaces(): Promise<SavedWorkspace[]>;
|
|
332
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
333
|
+
getCurrentWorkspace(): SavedWorkspace | null;
|
|
334
|
+
setCurrentWorkspace(workspace: SavedWorkspace | null): void;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* DI token for workspace state.
|
|
339
|
+
* @alpha
|
|
340
|
+
*/
|
|
341
|
+
export declare const WorkspaceState: InterfaceSymbol<WorkspaceState>;
|
|
342
|
+
|
|
343
|
+
export { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../src/index.ts","../src/workspace-components.ts","../src/workspace/filter-registry.ts","../src/workspace/grid-registry.ts","../src/workspace/index.ts","../src/workspace/layout-registry.ts","../src/workspace/workspace-state.ts","../src/workspace/workspace-state.types.ts","../src/workspace/workspace.types.ts","../src/workspace/grid-register/grid-register.template.ts","../src/workspace/grid-register/grid-register.ts","../src/workspace/grid-register/index.ts","../src/workspace/layout-wrapper/index.ts","../src/workspace/layout-wrapper/layout-wrapper.template.ts","../src/workspace/layout-wrapper/layout-wrapper.ts","../src/workspace-manager/index.ts","../src/workspace-manager/workspace-manager.styles.ts","../src/workspace-manager/workspace-manager.template.ts","../src/workspace-manager/workspace-manager.ts"],"version":"5.9.2"}
|
package/docs/.gitkeep
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultFilterRegistry](./foundation-workspace.defaultfilterregistry.md)
|
|
4
|
+
|
|
5
|
+
## DefaultFilterRegistry class
|
|
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
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
export declare class DefaultFilterRegistry implements FilterRegistry
|
|
15
|
+
```
|
|
16
|
+
**Implements:** [FilterRegistry](./foundation-workspace.filterregistry.md)
|
|
17
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultGridRegistry](./foundation-workspace.defaultgridregistry.md)
|
|
4
|
+
|
|
5
|
+
## DefaultGridRegistry class
|
|
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
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
export declare class DefaultGridRegistry implements GridRegistry
|
|
15
|
+
```
|
|
16
|
+
**Implements:** [GridRegistry](./foundation-workspace.gridregistry.md)
|
|
17
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultLayoutRegistry](./foundation-workspace.defaultlayoutregistry.md)
|
|
4
|
+
|
|
5
|
+
## DefaultLayoutRegistry class
|
|
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
|
+
Default layout registry implementation.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export declare class DefaultLayoutRegistry implements LayoutRegistry
|
|
16
|
+
```
|
|
17
|
+
**Implements:** [LayoutRegistry](./foundation-workspace.layoutregistry.md)
|
|
18
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultWorkspaceState](./foundation-workspace.defaultworkspacestate.md) > [(constructor)](./foundation-workspace.defaultworkspacestate._constructor_.md)
|
|
4
|
+
|
|
5
|
+
## DefaultWorkspaceState.(constructor)
|
|
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
|
+
Constructs a new instance of the `DefaultWorkspaceState` class
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
constructor(kvStorage: KVStorageType, auth: AuthType);
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
|
|
20
|
+
<table><thead><tr><th>
|
|
21
|
+
|
|
22
|
+
Parameter
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
</th><th>
|
|
26
|
+
|
|
27
|
+
Type
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
</th><th>
|
|
31
|
+
|
|
32
|
+
Description
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
</th></tr></thead>
|
|
36
|
+
<tbody><tr><td>
|
|
37
|
+
|
|
38
|
+
kvStorage
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</td><td>
|
|
42
|
+
|
|
43
|
+
KVStorageType
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td></tr>
|
|
50
|
+
<tr><td>
|
|
51
|
+
|
|
52
|
+
auth
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</td><td>
|
|
56
|
+
|
|
57
|
+
AuthType
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td><td>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
</td></tr>
|
|
64
|
+
</tbody></table>
|
|
65
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultWorkspaceState](./foundation-workspace.defaultworkspacestate.md) > [auth](./foundation-workspace.defaultworkspacestate.auth.md)
|
|
4
|
+
|
|
5
|
+
## DefaultWorkspaceState.auth property
|
|
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
|
+
auth: AuthType;
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultWorkspaceState](./foundation-workspace.defaultworkspacestate.md) > [kvStorage](./foundation-workspace.defaultworkspacestate.kvstorage.md)
|
|
4
|
+
|
|
5
|
+
## DefaultWorkspaceState.kvStorage property
|
|
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
|
+
kvStorage: KVStorageType;
|
|
14
|
+
```
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [DefaultWorkspaceState](./foundation-workspace.defaultworkspacestate.md)
|
|
4
|
+
|
|
5
|
+
## DefaultWorkspaceState class
|
|
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
|
+
Default workspace persistence implementation backed by KVStorage.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export declare class DefaultWorkspaceState implements WorkspaceState
|
|
16
|
+
```
|
|
17
|
+
**Implements:** [WorkspaceState](./foundation-workspace.workspacestate.md)
|
|
18
|
+
|
|
19
|
+
## Constructors
|
|
20
|
+
|
|
21
|
+
<table><thead><tr><th>
|
|
22
|
+
|
|
23
|
+
Constructor
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
</th><th>
|
|
27
|
+
|
|
28
|
+
Modifiers
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</th><th>
|
|
32
|
+
|
|
33
|
+
Description
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</th></tr></thead>
|
|
37
|
+
<tbody><tr><td>
|
|
38
|
+
|
|
39
|
+
[(constructor)(kvStorage, auth)](./foundation-workspace.defaultworkspacestate._constructor_.md)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
</td><td>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td><td>
|
|
46
|
+
|
|
47
|
+
**_(ALPHA)_** Constructs a new instance of the `DefaultWorkspaceState` class
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</td></tr>
|
|
51
|
+
</tbody></table>
|
|
52
|
+
|
|
53
|
+
## Properties
|
|
54
|
+
|
|
55
|
+
<table><thead><tr><th>
|
|
56
|
+
|
|
57
|
+
Property
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</th><th>
|
|
61
|
+
|
|
62
|
+
Modifiers
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</th><th>
|
|
66
|
+
|
|
67
|
+
Type
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</th><th>
|
|
71
|
+
|
|
72
|
+
Description
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</th></tr></thead>
|
|
76
|
+
<tbody><tr><td>
|
|
77
|
+
|
|
78
|
+
[auth](./foundation-workspace.defaultworkspacestate.auth.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
AuthType
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
**_(ALPHA)_**
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[kvStorage](./foundation-workspace.defaultworkspacestate.kvstorage.md)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
KVStorageType
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</td><td>
|
|
109
|
+
|
|
110
|
+
**_(ALPHA)_**
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</td></tr>
|
|
114
|
+
</tbody></table>
|
|
115
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [FilterRegistration](./foundation-workspace.filterregistration.md) > [filterKey](./foundation-workspace.filterregistration.filterkey.md)
|
|
4
|
+
|
|
5
|
+
## FilterRegistration.filterKey property
|
|
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
|
+
filterKey: string;
|
|
14
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-workspace](./foundation-workspace.md) > [FilterRegistration](./foundation-workspace.filterregistration.md) > [getFilterValue](./foundation-workspace.filterregistration.getfiltervalue.md)
|
|
4
|
+
|
|
5
|
+
## FilterRegistration.getFilterValue property
|
|
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
|
+
getFilterValue: () => SavedFilterValue | null;
|
|
14
|
+
```
|