beca-ui 2.0.19-beta.98 → 2.0.19
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
CHANGED
|
@@ -109604,58 +109604,63 @@ const AppContext = createContext$1({
|
|
|
109604
109604
|
customSideBar: _
|
|
109605
109605
|
}
|
|
109606
109606
|
),
|
|
109607
|
-
/* @__PURE__ */
|
|
109608
|
-
|
|
109607
|
+
/* @__PURE__ */ jsx(
|
|
109608
|
+
ScrollView,
|
|
109609
109609
|
{
|
|
109610
|
-
className:
|
|
109611
|
-
|
|
109612
|
-
|
|
109613
|
-
|
|
109614
|
-
|
|
109615
|
-
|
|
109616
|
-
|
|
109617
|
-
|
|
109618
|
-
|
|
109619
|
-
|
|
109620
|
-
|
|
109621
|
-
|
|
109622
|
-
|
|
109623
|
-
|
|
109624
|
-
|
|
109625
|
-
|
|
109626
|
-
|
|
109627
|
-
|
|
109628
|
-
|
|
109629
|
-
|
|
109630
|
-
|
|
109631
|
-
|
|
109632
|
-
|
|
109633
|
-
|
|
109634
|
-
|
|
109635
|
-
|
|
109636
|
-
|
|
109637
|
-
|
|
109638
|
-
|
|
109639
|
-
|
|
109640
|
-
|
|
109641
|
-
|
|
109642
|
-
|
|
109643
|
-
|
|
109644
|
-
|
|
109645
|
-
|
|
109646
|
-
|
|
109647
|
-
|
|
109648
|
-
|
|
109649
|
-
|
|
109650
|
-
|
|
109651
|
-
|
|
109652
|
-
|
|
109653
|
-
|
|
109654
|
-
|
|
109655
|
-
|
|
109656
|
-
|
|
109657
|
-
|
|
109658
|
-
|
|
109610
|
+
className: "layout-content-wrapper",
|
|
109611
|
+
onScroll: he,
|
|
109612
|
+
children: /* @__PURE__ */ jsxs(
|
|
109613
|
+
Layout,
|
|
109614
|
+
{
|
|
109615
|
+
className: classNames$1(
|
|
109616
|
+
pe && "is-mobile",
|
|
109617
|
+
_ !== void 0 && "custom-sidebar-layout"
|
|
109618
|
+
),
|
|
109619
|
+
onClick: () => {
|
|
109620
|
+
!N && pe && E && E(!0);
|
|
109621
|
+
},
|
|
109622
|
+
children: [
|
|
109623
|
+
/* @__PURE__ */ jsx(
|
|
109624
|
+
Header$3,
|
|
109625
|
+
{
|
|
109626
|
+
ref: se,
|
|
109627
|
+
notification: k,
|
|
109628
|
+
collapsed: N,
|
|
109629
|
+
toggleCollapse: ye,
|
|
109630
|
+
avatarUrl: m,
|
|
109631
|
+
avatarThumbnailUrl: g,
|
|
109632
|
+
logoUrl: v,
|
|
109633
|
+
applicationsCardData: b,
|
|
109634
|
+
currentApp: C,
|
|
109635
|
+
isMobile: pe,
|
|
109636
|
+
isShowCollapseButton: fe.length > 0 || _ !== void 0,
|
|
109637
|
+
headerTitle: S,
|
|
109638
|
+
profileMenuItems: R,
|
|
109639
|
+
homePageUrl: A,
|
|
109640
|
+
customHeader: I,
|
|
109641
|
+
supportContactData: p,
|
|
109642
|
+
LinkComponent: M,
|
|
109643
|
+
isSwitchTheme: D,
|
|
109644
|
+
theme: B,
|
|
109645
|
+
onChangeLocale: j,
|
|
109646
|
+
lang: z,
|
|
109647
|
+
onSwitchedTheme: H,
|
|
109648
|
+
scrolled: re,
|
|
109649
|
+
onChangeTheme: (xe) => Ce(xe),
|
|
109650
|
+
personalProfile: G,
|
|
109651
|
+
config: ne
|
|
109652
|
+
}
|
|
109653
|
+
),
|
|
109654
|
+
/* @__PURE__ */ jsx(
|
|
109655
|
+
Content$1,
|
|
109656
|
+
{
|
|
109657
|
+
className: `beca-main-content${N ? " collapsed" : ""}`,
|
|
109658
|
+
children: c
|
|
109659
|
+
}
|
|
109660
|
+
)
|
|
109661
|
+
]
|
|
109662
|
+
}
|
|
109663
|
+
)
|
|
109659
109664
|
}
|
|
109660
109665
|
)
|
|
109661
109666
|
]
|
|
@@ -110244,7 +110249,20 @@ const getClassName$C = (a) => {
|
|
|
110244
110249
|
const { className: s } = a;
|
|
110245
110250
|
let c = "beca-scroll-view";
|
|
110246
110251
|
return s && (c += " " + s), c;
|
|
110247
|
-
}, ScrollView = (a) =>
|
|
110252
|
+
}, ScrollView = (a) => {
|
|
110253
|
+
const { onScroll: s, ...c } = a, u = useRef(null);
|
|
110254
|
+
return useEffect(() => {
|
|
110255
|
+
var d;
|
|
110256
|
+
if (s) {
|
|
110257
|
+
const f = (d = u.current.el) == null ? void 0 : d.querySelector(
|
|
110258
|
+
".simplebar-content-wrapper"
|
|
110259
|
+
);
|
|
110260
|
+
f && f.addEventListener("scroll", (p) => {
|
|
110261
|
+
s(p.target.scrollTop);
|
|
110262
|
+
});
|
|
110263
|
+
}
|
|
110264
|
+
}, []), /* @__PURE__ */ jsx(SimpleBar, { ...c, className: getClassName$C(a), ref: u });
|
|
110265
|
+
}, getClassName$B = (a) => {
|
|
110248
110266
|
const { className: s, fullHeight: c, scrollable: u = !0, isCardContent: d } = a;
|
|
110249
110267
|
let f = "beca-card";
|
|
110250
110268
|
return s && (f += " " + s), c && (f += " fullHeight"), u && (f += " card-scrollable"), d && (f += " card-content"), f;
|
|
@@ -116719,29 +116737,29 @@ const ResizableComponent = Resizable, ResizableTitle = (a) => {
|
|
|
116719
116737
|
type: "primary",
|
|
116720
116738
|
status: "default",
|
|
116721
116739
|
onClick: h,
|
|
116722
|
-
...u,
|
|
116723
116740
|
className: classNames$1(
|
|
116724
116741
|
"beca-modal__action-button modal-cancel-button",
|
|
116725
116742
|
u == null ? void 0 : u.className
|
|
116726
116743
|
),
|
|
116744
|
+
...u,
|
|
116727
116745
|
children: d
|
|
116728
116746
|
},
|
|
116729
116747
|
"modalOK"
|
|
116730
116748
|
),
|
|
116731
|
-
!(p != null && p.hidden) && /* @__PURE__ */
|
|
116749
|
+
!(p != null && p.hidden) && /* @__PURE__ */ jsx(
|
|
116732
116750
|
Button,
|
|
116733
116751
|
{
|
|
116734
|
-
...p,
|
|
116735
|
-
key: "modalCancel",
|
|
116736
116752
|
type: "primary",
|
|
116737
116753
|
status: "info",
|
|
116738
116754
|
onClick: m,
|
|
116739
116755
|
className: classNames$1(
|
|
116740
116756
|
"beca-modal__action-button modal-ok-button",
|
|
116741
116757
|
p == null ? void 0 : p.className
|
|
116742
|
-
)
|
|
116758
|
+
),
|
|
116759
|
+
...p,
|
|
116760
|
+
children: f
|
|
116743
116761
|
},
|
|
116744
|
-
|
|
116762
|
+
"modalCancel"
|
|
116745
116763
|
)
|
|
116746
116764
|
],
|
|
116747
116765
|
children: v
|
|
@@ -137626,7 +137644,7 @@ const getClassName$i = (a) => {
|
|
|
137626
137644
|
let c = "beca-picker";
|
|
137627
137645
|
return s && (c += " " + s), c;
|
|
137628
137646
|
}, getDropdownClassName$1 = (a) => {
|
|
137629
|
-
const {
|
|
137647
|
+
const { popupClassName: s } = a;
|
|
137630
137648
|
let c = "beca-picker-dropdown";
|
|
137631
137649
|
return s && (c += " " + s), c;
|
|
137632
137650
|
}, TimePicker = (a) => {
|
|
@@ -137655,7 +137673,7 @@ const getClassName$h = (a) => {
|
|
|
137655
137673
|
let c = "beca-select beca-tree-select";
|
|
137656
137674
|
return s && (c += " " + s), c;
|
|
137657
137675
|
}, getDropdownClassName = (a) => {
|
|
137658
|
-
const {
|
|
137676
|
+
const { popupClassName: s } = a;
|
|
137659
137677
|
let c = "beca-select-dropdown beca-tree-select-dropdown";
|
|
137660
137678
|
return s && (c += " " + s), c;
|
|
137661
137679
|
}, TreeSelect = (a) => {
|
|
@@ -137670,7 +137688,7 @@ const getClassName$h = (a) => {
|
|
|
137670
137688
|
{
|
|
137671
137689
|
...a,
|
|
137672
137690
|
className: getClassName$h(a),
|
|
137673
|
-
|
|
137691
|
+
popupClassName: getDropdownClassName(a),
|
|
137674
137692
|
suffixIcon: s ?? /* @__PURE__ */ jsx(SvgArrowDownOutlinedStyle, {}),
|
|
137675
137693
|
switcherIcon: c ?? /* @__PURE__ */ jsx(SvgArrowDownOutlinedStyle, {}),
|
|
137676
137694
|
removeIcon: /* @__PURE__ */ jsx(SvgCloseOutlinedStyle, {}),
|
|
@@ -3,6 +3,6 @@ import type { UploadChangeParam as AntUploadChangeParam } from "antd/es/upload";
|
|
|
3
3
|
import type { RcFile as AntRcFile, UploadFile as AntUploadFile } from "antd/es/upload/interface";
|
|
4
4
|
export interface UploadProps extends AntUploadProps {
|
|
5
5
|
}
|
|
6
|
-
export type UploadChangeParam<T> = AntUploadChangeParam<T>;
|
|
6
|
+
export type UploadChangeParam<T = any> = AntUploadChangeParam<T>;
|
|
7
7
|
export type RcFile = AntRcFile;
|
|
8
|
-
export type UploadFile<T> = AntUploadFile<T>;
|
|
8
|
+
export type UploadFile<T = any> = AntUploadFile<T>;
|