@skedulo/mex-types 1.13.0 → 1.14.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.
@@ -232,17 +232,47 @@ export interface FlatPageComponentModel extends BasePageComponentModel {
232
232
  * @label Items
233
233
  * @hidden true
234
234
  */
235
- items: BaseFlatPageViewComponentModel[];
235
+ items?: BaseFlatPageViewComponentModel[];
236
+ header?: FlatPageHeaderModel;
236
237
  /**
237
238
  * @label Description
239
+ * @deprecated Use description in { 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/mex-types",
3
- "version": "1.13.0",
3
+ "version": "1.14.1",
4
4
  "engines": {
5
5
  "node": "18"
6
6
  },