@sisense/sdk-ui-vue 1.19.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/dist/index.cjs +858 -749
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +72280 -72506
  4. package/dist/{src → packages/sdk-ui-vue/src}/components/dashboard/dashboard-by-id.d.ts +4 -1
  5. package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +114 -0
  6. package/dist/{src → packages/sdk-ui-vue/src}/components/filters/basic-member-filter-tile.d.ts +2 -2
  7. package/dist/{src → packages/sdk-ui-vue/src}/components/filters/criteria-filter-tile.d.ts +1 -1
  8. package/dist/{src → packages/sdk-ui-vue/src}/components/filters/date-range-filter-tile.d.ts +1 -1
  9. package/dist/{src → packages/sdk-ui-vue/src}/components/filters/index.d.ts +1 -0
  10. package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +100 -0
  11. package/dist/{src → packages/sdk-ui-vue/src}/components/widgets/chart-widget.d.ts +1 -1
  12. package/dist/{src → packages/sdk-ui-vue/src}/composables/use-custom-drilldown.d.ts +717 -327
  13. package/dist/{src → packages/sdk-ui-vue/src}/composables/use-get-dashboard-model.d.ts +13 -9
  14. package/dist/{src → packages/sdk-ui-vue/src}/composables/use-get-dashboard-models.d.ts +1 -1
  15. package/dist/{src → packages/sdk-ui-vue/src}/composables/use-get-widget-model.d.ts +2 -2
  16. package/dist/packages/sdk-ui-vue/src/composables/use-plugins.d.ts +8 -0
  17. package/dist/{src → packages/sdk-ui-vue/src}/providers/plugins-provider.d.ts +3 -7
  18. package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +5 -0
  19. package/dist/{src → packages/sdk-ui-vue/src}/setup-helper.d.ts +4 -2
  20. package/package.json +2 -2
  21. package/dist/src/components/dashboard/dashboard.d.ts +0 -95
  22. package/dist/src/composables/use-plugins.d.ts +0 -12
  23. package/dist/src/sdk-ui-core-exports.d.ts +0 -5
  24. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/area-chart.d.ts +0 -0
  25. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/area-range-chart.d.ts +0 -0
  26. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/areamap-chart.d.ts +0 -0
  27. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/bar-chart.d.ts +0 -0
  28. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/boxplot-chart.d.ts +0 -0
  29. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/chart.d.ts +0 -0
  30. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/column-chart.d.ts +0 -0
  31. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/funnel-chart.d.ts +0 -0
  32. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/index.d.ts +0 -0
  33. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/indicator-chart.d.ts +0 -0
  34. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/line-chart.d.ts +0 -0
  35. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/pie-chart.d.ts +0 -0
  36. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/pivot-table.d.ts +0 -0
  37. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/polar-chart.d.ts +0 -0
  38. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/scatter-chart.d.ts +0 -0
  39. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/scattermap-chart.d.ts +0 -0
  40. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/sunburst-chart.d.ts +0 -0
  41. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/table.d.ts +0 -0
  42. /package/dist/{src → packages/sdk-ui-vue/src}/components/charts/treemap-chart.d.ts +0 -0
  43. /package/dist/{src → packages/sdk-ui-vue/src}/components/context-menu.d.ts +0 -0
  44. /package/dist/{src → packages/sdk-ui-vue/src}/components/dashboard/index.d.ts +0 -0
  45. /package/dist/{src → packages/sdk-ui-vue/src}/components/drilldown-breadcrumbs.d.ts +0 -0
  46. /package/dist/{src → packages/sdk-ui-vue/src}/components/drilldown-widget.d.ts +0 -0
  47. /package/dist/{src → packages/sdk-ui-vue/src}/components/drilldown-widget.vue.d.ts +0 -0
  48. /package/dist/{src → packages/sdk-ui-vue/src}/components/filters/member-filter-tile.d.ts +0 -0
  49. /package/dist/{src → packages/sdk-ui-vue/src}/components/widgets/dashboard-widget.d.ts +0 -0
  50. /package/dist/{src → packages/sdk-ui-vue/src}/components/widgets/index.d.ts +0 -0
  51. /package/dist/{src → packages/sdk-ui-vue/src}/components/widgets/table-widget.d.ts +0 -0
  52. /package/dist/{src → packages/sdk-ui-vue/src}/composables/index.d.ts +0 -0
  53. /package/dist/{src → packages/sdk-ui-vue/src}/composables/use-execute-query-by-widget-id.d.ts +0 -0
  54. /package/dist/{src → packages/sdk-ui-vue/src}/composables/use-execute-query.d.ts +0 -0
  55. /package/dist/{src → packages/sdk-ui-vue/src}/composables/use-fetch.d.ts +0 -0
  56. /package/dist/{src → packages/sdk-ui-vue/src}/composables/use-get-shared-formula.d.ts +0 -0
  57. /package/dist/{src → packages/sdk-ui-vue/src}/composables/use-tracking.d.ts +0 -0
  58. /package/dist/{src → packages/sdk-ui-vue/src}/helpers/use-reducer.d.ts +0 -0
  59. /package/dist/{src → packages/sdk-ui-vue/src}/lib.d.ts +0 -0
  60. /package/dist/{src → packages/sdk-ui-vue/src}/providers/index.d.ts +0 -0
  61. /package/dist/{src → packages/sdk-ui-vue/src}/providers/sisense-context-provider.d.ts +0 -0
  62. /package/dist/{src → packages/sdk-ui-vue/src}/providers/theme-provider.d.ts +0 -0
  63. /package/dist/{src → packages/sdk-ui-vue/src}/types.d.ts +0 -0
  64. /package/dist/{src → packages/sdk-ui-vue/src}/utils.d.ts +0 -0
@@ -19,9 +19,12 @@ import type { PropType } from 'vue';
19
19
  * const dashboardOid = '6441e728dac1920034bce737';
20
20
  * </script>
21
21
  * ```
22
+ *
23
+ * To learn more about this and related dashboard components,
24
+ * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
22
25
  * @group Fusion Embed
23
26
  * @fusionEmbed
24
- * @alpha
27
+ * @beta
25
28
  */
26
29
  export declare const DashboardById: import("vue").DefineComponent<{
27
30
  /**
@@ -0,0 +1,114 @@
1
+ import type { PropType } from 'vue';
2
+ /**
3
+ * A component used for easily rendering a dashboard.
4
+ *
5
+ * @example
6
+ * Here's how you can use the Dashboard component in a Vue application:
7
+ * ```vue
8
+ * <template>
9
+ * <Dashboard
10
+ * v-if="dashboardProps"
11
+ * :title="dashboardProps.title"
12
+ * :layoutOptions="dashboardProps.layoutOptions"
13
+ * :widgets="dashboardProps.widgets"
14
+ * :filters="dashboardProps.filters"
15
+ * :defaultDataSource="dashboardProps.defaultDataSource"
16
+ * :widgetsOptions="dashboardProps.widgetsOptions"
17
+ * :styleOptions="dashboardProps.styleOptions"
18
+ * />
19
+ * </template>
20
+ *
21
+ * <script setup lang="ts">
22
+ * import { dashboardModelTranslator, useGetDashboardModel, Dashboard } from '@sisense/sdk-ui-vue';
23
+ * import { computed } from 'vue';
24
+ *
25
+ * const { dashboard } = useGetDashboardModel({
26
+ * dashboardOid: '6441e728dac1920034bce737',
27
+ * includeWidgets: true,
28
+ * includeFilters: true,
29
+ * });
30
+ *
31
+ * const dashboardProps = computed(() =>
32
+ * dashboard.value ? dashboardModelTranslator.toDashboardProps(dashboard.value) : null,
33
+ * );
34
+ * </script>
35
+ * ```
36
+ *
37
+ * To learn more about this and related dashboard components,
38
+ * see [Embedded Dashboards](/guides/sdk/guides/dashboards/index.html).
39
+ * @group Dashboards
40
+ * @beta
41
+ */
42
+ export declare const Dashboard: import("vue").DefineComponent<{
43
+ /**
44
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
45
+ */
46
+ title: PropType<string | undefined>;
47
+ /**
48
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.layoutOptions}
49
+ */
50
+ layoutOptions: PropType<import("@sisense/sdk-ui-preact").DashboardLayoutOptions | undefined>;
51
+ /**
52
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.config}
53
+ *
54
+ * @internal
55
+ */
56
+ config: PropType<import("@sisense/sdk-ui-preact").DashboardConfig | undefined>;
57
+ /**
58
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.widgets}
59
+ */
60
+ widgets: PropType<import("@sisense/sdk-ui-preact").WidgetProps[]>;
61
+ /**
62
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.filters}
63
+ */
64
+ filters: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
65
+ /**
66
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.defaultDataSource}
67
+ */
68
+ defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
69
+ /**
70
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.widgetsOptions}
71
+ */
72
+ widgetsOptions: PropType<import("@sisense/sdk-ui-preact").WidgetsOptions | undefined>;
73
+ /**
74
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.styleOptions}
75
+ */
76
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").DashboardStyleOptions | undefined>;
77
+ }, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
78
+ [key: string]: any;
79
+ }>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
+ /**
81
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
82
+ */
83
+ title: PropType<string | undefined>;
84
+ /**
85
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.layoutOptions}
86
+ */
87
+ layoutOptions: PropType<import("@sisense/sdk-ui-preact").DashboardLayoutOptions | undefined>;
88
+ /**
89
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.config}
90
+ *
91
+ * @internal
92
+ */
93
+ config: PropType<import("@sisense/sdk-ui-preact").DashboardConfig | undefined>;
94
+ /**
95
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.widgets}
96
+ */
97
+ widgets: PropType<import("@sisense/sdk-ui-preact").WidgetProps[]>;
98
+ /**
99
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.filters}
100
+ */
101
+ filters: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
102
+ /**
103
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.defaultDataSource}
104
+ */
105
+ defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
106
+ /**
107
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.widgetsOptions}
108
+ */
109
+ widgetsOptions: PropType<import("@sisense/sdk-ui-preact").WidgetsOptions | undefined>;
110
+ /**
111
+ * {@inheritDoc @sisense/sdk-ui!DashboardProps.styleOptions}
112
+ */
113
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").DashboardStyleOptions | undefined>;
114
+ }>>, {}, {}>;
@@ -23,7 +23,7 @@ import type { PropType } from 'vue';
23
23
  */
24
24
  export declare const BasicMemberFilterTile: import("vue").DefineComponent<{
25
25
  allMembers: PropType<import("@sisense/sdk-ui-preact").Member[]>;
26
- initialSelectedMembers: PropType<import("@sisense/sdk-ui/dist/filters/components/member-filter-tile/members-reducer").SelectedMember[] | undefined>;
26
+ initialSelectedMembers: PropType<import("@sisense/sdk-ui/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer").SelectedMember[] | undefined>;
27
27
  isDependent: PropType<boolean | undefined>;
28
28
  maxAllowedMembers: PropType<number | undefined>;
29
29
  onUpdateSelectedMembers: PropType<((members: string[], disabled?: boolean | undefined) => void) | undefined>;
@@ -33,7 +33,7 @@ export declare const BasicMemberFilterTile: import("vue").DefineComponent<{
33
33
  [key: string]: any;
34
34
  }>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
35
  allMembers: PropType<import("@sisense/sdk-ui-preact").Member[]>;
36
- initialSelectedMembers: PropType<import("@sisense/sdk-ui/dist/filters/components/member-filter-tile/members-reducer").SelectedMember[] | undefined>;
36
+ initialSelectedMembers: PropType<import("@sisense/sdk-ui/dist/packages/sdk-ui/src/filters/components/member-filter-tile/members-reducer").SelectedMember[] | undefined>;
37
37
  isDependent: PropType<boolean | undefined>;
38
38
  maxAllowedMembers: PropType<number | undefined>;
39
39
  onUpdateSelectedMembers: PropType<((members: string[], disabled?: boolean | undefined) => void) | undefined>;
@@ -1,7 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
2
  /**
3
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}.
4
+ * a number of built-in operations defined in the numeric filter, text filter, or ranking filter.
5
5
  *
6
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.
7
7
  *
@@ -17,7 +17,7 @@ import type { PropType } from 'vue';
17
17
  *
18
18
  * <script setup lang="ts">
19
19
  * import { ref } from 'vue';
20
- * import { CriteriaFilterTile, type DateRangeFilterTileProps } from '@sisense/sdk-ui-vue';
20
+ * import { DateRangeFilterTile, type DateRangeFilterTileProps } from '@sisense/sdk-ui-vue';
21
21
  * import { filterFactory } from '@sisense/sdk-data';
22
22
  * import * as DM from '../assets/sample-retail-model';
23
23
  *
@@ -2,3 +2,4 @@ export { BasicMemberFilterTile } from './basic-member-filter-tile';
2
2
  export { DateRangeFilterTile } from './date-range-filter-tile';
3
3
  export { MemberFilterTile } from './member-filter-tile';
4
4
  export { CriteriaFilterTile } from './criteria-filter-tile';
5
+ export { RelativeDateFilterTile } from './relative-date-filter-tile';
@@ -0,0 +1,100 @@
1
+ import type { PropType } from 'vue';
2
+ /**
3
+ * Relative Date Filter Tile component for filtering data by relative date.
4
+ *
5
+ * @example
6
+ * Vue example of configuring the date min max values and handling onUpdate event.
7
+ * ```vue
8
+ * <template>
9
+ * <RelativeDateFilterTile
10
+ * :title="relativeDateFilter.title"
11
+ * :filter="relativeDateFilter.filter"
12
+ * :arrangement="relativeDateFilter.arrangement"
13
+ * :onUpdate="relativeDateFilter.onUpdate"
14
+ * />
15
+ * </template>
16
+ *
17
+ * <script setup lang="ts">
18
+ * import { ref } from 'vue';
19
+ * import { RelativeDateFilterTile, type RelativeDateFilterTileProps } from '@sisense/sdk-ui-vue';
20
+ * import { filterFactory } from '@sisense/sdk-data';
21
+ * import * as DM from '../assets/sample-retail-model';
22
+ *
23
+ * const relativeDateFilterValue = ref<Filter | null>(filterFactory.dateRelativeTo(DM.DimDate.Date.Months, 0, 18);
24
+ *
25
+ * const relativeDateFilter = ref<RelativeDateFilterTileProps>({
26
+ * title: 'Relative Date Filter Tile',
27
+ * filter: relativeDateFilterValue.value!,
28
+ * arrangement: 'vertical',
29
+ * onUpdate(filter) {
30
+ * relativeDateFilterValue.value = filter;
31
+ * },
32
+ * });
33
+ * </script>
34
+ * ```
35
+ * <img src="media://vue-relative-date-filter-tile-example.png" width="800px" />
36
+ * @param props - RelativeDateFilterTile props
37
+ * @returns RelativeDateFilterTile component
38
+ * @group Filter Tiles
39
+ */
40
+ export declare const RelativeDateFilterTile: import("vue").DefineComponent<{
41
+ /**
42
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
43
+ */
44
+ title: PropType<string>;
45
+ /**
46
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.filter}
47
+ */
48
+ filter: PropType<import("@sisense/sdk-data").Filter>;
49
+ /**
50
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.arrangement}
51
+ */
52
+ arrangement: PropType<import("@sisense/sdk-ui-preact").FilterVariant | undefined>;
53
+ /**
54
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.onUpdate}
55
+ */
56
+ onUpdate: PropType<(filter: import("@sisense/sdk-data").Filter) => void>;
57
+ /**
58
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.limit}
59
+ */
60
+ limit: PropType<{
61
+ maxDate: string;
62
+ minDate: string;
63
+ } | undefined>;
64
+ /**
65
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.tileDesignOptions}
66
+ * @internal
67
+ */
68
+ tileDesignOptions: PropType<import("@sisense/sdk-ui/dist/packages/sdk-ui/src/filters/components/filter-tile.js").FilterTileDesignOptions | undefined>;
69
+ }, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
70
+ [key: string]: any;
71
+ }>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
+ /**
73
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
74
+ */
75
+ title: PropType<string>;
76
+ /**
77
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.filter}
78
+ */
79
+ filter: PropType<import("@sisense/sdk-data").Filter>;
80
+ /**
81
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.arrangement}
82
+ */
83
+ arrangement: PropType<import("@sisense/sdk-ui-preact").FilterVariant | undefined>;
84
+ /**
85
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.onUpdate}
86
+ */
87
+ onUpdate: PropType<(filter: import("@sisense/sdk-data").Filter) => void>;
88
+ /**
89
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.limit}
90
+ */
91
+ limit: PropType<{
92
+ maxDate: string;
93
+ minDate: string;
94
+ } | undefined>;
95
+ /**
96
+ * {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.tileDesignOptions}
97
+ * @internal
98
+ */
99
+ tileDesignOptions: PropType<import("@sisense/sdk-ui/dist/packages/sdk-ui/src/filters/components/filter-tile.js").FilterTileDesignOptions | undefined>;
100
+ }>>, {}, {}>;
@@ -54,7 +54,7 @@ import type { PropType } from 'vue';
54
54
  * <img src="media://chart-widget-with-drilldown-example-1.png" width="800px" />
55
55
  * @param props - ChartWidget properties
56
56
  * @returns ChartWidget component representing a chart type as specified in `ChartWidgetProps.`{@link ChartWidgetProps.chartType | chartType}
57
- * @group Chart Utilities
57
+ * @group Dashboards
58
58
  */
59
59
  export declare const ChartWidget: import("vue").DefineComponent<{
60
60
  /**