@sisense/sdk-ui 0.15.0 → 0.16.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 +3 -2
- package/dist/chart-data-options/coloring/consts.d.ts +3 -0
- package/dist/chart-data-options/coloring/utils.d.ts +6 -0
- package/dist/chart-data-options/get-translated-data-options.d.ts +6 -0
- package/dist/chart-options-processor/chart-options-service.d.ts +2 -74
- package/dist/chart-options-processor/translations/axis-section.d.ts +3 -1
- package/dist/chart-options-processor/translations/funnel-series.d.ts +1 -2
- package/dist/chart-options-processor/translations/legend-section.d.ts +2 -1
- package/dist/chart-options-processor/translations/pie-series.d.ts +1 -2
- package/dist/chart-options-processor/translations/translations-to-highcharts.d.ts +6 -2
- package/dist/dashboard-widget/translate-panel-color-format.d.ts +2 -2
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +4 -4
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +1 -1
- package/dist/dashboard-widget/types.d.ts +20 -17
- package/dist/dashboard-widget/use-fetch-widget-dto-model.d.ts +7 -1
- package/dist/dashboard-widget/utils.d.ts +1 -1
- package/dist/filters/components/common/dropdown.d.ts +8 -0
- package/dist/filters/components/common/index.d.ts +2 -1
- package/dist/filters/components/common/radio.d.ts +7 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +2 -2
- package/dist/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +5 -3
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +17 -3
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +20 -3
- package/dist/filters/components/member-filter-tile/basic-member-filter-tile.d.ts +2 -0
- package/dist/filters/components/member-filter-tile/members-reducer.d.ts +9 -1
- package/dist/filters/components/member-filter-tile/pill-section.d.ts +0 -1
- package/dist/highcharts-memorized.d.ts +4 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5375 -4600
- package/dist/models/dashboard/types.d.ts +1 -1
- package/dist/models/widget/get-widget-model.d.ts +4 -0
- package/dist/models/widget/index.d.ts +3 -1
- package/dist/models/widget/translate-widget.d.ts +1 -1
- package/dist/models/widget/use-get-widget-model.d.ts +102 -0
- package/dist/models/widget/widget-model.d.ts +122 -0
- package/dist/query/execute-query.d.ts +2 -0
- package/dist/query-execution/csv-query-state-reducer.d.ts +2 -0
- package/dist/query-execution/index.d.ts +4 -3
- package/dist/query-execution/query-state-reducer.d.ts +1 -58
- package/dist/query-execution/types.d.ts +190 -0
- package/dist/query-execution/use-execute-csv-query.d.ts +82 -0
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +2 -37
- package/dist/query-execution/use-execute-query.d.ts +8 -33
- package/dist/table/hooks/use-table-data.d.ts +5 -1
- package/dist/table/table.d.ts +3 -0
- package/dist/{table-widget-7b20ecf7.js → table-widget-5f3b1d03.js} +21968 -21679
- package/dist/translation/resources/en.d.ts +6 -0
- package/dist/translation/resources/index.d.ts +12 -0
- package/dist/utils/utility-types.d.ts +4 -0
- package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs-navigation.d.ts +8 -0
- package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +11 -0
- package/package.json +15 -6
- package/dist/models/widget/types.d.ts +0 -6
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { QueryState } from './query-state-reducer';
|
|
3
|
-
/**
|
|
4
|
-
* Parameters for {@link useExecuteQuery} hook.
|
|
5
|
-
*/
|
|
6
|
-
export interface ExecuteQueryParams {
|
|
7
|
-
/**
|
|
8
|
-
* Data source the query is run against - e.g. `Sample ECommerce`
|
|
9
|
-
*
|
|
10
|
-
* If not specified, the query will use the `defaultDataSource` specified in the parent Sisense Context.
|
|
11
|
-
*/
|
|
12
|
-
dataSource?: DataSource;
|
|
13
|
-
/** Dimensions of the query */
|
|
14
|
-
dimensions?: Attribute[];
|
|
15
|
-
/** Measures of the query */
|
|
16
|
-
measures?: Measure[];
|
|
17
|
-
/** Filters that will slice query results */
|
|
18
|
-
filters?: Filter[];
|
|
19
|
-
/** Highlight filters that will highlight results that pass filter criteria */
|
|
20
|
-
highlights?: Filter[];
|
|
21
|
-
/** {@inheritDoc ExecuteQueryProps.count} */
|
|
22
|
-
count?: number;
|
|
23
|
-
/** {@inheritDoc ExecuteQueryProps.offset} */
|
|
24
|
-
offset?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Boolean flag to control if query is executed
|
|
27
|
-
*
|
|
28
|
-
* If not specified, the default value is `true`
|
|
29
|
-
*/
|
|
30
|
-
enabled?: boolean;
|
|
31
|
-
/** {@inheritDoc ExecuteQueryProps.onBeforeQuery} */
|
|
32
|
-
onBeforeQuery?: (jaql: any) => any | Promise<any>;
|
|
33
|
-
}
|
|
1
|
+
import { ExecuteQueryParams, QueryState } from './types';
|
|
34
2
|
/**
|
|
35
3
|
* React hook that executes a data query.
|
|
36
4
|
* This approach, which offers an alternative to {@link ExecuteQuery} component, is similar to React Query's `useQuery` hook.
|
|
@@ -69,3 +37,10 @@ export declare const useExecuteQuery: (params: ExecuteQueryParams) => QueryState
|
|
|
69
37
|
* @internal
|
|
70
38
|
*/
|
|
71
39
|
export declare function useExecuteQueryInternal(params: ExecuteQueryParams): QueryState;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the query parameters have changed by deep comparison.
|
|
42
|
+
*
|
|
43
|
+
* @param prevParams - Previous query parameters
|
|
44
|
+
* @param newParams - New query parameters
|
|
45
|
+
*/
|
|
46
|
+
export declare function isQueryParamsChanged(prevParams: ExecuteQueryParams | undefined, newParams: ExecuteQueryParams): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Data, DataSource, Filter } from '@sisense/sdk-data';
|
|
1
|
+
import { Attribute, Data, DataSource, Filter, Measure } from '@sisense/sdk-data';
|
|
2
2
|
import { TableDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
3
|
type UseDataProps = {
|
|
4
4
|
dataSet: Data | DataSource | undefined;
|
|
@@ -7,5 +7,9 @@ type UseDataProps = {
|
|
|
7
7
|
count: number;
|
|
8
8
|
offset: number;
|
|
9
9
|
};
|
|
10
|
+
export declare const getTableAttributesAndMeasures: (dataOptions: TableDataOptionsInternal) => {
|
|
11
|
+
attributes: Attribute[];
|
|
12
|
+
measures: Measure[];
|
|
13
|
+
};
|
|
10
14
|
export declare const useTableData: ({ dataSet, dataOptions, filters, count, offset, }: UseDataProps) => Data | null;
|
|
11
15
|
export {};
|
package/dist/table/table.d.ts
CHANGED
|
@@ -48,3 +48,6 @@ import { TableProps } from '../props';
|
|
|
48
48
|
* @returns Table component
|
|
49
49
|
*/
|
|
50
50
|
export declare const Table: React.FunctionComponent<TableProps>;
|
|
51
|
+
export declare const DEFAULT_TABLE_ROWS_PER_PAGE: 25;
|
|
52
|
+
/** How many pages of data will be loaded in one query */
|
|
53
|
+
export declare const PAGES_BATCH_SIZE = 10;
|