@infomaximum/widget-sdk 5.0.0-beta9 → 5.1.0
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/README.md +2 -2
- package/dist/index.d.ts +29 -48
- package/dist/index.esm.js +5 -8
- package/dist/index.js +5 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -363,8 +363,6 @@ interface IAddDurationOfTransitionFilter {
|
|
|
363
363
|
declare enum EFormulaFilterFieldKeys {
|
|
364
364
|
date = "date",
|
|
365
365
|
dateRange = "dateRange",
|
|
366
|
-
duration = "duration",
|
|
367
|
-
number = "number",
|
|
368
366
|
numberRange = "numberRange",
|
|
369
367
|
string = "string",
|
|
370
368
|
lastTimeValue = "lastTimeValue",
|
|
@@ -388,8 +386,6 @@ interface IFormulaFilterValue {
|
|
|
388
386
|
formValues?: Partial<{
|
|
389
387
|
[EFormulaFilterFieldKeys.date]: string | null;
|
|
390
388
|
[EFormulaFilterFieldKeys.dateRange]: [string, string];
|
|
391
|
-
[EFormulaFilterFieldKeys.duration]: string;
|
|
392
|
-
[EFormulaFilterFieldKeys.number]: number;
|
|
393
389
|
[EFormulaFilterFieldKeys.numberRange]: Partial<[number, number]>;
|
|
394
390
|
[EFormulaFilterFieldKeys.string]: string;
|
|
395
391
|
[EFormulaFilterFieldKeys.lastTimeValue]: number;
|
|
@@ -524,18 +520,6 @@ interface IWidgetTable {
|
|
|
524
520
|
/** Колонки таблицы */
|
|
525
521
|
columns: Map<string, IWidgetTableColumn>;
|
|
526
522
|
}
|
|
527
|
-
/**
|
|
528
|
-
* simplified - упрощенный (для работы фильтрации в образах, открытых в модальном/боковом окне)
|
|
529
|
-
*
|
|
530
|
-
* full - полный
|
|
531
|
-
*/
|
|
532
|
-
type TFiltrationMode = "simplified" | "full";
|
|
533
|
-
/**
|
|
534
|
-
* preview - упрощенный
|
|
535
|
-
*
|
|
536
|
-
* full - полный
|
|
537
|
-
*/
|
|
538
|
-
type TDisplayMode = "preview" | "full";
|
|
539
523
|
interface IDisplayRule {
|
|
540
524
|
color: TColor;
|
|
541
525
|
}
|
|
@@ -546,10 +530,6 @@ interface IGlobalContext {
|
|
|
546
530
|
reportName: string;
|
|
547
531
|
/** Имена образов по их ключу(в текущем отчете) */
|
|
548
532
|
viewNameByKey: Map<string, string>;
|
|
549
|
-
/** Режим отображения виджетов */
|
|
550
|
-
displayMode: TDisplayMode;
|
|
551
|
-
/** Режим фильтрации виджетов */
|
|
552
|
-
filtrationMode: TFiltrationMode;
|
|
553
533
|
/** @deprecated имя группы пространства по ее id */
|
|
554
534
|
workspaceGroupNameById: Map<number, string>;
|
|
555
535
|
/** Меры уровня отчета */
|
|
@@ -664,8 +644,6 @@ interface IBaseWidgetSettings {
|
|
|
664
644
|
ignoreFilters?: boolean;
|
|
665
645
|
sorting?: IWidgetSortingIndicator[];
|
|
666
646
|
actions?: IWidgetAction[];
|
|
667
|
-
displayCondition?: TDisplayCondition;
|
|
668
|
-
displayConditionComment?: string;
|
|
669
647
|
appearance?: TAppearanceSettings;
|
|
670
648
|
}
|
|
671
649
|
|
|
@@ -678,7 +656,8 @@ declare enum EWidgetActionInputMethod {
|
|
|
678
656
|
MANUALLY = "MANUALLY",
|
|
679
657
|
EVENT = "EVENT",
|
|
680
658
|
START_EVENT = "START_EVENT",
|
|
681
|
-
FINISH_EVENT = "FINISH_EVENT"
|
|
659
|
+
FINISH_EVENT = "FINISH_EVENT",
|
|
660
|
+
AGGREGATION = "AGGREGATION"
|
|
682
661
|
}
|
|
683
662
|
declare enum EActionTypes {
|
|
684
663
|
OPEN_URL = "OPEN_URL",
|
|
@@ -715,6 +694,10 @@ interface IParameterFromFormula {
|
|
|
715
694
|
inputMethod: EWidgetActionInputMethod.FORMULA;
|
|
716
695
|
formula: string;
|
|
717
696
|
}
|
|
697
|
+
interface IParameterFromAggregation {
|
|
698
|
+
inputMethod: EWidgetActionInputMethod.AGGREGATION;
|
|
699
|
+
formula: string;
|
|
700
|
+
}
|
|
718
701
|
interface IParameterFromEvent {
|
|
719
702
|
inputMethod: EWidgetActionInputMethod.EVENT;
|
|
720
703
|
}
|
|
@@ -748,11 +731,11 @@ interface IWidgetActionParameterCommon {
|
|
|
748
731
|
displayName: string;
|
|
749
732
|
isHidden: boolean;
|
|
750
733
|
}
|
|
751
|
-
type TWidgetActionParameter = IWidgetActionParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList);
|
|
734
|
+
type TWidgetActionParameter = IWidgetActionParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromManualInput | IParameterFromStaticList | IParameterFromDynamicList | IParameterFromAggregation);
|
|
752
735
|
interface IActionOnClickParameterCommon extends IAutoIdentifiedArrayItem {
|
|
753
736
|
name: string;
|
|
754
737
|
}
|
|
755
|
-
type TActionOnClickParameter = IActionOnClickParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromEvent | IParameterFromStartEvent | IParameterFromEndEvent);
|
|
738
|
+
type TActionOnClickParameter = IActionOnClickParameterCommon & (IParameterFromColumn | IParameterFromVariable | IParameterFromFormula | IParameterFromEvent | IParameterFromStartEvent | IParameterFromEndEvent | IParameterFromAggregation);
|
|
756
739
|
interface IActionCommon extends IAutoIdentifiedArrayItem {
|
|
757
740
|
name: string;
|
|
758
741
|
}
|
|
@@ -1052,13 +1035,10 @@ interface IBaseDimensionsAndMeasuresCalculatorInput {
|
|
|
1052
1035
|
isHideEmptyMeasures?: boolean;
|
|
1053
1036
|
/** Сортировка */
|
|
1054
1037
|
sortOrders?: ISortOrder[];
|
|
1055
|
-
/** Формула условия отображения */
|
|
1056
|
-
displayConditionFormula?: TNullable<string>;
|
|
1057
1038
|
}
|
|
1058
1039
|
interface IBaseDimensionsAndMeasuresCalculatorOutput {
|
|
1059
1040
|
dimensions: Map<string, ICalculatorDimensionOutput>;
|
|
1060
1041
|
measures: Map<string, ICalculatorMeasureOutput>;
|
|
1061
|
-
isDisplay: boolean;
|
|
1062
1042
|
isValuesEmpty: boolean;
|
|
1063
1043
|
}
|
|
1064
1044
|
interface IBaseDimensionsAndMeasuresCalculator<Input extends IBaseDimensionsAndMeasuresCalculatorInput, Output extends IBaseDimensionsAndMeasuresCalculatorOutput> extends ICalculator<Input, Output> {
|
|
@@ -1089,8 +1069,6 @@ interface IHistogramCalculatorInput {
|
|
|
1089
1069
|
dimensions: ICalculatorDimensionInput[];
|
|
1090
1070
|
/** Лимит корзин */
|
|
1091
1071
|
binsLimit: number;
|
|
1092
|
-
/** Формула условия отображения */
|
|
1093
|
-
displayConditionFormula?: TNullable<string>;
|
|
1094
1072
|
/** Фильтры, использующие WHERE */
|
|
1095
1073
|
filters: ICalculatorFilter[];
|
|
1096
1074
|
/** Имя таблицы */
|
|
@@ -1103,7 +1081,6 @@ interface IHistogramBin {
|
|
|
1103
1081
|
}
|
|
1104
1082
|
interface IHistogramCalculatorOutput {
|
|
1105
1083
|
bins: IHistogramBin[];
|
|
1106
|
-
isDisplay: boolean;
|
|
1107
1084
|
dimensionAlias: string;
|
|
1108
1085
|
}
|
|
1109
1086
|
interface IHistogramCalculator extends ICalculator<IHistogramCalculatorInput, IHistogramCalculatorOutput> {
|
|
@@ -1140,7 +1117,6 @@ interface IProcessGraphCalculatorInput {
|
|
|
1140
1117
|
edgeMeasures: ICalculatorMeasureInput[];
|
|
1141
1118
|
filters: ICalculatorFilter[];
|
|
1142
1119
|
eventFilters?: ICalculatorFilter[];
|
|
1143
|
-
displayConditionFormula?: TNullable<string>;
|
|
1144
1120
|
}
|
|
1145
1121
|
interface IProcessGraphCalculatorOutput {
|
|
1146
1122
|
vertexMaxLimit: number;
|
|
@@ -1153,7 +1129,6 @@ interface IProcessGraphCalculatorOutput {
|
|
|
1153
1129
|
/** alias'ы мер, попавших под условие отображения */
|
|
1154
1130
|
edgeMeasuresAliases: Set<string>;
|
|
1155
1131
|
edges: IEdge[];
|
|
1156
|
-
isDisplay: boolean;
|
|
1157
1132
|
}
|
|
1158
1133
|
interface IProcessGraphCalculator extends ICalculator<IProcessGraphCalculatorInput, IProcessGraphCalculatorOutput> {
|
|
1159
1134
|
}
|
|
@@ -1175,8 +1150,6 @@ interface ITwoLimitsCalculatorInput {
|
|
|
1175
1150
|
isHideEmptyMeasures?: boolean;
|
|
1176
1151
|
/** Сортировка */
|
|
1177
1152
|
sortOrders?: ISortOrder[];
|
|
1178
|
-
/** Формула условия отображения */
|
|
1179
|
-
displayConditionFormula?: TNullable<string>;
|
|
1180
1153
|
/** Лимит строк */
|
|
1181
1154
|
limit?: number;
|
|
1182
1155
|
/** Второй лимит */
|
|
@@ -1191,7 +1164,6 @@ interface ITwoLimitsCalculatorExportInput extends ITwoLimitsCalculatorInput {
|
|
|
1191
1164
|
interface ITwoLimitsCalculatorOutput {
|
|
1192
1165
|
dimensions: Map<string, ICalculatorDimensionOutput>;
|
|
1193
1166
|
measures: Map<string, ICalculatorMeasureOutput>;
|
|
1194
|
-
isDisplay: boolean;
|
|
1195
1167
|
isValuesEmpty: boolean;
|
|
1196
1168
|
}
|
|
1197
1169
|
interface ITwoLimitsCalculator extends ICalculator<ITwoLimitsCalculatorInput, ITwoLimitsCalculatorOutput> {
|
|
@@ -1499,14 +1471,12 @@ interface ISelectGroupOption {
|
|
|
1499
1471
|
options: IAddButtonSelectOption[];
|
|
1500
1472
|
icon: string;
|
|
1501
1473
|
}
|
|
1502
|
-
/** @deprecated необходимо использовать TSelectFetchNodes*/
|
|
1503
|
-
type TSelectFetchOptions = (searchText?: string) => Promise<TCustomAddButtonSelectOption[]>;
|
|
1504
1474
|
interface ISelectNode {
|
|
1505
1475
|
options: TCustomAddButtonSelectOption[];
|
|
1506
1476
|
isAllRequested: boolean;
|
|
1507
1477
|
}
|
|
1508
1478
|
type TSelectFetchNodes = (searchText?: string) => Promise<ISelectNode>;
|
|
1509
|
-
type TSelectChildOptions = TCustomAddButtonSelectOption[] | TSelectFetchNodes
|
|
1479
|
+
type TSelectChildOptions = TCustomAddButtonSelectOption[] | TSelectFetchNodes;
|
|
1510
1480
|
interface ISelectBranchOption {
|
|
1511
1481
|
type: ESelectOptionTypes.BRANCH;
|
|
1512
1482
|
label: string;
|
|
@@ -1675,11 +1645,9 @@ declare enum ESystemRecordKey {
|
|
|
1675
1645
|
|
|
1676
1646
|
interface IWidgetPlaceholderController {
|
|
1677
1647
|
setError(value: Error | null): void;
|
|
1678
|
-
setConfigured(value: boolean): void;
|
|
1679
1648
|
/**
|
|
1680
|
-
*
|
|
1649
|
+
* Сообщает о готовности виджета к отображению.
|
|
1681
1650
|
*
|
|
1682
|
-
* После вызова данного метода виджет станет доступен для отображения.
|
|
1683
1651
|
* Это предотвращает мерцание при первом появлении виджета на экране.
|
|
1684
1652
|
* Метод должен быть вызван после полной готовности виджета: все необходимые данные загружены, высота установлена.
|
|
1685
1653
|
*/
|
|
@@ -1689,7 +1657,6 @@ interface IWidgetPlaceholderController {
|
|
|
1689
1657
|
}
|
|
1690
1658
|
interface IWidgetPlaceholderValues {
|
|
1691
1659
|
error: Error | null;
|
|
1692
|
-
isConfigured: boolean;
|
|
1693
1660
|
isDisplay: boolean | undefined;
|
|
1694
1661
|
isEmpty: boolean;
|
|
1695
1662
|
isOverlay: boolean;
|
|
@@ -1836,9 +1803,21 @@ interface IWidgetPersistValue<T extends object = object> {
|
|
|
1836
1803
|
get(): T | null;
|
|
1837
1804
|
set(value: T | null): void;
|
|
1838
1805
|
}
|
|
1806
|
+
/**
|
|
1807
|
+
* simplified - упрощенный (для работы фильтрации в образах, открытых в модальном/боковом окне)
|
|
1808
|
+
*
|
|
1809
|
+
* full - полный
|
|
1810
|
+
*/
|
|
1811
|
+
type TFiltrationAccessibility = "simplified" | "full";
|
|
1812
|
+
/**
|
|
1813
|
+
* preview - упрощенный
|
|
1814
|
+
*
|
|
1815
|
+
* full - полный
|
|
1816
|
+
*/
|
|
1817
|
+
type TDisplayMode = "preview" | "full";
|
|
1839
1818
|
interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetSettings> {
|
|
1840
|
-
/**
|
|
1841
|
-
|
|
1819
|
+
/** Ключ виджета */
|
|
1820
|
+
widgetKey: string;
|
|
1842
1821
|
/** Настройки виджета */
|
|
1843
1822
|
settings: WidgetSettings;
|
|
1844
1823
|
/** Фабрика для создания вычислителей */
|
|
@@ -1872,6 +1851,10 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
1872
1851
|
actionValidator: TActionValidator;
|
|
1873
1852
|
/** Аксессор для persist-значения виджета, хранимого в localStorage и URL */
|
|
1874
1853
|
persistValue: IWidgetPersistValue;
|
|
1854
|
+
/** Режим отображения виджета */
|
|
1855
|
+
displayMode: TDisplayMode;
|
|
1856
|
+
/** Доступность фильтрации */
|
|
1857
|
+
filtrationAccessibility: TFiltrationAccessibility;
|
|
1875
1858
|
}
|
|
1876
1859
|
/** Манифест виджета */
|
|
1877
1860
|
interface IWidgetManifest {
|
|
@@ -1899,8 +1882,6 @@ interface IWidgetManifest {
|
|
|
1899
1882
|
};
|
|
1900
1883
|
/** Параметры контейнера виджета */
|
|
1901
1884
|
container_params?: {
|
|
1902
|
-
/** @deprecated необходимо использовать show_title */
|
|
1903
|
-
show_header?: boolean;
|
|
1904
1885
|
/** Отображать ли системный заголовок виджета (по умолчанию false) */
|
|
1905
1886
|
show_title?: boolean;
|
|
1906
1887
|
/** Отображать ли markdown "описание" виджета (по умолчанию false) */
|
|
@@ -2025,4 +2006,4 @@ declare global {
|
|
|
2025
2006
|
}
|
|
2026
2007
|
}
|
|
2027
2008
|
|
|
2028
|
-
export { EActionButtonsTypes, EActionTypes, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionGoToUrl, 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 IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IExportColumnOrder, type IFillSettings, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, 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 ISelectBranchOption, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type IVertex, 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, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TAppearanceSettings, 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 TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type
|
|
2009
|
+
export { EActionButtonsTypes, EActionTypes, ECalculatorFilterMethods, EClickHouseBaseTypes, EColorMode, EControlType, ECustomSelectTemplates, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESimpleInputType, ESortDirection, ESortingValueModes, ESystemRecordKey, ETransitionMeasureTemplateNames, EUnitMode, EViewMode, EViewOpenIn, EWidgetActionInputMethod, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionGoToUrl, 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 IColoredValue, type ICommonDimensions, type ICommonMeasures, type ICommonState, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, type IDisplayRule, type IDivePanelDescription, type IDividerRecord, type IEdge, type IExportColumnOrder, type IFillSettings, type IFormulaFilterValue, type IGeneralCalculator, type IGeneralCalculatorExportInput, type IGeneralCalculatorInput, type IGeneralCalculatorOutput, type IGlobalContext, type IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type IIndicatorLink, type IInitialSettings, type ILens, type IMarkdownMeasure, type IMeasureAddButtonProps, 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 ISelectBranchOption, type ISelectDividerOption, type ISelectGroupOption, type ISelectLeafOption, type ISelectNode, type ISelectOption, type ISelectSystemOption, type ISettingsMigratorParams, type ISortOrder, type ISortingAddButtonProps, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type ITypeCalculatorOutputItem, type IVertex, 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, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionValidator, type TActionsOnClick, type TAddButton, type TAppearanceSettings, 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 TCustomAddButtonSelectOption, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TExtendedFormulaFilterValue, type TFiltrationAccessibility, type TGroupLevelRecord, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TMigrateProcessor, type TMigrationStruct, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchNodes, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TVersion, type TWidgetActionParameter, type TWidgetContainer, type TWidgetDimensionData, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetIndicatorData, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, colors, dashboardLinkRegExp, dimensionTemplateFormulas, 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, measureTemplateFormulas, parseClickHouseType, parseIndicatorLink, prepareSortOrders, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection, workspaceLinkRegExp };
|
package/dist/index.esm.js
CHANGED
|
@@ -13,6 +13,7 @@ var EWidgetActionInputMethod;
|
|
|
13
13
|
EWidgetActionInputMethod["EVENT"] = "EVENT";
|
|
14
14
|
EWidgetActionInputMethod["START_EVENT"] = "START_EVENT";
|
|
15
15
|
EWidgetActionInputMethod["FINISH_EVENT"] = "FINISH_EVENT";
|
|
16
|
+
EWidgetActionInputMethod["AGGREGATION"] = "AGGREGATION";
|
|
16
17
|
})(EWidgetActionInputMethod || (EWidgetActionInputMethod = {}));
|
|
17
18
|
var EActionTypes;
|
|
18
19
|
(function (EActionTypes) {
|
|
@@ -156,8 +157,6 @@ var EFormulaFilterFieldKeys;
|
|
|
156
157
|
(function (EFormulaFilterFieldKeys) {
|
|
157
158
|
EFormulaFilterFieldKeys["date"] = "date";
|
|
158
159
|
EFormulaFilterFieldKeys["dateRange"] = "dateRange";
|
|
159
|
-
EFormulaFilterFieldKeys["duration"] = "duration";
|
|
160
|
-
EFormulaFilterFieldKeys["number"] = "number";
|
|
161
160
|
EFormulaFilterFieldKeys["numberRange"] = "numberRange";
|
|
162
161
|
EFormulaFilterFieldKeys["string"] = "string";
|
|
163
162
|
EFormulaFilterFieldKeys["lastTimeValue"] = "lastTimeValue";
|
|
@@ -689,15 +688,13 @@ var getFormulaFilterValues = function (filterValue) {
|
|
|
689
688
|
case EFormatTypes.DAY_OF_MONTH:
|
|
690
689
|
case EFormatTypes.WEEK:
|
|
691
690
|
case EFormatTypes.HOUR:
|
|
692
|
-
var _g = formValues, _h = EFormulaFilterFieldKeys.
|
|
693
|
-
return isRangeFilteringMethod(filteringMethod)
|
|
694
|
-
? stringifyNumbersRange(numberRange)
|
|
695
|
-
: [String(number !== null && number !== void 0 ? number : 0)];
|
|
691
|
+
var _g = formValues, _h = EFormulaFilterFieldKeys.numberRange, numberRange = _g[_h];
|
|
692
|
+
return isRangeFilteringMethod(filteringMethod) ? stringifyNumbersRange(numberRange) : [];
|
|
696
693
|
case EFormatTypes.DURATION:
|
|
697
|
-
var
|
|
694
|
+
var _j = formValues, _k = EFormulaFilterFieldKeys.numberRange, durationRange = _j[_k], _l = EFormulaFilterFieldKeys.durationUnit, durationUnit = _j[_l];
|
|
698
695
|
return isRangeFilteringMethod(filteringMethod)
|
|
699
696
|
? convertDurationRangeToSecond(durationRange, durationUnit)
|
|
700
|
-
: [
|
|
697
|
+
: [];
|
|
701
698
|
}
|
|
702
699
|
return [];
|
|
703
700
|
};
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ exports.EWidgetActionInputMethod = void 0;
|
|
|
14
14
|
EWidgetActionInputMethod["EVENT"] = "EVENT";
|
|
15
15
|
EWidgetActionInputMethod["START_EVENT"] = "START_EVENT";
|
|
16
16
|
EWidgetActionInputMethod["FINISH_EVENT"] = "FINISH_EVENT";
|
|
17
|
+
EWidgetActionInputMethod["AGGREGATION"] = "AGGREGATION";
|
|
17
18
|
})(exports.EWidgetActionInputMethod || (exports.EWidgetActionInputMethod = {}));
|
|
18
19
|
exports.EActionTypes = void 0;
|
|
19
20
|
(function (EActionTypes) {
|
|
@@ -157,8 +158,6 @@ exports.EFormulaFilterFieldKeys = void 0;
|
|
|
157
158
|
(function (EFormulaFilterFieldKeys) {
|
|
158
159
|
EFormulaFilterFieldKeys["date"] = "date";
|
|
159
160
|
EFormulaFilterFieldKeys["dateRange"] = "dateRange";
|
|
160
|
-
EFormulaFilterFieldKeys["duration"] = "duration";
|
|
161
|
-
EFormulaFilterFieldKeys["number"] = "number";
|
|
162
161
|
EFormulaFilterFieldKeys["numberRange"] = "numberRange";
|
|
163
162
|
EFormulaFilterFieldKeys["string"] = "string";
|
|
164
163
|
EFormulaFilterFieldKeys["lastTimeValue"] = "lastTimeValue";
|
|
@@ -690,15 +689,13 @@ var getFormulaFilterValues = function (filterValue) {
|
|
|
690
689
|
case exports.EFormatTypes.DAY_OF_MONTH:
|
|
691
690
|
case exports.EFormatTypes.WEEK:
|
|
692
691
|
case exports.EFormatTypes.HOUR:
|
|
693
|
-
var _g = formValues, _h = exports.EFormulaFilterFieldKeys.
|
|
694
|
-
return isRangeFilteringMethod(filteringMethod)
|
|
695
|
-
? stringifyNumbersRange(numberRange)
|
|
696
|
-
: [String(number !== null && number !== void 0 ? number : 0)];
|
|
692
|
+
var _g = formValues, _h = exports.EFormulaFilterFieldKeys.numberRange, numberRange = _g[_h];
|
|
693
|
+
return isRangeFilteringMethod(filteringMethod) ? stringifyNumbersRange(numberRange) : [];
|
|
697
694
|
case exports.EFormatTypes.DURATION:
|
|
698
|
-
var
|
|
695
|
+
var _j = formValues, _k = exports.EFormulaFilterFieldKeys.numberRange, durationRange = _j[_k], _l = exports.EFormulaFilterFieldKeys.durationUnit, durationUnit = _j[_l];
|
|
699
696
|
return isRangeFilteringMethod(filteringMethod)
|
|
700
697
|
? convertDurationRangeToSecond(durationRange, durationUnit)
|
|
701
|
-
: [
|
|
698
|
+
: [];
|
|
702
699
|
}
|
|
703
700
|
return [];
|
|
704
701
|
};
|