@sisense/sdk-ui-vue 1.13.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +491 -343
- package/dist/index.js +48276 -47190
- package/dist/src/components/dashboard/dashboard-by-id.d.ts +30 -0
- package/dist/src/components/dashboard/dashboard.d.ts +50 -0
- package/dist/src/components/dashboard/index.d.ts +2 -0
- package/dist/src/composables/use-custom-drilldown.d.ts +33 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/providers/theme-provider.d.ts +2 -0
- package/dist/src/sdk-ui-core-exports.d.ts +1 -1
- package/package.json +2 -2
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
/**
|
3
|
+
* A DashboardById component used for easily rendering a dashboard by its ID in a Sisense Fusion instance.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* Here's how you can use the DashboardById component in a Vue application:
|
7
|
+
* ```vue
|
8
|
+
* <template>
|
9
|
+
* <DashboardById
|
10
|
+
* :dashboardOid="dashboardOid"
|
11
|
+
* />
|
12
|
+
* </template>
|
13
|
+
*
|
14
|
+
* <script setup lang="ts">
|
15
|
+
* import { DashboardById } from '@sisense/sdk-ui-vue';
|
16
|
+
*
|
17
|
+
* const dashboardOid = '6441e728dac1920034bce737';
|
18
|
+
* </script>
|
19
|
+
* ```
|
20
|
+
* @group Fusion Embed
|
21
|
+
* @fusionEmbed
|
22
|
+
* @internal
|
23
|
+
*/
|
24
|
+
export declare const DashboardById: import("vue").DefineComponent<{
|
25
|
+
dashboardOid: PropType<string>;
|
26
|
+
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
27
|
+
[key: string]: any;
|
28
|
+
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
29
|
+
dashboardOid: PropType<string>;
|
30
|
+
}>>, {}, {}>;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
/**
|
3
|
+
* A Dashboard 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="dashboard"
|
11
|
+
* :title="dashboard.title"
|
12
|
+
* :layout="dashboard.layout"
|
13
|
+
* :widgets="dashboard.widgets"
|
14
|
+
* :filters="dashboard.filters"
|
15
|
+
* :defaultDataSource="dashboard.dataSource"
|
16
|
+
* :widgetFilterOptions="dashboard.widgetFilterOptions"
|
17
|
+
* />
|
18
|
+
* </template>
|
19
|
+
*
|
20
|
+
* <script setup lang="ts">
|
21
|
+
* import { DashboardById, useGetDashboardModel } from '@sisense/sdk-ui-vue';
|
22
|
+
*
|
23
|
+
* const { dashboard } = useGetDashboardModel({
|
24
|
+
* dashboardOid: '6441e728dac1920034bce737',
|
25
|
+
* includeWidgets: true,
|
26
|
+
* includeFilters: true,
|
27
|
+
* });
|
28
|
+
* </script>
|
29
|
+
* ```
|
30
|
+
* @group Fusion Embed
|
31
|
+
* @fusionEmbed
|
32
|
+
* @internal
|
33
|
+
*/
|
34
|
+
export declare const Dashboard: import("vue").DefineComponent<{
|
35
|
+
title: PropType<string>;
|
36
|
+
layout: PropType<import("@sisense/sdk-ui-preact").Layout>;
|
37
|
+
widgets: PropType<import("@sisense/sdk-ui-preact").WidgetModel[]>;
|
38
|
+
filters: PropType<import("@sisense/sdk-data").Filter[]>;
|
39
|
+
defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
|
40
|
+
widgetFilterOptions: PropType<import("@sisense/sdk-ui-preact").WidgetFilterOptions | undefined>;
|
41
|
+
}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
42
|
+
[key: string]: any;
|
43
|
+
}>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
44
|
+
title: PropType<string>;
|
45
|
+
layout: PropType<import("@sisense/sdk-ui-preact").Layout>;
|
46
|
+
widgets: PropType<import("@sisense/sdk-ui-preact").WidgetModel[]>;
|
47
|
+
filters: PropType<import("@sisense/sdk-data").Filter[]>;
|
48
|
+
defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
|
49
|
+
widgetFilterOptions: PropType<import("@sisense/sdk-ui-preact").WidgetFilterOptions | undefined>;
|
50
|
+
}>>, {}, {}>;
|
@@ -56,7 +56,38 @@ export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimensio
|
|
56
56
|
drilldownDimension: Ref<Attribute | undefined>;
|
57
57
|
drilldownFilters: Ref<{
|
58
58
|
readonly members: any[];
|
59
|
-
|
59
|
+
excludeMembers: boolean;
|
60
|
+
deactivatedMembers: any[];
|
61
|
+
backgroundFilter?: {
|
62
|
+
readonly guid: string;
|
63
|
+
readonly attribute: {
|
64
|
+
readonly expression: string;
|
65
|
+
getSort: () => import("@sisense/sdk-data").Sort;
|
66
|
+
sort: (sort: import("@sisense/sdk-data").Sort) => Attribute;
|
67
|
+
name: string;
|
68
|
+
readonly type: string;
|
69
|
+
readonly description: string;
|
70
|
+
readonly id: string;
|
71
|
+
serializable: () => any;
|
72
|
+
toJSON: () => any;
|
73
|
+
jaql: (nested?: boolean | undefined) => any;
|
74
|
+
skipValidation?: boolean | undefined;
|
75
|
+
composeCode?: string | undefined;
|
76
|
+
};
|
77
|
+
isScope: boolean;
|
78
|
+
disabled: boolean;
|
79
|
+
locked: boolean;
|
80
|
+
filterJaql: () => any;
|
81
|
+
name: string;
|
82
|
+
readonly type: string;
|
83
|
+
readonly description: string;
|
84
|
+
readonly id: string;
|
85
|
+
serializable: () => any;
|
86
|
+
toJSON: () => any;
|
87
|
+
jaql: (nested?: boolean | undefined) => any;
|
88
|
+
skipValidation?: boolean | undefined;
|
89
|
+
composeCode?: string | undefined;
|
90
|
+
} | undefined;
|
60
91
|
readonly id: string;
|
61
92
|
serializable: () => any;
|
62
93
|
filterJaql: () => any;
|
@@ -77,6 +108,7 @@ export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimensio
|
|
77
108
|
readonly filterType: string;
|
78
109
|
readonly guid: string;
|
79
110
|
disabled: boolean;
|
111
|
+
locked: boolean;
|
80
112
|
readonly name: string;
|
81
113
|
isScope: boolean;
|
82
114
|
jaql: (nested?: boolean | undefined) => any;
|
package/dist/src/lib.d.ts
CHANGED
@@ -369,6 +369,8 @@ export declare const createThemeContextConnector: (themeSettings?: CompleteTheme
|
|
369
369
|
/**
|
370
370
|
* Theme provider, which allows you to adjust the look and feel of child components.
|
371
371
|
*
|
372
|
+
* Components not wrapped in a theme provider use the current theme from the connected Fusion instance by default.
|
373
|
+
*
|
372
374
|
* @example
|
373
375
|
* Example of a theme provider, which changes the colors and font of the nested indicator chart:
|
374
376
|
* ```vue
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export { boxWhiskerProcessResult } from '@sisense/sdk-ui-preact';
|
2
|
-
export type { ChartType, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, WidgetType, CartesianWidgetType, CategoricalWidgetType, TabularWidgetType, AreaChartProps, BarChartProps, ChartProps, LineChartProps, ColumnChartProps, FunnelChartProps, PolarChartProps, ScatterChartProps, PieChartProps, TreemapChartProps, SunburstChartProps, IndicatorChartProps, AreaRangeChartProps, MemberFilterTileProps, BasicMemberFilterTileProps, CriteriaFilterTileProps, DateRangeFilterTileProps, ChartWidgetProps, TableWidgetProps, TableProps, PivotTableProps, DrilldownBreadcrumbsProps, BoxplotChartProps, AreamapChartProps, ScattermapChartProps, SisenseContextProviderProps, DashboardWidgetProps, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, TableDataOptions, PivotTableDataOptions, WidgetDataOptions, NumberFormatConfig, DecimalScale, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, ValueToColorMap, MultiColumnValueToColorMap, SortDirection, BoxWhiskerType, ScattermapLocationLevel, StyledColumn, StyledMeasureColumn, PivotRowsSort, ChartStyleOptions, LineStyleOptions, AreaStyleOptions, StackableStyleOptions, PieStyleOptions, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, ChartWidgetStyleOptions, WidgetStyleOptions, DashboardWidgetStyleOptions, TableStyleOptions, PivotTableStyleOptions, AreaRangeStyleOptions, DataLimits, Legend, Markers, Labels, IndicatorComponents, ScatterMarkerSize, LineWidth, AxisLabel, Convolution, SeriesLabels, X2Title, ScattermapMarkers, WidgetModel, DashboardModel, BeforeRenderHandler, DataPoint, ScatterDataPoint, HighchartsOptions, BoxplotDataPoint, AppConfig, DateConfig, MenuItemSection, MonthOfYear, DayOfWeek, DateLevel, ThemeOid, GetDashboardModelOptions, GetDashboardModelsOptions, SeriesChartType, MenuPosition, ThemeSettings, Color, ColorPaletteTheme, Navigator, DrilldownOptions, DrilldownSelection, CriteriaFilterType, Member, FilterVariant, } from '@sisense/sdk-ui-preact';
|
2
|
+
export type { ChartType, CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, WidgetType, CartesianWidgetType, CategoricalWidgetType, TabularWidgetType, AreaChartProps, BarChartProps, ChartProps, LineChartProps, ColumnChartProps, FunnelChartProps, PolarChartProps, ScatterChartProps, PieChartProps, TreemapChartProps, SunburstChartProps, IndicatorChartProps, AreaRangeChartProps, MemberFilterTileProps, BasicMemberFilterTileProps, CriteriaFilterTileProps, DateRangeFilterTileProps, ChartWidgetProps, TableWidgetProps, TableProps, PivotTableProps, DrilldownBreadcrumbsProps, BoxplotChartProps, AreamapChartProps, ScattermapChartProps, SisenseContextProviderProps, DashboardWidgetProps, DashboardByIdProps, DashboardProps, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, BoxplotChartDataOptions, BoxplotChartCustomDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, TableDataOptions, PivotTableDataOptions, WidgetDataOptions, NumberFormatConfig, DecimalScale, DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, ValueToColorMap, MultiColumnValueToColorMap, SortDirection, BoxWhiskerType, ScattermapLocationLevel, StyledColumn, StyledMeasureColumn, PivotRowsSort, ChartStyleOptions, LineStyleOptions, AreaStyleOptions, StackableStyleOptions, PieStyleOptions, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, ChartWidgetStyleOptions, WidgetStyleOptions, DashboardWidgetStyleOptions, TableStyleOptions, PivotTableStyleOptions, AreaRangeStyleOptions, DataLimits, Legend, Markers, Labels, IndicatorComponents, ScatterMarkerSize, LineWidth, AxisLabel, Convolution, SeriesLabels, X2Title, ScattermapMarkers, WidgetModel, DashboardModel, BeforeRenderHandler, DataPoint, ScatterDataPoint, HighchartsOptions, BoxplotDataPoint, Layout, WidgetFilterOptions, AppConfig, DateConfig, MenuItemSection, MonthOfYear, DayOfWeek, DateLevel, ThemeOid, GetDashboardModelOptions, GetDashboardModelsOptions, SeriesChartType, MenuPosition, ThemeSettings, Color, ColorPaletteTheme, Navigator, DrilldownOptions, DrilldownSelection, CriteriaFilterType, Member, FilterVariant, } from '@sisense/sdk-ui-preact';
|
3
3
|
import type { ContextMenuProps as ContextMenuPropsPreact, ThemeProviderProps as ThemeProviderPropsPreact } from '@sisense/sdk-ui-preact';
|
4
4
|
export type ContextMenuProps = Omit<ContextMenuPropsPreact, 'children'>;
|
5
5
|
export type ThemeProviderProps = Omit<ThemeProviderPropsPreact, 'children'>;
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"Sisense",
|
12
12
|
"Compose SDK"
|
13
13
|
],
|
14
|
-
"version": "1.
|
14
|
+
"version": "1.15.0",
|
15
15
|
"type": "module",
|
16
16
|
"main": "./dist/index.cjs",
|
17
17
|
"module": "./dist/index.js",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"format:check": "prettier --check ."
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@sisense/sdk-ui-preact": "^1.
|
45
|
+
"@sisense/sdk-ui-preact": "^1.15.0",
|
46
46
|
"deepmerge": "^4.3.1",
|
47
47
|
"lodash": "^4.17.21",
|
48
48
|
"vue": "^3.3.2"
|