@sisense/sdk-ui 1.2.0 → 1.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.js +2 -2
- package/dist/api/types/dashboard-dto.d.ts +4 -1
- package/dist/app/client-application.d.ts +6 -1
- package/dist/chart-data/types.d.ts +4 -4
- package/dist/chart-options-processor/apply-event-handlers.d.ts +5 -28
- package/dist/chart-options-processor/translations/design-options.d.ts +2 -0
- package/dist/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +3 -0
- package/dist/charts/indicator/types.d.ts +2 -0
- package/dist/charts/map-charts/areamap/areamap-map.d.ts +2 -1
- package/dist/charts/map-charts/areamap/areamap.d.ts +4 -2
- package/dist/charts/map-charts/areamap/use-geo-json.d.ts +1 -1
- package/dist/charts/map-charts/scattermap/scattermap.d.ts +2 -2
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +4 -14
- package/dist/common/components/loading-overlay.d.ts +14 -0
- package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -1
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +3 -0
- package/dist/dashboard-widget/utils.d.ts +26 -1
- package/dist/filters/components/common/checkbox.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3488 -3508
- package/dist/models/widget/widget-model.d.ts +2 -2
- package/dist/props.d.ts +150 -51
- package/dist/query-execution/query-state-reducer.d.ts +1 -0
- package/dist/query-execution/types.d.ts +3 -3
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -5
- package/dist/sisense-chart/index.d.ts +2 -0
- package/dist/sisense-chart/sisense-chart.d.ts +23 -0
- package/dist/sisense-chart/types.d.ts +5 -0
- package/dist/table/hooks/use-table-data.d.ts +2 -2
- package/dist/{table-widget-65f3e04e.js → table-widget-b467cc86.js} +13857 -13750
- package/dist/translation/resources/en.d.ts +1 -0
- package/dist/translation/resources/index.d.ts +2 -0
- package/dist/types.d.ts +52 -5
- package/dist/utils/filters-comparator.d.ts +2 -2
- package/dist/widgets/common/custom-drilldown.d.ts +1 -1
- package/dist/widgets/common/drilldown.d.ts +3 -1
- package/package.json +7 -7
- package/dist/dashboard-widget/translate-widget.d.ts +0 -12
- package/dist/query-execution/utils.d.ts +0 -9
- package/dist/sisense-chart.d.ts +0 -23
|
@@ -1,28 +1,18 @@
|
|
|
1
1
|
import leaflet from 'leaflet';
|
|
2
2
|
import { ScattermapMarkers } from '../../../../types';
|
|
3
|
-
type
|
|
3
|
+
type MarkerStyle = {
|
|
4
4
|
color: string;
|
|
5
5
|
size: number;
|
|
6
6
|
fill: Required<ScattermapMarkers>['fill'];
|
|
7
7
|
blur: boolean;
|
|
8
8
|
};
|
|
9
|
-
type
|
|
9
|
+
export type MarkerConfig = {
|
|
10
10
|
coordinates: {
|
|
11
11
|
lat: number;
|
|
12
12
|
lng: number;
|
|
13
13
|
};
|
|
14
|
-
style:
|
|
14
|
+
style: MarkerStyle;
|
|
15
15
|
};
|
|
16
|
-
export declare function
|
|
17
|
-
radius: number;
|
|
18
|
-
fillOpacity: number;
|
|
19
|
-
opacity: number;
|
|
20
|
-
fillColor: string;
|
|
21
|
-
color: string;
|
|
22
|
-
stroke: boolean;
|
|
23
|
-
weight: number;
|
|
24
|
-
customStyle: PrepareMarkerOptionsProps;
|
|
25
|
-
};
|
|
26
|
-
export declare function createMarker({ coordinates, style }: CreateMarkerProps): leaflet.CircleMarker<any>;
|
|
16
|
+
export declare function createMarker({ coordinates, style }: MarkerConfig): leaflet.CircleMarker;
|
|
27
17
|
export declare function removeMarkers(markers: leaflet.CircleMarker[]): void;
|
|
28
18
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CompleteThemeSettings } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Component that displays a loading overlay.
|
|
5
|
+
* Overlay is active when query is executed within a chart.
|
|
6
|
+
*
|
|
7
|
+
* @param isVisible - visibility of the overlay.
|
|
8
|
+
* @returns Child component wrapped in dynamic overlay.
|
|
9
|
+
*/
|
|
10
|
+
export declare const LoadingOverlay: ({ isVisible, themeSettings, children, }: {
|
|
11
|
+
isVisible: boolean;
|
|
12
|
+
themeSettings: CompleteThemeSettings;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -25,7 +25,7 @@ export declare function extractFilterModelFromJaql(jaql: FilterJaql): {
|
|
|
25
25
|
* @param jaql - The filter JAQL object.
|
|
26
26
|
* @returns - The created Filter object.
|
|
27
27
|
*/
|
|
28
|
-
export declare function createFilterFromJaql(jaql: FilterJaql): Filter;
|
|
28
|
+
export declare function createFilterFromJaql(jaql: FilterJaql, instanceid?: string): Filter;
|
|
29
29
|
/**
|
|
30
30
|
* Extracts filters from the widget panel.
|
|
31
31
|
*
|
|
@@ -25,6 +25,9 @@ export declare const fetchWidgetDtoModel: ({ widgetOid, dashboardOid, includeDas
|
|
|
25
25
|
datasource: import("./types").Datasource;
|
|
26
26
|
widgets?: WidgetDto[] | undefined;
|
|
27
27
|
filters?: (import("../api/types/dashboard-dto").Filter | import("../api/types/dashboard-dto").CascadingFilter)[] | undefined;
|
|
28
|
+
filterRelations?: {
|
|
29
|
+
filterRelations: import("@sisense/sdk-data").FilterRelationsModel;
|
|
30
|
+
}[] | undefined;
|
|
28
31
|
} & import("../utils/utility-types").AnyObject) | undefined;
|
|
29
32
|
}>;
|
|
30
33
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Filter, SortDirection as JaqlSortDirection } from '@sisense/sdk-data';
|
|
1
|
+
import { type Filter, SortDirection as JaqlSortDirection, FilterRelations, FilterRelationsModel, FilterRelationsJaql } from '@sisense/sdk-data';
|
|
2
2
|
import { ChartSubtype } from '../chart-options-processor/subtype-to-design-options';
|
|
3
3
|
import { ChartType, SortDirection } from '../types';
|
|
4
4
|
import { FiltersMergeStrategy, Panel, PanelItem, WidgetSubtype, WidgetType } from './types';
|
|
@@ -28,4 +28,29 @@ export declare function mergeFilters(sourceFilters?: Filter[], targetFilters?: F
|
|
|
28
28
|
* @returns {Filter[]} The merged filters based on the selected strategy.
|
|
29
29
|
*/
|
|
30
30
|
export declare function mergeFiltersByStrategy(widgetFilters?: Filter[], codeFilters?: Filter[], mergeStrategy?: FiltersMergeStrategy): Filter[];
|
|
31
|
+
/**
|
|
32
|
+
* Replaces nodes of filter reations tree with fetched filters by instance id.
|
|
33
|
+
*
|
|
34
|
+
* @param filters - The filters from the dashboard.
|
|
35
|
+
* @param filterRelations - Fetched filter relations.
|
|
36
|
+
* @returns {FilterRelations} Filter relations with filters in nodes.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getFilterRelationsFromJaql(filters: Filter[], filterRelations: FilterRelationsJaql | undefined): FilterRelations | Filter[];
|
|
39
|
+
/**
|
|
40
|
+
* Converts filter relations model to filter relations jaql.
|
|
41
|
+
*
|
|
42
|
+
* @param filterRelations - Filter relations model.
|
|
43
|
+
* @returns {FilterRelationsJaql} Filter relations jaql.
|
|
44
|
+
*/
|
|
45
|
+
export declare function convertFilterRelationsModelToJaql(filterRelations: FilterRelationsModel | undefined): FilterRelationsJaql | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Replaces filters for same dimensions in filter relations jaql.
|
|
48
|
+
* Widget filters have higher priority than dashboard filters.
|
|
49
|
+
*
|
|
50
|
+
* @param widgetFilters - The filters from the widget.
|
|
51
|
+
* @param dashboardFilters - The filters from the dashboard.
|
|
52
|
+
* @param relations - The filter relations before replacement.
|
|
53
|
+
* @returns {FilterRelationsJaql} The filter relations after replacement.
|
|
54
|
+
*/
|
|
55
|
+
export declare function applyWidgetFiltersToRelations(widgetFilters: Filter[], dashboardFilters: Filter[], relations: FilterRelationsJaql | undefined): FilterRelationsJaql | undefined;
|
|
31
56
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FunctionComponent, InputHTMLAttributes } from 'react';
|
|
2
2
|
type CheckboxProps = {
|
|
3
3
|
label?: string;
|
|
4
|
+
isLabelInactive?: boolean;
|
|
4
5
|
wrapperClassName?: string;
|
|
5
6
|
} & InputHTMLAttributes<HTMLInputElement>;
|
|
6
7
|
export declare const Checkbox: FunctionComponent<CheckboxProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { getThemeSettingsByOid } from './themes/theme-loader';
|
|
|
37
37
|
export { getDefaultThemeSettings } from './chart-options-processor/theme-option-service';
|
|
38
38
|
export { useGetDashboardModel, useGetDashboardModels, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, } from './models';
|
|
39
39
|
export { boxWhiskerProcessResult } from './boxplot-utils';
|
|
40
|
+
export { queryStateReducer } from './query-execution/query-state-reducer';
|
|
40
41
|
export * from './props';
|
|
41
42
|
export * from './types';
|
|
42
43
|
export * from './filters';
|