@skedulo/mex-types 1.44.0 → 1.46.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';
|
|
@@ -9,7 +9,7 @@ export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
|
|
|
9
9
|
*/
|
|
10
10
|
showIfExpression?: DataExpressionType;
|
|
11
11
|
}
|
|
12
|
-
export type FlatPageViewComponentTypes = TextViewComponentModel | TextEditorViewComponentModel | TextAreaEditorViewComponentModel | ReadonlyTextViewComponentModel | ButtonGroupViewComponentModel | AttachmentsEditorViewComponentModel | SignatureEditorViewComponentModel | ToggleEditorViewComponentModel | DateTimePickerViewComponentModel | SectionViewComponentModel | MenuListViewComponentModel | SelectEditorViewComponentModel | MultiSelectEditorViewComponentModel | ChartViewComponentTypes | AddressSelectEditorViewComponentModel | ImageViewComponentModel;
|
|
12
|
+
export type FlatPageViewComponentTypes = TextViewComponentModel | TextEditorViewComponentModel | TextAreaEditorViewComponentModel | ReadonlyTextViewComponentModel | ButtonGroupViewComponentModel | AttachmentsEditorViewComponentModel | SignatureEditorViewComponentModel | ToggleEditorViewComponentModel | DateTimePickerViewComponentModel | SectionViewComponentModel | MenuListViewComponentModel | SelectEditorViewComponentModel | MultiSelectEditorViewComponentModel | ChartViewComponentTypes | AddressSelectEditorViewComponentModel | ImageViewComponentModel | ImageAnnotationEditorViewComponentModel;
|
|
13
13
|
/**
|
|
14
14
|
* @area Components
|
|
15
15
|
* @value textView
|
|
@@ -230,25 +230,24 @@ export interface SubListEditorViewComponentModel extends CommonEditorViewCompone
|
|
|
230
230
|
* @label Attachment
|
|
231
231
|
* @fieldOrders ['title', 'caption', 'mandatory', 'showIfExpression']
|
|
232
232
|
*/
|
|
233
|
-
export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel, WithTitle {
|
|
233
|
+
export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel, WithHasAttachments, WithTitle {
|
|
234
234
|
type: 'attachmentsEditor';
|
|
235
|
-
/**
|
|
236
|
-
* @label Source expression
|
|
237
|
-
*/
|
|
238
|
-
sourceExpression: DataExpressionType;
|
|
239
|
-
/**
|
|
240
|
-
* @label Title
|
|
241
|
-
*/
|
|
242
|
-
title: LocalizedKey;
|
|
243
|
-
/**
|
|
244
|
-
* @label Attachment category name
|
|
245
|
-
*/
|
|
246
|
-
attachmentCategoryName?: string;
|
|
247
235
|
/**
|
|
248
236
|
* @version 1.10.0
|
|
249
237
|
*/
|
|
250
238
|
addFilesOptions?: AttachmentsEditorViewAddFilesOptionsModel;
|
|
251
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* @version 1.20.0
|
|
242
|
+
*/
|
|
243
|
+
export interface ImageAnnotationEditorViewComponentModel extends CommonEditorViewComponentModel, WithHasAttachments, WithTitle {
|
|
244
|
+
type: 'imageAnnotationEditor';
|
|
245
|
+
templateImages: StaticResourceImage[];
|
|
246
|
+
}
|
|
247
|
+
export interface WithHasAttachments {
|
|
248
|
+
sourceExpression: DataExpressionType;
|
|
249
|
+
attachmentCategoryName?: string;
|
|
250
|
+
}
|
|
252
251
|
/**
|
|
253
252
|
* @version 1.10.0
|
|
254
253
|
*/
|
|
@@ -277,20 +276,8 @@ export interface BodyMapViewComponentModel extends CommonEditorViewComponentMode
|
|
|
277
276
|
* @label Signature
|
|
278
277
|
* @fieldOrders ['title', 'caption', 'mandatory', 'enableFullName', 'showIfExpression']
|
|
279
278
|
*/
|
|
280
|
-
export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel, WithTitle {
|
|
279
|
+
export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel, WithHasAttachments, WithTitle {
|
|
281
280
|
type: 'signatureEditor';
|
|
282
|
-
/**
|
|
283
|
-
* @label Source expression
|
|
284
|
-
*/
|
|
285
|
-
sourceExpression: DataExpressionType;
|
|
286
|
-
/**
|
|
287
|
-
* @label Title
|
|
288
|
-
*/
|
|
289
|
-
title: LocalizedKey;
|
|
290
|
-
/**
|
|
291
|
-
* @label Attachment category name
|
|
292
|
-
*/
|
|
293
|
-
attachmentCategoryName: string;
|
|
294
281
|
/**
|
|
295
282
|
* @label Display "Full name" input
|
|
296
283
|
* @placeholder Select true or false
|