@conboai/storybook.components 0.1.23 → 0.1.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.
|
@@ -5,4 +5,5 @@ export declare const getEndTime: (type: OpUnitType, timeType: UnitType, time: nu
|
|
|
5
5
|
export declare const getStartTimeOfYesterday: (time: number) => dayjs.Dayjs;
|
|
6
6
|
export declare const subtractTime: (time: number, timeType: ManipulateType | undefined) => dayjs.Dayjs;
|
|
7
7
|
export declare const getLocalDateTimeFormat: () => string;
|
|
8
|
-
export declare const formatDateWithLocal: (date: Date) => string;
|
|
8
|
+
export declare const formatDateWithLocal: (date: Date | string) => string;
|
|
9
|
+
export declare const formatDuration: (milliseconds: number) => string;
|
|
@@ -26980,9 +26980,12 @@ process.env.NODE_ENV !== "production" && (Zl.propTypes = {
|
|
|
26980
26980
|
variant: s.oneOf(["filled", "outlined", "standard"])
|
|
26981
26981
|
});
|
|
26982
26982
|
const TL = {
|
|
26983
|
-
minWidth: "100px",
|
|
26984
26983
|
flexGrow: "1",
|
|
26985
26984
|
backgroundColor: gn,
|
|
26985
|
+
flex: 1,
|
|
26986
|
+
overflow: "hidden",
|
|
26987
|
+
textOverflow: "ellipsis",
|
|
26988
|
+
whiteSpace: "nowrap",
|
|
26986
26989
|
"&.MuiOutlinedInput-root": {
|
|
26987
26990
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
26988
26991
|
borderColor: `${$t} !important`
|
|
@@ -58469,7 +58472,7 @@ function g3({ images: t }) {
|
|
|
58469
58472
|
)
|
|
58470
58473
|
] });
|
|
58471
58474
|
}
|
|
58472
|
-
const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()), og = (t, e, n) => St().startOf(t).set(e, n), Y5 = (t, e, n) => St().endOf(t).set(e, n), K5 = (t) => St().subtract(1, "day").startOf("day").set("hour", t), sg = (t, e) => St().subtract(t, e), q5 = () => {
|
|
58475
|
+
const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()), b3 = (t) => t.join(", "), og = (t, e, n) => St().startOf(t).set(e, n), Y5 = (t, e, n) => St().endOf(t).set(e, n), K5 = (t) => St().subtract(1, "day").startOf("day").set("hour", t), sg = (t, e) => St().subtract(t, e), q5 = () => {
|
|
58473
58476
|
const e = new Intl.DateTimeFormat(void 0, {
|
|
58474
58477
|
year: "numeric",
|
|
58475
58478
|
month: "2-digit",
|
|
@@ -58497,21 +58500,27 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58497
58500
|
}
|
|
58498
58501
|
}).join("");
|
|
58499
58502
|
return n ? r.replace("hh", "hh") : r.replace("hh", "HH");
|
|
58500
|
-
},
|
|
58503
|
+
}, y3 = (t) => {
|
|
58501
58504
|
const e = q5();
|
|
58502
58505
|
return St(t).format(e);
|
|
58503
|
-
},
|
|
58506
|
+
}, v3 = (t) => {
|
|
58507
|
+
const r = Math.floor(t / 6e4);
|
|
58508
|
+
t %= 6e4;
|
|
58509
|
+
const o = Math.floor(t / 1e3);
|
|
58510
|
+
let i = "";
|
|
58511
|
+
return r > 0 ? (i += `${r} min`, o > 0 && (i += ` ${o} sec`), i) : o > 0 ? (i += `${o} sec`, i) : "0 sec";
|
|
58512
|
+
}, x3 = [
|
|
58504
58513
|
"Camera 1 (all items)",
|
|
58505
58514
|
"Camera 5 (all items)",
|
|
58506
58515
|
"Camera 2 (10 items)",
|
|
58507
58516
|
"Camera 3 (Zone 1)",
|
|
58508
58517
|
"Camera 4 (24 items)"
|
|
58509
|
-
],
|
|
58518
|
+
], T3 = [
|
|
58510
58519
|
{ key: "classifier", label: "Classifier" },
|
|
58511
58520
|
{ key: "value", label: "Value" },
|
|
58512
58521
|
{ key: "count", label: "Count" },
|
|
58513
58522
|
{ key: "score", label: "Score" }
|
|
58514
|
-
],
|
|
58523
|
+
], S3 = [
|
|
58515
58524
|
{
|
|
58516
58525
|
label: "Summary",
|
|
58517
58526
|
value: "0",
|
|
@@ -58522,14 +58531,14 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58522
58531
|
value: "1",
|
|
58523
58532
|
disabled: !0
|
|
58524
58533
|
}
|
|
58525
|
-
],
|
|
58534
|
+
], E3 = [
|
|
58526
58535
|
{ classifier: "Color", value: "Black", count: 50, score: "80%" },
|
|
58527
58536
|
{ classifier: "Color", value: "Yellow", count: 60, score: "70%" },
|
|
58528
58537
|
{ classifier: "Manufacture", value: "Volvo", count: 50, score: "80%" },
|
|
58529
58538
|
{ classifier: "Color", value: "Red", count: 50, score: "40%" },
|
|
58530
58539
|
{ classifier: "Color", value: "Green", count: 75, score: "70%" },
|
|
58531
58540
|
{ classifier: "Manufacture", value: "Man", count: 3, score: "80%" }
|
|
58532
|
-
],
|
|
58541
|
+
], C3 = (t) => [
|
|
58533
58542
|
{
|
|
58534
58543
|
value: "0",
|
|
58535
58544
|
content: /* @__PURE__ */ E.jsx(aB, { ...t })
|
|
@@ -58538,7 +58547,7 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58538
58547
|
value: "1",
|
|
58539
58548
|
content: "More"
|
|
58540
58549
|
}
|
|
58541
|
-
],
|
|
58550
|
+
], R3 = {
|
|
58542
58551
|
data: [
|
|
58543
58552
|
{
|
|
58544
58553
|
id: "1",
|
|
@@ -58596,15 +58605,15 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58596
58605
|
value: "kit"
|
|
58597
58606
|
}
|
|
58598
58607
|
]
|
|
58599
|
-
},
|
|
58608
|
+
}, w3 = [
|
|
58600
58609
|
{ key: "id", label: "ID" },
|
|
58601
58610
|
{ key: "name", label: "Name" },
|
|
58602
58611
|
{ key: "age", label: "Age" }
|
|
58603
|
-
],
|
|
58612
|
+
], I3 = [
|
|
58604
58613
|
{ id: 1, name: "John Doe", age: 30 },
|
|
58605
58614
|
{ id: 2, name: "Jane Smith", age: 25 },
|
|
58606
58615
|
{ id: 3, name: "Bob Johnson", age: 40 }
|
|
58607
|
-
],
|
|
58616
|
+
], D3 = {
|
|
58608
58617
|
feed: 139,
|
|
58609
58618
|
conbo_key: "28145-139-021-64216",
|
|
58610
58619
|
event_id: "CNB-7987",
|
|
@@ -58614,7 +58623,7 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58614
58623
|
end: "2024-05-15T21:05:27.745000Z",
|
|
58615
58624
|
cargo: "N/A",
|
|
58616
58625
|
zones: ["Dock main road ", "Hello dock"]
|
|
58617
|
-
},
|
|
58626
|
+
}, O3 = [
|
|
58618
58627
|
{ headerName: "Event ID", field: "event_id" },
|
|
58619
58628
|
{
|
|
58620
58629
|
headerName: "Move",
|
|
@@ -58633,7 +58642,7 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58633
58642
|
},
|
|
58634
58643
|
{ headerName: "Cargo", field: "cargo" },
|
|
58635
58644
|
{ headerName: "Zones", field: "zones" }
|
|
58636
|
-
],
|
|
58645
|
+
], A3 = [
|
|
58637
58646
|
{ id: "1", color: "#f99191", title: "New title" },
|
|
58638
58647
|
{
|
|
58639
58648
|
id: "2",
|
|
@@ -58641,7 +58650,7 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58641
58650
|
title: "Message should contain more information"
|
|
58642
58651
|
},
|
|
58643
58652
|
{ id: "3", color: "#7095f4", title: "Hello, World!" }
|
|
58644
|
-
],
|
|
58653
|
+
], k3 = [
|
|
58645
58654
|
{
|
|
58646
58655
|
label: "Start of the day",
|
|
58647
58656
|
getValue: () => og("day", "hour", 6)
|
|
@@ -58666,7 +58675,7 @@ const G5 = (t) => t.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()),
|
|
|
58666
58675
|
label: "One day ago",
|
|
58667
58676
|
getValue: () => sg(1, "day")
|
|
58668
58677
|
}
|
|
58669
|
-
],
|
|
58678
|
+
], P3 = [
|
|
58670
58679
|
{
|
|
58671
58680
|
value: 864e5,
|
|
58672
58681
|
label: "1 day"
|
|
@@ -58722,7 +58731,7 @@ export {
|
|
|
58722
58731
|
al as PLACEMENTS,
|
|
58723
58732
|
Y2 as SearchInput,
|
|
58724
58733
|
Yt as Svg,
|
|
58725
|
-
|
|
58734
|
+
S3 as TABS,
|
|
58726
58735
|
fB as Tab,
|
|
58727
58736
|
t3 as TabsBar,
|
|
58728
58737
|
m3 as Toggle,
|
|
@@ -58730,28 +58739,30 @@ export {
|
|
|
58730
58739
|
p3 as VerticalTable,
|
|
58731
58740
|
c3 as VideoBox,
|
|
58732
58741
|
gn as WHITE,
|
|
58733
|
-
|
|
58734
|
-
|
|
58735
|
-
|
|
58736
|
-
|
|
58737
|
-
|
|
58742
|
+
T3 as columnDefs,
|
|
58743
|
+
w3 as columns,
|
|
58744
|
+
x3 as dataMock,
|
|
58745
|
+
E3 as detailsViewDataMock,
|
|
58746
|
+
y3 as formatDateWithLocal,
|
|
58747
|
+
v3 as formatDuration,
|
|
58748
|
+
b3 as formatValueWithComma,
|
|
58738
58749
|
Y5 as getEndTime,
|
|
58739
58750
|
q5 as getLocalDateTimeFormat,
|
|
58740
58751
|
og as getStartTime,
|
|
58741
58752
|
K5 as getStartTimeOfYesterday,
|
|
58742
|
-
|
|
58753
|
+
C3 as getTabsContent,
|
|
58743
58754
|
j2 as inputLabelSx,
|
|
58744
58755
|
By as loaderSx,
|
|
58745
|
-
|
|
58746
|
-
|
|
58747
|
-
|
|
58748
|
-
|
|
58756
|
+
I3 as mainTableDataMock,
|
|
58757
|
+
P3 as mockSelectOptions,
|
|
58758
|
+
k3 as mockShortcut,
|
|
58759
|
+
R3 as newFilterMock,
|
|
58749
58760
|
B2 as selectSx,
|
|
58750
58761
|
G5 as snakeCaseToTitleCase,
|
|
58751
58762
|
sg as subtractTime,
|
|
58752
58763
|
$y as tabSx,
|
|
58753
|
-
|
|
58764
|
+
A3 as tabsMock,
|
|
58754
58765
|
Fy as tabsSx,
|
|
58755
|
-
|
|
58756
|
-
|
|
58766
|
+
O3 as verticalTableColumnDefs,
|
|
58767
|
+
D3 as verticalTableDataMock
|
|
58757
58768
|
};
|