@infomaximum/widget-sdk 5.12.4-0 → 5.13.0-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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [5.13.0-1](https://github.com/Infomaximum/widget-sdk/compare/v5.13.0-0...v5.13.0-1) (2025-07-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * в параметры запуска скрипта добавлены свойства onComplete и onError, а onSuccess отмечен deprecated ([9a19aae](https://github.com/Infomaximum/widget-sdk/commit/9a19aae8052538ad97acdaacb0337cf754c6720a))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * удален deprecated у onSuccess ([7c0828b](https://github.com/Infomaximum/widget-sdk/commit/7c0828be76f023ccc5a1f4614792c22025b0e226))
16
+
17
+ ## [5.13.0-0](https://github.com/Infomaximum/widget-sdk/compare/v5.12.4-0...v5.13.0-0) (2025-07-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * Для способов ввода Вручную, Динамический и Статический список добавлен флаг acceptEmptyValue ([d4922b5](https://github.com/Infomaximum/widget-sdk/commit/d4922b58fee000dc14ff517511be202b0cd6bbba))
23
+
5
24
  ### [5.12.4-0](https://github.com/Infomaximum/widget-sdk/compare/v5.12.3...v5.12.4-0) (2025-05-30)
6
25
 
7
26
 
package/dist/index.d.ts CHANGED
@@ -979,11 +979,13 @@ interface IParameterFromManualInput {
979
979
  defaultValue?: string;
980
980
  dbDataType?: string;
981
981
  filterByRows?: boolean;
982
+ acceptEmptyValue?: boolean;
982
983
  }
983
984
  interface IParameterFromStaticList {
984
985
  inputMethod: EWidgetActionInputMethod.STATIC_LIST;
985
986
  options: string;
986
987
  defaultOptionIndexes: number[];
988
+ acceptEmptyValue?: boolean;
987
989
  }
988
990
  interface IParameterFromDynamicList {
989
991
  inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
@@ -993,6 +995,7 @@ interface IParameterFromDynamicList {
993
995
  displayOptions: string;
994
996
  filters: TExtendedFormulaFilterValue[];
995
997
  filterByRows?: boolean;
998
+ acceptEmptyValue?: boolean;
996
999
  }
997
1000
  interface IWidgetActionParameterCommon {
998
1001
  name: string;
@@ -2354,8 +2357,12 @@ interface IViewContext {
2354
2357
  type TLaunchActionParams = {
2355
2358
  /** Запускаемое действие */
2356
2359
  action: TAction;
2360
+ /** Callback, вызываемый при успешном выполнении действия */
2361
+ onComplete?: () => void;
2362
+ /** Callback, вызываемый при ошибке запуска или выполнения действия */
2363
+ onError?: () => void;
2357
2364
  /** Callback, вызываемый при успешном запуске действия */
2358
- onSuccess: () => void;
2365
+ onSuccess?: () => void;
2359
2366
  /** Требуется ли подтверждение о запуске (откроется модальное окно) */
2360
2367
  needConfirmation?: boolean;
2361
2368
  /** Фильтрация для способов ввода COLUMN и FORMULA */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.12.4-0",
3
+ "version": "5.13.0-1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",