@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,6 +1,7 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IAppSettingsResponse } from '@ws-ui/shared';
|
|
3
3
|
import { TSetSettingPayload, TSettingPath } from './types';
|
|
4
|
+
|
|
4
5
|
export interface ISettingsState {
|
|
5
6
|
session: {
|
|
6
7
|
[key: string]: unknown;
|
|
@@ -13,33 +14,30 @@ export interface ISettingsState {
|
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
declare const stateSlice: import(
|
|
17
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISettingsState, {
|
|
17
18
|
setSetting(state: ISettingsState, action: TSetSettingPayload): void;
|
|
18
19
|
setSettings(state: ISettingsState, action: PayloadAction<{
|
|
19
20
|
path: TSettingPath;
|
|
20
21
|
value: any;
|
|
21
22
|
}>): void;
|
|
22
|
-
setSettingsAsText(state: ISettingsState, action: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[key: string]: unknown;
|
|
27
|
-
};
|
|
23
|
+
setSettingsAsText(state: ISettingsState, action: PayloadAction<{
|
|
24
|
+
path: TSettingPath;
|
|
25
|
+
settings: {
|
|
26
|
+
[key: string]: unknown;
|
|
28
27
|
};
|
|
29
|
-
|
|
30
|
-
}): void;
|
|
28
|
+
}>): void;
|
|
31
29
|
}, "settings">;
|
|
32
|
-
export declare const setSetting: import(
|
|
30
|
+
export declare const setSetting: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
33
31
|
path: TSettingPath;
|
|
34
32
|
settingsKey: string;
|
|
35
33
|
value: any;
|
|
36
|
-
},
|
|
34
|
+
}, "settings/setSetting">, setSettings: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
37
35
|
path: TSettingPath;
|
|
38
36
|
value: any;
|
|
39
|
-
},
|
|
37
|
+
}, "settings/setSettings">, setSettingsAsText: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
40
38
|
path: TSettingPath;
|
|
41
39
|
settings: {
|
|
42
40
|
[key: string]: unknown;
|
|
43
41
|
};
|
|
44
|
-
},
|
|
42
|
+
}, "settings/setSettingsAsText">;
|
|
45
43
|
export default stateSlice;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { INodeInfo } from '@ws-ui/shared';
|
|
2
2
|
import { AppState } from '..';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export declare const fetchSettings: import('@reduxjs/toolkit').AsyncThunk<INodeInfo, void, {
|
|
4
5
|
state: AppState;
|
|
5
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;
|
|
6
23
|
}>;
|
|
7
|
-
export declare const fetchAppSettings: import("@reduxjs/toolkit").AsyncThunk<import("@ws-ui/shared").IAppSettingsResponse, void, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('redux').Reducer<import('./reducer').ISavedConditionsState>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export * from './reducer';
|
|
4
4
|
export * from './thunks';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { WebformStateCondition } from '@ws-ui/shared';
|
|
3
|
+
|
|
3
4
|
export type ISavedConditionsState = {
|
|
4
5
|
state: 'loading' | 'loaded' | 'error' | 'unknown';
|
|
5
6
|
conditions: WebformStateCondition[];
|
|
@@ -7,37 +8,37 @@ export type ISavedConditionsState = {
|
|
|
7
8
|
};
|
|
8
9
|
export declare const deepDeleteCondition: (condition: WebformStateCondition, targetId: string) => WebformStateCondition | null;
|
|
9
10
|
export declare const deepSanitizeCondition: (condition: WebformStateCondition) => WebformStateCondition;
|
|
10
|
-
declare const stateSlice: import(
|
|
11
|
-
updateSavedConditions: (state: import(
|
|
11
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISavedConditionsState, {
|
|
12
|
+
updateSavedConditions: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
12
13
|
conditions: WebformStateCondition[];
|
|
13
|
-
}>) => import(
|
|
14
|
-
setSavedCondition: (state: import(
|
|
14
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
15
|
+
setSavedCondition: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
15
16
|
id: string;
|
|
16
17
|
condition: WebformStateCondition;
|
|
17
|
-
}>) => import(
|
|
18
|
-
updateSavedConditionDs: (state: import(
|
|
18
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
19
|
+
updateSavedConditionDs: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
19
20
|
old_reference: string;
|
|
20
21
|
new_reference: string;
|
|
21
22
|
}>) => void;
|
|
22
|
-
addSavedCondition: (state: import(
|
|
23
|
-
removeSavedCondition: (state: import(
|
|
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<{
|
|
24
25
|
id: string;
|
|
25
|
-
}>) => import(
|
|
26
|
-
initSavedConditions: (state: import(
|
|
26
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
27
|
+
initSavedConditions: (state: import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
27
28
|
conditions: WebformStateCondition[];
|
|
28
|
-
}>) => import(
|
|
29
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISavedConditionsState>;
|
|
29
30
|
}, "shared-conditions">;
|
|
30
|
-
export declare const updateSavedConditions: import(
|
|
31
|
+
export declare const updateSavedConditions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
31
32
|
conditions: WebformStateCondition[];
|
|
32
|
-
},
|
|
33
|
+
}, "shared-conditions/updateSavedConditions">, setSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
33
34
|
id: string;
|
|
34
35
|
condition: WebformStateCondition;
|
|
35
|
-
},
|
|
36
|
+
}, "shared-conditions/setSavedCondition">, updateSavedConditionDs: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
36
37
|
old_reference: string;
|
|
37
38
|
new_reference: string;
|
|
38
|
-
},
|
|
39
|
+
}, "shared-conditions/updateSavedConditionDs">, addSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<WebformStateCondition, "shared-conditions/addSavedCondition">, removeSavedCondition: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
39
40
|
id: string;
|
|
40
|
-
},
|
|
41
|
+
}, "shared-conditions/removeSavedCondition">, initSavedConditions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
41
42
|
conditions: WebformStateCondition[];
|
|
42
|
-
},
|
|
43
|
+
}, "shared-conditions/initSavedConditions">;
|
|
43
44
|
export default stateSlice;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { WebformStateCondition } from '@ws-ui/shared';
|
|
2
2
|
import { AppState } from '..';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export declare const fetchSavedConditions: import('@reduxjs/toolkit').AsyncThunk<WebformStateCondition[], void, {
|
|
4
5
|
state: AppState;
|
|
5
6
|
rejectValue: string;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
6
13
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: 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';
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
3
|
+
|
|
3
4
|
export type ISharedCSSState = {
|
|
4
5
|
state: 'loading' | 'loaded' | 'error';
|
|
5
6
|
styles: IWebFormStyleClass[];
|
|
6
7
|
error?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const stateSlice: import(
|
|
9
|
-
updateSharedCss: (state: import(
|
|
9
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISharedCSSState, {
|
|
10
|
+
updateSharedCss: (state: import('immer/dist/internal.js').WritableDraft<ISharedCSSState>, action: PayloadAction<{
|
|
10
11
|
classes: IWebFormStyleClass[];
|
|
11
|
-
}>) => import(
|
|
12
|
-
initSharedCss: (state: import(
|
|
12
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISharedCSSState>;
|
|
13
|
+
initSharedCss: (state: import('immer/dist/internal.js').WritableDraft<ISharedCSSState>, action: PayloadAction<{
|
|
13
14
|
classes: IWebFormStyleClass[];
|
|
14
|
-
}>) => import(
|
|
15
|
+
}>) => import('immer/dist/internal.js').WritableDraft<ISharedCSSState>;
|
|
15
16
|
}, "shared-css">;
|
|
16
|
-
export declare const updateSharedCss: import(
|
|
17
|
+
export declare const updateSharedCss: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
17
18
|
classes: IWebFormStyleClass[];
|
|
18
|
-
},
|
|
19
|
+
}, "shared-css/updateSharedCss">, initSharedCss: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
19
20
|
classes: IWebFormStyleClass[];
|
|
20
|
-
},
|
|
21
|
+
}, "shared-css/initSharedCss">;
|
|
21
22
|
export default stateSlice;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
2
2
|
import { AppState } from '..';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export declare const fetchSharedCss: import('@reduxjs/toolkit').AsyncThunk<IWebFormStyleClass[], void, {
|
|
4
5
|
state: AppState;
|
|
5
6
|
rejectValue: string;
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
8
|
+
extra?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
6
13
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('redux').Reducer<import('./reducer').ISharedDatasourcesState>;
|
|
2
2
|
export default _default;
|
|
3
3
|
export * from './reducer';
|
|
4
4
|
export * from './thunks';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
3
|
export type ISharedDatasourcesState = {
|
|
4
4
|
state: 'loading' | 'loaded' | 'error';
|
|
5
5
|
sources: {
|
|
@@ -7,12 +7,12 @@ export type ISharedDatasourcesState = {
|
|
|
7
7
|
};
|
|
8
8
|
error?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const stateSlice: import(
|
|
11
|
-
addEmptyNamespace(state: import(
|
|
10
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISharedDatasourcesState, {
|
|
11
|
+
addEmptyNamespace(state: import('immer/dist/internal.js').WritableDraft<ISharedDatasourcesState>, action: PayloadAction<{
|
|
12
12
|
name: string;
|
|
13
13
|
}>): void;
|
|
14
14
|
}, "shared-datasources">;
|
|
15
|
-
export declare const addEmptyNamespace: import(
|
|
15
|
+
export declare const addEmptyNamespace: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
16
16
|
name: string;
|
|
17
|
-
},
|
|
17
|
+
}, "shared-datasources/addEmptyNamespace">;
|
|
18
18
|
export default stateSlice;
|
|
@@ -1,32 +1,73 @@
|
|
|
1
|
-
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
1
|
import { ISharedDatasourcesResponse } from '@ws-ui/shared';
|
|
3
|
-
import { AppState } from '
|
|
4
|
-
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
|
|
4
|
+
export declare const fetchSharedDatasources: import('@reduxjs/toolkit').AsyncThunk<ISharedDatasourcesResponse, void, {
|
|
5
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;
|
|
6
13
|
}>;
|
|
7
|
-
export declare const addSharedSource: import(
|
|
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 | undefined;
|
|
18
|
+
extra?: unknown;
|
|
19
|
+
serializedErrorType?: unknown;
|
|
20
|
+
pendingMeta?: unknown;
|
|
21
|
+
fulfilledMeta?: unknown;
|
|
22
|
+
rejectedMeta?: unknown;
|
|
10
23
|
}>;
|
|
11
|
-
export declare const editSharedSource: import(
|
|
24
|
+
export declare const editSharedSource: import('@reduxjs/toolkit').AsyncThunk<{
|
|
12
25
|
[key: string]: datasources.ICreateDataSource[];
|
|
13
|
-
}, datasources.ICreateDataSource, {
|
|
14
|
-
|
|
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, {
|
|
15
37
|
id: string;
|
|
16
38
|
namespace: string;
|
|
17
39
|
}, {
|
|
18
40
|
rejectValue: string;
|
|
19
41
|
state: AppState;
|
|
42
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
serializedErrorType?: unknown;
|
|
45
|
+
pendingMeta?: unknown;
|
|
46
|
+
fulfilledMeta?: unknown;
|
|
47
|
+
rejectedMeta?: unknown;
|
|
20
48
|
}>;
|
|
21
|
-
export declare const updateSharedDatasources: import(
|
|
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 | undefined;
|
|
53
|
+
extra?: unknown;
|
|
54
|
+
serializedErrorType?: unknown;
|
|
55
|
+
pendingMeta?: unknown;
|
|
56
|
+
fulfilledMeta?: unknown;
|
|
57
|
+
rejectedMeta?: unknown;
|
|
24
58
|
}>;
|
|
25
|
-
export declare const setDatasourceEvents: import(
|
|
59
|
+
export declare const setDatasourceEvents: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
26
60
|
tabPath: string;
|
|
27
61
|
name: string;
|
|
28
62
|
namespace: string;
|
|
29
63
|
events: webforms.WEvent[];
|
|
30
64
|
}, {
|
|
31
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;
|
|
32
73
|
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
settings: import("..").ISettingsState;
|
|
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;
|
|
7
6
|
catalog: {
|
|
8
7
|
state: "loading";
|
|
9
8
|
} | {
|
|
@@ -13,55 +12,40 @@ export declare const selectPanelByPath: (path: string) => ((state: import("redux
|
|
|
13
12
|
state: "error";
|
|
14
13
|
error: string;
|
|
15
14
|
};
|
|
16
|
-
roles:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
};
|
|
32
|
-
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
33
|
-
savedConditions: import("immer/dist/internal.js").WritableDraft<import("..").ISavedConditionsState>;
|
|
34
|
-
webforms: import("..").IWebformEditorState;
|
|
35
|
-
modals: import("..").IModalsState;
|
|
36
|
-
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("..").ISharedCSSState>;
|
|
37
|
-
model: import("..").IModelState;
|
|
38
|
-
}) => import("immer/dist/internal.js").WritableDraft<{
|
|
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
|
+
}) => {
|
|
39
23
|
isOpen: boolean;
|
|
40
24
|
type: string;
|
|
41
25
|
current: string;
|
|
42
|
-
lastSelected?: string
|
|
43
|
-
}
|
|
26
|
+
lastSelected?: string;
|
|
27
|
+
} | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').ITab<any, Partial<{
|
|
44
28
|
initialLineInfo: {
|
|
45
29
|
line: number;
|
|
46
|
-
offset?: number
|
|
30
|
+
offset?: number;
|
|
47
31
|
lastModification: number;
|
|
48
32
|
};
|
|
49
33
|
initialSelectionInfo: {
|
|
50
|
-
selection: import(
|
|
34
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
51
35
|
lastModification: number;
|
|
52
36
|
};
|
|
53
37
|
diffContent: string;
|
|
54
|
-
attributes: import(
|
|
55
|
-
source: import(
|
|
56
|
-
editor: import(
|
|
57
|
-
ext: import(
|
|
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;
|
|
58
42
|
kind: string;
|
|
59
|
-
}
|
|
43
|
+
}>>[]) => {
|
|
60
44
|
isOpen: boolean;
|
|
61
45
|
type: string;
|
|
62
46
|
current: string;
|
|
63
|
-
lastSelected?: string
|
|
64
|
-
}
|
|
47
|
+
lastSelected?: string;
|
|
48
|
+
} | undefined, {
|
|
65
49
|
clearCache: () => void;
|
|
66
50
|
}> & {
|
|
67
51
|
clearCache: () => void;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
debugger: import("..").IDebuggerState;
|
|
7
|
-
settings: import("..").ISettingsState;
|
|
1
|
+
export declare const listDsNamespaces: import('lodash').CurriedFunction2<string, import('redux').CombinedState<{
|
|
2
|
+
root: import('..').IRootState;
|
|
3
|
+
explorer: import('..').ITreeItem[];
|
|
4
|
+
debugger: import('..').IDebuggerState;
|
|
5
|
+
settings: import('..').ISettingsState;
|
|
8
6
|
catalog: {
|
|
9
7
|
state: "loading";
|
|
10
8
|
} | {
|
|
@@ -14,28 +12,13 @@ export declare const listDsNamespaces: import("lodash").CurriedFunction2<string,
|
|
|
14
12
|
state: "error";
|
|
15
13
|
error: string;
|
|
16
14
|
};
|
|
17
|
-
roles:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
};
|
|
33
|
-
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
34
|
-
savedConditions: import("immer/dist/internal.js").WritableDraft<import("..").ISavedConditionsState>;
|
|
35
|
-
webforms: import("./types").IWebformEditorState;
|
|
36
|
-
modals: import("..").IModalsState;
|
|
37
|
-
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("..").ISharedCSSState>;
|
|
38
|
-
model: import("..").IModelState;
|
|
15
|
+
roles: import('..').IRolesState;
|
|
16
|
+
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
17
|
+
savedConditions: import('..').ISavedConditionsState;
|
|
18
|
+
webforms: import('./types').IWebformEditorState;
|
|
19
|
+
modals: import('..').IModalsState;
|
|
20
|
+
sharedCSS: import('..').ISharedCSSState;
|
|
21
|
+
model: import('..').IModelState;
|
|
39
22
|
}>, {
|
|
40
23
|
[x: string]: datasources.ICreateDataSource[];
|
|
41
24
|
}>;
|
|
@@ -1,53 +1,51 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { ITemplatedGroup, ITemplatedGroupItem, IWebformEditorState, TAddComponentAction, TInspectAction, TRemoveComponentAction, TToggleInspectorAction } from './types';
|
|
3
3
|
import { IComponentTemplate, TDatasourceTheme } from '@ws-ui/shared';
|
|
4
|
+
|
|
4
5
|
export declare const FLAGS_INIT_STATE: {
|
|
5
6
|
[x: string]: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare const stateSlice: import(
|
|
8
|
-
toggleInspector: (state: import(
|
|
9
|
-
inspect: (state: import(
|
|
10
|
-
addComponent: (state: import(
|
|
11
|
-
editComponent: (state: import(
|
|
8
|
+
declare const stateSlice: import('@reduxjs/toolkit').Slice<IWebformEditorState, {
|
|
9
|
+
toggleInspector: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: TToggleInspectorAction) => void;
|
|
10
|
+
inspect: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: TInspectAction) => void;
|
|
11
|
+
addComponent: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: TAddComponentAction) => void;
|
|
12
|
+
editComponent: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: PayloadAction<{
|
|
12
13
|
id: string;
|
|
13
14
|
changes: Partial<IComponentTemplate>;
|
|
14
15
|
}>) => void;
|
|
15
|
-
removeComponent: (state: import(
|
|
16
|
-
setSelectedGroup: (state: import(
|
|
16
|
+
removeComponent: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: TRemoveComponentAction) => void;
|
|
17
|
+
setSelectedGroup: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: {
|
|
17
18
|
payload: {
|
|
18
19
|
selectedGroup: string;
|
|
19
20
|
};
|
|
20
21
|
}) => void;
|
|
21
|
-
setTemplatesData: (state: import(
|
|
22
|
+
setTemplatesData: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: {
|
|
22
23
|
payload: ITemplatedGroup[];
|
|
23
24
|
}) => void;
|
|
24
|
-
setTemplateData: (state: import(
|
|
25
|
+
setTemplateData: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: {
|
|
25
26
|
payload: {
|
|
26
27
|
group: string;
|
|
27
28
|
components: ITemplatedGroupItem[];
|
|
28
29
|
};
|
|
29
30
|
}) => void;
|
|
30
|
-
setDatasourcesTheme: (state: import(
|
|
31
|
+
setDatasourcesTheme: (state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: {
|
|
31
32
|
payload: TDatasourceTheme;
|
|
32
33
|
}) => void;
|
|
33
|
-
setWebformsFlag(state: import(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
type: string;
|
|
38
|
-
}): void;
|
|
34
|
+
setWebformsFlag(state: import('immer/dist/internal.js').WritableDraft<IWebformEditorState>, action: PayloadAction<{
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>): void;
|
|
39
37
|
}, "webforms">;
|
|
40
|
-
export declare const toggleInspector: import(
|
|
38
|
+
export declare const toggleInspector: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
41
39
|
type: "css" | "datasource";
|
|
42
|
-
},
|
|
40
|
+
}, "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
41
|
id: string;
|
|
44
42
|
changes: Partial<IComponentTemplate>;
|
|
45
|
-
},
|
|
43
|
+
}, "webforms/editComponent">, removeComponent: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "webforms/removeComponent">, setSelectedGroup: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
46
44
|
selectedGroup: string;
|
|
47
|
-
},
|
|
45
|
+
}, "webforms/setSelectedGroup">, setTemplatesData: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITemplatedGroup[], "webforms/setTemplatesData">, setTemplateData: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
48
46
|
group: string;
|
|
49
47
|
components: ITemplatedGroupItem[];
|
|
50
|
-
},
|
|
48
|
+
}, "webforms/setTemplateData">, setDatasourcesTheme: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | number, "webforms/setDatasourcesTheme">, setWebformsFlag: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
51
49
|
[key: string]: any;
|
|
52
|
-
},
|
|
50
|
+
}, "webforms/setWebformsFlag">;
|
|
53
51
|
export default stateSlice;
|