@sisense/sdk-ui-vue 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ }>>, {}, {}>;
@@ -0,0 +1,2 @@
1
+ export { DashboardById } from './dashboard-by-id';
2
+ export { Dashboard } from './dashboard';
@@ -57,6 +57,36 @@ export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimensio
57
57
  drilldownFilters: Ref<{
58
58
  readonly members: any[];
59
59
  _deactivatedMembers: any[];
60
+ backgroundFilter?: {
61
+ readonly guid: string;
62
+ readonly attribute: {
63
+ readonly expression: string;
64
+ getSort: () => import("@sisense/sdk-data").Sort;
65
+ sort: (sort: import("@sisense/sdk-data").Sort) => Attribute;
66
+ name: string;
67
+ readonly type: string;
68
+ readonly description: string;
69
+ readonly id: string;
70
+ serializable: () => any;
71
+ toJSON: () => any;
72
+ jaql: (nested?: boolean | undefined) => any;
73
+ skipValidation?: boolean | undefined;
74
+ composeCode?: string | undefined;
75
+ };
76
+ isScope: boolean;
77
+ disabled: boolean;
78
+ locked: boolean;
79
+ filterJaql: () => any;
80
+ name: string;
81
+ readonly type: string;
82
+ readonly description: string;
83
+ readonly id: string;
84
+ serializable: () => any;
85
+ toJSON: () => any;
86
+ jaql: (nested?: boolean | undefined) => any;
87
+ skipValidation?: boolean | undefined;
88
+ composeCode?: string | undefined;
89
+ } | undefined;
60
90
  readonly id: string;
61
91
  serializable: () => any;
62
92
  filterJaql: () => any;
@@ -77,6 +107,7 @@ export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimensio
77
107
  readonly filterType: string;
78
108
  readonly guid: string;
79
109
  disabled: boolean;
110
+ locked: boolean;
80
111
  readonly name: string;
81
112
  isScope: boolean;
82
113
  jaql: (nested?: boolean | undefined) => any;
package/dist/src/lib.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './types';
8
8
  export { default as DrilldownWidget } from './components/drilldown-widget.vue';
9
9
  export * from './sdk-ui-core-exports';
10
10
  export * from './components/widgets';
11
+ export * from './components/dashboard';
@@ -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.13.0",
14
+ "version": "1.14.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.13.0",
45
+ "@sisense/sdk-ui-preact": "^1.14.0",
46
46
  "deepmerge": "^4.3.1",
47
47
  "lodash": "^4.17.21",
48
48
  "vue": "^3.3.2"