@optifye/dashboard-core 6.10.6 → 6.10.7
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/index.css +21 -0
- package/dist/index.d.mts +26 -19
- package/dist/index.d.ts +26 -19
- package/dist/index.js +894 -537
- package/dist/index.mjs +896 -539
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2668,6 +2668,9 @@ body {
|
|
|
2668
2668
|
.bg-white\/80 {
|
|
2669
2669
|
background-color: rgb(255 255 255 / 0.8);
|
|
2670
2670
|
}
|
|
2671
|
+
.bg-white\/90 {
|
|
2672
|
+
background-color: rgb(255 255 255 / 0.9);
|
|
2673
|
+
}
|
|
2671
2674
|
.bg-white\/95 {
|
|
2672
2675
|
background-color: rgb(255 255 255 / 0.95);
|
|
2673
2676
|
}
|
|
@@ -3650,6 +3653,10 @@ body {
|
|
|
3650
3653
|
--tw-text-opacity: 1;
|
|
3651
3654
|
color: rgb(251 146 60 / var(--tw-text-opacity, 1));
|
|
3652
3655
|
}
|
|
3656
|
+
.text-orange-500 {
|
|
3657
|
+
--tw-text-opacity: 1;
|
|
3658
|
+
color: rgb(249 115 22 / var(--tw-text-opacity, 1));
|
|
3659
|
+
}
|
|
3653
3660
|
.text-orange-600 {
|
|
3654
3661
|
--tw-text-opacity: 1;
|
|
3655
3662
|
color: rgb(234 88 12 / var(--tw-text-opacity, 1));
|
|
@@ -4023,6 +4030,9 @@ body {
|
|
|
4023
4030
|
--tw-ring-opacity: 1;
|
|
4024
4031
|
--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));
|
|
4025
4032
|
}
|
|
4033
|
+
.ring-black\/5 {
|
|
4034
|
+
--tw-ring-color: rgb(0 0 0 / 0.05);
|
|
4035
|
+
}
|
|
4026
4036
|
.ring-blue-100 {
|
|
4027
4037
|
--tw-ring-opacity: 1;
|
|
4028
4038
|
--tw-ring-color: rgb(219 234 254 / var(--tw-ring-opacity, 1));
|
|
@@ -4049,6 +4059,10 @@ body {
|
|
|
4049
4059
|
.ring-gray-400\/30 {
|
|
4050
4060
|
--tw-ring-color: rgb(156 163 175 / 0.3);
|
|
4051
4061
|
}
|
|
4062
|
+
.ring-green-200 {
|
|
4063
|
+
--tw-ring-opacity: 1;
|
|
4064
|
+
--tw-ring-color: rgb(187 247 208 / var(--tw-ring-opacity, 1));
|
|
4065
|
+
}
|
|
4052
4066
|
.ring-green-500\/30 {
|
|
4053
4067
|
--tw-ring-color: rgb(34 197 94 / 0.3);
|
|
4054
4068
|
}
|
|
@@ -4056,6 +4070,10 @@ body {
|
|
|
4056
4070
|
--tw-ring-opacity: 1;
|
|
4057
4071
|
--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));
|
|
4058
4072
|
}
|
|
4073
|
+
.ring-red-200 {
|
|
4074
|
+
--tw-ring-opacity: 1;
|
|
4075
|
+
--tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity, 1));
|
|
4076
|
+
}
|
|
4059
4077
|
.ring-red-400\/40 {
|
|
4060
4078
|
--tw-ring-color: rgb(248 113 113 / 0.4);
|
|
4061
4079
|
}
|
|
@@ -5597,6 +5615,9 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
5597
5615
|
.md\:w-\[220px\] {
|
|
5598
5616
|
width: 220px;
|
|
5599
5617
|
}
|
|
5618
|
+
.md\:w-auto {
|
|
5619
|
+
width: auto;
|
|
5620
|
+
}
|
|
5600
5621
|
.md\:min-w-\[120px\] {
|
|
5601
5622
|
min-width: 120px;
|
|
5602
5623
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -2877,6 +2877,25 @@ declare const useRealtimeLineMetrics: ({ lineId, date: urlDate, shiftId: urlShif
|
|
|
2877
2877
|
refreshMetrics: () => Promise<void>;
|
|
2878
2878
|
};
|
|
2879
2879
|
|
|
2880
|
+
interface LineRecord {
|
|
2881
|
+
id: string;
|
|
2882
|
+
line_name: string;
|
|
2883
|
+
company_id: string;
|
|
2884
|
+
factory_id?: string;
|
|
2885
|
+
enable: boolean;
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Hook to fetch all lines from the database
|
|
2889
|
+
*
|
|
2890
|
+
* @returns Object containing lines, loading state, error, and refetch function
|
|
2891
|
+
*/
|
|
2892
|
+
declare const useLines: () => {
|
|
2893
|
+
lines: LineRecord[];
|
|
2894
|
+
loading: boolean;
|
|
2895
|
+
error: Error | null;
|
|
2896
|
+
refetch: () => Promise<void>;
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2880
2899
|
/**
|
|
2881
2900
|
* @interface Target
|
|
2882
2901
|
* @description Represents a generic target or goal.
|
|
@@ -3669,25 +3688,6 @@ interface UseMultiLineShiftConfigsResult {
|
|
|
3669
3688
|
*/
|
|
3670
3689
|
declare const useMultiLineShiftConfigs: (lineIds: string[], fallbackConfig?: ShiftConfig) => UseMultiLineShiftConfigsResult;
|
|
3671
3690
|
|
|
3672
|
-
interface LineRecord {
|
|
3673
|
-
id: string;
|
|
3674
|
-
line_name: string;
|
|
3675
|
-
company_id: string;
|
|
3676
|
-
factory_id?: string;
|
|
3677
|
-
enable: boolean;
|
|
3678
|
-
}
|
|
3679
|
-
/**
|
|
3680
|
-
* Hook to fetch all lines from the database
|
|
3681
|
-
*
|
|
3682
|
-
* @returns Object containing lines, loading state, error, and refetch function
|
|
3683
|
-
*/
|
|
3684
|
-
declare const useLines: () => {
|
|
3685
|
-
lines: LineRecord[];
|
|
3686
|
-
loading: boolean;
|
|
3687
|
-
error: Error | null;
|
|
3688
|
-
refetch: () => Promise<void>;
|
|
3689
|
-
};
|
|
3690
|
-
|
|
3691
3691
|
/**
|
|
3692
3692
|
* Interface for navigation method used across packages
|
|
3693
3693
|
* Abstracts navigation implementation details from components
|
|
@@ -6250,6 +6250,13 @@ interface BarProps {
|
|
|
6250
6250
|
interface BarChartProps {
|
|
6251
6251
|
data: BarChartDataItem[];
|
|
6252
6252
|
bars: BarProps[];
|
|
6253
|
+
referenceLines?: Array<{
|
|
6254
|
+
y: number;
|
|
6255
|
+
label?: string;
|
|
6256
|
+
stroke?: string;
|
|
6257
|
+
strokeDasharray?: string;
|
|
6258
|
+
strokeWidth?: number;
|
|
6259
|
+
}>;
|
|
6253
6260
|
xAxisDataKey?: string;
|
|
6254
6261
|
xAxisLabel?: string;
|
|
6255
6262
|
yAxisLabel?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2877,6 +2877,25 @@ declare const useRealtimeLineMetrics: ({ lineId, date: urlDate, shiftId: urlShif
|
|
|
2877
2877
|
refreshMetrics: () => Promise<void>;
|
|
2878
2878
|
};
|
|
2879
2879
|
|
|
2880
|
+
interface LineRecord {
|
|
2881
|
+
id: string;
|
|
2882
|
+
line_name: string;
|
|
2883
|
+
company_id: string;
|
|
2884
|
+
factory_id?: string;
|
|
2885
|
+
enable: boolean;
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Hook to fetch all lines from the database
|
|
2889
|
+
*
|
|
2890
|
+
* @returns Object containing lines, loading state, error, and refetch function
|
|
2891
|
+
*/
|
|
2892
|
+
declare const useLines: () => {
|
|
2893
|
+
lines: LineRecord[];
|
|
2894
|
+
loading: boolean;
|
|
2895
|
+
error: Error | null;
|
|
2896
|
+
refetch: () => Promise<void>;
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2880
2899
|
/**
|
|
2881
2900
|
* @interface Target
|
|
2882
2901
|
* @description Represents a generic target or goal.
|
|
@@ -3669,25 +3688,6 @@ interface UseMultiLineShiftConfigsResult {
|
|
|
3669
3688
|
*/
|
|
3670
3689
|
declare const useMultiLineShiftConfigs: (lineIds: string[], fallbackConfig?: ShiftConfig) => UseMultiLineShiftConfigsResult;
|
|
3671
3690
|
|
|
3672
|
-
interface LineRecord {
|
|
3673
|
-
id: string;
|
|
3674
|
-
line_name: string;
|
|
3675
|
-
company_id: string;
|
|
3676
|
-
factory_id?: string;
|
|
3677
|
-
enable: boolean;
|
|
3678
|
-
}
|
|
3679
|
-
/**
|
|
3680
|
-
* Hook to fetch all lines from the database
|
|
3681
|
-
*
|
|
3682
|
-
* @returns Object containing lines, loading state, error, and refetch function
|
|
3683
|
-
*/
|
|
3684
|
-
declare const useLines: () => {
|
|
3685
|
-
lines: LineRecord[];
|
|
3686
|
-
loading: boolean;
|
|
3687
|
-
error: Error | null;
|
|
3688
|
-
refetch: () => Promise<void>;
|
|
3689
|
-
};
|
|
3690
|
-
|
|
3691
3691
|
/**
|
|
3692
3692
|
* Interface for navigation method used across packages
|
|
3693
3693
|
* Abstracts navigation implementation details from components
|
|
@@ -6250,6 +6250,13 @@ interface BarProps {
|
|
|
6250
6250
|
interface BarChartProps {
|
|
6251
6251
|
data: BarChartDataItem[];
|
|
6252
6252
|
bars: BarProps[];
|
|
6253
|
+
referenceLines?: Array<{
|
|
6254
|
+
y: number;
|
|
6255
|
+
label?: string;
|
|
6256
|
+
stroke?: string;
|
|
6257
|
+
strokeDasharray?: string;
|
|
6258
|
+
strokeWidth?: number;
|
|
6259
|
+
}>;
|
|
6253
6260
|
xAxisDataKey?: string;
|
|
6254
6261
|
xAxisLabel?: string;
|
|
6255
6262
|
yAxisLabel?: string;
|