@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.10"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SavedFilterValue } from './workspace.types';
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export interface FilterRegistry {
|
|
6
|
+
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
7
|
+
getAllFiltersValues(): SavedFilterValue[];
|
|
8
|
+
unregisterFilter(filterKey: string): void;
|
|
9
|
+
applyFiltersValues(savedFilters: SavedFilterValue[]): void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export interface FilterRegistration {
|
|
15
|
+
filterKey: string;
|
|
16
|
+
getFilterValue: () => SavedFilterValue | null;
|
|
17
|
+
setFilterValue: (value: string) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @alpha
|
|
21
|
+
*/
|
|
22
|
+
export declare class DefaultFilterRegistry implements FilterRegistry {
|
|
23
|
+
private filters;
|
|
24
|
+
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
25
|
+
unregisterFilter(filterKey: string): void;
|
|
26
|
+
getAllFiltersValues(): SavedFilterValue[];
|
|
27
|
+
applyFiltersValues(filtersValues: SavedFilterValue[]): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* DI token for filter registry.
|
|
31
|
+
* @alpha
|
|
32
|
+
*/
|
|
33
|
+
export declare const FilterRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<FilterRegistry>;
|
|
34
|
+
//# sourceMappingURL=filter-registry.d.ts.map
|
|
@@ -0,0 +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;;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;CAW5D;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GridRegistry, WorkspaceState } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export declare class GridRegister extends HTMLElement {
|
|
7
|
+
gridKey: string;
|
|
8
|
+
gridRegistry: GridRegistry;
|
|
9
|
+
workspaceState: WorkspaceState;
|
|
10
|
+
private gridElement;
|
|
11
|
+
private gridApi;
|
|
12
|
+
private columnApi;
|
|
13
|
+
private workspaceSettingsApplied;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
private findAndRegisterGrid;
|
|
17
|
+
private readonly handleGridReady;
|
|
18
|
+
private attachToGridApis;
|
|
19
|
+
private detachFromGridApis;
|
|
20
|
+
private loadWorkspaceSettings;
|
|
21
|
+
private loadWorkspaceColumnState;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=grid-register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAKlD;;;GAGG;AACH,qBAIa,YAAa,SAAQ,WAAW;IACV,OAAO,EAAE,MAAM,CAAC;IAEnC,YAAY,EAAE,YAAY,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,SAAS,CAA0B;IAC3C,OAAO,CAAC,wBAAwB,CAAkB;IAElD,iBAAiB,IAAI,IAAI;IAIzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IAEF,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,kBAAkB;YAUZ,qBAAqB;YAmCrB,wBAAwB;CAGvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-register.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,YAAY,CAE3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ColumnApi, GridApi } from '@ag-grid-community/core';
|
|
2
|
+
import type { SavedGridSettings } from './workspace.types';
|
|
3
|
+
/**
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export interface GridRegistry {
|
|
7
|
+
registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
|
|
8
|
+
getGrid(gridKey: string): unknown;
|
|
9
|
+
unregisterGrid(gridKey: string): void;
|
|
10
|
+
getAllGridsSettings(): SavedGridSettings[];
|
|
11
|
+
applyGridSettings(gridSetting: SavedGridSettings, options?: {
|
|
12
|
+
applyColumns?: boolean;
|
|
13
|
+
applyFilters?: boolean;
|
|
14
|
+
}): Promise<boolean>;
|
|
15
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[]): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @alpha
|
|
19
|
+
*/
|
|
20
|
+
export interface GridRegistration {
|
|
21
|
+
gridKey: string;
|
|
22
|
+
gridApi: GridApi;
|
|
23
|
+
columnApi: ColumnApi;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @alpha
|
|
27
|
+
*/
|
|
28
|
+
export declare class DefaultGridRegistry implements GridRegistry {
|
|
29
|
+
private grids;
|
|
30
|
+
private cachedSettings;
|
|
31
|
+
registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
|
|
32
|
+
getGrid(gridKey: string): unknown;
|
|
33
|
+
unregisterGrid(gridKey: string): void;
|
|
34
|
+
getAllGridsSettings(): SavedGridSettings[];
|
|
35
|
+
applyGridSettings(gridSetting: SavedGridSettings, options?: {
|
|
36
|
+
applyColumns?: boolean;
|
|
37
|
+
applyFilters?: boolean;
|
|
38
|
+
}): Promise<boolean>;
|
|
39
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[], maxRetries?: number, delayMs?: number): Promise<void>;
|
|
40
|
+
private getGridSettings;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* DI token for grid registry.
|
|
44
|
+
* @alpha
|
|
45
|
+
*/
|
|
46
|
+
export declare const GridRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<GridRegistry>;
|
|
47
|
+
//# sourceMappingURL=grid-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-registry.d.ts","sourceRoot":"","sources":["../../../src/workspace/grid-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1E,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,mBAAmB,IAAI,iBAAiB,EAAE,CAAC;IAC3C,iBAAiB,CACf,WAAW,EAAE,iBAAiB,EAC9B,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GAC3D,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,qBAAqB,CAAC,aAAa,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,mBAAoB,YAAW,YAAY;IACtD,OAAO,CAAC,KAAK,CAA4C;IACzD,OAAO,CAAC,cAAc,CAA6C;IAInE,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI;IAQzE,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIjC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAWrC,mBAAmB,IAAI,iBAAiB,EAAE;IAWpC,iBAAiB,CACrB,WAAW,EAAE,iBAAiB,EAC9B,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GAC3D,OAAO,CAAC,OAAO,CAAC;IA+Bb,qBAAqB,CACzB,aAAa,EAAE,iBAAiB,EAAE,EAClC,UAAU,GAAE,MAAU,EACtB,OAAO,GAAE,MAAY,GACpB,OAAO,CAAC,IAAI,CAAC;IAuBhB,OAAO,CAAC,eAAe;CAgBxB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,oEAExB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './workspace.types';
|
|
2
|
+
export * from './workspace-state.types';
|
|
3
|
+
export * from './workspace-state';
|
|
4
|
+
export * from './layout-registry';
|
|
5
|
+
export * from './grid-registry';
|
|
6
|
+
export * from './filter-registry';
|
|
7
|
+
export * from './grid-register';
|
|
8
|
+
export * from './layout-wrapper';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SavedLayout } from './workspace.types';
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export interface LayoutRegistry {
|
|
6
|
+
registerLayout(layoutKey: string, layout: unknown): void;
|
|
7
|
+
unregisterLayout(layoutKey: string): void;
|
|
8
|
+
getLayoutsConfigs(): SavedLayout[];
|
|
9
|
+
applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Default layout registry implementation.
|
|
13
|
+
* @alpha
|
|
14
|
+
*/
|
|
15
|
+
export declare class DefaultLayoutRegistry implements LayoutRegistry {
|
|
16
|
+
private layouts;
|
|
17
|
+
registerLayout(layoutKey: string, layout: any): void;
|
|
18
|
+
unregisterLayout(layoutKey: string): void;
|
|
19
|
+
getLayoutsConfigs(): SavedLayout[];
|
|
20
|
+
applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* DI token for layout registry.
|
|
24
|
+
* @alpha
|
|
25
|
+
*/
|
|
26
|
+
export declare const LayoutRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<LayoutRegistry>;
|
|
27
|
+
//# sourceMappingURL=layout-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-registry.d.ts","sourceRoot":"","sources":["../../../src/workspace/layout-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACzD,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,iBAAiB,IAAI,WAAW,EAAE,CAAC;IACnC,iBAAiB,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED;;;GAGG;AACH,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,OAAO,CAAC,OAAO,CAA+B;IAE9C,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI;IAOpD,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIzC,iBAAiB,IAAI,WAAW,EAAE;IAO5B,iBAAiB,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAWpE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LayoutRegistry } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Registers a layout instance so workspace state can apply/load it.
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export declare class LayoutWrapper extends HTMLElement {
|
|
7
|
+
layoutKey: string;
|
|
8
|
+
layoutRegistry: LayoutRegistry;
|
|
9
|
+
private layoutElement;
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
private findAndRegisterLayout;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=layout-wrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAKpC;;;GAGG;AACH,qBAIa,aAAc,SAAQ,WAAW;IACT,SAAS,EAAE,MAAM,CAAC;IAErC,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,aAAa,CAAoB;IAEzC,iBAAiB,IAAI,IAAI;IAIzB,oBAAoB,IAAI,IAAI;IAW5B,OAAO,CAAC,qBAAqB;CA6B9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-wrapper.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,aAAa,CAE7D,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type KVStorage as KVStorageType, type Auth as AuthType } from '@genesislcap/foundation-comms';
|
|
2
|
+
import type { SavedWorkspace } from './workspace-state.types';
|
|
3
|
+
import type { SavedFilterValue, SavedGridSettings, SavedLayout } from './workspace.types';
|
|
4
|
+
/**
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkspaceState {
|
|
8
|
+
saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
|
|
9
|
+
loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
|
|
10
|
+
getSavedWorkspaces(): Promise<SavedWorkspace[]>;
|
|
11
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
12
|
+
getCurrentWorkspace(): SavedWorkspace | null;
|
|
13
|
+
setCurrentWorkspace(workspace: SavedWorkspace | null): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Default workspace persistence implementation backed by KVStorage.
|
|
17
|
+
*
|
|
18
|
+
* @alpha
|
|
19
|
+
*/
|
|
20
|
+
export declare class DefaultWorkspaceState implements WorkspaceState {
|
|
21
|
+
kvStorage: KVStorageType;
|
|
22
|
+
auth: AuthType;
|
|
23
|
+
private readonly STORAGE_PREFIX;
|
|
24
|
+
private readonly WORKSPACES_LIST_KEY;
|
|
25
|
+
private currentWorkspace;
|
|
26
|
+
constructor(kvStorage: KVStorageType, auth: AuthType);
|
|
27
|
+
private getCurrentUsername;
|
|
28
|
+
private getWorkspaceStorageKey;
|
|
29
|
+
private getWorkspacesListKey;
|
|
30
|
+
saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
|
|
31
|
+
loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
|
|
32
|
+
private getWorkspace;
|
|
33
|
+
getCurrentWorkspace(): SavedWorkspace | null;
|
|
34
|
+
setCurrentWorkspace(workspace: SavedWorkspace | null): void;
|
|
35
|
+
getSavedWorkspaces(): Promise<SavedWorkspace[]>;
|
|
36
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
37
|
+
private updateWorkspacesList;
|
|
38
|
+
private removeFromWorkspacesList;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* DI token for workspace state.
|
|
42
|
+
* @alpha
|
|
43
|
+
*/
|
|
44
|
+
export declare const WorkspaceState: import("@microsoft/fast-foundation").InterfaceSymbol<WorkspaceState>;
|
|
45
|
+
//# sourceMappingURL=workspace-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-state.d.ts","sourceRoot":"","sources":["../../../src/workspace/workspace-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,IAAI,IAAI,QAAQ,EACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,aAAa,CACX,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,iBAAiB,EAAE,EAC1B,OAAO,EAAE,gBAAgB,EAAE,EAC3B,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrE,kBAAkB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAChD,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,mBAAmB,IAAI,cAAc,GAAG,IAAI,CAAC;IAC7C,mBAAmB,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;CAC7D;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,cAAc;IAOtC,SAAS,EAAE,aAAa;IAC7B,IAAI,EAAE,QAAQ;IAP7B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAqB;IAEzD,OAAO,CAAC,gBAAgB,CAA+B;gBAGnC,SAAS,EAAE,aAAa,EAC7B,IAAI,EAAE,QAAQ;IAG7B,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,oBAAoB;IAKtB,aAAa,CACjB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,WAAW,EAAE,EACtB,KAAK,EAAE,iBAAiB,EAAE,EAC1B,OAAO,EAAE,gBAAgB,EAAE,EAC3B,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC;IAwBV,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;YAM5D,YAAY;IA6B1B,mBAAmB,IAAI,cAAc,GAAG,IAAI;IAI5C,mBAAmB,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,GAAG,IAAI;IAIrD,kBAAkB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAiC/C,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAM7C,oBAAoB;YAyBpB,wBAAwB;CA8BvC;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SavedFilterValue, SavedGridSettings, SavedLayout } from './workspace.types';
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export interface SavedWorkspace {
|
|
6
|
+
name: string;
|
|
7
|
+
username: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
layouts: SavedLayout[];
|
|
10
|
+
grids: SavedGridSettings[];
|
|
11
|
+
filters: SavedFilterValue[];
|
|
12
|
+
savedAt: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export interface SharedWorkspace {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
userName: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
createdOn?: string | number;
|
|
23
|
+
modifiedOn?: string | number;
|
|
24
|
+
data: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=workspace-state.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-state.types.d.ts","sourceRoot":"","sources":["../../../src/workspace/workspace-state.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace persistence types.
|
|
3
|
+
* Layout and column state use generic shapes so consumers can use foundation-layout and ag-grid types.
|
|
4
|
+
* @alpha
|
|
5
|
+
*/
|
|
6
|
+
export interface SavedGridSettings {
|
|
7
|
+
gridKey: string;
|
|
8
|
+
columnState: any[];
|
|
9
|
+
savedAt: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export interface SavedFilterValue {
|
|
15
|
+
filterKey: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @alpha
|
|
20
|
+
*/
|
|
21
|
+
export interface SavedLayout {
|
|
22
|
+
layoutKey: string;
|
|
23
|
+
layout: unknown;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=workspace.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.types.d.ts","sourceRoot":"","sources":["../../../src/workspace/workspace.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Container } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* Registration object for workspace-related components.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the shape of `rapidGridComponents` so it can be passed into
|
|
6
|
+
* `provideDesignSystem().register(...)` without additional glue code.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export declare const workspaceComponents: {
|
|
11
|
+
workspaceManager: () => {
|
|
12
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
13
|
+
};
|
|
14
|
+
layoutWrapper: () => {
|
|
15
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
16
|
+
};
|
|
17
|
+
gridRegister: () => {
|
|
18
|
+
register(_container?: Container, ..._rest: any[]): void;
|
|
19
|
+
};
|
|
20
|
+
register(container?: Container, ...rest: any[]): void;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=workspace-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-components.d.ts","sourceRoot":"","sources":["../../src/workspace-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAM5D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;8BAEN,SAAS,YAAY,GAAG,EAAE;;;8BAO1B,SAAS,YAAY,GAAG,EAAE;;;8BAM1B,SAAS,YAAY,GAAG,EAAE;;yBAK7B,SAAS,WAAW,GAAG,EAAE;CAgB/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { Modal } from '@genesislcap/foundation-ui';
|
|
3
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import { LayoutRegistry, GridRegistry, FilterRegistry, WorkspaceState, type SavedWorkspace, type SharedWorkspace } from '../workspace';
|
|
5
|
+
/**
|
|
6
|
+
* Workspace load mode.
|
|
7
|
+
* @alpha
|
|
8
|
+
*/
|
|
9
|
+
export type LoadMode = 'MY' | 'SHARED';
|
|
10
|
+
/**
|
|
11
|
+
* Workspace persistence UI (save/load + share/delete shared workspaces).
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export declare class WorkspaceManager extends FoundationElement {
|
|
15
|
+
workspaceName: string;
|
|
16
|
+
workspaceDescription: string;
|
|
17
|
+
savedWorkspaces: SavedWorkspace[];
|
|
18
|
+
sharedWorkspaces: SharedWorkspace[];
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
applyingWorkspace: boolean;
|
|
21
|
+
loadMode: LoadMode;
|
|
22
|
+
saveModal: Modal;
|
|
23
|
+
loadModal: Modal;
|
|
24
|
+
saveMode: 'create' | 'overwrite' | 'shared';
|
|
25
|
+
selectedWorkspaceToOverwrite: string;
|
|
26
|
+
workspaceToShare: string;
|
|
27
|
+
dialogBoundary: HTMLElement;
|
|
28
|
+
sharedWorkspaceDialogBoundary: HTMLElement;
|
|
29
|
+
layoutRegistry: LayoutRegistry;
|
|
30
|
+
gridRegistry: GridRegistry;
|
|
31
|
+
filterRegistry: FilterRegistry;
|
|
32
|
+
workspaceState: WorkspaceState;
|
|
33
|
+
connect: Connect;
|
|
34
|
+
auth: Auth;
|
|
35
|
+
canShareWorkspace: boolean;
|
|
36
|
+
private sanitizeDescription;
|
|
37
|
+
updateWorkspaceDescription(raw: string): void;
|
|
38
|
+
private setDescriptionFromSelectedWorkspace;
|
|
39
|
+
connectedCallback(): Promise<void>;
|
|
40
|
+
refreshSavedWorkspaces(): Promise<void>;
|
|
41
|
+
refreshSharedWorkspaces(): Promise<void>;
|
|
42
|
+
private notifyError;
|
|
43
|
+
saveWorkspace(): Promise<void>;
|
|
44
|
+
private applyWorkspace;
|
|
45
|
+
loadWorkspace(workspaceName: string): Promise<void>;
|
|
46
|
+
private requestSharedWorkspace;
|
|
47
|
+
loadSharedWorkspace(shared: {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
userName: string;
|
|
51
|
+
createdOn?: string | number;
|
|
52
|
+
modifiedOn?: string | number;
|
|
53
|
+
data: string;
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
56
|
+
private showDeleteConfirmation;
|
|
57
|
+
confirmDeleteWorkspace(workspaceName: string): void;
|
|
58
|
+
modifySharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
59
|
+
deleteSharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
60
|
+
confirmDeleteSharedWorkspace(sharedWorkspace: SharedWorkspace): void;
|
|
61
|
+
shareExistingWorkspace(workspaceName: string): Promise<void>;
|
|
62
|
+
openSaveDialog(): Promise<void>;
|
|
63
|
+
isWorkspaceExisting(workspaceName: string): boolean;
|
|
64
|
+
saveModeChanged(oldValue: string, newValue: string): void;
|
|
65
|
+
selectedWorkspaceToOverwriteChanged(oldValue: string, newValue: string): void;
|
|
66
|
+
openLoadDialog(): void;
|
|
67
|
+
closeSaveDialog(): void;
|
|
68
|
+
closeLoadDialog(): void;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=workspace-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-manager.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-manager.styles.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,iDAwIlC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WorkspaceManager } from './workspace-manager';
|
|
2
|
+
export declare const WORKSPACE_DESCRIPTION_MAX = 200;
|
|
3
|
+
export declare const WorkspaceManagerTemplate: import("@microsoft/fast-element").ViewTemplate<WorkspaceManager, any>;
|
|
4
|
+
//# sourceMappingURL=workspace-manager.template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-manager.template.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,wBAAwB,uEAwVpC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DI } from '@microsoft/fast-foundation';
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*/
|
|
5
|
+
export class DefaultFilterRegistry {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.filters = new Map();
|
|
8
|
+
}
|
|
9
|
+
registerFilter(filterKey, getFilterValue, setFilterValue) {
|
|
10
|
+
this.filters.set(filterKey, {
|
|
11
|
+
filterKey,
|
|
12
|
+
getFilterValue,
|
|
13
|
+
setFilterValue,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
unregisterFilter(filterKey) {
|
|
17
|
+
this.filters.delete(filterKey);
|
|
18
|
+
}
|
|
19
|
+
getAllFiltersValues() {
|
|
20
|
+
return Array.from(this.filters)
|
|
21
|
+
.map(([key, registration]) => {
|
|
22
|
+
const result = registration.getFilterValue();
|
|
23
|
+
if (result === null || result === undefined) {
|
|
24
|
+
return { filterKey: key, value: '' };
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
})
|
|
28
|
+
.filter((f) => f !== null);
|
|
29
|
+
}
|
|
30
|
+
applyFiltersValues(filtersValues) {
|
|
31
|
+
filtersValues.forEach((f) => {
|
|
32
|
+
const filter = this.filters.get(f.filterKey);
|
|
33
|
+
if (filter) {
|
|
34
|
+
filter.setFilterValue(f.value);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
// eslint-disable-next-line no-console
|
|
38
|
+
console.warn(`layout for ${f.filterKey} not found`);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* DI token for filter registry.
|
|
45
|
+
* @alpha
|
|
46
|
+
*/
|
|
47
|
+
export const FilterRegistry = DI.createInterface((x) => x.singleton(DefaultFilterRegistry));
|