@sisense/sdk-ui 1.16.0 → 1.17.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 (65) hide show
  1. package/dist/ai.cjs +1 -1
  2. package/dist/ai.js +28 -28
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +1 -1
  5. package/dist/app/client-application.d.ts +22 -2
  6. package/dist/chart-data/types.d.ts +1 -1
  7. package/dist/chart-data-options/types.d.ts +4 -2
  8. package/dist/chart-data-processor/table-processor.d.ts +1 -1
  9. package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
  10. package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
  11. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
  12. package/dist/charts/table/data-table-wrapper.d.ts +1 -1
  13. package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
  14. package/dist/charts/table/types.d.ts +0 -1
  15. package/dist/common/components/loading-indicator.d.ts +13 -0
  16. package/dist/common/hooks/use-has-changed.d.ts +1 -1
  17. package/dist/common/hooks/use-tracking.d.ts +7 -0
  18. package/dist/common-filters/selection-utils.d.ts +1 -1
  19. package/dist/common-filters/types.d.ts +9 -3
  20. package/dist/common-filters/utils.d.ts +0 -4
  21. package/dist/dashboard/dashboard-by-id.d.ts +6 -3
  22. package/dist/dashboard/dashboard.d.ts +6 -4
  23. package/dist/dashboard/index.d.ts +1 -1
  24. package/dist/dashboard/types.d.ts +11 -6
  25. package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
  26. package/dist/dashboard-widget/types.d.ts +3 -0
  27. package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
  28. package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
  29. package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
  30. package/dist/get-widget-options-D88MkBTJ.js +37924 -0
  31. package/dist/index.cjs +181 -207
  32. package/dist/index.d.ts +3 -3
  33. package/dist/index.js +20411 -24315
  34. package/dist/models/dashboard/get-dashboard-model.d.ts +1 -1
  35. package/dist/models/dashboard/types.d.ts +17 -3
  36. package/dist/models/widget/get-widget-model.d.ts +1 -1
  37. package/dist/models/widget/translate-widget.d.ts +1 -0
  38. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
  39. package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
  40. package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +2 -2
  41. package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
  42. package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
  43. package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
  44. package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
  45. package/dist/pivot-table/pivot-table.d.ts +2 -2
  46. package/dist/props.d.ts +32 -5
  47. package/dist/sisense-context/sisense-context.d.ts +2 -0
  48. package/dist/theme-provider/default-theme-settings.d.ts +2 -0
  49. package/dist/types.d.ts +38 -0
  50. package/dist/{useQuery-DeK1uDeJ.js → useQuery-C6PPvTP0.js} +11776 -11315
  51. package/dist/useQuery-ChZNmTT3.cjs +433 -0
  52. package/dist/utils/color/color-interpolation.d.ts +9 -0
  53. package/dist/utils/combine-handlers.d.ts +3 -0
  54. package/dist/utils/filters.d.ts +13 -1
  55. package/dist/widgets/common/drilldown-connector.d.ts +19 -0
  56. package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
  57. package/dist/widgets/use-highlight-selection.d.ts +10 -0
  58. package/package.json +7 -8
  59. package/dist/filters/utils.d.ts +0 -8
  60. package/dist/get-widget-options-D008Wku-.cjs +0 -172
  61. package/dist/get-widget-options-Xskksk4X.js +0 -34154
  62. package/dist/useQuery-aWnvBOTu.cjs +0 -433
  63. package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
  64. package/dist/widgets/common/drilldown.d.ts +0 -25
  65. package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
@@ -1,30 +0,0 @@
1
- import { type FunctionComponent } from 'react';
2
- import { ChartWidgetProps } from '../props';
3
- /**
4
- * The Chart Widget component extending the {@link Chart} component to support advanced BI
5
- * capabilities such as drilldown.
6
- *
7
- * @example
8
- * Example of using the `ChartWidget` component to
9
- * plot a bar chart of the `Sample ECommerce` data source hosted in a Sisense instance.
10
- * Drill-down capability is enabled.
11
- * ```tsx
12
- * <ChartWidget
13
- * dataSource={DM.DataSource}
14
- * chartType="bar"
15
- * dataOptions={{
16
- * category: [DM.Category.Category],
17
- * value: [measureFactory.sum(DM.Commerce.Revenue)],
18
- * breakBy: [],
19
- * }}
20
- * drilldownOptions={{
21
- * drilldownDimensions: [DM.Commerce.AgeRange, DM.Commerce.Gender, DM.Commerce.Condition],
22
- * }}
23
- * />
24
- * ```
25
- *
26
- * <img src="media://chart-widget-with-drilldown-example-1.png" width="800px" />
27
- * @param props - ChartWidget properties
28
- * @returns ChartWidget component representing a chart type as specified in `ChartWidgetProps.`{@link ChartWidgetProps.chartType}
29
- */
30
- export declare const ChartWidgetDeprecated: FunctionComponent<ChartWidgetProps>;
@@ -1,25 +0,0 @@
1
- import { ChartDataOptions, ChartDataPoint, DataPoint, DrilldownOptions, DrilldownSelection } from '../../types';
2
- import { Attribute, MembersFilter } from '@sisense/sdk-data';
3
- export declare const useDrilldown: (dataOptions: ChartDataOptions, drilldownOptions?: DrilldownOptions) => {
4
- drilldownFilters: never[];
5
- drilldownFiltersDisplayValues: never[];
6
- drilldownDimension: undefined;
7
- dataOptionsWithDrilldown: ChartDataOptions;
8
- selectDrilldown: (points: DataPoint[], nextDimension: Attribute) => void;
9
- sliceDrilldownSelections: (i: number) => void;
10
- clearDrilldownSelections: () => void;
11
- drilldownSelections: DrilldownSelection[];
12
- availableDrilldowns: Attribute[];
13
- } | {
14
- drilldownFilters: MembersFilter[];
15
- drilldownFiltersDisplayValues: string[][];
16
- drilldownDimension: Attribute;
17
- dataOptionsWithDrilldown: ChartDataOptions;
18
- selectDrilldown: (points: DataPoint[], nextDimension: Attribute) => void;
19
- sliceDrilldownSelections: (i: number) => void;
20
- clearDrilldownSelections: () => void;
21
- drilldownSelections: DrilldownSelection[];
22
- availableDrilldowns: Attribute[];
23
- };
24
- export declare function getMemberNameFromDataPoint(point: ChartDataPoint): string;
25
- export declare function getDisplayMemberNameFromDataPoint(point: ChartDataPoint): string;
@@ -1,2 +0,0 @@
1
- import { ChartWidgetProps } from '../../props';
2
- export declare const useWidgetDrilldown: (props: ChartWidgetProps) => ChartWidgetProps;