@infomaximum/widget-sdk 5.29.0-1 → 5.29.0-2506.3
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 +370 -264
- package/dist/index.d.ts +27 -35
- package/dist/index.esm.js +13 -13
- package/dist/index.js +12 -12
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ declare const formulaFilterMethods: {
|
|
|
248
248
|
readonly LAST_TIME: "LAST_TIME";
|
|
249
249
|
readonly EQUAL_TO: ECalculatorFilterMethods.EQUAL_TO;
|
|
250
250
|
readonly NOT_EQUAL_TO: ECalculatorFilterMethods.NOT_EQUAL_TO;
|
|
251
|
-
readonly GREATER_THAN: ECalculatorFilterMethods.GREATER_THAN;
|
|
251
|
+
readonly GREATER_THAN: ECalculatorFilterMethods.GREATER_THAN; /** Фильтры событий */
|
|
252
252
|
readonly LESS_THAN: ECalculatorFilterMethods.LESS_THAN;
|
|
253
253
|
readonly GREATER_THAN_OR_EQUAL_TO: ECalculatorFilterMethods.GREATER_THAN_OR_EQUAL_TO;
|
|
254
254
|
readonly LESS_THAN_OR_EQUAL_TO: ECalculatorFilterMethods.LESS_THAN_OR_EQUAL_TO;
|
|
@@ -282,30 +282,22 @@ interface IProcessFilterValue {
|
|
|
282
282
|
* но не учитываются при применении фильтра.
|
|
283
283
|
*/
|
|
284
284
|
interface IProcessFilterPreviewParams {
|
|
285
|
-
/** @deprecated необходимо использовать eventsNamesByProcessKey */
|
|
286
|
-
eventsNamesByProcessName?: Map<string, (string | null)[]>;
|
|
287
285
|
/**
|
|
288
286
|
* События, доступные при выборе процесса.
|
|
289
287
|
* Если параметр не передан, используются все события процесса на основе запроса к вычислителю.
|
|
290
288
|
*/
|
|
291
|
-
|
|
289
|
+
eventsNamesByProcessName?: Map<string, (string | null)[]>;
|
|
292
290
|
/** Фильтры событий */
|
|
293
291
|
eventFilters?: TExtendedFormulaFilterValue[];
|
|
294
292
|
}
|
|
295
293
|
interface IProcessEventFilterValue extends IProcessFilterValue {
|
|
296
|
-
|
|
297
|
-
processName?: string;
|
|
298
|
-
processKey: string;
|
|
294
|
+
processName: string;
|
|
299
295
|
eventName: string;
|
|
300
296
|
}
|
|
301
297
|
interface IProcessTransitionFilterValue extends IProcessFilterValue {
|
|
302
|
-
|
|
303
|
-
startEventProcessName?: string;
|
|
304
|
-
startEventProcessKey: string;
|
|
298
|
+
startEventProcessName: string;
|
|
305
299
|
startEventName: string;
|
|
306
|
-
|
|
307
|
-
endEventProcessName?: string;
|
|
308
|
-
endEventProcessKey: string;
|
|
300
|
+
endEventProcessName: string;
|
|
309
301
|
endEventName: string;
|
|
310
302
|
}
|
|
311
303
|
interface IClickPosition {
|
|
@@ -734,7 +726,7 @@ declare enum EDurationTemplateName {
|
|
|
734
726
|
type TWidgetIndicatorAggregationValue = {
|
|
735
727
|
mode: EWidgetIndicatorValueModes.AGGREGATION;
|
|
736
728
|
templateName: string;
|
|
737
|
-
|
|
729
|
+
processName: string | null;
|
|
738
730
|
eventName: string | null;
|
|
739
731
|
caseCaseIdFormula: string | null;
|
|
740
732
|
eventNameFormula: string | null;
|
|
@@ -750,12 +742,12 @@ declare enum EEventAppearances {
|
|
|
750
742
|
type TWidgetIndicatorConversionValue = {
|
|
751
743
|
mode: EWidgetIndicatorValueModes.CONVERSION;
|
|
752
744
|
startEventNameFormula: string | null;
|
|
753
|
-
|
|
745
|
+
startEventProcessName: string | null;
|
|
754
746
|
startEventName: string | null;
|
|
755
747
|
startEventFilters: TExtendedFormulaFilterValue[];
|
|
756
748
|
startEventTimeFormula: string | null;
|
|
757
749
|
endEventNameFormula: string | null;
|
|
758
|
-
|
|
750
|
+
endEventProcessName: string | null;
|
|
759
751
|
endEventName: string | null;
|
|
760
752
|
endEventFilters: TExtendedFormulaFilterValue[];
|
|
761
753
|
endCaseCaseIdFormula: string | null;
|
|
@@ -770,7 +762,7 @@ type TWidgetIndicatorDurationValue = {
|
|
|
770
762
|
type TWidgetIndicatorTimeValue = {
|
|
771
763
|
templateName: string;
|
|
772
764
|
mode: EWidgetIndicatorValueModes.START_TIME | EWidgetIndicatorValueModes.END_TIME;
|
|
773
|
-
|
|
765
|
+
processName: string;
|
|
774
766
|
eventName: string;
|
|
775
767
|
eventTimeFormula: string;
|
|
776
768
|
caseCaseIdFormula: string;
|
|
@@ -836,10 +828,8 @@ interface IGlobalContext {
|
|
|
836
828
|
unsetVariableValue(name: string): TWidgetVariable["value"];
|
|
837
829
|
/** Состояния(название сущности) отчета */
|
|
838
830
|
states: Map<string, ICommonState>;
|
|
839
|
-
/**
|
|
831
|
+
/** Процессы из модели данных */
|
|
840
832
|
processes: Map<string, IWidgetProcess>;
|
|
841
|
-
/** Процессы из модели данных (по ключу) */
|
|
842
|
-
processByKey: Map<string, IWidgetProcess>;
|
|
843
833
|
/** Имена таблиц из модели данных */
|
|
844
834
|
tables: Set<string>;
|
|
845
835
|
/** Функция для запроса информации о колонках таблицы из модели данных */
|
|
@@ -1036,7 +1026,7 @@ interface IParameterFromDynamicList {
|
|
|
1036
1026
|
filters: TExtendedFormulaFilterValue[];
|
|
1037
1027
|
filterByRows?: boolean;
|
|
1038
1028
|
considerFilters: boolean;
|
|
1039
|
-
|
|
1029
|
+
enableCustomValue?: boolean;
|
|
1040
1030
|
validation?: string;
|
|
1041
1031
|
acceptEmptyValue?: boolean;
|
|
1042
1032
|
}
|
|
@@ -1076,11 +1066,11 @@ interface IActionRunScript extends IActionCommon {
|
|
|
1076
1066
|
scriptKey: string;
|
|
1077
1067
|
autoUpdate: EAutoUpdateMode;
|
|
1078
1068
|
hideInactiveButton?: boolean;
|
|
1079
|
-
|
|
1080
|
-
mode:
|
|
1069
|
+
blockingCondition?: {
|
|
1070
|
+
mode: EBlockingConditionMode.FORMULA;
|
|
1081
1071
|
formula: string;
|
|
1082
1072
|
} | {
|
|
1083
|
-
mode:
|
|
1073
|
+
mode: EBlockingConditionMode.VARIABLE;
|
|
1084
1074
|
variableName: string;
|
|
1085
1075
|
variableValue: string;
|
|
1086
1076
|
};
|
|
@@ -1128,7 +1118,7 @@ type TActionOpenView = IActionCommon & {
|
|
|
1128
1118
|
openIn: EViewOpenIn.PLACEHOLDER;
|
|
1129
1119
|
}>));
|
|
1130
1120
|
type TActionsOnClick = IActionGoToUrl | IActionRunScript | IActionUpdateVariable | TActionOpenView;
|
|
1131
|
-
declare enum
|
|
1121
|
+
declare enum EBlockingConditionMode {
|
|
1132
1122
|
FORMULA = "FORMULA",
|
|
1133
1123
|
VARIABLE = "VARIABLE"
|
|
1134
1124
|
}
|
|
@@ -1138,11 +1128,11 @@ interface IWidgetAction extends IActionCommon {
|
|
|
1138
1128
|
scriptKey: string;
|
|
1139
1129
|
autoUpdate: EAutoUpdateMode;
|
|
1140
1130
|
description: string;
|
|
1141
|
-
|
|
1142
|
-
mode:
|
|
1131
|
+
blockingCondition: {
|
|
1132
|
+
mode: EBlockingConditionMode.FORMULA;
|
|
1143
1133
|
formula: string;
|
|
1144
1134
|
} | {
|
|
1145
|
-
mode:
|
|
1135
|
+
mode: EBlockingConditionMode.VARIABLE;
|
|
1146
1136
|
variableName: string;
|
|
1147
1137
|
variableValue: string;
|
|
1148
1138
|
};
|
|
@@ -1881,9 +1871,7 @@ interface IEdge extends IGraphElement {
|
|
|
1881
1871
|
endName: string | null;
|
|
1882
1872
|
}
|
|
1883
1873
|
interface IProcessGraphCalculatorInput {
|
|
1884
|
-
|
|
1885
|
-
processName?: string;
|
|
1886
|
-
processKey: string;
|
|
1874
|
+
processName: string;
|
|
1887
1875
|
vertexLimit: number | null;
|
|
1888
1876
|
edgeLimit: number;
|
|
1889
1877
|
vertexMeasures: ICalculatorMeasureInput[];
|
|
@@ -2329,8 +2317,6 @@ interface IPanelDescription<Settings extends object, GroupSettings extends IGrou
|
|
|
2329
2317
|
interface IWidgetProcess {
|
|
2330
2318
|
/** @deprecated */
|
|
2331
2319
|
guid: string;
|
|
2332
|
-
/** Ключ процесса */
|
|
2333
|
-
key: string;
|
|
2334
2320
|
/** Имя процесса */
|
|
2335
2321
|
name: string;
|
|
2336
2322
|
/** Формула имени события */
|
|
@@ -2569,7 +2555,13 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
2569
2555
|
/** Функция для подписки на расфокусировку виджета (например, при фокусировке на другом виджете) */
|
|
2570
2556
|
subscribeOnFocusOut(subscriber: () => void): void;
|
|
2571
2557
|
/** Функция для захвата фокуса виджетом: остальные виджеты будут оповещены о расфокусировке */
|
|
2572
|
-
captureFocus(
|
|
2558
|
+
captureFocus(options?: {
|
|
2559
|
+
/**
|
|
2560
|
+
* Якорный участок виджета, по которому сохраняется его положение
|
|
2561
|
+
* @default "bottom"
|
|
2562
|
+
*/
|
|
2563
|
+
anchor?: "top" | "bottom";
|
|
2564
|
+
}): void;
|
|
2573
2565
|
/** Глобальный контекст. Содержит информацию из отчета, пространства и платформы системы */
|
|
2574
2566
|
globalContext: IGlobalContext;
|
|
2575
2567
|
/** Контекст образа */
|
|
@@ -2736,4 +2728,4 @@ declare global {
|
|
|
2736
2728
|
}
|
|
2737
2729
|
}
|
|
2738
2730
|
|
|
2739
|
-
export { EActionButtonsTypes, EActionTypes,
|
|
2731
|
+
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 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 EBlockingConditionMode;
|
|
62
|
+
(function (EBlockingConditionMode) {
|
|
63
|
+
EBlockingConditionMode["FORMULA"] = "FORMULA";
|
|
64
|
+
EBlockingConditionMode["VARIABLE"] = "VARIABLE";
|
|
65
|
+
})(EBlockingConditionMode || (EBlockingConditionMode = {}));
|
|
66
66
|
var EActionButtonsTypes;
|
|
67
67
|
(function (EActionButtonsTypes) {
|
|
68
68
|
EActionButtonsTypes["LINK"] = "link";
|
|
@@ -882,7 +882,7 @@ var prepareDimensionAggregationParams = function (value) {
|
|
|
882
882
|
if (!value.eventName ||
|
|
883
883
|
!value.caseCaseIdFormula ||
|
|
884
884
|
!value.eventNameFormula ||
|
|
885
|
-
!value.
|
|
885
|
+
!value.processName ||
|
|
886
886
|
!value.templateName) {
|
|
887
887
|
return null;
|
|
888
888
|
}
|
|
@@ -933,7 +933,7 @@ var prepareTimeParams = function (value) {
|
|
|
933
933
|
if (!value.eventName ||
|
|
934
934
|
!value.caseCaseIdFormula ||
|
|
935
935
|
!value.eventNameFormula ||
|
|
936
|
-
!value.
|
|
936
|
+
!value.processName ||
|
|
937
937
|
!value.templateName ||
|
|
938
938
|
!value.eventTimeFormula) {
|
|
939
939
|
return;
|
|
@@ -1040,7 +1040,7 @@ var prepareMeasureAggregationParams = function (value) {
|
|
|
1040
1040
|
!value.caseCaseIdFormula ||
|
|
1041
1041
|
!value.eventNameFormula ||
|
|
1042
1042
|
!value.outerAggregation ||
|
|
1043
|
-
!value.
|
|
1043
|
+
!value.processName ||
|
|
1044
1044
|
!value.templateName) {
|
|
1045
1045
|
return null;
|
|
1046
1046
|
}
|
|
@@ -1100,10 +1100,10 @@ var prepareConversionParams = function (value) {
|
|
|
1100
1100
|
!value.endEventName ||
|
|
1101
1101
|
!value.endCaseCaseIdFormula ||
|
|
1102
1102
|
!value.endEventNameFormula ||
|
|
1103
|
-
!value.
|
|
1103
|
+
!value.endEventProcessName ||
|
|
1104
1104
|
!value.endEventTimeFormula ||
|
|
1105
1105
|
!value.startEventNameFormula ||
|
|
1106
|
-
!value.
|
|
1106
|
+
!value.startEventProcessName ||
|
|
1107
1107
|
!value.startEventTimeFormula) {
|
|
1108
1108
|
return null;
|
|
1109
1109
|
}
|
|
@@ -1136,10 +1136,10 @@ var prepareDurationParams = function (value) {
|
|
|
1136
1136
|
!value.endEventName ||
|
|
1137
1137
|
!value.endCaseCaseIdFormula ||
|
|
1138
1138
|
!value.endEventNameFormula ||
|
|
1139
|
-
!value.
|
|
1139
|
+
!value.endEventProcessName ||
|
|
1140
1140
|
!value.endEventTimeFormula ||
|
|
1141
1141
|
!value.startEventNameFormula ||
|
|
1142
|
-
!value.
|
|
1142
|
+
!value.startEventProcessName ||
|
|
1143
1143
|
!value.startEventTimeFormula) {
|
|
1144
1144
|
return null;
|
|
1145
1145
|
}
|
|
@@ -2025,4 +2025,4 @@ var getColorByIndex = function (index) {
|
|
|
2025
2025
|
return color;
|
|
2026
2026
|
};
|
|
2027
2027
|
|
|
2028
|
-
export { EActionButtonsTypes, EActionTypes,
|
|
2028
|
+
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, 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.EBlockingConditionMode = void 0;
|
|
63
|
+
(function (EBlockingConditionMode) {
|
|
64
|
+
EBlockingConditionMode["FORMULA"] = "FORMULA";
|
|
65
|
+
EBlockingConditionMode["VARIABLE"] = "VARIABLE";
|
|
66
|
+
})(exports.EBlockingConditionMode || (exports.EBlockingConditionMode = {}));
|
|
67
67
|
exports.EActionButtonsTypes = void 0;
|
|
68
68
|
(function (EActionButtonsTypes) {
|
|
69
69
|
EActionButtonsTypes["LINK"] = "link";
|
|
@@ -883,7 +883,7 @@ var prepareDimensionAggregationParams = function (value) {
|
|
|
883
883
|
if (!value.eventName ||
|
|
884
884
|
!value.caseCaseIdFormula ||
|
|
885
885
|
!value.eventNameFormula ||
|
|
886
|
-
!value.
|
|
886
|
+
!value.processName ||
|
|
887
887
|
!value.templateName) {
|
|
888
888
|
return null;
|
|
889
889
|
}
|
|
@@ -934,7 +934,7 @@ var prepareTimeParams = function (value) {
|
|
|
934
934
|
if (!value.eventName ||
|
|
935
935
|
!value.caseCaseIdFormula ||
|
|
936
936
|
!value.eventNameFormula ||
|
|
937
|
-
!value.
|
|
937
|
+
!value.processName ||
|
|
938
938
|
!value.templateName ||
|
|
939
939
|
!value.eventTimeFormula) {
|
|
940
940
|
return;
|
|
@@ -1041,7 +1041,7 @@ var prepareMeasureAggregationParams = function (value) {
|
|
|
1041
1041
|
!value.caseCaseIdFormula ||
|
|
1042
1042
|
!value.eventNameFormula ||
|
|
1043
1043
|
!value.outerAggregation ||
|
|
1044
|
-
!value.
|
|
1044
|
+
!value.processName ||
|
|
1045
1045
|
!value.templateName) {
|
|
1046
1046
|
return null;
|
|
1047
1047
|
}
|
|
@@ -1101,10 +1101,10 @@ var prepareConversionParams = function (value) {
|
|
|
1101
1101
|
!value.endEventName ||
|
|
1102
1102
|
!value.endCaseCaseIdFormula ||
|
|
1103
1103
|
!value.endEventNameFormula ||
|
|
1104
|
-
!value.
|
|
1104
|
+
!value.endEventProcessName ||
|
|
1105
1105
|
!value.endEventTimeFormula ||
|
|
1106
1106
|
!value.startEventNameFormula ||
|
|
1107
|
-
!value.
|
|
1107
|
+
!value.startEventProcessName ||
|
|
1108
1108
|
!value.startEventTimeFormula) {
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
@@ -1137,10 +1137,10 @@ var prepareDurationParams = function (value) {
|
|
|
1137
1137
|
!value.endEventName ||
|
|
1138
1138
|
!value.endCaseCaseIdFormula ||
|
|
1139
1139
|
!value.endEventNameFormula ||
|
|
1140
|
-
!value.
|
|
1140
|
+
!value.endEventProcessName ||
|
|
1141
1141
|
!value.endEventTimeFormula ||
|
|
1142
1142
|
!value.startEventNameFormula ||
|
|
1143
|
-
!value.
|
|
1143
|
+
!value.startEventProcessName ||
|
|
1144
1144
|
!value.startEventTimeFormula) {
|
|
1145
1145
|
return null;
|
|
1146
1146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/widget-sdk",
|
|
3
|
-
"version": "5.29.0-
|
|
3
|
+
"version": "5.29.0-2506.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"lint": "tsc --noEmit",
|
|
16
16
|
"release": "standard-version",
|
|
17
17
|
"release:rc": "standard-version -p",
|
|
18
|
+
"release:prev": "node ./scripts/re-release.mjs",
|
|
18
19
|
"format": "prettier --find-config-path --write 'src/**/*'",
|
|
19
20
|
"prepublishOnly": "npm run lint && npm run build",
|
|
20
21
|
"test": "jest"
|
|
@@ -33,12 +34,14 @@
|
|
|
33
34
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
34
35
|
"@rollup/plugin-typescript": "11.1.5",
|
|
35
36
|
"@types/jest": "^29.5.14",
|
|
37
|
+
"@types/semver": "^7.7.0",
|
|
36
38
|
"core-js": "^3.38.0",
|
|
37
39
|
"jest": "^29.7.0",
|
|
38
40
|
"prettier": "3.2.5",
|
|
39
41
|
"rollup": "4.14.3",
|
|
40
42
|
"rollup-plugin-delete": "2.0.0",
|
|
41
43
|
"rollup-plugin-dts": "6.1.0",
|
|
44
|
+
"semver": "^7.7.2",
|
|
42
45
|
"standard-version": "9.5.0",
|
|
43
46
|
"tslib": "^2.4.1",
|
|
44
47
|
"typescript": "5.4.5"
|