@skedulo/mex-types 1.20.1 → 1.22.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.
@@ -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;AA8OD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
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"}
@@ -14,15 +14,17 @@ export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
14
14
  * @value textView
15
15
  * @description Content for users to read
16
16
  * @label Read-only
17
- * @fieldOrders ['title', 'text', 'showIfExpression']
17
+ * @fieldOrders ['title', 'caption', 'text', 'showIfExpression']
18
18
  */
19
19
  export interface TextViewComponentModel extends BaseFlatPageViewComponentModel {
20
20
  /**
21
- * @label Title
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 Title
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 Mandatory
44
+ * @label Required
43
45
  * @typeAdhoc boolean
44
46
  * @placeholder Select true or false
45
47
  */
@@ -53,6 +55,12 @@ export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponen
53
55
  * @label Editor events
54
56
  */
55
57
  editorEvents?: CommonEditorEvents;
58
+ /**
59
+ * @label Caption
60
+ * @typeAdhoc textarea
61
+ * @maxLength 1000
62
+ * @tooltip Enter a description or guideline to provide more context. This text will display under the component label
63
+ */
56
64
  caption?: LocalizedKey;
57
65
  }
58
66
  export interface CommonEditorEvents {
@@ -64,7 +72,8 @@ export interface CommonEditorEvents {
64
72
  }
65
73
  export interface CommonEditorWithPlaceholder {
66
74
  /**
67
- * @label Placeholder
75
+ * @label Placeholder text
76
+ * @tooltip Enter a short text that informs the users of what to enter in the field.
68
77
  */
69
78
  placeholder?: LocalizedKey;
70
79
  }
@@ -73,7 +82,7 @@ export interface CommonEditorWithPlaceholder {
73
82
  * @value textEditor
74
83
  * @description Enable users to input data from mobile app
75
84
  * @label Text input
76
- * @fieldOrders ['title', 'keyboardType', 'placeholder', 'mandatory', 'multiline', 'showIfExpression']
85
+ * @fieldOrders ['title', 'caption', 'keyboardType', 'placeholder', 'mandatory', 'multiline', 'showIfExpression']
77
86
  */
78
87
  export interface TextEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
79
88
  /**
@@ -100,7 +109,7 @@ export interface TextEditorViewComponentModel extends CommonEditorViewComponentM
100
109
  */
101
110
  editable?: boolean;
102
111
  /**
103
- * @label Multiline
112
+ * @label Multi-line
104
113
  */
105
114
  multiline?: boolean;
106
115
  /**
@@ -119,7 +128,7 @@ export interface TextEditorFeaturesModel {
119
128
  * @value readonlyTextView
120
129
  * @description Content for users to read
121
130
  * @label Read-only label
122
- * @fieldOrders ['title', 'text', 'showIfExpression']
131
+ * @fieldOrders ['title', 'text', 'caption', 'showIfExpression']
123
132
  */
124
133
  export interface ReadonlyTextViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
125
134
  /**
@@ -182,7 +191,7 @@ export interface SubListEditorViewComponentModel extends CommonEditorViewCompone
182
191
  * @value attachmentsEditor
183
192
  * @description Add a file or photo from a mobile device
184
193
  * @label Attachment
185
- * @fieldOrders ['title', 'mandatory', 'showIfExpression']
194
+ * @fieldOrders ['title', 'caption', 'mandatory', 'showIfExpression']
186
195
  */
187
196
  export interface AttachmentsEditorViewComponentModel extends CommonEditorViewComponentModel {
188
197
  /**
@@ -228,7 +237,7 @@ export interface BodyMapViewComponentModel extends CommonEditorViewComponentMode
228
237
  * @value signatureEditor
229
238
  * @description Capture a signature on a mobile device
230
239
  * @label Signature
231
- * @fieldOrders ['title', 'mandatory', 'enableFullName', 'showIfExpression']
240
+ * @fieldOrders ['title', 'caption', 'mandatory', 'enableFullName', 'showIfExpression']
232
241
  */
233
242
  export interface SignatureEditorViewComponentModel extends CommonEditorViewComponentModel {
234
243
  /**
@@ -256,7 +265,7 @@ export interface SignatureEditorViewComponentModel extends CommonEditorViewCompo
256
265
  * @value toggleEditor
257
266
  * @description Switch between two opposing states
258
267
  * @label Toggle
259
- * @fieldOrders ['showIfExpression']
268
+ * @fieldOrders ['caption', 'showIfExpression']
260
269
  */
261
270
  export interface ToggleEditorViewComponentModel extends CommonEditorViewComponentModel {
262
271
  /**
@@ -301,7 +310,7 @@ export interface ToggleEditorItemModel {
301
310
  * @value dateTimeEditor
302
311
  * @description Allow selecting date and time
303
312
  * @label Date & time
304
- * @fieldOrders ['title', 'placeholder' ,'mandatory', 'showIfExpression']
313
+ * @fieldOrders ['title', 'caption', 'mandatory', 'showIfExpression']
305
314
  */
306
315
  export interface DateTimePickerViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
307
316
  /**
@@ -354,6 +363,9 @@ export interface SectionViewComponentModel extends BaseFlatPageViewComponentMode
354
363
  body: LocalizedKey;
355
364
  /**
356
365
  * @label Caption
366
+ * @typeAdhoc textarea
367
+ * @maxLength 1000
368
+ * @tooltip Enter a description or guideline to provide more context. This text will display under the component label
357
369
  */
358
370
  caption: LocalizedKey;
359
371
  /**
@@ -377,6 +389,9 @@ export interface MenuListItem extends BaseFlatPageViewComponentModel {
377
389
  text: LocalizedKey;
378
390
  /**
379
391
  * @label Caption
392
+ * @typeAdhoc textarea
393
+ * @maxLength 1000
394
+ * @tooltip Enter a description or guideline to provide more context. This text will display under the component label
380
395
  */
381
396
  caption: LocalizedKey;
382
397
  /**
@@ -458,7 +473,7 @@ export interface BaseSelectEditor {
458
473
  * Apply for Mex survey only
459
474
  * This property is used to allow users add choices to the picklist, multi picklist
460
475
  * @typeAdhoc textarea
461
- * @label Add drop down choices
476
+ * @label Add drop-down choices
462
477
  * @placeholder Each choice must be on a separate line
463
478
  * @required true
464
479
  */
@@ -468,8 +483,8 @@ export interface BaseSelectEditor {
468
483
  * @area Components
469
484
  * @value selectEditor
470
485
  * @description Select a single item from a list
471
- * @label Drop down
472
- * @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
486
+ * @label Drop-down
487
+ * @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'options', 'showIfExpression']
473
488
  */
474
489
  export interface SelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
475
490
  /**
@@ -492,8 +507,8 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
492
507
  * @area Components
493
508
  * @value multiSelectEditor
494
509
  * @description Select one or more items from a list
495
- * @label Multi-select drop down
496
- * @fieldOrders ['title', 'placeholder', 'mandatory', 'options', 'showIfExpression']
510
+ * @label Multi-select drop-down
511
+ * @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'options', 'showIfExpression']
497
512
  */
498
513
  export interface MultiSelectEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder, BaseSelectEditor {
499
514
  /**
@@ -518,7 +533,7 @@ export interface MultiSelectEditorViewComponentModel extends CommonEditorViewCom
518
533
  * @value numberEditor
519
534
  * @description Standard number input field
520
535
  * @label Number input
521
- * @fieldOrders ['title', 'placeholder', 'mandatory', 'showIfExpression']
536
+ * @fieldOrders ['title', 'caption', 'placeholder', 'mandatory', 'showIfExpression']
522
537
  */
523
538
  export interface NumberEditorViewComponentModel extends CommonEditorViewComponentModel, CommonEditorWithPlaceholder {
524
539
  /**
@@ -551,6 +566,9 @@ export interface ContactDetailsLayoutComponentModel extends BaseFlatPageViewComp
551
566
  title: LocalizedKey;
552
567
  /**
553
568
  * @label Caption
569
+ * @typeAdhoc textarea
570
+ * @maxLength 1000
571
+ * @tooltip Enter a description or guideline to provide more context. This text will display under the component label
554
572
  */
555
573
  caption: LocalizedKey;
556
574
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.20.1",
3
+ "version": "1.22.0",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },