@databrainhq/plugin 0.15.57 → 0.15.58
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 +106 -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 +39 -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 +962 -0
- package/dist/types/dragAndDropProps.d.ts +70 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/metricCreate.d.ts +766 -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 +223780 -0
- package/dist/webcomponents.umd.js +4399 -0
- package/dist/world-8db01cf5.mjs +45896 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FloatingDropDownOption } from '@/types';
|
|
3
|
+
import { Ui } from '@/index';
|
|
4
|
+
export type FloatingDropDownProps = {
|
|
5
|
+
id?: string;
|
|
6
|
+
onChange: (option: FloatingDropDownOption) => void;
|
|
7
|
+
selectedOption: FloatingDropDownOption;
|
|
8
|
+
options: FloatingDropDownOption[];
|
|
9
|
+
button?: JSX.Element | React.ReactNode;
|
|
10
|
+
customOption?: JSX.Element;
|
|
11
|
+
label?: string;
|
|
12
|
+
labelVariant?: 'floating' | 'static';
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
isSearchEnabled?: boolean;
|
|
15
|
+
icon?: JSX.Element;
|
|
16
|
+
buttonWidth?: string;
|
|
17
|
+
menuWidth?: string;
|
|
18
|
+
searchPlaceholder?: string;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
customButton?: JSX.Element;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
disableAutoClose?: boolean;
|
|
23
|
+
radius?: string;
|
|
24
|
+
isFilter?: boolean;
|
|
25
|
+
isClearEnabled?: boolean;
|
|
26
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
27
|
+
buttonHeight?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
menuMaxHeight?: string;
|
|
30
|
+
isImportant?: boolean;
|
|
31
|
+
dataTestTitle?: string;
|
|
32
|
+
isAutoSelectOption?: boolean;
|
|
33
|
+
isAutoSelectFromLast?: boolean;
|
|
34
|
+
onSearch?: (searchKeyword: string) => void;
|
|
35
|
+
isLoadingData?: boolean;
|
|
36
|
+
hasOnlyColumnName?: boolean;
|
|
37
|
+
error?: string;
|
|
38
|
+
menuZIndex?: number;
|
|
39
|
+
containerWidth?: string;
|
|
40
|
+
allowSubvalueIndentation?: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare const FloatingDropDown: ({ id, label, labelVariant, selectedOption, onChange, button, options, customOption, isDisabled, customButton, icon, buttonWidth, buttonHeight, menuWidth, size, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, className, menuMaxHeight, isImportant, dataTestTitle, isAutoSelectOption, onSearch, isLoadingData, error, menuZIndex, isAutoSelectFromLast, containerWidth, }: FloatingDropDownProps) => React.JSX.Element;
|
|
43
|
+
export declare const FloatingDropDownWithSubValues: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, isImportant, hasOnlyColumnName, containerWidth, allowSubvalueIndentation, }: FloatingDropDownProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
data: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color: string;
|
|
7
|
+
}[];
|
|
8
|
+
legendPosition?: string;
|
|
9
|
+
legendTruncate: number;
|
|
10
|
+
};
|
|
11
|
+
declare const GaugeLegend: ({ data, legendPosition, legendTruncate }: Props) => React.JSX.Element;
|
|
12
|
+
export default GaugeLegend;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbeddedMetricCreationProps } from '@/types';
|
|
3
|
+
export declare const GenerateMetric: ({ clientId, companyId, externalDashboardId, isLiveMode, isShowMetricCreateModal, setShowMetricCreateModal, userProvidedDashboardId, workspaceId, chartColors, metric, metricData, variant, clientColumnType, datasourceId, }: EmbeddedMetricCreationProps) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Filter = {
|
|
3
|
+
as: any;
|
|
4
|
+
dataType: string;
|
|
5
|
+
name: string;
|
|
6
|
+
isDefault?: boolean | undefined;
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
columnList: Filter[];
|
|
11
|
+
setFilterList: React.Dispatch<React.SetStateAction<Filter[]>>;
|
|
12
|
+
filterList: Filter[];
|
|
13
|
+
};
|
|
14
|
+
declare const AddFilter: ({ columnList, filterList, setFilterList }: Props) => React.JSX.Element;
|
|
15
|
+
export default AddFilter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterFieldType } from '@/components';
|
|
3
|
+
type AppliedFilterProps = {
|
|
4
|
+
appliedFilter: FilterFieldType[];
|
|
5
|
+
setAppliedFilters: React.Dispatch<React.SetStateAction<FilterFieldType[]>>;
|
|
6
|
+
onChangeFilters: (updatedFilters: FilterFieldType[]) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const AppliedFilter: ({ appliedFilter, setAppliedFilters, onChangeFilters, }: AppliedFilterProps) => React.JSX.Element;
|
|
9
|
+
export default AppliedFilter;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterFieldType } from '@/components';
|
|
3
|
+
import { GlobalFilterType, GlobalFilterColumn, ClientColumnType } from '@/types/app';
|
|
4
|
+
type FiltersProps = {
|
|
5
|
+
filterList: GlobalFilterColumn[];
|
|
6
|
+
setFilterList: React.Dispatch<React.SetStateAction<GlobalFilterColumn[]>>;
|
|
7
|
+
appliedfilters: FilterFieldType[];
|
|
8
|
+
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
9
|
+
filters: GlobalFilterType[];
|
|
10
|
+
internal?: {
|
|
11
|
+
isInternal: boolean;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
};
|
|
14
|
+
clientId?: string;
|
|
15
|
+
isAllClient?: boolean;
|
|
16
|
+
theme: {
|
|
17
|
+
width: string;
|
|
18
|
+
variant: 'static' | 'floating';
|
|
19
|
+
radius: string;
|
|
20
|
+
};
|
|
21
|
+
filterOptions?: (column: string) => JSX.Element;
|
|
22
|
+
tenancyLevel: string;
|
|
23
|
+
clientColumnType: ClientColumnType;
|
|
24
|
+
hideDatePickerOptions?: string[];
|
|
25
|
+
isEndUserApp?: boolean;
|
|
26
|
+
datasourceId: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const Filters: React.FC<FiltersProps>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Layout } from 'react-grid-layout';
|
|
3
|
+
import { GlobalFilterType, ClientColumnType } from '@/types/app';
|
|
4
|
+
import { FilterFieldType } from '@/components';
|
|
5
|
+
type HorizontalFiltersProps = {
|
|
6
|
+
appliedfilters: FilterFieldType[];
|
|
7
|
+
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
8
|
+
filters: GlobalFilterType[];
|
|
9
|
+
internal?: {
|
|
10
|
+
isInternal: boolean;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
};
|
|
13
|
+
clientId?: string;
|
|
14
|
+
isAllClient?: boolean;
|
|
15
|
+
theme: {
|
|
16
|
+
width: string;
|
|
17
|
+
variant: 'static' | 'floating';
|
|
18
|
+
radius: string;
|
|
19
|
+
};
|
|
20
|
+
addGlobalFilter?: JSX.Element;
|
|
21
|
+
filterOptions?: (column: string) => JSX.Element;
|
|
22
|
+
tenancyLevel: string;
|
|
23
|
+
clientColumnType: ClientColumnType;
|
|
24
|
+
layout: {
|
|
25
|
+
clientLayout: string[];
|
|
26
|
+
adminLayout: any;
|
|
27
|
+
isLocked: boolean;
|
|
28
|
+
onChange: (layout: Layout[]) => void;
|
|
29
|
+
};
|
|
30
|
+
isEditLayoutEnabled: boolean;
|
|
31
|
+
hideDatePickerOptions?: string[];
|
|
32
|
+
isEndUserApp?: boolean;
|
|
33
|
+
datasourceId: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const HorizontalFilters: React.FC<HorizontalFiltersProps>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GlobalFilterColumn } from '@/types';
|
|
3
|
+
type NumberFieldProps = {
|
|
4
|
+
setAppliedFilters?: any;
|
|
5
|
+
column?: GlobalFilterColumn;
|
|
6
|
+
defaultValues?: {
|
|
7
|
+
min: number | null;
|
|
8
|
+
max: number | null;
|
|
9
|
+
};
|
|
10
|
+
className?: string;
|
|
11
|
+
onChange?: (value: {
|
|
12
|
+
min: number | null;
|
|
13
|
+
max: number | null;
|
|
14
|
+
}) => void;
|
|
15
|
+
label?: string;
|
|
16
|
+
variant?: 'static' | 'floating';
|
|
17
|
+
buttonWidth?: string;
|
|
18
|
+
radius?: string;
|
|
19
|
+
isFilter?: boolean;
|
|
20
|
+
isDisabled?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const NumberFilterField: ({ setAppliedFilters, column, defaultValues, className, onChange, label, variant, buttonWidth, radius, isFilter, isDisabled, }: NumberFieldProps) => React.JSX.Element;
|
|
23
|
+
export default NumberFilterField;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FloatingDropDownOption, GlobalFilterColumn } from '@/types';
|
|
3
|
+
type SearchFieldProps = {
|
|
4
|
+
column: GlobalFilterColumn;
|
|
5
|
+
onClickSearch: (value: string | undefined) => void;
|
|
6
|
+
selectedValue: FloatingDropDownOption;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const SearchField: ({ column, onClickSearch, selectedValue, isDisabled, }: SearchFieldProps) => React.JSX.Element;
|
|
10
|
+
export default SearchField;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Layout } from 'react-grid-layout';
|
|
3
|
+
import { FilterFieldType, MetricCardProps } from '@/components';
|
|
4
|
+
import { ClientColumnType, FilterValueType, GlobalFilterColumn, GlobalFilterType } from '@/types/app';
|
|
5
|
+
type GlobalFiltersProps = {
|
|
6
|
+
filters: GlobalFilterType[];
|
|
7
|
+
onApply: (filters: MetricCardProps['globalFilters']) => void;
|
|
8
|
+
renderAdditionalHeaderContent?: () => JSX.Element;
|
|
9
|
+
internal?: {
|
|
10
|
+
isInternal: boolean;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
};
|
|
13
|
+
clientId?: string;
|
|
14
|
+
clientColumnType: ClientColumnType;
|
|
15
|
+
isAllClient?: boolean;
|
|
16
|
+
theme: {
|
|
17
|
+
width: string;
|
|
18
|
+
variant: 'static' | 'floating';
|
|
19
|
+
radius: string;
|
|
20
|
+
};
|
|
21
|
+
addGlobalFilter?: JSX.Element;
|
|
22
|
+
filterOptions?: (column: string) => JSX.Element;
|
|
23
|
+
tenancyLevel: string;
|
|
24
|
+
setSelectedFilterVal?: React.Dispatch<React.SetStateAction<{
|
|
25
|
+
name: string;
|
|
26
|
+
value: FilterValueType;
|
|
27
|
+
}[]>>;
|
|
28
|
+
appliedFilterPairs?: Record<string, string | string[]>;
|
|
29
|
+
workspaceId?: string;
|
|
30
|
+
layout: {
|
|
31
|
+
clientLayout: string[];
|
|
32
|
+
adminLayout: any;
|
|
33
|
+
isLocked: boolean;
|
|
34
|
+
onChange: (layout: Layout[]) => void;
|
|
35
|
+
};
|
|
36
|
+
isEditLayoutEnabled: boolean;
|
|
37
|
+
setCompleted?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
38
|
+
isTourActive?: boolean;
|
|
39
|
+
hideDatePickerOptions?: string[];
|
|
40
|
+
filterIconColor?: string;
|
|
41
|
+
filterButtonBgColor?: string;
|
|
42
|
+
isEndUserApp?: boolean;
|
|
43
|
+
onServerEvent?: any;
|
|
44
|
+
datasourceId: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const getFormattedFilterValue: (obj: {
|
|
47
|
+
operator: string;
|
|
48
|
+
value: any;
|
|
49
|
+
}) => any;
|
|
50
|
+
export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
|
|
51
|
+
type FilterPopupProps = {
|
|
52
|
+
filters: GlobalFilterType[];
|
|
53
|
+
renderAdditionalHeaderContent?: () => JSX.Element;
|
|
54
|
+
filterList: GlobalFilterColumn[];
|
|
55
|
+
setFilterList: React.Dispatch<React.SetStateAction<GlobalFilterColumn[]>>;
|
|
56
|
+
appliedfilters: FilterFieldType[];
|
|
57
|
+
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
58
|
+
globalFilterRef: React.RefObject<HTMLDivElement>;
|
|
59
|
+
handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
|
|
60
|
+
resetFilters: () => void;
|
|
61
|
+
internal?: {
|
|
62
|
+
isInternal: boolean;
|
|
63
|
+
workspaceId: string;
|
|
64
|
+
};
|
|
65
|
+
clientId?: string;
|
|
66
|
+
isAllClient?: boolean;
|
|
67
|
+
theme: {
|
|
68
|
+
width: string;
|
|
69
|
+
variant: 'static' | 'floating';
|
|
70
|
+
radius: string;
|
|
71
|
+
};
|
|
72
|
+
filterOptions?: (column: string) => JSX.Element;
|
|
73
|
+
tenancyLevel: string;
|
|
74
|
+
clientColumnType: ClientColumnType;
|
|
75
|
+
hideDatePickerOptions?: string[];
|
|
76
|
+
filterIconColor?: string;
|
|
77
|
+
filterButtonBgColor?: string;
|
|
78
|
+
isEndUserApp?: boolean;
|
|
79
|
+
datasourceId: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const FilterPopup: React.FC<FilterPopupProps>;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DebouncedInput: ({ value: initialValue, onChange, debounce, ...props }: {
|
|
3
|
+
value: string | number;
|
|
4
|
+
onChange: (value: string | number) => void;
|
|
5
|
+
debounce?: number | undefined;
|
|
6
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OnChangeFn, ColumnSizingState } from '@tanstack/react-table';
|
|
3
|
+
import { TableSettings } from '@/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
data?: any[];
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error: string;
|
|
8
|
+
tableSettings?: TableSettings;
|
|
9
|
+
className?: string;
|
|
10
|
+
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
11
|
+
onChartReady?: () => void;
|
|
12
|
+
stackCols?: string[];
|
|
13
|
+
rawData?: any;
|
|
14
|
+
colors?: string[];
|
|
15
|
+
showLabels?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const HorizontalStackTable: ({ data, isLoading, error, tableSettings, className, onColumnSizingChange, onChartReady, stackCols, rawData, colors, showLabels, }: Props) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const logos: {
|
|
2
|
+
redshift: string;
|
|
3
|
+
postgres: string;
|
|
4
|
+
mysql: string;
|
|
5
|
+
mongodb: string;
|
|
6
|
+
bigquery: string;
|
|
7
|
+
snowflake: string;
|
|
8
|
+
microsoft: string;
|
|
9
|
+
google: string;
|
|
10
|
+
elasticsearch: string;
|
|
11
|
+
redis: string;
|
|
12
|
+
databricks: string;
|
|
13
|
+
clickhouse: string;
|
|
14
|
+
mssql: string;
|
|
15
|
+
duckdb: string;
|
|
16
|
+
awss3: string;
|
|
17
|
+
openai: string;
|
|
18
|
+
claude: string;
|
|
19
|
+
gemini: string;
|
|
20
|
+
mixtral: string;
|
|
21
|
+
azure: string;
|
|
22
|
+
palm: string;
|
|
23
|
+
aws: string;
|
|
24
|
+
csv: string;
|
|
25
|
+
llama: string;
|
|
26
|
+
noDataDB: string;
|
|
27
|
+
help: string;
|
|
28
|
+
demo: string;
|
|
29
|
+
slack: string;
|
|
30
|
+
msTeams: string;
|
|
31
|
+
embedded: string;
|
|
32
|
+
noSummary: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { IconConfig } from '@/types';
|
|
3
|
+
type TooltipProps = PropsWithChildren & {
|
|
4
|
+
content?: JSX.Element;
|
|
5
|
+
className?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
tooltipClass?: string;
|
|
8
|
+
isSingleLineTxt?: boolean;
|
|
9
|
+
setHoverLongDesc?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center';
|
|
11
|
+
};
|
|
12
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
13
|
+
export declare const NewTooltip: ({ children, text, className, position, tooltipClass, isSingleLineTxt, }: TooltipProps) => React.JSX.Element;
|
|
14
|
+
export declare const InfoTooltip: React.FC<Omit<TooltipProps, 'content'> & {
|
|
15
|
+
iconConfig?: IconConfig;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const MetricToolTip: ({ title, html, className, position, setHoverLongDesc, }: {
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
} & {
|
|
20
|
+
content?: JSX.Element | undefined;
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
text?: string | undefined;
|
|
23
|
+
tooltipClass?: string | undefined;
|
|
24
|
+
isSingleLineTxt?: boolean | undefined;
|
|
25
|
+
setHoverLongDesc?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
26
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top" | "bottom" | "left" | "right" | "center" | "left-bottom-end" | "right-bottom-end" | "left-top-end" | "right-top-end" | "left-bottom" | "left-top" | "right-bottom" | "right-top" | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
html?: string | undefined;
|
|
29
|
+
title?: string | undefined;
|
|
30
|
+
}) => React.JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FieldError, FieldErrorsImpl, Merge, UseFormRegisterReturn } from 'react-hook-form';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props extends React.HTMLProps<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
register?: UseFormRegisterReturn;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
elementRef?: React.Ref<HTMLInputElement>;
|
|
9
|
+
supportingText?: string | undefined;
|
|
10
|
+
error?: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
|
|
11
|
+
leftIcon?: JSX.Element;
|
|
12
|
+
rightIcon?: JSX.Element;
|
|
13
|
+
labelVariant?: 'floating' | 'static';
|
|
14
|
+
isImportant?: boolean;
|
|
15
|
+
addSuffix?: string;
|
|
16
|
+
addPrefix?: string;
|
|
17
|
+
inlineLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const InputField: ({ type, register, label, isDisabled, id, elementRef, error, supportingText, leftIcon, rightIcon, addSuffix, addPrefix, inlineLabel, labelVariant, value, isImportant, ...rest }: Props) => React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Ui } from '@/index';
|
|
3
|
+
export type ListHeaderType = {
|
|
4
|
+
name: string;
|
|
5
|
+
headerCell?: React.ReactNode;
|
|
6
|
+
columnKey: string;
|
|
7
|
+
columnCell?: (row: Record<string, any>) => React.ReactNode;
|
|
8
|
+
colSpan?: number;
|
|
9
|
+
};
|
|
10
|
+
export type ListProps = {
|
|
11
|
+
headers: ListHeaderType[];
|
|
12
|
+
data: Record<string, any>[];
|
|
13
|
+
variant?: 'primary' | 'secondary';
|
|
14
|
+
noDataText?: string;
|
|
15
|
+
loadMoreText?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
initialLimit?: number;
|
|
18
|
+
isDataLoading?: boolean;
|
|
19
|
+
showLogo?: boolean;
|
|
20
|
+
isShowOptions?: boolean;
|
|
21
|
+
setValue?: React.Dispatch<React.SetStateAction<{
|
|
22
|
+
action: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}>>;
|
|
25
|
+
isDisableMoreOption?: boolean;
|
|
26
|
+
isEnableSelectAll?: boolean;
|
|
27
|
+
onSelectAll?: () => void;
|
|
28
|
+
onDeselectAll?: () => void;
|
|
29
|
+
isAllSelected?: boolean;
|
|
30
|
+
parent?: 'DASHBOARD' | 'METRIC' | 'DATAMART' | 'LLM' | 'SEMANTIC' | 'DATAAPP' | 'DATASOURCE';
|
|
31
|
+
extraValues?: any;
|
|
32
|
+
extraHeaderText?: string;
|
|
33
|
+
onTourClick?: (e: any) => void;
|
|
34
|
+
onRowClick?: (e: any) => void;
|
|
35
|
+
onRowHover?: (e: any) => void;
|
|
36
|
+
onMouseOut?: () => void;
|
|
37
|
+
buttonContent?: JSX.Element;
|
|
38
|
+
noDataSubHeading?: string;
|
|
39
|
+
isDatasourceList?: boolean;
|
|
40
|
+
stateKey?: string;
|
|
41
|
+
onCreate?: () => void;
|
|
42
|
+
};
|
|
43
|
+
export declare const List: ({ headers, data, variant, noDataText, loadMoreText, className, initialLimit, isDataLoading, showLogo, isShowOptions, setValue, isDisableMoreOption, isEnableSelectAll, onSelectAll, onDeselectAll, isAllSelected, parent, extraValues, extraHeaderText, onTourClick, onRowClick, onRowHover, onMouseOut, buttonContent, noDataSubHeading, isDatasourceList, stateKey, onCreate, }: ListProps) => React.JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PopoverMenuProps } from '@/components/PopoverMenu';
|
|
3
|
+
export type MenuItem = {
|
|
4
|
+
name: string;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
leftIcon?: JSX.Element;
|
|
8
|
+
rightIcon?: JSX.Element;
|
|
9
|
+
onClick?: (name: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export type MenuProps = Pick<PopoverMenuProps, 'position' | 'menuWidth' | 'offset' | 'children'> & {
|
|
12
|
+
buttonVariant?: 'outlined-text' | 'icon' | 'text-with-icon' | 'outlined-icon' | 'outlined-text-with-icon';
|
|
13
|
+
buttonText?: string;
|
|
14
|
+
buttonIcon?: JSX.Element;
|
|
15
|
+
buttonWidth?: string;
|
|
16
|
+
buttonContent?: React.ReactNode;
|
|
17
|
+
items: MenuItem[];
|
|
18
|
+
disableAutoClose?: boolean;
|
|
19
|
+
zIndex?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @name Menu - Showing custom actionable list in a popup.
|
|
23
|
+
* @prop buttonVariant - Showing the button variant which triggers the popup.
|
|
24
|
+
* @prop buttonIcon - Icon to show in the button trigger.
|
|
25
|
+
* @prop buttonText - Text to show in the button trigger.
|
|
26
|
+
* @prop items - List of item object to show in the menu popup.
|
|
27
|
+
* @prop menuWidth - Width of the popup menu.
|
|
28
|
+
* @prop offset - Array of x and y position from the button to popup menu.
|
|
29
|
+
* @prop position - Position of the popup menu.
|
|
30
|
+
* @returns JSX to render the menu.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Menu: ({ buttonVariant, buttonIcon, buttonText, offset, position, menuWidth, buttonWidth, buttonContent, items, children, disableAutoClose, zIndex, }: MenuProps) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import EChartsReact from 'echarts-for-react';
|
|
3
|
+
type DownloadButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
iconClass?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
chartRef: React.RefObject<EChartsReact>;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
onServerEvent?: any;
|
|
10
|
+
metricId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ChartImageDownloadButton: ({ className, iconClass, fileName, text, chartRef, onServerEvent, metricId, }: DownloadButtonProps) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconConfig } from '@/types';
|
|
3
|
+
type CsvDownloadButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
data: Record<string, string>[];
|
|
6
|
+
fileName: string;
|
|
7
|
+
iconConfig?: IconConfig;
|
|
8
|
+
text?: string;
|
|
9
|
+
icon?: JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export declare const CsvDownloadButton: React.FC<CsvDownloadButtonProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartSettingsType } from '@/types';
|
|
3
|
+
type PivotDownloadButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
data: Record<string, string>[];
|
|
6
|
+
fileName: string;
|
|
7
|
+
iconClass?: string;
|
|
8
|
+
text?: string;
|
|
9
|
+
chartOptions?: ChartSettingsType;
|
|
10
|
+
};
|
|
11
|
+
export declare const PivotDownloadButton: React.FC<PivotDownloadButtonProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricCardProps } from '@/components';
|
|
3
|
+
import { RlsCondition } from '@/types';
|
|
4
|
+
export type CsvDownloadMetricReqData = {
|
|
5
|
+
id: string;
|
|
6
|
+
dataSecuritySettings?: {
|
|
7
|
+
csvColumns: string[];
|
|
8
|
+
};
|
|
9
|
+
globalFilters: MetricCardProps['globalFilters'];
|
|
10
|
+
rlsConditions: RlsCondition[];
|
|
11
|
+
tenancyLevel: string;
|
|
12
|
+
filterValues?: Record<string, string>;
|
|
13
|
+
isAllClient?: boolean;
|
|
14
|
+
options: {
|
|
15
|
+
token?: string;
|
|
16
|
+
isFrontend?: boolean;
|
|
17
|
+
clientId?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type UnderlyingDataConfig = {
|
|
21
|
+
isEnable: boolean;
|
|
22
|
+
column: string;
|
|
23
|
+
value: any;
|
|
24
|
+
};
|
|
25
|
+
export type RawCsvDownloadButtonProps = {
|
|
26
|
+
fileName: string;
|
|
27
|
+
companyIntegrationId?: string;
|
|
28
|
+
integrationName?: string;
|
|
29
|
+
metricData: CsvDownloadMetricReqData;
|
|
30
|
+
className?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
updateDownloadProgress: (isEnable: boolean) => void;
|
|
33
|
+
isPythonMode: boolean;
|
|
34
|
+
data: Record<string, any>[];
|
|
35
|
+
underlyingData?: UnderlyingDataConfig;
|
|
36
|
+
onServerEvent?: any;
|
|
37
|
+
isDownloadWithoutFilters?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const RawCsvDownloadButton: ({ fileName, metricData, className, children, updateDownloadProgress, isPythonMode, data, underlyingData, onServerEvent, isDownloadWithoutFilters, }: RawCsvDownloadButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
|
|
3
|
+
export declare const EmbeddedMetricCreation: ({ clientId, companyId, isLiveMode, externalDashboardId, userProvidedDashboardId, chartColors, isShowMetricCreateModal, setShowMetricCreateModal, metric, metricData, workspaceId, token, clientColumnType, tenancyType, datasourceId, }: EmbeddedMetricCreationProps) => React.JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, datasourceId, }: ConstructMetricProps) => React.JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, datasourceId, }: ConstructMetricProps) => React.JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricOutputProps } from '@/types/metricCreate';
|
|
3
|
+
export declare const MetricOutput: ({ data, error, isLoading, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, isDisableSqlBtn, setShowSqlModal, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, outputHeaderProps, configuration, dbName, pivotDrillState, isSortReversed, newMetricCreation: { functionOptions, onChangeAlias, onChangeHelperFunction, onDropColumn, onRemoveColumn, selectedDims, selectedMetrics, dimModifiers, metricModifiers, isTimeSeries, }, drillProps, }: MetricOutputProps) => React.JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClickActionsConfig, ChartSettingsType, PivotDrillState } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
data?: Record<string, any>[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
headerChild?: JSX.Element;
|
|
7
|
+
chartPopupChild?: JSX.Element;
|
|
8
|
+
chartColors?: string[];
|
|
9
|
+
chartSettings: ChartSettingsType;
|
|
10
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
11
|
+
handleChartRightClick?: (params: any) => void;
|
|
12
|
+
chartClickConfig?: ClickActionsConfig['chart'];
|
|
13
|
+
isEnablePivotTable: boolean;
|
|
14
|
+
groupbyList: any[];
|
|
15
|
+
hasNumberKeys: boolean;
|
|
16
|
+
isEnableGauge: boolean;
|
|
17
|
+
error: string;
|
|
18
|
+
pivotDrillState: PivotDrillState;
|
|
19
|
+
isSortReversed?: boolean;
|
|
20
|
+
drillProps: {
|
|
21
|
+
onChangeDrillDown: (params: any, isEnable?: boolean, isChange?: boolean) => void;
|
|
22
|
+
drillLevel: number;
|
|
23
|
+
dimensions: string[];
|
|
24
|
+
isDrillEnableGroupBy: boolean;
|
|
25
|
+
drillFilters: {
|
|
26
|
+
columnName: string;
|
|
27
|
+
value: any;
|
|
28
|
+
}[];
|
|
29
|
+
onDrillLevelClick: (index: number) => void;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, pivotDrillState, error, isSortReversed, drillProps: { onChangeDrillDown, dimensions, drillLevel, isDrillEnableGroupBy, drillFilters, onDrillLevelClick, }, }: Props) => React.JSX.Element;
|
|
33
|
+
export {};
|