@infomaximum/widget-sdk 5.29.0-0 → 5.29.0-2506.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,17 +2,26 @@
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.29.0-0](https://github.com/Infomaximum/widget-sdk/compare/v5.28.0...v5.29.0-0) (2025-07-10)
5
+ ## [5.29.0-2506.0](https://github.com/Infomaximum/widget-sdk/compare/v5.28.1-2506.0...v5.29.0-2506.0) (2025-07-31)
6
6
 
7
7
 
8
8
  ### Features
9
9
 
10
- * отказ от имени процесса ([4fa01d5](https://github.com/Infomaximum/widget-sdk/commit/4fa01d5c2602211810277d0b6aef6b4d5f62e19c))
10
+ * добавлена возможность управления якорем для сохранения положения виджета ([3f74829](https://github.com/Infomaximum/widget-sdk/commit/3f748291e9f2a046a6ad72f61681ff5e22586bbe))
11
11
 
12
+ ### [5.28.1-2506.0](https://github.com/Infomaximum/widget-sdk/compare/v5.28.1-3d31a2c-2506...v5.28.1-2506.0) (2025-07-28)
12
13
 
13
- ### Bug Fixes
14
+ ### [5.28.1-3d31a2c-2506](https://github.com/Infomaximum/widget-sdk/compare/v5.28.1-0...v5.28.1-3d31a2c-2506) (2025-07-28)
15
+
16
+ ### [5.28.1-3219720-2506](https://github.com/Infomaximum/widget-sdk/compare/v5.28.1-0...v5.28.1-3219720-2506) (2025-07-28)
17
+
18
+ ### [5.28.1-0](https://github.com/Infomaximum/widget-sdk/compare/v5.28.0...v5.28.1-0) (2025-07-14)
19
+
20
+
21
+ ### Features
14
22
 
15
- * deprecated поле processName для интерфейса IProcessGraphCalculatorInput сделано необзятельным ([859f959](https://github.com/Infomaximum/widget-sdk/commit/859f959ea963ea2ed9214ccc4a4dc43a8b49142c))
23
+ * в параметры запуска скрипта добавлены свойства onComplete и onError, а onSuccess сделан опциональным ([31775d5](https://github.com/Infomaximum/widget-sdk/commit/31775d5ea8a9293f19551cf9a063387ecef80649))
24
+ * Для способов ввода Вручную, Динамический и Статический список добавлен флаг acceptEmptyValue ([f982f84](https://github.com/Infomaximum/widget-sdk/commit/f982f84ed0265ab9f56ab608ecc5800b1cd5c589))
16
25
 
17
26
  ## [5.28.0](https://github.com/Infomaximum/widget-sdk/compare/v5.27.0...v5.28.0) (2025-07-07)
18
27
 
package/dist/index.d.ts CHANGED
@@ -248,7 +248,7 @@ declare const formulaFilterMethods: {
248
248
  readonly LAST_TIME: "LAST_TIME";
249
249
  readonly EQUAL_TO: ECalculatorFilterMethods.EQUAL_TO;
250
250
  readonly NOT_EQUAL_TO: ECalculatorFilterMethods.NOT_EQUAL_TO;
251
- readonly GREATER_THAN: ECalculatorFilterMethods.GREATER_THAN;
251
+ readonly GREATER_THAN: ECalculatorFilterMethods.GREATER_THAN; /** Фильтры событий */
252
252
  readonly LESS_THAN: ECalculatorFilterMethods.LESS_THAN;
253
253
  readonly GREATER_THAN_OR_EQUAL_TO: ECalculatorFilterMethods.GREATER_THAN_OR_EQUAL_TO;
254
254
  readonly LESS_THAN_OR_EQUAL_TO: ECalculatorFilterMethods.LESS_THAN_OR_EQUAL_TO;
@@ -282,30 +282,22 @@ interface IProcessFilterValue {
282
282
  * но не учитываются при применении фильтра.
283
283
  */
284
284
  interface IProcessFilterPreviewParams {
285
- /** @deprecated необходимо использовать eventsNamesByProcessKey */
286
- eventsNamesByProcessName?: Map<string, (string | null)[]>;
287
285
  /**
288
286
  * События, доступные при выборе процесса.
289
287
  * Если параметр не передан, используются все события процесса на основе запроса к вычислителю.
290
288
  */
291
- eventsNamesByProcessKey?: Map<string, (string | null)[]>;
289
+ eventsNamesByProcessName?: Map<string, (string | null)[]>;
292
290
  /** Фильтры событий */
293
291
  eventFilters?: TExtendedFormulaFilterValue[];
294
292
  }
295
293
  interface IProcessEventFilterValue extends IProcessFilterValue {
296
- /** @deprecated необходимо использовать processKey */
297
- processName?: string;
298
- processKey: string;
294
+ processName: string;
299
295
  eventName: string;
300
296
  }
301
297
  interface IProcessTransitionFilterValue extends IProcessFilterValue {
302
- /** @deprecated необходимо использовать startEventProcessKey */
303
- startEventProcessName?: string;
304
- startEventProcessKey: string;
298
+ startEventProcessName: string;
305
299
  startEventName: string;
306
- /** @deprecated необходимо использовать endEventProcessKey */
307
- endEventProcessName?: string;
308
- endEventProcessKey: string;
300
+ endEventProcessName: string;
309
301
  endEventName: string;
310
302
  }
311
303
  interface IClickPosition {
@@ -734,7 +726,7 @@ declare enum EDurationTemplateName {
734
726
  type TWidgetIndicatorAggregationValue = {
735
727
  mode: EWidgetIndicatorValueModes.AGGREGATION;
736
728
  templateName: string;
737
- processKey: string | null;
729
+ processName: string | null;
738
730
  eventName: string | null;
739
731
  caseCaseIdFormula: string | null;
740
732
  eventNameFormula: string | null;
@@ -750,12 +742,12 @@ declare enum EEventAppearances {
750
742
  type TWidgetIndicatorConversionValue = {
751
743
  mode: EWidgetIndicatorValueModes.CONVERSION;
752
744
  startEventNameFormula: string | null;
753
- startEventProcessKey: string | null;
745
+ startEventProcessName: string | null;
754
746
  startEventName: string | null;
755
747
  startEventFilters: TExtendedFormulaFilterValue[];
756
748
  startEventTimeFormula: string | null;
757
749
  endEventNameFormula: string | null;
758
- endEventProcessKey: string | null;
750
+ endEventProcessName: string | null;
759
751
  endEventName: string | null;
760
752
  endEventFilters: TExtendedFormulaFilterValue[];
761
753
  endCaseCaseIdFormula: string | null;
@@ -770,7 +762,7 @@ type TWidgetIndicatorDurationValue = {
770
762
  type TWidgetIndicatorTimeValue = {
771
763
  templateName: string;
772
764
  mode: EWidgetIndicatorValueModes.START_TIME | EWidgetIndicatorValueModes.END_TIME;
773
- processKey: string;
765
+ processName: string;
774
766
  eventName: string;
775
767
  eventTimeFormula: string;
776
768
  caseCaseIdFormula: string;
@@ -836,10 +828,8 @@ interface IGlobalContext {
836
828
  unsetVariableValue(name: string): TWidgetVariable["value"];
837
829
  /** Состояния(название сущности) отчета */
838
830
  states: Map<string, ICommonState>;
839
- /** @deprecated Процессы из модели данных (по имени) */
831
+ /** Процессы из модели данных */
840
832
  processes: Map<string, IWidgetProcess>;
841
- /** Процессы из модели данных (по ключу) */
842
- processByKey: Map<string, IWidgetProcess>;
843
833
  /** Имена таблиц из модели данных */
844
834
  tables: Set<string>;
845
835
  /** Функция для запроса информации о колонках таблицы из модели данных */
@@ -1019,11 +1009,13 @@ interface IParameterFromManualInput {
1019
1009
  dbDataType?: string;
1020
1010
  filterByRows?: boolean;
1021
1011
  validation?: string;
1012
+ acceptEmptyValue?: boolean;
1022
1013
  }
1023
1014
  interface IParameterFromStaticList {
1024
1015
  inputMethod: EWidgetActionInputMethod.STATIC_LIST;
1025
1016
  options: string;
1026
1017
  defaultValue: string | string[];
1018
+ acceptEmptyValue?: boolean;
1027
1019
  }
1028
1020
  interface IParameterFromDynamicList {
1029
1021
  inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
@@ -1036,6 +1028,7 @@ interface IParameterFromDynamicList {
1036
1028
  considerFilters: boolean;
1037
1029
  enableCustomValue?: boolean;
1038
1030
  validation?: string;
1031
+ acceptEmptyValue?: boolean;
1039
1032
  }
1040
1033
  interface IParameterFromDataModelBase {
1041
1034
  inputMethod: EWidgetActionInputMethod.DATA_MODEL;
@@ -1878,9 +1871,7 @@ interface IEdge extends IGraphElement {
1878
1871
  endName: string | null;
1879
1872
  }
1880
1873
  interface IProcessGraphCalculatorInput {
1881
- /** @deprecated необходимо использовать processKey */
1882
- processName?: string;
1883
- processKey: string;
1874
+ processName: string;
1884
1875
  vertexLimit: number | null;
1885
1876
  edgeLimit: number;
1886
1877
  vertexMeasures: ICalculatorMeasureInput[];
@@ -2326,8 +2317,6 @@ interface IPanelDescription<Settings extends object, GroupSettings extends IGrou
2326
2317
  interface IWidgetProcess {
2327
2318
  /** @deprecated */
2328
2319
  guid: string;
2329
- /** Ключ процесса */
2330
- key: string;
2331
2320
  /** Имя процесса */
2332
2321
  name: string;
2333
2322
  /** Формула имени события */
@@ -2504,8 +2493,12 @@ interface IViewContext {
2504
2493
  type TLaunchActionParams = {
2505
2494
  /** Запускаемое действие */
2506
2495
  action: TAction;
2496
+ /** Callback, вызываемый при успешном выполнении действия */
2497
+ onComplete?: () => void;
2498
+ /** Callback, вызываемый при ошибке запуска или выполнения действия */
2499
+ onError?: () => void;
2507
2500
  /** Callback, вызываемый при успешном запуске действия */
2508
- onSuccess: () => void;
2501
+ onSuccess?: () => void;
2509
2502
  /** Требуется ли подтверждение о запуске (откроется модальное окно) */
2510
2503
  needConfirmation?: boolean;
2511
2504
  /** Фильтрация для способов ввода COLUMN и FORMULA */
@@ -2562,7 +2555,13 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
2562
2555
  /** Функция для подписки на расфокусировку виджета (например, при фокусировке на другом виджете) */
2563
2556
  subscribeOnFocusOut(subscriber: () => void): void;
2564
2557
  /** Функция для захвата фокуса виджетом: остальные виджеты будут оповещены о расфокусировке */
2565
- captureFocus(): void;
2558
+ captureFocus(options?: {
2559
+ /**
2560
+ * Якорный участок виджета, по которому сохраняется его положение
2561
+ * @default "bottom"
2562
+ */
2563
+ anchor?: "top" | "bottom";
2564
+ }): void;
2566
2565
  /** Глобальный контекст. Содержит информацию из отчета, пространства и платформы системы */
2567
2566
  globalContext: IGlobalContext;
2568
2567
  /** Контекст образа */
package/dist/index.esm.js CHANGED
@@ -882,7 +882,7 @@ var prepareDimensionAggregationParams = function (value) {
882
882
  if (!value.eventName ||
883
883
  !value.caseCaseIdFormula ||
884
884
  !value.eventNameFormula ||
885
- !value.processKey ||
885
+ !value.processName ||
886
886
  !value.templateName) {
887
887
  return null;
888
888
  }
@@ -933,7 +933,7 @@ var prepareTimeParams = function (value) {
933
933
  if (!value.eventName ||
934
934
  !value.caseCaseIdFormula ||
935
935
  !value.eventNameFormula ||
936
- !value.processKey ||
936
+ !value.processName ||
937
937
  !value.templateName ||
938
938
  !value.eventTimeFormula) {
939
939
  return;
@@ -1040,7 +1040,7 @@ var prepareMeasureAggregationParams = function (value) {
1040
1040
  !value.caseCaseIdFormula ||
1041
1041
  !value.eventNameFormula ||
1042
1042
  !value.outerAggregation ||
1043
- !value.processKey ||
1043
+ !value.processName ||
1044
1044
  !value.templateName) {
1045
1045
  return null;
1046
1046
  }
@@ -1100,10 +1100,10 @@ var prepareConversionParams = function (value) {
1100
1100
  !value.endEventName ||
1101
1101
  !value.endCaseCaseIdFormula ||
1102
1102
  !value.endEventNameFormula ||
1103
- !value.endEventProcessKey ||
1103
+ !value.endEventProcessName ||
1104
1104
  !value.endEventTimeFormula ||
1105
1105
  !value.startEventNameFormula ||
1106
- !value.startEventProcessKey ||
1106
+ !value.startEventProcessName ||
1107
1107
  !value.startEventTimeFormula) {
1108
1108
  return null;
1109
1109
  }
@@ -1136,10 +1136,10 @@ var prepareDurationParams = function (value) {
1136
1136
  !value.endEventName ||
1137
1137
  !value.endCaseCaseIdFormula ||
1138
1138
  !value.endEventNameFormula ||
1139
- !value.endEventProcessKey ||
1139
+ !value.endEventProcessName ||
1140
1140
  !value.endEventTimeFormula ||
1141
1141
  !value.startEventNameFormula ||
1142
- !value.startEventProcessKey ||
1142
+ !value.startEventProcessName ||
1143
1143
  !value.startEventTimeFormula) {
1144
1144
  return null;
1145
1145
  }
package/dist/index.js CHANGED
@@ -883,7 +883,7 @@ var prepareDimensionAggregationParams = function (value) {
883
883
  if (!value.eventName ||
884
884
  !value.caseCaseIdFormula ||
885
885
  !value.eventNameFormula ||
886
- !value.processKey ||
886
+ !value.processName ||
887
887
  !value.templateName) {
888
888
  return null;
889
889
  }
@@ -934,7 +934,7 @@ var prepareTimeParams = function (value) {
934
934
  if (!value.eventName ||
935
935
  !value.caseCaseIdFormula ||
936
936
  !value.eventNameFormula ||
937
- !value.processKey ||
937
+ !value.processName ||
938
938
  !value.templateName ||
939
939
  !value.eventTimeFormula) {
940
940
  return;
@@ -1041,7 +1041,7 @@ var prepareMeasureAggregationParams = function (value) {
1041
1041
  !value.caseCaseIdFormula ||
1042
1042
  !value.eventNameFormula ||
1043
1043
  !value.outerAggregation ||
1044
- !value.processKey ||
1044
+ !value.processName ||
1045
1045
  !value.templateName) {
1046
1046
  return null;
1047
1047
  }
@@ -1101,10 +1101,10 @@ var prepareConversionParams = function (value) {
1101
1101
  !value.endEventName ||
1102
1102
  !value.endCaseCaseIdFormula ||
1103
1103
  !value.endEventNameFormula ||
1104
- !value.endEventProcessKey ||
1104
+ !value.endEventProcessName ||
1105
1105
  !value.endEventTimeFormula ||
1106
1106
  !value.startEventNameFormula ||
1107
- !value.startEventProcessKey ||
1107
+ !value.startEventProcessName ||
1108
1108
  !value.startEventTimeFormula) {
1109
1109
  return null;
1110
1110
  }
@@ -1137,10 +1137,10 @@ var prepareDurationParams = function (value) {
1137
1137
  !value.endEventName ||
1138
1138
  !value.endCaseCaseIdFormula ||
1139
1139
  !value.endEventNameFormula ||
1140
- !value.endEventProcessKey ||
1140
+ !value.endEventProcessName ||
1141
1141
  !value.endEventTimeFormula ||
1142
1142
  !value.startEventNameFormula ||
1143
- !value.startEventProcessKey ||
1143
+ !value.startEventProcessName ||
1144
1144
  !value.startEventTimeFormula) {
1145
1145
  return null;
1146
1146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.29.0-0",
3
+ "version": "5.29.0-2506.0",
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"