@databrainhq/plugin 0.15.56 → 0.15.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/components/Accordion/index.d.ts +0 -34
- package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
- package/dist/components/Alert/index.d.ts +0 -12
- package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
- package/dist/components/Badge/index.d.ts +0 -10
- package/dist/components/Button/index.d.ts +0 -14
- package/dist/components/ButtonGroup/index.d.ts +0 -16
- package/dist/components/Chart/SingleValueChart.d.ts +0 -38
- package/dist/components/Chart/index.d.ts +0 -47
- package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
- package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
- package/dist/components/ChartModal/index.d.ts +0 -3
- package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
- package/dist/components/ChartPopup/index.d.ts +0 -28
- package/dist/components/ChartReportPanel/index.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +0 -10
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
- package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
- package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
- package/dist/components/ChartTypePanel/index.d.ts +0 -15
- package/dist/components/Checkbox/index.d.ts +0 -11
- package/dist/components/ColorField/ColorField.d.ts +0 -13
- package/dist/components/DataType/index.d.ts +0 -9
- package/dist/components/DateRangePicker/index.d.ts +0 -36
- package/dist/components/DraggableItem/index.d.ts +0 -7
- package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
- package/dist/components/Error/index.d.ts +0 -6
- package/dist/components/ErrorFallback/index.d.ts +0 -2
- package/dist/components/ExternalMetricForm/index.d.ts +0 -11
- package/dist/components/FileUploader/index.d.ts +0 -6
- package/dist/components/FilterDropDown/index.d.ts +0 -32
- package/dist/components/FilterField/index.d.ts +0 -40
- package/dist/components/Flex/index.d.ts +0 -13
- package/dist/components/FloatingDropDown/index.d.ts +0 -43
- package/dist/components/FullScreenChart/index.d.ts +0 -8
- package/dist/components/GaugeLegend/index.d.ts +0 -12
- package/dist/components/GenerateMetric/index.d.ts +0 -3
- package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
- package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
- package/dist/components/GlobalFilters/Filters.d.ts +0 -29
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -36
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
- package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
- package/dist/components/GlobalFilters/index.d.ts +0 -82
- package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
- package/dist/components/HorizontalStackTable/index.d.ts +0 -18
- package/dist/components/Icons/Logos/index.d.ts +0 -33
- package/dist/components/Icons/index.d.ts +0 -9
- package/dist/components/InfoTooltip/index.d.ts +0 -31
- package/dist/components/InputField/index.d.ts +0 -20
- package/dist/components/List/index.d.ts +0 -43
- package/dist/components/Loader/index.d.ts +0 -6
- package/dist/components/Menu/index.d.ts +0 -32
- package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -13
- package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -39
- package/dist/components/MetricChart/index.d.ts +0 -5
- package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
- package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
- package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
- package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -21
- package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
- package/dist/components/MetricCreation/index.d.ts +0 -5
- package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -18
- package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
- package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -19
- package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
- package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
- package/dist/components/MetricFilterDropDown/index.d.ts +0 -25
- package/dist/components/MetricList/MetricList.d.ts +0 -79
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
- package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
- package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -20
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -49
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
- package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -16
- package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -19
- package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
- package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -17
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -106
- package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
- package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
- package/dist/components/MetricList/components/index.d.ts +0 -7
- package/dist/components/MetricList/index.d.ts +0 -2
- package/dist/components/MetricTable/index.d.ts +0 -7
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/ModalFooter.d.ts +0 -5
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelectDropdown/index.d.ts +0 -45
- package/dist/components/Panel/index.d.ts +0 -17
- package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
- package/dist/components/PivotTable/index.d.ts +0 -8
- package/dist/components/PivotTable/transformData.d.ts +0 -7
- package/dist/components/PopoverMenu/index.d.ts +0 -39
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/RadioButton/index.d.ts +0 -16
- package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -17
- package/dist/components/ScheduleEmail/index.d.ts +0 -18
- package/dist/components/SearchDropdown/index.d.ts +0 -14
- package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
- package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
- package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
- package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
- package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
- package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
- package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -16
- package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
- package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
- package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
- package/dist/components/SearchMetricData/index.d.ts +0 -1
- package/dist/components/SearchTab/index.d.ts +0 -13
- package/dist/components/Select/index.d.ts +0 -47
- package/dist/components/SelfHostControl/index.d.ts +0 -4
- package/dist/components/SkeletonLoader/index.d.ts +0 -9
- package/dist/components/SpinningLoader/index.d.ts +0 -2
- package/dist/components/Switch/SwitchInput.d.ts +0 -10
- package/dist/components/Switch/index.d.ts +0 -11
- package/dist/components/Tab/index.d.ts +0 -14
- package/dist/components/Table/DebouncedInput.d.ts +0 -6
- package/dist/components/Table/Filter.d.ts +0 -7
- package/dist/components/Table/index.d.ts +0 -39
- package/dist/components/Tabs/index.d.ts +0 -41
- package/dist/components/TagInputField/index.d.ts +0 -33
- package/dist/components/Text/index.d.ts +0 -15
- package/dist/components/TextAreaField/index.d.ts +0 -24
- package/dist/components/ThemeBlock/index.d.ts +0 -8
- package/dist/components/TimeGrainField/index.d.ts +0 -17
- package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
- package/dist/components/ToggleIconBtn/index.d.ts +0 -14
- package/dist/components/index.d.ts +0 -67
- package/dist/consts/api.d.ts +0 -81
- package/dist/consts/app.d.ts +0 -157
- package/dist/consts/index.d.ts +0 -2
- package/dist/consts/metricOptions.d.ts +0 -209
- package/dist/consts/validations.d.ts +0 -24
- package/dist/containers/Dashboard/Dashboard.d.ts +0 -85
- package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -54
- package/dist/containers/Dashboard/index.d.ts +0 -2
- package/dist/containers/DbnStyles.d.ts +0 -14
- package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -55
- package/dist/containers/Metric/MergedMetric.d.ts +0 -54
- package/dist/containers/Metric/index.d.ts +0 -97
- package/dist/containers/PluginProvider.d.ts +0 -7
- package/dist/containers/index.d.ts +0 -3
- package/dist/helpers/adaptiveFormatter.d.ts +0 -6
- package/dist/helpers/areArraysEqual.d.ts +0 -1
- package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
- package/dist/helpers/cardActions.d.ts +0 -5
- package/dist/helpers/chartOptions.d.ts +0 -93
- package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
- package/dist/helpers/conditionalFormatting.d.ts +0 -3
- package/dist/helpers/copyToClipboard.d.ts +0 -4
- package/dist/helpers/createMetric.d.ts +0 -35
- package/dist/helpers/darkColorIdentifier.d.ts +0 -2
- package/dist/helpers/dateFormatter.d.ts +0 -1
- package/dist/helpers/generateColorPalette.d.ts +0 -1
- package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
- package/dist/helpers/getColumnType.d.ts +0 -2
- package/dist/helpers/getComboRangeLabel.d.ts +0 -5
- package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
- package/dist/helpers/getModifiedQuery.d.ts +0 -78
- package/dist/helpers/getNextScheduledTime.d.ts +0 -13
- package/dist/helpers/getTimeFilterValue.d.ts +0 -12
- package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
- package/dist/helpers/groupArray.d.ts +0 -1
- package/dist/helpers/groupBy.d.ts +0 -25
- package/dist/helpers/index.d.ts +0 -16
- package/dist/helpers/numberFormatter.d.ts +0 -1
- package/dist/helpers/setOnDateChange.d.ts +0 -11
- package/dist/helpers/sqlMetadata.d.ts +0 -7
- package/dist/helpers/timeseries.d.ts +0 -35
- package/dist/helpers/timeseriesOption.d.ts +0 -72
- package/dist/helpers/tooltipFormatter.d.ts +0 -27
- package/dist/helpers/treeMap.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/useArchiveMetric.d.ts +0 -10
- package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
- package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
- package/dist/hooks/useDashboardContext.d.ts +0 -39
- package/dist/hooks/useDatasetMetric.d.ts +0 -50
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
- package/dist/hooks/useDrag.d.ts +0 -10
- package/dist/hooks/useDragAndDropState.d.ts +0 -10
- package/dist/hooks/useDrop.d.ts +0 -13
- package/dist/hooks/useEmbeddedMetric.d.ts +0 -27
- package/dist/hooks/useExternalMetric.d.ts +0 -55
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -16
- package/dist/hooks/useGenerateMetric.d.ts +0 -64
- package/dist/hooks/useMetricCard.d.ts +0 -130
- package/dist/hooks/useMetricConfig.d.ts +0 -63
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -37
- package/dist/hooks/useOutsideAlerter.d.ts +0 -14
- package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
- package/dist/hooks/usePythonResults.d.ts +0 -17
- package/dist/hooks/useScheduleEmail.d.ts +0 -38
- package/dist/hooks/useSearch.d.ts +0 -55
- package/dist/hooks/useUnderlyingData.d.ts +0 -32
- package/dist/index.d.ts +0 -8
- package/dist/queries/externalDashboard.mutation.d.ts +0 -61
- package/dist/queries/externalDashboard.query.d.ts +0 -20
- package/dist/queries/index.d.ts +0 -1
- package/dist/queries/metric.mutation.d.ts +0 -57
- package/dist/queries/metric.query.d.ts +0 -12
- package/dist/types/app.d.ts +0 -962
- package/dist/types/dragAndDropProps.d.ts +0 -70
- package/dist/types/index.d.ts +0 -3
- package/dist/types/metricCreate.d.ts +0 -766
- package/dist/types/queryTypes.d.ts +0 -350
- package/dist/usa-c14e93e4.mjs +0 -15112
- package/dist/utils/arrayToCsvString.d.ts +0 -6
- package/dist/utils/colors.d.ts +0 -2
- package/dist/utils/fetcher.d.ts +0 -13
- package/dist/utils/getChartAttributes.d.ts +0 -98
- package/dist/utils/getChartImage.d.ts +0 -3
- package/dist/utils/getChartOptions.d.ts +0 -42
- package/dist/utils/getFormattedDataType.d.ts +0 -1
- package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
- package/dist/utils/getValidJson.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/pivotDataTransform.d.ts +0 -7
- package/dist/utils/popoverPosition.d.ts +0 -2
- package/dist/utils/theme.d.ts +0 -42
- package/dist/webcomponents.d.ts +0 -11
- package/dist/webcomponents.es.js +0 -223698
- package/dist/webcomponents.umd.js +0 -4399
- package/dist/world-8db01cf5.mjs +0 -45896
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const isValidDate: (date: any) => boolean;
|
|
2
|
-
declare const generateTimeRangeWhereClause: ({ isTimeColumn, timeColumnName, timeCount, timeGrain, timeRangeIndicator, databaseType, endDate, startDate, comparsionOperator, }: {
|
|
3
|
-
timeColumnName: string;
|
|
4
|
-
timeRangeIndicator: string;
|
|
5
|
-
timeCount: number;
|
|
6
|
-
timeGrain: string;
|
|
7
|
-
isTimeColumn: boolean;
|
|
8
|
-
startDate?: Date | undefined;
|
|
9
|
-
endDate?: Date | undefined;
|
|
10
|
-
databaseType?: string | undefined;
|
|
11
|
-
comparsionOperator?: string | undefined;
|
|
12
|
-
}) => string;
|
|
13
|
-
export default generateTimeRangeWhereClause;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { DataMartRelationShip } from './getModifiedQuery';
|
|
2
|
-
export declare const getTableName: (table: string, isElasticSearch: boolean) => string;
|
|
3
|
-
export declare const removeComments: (sql: string) => string;
|
|
4
|
-
export declare const getTableNameWithQuotes: (tableName: string, isDatabricks: boolean, dbName: string) => string;
|
|
5
|
-
export declare const getTableNameWithSchemaQuotes: ({ dbName, isDatabricks, schemaName, tableName, }: {
|
|
6
|
-
schemaName: string;
|
|
7
|
-
isDatabricks: boolean;
|
|
8
|
-
dbName: string;
|
|
9
|
-
tableName: string;
|
|
10
|
-
}) => string;
|
|
11
|
-
export declare const buildJoinQuery: ({ dbName, relationShip, schemaName, tableName, }: {
|
|
12
|
-
relationShip?: DataMartRelationShip | undefined;
|
|
13
|
-
schemaName: string;
|
|
14
|
-
dbName: string;
|
|
15
|
-
tableName: string;
|
|
16
|
-
}) => string;
|
|
17
|
-
export declare const injectWhereCondition: ({ condition, matchedTableName, query, isAsscociatedQuery, joinString, associatedTableNameWithQuotes, }: {
|
|
18
|
-
query: string;
|
|
19
|
-
matchedTableName: string;
|
|
20
|
-
matchedTableRegex: RegExp;
|
|
21
|
-
tableName: string;
|
|
22
|
-
condition: string;
|
|
23
|
-
dbName: string;
|
|
24
|
-
isAsscociatedQuery?: boolean | undefined;
|
|
25
|
-
joinString?: string | undefined;
|
|
26
|
-
associatedTableNameWithQuotes?: string | undefined;
|
|
27
|
-
}) => string;
|
|
28
|
-
export declare const injectWhereConditionOld: ({ condition, matchedTableName, matchedTableRegex, query, tableName, dbName, isAsscociatedQuery, joinString, associatedTableNameWithQuotes, }: {
|
|
29
|
-
query: string;
|
|
30
|
-
matchedTableName: string;
|
|
31
|
-
matchedTableRegex: RegExp;
|
|
32
|
-
tableName: string;
|
|
33
|
-
condition: string;
|
|
34
|
-
dbName: string;
|
|
35
|
-
isAsscociatedQuery?: boolean | undefined;
|
|
36
|
-
joinString?: string | undefined;
|
|
37
|
-
associatedTableNameWithQuotes?: string | undefined;
|
|
38
|
-
}) => string;
|
|
39
|
-
export declare const getReplacedQuery: (table: {
|
|
40
|
-
tableName: string;
|
|
41
|
-
condition: string;
|
|
42
|
-
dataMartRelationships?: DataMartRelationShip[] | undefined;
|
|
43
|
-
}, query: string, dbName: string) => string;
|
|
44
|
-
interface Condition {
|
|
45
|
-
condition: string;
|
|
46
|
-
tableName: string;
|
|
47
|
-
}
|
|
48
|
-
interface GroupedTables {
|
|
49
|
-
parentTable: string;
|
|
50
|
-
childTables: {
|
|
51
|
-
tableName: string;
|
|
52
|
-
condition: string;
|
|
53
|
-
join: string;
|
|
54
|
-
columnName: string;
|
|
55
|
-
parentColumn: string;
|
|
56
|
-
filterTableName: string;
|
|
57
|
-
}[];
|
|
58
|
-
}
|
|
59
|
-
export declare const groupChildTablesByParent: (conditions: Condition[], relationships: DataMartRelationShip[]) => GroupedTables[];
|
|
60
|
-
export declare const buildJoinQueryWithChildTable: ({ dbName, schemaName, parentTableName, childTables, }: {
|
|
61
|
-
schemaName: string;
|
|
62
|
-
dbName: string;
|
|
63
|
-
parentTableName: string;
|
|
64
|
-
childTables: GroupedTables['childTables'];
|
|
65
|
-
}) => string;
|
|
66
|
-
export declare const getReplacedParentTableQuery: ({ dbName, parentTables, query, }: {
|
|
67
|
-
parentTables: GroupedTables;
|
|
68
|
-
dbName: string;
|
|
69
|
-
query: string;
|
|
70
|
-
}) => string;
|
|
71
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FilterFieldType, MetricCardProps } from '@/components';
|
|
3
|
-
import { ClientColumnType, GlobalFilterColumn, RlsCondition } from '@/types/app';
|
|
4
|
-
export type DataMartRelationShip = {
|
|
5
|
-
join?: string | undefined;
|
|
6
|
-
childColumnName: string;
|
|
7
|
-
parentColumnName: string;
|
|
8
|
-
childTableName: string;
|
|
9
|
-
parentTableName: string;
|
|
10
|
-
};
|
|
11
|
-
type OnChangeGlobalFilterParams = {
|
|
12
|
-
value: any;
|
|
13
|
-
setAppliedFilters: React.Dispatch<React.SetStateAction<FilterFieldType[]>>;
|
|
14
|
-
column: GlobalFilterColumn;
|
|
15
|
-
operator: string;
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
type GetSqlStatement = {
|
|
19
|
-
query: string;
|
|
20
|
-
clientId?: string;
|
|
21
|
-
rlsConditions: RlsCondition[];
|
|
22
|
-
globalFilters?: MetricCardProps['globalFilters'];
|
|
23
|
-
dbName: string;
|
|
24
|
-
tenancyLevel: string;
|
|
25
|
-
values?: Record<string, string>;
|
|
26
|
-
isAllClient?: boolean;
|
|
27
|
-
clientColumnType: ClientColumnType;
|
|
28
|
-
dataMartRelationships?: DataMartRelationShip[];
|
|
29
|
-
};
|
|
30
|
-
export type ReplaceVariable = {
|
|
31
|
-
query: string;
|
|
32
|
-
clientId?: string;
|
|
33
|
-
rlsConditions: RlsCondition[];
|
|
34
|
-
tenancyLevel: string;
|
|
35
|
-
values?: Record<string, string>;
|
|
36
|
-
isAllClient?: boolean;
|
|
37
|
-
globalFilters?: MetricCardProps['globalFilters'];
|
|
38
|
-
clientColumnType: ClientColumnType;
|
|
39
|
-
};
|
|
40
|
-
type ReplaceClientVariableParams = {
|
|
41
|
-
query: string;
|
|
42
|
-
clientId?: string | number | null;
|
|
43
|
-
tenancyLevel: string;
|
|
44
|
-
isAllClient?: boolean;
|
|
45
|
-
clientColumnType: ClientColumnType;
|
|
46
|
-
};
|
|
47
|
-
export declare const replaceClientVariable: ({ clientId, query, tenancyLevel, isAllClient, clientColumnType, }: ReplaceClientVariableParams) => string;
|
|
48
|
-
export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, isAllClient, globalFilters, clientColumnType, }: ReplaceVariable) => string;
|
|
49
|
-
export declare const nameSpace: (name: string, dbName: string) => string;
|
|
50
|
-
export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
|
|
51
|
-
export declare const dateWhereClause: (condition: RlsCondition, dbName: string) => string;
|
|
52
|
-
export declare const otherWhereClause: (condition: RlsCondition, dbName: string) => string;
|
|
53
|
-
export declare const stringClause: (condition: RlsCondition, dbName: string) => string | undefined;
|
|
54
|
-
export declare const replaceWhereClauses: (queryStr: string, groupedConditions: Record<string, RlsCondition[]>, dbName: string) => string;
|
|
55
|
-
export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
|
|
56
|
-
rlsConditions: RlsCondition[];
|
|
57
|
-
dbName: string;
|
|
58
|
-
query: string;
|
|
59
|
-
}) => string;
|
|
60
|
-
export declare const getGroupedConditions: (rlsConditions: RlsCondition[], group: string) => RlsCondition[];
|
|
61
|
-
export declare const getFilters: ({ rlsConditions, dbName, }: {
|
|
62
|
-
rlsConditions: RlsCondition[];
|
|
63
|
-
dbName: string;
|
|
64
|
-
}) => string;
|
|
65
|
-
export declare const getGlobalFilterCondition: ({ as, column, value, dbName, isCustomSql, operator, }: {
|
|
66
|
-
as: string;
|
|
67
|
-
value: any;
|
|
68
|
-
column: string;
|
|
69
|
-
isCustomSql?: boolean | undefined;
|
|
70
|
-
dbName: string;
|
|
71
|
-
operator: string;
|
|
72
|
-
}) => string;
|
|
73
|
-
export declare const getSqlStatement: ({ query, clientId, rlsConditions, globalFilters, dbName, tenancyLevel, values, isAllClient, clientColumnType, dataMartRelationships, }: GetSqlStatement) => string;
|
|
74
|
-
export declare const isAppliedFilter: (filter: RlsCondition) => number | boolean | Date | undefined;
|
|
75
|
-
export declare const onChangeGlobalFilter: ({ column, setAppliedFilters, value, operator, type, }: OnChangeGlobalFilterParams) => void;
|
|
76
|
-
export declare const getColumnNameKeyString: (columnName: string, dbName: string) => string;
|
|
77
|
-
export declare const getExecuteSqlResponseData: (data: any) => any;
|
|
78
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface ScheduleParams {
|
|
2
|
-
frequency: string;
|
|
3
|
-
weekDays: Record<string, boolean>;
|
|
4
|
-
date: {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}[];
|
|
8
|
-
hours: string;
|
|
9
|
-
time: string;
|
|
10
|
-
timezone: string;
|
|
11
|
-
}
|
|
12
|
-
declare const getNextScheduledTime: (params: ScheduleParams) => string;
|
|
13
|
-
export default getNextScheduledTime;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type Params = {
|
|
2
|
-
timeGrainValue: string;
|
|
3
|
-
isTimeStamp: boolean;
|
|
4
|
-
col: string;
|
|
5
|
-
database: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const getTimeFilterValue: ({ timeGrainValue, isTimeStamp, col, database, }: Params) => string;
|
|
8
|
-
export declare const handleTimeGrainValue: (label: string) => {
|
|
9
|
-
start: Date;
|
|
10
|
-
end: Date;
|
|
11
|
-
} | undefined;
|
|
12
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MetricFilterOptionsType, RlsCondition } from '@/types';
|
|
2
|
-
/**
|
|
3
|
-
* @name getValidRlsConditionOptions - Filters out invalid options and return valid options and value;
|
|
4
|
-
* @param {RlsCondition} rlsCondition (required) - A metric filter object.
|
|
5
|
-
* @param {MetricFilterOptionsType} filterOptions (required) - Metric filter options prop object.
|
|
6
|
-
* @returns value - A valid value or undefined.
|
|
7
|
-
* @returns options - A valid options or undefined.
|
|
8
|
-
* @returns 'undefined' - If not a valid props or options or value.
|
|
9
|
-
*/
|
|
10
|
-
export declare const getValidRlsConditionOptions: (rlsCondition: RlsCondition, filterOptions: MetricFilterOptionsType) => {
|
|
11
|
-
value: string | undefined;
|
|
12
|
-
options: string[] | number[] | {
|
|
13
|
-
value: string | number;
|
|
14
|
-
label: string;
|
|
15
|
-
}[] | import("@/types").DateTypeOptionType[];
|
|
16
|
-
} | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const groupArray: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<T[K], T[]>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChartSettingsType, DrillDownSetting } from '@/types';
|
|
2
|
-
export declare const groupByMultipleKeys: (rawData: any[] | undefined, keys: string[], measureKey: string) => any;
|
|
3
|
-
export declare const groupMeasures: (rawData: any[] | undefined, dimensionKey: string, measureKeys: string[]) => any;
|
|
4
|
-
export declare const updateGroupData: (data: any[] | undefined, keys: string[], selectedGroupBy: string[], setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void) => void;
|
|
5
|
-
export declare const updateDrilledData: (data: any[] | undefined, setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void, measureKeys: string[], dimenstionKey: string) => void;
|
|
6
|
-
export declare const findKeys: (arr: Record<string, any>[]) => {
|
|
7
|
-
numberKeys: string[];
|
|
8
|
-
stringKeys: string[];
|
|
9
|
-
};
|
|
10
|
-
export declare const indentifyKeys: (arr: Record<string, any>[]) => {
|
|
11
|
-
numberKeys: string[];
|
|
12
|
-
otherKeys: string[];
|
|
13
|
-
};
|
|
14
|
-
export declare const getEnabledChart: (data: any[]) => string[];
|
|
15
|
-
export declare const autoDetectCharts: ({ data, setChartSettings, }: {
|
|
16
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
17
|
-
data: any[];
|
|
18
|
-
}) => void;
|
|
19
|
-
export declare const defaultChartProperties: ({ chartType, data, setChartSettings, groupbyList, }: {
|
|
20
|
-
data: any[];
|
|
21
|
-
chartType: string;
|
|
22
|
-
setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
|
|
23
|
-
groupbyList: any[];
|
|
24
|
-
}) => void;
|
|
25
|
-
export declare const drilldown: (chartParams: any, drillDownSettings: DrillDownSetting | undefined, data: any[] | undefined, setDrilledLevel: React.Dispatch<React.SetStateAction<number>>, drilledLevel: number, setShowChartPopup: React.Dispatch<React.SetStateAction<boolean>>, setGroupedData: React.Dispatch<React.SetStateAction<Record<string, any>[]>>) => void;
|
package/dist/helpers/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './getModifiedQuery';
|
|
2
|
-
export * from './getTimeFilterValue';
|
|
3
|
-
export * from './groupArray';
|
|
4
|
-
export * from './groupBy';
|
|
5
|
-
export * from './getValidRlsConditionOptions';
|
|
6
|
-
export * from './timeseries';
|
|
7
|
-
export * from './checkIsElementInViewport';
|
|
8
|
-
export * from './areArraysEqual';
|
|
9
|
-
export * from './generateTimeRangeWhereClause';
|
|
10
|
-
export * from './getColumnType';
|
|
11
|
-
export * from './createMetric';
|
|
12
|
-
export * from './timeseriesOption';
|
|
13
|
-
export * from './chartOptions';
|
|
14
|
-
export * from './autoCompleteHelpers';
|
|
15
|
-
export * from './sqlMetadata';
|
|
16
|
-
export * from './copyToClipboard';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const numberFormatter: (val: any, formatter: any) => any;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const setOnDateChange: (start: Date | null | undefined, end: Date | null | undefined, timeGrain?: string) => {
|
|
2
|
-
value: string;
|
|
3
|
-
startDate: Date;
|
|
4
|
-
endDate: Date;
|
|
5
|
-
timeGrainValue: string;
|
|
6
|
-
} | {
|
|
7
|
-
value?: undefined;
|
|
8
|
-
startDate?: undefined;
|
|
9
|
-
endDate?: undefined;
|
|
10
|
-
timeGrainValue?: undefined;
|
|
11
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getOrderedByColumns: (query: string, databaseName: string) => any;
|
|
2
|
-
export declare const getColumnList: (sqlQuery: string, databaseName: string) => string[];
|
|
3
|
-
export declare const isColumnExistsInSql: ({ columnName, databaseName, sql, }: {
|
|
4
|
-
columnName: string;
|
|
5
|
-
sql: string;
|
|
6
|
-
databaseName: string;
|
|
7
|
-
}) => boolean;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BackgroundSettings, CustomSettings, LabelSettings, TimeSeriesGroupType, TimeSeriesType } from '@/types';
|
|
2
|
-
interface TimeSeriesData {
|
|
3
|
-
timeStampKey: string;
|
|
4
|
-
data: Record<string, any>[];
|
|
5
|
-
values?: string[];
|
|
6
|
-
}
|
|
7
|
-
type GetTimeSeriesData = {
|
|
8
|
-
dataArray: Record<string, any>[];
|
|
9
|
-
timeStampKey: string;
|
|
10
|
-
valuekeys: string[];
|
|
11
|
-
type: TimeSeriesType;
|
|
12
|
-
groupBy: TimeSeriesGroupType;
|
|
13
|
-
labelSettings: LabelSettings;
|
|
14
|
-
customSettings: CustomSettings;
|
|
15
|
-
backGroundColor: BackgroundSettings;
|
|
16
|
-
fillXAxis: boolean;
|
|
17
|
-
isCumulativeBar: boolean;
|
|
18
|
-
customData: any;
|
|
19
|
-
yAxisList: string[];
|
|
20
|
-
hasPercentSymbol: boolean;
|
|
21
|
-
colorPalette?: string[];
|
|
22
|
-
markerData?: any[];
|
|
23
|
-
labelFormatting?: any;
|
|
24
|
-
chartAppearanceLabelPosition?: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const groupByMap: {
|
|
27
|
-
yearly: (date: Date) => string;
|
|
28
|
-
monthly: (date: Date) => string;
|
|
29
|
-
weekly: (date: Date) => string;
|
|
30
|
-
daily: (date: Date) => string;
|
|
31
|
-
quarterly: (date: Date) => string;
|
|
32
|
-
};
|
|
33
|
-
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, customData, yAxisList, hasPercentSymbol, colorPalette, markerData, labelFormatting, chartAppearanceLabelPosition, }: GetTimeSeriesData) => any[];
|
|
34
|
-
export declare const isTimeSeriesDataValid: ({ data, timeStampKey, }: TimeSeriesData) => boolean;
|
|
35
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { BackgroundSettings, ChartSettingsType, CustomSettings, FloatingDropDownOption, LabelSettings, LegendSettings } from '@/types';
|
|
2
|
-
type DataRow = Record<string, any>;
|
|
3
|
-
type AxisSettings = {
|
|
4
|
-
axis?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
type GetSeriesOptionParams = {
|
|
7
|
-
chartOptions: ChartSettingsType;
|
|
8
|
-
data: DataRow[];
|
|
9
|
-
labelSettings: LabelSettings;
|
|
10
|
-
backGroundColor: BackgroundSettings;
|
|
11
|
-
customSettings: CustomSettings;
|
|
12
|
-
colorOptions: Record<string, any>;
|
|
13
|
-
defaultOptions: Record<string, any>;
|
|
14
|
-
legendSettings: LegendSettings;
|
|
15
|
-
axisSettings: AxisSettings;
|
|
16
|
-
legendPosition: Record<string, any>;
|
|
17
|
-
markerData?: any[];
|
|
18
|
-
labelFormatting: any;
|
|
19
|
-
chartAppearanceLabelPosition?: string;
|
|
20
|
-
horizontalAxisSettings?: any;
|
|
21
|
-
horizontalAxisLabelSettings?: any;
|
|
22
|
-
verticalAxisSettings?: any;
|
|
23
|
-
verticalAxisLabelSettings?: any;
|
|
24
|
-
chartLegendSettings?: any;
|
|
25
|
-
chartTooltip?: {
|
|
26
|
-
labelStyle?: {
|
|
27
|
-
size?: number;
|
|
28
|
-
family?: string;
|
|
29
|
-
weight?: number;
|
|
30
|
-
color?: string;
|
|
31
|
-
};
|
|
32
|
-
valueStyle?: {
|
|
33
|
-
size?: number;
|
|
34
|
-
family?: string;
|
|
35
|
-
weight?: number;
|
|
36
|
-
color?: string;
|
|
37
|
-
};
|
|
38
|
-
tooltipHeader?: {
|
|
39
|
-
size?: number;
|
|
40
|
-
family?: string;
|
|
41
|
-
weight?: number;
|
|
42
|
-
color?: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export declare const getSeriesOption: ({ chartOptions, data, backGroundColor, customSettings, labelSettings, colorOptions, defaultOptions, axisSettings, markerData, labelFormatting, chartAppearanceLabelPosition, horizontalAxisSettings, horizontalAxisLabelSettings, verticalAxisSettings, verticalAxisLabelSettings, chartLegendSettings, chartTooltip, }: GetSeriesOptionParams) => {
|
|
47
|
-
axisLine: {
|
|
48
|
-
show: boolean | undefined;
|
|
49
|
-
};
|
|
50
|
-
axisLabel: {
|
|
51
|
-
show: boolean | undefined;
|
|
52
|
-
};
|
|
53
|
-
tooltip: {
|
|
54
|
-
trigger: string;
|
|
55
|
-
backgroundColor: string;
|
|
56
|
-
borderRadius: number;
|
|
57
|
-
padding: number;
|
|
58
|
-
axisPointer: {
|
|
59
|
-
type: string;
|
|
60
|
-
};
|
|
61
|
-
className: string;
|
|
62
|
-
enterable: boolean;
|
|
63
|
-
valueFormatter: (value: any) => string;
|
|
64
|
-
formatter: (params: any) => string;
|
|
65
|
-
};
|
|
66
|
-
xAxis: any;
|
|
67
|
-
yAxis: any;
|
|
68
|
-
legend: any;
|
|
69
|
-
series: any[];
|
|
70
|
-
};
|
|
71
|
-
export declare const getFormat: (value: FloatingDropDownOption, dbName: string) => "yyyy-MM-dd" | "%b - %Y" | "MMM - yyyy" | "Mon - yyyy" | "%Y" | "yyyy" | "%Q QUARTER" | "%Q %Y" | "Q yyyy" | "%Y-%m-%d" | "yyyy-mm-dd" | "%Y-%m-%U" | "%Y-%m-%W" | "yyyy-MM-WEEKOFYEAR" | "yyyy-mm-WW";
|
|
72
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChartSettingsType } from '@/types';
|
|
2
|
-
export declare const tooltipFormatter: (params: any, chartOptions: ChartSettingsType, options?: {
|
|
3
|
-
hasPercentSymbol?: boolean;
|
|
4
|
-
isEnableDateFormat?: boolean;
|
|
5
|
-
dateFormat?: string;
|
|
6
|
-
isNoAxisChart?: boolean;
|
|
7
|
-
tooltipFormatting?: {
|
|
8
|
-
labelStyle?: {
|
|
9
|
-
size?: number;
|
|
10
|
-
family?: string;
|
|
11
|
-
weight?: number;
|
|
12
|
-
color?: string;
|
|
13
|
-
};
|
|
14
|
-
valueStyle?: {
|
|
15
|
-
size?: number;
|
|
16
|
-
family?: string;
|
|
17
|
-
weight?: number;
|
|
18
|
-
color?: string;
|
|
19
|
-
};
|
|
20
|
-
tooltipHeader?: {
|
|
21
|
-
size?: number;
|
|
22
|
-
family?: string;
|
|
23
|
-
weight?: number;
|
|
24
|
-
color?: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}) => string;
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './useExternalMetric';
|
|
2
|
-
export * from './useGenerateDatasetMetrics';
|
|
3
|
-
export * from './useOutsideAlerter';
|
|
4
|
-
export * from './useClientDashboardLayout';
|
|
5
|
-
export * from './useUnderlyingData';
|
|
6
|
-
export * from './useMetricCard';
|
|
7
|
-
export * from './useArchiveMetric';
|
|
8
|
-
export * from './useEmbeddedMetric';
|
|
9
|
-
export * from './useDrag';
|
|
10
|
-
export * from './useDrop';
|
|
11
|
-
export * from './usePythonResults';
|
|
12
|
-
export * from './useAutoCompleteOptions';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type UseArchiveMetricProps = {
|
|
2
|
-
metricId: string;
|
|
3
|
-
onSuccess: () => void;
|
|
4
|
-
token: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const useArchiveMetric: ({ metricId, onSuccess, token, }: UseArchiveMetricProps) => {
|
|
7
|
-
handleArchiveMetric: () => Promise<void>;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Layout } from 'react-grid-layout';
|
|
2
|
-
export type UseClientDashboardLayoutProps = {
|
|
3
|
-
externalDashboardId: string;
|
|
4
|
-
clientId: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const useClientDashboardLayout: ({ externalDashboardId, clientId, }: UseClientDashboardLayoutProps) => {
|
|
7
|
-
saveLayout: (data: {
|
|
8
|
-
newLayout: Layout[];
|
|
9
|
-
filtersLayout: string[];
|
|
10
|
-
isChangedByClient?: boolean | undefined;
|
|
11
|
-
gridMargin?: {
|
|
12
|
-
verticalMargin?: number | undefined;
|
|
13
|
-
horizontalMargin?: number | undefined;
|
|
14
|
-
} | undefined;
|
|
15
|
-
}) => Promise<void>;
|
|
16
|
-
layout: Layout[];
|
|
17
|
-
dashboardFiltersLayout: string[];
|
|
18
|
-
gridMargin: any;
|
|
19
|
-
isLayoutLocked: boolean;
|
|
20
|
-
isLoadingLayout: boolean;
|
|
21
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ClientColumnType } from '@/types';
|
|
3
|
-
interface DashboardContextType {
|
|
4
|
-
isLoading: boolean | undefined;
|
|
5
|
-
token: string | undefined;
|
|
6
|
-
error?: string;
|
|
7
|
-
data: {
|
|
8
|
-
token: string;
|
|
9
|
-
companyId: string;
|
|
10
|
-
sharingSettingsId: string | undefined;
|
|
11
|
-
clientId: string | undefined;
|
|
12
|
-
externalDashboardMetrics: any[];
|
|
13
|
-
externalDashboard: any;
|
|
14
|
-
rlsSettings: any | undefined;
|
|
15
|
-
appFilters: any | undefined;
|
|
16
|
-
dashboardAppFilters: any | undefined;
|
|
17
|
-
companyTenancyType: any;
|
|
18
|
-
isAllowedToCreateMetrics: boolean | undefined;
|
|
19
|
-
isAllowedToDeleteMetrics: boolean | undefined;
|
|
20
|
-
isAllowedToUpdateMetrics: boolean | undefined;
|
|
21
|
-
isAllowedManageMetrics: boolean | undefined;
|
|
22
|
-
isAllowedToChangeLayout: boolean | undefined;
|
|
23
|
-
isAllowedToEmailReports: boolean | undefined;
|
|
24
|
-
isAllowToDownloadMetrics: boolean | undefined;
|
|
25
|
-
isShowUnderlyingData: boolean | undefined;
|
|
26
|
-
workspace: any;
|
|
27
|
-
adminTheme: any;
|
|
28
|
-
clientSubsetData?: any | undefined;
|
|
29
|
-
clientColumnType: ClientColumnType;
|
|
30
|
-
isEnableMetricSummary: boolean;
|
|
31
|
-
refreshTime?: number | null;
|
|
32
|
-
isAllClient: boolean;
|
|
33
|
-
metricCreationMode: string;
|
|
34
|
-
datasourceId: string;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}
|
|
37
|
-
export declare const DashboardContext: import("react").Context<DashboardContextType>;
|
|
38
|
-
export declare const useDashboardContext: () => DashboardContextType;
|
|
39
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ReactAce from 'react-ace/lib/ace';
|
|
3
|
-
import { ChartSettingsType, CreateNewFilter, CreateNewSort, DatasetConfig, DatasetMetricCreationConfiguration, FloatingDropDownOption, Modifiers, OnChangeAliasParams, OnChangeHelperFunctionParams, OnDrillPivotTableParams, OnDropColumnParams, OnRemoveColumnParams, PivotDrillState, SelectedColumn, SetChartFieldParams, TableObjectType } from '@/types';
|
|
4
|
-
declare const useDatasetMetric: ({ clientId, clientSubsetData, setChartSettings, setError, dbName, chartSettings, setData, setQuery, setLoading, setGroupByList, data, limit, setDatasetSettings, token, workspaceId, isDatabaseTenancy, clientColumnType, setDrillDownSettings, drillDownSettings, datasourceId, }: DatasetConfig) => {
|
|
5
|
-
selectedMainTable: TableObjectType | undefined;
|
|
6
|
-
companySubsetTableList: TableObjectType[];
|
|
7
|
-
setSelectedMainTable: import("react").Dispatch<import("react").SetStateAction<TableObjectType | undefined>>;
|
|
8
|
-
pivotDrillState: PivotDrillState;
|
|
9
|
-
setPivotDrillState: import("react").Dispatch<import("react").SetStateAction<PivotDrillState>>;
|
|
10
|
-
configuration: DatasetMetricCreationConfiguration;
|
|
11
|
-
selectedDims: SelectedColumn[];
|
|
12
|
-
selectedMetrics: SelectedColumn[];
|
|
13
|
-
onDropColumn: ({ column, table, sorting, type, identifier, }: OnDropColumnParams) => void;
|
|
14
|
-
functionOptions: (col?: SelectedColumn, dataType?: string) => FloatingDropDownOption[];
|
|
15
|
-
dimModifiers: Modifiers;
|
|
16
|
-
metricModifiers: Modifiers;
|
|
17
|
-
isTimeSeries: boolean;
|
|
18
|
-
editorRef: import("react").RefObject<ReactAce>;
|
|
19
|
-
onChangeAlias: ({ alias, column, type, cast, isColumnCasted, }: OnChangeAliasParams) => void;
|
|
20
|
-
onChangeHelperFunction: ({ column, helperFunction, type, functionConfiguration, }: OnChangeHelperFunctionParams) => void;
|
|
21
|
-
onRemoveColumn: ({ column, type }: OnRemoveColumnParams) => void;
|
|
22
|
-
selectedTable: FloatingDropDownOption;
|
|
23
|
-
createdSorts: CreateNewSort[];
|
|
24
|
-
setCreatedSorts: import("react").Dispatch<import("react").SetStateAction<CreateNewSort[]>>;
|
|
25
|
-
onApplyFilter: (onComplete: () => void, isClear?: boolean, index?: number) => void;
|
|
26
|
-
onApplySort: (onComplete: () => void, isClear?: boolean, index?: number) => void;
|
|
27
|
-
sortColumnOptions: FloatingDropDownOption[];
|
|
28
|
-
filterColumnOptions: FloatingDropDownOption[];
|
|
29
|
-
createdFilters: CreateNewFilter[];
|
|
30
|
-
setCreatedFilters: import("react").Dispatch<import("react").SetStateAction<CreateNewFilter[]>>;
|
|
31
|
-
getFilterDropDownType: ({ datatype, operator, }: {
|
|
32
|
-
datatype: string;
|
|
33
|
-
operator: string;
|
|
34
|
-
}) => "DATE_PICKER" | "NULL" | "DATE_RANGE" | "TIME_FILTER" | "MULTI_FILTER_DROPDOWN" | "INPUT_NUMBER_FIELD" | "INPUT_TEXT_FIELD" | "FILTER_DROPDOWN";
|
|
35
|
-
onSelectTimeSeries: (chartType: ChartSettingsType['chartType']) => void;
|
|
36
|
-
setChartFields: ({ chartType, chartDimensions, chartMetrics, chartAggregateColumns, resultData, configAggregates, pivotHeaderColumns, chartTimeColumns, }: SetChartFieldParams) => void;
|
|
37
|
-
resetCharSettings: (chartType: ChartSettingsType['chartType']) => void;
|
|
38
|
-
onDrillPivotTable: ({ filters, nextLevel, currentValue, }: OnDrillPivotTableParams) => void;
|
|
39
|
-
onSelectPivotTable: (chartType: ChartSettingsType['chartType'], headers: string[]) => void;
|
|
40
|
-
onChangeChartGroupByValue: (seriesName: string) => void;
|
|
41
|
-
onChangeTimeseriesFormat: (value: FloatingDropDownOption, seriesName?: string) => void;
|
|
42
|
-
isDisableChartDrillDown: boolean;
|
|
43
|
-
isAllowDrillDown: boolean;
|
|
44
|
-
onChangeDrillDown: (params: any, isEnable?: boolean, isChange?: boolean, index?: number) => void;
|
|
45
|
-
drillFilters: {
|
|
46
|
-
columnName: string;
|
|
47
|
-
value: string | number;
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
export default useDatasetMetric;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, metricItem, workspaceId, }: {
|
|
3
|
-
onCloseModal?: ((value: boolean) => void) | undefined;
|
|
4
|
-
metricItem?: Record<string, any> | undefined;
|
|
5
|
-
sharingSettingsId?: string | undefined;
|
|
6
|
-
workspaceId: string;
|
|
7
|
-
}) => {
|
|
8
|
-
onSumbitSendCsvUrl: ({ values, query, }: {
|
|
9
|
-
values: FieldValues;
|
|
10
|
-
query: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
isDisableDownloadSettings: boolean;
|
|
13
|
-
downloadCsvError: string;
|
|
14
|
-
handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
register: import("react-hook-form").UseFormRegister<FieldValues>;
|
|
17
|
-
control: import("react-hook-form").Control<FieldValues, any>;
|
|
18
|
-
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
19
|
-
errors: import("react-hook-form").FieldErrors<FieldValues>;
|
|
20
|
-
};
|
|
21
|
-
export default useDownloadRawCsv;
|
package/dist/hooks/useDrag.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UseDragProps } from '@/types';
|
|
3
|
-
declare const useDrag: ({ identifier, data, modifiers, events, CustomDragPreview, }: UseDragProps) => {
|
|
4
|
-
isDragging: boolean;
|
|
5
|
-
isEnableDrag: boolean;
|
|
6
|
-
setIsEnableDrag: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
7
|
-
DragNodeRef: import("react").MutableRefObject<any>;
|
|
8
|
-
};
|
|
9
|
-
export default useDrag;
|
|
10
|
-
export { useDrag };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DndStateProp } from '@/types';
|
|
2
|
-
declare const useDragAndDropState: () => {
|
|
3
|
-
dndState: DndStateProp;
|
|
4
|
-
setActive: (active: DndStateProp['active']) => void;
|
|
5
|
-
setOver: (over: DndStateProp['over']) => void;
|
|
6
|
-
setDraggables: (draggable: DndStateProp['active']) => void;
|
|
7
|
-
setDropables: (droppable: DndStateProp['over']) => void;
|
|
8
|
-
setDndState: (update: DndStateProp | ((prev: DndStateProp) => DndStateProp)) => void;
|
|
9
|
-
};
|
|
10
|
-
export default useDragAndDropState;
|
package/dist/hooks/useDrop.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UseDropProps } from '@/types';
|
|
3
|
-
declare const useDrop: ({ identifier, events, modifiers }: UseDropProps) => {
|
|
4
|
-
dragStatus: {
|
|
5
|
-
isDragOver: boolean;
|
|
6
|
-
isDrop: boolean;
|
|
7
|
-
};
|
|
8
|
-
isEnableDrop: boolean;
|
|
9
|
-
setIsEnableDrop: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
-
setDropNodeRef: import("react").MutableRefObject<any>;
|
|
11
|
-
};
|
|
12
|
-
export default useDrop;
|
|
13
|
-
export { useDrop };
|