@databrainhq/plugin 0.11.16 → 0.11.17

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 (97) hide show
  1. package/dist/components/AceEditorSql/AceEditorSql.d.ts +1 -1
  2. package/dist/components/Alert/index.d.ts +1 -1
  3. package/dist/components/Button/index.d.ts +1 -1
  4. package/dist/components/Chart/SingleValueChart.d.ts +1 -1
  5. package/dist/components/Chart/index.d.ts +1 -1
  6. package/dist/components/ChartModal/ChartConfig.d.ts +1 -1
  7. package/dist/components/ChartModal/ChartModalOptions.d.ts +2 -2
  8. package/dist/components/ChartModal/SelectField.d.ts +2 -2
  9. package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +1 -1
  10. package/dist/components/ChartPopup/index.d.ts +2 -2
  11. package/dist/components/ChartSettingsPopup/ChartSettingsPopup.d.ts +1 -1
  12. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +1 -1
  13. package/dist/components/ChartSettingsPopup/components/ChartSettings/index.d.ts +1 -1
  14. package/dist/components/Charts/AreaChart.d.ts +2 -2
  15. package/dist/components/Charts/BarChart.d.ts +1 -1
  16. package/dist/components/Charts/BoxPlot.d.ts +2 -2
  17. package/dist/components/Charts/BubbleChart.d.ts +2 -2
  18. package/dist/components/Charts/ComboChart.d.ts +2 -2
  19. package/dist/components/Charts/DoughnutChart.d.ts +2 -2
  20. package/dist/components/Charts/FunnelChart.d.ts +2 -2
  21. package/dist/components/Charts/GaugeChart.d.ts +2 -2
  22. package/dist/components/Charts/Histogram.d.ts +2 -2
  23. package/dist/components/Charts/LineChart.d.ts +1 -1
  24. package/dist/components/Charts/PieChart.d.ts +2 -2
  25. package/dist/components/Charts/RowChart.d.ts +2 -2
  26. package/dist/components/Charts/SankeyChart.d.ts +2 -2
  27. package/dist/components/Charts/ScatterChart.d.ts +2 -2
  28. package/dist/components/Charts/SingleValueChart/index.d.ts +2 -2
  29. package/dist/components/Charts/StackedBarChart.d.ts +2 -2
  30. package/dist/components/Charts/SteppedAreaChart.d.ts +2 -2
  31. package/dist/components/Charts/Table/TableChart.d.ts +1 -1
  32. package/dist/components/Charts/TimeSeriesChart.d.ts +2 -2
  33. package/dist/components/Charts/WaterfallChart.d.ts +2 -2
  34. package/dist/components/DataType/index.d.ts +2 -2
  35. package/dist/components/DrillBreadCrumb/index.d.ts +2 -2
  36. package/dist/components/Error/index.d.ts +2 -2
  37. package/dist/components/ErrorFallback/index.d.ts +2 -2
  38. package/dist/components/FilterDropDown/index.d.ts +1 -1
  39. package/dist/components/FloatingDropDown/index.d.ts +1 -1
  40. package/dist/components/FullScreenChart/index.d.ts +2 -2
  41. package/dist/components/GlobalFilters/AddFilter.d.ts +1 -1
  42. package/dist/components/GlobalFilters/AppliedFilter.d.ts +1 -1
  43. package/dist/components/GlobalFilters/NumberFilterField.d.ts +2 -2
  44. package/dist/components/InputField/index.d.ts +1 -1
  45. package/dist/components/InternetFailure/index.d.ts +2 -2
  46. package/dist/components/Loader/index.d.ts +2 -2
  47. package/dist/components/MetricChart/ChartImageDownloadButton.d.ts +1 -1
  48. package/dist/components/MetricChart/MetricChart.d.ts +1 -1
  49. package/dist/components/MetricChart/PivotCsvDownloadButton.d.ts +12 -0
  50. package/dist/components/MetricCreation/MetricCreation.d.ts +2 -2
  51. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +2 -2
  52. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +2 -2
  53. package/dist/components/MetricCreation/components/Dataset/index.d.ts +2 -2
  54. package/dist/components/MetricCreation/components/Header/index.d.ts +2 -2
  55. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +2 -2
  56. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +1 -1
  57. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +2 -2
  58. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +1 -1
  59. package/dist/components/MetricFilterDropDown/index.d.ts +2 -2
  60. package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +2 -2
  61. package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +2 -2
  62. package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +2 -2
  63. package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +3 -1
  64. package/dist/components/MetricList/components/FullScreenView/index.d.ts +2 -2
  65. package/dist/components/MetricList/components/LayoutAlert/index.d.ts +2 -2
  66. package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +2 -2
  67. package/dist/components/MetricList/components/MetricCards/NoDataLoading.d.ts +1 -1
  68. package/dist/components/MetricList/components/TableViewModal/index.d.ts +2 -2
  69. package/dist/components/MetricTable/index.d.ts +2 -2
  70. package/dist/components/PivotTable/index.d.ts +2 -2
  71. package/dist/components/ScheduleEmail/ScheduleEmailForm/index.d.ts +2 -2
  72. package/dist/components/ScheduleEmail/index.d.ts +2 -2
  73. package/dist/components/SearchTab/index.d.ts +2 -2
  74. package/dist/components/Select/index.d.ts +5 -5
  75. package/dist/components/Tab/index.d.ts +1 -1
  76. package/dist/components/Table/DebouncedInput.d.ts +1 -1
  77. package/dist/components/Table/index.d.ts +1 -1
  78. package/dist/components/TagInputField/index.d.ts +2 -2
  79. package/dist/components/Text/index.d.ts +1 -1
  80. package/dist/components/TextAreaField/index.d.ts +2 -2
  81. package/dist/components/TimeGrainField/index.d.ts +1 -1
  82. package/dist/components/TimeSeriesSettings/index.d.ts +2 -2
  83. package/dist/containers/Dashboard/Dashboard.d.ts +2 -2
  84. package/dist/containers/Dashboard/DashboardProvider.d.ts +2 -2
  85. package/dist/containers/Dashboard/EmbededDashboard.d.ts +1 -1
  86. package/dist/containers/Metric/EmbeddedMetric.d.ts +1 -1
  87. package/dist/containers/Metric/index.d.ts +1 -1
  88. package/dist/containers/PluginProvider.d.ts +2 -2
  89. package/dist/hooks/useDownloadRawCsv.d.ts +1 -1
  90. package/dist/hooks/useScheduleEmail.d.ts +1 -1
  91. package/dist/index.es.js +31060 -30252
  92. package/dist/index.umd.js +199 -189
  93. package/dist/style.css +1 -1
  94. package/dist/utils/pivotDataTransform.d.ts +7 -0
  95. package/dist/webcomponents.es.js +30799 -30025
  96. package/dist/webcomponents.umd.js +197 -187
  97. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ExternalMetrics } from '@/utils/generated/graphql';
3
3
  import { ClientType } from '@/types/app';
4
4
  import { FilterFieldType } from '@/components/FilterField';
@@ -22,4 +22,4 @@ export type MetricCardProps = {
22
22
  chartRendererType?: 'svg' | 'canvas';
23
23
  isDisableMorePopup?: boolean;
24
24
  };
25
- export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, }: MetricCardProps) => JSX.Element;
25
+ export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, }: MetricCardProps) => React.JSX.Element;
@@ -6,5 +6,5 @@ type NoDataLoadingProps = {
6
6
  dataDb: Record<string, any>;
7
7
  chartType?: string;
8
8
  };
9
- export declare const NoDataLoading: React.MemoExoticComponent<({ isDataLength, isLoading, isSingleValue, dataDb, chartType, }: NoDataLoadingProps) => JSX.Element>;
9
+ export declare const NoDataLoading: React.MemoExoticComponent<({ isDataLength, isLoading, isSingleValue, dataDb, chartType, }: NoDataLoadingProps) => React.JSX.Element>;
10
10
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  metricData?: Record<string, any>[];
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
6
6
  title: string;
7
7
  };
8
- export declare const TableViewModal: ({ metricData, isOpen, onClose, title, }: Props) => JSX.Element;
8
+ export declare const TableViewModal: ({ metricData, isOpen, onClose, title, }: Props) => React.JSX.Element;
9
9
  export default TableViewModal;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  data: any;
4
4
  isError: boolean;
5
5
  };
6
- export declare const MetricTable: ({ data, isError }: Props) => JSX.Element;
6
+ export declare const MetricTable: ({ data, isError }: Props) => React.JSX.Element;
7
7
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PivotSettingsType } from '@/types';
3
3
  declare const PivotTable: ({ data, pivotTableSettings, onChartReady, }: {
4
4
  data: any[];
5
5
  pivotTableSettings?: PivotSettingsType | undefined;
6
6
  onChartReady?: (() => void) | undefined;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default PivotTable;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  onCancel: () => void;
4
4
  };
5
- declare const ScheduleEmailForm: ({ onCancel }: Props) => JSX.Element;
5
+ declare const ScheduleEmailForm: ({ onCancel }: Props) => React.JSX.Element;
6
6
  export default ScheduleEmailForm;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ScheduleEmail: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const ScheduleEmail: () => React.JSX.Element;
3
3
  export default ScheduleEmail;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const SearchTab: ({ setSearchKeyword, className }: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const SearchTab: ({ setSearchKeyword, className }: any) => React.JSX.Element;
@@ -25,11 +25,11 @@ type HookSelectInput = Omit<SelectInput, 'value'> & {
25
25
  control: Control;
26
26
  name: string;
27
27
  };
28
- export declare const OldSelect: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => JSX.Element;
29
- export declare const Select: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => JSX.Element;
30
- export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => JSX.Element;
31
- export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
32
- export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
28
+ export declare const OldSelect: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => React.JSX.Element;
29
+ export declare const Select: ({ name, label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, icon, labelVariant, }: SelectInput) => React.JSX.Element;
30
+ export declare const HookSelect: ({ control, name, ...rest }: HookSelectInput) => React.JSX.Element;
31
+ export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => React.JSX.Element;
32
+ export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => React.JSX.Element;
33
33
  type MultiSelectProps = {
34
34
  options: Option[];
35
35
  defaultValue?: Option['value'][];
@@ -6,5 +6,5 @@ type TabProps = {
6
6
  className?: string;
7
7
  tabText?: string;
8
8
  };
9
- export declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, }: TabProps) => JSX.Element;
9
+ export declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, }: TabProps) => React.JSX.Element;
10
10
  export {};
@@ -3,4 +3,4 @@ export declare const DebouncedInput: ({ value: initialValue, onChange, debounce,
3
3
  value: string | number;
4
4
  onChange: (value: string | number) => void;
5
5
  debounce?: number | undefined;
6
- } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">) => JSX.Element;
6
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange">) => React.JSX.Element;
@@ -21,5 +21,5 @@ type Props = {
21
21
  };
22
22
  setChartSettings?: (value: React.SetStateAction<ChartSettingsType>) => void;
23
23
  };
24
- export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, }: Props) => JSX.Element;
24
+ export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, onChangePage, isExternalChart, isEnableNextBtn, isEnablePrevBtn, paginationInfo, setChartSettings, }: Props) => React.JSX.Element;
25
25
  export {};
@@ -26,6 +26,6 @@ type Props = {
26
26
  onChangeTags?: (tags: string[]) => void;
27
27
  defaultTagValue?: string[];
28
28
  };
29
- export declare const TagInputField: ({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => JSX.Element;
30
- declare const _default: React.MemoExoticComponent<({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => JSX.Element>;
29
+ export declare const TagInputField: ({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => React.JSX.Element;
30
+ declare const _default: React.MemoExoticComponent<({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => React.JSX.Element>;
31
31
  export default _default;
@@ -7,5 +7,5 @@ interface Props {
7
7
  styleClass: 'primary' | 'secondary' | 'tertiary' | 'font-14' | 'font-14a' | 'font-14b' | 'font-14c' | 'font-14d' | 'font-15' | 'font-18' | 'font-20' | 'font-34' | 'custom';
8
8
  style?: React.CSSProperties;
9
9
  }
10
- export declare const Text: ({ className, variant, styleClass, children, onClick, style, }: Props) => JSX.Element;
10
+ export declare const Text: ({ className, variant, styleClass, children, onClick, style, }: Props) => React.JSX.Element;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { UseFormRegisterReturn } from 'react-hook-form';
3
3
  interface Props {
4
4
  id: string;
@@ -15,5 +15,5 @@ interface Props {
15
15
  onBlur?: any;
16
16
  className?: string;
17
17
  }
18
- export declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, }: Props) => JSX.Element;
18
+ export declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, }: Props) => React.JSX.Element;
19
19
  export {};
@@ -12,5 +12,5 @@ type Props = {
12
12
  labelVariant?: 'floating' | 'static';
13
13
  label?: string;
14
14
  };
15
- export declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, containerClass, onChange, labelVariant, label, }: Props) => JSX.Element;
15
+ export declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, containerClass, onChange, labelVariant, label, }: Props) => React.JSX.Element;
16
16
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TimeSeriesSettingsProps } from '@/types';
3
- declare const TimeSeriesSettings: ({ onChange, settings: { groupBySettings, seriesType }, yAxisList, }: TimeSeriesSettingsProps) => JSX.Element;
3
+ declare const TimeSeriesSettings: ({ onChange, settings: { groupBySettings, seriesType }, yAxisList, }: TimeSeriesSettingsProps) => React.JSX.Element;
4
4
  export default TimeSeriesSettings;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  import { ThemeType } from '@/utils/theme';
3
3
  /**
4
4
  * token - The client based guest token (required).
@@ -30,4 +30,4 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
30
30
  * @prop {object} options (optional) - Additional options like access permissions e.g. metric creation, updation, archiving and layout customization.
31
31
  * @prop {object} theme (optional) - A theme object to customize the theme.
32
32
  */
33
- export declare const Dashboard: ({ token, options, theme, dashboardId, }: DashboardProps) => JSX.Element;
33
+ export declare const Dashboard: ({ token, options, theme, dashboardId, }: DashboardProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  type DashboardProviderProps = PropsWithChildren & {
3
3
  token: string;
4
4
  dashboardId?: string;
5
5
  };
6
- declare const DashboardProvider: ({ token, dashboardId, children, }: DashboardProviderProps) => JSX.Element;
6
+ declare const DashboardProvider: ({ token, dashboardId, children, }: DashboardProviderProps) => React.JSX.Element;
7
7
  export default DashboardProvider;
@@ -10,4 +10,4 @@ export interface EmbeddedDashboardProps {
10
10
  };
11
11
  theme?: ThemeType;
12
12
  }
13
- export declare const EmbeddedDashboard: React.MemoExoticComponent<({ options, theme }: EmbeddedDashboardProps) => JSX.Element>;
13
+ export declare const EmbeddedDashboard: React.MemoExoticComponent<({ options, theme }: EmbeddedDashboardProps) => React.JSX.Element>;
@@ -7,4 +7,4 @@ export interface EmbeddedMetricProps {
7
7
  variant?: 'card' | 'fullscreen';
8
8
  onMinimize?: () => void;
9
9
  }
10
- export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, }: EmbeddedMetricProps) => JSX.Element>;
10
+ export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, }: EmbeddedMetricProps) => React.JSX.Element>;
@@ -37,4 +37,4 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
37
37
  * @prop {object} style (optional) - The usual css style prop to provide inline styles.
38
38
  * @prop {object} theme (optional) - Theme config object to apply to the UI.
39
39
  */
40
- export declare const Metric: React.MemoExoticComponent<({ theme, width, height, style, className, ...metricProps }: MetricProps) => JSX.Element>;
40
+ export declare const Metric: React.MemoExoticComponent<({ theme, width, height, style, className, ...metricProps }: MetricProps) => React.JSX.Element>;
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { ThemeType } from '@/utils';
3
3
  type PluginProviderProps = PropsWithChildren & {
4
4
  theme?: ThemeType;
5
5
  };
6
- export declare const PluginProvider: ({ children, theme }: PluginProviderProps) => JSX.Element;
6
+ export declare const PluginProvider: ({ children, theme }: PluginProviderProps) => React.JSX.Element;
7
7
  export {};
@@ -48,7 +48,7 @@ declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, filterValue
48
48
  tenancyType?: string | undefined;
49
49
  }) => void;
50
50
  setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
51
- control: import("react-hook-form").Control<FieldValues, object>;
51
+ control: import("react-hook-form").Control<FieldValues, any>;
52
52
  onSumbitSendCsvUrl: ({ values, clientName, tenancyType, }: {
53
53
  values: FieldValues;
54
54
  clientName?: string | undefined;
@@ -7,7 +7,7 @@ declare const useScheduleEmail: ({ onCancel }: Params) => {
7
7
  register: import("react-hook-form").UseFormRegister<FieldValues>;
8
8
  handleSubmit: import("react-hook-form").UseFormHandleSubmit<FieldValues>;
9
9
  watch: import("react-hook-form").UseFormWatch<FieldValues>;
10
- control: import("react-hook-form").Control<FieldValues, object>;
10
+ control: import("react-hook-form").Control<FieldValues, any>;
11
11
  setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
12
12
  getValues: import("react-hook-form").UseFormGetValues<FieldValues>;
13
13
  reset: import("react-hook-form").UseFormReset<FieldValues>;