@ws-ui/store 0.3.1 → 0.3.4
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 +9 -60
- package/dist/index.cjs.js +47 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6718 -6727
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/index.d.ts +1 -1
- package/dist/modules/catalog/reducer.d.ts +4 -5
- package/dist/modules/catalog/thunks.d.ts +8 -2
- package/dist/modules/debugger/index.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +72 -71
- package/dist/modules/debugger/thunks.d.ts +18 -3
- package/dist/modules/debugger/types.d.ts +1 -0
- package/dist/modules/debugger/utils.d.ts +1 -0
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +17 -16
- package/dist/modules/explorer/thunks.d.ts +211 -60
- package/dist/modules/explorer/types.d.ts +1 -0
- package/dist/modules/explorer/utils.d.ts +1 -0
- package/dist/modules/index.d.ts +15 -30
- package/dist/modules/modals/index.d.ts +1 -1
- package/dist/modules/modals/reducer.d.ts +10 -9
- package/dist/modules/modals/thunks.d.ts +11 -1
- package/dist/modules/modals/types.d.ts +1 -0
- package/dist/modules/model/helpers.d.ts +3 -3
- package/dist/modules/model/index.d.ts +1 -1
- package/dist/modules/model/reducer.d.ts +7 -10
- package/dist/modules/model/selectors.d.ts +6 -2
- package/dist/modules/model/subjects.d.ts +2 -1
- package/dist/modules/model/thunks.d.ts +56 -24
- package/dist/modules/model/types.d.ts +1 -1
- package/dist/modules/model/utils.d.ts +4 -3
- package/dist/modules/roles/adapter.d.ts +7 -1
- package/dist/modules/roles/index.d.ts +1 -16
- package/dist/modules/roles/reducer.d.ts +17 -39
- package/dist/modules/roles/thunks.d.ts +24 -5
- package/dist/modules/roles/types.d.ts +10 -5
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +92 -100
- package/dist/modules/root/thunks.d.ts +162 -44
- package/dist/modules/root/types.d.ts +1 -2
- package/dist/modules/settings/index.d.ts +1 -1
- package/dist/modules/settings/reducer.d.ts +11 -13
- package/dist/modules/settings/thunks.d.ts +18 -2
- package/dist/modules/settings/types.d.ts +1 -0
- package/dist/modules/settings/utils.d.ts +2 -1
- package/dist/modules/shared-conditions/index.d.ts +1 -1
- package/dist/modules/shared-conditions/reducer.d.ts +18 -17
- package/dist/modules/shared-conditions/thunks.d.ts +8 -1
- package/dist/modules/shared-conditions/utils.d.ts +1 -0
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +9 -8
- package/dist/modules/shared-css/thunks.d.ts +8 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -1
- package/dist/modules/shared-datasources/reducer.d.ts +5 -5
- package/dist/modules/shared-datasources/thunks.d.ts +50 -9
- 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 +24 -40
- package/dist/modules/webforms/datasources.adapter.d.ts +12 -29
- package/dist/modules/webforms/index.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +20 -22
- package/dist/modules/webforms/thunks.d.ts +99 -17
- package/dist/modules/webforms/types.d.ts +1 -0
- package/dist/provider.d.ts +1 -0
- package/dist/selectors/catalog.d.ts +52 -174
- package/dist/selectors/common.d.ts +48 -109
- package/dist/selectors/components.d.ts +23 -39
- package/dist/selectors/datasources.d.ts +74 -165
- package/dist/selectors/debugger.d.ts +163 -493
- package/dist/selectors/explorer.d.ts +485 -875
- package/dist/selectors/modals.d.ts +13 -29
- package/dist/selectors/roles.d.ts +126 -367
- package/dist/selectors/settings.d.ts +156 -337
- package/dist/selectors/states.d.ts +63 -153
- package/dist/selectors/styles.d.ts +78 -154
- package/dist/selectors/tabs.d.ts +64 -110
- package/dist/selectors/webforms.d.ts +177 -373
- package/dist/store.d.ts +44 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { FileFolderType, IFileInfo, ISaveFileResponse, ISetFileContentResponse, ITextEditorSelection } from '@ws-ui/shared';
|
|
4
|
-
import { ITab } from '@ws-ui/shared';
|
|
5
|
-
import { ClassFileTypes } from '../../modules/root/types';
|
|
1
|
+
import { FileFolderType, IFileInfo, ISaveFileResponse, ISetFileContentResponse, ITextEditorSelection, ITab } from '@ws-ui/shared';
|
|
2
|
+
import { ClassFileTypes } from '../root/types';
|
|
6
3
|
import { AppState } from '..';
|
|
7
4
|
import { ISettingsState } from '../settings';
|
|
8
5
|
import { IOpenFilePayload, ITreeItem } from './types';
|
|
6
|
+
|
|
9
7
|
interface ICreateNewFilePayload {
|
|
10
8
|
fileName: string;
|
|
11
9
|
type: FileFolderType;
|
|
@@ -74,10 +72,10 @@ export declare function getDefaultContent(root: FileFolderType, projectSettings:
|
|
|
74
72
|
export declare function getFilenameFromType(fileName: string, type: FileFolderType, qodly?: boolean): string;
|
|
75
73
|
export declare function castToFileFolder(type: string): FileFolderType;
|
|
76
74
|
export declare function getFileType(root: FileFolderType): FileFolderType;
|
|
77
|
-
export declare const tryEditMethod: import(
|
|
75
|
+
export declare const tryEditMethod: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
78
76
|
initialLineInfo: {
|
|
79
77
|
line: number;
|
|
80
|
-
offset?: number
|
|
78
|
+
offset?: number;
|
|
81
79
|
lastModification: number;
|
|
82
80
|
};
|
|
83
81
|
initialSelectionInfo: {
|
|
@@ -85,15 +83,22 @@ export declare const tryEditMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<a
|
|
|
85
83
|
lastModification: number;
|
|
86
84
|
};
|
|
87
85
|
diffContent: string;
|
|
88
|
-
attributes: import(
|
|
89
|
-
source: import(
|
|
90
|
-
editor: import(
|
|
91
|
-
ext: import(
|
|
86
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
87
|
+
source: import('@ws-ui/shared').ISource;
|
|
88
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
89
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
92
90
|
kind: string;
|
|
93
91
|
}>>, {
|
|
94
92
|
method: catalog.IMethod;
|
|
95
93
|
}, {
|
|
96
94
|
state: AppState;
|
|
95
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
96
|
+
extra?: unknown;
|
|
97
|
+
rejectValue?: unknown;
|
|
98
|
+
serializedErrorType?: unknown;
|
|
99
|
+
pendingMeta?: unknown;
|
|
100
|
+
fulfilledMeta?: unknown;
|
|
101
|
+
rejectedMeta?: unknown;
|
|
97
102
|
}>;
|
|
98
103
|
type TCreateModelFilesPayloadDataclass = {
|
|
99
104
|
type: 'dataclass';
|
|
@@ -105,21 +110,53 @@ type TCreateModelFilesPayloadDataclass = {
|
|
|
105
110
|
export type TCreateModelFilesPayload = TCreateModelFilesPayloadDataclass | {
|
|
106
111
|
type: 'model';
|
|
107
112
|
};
|
|
108
|
-
export declare const createModelFiles: import(
|
|
113
|
+
export declare const createModelFiles: import('@reduxjs/toolkit').AsyncThunk<void, TCreateModelFilesPayload, {
|
|
109
114
|
state: AppState;
|
|
115
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
116
|
+
extra?: unknown;
|
|
117
|
+
rejectValue?: unknown;
|
|
118
|
+
serializedErrorType?: unknown;
|
|
119
|
+
pendingMeta?: unknown;
|
|
120
|
+
fulfilledMeta?: unknown;
|
|
121
|
+
rejectedMeta?: unknown;
|
|
110
122
|
}>;
|
|
111
|
-
export declare const fetchFolderContent: import(
|
|
123
|
+
export declare const fetchFolderContent: import('@reduxjs/toolkit').AsyncThunk<ITreeItem[], string | {
|
|
112
124
|
nodePath: string;
|
|
113
|
-
expandDataclass?: string
|
|
125
|
+
expandDataclass?: string;
|
|
114
126
|
}, {
|
|
115
127
|
state: AppState;
|
|
128
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
129
|
+
extra?: unknown;
|
|
130
|
+
rejectValue?: unknown;
|
|
131
|
+
serializedErrorType?: unknown;
|
|
132
|
+
pendingMeta?: unknown;
|
|
133
|
+
fulfilledMeta?: unknown;
|
|
134
|
+
rejectedMeta?: unknown;
|
|
116
135
|
}>;
|
|
117
|
-
export declare const fetchFolderContentWithoutExpanding: import(
|
|
118
|
-
|
|
136
|
+
export declare const fetchFolderContentWithoutExpanding: import('@reduxjs/toolkit').AsyncThunk<ITreeItem[], string, {
|
|
137
|
+
state?: unknown;
|
|
138
|
+
dispatch?: import('redux').Dispatch;
|
|
139
|
+
extra?: unknown;
|
|
140
|
+
rejectValue?: unknown;
|
|
141
|
+
serializedErrorType?: unknown;
|
|
142
|
+
pendingMeta?: unknown;
|
|
143
|
+
fulfilledMeta?: unknown;
|
|
144
|
+
rejectedMeta?: unknown;
|
|
145
|
+
}>;
|
|
146
|
+
export declare const uploadFileAndGetResponse: import('@reduxjs/toolkit').AsyncThunk<{
|
|
119
147
|
status: number;
|
|
120
148
|
data: unknown;
|
|
121
|
-
}, File, {
|
|
122
|
-
|
|
149
|
+
}, File, {
|
|
150
|
+
state?: unknown;
|
|
151
|
+
dispatch?: import('redux').Dispatch;
|
|
152
|
+
extra?: unknown;
|
|
153
|
+
rejectValue?: unknown;
|
|
154
|
+
serializedErrorType?: unknown;
|
|
155
|
+
pendingMeta?: unknown;
|
|
156
|
+
fulfilledMeta?: unknown;
|
|
157
|
+
rejectedMeta?: unknown;
|
|
158
|
+
}>;
|
|
159
|
+
export declare const uploadFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
123
160
|
status: number;
|
|
124
161
|
fileName: string;
|
|
125
162
|
}, {
|
|
@@ -128,14 +165,27 @@ export declare const uploadFile: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
128
165
|
parentNode: ITreeItem;
|
|
129
166
|
}, {
|
|
130
167
|
state: AppState;
|
|
168
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
169
|
+
extra?: unknown;
|
|
170
|
+
rejectValue?: unknown;
|
|
171
|
+
serializedErrorType?: unknown;
|
|
172
|
+
pendingMeta?: unknown;
|
|
173
|
+
fulfilledMeta?: unknown;
|
|
174
|
+
rejectedMeta?: unknown;
|
|
131
175
|
}>;
|
|
132
|
-
export declare const createNewFile: import(
|
|
176
|
+
export declare const createNewFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
133
177
|
qodly: boolean;
|
|
134
178
|
file: ISetFileContentResponse;
|
|
135
179
|
parentNode: ITreeItem;
|
|
136
180
|
}, ICreateNewFilePayload, {
|
|
137
181
|
state: AppState;
|
|
138
182
|
rejectValue: string;
|
|
183
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
184
|
+
extra?: unknown;
|
|
185
|
+
serializedErrorType?: unknown;
|
|
186
|
+
pendingMeta?: unknown;
|
|
187
|
+
fulfilledMeta?: unknown;
|
|
188
|
+
rejectedMeta?: unknown;
|
|
139
189
|
}>;
|
|
140
190
|
/**
|
|
141
191
|
* Returns the file path of the given file object based on its type.
|
|
@@ -150,26 +200,48 @@ export declare function getFilePath(file: ISaveFileResponse, options?: Partial<{
|
|
|
150
200
|
withExtension: boolean;
|
|
151
201
|
qodly: boolean;
|
|
152
202
|
}>): string;
|
|
153
|
-
export declare const createNewFileAndOpen: import(
|
|
203
|
+
export declare const createNewFileAndOpen: import('@reduxjs/toolkit').AsyncThunk<void, ICreateNewFilePayload, {
|
|
154
204
|
state: AppState;
|
|
205
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
206
|
+
extra?: unknown;
|
|
207
|
+
rejectValue?: unknown;
|
|
208
|
+
serializedErrorType?: unknown;
|
|
209
|
+
pendingMeta?: unknown;
|
|
210
|
+
fulfilledMeta?: unknown;
|
|
211
|
+
rejectedMeta?: unknown;
|
|
155
212
|
}>;
|
|
156
|
-
export declare const createNewNode: import(
|
|
157
|
-
file: import(
|
|
213
|
+
export declare const createNewNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
214
|
+
file: import('@ws-ui/shared').IAddFolderResponse;
|
|
158
215
|
parentNode: ITreeItem;
|
|
159
216
|
}, {
|
|
160
217
|
fileName: string;
|
|
161
218
|
type: FileFolderType;
|
|
162
219
|
path: string;
|
|
163
220
|
parentNode: ITreeItem;
|
|
164
|
-
}, {
|
|
165
|
-
|
|
221
|
+
}, {
|
|
222
|
+
state?: unknown;
|
|
223
|
+
dispatch?: import('redux').Dispatch;
|
|
224
|
+
extra?: unknown;
|
|
225
|
+
rejectValue?: unknown;
|
|
226
|
+
serializedErrorType?: unknown;
|
|
227
|
+
pendingMeta?: unknown;
|
|
228
|
+
fulfilledMeta?: unknown;
|
|
229
|
+
rejectedMeta?: unknown;
|
|
230
|
+
}>;
|
|
231
|
+
export declare const fetchHTTPHandlers: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
166
232
|
state: AppState;
|
|
167
233
|
rejectValue: string;
|
|
234
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
235
|
+
extra?: unknown;
|
|
236
|
+
serializedErrorType?: unknown;
|
|
237
|
+
pendingMeta?: unknown;
|
|
238
|
+
fulfilledMeta?: unknown;
|
|
239
|
+
rejectedMeta?: unknown;
|
|
168
240
|
}>;
|
|
169
|
-
export declare const openFile: import(
|
|
241
|
+
export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
170
242
|
initialLineInfo: {
|
|
171
243
|
line: number;
|
|
172
|
-
offset?: number
|
|
244
|
+
offset?: number;
|
|
173
245
|
lastModification: number;
|
|
174
246
|
};
|
|
175
247
|
initialSelectionInfo: {
|
|
@@ -177,18 +249,25 @@ export declare const openFile: import("@reduxjs/toolkit").AsyncThunk<ITab<any, P
|
|
|
177
249
|
lastModification: number;
|
|
178
250
|
};
|
|
179
251
|
diffContent: string;
|
|
180
|
-
attributes: import(
|
|
181
|
-
source: import(
|
|
182
|
-
editor: import(
|
|
183
|
-
ext: import(
|
|
252
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
253
|
+
source: import('@ws-ui/shared').ISource;
|
|
254
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
255
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
184
256
|
kind: string;
|
|
185
257
|
}>> | null, IOpenFilePayload, {
|
|
186
258
|
state: AppState;
|
|
259
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
260
|
+
extra?: unknown;
|
|
261
|
+
rejectValue?: unknown;
|
|
262
|
+
serializedErrorType?: unknown;
|
|
263
|
+
pendingMeta?: unknown;
|
|
264
|
+
fulfilledMeta?: unknown;
|
|
265
|
+
rejectedMeta?: unknown;
|
|
187
266
|
}>;
|
|
188
|
-
export declare const openFileAtLine: import(
|
|
267
|
+
export declare const openFileAtLine: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
189
268
|
initialLineInfo: {
|
|
190
269
|
line: number;
|
|
191
|
-
offset?: number
|
|
270
|
+
offset?: number;
|
|
192
271
|
lastModification: number;
|
|
193
272
|
};
|
|
194
273
|
initialSelectionInfo: {
|
|
@@ -196,19 +275,26 @@ export declare const openFileAtLine: import("@reduxjs/toolkit").AsyncThunk<ITab<
|
|
|
196
275
|
lastModification: number;
|
|
197
276
|
};
|
|
198
277
|
diffContent: string;
|
|
199
|
-
attributes: import(
|
|
200
|
-
source: import(
|
|
201
|
-
editor: import(
|
|
202
|
-
ext: import(
|
|
278
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
279
|
+
source: import('@ws-ui/shared').ISource;
|
|
280
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
281
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
203
282
|
kind: string;
|
|
204
283
|
}>>, {
|
|
205
284
|
file: IFileInfo;
|
|
206
285
|
line: number;
|
|
207
|
-
offset?: number
|
|
286
|
+
offset?: number;
|
|
208
287
|
}, {
|
|
209
288
|
state: AppState;
|
|
289
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
290
|
+
extra?: unknown;
|
|
291
|
+
rejectValue?: unknown;
|
|
292
|
+
serializedErrorType?: unknown;
|
|
293
|
+
pendingMeta?: unknown;
|
|
294
|
+
fulfilledMeta?: unknown;
|
|
295
|
+
rejectedMeta?: unknown;
|
|
210
296
|
}>;
|
|
211
|
-
export declare const injectContentAtLine: import(
|
|
297
|
+
export declare const injectContentAtLine: import('@reduxjs/toolkit').AsyncThunk<{
|
|
212
298
|
path: string;
|
|
213
299
|
content: string;
|
|
214
300
|
line: number;
|
|
@@ -216,15 +302,24 @@ export declare const injectContentAtLine: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
216
302
|
path: string;
|
|
217
303
|
content: string;
|
|
218
304
|
line: number;
|
|
219
|
-
}, {
|
|
305
|
+
}, {
|
|
306
|
+
state?: unknown;
|
|
307
|
+
dispatch?: import('redux').Dispatch;
|
|
308
|
+
extra?: unknown;
|
|
309
|
+
rejectValue?: unknown;
|
|
310
|
+
serializedErrorType?: unknown;
|
|
311
|
+
pendingMeta?: unknown;
|
|
312
|
+
fulfilledMeta?: unknown;
|
|
313
|
+
rejectedMeta?: unknown;
|
|
314
|
+
}>;
|
|
220
315
|
export interface IOpenFileAtSelectionPayload {
|
|
221
316
|
file: IFileInfo;
|
|
222
317
|
selection: ITextEditorSelection;
|
|
223
318
|
}
|
|
224
|
-
export declare const openFileAtSelection: import(
|
|
319
|
+
export declare const openFileAtSelection: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
225
320
|
initialLineInfo: {
|
|
226
321
|
line: number;
|
|
227
|
-
offset?: number
|
|
322
|
+
offset?: number;
|
|
228
323
|
lastModification: number;
|
|
229
324
|
};
|
|
230
325
|
initialSelectionInfo: {
|
|
@@ -232,33 +327,61 @@ export declare const openFileAtSelection: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
232
327
|
lastModification: number;
|
|
233
328
|
};
|
|
234
329
|
diffContent: string;
|
|
235
|
-
attributes: import(
|
|
236
|
-
source: import(
|
|
237
|
-
editor: import(
|
|
238
|
-
ext: import(
|
|
330
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
331
|
+
source: import('@ws-ui/shared').ISource;
|
|
332
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
333
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
239
334
|
kind: string;
|
|
240
335
|
}>>, IOpenFileAtSelectionPayload, {
|
|
241
336
|
state: AppState;
|
|
337
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
338
|
+
extra?: unknown;
|
|
339
|
+
rejectValue?: unknown;
|
|
340
|
+
serializedErrorType?: unknown;
|
|
341
|
+
pendingMeta?: unknown;
|
|
342
|
+
fulfilledMeta?: unknown;
|
|
343
|
+
rejectedMeta?: unknown;
|
|
242
344
|
}>;
|
|
243
|
-
export declare const deleteFile: import(
|
|
345
|
+
export declare const deleteFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
244
346
|
deleted: boolean;
|
|
245
347
|
node: ITreeItem;
|
|
246
348
|
}, ITreeItem, {
|
|
247
349
|
state: AppState;
|
|
350
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
351
|
+
extra?: unknown;
|
|
352
|
+
rejectValue?: unknown;
|
|
353
|
+
serializedErrorType?: unknown;
|
|
354
|
+
pendingMeta?: unknown;
|
|
355
|
+
fulfilledMeta?: unknown;
|
|
356
|
+
rejectedMeta?: unknown;
|
|
248
357
|
}>;
|
|
249
|
-
export declare const deleteFolder: import(
|
|
358
|
+
export declare const deleteFolder: import('@reduxjs/toolkit').AsyncThunk<{
|
|
250
359
|
deleted: boolean;
|
|
251
360
|
node: ITreeItem;
|
|
252
361
|
}, ITreeItem, {
|
|
253
362
|
state: AppState;
|
|
363
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
364
|
+
extra?: unknown;
|
|
365
|
+
rejectValue?: unknown;
|
|
366
|
+
serializedErrorType?: unknown;
|
|
367
|
+
pendingMeta?: unknown;
|
|
368
|
+
fulfilledMeta?: unknown;
|
|
369
|
+
rejectedMeta?: unknown;
|
|
254
370
|
}>;
|
|
255
|
-
export declare const removeFileNode: import(
|
|
371
|
+
export declare const removeFileNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
256
372
|
deleted: boolean;
|
|
257
373
|
node: ITreeItem;
|
|
258
374
|
}, ITreeItem, {
|
|
259
375
|
state: AppState;
|
|
376
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
377
|
+
extra?: unknown;
|
|
378
|
+
rejectValue?: unknown;
|
|
379
|
+
serializedErrorType?: unknown;
|
|
380
|
+
pendingMeta?: unknown;
|
|
381
|
+
fulfilledMeta?: unknown;
|
|
382
|
+
rejectedMeta?: unknown;
|
|
260
383
|
}>;
|
|
261
|
-
export declare const renameFile: import(
|
|
384
|
+
export declare const renameFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
262
385
|
old: ITreeItem;
|
|
263
386
|
new: ITreeItem;
|
|
264
387
|
}, {
|
|
@@ -266,32 +389,60 @@ export declare const renameFile: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
266
389
|
newname: string;
|
|
267
390
|
}, {
|
|
268
391
|
state: AppState;
|
|
392
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
393
|
+
extra?: unknown;
|
|
394
|
+
rejectValue?: unknown;
|
|
395
|
+
serializedErrorType?: unknown;
|
|
396
|
+
pendingMeta?: unknown;
|
|
397
|
+
fulfilledMeta?: unknown;
|
|
398
|
+
rejectedMeta?: unknown;
|
|
269
399
|
}>;
|
|
270
|
-
export declare const relocateNode: import(
|
|
400
|
+
export declare const relocateNode: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
271
401
|
draggedNode: ITreeItem;
|
|
272
402
|
newLocation: ITreeItem;
|
|
273
403
|
}, {
|
|
274
404
|
state: AppState;
|
|
405
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
406
|
+
extra?: unknown;
|
|
407
|
+
rejectValue?: unknown;
|
|
408
|
+
serializedErrorType?: unknown;
|
|
409
|
+
pendingMeta?: unknown;
|
|
410
|
+
fulfilledMeta?: unknown;
|
|
411
|
+
rejectedMeta?: unknown;
|
|
275
412
|
}>;
|
|
276
|
-
export declare const duplicateNode: import(
|
|
413
|
+
export declare const duplicateNode: import('@reduxjs/toolkit').AsyncThunk<any, any, {
|
|
277
414
|
state: AppState;
|
|
415
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
416
|
+
extra?: unknown;
|
|
417
|
+
rejectValue?: unknown;
|
|
418
|
+
serializedErrorType?: unknown;
|
|
419
|
+
pendingMeta?: unknown;
|
|
420
|
+
fulfilledMeta?: unknown;
|
|
421
|
+
rejectedMeta?: unknown;
|
|
278
422
|
}>;
|
|
279
|
-
export declare const executeMethod: import(
|
|
423
|
+
export declare const executeMethod: import('@reduxjs/toolkit').AsyncThunk<void | {
|
|
280
424
|
[refName: string]: datasources.IComponentAction;
|
|
281
425
|
}, {
|
|
282
426
|
methodName: string;
|
|
283
|
-
namespace?: string
|
|
427
|
+
namespace?: string;
|
|
284
428
|
params?: {
|
|
285
429
|
name: string;
|
|
286
|
-
namespace?: string
|
|
287
|
-
isHardCoded?: boolean
|
|
288
|
-
type?:
|
|
289
|
-
}[]
|
|
430
|
+
namespace?: string;
|
|
431
|
+
isHardCoded?: boolean;
|
|
432
|
+
type?: "string" | "number" | "object" | "date" | "array" | "bool" | undefined;
|
|
433
|
+
}[];
|
|
290
434
|
resultingDataSource?: {
|
|
291
|
-
id?: string
|
|
292
|
-
namespace?: string
|
|
293
|
-
}
|
|
435
|
+
id?: string;
|
|
436
|
+
namespace?: string;
|
|
437
|
+
};
|
|
294
438
|
}, {
|
|
295
439
|
state: AppState;
|
|
440
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
441
|
+
extra?: unknown;
|
|
442
|
+
rejectValue?: unknown;
|
|
443
|
+
serializedErrorType?: unknown;
|
|
444
|
+
pendingMeta?: unknown;
|
|
445
|
+
fulfilledMeta?: unknown;
|
|
446
|
+
rejectedMeta?: unknown;
|
|
296
447
|
}>;
|
|
297
448
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IEditors, ITreeItem } from './types';
|
|
2
2
|
import { AppState } from '..';
|
|
3
3
|
import { INodeInfo } from '@ws-ui/shared';
|
|
4
|
+
|
|
4
5
|
export declare function getNodeRelativePath(nodePath: string): string;
|
|
5
6
|
export declare function getEditors(path: string): IEditors;
|
|
6
7
|
export declare function getExtension(path: string): "json" | "text";
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const stateReducer: import(
|
|
4
|
-
root: import(
|
|
5
|
-
explorer: import(
|
|
6
|
-
debugger: import(
|
|
7
|
-
settings: import(
|
|
1
|
+
import { default as rootReducer } from './root';
|
|
2
|
+
|
|
3
|
+
export declare const stateReducer: import('redux').Reducer<import('redux').CombinedState<{
|
|
4
|
+
root: import('./root').IRootState;
|
|
5
|
+
explorer: import('./explorer').ITreeItem[];
|
|
6
|
+
debugger: import('./debugger').IDebuggerState;
|
|
7
|
+
settings: import('./settings').ISettingsState;
|
|
8
8
|
catalog: {
|
|
9
9
|
state: "loading";
|
|
10
10
|
} | {
|
|
@@ -14,29 +14,14 @@ export declare const stateReducer: import("redux").Reducer<import("redux").Combi
|
|
|
14
14
|
state: "error";
|
|
15
15
|
error: string;
|
|
16
16
|
};
|
|
17
|
-
roles:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
confirmed?: boolean | undefined;
|
|
26
|
-
};
|
|
27
|
-
date?: string | undefined;
|
|
28
|
-
privileges: import("./roles").TById;
|
|
29
|
-
roles: import("./roles").TRolesDict;
|
|
30
|
-
forceLogin?: boolean | undefined;
|
|
31
|
-
selectedTab: "roles" | "privileges";
|
|
32
|
-
};
|
|
33
|
-
sharedDatasources: import("./shared-datasources").ISharedDatasourcesState;
|
|
34
|
-
savedConditions: import("immer/dist/internal.js").WritableDraft<import("./shared-conditions").ISavedConditionsState>;
|
|
35
|
-
webforms: import("./webforms").IWebformEditorState;
|
|
36
|
-
modals: import("./modals").IModalsState;
|
|
37
|
-
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("./shared-css").ISharedCSSState>;
|
|
38
|
-
model: import("./model").IModelState;
|
|
39
|
-
}>, import("redux").AnyAction>;
|
|
17
|
+
roles: import('./roles').IRolesState;
|
|
18
|
+
sharedDatasources: import('./shared-datasources').ISharedDatasourcesState;
|
|
19
|
+
savedConditions: import('./shared-conditions').ISavedConditionsState;
|
|
20
|
+
webforms: import('./webforms').IWebformEditorState;
|
|
21
|
+
modals: import('./modals').IModalsState;
|
|
22
|
+
sharedCSS: import('./shared-css').ISharedCSSState;
|
|
23
|
+
model: import('./model').IModelState;
|
|
24
|
+
}>, import('redux').AnyAction>;
|
|
40
25
|
export { rootReducer };
|
|
41
26
|
export type AppState = ReturnType<typeof stateReducer>;
|
|
42
27
|
export * from './catalog';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { IModal } from '@ws-ui/shared';
|
|
2
2
|
import { ICloseModalAction, ICreateModalAction, IEditModalAction, IRemoveModalAction } from './types';
|
|
3
|
+
|
|
3
4
|
export interface IModalsState {
|
|
4
5
|
list: IModal[];
|
|
5
6
|
}
|
|
6
|
-
declare const stateSlice: import(
|
|
7
|
-
createModal: (state: import(
|
|
8
|
-
editModal: (state: import(
|
|
9
|
-
removeModal: (state: import(
|
|
10
|
-
closeModal: (state: import(
|
|
7
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<IModalsState, {
|
|
8
|
+
createModal: (state: import('immer/dist/internal.js').WritableDraft<IModalsState>, action: ICreateModalAction) => void;
|
|
9
|
+
editModal: (state: import('immer/dist/internal.js').WritableDraft<IModalsState>, action: IEditModalAction) => void;
|
|
10
|
+
removeModal: (state: import('immer/dist/internal.js').WritableDraft<IModalsState>, action: IRemoveModalAction) => void;
|
|
11
|
+
closeModal: (state: import('immer/dist/internal.js').WritableDraft<IModalsState>, action: ICloseModalAction) => void;
|
|
11
12
|
}, "modals">;
|
|
12
|
-
export declare const createModal: import(
|
|
13
|
+
export declare const createModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<IModal, "modals/createModal">, removeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "modals/removeModal">, closeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
13
14
|
id: string;
|
|
14
|
-
reason?: import(
|
|
15
|
-
},
|
|
15
|
+
reason?: import('@ws-ui/shared').ModalCloseReason;
|
|
16
|
+
}, "modals/closeModal">, editModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
16
17
|
id: string;
|
|
17
|
-
} & Partial<Pick<IModal, "views" | "title">>,
|
|
18
|
+
} & Partial<Pick<IModal, "views" | "title">>, "modals/editModal">;
|
|
18
19
|
export default stateSlice;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IModal, ModalType } from '@ws-ui/shared';
|
|
2
|
+
|
|
2
3
|
interface IOpenModalPayload extends Omit<IModal, 'id' | 'isOpen' | 'type'> {
|
|
3
4
|
type?: ModalType;
|
|
4
5
|
}
|
|
@@ -6,5 +7,14 @@ interface IOpenModalReturnValue {
|
|
|
6
7
|
confirmed?: boolean;
|
|
7
8
|
options?: Record<string, boolean>;
|
|
8
9
|
}
|
|
9
|
-
export declare const openModal: import(
|
|
10
|
+
export declare const openModal: import('@reduxjs/toolkit').AsyncThunk<IOpenModalReturnValue, IOpenModalPayload, {
|
|
11
|
+
state?: unknown;
|
|
12
|
+
dispatch?: import('redux').Dispatch;
|
|
13
|
+
extra?: unknown;
|
|
14
|
+
rejectValue?: unknown;
|
|
15
|
+
serializedErrorType?: unknown;
|
|
16
|
+
pendingMeta?: unknown;
|
|
17
|
+
fulfilledMeta?: unknown;
|
|
18
|
+
rejectedMeta?: unknown;
|
|
19
|
+
}>;
|
|
10
20
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ServerModel, ModelNode } from '
|
|
1
|
+
import { ServerModel, ModelNode } from './types';
|
|
2
|
+
|
|
2
3
|
export declare const serializeModel: (nodes: ModelNode[], modelProps: Partial<{
|
|
3
4
|
version: string;
|
|
4
5
|
backgroundColor: string;
|
|
5
6
|
backgroundImage: string;
|
|
6
|
-
backgroundVariant:
|
|
7
|
-
zoom: number;
|
|
7
|
+
backgroundVariant: "dotted" | "grid" | "none";
|
|
8
8
|
}>) => ServerModel;
|
|
9
9
|
export declare function getDefaultName(prefix: string, _propertyKey: string, items: Record<string, any>): string;
|
|
10
10
|
export declare const isRelatedEntityAttr: (attribute: catalog.IAttribute) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="@ws-ui/shared/dist/declarations/datasources/interfaces/catalog" />
|
|
2
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
3
|
export type IModelState = {
|
|
4
4
|
model: {
|
|
5
5
|
dataClasses: Record<string, catalog.IDataClass>;
|
|
@@ -20,15 +20,12 @@ export declare const FLAGS_KEYS: {
|
|
|
20
20
|
DATACLASS_DELETE: string;
|
|
21
21
|
DATACLASS_DRAGGABLE: string;
|
|
22
22
|
};
|
|
23
|
-
declare const stateSlice: import(
|
|
24
|
-
setModelFlag(state: IModelState, action: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
type: string;
|
|
29
|
-
}): void;
|
|
23
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<IModelState, {
|
|
24
|
+
setModelFlag(state: IModelState, action: PayloadAction<{
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>): void;
|
|
30
27
|
}, "Models">;
|
|
31
|
-
export declare const setModelFlag: import(
|
|
28
|
+
export declare const setModelFlag: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
32
29
|
[key: string]: any;
|
|
33
|
-
},
|
|
30
|
+
}, "Models/setModelFlag">;
|
|
34
31
|
export default stateSlice;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export declare const useModelSelector: () => import(
|
|
1
|
+
export declare const useModelSelector: () => import('./reducer').IModelState;
|
|
2
2
|
export declare const useDataclasses: () => Record<string, catalog.IDataClass>;
|
|
3
3
|
export declare const useCollections: () => Record<string, catalog.IDataClass>;
|
|
4
4
|
export declare const useDataclass: (dataclassId: string) => catalog.IDataClass;
|
|
5
5
|
export declare const useAttribute: (dataclassId: string, attributeId: string) => catalog.IAttribute | undefined;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const useModelViewport: () => {
|
|
7
|
+
zoom: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
} | undefined;
|
|
7
11
|
export declare const useModelFlags: () => {
|
|
8
12
|
deleteDataclass: any;
|
|
9
13
|
draggableDataclass: any;
|