@sisense/sdk-ui-vue 1.3.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 +81798 -64908
- package/dist/src/components/charts/area-chart.d.ts +20 -7
- package/dist/src/components/charts/areamap-chart.d.ts +19 -7
- package/dist/src/components/charts/bar-chart.d.ts +21 -8
- package/dist/src/components/charts/boxplot-chart.d.ts +23 -9
- package/dist/src/components/charts/chart-widget.d.ts +38 -7
- package/dist/src/components/charts/chart.d.ts +12 -23
- package/dist/src/components/charts/column-chart.d.ts +21 -8
- package/dist/src/components/charts/dashboard-widget.d.ts +9 -9
- package/dist/src/components/charts/funnel-chart.d.ts +19 -5
- package/dist/src/components/charts/index.d.ts +1 -0
- package/dist/src/components/charts/indicator-chart.d.ts +18 -7
- package/dist/src/components/charts/line-chart.d.ts +18 -6
- package/dist/src/components/charts/pie-chart.d.ts +20 -8
- package/dist/src/components/charts/pivot-table.d.ts +41 -0
- package/dist/src/components/charts/polar-chart.d.ts +20 -8
- package/dist/src/components/charts/scatter-chart.d.ts +26 -8
- package/dist/src/components/charts/scattermap-chart.d.ts +20 -5
- package/dist/src/components/charts/sunburst-chart.d.ts +14 -6
- package/dist/src/components/charts/table-widget.d.ts +4 -2
- package/dist/src/components/charts/table.d.ts +4 -3
- package/dist/src/components/charts/treemap-chart.d.ts +19 -7
- 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/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/lib.d.ts +2 -8
- package/dist/src/providers/index.d.ts +1 -1
- package/dist/src/providers/sisense-context-provider.d.ts +50 -5
- package/dist/src/providers/theme-provider.d.ts +61 -6
- package/dist/src/sdk-ui-core-exports.d.ts +5 -0
- package/dist/src/utils.d.ts +3 -0
- package/package.json +1 -1
- package/dist/src/hooks/index.d.ts +0 -6
- package/dist/src/hooks/use-execute-query-by-widget-id.d.ts +0 -7
- 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
- /package/dist/src/{hooks → composables}/use-custom-drilldown.d.ts +0 -0
@@ -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,24 +1,36 @@
|
|
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>;
|
@@ -1,24 +1,42 @@
|
|
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>;
|
@@ -7,18 +7,31 @@ 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>;
|
@@ -26,6 +39,7 @@ export declare const ScattermapChart: import("vue").DefineComponent<{
|
|
26
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<{
|
@@ -34,4 +48,5 @@ export declare const ScattermapChart: import("vue").DefineComponent<{
|
|
34
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,17 +7,25 @@ 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<{
|
@@ -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,6 +19,9 @@ 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>;
|
@@ -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,6 +18,9 @@ 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>;
|
@@ -1,24 +1,36 @@
|
|
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>;
|
@@ -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>;
|
@@ -1,4 +1,45 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
|
+
/**
|
3
|
+
* `DrilldownBreadcrumbs` component from the `@sisense/sdk-ui-vue` package.
|
4
|
+
* This component provides a way to display and interact with the drilldown path in data visualization components,
|
5
|
+
* allowing users to navigate through different levels of data drilldowns. It includes functionalities to clear selections
|
6
|
+
* or slice through the drilldown selections for a more intuitive data exploration experience.
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* Here's how to use the `DrilldownBreadcrumbs` component:
|
10
|
+
* ```vue
|
11
|
+
* <template>
|
12
|
+
* <DrilldownBreadcrumbs
|
13
|
+
* :clearDrilldownSelections="clearSelections"
|
14
|
+
* :currentDimension="currentDimension"
|
15
|
+
* :sliceDrilldownSelections="sliceSelections"
|
16
|
+
* :filtersDisplayValues="filtersDisplayValues"
|
17
|
+
* />
|
18
|
+
* </template>
|
19
|
+
*
|
20
|
+
* <script>
|
21
|
+
* import { ref } from 'vue';
|
22
|
+
* import DrilldownBreadcrumbs from './DrilldownBreadcrumbs.vue';
|
23
|
+
*
|
24
|
+
* export default {
|
25
|
+
* components: { DrilldownBreadcrumbs },
|
26
|
+
* setup() {
|
27
|
+
* const clearSelections = () => {};
|
28
|
+
* const currentDimension = ref({<current dimension object>});
|
29
|
+
* const sliceSelections = (index) => { <logic to slice selections up to index> };
|
30
|
+
* const filtersDisplayValues = ref({<object mapping filter values to display values>});
|
31
|
+
*
|
32
|
+
* return { clearSelections, currentDimension, sliceSelections, filtersDisplayValues };
|
33
|
+
* }
|
34
|
+
* };
|
35
|
+
* </script>
|
36
|
+
* ```
|
37
|
+
*
|
38
|
+
* @prop {Function} clearDrilldownSelections - Function to clear all drilldown selections made by the user.
|
39
|
+
* @prop {Object} currentDimension - Object representing the current dimension in the drilldown path.
|
40
|
+
* @prop {Function} sliceDrilldownSelections - Function to slice the drilldown selections up to a certain index, allowing the user to navigate back in the drilldown path.
|
41
|
+
* @prop {Object} filtersDisplayValues - Object mapping the internal filter values to human-readable display values, enhancing the usability of the breadcrumbs.
|
42
|
+
*/
|
2
43
|
export declare const DrilldownBreadcrumbs: import("vue").DefineComponent<{
|
3
44
|
clearDrilldownSelections: PropType<() => void>;
|
4
45
|
currentDimension: PropType<import("@sisense/sdk-data").Attribute>;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import type { Component, PropType } from 'vue';
|
2
|
+
import type { ContextMenuProps } from '@sisense/sdk-ui-preact';
|
3
|
+
export type DrilldownWidgetConfig = {
|
4
|
+
isBreadcrumbsDetached?: boolean;
|
5
|
+
breadcrumbsComponent?: Component;
|
6
|
+
contextMenuComponent?: (props: ContextMenuProps) => Component;
|
7
|
+
};
|
8
|
+
export declare const DrilldownWidgetTs: import("vue").DefineComponent<{
|
9
|
+
config: {
|
10
|
+
type: PropType<DrilldownWidgetConfig>;
|
11
|
+
required: false;
|
12
|
+
default: () => {};
|
13
|
+
};
|
14
|
+
drilldownDimensions: {
|
15
|
+
type: PropType<import("@sisense/sdk-data").Attribute[]>;
|
16
|
+
required: false;
|
17
|
+
default: () => never[];
|
18
|
+
};
|
19
|
+
initialDimension: {
|
20
|
+
type: PropType<import("@sisense/sdk-data").Attribute>;
|
21
|
+
required: false;
|
22
|
+
default: () => {};
|
23
|
+
};
|
24
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
config: {
|
26
|
+
type: PropType<DrilldownWidgetConfig>;
|
27
|
+
required: false;
|
28
|
+
default: () => {};
|
29
|
+
};
|
30
|
+
drilldownDimensions: {
|
31
|
+
type: PropType<import("@sisense/sdk-data").Attribute[]>;
|
32
|
+
required: false;
|
33
|
+
default: () => never[];
|
34
|
+
};
|
35
|
+
initialDimension: {
|
36
|
+
type: PropType<import("@sisense/sdk-data").Attribute>;
|
37
|
+
required: false;
|
38
|
+
default: () => {};
|
39
|
+
};
|
40
|
+
}>>, {
|
41
|
+
drilldownDimensions: import("@sisense/sdk-data").Attribute[];
|
42
|
+
initialDimension: import("@sisense/sdk-data").Attribute;
|
43
|
+
config: DrilldownWidgetConfig;
|
44
|
+
}, {}>;
|
@@ -1,46 +1,4 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import type { Attribute } from '@sisense/sdk-data';
|
4
|
-
type DrilldownWidgetConfig = {
|
5
|
-
isBreadcrumbsDetached?: boolean;
|
6
|
-
breadcrumbsComponent?: Component;
|
7
|
-
contextMenuComponent?: (props: ContextMenuProps) => Component;
|
8
|
-
};
|
9
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
10
|
-
config: {
|
11
|
-
type: PropType<DrilldownWidgetConfig>;
|
12
|
-
required: false;
|
13
|
-
default: () => {};
|
14
|
-
};
|
15
|
-
drilldownDimensions: {
|
16
|
-
type: PropType<Attribute[]>;
|
17
|
-
required: false;
|
18
|
-
default: () => never[];
|
19
|
-
};
|
20
|
-
initialDimension: {
|
21
|
-
type: PropType<Attribute>;
|
22
|
-
required: false;
|
23
|
-
default: () => {};
|
24
|
-
};
|
25
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
26
|
-
config: {
|
27
|
-
type: PropType<DrilldownWidgetConfig>;
|
28
|
-
required: false;
|
29
|
-
default: () => {};
|
30
|
-
};
|
31
|
-
drilldownDimensions: {
|
32
|
-
type: PropType<Attribute[]>;
|
33
|
-
required: false;
|
34
|
-
default: () => never[];
|
35
|
-
};
|
36
|
-
initialDimension: {
|
37
|
-
type: PropType<Attribute>;
|
38
|
-
required: false;
|
39
|
-
default: () => {};
|
40
|
-
};
|
41
|
-
}>>, {
|
42
|
-
drilldownDimensions: Attribute[];
|
43
|
-
initialDimension: Attribute;
|
44
|
-
config: DrilldownWidgetConfig;
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
|
2
|
+
[x: string]: any;
|
45
3
|
}, {}>;
|
46
4
|
export default _sfc_main;
|
@@ -1,24 +1,39 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* UI component that allows the user to filter numeric or text attributes according to
|
4
|
+
* a number of built-in operations defined in the {@link NumericFilter}, {@link TextFilter}, or {@link RankingFilter}.
|
5
|
+
*
|
6
|
+
* The arrangement prop determines whether the filter is rendered vertically or horizontally, with the latter intended for toolbar use and omitting title, enable/disable, and collapse/expand functionality.
|
5
7
|
*
|
6
8
|
* @example
|
7
9
|
* Here's how you can use the CriteriaFilterTile component in a Vue application:
|
8
10
|
* ```vue
|
9
11
|
* <template>
|
10
|
-
* <CriteriaFilterTile
|
12
|
+
* <CriteriaFilterTile
|
13
|
+
* :title="criteriaFilterTileProps.title"
|
14
|
+
* :filter="criteriaFilterTileProps.filter"
|
15
|
+
* :onUpdate="onUpdate"
|
16
|
+
* />
|
11
17
|
* </template>
|
12
18
|
*
|
13
19
|
* <script setup lang="ts">
|
14
20
|
* import { ref } from 'vue';
|
15
21
|
* import {CriteriaFilterTile} from '@sisense/sdk-ui-vue';
|
22
|
+
* import { filterFactory } from '@sisense/sdk-data';
|
16
23
|
*
|
17
24
|
* const criteriaFilterTileProps = ref({
|
18
|
-
*
|
25
|
+
* title: 'Revenue',
|
26
|
+
* filter: filterFactory.greaterThanOrEqual(DM.Commerce.Revenue, 10000)
|
19
27
|
* });
|
28
|
+
*
|
29
|
+
* const onUpdate = (filter: Filter | null) => {
|
30
|
+
* ...
|
31
|
+
* }
|
20
32
|
* </script>
|
21
33
|
* ```
|
34
|
+
* <img src="media://criteria-filter-tile-example-1.png" width="300px" />
|
35
|
+
* @param props - Criteria filter tile props
|
36
|
+
* @returns Criteria filter tile component
|
22
37
|
*/
|
23
38
|
export declare const CriteriaFilterTile: import("vue").DefineComponent<{
|
24
39
|
arrangement: PropType<import("@sisense/sdk-ui-preact").FilterVariant | undefined>;
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* It maintains compatibility with Vue's reactivity system while preserving the functionality of the DateRangeFilterTile.
|
3
|
+
* Date Range Filter Tile component for filtering data by date range.
|
5
4
|
*
|
6
5
|
* @example
|
7
|
-
*
|
6
|
+
* Vue example of configuring the date min max values and handling onChange event.
|
8
7
|
* ```vue
|
9
8
|
* <template>
|
10
|
-
* <DateRangeFilterTile
|
9
|
+
* <DateRangeFilterTile
|
10
|
+
* :title="dateRangeFilterTileProps.title"
|
11
|
+
* :attribute="dateRangeFilterTileProps.attribute"
|
12
|
+
* :filter="dateRangeFilterTileProps.filter"
|
13
|
+
* :onChange="onChange" />
|
11
14
|
* </template>
|
12
15
|
*
|
13
16
|
* <script setup lang="ts">
|
@@ -15,8 +18,14 @@ import type { PropType } from 'vue';
|
|
15
18
|
* import {CriteriaFilterTile} from '@sisense/sdk-ui-vue';
|
16
19
|
*
|
17
20
|
* const dateRangeFilterTileProps = ref({
|
18
|
-
*
|
21
|
+
* title: 'Date Range',
|
22
|
+
* attribute: DM.Commerce.Date.Years,
|
23
|
+
* filter: filterFactory.dateRange(DM.Commerce.Date.Years),
|
19
24
|
* });
|
25
|
+
*
|
26
|
+
* const onChange = (filter: Filter) => {
|
27
|
+
* ...
|
28
|
+
* }
|
20
29
|
* </script>
|
21
30
|
* ```
|
22
31
|
*/
|
@@ -1,13 +1,19 @@
|
|
1
1
|
import type { PropType } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* UI component that allows the user to select members to include/exclude in a
|
4
|
+
* filter. A query is executed against the provided data source to fetch
|
5
|
+
* all members that are selectable.
|
5
6
|
*
|
6
7
|
* @example
|
7
|
-
*
|
8
|
+
* Below is an example for filtering countries in the `Country` dimension of the `Sample ECommerce` data model.
|
8
9
|
* ```vue
|
9
10
|
* <template>
|
10
|
-
*
|
11
|
+
* <MemberFilterTile
|
12
|
+
* :title="memberFilterTileProps.title"
|
13
|
+
* :attribute="memberFilterTileProps.attribute"
|
14
|
+
* :filter="memberFilterTileProps.filter"
|
15
|
+
* :onChange={setCountryFilter}
|
16
|
+
* />
|
11
17
|
* </template>
|
12
18
|
*
|
13
19
|
* <script setup lang="ts">
|
@@ -15,8 +21,13 @@ import type { PropType } from 'vue';
|
|
15
21
|
* import MemberFilterTile from '@sisense/sdk-ui-vue/MemberFilterTile';
|
16
22
|
*
|
17
23
|
* const memberFilterTileProps = ref({
|
18
|
-
*
|
24
|
+
* title: 'Country',
|
25
|
+
* attribute: DM.Country.Country,
|
26
|
+
* filter: countryFilter,
|
19
27
|
* });
|
28
|
+
*
|
29
|
+
* const setCountryFilter = (filter: Filter | null) => {...}
|
30
|
+
*
|
20
31
|
* </script>
|
21
32
|
* ```
|
22
33
|
*/
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { useExecuteQuery } from './use-execute-query.js';
|
2
|
+
export { useExecuteQueryByWidgetId } from './use-execute-query-by-widget-id.js';
|
3
|
+
export { useGetDashboardModel } from './use-get-dashboard-model.js';
|
4
|
+
export { useGetDashboardModels } from './use-get-dashboard-models.js';
|
5
|
+
export { useGetSharedFormula } from './use-get-shared-formula.js';
|
6
|
+
export { useGetWidgetModel } from './use-get-widget-model.js';
|