@ws-ui/store 0.3.2 → 0.3.5
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 +46 -59
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6546 -6599
- 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 -2
- 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 +1 -1
- 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 +1 -0
- 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 +1 -3
- 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 +2 -2
|
@@ -1,208 +1,200 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
3
|
-
import { ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
2
|
+
import { IWebFormStyleClass, ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
4
3
|
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TActionUpdateStateConditionDs, TResetComponentState } from './types';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
6
|
+
setWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
7
7
|
currentState: WebformState;
|
|
8
8
|
path: string;
|
|
9
9
|
}>): void;
|
|
10
|
-
copyToClipBoard(state: import(
|
|
11
|
-
setPanelState(state: import(
|
|
10
|
+
copyToClipBoard(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<IRootState["clipboard"]>): void;
|
|
11
|
+
setPanelState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<Partial<ITab["view"]["panel"]> & {
|
|
12
12
|
path: string;
|
|
13
13
|
}>): void;
|
|
14
|
-
openSettingsTab(state: import(
|
|
15
|
-
addDataSource(state: import(
|
|
16
|
-
addWebformState(state: import(
|
|
17
|
-
removeWebformState(state: import(
|
|
18
|
-
editWebformState(state: import(
|
|
19
|
-
updateStateConditionDs(state: import(
|
|
20
|
-
resetComponentState(state: import(
|
|
21
|
-
setDefaultWebformStates(state: import(
|
|
22
|
-
addDefaultWebformState(state: import(
|
|
23
|
-
removeDefaultWebformState(state: import(
|
|
24
|
-
removeDataSource(state: import(
|
|
25
|
-
setDataSources(state: import(
|
|
26
|
-
setTabs(state: import(
|
|
27
|
-
closeTab(state: import(
|
|
28
|
-
closeOthers(state: import(
|
|
29
|
-
closeAllTabs(state: import(
|
|
30
|
-
closeRightTabs(state: import(
|
|
31
|
-
closeLeftTabs(state: import(
|
|
32
|
-
closeSavedTabs(state: import(
|
|
33
|
-
confirmTab(state: import(
|
|
34
|
-
selectTab(state: import(
|
|
35
|
-
openTabUnselected(state: import(
|
|
36
|
-
selectTabByReference(state: import(
|
|
14
|
+
openSettingsTab(state: import('immer/dist/internal.js').WritableDraft<IRootState>): void;
|
|
15
|
+
addDataSource(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionAddDataSource): void;
|
|
16
|
+
addWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionAddWebformState): void;
|
|
17
|
+
removeWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionRemoveWebformState): void;
|
|
18
|
+
editWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionEditWebformState): void;
|
|
19
|
+
updateStateConditionDs(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionUpdateStateConditionDs): void;
|
|
20
|
+
resetComponentState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TResetComponentState): void;
|
|
21
|
+
setDefaultWebformStates(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionSetDefaultWebformStates): void;
|
|
22
|
+
addDefaultWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionAddDefaultWebformState): void;
|
|
23
|
+
removeDefaultWebformState(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionRemoveDefaultWebformState): void;
|
|
24
|
+
removeDataSource(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionRemoveDataSource): void;
|
|
25
|
+
setDataSources(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: TActionSetDataSources): void;
|
|
26
|
+
setTabs(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<ITab[]>): void;
|
|
27
|
+
closeTab(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<number>): void;
|
|
28
|
+
closeOthers(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
29
|
+
closeAllTabs(state: import('immer/dist/internal.js').WritableDraft<IRootState>): void;
|
|
30
|
+
closeRightTabs(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<number>): void;
|
|
31
|
+
closeLeftTabs(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<number>): void;
|
|
32
|
+
closeSavedTabs(state: import('immer/dist/internal.js').WritableDraft<IRootState>): void;
|
|
33
|
+
confirmTab(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
34
|
+
selectTab(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
35
|
+
openTabUnselected(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<ITab>): void;
|
|
36
|
+
selectTabByReference(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<ITab & {
|
|
37
37
|
isNew?: boolean;
|
|
38
38
|
}>): void;
|
|
39
|
-
setContent(state: import(
|
|
39
|
+
setContent(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
40
40
|
path: string;
|
|
41
41
|
content: any;
|
|
42
42
|
contentPath?: string;
|
|
43
43
|
}>): void;
|
|
44
|
-
setTabFlags(state: import(
|
|
44
|
+
setTabFlags(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
45
45
|
path: string;
|
|
46
46
|
flags: ITabFlags;
|
|
47
47
|
}>): void;
|
|
48
|
-
setTabsFlags(state: import(
|
|
48
|
+
setTabsFlags(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
49
49
|
tabs: string[];
|
|
50
50
|
flags: ITabFlags;
|
|
51
51
|
}>): void;
|
|
52
|
-
setTabExtra(state: import(
|
|
52
|
+
setTabExtra(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
53
53
|
path: string;
|
|
54
54
|
extra: ITabExtra;
|
|
55
55
|
flags?: ITabFlags;
|
|
56
56
|
}>): void;
|
|
57
|
-
addWebFormStyles(state: import(
|
|
57
|
+
addWebFormStyles(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<{
|
|
58
58
|
path: string;
|
|
59
59
|
styles: IWebFormStyleClass[];
|
|
60
60
|
}>): void;
|
|
61
|
-
changeTabEditor(state: import(
|
|
62
|
-
setHistoryContent(state: import(
|
|
63
|
-
unlockHistory(state: import(
|
|
64
|
-
undo(state: import(
|
|
65
|
-
redo(state: import(
|
|
61
|
+
changeTabEditor(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<ITab>): import('immer/dist/internal.js').WritableDraft<IRootState>;
|
|
62
|
+
setHistoryContent(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
63
|
+
unlockHistory(state: import('immer/dist/internal.js').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
64
|
+
undo(state: import('immer/dist/internal.js').WritableDraft<IRootState>): void;
|
|
65
|
+
redo(state: import('immer/dist/internal.js').WritableDraft<IRootState>): void;
|
|
66
66
|
}, "root">;
|
|
67
|
-
export declare const copyToClipBoard: import(
|
|
67
|
+
export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
68
68
|
payload: webforms.WEvent;
|
|
69
69
|
type: "event";
|
|
70
|
-
} | null,
|
|
70
|
+
} | null, "root/copyToClipBoard">, setTabs: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITab<any, Partial<{
|
|
71
71
|
initialLineInfo: {
|
|
72
72
|
line: number;
|
|
73
|
-
offset?: number
|
|
73
|
+
offset?: number;
|
|
74
74
|
lastModification: number;
|
|
75
75
|
};
|
|
76
76
|
initialSelectionInfo: {
|
|
77
|
-
selection: import(
|
|
77
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
78
78
|
lastModification: number;
|
|
79
79
|
};
|
|
80
80
|
diffContent: string;
|
|
81
|
-
attributes: import(
|
|
82
|
-
source: import(
|
|
83
|
-
editor: import(
|
|
84
|
-
ext: import(
|
|
81
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
82
|
+
source: import('@ws-ui/shared').ISource;
|
|
83
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
84
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
85
85
|
kind: string;
|
|
86
|
-
}>>[],
|
|
86
|
+
}>>[], "root/setTabs">, closeTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "root/closeTab">, setContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
87
87
|
path: string;
|
|
88
88
|
content: any;
|
|
89
|
-
contentPath?: string
|
|
90
|
-
},
|
|
89
|
+
contentPath?: string;
|
|
90
|
+
}, "root/setContent">, setTabFlags: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
91
91
|
path: string;
|
|
92
92
|
flags: ITabFlags;
|
|
93
|
-
},
|
|
93
|
+
}, "root/setTabFlags">, setTabsFlags: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
94
94
|
tabs: string[];
|
|
95
95
|
flags: ITabFlags;
|
|
96
|
-
},
|
|
96
|
+
}, "root/setTabsFlags">, setTabExtra: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
97
97
|
path: string;
|
|
98
98
|
extra: ITabExtra;
|
|
99
|
-
flags?:
|
|
100
|
-
|
|
101
|
-
removed: boolean;
|
|
102
|
-
pinned: boolean;
|
|
103
|
-
loading: boolean;
|
|
104
|
-
old: boolean;
|
|
105
|
-
enabled: boolean;
|
|
106
|
-
confirmed: boolean;
|
|
107
|
-
}> | undefined;
|
|
108
|
-
}, string>, closeAllTabs: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, addDataSource: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
99
|
+
flags?: ITabFlags;
|
|
100
|
+
}, "root/setTabExtra">, closeAllTabs: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/closeAllTabs">, addDataSource: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
109
101
|
datasourceDef: datasources.ICreateDataSource;
|
|
110
102
|
path: string;
|
|
111
|
-
},
|
|
103
|
+
}, "root/addDataSource">, closeRightTabs: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "root/closeRightTabs">, closeOthers: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "root/closeOthers">, closeLeftTabs: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "root/closeLeftTabs">, closeSavedTabs: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/closeSavedTabs">, setDataSources: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
112
104
|
datasourceArr: datasources.ICreateDataSource[];
|
|
113
105
|
path: string;
|
|
114
|
-
},
|
|
106
|
+
}, "root/setDataSources">, removeDataSource: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
115
107
|
path: string;
|
|
116
108
|
datasourceID: string;
|
|
117
|
-
},
|
|
109
|
+
}, "root/removeDataSource">, confirmTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "root/confirmTab">, selectTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "root/selectTab">, selectTabByReference: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITab<any, Partial<{
|
|
118
110
|
initialLineInfo: {
|
|
119
111
|
line: number;
|
|
120
|
-
offset?: number
|
|
112
|
+
offset?: number;
|
|
121
113
|
lastModification: number;
|
|
122
114
|
};
|
|
123
115
|
initialSelectionInfo: {
|
|
124
|
-
selection: import(
|
|
116
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
125
117
|
lastModification: number;
|
|
126
118
|
};
|
|
127
119
|
diffContent: string;
|
|
128
|
-
attributes: import(
|
|
129
|
-
source: import(
|
|
130
|
-
editor: import(
|
|
131
|
-
ext: import(
|
|
120
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
121
|
+
source: import('@ws-ui/shared').ISource;
|
|
122
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
123
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
132
124
|
kind: string;
|
|
133
125
|
}>> & {
|
|
134
|
-
isNew?: boolean
|
|
135
|
-
},
|
|
126
|
+
isNew?: boolean;
|
|
127
|
+
}, "root/selectTabByReference">, openTabUnselected: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITab<any, Partial<{
|
|
136
128
|
initialLineInfo: {
|
|
137
129
|
line: number;
|
|
138
|
-
offset?: number
|
|
130
|
+
offset?: number;
|
|
139
131
|
lastModification: number;
|
|
140
132
|
};
|
|
141
133
|
initialSelectionInfo: {
|
|
142
|
-
selection: import(
|
|
134
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
143
135
|
lastModification: number;
|
|
144
136
|
};
|
|
145
137
|
diffContent: string;
|
|
146
|
-
attributes: import(
|
|
147
|
-
source: import(
|
|
148
|
-
editor: import(
|
|
149
|
-
ext: import(
|
|
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;
|
|
150
142
|
kind: string;
|
|
151
|
-
}>>,
|
|
143
|
+
}>>, "root/openTabUnselected">, addWebFormStyles: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
152
144
|
path: string;
|
|
153
145
|
styles: IWebFormStyleClass[];
|
|
154
|
-
},
|
|
146
|
+
}, "root/addWebFormStyles">, changeTabEditor: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITab<any, Partial<{
|
|
155
147
|
initialLineInfo: {
|
|
156
148
|
line: number;
|
|
157
|
-
offset?: number
|
|
149
|
+
offset?: number;
|
|
158
150
|
lastModification: number;
|
|
159
151
|
};
|
|
160
152
|
initialSelectionInfo: {
|
|
161
|
-
selection: import(
|
|
153
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
162
154
|
lastModification: number;
|
|
163
155
|
};
|
|
164
156
|
diffContent: string;
|
|
165
|
-
attributes: import(
|
|
166
|
-
source: import(
|
|
167
|
-
editor: import(
|
|
168
|
-
ext: import(
|
|
157
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
158
|
+
source: import('@ws-ui/shared').ISource;
|
|
159
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
160
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
169
161
|
kind: string;
|
|
170
|
-
}>>,
|
|
162
|
+
}>>, "root/changeTabEditor">, openSettingsTab: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/openSettingsTab">, setWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
171
163
|
currentState: WebformState;
|
|
172
164
|
path: string;
|
|
173
|
-
},
|
|
165
|
+
}, "root/setWebformState">, setPanelState: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<{
|
|
174
166
|
isOpen: boolean;
|
|
175
167
|
type: string;
|
|
176
168
|
current: string;
|
|
177
|
-
lastSelected?: string
|
|
169
|
+
lastSelected?: string;
|
|
178
170
|
}> & {
|
|
179
171
|
path: string;
|
|
180
|
-
},
|
|
172
|
+
}, "root/setPanelState">, addWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
181
173
|
stateDef: WebformState;
|
|
182
174
|
path: string;
|
|
183
|
-
},
|
|
175
|
+
}, "root/addWebformState">, editWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
184
176
|
path: string;
|
|
185
177
|
state: WebformState;
|
|
186
|
-
oldLabel?: string
|
|
187
|
-
},
|
|
178
|
+
oldLabel?: string;
|
|
179
|
+
}, "root/editWebformState">, updateStateConditionDs: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
188
180
|
path: string;
|
|
189
181
|
old_reference: string;
|
|
190
182
|
new_reference: string;
|
|
191
|
-
},
|
|
183
|
+
}, "root/updateStateConditionDs">, removeWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
192
184
|
path: string;
|
|
193
185
|
state: WebformState;
|
|
194
|
-
},
|
|
186
|
+
}, "root/removeWebformState">, resetComponentState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
195
187
|
path: string;
|
|
196
188
|
id: string;
|
|
197
189
|
state: WebformState;
|
|
198
|
-
},
|
|
190
|
+
}, "root/resetComponentState">, addDefaultWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
199
191
|
path: string;
|
|
200
192
|
state: WebformState;
|
|
201
|
-
},
|
|
193
|
+
}, "root/addDefaultWebformState">, removeDefaultWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
202
194
|
path: string;
|
|
203
195
|
state: WebformState;
|
|
204
|
-
},
|
|
196
|
+
}, "root/removeDefaultWebformState">, setDefaultWebformStates: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
205
197
|
path: string;
|
|
206
198
|
states: WebformState[];
|
|
207
|
-
},
|
|
199
|
+
}, "root/setDefaultWebformStates">, setHistoryContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "root/setHistoryContent">, unlockHistory: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "root/unlockHistory">, undo: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/undo">, redo: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/redo">;
|
|
208
200
|
export default stateSlice;
|
|
@@ -1,134 +1,252 @@
|
|
|
1
|
-
|
|
1
|
+
import { Dispatch } from '@reduxjs/toolkit';
|
|
2
2
|
import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab, WebformState } from '@ws-ui/shared';
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ClassFileTypes, TActionRenameDataSource } from './types';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
export declare const fetchFiles: import('@reduxjs/toolkit').AsyncThunk<{
|
|
6
7
|
name: string;
|
|
7
|
-
type: import(
|
|
8
|
+
type: import('@ws-ui/shared').FileFolderTypeWithContent;
|
|
8
9
|
date: string;
|
|
9
10
|
path: string;
|
|
10
|
-
}[], void, {
|
|
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
|
+
}>;
|
|
11
21
|
/**
|
|
12
22
|
* handles the rename of a datasource.
|
|
13
23
|
*
|
|
14
24
|
* - if the datasource is a local datasource, it will rename it along with it's references in component and other datasources.
|
|
15
25
|
* - if the datasource is a shared datasource, it will do the same as above but only for current webform.
|
|
16
26
|
*/
|
|
17
|
-
export declare const renameDataSource: import(
|
|
27
|
+
export declare const renameDataSource: import('@reduxjs/toolkit').AsyncThunk<{
|
|
18
28
|
path: string | undefined;
|
|
19
29
|
namespace: string;
|
|
20
30
|
datasources: datasources.ICreateDataSource[];
|
|
21
|
-
} | null, TActionRenameDataSource, {
|
|
22
|
-
|
|
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)[], {
|
|
23
42
|
path: string;
|
|
24
43
|
datasourceId: string;
|
|
25
|
-
namespace?: string
|
|
44
|
+
namespace?: string;
|
|
26
45
|
propertyKey: string;
|
|
27
46
|
value: any;
|
|
28
|
-
}, {
|
|
29
|
-
|
|
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, {
|
|
30
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;
|
|
31
66
|
}>;
|
|
32
|
-
export declare const saveAll: import(
|
|
67
|
+
export declare const saveAll: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
33
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;
|
|
34
76
|
}>;
|
|
35
|
-
export declare const tryCloseTab: import(
|
|
77
|
+
export declare const tryCloseTab: import('@reduxjs/toolkit').AsyncThunk<boolean, string, {
|
|
36
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;
|
|
37
86
|
}>;
|
|
38
|
-
export declare const tryCloseOtherTabs: import(
|
|
87
|
+
export declare const tryCloseOtherTabs: import('@reduxjs/toolkit').AsyncThunk<void, string, {
|
|
39
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;
|
|
40
96
|
}>;
|
|
41
|
-
export declare const tryCloseAllTabs: import(
|
|
97
|
+
export declare const tryCloseAllTabs: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
42
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;
|
|
43
106
|
}>;
|
|
44
|
-
export declare const tryCloseRightTabs: import(
|
|
107
|
+
export declare const tryCloseRightTabs: import('@reduxjs/toolkit').AsyncThunk<void, number, {
|
|
45
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;
|
|
46
116
|
}>;
|
|
47
|
-
export declare const tryCloseLeftTabs: import(
|
|
117
|
+
export declare const tryCloseLeftTabs: import('@reduxjs/toolkit').AsyncThunk<void, number, {
|
|
48
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;
|
|
49
126
|
}>;
|
|
50
|
-
export declare const reloadTab: import(
|
|
127
|
+
export declare const reloadTab: import('@reduxjs/toolkit').AsyncThunk<void | INodeInfo, ITab<any, Partial<{
|
|
51
128
|
initialLineInfo: {
|
|
52
129
|
line: number;
|
|
53
|
-
offset?: number
|
|
130
|
+
offset?: number;
|
|
54
131
|
lastModification: number;
|
|
55
132
|
};
|
|
56
133
|
initialSelectionInfo: {
|
|
57
|
-
selection: import(
|
|
134
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
58
135
|
lastModification: number;
|
|
59
136
|
};
|
|
60
137
|
diffContent: string;
|
|
61
|
-
attributes: import(
|
|
62
|
-
source: import(
|
|
63
|
-
editor: import(
|
|
64
|
-
ext: import(
|
|
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;
|
|
65
142
|
kind: string;
|
|
66
143
|
}>>, {
|
|
67
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;
|
|
68
152
|
}>;
|
|
69
153
|
type SaveTabReturnType = ITab & {
|
|
70
154
|
errors: IMultilineMessage[];
|
|
71
155
|
};
|
|
72
|
-
export declare const saveTab: import(
|
|
156
|
+
export declare const saveTab: import('@reduxjs/toolkit').AsyncThunk<SaveTabReturnType | null, {
|
|
73
157
|
tab: ITab;
|
|
74
158
|
}, {
|
|
75
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;
|
|
76
167
|
}>;
|
|
77
|
-
export declare const setTabContent: import(
|
|
168
|
+
export declare const setTabContent: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
78
169
|
path: string;
|
|
79
170
|
content: any;
|
|
80
|
-
contentPath?: string
|
|
171
|
+
contentPath?: string;
|
|
81
172
|
}, {
|
|
82
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;
|
|
83
181
|
}>;
|
|
84
|
-
export declare const setCurrentWebformState: import(
|
|
182
|
+
export declare const setCurrentWebformState: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
85
183
|
currentState: WebformState;
|
|
86
184
|
path: string;
|
|
87
185
|
}, {
|
|
88
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;
|
|
89
194
|
}>;
|
|
90
|
-
export declare const tryInjectMethod: import(
|
|
195
|
+
export declare const tryInjectMethod: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
91
196
|
initialLineInfo: {
|
|
92
197
|
line: number;
|
|
93
|
-
offset?: number
|
|
198
|
+
offset?: number;
|
|
94
199
|
lastModification: number;
|
|
95
200
|
};
|
|
96
201
|
initialSelectionInfo: {
|
|
97
|
-
selection: import(
|
|
202
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
98
203
|
lastModification: number;
|
|
99
204
|
};
|
|
100
205
|
diffContent: string;
|
|
101
|
-
attributes: import(
|
|
102
|
-
source: import(
|
|
103
|
-
editor: import(
|
|
104
|
-
ext: import(
|
|
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;
|
|
105
210
|
kind: string;
|
|
106
211
|
}>> | null, {
|
|
107
212
|
name: string;
|
|
108
|
-
type?: ClassFileTypes
|
|
109
|
-
dataclass?: string
|
|
110
|
-
expand?: boolean
|
|
213
|
+
type?: ClassFileTypes;
|
|
214
|
+
dataclass?: string;
|
|
215
|
+
expand?: boolean;
|
|
111
216
|
}, {
|
|
112
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;
|
|
113
225
|
}>;
|
|
114
|
-
export declare const openRoles: import(
|
|
226
|
+
export declare const openRoles: import('@reduxjs/toolkit').AsyncThunk<void | ITab<any, Partial<{
|
|
115
227
|
initialLineInfo: {
|
|
116
228
|
line: number;
|
|
117
|
-
offset?: number
|
|
229
|
+
offset?: number;
|
|
118
230
|
lastModification: number;
|
|
119
231
|
};
|
|
120
232
|
initialSelectionInfo: {
|
|
121
|
-
selection: import(
|
|
233
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
122
234
|
lastModification: number;
|
|
123
235
|
};
|
|
124
236
|
diffContent: string;
|
|
125
|
-
attributes: import(
|
|
126
|
-
source: import(
|
|
127
|
-
editor: import(
|
|
128
|
-
ext: import(
|
|
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;
|
|
129
241
|
kind: string;
|
|
130
242
|
}>>, {}, {
|
|
131
243
|
state: AppState;
|
|
132
244
|
rejectValue: string;
|
|
245
|
+
dispatch?: Dispatch | undefined;
|
|
246
|
+
extra?: unknown;
|
|
247
|
+
serializedErrorType?: unknown;
|
|
248
|
+
pendingMeta?: unknown;
|
|
249
|
+
fulfilledMeta?: unknown;
|
|
250
|
+
rejectedMeta?: unknown;
|
|
133
251
|
}>;
|
|
134
252
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@ws-ui/shared/dist/declarations/webform/webform" />
|
|
2
|
-
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
3
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
4
2
|
import { ITab, WebformState } from '@ws-ui/shared';
|
|
3
|
+
|
|
5
4
|
export interface IRootState {
|
|
6
5
|
tabs: ITab[];
|
|
7
6
|
filesLoading: boolean;
|