@infomaximum/widget-sdk 7.0.0-15 → 7.0.0-17

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/dist/index.esm.js CHANGED
@@ -31,6 +31,7 @@ var apiVersions = [
31
31
  "16.2", // Для версии системы 250709
32
32
  "17", // 2508
33
33
  "18", // 2601
34
+ "19", // 2602
34
35
  ];
35
36
  /**
36
37
  * Актуальная версия settings, с которой работает система.
@@ -221,6 +222,21 @@ function memoize(fn) {
221
222
  return result;
222
223
  };
223
224
  }
225
+ var clamp = function (value, min, max) {
226
+ if (value < min) {
227
+ return min;
228
+ }
229
+ if (value > max) {
230
+ return max;
231
+ }
232
+ return value;
233
+ };
234
+ function mapValues(obj, fn) {
235
+ return Object.fromEntries(Object.entries(obj).map(function (_a) {
236
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
237
+ return [key, fn(value, key)];
238
+ }));
239
+ }
224
240
  /** Добавляет свойства к функции */
225
241
  function assignPropsToFn(fn, props) {
226
242
  return Object.assign(fn, props);
@@ -265,6 +281,31 @@ var VersionedSchemaFactory = /** @class */ (function () {
265
281
  });
266
282
  };
267
283
  };
284
+ /**
285
+ * Оборачивает фабрику схемы, добавляя кеширование результата.
286
+ *
287
+ * Предполагается, что `z` — синглтон (один экземпляр на всё приложение),
288
+ * поэтому достаточно закешировать единственный результат.
289
+ *
290
+ * Вызовы с дополнительными аргументами (restArgs) не кешируются,
291
+ * так как результат может зависеть от их значений.
292
+ */
293
+ VersionedSchemaFactory.withCache = function (schemaFactory) {
294
+ var cached;
295
+ return (function (z) {
296
+ var restArgs = [];
297
+ for (var _i = 1; _i < arguments.length; _i++) {
298
+ restArgs[_i - 1] = arguments[_i];
299
+ }
300
+ if (restArgs.length > 0) {
301
+ return schemaFactory.apply(void 0, __spreadArray([z], __read(restArgs), false));
302
+ }
303
+ if (cached === undefined) {
304
+ cached = schemaFactory(z);
305
+ }
306
+ return cached;
307
+ });
308
+ };
268
309
  /** Построить версионированную схему */
269
310
  VersionedSchemaFactory.build = function (_a) {
270
311
  var _this = this;
@@ -273,20 +314,23 @@ var VersionedSchemaFactory = /** @class */ (function () {
273
314
  if (!latestFactory) {
274
315
  throw new Error("Не найдено записи в 'history' по 'latestVersion'");
275
316
  }
276
- var map = this.annotateSchema(meta);
277
- var schema = assignPropsToFn(map(latestFactory), {
317
+ var annotate = this.annotateSchema(meta);
318
+ var preparedHistory = mapValues(history, function (factory) {
319
+ return _this.withCache(annotate(factory));
320
+ });
321
+ var schema = assignPropsToFn(preparedHistory[latestVersion], {
278
322
  forVersion: function (targetVersion) {
279
323
  if (targetVersion === null || targetVersion === undefined) {
280
- return map(latestFactory);
324
+ return preparedHistory[latestVersion];
281
325
  }
282
- if (targetVersion in history) {
283
- return map(history[targetVersion]);
326
+ if (targetVersion in preparedHistory) {
327
+ return preparedHistory[targetVersion];
284
328
  }
285
- var closestVersion = _this.findClosestVersion(Object.keys(history), targetVersion, VersionedSchemaFactory.compareVersions);
286
- if (closestVersion === undefined || !(closestVersion in history)) {
329
+ var closestVersion = _this.findClosestVersion(Object.keys(preparedHistory), targetVersion, VersionedSchemaFactory.compareVersions);
330
+ if (closestVersion === undefined || !(closestVersion in preparedHistory)) {
287
331
  throw new Error("\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0435\u0439 \u0441\u0445\u0435\u043C\u044B \u0434\u043B\u044F \u0432\u0435\u0440\u0441\u0438\u0438 '".concat(targetVersion, "'"));
288
332
  }
289
- return map(history[closestVersion]);
333
+ return preparedHistory[closestVersion];
290
334
  },
291
335
  });
292
336
  return schema;
@@ -376,9 +420,9 @@ var AutoIdentifiedArrayItemSchema = SchemaRegistry.define({
376
420
  });
377
421
  var BaseWidgetSettingsSchema = SchemaRegistry.define({
378
422
  key: "BaseWidgetSettings",
379
- latestVersion: "17",
380
- history: {
381
- "17": function (z) {
423
+ latestVersion: "19",
424
+ get history() {
425
+ var v17 = function (z) {
382
426
  return z.object({
383
427
  title: z.string().default(""),
384
428
  titleSize: themed(z.number().default(14), function (theme) { return theme.widgets.titleSize; }),
@@ -394,10 +438,14 @@ var BaseWidgetSettingsSchema = SchemaRegistry.define({
394
438
  ignoreFilters: z.boolean().default(false),
395
439
  sorting: z.array(WidgetSortingIndicatorSchema.forVersion("17")(z)).default([]),
396
440
  actionButtons: z.array(ActionButtonSchema.forVersion("17")(z)).default([]),
397
- paddings: themed(z.union([z.number(), z.string()]).default(8), function (theme) { return theme.widgets.paddings; }),
441
+ paddings: z.union([z.number(), z.string()]).default(8),
398
442
  viewTheme: z.boolean().default(false),
399
443
  });
400
- },
444
+ };
445
+ return {
446
+ "17": v17,
447
+ "19": function (z) { return v17(z).omit({ paddings: true }); },
448
+ };
401
449
  },
402
450
  });
403
451
 
@@ -2833,7 +2881,7 @@ var ESortDirection;
2833
2881
  * Если к разрезу иерархии применяется INCLUDE-фильтр с несколькими значениями - выбираем данный разрез
2834
2882
  */
2835
2883
  function selectDimensionFromHierarchy(hierarchy, filters) {
2836
- var hierarchyDimensions = hierarchy.hierarchyDimensions; hierarchy.displayCondition;
2884
+ var hierarchyDimensions = hierarchy.hierarchyDimensions;
2837
2885
  var _loop_1 = function (i) {
2838
2886
  var dimension = hierarchyDimensions[i];
2839
2887
  // todo: widgets - возможно, стоит использовать Map фильтров для быстрого поиска
@@ -3146,6 +3194,39 @@ var replaceFiltersBySelection = function (filters, selection) {
3146
3194
  }, []);
3147
3195
  };
3148
3196
 
3197
+ var colors = [
3198
+ "#222F3E",
3199
+ "#00D2D3",
3200
+ "#5F27CD",
3201
+ "#FECA57",
3202
+ "#078936",
3203
+ "#E51320",
3204
+ "#96AABF",
3205
+ "#1C55E7",
3206
+ "#341F97",
3207
+ "#FFDD59",
3208
+ "#D82C46",
3209
+ "#0BE881",
3210
+ "#0ABDE3",
3211
+ "#FF9F43",
3212
+ "#EC41D4",
3213
+ "#117F8E",
3214
+ "#B9B9B9",
3215
+ "#505BF1",
3216
+ "#64FFB6",
3217
+ "#485460",
3218
+ "#FFD32A",
3219
+ "#C74E1A",
3220
+ "#6E70A6",
3221
+ "#3C40C6",
3222
+ "#48DBFB",
3223
+ "#486179",
3224
+ "#FF9FF3",
3225
+ "#1DD1A1",
3226
+ "#BCC8D4",
3227
+ "#BA46AA",
3228
+ ];
3229
+
3149
3230
  var EColorMode;
3150
3231
  (function (EColorMode) {
3151
3232
  /** Окрашивание отключено */
@@ -3165,6 +3246,7 @@ var EColorMode;
3165
3246
  /** Задать цвет конкретным значениям общего разреза. Режим используется только для настроек правила отображения */
3166
3247
  EColorMode["BY_DIMENSION"] = "BY_DIMENSION";
3167
3248
  })(EColorMode || (EColorMode = {}));
3249
+
3168
3250
  var getRuleColor = function (ruleFormula, globalContext) {
3169
3251
  var _a, _b;
3170
3252
  var link = parseIndicatorLink(ruleFormula);
@@ -3186,38 +3268,6 @@ var isValidColor = function (color, globalContext) {
3186
3268
  }
3187
3269
  return true;
3188
3270
  };
3189
- var colors = [
3190
- "#222F3E",
3191
- "#00D2D3",
3192
- "#5F27CD",
3193
- "#FECA57",
3194
- "#078936",
3195
- "#E51320",
3196
- "#96AABF",
3197
- "#1C55E7",
3198
- "#341F97",
3199
- "#FFDD59",
3200
- "#D82C46",
3201
- "#0BE881",
3202
- "#0ABDE3",
3203
- "#FF9F43",
3204
- "#EC41D4",
3205
- "#117F8E",
3206
- "#B9B9B9",
3207
- "#505BF1",
3208
- "#64FFB6",
3209
- "#485460",
3210
- "#FFD32A",
3211
- "#C74E1A",
3212
- "#6E70A6",
3213
- "#3C40C6",
3214
- "#48DBFB",
3215
- "#486179",
3216
- "#FF9FF3",
3217
- "#1DD1A1",
3218
- "#BCC8D4",
3219
- "#BA46AA",
3220
- ];
3221
3271
  /**
3222
3272
  * Получить цвет по индексу элемента
3223
3273
  * @param index - индекс элемента, которому требуется цвет
@@ -3232,51 +3282,6 @@ var getColorByIndex = function (index) {
3232
3282
  return color;
3233
3283
  };
3234
3284
 
3235
- var WidgetPresetSettingsSchema = SchemaRegistry.define({
3236
- key: "WidgetPresetSettings",
3237
- latestVersion: "17",
3238
- history: {
3239
- "17": function (z) {
3240
- return BaseWidgetSettingsSchema.forVersion("17")(z)
3241
- .pick({
3242
- filterMode: true,
3243
- ignoreFilters: true,
3244
- stateName: true,
3245
- titleColor: true,
3246
- titleSize: true,
3247
- titleWeight: true,
3248
- paddings: true,
3249
- })
3250
- .extend({
3251
- textSize: z.number().default(12),
3252
- });
3253
- },
3254
- },
3255
- });
3256
-
3257
- /**
3258
- * Привязывает мета-информацию о теме к Zod-схеме
3259
- *
3260
- * @template Value - Тип значения схемы
3261
- * @template Theme - Тип темы (по умолчанию ITheme)
3262
- *
3263
- * @param scheme - Zod схема для привязки
3264
- * @param selectThemeValue - Функция, возвращающая значение из темы
3265
- *
3266
- * @returns Zod схему с мета-информацией о теме
3267
- *
3268
- * @example
3269
- * // Базовое использование
3270
- * textSize: themed(
3271
- * z.number().default(12),
3272
- * (theme) => theme.textSize
3273
- * )
3274
- */
3275
- var themed = function (scheme, selectThemeValue) {
3276
- var _a;
3277
- return scheme.meta((_a = {}, _a[ESettingsSchemaMetaKey.themeValue] = selectThemeValue, _a));
3278
- };
3279
-
3280
3285
  var ColorBaseSchema = SchemaRegistry.define({
3281
3286
  key: "ColorBase",
3282
3287
  latestVersion: "17",
@@ -3424,4 +3429,96 @@ var ColorSchema = SchemaRegistry.define({
3424
3429
  },
3425
3430
  });
3426
3431
 
3427
- export { ActionButtonSchema, ActionDrillDownSchema, ActionGoToURLSchema, ActionOnClickParameterSchema, ActionOpenInSchema, ActionOpenViewSchema, ActionRunScriptSchema, ActionSchema, ActionUpdateVariableSchema, ActionsOnClickSchema, AutoIdentifiedArrayItemSchema, BaseWidgetSettingsSchema, ColorAutoSchema, ColorBaseSchema, ColorByDimensionSchema, ColorDisabledSchema, ColorFormulaSchema, ColorGradientSchema, ColorRuleSchema, ColorSchema, ColorValuesSchema, ColoredValueSchema, ColumnIndicatorValueSchema, DimensionProcessFilterSchema, DimensionValueSchema, DisplayConditionSchema, EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionProcessFilterTimeUnit, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatOrFormattingMode, EFormulaFilterFieldKeys, EHeightMode, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureInnerTemplateNames, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESettingsSchemaMetaKey, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, ExtendedFormulaFilterValueSchema, FormatSchema, FormattingSchema, FormulaFilterValueSchema, FormulaNullableSchema, FormulaSchema, KeyNullableSchema, MarkdownMeasureSchema, MeasureValueSchema, NameNullableSchema, OuterAggregation, ParameterFromAggregationSchema, ParameterFromColumnSchema, ParameterFromDataModelSchema, ParameterFromDynamicListSchema, ParameterFromEndEventSchema, ParameterFromEventSchema, ParameterFromFormulaSchema, ParameterFromManualInputSchema, ParameterFromStartEventSchema, ParameterFromStaticListSchema, ParameterFromVariableSchema, ProcessIndicatorSchema, ProcessIndicatorValueSchema, RangeSchema, SchemaRegistryReader, SettingsFilterSchema, SortDirectionSchema, SortOrderSchema, VersionedSchemaFactory, ViewActionParameterSchema, ViewActionSchema, WidgetActionParameterSchema, WidgetActionSchema, WidgetColumnIndicatorSchema, WidgetDimensionHierarchySchema, WidgetDimensionInHierarchySchema, WidgetDimensionSchema, WidgetIndicatorAggregationValueSchema, WidgetIndicatorConversionValueSchema, WidgetIndicatorDurationValueSchema, WidgetIndicatorFormulaValueSchema, WidgetIndicatorSchema, WidgetIndicatorTemplateValueSchema, WidgetIndicatorTimeValueSchema, WidgetMeasureAggregationValueSchema, WidgetMeasureSchema, WidgetPresetSettingsSchema, WidgetSortingIndicatorSchema, WidgetSortingValueSchema, apiVersion, apiVersions, applyIndexToArrayFormula, availableFormatsBySimpleType, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, defaultActionsConfig, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateSql, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getMeasureFormula, getProcessDimensionValueFormula, getRuleColor, getTransitionMeasureFormula, inheritDisplayConditionFromHierarchy, isDimensionProcessFilter, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSettingsFiltersToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureInnerTemplateFormulas, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, themed, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
3432
+ var hexToRgb = function (hex) {
3433
+ if (hex.length === 0) {
3434
+ return;
3435
+ }
3436
+ var rgbTuple = [0, 0, 0];
3437
+ var matchArray = hex
3438
+ .replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function (m, r, g, b) { return "#".concat(r).concat(r).concat(g).concat(g).concat(b).concat(b); })
3439
+ .substring(1)
3440
+ .match(/.{2}/g);
3441
+ matchArray === null || matchArray === void 0 ? void 0 : matchArray.forEach(function (value, index) {
3442
+ if (index > 2) {
3443
+ return undefined;
3444
+ }
3445
+ rgbTuple[index] = parseInt(value, 16);
3446
+ });
3447
+ return rgbTuple;
3448
+ };
3449
+
3450
+ var rgbToHex = function (rgb) {
3451
+ return "#".concat(rgb.map(function (x) { return x.toString(16).padStart(2, "0"); }).join(""));
3452
+ };
3453
+
3454
+ var lerp = function (a, b, t) { return a + (b - a) * t; };
3455
+ /**
3456
+ * Вычисляет промежуточный hex цвет между двумя цветами путем линейной интерполяции
3457
+ * в RGB пространстве
3458
+ *
3459
+ * @param startHex цвет начала
3460
+ * @param endHex цвет конца
3461
+ * @param position позиция на градиенте от 0 до 1
3462
+ */
3463
+ var interpolateHexColor = function (startHex, endHex, position) {
3464
+ var clampedPosition = clamp(position, 0, 1);
3465
+ var startRgb = hexToRgb(startHex);
3466
+ var endRgb = hexToRgb(endHex);
3467
+ if (!startRgb || !endRgb) {
3468
+ throw new Error("\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: start: ".concat(startHex, ", end: ").concat(endHex));
3469
+ }
3470
+ var interpolated = [
3471
+ Math.round(lerp(startRgb[0], endRgb[0], clampedPosition)),
3472
+ Math.round(lerp(startRgb[1], endRgb[1], clampedPosition)),
3473
+ Math.round(lerp(startRgb[2], endRgb[2], clampedPosition)),
3474
+ ];
3475
+ return rgbToHex(interpolated);
3476
+ };
3477
+
3478
+ /** @deprecated временно используется для миграции */
3479
+ var WidgetPresetSettingsSchema = SchemaRegistry.define({
3480
+ key: "WidgetPresetSettings",
3481
+ latestVersion: "17",
3482
+ history: {
3483
+ "17": function (z) {
3484
+ return BaseWidgetSettingsSchema.forVersion("17")(z)
3485
+ .pick({
3486
+ filterMode: true,
3487
+ ignoreFilters: true,
3488
+ stateName: true,
3489
+ titleColor: true,
3490
+ titleSize: true,
3491
+ titleWeight: true,
3492
+ paddings: true,
3493
+ })
3494
+ .extend({
3495
+ textSize: z.number().default(12),
3496
+ });
3497
+ },
3498
+ },
3499
+ });
3500
+
3501
+ /**
3502
+ * Привязывает мета-информацию о теме к Zod-схеме
3503
+ *
3504
+ * @template Value - Тип значения схемы
3505
+ * @template Theme - Тип темы (по умолчанию ITheme)
3506
+ *
3507
+ * @param scheme - Zod схема для привязки
3508
+ * @param selectThemeValue - Функция, возвращающая значение из темы
3509
+ *
3510
+ * @returns Zod схему с мета-информацией о теме
3511
+ *
3512
+ * @example
3513
+ * // Базовое использование
3514
+ * textSize: themed(
3515
+ * z.number().default(12),
3516
+ * (theme) => theme.textSize
3517
+ * )
3518
+ */
3519
+ var themed = function (scheme, selectThemeValue) {
3520
+ var _a;
3521
+ return scheme.meta((_a = {}, _a[ESettingsSchemaMetaKey.themeValue] = selectThemeValue, _a));
3522
+ };
3523
+
3524
+ export { ActionButtonSchema, ActionDrillDownSchema, ActionGoToURLSchema, ActionOnClickParameterSchema, ActionOpenInSchema, ActionOpenViewSchema, ActionRunScriptSchema, ActionSchema, ActionUpdateVariableSchema, ActionsOnClickSchema, AutoIdentifiedArrayItemSchema, BaseWidgetSettingsSchema, ColorAutoSchema, ColorBaseSchema, ColorByDimensionSchema, ColorDisabledSchema, ColorFormulaSchema, ColorGradientSchema, ColorRuleSchema, ColorSchema, ColorValuesSchema, ColoredValueSchema, ColumnIndicatorValueSchema, DimensionProcessFilterSchema, DimensionValueSchema, DisplayConditionSchema, EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDataModelOption, EDimensionAggregationTemplateName, EDimensionProcessFilterTimeUnit, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationTemplateName, EDurationUnit, EEventAppearances, EEventMeasureTemplateNames, EFontWeight, EFormatOrFormattingMode, EFormulaFilterFieldKeys, EHeightMode, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureAggregationTemplateName, EMeasureInnerTemplateNames, EMeasureTemplateNames, EOuterAggregation, EProcessFilterNames, ESelectOptionTypes, ESettingsSchemaMetaKey, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, ExtendedFormulaFilterValueSchema, FormatSchema, FormattingSchema, FormulaFilterValueSchema, FormulaNullableSchema, FormulaSchema, KeyNullableSchema, MarkdownMeasureSchema, MeasureValueSchema, NameNullableSchema, OuterAggregation, ParameterFromAggregationSchema, ParameterFromColumnSchema, ParameterFromDataModelSchema, ParameterFromDynamicListSchema, ParameterFromEndEventSchema, ParameterFromEventSchema, ParameterFromFormulaSchema, ParameterFromManualInputSchema, ParameterFromStartEventSchema, ParameterFromStaticListSchema, ParameterFromVariableSchema, ProcessIndicatorSchema, ProcessIndicatorValueSchema, RangeSchema, SchemaRegistryReader, SettingsFilterSchema, SortDirectionSchema, SortOrderSchema, VersionedSchemaFactory, ViewActionParameterSchema, ViewActionSchema, WidgetActionParameterSchema, WidgetActionSchema, WidgetColumnIndicatorSchema, WidgetDimensionHierarchySchema, WidgetDimensionInHierarchySchema, WidgetDimensionSchema, WidgetIndicatorAggregationValueSchema, WidgetIndicatorConversionValueSchema, WidgetIndicatorDurationValueSchema, WidgetIndicatorFormulaValueSchema, WidgetIndicatorSchema, WidgetIndicatorTemplateValueSchema, WidgetIndicatorTimeValueSchema, WidgetMeasureAggregationValueSchema, WidgetMeasureSchema, WidgetPresetSettingsSchema, WidgetSortingIndicatorSchema, WidgetSortingValueSchema, apiVersion, apiVersions, applyIndexToArrayFormula, availableFormatsBySimpleType, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, defaultActionsConfig, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateSql, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getMeasureFormula, getProcessDimensionValueFormula, getRuleColor, getTransitionMeasureFormula, hexToRgb, inheritDisplayConditionFromHierarchy, interpolateHexColor, isDimensionProcessFilter, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSettingsFiltersToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureInnerTemplateFormulas, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, themed, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };