@infomaximum/widget-sdk 4.0.0-beta55 → 4.0.0-beta57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +24 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -567,12 +567,17 @@ type TDisplayMode = "preview" | "full";
|
|
|
567
567
|
interface IDisplayRule {
|
|
568
568
|
color: TColor;
|
|
569
569
|
}
|
|
570
|
+
interface IWorkspaceDisplayRule extends IDisplayRule {
|
|
571
|
+
groupName: string;
|
|
572
|
+
}
|
|
570
573
|
interface IWidgetsContext {
|
|
571
574
|
/** используемый язык в системе */
|
|
572
575
|
language: ELanguages;
|
|
573
576
|
processes: Map<string, IWidgetProcess>;
|
|
574
|
-
reportMeasures: TNullable<Map<string,
|
|
575
|
-
workspaceMeasures: TNullable<Map<string,
|
|
577
|
+
reportMeasures: TNullable<Map<string, ICommonMeasures>>;
|
|
578
|
+
workspaceMeasures: TNullable<Map<string, ICommonMeasures>>;
|
|
579
|
+
reportDimensions: TNullable<Map<string, ICommonDimensions>>;
|
|
580
|
+
workspaceDimensions: TNullable<Map<string, Map<string, ICommonDimensions>>>;
|
|
576
581
|
/** Переменные отчета */
|
|
577
582
|
variables: Map<string, TWidgetVariable>;
|
|
578
583
|
/** Метод установки значения переменной отчета */
|
|
@@ -591,7 +596,7 @@ interface IWidgetsContext {
|
|
|
591
596
|
tables: Set<string>;
|
|
592
597
|
filtrationMode: TFiltrationMode;
|
|
593
598
|
reportDisplayRules: Map<string, IDisplayRule>;
|
|
594
|
-
workspaceDisplayRules: Map<number, Map<string,
|
|
599
|
+
workspaceDisplayRules: Map<number, Map<string, IWorkspaceDisplayRule>>;
|
|
595
600
|
viewNameByKey: Map<string, string>;
|
|
596
601
|
fetchColumnsByTableName(tableName: string): Promise<IWidgetTableColumn[] | undefined>;
|
|
597
602
|
}
|
|
@@ -850,12 +855,16 @@ interface ICommonState {
|
|
|
850
855
|
/** @deprecated удалить после выполнения BI-13602, задача BI-13650 */
|
|
851
856
|
guid: string;
|
|
852
857
|
}
|
|
853
|
-
interface
|
|
858
|
+
interface ICommonMeasures {
|
|
854
859
|
name: string;
|
|
855
860
|
/** @deprecated удалить после выполнения BI-13602, задача BI-13650 */
|
|
856
861
|
guid: string;
|
|
857
862
|
formula: string;
|
|
858
863
|
}
|
|
864
|
+
interface ICommonDimensions {
|
|
865
|
+
name: string;
|
|
866
|
+
formula: string;
|
|
867
|
+
}
|
|
859
868
|
type TColumnIndicatorValue = {
|
|
860
869
|
mode: EWidgetIndicatorValueModes.FORMULA;
|
|
861
870
|
formula: string;
|
|
@@ -1522,6 +1531,14 @@ type TContextMenuButtonOptions = {
|
|
|
1522
1531
|
items: TContextMenuRow[];
|
|
1523
1532
|
};
|
|
1524
1533
|
|
|
1534
|
+
interface IViewInputValue {
|
|
1535
|
+
value: TNullable<string> | TNullable<string>[];
|
|
1536
|
+
dataType: ESimpleDataType;
|
|
1537
|
+
}
|
|
1538
|
+
interface IViewContext {
|
|
1539
|
+
variables: Map<string, IViewInputValue>;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1525
1542
|
type TLaunchActionParams = {
|
|
1526
1543
|
action: TAction;
|
|
1527
1544
|
onSuccess: () => void;
|
|
@@ -1563,6 +1580,8 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
1563
1580
|
placeholderValues: IWidgetPlaceholderValues;
|
|
1564
1581
|
/** Контекст виджета */
|
|
1565
1582
|
widgetsContext: IWidgetsContext;
|
|
1583
|
+
/**Контекст образа */
|
|
1584
|
+
viewContext: IViewContext;
|
|
1566
1585
|
/** Данные о контейнере виджета */
|
|
1567
1586
|
widgetContainer: TWidgetContainer;
|
|
1568
1587
|
/** Запуск действия */
|
|
@@ -1742,4 +1761,4 @@ declare global {
|
|
|
1742
1761
|
}
|
|
1743
1762
|
}
|
|
1744
1763
|
|
|
1745
|
-
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, ECustomSelectTemplates, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESortDirection, ESortingValueModes, 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 IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorVariable, type ICalculatorVariablesValues, type IColoredValue, type
|
|
1764
|
+
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, ECustomSelectTemplates, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFontWeight, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESortDirection, ESortingValueModes, 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 IBaseDimensionsAndMeasuresCalculator, type IBaseDimensionsAndMeasuresCalculatorInput, type IBaseDimensionsAndMeasuresCalculatorOutput, type IBaseWidgetSettings, type ICalculator, type ICalculatorDimensionInput, type ICalculatorDimensionOutput, type ICalculatorFactory, type ICalculatorFilter, type ICalculatorIndicatorInput, type ICalculatorIndicatorOutput, type ICalculatorMeasureInput, type ICalculatorMeasureOutput, type ICalculatorVariable, type ICalculatorVariablesValues, type 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 IGraphElement, type IGroupSetDescription, type IGroupSetRecord, type IGroupSettings, type IHistogramBin, type IHistogramCalculator, type IHistogramCalculatorInput, type IHistogramCalculatorOutput, type ILens, type IMarkdownMeasure, type IMeasureMenuConfig, 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 ISelectOption, type ISelectSystemOption, type ISortOrder, type ISortingMenuConfig, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IViewContext, type IViewInputValue, type IWidget, type IWidgetAction, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetFormulaFilterValue, type IWidgetIndicator, type IWidgetIndicatorMenuConfig, type IWidgetMeasure, type IWidgetPersistValue, type IWidgetPlaceholderController, type IWidgetPlaceholderValues, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetTable, type IWidgetTableColumn, type IWidgetsContext, type IWorkspaceDisplayRule, type TAction, type TActionOnClickParameter, type TActionOpenView, type TActionsOnClick, type TBoundedContentWithIndicator, type TColor, 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 TFiltrationMode, type TGroupLevelRecord, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchOptions, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionParameter, type TWidgetContainer, type TWidgetFilterValue, type TWidgetFiltering, type TWidgetLevelRecord, type TWidgetSortingValue, type TWidgetSortingValueRelatedWidgetDimension, type TWidgetSortingValueRelatedWidgetIndicator, type TWidgetSortingValueRelatedWidgetMeasure, type TWidgetVariable, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isExecuteScriptActionValid, isFormulaFilterValue, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
|