@adyen/lume-vue3 1.9.4 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +5 -5
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +10 -10
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +2 -2
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +10 -10
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +10 -10
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +2 -2
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +10 -10
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +5 -5
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +2 -2
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +10 -10
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts +1 -1
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +16 -15
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +1 -1
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts +1 -1
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts +1 -1
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +13 -13
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +6 -6
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/grouped-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/single-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +5 -5
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +5 -5
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +1 -1
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/base.d.ts +1 -1
- package/dist/@types/composables/base.d.ts.map +1 -1
- package/dist/@types/composables/group-props.d.ts +1 -1
- package/dist/@types/composables/group-props.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts +2 -2
- package/dist/@types/composables/negative-values.d.ts +1 -1
- package/dist/@types/composables/negative-values.d.ts.map +1 -1
- package/dist/@types/composables/props.d.ts +5 -5
- package/dist/@types/composables/props.d.ts.map +1 -1
- package/dist/@types/composables/scales.d.ts +1 -1
- package/dist/@types/composables/scales.d.ts.map +1 -1
- package/dist/@types/composables/tooltip.d.ts +1 -1
- package/dist/@types/composables/tooltip.d.ts.map +1 -1
- package/dist/@types/types/alluvial.d.ts +1 -1
- package/dist/@types/types/alluvial.d.ts.map +1 -1
- package/dist/@types/types/dataset.d.ts +2 -3
- package/dist/@types/types/dataset.d.ts.map +1 -1
- package/dist/@types/types/index.d.ts +1 -0
- package/dist/@types/types/index.d.ts.map +1 -1
- package/dist/@types/types/options.d.ts +2 -1
- package/dist/@types/types/options.d.ts.map +1 -1
- package/dist/@types/types/utils.d.ts +115 -0
- package/dist/@types/types/utils.d.ts.map +1 -0
- package/dist/@types/utils/colors.d.ts +1 -1
- package/dist/@types/utils/colors.d.ts.map +1 -1
- package/dist/@types/utils/constants.d.ts +1 -112
- package/dist/@types/utils/constants.d.ts.map +1 -1
- package/dist/@types/utils/margins.d.ts +1 -1
- package/dist/@types/utils/margins.d.ts.map +1 -1
- package/dist/index.js +43 -39
- package/dist/index.js.map +1 -1
- package/dist/scss/_titles.scss +2 -2
- package/dist/scss/_typography.scss +2 -2
- package/dist/scss/_utilities.scss +1 -1
- package/dist/scss/_variables.scss +1 -1
- package/dist/scss/components/lume-alluvial-group.scss +1 -1
- package/dist/scss/components/lume-chart-legend.scss +3 -3
- package/dist/scss/components/lume-chart.scss +1 -1
- package/dist/scss/components/lume-line-group.scss +1 -1
- package/dist/scss/components/lume-tick.scss +3 -3
- package/dist/scss/components/lume-tooltip.scss +13 -10
- package/dist/scss/main.scss +2 -2
- package/dist/scss/variables/_colors.scss +14 -0
- package/dist/scss/variables/_spacing.scss +1 -0
- package/dist/scss/variables/_typography.scss +5 -4
- package/dist/styles/font.css +1 -1
- package/dist/styles/main.css +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare enum Colors {
|
|
2
|
+
Skyblue = "skyblue",
|
|
3
|
+
Royalblue = "royalblue",
|
|
4
|
+
Violet = "violet",
|
|
5
|
+
Darkteal = "darkteal",
|
|
6
|
+
Gold = "gold"
|
|
7
|
+
}
|
|
8
|
+
export declare enum SequentialColors {
|
|
9
|
+
Skyblue10 = "skyblue-10",
|
|
10
|
+
Skyblue20 = "skyblue-20",
|
|
11
|
+
Skyblue30 = "skyblue-30",
|
|
12
|
+
Skyblue40 = "skyblue-40",
|
|
13
|
+
Skyblue50 = "skyblue-50",
|
|
14
|
+
Skyblue60 = "skyblue-60",
|
|
15
|
+
Skyblue70 = "skyblue-70",
|
|
16
|
+
Skyblue80 = "skyblue-80",
|
|
17
|
+
Skyblue90 = "skyblue-90",
|
|
18
|
+
Skyblue100 = "skyblue-100",
|
|
19
|
+
Royalblue10 = "royalblue-10",
|
|
20
|
+
Royalblue20 = "royalblue-20",
|
|
21
|
+
Royalblue30 = "royalblue-30",
|
|
22
|
+
Royalblue40 = "royalblue-40",
|
|
23
|
+
Royalblue50 = "royalblue-50",
|
|
24
|
+
Royalblue60 = "royalblue-60",
|
|
25
|
+
Royalblue70 = "royalblue-70",
|
|
26
|
+
Royalblue80 = "royalblue-80",
|
|
27
|
+
Royalblue90 = "royalblue-90",
|
|
28
|
+
Royalblue100 = "royalblue-100",
|
|
29
|
+
Violet10 = "violet-10",
|
|
30
|
+
Violet20 = "violet-20",
|
|
31
|
+
Violet30 = "violet-30",
|
|
32
|
+
Violet40 = "violet-40",
|
|
33
|
+
Violet50 = "violet-50",
|
|
34
|
+
Violet60 = "violet-60",
|
|
35
|
+
Violet70 = "violet-70",
|
|
36
|
+
Violet80 = "violet-80",
|
|
37
|
+
Violet90 = "violet-90",
|
|
38
|
+
Violet100 = "violet-100",
|
|
39
|
+
Darkteal10 = "darkteal-10",
|
|
40
|
+
Darkteal20 = "darkteal-20",
|
|
41
|
+
Darkteal30 = "darkteal-30",
|
|
42
|
+
Darkteal40 = "darkteal-40",
|
|
43
|
+
Darkteal50 = "darkteal-50",
|
|
44
|
+
Darkteal60 = "darkteal-60",
|
|
45
|
+
Darkteal70 = "darkteal-70",
|
|
46
|
+
Darkteal80 = "darkteal-80",
|
|
47
|
+
Darkteal90 = "darkteal-90",
|
|
48
|
+
Darkteal100 = "darkteal-100",
|
|
49
|
+
Gold10 = "gold-10",
|
|
50
|
+
Gold20 = "gold-20",
|
|
51
|
+
Gold30 = "gold-30",
|
|
52
|
+
Gold40 = "gold-40",
|
|
53
|
+
Gold50 = "gold-50",
|
|
54
|
+
Gold60 = "gold-60",
|
|
55
|
+
Gold70 = "gold-70",
|
|
56
|
+
Gold80 = "gold-80",
|
|
57
|
+
Gold90 = "gold-90",
|
|
58
|
+
Gold100 = "gold-100"
|
|
59
|
+
}
|
|
60
|
+
export declare enum DivergentColors {
|
|
61
|
+
SkyTeal = "skyblue-darkteal",
|
|
62
|
+
VioletRoyal = "violet-royalblue",
|
|
63
|
+
VioletTeal = "violet-darkteal",
|
|
64
|
+
GoldTeal = "gold-darkteal",
|
|
65
|
+
GoldRoyal = "gold-royalblue"
|
|
66
|
+
}
|
|
67
|
+
export declare enum OtherColors {
|
|
68
|
+
White = "white",
|
|
69
|
+
Black = "black",
|
|
70
|
+
Green = "green",
|
|
71
|
+
Orange = "orange",
|
|
72
|
+
Red = "red",
|
|
73
|
+
Grey = "grey",
|
|
74
|
+
Grey10 = "grey-10",
|
|
75
|
+
Grey20 = "grey-20",
|
|
76
|
+
Grey30 = "grey-30",
|
|
77
|
+
Grey40 = "grey-40",
|
|
78
|
+
Grey50 = "grey-50",
|
|
79
|
+
Grey60 = "grey-60",
|
|
80
|
+
Grey70 = "grey-70",
|
|
81
|
+
Grey80 = "grey-80",
|
|
82
|
+
Grey90 = "grey-90",
|
|
83
|
+
Grey100 = "grey-100"
|
|
84
|
+
}
|
|
85
|
+
export declare enum LegacyColors {
|
|
86
|
+
'01' = "01",
|
|
87
|
+
'02' = "02",
|
|
88
|
+
'03' = "03",
|
|
89
|
+
'04' = "04",
|
|
90
|
+
'05' = "05",
|
|
91
|
+
'06' = "06",
|
|
92
|
+
'07' = "07",
|
|
93
|
+
'08' = "08",
|
|
94
|
+
'09' = "09"
|
|
95
|
+
}
|
|
96
|
+
export type Color = Colors | DivergentColors | LegacyColors | OtherColors;
|
|
97
|
+
export type Margins = 'auto' | {
|
|
98
|
+
top?: number | 'auto';
|
|
99
|
+
right?: number | 'auto';
|
|
100
|
+
bottom?: number | 'auto';
|
|
101
|
+
left?: number | 'auto';
|
|
102
|
+
};
|
|
103
|
+
export type InternalMargins = {
|
|
104
|
+
top: number;
|
|
105
|
+
right: number;
|
|
106
|
+
bottom: number;
|
|
107
|
+
left: number;
|
|
108
|
+
};
|
|
109
|
+
export type Orientation = 'horizontal' | 'vertical';
|
|
110
|
+
export type BarType = 'single' | 'grouped' | 'stacked';
|
|
111
|
+
export type BarChartVariant = `${BarType}-bar`;
|
|
112
|
+
export type BarLineChartType = BarChartVariant | 'line';
|
|
113
|
+
export type AllChartType = 'bar' | BarLineChartType | 'alluvial' | 'sparkline';
|
|
114
|
+
export type ChartTypeWithoutVariant = Exclude<AllChartType, BarChartVariant>;
|
|
115
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../lib/src/types/utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorPalette } from '@/types/dataset';
|
|
2
|
-
import { Color, Colors } from '@/utils
|
|
2
|
+
import { type Color, Colors } from '@/types/utils';
|
|
3
3
|
export declare const DEFAULT_COLOR = Colors.Skyblue;
|
|
4
4
|
export declare function computeColor(datasetColor: Color, color: Color, palette: ColorPalette, index: number): string;
|
|
5
5
|
export declare function getDataTypeClass(type?: ColorPalette): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,KAAK,KAAK,EACV,MAAM,EAKP,MAAM,eAAe,CAAC;AAKvB,eAAO,MAAM,aAAa,iBAAiB,CAAC;AA2D5C,wBAAgB,YAAY,CAC1B,YAAY,EAAE,KAAK,EACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAA8B,EACvC,KAAK,EAAE,MAAM,UAcd;AAED,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,YAA8B,UAEpE"}
|
|
@@ -1,117 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Skyblue = "skyblue",
|
|
3
|
-
Royalblue = "royalblue",
|
|
4
|
-
Violet = "violet",
|
|
5
|
-
Darkteal = "darkteal",
|
|
6
|
-
Gold = "gold"
|
|
7
|
-
}
|
|
8
|
-
export declare enum SequentialColors {
|
|
9
|
-
Skyblue10 = "skyblue-10",
|
|
10
|
-
Skyblue20 = "skyblue-20",
|
|
11
|
-
Skyblue30 = "skyblue-30",
|
|
12
|
-
Skyblue40 = "skyblue-40",
|
|
13
|
-
Skyblue50 = "skyblue-50",
|
|
14
|
-
Skyblue60 = "skyblue-60",
|
|
15
|
-
Skyblue70 = "skyblue-70",
|
|
16
|
-
Skyblue80 = "skyblue-80",
|
|
17
|
-
Skyblue90 = "skyblue-90",
|
|
18
|
-
Skyblue100 = "skyblue-100",
|
|
19
|
-
Royalblue10 = "royalblue-10",
|
|
20
|
-
Royalblue20 = "royalblue-20",
|
|
21
|
-
Royalblue30 = "royalblue-30",
|
|
22
|
-
Royalblue40 = "royalblue-40",
|
|
23
|
-
Royalblue50 = "royalblue-50",
|
|
24
|
-
Royalblue60 = "royalblue-60",
|
|
25
|
-
Royalblue70 = "royalblue-70",
|
|
26
|
-
Royalblue80 = "royalblue-80",
|
|
27
|
-
Royalblue90 = "royalblue-90",
|
|
28
|
-
Royalblue100 = "royalblue-100",
|
|
29
|
-
Violet10 = "violet-10",
|
|
30
|
-
Violet20 = "violet-20",
|
|
31
|
-
Violet30 = "violet-30",
|
|
32
|
-
Violet40 = "violet-40",
|
|
33
|
-
Violet50 = "violet-50",
|
|
34
|
-
Violet60 = "violet-60",
|
|
35
|
-
Violet70 = "violet-70",
|
|
36
|
-
Violet80 = "violet-80",
|
|
37
|
-
Violet90 = "violet-90",
|
|
38
|
-
Violet100 = "violet-100",
|
|
39
|
-
Darkteal10 = "darkteal-10",
|
|
40
|
-
Darkteal20 = "darkteal-20",
|
|
41
|
-
Darkteal30 = "darkteal-30",
|
|
42
|
-
Darkteal40 = "darkteal-40",
|
|
43
|
-
Darkteal50 = "darkteal-50",
|
|
44
|
-
Darkteal60 = "darkteal-60",
|
|
45
|
-
Darkteal70 = "darkteal-70",
|
|
46
|
-
Darkteal80 = "darkteal-80",
|
|
47
|
-
Darkteal90 = "darkteal-90",
|
|
48
|
-
Darkteal100 = "darkteal-100",
|
|
49
|
-
Gold10 = "gold-10",
|
|
50
|
-
Gold20 = "gold-20",
|
|
51
|
-
Gold30 = "gold-30",
|
|
52
|
-
Gold40 = "gold-40",
|
|
53
|
-
Gold50 = "gold-50",
|
|
54
|
-
Gold60 = "gold-60",
|
|
55
|
-
Gold70 = "gold-70",
|
|
56
|
-
Gold80 = "gold-80",
|
|
57
|
-
Gold90 = "gold-90",
|
|
58
|
-
Gold100 = "gold-100"
|
|
59
|
-
}
|
|
60
|
-
export declare enum DivergentColors {
|
|
61
|
-
SkyTeal = "skyblue-darkteal",
|
|
62
|
-
VioletRoyal = "violet-royalblue",
|
|
63
|
-
VioletTeal = "violet-darkteal",
|
|
64
|
-
GoldTeal = "gold-darkteal",
|
|
65
|
-
GoldRoyal = "gold-royalblue"
|
|
66
|
-
}
|
|
67
|
-
export declare enum OtherColors {
|
|
68
|
-
White = "white",
|
|
69
|
-
Black = "black",
|
|
70
|
-
Green = "green",
|
|
71
|
-
Orange = "orange",
|
|
72
|
-
Red = "red",
|
|
73
|
-
Grey = "grey",
|
|
74
|
-
Grey10 = "grey-10",
|
|
75
|
-
Grey20 = "grey-20",
|
|
76
|
-
Grey30 = "grey-30",
|
|
77
|
-
Grey40 = "grey-40",
|
|
78
|
-
Grey50 = "grey-50",
|
|
79
|
-
Grey60 = "grey-60",
|
|
80
|
-
Grey70 = "grey-70",
|
|
81
|
-
Grey80 = "grey-80",
|
|
82
|
-
Grey90 = "grey-90",
|
|
83
|
-
Grey100 = "grey-100"
|
|
84
|
-
}
|
|
85
|
-
export declare enum LegacyColors {
|
|
86
|
-
'01' = "01",
|
|
87
|
-
'02' = "02",
|
|
88
|
-
'03' = "03",
|
|
89
|
-
'04' = "04",
|
|
90
|
-
'05' = "05",
|
|
91
|
-
'06' = "06",
|
|
92
|
-
'07' = "07",
|
|
93
|
-
'08' = "08",
|
|
94
|
-
'09' = "09"
|
|
95
|
-
}
|
|
96
|
-
export type Color = Colors | DivergentColors | LegacyColors | OtherColors;
|
|
97
|
-
export type Margins = 'auto' | {
|
|
98
|
-
top: number | 'auto';
|
|
99
|
-
right: number | 'auto';
|
|
100
|
-
bottom: number | 'auto';
|
|
101
|
-
left: number | 'auto';
|
|
102
|
-
};
|
|
103
|
-
export type InternalMargins = {
|
|
104
|
-
top: number;
|
|
105
|
-
right: number;
|
|
106
|
-
bottom: number;
|
|
107
|
-
left: number;
|
|
108
|
-
};
|
|
109
|
-
export type Orientation = 'horizontal' | 'vertical';
|
|
1
|
+
import type { BarType, Orientation } from '../types/utils';
|
|
110
2
|
export declare const ORIENTATIONS: Record<string, Orientation>;
|
|
111
|
-
export type BarType = 'single' | 'grouped' | 'stacked';
|
|
112
3
|
export declare const BAR_TYPES: Record<string, BarType>;
|
|
113
|
-
export type ChartType = 'bar' | 'line' | 'alluvial' | 'sparkline';
|
|
114
|
-
export declare const CHART_TYPES: Record<string, ChartType>;
|
|
115
4
|
export declare const NO_DATA = "No data";
|
|
116
5
|
export declare const BAR_HEIGHT = 20;
|
|
117
6
|
export declare const PADDING_VERTICAL = 0.33;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/constants.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE3D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAGpD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAI7C,CAAC;AAEF,eAAO,MAAM,OAAO,YAAY,CAAC;AAEjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAIpC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,eAAO,MAAM,iBAAiB,2LAgBpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"margins.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/margins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"margins.d.ts","sourceRoot":"","sources":["../../../../lib/src/utils/margins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAO/D,eAAO,MAAM,eAAe;;;CAa3B,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,OAAO,UAUvD;AAED,wBAAgB,oBAAoB,CAAC,WAAW,CAAC,EAAE,OAAO,UAUzD;AAED,wBAAgB,qBAAqB,CACnC,WAAW,CAAC,EAAE,OAAO,EACrB,QAAQ,CAAC,EAAE,MAAM,UAWlB;AAED,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,UAU3E"}
|
package/dist/index.js
CHANGED
|
@@ -245,7 +245,6 @@ function Sn(e, n, t) {
|
|
|
245
245
|
}
|
|
246
246
|
return U(n, l), { showTick: i };
|
|
247
247
|
}
|
|
248
|
-
var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), dt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(mt || {});
|
|
249
248
|
const B = {
|
|
250
249
|
HORIZONTAL: "horizontal",
|
|
251
250
|
VERTICAL: "vertical"
|
|
@@ -253,7 +252,7 @@ const B = {
|
|
|
253
252
|
SINGLE: "single",
|
|
254
253
|
GROUPED: "grouped",
|
|
255
254
|
STACKED: "stacked"
|
|
256
|
-
},
|
|
255
|
+
}, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Se = 8, jn = 1, Vn = [
|
|
257
256
|
"auto",
|
|
258
257
|
"auto-start",
|
|
259
258
|
"auto-end",
|
|
@@ -273,7 +272,7 @@ const B = {
|
|
|
273
272
|
function ze(e) {
|
|
274
273
|
e != null && e.closest("svg") || ge(me.NotContainedInSvg);
|
|
275
274
|
}
|
|
276
|
-
const
|
|
275
|
+
const Kt = {
|
|
277
276
|
/** Displays a line for each tick. */
|
|
278
277
|
gridLines: !1,
|
|
279
278
|
/** Displays the axis title. */
|
|
@@ -288,13 +287,13 @@ const Jt = {
|
|
|
288
287
|
/** Formatting string/function for the tick label. */
|
|
289
288
|
tickFormat: null,
|
|
290
289
|
/** Space between the tick label and the axis line. */
|
|
291
|
-
tickPadding:
|
|
290
|
+
tickPadding: 12
|
|
292
291
|
}, Cn = {
|
|
293
|
-
...
|
|
292
|
+
...Kt,
|
|
294
293
|
withTitle: !1,
|
|
295
294
|
skip: !0
|
|
296
295
|
}, Pn = {
|
|
297
|
-
...
|
|
296
|
+
...Kt,
|
|
298
297
|
gridLines: !0
|
|
299
298
|
}, Fn = function(e, n, t) {
|
|
300
299
|
const o = v(() => e.value.step() * e.value.paddingInner() / 2);
|
|
@@ -312,7 +311,7 @@ const Jt = {
|
|
|
312
311
|
return {
|
|
313
312
|
x: -(s - e.value.step()) / 2,
|
|
314
313
|
width: s,
|
|
315
|
-
height: t.value.tickPadding +
|
|
314
|
+
height: t.value.tickPadding + Yt + Se
|
|
316
315
|
};
|
|
317
316
|
}
|
|
318
317
|
function l() {
|
|
@@ -388,7 +387,7 @@ const Jt = {
|
|
|
388
387
|
}
|
|
389
388
|
function u() {
|
|
390
389
|
return {
|
|
391
|
-
height: t.value.tickPadding +
|
|
390
|
+
height: t.value.tickPadding + Yt + Se,
|
|
392
391
|
width: o.value,
|
|
393
392
|
x: -(o.value / 2)
|
|
394
393
|
};
|
|
@@ -474,7 +473,7 @@ const Jt = {
|
|
|
474
473
|
], -1), Jn = [
|
|
475
474
|
Kn
|
|
476
475
|
];
|
|
477
|
-
var
|
|
476
|
+
var Jt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Jt || {}), Qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Qt || {}), et = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(et || {});
|
|
478
477
|
const Lt = /* @__PURE__ */ Z({
|
|
479
478
|
__name: "lume-axis",
|
|
480
479
|
props: {
|
|
@@ -490,7 +489,7 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
490
489
|
position: {
|
|
491
490
|
type: String,
|
|
492
491
|
default: void 0,
|
|
493
|
-
validator: (e) => e in
|
|
492
|
+
validator: (e) => e in Qt
|
|
494
493
|
},
|
|
495
494
|
containerSize: {
|
|
496
495
|
type: Object,
|
|
@@ -587,7 +586,7 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
587
586
|
function $e() {
|
|
588
587
|
if (!u.value)
|
|
589
588
|
return;
|
|
590
|
-
const G = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${
|
|
589
|
+
const G = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Jt[G]}`];
|
|
591
590
|
Object.entries(k(u, l, h) || []).forEach(
|
|
592
591
|
([E, _]) => {
|
|
593
592
|
r[E] = _;
|
|
@@ -710,7 +709,7 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
|
|
|
710
709
|
}, null, 46, eo));
|
|
711
710
|
}
|
|
712
711
|
});
|
|
713
|
-
const
|
|
712
|
+
const dt = /* @__PURE__ */ ee(to, [["__scopeId", "data-v-8e8f732a"]]);
|
|
714
713
|
function no() {
|
|
715
714
|
const e = S(), n = Fe({
|
|
716
715
|
dimensions: {}
|
|
@@ -797,7 +796,7 @@ const oo = ["height"], ao = ["transform"], lo = /* @__PURE__ */ Z({
|
|
|
797
796
|
], 2));
|
|
798
797
|
}
|
|
799
798
|
});
|
|
800
|
-
const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-
|
|
799
|
+
const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-c82b22db"]]), ro = ["onClick", "onMouseenter"], io = /* @__PURE__ */ Z({
|
|
801
800
|
__name: "lume-chart-legend",
|
|
802
801
|
props: {
|
|
803
802
|
data: {
|
|
@@ -816,7 +815,7 @@ const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-71442ad8"]]), ro = ["on
|
|
|
816
815
|
}, [
|
|
817
816
|
(y(!0), O(q, null, W(e.data, (u, l) => (y(), O("div", {
|
|
818
817
|
key: `legend-item-${l}`,
|
|
819
|
-
class: "lume-chart-legend__item lume-typography--
|
|
818
|
+
class: "lume-chart-legend__item lume-typography--caption",
|
|
820
819
|
tabindex: "0",
|
|
821
820
|
"data-j-chart-legend__symbol-wrapper": "",
|
|
822
821
|
onClick: (i) => t("click", { index: l, dataset: u, event: i }),
|
|
@@ -831,7 +830,7 @@ const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-71442ad8"]]), ro = ["on
|
|
|
831
830
|
], 32));
|
|
832
831
|
}
|
|
833
832
|
});
|
|
834
|
-
const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-
|
|
833
|
+
const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-6f1d1c44"]]);
|
|
835
834
|
const so = {}, co = {
|
|
836
835
|
class: "lume-tooltip__title",
|
|
837
836
|
"data-j-tooltip__title": ""
|
|
@@ -1040,20 +1039,20 @@ const To = /* @__PURE__ */ ee(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
|
|
|
1040
1039
|
}
|
|
1041
1040
|
});
|
|
1042
1041
|
const Eo = /* @__PURE__ */ ee(wo, [["__scopeId", "data-v-e7c90551"]]);
|
|
1043
|
-
var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {});
|
|
1044
|
-
const No = be.Categorical, Re = se.Skyblue, Do =
|
|
1042
|
+
var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {}), se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(mt || {}), ft = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(ft || {});
|
|
1043
|
+
const No = be.Categorical, Re = se.Skyblue, Do = vt.SkyTeal;
|
|
1045
1044
|
function Ho(e) {
|
|
1046
1045
|
return e === be.Divergent ? Do : Re;
|
|
1047
1046
|
}
|
|
1048
1047
|
function Bo(e) {
|
|
1049
|
-
return Object.values(
|
|
1048
|
+
return Object.values(ft).includes(e);
|
|
1050
1049
|
}
|
|
1051
1050
|
function xt(e, n) {
|
|
1052
|
-
return n === be.Divergent ? Object.values(
|
|
1051
|
+
return n === be.Divergent ? Object.values(vt).includes(e) : Object.values({
|
|
1053
1052
|
...se,
|
|
1054
|
-
...
|
|
1055
|
-
...
|
|
1056
|
-
...
|
|
1053
|
+
...qt,
|
|
1054
|
+
...mt,
|
|
1055
|
+
...ft
|
|
1057
1056
|
}).includes(e);
|
|
1058
1057
|
}
|
|
1059
1058
|
function Mo(e, n) {
|
|
@@ -1184,7 +1183,7 @@ function Po(e, n, t, o, a) {
|
|
|
1184
1183
|
return Ct(i), { xScale: u, yScale: l };
|
|
1185
1184
|
}
|
|
1186
1185
|
function It(e, n, t, o) {
|
|
1187
|
-
const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (t === B.HORIZONTAL ?
|
|
1186
|
+
const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (t === B.HORIZONTAL ? Xt : Ut);
|
|
1188
1187
|
return Object.assign(
|
|
1189
1188
|
Be().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
|
|
1190
1189
|
{ labels: e }
|
|
@@ -1208,7 +1207,7 @@ function Nt(e, n, {
|
|
|
1208
1207
|
paddingInner: o,
|
|
1209
1208
|
paddingOuter: a
|
|
1210
1209
|
} = {}) {
|
|
1211
|
-
const u = t ?? (n === B.HORIZONTAL ?
|
|
1210
|
+
const u = t ?? (n === B.HORIZONTAL ? Xt : Ut);
|
|
1212
1211
|
return e.copy().paddingInner(o ?? u).paddingOuter(a ?? u);
|
|
1213
1212
|
}
|
|
1214
1213
|
function en(e) {
|
|
@@ -1308,7 +1307,7 @@ const Ee = (e, n = !0) => ({
|
|
|
1308
1307
|
};
|
|
1309
1308
|
}
|
|
1310
1309
|
return (f, r) => (y(), O("g", zo, [
|
|
1311
|
-
(y(!0), O(q, null, W(c.value, (m, g) => (y(), X(d(
|
|
1310
|
+
(y(!0), O(q, null, W(c.value, (m, g) => (y(), X(d(dt), j(s(g), {
|
|
1312
1311
|
key: `overlay-${g}`,
|
|
1313
1312
|
"data-j-lume-overlay-group": g,
|
|
1314
1313
|
transition: !1,
|
|
@@ -1415,7 +1414,7 @@ function Jo(e) {
|
|
|
1415
1414
|
return {
|
|
1416
1415
|
color: ((l = u[t]) == null ? void 0 : l.color) || o,
|
|
1417
1416
|
label: a,
|
|
1418
|
-
value: ((i = u[t]) == null ? void 0 : i.label) ?? ((c = u[t]) == null ? void 0 : c.value) ??
|
|
1417
|
+
value: ((i = u[t]) == null ? void 0 : i.label) ?? ((c = u[t]) == null ? void 0 : c.value) ?? Zt
|
|
1419
1418
|
};
|
|
1420
1419
|
})
|
|
1421
1420
|
) };
|
|
@@ -1451,7 +1450,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1451
1450
|
class: "lume-chart__title lume-chart-title lume-typography--display"
|
|
1452
1451
|
}, la = { class: "lume-chart__controls" }, ua = { class: "lume-chart__header-section" }, ra = {
|
|
1453
1452
|
key: 0,
|
|
1454
|
-
class: "lume-chart__axis-title lume-axis-title lume-typography--
|
|
1453
|
+
class: "lume-chart__axis-title lume-axis-title lume-typography--caption"
|
|
1455
1454
|
}, ia = { key: 3 }, sa = ["r"], ca = {
|
|
1456
1455
|
key: 0,
|
|
1457
1456
|
class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
|
|
@@ -1531,10 +1530,10 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1531
1530
|
});
|
|
1532
1531
|
function je(T) {
|
|
1533
1532
|
var I;
|
|
1534
|
-
if (T === r.value)
|
|
1533
|
+
if (h.value.withHover === !1 || T === r.value)
|
|
1535
1534
|
return;
|
|
1536
1535
|
const L = r.value;
|
|
1537
|
-
if (
|
|
1536
|
+
if (r.value = T, h.value.withTooltip !== !1) {
|
|
1538
1537
|
const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[T];
|
|
1539
1538
|
Ze(Ye);
|
|
1540
1539
|
}
|
|
@@ -1676,7 +1675,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1676
1675
|
]),
|
|
1677
1676
|
default: C(() => [
|
|
1678
1677
|
_.value ? (y(), O(q, { key: 0 }, [
|
|
1679
|
-
d(V) ? (y(), X(d(
|
|
1678
|
+
d(V) ? (y(), X(d(dt), j({ key: 0 }, d(J), {
|
|
1680
1679
|
"class-list": "lume-fill--negative",
|
|
1681
1680
|
transition: !1,
|
|
1682
1681
|
"data-j-lume-chart__negative-values": ""
|
|
@@ -1763,7 +1762,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1763
1762
|
}, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background"]));
|
|
1764
1763
|
}
|
|
1765
1764
|
});
|
|
1766
|
-
const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-
|
|
1765
|
+
const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-4eac6847"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
|
|
1767
1766
|
__name: "lume-alluvial-node-label",
|
|
1768
1767
|
props: {
|
|
1769
1768
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -2031,7 +2030,7 @@ function ja(e, n, t) {
|
|
|
2031
2030
|
const f = v(() => {
|
|
2032
2031
|
var r;
|
|
2033
2032
|
return o.value && ((r = a.value) == null || r.forEach((m) => {
|
|
2034
|
-
m.value === 0 && (m.fallbackColor =
|
|
2033
|
+
m.value === 0 && (m.fallbackColor = mt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
|
|
2035
2034
|
})), o.value;
|
|
2036
2035
|
});
|
|
2037
2036
|
return U([l, t], () => {
|
|
@@ -2384,7 +2383,7 @@ const za = {
|
|
|
2384
2383
|
]));
|
|
2385
2384
|
}
|
|
2386
2385
|
});
|
|
2387
|
-
const nl = /* @__PURE__ */ ee(tl, [["__scopeId", "data-v-
|
|
2386
|
+
const nl = /* @__PURE__ */ ee(tl, [["__scopeId", "data-v-ea53c3da"]]), ol = {
|
|
2388
2387
|
margins: {
|
|
2389
2388
|
top: 0,
|
|
2390
2389
|
right: 0,
|
|
@@ -2770,7 +2769,7 @@ const pl = {
|
|
|
2770
2769
|
key: H,
|
|
2771
2770
|
onMouseenter: (Y) => N(H)
|
|
2772
2771
|
}, [
|
|
2773
|
-
(y(!0), O(q, null, W(w, (Y, K) => (y(), X(d(
|
|
2772
|
+
(y(!0), O(q, null, W(w, (Y, K) => (y(), X(d(dt), j(h.value(Y, K, H, w), {
|
|
2774
2773
|
key: `bar-${K}`,
|
|
2775
2774
|
transition: x.value,
|
|
2776
2775
|
"data-j-lume-bar": "",
|
|
@@ -2975,7 +2974,7 @@ const pl = {
|
|
|
2975
2974
|
}, null, 14, bl));
|
|
2976
2975
|
}
|
|
2977
2976
|
});
|
|
2978
|
-
const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-
|
|
2977
|
+
const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-59449838"]]), $l = ["cx", "cy", "r", "stroke-width"], xl = 4, Ol = /* @__PURE__ */ Z({
|
|
2979
2978
|
__name: "lume-point",
|
|
2980
2979
|
props: {
|
|
2981
2980
|
x: { type: Number, required: !0 },
|
|
@@ -3009,7 +3008,7 @@ const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-08896455"]]), $l = ["cx
|
|
|
3009
3008
|
}, null, 10, $l));
|
|
3010
3009
|
}
|
|
3011
3010
|
});
|
|
3012
|
-
const Il = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-
|
|
3011
|
+
const Il = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-436fef87"]]);
|
|
3013
3012
|
function ln(e) {
|
|
3014
3013
|
function n(u) {
|
|
3015
3014
|
let l = null;
|
|
@@ -3046,7 +3045,7 @@ function ln(e) {
|
|
|
3046
3045
|
s.length,
|
|
3047
3046
|
s.indexOf(c)
|
|
3048
3047
|
),
|
|
3049
|
-
label:
|
|
3048
|
+
label: Zt
|
|
3050
3049
|
};
|
|
3051
3050
|
}
|
|
3052
3051
|
return i;
|
|
@@ -3313,13 +3312,16 @@ const jl = {
|
|
|
3313
3312
|
const Ql = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-e9fe3992"]]);
|
|
3314
3313
|
export {
|
|
3315
3314
|
be as ColorPalette,
|
|
3315
|
+
se as Colors,
|
|
3316
|
+
vt as DivergentColors,
|
|
3317
|
+
ft as LegacyColors,
|
|
3316
3318
|
Zl as LumeAlluvialDiagram,
|
|
3317
3319
|
nl as LumeAlluvialGroup,
|
|
3318
3320
|
xa as LumeAlluvialNodeHeader,
|
|
3319
3321
|
_a as LumeAlluvialNodeLabel,
|
|
3320
3322
|
ba as LumeAlluvialNodeValue,
|
|
3321
3323
|
Lt as LumeAxis,
|
|
3322
|
-
|
|
3324
|
+
dt as LumeBar,
|
|
3323
3325
|
Ul as LumeBarChart,
|
|
3324
3326
|
gt as LumeBarGroup,
|
|
3325
3327
|
Ne as LumeChart,
|
|
@@ -3337,6 +3339,8 @@ export {
|
|
|
3337
3339
|
Eo as LumeTooltip,
|
|
3338
3340
|
To as LumeTooltipItem,
|
|
3339
3341
|
_o as LumeTooltipSummary,
|
|
3340
|
-
mo as LumeTooltipTitle
|
|
3342
|
+
mo as LumeTooltipTitle,
|
|
3343
|
+
mt as OtherColors,
|
|
3344
|
+
qt as SequentialColors
|
|
3341
3345
|
};
|
|
3342
3346
|
//# sourceMappingURL=index.js.map
|