@infomaximum/widget-sdk 4.0.0-next1 → 4.0.0-next3

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/README.md ADDED
@@ -0,0 +1,16 @@
1
+ @infomaximum/widget-sdk - это библиотека, которая предоставляет набор интерфейсов и утилит для интеграции пользовательских виджетов с системой Proceset.
2
+
3
+ <a href="https://www.npmjs.com/package/@infomaximum/widget-sdk">
4
+ <img alt="npm" src="https://img.shields.io/npm/v/@infomaximum/widget-sdk?style=for-the-badge">
5
+ </a>
6
+
7
+ ---
8
+
9
+ ### Соответствие версий
10
+
11
+ | Версия `widget-sdk` | Версия системы |
12
+ | ------------------- | -------------- |
13
+ | 3.x.x | 2401 - 2407 |
14
+ | 4.x.x | 2408 - latest |
15
+
16
+ ---
package/dist/index.d.ts CHANGED
@@ -1429,13 +1429,14 @@ interface IDefinition<WidgetSettings extends IBaseWidgetSettings, GroupSettings
1429
1429
  /** заполняет настройки значениями по умолчанию */
1430
1430
  fillSettings: IFillSettings<WidgetSettings>;
1431
1431
  /** возвращает ключи показателей(разрезов или мер), для которых должна работать системная сортировка */
1432
- getSortableIndicatorsKeys(): Readonly<StringKeyOf<WidgetSettings>[]>;
1432
+ getSortableIndicatorsKeys?(): Readonly<StringKeyOf<WidgetSettings>[]>;
1433
1433
  }
1434
1434
 
1435
1435
  type TContextMenu = (TContextMenuList | TContextMenuButtonGroup) & {
1436
1436
  event?: MouseEvent;
1437
1437
  placement?: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
1438
- positionOrigin?: "frame" | "workArea";
1438
+ positionOrigin?: "frame" | "workArea" | HTMLElement;
1439
+ boundingContainer?: HTMLElement;
1439
1440
  position?: {
1440
1441
  unitX?: TContextMenuPositionUnit;
1441
1442
  unitY?: TContextMenuPositionUnit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "4.0.0-next1",
3
+ "version": "4.0.0-next3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",