@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.
- package/dist/index.js +47101 -41691
- package/dist/src/components/charts/index.d.ts +1 -0
- package/dist/src/components/charts/scattermap-chart.d.ts +37 -0
- package/dist/src/components/context-menu.d.ts +12 -0
- package/dist/src/components/drilldown-breadcrumbs.d.ts +14 -0
- package/dist/src/components/drilldown-widget.vue.d.ts +46 -0
- package/dist/src/hooks/use-custom-drilldown.d.ts +66 -0
- package/dist/src/lib.d.ts +11 -2
- package/dist/src/setup-helper.d.ts +12 -0
- package/package.json +1 -1
@@ -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
|
-
|
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
|
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
|
+
}>[];
|