@infomaximum/widget-sdk 5.13.0 → 5.15.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,24 @@
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.15.0](https://github.com/Infomaximum/widget-sdk/compare/v5.14.0...v5.15.0) (2025-04-17)
6
+
7
+
8
+ ### Features
9
+
10
+ * в IBaseWidgetSettings добавлено поле markdownTextSize ([816efbf](https://github.com/Infomaximum/widget-sdk/commit/816efbf0602c21529f3b7ffd9178904d761b8a2e))
11
+ * для способа ввода статический список defaultOptionIndexes изменен на defaultValue ([afff970](https://github.com/Infomaximum/widget-sdk/commit/afff9709fbab78470d3ef3a5b8b2c12e233ad613))
12
+ * добавлены шаблоны для фильтрации в FormulaControl [WD-1705] ([ed358c3](https://github.com/Infomaximum/widget-sdk/commit/ed358c3889aac546c481acb4f590a878ccf3d6bd))
13
+ * экспортированы интерфейсы параметров ожидаемых полей действий ([473400c](https://github.com/Infomaximum/widget-sdk/commit/473400ccda532a247927f6f7d0084e91dabb83d0))
14
+
15
+ ## [5.14.0](https://github.com/Infomaximum/widget-sdk/compare/v5.13.0...v5.14.0) (2025-04-16)
16
+
17
+
18
+ ### Features
19
+
20
+ * добавлен новый inputMethod DATA_MODEL ([70b3d43](https://github.com/Infomaximum/widget-sdk/commit/70b3d434778f87777acbd18336286dde44dd9814))
21
+ * добавлена возможность автоматического вызова fillSettings при изменении настройки через элемент управления ([e4fce52](https://github.com/Infomaximum/widget-sdk/commit/e4fce528b715fe5e748130402e07052b73c1a4cd))
22
+
5
23
  ## [5.13.0](https://github.com/Infomaximum/widget-sdk/compare/v5.12.1...v5.13.0) (2025-04-16)
6
24
 
7
25
 
package/dist/index.d.ts CHANGED
@@ -754,6 +754,7 @@ interface IScriptField {
754
754
  guid: string;
755
755
  name: string;
756
756
  isRequired: boolean;
757
+ isArray: boolean;
757
758
  }
758
759
  interface IActionScript {
759
760
  key: string;
@@ -887,6 +888,7 @@ interface IBaseWidgetSettings {
887
888
  showMarkdown?: boolean;
888
889
  markdownMeasures?: IMarkdownMeasure[];
889
890
  markdownText?: string;
891
+ markdownTextSize?: number;
890
892
  filters?: TExtendedFormulaFilterValue[];
891
893
  filterMode?: EWidgetFilterMode;
892
894
  ignoreFilters?: boolean;
@@ -905,7 +907,8 @@ declare enum EWidgetActionInputMethod {
905
907
  EVENT = "EVENT",
906
908
  START_EVENT = "START_EVENT",
907
909
  FINISH_EVENT = "FINISH_EVENT",
908
- AGGREGATION = "AGGREGATION"
910
+ AGGREGATION = "AGGREGATION",
911
+ DATA_MODEL = "DATA_MODEL"
909
912
  }
910
913
  declare enum EActionTypes {
911
914
  OPEN_URL = "OPEN_URL",
@@ -934,6 +937,10 @@ declare enum EAutoUpdateMode {
934
937
  THIS_WIDGET = "THIS_WIDGET",
935
938
  ALL_WIDGETS = "ALL_WIDGETS"
936
939
  }
940
+ declare enum EDataModelOption {
941
+ TABLE_LIST = "TABLE_LIST",
942
+ COLUMN_LIST = "COLUMN_LIST"
943
+ }
937
944
  interface IParameterFromColumn {
938
945
  inputMethod: EWidgetActionInputMethod.COLUMN;
939
946
  tableName: string;
@@ -969,7 +976,7 @@ interface IParameterFromManualInput {
969
976
  interface IParameterFromStaticList {
970
977
  inputMethod: EWidgetActionInputMethod.STATIC_LIST;
971
978
  options: string;
972
- defaultOptionIndexes: number[];
979
+ defaultValue: string | string[];
973
980
  }
974
981
  interface IParameterFromDynamicList {
975
982
  inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
@@ -979,16 +986,28 @@ interface IParameterFromDynamicList {
979
986
  filters: TExtendedFormulaFilterValue[];
980
987
  filterByRows?: boolean;
981
988
  }
989
+ interface IParameterFromDataModelBase {
990
+ inputMethod: EWidgetActionInputMethod.DATA_MODEL;
991
+ option: EDataModelOption;
992
+ }
993
+ interface IParameterColumnList extends IParameterFromDataModelBase {
994
+ option: EDataModelOption.COLUMN_LIST;
995
+ parent: string;
996
+ }
997
+ interface IParameterTableList extends IParameterFromDataModelBase {
998
+ option: EDataModelOption.TABLE_LIST;
999
+ }
1000
+ type TParameterFromDataModel = IParameterColumnList | IParameterTableList;
982
1001
  interface IWidgetActionParameterCommon {
983
1002
  name: string;
984
1003
  displayName: string;
985
1004
  isHidden: boolean;
986
1005
  }
987
- type TWidgetActionParameter = IWidgetActionParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList | IParameterFromAggregation);
1006
+ type TWidgetActionParameter = IWidgetActionParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList | IParameterFromAggregation | TParameterFromDataModel);
988
1007
  interface IActionOnClickParameterCommon extends IAutoIdentifiedArrayItem {
989
1008
  name: string;
990
1009
  }
991
- type TActionOnClickParameter = IActionOnClickParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromEvent | IParameterFromStartEvent | IParameterFromEndEvent | IParameterFromAggregation | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList);
1010
+ type TActionOnClickParameter = IActionOnClickParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromEvent | IParameterFromStartEvent | IParameterFromEndEvent | IParameterFromAggregation | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList | TParameterFromDataModel);
992
1011
  interface IActionCommon extends IAutoIdentifiedArrayItem {
993
1012
  name: string;
994
1013
  }
@@ -1092,6 +1111,208 @@ interface IParsedDbType<T extends TNullable<string> = string> {
1092
1111
  simpleType: ESimpleDataType;
1093
1112
  }
1094
1113
 
1114
+ declare enum EDimensionTemplateNames {
1115
+ dateTime = "dateTime",
1116
+ date = "date",
1117
+ year = "year",
1118
+ yearAndQuarter = "yearAndQuarter",
1119
+ quarter = "quarter",
1120
+ yearAndMonth = "yearAndMonth",
1121
+ dayOfMonth = "dayOfMonth",
1122
+ month = "month",
1123
+ week = "week",
1124
+ dayOfWeek = "dayOfWeek",
1125
+ hour = "hour"
1126
+ }
1127
+ /** Стандартные шаблоны разреза */
1128
+ declare const dimensionTemplateFormulas: Record<EDimensionTemplateNames, string>;
1129
+
1130
+ declare function getDimensionFormula({ value }: IWidgetDimension): string;
1131
+
1132
+ declare enum EDimensionAggregationTemplateName {
1133
+ top = "top",
1134
+ firstValue = "firstValue",
1135
+ lastValue = "lastValue",
1136
+ countExecutions = "countExecutions",
1137
+ countReworks = "countReworks"
1138
+ }
1139
+ /** Шаблоны процессных метрик разреза с режимом AGGREGATION */
1140
+ declare const dimensionAggregationTemplates: Record<EDimensionAggregationTemplateName, string>;
1141
+ /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1142
+ declare const prepareDimensionAggregationParams: (value: Extract<IWidgetDimension["value"], {
1143
+ mode: EWidgetIndicatorValueModes.AGGREGATION;
1144
+ }>) => {
1145
+ eventNameFormula: string;
1146
+ caseCaseIdFormula: string;
1147
+ eventName: string;
1148
+ objectFilters: string;
1149
+ filters: string;
1150
+ eventTimeFormula: string;
1151
+ columnFormula: string;
1152
+ } | null;
1153
+
1154
+ /** Шаблоны процессных метрик разреза с режимами START_TIME/END_TIME */
1155
+ declare const timeTemplates: {
1156
+ START_TIME: Record<EDimensionTemplateNames, string>;
1157
+ END_TIME: Record<EDimensionTemplateNames, string>;
1158
+ };
1159
+ /** На основе значения режимов START_TIME/END_TIME подготовить параметры для подстановки в шаблонную формулу */
1160
+ declare const prepareTimeParams: (value: TWidgetIndicatorTimeValue) => {
1161
+ eventTimeFormula: string;
1162
+ eventNameFormula: string;
1163
+ caseCaseIdFormula: string;
1164
+ filters: string;
1165
+ eventName: string;
1166
+ } | undefined;
1167
+
1168
+ declare function getMeasureFormula({ value }: IWidgetMeasure): string;
1169
+
1170
+ declare enum EMeasureTemplateNames {
1171
+ avg = "avg",
1172
+ median = "median",
1173
+ count = "count",
1174
+ countDistinct = "countDistinct",
1175
+ min = "min",
1176
+ max = "max",
1177
+ sum = "sum"
1178
+ }
1179
+ /** Стандартные шаблоны меры */
1180
+ declare const measureTemplateFormulas: {
1181
+ readonly avg: "avg({columnFormula})";
1182
+ readonly count: "count({columnFormula})";
1183
+ readonly countDistinct: "count(distinct {columnFormula})";
1184
+ readonly median: "medianExact({columnFormula})";
1185
+ readonly min: "min({columnFormula})";
1186
+ readonly max: "max({columnFormula})";
1187
+ readonly sum: "sum({columnFormula})";
1188
+ };
1189
+
1190
+ declare enum EMeasureAggregationTemplateName {
1191
+ agvIf = "agvIf",
1192
+ medianIf = "medianIf",
1193
+ countIf = "countIf",
1194
+ countIfDistinct = "countIfDistinct",
1195
+ minIf = "minIf",
1196
+ maxIf = "maxIf",
1197
+ sumIf = "sumIf",
1198
+ top = "top",
1199
+ firstValue = "firstValue",
1200
+ lastValue = "lastValue",
1201
+ countExecutions = "countExecutions",
1202
+ countReworks = "countReworks"
1203
+ }
1204
+ /** Шаблоны процессных метрик меры с режимом AGGREGATION */
1205
+ declare const measureAggregationTemplates: {
1206
+ agvIf: string;
1207
+ medianIf: string;
1208
+ countIf: string;
1209
+ countIfDistinct: string;
1210
+ minIf: string;
1211
+ maxIf: string;
1212
+ sumIf: string;
1213
+ top: (outerAggregation: EOuterAggregation) => string;
1214
+ firstValue: (outerAggregation: EOuterAggregation) => string;
1215
+ lastValue: (outerAggregation: EOuterAggregation) => string;
1216
+ countExecutions: string;
1217
+ countReworks: string;
1218
+ };
1219
+ /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1220
+ declare const prepareMeasureAggregationParams: (value: Extract<IWidgetMeasure["value"], {
1221
+ mode: EWidgetIndicatorValueModes.AGGREGATION;
1222
+ }>) => {
1223
+ outerAggregation: EOuterAggregation;
1224
+ eventNameFormula: string;
1225
+ caseCaseIdFormula: string;
1226
+ eventName: string;
1227
+ objectFilters: string;
1228
+ filters: string;
1229
+ eventTimeFormula: string;
1230
+ columnFormula: string;
1231
+ } | null;
1232
+
1233
+ /** Шаблон процессной метрики меры с режимом CONVERSION */
1234
+ 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)";
1235
+ /** На основе значения режима CONVERSION подготовить параметры для подстановки в шаблонную формулу */
1236
+ declare const prepareConversionParams: (value: TWidgetIndicatorConversionValue) => {
1237
+ objectFilters: string;
1238
+ startEventTimeFormula: string;
1239
+ startEventNameFormula: string;
1240
+ startEventFilters: string;
1241
+ startEventName: string;
1242
+ endEventTimeFormula: string;
1243
+ endCaseCaseIdFormula: string;
1244
+ endEventNameFormula: string;
1245
+ endEventName: string;
1246
+ endEventFilters: string;
1247
+ } | null;
1248
+
1249
+ /** Шаблоны процессных метрик меры с режимом DURATION */
1250
+ declare const durationTemplates: Record<EDurationTemplateName, string>;
1251
+ /** На основе значения режима DURATION подготовить параметры для подстановки в шаблонную формулу */
1252
+ declare const prepareDurationParams: (value: TWidgetIndicatorDurationValue) => {
1253
+ objectFilters: string;
1254
+ startEventTimeFormula: string;
1255
+ startEventNameFormula: string;
1256
+ startEventFilters: string;
1257
+ startEventName: string;
1258
+ startEventAggregationName: string;
1259
+ endEventTimeFormula: string;
1260
+ endCaseCaseIdFormula: string;
1261
+ endEventNameFormula: string;
1262
+ endEventName: string;
1263
+ endEventFilters: string;
1264
+ endEventAggregationName: string;
1265
+ } | null;
1266
+
1267
+ declare function getEventMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1268
+
1269
+ declare enum EEventMeasureTemplateNames {
1270
+ eventsCount = "eventsCount",
1271
+ reworksCount = "reworksCount"
1272
+ }
1273
+ declare const eventMeasureTemplateFormulas: {
1274
+ readonly eventsCount: "count()";
1275
+ readonly reworksCount: "count() - uniqExact({caseCaseIdFormula})";
1276
+ };
1277
+
1278
+ declare function getTransitionMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1279
+
1280
+ declare enum ETransitionMeasureTemplateNames {
1281
+ transitionsCount = "transitionsCount",
1282
+ medianTime = "medianTime"
1283
+ }
1284
+ declare const transitionMeasureTemplateFormulas: {
1285
+ readonly transitionsCount: "count()";
1286
+ readonly medianTime: "medianExact(date_diff(second, begin({eventTimeFormula}), end({eventTimeFormula})))";
1287
+ };
1288
+
1289
+ declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in '{eventName}'{filters}), {caseCaseIdFormula})";
1290
+
1291
+ declare function fillTemplateString(templateString: string, params: Record<string, any>): string;
1292
+
1293
+ declare function generateColumnFormula(tableName: string, columnName: string): string;
1294
+
1295
+ /**
1296
+ * Регулярное выражение для поиска имени ссылки внутри формулы.
1297
+ * Учитывает, что имя внутри формулы содержит экраны.
1298
+ *
1299
+ * Принцип работы:
1300
+ * Пробовать следующие вхождения:
1301
+ * - \\\\ - экранированный символ обратного слэша.
1302
+ * - Иначе \\" - экранированный символ кавычки.
1303
+ * - Иначе [^"] - любой символ кроме кавычки.
1304
+ * Если встречается любой другой символ, то это закрывающая кавычка имени переменной.
1305
+ */
1306
+ declare const linkNameRegExp = "(?:\\\\\\\\|\\\\\"|[^\"])+";
1307
+ declare const dashboardLinkRegExp: RegExp;
1308
+ declare const workspaceLinkRegExp: RegExp;
1309
+ interface IIndicatorLink {
1310
+ /** string - имя группы пространства, null - используется текущий отчет */
1311
+ scopeName: string | null;
1312
+ indicatorName: string;
1313
+ }
1314
+ declare const parseIndicatorLink: (formula: string) => IIndicatorLink | null;
1315
+
1095
1316
  declare enum EControlType {
1096
1317
  /** Ввод текста */
1097
1318
  input = "input",
@@ -1178,6 +1399,16 @@ interface IControlRecord<Settings extends object, T extends TControlConstraint =
1178
1399
  props?: T["props"] | ((settings: Settings) => T["props"]);
1179
1400
  /** Описание доступа к значению настройки */
1180
1401
  accessor: TRecordAccessor<Settings, T["value"]>;
1402
+ /**
1403
+ * Определяет, нужно ли вызывать метод `fillSettings` виджета после изменения настройки
1404
+ * через элемент управления (для сохранения согласованности зависимых настроек).
1405
+ *
1406
+ * @note
1407
+ * В будущем, кроме boolean, может быть разрешено передавать функцию (локальный `fillSettings`),
1408
+ * но сейчас это избыточно.
1409
+ * @default false
1410
+ */
1411
+ fillSettings?: boolean;
1181
1412
  /**
1182
1413
  * Рекурсивное определение мета-описания, в элемент управления будет передана функция dive
1183
1414
  * для перехода в указанное мета-описание.
@@ -1335,6 +1566,7 @@ interface IFormulaControl {
1335
1566
  options?: TMeasureAddButtonSelectOption[];
1336
1567
  }) | {
1337
1568
  type: "dimension";
1569
+ templates?: EDimensionTemplateNames[];
1338
1570
  };
1339
1571
  disabled?: boolean;
1340
1572
  titleModal?: string;
@@ -1748,208 +1980,6 @@ interface ICalculatorFactory {
1748
1980
  type: () => ITypeCalculator;
1749
1981
  }
1750
1982
 
1751
- declare enum EDimensionTemplateNames {
1752
- dateTime = "dateTime",
1753
- date = "date",
1754
- year = "year",
1755
- yearAndQuarter = "yearAndQuarter",
1756
- quarter = "quarter",
1757
- yearAndMonth = "yearAndMonth",
1758
- dayOfMonth = "dayOfMonth",
1759
- month = "month",
1760
- week = "week",
1761
- dayOfWeek = "dayOfWeek",
1762
- hour = "hour"
1763
- }
1764
- /** Стандартные шаблоны разреза */
1765
- declare const dimensionTemplateFormulas: Record<EDimensionTemplateNames, string>;
1766
-
1767
- declare function getDimensionFormula({ value }: IWidgetDimension): string;
1768
-
1769
- declare enum EDimensionAggregationTemplateName {
1770
- top = "top",
1771
- firstValue = "firstValue",
1772
- lastValue = "lastValue",
1773
- countExecutions = "countExecutions",
1774
- countReworks = "countReworks"
1775
- }
1776
- /** Шаблоны процессных метрик разреза с режимом AGGREGATION */
1777
- declare const dimensionAggregationTemplates: Record<EDimensionAggregationTemplateName, string>;
1778
- /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1779
- declare const prepareDimensionAggregationParams: (value: Extract<IWidgetDimension["value"], {
1780
- mode: EWidgetIndicatorValueModes.AGGREGATION;
1781
- }>) => {
1782
- eventNameFormula: string;
1783
- caseCaseIdFormula: string;
1784
- eventName: string;
1785
- objectFilters: string;
1786
- filters: string;
1787
- eventTimeFormula: string;
1788
- columnFormula: string;
1789
- } | null;
1790
-
1791
- /** Шаблоны процессных метрик разреза с режимами START_TIME/END_TIME */
1792
- declare const timeTemplates: {
1793
- START_TIME: Record<EDimensionTemplateNames, string>;
1794
- END_TIME: Record<EDimensionTemplateNames, string>;
1795
- };
1796
- /** На основе значения режимов START_TIME/END_TIME подготовить параметры для подстановки в шаблонную формулу */
1797
- declare const prepareTimeParams: (value: TWidgetIndicatorTimeValue) => {
1798
- eventTimeFormula: string;
1799
- eventNameFormula: string;
1800
- caseCaseIdFormula: string;
1801
- filters: string;
1802
- eventName: string;
1803
- } | undefined;
1804
-
1805
- declare function getMeasureFormula({ value }: IWidgetMeasure): string;
1806
-
1807
- declare enum EMeasureTemplateNames {
1808
- avg = "avg",
1809
- median = "median",
1810
- count = "count",
1811
- countDistinct = "countDistinct",
1812
- min = "min",
1813
- max = "max",
1814
- sum = "sum"
1815
- }
1816
- /** Стандартные шаблоны меры */
1817
- declare const measureTemplateFormulas: {
1818
- readonly avg: "avg({columnFormula})";
1819
- readonly count: "count({columnFormula})";
1820
- readonly countDistinct: "count(distinct {columnFormula})";
1821
- readonly median: "medianExact({columnFormula})";
1822
- readonly min: "min({columnFormula})";
1823
- readonly max: "max({columnFormula})";
1824
- readonly sum: "sum({columnFormula})";
1825
- };
1826
-
1827
- declare enum EMeasureAggregationTemplateName {
1828
- agvIf = "agvIf",
1829
- medianIf = "medianIf",
1830
- countIf = "countIf",
1831
- countIfDistinct = "countIfDistinct",
1832
- minIf = "minIf",
1833
- maxIf = "maxIf",
1834
- sumIf = "sumIf",
1835
- top = "top",
1836
- firstValue = "firstValue",
1837
- lastValue = "lastValue",
1838
- countExecutions = "countExecutions",
1839
- countReworks = "countReworks"
1840
- }
1841
- /** Шаблоны процессных метрик меры с режимом AGGREGATION */
1842
- declare const measureAggregationTemplates: {
1843
- agvIf: string;
1844
- medianIf: string;
1845
- countIf: string;
1846
- countIfDistinct: string;
1847
- minIf: string;
1848
- maxIf: string;
1849
- sumIf: string;
1850
- top: (outerAggregation: EOuterAggregation) => string;
1851
- firstValue: (outerAggregation: EOuterAggregation) => string;
1852
- lastValue: (outerAggregation: EOuterAggregation) => string;
1853
- countExecutions: string;
1854
- countReworks: string;
1855
- };
1856
- /** На основе значения режима AGGREGATION подготовить параметры для подстановки в шаблонную формулу */
1857
- declare const prepareMeasureAggregationParams: (value: Extract<IWidgetMeasure["value"], {
1858
- mode: EWidgetIndicatorValueModes.AGGREGATION;
1859
- }>) => {
1860
- outerAggregation: EOuterAggregation;
1861
- eventNameFormula: string;
1862
- caseCaseIdFormula: string;
1863
- eventName: string;
1864
- objectFilters: string;
1865
- filters: string;
1866
- eventTimeFormula: string;
1867
- columnFormula: string;
1868
- } | null;
1869
-
1870
- /** Шаблон процессной метрики меры с режимом CONVERSION */
1871
- 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)";
1872
- /** На основе значения режима CONVERSION подготовить параметры для подстановки в шаблонную формулу */
1873
- declare const prepareConversionParams: (value: TWidgetIndicatorConversionValue) => {
1874
- objectFilters: string;
1875
- startEventTimeFormula: string;
1876
- startEventNameFormula: string;
1877
- startEventFilters: string;
1878
- startEventName: string;
1879
- endEventTimeFormula: string;
1880
- endCaseCaseIdFormula: string;
1881
- endEventNameFormula: string;
1882
- endEventName: string;
1883
- endEventFilters: string;
1884
- } | null;
1885
-
1886
- /** Шаблоны процессных метрик меры с режимом DURATION */
1887
- declare const durationTemplates: Record<EDurationTemplateName, string>;
1888
- /** На основе значения режима DURATION подготовить параметры для подстановки в шаблонную формулу */
1889
- declare const prepareDurationParams: (value: TWidgetIndicatorDurationValue) => {
1890
- objectFilters: string;
1891
- startEventTimeFormula: string;
1892
- startEventNameFormula: string;
1893
- startEventFilters: string;
1894
- startEventName: string;
1895
- startEventAggregationName: string;
1896
- endEventTimeFormula: string;
1897
- endCaseCaseIdFormula: string;
1898
- endEventNameFormula: string;
1899
- endEventName: string;
1900
- endEventFilters: string;
1901
- endEventAggregationName: string;
1902
- } | null;
1903
-
1904
- declare function getEventMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1905
-
1906
- declare enum EEventMeasureTemplateNames {
1907
- eventsCount = "eventsCount",
1908
- reworksCount = "reworksCount"
1909
- }
1910
- declare const eventMeasureTemplateFormulas: {
1911
- readonly eventsCount: "count()";
1912
- readonly reworksCount: "count() - uniqExact({caseCaseIdFormula})";
1913
- };
1914
-
1915
- declare function getTransitionMeasureFormula({ value }: IProcessIndicator, process: IWidgetProcess): string;
1916
-
1917
- declare enum ETransitionMeasureTemplateNames {
1918
- transitionsCount = "transitionsCount",
1919
- medianTime = "medianTime"
1920
- }
1921
- declare const transitionMeasureTemplateFormulas: {
1922
- readonly transitionsCount: "count()";
1923
- readonly medianTime: "medianExact(date_diff(second, begin({eventTimeFormula}), end({eventTimeFormula})))";
1924
- };
1925
-
1926
- declare const countExecutionsTemplate = "process(countIf({eventNameFormula} in '{eventName}'{filters}), {caseCaseIdFormula})";
1927
-
1928
- declare function fillTemplateString(templateString: string, params: Record<string, any>): string;
1929
-
1930
- declare function generateColumnFormula(tableName: string, columnName: string): string;
1931
-
1932
- /**
1933
- * Регулярное выражение для поиска имени ссылки внутри формулы.
1934
- * Учитывает, что имя внутри формулы содержит экраны.
1935
- *
1936
- * Принцип работы:
1937
- * Пробовать следующие вхождения:
1938
- * - \\\\ - экранированный символ обратного слэша.
1939
- * - Иначе \\" - экранированный символ кавычки.
1940
- * - Иначе [^"] - любой символ кроме кавычки.
1941
- * Если встречается любой другой символ, то это закрывающая кавычка имени переменной.
1942
- */
1943
- declare const linkNameRegExp = "(?:\\\\\\\\|\\\\\"|[^\"])+";
1944
- declare const dashboardLinkRegExp: RegExp;
1945
- declare const workspaceLinkRegExp: RegExp;
1946
- interface IIndicatorLink {
1947
- /** string - имя группы пространства, null - используется текущий отчет */
1948
- scopeName: string | null;
1949
- indicatorName: string;
1950
- }
1951
- declare const parseIndicatorLink: (formula: string) => IIndicatorLink | null;
1952
-
1953
1983
  interface ILens<T extends TNullable<object>, Value> {
1954
1984
  get(obj: T): TNullable<Value>;
1955
1985
  set(obj: T, value: Value): void;
@@ -2564,4 +2594,4 @@ declare global {
2564
2594
  }
2565
2595
  }
2566
2596
 
2567
- export { EActionButtonsTypes, EActionTypes, EAutoUpdateMode, EBlockingConditionMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, 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 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 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 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 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 TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, 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, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, durationTemplates, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, linkNameRegExp, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureAggregationTemplates, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
2597
+ export { EActionButtonsTypes, EActionTypes, EAutoUpdateMode, EBlockingConditionMode, 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 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 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 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 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 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, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, durationTemplates, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, linkNameRegExp, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureAggregationTemplates, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
package/dist/index.esm.js CHANGED
@@ -14,6 +14,7 @@ var EWidgetActionInputMethod;
14
14
  EWidgetActionInputMethod["START_EVENT"] = "START_EVENT";
15
15
  EWidgetActionInputMethod["FINISH_EVENT"] = "FINISH_EVENT";
16
16
  EWidgetActionInputMethod["AGGREGATION"] = "AGGREGATION";
17
+ EWidgetActionInputMethod["DATA_MODEL"] = "DATA_MODEL";
17
18
  })(EWidgetActionInputMethod || (EWidgetActionInputMethod = {}));
18
19
  var EActionTypes;
19
20
  (function (EActionTypes) {
@@ -47,6 +48,11 @@ var EAutoUpdateMode;
47
48
  EAutoUpdateMode["THIS_WIDGET"] = "THIS_WIDGET";
48
49
  EAutoUpdateMode["ALL_WIDGETS"] = "ALL_WIDGETS";
49
50
  })(EAutoUpdateMode || (EAutoUpdateMode = {}));
51
+ var EDataModelOption;
52
+ (function (EDataModelOption) {
53
+ EDataModelOption["TABLE_LIST"] = "TABLE_LIST";
54
+ EDataModelOption["COLUMN_LIST"] = "COLUMN_LIST";
55
+ })(EDataModelOption || (EDataModelOption = {}));
50
56
  var EBlockingConditionMode;
51
57
  (function (EBlockingConditionMode) {
52
58
  EBlockingConditionMode["FORMULA"] = "FORMULA";
@@ -1996,4 +2002,4 @@ var getColorByIndex = function (index) {
1996
2002
  return color;
1997
2003
  };
1998
2004
 
1999
- export { EActionButtonsTypes, EActionTypes, EAutoUpdateMode, EBlockingConditionMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, 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, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, durationTemplates, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, linkNameRegExp, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureAggregationTemplates, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
2005
+ export { EActionButtonsTypes, EActionTypes, EAutoUpdateMode, EBlockingConditionMode, 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, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, durationTemplates, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, linkNameRegExp, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureAggregationTemplates, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ exports.EWidgetActionInputMethod = void 0;
15
15
  EWidgetActionInputMethod["START_EVENT"] = "START_EVENT";
16
16
  EWidgetActionInputMethod["FINISH_EVENT"] = "FINISH_EVENT";
17
17
  EWidgetActionInputMethod["AGGREGATION"] = "AGGREGATION";
18
+ EWidgetActionInputMethod["DATA_MODEL"] = "DATA_MODEL";
18
19
  })(exports.EWidgetActionInputMethod || (exports.EWidgetActionInputMethod = {}));
19
20
  exports.EActionTypes = void 0;
20
21
  (function (EActionTypes) {
@@ -48,6 +49,11 @@ exports.EAutoUpdateMode = void 0;
48
49
  EAutoUpdateMode["THIS_WIDGET"] = "THIS_WIDGET";
49
50
  EAutoUpdateMode["ALL_WIDGETS"] = "ALL_WIDGETS";
50
51
  })(exports.EAutoUpdateMode || (exports.EAutoUpdateMode = {}));
52
+ exports.EDataModelOption = void 0;
53
+ (function (EDataModelOption) {
54
+ EDataModelOption["TABLE_LIST"] = "TABLE_LIST";
55
+ EDataModelOption["COLUMN_LIST"] = "COLUMN_LIST";
56
+ })(exports.EDataModelOption || (exports.EDataModelOption = {}));
51
57
  exports.EBlockingConditionMode = void 0;
52
58
  (function (EBlockingConditionMode) {
53
59
  EBlockingConditionMode["FORMULA"] = "FORMULA";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.13.0",
3
+ "version": "5.15.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",