@skedulo/mex-types 1.42.1 → 1.43.1

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, SelectPage, SkedButtonTheme } from '../view';
3
2
  export type DollarExpressionType = string;
4
3
  export type DataExpressionType = string;
5
4
  export type ValueExpressionType = string | ValueExpressionLogic[];
@@ -137,33 +136,6 @@ export interface RoutingBehaviorComponentModel extends ButtonBehaviorComponentMo
137
136
  destination: RoutingType;
138
137
  type: 'routing';
139
138
  }
140
- export type SelectPageConfig = {
141
- searchBar: {
142
- filterOnProperties?: string[];
143
- placeholder: LocalizedKey;
144
- };
145
- itemCaption: LocalizedKey;
146
- itemTitle: LocalizedKey;
147
- dataSourceExpression: DataExpressionType;
148
- emptyText: LocalizedKey;
149
- filterExpression?: DataExpressionType;
150
- singleSelectionConfig?: {
151
- dismissPageAfterChosen: boolean;
152
- };
153
- isMultiSelect?: boolean;
154
- header?: {
155
- title: LocalizedKey;
156
- hasClearBtn: boolean;
157
- };
158
- onlineSource?: SelectPageOnlineSource;
159
- /**
160
- * @version: 1.15.0
161
- */
162
- onlineMode?: OnlineFetchListDataQuery;
163
- selectedDataExpression?: DataExpressionType;
164
- hasSection?: GroupByFeatureModel;
165
- orderBy?: OrderByModel;
166
- };
167
139
  export interface GroupByFeatureModel {
168
140
  /**
169
141
  * @label Group by
@@ -182,7 +154,7 @@ export interface OrderByModel {
182
154
  }
183
155
  export type OrderByExpressionType = string[];
184
156
  export interface OpenSelectorButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
185
- selectPage: SelectPageConfig;
157
+ selectPage: SelectPage;
186
158
  events: {
187
159
  onDataChosen: FunctionExpressionType;
188
160
  };
@@ -373,6 +373,11 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
373
373
  insertTitle?: LocalizedKey;
374
374
  updateTitle?: LocalizedKey;
375
375
  insertButtonText?: LocalizedKey;
376
+ /**
377
+ * @version 1.16.0
378
+ * @label Add 'Done' button to Update page
379
+ */
380
+ updateButtonText?: LocalizedKey;
376
381
  defaultDataForNewObject?: OneLevelBindingObject;
377
382
  validator?: ValidatorDefinitionModel;
378
383
  /**
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.42.1",
3
+ "version": "1.43.1",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },