@skedulo/mex-types 1.54.1 → 1.55.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.
package/dist/common/MexDefs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIContent } from 'src/page';
|
|
2
2
|
import { AsyncExpressionType } from './CommonTypes';
|
|
3
3
|
/**
|
|
4
4
|
* Form definition status.
|
|
@@ -319,7 +319,7 @@ export interface FormDef {
|
|
|
319
319
|
/**
|
|
320
320
|
* Form definition UI. In JSON format
|
|
321
321
|
*/
|
|
322
|
-
ui:
|
|
322
|
+
ui: UIContent;
|
|
323
323
|
/**
|
|
324
324
|
* Static fetch configuration. In JSON format
|
|
325
325
|
*/
|
|
@@ -7,6 +7,7 @@ import { ValidatorDefinitionModel } from '../validator';
|
|
|
7
7
|
* @area formProperties
|
|
8
8
|
*/
|
|
9
9
|
export type UIDefinition = {
|
|
10
|
+
type: 'standard';
|
|
10
11
|
/**
|
|
11
12
|
* @label First page
|
|
12
13
|
* @placeholder Enter a page name
|
|
@@ -69,6 +70,7 @@ export type UIDefinition = {
|
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
};
|
|
73
|
+
export type UIContent = UIDefinition | MexWexContent;
|
|
72
74
|
/**
|
|
73
75
|
* @version 1.14.0
|
|
74
76
|
*/
|
|
@@ -563,5 +565,12 @@ export interface MessageBoxProperties {
|
|
|
563
565
|
theme: ValueExpressionType;
|
|
564
566
|
numberOfLines?: number;
|
|
565
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* @version: 2.4.0
|
|
570
|
+
* For the Form using mexwex content as rendering engine
|
|
571
|
+
*/
|
|
572
|
+
export interface MexWexContent {
|
|
573
|
+
type: 'mexwex';
|
|
574
|
+
}
|
|
566
575
|
export type AllPageComponentModel = ListPageComponentModel | FlatPageComponentModelTypes;
|
|
567
576
|
export {};
|
|
@@ -18,4 +18,4 @@ export interface CustomFunctionValidatorModel extends BaseValidatorModel {
|
|
|
18
18
|
type: 'customFunction';
|
|
19
19
|
}
|
|
20
20
|
export type ValidatorDefinitionModel = ValidatorModelTypes[] | ValidatorModelTypes;
|
|
21
|
-
export type ValidatorModelTypes = ExpressionValidatorModel | CustomFunctionValidatorModel;
|
|
21
|
+
export type ValidatorModelTypes = ExpressionValidatorModel | AsyncExpressionValidatorModel | CustomFunctionValidatorModel;
|