@infomaximum/widget-sdk 5.20.0 → 5.21.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 CHANGED
@@ -2,6 +2,15 @@
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.21.0](https://github.com/Infomaximum/widget-sdk/compare/v5.20.0...v5.21.0) (2025-05-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * добавлен шаблон форматирования 'x' ([8905393](https://github.com/Infomaximum/widget-sdk/commit/890539367b03e78852e0a75096f6b56835b8ae2d))
11
+ * добавлена настройка 'Позиционирование по клику' ([b4107b9](https://github.com/Infomaximum/widget-sdk/commit/b4107b91cd1c00b102226a343838d6dfdf1bee29))
12
+ * изменены интерфейсы IPositionConfig и IClickPosition ([052ab57](https://github.com/Infomaximum/widget-sdk/commit/052ab574285887c09121b65860bf49070f757bab))
13
+
5
14
  ## [5.20.0](https://github.com/Infomaximum/widget-sdk/compare/v5.19.0...v5.20.0) (2025-05-22)
6
15
 
7
16
 
package/dist/index.d.ts CHANGED
@@ -164,6 +164,7 @@ declare enum EFormattingPresets {
164
164
  "MM" = "MM",
165
165
  "MMMM" = "MMMM",
166
166
  "k" = "k",
167
+ "x" = "x",
167
168
  "#,##x" = "#,##x",
168
169
  "#,##x.x" = "#,##x.x",
169
170
  "#,##x.xx" = "#,##x.xx",
@@ -302,11 +303,12 @@ interface IProcessTransitionFilterValue extends IProcessFilterValue {
302
303
  interface IClickPosition {
303
304
  x: number;
304
305
  y: number;
305
- elementWidth: number;
306
- elementHeight: number;
306
+ elementWidth?: number;
307
+ elementHeight?: number;
307
308
  }
308
309
  interface IPositionConfig extends IClickPosition {
309
- type: string;
310
+ offsetX?: number;
311
+ offsetY?: number;
310
312
  }
311
313
  interface IAddPresenceOfEventFilter {
312
314
  (name: EProcessFilterNames.presenceOfEvent, value: IProcessEventFilterValue, positionConfig?: IPositionConfig, previewParams?: IProcessFilterPreviewParams): void;
@@ -1075,6 +1077,7 @@ type TActionOpenIn = {
1075
1077
  } | {
1076
1078
  openIn: EViewOpenIn.MODAL_WINDOW;
1077
1079
  actinButtons: boolean;
1080
+ positionByClick?: boolean;
1078
1081
  }
1079
1082
  /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
1080
1083
  | {
package/dist/index.esm.js CHANGED
@@ -418,6 +418,7 @@ var EFormattingPresets;
418
418
  EFormattingPresets["MMMM"] = "MMMM";
419
419
  //Группа шаблонов для формата NUMBER
420
420
  EFormattingPresets["k"] = "k";
421
+ EFormattingPresets["x"] = "x";
421
422
  EFormattingPresets["#,##x"] = "#,##x";
422
423
  EFormattingPresets["#,##x.x"] = "#,##x.x";
423
424
  EFormattingPresets["#,##x.xx"] = "#,##x.xx";
@@ -553,6 +554,7 @@ var formattingConfig = {
553
554
  ],
554
555
  _a[EFormatTypes.NUMBER] = [
555
556
  EFormattingPresets.AUTO,
557
+ EFormattingPresets["x"],
556
558
  EFormattingPresets["#,##x"],
557
559
  EFormattingPresets["#,##x.x"],
558
560
  EFormattingPresets["#,##x.xx"],
package/dist/index.js CHANGED
@@ -419,6 +419,7 @@ exports.EFormattingPresets = void 0;
419
419
  EFormattingPresets["MMMM"] = "MMMM";
420
420
  //Группа шаблонов для формата NUMBER
421
421
  EFormattingPresets["k"] = "k";
422
+ EFormattingPresets["x"] = "x";
422
423
  EFormattingPresets["#,##x"] = "#,##x";
423
424
  EFormattingPresets["#,##x.x"] = "#,##x.x";
424
425
  EFormattingPresets["#,##x.xx"] = "#,##x.xx";
@@ -554,6 +555,7 @@ var formattingConfig = {
554
555
  ],
555
556
  _a[exports.EFormatTypes.NUMBER] = [
556
557
  exports.EFormattingPresets.AUTO,
558
+ exports.EFormattingPresets["x"],
557
559
  exports.EFormattingPresets["#,##x"],
558
560
  exports.EFormattingPresets["#,##x.x"],
559
561
  exports.EFormattingPresets["#,##x.xx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.20.0",
3
+ "version": "5.21.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",