@conboai/app.db.query 0.9.11 → 0.9.13
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/app.db.query.js
CHANGED
|
@@ -144976,7 +144976,7 @@ const lKe = ({
|
|
|
144976
144976
|
}, bKe = (e) => ({
|
|
144977
144977
|
cursor: "pointer",
|
|
144978
144978
|
border: e ? "4px solid #2196F3" : "none"
|
|
144979
|
-
}), vKe = {
|
|
144979
|
+
}), vKe = (e) => ({
|
|
144980
144980
|
display: "flex",
|
|
144981
144981
|
alignItems: "center",
|
|
144982
144982
|
justifyContent: "center",
|
|
@@ -144988,9 +144988,9 @@ const lKe = ({
|
|
|
144988
144988
|
top: "10px",
|
|
144989
144989
|
left: "10px",
|
|
144990
144990
|
backgroundColor: "rgba(0, 0, 0, 60%)",
|
|
144991
|
-
opacity: 0,
|
|
144991
|
+
opacity: e ? 1 : 0,
|
|
144992
144992
|
transition: "all 0.3s ease"
|
|
144993
|
-
}, xKe = {
|
|
144993
|
+
}), xKe = {
|
|
144994
144994
|
color: "white",
|
|
144995
144995
|
"&.Mui-checked": {
|
|
144996
144996
|
color: "white"
|
|
@@ -145025,7 +145025,7 @@ const lKe = ({
|
|
|
145025
145025
|
/* @__PURE__ */ ie.jsx(
|
|
145026
145026
|
We,
|
|
145027
145027
|
{
|
|
145028
|
-
sx: vKe,
|
|
145028
|
+
sx: vKe(h),
|
|
145029
145029
|
className: "image-checkbox",
|
|
145030
145030
|
onClick: M,
|
|
145031
145031
|
children: /* @__PURE__ */ ie.jsx(
|
|
@@ -145403,46 +145403,57 @@ const lKe = ({
|
|
|
145403
145403
|
selectedOption: a,
|
|
145404
145404
|
selectAll: l,
|
|
145405
145405
|
onSelectAll: u,
|
|
145406
|
-
selectedAmount: p = 0
|
|
145407
|
-
|
|
145408
|
-
|
|
145409
|
-
|
|
145410
|
-
|
|
145411
|
-
|
|
145412
|
-
|
|
145413
|
-
|
|
145406
|
+
selectedAmount: p = 0,
|
|
145407
|
+
indeterminate: h
|
|
145408
|
+
}) => /* @__PURE__ */ ie.jsxs(
|
|
145409
|
+
We,
|
|
145410
|
+
{
|
|
145411
|
+
display: "flex",
|
|
145412
|
+
flexDirection: "row",
|
|
145413
|
+
justifyContent: "space-between",
|
|
145414
|
+
mt: "16px",
|
|
145415
|
+
children: [
|
|
145416
|
+
/* @__PURE__ */ ie.jsx(
|
|
145417
|
+
zk,
|
|
145414
145418
|
{
|
|
145415
|
-
|
|
145416
|
-
|
|
145417
|
-
|
|
145418
|
-
|
|
145419
|
+
sx: $Ke,
|
|
145420
|
+
control: /* @__PURE__ */ ie.jsx(
|
|
145421
|
+
Ah,
|
|
145422
|
+
{
|
|
145423
|
+
checked: l,
|
|
145424
|
+
onChange: u,
|
|
145425
|
+
sx: Gee,
|
|
145426
|
+
disabled: o,
|
|
145427
|
+
indeterminate: h
|
|
145428
|
+
}
|
|
145429
|
+
),
|
|
145430
|
+
label: "Select All"
|
|
145419
145431
|
}
|
|
145420
145432
|
),
|
|
145421
|
-
|
|
145422
|
-
|
|
145423
|
-
|
|
145424
|
-
|
|
145425
|
-
|
|
145426
|
-
|
|
145427
|
-
|
|
145428
|
-
|
|
145429
|
-
|
|
145430
|
-
|
|
145431
|
-
|
|
145432
|
-
|
|
145433
|
-
|
|
145434
|
-
|
|
145435
|
-
|
|
145436
|
-
|
|
145437
|
-
|
|
145438
|
-
|
|
145439
|
-
|
|
145440
|
-
|
|
145441
|
-
|
|
145442
|
-
|
|
145443
|
-
|
|
145444
|
-
|
|
145445
|
-
] }), VKe = ({ baseUrl: e }) => {
|
|
145433
|
+
/* @__PURE__ */ ie.jsxs(We, { display: "flex", flexDirection: "row", gap: "12px", alignItems: "center", children: [
|
|
145434
|
+
!o && /* @__PURE__ */ ie.jsx(
|
|
145435
|
+
zt,
|
|
145436
|
+
{
|
|
145437
|
+
sx: YKe,
|
|
145438
|
+
children: `Selected ${p} images`
|
|
145439
|
+
}
|
|
145440
|
+
),
|
|
145441
|
+
/* @__PURE__ */ ie.jsx(
|
|
145442
|
+
FKe,
|
|
145443
|
+
{
|
|
145444
|
+
loading: i,
|
|
145445
|
+
onClick: e,
|
|
145446
|
+
options: s,
|
|
145447
|
+
onChange: t,
|
|
145448
|
+
selectedOption: a,
|
|
145449
|
+
disabled: r,
|
|
145450
|
+
btnText: n
|
|
145451
|
+
}
|
|
145452
|
+
)
|
|
145453
|
+
] })
|
|
145454
|
+
]
|
|
145455
|
+
}
|
|
145456
|
+
), VKe = ({ baseUrl: e }) => {
|
|
145446
145457
|
const [t, n] = Ue([]), {
|
|
145447
145458
|
title: r,
|
|
145448
145459
|
callDate: o,
|
|
@@ -145465,7 +145476,28 @@ const lKe = ({
|
|
|
145465
145476
|
de.loadingState,
|
|
145466
145477
|
de.editTabData,
|
|
145467
145478
|
de.tabsData
|
|
145468
|
-
]), [j, P] = Ue(!1), [U, A] = Ue(""), [L, O] = Ue(i), { loading: I } = td(), { fetchRightPanelData: N } = eD(), { handleImagesSearch: S, handleSearch: R } = qee(e), { loading: z } = Sp(), { take: Y } = Zee()
|
|
145479
|
+
]), [j, P] = Ue(!1), [U, A] = Ue(""), [L, O] = Ue(i), { loading: I } = td(), { fetchRightPanelData: N } = eD(), { handleImagesSearch: S, handleSearch: R } = qee(e), { loading: z } = Sp(), { take: Y } = Zee();
|
|
145480
|
+
Oe(() => {
|
|
145481
|
+
h && (R(p, f, !0), C("shouldFetchFrameDetailsData", !1), C("shouldFetchFrameDetails", !1), C("isLoadMore", !0));
|
|
145482
|
+
}, [
|
|
145483
|
+
C,
|
|
145484
|
+
R,
|
|
145485
|
+
p,
|
|
145486
|
+
h,
|
|
145487
|
+
f
|
|
145488
|
+
]), Oe(() => {
|
|
145489
|
+
if (s.length && u) {
|
|
145490
|
+
const Q = s.map((ne) => ne.conbo_key).filter((ne) => !t.includes(ne));
|
|
145491
|
+
Q.length > 0 && (S(Q), n((ne) => [...ne, ...Q])), C("shouldFetchData", !1);
|
|
145492
|
+
}
|
|
145493
|
+
}, [
|
|
145494
|
+
s,
|
|
145495
|
+
u,
|
|
145496
|
+
t,
|
|
145497
|
+
S,
|
|
145498
|
+
C
|
|
145499
|
+
]);
|
|
145500
|
+
const $ = Ht(() => {
|
|
145469
145501
|
if (s.length && a.length) {
|
|
145470
145502
|
const de = kKe(s, a).filter(
|
|
145471
145503
|
(ne) => ne.imgUrl
|
|
@@ -145490,28 +145522,7 @@ const lKe = ({
|
|
|
145490
145522
|
selected: de
|
|
145491
145523
|
}));
|
|
145492
145524
|
C("selectedAllImages", de), C("imagesByKeys", Q);
|
|
145493
|
-
}, [a, C, x]), K = _.filter((de) => de.selected).map((de) => de.id), te = _ == null ? void 0 : _.find((de) => (de == null ? void 0 : de.id) === U)
|
|
145494
|
-
Oe(() => {
|
|
145495
|
-
h && (R(p, f, !0), C("shouldFetchFrameDetailsData", !1), C("shouldFetchFrameDetails", !1), C("isLoadMore", !0));
|
|
145496
|
-
}, [
|
|
145497
|
-
C,
|
|
145498
|
-
R,
|
|
145499
|
-
p,
|
|
145500
|
-
h,
|
|
145501
|
-
f
|
|
145502
|
-
]), Oe(() => {
|
|
145503
|
-
if (s.length && u) {
|
|
145504
|
-
const Q = s.map((ne) => ne.conbo_key).filter((ne) => !t.includes(ne));
|
|
145505
|
-
Q.length > 0 && (S(Q), n((ne) => [...ne, ...Q])), C("shouldFetchData", !1);
|
|
145506
|
-
}
|
|
145507
|
-
}, [
|
|
145508
|
-
s,
|
|
145509
|
-
u,
|
|
145510
|
-
t,
|
|
145511
|
-
S,
|
|
145512
|
-
C
|
|
145513
|
-
]);
|
|
145514
|
-
const re = (de) => {
|
|
145525
|
+
}, [a, C, x]), K = _.filter((de) => de.selected).map((de) => de.id), te = _ == null ? void 0 : _.find((de) => (de == null ? void 0 : de.id) === U), re = (de) => {
|
|
145515
145526
|
P(!0), A(de);
|
|
145516
145527
|
}, ee = () => P(!1), ue = (de) => {
|
|
145517
145528
|
C("selectedImageItemId", de.id), O(de.id), N({
|
|
@@ -145586,7 +145597,8 @@ const lKe = ({
|
|
|
145586
145597
|
selectedOption: m,
|
|
145587
145598
|
onSelectAll: H,
|
|
145588
145599
|
selectAll: x,
|
|
145589
|
-
selectedAmount: K.length
|
|
145600
|
+
selectedAmount: K.length,
|
|
145601
|
+
indeterminate: K.length > 0 && K.length < _.length
|
|
145590
145602
|
}
|
|
145591
145603
|
),
|
|
145592
145604
|
/* @__PURE__ */ ie.jsx(
|
|
@@ -12,6 +12,7 @@ type DownloadImageButtonProps = {
|
|
|
12
12
|
onSelectAll?: () => void;
|
|
13
13
|
isCheckboxDisabled?: boolean;
|
|
14
14
|
selectedAmount?: number;
|
|
15
|
+
indeterminate?: boolean;
|
|
15
16
|
};
|
|
16
|
-
declare const DownloadImagesPanel: ({ onClick, onChange, btnText, isBtnDisabled, isCheckboxDisabled, loading, options, selectedOption, selectAll, onSelectAll, selectedAmount }: DownloadImageButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const DownloadImagesPanel: ({ onClick, onChange, btnText, isBtnDisabled, isCheckboxDisabled, loading, options, selectedOption, selectAll, onSelectAll, selectedAmount, indeterminate }: DownloadImageButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export default DownloadImagesPanel;
|
|
@@ -14,5 +14,5 @@ export declare const imageBoxSx: (isActive?: boolean) => SxProps;
|
|
|
14
14
|
export declare const loaderBoxSx: SxProps;
|
|
15
15
|
export declare const loadMoreBoxSx: SxProps;
|
|
16
16
|
export declare const errorBoxSx: (isActive?: boolean) => SxProps;
|
|
17
|
-
export declare const imageCheckboxSx: SxProps;
|
|
17
|
+
export declare const imageCheckboxSx: (isSelected?: boolean) => SxProps;
|
|
18
18
|
export declare const checkboxSx: SxProps;
|