@sisense/sdk-ui-vue 1.4.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +87643 -82709
- package/dist/src/components/charts/area-chart.d.ts +8 -3
- package/dist/src/components/charts/areamap-chart.d.ts +10 -3
- package/dist/src/components/charts/bar-chart.d.ts +10 -5
- package/dist/src/components/charts/boxplot-chart.d.ts +10 -5
- package/dist/src/components/charts/chart.d.ts +29 -13
- package/dist/src/components/charts/column-chart.d.ts +9 -3
- package/dist/src/components/charts/funnel-chart.d.ts +10 -4
- package/dist/src/components/charts/index.d.ts +0 -3
- package/dist/src/components/charts/indicator-chart.d.ts +15 -10
- package/dist/src/components/charts/line-chart.d.ts +18 -13
- package/dist/src/components/charts/pie-chart.d.ts +16 -11
- package/dist/src/components/charts/pivot-table.d.ts +26 -13
- package/dist/src/components/charts/polar-chart.d.ts +17 -12
- package/dist/src/components/charts/scatter-chart.d.ts +16 -11
- package/dist/src/components/charts/scattermap-chart.d.ts +16 -11
- package/dist/src/components/charts/sunburst-chart.d.ts +19 -10
- package/dist/src/components/charts/table.d.ts +23 -8
- package/dist/src/components/charts/treemap-chart.d.ts +17 -12
- package/dist/src/components/context-menu.d.ts +1 -0
- package/dist/src/components/drilldown-breadcrumbs.d.ts +1 -0
- package/dist/src/components/drilldown-widget.d.ts +90 -0
- package/dist/src/components/filters/criteria-filter-tile.d.ts +2 -1
- package/dist/src/components/filters/date-range-filter-tile.d.ts +24 -15
- package/dist/src/components/filters/member-filter-tile.d.ts +23 -14
- package/dist/src/components/{charts → widgets}/chart-widget.d.ts +8 -4
- package/dist/src/components/{charts → widgets}/dashboard-widget.d.ts +5 -0
- package/dist/src/components/widgets/index.d.ts +3 -0
- package/dist/src/components/{charts → widgets}/table-widget.d.ts +4 -3
- package/dist/src/composables/use-execute-query-by-widget-id.d.ts +2 -0
- package/dist/src/composables/use-execute-query.d.ts +1 -0
- package/dist/src/composables/use-get-dashboard-model.d.ts +1 -0
- package/dist/src/composables/use-get-dashboard-models.d.ts +1 -0
- package/dist/src/composables/use-get-shared-formula.d.ts +1 -0
- package/dist/src/composables/use-get-widget-model.d.ts +1 -0
- package/dist/src/lib.d.ts +2 -0
- package/dist/src/providers/index.d.ts +1 -1
- package/dist/src/providers/sisense-context-provider.d.ts +28 -15
- 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 -1
@@ -38,5 +38,7 @@ import type { MaybeWithRefs } from '../types';
|
|
38
38
|
*
|
39
39
|
* Utilizing this composable allows for declarative and reactive handling of widget-specific queries within Vue applications,
|
40
40
|
* facilitating easier data fetching and state management with the Sisense SDK.
|
41
|
+
*
|
42
|
+
* @group Fusion Assets
|
41
43
|
*/
|
42
44
|
export declare const useExecuteQueryByWidgetId: (params: MaybeWithRefs<ExecuteQueryByWidgetIdParams>) => ToRefs<QueryByWidgetIdState>;
|
@@ -40,5 +40,6 @@ import type { MaybeWithRefs } from '../types';
|
|
40
40
|
*
|
41
41
|
* This composable facilitates integrating Sisense data fetching into Vue applications, enabling developers
|
42
42
|
* to easily manage query states and dynamically adjust query parameters based on application needs.
|
43
|
+
* @group Queries
|
43
44
|
*/
|
44
45
|
export declare const useExecuteQuery: (params: MaybeWithRefs<ExecuteQueryParams>) => import("vue").ToRefs<import("@sisense/sdk-ui-preact").QueryState>;
|
@@ -37,5 +37,6 @@ import type { GetDashboardModelParams } from '@sisense/sdk-ui-preact';
|
|
37
37
|
*
|
38
38
|
* Utilizing this composable enables developers to declaratively integrate Sisense dashboard analytics into their Vue applications,
|
39
39
|
* managing data fetching and state with minimal boilerplate code.
|
40
|
+
* @group Fusion Assets
|
40
41
|
*/
|
41
42
|
export declare const useGetDashboardModel: (params: MaybeWithRefs<GetDashboardModelParams>) => import("vue").ToRefs<import("@sisense/sdk-ui-preact").DashboardModelState>;
|
@@ -34,5 +34,6 @@ import type { MaybeWithRefs } from '../types';
|
|
34
34
|
*
|
35
35
|
* This composable is ideal for Vue applications requiring a list of Sisense dashboards, providing a streamlined, reactive
|
36
36
|
* way to fetch and manage the state of multiple dashboard models.
|
37
|
+
* @group Fusion Assets
|
37
38
|
*/
|
38
39
|
export declare const useGetDashboardModels: (params: MaybeWithRefs<GetDashboardModelsParams>) => import("vue").ToRefs<import("@sisense/sdk-ui-preact").DashboardModelsState>;
|
@@ -41,5 +41,6 @@ import type { MaybeWithRefs } from '../types';
|
|
41
41
|
* - `error`: Contains the error object if an error occurred during the fetch.
|
42
42
|
*
|
43
43
|
* This composable provides a streamlined, reactive approach to fetching shared formulas from Sisense, facilitating their integration into Vue applications for enhanced data analytics capabilities.
|
44
|
+
* @group Fusion Assets
|
44
45
|
*/
|
45
46
|
export declare const useGetSharedFormula: (params: MaybeWithRefs<UseGetSharedFormulaParams>) => import("vue").ToRefs<import("@sisense/sdk-ui-preact").SharedFormulaState>;
|
@@ -37,5 +37,6 @@ import type { MaybeWithRefs } from '../types';
|
|
37
37
|
*
|
38
38
|
* This composable streamlines the process of fetching and managing Sisense widget models within Vue applications, providing
|
39
39
|
* developers with a reactive and efficient way to integrate Sisense data visualizations and analytics.
|
40
|
+
* @group Fusion Assets
|
40
41
|
*/
|
41
42
|
export declare const useGetWidgetModel: (params: MaybeWithRefs<GetWidgetModelParams>) => import("vue").ToRefs<import("@sisense/sdk-ui-preact").DataState<WidgetModel>>;
|
package/dist/src/lib.d.ts
CHANGED
@@ -4,5 +4,7 @@ export * from './components/filters';
|
|
4
4
|
export * from './providers';
|
5
5
|
export * from './composables';
|
6
6
|
export * from './components/context-menu';
|
7
|
+
export * from './types';
|
7
8
|
export { default as DrilldownWidget } from './components/drilldown-widget.vue';
|
8
9
|
export * from './sdk-ui-core-exports';
|
10
|
+
export * from './components/widgets';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { SisenseContextProvider, createSisenseContextConnector,
|
1
|
+
export { SisenseContextProvider, createSisenseContextConnector, getSisenseContext, } from './sisense-context-provider';
|
2
2
|
export { ThemeProvider, createThemeContextConnector } from './theme-provider';
|
@@ -1,20 +1,17 @@
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
2
|
-
import {
|
2
|
+
import { type CustomSisenseContext } from '@sisense/sdk-ui-preact';
|
3
3
|
/**
|
4
4
|
* Gets Sisense application
|
5
5
|
* @internal
|
6
6
|
*/
|
7
|
-
export declare const
|
7
|
+
export declare const getSisenseContext: () => Ref<CustomSisenseContext>;
|
8
8
|
/**
|
9
9
|
* Creates Sisense context connector
|
10
10
|
* @internal
|
11
11
|
*/
|
12
|
-
export declare const createSisenseContextConnector: (
|
13
|
-
prepareContext(): Promise<
|
14
|
-
|
15
|
-
isInitialized: boolean;
|
16
|
-
}>;
|
17
|
-
renderContextProvider: (contextData: import("@sisense/sdk-ui-preact").CustomSisenseContext | undefined, children: import("preact").VNode<{}>, error?: Error | undefined) => import("preact").VNode<{}>;
|
12
|
+
export declare const createSisenseContextConnector: (context: CustomSisenseContext) => {
|
13
|
+
prepareContext(): Promise<CustomSisenseContext>;
|
14
|
+
renderContextProvider: (contextData: CustomSisenseContext | undefined, children: import("preact").VNode<{}>, error?: Error | undefined) => import("preact").VNode<{}>;
|
18
15
|
};
|
19
16
|
/**
|
20
17
|
* Sisense Context Provider Component allowing you to connect to
|
@@ -62,9 +59,10 @@ export declare const createSisenseContextConnector: (app: ClientApplication) =>
|
|
62
59
|
*
|
63
60
|
* @param props - Sisense context provider props
|
64
61
|
* @returns A Sisense Context Provider Component
|
62
|
+
* @group Contexts
|
65
63
|
*/
|
66
64
|
export declare const SisenseContextProvider: import("vue").DefineComponent<{
|
67
|
-
defaultDataSource: PropType<
|
65
|
+
defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
|
68
66
|
url: PropType<string>;
|
69
67
|
ssoEnabled: PropType<boolean | undefined>;
|
70
68
|
token: PropType<string | undefined>;
|
@@ -73,15 +71,21 @@ export declare const SisenseContextProvider: import("vue").DefineComponent<{
|
|
73
71
|
/**
|
74
72
|
* @internal
|
75
73
|
*/
|
76
|
-
showRuntimeErrors:
|
74
|
+
showRuntimeErrors: {
|
75
|
+
type: PropType<boolean | undefined>;
|
76
|
+
default: boolean;
|
77
|
+
};
|
77
78
|
/**
|
78
79
|
* @internal
|
79
80
|
*/
|
80
|
-
enableTracking:
|
81
|
+
enableTracking: {
|
82
|
+
type: PropType<boolean | undefined>;
|
83
|
+
default: boolean;
|
84
|
+
};
|
81
85
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
82
86
|
[key: string]: any;
|
83
87
|
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
84
|
-
defaultDataSource: PropType<
|
88
|
+
defaultDataSource: PropType<import("@sisense/sdk-data").DataSource | undefined>;
|
85
89
|
url: PropType<string>;
|
86
90
|
ssoEnabled: PropType<boolean | undefined>;
|
87
91
|
token: PropType<string | undefined>;
|
@@ -90,9 +94,18 @@ export declare const SisenseContextProvider: import("vue").DefineComponent<{
|
|
90
94
|
/**
|
91
95
|
* @internal
|
92
96
|
*/
|
93
|
-
showRuntimeErrors:
|
97
|
+
showRuntimeErrors: {
|
98
|
+
type: PropType<boolean | undefined>;
|
99
|
+
default: boolean;
|
100
|
+
};
|
94
101
|
/**
|
95
102
|
* @internal
|
96
103
|
*/
|
97
|
-
enableTracking:
|
98
|
-
|
104
|
+
enableTracking: {
|
105
|
+
type: PropType<boolean | undefined>;
|
106
|
+
default: boolean;
|
107
|
+
};
|
108
|
+
}>>, {
|
109
|
+
showRuntimeErrors: boolean | undefined;
|
110
|
+
enableTracking: boolean | undefined;
|
111
|
+
}, {}>;
|
@@ -27,6 +27,7 @@ export declare const getThemeContext: () => Ref<{
|
|
27
27
|
}> | undefined;
|
28
28
|
/**
|
29
29
|
* Creates theme context connector
|
30
|
+
* @internal
|
30
31
|
*/
|
31
32
|
export declare const createThemeContextConnector: (themeSettings?: CompleteThemeSettings) => {
|
32
33
|
prepareContext(): Promise<{
|
@@ -136,6 +137,7 @@ export declare const createThemeContextConnector: (themeSettings?: CompleteTheme
|
|
136
137
|
* @param props - Theme provider props
|
137
138
|
* @returns A Theme Provider component * @prop {Object | String} theme - Theme settings object for custom themes or a string identifier to fetch theme settings. When provided as an object, it merges with the default theme settings. When provided as a string, it attempts to fetch theme settings using the provided ID.
|
138
139
|
* @prop {Boolean} skipTracking [internal] - Specifies whether to skip tracking of theme usage. Intended for internal use and debugging purposes.
|
140
|
+
* @group Contexts
|
139
141
|
*/
|
140
142
|
export declare const ThemeProvider: import("vue").DefineComponent<{
|
141
143
|
theme: PropType<string | import("@sisense/sdk-ui-preact").ThemeSettings | undefined>;
|
@@ -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, MemberFilterTileProps, CriteriaFilterTileProps, DateRangeFilterTileProps, ChartWidgetProps, TableWidgetProps, TableProps, PivotTableProps, DrilldownBreadcrumbsProps, BoxplotChartProps, AreamapChartProps, ScattermapChartProps, SisenseContextProviderProps, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams,
|
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, MemberFilterTileProps, 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, ChartStyleOptions, LineStyleOptions, AreaStyleOptions, StackableStyleOptions, PieStyleOptions, FunnelStyleOptions, PolarStyleOptions, IndicatorStyleOptions, NumericSimpleIndicatorStyleOptions, NumericBarIndicatorStyleOptions, GaugeIndicatorStyleOptions, ScatterStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, ChartWidgetStyleOptions, WidgetStyleOptions, DashboardWidgetStyleOptions, TableStyleOptions, PivotTableStyleOptions, 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';
|
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.6.0",
|
15
15
|
"type": "module",
|
16
16
|
"main": "./dist/index.js",
|
17
17
|
"module": "./dist/index.js",
|
@@ -34,6 +34,7 @@
|
|
34
34
|
"format:check": "prettier --check ."
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
+
"@sisense/sdk-ui-preact": "^1.6.0",
|
37
38
|
"deepmerge": "^4.3.1",
|
38
39
|
"lodash": "^4.17.21",
|
39
40
|
"vue": "^3.3.2"
|