@sisense/sdk-ui-vue 1.2.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +83668 -62966
- package/dist/src/components/charts/area-chart.d.ts +22 -9
- package/dist/src/components/charts/areamap-chart.d.ts +23 -17
- package/dist/src/components/charts/bar-chart.d.ts +23 -10
- package/dist/src/components/charts/boxplot-chart.d.ts +29 -15
- package/dist/src/components/charts/chart-widget.d.ts +42 -11
- package/dist/src/components/charts/chart.d.ts +16 -27
- package/dist/src/components/charts/column-chart.d.ts +23 -10
- package/dist/src/components/charts/dashboard-widget.d.ts +11 -11
- package/dist/src/components/charts/funnel-chart.d.ts +21 -7
- package/dist/src/components/charts/index.d.ts +1 -0
- package/dist/src/components/charts/indicator-chart.d.ts +20 -9
- package/dist/src/components/charts/line-chart.d.ts +20 -8
- package/dist/src/components/charts/pie-chart.d.ts +22 -10
- package/dist/src/components/charts/pivot-table.d.ts +41 -0
- package/dist/src/components/charts/polar-chart.d.ts +22 -10
- package/dist/src/components/charts/scatter-chart.d.ts +28 -10
- package/dist/src/components/charts/scattermap-chart.d.ts +22 -7
- package/dist/src/components/charts/sunburst-chart.d.ts +16 -8
- package/dist/src/components/charts/table-widget.d.ts +6 -4
- package/dist/src/components/charts/table.d.ts +6 -5
- package/dist/src/components/charts/treemap-chart.d.ts +21 -9
- package/dist/src/components/context-menu.d.ts +32 -0
- package/dist/src/components/drilldown-breadcrumbs.d.ts +41 -0
- package/dist/src/components/drilldown-widget.d.ts +44 -0
- package/dist/src/components/drilldown-widget.vue.d.ts +2 -44
- package/dist/src/components/filters/basic-member-filter-tile.d.ts +1 -0
- package/dist/src/components/filters/criteria-filter-tile.d.ts +19 -4
- package/dist/src/components/filters/date-range-filter-tile.d.ts +14 -5
- package/dist/src/components/filters/member-filter-tile.d.ts +16 -5
- package/dist/src/composables/index.d.ts +6 -0
- package/dist/src/{hooks → composables}/use-custom-drilldown.d.ts +21 -2
- package/dist/src/composables/use-execute-query-by-widget-id.d.ts +42 -0
- package/dist/src/composables/use-execute-query.d.ts +44 -0
- package/dist/src/composables/use-get-dashboard-model.d.ts +41 -0
- package/dist/src/composables/use-get-dashboard-models.d.ts +38 -0
- package/dist/src/composables/use-get-shared-formula.d.ts +45 -0
- package/dist/src/composables/use-get-widget-model.d.ts +41 -0
- package/dist/src/composables/use-tracking.d.ts +39 -0
- package/dist/src/helpers/use-reducer.d.ts +10 -0
- package/dist/src/lib.d.ts +2 -8
- package/dist/src/providers/index.d.ts +1 -1
- package/dist/src/providers/sisense-context-provider.d.ts +49 -9
- package/dist/src/providers/theme-provider.d.ts +60 -5
- package/dist/src/sdk-ui-core-exports.d.ts +5 -0
- package/dist/src/types.d.ts +5 -0
- package/dist/src/utils.d.ts +6 -0
- package/package.json +4 -1
- package/dist/src/hooks/index.d.ts +0 -6
- package/dist/src/hooks/use-execute-query-by-widget-id.d.ts +0 -9
- package/dist/src/hooks/use-execute-query.d.ts +0 -11
- package/dist/src/hooks/use-get-dashboard-model.d.ts +0 -4
- package/dist/src/hooks/use-get-dashboard-models.d.ts +0 -4
- package/dist/src/hooks/use-get-shared-formula.d.ts +0 -4
- package/dist/src/hooks/use-get-widget-model.d.ts +0 -4
@@ -6,6 +6,7 @@ export { LineChart } from './line-chart';
|
|
6
6
|
export { PieChart } from './pie-chart';
|
7
7
|
export { ScatterChart } from './scatter-chart';
|
8
8
|
export { Table } from './table';
|
9
|
+
export { PivotTable } from './pivot-table';
|
9
10
|
export { TreemapChart } from './treemap-chart';
|
10
11
|
export { SunburstChart } from './sunburst-chart';
|
11
12
|
export { PolarChart } from './polar-chart';
|
@@ -1,29 +1,40 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component that
|
4
|
-
*
|
3
|
+
* A Vue component that provides various options for displaying one or two numeric values as a number, gauge or ticker.
|
4
|
+
* See [Indicator](https://docs.sisense.com/main/SisenseLinux/indicator.htm) for more information.
|
5
5
|
*
|
6
6
|
* @example
|
7
7
|
* Here's how you can use the IndicatorChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<IndicatorChart
|
11
|
+
:dataOptions="indicatorChartProps.dataOptions"
|
12
|
+
:dataSet="indicatorChartProps.dataSet"
|
13
|
+
:filters="indicatorChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import IndicatorChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {IndicatorChart, type IndicatorChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
21
|
+
const indicatorChartProps = ref<IndicatorChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
25
|
+
},
|
26
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
27
|
+
});
|
20
28
|
* </script>
|
21
29
|
* ```
|
30
|
+
* <img src="media://indicator-chart-example-1.png" width="400px" />
|
31
|
+
* @param props - Indicator chart properties
|
32
|
+
* @returns Indicator Chart component
|
22
33
|
*/
|
23
34
|
export declare const IndicatorChart: import("vue").DefineComponent<{
|
24
35
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").IndicatorChartDataOptions>;
|
25
36
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
37
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
38
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
39
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").IndicatorStyleOptions | undefined>;
|
29
40
|
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -31,7 +42,7 @@ export declare const IndicatorChart: import("vue").DefineComponent<{
|
|
31
42
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
32
43
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").IndicatorChartDataOptions>;
|
33
44
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
34
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
45
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
35
46
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
36
47
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").IndicatorStyleOptions | undefined>;
|
37
48
|
}>>, {}, {}>;
|
@@ -7,23 +7,35 @@ import type { PropType } from 'vue';
|
|
7
7
|
* Here's how you can use the LineChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<LineChart
|
11
|
+
:dataOptions="lineChartProps.dataOptions"
|
12
|
+
:dataSet="lineChartProps.dataSet"
|
13
|
+
:filters="lineChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import LineChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {LineChart, type LineChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
const lineChartProps = ref<LineChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
26
|
+
breakBy: [],
|
27
|
+
},
|
28
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
29
|
+
});
|
21
30
|
* ```
|
31
|
+
* <img src="media://line-chart-example-1.png" width="800px" />
|
32
|
+
* @param props - Line chart properties
|
33
|
+
* @returns Line Chart component
|
22
34
|
*/
|
23
35
|
export declare const LineChart: import("vue").DefineComponent<{
|
24
36
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
25
37
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
39
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
40
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
41
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +47,7 @@ export declare const LineChart: import("vue").DefineComponent<{
|
|
35
47
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
48
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
37
49
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
50
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
51
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
52
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
53
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,29 +1,41 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component representing data in a circular graph with the data shown as slices of a whole,
|
4
|
+
* with each slice representing a proportion of the total.
|
5
|
+
* See [Pie Chart](https://docs.sisense.com/main/SisenseLinux/pie-chart.htm) for more information.
|
5
6
|
*
|
6
7
|
* @example
|
7
8
|
* Here's how you can use the PieChart component in a Vue application:
|
8
9
|
* ```vue
|
9
10
|
* <template>
|
10
|
-
|
11
|
+
<PieChart
|
12
|
+
:dataOptions="pieChartProps.dataOptions"
|
13
|
+
:dataSet="pieChartProps.dataSet"
|
14
|
+
:filters="pieChartProps.filters"
|
15
|
+
/>
|
11
16
|
* </template>
|
12
17
|
*
|
13
18
|
* <script setup lang="ts">
|
14
19
|
* import { ref } from 'vue';
|
15
|
-
* import PieChart from '@sisense/sdk-ui-vue
|
20
|
+
* import {PieChart,type PieChartProps} from '@sisense/sdk-ui-vue';
|
16
21
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
const pieChartProps = ref<PieChartProps>({
|
23
|
+
dataSet: DM.DataSource,
|
24
|
+
dataOptions: {
|
25
|
+
category: [dimProductName],
|
26
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
27
|
+
},
|
28
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
29
|
+
});
|
21
30
|
* ```
|
31
|
+
* <img src="media://pie-chart-example-1.png" width="600px" />
|
32
|
+
* @param props - Pie chart properties
|
33
|
+
* @returns Pie Chart component
|
22
34
|
*/
|
23
35
|
export declare const PieChart: import("vue").DefineComponent<{
|
24
36
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
25
37
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
39
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
40
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
41
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +47,7 @@ export declare const PieChart: import("vue").DefineComponent<{
|
|
35
47
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
48
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
37
49
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
50
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
51
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
52
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
53
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
/**
|
3
|
+
* TBU
|
4
|
+
* A Vue component that wraps the PivotTable Preact component for use in Vue applications.
|
5
|
+
* It provides a single 'props' prop to pass all the TableProps to the Table Preact component,
|
6
|
+
* enabling the use of the table within Vue's reactivity system.
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* Here's how you can use the Table component in a Vue application:
|
10
|
+
* ```vue
|
11
|
+
* <template>
|
12
|
+
* <Table :props="tableProps" />
|
13
|
+
* </template>
|
14
|
+
*
|
15
|
+
* <script setup lang="ts">
|
16
|
+
* import { ref } from 'vue';
|
17
|
+
* import Table from '@sisense/sdk-ui-vue/Table';
|
18
|
+
*
|
19
|
+
* const tableProps = ref({
|
20
|
+
* // Define your TableProps configuration here
|
21
|
+
* });
|
22
|
+
* </script>
|
23
|
+
* ```
|
24
|
+
*
|
25
|
+
* @alpha
|
26
|
+
*/
|
27
|
+
export declare const PivotTable: import("vue").DefineComponent<{
|
28
|
+
dataOptions: PropType<import("@sisense/sdk-ui-preact").PivotTableDataOptions>;
|
29
|
+
dataSet: PropType<string | undefined>;
|
30
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
31
|
+
refreshCounter: PropType<number | undefined>;
|
32
|
+
styleOptions: PropType<import("@sisense/sdk-ui-preact").PivotTableStyleOptions | undefined>;
|
33
|
+
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
|
+
dataOptions: PropType<import("@sisense/sdk-ui-preact").PivotTableDataOptions>;
|
37
|
+
dataSet: PropType<string | undefined>;
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
|
+
refreshCounter: PropType<number | undefined>;
|
40
|
+
styleOptions: PropType<import("@sisense/sdk-ui-preact").PivotTableStyleOptions | undefined>;
|
41
|
+
}>>, {}, {}>;
|
@@ -1,29 +1,41 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component comparing multiple categories/variables with a spacial perspective in a radial chart.
|
4
|
+
* See [Polar Chart](https://docs.sisense.com/main/SisenseLinux/polar-chart.htm) for more information.
|
5
5
|
*
|
6
6
|
* @example
|
7
7
|
* Here's how you can use the PolarChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<PolarChart
|
11
|
+
:dataOptions="polarChartProps.dataOptions"
|
12
|
+
:dataSet="polarChartProps.dataSet"
|
13
|
+
:filters="polarChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import PolarChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {PolarChart,type PolarChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
const polarChartProps = ref<PolarChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
26
|
+
breakBy: [],
|
27
|
+
},
|
28
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
29
|
+
});
|
21
30
|
* ```
|
31
|
+
* <img src="media://polar-chart-example-1.png" width="600px" />
|
32
|
+
* @param props - Polar chart properties
|
33
|
+
* @returns Polar Chart component
|
22
34
|
*/
|
23
35
|
export declare const PolarChart: import("vue").DefineComponent<{
|
24
36
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
25
37
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
39
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
40
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
41
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +47,7 @@ export declare const PolarChart: import("vue").DefineComponent<{
|
|
35
47
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
48
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CartesianChartDataOptions>;
|
37
49
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
50
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
51
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
52
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
53
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,29 +1,47 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component displaying the distribution of two variables on an X-Axis, Y-Axis,
|
4
|
+
* and two additional fields of data that are shown as colored circles scattered across the chart.
|
5
|
+
*
|
6
|
+
* **Point**: A field that for each of its members a scatter point is drawn. The maximum amount of data points is 500.
|
7
|
+
*
|
8
|
+
* **Size**: An optional field represented by the size of the circles.
|
9
|
+
* If omitted, all scatter points are equal in size. If used, the circle sizes are relative to their values.
|
10
|
+
*
|
11
|
+
* See [Scatter Chart](https://docs.sisense.com/main/SisenseLinux/scatter-chart.htm) for more information.
|
5
12
|
*
|
6
13
|
* @example
|
7
14
|
* Here's how you can use the ScatterChart component in a Vue application:
|
8
15
|
* ```vue
|
9
16
|
* <template>
|
10
|
-
|
17
|
+
<ScatterChart
|
18
|
+
:dataOptions="scatterChartProps.dataOptions"
|
19
|
+
:dataSet="scatterChartProps.dataSet"
|
20
|
+
:filters="scatterChartProps.filters"
|
21
|
+
/>
|
11
22
|
* </template>
|
12
23
|
*
|
13
24
|
* <script setup lang="ts">
|
14
25
|
* import { ref } from 'vue';
|
15
|
-
* import ScatterChart from '@sisense/sdk-ui-vue
|
26
|
+
* import {ScatterChart, type ScatterChartProps} from '@sisense/sdk-ui-vue';
|
16
27
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
28
|
+
const scatterChartProps = ref<ScatterChartProps>({
|
29
|
+
dataSet: DM.DataSource,
|
30
|
+
dataOptions: {
|
31
|
+
x: dimProductName,
|
32
|
+
y: measureTotalRevenue,
|
33
|
+
},
|
34
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
35
|
+
});
|
21
36
|
* ```
|
37
|
+
* <img src="media://scatter-chart-example-1.png" width="800px" />
|
38
|
+
* @param props - Scatter chart properties
|
39
|
+
* @returns Scatter Chart component
|
22
40
|
*/
|
23
41
|
export declare const ScatterChart: import("vue").DefineComponent<{
|
24
42
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ScatterChartDataOptions>;
|
25
43
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
44
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
45
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
46
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
47
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
@@ -35,7 +53,7 @@ export declare const ScatterChart: import("vue").DefineComponent<{
|
|
35
53
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
54
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ScatterChartDataOptions>;
|
37
55
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
56
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
57
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
58
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
59
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").ScatterDataPointEventHandler | undefined>;
|
@@ -7,31 +7,46 @@ import type { PropType } from 'vue';
|
|
7
7
|
* Here's how you can use the ScattermapChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<ScattermapChart
|
11
|
+
:dataOptions="scattermapChartProps.dataOptions"
|
12
|
+
:dataSet="scattermapChartProps.dataSet"
|
13
|
+
:filters="scattermapChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import ScattermapChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {ScattermapChart,type ScattermapChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
21
|
+
const scattermapChartProps = ref<ScattermapChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
geo: [DM.DimCountries.CountryName],
|
25
|
+
size: { column: measureTotalRevenue, title: 'Total Revenue' },
|
26
|
+
},
|
27
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
28
|
+
});
|
20
29
|
* </script>
|
21
30
|
* ```
|
31
|
+
* <img src="media://scattermap-chart-example-1.png" width="600px" />
|
32
|
+
* @param props - Scattermap chart properties
|
33
|
+
* @returns Scattermap Chart component
|
34
|
+
* @beta
|
22
35
|
*/
|
23
36
|
export declare const ScattermapChart: import("vue").DefineComponent<{
|
24
37
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapChartDataOptions>;
|
25
38
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
39
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
40
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
41
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapStyleOptions | undefined>;
|
42
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
29
43
|
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
30
44
|
[key: string]: any;
|
31
45
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
32
46
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapChartDataOptions>;
|
33
47
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
34
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
48
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
35
49
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
36
50
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapStyleOptions | undefined>;
|
51
|
+
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").ScattermapDataPointEventHandler | undefined>;
|
37
52
|
}>>, {}, {}>;
|
@@ -7,23 +7,31 @@ import type { PropType } from 'vue';
|
|
7
7
|
* Here's how you can use the SunburstChart component in a Vue application:
|
8
8
|
* ```vue
|
9
9
|
* <template>
|
10
|
-
|
10
|
+
<SunburstChart
|
11
|
+
:dataOptions="sunburstChartProps.dataOptions"
|
12
|
+
:dataSet="sunburstChartProps.dataSet"
|
13
|
+
:filters="sunburstChartProps.filters"
|
14
|
+
/>
|
11
15
|
* </template>
|
12
16
|
*
|
13
17
|
* <script setup lang="ts">
|
14
18
|
* import { ref } from 'vue';
|
15
|
-
* import SunburstChart from '@sisense/sdk-ui-vue
|
19
|
+
* import {SunburstChart,type SunburstChartProps} from '@sisense/sdk-ui-vue';
|
16
20
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
+
const sunburstChartProps = ref<SunburstChartProps>({
|
22
|
+
dataSet: DM.DataSource,
|
23
|
+
dataOptions: {
|
24
|
+
category: [dimProductName],
|
25
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
26
|
+
},
|
27
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
28
|
+
});
|
21
29
|
* ```
|
22
30
|
*/
|
23
31
|
export declare const SunburstChart: import("vue").DefineComponent<{
|
24
32
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
25
33
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
34
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
35
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
36
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
37
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +43,7 @@ export declare const SunburstChart: import("vue").DefineComponent<{
|
|
35
43
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
44
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
37
45
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
46
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
47
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
48
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
49
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { type Prop } from 'vue';
|
3
3
|
/**
|
4
|
-
*
|
5
|
-
* It uses a single 'props' prop to pass all TableWidgetProps to the TableWidgetPreact component.
|
4
|
+
* The TableWidget component extending the {@link Table} component to support widget style options.
|
6
5
|
*
|
7
6
|
* @example
|
8
7
|
* Here's how you can use the TableWidget component in a Vue application:
|
@@ -20,13 +19,16 @@ import { type Prop } from 'vue';
|
|
20
19
|
* });
|
21
20
|
* </script>
|
22
21
|
* ```
|
22
|
+
* @param props - Table Widget properties
|
23
|
+
* @returns Widget component representing a table
|
24
|
+
* @internal
|
23
25
|
*/
|
24
26
|
export declare const TableWidget: import("vue").DefineComponent<{
|
25
27
|
bottomSlot: Prop<import("react").ReactNode>;
|
26
28
|
dataOptions: Prop<import("@sisense/sdk-ui-preact").TableDataOptions>;
|
27
29
|
dataSource: Prop<string | undefined>;
|
28
30
|
description: Prop<string | undefined>;
|
29
|
-
filters: Prop<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
31
|
+
filters: Prop<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
30
32
|
styleOptions: Prop<import("@sisense/sdk-ui-preact").TableWidgetStyleOptions | undefined>;
|
31
33
|
title: Prop<string | undefined>;
|
32
34
|
topSlot: Prop<import("react").ReactNode>;
|
@@ -38,7 +40,7 @@ export declare const TableWidget: import("vue").DefineComponent<{
|
|
38
40
|
dataOptions: Prop<import("@sisense/sdk-ui-preact").TableDataOptions>;
|
39
41
|
dataSource: Prop<string | undefined>;
|
40
42
|
description: Prop<string | undefined>;
|
41
|
-
filters: Prop<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
43
|
+
filters: Prop<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
42
44
|
styleOptions: Prop<import("@sisense/sdk-ui-preact").TableWidgetStyleOptions | undefined>;
|
43
45
|
title: Prop<string | undefined>;
|
44
46
|
topSlot: Prop<import("react").ReactNode>;
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* It provides a single 'props' prop to pass all the TableProps to the Table Preact component,
|
5
|
-
* enabling the use of the table within Vue's reactivity system.
|
3
|
+
* Table with aggregation and pagination.
|
6
4
|
*
|
7
5
|
* @example
|
8
6
|
* Here's how you can use the Table component in a Vue application:
|
@@ -20,11 +18,14 @@ import type { PropType } from 'vue';
|
|
20
18
|
* });
|
21
19
|
* </script>
|
22
20
|
* ```
|
21
|
+
* <img src="media://table-example-2.png" width="800px" />
|
22
|
+
* @param props - Table properties
|
23
|
+
* @returns Table component
|
23
24
|
*/
|
24
25
|
export declare const Table: import("vue").DefineComponent<{
|
25
26
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").TableDataOptions>;
|
26
27
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
27
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
28
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
28
29
|
refreshCounter: PropType<number | undefined>;
|
29
30
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").TableStyleOptions | undefined>;
|
30
31
|
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -32,7 +33,7 @@ export declare const Table: import("vue").DefineComponent<{
|
|
32
33
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
34
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").TableDataOptions>;
|
34
35
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
35
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
36
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
36
37
|
refreshCounter: PropType<number | undefined>;
|
37
38
|
styleOptions: PropType<import("@sisense/sdk-ui-preact").TableStyleOptions | undefined>;
|
38
39
|
}>>, {}, {}>;
|
@@ -1,29 +1,41 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
* A Vue component
|
4
|
-
*
|
3
|
+
* A Vue component displaying hierarchical data in the form of nested rectangles.
|
4
|
+
* This type of chart can be used instead of a column chart for comparing a large number of categories and sub-categories.
|
5
|
+
* See [Treemap Chart](https://docs.sisense.com/main/SisenseLinux/treemap.htm) for more information.
|
5
6
|
*
|
6
7
|
* @example
|
7
8
|
* Here's how you can use the TreemapChart component in a Vue application:
|
8
9
|
* ```vue
|
9
10
|
* <template>
|
10
|
-
|
11
|
+
<TreemapChart
|
12
|
+
:dataOptions="treemapChartProps.dataOptions"
|
13
|
+
:dataSet="treemapChartProps.dataSet"
|
14
|
+
:filters="treemapChartProps.filters"
|
15
|
+
/>
|
11
16
|
* </template>
|
12
17
|
*
|
13
18
|
* <script setup lang="ts">
|
14
19
|
* import { ref } from 'vue';
|
15
20
|
* import TreemapChart from '@sisense/sdk-ui-vue/TreemapChart';
|
16
21
|
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
const treemapChartProps = ref<TreemapChartProps>({
|
23
|
+
dataSet: DM.DataSource,
|
24
|
+
dataOptions: {
|
25
|
+
category: [dimProductName],
|
26
|
+
value: [{ column: measureTotalRevenue, sortType: 'sortDesc' }],
|
27
|
+
},
|
28
|
+
filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 10)],
|
29
|
+
});
|
21
30
|
* ```
|
31
|
+
* <img src="media://treemap-chart-example-1.png" width="600px" />
|
32
|
+
* @param props - Treemap chart properties
|
33
|
+
* @returns Treemap Chart component
|
22
34
|
*/
|
23
35
|
export declare const TreemapChart: import("vue").DefineComponent<{
|
24
36
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
25
37
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
26
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
27
39
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
28
40
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
29
41
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -35,7 +47,7 @@ export declare const TreemapChart: import("vue").DefineComponent<{
|
|
35
47
|
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
48
|
dataOptions: PropType<import("@sisense/sdk-ui-preact").CategoricalChartDataOptions>;
|
37
49
|
dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
|
38
|
-
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").
|
50
|
+
filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelations | undefined>;
|
39
51
|
highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
|
40
52
|
onBeforeRender: PropType<import("@sisense/sdk-ui-preact").BeforeRenderHandler | undefined>;
|
41
53
|
onDataPointClick: PropType<import("@sisense/sdk-ui-preact").DataPointEventHandler | undefined>;
|
@@ -1,4 +1,36 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
|
+
/**
|
3
|
+
* `ContextMenu` component from the `@sisense/sdk-ui-vue` package.
|
4
|
+
* This component provides a context menu that can be customized with different items and sections.
|
5
|
+
* It allows for flexible positioning and can be easily integrated into Vue applications.
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* Here's how to use the `ContextMenu` component:
|
9
|
+
* ```vue
|
10
|
+
* <template>
|
11
|
+
* <ContextMenu :closeContextMenu="closeMenu" :itemSections="sections" :position="menuPosition">
|
12
|
+
* </ContextMenu>
|
13
|
+
* </template>
|
14
|
+
*
|
15
|
+
* <script>
|
16
|
+
* import { ref } from 'vue';
|
17
|
+
* import ContextMenu from './ContextMenu.vue';
|
18
|
+
*
|
19
|
+
* export default {
|
20
|
+
* components: { ContextMenu },
|
21
|
+
* setup() {
|
22
|
+
* const sections = ref([...]);
|
23
|
+
* const menuPosition = ref({ top: 0, left: 0 });
|
24
|
+
* const closeMenu = () => {};
|
25
|
+
* }
|
26
|
+
* };
|
27
|
+
* </script>
|
28
|
+
* ```
|
29
|
+
*
|
30
|
+
* @prop {Function} closeContextMenu - Function to close the context menu. It should be a function that sets the visibility of the context menu to false.
|
31
|
+
* @prop {Array} itemSections - An array of sections, each containing an array of items to be rendered in the context menu. Each item can be a string or an object specifying the item's properties.
|
32
|
+
* @prop {Object} position - An object specifying the position of the context menu. It should contain `top` and `left` properties to position the menu on the screen.
|
33
|
+
*/
|
2
34
|
export declare const ContextMenu: import("vue").DefineComponent<{
|
3
35
|
closeContextMenu: PropType<() => void>;
|
4
36
|
itemSections: PropType<import("@sisense/sdk-ui-preact").MenuItemSection[] | undefined>;
|