@skedulo/mex-types 1.45.0 → 1.47.0
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.
|
@@ -5,6 +5,7 @@ export type ValueExpressionType = string | ValueExpressionLogic[];
|
|
|
5
5
|
export type LocalizedKey = string;
|
|
6
6
|
export type OneLevelBindingObject = any;
|
|
7
7
|
export type FunctionExpressionType = string;
|
|
8
|
+
export type StaticResourceImage = string;
|
|
8
9
|
/**
|
|
9
10
|
* @version 1.24.0
|
|
10
11
|
* @description online mode only
|
|
@@ -294,4 +295,9 @@ export interface SkedRemoteImage {
|
|
|
294
295
|
* @description: Fetching image from a user id, this approach will fetch resource profile picture
|
|
295
296
|
*/
|
|
296
297
|
profilePicFromUserId?: DataExpressionType;
|
|
298
|
+
/**
|
|
299
|
+
* @version: 1.21.x
|
|
300
|
+
* @description: Loading image from form's static resources
|
|
301
|
+
*/
|
|
302
|
+
staticResource?: StaticResourceImage;
|
|
297
303
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponentModel } from '../common';
|
|
1
|
+
import { BaseComponentModel, StaticResourceImage } from '../common';
|
|
2
2
|
import { ButtonGroupItemComponentModel, DataExpressionType, DynamicContent, FunctionExpressionType, GroupByFeatureModel, IconName, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OnlineFetchListDataQuery, OrderByModel, RoutingType, SkedRemoteImage, TimezoneType, ValueExpressionType } from '../common';
|
|
3
3
|
import { SelectPageOnlineSource, SelectPageSearchBarConfig } from './SearchPage';
|
|
4
4
|
import { ValidatorDefinitionModel } from '../validator';
|
|
@@ -242,11 +242,39 @@ export interface AttachmentsEditorViewComponentModel extends CommonEditorViewCom
|
|
|
242
242
|
*/
|
|
243
243
|
export interface ImageAnnotationEditorViewComponentModel extends CommonEditorViewComponentModel, WithHasAttachments, WithTitle {
|
|
244
244
|
type: 'imageAnnotationEditor';
|
|
245
|
-
templateImages:
|
|
245
|
+
templateImages: StaticResourceImage[];
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Only one of the following approaches should be defined to indicate the parent context:
|
|
249
|
+
* - `sourceExpression`
|
|
250
|
+
* - `source.parentObjectExpression`
|
|
251
|
+
* - `source.parentIdExpression`
|
|
252
|
+
*/
|
|
247
253
|
export interface WithHasAttachments {
|
|
248
|
-
sourceExpression
|
|
254
|
+
sourceExpression?: DataExpressionType;
|
|
249
255
|
attachmentCategoryName?: string;
|
|
256
|
+
/**
|
|
257
|
+
* @version 1.23.x
|
|
258
|
+
*/
|
|
259
|
+
source?: {
|
|
260
|
+
/**
|
|
261
|
+
* If `sourceExpression` or `source.parentObjectExpression` is defined, it is treated as a full parent object.
|
|
262
|
+
* If `source.parentIdExpression` is defined, it is treated as a UID reference to an existing parent object.
|
|
263
|
+
*/
|
|
264
|
+
parentIdExpression?: DataExpressionType;
|
|
265
|
+
parentObjectExpression?: DataExpressionType;
|
|
266
|
+
/**
|
|
267
|
+
* A handler function used to apply custom filtering logic to the list of attachments.
|
|
268
|
+
* Must be defined together with `onNewAttachmentsHandler`.
|
|
269
|
+
*/
|
|
270
|
+
filterHandler?: FunctionExpressionType;
|
|
271
|
+
/**
|
|
272
|
+
* A handler function triggered when new attachments are added
|
|
273
|
+
* form builder can mutate the attachment metadata (ex: fileName) before uploading to server
|
|
274
|
+
* Must be defined together with `filterHandler`.
|
|
275
|
+
*/
|
|
276
|
+
onNewAttachmentsHandler?: FunctionExpressionType;
|
|
277
|
+
};
|
|
250
278
|
}
|
|
251
279
|
/**
|
|
252
280
|
* @version 1.10.0
|