@infomaximum/widget-sdk 5.28.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 +12 -0
- package/dist/index.d.ts +25 -11
- package/dist/index.esm.js +7 -7
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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
|
+
|
|
5
17
|
## [5.28.0](https://github.com/Infomaximum/widget-sdk/compare/v5.27.0...v5.28.0) (2025-07-07)
|
|
6
18
|
|
|
7
19
|
|
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
|
-
|
|
291
|
+
eventsNamesByProcessKey?: Map<string, (string | null)[]>;
|
|
290
292
|
/** Фильтры событий */
|
|
291
293
|
eventFilters?: TExtendedFormulaFilterValue[];
|
|
292
294
|
}
|
|
293
295
|
interface IProcessEventFilterValue extends IProcessFilterValue {
|
|
294
|
-
|
|
296
|
+
/** @deprecated необходимо использовать processKey */
|
|
297
|
+
processName?: string;
|
|
298
|
+
processKey: string;
|
|
295
299
|
eventName: string;
|
|
296
300
|
}
|
|
297
301
|
interface IProcessTransitionFilterValue extends IProcessFilterValue {
|
|
298
|
-
|
|
302
|
+
/** @deprecated необходимо использовать startEventProcessKey */
|
|
303
|
+
startEventProcessName?: string;
|
|
304
|
+
startEventProcessKey: string;
|
|
299
305
|
startEventName: string;
|
|
300
|
-
|
|
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
|
-
|
|
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
|
-
|
|
753
|
+
startEventProcessKey: string | null;
|
|
746
754
|
startEventName: string | null;
|
|
747
755
|
startEventFilters: TExtendedFormulaFilterValue[];
|
|
748
756
|
startEventTimeFormula: string | null;
|
|
749
757
|
endEventNameFormula: string | null;
|
|
750
|
-
|
|
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
|
-
|
|
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
|
/** Функция для запроса информации о колонках таблицы из модели данных */
|
|
@@ -1868,7 +1878,9 @@ interface IEdge extends IGraphElement {
|
|
|
1868
1878
|
endName: string | null;
|
|
1869
1879
|
}
|
|
1870
1880
|
interface IProcessGraphCalculatorInput {
|
|
1871
|
-
|
|
1881
|
+
/** @deprecated необходимо использовать processKey */
|
|
1882
|
+
processName?: string;
|
|
1883
|
+
processKey: string;
|
|
1872
1884
|
vertexLimit: number | null;
|
|
1873
1885
|
edgeLimit: number;
|
|
1874
1886
|
vertexMeasures: ICalculatorMeasureInput[];
|
|
@@ -2314,6 +2326,8 @@ interface IPanelDescription<Settings extends object, GroupSettings extends IGrou
|
|
|
2314
2326
|
interface IWidgetProcess {
|
|
2315
2327
|
/** @deprecated */
|
|
2316
2328
|
guid: string;
|
|
2329
|
+
/** Ключ процесса */
|
|
2330
|
+
key: string;
|
|
2317
2331
|
/** Имя процесса */
|
|
2318
2332
|
name: string;
|
|
2319
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1103
|
+
!value.endEventProcessKey ||
|
|
1104
1104
|
!value.endEventTimeFormula ||
|
|
1105
1105
|
!value.startEventNameFormula ||
|
|
1106
|
-
!value.
|
|
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.
|
|
1139
|
+
!value.endEventProcessKey ||
|
|
1140
1140
|
!value.endEventTimeFormula ||
|
|
1141
1141
|
!value.startEventNameFormula ||
|
|
1142
|
-
!value.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1104
|
+
!value.endEventProcessKey ||
|
|
1105
1105
|
!value.endEventTimeFormula ||
|
|
1106
1106
|
!value.startEventNameFormula ||
|
|
1107
|
-
!value.
|
|
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.
|
|
1140
|
+
!value.endEventProcessKey ||
|
|
1141
1141
|
!value.endEventTimeFormula ||
|
|
1142
1142
|
!value.startEventNameFormula ||
|
|
1143
|
-
!value.
|
|
1143
|
+
!value.startEventProcessKey ||
|
|
1144
1144
|
!value.startEventTimeFormula) {
|
|
1145
1145
|
return null;
|
|
1146
1146
|
}
|