@skedulo/mex-types 1.2.0 → 1.2.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,4 +1,4 @@
1
- import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType } from '../common/CommonTypes';
1
+ import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, 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';
@@ -84,6 +84,11 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
84
84
  };
85
85
  items: BaseFlatPageViewComponentModel[];
86
86
  description: LocalizedKey;
87
+ events: {
88
+ onInitialized: FunctionExpressionType;
89
+ onSubmitted: FunctionExpressionType;
90
+ onRemoved: FunctionExpressionType;
91
+ };
87
92
  }
88
93
  export type AllPageComponentModel = ListPageComponentModel | FlatPageComponentModel;
89
94
  export {};
@@ -1,5 +1,5 @@
1
1
  import { BaseComponentModel } from '../common/BaseComponentModel';
2
- import { ButtonGroupItemComponentModel, DataExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, RoutingType, TimezoneType } from '../common/CommonTypes';
2
+ import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, 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 {
@@ -11,6 +11,10 @@ export interface CommonEditorViewComponentModel extends BaseFlatPageViewComponen
11
11
  validator: ValidatorDefinitionModel | undefined;
12
12
  mandatory: boolean | DataExpressionType | undefined;
13
13
  readonly: boolean | DataExpressionType | undefined;
14
+ editorEvents: CommonEditorEvents;
15
+ }
16
+ export interface CommonEditorEvents {
17
+ onValueChanged: FunctionExpressionType;
14
18
  }
15
19
  export interface CommonEditorWithPlaceholder {
16
20
  placeholder: LocalizedKey;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A central repository store for all the interfaces, type definitions of MEX engine",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
- "version": "1.2.0",
6
+ "version": "1.2.1",
7
7
  "scripts": {
8
8
  "bootstrap": "rm -rf node_modules && yarn install --pure-lockfile --peer",
9
9
  "lint": "tslint 'src/**/*.ts'",