@databrainhq/plugin 0.15.57 → 0.15.59
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/components/Accordion/index.d.ts +34 -0
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +11 -0
- package/dist/components/Alert/index.d.ts +12 -0
- package/dist/components/AutoCompleteDropdown/index.d.ts +20 -0
- package/dist/components/Badge/index.d.ts +10 -0
- package/dist/components/Button/index.d.ts +14 -0
- package/dist/components/ButtonGroup/index.d.ts +16 -0
- package/dist/components/Chart/SingleValueChart.d.ts +39 -0
- package/dist/components/Chart/index.d.ts +48 -0
- package/dist/components/ChartModal/ChartConfig.d.ts +10 -0
- package/dist/components/ChartModal/ChartModalOptions.d.ts +14 -0
- package/dist/components/ChartModal/index.d.ts +3 -0
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +15 -0
- package/dist/components/ChartPopup/index.d.ts +28 -0
- package/dist/components/ChartReportPanel/index.d.ts +10 -0
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +13 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +10 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +8 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +8 -0
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +26 -0
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +14 -0
- package/dist/components/ChartSettingsPopup/index.d.ts +3 -0
- package/dist/components/ChartTypePanel/index.d.ts +15 -0
- package/dist/components/Checkbox/index.d.ts +11 -0
- package/dist/components/ColorField/ColorField.d.ts +13 -0
- package/dist/components/DataType/index.d.ts +9 -0
- package/dist/components/DateRangePicker/index.d.ts +36 -0
- package/dist/components/DraggableItem/index.d.ts +7 -0
- package/dist/components/DrillBreadCrumb/index.d.ts +16 -0
- package/dist/components/Error/index.d.ts +6 -0
- package/dist/components/ErrorFallback/index.d.ts +2 -0
- package/dist/components/ExternalMetricForm/index.d.ts +11 -0
- package/dist/components/FileUploader/index.d.ts +6 -0
- package/dist/components/FilterDropDown/index.d.ts +32 -0
- package/dist/components/FilterField/index.d.ts +40 -0
- package/dist/components/Flex/index.d.ts +13 -0
- package/dist/components/FloatingDropDown/index.d.ts +43 -0
- package/dist/components/FullScreenChart/index.d.ts +8 -0
- package/dist/components/GaugeLegend/index.d.ts +12 -0
- package/dist/components/GenerateMetric/index.d.ts +3 -0
- package/dist/components/GlobalFilters/AddFilter.d.ts +15 -0
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +9 -0
- package/dist/components/GlobalFilters/Filters.d.ts +29 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +36 -0
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +23 -0
- package/dist/components/GlobalFilters/SearchField.d.ts +10 -0
- package/dist/components/GlobalFilters/index.d.ts +82 -0
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +6 -0
- package/dist/components/HorizontalStackTable/index.d.ts +18 -0
- package/dist/components/Icons/Logos/index.d.ts +33 -0
- package/dist/components/Icons/index.d.ts +9 -0
- package/dist/components/InfoTooltip/index.d.ts +31 -0
- package/dist/components/InputField/index.d.ts +20 -0
- package/dist/components/List/index.d.ts +43 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Menu/index.d.ts +32 -0
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +13 -0
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +12 -0
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +12 -0
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +39 -0
- package/dist/components/MetricChart/index.d.ts +5 -0
- package/dist/components/MetricCreation/MetricCreation.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/Header/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +33 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +1 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +11 -0
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +3 -0
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +13 -0
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +22 -0
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +21 -0
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +15 -0
- package/dist/components/MetricCreation/index.d.ts +5 -0
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +18 -0
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +7 -0
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +19 -0
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +11 -0
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +12 -0
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +12 -0
- package/dist/components/MetricFilterDropDown/index.d.ts +25 -0
- package/dist/components/MetricList/MetricList.d.ts +79 -0
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +7 -0
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +13 -0
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +8 -0
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +12 -0
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +20 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +49 -0
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +7 -0
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +16 -0
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +19 -0
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +14 -0
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +17 -0
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +107 -0
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +11 -0
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +9 -0
- package/dist/components/MetricList/components/index.d.ts +7 -0
- package/dist/components/MetricList/index.d.ts +2 -0
- package/dist/components/MetricTable/index.d.ts +7 -0
- package/dist/components/Modal/Modal.d.ts +14 -0
- package/dist/components/Modal/ModalFooter.d.ts +5 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/MultiSelectDropdown/index.d.ts +45 -0
- package/dist/components/Panel/index.d.ts +17 -0
- package/dist/components/PivotTable/PivotTableV2.d.ts +23 -0
- package/dist/components/PivotTable/index.d.ts +8 -0
- package/dist/components/PivotTable/transformData.d.ts +7 -0
- package/dist/components/PopoverMenu/index.d.ts +39 -0
- package/dist/components/Portal/index.d.ts +2 -0
- package/dist/components/RadioButton/index.d.ts +16 -0
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +17 -0
- package/dist/components/ScheduleEmail/index.d.ts +18 -0
- package/dist/components/SearchDropdown/index.d.ts +14 -0
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +19 -0
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +44 -0
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +8 -0
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +9 -0
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +7 -0
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +3 -0
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +16 -0
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +23 -0
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +7 -0
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +5 -0
- package/dist/components/SearchMetricData/index.d.ts +1 -0
- package/dist/components/SearchTab/index.d.ts +13 -0
- package/dist/components/Select/index.d.ts +47 -0
- package/dist/components/SelfHostControl/index.d.ts +4 -0
- package/dist/components/SkeletonLoader/index.d.ts +9 -0
- package/dist/components/SpinningLoader/index.d.ts +2 -0
- package/dist/components/Switch/SwitchInput.d.ts +10 -0
- package/dist/components/Switch/index.d.ts +11 -0
- package/dist/components/Tab/index.d.ts +14 -0
- package/dist/components/Table/DebouncedInput.d.ts +6 -0
- package/dist/components/Table/Filter.d.ts +7 -0
- package/dist/components/Table/index.d.ts +40 -0
- package/dist/components/Tabs/index.d.ts +41 -0
- package/dist/components/TagInputField/index.d.ts +33 -0
- package/dist/components/Text/index.d.ts +15 -0
- package/dist/components/TextAreaField/index.d.ts +24 -0
- package/dist/components/ThemeBlock/index.d.ts +8 -0
- package/dist/components/TimeGrainField/index.d.ts +17 -0
- package/dist/components/TimeSeriesSettings/index.d.ts +8 -0
- package/dist/components/ToggleIconBtn/index.d.ts +14 -0
- package/dist/components/index.d.ts +67 -0
- package/dist/consts/api.d.ts +81 -0
- package/dist/consts/app.d.ts +157 -0
- package/dist/consts/index.d.ts +2 -0
- package/dist/consts/metricOptions.d.ts +209 -0
- package/dist/consts/validations.d.ts +24 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +85 -0
- package/dist/containers/Dashboard/DashboardProvider.d.ts +7 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +54 -0
- package/dist/containers/Dashboard/index.d.ts +2 -0
- package/dist/containers/DbnStyles.d.ts +14 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +55 -0
- package/dist/containers/Metric/MergedMetric.d.ts +54 -0
- package/dist/containers/Metric/index.d.ts +97 -0
- package/dist/containers/PluginProvider.d.ts +7 -0
- package/dist/containers/index.d.ts +3 -0
- package/dist/helpers/adaptiveFormatter.d.ts +6 -0
- package/dist/helpers/areArraysEqual.d.ts +1 -0
- package/dist/helpers/autoCompleteHelpers.d.ts +95 -0
- package/dist/helpers/cardActions.d.ts +5 -0
- package/dist/helpers/chartOptions.d.ts +93 -0
- package/dist/helpers/checkIsElementInViewport.d.ts +1 -0
- package/dist/helpers/conditionalFormatting.d.ts +3 -0
- package/dist/helpers/copyToClipboard.d.ts +4 -0
- package/dist/helpers/createMetric.d.ts +35 -0
- package/dist/helpers/darkColorIdentifier.d.ts +2 -0
- package/dist/helpers/dateFormatter.d.ts +1 -0
- package/dist/helpers/generateColorPalette.d.ts +1 -0
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +13 -0
- package/dist/helpers/getColumnType.d.ts +2 -0
- package/dist/helpers/getComboRangeLabel.d.ts +5 -0
- package/dist/helpers/getFilterAppliedQuery.d.ts +71 -0
- package/dist/helpers/getModifiedQuery.d.ts +78 -0
- package/dist/helpers/getNextScheduledTime.d.ts +13 -0
- package/dist/helpers/getTimeFilterValue.d.ts +12 -0
- package/dist/helpers/getValidRlsConditionOptions.d.ts +16 -0
- package/dist/helpers/groupArray.d.ts +1 -0
- package/dist/helpers/groupBy.d.ts +25 -0
- package/dist/helpers/index.d.ts +16 -0
- package/dist/helpers/numberFormatter.d.ts +1 -0
- package/dist/helpers/setOnDateChange.d.ts +11 -0
- package/dist/helpers/sqlMetadata.d.ts +7 -0
- package/dist/helpers/timeseries.d.ts +35 -0
- package/dist/helpers/timeseriesOption.d.ts +72 -0
- package/dist/helpers/tooltipFormatter.d.ts +27 -0
- package/dist/helpers/treeMap.d.ts +6 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/useArchiveMetric.d.ts +10 -0
- package/dist/hooks/useAutoCompleteOptions.d.ts +4 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +21 -0
- package/dist/hooks/useDashboardContext.d.ts +39 -0
- package/dist/hooks/useDatasetMetric.d.ts +50 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +21 -0
- package/dist/hooks/useDrag.d.ts +10 -0
- package/dist/hooks/useDragAndDropState.d.ts +10 -0
- package/dist/hooks/useDrop.d.ts +13 -0
- package/dist/hooks/useEmbeddedMetric.d.ts +27 -0
- package/dist/hooks/useExternalMetric.d.ts +55 -0
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +16 -0
- package/dist/hooks/useGenerateMetric.d.ts +64 -0
- package/dist/hooks/useMetricCard.d.ts +130 -0
- package/dist/hooks/useMetricConfig.d.ts +63 -0
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +37 -0
- package/dist/hooks/useOutsideAlerter.d.ts +14 -0
- package/dist/hooks/usePublishArchivedMetrics.d.ts +5 -0
- package/dist/hooks/usePythonResults.d.ts +17 -0
- package/dist/hooks/useScheduleEmail.d.ts +38 -0
- package/dist/hooks/useSearch.d.ts +55 -0
- package/dist/hooks/useUnderlyingData.d.ts +32 -0
- package/dist/index.d.ts +8 -0
- package/dist/queries/externalDashboard.mutation.d.ts +61 -0
- package/dist/queries/externalDashboard.query.d.ts +20 -0
- package/dist/queries/index.d.ts +1 -0
- package/dist/queries/metric.mutation.d.ts +57 -0
- package/dist/queries/metric.query.d.ts +12 -0
- package/dist/types/app.d.ts +964 -0
- package/dist/types/dragAndDropProps.d.ts +70 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/metricCreate.d.ts +768 -0
- package/dist/types/queryTypes.d.ts +350 -0
- package/dist/usa-c14e93e4.mjs +15112 -0
- package/dist/utils/arrayToCsvString.d.ts +6 -0
- package/dist/utils/colors.d.ts +2 -0
- package/dist/utils/fetcher.d.ts +13 -0
- package/dist/utils/getChartAttributes.d.ts +98 -0
- package/dist/utils/getChartImage.d.ts +3 -0
- package/dist/utils/getChartOptions.d.ts +42 -0
- package/dist/utils/getFormattedDataType.d.ts +1 -0
- package/dist/utils/getNoAxisChartOptions.d.ts +25 -0
- package/dist/utils/getValidJson.d.ts +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/pivotDataTransform.d.ts +7 -0
- package/dist/utils/popoverPosition.d.ts +2 -0
- package/dist/utils/theme.d.ts +42 -0
- package/dist/webcomponents.d.ts +11 -0
- package/dist/webcomponents.es.js +224001 -0
- package/dist/webcomponents.umd.js +4436 -0
- package/dist/world-8db01cf5.mjs +45896 -0
- package/package.json +1 -1
|
@@ -0,0 +1,964 @@
|
|
|
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
|
+
width?: string;
|
|
308
|
+
height?: string;
|
|
309
|
+
cumulativeBar?: boolean;
|
|
310
|
+
showFunnelShadow?: boolean;
|
|
311
|
+
stepPadding?: number;
|
|
312
|
+
isStackBar?: boolean;
|
|
313
|
+
showSelectLegend?: boolean;
|
|
314
|
+
showStackLabels?: boolean;
|
|
315
|
+
coloredBars?: boolean;
|
|
316
|
+
customColor?: string;
|
|
317
|
+
};
|
|
318
|
+
export type TableSettings = {
|
|
319
|
+
headerFontBold?: boolean;
|
|
320
|
+
contentAlignment?: string;
|
|
321
|
+
contentWeight?: number;
|
|
322
|
+
headerAlignment?: string;
|
|
323
|
+
hideTableHeader?: boolean;
|
|
324
|
+
lineGap?: string;
|
|
325
|
+
hideVerticalDivider?: boolean;
|
|
326
|
+
hideHorizontalDivider?: boolean;
|
|
327
|
+
badgeColumns?: string[];
|
|
328
|
+
isEnableNumberFormatting?: boolean;
|
|
329
|
+
formattedColumns?: string[];
|
|
330
|
+
tableFormatter?: string;
|
|
331
|
+
tableSuffix?: string;
|
|
332
|
+
tablePrefix?: string;
|
|
333
|
+
enableStripedRows?: boolean;
|
|
334
|
+
showRowHover?: boolean;
|
|
335
|
+
showTableIcon?: boolean;
|
|
336
|
+
showColumnFilter?: boolean;
|
|
337
|
+
showDownloadBtn?: boolean;
|
|
338
|
+
showTableTitle?: boolean;
|
|
339
|
+
tableTitle?: string;
|
|
340
|
+
showTableDesc?: boolean;
|
|
341
|
+
enableTableSearch?: boolean;
|
|
342
|
+
isEnableColumnFilter?: boolean;
|
|
343
|
+
enableFilter?: boolean;
|
|
344
|
+
enableSorting?: boolean;
|
|
345
|
+
disablePagination?: boolean;
|
|
346
|
+
defaultRowSize?: string;
|
|
347
|
+
columnSizing?: ColumnSizingState;
|
|
348
|
+
isServerSidePagination?: boolean;
|
|
349
|
+
isSortAlphabetically?: boolean;
|
|
350
|
+
isEnableTimezoneFormatting?: boolean;
|
|
351
|
+
timeFormatter?: string;
|
|
352
|
+
conditionalFormatting?: {
|
|
353
|
+
columnName: string;
|
|
354
|
+
rules: {
|
|
355
|
+
operator: string;
|
|
356
|
+
value: string;
|
|
357
|
+
styles: {
|
|
358
|
+
backgroundColor?: string;
|
|
359
|
+
color?: string;
|
|
360
|
+
};
|
|
361
|
+
}[];
|
|
362
|
+
}[];
|
|
363
|
+
badgeColors?: Record<string, string>;
|
|
364
|
+
badgeTextColors?: Record<string, string>;
|
|
365
|
+
badgeSeparator?: string;
|
|
366
|
+
listColumns?: string[];
|
|
367
|
+
listSeparator?: string;
|
|
368
|
+
stackColAlias?: string;
|
|
369
|
+
customHeaderColor?: {
|
|
370
|
+
isEnabled?: boolean;
|
|
371
|
+
color?: string;
|
|
372
|
+
textColor?: string;
|
|
373
|
+
};
|
|
374
|
+
replaceNullValues?: boolean;
|
|
375
|
+
};
|
|
376
|
+
export type BackgroundSettings = {
|
|
377
|
+
show?: boolean;
|
|
378
|
+
};
|
|
379
|
+
export type LabelSettings = {
|
|
380
|
+
axis?: string;
|
|
381
|
+
show?: boolean;
|
|
382
|
+
position?: string;
|
|
383
|
+
truncateLabel?: boolean;
|
|
384
|
+
truncateLabelValue?: number;
|
|
385
|
+
showLabelLine?: boolean;
|
|
386
|
+
isEnableValueSummation?: boolean;
|
|
387
|
+
showDimension?: boolean;
|
|
388
|
+
XAxisStyle?: {
|
|
389
|
+
size?: number;
|
|
390
|
+
family?: string;
|
|
391
|
+
weight?: number;
|
|
392
|
+
color?: string;
|
|
393
|
+
axisName?: string;
|
|
394
|
+
axisPadding?: number;
|
|
395
|
+
};
|
|
396
|
+
YAxisStyle?: {
|
|
397
|
+
size?: number;
|
|
398
|
+
family?: string;
|
|
399
|
+
weight?: number;
|
|
400
|
+
color?: string;
|
|
401
|
+
axisName?: string;
|
|
402
|
+
axisPadding?: number;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
export type AxisSettings = {
|
|
406
|
+
axis?: string;
|
|
407
|
+
};
|
|
408
|
+
export type PivotSettingsType = {
|
|
409
|
+
rows?: string[];
|
|
410
|
+
columns?: string[];
|
|
411
|
+
};
|
|
412
|
+
export type PivotSettingsType2 = {
|
|
413
|
+
measures?: string[];
|
|
414
|
+
dimensions?: string[];
|
|
415
|
+
headers?: string[];
|
|
416
|
+
isDynamicHeaders?: boolean;
|
|
417
|
+
aggregates?: Aggregate[];
|
|
418
|
+
dims?: string[];
|
|
419
|
+
};
|
|
420
|
+
export type GaugeSettingsType = {
|
|
421
|
+
metric?: string;
|
|
422
|
+
dimensions?: string[];
|
|
423
|
+
};
|
|
424
|
+
export type TooltipSettings = {
|
|
425
|
+
labelStyle?: {
|
|
426
|
+
size?: number;
|
|
427
|
+
family?: string;
|
|
428
|
+
weight?: number;
|
|
429
|
+
color?: string;
|
|
430
|
+
};
|
|
431
|
+
valueStyle?: {
|
|
432
|
+
size?: number;
|
|
433
|
+
family?: string;
|
|
434
|
+
weight?: number;
|
|
435
|
+
color?: string;
|
|
436
|
+
};
|
|
437
|
+
tooltipHeader?: {
|
|
438
|
+
size?: number;
|
|
439
|
+
family?: string;
|
|
440
|
+
weight?: number;
|
|
441
|
+
color?: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
export type ChartSettingsType = {
|
|
445
|
+
chartType: keyof typeof CHART_TYPES;
|
|
446
|
+
mergedMetrics?: {
|
|
447
|
+
firstMetric?: string;
|
|
448
|
+
secondMetric?: string;
|
|
449
|
+
};
|
|
450
|
+
margins?: MarginSettings;
|
|
451
|
+
xAxis?: string;
|
|
452
|
+
yAxisList?: string[];
|
|
453
|
+
numberColumns?: string[];
|
|
454
|
+
progressColumn?: string;
|
|
455
|
+
progressMaxColumn?: string;
|
|
456
|
+
progressMinColumn?: string;
|
|
457
|
+
dateColumns?: string[];
|
|
458
|
+
chartColors?: string[];
|
|
459
|
+
stackTableCols?: string[];
|
|
460
|
+
step?: string;
|
|
461
|
+
measure?: string;
|
|
462
|
+
singleValue?: string;
|
|
463
|
+
sankeyValues?: string[];
|
|
464
|
+
percentageSize?: number;
|
|
465
|
+
selectedSeries?: string[];
|
|
466
|
+
metricCardSettings?: MetricCardSettings;
|
|
467
|
+
legendSettings?: LegendSettings;
|
|
468
|
+
labelSettings?: LabelSettings;
|
|
469
|
+
customSettings?: CustomSettings;
|
|
470
|
+
tooltipSettings?: TooltipSettings;
|
|
471
|
+
tableSettings?: TableSettings;
|
|
472
|
+
pivotTableSettings?: PivotSettingsType;
|
|
473
|
+
pivotTableSettings2?: PivotSettingsType2;
|
|
474
|
+
gaugeSettings?: GaugeSettingsType;
|
|
475
|
+
axisSettings?: AxisSettings;
|
|
476
|
+
backGroundColor?: BackgroundSettings;
|
|
477
|
+
timeSeriesSettings?: TimeSeriesSettingsType;
|
|
478
|
+
isMultiDimension?: boolean;
|
|
479
|
+
isDynamicSeries?: boolean;
|
|
480
|
+
seriesField?: string;
|
|
481
|
+
seriesOptions?: string[];
|
|
482
|
+
ungroupedAlias?: string;
|
|
483
|
+
dynamicXAxis?: {
|
|
484
|
+
isEnabled?: boolean;
|
|
485
|
+
options?: FloatingDropDownOption[];
|
|
486
|
+
selectedOption?: FloatingDropDownOption;
|
|
487
|
+
};
|
|
488
|
+
dynamicYAxis?: {
|
|
489
|
+
isEnabled?: boolean;
|
|
490
|
+
options?: FloatingDropDownOption[];
|
|
491
|
+
selectedOption?: FloatingDropDownOption;
|
|
492
|
+
};
|
|
493
|
+
comboBarList: string[];
|
|
494
|
+
isGroupXAxis?: boolean;
|
|
495
|
+
isEnableComparisonFilter?: boolean;
|
|
496
|
+
enduserMeasureAndDimensions?: {
|
|
497
|
+
isEnabled?: boolean;
|
|
498
|
+
measures?: FloatingDropDownOption[];
|
|
499
|
+
dimensions?: FloatingDropDownOption[];
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
export type SelectedColumns = {
|
|
503
|
+
column: string;
|
|
504
|
+
datatype: string;
|
|
505
|
+
schemaName: string;
|
|
506
|
+
tableName: string;
|
|
507
|
+
};
|
|
508
|
+
export type Schema = {
|
|
509
|
+
id: string;
|
|
510
|
+
schemaName: string;
|
|
511
|
+
tableName: string;
|
|
512
|
+
columns: string[];
|
|
513
|
+
columnsWithDataType: {
|
|
514
|
+
as: any;
|
|
515
|
+
dataType: string;
|
|
516
|
+
name: string;
|
|
517
|
+
label?: string;
|
|
518
|
+
isDefault?: boolean;
|
|
519
|
+
isShowHorizontal?: boolean;
|
|
520
|
+
defaultValue?: string[] | string | number | number[] | Record<string, any>;
|
|
521
|
+
options?: FloatingDropDownOption[];
|
|
522
|
+
isClientScoped?: boolean;
|
|
523
|
+
clientColumn?: string;
|
|
524
|
+
clientColumnType?: string;
|
|
525
|
+
isManualOptions?: boolean;
|
|
526
|
+
manualOptions?: string[];
|
|
527
|
+
dependOn?: FloatingDropDownOption[];
|
|
528
|
+
}[];
|
|
529
|
+
};
|
|
530
|
+
export type RlsFilterObjectType = {
|
|
531
|
+
columnName: string;
|
|
532
|
+
condition: string;
|
|
533
|
+
createdAt: any;
|
|
534
|
+
defaultValue?: string | null | undefined;
|
|
535
|
+
value?: string;
|
|
536
|
+
id: any;
|
|
537
|
+
name: string;
|
|
538
|
+
tableName: string;
|
|
539
|
+
labelColumnName?: string;
|
|
540
|
+
operator?: string | 'and' | 'or';
|
|
541
|
+
user: {
|
|
542
|
+
id: any;
|
|
543
|
+
firstName: string;
|
|
544
|
+
lastName: string;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
export type SelectedTable = {
|
|
548
|
+
tableName: string;
|
|
549
|
+
columns: {
|
|
550
|
+
name: string;
|
|
551
|
+
datatype: string;
|
|
552
|
+
as: string;
|
|
553
|
+
}[] | [];
|
|
554
|
+
}[] | undefined;
|
|
555
|
+
export type GroupBy = {
|
|
556
|
+
column: string;
|
|
557
|
+
parentColumn?: {
|
|
558
|
+
column: string;
|
|
559
|
+
value: string;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
export type ClientType = {
|
|
563
|
+
label: string;
|
|
564
|
+
value: string;
|
|
565
|
+
type: ClientColumnType;
|
|
566
|
+
};
|
|
567
|
+
export type DashboardType = {
|
|
568
|
+
id: string;
|
|
569
|
+
name: string;
|
|
570
|
+
};
|
|
571
|
+
export type FloatingDropDownOption = {
|
|
572
|
+
key?: string;
|
|
573
|
+
label: string;
|
|
574
|
+
value: string;
|
|
575
|
+
tooltip?: string;
|
|
576
|
+
badge?: string;
|
|
577
|
+
subValue?: string | FloatingDropDownOption;
|
|
578
|
+
subLabelOptions?: string[] | FloatingDropDownOption[];
|
|
579
|
+
icon?: string;
|
|
580
|
+
columnList?: any;
|
|
581
|
+
labelType?: string;
|
|
582
|
+
aggregate?: string;
|
|
583
|
+
alias?: string;
|
|
584
|
+
table?: TableObjectType;
|
|
585
|
+
isImportEnabled?: boolean;
|
|
586
|
+
column?: SelectedColumn;
|
|
587
|
+
subLabelIcon?: string;
|
|
588
|
+
clientColumnType?: ClientColumnType;
|
|
589
|
+
tableColumn?: TableColumn;
|
|
590
|
+
colTypes?: any;
|
|
591
|
+
customColumnName?: string;
|
|
592
|
+
dbName?: string;
|
|
593
|
+
id?: string;
|
|
594
|
+
type?: ClientColumnType;
|
|
595
|
+
presetDateOption?: Record<any, any>;
|
|
596
|
+
filter?: GlobalFilterColumn | RlsCondition;
|
|
597
|
+
};
|
|
598
|
+
export type FilterType = {
|
|
599
|
+
tableName: string;
|
|
600
|
+
columns: Schema['columnsWithDataType'];
|
|
601
|
+
};
|
|
602
|
+
export type SchemaPair = {
|
|
603
|
+
targetSchema: string;
|
|
604
|
+
replaceSchema: string;
|
|
605
|
+
};
|
|
606
|
+
export type DateRange = {
|
|
607
|
+
type?: FloatingDropDownOption;
|
|
608
|
+
interval?: number;
|
|
609
|
+
timeGrain?: FloatingDropDownOption;
|
|
610
|
+
startDate?: Date;
|
|
611
|
+
endDate?: Date;
|
|
612
|
+
label?: string;
|
|
613
|
+
};
|
|
614
|
+
export type GlobalFilterColumn = {
|
|
615
|
+
filterType?: string;
|
|
616
|
+
selectedTable?: string;
|
|
617
|
+
variableStrings?: string[];
|
|
618
|
+
as: any;
|
|
619
|
+
dataType: string;
|
|
620
|
+
name: string;
|
|
621
|
+
labelColumnName?: string;
|
|
622
|
+
labelColumnDatatype?: string;
|
|
623
|
+
customLabelColumn?: string;
|
|
624
|
+
isDefault?: boolean;
|
|
625
|
+
label?: string;
|
|
626
|
+
isShowHorizontal?: boolean;
|
|
627
|
+
defaultValue?: GlobalFiltersDefaultValue;
|
|
628
|
+
isClientScoped?: boolean;
|
|
629
|
+
clientColumn?: string;
|
|
630
|
+
clientColumnType?: string;
|
|
631
|
+
isManualOptions?: boolean;
|
|
632
|
+
manualOptions?: string[];
|
|
633
|
+
dependOn?: FloatingDropDownOption[];
|
|
634
|
+
selectedCustomColumn?: {
|
|
635
|
+
query: string;
|
|
636
|
+
columnName: string;
|
|
637
|
+
};
|
|
638
|
+
options?: FloatingDropDownOption[];
|
|
639
|
+
isVariableFilter?: boolean;
|
|
640
|
+
applyOnTables?: {
|
|
641
|
+
tableName: string;
|
|
642
|
+
columnName: string;
|
|
643
|
+
dataType: string;
|
|
644
|
+
isCustomSql: boolean;
|
|
645
|
+
isApplyOnAssociatedTable?: boolean;
|
|
646
|
+
}[];
|
|
647
|
+
filterVariant?: FloatingDropDownOption;
|
|
648
|
+
isAutoSelectFilterValue?: boolean;
|
|
649
|
+
isEnableClearSelection?: boolean;
|
|
650
|
+
restrictedMetrics?: FloatingDropDownOption[];
|
|
651
|
+
isAppFilter?: boolean;
|
|
652
|
+
isSelectAllMultiSelect?: boolean;
|
|
653
|
+
dateVariant?: FloatingDropDownOption;
|
|
654
|
+
dateSelectionType?: FloatingDropDownOption;
|
|
655
|
+
isEnableDateRestriction?: boolean;
|
|
656
|
+
dateRestrictionRange?: {
|
|
657
|
+
startDate?: Date;
|
|
658
|
+
endDate?: Date;
|
|
659
|
+
from?: DateRange;
|
|
660
|
+
to?: DateRange;
|
|
661
|
+
};
|
|
662
|
+
datePresetOptions?: {
|
|
663
|
+
type: FloatingDropDownOption;
|
|
664
|
+
interval: number;
|
|
665
|
+
timeGrain: FloatingDropDownOption;
|
|
666
|
+
label: string;
|
|
667
|
+
}[];
|
|
668
|
+
autoSelectType?: FloatingDropDownOption;
|
|
669
|
+
autoSelectCount?: number;
|
|
670
|
+
};
|
|
671
|
+
export type GlobalFilterType = {
|
|
672
|
+
tableName: string;
|
|
673
|
+
columns: GlobalFilterColumn[];
|
|
674
|
+
};
|
|
675
|
+
export type JoinField = {
|
|
676
|
+
a: string;
|
|
677
|
+
b: string;
|
|
678
|
+
};
|
|
679
|
+
export type SqlError = {
|
|
680
|
+
isSqlEditorErr?: boolean;
|
|
681
|
+
errorMessage: string;
|
|
682
|
+
explanation: string;
|
|
683
|
+
solution: string;
|
|
684
|
+
};
|
|
685
|
+
export type DateOptionType = {
|
|
686
|
+
id: string;
|
|
687
|
+
range: string;
|
|
688
|
+
time: string;
|
|
689
|
+
format: string;
|
|
690
|
+
name: string;
|
|
691
|
+
count: number;
|
|
692
|
+
endDate?: Date;
|
|
693
|
+
startDate?: Date;
|
|
694
|
+
fromDate?: Date;
|
|
695
|
+
timeGrain?: string;
|
|
696
|
+
toDate?: Date;
|
|
697
|
+
minDate?: Date;
|
|
698
|
+
maxDate?: Date;
|
|
699
|
+
timeGrainValue?: string;
|
|
700
|
+
isSingleDate?: boolean;
|
|
701
|
+
restrictionDateFrom?: DateRange;
|
|
702
|
+
restrictionDateTo?: DateRange;
|
|
703
|
+
};
|
|
704
|
+
export type CustomOption = {
|
|
705
|
+
startDate?: Date;
|
|
706
|
+
endDate?: Date;
|
|
707
|
+
value: string | number;
|
|
708
|
+
label: string;
|
|
709
|
+
range?: string;
|
|
710
|
+
fromDate?: Date;
|
|
711
|
+
toDate?: Date;
|
|
712
|
+
minDate?: Date;
|
|
713
|
+
maxDate?: Date;
|
|
714
|
+
timeGrainValue?: string;
|
|
715
|
+
restrictionDateFrom?: DateRange;
|
|
716
|
+
restrictionDateTo?: DateRange;
|
|
717
|
+
};
|
|
718
|
+
export type RlsCondition = {
|
|
719
|
+
name: string;
|
|
720
|
+
columnName: string;
|
|
721
|
+
labelColumnName?: string;
|
|
722
|
+
tableName: string;
|
|
723
|
+
datatype: string;
|
|
724
|
+
isAddOnMetrics: boolean;
|
|
725
|
+
options: FloatingDropDownOption[] | number[] | DateOptionType[];
|
|
726
|
+
value?: string | DateOptionType | string[];
|
|
727
|
+
selectedDropdownValue?: FloatingDropDownOption[] | FloatingDropDownOption;
|
|
728
|
+
dimensionColumn?: string;
|
|
729
|
+
measureColumn?: string;
|
|
730
|
+
client?: {
|
|
731
|
+
isEnable: boolean;
|
|
732
|
+
columnName: string;
|
|
733
|
+
as?: string;
|
|
734
|
+
};
|
|
735
|
+
isAppFilter?: boolean;
|
|
736
|
+
position?: 'top-left' | 'top-right';
|
|
737
|
+
isVariableFilter?: boolean;
|
|
738
|
+
variableOptions?: CustomOption[];
|
|
739
|
+
variableStrings?: string[];
|
|
740
|
+
selectedVariableValue?: CustomOption;
|
|
741
|
+
optionColumnName?: string;
|
|
742
|
+
optionTableName?: string;
|
|
743
|
+
filterType?: string;
|
|
744
|
+
applyOnColumns?: {
|
|
745
|
+
columnName: FloatingDropDownOption;
|
|
746
|
+
logicalOperator: FloatingDropDownOption;
|
|
747
|
+
comparisonOperator: FloatingDropDownOption;
|
|
748
|
+
isCustomSql?: boolean;
|
|
749
|
+
}[];
|
|
750
|
+
comparisonOperator?: FloatingDropDownOption;
|
|
751
|
+
dependOn?: FloatingDropDownOption;
|
|
752
|
+
selectedCustomOptionTable?: {
|
|
753
|
+
query: string;
|
|
754
|
+
columnName: string;
|
|
755
|
+
};
|
|
756
|
+
filterVariant?: FloatingDropDownOption;
|
|
757
|
+
group?: string;
|
|
758
|
+
isCustomSql?: boolean;
|
|
759
|
+
dateOptionType?: FloatingDropDownOption;
|
|
760
|
+
isEnableDateRestriction?: boolean;
|
|
761
|
+
isAutoSelect?: boolean;
|
|
762
|
+
autoSelectType?: FloatingDropDownOption;
|
|
763
|
+
autoSelectCount?: number;
|
|
764
|
+
};
|
|
765
|
+
export type PythonMetricFilter = {
|
|
766
|
+
name: string;
|
|
767
|
+
type: 'STRING' | 'DATE' | 'NUMBER';
|
|
768
|
+
value: {
|
|
769
|
+
startDate: Date;
|
|
770
|
+
endDate: Date;
|
|
771
|
+
} | string | number;
|
|
772
|
+
};
|
|
773
|
+
export type MetricData = {
|
|
774
|
+
id: string;
|
|
775
|
+
name: string;
|
|
776
|
+
dashboards: {
|
|
777
|
+
name: string;
|
|
778
|
+
id: string;
|
|
779
|
+
}[];
|
|
780
|
+
description: string;
|
|
781
|
+
createdBy: string;
|
|
782
|
+
dateCreated: string;
|
|
783
|
+
};
|
|
784
|
+
export type GetUnderlyingData = ({ columnName, value, setData, setLoading, isSingleValueChart, clientColumnType, }: {
|
|
785
|
+
columnName: string | undefined;
|
|
786
|
+
value: any | undefined;
|
|
787
|
+
setData: React.Dispatch<React.SetStateAction<any[]>>;
|
|
788
|
+
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
789
|
+
isSingleValueChart: boolean;
|
|
790
|
+
clientColumnType: ClientColumnType;
|
|
791
|
+
}) => void;
|
|
792
|
+
export type ConditionalFormattingParam = {
|
|
793
|
+
value: any;
|
|
794
|
+
rules: {
|
|
795
|
+
operator: string;
|
|
796
|
+
value: string;
|
|
797
|
+
styles: any;
|
|
798
|
+
}[];
|
|
799
|
+
};
|
|
800
|
+
export type DateTypeOptionType = {
|
|
801
|
+
range: 'Last' | 'This' | 'Custom' | 'Custom Date';
|
|
802
|
+
time?: 'Day' | 'Week' | 'Month' | 'Quarter' | 'Year';
|
|
803
|
+
name: string;
|
|
804
|
+
count?: number;
|
|
805
|
+
fromDate?: Date;
|
|
806
|
+
toDate?: Date;
|
|
807
|
+
minDate?: Date;
|
|
808
|
+
maxDate?: Date;
|
|
809
|
+
};
|
|
810
|
+
export type MetricFilterOptionsType = Record<string, {
|
|
811
|
+
options: string[] | {
|
|
812
|
+
value: string | number;
|
|
813
|
+
label: string;
|
|
814
|
+
}[] | number[] | DateTypeOptionType[];
|
|
815
|
+
defaultOption?: string | number;
|
|
816
|
+
}>;
|
|
817
|
+
export type GlobalFilterOptionsType = Record<string, {
|
|
818
|
+
options?: {
|
|
819
|
+
value: string | number;
|
|
820
|
+
label: string;
|
|
821
|
+
}[];
|
|
822
|
+
defaultOption?: string[] | string | {
|
|
823
|
+
startDate: Date | undefined;
|
|
824
|
+
endDate: Date | undefined;
|
|
825
|
+
} | {
|
|
826
|
+
min: number | null;
|
|
827
|
+
max: number | null;
|
|
828
|
+
};
|
|
829
|
+
}>;
|
|
830
|
+
export type FilterClausesType = (dependOn: FloatingDropDownOption[]) => {
|
|
831
|
+
as: string;
|
|
832
|
+
columnName: string;
|
|
833
|
+
value: string | string[];
|
|
834
|
+
}[];
|
|
835
|
+
export type AdminThemeOptionsType = {
|
|
836
|
+
general: {
|
|
837
|
+
name: string;
|
|
838
|
+
fontFamily: string;
|
|
839
|
+
};
|
|
840
|
+
dashboard: {
|
|
841
|
+
backgroundColor?: string;
|
|
842
|
+
ctaColor?: string;
|
|
843
|
+
ctaTextColor?: string;
|
|
844
|
+
selectBoxSize?: 'small' | 'medium' | 'large';
|
|
845
|
+
selectBoxVariant?: 'floating' | 'static';
|
|
846
|
+
selectBoxBorderRadius?: string;
|
|
847
|
+
selectBoxTextColor?: string;
|
|
848
|
+
metricCardColor?: string;
|
|
849
|
+
};
|
|
850
|
+
cardDescription: {
|
|
851
|
+
fontSize?: string;
|
|
852
|
+
fontWeight?: string;
|
|
853
|
+
color?: string;
|
|
854
|
+
};
|
|
855
|
+
cardTitle: {
|
|
856
|
+
fontSize?: string;
|
|
857
|
+
fontWeight?: string;
|
|
858
|
+
color?: string;
|
|
859
|
+
};
|
|
860
|
+
chart: {
|
|
861
|
+
palettes?: {
|
|
862
|
+
name: string;
|
|
863
|
+
colors: string[];
|
|
864
|
+
}[];
|
|
865
|
+
selected?: string;
|
|
866
|
+
};
|
|
867
|
+
cardCustomization: {
|
|
868
|
+
padding?: string;
|
|
869
|
+
borderRadius?: string;
|
|
870
|
+
shadow?: string;
|
|
871
|
+
disableShadowOnHover?: boolean;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
export type FilterValueType = string | string[] | number | number[] | boolean | boolean[] | null | Record<string, any>;
|
|
875
|
+
export type PivotFilterType = {
|
|
876
|
+
columnName: string;
|
|
877
|
+
value: any;
|
|
878
|
+
};
|
|
879
|
+
export type OnDrillPivotTableParams = {
|
|
880
|
+
filters: PivotFilterType[];
|
|
881
|
+
nextLevel: number;
|
|
882
|
+
currentValue: string;
|
|
883
|
+
};
|
|
884
|
+
export type PivotDrillState = {
|
|
885
|
+
isLoading: boolean;
|
|
886
|
+
error: string;
|
|
887
|
+
data: {
|
|
888
|
+
key: string;
|
|
889
|
+
data: Record<string, any>[];
|
|
890
|
+
}[];
|
|
891
|
+
currentValue: string;
|
|
892
|
+
};
|
|
893
|
+
export type ClientColumnType = 'STRING' | 'NUMBER';
|
|
894
|
+
export type ChartAppearanceType = {
|
|
895
|
+
chartTooltip?: {
|
|
896
|
+
labelStyle?: {
|
|
897
|
+
size?: number;
|
|
898
|
+
family?: string;
|
|
899
|
+
weight?: number;
|
|
900
|
+
color?: string;
|
|
901
|
+
};
|
|
902
|
+
valueStyle?: {
|
|
903
|
+
size?: number;
|
|
904
|
+
family?: string;
|
|
905
|
+
weight?: number;
|
|
906
|
+
color?: string;
|
|
907
|
+
};
|
|
908
|
+
tooltipHeader?: {
|
|
909
|
+
size?: number;
|
|
910
|
+
family?: string;
|
|
911
|
+
weight?: number;
|
|
912
|
+
color?: string;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
chartLabel?: {
|
|
916
|
+
position?: 'hidden' | 'top' | 'left' | 'right' | 'bottom' | 'inside';
|
|
917
|
+
radialChartposition?: 'outside' | 'inside';
|
|
918
|
+
};
|
|
919
|
+
chartMargin?: {
|
|
920
|
+
marginTop?: number;
|
|
921
|
+
marginLeft?: number;
|
|
922
|
+
marginRight?: number;
|
|
923
|
+
marginBottom?: number;
|
|
924
|
+
};
|
|
925
|
+
chartLegend?: {
|
|
926
|
+
show?: boolean;
|
|
927
|
+
fixedPosition?: 'top-left' | 'top-center' | 'top-right' | 'left-center' | 'right-center' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
928
|
+
enableVariablePosition?: boolean;
|
|
929
|
+
top?: number;
|
|
930
|
+
left?: number;
|
|
931
|
+
disableLegendScrolling?: boolean;
|
|
932
|
+
legendAppearance?: 'horizontal' | 'vertical';
|
|
933
|
+
truncateLegend?: number;
|
|
934
|
+
legendShape?: 'circle' | 'rect' | 'roundRect' | 'triangle' | 'diamond' | 'arrow' | 'none';
|
|
935
|
+
fontSize?: number;
|
|
936
|
+
fontWeight?: number;
|
|
937
|
+
fontFamily?: string;
|
|
938
|
+
color?: string;
|
|
939
|
+
};
|
|
940
|
+
verticalAxis?: {
|
|
941
|
+
hideAxisLines?: boolean;
|
|
942
|
+
hideSplitLines?: boolean;
|
|
943
|
+
hideAxisLabels?: boolean;
|
|
944
|
+
hideAxisTicks?: boolean;
|
|
945
|
+
axisName?: string;
|
|
946
|
+
axisNameOffset?: number;
|
|
947
|
+
fontSize?: number;
|
|
948
|
+
fontFamily?: string;
|
|
949
|
+
fontWeight?: number;
|
|
950
|
+
color?: string;
|
|
951
|
+
};
|
|
952
|
+
horizontalAxis?: {
|
|
953
|
+
hideAxisLines?: boolean;
|
|
954
|
+
hideSplitLines?: boolean;
|
|
955
|
+
hideAxisLabels?: boolean;
|
|
956
|
+
hideAxisTicks?: boolean;
|
|
957
|
+
axisName?: string;
|
|
958
|
+
axisNameOffset?: number;
|
|
959
|
+
fontSize?: number;
|
|
960
|
+
fontFamily?: string;
|
|
961
|
+
fontWeight?: number;
|
|
962
|
+
color?: string;
|
|
963
|
+
};
|
|
964
|
+
};
|