@infomaximum/widget-sdk 5.24.1-0 → 5.25.0-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/CHANGELOG.md +8 -0
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.25.0-0](https://github.com/Infomaximum/widget-sdk/compare/v5.24.1-0...v5.25.0-0) (2025-07-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* в параметры запуска скрипта добавлены свойства onComplete и onError, а onSuccess сделан опциональным ([4bfbbbc](https://github.com/Infomaximum/widget-sdk/commit/4bfbbbc6de7dcd6db69500422d700e82abe06abc))
|
|
11
|
+
* Для способов ввода Вручную, Динамический и Статический список добавлен флаг acceptEmptyValue ([4b39a8d](https://github.com/Infomaximum/widget-sdk/commit/4b39a8d39e6039878ab45eea463086612a26331e))
|
|
12
|
+
|
|
5
13
|
### [5.24.1-0](https://github.com/Infomaximum/widget-sdk/compare/v5.24.0...v5.24.1-0) (2025-06-25)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1006,11 +1006,13 @@ interface IParameterFromManualInput {
|
|
|
1006
1006
|
defaultValue?: string;
|
|
1007
1007
|
dbDataType?: string;
|
|
1008
1008
|
filterByRows?: boolean;
|
|
1009
|
+
acceptEmptyValue?: boolean;
|
|
1009
1010
|
}
|
|
1010
1011
|
interface IParameterFromStaticList {
|
|
1011
1012
|
inputMethod: EWidgetActionInputMethod.STATIC_LIST;
|
|
1012
1013
|
options: string;
|
|
1013
1014
|
defaultValue: string | string[];
|
|
1015
|
+
acceptEmptyValue?: boolean;
|
|
1014
1016
|
}
|
|
1015
1017
|
interface IParameterFromDynamicList {
|
|
1016
1018
|
inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
|
|
@@ -1022,6 +1024,7 @@ interface IParameterFromDynamicList {
|
|
|
1022
1024
|
filterByRows?: boolean;
|
|
1023
1025
|
considerFilters: boolean;
|
|
1024
1026
|
enableCustomValue?: boolean;
|
|
1027
|
+
acceptEmptyValue?: boolean;
|
|
1025
1028
|
}
|
|
1026
1029
|
interface IParameterFromDataModelBase {
|
|
1027
1030
|
inputMethod: EWidgetActionInputMethod.DATA_MODEL;
|
|
@@ -2473,8 +2476,12 @@ interface IViewContext {
|
|
|
2473
2476
|
type TLaunchActionParams = {
|
|
2474
2477
|
/** Запускаемое действие */
|
|
2475
2478
|
action: TAction;
|
|
2479
|
+
/** Callback, вызываемый при успешном выполнении действия */
|
|
2480
|
+
onComplete?: () => void;
|
|
2481
|
+
/** Callback, вызываемый при ошибке запуска или выполнения действия */
|
|
2482
|
+
onError?: () => void;
|
|
2476
2483
|
/** Callback, вызываемый при успешном запуске действия */
|
|
2477
|
-
onSuccess
|
|
2484
|
+
onSuccess?: () => void;
|
|
2478
2485
|
/** Требуется ли подтверждение о запуске (откроется модальное окно) */
|
|
2479
2486
|
needConfirmation?: boolean;
|
|
2480
2487
|
/** Фильтрация для способов ввода COLUMN и FORMULA */
|