@sisense/sdk-ui 1.9.0 → 1.10.0

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 (116) hide show
  1. package/dist/ai/ai-context-provider.d.ts +1 -4
  2. package/dist/ai/ai-disclaimer.d.ts +1 -2
  3. package/dist/ai/api/chat-api-provider.d.ts +1 -1
  4. package/dist/ai/buttons/insights-button.d.ts +3 -0
  5. package/dist/ai/buttons/thumbs-down-button.d.ts +1 -2
  6. package/dist/ai/buttons/thumbs-up-button.d.ts +1 -2
  7. package/dist/ai/chat-box.d.ts +1 -2
  8. package/dist/ai/chat-config.d.ts +1 -1
  9. package/dist/ai/chat-dropup.d.ts +1 -2
  10. package/dist/ai/chat-frame.d.ts +1 -1
  11. package/dist/ai/chat-home.d.ts +1 -2
  12. package/dist/ai/chat-input.d.ts +1 -2
  13. package/dist/ai/chat-router.d.ts +1 -2
  14. package/dist/ai/common/collapsible.d.ts +1 -2
  15. package/dist/ai/common/dropup-section.d.ts +1 -2
  16. package/dist/ai/common/error-container.d.ts +1 -2
  17. package/dist/ai/common/icon-button.d.ts +1 -1
  18. package/dist/ai/common/tooltip.d.ts +1 -2
  19. package/dist/ai/data-topics/data-topic-item.d.ts +1 -2
  20. package/dist/ai/data-topics/data-topic-list.d.ts +1 -2
  21. package/dist/ai/icons/arrow-left-icon.d.ts +1 -2
  22. package/dist/ai/icons/clear-chat-icon.d.ts +1 -2
  23. package/dist/ai/icons/close-dialog-icon.d.ts +1 -2
  24. package/dist/ai/icons/expand-icon.d.ts +1 -2
  25. package/dist/ai/icons/info-icon.d.ts +1 -2
  26. package/dist/ai/icons/light-bulb-icon.d.ts +1 -2
  27. package/dist/ai/icons/loading-dots-icon.d.ts +1 -2
  28. package/dist/ai/icons/message-icon.d.ts +1 -2
  29. package/dist/ai/icons/refresh-icon.d.ts +1 -2
  30. package/dist/ai/icons/sisense-logo.d.ts +1 -2
  31. package/dist/ai/icons/three-dots-icon.d.ts +1 -2
  32. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +1 -2
  33. package/dist/ai/icons/thumbs-down-icon.d.ts +1 -2
  34. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +1 -2
  35. package/dist/ai/icons/thumbs-up-icon.d.ts +1 -2
  36. package/dist/ai/index.d.ts +3 -1
  37. package/dist/ai/messages/chart-message-toolbar.d.ts +1 -2
  38. package/dist/ai/messages/chart-message.d.ts +1 -2
  39. package/dist/ai/messages/chat-welcome-message.d.ts +1 -2
  40. package/dist/ai/messages/clear-history-message.d.ts +1 -2
  41. package/dist/ai/messages/clear-history-success-message.d.ts +1 -2
  42. package/dist/ai/messages/clickable-message.d.ts +1 -1
  43. package/dist/ai/messages/feedback-wrapper.d.ts +1 -1
  44. package/dist/ai/messages/get-widget-options.d.ts +14 -0
  45. package/dist/ai/messages/insights-message.d.ts +1 -7
  46. package/dist/ai/messages/message-list-resolver.d.ts +1 -2
  47. package/dist/ai/messages/message-resolver.d.ts +1 -1
  48. package/dist/ai/messages/nlq-message-group.d.ts +1 -2
  49. package/dist/ai/nav-back-button.d.ts +1 -2
  50. package/dist/ai/suggestions/suggestion-item.d.ts +1 -2
  51. package/dist/ai/suggestions/suggestion-list-skeleton.d.ts +1 -2
  52. package/dist/ai/suggestions/suggestion-list.d.ts +1 -2
  53. package/dist/ai/suggestions/suggestions-with-intro.d.ts +1 -2
  54. package/dist/ai/{translators/use-get-data-source.d.ts → use-get-data-source-fields.d.ts} +2 -2
  55. package/dist/ai.js +1276 -6688
  56. package/dist/alert-box/alert-box.d.ts +1 -2
  57. package/dist/chart/helpers/use-translated-data-options.d.ts +2 -2
  58. package/dist/chart-data-options/get-translated-data-options.d.ts +2 -2
  59. package/dist/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +4 -2
  60. package/dist/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +7 -4
  61. package/dist/chart-options-processor/translations/design-options.d.ts +9 -7
  62. package/dist/chart-options-processor/translations/types.d.ts +7 -6
  63. package/dist/charts/map-charts/areamap/areamap.d.ts +3 -6
  64. package/dist/charts/map-charts/scattermap/scattermap.d.ts +5 -9
  65. package/dist/charts/table/data-table-wrapper.d.ts +1 -2
  66. package/dist/charts/table/header/field-type-icon.d.ts +1 -2
  67. package/dist/charts/table/pure-table.d.ts +1 -2
  68. package/dist/common/components/loading-dots.d.ts +1 -2
  69. package/dist/common/components/loading-indicator.d.ts +1 -2
  70. package/dist/common/components/loading-overlay.d.ts +1 -1
  71. package/dist/common/components/loading-spinner.d.ts +1 -2
  72. package/dist/common/icons/exclamation-mark-icon.d.ts +1 -2
  73. package/dist/common/icons/loading-icon.d.ts +1 -2
  74. package/dist/dashboard-widget/utils.d.ts +7 -0
  75. package/dist/{debounce-Cc9bQD5m.js → debounce-2yQ2123W.js} +64211 -64112
  76. package/dist/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +1 -1
  77. package/dist/dynamic-size-container/dynamic-size-container.d.ts +1 -1
  78. package/dist/error-boundary/error-boundary-box.d.ts +1 -2
  79. package/dist/error-boundary/error-boundary.d.ts +1 -1
  80. package/dist/filters/components/common/switch.d.ts +2 -1
  81. package/dist/filters/components/common/triangle-indicator.d.ts +1 -2
  82. package/dist/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +1 -2
  83. package/dist/filters/components/date-filter/date-filter/calendar-header.d.ts +1 -2
  84. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -2
  85. package/dist/filters/components/date-filter/date-filter/quick-date-selection-buttons.d.ts +1 -2
  86. package/dist/filters/components/icons/arrow-down-icon.d.ts +1 -1
  87. package/dist/filters/components/icons/arrow-right-icon.d.ts +1 -1
  88. package/dist/filters/components/icons/date-icon.d.ts +1 -1
  89. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +1 -1
  90. package/dist/filters/components/icons/menu-icon.d.ts +1 -1
  91. package/dist/filters/components/icons/pencil-icon.d.ts +1 -1
  92. package/dist/filters/components/icons/plus-icon.d.ts +1 -1
  93. package/dist/filters/components/icons/search-icon.d.ts +1 -1
  94. package/dist/filters/components/icons/trash-icon.d.ts +1 -1
  95. package/dist/highcharts-memorized.d.ts +1 -1
  96. package/dist/index.d.ts +1 -0
  97. package/dist/index.js +23613 -34464
  98. package/dist/indicator-canvas.d.ts +4 -9
  99. package/dist/no-results-overlay/no-results-overlay.d.ts +1 -2
  100. package/dist/props.d.ts +1 -1
  101. package/dist/sisense-chart/sisense-chart.d.ts +4 -6
  102. package/dist/translation/i18n-provider.d.ts +1 -1
  103. package/dist/widgets/common/context-menu.d.ts +1 -2
  104. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  105. package/dist/widgets/common/widget-header-info-button.d.ts +1 -2
  106. package/dist/widgets/drilldown-widget.d.ts +1 -2
  107. package/package.json +16 -18
  108. package/dist/ai/translators/code-templates.d.ts +0 -11
  109. package/dist/ai/translators/generate-code.d.ts +0 -9
  110. package/dist/ai/translators/index.d.ts +0 -4
  111. package/dist/ai/translators/model-translator.d.ts +0 -51
  112. package/dist/ai/translators/query-translator.d.ts +0 -137
  113. package/dist/ai/translators/translate-filters-to-code.d.ts +0 -2
  114. package/dist/ai/translators/translate-props-to-code.d.ts +0 -8
  115. package/dist/ai/translators/types.d.ts +0 -105
  116. package/dist/ai/translators/utils.d.ts +0 -12
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare const TrackingContextProvider: ({ children }: {
3
3
  children: ReactNode;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const useTrackComponentInit: <P extends {}>(componentName: string, props: P) => void;
@@ -29,4 +29,4 @@ export type DynamicSizeContainerProps = {
29
29
  * @param {DynamicSizeContainerProps} props - DynamicSizeContainer properties.
30
30
  * @returns {JSX.Element} The DynamicSizeContainer component.
31
31
  */
32
- export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, useContentSize, onSizeChange, }: DynamicSizeContainerProps) => JSX.Element;
32
+ export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, useContentSize, onSizeChange, }: DynamicSizeContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AbstractTranslatableError } from '@sisense/sdk-common';
3
2
  /**
4
3
  * This component is used to display an error message when a component fails to render.
@@ -10,5 +9,5 @@ import { AbstractTranslatableError } from '@sisense/sdk-common';
10
9
  */
11
10
  declare const ErrorBoundaryBox: ({ error, }: {
12
11
  error: Error | AbstractTranslatableError | string;
13
- }) => JSX.Element;
12
+ }) => import("react/jsx-runtime").JSX.Element;
14
13
  export default ErrorBoundaryBox;
@@ -30,6 +30,6 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
30
30
  };
31
31
  componentDidCatch(error: Error): void;
32
32
  componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
33
- render(): string | number | boolean | JSX.Element | import("react").ReactFragment | null | undefined;
33
+ render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
34
34
  }
35
35
  export {};
@@ -1,3 +1,4 @@
1
+ import { Themable } from '../../../theme-provider/types';
1
2
  export declare const SisenseSwitchButton: import("@emotion/styled").StyledComponent<import("@mui/material/Switch").SwitchProps & {
2
3
  theme?: import("@emotion/react").Theme | undefined;
3
- }, {}, {}>;
4
+ } & Themable, {}, {}>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const TriangleIndicator: () => JSX.Element;
1
+ export declare const TriangleIndicator: () => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import dayjs from 'dayjs';
3
2
  export type SelectorMode = 'fromSelector' | 'toSelector' | 'pointSelector';
4
3
  export type DateRangeLimits = {
@@ -18,5 +17,5 @@ export type CalendarDateSelectorProps = {
18
17
  onDateChanged?: (selectedDate: dayjs.Dayjs) => void;
19
18
  selectedDate?: dayjs.Dayjs;
20
19
  };
21
- export declare function CalendarDateSelector({ selectedDateRange, limit, onDateRangeChanged, selectorMode, onSelectorModeChanged, onDateChanged, selectedDate, }: CalendarDateSelectorProps): JSX.Element;
20
+ export declare function CalendarDateSelector({ selectedDateRange, limit, onDateRangeChanged, selectorMode, onSelectorModeChanged, onDateChanged, selectedDate, }: CalendarDateSelectorProps): import("react/jsx-runtime").JSX.Element;
22
21
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type HeaderProps = {
3
2
  date: Date;
4
3
  changeYear: (value: number) => void;
@@ -8,5 +7,5 @@ type HeaderProps = {
8
7
  prevMonthButtonDisabled: boolean;
9
8
  nextMonthButtonDisabled: boolean;
10
9
  };
11
- export declare const CalendarHeader: (props: HeaderProps) => JSX.Element;
10
+ export declare const CalendarHeader: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateFilterRange } from '../types';
3
2
  export type { DateFilterRange };
4
3
  /**
@@ -62,4 +61,4 @@ export type DateRangeFilterProps = {
62
61
  * @returns Date Filter component
63
62
  * @internal
64
63
  */
65
- export declare function DateFilter(props: DateRangeFilterProps): JSX.Element;
64
+ export declare function DateFilter(props: DateRangeFilterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import dayjs from 'dayjs';
3
2
  export type ButtonId = 'earliest' | 'today' | 'latest';
4
3
  type QuickDateSelectionButtonsProps = {
@@ -9,5 +8,5 @@ type QuickDateSelectionButtonsProps = {
9
8
  minDate?: dayjs.Dayjs;
10
9
  };
11
10
  };
12
- export declare const QuickDateSelectionButtons: (props: QuickDateSelectionButtonsProps) => JSX.Element;
11
+ export declare const QuickDateSelectionButtons: (props: QuickDateSelectionButtonsProps) => import("react/jsx-runtime").JSX.Element;
13
12
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const ArrowDownIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => JSX.Element;
2
+ export declare const ArrowDownIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const ArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => JSX.Element;
2
+ export declare const ArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ import type { SVGProps } from 'react';
2
2
  export type DateIconProps = Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'> & {
3
3
  iconColor?: string;
4
4
  };
5
- export declare const DateIcon: (props: DateIconProps) => JSX.Element;
5
+ export declare const DateIcon: (props: DateIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const DoubleArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => JSX.Element;
2
+ export declare const DoubleArrowRightIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const MenuIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => JSX.Element;
2
+ export declare const MenuIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const PencilIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'onClick'>) => JSX.Element;
2
+ export declare const PencilIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'onClick'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const PlusIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => JSX.Element;
2
+ export declare const PlusIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const SearchIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => JSX.Element;
2
+ export declare const SearchIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const TrashIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => JSX.Element;
2
+ export declare const TrashIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'>) => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,5 @@ import { HighchartsOptionsInternal } from './chart-options-processor/chart-optio
3
3
  type HighchartsReactMemoizedProps = {
4
4
  options: HighchartsOptionsInternal;
5
5
  };
6
- export declare const HighchartsReactMemoized: import("react").MemoExoticComponent<({ options }: HighchartsReactMemoizedProps) => JSX.Element>;
6
+ export declare const HighchartsReactMemoized: import("react").MemoExoticComponent<({ options }: HighchartsReactMemoizedProps) => import("react/jsx-runtime").JSX.Element>;
7
7
  export {};
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './chart-data-options/types';
3
3
  export { Chart } from './chart';
4
4
  export { ThemeProvider } from './theme-provider';
5
5
  export { DashboardWidget } from './dashboard-widget/dashboard-widget';
6
+ export { getSortType } from './dashboard-widget/utils';
6
7
  export { type WidgetType, type CartesianWidgetType, type CategoricalWidgetType, type TabularWidgetType, } from './dashboard-widget/types';
7
8
  export * from './query-execution';
8
9
  export { executeQuery } from './query/execute-query';