@adyen/lume 0.1.1 → 0.1.3

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/scss/_titles.scss +3 -16
  5. package/dist/scss/{mixins/_typography.scss → _typography.scss} +9 -5
  6. package/dist/scss/main.scss +1 -0
  7. package/dist/styles/main.css +1 -1
  8. package/dist/styles/main.css.map +1 -1
  9. package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +11 -0
  10. package/dist/types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -1
  11. package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +14 -0
  12. package/dist/types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -1
  13. package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +10 -0
  14. package/dist/types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -1
  15. package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +10 -0
  16. package/dist/types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -1
  17. package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +10 -0
  18. package/dist/types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -1
  19. package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts +1 -1
  20. package/dist/types/components/charts/lume-sparkline-chart/composables/sparkline-area.d.ts.map +1 -1
  21. package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +1 -0
  22. package/dist/types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -1
  23. package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +10 -0
  24. package/dist/types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -1
  25. package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts +1 -1
  26. package/dist/types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -1
  27. package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +19 -14
  28. package/dist/types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
  29. package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +9 -0
  30. package/dist/types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
  31. package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +1 -1
  32. package/dist/types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
  33. package/dist/types/composables/options.d.ts +3 -0
  34. package/dist/types/composables/options.d.ts.map +1 -1
  35. package/dist/types/composables/props.d.ts +4 -0
  36. package/dist/types/composables/props.d.ts.map +1 -1
  37. package/dist/types/composables/scales.d.ts +1 -1
  38. package/dist/types/composables/scales.d.ts.map +1 -1
  39. package/dist/types/utils/helpers.d.ts +7 -1
  40. package/dist/types/utils/helpers.d.ts.map +1 -1
  41. package/package.json +9 -16
  42. package/dist/scss/mixins/_base.scss +0 -7
  43. package/dist/types/components/core/lume-chart/lume-chart.vue.d.ts +0 -159
  44. package/dist/types/components/core/lume-chart/lume-chart.vue.d.ts.map +0 -1
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<{
9
9
  default: import("@/constants").Orientation;
10
10
  validator: (orientation: string) => boolean;
11
11
  };
12
+ classList: {
13
+ type: import("vue").PropType<string | string[]>;
14
+ default: () => any[];
15
+ };
12
16
  options: {
13
17
  type: import("vue").PropType<BarChartOptions>;
14
18
  default: () => {};
@@ -38,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
38
42
  allOptions: import("vue").ComputedRef<BarChartOptions>;
39
43
  stackedXScaleGenerator: (_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>;
40
44
  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>;
45
+ slots: any;
41
46
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
42
47
  title: {
43
48
  type: StringConstructor;
@@ -48,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
48
53
  default: import("@/constants").Orientation;
49
54
  validator: (orientation: string) => boolean;
50
55
  };
56
+ classList: {
57
+ type: import("vue").PropType<string | string[]>;
58
+ default: () => any[];
59
+ };
51
60
  options: {
52
61
  type: import("vue").PropType<BarChartOptions>;
53
62
  default: () => {};
@@ -78,6 +87,7 @@ declare const _default: import("vue").DefineComponent<{
78
87
  title: string;
79
88
  orientation: import("@/constants").Orientation;
80
89
  options: BarChartOptions;
90
+ classList: string | string[];
81
91
  xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>;
82
92
  yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>;
83
93
  labels: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"lume-stacked-bar-chart.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAc,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASpE,wBA8BG"}
1
+ {"version":3,"file":"lume-stacked-bar-chart.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAc,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUpE,wBA+BG"}
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
45
45
  root: import("vue").Ref<SVGGElement>;
46
46
  showTick: (index: number) => boolean;
47
47
  tickRefs: import("vue").Ref<SVGTextElement[]>;
48
- ticks: import("vue").ComputedRef<any>;
48
+ ticks: import("vue").ComputedRef<(string | number)[]>;
49
49
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
50
50
  options: {
51
51
  type: PropType<AxisOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"lume-axis.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/lume-axis/lume-axis.vue.ts"],"names":[],"mappings":"AACA,OAAY,EAKV,QAAQ,EAKT,MAAM,KAAK,CAAC;AAKb,OAAO,EAAE,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAa,iBAAiB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;2BAyB9B,MAAM;;;;;2BAKN,MAAM;;;;;;;;;;;;;;;;;;uBAoED,MAAM,GAAG,MAAM;;;6BAST,MAAM;;;;;;;;;;;;;;;;;2BAlFjB,MAAM;;;;;2BAKN,MAAM;;;;;;;;;;;;;;;;;;;;AAd/B,wBA2IG"}
1
+ {"version":3,"file":"lume-axis.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/lume-axis/lume-axis.vue.ts"],"names":[],"mappings":"AACA,OAAY,EAKV,QAAQ,EAKT,MAAM,KAAK,CAAC;AAKb,OAAO,EAAE,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAa,iBAAiB,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;2BAyB9B,MAAM;;;;;2BAKN,MAAM;;;;;;;;;;;;;;;;;;uBAqED,MAAM,GAAG,MAAM;;;6BAST,MAAM;;;;;;;;;;;;;;;;;2BAnFjB,MAAM;;;;;2BAKN,MAAM;;;;;;;;;;;;;;;;;;;;AAd/B,wBA4IG"}
@@ -13,8 +13,15 @@ declare const _default: import("vue").DefineComponent<{
13
13
  default: () => {};
14
14
  };
15
15
  targetElement: {
16
- new (): Element;
17
- prototype: Element;
16
+ type: {
17
+ new (): Element;
18
+ prototype: Element;
19
+ };
20
+ required: true;
21
+ };
22
+ items: {
23
+ type: PropType<TooltipItem[]>;
24
+ required: true;
18
25
  };
19
26
  position: {
20
27
  type: PropType<Placement>;
@@ -33,10 +40,6 @@ declare const _default: import("vue").DefineComponent<{
33
40
  type: (NumberConstructor | StringConstructor)[];
34
41
  default: any;
35
42
  };
36
- items: {
37
- type: PropType<TooltipItem[]>;
38
- default: any;
39
- };
40
43
  }, {
41
44
  allModifiers: import("vue").ComputedRef<unknown[]>;
42
45
  allOptions: import("vue").ComputedRef<TooltipOptions>;
@@ -50,8 +53,15 @@ declare const _default: import("vue").DefineComponent<{
50
53
  default: () => {};
51
54
  };
52
55
  targetElement: {
53
- new (): Element;
54
- prototype: Element;
56
+ type: {
57
+ new (): Element;
58
+ prototype: Element;
59
+ };
60
+ required: true;
61
+ };
62
+ items: {
63
+ type: PropType<TooltipItem[]>;
64
+ required: true;
55
65
  };
56
66
  position: {
57
67
  type: PropType<Placement>;
@@ -70,17 +80,12 @@ declare const _default: import("vue").DefineComponent<{
70
80
  type: (NumberConstructor | StringConstructor)[];
71
81
  default: any;
72
82
  };
73
- items: {
74
- type: PropType<TooltipItem[]>;
75
- default: any;
76
- };
77
83
  }>>, {
78
84
  title: string | number;
79
85
  position: Placement;
80
- options: TooltipOptions;
81
86
  fixedPositioning: boolean;
87
+ options: TooltipOptions;
82
88
  modifiers: unknown[];
83
- items: TooltipItem[];
84
89
  }>;
85
90
  export default _default;
86
91
  //# sourceMappingURL=lume-tooltip.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lume-tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/lume-tooltip/lume-tooltip.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,QAAQ,EAER,GAAG,EAGJ,MAAM,KAAK,CAAC;AACb,OAAO,EAEL,SAAS,EACT,QAAQ,IAAI,cAAc,EAC1B,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,cAAc,EAA2B,MAAM,uBAAuB,CAAC;AAIhF,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;;;;;;;;;;;;;2BAQwB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;AAN/B,wBAyFG"}
1
+ {"version":3,"file":"lume-tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/lume-tooltip/lume-tooltip.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,QAAQ,EAER,GAAG,EAGJ,MAAM,KAAK,CAAC;AACb,OAAO,EAEL,SAAS,EACT,QAAQ,IAAI,cAAc,EAC1B,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,cAAc,EAA2B,MAAM,uBAAuB,CAAC;AAIhF,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;2BAewB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAAN,MAAM;;;;;;;;;;;;;;;;;;;;;AAb/B,wBAyGG"}
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  default: import("../../../constants").Orientation;
12
12
  validator: (orientation: string) => boolean;
13
13
  };
14
+ classList: {
15
+ type: import("vue").PropType<string | string[]>;
16
+ default: () => any[];
17
+ };
14
18
  options: {
15
19
  type: import("vue").PropType<import("../../../composables/options").ChartOptions>;
16
20
  default: () => {};
@@ -96,6 +100,10 @@ declare const _default: import("vue").DefineComponent<{
96
100
  default: import("../../../constants").Orientation;
97
101
  validator: (orientation: string) => boolean;
98
102
  };
103
+ classList: {
104
+ type: import("vue").PropType<string | string[]>;
105
+ default: () => any[];
106
+ };
99
107
  options: {
100
108
  type: import("vue").PropType<import("../../../composables/options").ChartOptions>;
101
109
  default: () => {};
@@ -126,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
126
134
  title: string;
127
135
  orientation: import("../../../constants").Orientation;
128
136
  options: import("../../../composables/options").ChartOptions;
137
+ classList: string | string[];
129
138
  xScale: import("d3-scale").ScaleBand<string | number> | import("../../../composables/scales").ScaleGenerator<import("../../../composables/scales").Scale>;
130
139
  yScale: import("d3-scale").ScaleLinear<number, number, never> | import("../../../composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>;
131
140
  labels: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"lume-alluvial-group.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-alluvial-group/lume-alluvial-group.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,GAAG,EAAgB,MAAM,KAAK,CAAC;AAa9D,OAAO,EAEL,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKvC,wBAwGG"}
1
+ {"version":3,"file":"lume-alluvial-group.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/groups/lume-alluvial-group/lume-alluvial-group.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,GAAG,EAAgB,MAAM,KAAK,CAAC;AAa9D,OAAO,EAEL,iBAAiB,EAElB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKvC,wBAwGG"}
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- import { ScaleBand } from 'd3-scale';
2
+ import { ScaleBand } from 'd3';
3
3
  import { Scale } from '@/composables/scales';
4
4
  import { Orientation } from '@/constants';
5
5
  import { Data, DatasetValueObject } from '@/types/dataset';
@@ -1 +1 @@
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,UAAU,CAAC;AAE7D,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
+ {"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"}
@@ -15,6 +15,8 @@ export interface TooltipOptions extends Options {
15
15
  offset?: number;
16
16
  position?: typeof TOOLTIP_POSITIONS[number];
17
17
  showTitle?: boolean;
18
+ targetElement?: Element | 'self';
19
+ fixedPositioning?: boolean;
18
20
  }
19
21
  declare type LegendPosition = 'top' | 'bottom';
20
22
  export interface ChartOptions extends Options {
@@ -30,6 +32,7 @@ export interface ChartOptions extends Options {
30
32
  withTransition?: boolean;
31
33
  noBaseScales?: boolean;
32
34
  noMinSize?: boolean;
35
+ transparentBackground?: boolean;
33
36
  }
34
37
  export interface BarChartOptions extends ChartOptions {
35
38
  padding?: number;
@@ -1 +1 @@
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,C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vC,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"}
@@ -13,6 +13,10 @@ export declare const withChartProps: <T extends Options = ChartOptions>(dataVali
13
13
  default: Orientation;
14
14
  validator: typeof orientationValidator;
15
15
  };
16
+ classList: {
17
+ type: PropType<string | string[]>;
18
+ default: () => any[];
19
+ };
16
20
  options: {
17
21
  type: PropType<T>;
18
22
  default: () => {};
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc3B,CAAC"}
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,5 +1,5 @@
1
1
  import { PropType, Ref } from 'vue';
2
- import { ScaleBand, ScaleLinear } from 'd3-scale';
2
+ import { ScaleBand, ScaleLinear } from 'd3';
3
3
  import { ChartOptions } from '@/composables/options';
4
4
  import { Orientation } from '@/constants';
5
5
  import { ContainerSize } from '@/types/size';
@@ -1 +1 @@
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,UAAU,CAAC;AAG1E,OAAO,EAAE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,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,9 +1,10 @@
1
1
  import { Ref } from 'vue';
2
- import { ScaleBand } from 'd3-scale';
2
+ import { ScaleBand } from 'd3';
3
3
  import { SankeyNode } from 'd3-sankey';
4
4
  import { SankeyLinkAdditionalProperties, SankeyNodeAdditionalProperties } from '@/types/alluvial';
5
5
  import { Data, DatasetValueObject, InternalData } from '@/types/dataset';
6
6
  import { Scale } from '@/composables/scales';
7
+ import { Slots } from 'vue/types/v3-setup-context';
7
8
  export declare function isProd(): boolean;
8
9
  /**
9
10
  * Returns an array with all numeric values present in a chart's `data` (array of datasets).
@@ -89,4 +90,9 @@ export declare function isNodeOrLinkFaded(id: string, highlightedIds: Array<stri
89
90
  * @returns A same length array with its items moved.
90
91
  */
91
92
  export declare function shiftItems(array: Array<unknown>, amount: number, toRight?: boolean): unknown[];
93
+ /**
94
+ * @param slots
95
+ * @returns all slots except the groups
96
+ */
97
+ export declare function excludeGroups(slots: Slots): any;
92
98
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,GAAG,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,I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BAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,OASzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/lume",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Lume is a component library for visual representations of data, built for Vue with D3.",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
@@ -58,11 +58,8 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@popperjs/core": "^2.11.4",
61
- "d3-array": "^2.12.1",
62
- "d3-format": "^1.4.5",
63
- "d3-sankey": "^0.12.3",
64
- "d3-scale": "^4.0.2",
65
- "d3-shape": "^2.1.0"
61
+ "d3": "7.6.1",
62
+ "d3-sankey": "0.12.3"
66
63
  },
67
64
  "peerDependencies": {
68
65
  "vue": "^2.7.8"
@@ -76,25 +73,22 @@
76
73
  "@storybook/manager-webpack5": "^6.5.4",
77
74
  "@storybook/theming": "^6.5.4",
78
75
  "@storybook/vue": "^6.5.12",
79
- "@types/d3-format": "^3.0.1",
76
+ "@types/d3": "^7.4.0",
80
77
  "@types/d3-sankey": "^0.11.2",
81
- "@types/d3-scale": "^4.0.2",
82
- "@types/d3-shape": "^3.1.0",
83
- "@types/jest": "^27.5.0",
84
- "@types/node": "^17.0.35",
78
+ "@types/jest": "^29.2.0",
79
+ "@types/node": "^18.11.5",
85
80
  "@typescript-eslint/eslint-plugin": "^5.17.0",
86
81
  "@typescript-eslint/parser": "^5.17.0",
87
82
  "@vue/test-utils": "^1.1.3",
88
- "babel-core": "^7.0.0-bridge.0",
89
- "babel-jest": "^29.2.0",
83
+ "@vue/vue2-jest": "^29.1.1",
90
84
  "copy-webpack-plugin": "^11.0.0",
91
85
  "css-loader": "^6.7.1",
92
86
  "eslint": "^8.12.0",
93
87
  "eslint-plugin-vue": "^9.2.0",
94
88
  "file-loader": "^6.2.0",
95
89
  "identity-obj-proxy": "^3.0.0",
96
- "jest": "^29.2.1",
97
- "jest-environment-jsdom": "^29.2.0",
90
+ "jest": "^29.2.2",
91
+ "jest-environment-jsdom": "^29.2.2",
98
92
  "mini-css-extract-plugin": "^2.5.3",
99
93
  "prettier": "^2.7.1",
100
94
  "resize-observer-polyfill": "^1.5.1",
@@ -105,7 +99,6 @@
105
99
  "ts-jest": "^29.0.3",
106
100
  "typescript": "^4.6.3",
107
101
  "vue-hot-reload-api": "^2.3.4",
108
- "vue-jest": "^3.0.7",
109
102
  "vue-loader": "^15.10.0",
110
103
  "vue-style-loader": "^4.1.3",
111
104
  "vue-template-compiler": "^2.7.8",
@@ -1,7 +0,0 @@
1
- @use '../variables/typography' as *;
2
-
3
- @mixin base {
4
- font-family: $lume-font-family, system-ui, -apple-system, BlinkMacSystemFont,
5
- 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
6
- sans-serif;
7
- }
@@ -1,159 +0,0 @@
1
- import { Scale } from '@/composables/scales';
2
- import { ChartOptions } from '@/composables/options';
3
- import { getEmptyArrayFromData } from '@/utils/helpers';
4
- declare const _default: import("vue").DefineComponent<{
5
- chartType: {
6
- type: StringConstructor;
7
- default: any;
8
- };
9
- title: {
10
- type: StringConstructor;
11
- default: any;
12
- };
13
- orientation: {
14
- type: import("vue").PropType<import("@/constants").Orientation>;
15
- default: import("@/constants").Orientation;
16
- validator: (orientation: string) => boolean;
17
- };
18
- options: {
19
- type: import("vue").PropType<ChartOptions>;
20
- default: () => {};
21
- };
22
- xScale: {
23
- type: import("vue").PropType<import("d3-scale").ScaleBand<string | number> | import("@/composables/scales").ScaleGenerator<Scale>>;
24
- default: any;
25
- };
26
- yScale: {
27
- type: import("vue").PropType<import("d3-scale").ScaleLinear<number, number, never> | import("@/composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>>;
28
- default: any;
29
- };
30
- data: {
31
- type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
32
- required: boolean;
33
- validator: import("@/composables/base").DataValidator;
34
- };
35
- labels: {
36
- type: import("vue").PropType<string[]>;
37
- default: any;
38
- };
39
- color: {
40
- type: import("vue").PropType<import("@/constants").Colors | import("@/constants").DivergentColors>;
41
- default: import("@/constants").Colors;
42
- };
43
- }, {
44
- allOptions: import("vue").ComputedRef<ChartOptions>;
45
- internalData: import("vue").ComputedRef<import("../../../types/dataset").InternalData>;
46
- computedLabels: import("vue").ComputedRef<string[] | number[]>;
47
- computedXAxisOptions: import("vue").ComputedRef<{
48
- withHover: boolean;
49
- gridLines?: boolean;
50
- withTitle?: boolean;
51
- title?: string;
52
- showTicks?: boolean;
53
- tickCount?: number;
54
- tickFormat?: string | (() => string);
55
- tickPadding?: number;
56
- skip?: number | true;
57
- }>;
58
- computedXScale: import("vue").ComputedRef<Scale>;
59
- computedYAxisOptions: import("vue").ComputedRef<{
60
- withHover: boolean;
61
- gridLines?: boolean;
62
- withTitle?: boolean;
63
- title?: string;
64
- showTicks?: boolean;
65
- tickCount?: number;
66
- tickFormat?: string | (() => string);
67
- tickPadding?: number;
68
- skip?: number | true;
69
- }>;
70
- computedYScale: import("vue").ComputedRef<Scale>;
71
- containerSize: {
72
- width: number;
73
- height: number;
74
- };
75
- getEmptyArrayFromData: typeof getEmptyArrayFromData;
76
- getTooltipAnchorAttributes: import("vue").ComputedRef<(index: number) => {
77
- cx: number;
78
- cy: number;
79
- }>;
80
- getTooltipItems: (index: number) => {
81
- type: "bar" | "line";
82
- color: string;
83
- label: string;
84
- value: string | number;
85
- }[];
86
- handleMouseleave: () => void;
87
- handleTickMouseover: (type: 'x' | 'y', index: number) => void;
88
- hasNegativeValues: import("vue").ComputedRef<boolean>;
89
- hoveredIndex: import("vue").Ref<number>;
90
- isReady: import("vue").ComputedRef<boolean>;
91
- mouseOverHandler: (index: number) => void;
92
- negativeBarAttributes: import("vue").ComputedRef<{
93
- width: number;
94
- height: number;
95
- transform: string;
96
- }>;
97
- showXAxisTitle: import("vue").ComputedRef<string>;
98
- showYAxisTitle: import("vue").ComputedRef<string>;
99
- tooltipAnchor: import("vue").Ref<SVGCircleElement>;
100
- tooltipAnchorRadius: number;
101
- tooltipConfig: {
102
- opened: boolean;
103
- targetElement: Element;
104
- };
105
- tooltipPosition: import("vue").ComputedRef<"auto" | "auto-start" | "auto-end" | "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
106
- updateSize: (size: import("../../../types/size").ContainerSize) => void;
107
- xAxisTitle: import("vue").ComputedRef<string>;
108
- yAxisTitle: import("vue").ComputedRef<string>;
109
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
110
- chartType: {
111
- type: StringConstructor;
112
- default: any;
113
- };
114
- title: {
115
- type: StringConstructor;
116
- default: any;
117
- };
118
- orientation: {
119
- type: import("vue").PropType<import("@/constants").Orientation>;
120
- default: import("@/constants").Orientation;
121
- validator: (orientation: string) => boolean;
122
- };
123
- options: {
124
- type: import("vue").PropType<ChartOptions>;
125
- default: () => {};
126
- };
127
- xScale: {
128
- type: import("vue").PropType<import("d3-scale").ScaleBand<string | number> | import("@/composables/scales").ScaleGenerator<Scale>>;
129
- default: any;
130
- };
131
- yScale: {
132
- type: import("vue").PropType<import("d3-scale").ScaleLinear<number, number, never> | import("@/composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>>;
133
- default: any;
134
- };
135
- data: {
136
- type: import("vue").PropType<import("../../../types/dataset").Data<import("../../../types/dataset").DatasetValue<number>>>;
137
- required: boolean;
138
- validator: import("@/composables/base").DataValidator;
139
- };
140
- labels: {
141
- type: import("vue").PropType<string[]>;
142
- default: any;
143
- };
144
- color: {
145
- type: import("vue").PropType<import("@/constants").Colors | import("@/constants").DivergentColors>;
146
- default: import("@/constants").Colors;
147
- };
148
- }>>, {
149
- color: import("@/constants").Colors | import("@/constants").DivergentColors;
150
- title: string;
151
- orientation: import("@/constants").Orientation;
152
- options: ChartOptions;
153
- xScale: import("d3-scale").ScaleBand<string | number> | import("@/composables/scales").ScaleGenerator<Scale>;
154
- yScale: import("d3-scale").ScaleLinear<number, number, never> | import("@/composables/scales").ScaleGenerator<import("d3-scale").ScaleLinear<number, number, never>>;
155
- chartType: string;
156
- labels: string[];
157
- }>;
158
- export default _default;
159
- //# sourceMappingURL=lume-chart.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lume-chart.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/lume-chart/lume-chart.vue.ts"],"names":[],"mappings":"AAcA,OAAO,EAAW,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAc,MAAM,uBAAuB,CAAC;AAOjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAmIjB,GAAG,GAAG,GAAG,SAAS,MAAM;;;;8BAT1B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvH3C,wBAmLG"}