@infomaximum/widget-sdk 3.24.1 → 3.26.0-beta
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 +10 -11
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,8 @@ declare enum EControlType {
|
|
|
34
34
|
eventsColor = "eventsColor",
|
|
35
35
|
inputMarkdown = "inputMarkdown",
|
|
36
36
|
filter = "filter",
|
|
37
|
-
actionOnClick = "actionOnClick"
|
|
37
|
+
actionOnClick = "actionOnClick",
|
|
38
|
+
eventsPicker = "eventsPicker"
|
|
38
39
|
}
|
|
39
40
|
/** Конфигурация элемента управления настройкой */
|
|
40
41
|
interface IControlRecord<Settings extends object, Value, ControlType = EControlType> {
|
|
@@ -403,13 +404,6 @@ interface IWidgetFiltration {
|
|
|
403
404
|
removeStagesFilter(widgetKey: string): void;
|
|
404
405
|
}
|
|
405
406
|
|
|
406
|
-
interface IPlacement {
|
|
407
|
-
left: number;
|
|
408
|
-
top: number;
|
|
409
|
-
width: number;
|
|
410
|
-
height: number;
|
|
411
|
-
zIndex: number;
|
|
412
|
-
}
|
|
413
407
|
declare enum EWidgetFilterMode {
|
|
414
408
|
DEFAULT = "DEFAULT",
|
|
415
409
|
SINGLE = "SINGLE",
|
|
@@ -787,7 +781,6 @@ interface IBaseWidgetSettings {
|
|
|
787
781
|
filters?: (IFormulaFilterValue | string)[];
|
|
788
782
|
filterMode?: EWidgetFilterMode;
|
|
789
783
|
ignoreFilters?: boolean;
|
|
790
|
-
placement: IPlacement;
|
|
791
784
|
sorting?: IWidgetSortingIndicator[];
|
|
792
785
|
actions?: IWidgetAction[];
|
|
793
786
|
displayCondition?: TDisplayCondition;
|
|
@@ -1186,6 +1179,10 @@ type TLaunchActionParams = {
|
|
|
1186
1179
|
filters: ICalculatorFilter[];
|
|
1187
1180
|
needConfirmation?: boolean;
|
|
1188
1181
|
};
|
|
1182
|
+
type TWidgetContainer = {
|
|
1183
|
+
/** Имеет ли контейнер виджета ограниченную максимальную высоту */
|
|
1184
|
+
isMaxHeightLimited: boolean;
|
|
1185
|
+
};
|
|
1189
1186
|
interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetSettings> {
|
|
1190
1187
|
/** guid виджета */
|
|
1191
1188
|
guid: string;
|
|
@@ -1206,8 +1203,10 @@ interface IWidgetProps<WidgetSettings extends IBaseWidgetSettings = IBaseWidgetS
|
|
|
1206
1203
|
rootViewContainer: HTMLDivElement;
|
|
1207
1204
|
/** Объект для управления плейсхолдером */
|
|
1208
1205
|
placeholder: IWidgetPlaceholderController;
|
|
1209
|
-
/** Контекст
|
|
1206
|
+
/** Контекст виджетов */
|
|
1210
1207
|
widgetsContext: IWidgetsContext;
|
|
1208
|
+
/** Данные о контейнере виджета */
|
|
1209
|
+
widgetContainer: TWidgetContainer;
|
|
1211
1210
|
/** Запуск действия */
|
|
1212
1211
|
launchAction(params: TLaunchActionParams): void;
|
|
1213
1212
|
}
|
|
@@ -1381,4 +1380,4 @@ declare global {
|
|
|
1381
1380
|
}
|
|
1382
1381
|
}
|
|
1383
1382
|
|
|
1384
|
-
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionScript, 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 ICommonColumnIndicator, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, 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 IPanelDescription, type IPanelDescriptionCreator, type IPieCalculator, type IPieCalculatorInput, type IPieCalculatorOutput, type
|
|
1383
|
+
export { ECalculatorFilterMethods, EColorMode, EControlType, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMeasureTemplateNames, EProcessFilterNames, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionScript, 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 ICommonColumnIndicator, type IControlRecord, type ICustomAddButtonProps, type ICustomWidgetProps, type IDefinition, type IDimensionSelection, type IDimensionSelectionByFormula, type IDisplayPredicate, 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 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 ISelectOption, type ISortOrder, type IStagesFilterValue, type ITwoLimitsCalculator, type ITwoLimitsCalculatorExportInput, type ITwoLimitsCalculatorInput, type ITwoLimitsCalculatorOutput, type ITypeCalculator, type ITypeCalculatorInput, type ITypeCalculatorOutput, type IVertex, type IWidget, type IWidgetAction, type IWidgetActionInput, type IWidgetColumnIndicator, type IWidgetDimension, type IWidgetDimensionHierarchy, type IWidgetEntity, type IWidgetFilter, type IWidgetFiltration, type IWidgetFormatting, type IWidgetFormulaFilterValue, type IWidgetIndicator, type IWidgetMeasure, type IWidgetPlaceholderController, type IWidgetProcess, type IWidgetProps, type IWidgetSortingIndicator, type IWidgetTable, type IWidgetTableColumn, type IWidgetsContext, type TBoundedContentWithIndicator, type TColor, type TColumnIndicatorValue, type TDefineWidgetOptions, type TDisplayCondition, type TDisplayMode, type TEmptyRecord, type TGroupLevelRecord, type TLaunchActionParams, type TProcessIndicatorValue, type TRecordAccessor, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionInputValue, 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, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, mapVariablesToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
|
package/dist/index.esm.js
CHANGED
|
@@ -941,6 +941,7 @@ var EControlType;
|
|
|
941
941
|
EControlType["inputMarkdown"] = "inputMarkdown";
|
|
942
942
|
EControlType["filter"] = "filter";
|
|
943
943
|
EControlType["actionOnClick"] = "actionOnClick";
|
|
944
|
+
EControlType["eventsPicker"] = "eventsPicker";
|
|
944
945
|
})(EControlType || (EControlType = {}));
|
|
945
946
|
|
|
946
947
|
var ESortDirection;
|
package/dist/index.js
CHANGED
|
@@ -942,6 +942,7 @@ exports.EControlType = void 0;
|
|
|
942
942
|
EControlType["inputMarkdown"] = "inputMarkdown";
|
|
943
943
|
EControlType["filter"] = "filter";
|
|
944
944
|
EControlType["actionOnClick"] = "actionOnClick";
|
|
945
|
+
EControlType["eventsPicker"] = "eventsPicker";
|
|
945
946
|
})(exports.EControlType || (exports.EControlType = {}));
|
|
946
947
|
|
|
947
948
|
exports.ESortDirection = void 0;
|