@ws-ui/store 0.2.24 → 0.2.26
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/index.cjs.js +43 -43
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4497 -4405
- package/dist/index.es.js.map +1 -1
- package/dist/modules/roles/adapter.d.ts +1 -1
- package/dist/modules/roles/types.d.ts +4 -0
- package/dist/modules/root/reducer.d.ts +6 -1
- package/dist/modules/root/types.d.ts +5 -0
- package/dist/modules/shared-conditions/index.d.ts +1 -0
- package/dist/modules/shared-conditions/reducer.d.ts +7 -0
- package/dist/modules/shared-conditions/utils.d.ts +15 -0
- package/package.json +3 -3
|
@@ -175,5 +175,5 @@ export declare function getInheritedResources(id: string, dict: TById): IResourc
|
|
|
175
175
|
export declare const toState: (rolesArray: TRole[]) => TRolesDict;
|
|
176
176
|
export declare const removeRole: (id: string, roles: TRolesDict) => TRolesDict;
|
|
177
177
|
export declare const editRole: (id: string, newName: string, roles: TRolesDict) => TRolesDict;
|
|
178
|
-
export declare const createRole: (id: string, roles: TRolesDict) => TRolesDict;
|
|
178
|
+
export declare const createRole: (id: string, name: string, roles: TRolesDict) => TRolesDict;
|
|
179
179
|
export declare const saveRole: (role: TRole, roles: TRolesDict) => TRolesDict;
|
|
@@ -31,6 +31,10 @@ export type TRole = Required<IRole>;
|
|
|
31
31
|
export declare enum EPermissionType {
|
|
32
32
|
DATACLASS = "dataclass",
|
|
33
33
|
METHOD = "method",
|
|
34
|
+
DS_METHOD = "dsMethod",
|
|
35
|
+
DATACLASS_METHOD = "dataclassMethod",
|
|
36
|
+
ENTITY_METHOD = "entityMethod",
|
|
37
|
+
ENTITY_SEL_METHOD = "entityselMethod",
|
|
34
38
|
ATTRIBUTE = "attribute",
|
|
35
39
|
DATASTORE = "datastore",
|
|
36
40
|
SINGLTON = "singleton",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
3
3
|
import { ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
4
|
-
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TResetComponentState } from './types';
|
|
4
|
+
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TActionUpdateStateConditionDs, TResetComponentState } from './types';
|
|
5
5
|
export declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal.js").WritableDraft<IRootState>, {
|
|
6
6
|
setWebformState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<{
|
|
7
7
|
currentState: WebformState;
|
|
@@ -16,6 +16,7 @@ export declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/
|
|
|
16
16
|
addWebformState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: TActionAddWebformState): void;
|
|
17
17
|
removeWebformState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: TActionRemoveWebformState): void;
|
|
18
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;
|
|
19
20
|
resetComponentState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: TResetComponentState): void;
|
|
20
21
|
setDefaultWebformStates(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: TActionSetDefaultWebformStates): void;
|
|
21
22
|
addDefaultWebformState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: TActionAddDefaultWebformState): void;
|
|
@@ -178,6 +179,10 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
178
179
|
}, string>, editWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
179
180
|
path: string;
|
|
180
181
|
state: WebformState;
|
|
182
|
+
}, string>, updateStateConditionDs: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
183
|
+
path: string;
|
|
184
|
+
old_reference: string;
|
|
185
|
+
new_reference: string;
|
|
181
186
|
}, string>, removeWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
182
187
|
path: string;
|
|
183
188
|
id: string;
|
|
@@ -25,6 +25,11 @@ export type TActionEditWebformState = PayloadAction<{
|
|
|
25
25
|
path: string;
|
|
26
26
|
state: WebformState;
|
|
27
27
|
}>;
|
|
28
|
+
export type TActionUpdateStateConditionDs = PayloadAction<{
|
|
29
|
+
path: string;
|
|
30
|
+
old_reference: string;
|
|
31
|
+
new_reference: string;
|
|
32
|
+
}>;
|
|
28
33
|
export type TResetComponentState = PayloadAction<{
|
|
29
34
|
path: string;
|
|
30
35
|
id: string;
|
|
@@ -15,6 +15,10 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/in
|
|
|
15
15
|
id: string;
|
|
16
16
|
condition: WebformStateCondition;
|
|
17
17
|
}>) => import("immer/dist/internal.js").WritableDraft<ISavedConditionsState>;
|
|
18
|
+
updateSavedConditionDs: (state: import("immer/dist/internal.js").WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
19
|
+
old_reference: string;
|
|
20
|
+
new_reference: string;
|
|
21
|
+
}>) => void;
|
|
18
22
|
addSavedCondition: (state: import("immer/dist/internal.js").WritableDraft<ISavedConditionsState>, action: PayloadAction<WebformStateCondition>) => import("immer/dist/internal.js").WritableDraft<ISavedConditionsState>;
|
|
19
23
|
removeSavedCondition: (state: import("immer/dist/internal.js").WritableDraft<ISavedConditionsState>, action: PayloadAction<{
|
|
20
24
|
id: string;
|
|
@@ -28,6 +32,9 @@ export declare const updateSavedConditions: import("@reduxjs/toolkit").ActionCre
|
|
|
28
32
|
}, string>, setSavedCondition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
33
|
id: string;
|
|
30
34
|
condition: WebformStateCondition;
|
|
35
|
+
}, string>, updateSavedConditionDs: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
36
|
+
old_reference: string;
|
|
37
|
+
new_reference: string;
|
|
31
38
|
}, string>, addSavedCondition: import("@reduxjs/toolkit").ActionCreatorWithPayload<WebformStateCondition, string>, removeSavedCondition: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
32
39
|
id: string;
|
|
33
40
|
}, string>, initSavedConditions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WebformStateCondition } from '@ws-ui/shared';
|
|
2
|
+
export declare const updateDsCondition: (condition: WebformStateCondition, oldRef: string, newRef: string) => import("@ws-ui/shared").PrivilegeCondition | import("@ws-ui/shared").CombinationCondition | import("@ws-ui/shared").CurrentStateCondition | import("@ws-ui/shared").ParentStateCondition | import("@ws-ui/shared").ReferenceCondition | {
|
|
3
|
+
path: string;
|
|
4
|
+
value: string;
|
|
5
|
+
compareValue: string;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: "datasource";
|
|
9
|
+
dsType: string;
|
|
10
|
+
valueType?: ("datasource" | "hardCoded") | undefined;
|
|
11
|
+
compareValueType?: ("datasource" | "hardCoded") | undefined;
|
|
12
|
+
dataType?: ("string" | "number" | "boolean" | "object" | "date" | "array" | "duration") | undefined;
|
|
13
|
+
compareDataType?: ("string" | "number" | "boolean" | "object" | "date" | "array" | "duration") | undefined;
|
|
14
|
+
op: ("eq" | "neq" | "regex" | "isnull" | "notnull") | "sw" | "in" | "nin" | "gt" | "gte" | "lt" | "lte" | "isempty" | "istrue" | "isfalse" | "between";
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.26",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-redux": "^7.2.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@ws-ui/icons": "^0.0.
|
|
32
|
-
"@ws-ui/shared": "^0.2.
|
|
31
|
+
"@ws-ui/icons": "^0.0.28",
|
|
32
|
+
"@ws-ui/shared": "^0.2.21",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"minimatch": "^5.1.0",
|
|
35
35
|
"react": "^17.0.2",
|