@ws-ui/store 1.10.2 → 1.10.4-rc1
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 +1 -1
- package/dist/index.cjs.js +37 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8185 -8824
- package/dist/index.es.js.map +1 -1
- package/dist/modules/index.d.ts +1 -1
- 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/tasks/selectors.d.ts +1 -1
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -1
- package/dist/selectors/catalog.d.ts +8 -8
- package/dist/selectors/common.d.ts +4 -4
- package/dist/selectors/components.d.ts +1 -1
- package/dist/selectors/datasources.d.ts +8 -8
- package/dist/selectors/debugger.d.ts +28 -28
- package/dist/selectors/explorer.d.ts +26 -26
- package/dist/selectors/modals.d.ts +1 -1
- package/dist/selectors/roles.d.ts +24 -24
- package/dist/selectors/settings.d.ts +10 -10
- package/dist/selectors/states.d.ts +6 -6
- package/dist/selectors/styles.d.ts +5 -5
- package/dist/selectors/tabs.d.ts +5 -5
- package/dist/selectors/webforms.d.ts +14 -14
- package/package.json +3 -3
- package/dist/modules/roles/types.d.ts +0 -102
|
@@ -12,7 +12,7 @@ export declare const selectRolesAndPrivileges: ((state: import('redux').EmptyObj
|
|
|
12
12
|
state: "error";
|
|
13
13
|
error: string;
|
|
14
14
|
};
|
|
15
|
-
roles: import('
|
|
15
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
16
16
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
17
17
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
18
18
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -22,18 +22,18 @@ export declare const selectRolesAndPrivileges: ((state: import('redux').EmptyObj
|
|
|
22
22
|
model: import('../modules').IModelState;
|
|
23
23
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
24
24
|
}) => Partial<{
|
|
25
|
-
privileges: import('
|
|
26
|
-
roles: import('
|
|
25
|
+
privileges: import('@ws-ui/shared').IPrivilege[];
|
|
26
|
+
roles: import('@ws-ui/shared').IRole[];
|
|
27
27
|
permissions: Partial<{
|
|
28
|
-
allowed: import('
|
|
28
|
+
allowed: import('@ws-ui/shared').IPermission[];
|
|
29
29
|
}>;
|
|
30
30
|
forceLogin: boolean;
|
|
31
31
|
restrictedByDefault: boolean;
|
|
32
|
-
}>) & import('reselect').OutputSelectorFields<(args_0: import('
|
|
33
|
-
privileges: import('
|
|
34
|
-
roles: import('
|
|
32
|
+
}>) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => Partial<{
|
|
33
|
+
privileges: import('@ws-ui/shared').IPrivilege[];
|
|
34
|
+
roles: import('@ws-ui/shared').IRole[];
|
|
35
35
|
permissions: Partial<{
|
|
36
|
-
allowed: import('
|
|
36
|
+
allowed: import('@ws-ui/shared').IPermission[];
|
|
37
37
|
}>;
|
|
38
38
|
forceLogin: boolean;
|
|
39
39
|
restrictedByDefault: boolean;
|
|
@@ -56,7 +56,7 @@ export declare const selectRoles: ((state: import('redux').EmptyObject & {
|
|
|
56
56
|
state: "error";
|
|
57
57
|
error: string;
|
|
58
58
|
};
|
|
59
|
-
roles: import('
|
|
59
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
60
60
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
61
61
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
62
62
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -65,7 +65,7 @@ export declare const selectRoles: ((state: import('redux').EmptyObject & {
|
|
|
65
65
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
66
66
|
model: import('../modules').IModelState;
|
|
67
67
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
68
|
-
}) => import('
|
|
68
|
+
}) => import('@ws-ui/shared').TRolesDict) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => import('@ws-ui/shared').TRolesDict, {
|
|
69
69
|
clearCache: () => void;
|
|
70
70
|
}> & {
|
|
71
71
|
clearCache: () => void;
|
|
@@ -84,7 +84,7 @@ export declare const selectPrivileges: ((state: import('redux').EmptyObject & {
|
|
|
84
84
|
state: "error";
|
|
85
85
|
error: string;
|
|
86
86
|
};
|
|
87
|
-
roles: import('
|
|
87
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
88
88
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
89
89
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
90
90
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -93,7 +93,7 @@ export declare const selectPrivileges: ((state: import('redux').EmptyObject & {
|
|
|
93
93
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
94
94
|
model: import('../modules').IModelState;
|
|
95
95
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
96
|
-
}) => import('
|
|
96
|
+
}) => import('@ws-ui/shared').TById) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => import('@ws-ui/shared').TById, {
|
|
97
97
|
clearCache: () => void;
|
|
98
98
|
}> & {
|
|
99
99
|
clearCache: () => void;
|
|
@@ -112,7 +112,7 @@ export declare const selectGuestPrivilege: ((state: import('redux').EmptyObject
|
|
|
112
112
|
state: "error";
|
|
113
113
|
error: string;
|
|
114
114
|
};
|
|
115
|
-
roles: import('
|
|
115
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
116
116
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
117
117
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
118
118
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -121,7 +121,7 @@ export declare const selectGuestPrivilege: ((state: import('redux').EmptyObject
|
|
|
121
121
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
122
122
|
model: import('../modules').IModelState;
|
|
123
123
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
124
|
-
}) => import('
|
|
124
|
+
}) => import('@ws-ui/shared').TSanitizedPrivilege | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => import('@ws-ui/shared').TSanitizedPrivilege | undefined, {
|
|
125
125
|
clearCache: () => void;
|
|
126
126
|
}> & {
|
|
127
127
|
clearCache: () => void;
|
|
@@ -140,7 +140,7 @@ export declare const selectRolesFlags: ((state: import('redux').EmptyObject & {
|
|
|
140
140
|
state: "error";
|
|
141
141
|
error: string;
|
|
142
142
|
};
|
|
143
|
-
roles: import('
|
|
143
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
144
144
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
145
145
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
146
146
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -158,7 +158,7 @@ export declare const selectRolesFlags: ((state: import('redux').EmptyObject & {
|
|
|
158
158
|
enabled: boolean;
|
|
159
159
|
confirmed: boolean;
|
|
160
160
|
inactive: boolean;
|
|
161
|
-
}>) & import('reselect').OutputSelectorFields<(args_0: import('
|
|
161
|
+
}>) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => Partial<{
|
|
162
162
|
touched: boolean;
|
|
163
163
|
removed: boolean;
|
|
164
164
|
pinned: boolean;
|
|
@@ -186,7 +186,7 @@ export declare const selectSelectedTab: ((state: import('redux').EmptyObject & {
|
|
|
186
186
|
state: "error";
|
|
187
187
|
error: string;
|
|
188
188
|
};
|
|
189
|
-
roles: import('
|
|
189
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
190
190
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
191
191
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
192
192
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -195,7 +195,7 @@ export declare const selectSelectedTab: ((state: import('redux').EmptyObject & {
|
|
|
195
195
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
196
196
|
model: import('../modules').IModelState;
|
|
197
197
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
198
|
-
}) => "roles" | "privileges") & import('reselect').OutputSelectorFields<(args_0: import('
|
|
198
|
+
}) => "roles" | "privileges") & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => "roles" | "privileges", {
|
|
199
199
|
clearCache: () => void;
|
|
200
200
|
}> & {
|
|
201
201
|
clearCache: () => void;
|
|
@@ -214,7 +214,7 @@ export declare const selectForceLogin: ((state: import('redux').EmptyObject & {
|
|
|
214
214
|
state: "error";
|
|
215
215
|
error: string;
|
|
216
216
|
};
|
|
217
|
-
roles: import('
|
|
217
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
218
218
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
219
219
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
220
220
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -223,7 +223,7 @@ export declare const selectForceLogin: ((state: import('redux').EmptyObject & {
|
|
|
223
223
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
224
224
|
model: import('../modules').IModelState;
|
|
225
225
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
226
|
-
}) => boolean | undefined) & import('reselect').OutputSelectorFields<(args_0: import('
|
|
226
|
+
}) => boolean | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => boolean | undefined, {
|
|
227
227
|
clearCache: () => void;
|
|
228
228
|
}> & {
|
|
229
229
|
clearCache: () => void;
|
|
@@ -242,7 +242,7 @@ export declare const selectRestrictedByDefault: ((state: import('redux').EmptyOb
|
|
|
242
242
|
state: "error";
|
|
243
243
|
error: string;
|
|
244
244
|
};
|
|
245
|
-
roles: import('
|
|
245
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
246
246
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
247
247
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
248
248
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -251,7 +251,7 @@ export declare const selectRestrictedByDefault: ((state: import('redux').EmptyOb
|
|
|
251
251
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
252
252
|
model: import('../modules').IModelState;
|
|
253
253
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
254
|
-
}) => boolean | undefined) & import('reselect').OutputSelectorFields<(args_0: import('
|
|
254
|
+
}) => boolean | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => boolean | undefined, {
|
|
255
255
|
clearCache: () => void;
|
|
256
256
|
}> & {
|
|
257
257
|
clearCache: () => void;
|
|
@@ -270,7 +270,7 @@ export declare const selectRolesDate: ((state: import('redux').EmptyObject & {
|
|
|
270
270
|
state: "error";
|
|
271
271
|
error: string;
|
|
272
272
|
};
|
|
273
|
-
roles: import('
|
|
273
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
274
274
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
275
275
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
276
276
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -279,7 +279,7 @@ export declare const selectRolesDate: ((state: import('redux').EmptyObject & {
|
|
|
279
279
|
sharedCSS: import('../modules').ISharedCSSState;
|
|
280
280
|
model: import('../modules').IModelState;
|
|
281
281
|
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
282
|
-
}) => string | undefined) & import('reselect').OutputSelectorFields<(args_0: import('
|
|
282
|
+
}) => string | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').IRolesState) => string | undefined, {
|
|
283
283
|
clearCache: () => void;
|
|
284
284
|
}> & {
|
|
285
285
|
clearCache: () => void;
|
|
@@ -12,7 +12,7 @@ export declare const selectSessionSettings: ((state: import('redux').EmptyObject
|
|
|
12
12
|
state: "error";
|
|
13
13
|
error: string;
|
|
14
14
|
};
|
|
15
|
-
roles: import('
|
|
15
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
16
16
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
17
17
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
18
18
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -44,7 +44,7 @@ export declare const selectPartialSessionSettings: <T extends string[]>(...keys:
|
|
|
44
44
|
state: "error";
|
|
45
45
|
error: string;
|
|
46
46
|
};
|
|
47
|
-
roles: import('
|
|
47
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
48
48
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
49
49
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
50
50
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -74,7 +74,7 @@ export declare const selectSessionSetting: <T = string>(key: string) => ((state:
|
|
|
74
74
|
state: "error";
|
|
75
75
|
error: string;
|
|
76
76
|
};
|
|
77
|
-
roles: import('
|
|
77
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
78
78
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
79
79
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
80
80
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -104,7 +104,7 @@ export declare const selectFeatureFlag: (key: string) => ((state: import('redux'
|
|
|
104
104
|
state: "error";
|
|
105
105
|
error: string;
|
|
106
106
|
};
|
|
107
|
-
roles: import('
|
|
107
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
108
108
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
109
109
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
110
110
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -134,7 +134,7 @@ export declare const selectProjectSettings: ((state: import('redux').EmptyObject
|
|
|
134
134
|
state: "error";
|
|
135
135
|
error: string;
|
|
136
136
|
};
|
|
137
|
-
roles: import('
|
|
137
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
138
138
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
139
139
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
140
140
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -166,7 +166,7 @@ export declare const selectPreferences: ((state: import('redux').EmptyObject & {
|
|
|
166
166
|
state: "error";
|
|
167
167
|
error: string;
|
|
168
168
|
};
|
|
169
|
-
roles: import('
|
|
169
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
170
170
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
171
171
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
172
172
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -194,7 +194,7 @@ export declare const selectServerSettings: ((state: import('redux').EmptyObject
|
|
|
194
194
|
state: "error";
|
|
195
195
|
error: string;
|
|
196
196
|
};
|
|
197
|
-
roles: import('
|
|
197
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
198
198
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
199
199
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
200
200
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -222,7 +222,7 @@ export declare const selectRemoteDebuggerMode: ((state: import('redux').EmptyObj
|
|
|
222
222
|
state: "error";
|
|
223
223
|
error: string;
|
|
224
224
|
};
|
|
225
|
-
roles: import('
|
|
225
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
226
226
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
227
227
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
228
228
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -250,7 +250,7 @@ export declare const selectQodly: ((state: import('redux').EmptyObject & {
|
|
|
250
250
|
state: "error";
|
|
251
251
|
error: string;
|
|
252
252
|
};
|
|
253
|
-
roles: import('
|
|
253
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
254
254
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
255
255
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
256
256
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -278,7 +278,7 @@ export declare const selectMonacoZoom: ((state: import('redux').EmptyObject & {
|
|
|
278
278
|
state: "error";
|
|
279
279
|
error: string;
|
|
280
280
|
};
|
|
281
|
-
roles: import('
|
|
281
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
282
282
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
283
283
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
284
284
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -24,7 +24,7 @@ export declare const selectWebformStatesByPath: (tabPath: string, exclude?: stri
|
|
|
24
24
|
state: "error";
|
|
25
25
|
error: string;
|
|
26
26
|
};
|
|
27
|
-
roles: import('
|
|
27
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
28
28
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
29
29
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
30
30
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -74,7 +74,7 @@ export declare const selectWebformStatesLabelsByPath: (tabPath: string, exclude?
|
|
|
74
74
|
state: "error";
|
|
75
75
|
error: string;
|
|
76
76
|
};
|
|
77
|
-
roles: import('
|
|
77
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
78
78
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
79
79
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
80
80
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -107,7 +107,7 @@ export declare const selectDefaultWebformStatesByPath: (tabPath: string) => ((st
|
|
|
107
107
|
state: "error";
|
|
108
108
|
error: string;
|
|
109
109
|
};
|
|
110
|
-
roles: import('
|
|
110
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
111
111
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
112
112
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
113
113
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -151,7 +151,7 @@ export declare const selectCurrentWebformStateByPath: (tabPath: string) => ((sta
|
|
|
151
151
|
state: "error";
|
|
152
152
|
error: string;
|
|
153
153
|
};
|
|
154
|
-
roles: import('
|
|
154
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
155
155
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
156
156
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
157
157
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -198,7 +198,7 @@ export declare const selectSavedConditions: ((state: import('redux').EmptyObject
|
|
|
198
198
|
state: "error";
|
|
199
199
|
error: string;
|
|
200
200
|
};
|
|
201
|
-
roles: import('
|
|
201
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
202
202
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
203
203
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
204
204
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -221,7 +221,7 @@ export declare const selectSavedConditions: ((state: import('redux').EmptyObject
|
|
|
221
221
|
state: "error";
|
|
222
222
|
error: string;
|
|
223
223
|
};
|
|
224
|
-
roles: import('
|
|
224
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
225
225
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
226
226
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
227
227
|
savedConditions: import('../modules').ISavedConditionsState;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
@@ -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;
|
|
@@ -66,7 +66,7 @@ export declare const selectFlagsByPath: (path: string) => ((state: import('redux
|
|
|
66
66
|
state: "error";
|
|
67
67
|
error: string;
|
|
68
68
|
};
|
|
69
|
-
roles: import('
|
|
69
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
70
70
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
71
71
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
72
72
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -128,7 +128,7 @@ export declare const selectHistoryByPath: (path: string) => ((state: import('red
|
|
|
128
128
|
state: "error";
|
|
129
129
|
error: string;
|
|
130
130
|
};
|
|
131
|
-
roles: import('
|
|
131
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
132
132
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
133
133
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
134
134
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -180,7 +180,7 @@ export declare const selectActiveTabHistoryActions: ((state: import('redux').Emp
|
|
|
180
180
|
state: "error";
|
|
181
181
|
error: string;
|
|
182
182
|
};
|
|
183
|
-
roles: import('
|
|
183
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
184
184
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
185
185
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
186
186
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -230,7 +230,7 @@ export declare const selectAllTabsByType: (type: string) => ((state: import('red
|
|
|
230
230
|
state: "error";
|
|
231
231
|
error: string;
|
|
232
232
|
};
|
|
233
|
-
roles: import('
|
|
233
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
234
234
|
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
235
235
|
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
236
236
|
savedConditions: import('..').ISavedConditionsState;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -405,7 +405,7 @@ export declare const selectI18nCurrent: ((state: import('redux').EmptyObject & {
|
|
|
405
405
|
state: "error";
|
|
406
406
|
error: string;
|
|
407
407
|
};
|
|
408
|
-
roles: import('
|
|
408
|
+
roles: import('@ws-ui/shared').IRolesState;
|
|
409
409
|
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
410
410
|
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
411
411
|
savedConditions: import('../modules').ISavedConditionsState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4-rc1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@reduxjs/toolkit": "^1.7.1",
|
|
24
|
-
"@ws-ui/icons": "1.10.
|
|
25
|
-
"@ws-ui/shared": "1.10.
|
|
24
|
+
"@ws-ui/icons": "1.10.3",
|
|
25
|
+
"@ws-ui/shared": "1.10.4-rc1",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|
|
@@ -1,102 +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
|
-
};
|
|
18
|
-
export interface IPrivilege {
|
|
19
|
-
id?: string;
|
|
20
|
-
privilege: string;
|
|
21
|
-
includes?: string[];
|
|
22
|
-
}
|
|
23
|
-
export interface IRole {
|
|
24
|
-
id?: string;
|
|
25
|
-
role: string;
|
|
26
|
-
privileges?: string[];
|
|
27
|
-
}
|
|
28
|
-
export type TRole = Required<IRole>;
|
|
29
|
-
export declare enum EPermissionType {
|
|
30
|
-
DATACLASS = "dataclass",
|
|
31
|
-
METHOD = "method",
|
|
32
|
-
ATTRIBUTE = "attribute",
|
|
33
|
-
DATASTORE = "datastore",
|
|
34
|
-
SINGLETON = "singleton",
|
|
35
|
-
SINGLETON_METHOD = "singletonMethod"
|
|
36
|
-
}
|
|
37
|
-
export declare enum ESubPermissionType {
|
|
38
|
-
DS_METHOD = "dsMethod",
|
|
39
|
-
DATACLASS_METHOD = "dataclassMethod",
|
|
40
|
-
ENTITY_METHOD = "entityMethod",
|
|
41
|
-
ENTITY_SEL_METHOD = "entityselMethod"
|
|
42
|
-
}
|
|
43
|
-
export interface IPermission {
|
|
44
|
-
applyTo: string;
|
|
45
|
-
type: EPermissionType | ESubPermissionType;
|
|
46
|
-
subType?: ESubPermissionType;
|
|
47
|
-
read?: string | string[];
|
|
48
|
-
create?: string | string[];
|
|
49
|
-
update?: string | string[];
|
|
50
|
-
drop?: string | string[];
|
|
51
|
-
execute?: string | string[];
|
|
52
|
-
promote?: string | string[];
|
|
53
|
-
}
|
|
54
|
-
export interface IResourcesByPermission {
|
|
55
|
-
[id: string]: {
|
|
56
|
-
applyTo: IPermission['applyTo'];
|
|
57
|
-
type: IPermission['type'];
|
|
58
|
-
subType?: IPermission['subType'];
|
|
59
|
-
}[];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Sanitized data
|
|
63
|
-
*/
|
|
64
|
-
export interface ISanitized {
|
|
65
|
-
privileges: TById;
|
|
66
|
-
roles: TRolesDict;
|
|
67
|
-
forceLogin?: boolean;
|
|
68
|
-
restrictedByDefault?: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface IResourcePermission {
|
|
71
|
-
name: TAction;
|
|
72
|
-
from: string[];
|
|
73
|
-
checked?: boolean;
|
|
74
|
-
info?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface IResource {
|
|
77
|
-
resource: string;
|
|
78
|
-
type: EPermissionType | ESubPermissionType;
|
|
79
|
-
subType?: ESubPermissionType;
|
|
80
|
-
permissions: IResourcePermission[];
|
|
81
|
-
exists?: boolean;
|
|
82
|
-
}
|
|
83
|
-
export type TSanitizedPrivilege = Required<IPrivilege> & {
|
|
84
|
-
parents: string[];
|
|
85
|
-
resources: IResource[];
|
|
86
|
-
};
|
|
87
|
-
export type TById = {
|
|
88
|
-
[id: string]: TSanitizedPrivilege;
|
|
89
|
-
};
|
|
90
|
-
export type TRolesDict = {
|
|
91
|
-
[id: string]: TRole;
|
|
92
|
-
};
|
|
93
|
-
export interface ILink {
|
|
94
|
-
source: string;
|
|
95
|
-
target: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IGraphData {
|
|
98
|
-
selected: string;
|
|
99
|
-
parents: string[][];
|
|
100
|
-
children: string[][];
|
|
101
|
-
links: ILink[];
|
|
102
|
-
}
|