@infomaximum/widget-sdk 5.29.0-0 → 5.29.0-1
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 +266 -361
- package/dist/index.d.ts +17 -10
- package/dist/index.esm.js +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1019,11 +1019,13 @@ interface IParameterFromManualInput {
|
|
|
1019
1019
|
dbDataType?: string;
|
|
1020
1020
|
filterByRows?: boolean;
|
|
1021
1021
|
validation?: string;
|
|
1022
|
+
acceptEmptyValue?: boolean;
|
|
1022
1023
|
}
|
|
1023
1024
|
interface IParameterFromStaticList {
|
|
1024
1025
|
inputMethod: EWidgetActionInputMethod.STATIC_LIST;
|
|
1025
1026
|
options: string;
|
|
1026
1027
|
defaultValue: string | string[];
|
|
1028
|
+
acceptEmptyValue?: boolean;
|
|
1027
1029
|
}
|
|
1028
1030
|
interface IParameterFromDynamicList {
|
|
1029
1031
|
inputMethod: EWidgetActionInputMethod.DYNAMIC_LIST;
|
|
@@ -1034,8 +1036,9 @@ interface IParameterFromDynamicList {
|
|
|
1034
1036
|
filters: TExtendedFormulaFilterValue[];
|
|
1035
1037
|
filterByRows?: boolean;
|
|
1036
1038
|
considerFilters: boolean;
|
|
1037
|
-
|
|
1039
|
+
insertAnyValues?: boolean;
|
|
1038
1040
|
validation?: string;
|
|
1041
|
+
acceptEmptyValue?: boolean;
|
|
1039
1042
|
}
|
|
1040
1043
|
interface IParameterFromDataModelBase {
|
|
1041
1044
|
inputMethod: EWidgetActionInputMethod.DATA_MODEL;
|
|
@@ -1073,11 +1076,11 @@ interface IActionRunScript extends IActionCommon {
|
|
|
1073
1076
|
scriptKey: string;
|
|
1074
1077
|
autoUpdate: EAutoUpdateMode;
|
|
1075
1078
|
hideInactiveButton?: boolean;
|
|
1076
|
-
|
|
1077
|
-
mode:
|
|
1079
|
+
activateCondition?: {
|
|
1080
|
+
mode: EActivateConditionMode.FORMULA;
|
|
1078
1081
|
formula: string;
|
|
1079
1082
|
} | {
|
|
1080
|
-
mode:
|
|
1083
|
+
mode: EActivateConditionMode.VARIABLE;
|
|
1081
1084
|
variableName: string;
|
|
1082
1085
|
variableValue: string;
|
|
1083
1086
|
};
|
|
@@ -1125,7 +1128,7 @@ type TActionOpenView = IActionCommon & {
|
|
|
1125
1128
|
openIn: EViewOpenIn.PLACEHOLDER;
|
|
1126
1129
|
}>));
|
|
1127
1130
|
type TActionsOnClick = IActionGoToUrl | IActionRunScript | IActionUpdateVariable | TActionOpenView;
|
|
1128
|
-
declare enum
|
|
1131
|
+
declare enum EActivateConditionMode {
|
|
1129
1132
|
FORMULA = "FORMULA",
|
|
1130
1133
|
VARIABLE = "VARIABLE"
|
|
1131
1134
|
}
|
|
@@ -1135,11 +1138,11 @@ interface IWidgetAction extends IActionCommon {
|
|
|
1135
1138
|
scriptKey: string;
|
|
1136
1139
|
autoUpdate: EAutoUpdateMode;
|
|
1137
1140
|
description: string;
|
|
1138
|
-
|
|
1139
|
-
mode:
|
|
1141
|
+
activateCondition: {
|
|
1142
|
+
mode: EActivateConditionMode.FORMULA;
|
|
1140
1143
|
formula: string;
|
|
1141
1144
|
} | {
|
|
1142
|
-
mode:
|
|
1145
|
+
mode: EActivateConditionMode.VARIABLE;
|
|
1143
1146
|
variableName: string;
|
|
1144
1147
|
variableValue: string;
|
|
1145
1148
|
};
|
|
@@ -2504,8 +2507,12 @@ interface IViewContext {
|
|
|
2504
2507
|
type TLaunchActionParams = {
|
|
2505
2508
|
/** Запускаемое действие */
|
|
2506
2509
|
action: TAction;
|
|
2510
|
+
/** Callback, вызываемый при успешном выполнении действия */
|
|
2511
|
+
onComplete?: () => void;
|
|
2512
|
+
/** Callback, вызываемый при ошибке запуска или выполнения действия */
|
|
2513
|
+
onError?: () => void;
|
|
2507
2514
|
/** Callback, вызываемый при успешном запуске действия */
|
|
2508
|
-
onSuccess
|
|
2515
|
+
onSuccess?: () => void;
|
|
2509
2516
|
/** Требуется ли подтверждение о запуске (откроется модальное окно) */
|
|
2510
2517
|
needConfirmation?: boolean;
|
|
2511
2518
|
/** Фильтрация для способов ввода COLUMN и FORMULA */
|
|
@@ -2729,4 +2736,4 @@ declare global {
|
|
|
2729
2736
|
}
|
|
2730
2737
|
}
|
|
2731
2738
|
|
|
2732
|
-
export { EActionButtonsTypes, EActionTypes,
|
|
2739
|
+
export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, 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 ICalculatorOptions, 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
|
@@ -58,11 +58,11 @@ var EDataModelOption;
|
|
|
58
58
|
EDataModelOption["TABLE_LIST"] = "TABLE_LIST";
|
|
59
59
|
EDataModelOption["COLUMN_LIST"] = "COLUMN_LIST";
|
|
60
60
|
})(EDataModelOption || (EDataModelOption = {}));
|
|
61
|
-
var
|
|
62
|
-
(function (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
})(
|
|
61
|
+
var EActivateConditionMode;
|
|
62
|
+
(function (EActivateConditionMode) {
|
|
63
|
+
EActivateConditionMode["FORMULA"] = "FORMULA";
|
|
64
|
+
EActivateConditionMode["VARIABLE"] = "VARIABLE";
|
|
65
|
+
})(EActivateConditionMode || (EActivateConditionMode = {}));
|
|
66
66
|
var EActionButtonsTypes;
|
|
67
67
|
(function (EActionButtonsTypes) {
|
|
68
68
|
EActionButtonsTypes["LINK"] = "link";
|
|
@@ -2025,4 +2025,4 @@ var getColorByIndex = function (index) {
|
|
|
2025
2025
|
return color;
|
|
2026
2026
|
};
|
|
2027
2027
|
|
|
2028
|
-
export { EActionButtonsTypes, EActionTypes,
|
|
2028
|
+
export { EActionButtonsTypes, EActionTypes, EActivateConditionMode, EAutoUpdateMode, 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, OuterAggregation, 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.js
CHANGED
|
@@ -59,11 +59,11 @@ exports.EDataModelOption = void 0;
|
|
|
59
59
|
EDataModelOption["TABLE_LIST"] = "TABLE_LIST";
|
|
60
60
|
EDataModelOption["COLUMN_LIST"] = "COLUMN_LIST";
|
|
61
61
|
})(exports.EDataModelOption || (exports.EDataModelOption = {}));
|
|
62
|
-
exports.
|
|
63
|
-
(function (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})(exports.
|
|
62
|
+
exports.EActivateConditionMode = void 0;
|
|
63
|
+
(function (EActivateConditionMode) {
|
|
64
|
+
EActivateConditionMode["FORMULA"] = "FORMULA";
|
|
65
|
+
EActivateConditionMode["VARIABLE"] = "VARIABLE";
|
|
66
|
+
})(exports.EActivateConditionMode || (exports.EActivateConditionMode = {}));
|
|
67
67
|
exports.EActionButtonsTypes = void 0;
|
|
68
68
|
(function (EActionButtonsTypes) {
|
|
69
69
|
EActionButtonsTypes["LINK"] = "link";
|