@databrainhq/plugin 0.14.65 → 0.14.67

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 (37) hide show
  1. package/dist/components/Accordion/index.d.ts +5 -0
  2. package/dist/components/Alert/index.d.ts +3 -1
  3. package/dist/components/AutoCompleteDropdown/index.d.ts +8 -3
  4. package/dist/components/Badge/index.d.ts +2 -1
  5. package/dist/components/Button/index.d.ts +2 -1
  6. package/dist/components/ChartPopup/index.d.ts +4 -2
  7. package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +4 -2
  8. package/dist/components/DataType/index.d.ts +3 -1
  9. package/dist/components/FloatingDropDown/index.d.ts +4 -1
  10. package/dist/components/Icons/icons.d.ts +1 -1
  11. package/dist/components/InputField/index.d.ts +1 -1
  12. package/dist/components/List/index.d.ts +8 -2
  13. package/dist/components/Modal/Modal.d.ts +2 -0
  14. package/dist/components/SearchDropdown/index.d.ts +15 -0
  15. package/dist/components/Tab/index.d.ts +5 -1
  16. package/dist/components/Table/Filter.d.ts +7 -0
  17. package/dist/components/TagInputField/index.d.ts +4 -3
  18. package/dist/components/Text/index.d.ts +2 -2
  19. package/dist/components/TextAreaField/index.d.ts +2 -1
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/consts/app.d.ts +3 -1
  22. package/dist/consts/metricOptions.d.ts +36 -1
  23. package/dist/containers/index.d.ts +3 -0
  24. package/dist/helpers/autoCompleteHelpers.d.ts +46 -0
  25. package/dist/helpers/createMetric.d.ts +3 -1
  26. package/dist/helpers/getNextScheduledTime.d.ts +1 -1
  27. package/dist/helpers/index.d.ts +1 -0
  28. package/dist/helpers/timeseriesOption.d.ts +13 -10
  29. package/dist/hooks/index.d.ts +1 -0
  30. package/dist/hooks/useAutoCompleteOptions.d.ts +4 -0
  31. package/dist/index.d.ts +8 -0
  32. package/dist/types/app.d.ts +15 -2
  33. package/dist/types/metricCreate.d.ts +76 -1
  34. package/dist/utils/fetcher.d.ts +1 -0
  35. package/dist/webcomponents.es.js +50166 -47771
  36. package/dist/webcomponents.umd.js +289 -217
  37. package/package.json +1 -1
@@ -13,6 +13,7 @@ type AccordionV2Props = {
13
13
  footer?: React.ReactNode;
14
14
  isEnableEditBtn?: boolean;
15
15
  editBtnOnClick?: () => void;
16
+ isNoPadding?: boolean;
16
17
  } & AccordionProps;
17
18
  export declare const AccordionV2: React.FC<AccordionV2Props>;
18
19
  type AccordionV3Props = {
@@ -25,4 +26,8 @@ type AccordionV3Props = {
25
26
  setIsOpen?: React.Dispatch<React.SetStateAction<boolean>>;
26
27
  };
27
28
  export declare const AccordionV3: ({ content, footer, header, isOpen, width, setIsOpen, headerButton, }: AccordionV3Props) => React.JSX.Element;
29
+ type AccordionV4Props = {
30
+ headerIcon?: React.ReactNode;
31
+ } & AccordionV3Props;
32
+ export declare const AccordionV4: ({ content, footer, header, headerIcon, isOpen, width, setIsOpen, headerButton, }: AccordionV4Props) => React.JSX.Element;
28
33
  export {};
@@ -4,5 +4,7 @@ export type AlertProps = {
4
4
  children?: React.ReactNode;
5
5
  variant?: 'primary' | 'warning' | 'error' | 'success' | 'info';
6
6
  hideInfoIcon?: boolean;
7
+ className?: string;
8
+ childrenClassName?: string;
7
9
  };
8
- export declare const Alert: ({ variant, text, children, hideInfoIcon, }: AlertProps) => React.JSX.Element;
10
+ export declare const Alert: ({ variant, text, children, hideInfoIcon, className, childrenClassName, }: AlertProps) => React.JSX.Element;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { Ui } from '@databrainhq/plugin';
2
3
  import { FloatingDropDownOption, OnChangeAliasParams, OnChangeHelperFunctionParams, SelectedColumn } from '@/types';
3
4
  export type AutoCompleteDropdownProps = {
4
5
  setSelectedOptions: React.Dispatch<React.SetStateAction<SelectedColumn[]>>;
6
+ onSubmitSearch?: () => void;
5
7
  selectedOption: SelectedColumn[];
6
8
  options: SelectedColumn[];
7
9
  label?: string;
@@ -10,7 +12,10 @@ export type AutoCompleteDropdownProps = {
10
12
  functionOptions?: (col?: SelectedColumn | undefined, colDatatype?: string | undefined) => FloatingDropDownOption[];
11
13
  onChangeHelperFunction?: ({ column, helperFunction, functionConfiguration, type, }: OnChangeHelperFunctionParams) => void;
12
14
  onChangeAlias: ({ alias, column }: OnChangeAliasParams) => void;
13
- isRef?: boolean;
14
- setRef?: React.Dispatch<React.SetStateAction<boolean>>;
15
+ position?: 'top' | 'bottom';
16
+ setKeyWords?: React.Dispatch<React.SetStateAction<string[]>>;
17
+ isSaveKeyword?: boolean;
18
+ setSaveKeyword?: React.Dispatch<React.SetStateAction<boolean>>;
19
+ setSearchQuestion?: React.Dispatch<React.SetStateAction<string>>;
15
20
  };
16
- export declare const AutoCompleteDropdown: ({ label, selectedOption, setSelectedOptions, options, isDisabled, placeholder, functionOptions, onChangeHelperFunction, onChangeAlias, isRef, setRef, }: AutoCompleteDropdownProps) => React.JSX.Element;
21
+ export declare const AutoCompleteDropdown: ({ label, selectedOption, setSelectedOptions, options, isDisabled, placeholder, functionOptions, onChangeHelperFunction, onChangeAlias, position, setKeyWords, isSaveKeyword, setSaveKeyword, onSubmitSearch, setSearchQuestion, }: AutoCompleteDropdownProps) => React.JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
3
  label: string | number;
4
- varaint?: 'warning' | 'success' | 'danger' | 'primary' | 'secondary' | 'info';
4
+ varaint?: 'warning' | 'success' | 'danger' | 'primary' | 'secondary' | 'info' | 'xs';
5
5
  size?: 'xs' | 'sm' | 'md' | 'lg';
6
6
  onClick?: () => void;
7
+ indicator?: JSX.Element;
7
8
  };
8
9
  export declare const Badge: React.FC<Props>;
9
10
  export {};
@@ -5,7 +5,8 @@ interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  leftIcon?: JSX.Element;
6
6
  rightIcon?: JSX.Element;
7
7
  fitContainer?: boolean;
8
+ size?: 'small' | 'regular';
8
9
  }
9
10
  /** A basic button. Any props that are not explicitly called out below will be passed through to the native Button component. */
10
- export declare const Button: ({ isDisabled, type, children, variant, onClick, title, leftIcon, rightIcon, fitContainer, className, ...props }: Props) => React.JSX.Element;
11
+ export declare const Button: ({ isDisabled, type, children, variant, onClick, size, title, leftIcon, rightIcon, fitContainer, className, ...props }: Props) => React.JSX.Element;
11
12
  export {};
@@ -14,8 +14,10 @@ export type ChartPopupProps = React.PropsWithChildren & {
14
14
  event: any;
15
15
  };
16
16
  isSingleValueChart: boolean;
17
+ isGaugeChart: boolean;
18
+ chartValue: any;
17
19
  position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center' | 'dynamic';
18
20
  };
19
- export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => React.JSX.Element;
20
- declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, }: ChartPopupProps) => React.JSX.Element>;
21
+ export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, chartValue, isGaugeChart, }: ChartPopupProps) => React.JSX.Element;
22
+ declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, clickBehaviourConfigs, elementRef, isSingleValueChart, chartValue, isGaugeChart, }: ChartPopupProps) => React.JSX.Element>;
21
23
  export default _default;
@@ -16,7 +16,9 @@ type Props = {
16
16
  }>>;
17
17
  comparisonLagProps?: ComparisonLagProps;
18
18
  setResetPallete?: React.Dispatch<React.SetStateAction<boolean>>;
19
- onChangeTimeseriesFormat: (value: FloatingDropDownOption) => void;
19
+ onChangeTimeseriesFormat?: (value: FloatingDropDownOption) => void;
20
+ isChatMode?: boolean;
21
+ onChange?: (chartSettings: ChartSettingsType) => void;
20
22
  };
21
- export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, onChangeTimeseriesFormat, }: Props) => React.JSX.Element;
23
+ export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, onChangeTimeseriesFormat, isChatMode, onChange, }: Props) => React.JSX.Element;
22
24
  export {};
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { IconSizes } from '@/types';
2
3
  type Props = {
3
4
  datatype: string;
4
5
  className?: string;
6
+ size?: IconSizes;
5
7
  };
6
- export declare const DataType: ({ datatype, className }: Props) => React.JSX.Element;
8
+ export declare const DataType: ({ datatype, className, size, }: Props) => React.JSX.Element;
7
9
  export {};
@@ -20,5 +20,8 @@ export type FloatingDropDownProps = {
20
20
  radius?: string;
21
21
  isFilter?: boolean;
22
22
  isClearEnabled?: boolean;
23
+ size?: 'sm' | 'md' | 'lg' | 'xl';
24
+ buttonHeight?: string;
23
25
  };
24
- export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
26
+ export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, buttonHeight, menuWidth, size, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;
27
+ export declare const FloatingDropDownWithSubValues: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, isFilter, disableAutoClose, isClearEnabled, }: FloatingDropDownProps) => React.JSX.Element;