@infomaximum/widget-sdk 6.0.0-2 → 6.0.0-4
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 +20 -0
- package/dist/index.d.ts +13 -47
- package/dist/index.esm.js +1 -22
- package/dist/index.js +0 -22
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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
|
+
## [6.0.0-4](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-3...v6.0.0-4) (2025-08-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* если виджеты использовали типы данных процесса, то теперь должны запрашивать их сами через type_calculator
|
|
11
|
+
* требуется поддержка в виджетах
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* удален deprecated код в связи с переходом на widget-sdk 6 ([c1ce6cb](https://github.com/Infomaximum/widget-sdk/commit/c1ce6cb5f3838a4bfea3003ee2de0cb494477e8c))
|
|
16
|
+
* удалены типы данных из интерфейса процесса ([3b17150](https://github.com/Infomaximum/widget-sdk/commit/3b17150ef67facaf50e489ec308a69fad1d6db82))
|
|
17
|
+
|
|
18
|
+
## [6.0.0-3](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-2...v6.0.0-3) (2025-08-28)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* виджета дана возможность фильтровать таблицы в дропдаунах кнопок добавления индикаторов и фильтрации по процессам ([cb9fd22](https://github.com/Infomaximum/widget-sdk/commit/cb9fd22cbf6ebf12f0261949ab9d467edcaf0a36))
|
|
24
|
+
|
|
5
25
|
## [6.0.0-2](https://github.com/Infomaximum/widget-sdk/compare/v6.0.0-1...v6.0.0-2) (2025-08-26)
|
|
6
26
|
|
|
7
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -273,17 +273,11 @@ declare enum EProcessFilterNames {
|
|
|
273
273
|
/** Длительность перехода */
|
|
274
274
|
durationOfTransition = "durationOfTransition"
|
|
275
275
|
}
|
|
276
|
-
interface IProcessFilterValue {
|
|
277
|
-
/** @deprecated необходимо передавать посредством IProcessFilterPreviewParams [2502] */
|
|
278
|
-
eventsNamesByProcessNameMap?: Map<string, (string | null)[]>;
|
|
279
|
-
}
|
|
280
276
|
/**
|
|
281
277
|
* Параметры, которые влияют на отображаемый контент в окне настройки процессного фильтра,
|
|
282
278
|
* но не учитываются при применении фильтра.
|
|
283
279
|
*/
|
|
284
280
|
interface IProcessFilterPreviewParams {
|
|
285
|
-
/** @deprecated необходимо использовать eventsNamesByProcessKey */
|
|
286
|
-
eventsNamesByProcessName?: Map<string, (string | null)[]>;
|
|
287
281
|
/**
|
|
288
282
|
* События, доступные при выборе процесса.
|
|
289
283
|
* Если параметр не передан, используются все события процесса на основе запроса к вычислителю.
|
|
@@ -292,19 +286,13 @@ interface IProcessFilterPreviewParams {
|
|
|
292
286
|
/** Фильтры событий */
|
|
293
287
|
eventFilters?: TExtendedFormulaFilterValue[];
|
|
294
288
|
}
|
|
295
|
-
interface IProcessEventFilterValue
|
|
296
|
-
/** @deprecated необходимо использовать processKey */
|
|
297
|
-
processName?: string;
|
|
289
|
+
interface IProcessEventFilterValue {
|
|
298
290
|
processKey: string;
|
|
299
291
|
eventName: string;
|
|
300
292
|
}
|
|
301
|
-
interface IProcessTransitionFilterValue
|
|
302
|
-
/** @deprecated необходимо использовать startEventProcessKey */
|
|
303
|
-
startEventProcessName?: string;
|
|
293
|
+
interface IProcessTransitionFilterValue {
|
|
304
294
|
startEventProcessKey: string;
|
|
305
295
|
startEventName: string;
|
|
306
|
-
/** @deprecated необходимо использовать endEventProcessKey */
|
|
307
|
-
endEventProcessName?: string;
|
|
308
296
|
endEventProcessKey: string;
|
|
309
297
|
endEventName: string;
|
|
310
298
|
}
|
|
@@ -435,15 +423,11 @@ declare const isFormulaFilterValue: (value: TExtendedFormulaFilterValue) => valu
|
|
|
435
423
|
declare enum EWidgetFilterMode {
|
|
436
424
|
DEFAULT = "DEFAULT",
|
|
437
425
|
SINGLE = "SINGLE",
|
|
438
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
439
|
-
MULTI = "MULTI",
|
|
440
426
|
DISABLED = "DISABLED"
|
|
441
427
|
}
|
|
442
428
|
type TWidgetFiltering = {
|
|
443
429
|
ignore: true;
|
|
444
|
-
mode: EWidgetFilterMode.SINGLE
|
|
445
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
446
|
-
| EWidgetFilterMode.MULTI;
|
|
430
|
+
mode: EWidgetFilterMode.SINGLE;
|
|
447
431
|
} | {
|
|
448
432
|
ignore: false;
|
|
449
433
|
mode: EWidgetFilterMode;
|
|
@@ -678,9 +662,6 @@ interface IWidgetStaticListVariable extends IBaseWidgetVariable {
|
|
|
678
662
|
type: EIndicatorType.STATIC_LIST;
|
|
679
663
|
/** Значение */
|
|
680
664
|
value: string | string[] | null;
|
|
681
|
-
/** Элементы статического списка */
|
|
682
|
-
/** @deprecated поле будет удалено, необходимо использовать labeledOptions */
|
|
683
|
-
options: string[];
|
|
684
665
|
/** Объект ключ значение для статического списка */
|
|
685
666
|
labeledOptions: IStaticListLabeledOption[];
|
|
686
667
|
/** Множественный выбор */
|
|
@@ -825,8 +806,6 @@ interface IGlobalContext {
|
|
|
825
806
|
unsetVariableValue(name: string): TWidgetVariable["value"];
|
|
826
807
|
/** Состояния(название сущности) отчета */
|
|
827
808
|
states: Map<string, ICommonState>;
|
|
828
|
-
/** @deprecated Процессы из модели данных (по имени) */
|
|
829
|
-
processes: Map<string, IWidgetProcess>;
|
|
830
809
|
/** Процессы из модели данных (по ключу) */
|
|
831
810
|
processByKey: Map<string, IWidgetProcess>;
|
|
832
811
|
/** Имена таблиц из модели данных */
|
|
@@ -951,11 +930,7 @@ declare enum EViewOpenIn {
|
|
|
951
930
|
WINDOW = "WINDOW",
|
|
952
931
|
PLACEHOLDER = "PLACEHOLDER",
|
|
953
932
|
MODAL_WINDOW = "MODAL_WINDOW",
|
|
954
|
-
DRAWER_WINDOW = "DRAWER_WINDOW"
|
|
955
|
-
/** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
|
|
956
|
-
NEW_WINDOW = "NEW_WINDOW",
|
|
957
|
-
/** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
|
|
958
|
-
CURRENT_WINDOW = "CURRENT_WINDOW"
|
|
933
|
+
DRAWER_WINDOW = "DRAWER_WINDOW"
|
|
959
934
|
}
|
|
960
935
|
declare enum EDrawerPlacement {
|
|
961
936
|
LEFT = "LEFT",
|
|
@@ -1085,17 +1060,9 @@ type TActionOpenIn = {
|
|
|
1085
1060
|
} | {
|
|
1086
1061
|
openIn: EViewOpenIn.PLACEHOLDER;
|
|
1087
1062
|
placeholderName: string;
|
|
1088
|
-
}
|
|
1089
|
-
/** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - true */
|
|
1090
|
-
| {
|
|
1091
|
-
openIn: EViewOpenIn.NEW_WINDOW;
|
|
1092
1063
|
} | {
|
|
1093
1064
|
openIn: EViewOpenIn.MODAL_WINDOW;
|
|
1094
1065
|
positionByClick?: boolean;
|
|
1095
|
-
}
|
|
1096
|
-
/** @deprecated необходимо использовать EViewOpenIn.WINDOW с флагом newWindow - false */
|
|
1097
|
-
| {
|
|
1098
|
-
openIn: EViewOpenIn.CURRENT_WINDOW;
|
|
1099
1066
|
} | {
|
|
1100
1067
|
openIn: EViewOpenIn.WINDOW;
|
|
1101
1068
|
newWindow: boolean;
|
|
@@ -1682,6 +1649,8 @@ interface IFormulaControl {
|
|
|
1682
1649
|
templates?: EDimensionTemplateNames[];
|
|
1683
1650
|
};
|
|
1684
1651
|
disabled?: boolean;
|
|
1652
|
+
/** Ключи процессов для фильтрации таблиц, доступных для выбора */
|
|
1653
|
+
processKeys?: Iterable<string>;
|
|
1685
1654
|
titleModal?: string;
|
|
1686
1655
|
};
|
|
1687
1656
|
}
|
|
@@ -1734,6 +1703,8 @@ interface IFilterControl {
|
|
|
1734
1703
|
value: TExtendedFormulaFilterValue[];
|
|
1735
1704
|
props: {
|
|
1736
1705
|
buttonTitle?: string;
|
|
1706
|
+
/** Ключи процессов для фильтрации таблиц, доступных для выбора */
|
|
1707
|
+
processKeys?: Iterable<string>;
|
|
1737
1708
|
};
|
|
1738
1709
|
}
|
|
1739
1710
|
interface IDisplayConditionControl {
|
|
@@ -1879,8 +1850,6 @@ interface IEdge extends IGraphElement {
|
|
|
1879
1850
|
endName: string | null;
|
|
1880
1851
|
}
|
|
1881
1852
|
interface IProcessGraphCalculatorInput {
|
|
1882
|
-
/** @deprecated необходимо использовать processKey */
|
|
1883
|
-
processName?: string;
|
|
1884
1853
|
processKey: string;
|
|
1885
1854
|
vertexLimit: number | null;
|
|
1886
1855
|
edgeLimit: number;
|
|
@@ -2217,7 +2186,10 @@ interface IInitialSettings extends Record<string, any> {
|
|
|
2217
2186
|
/** Кнопка добавления группы в набор */
|
|
2218
2187
|
type TAddButton = {
|
|
2219
2188
|
title: string;
|
|
2220
|
-
props?: ICustomAddButtonProps | IMeasureAddButtonProps | ISortingAddButtonProps
|
|
2189
|
+
props?: (ICustomAddButtonProps | IMeasureAddButtonProps | ISortingAddButtonProps) & {
|
|
2190
|
+
/** Ключи процессов для фильтрации таблиц, доступных для выбора */
|
|
2191
|
+
processKeys?: Iterable<string>;
|
|
2192
|
+
};
|
|
2221
2193
|
/**
|
|
2222
2194
|
* Начальные настройки, которые получит показатель при создании через кнопку добавления.
|
|
2223
2195
|
* Возможность не поддерживается для иерархии разрезов.
|
|
@@ -2334,10 +2306,6 @@ interface IWidgetProcess {
|
|
|
2334
2306
|
caseCaseIdFormula: string;
|
|
2335
2307
|
/** Имя колонки CaseId события */
|
|
2336
2308
|
eventCaseIdColumnName: string;
|
|
2337
|
-
/** Тип данных CaseId */
|
|
2338
|
-
caseIdDbDataType: string;
|
|
2339
|
-
/** Тип данных времени события */
|
|
2340
|
-
eventTimeDbDataType: string;
|
|
2341
2309
|
/** Является ли процесс валидным */
|
|
2342
2310
|
isValid: boolean;
|
|
2343
2311
|
}
|
|
@@ -2677,8 +2645,6 @@ interface IDimensionSelectionByFormula extends Map<string, IDimensionSelection>
|
|
|
2677
2645
|
type TUpdateSelection = (selection: IDimensionSelectionByFormula, formula: string, value: string, filters: ICalculatorFilter[]) => void;
|
|
2678
2646
|
declare const updateDefaultModeSelection: TUpdateSelection;
|
|
2679
2647
|
declare const updateSingleModeSelection: TUpdateSelection;
|
|
2680
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
2681
|
-
declare const updateMultiModeSelection: TUpdateSelection;
|
|
2682
2648
|
declare const replaceFiltersBySelection: (filters: ICalculatorFilter[], selection: IDimensionSelectionByFormula) => ICalculatorFilter[];
|
|
2683
2649
|
|
|
2684
2650
|
/**
|
|
@@ -2733,4 +2699,4 @@ declare global {
|
|
|
2733
2699
|
}
|
|
2734
2700
|
}
|
|
2735
2701
|
|
|
2736
|
-
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 IActionButton, 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 THintPlacement, 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, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection,
|
|
2702
|
+
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 IActionButton, 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 THintPlacement, 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, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
|
package/dist/index.esm.js
CHANGED
|
@@ -35,12 +35,6 @@ var EViewOpenIn;
|
|
|
35
35
|
EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
|
|
36
36
|
EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
|
|
37
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";
|
|
44
38
|
})(EViewOpenIn || (EViewOpenIn = {}));
|
|
45
39
|
var EDrawerPlacement;
|
|
46
40
|
(function (EDrawerPlacement) {
|
|
@@ -1376,8 +1370,6 @@ var EWidgetFilterMode;
|
|
|
1376
1370
|
(function (EWidgetFilterMode) {
|
|
1377
1371
|
EWidgetFilterMode["DEFAULT"] = "DEFAULT";
|
|
1378
1372
|
EWidgetFilterMode["SINGLE"] = "SINGLE";
|
|
1379
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
1380
|
-
EWidgetFilterMode["MULTI"] = "MULTI";
|
|
1381
1373
|
EWidgetFilterMode["DISABLED"] = "DISABLED";
|
|
1382
1374
|
})(EWidgetFilterMode || (EWidgetFilterMode = {}));
|
|
1383
1375
|
var EMarkdownDisplayMode;
|
|
@@ -1966,19 +1958,6 @@ var updateSingleModeSelection = function (selection, formula, value) {
|
|
|
1966
1958
|
replacedFilter: null,
|
|
1967
1959
|
});
|
|
1968
1960
|
};
|
|
1969
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
1970
|
-
var updateMultiModeSelection = function (selection, formula, value) {
|
|
1971
|
-
var _a;
|
|
1972
|
-
var selectionItemValues = getSelectionItemValues(value, EWidgetFilterMode.MULTI, (_a = selection.get(formula)) === null || _a === void 0 ? void 0 : _a.values);
|
|
1973
|
-
if (!selectionItemValues.size) {
|
|
1974
|
-
selection.delete(formula);
|
|
1975
|
-
return;
|
|
1976
|
-
}
|
|
1977
|
-
selection.set(formula, {
|
|
1978
|
-
values: selectionItemValues,
|
|
1979
|
-
replacedFilter: null,
|
|
1980
|
-
});
|
|
1981
|
-
};
|
|
1982
1961
|
var replaceFiltersBySelection = function (filters, selection) {
|
|
1983
1962
|
return filters.reduce(function (acc, filter) {
|
|
1984
1963
|
var _a;
|
|
@@ -2099,4 +2078,4 @@ var getColorByIndex = function (index) {
|
|
|
2099
2078
|
return color;
|
|
2100
2079
|
};
|
|
2101
2080
|
|
|
2102
|
-
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, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection,
|
|
2081
|
+
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, createEscaper, createAggregationTemplate as createMeasureAggregationTemplate, curlyBracketsContentPattern, dashboardLinkRegExp, dimensionAggregationTemplates, dimensionTemplateFormulas, displayConditionTemplate, doubleQuoteContentPattern, durationTemplates, escapeCurlyBracketLinkName, escapeDoubleQuoteLinkName, eventMeasureTemplateFormulas, fillTemplateString, formattingConfig, formulaFilterMethods, generateColumnFormula, getColorByIndex, getDefaultSortOrders, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getRuleColor, getTransitionMeasureFormula, isDimensionsHierarchy, isFormulaFilterValue, isValidColor, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareConversionParams, prepareDimensionAggregationParams, prepareDurationParams, prepareFormulaForSql, prepareMeasureAggregationParams, prepareSortOrders, prepareTimeParams, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, timeTemplates, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
|
package/dist/index.js
CHANGED
|
@@ -36,12 +36,6 @@ exports.EViewOpenIn = void 0;
|
|
|
36
36
|
EViewOpenIn["PLACEHOLDER"] = "PLACEHOLDER";
|
|
37
37
|
EViewOpenIn["MODAL_WINDOW"] = "MODAL_WINDOW";
|
|
38
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";
|
|
45
39
|
})(exports.EViewOpenIn || (exports.EViewOpenIn = {}));
|
|
46
40
|
exports.EDrawerPlacement = void 0;
|
|
47
41
|
(function (EDrawerPlacement) {
|
|
@@ -1377,8 +1371,6 @@ exports.EWidgetFilterMode = void 0;
|
|
|
1377
1371
|
(function (EWidgetFilterMode) {
|
|
1378
1372
|
EWidgetFilterMode["DEFAULT"] = "DEFAULT";
|
|
1379
1373
|
EWidgetFilterMode["SINGLE"] = "SINGLE";
|
|
1380
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
1381
|
-
EWidgetFilterMode["MULTI"] = "MULTI";
|
|
1382
1374
|
EWidgetFilterMode["DISABLED"] = "DISABLED";
|
|
1383
1375
|
})(exports.EWidgetFilterMode || (exports.EWidgetFilterMode = {}));
|
|
1384
1376
|
exports.EMarkdownDisplayMode = void 0;
|
|
@@ -1967,19 +1959,6 @@ var updateSingleModeSelection = function (selection, formula, value) {
|
|
|
1967
1959
|
replacedFilter: null,
|
|
1968
1960
|
});
|
|
1969
1961
|
};
|
|
1970
|
-
/** @deprecated Отказ от режима фильтрации "Множественный выбор"*/
|
|
1971
|
-
var updateMultiModeSelection = function (selection, formula, value) {
|
|
1972
|
-
var _a;
|
|
1973
|
-
var selectionItemValues = getSelectionItemValues(value, exports.EWidgetFilterMode.MULTI, (_a = selection.get(formula)) === null || _a === void 0 ? void 0 : _a.values);
|
|
1974
|
-
if (!selectionItemValues.size) {
|
|
1975
|
-
selection.delete(formula);
|
|
1976
|
-
return;
|
|
1977
|
-
}
|
|
1978
|
-
selection.set(formula, {
|
|
1979
|
-
values: selectionItemValues,
|
|
1980
|
-
replacedFilter: null,
|
|
1981
|
-
});
|
|
1982
|
-
};
|
|
1983
1962
|
var replaceFiltersBySelection = function (filters, selection) {
|
|
1984
1963
|
return filters.reduce(function (acc, filter) {
|
|
1985
1964
|
var _a;
|
|
@@ -2173,6 +2152,5 @@ exports.timeTemplates = timeTemplates;
|
|
|
2173
2152
|
exports.transitionMeasureTemplateFormulas = transitionMeasureTemplateFormulas;
|
|
2174
2153
|
exports.unescapeSpecialCharacters = unescapeSpecialCharacters;
|
|
2175
2154
|
exports.updateDefaultModeSelection = updateDefaultModeSelection;
|
|
2176
|
-
exports.updateMultiModeSelection = updateMultiModeSelection;
|
|
2177
2155
|
exports.updateSingleModeSelection = updateSingleModeSelection;
|
|
2178
2156
|
exports.workspaceLinkRegExp = workspaceLinkRegExp;
|