@genesislcap/foundation-ui 14.405.0 → 14.406.0-workspaces.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +990 -186
- package/dist/dts/workspace/index.d.ts +5 -0
- package/dist/dts/workspace/index.d.ts.map +1 -0
- package/dist/dts/workspace/workspace-di.d.ts +13 -0
- package/dist/dts/workspace/workspace-di.d.ts.map +1 -0
- package/dist/dts/workspace/workspace-registry.types.d.ts +34 -0
- package/dist/dts/workspace/workspace-registry.types.d.ts.map +1 -0
- package/dist/dts/workspace/workspace-state.types.d.ts +37 -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-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 +58 -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 +3 -0
- package/dist/dts/workspace-manager/workspace-manager.template.d.ts.map +1 -0
- package/dist/esm/workspace/index.js +4 -0
- package/dist/esm/workspace/workspace-di.js +9 -0
- package/dist/esm/workspace/workspace-registry.types.js +1 -0
- package/dist/esm/workspace/workspace-state.types.js +1 -0
- package/dist/esm/workspace/workspace.types.js +1 -0
- package/dist/esm/workspace-manager/index.js +1 -0
- package/dist/esm/workspace-manager/workspace-manager.js +399 -0
- package/dist/esm/workspace-manager/workspace-manager.styles.js +138 -0
- package/dist/esm/workspace-manager/workspace-manager.template.js +248 -0
- package/package.json +19 -19
|
@@ -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,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ILayoutRegistry } from './workspace-registry.types';
|
|
2
|
+
import type { IGridRegistry } from './workspace-registry.types';
|
|
3
|
+
import type { IFilterRegistry } from './workspace-registry.types';
|
|
4
|
+
import type { IWorkspaceState } from './workspace-state.types';
|
|
5
|
+
/** DI token for layout registry. Host app must register an implementation. */
|
|
6
|
+
export declare const LayoutRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<ILayoutRegistry>;
|
|
7
|
+
/** DI token for grid registry. Host app must register an implementation. */
|
|
8
|
+
export declare const GridRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<IGridRegistry>;
|
|
9
|
+
/** DI token for filter registry. Host app must register an implementation. */
|
|
10
|
+
export declare const FilterRegistry: import("@microsoft/fast-foundation").InterfaceSymbol<IFilterRegistry>;
|
|
11
|
+
/** DI token for workspace state. Host app must register an implementation. */
|
|
12
|
+
export declare const WorkspaceState: import("@microsoft/fast-foundation").InterfaceSymbol<IWorkspaceState>;
|
|
13
|
+
//# sourceMappingURL=workspace-di.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-di.d.ts","sourceRoot":"","sources":["../../../src/workspace/workspace-di.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,8EAA8E;AAC9E,eAAO,MAAM,cAAc,uEAAwD,CAAC;AAEpF,4EAA4E;AAC5E,eAAO,MAAM,YAAY,qEAAoD,CAAC;AAE9E,8EAA8E;AAC9E,eAAO,MAAM,cAAc,uEAAwD,CAAC;AAEpF,8EAA8E;AAC9E,eAAO,MAAM,cAAc,uEAAwD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SavedFilterValue, SavedGridSettings, SavedLayout } from './workspace.types';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ILayoutRegistry {
|
|
6
|
+
registerLayout(layoutKey: string, layout: unknown): void;
|
|
7
|
+
unregisterLayout(layoutKey: string): void;
|
|
8
|
+
getLayoutsConfigs(): SavedLayout[];
|
|
9
|
+
applySavedLayouts(savedLayouts: SavedLayout[]): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface IGridRegistry {
|
|
15
|
+
registerGrid(gridKey: string, gridApi: unknown, columnApi: unknown): void;
|
|
16
|
+
getGrid(gridKey: string): unknown;
|
|
17
|
+
unregisterGrid(gridKey: string): void;
|
|
18
|
+
getAllGridsSettings(): SavedGridSettings[];
|
|
19
|
+
applyGridSettings(gridSetting: SavedGridSettings, options?: {
|
|
20
|
+
applyColumns?: boolean;
|
|
21
|
+
applyFilters?: boolean;
|
|
22
|
+
}): Promise<boolean>;
|
|
23
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[]): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export interface IFilterRegistry {
|
|
29
|
+
registerFilter(filterKey: string, getFilterValue: () => SavedFilterValue | null, setFilterValue: (value: string) => void): void;
|
|
30
|
+
getAllFiltersValues(): SavedFilterValue[];
|
|
31
|
+
unregisterFilter(filterKey: string): void;
|
|
32
|
+
applyFiltersValues(savedFilters: SavedFilterValue[]): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=workspace-registry.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-registry.types.d.ts","sourceRoot":"","sources":["../../../src/workspace/workspace-registry.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,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;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,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,eAAe;IAC9B,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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { SavedFilterValue, SavedGridSettings, SavedLayout } from './workspace.types';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
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
|
+
* @public
|
|
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
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface IWorkspaceState {
|
|
30
|
+
saveWorkspace(workspaceName: string, layouts: SavedLayout[], grids: SavedGridSettings[], filters: SavedFilterValue[], description?: string): Promise<void>;
|
|
31
|
+
loadWorkspace(workspaceName: string): Promise<SavedWorkspace | null>;
|
|
32
|
+
getSavedWorkspaces(): Promise<SavedWorkspace[]>;
|
|
33
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
34
|
+
getCurrentWorkspace(): SavedWorkspace | null;
|
|
35
|
+
setCurrentWorkspace(workspace: SavedWorkspace | null): void;
|
|
36
|
+
}
|
|
37
|
+
//# 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;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,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"}
|
|
@@ -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
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface SavedGridSettings {
|
|
7
|
+
gridKey: string;
|
|
8
|
+
columnState: unknown[];
|
|
9
|
+
savedAt: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface SavedFilterValue {
|
|
15
|
+
filterKey: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
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,OAAO,EAAE,CAAC;IACvB,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
+
import { Modal } from '../modal';
|
|
4
|
+
import { type SavedWorkspace, type SharedWorkspace, type ILayoutRegistry, type IGridRegistry, type IFilterRegistry, type IWorkspaceState } from '../workspace';
|
|
5
|
+
export type LoadMode = 'MY' | 'SHARED';
|
|
6
|
+
export declare class WorkspaceManager extends FoundationElement {
|
|
7
|
+
workspaceName: string;
|
|
8
|
+
workspaceDescription: string;
|
|
9
|
+
savedWorkspaces: SavedWorkspace[];
|
|
10
|
+
sharedWorkspaces: SharedWorkspace[];
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
applyingWorkspace: boolean;
|
|
13
|
+
loadMode: LoadMode;
|
|
14
|
+
saveModal: Modal;
|
|
15
|
+
loadModal: Modal;
|
|
16
|
+
saveMode: 'create' | 'overwrite' | 'shared';
|
|
17
|
+
selectedWorkspaceToOverwrite: string;
|
|
18
|
+
workspaceToShare: string;
|
|
19
|
+
dialogBoundary: HTMLElement;
|
|
20
|
+
sharedWorkspaceDialogBoundary: HTMLElement;
|
|
21
|
+
layoutRegistry: ILayoutRegistry;
|
|
22
|
+
gridRegistry: IGridRegistry;
|
|
23
|
+
filterRegistry: IFilterRegistry;
|
|
24
|
+
workspaceState: IWorkspaceState;
|
|
25
|
+
connect: Connect;
|
|
26
|
+
auth: Auth;
|
|
27
|
+
canShareWorkspace: boolean;
|
|
28
|
+
connectedCallback(): Promise<void>;
|
|
29
|
+
refreshSavedWorkspaces(): Promise<void>;
|
|
30
|
+
refreshSharedWorkspaces(): Promise<void>;
|
|
31
|
+
private notifyError;
|
|
32
|
+
saveWorkspace(): Promise<void>;
|
|
33
|
+
private applyWorkspace;
|
|
34
|
+
loadWorkspace(workspaceName: string): Promise<void>;
|
|
35
|
+
private requestSharedWorkspace;
|
|
36
|
+
loadSharedWorkspace(shared: {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
userName: string;
|
|
40
|
+
createdOn?: string | number;
|
|
41
|
+
modifiedOn?: string | number;
|
|
42
|
+
data: string;
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
deleteWorkspace(workspaceName: string): Promise<void>;
|
|
45
|
+
private showDeleteConfirmation;
|
|
46
|
+
confirmDeleteWorkspace(workspaceName: string): void;
|
|
47
|
+
modifySharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
48
|
+
deleteSharedWorkspace(sharedWorkspace: SharedWorkspace): Promise<void>;
|
|
49
|
+
confirmDeleteSharedWorkspace(sharedWorkspace: SharedWorkspace): void;
|
|
50
|
+
shareExistingWorkspace(workspaceName: string): Promise<void>;
|
|
51
|
+
openSaveDialog(): Promise<void>;
|
|
52
|
+
isWorkspaceExisting(workspaceName: string): boolean;
|
|
53
|
+
saveModeChanged(oldValue: string, newValue: string): void;
|
|
54
|
+
openLoadDialog(): void;
|
|
55
|
+
closeSaveDialog(): void;
|
|
56
|
+
closeLoadDialog(): void;
|
|
57
|
+
}
|
|
58
|
+
//# 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":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAM9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,eAAe,EAEpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;AAEvC,qBAKa,gBAAiB,SAAQ,iBAAiB;IACzC,aAAa,EAAE,MAAM,CAAM;IAC3B,oBAAoB,EAAE,MAAM,CAAM;IAClC,eAAe,EAAE,cAAc,EAAE,CAAM;IACvC,gBAAgB,EAAE,eAAe,EAAE,CAAM;IACzC,SAAS,EAAE,OAAO,CAAS;IAC3B,iBAAiB,EAAE,OAAO,CAAS;IACnC,QAAQ,EAAE,QAAQ,CAAQ;IAC1B,SAAS,EAAE,KAAK,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC;IACjB,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAY;IACvD,4BAA4B,EAAE,MAAM,CAAM;IAC1C,gBAAgB,EAAE,MAAM,CAAM;IAC9B,cAAc,EAAE,WAAW,CAAC;IAC5B,6BAA6B,EAAE,WAAW,CAAC;IAEvC,cAAc,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,aAAa,CAAC;IAC1B,cAAc,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,eAAe,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IAEL,iBAAiB,EAAE,OAAO,CAAC;IAEjC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAOlC,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYvC,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoB9C,OAAO,CAAC,WAAW;IAOb,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;YAgCtB,cAAc;IAYtB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAkB3C,sBAAsB;IAW9B,mBAAmB,CAAC,MAAM,EAAE;QAChC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBX,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3D,OAAO,CAAC,sBAAsB;IAoB9B,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAW7C,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA+BtE,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB5E,4BAA4B,CAAC,eAAe,EAAE,eAAe,GAAG,IAAI;IAU9D,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B5D,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAUrC,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;IAInD,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAWzD,cAAc,IAAI,IAAI;IAKtB,eAAe,IAAI,IAAI;IAMvB,eAAe,IAAI,IAAI;CAGxB"}
|
|
@@ -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 @@
|
|
|
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,wBAAwB,uEA6UpC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DI } from '@microsoft/fast-foundation';
|
|
2
|
+
/** DI token for layout registry. Host app must register an implementation. */
|
|
3
|
+
export const LayoutRegistry = DI.createInterface('LayoutRegistry');
|
|
4
|
+
/** DI token for grid registry. Host app must register an implementation. */
|
|
5
|
+
export const GridRegistry = DI.createInterface('GridRegistry');
|
|
6
|
+
/** DI token for filter registry. Host app must register an implementation. */
|
|
7
|
+
export const FilterRegistry = DI.createInterface('FilterRegistry');
|
|
8
|
+
/** DI token for workspace state. Host app must register an implementation. */
|
|
9
|
+
export const WorkspaceState = DI.createInterface('WorkspaceState');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './workspace-manager';
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { showNotificationDialog, showNotificationToast, } from '@genesislcap/foundation-notifications';
|
|
4
|
+
import { customElement, observable } from '@microsoft/fast-element';
|
|
5
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
|
+
import { LayoutRegistry, GridRegistry, FilterRegistry, WorkspaceState, } from '../workspace';
|
|
7
|
+
import { WorkspaceManagerStyles as styles } from './workspace-manager.styles';
|
|
8
|
+
import { WorkspaceManagerTemplate as template } from './workspace-manager.template';
|
|
9
|
+
let WorkspaceManager = class WorkspaceManager extends FoundationElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.workspaceName = '';
|
|
13
|
+
this.workspaceDescription = '';
|
|
14
|
+
this.savedWorkspaces = [];
|
|
15
|
+
this.sharedWorkspaces = [];
|
|
16
|
+
this.isLoading = false;
|
|
17
|
+
this.applyingWorkspace = false;
|
|
18
|
+
this.loadMode = 'MY';
|
|
19
|
+
this.saveMode = 'create';
|
|
20
|
+
this.selectedWorkspaceToOverwrite = '';
|
|
21
|
+
this.workspaceToShare = '';
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
const _super = Object.create(null, {
|
|
25
|
+
connectedCallback: { get: () => super.connectedCallback }
|
|
26
|
+
});
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
_super.connectedCallback.call(this);
|
|
29
|
+
yield this.refreshSavedWorkspaces();
|
|
30
|
+
yield this.refreshSharedWorkspaces();
|
|
31
|
+
this.canShareWorkspace = this.auth.currentUser.hasPermission('SHARE_WORKSPACE');
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
refreshSavedWorkspaces() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
this.isLoading = true;
|
|
37
|
+
try {
|
|
38
|
+
this.savedWorkspaces = yield this.workspaceState.getSavedWorkspaces();
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.error('Failed to load saved workspaces', error);
|
|
42
|
+
this.savedWorkspaces = [];
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
this.isLoading = false;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
refreshSharedWorkspaces() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
try {
|
|
52
|
+
const response = yield this.connect.request('REQ_SHARED_WORKSPACES');
|
|
53
|
+
const rows = (response === null || response === void 0 ? void 0 : response.REPLY) || [];
|
|
54
|
+
this.sharedWorkspaces = rows.map((row) => {
|
|
55
|
+
var _a;
|
|
56
|
+
return ({
|
|
57
|
+
id: row.SHARED_WORKSPACE_ID,
|
|
58
|
+
name: row.WORKSPACE_NAME,
|
|
59
|
+
userName: row.USER_NAME,
|
|
60
|
+
description: (_a = row.DESCRIPTION) !== null && _a !== void 0 ? _a : undefined,
|
|
61
|
+
createdOn: row.CREATED_ON,
|
|
62
|
+
modifiedOn: row.MODIFIED_ON,
|
|
63
|
+
data: row.WORKSPACE_DATA,
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
this.notifyError(`REQ_SHARED_WORKSPACES ${JSON.stringify(error)}`);
|
|
69
|
+
console.error('Failed to load shared workspaces', error);
|
|
70
|
+
this.sharedWorkspaces = [];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
notifyError(body = 'Error') {
|
|
75
|
+
showNotificationToast({ title: 'Error', body, iconName: 'bell', toast: { type: 'error', autoClose: false } }, 'rapid');
|
|
76
|
+
}
|
|
77
|
+
saveWorkspace() {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const workspaceName = this.saveMode === 'overwrite'
|
|
80
|
+
? this.selectedWorkspaceToOverwrite.trim()
|
|
81
|
+
: this.workspaceName.trim();
|
|
82
|
+
if (!workspaceName) {
|
|
83
|
+
console.error('workspace-manager: workspace name is required');
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
const layoutConfigs = this.layoutRegistry.getLayoutsConfigs();
|
|
88
|
+
const gridSettings = this.gridRegistry.getAllGridsSettings();
|
|
89
|
+
const filterValues = this.filterRegistry.getAllFiltersValues();
|
|
90
|
+
yield this.workspaceState.saveWorkspace(workspaceName, layoutConfigs, gridSettings, filterValues, this.workspaceDescription.trim() || undefined);
|
|
91
|
+
this.workspaceName = '';
|
|
92
|
+
this.workspaceDescription = '';
|
|
93
|
+
this.closeSaveDialog();
|
|
94
|
+
yield this.refreshSavedWorkspaces();
|
|
95
|
+
console.log('Workspace saved successfully');
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
console.error('Failed to save workspace', error);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
applyWorkspace(workspace) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
if (workspace.filters && workspace.filters.length > 0) {
|
|
105
|
+
this.filterRegistry.applyFiltersValues(workspace.filters);
|
|
106
|
+
}
|
|
107
|
+
if (workspace.layouts && workspace.layouts.length > 0) {
|
|
108
|
+
yield this.layoutRegistry.applySavedLayouts(workspace.layouts);
|
|
109
|
+
}
|
|
110
|
+
if (workspace.grids && workspace.grids.length > 0) {
|
|
111
|
+
yield this.gridRegistry.applyAllGridsSettings(workspace.grids);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
loadWorkspace(workspaceName) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
try {
|
|
118
|
+
this.applyingWorkspace = true;
|
|
119
|
+
const workspace = yield this.workspaceState.loadWorkspace(workspaceName);
|
|
120
|
+
if (workspace) {
|
|
121
|
+
yield this.applyWorkspace(workspace);
|
|
122
|
+
this.closeLoadDialog();
|
|
123
|
+
console.log('Workspace loaded successfully');
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
console.warn('Workspace not found:', workspaceName);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
this.applyingWorkspace = false;
|
|
131
|
+
console.error('Failed to load workspace', error);
|
|
132
|
+
}
|
|
133
|
+
this.applyingWorkspace = false;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
requestSharedWorkspace(SHARED_WORKSPACE_ID) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
try {
|
|
139
|
+
const response = yield this.connect.request('REQ_LOAD_SHARED_WORKSPACE', {
|
|
140
|
+
REQUEST: { SHARED_WORKSPACE_ID },
|
|
141
|
+
});
|
|
142
|
+
return response.REPLY || [];
|
|
143
|
+
}
|
|
144
|
+
catch (e) {
|
|
145
|
+
console.error(e);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
loadSharedWorkspace(shared) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
try {
|
|
152
|
+
this.applyingWorkspace = true;
|
|
153
|
+
const sharedData = yield this.requestSharedWorkspace(shared.id);
|
|
154
|
+
if (!(sharedData === null || sharedData === void 0 ? void 0 : sharedData.length)) {
|
|
155
|
+
console.warn('workspace has no data');
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
const dataJoined = sharedData.map((d) => d.WORKSPACE_DATA).join('');
|
|
159
|
+
const workspace = JSON.parse(dataJoined);
|
|
160
|
+
yield this.applyWorkspace(workspace);
|
|
161
|
+
this.closeLoadDialog();
|
|
162
|
+
console.log('Shared workspace loaded successfully');
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
console.error('Failed to load shared workspace', error);
|
|
166
|
+
}
|
|
167
|
+
this.applyingWorkspace = false;
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
deleteWorkspace(workspaceName) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
try {
|
|
173
|
+
yield this.workspaceState.deleteWorkspace(workspaceName);
|
|
174
|
+
yield this.refreshSavedWorkspaces();
|
|
175
|
+
console.log('Workspace deleted successfully');
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
console.error('Failed to delete workspace', error);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
showDeleteConfirmation(title, body, actionFunction, dialogBoundary) {
|
|
183
|
+
showNotificationDialog({
|
|
184
|
+
title,
|
|
185
|
+
body,
|
|
186
|
+
dialog: {
|
|
187
|
+
confirmingActions: [{ label: 'Delete', action: actionFunction }],
|
|
188
|
+
dismissingAction: { label: 'Cancel' },
|
|
189
|
+
},
|
|
190
|
+
}, 'rapid', dialogBoundary);
|
|
191
|
+
}
|
|
192
|
+
confirmDeleteWorkspace(workspaceName) {
|
|
193
|
+
const trimmedName = workspaceName === null || workspaceName === void 0 ? void 0 : workspaceName.trim();
|
|
194
|
+
if (!trimmedName)
|
|
195
|
+
return;
|
|
196
|
+
this.showDeleteConfirmation('Delete workspace', `Are you sure you want to delete the workspace "${trimmedName}"? This action cannot be undone.`, () => this.deleteWorkspace(trimmedName), this.dialogBoundary);
|
|
197
|
+
}
|
|
198
|
+
modifySharedWorkspace(sharedWorkspace) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
var _a, _b;
|
|
201
|
+
try {
|
|
202
|
+
const layouts = this.layoutRegistry.getLayoutsConfigs();
|
|
203
|
+
const grids = this.gridRegistry.getAllGridsSettings();
|
|
204
|
+
const filters = this.filterRegistry.getAllFiltersValues();
|
|
205
|
+
const workspace = {
|
|
206
|
+
name: sharedWorkspace.name,
|
|
207
|
+
username: sharedWorkspace.userName,
|
|
208
|
+
description: sharedWorkspace.description,
|
|
209
|
+
layouts,
|
|
210
|
+
grids,
|
|
211
|
+
filters,
|
|
212
|
+
savedAt: new Date().toISOString(),
|
|
213
|
+
};
|
|
214
|
+
const response = yield this.connect.commitEvent('EVENT_SHARED_WORKSPACE_MODIFY', {
|
|
215
|
+
VALIDATE: false,
|
|
216
|
+
DETAILS: {
|
|
217
|
+
WORKSPACE_NAME: sharedWorkspace.name,
|
|
218
|
+
WORKSPACE_DATA: JSON.stringify(workspace),
|
|
219
|
+
WORKSPACE_DESCRIPTION: (_b = (_a = workspace.description) !== null && _a !== void 0 ? _a : sharedWorkspace.description) !== null && _b !== void 0 ? _b : null,
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
if (response.MESSAGE_TYPE == 'EVENT_ACK') {
|
|
223
|
+
this.closeSaveDialog();
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
catch (e) {
|
|
227
|
+
this.notifyError(`EVENT_SHARED_WORKSPACE_MODIFY ${JSON.stringify(e)}`);
|
|
228
|
+
console.error(e);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
deleteSharedWorkspace(sharedWorkspace) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
try {
|
|
235
|
+
const response = yield this.connect.commitEvent('EVENT_SHARED_WORKSPACE_DELETE', {
|
|
236
|
+
VALIDATE: false,
|
|
237
|
+
DETAILS: { WORKSPACE_NAME: sharedWorkspace.name },
|
|
238
|
+
});
|
|
239
|
+
if (response.MESSAGE_TYPE == 'EVENT_ACK') {
|
|
240
|
+
this.closeSaveDialog();
|
|
241
|
+
yield this.refreshSharedWorkspaces();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
catch (e) {
|
|
245
|
+
this.notifyError(`EVENT_SHARED_WORKSPACE_DELETE ${JSON.stringify(e)}`);
|
|
246
|
+
console.error(e);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
confirmDeleteSharedWorkspace(sharedWorkspace) {
|
|
251
|
+
if (!(sharedWorkspace === null || sharedWorkspace === void 0 ? void 0 : sharedWorkspace.name))
|
|
252
|
+
return;
|
|
253
|
+
this.showDeleteConfirmation('Delete shared workspace', `Are you sure you want to delete the shared workspace "${sharedWorkspace.name}"? This action cannot be undone.`, () => this.deleteSharedWorkspace(sharedWorkspace), this.sharedWorkspaceDialogBoundary);
|
|
254
|
+
}
|
|
255
|
+
shareExistingWorkspace(workspaceName) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
var _a;
|
|
258
|
+
const name = workspaceName === null || workspaceName === void 0 ? void 0 : workspaceName.trim();
|
|
259
|
+
if (!name)
|
|
260
|
+
return;
|
|
261
|
+
try {
|
|
262
|
+
const workspace = yield this.workspaceState.loadWorkspace(name);
|
|
263
|
+
if (!workspace) {
|
|
264
|
+
console.warn('Workspace not found for sharing:', name);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const response = yield this.connect.commitEvent('EVENT_SHARED_WORKSPACE_INSERT', {
|
|
268
|
+
VALIDATE: false,
|
|
269
|
+
DETAILS: {
|
|
270
|
+
WORKSPACE_NAME: workspace.name,
|
|
271
|
+
WORKSPACE_DATA: JSON.stringify(workspace),
|
|
272
|
+
WORKSPACE_DESCRIPTION: (_a = workspace.description) !== null && _a !== void 0 ? _a : null,
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
if (response.MESSAGE_TYPE == 'EVENT_ACK') {
|
|
276
|
+
console.log('Workspace shared successfully');
|
|
277
|
+
this.closeSaveDialog();
|
|
278
|
+
yield this.refreshSharedWorkspaces();
|
|
279
|
+
}
|
|
280
|
+
else if (response.MESSAGE_TYPE == 'EVENT_NACK') {
|
|
281
|
+
console.warn('Failed to share workspace', response);
|
|
282
|
+
this.closeSaveDialog();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
console.error('Failed to share workspace', error);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
openSaveDialog() {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
yield this.refreshSavedWorkspaces();
|
|
293
|
+
this.saveModal.show();
|
|
294
|
+
this.workspaceName = '';
|
|
295
|
+
this.workspaceDescription = '';
|
|
296
|
+
this.saveMode = 'create';
|
|
297
|
+
this.selectedWorkspaceToOverwrite = '';
|
|
298
|
+
this.workspaceToShare = '';
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
isWorkspaceExisting(workspaceName) {
|
|
302
|
+
return this.savedWorkspaces.some((p) => p.name.toLowerCase() === workspaceName.toLowerCase());
|
|
303
|
+
}
|
|
304
|
+
saveModeChanged(oldValue, newValue) {
|
|
305
|
+
if (newValue === 'create') {
|
|
306
|
+
this.selectedWorkspaceToOverwrite = '';
|
|
307
|
+
}
|
|
308
|
+
else if (newValue === 'overwrite') {
|
|
309
|
+
this.workspaceName = '';
|
|
310
|
+
}
|
|
311
|
+
else if (newValue === 'shared') {
|
|
312
|
+
this.workspaceName = '';
|
|
313
|
+
this.selectedWorkspaceToOverwrite = '';
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
openLoadDialog() {
|
|
317
|
+
this.refreshSharedWorkspaces();
|
|
318
|
+
this.loadModal.show();
|
|
319
|
+
}
|
|
320
|
+
closeSaveDialog() {
|
|
321
|
+
this.saveModal.close();
|
|
322
|
+
this.workspaceName = '';
|
|
323
|
+
this.workspaceDescription = '';
|
|
324
|
+
}
|
|
325
|
+
closeLoadDialog() {
|
|
326
|
+
this.loadModal.close();
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
__decorate([
|
|
330
|
+
observable
|
|
331
|
+
], WorkspaceManager.prototype, "workspaceName", void 0);
|
|
332
|
+
__decorate([
|
|
333
|
+
observable
|
|
334
|
+
], WorkspaceManager.prototype, "workspaceDescription", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
observable
|
|
337
|
+
], WorkspaceManager.prototype, "savedWorkspaces", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
observable
|
|
340
|
+
], WorkspaceManager.prototype, "sharedWorkspaces", void 0);
|
|
341
|
+
__decorate([
|
|
342
|
+
observable
|
|
343
|
+
], WorkspaceManager.prototype, "isLoading", void 0);
|
|
344
|
+
__decorate([
|
|
345
|
+
observable
|
|
346
|
+
], WorkspaceManager.prototype, "applyingWorkspace", void 0);
|
|
347
|
+
__decorate([
|
|
348
|
+
observable
|
|
349
|
+
], WorkspaceManager.prototype, "loadMode", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
observable
|
|
352
|
+
], WorkspaceManager.prototype, "saveModal", void 0);
|
|
353
|
+
__decorate([
|
|
354
|
+
observable
|
|
355
|
+
], WorkspaceManager.prototype, "loadModal", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
observable
|
|
358
|
+
], WorkspaceManager.prototype, "saveMode", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
observable
|
|
361
|
+
], WorkspaceManager.prototype, "selectedWorkspaceToOverwrite", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
observable
|
|
364
|
+
], WorkspaceManager.prototype, "workspaceToShare", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
observable
|
|
367
|
+
], WorkspaceManager.prototype, "dialogBoundary", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
observable
|
|
370
|
+
], WorkspaceManager.prototype, "sharedWorkspaceDialogBoundary", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
LayoutRegistry
|
|
373
|
+
], WorkspaceManager.prototype, "layoutRegistry", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
GridRegistry
|
|
376
|
+
], WorkspaceManager.prototype, "gridRegistry", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
FilterRegistry
|
|
379
|
+
], WorkspaceManager.prototype, "filterRegistry", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
WorkspaceState
|
|
382
|
+
], WorkspaceManager.prototype, "workspaceState", void 0);
|
|
383
|
+
__decorate([
|
|
384
|
+
Connect
|
|
385
|
+
], WorkspaceManager.prototype, "connect", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
Auth
|
|
388
|
+
], WorkspaceManager.prototype, "auth", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
observable
|
|
391
|
+
], WorkspaceManager.prototype, "canShareWorkspace", void 0);
|
|
392
|
+
WorkspaceManager = __decorate([
|
|
393
|
+
customElement({
|
|
394
|
+
name: 'workspace-manager',
|
|
395
|
+
template,
|
|
396
|
+
styles,
|
|
397
|
+
})
|
|
398
|
+
], WorkspaceManager);
|
|
399
|
+
export { WorkspaceManager };
|