@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.
Files changed (248) hide show
  1. package/package.json +1 -1
  2. package/dist/components/Accordion/index.d.ts +0 -34
  3. package/dist/components/AceEditorSql/AceEditorSql.d.ts +0 -11
  4. package/dist/components/Alert/index.d.ts +0 -12
  5. package/dist/components/AutoCompleteDropdown/index.d.ts +0 -20
  6. package/dist/components/Badge/index.d.ts +0 -10
  7. package/dist/components/Button/index.d.ts +0 -14
  8. package/dist/components/ButtonGroup/index.d.ts +0 -16
  9. package/dist/components/Chart/SingleValueChart.d.ts +0 -38
  10. package/dist/components/Chart/index.d.ts +0 -47
  11. package/dist/components/ChartModal/ChartConfig.d.ts +0 -10
  12. package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -14
  13. package/dist/components/ChartModal/index.d.ts +0 -3
  14. package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +0 -15
  15. package/dist/components/ChartPopup/index.d.ts +0 -28
  16. package/dist/components/ChartReportPanel/index.d.ts +0 -10
  17. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +0 -13
  18. package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/AxisSettings.d.ts +0 -10
  19. package/dist/components/ChartSettingsPopup/components/ChartConfigure/ComboAxisSettings/index.d.ts +0 -8
  20. package/dist/components/ChartSettingsPopup/components/ChartConfigure/PositionContainer.d.ts +0 -8
  21. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +0 -26
  22. package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +0 -14
  23. package/dist/components/ChartSettingsPopup/index.d.ts +0 -3
  24. package/dist/components/ChartTypePanel/index.d.ts +0 -15
  25. package/dist/components/Checkbox/index.d.ts +0 -11
  26. package/dist/components/ColorField/ColorField.d.ts +0 -13
  27. package/dist/components/DataType/index.d.ts +0 -9
  28. package/dist/components/DateRangePicker/index.d.ts +0 -36
  29. package/dist/components/DraggableItem/index.d.ts +0 -7
  30. package/dist/components/DrillBreadCrumb/index.d.ts +0 -16
  31. package/dist/components/Error/index.d.ts +0 -6
  32. package/dist/components/ErrorFallback/index.d.ts +0 -2
  33. package/dist/components/ExternalMetricForm/index.d.ts +0 -11
  34. package/dist/components/FileUploader/index.d.ts +0 -6
  35. package/dist/components/FilterDropDown/index.d.ts +0 -32
  36. package/dist/components/FilterField/index.d.ts +0 -40
  37. package/dist/components/Flex/index.d.ts +0 -13
  38. package/dist/components/FloatingDropDown/index.d.ts +0 -43
  39. package/dist/components/FullScreenChart/index.d.ts +0 -8
  40. package/dist/components/GaugeLegend/index.d.ts +0 -12
  41. package/dist/components/GenerateMetric/index.d.ts +0 -3
  42. package/dist/components/GlobalFilters/AddFilter.d.ts +0 -15
  43. package/dist/components/GlobalFilters/AppliedFilter.d.ts +0 -9
  44. package/dist/components/GlobalFilters/Filters.d.ts +0 -29
  45. package/dist/components/GlobalFilters/HorizontalFilters.d.ts +0 -36
  46. package/dist/components/GlobalFilters/NumberFilterField.d.ts +0 -23
  47. package/dist/components/GlobalFilters/SearchField.d.ts +0 -10
  48. package/dist/components/GlobalFilters/index.d.ts +0 -82
  49. package/dist/components/HorizontalStackTable/DebouncedInput.d.ts +0 -6
  50. package/dist/components/HorizontalStackTable/index.d.ts +0 -18
  51. package/dist/components/Icons/Logos/index.d.ts +0 -33
  52. package/dist/components/Icons/index.d.ts +0 -9
  53. package/dist/components/InfoTooltip/index.d.ts +0 -31
  54. package/dist/components/InputField/index.d.ts +0 -20
  55. package/dist/components/List/index.d.ts +0 -43
  56. package/dist/components/Loader/index.d.ts +0 -6
  57. package/dist/components/Menu/index.d.ts +0 -32
  58. package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +0 -13
  59. package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -12
  60. package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +0 -12
  61. package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +0 -39
  62. package/dist/components/MetricChart/index.d.ts +0 -5
  63. package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
  64. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
  65. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
  66. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
  67. package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
  68. package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
  69. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
  70. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -33
  71. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
  72. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/index.d.ts +0 -1
  73. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -11
  74. package/dist/components/MetricCreation/components/MetricOutput/components/index.d.ts +0 -3
  75. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -2
  76. package/dist/components/MetricCreation/components/Panels/ChartActionPanel.d.ts +0 -13
  77. package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +0 -22
  78. package/dist/components/MetricCreation/components/Panels/FiltersPanel.d.ts +0 -21
  79. package/dist/components/MetricCreation/components/Panels/SortPanel.d.ts +0 -15
  80. package/dist/components/MetricCreation/index.d.ts +0 -5
  81. package/dist/components/MetricFilterDropDown/components/OldMetricFilterComponents.d.ts +0 -18
  82. package/dist/components/MetricFilterDropDown/components/SearchField.d.ts +0 -7
  83. package/dist/components/MetricFilterDropDown/components/StringAutoCustomFilterField.d.ts +0 -19
  84. package/dist/components/MetricFilterDropDown/components/StringManualFilterField.d.ts +0 -11
  85. package/dist/components/MetricFilterDropDown/components/TimeFilterField.d.ts +0 -12
  86. package/dist/components/MetricFilterDropDown/components/VariableTimeFilterField.d.ts +0 -12
  87. package/dist/components/MetricFilterDropDown/index.d.ts +0 -25
  88. package/dist/components/MetricList/MetricList.d.ts +0 -79
  89. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +0 -7
  90. package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +0 -13
  91. package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +0 -8
  92. package/dist/components/MetricList/components/FullScreenView/ChartPropertiesPanel.d.ts +0 -12
  93. package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +0 -20
  94. package/dist/components/MetricList/components/FullScreenView/index.d.ts +0 -49
  95. package/dist/components/MetricList/components/LayoutAlert/index.d.ts +0 -7
  96. package/dist/components/MetricList/components/ManageMetricMenu/ManageMetricCard.d.ts +0 -16
  97. package/dist/components/MetricList/components/ManageMetricMenu/index.d.ts +0 -19
  98. package/dist/components/MetricList/components/MetricCards/CreateElementPanel.d.ts +0 -14
  99. package/dist/components/MetricList/components/MetricCards/ElementCard.d.ts +0 -17
  100. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +0 -106
  101. package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +0 -11
  102. package/dist/components/MetricList/components/TableViewModal/index.d.ts +0 -9
  103. package/dist/components/MetricList/components/index.d.ts +0 -7
  104. package/dist/components/MetricList/index.d.ts +0 -2
  105. package/dist/components/MetricTable/index.d.ts +0 -7
  106. package/dist/components/Modal/Modal.d.ts +0 -14
  107. package/dist/components/Modal/ModalFooter.d.ts +0 -5
  108. package/dist/components/Modal/index.d.ts +0 -2
  109. package/dist/components/MultiSelectDropdown/index.d.ts +0 -45
  110. package/dist/components/Panel/index.d.ts +0 -17
  111. package/dist/components/PivotTable/PivotTableV2.d.ts +0 -23
  112. package/dist/components/PivotTable/index.d.ts +0 -8
  113. package/dist/components/PivotTable/transformData.d.ts +0 -7
  114. package/dist/components/PopoverMenu/index.d.ts +0 -39
  115. package/dist/components/Portal/index.d.ts +0 -2
  116. package/dist/components/RadioButton/index.d.ts +0 -16
  117. package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +0 -17
  118. package/dist/components/ScheduleEmail/index.d.ts +0 -18
  119. package/dist/components/SearchDropdown/index.d.ts +0 -14
  120. package/dist/components/SearchMetricData/ChatMode/ChatAppearancePanel.d.ts +0 -19
  121. package/dist/components/SearchMetricData/ChatMode/ChatMode.d.ts +0 -44
  122. package/dist/components/SearchMetricData/ChatMode/ChatModeHeader.d.ts +0 -8
  123. package/dist/components/SearchMetricData/ChatMode/ChatReportPanel.d.ts +0 -9
  124. package/dist/components/SearchMetricData/ChatMode/ChatSqlPanel.d.ts +0 -7
  125. package/dist/components/SearchMetricData/ChatMode/NoChatData.d.ts +0 -3
  126. package/dist/components/SearchMetricData/ChatMode/NoDataFound.d.ts +0 -16
  127. package/dist/components/SearchMetricData/ChatMode/Results.d.ts +0 -23
  128. package/dist/components/SearchMetricData/LoaderWithStates/index.d.ts +0 -7
  129. package/dist/components/SearchMetricData/SearchMetricData.d.ts +0 -5
  130. package/dist/components/SearchMetricData/index.d.ts +0 -1
  131. package/dist/components/SearchTab/index.d.ts +0 -13
  132. package/dist/components/Select/index.d.ts +0 -47
  133. package/dist/components/SelfHostControl/index.d.ts +0 -4
  134. package/dist/components/SkeletonLoader/index.d.ts +0 -9
  135. package/dist/components/SpinningLoader/index.d.ts +0 -2
  136. package/dist/components/Switch/SwitchInput.d.ts +0 -10
  137. package/dist/components/Switch/index.d.ts +0 -11
  138. package/dist/components/Tab/index.d.ts +0 -14
  139. package/dist/components/Table/DebouncedInput.d.ts +0 -6
  140. package/dist/components/Table/Filter.d.ts +0 -7
  141. package/dist/components/Table/index.d.ts +0 -39
  142. package/dist/components/Tabs/index.d.ts +0 -41
  143. package/dist/components/TagInputField/index.d.ts +0 -33
  144. package/dist/components/Text/index.d.ts +0 -15
  145. package/dist/components/TextAreaField/index.d.ts +0 -24
  146. package/dist/components/ThemeBlock/index.d.ts +0 -8
  147. package/dist/components/TimeGrainField/index.d.ts +0 -17
  148. package/dist/components/TimeSeriesSettings/index.d.ts +0 -8
  149. package/dist/components/ToggleIconBtn/index.d.ts +0 -14
  150. package/dist/components/index.d.ts +0 -67
  151. package/dist/consts/api.d.ts +0 -81
  152. package/dist/consts/app.d.ts +0 -157
  153. package/dist/consts/index.d.ts +0 -2
  154. package/dist/consts/metricOptions.d.ts +0 -209
  155. package/dist/consts/validations.d.ts +0 -24
  156. package/dist/containers/Dashboard/Dashboard.d.ts +0 -85
  157. package/dist/containers/Dashboard/DashboardProvider.d.ts +0 -7
  158. package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -54
  159. package/dist/containers/Dashboard/index.d.ts +0 -2
  160. package/dist/containers/DbnStyles.d.ts +0 -14
  161. package/dist/containers/Metric/EmbeddedMetric.d.ts +0 -55
  162. package/dist/containers/Metric/MergedMetric.d.ts +0 -54
  163. package/dist/containers/Metric/index.d.ts +0 -97
  164. package/dist/containers/PluginProvider.d.ts +0 -7
  165. package/dist/containers/index.d.ts +0 -3
  166. package/dist/helpers/adaptiveFormatter.d.ts +0 -6
  167. package/dist/helpers/areArraysEqual.d.ts +0 -1
  168. package/dist/helpers/autoCompleteHelpers.d.ts +0 -95
  169. package/dist/helpers/cardActions.d.ts +0 -5
  170. package/dist/helpers/chartOptions.d.ts +0 -93
  171. package/dist/helpers/checkIsElementInViewport.d.ts +0 -1
  172. package/dist/helpers/conditionalFormatting.d.ts +0 -3
  173. package/dist/helpers/copyToClipboard.d.ts +0 -4
  174. package/dist/helpers/createMetric.d.ts +0 -35
  175. package/dist/helpers/darkColorIdentifier.d.ts +0 -2
  176. package/dist/helpers/dateFormatter.d.ts +0 -1
  177. package/dist/helpers/generateColorPalette.d.ts +0 -1
  178. package/dist/helpers/generateTimeRangeWhereClause.d.ts +0 -13
  179. package/dist/helpers/getColumnType.d.ts +0 -2
  180. package/dist/helpers/getComboRangeLabel.d.ts +0 -5
  181. package/dist/helpers/getFilterAppliedQuery.d.ts +0 -71
  182. package/dist/helpers/getModifiedQuery.d.ts +0 -78
  183. package/dist/helpers/getNextScheduledTime.d.ts +0 -13
  184. package/dist/helpers/getTimeFilterValue.d.ts +0 -12
  185. package/dist/helpers/getValidRlsConditionOptions.d.ts +0 -16
  186. package/dist/helpers/groupArray.d.ts +0 -1
  187. package/dist/helpers/groupBy.d.ts +0 -25
  188. package/dist/helpers/index.d.ts +0 -16
  189. package/dist/helpers/numberFormatter.d.ts +0 -1
  190. package/dist/helpers/setOnDateChange.d.ts +0 -11
  191. package/dist/helpers/sqlMetadata.d.ts +0 -7
  192. package/dist/helpers/timeseries.d.ts +0 -35
  193. package/dist/helpers/timeseriesOption.d.ts +0 -72
  194. package/dist/helpers/tooltipFormatter.d.ts +0 -27
  195. package/dist/helpers/treeMap.d.ts +0 -6
  196. package/dist/hooks/index.d.ts +0 -12
  197. package/dist/hooks/useArchiveMetric.d.ts +0 -10
  198. package/dist/hooks/useAutoCompleteOptions.d.ts +0 -4
  199. package/dist/hooks/useClientDashboardLayout.d.ts +0 -21
  200. package/dist/hooks/useDashboardContext.d.ts +0 -39
  201. package/dist/hooks/useDatasetMetric.d.ts +0 -50
  202. package/dist/hooks/useDebounce.d.ts +0 -2
  203. package/dist/hooks/useDownloadRawCsv.d.ts +0 -21
  204. package/dist/hooks/useDrag.d.ts +0 -10
  205. package/dist/hooks/useDragAndDropState.d.ts +0 -10
  206. package/dist/hooks/useDrop.d.ts +0 -13
  207. package/dist/hooks/useEmbeddedMetric.d.ts +0 -27
  208. package/dist/hooks/useExternalMetric.d.ts +0 -55
  209. package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -16
  210. package/dist/hooks/useGenerateMetric.d.ts +0 -64
  211. package/dist/hooks/useMetricCard.d.ts +0 -130
  212. package/dist/hooks/useMetricConfig.d.ts +0 -63
  213. package/dist/hooks/useNewEmbeddedDashboard.d.ts +0 -37
  214. package/dist/hooks/useOutsideAlerter.d.ts +0 -14
  215. package/dist/hooks/usePublishArchivedMetrics.d.ts +0 -5
  216. package/dist/hooks/usePythonResults.d.ts +0 -17
  217. package/dist/hooks/useScheduleEmail.d.ts +0 -38
  218. package/dist/hooks/useSearch.d.ts +0 -55
  219. package/dist/hooks/useUnderlyingData.d.ts +0 -32
  220. package/dist/index.d.ts +0 -8
  221. package/dist/queries/externalDashboard.mutation.d.ts +0 -61
  222. package/dist/queries/externalDashboard.query.d.ts +0 -20
  223. package/dist/queries/index.d.ts +0 -1
  224. package/dist/queries/metric.mutation.d.ts +0 -57
  225. package/dist/queries/metric.query.d.ts +0 -12
  226. package/dist/types/app.d.ts +0 -962
  227. package/dist/types/dragAndDropProps.d.ts +0 -70
  228. package/dist/types/index.d.ts +0 -3
  229. package/dist/types/metricCreate.d.ts +0 -766
  230. package/dist/types/queryTypes.d.ts +0 -350
  231. package/dist/usa-c14e93e4.mjs +0 -15112
  232. package/dist/utils/arrayToCsvString.d.ts +0 -6
  233. package/dist/utils/colors.d.ts +0 -2
  234. package/dist/utils/fetcher.d.ts +0 -13
  235. package/dist/utils/getChartAttributes.d.ts +0 -98
  236. package/dist/utils/getChartImage.d.ts +0 -3
  237. package/dist/utils/getChartOptions.d.ts +0 -42
  238. package/dist/utils/getFormattedDataType.d.ts +0 -1
  239. package/dist/utils/getNoAxisChartOptions.d.ts +0 -25
  240. package/dist/utils/getValidJson.d.ts +0 -1
  241. package/dist/utils/index.d.ts +0 -9
  242. package/dist/utils/pivotDataTransform.d.ts +0 -7
  243. package/dist/utils/popoverPosition.d.ts +0 -2
  244. package/dist/utils/theme.d.ts +0 -42
  245. package/dist/webcomponents.d.ts +0 -11
  246. package/dist/webcomponents.es.js +0 -223698
  247. package/dist/webcomponents.umd.js +0 -4399
  248. package/dist/world-8db01cf5.mjs +0 -45896
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- data: any;
4
- isError: boolean;
5
- };
6
- export declare const MetricTable: ({ data, isError }: Props) => React.JSX.Element;
7
- export {};
@@ -1,14 +0,0 @@
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>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export type ModalFooterProps = React.PropsWithChildren & {
3
- className?: string;
4
- };
5
- export declare const ModalFooter: React.FC<ModalFooterProps>;
@@ -1,2 +0,0 @@
1
- export * from './Modal';
2
- export * from './ModalFooter';
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import { FloatingDropDownOption } from '@/types';
3
- import { Ui } from '@/index';
4
- export type MultiSelectAccordianDropdownProps = {
5
- onChange: (options: FloatingDropDownOption) => void;
6
- selectedOption: FloatingDropDownOption;
7
- options: FloatingDropDownOption[];
8
- button?: JSX.Element;
9
- label?: string;
10
- labelVariant?: 'floating' | 'static';
11
- isDisabled?: boolean;
12
- isSearchEnabled?: boolean;
13
- icon?: JSX.Element;
14
- buttonWidth?: string;
15
- menuWidth?: string;
16
- searchIcon?: JSX.Element;
17
- closeControl?: {
18
- close: boolean;
19
- };
20
- searchPlaceholder?: string;
21
- radius?: string;
22
- };
23
- export type MultiSelectDropdownProps = Omit<MultiSelectAccordianDropdownProps, 'selectedOption' | 'onChange'> & {
24
- id?: string;
25
- onChange: (options: FloatingDropDownOption[]) => void;
26
- selectedOption: FloatingDropDownOption[];
27
- options: FloatingDropDownOption[];
28
- isShowSelectedOptions?: boolean;
29
- radius?: string;
30
- isFilter?: boolean;
31
- dataTestTitle?: string;
32
- isAutoSelectOption?: boolean;
33
- isLoadingData?: boolean;
34
- error?: string;
35
- menuZIndex?: number;
36
- isSelectAllEnabled?: boolean;
37
- isSelectAllOn?: boolean;
38
- isTableColFilterDesign?: boolean;
39
- onSearch?: (searchKeyword: string) => void;
40
- isClearEnabled?: boolean;
41
- isAutoSelectFromLast?: boolean;
42
- autoSelectCount?: number;
43
- };
44
- export declare const MultiSelectAccordianDropdown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, icon, buttonWidth, menuWidth, isSearchEnabled, searchIcon, closeControl, searchPlaceholder, radius, }: MultiSelectAccordianDropdownProps) => React.JSX.Element;
45
- export declare const MultiSelectDropdown: ({ id, label, labelVariant, selectedOption, onChange, button, options, isDisabled, icon, buttonWidth, menuWidth, isSearchEnabled, searchIcon, closeControl, searchPlaceholder, isShowSelectedOptions, radius, isFilter, dataTestTitle, isAutoSelectOption, isLoadingData, error, menuZIndex, isSelectAllEnabled, isSelectAllOn, isTableColFilterDesign, onSearch, isClearEnabled, autoSelectCount, isAutoSelectFromLast, }: MultiSelectDropdownProps) => React.JSX.Element;
@@ -1,17 +0,0 @@
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;
@@ -1,23 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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;
@@ -1,7 +0,0 @@
1
- export interface ResultItem {
2
- name: string | number;
3
- count: number;
4
- parent: string;
5
- }
6
- declare const transformData: (inputData: Record<string, any>[], dimensions: string[], metrics: string[]) => Record<string, ResultItem[]>;
7
- export default transformData;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import type { Placement } from '@popperjs/core';
3
- import { Colors } from '@/types';
4
- type PopoverMenuStateProp = {
5
- id: string;
6
- isOpen?: boolean;
7
- setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
8
- isMenuOpen?: boolean;
9
- setMenuOpen?: React.Dispatch<React.SetStateAction<boolean>>;
10
- popperElement?: Node | HTMLDivElement | null;
11
- referenceElement?: Node | HTMLDivElement | null;
12
- disableCloseOnClickOutside?: boolean;
13
- };
14
- export declare const popoverMenuStateAtom: import("jotai").PrimitiveAtom<PopoverMenuStateProp[]> & {
15
- init: PopoverMenuStateProp[];
16
- };
17
- export type PopoverMenuProps = React.PropsWithChildren & {
18
- buttonContent: React.ReactNode;
19
- isDisabled?: boolean;
20
- position?: Placement;
21
- buttonWidth?: string;
22
- menuWidth?: string;
23
- offset?: [number, number];
24
- overFlowDetection?: boolean;
25
- tabMenu?: boolean;
26
- bgColor?: Colors;
27
- autoCloseParent?: boolean;
28
- getIsOpen?: (isOpen: boolean) => void;
29
- isClearEnabled?: boolean;
30
- isMenuOpen?: boolean;
31
- setMenuOpen?: React.Dispatch<React.SetStateAction<boolean>>;
32
- dataTestTitle?: string;
33
- menuZIndex?: number;
34
- popoverButtonId?: string;
35
- containerWidth?: string;
36
- disableCloseOnClickOutside?: boolean;
37
- };
38
- export declare const PopoverMenu: React.FC<PopoverMenuProps>;
39
- export {};
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const Portal: ({ children }: PropsWithChildren) => import("react").ReactPortal | null;
@@ -1,16 +0,0 @@
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;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { ClientStateParams } from '@/hooks/useScheduleEmail';
3
- import { FloatingDropDownOption } from '@/types';
4
- type Props = {
5
- onCancel: () => void;
6
- getInternalToken?: (guestToken?: string, isAllClient?: boolean) => Promise<string>;
7
- scheduleReportConfig?: any;
8
- chartOptions: FloatingDropDownOption[];
9
- sharingSettingsId?: string;
10
- externalDashboardId?: string;
11
- onComplete?: () => void;
12
- clientDropDown?: React.ReactNode;
13
- clientState?: ClientStateParams;
14
- isEmbed?: boolean;
15
- };
16
- export declare const ScheduleEmailForm: ({ onCancel, getInternalToken, scheduleReportConfig: internalScheduleReportConfig, chartOptions, externalDashboardId, sharingSettingsId, onComplete, clientDropDown, clientState, isEmbed, }: Props) => React.JSX.Element;
17
- export default ScheduleEmailForm;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { FloatingDropDownOption } from '@/types';
3
- type ScheduleEmailProps = {
4
- getInternalToken?: () => Promise<string>;
5
- scheduleReportConfig?: any;
6
- chartOptions: FloatingDropDownOption[];
7
- sharingSettingsId?: string;
8
- externalDashboardId?: string;
9
- onComplete?: () => void;
10
- isShowSettings: boolean;
11
- setShowSettings: React.Dispatch<React.SetStateAction<boolean>>;
12
- onServerEvent?: any;
13
- isEmbed?: boolean;
14
- };
15
- export declare const ScheduleEmail: ({ props: { chartOptions, getInternalToken, scheduleReportConfig, externalDashboardId, sharingSettingsId, onComplete, isShowSettings, setShowSettings, onServerEvent, isEmbed, }, }: {
16
- props: ScheduleEmailProps;
17
- }) => React.JSX.Element;
18
- export default ScheduleEmail;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { SearchColumn, SearchKeyType } from '@/types';
3
- export type SearchDropdownProps = {
4
- onSubmitSearch: () => void;
5
- options: SearchColumn[];
6
- isDisabled?: boolean;
7
- placeholder?: string;
8
- position?: 'top' | 'bottom';
9
- setSearchKeys: React.Dispatch<React.SetStateAction<SearchKeyType[]>>;
10
- searchKeys: SearchKeyType[];
11
- setSearchKeyword: React.Dispatch<React.SetStateAction<string>>;
12
- searchKeyword: string;
13
- };
14
- export declare const SearchDropdown: ({ options, isDisabled, placeholder, position, onSubmitSearch, searchKeys, setSearchKeys, searchKeyword, setSearchKeyword, }: SearchDropdownProps) => React.JSX.Element;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { ChartSettingsType } from '@/types';
3
- export type ChartAppearancePanelProps = {
4
- chartSettings: ChartSettingsType;
5
- setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
6
- isOpen: boolean;
7
- onClose: () => void;
8
- setBarRadius: React.Dispatch<React.SetStateAction<{
9
- topRadius: number;
10
- bottomRadius: number;
11
- }>>;
12
- setResetPallete: React.Dispatch<React.SetStateAction<boolean>>;
13
- zIndex?: number;
14
- };
15
- type Props = {
16
- chartAppearancePanelProps: ChartAppearancePanelProps;
17
- };
18
- declare const ChatAppearancePanel: ({ chartAppearancePanelProps: { chartSettings, isOpen, onClose, setBarRadius, setChartSettings, setResetPallete, zIndex, }, }: Props) => React.JSX.Element;
19
- export default ChatAppearancePanel;
@@ -1,44 +0,0 @@
1
- import React from 'react';
2
- import { ChartAppearancePanelProps } from './ChatAppearancePanel';
3
- import { SearchDropdownProps } from '@/components';
4
- import { SearchState, SearchStateChatType, ChartReportStateType, PivotDrillState, ChartSettingsType } from '@/types';
5
- import { CHART_TYPES } from '@/consts';
6
- type ChartType = keyof typeof CHART_TYPES;
7
- export type ChartTypePanelProps = {
8
- onChartChange: (chartType: ChartType) => void;
9
- selectedChart: ChartType;
10
- enabledCharts: string[];
11
- isOpen: boolean;
12
- onClose: () => void;
13
- isTourActive?: boolean;
14
- zIndex?: number;
15
- };
16
- type ChatModeProps = {
17
- searchDropdownProps: SearchDropdownProps;
18
- fromatQuery: (query: string) => string;
19
- searchState: SearchState;
20
- setSearchState: React.Dispatch<React.SetStateAction<SearchState>>;
21
- onGenerateDataReport: (chat: SearchStateChatType) => void;
22
- setChatReport: React.Dispatch<React.SetStateAction<ChartReportStateType>>;
23
- chatReport: ChartReportStateType;
24
- chartTypePanelProps: ChartTypePanelProps;
25
- chartAppearancePanelProps: ChartAppearancePanelProps;
26
- chartConfig: {
27
- pivotDrillState: PivotDrillState;
28
- setModalShow: React.Dispatch<React.SetStateAction<boolean>>;
29
- isLoading: boolean;
30
- showChatResults: number[];
31
- setShowChatResults: React.Dispatch<React.SetStateAction<number[]>>;
32
- setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
33
- setChartPanel: React.Dispatch<React.SetStateAction<{
34
- isOpenTypePanel: boolean;
35
- isOpenAppearance: boolean;
36
- chartIndex: number;
37
- }>>;
38
- };
39
- isSearchDataLoading: boolean;
40
- };
41
- declare const ChatMode: ({ props: { fromatQuery, searchDropdownProps, searchState, setSearchState, chartTypePanelProps, chartAppearancePanelProps, onGenerateDataReport, setChatReport, chatReport, chartConfig: { setChartSettings, pivotDrillState, setChartPanel, setShowChatResults, showChatResults, isLoading, setModalShow, }, isSearchDataLoading, }, }: {
42
- props: ChatModeProps;
43
- }) => React.JSX.Element;
44
- export default ChatMode;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type ChatModeHeaderProps = {
3
- setSearchGenerateMetricModal: (value: React.SetStateAction<boolean>) => void;
4
- };
5
- declare const ChatModeHeader: ({ props: { setSearchGenerateMetricModal }, }: {
6
- props: ChatModeHeaderProps;
7
- }) => React.JSX.Element;
8
- export default ChatModeHeader;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '@/components';
3
- type Props = Pick<PanelProps, 'isOpen' | 'onClose'> & {
4
- report: string;
5
- isLoading: boolean;
6
- subText?: string;
7
- };
8
- declare const ChatReportPanel: ({ isOpen, onClose, report, isLoading, subText, }: Props) => React.JSX.Element;
9
- export default ChatReportPanel;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '@/components';
3
- type Props = Pick<PanelProps, 'isOpen' | 'onClose'> & {
4
- query: string;
5
- };
6
- declare const ChatSqlPanel: ({ isOpen, onClose, query }: Props) => React.JSX.Element;
7
- export default ChatSqlPanel;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const NoChatData: () => React.JSX.Element;
3
- export default NoChatData;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- declare const NoDataFound: ({ message, children, subText, isNoDatasourceConnected, isNoDatamart, isNoReports, height, width, msgGap, subTextGap, msgVariant, subTextVariant, }: {
3
- message: string;
4
- children?: JSX.Element | undefined;
5
- subText?: string | undefined;
6
- isNoDatasourceConnected?: boolean | undefined;
7
- isNoDatamart?: boolean | undefined;
8
- isNoReports?: boolean | undefined;
9
- height?: string | undefined;
10
- width?: string | undefined;
11
- msgGap?: string | undefined;
12
- subTextGap?: string | undefined;
13
- msgVariant?: "new-heading-4" | undefined;
14
- subTextVariant?: "body-text-xs" | undefined;
15
- }) => React.JSX.Element;
16
- export default NoDataFound;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { onChangePagination } from '@/types';
3
- export type ResultsProp = {
4
- config: {
5
- data: Record<string, any>[];
6
- error: string;
7
- isLoading: boolean;
8
- isExternalChart?: boolean;
9
- isEnablePrevBtn?: boolean;
10
- isEnableNextBtn?: boolean;
11
- paginationInfo?: {
12
- limit: number;
13
- offset: number;
14
- totalRecords: number;
15
- };
16
- onChangePage?: onChangePagination;
17
- disableTableSearch?: boolean;
18
- };
19
- };
20
- declare const Results: ({ config: { data, error, isLoading, isEnableNextBtn, isEnablePrevBtn, isExternalChart, onChangePage, paginationInfo, disableTableSearch, }, className, }: ResultsProp & {
21
- className?: string | undefined;
22
- }) => React.JSX.Element;
23
- export default Results;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.MemoExoticComponent<({ states, isLoading, setLoaderCompleted, }: {
3
- states?: string[] | undefined;
4
- isLoading: boolean;
5
- setLoaderCompleted?: ((option: boolean) => void) | undefined;
6
- }) => React.JSX.Element>;
7
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { UseSearchType } from '@/hooks/useSearch';
3
- export declare const SearchMetricData: ({ config }: {
4
- config: UseSearchType;
5
- }) => React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './SearchMetricData';
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- id?: string;
4
- setSearchKeyword: React.Dispatch<React.SetStateAction<string>>;
5
- className?: string;
6
- placeholder?: string;
7
- value?: string;
8
- isResetValue?: boolean;
9
- onSearch?: (value: string) => void;
10
- autoComplete?: 'on' | 'off';
11
- };
12
- export declare const SearchTab: ({ id, setSearchKeyword, className, placeholder, value, isResetValue, onSearch, autoComplete, }: Props) => React.JSX.Element;
13
- export {};
@@ -1,47 +0,0 @@
1
- import React from 'react';
2
- import { FieldValues } from 'react-hook-form';
3
- import type { Control } from 'react-hook-form';
4
- type Option = {
5
- value: string;
6
- label: string;
7
- };
8
- type SelectInput = {
9
- label?: string;
10
- value: any;
11
- placeHolder?: string;
12
- options: Option[] | undefined;
13
- onChange?: (val: string | any) => void;
14
- isSearchEnabled?: boolean;
15
- searchIcon?: JSX.Element;
16
- labelVariant?: 'floating' | 'static';
17
- };
18
- type HookSelectInput = Omit<SelectInput, 'value'> & {
19
- control: Control;
20
- name: string;
21
- };
22
- export declare const Select: ({ label, options, onChange, value, placeHolder, isSearchEnabled, searchIcon, labelVariant, }: SelectInput) => React.JSX.Element;
23
- export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => React.JSX.Element;
24
- type MultiSelectProps = {
25
- options: Option[];
26
- defaultValue?: Option['value'][];
27
- value?: Option['value'][];
28
- onChange?: (selected: Option['value'][]) => void;
29
- label?: string;
30
- name?: string;
31
- className?: string;
32
- containerClass?: string;
33
- children?: React.ReactNode;
34
- placeHolder?: string;
35
- onClick?: any;
36
- labelVariant?: 'floating' | 'static';
37
- isSearchEnabled?: boolean;
38
- icon?: JSX.Element;
39
- isDisableShowSelectedTag?: boolean;
40
- };
41
- export declare const MultiSelect: React.FC<MultiSelectProps>;
42
- type HookMultiSelectProps = MultiSelectProps & {
43
- control: Control<FieldValues>;
44
- name: string;
45
- };
46
- export declare const HookMultiSelect: React.FC<HookMultiSelectProps>;
47
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const SelfHostControl: ({ children, }: {
3
- children: React.ReactNode;
4
- }) => React.JSX.Element;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- height?: string;
4
- className?: string;
5
- variant?: 'table' | 'card' | 'list';
6
- tableRows?: number;
7
- };
8
- export declare const SkeletonLoader: ({ height, className, variant, tableRows, }: Props) => React.JSX.Element;
9
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const SpinningLoader: () => React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- type SwitchProps = {
3
- name?: string;
4
- styles: Record<string, string>;
5
- placeholder?: string | [string, string];
6
- enabled?: boolean;
7
- isDisabled?: boolean;
8
- };
9
- export declare const SwitchButton: React.FC<SwitchProps>;
10
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- type SwitchButtonProps = {
3
- onChange?: (enabled: boolean) => void;
4
- enabled?: boolean;
5
- placeholder?: string;
6
- defaultEnabled?: boolean;
7
- name?: string;
8
- isDisabled?: boolean;
9
- };
10
- export declare const Switch: React.FC<SwitchButtonProps>;
11
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- type TabProps = {
3
- options: string[];
4
- activeTab: string;
5
- setActiveTab: React.Dispatch<React.SetStateAction<string>>;
6
- className?: string;
7
- tabText?: string;
8
- lockedTabs?: string[];
9
- tabClassname?: string;
10
- onChange?: (option: string) => void;
11
- isDisabled?: boolean;
12
- };
13
- export declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, lockedTabs, tabClassname, onChange, isDisabled, }: TabProps) => React.JSX.Element;
14
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const DebouncedInput: ({ value: initialValue, onChange, debounce, ...props }: {
3
- value: string | number;
4
- onChange: (value: string | number) => void;
5
- debounce?: number | undefined;
6
- } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">) => React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Column, Table } from '@tanstack/react-table';
2
- import React from 'react';
3
- declare const Filter: ({ column, table, }: {
4
- column: Column<any, unknown>;
5
- table: Table<any>;
6
- }) => React.JSX.Element;
7
- export default Filter;
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import { OnChangeFn, ColumnSizingState } from '@tanstack/react-table';
3
- import { ChartSettingsType, TableSettings } from '@/types';
4
- type Props = {
5
- data?: any[];
6
- isLoading: boolean;
7
- error: string;
8
- tableSettings?: TableSettings;
9
- tableName?: string;
10
- className?: string;
11
- onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
12
- onChartReady?: () => void;
13
- onChangePage?: (isPrev: boolean, resetValue?: number, nextOffset?: number) => void;
14
- isExternalChart?: boolean;
15
- isFullScreenChart?: boolean;
16
- isEnablePrevBtn?: boolean;
17
- isEnableNextBtn?: boolean;
18
- paginationInfo?: {
19
- limit: number;
20
- offset: number;
21
- totalRecords: number;
22
- };
23
- setChartSettings?: (value: React.SetStateAction<ChartSettingsType>) => void;
24
- externalGlobalFilter?: any[];
25
- setExternalGlobalFilter?: (value: React.SetStateAction<any[]>) => void;
26
- isInfiniteScroll?: boolean;
27
- onLoadMore?: () => void;
28
- hasMoreData?: boolean;
29
- isShowFullScreen?: boolean;
30
- isShowFullScreenEnabled?: boolean;
31
- filterValues?: Record<string, any>;
32
- onMaximize?: () => void;
33
- headerAlignment?: 'left' | 'center' | 'right';
34
- events?: Record<string, Function>;
35
- dateColumns?: string[];
36
- dropdownZindex?: number;
37
- };
38
- export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isFullScreenChart, isEnableNextBtn, isEnablePrevBtn, dateColumns, paginationInfo, setChartSettings, externalGlobalFilter, setExternalGlobalFilter, isInfiniteScroll, onLoadMore, hasMoreData, isShowFullScreen, isShowFullScreenEnabled, onMaximize, headerAlignment, events, dropdownZindex, }: Props) => React.JSX.Element;
39
- export {};
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- type TabsContextType = [
3
- activeTab: string | number,
4
- setActiveTab: React.Dispatch<React.SetStateAction<string | number>>,
5
- variant: 'primary' | 'popoverTabs',
6
- setTab?: React.Dispatch<React.SetStateAction<string | number>>
7
- ];
8
- export declare const TabsContext: React.Context<[] | TabsContextType>;
9
- type TabsProps = {
10
- children: React.ReactNode;
11
- variant?: 'primary' | 'popoverTabs';
12
- defaultActiveTab?: string | number;
13
- setTab?: React.Dispatch<React.SetStateAction<string | number>>;
14
- width?: string;
15
- className?: string;
16
- };
17
- type TabProps = {
18
- children: React.ReactNode;
19
- tabId: string;
20
- width?: string;
21
- grow?: boolean;
22
- className?: string;
23
- };
24
- export declare const Tabs: {
25
- Context: React.FC<TabsProps>;
26
- List: React.FC<{
27
- children: React.ReactNode;
28
- width?: string | undefined;
29
- background?: string | undefined;
30
- className?: string | undefined;
31
- headerButton?: React.ReactNode;
32
- }>;
33
- Tab: React.FC<TabProps>;
34
- Panel: React.FC<{
35
- children: React.ReactNode;
36
- tabId: string;
37
- width?: string | undefined;
38
- className?: string | undefined;
39
- }>;
40
- };
41
- export {};