@infomaximum/widget-sdk 4.8.0 → 4.10.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/index.d.ts CHANGED
@@ -739,16 +739,18 @@ interface IParameterFromEndEvent {
739
739
  interface IParameterFromManualInput {
740
740
  inputMethod: EWidgetActionInputMethod.MANUALLY;
741
741
  description: string;
742
+ defaultValue?: string;
742
743
  }
743
744
  interface IParameterFromStaticList {
744
745
  inputMethod: EWidgetActionInputMethod.STATIC_LIST;
745
- options: string[];
746
- defaultOptionIndex: number;
746
+ options: string;
747
+ defaultOptionIndexes: number[];
747
748
  }
748
749
  interface IParameterFromDynamicList {
749
750
  inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
750
- formula: string;
751
+ options: string;
751
752
  defaultValue: string;
753
+ displayOptions: string;
752
754
  filters: TExtendedFormulaFilterValue[];
753
755
  }
754
756
  interface IWidgetActionParameterCommon {
@@ -1803,6 +1805,10 @@ type TLaunchActionParams = {
1803
1805
  filters: ICalculatorFilter[];
1804
1806
  /** Выбранные имена событий для способа ввода EVENT, START_EVENT и FINISH_EVENT */
1805
1807
  eventNames?: [string] | [string, string];
1808
+ /** Callback, вызывается при успешном получении данных модального окна запуска действия,
1809
+ * а так же при клике на другое действие, вызовется для предыдущего действия
1810
+ */
1811
+ resetAndHandleModalData?: () => void;
1806
1812
  };
1807
1813
  type TWidgetContainer = {
1808
1814
  /** Имеет ли контейнер виджета ограниченную максимальную высоту */
package/dist/index.esm.js CHANGED
@@ -72,7 +72,7 @@ var isExecuteScriptActionValid = function (action, _a) {
72
72
  if (actionInput.inputMethod === EWidgetActionInputMethod.FORMULA && !actionInput.formula) {
73
73
  return false;
74
74
  }
75
- if (actionInput.inputMethod === EWidgetActionInputMethod.DYNAMIC_LIST && !actionInput.formula) {
75
+ if (actionInput.inputMethod === EWidgetActionInputMethod.DYNAMIC_LIST && !actionInput.options) {
76
76
  return false;
77
77
  }
78
78
  if (actionInput.inputMethod === EWidgetActionInputMethod.COLUMN &&
package/dist/index.js CHANGED
@@ -73,7 +73,7 @@ var isExecuteScriptActionValid = function (action, _a) {
73
73
  if (actionInput.inputMethod === exports.EWidgetActionInputMethod.FORMULA && !actionInput.formula) {
74
74
  return false;
75
75
  }
76
- if (actionInput.inputMethod === exports.EWidgetActionInputMethod.DYNAMIC_LIST && !actionInput.formula) {
76
+ if (actionInput.inputMethod === exports.EWidgetActionInputMethod.DYNAMIC_LIST && !actionInput.options) {
77
77
  return false;
78
78
  }
79
79
  if (actionInput.inputMethod === exports.EWidgetActionInputMethod.COLUMN &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "4.8.0",
3
+ "version": "4.10.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",