@skedulo/mex-types 1.5.2 → 1.6.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.
@@ -105,7 +105,26 @@ export type SelectPageConfig = {
105
105
  };
106
106
  onlineSource?: SelectPageOnlineSource;
107
107
  selectedDataExpression?: DataExpressionType;
108
+ hasSection?: GroupByFeatureModel;
109
+ orderBy?: OrderByModel;
108
110
  };
111
+ export interface GroupByFeatureModel {
112
+ /**
113
+ * @label Group by
114
+ */
115
+ sectionTitleProperty: DataExpressionType;
116
+ /**
117
+ * @label Section title
118
+ */
119
+ sectionTitleText: LocalizedKey;
120
+ }
121
+ export interface OrderByModel {
122
+ /**
123
+ * @label Expression
124
+ */
125
+ expression: OrderByExpressionType;
126
+ }
127
+ export type OrderByExpressionType = string[];
109
128
  export interface OpenSelectorButtonBehaviorComponentModel extends ButtonBehaviorComponentModel {
110
129
  selectPage: SelectPageConfig;
111
130
  events: {
@@ -42,6 +42,7 @@ type MexBaseMetadata = {
42
42
  summary?: string;
43
43
  /**
44
44
  * @label Email
45
+ * @hidden true
45
46
  */
46
47
  email?: string;
47
48
  /**
@@ -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;AAuOD,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;AAwOD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
@@ -1,4 +1,4 @@
1
- import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType } from '../common/CommonTypes';
1
+ import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OrderByModel, RoutingType } from '../common/CommonTypes';
2
2
  import { BaseListPageViewComponentModel } from '../view/ListPageViewComponentModel';
3
3
  import { BaseComponentModel } from '../common/BaseComponentModel';
4
4
  import { BaseFlatPageViewComponentModel } from '../view/FlatPageViewComponentModel';
@@ -121,7 +121,7 @@ export interface ListPageComponentModel extends BasePageComponentModel {
121
121
  /**
122
122
  * @label Add a section
123
123
  */
124
- hasSection?: ListPageSectionComponentModel;
124
+ hasSection?: GroupByFeatureModel;
125
125
  /**
126
126
  * @label Order by
127
127
  */
@@ -157,23 +157,6 @@ export type ListPageAdvancedFilterUI = {
157
157
  interface ButtonGroupViewComponentModel {
158
158
  items: ButtonGroupItemComponentModel[];
159
159
  }
160
- export interface ListPageSectionComponentModel {
161
- /**
162
- * @label Group by
163
- */
164
- sectionTitleProperty: DataExpressionType;
165
- /**
166
- * @label Section title
167
- */
168
- sectionTitleText: LocalizedKey;
169
- }
170
- export interface OrderByModel {
171
- /**
172
- * @label Expression
173
- */
174
- expression: OrderByExpressionType;
175
- }
176
- export type OrderByExpressionType = string[];
177
160
  /**
178
161
  * @area Pages
179
162
  * @label Standard
@@ -1,5 +1,5 @@
1
1
  import { BaseComponentModel } from '../common/BaseComponentModel';
2
- import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType, TimezoneType } from '../common/CommonTypes';
2
+ import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OrderByModel, RoutingType, TimezoneType } from '../common/CommonTypes';
3
3
  import { SelectPageOnlineSource, SelectPageSearchBarConfig } from './SearchPage';
4
4
  import { ValidatorDefinitionModel } from '../validator/ValidatorModel';
5
5
  export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
@@ -17,7 +17,7 @@ export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponen
17
17
  title: LocalizedKey;
18
18
  /**
19
19
  * @label Validator
20
- * @typeAdhoc BaseValidatorModel
20
+ * @referenceTo ExpressionValidatorModel
21
21
  */
22
22
  validator?: ValidatorDefinitionModel;
23
23
  /**
@@ -218,7 +218,7 @@ export interface ToggleEditorViewComponentModel extends CommonEditorViewComponen
218
218
  /**
219
219
  * TODO: Remove typeAdhoc for union type, and dynamic form need to support Array of object
220
220
  * @label Validator
221
- * @typeAdhoc BaseValidatorModel
221
+ * @referenceTo ExpressionValidatorModel
222
222
  */
223
223
  validator: ValidatorDefinitionModel;
224
224
  /**
@@ -377,6 +377,14 @@ export interface BaseSelectEditor {
377
377
  * @label searchBar
378
378
  */
379
379
  searchBar: SelectPageSearchBarConfig;
380
+ /**
381
+ * @label Add a section
382
+ */
383
+ hasSection?: GroupByFeatureModel;
384
+ /**
385
+ * @label Order by
386
+ */
387
+ orderBy?: OrderByModel;
380
388
  };
381
389
  }
382
390
  /**
@@ -397,7 +405,7 @@ export interface SelectEditorViewComponentModel extends CommonEditorViewComponen
397
405
  /**
398
406
  * TODO: Remove typeAdhoc for union type, and dynamic form need to support Array of object
399
407
  * @label Validator
400
- * @typeAdhoc BaseValidatorModel
408
+ * @referenceTo ExpressionValidatorModel
401
409
  */
402
410
  validator: ValidatorDefinitionModel;
403
411
  /**
@@ -418,7 +426,7 @@ export interface MultiSelectEditorViewComponentModel extends CommonEditorViewCom
418
426
  /**
419
427
  * TODO: Remove typeAdhoc for union type, and dynamic form need to support Array of object
420
428
  * @label Validator
421
- * @typeAdhoc BaseValidatorModel
429
+ * @referenceTo ExpressionValidatorModel
422
430
  */
423
431
  validator: ValidatorDefinitionModel;
424
432
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },