@adyen/lume 0.1.2 → 0.1.4
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/README.md +3 -2
- package/dist/common/43767e44.js +9 -0
- package/dist/common/43767e44.js.map +1 -0
- package/dist/common/c2033638.js +9 -0
- package/dist/common/c2033638.js.map +1 -0
- package/dist/common/cf54f0b6.js +2959 -0
- package/dist/common/cf54f0b6.js.map +1 -0
- package/dist/common/ec8ca41a.js +9 -0
- package/dist/common/ec8ca41a.js.map +1 -0
- package/dist/index.js +27 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +43 -0
- package/dist/plugin.js.map +1 -0
- package/dist/scss/_titles.scss +2 -15
- package/dist/scss/{mixins/_typography.scss → _typography.scss} +9 -5
- package/dist/scss/components/lume-alluvial-group.scss +46 -0
- package/dist/scss/components/lume-alluvial-path-group.scss +31 -0
- package/dist/scss/components/lume-axis.scss +36 -0
- package/dist/scss/components/lume-bar.scss +27 -0
- package/dist/scss/components/lume-chart-container.scss +35 -0
- package/dist/scss/components/lume-chart-legend.scss +28 -0
- package/dist/scss/components/lume-chart.scss +38 -0
- package/dist/scss/components/lume-line-group.scss +11 -0
- package/dist/scss/components/lume-line.scss +34 -0
- package/dist/scss/components/lume-point.scss +9 -0
- package/dist/scss/components/lume-sparkline-chart.scss +10 -0
- package/dist/scss/components/lume-tooltip.scss +80 -0
- package/dist/scss/main.scss +16 -0
- package/dist/scss/variables/_colors.scss +4 -0
- package/dist/styles/font.css +1 -3
- package/dist/styles/main.css +3 -3
- package/package.json +31 -26
- package/dist/assets/fonts/inter-500.woff +0 -0
- package/dist/assets/fonts/inter-500.woff2 +0 -0
- package/dist/assets/fonts/inter-600.woff +0 -0
- package/dist/assets/fonts/inter-600.woff2 +0 -0
- package/dist/assets/fonts/inter-700.woff +0 -0
- package/dist/assets/fonts/inter-700.woff2 +0 -0
- package/dist/assets/fonts/inter-regular.woff +0 -0
- package/dist/assets/fonts/inter-regular.woff2 +0 -0
- package/dist/scss/font.scss +0 -37
- package/dist/scss/mixins/_base.scss +0 -7
- package/dist/styles/font.css.map +0 -1
- package/dist/styles/font.js +0 -0
- package/dist/styles/main.css.map +0 -1
- package/dist/styles/main.js +0 -0
- package/dist/types/components/charts/index.d.ts +0 -8
- package/dist/types/components/charts/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/defaults.d.ts +0 -13
- package/dist/types/components/charts/lume-alluvial-diagram/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/index.d.ts +0 -2
- package/dist/types/components/charts/lume-alluvial-diagram/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +0 -109
- package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +0 -120
- package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/defaults.d.ts +0 -28
- package/dist/types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-grouped-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +0 -94
- package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/defaults.d.ts +0 -3
- package/dist/types/components/charts/lume-line-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-line-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +0 -93
- package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/defaults.d.ts +0 -24
- package/dist/types/components/charts/lume-single-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-single-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +0 -94
- package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts +0 -7
- package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/defaults.d.ts +0 -3
- package/dist/types/components/charts/lume-sparkline-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-sparkline-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +0 -56
- package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/defaults.d.ts +0 -28
- package/dist/types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/index.d.ts +0 -2
- package/dist/types/components/charts/lume-stacked-bar-chart/index.d.ts.map +0 -1
- package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +0 -96
- package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +0 -1
- package/dist/types/components/core/index.d.ts +0 -9
- package/dist/types/components/core/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/index.d.ts +0 -8
- package/dist/types/components/core/lume-axis/composables/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/lume-skip.d.ts +0 -13
- package/dist/types/components/core/lume-axis/composables/lume-skip.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/x-band-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/x-band-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/x-linear-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/y-band-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/y-band-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts +0 -4
- package/dist/types/components/core/lume-axis/composables/y-linear-scale-axis.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/defaults.d.ts +0 -4
- package/dist/types/components/core/lume-axis/defaults.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/index.d.ts +0 -2
- package/dist/types/components/core/lume-axis/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts +0 -87
- package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-axis/types.d.ts +0 -7
- package/dist/types/components/core/lume-axis/types.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/composables/bar-sizing.d.ts +0 -20
- package/dist/types/components/core/lume-bar/composables/bar-sizing.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/composables/bar-transition.d.ts +0 -7
- package/dist/types/components/core/lume-bar/composables/bar-transition.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/index.d.ts +0 -2
- package/dist/types/components/core/lume-bar/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-bar/lume-bar.vue.d.ts +0 -88
- package/dist/types/components/core/lume-bar/lume-bar.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-container/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart-container/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +0 -56
- package/dist/types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-legend/index.d.ts +0 -2
- package/dist/types/components/core/lume-chart-legend/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +0 -17
- package/dist/types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-line/index.d.ts +0 -2
- package/dist/types/components/core/lume-line/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-line/lume-line.vue.d.ts +0 -72
- package/dist/types/components/core/lume-line/lume-line.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-point/index.d.ts +0 -2
- package/dist/types/components/core/lume-point/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-point/lume-point.vue.d.ts +0 -71
- package/dist/types/components/core/lume-point/lume-point.vue.d.ts.map +0 -1
- package/dist/types/components/core/lume-tooltip/index.d.ts +0 -2
- package/dist/types/components/core/lume-tooltip/index.d.ts.map +0 -1
- package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +0 -86
- package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +0 -1
- package/dist/types/components/groups/composables/group-props.d.ts +0 -27
- package/dist/types/components/groups/composables/group-props.d.ts.map +0 -1
- package/dist/types/components/groups/index.d.ts +0 -5
- package/dist/types/components/groups/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-building-blocks.d.ts +0 -55
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-building-blocks.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-coordinates.d.ts +0 -10
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-coordinates.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-interactions.d.ts +0 -24
- package/dist/types/components/groups/lume-alluvial-group/composables/lume-alluvial-interactions.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/constants.d.ts +0 -3
- package/dist/types/components/groups/lume-alluvial-group/constants.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-alluvial-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +0 -143
- package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-path-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-alluvial-path-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-alluvial-path-group/lume-alluvial-path-group.vue.d.ts +0 -53
- package/dist/types/components/groups/lume-alluvial-path-group/lume-alluvial-path-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +0 -30
- package/dist/types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts +0 -16
- package/dist/types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/single-mixin.d.ts +0 -16
- package/dist/types/components/groups/lume-bar-group/composables/single-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +0 -22
- package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/constants.d.ts +0 -2
- package/dist/types/components/groups/lume-bar-group/constants.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-bar-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +0 -95
- package/dist/types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-line-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-line-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-line-group/lume-line-group.vue.d.ts +0 -75
- package/dist/types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +0 -1
- package/dist/types/components/groups/lume-overlay-group/index.d.ts +0 -2
- package/dist/types/components/groups/lume-overlay-group/index.d.ts.map +0 -1
- package/dist/types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +0 -67
- package/dist/types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -20
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/composables/base.d.ts +0 -31
- package/dist/types/composables/base.d.ts.map +0 -1
- package/dist/types/composables/line-null-values.d.ts +0 -15
- package/dist/types/composables/line-null-values.d.ts.map +0 -1
- package/dist/types/composables/negative-values.d.ts +0 -16
- package/dist/types/composables/negative-values.d.ts.map +0 -1
- package/dist/types/composables/options.d.ts +0 -53
- package/dist/types/composables/options.d.ts.map +0 -1
- package/dist/types/composables/props.d.ts +0 -47
- package/dist/types/composables/props.d.ts.map +0 -1
- package/dist/types/composables/resize.d.ts +0 -17
- package/dist/types/composables/resize.d.ts.map +0 -1
- package/dist/types/composables/scales.d.ts +0 -51
- package/dist/types/composables/scales.d.ts.map +0 -1
- package/dist/types/composables/tooltip.d.ts +0 -29
- package/dist/types/composables/tooltip.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -47
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/alluvial-data.d.ts +0 -38
- package/dist/types/docs/storybook-data/alluvial-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/base-data.d.ts +0 -39
- package/dist/types/docs/storybook-data/base-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-data/sparkline-data.d.ts +0 -24
- package/dist/types/docs/storybook-data/sparkline-data.d.ts.map +0 -1
- package/dist/types/docs/storybook-helpers.d.ts +0 -35
- package/dist/types/docs/storybook-helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/alluvial.d.ts +0 -72
- package/dist/types/types/alluvial.d.ts.map +0 -1
- package/dist/types/types/dataset.d.ts +0 -32
- package/dist/types/types/dataset.d.ts.map +0 -1
- package/dist/types/types/size.d.ts +0 -7
- package/dist/types/types/size.d.ts.map +0 -1
- package/dist/types/utils/colors.d.ts +0 -5
- package/dist/types/utils/colors.d.ts.map +0 -1
- package/dist/types/utils/helpers.d.ts +0 -98
- package/dist/types/utils/helpers.d.ts.map +0 -1
- package/dist/types/utils/svg-check.d.ts +0 -7
- package/dist/types/utils/svg-check.d.ts.map +0 -1
- package/dist/types/utils/warnings.d.ts +0 -7
- package/dist/types/utils/warnings.d.ts.map +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { ScaleBand } from 'd3';
|
|
3
|
-
import { Scale } from '@/composables/scales';
|
|
4
|
-
import { Orientation } from '@/constants';
|
|
5
|
-
import { Data, DatasetValueObject } from '@/types/dataset';
|
|
6
|
-
import { ContainerSize } from '@/types/size';
|
|
7
|
-
export declare function useStackedAxes(groupedData: ComputedRef<DatasetValueObject[][]>, orientation: Ref<Orientation>): {
|
|
8
|
-
stackedXScaleGenerator: (_data: Data<import("@/types/dataset").DatasetValue<number>>, labels: Array<string>, size: ContainerSize) => import("d3-scale").ScaleLinear<number, number, never> | ScaleBand<string | number>;
|
|
9
|
-
stackedYScaleGenerator: (_data: Data<import("@/types/dataset").DatasetValue<number>>, labels: Array<string>, size: ContainerSize) => import("d3-scale").ScaleLinear<number, number, never> | ScaleBand<string | number>;
|
|
10
|
-
};
|
|
11
|
-
export declare function useStackedBarMixin(data: ComputedRef<Data<DatasetValueObject<number>>>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation: Ref<Orientation>, hoveredIndex: Ref<number>, classList: Array<string>): {
|
|
12
|
-
barAttributeGenerator: (barValue: DatasetValueObject, index: number, groupIndex: number) => {
|
|
13
|
-
classList: string[];
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
isFaded: boolean;
|
|
19
|
-
isNegative: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=stacked-mixin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stacked-mixin.d.ts","sourceRoot":"","sources":["../../../../../../src/components/groups/lume-bar-group/composables/stacked-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACjD,OAAO,EAAa,SAAS,EAAe,MAAM,IAAI,CAAC;AAEvD,OAAO,EAAkB,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAU,WAAW,EAAgB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,wBAAgB,cAAc,CAC5B,WAAW,EAAE,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC,EAChD,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;kGAiCnB,MAAM,MAAM,CAAC,QACf,aAAa;kGAeX,MAAM,MAAM,CAAC,QACf,aAAa;EActB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EACnD,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,EAC7B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC;sCAyEZ,kBAAkB,SACrB,MAAM,cACD,MAAM;;;;;;;;;EA2BrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-bar-group/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-bar-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
transition: {
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
orientation?: {
|
|
8
|
-
type: PropType<import("@/constants").Orientation>;
|
|
9
|
-
default: import("@/constants").Orientation;
|
|
10
|
-
validator: typeof import("./composables/bar-mixin").orientationValidator;
|
|
11
|
-
};
|
|
12
|
-
type: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: any;
|
|
15
|
-
validator: (type: string) => boolean;
|
|
16
|
-
};
|
|
17
|
-
classList: {
|
|
18
|
-
type: PropType<string | string[]>;
|
|
19
|
-
default: () => any[];
|
|
20
|
-
};
|
|
21
|
-
data: {
|
|
22
|
-
type: PropType<import("../../../types/dataset").InternalData>;
|
|
23
|
-
required: boolean;
|
|
24
|
-
};
|
|
25
|
-
xScale: {
|
|
26
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
27
|
-
required: boolean;
|
|
28
|
-
};
|
|
29
|
-
yScale: {
|
|
30
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
31
|
-
required: boolean;
|
|
32
|
-
};
|
|
33
|
-
hoveredIndex: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
default: number;
|
|
36
|
-
};
|
|
37
|
-
options: {
|
|
38
|
-
type: PropType<import("../../../composables/options").Options>;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
barXScale: import("vue").ComputedRef<import("../../../composables/scales").Scale>;
|
|
43
|
-
barYScale: import("vue").ComputedRef<import("../../../composables/scales").Scale>;
|
|
44
|
-
computedTransition: import("vue").ComputedRef<"width" | "height">;
|
|
45
|
-
getBarAttributes: import("vue").ComputedRef<any>;
|
|
46
|
-
groupedData: import("vue").ComputedRef<import("../../../types/dataset").DatasetValueObject<number>[][]>;
|
|
47
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
transition: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
orientation?: {
|
|
53
|
-
type: PropType<import("@/constants").Orientation>;
|
|
54
|
-
default: import("@/constants").Orientation;
|
|
55
|
-
validator: typeof import("./composables/bar-mixin").orientationValidator;
|
|
56
|
-
};
|
|
57
|
-
type: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: any;
|
|
60
|
-
validator: (type: string) => boolean;
|
|
61
|
-
};
|
|
62
|
-
classList: {
|
|
63
|
-
type: PropType<string | string[]>;
|
|
64
|
-
default: () => any[];
|
|
65
|
-
};
|
|
66
|
-
data: {
|
|
67
|
-
type: PropType<import("../../../types/dataset").InternalData>;
|
|
68
|
-
required: boolean;
|
|
69
|
-
};
|
|
70
|
-
xScale: {
|
|
71
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
72
|
-
required: boolean;
|
|
73
|
-
};
|
|
74
|
-
yScale: {
|
|
75
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
76
|
-
required: boolean;
|
|
77
|
-
};
|
|
78
|
-
hoveredIndex: {
|
|
79
|
-
type: NumberConstructor;
|
|
80
|
-
default: number;
|
|
81
|
-
};
|
|
82
|
-
options: {
|
|
83
|
-
type: PropType<import("../../../composables/options").Options>;
|
|
84
|
-
default: () => {};
|
|
85
|
-
};
|
|
86
|
-
}>>, {
|
|
87
|
-
type: string;
|
|
88
|
-
orientation?: import("@/constants").Orientation;
|
|
89
|
-
hoveredIndex: number;
|
|
90
|
-
options: import("../../../composables/options").Options;
|
|
91
|
-
classList: string | string[];
|
|
92
|
-
transition: boolean;
|
|
93
|
-
}>;
|
|
94
|
-
export default _default;
|
|
95
|
-
//# sourceMappingURL=lume-bar-group.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lume-bar-group.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-bar-group/lume-bar-group.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAU,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBlE,wBAoEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-line-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DatasetValueObject } from '@/types/dataset';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
withPoints: {
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
transition: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
data: {
|
|
12
|
-
type: import("vue").PropType<import("@/types/dataset").InternalData>;
|
|
13
|
-
required: boolean;
|
|
14
|
-
};
|
|
15
|
-
xScale: {
|
|
16
|
-
type: import("vue").PropType<import("@/composables/scales").Scale>;
|
|
17
|
-
required: boolean;
|
|
18
|
-
};
|
|
19
|
-
yScale: {
|
|
20
|
-
type: import("vue").PropType<import("@/composables/scales").Scale>;
|
|
21
|
-
required: boolean;
|
|
22
|
-
};
|
|
23
|
-
hoveredIndex: {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
default: number;
|
|
26
|
-
};
|
|
27
|
-
options: {
|
|
28
|
-
type: import("vue").PropType<import("../../../composables/options").Options>;
|
|
29
|
-
default: () => {};
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
computedGroupData: import("vue").ComputedRef<import("@/types/dataset").InternalData>;
|
|
33
|
-
getLineValues: (index: number, computedLineValues: Array<DatasetValueObject<number>>) => number[];
|
|
34
|
-
getPointValue: (index: number, computedLineValues: Array<DatasetValueObject<number>>) => number;
|
|
35
|
-
isPointActive: (index: number) => boolean;
|
|
36
|
-
overlayLineAttributes: import("vue").ComputedRef<{
|
|
37
|
-
d: string;
|
|
38
|
-
}>;
|
|
39
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
-
withPoints: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
transition: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
data: {
|
|
49
|
-
type: import("vue").PropType<import("@/types/dataset").InternalData>;
|
|
50
|
-
required: boolean;
|
|
51
|
-
};
|
|
52
|
-
xScale: {
|
|
53
|
-
type: import("vue").PropType<import("@/composables/scales").Scale>;
|
|
54
|
-
required: boolean;
|
|
55
|
-
};
|
|
56
|
-
yScale: {
|
|
57
|
-
type: import("vue").PropType<import("@/composables/scales").Scale>;
|
|
58
|
-
required: boolean;
|
|
59
|
-
};
|
|
60
|
-
hoveredIndex: {
|
|
61
|
-
type: NumberConstructor;
|
|
62
|
-
default: number;
|
|
63
|
-
};
|
|
64
|
-
options: {
|
|
65
|
-
type: import("vue").PropType<import("../../../composables/options").Options>;
|
|
66
|
-
default: () => {};
|
|
67
|
-
};
|
|
68
|
-
}>>, {
|
|
69
|
-
hoveredIndex: number;
|
|
70
|
-
options: import("../../../composables/options").Options;
|
|
71
|
-
transition: boolean;
|
|
72
|
-
withPoints: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
export default _default;
|
|
75
|
-
//# sourceMappingURL=lume-line-group.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lume-line-group.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-line-group/lume-line-group.vue.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4CxC,MAAM,sBACO,MAAM,mBAAmB,MAAM,CAAC,CAAC;2BAY9C,MAAM,sBACO,MAAM,mBAAmB,MAAM,CAAC,CAAC;2BAKzB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7DxC,wBAyEG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-overlay-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { Orientation } from '@/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>;
|
|
10
|
-
required: boolean;
|
|
11
|
-
};
|
|
12
|
-
xScale: {
|
|
13
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
14
|
-
required: boolean;
|
|
15
|
-
};
|
|
16
|
-
yScale: {
|
|
17
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
18
|
-
required: boolean;
|
|
19
|
-
};
|
|
20
|
-
hoveredIndex: {
|
|
21
|
-
type: NumberConstructor;
|
|
22
|
-
default: number;
|
|
23
|
-
};
|
|
24
|
-
options: {
|
|
25
|
-
type: PropType<import("../../../composables/options").Options>;
|
|
26
|
-
default: () => {};
|
|
27
|
-
};
|
|
28
|
-
}, {
|
|
29
|
-
getOverlayBarAttributes: (index: number) => {
|
|
30
|
-
width: number;
|
|
31
|
-
height: number;
|
|
32
|
-
transform: string;
|
|
33
|
-
};
|
|
34
|
-
handleMouseover: (index: number) => void;
|
|
35
|
-
overlayData: import("vue").ComputedRef<any[]>;
|
|
36
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
-
orientation: {
|
|
38
|
-
type: PropType<Orientation>;
|
|
39
|
-
default: Orientation;
|
|
40
|
-
};
|
|
41
|
-
data: {
|
|
42
|
-
type: PropType<import("../../../types/dataset").InternalData>;
|
|
43
|
-
required: boolean;
|
|
44
|
-
};
|
|
45
|
-
xScale: {
|
|
46
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
47
|
-
required: boolean;
|
|
48
|
-
};
|
|
49
|
-
yScale: {
|
|
50
|
-
type: PropType<import("../../../composables/scales").Scale>;
|
|
51
|
-
required: boolean;
|
|
52
|
-
};
|
|
53
|
-
hoveredIndex: {
|
|
54
|
-
type: NumberConstructor;
|
|
55
|
-
default: number;
|
|
56
|
-
};
|
|
57
|
-
options: {
|
|
58
|
-
type: PropType<import("../../../composables/options").Options>;
|
|
59
|
-
default: () => {};
|
|
60
|
-
};
|
|
61
|
-
}>>, {
|
|
62
|
-
orientation: Orientation;
|
|
63
|
-
hoveredIndex: number;
|
|
64
|
-
options: import("../../../composables/options").Options;
|
|
65
|
-
}>;
|
|
66
|
-
export default _default;
|
|
67
|
-
//# sourceMappingURL=lume-overlay-group.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lume-overlay-group.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-overlay-group/lume-overlay-group.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,QAAQ,EAAU,MAAM,KAAK,CAAC;AAWlE,OAAO,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAiBZ,MAAM;;;;;6BAyBd,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAxC1C,wBA8CG"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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 LumeBar } from './core/lume-bar/lume-bar.vue';
|
|
14
|
-
export { default as LumeLine } from './core/lume-line/lume-line.vue';
|
|
15
|
-
export { default as LumePoint } from './core/lume-point/lume-point.vue';
|
|
16
|
-
export { default as LumeAlluvialGroup } from './groups/lume-alluvial-group/lume-alluvial-group.vue';
|
|
17
|
-
export { default as LumeBarGroup } from './groups/lume-bar-group/lume-bar-group.vue';
|
|
18
|
-
export { default as LumeLineGroup } from './groups/lume-line-group/lume-line-group.vue';
|
|
19
|
-
export { default as LumeOverlayGroup } from './groups/lume-overlay-group/lume-overlay-group.vue';
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../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;AAC5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAE9E,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,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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, PropType, Ref } from 'vue';
|
|
2
|
-
import { Colors, DivergentColors, Orientation } from '@/constants';
|
|
3
|
-
import { Data, DatasetValue, InternalData } from '@/types/dataset';
|
|
4
|
-
import { ContainerSize } from '@/types/size';
|
|
5
|
-
import { Options } from './options';
|
|
6
|
-
export declare 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
|
-
};
|
|
22
|
-
export declare function useBase(data: Ref<Data | InternalData>, labels?: Ref<Array<string>>, color?: Ref<Colors | DivergentColors>, options?: Ref<Options>, orientation?: Ref<Orientation>): {
|
|
23
|
-
computedLabels: ComputedRef<string[] | number[]>;
|
|
24
|
-
containerSize: {
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
};
|
|
28
|
-
internalData: ComputedRef<InternalData>;
|
|
29
|
-
updateSize: (size: ContainerSize) => void;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/composables/base.ts"],"names":[],"mappings":"AAAA,OAAY,EAAY,WAAW,EAAE,QAAQ,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1E,OAAO,EAEL,MAAM,EACN,eAAe,EACf,WAAW,EAEZ,MAAM,aAAa,CAAC;AAKrB,OAAO,EAEL,IAAI,EAEJ,YAAY,EAEZ,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,oBAAY,aAAa,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC;AAErD,eAAO,MAAM,QAAQ,mBAAmB,aAAa;;;;;;;;;;;;;;CAcnD,CAAC;AAEH,wBAAgB,OAAO,CACrB,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC,EAC9B,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;;;;;;;uBAsCJ,aAAa;EAgBxC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
type?: "bar" | "line";
|
|
10
|
-
label?: string;
|
|
11
|
-
areaColor?: import("@/constants").Color;
|
|
12
|
-
legend?: string;
|
|
13
|
-
}[]>;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=line-null-values.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-null-values.d.ts","sourceRoot":"","sources":["../../../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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Orientation } from '@/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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"negative-values.d.ts","sourceRoot":"","sources":["../../../src/composables/negative-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAgB,MAAM,aAAa,CAAC;AACxD,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"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { PropType, Ref } from 'vue';
|
|
2
|
-
import { Margins, TOOLTIP_POSITIONS } from '@/constants';
|
|
3
|
-
import { ColorPalette } from '@/types/dataset';
|
|
4
|
-
export interface AxisOptions extends Options {
|
|
5
|
-
gridLines?: boolean;
|
|
6
|
-
withTitle?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
showTicks?: boolean;
|
|
9
|
-
tickCount?: number;
|
|
10
|
-
tickFormat?: string | (() => string);
|
|
11
|
-
tickPadding?: number;
|
|
12
|
-
skip?: true | number;
|
|
13
|
-
}
|
|
14
|
-
export interface TooltipOptions extends Options {
|
|
15
|
-
offset?: number;
|
|
16
|
-
position?: typeof TOOLTIP_POSITIONS[number];
|
|
17
|
-
showTitle?: boolean;
|
|
18
|
-
targetElement?: Element | 'self';
|
|
19
|
-
fixedPositioning?: boolean;
|
|
20
|
-
}
|
|
21
|
-
declare type LegendPosition = 'top' | 'bottom';
|
|
22
|
-
export interface ChartOptions extends Options {
|
|
23
|
-
margins?: Margins;
|
|
24
|
-
xAxisOptions?: AxisOptions;
|
|
25
|
-
yAxisOptions?: AxisOptions;
|
|
26
|
-
tooltipOptions?: TooltipOptions;
|
|
27
|
-
colorPalette?: ColorPalette;
|
|
28
|
-
startOnZero?: boolean;
|
|
29
|
-
withTooltip?: boolean;
|
|
30
|
-
withLegend?: boolean;
|
|
31
|
-
legendPosition?: LegendPosition;
|
|
32
|
-
withTransition?: boolean;
|
|
33
|
-
noBaseScales?: boolean;
|
|
34
|
-
noMinSize?: boolean;
|
|
35
|
-
transparentBackground?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface BarChartOptions extends ChartOptions {
|
|
38
|
-
padding?: number;
|
|
39
|
-
paddingInner?: number;
|
|
40
|
-
paddingOuter?: number;
|
|
41
|
-
}
|
|
42
|
-
export declare type Options = Record<string, unknown>;
|
|
43
|
-
export declare const withOptions: <T = Options>() => {
|
|
44
|
-
options: {
|
|
45
|
-
type: PropType<T>;
|
|
46
|
-
default: () => {};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export declare function useOptions<T extends Options = Options>(options: Ref<T>, defaultOptions?: T | Ref<T>): {
|
|
50
|
-
allOptions: import("vue").ComputedRef<T>;
|
|
51
|
-
};
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/composables/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,QAAQ,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,WAAY,SAAQ,OAAO;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,OAAO;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,aAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEvC,MAAM,WAAW,YAAa,SAAQ,OAAO;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW;;;;;CAKtB,CAAC;AAEH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EACpD,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,cAAc,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;;EAU5B"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { DataValidator } from './base';
|
|
3
|
-
import { ChartOptions, Options } from './options';
|
|
4
|
-
import { Orientation } from '@/constants';
|
|
5
|
-
declare function orientationValidator(orientation: string): boolean;
|
|
6
|
-
export declare const withChartProps: <T extends Options = ChartOptions>(dataValidator?: DataValidator) => {
|
|
7
|
-
title: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: any;
|
|
10
|
-
};
|
|
11
|
-
orientation: {
|
|
12
|
-
type: PropType<Orientation>;
|
|
13
|
-
default: Orientation;
|
|
14
|
-
validator: typeof orientationValidator;
|
|
15
|
-
};
|
|
16
|
-
classList: {
|
|
17
|
-
type: PropType<string | string[]>;
|
|
18
|
-
default: () => any[];
|
|
19
|
-
};
|
|
20
|
-
options: {
|
|
21
|
-
type: PropType<T>;
|
|
22
|
-
default: () => {};
|
|
23
|
-
};
|
|
24
|
-
xScale: {
|
|
25
|
-
type: PropType<import("d3-scale").ScaleBand<string | number> | import("./scales").ScaleGenerator<import("./scales").Scale>>;
|
|
26
|
-
default: any;
|
|
27
|
-
};
|
|
28
|
-
yScale: {
|
|
29
|
-
type: PropType<import("d3-scale").ScaleLinear<number, number, never> | import("./scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>>;
|
|
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("@/constants").Colors | import("@/constants").DivergentColors>;
|
|
43
|
-
default: import("@/constants").Colors;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../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,aAAa,CAAC;AAExD,iBAAS,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,eAAO,MAAM,cAAc,qDACT,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB3B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../../src/composables/resize.ts"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB;;;;;;;;;;;;;;;EAyBhC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { PropType, Ref } from 'vue';
|
|
2
|
-
import { ScaleBand, ScaleLinear } from 'd3';
|
|
3
|
-
import { ChartOptions } from '@/composables/options';
|
|
4
|
-
import { Orientation } from '@/constants';
|
|
5
|
-
import { ContainerSize } from '@/types/size';
|
|
6
|
-
import { InternalData } from '@/types/dataset';
|
|
7
|
-
export declare type Scale = ScaleBand<string | number> | ScaleLinear<number, number>;
|
|
8
|
-
export declare type ScaleGenerator<T extends Scale = Scale> = (data: InternalData, labels: Array<string>, size: ContainerSize) => T;
|
|
9
|
-
export declare const withScales: () => {
|
|
10
|
-
xScale: {
|
|
11
|
-
type: PropType<ScaleBand<string | number> | ScaleGenerator<Scale>>;
|
|
12
|
-
default: any;
|
|
13
|
-
};
|
|
14
|
-
yScale: {
|
|
15
|
-
type: PropType<ScaleLinear<number, number, never> | ScaleGenerator<ScaleLinear<number, number, never>>>;
|
|
16
|
-
default: any;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Generates a reactive pair of scales with base settings.
|
|
21
|
-
*
|
|
22
|
-
* @param data The chart data.
|
|
23
|
-
* @param labels The chart labels.
|
|
24
|
-
* @param size The chart container size.
|
|
25
|
-
* @returns A x-axis scale (band) and a y-axis scale (linear).
|
|
26
|
-
*/
|
|
27
|
-
export declare function useBaseScales(data: Ref<InternalData>, labels: Ref<Array<string | number>>, size: ContainerSize, orientation?: Ref<Orientation>, options?: Ref<ChartOptions>): {
|
|
28
|
-
xScale: Ref<Scale>;
|
|
29
|
-
yScale: Ref<Scale>;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Checks if a provided argument is an instance of Scale.
|
|
33
|
-
*
|
|
34
|
-
* @param arg The variable to test.
|
|
35
|
-
* @returns `true` if it is a Scale, `false` otherwise.
|
|
36
|
-
*/
|
|
37
|
-
export declare function isScale(arg: unknown): arg is Scale;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the `x` position of the provided index in the scale.
|
|
40
|
-
*
|
|
41
|
-
* @param scale A linear or band scale.
|
|
42
|
-
* @param index The index to get the x position of.
|
|
43
|
-
* @returns The x position
|
|
44
|
-
*/
|
|
45
|
-
export declare function getXByIndex(scale: Scale, index: number): number;
|
|
46
|
-
export declare function getPaddedScale(scale: ScaleBand<string | number>, orientation?: Orientation, { padding, paddingInner, paddingOuter, }?: {
|
|
47
|
-
padding?: number;
|
|
48
|
-
paddingInner?: number;
|
|
49
|
-
paddingOuter?: number;
|
|
50
|
-
}): ScaleBand<string | number>;
|
|
51
|
-
//# sourceMappingURL=scales.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../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,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EACL,WAAW,EAIZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,oBAAY,KAAK,GAAG,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7E,oBAAY,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;;;;;;;;;CAWrB,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;;;EAwC5B;AAgCD;;;;;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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Scale } from './scales';
|
|
3
|
-
import { Orientation } from '@/constants';
|
|
4
|
-
import { InternalData } from '@/types/dataset';
|
|
5
|
-
export interface TooltipConfig {
|
|
6
|
-
opened: boolean;
|
|
7
|
-
targetElement: Element | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function useTooltipAnchors(data: Ref<InternalData>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation: Ref<Orientation>, chartType?: Ref<string>): {
|
|
10
|
-
getTooltipAnchorAttributes: import("vue").ComputedRef<(index: number) => {
|
|
11
|
-
cx: number;
|
|
12
|
-
cy: number;
|
|
13
|
-
}>;
|
|
14
|
-
getTooltipItems: (index: number) => {
|
|
15
|
-
type: "bar" | "line";
|
|
16
|
-
color: string;
|
|
17
|
-
label: string;
|
|
18
|
-
value: string | number;
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
export declare function useTooltip(): {
|
|
22
|
-
tooltipConfig: {
|
|
23
|
-
opened: boolean;
|
|
24
|
-
targetElement: Element;
|
|
25
|
-
};
|
|
26
|
-
showTooltip: (targetElement: Element | null) => void;
|
|
27
|
-
hideTooltip: () => void;
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/composables/tooltip.ts"],"names":[],"mappings":"AAAA,OAAY,EAAsB,GAAG,EAAE,MAAM,KAAK,CAAC;AAEnD,OAAO,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAAW,WAAW,EAAgB,MAAM,aAAa,CAAC;AAEjE,OAAO,EAA4B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B;AAiBD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,EACvB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAClB,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,EAC7B,SAAS,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;kEAGmC,MAAM;;;;6BA2BhC,MAAM;;;;;;EAUvC;AAED,wBAAgB,UAAU;;;;;iCAMY,OAAO,GAAG,IAAI;;EAWnD"}
|