@genesislcap/foundation-workspace 14.406.0-workspaces.8 → 14.411.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/workspace/grid-register/grid-register.d.ts +5 -3
- package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -1
- package/dist/dts/workspace/grid-register/grid-register.template.d.ts +1 -1
- package/dist/dts/workspace/grid-register/grid-register.template.d.ts.map +1 -1
- package/dist/dts/workspace/grid-registry.d.ts +1 -9
- package/dist/dts/workspace/grid-registry.d.ts.map +1 -1
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts +4 -2
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts.map +1 -1
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts +1 -1
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.template.d.ts.map +1 -1
- package/dist/dts/workspace-components.d.ts +1 -1
- package/dist/dts/workspace-components.d.ts.map +1 -1
- package/dist/dts/workspace-manager/workspace-manager.d.ts +1 -1
- package/dist/dts/workspace-manager/workspace-manager.d.ts.map +1 -1
- package/dist/dts/workspace-manager/workspace-manager.styles.d.ts.map +1 -1
- package/dist/dts/workspace-manager/workspace-manager.template.d.ts +5 -1
- package/dist/dts/workspace-manager/workspace-manager.template.d.ts.map +1 -1
- package/dist/esm/workspace/filter-registry.js +1 -1
- package/dist/esm/workspace/grid-register/grid-register.js +20 -16
- package/dist/esm/workspace/grid-register/grid-register.template.js +1 -1
- package/dist/esm/workspace/grid-registry.js +21 -10
- package/dist/esm/workspace/layout-registry.js +1 -1
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.js +13 -6
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.template.js +1 -1
- package/dist/esm/workspace/workspace-state.js +1 -1
- package/dist/esm/workspace-manager/workspace-manager.js +2 -2
- package/dist/esm/workspace-manager/workspace-manager.styles.js +2 -25
- package/dist/esm/workspace-manager/workspace-manager.template.js +22 -12
- package/dist/foundation-workspace.api.json +64 -4
- package/dist/foundation-workspace.d.ts +7 -15
- package/package.json +16 -19
- package/src/workspace/filter-registry.ts +1 -1
- package/src/workspace/grid-register/grid-register.template.ts +1 -2
- package/src/workspace/grid-register/grid-register.ts +17 -16
- package/src/workspace/grid-registry.ts +23 -18
- package/src/workspace/layout-registry.ts +1 -1
- package/src/workspace/layout-wrapper/layout-wrapper.template.ts +1 -2
- package/src/workspace/layout-wrapper/layout-wrapper.ts +10 -6
- package/src/workspace/workspace-state.ts +1 -1
- package/src/workspace-components.ts +1 -1
- package/src/workspace-manager/workspace-manager.styles.ts +2 -25
- package/src/workspace-manager/workspace-manager.template.ts +28 -15
- package/src/workspace-manager/workspace-manager.ts +2 -2
- package/docs/.gitkeep +0 -1
- package/docs/api/foundation-workspace.defaultfilterregistry.md +0 -17
- package/docs/api/foundation-workspace.defaultgridregistry.md +0 -17
- package/docs/api/foundation-workspace.defaultlayoutregistry.md +0 -18
- package/docs/api/foundation-workspace.defaultworkspacestate._constructor_.md +0 -65
- package/docs/api/foundation-workspace.defaultworkspacestate.auth.md +0 -14
- package/docs/api/foundation-workspace.defaultworkspacestate.kvstorage.md +0 -14
- package/docs/api/foundation-workspace.defaultworkspacestate.md +0 -115
- package/docs/api/foundation-workspace.filterregistration.filterkey.md +0 -14
- package/docs/api/foundation-workspace.filterregistration.getfiltervalue.md +0 -14
- package/docs/api/foundation-workspace.filterregistration.md +0 -98
- package/docs/api/foundation-workspace.filterregistration.setfiltervalue.md +0 -14
- package/docs/api/foundation-workspace.filterregistry.applyfiltersvalues.md +0 -53
- package/docs/api/foundation-workspace.filterregistry.getallfiltersvalues.md +0 -18
- package/docs/api/foundation-workspace.filterregistry.md +0 -16
- package/docs/api/foundation-workspace.filterregistry.registerfilter.md +0 -81
- package/docs/api/foundation-workspace.filterregistry.unregisterfilter.md +0 -53
- package/docs/api/foundation-workspace.gridregister.gridkey.md +0 -14
- package/docs/api/foundation-workspace.gridregister.gridregistry.md +0 -14
- package/docs/api/foundation-workspace.gridregister.md +0 -100
- package/docs/api/foundation-workspace.gridregister.workspacestate.md +0 -14
- package/docs/api/foundation-workspace.gridregistration.columnapi.md +0 -14
- package/docs/api/foundation-workspace.gridregistration.gridapi.md +0 -14
- package/docs/api/foundation-workspace.gridregistration.gridkey.md +0 -14
- package/docs/api/foundation-workspace.gridregistration.md +0 -98
- package/docs/api/foundation-workspace.gridregistry.applyallgridssettings.md +0 -53
- package/docs/api/foundation-workspace.gridregistry.applygridsettings.md +0 -72
- package/docs/api/foundation-workspace.gridregistry.getallgridssettings.md +0 -18
- package/docs/api/foundation-workspace.gridregistry.getgrid.md +0 -53
- package/docs/api/foundation-workspace.gridregistry.md +0 -16
- package/docs/api/foundation-workspace.gridregistry.registergrid.md +0 -81
- package/docs/api/foundation-workspace.gridregistry.unregistergrid.md +0 -53
- package/docs/api/foundation-workspace.layoutregistry.applysavedlayouts.md +0 -53
- package/docs/api/foundation-workspace.layoutregistry.getlayoutsconfigs.md +0 -18
- package/docs/api/foundation-workspace.layoutregistry.md +0 -16
- package/docs/api/foundation-workspace.layoutregistry.registerlayout.md +0 -67
- package/docs/api/foundation-workspace.layoutregistry.unregisterlayout.md +0 -53
- package/docs/api/foundation-workspace.layoutwrapper.layoutkey.md +0 -14
- package/docs/api/foundation-workspace.layoutwrapper.layoutregistry.md +0 -14
- package/docs/api/foundation-workspace.layoutwrapper.md +0 -81
- package/docs/api/foundation-workspace.loadmode.md +0 -16
- package/docs/api/foundation-workspace.md +0 -332
- package/docs/api/foundation-workspace.savedfiltervalue.filterkey.md +0 -14
- package/docs/api/foundation-workspace.savedfiltervalue.md +0 -79
- package/docs/api/foundation-workspace.savedfiltervalue.value.md +0 -14
- package/docs/api/foundation-workspace.savedgridsettings.columnstate.md +0 -14
- package/docs/api/foundation-workspace.savedgridsettings.gridkey.md +0 -14
- package/docs/api/foundation-workspace.savedgridsettings.md +0 -99
- package/docs/api/foundation-workspace.savedgridsettings.savedat.md +0 -14
- package/docs/api/foundation-workspace.savedlayout.layout.md +0 -14
- package/docs/api/foundation-workspace.savedlayout.layoutkey.md +0 -14
- package/docs/api/foundation-workspace.savedlayout.md +0 -79
- package/docs/api/foundation-workspace.savedworkspace.description.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.filters.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.grids.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.layouts.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.md +0 -174
- package/docs/api/foundation-workspace.savedworkspace.name.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.savedat.md +0 -14
- package/docs/api/foundation-workspace.savedworkspace.username.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.createdon.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.data.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.description.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.id.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.md +0 -174
- package/docs/api/foundation-workspace.sharedworkspace.modifiedon.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.name.md +0 -14
- package/docs/api/foundation-workspace.sharedworkspace.username.md +0 -14
- package/docs/api/foundation-workspace.workspacecomponents.md +0 -29
- package/docs/api/foundation-workspace.workspacemanager.applyingworkspace.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.auth.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.canshareworkspace.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.connect.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.dialogboundary.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.filterregistry.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.gridregistry.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.isloading.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.layoutregistry.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.loadmodal.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.loadmode.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.md +0 -442
- package/docs/api/foundation-workspace.workspacemanager.savedworkspaces.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.savemodal.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.savemode.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.selectedworkspacetooverwrite.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.sharedworkspacedialogboundary.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.sharedworkspaces.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.workspacedescription.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.workspacename.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.workspacestate.md +0 -14
- package/docs/api/foundation-workspace.workspacemanager.workspacetoshare.md +0 -14
- package/docs/api/foundation-workspace.workspacestate.deleteworkspace.md +0 -53
- package/docs/api/foundation-workspace.workspacestate.getcurrentworkspace.md +0 -18
- package/docs/api/foundation-workspace.workspacestate.getsavedworkspaces.md +0 -18
- package/docs/api/foundation-workspace.workspacestate.loadworkspace.md +0 -53
- package/docs/api/foundation-workspace.workspacestate.md +0 -16
- package/docs/api/foundation-workspace.workspacestate.saveworkspace.md +0 -111
- package/docs/api/foundation-workspace.workspacestate.setcurrentworkspace.md +0 -53
- package/docs/api/index.md +0 -30
- package/docs/api-report.md.api.md +0 -384
- package/temp/api-report.md.api.md +0 -384
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FoundationElement } from '@genesislcap/web-core';
|
|
2
|
+
import { GridRegistry } from '../grid-registry';
|
|
3
|
+
import { WorkspaceState } from '../workspace-state';
|
|
2
4
|
/**
|
|
3
5
|
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
4
6
|
* @alpha
|
|
5
7
|
*/
|
|
6
|
-
export declare class GridRegister extends
|
|
8
|
+
export declare class GridRegister extends FoundationElement {
|
|
7
9
|
gridKey: string;
|
|
10
|
+
designSystemPrefix: string;
|
|
8
11
|
gridRegistry: GridRegistry;
|
|
9
12
|
workspaceState: WorkspaceState;
|
|
10
13
|
private gridElement;
|
|
11
14
|
private gridApi;
|
|
12
15
|
private columnApi;
|
|
13
|
-
private workspaceSettingsApplied;
|
|
14
16
|
connectedCallback(): void;
|
|
15
17
|
disconnectedCallback(): void;
|
|
16
18
|
private findAndRegisterGrid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;GAGG;AACH,qBAIa,YAAa,SAAQ,iBAAiB;IAChB,OAAO,EAAE,MAAM,CAAC;IACJ,kBAAkB,EAAE,MAAM,CAAW;IAEpE,YAAY,EAAE,YAAY,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,SAAS,CAA0B;IAE3C,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAS5B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IAEF,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,kBAAkB;YAUZ,qBAAqB;YAmCrB,wBAAwB;CAGvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ViewTemplate } from '@genesislcap/web-core';
|
|
2
2
|
import type { GridRegister } from './grid-register';
|
|
3
3
|
export declare const GridRegisterTemplate: ViewTemplate<GridRegister>;
|
|
4
4
|
//# sourceMappingURL=grid-register.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-register.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid-register.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,YAAY,CAE3D,CAAC"}
|
|
@@ -22,14 +22,6 @@ export interface GridRegistry {
|
|
|
22
22
|
}): Promise<boolean>;
|
|
23
23
|
applyAllGridsSettings(gridsSettings: SavedGridSettings[]): Promise<void>;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* @alpha
|
|
27
|
-
*/
|
|
28
|
-
export interface GridRegistration {
|
|
29
|
-
gridKey: string;
|
|
30
|
-
gridApi: GridApi;
|
|
31
|
-
columnApi: ColumnApi;
|
|
32
|
-
}
|
|
33
25
|
/**
|
|
34
26
|
* @alpha
|
|
35
27
|
*/
|
|
@@ -44,7 +36,7 @@ export declare class DefaultGridRegistry implements GridRegistry {
|
|
|
44
36
|
applyColumns?: boolean;
|
|
45
37
|
applyFilters?: boolean;
|
|
46
38
|
}): Promise<boolean>;
|
|
47
|
-
applyAllGridsSettings(gridsSettings: SavedGridSettings[], maxRetries?: number
|
|
39
|
+
applyAllGridsSettings(gridsSettings: SavedGridSettings[], maxRetries?: number): Promise<void>;
|
|
48
40
|
private getGridSettings;
|
|
49
41
|
}
|
|
50
42
|
/**
|
|
@@ -1 +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,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;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,gBAAgB,GAAG,IAAI,CAAC;IAClD,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,
|
|
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,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;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,gBAAgB,GAAG,IAAI,CAAC;IAClD,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,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,gBAAgB,GAAG,IAAI;IAIjD,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;IA4Cb,qBAAqB,CACzB,aAAa,EAAE,iBAAiB,EAAE,EAClC,UAAU,GAAE,MAAU,GACrB,OAAO,CAAC,IAAI,CAAC;IAsBhB,OAAO,CAAC,eAAe;CAmBxB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,oEAExB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FoundationElement } from '@genesislcap/web-core';
|
|
2
|
+
import { LayoutRegistry } from '../layout-registry';
|
|
2
3
|
/**
|
|
3
4
|
* Registers a layout instance so workspace state can apply/load it.
|
|
4
5
|
* @alpha
|
|
5
6
|
*/
|
|
6
|
-
export declare class LayoutWrapper extends
|
|
7
|
+
export declare class LayoutWrapper extends FoundationElement {
|
|
7
8
|
layoutKey: string;
|
|
9
|
+
designSystemPrefix: string;
|
|
8
10
|
layoutRegistry: LayoutRegistry;
|
|
9
11
|
private layoutElement;
|
|
10
12
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD;;;GAGG;AACH,qBAIa,aAAc,SAAQ,iBAAiB;IACf,SAAS,EAAE,MAAM,CAAC;IACR,kBAAkB,EAAE,MAAM,CAAW;IAElE,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,aAAa,CAAiC;IAEtD,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAY5B,OAAO,CAAC,qBAAqB;CA8B9B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ViewTemplate } from '@genesislcap/web-core';
|
|
2
2
|
import type { LayoutWrapper } from './layout-wrapper';
|
|
3
3
|
export declare const LayoutWrapperTemplate: ViewTemplate<LayoutWrapper>;
|
|
4
4
|
//# sourceMappingURL=layout-wrapper.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-wrapper.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout-wrapper.template.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,aAAa,CAE7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-components.d.ts","sourceRoot":"","sources":["../../src/workspace-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-components.d.ts","sourceRoot":"","sources":["../../src/workspace-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMvD;;;;;;;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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
2
2
|
import { Modal } from '@genesislcap/foundation-ui';
|
|
3
|
-
import { FoundationElement } from '@
|
|
3
|
+
import { FoundationElement } from '@genesislcap/web-core';
|
|
4
4
|
import { LayoutRegistry, GridRegistry, FilterRegistry, WorkspaceState, type SavedWorkspace, type SharedWorkspace } from '../workspace';
|
|
5
5
|
/**
|
|
6
6
|
* Workspace load mode.
|
|
@@ -1 +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;AAK9D,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-manager.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"workspace-manager.styles.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,iDAiHlC,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { ViewTemplate } from '@genesislcap/web-core';
|
|
1
2
|
import type { WorkspaceManager } from './workspace-manager';
|
|
2
3
|
export declare const WORKSPACE_DESCRIPTION_MAX = 200;
|
|
3
|
-
export declare const
|
|
4
|
+
export declare const workspaceHeaderPartial: ViewTemplate<WorkspaceManager>;
|
|
5
|
+
export declare const workspaceSaveModalPartial: ViewTemplate<WorkspaceManager>;
|
|
6
|
+
export declare const workspaceLoadModalPartial: ViewTemplate<WorkspaceManager>;
|
|
7
|
+
export declare const WorkspaceManagerTemplate: ViewTemplate<WorkspaceManager, any>;
|
|
4
8
|
//# sourceMappingURL=workspace-manager.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-manager.template.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-manager.template.d.ts","sourceRoot":"","sources":["../../../src/workspace-manager/workspace-manager.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,YAAY,EAAQ,MAAM,uBAAuB,CAAC;AAEhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,gBAAgB,CAWjE,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,gBAAgB,CAyNpE,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,gBAAgB,CA8HpE,CAAC;AAEF,eAAO,MAAM,wBAAwB,qCAEpC,CAAC"}
|
|
@@ -1,47 +1,51 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { attr, customElement } from '@
|
|
3
|
-
import { GridRegistry
|
|
2
|
+
import { FoundationElement, attr, customElement } from '@genesislcap/web-core';
|
|
3
|
+
import { GridRegistry } from '../grid-registry';
|
|
4
|
+
import { WorkspaceState } from '../workspace-state';
|
|
4
5
|
import { GridRegisterTemplate as template } from './grid-register.template';
|
|
5
6
|
const name = 'grid-register';
|
|
6
7
|
/**
|
|
7
8
|
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
8
9
|
* @alpha
|
|
9
10
|
*/
|
|
10
|
-
let GridRegister = class GridRegister extends
|
|
11
|
+
let GridRegister = class GridRegister extends FoundationElement {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
14
|
+
this.designSystemPrefix = 'rapid';
|
|
13
15
|
this.gridElement = null;
|
|
14
16
|
this.gridApi = null;
|
|
15
17
|
this.columnApi = null;
|
|
16
|
-
this.workspaceSettingsApplied = false;
|
|
17
18
|
this.handleGridReady = () => {
|
|
18
19
|
this.attachToGridApis();
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
connectedCallback() {
|
|
23
|
+
super.connectedCallback();
|
|
22
24
|
this.findAndRegisterGrid();
|
|
23
25
|
}
|
|
24
26
|
disconnectedCallback() {
|
|
27
|
+
super.disconnectedCallback();
|
|
25
28
|
if (this.gridKey) {
|
|
26
29
|
this.gridRegistry.unregisterGrid(this.gridKey);
|
|
27
30
|
}
|
|
28
31
|
this.detachFromGridApis();
|
|
29
32
|
}
|
|
30
33
|
findAndRegisterGrid() {
|
|
31
|
-
|
|
34
|
+
const gridTag = `${this.designSystemPrefix}-grid-pro`;
|
|
35
|
+
this.gridElement = this.querySelector(gridTag);
|
|
32
36
|
if (this.gridElement) {
|
|
33
37
|
this.gridElement.addEventListener('gridReady', this.handleGridReady);
|
|
34
38
|
this.attachToGridApis();
|
|
35
39
|
}
|
|
36
40
|
else {
|
|
37
41
|
setTimeout(() => {
|
|
38
|
-
this.gridElement = this.querySelector(
|
|
42
|
+
this.gridElement = this.querySelector(gridTag);
|
|
39
43
|
if (this.gridElement) {
|
|
40
44
|
this.gridElement.addEventListener('gridReady', this.handleGridReady);
|
|
41
45
|
this.attachToGridApis();
|
|
42
46
|
}
|
|
43
47
|
else {
|
|
44
|
-
console.warn(`grid-register:
|
|
48
|
+
console.warn(`grid-register: ${gridTag} element not found`);
|
|
45
49
|
}
|
|
46
50
|
}, 100);
|
|
47
51
|
}
|
|
@@ -60,19 +64,16 @@ let GridRegister = class GridRegister extends HTMLElement {
|
|
|
60
64
|
}
|
|
61
65
|
this.gridApi = gridApi;
|
|
62
66
|
this.columnApi = columnApi;
|
|
63
|
-
|
|
64
|
-
if (!effectiveGridKey) {
|
|
67
|
+
if (!persistKey) {
|
|
65
68
|
console.warn('grid-register: missing persist-column-state-key; grid state will not be saved');
|
|
66
69
|
}
|
|
67
70
|
else {
|
|
68
|
-
this.gridRegistry.registerGrid(
|
|
69
|
-
this.gridKey =
|
|
70
|
-
}
|
|
71
|
-
if (!this.workspaceSettingsApplied && this.gridApi) {
|
|
72
|
-
this.loadWorkspaceColumnState().catch((error) => {
|
|
73
|
-
console.warn(`Failed to apply column state for ${this.gridKey} on gridReady:`, error);
|
|
74
|
-
});
|
|
71
|
+
this.gridRegistry.registerGrid(persistKey, gridApi, columnApi);
|
|
72
|
+
this.gridKey = persistKey;
|
|
75
73
|
}
|
|
74
|
+
this.loadWorkspaceColumnState().catch((error) => {
|
|
75
|
+
console.warn(`Failed to apply column state for ${this.gridKey} on gridReady:`, error);
|
|
76
|
+
});
|
|
76
77
|
}
|
|
77
78
|
detachFromGridApis() {
|
|
78
79
|
if (this.gridElement && this.handleGridReady) {
|
|
@@ -121,6 +122,9 @@ let GridRegister = class GridRegister extends HTMLElement {
|
|
|
121
122
|
__decorate([
|
|
122
123
|
attr({ attribute: 'grid-key' })
|
|
123
124
|
], GridRegister.prototype, "gridKey", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
attr({ attribute: 'design-system-prefix' })
|
|
127
|
+
], GridRegister.prototype, "designSystemPrefix", void 0);
|
|
124
128
|
__decorate([
|
|
125
129
|
GridRegistry
|
|
126
130
|
], GridRegister.prototype, "gridRegistry", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import { DI } from '@
|
|
2
|
+
import { DI } from '@genesislcap/web-core';
|
|
3
3
|
/**
|
|
4
4
|
* @alpha
|
|
5
5
|
*/
|
|
@@ -40,8 +40,9 @@ export class DefaultGridRegistry {
|
|
|
40
40
|
}
|
|
41
41
|
applyGridSettings(gridSetting, options) {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a, _b, _c, _d, _e;
|
|
43
44
|
const gridRegistration = this.grids.get(gridSetting.gridKey);
|
|
44
|
-
if (!gridRegistration || !gridRegistration.columnApi
|
|
45
|
+
if (!gridRegistration || (!gridRegistration.columnApi && !gridRegistration.gridApi)) {
|
|
45
46
|
return false;
|
|
46
47
|
}
|
|
47
48
|
const hasColumnState = gridSetting.columnState && gridSetting.columnState.length > 0;
|
|
@@ -53,10 +54,19 @@ export class DefaultGridRegistry {
|
|
|
53
54
|
}
|
|
54
55
|
try {
|
|
55
56
|
if (shouldApplyColumns) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
// Prefer Grid API if available, otherwise fall back to Column API.
|
|
58
|
+
// (AG Grid's Column API definitely supports applyColumnState; this is defensive.)
|
|
59
|
+
const applyColumnStateFn = (_c = (_b = (_a = gridRegistration.gridApi) === null || _a === void 0 ? void 0 : _a.applyColumnState) === null || _b === void 0 ? void 0 : _b.bind(gridRegistration.gridApi)) !== null && _c !== void 0 ? _c : (_e = (_d = gridRegistration.columnApi) === null || _d === void 0 ? void 0 : _d.applyColumnState) === null || _e === void 0 ? void 0 : _e.bind(gridRegistration.columnApi);
|
|
60
|
+
if (applyColumnStateFn) {
|
|
61
|
+
applyColumnStateFn({
|
|
62
|
+
state: gridSetting.columnState,
|
|
63
|
+
applyOrder: true,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
console.warn(`GridRegistry: applyColumnState not found for ${gridSetting.gridKey} (gridApi/columnApi)`);
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
return true;
|
|
62
72
|
}
|
|
@@ -67,7 +77,7 @@ export class DefaultGridRegistry {
|
|
|
67
77
|
});
|
|
68
78
|
}
|
|
69
79
|
applyAllGridsSettings(gridsSettings_1) {
|
|
70
|
-
return __awaiter(this, arguments, void 0, function* (gridsSettings, maxRetries = 3
|
|
80
|
+
return __awaiter(this, arguments, void 0, function* (gridsSettings, maxRetries = 3) {
|
|
71
81
|
// eslint-disable-next-line no-plusplus
|
|
72
82
|
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
73
83
|
const remainingSettings = [];
|
|
@@ -81,15 +91,16 @@ export class DefaultGridRegistry {
|
|
|
81
91
|
if (remainingSettings.length === 0 || attempt >= maxRetries - 1) {
|
|
82
92
|
break;
|
|
83
93
|
}
|
|
84
|
-
// await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
85
94
|
gridsSettings = remainingSettings;
|
|
86
95
|
}
|
|
87
96
|
});
|
|
88
97
|
}
|
|
89
98
|
getGridSettings(gridKey, grid) {
|
|
90
|
-
var _a;
|
|
99
|
+
var _a, _b, _c, _d;
|
|
91
100
|
if (grid) {
|
|
92
|
-
|
|
101
|
+
// Prefer Grid API if available, otherwise fall back to Column API.
|
|
102
|
+
// (AG Grid's Column state is typically on ColumnApi; this is defensive.)
|
|
103
|
+
const columnState = (_c = (_b = (_a = grid.gridApi) === null || _a === void 0 ? void 0 : _a.getColumnState) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (_d = grid.columnApi) === null || _d === void 0 ? void 0 : _d.getColumnState();
|
|
93
104
|
const columnCount = (columnState === null || columnState === void 0 ? void 0 : columnState.length) || 0;
|
|
94
105
|
console.log(`Saved grid settings for ${gridKey}: ${columnCount} columns`);
|
|
95
106
|
return {
|
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { attr, customElement } from '@
|
|
3
|
-
import { LayoutRegistry } from '
|
|
2
|
+
import { FoundationElement, attr, customElement } from '@genesislcap/web-core';
|
|
3
|
+
import { LayoutRegistry } from '../layout-registry';
|
|
4
4
|
import { LayoutWrapperTemplate as template } from './layout-wrapper.template';
|
|
5
5
|
const name = 'layout-register';
|
|
6
6
|
/**
|
|
7
7
|
* Registers a layout instance so workspace state can apply/load it.
|
|
8
8
|
* @alpha
|
|
9
9
|
*/
|
|
10
|
-
let LayoutWrapper = class LayoutWrapper extends
|
|
10
|
+
let LayoutWrapper = class LayoutWrapper extends FoundationElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
+
this.designSystemPrefix = 'rapid';
|
|
13
14
|
this.layoutElement = null;
|
|
14
15
|
}
|
|
15
16
|
connectedCallback() {
|
|
17
|
+
super.connectedCallback();
|
|
16
18
|
this.findAndRegisterLayout();
|
|
17
19
|
}
|
|
18
20
|
disconnectedCallback() {
|
|
19
21
|
var _a, _b, _c, _d, _e;
|
|
22
|
+
super.disconnectedCallback();
|
|
20
23
|
const layoutKey = (_e = (_b = (_a = this.layoutElement) === null || _a === void 0 ? void 0 : _a.autoSaveKey) !== null && _b !== void 0 ? _b : (_d = (_c = this.layoutElement) === null || _c === void 0 ? void 0 : _c.getAttribute) === null || _d === void 0 ? void 0 : _d.call(_c, 'auto-save-key')) !== null && _e !== void 0 ? _e : this.layoutKey;
|
|
21
24
|
if (layoutKey) {
|
|
22
25
|
this.layoutRegistry.unregisterLayout(layoutKey);
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
findAndRegisterLayout() {
|
|
26
|
-
|
|
29
|
+
const layoutTag = `${this.designSystemPrefix}-layout`;
|
|
30
|
+
let layoutElement = this.querySelector(layoutTag);
|
|
27
31
|
const registerLayout = (layout) => {
|
|
28
32
|
var _a, _b, _c;
|
|
29
33
|
if (!layout) {
|
|
30
|
-
console.warn(`layout-register:
|
|
34
|
+
console.warn(`layout-register: ${layoutTag} element not found`);
|
|
31
35
|
return;
|
|
32
36
|
}
|
|
33
37
|
this.layoutElement = layout;
|
|
@@ -43,7 +47,7 @@ let LayoutWrapper = class LayoutWrapper extends HTMLElement {
|
|
|
43
47
|
}
|
|
44
48
|
else {
|
|
45
49
|
setTimeout(() => {
|
|
46
|
-
layoutElement = this.querySelector(
|
|
50
|
+
layoutElement = this.querySelector(layoutTag);
|
|
47
51
|
registerLayout(layoutElement);
|
|
48
52
|
}, 100);
|
|
49
53
|
}
|
|
@@ -52,6 +56,9 @@ let LayoutWrapper = class LayoutWrapper extends HTMLElement {
|
|
|
52
56
|
__decorate([
|
|
53
57
|
attr({ attribute: 'layout-key' })
|
|
54
58
|
], LayoutWrapper.prototype, "layoutKey", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
attr({ attribute: 'design-system-prefix' })
|
|
61
|
+
], LayoutWrapper.prototype, "designSystemPrefix", void 0);
|
|
55
62
|
__decorate([
|
|
56
63
|
LayoutRegistry
|
|
57
64
|
], LayoutWrapper.prototype, "layoutRegistry", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate, __param } from "tslib";
|
|
2
2
|
import { Auth, KVStorage, } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { DI } from '@
|
|
3
|
+
import { DI } from '@genesislcap/web-core';
|
|
4
4
|
/**
|
|
5
5
|
* Default workspace persistence implementation backed by KVStorage.
|
|
6
6
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { showNotificationDialog, showNotificationToast, } from '@genesislcap/foundation-notifications';
|
|
4
|
-
import { customElement, observable } from '@
|
|
5
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import { FoundationElement, customElement, observable } from '@genesislcap/web-core';
|
|
6
5
|
import { LayoutRegistry, GridRegistry, FilterRegistry, WorkspaceState, } from '../workspace';
|
|
7
6
|
import { WorkspaceManagerStyles as styles } from './workspace-manager.styles';
|
|
8
7
|
import { WORKSPACE_DESCRIPTION_MAX, WorkspaceManagerTemplate as template, } from './workspace-manager.template';
|
|
@@ -198,6 +197,7 @@ let WorkspaceManager = class WorkspaceManager extends FoundationElement {
|
|
|
198
197
|
const sharedData = yield this.requestSharedWorkspace(shared.id);
|
|
199
198
|
if (!(sharedData === null || sharedData === void 0 ? void 0 : sharedData.length)) {
|
|
200
199
|
console.warn('workspace has no data');
|
|
200
|
+
this.applyingWorkspace = false;
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
const dataJoined = sharedData.map((d) => d.WORKSPACE_DATA).join('');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
2
|
export const WorkspaceManagerStyles = css `
|
|
3
3
|
.workspace-manager {
|
|
4
4
|
display: flex;
|
|
@@ -63,6 +63,7 @@ export const WorkspaceManagerStyles = css `
|
|
|
63
63
|
cursor: pointer;
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
|
+
gap: 5px;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.workspace-item:hover {
|
|
@@ -100,30 +101,6 @@ export const WorkspaceManagerStyles = css `
|
|
|
100
101
|
line-height: 1.4;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
.workspace-description-input {
|
|
104
|
-
width: 100%;
|
|
105
|
-
min-height: 60px;
|
|
106
|
-
padding: 8px 12px;
|
|
107
|
-
margin-bottom: 16px;
|
|
108
|
-
font-family: inherit;
|
|
109
|
-
font-size: 14px;
|
|
110
|
-
border: 1px solid var(--neutral-stroke-rest);
|
|
111
|
-
border-radius: 4px;
|
|
112
|
-
background: var(--neutral-fill-rest);
|
|
113
|
-
color: var(--neutral-foreground-rest);
|
|
114
|
-
resize: vertical;
|
|
115
|
-
box-sizing: border-box;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.workspace-description-input::placeholder {
|
|
119
|
-
color: var(--neutral-foreground-hint);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.workspace-description-input:focus {
|
|
123
|
-
outline: none;
|
|
124
|
-
border-color: var(--accent-fill-rest);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
104
|
.loading-container {
|
|
128
105
|
display: flex;
|
|
129
106
|
flex-direction: column;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sync, whenElse } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, ref, repeat, when } from '@
|
|
2
|
+
import { html, ref, repeat, when } from '@genesislcap/web-core';
|
|
3
3
|
export const WORKSPACE_DESCRIPTION_MAX = 200;
|
|
4
|
-
export const
|
|
4
|
+
export const workspaceHeaderPartial = html `
|
|
5
5
|
<div class="workspace-manager">
|
|
6
6
|
<rapid-button @click=${(x) => x.openSaveDialog()}>
|
|
7
7
|
<rapid-icon name="download"></rapid-icon>
|
|
@@ -12,6 +12,8 @@ export const WorkspaceManagerTemplate = html `
|
|
|
12
12
|
Load Workspace
|
|
13
13
|
</rapid-button>
|
|
14
14
|
</div>
|
|
15
|
+
`;
|
|
16
|
+
export const workspaceSaveModalPartial = html `
|
|
15
17
|
<rapid-modal ${ref('saveModal')}>
|
|
16
18
|
<h2 slot="top">Save Workspace</h2>
|
|
17
19
|
<div class="dialog-content">
|
|
@@ -35,13 +37,14 @@ export const WorkspaceManagerTemplate = html `
|
|
|
35
37
|
<rapid-label>
|
|
36
38
|
Description (optional, max ${WORKSPACE_DESCRIPTION_MAX} characters):
|
|
37
39
|
</rapid-label>
|
|
38
|
-
<
|
|
40
|
+
<rapid-text-area
|
|
39
41
|
class="save-field workspace-description-input"
|
|
42
|
+
maxlength="${WORKSPACE_DESCRIPTION_MAX}"
|
|
40
43
|
:value=${(x) => x.workspaceDescription}
|
|
41
44
|
@input=${(x, c) => x.updateWorkspaceDescription(c.event.target.value)}
|
|
42
45
|
placeholder="Add a description for this workspace"
|
|
43
46
|
rows="3"
|
|
44
|
-
></
|
|
47
|
+
></rapid-text-area>
|
|
45
48
|
${when((x) => x.workspaceName && x.isWorkspaceExisting(x.workspaceName), html `
|
|
46
49
|
<div class="warning-message">
|
|
47
50
|
<rapid-icon name="triangle-exclamation"></rapid-icon>
|
|
@@ -75,13 +78,14 @@ export const WorkspaceManagerTemplate = html `
|
|
|
75
78
|
`)}
|
|
76
79
|
</rapid-radio-group>
|
|
77
80
|
<rapid-label>Description (optional):</rapid-label>
|
|
78
|
-
<
|
|
79
|
-
class="save-field
|
|
81
|
+
<rapid-text-area
|
|
82
|
+
class="save-field"
|
|
80
83
|
:value=${(x) => x.workspaceDescription}
|
|
84
|
+
maxlength="${WORKSPACE_DESCRIPTION_MAX}"
|
|
81
85
|
@input=${(x, c) => x.updateWorkspaceDescription(c.event.target.value)}
|
|
82
86
|
placeholder="Add a description for this workspace"
|
|
83
87
|
rows="3"
|
|
84
|
-
></
|
|
88
|
+
></rapid-text-area>
|
|
85
89
|
<div class="warning-message">
|
|
86
90
|
<rapid-icon name="triangle-exclamation"></rapid-icon>
|
|
87
91
|
This will permanently replace the selected workspace. This action cannot be undone.
|
|
@@ -171,6 +175,8 @@ export const WorkspaceManagerTemplate = html `
|
|
|
171
175
|
<div class="workspace-dialog-boundary" ${ref('sharedWorkspaceDialogBoundary')}></div>
|
|
172
176
|
</div>
|
|
173
177
|
</rapid-modal>
|
|
178
|
+
`;
|
|
179
|
+
export const workspaceLoadModalPartial = html `
|
|
174
180
|
<rapid-modal ${ref('loadModal')}>
|
|
175
181
|
<h2 slot="top">Load Workspace</h2>
|
|
176
182
|
<div class="dialog-content">
|
|
@@ -180,12 +186,13 @@ export const WorkspaceManagerTemplate = html `
|
|
|
180
186
|
</div>
|
|
181
187
|
`)}
|
|
182
188
|
${when((x) => !x.applyingWorkspace, html `
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
189
|
+
${when(() => false, html `
|
|
190
|
+
<rapid-segmented-control value="${sync((x) => x.loadMode)}">
|
|
191
|
+
<rapid-segmented-item value="MY">My Workspaces</rapid-segmented-item>
|
|
192
|
+
|
|
186
193
|
<rapid-segmented-item value="SHARED">Shared Workspaces</rapid-segmented-item>
|
|
187
|
-
|
|
188
|
-
|
|
194
|
+
</rapid-segmented-control>
|
|
195
|
+
`)}
|
|
189
196
|
${when((x) => x.loadMode === 'MY', html `
|
|
190
197
|
<div class="workspace-list">
|
|
191
198
|
${repeat((x) => x.savedWorkspaces, html `
|
|
@@ -259,3 +266,6 @@ export const WorkspaceManagerTemplate = html `
|
|
|
259
266
|
<div class="workspace-dialog-boundary" ${ref('dialogBoundary')}></div>
|
|
260
267
|
</rapid-modal>
|
|
261
268
|
`;
|
|
269
|
+
export const WorkspaceManagerTemplate = html `
|
|
270
|
+
${workspaceHeaderPartial} ${workspaceSaveModalPartial} ${workspaceLoadModalPartial}
|
|
271
|
+
`;
|