@sisense/sdk-ui 2.14.0 → 2.16.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 (78) hide show
  1. package/dist/ai.cjs +418 -28
  2. package/dist/ai.js +2080 -2112
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +998 -1466
  5. package/dist/analytics-composer.cjs +51 -51
  6. package/dist/analytics-composer.js +556 -565
  7. package/dist/{derive-chart-family-D_bylSQy.js → derive-chart-family-DLwnWblo.js} +10833 -10690
  8. package/dist/derive-chart-family-d7eaC45K.cjs +190 -0
  9. package/dist/{dimensions-CdNGgk9I.cjs → dimensions-BUWtZxix.cjs} +1 -1
  10. package/dist/{dimensions-CTUJhW-M.js → dimensions-DvDgZ8RW.js} +1 -1
  11. package/dist/execute-query-CB4XfUng.cjs +1 -0
  12. package/dist/{execute-query-DyjkDYHG.js → execute-query-CFK2R_1S.js} +868 -813
  13. package/dist/index.cjs +1549 -32
  14. package/dist/index.js +14200 -13185
  15. package/dist/index.umd.js +2726 -380
  16. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +9 -0
  17. package/dist/packages/sdk-ui/src/app/client-application.d.ts +32 -0
  18. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/get-legacy-cartesian-chart-options.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +8 -0
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/design-options.d.ts +12 -0
  21. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/axes.d.ts +13 -0
  22. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/highcharts-options-builder.d.ts +8 -0
  23. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/plot-options.d.ts +19 -0
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/streamgraph-chart-builder.d.ts +8 -0
  25. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/types.d.ts +24 -0
  26. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +0 -4
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +4 -0
  29. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +0 -4
  30. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +3 -0
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +7 -11
  33. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +2 -2
  34. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +27 -1
  35. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
  36. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +11 -1
  37. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +28 -2
  38. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +28 -2
  39. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +6 -5
  40. package/dist/packages/sdk-ui/src/charts/table/styles/style-constants.d.ts +1 -1
  41. package/dist/packages/sdk-ui/src/common/icons/alert-icon.d.ts +2 -0
  42. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -2
  43. package/dist/packages/sdk-ui/src/dynamic-size-container/default-size.d.ts +20 -5
  44. package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +9 -0
  45. package/dist/packages/sdk-ui/src/highcharts-renderer.d.ts +13 -0
  46. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  47. package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
  48. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +9 -1
  49. package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +1 -0
  50. package/dist/packages/sdk-ui/src/props.d.ts +32 -1
  51. package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
  52. package/dist/packages/sdk-ui/src/streamgraph-chart.d.ts +42 -0
  53. package/dist/packages/sdk-ui/src/styled/index.d.ts +4 -0
  54. package/dist/packages/sdk-ui/src/styled/with-css-selector-prefix.d.ts +2 -0
  55. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
  56. package/dist/packages/sdk-ui/src/theme-provider/theme-context.d.ts +3 -1
  57. package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +8 -0
  58. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +6 -0
  59. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +12 -0
  60. package/dist/packages/sdk-ui/src/types.d.ts +172 -5
  61. package/dist/packages/sdk-ui/src/utils/gradient.d.ts +37 -0
  62. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/translate-widget-style-options.d.ts +2 -2
  63. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +3 -0
  64. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +17 -2
  65. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +2 -3
  66. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
  67. package/dist/{types-D1qM-ltg.cjs → types-Clbnx4mQ.cjs} +1 -1
  68. package/dist/{types-DglXXR-Q.js → types-D1mqt0Mg.js} +2 -8
  69. package/dist/use-common-filters-CkQznSEt.cjs +1325 -0
  70. package/dist/{use-common-filters-BGrn7zoW.js → use-common-filters-CxoO7TzT.js} +47215 -36504
  71. package/dist/{widget-composer-C24YJEek.cjs → widget-composer-BaOTPn5w.cjs} +1 -1
  72. package/dist/{widget-composer-lBv40CFf.js → widget-composer-Dhl_nmhq.js} +115 -111
  73. package/package.json +8 -9
  74. package/dist/derive-chart-family-DJUpWKOP.cjs +0 -175
  75. package/dist/execute-query-CNt566O5.cjs +0 -1
  76. package/dist/packages/sdk-ui/src/common/icons/edit-pencil-icon.d.ts +0 -3
  77. package/dist/packages/sdk-ui/src/highcharts-memorized.d.ts +0 -7
  78. package/dist/use-common-filters-DxzCHhgF.cjs +0 -846
@@ -16,6 +16,10 @@ type PivotRenderOptions = {
16
16
  size: ContainerSize | null;
17
17
  /** Allow html in pivot table cells */
18
18
  allowHtml?: boolean;
19
+ /** Sanitize html in pivot table cells */
20
+ sanitizeHtml?: boolean;
21
+ /** Whether the pivot table should take the full width of its container */
22
+ isFullWidth?: boolean;
19
23
  /** Callback to handle total height change. */
20
24
  onTotalHeightChange?: (totalHeight: number) => void;
21
25
  /** Callback to handle data point click. */
@@ -26,11 +30,15 @@ type PivotRenderOptions = {
26
30
  pageSize: number;
27
31
  /** Callback to handle page size. */
28
32
  onPageSizeChange: (newPageSize: number) => void;
33
+ /** The list of image columns */
34
+ imageColumns?: number[];
35
+ /** Boolean flag whether to always show the results per page select */
36
+ alwaysShowResultsPerPage?: boolean;
29
37
  };
30
38
  /**
31
39
  * A hook that renders the pivot table.
32
40
  */
33
- export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, allowHtml, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, }: PivotRenderOptions): {
41
+ export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, allowHtml, sanitizeHtml, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, pageSize, onPageSizeChange, isFullWidth, imageColumns, alwaysShowResultsPerPage, }: PivotRenderOptions): {
34
42
  pivotElement: JSX.Element | null;
35
43
  };
36
44
  export {};
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { PivotTableProps } from '../props';
3
+ export declare const PIVOT_WIDGET_PADDING = 8;
3
4
  /**
4
5
  * Pivot table with pagination.
5
6
  *
@@ -9,7 +9,7 @@ import { Hierarchy } from './models';
9
9
  import { type CustomDataCellFormatter, type CustomHeaderCellFormatter } from './pivot-table/formatters/types';
10
10
  import { ExecuteQueryParams, QueryByWidgetIdState } from './query-execution';
11
11
  import { ExecuteQueryResult } from './query-execution/types';
12
- import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, CustomDrilldownResult, CustomWidgetStyleOptions, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, GenericDataOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, SunburstStyleOptions, TableStyleOptions, TableWidgetStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, TextWidgetStyleOptions, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
12
+ import { AreamapDataPoint, AreamapStyleOptions, AreaRangeStyleOptions, AreaStyleOptions, BoxplotDataPoint, BoxplotStyleOptions, CalendarHeatmapDataPoint, CalendarHeatmapStyleOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ChartDataPoints, ChartStyleOptions, ChartType, ChartWidgetStyleOptions, CustomDrilldownResult, CustomWidgetStyleOptions, DataPoint, DrilldownOptions, DrilldownSelection, FunnelStyleOptions, GenericDataOptions, IndicatorDataPoint, IndicatorRenderOptions, IndicatorStyleOptions, LineStyleOptions, MenuAlignment, MenuItemSection, MenuPosition, PieStyleOptions, PivotTableDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, PolarStyleOptions, RegularChartStyleOptions, RegularChartType, ScatterDataPoint, ScattermapDataPoint, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, StreamgraphStyleOptions, SunburstStyleOptions, TableStyleOptions, TableWidgetStyleOptions, TabularChartStyleOptions, TextWidgetDataPoint, TextWidgetStyleOptions, ThemeConfig, ThemeOid, ThemeSettings, TreemapStyleOptions, WidgetByIdStyleOptions } from './types';
13
13
  import { DistributiveOmit } from './utils/utility-types/distributive-omit';
14
14
  import { FiltersMergeStrategy } from './widget-by-id/types';
15
15
  export type { TabberButtonsWidgetProps } from './widgets/tabber/types';
@@ -184,6 +184,8 @@ export type ThemeProviderProps = PropsWithChildren<{
184
184
  * @internal
185
185
  */
186
186
  skipTracking?: boolean;
187
+ /** @internal */
188
+ config?: ThemeConfig;
187
189
  }>;
188
190
  /**
189
191
  * A handler function that allows you to customize the underlying chart element before it is
@@ -706,6 +708,35 @@ export interface AreaChartProps extends BaseChartProps, RegularChartEventProps,
706
708
  */
707
709
  styleOptions?: AreaStyleOptions;
708
710
  }
711
+ /**
712
+ * Props of the {@link StreamgraphChart} component.
713
+ *
714
+ * A streamgraph is a type of stacked area chart where areas are displaced around
715
+ * a central axis. It is often used for displaying compound volume across different
716
+ * categories or over time with a relative scale that emphasizes overall patterns
717
+ * and trends.
718
+ */
719
+ export interface StreamgraphChartProps extends BaseChartProps, RegularChartEventProps, HighchartsBasedChartEventProps {
720
+ /**
721
+ * Configurations for how to interpret and present a chart's data.
722
+ *
723
+ * Streamgraph requires at least one category (X-axis) and one or more value measures.
724
+ * Multiple series can be created using the `breakBy` property or by providing multiple
725
+ * value measures.
726
+ *
727
+ * To learn more about using data options,
728
+ * see the [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#dataoptions).
729
+ *
730
+ * @category Chart
731
+ */
732
+ dataOptions: CartesianChartDataOptions;
733
+ /**
734
+ * Configurations for how to style and present a chart's data.
735
+ *
736
+ * @category Chart
737
+ */
738
+ styleOptions?: StreamgraphStyleOptions;
739
+ }
709
740
  /**
710
741
  * Props of the {@link BarChart} component.
711
742
  */
@@ -3,6 +3,6 @@ export { useExecuteQuery } from './use-execute-query';
3
3
  export { useExecuteCsvQuery, useExecuteCsvQueryInternal } from './use-execute-csv-query';
4
4
  export { ExecuteQueryByWidgetId } from './execute-query-by-widget-id';
5
5
  export { useExecuteQueryByWidgetId, executeQueryByWidgetId, } from './use-execute-query-by-widget-id';
6
- export { useExecutePivotQuery } from './use-execute-pivot-query';
6
+ export { useExecutePivotQuery, useExecutePivotQueryInternal } from './use-execute-pivot-query';
7
7
  export { useQueryCache } from './use-query-cache';
8
8
  export type { QueryState, QueryLoadingState, QuerySuccessState, QueryErrorState, CsvQueryState, CsvQueryLoadingState, CsvQuerySuccessState, CsvQueryErrorState, PivotQueryState, PivotQueryLoadingState, PivotQuerySuccessState, PivotQueryErrorState, BaseQueryParams, ExecuteQueryParams, ExecuteQueryResult, ExecuteCsvQueryParams, ExecuteCSVQueryConfig, ExecuteQueryByWidgetIdParams, QueryByWidgetIdState, QueryByWidgetIdQueryParams, ExecutePivotQueryParams, } from './types';
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import { StreamgraphChartProps } from './props';
3
+ /**
4
+ * A React component that displays a streamgraph chart.
5
+ *
6
+ * A streamgraph is a type of stacked area chart where areas are displaced around
7
+ * a central axis. It is particularly effective for displaying volume across
8
+ * different categories or over time with a relative scale that emphasizes
9
+ * overall patterns and trends.
10
+
11
+ * ## Example
12
+ *
13
+ * Streamgraph displaying revenue by category over time.
14
+ *
15
+ * ```tsx
16
+ * import { StreamgraphChart } from '@sisense/sdk-ui';
17
+ * import { measureFactory } from '@sisense/sdk-data';
18
+ * import * as DM from './sample-ecommerce';
19
+ *
20
+ * function RevenueByCategoryStreamgraph() {
21
+ * return (
22
+ * <StreamgraphChart
23
+ * dataSet={DM.DataSource}
24
+ * dataOptions={{
25
+ * category: [DM.Commerce.Date.Quarters],
26
+ * value: [measureFactory.sum(DM.Commerce.Revenue, 'Revenue')],
27
+ * breakBy: [DM.Category.Category],
28
+ * }}
29
+ * styleOptions={{
30
+ * width: 1200,
31
+ * height: 500,
32
+ * }}
33
+ * />
34
+ * );
35
+ * }
36
+ * ```
37
+ *
38
+ * @param props - Streamgraph chart properties
39
+ * @returns Streamgraph Chart component
40
+ * @group Charts
41
+ */
42
+ export declare const StreamgraphChart: import("react").FunctionComponent<StreamgraphChartProps>;
@@ -0,0 +1,4 @@
1
+ import { CreateStyled } from '@emotion/styled';
2
+ declare const styled: CreateStyled;
3
+ export type { CreateStyled };
4
+ export default styled;
@@ -0,0 +1,2 @@
1
+ import type { CreateStyled } from '@emotion/styled';
2
+ export declare function withCssSelectorPrefix<T extends CreateStyled = CreateStyled>(baseStyled: T): T;
@@ -11,6 +11,7 @@ export declare const DEFAULT_FILTER_PANEL_BORDER_COLOR = "#DADADA";
11
11
  export declare const DEFAULT_FILTER_PANEL_BORDER_WIDTH = 1;
12
12
  export declare const DEFAULT_TITLE_FONT_SIZE = 15;
13
13
  export declare const DEFAULT_HYPERLINK_COLOR = "#1FAFF3";
14
+ export declare const DEFAULT_HYPERLINK_HOVER_COLOR = "#1FCCF3";
14
15
  /**
15
16
  * Returns default theme settings, which can be used as base for custom theme options.
16
17
  *
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { CompleteThemeSettings } from '../types';
2
+ import { CompleteThemeSettings, ThemeConfig } from '../types';
3
3
  export declare const ThemeContext: import("react").Context<{
4
4
  themeSettings: CompleteThemeSettings;
5
+ config?: ThemeConfig | undefined;
5
6
  }>;
6
7
  /**
7
8
  * Hook to get the current theme settings.
@@ -11,4 +12,5 @@ export declare const ThemeContext: import("react").Context<{
11
12
  */
12
13
  export declare const useThemeContext: () => {
13
14
  themeSettings: CompleteThemeSettings;
15
+ config?: ThemeConfig | undefined;
14
16
  };
@@ -1,4 +1,12 @@
1
1
  import { ElementStateColors, ElementStates } from '../types';
2
+ /**
3
+ * Type guard to check if a value is an ElementStateColors object
4
+ *
5
+ * @param value - The value to check
6
+ * @returns True if the value is an ElementStateColors object, false if it's a string
7
+ * @internal
8
+ */
9
+ export declare const isElementStateColors: (value: string | ElementStateColors) => value is ElementStateColors;
2
10
  /**
3
11
  * @internal
4
12
  */
@@ -359,6 +359,12 @@ export declare const translation: {
359
359
  pivotTable: {
360
360
  grandTotal: string;
361
361
  subTotal: string;
362
+ limits: {
363
+ baseNote: string;
364
+ rowsLimit: string;
365
+ columnsLimit: string;
366
+ columnsAndRowsLimit: string;
367
+ };
362
368
  };
363
369
  dashboard: {
364
370
  toolbar: {
@@ -369,6 +369,12 @@ export declare const resources: {
369
369
  pivotTable: {
370
370
  grandTotal: string;
371
371
  subTotal: string;
372
+ limits: {
373
+ baseNote: string;
374
+ rowsLimit: string;
375
+ columnsLimit: string;
376
+ columnsAndRowsLimit: string;
377
+ };
372
378
  };
373
379
  dashboard: {
374
380
  toolbar: {
@@ -761,6 +767,12 @@ export declare const resources: {
761
767
  pivotTable: {
762
768
  grandTotal: string;
763
769
  subTotal: string;
770
+ limits: {
771
+ baseNote: string;
772
+ rowsLimit: string;
773
+ columnsLimit: string;
774
+ columnsAndRowsLimit: string;
775
+ };
764
776
  };
765
777
  dashboard: {
766
778
  toolbar: {
@@ -9,8 +9,8 @@ import { IndicatorComponents, TableColorOptions } from './chart-options-processo
9
9
  import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
10
10
  import { LegendPosition } from './chart-options-processor/translations/legend-section';
11
11
  import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
12
- import { AreamapChartType, BoxplotChartType, CalendarHeatmapChartType, CartesianChartType, CategoricalChartType, IndicatorChartType, RangeChartType, ScatterChartType, ScattermapChartType, TableChartType, TableType, TextStyle } from './chart-options-processor/translations/types';
13
- import { GeoDataElement, RawGeoDataElement } from './chart/restructured-charts/areamap-chart/types';
12
+ import { AreamapChartType, BoxplotChartType, CalendarHeatmapChartType, CartesianChartType, CategoricalChartType, IndicatorChartType, RangeChartType, ScatterChartType, ScattermapChartType, TableChartType, TextStyle } from './chart-options-processor/translations/types';
13
+ import { GeoDataElement } from './chart/restructured-charts/areamap-chart/types';
14
14
  import { CalendarDayOfWeek } from './chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
15
15
  import { DataPointsEventHandler } from './props';
16
16
  import { GradientColor } from './utils/gradient';
@@ -21,7 +21,14 @@ export type { DateConfig } from './query/date-formats';
21
21
  export type { CalendarDayOfWeek } from './chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
22
22
  export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, CalendarHeatmapChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
23
23
  export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
24
- export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, TextStyle, };
24
+ export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, CalendarHeatmapChartType, TableType, TableChartType, RangeChartType, TextStyle, } from './chart-options-processor/translations/types';
25
+ export type { IndicatorComponents } from './chart-options-processor/translations/design-options';
26
+ export type { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
27
+ export type { LegendPosition } from './chart-options-processor/translations/legend-section';
28
+ export type { GeoDataElement, RawGeoDataElement, } from './chart/restructured-charts/areamap-chart/types';
29
+ export type { Coordinates } from './charts/map-charts/scattermap/types';
30
+ export type { TableColorOptions } from './chart-options-processor/translations/design-options';
31
+ export type { AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, } from './chart-options-processor/subtype-to-design-options';
25
32
  export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
26
33
  export type { IndicatorRenderOptions } from './charts/indicator/indicator-render-options';
27
34
  export type { TabberButtonsWidgetStyleOptions, TabberButtonsWidgetCustomOptions, } from './widgets/tabber/types';
@@ -640,6 +647,44 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
640
647
  */
641
648
  totalLabels?: TotalLabels;
642
649
  }
650
+ /**
651
+ * Configuration options that define the visual style of a Streamgraph chart.
652
+ *
653
+ * Streamgraphs are centered stacked area charts that emphasize flowing patterns
654
+ * and overall trends. The Y-axis is typically hidden or minimal, and series labels
655
+ * are often displayed directly on the areas for identification.
656
+ */
657
+ export interface StreamgraphStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
658
+ /**
659
+ * Configuration that defines line style for area boundaries.
660
+ */
661
+ line?: LineOptions;
662
+ /**
663
+ * Configuration that defines line width for area boundaries.
664
+ *
665
+ * @deprecated
666
+ * Use line.width instead
667
+ */
668
+ lineWidth?: LineWidth;
669
+ /**
670
+ * Configuration for series labels - titles/names identifying data series in a chart.
671
+ */
672
+ seriesLabels?: SeriesLabels;
673
+ /**
674
+ * Configuration for titles of series
675
+ * @internal
676
+ **/
677
+ seriesTitles?: {
678
+ /** Boolean flag that defines if titles of series should be shown */
679
+ enabled: boolean;
680
+ /**
681
+ * Text style for series titles
682
+ *
683
+ * Font size and weight are calculated automatically
684
+ * */
685
+ textStyle?: Omit<TextStyle, 'pointerEvents' | 'textOverflow' | 'fontSize' | 'fontWeight'>;
686
+ };
687
+ }
643
688
  /** Configuration options that define functional style of the various elements of stackable charts, like Column or Bar */
644
689
  export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
645
690
  /** Subtype of stackable chart */
@@ -731,6 +776,10 @@ export interface PieStyleOptions extends BaseStyleOptions {
731
776
  labels?: Labels;
732
777
  /** Subtype of Pie chart*/
733
778
  subtype?: PieSubtype;
779
+ /**
780
+ * Boolean flag that defines if the pie chart should be displayed as a semi-circle
781
+ */
782
+ semiCircle?: boolean;
734
783
  /**
735
784
  * Configuration for series labels - titles/names identifying data series in a chart
736
785
  */
@@ -920,6 +969,35 @@ export interface PivotTableStyleOptions {
920
969
  * Color of highlighted cells. If not specified, default value is light yellow (`#ffff9c`).
921
970
  */
922
971
  highlightColor?: string;
972
+ /**
973
+ * Boolean flag whether the widths of each vertical column of table cells should be automatically calculated
974
+ * to fit the width of the component, which defaults to '100%' if `width` is not specified.
975
+ *
976
+ * If `true`, all vertical columns of table cells will be resized to fit within the component width without requiring horizontal scroll.
977
+ * If a width is also specified in the `dataOptions` item, this will be used to calculate the width in proportion to the total width of the component.
978
+ * Using `isAutoContentWidth: true` with a large number of columns displayed may result in very narrow columns, and is not recommended.
979
+ *
980
+ * If `false`, each vertical column of table cells will be calculated to fit the contents, or if specified, the width provided in the corresponding `dataOptions` item.
981
+ * Horizontal scroll will be shown automatically if required.
982
+ *
983
+ * @default false
984
+ */
985
+ isAutoContentWidth?: boolean;
986
+ /**
987
+ * Array of column indexes where images are displayed in table cells
988
+ *
989
+ * todo Raw interface only for Fusion parity, should be changed before goes public
990
+ * @internal
991
+ */
992
+ imageColumns?: number[];
993
+ /**
994
+ * Boolean flag whether to always show the results per page select
995
+ *
996
+ * If `true`, the results per page select will be shown even if there is only one page of results.
997
+ *
998
+ * @default false
999
+ */
1000
+ alwaysShowResultsPerPage?: boolean;
923
1001
  }
924
1002
  /**
925
1003
  * Common part of IndicatorStyleOptions for all types of indicator
@@ -973,6 +1051,33 @@ export interface TreemapStyleOptions extends BaseStyleOptions {
973
1051
  };
974
1052
  /**
975
1053
  * Configuration for series labels - titles/names identifying data series in a chart
1054
+ * Single label options object would be applied to all levels.
1055
+ * Array of label options objects would be applied to each level.
1056
+ *
1057
+ * @example
1058
+ * Single label options object would enable labels for all levels.
1059
+ * ```typescript
1060
+ * {
1061
+ * seriesLabels: {
1062
+ * enabled: true,
1063
+ * },
1064
+ * }
1065
+ * ```
1066
+ *
1067
+ * @example
1068
+ * Array of label options objects would disable labels for first level and enable labels for second level.
1069
+ * ```typescript
1070
+ * {
1071
+ * seriesLabels: [
1072
+ * {
1073
+ * enabled: false,
1074
+ * },
1075
+ * {
1076
+ * enabled: true,
1077
+ * },
1078
+ * ],
1079
+ * }
1080
+ * ```
976
1081
  */
977
1082
  seriesLabels?: TreemapSeriesLabels;
978
1083
  /** Tooltip options object */
@@ -981,9 +1086,24 @@ export interface TreemapStyleOptions extends BaseStyleOptions {
981
1086
  mode?: 'value' | 'contribution';
982
1087
  };
983
1088
  }
1089
+ export type SunburstSeriesLabelsBase = SeriesLabelsBase & {
1090
+ /**
1091
+ * Color of the labels border
1092
+ */
1093
+ borderColor?: string;
1094
+ /**
1095
+ * Background color of the labels.
1096
+ */
1097
+ backgroundColor?: string;
1098
+ };
1099
+ export type SunburstSeriesLabels = SunburstSeriesLabelsBase | SunburstSeriesLabelsBase[];
984
1100
  /** Configuration options that define functional style of the various elements of the SunburstChart component */
985
1101
  export interface SunburstStyleOptions extends BaseStyleOptions {
986
- /** Labels options object */
1102
+ /**
1103
+ * Labels options object
1104
+ *
1105
+ * @deprecated Please use `seriesLabels` instead
1106
+ */
987
1107
  labels?: {
988
1108
  /** Array with single label options objects (order of items relative to dataOptions.category) */
989
1109
  category?: {
@@ -991,6 +1111,37 @@ export interface SunburstStyleOptions extends BaseStyleOptions {
991
1111
  enabled?: boolean;
992
1112
  }[];
993
1113
  };
1114
+ /**
1115
+ * Configuration for series labels - titles/names identifying data series in a chart
1116
+ * Single label options object would be applied to all levels.
1117
+ * Array of label options objects would be applied to each level.
1118
+ *
1119
+ * @example
1120
+ * Single label options object would enable labels for all levels.
1121
+ * ```typescript
1122
+ * {
1123
+ * seriesLabels: {
1124
+ * enabled: true,
1125
+ * },
1126
+ * }
1127
+ * ```
1128
+ *
1129
+ * @example
1130
+ * Array of label options objects would disable labels for first level and enable labels for second level.
1131
+ * ```typescript
1132
+ * {
1133
+ * seriesLabels: [
1134
+ * {
1135
+ * enabled: false,
1136
+ * },
1137
+ * {
1138
+ * enabled: true,
1139
+ * },
1140
+ * ],
1141
+ * }
1142
+ * ```
1143
+ */
1144
+ seriesLabels?: SunburstSeriesLabels;
994
1145
  /** Tooltip options object */
995
1146
  tooltip?: {
996
1147
  /** Define mode of data showing */
@@ -1185,7 +1336,7 @@ export type CalendarHeatmapViewType = 'month' | 'quarter' | 'half-year' | 'year'
1185
1336
  */
1186
1337
  export type ChartStyleOptions = RegularChartStyleOptions | TabularChartStyleOptions;
1187
1338
  /** Style options for regular chart types */
1188
- export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions | CalendarHeatmapStyleOptions;
1339
+ export type RegularChartStyleOptions = LineStyleOptions | AreaStyleOptions | StackableStyleOptions | PieStyleOptions | FunnelStyleOptions | PolarStyleOptions | IndicatorStyleOptions | ScatterStyleOptions | TreemapStyleOptions | SunburstStyleOptions | BoxplotStyleOptions | AreamapStyleOptions | ScattermapStyleOptions | AreaRangeStyleOptions | CalendarHeatmapStyleOptions | StreamgraphStyleOptions;
1189
1340
  /** Mapping of each of the chart value series to colors. */
1190
1341
  export type ValueToColorMap = {
1191
1342
  [value: string]: string;
@@ -1496,6 +1647,8 @@ export interface TypographyThemeSettings {
1496
1647
  secondaryTextColor?: string;
1497
1648
  /** Hyperlink color */
1498
1649
  hyperlinkColor?: string;
1650
+ /** Hyperlink hover color */
1651
+ hyperlinkHoverColor?: string;
1499
1652
  /** Settings for font loading */
1500
1653
  fontsLoader?: FontsLoaderSettings;
1501
1654
  }
@@ -1753,6 +1906,13 @@ export type PopoverThemeSettings = {
1753
1906
  * @internal
1754
1907
  */
1755
1908
  export type ButtonsThemeSettings = {
1909
+ /** Theme settings for primary button */
1910
+ primary?: {
1911
+ /** Background color */
1912
+ backgroundColor?: string | ElementStateColors;
1913
+ /** Text color */
1914
+ textColor?: string;
1915
+ };
1756
1916
  /** Theme settings for cancel button */
1757
1917
  cancel?: {
1758
1918
  /** Background color */
@@ -1796,6 +1956,13 @@ export type CompleteThemeSettings = DeepRequired<Omit<ThemeSettings, 'typography
1796
1956
  fontsLoader?: FontsLoaderSettings;
1797
1957
  };
1798
1958
  };
1959
+ /** @internal */
1960
+ export type ThemeConfig = {
1961
+ cssSelectorPrefix?: {
1962
+ enabled?: boolean;
1963
+ value?: string;
1964
+ };
1965
+ };
1799
1966
  /** Complete set of configuration options that define functional style of the various elements of the charts as well as the look and feel of widget itself and widget header. */
1800
1967
  export type WidgetStyleOptions = (ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions | CustomWidgetStyleOptions) & WidgetContainerStyleOptions;
1801
1968
  /** Style settings defining the look and feel of widget itself and widget header */
@@ -394,3 +394,40 @@ export declare const fromHighchartsGradientFormat: (highchartGradient: Highchart
394
394
  * @internal
395
395
  */
396
396
  export declare const withGradientConversion: <T>(color: T) => HighchartsGradientColorObject | Exclude<T, GradientColor>;
397
+ /**
398
+ * Converts a GradientColor to a valid CSS gradient string.
399
+ *
400
+ * For linear gradients, calculates the angle from the direction coordinates.
401
+ * For radial gradients, uses the center position and radius.
402
+ *
403
+ * @param gradient - The gradient color to convert
404
+ * @returns A valid CSS gradient string (e.g., "linear-gradient(90deg, #fff 0%, #000 100%)")
405
+ *
406
+ * @example
407
+ * ```ts
408
+ * const linearGradient: GradientColor = {
409
+ * type: 'linear',
410
+ * direction: { x1: 0, y1: 0, x2: 0, y2: 1 },
411
+ * stops: [
412
+ * { position: 0, color: '#003399' },
413
+ * { position: 1, color: '#3366AA' }
414
+ * ]
415
+ * };
416
+ * const css = toCSSGradientFormat(linearGradient);
417
+ * // Returns: "linear-gradient(180deg, #003399 0%, #3366AA 100%)"
418
+ *
419
+ * const radialGradient: GradientColor = {
420
+ * type: 'radial',
421
+ * center: { centerX: 0.5, centerY: 0.5, radius: 0.8 },
422
+ * stops: [
423
+ * { position: 0, color: '#ff0000' },
424
+ * { position: 1, color: '#0000ff' }
425
+ * ]
426
+ * };
427
+ * const css = toCSSGradientFormat(radialGradient);
428
+ * // Returns: "radial-gradient(circle 80% at 50% 50%, #ff0000 0%, #0000ff 100%)"
429
+ * ```
430
+ *
431
+ * @internal
432
+ */
433
+ export declare const toCSSGradientFormat: (gradient: GradientColor) => string;
@@ -1,5 +1,5 @@
1
1
  import { AlignmentTypes, ChartStyleOptions, GaugeIndicatorStyleOptions, NumericBarIndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, PivotTableStyleOptions, RadiusSizes, ShadowsTypes, SpaceSizes, TabberButtonsWidgetStyleOptions, TableStyleOptions, TextWidgetStyleOptions, WidgetStyleOptions } from '../../types.js';
2
- import { FusionWidgetType, IndicatorWidgetStyle, PivotWidgetStyle, TableWidgetStyle, WidgetDesign, WidgetDto, WidgetSubtype } from '../types.js';
2
+ import { FusionWidgetType, IndicatorWidgetStyle, TableWidgetStyle, WidgetDesign, WidgetDto, WidgetSubtype } from '../types.js';
3
3
  /**
4
4
  * Helper function to extract table chart style options from WidgetDto
5
5
  */
@@ -8,7 +8,7 @@ export declare const getIndicatorTypeSpecificOptions: (widgetSubtype: WidgetSubt
8
8
  /**
9
9
  * Helper function to extract pivot table chart style options from WidgetDto
10
10
  */
11
- export declare function extractPivotTableStyleOptions(widgetStyle: PivotWidgetStyle): PivotTableStyleOptions;
11
+ export declare function extractPivotTableStyleOptions(widget: WidgetDto): PivotTableStyleOptions;
12
12
  /**
13
13
  * Helper function to extract style options from WidgetDto
14
14
  */
@@ -75,6 +75,7 @@ export interface WidgetDto {
75
75
  disallowSelector?: boolean;
76
76
  disallowWidgetTitle?: boolean;
77
77
  supportsHierarchies?: boolean;
78
+ imageColumns?: number[];
78
79
  };
79
80
  source?: any;
80
81
  owner?: string;
@@ -419,6 +420,8 @@ export type TableWidgetStyle = {
419
420
  'colors/columns': boolean;
420
421
  'colors/headers': boolean;
421
422
  'colors/rows': boolean;
423
+ 'width/content': boolean;
424
+ 'width/window': boolean;
422
425
  };
423
426
  export type IndicatorWidgetStyle = WidgetContainerStyleOptions & {
424
427
  'indicator/gauge': {
@@ -1,7 +1,22 @@
1
- import { Attribute } from '@sisense/sdk-data';
2
- import { ScatterDataPoint } from '../..';
1
+ import { Attribute, Column } from '@sisense/sdk-data';
2
+ import { DrilldownSelection, Hierarchy, ScatterDataPoint, StyledColumn } from '../..';
3
3
  import { ChartDataOptions, ChartType, DataPoint } from '../../types';
4
4
  export declare function getDrilldownInitialDimension(chartType: ChartType, dataOptions: ChartDataOptions): Attribute | undefined;
5
5
  export declare function isDrilldownApplicableToChart(chartType: ChartType, dataOptions: ChartDataOptions): boolean;
6
6
  export declare function applyDrilldownDimension(chartType: ChartType, dataOptions: ChartDataOptions, drilldownDimension: Attribute): ChartDataOptions;
7
7
  export declare function prepareDrilldownSelectionPoints(points: (DataPoint | ScatterDataPoint)[], nativeEvent: MouseEvent, dataOptions: ChartDataOptions): DataPoint[];
8
+ /**
9
+ * Collects the available drilldown paths based on the provided paths and currently selected attributes.
10
+ * @param drilldownPaths - The available drilldown paths (attributes or hierarchies)
11
+ * @param selectedAttributes - The currently selected attributes in the drilldown chain
12
+ * @returns Filtered drilldown paths that are still available for selection
13
+ * @internal
14
+ */
15
+ export declare function getAvailableDrilldownPaths(drilldownPaths: (Attribute | Hierarchy)[], selectedAttributes: Attribute[]): (Attribute | Hierarchy)[];
16
+ /**
17
+ * Collects the currently selected attributes in the drilldown chain.
18
+ * @param initialDimension - The initial dimension
19
+ * @param drilldownSelections - The drilldown selections
20
+ * @returns The currently selected attributes in the drilldown chain
21
+ */
22
+ export declare function getSelectedDrilldownAttributes(initialDimension: Attribute | Column | StyledColumn, drilldownSelections: DrilldownSelection[]): Attribute[];
@@ -5,7 +5,6 @@ import { Hierarchy } from '../../models';
5
5
  import { DataPoint, DrilldownSelection, MenuItemSection, MenuPosition, StyledColumn } from '../../types.js';
6
6
  type UseDrilldownParams = {
7
7
  initialDimension: Column | StyledColumn;
8
- drilldownPaths?: (Attribute | Hierarchy)[];
9
8
  drilldownSelections?: DrilldownSelection[];
10
9
  /**
11
10
  * todo: make it optional when we will have a public `MenuProvider`.
@@ -14,11 +13,11 @@ type UseDrilldownParams = {
14
13
  openMenu: OpenMenuFn;
15
14
  onDrilldownSelectionsChange?: (selections: DrilldownSelection[]) => void;
16
15
  };
17
- export declare const useDrilldown: ({ initialDimension, drilldownPaths, drilldownSelections, openMenu, onDrilldownSelectionsChange, }: UseDrilldownParams) => {
16
+ export declare const useDrilldown: ({ initialDimension, drilldownSelections, openMenu, onDrilldownSelectionsChange, }: UseDrilldownParams) => {
18
17
  drilldownDimension: Attribute;
19
18
  drilldownFilters: import("@sisense/sdk-data").MembersFilter[];
20
19
  breadcrumbs: import("react/jsx-runtime").JSX.Element;
21
- openDrilldownMenu: (position: MenuPosition, points: DataPoint[]) => void;
20
+ openDrilldownMenu: (position: MenuPosition, points: DataPoint[], availableDrilldownPaths?: (Attribute | Hierarchy)[]) => void;
22
21
  };
23
22
  /** @internal */
24
23
  export declare function getSelectionTitleMenuItem(points: DataPoint[], drilldownDimension: Attribute): MenuItemSection;
@@ -6,7 +6,7 @@ type UseWithDrilldownParams = {
6
6
  };
7
7
  export declare const useWithDrilldown: ({ propsToExtend, onDrilldownSelectionsChange, }: UseWithDrilldownParams) => {
8
8
  propsWithDrilldown: ChartWidgetProps;
9
- isDrilldownEnabled: boolean | 0;
9
+ isDrilldownEnabled: boolean;
10
10
  breadcrumbs: import("react/jsx-runtime").JSX.Element;
11
11
  };
12
12
  export {};
@@ -1 +1 @@
1
- "use strict";const a=require("./execute-query-CNt566O5.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;
1
+ "use strict";const a=require("./execute-query-CB4XfUng.cjs");class s extends a.DimensionalElement{constructor(e,r){var i;super((i=e.jaql.title)!==null&&i!==void 0?i:"",r),this.__serializable="JaqlElement",this.expression=e.jaql.dim||e.jaql.formula,this.metadataItem=e,e.jaql.agg?this.aggregation=e.jaql.agg:delete this.aggregation,e.jaql.formula?this.formula=e.jaql.formula:delete this.formula,e.jaql.sort?this.sortType=a.getSortType(e.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(e){return e===!0?this.metadataItem.jaql:this.metadataItem}serialize(){const e=super.serialize();return e.metadataItem=this.metadataItem,e.type=this.type,e}}const l={text:a.MetadataTypes.TextAttribute,numeric:a.MetadataTypes.NumericAttribute,datetime:a.MetadataTypes.DateLevel},d=t=>t&&t.__serializable==="JaqlElement";function n(t){var e;return new s(t,(e=l[t.jaql.datatype])!==null&&e!==void 0?e:"numeric")}function o(t){const{jaql:e}=t;if(e.formula)return a.createCalculatedMeasureHelper(e);const r=a.getGranularityFromJaql(e);return"agg"in e&&e.dim&&e.datatype?a.createMeasureHelper({expression:e.dim,dataType:e.datatype,agg:e.agg||"",granularity:r,format:void 0,sort:e.sort,title:e.title,dataSource:e.datasource}):e.dim&&e.datatype?a.createAttributeHelper({expression:e.dim,dataType:e.datatype,granularity:r,sort:e.sort,title:e.title,panel:t.panel,dataSource:e.datasource}):n(t)}const u={jaql:{datasource:{title:"",type:"elasticube"},metadata:[]},queryTitle:"",chartRecommendations:{}},m={model:"",metadata:[],chart:{},queryTitle:""},c=t=>"widgetProps"in t,p=t=>"dashboardOid"in t&&"widgetOid"in t,g=t=>"dashboardProps"in t,y=t=>"dashboardOid"in t;exports.EMPTY_EXPANDED_QUERY_MODEL=u;exports.EMPTY_SIMPLE_QUERY_MODEL=m;exports.JaqlElement=s;exports.createDimensionalElementFromMetadataItem=o;exports.isByIdDashboardCodeParams=y;exports.isByIdWidgetCodeParams=p;exports.isClientSideDashboardCodeParams=g;exports.isClientSideWidgetCodeParams=c;exports.isJaqlElement=d;