@infomaximum/widget-sdk 5.0.0-beta9 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -363,8 +363,6 @@ interface IAddDurationOfTransitionFilter {
363
363
  declare enum EFormulaFilterFieldKeys {
364
364
  date = "date",
365
365
  dateRange = "dateRange",
366
- duration = "duration",
367
- number = "number",
368
366
  numberRange = "numberRange",
369
367
  string = "string",
370
368
  lastTimeValue = "lastTimeValue",
@@ -388,8 +386,6 @@ interface IFormulaFilterValue {
388
386
  formValues?: Partial<{
389
387
  [EFormulaFilterFieldKeys.date]: string | null;
390
388
  [EFormulaFilterFieldKeys.dateRange]: [string, string];
391
- [EFormulaFilterFieldKeys.duration]: string;
392
- [EFormulaFilterFieldKeys.number]: number;
393
389
  [EFormulaFilterFieldKeys.numberRange]: Partial<[number, number]>;
394
390
  [EFormulaFilterFieldKeys.string]: string;
395
391
  [EFormulaFilterFieldKeys.lastTimeValue]: number;
@@ -524,18 +520,6 @@ interface IWidgetTable {
524
520
  /** Колонки таблицы */
525
521
  columns: Map<string, IWidgetTableColumn>;
526
522
  }
527
- /**
528
- * simplified - упрощенный (для работы фильтрации в образах, открытых в модальном/боковом окне)
529
- *
530
- * full - полный
531
- */
532
- type TFiltrationMode = "simplified" | "full";
533
- /**
534
- * preview - упрощенный
535
- *
536
- * full - полный
537
- */
538
- type TDisplayMode = "preview" | "full";
539
523
  interface IDisplayRule {
540
524
  color: TColor;
541
525
  }
@@ -546,10 +530,6 @@ interface IGlobalContext {
546
530
  reportName: string;
547
531
  /** Имена образов по их ключу(в текущем отчете) */
548
532
  viewNameByKey: Map<string, string>;
549
- /** Режим отображения виджетов */
550
- displayMode: TDisplayMode;
551
- /** Режим фильтрации виджетов */
552
- filtrationMode: TFiltrationMode;
553
533
  /** @deprecated имя группы пространства по ее id */
554
534
  workspaceGroupNameById: Map<number, string>;
555
535
  /** Меры уровня отчета */
@@ -664,8 +644,6 @@ interface IBaseWidgetSettings {
664
644
  ignoreFilters?: boolean;
665
645
  sorting?: IWidgetSortingIndicator[];
666
646
  actions?: IWidgetAction[];
667
- displayCondition?: TDisplayCondition;
668
- displayConditionComment?: string;
669
647
  appearance?: TAppearanceSettings;
670
648
  }
671
649
 
@@ -1052,13 +1030,10 @@ interface IBaseDimensionsAndMeasuresCalculatorInput {
1052
1030
  isHideEmptyMeasures?: boolean;
1053
1031
  /** Сортировка */
1054
1032
  sortOrders?: ISortOrder[];
1055
- /** Формула условия отображения */
1056
- displayConditionFormula?: TNullable<string>;
1057
1033
  }
1058
1034
  interface IBaseDimensionsAndMeasuresCalculatorOutput {
1059
1035
  dimensions: Map<string, ICalculatorDimensionOutput>;
1060
1036
  measures: Map<string, ICalculatorMeasureOutput>;
1061
- isDisplay: boolean;
1062
1037
  isValuesEmpty: boolean;
1063
1038
  }
1064
1039
  interface IBaseDimensionsAndMeasuresCalculator<Input extends IBaseDimensionsAndMeasuresCalculatorInput, Output extends IBaseDimensionsAndMeasuresCalculatorOutput> extends ICalculator<Input, Output> {
@@ -1089,8 +1064,6 @@ interface IHistogramCalculatorInput {
1089
1064
  dimensions: ICalculatorDimensionInput[];
1090
1065
  /** Лимит корзин */
1091
1066
  binsLimit: number;
1092
- /** Формула условия отображения */
1093
- displayConditionFormula?: TNullable<string>;
1094
1067
  /** Фильтры, использующие WHERE */
1095
1068
  filters: ICalculatorFilter[];
1096
1069
  /** Имя таблицы */
@@ -1103,7 +1076,6 @@ interface IHistogramBin {
1103
1076
  }
1104
1077
  interface IHistogramCalculatorOutput {
1105
1078
  bins: IHistogramBin[];
1106
- isDisplay: boolean;
1107
1079
  dimensionAlias: string;
1108
1080
  }
1109
1081
  interface IHistogramCalculator extends ICalculator<IHistogramCalculatorInput, IHistogramCalculatorOutput> {
@@ -1140,7 +1112,6 @@ interface IProcessGraphCalculatorInput {
1140
1112
  edgeMeasures: ICalculatorMeasureInput[];
1141
1113
  filters: ICalculatorFilter[];
1142
1114
  eventFilters?: ICalculatorFilter[];
1143
- displayConditionFormula?: TNullable<string>;
1144
1115
  }
1145
1116
  interface IProcessGraphCalculatorOutput {
1146
1117
  vertexMaxLimit: number;
@@ -1153,7 +1124,6 @@ interface IProcessGraphCalculatorOutput {
1153
1124
  /** alias'ы мер, попавших под условие отображения */
1154
1125
  edgeMeasuresAliases: Set<string>;
1155
1126
  edges: IEdge[];
1156
- isDisplay: boolean;
1157
1127
  }
1158
1128
  interface IProcessGraphCalculator extends ICalculator<IProcessGraphCalculatorInput, IProcessGraphCalculatorOutput> {
1159
1129
  }
@@ -1175,8 +1145,6 @@ interface ITwoLimitsCalculatorInput {
1175
1145
  isHideEmptyMeasures?: boolean;
1176
1146
  /** Сортировка */
1177
1147
  sortOrders?: ISortOrder[];
1178
- /** Формула условия отображения */
1179
- displayConditionFormula?: TNullable<string>;
1180
1148
  /** Лимит строк */
1181
1149
  limit?: number;
1182
1150
  /** Второй лимит */
@@ -1191,7 +1159,6 @@ interface ITwoLimitsCalculatorExportInput extends ITwoLimitsCalculatorInput {
1191
1159
  interface ITwoLimitsCalculatorOutput {
1192
1160
  dimensions: Map<string, ICalculatorDimensionOutput>;
1193
1161
  measures: Map<string, ICalculatorMeasureOutput>;
1194
- isDisplay: boolean;
1195
1162
  isValuesEmpty: boolean;
1196
1163
  }
1197
1164
  interface ITwoLimitsCalculator extends ICalculator<ITwoLimitsCalculatorInput, ITwoLimitsCalculatorOutput> {
@@ -1499,14 +1466,12 @@ interface ISelectGroupOption {
1499
1466
  options: IAddButtonSelectOption[];
1500
1467
  icon: string;
1501
1468
  }
1502
- /** @deprecated необходимо использовать TSelectFetchNodes*/
1503
- type TSelectFetchOptions = (searchText?: string) => Promise<TCustomAddButtonSelectOption[]>;
1504
1469
  interface ISelectNode {
1505
1470
  options: TCustomAddButtonSelectOption[];
1506
1471
  isAllRequested: boolean;
1507
1472
  }
1508
1473
  type TSelectFetchNodes = (searchText?: string) => Promise<ISelectNode>;
1509
- type TSelectChildOptions = TCustomAddButtonSelectOption[] | TSelectFetchNodes | TSelectFetchOptions;
1474
+ type TSelectChildOptions = TCustomAddButtonSelectOption[] | TSelectFetchNodes;
1510
1475
  interface ISelectBranchOption {
1511
1476
  type: ESelectOptionTypes.BRANCH;
1512
1477
  label: string;
@@ -1675,11 +1640,9 @@ declare enum ESystemRecordKey {
1675
1640
 
1676
1641
  interface IWidgetPlaceholderController {
1677
1642
  setError(value: Error | null): void;
1678
- setConfigured(value: boolean): void;
1679
1643
  /**
1680
- * Устанавливает состояние видимости виджета.
1644
+ * Сообщает о готовности виджета к отображению.
1681
1645
  *
1682
- * После вызова данного метода виджет станет доступен для отображения.
1683
1646
  * Это предотвращает мерцание при первом появлении виджета на экране.
1684
1647
  * Метод должен быть вызван после полной готовности виджета: все необходимые данные загружены, высота установлена.
1685
1648
  */
@@ -1689,7 +1652,6 @@ interface IWidgetPlaceholderController {
1689
1652
  }
1690
1653
  interface IWidgetPlaceholderValues {
1691
1654
  error: Error | null;
1692
- isConfigured: boolean;
1693
1655
  isDisplay: boolean | undefined;
1694
1656
  isEmpty: boolean;
1695
1657
  isOverlay: boolean;
@@ -1836,9 +1798,21 @@ interface IWidgetPersistValue<T extends object = object> {
1836
1798
  get(): T | null;
1837
1799
  set(value: T | null): void;
1838
1800
  }
1801
+ /**
1802
+ * simplified - упрощенный (для работы фильтрации в образах, открытых в модальном/боковом окне)
1803
+ *
1804
+ * full - полный
1805
+ */
1806
+ type TFiltrationAccessibility = "simplified" | "full";
1807
+ /**
1808
+ * preview - упрощенный
1809
+ *
1810
+ * full - полный
1811
+ */
1812
+ type TDisplayMode = "preview" | "full";
1839
1813
  interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetSettings> {
1840
- /** @deprecated в качестве guid используется ключ виджета(уникален в рамках образа для каждого экземпляра виджета) */
1841
- guid: string;
1814
+ /** Ключ виджета */
1815
+ widgetKey: string;
1842
1816
  /** Настройки виджета */
1843
1817
  settings: WidgetSettings;
1844
1818
  /** Фабрика для создания вычислителей */
@@ -1872,6 +1846,10 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
1872
1846
  actionValidator: TActionValidator;
1873
1847
  /** Аксессор для persist-значения виджета, хранимого в localStorage и URL */
1874
1848
  persistValue: IWidgetPersistValue;
1849
+ /** Режим отображения виджета */
1850
+ displayMode: TDisplayMode;
1851
+ /** Доступность фильтрации */
1852
+ filtrationAccessibility: TFiltrationAccessibility;
1875
1853
  }
1876
1854
  /** Манифест виджета */
1877
1855
  interface IWidgetManifest {
@@ -1899,8 +1877,6 @@ interface IWidgetManifest {
1899
1877
  };
1900
1878
  /** Параметры контейнера виджета */
1901
1879
  container_params?: {
1902
- /** @deprecated необходимо использовать show_title */
1903
- show_header?: boolean;
1904
1880
  /** Отображать ли системный заголовок виджета (по умолчанию false) */
1905
1881
  show_title?: boolean;
1906
1882
  /** Отображать ли markdown "описание" виджета (по умолчанию false) */
@@ -2025,4 +2001,4 @@ declare global {
2025
2001
  }
2026
2002
  }
2027
2003
 
2028
- export { EActionButtonsTypes, EActionTypes, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionGoToUrl, 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 IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IExportColumnOrder, type IFillSettings, 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 ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRange, type ISelectBranchOption, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, 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, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TAppearanceSettings, 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 TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationMode, type TGroupLevelRecord, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectFetchOptions, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorData, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, colors, dashboardLinkRegExp, dimensionTemplateFormulas, 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, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareSortOrders, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
2004
+ export { EActionButtonsTypes, EActionTypes, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionGoToUrl, 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 IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IExportColumnOrder, type IFillSettings, 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 ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, type IPanelDescription, type IPanelDescriptionCreator, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type IProcessEventFilterValue, type IProcessEventIndicator, type IProcessGraphCalculator, type IProcessGraphCalculatorInput, type IProcessGraphCalculatorOutput, type IProcessIndicator, type IProcessTransitionFilterValue, type IProcessTransitionIndicator, type IRange, type ISelectBranchOption, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, 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, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TAppearanceSettings, 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 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 TWidgetIndicatorData, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, colors, dashboardLinkRegExp, dimensionTemplateFormulas, 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, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareSortOrders, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
package/dist/index.esm.js CHANGED
@@ -156,8 +156,6 @@ var EFormulaFilterFieldKeys;
156
156
  (function (EFormulaFilterFieldKeys) {
157
157
  EFormulaFilterFieldKeys["date"] = "date";
158
158
  EFormulaFilterFieldKeys["dateRange"] = "dateRange";
159
- EFormulaFilterFieldKeys["duration"] = "duration";
160
- EFormulaFilterFieldKeys["number"] = "number";
161
159
  EFormulaFilterFieldKeys["numberRange"] = "numberRange";
162
160
  EFormulaFilterFieldKeys["string"] = "string";
163
161
  EFormulaFilterFieldKeys["lastTimeValue"] = "lastTimeValue";
@@ -689,15 +687,13 @@ var getFormulaFilterValues = function (filterValue) {
689
687
  case EFormatTypes.DAY_OF_MONTH:
690
688
  case EFormatTypes.WEEK:
691
689
  case EFormatTypes.HOUR:
692
- var _g = formValues, _h = EFormulaFilterFieldKeys.number, number = _g[_h], _j = EFormulaFilterFieldKeys.numberRange, numberRange = _g[_j];
693
- return isRangeFilteringMethod(filteringMethod)
694
- ? stringifyNumbersRange(numberRange)
695
- : [String(number !== null && number !== void 0 ? number : 0)];
690
+ var _g = formValues, _h = EFormulaFilterFieldKeys.numberRange, numberRange = _g[_h];
691
+ return isRangeFilteringMethod(filteringMethod) ? stringifyNumbersRange(numberRange) : [];
696
692
  case EFormatTypes.DURATION:
697
- var _k = formValues, _l = EFormulaFilterFieldKeys.duration, duration = _k[_l], _m = EFormulaFilterFieldKeys.numberRange, durationRange = _k[_m], _o = EFormulaFilterFieldKeys.durationUnit, durationUnit = _k[_o];
693
+ var _j = formValues, _k = EFormulaFilterFieldKeys.numberRange, durationRange = _j[_k], _l = EFormulaFilterFieldKeys.durationUnit, durationUnit = _j[_l];
698
694
  return isRangeFilteringMethod(filteringMethod)
699
695
  ? convertDurationRangeToSecond(durationRange, durationUnit)
700
- : [String(duration !== null && duration !== void 0 ? duration : 0)];
696
+ : [];
701
697
  }
702
698
  return [];
703
699
  };
package/dist/index.js CHANGED
@@ -157,8 +157,6 @@ exports.EFormulaFilterFieldKeys = void 0;
157
157
  (function (EFormulaFilterFieldKeys) {
158
158
  EFormulaFilterFieldKeys["date"] = "date";
159
159
  EFormulaFilterFieldKeys["dateRange"] = "dateRange";
160
- EFormulaFilterFieldKeys["duration"] = "duration";
161
- EFormulaFilterFieldKeys["number"] = "number";
162
160
  EFormulaFilterFieldKeys["numberRange"] = "numberRange";
163
161
  EFormulaFilterFieldKeys["string"] = "string";
164
162
  EFormulaFilterFieldKeys["lastTimeValue"] = "lastTimeValue";
@@ -690,15 +688,13 @@ var getFormulaFilterValues = function (filterValue) {
690
688
  case exports.EFormatTypes.DAY_OF_MONTH:
691
689
  case exports.EFormatTypes.WEEK:
692
690
  case exports.EFormatTypes.HOUR:
693
- var _g = formValues, _h = exports.EFormulaFilterFieldKeys.number, number = _g[_h], _j = exports.EFormulaFilterFieldKeys.numberRange, numberRange = _g[_j];
694
- return isRangeFilteringMethod(filteringMethod)
695
- ? stringifyNumbersRange(numberRange)
696
- : [String(number !== null && number !== void 0 ? number : 0)];
691
+ var _g = formValues, _h = exports.EFormulaFilterFieldKeys.numberRange, numberRange = _g[_h];
692
+ return isRangeFilteringMethod(filteringMethod) ? stringifyNumbersRange(numberRange) : [];
697
693
  case exports.EFormatTypes.DURATION:
698
- var _k = formValues, _l = exports.EFormulaFilterFieldKeys.duration, duration = _k[_l], _m = exports.EFormulaFilterFieldKeys.numberRange, durationRange = _k[_m], _o = exports.EFormulaFilterFieldKeys.durationUnit, durationUnit = _k[_o];
694
+ var _j = formValues, _k = exports.EFormulaFilterFieldKeys.numberRange, durationRange = _j[_k], _l = exports.EFormulaFilterFieldKeys.durationUnit, durationUnit = _j[_l];
699
695
  return isRangeFilteringMethod(filteringMethod)
700
696
  ? convertDurationRangeToSecond(durationRange, durationUnit)
701
- : [String(duration !== null && duration !== void 0 ? duration : 0)];
697
+ : [];
702
698
  }
703
699
  return [];
704
700
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.0.0-beta9",
3
+ "version": "5.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",