Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adyen/lume

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adyen/lume - npm Package Compare versions

Comparing version 1.9.3 to 1.9.4

dist/@types/types/index.d.ts

2

dist/@types/components/charts/lume-alluvial-diagram/defaults.d.ts

@@ -1,3 +0,3 @@

import { AlluvialDiagramOptions } from '@/composables/options';
import type { AlluvialDiagramOptions } from '@/types/options';
export declare const options: AlluvialDiagramOptions;
//# sourceMappingURL=defaults.d.ts.map

@@ -1,2 +0,2 @@

import { AlluvialDiagramOptions } from '@/composables/options';
import type { AlluvialDiagramOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -12,3 +12,3 @@ hoveredElement: {

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -41,6 +41,6 @@ validator: import("../../../composables").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -70,3 +70,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -88,3 +88,3 @@ validator: import("../../../composables").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -105,3 +105,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -121,4 +121,4 @@ "onChart-click"?: (p: MouseEvent) => any;

color: import("../../../utils/constants").Colors | import("../../../utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
options: AlluvialDiagramOptions;

@@ -125,0 +125,0 @@ hoveredElement: string | number;

import { PropType } from 'vue';
import { BarChartOptions } from '@/composables/options';
import type { BarChartOptions } from '@/types/options';
declare enum TYPES {

@@ -39,3 +39,3 @@ grouped = "grouped",

data: {
type: PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -68,6 +68,6 @@ validator: import("../../../composables").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -119,3 +119,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -137,3 +137,3 @@ validator: import("../../../composables").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -154,3 +154,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -171,4 +171,4 @@ "onChart-click"?: (p: MouseEvent) => any;

type: TYPES;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -175,0 +175,0 @@ orientation?: import("@/utils/constants").Orientation;

@@ -1,2 +0,2 @@

import { BarChartOptions } from '@/composables/options';
import type { BarChartOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -29,3 +29,3 @@ orientation?: {

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -58,6 +58,6 @@ validator: import("../../../composables").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -104,3 +104,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -122,3 +122,3 @@ validator: import("../../../composables").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -139,3 +139,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -155,4 +155,4 @@ "onChart-click"?: (p: MouseEvent) => any;

color: import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -159,0 +159,0 @@ orientation?: import("@/utils/constants").Orientation;

@@ -1,3 +0,3 @@

import { LineChartOptions } from '@/composables/options';
import type { LineChartOptions } from '@/types/options';
export declare const options: LineChartOptions;
//# sourceMappingURL=defaults.d.ts.map

@@ -1,2 +0,2 @@

import { LineChartOptions } from '@/composables/options';
import type { LineChartOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -29,3 +29,3 @@ orientation?: {

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -58,6 +58,6 @@ validator: import("../../../composables").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -104,3 +104,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -122,3 +122,3 @@ validator: import("../../../composables").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -139,3 +139,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -155,4 +155,4 @@ "onChart-click"?: (p: MouseEvent) => any;

color: import("../../../utils/constants").Colors | import("../../../utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -159,0 +159,0 @@ orientation?: import("../../../utils/constants").Orientation;

@@ -1,2 +0,2 @@

import { BarChartOptions } from '@/composables/options';
import type { BarChartOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -29,3 +29,3 @@ orientation?: {

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -58,6 +58,6 @@ validator: import("../../../composables").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -104,3 +104,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -122,3 +122,3 @@ validator: import("../../../composables").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -139,3 +139,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -155,4 +155,4 @@ "onChart-click"?: (p: MouseEvent) => any;

color: import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -159,0 +159,0 @@ orientation?: import("@/utils/constants").Orientation;

import { ComputedRef } from 'vue';
import { Scale } from '@/composables/scales';
import { InternalData } from '@/types/dataset';
import type { InternalData } from '@/types/dataset';
export declare function useSparklineArea(data: ComputedRef<InternalData>): {

@@ -5,0 +5,0 @@ areaPathDefinition: ComputedRef<(xScale: Scale, yScale: Scale) => string>;

@@ -1,3 +0,3 @@

import { LineChartOptions } from '@/composables/options';
import type { LineChartOptions } from '@/types/options';
export declare const options: LineChartOptions;
//# sourceMappingURL=defaults.d.ts.map

@@ -1,4 +0,4 @@

import { LineChartOptions } from '@/composables/options';
import { Data } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import type { Data } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
import type { LineChartOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -112,4 +112,4 @@ options: {

color: import("../../../utils/constants").Colors | import("../../../utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
options: LineChartOptions;

@@ -116,0 +116,0 @@ }, {}>, Partial<Record<number, (_: any) => any>>>;

@@ -1,2 +0,2 @@

import { BarChartOptions } from '@/composables/options';
import type { BarChartOptions } from '@/types/options';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -29,3 +29,3 @@ orientation?: {

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -58,6 +58,6 @@ validator: import("@/composables/base").DataValidator;

rendered: () => void;
resize: (p: import("../../../types/size").ContainerSize) => void;
resize: (p: import("../../..").ContainerSize) => void;
"hovered-index-changed": (p: import("@/types/events").HoverIndexChangedEventPayload) => void;
"update:hoveredIndex": (p: number) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => void;
"data-changed": (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => void;
"labels-changed": (p: import("@/types/events").DataChangedEventPayload<string[]>) => void;

@@ -104,3 +104,3 @@ "chart-click": (p: MouseEvent) => void;

data: {
type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
type: import("vue").PropType<import("../../..").Data<import("../../..").DatasetValue<number>>>;
required: boolean;

@@ -122,3 +122,3 @@ validator: import("@/composables/base").DataValidator;

}>> & {
onResize?: (p: import("../../../types/size").ContainerSize) => any;
onResize?: (p: import("../../..").ContainerSize) => any;
"onTooltip-mouseenter"?: () => any;

@@ -139,3 +139,3 @@ "onTooltip-mouseleave"?: () => any;

"onUpdate:hoveredIndex"?: (p: number) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>) => any;
"onData-changed"?: (p: import("@/types/events").DataChangedEventPayload<import("../../..").Data<import("../../..").DatasetValue<number>>>) => any;
"onLabels-changed"?: (p: import("@/types/events").DataChangedEventPayload<string[]>) => any;

@@ -155,4 +155,4 @@ "onChart-click"?: (p: MouseEvent) => any;

color: import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -159,0 +159,0 @@ orientation?: import("@/utils/constants").Orientation;

export { default as LumeAxis } from './lume-axis';
export * from './lume-axis/types';
export { default as LumeChart } from './lume-chart';

@@ -3,0 +4,0 @@ export { default as LumeChartContainer } from './lume-chart-container';

declare const _default: {
'x-band-scale-axis': import("../types").AxisMixin;
'y-band-scale-axis': import("../types").AxisMixin;
'x-linear-scale-axis': import("../types").AxisMixin;
'y-linear-scale-axis': import("../types").AxisMixin;
'x-band-scale-axis': import("..").AxisMixin;
'y-band-scale-axis': import("..").AxisMixin;
'x-linear-scale-axis': import("..").AxisMixin;
'y-linear-scale-axis': import("..").AxisMixin;
};
export default _default;
//# sourceMappingURL=index.d.ts.map
import { Ref } from 'vue';
import { AxisOptions } from '@/composables/options';
import { Scale } from '@/composables/scales';
import type { AxisOptions } from '@/types/options';
/**

@@ -5,0 +5,0 @@ * Composable for axis label skipping logic.

@@ -1,4 +0,4 @@

import { AxisOptions } from '@/composables/options';
import type { AxisOptions } from '@/types/options';
export declare const xOptions: AxisOptions;
export declare const yOptions: AxisOptions;
//# sourceMappingURL=defaults.d.ts.map
export { default } from './lume-axis.vue';
export * from './types';
//# sourceMappingURL=index.d.ts.map
import { PropType } from 'vue';
import { AxisOptions } from '@/composables/options';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { ContainerSize } from '@/types/size';
import type { ContainerSize } from '@/types/size';
import type { AxisOptions } from '@/types/options';
declare enum POSITIONS {

@@ -7,0 +7,0 @@ left = "left",

import type { Ref } from 'vue';
import { AxisOptions } from '@/composables/options';
import { Scale } from '@/composables/scales';
import { ContainerSize } from '@/types/size';
import type { AxisOptions } from '@/types/options';
import type { ContainerSize } from '@/types/size';
export type AxisMixinFunction = (value?: string | number | SVGTextElement, index?: number) => Record<string, string | number>;

@@ -6,0 +6,0 @@ export type AxisMixin = (scale: Ref<Scale>, containerSize: Ref<ContainerSize>, options: Ref<AxisOptions>) => Record<string, AxisMixinFunction>;

import { PropType } from 'vue';
import { InternalMargins } from '@/utils/constants';
import { ContainerSize } from '@/types/size';
import type { ContainerSize } from '@/types/size';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -5,0 +5,0 @@ margins: {

import { PropType } from 'vue';
import { InternalData } from '@/types/dataset';
import { LegendEventPayload } from '@/types/events';
import type { InternalData } from '@/types/dataset';
import type { LegendEventPayload } from '@/types/events';
import { dataValidator } from '@/utils/helpers';

@@ -5,0 +5,0 @@ declare const _default: import("vue").DefineComponent<{

import { PropType } from 'vue';
import { Scale } from '@/composables/scales';
import { ChartOptions } from '@/composables/options';
import { ChartType, Data } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import type { ChartType, Data } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
import type { ChartOptions } from '@/types/options';
declare function handleInternalHover(index: number): void;

@@ -163,4 +163,4 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

color: import("@/utils/constants").Colors | import("@/utils/constants").DivergentColors;
title: string;
labels: string[];
title: string;
hoveredIndex: number;

@@ -227,3 +227,3 @@ orientation?: import("@/utils/constants").Orientation;

handleMouseLeave: () => boolean;
options: import("@/composables/options").TooltipOptions;
options: import("@/types/options").TooltipOptions;
opened: boolean;

@@ -230,0 +230,0 @@ targetElement: Element;

import { PropType } from 'vue';
import { Placement } from '@popperjs/core';
import { TooltipOptions } from '@/composables/options';
import type { TooltipOptions } from '@/types/options';
interface TooltipItem {

@@ -5,0 +5,0 @@ color?: string;

@@ -1,3 +0,3 @@

import { AlluvialLabelMargins } from '@/types/alluvial';
import { ContainerSize } from '@/types/size';
import type { AlluvialLabelMargins } from '@/types/alluvial';
import type { ContainerSize } from '@/types/size';
export declare function useAlluvialExtents(containerSize: ContainerSize): {

@@ -4,0 +4,0 @@ extents: import("vue").Ref<{

import { ComputedRef, Ref } from 'vue';
import { AlluvialDiagramOptions } from '@/composables/options';
import { AlluvialExtents, AlluvialNode, SankeyGraph, SankeyLinkProps, SankeyNode, SankeyNodeProps } from '@/types/alluvial';
import { InternalData } from '@/types/dataset';
import type { AlluvialExtents, AlluvialNode, SankeyGraph, SankeyLinkProps, SankeyNode, SankeyNodeProps } from '@/types/alluvial';
import type { InternalData } from '@/types/dataset';
import type { AlluvialDiagramOptions } from '@/types/options';
export declare function useAlluvialGraph(data: Ref<InternalData<AlluvialNode>>, options: Ref<AlluvialDiagramOptions>, extents: Ref<AlluvialExtents>): {

@@ -6,0 +6,0 @@ columns: ComputedRef<SankeyNode<SankeyNodeProps, SankeyLinkProps>[][]>;

import { Ref } from 'vue';
import { AlluvialDiagramOptions } from '@/composables/options';
import { HighlightedElements, NodeBlock, SankeyGraph, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
import type { AlluvialDiagramOptions } from '@/types/options';
import type { HighlightedElements, NodeBlock, SankeyGraph, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
export declare function useAlluvialHover(nodeBlocks: Ref<Array<NodeBlock>>, options: Ref<AlluvialDiagramOptions>, graph: Ref<SankeyGraph<SankeyNodeProps, SankeyLinkProps>>): {

@@ -5,0 +5,0 @@ highlightedElements: import("vue").ComputedRef<HighlightedElements>;

import { SankeyNode } from 'd3-sankey';
import { LinkPath, NodeBlock, SankeyGraph, SankeyLink, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
import type { LinkPath, NodeBlock, SankeyGraph, SankeyLink, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
/**

@@ -4,0 +4,0 @@ * Gets the ID of an alluvial node.

import { PropType } from 'vue';
import { AlluvialDiagramOptions } from '@/composables/options';
import { Color } from '@/utils/constants';
import { AlluvialNode } from '@/types/alluvial';
import { AlluvialLinkEventPayload, AlluvialNodeEventPayload } from '@/types/events';
import type { AlluvialDiagramOptions } from '@/types/options';
import type { AlluvialNode } from '@/types/alluvial';
import type { AlluvialLinkEventPayload, AlluvialNodeEventPayload } from '@/types/events';
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{

@@ -12,3 +12,3 @@ hoveredElementId: {

data: {
type: PropType<import("../../../types/dataset").InternalData<AlluvialNode>>;
type: PropType<import("../../..").InternalData<AlluvialNode>>;
required: boolean;

@@ -42,3 +42,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -70,3 +70,3 @@ width: number;

data: {
type: PropType<import("../../../types/dataset").InternalData<AlluvialNode>>;
type: PropType<import("../../..").InternalData<AlluvialNode>>;
required: boolean;

@@ -100,3 +100,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -124,3 +124,3 @@ width: number;

labels: (string | number)[];
containerSize: import("../../../types/size").ContainerSize;
containerSize: import("../../..").ContainerSize;
hoveredIndex: number;

@@ -127,0 +127,0 @@ orientation: import("@/utils/constants").Orientation;

import { ComputedRef, PropType, Ref } from 'vue';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { DatasetValueObject, InternalData } from '@/types/dataset';
import type { DatasetValueObject, InternalData } from '@/types/dataset';
declare function typeValidator(type: string): boolean;

@@ -6,0 +6,0 @@ export declare function orientationValidator(orientation: string): boolean;

import { ComputedRef, Ref } from 'vue';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { Data, DatasetValueObject } from '@/types/dataset';
import type { Data, DatasetValueObject } from '@/types/dataset';
export declare function useGroupedBarMixin(data: ComputedRef<Data<DatasetValueObject<number>>>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation: Ref<Orientation>, hoveredIndex: Ref<number>, classList: Array<string>): {

@@ -6,0 +6,0 @@ barAttributeGenerator: (barValue: DatasetValueObject, index: number, groupIndex: number) => {

import { ComputedRef, Ref } from 'vue';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { Data, DatasetValueObject } from '@/types/dataset';
import type { Data, DatasetValueObject } from '@/types/dataset';
export declare function useSingleBarMixin(data: ComputedRef<Data<DatasetValueObject<number>>>, xScale: Ref<Scale>, yScale: Ref<Scale>, orientation: Ref<Orientation>, hoveredIndex: Ref<number>, classList: Array<string>): {

@@ -6,0 +6,0 @@ barAttributeGenerator: (barValue: DatasetValueObject, index: number, groupIndex: number) => {

import { ComputedRef, Ref } from 'vue';
import { BarChartOptions } from '@/composables/options';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { Data, DatasetValueObject } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import type { Data, DatasetValueObject } from '@/types/dataset';
import type { BarChartOptions } from '@/types/options';
import type { ContainerSize } from '@/types/size';
export declare function useStackedAxes(groupedData: ComputedRef<DatasetValueObject[][]>, orientation: Ref<Orientation>, options: Ref<BarChartOptions>): {

@@ -8,0 +8,0 @@ stackedXScaleGenerator: (_data: Data<import("@/types/dataset").DatasetValue<number>>, labels: Array<string>, size: ContainerSize) => Scale;

@@ -22,3 +22,3 @@ import { PropType } from 'vue';

data: {
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -31,3 +31,3 @@ };

options: {
type: PropType<import("../../../composables").Options>;
type: PropType<import("../../..").Options>;
default: () => {};

@@ -48,3 +48,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -82,3 +82,3 @@ width: number;

data: {
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -91,3 +91,3 @@ };

options: {
type: PropType<import("../../../composables").Options>;
type: PropType<import("../../..").Options>;
default: () => {};

@@ -108,3 +108,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -125,6 +125,6 @@ width: number;

labels: (string | number)[];
containerSize: import("../../../types/size").ContainerSize;
containerSize: import("../../..").ContainerSize;
hoveredIndex: number;
orientation: import("@/utils/constants").Orientation;
options: import("../../../composables").Options;
options: import("../../..").Options;
transition: boolean;

@@ -131,0 +131,0 @@ classList: string | string[];

@@ -1,2 +0,2 @@

import { LineChartOptions } from '@/composables/options';
import type { LineChartOptions } from '@/types/options';
declare const _default: import("vue").DefineComponent<{

@@ -12,3 +12,3 @@ withPoints: {

data: {
type: import("vue").PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: import("vue").PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -42,3 +42,3 @@ };

containerSize: {
type: import("vue").PropType<import("../../../types/size").ContainerSize>;
type: import("vue").PropType<import("../../..").ContainerSize>;
default: () => {

@@ -75,3 +75,3 @@ width: number;

data: {
type: import("vue").PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: import("vue").PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -105,3 +105,3 @@ };

containerSize: {
type: import("vue").PropType<import("../../../types/size").ContainerSize>;
type: import("vue").PropType<import("../../..").ContainerSize>;
default: () => {

@@ -129,5 +129,5 @@ width: number;

}, {
withPoints: boolean;
labels: (string | number)[];
withPoints: boolean;
containerSize: import("../../../types/size").ContainerSize;
containerSize: import("../../..").ContainerSize;
hoveredIndex: number;

@@ -134,0 +134,0 @@ orientation: import("../../../utils/constants").Orientation;

@@ -9,3 +9,3 @@ import { PropType } from 'vue';

data: {
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -18,3 +18,3 @@ };

options: {
type: PropType<import("../../../composables").Options>;
type: PropType<import("../../..").Options>;
default: () => {};

@@ -35,3 +35,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -63,3 +63,3 @@ width: number;

data: {
type: PropType<import("../../../types/dataset").InternalData<import("../../../types/dataset").DatasetValueObject<number>>>;
type: PropType<import("../../..").InternalData<import("../../..").DatasetValueObject<number>>>;
required: boolean;

@@ -72,3 +72,3 @@ };

options: {
type: PropType<import("../../../composables").Options>;
type: PropType<import("../../..").Options>;
default: () => {};

@@ -89,3 +89,3 @@ };

containerSize: {
type: PropType<import("../../../types/size").ContainerSize>;
type: PropType<import("../../..").ContainerSize>;
default: () => {

@@ -113,6 +113,6 @@ width: number;

labels: (string | number)[];
containerSize: import("../../../types/size").ContainerSize;
containerSize: import("../../..").ContainerSize;
hoveredIndex: number;
orientation: Orientation;
options: import("../../../composables").Options;
options: import("../../..").Options;
transition: boolean;

@@ -119,0 +119,0 @@ classList: string | string[];

@@ -9,2 +9,3 @@ export { default as LumeAlluvialDiagram } from './charts/lume-alluvial-diagram/lume-alluvial-diagram.vue';

export { default as LumeAxis } from './core/lume-axis/lume-axis.vue';
export * from './core/lume-axis/types';
export { default as LumeChart } from './core/lume-chart/lume-chart.vue';

@@ -11,0 +12,0 @@ export { default as LumeChartContainer } from './core/lume-chart-container/lume-chart-container.vue';

import { ComputedRef, PropType, Ref } from 'vue';
import { Colors, DivergentColors, Orientation } from '@/utils/constants';
import { Data, DatasetValue, DatasetValueObject, InternalData } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import { Options } from './options';
import type { Data, DatasetValue, DatasetValueObject, InternalData } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
import type { Options } from '@/types/options';
export type DataValidator = (value: Data) => boolean;

@@ -7,0 +7,0 @@ export declare const withBase: (dataValidator?: DataValidator) => {

import { PropType } from 'vue';
import { Options } from '@/composables/options';
import { orientationValidator } from '@/composables/props';
import { Scale } from '@/composables/scales';
import { Orientation } from '@/utils/constants';
import { DatasetValueObject, InternalData } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import type { DatasetValueObject, InternalData } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
import type { Options } from '@/types/options';
export declare const withGroupProps: <T extends Options = Options, K extends DatasetValueObject<number> = DatasetValueObject<number>>() => {

@@ -9,0 +9,0 @@ data: {

import { Ref } from 'vue';
import { DatasetValueObject, InternalData } from '@/types/dataset';
import type { DatasetValueObject, InternalData } from '@/types/dataset';
export declare function useLineNullValues(data: Ref<InternalData>): {

@@ -4,0 +4,0 @@ computedLineData: import("vue").ComputedRef<{

import { Ref } from 'vue';
import { Orientation } from '@/utils/constants';
import { InternalData } from '@/types/dataset';
import { ContainerSize } from '@/types/size';
import { Scale } from './scales';
import type { InternalData } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
export declare function checkNegativeValues(data: Ref<InternalData>): {

@@ -7,0 +7,0 @@ hasNegativeValues: import("vue").ComputedRef<boolean>;

import { PropType, Ref } from 'vue';
import { SankeyNode } from 'd3-sankey';
import { Format } from '@/composables/format';
import { Margins, TOOLTIP_POSITIONS } from '@/utils/constants';
import { GetHighlightedElementsFunction, SankeyLink, SankeyLinkProps, SankeyNodeProps } from '@/types/alluvial';
import { ColorPalette } from '@/types/dataset';
export interface AxisOptions extends Options {
gridLines?: boolean;
withTitle?: boolean;
title?: string;
showTicks?: boolean;
tickCount?: number;
tickFormat?: Format;
tickPadding?: number;
skip?: true | number;
}
export interface TooltipOptions extends Options {
fixedPositioning?: boolean;
inverse?: boolean;
offset?: number;
position?: (typeof TOOLTIP_POSITIONS)[number];
showTitle?: boolean;
summary?: string;
targetElement?: Element | 'self';
titleFormat?: Format;
valueFormat?: Format;
withAnimation?: boolean;
withPointerEvents?: boolean;
}
type LegendPosition = 'top' | 'bottom';
export interface ChartOptions extends Options {
margins?: Margins;
xAxisOptions?: AxisOptions;
yAxisOptions?: AxisOptions;
tooltipOptions?: TooltipOptions;
colorPalette?: ColorPalette;
startOnZero?: boolean;
withAxes?: boolean;
withHover?: boolean;
withTooltip?: boolean;
withLegend?: boolean;
legendPosition?: LegendPosition;
withTransition?: boolean;
noBaseScales?: boolean;
noMinSize?: boolean;
transparentBackground?: boolean;
}
export interface BarChartOptions extends ChartOptions {
barHeight?: number;
padding?: number;
paddingInner?: number;
paddingOuter?: number;
}
export interface LineChartOptions extends ChartOptions {
lineWidth?: number;
withPoints?: boolean;
}
export interface AlluvialDiagramOptions extends ChartOptions {
gradient?: boolean;
highlightedElements?: 'full' | 'closest' | GetHighlightedElementsFunction;
nodeAlign?: (node: SankeyNode<unknown, unknown>, n: number) => number;
nodeHeaders?: Array<string>;
nodeHeaderPadding?: number;
nodeLabelMaxWidth?: number;
nodePadding?: number;
nodeSort?: (a: SankeyNode<unknown, unknown>, b: SankeyNode<unknown, unknown>) => number | undefined | null;
nodeWidth?: number;
linkSort?: (a: SankeyLink<SankeyNodeProps, SankeyLinkProps>, b: SankeyLink<SankeyNodeProps, SankeyLinkProps>) => number | undefined | null;
iterations?: number;
switchText?: boolean;
valueFormat?: Format;
}
export type Options = Record<string, unknown>;
import type { Options } from '@/types/options';
export declare const withOptions: <T = Options>() => {

@@ -83,3 +12,2 @@ options: {

};
export {};
//# sourceMappingURL=options.d.ts.map
import { PropType } from 'vue';
import { DataValidator } from './base';
import { ChartOptions, Options } from './options';
import { Orientation } from '@/utils/constants';
import type { ChartOptions, Options } from '@/types/options';
export declare function orientationValidator(orientation: string): boolean;

@@ -33,3 +33,3 @@ export declare const withChartProps: <T extends Options = ChartOptions>(dataValidator?: DataValidator, withOrientation?: boolean) => {

data: {
type: PropType<import("../types/dataset").Data<import("../types/dataset").DatasetValue<number>>>;
type: PropType<import("..").Data<import("..").DatasetValue<number>>>;
required: boolean;

@@ -61,3 +61,3 @@ validator: DataValidator;

data: {
type: PropType<import("../types/dataset").Data<import("../types/dataset").DatasetValue<number>>>;
type: PropType<import("..").Data<import("..").DatasetValue<number>>>;
required: boolean;

@@ -64,0 +64,0 @@ validator: DataValidator;

import { PropType, Ref } from 'vue';
import { ScaleBand, ScaleLinear } from 'd3';
import { ChartOptions } from '@/composables/options';
import { Orientation } from '@/utils/constants';
import { ContainerSize } from '@/types/size';
import { InternalData } from '@/types/dataset';
import type { ContainerSize } from '@/types/size';
import type { InternalData } from '@/types/dataset';
import type { ChartOptions } from '@/types/options';
export interface ComputedScaleBand extends ScaleBand<string | number> {

@@ -8,0 +8,0 @@ labels: Array<string | number>;

import { Ref } from 'vue';
import { Scale } from './scales';
import { Orientation } from '@/utils/constants';
import { InternalData } from '@/types/dataset';
import { ChartOptions } from './options';
import type { InternalData } from '@/types/dataset';
import type { ChartOptions } from '@/types/options';
export interface AnchorAttributes {

@@ -7,0 +7,0 @@ cx: number;

export * from './components';
export * from './types';
//# sourceMappingURL=index.d.ts.map
import { CurveFactory } from 'd3';
import { SankeyGraph as D3SankeyGraph, SankeyLink as D3SankeyLink, SankeyNode as D3SankeyNode, SankeyExtraProperties } from 'd3-sankey';
import type { Dataset, DatasetValueObject } from '@/types/dataset';
import { Color } from '@/utils/constants';
import { Dataset, DatasetValueObject } from '@/types/dataset';
interface AlluvialNodeTarget {

@@ -6,0 +6,0 @@ node: string;

@@ -1,5 +0,5 @@

import { SankeyNode } from 'd3-sankey';
import { SankeyLink, SankeyLinkProps, SankeyNodeProps } from './alluvial';
import { Data, DatasetValueObject, InternalDataset } from './dataset';
import { ContainerSize } from './size';
import type { SankeyNode } from 'd3-sankey';
import type { SankeyLink, SankeyLinkProps, SankeyNodeProps } from './alluvial';
import type { Data, DatasetValueObject, InternalDataset } from './dataset';
import type { ContainerSize } from './size';
export interface AlluvialNodeEventPayload {

@@ -6,0 +6,0 @@ node: SankeyNode<SankeyNodeProps, SankeyLinkProps>;

{
"name": "@adyen/lume",
"version": "1.9.3",
"version": "1.9.4",
"description": "Lume is a Vue data visualization component library, built with Typescript and D3.",

@@ -72,3 +72,3 @@ "type": "module",

"scripts": {
"build": "NODE_ENV=production pnpm run build:vite && pnpm run build:font",
"build": "NODE_ENV=production pnpm run build:vite && pnpm run build:font && pnpm run build:types",
"build:vite": "vite build",

@@ -75,0 +75,0 @@ "build:font": "webpack",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc