@ws-ui/store 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/store.d.ts +6 -56
- package/dist/index.cjs.js +53 -52
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7294 -7197
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/thunks.d.ts +7 -0
- package/dist/modules/debugger/reducer.d.ts +19 -19
- package/dist/modules/debugger/thunks.d.ts +14 -0
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +6 -6
- package/dist/modules/explorer/thunks.d.ts +158 -7
- package/dist/modules/index.d.ts +4 -19
- package/dist/modules/modals/reducer.d.ts +3 -3
- package/dist/modules/modals/thunks.d.ts +10 -1
- package/dist/modules/modals/types.d.ts +4 -4
- package/dist/modules/model/reducer.d.ts +1 -1
- package/dist/modules/model/thunks.d.ts +39 -8
- package/dist/modules/roles/index.d.ts +1 -16
- package/dist/modules/roles/reducer.d.ts +4 -19
- package/dist/modules/roles/thunks.d.ts +19 -0
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +17 -17
- package/dist/modules/root/thunks.d.ts +106 -3
- package/dist/modules/settings/reducer.d.ts +3 -3
- package/dist/modules/settings/thunks.d.ts +16 -1
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +3 -3
- package/dist/modules/shared-css/thunks.d.ts +6 -0
- package/dist/modules/shared-datasources/reducer.d.ts +1 -1
- package/dist/modules/shared-datasources/thunks.d.ts +42 -1
- package/dist/modules/tabs/selectors.d.ts +8 -23
- package/dist/modules/webforms/datasources.adapter.d.ts +4 -19
- package/dist/modules/webforms/reducer.d.ts +5 -5
- package/dist/modules/webforms/thunks.d.ts +174 -9
- package/dist/provider.d.ts +2 -2
- package/dist/selectors/catalog.d.ts +30 -135
- package/dist/selectors/common.d.ts +16 -76
- package/dist/selectors/components.d.ts +5 -20
- package/dist/selectors/datasources.d.ts +25 -115
- package/dist/selectors/debugger.d.ts +88 -418
- package/dist/selectors/explorer.d.ts +146 -536
- package/dist/selectors/modals.d.ts +4 -19
- package/dist/selectors/roles.d.ts +56 -296
- package/dist/selectors/settings.d.ts +32 -152
- package/dist/selectors/states.d.ts +6 -21
- package/dist/selectors/styles.d.ts +26 -101
- package/dist/selectors/tabs.d.ts +8 -23
- package/dist/selectors/webforms.d.ts +45 -210
- package/dist/store.d.ts +42 -1
- package/package.json +16 -7
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IRolesState, TById, TRawData, TRolesDict } from './types';
|
|
3
|
-
declare const stateSlice: import("@reduxjs/toolkit").Slice<{
|
|
4
|
-
flags: {
|
|
5
|
-
touched?: boolean | undefined;
|
|
6
|
-
removed?: boolean | undefined;
|
|
7
|
-
pinned?: boolean | undefined;
|
|
8
|
-
loading?: boolean | undefined;
|
|
9
|
-
old?: boolean | undefined;
|
|
10
|
-
enabled?: boolean | undefined;
|
|
11
|
-
confirmed?: boolean | undefined;
|
|
12
|
-
};
|
|
13
|
-
date?: string | undefined;
|
|
14
|
-
privileges: TById;
|
|
15
|
-
roles: TRolesDict;
|
|
16
|
-
forceLogin?: boolean | undefined;
|
|
17
|
-
selectedTab: "roles" | "privileges";
|
|
18
|
-
}, {
|
|
3
|
+
declare const stateSlice: import("@reduxjs/toolkit").Slice<IRolesState, {
|
|
19
4
|
updatePrivileges: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<TById>) => void;
|
|
20
5
|
updateRoles: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<TRolesDict>) => void;
|
|
21
6
|
updateRolesAndPrivileges: (state: import("immer/dist/internal.js").WritableDraft<IRolesState>, action: PayloadAction<{
|
|
@@ -45,7 +30,7 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<{
|
|
|
45
30
|
selectedTab: "roles" | "privileges";
|
|
46
31
|
};
|
|
47
32
|
}, "roles">;
|
|
48
|
-
export declare const updatePrivileges: import("@reduxjs/toolkit").ActionCreatorWithPayload<TById,
|
|
33
|
+
export declare const updatePrivileges: import("@reduxjs/toolkit").ActionCreatorWithPayload<TById, "roles/updatePrivileges">, updateRoles: import("@reduxjs/toolkit").ActionCreatorWithPayload<TRolesDict, "roles/updateRoles">, setRolesContent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
34
|
content: TRawData;
|
|
50
35
|
date?: string | undefined;
|
|
51
36
|
flags?: Partial<{
|
|
@@ -57,8 +42,8 @@ export declare const updatePrivileges: import("@reduxjs/toolkit").ActionCreatorW
|
|
|
57
42
|
enabled: boolean;
|
|
58
43
|
confirmed: boolean;
|
|
59
44
|
}> | undefined;
|
|
60
|
-
},
|
|
45
|
+
}, "roles/setRolesContent">, toggleTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"roles" | "privileges", "roles/toggleTab">, toggleForceLogin: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "roles/toggleForceLogin">, updateRolesAndPrivileges: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
61
46
|
roles: TRolesDict;
|
|
62
47
|
privileges: TById;
|
|
63
|
-
},
|
|
48
|
+
}, "roles/updateRolesAndPrivileges">;
|
|
64
49
|
export default stateSlice;
|
|
@@ -5,6 +5,12 @@ import { ISanitized } from './types';
|
|
|
5
5
|
export declare const fetchRoles: import("@reduxjs/toolkit").AsyncThunk<IFileContentResponse<ISanitized>, void, {
|
|
6
6
|
state: AppState;
|
|
7
7
|
rejectValue: string;
|
|
8
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
9
|
+
extra?: unknown;
|
|
10
|
+
serializedErrorType?: unknown;
|
|
11
|
+
pendingMeta?: unknown;
|
|
12
|
+
fulfilledMeta?: unknown;
|
|
13
|
+
rejectedMeta?: unknown;
|
|
8
14
|
}>;
|
|
9
15
|
export declare const fetchRolesChanges: import("@reduxjs/toolkit").AsyncThunk<Partial<{
|
|
10
16
|
touched: boolean;
|
|
@@ -16,9 +22,22 @@ export declare const fetchRolesChanges: import("@reduxjs/toolkit").AsyncThunk<Pa
|
|
|
16
22
|
confirmed: boolean;
|
|
17
23
|
}>, void, {
|
|
18
24
|
state: AppState;
|
|
25
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
26
|
+
extra?: unknown;
|
|
27
|
+
rejectValue?: unknown;
|
|
28
|
+
serializedErrorType?: unknown;
|
|
29
|
+
pendingMeta?: unknown;
|
|
30
|
+
fulfilledMeta?: unknown;
|
|
31
|
+
rejectedMeta?: unknown;
|
|
19
32
|
}>;
|
|
20
33
|
export declare const isRolesOutdated: (date: string | undefined) => Promise<boolean>;
|
|
21
34
|
export declare const saveRoles: import("@reduxjs/toolkit").AsyncThunk<ISetFileContentResponse, ISanitized, {
|
|
22
35
|
state: AppState;
|
|
23
36
|
rejectValue: string | ITabFlags;
|
|
37
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
38
|
+
extra?: unknown;
|
|
39
|
+
serializedErrorType?: unknown;
|
|
40
|
+
pendingMeta?: unknown;
|
|
41
|
+
fulfilledMeta?: unknown;
|
|
42
|
+
rejectedMeta?: unknown;
|
|
24
43
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("redux").Reducer<import("
|
|
1
|
+
declare const _default: import("redux").Reducer<import("./types").IRootState>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export * from './reducer';
|
|
4
4
|
export * from './thunks';
|
|
@@ -2,7 +2,7 @@ import { PayloadAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
3
3
|
import { ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
4
4
|
import { IRootState, TActionAddDataSource, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveWebformState, TActionSetDataSources } from './types';
|
|
5
|
-
export declare const stateSlice: import("@reduxjs/toolkit").Slice<
|
|
5
|
+
export declare const stateSlice: import("@reduxjs/toolkit").Slice<IRootState, {
|
|
6
6
|
setPanelState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<Partial<ITab['view']['panel']> & {
|
|
7
7
|
path: string;
|
|
8
8
|
}>): void;
|
|
@@ -65,17 +65,17 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
65
65
|
source: import("@ws-ui/shared").ISource;
|
|
66
66
|
editor: import("@ws-ui/shared").IEditor;
|
|
67
67
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
68
|
-
}>>[],
|
|
68
|
+
}>>[], "root/setTabs">, closeTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "root/closeTab">, setContent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
69
69
|
path: string;
|
|
70
70
|
content: any;
|
|
71
71
|
contentPath?: string | undefined;
|
|
72
|
-
},
|
|
72
|
+
}, "root/setContent">, setTabFlags: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
73
73
|
path: string;
|
|
74
74
|
flags: ITabFlags;
|
|
75
|
-
},
|
|
75
|
+
}, "root/setTabFlags">, setTabsFlags: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
76
76
|
tabs: string[];
|
|
77
77
|
flags: ITabFlags;
|
|
78
|
-
},
|
|
78
|
+
}, "root/setTabsFlags">, setTabExtra: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
79
79
|
path: string;
|
|
80
80
|
extra: ITabExtra;
|
|
81
81
|
flags?: Partial<{
|
|
@@ -87,16 +87,16 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
87
87
|
enabled: boolean;
|
|
88
88
|
confirmed: boolean;
|
|
89
89
|
}> | undefined;
|
|
90
|
-
},
|
|
90
|
+
}, "root/setTabExtra">, closeAllTabs: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"root/closeAllTabs">, addDataSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
91
91
|
datasourceDef: datasources.ICreateDataSource;
|
|
92
92
|
path: string;
|
|
93
|
-
},
|
|
93
|
+
}, "root/addDataSource">, closeRightTabs: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "root/closeRightTabs">, closeOthers: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "root/closeOthers">, closeLeftTabs: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "root/closeLeftTabs">, closeSavedTabs: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"root/closeSavedTabs">, setDataSources: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
94
94
|
datasourceArr: datasources.ICreateDataSource[];
|
|
95
95
|
path: string;
|
|
96
|
-
},
|
|
96
|
+
}, "root/setDataSources">, removeDataSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
97
97
|
path: string;
|
|
98
98
|
datasourceID: string;
|
|
99
|
-
},
|
|
99
|
+
}, "root/removeDataSource">, confirmTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "root/confirmTab">, selectTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "root/selectTab">, selectTabByReference: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITab<any, Partial<{
|
|
100
100
|
initialLineInfo: {
|
|
101
101
|
line: number;
|
|
102
102
|
offset?: number | undefined;
|
|
@@ -113,7 +113,7 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
113
113
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
114
114
|
}>> & {
|
|
115
115
|
isNew?: boolean | undefined;
|
|
116
|
-
},
|
|
116
|
+
}, "root/selectTabByReference">, openTabUnselected: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITab<any, Partial<{
|
|
117
117
|
initialLineInfo: {
|
|
118
118
|
line: number;
|
|
119
119
|
offset?: number | undefined;
|
|
@@ -128,10 +128,10 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
128
128
|
source: import("@ws-ui/shared").ISource;
|
|
129
129
|
editor: import("@ws-ui/shared").IEditor;
|
|
130
130
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
131
|
-
}>>,
|
|
131
|
+
}>>, "root/openTabUnselected">, addWebFormStyles: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
132
132
|
path: string;
|
|
133
133
|
styles: IWebFormStyleClass[];
|
|
134
|
-
},
|
|
134
|
+
}, "root/addWebFormStyles">, changeTabEditor: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITab<any, Partial<{
|
|
135
135
|
initialLineInfo: {
|
|
136
136
|
line: number;
|
|
137
137
|
offset?: number | undefined;
|
|
@@ -146,21 +146,21 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
146
146
|
source: import("@ws-ui/shared").ISource;
|
|
147
147
|
editor: import("@ws-ui/shared").IEditor;
|
|
148
148
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
149
|
-
}>>,
|
|
149
|
+
}>>, "root/changeTabEditor">, openSettingsTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"root/openSettingsTab">, setPanelState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<{
|
|
150
150
|
isOpen: boolean;
|
|
151
151
|
type: string;
|
|
152
152
|
current: string;
|
|
153
153
|
lastSelected?: string | undefined;
|
|
154
154
|
}> & {
|
|
155
155
|
path: string;
|
|
156
|
-
},
|
|
156
|
+
}, "root/setPanelState">, addWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
157
157
|
stateDef: WebformState;
|
|
158
158
|
path: string;
|
|
159
|
-
},
|
|
159
|
+
}, "root/addWebformState">, editWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
160
160
|
path: string;
|
|
161
161
|
state: WebformState;
|
|
162
|
-
},
|
|
162
|
+
}, "root/editWebformState">, removeWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
163
163
|
path: string;
|
|
164
164
|
id: string;
|
|
165
|
-
},
|
|
165
|
+
}, "root/removeWebformState">;
|
|
166
166
|
export default stateSlice;
|
|
@@ -7,7 +7,16 @@ export declare const fetchFiles: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
7
7
|
type: FileFolderTypeWithContent;
|
|
8
8
|
date: string;
|
|
9
9
|
path: string;
|
|
10
|
-
}[], void, {
|
|
10
|
+
}[], void, {
|
|
11
|
+
state?: unknown;
|
|
12
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
13
|
+
extra?: unknown;
|
|
14
|
+
rejectValue?: unknown;
|
|
15
|
+
serializedErrorType?: unknown;
|
|
16
|
+
pendingMeta?: unknown;
|
|
17
|
+
fulfilledMeta?: unknown;
|
|
18
|
+
rejectedMeta?: unknown;
|
|
19
|
+
}>;
|
|
11
20
|
/**
|
|
12
21
|
* handles the rename of a datasource.
|
|
13
22
|
*
|
|
@@ -18,34 +27,101 @@ export declare const renameDataSource: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
18
27
|
path: string | undefined;
|
|
19
28
|
namespace: string;
|
|
20
29
|
datasources: datasources.ICreateDataSource[];
|
|
21
|
-
} | null, TActionRenameDataSource, {
|
|
30
|
+
} | null, TActionRenameDataSource, {
|
|
31
|
+
state?: unknown;
|
|
32
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
39
|
+
}>;
|
|
22
40
|
export declare const editDataSource: import("@reduxjs/toolkit").AsyncThunk<(datasources.ICreateDataSourceScalar | datasources.ICreateDataSourceEntity | datasources.ICreateDataSourceEntitySelection)[], {
|
|
23
41
|
path: string;
|
|
24
42
|
datasourceId: string;
|
|
25
43
|
namespace?: string | undefined;
|
|
26
44
|
propertyKey: string;
|
|
27
45
|
value: any;
|
|
28
|
-
}, {
|
|
46
|
+
}, {
|
|
47
|
+
state?: unknown;
|
|
48
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
49
|
+
extra?: unknown;
|
|
50
|
+
rejectValue?: unknown;
|
|
51
|
+
serializedErrorType?: unknown;
|
|
52
|
+
pendingMeta?: unknown;
|
|
53
|
+
fulfilledMeta?: unknown;
|
|
54
|
+
rejectedMeta?: unknown;
|
|
55
|
+
}>;
|
|
29
56
|
export declare const fetchChanges: import("@reduxjs/toolkit").AsyncThunk<IFileInfoResponse, void, {
|
|
30
57
|
state: AppState;
|
|
58
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
59
|
+
extra?: unknown;
|
|
60
|
+
rejectValue?: unknown;
|
|
61
|
+
serializedErrorType?: unknown;
|
|
62
|
+
pendingMeta?: unknown;
|
|
63
|
+
fulfilledMeta?: unknown;
|
|
64
|
+
rejectedMeta?: unknown;
|
|
31
65
|
}>;
|
|
32
66
|
export declare const saveAll: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
33
67
|
state: AppState;
|
|
68
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
69
|
+
extra?: unknown;
|
|
70
|
+
rejectValue?: unknown;
|
|
71
|
+
serializedErrorType?: unknown;
|
|
72
|
+
pendingMeta?: unknown;
|
|
73
|
+
fulfilledMeta?: unknown;
|
|
74
|
+
rejectedMeta?: unknown;
|
|
34
75
|
}>;
|
|
35
76
|
export declare const tryCloseTab: import("@reduxjs/toolkit").AsyncThunk<boolean, string, {
|
|
36
77
|
state: AppState;
|
|
78
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
79
|
+
extra?: unknown;
|
|
80
|
+
rejectValue?: unknown;
|
|
81
|
+
serializedErrorType?: unknown;
|
|
82
|
+
pendingMeta?: unknown;
|
|
83
|
+
fulfilledMeta?: unknown;
|
|
84
|
+
rejectedMeta?: unknown;
|
|
37
85
|
}>;
|
|
38
86
|
export declare const tryCloseOtherTabs: import("@reduxjs/toolkit").AsyncThunk<void, string, {
|
|
39
87
|
state: AppState;
|
|
88
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
89
|
+
extra?: unknown;
|
|
90
|
+
rejectValue?: unknown;
|
|
91
|
+
serializedErrorType?: unknown;
|
|
92
|
+
pendingMeta?: unknown;
|
|
93
|
+
fulfilledMeta?: unknown;
|
|
94
|
+
rejectedMeta?: unknown;
|
|
40
95
|
}>;
|
|
41
96
|
export declare const tryCloseAllTabs: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
42
97
|
state: AppState;
|
|
98
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
99
|
+
extra?: unknown;
|
|
100
|
+
rejectValue?: unknown;
|
|
101
|
+
serializedErrorType?: unknown;
|
|
102
|
+
pendingMeta?: unknown;
|
|
103
|
+
fulfilledMeta?: unknown;
|
|
104
|
+
rejectedMeta?: unknown;
|
|
43
105
|
}>;
|
|
44
106
|
export declare const tryCloseRightTabs: import("@reduxjs/toolkit").AsyncThunk<void, number, {
|
|
45
107
|
state: AppState;
|
|
108
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
109
|
+
extra?: unknown;
|
|
110
|
+
rejectValue?: unknown;
|
|
111
|
+
serializedErrorType?: unknown;
|
|
112
|
+
pendingMeta?: unknown;
|
|
113
|
+
fulfilledMeta?: unknown;
|
|
114
|
+
rejectedMeta?: unknown;
|
|
46
115
|
}>;
|
|
47
116
|
export declare const tryCloseLeftTabs: import("@reduxjs/toolkit").AsyncThunk<void, number, {
|
|
48
117
|
state: AppState;
|
|
118
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
119
|
+
extra?: unknown;
|
|
120
|
+
rejectValue?: unknown;
|
|
121
|
+
serializedErrorType?: unknown;
|
|
122
|
+
pendingMeta?: unknown;
|
|
123
|
+
fulfilledMeta?: unknown;
|
|
124
|
+
rejectedMeta?: unknown;
|
|
49
125
|
}>;
|
|
50
126
|
export declare const reloadTab: import("@reduxjs/toolkit").AsyncThunk<void | INodeInfo, ITab<any, Partial<{
|
|
51
127
|
initialLineInfo: {
|
|
@@ -64,6 +140,13 @@ export declare const reloadTab: import("@reduxjs/toolkit").AsyncThunk<void | INo
|
|
|
64
140
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
65
141
|
}>>, {
|
|
66
142
|
state: AppState;
|
|
143
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
144
|
+
extra?: unknown;
|
|
145
|
+
rejectValue?: unknown;
|
|
146
|
+
serializedErrorType?: unknown;
|
|
147
|
+
pendingMeta?: unknown;
|
|
148
|
+
fulfilledMeta?: unknown;
|
|
149
|
+
rejectedMeta?: unknown;
|
|
67
150
|
}>;
|
|
68
151
|
type SaveTabReturnType = ITab & {
|
|
69
152
|
errors: IMultilineMessage[];
|
|
@@ -72,6 +155,13 @@ export declare const saveTab: import("@reduxjs/toolkit").AsyncThunk<SaveTabRetur
|
|
|
72
155
|
tab: ITab;
|
|
73
156
|
}, {
|
|
74
157
|
state: AppState;
|
|
158
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
159
|
+
extra?: unknown;
|
|
160
|
+
rejectValue?: unknown;
|
|
161
|
+
serializedErrorType?: unknown;
|
|
162
|
+
pendingMeta?: unknown;
|
|
163
|
+
fulfilledMeta?: unknown;
|
|
164
|
+
rejectedMeta?: unknown;
|
|
75
165
|
}>;
|
|
76
166
|
export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<any, Partial<{
|
|
77
167
|
initialLineInfo: {
|
|
@@ -94,6 +184,13 @@ export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab
|
|
|
94
184
|
dataclass?: string | undefined;
|
|
95
185
|
}, {
|
|
96
186
|
state: AppState;
|
|
187
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
188
|
+
extra?: unknown;
|
|
189
|
+
rejectValue?: unknown;
|
|
190
|
+
serializedErrorType?: unknown;
|
|
191
|
+
pendingMeta?: unknown;
|
|
192
|
+
fulfilledMeta?: unknown;
|
|
193
|
+
rejectedMeta?: unknown;
|
|
97
194
|
}>;
|
|
98
195
|
export declare const openRoles: import("@reduxjs/toolkit").AsyncThunk<void | ITab<any, Partial<{
|
|
99
196
|
initialLineInfo: {
|
|
@@ -113,5 +210,11 @@ export declare const openRoles: import("@reduxjs/toolkit").AsyncThunk<void | ITa
|
|
|
113
210
|
}>>, {}, {
|
|
114
211
|
state: AppState;
|
|
115
212
|
rejectValue: string;
|
|
213
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
214
|
+
extra?: unknown;
|
|
215
|
+
serializedErrorType?: unknown;
|
|
216
|
+
pendingMeta?: unknown;
|
|
217
|
+
fulfilledMeta?: unknown;
|
|
218
|
+
rejectedMeta?: unknown;
|
|
116
219
|
}>;
|
|
117
220
|
export {};
|
|
@@ -33,13 +33,13 @@ export declare const setSetting: import("@reduxjs/toolkit").ActionCreatorWithPay
|
|
|
33
33
|
path: TSettingPath;
|
|
34
34
|
settingsKey: string;
|
|
35
35
|
value: any;
|
|
36
|
-
},
|
|
36
|
+
}, "settings/setSetting">, setSettings: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
path: TSettingPath;
|
|
38
38
|
value: any;
|
|
39
|
-
},
|
|
39
|
+
}, "settings/setSettings">, setSettingsAsText: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
40
|
path: TSettingPath;
|
|
41
41
|
settings: {
|
|
42
42
|
[key: string]: any;
|
|
43
43
|
};
|
|
44
|
-
},
|
|
44
|
+
}, "settings/setSettingsAsText">;
|
|
45
45
|
export default stateSlice;
|
|
@@ -3,5 +3,20 @@ import { AppState } from '..';
|
|
|
3
3
|
export declare const fetchSettings: import("@reduxjs/toolkit").AsyncThunk<INodeInfo, void, {
|
|
4
4
|
state: AppState;
|
|
5
5
|
rejectValue: string;
|
|
6
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
7
|
+
extra?: unknown;
|
|
8
|
+
serializedErrorType?: unknown;
|
|
9
|
+
pendingMeta?: unknown;
|
|
10
|
+
fulfilledMeta?: unknown;
|
|
11
|
+
rejectedMeta?: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const fetchAppSettings: import("@reduxjs/toolkit").AsyncThunk<import("@ws-ui/shared").IAppSettingsResponse, void, {
|
|
14
|
+
state?: unknown;
|
|
15
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
16
|
+
extra?: unknown;
|
|
17
|
+
rejectValue?: unknown;
|
|
18
|
+
serializedErrorType?: unknown;
|
|
19
|
+
pendingMeta?: unknown;
|
|
20
|
+
fulfilledMeta?: unknown;
|
|
21
|
+
rejectedMeta?: unknown;
|
|
6
22
|
}>;
|
|
7
|
-
export declare const fetchAppSettings: import("@reduxjs/toolkit").AsyncThunk<import("@ws-ui/shared").IAppSettingsResponse, void, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("redux").Reducer<import("
|
|
1
|
+
declare const _default: import("redux").Reducer<import("./reducer").ISharedCSSState>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export * from './reducer';
|
|
4
4
|
export * from './thunks';
|
|
@@ -5,7 +5,7 @@ export type ISharedCSSState = {
|
|
|
5
5
|
styles: IWebFormStyleClass[];
|
|
6
6
|
error?: string;
|
|
7
7
|
};
|
|
8
|
-
declare const stateSlice: import("@reduxjs/toolkit").Slice<
|
|
8
|
+
declare const stateSlice: import("@reduxjs/toolkit").Slice<ISharedCSSState, {
|
|
9
9
|
updateSharedCss: (state: import("immer/dist/internal.js").WritableDraft<ISharedCSSState>, action: PayloadAction<{
|
|
10
10
|
classes: IWebFormStyleClass[];
|
|
11
11
|
}>) => import("immer/dist/internal.js").WritableDraft<ISharedCSSState>;
|
|
@@ -15,7 +15,7 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/in
|
|
|
15
15
|
}, "shared-css">;
|
|
16
16
|
export declare const updateSharedCss: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
17
17
|
classes: IWebFormStyleClass[];
|
|
18
|
-
},
|
|
18
|
+
}, "shared-css/updateSharedCss">, initSharedCss: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
19
|
classes: IWebFormStyleClass[];
|
|
20
|
-
},
|
|
20
|
+
}, "shared-css/initSharedCss">;
|
|
21
21
|
export default stateSlice;
|
|
@@ -3,4 +3,10 @@ import { AppState } from '..';
|
|
|
3
3
|
export declare const fetchSharedCss: import("@reduxjs/toolkit").AsyncThunk<IWebFormStyleClass[], void, {
|
|
4
4
|
state: AppState;
|
|
5
5
|
rejectValue: string;
|
|
6
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
7
|
+
extra?: unknown;
|
|
8
|
+
serializedErrorType?: unknown;
|
|
9
|
+
pendingMeta?: unknown;
|
|
10
|
+
fulfilledMeta?: unknown;
|
|
11
|
+
rejectedMeta?: unknown;
|
|
6
12
|
}>;
|
|
@@ -14,5 +14,5 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<ISharedDatasourcesSta
|
|
|
14
14
|
}, "shared-datasources">;
|
|
15
15
|
export declare const addEmptyNamespace: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
16
16
|
name: string;
|
|
17
|
-
},
|
|
17
|
+
}, "shared-datasources/addEmptyNamespace">;
|
|
18
18
|
export default stateSlice;
|
|
@@ -3,24 +3,58 @@ import { ISharedDatasourcesResponse } from '@ws-ui/shared';
|
|
|
3
3
|
import { AppState } from '../../modules';
|
|
4
4
|
export declare const fetchSharedDatasources: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, void, {
|
|
5
5
|
rejectValue: string;
|
|
6
|
+
state?: unknown;
|
|
7
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
6
13
|
}>;
|
|
7
14
|
export declare const addSharedSource: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, datasources.ICreateDataSource, {
|
|
8
15
|
rejectValue: string;
|
|
9
16
|
state: AppState;
|
|
17
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
18
|
+
extra?: unknown;
|
|
19
|
+
serializedErrorType?: unknown;
|
|
20
|
+
pendingMeta?: unknown;
|
|
21
|
+
fulfilledMeta?: unknown;
|
|
22
|
+
rejectedMeta?: unknown;
|
|
10
23
|
}>;
|
|
11
24
|
export declare const editSharedSource: import("@reduxjs/toolkit").AsyncThunk<{
|
|
12
25
|
[key: string]: datasources.ICreateDataSource[];
|
|
13
|
-
}, datasources.ICreateDataSource, {
|
|
26
|
+
}, datasources.ICreateDataSource, {
|
|
27
|
+
state?: unknown;
|
|
28
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
29
|
+
extra?: unknown;
|
|
30
|
+
rejectValue?: unknown;
|
|
31
|
+
serializedErrorType?: unknown;
|
|
32
|
+
pendingMeta?: unknown;
|
|
33
|
+
fulfilledMeta?: unknown;
|
|
34
|
+
rejectedMeta?: unknown;
|
|
35
|
+
}>;
|
|
14
36
|
export declare const deleteSharedSource: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, {
|
|
15
37
|
id: string;
|
|
16
38
|
namespace: string;
|
|
17
39
|
}, {
|
|
18
40
|
rejectValue: string;
|
|
19
41
|
state: AppState;
|
|
42
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
serializedErrorType?: unknown;
|
|
45
|
+
pendingMeta?: unknown;
|
|
46
|
+
fulfilledMeta?: unknown;
|
|
47
|
+
rejectedMeta?: unknown;
|
|
20
48
|
}>;
|
|
21
49
|
export declare const updateSharedDatasources: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, datasources.ICreateDataSource[], {
|
|
22
50
|
rejectValue: string;
|
|
23
51
|
state: AppState;
|
|
52
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
53
|
+
extra?: unknown;
|
|
54
|
+
serializedErrorType?: unknown;
|
|
55
|
+
pendingMeta?: unknown;
|
|
56
|
+
fulfilledMeta?: unknown;
|
|
57
|
+
rejectedMeta?: unknown;
|
|
24
58
|
}>;
|
|
25
59
|
export declare const setDatasourceEvents: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
26
60
|
tabPath: string;
|
|
@@ -29,4 +63,11 @@ export declare const setDatasourceEvents: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
29
63
|
events: webforms.WEvent[];
|
|
30
64
|
}, {
|
|
31
65
|
state: AppState;
|
|
66
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
67
|
+
extra?: unknown;
|
|
68
|
+
rejectValue?: unknown;
|
|
69
|
+
serializedErrorType?: unknown;
|
|
70
|
+
pendingMeta?: unknown;
|
|
71
|
+
fulfilledMeta?: unknown;
|
|
72
|
+
rejectedMeta?: unknown;
|
|
32
73
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
2
|
export declare const selectPanelByPath: (path: string) => ((state: import("redux").EmptyObject & {
|
|
3
|
-
root: import("
|
|
4
|
-
explorer: import("
|
|
3
|
+
root: import("..").IRootState;
|
|
4
|
+
explorer: import("..").ITreeItem[];
|
|
5
5
|
debugger: import("..").IDebuggerState;
|
|
6
6
|
settings: import("..").ISettingsState;
|
|
7
7
|
catalog: {
|
|
@@ -13,33 +13,18 @@ export declare const selectPanelByPath: (path: string) => ((state: import("redux
|
|
|
13
13
|
state: "error";
|
|
14
14
|
error: string;
|
|
15
15
|
};
|
|
16
|
-
roles:
|
|
17
|
-
flags: {
|
|
18
|
-
touched?: boolean | undefined;
|
|
19
|
-
removed?: boolean | undefined;
|
|
20
|
-
pinned?: boolean | undefined;
|
|
21
|
-
loading?: boolean | undefined;
|
|
22
|
-
old?: boolean | undefined;
|
|
23
|
-
enabled?: boolean | undefined;
|
|
24
|
-
confirmed?: boolean | undefined;
|
|
25
|
-
};
|
|
26
|
-
date?: string | undefined;
|
|
27
|
-
privileges: import("..").TById;
|
|
28
|
-
roles: import("..").TRolesDict;
|
|
29
|
-
forceLogin?: boolean | undefined;
|
|
30
|
-
selectedTab: "roles" | "privileges";
|
|
31
|
-
};
|
|
16
|
+
roles: import("..").IRolesState;
|
|
32
17
|
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
33
18
|
webforms: import("..").IWebformEditorState;
|
|
34
19
|
modals: import("..").IModalsState;
|
|
35
|
-
sharedCSS: import("
|
|
20
|
+
sharedCSS: import("..").ISharedCSSState;
|
|
36
21
|
model: import("..").IModelState;
|
|
37
|
-
}) =>
|
|
22
|
+
}) => {
|
|
38
23
|
isOpen: boolean;
|
|
39
24
|
type: string;
|
|
40
25
|
current: string;
|
|
41
26
|
lastSelected?: string | undefined;
|
|
42
|
-
}
|
|
27
|
+
} | undefined) & import("reselect").OutputSelectorFields<(args_0: import("@ws-ui/shared").ITab<any, Partial<{
|
|
43
28
|
initialLineInfo: {
|
|
44
29
|
line: number;
|
|
45
30
|
offset?: number | undefined;
|
|
@@ -54,12 +39,12 @@ export declare const selectPanelByPath: (path: string) => ((state: import("redux
|
|
|
54
39
|
source: import("@ws-ui/shared").ISource;
|
|
55
40
|
editor: import("@ws-ui/shared").IEditor;
|
|
56
41
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
57
|
-
}
|
|
42
|
+
}>>[]) => {
|
|
58
43
|
isOpen: boolean;
|
|
59
44
|
type: string;
|
|
60
45
|
current: string;
|
|
61
46
|
lastSelected?: string | undefined;
|
|
62
|
-
}
|
|
47
|
+
} | undefined, {
|
|
63
48
|
clearCache: () => void;
|
|
64
49
|
}> & {
|
|
65
50
|
clearCache: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
2
|
/// <reference types="lodash" />
|
|
3
3
|
export declare const listDsNamespaces: import("lodash").CurriedFunction2<string, import("redux").CombinedState<{
|
|
4
|
-
root: import("
|
|
5
|
-
explorer: import("
|
|
4
|
+
root: import("..").IRootState;
|
|
5
|
+
explorer: import("..").ITreeItem[];
|
|
6
6
|
debugger: import("..").IDebuggerState;
|
|
7
7
|
settings: import("..").ISettingsState;
|
|
8
8
|
catalog: {
|
|
@@ -14,26 +14,11 @@ export declare const listDsNamespaces: import("lodash").CurriedFunction2<string,
|
|
|
14
14
|
state: "error";
|
|
15
15
|
error: string;
|
|
16
16
|
};
|
|
17
|
-
roles:
|
|
18
|
-
flags: {
|
|
19
|
-
touched?: boolean | undefined;
|
|
20
|
-
removed?: boolean | undefined;
|
|
21
|
-
pinned?: boolean | undefined;
|
|
22
|
-
loading?: boolean | undefined;
|
|
23
|
-
old?: boolean | undefined;
|
|
24
|
-
enabled?: boolean | undefined;
|
|
25
|
-
confirmed?: boolean | undefined;
|
|
26
|
-
};
|
|
27
|
-
date?: string | undefined;
|
|
28
|
-
privileges: import("..").TById;
|
|
29
|
-
roles: import("..").TRolesDict;
|
|
30
|
-
forceLogin?: boolean | undefined;
|
|
31
|
-
selectedTab: "roles" | "privileges";
|
|
32
|
-
};
|
|
17
|
+
roles: import("..").IRolesState;
|
|
33
18
|
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
34
19
|
webforms: import("./types").IWebformEditorState;
|
|
35
20
|
modals: import("..").IModalsState;
|
|
36
|
-
sharedCSS: import("
|
|
21
|
+
sharedCSS: import("..").ISharedCSSState;
|
|
37
22
|
model: import("..").IModelState;
|
|
38
23
|
}>, {
|
|
39
24
|
[x: string]: datasources.ICreateDataSource[];
|
|
@@ -39,15 +39,15 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<IWebformEditorState,
|
|
|
39
39
|
}, "webforms">;
|
|
40
40
|
export declare const toggleInspector: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
41
|
type: "css" | "datasource";
|
|
42
|
-
},
|
|
42
|
+
}, "webforms/toggleInspector">, inspect: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").TToggleInspectorPayload, "webforms/inspect">, addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<IComponentTemplate, "webforms/addComponent">, editComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
43
43
|
id: string;
|
|
44
44
|
changes: Partial<IComponentTemplate>;
|
|
45
|
-
},
|
|
45
|
+
}, "webforms/editComponent">, removeComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "webforms/removeComponent">, setSelectedGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
46
46
|
selectedGroup: string;
|
|
47
|
-
},
|
|
47
|
+
}, "webforms/setSelectedGroup">, setTemplatesData: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITemplatedGroup[], "webforms/setTemplatesData">, setTemplateData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
48
48
|
group: string;
|
|
49
49
|
components: ITemplatedGroupItem[];
|
|
50
|
-
},
|
|
50
|
+
}, "webforms/setTemplateData">, setDatasourcesTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | number, "webforms/setDatasourcesTheme">, setWebformsFlag: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
51
51
|
[key: string]: any;
|
|
52
|
-
},
|
|
52
|
+
}, "webforms/setWebformsFlag">;
|
|
53
53
|
export default stateSlice;
|