@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
@@ -44,6 +44,7 @@ export interface WidgetDto {
44
44
  metadata: {
45
45
  ignore?: FiltersIgnoringRules;
46
46
  panels: Panel[];
47
+ drillHistory?: PanelItem[];
47
48
  };
48
49
  style: WidgetStyle;
49
50
  title: string;
@@ -51,6 +52,7 @@ export interface WidgetDto {
51
52
  options?: {
52
53
  dashboardFiltersMode: `${WidgetDashboardFilterMode}`;
53
54
  selector: boolean;
55
+ drillToAnywhere?: boolean;
54
56
  };
55
57
  }
56
58
  export type WidgetDesign = {
@@ -121,6 +123,7 @@ export type PanelItem = {
121
123
  subtotal?: boolean;
122
124
  databars?: boolean;
123
125
  width?: number;
126
+ colorIndex?: number;
124
127
  };
125
128
  jaql: Jaql;
126
129
  disabled?: boolean;
@@ -1,8 +1,10 @@
1
+ import { ErrorEventOptions } from '@sisense/sdk-tracking';
1
2
  import { HttpClient } from '@sisense/sdk-rest-client';
2
3
  import { Component, ReactNode } from 'react';
3
4
  import { SisenseContextPayload } from '../../../sisense-context/sisense-context';
4
5
  type ErrorTrackerProps = {
5
6
  children: ReactNode;
7
+ handler: (options: ErrorEventOptions) => Promise<void>;
6
8
  componentName: string;
7
9
  };
8
10
  export declare class ErrorTracker extends Component<ErrorTrackerProps, {
@@ -10,6 +12,7 @@ export declare class ErrorTracker extends Component<ErrorTrackerProps, {
10
12
  }> {
11
13
  componentName: string;
12
14
  context: SisenseContextPayload;
15
+ handler: (options: ErrorEventOptions) => Promise<void>;
13
16
  httpClient?: HttpClient;
14
17
  postponedErrors: Error[];
15
18
  constructor(props: ErrorTrackerProps);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSource, Filter } from '@sisense/sdk-data';
2
3
  /**
3
4
  * Props of the {@link FiltersPanel} component
@@ -17,4 +18,4 @@ export type FiltersPanelProps = {
17
18
  *
18
19
  * @internal
19
20
  */
20
- export declare const FiltersPanel: ({ filters, onFiltersChange, defaultDataSource, }: FiltersPanelProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const FiltersPanel: import("react").FunctionComponent<FiltersPanelProps>;