@sisense/sdk-ui 1.7.2 → 1.9.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/ai-disclaimer.d.ts +5 -0
- package/dist/ai/chat-config.d.ts +26 -0
- package/dist/ai/chat-dropup.d.ts +12 -0
- package/dist/ai/chat-frame.d.ts +7 -4
- package/dist/ai/chat-input.d.ts +4 -1
- package/dist/ai/chatbot.d.ts +0 -7
- package/dist/ai/common/dropup-section.d.ts +8 -0
- package/dist/ai/common/icon-button.d.ts +12 -0
- package/dist/ai/{toolbar.d.ts → common/toolbar.d.ts} +5 -0
- package/dist/ai/common/tooltip.d.ts +1 -1
- package/dist/ai/icons/arrow-left-icon.d.ts +5 -1
- package/dist/ai/icons/clear-chat-icon.d.ts +2 -1
- package/dist/ai/icons/expand-icon.d.ts +3 -1
- package/dist/ai/icons/info-icon.d.ts +3 -1
- package/dist/ai/icons/light-bulb-icon.d.ts +3 -1
- package/dist/ai/icons/message-icon.d.ts +2 -1
- package/dist/ai/icons/sisense-logo.d.ts +5 -1
- package/dist/ai/icons/three-dots-icon.d.ts +3 -1
- package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-down-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +2 -1
- package/dist/ai/icons/thumbs-up-icon.d.ts +2 -1
- package/dist/ai/messages/chat-welcome-message.d.ts +1 -1
- package/dist/ai/messages/clickable-message.d.ts +11 -0
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
- package/dist/ai/messages/insights-message.d.ts +3 -3
- package/dist/ai/messages/jaql-element.d.ts +5 -2
- package/dist/ai/messages/message-resolver.d.ts +2 -1
- package/dist/ai/messages/nlq-message-group.d.ts +6 -3
- package/dist/ai/messages/text-message.d.ts +4 -6
- package/dist/ai/nav-back-button.d.ts +6 -3
- package/dist/ai/translators/model-translator.d.ts +1 -0
- package/dist/ai/translators/query-translator.d.ts +16 -1
- package/dist/ai/translators/translate-filters-to-code.d.ts +2 -0
- package/dist/ai/translators/translate-props-to-code.d.ts +1 -1
- package/dist/ai/translators/utils.d.ts +10 -0
- package/dist/ai.js +2981 -2592
- package/dist/api/types/dashboard-dto.d.ts +16 -0
- package/dist/app/client-application.d.ts +6 -2
- package/dist/area-chart.d.ts +14 -18
- package/dist/areamap-chart.d.ts +13 -15
- package/dist/bar-chart.d.ts +13 -18
- package/dist/boxplot-chart.d.ts +11 -25
- package/dist/chart/chart.d.ts +8 -66
- package/dist/chart-data/cartesian-data.d.ts +1 -1
- package/dist/chart-data/chart-data-service.d.ts +1 -2
- package/dist/chart-data/data-coloring/types.d.ts +1 -7
- package/dist/chart-data-options/types.d.ts +5 -3
- package/dist/chart-data-options/utils.d.ts +10 -0
- package/dist/chart-options-processor/theme-option-service.d.ts +0 -8
- package/dist/column-chart.d.ts +15 -18
- package/dist/common/components/loading-indicator.d.ts +82 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +10 -7
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +22 -14
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -2
- package/dist/dashboard-widget/types.d.ts +24 -4
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +4 -2
- package/dist/debounce-Cc9bQD5m.js +76199 -0
- package/dist/dynamic-size-container/default-size.d.ts +5 -1
- package/dist/dynamic-size-container/dynamic-size-container.d.ts +12 -3
- package/dist/filters/components/common/dropdown.d.ts +1 -1
- package/dist/filters/components/common/switch.d.ts +3 -1
- package/dist/formulas/use-get-shared-formula.d.ts +3 -3
- package/dist/funnel-chart.d.ts +9 -36
- package/dist/index.d.ts +1 -2
- package/dist/index.js +46556 -7127
- package/dist/indicator-chart.d.ts +0 -1
- package/dist/line-chart.d.ts +14 -17
- package/dist/models/dashboard/translate-dashboard.d.ts +3 -2
- package/dist/models/dashboard/types.d.ts +6 -8
- package/dist/models/widget/use-get-widget-model.d.ts +16 -21
- package/dist/models/widget/widget-model.d.ts +50 -6
- package/dist/pie-chart.d.ts +14 -16
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +20 -0
- package/dist/pivot-table/pivot-table.d.ts +43 -3
- package/dist/pivot-table/sorting-utils.d.ts +11 -55
- package/dist/pivot-table/use-get-pivot-table-query.d.ts +10 -2
- package/dist/pivot-table/use-pivot-table-data-options-internal.d.ts +15 -0
- package/dist/polar-chart.d.ts +14 -17
- package/dist/props.d.ts +72 -13
- package/dist/query-execution/use-execute-pivot-query.d.ts +11 -29
- package/dist/query-execution/use-execute-query.d.ts +19 -26
- package/dist/scatter-chart.d.ts +11 -49
- package/dist/scattermap-chart.d.ts +9 -22
- package/dist/sunburst-chart.d.ts +10 -15
- package/dist/table/table.d.ts +7 -37
- package/dist/theme-provider/default-theme-settings.d.ts +9 -0
- package/dist/theme-provider/types.d.ts +7 -0
- package/dist/translation/resources/en.d.ts +4 -1
- package/dist/translation/resources/index.d.ts +8 -2
- package/dist/treemap-chart.d.ts +10 -21
- package/dist/types.d.ts +172 -4
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/widgets/common/drilldown.d.ts +1 -20
- package/dist/widgets/common/widget-container.d.ts +15 -0
- package/dist/widgets/drilldown-widget.d.ts +21 -33
- package/dist/widgets/pivot-table-widget.d.ts +22 -0
- package/package.json +10 -9
- package/dist/ai/chat-style-provider.d.ts +0 -22
- package/dist/ai/icons/magic-wand-icon.d.ts +0 -2
- package/dist/ai/magic-wand-dropdown.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-item.d.ts +0 -7
- package/dist/ai/suggestions/suggestion-dropdown-list.d.ts +0 -7
- package/dist/useQuery-76ecbd20.js +0 -121360
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jaql,
|
|
1
|
+
import { Jaql, JaqlSortDirection } from '@sisense/sdk-data';
|
|
2
2
|
/**
|
|
3
3
|
* The type of a widget on a dashboard that is a variant of Cartesian widget.
|
|
4
4
|
*/
|
|
@@ -10,7 +10,7 @@ export type CategoricalWidgetType = 'chart/pie' | 'chart/funnel' | 'treemap' | '
|
|
|
10
10
|
/**
|
|
11
11
|
* The type of a widget on a dashboard that is a variant of tabular widget.
|
|
12
12
|
*/
|
|
13
|
-
export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg' | 'pivot2';
|
|
13
|
+
export type TabularWidgetType = 'tablewidget' | 'tablewidgetagg' | 'pivot' | 'pivot2';
|
|
14
14
|
/**
|
|
15
15
|
* The type of a widget on a dashboard.
|
|
16
16
|
*/
|
|
@@ -102,6 +102,8 @@ export type PanelItem = {
|
|
|
102
102
|
color?: PanelColorFormat;
|
|
103
103
|
mask?: DatetimeMask | NumericMask;
|
|
104
104
|
members?: PanelMembersFormat;
|
|
105
|
+
subtotal?: boolean;
|
|
106
|
+
databars?: boolean;
|
|
105
107
|
};
|
|
106
108
|
jaql: Jaql;
|
|
107
109
|
disabled?: boolean;
|
|
@@ -109,9 +111,13 @@ export type PanelItem = {
|
|
|
109
111
|
parent?: PanelItem;
|
|
110
112
|
through?: PanelItem;
|
|
111
113
|
singleSeriesType?: SeriesType;
|
|
112
|
-
categoriesSorting?:
|
|
114
|
+
categoriesSorting?: JaqlSortDirection;
|
|
113
115
|
isColored?: boolean;
|
|
114
116
|
geoLevel?: 'country' | 'state' | 'city';
|
|
117
|
+
field?: {
|
|
118
|
+
id: string;
|
|
119
|
+
index: number;
|
|
120
|
+
};
|
|
115
121
|
};
|
|
116
122
|
export type PanelColorFormat = PanelColorFormatSingle | PanelColorFormatRange | PanelColorFormatConditional;
|
|
117
123
|
export type PanelMembersFormat = Record<string, {
|
|
@@ -326,11 +332,25 @@ export type ScattermapWidgetStyle = {
|
|
|
326
332
|
};
|
|
327
333
|
/** Currently, WidgetStyle for areamap is an empty object */
|
|
328
334
|
export type AreamapWidgetStyle = {};
|
|
329
|
-
export type WidgetStyle = CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle;
|
|
335
|
+
export type WidgetStyle = CartesianWidgetStyle | PolarWidgetStyle | FunnelWidgetStyle | ScatterWidgetStyle | TableWidgetStyle | IndicatorWidgetStyle | TreemapWidgetStyle | SunburstWidgetStyle | BoxplotWidgetStyle | ScattermapWidgetStyle | AreamapWidgetStyle | PivotWidgetStyle;
|
|
330
336
|
export declare enum FiltersMergeStrategyEnum {
|
|
331
337
|
WIDGET_FIRST = "widgetFirst",
|
|
332
338
|
CODE_FIRST = "codeFirst",
|
|
333
339
|
CODE_ONLY = "codeOnly"
|
|
334
340
|
}
|
|
335
341
|
export type FiltersMergeStrategy = `${FiltersMergeStrategyEnum}`;
|
|
342
|
+
export type PivotWidgetStyle = {
|
|
343
|
+
rowsGrandTotal?: boolean;
|
|
344
|
+
columnsGrandTotal?: boolean;
|
|
345
|
+
colors?: {
|
|
346
|
+
rows?: boolean;
|
|
347
|
+
columns?: boolean;
|
|
348
|
+
headers?: boolean;
|
|
349
|
+
members?: boolean;
|
|
350
|
+
totals?: boolean;
|
|
351
|
+
};
|
|
352
|
+
pageSize?: number | string;
|
|
353
|
+
rowHeight?: number;
|
|
354
|
+
automaticHeight?: boolean;
|
|
355
|
+
};
|
|
336
356
|
export {};
|
|
@@ -28,6 +28,7 @@ export declare const fetchWidgetDtoModel: ({ widgetOid, dashboardOid, includeDas
|
|
|
28
28
|
filterRelations?: {
|
|
29
29
|
filterRelations: import("@sisense/sdk-data").FilterRelationsModel;
|
|
30
30
|
}[] | undefined;
|
|
31
|
+
layout?: import("../api/types/dashboard-dto").Layout | undefined;
|
|
31
32
|
} & import("../utils/utility-types").AnyObject) | undefined;
|
|
32
33
|
}>;
|
|
33
34
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { type Filter,
|
|
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
|
-
import { ChartType, SortDirection } from '../types';
|
|
3
|
+
import { ChartType, type SortDirection } from '../types';
|
|
4
4
|
import { FiltersMergeStrategy, Panel, PanelItem, 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
|
+
export declare function isTableWidget(widgetType: WidgetTypeOrString): boolean;
|
|
10
|
+
export declare function isPivotWidget(widgetType: WidgetTypeOrString): boolean;
|
|
9
11
|
export declare function isTabularWidget(widgetType: WidgetTypeOrString): boolean;
|
|
10
12
|
export declare function getEnabledPanelItems(panels: Panel[], panelName: string): PanelItem[];
|
|
11
13
|
export declare function getRootPanelItem(item: PanelItem): PanelItem;
|