@databrainhq/plugin 0.15.56 → 0.15.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/components/Accordion/index.d.ts +0 -34
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
- package/dist/components/Alert/index.d.ts +0 -12
- package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
- package/dist/components/Badge/index.d.ts +0 -10
- package/dist/components/Button/index.d.ts +0 -14
- package/dist/components/ButtonGroup/index.d.ts +0 -16
- package/dist/components/Chart/SingleValueChart.d.ts +0 -38
- package/dist/components/Chart/index.d.ts +0 -47
- package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
- package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
- package/dist/components/ChartModal/index.d.ts +0 -3
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
- package/dist/components/ChartPopup/index.d.ts +0 -28
- package/dist/components/ChartReportPanel/index.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
- package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
- package/dist/components/ChartTypePanel/index.d.ts +0 -15
- package/dist/components/Checkbox/index.d.ts +0 -11
- package/dist/components/ColorField/ColorField.d.ts +0 -13
- package/dist/components/DataType/index.d.ts +0 -9
- package/dist/components/DateRangePicker/index.d.ts +0 -36
- package/dist/components/DraggableItem/index.d.ts +0 -7
- package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
- package/dist/components/Error/index.d.ts +0 -6
- package/dist/components/ErrorFallback/index.d.ts +0 -2
- package/dist/components/ExternalMetricForm/index.d.ts +0 -11
- package/dist/components/FileUploader/index.d.ts +0 -6
- package/dist/components/FilterDropDown/index.d.ts +0 -32
- package/dist/components/FilterField/index.d.ts +0 -40
- package/dist/components/Flex/index.d.ts +0 -13
- package/dist/components/FloatingDropDown/index.d.ts +0 -43
- package/dist/components/FullScreenChart/index.d.ts +0 -8
- package/dist/components/GaugeLegend/index.d.ts +0 -12
- package/dist/components/GenerateMetric/index.d.ts +0 -3
- package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
- package/dist/components/GlobalFilters/Filters.d.ts +0 -29
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -36
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
- package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
- package/dist/components/GlobalFilters/index.d.ts +0 -82
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
- package/dist/components/HorizontalStackTable/index.d.ts +0 -18
- package/dist/components/Icons/Logos/index.d.ts +0 -33
- package/dist/components/Icons/index.d.ts +0 -9
- package/dist/components/InfoTooltip/index.d.ts +0 -31
- package/dist/components/InputField/index.d.ts +0 -20
- package/dist/components/List/index.d.ts +0 -43
- package/dist/components/Loader/index.d.ts +0 -6
- package/dist/components/Menu/index.d.ts +0 -32
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -13
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -39
- package/dist/components/MetricChart/index.d.ts +0 -5
- package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -21
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
- package/dist/components/MetricCreation/index.d.ts +0 -5
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -18
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -19
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/index.d.ts +0 -25
- package/dist/components/MetricList/MetricList.d.ts +0 -79
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -20
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -49
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -16
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -19
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -17
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -106
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
- package/dist/components/MetricList/components/index.d.ts +0 -7
- package/dist/components/MetricList/index.d.ts +0 -2
- package/dist/components/MetricTable/index.d.ts +0 -7
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/ModalFooter.d.ts +0 -5
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelectDropdown/index.d.ts +0 -45
- package/dist/components/Panel/index.d.ts +0 -17
- package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
- package/dist/components/PivotTable/index.d.ts +0 -8
- package/dist/components/PivotTable/transformData.d.ts +0 -7
- package/dist/components/PopoverMenu/index.d.ts +0 -39
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/RadioButton/index.d.ts +0 -16
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -17
- package/dist/components/ScheduleEmail/index.d.ts +0 -18
- package/dist/components/SearchDropdown/index.d.ts +0 -14
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -16
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
- package/dist/components/SearchMetricData/index.d.ts +0 -1
- package/dist/components/SearchTab/index.d.ts +0 -13
- package/dist/components/Select/index.d.ts +0 -47
- package/dist/components/SelfHostControl/index.d.ts +0 -4
- package/dist/components/SkeletonLoader/index.d.ts +0 -9
- package/dist/components/SpinningLoader/index.d.ts +0 -2
- package/dist/components/Switch/SwitchInput.d.ts +0 -10
- package/dist/components/Switch/index.d.ts +0 -11
- package/dist/components/Tab/index.d.ts +0 -14
- package/dist/components/Table/DebouncedInput.d.ts +0 -6
- package/dist/components/Table/Filter.d.ts +0 -7
- package/dist/components/Table/index.d.ts +0 -39
- package/dist/components/Tabs/index.d.ts +0 -41
- package/dist/components/TagInputField/index.d.ts +0 -33
- package/dist/components/Text/index.d.ts +0 -15
- package/dist/components/TextAreaField/index.d.ts +0 -24
- package/dist/components/ThemeBlock/index.d.ts +0 -8
- package/dist/components/TimeGrainField/index.d.ts +0 -17
- package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
- package/dist/components/ToggleIconBtn/index.d.ts +0 -14
- package/dist/components/index.d.ts +0 -67
- package/dist/consts/api.d.ts +0 -81
- package/dist/consts/app.d.ts +0 -157
- package/dist/consts/index.d.ts +0 -2
- package/dist/consts/metricOptions.d.ts +0 -209
- package/dist/consts/validations.d.ts +0 -24
- package/dist/containers/Dashboard/Dashboard.d.ts +0 -85
- package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -54
- package/dist/containers/Dashboard/index.d.ts +0 -2
- package/dist/containers/DbnStyles.d.ts +0 -14
- package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -55
- package/dist/containers/Metric/MergedMetric.d.ts +0 -54
- package/dist/containers/Metric/index.d.ts +0 -97
- package/dist/containers/PluginProvider.d.ts +0 -7
- package/dist/containers/index.d.ts +0 -3
- package/dist/helpers/adaptiveFormatter.d.ts +0 -6
- package/dist/helpers/areArraysEqual.d.ts +0 -1
- package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
- package/dist/helpers/cardActions.d.ts +0 -5
- package/dist/helpers/chartOptions.d.ts +0 -93
- package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
- package/dist/helpers/conditionalFormatting.d.ts +0 -3
- package/dist/helpers/copyToClipboard.d.ts +0 -4
- package/dist/helpers/createMetric.d.ts +0 -35
- package/dist/helpers/darkColorIdentifier.d.ts +0 -2
- package/dist/helpers/dateFormatter.d.ts +0 -1
- package/dist/helpers/generateColorPalette.d.ts +0 -1
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
- package/dist/helpers/getColumnType.d.ts +0 -2
- package/dist/helpers/getComboRangeLabel.d.ts +0 -5
- package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
- package/dist/helpers/getModifiedQuery.d.ts +0 -78
- package/dist/helpers/getNextScheduledTime.d.ts +0 -13
- package/dist/helpers/getTimeFilterValue.d.ts +0 -12
- package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
- package/dist/helpers/groupArray.d.ts +0 -1
- package/dist/helpers/groupBy.d.ts +0 -25
- package/dist/helpers/index.d.ts +0 -16
- package/dist/helpers/numberFormatter.d.ts +0 -1
- package/dist/helpers/setOnDateChange.d.ts +0 -11
- package/dist/helpers/sqlMetadata.d.ts +0 -7
- package/dist/helpers/timeseries.d.ts +0 -35
- package/dist/helpers/timeseriesOption.d.ts +0 -72
- package/dist/helpers/tooltipFormatter.d.ts +0 -27
- package/dist/helpers/treeMap.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/useArchiveMetric.d.ts +0 -10
- package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
- package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
- package/dist/hooks/useDashboardContext.d.ts +0 -39
- package/dist/hooks/useDatasetMetric.d.ts +0 -50
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
- package/dist/hooks/useDrag.d.ts +0 -10
- package/dist/hooks/useDragAndDropState.d.ts +0 -10
- package/dist/hooks/useDrop.d.ts +0 -13
- package/dist/hooks/useEmbeddedMetric.d.ts +0 -27
- package/dist/hooks/useExternalMetric.d.ts +0 -55
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -16
- package/dist/hooks/useGenerateMetric.d.ts +0 -64
- package/dist/hooks/useMetricCard.d.ts +0 -130
- package/dist/hooks/useMetricConfig.d.ts +0 -63
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -37
- package/dist/hooks/useOutsideAlerter.d.ts +0 -14
- package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
- package/dist/hooks/usePythonResults.d.ts +0 -17
- package/dist/hooks/useScheduleEmail.d.ts +0 -38
- package/dist/hooks/useSearch.d.ts +0 -55
- package/dist/hooks/useUnderlyingData.d.ts +0 -32
- package/dist/index.d.ts +0 -8
- package/dist/queries/externalDashboard.mutation.d.ts +0 -61
- package/dist/queries/externalDashboard.query.d.ts +0 -20
- package/dist/queries/index.d.ts +0 -1
- package/dist/queries/metric.mutation.d.ts +0 -57
- package/dist/queries/metric.query.d.ts +0 -12
- package/dist/types/app.d.ts +0 -962
- package/dist/types/dragAndDropProps.d.ts +0 -70
- package/dist/types/index.d.ts +0 -3
- package/dist/types/metricCreate.d.ts +0 -766
- package/dist/types/queryTypes.d.ts +0 -350
- package/dist/usa-c14e93e4.mjs +0 -15112
- package/dist/utils/arrayToCsvString.d.ts +0 -6
- package/dist/utils/colors.d.ts +0 -2
- package/dist/utils/fetcher.d.ts +0 -13
- package/dist/utils/getChartAttributes.d.ts +0 -98
- package/dist/utils/getChartImage.d.ts +0 -3
- package/dist/utils/getChartOptions.d.ts +0 -42
- package/dist/utils/getFormattedDataType.d.ts +0 -1
- package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
- package/dist/utils/getValidJson.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/pivotDataTransform.d.ts +0 -7
- package/dist/utils/popoverPosition.d.ts +0 -2
- package/dist/utils/theme.d.ts +0 -42
- package/dist/webcomponents.d.ts +0 -11
- package/dist/webcomponents.es.js +0 -223698
- package/dist/webcomponents.umd.js +0 -4399
- package/dist/world-8db01cf5.mjs +0 -45896
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type AccordionProps = {
|
|
3
|
-
title: string;
|
|
4
|
-
content: React.ReactNode;
|
|
5
|
-
width?: string;
|
|
6
|
-
isOpen?: boolean;
|
|
7
|
-
badge?: React.ReactNode;
|
|
8
|
-
setIsOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
-
headerButton?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare const Accordion: React.FC<AccordionProps>;
|
|
12
|
-
type AccordionV2Props = {
|
|
13
|
-
footer?: React.ReactNode;
|
|
14
|
-
isEnableEditBtn?: boolean;
|
|
15
|
-
editBtnOnClick?: () => void;
|
|
16
|
-
isNoPadding?: boolean;
|
|
17
|
-
} & AccordionProps;
|
|
18
|
-
export declare const AccordionV2: React.FC<AccordionV2Props>;
|
|
19
|
-
type AccordionV3Props = {
|
|
20
|
-
header?: React.ReactNode;
|
|
21
|
-
footer?: React.ReactNode;
|
|
22
|
-
content: React.ReactNode;
|
|
23
|
-
headerButton?: React.ReactNode;
|
|
24
|
-
isOpen?: boolean;
|
|
25
|
-
width?: string;
|
|
26
|
-
id?: string;
|
|
27
|
-
setIsOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
28
|
-
};
|
|
29
|
-
export declare const AccordionV3: ({ content, footer, header, isOpen, width, setIsOpen, headerButton, id, }: AccordionV3Props) => React.JSX.Element;
|
|
30
|
-
type AccordionV4Props = {
|
|
31
|
-
headerIcon?: React.ReactNode;
|
|
32
|
-
} & AccordionV3Props;
|
|
33
|
-
export declare const AccordionV4: ({ content, footer, header, headerIcon, isOpen, width, setIsOpen, headerButton, }: AccordionV4Props) => React.JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
onChange?: any;
|
|
4
|
-
value?: string;
|
|
5
|
-
onExecute?: (value?: string) => void;
|
|
6
|
-
editorRef: any;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const AceEditorSql: ({ onChange, value, onExecute, editorRef, isDisabled, placeholder, }: Props) => React.JSX.Element;
|
|
11
|
-
export default AceEditorSql;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Colors } from '@/types';
|
|
3
|
-
export type AlertProps = {
|
|
4
|
-
text: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
variant?: 'primary' | 'warning' | 'error' | 'success' | 'info';
|
|
7
|
-
hideInfoIcon?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
childrenClassName?: string;
|
|
10
|
-
textColor?: Colors;
|
|
11
|
-
};
|
|
12
|
-
export declare const Alert: ({ variant, text, children, hideInfoIcon, className, childrenClassName, textColor, }: AlertProps) => React.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FloatingDropDownOption, OnChangeAliasParams, OnChangeHelperFunctionParams, SelectedColumn } from '@/types';
|
|
3
|
-
export type AutoCompleteDropdownProps = {
|
|
4
|
-
setSelectedOptions: React.Dispatch<React.SetStateAction<SelectedColumn[]>>;
|
|
5
|
-
onSubmitSearch?: () => void;
|
|
6
|
-
selectedOption: SelectedColumn[];
|
|
7
|
-
options: SelectedColumn[];
|
|
8
|
-
label?: string;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
functionOptions?: (col?: SelectedColumn | undefined, colDatatype?: string | undefined) => FloatingDropDownOption[];
|
|
12
|
-
onChangeHelperFunction?: ({ column, helperFunction, functionConfiguration, type, }: OnChangeHelperFunctionParams) => void;
|
|
13
|
-
onChangeAlias: ({ alias, column }: OnChangeAliasParams) => void;
|
|
14
|
-
position?: 'top' | 'bottom';
|
|
15
|
-
setKeyWords?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
16
|
-
isSaveKeyword?: boolean;
|
|
17
|
-
setSaveKeyword?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
|
-
setSearchQuestion?: React.Dispatch<React.SetStateAction<string>>;
|
|
19
|
-
};
|
|
20
|
-
export declare const AutoCompleteDropdown: ({ label, selectedOption, setSelectedOptions, options, isDisabled, placeholder, functionOptions, onChangeHelperFunction, onChangeAlias, position, setKeyWords, isSaveKeyword, setSaveKeyword, onSubmitSearch, setSearchQuestion, }: AutoCompleteDropdownProps) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
label: string | number;
|
|
4
|
-
varaint?: 'warning' | 'success' | 'success-light' | 'danger' | 'danger-light' | 'primary' | 'secondary' | 'info' | 'gray' | 'xs' | 'alert-badge' | 'success-badge';
|
|
5
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
indicator?: JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export declare const Badge: React.FC<Props>;
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
isDisabled?: boolean;
|
|
4
|
-
variant: 'primary' | 'secondary' | 'tertiary' | 'tab' | 'popover';
|
|
5
|
-
leftIcon?: JSX.Element;
|
|
6
|
-
rightIcon?: JSX.Element;
|
|
7
|
-
fitContainer?: boolean;
|
|
8
|
-
size?: 'small' | 'regular';
|
|
9
|
-
dataTestTitle?: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
}
|
|
12
|
-
/** A basic button. Any props that are not explicitly called out below will be passed through to the native Button component. */
|
|
13
|
-
export declare const Button: ({ isDisabled, type, children, variant, onClick, size, title, leftIcon, rightIcon, fitContainer, className, dataTestTitle, id, ...props }: Props) => React.JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FloatingDropDownOption } from '@/types';
|
|
3
|
-
type ButtonGroupProps = {
|
|
4
|
-
label?: string;
|
|
5
|
-
options: FloatingDropDownOption[];
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
dataTestTitle?: string;
|
|
8
|
-
selectedOption: FloatingDropDownOption;
|
|
9
|
-
onChange: (option: FloatingDropDownOption) => void;
|
|
10
|
-
isimportant?: boolean;
|
|
11
|
-
id?: string;
|
|
12
|
-
isHideLabel?: boolean;
|
|
13
|
-
tooltipPosition?: 'top' | 'bottom';
|
|
14
|
-
};
|
|
15
|
-
export declare const ButtonGroup: ({ label, options, isDisabled, dataTestTitle, onChange, selectedOption, isimportant, isHideLabel, id, tooltipPosition, ...props }: ButtonGroupProps) => React.JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ClickActionsConfig } from '@/types';
|
|
3
|
-
export type SingleValueChartProps = {
|
|
4
|
-
settings?: {
|
|
5
|
-
fontSize?: number;
|
|
6
|
-
subHeaderFontSize?: number;
|
|
7
|
-
subHeaderShow?: boolean;
|
|
8
|
-
displayText?: string;
|
|
9
|
-
comparisonValueFontSize?: number;
|
|
10
|
-
comparisonTimePeriod?: number;
|
|
11
|
-
comparisonTimeGrain?: string;
|
|
12
|
-
comparisonSuffix?: string;
|
|
13
|
-
fontColor?: string;
|
|
14
|
-
suffix?: string;
|
|
15
|
-
prefix?: string;
|
|
16
|
-
conditionalFormatter?: {
|
|
17
|
-
min: number;
|
|
18
|
-
max: number;
|
|
19
|
-
color: string;
|
|
20
|
-
}[];
|
|
21
|
-
isEnableTruncate?: boolean;
|
|
22
|
-
truncateValue?: number;
|
|
23
|
-
upVariant?: string;
|
|
24
|
-
downVariant?: string;
|
|
25
|
-
metricCardColor?: string;
|
|
26
|
-
};
|
|
27
|
-
value: string | number;
|
|
28
|
-
hideBorder?: boolean;
|
|
29
|
-
chartClickConfig?: ClickActionsConfig['chart'];
|
|
30
|
-
className?: string;
|
|
31
|
-
onChartReady?: () => void;
|
|
32
|
-
comparisonValue?: string;
|
|
33
|
-
trendLineOptions?: any;
|
|
34
|
-
events?: any;
|
|
35
|
-
originalValue?: string | number;
|
|
36
|
-
};
|
|
37
|
-
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, comparisonValue, trendLineOptions, events, originalValue, }: SingleValueChartProps) => React.JSX.Element>;
|
|
38
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartAppearanceType, ChartSettingsType, OnDrillPivotTableParams, PivotDrillState } from '@/types';
|
|
3
|
-
export type ChartProps = {
|
|
4
|
-
chartOptions: ChartSettingsType;
|
|
5
|
-
data: Record<string, any>[];
|
|
6
|
-
events?: Record<string, Function>;
|
|
7
|
-
config?: Record<string, any>;
|
|
8
|
-
className?: string;
|
|
9
|
-
colors?: string[];
|
|
10
|
-
isShowFullScreen?: boolean;
|
|
11
|
-
isShowFullScreenEnabled?: boolean;
|
|
12
|
-
filterValues?: Record<string, any>;
|
|
13
|
-
onMaximize?: () => void;
|
|
14
|
-
onDrillPivotTable?: (value: OnDrillPivotTableParams) => void;
|
|
15
|
-
pivotDrillState: PivotDrillState;
|
|
16
|
-
isPythonMode?: boolean;
|
|
17
|
-
sortOrder?: string;
|
|
18
|
-
seriesName?: string;
|
|
19
|
-
isSortReversed?: boolean;
|
|
20
|
-
chartHeight?: number;
|
|
21
|
-
chartAppearance?: ChartAppearanceType;
|
|
22
|
-
metricCardColor?: string;
|
|
23
|
-
isMetricCard?: boolean;
|
|
24
|
-
externalGlobalFilter?: any[];
|
|
25
|
-
setExternalGlobalFilter?: (value: React.SetStateAction<any[]>) => void;
|
|
26
|
-
};
|
|
27
|
-
export type MemoizedChartProps = {
|
|
28
|
-
chartOptions: ChartSettingsType;
|
|
29
|
-
events?: Record<string, Function>;
|
|
30
|
-
config?: Record<string, any>;
|
|
31
|
-
className?: string;
|
|
32
|
-
chartHeight?: number;
|
|
33
|
-
hasDecreasedHeight?: boolean;
|
|
34
|
-
zoomOptions?: any;
|
|
35
|
-
options: any;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @name Chart - The metric visualization component.
|
|
39
|
-
* @prop chartOptions - the chart properties saved in the database.
|
|
40
|
-
* @prop data - the array of objects/records returned by the querying.
|
|
41
|
-
* @prop events (optional) - the click, change, etc. events to be added to the chart.
|
|
42
|
-
* @prop config (optional) - any additional chart specific props to be passed to the respective charts e.g. table, single value.
|
|
43
|
-
* @prop className (optional) - the usual className prop to provide styles.
|
|
44
|
-
* @prop colors (optional) - the admin provided chart color palettes.
|
|
45
|
-
* @returns JSX - chart visaulization content.
|
|
46
|
-
*/
|
|
47
|
-
export declare const Chart: React.MemoExoticComponent<({ chartOptions, data, events, colors, config, className, isShowFullScreen, isShowFullScreenEnabled, sortOrder, onMaximize, onDrillPivotTable, pivotDrillState, isPythonMode, seriesName, isSortReversed, chartHeight, chartAppearance, metricCardColor, isMetricCard, externalGlobalFilter, setExternalGlobalFilter, }: ChartProps) => React.JSX.Element>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types';
|
|
3
|
-
type Props = {
|
|
4
|
-
data?: Record<string, any>[];
|
|
5
|
-
chartSettings: ChartSettingsType;
|
|
6
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
-
groupbyList: any[];
|
|
8
|
-
};
|
|
9
|
-
export declare const ChartConfig: ({ data, chartSettings, setChartSettings, groupbyList, }: Props) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CHART_TYPES } from '@/consts';
|
|
3
|
-
type ChartType = keyof typeof CHART_TYPES;
|
|
4
|
-
type Props = {
|
|
5
|
-
onChartChange: (chartType: ChartType) => void;
|
|
6
|
-
chartType: ChartType;
|
|
7
|
-
isEnableTimeSeries: boolean;
|
|
8
|
-
isEnablePivotTable: boolean;
|
|
9
|
-
hasNumberKeys: boolean;
|
|
10
|
-
isEnableGauge: boolean;
|
|
11
|
-
enableCharts: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare const ChartModalOptions: ({ chartType, onChartChange, isEnableTimeSeries, isEnablePivotTable, hasNumberKeys, isEnableGauge, enableCharts, }: Props) => React.JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RawCsvDownloadButtonProps } from '@/components';
|
|
3
|
-
import { ClientColumnType, GetUnderlyingData } from '@/types';
|
|
4
|
-
type UnderlyingDataProps = {
|
|
5
|
-
setShowUnderlyingData: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
isShowUnderlyingData: boolean;
|
|
7
|
-
value: any;
|
|
8
|
-
getUnderlyingData: GetUnderlyingData;
|
|
9
|
-
columnName: string | undefined;
|
|
10
|
-
isSingleValueChart: boolean;
|
|
11
|
-
clientColumnType: ClientColumnType;
|
|
12
|
-
rawCsvDownloadButtonProps: RawCsvDownloadButtonProps;
|
|
13
|
-
};
|
|
14
|
-
declare const _default: React.MemoExoticComponent<({ isShowUnderlyingData, setShowUnderlyingData, getUnderlyingData, columnName, value, isSingleValueChart, clientColumnType, rawCsvDownloadButtonProps, }: UnderlyingDataProps) => React.JSX.Element>;
|
|
15
|
-
export default _default;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RawCsvDownloadButtonProps } from '@/components';
|
|
3
|
-
import { ClientColumnType, GetUnderlyingData } from '@/types';
|
|
4
|
-
export type ChartPopupProps = React.PropsWithChildren & {
|
|
5
|
-
getUnderlyingData: GetUnderlyingData;
|
|
6
|
-
value: any;
|
|
7
|
-
columnName: string | undefined;
|
|
8
|
-
menuClass?: string;
|
|
9
|
-
menuContainerClass?: string;
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
-
elementRef?: {
|
|
13
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
14
|
-
event: any;
|
|
15
|
-
};
|
|
16
|
-
isSingleValueChart: boolean;
|
|
17
|
-
isGaugeChart: boolean;
|
|
18
|
-
isEnableSort?: boolean;
|
|
19
|
-
setSortOrder?: React.Dispatch<React.SetStateAction<string>>;
|
|
20
|
-
isInavlidForSort?: boolean;
|
|
21
|
-
clientColumnType: ClientColumnType;
|
|
22
|
-
isAllowedToSeeUnderlyingData?: boolean;
|
|
23
|
-
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' | 'dynamic';
|
|
24
|
-
rawCsvDownloadButtonProps: RawCsvDownloadButtonProps;
|
|
25
|
-
};
|
|
26
|
-
export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, rawCsvDownloadButtonProps, }: ChartPopupProps) => React.JSX.Element;
|
|
27
|
-
declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, rawCsvDownloadButtonProps, }: ChartPopupProps) => React.JSX.Element>;
|
|
28
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PanelProps } from '@/components';
|
|
3
|
-
type Props = Pick<PanelProps, 'isOpen' | 'onClose'> & {
|
|
4
|
-
report: string;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
subText?: string;
|
|
7
|
-
zIndex?: number;
|
|
8
|
-
};
|
|
9
|
-
export declare const ChatReportPanel: ({ isOpen, onClose, report, isLoading, subText, zIndex, }: Props) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types';
|
|
3
|
-
export type ChartSettingsPopupProps = {
|
|
4
|
-
data?: Record<string, any>[];
|
|
5
|
-
settings: ChartSettingsType;
|
|
6
|
-
setSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
-
isEnablePivotTable: boolean;
|
|
8
|
-
groupbyList: any[];
|
|
9
|
-
hasNumberKeys: boolean;
|
|
10
|
-
isEnableGauge: boolean;
|
|
11
|
-
isShowChartConfigTab?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const ChartSettingsPopup: ({ data, settings, setSettings, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, isShowChartConfigTab, }: ChartSettingsPopupProps) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType, ComboAxisSettingsType } from '@/types';
|
|
3
|
-
type Props = {
|
|
4
|
-
chartSettings: ChartSettingsType;
|
|
5
|
-
setChartSettings: (value: React.SetStateAction<ChartSettingsType>) => void;
|
|
6
|
-
axis: ComboAxisSettingsType;
|
|
7
|
-
setMergeAxis: React.Dispatch<React.SetStateAction<string>>;
|
|
8
|
-
};
|
|
9
|
-
declare const AxisSettings: ({ chartSettings, setChartSettings, axis, setMergeAxis, }: Props) => React.JSX.Element;
|
|
10
|
-
export default AxisSettings;
|
package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types';
|
|
3
|
-
type Props = {
|
|
4
|
-
chartSettings: ChartSettingsType;
|
|
5
|
-
setChartSettings: (value: React.SetStateAction<ChartSettingsType>) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const ComboAxisSettings: ({ chartSettings, setChartSettings }: Props) => React.JSX.Element;
|
|
8
|
-
export default ComboAxisSettings;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
val: string | undefined;
|
|
4
|
-
onClick: (value: string) => void;
|
|
5
|
-
isDisableCenterPositioning?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const PositionContainer: ({ val, onClick, isDisableCenterPositioning, }: Props) => React.JSX.Element;
|
|
8
|
-
export default PositionContainer;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType, FloatingDropDownOption } from '@/types/app';
|
|
3
|
-
import { ComparisonLagSettings } from '@/types';
|
|
4
|
-
export type ComparisonLagProps = {
|
|
5
|
-
setComparisonLagSettings: React.Dispatch<React.SetStateAction<ComparisonLagSettings>>;
|
|
6
|
-
comparisonLagSettings: ComparisonLagSettings;
|
|
7
|
-
dateTimeColumnList: FloatingDropDownOption[];
|
|
8
|
-
onSaveComparisonLag: () => void;
|
|
9
|
-
onDisableComparisonSettings?: () => void;
|
|
10
|
-
} | undefined;
|
|
11
|
-
type Props = {
|
|
12
|
-
chartSettings: ChartSettingsType;
|
|
13
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
14
|
-
setBarRadius: React.Dispatch<React.SetStateAction<{
|
|
15
|
-
topRadius: number;
|
|
16
|
-
bottomRadius: number;
|
|
17
|
-
}>>;
|
|
18
|
-
comparisonLagProps?: ComparisonLagProps;
|
|
19
|
-
setResetPallete?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
-
onChangeTimeseriesFormat?: (value: FloatingDropDownOption) => void;
|
|
21
|
-
isChatMode?: boolean;
|
|
22
|
-
onChange?: (chartSettings: ChartSettingsType) => void;
|
|
23
|
-
globalFilterOptions?: FloatingDropDownOption[];
|
|
24
|
-
};
|
|
25
|
-
export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, onChangeTimeseriesFormat, isChatMode, onChange, globalFilterOptions, }: Props) => React.JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ChartSettingsType } from '@/types/app';
|
|
3
|
-
type Props = {
|
|
4
|
-
data: any[] | undefined;
|
|
5
|
-
chartSettings: ChartSettingsType;
|
|
6
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
7
|
-
isEnablePivotTable: boolean;
|
|
8
|
-
groupbyList: any[];
|
|
9
|
-
hasNumberKeys: boolean;
|
|
10
|
-
isEnableGauge: boolean;
|
|
11
|
-
isShowChartConfigTab?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const ChartSettings: ({ data, chartSettings, setChartSettings, isEnablePivotTable, groupbyList, hasNumberKeys, isEnableGauge, isShowChartConfigTab, }: Props) => React.JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CHART_TYPES } from '@/consts';
|
|
3
|
-
type ChartType = keyof typeof CHART_TYPES;
|
|
4
|
-
type Props = {
|
|
5
|
-
onChartChange: (chartType: ChartType) => void;
|
|
6
|
-
selectedChart: ChartType;
|
|
7
|
-
enabledCharts: string[];
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const ChartTypePanel: ({ chartTypePanelProps: { onChartChange, enabledCharts, selectedChart, isOpen, onClose, zIndex, }, }: {
|
|
13
|
-
chartTypePanelProps: Props;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { 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
|
-
isUseInputLabel?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const Checkbox: ({ register, label, isDisabled, id, checked, onChange, isUseInputLabel, ...rest }: Props) => React.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
name: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
value: string;
|
|
8
|
-
onChange: (value: string) => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
isDisabled?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const ColorField: ({ name, value, onChange, defaultValue, placeholder, label, className, isDisabled, }: Props) => React.JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const options: {
|
|
3
|
-
type: string;
|
|
4
|
-
label: string;
|
|
5
|
-
startOffset: number;
|
|
6
|
-
endOffset: number;
|
|
7
|
-
}[];
|
|
8
|
-
export type DateOption = {
|
|
9
|
-
startDate: Date | undefined;
|
|
10
|
-
endDate: Date | undefined;
|
|
11
|
-
timeGrainValue: string;
|
|
12
|
-
value: string;
|
|
13
|
-
} | undefined;
|
|
14
|
-
type Props = {
|
|
15
|
-
label: string;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
onChange?: (option: DateOption) => void;
|
|
18
|
-
defaultValues?: {
|
|
19
|
-
startDate: Date;
|
|
20
|
-
endDate: Date;
|
|
21
|
-
timeGrainValue: string;
|
|
22
|
-
};
|
|
23
|
-
isDateReset?: boolean;
|
|
24
|
-
variant?: 'static' | 'floatingLabel';
|
|
25
|
-
minDate?: Date;
|
|
26
|
-
maxDate?: Date;
|
|
27
|
-
buttonWidth?: string;
|
|
28
|
-
isEnableSingleDate?: boolean;
|
|
29
|
-
radius?: string;
|
|
30
|
-
isFilter?: boolean;
|
|
31
|
-
isDisabled?: boolean;
|
|
32
|
-
dataTestTitle?: string;
|
|
33
|
-
hideDatePickerOptions?: string[];
|
|
34
|
-
};
|
|
35
|
-
export declare const DateRangePicker: React.FC<Props>;
|
|
36
|
-
export default DateRangePicker;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UseDragProps } from '@/types';
|
|
3
|
-
type DraggableItemProps = UseDragProps & {
|
|
4
|
-
renderItem: (DragNodeRef: React.MutableRefObject<any>, isDragging?: boolean) => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export declare const DraggableItem: React.FC<DraggableItemProps>;
|
|
7
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const DrillBreadCrumb: ({ dimensions, drilledLevel, onResetLevel, onDrillLevelClick, isMetricCard, isMetricFilter, drillType, drillFilters, isShowBreadCrumb, }: {
|
|
3
|
-
dimensions: string[];
|
|
4
|
-
drilledLevel: number;
|
|
5
|
-
onResetLevel: () => void;
|
|
6
|
-
onDrillLevelClick: (value: number) => void;
|
|
7
|
-
isMetricCard?: boolean | undefined;
|
|
8
|
-
isMetricFilter?: boolean | undefined;
|
|
9
|
-
drillType?: string | undefined;
|
|
10
|
-
drillFilters?: {
|
|
11
|
-
columnName: string;
|
|
12
|
-
value: any;
|
|
13
|
-
}[] | undefined;
|
|
14
|
-
isShowBreadCrumb?: boolean | undefined;
|
|
15
|
-
}) => React.JSX.Element;
|
|
16
|
-
export default DrillBreadCrumb;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
type ExternalMetricProps = {
|
|
4
|
-
onSubmit: (values: FieldValues, isElement: boolean) => void;
|
|
5
|
-
defaultValues?: FieldValues;
|
|
6
|
-
onCancel: () => void;
|
|
7
|
-
error?: string;
|
|
8
|
-
isCreatingMetric?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const ExternalMetricForm: React.FC<ExternalMetricProps>;
|
|
11
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MultiSelectDropdownProps } from '@/components/MultiSelectDropdown';
|
|
3
|
-
import { RlsFilterObjectType } from '@/types/app';
|
|
4
|
-
import { FloatingDropDownProps } from '@/components/FloatingDropDown';
|
|
5
|
-
export type FilterClause = {
|
|
6
|
-
columnName?: string;
|
|
7
|
-
value?: string | string[];
|
|
8
|
-
as?: string;
|
|
9
|
-
};
|
|
10
|
-
export type FilterDropDownProps = Omit<FloatingDropDownProps, 'options'> & {
|
|
11
|
-
filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value' | 'labelColumnName'>;
|
|
12
|
-
autoSelected?: boolean;
|
|
13
|
-
workspaceId: string;
|
|
14
|
-
filterClause?: FilterClause[];
|
|
15
|
-
isDisableLabel?: boolean;
|
|
16
|
-
customTable?: {
|
|
17
|
-
query: string;
|
|
18
|
-
alias: string;
|
|
19
|
-
};
|
|
20
|
-
isFilter?: boolean;
|
|
21
|
-
datasourceId: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const FilterDropDown: React.MemoExoticComponent<({ filter, onChange, selectedOption, autoSelected, workspaceId, filterClause, isDisableLabel, customTable, isFilter, dataTestTitle, isClearEnabled, datasourceId, ...rest }: FilterDropDownProps) => React.JSX.Element>;
|
|
24
|
-
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'filter' | 'label' | 'workspaceId' | 'filterClause' | 'customTable' | 'isAutoSelectOption'> & Omit<MultiSelectDropdownProps, 'options'> & {
|
|
25
|
-
isDisablelabel?: boolean;
|
|
26
|
-
radius?: string;
|
|
27
|
-
isFilter?: boolean;
|
|
28
|
-
isSelectAllEnabled?: boolean;
|
|
29
|
-
isSelectAllOn?: boolean;
|
|
30
|
-
datasourceId: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FloatingDropDownOption } from '@/types';
|
|
3
|
-
export type FilterFieldType = {
|
|
4
|
-
column: string;
|
|
5
|
-
labelColumnName?: string;
|
|
6
|
-
operator: string;
|
|
7
|
-
applyOnTables?: {
|
|
8
|
-
tableName: string;
|
|
9
|
-
columnName: string;
|
|
10
|
-
dataType: string;
|
|
11
|
-
isCustomSql?: boolean;
|
|
12
|
-
isApplyOnAssociatedTable?: boolean;
|
|
13
|
-
}[];
|
|
14
|
-
value?: string | string[] | number | number[] | boolean | boolean[] | null | Record<string, any>;
|
|
15
|
-
as?: string;
|
|
16
|
-
defaultValues?: any;
|
|
17
|
-
filterType?: 'global' | 'horizontal';
|
|
18
|
-
isFilterApplied?: boolean;
|
|
19
|
-
isVariableFilter?: boolean;
|
|
20
|
-
variableStrings?: string[];
|
|
21
|
-
label: string;
|
|
22
|
-
filterVariant?: FloatingDropDownOption;
|
|
23
|
-
selectedDropdownValue?: FloatingDropDownOption | FloatingDropDownOption[];
|
|
24
|
-
restrictedMetrics?: FloatingDropDownOption[];
|
|
25
|
-
};
|
|
26
|
-
export type FilterFieldProps = {
|
|
27
|
-
tableName: string;
|
|
28
|
-
filter: {
|
|
29
|
-
name: string;
|
|
30
|
-
dataType: string;
|
|
31
|
-
as: string;
|
|
32
|
-
};
|
|
33
|
-
isResetted: boolean;
|
|
34
|
-
onChange: (field: FilterFieldType) => void;
|
|
35
|
-
workspaceId: string;
|
|
36
|
-
datasourceId: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const isInFilterOperator: (input: string) => boolean;
|
|
39
|
-
export declare const isNullFilterOperator: (input: string) => boolean;
|
|
40
|
-
export declare const FilterField: React.FC<FilterFieldProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export declare const Flex: React.MemoExoticComponent<({ direction, justify, width, maxWidth, height, className, alignItems, flexWrap, children, }: {
|
|
4
|
-
direction?: "row" | "col" | undefined;
|
|
5
|
-
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | undefined;
|
|
6
|
-
width?: string | undefined;
|
|
7
|
-
maxWidth?: string | undefined;
|
|
8
|
-
height?: string | undefined;
|
|
9
|
-
className?: string | undefined;
|
|
10
|
-
alignItems?: "center" | "start" | "end" | "baseline" | "stretch" | null | undefined;
|
|
11
|
-
flexWrap?: "wrap" | "reverse" | "nowrap" | null | undefined;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}) => React.JSX.Element>;
|