@infomaximum/widget-sdk 5.27.0 → 5.29.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 CHANGED
@@ -2,6 +2,25 @@
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)
6
+
7
+
8
+ ### Features
9
+
10
+ * отказ от имени процесса ([4fa01d5](https://github.com/Infomaximum/widget-sdk/commit/4fa01d5c2602211810277d0b6aef6b4d5f62e19c))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * deprecated поле processName для интерфейса IProcessGraphCalculatorInput сделано необзятельным ([859f959](https://github.com/Infomaximum/widget-sdk/commit/859f959ea963ea2ed9214ccc4a4dc43a8b49142c))
16
+
17
+ ## [5.28.0](https://github.com/Infomaximum/widget-sdk/compare/v5.27.0...v5.28.0) (2025-07-07)
18
+
19
+
20
+ ### Features
21
+
22
+ * для действия запуска скрипта добавлен blockingCondition. удалено поле actionButtons из TActionOpenIn ([920a76e](https://github.com/Infomaximum/widget-sdk/commit/920a76e8d695f73876b1d6a96f33820aad4b17c4))
23
+
5
24
  ## [5.27.0](https://github.com/Infomaximum/widget-sdk/compare/v5.26.1...v5.27.0) (2025-07-04)
6
25
 
7
26
 
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,22 +282,30 @@ interface IProcessFilterValue {
282
282
  * но не учитываются при применении фильтра.
283
283
  */
284
284
  interface IProcessFilterPreviewParams {
285
+ /** @deprecated необходимо использовать eventsNamesByProcessKey */
286
+ eventsNamesByProcessName?: Map<string, (string | null)[]>;
285
287
  /**
286
288
  * События, доступные при выборе процесса.
287
289
  * Если параметр не передан, используются все события процесса на основе запроса к вычислителю.
288
290
  */
289
- eventsNamesByProcessName?: Map<string, (string | null)[]>;
291
+ eventsNamesByProcessKey?: Map<string, (string | null)[]>;
290
292
  /** Фильтры событий */
291
293
  eventFilters?: TExtendedFormulaFilterValue[];
292
294
  }
293
295
  interface IProcessEventFilterValue extends IProcessFilterValue {
294
- processName: string;
296
+ /** @deprecated необходимо использовать processKey */
297
+ processName?: string;
298
+ processKey: string;
295
299
  eventName: string;
296
300
  }
297
301
  interface IProcessTransitionFilterValue extends IProcessFilterValue {
298
- startEventProcessName: string;
302
+ /** @deprecated необходимо использовать startEventProcessKey */
303
+ startEventProcessName?: string;
304
+ startEventProcessKey: string;
299
305
  startEventName: string;
300
- endEventProcessName: string;
306
+ /** @deprecated необходимо использовать endEventProcessKey */
307
+ endEventProcessName?: string;
308
+ endEventProcessKey: string;
301
309
  endEventName: string;
302
310
  }
303
311
  interface IClickPosition {
@@ -726,7 +734,7 @@ declare enum EDurationTemplateName {
726
734
  type TWidgetIndicatorAggregationValue = {
727
735
  mode: EWidgetIndicatorValueModes.AGGREGATION;
728
736
  templateName: string;
729
- processName: string | null;
737
+ processKey: string | null;
730
738
  eventName: string | null;
731
739
  caseCaseIdFormula: string | null;
732
740
  eventNameFormula: string | null;
@@ -742,12 +750,12 @@ declare enum EEventAppearances {
742
750
  type TWidgetIndicatorConversionValue = {
743
751
  mode: EWidgetIndicatorValueModes.CONVERSION;
744
752
  startEventNameFormula: string | null;
745
- startEventProcessName: string | null;
753
+ startEventProcessKey: string | null;
746
754
  startEventName: string | null;
747
755
  startEventFilters: TExtendedFormulaFilterValue[];
748
756
  startEventTimeFormula: string | null;
749
757
  endEventNameFormula: string | null;
750
- endEventProcessName: string | null;
758
+ endEventProcessKey: string | null;
751
759
  endEventName: string | null;
752
760
  endEventFilters: TExtendedFormulaFilterValue[];
753
761
  endCaseCaseIdFormula: string | null;
@@ -762,7 +770,7 @@ type TWidgetIndicatorDurationValue = {
762
770
  type TWidgetIndicatorTimeValue = {
763
771
  templateName: string;
764
772
  mode: EWidgetIndicatorValueModes.START_TIME | EWidgetIndicatorValueModes.END_TIME;
765
- processName: string;
773
+ processKey: string;
766
774
  eventName: string;
767
775
  eventTimeFormula: string;
768
776
  caseCaseIdFormula: string;
@@ -828,8 +836,10 @@ interface IGlobalContext {
828
836
  unsetVariableValue(name: string): TWidgetVariable["value"];
829
837
  /** Состояния(название сущности) отчета */
830
838
  states: Map<string, ICommonState>;
831
- /** Процессы из модели данных */
839
+ /** @deprecated Процессы из модели данных (по имени) */
832
840
  processes: Map<string, IWidgetProcess>;
841
+ /** Процессы из модели данных (по ключу) */
842
+ processByKey: Map<string, IWidgetProcess>;
833
843
  /** Имена таблиц из модели данных */
834
844
  tables: Set<string>;
835
845
  /** Функция для запроса информации о колонках таблицы из модели данных */
@@ -1062,6 +1072,15 @@ interface IActionRunScript extends IActionCommon {
1062
1072
  parameters: TActionOnClickParameter[];
1063
1073
  scriptKey: string;
1064
1074
  autoUpdate: EAutoUpdateMode;
1075
+ hideInactiveButton?: boolean;
1076
+ blockingCondition?: {
1077
+ mode: EBlockingConditionMode.FORMULA;
1078
+ formula: string;
1079
+ } | {
1080
+ mode: EBlockingConditionMode.VARIABLE;
1081
+ variableName: string;
1082
+ variableValue: string;
1083
+ };
1065
1084
  }
1066
1085
  interface IActionUpdateVariable extends IActionCommon {
1067
1086
  type: EActionTypes.UPDATE_VARIABLE;
@@ -1070,7 +1089,6 @@ interface IActionUpdateVariable extends IActionCommon {
1070
1089
  type TActionOpenIn = {
1071
1090
  openIn: EViewOpenIn.DRAWER_WINDOW;
1072
1091
  alignment: EDrawerPlacement;
1073
- actionButtons: boolean;
1074
1092
  } | {
1075
1093
  openIn: EViewOpenIn.PLACEHOLDER;
1076
1094
  placeholderName: string;
@@ -1080,7 +1098,6 @@ type TActionOpenIn = {
1080
1098
  openIn: EViewOpenIn.NEW_WINDOW;
1081
1099
  } | {
1082
1100
  openIn: EViewOpenIn.MODAL_WINDOW;
1083
- actionButtons: boolean;
1084
1101
  positionByClick?: boolean;
1085
1102
  }
1086
1103
  /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
@@ -1861,7 +1878,9 @@ interface IEdge extends IGraphElement {
1861
1878
  endName: string | null;
1862
1879
  }
1863
1880
  interface IProcessGraphCalculatorInput {
1864
- processName: string;
1881
+ /** @deprecated необходимо использовать processKey */
1882
+ processName?: string;
1883
+ processKey: string;
1865
1884
  vertexLimit: number | null;
1866
1885
  edgeLimit: number;
1867
1886
  vertexMeasures: ICalculatorMeasureInput[];
@@ -2307,6 +2326,8 @@ interface IPanelDescription<Settings extends object, GroupSettings extends IGrou
2307
2326
  interface IWidgetProcess {
2308
2327
  /** @deprecated */
2309
2328
  guid: string;
2329
+ /** Ключ процесса */
2330
+ key: string;
2310
2331
  /** Имя процесса */
2311
2332
  name: string;
2312
2333
  /** Формула имени события */
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.processName ||
885
+ !value.processKey ||
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.processName ||
936
+ !value.processKey ||
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.processName ||
1043
+ !value.processKey ||
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.endEventProcessName ||
1103
+ !value.endEventProcessKey ||
1104
1104
  !value.endEventTimeFormula ||
1105
1105
  !value.startEventNameFormula ||
1106
- !value.startEventProcessName ||
1106
+ !value.startEventProcessKey ||
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.endEventProcessName ||
1139
+ !value.endEventProcessKey ||
1140
1140
  !value.endEventTimeFormula ||
1141
1141
  !value.startEventNameFormula ||
1142
- !value.startEventProcessName ||
1142
+ !value.startEventProcessKey ||
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.processName ||
886
+ !value.processKey ||
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.processName ||
937
+ !value.processKey ||
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.processName ||
1044
+ !value.processKey ||
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.endEventProcessName ||
1104
+ !value.endEventProcessKey ||
1105
1105
  !value.endEventTimeFormula ||
1106
1106
  !value.startEventNameFormula ||
1107
- !value.startEventProcessName ||
1107
+ !value.startEventProcessKey ||
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.endEventProcessName ||
1140
+ !value.endEventProcessKey ||
1141
1141
  !value.endEventTimeFormula ||
1142
1142
  !value.startEventNameFormula ||
1143
- !value.startEventProcessName ||
1143
+ !value.startEventProcessKey ||
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.27.0",
3
+ "version": "5.29.0-0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",