beca-ui 0.1.41 → 0.1.43
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/beca-ui.js +27 -33
- package/package.json +1 -1
package/dist/beca-ui.js
CHANGED
|
@@ -88368,9 +88368,8 @@ const AppContext = createContext$1({}), MainLayout = (a) => {
|
|
|
88368
88368
|
if (R) {
|
|
88369
88369
|
const L = R.querySelector(".bu2-card-body");
|
|
88370
88370
|
if (L) {
|
|
88371
|
-
const I = document.querySelector(".ant-layout-header.header"), Y = I ? I.clientHeight : 0, G =
|
|
88372
|
-
|
|
88373
|
-
L.setAttribute("style", `height:${E}px`), Z && Z(E);
|
|
88371
|
+
const I = document.querySelector(".ant-layout-header.header"), Y = I ? I.clientHeight : 0, G = 32, X = 16, V = R.querySelector(".bu2-card-header"), E = V ? V.clientHeight : 0, z = window.innerHeight - Y - G - X - E;
|
|
88372
|
+
L.setAttribute("style", `height:${z}px`), Z && Z(z);
|
|
88374
88373
|
}
|
|
88375
88374
|
}
|
|
88376
88375
|
};
|
|
@@ -143584,12 +143583,6 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143584
143583
|
},
|
|
143585
143584
|
[d, JSON.stringify(c)]
|
|
143586
143585
|
);
|
|
143587
|
-
useEffect(() => {
|
|
143588
|
-
const D = [];
|
|
143589
|
-
c.forEach((j) => {
|
|
143590
|
-
j.page === u && D.push(j);
|
|
143591
|
-
}), d(D);
|
|
143592
|
-
}, [JSON.stringify(c), u]);
|
|
143593
143586
|
function Y(D) {
|
|
143594
143587
|
if (D.preventDefault(), D.stopPropagation(), T) {
|
|
143595
143588
|
const j = [...c].find(
|
|
@@ -143709,48 +143702,49 @@ const ReactPaginate = /* @__PURE__ */ getDefaultExportFromCjs(reactPaginateExpor
|
|
|
143709
143702
|
B.push(Q);
|
|
143710
143703
|
}
|
|
143711
143704
|
d(B), C(D.id);
|
|
143712
|
-
}, z = useCallback(() => c.map((
|
|
143705
|
+
}, z = useCallback(() => c.filter((j) => j.page === u).map((j) => {
|
|
143713
143706
|
const {
|
|
143714
|
-
left:
|
|
143715
|
-
top:
|
|
143716
|
-
title:
|
|
143717
|
-
width:
|
|
143718
|
-
height:
|
|
143719
|
-
image:
|
|
143720
|
-
page:
|
|
143721
|
-
} =
|
|
143707
|
+
left: U,
|
|
143708
|
+
top: P,
|
|
143709
|
+
title: F,
|
|
143710
|
+
width: B,
|
|
143711
|
+
height: A,
|
|
143712
|
+
image: Q,
|
|
143713
|
+
page: H
|
|
143714
|
+
} = j;
|
|
143722
143715
|
return /* @__PURE__ */ jsx(
|
|
143723
143716
|
Box,
|
|
143724
143717
|
{
|
|
143725
|
-
id:
|
|
143718
|
+
id: j.id,
|
|
143726
143719
|
data: c,
|
|
143727
|
-
left:
|
|
143728
|
-
top:
|
|
143720
|
+
left: U,
|
|
143721
|
+
top: P,
|
|
143729
143722
|
hideSourceOnDrag: s,
|
|
143730
|
-
onChangeBoxSize: (
|
|
143731
|
-
I(
|
|
143723
|
+
onChangeBoxSize: (le, ee) => {
|
|
143724
|
+
I(j.id, le, ee);
|
|
143732
143725
|
},
|
|
143733
|
-
onDelete: (
|
|
143726
|
+
onDelete: (le) => X(le),
|
|
143734
143727
|
onHandleBox: E,
|
|
143735
143728
|
pageHeight: y,
|
|
143736
143729
|
pageWidth: M,
|
|
143737
|
-
boxWidth:
|
|
143738
|
-
boxHeight:
|
|
143739
|
-
page:
|
|
143740
|
-
image:
|
|
143730
|
+
boxWidth: B,
|
|
143731
|
+
boxHeight: A,
|
|
143732
|
+
page: H,
|
|
143733
|
+
image: Q,
|
|
143741
143734
|
activeKey: T,
|
|
143742
|
-
imageType:
|
|
143743
|
-
resizable:
|
|
143744
|
-
children:
|
|
143735
|
+
imageType: j.imageType,
|
|
143736
|
+
resizable: j.resizable,
|
|
143737
|
+
children: F
|
|
143745
143738
|
},
|
|
143746
|
-
|
|
143739
|
+
j.id
|
|
143747
143740
|
);
|
|
143748
143741
|
}), [
|
|
143749
143742
|
JSON.stringify(c),
|
|
143750
143743
|
s,
|
|
143751
143744
|
y,
|
|
143752
143745
|
M,
|
|
143753
|
-
T
|
|
143746
|
+
T,
|
|
143747
|
+
u
|
|
143754
143748
|
]);
|
|
143755
143749
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
143756
143750
|
/* @__PURE__ */ jsxs(
|