@skedulo/mex-types 1.43.0 → 1.43.2
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,5 +1,4 @@
|
|
|
1
|
-
import { FlatPageViewComponentTypes, SkedButtonTheme } from '../view';
|
|
2
|
-
import { SelectPageOnlineSource } from '../view';
|
|
1
|
+
import { FlatPageViewComponentTypes, SelectPageOnlineSource, SkedButtonTheme } from '../view';
|
|
3
2
|
export type DollarExpressionType = string;
|
|
4
3
|
export type DataExpressionType = string;
|
|
5
4
|
export type ValueExpressionType = string | ValueExpressionLogic[];
|
|
@@ -137,8 +136,31 @@ export interface RoutingBehaviorComponentModel extends ButtonBehaviorComponentMo
|
|
|
137
136
|
destination: RoutingType;
|
|
138
137
|
type: 'routing';
|
|
139
138
|
}
|
|
139
|
+
export interface GroupByFeatureModel {
|
|
140
|
+
/**
|
|
141
|
+
* @label Group by
|
|
142
|
+
*/
|
|
143
|
+
sectionTitleProperty: DataExpressionType;
|
|
144
|
+
/**
|
|
145
|
+
* @label Section title
|
|
146
|
+
*/
|
|
147
|
+
sectionTitleText: LocalizedKey;
|
|
148
|
+
}
|
|
149
|
+
export interface OrderByModel {
|
|
150
|
+
/**
|
|
151
|
+
* @label Expression
|
|
152
|
+
*/
|
|
153
|
+
expression: OrderByExpressionType;
|
|
154
|
+
}
|
|
155
|
+
export type OrderByExpressionType = string[];
|
|
156
|
+
export interface OpenSelectorButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
157
|
+
selectPage: SelectPageConfig;
|
|
158
|
+
events: {
|
|
159
|
+
onDataChosen: FunctionExpressionType;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
140
162
|
export type SelectPageConfig = {
|
|
141
|
-
searchBar
|
|
163
|
+
searchBar?: {
|
|
142
164
|
filterOnProperties?: string[];
|
|
143
165
|
placeholder: LocalizedKey;
|
|
144
166
|
};
|
|
@@ -164,29 +186,6 @@ export type SelectPageConfig = {
|
|
|
164
186
|
hasSection?: GroupByFeatureModel;
|
|
165
187
|
orderBy?: OrderByModel;
|
|
166
188
|
};
|
|
167
|
-
export interface GroupByFeatureModel {
|
|
168
|
-
/**
|
|
169
|
-
* @label Group by
|
|
170
|
-
*/
|
|
171
|
-
sectionTitleProperty: DataExpressionType;
|
|
172
|
-
/**
|
|
173
|
-
* @label Section title
|
|
174
|
-
*/
|
|
175
|
-
sectionTitleText: LocalizedKey;
|
|
176
|
-
}
|
|
177
|
-
export interface OrderByModel {
|
|
178
|
-
/**
|
|
179
|
-
* @label Expression
|
|
180
|
-
*/
|
|
181
|
-
expression: OrderByExpressionType;
|
|
182
|
-
}
|
|
183
|
-
export type OrderByExpressionType = string[];
|
|
184
|
-
export interface OpenSelectorButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
|
|
185
|
-
selectPage: SelectPageConfig;
|
|
186
|
-
events: {
|
|
187
|
-
onDataChosen: FunctionExpressionType;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
189
|
export type IconName = 'copy' | 'logout' | 'search' | 'searchFilter' | 'alert' | 'attachment' | 'calendar' | 'camera' | 'clock' | 'check' | 'checkCircle' | 'date' | 'debug' | 'delete' | 'edit' | 'email' | 'fieldClear' | 'fieldSearch' | 'file' | 'filter' | 'info' | 'job' | 'launch' | 'location' | 'map' | 'mapLayers' | 'mapPin' | 'mobile' | 'more' | 'newMessage' | 'offline' | 'person' | 'phone' | 'photo' | 'select' | 'settings' | 'shareAndroid' | 'shareIOS' | 'shifts' | 'signature' | 'sms' | 'target' | 'travelDistance';
|
|
191
190
|
/**
|
|
192
191
|
* @version 1.10.0
|
|
@@ -494,36 +494,7 @@ export interface BaseSelectEditor extends WithTitle {
|
|
|
494
494
|
* @label Select page
|
|
495
495
|
* @form-builder-hidden true
|
|
496
496
|
*/
|
|
497
|
-
selectPage:
|
|
498
|
-
/**
|
|
499
|
-
* @label Item title
|
|
500
|
-
*/
|
|
501
|
-
itemTitle: LocalizedKey;
|
|
502
|
-
/**
|
|
503
|
-
* @label Item caption
|
|
504
|
-
*/
|
|
505
|
-
itemCaption?: LocalizedKey;
|
|
506
|
-
/**
|
|
507
|
-
* @label Empty text
|
|
508
|
-
*/
|
|
509
|
-
emptyText?: LocalizedKey;
|
|
510
|
-
/**
|
|
511
|
-
* @label Title
|
|
512
|
-
*/
|
|
513
|
-
title: LocalizedKey;
|
|
514
|
-
/**
|
|
515
|
-
* @label searchBar
|
|
516
|
-
*/
|
|
517
|
-
searchBar?: SelectPageSearchBarConfig;
|
|
518
|
-
/**
|
|
519
|
-
* @label Add a section
|
|
520
|
-
*/
|
|
521
|
-
hasSection?: GroupByFeatureModel;
|
|
522
|
-
/**
|
|
523
|
-
* @label Order by
|
|
524
|
-
*/
|
|
525
|
-
orderBy?: OrderByModel;
|
|
526
|
-
};
|
|
497
|
+
selectPage: SelectPage;
|
|
527
498
|
/**
|
|
528
499
|
* Apply for Mex survey only
|
|
529
500
|
* This property is used to allow users add choices to the picklist, multi picklist
|
|
@@ -534,6 +505,40 @@ export interface BaseSelectEditor extends WithTitle {
|
|
|
534
505
|
*/
|
|
535
506
|
options?: string;
|
|
536
507
|
}
|
|
508
|
+
/**
|
|
509
|
+
* Configs for select page
|
|
510
|
+
* @version 1.17.0
|
|
511
|
+
*/
|
|
512
|
+
export type SelectPage = {
|
|
513
|
+
/**
|
|
514
|
+
* @label Item title
|
|
515
|
+
*/
|
|
516
|
+
itemTitle: LocalizedKey;
|
|
517
|
+
/**
|
|
518
|
+
* @label Item caption
|
|
519
|
+
*/
|
|
520
|
+
itemCaption?: LocalizedKey;
|
|
521
|
+
/**
|
|
522
|
+
* @label Empty text
|
|
523
|
+
*/
|
|
524
|
+
emptyText?: LocalizedKey;
|
|
525
|
+
/**
|
|
526
|
+
* @label Title
|
|
527
|
+
*/
|
|
528
|
+
title: LocalizedKey;
|
|
529
|
+
/**
|
|
530
|
+
* @label searchBar
|
|
531
|
+
*/
|
|
532
|
+
searchBar?: SelectPageSearchBarConfig;
|
|
533
|
+
/**
|
|
534
|
+
* @label Add a section
|
|
535
|
+
*/
|
|
536
|
+
hasSection?: GroupByFeatureModel;
|
|
537
|
+
/**
|
|
538
|
+
* @label Order by
|
|
539
|
+
*/
|
|
540
|
+
orderBy?: OrderByModel;
|
|
541
|
+
};
|
|
537
542
|
/**
|
|
538
543
|
* @area Components
|
|
539
544
|
* @value selectEditor
|