@infomaximum/widget-sdk 4.0.0-beta37 → 4.0.0-beta38
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 -20
- package/dist/index.esm.js +9 -9
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -929,8 +929,9 @@ interface ISelectOption {
|
|
|
929
929
|
value: string;
|
|
930
930
|
label: string;
|
|
931
931
|
disabled?: boolean;
|
|
932
|
+
rightIcon?: "fx" | string;
|
|
932
933
|
}
|
|
933
|
-
declare enum
|
|
934
|
+
declare enum ESelectOptionTypes {
|
|
934
935
|
DIVIDER = "DIVIDER",
|
|
935
936
|
SYSTEM = "SYSTEM",
|
|
936
937
|
GROUP = "GROUP",
|
|
@@ -941,41 +942,43 @@ declare enum ECustomSelectTemplates {
|
|
|
941
942
|
FORMULA = "FORMULA",
|
|
942
943
|
DIMENSION_GROUPS = "DIMENSION_GROUPS"
|
|
943
944
|
}
|
|
944
|
-
interface
|
|
945
|
-
type:
|
|
945
|
+
interface ISelectDividerOption {
|
|
946
|
+
type: ESelectOptionTypes.DIVIDER;
|
|
946
947
|
}
|
|
947
|
-
interface
|
|
948
|
-
type:
|
|
949
|
-
template:
|
|
948
|
+
interface ISelectSystemOption<T extends string = string> {
|
|
949
|
+
type: ESelectOptionTypes.SYSTEM;
|
|
950
|
+
template: T;
|
|
950
951
|
}
|
|
951
|
-
interface
|
|
952
|
-
type:
|
|
952
|
+
interface ISelectGroupOption {
|
|
953
|
+
type: ESelectOptionTypes.GROUP;
|
|
953
954
|
label: string;
|
|
954
|
-
options:
|
|
955
|
+
options: IAddButtonSelectOption[];
|
|
955
956
|
icon: string;
|
|
956
957
|
}
|
|
957
|
-
type
|
|
958
|
-
type
|
|
959
|
-
interface
|
|
960
|
-
type:
|
|
958
|
+
type TSelectFetchOptions = () => Promise<IAddButtonSelectOption[]>;
|
|
959
|
+
type TSelectChildOptions = IAddButtonSelectOption[] | TSelectFetchOptions;
|
|
960
|
+
interface ISelectBranchOption {
|
|
961
|
+
type: ESelectOptionTypes.BRANCH;
|
|
961
962
|
label: string;
|
|
962
|
-
options:
|
|
963
|
+
options: TSelectChildOptions;
|
|
963
964
|
icon?: string;
|
|
964
965
|
disabled?: boolean;
|
|
965
966
|
}
|
|
966
|
-
interface
|
|
967
|
-
type:
|
|
967
|
+
interface ISelectLeafOption {
|
|
968
|
+
type: ESelectOptionTypes.LEAF;
|
|
968
969
|
label: string;
|
|
969
970
|
value: string;
|
|
970
971
|
onSelect: <T = object>(value: string, update: <R extends object>(f: (prevItems: (T | R)[]) => (T | R)[]) => void) => void;
|
|
971
972
|
icon?: string;
|
|
972
973
|
disabled?: boolean;
|
|
973
974
|
}
|
|
974
|
-
type
|
|
975
|
+
type IAddButtonSelectOption = ISelectDividerOption | ISelectGroupOption | ISelectBranchOption | ISelectLeafOption;
|
|
976
|
+
type TCustomAddButtonSelectOption = ISelectSystemOption<ECustomSelectTemplates> | IAddButtonSelectOption;
|
|
977
|
+
type TMeasureAddButtonSelectOption = IAddButtonSelectOption;
|
|
975
978
|
interface ICustomAddButtonProps {
|
|
976
|
-
options:
|
|
979
|
+
options: TSelectChildOptions;
|
|
977
980
|
hasDropdown?: boolean;
|
|
978
|
-
onClick?:
|
|
981
|
+
onClick?: ISelectLeafOption["onSelect"];
|
|
979
982
|
}
|
|
980
983
|
interface IWidgetIndicatorMenuConfig {
|
|
981
984
|
hideTablesColumnsOptions?: boolean;
|
|
@@ -983,6 +986,7 @@ interface IWidgetIndicatorMenuConfig {
|
|
|
983
986
|
hideQuantityOption?: boolean;
|
|
984
987
|
}
|
|
985
988
|
interface IMeasureMenuConfig extends IWidgetIndicatorMenuConfig {
|
|
989
|
+
options?: TMeasureAddButtonSelectOption;
|
|
986
990
|
}
|
|
987
991
|
interface ISortingMenuConfig extends IWidgetIndicatorMenuConfig {
|
|
988
992
|
}
|
|
@@ -1632,4 +1636,4 @@ declare global {
|
|
|
1632
1636
|
}
|
|
1633
1637
|
}
|
|
1634
1638
|
|
|
1635
|
-
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType,
|
|
1639
|
+
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, ECustomSelectTemplates, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, type IActionCommon, type IActionGoToUrl, type IActionOpenView, type IActionRunScript, type IActionScript, type IActionScriptField, 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 ICommonColumnIndicator, 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 ILaunchActionSubscribers, 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 IWidget, type IWidgetActionInput, 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 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 TFiltrationMode, type TGroupLevelRecord, type TLaunchActionParams, type TMeasureAddButtonSelectOption, type TProcessIndicatorValue, type TRecordAccessor, type TSelectChildOptions, type TSelectFetchOptions, type TSelectivePartial, type TSortDirection, type TUpdateSelection, type TValuePath, type TWidgetActionCommonInputValue, 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, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
|
package/dist/index.esm.js
CHANGED
|
@@ -988,14 +988,14 @@ var EControlType;
|
|
|
988
988
|
EControlType["eventsPicker"] = "eventsPicker";
|
|
989
989
|
})(EControlType || (EControlType = {}));
|
|
990
990
|
|
|
991
|
-
var
|
|
992
|
-
(function (
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
})(
|
|
991
|
+
var ESelectOptionTypes;
|
|
992
|
+
(function (ESelectOptionTypes) {
|
|
993
|
+
ESelectOptionTypes["DIVIDER"] = "DIVIDER";
|
|
994
|
+
ESelectOptionTypes["SYSTEM"] = "SYSTEM";
|
|
995
|
+
ESelectOptionTypes["GROUP"] = "GROUP";
|
|
996
|
+
ESelectOptionTypes["BRANCH"] = "BRANCH";
|
|
997
|
+
ESelectOptionTypes["LEAF"] = "LEAF";
|
|
998
|
+
})(ESelectOptionTypes || (ESelectOptionTypes = {}));
|
|
999
999
|
var ECustomSelectTemplates;
|
|
1000
1000
|
(function (ECustomSelectTemplates) {
|
|
1001
1001
|
ECustomSelectTemplates["FORMULA"] = "FORMULA";
|
|
@@ -1104,4 +1104,4 @@ var getLocalizedText = function (language, locObj, props) {
|
|
|
1104
1104
|
return localization.getLocalized(locObj, props);
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType,
|
|
1107
|
+
export { EActionTypes, ECalculatorFilterMethods, EColorMode, EColorScope, EControlType, ECustomSelectTemplates, EDbType, EDimensionTemplateNames, EDisplayConditionMode, EDrawerPlacement, EDurationUnit, EEventMeasureTemplateNames, EFormatTypes, EFormattingPresets, EFormulaFilterFieldKeys, EIndicatorType, ELastTimeUnit, EMarkdownDisplayMode, EMeasureTemplateNames, EOpenViewMode, EProcessFilterNames, ESelectOptionTypes, ESimpleDataType, ESortDirection, ESortingValueModes, ETransitionMeasureTemplateNames, EViewType, EWidgetActionInputMode, EWidgetFilterMode, EWidgetIndicatorType, EWidgetIndicatorValueModes, bindContentWithIndicator, bindContentsWithIndicators, checkDisplayCondition, dimensionTemplateFormulas, escapeSpecialCharacters, eventMeasureTemplateFormulas, fillTemplateString, formulaFilterMethods, generateColumnFormula, getDimensionFormula, getDisplayConditionFormula, getEventMeasureFormula, getLocalizedText, getMeasureFormula, getTransitionMeasureFormula, isActionValid, isHierarchy, mapDimensionsToInputs, mapEventMeasuresToInputs, mapFormulaFilterToCalculatorInput, mapFormulaFiltersToInputs, mapMeasuresToInputs, mapSortingToInputs, mapTransitionMeasuresToInputs, measureTemplateFormulas, prepareValuesForSql, replaceDisplayCondition, replaceFiltersBySelection, replaceHierarchiesWithDimensions, selectDimensionFromHierarchy, transitionMeasureTemplateFormulas, unescapeSpecialCharacters, updateDefaultModeSelection, updateMultiModeSelection, updateSingleModeSelection };
|
package/dist/index.js
CHANGED
|
@@ -989,14 +989,14 @@ exports.EControlType = void 0;
|
|
|
989
989
|
EControlType["eventsPicker"] = "eventsPicker";
|
|
990
990
|
})(exports.EControlType || (exports.EControlType = {}));
|
|
991
991
|
|
|
992
|
-
exports.
|
|
993
|
-
(function (
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
})(exports.
|
|
992
|
+
exports.ESelectOptionTypes = void 0;
|
|
993
|
+
(function (ESelectOptionTypes) {
|
|
994
|
+
ESelectOptionTypes["DIVIDER"] = "DIVIDER";
|
|
995
|
+
ESelectOptionTypes["SYSTEM"] = "SYSTEM";
|
|
996
|
+
ESelectOptionTypes["GROUP"] = "GROUP";
|
|
997
|
+
ESelectOptionTypes["BRANCH"] = "BRANCH";
|
|
998
|
+
ESelectOptionTypes["LEAF"] = "LEAF";
|
|
999
|
+
})(exports.ESelectOptionTypes || (exports.ESelectOptionTypes = {}));
|
|
1000
1000
|
exports.ECustomSelectTemplates = void 0;
|
|
1001
1001
|
(function (ECustomSelectTemplates) {
|
|
1002
1002
|
ECustomSelectTemplates["FORMULA"] = "FORMULA";
|