@sisense/sdk-ui 2.13.0 → 2.15.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.
- package/dist/ai.cjs +2 -2
- package/dist/ai.js +6 -6
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +4 -4
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-Ca1NT5US.cjs → derive-chart-family-0J_WPLDy.cjs} +72 -48
- package/dist/{derive-chart-family-BcASqlOf.js → derive-chart-family-DHOhho50.js} +10577 -10434
- package/dist/{dimensions-DOxD1XtL.js → dimensions-Biz7anQc.js} +1 -1
- package/dist/{dimensions-DCT9XInO.cjs → dimensions-CtINdhqK.cjs} +1 -1
- package/dist/{execute-query-JhI9RXe_.js → execute-query-D1JOjJ8n.js} +1199 -1165
- package/dist/execute-query-k_ytd_Rf.cjs +1 -0
- package/dist/index.cjs +24 -24
- package/dist/index.js +6319 -6193
- package/dist/index.umd.js +362 -337
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +23 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/continuous-axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/helpers.d.ts +24 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/split-axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +12 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-per-chart-instance.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +7 -6
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +0 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +28 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +28 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/icons/alert-icon.d.ts +2 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +76 -4
- package/dist/packages/sdk-ui/src/dynamic-size-container/default-size.d.ts +20 -5
- package/dist/packages/sdk-ui/src/highcharts-renderer.d.ts +13 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -1
- package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +8 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +16 -0
- package/dist/packages/sdk-ui/src/types.d.ts +196 -53
- package/dist/packages/sdk-ui/src/utils/gradient.d.ts +37 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +2 -0
- package/dist/{types-Cl0_Tfey.cjs → types-B8jkBXCe.cjs} +1 -1
- package/dist/{types-CnFd03Ga.js → types-DZhBEm3K.js} +1 -1
- package/dist/{use-common-filters-qFWk1Ia5.js → use-common-filters-8MsC7-0N.js} +26731 -25836
- package/dist/use-common-filters-DlP4xqST.cjs +846 -0
- package/dist/{widget-composer-ovIwmgin.js → widget-composer-D-ktDgUE.js} +131 -130
- package/dist/{widget-composer-C7ZAcFHK.cjs → widget-composer-DBwcb3ao.cjs} +5 -5
- package/package.json +7 -7
- package/dist/execute-query-CvH_36GC.cjs +0 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +0 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +0 -12
- package/dist/packages/sdk-ui/src/highcharts-memorized.d.ts +0 -7
- package/dist/use-common-filters-WTVrWfsY.cjs +0 -845
|
@@ -110,8 +110,7 @@ export type SeriesLabelsTextStyle = Omit<TextStyle, 'pointerEvents' | 'textOverf
|
|
|
110
110
|
*/
|
|
111
111
|
color?: 'contrast' | string;
|
|
112
112
|
};
|
|
113
|
-
|
|
114
|
-
export type SeriesLabels = {
|
|
113
|
+
export type SeriesLabelsBase = {
|
|
115
114
|
/** Boolean flag that defines if series labels should be shown on the chart */
|
|
116
115
|
enabled: boolean;
|
|
117
116
|
/**
|
|
@@ -119,41 +118,6 @@ export type SeriesLabels = {
|
|
|
119
118
|
* Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label
|
|
120
119
|
* */
|
|
121
120
|
rotation?: number;
|
|
122
|
-
/**
|
|
123
|
-
* Boolean flag that defines if value should be shown in series labels
|
|
124
|
-
* (if not specified, default is determined by chart type)
|
|
125
|
-
*/
|
|
126
|
-
showValue?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Boolean flag that defines if percentage should be shown in series labels
|
|
129
|
-
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
130
|
-
*/
|
|
131
|
-
showPercentage?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Boolean flag that defines if percentage should be shown with decimals
|
|
134
|
-
* (will work only if `showPercentage` is `true`)
|
|
135
|
-
*/
|
|
136
|
-
showPercentDecimals?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Text to be shown before the series labels
|
|
139
|
-
*/
|
|
140
|
-
prefix?: string;
|
|
141
|
-
/**
|
|
142
|
-
* Text to be shown after the series labels
|
|
143
|
-
*/
|
|
144
|
-
suffix?: string;
|
|
145
|
-
/**
|
|
146
|
-
* If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
|
|
147
|
-
*/
|
|
148
|
-
alignInside?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* The horizontal alignment of the data label compared to the point
|
|
151
|
-
*/
|
|
152
|
-
align?: 'left' | 'center' | 'right';
|
|
153
|
-
/**
|
|
154
|
-
* The vertical alignment of the data label
|
|
155
|
-
*/
|
|
156
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
157
121
|
/**
|
|
158
122
|
* Styling for labels text
|
|
159
123
|
*/
|
|
@@ -193,11 +157,49 @@ export type SeriesLabels = {
|
|
|
193
157
|
*/
|
|
194
158
|
yOffset?: number;
|
|
195
159
|
/**
|
|
196
|
-
*
|
|
160
|
+
* Text to be shown before the series labels
|
|
161
|
+
*/
|
|
162
|
+
prefix?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Text to be shown after the series labels
|
|
165
|
+
*/
|
|
166
|
+
suffix?: string;
|
|
167
|
+
};
|
|
168
|
+
export type SeriesLabelsAligning = {
|
|
169
|
+
/**
|
|
170
|
+
* If `true`, series labels appear inside bars/columns instead of at the datapoints. Not applicable for some chart types e.g. line, area
|
|
171
|
+
*/
|
|
172
|
+
alignInside?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* The horizontal alignment of the data label compared to the point
|
|
197
175
|
*
|
|
198
|
-
*
|
|
176
|
+
* For some chart types, this will only apply when `alignInside` is `true`.
|
|
199
177
|
*/
|
|
200
|
-
|
|
178
|
+
align?: 'left' | 'center' | 'right';
|
|
179
|
+
/**
|
|
180
|
+
* The vertical alignment of the data label
|
|
181
|
+
*
|
|
182
|
+
* For some chart types, this will only apply when `alignInside` is `true`.
|
|
183
|
+
*/
|
|
184
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
185
|
+
};
|
|
186
|
+
/** Options that define series labels - titles/names identifying data series in a chart. */
|
|
187
|
+
export type SeriesLabels = SeriesLabelsBase & SeriesLabelsAligning & {
|
|
188
|
+
/**
|
|
189
|
+
* Boolean flag that defines if value should be shown in series labels
|
|
190
|
+
* (if not specified, default is determined by chart type)
|
|
191
|
+
*/
|
|
192
|
+
showValue?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Boolean flag that defines if percentage should be shown in series labels
|
|
195
|
+
* (only applicable for subtypes that support percentage, like "stacked100")
|
|
196
|
+
*/
|
|
197
|
+
showPercentage?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Boolean flag that defines if percentage should be shown with decimals
|
|
200
|
+
* (will work only if `showPercentage` is `true`)
|
|
201
|
+
*/
|
|
202
|
+
showPercentDecimals?: boolean;
|
|
201
203
|
};
|
|
202
204
|
/**
|
|
203
205
|
* Text styling options for total labels.
|
|
@@ -529,10 +531,6 @@ export interface BaseStyleOptions extends ReservedStyleOptions {
|
|
|
529
531
|
* Configuration for legend - a key that provides information about the data series or colors used in chart
|
|
530
532
|
* */
|
|
531
533
|
legend?: LegendOptions;
|
|
532
|
-
/**
|
|
533
|
-
* Configuration for series labels - titles/names identifying data series in a chart
|
|
534
|
-
*/
|
|
535
|
-
seriesLabels?: SeriesLabels;
|
|
536
534
|
/** Data limit for series or categories that will be plotted */
|
|
537
535
|
dataLimits?: DataLimits;
|
|
538
536
|
/**
|
|
@@ -596,6 +594,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
596
594
|
* - `right` - step occurs after the point
|
|
597
595
|
*/
|
|
598
596
|
stepPosition?: 'left' | 'center' | 'right';
|
|
597
|
+
/**
|
|
598
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
599
|
+
*/
|
|
600
|
+
seriesLabels?: SeriesLabels;
|
|
599
601
|
}
|
|
600
602
|
/** Configuration options that define functional style of the various elements of AreaRangeChart */
|
|
601
603
|
export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -610,6 +612,10 @@ export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOp
|
|
|
610
612
|
line?: LineOptions;
|
|
611
613
|
/** Subtype of AreaRangeChart */
|
|
612
614
|
subtype?: AreaRangeSubtype;
|
|
615
|
+
/**
|
|
616
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
617
|
+
*/
|
|
618
|
+
seriesLabels?: SeriesLabels;
|
|
613
619
|
}
|
|
614
620
|
/** Configuration options that define functional style of the various elements of AreaChart */
|
|
615
621
|
export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -624,6 +630,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
624
630
|
line?: LineOptions;
|
|
625
631
|
/** Subtype of AreaChart*/
|
|
626
632
|
subtype?: AreaSubtype;
|
|
633
|
+
/**
|
|
634
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
635
|
+
*/
|
|
636
|
+
seriesLabels?: SeriesLabels;
|
|
627
637
|
/**
|
|
628
638
|
* Configuration for total labels
|
|
629
639
|
* Only supported for stacked chart subtypes
|
|
@@ -634,6 +644,10 @@ export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
634
644
|
export interface StackableStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
635
645
|
/** Subtype of stackable chart */
|
|
636
646
|
subtype?: StackableSubtype;
|
|
647
|
+
/**
|
|
648
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
649
|
+
*/
|
|
650
|
+
seriesLabels?: SeriesLabels;
|
|
637
651
|
/**
|
|
638
652
|
* Configuration for total labels
|
|
639
653
|
* Only supported for stacked chart subtypes
|
|
@@ -679,7 +693,12 @@ export type PiePercentageLabels = {
|
|
|
679
693
|
*/
|
|
680
694
|
showDecimals?: boolean;
|
|
681
695
|
};
|
|
682
|
-
export type PieSeriesLabels =
|
|
696
|
+
export type PieSeriesLabels = SeriesLabelsBase & {
|
|
697
|
+
/**
|
|
698
|
+
* Boolean flag that defines if value should be shown in series labels
|
|
699
|
+
* (if not specified, default is determined by chart type)
|
|
700
|
+
*/
|
|
701
|
+
showValue?: boolean;
|
|
683
702
|
/**
|
|
684
703
|
* Boolean flag that defines if the category should be shown
|
|
685
704
|
* @default `true`
|
|
@@ -717,21 +736,35 @@ export interface PieStyleOptions extends BaseStyleOptions {
|
|
|
717
736
|
*/
|
|
718
737
|
seriesLabels?: PieSeriesLabels;
|
|
719
738
|
}
|
|
739
|
+
export interface FunnelSeriesLabels extends SeriesLabels {
|
|
740
|
+
/** Boolean flag that defines if category names should be shown in series labels */
|
|
741
|
+
showCategory?: boolean;
|
|
742
|
+
}
|
|
720
743
|
/** Configuration options that define functional style of the various elements of FunnelChart */
|
|
721
|
-
export interface FunnelStyleOptions extends
|
|
744
|
+
export interface FunnelStyleOptions extends BaseStyleOptions {
|
|
722
745
|
/** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
|
|
723
746
|
funnelSize?: FunnelSize;
|
|
724
747
|
/** Visual type of the lowest slice of FunnelChart */
|
|
725
748
|
funnelType?: FunnelType;
|
|
726
749
|
/** Direction of FunnelChart narrowing */
|
|
727
750
|
funnelDirection?: FunnelDirection;
|
|
728
|
-
/**
|
|
751
|
+
/**
|
|
752
|
+
* Configuration that defines behavior of data labels on FunnelChart
|
|
753
|
+
*
|
|
754
|
+
* @deprecated Use seriesLabels instead
|
|
755
|
+
*/
|
|
729
756
|
labels?: Labels;
|
|
730
757
|
/** Subtype of FunnelChart*/
|
|
731
758
|
subtype?: never;
|
|
759
|
+
/** Configuration for series labels */
|
|
760
|
+
seriesLabels?: FunnelSeriesLabels;
|
|
732
761
|
}
|
|
733
762
|
/** Configuration options that define functional style of the various elements of PolarChart */
|
|
734
763
|
export interface PolarStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
764
|
+
/**
|
|
765
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
766
|
+
*/
|
|
767
|
+
seriesLabels?: SeriesLabels;
|
|
735
768
|
/** Subtype of PolarChart*/
|
|
736
769
|
subtype?: PolarSubtype;
|
|
737
770
|
}
|
|
@@ -887,6 +920,20 @@ export interface PivotTableStyleOptions {
|
|
|
887
920
|
* Color of highlighted cells. If not specified, default value is light yellow (`#ffff9c`).
|
|
888
921
|
*/
|
|
889
922
|
highlightColor?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Boolean flag whether the widths of each vertical column of table cells should be automatically calculated
|
|
925
|
+
* to fit the width of the component, which defaults to '100%' if `width` is not specified.
|
|
926
|
+
*
|
|
927
|
+
* If `true`, all vertical columns of table cells will be resized to fit within the component width without requiring horizontal scroll.
|
|
928
|
+
* 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.
|
|
929
|
+
* Using `isAutoContentWidth: true` with a large number of columns displayed may result in very narrow columns, and is not recommended.
|
|
930
|
+
*
|
|
931
|
+
* 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.
|
|
932
|
+
* Horizontal scroll will be shown automatically if required.
|
|
933
|
+
*
|
|
934
|
+
* @default false
|
|
935
|
+
*/
|
|
936
|
+
isAutoContentWidth?: boolean;
|
|
890
937
|
}
|
|
891
938
|
/**
|
|
892
939
|
* Common part of IndicatorStyleOptions for all types of indicator
|
|
@@ -916,16 +963,21 @@ export interface GaugeIndicatorStyleOptions extends BaseIndicatorStyleOptions {
|
|
|
916
963
|
/** Bar height for gauge indicator in ticker mode */
|
|
917
964
|
tickerBarHeight?: number;
|
|
918
965
|
}
|
|
966
|
+
export type ScatterSeriesLabels = SeriesLabelsBase & SeriesLabelsAligning;
|
|
919
967
|
/** Configuration options that define functional style of the various elements of ScatterChart */
|
|
920
|
-
export interface ScatterStyleOptions extends
|
|
968
|
+
export interface ScatterStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
921
969
|
/** Subtype of ScatterChart*/
|
|
922
970
|
subtype?: never;
|
|
923
971
|
markerSize?: ScatterMarkerSize;
|
|
924
|
-
seriesLabels?:
|
|
972
|
+
seriesLabels?: ScatterSeriesLabels;
|
|
925
973
|
}
|
|
974
|
+
export type TreemapSeriesLabels = (SeriesLabelsBase & SeriesLabelsAligning) | (SeriesLabelsBase & SeriesLabelsAligning)[];
|
|
926
975
|
/** Configuration options that define functional style of the various elements of TreemapChart */
|
|
927
|
-
export interface TreemapStyleOptions extends
|
|
928
|
-
/**
|
|
976
|
+
export interface TreemapStyleOptions extends BaseStyleOptions {
|
|
977
|
+
/**
|
|
978
|
+
* Labels options object
|
|
979
|
+
* @deprecated Please use `seriesLabels` instead
|
|
980
|
+
*/
|
|
929
981
|
labels?: {
|
|
930
982
|
/** Array with single label options objects (order of items relative to dataOptions.category) */
|
|
931
983
|
category?: {
|
|
@@ -933,15 +985,61 @@ export interface TreemapStyleOptions extends Omit<BaseStyleOptions, 'seriesLabel
|
|
|
933
985
|
enabled?: boolean;
|
|
934
986
|
}[];
|
|
935
987
|
};
|
|
988
|
+
/**
|
|
989
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
990
|
+
* Single label options object would be applied to all levels.
|
|
991
|
+
* Array of label options objects would be applied to each level.
|
|
992
|
+
*
|
|
993
|
+
* @example
|
|
994
|
+
* Single label options object would enable labels for all levels.
|
|
995
|
+
* ```typescript
|
|
996
|
+
* {
|
|
997
|
+
* seriesLabels: {
|
|
998
|
+
* enabled: true,
|
|
999
|
+
* },
|
|
1000
|
+
* }
|
|
1001
|
+
* ```
|
|
1002
|
+
*
|
|
1003
|
+
* @example
|
|
1004
|
+
* Array of label options objects would disable labels for first level and enable labels for second level.
|
|
1005
|
+
* ```typescript
|
|
1006
|
+
* {
|
|
1007
|
+
* seriesLabels: [
|
|
1008
|
+
* {
|
|
1009
|
+
* enabled: false,
|
|
1010
|
+
* },
|
|
1011
|
+
* {
|
|
1012
|
+
* enabled: true,
|
|
1013
|
+
* },
|
|
1014
|
+
* ],
|
|
1015
|
+
* }
|
|
1016
|
+
* ```
|
|
1017
|
+
*/
|
|
1018
|
+
seriesLabels?: TreemapSeriesLabels;
|
|
936
1019
|
/** Tooltip options object */
|
|
937
1020
|
tooltip?: {
|
|
938
1021
|
/** Define mode of data showing */
|
|
939
1022
|
mode?: 'value' | 'contribution';
|
|
940
1023
|
};
|
|
941
1024
|
}
|
|
1025
|
+
export type SunburstSeriesLabelsBase = SeriesLabelsBase & {
|
|
1026
|
+
/**
|
|
1027
|
+
* Color of the labels border
|
|
1028
|
+
*/
|
|
1029
|
+
borderColor?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* Background color of the labels.
|
|
1032
|
+
*/
|
|
1033
|
+
backgroundColor?: string;
|
|
1034
|
+
};
|
|
1035
|
+
export type SunburstSeriesLabels = SunburstSeriesLabelsBase | SunburstSeriesLabelsBase[];
|
|
942
1036
|
/** Configuration options that define functional style of the various elements of the SunburstChart component */
|
|
943
|
-
export interface SunburstStyleOptions extends
|
|
944
|
-
/**
|
|
1037
|
+
export interface SunburstStyleOptions extends BaseStyleOptions {
|
|
1038
|
+
/**
|
|
1039
|
+
* Labels options object
|
|
1040
|
+
*
|
|
1041
|
+
* @deprecated Please use `seriesLabels` instead
|
|
1042
|
+
*/
|
|
945
1043
|
labels?: {
|
|
946
1044
|
/** Array with single label options objects (order of items relative to dataOptions.category) */
|
|
947
1045
|
category?: {
|
|
@@ -949,6 +1047,37 @@ export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabe
|
|
|
949
1047
|
enabled?: boolean;
|
|
950
1048
|
}[];
|
|
951
1049
|
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
1052
|
+
* Single label options object would be applied to all levels.
|
|
1053
|
+
* Array of label options objects would be applied to each level.
|
|
1054
|
+
*
|
|
1055
|
+
* @example
|
|
1056
|
+
* Single label options object would enable labels for all levels.
|
|
1057
|
+
* ```typescript
|
|
1058
|
+
* {
|
|
1059
|
+
* seriesLabels: {
|
|
1060
|
+
* enabled: true,
|
|
1061
|
+
* },
|
|
1062
|
+
* }
|
|
1063
|
+
* ```
|
|
1064
|
+
*
|
|
1065
|
+
* @example
|
|
1066
|
+
* Array of label options objects would disable labels for first level and enable labels for second level.
|
|
1067
|
+
* ```typescript
|
|
1068
|
+
* {
|
|
1069
|
+
* seriesLabels: [
|
|
1070
|
+
* {
|
|
1071
|
+
* enabled: false,
|
|
1072
|
+
* },
|
|
1073
|
+
* {
|
|
1074
|
+
* enabled: true,
|
|
1075
|
+
* },
|
|
1076
|
+
* ],
|
|
1077
|
+
* }
|
|
1078
|
+
* ```
|
|
1079
|
+
*/
|
|
1080
|
+
seriesLabels?: SunburstSeriesLabels;
|
|
952
1081
|
/** Tooltip options object */
|
|
953
1082
|
tooltip?: {
|
|
954
1083
|
/** Define mode of data showing */
|
|
@@ -959,6 +1088,10 @@ export interface SunburstStyleOptions extends Omit<BaseStyleOptions, 'seriesLabe
|
|
|
959
1088
|
export interface BoxplotStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
960
1089
|
/** Subtype of the BoxplotChart component*/
|
|
961
1090
|
subtype?: BoxplotSubtype;
|
|
1091
|
+
/**
|
|
1092
|
+
* Configuration for series labels - titles/names identifying data series in a chart
|
|
1093
|
+
*/
|
|
1094
|
+
seriesLabels?: SeriesLabels;
|
|
962
1095
|
}
|
|
963
1096
|
/**
|
|
964
1097
|
* Type of map to display on the AreamapChart component
|
|
@@ -1025,10 +1158,20 @@ export type CalendarHeatmapCellLabels = {
|
|
|
1025
1158
|
color?: string | 'contrast';
|
|
1026
1159
|
};
|
|
1027
1160
|
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Calendar heatmap chart subtype
|
|
1163
|
+
*/
|
|
1164
|
+
export type CalendarHeatmapSubtype = 'calendar-heatmap/split' | 'calendar-heatmap/continuous';
|
|
1028
1165
|
/**
|
|
1029
1166
|
* Configuration options that define functional style of the various elements of calendar-heatmap chart
|
|
1030
1167
|
*/
|
|
1031
1168
|
export interface CalendarHeatmapStyleOptions extends Pick<BaseStyleOptions, 'width' | 'height'> {
|
|
1169
|
+
/**
|
|
1170
|
+
* {@inheritDoc CalendarHeatmapSubtype}
|
|
1171
|
+
*
|
|
1172
|
+
* @default 'calendar-heatmap/split'
|
|
1173
|
+
*/
|
|
1174
|
+
subtype?: CalendarHeatmapSubtype;
|
|
1032
1175
|
/**
|
|
1033
1176
|
* {@inheritDoc CalendarHeatmapViewType}
|
|
1034
1177
|
*/
|
|
@@ -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;
|
|
@@ -419,6 +419,8 @@ export type TableWidgetStyle = {
|
|
|
419
419
|
'colors/columns': boolean;
|
|
420
420
|
'colors/headers': boolean;
|
|
421
421
|
'colors/rows': boolean;
|
|
422
|
+
'width/content': boolean;
|
|
423
|
+
'width/window': boolean;
|
|
422
424
|
};
|
|
423
425
|
export type IndicatorWidgetStyle = WidgetContainerStyleOptions & {
|
|
424
426
|
'indicator/gauge': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./execute-query-
|
|
1
|
+
"use strict";const a=require("./execute-query-k_ytd_Rf.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;
|