@databrainhq/plugin 0.15.55 → 0.15.57
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/package.json +1 -1
- package/dist/components/Accordion/index.d.ts +0 -34
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
- package/dist/components/Alert/index.d.ts +0 -12
- package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
- package/dist/components/Badge/index.d.ts +0 -10
- package/dist/components/Button/index.d.ts +0 -14
- package/dist/components/ButtonGroup/index.d.ts +0 -16
- package/dist/components/Chart/SingleValueChart.d.ts +0 -38
- package/dist/components/Chart/index.d.ts +0 -47
- package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
- package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
- package/dist/components/ChartModal/index.d.ts +0 -3
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
- package/dist/components/ChartPopup/index.d.ts +0 -28
- package/dist/components/ChartReportPanel/index.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
- package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
- package/dist/components/ChartTypePanel/index.d.ts +0 -15
- package/dist/components/Checkbox/index.d.ts +0 -11
- package/dist/components/ColorField/ColorField.d.ts +0 -13
- package/dist/components/DataType/index.d.ts +0 -9
- package/dist/components/DateRangePicker/index.d.ts +0 -36
- package/dist/components/DraggableItem/index.d.ts +0 -7
- package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
- package/dist/components/Error/index.d.ts +0 -6
- package/dist/components/ErrorFallback/index.d.ts +0 -2
- package/dist/components/ExternalMetricForm/index.d.ts +0 -11
- package/dist/components/FileUploader/index.d.ts +0 -6
- package/dist/components/FilterDropDown/index.d.ts +0 -32
- package/dist/components/FilterField/index.d.ts +0 -40
- package/dist/components/Flex/index.d.ts +0 -13
- package/dist/components/FloatingDropDown/index.d.ts +0 -43
- package/dist/components/FullScreenChart/index.d.ts +0 -8
- package/dist/components/GaugeLegend/index.d.ts +0 -12
- package/dist/components/GenerateMetric/index.d.ts +0 -3
- package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
- package/dist/components/GlobalFilters/Filters.d.ts +0 -29
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -36
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
- package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
- package/dist/components/GlobalFilters/index.d.ts +0 -82
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
- package/dist/components/HorizontalStackTable/index.d.ts +0 -18
- package/dist/components/Icons/Logos/index.d.ts +0 -33
- package/dist/components/Icons/index.d.ts +0 -9
- package/dist/components/InfoTooltip/index.d.ts +0 -31
- package/dist/components/InputField/index.d.ts +0 -20
- package/dist/components/List/index.d.ts +0 -43
- package/dist/components/Loader/index.d.ts +0 -6
- package/dist/components/Menu/index.d.ts +0 -32
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -13
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -39
- package/dist/components/MetricChart/index.d.ts +0 -5
- package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -21
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
- package/dist/components/MetricCreation/index.d.ts +0 -5
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -18
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -19
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/index.d.ts +0 -25
- package/dist/components/MetricList/MetricList.d.ts +0 -79
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -20
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -49
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -16
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -19
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -17
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -106
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
- package/dist/components/MetricList/components/index.d.ts +0 -7
- package/dist/components/MetricList/index.d.ts +0 -2
- package/dist/components/MetricTable/index.d.ts +0 -7
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/ModalFooter.d.ts +0 -5
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelectDropdown/index.d.ts +0 -45
- package/dist/components/Panel/index.d.ts +0 -17
- package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
- package/dist/components/PivotTable/index.d.ts +0 -8
- package/dist/components/PivotTable/transformData.d.ts +0 -7
- package/dist/components/PopoverMenu/index.d.ts +0 -39
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/RadioButton/index.d.ts +0 -16
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -17
- package/dist/components/ScheduleEmail/index.d.ts +0 -18
- package/dist/components/SearchDropdown/index.d.ts +0 -14
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -16
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
- package/dist/components/SearchMetricData/index.d.ts +0 -1
- package/dist/components/SearchTab/index.d.ts +0 -13
- package/dist/components/Select/index.d.ts +0 -47
- package/dist/components/SelfHostControl/index.d.ts +0 -4
- package/dist/components/SkeletonLoader/index.d.ts +0 -9
- package/dist/components/SpinningLoader/index.d.ts +0 -2
- package/dist/components/Switch/SwitchInput.d.ts +0 -10
- package/dist/components/Switch/index.d.ts +0 -11
- package/dist/components/Tab/index.d.ts +0 -14
- package/dist/components/Table/DebouncedInput.d.ts +0 -6
- package/dist/components/Table/Filter.d.ts +0 -7
- package/dist/components/Table/index.d.ts +0 -39
- package/dist/components/Tabs/index.d.ts +0 -41
- package/dist/components/TagInputField/index.d.ts +0 -33
- package/dist/components/Text/index.d.ts +0 -15
- package/dist/components/TextAreaField/index.d.ts +0 -24
- package/dist/components/ThemeBlock/index.d.ts +0 -8
- package/dist/components/TimeGrainField/index.d.ts +0 -17
- package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
- package/dist/components/ToggleIconBtn/index.d.ts +0 -14
- package/dist/components/index.d.ts +0 -67
- package/dist/consts/api.d.ts +0 -81
- package/dist/consts/app.d.ts +0 -157
- package/dist/consts/index.d.ts +0 -2
- package/dist/consts/metricOptions.d.ts +0 -209
- package/dist/consts/validations.d.ts +0 -24
- package/dist/containers/Dashboard/Dashboard.d.ts +0 -85
- package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -54
- package/dist/containers/Dashboard/index.d.ts +0 -2
- package/dist/containers/DbnStyles.d.ts +0 -14
- package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -55
- package/dist/containers/Metric/MergedMetric.d.ts +0 -54
- package/dist/containers/Metric/index.d.ts +0 -97
- package/dist/containers/PluginProvider.d.ts +0 -7
- package/dist/containers/index.d.ts +0 -3
- package/dist/helpers/adaptiveFormatter.d.ts +0 -6
- package/dist/helpers/areArraysEqual.d.ts +0 -1
- package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
- package/dist/helpers/cardActions.d.ts +0 -5
- package/dist/helpers/chartOptions.d.ts +0 -93
- package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
- package/dist/helpers/conditionalFormatting.d.ts +0 -3
- package/dist/helpers/copyToClipboard.d.ts +0 -4
- package/dist/helpers/createMetric.d.ts +0 -35
- package/dist/helpers/darkColorIdentifier.d.ts +0 -2
- package/dist/helpers/dateFormatter.d.ts +0 -1
- package/dist/helpers/generateColorPalette.d.ts +0 -1
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
- package/dist/helpers/getColumnType.d.ts +0 -2
- package/dist/helpers/getComboRangeLabel.d.ts +0 -5
- package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
- package/dist/helpers/getModifiedQuery.d.ts +0 -78
- package/dist/helpers/getNextScheduledTime.d.ts +0 -13
- package/dist/helpers/getTimeFilterValue.d.ts +0 -12
- package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
- package/dist/helpers/groupArray.d.ts +0 -1
- package/dist/helpers/groupBy.d.ts +0 -25
- package/dist/helpers/index.d.ts +0 -16
- package/dist/helpers/numberFormatter.d.ts +0 -1
- package/dist/helpers/setOnDateChange.d.ts +0 -11
- package/dist/helpers/sqlMetadata.d.ts +0 -7
- package/dist/helpers/timeseries.d.ts +0 -35
- package/dist/helpers/timeseriesOption.d.ts +0 -72
- package/dist/helpers/tooltipFormatter.d.ts +0 -27
- package/dist/helpers/treeMap.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/useArchiveMetric.d.ts +0 -10
- package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
- package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
- package/dist/hooks/useDashboardContext.d.ts +0 -39
- package/dist/hooks/useDatasetMetric.d.ts +0 -50
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
- package/dist/hooks/useDrag.d.ts +0 -10
- package/dist/hooks/useDragAndDropState.d.ts +0 -10
- package/dist/hooks/useDrop.d.ts +0 -13
- package/dist/hooks/useEmbeddedMetric.d.ts +0 -27
- package/dist/hooks/useExternalMetric.d.ts +0 -55
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -16
- package/dist/hooks/useGenerateMetric.d.ts +0 -64
- package/dist/hooks/useMetricCard.d.ts +0 -130
- package/dist/hooks/useMetricConfig.d.ts +0 -63
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -37
- package/dist/hooks/useOutsideAlerter.d.ts +0 -14
- package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
- package/dist/hooks/usePythonResults.d.ts +0 -17
- package/dist/hooks/useScheduleEmail.d.ts +0 -38
- package/dist/hooks/useSearch.d.ts +0 -55
- package/dist/hooks/useUnderlyingData.d.ts +0 -32
- package/dist/index.d.ts +0 -8
- package/dist/queries/externalDashboard.mutation.d.ts +0 -61
- package/dist/queries/externalDashboard.query.d.ts +0 -20
- package/dist/queries/index.d.ts +0 -1
- package/dist/queries/metric.mutation.d.ts +0 -57
- package/dist/queries/metric.query.d.ts +0 -12
- package/dist/types/app.d.ts +0 -962
- package/dist/types/dragAndDropProps.d.ts +0 -70
- package/dist/types/index.d.ts +0 -3
- package/dist/types/metricCreate.d.ts +0 -766
- package/dist/types/queryTypes.d.ts +0 -350
- package/dist/usa-c14e93e4.mjs +0 -15112
- package/dist/utils/arrayToCsvString.d.ts +0 -6
- package/dist/utils/colors.d.ts +0 -2
- package/dist/utils/fetcher.d.ts +0 -13
- package/dist/utils/getChartAttributes.d.ts +0 -98
- package/dist/utils/getChartImage.d.ts +0 -3
- package/dist/utils/getChartOptions.d.ts +0 -42
- package/dist/utils/getFormattedDataType.d.ts +0 -1
- package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
- package/dist/utils/getValidJson.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/pivotDataTransform.d.ts +0 -7
- package/dist/utils/popoverPosition.d.ts +0 -2
- package/dist/utils/theme.d.ts +0 -42
- package/dist/webcomponents.d.ts +0 -11
- package/dist/webcomponents.es.js +0 -223696
- package/dist/webcomponents.umd.js +0 -4399
- package/dist/world-8db01cf5.mjs +0 -45896
package/dist/types/app.d.ts
DELETED
|
@@ -1,962 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { ColumnSizingState } from '@tanstack/react-table';
|
|
3
|
-
import { SelectedColumn, TableObjectType, Aggregate, ComparisonLagSettings } from './metricCreate';
|
|
4
|
-
import { CHART_TYPES, ICONS_LIST } from '@/consts';
|
|
5
|
-
export type ChildrenProps = {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export type GlobalFiltersDefaultValue = string[] | string | number | number[] | {
|
|
9
|
-
startDate: Date | undefined;
|
|
10
|
-
endDate: Date | undefined;
|
|
11
|
-
timeGrainValue: string;
|
|
12
|
-
value: string;
|
|
13
|
-
} | undefined | {
|
|
14
|
-
min: number | null;
|
|
15
|
-
max: number | null;
|
|
16
|
-
} | FloatingDropDownOption[];
|
|
17
|
-
export type TableColumn = {
|
|
18
|
-
name: string;
|
|
19
|
-
dataType: string;
|
|
20
|
-
isDefault?: boolean;
|
|
21
|
-
label?: string;
|
|
22
|
-
isShowHorizontal?: boolean;
|
|
23
|
-
defaultValue?: GlobalFiltersDefaultValue;
|
|
24
|
-
isClientScoped?: boolean;
|
|
25
|
-
clientColumn?: string;
|
|
26
|
-
clientColumnType?: string;
|
|
27
|
-
isManualOptions?: boolean;
|
|
28
|
-
manualOptions?: string[];
|
|
29
|
-
as: string;
|
|
30
|
-
sql?: string;
|
|
31
|
-
type?: 'custom' | 'default' | 'python';
|
|
32
|
-
isAggregate?: boolean;
|
|
33
|
-
alias?: string;
|
|
34
|
-
synonyms?: string[];
|
|
35
|
-
columnTypeConfig?: string | Record<string, any>;
|
|
36
|
-
dataMartColumnAlias?: string;
|
|
37
|
-
transform?: string;
|
|
38
|
-
parentAlias?: string;
|
|
39
|
-
};
|
|
40
|
-
export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily' | 'quarterly';
|
|
41
|
-
export type TimeSeriesType = 'bar' | 'line' | 'area' | 'stack';
|
|
42
|
-
export type TimeSeriesSettingsType = {
|
|
43
|
-
seriesType: {
|
|
44
|
-
type: TimeSeriesType;
|
|
45
|
-
column: string;
|
|
46
|
-
}[];
|
|
47
|
-
groupBySettings: {
|
|
48
|
-
isDynamic: boolean;
|
|
49
|
-
options: string[];
|
|
50
|
-
value: string | TimeSeriesGroupType;
|
|
51
|
-
fillXAxis: boolean;
|
|
52
|
-
isGlobalFilter?: boolean;
|
|
53
|
-
globalFilterOption?: FloatingDropDownOption;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export type TimeSeriesSettingsProps = {
|
|
57
|
-
settings: TimeSeriesSettingsType;
|
|
58
|
-
onChange: (timeSeriesSettings: TimeSeriesSettingsType | ((ts: TimeSeriesSettingsType) => TimeSeriesSettingsType)) => void;
|
|
59
|
-
yAxisList: string[];
|
|
60
|
-
onChangeTimeseriesFormat?: (value: FloatingDropDownOption) => void;
|
|
61
|
-
globalFilterOptions: FloatingDropDownOption[];
|
|
62
|
-
};
|
|
63
|
-
export type TimeSeriesChartProps = {
|
|
64
|
-
dataArray: Record<string, any>[];
|
|
65
|
-
timeStampKey: string;
|
|
66
|
-
valuekeys: string[];
|
|
67
|
-
type: TimeSeriesType;
|
|
68
|
-
groupBy: TimeSeriesGroupType;
|
|
69
|
-
margins: Record<string, number>;
|
|
70
|
-
legendSettings: LegendSettings;
|
|
71
|
-
labelSettings: LabelSettings;
|
|
72
|
-
axisSettings: AxisSettings;
|
|
73
|
-
colors?: string[];
|
|
74
|
-
customSettings: CustomSettings;
|
|
75
|
-
backGroundColor: BackgroundSettings;
|
|
76
|
-
tooltipSettings?: TooltipSettings;
|
|
77
|
-
};
|
|
78
|
-
export type LegendSettings = {
|
|
79
|
-
show?: boolean;
|
|
80
|
-
top?: number;
|
|
81
|
-
bottom?: number;
|
|
82
|
-
left?: number;
|
|
83
|
-
right?: number;
|
|
84
|
-
position?: string;
|
|
85
|
-
truncateLegendValue?: number;
|
|
86
|
-
legendShape?: string;
|
|
87
|
-
customise?: boolean;
|
|
88
|
-
fixedPosition?: string;
|
|
89
|
-
disableScroll?: boolean;
|
|
90
|
-
fontSize?: number;
|
|
91
|
-
fontFamily?: string;
|
|
92
|
-
fontWeight?: number;
|
|
93
|
-
color?: string;
|
|
94
|
-
};
|
|
95
|
-
export type MetricCardSettings = {
|
|
96
|
-
isDisableTitle?: boolean;
|
|
97
|
-
isDisableDesc?: boolean;
|
|
98
|
-
isEnableTitleWrap?: boolean;
|
|
99
|
-
isEnableDescWrap?: boolean;
|
|
100
|
-
};
|
|
101
|
-
export type MarginSettings = {
|
|
102
|
-
marginTop?: number;
|
|
103
|
-
marginBottom?: number;
|
|
104
|
-
marginLeft?: number;
|
|
105
|
-
marginRight?: number;
|
|
106
|
-
};
|
|
107
|
-
export type ComboAxisSettingsType = {
|
|
108
|
-
axis: string;
|
|
109
|
-
measures: string[];
|
|
110
|
-
isEnableStackBar?: boolean;
|
|
111
|
-
chartTypes: {
|
|
112
|
-
axis: string;
|
|
113
|
-
type: string;
|
|
114
|
-
}[];
|
|
115
|
-
numberFormatter?: string;
|
|
116
|
-
suffix?: string;
|
|
117
|
-
prefix?: string;
|
|
118
|
-
axisPosition?: string;
|
|
119
|
-
isEnableLabelFormatter?: boolean;
|
|
120
|
-
labelFormatter?: {
|
|
121
|
-
upperLimit: number;
|
|
122
|
-
lowerLimit: number;
|
|
123
|
-
label: string;
|
|
124
|
-
}[];
|
|
125
|
-
};
|
|
126
|
-
export type CustomSettings = {
|
|
127
|
-
hideXSplitLines?: boolean;
|
|
128
|
-
hideYSplitLines?: boolean;
|
|
129
|
-
hideXAxisLines?: boolean;
|
|
130
|
-
hideYAxisLines?: boolean;
|
|
131
|
-
hideYAxisTicks?: boolean;
|
|
132
|
-
hideXAxisTicks?: boolean;
|
|
133
|
-
isEnableSort?: boolean;
|
|
134
|
-
isCombineBarAxis?: boolean;
|
|
135
|
-
combinedAxisPrefix?: string;
|
|
136
|
-
combinedAxisSuffix?: string;
|
|
137
|
-
isEnableCurrentLine?: boolean;
|
|
138
|
-
isEnableFullScale?: boolean;
|
|
139
|
-
isEnableLabelFormatting?: boolean;
|
|
140
|
-
isEnableCustomLimits?: boolean;
|
|
141
|
-
isEnableTimezoneFormatting?: boolean;
|
|
142
|
-
isEnableBgColor?: boolean;
|
|
143
|
-
timeFormatter?: string;
|
|
144
|
-
customUppperLimit?: number;
|
|
145
|
-
customLowerLimit?: number;
|
|
146
|
-
isEnableInterchange?: boolean;
|
|
147
|
-
bulletOptions?: string[];
|
|
148
|
-
dashOptions?: string[];
|
|
149
|
-
lineOptions?: string[];
|
|
150
|
-
isEnableDashedLine?: boolean;
|
|
151
|
-
comparisonBadgeColor?: {
|
|
152
|
-
up?: string;
|
|
153
|
-
down?: string;
|
|
154
|
-
};
|
|
155
|
-
linearGaugeV2?: {
|
|
156
|
-
isEnableValue?: boolean;
|
|
157
|
-
isEnableLabel?: boolean;
|
|
158
|
-
size?: string;
|
|
159
|
-
isEnableLabels?: boolean;
|
|
160
|
-
isEnableRange?: boolean;
|
|
161
|
-
labelSize?: number;
|
|
162
|
-
labelWeight?: number;
|
|
163
|
-
isEnableLegend?: boolean;
|
|
164
|
-
isEnableLegendRange?: boolean;
|
|
165
|
-
legendSize?: number;
|
|
166
|
-
legendWeight?: number;
|
|
167
|
-
legendPosition?: string;
|
|
168
|
-
isShowSplitLines?: boolean;
|
|
169
|
-
};
|
|
170
|
-
gaugeV2?: {
|
|
171
|
-
isEnableMarkerRange?: boolean;
|
|
172
|
-
isEnableMarkerValue?: boolean;
|
|
173
|
-
isEnableMarkerLabel?: boolean;
|
|
174
|
-
isEnableLegendRange?: boolean;
|
|
175
|
-
legendSize?: number;
|
|
176
|
-
markerSize?: number;
|
|
177
|
-
legendPosition?: string;
|
|
178
|
-
};
|
|
179
|
-
repulsion?: number;
|
|
180
|
-
markers?: {
|
|
181
|
-
isEnableMax?: boolean;
|
|
182
|
-
isEnableMin?: boolean;
|
|
183
|
-
isEnableAvg?: boolean;
|
|
184
|
-
maxColor?: string;
|
|
185
|
-
minColor?: string;
|
|
186
|
-
};
|
|
187
|
-
YaxislabelFormatters?: {
|
|
188
|
-
upperLimit: number;
|
|
189
|
-
lowerLimit: number;
|
|
190
|
-
label: string;
|
|
191
|
-
color?: string;
|
|
192
|
-
}[];
|
|
193
|
-
comboLabelFormatter?: {
|
|
194
|
-
axis: string;
|
|
195
|
-
formatter: {
|
|
196
|
-
upperLimit: number;
|
|
197
|
-
lowerLimit: number;
|
|
198
|
-
label: string;
|
|
199
|
-
}[];
|
|
200
|
-
}[];
|
|
201
|
-
barWidth?: number;
|
|
202
|
-
barRadius?: number[];
|
|
203
|
-
xRotation?: number;
|
|
204
|
-
customRotation?: number;
|
|
205
|
-
hideXAxisLabels?: boolean;
|
|
206
|
-
hideYAxisLabels?: boolean;
|
|
207
|
-
fontSize?: number;
|
|
208
|
-
subHeaderShow?: boolean;
|
|
209
|
-
comparisonValueShow?: boolean;
|
|
210
|
-
displayText?: string;
|
|
211
|
-
singleValueFontColor?: string;
|
|
212
|
-
enableSingleValueTruncate?: boolean;
|
|
213
|
-
truncateValue?: number;
|
|
214
|
-
comparisonTimeColumn?: string;
|
|
215
|
-
comparisonTimeLabel?: string;
|
|
216
|
-
comparisonTimePeriod?: number;
|
|
217
|
-
comparisonDifferenceType?: ComparisonLagSettings['differenceType'];
|
|
218
|
-
comparisonTimeGrain?: string;
|
|
219
|
-
comparisonTableName?: string;
|
|
220
|
-
comparisonValueFontSize?: number;
|
|
221
|
-
singleValueSuffix?: string;
|
|
222
|
-
singleValuePrefix?: string;
|
|
223
|
-
singleValConditionalFormatter?: {
|
|
224
|
-
min: number;
|
|
225
|
-
max: number;
|
|
226
|
-
color: string;
|
|
227
|
-
}[];
|
|
228
|
-
comparisonSuffix?: string;
|
|
229
|
-
subHeaderFontSize?: number;
|
|
230
|
-
dateFormatter?: string;
|
|
231
|
-
numberFormatter?: string;
|
|
232
|
-
isEnableLabelTooltip?: boolean;
|
|
233
|
-
showLabelValues?: boolean;
|
|
234
|
-
showFullStacked?: boolean;
|
|
235
|
-
showConversionRate?: boolean;
|
|
236
|
-
labelFormat?: string;
|
|
237
|
-
isShowTrendLine?: boolean;
|
|
238
|
-
hideNullValues?: boolean;
|
|
239
|
-
chartZoom?: {
|
|
240
|
-
isZoomEnabled?: boolean;
|
|
241
|
-
zoomAxis?: string;
|
|
242
|
-
zoomOnMouseWheel?: boolean;
|
|
243
|
-
};
|
|
244
|
-
showDynamicBehaviour?: boolean;
|
|
245
|
-
roseType?: string;
|
|
246
|
-
selectedMode?: string;
|
|
247
|
-
selectedOffset?: number;
|
|
248
|
-
comboAxisSymbols?: any;
|
|
249
|
-
comboStackAxisSymbols?: {
|
|
250
|
-
suffix: string;
|
|
251
|
-
prefix: string;
|
|
252
|
-
name: string;
|
|
253
|
-
};
|
|
254
|
-
gradients?: {
|
|
255
|
-
startColor: string;
|
|
256
|
-
endColor: string;
|
|
257
|
-
offset1: number;
|
|
258
|
-
offset2: number;
|
|
259
|
-
direction: string;
|
|
260
|
-
}[];
|
|
261
|
-
isShowBarGradient?: boolean;
|
|
262
|
-
barGradient?: {
|
|
263
|
-
startColor?: string;
|
|
264
|
-
endColor?: string;
|
|
265
|
-
offset1?: number;
|
|
266
|
-
offset2?: number;
|
|
267
|
-
direction?: string;
|
|
268
|
-
};
|
|
269
|
-
enableBackgroundGradient?: boolean;
|
|
270
|
-
backgroundGradient?: {
|
|
271
|
-
startColor?: string;
|
|
272
|
-
endColor?: string;
|
|
273
|
-
offset1?: number;
|
|
274
|
-
offset2?: number;
|
|
275
|
-
direction?: string;
|
|
276
|
-
};
|
|
277
|
-
labelPrefix?: string;
|
|
278
|
-
labelSuffix?: string;
|
|
279
|
-
enableTitleDesc?: boolean;
|
|
280
|
-
chartTitle?: string;
|
|
281
|
-
chartDesc?: string;
|
|
282
|
-
titlePosition?: string;
|
|
283
|
-
cumulativeBar?: boolean;
|
|
284
|
-
stepPadding?: number;
|
|
285
|
-
showFunnelShadow?: boolean;
|
|
286
|
-
hideSplitLines?: boolean;
|
|
287
|
-
hideAxisLines?: boolean;
|
|
288
|
-
axisLabels?: boolean;
|
|
289
|
-
isStackBar?: boolean;
|
|
290
|
-
showSelectLegend?: boolean;
|
|
291
|
-
showStackLabels?: boolean;
|
|
292
|
-
coloredBars?: boolean;
|
|
293
|
-
comboAxisSettings?: ComboAxisSettingsType[];
|
|
294
|
-
};
|
|
295
|
-
export type Colors = 'primary' | 'primary-title' | 'primary-dark' | 'secondary' | 'secondary-dark' | 'alert' | 'alert-dark' | 'alert-light' | 'success' | 'success-dark' | 'success-light' | 'warning' | 'warning-dark' | 'warning-icon' | 'info' | 'info-light' | 'white' | 'gray' | 'gray-dark' | 'light' | 'dark' | 'infoAlert' | 'cta' | 'gradient-pink' | 'pink' | 'alert-badge';
|
|
296
|
-
export type IconType = (typeof ICONS_LIST)[number];
|
|
297
|
-
export type LogoType = 'redshift' | 'postgres' | 'mysql' | 'mongodb' | 'bigquery' | 'snowflake' | 'microsoft' | 'google' | 'elasticsearch' | 'redis' | 'databricks' | 'clickhouse' | 'mssql' | 'awss3' | 'csv' | 'openai' | 'claude' | 'gemini' | 'mixtral' | 'llama' | 'palm' | 'azure' | 'aws' | 'noDataDB' | 'help' | 'slack' | 'demo' | 'embedded' | 'msTeams' | 'noSummary';
|
|
298
|
-
export type IconSizes = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'small' | 'sth-went-wrong';
|
|
299
|
-
export type IconConfig = {
|
|
300
|
-
size: IconSizes;
|
|
301
|
-
color: Colors;
|
|
302
|
-
};
|
|
303
|
-
export type IconsProps = {
|
|
304
|
-
name: IconType;
|
|
305
|
-
size?: IconSizes;
|
|
306
|
-
color?: Colors;
|
|
307
|
-
cumulativeBar?: boolean;
|
|
308
|
-
showFunnelShadow?: boolean;
|
|
309
|
-
stepPadding?: number;
|
|
310
|
-
isStackBar?: boolean;
|
|
311
|
-
showSelectLegend?: boolean;
|
|
312
|
-
showStackLabels?: boolean;
|
|
313
|
-
coloredBars?: boolean;
|
|
314
|
-
customColor?: string;
|
|
315
|
-
};
|
|
316
|
-
export type TableSettings = {
|
|
317
|
-
headerFontBold?: boolean;
|
|
318
|
-
contentAlignment?: string;
|
|
319
|
-
contentWeight?: number;
|
|
320
|
-
headerAlignment?: string;
|
|
321
|
-
hideTableHeader?: boolean;
|
|
322
|
-
lineGap?: string;
|
|
323
|
-
hideVerticalDivider?: boolean;
|
|
324
|
-
hideHorizontalDivider?: boolean;
|
|
325
|
-
badgeColumns?: string[];
|
|
326
|
-
isEnableNumberFormatting?: boolean;
|
|
327
|
-
formattedColumns?: string[];
|
|
328
|
-
tableFormatter?: string;
|
|
329
|
-
tableSuffix?: string;
|
|
330
|
-
tablePrefix?: string;
|
|
331
|
-
enableStripedRows?: boolean;
|
|
332
|
-
showRowHover?: boolean;
|
|
333
|
-
showTableIcon?: boolean;
|
|
334
|
-
showColumnFilter?: boolean;
|
|
335
|
-
showDownloadBtn?: boolean;
|
|
336
|
-
showTableTitle?: boolean;
|
|
337
|
-
tableTitle?: string;
|
|
338
|
-
showTableDesc?: boolean;
|
|
339
|
-
enableTableSearch?: boolean;
|
|
340
|
-
isEnableColumnFilter?: boolean;
|
|
341
|
-
enableFilter?: boolean;
|
|
342
|
-
enableSorting?: boolean;
|
|
343
|
-
disablePagination?: boolean;
|
|
344
|
-
defaultRowSize?: string;
|
|
345
|
-
columnSizing?: ColumnSizingState;
|
|
346
|
-
isServerSidePagination?: boolean;
|
|
347
|
-
isSortAlphabetically?: boolean;
|
|
348
|
-
isEnableTimezoneFormatting?: boolean;
|
|
349
|
-
timeFormatter?: string;
|
|
350
|
-
conditionalFormatting?: {
|
|
351
|
-
columnName: string;
|
|
352
|
-
rules: {
|
|
353
|
-
operator: string;
|
|
354
|
-
value: string;
|
|
355
|
-
styles: {
|
|
356
|
-
backgroundColor?: string;
|
|
357
|
-
color?: string;
|
|
358
|
-
};
|
|
359
|
-
}[];
|
|
360
|
-
}[];
|
|
361
|
-
badgeColors?: Record<string, string>;
|
|
362
|
-
badgeTextColors?: Record<string, string>;
|
|
363
|
-
badgeSeparator?: string;
|
|
364
|
-
listColumns?: string[];
|
|
365
|
-
listSeparator?: string;
|
|
366
|
-
stackColAlias?: string;
|
|
367
|
-
customHeaderColor?: {
|
|
368
|
-
isEnabled?: boolean;
|
|
369
|
-
color?: string;
|
|
370
|
-
textColor?: string;
|
|
371
|
-
};
|
|
372
|
-
replaceNullValues?: boolean;
|
|
373
|
-
};
|
|
374
|
-
export type BackgroundSettings = {
|
|
375
|
-
show?: boolean;
|
|
376
|
-
};
|
|
377
|
-
export type LabelSettings = {
|
|
378
|
-
axis?: string;
|
|
379
|
-
show?: boolean;
|
|
380
|
-
position?: string;
|
|
381
|
-
truncateLabel?: boolean;
|
|
382
|
-
truncateLabelValue?: number;
|
|
383
|
-
showLabelLine?: boolean;
|
|
384
|
-
isEnableValueSummation?: boolean;
|
|
385
|
-
showDimension?: boolean;
|
|
386
|
-
XAxisStyle?: {
|
|
387
|
-
size?: number;
|
|
388
|
-
family?: string;
|
|
389
|
-
weight?: number;
|
|
390
|
-
color?: string;
|
|
391
|
-
axisName?: string;
|
|
392
|
-
axisPadding?: number;
|
|
393
|
-
};
|
|
394
|
-
YAxisStyle?: {
|
|
395
|
-
size?: number;
|
|
396
|
-
family?: string;
|
|
397
|
-
weight?: number;
|
|
398
|
-
color?: string;
|
|
399
|
-
axisName?: string;
|
|
400
|
-
axisPadding?: number;
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
export type AxisSettings = {
|
|
404
|
-
axis?: string;
|
|
405
|
-
};
|
|
406
|
-
export type PivotSettingsType = {
|
|
407
|
-
rows?: string[];
|
|
408
|
-
columns?: string[];
|
|
409
|
-
};
|
|
410
|
-
export type PivotSettingsType2 = {
|
|
411
|
-
measures?: string[];
|
|
412
|
-
dimensions?: string[];
|
|
413
|
-
headers?: string[];
|
|
414
|
-
isDynamicHeaders?: boolean;
|
|
415
|
-
aggregates?: Aggregate[];
|
|
416
|
-
dims?: string[];
|
|
417
|
-
};
|
|
418
|
-
export type GaugeSettingsType = {
|
|
419
|
-
metric?: string;
|
|
420
|
-
dimensions?: string[];
|
|
421
|
-
};
|
|
422
|
-
export type TooltipSettings = {
|
|
423
|
-
labelStyle?: {
|
|
424
|
-
size?: number;
|
|
425
|
-
family?: string;
|
|
426
|
-
weight?: number;
|
|
427
|
-
color?: string;
|
|
428
|
-
};
|
|
429
|
-
valueStyle?: {
|
|
430
|
-
size?: number;
|
|
431
|
-
family?: string;
|
|
432
|
-
weight?: number;
|
|
433
|
-
color?: string;
|
|
434
|
-
};
|
|
435
|
-
tooltipHeader?: {
|
|
436
|
-
size?: number;
|
|
437
|
-
family?: string;
|
|
438
|
-
weight?: number;
|
|
439
|
-
color?: string;
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
export type ChartSettingsType = {
|
|
443
|
-
chartType: keyof typeof CHART_TYPES;
|
|
444
|
-
mergedMetrics?: {
|
|
445
|
-
firstMetric?: string;
|
|
446
|
-
secondMetric?: string;
|
|
447
|
-
};
|
|
448
|
-
margins?: MarginSettings;
|
|
449
|
-
xAxis?: string;
|
|
450
|
-
yAxisList?: string[];
|
|
451
|
-
numberColumns?: string[];
|
|
452
|
-
progressColumn?: string;
|
|
453
|
-
progressMaxColumn?: string;
|
|
454
|
-
progressMinColumn?: string;
|
|
455
|
-
dateColumns?: string[];
|
|
456
|
-
chartColors?: string[];
|
|
457
|
-
stackTableCols?: string[];
|
|
458
|
-
step?: string;
|
|
459
|
-
measure?: string;
|
|
460
|
-
singleValue?: string;
|
|
461
|
-
sankeyValues?: string[];
|
|
462
|
-
percentageSize?: number;
|
|
463
|
-
selectedSeries?: string[];
|
|
464
|
-
metricCardSettings?: MetricCardSettings;
|
|
465
|
-
legendSettings?: LegendSettings;
|
|
466
|
-
labelSettings?: LabelSettings;
|
|
467
|
-
customSettings?: CustomSettings;
|
|
468
|
-
tooltipSettings?: TooltipSettings;
|
|
469
|
-
tableSettings?: TableSettings;
|
|
470
|
-
pivotTableSettings?: PivotSettingsType;
|
|
471
|
-
pivotTableSettings2?: PivotSettingsType2;
|
|
472
|
-
gaugeSettings?: GaugeSettingsType;
|
|
473
|
-
axisSettings?: AxisSettings;
|
|
474
|
-
backGroundColor?: BackgroundSettings;
|
|
475
|
-
timeSeriesSettings?: TimeSeriesSettingsType;
|
|
476
|
-
isMultiDimension?: boolean;
|
|
477
|
-
isDynamicSeries?: boolean;
|
|
478
|
-
seriesField?: string;
|
|
479
|
-
seriesOptions?: string[];
|
|
480
|
-
ungroupedAlias?: string;
|
|
481
|
-
dynamicXAxis?: {
|
|
482
|
-
isEnabled?: boolean;
|
|
483
|
-
options?: FloatingDropDownOption[];
|
|
484
|
-
selectedOption?: FloatingDropDownOption;
|
|
485
|
-
};
|
|
486
|
-
dynamicYAxis?: {
|
|
487
|
-
isEnabled?: boolean;
|
|
488
|
-
options?: FloatingDropDownOption[];
|
|
489
|
-
selectedOption?: FloatingDropDownOption;
|
|
490
|
-
};
|
|
491
|
-
comboBarList: string[];
|
|
492
|
-
isGroupXAxis?: boolean;
|
|
493
|
-
isEnableComparisonFilter?: boolean;
|
|
494
|
-
enduserMeasureAndDimensions?: {
|
|
495
|
-
isEnabled?: boolean;
|
|
496
|
-
measures?: FloatingDropDownOption[];
|
|
497
|
-
dimensions?: FloatingDropDownOption[];
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
export type SelectedColumns = {
|
|
501
|
-
column: string;
|
|
502
|
-
datatype: string;
|
|
503
|
-
schemaName: string;
|
|
504
|
-
tableName: string;
|
|
505
|
-
};
|
|
506
|
-
export type Schema = {
|
|
507
|
-
id: string;
|
|
508
|
-
schemaName: string;
|
|
509
|
-
tableName: string;
|
|
510
|
-
columns: string[];
|
|
511
|
-
columnsWithDataType: {
|
|
512
|
-
as: any;
|
|
513
|
-
dataType: string;
|
|
514
|
-
name: string;
|
|
515
|
-
label?: string;
|
|
516
|
-
isDefault?: boolean;
|
|
517
|
-
isShowHorizontal?: boolean;
|
|
518
|
-
defaultValue?: string[] | string | number | number[] | Record<string, any>;
|
|
519
|
-
options?: FloatingDropDownOption[];
|
|
520
|
-
isClientScoped?: boolean;
|
|
521
|
-
clientColumn?: string;
|
|
522
|
-
clientColumnType?: string;
|
|
523
|
-
isManualOptions?: boolean;
|
|
524
|
-
manualOptions?: string[];
|
|
525
|
-
dependOn?: FloatingDropDownOption[];
|
|
526
|
-
}[];
|
|
527
|
-
};
|
|
528
|
-
export type RlsFilterObjectType = {
|
|
529
|
-
columnName: string;
|
|
530
|
-
condition: string;
|
|
531
|
-
createdAt: any;
|
|
532
|
-
defaultValue?: string | null | undefined;
|
|
533
|
-
value?: string;
|
|
534
|
-
id: any;
|
|
535
|
-
name: string;
|
|
536
|
-
tableName: string;
|
|
537
|
-
labelColumnName?: string;
|
|
538
|
-
operator?: string | 'and' | 'or';
|
|
539
|
-
user: {
|
|
540
|
-
id: any;
|
|
541
|
-
firstName: string;
|
|
542
|
-
lastName: string;
|
|
543
|
-
};
|
|
544
|
-
};
|
|
545
|
-
export type SelectedTable = {
|
|
546
|
-
tableName: string;
|
|
547
|
-
columns: {
|
|
548
|
-
name: string;
|
|
549
|
-
datatype: string;
|
|
550
|
-
as: string;
|
|
551
|
-
}[] | [];
|
|
552
|
-
}[] | undefined;
|
|
553
|
-
export type GroupBy = {
|
|
554
|
-
column: string;
|
|
555
|
-
parentColumn?: {
|
|
556
|
-
column: string;
|
|
557
|
-
value: string;
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
export type ClientType = {
|
|
561
|
-
label: string;
|
|
562
|
-
value: string;
|
|
563
|
-
type: ClientColumnType;
|
|
564
|
-
};
|
|
565
|
-
export type DashboardType = {
|
|
566
|
-
id: string;
|
|
567
|
-
name: string;
|
|
568
|
-
};
|
|
569
|
-
export type FloatingDropDownOption = {
|
|
570
|
-
key?: string;
|
|
571
|
-
label: string;
|
|
572
|
-
value: string;
|
|
573
|
-
tooltip?: string;
|
|
574
|
-
badge?: string;
|
|
575
|
-
subValue?: string | FloatingDropDownOption;
|
|
576
|
-
subLabelOptions?: string[] | FloatingDropDownOption[];
|
|
577
|
-
icon?: string;
|
|
578
|
-
columnList?: any;
|
|
579
|
-
labelType?: string;
|
|
580
|
-
aggregate?: string;
|
|
581
|
-
alias?: string;
|
|
582
|
-
table?: TableObjectType;
|
|
583
|
-
isImportEnabled?: boolean;
|
|
584
|
-
column?: SelectedColumn;
|
|
585
|
-
subLabelIcon?: string;
|
|
586
|
-
clientColumnType?: ClientColumnType;
|
|
587
|
-
tableColumn?: TableColumn;
|
|
588
|
-
colTypes?: any;
|
|
589
|
-
customColumnName?: string;
|
|
590
|
-
dbName?: string;
|
|
591
|
-
id?: string;
|
|
592
|
-
type?: ClientColumnType;
|
|
593
|
-
presetDateOption?: Record<any, any>;
|
|
594
|
-
filter?: GlobalFilterColumn | RlsCondition;
|
|
595
|
-
};
|
|
596
|
-
export type FilterType = {
|
|
597
|
-
tableName: string;
|
|
598
|
-
columns: Schema['columnsWithDataType'];
|
|
599
|
-
};
|
|
600
|
-
export type SchemaPair = {
|
|
601
|
-
targetSchema: string;
|
|
602
|
-
replaceSchema: string;
|
|
603
|
-
};
|
|
604
|
-
export type DateRange = {
|
|
605
|
-
type?: FloatingDropDownOption;
|
|
606
|
-
interval?: number;
|
|
607
|
-
timeGrain?: FloatingDropDownOption;
|
|
608
|
-
startDate?: Date;
|
|
609
|
-
endDate?: Date;
|
|
610
|
-
label?: string;
|
|
611
|
-
};
|
|
612
|
-
export type GlobalFilterColumn = {
|
|
613
|
-
filterType?: string;
|
|
614
|
-
selectedTable?: string;
|
|
615
|
-
variableStrings?: string[];
|
|
616
|
-
as: any;
|
|
617
|
-
dataType: string;
|
|
618
|
-
name: string;
|
|
619
|
-
labelColumnName?: string;
|
|
620
|
-
labelColumnDatatype?: string;
|
|
621
|
-
customLabelColumn?: string;
|
|
622
|
-
isDefault?: boolean;
|
|
623
|
-
label?: string;
|
|
624
|
-
isShowHorizontal?: boolean;
|
|
625
|
-
defaultValue?: GlobalFiltersDefaultValue;
|
|
626
|
-
isClientScoped?: boolean;
|
|
627
|
-
clientColumn?: string;
|
|
628
|
-
clientColumnType?: string;
|
|
629
|
-
isManualOptions?: boolean;
|
|
630
|
-
manualOptions?: string[];
|
|
631
|
-
dependOn?: FloatingDropDownOption[];
|
|
632
|
-
selectedCustomColumn?: {
|
|
633
|
-
query: string;
|
|
634
|
-
columnName: string;
|
|
635
|
-
};
|
|
636
|
-
options?: FloatingDropDownOption[];
|
|
637
|
-
isVariableFilter?: boolean;
|
|
638
|
-
applyOnTables?: {
|
|
639
|
-
tableName: string;
|
|
640
|
-
columnName: string;
|
|
641
|
-
dataType: string;
|
|
642
|
-
isCustomSql: boolean;
|
|
643
|
-
isApplyOnAssociatedTable?: boolean;
|
|
644
|
-
}[];
|
|
645
|
-
filterVariant?: FloatingDropDownOption;
|
|
646
|
-
isAutoSelectFilterValue?: boolean;
|
|
647
|
-
isEnableClearSelection?: boolean;
|
|
648
|
-
restrictedMetrics?: FloatingDropDownOption[];
|
|
649
|
-
isAppFilter?: boolean;
|
|
650
|
-
isSelectAllMultiSelect?: boolean;
|
|
651
|
-
dateVariant?: FloatingDropDownOption;
|
|
652
|
-
dateSelectionType?: FloatingDropDownOption;
|
|
653
|
-
isEnableDateRestriction?: boolean;
|
|
654
|
-
dateRestrictionRange?: {
|
|
655
|
-
startDate?: Date;
|
|
656
|
-
endDate?: Date;
|
|
657
|
-
from?: DateRange;
|
|
658
|
-
to?: DateRange;
|
|
659
|
-
};
|
|
660
|
-
datePresetOptions?: {
|
|
661
|
-
type: FloatingDropDownOption;
|
|
662
|
-
interval: number;
|
|
663
|
-
timeGrain: FloatingDropDownOption;
|
|
664
|
-
label: string;
|
|
665
|
-
}[];
|
|
666
|
-
autoSelectType?: FloatingDropDownOption;
|
|
667
|
-
autoSelectCount?: number;
|
|
668
|
-
};
|
|
669
|
-
export type GlobalFilterType = {
|
|
670
|
-
tableName: string;
|
|
671
|
-
columns: GlobalFilterColumn[];
|
|
672
|
-
};
|
|
673
|
-
export type JoinField = {
|
|
674
|
-
a: string;
|
|
675
|
-
b: string;
|
|
676
|
-
};
|
|
677
|
-
export type SqlError = {
|
|
678
|
-
isSqlEditorErr?: boolean;
|
|
679
|
-
errorMessage: string;
|
|
680
|
-
explanation: string;
|
|
681
|
-
solution: string;
|
|
682
|
-
};
|
|
683
|
-
export type DateOptionType = {
|
|
684
|
-
id: string;
|
|
685
|
-
range: string;
|
|
686
|
-
time: string;
|
|
687
|
-
format: string;
|
|
688
|
-
name: string;
|
|
689
|
-
count: number;
|
|
690
|
-
endDate?: Date;
|
|
691
|
-
startDate?: Date;
|
|
692
|
-
fromDate?: Date;
|
|
693
|
-
timeGrain?: string;
|
|
694
|
-
toDate?: Date;
|
|
695
|
-
minDate?: Date;
|
|
696
|
-
maxDate?: Date;
|
|
697
|
-
timeGrainValue?: string;
|
|
698
|
-
isSingleDate?: boolean;
|
|
699
|
-
restrictionDateFrom?: DateRange;
|
|
700
|
-
restrictionDateTo?: DateRange;
|
|
701
|
-
};
|
|
702
|
-
export type CustomOption = {
|
|
703
|
-
startDate?: Date;
|
|
704
|
-
endDate?: Date;
|
|
705
|
-
value: string | number;
|
|
706
|
-
label: string;
|
|
707
|
-
range?: string;
|
|
708
|
-
fromDate?: Date;
|
|
709
|
-
toDate?: Date;
|
|
710
|
-
minDate?: Date;
|
|
711
|
-
maxDate?: Date;
|
|
712
|
-
timeGrainValue?: string;
|
|
713
|
-
restrictionDateFrom?: DateRange;
|
|
714
|
-
restrictionDateTo?: DateRange;
|
|
715
|
-
};
|
|
716
|
-
export type RlsCondition = {
|
|
717
|
-
name: string;
|
|
718
|
-
columnName: string;
|
|
719
|
-
labelColumnName?: string;
|
|
720
|
-
tableName: string;
|
|
721
|
-
datatype: string;
|
|
722
|
-
isAddOnMetrics: boolean;
|
|
723
|
-
options: FloatingDropDownOption[] | number[] | DateOptionType[];
|
|
724
|
-
value?: string | DateOptionType | string[];
|
|
725
|
-
selectedDropdownValue?: FloatingDropDownOption[] | FloatingDropDownOption;
|
|
726
|
-
dimensionColumn?: string;
|
|
727
|
-
measureColumn?: string;
|
|
728
|
-
client?: {
|
|
729
|
-
isEnable: boolean;
|
|
730
|
-
columnName: string;
|
|
731
|
-
as?: string;
|
|
732
|
-
};
|
|
733
|
-
isAppFilter?: boolean;
|
|
734
|
-
position?: 'top-left' | 'top-right';
|
|
735
|
-
isVariableFilter?: boolean;
|
|
736
|
-
variableOptions?: CustomOption[];
|
|
737
|
-
variableStrings?: string[];
|
|
738
|
-
selectedVariableValue?: CustomOption;
|
|
739
|
-
optionColumnName?: string;
|
|
740
|
-
optionTableName?: string;
|
|
741
|
-
filterType?: string;
|
|
742
|
-
applyOnColumns?: {
|
|
743
|
-
columnName: FloatingDropDownOption;
|
|
744
|
-
logicalOperator: FloatingDropDownOption;
|
|
745
|
-
comparisonOperator: FloatingDropDownOption;
|
|
746
|
-
isCustomSql?: boolean;
|
|
747
|
-
}[];
|
|
748
|
-
comparisonOperator?: FloatingDropDownOption;
|
|
749
|
-
dependOn?: FloatingDropDownOption;
|
|
750
|
-
selectedCustomOptionTable?: {
|
|
751
|
-
query: string;
|
|
752
|
-
columnName: string;
|
|
753
|
-
};
|
|
754
|
-
filterVariant?: FloatingDropDownOption;
|
|
755
|
-
group?: string;
|
|
756
|
-
isCustomSql?: boolean;
|
|
757
|
-
dateOptionType?: FloatingDropDownOption;
|
|
758
|
-
isEnableDateRestriction?: boolean;
|
|
759
|
-
isAutoSelect?: boolean;
|
|
760
|
-
autoSelectType?: FloatingDropDownOption;
|
|
761
|
-
autoSelectCount?: number;
|
|
762
|
-
};
|
|
763
|
-
export type PythonMetricFilter = {
|
|
764
|
-
name: string;
|
|
765
|
-
type: 'STRING' | 'DATE' | 'NUMBER';
|
|
766
|
-
value: {
|
|
767
|
-
startDate: Date;
|
|
768
|
-
endDate: Date;
|
|
769
|
-
} | string | number;
|
|
770
|
-
};
|
|
771
|
-
export type MetricData = {
|
|
772
|
-
id: string;
|
|
773
|
-
name: string;
|
|
774
|
-
dashboards: {
|
|
775
|
-
name: string;
|
|
776
|
-
id: string;
|
|
777
|
-
}[];
|
|
778
|
-
description: string;
|
|
779
|
-
createdBy: string;
|
|
780
|
-
dateCreated: string;
|
|
781
|
-
};
|
|
782
|
-
export type GetUnderlyingData = ({ columnName, value, setData, setLoading, isSingleValueChart, clientColumnType, }: {
|
|
783
|
-
columnName: string | undefined;
|
|
784
|
-
value: any | undefined;
|
|
785
|
-
setData: React.Dispatch<React.SetStateAction<any[]>>;
|
|
786
|
-
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
787
|
-
isSingleValueChart: boolean;
|
|
788
|
-
clientColumnType: ClientColumnType;
|
|
789
|
-
}) => void;
|
|
790
|
-
export type ConditionalFormattingParam = {
|
|
791
|
-
value: any;
|
|
792
|
-
rules: {
|
|
793
|
-
operator: string;
|
|
794
|
-
value: string;
|
|
795
|
-
styles: any;
|
|
796
|
-
}[];
|
|
797
|
-
};
|
|
798
|
-
export type DateTypeOptionType = {
|
|
799
|
-
range: 'Last' | 'This' | 'Custom' | 'Custom Date';
|
|
800
|
-
time?: 'Day' | 'Week' | 'Month' | 'Quarter' | 'Year';
|
|
801
|
-
name: string;
|
|
802
|
-
count?: number;
|
|
803
|
-
fromDate?: Date;
|
|
804
|
-
toDate?: Date;
|
|
805
|
-
minDate?: Date;
|
|
806
|
-
maxDate?: Date;
|
|
807
|
-
};
|
|
808
|
-
export type MetricFilterOptionsType = Record<string, {
|
|
809
|
-
options: string[] | {
|
|
810
|
-
value: string | number;
|
|
811
|
-
label: string;
|
|
812
|
-
}[] | number[] | DateTypeOptionType[];
|
|
813
|
-
defaultOption?: string | number;
|
|
814
|
-
}>;
|
|
815
|
-
export type GlobalFilterOptionsType = Record<string, {
|
|
816
|
-
options?: {
|
|
817
|
-
value: string | number;
|
|
818
|
-
label: string;
|
|
819
|
-
}[];
|
|
820
|
-
defaultOption?: string[] | string | {
|
|
821
|
-
startDate: Date | undefined;
|
|
822
|
-
endDate: Date | undefined;
|
|
823
|
-
} | {
|
|
824
|
-
min: number | null;
|
|
825
|
-
max: number | null;
|
|
826
|
-
};
|
|
827
|
-
}>;
|
|
828
|
-
export type FilterClausesType = (dependOn: FloatingDropDownOption[]) => {
|
|
829
|
-
as: string;
|
|
830
|
-
columnName: string;
|
|
831
|
-
value: string | string[];
|
|
832
|
-
}[];
|
|
833
|
-
export type AdminThemeOptionsType = {
|
|
834
|
-
general: {
|
|
835
|
-
name: string;
|
|
836
|
-
fontFamily: string;
|
|
837
|
-
};
|
|
838
|
-
dashboard: {
|
|
839
|
-
backgroundColor?: string;
|
|
840
|
-
ctaColor?: string;
|
|
841
|
-
ctaTextColor?: string;
|
|
842
|
-
selectBoxSize?: 'small' | 'medium' | 'large';
|
|
843
|
-
selectBoxVariant?: 'floating' | 'static';
|
|
844
|
-
selectBoxBorderRadius?: string;
|
|
845
|
-
selectBoxTextColor?: string;
|
|
846
|
-
metricCardColor?: string;
|
|
847
|
-
};
|
|
848
|
-
cardDescription: {
|
|
849
|
-
fontSize?: string;
|
|
850
|
-
fontWeight?: string;
|
|
851
|
-
color?: string;
|
|
852
|
-
};
|
|
853
|
-
cardTitle: {
|
|
854
|
-
fontSize?: string;
|
|
855
|
-
fontWeight?: string;
|
|
856
|
-
color?: string;
|
|
857
|
-
};
|
|
858
|
-
chart: {
|
|
859
|
-
palettes?: {
|
|
860
|
-
name: string;
|
|
861
|
-
colors: string[];
|
|
862
|
-
}[];
|
|
863
|
-
selected?: string;
|
|
864
|
-
};
|
|
865
|
-
cardCustomization: {
|
|
866
|
-
padding?: string;
|
|
867
|
-
borderRadius?: string;
|
|
868
|
-
shadow?: string;
|
|
869
|
-
disableShadowOnHover?: boolean;
|
|
870
|
-
};
|
|
871
|
-
};
|
|
872
|
-
export type FilterValueType = string | string[] | number | number[] | boolean | boolean[] | null | Record<string, any>;
|
|
873
|
-
export type PivotFilterType = {
|
|
874
|
-
columnName: string;
|
|
875
|
-
value: any;
|
|
876
|
-
};
|
|
877
|
-
export type OnDrillPivotTableParams = {
|
|
878
|
-
filters: PivotFilterType[];
|
|
879
|
-
nextLevel: number;
|
|
880
|
-
currentValue: string;
|
|
881
|
-
};
|
|
882
|
-
export type PivotDrillState = {
|
|
883
|
-
isLoading: boolean;
|
|
884
|
-
error: string;
|
|
885
|
-
data: {
|
|
886
|
-
key: string;
|
|
887
|
-
data: Record<string, any>[];
|
|
888
|
-
}[];
|
|
889
|
-
currentValue: string;
|
|
890
|
-
};
|
|
891
|
-
export type ClientColumnType = 'STRING' | 'NUMBER';
|
|
892
|
-
export type ChartAppearanceType = {
|
|
893
|
-
chartTooltip?: {
|
|
894
|
-
labelStyle?: {
|
|
895
|
-
size?: number;
|
|
896
|
-
family?: string;
|
|
897
|
-
weight?: number;
|
|
898
|
-
color?: string;
|
|
899
|
-
};
|
|
900
|
-
valueStyle?: {
|
|
901
|
-
size?: number;
|
|
902
|
-
family?: string;
|
|
903
|
-
weight?: number;
|
|
904
|
-
color?: string;
|
|
905
|
-
};
|
|
906
|
-
tooltipHeader?: {
|
|
907
|
-
size?: number;
|
|
908
|
-
family?: string;
|
|
909
|
-
weight?: number;
|
|
910
|
-
color?: string;
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
chartLabel?: {
|
|
914
|
-
position?: 'hidden' | 'top' | 'left' | 'right' | 'bottom' | 'inside';
|
|
915
|
-
radialChartposition?: 'outside' | 'inside';
|
|
916
|
-
};
|
|
917
|
-
chartMargin?: {
|
|
918
|
-
marginTop?: number;
|
|
919
|
-
marginLeft?: number;
|
|
920
|
-
marginRight?: number;
|
|
921
|
-
marginBottom?: number;
|
|
922
|
-
};
|
|
923
|
-
chartLegend?: {
|
|
924
|
-
show?: boolean;
|
|
925
|
-
fixedPosition?: 'top-left' | 'top-center' | 'top-right' | 'left-center' | 'right-center' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
926
|
-
enableVariablePosition?: boolean;
|
|
927
|
-
top?: number;
|
|
928
|
-
left?: number;
|
|
929
|
-
disableLegendScrolling?: boolean;
|
|
930
|
-
legendAppearance?: 'horizontal' | 'vertical';
|
|
931
|
-
truncateLegend?: number;
|
|
932
|
-
legendShape?: 'circle' | 'rect' | 'roundRect' | 'triangle' | 'diamond' | 'arrow' | 'none';
|
|
933
|
-
fontSize?: number;
|
|
934
|
-
fontWeight?: number;
|
|
935
|
-
fontFamily?: string;
|
|
936
|
-
color?: string;
|
|
937
|
-
};
|
|
938
|
-
verticalAxis?: {
|
|
939
|
-
hideAxisLines?: boolean;
|
|
940
|
-
hideSplitLines?: boolean;
|
|
941
|
-
hideAxisLabels?: boolean;
|
|
942
|
-
hideAxisTicks?: boolean;
|
|
943
|
-
axisName?: string;
|
|
944
|
-
axisNameOffset?: number;
|
|
945
|
-
fontSize?: number;
|
|
946
|
-
fontFamily?: string;
|
|
947
|
-
fontWeight?: number;
|
|
948
|
-
color?: string;
|
|
949
|
-
};
|
|
950
|
-
horizontalAxis?: {
|
|
951
|
-
hideAxisLines?: boolean;
|
|
952
|
-
hideSplitLines?: boolean;
|
|
953
|
-
hideAxisLabels?: boolean;
|
|
954
|
-
hideAxisTicks?: boolean;
|
|
955
|
-
axisName?: string;
|
|
956
|
-
axisNameOffset?: number;
|
|
957
|
-
fontSize?: number;
|
|
958
|
-
fontFamily?: string;
|
|
959
|
-
fontWeight?: number;
|
|
960
|
-
color?: string;
|
|
961
|
-
};
|
|
962
|
-
};
|