@xatlas/rainbow-core 1.6.9 → 1.7.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.
@@ -3076,7 +3076,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3076
3076
  confirm: 1,
3077
3077
  todo_actors: []
3078
3078
  });
3079
- _this.actionViewWidget = 'workflow-report';
3079
+ _this.actionViewWidget = _this.getActionWidget(action) || 'workflow-report';
3080
3080
  _this.actionParams.flow = data;
3081
3081
  _this.actionViewVisible = true;
3082
3082
 
@@ -3117,7 +3117,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3117
3117
 
3118
3118
  case 7:
3119
3119
  _this2.actionConfirmMode = false;
3120
- _this2.actionViewWidget = 'workflow-report';
3120
+ _this2.actionViewWidget = _this2.getActionWidget(action) || 'workflow-report';
3121
3121
  _this2.actionModel = flow_objectSpread(flow_objectSpread({}, model), {}, {
3122
3122
  data: flow_objectSpread({}, data.data),
3123
3123
  confirm: 1,
@@ -3168,7 +3168,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3168
3168
 
3169
3169
  case 7:
3170
3170
  _this3.actionConfirmMode = false;
3171
- _this3.actionViewWidget = 'workflow-report';
3171
+ _this3.actionViewWidget = _this3.getActionWidget(action) || 'workflow-report';
3172
3172
  _this3.actionModel = flow_objectSpread(flow_objectSpread({}, model), {}, {
3173
3173
  data: flow_objectSpread({}, data.data),
3174
3174
  confirm: 1,
@@ -3221,7 +3221,7 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3221
3221
 
3222
3222
  case 9:
3223
3223
  _this4.actionConfirmMode = false;
3224
- _this4.actionViewWidget = 'workflow-report';
3224
+ _this4.actionViewWidget = _this4.getActionWidget(action) || 'workflow-report';
3225
3225
  _this4.actionParams.flow = data;
3226
3226
  _this4.actionViewVisible = true;
3227
3227
 
@@ -3232,6 +3232,17 @@ function flow_asyncToGenerator(fn) { return function () { var self = this, args
3232
3232
  }
3233
3233
  }, _callee4);
3234
3234
  }))();
3235
+ },
3236
+ getActionWidget: function getActionWidget(action) {
3237
+ var configs = null;
3238
+
3239
+ if (action.configs.length) {
3240
+ configs = Object.fromEntries(action.configs.map(function (c) {
3241
+ return [c.key, c.value];
3242
+ }));
3243
+ }
3244
+
3245
+ return configs['action.widget'] || undefined;
3235
3246
  }
3236
3247
  }
3237
3248
  });