@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.
@@ -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
- const pivotTableProps = ref<PivotTableProps>({
24
- dataSet: DM.DataSource,
25
- dataOptions: {
26
- rows: [dimProductName, dimColor],
27
- columns: [dimCategoryName],
28
- values: [measureTotalRevenue],
29
- },
30
- styleOptions: {
31
- width: 1200,
32
- height: 500,
33
- },
34
- filters: [filterFactory.topRanking(dimProductName, measureTotalRevenue, 1000)],
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 :props="pivotTableWidgetProps" />
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 { PivotTableWidget } from '@sisense/sdk-ui-vue';
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
- * // Configure your PivotTableWidget here
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
  /**