@skedulo/mex-types 1.47.0 → 1.49.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.
@@ -60,6 +60,7 @@ export type RoutingPageUI = {
60
60
  items: (FlatPageViewComponentTypes | DynamicContent)[];
61
61
  description?: LocalizedKey;
62
62
  submitText?: LocalizedKey;
63
+ defaultData?: any;
63
64
  };
64
65
  export type Routing = {
65
66
  page: string;
@@ -546,9 +546,15 @@ export interface FlatPageHeaderModel extends BasePageHeaderModel {
546
546
  /**
547
547
  * @version: 1.13.10
548
548
  */
549
- export interface MessageBoxModel {
550
- text: LocalizedKey;
549
+ export interface MessageBoxModel extends MessageBoxProperties {
551
550
  showIfExpression?: ValueExpressionType;
551
+ }
552
+ /**
553
+ * @version: 1.24.0
554
+ * For views that contain a theme container and display text content
555
+ */
556
+ export interface MessageBoxProperties {
557
+ text: LocalizedKey;
552
558
  /**
553
559
  * @values: 'success' | 'primary' | 'danger' | 'warning'
554
560
  */
@@ -2,6 +2,7 @@ import { BaseComponentModel, StaticResourceImage } from '../common';
2
2
  import { ButtonGroupItemComponentModel, DataExpressionType, DynamicContent, FunctionExpressionType, GroupByFeatureModel, IconName, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OnlineFetchListDataQuery, OrderByModel, RoutingType, SkedRemoteImage, TimezoneType, ValueExpressionType } from '../common';
3
3
  import { SelectPageOnlineSource, SelectPageSearchBarConfig } from './SearchPage';
4
4
  import { ValidatorDefinitionModel } from '../validator';
5
+ import { MessageBoxProperties } from '../page';
5
6
  export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
6
7
  /**
7
8
  * @label ShowIf expression
@@ -9,7 +10,7 @@ export interface BaseFlatPageViewComponentModel extends BaseComponentModel {
9
10
  */
10
11
  showIfExpression?: DataExpressionType;
11
12
  }
12
- export type FlatPageViewComponentTypes = TextViewComponentModel | TextEditorViewComponentModel | TextAreaEditorViewComponentModel | ReadonlyTextViewComponentModel | ButtonGroupViewComponentModel | AttachmentsEditorViewComponentModel | SignatureEditorViewComponentModel | ToggleEditorViewComponentModel | DateTimePickerViewComponentModel | SectionViewComponentModel | MenuListViewComponentModel | SelectEditorViewComponentModel | MultiSelectEditorViewComponentModel | ChartViewComponentTypes | AddressSelectEditorViewComponentModel | ImageViewComponentModel | ImageAnnotationEditorViewComponentModel;
13
+ export type FlatPageViewComponentTypes = TextViewComponentModel | TextEditorViewComponentModel | TextAreaEditorViewComponentModel | ReadonlyTextViewComponentModel | ButtonGroupViewComponentModel | AttachmentsEditorViewComponentModel | SignatureEditorViewComponentModel | ToggleEditorViewComponentModel | DateTimePickerViewComponentModel | SectionViewComponentModel | MenuListViewComponentModel | SelectEditorViewComponentModel | MultiSelectEditorViewComponentModel | ChartViewComponentTypes | AddressSelectEditorViewComponentModel | ImageViewComponentModel | ImageAnnotationEditorViewComponentModel | MessageBoxComponentModel;
13
14
  /**
14
15
  * @area Components
15
16
  * @value textView
@@ -26,6 +27,12 @@ export interface TextViewComponentModel extends BaseViewOnlyComponentModel {
26
27
  text: LocalizedKey;
27
28
  type: 'textView';
28
29
  }
30
+ /**
31
+ * @version 1.24.0
32
+ */
33
+ export interface MessageBoxComponentModel extends BaseViewOnlyComponentModel, MessageBoxProperties {
34
+ type: 'messageBox';
35
+ }
29
36
  /**
30
37
  * @version 1.14.8
31
38
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.47.0",
3
+ "version": "1.49.0",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },