@ws-ui/shared 0.2.1 → 0.2.3
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/useStateObject.d.ts +2 -2
- package/dist/index.cjs.js +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +285 -275
- package/dist/index.es.js.map +1 -1
- package/dist/types/webform-state.d.ts +14 -4
- package/dist/utils/subjects.d.ts +2 -1
- package/package.json +1 -1
|
@@ -10,14 +10,18 @@ export type BaseWebformStateCondition = {
|
|
|
10
10
|
type GenericCondition<T> = BaseWebformStateCondition & T;
|
|
11
11
|
type CommonOp = 'eq' | 'neq' | 'regex' | 'isnull' | 'notnull';
|
|
12
12
|
type ValueType = 'datasource' | 'hardCoded';
|
|
13
|
-
type DataType = 'string' | 'number' | 'date' | 'boolean' | 'array' | 'object';
|
|
13
|
+
type DataType = 'string' | 'number' | 'date' | 'boolean' | 'array' | 'object' | 'duration';
|
|
14
14
|
export type DataSourceCondition = GenericCondition<{
|
|
15
15
|
type: 'datasource';
|
|
16
16
|
path: string;
|
|
17
|
+
dsType: string;
|
|
17
18
|
value: unknown;
|
|
19
|
+
compareValue?: unknown;
|
|
18
20
|
valueType?: ValueType;
|
|
21
|
+
compareValueType?: ValueType;
|
|
19
22
|
dataType?: DataType;
|
|
20
|
-
|
|
23
|
+
compareDataType?: DataType;
|
|
24
|
+
op: CommonOp | 'in' | 'nin' | 'gt' | 'gte' | 'lt' | 'lte' | 'isempty' | 'istrue' | 'isfalse' | 'between';
|
|
21
25
|
}>;
|
|
22
26
|
export type PrivilegeCondition = GenericCondition<{
|
|
23
27
|
type: 'privilege';
|
|
@@ -34,16 +38,22 @@ export type CombinationCondition = Omit<GenericCondition<{
|
|
|
34
38
|
};
|
|
35
39
|
export type CurrentStateCondition = GenericCondition<{
|
|
36
40
|
type: 'currentState';
|
|
37
|
-
value:
|
|
41
|
+
value: unknown;
|
|
42
|
+
compareValue?: unknown;
|
|
38
43
|
valueType?: ValueType;
|
|
44
|
+
compareValueType?: ValueType;
|
|
39
45
|
dataType?: DataType;
|
|
46
|
+
compareDataType?: DataType;
|
|
40
47
|
op: CommonOp;
|
|
41
48
|
}>;
|
|
42
49
|
export type ParentStateCondition = GenericCondition<{
|
|
43
50
|
type: 'parentState';
|
|
44
|
-
value:
|
|
51
|
+
value: unknown;
|
|
52
|
+
compareValue?: unknown;
|
|
45
53
|
valueType?: ValueType;
|
|
54
|
+
compareValueType?: ValueType;
|
|
46
55
|
dataType?: DataType;
|
|
56
|
+
compareDataType?: DataType;
|
|
47
57
|
op: CommonOp;
|
|
48
58
|
}>;
|
|
49
59
|
export type ReferenceCondition = Omit<GenericCondition<{
|
package/dist/utils/subjects.d.ts
CHANGED
|
@@ -51,7 +51,8 @@ export declare enum LspActions {
|
|
|
51
51
|
WILL_DELETE = "will-delete",
|
|
52
52
|
DID_CREATE = "did-create",
|
|
53
53
|
DID_RENAME = "did-rename",
|
|
54
|
-
DID_DELETE = "did-delete"
|
|
54
|
+
DID_DELETE = "did-delete",
|
|
55
|
+
DIAGNOSTIC_REFRESH = "diagnostic-refresh"
|
|
55
56
|
}
|
|
56
57
|
export declare const lspSubject: Subject<{
|
|
57
58
|
action: LspActions;
|