@opengeoweb/workspace 4.20.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/README.md +29 -0
- package/index.d.ts +15 -0
- package/index.esm.css +36 -0
- package/index.esm.js +16266 -0
- package/index.umd.css +36 -0
- package/index.umd.js +16758 -0
- package/lib/Workspace.stories.d.ts +21 -0
- package/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.d.ts +12 -0
- package/lib/components/ComponentsLookUpWrapper/ComponentsLookUpWrapper.spec.d.ts +1 -0
- package/lib/components/ComponentsLookUpWrapper/index.d.ts +1 -0
- package/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.d.ts +17 -0
- package/lib/components/DefaultComponentsLookUp/DefaultComponentsLookUp.spec.d.ts +1 -0
- package/lib/components/DefaultComponentsLookUp/index.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.d.ts +23 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.spec.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialog.stories.d.ts +30 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.d.ts +6 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.spec.d.ts +1 -0
- package/lib/components/MapPresetsDialog/MapPresetsDialogConnect.stories.d.ts +7 -0
- package/lib/components/MapPresetsDialog/index.d.ts +2 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsForm.d.ts +18 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsForm.spec.d.ts +1 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.d.ts +14 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.spec.d.ts +1 -0
- package/lib/components/MapPresetsFormDialog/MapPresetsFormDialog.stories.d.ts +23 -0
- package/lib/components/MapPresetsFormDialog/index.d.ts +1 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.d.ts +16 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.spec.d.ts +1 -0
- package/lib/components/MapPresetsMenuItem/MapPresetsMenuItem.stories.d.ts +13 -0
- package/lib/components/MapPresetsMenuItem/index.d.ts +1 -0
- package/lib/components/Providers/Providers.d.ts +11 -0
- package/lib/components/Providers/ScreenManagerApiWrapper.d.ts +7 -0
- package/lib/components/Providers/ScreenManagerApiWrapper.spec.d.ts +1 -0
- package/lib/components/Providers/WorkspaceDndProvider.d.ts +11 -0
- package/lib/components/Providers/WorkspaceModuleProvider.d.ts +7 -0
- package/lib/components/Providers/WorkspaceModuleProvider.spec.d.ts +1 -0
- package/lib/components/Providers/index.d.ts +3 -0
- package/lib/components/ScreenManagerView/ScreenManagerControls.d.ts +9 -0
- package/lib/components/ScreenManagerView/ScreenManagerControls.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerTileConnect.d.ts +12 -0
- package/lib/components/ScreenManagerView/ScreenManagerTileConnect.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerView.d.ts +16 -0
- package/lib/components/ScreenManagerView/ScreenManagerView.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/ScreenManagerViewConnect.d.ts +7 -0
- package/lib/components/ScreenManagerView/ScreenManagerViewConnect.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/helpers.d.ts +3 -0
- package/lib/components/ScreenManagerView/helpers.spec.d.ts +1 -0
- package/lib/components/ScreenManagerView/index.d.ts +2 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.d.ts +9 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.spec.d.ts +1 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetail.stories.d.ts +8 -0
- package/lib/components/WorkspaceDetail/WorkspaceDetailError.stories.d.ts +9 -0
- package/lib/components/WorkspaceDetail/index.d.ts +1 -0
- package/lib/components/WorkspaceFilter/FilterChip.d.ts +9 -0
- package/lib/components/WorkspaceFilter/FilterChip.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/FilterList.d.ts +8 -0
- package/lib/components/WorkspaceFilter/FilterList.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/SearchField.d.ts +7 -0
- package/lib/components/WorkspaceFilter/SearchField.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.d.ts +7 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.spec.d.ts +1 -0
- package/lib/components/WorkspaceFilter/WorkspaceFilter.stories.d.ts +25 -0
- package/lib/components/WorkspaceFilter/types.d.ts +5 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.d.ts +9 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenu.stories.d.ts +19 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.d.ts +7 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButton.stories.d.ts +25 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.d.ts +6 -0
- package/lib/components/WorkspaceMenu/WorkspaceMenuButtonConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceMenu/index.d.ts +2 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +14 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.spec.d.ts +1 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptions.stories.d.ts +25 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.d.ts +7 -0
- package/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.d.ts +16 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsForm.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +15 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.spec.d.ts +1 -0
- package/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +35 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +11 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectList.stories.d.ts +19 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.d.ts +2 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListError.stories.d.ts +6 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +12 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.spec.d.ts +1 -0
- package/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.stories.d.ts +19 -0
- package/lib/components/WorkspaceTab/WorkspaceTab.d.ts +7 -0
- package/lib/components/WorkspaceTab/WorkspaceTab.spec.d.ts +1 -0
- package/lib/components/WorkspaceTab/WorkspaceTabConnect.d.ts +6 -0
- package/lib/components/WorkspaceTab/WorkspaceTabConnect.spec.d.ts +1 -0
- package/lib/components/WorkspaceTab/index.d.ts +1 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +6 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.spec.d.ts +1 -0
- package/lib/components/WorkspaceTopBar/WorkspaceTopBar.stories.d.ts +53 -0
- package/lib/components/WorkspaceTopBar/index.d.ts +1 -0
- package/lib/store/config.d.ts +14 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/store.d.ts +6 -0
- package/lib/store/viewPresets/index.d.ts +2 -0
- package/lib/store/viewPresets/reducer.d.ts +26 -0
- package/lib/store/viewPresets/reducer.spec.d.ts +1 -0
- package/lib/store/viewPresets/sagas.d.ts +15 -0
- package/lib/store/viewPresets/sagas.spec.d.ts +1 -0
- package/lib/store/viewPresets/selectors.d.ts +10 -0
- package/lib/store/viewPresets/selectors.spec.d.ts +1 -0
- package/lib/store/viewPresets/types.d.ts +84 -0
- package/lib/store/viewPresets/utils.d.ts +13 -0
- package/lib/store/viewPresets/utils.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/index.d.ts +2 -0
- package/lib/store/viewPresetsList/reducer.d.ts +5 -0
- package/lib/store/viewPresetsList/reducer.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/selectors.d.ts +4 -0
- package/lib/store/viewPresetsList/selectors.spec.d.ts +1 -0
- package/lib/store/viewPresetsList/types.d.ts +12 -0
- package/lib/store/workspace/reducer.d.ts +17 -0
- package/lib/store/workspace/reducer.spec.d.ts +1 -0
- package/lib/store/workspace/sagas.d.ts +12 -0
- package/lib/store/workspace/sagas.spec.d.ts +1 -0
- package/lib/store/workspace/selectors.d.ts +271 -0
- package/lib/store/workspace/selectors.spec.d.ts +1 -0
- package/lib/store/workspace/types.d.ts +141 -0
- package/lib/store/workspace/utils.d.ts +29 -0
- package/lib/store/workspace/utils.spec.d.ts +1 -0
- package/lib/store/workspaceList/index.d.ts +1 -0
- package/lib/store/workspaceList/reducer.d.ts +18 -0
- package/lib/store/workspaceList/reducer.spec.d.ts +1 -0
- package/lib/store/workspaceList/sagas.d.ts +6 -0
- package/lib/store/workspaceList/sagas.spec.d.ts +1 -0
- package/lib/store/workspaceList/selectors.d.ts +9 -0
- package/lib/store/workspaceList/selectors.spec.d.ts +1 -0
- package/lib/store/workspaceList/types.d.ts +60 -0
- package/lib/store/workspaceList/utils.d.ts +3 -0
- package/lib/store/workspaceList/utils.spec.d.ts +1 -0
- package/lib/storyUtils/ActionsExampleComponent.d.ts +6 -0
- package/lib/storyUtils/StoryWrapper.d.ts +10 -0
- package/lib/storyUtils/componentsLookUp.d.ts +11 -0
- package/lib/storyUtils/componentsLookUp.stories.d.ts +42 -0
- package/lib/storyshots/Storyshots.spec.d.ts +1 -0
- package/lib/utils/api.d.ts +28 -0
- package/lib/utils/api.spec.d.ts +1 -0
- package/lib/utils/fakeApi.d.ts +8 -0
- package/lib/utils/fakeApi.spec.d.ts +1 -0
- package/lib/utils/fakeApi.stories.d.ts +6 -0
- package/lib/utils/routes.d.ts +8 -0
- package/lib/utils/routes.spec.d.ts +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WorkspaceOptionsLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const WorkspaceOptionsDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PresetScope, WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
|
+
import { WorkspacePresetFormValues } from '../../store/workspaceList/types';
|
|
4
|
+
export declare const emptyWorkspacePreset: {
|
|
5
|
+
scope: PresetScope;
|
|
6
|
+
title: string;
|
|
7
|
+
abstract: string;
|
|
8
|
+
};
|
|
9
|
+
interface WorkspacePresetsFormProps {
|
|
10
|
+
error?: string;
|
|
11
|
+
onSubmit?: () => void;
|
|
12
|
+
action: WorkspacePresetAction;
|
|
13
|
+
formValues: WorkspacePresetFormValues;
|
|
14
|
+
}
|
|
15
|
+
declare const WorkspacePresetsForm: React.FC<WorkspacePresetsFormProps>;
|
|
16
|
+
export default WorkspacePresetsForm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
|
+
import { WorkspacePresetFormValues } from '../../store/workspaceList/types';
|
|
4
|
+
export declare const getDialogTitle: (action: WorkspacePresetAction) => string;
|
|
5
|
+
export declare const getConfirmLabel: (action: WorkspacePresetAction) => string;
|
|
6
|
+
export interface WorkspacePresetsFormDialogProps {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
action: WorkspacePresetAction;
|
|
9
|
+
presetId: string;
|
|
10
|
+
formValues: WorkspacePresetFormValues;
|
|
11
|
+
onSuccess: (action: WorkspacePresetAction, presetId: string, title: string) => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const WorkspacePresetsFormDialogWrapper: React.FC<WorkspacePresetsFormDialogProps>;
|
|
15
|
+
export default WorkspacePresetsFormDialogWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const FormDialogLightSaveAs: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const FormDialogDarkSaveAs: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
storyName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const FormDialogDarkDelete: {
|
|
21
|
+
(): React.ReactElement;
|
|
22
|
+
storyName: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const FormDialogLightDelete: {
|
|
25
|
+
(): React.ReactElement;
|
|
26
|
+
storyName: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const FormDialogLightDuplicate: {
|
|
29
|
+
(): React.ReactElement;
|
|
30
|
+
storyName: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const FormDialogDarkDuplicate: {
|
|
33
|
+
(): React.ReactElement;
|
|
34
|
+
storyName: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { WorkspacePresetListItem, WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
|
+
export declare const emptyWorkspaceListItem: WorkspacePresetListItem;
|
|
4
|
+
export interface WorkspaceSelectListProps {
|
|
5
|
+
workspacePresets: WorkspacePresetListItem[];
|
|
6
|
+
currentSelectedId: string;
|
|
7
|
+
onClickPreset: (id: string) => void;
|
|
8
|
+
onClickWorkspacePresetOption: (presetId: string, workspaceAction: WorkspacePresetAction) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const WorkspaceSelectList: React.FC<WorkspaceSelectListProps>;
|
|
11
|
+
export default WorkspaceSelectList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WorkspacePresetsSelectListLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const WorkspacePresetsSelectListDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
storyName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WorkspacePresetListItem, WorkspacePresetAction } from '../../store/workspace/types';
|
|
3
|
+
export declare const getPresetIcon: (preset: WorkspacePresetListItem) => React.ReactElement;
|
|
4
|
+
interface WorkspaceSelectListRowProps {
|
|
5
|
+
workspacePreset: WorkspacePresetListItem;
|
|
6
|
+
currentSelectedId: string;
|
|
7
|
+
onClickPreset: (id: string) => void;
|
|
8
|
+
onClickWorkspacePresetOption: (presetId: string, workspaceAction: WorkspacePresetAction) => void;
|
|
9
|
+
isOptionsMenuOpen?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const WorkspaceSelectListRow: React.FC<WorkspaceSelectListRowProps>;
|
|
12
|
+
export default WorkspaceSelectListRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WorkspacePresetsSelectListRowLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const WorkspacePresetsSelectListRowDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
storyName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WorkspaceTab } from './WorkspaceTab';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const WorkspaceTopBarLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
zeplinLink: {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const WorkspaceTopBarLightModified: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
parameters: {
|
|
19
|
+
zeplinLink: {
|
|
20
|
+
name: string;
|
|
21
|
+
link: string;
|
|
22
|
+
}[];
|
|
23
|
+
};
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const WorkspaceTopBarDark: {
|
|
27
|
+
(): React.ReactElement;
|
|
28
|
+
parameters: {
|
|
29
|
+
zeplinLink: {
|
|
30
|
+
name: string;
|
|
31
|
+
link: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
storyName: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const WorkspaceTopBarDarkModified: {
|
|
37
|
+
(): React.ReactElement;
|
|
38
|
+
parameters: {
|
|
39
|
+
zeplinLink: {
|
|
40
|
+
name: string;
|
|
41
|
+
link: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
storyName: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const WorkspaceTopBarLongText: {
|
|
47
|
+
(): React.ReactElement;
|
|
48
|
+
storyName: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const WorkspaceTopBarLongTextModified: {
|
|
51
|
+
(): React.ReactElement;
|
|
52
|
+
storyName: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WorkspaceTopBar } from './WorkspaceTopBar';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Egg } from '@redux-eggs/core';
|
|
2
|
+
import { Store } from '@reduxjs/toolkit';
|
|
3
|
+
import { WorkspaceState } from './workspace/types';
|
|
4
|
+
import { WorkspaceListState } from './workspaceList/types';
|
|
5
|
+
import { ViewPresetListState } from './viewPresetsList/types';
|
|
6
|
+
import { ViewPresetState } from './viewPresets/types';
|
|
7
|
+
export interface WorkspaceModuleStore {
|
|
8
|
+
workspace?: WorkspaceState;
|
|
9
|
+
workspaceList?: WorkspaceListState;
|
|
10
|
+
viewPresetsList?: ViewPresetListState;
|
|
11
|
+
viewPresets?: ViewPresetState;
|
|
12
|
+
}
|
|
13
|
+
declare const screenManagerModuleModuleConfig: Egg<Store<WorkspaceModuleStore>>;
|
|
14
|
+
export default screenManagerModuleModuleConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { store } from './store';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AppStore as CoreStore } from '@opengeoweb/core';
|
|
2
|
+
import type { WorkspaceModuleStore } from './config';
|
|
3
|
+
export interface AppStore extends WorkspaceModuleStore, CoreStore {
|
|
4
|
+
}
|
|
5
|
+
declare const store: import("@redux-eggs/core").EggExt & import("@redux-eggs/redux-toolkit").DefaultEnhancedStore;
|
|
6
|
+
export { store };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { mapTypes } from '@opengeoweb/core';
|
|
2
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { ErrorInitialViewPresetsPayload, ErrorViewPresetPayload, FetchedInitialViewPresetsPayload, FetchedViewPresetPayload, FetchedViewPresetsPayload, FetchViewPresetPayload, FetchViewPresetsPayload, ViewPresetEntity, ViewPresetState, OnSuccesViewPresetActionPayload, RegisterViewPresetPayload, SavedViewPresetPayload, SaveViewPresetPayload, SelectViewPresetPayload, SetActiveViewPresetIdPayload, SetViewPresetHasChangePayload, UnregisterViewPresetPayload } from './types';
|
|
4
|
+
export declare const viewPresetsAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetEntity>;
|
|
5
|
+
export declare const initialState: ViewPresetState;
|
|
6
|
+
export declare type SupportedOrigins = mapTypes.LayerActionOrigin | mapTypes.MapActionOrigin;
|
|
7
|
+
export declare const supportedChangeOrigins: SupportedOrigins[];
|
|
8
|
+
export declare const reducer: import("redux").Reducer<ViewPresetState, import("redux").AnyAction>;
|
|
9
|
+
export declare const viewPresetActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
10
|
+
fetchInitialViewPresets: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>) => void;
|
|
11
|
+
fetchedInitialViewPresets: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<FetchedInitialViewPresetsPayload>) => void;
|
|
12
|
+
errorInitialViewPresets: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<ErrorInitialViewPresetsPayload>) => void;
|
|
13
|
+
fetchViewPresets: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<FetchViewPresetsPayload>) => void;
|
|
14
|
+
fetchedViewPresets: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<FetchedViewPresetsPayload>) => void;
|
|
15
|
+
fetchViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<FetchViewPresetPayload>) => void;
|
|
16
|
+
fetchedViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<FetchedViewPresetPayload>) => void;
|
|
17
|
+
saveViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<SaveViewPresetPayload>) => void;
|
|
18
|
+
savedViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<SavedViewPresetPayload>) => void;
|
|
19
|
+
errorViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<ErrorViewPresetPayload>) => void;
|
|
20
|
+
setViewPresetHasChanges: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<SetViewPresetHasChangePayload>) => void;
|
|
21
|
+
setActiveViewPresetId: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<SetActiveViewPresetIdPayload>) => void;
|
|
22
|
+
selectViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<SelectViewPresetPayload>) => void;
|
|
23
|
+
onSuccessViewPresetAction: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<OnSuccesViewPresetActionPayload>) => void;
|
|
24
|
+
registerViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<RegisterViewPresetPayload>) => void;
|
|
25
|
+
unregisterViewPreset: (draft: import("immer/dist/internal").WritableDraft<ViewPresetState>, action: PayloadAction<UnregisterViewPresetPayload>) => void;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SagaIterator } from 'redux-saga';
|
|
2
|
+
import { viewPresetActions } from './reducer';
|
|
3
|
+
import { ErrorViewPresetPayload } from './types';
|
|
4
|
+
export declare const MESSAGE_FETCH_PRESET = "Preset could not be loaded: Select a different one or try again.";
|
|
5
|
+
export declare const MESSAGE_SAVE_PRESET = "Map preset not saved: Something wrong occurred during the process. Try again.";
|
|
6
|
+
export declare function fetchInitialViewPresetsSaga(): SagaIterator;
|
|
7
|
+
export declare function fetchViewPresetsSaga({ payload, }: ReturnType<typeof viewPresetActions.fetchViewPresets>): SagaIterator;
|
|
8
|
+
export declare function fetchViewPresetSaga({ payload, }: ReturnType<typeof viewPresetActions.fetchViewPreset>): SagaIterator;
|
|
9
|
+
export declare function saveViewPresetSaga({ payload, }: ReturnType<typeof viewPresetActions.saveViewPreset>): SagaIterator;
|
|
10
|
+
export declare function selectViewPresetSaga({ payload, }: ReturnType<typeof viewPresetActions.selectViewPreset>): SagaIterator;
|
|
11
|
+
export declare function onSuccessViewPresetActionSaga({ payload, }: ReturnType<typeof viewPresetActions.onSuccessViewPresetAction>): SagaIterator;
|
|
12
|
+
export declare function handleUISideEffectsSaga(action: ReturnType<typeof viewPresetActions.fetchViewPreset | typeof viewPresetActions.fetchedViewPreset | typeof viewPresetActions.saveViewPreset | typeof viewPresetActions.savedViewPreset | typeof viewPresetActions.errorViewPreset>): SagaIterator;
|
|
13
|
+
export declare const uiSideEffectActions: (import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ErrorViewPresetPayload, string> | import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<import("./types").FetchViewPresetPayload, string>)[];
|
|
14
|
+
export declare function rootSaga(): SagaIterator;
|
|
15
|
+
export default rootSaga;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AppStore } from '../store';
|
|
2
|
+
import { ViewPresetError, ViewPresetState } from './types';
|
|
3
|
+
export declare const getViewPresetsStore: (store: AppStore) => ViewPresetState;
|
|
4
|
+
export declare const getViewPresets: (state: AppStore) => import("./types").ViewPresetEntity[], getViewPresetById: (state: AppStore, id: import("@reduxjs/toolkit").EntityId) => import("./types").ViewPresetEntity;
|
|
5
|
+
export declare const getViewPresetsIsFetching: (store: AppStore, panelId: string) => boolean;
|
|
6
|
+
export declare const getViewPresetsError: (store: AppStore, panelId: string) => ViewPresetError | undefined;
|
|
7
|
+
export declare const getViewPresetDetailError: (store: AppStore, panelId: string) => string | undefined;
|
|
8
|
+
export declare const getViewPresetListError: (store: AppStore, panelId: string) => string | undefined;
|
|
9
|
+
export declare const getViewPresetHasChanges: (store: AppStore, panelId: string) => boolean | undefined;
|
|
10
|
+
export declare const getViewPresetActiveId: (store: AppStore, panelId: string) => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { InitialProps, SupportedComponentTypes } from '@opengeoweb/core';
|
|
2
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
3
|
+
import { ViewPresetListItem } from '../viewPresetsList/types';
|
|
4
|
+
export interface ViewPreset {
|
|
5
|
+
id?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
keywords: string;
|
|
8
|
+
componentType: SupportedComponentTypes;
|
|
9
|
+
initialProps?: InitialProps;
|
|
10
|
+
}
|
|
11
|
+
export declare enum ViewPresetType {
|
|
12
|
+
PRESET_DETAIL = "PRESET_DETAIL",
|
|
13
|
+
PRESET_LIST = "PRESET_LIST"
|
|
14
|
+
}
|
|
15
|
+
export declare type ViewPresetError = {
|
|
16
|
+
type: ViewPresetType;
|
|
17
|
+
message: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
export interface ViewPresetEntity {
|
|
20
|
+
panelId: string;
|
|
21
|
+
activeViewPresetId: string;
|
|
22
|
+
hasChanges: boolean;
|
|
23
|
+
isFetching: boolean;
|
|
24
|
+
error: ViewPresetError;
|
|
25
|
+
}
|
|
26
|
+
export declare type ViewPresetState = EntityState<ViewPresetEntity>;
|
|
27
|
+
export declare enum PresetAction {
|
|
28
|
+
OPEN = "Open",
|
|
29
|
+
DELETE = "Delete",
|
|
30
|
+
SAVE = "Save",
|
|
31
|
+
SAVE_AS = "Save as",
|
|
32
|
+
SHARE = "Share",
|
|
33
|
+
RENAME = "Rename"
|
|
34
|
+
}
|
|
35
|
+
interface ViewPresetAction {
|
|
36
|
+
panelId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface FetchedInitialViewPresetsPayload {
|
|
39
|
+
viewPresets: ViewPresetListItem[];
|
|
40
|
+
}
|
|
41
|
+
export interface ErrorInitialViewPresetsPayload {
|
|
42
|
+
error: ViewPresetError;
|
|
43
|
+
}
|
|
44
|
+
export declare type FetchViewPresetsPayload = ViewPresetAction;
|
|
45
|
+
export interface FetchedViewPresetsPayload extends ViewPresetAction {
|
|
46
|
+
viewPresets: ViewPresetListItem[];
|
|
47
|
+
}
|
|
48
|
+
export interface FetchViewPresetPayload extends ViewPresetAction {
|
|
49
|
+
viewPresetId: string;
|
|
50
|
+
}
|
|
51
|
+
export interface FetchedViewPresetPayload extends ViewPresetAction {
|
|
52
|
+
viewPresetId: string;
|
|
53
|
+
viewPreset: ViewPreset;
|
|
54
|
+
}
|
|
55
|
+
export interface SaveViewPresetPayload extends ViewPresetAction {
|
|
56
|
+
viewPresetId: string;
|
|
57
|
+
viewPreset: ViewPreset;
|
|
58
|
+
}
|
|
59
|
+
export interface SavedViewPresetPayload extends ViewPresetAction {
|
|
60
|
+
viewPresetId: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ErrorViewPresetPayload extends ViewPresetAction {
|
|
63
|
+
viewPresetId?: string;
|
|
64
|
+
error: ViewPresetError;
|
|
65
|
+
}
|
|
66
|
+
export interface SetViewPresetHasChangePayload extends ViewPresetAction {
|
|
67
|
+
hasChanges: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface SetActiveViewPresetIdPayload extends ViewPresetAction {
|
|
70
|
+
viewPresetId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface OnSuccesViewPresetActionPayload extends ViewPresetAction {
|
|
73
|
+
viewPresetId: string;
|
|
74
|
+
action: PresetAction;
|
|
75
|
+
title: string;
|
|
76
|
+
}
|
|
77
|
+
export interface SelectViewPresetPayload extends ViewPresetAction {
|
|
78
|
+
viewPresetId: string;
|
|
79
|
+
}
|
|
80
|
+
export interface RegisterViewPresetPayload extends ViewPresetAction {
|
|
81
|
+
viewPresetId: string;
|
|
82
|
+
}
|
|
83
|
+
export declare type UnregisterViewPresetPayload = ViewPresetAction;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PresetsApi } from '../../utils/api';
|
|
2
|
+
import { PresetAction } from './types';
|
|
3
|
+
export declare const getSnackbarMessage: (action: PresetAction, title: string) => string;
|
|
4
|
+
export declare const getPresetsApi: () => PresetsApi;
|
|
5
|
+
export declare const emptyMapViewPreset: {
|
|
6
|
+
componentType: "Map";
|
|
7
|
+
keywords: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
title: string;
|
|
10
|
+
initialProps: {
|
|
11
|
+
mapPreset: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ViewPresetListItem, ViewPresetListState } from './types';
|
|
2
|
+
export declare const viewPresetsListAdapter: import("@reduxjs/toolkit").EntityAdapter<ViewPresetListItem>;
|
|
3
|
+
export declare const initialState: ViewPresetListState;
|
|
4
|
+
export declare const reducer: import("redux").Reducer<ViewPresetListState, import("redux").AnyAction>;
|
|
5
|
+
export declare const viewPresetsListActions: import("@reduxjs/toolkit").CaseReducerActions<{}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AppStore } from '../store';
|
|
2
|
+
import { ViewPresetListState } from './types';
|
|
3
|
+
export declare const getViewPresetsListStore: (store: AppStore) => ViewPresetListState;
|
|
4
|
+
export declare const getViewPresetsList: (state: AppStore) => import("./types").ViewPresetListItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export declare type PresetScope = 'user' | 'system';
|
|
3
|
+
export declare type ViewPresetListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
date: string;
|
|
7
|
+
scope: PresetScope;
|
|
8
|
+
};
|
|
9
|
+
export declare type ViewPresetListState = EntityState<ViewPresetListItem>;
|
|
10
|
+
export interface LoadViewPresetsPayload {
|
|
11
|
+
viewPresets: ViewPresetListItem[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WorkspaceAddViewPayload, WorkspaceDeleteViewPayload, WorkspaceState, WorkspaceSetPresetPayload, WorkspaceSetPreventCloseViewPayload, WorkspaceUpdateViewPayload, WorkspaceUpdateViewsPayload, WorkspaceErrorWorkspacePayload, WorkspaceFetchedWorkspacePayload, WorkspaceFetchWorkspacePayload, WorkspaceFetchWorkspaceViewPresetPayload, WorkspaceSaveWorkspacePresetPayload } from './types';
|
|
2
|
+
export declare const initialState: WorkspaceState;
|
|
3
|
+
export declare const reducer: import("redux").Reducer<WorkspaceState, import("redux").AnyAction>;
|
|
4
|
+
export declare const workspaceActions: {
|
|
5
|
+
addWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceAddViewPayload, string>;
|
|
6
|
+
deleteWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceDeleteViewPayload, string>;
|
|
7
|
+
updateWorkspaceViews: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceUpdateViewsPayload, string>;
|
|
8
|
+
updateWorkspaceView: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceUpdateViewPayload, string>;
|
|
9
|
+
changePreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceSetPresetPayload, string>;
|
|
10
|
+
setPreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceSetPresetPayload, string>;
|
|
11
|
+
setPreventCloseView: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceSetPreventCloseViewPayload, string>;
|
|
12
|
+
fetchWorkspace: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceFetchWorkspacePayload, string>;
|
|
13
|
+
loadedWorkspace: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceFetchedWorkspacePayload, string>;
|
|
14
|
+
errorWorkspace: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceErrorWorkspacePayload, string>;
|
|
15
|
+
fetchWorkspaceViewPreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceFetchWorkspaceViewPresetPayload, string>;
|
|
16
|
+
saveWorkspacePreset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<WorkspaceSaveWorkspacePresetPayload, string>;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SagaIterator } from 'redux-saga';
|
|
2
|
+
import { mapActions } from '@opengeoweb/core';
|
|
3
|
+
import { workspaceActions } from './reducer';
|
|
4
|
+
export declare function changePresetSaga({ payload, }: ReturnType<typeof workspaceActions.changePreset>): SagaIterator;
|
|
5
|
+
export declare function updateViewsSaga(): SagaIterator;
|
|
6
|
+
export declare function fetchWorkspaceViewPresetSaga({ payload, }: ReturnType<typeof workspaceActions.fetchWorkspaceViewPreset>): SagaIterator;
|
|
7
|
+
export declare function fetchWorkspaceSaga(action: ReturnType<typeof workspaceActions.fetchWorkspace>): SagaIterator;
|
|
8
|
+
export declare function saveWorkspacePresetSaga(action: ReturnType<typeof workspaceActions.saveWorkspacePreset>): SagaIterator;
|
|
9
|
+
export declare function registerMapSaga({ payload, }: ReturnType<typeof mapActions.registerMap>): SagaIterator;
|
|
10
|
+
export declare function unregisterMapSaga({ payload, }: ReturnType<typeof mapActions.registerMap>): SagaIterator;
|
|
11
|
+
declare function workspaceSaga(): SagaIterator;
|
|
12
|
+
export default workspaceSaga;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|