@databrainhq/plugin 0.15.33 → 0.15.35
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/README.md +233 -233
- package/dist/components/Accordion/index.d.ts +33 -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 +14 -0
- package/dist/components/Chart/SingleValueChart.d.ts +37 -0
- package/dist/components/Chart/index.d.ts +45 -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/ComboChartFormatter.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/FilterDropDown/index.d.ts +30 -0
- package/dist/components/FilterField/index.d.ts +39 -0
- package/dist/components/Flex/index.d.ts +13 -0
- package/dist/components/FloatingDropDown/index.d.ts +38 -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 +28 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +35 -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 +79 -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 +28 -0
- package/dist/components/Icons/index.d.ts +9 -0
- package/dist/components/InfoTooltip/index.d.ts +27 -0
- package/dist/components/InputField/index.d.ts +18 -0
- package/dist/components/List/index.d.ts +38 -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 +11 -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 +37 -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 +20 -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 +17 -0
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +7 -0
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +18 -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 +24 -0
- package/dist/components/MetricList/MetricList.d.ts +65 -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 +18 -0
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +45 -0
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +7 -0
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +15 -0
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +17 -0
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +14 -0
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +16 -0
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +98 -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 +40 -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 +36 -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 +16 -0
- package/dist/components/ScheduleEmail/index.d.ts +16 -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 +7 -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 +9 -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 +36 -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 +14 -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 +16 -0
- package/dist/components/TimeSeriesSettings/index.d.ts +8 -0
- package/dist/components/index.d.ts +65 -0
- package/dist/consts/api.d.ts +64 -0
- package/dist/consts/app.d.ts +154 -0
- package/dist/consts/index.d.ts +2 -0
- package/dist/consts/metricOptions.d.ts +205 -0
- package/dist/consts/validations.d.ts +24 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +73 -0
- package/dist/containers/Dashboard/DashboardProvider.d.ts +7 -0
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +46 -0
- package/dist/containers/Dashboard/index.d.ts +2 -0
- package/dist/containers/DbnStyles.d.ts +10 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +47 -0
- package/dist/containers/Metric/index.d.ts +85 -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 +26 -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 +37 -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 +24 -0
- package/dist/hooks/useExternalMetric.d.ts +55 -0
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +13 -0
- package/dist/hooks/useGenerateMetric.d.ts +64 -0
- package/dist/hooks/useMetricCard.d.ts +121 -0
- package/dist/hooks/useMetricConfig.d.ts +63 -0
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +35 -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 +897 -0
- package/dist/types/dragAndDropProps.d.ts +70 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/metricCreate.d.ts +741 -0
- package/dist/types/queryTypes.d.ts +343 -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 +4188 -3962
- package/dist/webcomponents.umd.js +18 -18
- package/package.json +113 -112
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClientColumnType, FloatingDropDownOption, MetricFilterDemoThemeType, RlsCondition } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
rlsConditions: RlsCondition;
|
|
5
|
+
onChangeFilterValue?: (name: string, value: string, labelValue?: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
clientId?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
rlsConditionList: RlsCondition[];
|
|
10
|
+
isAllClient?: boolean;
|
|
11
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
12
|
+
tenancyLevel?: string;
|
|
13
|
+
clientColumnType: ClientColumnType;
|
|
14
|
+
hideDatePickerOptions?: string[];
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
};
|
|
17
|
+
export type DateSelectedOption = {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
labelType?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, isAllClient, dropdownTheme, tenancyLevel, clientColumnType, hideDatePickerOptions, zIndex, }: Props) => React.JSX.Element;
|
|
23
|
+
declare const _default: React.MemoExoticComponent<({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, isAllClient, dropdownTheme, tenancyLevel, clientColumnType, hideDatePickerOptions, zIndex, }: Props) => React.JSX.Element>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Layout } from 'react-grid-layout';
|
|
3
|
+
import { MetricCardProps } from './components';
|
|
4
|
+
import { ChartAppearanceType, ClientColumnType, ClientType } from '@/types/app';
|
|
5
|
+
import { ThemeType } from '@/utils/theme';
|
|
6
|
+
export declare const GridLayout: React.ComponentClass<import("react-grid-layout").ResponsiveProps & import("react-grid-layout").WidthProviderProps, any>;
|
|
7
|
+
export type ExternalMetricListProps = {
|
|
8
|
+
chartColors?: string[];
|
|
9
|
+
isDisableMetricLoader?: boolean;
|
|
10
|
+
globalFilters?: MetricCardProps['globalFilters'];
|
|
11
|
+
client: ClientType['value'];
|
|
12
|
+
clientColumnType: ClientColumnType;
|
|
13
|
+
companyId: string;
|
|
14
|
+
isAllowedToUpdateMetrics?: boolean;
|
|
15
|
+
isAllowedToDeleteMetrics?: boolean;
|
|
16
|
+
isAllowedToChangeLayout?: boolean;
|
|
17
|
+
isMetricListLoading?: boolean;
|
|
18
|
+
isAllowedToSeeUnderlyingData?: boolean;
|
|
19
|
+
breakpoint: ThemeType['breakpoint'];
|
|
20
|
+
layoutCols: ThemeType['metricLayoutCols'];
|
|
21
|
+
externalDashboardMetrics?: any;
|
|
22
|
+
params?: any;
|
|
23
|
+
appFilters?: any;
|
|
24
|
+
companyTenancyType: string;
|
|
25
|
+
externalDashboardId: string;
|
|
26
|
+
externalDashboardPk: string;
|
|
27
|
+
sharingSettingsId?: string;
|
|
28
|
+
isHideChartSettings?: boolean;
|
|
29
|
+
isHideTablePreview?: boolean;
|
|
30
|
+
enableDownloadCsv?: boolean;
|
|
31
|
+
enableEmailCsv?: boolean;
|
|
32
|
+
disableFullscreen?: boolean;
|
|
33
|
+
enableMultiMetricFilters?: boolean;
|
|
34
|
+
layout: {
|
|
35
|
+
clientLayout: Layout[];
|
|
36
|
+
adminLayout: Layout[];
|
|
37
|
+
isLocked: boolean;
|
|
38
|
+
onChange: (layout: Layout[]) => void;
|
|
39
|
+
};
|
|
40
|
+
dropdownTheme: {
|
|
41
|
+
width: string;
|
|
42
|
+
variant: 'static' | 'floating';
|
|
43
|
+
radius: string;
|
|
44
|
+
};
|
|
45
|
+
optionsIcon?: 'kebab-menu-vertical' | 'download';
|
|
46
|
+
token: string;
|
|
47
|
+
workspaceId: string;
|
|
48
|
+
dataLimit: number;
|
|
49
|
+
isShowLoader: boolean;
|
|
50
|
+
isEditLayoutEnabled?: boolean;
|
|
51
|
+
isEnableMetricSummary?: boolean;
|
|
52
|
+
hideDatePickerOptions?: string[];
|
|
53
|
+
chartAppearance?: ChartAppearanceType;
|
|
54
|
+
isAllClient: boolean;
|
|
55
|
+
gridMargin?: {
|
|
56
|
+
verticalMargin: number;
|
|
57
|
+
horizontalMargin: number;
|
|
58
|
+
};
|
|
59
|
+
isShadowDisableOnHover?: boolean;
|
|
60
|
+
noDataImg?: string;
|
|
61
|
+
metricCardColor?: string;
|
|
62
|
+
shouldFitFullScreen?: boolean;
|
|
63
|
+
mergedMetrics?: string[];
|
|
64
|
+
};
|
|
65
|
+
export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps } from '@/components';
|
|
3
|
+
export interface ArchiveMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
|
|
4
|
+
onArchive: () => void;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArchiveMetricModal: ({ isOpen, onClose, onArchive, isLoading, }: ArchiveMetricModalProps) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalMetrics } from '@/types/queryTypes';
|
|
3
|
+
type Props = {
|
|
4
|
+
onCloseModal: (value: boolean) => void;
|
|
5
|
+
isShowRawCsvModal: boolean;
|
|
6
|
+
metricItem?: ExternalMetrics;
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
sharingSettingsId?: string;
|
|
9
|
+
query: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, workspaceId, }: Props) => React.JSX.Element;
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, workspaceId, }: Props) => React.JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RlsCondition } from '@/types';
|
|
3
|
+
type AddMetricFilterProps = {
|
|
4
|
+
filters: RlsCondition[];
|
|
5
|
+
updateFilter: (filter: RlsCondition) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const AddMetricFilter: ({ filters, updateFilter }: AddMetricFilterProps) => React.JSX.Element;
|
|
8
|
+
export default AddMetricFilter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartSettingsType } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
chartSettings: ChartSettingsType;
|
|
8
|
+
columnList: string[];
|
|
9
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
10
|
+
};
|
|
11
|
+
declare const ChartPropertiesPanel: ({ isOpen, onClose, zIndex, chartSettings, setChartSettings, columnList, }: Props) => React.JSX.Element;
|
|
12
|
+
export default ChartPropertiesPanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import EChartsReact from 'echarts-for-react';
|
|
3
|
+
import { CsvDownloadMetricReqData } from '@/components';
|
|
4
|
+
import { ChartSettingsType } from '@/types';
|
|
5
|
+
export type DownloadButtonProps = {
|
|
6
|
+
data: Record<string, any>[];
|
|
7
|
+
chartRef?: React.RefObject<EChartsReact>;
|
|
8
|
+
metricName: string;
|
|
9
|
+
onRawCsvData: () => void;
|
|
10
|
+
chartOptions?: ChartSettingsType;
|
|
11
|
+
metricData: CsvDownloadMetricReqData;
|
|
12
|
+
companyIntegrationId: string;
|
|
13
|
+
integrationName: string;
|
|
14
|
+
updateDownloadProgress: (isEnable: boolean) => void;
|
|
15
|
+
isPythonMode: boolean;
|
|
16
|
+
isEnableEmailRawCsvDownload?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, chartOptions, integrationName, companyIntegrationId, metricData, updateDownloadProgress, isPythonMode, isEnableEmailRawCsvDownload, }: DownloadButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalMetrics } from '@/types/queryTypes';
|
|
3
|
+
import { ChartAppearanceType, ClientColumnType, MetricFilterOptionsType } from '@/types';
|
|
4
|
+
import { FilterFieldType } from '@/components/FilterField';
|
|
5
|
+
export type FullScreenViewProps = {
|
|
6
|
+
globalFilters?: {
|
|
7
|
+
tableName: string;
|
|
8
|
+
filters: FilterFieldType[];
|
|
9
|
+
};
|
|
10
|
+
metric: ExternalMetrics;
|
|
11
|
+
colors?: string[];
|
|
12
|
+
rlsFilters?: any;
|
|
13
|
+
appFilters?: any;
|
|
14
|
+
metricFilterOptions?: MetricFilterOptionsType;
|
|
15
|
+
onMinimize: () => void;
|
|
16
|
+
onArchive?: (metricId: string) => void;
|
|
17
|
+
clientId: string;
|
|
18
|
+
encryptedClient?: string;
|
|
19
|
+
tenancyLevel: string;
|
|
20
|
+
externalDashboardId: string;
|
|
21
|
+
userProvidedDashboardId: string;
|
|
22
|
+
companyId: string;
|
|
23
|
+
isAllowedToUpdateMetrics?: boolean;
|
|
24
|
+
sharingSettingsId?: string;
|
|
25
|
+
isInternalApp?: boolean;
|
|
26
|
+
isShowChartConfigTab?: boolean;
|
|
27
|
+
isHideChartSettings?: boolean;
|
|
28
|
+
isHideTablePreview?: boolean;
|
|
29
|
+
isAllClient: boolean;
|
|
30
|
+
onDownload: (id: string, isEnable: boolean) => void;
|
|
31
|
+
downloadMetrics: {
|
|
32
|
+
id: string;
|
|
33
|
+
isInProgress: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
isFrontendApp: boolean;
|
|
36
|
+
guestToken?: string;
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
clientColumnType: ClientColumnType;
|
|
39
|
+
isEnableMetricSummary?: boolean;
|
|
40
|
+
hideDatePickerOptions?: string[];
|
|
41
|
+
chartAppearance?: ChartAppearanceType;
|
|
42
|
+
enableEmailCsv?: boolean;
|
|
43
|
+
fullScreenWidth?: number;
|
|
44
|
+
};
|
|
45
|
+
export declare const FullScreenView: ({ metric, colors, rlsFilters, metricFilterOptions, onMinimize, onArchive, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, appFilters, isInternalApp, isShowChartConfigTab, isHideChartSettings, isHideTablePreview, isAllClient, globalFilters: globalFilterList, onDownload, downloadMetrics, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isEnableMetricSummary, hideDatePickerOptions, chartAppearance, enableEmailCsv, fullScreenWidth, }: FullScreenViewProps) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartAppearanceType, ClientType } from '@/types/app';
|
|
3
|
+
export type ManageMetricCardProps = {
|
|
4
|
+
metricItem: any;
|
|
5
|
+
client: ClientType['value'];
|
|
6
|
+
encryptedClient?: ClientType['value'];
|
|
7
|
+
colors?: string[];
|
|
8
|
+
companyTenancyType: string;
|
|
9
|
+
isInternalApp?: boolean;
|
|
10
|
+
isFrontendApp: boolean;
|
|
11
|
+
guestToken?: string;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
chartAppearance?: ChartAppearanceType;
|
|
14
|
+
};
|
|
15
|
+
export declare const ManageMetricCard: ({ metricItem, client, colors, companyTenancyType, isInternalApp, isFrontendApp, guestToken, encryptedClient, workspaceId, chartAppearance, }: ManageMetricCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartAppearanceType, ClientType } from '@/types';
|
|
3
|
+
type ManageMetricMenuProps = {
|
|
4
|
+
metricList: any[];
|
|
5
|
+
token: string;
|
|
6
|
+
client: ClientType['value'];
|
|
7
|
+
colors?: string[];
|
|
8
|
+
companyTenancyType: string;
|
|
9
|
+
workspaceId: string;
|
|
10
|
+
chartAppearance?: ChartAppearanceType;
|
|
11
|
+
isOpenModal: boolean;
|
|
12
|
+
setOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
};
|
|
14
|
+
declare const ManageMetricMenu: ({ props: { metricList, token, client, companyTenancyType, workspaceId, chartAppearance, colors, isOpenModal, setOpenModal, }, }: {
|
|
15
|
+
props: ManageMetricMenuProps;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
export default ManageMetricMenu;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type CreateElementPanelProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
element?: any;
|
|
6
|
+
clientId: string;
|
|
7
|
+
companyId: string;
|
|
8
|
+
externalDashboardId: string;
|
|
9
|
+
userProvidedDashboardId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const CreateElementPanel: ({ createElementPanelProps: { isOpen, onClose, element, clientId, companyId, externalDashboardId, userProvidedDashboardId, }, }: {
|
|
12
|
+
createElementPanelProps: CreateElementPanelProps;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type ElementCardProps = {
|
|
3
|
+
elementSettings: {
|
|
4
|
+
text: string;
|
|
5
|
+
fontColor?: string;
|
|
6
|
+
fontWeight?: string;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
alignment?: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
isOpenInNewTab?: boolean;
|
|
11
|
+
targetWord?: string;
|
|
12
|
+
};
|
|
13
|
+
elementSummary?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const ElementCard: ({ elementSettings, elementSummary, }: ElementCardProps) => React.JSX.Element;
|
|
16
|
+
export default ElementCard;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExternalMetrics } from '@/types/queryTypes';
|
|
3
|
+
import { ChartAppearanceType, ClientColumnType, ClientType } from '@/types/app';
|
|
4
|
+
import { FilterFieldType } from '@/components';
|
|
5
|
+
import { MetricFilterOptionsType, RlsCondition } from '@/types';
|
|
6
|
+
import { DataMartRelationShip } from '@/helpers';
|
|
7
|
+
export type MetricCardProps = {
|
|
8
|
+
globalFilters?: {
|
|
9
|
+
tableName: string;
|
|
10
|
+
filters: FilterFieldType[];
|
|
11
|
+
};
|
|
12
|
+
metricItem: any;
|
|
13
|
+
client: ClientType['value'];
|
|
14
|
+
encryptedClient?: ClientType['value'];
|
|
15
|
+
onMaximize?: (metric: ExternalMetrics, rlsFilters?: {
|
|
16
|
+
param: any;
|
|
17
|
+
filterValues: Record<string, string>;
|
|
18
|
+
}, appFilters?: any) => void;
|
|
19
|
+
colors?: string[];
|
|
20
|
+
param?: any;
|
|
21
|
+
appFilters?: any;
|
|
22
|
+
companyTenancyType: string;
|
|
23
|
+
renderHeaderName?: (name: string) => JSX.Element;
|
|
24
|
+
onArchive?: (metricId: string) => void;
|
|
25
|
+
isDisableCardClick?: boolean;
|
|
26
|
+
chartRendererType?: 'svg' | 'canvas';
|
|
27
|
+
isDisableMorePopup?: boolean;
|
|
28
|
+
isInternalApp?: boolean;
|
|
29
|
+
setCrossDashboardFilters?: React.Dispatch<React.SetStateAction<RlsCondition[]>>;
|
|
30
|
+
crossDashboardFilters?: RlsCondition[];
|
|
31
|
+
metricFilterOptions?: MetricFilterOptionsType;
|
|
32
|
+
onDownloadRawCsv?: (filterValues?: Record<string, any>, rlsConditions?: RlsCondition[], dataMartRelationships?: DataMartRelationShip[]) => void;
|
|
33
|
+
enableDownloadCsv?: boolean;
|
|
34
|
+
enableMultiMetricFilters?: boolean;
|
|
35
|
+
disableActions?: boolean;
|
|
36
|
+
metricFilterPosition?: 'outside' | 'inside';
|
|
37
|
+
isAllClient: boolean;
|
|
38
|
+
dropdownTheme: {
|
|
39
|
+
width: string;
|
|
40
|
+
variant: 'static' | 'floating';
|
|
41
|
+
radius: string;
|
|
42
|
+
};
|
|
43
|
+
optionsIcon?: 'kebab-menu-vertical' | 'download';
|
|
44
|
+
downloadMetrics: {
|
|
45
|
+
id: string;
|
|
46
|
+
isInProgress: boolean;
|
|
47
|
+
}[];
|
|
48
|
+
onDownload: (id: string, isEnable: boolean) => void;
|
|
49
|
+
appearanceOptions?: {
|
|
50
|
+
appearanceOptionsPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
51
|
+
dynamicBehaviour?: {
|
|
52
|
+
isEnabled?: boolean;
|
|
53
|
+
label?: string;
|
|
54
|
+
};
|
|
55
|
+
cumulativeBar?: {
|
|
56
|
+
isEnabled?: boolean;
|
|
57
|
+
label?: string;
|
|
58
|
+
};
|
|
59
|
+
stackedBars?: {
|
|
60
|
+
isEnabled?: boolean;
|
|
61
|
+
label?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
isFrontendApp: boolean;
|
|
65
|
+
guestToken?: string;
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
clientColumnType: ClientColumnType;
|
|
68
|
+
isDisableCardTitle?: boolean;
|
|
69
|
+
chartHeight?: number;
|
|
70
|
+
isEditLayoutEnabled?: boolean;
|
|
71
|
+
isTourActive?: boolean;
|
|
72
|
+
hideDatePickerOptions?: string[];
|
|
73
|
+
chartAppearance?: ChartAppearanceType;
|
|
74
|
+
isDisableMetricLoader?: boolean;
|
|
75
|
+
isShadowDisableOnHover?: boolean;
|
|
76
|
+
isAllowedToSeeUnderlyingData?: boolean;
|
|
77
|
+
noDataImg?: string;
|
|
78
|
+
metricCardColor?: string;
|
|
79
|
+
isMergedMetric?: boolean;
|
|
80
|
+
metricStore?: Map<string, {
|
|
81
|
+
data: any;
|
|
82
|
+
isLoading: boolean;
|
|
83
|
+
key: string;
|
|
84
|
+
}>;
|
|
85
|
+
setMetricStore?: React.Dispatch<React.SetStateAction<Map<string, {
|
|
86
|
+
data: any;
|
|
87
|
+
isLoading: boolean;
|
|
88
|
+
key: string;
|
|
89
|
+
}>>>;
|
|
90
|
+
summarizeMetricMutation?: any;
|
|
91
|
+
setOpenMergeModal?: React.Dispatch<React.SetStateAction<{
|
|
92
|
+
isOpen: boolean;
|
|
93
|
+
id?: string;
|
|
94
|
+
chartOptions?: any;
|
|
95
|
+
}>>;
|
|
96
|
+
setDataLoaded?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
97
|
+
};
|
|
98
|
+
export declare const MetricCard: ({ globalFilters: globalFilterList, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, isAllClient, dropdownTheme, optionsIcon, downloadMetrics, onDownload, appearanceOptions, isFrontendApp, guestToken, encryptedClient, workspaceId, clientColumnType, isDisableCardTitle, chartHeight, isEditLayoutEnabled, isTourActive, hideDatePickerOptions, chartAppearance, isDisableMetricLoader, isShadowDisableOnHover, isAllowedToSeeUnderlyingData, noDataImg, metricCardColor, metricStore, setMetricStore, summarizeMetricMutation, isMergedMetric, setOpenMergeModal, setDataLoaded, }: MetricCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type NoDataLoadingProps = {
|
|
3
|
+
isDataLength: boolean;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isSingleValue: string | undefined;
|
|
6
|
+
dataDb: Record<string, any>;
|
|
7
|
+
chartType?: string;
|
|
8
|
+
noDataImg?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const NoDataLoading: React.MemoExoticComponent<({ isDataLength, isLoading, isSingleValue, dataDb, chartType, noDataImg, }: NoDataLoadingProps) => React.JSX.Element>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
metricData?: Record<string, any>[];
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const TableViewModal: ({ metricData, isOpen, onClose, title, }: Props) => React.JSX.Element;
|
|
9
|
+
export default TableViewModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './ArchiveMetricModal';
|
|
2
|
+
export * from './DownloadRawCsvModal';
|
|
3
|
+
export * from './LayoutAlert';
|
|
4
|
+
export * from './TableViewModal';
|
|
5
|
+
export * from './MetricCards/MetricCard';
|
|
6
|
+
export * from './MetricCards/NoDataLoading';
|
|
7
|
+
export * from './FullScreenView';
|
|
@@ -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,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FloatingDropDownOption } from '@/types';
|
|
3
|
+
export type MultiSelectAccordianDropdownProps = {
|
|
4
|
+
onChange: (options: FloatingDropDownOption) => void;
|
|
5
|
+
selectedOption: FloatingDropDownOption;
|
|
6
|
+
options: FloatingDropDownOption[];
|
|
7
|
+
button?: JSX.Element;
|
|
8
|
+
label?: string;
|
|
9
|
+
labelVariant?: 'floating' | 'static';
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
isSearchEnabled?: boolean;
|
|
12
|
+
icon?: JSX.Element;
|
|
13
|
+
buttonWidth?: string;
|
|
14
|
+
menuWidth?: string;
|
|
15
|
+
searchIcon?: JSX.Element;
|
|
16
|
+
closeControl?: {
|
|
17
|
+
close: boolean;
|
|
18
|
+
};
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
radius?: string;
|
|
21
|
+
};
|
|
22
|
+
export type MultiSelectDropdownProps = Omit<MultiSelectAccordianDropdownProps, 'selectedOption' | 'onChange'> & {
|
|
23
|
+
id?: string;
|
|
24
|
+
onChange: (options: FloatingDropDownOption[]) => void;
|
|
25
|
+
selectedOption: FloatingDropDownOption[];
|
|
26
|
+
options: FloatingDropDownOption[];
|
|
27
|
+
isShowSelectedOptions?: boolean;
|
|
28
|
+
radius?: string;
|
|
29
|
+
isFilter?: boolean;
|
|
30
|
+
dataTestTitle?: string;
|
|
31
|
+
isAutoSelectOption?: boolean;
|
|
32
|
+
isLoadingData?: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
menuZIndex?: number;
|
|
35
|
+
isSelectAllEnabled?: boolean;
|
|
36
|
+
isSelectAllOn?: boolean;
|
|
37
|
+
onSearch?: (searchKeyword: string) => void;
|
|
38
|
+
};
|
|
39
|
+
export declare const MultiSelectAccordianDropdown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, icon, buttonWidth, menuWidth, isSearchEnabled, searchIcon, closeControl, searchPlaceholder, radius, }: MultiSelectAccordianDropdownProps) => React.JSX.Element;
|
|
40
|
+
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, onSearch, }: 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,36 @@
|
|
|
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
|
+
};
|
|
13
|
+
export declare const popoverMenuStateAtom: import("jotai").PrimitiveAtom<PopoverMenuStateProp[]> & {
|
|
14
|
+
init: PopoverMenuStateProp[];
|
|
15
|
+
};
|
|
16
|
+
export type PopoverMenuProps = React.PropsWithChildren & {
|
|
17
|
+
buttonContent: React.ReactNode;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
position?: Placement;
|
|
20
|
+
buttonWidth?: string;
|
|
21
|
+
menuWidth?: string;
|
|
22
|
+
offset?: [number, number];
|
|
23
|
+
overFlowDetection?: boolean;
|
|
24
|
+
tabMenu?: boolean;
|
|
25
|
+
bgColor?: Colors;
|
|
26
|
+
autoCloseParent?: boolean;
|
|
27
|
+
getIsOpen?: (isOpen: boolean) => void;
|
|
28
|
+
isClearEnabled?: boolean;
|
|
29
|
+
isMenuOpen?: boolean;
|
|
30
|
+
setMenuOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
31
|
+
dataTestTitle?: string;
|
|
32
|
+
menuZIndex?: number;
|
|
33
|
+
popoverButtonId?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const PopoverMenu: React.FC<PopoverMenuProps>;
|
|
36
|
+
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,16 @@
|
|
|
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) => 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
|
+
};
|
|
15
|
+
export declare const ScheduleEmailForm: ({ onCancel, getInternalToken, scheduleReportConfig: internalScheduleReportConfig, chartOptions, externalDashboardId, sharingSettingsId, onComplete, clientDropDown, clientState, }: Props) => React.JSX.Element;
|
|
16
|
+
export default ScheduleEmailForm;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
};
|
|
13
|
+
export declare const ScheduleEmail: ({ props: { chartOptions, getInternalToken, scheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, isShowSettings, setShowSettings, }, }: {
|
|
14
|
+
props: ScheduleEmailProps;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export default ScheduleEmail;
|