@skedulo/mex-types 1.3.18 → 1.3.20
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.
|
@@ -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,8 @@ export interface CommonEditorWithPlaceholder {
|
|
|
51
51
|
/**
|
|
52
52
|
* @area Components
|
|
53
53
|
* @value textEditor
|
|
54
|
+
* @description Enable users to input data from mobile app
|
|
55
|
+
* @label Text input
|
|
54
56
|
*/
|
|
55
57
|
export interface TextEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
56
58
|
/**
|
|
@@ -83,6 +85,8 @@ export interface TextEditorViewComponentModel extends CommonEditorViewComponentM
|
|
|
83
85
|
/**
|
|
84
86
|
* @area Components
|
|
85
87
|
* @value readonlyTextView
|
|
88
|
+
* @description To display information on the mobile app as readonly
|
|
89
|
+
* @label Readonly text
|
|
86
90
|
*/
|
|
87
91
|
export interface ReadonlyTextViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
88
92
|
/**
|
|
@@ -94,6 +98,7 @@ export type SkedButtonTheme = 'success' | 'primary' | 'default';
|
|
|
94
98
|
/**
|
|
95
99
|
* @area Components
|
|
96
100
|
* @value buttonGroup
|
|
101
|
+
* @label Button group
|
|
97
102
|
*/
|
|
98
103
|
export interface ButtonGroupViewComponentModel extends BaseFlatPageViewComponentModel, CommonEditorWithPlaceholder {
|
|
99
104
|
items: ButtonGroupItemComponentModel[];
|
|
@@ -141,6 +146,9 @@ export interface SubListEditorViewComponentModel extends CommonEditorViewCompone
|
|
|
141
146
|
}
|
|
142
147
|
/**
|
|
143
148
|
* @area Components
|
|
149
|
+
* @value attachment
|
|
150
|
+
* @description Adding attachments or take photo from mobile app
|
|
151
|
+
* @label Attachment
|
|
144
152
|
*/
|
|
145
153
|
export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
146
154
|
/**
|
|
@@ -159,6 +167,7 @@ export interface AttachmentsEditorViewComponentModel extends CommonEditorViewCom
|
|
|
159
167
|
/**
|
|
160
168
|
* @area Components
|
|
161
169
|
* @value bodyMapEditor
|
|
170
|
+
* @label Body map
|
|
162
171
|
*/
|
|
163
172
|
export interface BodyMapViewComponentModel extends CommonEditorViewComponentModel {
|
|
164
173
|
/**
|
|
@@ -173,6 +182,8 @@ export interface BodyMapViewComponentModel extends CommonEditorViewComponentMode
|
|
|
173
182
|
/**
|
|
174
183
|
* @area Components
|
|
175
184
|
* @value signatureEditor
|
|
185
|
+
* @description Capturing signatures on the field
|
|
186
|
+
* @label Signature
|
|
176
187
|
*/
|
|
177
188
|
export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
178
189
|
/**
|
|
@@ -195,6 +206,8 @@ export interface SignatureEditorViewComponentModel extends CommonEditorViewCompo
|
|
|
195
206
|
/**
|
|
196
207
|
* @area Components
|
|
197
208
|
* @value toggleEditor
|
|
209
|
+
* @description Allow users to toggle between two states
|
|
210
|
+
* @label Toggle
|
|
198
211
|
*/
|
|
199
212
|
export interface ToggleEditorViewComponentModel extends CommonEditorViewComponentModel {
|
|
200
213
|
/**
|
|
@@ -237,6 +250,7 @@ export interface ToggleEditorItemModel {
|
|
|
237
250
|
/**
|
|
238
251
|
* @area Components
|
|
239
252
|
* @value dateTimeEditor
|
|
253
|
+
* @description Allow selecting date and time
|
|
240
254
|
*/
|
|
241
255
|
export interface DateTimePickerViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
242
256
|
/**
|
|
@@ -290,6 +304,7 @@ export interface SectionViewComponentModel extends BaseFlatPageViewComponentMode
|
|
|
290
304
|
/**
|
|
291
305
|
* @area Components
|
|
292
306
|
* @value menuList
|
|
307
|
+
* @label Menu list
|
|
293
308
|
*/
|
|
294
309
|
export interface MenuListViewComponentModel extends BaseFlatPageViewComponentModel {
|
|
295
310
|
items: MenuListItem[];
|
|
@@ -364,6 +379,8 @@ export interface BaseSelectEditor {
|
|
|
364
379
|
/**
|
|
365
380
|
* @area Components
|
|
366
381
|
* @value selectEditor
|
|
382
|
+
* @description Allow selecting a single value from a pre-defined list of options
|
|
383
|
+
* @label Picklist
|
|
367
384
|
*/
|
|
368
385
|
export interface SelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
369
386
|
/**
|
|
@@ -388,6 +405,8 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
|
|
|
388
405
|
/**
|
|
389
406
|
* @area Components
|
|
390
407
|
* @value multiSelectEditor
|
|
408
|
+
* @description Allow selecting one or more values from a pre-defined list of options
|
|
409
|
+
* @label Multi-picklist
|
|
391
410
|
*/
|
|
392
411
|
export interface MultiSelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
393
412
|
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
|
}
|