@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,14 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export interface ModalProps extends PropsWithChildren {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
headerTitle?: string;
|
|
6
|
+
subHeadingTitle?: string;
|
|
7
|
+
customHeader?: JSX.Element;
|
|
8
|
+
enableFullScreenButton?: boolean;
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
icon?: any;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
+
isRemoveHeader?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FloatingDropDownOption } from '@/types';
|
|
3
|
+
import { Ui } from '@/index';
|
|
4
|
+
export type MultiSelectAccordianDropdownProps = {
|
|
5
|
+
onChange: (options: FloatingDropDownOption) => void;
|
|
6
|
+
selectedOption: FloatingDropDownOption;
|
|
7
|
+
options: FloatingDropDownOption[];
|
|
8
|
+
button?: JSX.Element;
|
|
9
|
+
label?: string;
|
|
10
|
+
labelVariant?: 'floating' | 'static';
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
isSearchEnabled?: boolean;
|
|
13
|
+
icon?: JSX.Element;
|
|
14
|
+
buttonWidth?: string;
|
|
15
|
+
menuWidth?: string;
|
|
16
|
+
searchIcon?: JSX.Element;
|
|
17
|
+
closeControl?: {
|
|
18
|
+
close: boolean;
|
|
19
|
+
};
|
|
20
|
+
searchPlaceholder?: string;
|
|
21
|
+
radius?: string;
|
|
22
|
+
};
|
|
23
|
+
export type MultiSelectDropdownProps = Omit<MultiSelectAccordianDropdownProps, 'selectedOption' | 'onChange'> & {
|
|
24
|
+
id?: string;
|
|
25
|
+
onChange: (options: FloatingDropDownOption[]) => void;
|
|
26
|
+
selectedOption: FloatingDropDownOption[];
|
|
27
|
+
options: FloatingDropDownOption[];
|
|
28
|
+
isShowSelectedOptions?: boolean;
|
|
29
|
+
radius?: string;
|
|
30
|
+
isFilter?: boolean;
|
|
31
|
+
dataTestTitle?: string;
|
|
32
|
+
isAutoSelectOption?: boolean;
|
|
33
|
+
isLoadingData?: boolean;
|
|
34
|
+
error?: string;
|
|
35
|
+
menuZIndex?: number;
|
|
36
|
+
isSelectAllEnabled?: boolean;
|
|
37
|
+
isSelectAllOn?: boolean;
|
|
38
|
+
isTableColFilterDesign?: boolean;
|
|
39
|
+
onSearch?: (searchKeyword: string) => void;
|
|
40
|
+
isClearEnabled?: boolean;
|
|
41
|
+
isAutoSelectFromLast?: boolean;
|
|
42
|
+
autoSelectCount?: number;
|
|
43
|
+
};
|
|
44
|
+
export declare const MultiSelectAccordianDropdown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, icon, buttonWidth, menuWidth, isSearchEnabled, searchIcon, closeControl, searchPlaceholder, radius, }: MultiSelectAccordianDropdownProps) => React.JSX.Element;
|
|
45
|
+
export declare const MultiSelectDropdown: ({ id, label, labelVariant, selectedOption, onChange, button, options, isDisabled, icon, buttonWidth, menuWidth, isSearchEnabled, searchIcon, closeControl, searchPlaceholder, isShowSelectedOptions, radius, isFilter, dataTestTitle, isAutoSelectOption, isLoadingData, error, menuZIndex, isSelectAllEnabled, isSelectAllOn, isTableColFilterDesign, onSearch, isClearEnabled, autoSelectCount, isAutoSelectFromLast, }: MultiSelectDropdownProps) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
export interface PanelProps extends PropsWithChildren {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
headerTitle?: string;
|
|
6
|
+
icon?: any;
|
|
7
|
+
hideHeader?: boolean;
|
|
8
|
+
hideFooter?: boolean;
|
|
9
|
+
primaryActionText?: string;
|
|
10
|
+
onPrimaryAction?: () => void;
|
|
11
|
+
side?: 'left' | 'right';
|
|
12
|
+
size?: 'small' | 'medium' | 'large';
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
dataTestTitle?: string;
|
|
15
|
+
isTourActive?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Panel: ({ children, isOpen, onClose, headerTitle, icon, hideHeader, hideFooter, primaryActionText, onPrimaryAction, side, size, zIndex, dataTestTitle, isTourActive, }: PanelProps) => React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Aggregate, OnDrillPivotTableParams, PivotDrillState } from '@/types';
|
|
3
|
+
type DataRow = Record<string, any>;
|
|
4
|
+
type PivotTableProps = {
|
|
5
|
+
data: DataRow[];
|
|
6
|
+
columns: string[];
|
|
7
|
+
rows: string[];
|
|
8
|
+
values: string[];
|
|
9
|
+
headerSettings?: {
|
|
10
|
+
textColor?: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
isEnabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
measures: Aggregate[];
|
|
15
|
+
isEnableStripedRows: boolean;
|
|
16
|
+
dimensions: string[];
|
|
17
|
+
onDrillPivotTable?: (value: OnDrillPivotTableParams) => void;
|
|
18
|
+
pivotDrillState: PivotDrillState;
|
|
19
|
+
};
|
|
20
|
+
export declare const PivotTableV2: ({ props: { data, rows, columns, values, headerSettings, measures, isEnableStripedRows, dimensions, onDrillPivotTable, pivotDrillState, }, }: {
|
|
21
|
+
props: PivotTableProps;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PivotSettingsType } from '@/types';
|
|
3
|
+
declare const PivotTable: ({ data, pivotTableSettings, onChartReady, }: {
|
|
4
|
+
data: any[];
|
|
5
|
+
pivotTableSettings?: PivotSettingsType | undefined;
|
|
6
|
+
onChartReady?: (() => void) | undefined;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default PivotTable;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Placement } from '@popperjs/core';
|
|
3
|
+
import { Colors } from '@/types';
|
|
4
|
+
type PopoverMenuStateProp = {
|
|
5
|
+
id: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
isMenuOpen?: boolean;
|
|
9
|
+
setMenuOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
popperElement?: Node | HTMLDivElement | null;
|
|
11
|
+
referenceElement?: Node | HTMLDivElement | null;
|
|
12
|
+
disableCloseOnClickOutside?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const popoverMenuStateAtom: import("jotai").PrimitiveAtom<PopoverMenuStateProp[]> & {
|
|
15
|
+
init: PopoverMenuStateProp[];
|
|
16
|
+
};
|
|
17
|
+
export type PopoverMenuProps = React.PropsWithChildren & {
|
|
18
|
+
buttonContent: React.ReactNode;
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
position?: Placement;
|
|
21
|
+
buttonWidth?: string;
|
|
22
|
+
menuWidth?: string;
|
|
23
|
+
offset?: [number, number];
|
|
24
|
+
overFlowDetection?: boolean;
|
|
25
|
+
tabMenu?: boolean;
|
|
26
|
+
bgColor?: Colors;
|
|
27
|
+
autoCloseParent?: boolean;
|
|
28
|
+
getIsOpen?: (isOpen: boolean) => void;
|
|
29
|
+
isClearEnabled?: boolean;
|
|
30
|
+
isMenuOpen?: boolean;
|
|
31
|
+
setMenuOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
32
|
+
dataTestTitle?: string;
|
|
33
|
+
menuZIndex?: number;
|
|
34
|
+
popoverButtonId?: string;
|
|
35
|
+
containerWidth?: string;
|
|
36
|
+
disableCloseOnClickOutside?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export declare const PopoverMenu: React.FC<PopoverMenuProps>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
3
|
+
interface Props extends React.HTMLProps<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
register?: UseFormRegisterReturn;
|
|
6
|
+
error?: any;
|
|
7
|
+
leftIcon?: JSX.Element;
|
|
8
|
+
rightIcon?: JSX.Element;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
labelClass?: string;
|
|
11
|
+
inputClass?: string;
|
|
12
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
elementRef?: React.Ref<HTMLInputElement>;
|
|
14
|
+
}
|
|
15
|
+
export declare const RadioButton: ({ type, register, error, leftIcon, rightIcon, label, isDisabled, labelClass, inputClass, className, id, elementRef, ...rest }: Props) => React.JSX.Element;
|
|
16
|
+
export default RadioButton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClientStateParams } from '@/hooks/useScheduleEmail';
|
|
3
|
+
import { FloatingDropDownOption } from '@/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
getInternalToken?: (guestToken?: string, isAllClient?: boolean) => Promise<string>;
|
|
7
|
+
scheduleReportConfig?: any;
|
|
8
|
+
chartOptions: FloatingDropDownOption[];
|
|
9
|
+
sharingSettingsId?: string;
|
|
10
|
+
externalDashboardId?: string;
|
|
11
|
+
onComplete?: () => void;
|
|
12
|
+
clientDropDown?: React.ReactNode;
|
|
13
|
+
clientState?: ClientStateParams;
|
|
14
|
+
isEmbed?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const ScheduleEmailForm: ({ onCancel, getInternalToken, scheduleReportConfig: internalScheduleReportConfig, chartOptions, externalDashboardId, sharingSettingsId, onComplete, clientDropDown, clientState, isEmbed, }: Props) => React.JSX.Element;
|
|
17
|
+
export default ScheduleEmailForm;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FloatingDropDownOption } from '@/types';
|
|
3
|
+
type ScheduleEmailProps = {
|
|
4
|
+
getInternalToken?: () => Promise<string>;
|
|
5
|
+
scheduleReportConfig?: any;
|
|
6
|
+
chartOptions: FloatingDropDownOption[];
|
|
7
|
+
sharingSettingsId?: string;
|
|
8
|
+
externalDashboardId?: string;
|
|
9
|
+
onComplete?: () => void;
|
|
10
|
+
isShowSettings: boolean;
|
|
11
|
+
setShowSettings: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
onServerEvent?: any;
|
|
13
|
+
isEmbed?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const ScheduleEmail: ({ props: { chartOptions, getInternalToken, scheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, isShowSettings, setShowSettings, onServerEvent, isEmbed, }, }: {
|
|
16
|
+
props: ScheduleEmailProps;
|
|
17
|
+
}) => React.JSX.Element;
|
|
18
|
+
export default ScheduleEmail;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchColumn, SearchKeyType } from '@/types';
|
|
3
|
+
export type SearchDropdownProps = {
|
|
4
|
+
onSubmitSearch: () => void;
|
|
5
|
+
options: SearchColumn[];
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
position?: 'top' | 'bottom';
|
|
9
|
+
setSearchKeys: React.Dispatch<React.SetStateAction<SearchKeyType[]>>;
|
|
10
|
+
searchKeys: SearchKeyType[];
|
|
11
|
+
setSearchKeyword: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
+
searchKeyword: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const SearchDropdown: ({ options, isDisabled, placeholder, position, onSubmitSearch, searchKeys, setSearchKeys, searchKeyword, setSearchKeyword, }: SearchDropdownProps) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartSettingsType } from '@/types';
|
|
3
|
+
export type ChartAppearancePanelProps = {
|
|
4
|
+
chartSettings: ChartSettingsType;
|
|
5
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
setBarRadius: React.Dispatch<React.SetStateAction<{
|
|
9
|
+
topRadius: number;
|
|
10
|
+
bottomRadius: number;
|
|
11
|
+
}>>;
|
|
12
|
+
setResetPallete: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
};
|
|
15
|
+
type Props = {
|
|
16
|
+
chartAppearancePanelProps: ChartAppearancePanelProps;
|
|
17
|
+
};
|
|
18
|
+
declare const ChatAppearancePanel: ({ chartAppearancePanelProps: { chartSettings, isOpen, onClose, setBarRadius, setChartSettings, setResetPallete, zIndex, }, }: Props) => React.JSX.Element;
|
|
19
|
+
export default ChatAppearancePanel;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartAppearancePanelProps } from './ChatAppearancePanel';
|
|
3
|
+
import { SearchDropdownProps } from '@/components';
|
|
4
|
+
import { SearchState, SearchStateChatType, ChartReportStateType, PivotDrillState, ChartSettingsType } from '@/types';
|
|
5
|
+
import { CHART_TYPES } from '@/consts';
|
|
6
|
+
type ChartType = keyof typeof CHART_TYPES;
|
|
7
|
+
export type ChartTypePanelProps = {
|
|
8
|
+
onChartChange: (chartType: ChartType) => void;
|
|
9
|
+
selectedChart: ChartType;
|
|
10
|
+
enabledCharts: string[];
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
isTourActive?: boolean;
|
|
14
|
+
zIndex?: number;
|
|
15
|
+
};
|
|
16
|
+
type ChatModeProps = {
|
|
17
|
+
searchDropdownProps: SearchDropdownProps;
|
|
18
|
+
fromatQuery: (query: string) => string;
|
|
19
|
+
searchState: SearchState;
|
|
20
|
+
setSearchState: React.Dispatch<React.SetStateAction<SearchState>>;
|
|
21
|
+
onGenerateDataReport: (chat: SearchStateChatType) => void;
|
|
22
|
+
setChatReport: React.Dispatch<React.SetStateAction<ChartReportStateType>>;
|
|
23
|
+
chatReport: ChartReportStateType;
|
|
24
|
+
chartTypePanelProps: ChartTypePanelProps;
|
|
25
|
+
chartAppearancePanelProps: ChartAppearancePanelProps;
|
|
26
|
+
chartConfig: {
|
|
27
|
+
pivotDrillState: PivotDrillState;
|
|
28
|
+
setModalShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
isLoading: boolean;
|
|
30
|
+
showChatResults: number[];
|
|
31
|
+
setShowChatResults: React.Dispatch<React.SetStateAction<number[]>>;
|
|
32
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
33
|
+
setChartPanel: React.Dispatch<React.SetStateAction<{
|
|
34
|
+
isOpenTypePanel: boolean;
|
|
35
|
+
isOpenAppearance: boolean;
|
|
36
|
+
chartIndex: number;
|
|
37
|
+
}>>;
|
|
38
|
+
};
|
|
39
|
+
isSearchDataLoading: boolean;
|
|
40
|
+
};
|
|
41
|
+
declare const ChatMode: ({ props: { fromatQuery, searchDropdownProps, searchState, setSearchState, chartTypePanelProps, chartAppearancePanelProps, onGenerateDataReport, setChatReport, chatReport, chartConfig: { setChartSettings, pivotDrillState, setChartPanel, setShowChatResults, showChatResults, isLoading, setModalShow, }, isSearchDataLoading, }, }: {
|
|
42
|
+
props: ChatModeProps;
|
|
43
|
+
}) => React.JSX.Element;
|
|
44
|
+
export default ChatMode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ChatModeHeaderProps = {
|
|
3
|
+
setSearchGenerateMetricModal: (value: React.SetStateAction<boolean>) => void;
|
|
4
|
+
};
|
|
5
|
+
declare const ChatModeHeader: ({ props: { setSearchGenerateMetricModal }, }: {
|
|
6
|
+
props: ChatModeHeaderProps;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default ChatModeHeader;
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
8
|
+
declare const ChatReportPanel: ({ isOpen, onClose, report, isLoading, subText, }: Props) => React.JSX.Element;
|
|
9
|
+
export default ChatReportPanel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PanelProps } from '@/components';
|
|
3
|
+
type Props = Pick<PanelProps, 'isOpen' | 'onClose'> & {
|
|
4
|
+
query: string;
|
|
5
|
+
};
|
|
6
|
+
declare const ChatSqlPanel: ({ isOpen, onClose, query }: Props) => React.JSX.Element;
|
|
7
|
+
export default ChatSqlPanel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const NoDataFound: ({ message, children, subText, isNoDatasourceConnected, isNoDatamart, isNoReports, height, width, msgGap, subTextGap, msgVariant, subTextVariant, }: {
|
|
3
|
+
message: string;
|
|
4
|
+
children?: JSX.Element | undefined;
|
|
5
|
+
subText?: string | undefined;
|
|
6
|
+
isNoDatasourceConnected?: boolean | undefined;
|
|
7
|
+
isNoDatamart?: boolean | undefined;
|
|
8
|
+
isNoReports?: boolean | undefined;
|
|
9
|
+
height?: string | undefined;
|
|
10
|
+
width?: string | undefined;
|
|
11
|
+
msgGap?: string | undefined;
|
|
12
|
+
subTextGap?: string | undefined;
|
|
13
|
+
msgVariant?: "new-heading-4" | undefined;
|
|
14
|
+
subTextVariant?: "body-text-xs" | undefined;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export default NoDataFound;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { onChangePagination } from '@/types';
|
|
3
|
+
export type ResultsProp = {
|
|
4
|
+
config: {
|
|
5
|
+
data: Record<string, any>[];
|
|
6
|
+
error: string;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
isExternalChart?: boolean;
|
|
9
|
+
isEnablePrevBtn?: boolean;
|
|
10
|
+
isEnableNextBtn?: boolean;
|
|
11
|
+
paginationInfo?: {
|
|
12
|
+
limit: number;
|
|
13
|
+
offset: number;
|
|
14
|
+
totalRecords: number;
|
|
15
|
+
};
|
|
16
|
+
onChangePage?: onChangePagination;
|
|
17
|
+
disableTableSearch?: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
declare const Results: ({ config: { data, error, isLoading, isEnableNextBtn, isEnablePrevBtn, isExternalChart, onChangePage, paginationInfo, disableTableSearch, }, className, }: ResultsProp & {
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
export default Results;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ states, isLoading, setLoaderCompleted, }: {
|
|
3
|
+
states?: string[] | undefined;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
setLoaderCompleted?: ((option: boolean) => void) | undefined;
|
|
6
|
+
}) => React.JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchMetricData';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
id?: string;
|
|
4
|
+
setSearchKeyword: React.Dispatch<React.SetStateAction<string>>;
|
|
5
|
+
className?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
isResetValue?: boolean;
|
|
9
|
+
onSearch?: (value: string) => void;
|
|
10
|
+
autoComplete?: 'on' | 'off';
|
|
11
|
+
};
|
|
12
|
+
export declare const SearchTab: ({ id, setSearchKeyword, className, placeholder, value, isResetValue, onSearch, autoComplete, }: Props) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
import type { Control } from 'react-hook-form';
|
|
4
|
+
type Option = {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
type SelectInput = {
|
|
9
|
+
label?: string;
|
|
10
|
+
value: any;
|
|
11
|
+
placeHolder?: string;
|
|
12
|
+
options: Option[] | undefined;
|
|
13
|
+
onChange?: (val: string | any) => void;
|
|
14
|
+
isSearchEnabled?: boolean;
|
|
15
|
+
searchIcon?: JSX.Element;
|
|
16
|
+
labelVariant?: 'floating' | 'static';
|
|
17
|
+
};
|
|
18
|
+
type HookSelectInput = Omit<SelectInput, 'value'> & {
|
|
19
|
+
control: Control;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Select: ({ label, options, onChange, value, placeHolder, isSearchEnabled, searchIcon, labelVariant, }: SelectInput) => React.JSX.Element;
|
|
23
|
+
export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => React.JSX.Element;
|
|
24
|
+
type MultiSelectProps = {
|
|
25
|
+
options: Option[];
|
|
26
|
+
defaultValue?: Option['value'][];
|
|
27
|
+
value?: Option['value'][];
|
|
28
|
+
onChange?: (selected: Option['value'][]) => void;
|
|
29
|
+
label?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
containerClass?: string;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
placeHolder?: string;
|
|
35
|
+
onClick?: any;
|
|
36
|
+
labelVariant?: 'floating' | 'static';
|
|
37
|
+
isSearchEnabled?: boolean;
|
|
38
|
+
icon?: JSX.Element;
|
|
39
|
+
isDisableShowSelectedTag?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export declare const MultiSelect: React.FC<MultiSelectProps>;
|
|
42
|
+
type HookMultiSelectProps = MultiSelectProps & {
|
|
43
|
+
control: Control<FieldValues>;
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const HookMultiSelect: React.FC<HookMultiSelectProps>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
height?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
variant?: 'table' | 'card' | 'list';
|
|
6
|
+
tableRows?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const SkeletonLoader: ({ height, className, variant, tableRows, }: Props) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SwitchProps = {
|
|
3
|
+
name?: string;
|
|
4
|
+
styles: Record<string, string>;
|
|
5
|
+
placeholder?: string | [string, string];
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const SwitchButton: React.FC<SwitchProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type SwitchButtonProps = {
|
|
3
|
+
onChange?: (enabled: boolean) => void;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
defaultEnabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Switch: React.FC<SwitchButtonProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TabProps = {
|
|
3
|
+
options: string[];
|
|
4
|
+
activeTab: string;
|
|
5
|
+
setActiveTab: React.Dispatch<React.SetStateAction<string>>;
|
|
6
|
+
className?: string;
|
|
7
|
+
tabText?: string;
|
|
8
|
+
lockedTabs?: string[];
|
|
9
|
+
tabClassname?: string;
|
|
10
|
+
onChange?: (option: string) => void;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, lockedTabs, tabClassname, onChange, isDisabled, }: TabProps) => React.JSX.Element;
|
|
14
|
+
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,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OnChangeFn, ColumnSizingState } from '@tanstack/react-table';
|
|
3
|
+
import { ChartSettingsType, ComboAxisSettingsType, TableSettings } from '@/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
data?: any[];
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error: string;
|
|
8
|
+
tableSettings?: TableSettings;
|
|
9
|
+
tableName?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
12
|
+
onChartReady?: () => void;
|
|
13
|
+
onChangePage?: (isPrev: boolean, resetValue?: number, nextOffset?: number) => void;
|
|
14
|
+
isExternalChart?: boolean;
|
|
15
|
+
isFullScreenChart?: boolean;
|
|
16
|
+
isEnablePrevBtn?: boolean;
|
|
17
|
+
isEnableNextBtn?: boolean;
|
|
18
|
+
paginationInfo?: {
|
|
19
|
+
limit: number;
|
|
20
|
+
offset: number;
|
|
21
|
+
totalRecords: number;
|
|
22
|
+
};
|
|
23
|
+
setChartSettings?: (value: React.SetStateAction<ChartSettingsType>) => void;
|
|
24
|
+
externalGlobalFilter?: any[];
|
|
25
|
+
setExternalGlobalFilter?: (value: React.SetStateAction<any[]>) => void;
|
|
26
|
+
isInfiniteScroll?: boolean;
|
|
27
|
+
onLoadMore?: () => void;
|
|
28
|
+
hasMoreData?: boolean;
|
|
29
|
+
isShowFullScreen?: boolean;
|
|
30
|
+
isShowFullScreenEnabled?: boolean;
|
|
31
|
+
filterValues?: Record<string, any>;
|
|
32
|
+
onMaximize?: () => void;
|
|
33
|
+
headerAlignment?: 'left' | 'center' | 'right';
|
|
34
|
+
events?: Record<string, Function>;
|
|
35
|
+
dateColumns?: string[];
|
|
36
|
+
dropdownZindex?: number;
|
|
37
|
+
comboFormatter?: ComboAxisSettingsType[];
|
|
38
|
+
};
|
|
39
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isFullScreenChart, isEnableNextBtn, isEnablePrevBtn, dateColumns, paginationInfo, setChartSettings, externalGlobalFilter, setExternalGlobalFilter, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, isShowFullScreenEnabled, onMaximize, headerAlignment, events, dropdownZindex, comboFormatter, }: Props) => React.JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TabsContextType = [
|
|
3
|
+
activeTab: string | number,
|
|
4
|
+
setActiveTab: React.Dispatch<React.SetStateAction<string | number>>,
|
|
5
|
+
variant: 'primary' | 'popoverTabs',
|
|
6
|
+
setTab?: React.Dispatch<React.SetStateAction<string | number>>
|
|
7
|
+
];
|
|
8
|
+
export declare const TabsContext: React.Context<[] | TabsContextType>;
|
|
9
|
+
type TabsProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
variant?: 'primary' | 'popoverTabs';
|
|
12
|
+
defaultActiveTab?: string | number;
|
|
13
|
+
setTab?: React.Dispatch<React.SetStateAction<string | number>>;
|
|
14
|
+
width?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
type TabProps = {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
tabId: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
grow?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Tabs: {
|
|
25
|
+
Context: React.FC<TabsProps>;
|
|
26
|
+
List: React.FC<{
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
width?: string | undefined;
|
|
29
|
+
background?: string | undefined;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
headerButton?: React.ReactNode;
|
|
32
|
+
}>;
|
|
33
|
+
Tab: React.FC<TabProps>;
|
|
34
|
+
Panel: React.FC<{
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
tabId: string;
|
|
37
|
+
width?: string | undefined;
|
|
38
|
+
className?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
41
|
+
export {};
|