@xola/ui-kit 3.5.0 → 3.6.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/README.md +48 -78
- package/build/style.css +1 -0
- package/build/theme.css +76 -0
- package/build/ui-kit.es.js +16771 -0
- package/index.css +96 -4
- package/index.d.ts +151 -0
- package/package.json +68 -89
- package/postcss.config.js +1 -1
- package/tailwind.config.js +10 -11
- package/build/base.css +0 -2
- package/build/components/Alert.d.ts +0 -18
- package/build/components/Alert.js +0 -24
- package/build/components/Animation/FadeIn.d.ts +0 -13
- package/build/components/Animation/FadeIn.js +0 -29
- package/build/components/Animation/SlideDown.d.ts +0 -6
- package/build/components/Animation/SlideDown.js +0 -20
- package/build/components/Avatar.d.ts +0 -16
- package/build/components/Avatar.js +0 -21
- package/build/components/Badge.d.ts +0 -28
- package/build/components/Badge.js +0 -42
- package/build/components/Breadcrumb.d.ts +0 -21
- package/build/components/Breadcrumb.js +0 -27
- package/build/components/Breakdown.d.ts +0 -63
- package/build/components/Breakdown.js +0 -89
- package/build/components/Buttons/Button.d.ts +0 -53
- package/build/components/Buttons/Button.js +0 -83
- package/build/components/Buttons/ButtonGroup.d.ts +0 -35
- package/build/components/Buttons/ButtonGroup.js +0 -55
- package/build/components/Buttons/SubmitButton.d.ts +0 -11
- package/build/components/Buttons/SubmitButton.js +0 -83
- package/build/components/Buttons/ToggleButton.d.ts +0 -21
- package/build/components/Buttons/ToggleButton.js +0 -34
- package/build/components/Charts/BaseChartOptions.d.ts +0 -136
- package/build/components/Charts/BaseChartOptions.js +0 -95
- package/build/components/Charts/HistogramOptions.d.ts +0 -192
- package/build/components/Charts/HistogramOptions.js +0 -69
- package/build/components/Charts/PieOptions.d.ts +0 -177
- package/build/components/Charts/PieOptions.js +0 -55
- package/build/components/Counter.d.ts +0 -5
- package/build/components/Counter.js +0 -16
- package/build/components/DatePicker/DatePicker.d.ts +0 -41
- package/build/components/DatePicker/DatePicker.helpers.d.ts +0 -17
- package/build/components/DatePicker/DatePicker.helpers.js +0 -22
- package/build/components/DatePicker/DatePicker.js +0 -241
- package/build/components/DatePicker/DatePickerPopover.d.ts +0 -29
- package/build/components/DatePicker/DatePickerPopover.js +0 -81
- package/build/components/DatePicker/Day.d.ts +0 -13
- package/build/components/DatePicker/Day.js +0 -40
- package/build/components/DatePicker/LocalizedDayPicker.d.ts +0 -6
- package/build/components/DatePicker/LocalizedDayPicker.js +0 -20
- package/build/components/DatePicker/MonthGrid.d.ts +0 -11
- package/build/components/DatePicker/MonthGrid.js +0 -52
- package/build/components/DatePicker/MonthPicker.d.ts +0 -7
- package/build/components/DatePicker/MonthPicker.js +0 -28
- package/build/components/DatePicker/MonthSelector.d.ts +0 -8
- package/build/components/DatePicker/MonthSelector.js +0 -47
- package/build/components/DatePicker/MonthYearSelector.d.ts +0 -8
- package/build/components/DatePicker/MonthYearSelector.js +0 -44
- package/build/components/DatePicker/NavbarElement.d.ts +0 -15
- package/build/components/DatePicker/NavbarElement.js +0 -43
- package/build/components/DatePicker/RangeDatePicker.d.ts +0 -25
- package/build/components/DatePicker/RangeDatePicker.js +0 -130
- package/build/components/DatePicker/RelativeDateRange.d.ts +0 -51
- package/build/components/DatePicker/RelativeDateRange.js +0 -280
- package/build/components/DatePicker/UpcomingDatePicker.d.ts +0 -11
- package/build/components/DatePicker/UpcomingDatePicker.js +0 -27
- package/build/components/Dot/Dot.d.ts +0 -24
- package/build/components/Dot/Dot.js +0 -24
- package/build/components/Dot/DotProgress.d.ts +0 -6
- package/build/components/Dot/DotProgress.js +0 -10
- package/build/components/Drawer.d.ts +0 -28
- package/build/components/Drawer.js +0 -126
- package/build/components/Forms/BaseInput.d.ts +0 -20
- package/build/components/Forms/BaseInput.js +0 -41
- package/build/components/Forms/Checkbox.d.ts +0 -10
- package/build/components/Forms/Checkbox.js +0 -34
- package/build/components/Forms/Checkbox.module.css.js +0 -7
- package/build/components/Forms/ComboBox.d.ts +0 -8
- package/build/components/Forms/ComboBox.js +0 -41
- package/build/components/Forms/FormGroup.d.ts +0 -5
- package/build/components/Forms/FormGroup.js +0 -6
- package/build/components/Forms/InlineValuePopover.d.ts +0 -17
- package/build/components/Forms/InlineValuePopover.js +0 -47
- package/build/components/Forms/Input.d.ts +0 -6
- package/build/components/Forms/Input.js +0 -9
- package/build/components/Forms/Label.d.ts +0 -7
- package/build/components/Forms/Label.js +0 -17
- package/build/components/Forms/RangeSlider.d.ts +0 -33
- package/build/components/Forms/RangeSlider.js +0 -39
- package/build/components/Forms/Select.d.ts +0 -5
- package/build/components/Forms/Select.js +0 -8
- package/build/components/Forms/Switch.d.ts +0 -46
- package/build/components/Forms/Switch.js +0 -62
- package/build/components/Forms/Textarea.d.ts +0 -6
- package/build/components/Forms/Textarea.js +0 -35
- package/build/components/Forms/ValuePopoverText.d.ts +0 -6
- package/build/components/Forms/ValuePopoverText.js +0 -10
- package/build/components/GooglePlacesAutocomplete.d.ts +0 -14
- package/build/components/HeaderToolbar.d.ts +0 -21
- package/build/components/HeaderToolbar.js +0 -33
- package/build/components/ImageUpload.d.ts +0 -17
- package/build/components/ImageUpload.js +0 -86
- package/build/components/Key.d.ts +0 -6
- package/build/components/Key.js +0 -28
- package/build/components/Logo.d.ts +0 -19
- package/build/components/Logo.js +0 -10
- package/build/components/Modal.d.ts +0 -52
- package/build/components/Modal.js +0 -126
- package/build/components/Popover/Popover.d.ts +0 -20
- package/build/components/Popover/Popover.js +0 -44
- package/build/components/Popover/Popover.module.css.js +0 -7
- package/build/components/Popover/PopoverList.d.ts +0 -25
- package/build/components/Popover/PopoverList.js +0 -50
- package/build/components/Popover/PopoverScroll.module.css.js +0 -4
- package/build/components/Provider.d.ts +0 -18
- package/build/components/Provider.js +0 -17
- package/build/components/Screens/Login.d.ts +0 -25
- package/build/components/Screens/Login.js +0 -144
- package/build/components/Search.d.ts +0 -16
- package/build/components/Search.js +0 -174
- package/build/components/Sidebar/Sidebar.Account.d.ts +0 -13
- package/build/components/Sidebar/Sidebar.Account.js +0 -56
- package/build/components/Sidebar/Sidebar.Button.d.ts +0 -10
- package/build/components/Sidebar/Sidebar.Button.js +0 -21
- package/build/components/Sidebar/Sidebar.Footer.d.ts +0 -8
- package/build/components/Sidebar/Sidebar.Footer.js +0 -9
- package/build/components/Sidebar/Sidebar.Heading.d.ts +0 -10
- package/build/components/Sidebar/Sidebar.Heading.js +0 -10
- package/build/components/Sidebar/Sidebar.Link.d.ts +0 -24
- package/build/components/Sidebar/Sidebar.Link.js +0 -57
- package/build/components/Sidebar/Sidebar.Menu.d.ts +0 -13
- package/build/components/Sidebar/Sidebar.Menu.js +0 -30
- package/build/components/Sidebar/Sidebar.Menu.module.css.js +0 -7
- package/build/components/Sidebar/Sidebar.d.ts +0 -58
- package/build/components/Sidebar/Sidebar.js +0 -219
- package/build/components/Sidebar/SidebarScroll.module.css.js +0 -4
- package/build/components/Sidebar/index.d.ts +0 -8
- package/build/components/Skeleton.d.ts +0 -13
- package/build/components/Skeleton.js +0 -29
- package/build/components/Skeleton.module.css.js +0 -7
- package/build/components/Spinner.d.ts +0 -26
- package/build/components/Spinner.js +0 -27
- package/build/components/Table.d.ts +0 -59
- package/build/components/Table.js +0 -71
- package/build/components/Tabs/Tabs.Panel.d.ts +0 -9
- package/build/components/Tabs/Tabs.Panel.js +0 -7
- package/build/components/Tabs/Tabs.Tab.d.ts +0 -19
- package/build/components/Tabs/Tabs.Tab.js +0 -37
- package/build/components/Tabs/Tabs.d.ts +0 -27
- package/build/components/Tabs/Tabs.js +0 -28
- package/build/components/Tabs/index.d.ts +0 -4
- package/build/components/Tag.d.ts +0 -25
- package/build/components/Tag.js +0 -36
- package/build/components/Tooltip.d.ts +0 -8
- package/build/components/Tooltip.js +0 -8
- package/build/components/Utilities/Currency.d.ts +0 -32
- package/build/components/Utilities/Currency.js +0 -49
- package/build/components/Utilities/Number.d.ts +0 -8
- package/build/components/Utilities/Number.js +0 -15
- package/build/components/Utilities/Phone.d.ts +0 -8
- package/build/components/Utilities/Phone.js +0 -19
- package/build/full.css +0 -2
- package/build/helpers/avatar.d.ts +0 -1
- package/build/helpers/avatar.js +0 -8
- package/build/helpers/browser.d.ts +0 -2
- package/build/helpers/browser.js +0 -9
- package/build/helpers/children.d.ts +0 -3
- package/build/helpers/children.js +0 -6
- package/build/helpers/classnames.d.ts +0 -5
- package/build/helpers/classnames.js +0 -8
- package/build/helpers/currency.d.ts +0 -2
- package/build/helpers/currency.js +0 -11
- package/build/helpers/date.d.ts +0 -12
- package/build/helpers/date.js +0 -49
- package/build/helpers/flash.d.ts +0 -21
- package/build/helpers/flash.js +0 -87
- package/build/helpers/numbers.d.ts +0 -4
- package/build/helpers/numbers.js +0 -23
- package/build/helpers/phone.d.ts +0 -11
- package/build/helpers/phone.js +0 -25
- package/build/hooks/useId.d.ts +0 -1
- package/build/hooks/useId.js +0 -9
- package/build/hooks/useIsClient.d.ts +0 -1
- package/build/hooks/useIsClient.js +0 -10
- package/build/hooks/useViewportHeight.d.ts +0 -1
- package/build/hooks/useViewportHeight.js +0 -15
- package/build/icons/src/AnnounceIcon.js +0 -13
- package/build/icons/src/BellIcon.js +0 -27
- package/build/icons/src/CalendarIcon.js +0 -16
- package/build/icons/src/CheckIcon.js +0 -8
- package/build/icons/src/ChevronDownIcon.js +0 -8
- package/build/icons/src/ChevronLeftIcon.js +0 -8
- package/build/icons/src/ChevronRightIcon.js +0 -8
- package/build/icons/src/CircleNotch.js +0 -6
- package/build/icons/src/CloseIcon.js +0 -11
- package/build/icons/src/DownArrowIcon.js +0 -16
- package/build/icons/src/ImageIcon.js +0 -27
- package/build/icons/src/SearchIcon.js +0 -16
- package/build/icons/src/TrashIcon.js +0 -20
- package/build/icons/src/WarningDiamondIcon.js +0 -27
- package/build/icons/src/helpers/classnames.js +0 -8
- package/build/icons/src/helpers/icon.js +0 -11
- package/build/icons/src/helpers/iconSizes.js +0 -13
- package/build/icons/src/images/XolaLogoSimple.js +0 -14
- package/build/index.d.ts +0 -66
- package/build/index.js +0 -142
- package/build/theme.d.ts +0 -413
- package/build/theme.js +0 -372
- package/build/types/index.d.ts +0 -22
- package/build/types/migration.d.ts +0 -2
- package/build/ui-kit.css +0 -1
- package/build/utils/avatar.d.ts +0 -1
- package/build/utils/avatar.js +0 -8
- package/build/utils/currency.d.ts +0 -2
- package/build/utils/currency.js +0 -11
- package/build/utils/index.d.ts +0 -4
- package/build/utils/numbers.d.ts +0 -4
- package/build/utils/numbers.js +0 -19
- package/build/utils/phone.d.ts +0 -2
- package/build/utils/phone.js +0 -17
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import d from "../../helpers/classnames.js";
|
|
3
|
-
import { Button as t } from "./Button.js";
|
|
4
|
-
const h = {
|
|
5
|
-
outline: {
|
|
6
|
-
primary: "bg-primary-lighter border border-primary hover:bg-primary-light hover:border-primary-dark",
|
|
7
|
-
secondary: "bg-secondary-light border border-secondary-light hover:bg-secondary-light hover:border-secondary",
|
|
8
|
-
success: "bg-success-lightish border border-success hover:bg-success-light hover:border-success-dark",
|
|
9
|
-
warning: "bg-warning-lightish border border-warning hover:bg-warning-light hover:border-warning-dark",
|
|
10
|
-
caution: "bg-caution-lightish border border-caution hover:bg-caution-light hover:border-caution-dark",
|
|
11
|
-
danger: "bg-danger-lightish border border-danger hover:bg-danger-light hover:border-danger-dark"
|
|
12
|
-
}
|
|
13
|
-
}, c = ({
|
|
14
|
-
color: r = "primary",
|
|
15
|
-
variant: e = "outline",
|
|
16
|
-
isActive: o,
|
|
17
|
-
className: g,
|
|
18
|
-
...i
|
|
19
|
-
}) => /* @__PURE__ */ b(
|
|
20
|
-
t,
|
|
21
|
-
{
|
|
22
|
-
color: r,
|
|
23
|
-
variant: e,
|
|
24
|
-
className: d(
|
|
25
|
-
"text-black",
|
|
26
|
-
g,
|
|
27
|
-
o ? h[e][r] : `bg-white hover:bg-${r}-lighter hover:border-${r}`
|
|
28
|
-
),
|
|
29
|
-
...i
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
export {
|
|
33
|
-
c as ToggleButton
|
|
34
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This view sets up a Chart. A 'Chart' is anything Highcharts can render (graphs, pies, donuts etc)
|
|
3
|
-
* This is the master file of defaults for Xola's charts. Colors, sizes, dimensions etc.
|
|
4
|
-
*/
|
|
5
|
-
export declare const BaseChartOptions: {
|
|
6
|
-
global: {
|
|
7
|
-
useUTC: boolean;
|
|
8
|
-
};
|
|
9
|
-
chart: {
|
|
10
|
-
spacingLeft: number;
|
|
11
|
-
};
|
|
12
|
-
colors: (string | {
|
|
13
|
-
lighter: string;
|
|
14
|
-
light: string;
|
|
15
|
-
DEFAULT: string;
|
|
16
|
-
dark: string;
|
|
17
|
-
darker: string;
|
|
18
|
-
})[];
|
|
19
|
-
xAxis: {
|
|
20
|
-
title: {
|
|
21
|
-
style: {
|
|
22
|
-
color: string;
|
|
23
|
-
fontSize: string;
|
|
24
|
-
fontWeight: number;
|
|
25
|
-
cursor: string;
|
|
26
|
-
textOverflow: string;
|
|
27
|
-
fontFamily: string[];
|
|
28
|
-
} & {
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
labels: {
|
|
33
|
-
style: {
|
|
34
|
-
color: string;
|
|
35
|
-
fontSize: string;
|
|
36
|
-
fontWeight: number;
|
|
37
|
-
cursor: string;
|
|
38
|
-
textOverflow: string;
|
|
39
|
-
fontFamily: string[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
yAxis: {
|
|
44
|
-
title: {
|
|
45
|
-
style: {
|
|
46
|
-
color: string;
|
|
47
|
-
fontSize: string;
|
|
48
|
-
fontWeight: number;
|
|
49
|
-
cursor: string;
|
|
50
|
-
textOverflow: string;
|
|
51
|
-
fontFamily: string[];
|
|
52
|
-
} & {
|
|
53
|
-
color: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
labels: {
|
|
57
|
-
style: {
|
|
58
|
-
color: string;
|
|
59
|
-
fontSize: string;
|
|
60
|
-
fontWeight: number;
|
|
61
|
-
cursor: string;
|
|
62
|
-
textOverflow: string;
|
|
63
|
-
fontFamily: string[];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
tooltip: {
|
|
68
|
-
enabled: boolean;
|
|
69
|
-
backgroundColor: string;
|
|
70
|
-
borderColor: string;
|
|
71
|
-
borderRadius: number;
|
|
72
|
-
borderWidth: number;
|
|
73
|
-
valueDecimals: number;
|
|
74
|
-
crosshairs: boolean[];
|
|
75
|
-
shadow: boolean;
|
|
76
|
-
useHTML: boolean;
|
|
77
|
-
style: {
|
|
78
|
-
color: string;
|
|
79
|
-
fontSize: string;
|
|
80
|
-
fontWeight: number;
|
|
81
|
-
cursor: string;
|
|
82
|
-
textOverflow: string;
|
|
83
|
-
fontFamily: string[];
|
|
84
|
-
} & {
|
|
85
|
-
opacity: number;
|
|
86
|
-
color: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
title: {
|
|
90
|
-
text: string;
|
|
91
|
-
style: {
|
|
92
|
-
color: string;
|
|
93
|
-
fontSize: string;
|
|
94
|
-
fontWeight: number;
|
|
95
|
-
cursor: string;
|
|
96
|
-
textOverflow: string;
|
|
97
|
-
fontFamily: string[];
|
|
98
|
-
} & {
|
|
99
|
-
color: string;
|
|
100
|
-
fontSize: string;
|
|
101
|
-
fontWeight: number;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
plotOptions: {
|
|
105
|
-
series: {
|
|
106
|
-
marker: {
|
|
107
|
-
enabled: boolean;
|
|
108
|
-
states: {
|
|
109
|
-
hover: {
|
|
110
|
-
enabled: boolean;
|
|
111
|
-
lineWidth: number;
|
|
112
|
-
radius: number;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
legend: {
|
|
119
|
-
enabled: boolean;
|
|
120
|
-
itemStyle: {
|
|
121
|
-
color: string;
|
|
122
|
-
fontSize: string;
|
|
123
|
-
fontWeight: number;
|
|
124
|
-
cursor: string;
|
|
125
|
-
textOverflow: string;
|
|
126
|
-
fontFamily: string[];
|
|
127
|
-
};
|
|
128
|
-
itemMarginBottom: number;
|
|
129
|
-
align: string;
|
|
130
|
-
layout: string;
|
|
131
|
-
borderWidth: number;
|
|
132
|
-
};
|
|
133
|
-
credits: {
|
|
134
|
-
enabled: boolean;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { merge as t } from "lodash-es";
|
|
2
|
-
import { theme as o } from "../../theme.js";
|
|
3
|
-
const { colors: e } = o, r = {
|
|
4
|
-
color: e.gray.darker,
|
|
5
|
-
fontSize: o.fontSize.sm,
|
|
6
|
-
// 12px
|
|
7
|
-
fontWeight: 400,
|
|
8
|
-
cursor: "pointer",
|
|
9
|
-
textOverflow: "ellipsis",
|
|
10
|
-
fontFamily: o.extend.fontFamily.sans
|
|
11
|
-
}, s = {
|
|
12
|
-
global: {
|
|
13
|
-
useUTC: !1
|
|
14
|
-
},
|
|
15
|
-
chart: {
|
|
16
|
-
spacingLeft: 0
|
|
17
|
-
},
|
|
18
|
-
colors: [
|
|
19
|
-
e.primary,
|
|
20
|
-
e.success,
|
|
21
|
-
e.warning,
|
|
22
|
-
e.caution,
|
|
23
|
-
e.danger,
|
|
24
|
-
e.blue.darker,
|
|
25
|
-
e.green.darker,
|
|
26
|
-
e.red.darker,
|
|
27
|
-
e.yellow.darker,
|
|
28
|
-
e.orange.darker
|
|
29
|
-
],
|
|
30
|
-
xAxis: {
|
|
31
|
-
title: { style: t({}, r, { color: e.black }) },
|
|
32
|
-
labels: { style: r }
|
|
33
|
-
},
|
|
34
|
-
yAxis: {
|
|
35
|
-
title: { style: t({}, r, { color: e.black }) },
|
|
36
|
-
labels: { style: r }
|
|
37
|
-
},
|
|
38
|
-
tooltip: {
|
|
39
|
-
enabled: !0,
|
|
40
|
-
backgroundColor: e.black,
|
|
41
|
-
borderColor: e.black,
|
|
42
|
-
borderRadius: 4,
|
|
43
|
-
borderWidth: 1,
|
|
44
|
-
valueDecimals: 2,
|
|
45
|
-
crosshairs: [!0, !0],
|
|
46
|
-
// Show crosshairs when you browse over the toolips
|
|
47
|
-
shadow: !1,
|
|
48
|
-
useHTML: !0,
|
|
49
|
-
// This is used to insert spans with classes for custom css
|
|
50
|
-
style: t({}, r, {
|
|
51
|
-
opacity: 0.9,
|
|
52
|
-
color: "#cccccc"
|
|
53
|
-
})
|
|
54
|
-
},
|
|
55
|
-
title: {
|
|
56
|
-
text: "",
|
|
57
|
-
// No title by default
|
|
58
|
-
style: t({}, r, { color: e.black, fontSize: "18px", fontWeight: 600 })
|
|
59
|
-
},
|
|
60
|
-
plotOptions: {
|
|
61
|
-
series: {
|
|
62
|
-
// Markers are not shown by default, except when you hover
|
|
63
|
-
marker: {
|
|
64
|
-
enabled: !0,
|
|
65
|
-
states: {
|
|
66
|
-
hover: {
|
|
67
|
-
enabled: !0,
|
|
68
|
-
// Width and radius of the marker when you hover
|
|
69
|
-
lineWidth: 1,
|
|
70
|
-
radius: 4
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
legend: {
|
|
77
|
-
enabled: !1,
|
|
78
|
-
// By default legend is disabled
|
|
79
|
-
// The style applied to each item in the legend
|
|
80
|
-
itemStyle: r,
|
|
81
|
-
itemMarginBottom: 5,
|
|
82
|
-
align: "center",
|
|
83
|
-
// Center it in the chart canvas
|
|
84
|
-
layout: "vertical",
|
|
85
|
-
// Legend items are shown as a list
|
|
86
|
-
borderWidth: 0
|
|
87
|
-
},
|
|
88
|
-
credits: {
|
|
89
|
-
// Don't show the 'Powered by Highcharts' text
|
|
90
|
-
enabled: !1
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
s as BaseChartOptions
|
|
95
|
-
};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the base Histogram chart. A histogram can be a line, column or a bar view. This is the master file
|
|
3
|
-
* for all defaults for a histogram. This should ideally be extended by business-specific implementations like
|
|
4
|
-
* revenue graph, turnover etc.
|
|
5
|
-
*/
|
|
6
|
-
export declare const HistogramOptions: {
|
|
7
|
-
global: {
|
|
8
|
-
useUTC: boolean;
|
|
9
|
-
};
|
|
10
|
-
chart: {
|
|
11
|
-
spacingLeft: number;
|
|
12
|
-
};
|
|
13
|
-
colors: (string | {
|
|
14
|
-
lighter: string;
|
|
15
|
-
light: string;
|
|
16
|
-
DEFAULT: string;
|
|
17
|
-
dark: string;
|
|
18
|
-
darker: string;
|
|
19
|
-
})[];
|
|
20
|
-
xAxis: {
|
|
21
|
-
title: {
|
|
22
|
-
style: {
|
|
23
|
-
color: string;
|
|
24
|
-
fontSize: string;
|
|
25
|
-
fontWeight: number;
|
|
26
|
-
cursor: string;
|
|
27
|
-
textOverflow: string;
|
|
28
|
-
fontFamily: string[];
|
|
29
|
-
} & {
|
|
30
|
-
color: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
labels: {
|
|
34
|
-
style: {
|
|
35
|
-
color: string;
|
|
36
|
-
fontSize: string;
|
|
37
|
-
fontWeight: number;
|
|
38
|
-
cursor: string;
|
|
39
|
-
textOverflow: string;
|
|
40
|
-
fontFamily: string[];
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
yAxis: {
|
|
45
|
-
title: {
|
|
46
|
-
style: {
|
|
47
|
-
color: string;
|
|
48
|
-
fontSize: string;
|
|
49
|
-
fontWeight: number;
|
|
50
|
-
cursor: string;
|
|
51
|
-
textOverflow: string;
|
|
52
|
-
fontFamily: string[];
|
|
53
|
-
} & {
|
|
54
|
-
color: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
labels: {
|
|
58
|
-
style: {
|
|
59
|
-
color: string;
|
|
60
|
-
fontSize: string;
|
|
61
|
-
fontWeight: number;
|
|
62
|
-
cursor: string;
|
|
63
|
-
textOverflow: string;
|
|
64
|
-
fontFamily: string[];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
tooltip: {
|
|
69
|
-
enabled: boolean;
|
|
70
|
-
backgroundColor: string;
|
|
71
|
-
borderColor: string;
|
|
72
|
-
borderRadius: number;
|
|
73
|
-
borderWidth: number;
|
|
74
|
-
valueDecimals: number;
|
|
75
|
-
crosshairs: boolean[];
|
|
76
|
-
shadow: boolean;
|
|
77
|
-
useHTML: boolean;
|
|
78
|
-
style: {
|
|
79
|
-
color: string;
|
|
80
|
-
fontSize: string;
|
|
81
|
-
fontWeight: number;
|
|
82
|
-
cursor: string;
|
|
83
|
-
textOverflow: string;
|
|
84
|
-
fontFamily: string[];
|
|
85
|
-
} & {
|
|
86
|
-
opacity: number;
|
|
87
|
-
color: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
title: {
|
|
91
|
-
text: string;
|
|
92
|
-
style: {
|
|
93
|
-
color: string;
|
|
94
|
-
fontSize: string;
|
|
95
|
-
fontWeight: number;
|
|
96
|
-
cursor: string;
|
|
97
|
-
textOverflow: string;
|
|
98
|
-
fontFamily: string[];
|
|
99
|
-
} & {
|
|
100
|
-
color: string;
|
|
101
|
-
fontSize: string;
|
|
102
|
-
fontWeight: number;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
plotOptions: {
|
|
106
|
-
series: {
|
|
107
|
-
marker: {
|
|
108
|
-
enabled: boolean;
|
|
109
|
-
states: {
|
|
110
|
-
hover: {
|
|
111
|
-
enabled: boolean;
|
|
112
|
-
lineWidth: number;
|
|
113
|
-
radius: number;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
legend: {
|
|
120
|
-
enabled: boolean;
|
|
121
|
-
itemStyle: {
|
|
122
|
-
color: string;
|
|
123
|
-
fontSize: string;
|
|
124
|
-
fontWeight: number;
|
|
125
|
-
cursor: string;
|
|
126
|
-
textOverflow: string;
|
|
127
|
-
fontFamily: string[];
|
|
128
|
-
};
|
|
129
|
-
itemMarginBottom: number;
|
|
130
|
-
align: string;
|
|
131
|
-
layout: string;
|
|
132
|
-
borderWidth: number;
|
|
133
|
-
};
|
|
134
|
-
credits: {
|
|
135
|
-
enabled: boolean;
|
|
136
|
-
};
|
|
137
|
-
} & {
|
|
138
|
-
chart: {
|
|
139
|
-
type: string;
|
|
140
|
-
};
|
|
141
|
-
title: {
|
|
142
|
-
align: string;
|
|
143
|
-
margin: number;
|
|
144
|
-
verticalAlign: string;
|
|
145
|
-
};
|
|
146
|
-
xAxis: {
|
|
147
|
-
type: string;
|
|
148
|
-
step: number;
|
|
149
|
-
minTickInterval: number;
|
|
150
|
-
lineColor: string;
|
|
151
|
-
lineWidth: number;
|
|
152
|
-
gridLineWidth: string;
|
|
153
|
-
gridLineColor: string;
|
|
154
|
-
gridLineDashStyle: string;
|
|
155
|
-
};
|
|
156
|
-
yAxis: {
|
|
157
|
-
lineColor: string;
|
|
158
|
-
lineWidth: number;
|
|
159
|
-
gridLineWidth: string;
|
|
160
|
-
gridLineColor: string;
|
|
161
|
-
gridLineDashStyle: string;
|
|
162
|
-
};
|
|
163
|
-
plotOptions: {
|
|
164
|
-
series: {
|
|
165
|
-
marker: {
|
|
166
|
-
enabled: boolean;
|
|
167
|
-
lineWidth: number;
|
|
168
|
-
radius: number;
|
|
169
|
-
states: {
|
|
170
|
-
hover: {
|
|
171
|
-
enabled: boolean;
|
|
172
|
-
lineWidth: number;
|
|
173
|
-
radius: number;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
legend: {
|
|
180
|
-
enabled: boolean;
|
|
181
|
-
itemStyle: {
|
|
182
|
-
fontSize: string;
|
|
183
|
-
color: string;
|
|
184
|
-
textTransform: string;
|
|
185
|
-
fontFamily: string[];
|
|
186
|
-
};
|
|
187
|
-
itemMarginBottom: number;
|
|
188
|
-
align: string;
|
|
189
|
-
layout: string;
|
|
190
|
-
borderWidth: number;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { merge as i } from "lodash-es";
|
|
2
|
-
import { theme as e } from "../../theme.js";
|
|
3
|
-
import { BaseChartOptions as t } from "./BaseChartOptions.js";
|
|
4
|
-
const n = i({}, t, {
|
|
5
|
-
chart: {
|
|
6
|
-
type: "line"
|
|
7
|
-
},
|
|
8
|
-
title: {
|
|
9
|
-
align: "left",
|
|
10
|
-
margin: 20,
|
|
11
|
-
verticalAlign: "top"
|
|
12
|
-
},
|
|
13
|
-
xAxis: {
|
|
14
|
-
type: "datetime",
|
|
15
|
-
// This will convert time into proper dates on the axis
|
|
16
|
-
step: 1,
|
|
17
|
-
minTickInterval: 24 * 3600 * 1e3,
|
|
18
|
-
lineColor: e.colors.gray.darker,
|
|
19
|
-
lineWidth: 1,
|
|
20
|
-
gridLineWidth: "1",
|
|
21
|
-
gridLineColor: "#DEDEDE",
|
|
22
|
-
gridLineDashStyle: "dot"
|
|
23
|
-
},
|
|
24
|
-
yAxis: {
|
|
25
|
-
lineColor: e.colors.gray.darker,
|
|
26
|
-
lineWidth: 1,
|
|
27
|
-
gridLineWidth: "1",
|
|
28
|
-
gridLineColor: "#DEDEDE",
|
|
29
|
-
gridLineDashStyle: "dot"
|
|
30
|
-
},
|
|
31
|
-
plotOptions: {
|
|
32
|
-
series: {
|
|
33
|
-
// Markers are not shown by default, except when you hover
|
|
34
|
-
marker: {
|
|
35
|
-
enabled: !0,
|
|
36
|
-
lineWidth: 1,
|
|
37
|
-
radius: 3,
|
|
38
|
-
states: {
|
|
39
|
-
hover: {
|
|
40
|
-
enabled: !0,
|
|
41
|
-
// Width and radius of the marker when you hover
|
|
42
|
-
lineWidth: 1,
|
|
43
|
-
radius: 4
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
legend: {
|
|
50
|
-
// By default legend is disabled
|
|
51
|
-
enabled: !1,
|
|
52
|
-
// The style applied to each item in the legend
|
|
53
|
-
itemStyle: {
|
|
54
|
-
fontSize: "14px",
|
|
55
|
-
color: "#666666",
|
|
56
|
-
textTransform: "capitalize",
|
|
57
|
-
fontFamily: e.extend.fontFamily.sans
|
|
58
|
-
},
|
|
59
|
-
itemMarginBottom: 5,
|
|
60
|
-
align: "center",
|
|
61
|
-
// Center it in the chart canvas
|
|
62
|
-
layout: "vertical",
|
|
63
|
-
// Legend items are shown as a list
|
|
64
|
-
borderWidth: 0
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
n as HistogramOptions
|
|
69
|
-
};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
export declare const PieOptions: {
|
|
2
|
-
global: {
|
|
3
|
-
useUTC: boolean;
|
|
4
|
-
};
|
|
5
|
-
chart: {
|
|
6
|
-
spacingLeft: number;
|
|
7
|
-
};
|
|
8
|
-
colors: (string | {
|
|
9
|
-
lighter: string;
|
|
10
|
-
light: string;
|
|
11
|
-
DEFAULT: string;
|
|
12
|
-
dark: string;
|
|
13
|
-
darker: string;
|
|
14
|
-
})[];
|
|
15
|
-
xAxis: {
|
|
16
|
-
title: {
|
|
17
|
-
style: {
|
|
18
|
-
color: string;
|
|
19
|
-
fontSize: string;
|
|
20
|
-
fontWeight: number;
|
|
21
|
-
cursor: string;
|
|
22
|
-
textOverflow: string;
|
|
23
|
-
fontFamily: string[];
|
|
24
|
-
} & {
|
|
25
|
-
color: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
labels: {
|
|
29
|
-
style: {
|
|
30
|
-
color: string;
|
|
31
|
-
fontSize: string;
|
|
32
|
-
fontWeight: number;
|
|
33
|
-
cursor: string;
|
|
34
|
-
textOverflow: string;
|
|
35
|
-
fontFamily: string[];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
yAxis: {
|
|
40
|
-
title: {
|
|
41
|
-
style: {
|
|
42
|
-
color: string;
|
|
43
|
-
fontSize: string;
|
|
44
|
-
fontWeight: number;
|
|
45
|
-
cursor: string;
|
|
46
|
-
textOverflow: string;
|
|
47
|
-
fontFamily: string[];
|
|
48
|
-
} & {
|
|
49
|
-
color: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
labels: {
|
|
53
|
-
style: {
|
|
54
|
-
color: string;
|
|
55
|
-
fontSize: string;
|
|
56
|
-
fontWeight: number;
|
|
57
|
-
cursor: string;
|
|
58
|
-
textOverflow: string;
|
|
59
|
-
fontFamily: string[];
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
tooltip: {
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
backgroundColor: string;
|
|
66
|
-
borderColor: string;
|
|
67
|
-
borderRadius: number;
|
|
68
|
-
borderWidth: number;
|
|
69
|
-
valueDecimals: number;
|
|
70
|
-
crosshairs: boolean[];
|
|
71
|
-
shadow: boolean;
|
|
72
|
-
useHTML: boolean;
|
|
73
|
-
style: {
|
|
74
|
-
color: string;
|
|
75
|
-
fontSize: string;
|
|
76
|
-
fontWeight: number;
|
|
77
|
-
cursor: string;
|
|
78
|
-
textOverflow: string;
|
|
79
|
-
fontFamily: string[];
|
|
80
|
-
} & {
|
|
81
|
-
opacity: number;
|
|
82
|
-
color: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
title: {
|
|
86
|
-
text: string;
|
|
87
|
-
style: {
|
|
88
|
-
color: string;
|
|
89
|
-
fontSize: string;
|
|
90
|
-
fontWeight: number;
|
|
91
|
-
cursor: string;
|
|
92
|
-
textOverflow: string;
|
|
93
|
-
fontFamily: string[];
|
|
94
|
-
} & {
|
|
95
|
-
color: string;
|
|
96
|
-
fontSize: string;
|
|
97
|
-
fontWeight: number;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
plotOptions: {
|
|
101
|
-
series: {
|
|
102
|
-
marker: {
|
|
103
|
-
enabled: boolean;
|
|
104
|
-
states: {
|
|
105
|
-
hover: {
|
|
106
|
-
enabled: boolean;
|
|
107
|
-
lineWidth: number;
|
|
108
|
-
radius: number;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
legend: {
|
|
115
|
-
enabled: boolean;
|
|
116
|
-
itemStyle: {
|
|
117
|
-
color: string;
|
|
118
|
-
fontSize: string;
|
|
119
|
-
fontWeight: number;
|
|
120
|
-
cursor: string;
|
|
121
|
-
textOverflow: string;
|
|
122
|
-
fontFamily: string[];
|
|
123
|
-
};
|
|
124
|
-
itemMarginBottom: number;
|
|
125
|
-
align: string;
|
|
126
|
-
layout: string;
|
|
127
|
-
borderWidth: number;
|
|
128
|
-
};
|
|
129
|
-
credits: {
|
|
130
|
-
enabled: boolean;
|
|
131
|
-
};
|
|
132
|
-
} & {
|
|
133
|
-
chart: {
|
|
134
|
-
type: string;
|
|
135
|
-
};
|
|
136
|
-
tooltip: {
|
|
137
|
-
pointFormat: string;
|
|
138
|
-
};
|
|
139
|
-
plotOptions: {
|
|
140
|
-
pie: {
|
|
141
|
-
size: number;
|
|
142
|
-
center: number[];
|
|
143
|
-
allowPointSelect: boolean;
|
|
144
|
-
cursor: string;
|
|
145
|
-
dataLabels: {
|
|
146
|
-
enabled: boolean;
|
|
147
|
-
};
|
|
148
|
-
showInLegend: boolean;
|
|
149
|
-
innerSize: number;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
legend: {
|
|
153
|
-
enabled: boolean;
|
|
154
|
-
maxHeight: number;
|
|
155
|
-
width: number;
|
|
156
|
-
navigation: {
|
|
157
|
-
activeColor: string;
|
|
158
|
-
animation: string;
|
|
159
|
-
style: string[];
|
|
160
|
-
};
|
|
161
|
-
padding: number;
|
|
162
|
-
backgroundColor: string;
|
|
163
|
-
itemMarginTop: number;
|
|
164
|
-
itemMarginBottom: number;
|
|
165
|
-
itemStyle: string[];
|
|
166
|
-
style: {
|
|
167
|
-
overflow: string;
|
|
168
|
-
};
|
|
169
|
-
align: string;
|
|
170
|
-
layout: string;
|
|
171
|
-
verticalAlign: string;
|
|
172
|
-
y: number;
|
|
173
|
-
};
|
|
174
|
-
credits: {
|
|
175
|
-
enabled: boolean;
|
|
176
|
-
};
|
|
177
|
-
};
|