@skedulo/mex-types 1.3.17 → 1.3.19
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/common/MexDefs.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ type MexBaseMetadata = {
|
|
|
47
47
|
email?: string;
|
|
48
48
|
/**
|
|
49
49
|
* @label Mobile display order
|
|
50
|
-
* min 0
|
|
51
|
-
* max 999
|
|
50
|
+
* @min 0
|
|
51
|
+
* @max 999
|
|
52
52
|
* @tooltip Please choose a number to determine the display priority of the form within the mobile app. A higher number will result in a lower display position for the form in the mobile app
|
|
53
53
|
*/
|
|
54
54
|
displayOrder: number;
|
|
@@ -21,9 +21,22 @@ export type UIDefinition = {
|
|
|
21
21
|
pages: AllPageComponentModel[];
|
|
22
22
|
};
|
|
23
23
|
export interface BasePageComponentModel extends BaseComponentModel {
|
|
24
|
+
/**
|
|
25
|
+
* @label Title
|
|
26
|
+
* @placeholder Enter page title
|
|
27
|
+
*/
|
|
24
28
|
title?: LocalizedKey;
|
|
29
|
+
/**
|
|
30
|
+
* @label Page data expression
|
|
31
|
+
*/
|
|
25
32
|
pageDataExpression?: DataExpressionType;
|
|
33
|
+
/**
|
|
34
|
+
* @label Wipe existing data
|
|
35
|
+
*/
|
|
26
36
|
wipeExistingData: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @label Default page data
|
|
39
|
+
*/
|
|
27
40
|
defaultPageData: DefaultPageData;
|
|
28
41
|
events?: {
|
|
29
42
|
onInitialized?: FunctionExpressionType;
|
|
@@ -32,13 +45,31 @@ export interface BasePageComponentModel extends BaseComponentModel {
|
|
|
32
45
|
};
|
|
33
46
|
}
|
|
34
47
|
export type DefaultPageData = {
|
|
48
|
+
/**
|
|
49
|
+
* @label Object Name
|
|
50
|
+
*/
|
|
35
51
|
objectName?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @label Data
|
|
54
|
+
*/
|
|
36
55
|
data: OneLevelBindingObject;
|
|
37
56
|
};
|
|
38
57
|
export type AddNewButtonData = {
|
|
58
|
+
/**
|
|
59
|
+
* @label Label
|
|
60
|
+
*/
|
|
39
61
|
text: string;
|
|
62
|
+
/**
|
|
63
|
+
* @label Destination page
|
|
64
|
+
*/
|
|
40
65
|
destinationPage: string;
|
|
66
|
+
/**
|
|
67
|
+
* @label Default data
|
|
68
|
+
*/
|
|
41
69
|
defaultData: ListPageAddNewDefaultDataType;
|
|
70
|
+
/**
|
|
71
|
+
* @label Display condition
|
|
72
|
+
*/
|
|
42
73
|
showIfExpression: DataExpressionType;
|
|
43
74
|
};
|
|
44
75
|
/**
|
|
@@ -47,22 +78,67 @@ export type AddNewButtonData = {
|
|
|
47
78
|
* @value list
|
|
48
79
|
*/
|
|
49
80
|
export interface ListPageComponentModel extends BasePageComponentModel {
|
|
81
|
+
/**
|
|
82
|
+
* @label List header
|
|
83
|
+
*/
|
|
50
84
|
headerTitle?: LocalizedKey;
|
|
85
|
+
/**
|
|
86
|
+
* @label List description
|
|
87
|
+
*/
|
|
51
88
|
headerDescription?: LocalizedKey;
|
|
89
|
+
/**
|
|
90
|
+
* @label Add New button
|
|
91
|
+
*/
|
|
52
92
|
addNew: AddNewButtonData;
|
|
93
|
+
/**
|
|
94
|
+
* @label Button group
|
|
95
|
+
*/
|
|
53
96
|
buttonGroup?: ButtonGroupViewComponentModel;
|
|
97
|
+
/**
|
|
98
|
+
* @label Data Source
|
|
99
|
+
*/
|
|
54
100
|
sourceExpression: DataExpressionType;
|
|
101
|
+
/**
|
|
102
|
+
* @label Enable Search
|
|
103
|
+
*/
|
|
55
104
|
search?: ListPageSearchComponentModel;
|
|
105
|
+
/**
|
|
106
|
+
* @label Empty text
|
|
107
|
+
*/
|
|
56
108
|
emptyText: LocalizedKey;
|
|
109
|
+
/**
|
|
110
|
+
* @label Layout
|
|
111
|
+
*/
|
|
57
112
|
itemLayout: BaseListPageViewComponentModel;
|
|
113
|
+
/**
|
|
114
|
+
* @label Footer text
|
|
115
|
+
*/
|
|
58
116
|
footerText?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @label Click Destination
|
|
119
|
+
*/
|
|
59
120
|
itemClickDestination: RoutingType;
|
|
121
|
+
/**
|
|
122
|
+
* @label Add a section
|
|
123
|
+
*/
|
|
60
124
|
hasSection?: ListPageSectionComponentModel;
|
|
125
|
+
/**
|
|
126
|
+
* @label Order by
|
|
127
|
+
*/
|
|
61
128
|
orderBy?: OrderByModel;
|
|
62
129
|
}
|
|
63
130
|
export interface ListPageSearchComponentModel {
|
|
131
|
+
/**
|
|
132
|
+
* @label Placeholder text
|
|
133
|
+
*/
|
|
64
134
|
placeholder: LocalizedKey;
|
|
135
|
+
/**
|
|
136
|
+
* @label Filter on Properties
|
|
137
|
+
*/
|
|
65
138
|
filterOnProperties: string[];
|
|
139
|
+
/**
|
|
140
|
+
* @label Advanced filter
|
|
141
|
+
*/
|
|
66
142
|
advancedFilter: ListPageAdvancedFilterModel;
|
|
67
143
|
}
|
|
68
144
|
export interface ListPageAdvancedFilterModel {
|
|
@@ -78,10 +154,19 @@ interface ButtonGroupViewComponentModel {
|
|
|
78
154
|
items: ButtonGroupItemComponentModel[];
|
|
79
155
|
}
|
|
80
156
|
export interface ListPageSectionComponentModel {
|
|
157
|
+
/**
|
|
158
|
+
* @label Group by
|
|
159
|
+
*/
|
|
81
160
|
sectionTitleProperty: DataExpressionType;
|
|
161
|
+
/**
|
|
162
|
+
* @label Section title
|
|
163
|
+
*/
|
|
82
164
|
sectionTitleText: LocalizedKey;
|
|
83
165
|
}
|
|
84
166
|
export interface OrderByModel {
|
|
167
|
+
/**
|
|
168
|
+
* @label Expression
|
|
169
|
+
*/
|
|
85
170
|
expression: OrderByExpressionType;
|
|
86
171
|
}
|
|
87
172
|
export type OrderByExpressionType = string[];
|
|
@@ -91,25 +176,62 @@ export type OrderByExpressionType = string[];
|
|
|
91
176
|
* @value flat
|
|
92
177
|
*/
|
|
93
178
|
export interface FlatPageComponentModel extends BasePageComponentModel {
|
|
179
|
+
/**
|
|
180
|
+
* @label Delete Button
|
|
181
|
+
*/
|
|
94
182
|
delete: {
|
|
183
|
+
/**
|
|
184
|
+
* @label Show Delete button condition
|
|
185
|
+
*/
|
|
95
186
|
canDeleteExpression: DataExpressionType;
|
|
187
|
+
/**
|
|
188
|
+
* @label Label
|
|
189
|
+
*/
|
|
96
190
|
text: LocalizedKey;
|
|
191
|
+
/**
|
|
192
|
+
* @label Confirm
|
|
193
|
+
*/
|
|
97
194
|
confirm: {
|
|
195
|
+
/**
|
|
196
|
+
* @label Confirm pop-up title
|
|
197
|
+
*/
|
|
98
198
|
title: LocalizedKey;
|
|
199
|
+
/**
|
|
200
|
+
* @label Confirm message
|
|
201
|
+
*/
|
|
99
202
|
description: LocalizedKey;
|
|
203
|
+
/**
|
|
204
|
+
* @label Yes button label
|
|
205
|
+
*/
|
|
100
206
|
yesBtn?: LocalizedKey;
|
|
207
|
+
/**
|
|
208
|
+
* @label No button label
|
|
209
|
+
*/
|
|
101
210
|
noBtn?: LocalizedKey;
|
|
102
211
|
};
|
|
103
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* @label Add Upsert page
|
|
215
|
+
*/
|
|
104
216
|
upsert: {
|
|
105
217
|
insertTitle: LocalizedKey;
|
|
106
218
|
updateTitle: LocalizedKey;
|
|
107
219
|
insertButtonText: LocalizedKey;
|
|
108
220
|
defaultDataForNewObject: OneLevelBindingObject;
|
|
109
221
|
validator?: ValidatorDefinitionModel;
|
|
222
|
+
/**
|
|
223
|
+
* @label Read Only condition
|
|
224
|
+
*/
|
|
110
225
|
readonly: DataExpressionType | boolean;
|
|
111
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* @label Items
|
|
229
|
+
* @hidden true
|
|
230
|
+
*/
|
|
112
231
|
items: BaseFlatPageViewComponentModel[];
|
|
232
|
+
/**
|
|
233
|
+
* @label Description
|
|
234
|
+
*/
|
|
113
235
|
description: LocalizedKey;
|
|
114
236
|
flatPageEvents?: {
|
|
115
237
|
onSubmitted?: FunctionExpressionType;
|
|
@@ -51,6 +51,7 @@ export interface CommonEditorWithPlaceholder {
|
|
|
51
51
|
/**
|
|
52
52
|
* @area Components
|
|
53
53
|
* @value textEditor
|
|
54
|
+
* @description Enable users to input data from mobile app
|
|
54
55
|
*/
|
|
55
56
|
export interface TextEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
56
57
|
/**
|
|
@@ -83,6 +84,7 @@ export interface TextEditorViewComponentModel extends CommonEditorViewComponentM
|
|
|
83
84
|
/**
|
|
84
85
|
* @area Components
|
|
85
86
|
* @value readonlyTextView
|
|
87
|
+
* @description To display information on the mobile app as readonly
|
|
86
88
|
*/
|
|
87
89
|
export interface ReadonlyTextViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
88
90
|
/**
|
|
@@ -141,6 +143,8 @@ export interface SubListEditorViewComponentModel extends CommonEditorViewCompone
|
|
|
141
143
|
}
|
|
142
144
|
/**
|
|
143
145
|
* @area Components
|
|
146
|
+
* @value attachment
|
|
147
|
+
* @description Adding attachments or take photo from mobile app
|
|
144
148
|
*/
|
|
145
149
|
export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
146
150
|
/**
|
|
@@ -173,6 +177,7 @@ export interface BodyMapViewComponentModel extends CommonEditorViewComponentMode
|
|
|
173
177
|
/**
|
|
174
178
|
* @area Components
|
|
175
179
|
* @value signatureEditor
|
|
180
|
+
* @description Capturing signatures on the field
|
|
176
181
|
*/
|
|
177
182
|
export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
178
183
|
/**
|
|
@@ -195,6 +200,7 @@ export interface SignatureEditorViewComponentModel extends CommonEditorViewCompo
|
|
|
195
200
|
/**
|
|
196
201
|
* @area Components
|
|
197
202
|
* @value toggleEditor
|
|
203
|
+
* @description Allow users to toggle between two states
|
|
198
204
|
*/
|
|
199
205
|
export interface ToggleEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
200
206
|
/**
|
|
@@ -237,6 +243,7 @@ export interface ToggleEditorItemModel {
|
|
|
237
243
|
/**
|
|
238
244
|
* @area Components
|
|
239
245
|
* @value dateTimeEditor
|
|
246
|
+
* @description Allow selecting date and time
|
|
240
247
|
*/
|
|
241
248
|
export interface DateTimePickerViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
242
249
|
/**
|
|
@@ -364,6 +371,7 @@ export interface BaseSelectEditor {
|
|
|
364
371
|
/**
|
|
365
372
|
* @area Components
|
|
366
373
|
* @value selectEditor
|
|
374
|
+
* @description Allow selecting a single value from a pre-defined list of options
|
|
367
375
|
*/
|
|
368
376
|
export interface SelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
369
377
|
/**
|
|
@@ -388,6 +396,7 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
|
|
|
388
396
|
/**
|
|
389
397
|
* @area Components
|
|
390
398
|
* @value multiSelectEditor
|
|
399
|
+
* @description Allow selecting one or more values from a pre-defined list of options
|
|
391
400
|
*/
|
|
392
401
|
export interface MultiSelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
393
402
|
displayDataInSearchPageExpression: DataExpressionType;
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { BaseComponentModel } from '../common/BaseComponentModel';
|
|
2
2
|
import { ValueExpressionType, LocalizedKey } from '../common/CommonTypes';
|
|
3
3
|
export interface BaseListPageViewComponentModel extends BaseComponentModel {
|
|
4
|
+
/**
|
|
5
|
+
* @label Use attachments
|
|
6
|
+
*/
|
|
4
7
|
useAttachments?: UseAttachments;
|
|
8
|
+
/**
|
|
9
|
+
* @label Tags
|
|
10
|
+
*/
|
|
5
11
|
tags: ListItemTagModel;
|
|
6
12
|
}
|
|
7
13
|
export interface ListItemTagModel {
|
|
14
|
+
/**
|
|
15
|
+
* @label Type
|
|
16
|
+
*/
|
|
8
17
|
type: 'fixed' | 'dynamic';
|
|
18
|
+
/**
|
|
19
|
+
* @label Items
|
|
20
|
+
*/
|
|
9
21
|
items: ListItemTagItemModel[];
|
|
10
22
|
}
|
|
11
23
|
export interface ListItemTagItemModel {
|
|
@@ -17,6 +29,12 @@ export interface TitleAndCaptionViewComponentModel extends BaseListPageViewCompo
|
|
|
17
29
|
caption: LocalizedKey;
|
|
18
30
|
}
|
|
19
31
|
export interface UseAttachments {
|
|
32
|
+
/**
|
|
33
|
+
* @label Category name
|
|
34
|
+
*/
|
|
20
35
|
categoryName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @label Style
|
|
38
|
+
*/
|
|
21
39
|
style?: 'singleBig' | 'singleSmall';
|
|
22
40
|
}
|