@infomaximum/widget-sdk 4.0.0-beta2 → 4.0.0-beta4
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 +24 -12
- package/dist/index.esm.js +17 -2
- package/dist/index.js +17 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ declare enum EControlType {
|
|
|
33
33
|
displayCondition = "displayCondition",
|
|
34
34
|
eventsColor = "eventsColor",
|
|
35
35
|
inputMarkdown = "inputMarkdown",
|
|
36
|
-
filter = "filter"
|
|
36
|
+
filter = "filter",
|
|
37
|
+
actionOnClick = "actionOnClick"
|
|
37
38
|
}
|
|
38
39
|
/** Конфигурация элемента управления настройкой */
|
|
39
40
|
interface IControlRecord<Settings extends object, Value, ControlType = EControlType> {
|
|
@@ -63,6 +64,12 @@ interface ICalculator<Input, Output> {
|
|
|
63
64
|
}
|
|
64
65
|
interface ICalculatorIndicatorInput {
|
|
65
66
|
alias: string;
|
|
67
|
+
/**
|
|
68
|
+
* Информация о типе данных:
|
|
69
|
+
* - Если тип не передан, не производится дополнительной обработки формулы.
|
|
70
|
+
* - Если передан тип "OTHER", формула дополнительно будет обернута в toString().
|
|
71
|
+
*/
|
|
72
|
+
dataType?: ESimpleDataType;
|
|
66
73
|
displayConditionFormula?: TNullable<string>;
|
|
67
74
|
}
|
|
68
75
|
interface ICalculatorIndicatorOutput {
|
|
@@ -1116,6 +1123,8 @@ declare function bindContentWithIndicator<Output extends ICalculatorIndicatorOut
|
|
|
1116
1123
|
*/
|
|
1117
1124
|
declare function bindContentsWithIndicators<Output extends ICalculatorIndicatorOutput, Indicator extends IWidgetIndicator>(outputs: Map<string, Output>, indicators: Indicator[]): TBoundedContentWithIndicator<Output, Indicator>[];
|
|
1118
1125
|
|
|
1126
|
+
declare const escapeSpecialCharacters: (formula: string) => string;
|
|
1127
|
+
|
|
1119
1128
|
interface ICalculatorFactory {
|
|
1120
1129
|
general: () => IGeneralCalculator;
|
|
1121
1130
|
pie: () => IPieCalculator;
|
|
@@ -1136,6 +1145,16 @@ interface IDefinition<WidgetSettings extends IBaseWidgetSettings, GroupSettings
|
|
|
1136
1145
|
getMeasures?(settings: WidgetSettings): IWidgetMeasure[];
|
|
1137
1146
|
}
|
|
1138
1147
|
|
|
1148
|
+
type TLaunchActionParams = {
|
|
1149
|
+
action: IWidgetAction;
|
|
1150
|
+
onSuccess: () => void;
|
|
1151
|
+
filters: ICalculatorFilter[];
|
|
1152
|
+
needConfirmation?: boolean;
|
|
1153
|
+
};
|
|
1154
|
+
type TWidgetContainer = {
|
|
1155
|
+
/** Имеет ли контейнер виджета ограниченную максимальную высоту */
|
|
1156
|
+
isMaxHeightLimited: boolean;
|
|
1157
|
+
};
|
|
1139
1158
|
interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetSettings> {
|
|
1140
1159
|
/** guid виджета */
|
|
1141
1160
|
guid: string;
|
|
@@ -1158,17 +1177,10 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
1158
1177
|
placeholder: IWidgetPlaceholderController;
|
|
1159
1178
|
/** Контекст виджетов */
|
|
1160
1179
|
widgetsContext: IWidgetsContext;
|
|
1161
|
-
/** Вызывает модальное окно для запуска действия */
|
|
1162
|
-
launchAction(params: {
|
|
1163
|
-
action: IWidgetAction;
|
|
1164
|
-
onSuccess: () => void;
|
|
1165
|
-
filters: ICalculatorFilter[];
|
|
1166
|
-
}): void;
|
|
1167
1180
|
/** Данные о контейнере виджета */
|
|
1168
|
-
widgetContainer:
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
};
|
|
1181
|
+
widgetContainer: TWidgetContainer;
|
|
1182
|
+
/** Запуск действия */
|
|
1183
|
+
launchAction(params: TLaunchActionParams): void;
|
|
1172
1184
|
}
|
|
1173
1185
|
interface ICustomWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetSettings> extends IWidgetProps<WidgetSettings> {
|
|
1174
1186
|
/** @deprecated - нужно использовать из widgetsContext */
|
|
@@ -1340,4 +1352,4 @@ declare global {
|
|
|
1340
1352
|
}
|
|
1341
1353
|
}
|
|
1342
1354
|
|
|
1343
|
-
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionScript, 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 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 ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IWidget, type IWidgetAction, type IWidgetActionInput, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, 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 TBoundedContentWithIndicator, type TColor, type TColumnIndicatorValue, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TGroupLevelRecord, type TProcessIndicatorValue, type TRecordAccessor, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionInputValue, type TWidgetFiltering, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetSortingValueRelatedWidgetDimension, type TWidgetSortingValueRelatedWidgetIndicator, type TWidgetSortingValueRelatedWidgetMeasure, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, 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 };
|
|
1355
|
+
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionScript, 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 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 ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IWidget, type IWidgetAction, type IWidgetActionInput, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, 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 TBoundedContentWithIndicator, type TColor, type TColumnIndicatorValue, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TGroupLevelRecord, type TLaunchActionParams, type TProcessIndicatorValue, type TRecordAccessor, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionInputValue, type TWidgetContainer, 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
|
@@ -513,8 +513,18 @@ var replaceDisplayCondition = function (dimension, displayCondition) {
|
|
|
513
513
|
: __assign(__assign({}, dimension), { displayCondition: displayCondition });
|
|
514
514
|
};
|
|
515
515
|
|
|
516
|
+
var escapeSpecialCharacters = function (formula) {
|
|
517
|
+
return formula
|
|
518
|
+
.replaceAll("\\", "\\\\")
|
|
519
|
+
.replaceAll('"', '\\"')
|
|
520
|
+
.replaceAll("`", "\\`")
|
|
521
|
+
.replaceAll("-", "\\-");
|
|
522
|
+
};
|
|
523
|
+
|
|
516
524
|
function generateColumnFormula(tableName, columnName) {
|
|
517
|
-
|
|
525
|
+
var preparedTableName = escapeSpecialCharacters(tableName);
|
|
526
|
+
var preparedColumnName = escapeSpecialCharacters(columnName);
|
|
527
|
+
return "\"".concat(preparedTableName, "\".\"").concat(preparedColumnName, "\"");
|
|
518
528
|
}
|
|
519
529
|
function fillTemplateString(templateString, params) {
|
|
520
530
|
return templateString.replace(/\{(.*?)\}/g, function (_, key) { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ""; });
|
|
@@ -738,6 +748,7 @@ function mapMeasureToInput(measure, variables, addFormulas) {
|
|
|
738
748
|
return {
|
|
739
749
|
alias: String(measure.id),
|
|
740
750
|
mainFormula: mainFormula,
|
|
751
|
+
dataType: measure.dataType,
|
|
741
752
|
displayConditionFormula: getDisplayConditionFormula(measure.displayCondition),
|
|
742
753
|
additionalFormulas: addFormulas(measure),
|
|
743
754
|
};
|
|
@@ -760,6 +771,7 @@ function mapDimensionToInput(dimension, variables) {
|
|
|
760
771
|
return {
|
|
761
772
|
alias: String(dimension.id),
|
|
762
773
|
formula: formula,
|
|
774
|
+
dataType: dimension.dataType,
|
|
763
775
|
hideEmpty: dimension.hideEmptyValues,
|
|
764
776
|
displayConditionFormula: getDisplayConditionFormula(dimension.displayCondition),
|
|
765
777
|
};
|
|
@@ -783,6 +795,7 @@ function mapTransitionMeasureToInput(indicator, process, variables, addFormulas)
|
|
|
783
795
|
return {
|
|
784
796
|
alias: String(indicator.id),
|
|
785
797
|
mainFormula: mainFormula,
|
|
798
|
+
dataType: indicator.dataType,
|
|
786
799
|
displayConditionFormula: getDisplayConditionFormula(indicator.displayCondition),
|
|
787
800
|
additionalFormulas: addFormulas(indicator),
|
|
788
801
|
};
|
|
@@ -806,6 +819,7 @@ function mapEventMeasureToInput(indicator, process, variables, addFormulas) {
|
|
|
806
819
|
return {
|
|
807
820
|
alias: String(indicator.id),
|
|
808
821
|
mainFormula: mainFormula,
|
|
822
|
+
dataType: indicator.dataType,
|
|
809
823
|
displayConditionFormula: getDisplayConditionFormula(indicator.displayCondition),
|
|
810
824
|
additionalFormulas: addFormulas(indicator),
|
|
811
825
|
};
|
|
@@ -926,6 +940,7 @@ var EControlType;
|
|
|
926
940
|
EControlType["eventsColor"] = "eventsColor";
|
|
927
941
|
EControlType["inputMarkdown"] = "inputMarkdown";
|
|
928
942
|
EControlType["filter"] = "filter";
|
|
943
|
+
EControlType["actionOnClick"] = "actionOnClick";
|
|
929
944
|
})(EControlType || (EControlType = {}));
|
|
930
945
|
|
|
931
946
|
var ESortDirection;
|
|
@@ -1030,4 +1045,4 @@ var getLocalizedText = function (language, locObj, props) {
|
|
|
1030
1045
|
return localization.getLocalized(locObj, props);
|
|
1031
1046
|
};
|
|
1032
1047
|
|
|
1033
|
-
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, 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 };
|
|
1048
|
+
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, 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
|
@@ -514,8 +514,18 @@ var replaceDisplayCondition = function (dimension, displayCondition) {
|
|
|
514
514
|
: __assign(__assign({}, dimension), { displayCondition: displayCondition });
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
+
var escapeSpecialCharacters = function (formula) {
|
|
518
|
+
return formula
|
|
519
|
+
.replaceAll("\\", "\\\\")
|
|
520
|
+
.replaceAll('"', '\\"')
|
|
521
|
+
.replaceAll("`", "\\`")
|
|
522
|
+
.replaceAll("-", "\\-");
|
|
523
|
+
};
|
|
524
|
+
|
|
517
525
|
function generateColumnFormula(tableName, columnName) {
|
|
518
|
-
|
|
526
|
+
var preparedTableName = escapeSpecialCharacters(tableName);
|
|
527
|
+
var preparedColumnName = escapeSpecialCharacters(columnName);
|
|
528
|
+
return "\"".concat(preparedTableName, "\".\"").concat(preparedColumnName, "\"");
|
|
519
529
|
}
|
|
520
530
|
function fillTemplateString(templateString, params) {
|
|
521
531
|
return templateString.replace(/\{(.*?)\}/g, function (_, key) { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ""; });
|
|
@@ -739,6 +749,7 @@ function mapMeasureToInput(measure, variables, addFormulas) {
|
|
|
739
749
|
return {
|
|
740
750
|
alias: String(measure.id),
|
|
741
751
|
mainFormula: mainFormula,
|
|
752
|
+
dataType: measure.dataType,
|
|
742
753
|
displayConditionFormula: getDisplayConditionFormula(measure.displayCondition),
|
|
743
754
|
additionalFormulas: addFormulas(measure),
|
|
744
755
|
};
|
|
@@ -761,6 +772,7 @@ function mapDimensionToInput(dimension, variables) {
|
|
|
761
772
|
return {
|
|
762
773
|
alias: String(dimension.id),
|
|
763
774
|
formula: formula,
|
|
775
|
+
dataType: dimension.dataType,
|
|
764
776
|
hideEmpty: dimension.hideEmptyValues,
|
|
765
777
|
displayConditionFormula: getDisplayConditionFormula(dimension.displayCondition),
|
|
766
778
|
};
|
|
@@ -784,6 +796,7 @@ function mapTransitionMeasureToInput(indicator, process, variables, addFormulas)
|
|
|
784
796
|
return {
|
|
785
797
|
alias: String(indicator.id),
|
|
786
798
|
mainFormula: mainFormula,
|
|
799
|
+
dataType: indicator.dataType,
|
|
787
800
|
displayConditionFormula: getDisplayConditionFormula(indicator.displayCondition),
|
|
788
801
|
additionalFormulas: addFormulas(indicator),
|
|
789
802
|
};
|
|
@@ -807,6 +820,7 @@ function mapEventMeasureToInput(indicator, process, variables, addFormulas) {
|
|
|
807
820
|
return {
|
|
808
821
|
alias: String(indicator.id),
|
|
809
822
|
mainFormula: mainFormula,
|
|
823
|
+
dataType: indicator.dataType,
|
|
810
824
|
displayConditionFormula: getDisplayConditionFormula(indicator.displayCondition),
|
|
811
825
|
additionalFormulas: addFormulas(indicator),
|
|
812
826
|
};
|
|
@@ -927,6 +941,7 @@ exports.EControlType = void 0;
|
|
|
927
941
|
EControlType["eventsColor"] = "eventsColor";
|
|
928
942
|
EControlType["inputMarkdown"] = "inputMarkdown";
|
|
929
943
|
EControlType["filter"] = "filter";
|
|
944
|
+
EControlType["actionOnClick"] = "actionOnClick";
|
|
930
945
|
})(exports.EControlType || (exports.EControlType = {}));
|
|
931
946
|
|
|
932
947
|
exports.ESortDirection = void 0;
|
|
@@ -1043,6 +1058,7 @@ exports.bindContentWithIndicator = bindContentWithIndicator;
|
|
|
1043
1058
|
exports.bindContentsWithIndicators = bindContentsWithIndicators;
|
|
1044
1059
|
exports.checkDisplayCondition = checkDisplayCondition;
|
|
1045
1060
|
exports.dimensionTemplateFormulas = dimensionTemplateFormulas;
|
|
1061
|
+
exports.escapeSpecialCharacters = escapeSpecialCharacters;
|
|
1046
1062
|
exports.eventMeasureTemplateFormulas = eventMeasureTemplateFormulas;
|
|
1047
1063
|
exports.fillTemplateString = fillTemplateString;
|
|
1048
1064
|
exports.formulaFilterMethods = formulaFilterMethods;
|