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