@skedulo/mex-types 1.20.0 → 1.21.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.
package/dist/common/MexDefs.d.ts
CHANGED
|
@@ -99,11 +99,6 @@ interface MexMetadataForJob extends MexBaseMetadata {
|
|
|
99
99
|
* @area Metadata
|
|
100
100
|
*/
|
|
101
101
|
interface MexMetadataForResource extends MexBaseMetadata {
|
|
102
|
-
/**
|
|
103
|
-
* @label Visible for resource category
|
|
104
|
-
* @tooltip Resource types where this form will be visible
|
|
105
|
-
*/
|
|
106
|
-
showIf?: string;
|
|
107
102
|
/**
|
|
108
103
|
* @label Form type
|
|
109
104
|
* @options [{label: 'Jobs', value: 'Jobs'}, {label: 'Global', value: 'Resources'}]
|
|
@@ -112,6 +107,11 @@ interface MexMetadataForResource extends MexBaseMetadata {
|
|
|
112
107
|
* @readonly true
|
|
113
108
|
*/
|
|
114
109
|
contextObject: 'Resources';
|
|
110
|
+
/**
|
|
111
|
+
* @label Visible for resource category
|
|
112
|
+
* @tooltip Resource types where this form will be visible
|
|
113
|
+
*/
|
|
114
|
+
showIf?: string;
|
|
115
115
|
}
|
|
116
116
|
export interface MexMetadataFormBuilder extends MexBaseMetadata {
|
|
117
117
|
/**
|
|
@@ -167,6 +167,7 @@ export interface MexDef {
|
|
|
167
167
|
* The definition id, will be generated for the first time.
|
|
168
168
|
* It is used for definition update action
|
|
169
169
|
* @label Form ID
|
|
170
|
+
* @required false
|
|
170
171
|
* @readonly true
|
|
171
172
|
*/
|
|
172
173
|
defId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MexDefs.js","sourceRoot":"","sources":["../../src/common/MexDefs.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAIjD;;;;;GAKG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB;;OAEG;IACH,4BAAe,CAAA;IACf;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,wCAA2B,CAAA;IAC3B;;OAEG;IACH,gDAAmC,CAAA;IACnC;;OAEG;IACH,oDAAuC,CAAA;IACvC;;OAEG;IACH,8BAAiB,CAAA;AACnB,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB;
|
|
1
|
+
{"version":3,"file":"MexDefs.js","sourceRoot":"","sources":["../../src/common/MexDefs.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAIjD;;;;;GAKG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB;;OAEG;IACH,4BAAe,CAAA;IACf;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,oCAAuB,CAAA;IACvB;;OAEG;IACH,wCAA2B,CAAA;IAC3B;;OAEG;IACH,gDAAmC,CAAA;IACnC;;OAEG;IACH,oDAAuC,CAAA;IACvC;;OAEG;IACH,8BAAiB,CAAA;AACnB,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB;AA+OD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -18,11 +18,13 @@ export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface TextViewComponentModel extends BaseFlatPageViewComponentModel {
|
|
20
20
|
/**
|
|
21
|
-
* @label
|
|
21
|
+
* @label Heading
|
|
22
|
+
* @tooltip Text added here will be shown as the header of the paragraph
|
|
22
23
|
*/
|
|
23
24
|
title?: LocalizedKey;
|
|
24
25
|
/**
|
|
25
|
-
* @label Text
|
|
26
|
+
* @label Text to display
|
|
27
|
+
* @tooltip Text added here will be shown in mobile forms as a readonly paragraph
|
|
26
28
|
*/
|
|
27
29
|
text: LocalizedKey;
|
|
28
30
|
}
|
|
@@ -30,7 +32,7 @@ export type KeyboardType = 'default' | 'email-address' | 'numeric' | 'phone-pad'
|
|
|
30
32
|
export type TextEditorDataType = 'string' | 'integer' | 'decimal';
|
|
31
33
|
export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponentModel {
|
|
32
34
|
/**
|
|
33
|
-
* @label
|
|
35
|
+
* @label Label
|
|
34
36
|
*/
|
|
35
37
|
title: LocalizedKey;
|
|
36
38
|
/**
|
|
@@ -39,7 +41,7 @@ export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponen
|
|
|
39
41
|
*/
|
|
40
42
|
validator?: ValidatorDefinitionModel;
|
|
41
43
|
/**
|
|
42
|
-
* @label
|
|
44
|
+
* @label Required
|
|
43
45
|
* @typeAdhoc boolean
|
|
44
46
|
* @placeholder Select true or false
|
|
45
47
|
*/
|
|
@@ -64,7 +66,8 @@ export interface CommonEditorEvents {
|
|
|
64
66
|
}
|
|
65
67
|
export interface CommonEditorWithPlaceholder {
|
|
66
68
|
/**
|
|
67
|
-
* @label Placeholder
|
|
69
|
+
* @label Placeholder text
|
|
70
|
+
* @tooltip Enter a short text that informs the users of what to enter in the field.
|
|
68
71
|
*/
|
|
69
72
|
placeholder?: LocalizedKey;
|
|
70
73
|
}
|
|
@@ -100,7 +103,7 @@ export interface TextEditorViewComponentModel extends CommonEditorViewComponentM
|
|
|
100
103
|
*/
|
|
101
104
|
editable?: boolean;
|
|
102
105
|
/**
|
|
103
|
-
* @label
|
|
106
|
+
* @label Multi-line
|
|
104
107
|
*/
|
|
105
108
|
multiline?: boolean;
|
|
106
109
|
/**
|
|
@@ -301,7 +304,7 @@ export interface ToggleEditorItemModel {
|
|
|
301
304
|
* @value dateTimeEditor
|
|
302
305
|
* @description Allow selecting date and time
|
|
303
306
|
* @label Date & time
|
|
304
|
-
* @fieldOrders ['title'
|
|
307
|
+
* @fieldOrders ['title' ,'mandatory', 'showIfExpression']
|
|
305
308
|
*/
|
|
306
309
|
export interface DateTimePickerViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
|
|
307
310
|
/**
|
|
@@ -458,7 +461,7 @@ export interface BaseSelectEditor {
|
|
|
458
461
|
* Apply for Mex survey only
|
|
459
462
|
* This property is used to allow users add choices to the picklist, multi picklist
|
|
460
463
|
* @typeAdhoc textarea
|
|
461
|
-
* @label Add drop
|
|
464
|
+
* @label Add drop-down choices
|
|
462
465
|
* @placeholder Each choice must be on a separate line
|
|
463
466
|
* @required true
|
|
464
467
|
*/
|
|
@@ -468,7 +471,7 @@ export interface BaseSelectEditor {
|
|
|
468
471
|
* @area Components
|
|
469
472
|
* @value selectEditor
|
|
470
473
|
* @description Select a single item from a list
|
|
471
|
-
* @label Drop
|
|
474
|
+
* @label Drop-down
|
|
472
475
|
* @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
473
476
|
*/
|
|
474
477
|
export interface SelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|
|
@@ -492,7 +495,7 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
|
|
|
492
495
|
* @area Components
|
|
493
496
|
* @value multiSelectEditor
|
|
494
497
|
* @description Select one or more items from a list
|
|
495
|
-
* @label Multi-select drop
|
|
498
|
+
* @label Multi-select drop-down
|
|
496
499
|
* @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
|
|
497
500
|
*/
|
|
498
501
|
export interface MultiSelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
|