@sisense/sdk-ui-vue 2.16.1 → 2.17.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 +79 -79
- package/dist/ai.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +198 -198
- package/dist/packages/sdk-ui-vue/src/components/charts/pivot-table.d.ts +24 -15
- package/dist/packages/sdk-ui-vue/src/components/widgets/pivot-table-widget.d.ts +34 -5
- package/dist/{use-tracking-13883d10.js → use-tracking-1ceaa73f.js} +94452 -89444
- package/dist/use-tracking-77434b32.cjs +3092 -0
- package/package.json +2 -2
- package/dist/use-tracking-9d38eeb8.cjs +0 -3089
|
@@ -15,29 +15,38 @@ export { PivotTableProps };
|
|
|
15
15
|
* <script setup lang="ts">
|
|
16
16
|
* import { ref } from 'vue';
|
|
17
17
|
* import { measureFactory, filterFactory } from '@sisense/sdk-data';
|
|
18
|
-
* import * as DM from '../assets/sample-retail-model';
|
|
19
18
|
* import { PivotTable, type PivotTableProps } from '@sisense/sdk-ui-vue';
|
|
19
|
+
* import * as DM from '../assets/sample-retail-model';
|
|
20
20
|
*
|
|
21
|
+
* const dimCategoryName = DM.DimProducts.CategoryName;
|
|
22
|
+
* const dimColor = DM.DimProducts.Color;
|
|
21
23
|
* const dimProductName = DM.DimProducts.ProductName;
|
|
22
24
|
* const measureTotalRevenue = measureFactory.sum(DM.Fact_Sale_orders.OrderRevenue, 'Total Revenue');
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
*
|
|
26
|
+
* const pivotTableProps = ref<PivotTableProps>({
|
|
27
|
+
* dataSet: DM.DataSource,
|
|
28
|
+
* dataOptions: {
|
|
29
|
+
* rows: [dimProductName, dimColor],
|
|
30
|
+
* columns: [dimCategoryName],
|
|
31
|
+
* values: [measureTotalRevenue],
|
|
32
|
+
* },
|
|
33
|
+
* styleOptions: {
|
|
34
|
+
* width: 1200,
|
|
35
|
+
* height: 500,
|
|
36
|
+
* },
|
|
37
|
+
* filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 1000)],
|
|
38
|
+
* });
|
|
39
|
+
*
|
|
36
40
|
* </script>
|
|
37
41
|
* ```
|
|
38
42
|
* <img src="media://vue-pivot-table-example.png" width="800px" />
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Configuration options can also be applied within the scope of a `<SisenseContextProvider>` to control the default behavior of PivotTable, by changing available settings within `appConfig.chartConfig.tabular.*`
|
|
46
|
+
*
|
|
47
|
+
* Follow the link to {@link AppConfig} for more details on the available settings.
|
|
48
|
+
*
|
|
39
49
|
* @group Data Grids
|
|
40
|
-
* @beta
|
|
41
50
|
*/
|
|
42
51
|
export declare const PivotTable: import("vue").DefineComponent<{
|
|
43
52
|
/**
|
|
@@ -9,15 +9,45 @@ export { PivotTableWidgetProps };
|
|
|
9
9
|
* Here's how you can use the PivotTableWidget component in a Vue application:
|
|
10
10
|
* ```vue
|
|
11
11
|
* <template>
|
|
12
|
-
* <PivotTableWidget
|
|
12
|
+
* <PivotTableWidget
|
|
13
|
+
* :dataSource="pivotTableWidgetProps.dataSource"
|
|
14
|
+
* :filters="pivotTableWidgetProps.filters"
|
|
15
|
+
* :dataOptions="pivotTableWidgetProps.dataOptions"
|
|
16
|
+
* :styleOptions="pivotTableWidgetProps.styleOptions"
|
|
17
|
+
* :title="pivotTableWidgetProps.title"
|
|
18
|
+
* />
|
|
13
19
|
* </template>
|
|
14
20
|
*
|
|
15
21
|
* <script setup lang="ts">
|
|
16
22
|
* import { ref } from 'vue';
|
|
17
|
-
* import {
|
|
23
|
+
* import { measureFactory } from '@sisense/sdk-data';
|
|
24
|
+
* import { PivotTableWidget, type PivotTableWidgetProps } from '@sisense/sdk-ui-vue';
|
|
25
|
+
* import * as DM from '../assets/sample-ecommerce-model';
|
|
18
26
|
*
|
|
19
|
-
* const pivotTableWidgetProps = ref({
|
|
20
|
-
*
|
|
27
|
+
* const pivotTableWidgetProps = ref<PivotTableWidgetProps>({
|
|
28
|
+
* dataSource: DM.DataSource,
|
|
29
|
+
* dataOptions: {
|
|
30
|
+
* rows: [DM.Category.Category],
|
|
31
|
+
* values: [measureFactory.sum(DM.Commerce.Cost, 'Total Cost')],
|
|
32
|
+
* },
|
|
33
|
+
* filters: [],
|
|
34
|
+
* title: 'Pivot Table Widget Example',
|
|
35
|
+
* styleOptions: {
|
|
36
|
+
* spaceAround: 'Medium',
|
|
37
|
+
* cornerRadius: 'Large',
|
|
38
|
+
* shadow: 'Light',
|
|
39
|
+
* border: true,
|
|
40
|
+
* borderColor: '#e0e0e0',
|
|
41
|
+
* backgroundColor: '#ffffff',
|
|
42
|
+
* header: {
|
|
43
|
+
* hidden: false,
|
|
44
|
+
* titleTextColor: '#333333',
|
|
45
|
+
* titleAlignment: 'Center',
|
|
46
|
+
* dividerLine: true,
|
|
47
|
+
* dividerLineColor: '#e0e0e0',
|
|
48
|
+
* backgroundColor: '#f5f5f5',
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
21
51
|
* });
|
|
22
52
|
* </script>
|
|
23
53
|
* ```
|
|
@@ -25,7 +55,6 @@ export { PivotTableWidgetProps };
|
|
|
25
55
|
* @param props - Pivot Table Widget properties
|
|
26
56
|
* @returns Widget component representing a pivot table
|
|
27
57
|
* @group Dashboards
|
|
28
|
-
* @beta
|
|
29
58
|
*/
|
|
30
59
|
export declare const PivotTableWidget: import("vue").DefineComponent<{
|
|
31
60
|
/**
|