@infomaximum/widget-sdk 4.0.0-next3 → 4.0.0-next4

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/index.d.ts CHANGED
@@ -467,9 +467,11 @@ interface IWidgetTableColumn {
467
467
  dataType: ESimpleDataType;
468
468
  }
469
469
  interface IScripField {
470
+ /** @deprecated удалить после выполнения BI-13602, задача BI-13650 */
470
471
  guid: string;
471
472
  name: string;
472
473
  dataType: ESimpleDataType;
474
+ isRequired: boolean;
473
475
  }
474
476
  interface IActionScript {
475
477
  key: string;
package/dist/index.esm.js CHANGED
@@ -52,11 +52,14 @@ var isExecuteScriptActionValid = function (action, _a) {
52
52
  return false;
53
53
  }
54
54
  return currentScript.fields.every(function (_a) {
55
- var name = _a.name;
55
+ var name = _a.name, isRequired = _a.isRequired;
56
56
  var actionInput = actionInputsMap.get(name !== null && name !== void 0 ? name : "");
57
57
  if (!actionInput) {
58
58
  return false;
59
59
  }
60
+ if (!isRequired) {
61
+ return true;
62
+ }
60
63
  if (actionInput.inputMethod === EWidgetActionInputMethod.VARIABLE &&
61
64
  !variables.has(actionInput.sourceVariable)) {
62
65
  return false;
package/dist/index.js CHANGED
@@ -53,11 +53,14 @@ var isExecuteScriptActionValid = function (action, _a) {
53
53
  return false;
54
54
  }
55
55
  return currentScript.fields.every(function (_a) {
56
- var name = _a.name;
56
+ var name = _a.name, isRequired = _a.isRequired;
57
57
  var actionInput = actionInputsMap.get(name !== null && name !== void 0 ? name : "");
58
58
  if (!actionInput) {
59
59
  return false;
60
60
  }
61
+ if (!isRequired) {
62
+ return true;
63
+ }
61
64
  if (actionInput.inputMethod === exports.EWidgetActionInputMethod.VARIABLE &&
62
65
  !variables.has(actionInput.sourceVariable)) {
63
66
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "4.0.0-next3",
3
+ "version": "4.0.0-next4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",