next-helios-fe 1.10.24 → 1.10.26
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/package.json
CHANGED
|
@@ -32,6 +32,7 @@ interface ChartProps {
|
|
|
32
32
|
datetime?: boolean;
|
|
33
33
|
min?: number;
|
|
34
34
|
max?: number;
|
|
35
|
+
format?: string;
|
|
35
36
|
};
|
|
36
37
|
yaxis?: {
|
|
37
38
|
min?: number;
|
|
@@ -41,7 +42,7 @@ interface ChartProps {
|
|
|
41
42
|
theme?: "light" | "dark";
|
|
42
43
|
mainColor?: string;
|
|
43
44
|
height?: number;
|
|
44
|
-
barChart?: { variant: "vertical" | "horizontal" };
|
|
45
|
+
barChart?: { variant: "vertical" | "horizontal"; stacked?: boolean };
|
|
45
46
|
sparkline?: boolean;
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -155,6 +156,7 @@ export const Chart: React.FC<ChartProps> = ({
|
|
|
155
156
|
},
|
|
156
157
|
},
|
|
157
158
|
foreColor: options?.theme === "light" ? "#475569" : "#ffffff",
|
|
159
|
+
stacked: options?.barChart?.stacked ? true : false,
|
|
158
160
|
},
|
|
159
161
|
dataLabels: {
|
|
160
162
|
enabled: false,
|
|
@@ -199,7 +201,7 @@ export const Chart: React.FC<ChartProps> = ({
|
|
|
199
201
|
fillSeriesColor: false,
|
|
200
202
|
...(xaxis?.datetime
|
|
201
203
|
? {
|
|
202
|
-
x: { format: "dd MMM yyyy" },
|
|
204
|
+
x: { format: xaxis.format ? xaxis.format : "dd MMM yyyy" },
|
|
203
205
|
}
|
|
204
206
|
: {}),
|
|
205
207
|
},
|
|
@@ -219,7 +219,7 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
|
|
219
219
|
}`}
|
|
220
220
|
>
|
|
221
221
|
<span>{menus.find((i) => i.value === item)?.label}</span>
|
|
222
|
-
{
|
|
222
|
+
{!readOnly && !options?.disableDropdown && (
|
|
223
223
|
<button
|
|
224
224
|
type="button"
|
|
225
225
|
disabled={
|