@infomaximum/widget-sdk 4.0.0-beta12 → 4.0.0-beta13

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
@@ -79,9 +79,6 @@ interface ICalculatorIndicatorOutput {
79
79
  interface ICalculatorDimensionInput extends ICalculatorIndicatorInput {
80
80
  formula: string;
81
81
  hideEmpty?: boolean;
82
- /** Временно поддерживается обратная совместимость с форматом { alias: string; formula: string }[] */
83
- /** Появилась необходимость в ленточном графике, т.к. разрез длительность используется, как мера */
84
- additionalFormulas?: Map<string, string>;
85
82
  }
86
83
  interface ICalculatorDimensionOutput extends ICalculatorIndicatorOutput {
87
84
  }
@@ -421,37 +418,10 @@ type TWidgetFiltering = {
421
418
  mode: EWidgetFilterMode;
422
419
  };
423
420
  declare enum EColorMode {
424
- DISABLED = "DISABLED",
425
421
  FORMULA = "FORMULA",
426
422
  BASE = "BASE",
427
423
  GRADIENT = "GRADIENT",
428
- AUTO = "AUTO",
429
- RULE = "RULE",
430
- VALUES = "VALUES",
431
- BY_DIMENSION = "BY_DIMENSION"
432
- }
433
- type TColorBase = {
434
- mode: EColorMode.BASE;
435
- value?: string;
436
- defaultColor?: string;
437
- };
438
- declare enum EColorScope {
439
- WORKSPACE = "WORKSPACE",
440
- DASHBOARD = "DASHBOARD"
441
- }
442
- type TColorRuleCommon = {
443
- mode: EColorMode.RULE;
444
- ruleName: string;
445
- };
446
- type TColorRule = ({
447
- scope: EColorScope.DASHBOARD | null;
448
- } | {
449
- scope: EColorScope.WORKSPACE;
450
- workspaceGroupId: number | null;
451
- }) & TColorRuleCommon;
452
- interface IColoredValue {
453
- value: string;
454
- color: TColorBase | TColorRule;
424
+ AUTO = "AUTO"
455
425
  }
456
426
  declare enum EMarkdownDisplayMode {
457
427
  NONE = "NONE",
@@ -461,22 +431,16 @@ declare enum EMarkdownDisplayMode {
461
431
  type TColor = {
462
432
  mode: EColorMode.FORMULA;
463
433
  formula: string;
464
- } | TColorBase | {
434
+ } | {
435
+ mode: EColorMode.BASE;
436
+ value?: string;
437
+ defaultColor?: string;
438
+ } | {
465
439
  mode: EColorMode.GRADIENT;
466
440
  startValue: string;
467
441
  endValue: string;
468
442
  } | {
469
443
  mode: EColorMode.AUTO;
470
- } | TColorRule | {
471
- mode: EColorMode.VALUES;
472
- dimensionFormula: string;
473
- items: IColoredValue[];
474
- } | {
475
- mode: EColorMode.BY_DIMENSION;
476
- dimensionName: string;
477
- items: IColoredValue[];
478
- } | {
479
- mode: EColorMode.DISABLED;
480
444
  };
481
445
  declare enum EDisplayConditionMode {
482
446
  DISABLED = "DISABLED",
@@ -745,9 +709,6 @@ interface IWidgetTable {
745
709
  * full - полный
746
710
  */
747
711
  type TDisplayMode = "preview" | "full";
748
- interface IDisplayRule {
749
- color: TColor;
750
- }
751
712
  interface IWidgetsContext {
752
713
  /** используемый язык в системе */
753
714
  language: ELanguages;
@@ -770,8 +731,6 @@ interface IWidgetsContext {
770
731
  userLogin: string;
771
732
  scripts: Map<string, IActionScript>;
772
733
  tables: Set<string>;
773
- reportDisplayRules: Map<string, IDisplayRule>;
774
- workspaceDisplayRules: Map<number, Map<string, IDisplayRule>>;
775
734
  }
776
735
 
777
736
  declare enum EWidgetActionInputMode {
@@ -1213,7 +1172,7 @@ declare const replaceDisplayCondition: <I extends IWidgetColumnIndicator>(dimens
1213
1172
  declare function mapMeasuresToInputs<T extends IWidgetMeasure>(measures: T[], variables: Map<string, TWidgetVariable>, addFormulas?: (measure: T) => Map<string, string>): ICalculatorMeasureInput[];
1214
1173
 
1215
1174
  /** Конвертировать разрезы виджета во входы для вычислителя */
1216
- declare function mapDimensionsToInputs<T extends IWidgetDimension>(dimensions: T[], variables: Map<string, TWidgetVariable>, addFormulas?: (dimension: T) => Map<string, string>): ICalculatorDimensionInput[];
1175
+ declare function mapDimensionsToInputs(dimensions: IWidgetDimension[], variables: Map<string, TWidgetVariable>): ICalculatorDimensionInput[];
1217
1176
 
1218
1177
  /** Конвертировать процессные показатели виджета во входы для вычислителя */
1219
1178
  declare function mapTransitionMeasuresToInputs<T extends IProcessIndicator>(indicators: T[], process: IWidgetProcess, variables: Map<string, TWidgetVariable>, addFormulas?: (indicator: T) => Map<string, string>): ICalculatorMeasureInput[];
@@ -1481,4 +1440,4 @@ declare global {
1481
1440
  }
1482
1441
  }
1483
1442
 
1484
- export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionCommon, type IActionGoToUrl, type IActionOpenView, type IActionRunScript, type IActionScript, type IActionScriptField, type IActionUpdateVariable, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, 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 ICalculatorVariable, type ICalculatorVariablesValues, type IColoredValue, type ICommonColumnIndicator, 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 IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type ILens, type IMarkdownMeasure, 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 ISelectOption, type ISortOrder, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IWidget, type IWidgetActionInput, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetFormulaFilterValue, type IWidgetIndicator, type IWidgetMeasure, type IWidgetPlaceholderController, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetTable, type IWidgetTableColumn, type IWidgetsContext, type TActionsOnClick, type TBoundedContentWithIndicator, type TColor, type TColorRule, type TColumnIndicatorValue, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TGroupLevelRecord, type TLaunchActionParams, type TProcessIndicatorValue, type TRecordAccessor, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionInputValue, type TWidgetContainer, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetSortingValueRelatedWidgetDimension, type TWidgetSortingValueRelatedWidgetIndicator, type TWidgetSortingValueRelatedWidgetMeasure, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, mapVariablesToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
1443
+ export { EActionTypes, ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionCommon, type IActionGoToUrl, type IActionOpenView, type IActionRunScript, type IActionScript, type IActionScriptField, type IActionUpdateVariable, type IAddDurationOfTransitionFilter, type IAddPresenceOfEventFilter, type IAddPresenceOfTransitionFilter, type IAddRepetitionOfEventFilter, 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 ICalculatorVariable, type ICalculatorVariablesValues, type ICommonColumnIndicator, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, type IDivePanelDescription, type IDividerRecord, type IEdge, type IExportColumnOrder, type IFillSettings, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type ILens, type IMarkdownMeasure, 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 ISelectOption, type ISortOrder, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IWidget, type IWidgetActionInput, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetFormulaFilterValue, type IWidgetIndicator, type IWidgetMeasure, type IWidgetPlaceholderController, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetTable, type IWidgetTableColumn, type IWidgetsContext, type TActionsOnClick, type TBoundedContentWithIndicator, type TColor, type TColumnIndicatorValue, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TGroupLevelRecord, type TLaunchActionParams, type TProcessIndicatorValue, type TRecordAccessor, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionInputValue, type TWidgetContainer, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetSortingValueRelatedWidgetDimension, type TWidgetSortingValueRelatedWidgetIndicator, type TWidgetSortingValueRelatedWidgetMeasure, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, mapVariablesToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
package/dist/index.esm.js CHANGED
@@ -502,20 +502,11 @@ var EWidgetFilterMode;
502
502
  })(EWidgetFilterMode || (EWidgetFilterMode = {}));
503
503
  var EColorMode;
504
504
  (function (EColorMode) {
505
- EColorMode["DISABLED"] = "DISABLED";
506
505
  EColorMode["FORMULA"] = "FORMULA";
507
506
  EColorMode["BASE"] = "BASE";
508
507
  EColorMode["GRADIENT"] = "GRADIENT";
509
508
  EColorMode["AUTO"] = "AUTO";
510
- EColorMode["RULE"] = "RULE";
511
- EColorMode["VALUES"] = "VALUES";
512
- EColorMode["BY_DIMENSION"] = "BY_DIMENSION";
513
509
  })(EColorMode || (EColorMode = {}));
514
- var EColorScope;
515
- (function (EColorScope) {
516
- EColorScope["WORKSPACE"] = "WORKSPACE";
517
- EColorScope["DASHBOARD"] = "DASHBOARD";
518
- })(EColorScope || (EColorScope = {}));
519
510
  var EMarkdownDisplayMode;
520
511
  (function (EMarkdownDisplayMode) {
521
512
  EMarkdownDisplayMode["NONE"] = "NONE";
@@ -796,8 +787,7 @@ function mapMeasuresToInputs(measures, variables, addFormulas) {
796
787
  return compactMap(measures, function (measure) { return mapMeasureToInput(measure, variables, addFormulas); });
797
788
  }
798
789
 
799
- function mapDimensionToInput(dimension, variables, addFormulas) {
800
- if (addFormulas === void 0) { addFormulas = function () { return new Map(); }; }
790
+ function mapDimensionToInput(dimension, variables) {
801
791
  var formula = getDimensionFormula(dimension);
802
792
  if (!formula) {
803
793
  return null;
@@ -811,14 +801,11 @@ function mapDimensionToInput(dimension, variables, addFormulas) {
811
801
  dataType: dimension.dataType,
812
802
  hideEmpty: dimension.hideEmptyValues,
813
803
  displayConditionFormula: getDisplayConditionFormula(dimension.displayCondition),
814
- additionalFormulas: addFormulas(dimension),
815
804
  };
816
805
  }
817
806
  /** Конвертировать разрезы виджета во входы для вычислителя */
818
- function mapDimensionsToInputs(dimensions, variables, addFormulas) {
819
- return compactMap(dimensions, function (dimension) {
820
- return mapDimensionToInput(dimension, variables, addFormulas);
821
- });
807
+ function mapDimensionsToInputs(dimensions, variables) {
808
+ return compactMap(dimensions, function (dimension) { return mapDimensionToInput(dimension, variables); });
822
809
  }
823
810
 
824
811
  function mapTransitionMeasureToInput(indicator, process, variables, addFormulas) {
@@ -1093,4 +1080,4 @@ var getLocalizedText = function (language, locObj, props) {
1093
1080
  return localization.getLocalized(locObj, props);
1094
1081
  };
1095
1082
 
1096
- export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, mapVariablesToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
1083
+ export { EActionTypes, ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, mapVariablesToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
package/dist/index.js CHANGED
@@ -503,20 +503,11 @@ exports.EWidgetFilterMode = void 0;
503
503
  })(exports.EWidgetFilterMode || (exports.EWidgetFilterMode = {}));
504
504
  exports.EColorMode = void 0;
505
505
  (function (EColorMode) {
506
- EColorMode["DISABLED"] = "DISABLED";
507
506
  EColorMode["FORMULA"] = "FORMULA";
508
507
  EColorMode["BASE"] = "BASE";
509
508
  EColorMode["GRADIENT"] = "GRADIENT";
510
509
  EColorMode["AUTO"] = "AUTO";
511
- EColorMode["RULE"] = "RULE";
512
- EColorMode["VALUES"] = "VALUES";
513
- EColorMode["BY_DIMENSION"] = "BY_DIMENSION";
514
510
  })(exports.EColorMode || (exports.EColorMode = {}));
515
- exports.EColorScope = void 0;
516
- (function (EColorScope) {
517
- EColorScope["WORKSPACE"] = "WORKSPACE";
518
- EColorScope["DASHBOARD"] = "DASHBOARD";
519
- })(exports.EColorScope || (exports.EColorScope = {}));
520
511
  exports.EMarkdownDisplayMode = void 0;
521
512
  (function (EMarkdownDisplayMode) {
522
513
  EMarkdownDisplayMode["NONE"] = "NONE";
@@ -797,8 +788,7 @@ function mapMeasuresToInputs(measures, variables, addFormulas) {
797
788
  return compactMap(measures, function (measure) { return mapMeasureToInput(measure, variables, addFormulas); });
798
789
  }
799
790
 
800
- function mapDimensionToInput(dimension, variables, addFormulas) {
801
- if (addFormulas === void 0) { addFormulas = function () { return new Map(); }; }
791
+ function mapDimensionToInput(dimension, variables) {
802
792
  var formula = getDimensionFormula(dimension);
803
793
  if (!formula) {
804
794
  return null;
@@ -812,14 +802,11 @@ function mapDimensionToInput(dimension, variables, addFormulas) {
812
802
  dataType: dimension.dataType,
813
803
  hideEmpty: dimension.hideEmptyValues,
814
804
  displayConditionFormula: getDisplayConditionFormula(dimension.displayCondition),
815
- additionalFormulas: addFormulas(dimension),
816
805
  };
817
806
  }
818
807
  /** Конвертировать разрезы виджета во входы для вычислителя */
819
- function mapDimensionsToInputs(dimensions, variables, addFormulas) {
820
- return compactMap(dimensions, function (dimension) {
821
- return mapDimensionToInput(dimension, variables, addFormulas);
822
- });
808
+ function mapDimensionsToInputs(dimensions, variables) {
809
+ return compactMap(dimensions, function (dimension) { return mapDimensionToInput(dimension, variables); });
823
810
  }
824
811
 
825
812
  function mapTransitionMeasureToInput(indicator, process, variables, addFormulas) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "4.0.0-beta12",
3
+ "version": "4.0.0-beta13",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",