@adyen/lume
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -12,2 +12,6 @@ import { ChartOptions } from '@/composables/options'; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -53,3 +57,5 @@ type: import("vue").PropType<ChartOptions>; | ||
noMinSize?: boolean; | ||
transparentBackground?: boolean; | ||
}; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -65,2 +71,6 @@ title: { | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -96,2 +106,3 @@ type: import("vue").PropType<ChartOptions>; | ||
options: ChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -98,0 +109,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
@@ -22,2 +22,6 @@ import { PropType } from 'vue'; | ||
}; | ||
classList: { | ||
type: PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -54,4 +58,9 @@ type: PropType<BarChartOptions>; | ||
position: string; | ||
offset?: number; | ||
showTitle?: boolean; | ||
targetElement?: Element | "self"; | ||
fixedPositioning?: boolean; | ||
}; | ||
}; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -72,2 +81,6 @@ type: { | ||
}; | ||
classList: { | ||
type: PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -104,2 +117,3 @@ type: PropType<BarChartOptions>; | ||
options: BarChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -106,0 +120,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
@@ -12,2 +12,6 @@ import { BarChartOptions } from '@/composables/options'; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -40,2 +44,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
allOptions: import("vue").ComputedRef<BarChartOptions>; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -51,2 +56,6 @@ title: { | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -82,2 +91,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
options: BarChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -84,0 +94,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
@@ -11,2 +11,6 @@ declare const _default: import("vue").DefineComponent<{ | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -39,2 +43,3 @@ type: import("vue").PropType<import("@/composables/options").ChartOptions>; | ||
allOptions: import("vue").ComputedRef<import("@/composables/options").ChartOptions>; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -50,2 +55,6 @@ title: { | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -81,2 +90,3 @@ type: import("vue").PropType<import("@/composables/options").ChartOptions>; | ||
options: import("@/composables/options").ChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -83,0 +93,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
@@ -12,2 +12,6 @@ import { BarChartOptions } from '@/composables/options'; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -40,2 +44,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
allOptions: import("vue").ComputedRef<BarChartOptions>; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -51,2 +56,6 @@ title: { | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -82,2 +91,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
options: BarChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -84,0 +94,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
import { ComputedRef } from 'vue'; | ||
import { ScaleLinear } from 'd3-scale'; | ||
import { ScaleLinear } from 'd3'; | ||
import { InternalData } from '@/types/dataset'; | ||
@@ -4,0 +4,0 @@ export declare function useSparklineArea(data: ComputedRef<InternalData>): { |
@@ -31,2 +31,3 @@ import { Options } from '@/composables/options'; | ||
xScaleGenerator: (data: Data<import("@/types/dataset").DatasetValue<number>>, _labels: Array<string>, size: ContainerSize) => import("d3-scale").ScaleLinear<number, number, never>; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -33,0 +34,0 @@ options: { |
@@ -12,2 +12,6 @@ import { BarChartOptions } from '@/composables/options'; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -42,2 +46,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
stackedYScaleGenerator: (_data: import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>, labels: string[], size: import("../../../types/size").ContainerSize) => import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleBand<string | number>; | ||
slots: any; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -53,2 +58,6 @@ title: { | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -84,2 +93,3 @@ type: import("vue").PropType<BarChartOptions>; | ||
options: BarChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -86,0 +96,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
@@ -48,3 +48,3 @@ import { PropType } from 'vue'; | ||
tickRefs: import("vue").Ref<SVGTextElement[]>; | ||
ticks: import("vue").ComputedRef<any>; | ||
ticks: import("vue").ComputedRef<(string | number)[]>; | ||
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{ | ||
@@ -51,0 +51,0 @@ options: { |
@@ -80,4 +80,4 @@ import { PropType, Ref } from 'vue'; | ||
position: Placement; | ||
fixedPositioning: boolean; | ||
options: TooltipOptions; | ||
fixedPositioning: boolean; | ||
modifiers: unknown[]; | ||
@@ -84,0 +84,0 @@ items: TooltipItem[]; |
@@ -14,2 +14,6 @@ import { Ref } from 'vue'; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -100,2 +104,6 @@ type: import("vue").PropType<import("../../../composables/options").ChartOptions>; | ||
}; | ||
classList: { | ||
type: import("vue").PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -131,2 +139,3 @@ type: import("vue").PropType<import("../../../composables/options").ChartOptions>; | ||
options: import("../../../composables/options").ChartOptions; | ||
classList: string | string[]; | ||
xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>; | ||
@@ -133,0 +142,0 @@ yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>; |
import { ComputedRef, Ref } from 'vue'; | ||
import { ScaleBand } from 'd3-scale'; | ||
import { ScaleBand } from 'd3'; | ||
import { Scale } from '@/composables/scales'; | ||
@@ -4,0 +4,0 @@ import { Orientation } from '@/constants'; |
@@ -18,2 +18,4 @@ import { PropType, Ref } from 'vue'; | ||
showTitle?: boolean; | ||
targetElement?: Element | 'self'; | ||
fixedPositioning?: boolean; | ||
} | ||
@@ -34,2 +36,3 @@ declare type LegendPosition = 'top' | 'bottom'; | ||
noMinSize?: boolean; | ||
transparentBackground?: boolean; | ||
} | ||
@@ -36,0 +39,0 @@ export interface BarChartOptions extends ChartOptions { |
@@ -16,2 +16,6 @@ import { PropType } from 'vue'; | ||
}; | ||
classList: { | ||
type: PropType<string | string[]>; | ||
default: () => any[]; | ||
}; | ||
options: { | ||
@@ -18,0 +22,0 @@ type: PropType<T>; |
import { PropType, Ref } from 'vue'; | ||
import { ScaleBand, ScaleLinear } from 'd3-scale'; | ||
import { ScaleBand, ScaleLinear } from 'd3'; | ||
import { ChartOptions } from '@/composables/options'; | ||
@@ -4,0 +4,0 @@ import { Orientation } from '@/constants'; |
import { Ref } from 'vue'; | ||
import { ScaleBand } from 'd3-scale'; | ||
import { ScaleBand } from 'd3'; | ||
import { SankeyNode } from 'd3-sankey'; | ||
@@ -7,2 +7,3 @@ import { SankeyLinkAdditionalProperties, SankeyNodeAdditionalProperties } from '@/types/alluvial'; | ||
import { Scale } from '@/composables/scales'; | ||
import { Slots } from 'vue/types/v3-setup-context'; | ||
export declare function isProd(): boolean; | ||
@@ -93,2 +94,7 @@ /** | ||
export declare function shiftItems(array: Array<unknown>, amount: number, toRight?: boolean): unknown[]; | ||
/** | ||
* @param slots | ||
* @returns all slots except the groups | ||
*/ | ||
export declare function excludeGroups(slots: Slots): any; | ||
//# sourceMappingURL=helpers.d.ts.map |
{ | ||
"name": "@adyen/lume", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Lume is a component library for visual representations of data, built for Vue with D3.", | ||
@@ -61,7 +61,4 @@ "type": "module", | ||
"@popperjs/core": "^2.11.4", | ||
"d3-array": "^2.12.1", | ||
"d3-format": "^1.4.5", | ||
"d3-sankey": "^0.12.3", | ||
"d3-scale": "^4.0.2", | ||
"d3-shape": "^2.1.0" | ||
"d3": "^6.6.2", | ||
"d3-sankey": "^0.12.3" | ||
}, | ||
@@ -80,13 +77,10 @@ "peerDependencies": { | ||
"@storybook/vue": "^6.5.12", | ||
"@types/d3-format": "^3.0.1", | ||
"@types/d3": "^7.4.0", | ||
"@types/d3-sankey": "^0.11.2", | ||
"@types/d3-scale": "^4.0.2", | ||
"@types/d3-shape": "^3.1.0", | ||
"@types/jest": "^27.5.0", | ||
"@types/node": "^17.0.35", | ||
"@types/jest": "^29.2.0", | ||
"@types/node": "^18.11.5", | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"@vue/test-utils": "^1.1.3", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^29.2.0", | ||
"@vue/vue2-jest": "^29.1.1", | ||
"copy-webpack-plugin": "^11.0.0", | ||
@@ -98,4 +92,4 @@ "css-loader": "^6.7.1", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.2.1", | ||
"jest-environment-jsdom": "^29.2.0", | ||
"jest": "^29.2.2", | ||
"jest-environment-jsdom": "^29.2.2", | ||
"mini-css-extract-plugin": "^2.5.3", | ||
@@ -111,3 +105,2 @@ "prettier": "^2.7.1", | ||
"vue-hot-reload-api": "^2.3.4", | ||
"vue-jest": "^3.0.7", | ||
"vue-loader": "^15.10.0", | ||
@@ -114,0 +107,0 @@ "vue-style-loader": "^4.1.3", |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1716051
4
41
212
3318
+ Addedd3@^6.6.2
+ Addedcommander@2.20.3(transitive)
+ Addedd3@6.7.0(transitive)
+ Addedd3-axis@2.1.0(transitive)
+ Addedd3-brush@2.1.0(transitive)
+ Addedd3-chord@2.0.0(transitive)
+ Addedd3-color@2.0.0(transitive)
+ Addedd3-contour@2.0.0(transitive)
+ Addedd3-delaunay@5.3.0(transitive)
+ Addedd3-dispatch@2.0.0(transitive)
+ Addedd3-drag@2.0.0(transitive)
+ Addedd3-dsv@2.0.0(transitive)
+ Addedd3-ease@2.0.0(transitive)
+ Addedd3-fetch@2.0.0(transitive)
+ Addedd3-force@2.1.1(transitive)
+ Addedd3-format@2.0.0(transitive)
+ Addedd3-geo@2.0.2(transitive)
+ Addedd3-hierarchy@2.0.0(transitive)
+ Addedd3-interpolate@2.0.1(transitive)
+ Addedd3-path@2.0.0(transitive)
+ Addedd3-polygon@2.0.0(transitive)
+ Addedd3-quadtree@2.0.0(transitive)
+ Addedd3-random@2.2.2(transitive)
+ Addedd3-scale@3.3.0(transitive)
+ Addedd3-scale-chromatic@2.0.0(transitive)
+ Addedd3-selection@2.0.0(transitive)
+ Addedd3-time@2.1.1(transitive)
+ Addedd3-time-format@3.0.0(transitive)
+ Addedd3-timer@2.0.0(transitive)
+ Addedd3-transition@2.0.0(transitive)
+ Addedd3-zoom@2.0.0(transitive)
+ Addeddelaunator@4.0.1(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedrw@1.3.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
- Removedd3-array@^2.12.1
- Removedd3-format@^1.4.5
- Removedd3-scale@^4.0.2
- Removedd3-shape@^2.1.0
- Removedd3-color@3.1.0(transitive)
- Removedd3-format@1.4.5(transitive)
- Removedd3-interpolate@3.0.1(transitive)
- Removedd3-scale@4.0.2(transitive)
- Removedd3-time@3.1.0(transitive)
- Removedd3-time-format@4.1.0(transitive)