@skedulo/mex-types 1.12.0 → 1.14.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.
|
@@ -232,17 +232,47 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
|
|
|
232
232
|
* @label Items
|
|
233
233
|
* @hidden true
|
|
234
234
|
*/
|
|
235
|
-
items
|
|
235
|
+
items?: BaseFlatPageViewComponentModel[];
|
|
236
|
+
header?: FlatPageHeaderModel;
|
|
236
237
|
/**
|
|
237
238
|
* @label Description
|
|
239
|
+
* @deprecated Use description in {@link FlatPageComponentModel.header.description}
|
|
238
240
|
*/
|
|
239
|
-
header?: FlatPageHeaderModel;
|
|
240
241
|
description?: LocalizedKey;
|
|
241
242
|
flatPageEvents?: {
|
|
242
243
|
onSubmitted?: FunctionExpressionType;
|
|
243
244
|
onRemoved?: FunctionExpressionType;
|
|
244
245
|
};
|
|
246
|
+
mode?: FlatPageMode;
|
|
247
|
+
stepDef?: FlatPageStepModeDefModel;
|
|
245
248
|
}
|
|
249
|
+
export type FlatPageStepModeDefModel = {
|
|
250
|
+
stepValue: DataExpressionType;
|
|
251
|
+
autoSubmit?: DataExpressionType | boolean;
|
|
252
|
+
events?: {
|
|
253
|
+
onViewInitialized?: FunctionExpressionType;
|
|
254
|
+
onStepChanged?: FunctionExpressionType;
|
|
255
|
+
};
|
|
256
|
+
prevButtonText?: LocalizedKey;
|
|
257
|
+
nextButtonText?: LocalizedKey;
|
|
258
|
+
submitButtonText?: LocalizedKey;
|
|
259
|
+
steps: FlatPageStepModel[];
|
|
260
|
+
};
|
|
261
|
+
export type FlatPageStepModel = {
|
|
262
|
+
key: string;
|
|
263
|
+
ui: FlatPageStepUIModel;
|
|
264
|
+
nextStepRoutingLogic?: FlatPageStepRoutingLogic[];
|
|
265
|
+
stepRecognizedOnInitCondition?: DataExpressionType;
|
|
266
|
+
};
|
|
267
|
+
export type FlatPageStepUIModel = {
|
|
268
|
+
items: BaseFlatPageViewComponentModel[];
|
|
269
|
+
validator?: ValidatorDefinitionModel;
|
|
270
|
+
};
|
|
271
|
+
export type FlatPageStepRoutingLogic = {
|
|
272
|
+
condition: DataExpressionType;
|
|
273
|
+
key: string;
|
|
274
|
+
};
|
|
275
|
+
export type FlatPageMode = 'single' | 'steps';
|
|
246
276
|
export type FlatPageHeaderModel = {
|
|
247
277
|
title?: LocalizedKey;
|
|
248
278
|
description?: LocalizedKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseComponentModel } from '../common/BaseComponentModel';
|
|
2
|
-
import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, ListPageAddNewDefaultDataType, LocalizedKey, OneLevelBindingObject, OrderByModel, RoutingType, TimezoneType } from '../common/CommonTypes';
|
|
2
|
+
import { ButtonGroupItemComponentModel, DataExpressionType, FunctionExpressionType, GroupByFeatureModel, IconName, 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 {
|
|
@@ -363,6 +363,7 @@ export interface MenuListItem extends BaseFlatPageViewComponentModel {
|
|
|
363
363
|
* @label Badge Text
|
|
364
364
|
*/
|
|
365
365
|
badgeText: LocalizedKey;
|
|
366
|
+
icon?: IconName;
|
|
366
367
|
}
|
|
367
368
|
export interface BaseSelectEditor {
|
|
368
369
|
/**
|