@infomaximum/widget-sdk 5.19.0 → 5.21.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.21.0](https://github.com/Infomaximum/widget-sdk/compare/v5.20.0...v5.21.0) (2025-05-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * добавлен шаблон форматирования 'x' ([8905393](https://github.com/Infomaximum/widget-sdk/commit/890539367b03e78852e0a75096f6b56835b8ae2d))
11
+ * добавлена настройка 'Позиционирование по клику' ([b4107b9](https://github.com/Infomaximum/widget-sdk/commit/b4107b91cd1c00b102226a343838d6dfdf1bee29))
12
+ * изменены интерфейсы IPositionConfig и IClickPosition ([052ab57](https://github.com/Infomaximum/widget-sdk/commit/052ab574285887c09121b65860bf49070f757bab))
13
+
14
+ ## [5.20.0](https://github.com/Infomaximum/widget-sdk/compare/v5.19.0...v5.20.0) (2025-05-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * в EViewOpenIn CURRENT_WINDOW и NEW_WINDOW отмечены как deprecated и добавлен WINDOW ([91db750](https://github.com/Infomaximum/widget-sdk/commit/91db750f3c16bbb7132fce2f24fa70abecdbdb09))
20
+ * добавлена возможность показывать каретку в кнопке опций контекстного меню ([ae2ca8d](https://github.com/Infomaximum/widget-sdk/commit/ae2ca8d0470a2d555f6a4c91d09d7864ade08a5a))
21
+ * добавлены типы для действий образа ([5d5942c](https://github.com/Infomaximum/widget-sdk/commit/5d5942c78f682668e5420e151da54c9b3ddac66a))
22
+
5
23
  ## [5.19.0](https://github.com/Infomaximum/widget-sdk/compare/v5.18.0...v5.19.0) (2025-05-19)
6
24
 
7
25
 
package/dist/index.d.ts CHANGED
@@ -164,6 +164,7 @@ declare enum EFormattingPresets {
164
164
  "MM" = "MM",
165
165
  "MMMM" = "MMMM",
166
166
  "k" = "k",
167
+ "x" = "x",
167
168
  "#,##x" = "#,##x",
168
169
  "#,##x.x" = "#,##x.x",
169
170
  "#,##x.xx" = "#,##x.xx",
@@ -302,11 +303,12 @@ interface IProcessTransitionFilterValue extends IProcessFilterValue {
302
303
  interface IClickPosition {
303
304
  x: number;
304
305
  y: number;
305
- elementWidth: number;
306
- elementHeight: number;
306
+ elementWidth?: number;
307
+ elementHeight?: number;
307
308
  }
308
309
  interface IPositionConfig extends IClickPosition {
309
- type: string;
310
+ offsetX?: number;
311
+ offsetY?: number;
310
312
  }
311
313
  interface IAddPresenceOfEventFilter {
312
314
  (name: EProcessFilterNames.presenceOfEvent, value: IProcessEventFilterValue, positionConfig?: IPositionConfig, previewParams?: IProcessFilterPreviewParams): void;
@@ -945,11 +947,14 @@ declare enum EViewMode {
945
947
  EMPTY = "EMPTY"
946
948
  }
947
949
  declare enum EViewOpenIn {
948
- NEW_WINDOW = "NEW_WINDOW",
949
- CURRENT_WINDOW = "CURRENT_WINDOW",
950
+ WINDOW = "WINDOW",
950
951
  PLACEHOLDER = "PLACEHOLDER",
951
952
  MODAL_WINDOW = "MODAL_WINDOW",
952
- DRAWER_WINDOW = "DRAWER_WINDOW"
953
+ DRAWER_WINDOW = "DRAWER_WINDOW",
954
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
955
+ NEW_WINDOW = "NEW_WINDOW",
956
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
957
+ CURRENT_WINDOW = "CURRENT_WINDOW"
953
958
  }
954
959
  declare enum EDrawerPlacement {
955
960
  LEFT = "LEFT",
@@ -1061,15 +1066,25 @@ interface IActionUpdateVariable extends IActionCommon {
1061
1066
  type TActionOpenIn = {
1062
1067
  openIn: EViewOpenIn.DRAWER_WINDOW;
1063
1068
  alignment: EDrawerPlacement;
1069
+ actinButtons: boolean;
1064
1070
  } | {
1065
1071
  openIn: EViewOpenIn.PLACEHOLDER;
1066
1072
  placeholderName: string;
1067
- } | {
1073
+ }
1074
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
1075
+ | {
1068
1076
  openIn: EViewOpenIn.NEW_WINDOW;
1069
1077
  } | {
1070
1078
  openIn: EViewOpenIn.MODAL_WINDOW;
1071
- } | {
1079
+ actinButtons: boolean;
1080
+ positionByClick?: boolean;
1081
+ }
1082
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
1083
+ | {
1072
1084
  openIn: EViewOpenIn.CURRENT_WINDOW;
1085
+ } | {
1086
+ openIn: EViewOpenIn.WINDOW;
1087
+ newWindow: boolean;
1073
1088
  };
1074
1089
  type TActionOpenView = IActionCommon & {
1075
1090
  type: EActionTypes.OPEN_VIEW;
@@ -1112,7 +1127,18 @@ interface IWidgetAction extends IActionCommon {
1112
1127
  borderColor?: TColor;
1113
1128
  color: TColor;
1114
1129
  }
1115
- type TAction = TActionsOnClick | IWidgetAction;
1130
+ type TViewActionParameter = (IParameterFromAggregation | IParameterFromVariable) & {
1131
+ name: string;
1132
+ };
1133
+ interface IViewAction {
1134
+ name: string;
1135
+ buttonType: EActionButtonsTypes;
1136
+ type: EActionTypes.EXECUTE_SCRIPT;
1137
+ parameters: TViewActionParameter[];
1138
+ scriptKey: string;
1139
+ id?: number;
1140
+ }
1141
+ type TAction = TActionsOnClick | IWidgetAction | IViewAction;
1116
1142
  type TActionValidator = (action: TAction) => boolean;
1117
1143
  declare enum EActionButtonsTypes {
1118
1144
  LINK = "link",
@@ -2423,6 +2449,7 @@ type TContextMenuButtonOptions = {
2423
2449
  type: "options";
2424
2450
  icon: string;
2425
2451
  items: TContextMenuRow[];
2452
+ showCaret?: boolean;
2426
2453
  };
2427
2454
 
2428
2455
  /** Контекст с данными образа (будет заполняться по мере необходимости) */
@@ -2658,4 +2685,4 @@ declare global {
2658
2685
  }
2659
2686
  }
2660
2687
 
2661
- 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, applyIndexToArrayFormula, 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 };
2688
+ 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 IViewAction, type IViewContext, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetColumnListVariable, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetDynamicListVariable, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetIndicator, type IWidgetIndicatorAddButtonProps, type IWidgetManifest, type IWidgetMeasure, type IWidgetMigrator, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetPresetSettings, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetStaticListVariable, type IWidgetStaticVariable, type IWidgetStruct, type IWidgetTable, type IWidgetTableColumn, OuterAggregation, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TBoundedContentWithIndicator, type TColor, type TColorBase, type TColorRule, type TColumnIndicatorValue, type TContextMenu, type TContextMenuButton, type TContextMenuButtonActions, type TContextMenuButtonApply, type TContextMenuButtonClose, type TContextMenuButtonCustom, type TContextMenuButtonGroup, type TContextMenuButtonOptions, type TContextMenuList, type TContextMenuPositionUnit, type TContextMenuRow, type TControlUnion, type TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TParameterFromDataModel, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TViewActionParameter, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorAggregationValue, type TWidgetIndicatorConversionValue, type TWidgetIndicatorDurationValue, type TWidgetIndicatorTimeValue, type TWidgetLevelRecord, type TWidgetMeasureData, type TWidgetSortingValue, type TWidgetVariable, applyIndexToArrayFormula, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, clearMultiLineComments, clearSingleLineComments, colors, conversionTemplate, convertFiltersToFormula, convertToFormulasChain, countExecutionsTemplate, 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
@@ -31,11 +31,16 @@ var EViewMode;
31
31
  })(EViewMode || (EViewMode = {}));
32
32
  var EViewOpenIn;
33
33
  (function (EViewOpenIn) {
34
- EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
35
- EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
34
+ EViewOpenIn["WINDOW"] = "WINDOW";
36
35
  EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
37
36
  EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
38
37
  EViewOpenIn["DRAWER_WINDOW"] = "DRAWER_WINDOW";
38
+ // TODO: удалить при выполении BI-14979
39
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
40
+ EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
41
+ // TODO: удалить при выполении BI-14979
42
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
43
+ EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
39
44
  })(EViewOpenIn || (EViewOpenIn = {}));
40
45
  var EDrawerPlacement;
41
46
  (function (EDrawerPlacement) {
@@ -413,6 +418,7 @@ var EFormattingPresets;
413
418
  EFormattingPresets["MMMM"] = "MMMM";
414
419
  //Группа шаблонов для формата NUMBER
415
420
  EFormattingPresets["k"] = "k";
421
+ EFormattingPresets["x"] = "x";
416
422
  EFormattingPresets["#,##x"] = "#,##x";
417
423
  EFormattingPresets["#,##x.x"] = "#,##x.x";
418
424
  EFormattingPresets["#,##x.xx"] = "#,##x.xx";
@@ -548,6 +554,7 @@ var formattingConfig = {
548
554
  ],
549
555
  _a[EFormatTypes.NUMBER] = [
550
556
  EFormattingPresets.AUTO,
557
+ EFormattingPresets["x"],
551
558
  EFormattingPresets["#,##x"],
552
559
  EFormattingPresets["#,##x.x"],
553
560
  EFormattingPresets["#,##x.xx"],
package/dist/index.js CHANGED
@@ -32,11 +32,16 @@ exports.EViewMode = void 0;
32
32
  })(exports.EViewMode || (exports.EViewMode = {}));
33
33
  exports.EViewOpenIn = void 0;
34
34
  (function (EViewOpenIn) {
35
- EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
36
- EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
35
+ EViewOpenIn["WINDOW"] = "WINDOW";
37
36
  EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
38
37
  EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
39
38
  EViewOpenIn["DRAWER_WINDOW"] = "DRAWER_WINDOW";
39
+ // TODO: удалить при выполении BI-14979
40
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
41
+ EViewOpenIn["NEW_WINDOW"] = "NEW_WINDOW";
42
+ // TODO: удалить при выполении BI-14979
43
+ /** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
44
+ EViewOpenIn["CURRENT_WINDOW"] = "CURRENT_WINDOW";
40
45
  })(exports.EViewOpenIn || (exports.EViewOpenIn = {}));
41
46
  exports.EDrawerPlacement = void 0;
42
47
  (function (EDrawerPlacement) {
@@ -414,6 +419,7 @@ exports.EFormattingPresets = void 0;
414
419
  EFormattingPresets["MMMM"] = "MMMM";
415
420
  //Группа шаблонов для формата NUMBER
416
421
  EFormattingPresets["k"] = "k";
422
+ EFormattingPresets["x"] = "x";
417
423
  EFormattingPresets["#,##x"] = "#,##x";
418
424
  EFormattingPresets["#,##x.x"] = "#,##x.x";
419
425
  EFormattingPresets["#,##x.xx"] = "#,##x.xx";
@@ -549,6 +555,7 @@ var formattingConfig = {
549
555
  ],
550
556
  _a[exports.EFormatTypes.NUMBER] = [
551
557
  exports.EFormattingPresets.AUTO,
558
+ exports.EFormattingPresets["x"],
552
559
  exports.EFormattingPresets["#,##x"],
553
560
  exports.EFormattingPresets["#,##x.x"],
554
561
  exports.EFormattingPresets["#,##x.xx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "5.19.0",
3
+ "version": "5.21.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",