@optifye/dashboard-core 6.11.24 → 6.11.25
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 +6 -21
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +531 -285
- package/dist/index.mjs +531 -285
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -876,9 +876,6 @@ body {
|
|
|
876
876
|
.mr-3 {
|
|
877
877
|
margin-right: 0.75rem;
|
|
878
878
|
}
|
|
879
|
-
.mr-32 {
|
|
880
|
-
margin-right: 8rem;
|
|
881
|
-
}
|
|
882
879
|
.mr-4 {
|
|
883
880
|
margin-right: 1rem;
|
|
884
881
|
}
|
|
@@ -1395,6 +1392,9 @@ body {
|
|
|
1395
1392
|
.w-\[27vw\] {
|
|
1396
1393
|
width: 27vw;
|
|
1397
1394
|
}
|
|
1395
|
+
.w-\[280px\] {
|
|
1396
|
+
width: 280px;
|
|
1397
|
+
}
|
|
1398
1398
|
.w-\[340px\] {
|
|
1399
1399
|
width: 340px;
|
|
1400
1400
|
}
|
|
@@ -3013,6 +3013,9 @@ body {
|
|
|
3013
3013
|
--tw-bg-opacity: 1;
|
|
3014
3014
|
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
3015
3015
|
}
|
|
3016
|
+
.bg-slate-50\/30 {
|
|
3017
|
+
background-color: rgb(248 250 252 / 0.3);
|
|
3018
|
+
}
|
|
3016
3019
|
.bg-slate-50\/50 {
|
|
3017
3020
|
background-color: rgb(248 250 252 / 0.5);
|
|
3018
3021
|
}
|
|
@@ -6257,9 +6260,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6257
6260
|
.sm\:left-0 {
|
|
6258
6261
|
left: 0px;
|
|
6259
6262
|
}
|
|
6260
|
-
.sm\:left-4 {
|
|
6261
|
-
left: 1rem;
|
|
6262
|
-
}
|
|
6263
6263
|
.sm\:left-auto {
|
|
6264
6264
|
left: auto;
|
|
6265
6265
|
}
|
|
@@ -6275,18 +6275,9 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6275
6275
|
.sm\:right-4 {
|
|
6276
6276
|
right: 1rem;
|
|
6277
6277
|
}
|
|
6278
|
-
.sm\:right-6 {
|
|
6279
|
-
right: 1.5rem;
|
|
6280
|
-
}
|
|
6281
|
-
.sm\:right-8 {
|
|
6282
|
-
right: 2rem;
|
|
6283
|
-
}
|
|
6284
6278
|
.sm\:top-0 {
|
|
6285
6279
|
top: 0px;
|
|
6286
6280
|
}
|
|
6287
|
-
.sm\:top-16 {
|
|
6288
|
-
top: 4rem;
|
|
6289
|
-
}
|
|
6290
6281
|
.sm\:top-3 {
|
|
6291
6282
|
top: 0.75rem;
|
|
6292
6283
|
}
|
|
@@ -6417,9 +6408,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6417
6408
|
.sm\:h-auto {
|
|
6418
6409
|
height: auto;
|
|
6419
6410
|
}
|
|
6420
|
-
.sm\:h-full {
|
|
6421
|
-
height: 100%;
|
|
6422
|
-
}
|
|
6423
6411
|
.sm\:min-h-0 {
|
|
6424
6412
|
min-height: 0px;
|
|
6425
6413
|
}
|
|
@@ -6480,9 +6468,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6480
6468
|
.sm\:w-\[180px\] {
|
|
6481
6469
|
width: 180px;
|
|
6482
6470
|
}
|
|
6483
|
-
.sm\:w-\[200px\] {
|
|
6484
|
-
width: 200px;
|
|
6485
|
-
}
|
|
6486
6471
|
.sm\:w-\[320px\] {
|
|
6487
6472
|
width: 320px;
|
|
6488
6473
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -3034,6 +3034,11 @@ interface UseDashboardMetricsProps {
|
|
|
3034
3034
|
* This determines which line(s) to fetch metrics for.
|
|
3035
3035
|
*/
|
|
3036
3036
|
lineId: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Optional explicit line subset for multi-line monitor scopes.
|
|
3039
|
+
* When provided, this overrides the default factory-view line resolution.
|
|
3040
|
+
*/
|
|
3041
|
+
lineIds?: string[];
|
|
3037
3042
|
/**
|
|
3038
3043
|
* Optional callback invoked when underlying line metrics data might have changed,
|
|
3039
3044
|
* suggesting that related components (like a Line KPI display) might need to refresh.
|
|
@@ -3090,7 +3095,7 @@ interface DashboardMetricsMetadata {
|
|
|
3090
3095
|
* }
|
|
3091
3096
|
* ```
|
|
3092
3097
|
*/
|
|
3093
|
-
declare const useDashboardMetrics: ({ onLineMetricsUpdate, lineId, userAccessibleLineIds }: UseDashboardMetricsProps) => {
|
|
3098
|
+
declare const useDashboardMetrics: ({ onLineMetricsUpdate, lineId, lineIds, userAccessibleLineIds }: UseDashboardMetricsProps) => {
|
|
3094
3099
|
workspaceMetrics: WorkspaceMetrics[];
|
|
3095
3100
|
lineMetrics: OverviewLineMetric[];
|
|
3096
3101
|
efficiencyLegend: EfficiencyLegendUpdate;
|
|
@@ -8288,6 +8293,7 @@ interface WorkspaceGridProps {
|
|
|
8288
8293
|
isPdfMode?: boolean;
|
|
8289
8294
|
customWorkspacePositions?: typeof DEFAULT_WORKSPACE_POSITIONS;
|
|
8290
8295
|
lineNames?: Record<string, string>;
|
|
8296
|
+
lineOrder?: string[];
|
|
8291
8297
|
factoryView?: string;
|
|
8292
8298
|
line2Uuid?: string;
|
|
8293
8299
|
className?: string;
|
|
@@ -8303,6 +8309,7 @@ interface WorkspaceGridProps {
|
|
|
8303
8309
|
displayNames?: Record<string, string>;
|
|
8304
8310
|
onWorkspaceHover?: (workspaceId: string) => void;
|
|
8305
8311
|
onWorkspaceHoverEnd?: (workspaceId: string) => void;
|
|
8312
|
+
toolbarRightContent?: React__default.ReactNode;
|
|
8306
8313
|
}
|
|
8307
8314
|
declare const WorkspaceGrid: React__default.FC<WorkspaceGridProps>;
|
|
8308
8315
|
|
|
@@ -8359,6 +8366,8 @@ declare const TargetWorkspaceGrid: React__default.FC<TargetWorkspaceGridProps>;
|
|
|
8359
8366
|
interface VideoGridViewProps {
|
|
8360
8367
|
workspaces: WorkspaceMetrics[];
|
|
8361
8368
|
selectedLine?: number;
|
|
8369
|
+
lineNames?: Record<string, string>;
|
|
8370
|
+
lineOrder?: string[];
|
|
8362
8371
|
className?: string;
|
|
8363
8372
|
legend?: EfficiencyLegendUpdate;
|
|
8364
8373
|
videoSources?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -3034,6 +3034,11 @@ interface UseDashboardMetricsProps {
|
|
|
3034
3034
|
* This determines which line(s) to fetch metrics for.
|
|
3035
3035
|
*/
|
|
3036
3036
|
lineId: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Optional explicit line subset for multi-line monitor scopes.
|
|
3039
|
+
* When provided, this overrides the default factory-view line resolution.
|
|
3040
|
+
*/
|
|
3041
|
+
lineIds?: string[];
|
|
3037
3042
|
/**
|
|
3038
3043
|
* Optional callback invoked when underlying line metrics data might have changed,
|
|
3039
3044
|
* suggesting that related components (like a Line KPI display) might need to refresh.
|
|
@@ -3090,7 +3095,7 @@ interface DashboardMetricsMetadata {
|
|
|
3090
3095
|
* }
|
|
3091
3096
|
* ```
|
|
3092
3097
|
*/
|
|
3093
|
-
declare const useDashboardMetrics: ({ onLineMetricsUpdate, lineId, userAccessibleLineIds }: UseDashboardMetricsProps) => {
|
|
3098
|
+
declare const useDashboardMetrics: ({ onLineMetricsUpdate, lineId, lineIds, userAccessibleLineIds }: UseDashboardMetricsProps) => {
|
|
3094
3099
|
workspaceMetrics: WorkspaceMetrics[];
|
|
3095
3100
|
lineMetrics: OverviewLineMetric[];
|
|
3096
3101
|
efficiencyLegend: EfficiencyLegendUpdate;
|
|
@@ -8288,6 +8293,7 @@ interface WorkspaceGridProps {
|
|
|
8288
8293
|
isPdfMode?: boolean;
|
|
8289
8294
|
customWorkspacePositions?: typeof DEFAULT_WORKSPACE_POSITIONS;
|
|
8290
8295
|
lineNames?: Record<string, string>;
|
|
8296
|
+
lineOrder?: string[];
|
|
8291
8297
|
factoryView?: string;
|
|
8292
8298
|
line2Uuid?: string;
|
|
8293
8299
|
className?: string;
|
|
@@ -8303,6 +8309,7 @@ interface WorkspaceGridProps {
|
|
|
8303
8309
|
displayNames?: Record<string, string>;
|
|
8304
8310
|
onWorkspaceHover?: (workspaceId: string) => void;
|
|
8305
8311
|
onWorkspaceHoverEnd?: (workspaceId: string) => void;
|
|
8312
|
+
toolbarRightContent?: React__default.ReactNode;
|
|
8306
8313
|
}
|
|
8307
8314
|
declare const WorkspaceGrid: React__default.FC<WorkspaceGridProps>;
|
|
8308
8315
|
|
|
@@ -8359,6 +8366,8 @@ declare const TargetWorkspaceGrid: React__default.FC<TargetWorkspaceGridProps>;
|
|
|
8359
8366
|
interface VideoGridViewProps {
|
|
8360
8367
|
workspaces: WorkspaceMetrics[];
|
|
8361
8368
|
selectedLine?: number;
|
|
8369
|
+
lineNames?: Record<string, string>;
|
|
8370
|
+
lineOrder?: string[];
|
|
8362
8371
|
className?: string;
|
|
8363
8372
|
legend?: EfficiencyLegendUpdate;
|
|
8364
8373
|
videoSources?: {
|