@sisense/sdk-ui 2.1.1 → 2.3.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 +39 -27
- package/dist/ai.js +1650 -1266
- package/dist/analytics-composer.cjs +24 -24
- package/dist/analytics-composer.js +131 -127
- package/dist/derive-chart-family-BtTi3OxL.js +90465 -0
- package/dist/derive-chart-family-DeTlU_Wm.cjs +669 -0
- package/dist/{dimensions-BBfnA6e8.cjs → dimensions-DpBTdNJ_.cjs} +1 -1
- package/dist/{dimensions-DOWF8q44.js → dimensions-Xxab6o5s.js} +13 -13
- package/dist/index.cjs +22 -22
- package/dist/index.js +12682 -12517
- package/dist/index.umd.js +1578 -0
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/common/icon-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +23 -7
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -0
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +7 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/alerts.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{helpers/cartesians → highchart-based-charts/cartesians/helpers}/data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/bar-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{column-chart → highchart-based-charts/cartesians/stackable/column-chart}/column-chart-builder.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{helpers/cartesians/stackable → highchart-based-charts/cartesians/stackable/helpers}/design-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +20 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +39 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +28 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/common-highcharts-option-service.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/theme-option-service.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +4 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/components/loading-overlay.d.ts +1 -3
- package/dist/packages/sdk-ui/src/common/components/menu/menu-ids.d.ts +10 -1
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/components/modal/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +39 -0
- package/dist/packages/sdk-ui/src/common/components/modal/modal-provider.d.ts +19 -0
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +4 -8
- package/dist/packages/sdk-ui/src/common/hooks/use-state-with-history.d.ts +64 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +15 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +17 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +52 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +113 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +11 -2
- package/dist/packages/sdk-ui/src/data-browser/data-schema-browser/data-schema-browser.d.ts +14 -0
- package/dist/packages/sdk-ui/src/data-browser/data-schema-browser/data-schema-browser.styles.d.ts +6 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/decorators/component-decorators/as-sisense-component.d.ts +2 -0
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-modal.d.ts +6 -0
- package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +6 -2
- package/dist/packages/sdk-ui/src/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -0
- package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +3 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +14 -5
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +18 -17
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +34 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +4 -4
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +7 -4
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +16 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/types.d.ts +26 -3
- package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +4 -4
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +72 -0
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +2 -1
- package/dist/use-common-filters-B2N7j9H-.cjs +350 -0
- package/dist/use-common-filters-BC4Vg9wu.js +32068 -0
- package/dist/{widget-composer-BZwsi1mW.js → widget-composer-Bj5DrCSm.js} +111 -98
- package/dist/{widget-composer-Bv_aqjLX.cjs → widget-composer-DjREvygd.cjs} +7 -7
- package/package.json +23 -19
- package/dist/derive-chart-family-C8duLtwv.js +0 -102033
- package/dist/derive-chart-family-CQ1Myy0A.cjs +0 -758
- package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +0 -4
- package/dist/packages/sdk-ui/src/widget-by-id/use-get-dashboard-model-and-widget-model.d.ts +0 -14
- package/dist/use-common-filters--6cyMg9O.js +0 -28797
- package/dist/use-common-filters-NTIrYvRs.cjs +0 -271
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type
|
|
2
|
+
import { type PivotBuilder } from '@sisense/sdk-pivot-client';
|
|
3
3
|
import type { CompleteThemeSettings, PivotTableStyleOptions } from '../../types';
|
|
4
4
|
import type { PivotTableDataOptions } from '../../chart-data-options/types';
|
|
5
5
|
import type { ContainerSize } from '../../dynamic-size-container/dynamic-size-container';
|
|
6
6
|
type PivotRenderOptions = {
|
|
7
|
-
/** Reference to the pivot table container. */
|
|
8
|
-
nodeRef: React.RefObject<HTMLDivElement>;
|
|
9
7
|
/** The pivot builder instance. */
|
|
10
8
|
pivotBuilder: PivotBuilder;
|
|
11
9
|
/** The pivot table data options. */
|
|
@@ -22,5 +20,7 @@ type PivotRenderOptions = {
|
|
|
22
20
|
/**
|
|
23
21
|
* A hook that renders the pivot table.
|
|
24
22
|
*/
|
|
25
|
-
export declare function useRenderPivot({
|
|
23
|
+
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, }: PivotRenderOptions): {
|
|
24
|
+
pivotElement: JSX.Element | null;
|
|
25
|
+
};
|
|
26
26
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
|
+
import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
3
|
import { GenericDataOptions } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Props passed to a user-defined widget component.
|
|
@@ -10,7 +10,7 @@ export interface PluginComponentProps<DataOptions = GenericDataOptions, StyleOpt
|
|
|
10
10
|
dataSource?: DataSource;
|
|
11
11
|
dataOptions: DataOptions;
|
|
12
12
|
styleOptions: StyleOptions;
|
|
13
|
-
filters?: Filter[];
|
|
13
|
+
filters?: Filter[] | FilterRelations;
|
|
14
14
|
highlights?: Filter[];
|
|
15
15
|
description?: string;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
|
|
2
|
-
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps } from './types';
|
|
2
|
+
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, PluginWidgetStyleOptions } from './types';
|
|
3
3
|
import { HighchartsOptions } from './chart-options-processor/chart-options-service';
|
|
4
4
|
import { ComponentType, PropsWithChildren, ReactNode } from 'react';
|
|
5
5
|
import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
|
|
@@ -86,6 +86,9 @@ export interface SisenseContextProviderProps {
|
|
|
86
86
|
/**
|
|
87
87
|
* Callback function that is triggered when an error occurs within the Sisense context.
|
|
88
88
|
*
|
|
89
|
+
* Return React node to render a custom error UI.
|
|
90
|
+
* Return `undefined` to use the default error UI.
|
|
91
|
+
*
|
|
89
92
|
* This callback is useful for handling errors that happen during the initialization or runtime of the Sisense context,
|
|
90
93
|
* such as incorrect configuration, invalid authentication, or network-related issues.
|
|
91
94
|
*
|
|
@@ -100,7 +103,7 @@ export interface SisenseContextProviderProps {
|
|
|
100
103
|
componentName: string;
|
|
101
104
|
/** The props of the component that caused the error. */
|
|
102
105
|
componentProps: unknown;
|
|
103
|
-
}) => void;
|
|
106
|
+
}) => void | ReactNode;
|
|
104
107
|
/**
|
|
105
108
|
* Boolean flag to enable sending silent pre-authentication requests to the Sisense instance.
|
|
106
109
|
* Used to check if user is already authenticated, check is performed in an ivisible iframe.
|
|
@@ -1179,7 +1182,7 @@ export interface PluginWidgetProps {
|
|
|
1179
1182
|
*
|
|
1180
1183
|
* @category Data
|
|
1181
1184
|
*/
|
|
1182
|
-
filters?: Filter[];
|
|
1185
|
+
filters?: Filter[] | FilterRelations;
|
|
1183
1186
|
/**
|
|
1184
1187
|
* Filters that will highlight query results
|
|
1185
1188
|
*
|
|
@@ -1197,7 +1200,7 @@ export interface PluginWidgetProps {
|
|
|
1197
1200
|
*
|
|
1198
1201
|
* @category Widget
|
|
1199
1202
|
*/
|
|
1200
|
-
styleOptions?:
|
|
1203
|
+
styleOptions?: PluginWidgetStyleOptions;
|
|
1201
1204
|
/**
|
|
1202
1205
|
* Title of the widget
|
|
1203
1206
|
*
|
|
@@ -49,6 +49,7 @@ export declare const translation: {
|
|
|
49
49
|
invalidFilterType: string;
|
|
50
50
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
51
51
|
missingMenuRoot: string;
|
|
52
|
+
missingModalRoot: string;
|
|
52
53
|
missingDataSource: string;
|
|
53
54
|
incorrectOnDataReadyHandler: string;
|
|
54
55
|
undefinedDataSource: string;
|
|
@@ -68,9 +69,11 @@ export declare const translation: {
|
|
|
68
69
|
mapLoadingFailed: string;
|
|
69
70
|
cascadingFilterOriginalNotFound: string;
|
|
70
71
|
dashboardLoadFailed: string;
|
|
72
|
+
widgetLoadFailed: string;
|
|
71
73
|
dashboardWithOidNotFound: string;
|
|
72
74
|
failedToAddWidget: string;
|
|
73
75
|
widgetWithOidNotFound: string;
|
|
76
|
+
widgetWithOidNotFoundInDashboard: string;
|
|
74
77
|
widgetEmptyResponse: string;
|
|
75
78
|
dateFilterIncorrectOperator: string;
|
|
76
79
|
synchronizedFilterInvalidProps: string;
|
|
@@ -87,6 +90,7 @@ export declare const translation: {
|
|
|
87
90
|
addFilterPopover: {
|
|
88
91
|
noDataSources: string;
|
|
89
92
|
};
|
|
93
|
+
tabberInvalidConfiguration: string;
|
|
90
94
|
};
|
|
91
95
|
errorBoxText: string;
|
|
92
96
|
chartNoData: string;
|
|
@@ -352,6 +356,18 @@ export declare const translation: {
|
|
|
352
356
|
grandTotal: string;
|
|
353
357
|
subTotal: string;
|
|
354
358
|
};
|
|
359
|
+
dashboard: {
|
|
360
|
+
toolbar: {
|
|
361
|
+
undo: string;
|
|
362
|
+
redo: string;
|
|
363
|
+
cancel: string;
|
|
364
|
+
apply: string;
|
|
365
|
+
editLayout: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
jumpToDashboard: {
|
|
369
|
+
defaultCaption: string;
|
|
370
|
+
};
|
|
355
371
|
};
|
|
356
372
|
/**
|
|
357
373
|
* A reference type containing all currently used translation keys.
|
|
@@ -59,6 +59,7 @@ export declare const resources: {
|
|
|
59
59
|
invalidFilterType: string;
|
|
60
60
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
61
61
|
missingMenuRoot: string;
|
|
62
|
+
missingModalRoot: string;
|
|
62
63
|
missingDataSource: string;
|
|
63
64
|
incorrectOnDataReadyHandler: string;
|
|
64
65
|
undefinedDataSource: string;
|
|
@@ -78,9 +79,11 @@ export declare const resources: {
|
|
|
78
79
|
mapLoadingFailed: string;
|
|
79
80
|
cascadingFilterOriginalNotFound: string;
|
|
80
81
|
dashboardLoadFailed: string;
|
|
82
|
+
widgetLoadFailed: string;
|
|
81
83
|
dashboardWithOidNotFound: string;
|
|
82
84
|
failedToAddWidget: string;
|
|
83
85
|
widgetWithOidNotFound: string;
|
|
86
|
+
widgetWithOidNotFoundInDashboard: string;
|
|
84
87
|
widgetEmptyResponse: string;
|
|
85
88
|
dateFilterIncorrectOperator: string;
|
|
86
89
|
synchronizedFilterInvalidProps: string;
|
|
@@ -97,6 +100,7 @@ export declare const resources: {
|
|
|
97
100
|
addFilterPopover: {
|
|
98
101
|
noDataSources: string;
|
|
99
102
|
};
|
|
103
|
+
tabberInvalidConfiguration: string;
|
|
100
104
|
};
|
|
101
105
|
errorBoxText: string;
|
|
102
106
|
chartNoData: string;
|
|
@@ -362,6 +366,18 @@ export declare const resources: {
|
|
|
362
366
|
grandTotal: string;
|
|
363
367
|
subTotal: string;
|
|
364
368
|
};
|
|
369
|
+
dashboard: {
|
|
370
|
+
toolbar: {
|
|
371
|
+
undo: string;
|
|
372
|
+
redo: string;
|
|
373
|
+
cancel: string;
|
|
374
|
+
apply: string;
|
|
375
|
+
editLayout: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
jumpToDashboard: {
|
|
379
|
+
defaultCaption: string;
|
|
380
|
+
};
|
|
365
381
|
};
|
|
366
382
|
uk: {
|
|
367
383
|
errors: {
|
|
@@ -414,6 +430,7 @@ export declare const resources: {
|
|
|
414
430
|
invalidFilterType: string;
|
|
415
431
|
secondsDateTimeLevelSupportedOnlyForLive: string;
|
|
416
432
|
missingMenuRoot: string;
|
|
433
|
+
missingModalRoot: string;
|
|
417
434
|
missingDataSource: string;
|
|
418
435
|
incorrectOnDataReadyHandler: string;
|
|
419
436
|
undefinedDataSource: string;
|
|
@@ -433,9 +450,11 @@ export declare const resources: {
|
|
|
433
450
|
mapLoadingFailed: string;
|
|
434
451
|
cascadingFilterOriginalNotFound: string;
|
|
435
452
|
dashboardLoadFailed: string;
|
|
453
|
+
widgetLoadFailed: string;
|
|
436
454
|
dashboardWithOidNotFound: string;
|
|
437
455
|
failedToAddWidget: string;
|
|
438
456
|
widgetWithOidNotFound: string;
|
|
457
|
+
widgetWithOidNotFoundInDashboard: string;
|
|
439
458
|
widgetEmptyResponse: string;
|
|
440
459
|
dateFilterIncorrectOperator: string;
|
|
441
460
|
synchronizedFilterInvalidProps: string;
|
|
@@ -452,6 +471,7 @@ export declare const resources: {
|
|
|
452
471
|
addFilterPopover: {
|
|
453
472
|
noDataSources: string;
|
|
454
473
|
};
|
|
474
|
+
tabberInvalidConfiguration: string;
|
|
455
475
|
};
|
|
456
476
|
errorBoxText: string;
|
|
457
477
|
chartNoData: string;
|
|
@@ -717,5 +737,17 @@ export declare const resources: {
|
|
|
717
737
|
grandTotal: string;
|
|
718
738
|
subTotal: string;
|
|
719
739
|
};
|
|
740
|
+
dashboard: {
|
|
741
|
+
toolbar: {
|
|
742
|
+
undo: string;
|
|
743
|
+
redo: string;
|
|
744
|
+
cancel: string;
|
|
745
|
+
apply: string;
|
|
746
|
+
editLayout: string;
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
jumpToDashboard: {
|
|
750
|
+
defaultCaption: string;
|
|
751
|
+
};
|
|
720
752
|
};
|
|
721
753
|
};
|
|
@@ -17,6 +17,14 @@ import { SoftUnion } from './utils/utility-types';
|
|
|
17
17
|
export type { SortDirection, PivotRowsSort } from '@sisense/sdk-data';
|
|
18
18
|
export type { AppConfig } from './app/client-application';
|
|
19
19
|
export type { DateConfig } from './query/date-formats';
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* Enum for size measurement units
|
|
23
|
+
*/
|
|
24
|
+
export declare enum SizeMeasurement {
|
|
25
|
+
PERCENT = "%",
|
|
26
|
+
PIXEL = "px"
|
|
27
|
+
}
|
|
20
28
|
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
21
29
|
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
22
30
|
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
|
|
@@ -249,6 +257,17 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
249
257
|
lineWidth?: LineWidth;
|
|
250
258
|
/** Subtype of LineChart */
|
|
251
259
|
subtype?: LineSubtype;
|
|
260
|
+
/**
|
|
261
|
+
* For step charts: defines where the step occurs (before, between, or after points)
|
|
262
|
+
* Only used when subtype is 'line/step'
|
|
263
|
+
*
|
|
264
|
+
* **Values**
|
|
265
|
+
*
|
|
266
|
+
* - `left` - step occurs before the point (default)
|
|
267
|
+
* - `center` - step occurs between points
|
|
268
|
+
* - `right` - step occurs after the point
|
|
269
|
+
*/
|
|
270
|
+
stepPosition?: 'left' | 'center' | 'right';
|
|
252
271
|
}
|
|
253
272
|
/** Configuration options that define functional style of the various elements of AreaRangeChart */
|
|
254
273
|
export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -1145,7 +1164,7 @@ export type CompleteThemeSettings = DeepRequired<Omit<ThemeSettings, 'typography
|
|
|
1145
1164
|
};
|
|
1146
1165
|
};
|
|
1147
1166
|
/** 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. */
|
|
1148
|
-
export type WidgetStyleOptions = (ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions) & WidgetContainerStyleOptions;
|
|
1167
|
+
export type WidgetStyleOptions = (ChartStyleOptions | TableStyleOptions | TextWidgetStyleOptions | PluginWidgetStyleOptions) & WidgetContainerStyleOptions;
|
|
1149
1168
|
/** Style settings defining the look and feel of widget itself and widget header */
|
|
1150
1169
|
export interface WidgetContainerStyleOptions {
|
|
1151
1170
|
/** Space between widget container edge and the chart */
|
|
@@ -1243,6 +1262,10 @@ export type TextWidgetStyleOptions = {
|
|
|
1243
1262
|
vAlign: `valign-${'middle' | 'top' | 'bottom'}`;
|
|
1244
1263
|
bgColor: string;
|
|
1245
1264
|
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Style settings defining the look and feel of PluginWidget
|
|
1267
|
+
*/
|
|
1268
|
+
export type PluginWidgetStyleOptions = Record<string, unknown> & WidgetContainerStyleOptions;
|
|
1246
1269
|
/**
|
|
1247
1270
|
* Runs type guard check for ThemeOid.
|
|
1248
1271
|
*
|
|
@@ -1692,8 +1715,8 @@ export type TabberTab = {
|
|
|
1692
1715
|
*
|
|
1693
1716
|
* @internal
|
|
1694
1717
|
*/
|
|
1695
|
-
export type TabberDtoStyle = TabberStyleProps & {
|
|
1696
|
-
activeTab
|
|
1718
|
+
export type TabberDtoStyle = Partial<TabberStyleProps> & {
|
|
1719
|
+
activeTab?: string;
|
|
1697
1720
|
};
|
|
1698
1721
|
/**
|
|
1699
1722
|
* Configuration options that define style of the various elements of the Tabber component.
|
|
@@ -23,10 +23,10 @@ export declare function getFilterRelationsDescription(relations: FilterRelations
|
|
|
23
23
|
/**
|
|
24
24
|
* Merge two arrays of filters using the specified merge strategy.
|
|
25
25
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
29
|
-
* @returns
|
|
26
|
+
* @param widgetFilters - The filters from the widget.
|
|
27
|
+
* @param codeFilters - The filters from the code.
|
|
28
|
+
* @param mergeStrategy - The strategy to use for merging filters.
|
|
29
|
+
* @returns The merged filters based on the selected strategy.
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
32
|
export declare function mergeFiltersByStrategy(widgetFilters?: Filter[] | FilterRelations, codeFilters?: Filter[] | FilterRelations, mergeStrategy?: FiltersMergeStrategy): Filter[] | FilterRelations;
|
|
@@ -2,6 +2,7 @@ import { WidgetContainerStyleOptions } from '../types';
|
|
|
2
2
|
import { LEGACY_DESIGN_TYPES } from '../themes/legacy-design-settings';
|
|
3
3
|
import { BaseJaql, FormulaContext, FormulaJaql, Jaql, JaqlDataSource, JaqlSortDirection } from '@sisense/sdk-data';
|
|
4
4
|
import { HierarchyId } from '../models/hierarchy';
|
|
5
|
+
import { SizeMeasurement } from '../types';
|
|
5
6
|
/**
|
|
6
7
|
* The type of a widget on a dashboard that is a variant of Cartesian widget.
|
|
7
8
|
*/
|
|
@@ -46,6 +47,7 @@ export interface WidgetDto {
|
|
|
46
47
|
drillHistory?: PanelItem[];
|
|
47
48
|
usedFormulasMapping?: any;
|
|
48
49
|
};
|
|
50
|
+
drillToDashboardConfig?: JTDConfigDto;
|
|
49
51
|
style: WidgetStyle;
|
|
50
52
|
title: string;
|
|
51
53
|
desc: string | null;
|
|
@@ -512,4 +514,74 @@ export type TextWidgetDtoStyle = {
|
|
|
512
514
|
textAlign: 'center';
|
|
513
515
|
};
|
|
514
516
|
};
|
|
517
|
+
export type JTDDrillTarget = {
|
|
518
|
+
caption: string;
|
|
519
|
+
id: string;
|
|
520
|
+
};
|
|
521
|
+
export type JTDConfigDto = {
|
|
522
|
+
drilledDashboardPrefix: string;
|
|
523
|
+
drilledDashboardsFolderPrefix: string;
|
|
524
|
+
displayFilterPane: boolean;
|
|
525
|
+
displayDashboardsPane: boolean;
|
|
526
|
+
displayToolbarRow: boolean;
|
|
527
|
+
displayHeaderRow: boolean;
|
|
528
|
+
volatile: boolean;
|
|
529
|
+
hideDrilledDashboards: boolean;
|
|
530
|
+
hideSharedDashboardsForNonOwner: boolean;
|
|
531
|
+
drillToDashboardRightMenuCaption: string;
|
|
532
|
+
drillToDashboardNavigateType: number;
|
|
533
|
+
drillToDashboardNavigateTypePivot: number;
|
|
534
|
+
drillToDashboardNavigateTypeCharts: number;
|
|
535
|
+
drillToDashboardNavigateTypeOthers: number;
|
|
536
|
+
drilledDashboardDisplayType: number;
|
|
537
|
+
dashboardIds: Array<{
|
|
538
|
+
oid: string;
|
|
539
|
+
caption: string;
|
|
540
|
+
id: string;
|
|
541
|
+
dashboardTitle: string;
|
|
542
|
+
}>;
|
|
543
|
+
modalWindowResize: boolean;
|
|
544
|
+
modalWindowMeasurement?: SizeMeasurement;
|
|
545
|
+
modalWindowWidth?: number;
|
|
546
|
+
modalWindowHeight?: number;
|
|
547
|
+
showFolderNameOnMenuSelection: boolean;
|
|
548
|
+
resetDashFiltersAfterJTD: boolean;
|
|
549
|
+
sameCubeRestriction: boolean;
|
|
550
|
+
showJTDIcon: boolean;
|
|
551
|
+
sendPieChartMeasureFiltersOnClick: boolean;
|
|
552
|
+
forceZeroInsteadNull: boolean;
|
|
553
|
+
mergeTargetDashboardFilters: boolean;
|
|
554
|
+
drillToDashboardByName: boolean;
|
|
555
|
+
sendBreakByValueFilter: boolean;
|
|
556
|
+
ignoreFiltersSource: boolean;
|
|
557
|
+
sendFormulaFiltersDuplicate?: number | 'none' | undefined;
|
|
558
|
+
enabled?: boolean;
|
|
559
|
+
version?: string;
|
|
560
|
+
includeDashFilterDims?: string[];
|
|
561
|
+
includeWidgetFilterDims?: string[];
|
|
562
|
+
};
|
|
563
|
+
export declare enum JTDNavigateType {
|
|
564
|
+
CLICK = "click",
|
|
565
|
+
RIGHT_CLICK = "rightclick",
|
|
566
|
+
PIVOT_LINK = "pivotlink",
|
|
567
|
+
BLOX = "blox"
|
|
568
|
+
}
|
|
569
|
+
export type JTDConfig = {
|
|
570
|
+
drilledDashboardPrefix?: string;
|
|
571
|
+
displayFilterPane?: boolean;
|
|
572
|
+
displayToolbarRow?: boolean;
|
|
573
|
+
drillToDashboardRightMenuCaption?: string;
|
|
574
|
+
navigateType?: JTDNavigateType;
|
|
575
|
+
includeDashFilterDims?: string[];
|
|
576
|
+
includeWidgetFilterDims?: string[];
|
|
577
|
+
drillTargets: JTDDrillTarget[];
|
|
578
|
+
modalWindowResize?: boolean;
|
|
579
|
+
modalWindowMeasurement?: SizeMeasurement;
|
|
580
|
+
modalWindowWidth?: number;
|
|
581
|
+
modalWindowHeight?: number;
|
|
582
|
+
showJTDIcon?: boolean;
|
|
583
|
+
mergeTargetDashboardFilters?: boolean;
|
|
584
|
+
sendFormulaFiltersDuplicate?: number | 'none' | undefined;
|
|
585
|
+
enabled?: boolean;
|
|
586
|
+
};
|
|
515
587
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
4
|
+
}, "loading" | "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & {
|
|
9
|
+
}, "loading" | "children" | "style" | "disabled" | "size" | "className" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TabberWidgetProps } from '../props';
|
|
2
3
|
/**
|
|
3
4
|
* Tabber widget tab size
|
|
@@ -37,4 +38,4 @@ export type TabCornerRadius = 'SMALL' | 'MEDIUM' | 'LARGE' | 'NONE';
|
|
|
37
38
|
* @group TabberWidget
|
|
38
39
|
* @internal
|
|
39
40
|
*/
|
|
40
|
-
export declare const TabberWidget:
|
|
41
|
+
export declare const TabberWidget: React.FunctionComponent<TabberWidgetProps>;
|