@adyen/lume-vue3 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/charts/lume-alluvial-diagram/defaults.d.ts +3 -0
- package/dist/@types/components/charts/lume-alluvial-diagram/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-alluvial-diagram/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-alluvial-diagram/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +125 -0
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-bar-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-bar-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +179 -0
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +26 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +163 -0
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-line-chart/defaults.d.ts +3 -0
- package/dist/@types/components/charts/lume-line-chart/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-line-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-line-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +163 -0
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +22 -0
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-single-bar-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-single-bar-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +163 -0
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts +7 -0
- package/dist/@types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-sparkline-chart/defaults.d.ts +3 -0
- package/dist/@types/components/charts/lume-sparkline-chart/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-sparkline-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-sparkline-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +120 -0
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +26 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/index.d.ts +2 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/index.d.ts.map +1 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +163 -0
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/core/index.d.ts +9 -0
- package/dist/@types/components/core/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/components/lume-tick/index.d.ts +2 -0
- package/dist/@types/components/core/lume-axis/components/lume-tick/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts +82 -0
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/index.d.ts +8 -0
- package/dist/@types/components/core/lume-axis/composables/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts +15 -0
- package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/x-band-scale-axis.d.ts +4 -0
- package/dist/@types/components/core/lume-axis/composables/x-band-scale-axis.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts +4 -0
- package/dist/@types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/y-band-scale-axis.d.ts +4 -0
- package/dist/@types/components/core/lume-axis/composables/y-band-scale-axis.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts +4 -0
- package/dist/@types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/defaults.d.ts +4 -0
- package/dist/@types/components/core/lume-axis/defaults.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/index.d.ts +2 -0
- package/dist/@types/components/core/lume-axis/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts +113 -0
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-axis/types.d.ts +14 -0
- package/dist/@types/components/core/lume-axis/types.d.ts.map +1 -0
- package/dist/@types/components/core/lume-bar/composables/bar-sizing.d.ts +20 -0
- package/dist/@types/components/core/lume-bar/composables/bar-sizing.d.ts.map +1 -0
- package/dist/@types/components/core/lume-bar/composables/bar-transition.d.ts +7 -0
- package/dist/@types/components/core/lume-bar/composables/bar-transition.d.ts.map +1 -0
- package/dist/@types/components/core/lume-bar/index.d.ts +2 -0
- package/dist/@types/components/core/lume-bar/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts +86 -0
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart/index.d.ts +2 -0
- package/dist/@types/components/core/lume-chart/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +239 -0
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart-container/index.d.ts +2 -0
- package/dist/@types/components/core/lume-chart-container/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +70 -0
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart-legend/index.d.ts +2 -0
- package/dist/@types/components/core/lume-chart-legend/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +27 -0
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-line/index.d.ts +2 -0
- package/dist/@types/components/core/lume-line/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts +73 -0
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-point/index.d.ts +2 -0
- package/dist/@types/components/core/lume-point/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts +54 -0
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/index.d.ts +2 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +23 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/index.d.ts +2 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +11 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/index.d.ts +2 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +10 -0
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/index.d.ts +2 -0
- package/dist/@types/components/core/lume-tooltip/index.d.ts.map +1 -0
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +116 -0
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/index.d.ts +5 -0
- package/dist/@types/components/groups/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +44 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +22 -0
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-extents.d.ts +12 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-extents.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +9 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +166 -0
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/constants.d.ts +6 -0
- package/dist/@types/components/groups/lume-alluvial-group/constants.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/helpers.d.ts +30 -0
- package/dist/@types/components/groups/lume-alluvial-group/helpers.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-alluvial-group/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +267 -0
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +29 -0
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts +16 -0
- package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts +16 -0
- package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +22 -0
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-bar-group/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +129 -0
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-line-group/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-line-group/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +137 -0
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-overlay-group/index.d.ts +2 -0
- package/dist/@types/components/groups/lume-overlay-group/index.d.ts.map +1 -0
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +117 -0
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -0
- package/dist/@types/components/index.d.ts +25 -0
- package/dist/@types/components/index.d.ts.map +1 -0
- package/dist/@types/composables/base.d.ts +36 -0
- package/dist/@types/composables/base.d.ts.map +1 -0
- package/dist/@types/composables/events.d.ts +6 -0
- package/dist/@types/composables/events.d.ts.map +1 -0
- package/dist/@types/composables/format.d.ts +6 -0
- package/dist/@types/composables/format.d.ts.map +1 -0
- package/dist/@types/composables/group-props.d.ts +54 -0
- package/dist/@types/composables/group-props.d.ts.map +1 -0
- package/dist/@types/composables/index.d.ts +9 -0
- package/dist/@types/composables/index.d.ts.map +1 -0
- package/dist/@types/composables/line-null-values.d.ts +15 -0
- package/dist/@types/composables/line-null-values.d.ts.map +1 -0
- package/dist/@types/composables/line-values.d.ts +14 -0
- package/dist/@types/composables/line-values.d.ts.map +1 -0
- package/dist/@types/composables/negative-values.d.ts +16 -0
- package/dist/@types/composables/negative-values.d.ts.map +1 -0
- package/dist/@types/composables/options.d.ts +83 -0
- package/dist/@types/composables/options.d.ts.map +1 -0
- package/dist/@types/composables/props.d.ts +77 -0
- package/dist/@types/composables/props.d.ts.map +1 -0
- package/dist/@types/composables/resize.d.ts +17 -0
- package/dist/@types/composables/resize.d.ts.map +1 -0
- package/dist/@types/composables/scales.d.ts +54 -0
- package/dist/@types/composables/scales.d.ts.map +1 -0
- package/dist/@types/composables/tooltip.d.ts +33 -0
- package/dist/@types/composables/tooltip.d.ts.map +1 -0
- package/dist/@types/docs/storybook-data/alluvial-data.d.ts +171 -0
- package/dist/@types/docs/storybook-data/alluvial-data.d.ts.map +1 -0
- package/dist/@types/docs/storybook-data/base-data.d.ts +72 -0
- package/dist/@types/docs/storybook-data/base-data.d.ts.map +1 -0
- package/dist/@types/docs/storybook-data/sparkline-data.d.ts +30 -0
- package/dist/@types/docs/storybook-data/sparkline-data.d.ts.map +1 -0
- package/dist/@types/docs/storybook-helpers.d.ts +37 -0
- package/dist/@types/docs/storybook-helpers.d.ts.map +1 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/plugin.d.ts +4 -0
- package/dist/@types/plugin.d.ts.map +1 -0
- package/dist/@types/types/alluvial.d.ts +79 -0
- package/dist/@types/types/alluvial.d.ts.map +1 -0
- package/dist/@types/types/dataset.d.ts +32 -0
- package/dist/@types/types/dataset.d.ts.map +1 -0
- package/dist/@types/types/events.d.ts +79 -0
- package/dist/@types/types/events.d.ts.map +1 -0
- package/dist/@types/types/size.d.ts +7 -0
- package/dist/@types/types/size.d.ts.map +1 -0
- package/dist/@types/utils/colors.d.ts +6 -0
- package/dist/@types/utils/colors.d.ts.map +1 -0
- package/dist/@types/utils/constants.d.ts +109 -0
- package/dist/@types/utils/constants.d.ts.map +1 -0
- package/dist/@types/utils/errors.d.ts +5 -0
- package/dist/@types/utils/errors.d.ts.map +1 -0
- package/dist/@types/utils/helpers.d.ts +103 -0
- package/dist/@types/utils/helpers.d.ts.map +1 -0
- package/dist/@types/utils/margins.d.ts +10 -0
- package/dist/@types/utils/margins.d.ts.map +1 -0
- package/dist/@types/utils/svg-check.d.ts +7 -0
- package/dist/@types/utils/svg-check.d.ts.map +1 -0
- package/dist/@types/utils/warnings.d.ts +12 -0
- package/dist/@types/utils/warnings.d.ts.map +1 -0
- package/dist/index.js +1125 -1083
- package/dist/index.js.map +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/scss/components/lume-alluvial-group.scss +16 -0
- package/dist/styles/main.css +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/groups/lume-overlay-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Orientation } from '@/utils/constants';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
orientation: {
|
|
5
|
+
type: PropType<Orientation>;
|
|
6
|
+
default: Orientation;
|
|
7
|
+
};
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
labels: {
|
|
13
|
+
type: PropType<(string | number)[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
options: {
|
|
17
|
+
type: PropType<import("../../../composables").Options>;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
xScale: {
|
|
21
|
+
type: PropType<import("../../../composables").Scale>;
|
|
22
|
+
default: () => any;
|
|
23
|
+
};
|
|
24
|
+
yScale: {
|
|
25
|
+
type: PropType<import("../../../composables").Scale>;
|
|
26
|
+
default: () => any;
|
|
27
|
+
};
|
|
28
|
+
hoveredIndex: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
containerSize: {
|
|
33
|
+
type: PropType<import("../../../types/size").ContainerSize>;
|
|
34
|
+
default: () => {
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
transition: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
classList: {
|
|
44
|
+
type: PropType<string | string[]>;
|
|
45
|
+
default: () => any[];
|
|
46
|
+
};
|
|
47
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
click: (p: {
|
|
49
|
+
index: number;
|
|
50
|
+
event: MouseEvent;
|
|
51
|
+
}) => void;
|
|
52
|
+
"lume__internal--hover": (p: number) => void;
|
|
53
|
+
mouseover: (p: number) => void;
|
|
54
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
orientation: {
|
|
56
|
+
type: PropType<Orientation>;
|
|
57
|
+
default: Orientation;
|
|
58
|
+
};
|
|
59
|
+
data: {
|
|
60
|
+
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
|
|
61
|
+
required: boolean;
|
|
62
|
+
};
|
|
63
|
+
labels: {
|
|
64
|
+
type: PropType<(string | number)[]>;
|
|
65
|
+
default: () => any[];
|
|
66
|
+
};
|
|
67
|
+
options: {
|
|
68
|
+
type: PropType<import("../../../composables").Options>;
|
|
69
|
+
default: () => {};
|
|
70
|
+
};
|
|
71
|
+
xScale: {
|
|
72
|
+
type: PropType<import("../../../composables").Scale>;
|
|
73
|
+
default: () => any;
|
|
74
|
+
};
|
|
75
|
+
yScale: {
|
|
76
|
+
type: PropType<import("../../../composables").Scale>;
|
|
77
|
+
default: () => any;
|
|
78
|
+
};
|
|
79
|
+
hoveredIndex: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
containerSize: {
|
|
84
|
+
type: PropType<import("../../../types/size").ContainerSize>;
|
|
85
|
+
default: () => {
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
transition: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
classList: {
|
|
95
|
+
type: PropType<string | string[]>;
|
|
96
|
+
default: () => any[];
|
|
97
|
+
};
|
|
98
|
+
}>> & {
|
|
99
|
+
onClick?: (p: {
|
|
100
|
+
index: number;
|
|
101
|
+
event: MouseEvent;
|
|
102
|
+
}) => any;
|
|
103
|
+
onMouseover?: (p: number) => any;
|
|
104
|
+
"onLume__internal--hover"?: (p: number) => any;
|
|
105
|
+
}, {
|
|
106
|
+
labels: (string | number)[];
|
|
107
|
+
containerSize: import("../../../types/size").ContainerSize;
|
|
108
|
+
hoveredIndex: number;
|
|
109
|
+
orientation: Orientation;
|
|
110
|
+
options: import("../../../composables").Options;
|
|
111
|
+
transition: boolean;
|
|
112
|
+
classList: string | string[];
|
|
113
|
+
xScale: import("../../../composables").Scale;
|
|
114
|
+
yScale: import("../../../composables").Scale;
|
|
115
|
+
}, {}>;
|
|
116
|
+
export default _default;
|
|
117
|
+
//# sourceMappingURL=lume-overlay-group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lume-overlay-group.vue.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/groups/lume-overlay-group/lume-overlay-group.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAAU,MAAM,KAAK,CAAC;AAWjD,OAAO,EAAE,WAAW,EAAgB,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmI9D,wBAaG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { default as LumeAlluvialDiagram } from './charts/lume-alluvial-diagram/lume-alluvial-diagram.vue';
|
|
2
|
+
export { default as LumeBarChart } from './charts/lume-bar-chart/lume-bar-chart.vue';
|
|
3
|
+
export { default as LumeSingleBarChart } from './charts/lume-single-bar-chart/lume-single-bar-chart.vue';
|
|
4
|
+
export { default as LumeGroupedBarChart } from './charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue';
|
|
5
|
+
export { default as LumeStackedBarChart } from './charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue';
|
|
6
|
+
export { default as LumeLineChart } from './charts/lume-line-chart/lume-line-chart.vue';
|
|
7
|
+
export { default as LumeSparklineChart } from './charts/lume-sparkline-chart/lume-sparkline-chart.vue';
|
|
8
|
+
export { default as LumeAxis } from './core/lume-axis/lume-axis.vue';
|
|
9
|
+
export { default as LumeChart } from './core/lume-chart/lume-chart.vue';
|
|
10
|
+
export { default as LumeChartContainer } from './core/lume-chart-container/lume-chart-container.vue';
|
|
11
|
+
export { default as LumeChartLegend } from './core/lume-chart-legend/lume-chart-legend.vue';
|
|
12
|
+
export { default as LumeTooltip } from './core/lume-tooltip/lume-tooltip.vue';
|
|
13
|
+
export { default as LumeTooltipItem } from './core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue';
|
|
14
|
+
export { default as LumeTooltipSummary } from './core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue';
|
|
15
|
+
export { default as LumeTooltipTitle } from './core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue';
|
|
16
|
+
export { default as LumeBar } from './core/lume-bar/lume-bar.vue';
|
|
17
|
+
export { default as LumeLine } from './core/lume-line/lume-line.vue';
|
|
18
|
+
export { default as LumePoint } from './core/lume-point/lume-point.vue';
|
|
19
|
+
export { default as LumeAlluvialGroup } from './groups/lume-alluvial-group/lume-alluvial-group.vue';
|
|
20
|
+
export { default as LumeAlluvialNodeLabel } from './groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue';
|
|
21
|
+
export { default as LumeAlluvialNodeValue } from './groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue';
|
|
22
|
+
export { default as LumeBarGroup } from './groups/lume-bar-group/lume-bar-group.vue';
|
|
23
|
+
export { default as LumeLineGroup } from './groups/lume-line-group/lume-line-group.vue';
|
|
24
|
+
export { default as LumeOverlayGroup } from './groups/lume-overlay-group/lume-overlay-group.vue';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAE1G,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAE5G,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAExF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAIvG,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAE5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,wEAAwE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8EAA8E,CAAC;AAC7H,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0EAA0E,CAAC;AAEvH,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+FAA+F,CAAC;AACjJ,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+FAA+F,CAAC;AAEjJ,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oDAAoD,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComputedRef, PropType, Ref } from 'vue';
|
|
2
|
+
import { Colors, DivergentColors, Orientation } from '@/utils/constants';
|
|
3
|
+
import { Data, DatasetValue, DatasetValueObject, InternalData } from '@/types/dataset';
|
|
4
|
+
import { ContainerSize } from '@/types/size';
|
|
5
|
+
import { Options } from './options';
|
|
6
|
+
export type DataValidator = (value: Data) => boolean;
|
|
7
|
+
export declare const withBase: (dataValidator?: DataValidator) => {
|
|
8
|
+
data: {
|
|
9
|
+
type: PropType<Data<DatasetValue<number>>>;
|
|
10
|
+
required: boolean;
|
|
11
|
+
validator: DataValidator;
|
|
12
|
+
};
|
|
13
|
+
labels: {
|
|
14
|
+
type: PropType<string[]>;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
type: PropType<Colors | DivergentColors>;
|
|
19
|
+
default: Colors;
|
|
20
|
+
};
|
|
21
|
+
title: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare function useBase(data?: Ref<Data | InternalData>, labels?: Ref<Array<string>>, color?: Ref<Colors | DivergentColors>, options?: Ref<Options>, orientation?: Ref<Orientation>): {
|
|
27
|
+
chartID: string;
|
|
28
|
+
computedLabels: ComputedRef<number[] | string[]>;
|
|
29
|
+
containerSize: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
internalData: ComputedRef<InternalData<DatasetValueObject<number>>>;
|
|
34
|
+
updateSize: (size: ContainerSize) => void;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,QAAQ,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAEL,MAAM,EACN,eAAe,EACf,WAAW,EAEZ,MAAM,mBAAmB,CAAC;AAS3B,OAAO,EAEL,IAAI,EAEJ,YAAY,EACZ,kBAAkB,EAClB,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBpC,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC;AAErD,eAAO,MAAM,QAAQ,mBAAmB,aAAa;;;;;;;;;;;;;;;;;;CAkBnD,CAAC;AAEH,wBAAgB,OAAO,CACrB,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC,EAC/B,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAC3B,KAAK,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,eAAe,CAAC,EACrC,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,EACtB,WAAW,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;;;;;;;;uBA2CJ,aAAa;EAmBxC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const useEvents: (emit: (e: string, p: unknown) => void, chartID?: string) => {
|
|
2
|
+
componentEventPropagator: {};
|
|
3
|
+
emitInternalEvent: (eventName: string, ...args: Array<unknown>) => void;
|
|
4
|
+
listenInternalEvent: (eventName: string, listener: (...args: Array<unknown>) => void) => void;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/events.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,SAAS,aACV,MAAM,KAAK,OAAO,KAAK,IAAI,YAC3B,MAAM;;mCAEsB,MAAM,WAAW,MAAM,OAAO,CAAC;qCAWxD,MAAM,sBACG,MAAM,OAAO,CAAC,KAAK,IAAI;CAmB9C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type FormatFunctionArgs = [number | string, ...Array<number | string>];
|
|
2
|
+
type FormatFunction = (...args: FormatFunctionArgs) => number | string;
|
|
3
|
+
export type Format = string | FormatFunction;
|
|
4
|
+
export declare const useFormat: (format: Format) => (args_0: string | number, ...args_1: (string | number)[]) => string | number;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/format.ts"],"names":[],"mappings":"AAIA,KAAK,kBAAkB,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;AAEvE,KAAK,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,kBAAkB,KAAK,MAAM,GAAG,MAAM,CAAC;AAEvE,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;AAE7C,eAAO,MAAM,SAAS,WAAY,MAAM,iFAwBvC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Options } from '@/composables/options';
|
|
3
|
+
import { orientationValidator } from '@/composables/props';
|
|
4
|
+
import { Scale } from '@/composables/scales';
|
|
5
|
+
import { Orientation } from '@/utils/constants';
|
|
6
|
+
import { DatasetValueObject, InternalData } from '@/types/dataset';
|
|
7
|
+
import { ContainerSize } from '@/types/size';
|
|
8
|
+
export declare const withGroupProps: <T extends Options = Options, K extends DatasetValueObject<number> = DatasetValueObject<number>>() => {
|
|
9
|
+
data: {
|
|
10
|
+
type: PropType<InternalData<K>>;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
labels: {
|
|
14
|
+
type: PropType<(string | number)[]>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<T>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
orientation: {
|
|
22
|
+
type: PropType<Orientation>;
|
|
23
|
+
default: Orientation;
|
|
24
|
+
validator: typeof orientationValidator;
|
|
25
|
+
};
|
|
26
|
+
xScale: {
|
|
27
|
+
type: PropType<Scale>;
|
|
28
|
+
default: () => any;
|
|
29
|
+
};
|
|
30
|
+
yScale: {
|
|
31
|
+
type: PropType<Scale>;
|
|
32
|
+
default: () => any;
|
|
33
|
+
};
|
|
34
|
+
hoveredIndex: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
containerSize: {
|
|
39
|
+
type: PropType<ContainerSize>;
|
|
40
|
+
default: () => {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
transition: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
classList: {
|
|
50
|
+
type: PropType<string | string[]>;
|
|
51
|
+
default: () => any[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=group-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-props.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/group-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAgB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './base';
|
|
2
|
+
export * from './line-null-values';
|
|
3
|
+
export * from './negative-values';
|
|
4
|
+
export * from './options';
|
|
5
|
+
export * from './props';
|
|
6
|
+
export * from './resize';
|
|
7
|
+
export * from './scales';
|
|
8
|
+
export * from './tooltip';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { DatasetValueObject, InternalData } from '@/types/dataset';
|
|
3
|
+
export declare function useLineNullValues(data: Ref<InternalData>): {
|
|
4
|
+
computedLineData: import("vue").ComputedRef<{
|
|
5
|
+
isDashed: (index: number) => boolean;
|
|
6
|
+
values: DatasetValueObject<number>[];
|
|
7
|
+
color: string;
|
|
8
|
+
__internal: true;
|
|
9
|
+
label?: string;
|
|
10
|
+
areaColor?: import("@/utils/constants").Color;
|
|
11
|
+
legend?: string;
|
|
12
|
+
type?: import("@/types/dataset").ChartType;
|
|
13
|
+
}[]>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=line-null-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-null-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-null-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGnE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC;;0BA2DrB,MAAM,KAAG,OAAO;;;;;;;;;EA8CnD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScaleLinear } from 'd3';
|
|
2
|
+
import { Scale } from './scales';
|
|
3
|
+
/**
|
|
4
|
+
* Generates the path definition between the point at a provided index (`lineIndex`)
|
|
5
|
+
* and the previous point relative to that index.
|
|
6
|
+
*
|
|
7
|
+
* @param lineIndex The index of the data point of the line to render.
|
|
8
|
+
* @param values An array of the previous and current data value
|
|
9
|
+
* @param xScale The chart X axis scale.
|
|
10
|
+
* @param yScale The chart Y axis scale.
|
|
11
|
+
* @returns A path definition string to provide to the `d` attribute of `<path>`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getLinePathDefinition(lineIndex: number, values: Array<number>, xScale: Scale, yScale: ScaleLinear<number, number>): string;
|
|
14
|
+
//# sourceMappingURL=line-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA0BjC;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,UAWpC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Orientation } from '@/utils/constants';
|
|
3
|
+
import { InternalData } from '@/types/dataset';
|
|
4
|
+
import { ContainerSize } from '@/types/size';
|
|
5
|
+
import { Scale } from './scales';
|
|
6
|
+
export declare function checkNegativeValues(data: Ref<InternalData>): {
|
|
7
|
+
hasNegativeValues: import("vue").ComputedRef<boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare function useNegativeValues(containerSize?: ContainerSize, xScale?: Ref<Scale>, yScale?: Ref<Scale>, orientation?: Ref<Orientation>): {
|
|
10
|
+
negativeBarAttributes: import("vue").ComputedRef<{
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
transform: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=negative-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"negative-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/negative-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAgB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC;;EAK1D;AAED,wBAAgB,iBAAiB,CAC/B,aAAa,CAAC,EAAE,aAAa,EAC7B,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EACnB,MAAM,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EACnB,WAAW,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC;;;;;;EA4B/B"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { SankeyNode } from 'd3-sankey';
|
|
3
|
+
import { Format } from '@/composables/format';
|
|
4
|
+
import { Margins, TOOLTIP_POSITIONS } from '@/utils/constants';
|
|
5
|
+
import { GetHighlightedElementsFunction, SankeyLink, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
|
|
6
|
+
import { ColorPalette } from '@/types/dataset';
|
|
7
|
+
export interface AxisOptions extends Options {
|
|
8
|
+
gridLines?: boolean;
|
|
9
|
+
withTitle?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
showTicks?: boolean;
|
|
12
|
+
tickCount?: number;
|
|
13
|
+
tickFormat?: Format;
|
|
14
|
+
tickPadding?: number;
|
|
15
|
+
skip?: true | number;
|
|
16
|
+
}
|
|
17
|
+
export interface TooltipOptions extends Options {
|
|
18
|
+
fixedPositioning?: boolean;
|
|
19
|
+
offset?: number;
|
|
20
|
+
position?: (typeof TOOLTIP_POSITIONS)[number];
|
|
21
|
+
showTitle?: boolean;
|
|
22
|
+
summary?: string;
|
|
23
|
+
targetElement?: Element | 'self';
|
|
24
|
+
titleFormat?: Format;
|
|
25
|
+
valueFormat?: Format;
|
|
26
|
+
withPointerEvents?: boolean;
|
|
27
|
+
withAnimation?: boolean;
|
|
28
|
+
}
|
|
29
|
+
type LegendPosition = 'top' | 'bottom';
|
|
30
|
+
export interface ChartOptions extends Options {
|
|
31
|
+
margins?: Margins;
|
|
32
|
+
xAxisOptions?: AxisOptions;
|
|
33
|
+
yAxisOptions?: AxisOptions;
|
|
34
|
+
tooltipOptions?: TooltipOptions;
|
|
35
|
+
colorPalette?: ColorPalette;
|
|
36
|
+
startOnZero?: boolean;
|
|
37
|
+
withAxes?: boolean;
|
|
38
|
+
withHover?: boolean;
|
|
39
|
+
withTooltip?: boolean;
|
|
40
|
+
withLegend?: boolean;
|
|
41
|
+
legendPosition?: LegendPosition;
|
|
42
|
+
withTransition?: boolean;
|
|
43
|
+
noBaseScales?: boolean;
|
|
44
|
+
noMinSize?: boolean;
|
|
45
|
+
transparentBackground?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface BarChartOptions extends ChartOptions {
|
|
48
|
+
barHeight?: number;
|
|
49
|
+
padding?: number;
|
|
50
|
+
paddingInner?: number;
|
|
51
|
+
paddingOuter?: number;
|
|
52
|
+
}
|
|
53
|
+
export interface LineChartOptions extends ChartOptions {
|
|
54
|
+
lineWidth?: number;
|
|
55
|
+
withPoints?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface AlluvialDiagramOptions extends ChartOptions {
|
|
58
|
+
gradient?: boolean;
|
|
59
|
+
highlightedElements?: 'full' | 'closest' | GetHighlightedElementsFunction;
|
|
60
|
+
nodeAlign?: (node: SankeyNode<unknown, unknown>, n: number) => number;
|
|
61
|
+
nodeHeaders?: Array<string>;
|
|
62
|
+
nodeHeaderPadding?: number;
|
|
63
|
+
nodeLabelMaxWidth?: number;
|
|
64
|
+
nodePadding?: number;
|
|
65
|
+
nodeSort?: (a: SankeyNode<unknown, unknown>, b: SankeyNode<unknown, unknown>) => number | undefined | null;
|
|
66
|
+
nodeWidth?: number;
|
|
67
|
+
linkSort?: (a: SankeyLink<SankeyNodeProps, SankeyLinkProps>, b: SankeyLink<SankeyNodeProps, SankeyLinkProps>) => number | undefined | null;
|
|
68
|
+
iterations?: number;
|
|
69
|
+
switchText?: boolean;
|
|
70
|
+
valueFormat?: Format;
|
|
71
|
+
}
|
|
72
|
+
export type Options = Record<string, unknown>;
|
|
73
|
+
export declare const withOptions: <T = Options>() => {
|
|
74
|
+
options: {
|
|
75
|
+
type: PropType<T>;
|
|
76
|
+
default: () => {};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare function useOptions<T extends Options = Options>(options: Ref<T>, defaultOptions?: T | Ref<T>): {
|
|
80
|
+
allOptions: import("vue").ComputedRef<T>;
|
|
81
|
+
};
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/options.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DataValidator } from './base';
|
|
3
|
+
import { ChartOptions, Options } from './options';
|
|
4
|
+
import { Orientation } from '@/utils/constants';
|
|
5
|
+
export declare function orientationValidator(orientation: string): boolean;
|
|
6
|
+
export declare const withChartProps: <T extends Options = ChartOptions>(dataValidator?: DataValidator, withOrientation?: boolean) => {
|
|
7
|
+
orientation?: {
|
|
8
|
+
type: PropType<Orientation>;
|
|
9
|
+
default: Orientation;
|
|
10
|
+
validator: typeof orientationValidator;
|
|
11
|
+
};
|
|
12
|
+
classList: {
|
|
13
|
+
type: PropType<string | string[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
hoveredIndex: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
options: {
|
|
21
|
+
type: PropType<T>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
xScale: {
|
|
25
|
+
type: PropType<import("./scales").Scale | import("./scales").ScaleGenerator<import("./scales").Scale>>;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
yScale: {
|
|
29
|
+
type: PropType<import("./scales").Scale | import("./scales").ScaleGenerator<import("./scales").Scale>>;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
data: {
|
|
33
|
+
type: PropType<import("../types/dataset").Data<import("../types/dataset").DatasetValue<number>>>;
|
|
34
|
+
required: boolean;
|
|
35
|
+
validator: DataValidator;
|
|
36
|
+
};
|
|
37
|
+
labels: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
default: any;
|
|
40
|
+
};
|
|
41
|
+
color: {
|
|
42
|
+
type: PropType<import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors>;
|
|
43
|
+
default: import("@/utils/constants").Colors;
|
|
44
|
+
};
|
|
45
|
+
title: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const withDiagramProps: <T extends Options = ChartOptions>(dataValidator?: DataValidator) => {
|
|
51
|
+
hoveredElement: {
|
|
52
|
+
type: PropType<string | number>;
|
|
53
|
+
default: any;
|
|
54
|
+
};
|
|
55
|
+
options: {
|
|
56
|
+
type: PropType<T>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
|
+
data: {
|
|
60
|
+
type: PropType<import("../types/dataset").Data<import("../types/dataset").DatasetValue<number>>>;
|
|
61
|
+
required: boolean;
|
|
62
|
+
validator: DataValidator;
|
|
63
|
+
};
|
|
64
|
+
labels: {
|
|
65
|
+
type: PropType<string[]>;
|
|
66
|
+
default: any;
|
|
67
|
+
};
|
|
68
|
+
color: {
|
|
69
|
+
type: PropType<import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors>;
|
|
70
|
+
default: import("@/utils/constants").Colors;
|
|
71
|
+
};
|
|
72
|
+
title: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAY,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAe,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAgB,MAAM,mBAAmB,CAAC;AAE9D,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAEjE;AAED,eAAO,MAAM,cAAc,qDACT,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC;AAEL,eAAO,MAAM,gBAAgB,qDACX,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ3B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function useResizeObserver(): {
|
|
2
|
+
resizeState: {
|
|
3
|
+
dimensions: Record<string, never> | {
|
|
4
|
+
height: number;
|
|
5
|
+
width: number;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
readonly bottom: number;
|
|
9
|
+
readonly left: number;
|
|
10
|
+
readonly right: number;
|
|
11
|
+
readonly top: number;
|
|
12
|
+
toJSON: () => any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
resizeRef: import("vue").Ref<Element>;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=resize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/resize.ts"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB;;;;;;;;;;;;;;;EAyBhC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { ScaleBand, ScaleLinear } from 'd3';
|
|
3
|
+
import { ChartOptions } from '@/composables/options';
|
|
4
|
+
import { Orientation } from '@/utils/constants';
|
|
5
|
+
import { ContainerSize } from '@/types/size';
|
|
6
|
+
import { InternalData } from '@/types/dataset';
|
|
7
|
+
export interface ComputedScaleBand extends ScaleBand<string | number> {
|
|
8
|
+
labels: Array<string | number>;
|
|
9
|
+
}
|
|
10
|
+
export type Scale = ScaleBand<string | number> | ScaleLinear<number, number>;
|
|
11
|
+
export type ScaleGenerator<T extends Scale = Scale> = (data: InternalData, labels: Array<string>, size: ContainerSize) => T;
|
|
12
|
+
export declare const withScales: () => {
|
|
13
|
+
xScale: {
|
|
14
|
+
type: PropType<Scale | ScaleGenerator<Scale>>;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
yScale: {
|
|
18
|
+
type: PropType<Scale | ScaleGenerator<Scale>>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Generates a reactive pair of scales with base settings.
|
|
24
|
+
*
|
|
25
|
+
* @param data The chart data.
|
|
26
|
+
* @param labels The chart labels.
|
|
27
|
+
* @param size The chart container size.
|
|
28
|
+
* @returns A x-axis scale (band) and a y-axis scale (linear).
|
|
29
|
+
*/
|
|
30
|
+
export declare function useBaseScales(data: Ref<InternalData>, labels: Ref<Array<string | number>>, size: ContainerSize, orientation?: Ref<Orientation>, options?: Ref<ChartOptions>): {
|
|
31
|
+
xScale: Ref<Scale>;
|
|
32
|
+
yScale: Ref<Scale>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Checks if a provided argument is an instance of Scale.
|
|
36
|
+
*
|
|
37
|
+
* @param arg The variable to test.
|
|
38
|
+
* @returns `true` if it is a Scale, `false` otherwise.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isScale(arg: unknown): arg is Scale;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the `x` position of the provided index in the scale.
|
|
43
|
+
*
|
|
44
|
+
* @param scale A linear or band scale.
|
|
45
|
+
* @param index The index to get the x position of.
|
|
46
|
+
* @returns The x position
|
|
47
|
+
*/
|
|
48
|
+
export declare function getXByIndex(scale: Scale, index: number): number;
|
|
49
|
+
export declare function getPaddedScale(scale: ScaleBand<string | number>, orientation?: Orientation, { padding, paddingInner, paddingOuter, }?: {
|
|
50
|
+
padding?: number;
|
|
51
|
+
paddingInner?: number;
|
|
52
|
+
paddingOuter?: number;
|
|
53
|
+
}): ScaleBand<string | number>;
|
|
54
|
+
//# sourceMappingURL=scales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/scales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAO,GAAG,EAAe,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,SAAS,EAAa,WAAW,EAAe,MAAM,IAAI,CAAC;AAGpE,OAAO,EAAmB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EACL,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,iBAAkB,SAAQ,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;IACnE,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAI,CACpD,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,IAAI,EAAE,aAAa,KAChB,CAAC,CAAC;AAEP,eAAO,MAAM,UAAU;;;;;;;;;CASrB,CAAC;AAEH;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,EACvB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,EACnC,IAAI,EAAE,aAAa,EACnB,WAAW,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,EAC9B,OAAO,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;;;EAmD5B;AAkDD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,KAAK,CAIlD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EACjC,WAAW,CAAC,EAAE,WAAW,EACzB,EACE,OAAO,EACP,YAAY,EACZ,YAAY,GACb,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAO,8BAY3E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Scale } from './scales';
|
|
3
|
+
import { Orientation } from '@/utils/constants';
|
|
4
|
+
import { DatasetValueObject, InternalData } from '@/types/dataset';
|
|
5
|
+
import { ChartOptions } from './options';
|
|
6
|
+
export interface AnchorAttributes {
|
|
7
|
+
cx: number;
|
|
8
|
+
cy: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TooltipConfig {
|
|
11
|
+
opened: boolean;
|
|
12
|
+
targetElement: Element | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function useTooltipAnchors(anchorAttributeArray: Ref<Array<AnchorAttributes>>, options: Ref<ChartOptions>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation?: Ref<Orientation>, data?: Ref<InternalData>, chartType?: Ref<string>, labels?: Ref<Array<string>>): {
|
|
15
|
+
shouldGenerateTooltipAnchors: import("vue").ComputedRef<boolean>;
|
|
16
|
+
updateTooltipAnchorAttributes: (renderedData: InternalData<DatasetValueObject<number>>) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare function useTooltip(): {
|
|
19
|
+
tooltipConfig: {
|
|
20
|
+
opened: boolean;
|
|
21
|
+
targetElement: Element;
|
|
22
|
+
};
|
|
23
|
+
showTooltip: (targetElement: Element | null) => void;
|
|
24
|
+
hideTooltip: () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare function useTooltipItems(data: Ref<InternalData>): {
|
|
27
|
+
getTooltipItems: import("vue").ComputedRef<(index: number) => {
|
|
28
|
+
color: string;
|
|
29
|
+
label: string;
|
|
30
|
+
value: string | number;
|
|
31
|
+
}[]>;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=tooltip.d.ts.map
|