@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.
- package/dist/ai.cjs +23 -23
- package/dist/ai.js +118 -117
- package/dist/index.cjs +1 -1
- package/dist/index.js +251 -251
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +32 -32
- package/dist/{use-tracking-38c33085.js → use-tracking-f0a32d92.js} +47659 -44780
- package/dist/use-tracking-fd04e0bd.cjs +1083 -0
- package/package.json +2 -2
- package/dist/use-tracking-1ffcd697.cjs +0 -1079
@@ -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
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
};
|
35
|
-
</script>
|
36
|
-
|
37
|
-
<template>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|