@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 @@
|
|
|
1
|
+
export * from './InputTables';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
outpuTableData: any[] | undefined;
|
|
4
|
+
isOutputLoading: boolean;
|
|
5
|
+
outputError: string;
|
|
6
|
+
isUpdateMetric?: boolean;
|
|
7
|
+
isDisableSqlBtn: boolean;
|
|
8
|
+
setShowSqlModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
};
|
|
10
|
+
export declare const TableTab: ({ outpuTableData, outputError, isOutputLoading, isUpdateMetric, isDisableSqlBtn, setShowSqlModal, }: Props) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrillDownSettings } from '@/types';
|
|
3
|
+
export type ChartActionPanelProps = {
|
|
4
|
+
drillDownSettings: DrillDownSettings;
|
|
5
|
+
setDrillDownSettings: React.Dispatch<React.SetStateAction<DrillDownSettings>>;
|
|
6
|
+
onChangeDrillDown: (params: any, isEnable: boolean, isChange?: boolean) => void;
|
|
7
|
+
isAllowDrillDown: boolean;
|
|
8
|
+
isDisableChartDrillDown: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const ChartActionPanel: ({ ChartActionPanelProps: { isDisableChartDrillDown, drillDownSettings, setDrillDownSettings, onChangeDrillDown, isAllowDrillDown, }, }: {
|
|
11
|
+
ChartActionPanelProps: ChartActionPanelProps;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
export default ChartActionPanel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChartActionPanelProps } from './ChartActionPanel';
|
|
3
|
+
import { ChartSettingsType } from '@/types';
|
|
4
|
+
import { ComparisonLagProps } from '@/components/ChartSettingsPopup';
|
|
5
|
+
type Props = {
|
|
6
|
+
chartSettings: ChartSettingsType;
|
|
7
|
+
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
setBarRadius: React.Dispatch<React.SetStateAction<{
|
|
11
|
+
topRadius: number;
|
|
12
|
+
bottomRadius: number;
|
|
13
|
+
}>>;
|
|
14
|
+
comparisonLagProps?: ComparisonLagProps | undefined;
|
|
15
|
+
setResetPallete: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
|
+
isDisableAction: boolean;
|
|
17
|
+
chartActionProps: ChartActionPanelProps;
|
|
18
|
+
};
|
|
19
|
+
declare const ChartAppearancePanel: ({ ChartAppearancePanelProps: { chartSettings, isOpen, onClose, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, isDisableAction, chartActionProps, }, }: {
|
|
20
|
+
ChartAppearancePanelProps: Props;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
|
+
export default ChartAppearancePanel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import ReactAce from 'react-ace/lib/ace';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CreateNewFilter, FloatingDropDownOption, GetFilterDropDownType } from '@/types';
|
|
4
|
+
type Props = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
filters: CreateNewFilter[];
|
|
8
|
+
setCreatedFilters: React.Dispatch<React.SetStateAction<CreateNewFilter[]>>;
|
|
9
|
+
columnOptions: FloatingDropDownOption[];
|
|
10
|
+
getFilterDropDownType: GetFilterDropDownType;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
editorRef: React.RefObject<ReactAce>;
|
|
13
|
+
onApplyFilter: (onComplete: () => void, isClear?: boolean, index?: number) => void;
|
|
14
|
+
savedFilterListOptions: FloatingDropDownOption[];
|
|
15
|
+
currentSelectedTable: FloatingDropDownOption;
|
|
16
|
+
datasourceId: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FiltersPanel: ({ filtersPanelProps: { isOpen, onClose, filters, setCreatedFilters, columnOptions, getFilterDropDownType, editorRef, workspaceId, onApplyFilter, savedFilterListOptions, currentSelectedTable, datasourceId, }, }: {
|
|
19
|
+
filtersPanelProps: Props;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
export default FiltersPanel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CreateNewSort, FloatingDropDownOption } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
createdSorts: CreateNewSort[];
|
|
7
|
+
setCreatedSorts: React.Dispatch<React.SetStateAction<CreateNewSort[]>>;
|
|
8
|
+
columnOptions: FloatingDropDownOption[];
|
|
9
|
+
onApplySort: (onComplete: () => void, isClear?: boolean, index?: number) => void;
|
|
10
|
+
selectedTable: FloatingDropDownOption;
|
|
11
|
+
};
|
|
12
|
+
declare const SortPanel: ({ SortPanelProps: { isOpen, onClose, createdSorts, setCreatedSorts, columnOptions, onApplySort, selectedTable, }, }: {
|
|
13
|
+
SortPanelProps: Props;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export default SortPanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterClause } from '@/components';
|
|
3
|
+
import { MetricFilterDemoThemeType, OnChangeFilterValueType, RlsCondition } from '@/types';
|
|
4
|
+
type OldMetricFilterComponentProps = {
|
|
5
|
+
filter: RlsCondition;
|
|
6
|
+
onChangeFilterValue: OnChangeFilterValueType;
|
|
7
|
+
className: string;
|
|
8
|
+
isVariableFilter: boolean;
|
|
9
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
filterClause: FilterClause[];
|
|
12
|
+
hideDatePickerOptions?: string[];
|
|
13
|
+
datasourceId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const OldMetricFilterComponents: ({ props: { filter, onChangeFilterValue, className, isVariableFilter, dropdownTheme, filterClause, workspaceId, hideDatePickerOptions, datasourceId, }, }: {
|
|
16
|
+
props: OldMetricFilterComponentProps;
|
|
17
|
+
}) => React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterClause } from '@/components/FilterDropDown';
|
|
3
|
+
import { ClientColumnType, MetricFilterDemoThemeType, OnChangeFilterValueType, RlsCondition } from '@/types';
|
|
4
|
+
type StringAutoCustomFilterFieldProps = {
|
|
5
|
+
filter: RlsCondition;
|
|
6
|
+
tenancyLevel: string;
|
|
7
|
+
clientId: string;
|
|
8
|
+
isAllClient: boolean;
|
|
9
|
+
onChangeFilterValue: OnChangeFilterValueType;
|
|
10
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
filterClause: FilterClause[];
|
|
13
|
+
clientColumnType: ClientColumnType;
|
|
14
|
+
datasourceId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const StringAutoCustomFilterField: ({ props: { filter, tenancyLevel, clientId, isAllClient, onChangeFilterValue, dropdownTheme, workspaceId, filterClause, clientColumnType, datasourceId, }, }: {
|
|
17
|
+
props: StringAutoCustomFilterFieldProps;
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricFilterDemoThemeType, OnChangeFilterValueType, RlsCondition } from '@/types';
|
|
3
|
+
type StringManualFilterFieldProps = {
|
|
4
|
+
filter: RlsCondition;
|
|
5
|
+
onChangeFilterValue: OnChangeFilterValueType;
|
|
6
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
7
|
+
};
|
|
8
|
+
export declare const StringManualFilterField: ({ props: { filter, onChangeFilterValue, dropdownTheme }, }: {
|
|
9
|
+
props: StringManualFilterFieldProps;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricFilterDemoThemeType, OnChangeFilterValueType, RlsCondition } from '@/types';
|
|
3
|
+
type TimeFilterFieldProps = {
|
|
4
|
+
filter: RlsCondition;
|
|
5
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
6
|
+
onChangeFilterValue: OnChangeFilterValueType;
|
|
7
|
+
hideDatePickerOptions?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const TimeFilterField: ({ props: { filter, dropdownTheme, onChangeFilterValue, hideDatePickerOptions }, }: {
|
|
10
|
+
props: TimeFilterFieldProps;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MetricFilterDemoThemeType, OnChangeFilterValueType, RlsCondition } from '@/types';
|
|
3
|
+
type VariableTimeFilterFieldProps = {
|
|
4
|
+
filter: RlsCondition;
|
|
5
|
+
dropdownTheme?: MetricFilterDemoThemeType;
|
|
6
|
+
onChangeFilterValue: OnChangeFilterValueType;
|
|
7
|
+
hideDatePickerOptions?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const VariableTimeFilterField: ({ props: { filter, dropdownTheme, onChangeFilterValue, hideDatePickerOptions }, }: {
|
|
10
|
+
props: VariableTimeFilterFieldProps;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
datasourceId: string;
|
|
17
|
+
};
|
|
18
|
+
export type DateSelectedOption = {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
labelType?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, isAllClient, dropdownTheme, tenancyLevel, clientColumnType, hideDatePickerOptions, zIndex, datasourceId, }: Props) => React.JSX.Element;
|
|
24
|
+
declare const _default: React.MemoExoticComponent<({ rlsConditions, onChangeFilterValue, workspaceId, clientId, className, rlsConditionList, isAllClient, dropdownTheme, tenancyLevel, clientColumnType, hideDatePickerOptions, zIndex, datasourceId, }: Props) => React.JSX.Element>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
disableDownloadPng?: boolean;
|
|
33
|
+
disableFullscreen?: boolean;
|
|
34
|
+
enableMultiMetricFilters?: boolean;
|
|
35
|
+
layout: {
|
|
36
|
+
clientLayout: Layout[];
|
|
37
|
+
adminLayout: Layout[];
|
|
38
|
+
isLocked: boolean;
|
|
39
|
+
onChange: (layout: Layout[]) => void;
|
|
40
|
+
};
|
|
41
|
+
dropdownTheme: {
|
|
42
|
+
width: string;
|
|
43
|
+
variant: 'static' | 'floating';
|
|
44
|
+
radius: string;
|
|
45
|
+
};
|
|
46
|
+
optionsIcon?: 'kebab-menu-vertical' | 'download';
|
|
47
|
+
token: string;
|
|
48
|
+
workspaceId: string;
|
|
49
|
+
dataLimit: number;
|
|
50
|
+
isShowLoader: boolean;
|
|
51
|
+
isEditLayoutEnabled?: boolean;
|
|
52
|
+
isEnableMetricSummary?: boolean;
|
|
53
|
+
hideDatePickerOptions?: string[];
|
|
54
|
+
chartAppearance?: ChartAppearanceType;
|
|
55
|
+
isAllClient: boolean;
|
|
56
|
+
gridMargin?: {
|
|
57
|
+
verticalMargin: number;
|
|
58
|
+
horizontalMargin: number;
|
|
59
|
+
};
|
|
60
|
+
isShadowDisableOnHover?: boolean;
|
|
61
|
+
noDataImg?: string;
|
|
62
|
+
metricCardColor?: string;
|
|
63
|
+
shouldFitFullScreen?: boolean;
|
|
64
|
+
mergedMetrics?: string[];
|
|
65
|
+
metricIndex?: number;
|
|
66
|
+
setRowMetrics?: React.Dispatch<React.SetStateAction<number>>;
|
|
67
|
+
onServerEvent?: any;
|
|
68
|
+
disableMetricCardBorder?: boolean;
|
|
69
|
+
isMobileScreen?: boolean;
|
|
70
|
+
isAllowToDownloadMetrics?: boolean;
|
|
71
|
+
chartColumns?: {
|
|
72
|
+
dimensions?: string[];
|
|
73
|
+
measures?: string[];
|
|
74
|
+
isEnabled?: boolean;
|
|
75
|
+
metricId?: string;
|
|
76
|
+
}[];
|
|
77
|
+
datasourceId: string;
|
|
78
|
+
};
|
|
79
|
+
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,20 @@
|
|
|
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
|
+
onServerEvent?: any;
|
|
18
|
+
disableDownloadPng?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const DownloadButton: ({ data, chartRef, metricName, onRawCsvData, chartOptions, integrationName, companyIntegrationId, metricData, updateDownloadProgress, isPythonMode, isEnableEmailRawCsvDownload, onServerEvent, disableDownloadPng, }: DownloadButtonProps) => React.JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
onServerEvent?: any;
|
|
45
|
+
disableDownloadPng?: boolean;
|
|
46
|
+
datasourceId: string;
|
|
47
|
+
isAllowToDownloadMetrics?: boolean;
|
|
48
|
+
};
|
|
49
|
+
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, onServerEvent, disableDownloadPng, isAllowToDownloadMetrics, datasourceId, }: FullScreenViewProps) => React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
datasourceId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const ManageMetricCard: ({ metricItem, client, colors, companyTenancyType, isInternalApp, isFrontendApp, guestToken, encryptedClient, workspaceId, chartAppearance, datasourceId, }: ManageMetricCardProps) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
onServerEvent?: any;
|
|
14
|
+
datasourceId: string;
|
|
15
|
+
};
|
|
16
|
+
declare const ManageMetricMenu: ({ props: { metricList, token, client, companyTenancyType, workspaceId, chartAppearance, colors, isOpenModal, setOpenModal, onServerEvent, datasourceId, }, }: {
|
|
17
|
+
props: ManageMetricMenuProps;
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
|
+
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,17 @@
|
|
|
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
|
+
elementSummaryError?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const ElementCard: ({ elementSettings, elementSummary, elementSummaryError, }: ElementCardProps) => React.JSX.Element;
|
|
17
|
+
export default ElementCard;
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
onServerEvent?: any;
|
|
98
|
+
disableBorder?: boolean;
|
|
99
|
+
isDisableActions?: boolean;
|
|
100
|
+
isEnableCumulative?: boolean;
|
|
101
|
+
isEnableDynamic?: boolean;
|
|
102
|
+
isEnableStack?: boolean;
|
|
103
|
+
datasourceId: string;
|
|
104
|
+
setHoverLongDesc?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
105
|
+
isShowFullScreenModal?: boolean;
|
|
106
|
+
};
|
|
107
|
+
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, onServerEvent, disableBorder, isDisableActions, isEnableCumulative, isEnableDynamic, isEnableStack, datasourceId, setHoverLongDesc, isShowFullScreenModal, }: 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';
|