@skedulo/mex-types 1.15.1 → 1.15.3

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.
@@ -133,4 +133,4 @@ export interface OpenSelectorButtonBehaviorComponentModel extends ButtonBehavior
133
133
  onDataChosen: FunctionExpressionType;
134
134
  };
135
135
  }
136
- export type IconName = 'copy' | 'logout' | 'search' | 'searchFilter' | 'alert' | 'attachment' | 'calendar' | 'camera' | 'check' | 'checkCircle' | 'debug' | 'delete' | 'edit' | 'email' | 'file' | 'filter' | 'info' | 'job' | 'launch' | 'location' | 'map' | 'mapLayers' | 'mapPin' | 'mobile' | 'more' | 'newMessage' | 'offline' | 'person' | 'phone' | 'photo' | 'settings' | 'shareAndroid' | 'shareIOS' | 'shifts' | 'signature' | 'sms' | 'target' | 'travelDistance';
136
+ 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';
@@ -98,9 +98,15 @@ export interface ListPageComponentModel extends BasePageComponentModel {
98
98
  /**
99
99
  * @label List header
100
100
  */
101
+ header?: ListPageHeaderModel;
102
+ /**
103
+ * @label List header title
104
+ * @deprecated Use title in { ListPageComponentModel.header.title }
105
+ */
101
106
  headerTitle?: LocalizedKey;
102
107
  /**
103
108
  * @label List description
109
+ * @deprecated Use description in { ListPageComponentModel.header.description }
104
110
  */
105
111
  headerDescription?: LocalizedKey;
106
112
  /**
@@ -109,6 +115,7 @@ export interface ListPageComponentModel extends BasePageComponentModel {
109
115
  addNew: AddNewButtonData;
110
116
  /**
111
117
  * @label Button group
118
+ * @deprecated Use buttonGroup in { ListPageComponentModel.header.buttonGroup }
112
119
  */
113
120
  buttonGroup?: ButtonGroupViewComponentModel;
114
121
  /**
@@ -273,10 +280,15 @@ export type FlatPageStepRoutingLogic = {
273
280
  key: string;
274
281
  };
275
282
  export type FlatPageMode = 'single' | 'steps';
276
- export type FlatPageHeaderModel = {
283
+ export interface BasePageHeaderModel {
277
284
  title?: LocalizedKey;
278
285
  description?: LocalizedKey;
286
+ }
287
+ export interface ListPageHeaderModel extends BasePageHeaderModel {
288
+ buttonGroup?: ButtonGroupViewComponentModel;
289
+ }
290
+ export interface FlatPageHeaderModel extends BasePageHeaderModel {
279
291
  tags?: TagModel;
280
- };
292
+ }
281
293
  export type AllPageComponentModel = ListPageComponentModel | FlatPageComponentModel;
282
294
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },