@sisense/sdk-ui 2.15.0 → 2.16.1
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.
- package/dist/ai.cjs +418 -28
- package/dist/ai.js +2080 -2112
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1004 -1466
- package/dist/analytics-composer.cjs +51 -51
- package/dist/analytics-composer.js +556 -565
- package/dist/{derive-chart-family-DHOhho50.js → derive-chart-family-DLwnWblo.js} +7991 -7878
- package/dist/derive-chart-family-d7eaC45K.cjs +190 -0
- package/dist/{dimensions-CtINdhqK.cjs → dimensions-BUWtZxix.cjs} +1 -1
- package/dist/{dimensions-Biz7anQc.js → dimensions-DvDgZ8RW.js} +1 -1
- package/dist/{execute-query-k_ytd_Rf.cjs → execute-query-CB4XfUng.cjs} +1 -1
- package/dist/{execute-query-D1JOjJ8n.js → execute-query-CFK2R_1S.js} +681 -643
- package/dist/index.cjs +1549 -32
- package/dist/index.js +14125 -13178
- package/dist/index.umd.js +2724 -393
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +9 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +9 -0
- 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
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/design-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/axes.d.ts +13 -0
- 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
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/plot-options.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/streamgraph-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/types.d.ts +24 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +7 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +27 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +11 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +5 -4
- package/dist/packages/sdk-ui/src/charts/table/styles/style-constants.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +9 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +5 -1
- package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +1 -0
- package/dist/packages/sdk-ui/src/props.d.ts +32 -1
- package/dist/packages/sdk-ui/src/streamgraph-chart.d.ts +42 -0
- package/dist/packages/sdk-ui/src/styled/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/styled/with-css-selector-prefix.d.ts +2 -0
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/theme-provider/theme-context.d.ts +3 -1
- package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +8 -0
- package/dist/packages/sdk-ui/src/types.d.ts +84 -4
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/translate-widget-style-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +17 -2
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +2 -3
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
- package/dist/{types-B8jkBXCe.cjs → types-Clbnx4mQ.cjs} +1 -1
- package/dist/{types-DZhBEm3K.js → types-D1mqt0Mg.js} +2 -8
- package/dist/{use-common-filters-8MsC7-0N.js → use-common-filters-CCeRLdGB.js} +44102 -33465
- package/dist/use-common-filters-DOn2HdBv.cjs +1325 -0
- package/dist/{widget-composer-DBwcb3ao.cjs → widget-composer-BaOTPn5w.cjs} +1 -1
- package/dist/{widget-composer-D-ktDgUE.js → widget-composer-Dhl_nmhq.js} +115 -111
- package/package.json +8 -9
- package/dist/derive-chart-family-0J_WPLDy.cjs +0 -190
- package/dist/packages/sdk-ui/src/common/icons/edit-pencil-icon.d.ts +0 -3
- package/dist/use-common-filters-DlP4xqST.cjs +0 -846
|
@@ -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,
|
|
13
|
-
import { GeoDataElement
|
|
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,
|
|
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
|
*/
|
|
@@ -934,6 +983,21 @@ export interface PivotTableStyleOptions {
|
|
|
934
983
|
* @default false
|
|
935
984
|
*/
|
|
936
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;
|
|
937
1001
|
}
|
|
938
1002
|
/**
|
|
939
1003
|
* Common part of IndicatorStyleOptions for all types of indicator
|
|
@@ -1272,7 +1336,7 @@ export type CalendarHeatmapViewType = 'month' | 'quarter' | 'half-year' | 'year'
|
|
|
1272
1336
|
*/
|
|
1273
1337
|
export type ChartStyleOptions = RegularChartStyleOptions | TabularChartStyleOptions;
|
|
1274
1338
|
/** Style options for regular chart types */
|
|
1275
|
-
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;
|
|
1276
1340
|
/** Mapping of each of the chart value series to colors. */
|
|
1277
1341
|
export type ValueToColorMap = {
|
|
1278
1342
|
[value: string]: string;
|
|
@@ -1583,6 +1647,8 @@ export interface TypographyThemeSettings {
|
|
|
1583
1647
|
secondaryTextColor?: string;
|
|
1584
1648
|
/** Hyperlink color */
|
|
1585
1649
|
hyperlinkColor?: string;
|
|
1650
|
+
/** Hyperlink hover color */
|
|
1651
|
+
hyperlinkHoverColor?: string;
|
|
1586
1652
|
/** Settings for font loading */
|
|
1587
1653
|
fontsLoader?: FontsLoaderSettings;
|
|
1588
1654
|
}
|
|
@@ -1840,6 +1906,13 @@ export type PopoverThemeSettings = {
|
|
|
1840
1906
|
* @internal
|
|
1841
1907
|
*/
|
|
1842
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
|
+
};
|
|
1843
1916
|
/** Theme settings for cancel button */
|
|
1844
1917
|
cancel?: {
|
|
1845
1918
|
/** Background color */
|
|
@@ -1883,6 +1956,13 @@ export type CompleteThemeSettings = DeepRequired<Omit<ThemeSettings, 'typography
|
|
|
1883
1956
|
fontsLoader?: FontsLoaderSettings;
|
|
1884
1957
|
};
|
|
1885
1958
|
};
|
|
1959
|
+
/** @internal */
|
|
1960
|
+
export type ThemeConfig = {
|
|
1961
|
+
cssSelectorPrefix?: {
|
|
1962
|
+
enabled?: boolean;
|
|
1963
|
+
value?: string;
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1886
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. */
|
|
1887
1967
|
export type WidgetStyleOptions = (ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions | CustomWidgetStyleOptions) & WidgetContainerStyleOptions;
|
|
1888
1968
|
/** Style settings defining the look and feel of widget itself and widget header */
|
|
@@ -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,
|
|
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(
|
|
11
|
+
export declare function extractPivotTableStyleOptions(widget: WidgetDto): PivotTableStyleOptions;
|
|
12
12
|
/**
|
|
13
13
|
* Helper function to extract style options from WidgetDto
|
|
14
14
|
*/
|
|
@@ -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,
|
|
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
|
|
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-
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-
|
|
1
|
+
import { f as i, g as l, h as n, i as o, D as d, k as u, M as s } from "./execute-query-CFK2R_1S.js";
|
|
2
2
|
class m extends d {
|
|
3
3
|
constructor(e, t) {
|
|
4
4
|
var r;
|
|
@@ -52,13 +52,7 @@ function y(a) {
|
|
|
52
52
|
}) : p(a);
|
|
53
53
|
}
|
|
54
54
|
const q = {
|
|
55
|
-
jaql: {
|
|
56
|
-
datasource: {
|
|
57
|
-
title: "",
|
|
58
|
-
type: "elasticube"
|
|
59
|
-
},
|
|
60
|
-
metadata: []
|
|
61
|
-
},
|
|
55
|
+
jaql: { datasource: { title: "", type: "elasticube" }, metadata: [] },
|
|
62
56
|
queryTitle: "",
|
|
63
57
|
chartRecommendations: {}
|
|
64
58
|
}, f = {
|