@sisense/sdk-ui 1.31.0 → 1.32.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 (129) hide show
  1. package/dist/ai.cjs +22 -423
  2. package/dist/ai.js +1825 -1771
  3. package/dist/analytics-composer.cjs +54 -54
  4. package/dist/analytics-composer.js +531 -510
  5. package/dist/derive-chart-family-7Fxxf6Sy.cjs +758 -0
  6. package/dist/derive-chart-family-CVwj-7u5.js +100883 -0
  7. package/dist/index.cjs +27 -858
  8. package/dist/index.js +11422 -10499
  9. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -3
  10. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -0
  11. package/dist/packages/sdk-ui/src/ai/chatbot.d.ts +2 -2
  12. package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +13 -0
  13. package/dist/packages/sdk-ui/src/ai/index.d.ts +7 -4
  14. package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
  15. package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +12 -5
  16. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +8 -4
  17. package/dist/packages/sdk-ui/src/analytics-composer/common/constants.d.ts +1 -0
  18. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +11 -1
  19. package/dist/packages/sdk-ui/src/app/client-application.d.ts +15 -0
  20. package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +16 -0
  21. package/dist/packages/sdk-ui/src/chart/helpers/use-chart-data-preparation.d.ts +17 -0
  22. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +3 -1
  23. package/dist/packages/sdk-ui/src/chart/index.d.ts +1 -0
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/areamap-chart-builder.d.ts +2 -0
  25. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +4 -0
  26. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/geo-data-coloring-function.d.ts +2 -0
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data/index.d.ts +2 -0
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/data-options.d.ts +2 -0
  29. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/data-options/index.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/design-options.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/design-options/index.d.ts +1 -0
  32. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap-map.d.ts +2 -2
  33. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap-utils.d.ts +12 -0
  34. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/areamap.d.ts +5 -5
  35. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/feature-styles-dictionary.d.ts +2 -2
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/index.d.ts +1 -0
  37. package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/use-geo-json.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/types.d.ts +35 -0
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +2 -0
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/column-chart/column-chart-builder.d.ts +2 -0
  42. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data-options.d.ts +27 -0
  43. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +4 -0
  44. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/stackable/design-options.d.ts +5 -0
  45. package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +12 -0
  46. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +100 -0
  47. package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +3 -0
  48. package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -29
  49. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/prepare-design-options.d.ts +6 -3
  50. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +9 -8
  51. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -7
  52. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +2 -3
  53. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -1
  54. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +14 -0
  55. package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +18 -0
  56. package/dist/packages/sdk-ui/src/dashboard/hooks/use-widgets-layout.d.ts +14 -0
  57. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -2
  58. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +7 -2
  59. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  60. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/calendar-date-selector.d.ts +8 -7
  61. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-filter/date-range-calculator.d.ts +1 -1
  62. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +3 -0
  63. package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +3 -1
  65. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/search-input.d.ts +4 -0
  66. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/calendar-select.d.ts +27 -0
  68. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/index.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/types.d.ts +14 -0
  70. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +5 -0
  71. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/members-list-select.d.ts +11 -0
  72. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +2 -0
  73. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +18 -1
  74. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +3 -2
  75. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-datetime.d.ts +8 -0
  76. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-datetime-formatter.d.ts +2 -0
  77. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +1 -1
  78. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/common/granularities.d.ts +8 -0
  79. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-exclude-condition-form.d.ts +11 -0
  80. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/condition-forms/datetime-is-within-condition-form.d.ts +10 -0
  81. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/datetime-condition-section.d.ts +12 -0
  82. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-condition-section/index.d.ts +1 -0
  83. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-members-section.d.ts +12 -0
  84. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-range-section.d.ts +11 -0
  85. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/datetime-relative-section.d.ts +9 -0
  86. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +0 -5
  87. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +1 -6
  88. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +1 -3
  89. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/types.d.ts +4 -0
  90. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +12 -1
  91. package/dist/packages/sdk-ui/src/filters/components/icons/date-icon.d.ts +1 -1
  92. package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
  93. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +3 -2
  94. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  95. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -1
  96. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +2 -1
  97. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +9 -1
  98. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
  99. package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +8 -8
  100. package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +6 -6
  101. package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +3 -3
  102. package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -1
  103. package/dist/packages/sdk-ui/src/props.d.ts +35 -15
  104. package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -16
  105. package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +16 -1
  106. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +40 -0
  107. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +80 -0
  108. package/dist/packages/sdk-ui/src/types.d.ts +52 -1
  109. package/dist/packages/sdk-ui/src/utils/generate-attribute-name.d.ts +2 -0
  110. package/dist/packages/sdk-ui/src/utils/utility-types.d.ts +34 -0
  111. package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +1 -0
  112. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +16 -5
  113. package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +35 -0
  114. package/dist/use-common-filters-BanIIIUW.js +28409 -0
  115. package/dist/use-common-filters-BeKQ1bKU.cjs +271 -0
  116. package/dist/{widget-composer-BrQ6SrZ6.js → widget-composer-4bEKHitq.js} +240 -234
  117. package/dist/widget-composer-NDI4zssI.cjs +316 -0
  118. package/package.json +10 -9
  119. package/dist/derive-chart-family-D3iN--j2.js +0 -44430
  120. package/dist/derive-chart-family-Tt7cIUck.cjs +0 -271
  121. package/dist/packages/sdk-ui/src/ai/use-get-data-source-fields.d.ts +0 -12
  122. package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +0 -4
  123. package/dist/packages/sdk-ui/src/chart-data/data-coloring/geo-data-coloring-function.d.ts +0 -2
  124. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-areamap-options.d.ts +0 -3
  125. package/dist/packages/sdk-ui/src/charts/map-charts/areamap/areamap-utils.d.ts +0 -11
  126. package/dist/use-common-filters-CHBXz5rL.js +0 -83439
  127. package/dist/use-common-filters-Dd-gOMfB.cjs +0 -916
  128. package/dist/widget-composer-BHf4pbvI.cjs +0 -311
  129. /package/dist/packages/sdk-ui/src/{charts/map-charts/areamap → chart/restructured-charts/areamap-chart/renderer}/alternative-country-names-dictionary.d.ts +0 -0
@@ -1,6 +1,17 @@
1
- import { Filter, MembersFilter } from '@sisense/sdk-data';
1
+ import { TFunction } from '@sisense/sdk-common';
2
+ import { Filter, MembersFilter, DimensionalLevelAttribute, RelativeDateFilter } from '@sisense/sdk-data';
2
3
  export declare function isIncludeAllFilter(filter: Filter): filter is MembersFilter;
3
4
  export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
4
5
  export declare function isExcludeMembersFilter(filter: Filter): filter is MembersFilter;
5
6
  export declare function isConditionalFilter(filter: Filter): boolean;
6
7
  export declare function isNumericBetweenFilter(filter: Filter): boolean;
8
+ export declare function isRelativeDateFilterWithAnchor(filter: Filter): filter is RelativeDateFilter;
9
+ export declare function isRelativeDateFilterWithoutAnchor(filter: Filter): filter is RelativeDateFilter;
10
+ export declare function createLevelAttribute(baseLevelAttribute: DimensionalLevelAttribute, granularity: string, t: TFunction): DimensionalLevelAttribute;
11
+ /**
12
+ * Formats a given Date object into a string in the format "YYYY-MM-DDT00:00:00".
13
+ *
14
+ * @param {Date} date - The Date object to format.
15
+ * @returns {string} The formatted date string in "YYYY-MM-DDT00:00:00" format.
16
+ */
17
+ export declare function convertDateToMemberString(date: Date): string;
@@ -1,5 +1,5 @@
1
1
  import type { SVGProps } from 'react';
2
- export type DateIconProps = Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height'> & {
2
+ export type DateIconProps = Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'style'> & {
3
3
  iconColor?: string;
4
4
  };
5
5
  export declare const DateIcon: (props: DateIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { Attribute, DataSource, Filter } from '@sisense/sdk-data';
2
2
  import { FunctionComponent } from 'react';
3
3
  import { FilterTileDesignOptions } from '../filter-tile-container';
4
4
  /**
5
- * Props for {@link @sisense/sdk-ui!MemberFilterTile | `MemberFilterTile`}
5
+ * Props of the {@link MemberFilterTile} component.
6
6
  */
7
7
  export interface MemberFilterTileProps {
8
8
  /** Title for the filter tile, which is rendered into the header */
@@ -1,9 +1,10 @@
1
1
  import { DataSource, Filter } from '@sisense/sdk-data';
2
2
  import { Member, SelectedMember } from '../components/member-filter-tile';
3
+ import { HookEnableParam } from '../../common/hooks/types';
3
4
  /**
4
5
  * Params for {@link useGetFilterMembers}
5
6
  */
6
- export interface GetFilterMembersParams {
7
+ export interface GetFilterMembersParams extends HookEnableParam {
7
8
  /** Provided members filter */
8
9
  filter: Filter;
9
10
  /** Default data source to use if filter does not have one */
@@ -67,7 +68,7 @@ export type GetFilterMembersResult = GetFilterMembersError | GetFilterMembersSuc
67
68
  * @param params - Parameters of the query
68
69
  * @internal
69
70
  */
70
- export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, count, }: GetFilterMembersParams) => GetFilterMembersResult;
71
+ export declare const useGetFilterMembersInternal: ({ filter, defaultDataSource, parentFilters, count, enabled, }: GetFilterMembersParams) => GetFilterMembersResult;
71
72
  /**
72
73
  * Hook that fetches members of the provided filter
73
74
  *
@@ -86,6 +86,7 @@ export { useThemeContext } from './theme-provider';
86
86
  export { LoadingIndicator } from './common/components/loading-indicator';
87
87
  export { LoadingOverlay } from './common/components/loading-overlay';
88
88
  export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';
89
+ export { useGetDataSourceFields } from './common/hooks/fusion-endpoints/use-get-data-source-fields';
89
90
  export type { EmptyObject } from './utils/utility-types';
90
91
  export { translateColumnToAttribute } from './chart-data-options/utils';
91
92
  export { isSameAttribute } from './utils/filters';
@@ -1,5 +1,5 @@
1
1
  import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
2
- import { DashboardStyleOptions, WidgetModel } from '../../models';
2
+ import { DashboardStyleOptions, TabbersOptions, WidgetModel } from '../../models';
3
3
  import { type WidgetsOptions } from './types';
4
4
  import { DashboardLayoutOptions } from '../../dashboard';
5
5
  /**
@@ -49,4 +49,10 @@ export interface DashboardModel {
49
49
  * @internal
50
50
  */
51
51
  widgetsOptions: WidgetsOptions;
52
+ /**
53
+ * Tabber configurations for the dashboard.
54
+ *
55
+ * @internal
56
+ */
57
+ tabbersOptions?: TabbersOptions;
52
58
  }
@@ -1,11 +1,12 @@
1
1
  import { type LayoutDto, type FilterDto, type CascadingFilterDto, DashboardDto } from '../../api/types/dashboard-dto';
2
- import type { WidgetsPanelColumnLayout, WidgetsOptions } from './types';
2
+ import type { WidgetsPanelColumnLayout, WidgetsOptions, TabbersOptions } from './types';
3
3
  import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode } from '@sisense/sdk-data';
4
4
  import { WidgetDto } from '../../widget-by-id/types';
5
5
  import { RestApi } from '../../api/rest-api';
6
6
  export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
7
7
  export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
8
8
  export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
9
+ export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
9
10
  /**
10
11
  * Replace all shared formulas, which defined by id references, in the dashboard with their actual values.
11
12
  * @param dashboard - The dashboard DTO to replace shared formulas in
@@ -1,5 +1,5 @@
1
1
  import { CommonFiltersOptions } from '../../common-filters/types';
2
- import { ColorPaletteTheme } from '../../types';
2
+ import { ColorPaletteTheme, TabberConfig } from '../../types';
3
3
  export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../common-filters/types';
4
4
  /**
5
5
  * Column layout of dashboard widgets
@@ -38,6 +38,14 @@ export type WidgetId = string;
38
38
  export type WidgetsOptions = Record<WidgetId, {
39
39
  filtersOptions?: CommonFiltersOptions;
40
40
  }>;
41
+ /**
42
+ * Options for TabberWidetss in a dashboard
43
+ *
44
+ * This property actually moves responsibility on the layout management from the tabber widgets to the dashboard,
45
+ * storing all the tabbers configs in the single place
46
+ * @internal
47
+ */
48
+ export type TabbersOptions = Record<WidgetId, TabberConfig>;
41
49
  /**
42
50
  * Style options for the dashboard.
43
51
  */
@@ -5,4 +5,4 @@ export declare const createHeaderCellValueFormatter: (dataOptions: PivotTableDat
5
5
  * Formats the date time string.
6
6
  * If the date is invalid, it returns the original value.
7
7
  */
8
- export declare function formatDateTimeString(value: string, dateFormatter: DateFormatter, dateFormat?: string): string;
8
+ export declare function formatDatetimeString(value: string, dateFormatter: DateFormatter, dateFormat?: string): string;
@@ -1,15 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
- import { PluginComponent } from './types';
2
+ import { PluginComponent, PluginComponentProps } from './types';
3
3
  /** @internal */
4
- export type CustomPluginsProviderProps = {
5
- context: CustomPluginsContext;
4
+ export type CustomPluginsProviderProps<T = PluginComponentProps> = {
5
+ context: CustomPluginsContext<T>;
6
6
  error?: Error;
7
7
  };
8
8
  /** @internal */
9
- export type CustomPluginsContext = {
10
- pluginMap: Map<string, PluginComponent>;
11
- registerPlugin: (pluginType: string, plugin: PluginComponent) => void;
12
- getPlugin: (pluginType: string) => PluginComponent | undefined;
9
+ export type CustomPluginsContext<T = PluginComponentProps> = {
10
+ pluginMap: Map<string, PluginComponent<T>>;
11
+ registerPlugin: (pluginType: string, plugin: PluginComponent<T>) => void;
12
+ getPlugin: (pluginType: string) => PluginComponent<T> | undefined;
13
13
  };
14
14
  /**
15
15
  * Custom Plugin Provider component that allows passing external plugins context.
@@ -19,6 +19,6 @@ export type CustomPluginsContext = {
19
19
  * @internal
20
20
  */
21
21
  export declare const CustomPluginsProvider: React.FC<{
22
- context: CustomPluginsContext;
22
+ context: CustomPluginsContext<any>;
23
23
  children: ReactNode;
24
24
  }>;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { PluginComponent } from './types';
3
- type PluginsContextType = {
4
- plugins: Map<string, PluginComponent>;
5
- registerPlugin: (pluginType: string, plugin: PluginComponent) => void;
6
- getPlugin: (pluginType: string) => PluginComponent | undefined;
2
+ import { PluginComponent, PluginComponentProps } from './types';
3
+ type PluginsContextType<T extends PluginComponentProps = PluginComponentProps> = {
4
+ plugins: Map<string, PluginComponent<T>>;
5
+ registerPlugin: <T>(pluginType: string, plugin: PluginComponent<T>) => void;
6
+ getPlugin: (pluginType: string) => PluginComponent<T> | undefined;
7
7
  };
8
- export declare const PluginsContext: import("react").Context<PluginsContextType>;
8
+ export declare const PluginsContext: import("react").Context<PluginsContextType<PluginComponentProps<import("..").GenericDataOptions, any>>>;
9
9
  export {};
@@ -12,7 +12,7 @@ export declare const PluginsProvider: React.FC<{
12
12
  * @internal
13
13
  */
14
14
  export declare const usePlugins: () => {
15
- plugins: Map<string, PluginComponent>;
16
- registerPlugin: (pluginType: string, plugin: PluginComponent) => void;
17
- getPlugin: (pluginType: string) => PluginComponent | undefined;
15
+ plugins: Map<string, PluginComponent<import("./types").PluginComponentProps<import("..").GenericDataOptions, any>>>;
16
+ registerPlugin: <T>(pluginType: string, plugin: PluginComponent<T>) => void;
17
+ getPlugin: (pluginType: string) => PluginComponent<import("./types").PluginComponentProps<import("..").GenericDataOptions, any>> | undefined;
18
18
  };
@@ -12,6 +12,7 @@ export interface PluginComponentProps<DataOptions = GenericDataOptions, StyleOpt
12
12
  styleOptions: StyleOptions;
13
13
  filters?: Filter[];
14
14
  highlights?: Filter[];
15
+ description?: string;
15
16
  }
16
17
  /**
17
18
  * A user-defined widget component. This is can be specified when registering a
@@ -19,4 +20,4 @@ export interface PluginComponentProps<DataOptions = GenericDataOptions, StyleOpt
19
20
  *
20
21
  * @alpha
21
22
  */
22
- export type PluginComponent<DataOptions = GenericDataOptions, StyleOptions = any> = (props: PluginComponentProps<DataOptions, StyleOptions>) => ReactNode;
23
+ export type PluginComponent<Props = PluginComponentProps> = (props: Props) => ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
2
- import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, DashboardWidgetStyleOptions, IndicatorRenderOptions } from './types';
2
+ import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, DashboardWidgetStyleOptions, IndicatorRenderOptions, TabberStyleProps } from './types';
3
3
  import { HighchartsOptions } from './chart-options-processor/chart-options-service';
4
4
  import { ComponentType, PropsWithChildren, ReactNode } from 'react';
5
5
  import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
@@ -660,7 +660,7 @@ export interface ColumnChartProps extends BaseChartProps, HighchartsBasedChartEv
660
660
  styleOptions?: StackableStyleOptions;
661
661
  }
662
662
  /**
663
- * Props of the {@link @sisense/sdk-ui!FunnelChart | `FunnelChart`} component.
663
+ * Props of the {@link FunnelChart} component.
664
664
  */
665
665
  export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
666
666
  /**
@@ -677,7 +677,7 @@ export interface FunnelChartProps extends BaseChartProps, HighchartsBasedChartEv
677
677
  styleOptions?: FunnelStyleOptions;
678
678
  }
679
679
  /**
680
- * Props of the {@link @sisense/sdk-ui!LineChart | `LineChart`} component.
680
+ * Props of the {@link LineChart} component.
681
681
  */
682
682
  export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
683
683
  /**
@@ -697,7 +697,7 @@ export interface LineChartProps extends BaseChartProps, HighchartsBasedChartEven
697
697
  styleOptions?: LineStyleOptions;
698
698
  }
699
699
  /**
700
- * Props of the {@link @sisense/sdk-ui!PieChart | `PieChart`} component.
700
+ * Props of the {@link PieChart} component.
701
701
  */
702
702
  export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
703
703
  /**
@@ -714,7 +714,7 @@ export interface PieChartProps extends BaseChartProps, HighchartsBasedChartEvent
714
714
  styleOptions?: PieStyleOptions;
715
715
  }
716
716
  /**
717
- * Props of the {@link @sisense/sdk-ui!PolarChart | `PolarChart`} component.
717
+ * Props of the {@link PolarChart} component.
718
718
  */
719
719
  export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
720
720
  /**
@@ -734,7 +734,7 @@ export interface PolarChartProps extends BaseChartProps, HighchartsBasedChartEve
734
734
  styleOptions?: PolarStyleOptions;
735
735
  }
736
736
  /**
737
- * Props of the {@link @sisense/sdk-ui!IndicatorChart | `IndicatorChart`} component.
737
+ * Props of the {@link IndicatorChart} component.
738
738
  */
739
739
  export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEventProps {
740
740
  /**
@@ -751,7 +751,7 @@ export interface IndicatorChartProps extends BaseChartProps, IndicatorChartEvent
751
751
  styleOptions?: IndicatorStyleOptions;
752
752
  }
753
753
  /**
754
- * Props of the {@link @sisense/sdk-ui!Table | `Table`} component.
754
+ * Props of the {@link Table} component.
755
755
  */
756
756
  export interface TableProps extends BaseChartEventProps {
757
757
  /**
@@ -788,7 +788,7 @@ export interface TableProps extends BaseChartEventProps {
788
788
  refreshCounter?: number;
789
789
  }
790
790
  /**
791
- * Props of the {@link @sisense/sdk-ui!PivotTable | `PivotTable`} component.
791
+ * Props of the {@link PivotTable} component.
792
792
  */
793
793
  export interface PivotTableProps {
794
794
  /**
@@ -832,7 +832,7 @@ export interface PivotTableProps {
832
832
  refreshCounter?: number;
833
833
  }
834
834
  /**
835
- * Props of the {@link @sisense/sdk-ui!ScatterChart | `ScatterChart`} component.
835
+ * Props of the {@link ScatterChart} component.
836
836
  */
837
837
  export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProps, HighchartsBasedChartEventProps {
838
838
  /**
@@ -849,7 +849,7 @@ export interface ScatterChartProps extends BaseChartProps, ScatterChartEventProp
849
849
  styleOptions?: ScatterStyleOptions;
850
850
  }
851
851
  /**
852
- * Props for the {@link @sisense/sdk-ui!WidgetById | `WidgetById`} component
852
+ * Props for the {@link WidgetById} component
853
853
  */
854
854
  export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | 'dataOptions' | 'chartType' | 'styleOptions'> {
855
855
  /**
@@ -923,7 +923,7 @@ export interface WidgetByIdProps extends Omit<ChartWidgetProps, 'dataSource' | '
923
923
  /**
924
924
  * Props for the {@link DashboardWidget} component
925
925
  *
926
- * @deprecated Use {@link @sisense/sdk-ui!WidgetById | `WidgetById`} and {@link WidgetByIdProps} instead
926
+ * @deprecated Use {@link WidgetById} and {@link WidgetByIdProps} instead
927
927
  */
928
928
  export interface DashboardWidgetProps extends WidgetByIdProps {
929
929
  /**
@@ -1286,7 +1286,7 @@ export interface ExecuteQueryByWidgetIdProps {
1286
1286
  onBeforeQuery?: (jaql: any) => any | Promise<any>;
1287
1287
  }
1288
1288
  /**
1289
- * Props of the {@link @sisense/sdk-ui!TreemapChart | `TreemapChart`} component.
1289
+ * Props of the {@link TreemapChart} component.
1290
1290
  */
1291
1291
  export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartEventProps, RegularChartEventProps {
1292
1292
  /**
@@ -1303,7 +1303,7 @@ export interface TreemapChartProps extends BaseChartProps, HighchartsBasedChartE
1303
1303
  styleOptions?: TreemapStyleOptions;
1304
1304
  }
1305
1305
  /**
1306
- * Props of the {@link @sisense/sdk-ui!SunburstChart | `SunburstChart`} component.
1306
+ * Props of the {@link SunburstChart} component.
1307
1307
  */
1308
1308
  export interface SunburstChartProps extends BaseChartProps, RegularChartEventProps, HighchartsBasedChartEventProps {
1309
1309
  /**
@@ -1337,7 +1337,7 @@ export interface BoxplotChartProps extends BaseChartProps, BoxplotChartEventProp
1337
1337
  styleOptions?: BoxplotStyleOptions;
1338
1338
  }
1339
1339
  /**
1340
- * Props of the {@link @sisense/sdk-ui!ScattermapChart | `ScattermapChart`} component.
1340
+ * Props of the {@link ScattermapChart} component.
1341
1341
  */
1342
1342
  export interface ScattermapChartProps extends BaseChartProps, ScattermapChartEventProps {
1343
1343
  /**
@@ -1388,7 +1388,7 @@ export interface AreaRangeChartProps extends BaseChartProps, HighchartsBasedChar
1388
1388
  styleOptions?: AreaRangeStyleOptions;
1389
1389
  }
1390
1390
  /**
1391
- * Props for ContextMenu component.
1391
+ * Props of the {@link ContextMenu} component.
1392
1392
  */
1393
1393
  export interface ContextMenuProps {
1394
1394
  /**
@@ -1416,6 +1416,9 @@ export interface ContextMenuProps {
1416
1416
  */
1417
1417
  children?: React.ReactNode;
1418
1418
  }
1419
+ /**
1420
+ * Props of the {@link DrilldownBreadcrumbs} component.
1421
+ */
1419
1422
  export interface DrilldownBreadcrumbsProps {
1420
1423
  /**
1421
1424
  * List of drilldown filters formatted to be displayed as breadcrumbs
@@ -1515,6 +1518,23 @@ export interface DrilldownWidgetProps {
1515
1518
  */
1516
1519
  children: (customDrilldownResult: CustomDrilldownResult) => ReactNode;
1517
1520
  }
1521
+ /**
1522
+ * Tabber widget props designed to be a current state and is provided by use-tabber hook
1523
+ * @internal
1524
+ */
1525
+ export type TabberWidgetExtraProps = {
1526
+ onTabSelected: (tab: number) => void;
1527
+ selectedTab: number;
1528
+ };
1529
+ /**
1530
+ * Tabber widget props
1531
+ * @internal
1532
+ */
1533
+ export type TabberWidgetProps = {
1534
+ styleOptions?: TabberStyleProps;
1535
+ description?: string;
1536
+ width?: string;
1537
+ } & TabberWidgetExtraProps;
1518
1538
  /**
1519
1539
  * Params of the {@link useGetSharedFormula} hook
1520
1540
  *
@@ -1,24 +1,9 @@
1
- import { ChartDataOptionsInternal } from '../chart-data-options/types';
2
- import { ChartData } from '../chart-data/types';
3
- import { BeforeRenderHandler } from '../props';
4
- import { BoxplotChartType, CartesianChartType, CategoricalChartType, ChartDesignOptions, ScatterChartType } from '../chart-options-processor/translations/types';
5
1
  import { ChartType } from '../types';
6
- import { SisenseChartDataPointEventHandler, SisenseChartDataPointsEventHandler } from './types';
7
2
  import { ChartRendererProps } from '../chart/types';
8
- export interface SisenseChartProps {
9
- chartType: SisenseChartType;
10
- chartData: ChartData;
11
- dataOptions: ChartDataOptionsInternal;
12
- designOptions: ChartDesignOptions;
13
- onDataPointClick?: SisenseChartDataPointEventHandler;
14
- onDataPointContextMenu?: SisenseChartDataPointEventHandler;
15
- onDataPointsSelected?: SisenseChartDataPointsEventHandler;
16
- onBeforeRender?: BeforeRenderHandler;
17
- }
3
+ import { SisenseChartProps, SisenseChartType } from './types';
18
4
  /**
19
5
  * @internal
20
6
  */
21
7
  export declare const SisenseChart: ({ chartType, chartData, dataOptions, designOptions, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, }: SisenseChartProps) => import("react/jsx-runtime").JSX.Element | null;
22
8
  export declare const isSisenseChartType: (chartType: ChartType) => chartType is SisenseChartType;
23
- export type SisenseChartType = CartesianChartType | CategoricalChartType | ScatterChartType | BoxplotChartType;
24
9
  export declare const isSisenseChartProps: (props: ChartRendererProps) => props is SisenseChartProps;
@@ -1,4 +1,19 @@
1
- import { BoxplotDataPoint, DataPoint, ScatterDataPoint } from '../types.js';
1
+ import { ChartDataOptionsInternal } from '../chart-data-options/types';
2
+ import { ChartData } from '../chart-data/types.js';
3
+ import { ChartDesignOptions } from '../chart-options-processor/translations/types.js';
4
+ import { BeforeRenderHandler } from '../props.js';
5
+ import { BoxplotChartType, BoxplotDataPoint, CartesianChartType, CategoricalChartType, DataPoint, ScatterChartType, ScatterDataPoint } from '../types.js';
2
6
  export type SisenseChartDataPointsEventHandler = (points: SisenseChartDataPoint[], nativeEvent: MouseEvent) => void;
3
7
  export type SisenseChartDataPoint = DataPoint | ScatterDataPoint | BoxplotDataPoint;
4
8
  export type SisenseChartDataPointEventHandler = (point: SisenseChartDataPoint, nativeEvent: PointerEvent) => void;
9
+ export interface SisenseChartProps {
10
+ chartType: SisenseChartType;
11
+ chartData: ChartData;
12
+ dataOptions: ChartDataOptionsInternal;
13
+ designOptions: ChartDesignOptions;
14
+ onDataPointClick?: SisenseChartDataPointEventHandler;
15
+ onDataPointContextMenu?: SisenseChartDataPointEventHandler;
16
+ onDataPointsSelected?: SisenseChartDataPointsEventHandler;
17
+ onBeforeRender?: BeforeRenderHandler;
18
+ }
19
+ export type SisenseChartType = CartesianChartType | CategoricalChartType | ScatterChartType | BoxplotChartType;
@@ -17,6 +17,10 @@ export declare const translation: {
17
17
  filterAttributeNotFound: string;
18
18
  highlightAttributeNotFound: string;
19
19
  };
20
+ optionsTranslation: {
21
+ invalidStyleOptions: string;
22
+ invalidInternalDataOptions: string;
23
+ };
20
24
  themeNotFound: string;
21
25
  paletteNotFound: string;
22
26
  chartTypeNotSupported: string;
@@ -74,6 +78,10 @@ export declare const translation: {
74
78
  notAMembersFilter: string;
75
79
  drilldownNoInitialDimension: string;
76
80
  otherWidgetTypesNotSupported: string;
81
+ dataBrowser: {
82
+ dimensionNotFound: string;
83
+ attributeNotFound: string;
84
+ };
77
85
  };
78
86
  errorBoxText: string;
79
87
  chartNoData: string;
@@ -257,6 +265,17 @@ export declare const translation: {
257
265
  noAvailableDataTopics: string;
258
266
  };
259
267
  };
268
+ attribute: {
269
+ datetimeName: {
270
+ years: string;
271
+ quarters: string;
272
+ months: string;
273
+ weeks: string;
274
+ days: string;
275
+ hours: string;
276
+ minutes: string;
277
+ };
278
+ };
260
279
  filterEditor: {
261
280
  buttons: {
262
281
  apply: string;
@@ -269,11 +288,13 @@ export declare const translation: {
269
288
  allowMultiSelection: string;
270
289
  from: string;
271
290
  to: string;
291
+ includeCurrent: string;
272
292
  };
273
293
  placeholders: {
274
294
  selectFromList: string;
275
295
  enterEntry: string;
276
296
  enterValue: string;
297
+ select: string;
277
298
  };
278
299
  conditions: {
279
300
  exclude: string;
@@ -291,11 +312,30 @@ export declare const translation: {
291
312
  lessThanOrEqual: string;
292
313
  greaterThan: string;
293
314
  greaterThanOrEqual: string;
315
+ isWithin: string;
294
316
  };
295
317
  validationErrors: {
296
318
  invalidNumber: string;
297
319
  invalidNumericRange: string;
298
320
  };
321
+ datetimeLevels: {
322
+ year: string;
323
+ quarter: string;
324
+ month: string;
325
+ week: string;
326
+ day: string;
327
+ aggrigatedHour: string;
328
+ aggrigatedMinutesRoundTo15: string;
329
+ };
330
+ relativeTypes: {
331
+ last: string;
332
+ this: string;
333
+ next: string;
334
+ };
335
+ datetimePositions: {
336
+ before: string;
337
+ after: string;
338
+ };
299
339
  };
300
340
  pivotTable: {
301
341
  grandTotal: string;