@ws-ui/store 0.3.9 → 0.3.10
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 +2 -6
- package/dist/hooks/store.d.ts +24 -3
- package/dist/index.cjs.js +86 -115
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +12235 -17422
- package/dist/index.es.js.map +1 -0
- package/dist/modules/catalog/index.d.ts +9 -1
- package/dist/modules/catalog/reducer.d.ts +9 -1
- package/dist/modules/catalog/thunks.d.ts +10 -1
- package/dist/modules/debugger/index.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +118 -3
- package/dist/modules/debugger/thunks.d.ts +26 -2
- package/dist/modules/debugger/types.d.ts +2 -2
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +44 -2
- package/dist/modules/explorer/thunks.d.ts +368 -33
- package/dist/modules/explorer/utils.d.ts +2 -1
- package/dist/modules/index.d.ts +22 -1
- package/dist/modules/modals/index.d.ts +1 -1
- package/dist/modules/modals/reducer.d.ts +13 -2
- package/dist/modules/modals/thunks.d.ts +20 -1
- package/dist/modules/modals/types.d.ts +1 -1
- package/dist/modules/model/helpers.d.ts +2 -2
- package/dist/modules/model/index.d.ts +1 -1
- package/dist/modules/model/reducer.d.ts +10 -2
- package/dist/modules/model/selectors.d.ts +13 -7
- package/dist/modules/model/subjects.d.ts +7 -1
- package/dist/modules/model/thunks.d.ts +89 -4
- package/dist/modules/model/utils.d.ts +5 -5
- package/dist/modules/roles/index.d.ts +1 -1
- package/dist/modules/roles/reducer.d.ts +41 -2
- package/dist/modules/roles/thunks.d.ts +42 -3
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +199 -2
- package/dist/modules/root/thunks.d.ts +246 -16
- package/dist/modules/root/types.d.ts +1 -1
- package/dist/modules/settings/index.d.ts +1 -1
- package/dist/modules/settings/reducer.d.ts +28 -2
- package/dist/modules/settings/thunks.d.ts +23 -2
- package/dist/modules/shared-conditions/index.d.ts +1 -1
- package/dist/modules/shared-conditions/reducer.d.ts +35 -3
- package/dist/modules/shared-conditions/thunks.d.ts +13 -1
- package/dist/modules/shared-conditions/utils.d.ts +2 -0
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +14 -2
- package/dist/modules/shared-css/thunks.d.ts +13 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -1
- package/dist/modules/shared-datasources/reducer.d.ts +10 -2
- package/dist/modules/shared-datasources/thunks.d.ts +73 -6
- package/dist/modules/tabs/index.d.ts +1 -1
- package/dist/modules/tabs/reducer.d.ts +1 -1
- package/dist/modules/tabs/selectors.d.ts +52 -1
- package/dist/modules/webforms/datasources.adapter.d.ts +24 -2
- package/dist/modules/webforms/index.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +47 -2
- package/dist/modules/webforms/thunks.d.ts +140 -10
- package/dist/modules/webforms/types.d.ts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/selectors/catalog.d.ts +200 -8
- package/dist/selectors/common.d.ts +89 -1
- package/dist/selectors/components.d.ts +50 -1
- package/dist/selectors/datasources.d.ts +152 -4
- package/dist/selectors/debugger.d.ts +612 -26
- package/dist/selectors/explorer.d.ts +1010 -22
- package/dist/selectors/modals.d.ts +26 -1
- package/dist/selectors/roles.d.ts +238 -8
- package/dist/selectors/settings.d.ts +332 -12
- package/dist/selectors/states.d.ts +201 -5
- package/dist/selectors/styles.d.ts +162 -5
- package/dist/selectors/tabs.d.ts +156 -3
- package/dist/selectors/webforms.d.ts +366 -13
- package/dist/store.d.ts +45 -3
- package/dist/utils.d.ts +4 -4
- package/package.json +55 -15
- package/dist/package.json +0 -28
- package/dist/style.css +0 -1
|
@@ -1,22 +1,252 @@
|
|
|
1
|
-
|
|
1
|
+
import { Dispatch } from '@reduxjs/toolkit';
|
|
2
|
+
import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab, WebformState } from '@ws-ui/shared';
|
|
3
|
+
import { AppState } from '..';
|
|
4
|
+
import { ClassFileTypes, TActionRenameDataSource } from './types';
|
|
5
|
+
|
|
6
|
+
export declare const fetchFiles: import('@reduxjs/toolkit').AsyncThunk<{
|
|
7
|
+
name: string;
|
|
8
|
+
type: import('@ws-ui/shared').FileFolderTypeWithContent;
|
|
9
|
+
date: string;
|
|
10
|
+
path: string;
|
|
11
|
+
}[], void, {
|
|
12
|
+
state?: unknown;
|
|
13
|
+
dispatch?: Dispatch;
|
|
14
|
+
extra?: unknown;
|
|
15
|
+
rejectValue?: unknown;
|
|
16
|
+
serializedErrorType?: unknown;
|
|
17
|
+
pendingMeta?: unknown;
|
|
18
|
+
fulfilledMeta?: unknown;
|
|
19
|
+
rejectedMeta?: unknown;
|
|
20
|
+
}>;
|
|
2
21
|
/**
|
|
3
22
|
* handles the rename of a datasource.
|
|
4
23
|
*
|
|
5
24
|
* - if the datasource is a local datasource, it will rename it along with it's references in component and other datasources.
|
|
6
25
|
* - if the datasource is a shared datasource, it will do the same as above but only for current webform.
|
|
7
26
|
*/
|
|
8
|
-
export declare const renameDataSource:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const
|
|
27
|
+
export declare const renameDataSource: import('@reduxjs/toolkit').AsyncThunk<{
|
|
28
|
+
path: string | undefined;
|
|
29
|
+
namespace: string;
|
|
30
|
+
datasources: datasources.ICreateDataSource[];
|
|
31
|
+
} | null, TActionRenameDataSource, {
|
|
32
|
+
state?: unknown;
|
|
33
|
+
dispatch?: Dispatch;
|
|
34
|
+
extra?: unknown;
|
|
35
|
+
rejectValue?: unknown;
|
|
36
|
+
serializedErrorType?: unknown;
|
|
37
|
+
pendingMeta?: unknown;
|
|
38
|
+
fulfilledMeta?: unknown;
|
|
39
|
+
rejectedMeta?: unknown;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const editDataSource: import('@reduxjs/toolkit').AsyncThunk<(datasources.ICreateDataSourceScalar | datasources.ICreateDataSourceEntity | datasources.ICreateDataSourceEntitySelection)[], {
|
|
42
|
+
path: string;
|
|
43
|
+
datasourceId: string;
|
|
44
|
+
namespace?: string;
|
|
45
|
+
propertyKey: string;
|
|
46
|
+
value: any;
|
|
47
|
+
}, {
|
|
48
|
+
state?: unknown;
|
|
49
|
+
dispatch?: Dispatch;
|
|
50
|
+
extra?: unknown;
|
|
51
|
+
rejectValue?: unknown;
|
|
52
|
+
serializedErrorType?: unknown;
|
|
53
|
+
pendingMeta?: unknown;
|
|
54
|
+
fulfilledMeta?: unknown;
|
|
55
|
+
rejectedMeta?: unknown;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const fetchChanges: import('@reduxjs/toolkit').AsyncThunk<IFileInfoResponse, void, {
|
|
58
|
+
state: AppState;
|
|
59
|
+
dispatch?: Dispatch | undefined;
|
|
60
|
+
extra?: unknown;
|
|
61
|
+
rejectValue?: unknown;
|
|
62
|
+
serializedErrorType?: unknown;
|
|
63
|
+
pendingMeta?: unknown;
|
|
64
|
+
fulfilledMeta?: unknown;
|
|
65
|
+
rejectedMeta?: unknown;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const saveAll: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
68
|
+
state: AppState;
|
|
69
|
+
dispatch?: Dispatch | undefined;
|
|
70
|
+
extra?: unknown;
|
|
71
|
+
rejectValue?: unknown;
|
|
72
|
+
serializedErrorType?: unknown;
|
|
73
|
+
pendingMeta?: unknown;
|
|
74
|
+
fulfilledMeta?: unknown;
|
|
75
|
+
rejectedMeta?: unknown;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const tryCloseTab: import('@reduxjs/toolkit').AsyncThunk<boolean, string, {
|
|
78
|
+
state: AppState;
|
|
79
|
+
dispatch?: Dispatch | undefined;
|
|
80
|
+
extra?: unknown;
|
|
81
|
+
rejectValue?: unknown;
|
|
82
|
+
serializedErrorType?: unknown;
|
|
83
|
+
pendingMeta?: unknown;
|
|
84
|
+
fulfilledMeta?: unknown;
|
|
85
|
+
rejectedMeta?: unknown;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const tryCloseOtherTabs: import('@reduxjs/toolkit').AsyncThunk<void, string, {
|
|
88
|
+
state: AppState;
|
|
89
|
+
dispatch?: Dispatch | undefined;
|
|
90
|
+
extra?: unknown;
|
|
91
|
+
rejectValue?: unknown;
|
|
92
|
+
serializedErrorType?: unknown;
|
|
93
|
+
pendingMeta?: unknown;
|
|
94
|
+
fulfilledMeta?: unknown;
|
|
95
|
+
rejectedMeta?: unknown;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const tryCloseAllTabs: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
98
|
+
state: AppState;
|
|
99
|
+
dispatch?: Dispatch | undefined;
|
|
100
|
+
extra?: unknown;
|
|
101
|
+
rejectValue?: unknown;
|
|
102
|
+
serializedErrorType?: unknown;
|
|
103
|
+
pendingMeta?: unknown;
|
|
104
|
+
fulfilledMeta?: unknown;
|
|
105
|
+
rejectedMeta?: unknown;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const tryCloseRightTabs: import('@reduxjs/toolkit').AsyncThunk<void, number, {
|
|
108
|
+
state: AppState;
|
|
109
|
+
dispatch?: Dispatch | undefined;
|
|
110
|
+
extra?: unknown;
|
|
111
|
+
rejectValue?: unknown;
|
|
112
|
+
serializedErrorType?: unknown;
|
|
113
|
+
pendingMeta?: unknown;
|
|
114
|
+
fulfilledMeta?: unknown;
|
|
115
|
+
rejectedMeta?: unknown;
|
|
116
|
+
}>;
|
|
117
|
+
export declare const tryCloseLeftTabs: import('@reduxjs/toolkit').AsyncThunk<void, number, {
|
|
118
|
+
state: AppState;
|
|
119
|
+
dispatch?: Dispatch | undefined;
|
|
120
|
+
extra?: unknown;
|
|
121
|
+
rejectValue?: unknown;
|
|
122
|
+
serializedErrorType?: unknown;
|
|
123
|
+
pendingMeta?: unknown;
|
|
124
|
+
fulfilledMeta?: unknown;
|
|
125
|
+
rejectedMeta?: unknown;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const reloadTab: import('@reduxjs/toolkit').AsyncThunk<void | INodeInfo, ITab<any, Partial<{
|
|
128
|
+
initialLineInfo: {
|
|
129
|
+
line: number;
|
|
130
|
+
offset?: number;
|
|
131
|
+
lastModification: number;
|
|
132
|
+
};
|
|
133
|
+
initialSelectionInfo: {
|
|
134
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
135
|
+
lastModification: number;
|
|
136
|
+
};
|
|
137
|
+
diffContent: string;
|
|
138
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
139
|
+
source: import('@ws-ui/shared').ISource;
|
|
140
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
141
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
142
|
+
kind: string;
|
|
143
|
+
}>>, {
|
|
144
|
+
state: AppState;
|
|
145
|
+
dispatch?: Dispatch | undefined;
|
|
146
|
+
extra?: unknown;
|
|
147
|
+
rejectValue?: unknown;
|
|
148
|
+
serializedErrorType?: unknown;
|
|
149
|
+
pendingMeta?: unknown;
|
|
150
|
+
fulfilledMeta?: unknown;
|
|
151
|
+
rejectedMeta?: unknown;
|
|
152
|
+
}>;
|
|
153
|
+
type SaveTabReturnType = ITab & {
|
|
154
|
+
errors: IMultilineMessage[];
|
|
155
|
+
};
|
|
156
|
+
export declare const saveTab: import('@reduxjs/toolkit').AsyncThunk<SaveTabReturnType | null, {
|
|
157
|
+
tab: ITab;
|
|
158
|
+
}, {
|
|
159
|
+
state: AppState;
|
|
160
|
+
dispatch?: Dispatch | undefined;
|
|
161
|
+
extra?: unknown;
|
|
162
|
+
rejectValue?: unknown;
|
|
163
|
+
serializedErrorType?: unknown;
|
|
164
|
+
pendingMeta?: unknown;
|
|
165
|
+
fulfilledMeta?: unknown;
|
|
166
|
+
rejectedMeta?: unknown;
|
|
167
|
+
}>;
|
|
168
|
+
export declare const setTabContent: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
169
|
+
path: string;
|
|
170
|
+
content: any;
|
|
171
|
+
contentPath?: string;
|
|
172
|
+
}, {
|
|
173
|
+
state: AppState;
|
|
174
|
+
dispatch?: Dispatch | undefined;
|
|
175
|
+
extra?: unknown;
|
|
176
|
+
rejectValue?: unknown;
|
|
177
|
+
serializedErrorType?: unknown;
|
|
178
|
+
pendingMeta?: unknown;
|
|
179
|
+
fulfilledMeta?: unknown;
|
|
180
|
+
rejectedMeta?: unknown;
|
|
181
|
+
}>;
|
|
182
|
+
export declare const setCurrentWebformState: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
183
|
+
currentState: WebformState;
|
|
184
|
+
path: string;
|
|
185
|
+
}, {
|
|
186
|
+
state: AppState;
|
|
187
|
+
dispatch?: Dispatch | undefined;
|
|
188
|
+
extra?: unknown;
|
|
189
|
+
rejectValue?: unknown;
|
|
190
|
+
serializedErrorType?: unknown;
|
|
191
|
+
pendingMeta?: unknown;
|
|
192
|
+
fulfilledMeta?: unknown;
|
|
193
|
+
rejectedMeta?: unknown;
|
|
194
|
+
}>;
|
|
195
|
+
export declare const tryInjectMethod: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
196
|
+
initialLineInfo: {
|
|
197
|
+
line: number;
|
|
198
|
+
offset?: number;
|
|
199
|
+
lastModification: number;
|
|
200
|
+
};
|
|
201
|
+
initialSelectionInfo: {
|
|
202
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
203
|
+
lastModification: number;
|
|
204
|
+
};
|
|
205
|
+
diffContent: string;
|
|
206
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
207
|
+
source: import('@ws-ui/shared').ISource;
|
|
208
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
209
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
210
|
+
kind: string;
|
|
211
|
+
}>> | null, {
|
|
212
|
+
name: string;
|
|
213
|
+
type?: ClassFileTypes;
|
|
214
|
+
dataclass?: string;
|
|
215
|
+
expand?: boolean;
|
|
216
|
+
}, {
|
|
217
|
+
state: AppState;
|
|
218
|
+
dispatch?: Dispatch | undefined;
|
|
219
|
+
extra?: unknown;
|
|
220
|
+
rejectValue?: unknown;
|
|
221
|
+
serializedErrorType?: unknown;
|
|
222
|
+
pendingMeta?: unknown;
|
|
223
|
+
fulfilledMeta?: unknown;
|
|
224
|
+
rejectedMeta?: unknown;
|
|
225
|
+
}>;
|
|
226
|
+
export declare const openRoles: import('@reduxjs/toolkit').AsyncThunk<void | ITab<any, Partial<{
|
|
227
|
+
initialLineInfo: {
|
|
228
|
+
line: number;
|
|
229
|
+
offset?: number;
|
|
230
|
+
lastModification: number;
|
|
231
|
+
};
|
|
232
|
+
initialSelectionInfo: {
|
|
233
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
234
|
+
lastModification: number;
|
|
235
|
+
};
|
|
236
|
+
diffContent: string;
|
|
237
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
238
|
+
source: import('@ws-ui/shared').ISource;
|
|
239
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
240
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
241
|
+
kind: string;
|
|
242
|
+
}>>, {}, {
|
|
243
|
+
state: AppState;
|
|
244
|
+
rejectValue: string;
|
|
245
|
+
dispatch?: Dispatch | undefined;
|
|
246
|
+
extra?: unknown;
|
|
247
|
+
serializedErrorType?: unknown;
|
|
248
|
+
pendingMeta?: unknown;
|
|
249
|
+
fulfilledMeta?: unknown;
|
|
250
|
+
rejectedMeta?: unknown;
|
|
251
|
+
}>;
|
|
252
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
2
|
import { IAppSettingsResponse } from '@ws-ui/shared';
|
|
3
|
+
import { TSetSettingPayload, TSettingPath } from './types';
|
|
2
4
|
|
|
3
5
|
export interface ISettingsState {
|
|
4
6
|
session: {
|
|
@@ -12,6 +14,30 @@ export interface ISettingsState {
|
|
|
12
14
|
[key: string]: unknown;
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
|
-
declare const stateSlice:
|
|
16
|
-
|
|
17
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISettingsState, {
|
|
18
|
+
setSetting(state: ISettingsState, action: TSetSettingPayload): void;
|
|
19
|
+
setSettings(state: ISettingsState, action: PayloadAction<{
|
|
20
|
+
path: TSettingPath;
|
|
21
|
+
value: any;
|
|
22
|
+
}>): void;
|
|
23
|
+
setSettingsAsText(state: ISettingsState, action: PayloadAction<{
|
|
24
|
+
path: TSettingPath;
|
|
25
|
+
settings: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
}>): void;
|
|
29
|
+
}, "settings">;
|
|
30
|
+
export declare const setSetting: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
31
|
+
path: TSettingPath;
|
|
32
|
+
settingsKey: string;
|
|
33
|
+
value: any;
|
|
34
|
+
}, "settings/setSetting">, setSettings: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
35
|
+
path: TSettingPath;
|
|
36
|
+
value: any;
|
|
37
|
+
}, "settings/setSettings">, setSettingsAsText: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
38
|
+
path: TSettingPath;
|
|
39
|
+
settings: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
}, "settings/setSettingsAsText">;
|
|
17
43
|
export default stateSlice;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { INodeInfo } from '@ws-ui/shared';
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
|
|
4
|
+
export declare const fetchSettings: import('@reduxjs/toolkit').AsyncThunk<INodeInfo, void, {
|
|
5
|
+
state: AppState;
|
|
6
|
+
rejectValue: string;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const fetchAppSettings: import('@reduxjs/toolkit').AsyncThunk<import('@ws-ui/shared').IAppSettingsResponse, void, {
|
|
15
|
+
state?: unknown;
|
|
16
|
+
dispatch?: import('redux').Dispatch;
|
|
17
|
+
extra?: unknown;
|
|
18
|
+
rejectValue?: unknown;
|
|
19
|
+
serializedErrorType?: unknown;
|
|
20
|
+
pendingMeta?: unknown;
|
|
21
|
+
fulfilledMeta?: unknown;
|
|
22
|
+
rejectedMeta?: unknown;
|
|
23
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
2
|
import { WebformStateCondition } from '@ws-ui/shared';
|
|
2
3
|
|
|
3
4
|
export type ISavedConditionsState = {
|
|
@@ -5,8 +6,39 @@ export type ISavedConditionsState = {
|
|
|
5
6
|
conditions: WebformStateCondition[];
|
|
6
7
|
error?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const deepDeleteCondition: (condition: WebformStateCondition, targetId: string) =>
|
|
9
|
+
export declare const deepDeleteCondition: (condition: WebformStateCondition, targetId: string) => WebformStateCondition | null;
|
|
9
10
|
export declare const deepSanitizeCondition: (condition: WebformStateCondition) => WebformStateCondition;
|
|
10
|
-
declare const stateSlice:
|
|
11
|
-
|
|
11
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISavedConditionsState, {
|
|
12
|
+
updateSavedConditions: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
13
|
+
conditions: WebformStateCondition[];
|
|
14
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
15
|
+
setSavedCondition: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
16
|
+
id: string;
|
|
17
|
+
condition: WebformStateCondition;
|
|
18
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
19
|
+
updateSavedConditionDs: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
20
|
+
old_reference: string;
|
|
21
|
+
new_reference: string;
|
|
22
|
+
}>) => void;
|
|
23
|
+
addSavedCondition: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<WebformStateCondition>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
24
|
+
removeSavedCondition: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
25
|
+
id: string;
|
|
26
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
27
|
+
initSavedConditions: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
28
|
+
conditions: WebformStateCondition[];
|
|
29
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
30
|
+
}, "shared-conditions">;
|
|
31
|
+
export declare const updateSavedConditions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
32
|
+
conditions: WebformStateCondition[];
|
|
33
|
+
}, "shared-conditions/updateSavedConditions">, setSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
34
|
+
id: string;
|
|
35
|
+
condition: WebformStateCondition;
|
|
36
|
+
}, "shared-conditions/setSavedCondition">, updateSavedConditionDs: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
37
|
+
old_reference: string;
|
|
38
|
+
new_reference: string;
|
|
39
|
+
}, "shared-conditions/updateSavedConditionDs">, addSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<WebformStateCondition, "shared-conditions/addSavedCondition">, removeSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
40
|
+
id: string;
|
|
41
|
+
}, "shared-conditions/removeSavedCondition">, initSavedConditions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
42
|
+
conditions: WebformStateCondition[];
|
|
43
|
+
}, "shared-conditions/initSavedConditions">;
|
|
12
44
|
export default stateSlice;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { WebformStateCondition } from '@ws-ui/shared';
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
|
|
4
|
+
export declare const fetchSavedConditions: import('@reduxjs/toolkit').AsyncThunk<WebformStateCondition[], void, {
|
|
5
|
+
state: AppState;
|
|
6
|
+
rejectValue: string;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
13
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
1
2
|
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
2
3
|
|
|
3
4
|
export type ISharedCSSState = {
|
|
@@ -5,6 +6,17 @@ export type ISharedCSSState = {
|
|
|
5
6
|
styles: IWebFormStyleClass[];
|
|
6
7
|
error?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const stateSlice:
|
|
9
|
-
|
|
9
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISharedCSSState, {
|
|
10
|
+
updateSharedCss: (state: import('immer/dist/internal.js').WritableDraft<ISharedCSSState>, action: PayloadAction<{
|
|
11
|
+
classes: IWebFormStyleClass[];
|
|
12
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISharedCSSState>;
|
|
13
|
+
initSharedCss: (state: import('immer/dist/internal.js').WritableDraft<ISharedCSSState>, action: PayloadAction<{
|
|
14
|
+
classes: IWebFormStyleClass[];
|
|
15
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISharedCSSState>;
|
|
16
|
+
}, "shared-css">;
|
|
17
|
+
export declare const updateSharedCss: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
18
|
+
classes: IWebFormStyleClass[];
|
|
19
|
+
}, "shared-css/updateSharedCss">, initSharedCss: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
20
|
+
classes: IWebFormStyleClass[];
|
|
21
|
+
}, "shared-css/initSharedCss">;
|
|
10
22
|
export default stateSlice;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
|
|
4
|
+
export declare const fetchSharedCss: import('@reduxjs/toolkit').AsyncThunk<IWebFormStyleClass[], void, {
|
|
5
|
+
state: AppState;
|
|
6
|
+
rejectValue: string;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
13
|
+
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
1
3
|
export type ISharedDatasourcesState = {
|
|
2
4
|
state: 'loading' | 'loaded' | 'error';
|
|
3
5
|
sources: {
|
|
@@ -5,6 +7,12 @@ export type ISharedDatasourcesState = {
|
|
|
5
7
|
};
|
|
6
8
|
error?: string;
|
|
7
9
|
};
|
|
8
|
-
declare const stateSlice:
|
|
9
|
-
|
|
10
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISharedDatasourcesState, {
|
|
11
|
+
addEmptyNamespace(state: import('immer/dist/internal.js').WritableDraft<ISharedDatasourcesState>, action: PayloadAction<{
|
|
12
|
+
name: string;
|
|
13
|
+
}>): void;
|
|
14
|
+
}, "shared-datasources">;
|
|
15
|
+
export declare const addEmptyNamespace: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
16
|
+
name: string;
|
|
17
|
+
}, "shared-datasources/addEmptyNamespace">;
|
|
10
18
|
export default stateSlice;
|
|
@@ -1,6 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ISharedDatasourcesResponse } from '@ws-ui/shared';
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
|
|
4
|
+
export declare const fetchSharedDatasources: import('@reduxjs/toolkit').AsyncThunk<ISharedDatasourcesResponse, void, {
|
|
5
|
+
rejectValue: string;
|
|
6
|
+
state?: unknown;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const addSharedSource: import('@reduxjs/toolkit').AsyncThunk<ISharedDatasourcesResponse, datasources.ICreateDataSource, {
|
|
15
|
+
rejectValue: string;
|
|
16
|
+
state: AppState;
|
|
17
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
18
|
+
extra?: unknown;
|
|
19
|
+
serializedErrorType?: unknown;
|
|
20
|
+
pendingMeta?: unknown;
|
|
21
|
+
fulfilledMeta?: unknown;
|
|
22
|
+
rejectedMeta?: unknown;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const editSharedSource: import('@reduxjs/toolkit').AsyncThunk<{
|
|
25
|
+
[key: string]: datasources.ICreateDataSource[];
|
|
26
|
+
}, datasources.ICreateDataSource, {
|
|
27
|
+
state?: unknown;
|
|
28
|
+
dispatch?: import('redux').Dispatch;
|
|
29
|
+
extra?: unknown;
|
|
30
|
+
rejectValue?: unknown;
|
|
31
|
+
serializedErrorType?: unknown;
|
|
32
|
+
pendingMeta?: unknown;
|
|
33
|
+
fulfilledMeta?: unknown;
|
|
34
|
+
rejectedMeta?: unknown;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const deleteSharedSource: import('@reduxjs/toolkit').AsyncThunk<ISharedDatasourcesResponse, {
|
|
37
|
+
id: string;
|
|
38
|
+
namespace: string;
|
|
39
|
+
}, {
|
|
40
|
+
rejectValue: string;
|
|
41
|
+
state: AppState;
|
|
42
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
serializedErrorType?: unknown;
|
|
45
|
+
pendingMeta?: unknown;
|
|
46
|
+
fulfilledMeta?: unknown;
|
|
47
|
+
rejectedMeta?: unknown;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const updateSharedDatasources: import('@reduxjs/toolkit').AsyncThunk<ISharedDatasourcesResponse, datasources.ICreateDataSource[], {
|
|
50
|
+
rejectValue: string;
|
|
51
|
+
state: AppState;
|
|
52
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
53
|
+
extra?: unknown;
|
|
54
|
+
serializedErrorType?: unknown;
|
|
55
|
+
pendingMeta?: unknown;
|
|
56
|
+
fulfilledMeta?: unknown;
|
|
57
|
+
rejectedMeta?: unknown;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const setDatasourceEvents: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
60
|
+
tabPath: string;
|
|
61
|
+
name: string;
|
|
62
|
+
namespace: string;
|
|
63
|
+
events: webforms.WEvent[];
|
|
64
|
+
}, {
|
|
65
|
+
state: AppState;
|
|
66
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
67
|
+
extra?: unknown;
|
|
68
|
+
rejectValue?: unknown;
|
|
69
|
+
serializedErrorType?: unknown;
|
|
70
|
+
pendingMeta?: unknown;
|
|
71
|
+
fulfilledMeta?: unknown;
|
|
72
|
+
rejectedMeta?: unknown;
|
|
73
|
+
}>;
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
export declare const selectPanelByPath: (path: string) =>
|
|
1
|
+
export declare const selectPanelByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
2
|
+
root: import('..').IRootState;
|
|
3
|
+
explorer: import('..').ITreeItem[];
|
|
4
|
+
debugger: import('..').IDebuggerState;
|
|
5
|
+
settings: import('..').ISettingsState;
|
|
6
|
+
catalog: {
|
|
7
|
+
state: "loading";
|
|
8
|
+
} | {
|
|
9
|
+
state: "loaded";
|
|
10
|
+
model: datasources.IEnhancedCatalog;
|
|
11
|
+
} | {
|
|
12
|
+
state: "error";
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
roles: import('..').IRolesState;
|
|
16
|
+
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
17
|
+
savedConditions: import('..').ISavedConditionsState;
|
|
18
|
+
webforms: import('..').IWebformEditorState;
|
|
19
|
+
modals: import('..').IModalsState;
|
|
20
|
+
sharedCSS: import('..').ISharedCSSState;
|
|
21
|
+
model: import('..').IModelState;
|
|
22
|
+
}) => {
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
type: string;
|
|
25
|
+
current: string;
|
|
26
|
+
lastSelected?: string;
|
|
27
|
+
} | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').ITab<any, Partial<{
|
|
28
|
+
initialLineInfo: {
|
|
29
|
+
line: number;
|
|
30
|
+
offset?: number;
|
|
31
|
+
lastModification: number;
|
|
32
|
+
};
|
|
33
|
+
initialSelectionInfo: {
|
|
34
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
35
|
+
lastModification: number;
|
|
36
|
+
};
|
|
37
|
+
diffContent: string;
|
|
38
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
39
|
+
source: import('@ws-ui/shared').ISource;
|
|
40
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
41
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
42
|
+
kind: string;
|
|
43
|
+
}>>[]) => {
|
|
44
|
+
isOpen: boolean;
|
|
45
|
+
type: string;
|
|
46
|
+
current: string;
|
|
47
|
+
lastSelected?: string;
|
|
48
|
+
} | undefined, {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
}> & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
};
|