@sisense/sdk-ui-vue 2.0.0 → 2.1.1

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.
@@ -11,38 +11,38 @@ export type WidgetProps = SoftUnion<WithCommonWidgetProps<ChartWidgetProps, 'cha
11
11
  * Facade component that renders a widget within a dashboard based on the widget type.
12
12
  *
13
13
  * @example
14
- * ```vue
15
- <script setup lang="ts">
16
- import { Widget, type WidgetProps } from '@sisense/sdk-ui-vue';
17
- import { measureFactory } from '@sisense/sdk-data';
18
-
19
- const widgetProps: WidgetProps = {
20
- id: 'widget-id',
21
- widgetType: 'chart',
22
- dataSource: DM.DataSource,
23
- chartType: 'column',
24
- dataOptions: {
25
- category: [dimProductName],
26
- value: [
27
- {
28
- column: measureFactory.sum(DM.Fact_Sale_orders.OrderRevenue, 'Total Revenue'),
29
- sortType: 'sortDesc',
30
- },
31
- ],
32
- breakBy: [],
33
- },
34
- };
35
- </script>
36
-
37
- <template>
38
- <Widget
39
- :id="widgetProps.id"
40
- :widgetType="widgetProps.widgetType"
41
- :dataSource="widgetProps.dataSource"
42
- :chartType="widgetProps.chartType"
43
- :dataOptions="widgetProps.dataOptions"
44
- />
45
- </template>
14
+ * ```vue
15
+ * <script setup lang="ts">
16
+ * import { Widget, type WidgetProps } from '@sisense/sdk-ui-vue';
17
+ * import { measureFactory } from '@sisense/sdk-data';
18
+ *
19
+ * const widgetProps: WidgetProps = {
20
+ * id: 'widget-id',
21
+ * widgetType: 'chart',
22
+ * dataSource: DM.DataSource,
23
+ * chartType: 'column',
24
+ * dataOptions: {
25
+ * category: [dimProductName],
26
+ * value: [
27
+ * {
28
+ * column: measureFactory.sum(DM.Fact_Sale_orders.OrderRevenue, 'Total Revenue'),
29
+ * sortType: 'sortDesc',
30
+ * },
31
+ * ],
32
+ * breakBy: [],
33
+ * },
34
+ * };
35
+ * </script>
36
+ *
37
+ * <template>
38
+ * <Widget
39
+ * :id="widgetProps.id"
40
+ * :widgetType="widgetProps.widgetType"
41
+ * :dataSource="widgetProps.dataSource"
42
+ * :chartType="widgetProps.chartType"
43
+ * :dataOptions="widgetProps.dataOptions"
44
+ * />
45
+ * </template>
46
46
  * ```
47
47
  * <img src="media://vue-widget-example.png" width="800px" />
48
48
  * @group Dashboards