@infomaximum/widget-sdk 5.31.0 → 5.32.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 +14 -0
- package/dist/index.d.ts +9 -3
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.32.1](https://github.com/Infomaximum/widget-sdk/compare/v5.32.0...v5.32.1) (2025-08-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* исправлена типизация ответов вычислителей ([0453793](https://github.com/Infomaximum/widget-sdk/commit/04537930ba1916d300b279e658a7e9b8da191af4))
|
|
11
|
+
|
|
12
|
+
## [5.32.0](https://github.com/Infomaximum/widget-sdk/compare/v5.31.0...v5.32.0) (2025-07-31)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* добавлена возможность управления якорем для сохранения положения виджета ([3bd5610](https://github.com/Infomaximum/widget-sdk/commit/3bd561058e48055ec10f99c53f88f2fcddf18d94))
|
|
18
|
+
|
|
5
19
|
## [5.31.0](https://github.com/Infomaximum/widget-sdk/compare/v5.30.0...v5.31.0) (2025-07-17)
|
|
6
20
|
|
|
7
21
|
## [5.29.0-1](https://github.com/Infomaximum/widget-sdk/compare/v5.29.0...v5.29.0-1) (2025-07-14)
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ interface ICalculatorMeasureInput extends ICalculatorIndicatorInput {
|
|
|
38
38
|
}
|
|
39
39
|
interface ICalculatorMeasureOutput extends ICalculatorIndicatorOutput {
|
|
40
40
|
/** Значения, вычисленные на основе дополнительных формул */
|
|
41
|
-
additionalValues: Map<string, string[]>;
|
|
41
|
+
additionalValues: Map<string, (string | null)[]>;
|
|
42
42
|
}
|
|
43
43
|
declare enum ECalculatorFilterMethods {
|
|
44
44
|
EQUAL_TO = "EQUAL_TO",
|
|
@@ -1829,7 +1829,7 @@ interface IGeneralCalculatorExportInput extends IGeneralCalculatorInput {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
interface IGeneralCalculatorOutput extends IBaseDimensionsAndMeasuresCalculatorOutput {
|
|
1831
1831
|
/** Итоги по мерам */
|
|
1832
|
-
totals: Map<string, string>;
|
|
1832
|
+
totals: Map<string, string | null>;
|
|
1833
1833
|
}
|
|
1834
1834
|
interface IGeneralCalculator extends IBaseDimensionsAndMeasuresCalculator<IGeneralCalculatorInput, IGeneralCalculatorOutput> {
|
|
1835
1835
|
export(input: IGeneralCalculatorExportInput): Promise<void>;
|
|
@@ -2569,7 +2569,13 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
2569
2569
|
/** Функция для подписки на расфокусировку виджета (например, при фокусировке на другом виджете) */
|
|
2570
2570
|
subscribeOnFocusOut(subscriber: () => void): void;
|
|
2571
2571
|
/** Функция для захвата фокуса виджетом: остальные виджеты будут оповещены о расфокусировке */
|
|
2572
|
-
captureFocus(
|
|
2572
|
+
captureFocus(options?: {
|
|
2573
|
+
/**
|
|
2574
|
+
* Якорный участок виджета, по которому сохраняется его положение
|
|
2575
|
+
* @default "bottom"
|
|
2576
|
+
*/
|
|
2577
|
+
anchor?: "top" | "bottom";
|
|
2578
|
+
}): void;
|
|
2573
2579
|
/** Глобальный контекст. Содержит информацию из отчета, пространства и платформы системы */
|
|
2574
2580
|
globalContext: IGlobalContext;
|
|
2575
2581
|
/** Контекст образа */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/widget-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"lint": "tsc --noEmit",
|
|
16
16
|
"release": "standard-version",
|
|
17
17
|
"release:rc": "standard-version -p",
|
|
18
|
+
"release:prev": "node ./scripts/re-release.mjs",
|
|
18
19
|
"format": "prettier --find-config-path --write 'src/**/*'",
|
|
19
20
|
"prepublishOnly": "npm run lint && npm run build",
|
|
20
21
|
"test": "jest"
|
|
@@ -33,12 +34,14 @@
|
|
|
33
34
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
34
35
|
"@rollup/plugin-typescript": "11.1.5",
|
|
35
36
|
"@types/jest": "^29.5.14",
|
|
37
|
+
"@types/semver": "^7.7.0",
|
|
36
38
|
"core-js": "^3.38.0",
|
|
37
39
|
"jest": "^29.7.0",
|
|
38
40
|
"prettier": "3.2.5",
|
|
39
41
|
"rollup": "4.14.3",
|
|
40
42
|
"rollup-plugin-delete": "2.0.0",
|
|
41
43
|
"rollup-plugin-dts": "6.1.0",
|
|
44
|
+
"semver": "^7.7.2",
|
|
42
45
|
"standard-version": "9.5.0",
|
|
43
46
|
"tslib": "^2.4.1",
|
|
44
47
|
"typescript": "5.4.5"
|