@evoke-platform/context 1.1.0-testing.3 → 1.1.0-testing.4
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/objects/objects.d.ts +14 -11
- package/package.json +1 -1
|
@@ -133,14 +133,15 @@ export type SelectOption = {
|
|
|
133
133
|
label: string;
|
|
134
134
|
value: string;
|
|
135
135
|
};
|
|
136
|
+
export type VisibilityCondition = {
|
|
137
|
+
property: string;
|
|
138
|
+
operator: 'eq' | 'neq';
|
|
139
|
+
value: string | number | boolean;
|
|
140
|
+
isInstanceProperty?: boolean;
|
|
141
|
+
};
|
|
136
142
|
export type VisibilityConfiguration = {
|
|
137
143
|
operator?: 'any' | 'all';
|
|
138
|
-
conditions?:
|
|
139
|
-
property: string;
|
|
140
|
-
operator: 'eq' | 'neq';
|
|
141
|
-
value: string | number | boolean;
|
|
142
|
-
isInstanceProperty?: boolean;
|
|
143
|
-
}[];
|
|
144
|
+
conditions?: VisibilityCondition[];
|
|
144
145
|
};
|
|
145
146
|
export type RelatedObjectDefaultValue = {
|
|
146
147
|
criteria: Record<string, unknown>;
|
|
@@ -148,6 +149,7 @@ export type RelatedObjectDefaultValue = {
|
|
|
148
149
|
orderBy?: 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
149
150
|
};
|
|
150
151
|
export type CriteriaDefaultValue = Record<string, unknown>;
|
|
152
|
+
export type JsonLogic = Record<string, unknown> | boolean | number | string | null;
|
|
151
153
|
export type DisplayConfiguration = {
|
|
152
154
|
label?: string;
|
|
153
155
|
placeholder?: string;
|
|
@@ -163,7 +165,7 @@ export type DisplayConfiguration = {
|
|
|
163
165
|
charCount?: boolean;
|
|
164
166
|
mode?: 'default' | 'existingOnly';
|
|
165
167
|
relatedObjectDisplay?: 'dropdown' | 'dialogBox';
|
|
166
|
-
visibility?: VisibilityConfiguration |
|
|
168
|
+
visibility?: VisibilityConfiguration | JsonLogic;
|
|
167
169
|
viewLayout?: ViewLayoutEntityReference;
|
|
168
170
|
choicesDisplay?: {
|
|
169
171
|
type: 'dropdown' | 'radioButton';
|
|
@@ -180,7 +182,7 @@ export type InputParameterReference = {
|
|
|
180
182
|
export type Content = {
|
|
181
183
|
type: 'content';
|
|
182
184
|
html: string;
|
|
183
|
-
visibility?: VisibilityConfiguration |
|
|
185
|
+
visibility?: VisibilityConfiguration | JsonLogic;
|
|
184
186
|
};
|
|
185
187
|
export type Column = {
|
|
186
188
|
width: number;
|
|
@@ -189,7 +191,7 @@ export type Column = {
|
|
|
189
191
|
export type Columns = {
|
|
190
192
|
type: 'columns';
|
|
191
193
|
columns: Column[];
|
|
192
|
-
visibility?: VisibilityConfiguration |
|
|
194
|
+
visibility?: VisibilityConfiguration | JsonLogic;
|
|
193
195
|
};
|
|
194
196
|
export type Section = {
|
|
195
197
|
label: string;
|
|
@@ -197,8 +199,9 @@ export type Section = {
|
|
|
197
199
|
};
|
|
198
200
|
export type Sections = {
|
|
199
201
|
type: 'sections';
|
|
202
|
+
label?: string;
|
|
200
203
|
sections: Section[];
|
|
201
|
-
visibility?: VisibilityConfiguration |
|
|
204
|
+
visibility?: VisibilityConfiguration | JsonLogic;
|
|
202
205
|
};
|
|
203
206
|
export type FormEntry = InputParameterReference | Columns | Sections | Content;
|
|
204
207
|
export type Form = {
|
|
@@ -245,7 +248,7 @@ export type ActionInput = {
|
|
|
245
248
|
input?: boolean;
|
|
246
249
|
widget?: string;
|
|
247
250
|
conditional?: {
|
|
248
|
-
json?:
|
|
251
|
+
json?: JsonLogic;
|
|
249
252
|
show?: boolean;
|
|
250
253
|
when?: string;
|
|
251
254
|
eq?: string | number | boolean;
|