@infomaximum/widget-sdk 6.0.0-3 → 6.0.0-5

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,27 @@
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
+ ## [6.0.0-5](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-4...v6.0.0-5) (2025-09-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * добавлена поддержка фильтрации шаблонов мер и агригатных разрезов [WD-1197] ([af49cc3](https://github.com/Infomaximum/widget-sdk/commit/af49cc3ff7840f0d7762c6c40eb1bf183a32d4b7))
11
+ * добавлена фильтрация шаблонов для процессных разрезов времяни [WD-1197] ([564cd57](https://github.com/Infomaximum/widget-sdk/commit/564cd5782276c4ec74c8d26de109f0d2e9deec50))
12
+
13
+ ## [6.0.0-4](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-3...v6.0.0-4) (2025-08-29)
14
+
15
+
16
+ ### ⚠ BREAKING CHANGES
17
+
18
+ * если виджеты использовали типы данных процесса, то теперь должны запрашивать их сами через type_calculator
19
+ * требуется поддержка в виджетах
20
+
21
+ ### Features
22
+
23
+ * удален deprecated код в связи с переходом на widget-sdk 6 ([c1ce6cb](https://github.com/Infomaximum/widget-sdk/commit/c1ce6cb5f3838a4bfea3003ee2de0cb494477e8c))
24
+ * удалены типы данных из интерфейса процесса ([3b17150](https://github.com/Infomaximum/widget-sdk/commit/3b17150ef67facaf50e489ec308a69fad1d6db82))
25
+
5
26
  ## [6.0.0-3](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2...v6.0.0-3) (2025-08-28)
6
27
 
7
28
 
package/dist/index.d.ts CHANGED
@@ -273,17 +273,11 @@ declare enum EProcessFilterNames {
273
273
  /** Длительность перехода */
274
274
  durationOfTransition = "durationOfTransition"
275
275
  }
276
- interface IProcessFilterValue {
277
- /** @deprecated необходимо передавать посредством IProcessFilterPreviewParams [2502] */
278
- eventsNamesByProcessNameMap?: Map<string, (string | null)[]>;
279
- }
280
276
  /**
281
277
  * Параметры, которые влияют на отображаемый контент в окне настройки процессного фильтра,
282
278
  * но не учитываются при применении фильтра.
283
279
  */
284
280
  interface IProcessFilterPreviewParams {
285
- /** @deprecated необходимо использовать eventsNamesByProcessKey */
286
- eventsNamesByProcessName?: Map<string, (string | null)[]>;
287
281
  /**
288
282
  * События, доступные при выборе процесса.
289
283
  * Если параметр не передан, используются все события процесса на основе запроса к вычислителю.
@@ -292,19 +286,13 @@ interface IProcessFilterPreviewParams {
292
286
  /** Фильтры событий */
293
287
  eventFilters?: TExtendedFormulaFilterValue[];
294
288
  }
295
- interface IProcessEventFilterValue extends IProcessFilterValue {
296
- /** @deprecated необходимо использовать processKey */
297
- processName?: string;
289
+ interface IProcessEventFilterValue {
298
290
  processKey: string;
299
291
  eventName: string;
300
292
  }
301
- interface IProcessTransitionFilterValue extends IProcessFilterValue {
302
- /** @deprecated необходимо использовать startEventProcessKey */
303
- startEventProcessName?: string;
293
+ interface IProcessTransitionFilterValue {
304
294
  startEventProcessKey: string;
305
295
  startEventName: string;
306
- /** @deprecated необходимо использовать endEventProcessKey */
307
- endEventProcessName?: string;
308
296
  endEventProcessKey: string;
309
297
  endEventName: string;
310
298
  }
@@ -435,15 +423,11 @@ declare const isFormulaFilterValue: (value: TExtendedFormulaFilterValue) => valu
435
423
  declare enum EWidgetFilterMode {
436
424
  DEFAULT = "DEFAULT",
437
425
  SINGLE = "SINGLE",
438
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
439
- MULTI = "MULTI",
440
426
  DISABLED = "DISABLED"
441
427
  }
442
428
  type TWidgetFiltering = {
443
429
  ignore: true;
444
- mode: EWidgetFilterMode.SINGLE
445
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
446
- | EWidgetFilterMode.MULTI;
430
+ mode: EWidgetFilterMode.SINGLE;
447
431
  } | {
448
432
  ignore: false;
449
433
  mode: EWidgetFilterMode;
@@ -678,9 +662,6 @@ interface IWidgetStaticListVariable extends IBaseWidgetVariable {
678
662
  type: EIndicatorType.STATIC_LIST;
679
663
  /** Значение */
680
664
  value: string | string[] | null;
681
- /** Элементы статического списка */
682
- /** @deprecated поле будет удалено, необходимо использовать labeledOptions */
683
- options: string[];
684
665
  /** Объект ключ значение для статического списка */
685
666
  labeledOptions: IStaticListLabeledOption[];
686
667
  /** Множественный выбор */
@@ -825,8 +806,6 @@ interface IGlobalContext {
825
806
  unsetVariableValue(name: string): TWidgetVariable["value"];
826
807
  /** Состояния(название сущности) отчета */
827
808
  states: Map<string, ICommonState>;
828
- /** @deprecated Процессы из модели данных (по имени) */
829
- processes: Map<string, IWidgetProcess>;
830
809
  /** Процессы из модели данных (по ключу) */
831
810
  processByKey: Map<string, IWidgetProcess>;
832
811
  /** Имена таблиц из модели данных */
@@ -951,11 +930,7 @@ declare enum EViewOpenIn {
951
930
  WINDOW = "WINDOW",
952
931
  PLACEHOLDER = "PLACEHOLDER",
953
932
  MODAL_WINDOW = "MODAL_WINDOW",
954
- DRAWER_WINDOW = "DRAWER_WINDOW",
955
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
956
- NEW_WINDOW = "NEW_WINDOW",
957
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
958
- CURRENT_WINDOW = "CURRENT_WINDOW"
933
+ DRAWER_WINDOW = "DRAWER_WINDOW"
959
934
  }
960
935
  declare enum EDrawerPlacement {
961
936
  LEFT = "LEFT",
@@ -1085,17 +1060,9 @@ type TActionOpenIn = {
1085
1060
  } | {
1086
1061
  openIn: EViewOpenIn.PLACEHOLDER;
1087
1062
  placeholderName: string;
1088
- }
1089
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
1090
- | {
1091
- openIn: EViewOpenIn.NEW_WINDOW;
1092
1063
  } | {
1093
1064
  openIn: EViewOpenIn.MODAL_WINDOW;
1094
1065
  positionByClick?: boolean;
1095
- }
1096
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
1097
- | {
1098
- openIn: EViewOpenIn.CURRENT_WINDOW;
1099
1066
  } | {
1100
1067
  openIn: EViewOpenIn.WINDOW;
1101
1068
  newWindow: boolean;
@@ -1191,206 +1158,6 @@ interface IParsedDbType<T extends TNullable<string> = string> {
1191
1158
  simpleType: ESimpleDataType;
1192
1159
  }
1193
1160
 
1194
- declare enum EDimensionTemplateNames {
1195
- dateTime = "dateTime",
1196
- date = "date",
1197
- year = "year",
1198
- yearAndQuarter = "yearAndQuarter",
1199
- quarter = "quarter",
1200
- yearAndMonth = "yearAndMonth",
1201
- dayOfMonth = "dayOfMonth",
1202
- month = "month",
1203
- week = "week",
1204
- dayOfWeek = "dayOfWeek",
1205
- hour = "hour"
1206
- }
1207
- /** Стандартные шаблоны разреза */
1208
- declare const dimensionTemplateFormulas: Record<EDimensionTemplateNames, string>;
1209
-
1210
- declare function getDimensionFormula({ value }: IWidgetDimension): string;
1211
-
1212
- declare enum EDimensionAggregationTemplateName {
1213
- avg = "avg",
1214
- median = "median",
1215
- count = "count",
1216
- countDistinct = "countDistinct",
1217
- min = "min",
1218
- max = "max",
1219
- sum = "sum",
1220
- top = "top",
1221
- firstValue = "firstValue",
1222
- lastValue = "lastValue",
1223
- countExecutions = "countExecutions",
1224
- countReworks = "countReworks"
1225
- }
1226
- /** Шаблоны процессных метрик разреза с режимом AGGREGATION */
1227
- declare const dimensionAggregationTemplates: Record<EDimensionAggregationTemplateName, string>;
1228
- /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1229
- declare const prepareDimensionAggregationParams: (value: Extract<IWidgetDimension["value"], {
1230
- mode: EWidgetIndicatorValueModes.AGGREGATION;
1231
- }>) => {
1232
- eventNameFormula: string;
1233
- caseCaseIdFormula: string;
1234
- eventName: string;
1235
- objectFilters: string;
1236
- filters: string;
1237
- eventTimeFormula: string;
1238
- columnFormula: string;
1239
- } | null;
1240
-
1241
- /** Шаблоны процессных метрик разреза с режимами START_TIME/END_TIME */
1242
- declare const timeTemplates: {
1243
- START_TIME: Record<EDimensionTemplateNames, string>;
1244
- END_TIME: Record<EDimensionTemplateNames, string>;
1245
- };
1246
- /** На основе значения режимов START_TIME/END_TIME подготовить параметры для подстановки в шаблонную формулу */
1247
- declare const prepareTimeParams: (value: TWidgetIndicatorTimeValue) => {
1248
- eventTimeFormula: string;
1249
- eventNameFormula: string;
1250
- caseCaseIdFormula: string;
1251
- filters: string;
1252
- eventName: string;
1253
- } | undefined;
1254
-
1255
- declare function getMeasureFormula({ value }: IWidgetMeasure): string;
1256
-
1257
- declare enum EMeasureTemplateNames {
1258
- avg = "avg",
1259
- median = "median",
1260
- count = "count",
1261
- countDistinct = "countDistinct",
1262
- min = "min",
1263
- max = "max",
1264
- sum = "sum"
1265
- }
1266
- /** Стандартные шаблоны меры */
1267
- declare const measureTemplateFormulas: {
1268
- readonly avg: "avg({columnFormula})";
1269
- readonly count: "count({columnFormula})";
1270
- readonly countDistinct: "count(distinct {columnFormula})";
1271
- readonly median: "medianExact({columnFormula})";
1272
- readonly min: "min({columnFormula})";
1273
- readonly max: "max({columnFormula})";
1274
- readonly sum: "sum({columnFormula})";
1275
- };
1276
-
1277
- declare enum EMeasureAggregationTemplateName {
1278
- agvIf = "agvIf",
1279
- medianIf = "medianIf",
1280
- countIf = "countIf",
1281
- countIfDistinct = "countIfDistinct",
1282
- minIf = "minIf",
1283
- maxIf = "maxIf",
1284
- sumIf = "sumIf",
1285
- top = "top",
1286
- firstValue = "firstValue",
1287
- lastValue = "lastValue",
1288
- countExecutions = "countExecutions",
1289
- countReworks = "countReworks"
1290
- }
1291
- /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1292
- declare const prepareMeasureAggregationParams: (value: Extract<IWidgetMeasure["value"], {
1293
- mode: EWidgetIndicatorValueModes.AGGREGATION;
1294
- }>) => {
1295
- outerAggregation: EOuterAggregation;
1296
- eventNameFormula: string;
1297
- caseCaseIdFormula: string;
1298
- eventName: string | null;
1299
- objectFilters: string;
1300
- filters: string;
1301
- eventTimeFormula: string;
1302
- columnFormula: string;
1303
- } | null;
1304
-
1305
- /** Шаблон процессной метрики меры с режимом CONVERSION */
1306
- declare const conversionTemplate = "countIf(\n process(\n minIf(\n {startEventTimeFormula}, \n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) < \n process(\n maxIf(\n {endEventTimeFormula}, \n {endEventNameFormula} = '{endEventName}'{endEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) \n and \n process(\n countIf(\n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n) / countIf(\n process(\n countIf(\n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n)";
1307
- /** На основе значения режима CONVERSION подготовить параметры для подстановки в шаблонную формулу */
1308
- declare const prepareConversionParams: (value: TWidgetIndicatorConversionValue) => {
1309
- objectFilters: string;
1310
- startEventTimeFormula: string;
1311
- startEventNameFormula: string;
1312
- startEventFilters: string;
1313
- startEventName: string;
1314
- endEventTimeFormula: string;
1315
- endCaseCaseIdFormula: string;
1316
- endEventNameFormula: string;
1317
- endEventName: string;
1318
- endEventFilters: string;
1319
- } | null;
1320
-
1321
- declare function createAggregationTemplate(templateName: EMeasureAggregationTemplateName, { outerAggregation, anyEvent, }: Pick<TWidgetIndicatorAggregationValue, "anyEvent"> & {
1322
- outerAggregation: EOuterAggregation;
1323
- }): string;
1324
-
1325
- /** Шаблоны процессных метрик меры с режимом DURATION */
1326
- declare const durationTemplates: Record<EDurationTemplateName, string>;
1327
- /** На основе значения режима DURATION подготовить параметры для подстановки в шаблонную формулу */
1328
- declare const prepareDurationParams: (value: TWidgetIndicatorDurationValue) => {
1329
- objectFilters: string;
1330
- startEventTimeFormula: string;
1331
- startEventNameFormula: string;
1332
- startEventFilters: string;
1333
- startEventName: string;
1334
- startEventAggregationName: string;
1335
- endEventTimeFormula: string;
1336
- endCaseCaseIdFormula: string;
1337
- endEventNameFormula: string;
1338
- endEventName: string;
1339
- endEventFilters: string;
1340
- endEventAggregationName: string;
1341
- } | null;
1342
-
1343
- declare function getEventMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1344
-
1345
- declare enum EEventMeasureTemplateNames {
1346
- eventsCount = "eventsCount",
1347
- reworksCount = "reworksCount"
1348
- }
1349
- declare const eventMeasureTemplateFormulas: {
1350
- readonly eventsCount: "count()";
1351
- readonly reworksCount: "count() - uniqExact({caseCaseIdFormula})";
1352
- };
1353
-
1354
- declare function getTransitionMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1355
-
1356
- declare enum ETransitionMeasureTemplateNames {
1357
- transitionsCount = "transitionsCount",
1358
- medianTime = "medianTime"
1359
- }
1360
- declare const transitionMeasureTemplateFormulas: {
1361
- readonly transitionsCount: "count()";
1362
- readonly medianTime: "medianExact(date_diff(second, begin({eventTimeFormula}), end({eventTimeFormula})))";
1363
- };
1364
-
1365
- declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in '{eventName}'{filters}), {caseCaseIdFormula})";
1366
-
1367
- declare function fillTemplateString(templateString: string, params: Record<string, any>): string;
1368
-
1369
- declare function generateColumnFormula(tableName: string, columnName: string): string;
1370
-
1371
- /**
1372
- * Паттерн подстроки, валидной для использования внутри фигурных скобок.
1373
- * Требование к подстроке - отсутствие закрывающих фигурных скобок (кроме экранированных).
1374
- */
1375
- declare const curlyBracketsContentPattern: string;
1376
- /**
1377
- * Паттерн подстроки, валидной для использования внутри двойных кавычек.
1378
- * Требование к подстроке - отсутствие двойных кавычек (кроме экранированных).
1379
- */
1380
- declare const doubleQuoteContentPattern: string;
1381
- declare const dashboardLinkRegExp: RegExp;
1382
- declare const workspaceLinkRegExp: RegExp;
1383
- /** Экранирование спец.символов при подстановке названий таблиц и колонок */
1384
- declare const escapeDoubleQuoteLinkName: (str: string) => string;
1385
- /** Экранирование спец.символов при подстановке названий переменных и показателей */
1386
- declare const escapeCurlyBracketLinkName: (str: string) => string;
1387
- interface IIndicatorLink {
1388
- /** string - имя группы пространства, null - используется текущий отчет */
1389
- scopeName: string | null;
1390
- indicatorName: string;
1391
- }
1392
- declare const parseIndicatorLink: (formula: string) => IIndicatorLink | null;
1393
-
1394
1161
  type THintPlacement = "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
1395
1162
  declare enum EControlType {
1396
1163
  /** Ввод текста */
@@ -1668,6 +1435,7 @@ interface IFormulaControl {
1668
1435
  showModeToggle?: boolean;
1669
1436
  indicatorConfig?: ({
1670
1437
  type: "measure";
1438
+ templates?: TWidgetMeasureData["templates"];
1671
1439
  } & {
1672
1440
  /** @deprecated временное решение для виджета "Воронка", не следует использовать [BI-14710] */
1673
1441
  allowClear?: boolean;
@@ -1679,7 +1447,8 @@ interface IFormulaControl {
1679
1447
  options?: TMeasureAddButtonSelectOption[];
1680
1448
  }) | {
1681
1449
  type: "dimension";
1682
- templates?: EDimensionTemplateNames[];
1450
+ templates?: TWidgetDimensionData["templates"];
1451
+ processTimeTemplates?: TWidgetDimensionData["processTimeTemplates"];
1683
1452
  };
1684
1453
  disabled?: boolean;
1685
1454
  /** Ключи процессов для фильтрации таблиц, доступных для выбора */
@@ -1883,8 +1652,6 @@ interface IEdge extends IGraphElement {
1883
1652
  endName: string | null;
1884
1653
  }
1885
1654
  interface IProcessGraphCalculatorInput {
1886
- /** @deprecated необходимо использовать processKey */
1887
- processName?: string;
1888
1655
  processKey: string;
1889
1656
  vertexLimit: number | null;
1890
1657
  edgeLimit: number;
@@ -2107,6 +1874,206 @@ interface ICalculatorFactory {
2107
1874
  type: (options?: ICalculatorOptions) => ITypeCalculator;
2108
1875
  }
2109
1876
 
1877
+ declare enum EDimensionTemplateNames {
1878
+ dateTime = "dateTime",
1879
+ date = "date",
1880
+ year = "year",
1881
+ yearAndQuarter = "yearAndQuarter",
1882
+ quarter = "quarter",
1883
+ yearAndMonth = "yearAndMonth",
1884
+ dayOfMonth = "dayOfMonth",
1885
+ month = "month",
1886
+ week = "week",
1887
+ dayOfWeek = "dayOfWeek",
1888
+ hour = "hour"
1889
+ }
1890
+ /** Стандартные шаблоны разреза */
1891
+ declare const dimensionTemplateFormulas: Record<EDimensionTemplateNames, string>;
1892
+
1893
+ declare function getDimensionFormula({ value }: IWidgetDimension): string;
1894
+
1895
+ declare enum EDimensionAggregationTemplateName {
1896
+ avg = "avg",
1897
+ median = "median",
1898
+ count = "count",
1899
+ countDistinct = "countDistinct",
1900
+ min = "min",
1901
+ max = "max",
1902
+ sum = "sum",
1903
+ top = "top",
1904
+ firstValue = "firstValue",
1905
+ lastValue = "lastValue",
1906
+ countExecutions = "countExecutions",
1907
+ countReworks = "countReworks"
1908
+ }
1909
+ /** Шаблоны процессных метрик разреза с режимом AGGREGATION */
1910
+ declare const dimensionAggregationTemplates: Record<EDimensionAggregationTemplateName, string>;
1911
+ /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1912
+ declare const prepareDimensionAggregationParams: (value: Extract<IWidgetDimension["value"], {
1913
+ mode: EWidgetIndicatorValueModes.AGGREGATION;
1914
+ }>) => {
1915
+ eventNameFormula: string;
1916
+ caseCaseIdFormula: string;
1917
+ eventName: string;
1918
+ objectFilters: string;
1919
+ filters: string;
1920
+ eventTimeFormula: string;
1921
+ columnFormula: string;
1922
+ } | null;
1923
+
1924
+ /** Шаблоны процессных метрик разреза с режимами START_TIME/END_TIME */
1925
+ declare const timeTemplates: {
1926
+ START_TIME: Record<EDimensionTemplateNames, string>;
1927
+ END_TIME: Record<EDimensionTemplateNames, string>;
1928
+ };
1929
+ /** На основе значения режимов START_TIME/END_TIME подготовить параметры для подстановки в шаблонную формулу */
1930
+ declare const prepareTimeParams: (value: TWidgetIndicatorTimeValue) => {
1931
+ eventTimeFormula: string;
1932
+ eventNameFormula: string;
1933
+ caseCaseIdFormula: string;
1934
+ filters: string;
1935
+ eventName: string;
1936
+ } | undefined;
1937
+
1938
+ declare function getMeasureFormula({ value }: IWidgetMeasure): string;
1939
+
1940
+ declare enum EMeasureTemplateNames {
1941
+ avg = "avg",
1942
+ median = "median",
1943
+ count = "count",
1944
+ countDistinct = "countDistinct",
1945
+ min = "min",
1946
+ max = "max",
1947
+ sum = "sum"
1948
+ }
1949
+ /** Стандартные шаблоны меры */
1950
+ declare const measureTemplateFormulas: {
1951
+ readonly avg: "avg({columnFormula})";
1952
+ readonly count: "count({columnFormula})";
1953
+ readonly countDistinct: "count(distinct {columnFormula})";
1954
+ readonly median: "medianExact({columnFormula})";
1955
+ readonly min: "min({columnFormula})";
1956
+ readonly max: "max({columnFormula})";
1957
+ readonly sum: "sum({columnFormula})";
1958
+ };
1959
+
1960
+ declare enum EMeasureAggregationTemplateName {
1961
+ agvIf = "agvIf",
1962
+ medianIf = "medianIf",
1963
+ countIf = "countIf",
1964
+ countIfDistinct = "countIfDistinct",
1965
+ minIf = "minIf",
1966
+ maxIf = "maxIf",
1967
+ sumIf = "sumIf",
1968
+ top = "top",
1969
+ firstValue = "firstValue",
1970
+ lastValue = "lastValue",
1971
+ countExecutions = "countExecutions",
1972
+ countReworks = "countReworks"
1973
+ }
1974
+ /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1975
+ declare const prepareMeasureAggregationParams: (value: Extract<IWidgetMeasure["value"], {
1976
+ mode: EWidgetIndicatorValueModes.AGGREGATION;
1977
+ }>) => {
1978
+ outerAggregation: EOuterAggregation;
1979
+ eventNameFormula: string;
1980
+ caseCaseIdFormula: string;
1981
+ eventName: string | null;
1982
+ objectFilters: string;
1983
+ filters: string;
1984
+ eventTimeFormula: string;
1985
+ columnFormula: string;
1986
+ } | null;
1987
+
1988
+ /** Шаблон процессной метрики меры с режимом CONVERSION */
1989
+ declare const conversionTemplate = "countIf(\n process(\n minIf(\n {startEventTimeFormula}, \n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) < \n process(\n maxIf(\n {endEventTimeFormula}, \n {endEventNameFormula} = '{endEventName}'{endEventFilters}\n ), \n {endCaseCaseIdFormula}\n ) \n and \n process(\n countIf(\n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n) / countIf(\n process(\n countIf(\n {startEventNameFormula} = '{startEventName}'{startEventFilters}\n ) != 0, \n {endCaseCaseIdFormula}\n ) != 0\n)";
1990
+ /** На основе значения режима CONVERSION подготовить параметры для подстановки в шаблонную формулу */
1991
+ declare const prepareConversionParams: (value: TWidgetIndicatorConversionValue) => {
1992
+ objectFilters: string;
1993
+ startEventTimeFormula: string;
1994
+ startEventNameFormula: string;
1995
+ startEventFilters: string;
1996
+ startEventName: string;
1997
+ endEventTimeFormula: string;
1998
+ endCaseCaseIdFormula: string;
1999
+ endEventNameFormula: string;
2000
+ endEventName: string;
2001
+ endEventFilters: string;
2002
+ } | null;
2003
+
2004
+ declare function createAggregationTemplate(templateName: EMeasureAggregationTemplateName, { outerAggregation, anyEvent, }: Pick<TWidgetIndicatorAggregationValue, "anyEvent"> & {
2005
+ outerAggregation: EOuterAggregation;
2006
+ }): string;
2007
+
2008
+ /** Шаблоны процессных метрик меры с режимом DURATION */
2009
+ declare const durationTemplates: Record<EDurationTemplateName, string>;
2010
+ /** На основе значения режима DURATION подготовить параметры для подстановки в шаблонную формулу */
2011
+ declare const prepareDurationParams: (value: TWidgetIndicatorDurationValue) => {
2012
+ objectFilters: string;
2013
+ startEventTimeFormula: string;
2014
+ startEventNameFormula: string;
2015
+ startEventFilters: string;
2016
+ startEventName: string;
2017
+ startEventAggregationName: string;
2018
+ endEventTimeFormula: string;
2019
+ endCaseCaseIdFormula: string;
2020
+ endEventNameFormula: string;
2021
+ endEventName: string;
2022
+ endEventFilters: string;
2023
+ endEventAggregationName: string;
2024
+ } | null;
2025
+
2026
+ declare function getEventMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
2027
+
2028
+ declare enum EEventMeasureTemplateNames {
2029
+ eventsCount = "eventsCount",
2030
+ reworksCount = "reworksCount"
2031
+ }
2032
+ declare const eventMeasureTemplateFormulas: {
2033
+ readonly eventsCount: "count()";
2034
+ readonly reworksCount: "count() - uniqExact({caseCaseIdFormula})";
2035
+ };
2036
+
2037
+ declare function getTransitionMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
2038
+
2039
+ declare enum ETransitionMeasureTemplateNames {
2040
+ transitionsCount = "transitionsCount",
2041
+ medianTime = "medianTime"
2042
+ }
2043
+ declare const transitionMeasureTemplateFormulas: {
2044
+ readonly transitionsCount: "count()";
2045
+ readonly medianTime: "medianExact(date_diff(second, begin({eventTimeFormula}), end({eventTimeFormula})))";
2046
+ };
2047
+
2048
+ declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in '{eventName}'{filters}), {caseCaseIdFormula})";
2049
+
2050
+ declare function fillTemplateString(templateString: string, params: Record<string, any>): string;
2051
+
2052
+ declare function generateColumnFormula(tableName: string, columnName: string): string;
2053
+
2054
+ /**
2055
+ * Паттерн подстроки, валидной для использования внутри фигурных скобок.
2056
+ * Требование к подстроке - отсутствие закрывающих фигурных скобок (кроме экранированных).
2057
+ */
2058
+ declare const curlyBracketsContentPattern: string;
2059
+ /**
2060
+ * Паттерн подстроки, валидной для использования внутри двойных кавычек.
2061
+ * Требование к подстроке - отсутствие двойных кавычек (кроме экранированных).
2062
+ */
2063
+ declare const doubleQuoteContentPattern: string;
2064
+ declare const dashboardLinkRegExp: RegExp;
2065
+ declare const workspaceLinkRegExp: RegExp;
2066
+ /** Экранирование спец.символов при подстановке названий таблиц и колонок */
2067
+ declare const escapeDoubleQuoteLinkName: (str: string) => string;
2068
+ /** Экранирование спец.символов при подстановке названий переменных и показателей */
2069
+ declare const escapeCurlyBracketLinkName: (str: string) => string;
2070
+ interface IIndicatorLink {
2071
+ /** string - имя группы пространства, null - используется текущий отчет */
2072
+ scopeName: string | null;
2073
+ indicatorName: string;
2074
+ }
2075
+ declare const parseIndicatorLink: (formula: string) => IIndicatorLink | null;
2076
+
2110
2077
  interface ILens<T extends TNullable<object>, Value> {
2111
2078
  get(obj: T): TNullable<Value>;
2112
2079
  set(obj: T, value: Value): void;
@@ -2241,16 +2208,25 @@ type TWidgetDimensionData = {
2241
2208
  type: EWidgetIndicatorType.DIMENSION;
2242
2209
  /** Обобщенные типы данных, поддерживаемые разрезом */
2243
2210
  simpleTypes?: ESimpleDataType[];
2244
- /** Шаблоны формул, доступные для выбора в разрезе */
2245
- templates?: Partial<Record<ESimpleDataType, EDimensionTemplateNames[]>>;
2246
- /** Переопределение доступных форматов и их порядка */
2247
- formats?: Record<ESimpleDataType, EFormatTypes[]>;
2211
+ /**
2212
+ * Шаблоны формул, доступные к выбору шаблоны на основе колонок (по типу колонки)
2213
+ * Фильтрация применяется только для указанных типов колонки
2214
+ */
2215
+ templates?: Partial<Record<ESimpleDataType, (EDimensionTemplateNames | EDimensionAggregationTemplateName)[]>>;
2216
+ /**
2217
+ * Шаблоны формул, доступные к выбору в процессных разрезах по времени
2218
+ */
2219
+ processTimeTemplates?: EDimensionTemplateNames[];
2220
+ /** Переопределение доступных форматов */
2221
+ formats?: Partial<Record<ESimpleDataType, EFormatTypes[]>>;
2248
2222
  };
2249
2223
  /** Конфигурация меры */
2250
2224
  type TWidgetMeasureData = {
2251
2225
  type: EWidgetIndicatorType.MEASURE;
2252
- /** Переопределение доступных форматов и их порядка */
2253
- formats?: Record<ESimpleDataType, EFormatTypes[]>;
2226
+ /** Переопределение доступных форматов */
2227
+ formats?: Partial<Record<ESimpleDataType, EFormatTypes[]>>;
2228
+ /** Шаблоны формул, доступные для выбора в мере */
2229
+ templates?: Partial<Record<ESimpleDataType, EMeasureTemplateNames[]>>;
2254
2230
  };
2255
2231
  /** Конфигурация показателя */
2256
2232
  type TWidgetIndicatorData = TWidgetDimensionData | TWidgetMeasureData;
@@ -2341,10 +2317,6 @@ interface IWidgetProcess {
2341
2317
  caseCaseIdFormula: string;
2342
2318
  /** Имя колонки CaseId события */
2343
2319
  eventCaseIdColumnName: string;
2344
- /** Тип данных CaseId */
2345
- caseIdDbDataType: string;
2346
- /** Тип данных времени события */
2347
- eventTimeDbDataType: string;
2348
2320
  /** Является ли процесс валидным */
2349
2321
  isValid: boolean;
2350
2322
  }
@@ -2684,8 +2656,6 @@ interface IDimensionSelectionByFormula extends Map<string, IDimensionSelection>
2684
2656
  type TUpdateSelection = (selection: IDimensionSelectionByFormula, formula: string, value: string, filters: ICalculatorFilter[]) => void;
2685
2657
  declare const updateDefaultModeSelection: TUpdateSelection;
2686
2658
  declare const updateSingleModeSelection: TUpdateSelection;
2687
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
2688
- declare const updateMultiModeSelection: TUpdateSelection;
2689
2659
  declare const replaceFiltersBySelection: (filters: ICalculatorFilter[], selection: IDimensionSelectionByFormula) => ICalculatorFilter[];
2690
2660
 
2691
2661
  /**
@@ -2740,4 +2710,4 @@ declare global {
2740
2710
  }
2741
2711
  }
2742
2712
 
2743
- export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionButton, type IActionGoToUrl, type IActionOnClickControl, type IActionRunScript, type IActionScript, type IActionUpdateVariable, type IAddButtonSelectOption, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, type IAutoIdentifiedArrayItem, type IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorOptions, type ICollapseRecord, type IColorPickerControl, type IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayConditionControl, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IEventsColorControl, type IEventsPickerControl, type IExportColumnOrder, type IFillSettings, type IFilterControl, type IFormattingControl, type IFormattingTemplateControl, type IFormulaControl, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type IInputControl, type IInputMarkdownControl, type IInputNumberControl, type IInputRangeControl, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IParameterColumnList, type IParameterFromAggregation, type IParameterFromColumn, type IParameterFromDynamicList, type IParameterFromEndEvent, type IParameterFromEvent, type IParameterFromFormula, type IParameterFromManualInput, type IParameterFromStartEvent, type IParameterFromStaticList, type IParameterFromVariable, type IParameterTableList, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessFilterPreviewParams, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRadioIconGroupControl, type IRange, type ISelectBranchOption, type ISelectControl, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISizeControl, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type IStaticListLabeledOption, type ISwitchControl, type ITagSetControl, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type ITypedFormulaControl, type IVertex, type IViewAction, type IViewContext, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetColumnListVariable, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetDynamicListVariable, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetIndicator, type IWidgetIndicatorAddButtonProps, type IWidgetManifest, type IWidgetMeasure, type IWidgetMigrator, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetPresetSettings, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetStaticListVariable, type IWidgetStaticVariable, type IWidgetStruct, type IWidgetTable, type IWidgetTableColumn, OuterAggregation, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TBoundedContentWithIndicator, type TColor, type TColorBase, type TColorRule, type TColumnIndicatorValue, type TContextMenu, type TContextMenuButton, type TContextMenuButtonActions, type TContextMenuButtonApply, type TContextMenuButtonClose, type TContextMenuButtonCustom, type TContextMenuButtonGroup, type TContextMenuButtonOptions, type TContextMenuList, type TContextMenuPositionUnit, type TContextMenuRow, type TControlUnion, type TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type THintPlacement, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TParameterFromDataModel, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TViewActionParameter, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorAggregationValue, type TWidgetIndicatorConversionValue, type TWidgetIndicatorDurationValue, type TWidgetIndicatorTimeValue, type TWidgetLevelRecord, type TWidgetMeasureData, type TWidgetSortingValue, type TWidgetVariable, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
2713
+ export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionButton, type IActionGoToUrl, type IActionOnClickControl, type IActionRunScript, type IActionScript, type IActionUpdateVariable, type IAddButtonSelectOption, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, type IAutoIdentifiedArrayItem, type IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorOptions, type ICollapseRecord, type IColorPickerControl, type IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayConditionControl, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IEventsColorControl, type IEventsPickerControl, type IExportColumnOrder, type IFillSettings, type IFilterControl, type IFormattingControl, type IFormattingTemplateControl, type IFormulaControl, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type IInputControl, type IInputMarkdownControl, type IInputNumberControl, type IInputRangeControl, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IParameterColumnList, type IParameterFromAggregation, type IParameterFromColumn, type IParameterFromDynamicList, type IParameterFromEndEvent, type IParameterFromEvent, type IParameterFromFormula, type IParameterFromManualInput, type IParameterFromStartEvent, type IParameterFromStaticList, type IParameterFromVariable, type IParameterTableList, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessFilterPreviewParams, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRadioIconGroupControl, type IRange, type ISelectBranchOption, type ISelectControl, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISizeControl, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type IStaticListLabeledOption, type ISwitchControl, type ITagSetControl, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type ITypedFormulaControl, type IVertex, type IViewAction, type IViewContext, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetColumnListVariable, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetDynamicListVariable, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetIndicator, type IWidgetIndicatorAddButtonProps, type IWidgetManifest, type IWidgetMeasure, type IWidgetMigrator, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetPresetSettings, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetStaticListVariable, type IWidgetStaticVariable, type IWidgetStruct, type IWidgetTable, type IWidgetTableColumn, OuterAggregation, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TBoundedContentWithIndicator, type TColor, type TColorBase, type TColorRule, type TColumnIndicatorValue, type TContextMenu, type TContextMenuButton, type TContextMenuButtonActions, type TContextMenuButtonApply, type TContextMenuButtonClose, type TContextMenuButtonCustom, type TContextMenuButtonGroup, type TContextMenuButtonOptions, type TContextMenuList, type TContextMenuPositionUnit, type TContextMenuRow, type TControlUnion, type TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type THintPlacement, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TParameterFromDataModel, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TViewActionParameter, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorAggregationValue, type TWidgetIndicatorConversionValue, type TWidgetIndicatorDurationValue, type TWidgetIndicatorTimeValue, type TWidgetLevelRecord, type TWidgetMeasureData, type TWidgetSortingValue, type TWidgetVariable, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
package/dist/index.esm.js CHANGED
@@ -35,12 +35,6 @@ var EViewOpenIn;
35
35
  EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
36
36
  EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
37
37
  EViewOpenIn["DRAWER_WINDOW"] = "DRAWER_WINDOW";
38
- // TODO: удалить при выполении BI-14979
39
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
40
- EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
41
- // TODO: удалить при выполении BI-14979
42
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
43
- EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
44
38
  })(EViewOpenIn || (EViewOpenIn = {}));
45
39
  var EDrawerPlacement;
46
40
  (function (EDrawerPlacement) {
@@ -1376,8 +1370,6 @@ var EWidgetFilterMode;
1376
1370
  (function (EWidgetFilterMode) {
1377
1371
  EWidgetFilterMode["DEFAULT"] = "DEFAULT";
1378
1372
  EWidgetFilterMode["SINGLE"] = "SINGLE";
1379
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
1380
- EWidgetFilterMode["MULTI"] = "MULTI";
1381
1373
  EWidgetFilterMode["DISABLED"] = "DISABLED";
1382
1374
  })(EWidgetFilterMode || (EWidgetFilterMode = {}));
1383
1375
  var EMarkdownDisplayMode;
@@ -1966,19 +1958,6 @@ var updateSingleModeSelection = function (selection, formula, value) {
1966
1958
  replacedFilter: null,
1967
1959
  });
1968
1960
  };
1969
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
1970
- var updateMultiModeSelection = function (selection, formula, value) {
1971
- var _a;
1972
- var selectionItemValues = getSelectionItemValues(value, EWidgetFilterMode.MULTI, (_a = selection.get(formula)) === null || _a === void 0 ? void 0 : _a.values);
1973
- if (!selectionItemValues.size) {
1974
- selection.delete(formula);
1975
- return;
1976
- }
1977
- selection.set(formula, {
1978
- values: selectionItemValues,
1979
- replacedFilter: null,
1980
- });
1981
- };
1982
1961
  var replaceFiltersBySelection = function (filters, selection) {
1983
1962
  return filters.reduce(function (acc, filter) {
1984
1963
  var _a;
@@ -2099,4 +2078,4 @@ var getColorByIndex = function (index) {
2099
2078
  return color;
2100
2079
  };
2101
2080
 
2102
- export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, OuterAggregation, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
2081
+ export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, OuterAggregation, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
package/dist/index.js CHANGED
@@ -36,12 +36,6 @@ exports.EViewOpenIn = void 0;
36
36
  EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
37
37
  EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
38
38
  EViewOpenIn["DRAWER_WINDOW"] = "DRAWER_WINDOW";
39
- // TODO: удалить при выполении BI-14979
40
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
41
- EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
42
- // TODO: удалить при выполении BI-14979
43
- /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
44
- EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
45
39
  })(exports.EViewOpenIn || (exports.EViewOpenIn = {}));
46
40
  exports.EDrawerPlacement = void 0;
47
41
  (function (EDrawerPlacement) {
@@ -1377,8 +1371,6 @@ exports.EWidgetFilterMode = void 0;
1377
1371
  (function (EWidgetFilterMode) {
1378
1372
  EWidgetFilterMode["DEFAULT"] = "DEFAULT";
1379
1373
  EWidgetFilterMode["SINGLE"] = "SINGLE";
1380
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
1381
- EWidgetFilterMode["MULTI"] = "MULTI";
1382
1374
  EWidgetFilterMode["DISABLED"] = "DISABLED";
1383
1375
  })(exports.EWidgetFilterMode || (exports.EWidgetFilterMode = {}));
1384
1376
  exports.EMarkdownDisplayMode = void 0;
@@ -1967,19 +1959,6 @@ var updateSingleModeSelection = function (selection, formula, value) {
1967
1959
  replacedFilter: null,
1968
1960
  });
1969
1961
  };
1970
- /** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
1971
- var updateMultiModeSelection = function (selection, formula, value) {
1972
- var _a;
1973
- var selectionItemValues = getSelectionItemValues(value, exports.EWidgetFilterMode.MULTI, (_a = selection.get(formula)) === null || _a === void 0 ? void 0 : _a.values);
1974
- if (!selectionItemValues.size) {
1975
- selection.delete(formula);
1976
- return;
1977
- }
1978
- selection.set(formula, {
1979
- values: selectionItemValues,
1980
- replacedFilter: null,
1981
- });
1982
- };
1983
1962
  var replaceFiltersBySelection = function (filters, selection) {
1984
1963
  return filters.reduce(function (acc, filter) {
1985
1964
  var _a;
@@ -2173,6 +2152,5 @@ exports.timeTemplates = timeTemplates;
2173
2152
  exports.transitionMeasureTemplateFormulas = transitionMeasureTemplateFormulas;
2174
2153
  exports.unescapeSpecialCharacters = unescapeSpecialCharacters;
2175
2154
  exports.updateDefaultModeSelection = updateDefaultModeSelection;
2176
- exports.updateMultiModeSelection = updateMultiModeSelection;
2177
2155
  exports.updateSingleModeSelection = updateSingleModeSelection;
2178
2156
  exports.workspaceLinkRegExp = workspaceLinkRegExp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "6.0.0-3",
3
+ "version": "6.0.0-5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",