@ws-ui/store 1.11.11 → 1.11.12-rc13
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 +3 -3
- package/dist/index.cjs.js +43 -43
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9682 -10341
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +1 -1
- package/dist/modules/explorer/thunks.d.ts +2 -10
- package/dist/modules/explorer/types.d.ts +1 -26
- package/dist/modules/explorer/utils.d.ts +2 -2
- package/dist/modules/index.d.ts +3 -3
- package/dist/modules/modals/thunks.d.ts +1 -9
- package/dist/modules/roles/adapter.d.ts +1 -180
- package/dist/modules/roles/index.d.ts +1 -2
- package/dist/modules/roles/reducer.d.ts +1 -1
- package/dist/modules/roles/thunks.d.ts +1 -2
- package/dist/modules/settings/index.d.ts +1 -1
- package/dist/modules/settings/reducer.d.ts +3 -19
- package/dist/modules/settings/types.d.ts +2 -6
- package/dist/modules/tasks/selectors.d.ts +3 -3
- package/dist/modules/webforms/datasources.adapter.d.ts +3 -3
- package/dist/selectors/catalog.d.ts +27 -27
- package/dist/selectors/common.d.ts +12 -12
- package/dist/selectors/components.d.ts +3 -3
- package/dist/selectors/datasources.d.ts +24 -24
- package/dist/selectors/debugger.d.ts +84 -84
- package/dist/selectors/explorer.d.ts +89 -89
- package/dist/selectors/modals.d.ts +3 -3
- package/dist/selectors/roles.d.ts +42 -42
- package/dist/selectors/settings.d.ts +34 -34
- package/dist/selectors/states.d.ts +18 -18
- package/dist/selectors/styles.d.ts +15 -15
- package/dist/selectors/tabs.d.ts +15 -15
- package/dist/selectors/webforms.d.ts +42 -42
- package/package.json +2 -2
- package/dist/modules/roles/types.d.ts +0 -108
|
@@ -2,9 +2,9 @@ import { EWebFormStyleClassScope, IWebFormStyleClass, ITab } from '@ws-ui/shared
|
|
|
2
2
|
export declare const THEME_CLASSES: string[];
|
|
3
3
|
export declare const selectWebformStylesByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
4
4
|
root: import('../modules').IRootState;
|
|
5
|
-
explorer: import('
|
|
5
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
6
6
|
debugger: import('../modules').IDebuggerState;
|
|
7
|
-
settings: import('
|
|
7
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
8
8
|
catalog: {
|
|
9
9
|
state: "loading";
|
|
10
10
|
} | {
|
|
@@ -14,7 +14,7 @@ export declare const selectWebformStylesByPath: (path: string) => ((state: impor
|
|
|
14
14
|
state: "error";
|
|
15
15
|
error: string;
|
|
16
16
|
};
|
|
17
|
-
roles: import('
|
|
17
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
18
18
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
19
19
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
20
20
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -46,9 +46,9 @@ export declare const selectWebformStylesByPath: (path: string) => ((state: impor
|
|
|
46
46
|
};
|
|
47
47
|
export declare const selectStylesByPath: (path: string, scopes: EWebFormStyleClassScope[]) => ((state: import('redux').EmptyObject & {
|
|
48
48
|
root: import('../modules').IRootState;
|
|
49
|
-
explorer: import('
|
|
49
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
50
50
|
debugger: import('../modules').IDebuggerState;
|
|
51
|
-
settings: import('
|
|
51
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
52
52
|
catalog: {
|
|
53
53
|
state: "loading";
|
|
54
54
|
} | {
|
|
@@ -58,7 +58,7 @@ export declare const selectStylesByPath: (path: string, scopes: EWebFormStyleCla
|
|
|
58
58
|
state: "error";
|
|
59
59
|
error: string;
|
|
60
60
|
};
|
|
61
|
-
roles: import('
|
|
61
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
62
62
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
63
63
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
64
64
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -74,9 +74,9 @@ export declare const selectStylesByPath: (path: string, scopes: EWebFormStyleCla
|
|
|
74
74
|
};
|
|
75
75
|
export declare const selectCSSClassesByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
76
76
|
root: import('../modules').IRootState;
|
|
77
|
-
explorer: import('
|
|
77
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
78
78
|
debugger: import('../modules').IDebuggerState;
|
|
79
|
-
settings: import('
|
|
79
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
80
80
|
catalog: {
|
|
81
81
|
state: "loading";
|
|
82
82
|
} | {
|
|
@@ -86,7 +86,7 @@ export declare const selectCSSClassesByPath: (path: string) => ((state: import('
|
|
|
86
86
|
state: "error";
|
|
87
87
|
error: string;
|
|
88
88
|
};
|
|
89
|
-
roles: import('
|
|
89
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
90
90
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
91
91
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
92
92
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -102,9 +102,9 @@ export declare const selectCSSClassesByPath: (path: string) => ((state: import('
|
|
|
102
102
|
};
|
|
103
103
|
export declare const selectSharedCSS: ((state: import('redux').EmptyObject & {
|
|
104
104
|
root: import('../modules').IRootState;
|
|
105
|
-
explorer: import('
|
|
105
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
106
106
|
debugger: import('../modules').IDebuggerState;
|
|
107
|
-
settings: import('
|
|
107
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
108
108
|
catalog: {
|
|
109
109
|
state: "loading";
|
|
110
110
|
} | {
|
|
@@ -114,7 +114,7 @@ export declare const selectSharedCSS: ((state: import('redux').EmptyObject & {
|
|
|
114
114
|
state: "error";
|
|
115
115
|
error: string;
|
|
116
116
|
};
|
|
117
|
-
roles: import('
|
|
117
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
118
118
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
119
119
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
120
120
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -135,9 +135,9 @@ export declare const selectSharedCSS: ((state: import('redux').EmptyObject & {
|
|
|
135
135
|
origin?: string;
|
|
136
136
|
}[]) & import('reselect').OutputSelectorFields<(args_0: import('redux').CombinedState<{
|
|
137
137
|
root: import('../modules').IRootState;
|
|
138
|
-
explorer: import('
|
|
138
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
139
139
|
debugger: import('../modules').IDebuggerState;
|
|
140
|
-
settings: import('
|
|
140
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
141
141
|
catalog: {
|
|
142
142
|
state: "loading";
|
|
143
143
|
} | {
|
|
@@ -147,7 +147,7 @@ export declare const selectSharedCSS: ((state: import('redux').EmptyObject & {
|
|
|
147
147
|
state: "error";
|
|
148
148
|
error: string;
|
|
149
149
|
};
|
|
150
|
-
roles: import('
|
|
150
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
151
151
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
152
152
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
153
153
|
savedConditions: import('../modules').ISavedConditionsState;
|
package/dist/selectors/tabs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const selectPanelByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
2
2
|
root: import('..').IRootState;
|
|
3
|
-
explorer: import('
|
|
3
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
4
4
|
debugger: import('..').IDebuggerState;
|
|
5
|
-
settings: import('
|
|
5
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
6
6
|
catalog: {
|
|
7
7
|
state: "loading";
|
|
8
8
|
} | {
|
|
@@ -12,7 +12,7 @@ export declare const selectPanelByPath: (path: string) => ((state: import('redux
|
|
|
12
12
|
state: "error";
|
|
13
13
|
error: string;
|
|
14
14
|
};
|
|
15
|
-
roles: import('
|
|
15
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
16
16
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
17
17
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
18
18
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -56,9 +56,9 @@ export declare const selectPanelByPath: (path: string) => ((state: import('redux
|
|
|
56
56
|
};
|
|
57
57
|
export declare const selectFlagsByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
58
58
|
root: import('..').IRootState;
|
|
59
|
-
explorer: import('
|
|
59
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
60
60
|
debugger: import('..').IDebuggerState;
|
|
61
|
-
settings: import('
|
|
61
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
62
62
|
catalog: {
|
|
63
63
|
state: "loading";
|
|
64
64
|
} | {
|
|
@@ -68,7 +68,7 @@ export declare const selectFlagsByPath: (path: string) => ((state: import('redux
|
|
|
68
68
|
state: "error";
|
|
69
69
|
error: string;
|
|
70
70
|
};
|
|
71
|
-
roles: import('
|
|
71
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
72
72
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
73
73
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
74
74
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -118,9 +118,9 @@ export declare const selectFlagsByPath: (path: string) => ((state: import('redux
|
|
|
118
118
|
};
|
|
119
119
|
export declare const selectHistoryByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
120
120
|
root: import('..').IRootState;
|
|
121
|
-
explorer: import('
|
|
121
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
122
122
|
debugger: import('..').IDebuggerState;
|
|
123
|
-
settings: import('
|
|
123
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
124
124
|
catalog: {
|
|
125
125
|
state: "loading";
|
|
126
126
|
} | {
|
|
@@ -130,7 +130,7 @@ export declare const selectHistoryByPath: (path: string) => ((state: import('red
|
|
|
130
130
|
state: "error";
|
|
131
131
|
error: string;
|
|
132
132
|
};
|
|
133
|
-
roles: import('
|
|
133
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
134
134
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
135
135
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
136
136
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -170,9 +170,9 @@ export declare const selectHistoryByPath: (path: string) => ((state: import('red
|
|
|
170
170
|
};
|
|
171
171
|
export declare const selectActiveTabHistoryActions: ((state: import('redux').EmptyObject & {
|
|
172
172
|
root: import('..').IRootState;
|
|
173
|
-
explorer: import('
|
|
173
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
174
174
|
debugger: import('..').IDebuggerState;
|
|
175
|
-
settings: import('
|
|
175
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
176
176
|
catalog: {
|
|
177
177
|
state: "loading";
|
|
178
178
|
} | {
|
|
@@ -182,7 +182,7 @@ export declare const selectActiveTabHistoryActions: ((state: import('redux').Emp
|
|
|
182
182
|
state: "error";
|
|
183
183
|
error: string;
|
|
184
184
|
};
|
|
185
|
-
roles: import('
|
|
185
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
186
186
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
187
187
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
188
188
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -220,9 +220,9 @@ export declare const selectActiveTabHistoryActions: ((state: import('redux').Emp
|
|
|
220
220
|
};
|
|
221
221
|
export declare const selectAllTabsByType: (type: string) => ((state: import('redux').EmptyObject & {
|
|
222
222
|
root: import('..').IRootState;
|
|
223
|
-
explorer: import('
|
|
223
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
224
224
|
debugger: import('..').IDebuggerState;
|
|
225
|
-
settings: import('
|
|
225
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
226
226
|
catalog: {
|
|
227
227
|
state: "loading";
|
|
228
228
|
} | {
|
|
@@ -232,7 +232,7 @@ export declare const selectAllTabsByType: (type: string) => ((state: import('red
|
|
|
232
232
|
state: "error";
|
|
233
233
|
error: string;
|
|
234
234
|
};
|
|
235
|
-
roles: import('
|
|
235
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
236
236
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
237
237
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
238
238
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TInspectorType } from '../modules/webforms/types';
|
|
2
2
|
export declare const selectWebforms: ((state: import('redux').EmptyObject & {
|
|
3
3
|
root: import('../modules').IRootState;
|
|
4
|
-
explorer: import('
|
|
4
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
5
5
|
debugger: import('../modules').IDebuggerState;
|
|
6
|
-
settings: import('
|
|
6
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
7
7
|
catalog: {
|
|
8
8
|
state: "loading";
|
|
9
9
|
} | {
|
|
@@ -13,7 +13,7 @@ export declare const selectWebforms: ((state: import('redux').EmptyObject & {
|
|
|
13
13
|
state: "error";
|
|
14
14
|
error: string;
|
|
15
15
|
};
|
|
16
|
-
roles: import('
|
|
16
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
17
17
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
18
18
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
19
19
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -29,9 +29,9 @@ export declare const selectWebforms: ((state: import('redux').EmptyObject & {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const selectComponents: ((state: import('redux').EmptyObject & {
|
|
31
31
|
root: import('../modules').IRootState;
|
|
32
|
-
explorer: import('
|
|
32
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
33
33
|
debugger: import('../modules').IDebuggerState;
|
|
34
|
-
settings: import('
|
|
34
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
35
35
|
catalog: {
|
|
36
36
|
state: "loading";
|
|
37
37
|
} | {
|
|
@@ -41,7 +41,7 @@ export declare const selectComponents: ((state: import('redux').EmptyObject & {
|
|
|
41
41
|
state: "error";
|
|
42
42
|
error: string;
|
|
43
43
|
};
|
|
44
|
-
roles: import('
|
|
44
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
45
45
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
46
46
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
47
47
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -57,9 +57,9 @@ export declare const selectComponents: ((state: import('redux').EmptyObject & {
|
|
|
57
57
|
};
|
|
58
58
|
export declare const selectInspector: ((state: import('redux').EmptyObject & {
|
|
59
59
|
root: import('../modules').IRootState;
|
|
60
|
-
explorer: import('
|
|
60
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
61
61
|
debugger: import('../modules').IDebuggerState;
|
|
62
|
-
settings: import('
|
|
62
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
63
63
|
catalog: {
|
|
64
64
|
state: "loading";
|
|
65
65
|
} | {
|
|
@@ -69,7 +69,7 @@ export declare const selectInspector: ((state: import('redux').EmptyObject & {
|
|
|
69
69
|
state: "error";
|
|
70
70
|
error: string;
|
|
71
71
|
};
|
|
72
|
-
roles: import('
|
|
72
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
73
73
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
74
74
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
75
75
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -85,9 +85,9 @@ export declare const selectInspector: ((state: import('redux').EmptyObject & {
|
|
|
85
85
|
};
|
|
86
86
|
export declare const selectInspectedCSSClass: ((state: import('redux').EmptyObject & {
|
|
87
87
|
root: import('../modules').IRootState;
|
|
88
|
-
explorer: import('
|
|
88
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
89
89
|
debugger: import('../modules').IDebuggerState;
|
|
90
|
-
settings: import('
|
|
90
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
91
91
|
catalog: {
|
|
92
92
|
state: "loading";
|
|
93
93
|
} | {
|
|
@@ -97,7 +97,7 @@ export declare const selectInspectedCSSClass: ((state: import('redux').EmptyObje
|
|
|
97
97
|
state: "error";
|
|
98
98
|
error: string;
|
|
99
99
|
};
|
|
100
|
-
roles: import('
|
|
100
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
101
101
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
102
102
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
103
103
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -113,9 +113,9 @@ export declare const selectInspectedCSSClass: ((state: import('redux').EmptyObje
|
|
|
113
113
|
};
|
|
114
114
|
export declare const selectInspectedDatasource: ((state: import('redux').EmptyObject & {
|
|
115
115
|
root: import('../modules').IRootState;
|
|
116
|
-
explorer: import('
|
|
116
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
117
117
|
debugger: import('../modules').IDebuggerState;
|
|
118
|
-
settings: import('
|
|
118
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
119
119
|
catalog: {
|
|
120
120
|
state: "loading";
|
|
121
121
|
} | {
|
|
@@ -125,7 +125,7 @@ export declare const selectInspectedDatasource: ((state: import('redux').EmptyOb
|
|
|
125
125
|
state: "error";
|
|
126
126
|
error: string;
|
|
127
127
|
};
|
|
128
|
-
roles: import('
|
|
128
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
129
129
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
130
130
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
131
131
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -141,9 +141,9 @@ export declare const selectInspectedDatasource: ((state: import('redux').EmptyOb
|
|
|
141
141
|
};
|
|
142
142
|
export declare const selectTemplates: ((state: import('redux').EmptyObject & {
|
|
143
143
|
root: import('../modules').IRootState;
|
|
144
|
-
explorer: import('
|
|
144
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
145
145
|
debugger: import('../modules').IDebuggerState;
|
|
146
|
-
settings: import('
|
|
146
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
147
147
|
catalog: {
|
|
148
148
|
state: "loading";
|
|
149
149
|
} | {
|
|
@@ -153,7 +153,7 @@ export declare const selectTemplates: ((state: import('redux').EmptyObject & {
|
|
|
153
153
|
state: "error";
|
|
154
154
|
error: string;
|
|
155
155
|
};
|
|
156
|
-
roles: import('
|
|
156
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
157
157
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
158
158
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
159
159
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -169,9 +169,9 @@ export declare const selectTemplates: ((state: import('redux').EmptyObject & {
|
|
|
169
169
|
};
|
|
170
170
|
export declare const selectTemplatesData: ((state: import('redux').EmptyObject & {
|
|
171
171
|
root: import('../modules').IRootState;
|
|
172
|
-
explorer: import('
|
|
172
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
173
173
|
debugger: import('../modules').IDebuggerState;
|
|
174
|
-
settings: import('
|
|
174
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
175
175
|
catalog: {
|
|
176
176
|
state: "loading";
|
|
177
177
|
} | {
|
|
@@ -181,7 +181,7 @@ export declare const selectTemplatesData: ((state: import('redux').EmptyObject &
|
|
|
181
181
|
state: "error";
|
|
182
182
|
error: string;
|
|
183
183
|
};
|
|
184
|
-
roles: import('
|
|
184
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
185
185
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
186
186
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
187
187
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -197,9 +197,9 @@ export declare const selectTemplatesData: ((state: import('redux').EmptyObject &
|
|
|
197
197
|
};
|
|
198
198
|
export declare const selectCraftedComponent: (id: string) => ((state: import('redux').EmptyObject & {
|
|
199
199
|
root: import('../modules').IRootState;
|
|
200
|
-
explorer: import('
|
|
200
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
201
201
|
debugger: import('../modules').IDebuggerState;
|
|
202
|
-
settings: import('
|
|
202
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
203
203
|
catalog: {
|
|
204
204
|
state: "loading";
|
|
205
205
|
} | {
|
|
@@ -209,7 +209,7 @@ export declare const selectCraftedComponent: (id: string) => ((state: import('re
|
|
|
209
209
|
state: "error";
|
|
210
210
|
error: string;
|
|
211
211
|
};
|
|
212
|
-
roles: import('
|
|
212
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
213
213
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
214
214
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
215
215
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -225,9 +225,9 @@ export declare const selectCraftedComponent: (id: string) => ((state: import('re
|
|
|
225
225
|
};
|
|
226
226
|
export declare const selectInspectorStateByType: (type: TInspectorType) => ((state: import('redux').EmptyObject & {
|
|
227
227
|
root: import('../modules').IRootState;
|
|
228
|
-
explorer: import('
|
|
228
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
229
229
|
debugger: import('../modules').IDebuggerState;
|
|
230
|
-
settings: import('
|
|
230
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
231
231
|
catalog: {
|
|
232
232
|
state: "loading";
|
|
233
233
|
} | {
|
|
@@ -237,7 +237,7 @@ export declare const selectInspectorStateByType: (type: TInspectorType) => ((sta
|
|
|
237
237
|
state: "error";
|
|
238
238
|
error: string;
|
|
239
239
|
};
|
|
240
|
-
roles: import('
|
|
240
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
241
241
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
242
242
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
243
243
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -253,9 +253,9 @@ export declare const selectInspectorStateByType: (type: TInspectorType) => ((sta
|
|
|
253
253
|
};
|
|
254
254
|
export declare const selectDatasourcesTheme: ((state: import('redux').EmptyObject & {
|
|
255
255
|
root: import('../modules').IRootState;
|
|
256
|
-
explorer: import('
|
|
256
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
257
257
|
debugger: import('../modules').IDebuggerState;
|
|
258
|
-
settings: import('
|
|
258
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
259
259
|
catalog: {
|
|
260
260
|
state: "loading";
|
|
261
261
|
} | {
|
|
@@ -265,7 +265,7 @@ export declare const selectDatasourcesTheme: ((state: import('redux').EmptyObjec
|
|
|
265
265
|
state: "error";
|
|
266
266
|
error: string;
|
|
267
267
|
};
|
|
268
|
-
roles: import('
|
|
268
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
269
269
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
270
270
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
271
271
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -281,9 +281,9 @@ export declare const selectDatasourcesTheme: ((state: import('redux').EmptyObjec
|
|
|
281
281
|
};
|
|
282
282
|
export declare const selectClipBoard: ((state: import('redux').EmptyObject & {
|
|
283
283
|
root: import('../modules').IRootState;
|
|
284
|
-
explorer: import('
|
|
284
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
285
285
|
debugger: import('../modules').IDebuggerState;
|
|
286
|
-
settings: import('
|
|
286
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
287
287
|
catalog: {
|
|
288
288
|
state: "loading";
|
|
289
289
|
} | {
|
|
@@ -293,7 +293,7 @@ export declare const selectClipBoard: ((state: import('redux').EmptyObject & {
|
|
|
293
293
|
state: "error";
|
|
294
294
|
error: string;
|
|
295
295
|
};
|
|
296
|
-
roles: import('
|
|
296
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
297
297
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
298
298
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
299
299
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -315,9 +315,9 @@ export declare const selectClipBoard: ((state: import('redux').EmptyObject & {
|
|
|
315
315
|
};
|
|
316
316
|
export declare const selectIsLoaded: ((state: import('redux').EmptyObject & {
|
|
317
317
|
root: import('../modules').IRootState;
|
|
318
|
-
explorer: import('
|
|
318
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
319
319
|
debugger: import('../modules').IDebuggerState;
|
|
320
|
-
settings: import('
|
|
320
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
321
321
|
catalog: {
|
|
322
322
|
state: "loading";
|
|
323
323
|
} | {
|
|
@@ -327,7 +327,7 @@ export declare const selectIsLoaded: ((state: import('redux').EmptyObject & {
|
|
|
327
327
|
state: "error";
|
|
328
328
|
error: string;
|
|
329
329
|
};
|
|
330
|
-
roles: import('
|
|
330
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
331
331
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
332
332
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
333
333
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -351,9 +351,9 @@ export declare const selectIsLoaded: ((state: import('redux').EmptyObject & {
|
|
|
351
351
|
};
|
|
352
352
|
export declare const selectWebformMetadataByPath: (tabPath: string) => ((state: import('redux').EmptyObject & {
|
|
353
353
|
root: import('../modules').IRootState;
|
|
354
|
-
explorer: import('
|
|
354
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
355
355
|
debugger: import('../modules').IDebuggerState;
|
|
356
|
-
settings: import('
|
|
356
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
357
357
|
catalog: {
|
|
358
358
|
state: "loading";
|
|
359
359
|
} | {
|
|
@@ -363,7 +363,7 @@ export declare const selectWebformMetadataByPath: (tabPath: string) => ((state:
|
|
|
363
363
|
state: "error";
|
|
364
364
|
error: string;
|
|
365
365
|
};
|
|
366
|
-
roles: import('
|
|
366
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
367
367
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
368
368
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
369
369
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -395,9 +395,9 @@ export declare const selectWebformMetadataByPath: (tabPath: string) => ((state:
|
|
|
395
395
|
};
|
|
396
396
|
export declare const selectI18nCurrent: ((state: import('redux').EmptyObject & {
|
|
397
397
|
root: import('../modules').IRootState;
|
|
398
|
-
explorer: import('
|
|
398
|
+
explorer: import('@ws-ui/shared').ITreeItem[];
|
|
399
399
|
debugger: import('../modules').IDebuggerState;
|
|
400
|
-
settings: import('
|
|
400
|
+
settings: import('@ws-ui/shared').ISettingsState;
|
|
401
401
|
catalog: {
|
|
402
402
|
state: "loading";
|
|
403
403
|
} | {
|
|
@@ -407,7 +407,7 @@ export declare const selectI18nCurrent: ((state: import('redux').EmptyObject & {
|
|
|
407
407
|
state: "error";
|
|
408
408
|
error: string;
|
|
409
409
|
};
|
|
410
|
-
roles: import('
|
|
410
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
411
411
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
412
412
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
413
413
|
savedConditions: import('../modules').ISavedConditionsState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.12-rc13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@reduxjs/toolkit": "^1.7.1",
|
|
24
24
|
"@ws-ui/icons": "1.11.11",
|
|
25
|
-
"@ws-ui/shared": "1.11.
|
|
25
|
+
"@ws-ui/shared": "1.11.12-rc13",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { ITabFlags } from '@ws-ui/shared';
|
|
2
|
-
export type TRawData = Partial<{
|
|
3
|
-
privileges: IPrivilege[];
|
|
4
|
-
roles: IRole[];
|
|
5
|
-
permissions: Partial<{
|
|
6
|
-
allowed: IPermission[];
|
|
7
|
-
}>;
|
|
8
|
-
forceLogin: boolean;
|
|
9
|
-
restrictedByDefault: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type' | 'subType'>;
|
|
12
|
-
export type TAction = 'read' | 'create' | 'update' | 'drop' | 'execute' | 'promote';
|
|
13
|
-
export type IRolesState = ISanitized & {
|
|
14
|
-
flags: ITabFlags;
|
|
15
|
-
date?: string;
|
|
16
|
-
selectedTab: 'privileges' | 'roles';
|
|
17
|
-
initialState?: {
|
|
18
|
-
roles: TRolesDict;
|
|
19
|
-
privileges: TById;
|
|
20
|
-
forceLogin?: boolean;
|
|
21
|
-
restrictedByDefault?: boolean;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export interface IPrivilege {
|
|
25
|
-
id?: string;
|
|
26
|
-
privilege: string;
|
|
27
|
-
includes?: string[];
|
|
28
|
-
}
|
|
29
|
-
export interface IRole {
|
|
30
|
-
id?: string;
|
|
31
|
-
role: string;
|
|
32
|
-
privileges?: string[];
|
|
33
|
-
}
|
|
34
|
-
export type TRole = Required<IRole>;
|
|
35
|
-
export declare enum EPermissionType {
|
|
36
|
-
DATACLASS = "dataclass",
|
|
37
|
-
METHOD = "method",
|
|
38
|
-
ATTRIBUTE = "attribute",
|
|
39
|
-
DATASTORE = "datastore",
|
|
40
|
-
SINGLETON = "singleton",
|
|
41
|
-
SINGLETON_METHOD = "singletonMethod"
|
|
42
|
-
}
|
|
43
|
-
export declare enum ESubPermissionType {
|
|
44
|
-
DS_METHOD = "dsMethod",
|
|
45
|
-
DATACLASS_METHOD = "dataclassMethod",
|
|
46
|
-
ENTITY_METHOD = "entityMethod",
|
|
47
|
-
ENTITY_SEL_METHOD = "entityselMethod"
|
|
48
|
-
}
|
|
49
|
-
export interface IPermission {
|
|
50
|
-
applyTo: string;
|
|
51
|
-
type: EPermissionType | ESubPermissionType;
|
|
52
|
-
subType?: ESubPermissionType;
|
|
53
|
-
read?: string | string[];
|
|
54
|
-
create?: string | string[];
|
|
55
|
-
update?: string | string[];
|
|
56
|
-
drop?: string | string[];
|
|
57
|
-
execute?: string | string[];
|
|
58
|
-
promote?: string | string[];
|
|
59
|
-
}
|
|
60
|
-
export interface IResourcesByPermission {
|
|
61
|
-
[id: string]: {
|
|
62
|
-
applyTo: IPermission['applyTo'];
|
|
63
|
-
type: IPermission['type'];
|
|
64
|
-
subType?: IPermission['subType'];
|
|
65
|
-
}[];
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Sanitized data
|
|
69
|
-
*/
|
|
70
|
-
export interface ISanitized {
|
|
71
|
-
privileges: TById;
|
|
72
|
-
roles: TRolesDict;
|
|
73
|
-
forceLogin?: boolean;
|
|
74
|
-
restrictedByDefault?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export interface IResourcePermission {
|
|
77
|
-
name: TAction;
|
|
78
|
-
from: string[];
|
|
79
|
-
checked?: boolean;
|
|
80
|
-
info?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface IResource {
|
|
83
|
-
resource: string;
|
|
84
|
-
type: EPermissionType | ESubPermissionType;
|
|
85
|
-
subType?: ESubPermissionType;
|
|
86
|
-
permissions: IResourcePermission[];
|
|
87
|
-
exists?: boolean;
|
|
88
|
-
}
|
|
89
|
-
export type TSanitizedPrivilege = Required<IPrivilege> & {
|
|
90
|
-
parents: string[];
|
|
91
|
-
resources: IResource[];
|
|
92
|
-
};
|
|
93
|
-
export type TById = {
|
|
94
|
-
[id: string]: TSanitizedPrivilege;
|
|
95
|
-
};
|
|
96
|
-
export type TRolesDict = {
|
|
97
|
-
[id: string]: TRole;
|
|
98
|
-
};
|
|
99
|
-
export interface ILink {
|
|
100
|
-
source: string;
|
|
101
|
-
target: string;
|
|
102
|
-
}
|
|
103
|
-
export interface IGraphData {
|
|
104
|
-
selected: string;
|
|
105
|
-
parents: string[][];
|
|
106
|
-
children: string[][];
|
|
107
|
-
links: ILink[];
|
|
108
|
-
}
|