@optifye/dashboard-core 6.11.23 → 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 +18 -32
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +564 -318
- package/dist/index.mjs +564 -318
- 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
|
}
|
|
@@ -1107,9 +1104,6 @@ body {
|
|
|
1107
1104
|
.h-\[80px\] {
|
|
1108
1105
|
height: 80px;
|
|
1109
1106
|
}
|
|
1110
|
-
.h-\[calc\(100\%-2\.5rem\)\] {
|
|
1111
|
-
height: calc(100% - 2.5rem);
|
|
1112
|
-
}
|
|
1113
1107
|
.h-\[calc\(100\%-3rem\)\] {
|
|
1114
1108
|
height: calc(100% - 3rem);
|
|
1115
1109
|
}
|
|
@@ -1398,6 +1392,9 @@ body {
|
|
|
1398
1392
|
.w-\[27vw\] {
|
|
1399
1393
|
width: 27vw;
|
|
1400
1394
|
}
|
|
1395
|
+
.w-\[280px\] {
|
|
1396
|
+
width: 280px;
|
|
1397
|
+
}
|
|
1401
1398
|
.w-\[340px\] {
|
|
1402
1399
|
width: 340px;
|
|
1403
1400
|
}
|
|
@@ -3016,6 +3013,9 @@ body {
|
|
|
3016
3013
|
--tw-bg-opacity: 1;
|
|
3017
3014
|
background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
|
|
3018
3015
|
}
|
|
3016
|
+
.bg-slate-50\/30 {
|
|
3017
|
+
background-color: rgb(248 250 252 / 0.3);
|
|
3018
|
+
}
|
|
3019
3019
|
.bg-slate-50\/50 {
|
|
3020
3020
|
background-color: rgb(248 250 252 / 0.5);
|
|
3021
3021
|
}
|
|
@@ -6260,9 +6260,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6260
6260
|
.sm\:left-0 {
|
|
6261
6261
|
left: 0px;
|
|
6262
6262
|
}
|
|
6263
|
-
.sm\:left-4 {
|
|
6264
|
-
left: 1rem;
|
|
6265
|
-
}
|
|
6266
6263
|
.sm\:left-auto {
|
|
6267
6264
|
left: auto;
|
|
6268
6265
|
}
|
|
@@ -6278,18 +6275,9 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6278
6275
|
.sm\:right-4 {
|
|
6279
6276
|
right: 1rem;
|
|
6280
6277
|
}
|
|
6281
|
-
.sm\:right-6 {
|
|
6282
|
-
right: 1.5rem;
|
|
6283
|
-
}
|
|
6284
|
-
.sm\:right-8 {
|
|
6285
|
-
right: 2rem;
|
|
6286
|
-
}
|
|
6287
6278
|
.sm\:top-0 {
|
|
6288
6279
|
top: 0px;
|
|
6289
6280
|
}
|
|
6290
|
-
.sm\:top-16 {
|
|
6291
|
-
top: 4rem;
|
|
6292
|
-
}
|
|
6293
6281
|
.sm\:top-3 {
|
|
6294
6282
|
top: 0.75rem;
|
|
6295
6283
|
}
|
|
@@ -6420,9 +6408,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6420
6408
|
.sm\:h-auto {
|
|
6421
6409
|
height: auto;
|
|
6422
6410
|
}
|
|
6423
|
-
.sm\:h-full {
|
|
6424
|
-
height: 100%;
|
|
6425
|
-
}
|
|
6426
6411
|
.sm\:min-h-0 {
|
|
6427
6412
|
min-height: 0px;
|
|
6428
6413
|
}
|
|
@@ -6483,9 +6468,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
6483
6468
|
.sm\:w-\[180px\] {
|
|
6484
6469
|
width: 180px;
|
|
6485
6470
|
}
|
|
6486
|
-
.sm\:w-\[200px\] {
|
|
6487
|
-
width: 200px;
|
|
6488
|
-
}
|
|
6489
6471
|
.sm\:w-\[320px\] {
|
|
6490
6472
|
width: 320px;
|
|
6491
6473
|
}
|
|
@@ -7370,14 +7352,6 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
7370
7352
|
font-size: 2.25rem;
|
|
7371
7353
|
line-height: 2.5rem;
|
|
7372
7354
|
}
|
|
7373
|
-
.lg\:text-5xl {
|
|
7374
|
-
font-size: 3rem;
|
|
7375
|
-
line-height: 1;
|
|
7376
|
-
}
|
|
7377
|
-
.lg\:text-7xl {
|
|
7378
|
-
font-size: 4.5rem;
|
|
7379
|
-
line-height: 1;
|
|
7380
|
-
}
|
|
7381
7355
|
.lg\:text-\[10px\] {
|
|
7382
7356
|
font-size: 10px;
|
|
7383
7357
|
}
|
|
@@ -7469,6 +7443,10 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
7469
7443
|
font-size: 1.875rem;
|
|
7470
7444
|
line-height: 2.25rem;
|
|
7471
7445
|
}
|
|
7446
|
+
.xl\:text-4xl {
|
|
7447
|
+
font-size: 2.25rem;
|
|
7448
|
+
line-height: 2.5rem;
|
|
7449
|
+
}
|
|
7472
7450
|
.xl\:text-5xl {
|
|
7473
7451
|
font-size: 3rem;
|
|
7474
7452
|
line-height: 1;
|
|
@@ -7498,6 +7476,14 @@ input[type=range]:active::-moz-range-thumb {
|
|
|
7498
7476
|
}
|
|
7499
7477
|
}
|
|
7500
7478
|
@media (min-width: 1536px) {
|
|
7479
|
+
.\32xl\:text-3xl {
|
|
7480
|
+
font-size: 1.875rem;
|
|
7481
|
+
line-height: 2.25rem;
|
|
7482
|
+
}
|
|
7483
|
+
.\32xl\:text-5xl {
|
|
7484
|
+
font-size: 3rem;
|
|
7485
|
+
line-height: 1;
|
|
7486
|
+
}
|
|
7501
7487
|
.\32xl\:text-6xl {
|
|
7502
7488
|
font-size: 3.75rem;
|
|
7503
7489
|
line-height: 1;
|
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?: {
|