kwant-ui 3.33.13-alpha.0 → 3.34.0-alpha.1
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/components/Charts/AreaChart/AreaChartData.d.ts +2 -2
- package/dist/components/Charts/AreaChart/AreaChartTypes.d.ts +0 -1
- package/dist/components/Charts/AreaChart/AreaChartUtils.d.ts +2 -7
- package/dist/components/Charts/LineChart/LineChartTypes.d.ts +0 -1
- package/dist/components/Charts/LineChart/LineChartUtils.d.ts +0 -1
- package/dist/components/Charts/StackedBarChart/StackedBarChartData.d.ts +14 -5
- package/dist/components/Charts/StackedBarChart/StackedBarChartTypes.d.ts +0 -1
- package/dist/components/Charts/StackedBarChart/StackedBarChartUtils.d.ts +1 -6
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartTypes.d.ts +0 -1
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartUtils.d.ts +1 -4
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartData.d.ts +4 -4
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartTypes.d.ts +0 -2
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartUtils.d.ts +0 -9
- package/dist/index.es.js +270 -270
- package/dist/index.js +292 -292
- package/dist/package.json +1 -1
- package/dist/public/assets/icons/US.svg +1 -1
- package/dist/themes/colors.ts +35 -1
- package/dist/themes/types.d.ts +35 -0
- package/dist/utils/formatDate.d.ts +0 -1
- package/package.json +1 -1
- package/themes/colors.ts +35 -1
- package/themes/types.ts +37 -0
- package/utils/formatDate.ts +0 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { YAxisProps } from 'recharts';
|
|
2
2
|
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
3
3
|
export declare const data: {
|
|
4
|
+
day: string;
|
|
5
|
+
date: string;
|
|
4
6
|
actualWorkforce: number;
|
|
5
7
|
budgetedWorkforce: number;
|
|
6
|
-
date: string;
|
|
7
|
-
day: string;
|
|
8
8
|
workerConsistency: number;
|
|
9
9
|
}[];
|
|
10
10
|
export declare const areaChartArea: ({
|
|
@@ -11,18 +11,13 @@ export declare const TickX: (props: {
|
|
|
11
11
|
x?: number;
|
|
12
12
|
y?: number;
|
|
13
13
|
payload?: any;
|
|
14
|
-
dateFormat: string;
|
|
15
14
|
rotate?: number;
|
|
16
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const tooltipLabelFormatter: (label: string
|
|
16
|
+
export declare const tooltipLabelFormatter: (label: string) => string;
|
|
18
17
|
export declare const TooltipItemRow: ({ color, name, value, shape, }: {
|
|
19
18
|
color?: string;
|
|
20
19
|
name?: string;
|
|
21
20
|
value?: string;
|
|
22
21
|
shape?: ReactNode;
|
|
23
22
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
|
|
25
|
-
dateFormat?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const CustomTooltip: (props: CustomTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
23
|
+
export declare const CustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,6 @@ export declare const TickX: (props: {
|
|
|
10
10
|
x?: number;
|
|
11
11
|
y?: number;
|
|
12
12
|
payload?: any;
|
|
13
|
-
dateFormat: string;
|
|
14
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export declare const tooltipLabelFormatter: (label: string) => string;
|
|
16
15
|
export declare const TooltipItemRow: ({ color, name, value, }: {
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { YAxisProps } from 'recharts';
|
|
2
2
|
import { Props as StackedBarProps } from 'recharts/types/cartesian/Area';
|
|
3
|
-
export declare const data: {
|
|
3
|
+
export declare const data: ({
|
|
4
|
+
name: string;
|
|
5
|
+
actualWorkforce: number;
|
|
6
|
+
budgetedWorkforce: number;
|
|
7
|
+
workerConsistency: number;
|
|
4
8
|
date: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
prediction?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
name: string;
|
|
12
|
+
actualWorkforce: number;
|
|
13
|
+
budgetedWorkforce: number;
|
|
14
|
+
prediction: number;
|
|
15
|
+
workerConsistency: number;
|
|
16
|
+
date: string;
|
|
17
|
+
})[];
|
|
9
18
|
export declare const areas: {
|
|
10
19
|
dataKey: string;
|
|
11
20
|
color: string;
|
|
@@ -39,7 +39,6 @@ export declare namespace IStackedBarChart {
|
|
|
39
39
|
areaYAxisRightProps?: AreaProps;
|
|
40
40
|
customTooltipLabelFormatter?: (label: any) => string;
|
|
41
41
|
customYAxisTickFormatter?: (value: any) => string;
|
|
42
|
-
dateFormat?: string;
|
|
43
42
|
};
|
|
44
43
|
type StackedBar = {
|
|
45
44
|
dataKey: string;
|
|
@@ -10,15 +10,10 @@ export declare const TickX: (props: {
|
|
|
10
10
|
x?: number;
|
|
11
11
|
y?: number;
|
|
12
12
|
payload?: any;
|
|
13
|
-
dateFormat: string;
|
|
14
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export declare const TooltipItemRow: ({ color, name, value, }: {
|
|
16
15
|
color?: string;
|
|
17
16
|
name?: string;
|
|
18
17
|
value?: string;
|
|
19
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare const CustomTooltip: (props: TooltipProps<ValueType, NameType>
|
|
21
|
-
showHourRows?: boolean;
|
|
22
|
-
showTimeRows?: boolean;
|
|
23
|
-
dateFormat?: string;
|
|
24
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const CustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,7 +24,6 @@ export declare namespace IWeekwiseBarChart {
|
|
|
24
24
|
};
|
|
25
25
|
customYAxisTickFormatter?: (value: any) => string;
|
|
26
26
|
customXAxisTickFormatter?: (value: any) => string;
|
|
27
|
-
dateFormat?: string;
|
|
28
27
|
};
|
|
29
28
|
type CustomLegendType = Omit<Payload, keyof Payload> & {
|
|
30
29
|
value: string;
|
|
@@ -5,10 +5,7 @@ export declare const TickX: (props: {
|
|
|
5
5
|
x?: number;
|
|
6
6
|
y?: number;
|
|
7
7
|
payload?: any;
|
|
8
|
-
dateFormat: string;
|
|
9
8
|
rotate?: number;
|
|
10
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export declare const renderCustomizedLabel: (props: LabelListContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const WeekwiseChartCustomTooltip: (props: TooltipProps<ValueType, NameType>
|
|
13
|
-
dateFormat: string;
|
|
14
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const WeekwiseChartCustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const getMilliseconds: (hour: number, min: number, sec: number) => number;
|
|
2
2
|
export declare const workerTimeChartOrganizedData: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
date: string;
|
|
4
|
+
checkIn: string;
|
|
5
|
+
checkOut: string;
|
|
6
6
|
workTime: number;
|
|
7
|
-
|
|
7
|
+
overTime: number;
|
|
8
8
|
}[];
|
|
9
9
|
export declare const processDataForWorkerTimeChart: (rawData: any[]) => any[];
|
|
@@ -26,7 +26,6 @@ export declare namespace IWorkerTimeChart {
|
|
|
26
26
|
dataKeyX: string;
|
|
27
27
|
dataKeyCheckIn?: string;
|
|
28
28
|
dataKeyCheckOut?: string;
|
|
29
|
-
dataKeyCheckInOut?: string;
|
|
30
29
|
dataKeyWorkTime?: string;
|
|
31
30
|
dataKeyOverTime?: string;
|
|
32
31
|
legends?: IWeekwiseBarChart.CustomLegendType[];
|
|
@@ -38,7 +37,6 @@ export declare namespace IWorkerTimeChart {
|
|
|
38
37
|
yAxisRightProps?: YAxisProps;
|
|
39
38
|
showHourBars?: boolean;
|
|
40
39
|
showTimeScatters?: boolean;
|
|
41
|
-
dateFormat?: string;
|
|
42
40
|
};
|
|
43
41
|
type DataObj = {
|
|
44
42
|
date: string;
|
|
@@ -4,17 +4,8 @@ import { Props as LabelListContentProps } from 'recharts/types/component/Label';
|
|
|
4
4
|
export declare const getX: (x: number, width: number) => number;
|
|
5
5
|
export declare const Divider: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const getHourConditionally: (hour: number) => string;
|
|
7
|
-
export declare const TickX: (props: {
|
|
8
|
-
x?: number;
|
|
9
|
-
y?: number;
|
|
10
|
-
payload?: any;
|
|
11
|
-
dateFormat: string;
|
|
12
|
-
rotate?: number;
|
|
13
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
7
|
export declare const renderCustomizedLabel: (props: LabelListContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare const CheckInOutConnectorLine: (props: LabelListContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
8
|
export declare const WorkerTimeChartTooltip: (props: TooltipProps<ValueType, NameType> & {
|
|
17
9
|
showHourRows?: boolean;
|
|
18
10
|
showTimeRows?: boolean;
|
|
19
|
-
dateFormat?: string;
|
|
20
11
|
}) => import("react/jsx-runtime").JSX.Element;
|