@sisense/sdk-ui 1.18.1 → 1.19.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 +1 -1
- package/dist/ai.js +32 -32
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +1 -1
- package/dist/app/settings/settings.d.ts +1 -1
- package/dist/chart-data/cartesian-data.d.ts +6 -0
- package/dist/chart-data-options/utils.d.ts +3 -0
- package/dist/chart-options-processor/apply-event-handlers.d.ts +2 -1
- package/dist/chart-options-processor/data-points.d.ts +10 -0
- package/dist/charts/map-charts/areamap/areamap-utils.d.ts +11 -0
- package/dist/charts/map-charts/scattermap/utils/location.d.ts +2 -2
- package/dist/common/components/loading-indicator.d.ts +1 -150
- package/dist/common-filters/selection-utils.d.ts +3 -3
- package/dist/dashboard/utils.d.ts +0 -1
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +446 -450
- package/dist/dashboard-widget/translate-widget-filters.d.ts +53 -53
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -3
- package/dist/dashboard-widget/types.d.ts +55 -5
- package/dist/dashboard-widget/utils.d.ts +3 -1
- package/dist/{get-widget-options-DJexR5_Z.js → get-widget-options-ClnEbAD8.js} +3700 -3685
- package/dist/{get-widget-options-CDWzHX-s.cjs → get-widget-options-CzFDw_pX.cjs} +76 -76
- package/dist/index.cjs +184 -172
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12483 -11919
- package/dist/models/widget/widget-model.d.ts +18 -2
- package/dist/plugins-provider/custom-plugins-provider.d.ts +24 -0
- package/dist/plugins-provider/index.d.ts +2 -0
- package/dist/plugins-provider/plugins-context.d.ts +9 -0
- package/dist/plugins-provider/plugins-provider.d.ts +15 -0
- package/dist/plugins-provider/types.d.ts +8 -0
- package/dist/props.d.ts +10 -1
- package/dist/sisense-chart/types.d.ts +1 -2
- package/dist/theme-provider/fonts-loader/fonts-loader.d.ts +5 -0
- package/dist/theme-provider/fonts-loader/use-fonts-loader.d.ts +2 -0
- package/dist/themes/legacy-design-settings.d.ts +1 -1
- package/dist/themes/theme-loader.d.ts +1 -1
- package/dist/translation/resources/en.d.ts +2 -1
- package/dist/translation/resources/index.d.ts +4 -2
- package/dist/types.d.ts +145 -13
- package/dist/{useQuery-CvKBErf7.js → useQuery-CHAg2bkd.js} +10626 -10286
- package/dist/useQuery-CV4-tm99.cjs +440 -0
- package/dist/utils/filters.d.ts +1 -3
- package/dist/utils/utility-types.d.ts +4 -0
- package/dist/widgets/text-widget.d.ts +4 -0
- package/package.json +9 -7
- package/dist/dashboard/components/plugin-service.d.ts +0 -21
- package/dist/useQuery-Jw0_qpdz.cjs +0 -433
|
@@ -13,11 +13,15 @@ export type CategoricalWidgetType = 'chart/pie' | 'chart/funnel' | 'treemap' | '
|
|
|
13
13
|
* The type of a widget on a dashboard that is a variant of tabular widget.
|
|
14
14
|
*/
|
|
15
15
|
export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg' | 'pivot' | 'pivot2';
|
|
16
|
+
/**
|
|
17
|
+
* The type of a widget on a dashboard that is a variant of text widget.
|
|
18
|
+
*/
|
|
19
|
+
export type TextWidgetType = 'richtexteditor';
|
|
16
20
|
/**
|
|
17
21
|
* The type of a widget on a dashboard.
|
|
18
22
|
*/
|
|
19
|
-
export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | 'plugin';
|
|
20
|
-
export type WidgetSubtype = 'area/basic' | 'area/stacked' | 'area/stacked100' | 'area/spline' | 'area/stackedspline' | 'area/stackedspline100' | 'bar/classic' | 'bar/stacked' | 'bar/stacked100' | 'column/classic' | 'column/stackedcolumn' | 'column/stackedcolumn100' | 'line/basic' | 'line/spline' | 'pie/classic' | 'pie/donut' | 'pie/ring' | 'column/polar' | 'area/polar' | 'line/polar' | 'indicator/numeric' | 'indicator/gauge' | 'bubble/scatter' | 'treemap' | 'sunburst' | 'boxplot/full' | 'boxplot/hollow' | 'map/scatter' | 'areamap/world' | 'areamap/usa';
|
|
23
|
+
export type WidgetType = CartesianWidgetType | CategoricalWidgetType | 'chart/scatter' | 'indicator' | TabularWidgetType | 'chart/boxplot' | 'map/scatter' | 'map/area' | TextWidgetType | 'plugin';
|
|
24
|
+
export type WidgetSubtype = 'area/basic' | 'area/stacked' | 'area/stacked100' | 'area/spline' | 'area/stackedspline' | 'area/stackedspline100' | 'bar/classic' | 'bar/stacked' | 'bar/stacked100' | 'column/classic' | 'column/stackedcolumn' | 'column/stackedcolumn100' | 'line/basic' | 'line/spline' | 'pie/classic' | 'pie/donut' | 'pie/ring' | 'column/polar' | 'area/polar' | 'line/polar' | 'indicator/numeric' | 'indicator/gauge' | 'bubble/scatter' | 'treemap' | 'sunburst' | 'boxplot/full' | 'boxplot/hollow' | 'map/scatter' | 'areamap/world' | 'areamap/usa' | 'richtexteditor';
|
|
21
25
|
export declare enum WidgetDashboardFilterMode {
|
|
22
26
|
FILTER = "filter",
|
|
23
27
|
SELECT = "select"
|
|
@@ -47,6 +51,7 @@ export interface WidgetDto {
|
|
|
47
51
|
ignore?: FiltersIgnoringRules;
|
|
48
52
|
panels: Panel[];
|
|
49
53
|
drillHistory?: PanelItem[];
|
|
54
|
+
usedFormulasMapping?: any;
|
|
50
55
|
};
|
|
51
56
|
style: WidgetStyle;
|
|
52
57
|
title: string;
|
|
@@ -55,8 +60,32 @@ export interface WidgetDto {
|
|
|
55
60
|
dashboardFiltersMode: `${WidgetDashboardFilterMode}`;
|
|
56
61
|
selector: boolean;
|
|
57
62
|
drillToAnywhere?: boolean;
|
|
58
|
-
previousScrollerLocation?: AutoZoomNavigatorScrollerLocation;
|
|
63
|
+
previousScrollerLocation?: AutoZoomNavigatorScrollerLocation | EmptyAutoZoomNavigatorScrollerLocation;
|
|
64
|
+
triggersDomready?: boolean;
|
|
65
|
+
autoUpdateOnEveryChange?: boolean;
|
|
66
|
+
hideFromWidgetList?: boolean;
|
|
67
|
+
disableExportToCSV?: boolean;
|
|
68
|
+
disableExportToImage?: boolean;
|
|
69
|
+
toolbarButton?: any;
|
|
70
|
+
disallowSelector?: boolean;
|
|
71
|
+
disallowWidgetTitle?: boolean;
|
|
72
|
+
supportsHierarchies?: boolean;
|
|
59
73
|
};
|
|
74
|
+
source?: any;
|
|
75
|
+
owner?: string;
|
|
76
|
+
userId?: string;
|
|
77
|
+
created?: string;
|
|
78
|
+
lastUpdated?: string;
|
|
79
|
+
instanceType?: string;
|
|
80
|
+
selection?: any;
|
|
81
|
+
tags?: any;
|
|
82
|
+
instanceid?: string;
|
|
83
|
+
realTimeRefreshing?: boolean;
|
|
84
|
+
dashboardid?: string;
|
|
85
|
+
_dataSourcePermission?: string;
|
|
86
|
+
userAuth?: any;
|
|
87
|
+
_toDisableOptionsList?: any;
|
|
88
|
+
_id?: string;
|
|
60
89
|
}
|
|
61
90
|
/**
|
|
62
91
|
* @description the scroll location of the navigator scroller / auto zoom feature
|
|
@@ -65,6 +94,12 @@ export type AutoZoomNavigatorScrollerLocation = {
|
|
|
65
94
|
min: number;
|
|
66
95
|
max: number;
|
|
67
96
|
};
|
|
97
|
+
/** @internal sometimes Fusion widgets contain dumb scroller location with both locations empty */
|
|
98
|
+
type EmptyAutoZoomNavigatorScrollerLocation = {
|
|
99
|
+
min: null;
|
|
100
|
+
max: null;
|
|
101
|
+
};
|
|
102
|
+
export declare function isValidScrollerLocation(scrollerLocation?: AutoZoomNavigatorScrollerLocation | EmptyAutoZoomNavigatorScrollerLocation): scrollerLocation is AutoZoomNavigatorScrollerLocation;
|
|
68
103
|
export type WidgetDesign = {
|
|
69
104
|
widgetBackgroundColor: string;
|
|
70
105
|
widgetSpacing: keyof typeof LEGACY_DESIGN_TYPES;
|
|
@@ -112,6 +147,7 @@ export type NumericMask = {
|
|
|
112
147
|
};
|
|
113
148
|
separated?: boolean;
|
|
114
149
|
type?: string;
|
|
150
|
+
abbreviateAll?: boolean;
|
|
115
151
|
};
|
|
116
152
|
export type DatetimeMask = {
|
|
117
153
|
isdefault?: boolean;
|
|
@@ -120,6 +156,7 @@ export type DatetimeMask = {
|
|
|
120
156
|
months: string;
|
|
121
157
|
weeks: string;
|
|
122
158
|
minutes: string;
|
|
159
|
+
seconds: string;
|
|
123
160
|
days: string;
|
|
124
161
|
type: string;
|
|
125
162
|
dateAndTime?: string;
|
|
@@ -189,6 +226,8 @@ export type PanelItem = {
|
|
|
189
226
|
id: string;
|
|
190
227
|
index: number;
|
|
191
228
|
};
|
|
229
|
+
panel?: string;
|
|
230
|
+
hierarchies?: any;
|
|
192
231
|
};
|
|
193
232
|
export type PanelColorFormat = PanelColorFormatSingle | PanelColorFormatRange | PanelColorFormatConditional;
|
|
194
233
|
export type PanelMembersFormat = Record<string, {
|
|
@@ -236,6 +275,7 @@ type AxisTitleStyle = {
|
|
|
236
275
|
text?: string;
|
|
237
276
|
};
|
|
238
277
|
export type AxisStyle = {
|
|
278
|
+
inactive?: boolean;
|
|
239
279
|
enabled: boolean;
|
|
240
280
|
ticks: boolean;
|
|
241
281
|
labels: LabelsStyle;
|
|
@@ -267,9 +307,10 @@ export type CartesianWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions
|
|
|
267
307
|
};
|
|
268
308
|
markers?: {
|
|
269
309
|
enabled: boolean;
|
|
270
|
-
size: number;
|
|
310
|
+
size: number | string;
|
|
271
311
|
fill: string;
|
|
272
312
|
};
|
|
313
|
+
dataLimits?: any;
|
|
273
314
|
};
|
|
274
315
|
export type PolarWidgetStyle = BaseWidgetStyle & WidgetContainerStyleOptions & {
|
|
275
316
|
categories?: AxisStyle;
|
|
@@ -405,7 +446,8 @@ export type ScattermapWidgetStyle = WidgetContainerStyleOptions & {
|
|
|
405
446
|
export type AreamapWidgetStyle = {};
|
|
406
447
|
export type WidgetStyle = {
|
|
407
448
|
widgetDesign?: WidgetDesign;
|
|
408
|
-
|
|
449
|
+
narration?: any;
|
|
450
|
+
} & (CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle | TextWidgetDtoStyle);
|
|
409
451
|
export declare enum FiltersMergeStrategyEnum {
|
|
410
452
|
WIDGET_FIRST = "widgetFirst",
|
|
411
453
|
CODE_FIRST = "codeFirst",
|
|
@@ -426,4 +468,12 @@ export type PivotWidgetStyle = {
|
|
|
426
468
|
rowHeight?: number;
|
|
427
469
|
automaticHeight?: boolean;
|
|
428
470
|
};
|
|
471
|
+
export type TextWidgetDtoStyle = {
|
|
472
|
+
content: {
|
|
473
|
+
html: string;
|
|
474
|
+
vAlign: `valign-${'middle' | 'top' | 'bottom'}`;
|
|
475
|
+
bgColor: string;
|
|
476
|
+
textAlign: 'center';
|
|
477
|
+
};
|
|
478
|
+
};
|
|
429
479
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { type Filter, JaqlSortDirection, FilterRelations, FilterRelationsModel, FilterRelationsJaql } from '@sisense/sdk-data';
|
|
2
2
|
import { ChartSubtype } from '../chart-options-processor/subtype-to-design-options';
|
|
3
3
|
import { ChartType, type SortDirection } from '../types';
|
|
4
|
-
import { FiltersMergeStrategy, Panel, PanelItem, WidgetSubtype, WidgetType } from './types';
|
|
4
|
+
import { FiltersMergeStrategy, Panel, PanelItem, TextWidgetDtoStyle, WidgetStyle, WidgetSubtype, WidgetType } from './types';
|
|
5
5
|
export declare function getChartType(widgetType: WidgetType): ChartType;
|
|
6
6
|
export declare function getChartSubtype(widgetSubtype: WidgetSubtype): ChartSubtype | undefined;
|
|
7
7
|
type WidgetTypeOrString = string | WidgetType;
|
|
8
8
|
export declare function isSupportedWidgetType(widgetType: WidgetTypeOrString): widgetType is WidgetType;
|
|
9
9
|
export declare function isTableWidget(widgetType: WidgetTypeOrString): boolean;
|
|
10
10
|
export declare function isPivotWidget(widgetType: WidgetTypeOrString): boolean;
|
|
11
|
+
export declare function isTextWidget(widgetType: WidgetTypeOrString): boolean;
|
|
12
|
+
export declare function isTextWidgetDtoStyle(widgetStyle: WidgetStyle): widgetStyle is TextWidgetDtoStyle;
|
|
11
13
|
export declare function isChartWidget(widgetType: WidgetTypeOrString): boolean;
|
|
12
14
|
export declare function getEnabledPanelItems(panels: Panel[], panelName: string): PanelItem[];
|
|
13
15
|
export declare function getRootPanelItem(item: PanelItem): PanelItem;
|