@sisense/sdk-ui-vue 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,3 +16,4 @@ export { DashboardWidget } from './dashboard-widget';
16
16
  export { TableWidget } from './table-widget';
17
17
  export { BoxplotChart } from './boxplot-chart';
18
18
  export { AreamapChart } from './areamap-chart';
19
+ export { ScattermapChart } from './scattermap-chart';
@@ -0,0 +1,37 @@
1
+ import type { PropType } from 'vue';
2
+ /**
3
+ * A Vue component that wraps the ScattermapChart Preact component for use in Vue applications.
4
+ * It maintains compatibility with Vue's reactivity system while preserving the functionality of the ScattermapChart.
5
+ *
6
+ * @example
7
+ * Here's how you can use the ScattermapChart component in a Vue application:
8
+ * ```vue
9
+ * <template>
10
+ * <ScattermapChart :props="ScattermapChartProps" />
11
+ * </template>
12
+ *
13
+ * <script setup lang="ts">
14
+ * import { ref } from 'vue';
15
+ * import ScattermapChart from '@sisense/sdk-ui-vue/ScattermapChart';
16
+ *
17
+ * const ScattermapChartProps = ref({
18
+ * // Configure your ScattermapChartProps here
19
+ * });
20
+ * </script>
21
+ * ```
22
+ */
23
+ export declare const ScattermapChart: import("vue").DefineComponent<{
24
+ dataOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapChartDataOptions>;
25
+ dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
26
+ filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelation | undefined>;
27
+ highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
28
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapStyleOptions | undefined>;
29
+ }, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>) | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ dataOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapChartDataOptions>;
33
+ dataSet: PropType<string | import("@sisense/sdk-data").Data | undefined>;
34
+ filters: PropType<import("@sisense/sdk-data").Filter[] | import("@sisense/sdk-data").FilterRelation | undefined>;
35
+ highlights: PropType<import("@sisense/sdk-data").Filter[] | undefined>;
36
+ styleOptions: PropType<import("@sisense/sdk-ui-preact").ScattermapStyleOptions | undefined>;
37
+ }>>, {}, {}>;
@@ -0,0 +1,12 @@
1
+ import type { PropType } from 'vue';
2
+ export declare const ContextMenu: import("vue").DefineComponent<{
3
+ closeContextMenu: PropType<() => void>;
4
+ itemSections: PropType<import("@sisense/sdk-ui-preact").MenuItemSection[] | undefined>;
5
+ position: PropType<import("@sisense/sdk-ui-preact").MenuPosition | null | undefined>;
6
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
+ [key: string]: any;
8
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ closeContextMenu: PropType<() => void>;
10
+ itemSections: PropType<import("@sisense/sdk-ui-preact").MenuItemSection[] | undefined>;
11
+ position: PropType<import("@sisense/sdk-ui-preact").MenuPosition | null | undefined>;
12
+ }>>, {}, {}>;
@@ -0,0 +1,14 @@
1
+ import type { PropType } from 'vue';
2
+ export declare const DrilldownBreadcrumbs: import("vue").DefineComponent<{
3
+ clearDrilldownSelections: PropType<() => void>;
4
+ currentDimension: PropType<import("@sisense/sdk-data").Attribute>;
5
+ sliceDrilldownSelections: PropType<(i: number) => void>;
6
+ filtersDisplayValues: PropType<string[][]>;
7
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
+ [key: string]: any;
9
+ }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ clearDrilldownSelections: PropType<() => void>;
11
+ currentDimension: PropType<import("@sisense/sdk-data").Attribute>;
12
+ sliceDrilldownSelections: PropType<(i: number) => void>;
13
+ filtersDisplayValues: PropType<string[][]>;
14
+ }>>, {}, {}>;
@@ -0,0 +1,46 @@
1
+ import type { Component, PropType } from 'vue';
2
+ import type { ContextMenuProps } from '@sisense/sdk-ui-preact';
3
+ import type { Attribute } from '@sisense/sdk-data';
4
+ type DrilldownWidgetConfig = {
5
+ isBreadcrumbsDetached?: boolean;
6
+ breadcrumbsComponent?: Component;
7
+ contextMenuComponent?: (props: ContextMenuProps) => Component;
8
+ };
9
+ declare const _sfc_main: import("vue").DefineComponent<{
10
+ config: {
11
+ type: PropType<DrilldownWidgetConfig>;
12
+ required: false;
13
+ default: () => {};
14
+ };
15
+ drilldownDimensions: {
16
+ type: PropType<Attribute[]>;
17
+ required: false;
18
+ default: () => never[];
19
+ };
20
+ initialDimension: {
21
+ type: PropType<Attribute>;
22
+ required: false;
23
+ default: () => {};
24
+ };
25
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ config: {
27
+ type: PropType<DrilldownWidgetConfig>;
28
+ required: false;
29
+ default: () => {};
30
+ };
31
+ drilldownDimensions: {
32
+ type: PropType<Attribute[]>;
33
+ required: false;
34
+ default: () => never[];
35
+ };
36
+ initialDimension: {
37
+ type: PropType<Attribute>;
38
+ required: false;
39
+ default: () => {};
40
+ };
41
+ }>>, {
42
+ drilldownDimensions: Attribute[];
43
+ initialDimension: Attribute;
44
+ config: DrilldownWidgetConfig;
45
+ }, {}>;
46
+ export default _sfc_main;
@@ -0,0 +1,66 @@
1
+ import type { Attribute, Column } from '@sisense/sdk-data';
2
+ import { type DataPoint, type StyledColumn } from '@sisense/sdk-ui-preact';
3
+ import { type Ref } from 'vue';
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare const useCustomDrilldown: ({ drilldownDimensions, initialDimension, }: {
8
+ drilldownDimensions: Ref<Attribute[]>;
9
+ initialDimension: Column | StyledColumn;
10
+ }) => {
11
+ selectDrilldown: (points: DataPoint[], nextDimension: Attribute) => void;
12
+ sliceDrilldownSelections: (i: number) => void;
13
+ clearDrilldownSelections: () => void;
14
+ drilldownSelections: Ref<{
15
+ points: {
16
+ value?: string | number | undefined;
17
+ categoryValue?: string | number | undefined;
18
+ categoryDisplayValue?: string | undefined;
19
+ seriesValue?: string | number | undefined;
20
+ }[];
21
+ nextDimension: {
22
+ readonly expression: string;
23
+ getSort: () => import("@sisense/sdk-data").Sort;
24
+ sort: (sort: import("@sisense/sdk-data").Sort) => Attribute;
25
+ name: string;
26
+ readonly type: string;
27
+ readonly description: string;
28
+ readonly id: string;
29
+ serializable: () => any;
30
+ toJSON: () => any;
31
+ jaql: (nested?: boolean | undefined) => any;
32
+ skipValidation?: boolean | undefined;
33
+ };
34
+ }[]>;
35
+ availableDrilldowns: import("vue").ComputedRef<Attribute[]>;
36
+ drilldownDimension: Ref<Attribute | undefined>;
37
+ drilldownFilters: Ref<{
38
+ readonly members: any[];
39
+ readonly id: string;
40
+ serializable: () => any;
41
+ filterJaql: () => any;
42
+ readonly attribute: {
43
+ readonly expression: string;
44
+ getSort: () => import("@sisense/sdk-data").Sort;
45
+ sort: (sort: import("@sisense/sdk-data").Sort) => Attribute;
46
+ name: string;
47
+ readonly type: string;
48
+ readonly description: string;
49
+ readonly id: string;
50
+ serializable: () => any;
51
+ toJSON: () => any;
52
+ jaql: (nested?: boolean | undefined) => any;
53
+ skipValidation?: boolean | undefined;
54
+ };
55
+ readonly filterType: string;
56
+ readonly guid: string;
57
+ readonly name: string;
58
+ isScope: boolean;
59
+ jaql: (nested?: boolean | undefined) => any;
60
+ readonly description: string;
61
+ readonly type: string;
62
+ toJSON: () => any;
63
+ toString: () => string;
64
+ }[]>;
65
+ drilldownFiltersDisplayValues: Ref<string[][]>;
66
+ };
package/dist/src/lib.d.ts CHANGED
@@ -1,5 +1,14 @@
1
- export { SisenseContextProvider, ThemeProvider } from './providers';
1
+ /**
2
+ * @packageDocumentation
3
+ * @alpha
4
+ */
5
+ export { DrilldownBreadcrumbs } from './components/drilldown-breadcrumbs';
2
6
  export * from './components/charts';
3
7
  export * from './components/filters';
8
+ export * from './providers';
4
9
  export * from './hooks';
5
- export type { AreaChartProps, BarChartProps, ChartProps, LineChartProps, ColumnChartProps, FunnelChartProps, PolarChartProps, ScatterChartProps, PieChartProps, TreemapChartProps, SunburstChartProps, IndicatorChartProps, MemberFilterTileProps, CriteriaFilterTileProps, DateRangeFilterTileProps, ChartWidgetProps, TableWidgetProps, TableProps, CustomSisenseContextProviderProps, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, ExecuteCsvQueryParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, BoxplotChartProps, AreamapChartProps, } from '@sisense/sdk-ui-preact';
10
+ export * from './components/context-menu';
11
+ export { default as DrilldownWidget } from './components/drilldown-widget.vue';
12
+ import type { ContextMenuProps as ContextMenuPropsPreact } from '@sisense/sdk-ui-preact';
13
+ export type ContextMenuProps = Omit<ContextMenuPropsPreact, 'children'>;
14
+ export type { AreaChartProps, BarChartProps, ChartProps, LineChartProps, ColumnChartProps, FunnelChartProps, PolarChartProps, ScatterChartProps, PieChartProps, TreemapChartProps, SunburstChartProps, IndicatorChartProps, MemberFilterTileProps, CriteriaFilterTileProps, DateRangeFilterTileProps, ChartWidgetProps, TableWidgetProps, TableProps, CustomSisenseContextProviderProps, ExecuteQueryByWidgetIdParams, ExecuteQueryParams, GetWidgetModelParams, ExecuteCsvQueryParams, GetSharedFormulaParams, GetDashboardModelParams, UseGetSharedFormulaParams, GetDashboardModelsParams, DrilldownBreadcrumbsProps, BoxplotChartProps, AreamapChartProps, SisenseContextProviderProps, ThemeProviderProps, ScattermapChartProps, } from '@sisense/sdk-ui-preact';
@@ -1,6 +1,18 @@
1
+ import { type Slots } from 'vue';
1
2
  export declare function isObject(value: unknown): boolean;
2
3
  export declare function getRawData<T>(data: T): T;
3
4
  export declare function toDeepRaw<T>(data: T): T;
5
+ /**
6
+ * @internal
7
+ * @description This is a helper function to render a component without children.
8
+ */
4
9
  export declare const setupHelper: <P, C>(component: C, props: P) => (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
10
  [key: string]: any;
6
11
  }>) | null;
12
+ /**
13
+ * @internal
14
+ * @description This is a helper function to render a component with children.
15
+ */
16
+ export declare const setupHelperWithChildren: <P, C>(component: C, props: P, slots: Slots, contexts?: []) => () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>[];
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.1.0",
14
+ "version": "1.2.0",
15
15
  "type": "module",
16
16
  "main": "./dist/index.js",
17
17
  "module": "./dist/index.js",