@ws-ui/store 0.3.13 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/index.cjs.js +57 -68
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7900 -7883
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/reducer.d.ts +3 -3
- package/dist/modules/catalog/thunks.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +40 -40
- package/dist/modules/debugger/thunks.d.ts +2 -2
- package/dist/modules/explorer/reducer.d.ts +9 -9
- package/dist/modules/explorer/thunks.d.ts +49 -36
- package/dist/modules/modals/reducer.d.ts +5 -5
- package/dist/modules/modals/thunks.d.ts +1 -1
- package/dist/modules/model/helpers.d.ts +1 -1
- package/dist/modules/model/selectors.d.ts +1 -0
- package/dist/modules/model/subjects.d.ts +1 -1
- package/dist/modules/model/thunks.d.ts +8 -8
- package/dist/modules/model/utils.d.ts +3 -3
- package/dist/modules/roles/reducer.d.ts +22 -12
- package/dist/modules/roles/thunks.d.ts +4 -3
- package/dist/modules/root/reducer.d.ts +56 -47
- package/dist/modules/root/thunks.d.ts +27 -27
- package/dist/modules/settings/thunks.d.ts +2 -2
- package/dist/modules/shared-conditions/reducer.d.ts +10 -10
- package/dist/modules/shared-conditions/thunks.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +4 -4
- package/dist/modules/shared-css/thunks.d.ts +1 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -0
- package/dist/modules/shared-datasources/reducer.d.ts +1 -1
- package/dist/modules/shared-datasources/thunks.d.ts +10 -10
- package/dist/modules/shared-datasources/utils.d.ts +6 -0
- package/dist/modules/tabs/selectors.d.ts +3 -3
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +10 -10
- package/dist/modules/webforms/thunks.d.ts +102 -15
- package/dist/package.json +61 -0
- package/dist/selectors/catalog.d.ts +1 -0
- package/dist/selectors/common.d.ts +44 -44
- package/dist/selectors/components.d.ts +8 -8
- package/dist/selectors/datasources.d.ts +123 -75
- package/dist/selectors/debugger.d.ts +9 -9
- package/dist/selectors/explorer.d.ts +369 -327
- package/dist/selectors/modals.d.ts +12 -12
- package/dist/selectors/roles.d.ts +104 -102
- package/dist/selectors/settings.d.ts +136 -136
- package/dist/selectors/states.d.ts +3 -3
- package/dist/selectors/styles.d.ts +60 -60
- package/dist/selectors/tabs.d.ts +5 -3
- package/dist/selectors/webforms.d.ts +157 -157
- package/dist/store.d.ts +1 -1
- package/package.json +10 -17
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
1
2
|
/**
|
|
2
3
|
* Returns the list of declared datasources in the current tab.
|
|
3
4
|
* @param tabPath the current tab path.
|
|
4
5
|
* @returns datasources or an empty array if not found.
|
|
5
6
|
*/
|
|
6
7
|
export declare const selectDatasourcesByPath: (tabPath: string) => ((state: import('redux').EmptyObject & {
|
|
7
|
-
root: import('
|
|
8
|
-
explorer: import('
|
|
9
|
-
debugger: import('
|
|
10
|
-
settings: import('
|
|
8
|
+
root: import('../modules').IRootState;
|
|
9
|
+
explorer: import('../modules').ITreeItem[];
|
|
10
|
+
debugger: import('../modules').IDebuggerState;
|
|
11
|
+
settings: import('../modules').ISettingsState;
|
|
11
12
|
catalog: {
|
|
12
13
|
state: "loading";
|
|
13
14
|
} | {
|
|
@@ -17,14 +18,14 @@ export declare const selectDatasourcesByPath: (tabPath: string) => ((state: impo
|
|
|
17
18
|
state: "error";
|
|
18
19
|
error: string;
|
|
19
20
|
};
|
|
20
|
-
roles: import('
|
|
21
|
-
sharedDatasources: import('
|
|
22
|
-
savedConditions: import('
|
|
23
|
-
webforms: import('
|
|
24
|
-
modals: import('
|
|
25
|
-
sharedCSS: import('
|
|
26
|
-
model: import('
|
|
27
|
-
}) =>
|
|
21
|
+
roles: import('../modules').IRolesState;
|
|
22
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
23
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
24
|
+
webforms: import('../modules').IWebformEditorState;
|
|
25
|
+
modals: import('../modules').IModalsState;
|
|
26
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
27
|
+
model: import('../modules').IModelState;
|
|
28
|
+
}) => any[]) & import('reselect').OutputSelectorFields<(args_0: import('../modules').IRootState) => any[], {
|
|
28
29
|
clearCache: () => void;
|
|
29
30
|
}> & {
|
|
30
31
|
clearCache: () => void;
|
|
@@ -37,10 +38,10 @@ export declare const selectDatasourcesByPath: (tabPath: string) => ((state: impo
|
|
|
37
38
|
* @returns datasource or undefined if not found.
|
|
38
39
|
*/
|
|
39
40
|
export declare const selectDatasource: (id: string, namespace: string, tabPath: string) => ((state: import('redux').EmptyObject & {
|
|
40
|
-
root: import('
|
|
41
|
-
explorer: import('
|
|
42
|
-
debugger: import('
|
|
43
|
-
settings: import('
|
|
41
|
+
root: import('../modules').IRootState;
|
|
42
|
+
explorer: import('../modules').ITreeItem[];
|
|
43
|
+
debugger: import('../modules').IDebuggerState;
|
|
44
|
+
settings: import('../modules').ISettingsState;
|
|
44
45
|
catalog: {
|
|
45
46
|
state: "loading";
|
|
46
47
|
} | {
|
|
@@ -50,18 +51,18 @@ export declare const selectDatasource: (id: string, namespace: string, tabPath:
|
|
|
50
51
|
state: "error";
|
|
51
52
|
error: string;
|
|
52
53
|
};
|
|
53
|
-
roles: import('
|
|
54
|
-
sharedDatasources: import('
|
|
55
|
-
savedConditions: import('
|
|
56
|
-
webforms: import('
|
|
57
|
-
modals: import('
|
|
58
|
-
sharedCSS: import('
|
|
59
|
-
model: import('
|
|
60
|
-
}) =>
|
|
61
|
-
root: import('
|
|
62
|
-
explorer: import('
|
|
63
|
-
debugger: import('
|
|
64
|
-
settings: import('
|
|
54
|
+
roles: import('../modules').IRolesState;
|
|
55
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
56
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
57
|
+
webforms: import('../modules').IWebformEditorState;
|
|
58
|
+
modals: import('../modules').IModalsState;
|
|
59
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
60
|
+
model: import('../modules').IModelState;
|
|
61
|
+
}) => any) & import('reselect').OutputSelectorFields<(args_0: import('redux').CombinedState<{
|
|
62
|
+
root: import('../modules').IRootState;
|
|
63
|
+
explorer: import('../modules').ITreeItem[];
|
|
64
|
+
debugger: import('../modules').IDebuggerState;
|
|
65
|
+
settings: import('../modules').ISettingsState;
|
|
65
66
|
catalog: {
|
|
66
67
|
state: "loading";
|
|
67
68
|
} | {
|
|
@@ -71,14 +72,14 @@ export declare const selectDatasource: (id: string, namespace: string, tabPath:
|
|
|
71
72
|
state: "error";
|
|
72
73
|
error: string;
|
|
73
74
|
};
|
|
74
|
-
roles: import('
|
|
75
|
-
sharedDatasources: import('
|
|
76
|
-
savedConditions: import('
|
|
77
|
-
webforms: import('
|
|
78
|
-
modals: import('
|
|
79
|
-
sharedCSS: import('
|
|
80
|
-
model: import('
|
|
81
|
-
}>) =>
|
|
75
|
+
roles: import('../modules').IRolesState;
|
|
76
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
77
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
78
|
+
webforms: import('../modules').IWebformEditorState;
|
|
79
|
+
modals: import('../modules').IModalsState;
|
|
80
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
81
|
+
model: import('../modules').IModelState;
|
|
82
|
+
}>) => any, {
|
|
82
83
|
clearCache: () => void;
|
|
83
84
|
}> & {
|
|
84
85
|
clearCache: () => void;
|
|
@@ -87,10 +88,10 @@ export declare const selectDatasource: (id: string, namespace: string, tabPath:
|
|
|
87
88
|
* Returns the shared datasources namespaces.
|
|
88
89
|
*/
|
|
89
90
|
export declare const selectSharedDatasources: ((state: import('redux').EmptyObject & {
|
|
90
|
-
root: import('
|
|
91
|
-
explorer: import('
|
|
92
|
-
debugger: import('
|
|
93
|
-
settings: import('
|
|
91
|
+
root: import('../modules').IRootState;
|
|
92
|
+
explorer: import('../modules').ITreeItem[];
|
|
93
|
+
debugger: import('../modules').IDebuggerState;
|
|
94
|
+
settings: import('../modules').ISettingsState;
|
|
94
95
|
catalog: {
|
|
95
96
|
state: "loading";
|
|
96
97
|
} | {
|
|
@@ -100,20 +101,20 @@ export declare const selectSharedDatasources: ((state: import('redux').EmptyObje
|
|
|
100
101
|
state: "error";
|
|
101
102
|
error: string;
|
|
102
103
|
};
|
|
103
|
-
roles: import('
|
|
104
|
-
sharedDatasources: import('
|
|
105
|
-
savedConditions: import('
|
|
106
|
-
webforms: import('
|
|
107
|
-
modals: import('
|
|
108
|
-
sharedCSS: import('
|
|
109
|
-
model: import('
|
|
104
|
+
roles: import('../modules').IRolesState;
|
|
105
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
106
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
107
|
+
webforms: import('../modules').IWebformEditorState;
|
|
108
|
+
modals: import('../modules').IModalsState;
|
|
109
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
110
|
+
model: import('../modules').IModelState;
|
|
110
111
|
}) => {
|
|
111
|
-
[key: string]:
|
|
112
|
+
[key: string]: any[];
|
|
112
113
|
}) & import('reselect').OutputSelectorFields<(args_0: import('redux').CombinedState<{
|
|
113
|
-
root: import('
|
|
114
|
-
explorer: import('
|
|
115
|
-
debugger: import('
|
|
116
|
-
settings: import('
|
|
114
|
+
root: import('../modules').IRootState;
|
|
115
|
+
explorer: import('../modules').ITreeItem[];
|
|
116
|
+
debugger: import('../modules').IDebuggerState;
|
|
117
|
+
settings: import('../modules').ISettingsState;
|
|
117
118
|
catalog: {
|
|
118
119
|
state: "loading";
|
|
119
120
|
} | {
|
|
@@ -123,20 +124,67 @@ export declare const selectSharedDatasources: ((state: import('redux').EmptyObje
|
|
|
123
124
|
state: "error";
|
|
124
125
|
error: string;
|
|
125
126
|
};
|
|
126
|
-
roles: import('
|
|
127
|
-
sharedDatasources: import('
|
|
128
|
-
savedConditions: import('
|
|
129
|
-
webforms: import('
|
|
130
|
-
modals: import('
|
|
131
|
-
sharedCSS: import('
|
|
132
|
-
model: import('
|
|
127
|
+
roles: import('../modules').IRolesState;
|
|
128
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
129
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
130
|
+
webforms: import('../modules').IWebformEditorState;
|
|
131
|
+
modals: import('../modules').IModalsState;
|
|
132
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
133
|
+
model: import('../modules').IModelState;
|
|
133
134
|
}>) => {
|
|
134
|
-
[key: string]:
|
|
135
|
+
[key: string]: any[];
|
|
135
136
|
}, {
|
|
136
137
|
clearCache: () => void;
|
|
137
138
|
}> & {
|
|
138
139
|
clearCache: () => void;
|
|
139
140
|
};
|
|
141
|
+
export declare const selectSharedDatasourcesState: ((state: import('redux').EmptyObject & {
|
|
142
|
+
root: import('../modules').IRootState;
|
|
143
|
+
explorer: import('../modules').ITreeItem[];
|
|
144
|
+
debugger: import('../modules').IDebuggerState;
|
|
145
|
+
settings: import('../modules').ISettingsState;
|
|
146
|
+
catalog: {
|
|
147
|
+
state: "loading";
|
|
148
|
+
} | {
|
|
149
|
+
state: "loaded";
|
|
150
|
+
model: datasources.IEnhancedCatalog;
|
|
151
|
+
} | {
|
|
152
|
+
state: "error";
|
|
153
|
+
error: string;
|
|
154
|
+
};
|
|
155
|
+
roles: import('../modules').IRolesState;
|
|
156
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
157
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
158
|
+
webforms: import('../modules').IWebformEditorState;
|
|
159
|
+
modals: import('../modules').IModalsState;
|
|
160
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
161
|
+
model: import('../modules').IModelState;
|
|
162
|
+
}) => "loading" | "error" | "loaded") & import('reselect').OutputSelectorFields<(args_0: import('redux').CombinedState<{
|
|
163
|
+
root: import('../modules').IRootState;
|
|
164
|
+
explorer: import('../modules').ITreeItem[];
|
|
165
|
+
debugger: import('../modules').IDebuggerState;
|
|
166
|
+
settings: import('../modules').ISettingsState;
|
|
167
|
+
catalog: {
|
|
168
|
+
state: "loading";
|
|
169
|
+
} | {
|
|
170
|
+
state: "loaded";
|
|
171
|
+
model: datasources.IEnhancedCatalog;
|
|
172
|
+
} | {
|
|
173
|
+
state: "error";
|
|
174
|
+
error: string;
|
|
175
|
+
};
|
|
176
|
+
roles: import('../modules').IRolesState;
|
|
177
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
178
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
179
|
+
webforms: import('../modules').IWebformEditorState;
|
|
180
|
+
modals: import('../modules').IModalsState;
|
|
181
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
182
|
+
model: import('../modules').IModelState;
|
|
183
|
+
}>) => "loading" | "error" | "loaded", {
|
|
184
|
+
clearCache: () => void;
|
|
185
|
+
}> & {
|
|
186
|
+
clearCache: () => void;
|
|
187
|
+
};
|
|
140
188
|
export type TDatasourcesFilter = (datasources.ICreateDataSource['type'] | datasources.ICreateDataSourceScalar['dataType'] | 'objectFromArray')[];
|
|
141
189
|
export type TDatasourcesNotIn = {
|
|
142
190
|
id: string;
|
|
@@ -147,11 +195,11 @@ export type TDatasourcesNotIn = {
|
|
|
147
195
|
* @param tabPath the current tab path.
|
|
148
196
|
* @returns datasource or an empty array if not found.
|
|
149
197
|
*/
|
|
150
|
-
export declare const selectAllDatasourcesByPath: (tabPath: string, exclude?:
|
|
151
|
-
root: import('
|
|
152
|
-
explorer: import('
|
|
153
|
-
debugger: import('
|
|
154
|
-
settings: import('
|
|
198
|
+
export declare const selectAllDatasourcesByPath: (tabPath: string, exclude?: 'private' | 'shared', filter?: TDatasourcesFilter | null, notIn?: TDatasourcesNotIn) => ((state: import('redux').EmptyObject & {
|
|
199
|
+
root: import('../modules').IRootState;
|
|
200
|
+
explorer: import('../modules').ITreeItem[];
|
|
201
|
+
debugger: import('../modules').IDebuggerState;
|
|
202
|
+
settings: import('../modules').ISettingsState;
|
|
155
203
|
catalog: {
|
|
156
204
|
state: "loading";
|
|
157
205
|
} | {
|
|
@@ -161,16 +209,16 @@ export declare const selectAllDatasourcesByPath: (tabPath: string, exclude?: "pr
|
|
|
161
209
|
state: "error";
|
|
162
210
|
error: string;
|
|
163
211
|
};
|
|
164
|
-
roles: import('
|
|
165
|
-
sharedDatasources: import('
|
|
166
|
-
savedConditions: import('
|
|
167
|
-
webforms: import('
|
|
168
|
-
modals: import('
|
|
169
|
-
sharedCSS: import('
|
|
170
|
-
model: import('
|
|
171
|
-
}) =>
|
|
172
|
-
[key: string]:
|
|
173
|
-
}) =>
|
|
212
|
+
roles: import('../modules').IRolesState;
|
|
213
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
214
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
215
|
+
webforms: import('../modules').IWebformEditorState;
|
|
216
|
+
modals: import('../modules').IModalsState;
|
|
217
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
218
|
+
model: import('../modules').IModelState;
|
|
219
|
+
}) => any[]) & import('reselect').OutputSelectorFields<(args_0: any[], args_1: {
|
|
220
|
+
[key: string]: any[];
|
|
221
|
+
}) => any[], {
|
|
174
222
|
clearCache: () => void;
|
|
175
223
|
}> & {
|
|
176
224
|
clearCache: () => void;
|
|
@@ -235,10 +235,10 @@ export declare const selectHighlightedLines: (threadId: number) => ((state: impo
|
|
|
235
235
|
model: import('../modules').IModelState;
|
|
236
236
|
}) => {
|
|
237
237
|
start: number;
|
|
238
|
-
end?: number;
|
|
238
|
+
end?: number | undefined;
|
|
239
239
|
} | null) & import('reselect').OutputSelectorFields<(args_0: IDebuggerSession[]) => {
|
|
240
240
|
start: number;
|
|
241
|
-
end?: number;
|
|
241
|
+
end?: number | undefined;
|
|
242
242
|
} | null, {
|
|
243
243
|
clearCache: () => void;
|
|
244
244
|
}> & {
|
|
@@ -396,11 +396,11 @@ export declare const selectSourceByThreadId: (threadId: number) => ((state: impo
|
|
|
396
396
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
397
397
|
model: import('../modules').IModelState;
|
|
398
398
|
}) => (import("vscode-debugprotocol").DebugProtocol.Source & {
|
|
399
|
-
codeDescriptorInfo?: import('@ws-ui/shared').ICodeDescriptor;
|
|
400
|
-
content?: string;
|
|
399
|
+
codeDescriptorInfo?: import('@ws-ui/shared').ICodeDescriptor | undefined;
|
|
400
|
+
content?: string | undefined;
|
|
401
401
|
}) | undefined) & import('reselect').OutputSelectorFields<(args_0: IDebuggerSession[]) => (import("vscode-debugprotocol").DebugProtocol.Source & {
|
|
402
|
-
codeDescriptorInfo?: import('@ws-ui/shared').ICodeDescriptor;
|
|
403
|
-
content?: string;
|
|
402
|
+
codeDescriptorInfo?: import('@ws-ui/shared').ICodeDescriptor | undefined;
|
|
403
|
+
content?: string | undefined;
|
|
404
404
|
}) | undefined, {
|
|
405
405
|
clearCache: () => void;
|
|
406
406
|
}> & {
|
|
@@ -542,7 +542,7 @@ export declare const selectExpressionsVariables: (threadId: number) => ((state:
|
|
|
542
542
|
}> & {
|
|
543
543
|
clearCache: () => void;
|
|
544
544
|
};
|
|
545
|
-
export declare const selectClassOffset: (filePath: string, type?: keyof IDebuggerData[
|
|
545
|
+
export declare const selectClassOffset: (filePath: string, type?: keyof IDebuggerData['breakpoints']) => ((state: import('redux').EmptyObject & {
|
|
546
546
|
root: import('../modules').IRootState;
|
|
547
547
|
explorer: import('../modules').ITreeItem[];
|
|
548
548
|
debugger: import('../modules').IDebuggerState;
|
|
@@ -596,7 +596,7 @@ export declare const selectExceptions: (threadId: number, fileType: FileFolderTy
|
|
|
596
596
|
formula: string;
|
|
597
597
|
formulaError_begin: number;
|
|
598
598
|
formulaError_end: number;
|
|
599
|
-
formulaError_indent?: number;
|
|
599
|
+
formulaError_indent?: number | undefined;
|
|
600
600
|
errorIdentifier: string;
|
|
601
601
|
}[]) & import('reselect').OutputSelectorFields<(args_0: IDebuggerSession[]) => {
|
|
602
602
|
locationLine: number;
|
|
@@ -605,7 +605,7 @@ export declare const selectExceptions: (threadId: number, fileType: FileFolderTy
|
|
|
605
605
|
formula: string;
|
|
606
606
|
formulaError_begin: number;
|
|
607
607
|
formulaError_end: number;
|
|
608
|
-
formulaError_indent?: number;
|
|
608
|
+
formulaError_indent?: number | undefined;
|
|
609
609
|
errorIdentifier: string;
|
|
610
610
|
}[], {
|
|
611
611
|
clearCache: () => void;
|