@bwg-ui/core 1.1.1 → 1.1.3
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/chunks/AuthContext-CXng9fj0.cjs +1 -0
- package/dist/chunks/AuthContext-CXng9fj0.cjs.map +1 -0
- package/dist/chunks/AuthContext-Ei2P-z4d.js +1 -0
- package/dist/chunks/AuthContext-Ei2P-z4d.js.map +1 -0
- package/dist/chunks/{BwgLargeUploader-BeI8oV8y.js → BwgLargeUploader-CZllyq7K.js} +516 -506
- package/dist/chunks/BwgLargeUploader-CZllyq7K.js.map +1 -0
- package/dist/chunks/BwgLargeUploader-xAjj4TQ1.cjs +3 -0
- package/dist/chunks/BwgLargeUploader-xAjj4TQ1.cjs.map +1 -0
- package/dist/chunks/BwgSpace-CnLM4qcg.js +1 -0
- package/dist/chunks/BwgSpace-CnLM4qcg.js.map +1 -0
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +1 -0
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs.map +1 -0
- package/dist/chunks/{FileUtils-CCBueCSG.cjs → FileUtils-CmK-zHC5.cjs} +2 -1
- package/dist/chunks/FileUtils-CmK-zHC5.cjs.map +1 -0
- package/dist/chunks/{FileUtils-BcnoJ2zn.js → FileUtils-DsA-Sw37.js} +2 -1
- package/dist/chunks/FileUtils-DsA-Sw37.js.map +1 -0
- package/dist/chunks/PublicLayout-BiTPwkVq.cjs +1 -0
- package/dist/chunks/PublicLayout-BiTPwkVq.cjs.map +1 -0
- package/dist/chunks/PublicLayout-g9WMtoZ0.js +1 -0
- package/dist/chunks/PublicLayout-g9WMtoZ0.js.map +1 -0
- package/dist/chunks/{SSOHandler-DVa4JKKb.js → SSOHandler-BFys-2Zz.js} +1648 -1642
- package/dist/chunks/SSOHandler-BFys-2Zz.js.map +1 -0
- package/dist/chunks/SSOHandler-De8MPtGZ.cjs +184 -0
- package/dist/chunks/SSOHandler-De8MPtGZ.cjs.map +1 -0
- package/dist/chunks/ScreenProtectContext-ofv2QgMp.cjs +1 -0
- package/dist/chunks/ScreenProtectContext-ofv2QgMp.cjs.map +1 -0
- package/dist/chunks/ScreenProtectContext-zByHldrr.js +1 -0
- package/dist/chunks/ScreenProtectContext-zByHldrr.js.map +1 -0
- package/dist/chunks/{SearchBoxContext-DhKP2pQj.js → SearchBoxContext-CzDzVCVm.js} +2 -1
- package/dist/chunks/SearchBoxContext-CzDzVCVm.js.map +1 -0
- package/dist/chunks/{SearchBoxContext-B1nxG-Wd.cjs → SearchBoxContext-mcPWk862.cjs} +2 -1
- package/dist/chunks/SearchBoxContext-mcPWk862.cjs.map +1 -0
- package/dist/chunks/{UtilsContext-CLJwXO1Q.cjs → UtilsContext-5l7yFRQI.cjs} +2 -1
- package/dist/chunks/UtilsContext-5l7yFRQI.cjs.map +1 -0
- package/dist/chunks/{UtilsContext-CwVwmfrg.js → UtilsContext-CSgz9o2Z.js} +4 -3
- package/dist/chunks/UtilsContext-CSgz9o2Z.js.map +1 -0
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js +1 -0
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js.map +1 -0
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs.map +1 -0
- package/dist/chunks/{codeStore-B_4WPxpS.cjs → codeStore-BG8S_mdS.cjs} +2 -1
- package/dist/chunks/codeStore-BG8S_mdS.cjs.map +1 -0
- package/dist/chunks/{codeStore-9alVvK1W.js → codeStore-rU4v3QIA.js} +2 -1
- package/dist/chunks/codeStore-rU4v3QIA.js.map +1 -0
- package/dist/chunks/commonUtils-BV6WFv-z.js +1 -0
- package/dist/chunks/commonUtils-BV6WFv-z.js.map +1 -0
- package/dist/chunks/commonUtils-L9Jgc5y-.cjs +1 -0
- package/dist/chunks/commonUtils-L9Jgc5y-.cjs.map +1 -0
- package/dist/chunks/envUtils-C9Gf5aek.js +1 -0
- package/dist/chunks/envUtils-C9Gf5aek.js.map +1 -0
- package/dist/chunks/envUtils-CduTHoHu.cjs +1 -0
- package/dist/chunks/envUtils-CduTHoHu.cjs.map +1 -0
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +1 -0
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +1 -0
- package/dist/chunks/jsx-runtime-Dpn_P65e.js +1 -0
- package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +1 -0
- package/dist/chunks/{menuStore-BwLORbDu.cjs → menuStore-CBvENehP.cjs} +2 -1
- package/dist/chunks/menuStore-CBvENehP.cjs.map +1 -0
- package/dist/chunks/{menuStore-DXn19Xnr.js → menuStore-CvQrMo35.js} +2 -1
- package/dist/chunks/menuStore-CvQrMo35.js.map +1 -0
- package/dist/chunks/popupStore-BGubYHZh.cjs +2 -0
- package/dist/chunks/popupStore-BGubYHZh.cjs.map +1 -0
- package/dist/chunks/{popupStore-JBIRLYTL.js → popupStore-BJ_IYrdY.js} +3 -2
- package/dist/chunks/popupStore-BJ_IYrdY.js.map +1 -0
- package/dist/chunks/realFormat-Cha7OTd9.cjs +1 -0
- package/dist/chunks/realFormat-Cha7OTd9.cjs.map +1 -0
- package/dist/chunks/realFormat-DRGLFabQ.js +1 -0
- package/dist/chunks/realFormat-DRGLFabQ.js.map +1 -0
- package/dist/chunks/serviceConfig-Cc8jfw_Y.cjs +3 -0
- package/dist/chunks/serviceConfig-Cc8jfw_Y.cjs.map +1 -0
- package/dist/chunks/{serviceConfig-4iBLfLzF.js → serviceConfig-lAlRNVIw.js} +1 -1
- package/dist/chunks/serviceConfig-lAlRNVIw.js.map +1 -0
- package/dist/components/common/BwgButtonGroup.d.ts +1 -0
- package/dist/components/common/BwgButtonGroup.d.ts.map +1 -0
- package/dist/components/common/BwgCmptArea.d.ts +1 -0
- package/dist/components/common/BwgCmptArea.d.ts.map +1 -0
- package/dist/components/common/BwgCol.d.ts +1 -0
- package/dist/components/common/BwgCol.d.ts.map +1 -0
- package/dist/components/common/BwgConfigProvider.d.ts +1 -0
- package/dist/components/common/BwgConfigProvider.d.ts.map +1 -0
- package/dist/components/common/BwgDrawer.d.ts +1 -0
- package/dist/components/common/BwgDrawer.d.ts.map +1 -0
- package/dist/components/common/BwgGrid.d.ts +3 -0
- package/dist/components/common/BwgGrid.d.ts.map +1 -0
- package/dist/components/common/BwgInfoArea.d.ts +1 -0
- package/dist/components/common/BwgInfoArea.d.ts.map +1 -0
- package/dist/components/common/BwgPopup.d.ts +1 -0
- package/dist/components/common/BwgPopup.d.ts.map +1 -0
- package/dist/components/common/BwgRow.d.ts +1 -0
- package/dist/components/common/BwgRow.d.ts.map +1 -0
- package/dist/components/common/BwgSpace.d.ts +1 -0
- package/dist/components/common/BwgSpace.d.ts.map +1 -0
- package/dist/components/common/BwgTable.d.ts +1 -0
- package/dist/components/common/BwgTable.d.ts.map +1 -0
- package/dist/components/common/BwgTabs.d.ts +1 -0
- package/dist/components/common/BwgTabs.d.ts.map +1 -0
- package/dist/components/common/BwgTitleBox.d.ts +1 -0
- package/dist/components/common/BwgTitleBox.d.ts.map +1 -0
- package/dist/components/common/BwgView.d.ts +1 -0
- package/dist/components/common/BwgView.d.ts.map +1 -0
- package/dist/components/common/ContentBox.d.ts +1 -0
- package/dist/components/common/ContentBox.d.ts.map +1 -0
- package/dist/components/common/ContentLayOut.d.ts +1 -0
- package/dist/components/common/ContentLayOut.d.ts.map +1 -0
- package/dist/components/common/GlobalConfigProvider.d.ts +1 -0
- package/dist/components/common/GlobalConfigProvider.d.ts.map +1 -0
- package/dist/components/common/QuickServiceToggle.d.ts +1 -0
- package/dist/components/common/QuickServiceToggle.d.ts.map +1 -0
- package/dist/components/common/SSOHandler.d.ts +1 -0
- package/dist/components/common/SSOHandler.d.ts.map +1 -0
- package/dist/components/common/SearchBox.d.ts +1 -0
- package/dist/components/common/SearchBox.d.ts.map +1 -0
- package/dist/components/common/index.cjs +2 -1
- package/dist/components/common/index.cjs.map +1 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/common/index.d.ts.map +1 -0
- package/dist/components/common/index.js +2 -1
- package/dist/components/common/index.js.map +1 -0
- package/dist/components/core/BwgButton.d.ts +1 -0
- package/dist/components/core/BwgButton.d.ts.map +1 -0
- package/dist/components/core/BwgCheck.d.ts +1 -0
- package/dist/components/core/BwgCheck.d.ts.map +1 -0
- package/dist/components/core/BwgCheckList.d.ts +1 -0
- package/dist/components/core/BwgCheckList.d.ts.map +1 -0
- package/dist/components/core/BwgDatePicker.d.ts +1 -0
- package/dist/components/core/BwgDatePicker.d.ts.map +1 -0
- package/dist/components/core/BwgForm.d.ts +1 -0
- package/dist/components/core/BwgForm.d.ts.map +1 -0
- package/dist/components/core/BwgFormItem.d.ts +2 -1
- package/dist/components/core/BwgFormItem.d.ts.map +1 -0
- package/dist/components/core/BwgInput.d.ts +1 -0
- package/dist/components/core/BwgInput.d.ts.map +1 -0
- package/dist/components/core/BwgLargeUploader.d.ts +1 -0
- package/dist/components/core/BwgLargeUploader.d.ts.map +1 -0
- package/dist/components/core/BwgMaskedInput.d.ts +1 -0
- package/dist/components/core/BwgMaskedInput.d.ts.map +1 -0
- package/dist/components/core/BwgMaskedPicker.d.ts +1 -0
- package/dist/components/core/BwgMaskedPicker.d.ts.map +1 -0
- package/dist/components/core/BwgMultiSelect.d.ts +1 -0
- package/dist/components/core/BwgMultiSelect.d.ts.map +1 -0
- package/dist/components/core/BwgNumber.d.ts +1 -0
- package/dist/components/core/BwgNumber.d.ts.map +1 -0
- package/dist/components/core/BwgRadio.d.ts +1 -0
- package/dist/components/core/BwgRadio.d.ts.map +1 -0
- package/dist/components/core/BwgRangePicker.d.ts +1 -0
- package/dist/components/core/BwgRangePicker.d.ts.map +1 -0
- package/dist/components/core/BwgSearch.d.ts +1 -0
- package/dist/components/core/BwgSearch.d.ts.map +1 -0
- package/dist/components/core/BwgSelect.d.ts +1 -0
- package/dist/components/core/BwgSelect.d.ts.map +1 -0
- package/dist/components/core/BwgTextArea.d.ts +1 -0
- package/dist/components/core/BwgTextArea.d.ts.map +1 -0
- package/dist/components/core/BwgUploader.d.ts +1 -0
- package/dist/components/core/BwgUploader.d.ts.map +1 -0
- package/dist/components/core/index.cjs +2 -1
- package/dist/components/core/index.cjs.map +1 -0
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -0
- package/dist/components/core/index.js +2 -1
- package/dist/components/core/index.js.map +1 -0
- package/dist/components/guide/BwgComponentGuide.d.ts +1 -0
- package/dist/components/guide/BwgComponentGuide.d.ts.map +1 -0
- package/dist/components/guide/BwgDeveloperGuide.d.ts +1 -0
- package/dist/components/guide/BwgDeveloperGuide.d.ts.map +1 -0
- package/dist/components/guide/index.cjs +1 -0
- package/dist/components/guide/index.cjs.map +1 -0
- package/dist/components/guide/index.d.ts +1 -0
- package/dist/components/guide/index.d.ts.map +1 -0
- package/dist/components/guide/index.js +1 -0
- package/dist/components/guide/index.js.map +1 -0
- package/dist/components/layout/ProgressOverlay.d.ts +1 -0
- package/dist/components/layout/ProgressOverlay.d.ts.map +1 -0
- package/dist/components/layout/ProtectLayout.d.ts +1 -0
- package/dist/components/layout/ProtectLayout.d.ts.map +1 -0
- package/dist/components/layout/PublicLayout.d.ts +1 -0
- package/dist/components/layout/PublicLayout.d.ts.map +1 -0
- package/dist/components/layout/index.cjs +1 -0
- package/dist/components/layout/index.cjs.map +1 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/index.js +1 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -0
- package/dist/provider/contexts/AuthContext.d.ts +1 -0
- package/dist/provider/contexts/AuthContext.d.ts.map +1 -0
- package/dist/provider/contexts/CommonCodeContext.d.ts +6 -5
- package/dist/provider/contexts/CommonCodeContext.d.ts.map +1 -0
- package/dist/provider/contexts/ScreenProtectContext.d.ts +1 -0
- package/dist/provider/contexts/ScreenProtectContext.d.ts.map +1 -0
- package/dist/provider/contexts/SearchBoxContext.d.ts +1 -0
- package/dist/provider/contexts/SearchBoxContext.d.ts.map +1 -0
- package/dist/provider/contexts/ServiceCodeContext.d.ts +1 -0
- package/dist/provider/contexts/ServiceCodeContext.d.ts.map +1 -0
- package/dist/provider/contexts/UtilsContext.d.ts +1 -0
- package/dist/provider/contexts/UtilsContext.d.ts.map +1 -0
- package/dist/provider/contexts/index.d.ts +1 -0
- package/dist/provider/contexts/index.d.ts.map +1 -0
- package/dist/provider/hooks/index.d.ts +1 -0
- package/dist/provider/hooks/index.d.ts.map +1 -0
- package/dist/provider/hooks/usePopup.d.ts +2 -1
- package/dist/provider/hooks/usePopup.d.ts.map +1 -0
- package/dist/provider/hooks/useViewState.d.ts +1 -0
- package/dist/provider/hooks/useViewState.d.ts.map +1 -0
- package/dist/provider/index.cjs +2 -1
- package/dist/provider/index.cjs.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +3 -2
- package/dist/provider/index.js.map +1 -0
- package/dist/public/realgrid/css/realgrid-style-custom.css +643 -0
- package/dist/public/realgrid/css/realgrid-style.css +1902 -0
- package/dist/public/realgrid/images/ico_c.png +0 -0
- package/dist/public/realgrid/images/ico_d.png +0 -0
- package/dist/public/realgrid/images/ico_jp.png +0 -0
- package/dist/public/realgrid/images/ico_mp.png +0 -0
- package/dist/public/realgrid/images/ico_n.png +0 -0
- package/dist/public/realgrid/images/ico_nd.png +0 -0
- package/dist/public/realgrid/images/ico_p.png +0 -0
- package/dist/public/realgrid/images/ico_r.png +0 -0
- package/dist/public/realgrid/images/ico_sp.png +0 -0
- package/dist/public/realgrid/images/ico_u.png +0 -0
- package/dist/public/realgrid/images/ico_wt.png +0 -0
- package/dist/stores/codeStore.d.ts +4 -3
- package/dist/stores/codeStore.d.ts.map +1 -0
- package/dist/stores/favoriteStore.d.ts +1 -0
- package/dist/stores/favoriteStore.d.ts.map +1 -0
- package/dist/stores/index.cjs +2 -1
- package/dist/stores/index.cjs.map +1 -0
- package/dist/stores/index.d.ts +2 -1
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/index.js +6 -5
- package/dist/stores/index.js.map +1 -0
- package/dist/stores/menuStore.d.ts +1 -0
- package/dist/stores/menuStore.d.ts.map +1 -0
- package/dist/stores/popupStore.d.ts +1 -0
- package/dist/stores/popupStore.d.ts.map +1 -0
- package/dist/stores/userStore.d.ts +4 -3
- package/dist/stores/userStore.d.ts.map +1 -0
- package/dist/styles/components.css +50 -17
- package/dist/styles/layout.css +7 -0
- package/dist/styles/popup.css +4 -0
- package/dist/styles/variables.css +7 -1
- package/dist/utils/FileUtils.d.ts +1 -0
- package/dist/utils/FileUtils.d.ts.map +1 -0
- package/dist/utils/apiUtils.d.ts +1 -0
- package/dist/utils/apiUtils.d.ts.map +1 -0
- package/dist/utils/arrayUtils.d.ts +1 -0
- package/dist/utils/arrayUtils.d.ts.map +1 -0
- package/dist/utils/commonUtils.d.ts +1 -0
- package/dist/utils/commonUtils.d.ts.map +1 -0
- package/dist/utils/cookieUtils.d.ts +1 -0
- package/dist/utils/cookieUtils.d.ts.map +1 -0
- package/dist/utils/dateUtils.d.ts +1 -0
- package/dist/utils/dateUtils.d.ts.map +1 -0
- package/dist/utils/envUtils.d.ts +1 -0
- package/dist/utils/envUtils.d.ts.map +1 -0
- package/dist/utils/imageUtils.d.ts +1 -0
- package/dist/utils/imageUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +2 -1
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -2
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/messageUtils.d.ts +1 -0
- package/dist/utils/messageUtils.d.ts.map +1 -0
- package/dist/utils/notificationUtils.d.ts +1 -0
- package/dist/utils/notificationUtils.d.ts.map +1 -0
- package/dist/utils/objectUtils.d.ts +1 -0
- package/dist/utils/objectUtils.d.ts.map +1 -0
- package/dist/utils/realFormat.d.ts +1 -0
- package/dist/utils/realFormat.d.ts.map +1 -0
- package/dist/utils/serviceConfig.d.ts +1 -0
- package/dist/utils/serviceConfig.d.ts.map +1 -0
- package/dist/utils/stringUtils.d.ts +1 -0
- package/dist/utils/stringUtils.d.ts.map +1 -0
- package/dist/utils/userUtils.d.ts +2 -1
- package/dist/utils/userUtils.d.ts.map +1 -0
- package/package.json +20 -44
- package/dist/chunks/BwgLargeUploader-BOf905_l.cjs +0 -2
- package/dist/chunks/SSOHandler-DiwKoTdN.cjs +0 -183
- package/dist/chunks/popupStore-D_-Wpcao.cjs +0 -1
- package/dist/chunks/serviceConfig-B5UJqk4b.cjs +0 -2
- package/dist/public/styles/assets/images/contents/icon/ico-business-trip.svg +0 -21
- package/dist/public/styles/assets/images/contents/icon/ico-holiday.svg +0 -23
- package/dist/public/styles/assets/images/contents/icon/ico-menu-help.svg +0 -5
- package/dist/public/styles/assets/images/contents/icon/ico-overtime.svg +0 -17
- package/dist/public/styles/assets/images/contents/icon/ico-quick-tab-move.svg +0 -8
- package/dist/public/styles/assets/images/contents/icon/quick tab-text.svg +0 -4
- package/dist/public/styles/assets/images/contents/icon/quick-tab-text.svg +0 -4
- package/dist/public/test.txt +0 -0
- package/dist/styles/assets/images/contents/icon/quick tab-text.svg +0 -4
- package/dist/test.txt +0 -0
- package/public/styles/assets/images/contents/icon/ico-business-trip.svg +0 -21
- package/public/styles/assets/images/contents/icon/ico-holiday.svg +0 -23
- package/public/styles/assets/images/contents/icon/ico-menu-help.svg +0 -5
- package/public/styles/assets/images/contents/icon/ico-overtime.svg +0 -17
- package/public/styles/assets/images/contents/icon/ico-quick-tab-move.svg +0 -8
- package/public/styles/assets/images/contents/icon/quick tab-text.svg +0 -4
- package/public/styles/assets/images/contents/icon/quick-tab-text.svg +0 -4
- package/public/test.txt +0 -0
|
@@ -1,43 +1,52 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-Dpn_P65e.js";
|
|
2
2
|
import { Form as k, Select as be, Space as te, Typography as We, Input as G, Button as q, DatePicker as Te, Radio as vt, Checkbox as me, ConfigProvider as Dt, InputNumber as yt, message as C, Upload as H, Spin as St, Card as Ot, List as ue, Tooltip as bt, Flex as Pe, Progress as Tt, notification as Ct } from "antd";
|
|
3
3
|
import Ze, { forwardRef as It, useMemo as M, useRef as re, useEffect as Y, useState as F, createContext as Et, memo as wt, useLayoutEffect as xt, useCallback as Nt, isValidElement as Pt, cloneElement as Me, useContext as Mt } from "react";
|
|
4
|
-
import { u as Rt } from "./popupStore-
|
|
4
|
+
import { u as Rt } from "./popupStore-BJ_IYrdY.js";
|
|
5
5
|
import { SearchOutlined as _t, UploadOutlined as Je, CloseCircleOutlined as Lt, DeleteOutlined as jt, InboxOutlined as Ft, CloudUploadOutlined as kt, CheckCircleOutlined as Yt, FileTextOutlined as At } from "@ant-design/icons";
|
|
6
6
|
import Qe from "imask";
|
|
7
7
|
import P from "dayjs";
|
|
8
|
-
import { V as z, a7 as $ } from "./serviceConfig-
|
|
8
|
+
import { V as z, a7 as $ } from "./serviceConfig-lAlRNVIw.js";
|
|
9
9
|
import { findIndex as W } from "lodash";
|
|
10
10
|
import { g as Ht } from "./_commonjsHelpers-C6fGbg64.js";
|
|
11
11
|
import Bt from "jszip";
|
|
12
12
|
const w = Ze.memo(
|
|
13
|
-
({
|
|
14
|
-
|
|
13
|
+
({
|
|
14
|
+
children: t,
|
|
15
|
+
label: e,
|
|
16
|
+
name: r,
|
|
17
|
+
rules: n,
|
|
18
|
+
initialValue: i,
|
|
19
|
+
style: o,
|
|
20
|
+
...s
|
|
21
|
+
}) => {
|
|
22
|
+
const a = {
|
|
15
23
|
fontWeight: "bold"
|
|
16
|
-
},
|
|
24
|
+
}, u = Array.isArray(n) && n.some((l) => l.required === !0), g = () => typeof e == "string" ? /* @__PURE__ */ c.jsxs("span", { style: a, children: [
|
|
17
25
|
e,
|
|
18
|
-
|
|
19
|
-
] }) : /* @__PURE__ */ c.jsx("span", { style:
|
|
26
|
+
u && /* @__PURE__ */ c.jsx("span", { style: { color: "#ff4d4f", marginLeft: "4px" }, children: "*" })
|
|
27
|
+
] }) : /* @__PURE__ */ c.jsx("span", { style: a, children: e });
|
|
20
28
|
return /* @__PURE__ */ c.jsx(
|
|
21
29
|
k.Item,
|
|
22
30
|
{
|
|
23
31
|
className: "bwg-form-item",
|
|
24
|
-
label:
|
|
32
|
+
label: e ? g() : void 0,
|
|
25
33
|
labelAlign: "left",
|
|
26
34
|
name: r,
|
|
27
35
|
rules: n,
|
|
28
36
|
colon: !1,
|
|
29
|
-
initialValue:
|
|
30
|
-
style:
|
|
37
|
+
initialValue: i,
|
|
38
|
+
style: o,
|
|
39
|
+
...s,
|
|
31
40
|
children: t
|
|
32
41
|
}
|
|
33
42
|
);
|
|
34
43
|
}
|
|
35
44
|
), Ut = It(
|
|
36
|
-
({ children: t, labelCol: e, style: r, className: n, ...
|
|
45
|
+
({ children: t, labelCol: e, style: r, className: n, ...i }, o) => /* @__PURE__ */ c.jsx(
|
|
37
46
|
k,
|
|
38
47
|
{
|
|
39
|
-
ref:
|
|
40
|
-
...
|
|
48
|
+
ref: o,
|
|
49
|
+
...i,
|
|
41
50
|
requiredMark: !1,
|
|
42
51
|
labelCol: e || { flex: "100px" },
|
|
43
52
|
style: { padding: "10px", ...r },
|
|
@@ -47,20 +56,20 @@ const w = Ze.memo(
|
|
|
47
56
|
)
|
|
48
57
|
);
|
|
49
58
|
Ut.displayName = "BwgForm";
|
|
50
|
-
const
|
|
59
|
+
const Ci = ({
|
|
51
60
|
itemProps: t,
|
|
52
61
|
selectProps: e = {
|
|
53
62
|
options: [],
|
|
54
63
|
allowClear: !0
|
|
55
64
|
}
|
|
56
65
|
}) => {
|
|
57
|
-
const r = k.useFormInstance(), n = !!r,
|
|
66
|
+
const r = k.useFormInstance(), n = !!r, i = M(() => e?.addField === "ALL" ? [{ label: "전체", value: "" }, ...e?.options || []] : e?.addField === "NULL" ? [{ label: "", value: "" }, ...e?.options || []] : e?.options || [], [e.options, e.addField]), o = (u) => {
|
|
58
67
|
e.onChange?.(u);
|
|
59
68
|
}, s = {
|
|
60
69
|
...e,
|
|
61
70
|
allowClear: e.allowClear ?? !0,
|
|
62
|
-
options:
|
|
63
|
-
onChange:
|
|
71
|
+
options: i,
|
|
72
|
+
onChange: o,
|
|
64
73
|
variant: e.variant
|
|
65
74
|
};
|
|
66
75
|
console.log("selectComponentProps :: ", s);
|
|
@@ -101,19 +110,19 @@ const Io = ({
|
|
|
101
110
|
}
|
|
102
111
|
)
|
|
103
112
|
] }) }) : /* @__PURE__ */ c.jsx(w, { ...t, children: a });
|
|
104
|
-
}, Re = G.Search,
|
|
105
|
-
const e = k.useFormInstance(), { openPopup: r } = Rt(), n = t.itemProps?.name || [],
|
|
113
|
+
}, Re = G.Search, Ii = (t) => {
|
|
114
|
+
const e = k.useFormInstance(), { openPopup: r } = Rt(), n = t.itemProps?.name || [], i = t.popupConfig || {
|
|
106
115
|
callback(s) {
|
|
107
116
|
console.log("callback data :: ", s), n.length > 1 ? (e.setFieldValue(n[0], s.code), e.setFieldValue(n[1], s.name)) : e.setFieldValue(n, s.code);
|
|
108
117
|
}
|
|
109
|
-
},
|
|
118
|
+
}, o = {
|
|
110
119
|
...t,
|
|
111
120
|
placeholder: typeof t.placeholder == "string" ? t.placeholder : t.placeholder?.[0] || "",
|
|
112
121
|
onChange: (s) => {
|
|
113
122
|
n.length > 1 && e.setFieldValue(n[0], ""), t.onChange?.(s);
|
|
114
123
|
},
|
|
115
124
|
onSearch: (s) => {
|
|
116
|
-
t.popuCd ? r(t.popuCd, t.popupParams,
|
|
125
|
+
t.popuCd ? r(t.popuCd, t.popupParams, i) : t.onSearch?.(s);
|
|
117
126
|
}
|
|
118
127
|
};
|
|
119
128
|
return n.length > 1 ? /* @__PURE__ */ c.jsx(w, { ...t.itemProps, name: void 0, children: /* @__PURE__ */ c.jsxs(te.Compact, { block: !0, children: [
|
|
@@ -146,10 +155,10 @@ const Io = ({
|
|
|
146
155
|
disabled: t.readOnly
|
|
147
156
|
}
|
|
148
157
|
),
|
|
149
|
-
...
|
|
158
|
+
...o
|
|
150
159
|
}
|
|
151
160
|
) })
|
|
152
|
-
] }) }) : /* @__PURE__ */ c.jsx(w, { ...t.itemProps, children: /* @__PURE__ */ c.jsx(Re, { ...
|
|
161
|
+
] }) }) : /* @__PURE__ */ c.jsx(w, { ...t.itemProps, children: /* @__PURE__ */ c.jsx(Re, { ...o }) });
|
|
153
162
|
}, Vt = (t) => {
|
|
154
163
|
if (typeof t == "string")
|
|
155
164
|
return t.replace(/0/g, "_");
|
|
@@ -158,26 +167,26 @@ const Io = ({
|
|
|
158
167
|
if (typeof t == "object" && "mask" in t && "blocks" in t) {
|
|
159
168
|
const { mask: e, blocks: r } = t;
|
|
160
169
|
return e.split(".").map((n) => {
|
|
161
|
-
const
|
|
162
|
-
return "_".repeat(
|
|
170
|
+
const o = r?.[n]?.maxLength ?? 3;
|
|
171
|
+
return "_".repeat(o);
|
|
163
172
|
}).join(".");
|
|
164
173
|
}
|
|
165
174
|
return "";
|
|
166
|
-
},
|
|
175
|
+
}, Ei = ({
|
|
167
176
|
itemProps: t,
|
|
168
177
|
inputProps: e,
|
|
169
178
|
mask: r
|
|
170
179
|
}) => {
|
|
171
|
-
const n = re(null),
|
|
180
|
+
const n = re(null), i = k.useFormInstance(), o = M(() => Vt(r), [r]);
|
|
172
181
|
return Y(() => {
|
|
173
182
|
if (!n.current?.input) return;
|
|
174
183
|
const s = typeof r == "string" || Array.isArray(r) ? { mask: r } : r, a = Qe(n.current.input, s);
|
|
175
184
|
return a.on("accept", () => {
|
|
176
|
-
|
|
185
|
+
i && t?.name && i.setFieldValue(t.name, a.value);
|
|
177
186
|
}), () => {
|
|
178
187
|
a.destroy();
|
|
179
188
|
};
|
|
180
|
-
}, [r,
|
|
189
|
+
}, [r, i, t?.name]), /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsx(G, { ...e, ref: n, placeholder: o }) });
|
|
181
190
|
}, $t = (t) => {
|
|
182
191
|
switch (t) {
|
|
183
192
|
case "year":
|
|
@@ -192,26 +201,26 @@ const Io = ({
|
|
|
192
201
|
outputFormat: "YYYYMMDD"
|
|
193
202
|
};
|
|
194
203
|
}
|
|
195
|
-
},
|
|
204
|
+
}, wi = ({
|
|
196
205
|
type: t = "date",
|
|
197
206
|
itemProps: e = { name: "calendar" },
|
|
198
207
|
inputProps: r
|
|
199
208
|
}) => {
|
|
200
|
-
const { format: n, mask:
|
|
209
|
+
const { format: n, mask: i, outputFormat: o } = $t(t), s = re(null), a = re(null), u = k.useFormInstance(), [g, l] = F(!1), [y, v] = F(!1), f = e?.name, [p, h] = F(null);
|
|
201
210
|
Y(() => {
|
|
202
211
|
if (!s.current?.input) return;
|
|
203
212
|
const m = Qe(s.current.input, {
|
|
204
|
-
mask:
|
|
213
|
+
mask: i,
|
|
205
214
|
lazy: !1
|
|
206
215
|
});
|
|
207
216
|
return a.current = m, m.on("accept", () => {
|
|
208
217
|
console.log("input :: ", m.value);
|
|
209
|
-
const
|
|
210
|
-
console.log("input :: ", S),
|
|
218
|
+
const d = m.value, S = P(d, n, !0);
|
|
219
|
+
console.log("input :: ", S), d.length === n.length && S.isValid() && (console.log("parsed :: ", S.format(o)), u.setFieldValue(f, S.format(o)), a.current.updateValue(), l(!1));
|
|
211
220
|
}), () => {
|
|
212
221
|
m.destroy();
|
|
213
222
|
};
|
|
214
|
-
}, [n,
|
|
223
|
+
}, [n, i]), Y(() => {
|
|
215
224
|
h(P(u.getFieldValue(f)));
|
|
216
225
|
}, [u.getFieldValue(f)]);
|
|
217
226
|
const O = (m) => {
|
|
@@ -219,8 +228,8 @@ const Io = ({
|
|
|
219
228
|
a.current?.updateValue();
|
|
220
229
|
return;
|
|
221
230
|
}
|
|
222
|
-
const
|
|
223
|
-
console.log("formatted :: ",
|
|
231
|
+
const d = m.format(o);
|
|
232
|
+
console.log("formatted :: ", d), a.current && (a.current.value = d, a.current.updateValue()), v(!1);
|
|
224
233
|
};
|
|
225
234
|
return /* @__PURE__ */ c.jsx(
|
|
226
235
|
w,
|
|
@@ -237,7 +246,7 @@ const Io = ({
|
|
|
237
246
|
getValueProps: (m) => ({
|
|
238
247
|
value: m ? P(m).format(n) : void 0
|
|
239
248
|
}),
|
|
240
|
-
normalize: (m) => m ? P(m).format(
|
|
249
|
+
normalize: (m) => m ? P(m).format(o) : void 0,
|
|
241
250
|
noStyle: !0,
|
|
242
251
|
children: /* @__PURE__ */ c.jsx(
|
|
243
252
|
G,
|
|
@@ -245,13 +254,13 @@ const Io = ({
|
|
|
245
254
|
...r,
|
|
246
255
|
ref: s,
|
|
247
256
|
onFocus: () => {
|
|
248
|
-
|
|
257
|
+
l(!g), a.current?.updateValue();
|
|
249
258
|
},
|
|
250
259
|
onKeyDown: (m) => {
|
|
251
|
-
m.key === "Backspace" &&
|
|
260
|
+
m.key === "Backspace" && l(!0), m.key === "Tab" && l(!1);
|
|
252
261
|
},
|
|
253
262
|
allowClear: !0,
|
|
254
|
-
placeholder:
|
|
263
|
+
placeholder: i.replace(/0/g, "_"),
|
|
255
264
|
autoComplete: "off"
|
|
256
265
|
}
|
|
257
266
|
)
|
|
@@ -260,7 +269,7 @@ const Io = ({
|
|
|
260
269
|
/* @__PURE__ */ c.jsx(
|
|
261
270
|
Te,
|
|
262
271
|
{
|
|
263
|
-
open:
|
|
272
|
+
open: g,
|
|
264
273
|
picker: t,
|
|
265
274
|
format: n,
|
|
266
275
|
value: p,
|
|
@@ -279,22 +288,22 @@ const Io = ({
|
|
|
279
288
|
] })
|
|
280
289
|
}
|
|
281
290
|
);
|
|
282
|
-
},
|
|
291
|
+
}, xi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsx(G, { ...e }) }), Ni = ({
|
|
283
292
|
itemProps: t,
|
|
284
293
|
inputProps: e,
|
|
285
294
|
type: r = "date",
|
|
286
295
|
useMask: n = !1
|
|
287
296
|
}) => {
|
|
288
|
-
const
|
|
297
|
+
const i = {
|
|
289
298
|
year: { displayFormat: "YYYY", outputFormat: "YYYY" },
|
|
290
299
|
month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
|
|
291
300
|
date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" }
|
|
292
|
-
}, { displayFormat:
|
|
301
|
+
}, { displayFormat: o, outputFormat: s } = i[r], a = (u, g) => {
|
|
293
302
|
if (e?.onChange && typeof e.onChange == "function") {
|
|
294
|
-
let
|
|
295
|
-
u instanceof P ?
|
|
296
|
-
|
|
297
|
-
})), e.onChange(
|
|
303
|
+
let l;
|
|
304
|
+
u instanceof P ? l = u.format(s) : (l = [], u && u.map((y) => {
|
|
305
|
+
l.push(y.format(s));
|
|
306
|
+
})), e.onChange(l, g);
|
|
298
307
|
}
|
|
299
308
|
};
|
|
300
309
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -309,28 +318,28 @@ const Io = ({
|
|
|
309
318
|
Te,
|
|
310
319
|
{
|
|
311
320
|
...e,
|
|
312
|
-
format: n ? { format:
|
|
321
|
+
format: n ? { format: o, type: "mask" } : void 0,
|
|
313
322
|
onChange: a
|
|
314
323
|
}
|
|
315
324
|
)
|
|
316
325
|
}
|
|
317
326
|
);
|
|
318
|
-
}, { RangePicker: zt } = Te,
|
|
327
|
+
}, { RangePicker: zt } = Te, Pi = ({
|
|
319
328
|
itemProps: t,
|
|
320
329
|
inputProps: e,
|
|
321
330
|
type: r = "date",
|
|
322
331
|
minDate: n,
|
|
323
|
-
maxDate:
|
|
324
|
-
useMask:
|
|
332
|
+
maxDate: i,
|
|
333
|
+
useMask: o = !1
|
|
325
334
|
}) => {
|
|
326
335
|
const s = {
|
|
327
336
|
year: { displayFormat: "YYYY", outputFormat: "YYYY" },
|
|
328
337
|
month: { displayFormat: "YYYY-MM", outputFormat: "YYYYMM" },
|
|
329
338
|
date: { displayFormat: "YYYY-MM-DD", outputFormat: "YYYYMMDD" }
|
|
330
|
-
}, { displayFormat: a, outputFormat: u } = s[r],
|
|
339
|
+
}, { displayFormat: a, outputFormat: u } = s[r], g = (l, y) => {
|
|
331
340
|
if (e.onChange && typeof e.onChange == "function") {
|
|
332
341
|
let v;
|
|
333
|
-
|
|
342
|
+
l instanceof P ? v = l.format(u) : (v = [], l && l.map((f) => {
|
|
334
343
|
v.push(f.format(u));
|
|
335
344
|
})), e.onChange(v, y);
|
|
336
345
|
}
|
|
@@ -339,76 +348,76 @@ const Io = ({
|
|
|
339
348
|
w,
|
|
340
349
|
{
|
|
341
350
|
...t,
|
|
342
|
-
getValueProps: (
|
|
343
|
-
value:
|
|
344
|
-
|
|
345
|
-
|
|
351
|
+
getValueProps: (l) => ({
|
|
352
|
+
value: l && [
|
|
353
|
+
l[0] ? P(l[0]) : null,
|
|
354
|
+
l[1] ? P(l[1]) : null
|
|
346
355
|
]
|
|
347
356
|
}),
|
|
348
|
-
normalize: (
|
|
349
|
-
|
|
350
|
-
|
|
357
|
+
normalize: (l) => [
|
|
358
|
+
l?.[0] ? P(l[0]).format(u) : void 0,
|
|
359
|
+
l?.[1] ? P(l[1]).format(u) : void 0
|
|
351
360
|
],
|
|
352
361
|
children: /* @__PURE__ */ c.jsx(
|
|
353
362
|
zt,
|
|
354
363
|
{
|
|
355
364
|
...e,
|
|
356
|
-
format:
|
|
365
|
+
format: o ? {
|
|
357
366
|
format: a,
|
|
358
367
|
type: "mask"
|
|
359
368
|
} : void 0,
|
|
360
369
|
picker: r,
|
|
361
370
|
order: !0,
|
|
362
371
|
minDate: n ? P(n, u) : void 0,
|
|
363
|
-
maxDate:
|
|
364
|
-
onChange:
|
|
372
|
+
maxDate: i ? P(i, u) : void 0,
|
|
373
|
+
onChange: g
|
|
365
374
|
}
|
|
366
375
|
)
|
|
367
376
|
}
|
|
368
377
|
);
|
|
369
|
-
},
|
|
378
|
+
}, Mi = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsx(vt.Group, { ...e }) }), Ri = ({
|
|
370
379
|
itemProps: t,
|
|
371
380
|
inputProps: e = {
|
|
372
381
|
format: "YN"
|
|
373
382
|
}
|
|
374
383
|
}) => {
|
|
375
|
-
const r = k.useFormInstance(), n = (
|
|
376
|
-
e.format === "boolean" ? r.setFieldValue(t?.name,
|
|
384
|
+
const r = k.useFormInstance(), n = (i) => {
|
|
385
|
+
e.format === "boolean" ? r.setFieldValue(t?.name, i.target.checked) : r.setFieldValue(t?.name, i.target.checked ? "Y" : "N"), e.onChange && e.onChange(i);
|
|
377
386
|
};
|
|
378
387
|
return /* @__PURE__ */ c.jsx(
|
|
379
388
|
w,
|
|
380
389
|
{
|
|
381
390
|
...t,
|
|
382
|
-
getValueProps: (
|
|
383
|
-
normalize: (
|
|
391
|
+
getValueProps: (i) => (console.log("getValueProps :: ", i), { checked: e.format === "boolean" ? !!i : i === "Y" }),
|
|
392
|
+
normalize: (i) => (console.log("normalize :: ", i), typeof i == "boolean" ? e.format === "boolean" ? i : i ? "Y" : "N" : e.format === "boolean" ? !!i : i ? "Y" : "N"),
|
|
384
393
|
children: /* @__PURE__ */ c.jsx(me, { ...e, onChange: n, children: e?.title })
|
|
385
394
|
}
|
|
386
395
|
);
|
|
387
|
-
},
|
|
388
|
-
const r = k.useFormInstance(), [n,
|
|
396
|
+
}, _i = ({ itemProps: t, inputProps: e }) => {
|
|
397
|
+
const r = k.useFormInstance(), [n, i] = F(
|
|
389
398
|
t?.initialValue ?? []
|
|
390
|
-
), [
|
|
399
|
+
), [o, s] = F([]), a = o.length > 0 && o.length == n?.length, u = n?.length > 0 && n.length < o.length;
|
|
391
400
|
Y(() => {
|
|
392
|
-
s(
|
|
401
|
+
s(g(e?.options));
|
|
393
402
|
}, [e?.options]), Y(() => {
|
|
394
|
-
|
|
403
|
+
i(n);
|
|
395
404
|
}, [n]);
|
|
396
|
-
const
|
|
405
|
+
const g = (v) => {
|
|
397
406
|
const f = [];
|
|
398
407
|
return (v || []).map((p, h) => {
|
|
399
408
|
f.push(p.value);
|
|
400
409
|
}), f;
|
|
401
|
-
},
|
|
402
|
-
|
|
410
|
+
}, l = (v) => {
|
|
411
|
+
i(v.target.checked ? o : []), r.setFieldValue(t?.name, v.target.checked ? o : []);
|
|
403
412
|
}, y = (v) => {
|
|
404
|
-
|
|
413
|
+
i(v), r.setFieldValue(t?.name, v), e?.onChange && typeof e?.onChange == "function" && e?.onChange(v);
|
|
405
414
|
};
|
|
406
415
|
return /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsxs(Dt, { theme: {
|
|
407
416
|
components: {
|
|
408
417
|
Checkbox: {
|
|
409
|
-
colorPrimary: "
|
|
410
|
-
colorPrimaryBorder: "
|
|
411
|
-
colorPrimaryHover: "
|
|
418
|
+
colorPrimary: "var(--check-primary)",
|
|
419
|
+
colorPrimaryBorder: "var(--check-primary)",
|
|
420
|
+
colorPrimaryHover: "var(--check-primary-active)"
|
|
412
421
|
}
|
|
413
422
|
}
|
|
414
423
|
}, children: [
|
|
@@ -417,7 +426,7 @@ const Io = ({
|
|
|
417
426
|
{
|
|
418
427
|
indeterminate: u,
|
|
419
428
|
checked: a,
|
|
420
|
-
onChange:
|
|
429
|
+
onChange: l,
|
|
421
430
|
children: "전체선택"
|
|
422
431
|
}
|
|
423
432
|
),
|
|
@@ -430,23 +439,23 @@ const Io = ({
|
|
|
430
439
|
}
|
|
431
440
|
)
|
|
432
441
|
] }) });
|
|
433
|
-
}, { TextArea: qt } = G,
|
|
434
|
-
const r = (
|
|
435
|
-
let
|
|
436
|
-
return e?.decimalPoint != null &&
|
|
437
|
-
}, n = (
|
|
438
|
-
let
|
|
439
|
-
return e?.decimalPoint != null &&
|
|
442
|
+
}, { TextArea: qt } = G, Li = ({ itemProps: t, inputProps: e }) => /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsx(qt, { ...e }) }), ji = ({ itemProps: t, inputProps: e }) => {
|
|
443
|
+
const r = (i) => {
|
|
444
|
+
let o = i.toString().split(".");
|
|
445
|
+
return e?.decimalPoint != null && o[1] != null && e?.decimalPoint > 0 ? o[1].length > e?.decimalPoint ? o[1] = "." + o[1].substring(0, e?.decimalPoint) : o[1] = "." + o[1] : o[1] = "", o[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",") + o[1];
|
|
446
|
+
}, n = (i) => {
|
|
447
|
+
let o = i.toString().split(".");
|
|
448
|
+
return e?.decimalPoint != null && o[1] != null && e?.decimalPoint > 0 ? o[1].length > e?.decimalPoint ? o[1] = "." + o[1].substring(0, e?.decimalPoint) : o[1] = "." + o[1] : o[1] = "", o[0].replace(/\$\s?|(,*)/g, "") + o[1];
|
|
440
449
|
};
|
|
441
450
|
return /* @__PURE__ */ c.jsx(w, { ...t, children: /* @__PURE__ */ c.jsx(
|
|
442
451
|
yt,
|
|
443
452
|
{
|
|
444
453
|
...e,
|
|
445
|
-
formatter: (
|
|
446
|
-
parser: (
|
|
454
|
+
formatter: (i) => r(i),
|
|
455
|
+
parser: (i) => n(i)
|
|
447
456
|
}
|
|
448
457
|
) });
|
|
449
|
-
}, { Option: _e } = be,
|
|
458
|
+
}, { Option: _e } = be, Fi = ({ itemProps: t, inputProps: e }) => {
|
|
450
459
|
const [r, n] = F([]);
|
|
451
460
|
return Y(() => {
|
|
452
461
|
e?.addField === "ALL" ? n([
|
|
@@ -457,19 +466,19 @@ const Io = ({
|
|
|
457
466
|
w,
|
|
458
467
|
{
|
|
459
468
|
...t,
|
|
460
|
-
getValueProps: (
|
|
461
|
-
value:
|
|
469
|
+
getValueProps: (i) => i ? {
|
|
470
|
+
value: i && i.indexOf(",") > 0 ? i.split(",") : [i]
|
|
462
471
|
} : {
|
|
463
472
|
value: []
|
|
464
473
|
},
|
|
465
|
-
normalize: (
|
|
466
|
-
children: /* @__PURE__ */ c.jsx(be, { ...e, mode: "multiple", children: r.map((
|
|
467
|
-
const { value:
|
|
468
|
-
return e?.printCode ? /* @__PURE__ */ c.jsx(_e, { value:
|
|
474
|
+
normalize: (i) => i != null && i != null && i.length > 0 ? i.toString() : "",
|
|
475
|
+
children: /* @__PURE__ */ c.jsx(be, { ...e, mode: "multiple", children: r.map((i) => {
|
|
476
|
+
const { value: o, label: s } = i;
|
|
477
|
+
return e?.printCode ? /* @__PURE__ */ c.jsx(_e, { value: o, label: s, children: /* @__PURE__ */ c.jsx(te, { children: `[${o}] ${s}` }) }, o) : /* @__PURE__ */ c.jsx(_e, { value: o, label: s, children: /* @__PURE__ */ c.jsx(te, { children: `${s}` }) }, o);
|
|
469
478
|
}) })
|
|
470
479
|
}
|
|
471
480
|
);
|
|
472
|
-
},
|
|
481
|
+
}, ki = (t) => /* @__PURE__ */ c.jsx(q, { ...t, className: "bwg-btn" }), Ke = Et({
|
|
473
482
|
dragDropManager: void 0
|
|
474
483
|
});
|
|
475
484
|
function L(t) {
|
|
@@ -540,14 +549,14 @@ function et(t, e, r) {
|
|
|
540
549
|
}
|
|
541
550
|
if (typeof t != "function")
|
|
542
551
|
throw new Error(process.env.NODE_ENV === "production" ? L(2) : "Expected the root reducer to be a function. Instead, received: '" + U(t) + "'");
|
|
543
|
-
var
|
|
544
|
-
function
|
|
552
|
+
var i = t, o = e, s = [], a = s, u = !1;
|
|
553
|
+
function g() {
|
|
545
554
|
a === s && (a = s.slice());
|
|
546
555
|
}
|
|
547
|
-
function
|
|
556
|
+
function l() {
|
|
548
557
|
if (u)
|
|
549
558
|
throw new Error(process.env.NODE_ENV === "production" ? L(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
|
|
550
|
-
return
|
|
559
|
+
return o;
|
|
551
560
|
}
|
|
552
561
|
function y(h) {
|
|
553
562
|
if (typeof h != "function")
|
|
@@ -555,13 +564,13 @@ function et(t, e, r) {
|
|
|
555
564
|
if (u)
|
|
556
565
|
throw new Error(process.env.NODE_ENV === "production" ? L(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
557
566
|
var O = !0;
|
|
558
|
-
return
|
|
567
|
+
return g(), a.push(h), function() {
|
|
559
568
|
if (O) {
|
|
560
569
|
if (u)
|
|
561
570
|
throw new Error(process.env.NODE_ENV === "production" ? L(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
562
|
-
O = !1,
|
|
563
|
-
var
|
|
564
|
-
a.splice(
|
|
571
|
+
O = !1, g();
|
|
572
|
+
var d = a.indexOf(h);
|
|
573
|
+
a.splice(d, 1), s = null;
|
|
565
574
|
}
|
|
566
575
|
};
|
|
567
576
|
}
|
|
@@ -573,20 +582,20 @@ function et(t, e, r) {
|
|
|
573
582
|
if (u)
|
|
574
583
|
throw new Error(process.env.NODE_ENV === "production" ? L(9) : "Reducers may not dispatch actions.");
|
|
575
584
|
try {
|
|
576
|
-
u = !0,
|
|
585
|
+
u = !0, o = i(o, h);
|
|
577
586
|
} finally {
|
|
578
587
|
u = !1;
|
|
579
588
|
}
|
|
580
589
|
for (var O = s = a, m = 0; m < O.length; m++) {
|
|
581
|
-
var
|
|
582
|
-
|
|
590
|
+
var d = O[m];
|
|
591
|
+
d();
|
|
583
592
|
}
|
|
584
593
|
return h;
|
|
585
594
|
}
|
|
586
595
|
function f(h) {
|
|
587
596
|
if (typeof h != "function")
|
|
588
597
|
throw new Error(process.env.NODE_ENV === "production" ? L(10) : "Expected the nextReducer to be a function. Instead, received: '" + U(h));
|
|
589
|
-
|
|
598
|
+
i = h, v({
|
|
590
599
|
type: Fe.REPLACE
|
|
591
600
|
});
|
|
592
601
|
}
|
|
@@ -601,11 +610,11 @@ function et(t, e, r) {
|
|
|
601
610
|
* be used to unsubscribe the observable from the store, and prevent further
|
|
602
611
|
* emission of values from the observable.
|
|
603
612
|
*/
|
|
604
|
-
subscribe: function(
|
|
605
|
-
if (typeof
|
|
606
|
-
throw new Error(process.env.NODE_ENV === "production" ? L(11) : "Expected the observer to be an object. Instead, received: '" + U(
|
|
613
|
+
subscribe: function(d) {
|
|
614
|
+
if (typeof d != "object" || d === null)
|
|
615
|
+
throw new Error(process.env.NODE_ENV === "production" ? L(11) : "Expected the observer to be an object. Instead, received: '" + U(d) + "'");
|
|
607
616
|
function S() {
|
|
608
|
-
|
|
617
|
+
d.next && d.next(l());
|
|
609
618
|
}
|
|
610
619
|
S();
|
|
611
620
|
var b = O(S);
|
|
@@ -622,7 +631,7 @@ function et(t, e, r) {
|
|
|
622
631
|
}), n = {
|
|
623
632
|
dispatch: v,
|
|
624
633
|
subscribe: y,
|
|
625
|
-
getState:
|
|
634
|
+
getState: l,
|
|
626
635
|
replaceReducer: f
|
|
627
636
|
}, n[Le] = p, n;
|
|
628
637
|
}
|
|
@@ -634,9 +643,9 @@ function D(t, e, ...r) {
|
|
|
634
643
|
if (e === void 0)
|
|
635
644
|
n = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
636
645
|
else {
|
|
637
|
-
let
|
|
646
|
+
let i = 0;
|
|
638
647
|
n = new Error(e.replace(/%s/g, function() {
|
|
639
|
-
return r[
|
|
648
|
+
return r[i++];
|
|
640
649
|
})), n.name = "Invariant Violation";
|
|
641
650
|
}
|
|
642
651
|
throw n.framesToPop = 1, n;
|
|
@@ -647,7 +656,7 @@ function Qt() {
|
|
|
647
656
|
}
|
|
648
657
|
function Kt(t, e, r) {
|
|
649
658
|
return e.split(".").reduce(
|
|
650
|
-
(n,
|
|
659
|
+
(n, i) => n && n[i] ? n[i] : r || null,
|
|
651
660
|
t
|
|
652
661
|
);
|
|
653
662
|
}
|
|
@@ -660,21 +669,21 @@ function tt(t) {
|
|
|
660
669
|
return typeof t == "object";
|
|
661
670
|
}
|
|
662
671
|
function tr(t, e) {
|
|
663
|
-
const r = /* @__PURE__ */ new Map(), n = (
|
|
664
|
-
r.set(
|
|
672
|
+
const r = /* @__PURE__ */ new Map(), n = (o) => {
|
|
673
|
+
r.set(o, r.has(o) ? r.get(o) + 1 : 1);
|
|
665
674
|
};
|
|
666
675
|
t.forEach(n), e.forEach(n);
|
|
667
|
-
const
|
|
668
|
-
return r.forEach((
|
|
669
|
-
|
|
670
|
-
}),
|
|
676
|
+
const i = [];
|
|
677
|
+
return r.forEach((o, s) => {
|
|
678
|
+
o === 1 && i.push(s);
|
|
679
|
+
}), i;
|
|
671
680
|
}
|
|
672
681
|
function rr(t, e) {
|
|
673
682
|
return t.filter(
|
|
674
683
|
(r) => e.indexOf(r) > -1
|
|
675
684
|
);
|
|
676
685
|
}
|
|
677
|
-
const Ce = "dnd-core/INIT_COORDS", ne = "dnd-core/BEGIN_DRAG", Ie = "dnd-core/PUBLISH_DRAG_SOURCE",
|
|
686
|
+
const Ce = "dnd-core/INIT_COORDS", ne = "dnd-core/BEGIN_DRAG", Ie = "dnd-core/PUBLISH_DRAG_SOURCE", ie = "dnd-core/HOVER", oe = "dnd-core/DROP", se = "dnd-core/END_DRAG";
|
|
678
687
|
function ke(t, e) {
|
|
679
688
|
return {
|
|
680
689
|
type: Ce,
|
|
@@ -691,43 +700,43 @@ const nr = {
|
|
|
691
700
|
sourceClientOffset: null
|
|
692
701
|
}
|
|
693
702
|
};
|
|
694
|
-
function
|
|
703
|
+
function ir(t) {
|
|
695
704
|
return function(r = [], n = {
|
|
696
705
|
publishSource: !0
|
|
697
706
|
}) {
|
|
698
|
-
const { publishSource:
|
|
699
|
-
t.dispatch(ke(
|
|
700
|
-
const
|
|
701
|
-
if (
|
|
707
|
+
const { publishSource: i = !0, clientOffset: o, getSourceClientOffset: s } = n, a = t.getMonitor(), u = t.getRegistry();
|
|
708
|
+
t.dispatch(ke(o)), or(r, a, u);
|
|
709
|
+
const g = cr(r, a);
|
|
710
|
+
if (g == null) {
|
|
702
711
|
t.dispatch(nr);
|
|
703
712
|
return;
|
|
704
713
|
}
|
|
705
|
-
let
|
|
706
|
-
if (
|
|
714
|
+
let l = null;
|
|
715
|
+
if (o) {
|
|
707
716
|
if (!s)
|
|
708
717
|
throw new Error("getSourceClientOffset must be defined");
|
|
709
|
-
sr(s),
|
|
718
|
+
sr(s), l = s(g);
|
|
710
719
|
}
|
|
711
|
-
t.dispatch(ke(
|
|
712
|
-
const v = u.getSource(
|
|
720
|
+
t.dispatch(ke(o, l));
|
|
721
|
+
const v = u.getSource(g).beginDrag(a, g);
|
|
713
722
|
if (v == null)
|
|
714
723
|
return;
|
|
715
|
-
ar(v), u.pinSource(
|
|
716
|
-
const f = u.getSourceType(
|
|
724
|
+
ar(v), u.pinSource(g);
|
|
725
|
+
const f = u.getSourceType(g);
|
|
717
726
|
return {
|
|
718
727
|
type: ne,
|
|
719
728
|
payload: {
|
|
720
729
|
itemType: f,
|
|
721
730
|
item: v,
|
|
722
|
-
sourceId:
|
|
723
|
-
clientOffset:
|
|
724
|
-
sourceClientOffset:
|
|
725
|
-
isSourcePublic: !!
|
|
731
|
+
sourceId: g,
|
|
732
|
+
clientOffset: o || null,
|
|
733
|
+
sourceClientOffset: l || null,
|
|
734
|
+
isSourcePublic: !!i
|
|
726
735
|
}
|
|
727
736
|
};
|
|
728
737
|
};
|
|
729
738
|
}
|
|
730
|
-
function
|
|
739
|
+
function or(t, e, r) {
|
|
731
740
|
D(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(n) {
|
|
732
741
|
D(r.getSource(n), "Expected sourceIds to be registered.");
|
|
733
742
|
});
|
|
@@ -758,25 +767,25 @@ function ur(t, e, r) {
|
|
|
758
767
|
function lr(t) {
|
|
759
768
|
for (var e = 1; e < arguments.length; e++) {
|
|
760
769
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
761
|
-
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(
|
|
762
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
763
|
-
}))), n.forEach(function(
|
|
764
|
-
ur(t,
|
|
770
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
771
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
772
|
+
}))), n.forEach(function(i) {
|
|
773
|
+
ur(t, i, r[i]);
|
|
765
774
|
});
|
|
766
775
|
}
|
|
767
776
|
return t;
|
|
768
777
|
}
|
|
769
778
|
function dr(t) {
|
|
770
779
|
return function(r = {}) {
|
|
771
|
-
const n = t.getMonitor(),
|
|
780
|
+
const n = t.getMonitor(), i = t.getRegistry();
|
|
772
781
|
gr(n), pr(n).forEach((s, a) => {
|
|
773
|
-
const u = fr(s, a,
|
|
774
|
-
type:
|
|
782
|
+
const u = fr(s, a, i, n), g = {
|
|
783
|
+
type: oe,
|
|
775
784
|
payload: {
|
|
776
785
|
dropResult: lr({}, r, u)
|
|
777
786
|
}
|
|
778
787
|
};
|
|
779
|
-
t.dispatch(
|
|
788
|
+
t.dispatch(g);
|
|
780
789
|
});
|
|
781
790
|
};
|
|
782
791
|
}
|
|
@@ -784,9 +793,9 @@ function gr(t) {
|
|
|
784
793
|
D(t.isDragging(), "Cannot call drop while not dragging."), D(!t.didDrop(), "Cannot call drop twice during one drag operation.");
|
|
785
794
|
}
|
|
786
795
|
function fr(t, e, r, n) {
|
|
787
|
-
const
|
|
788
|
-
let
|
|
789
|
-
return hr(
|
|
796
|
+
const i = r.getTarget(t);
|
|
797
|
+
let o = i ? i.drop(n, t) : void 0;
|
|
798
|
+
return hr(o), typeof o > "u" && (o = e === 0 ? {} : n.getDropResult()), o;
|
|
790
799
|
}
|
|
791
800
|
function hr(t) {
|
|
792
801
|
D(typeof t > "u" || tt(t), "Drop result must either be an object or undefined.");
|
|
@@ -799,8 +808,8 @@ function mr(t) {
|
|
|
799
808
|
return function() {
|
|
800
809
|
const r = t.getMonitor(), n = t.getRegistry();
|
|
801
810
|
vr(r);
|
|
802
|
-
const
|
|
803
|
-
return
|
|
811
|
+
const i = r.getSourceId();
|
|
812
|
+
return i != null && (n.getSource(i, !0).endDrag(r, i), n.unpinSource()), {
|
|
804
813
|
type: se
|
|
805
814
|
};
|
|
806
815
|
};
|
|
@@ -816,11 +825,11 @@ function ve(t, e) {
|
|
|
816
825
|
function Dr(t) {
|
|
817
826
|
return function(r, { clientOffset: n } = {}) {
|
|
818
827
|
yr(r);
|
|
819
|
-
const
|
|
820
|
-
return Or(
|
|
821
|
-
type:
|
|
828
|
+
const i = r.slice(0), o = t.getMonitor(), s = t.getRegistry(), a = o.getItemType();
|
|
829
|
+
return Or(i, s, a), Sr(i, o, s), br(i, o, s), {
|
|
830
|
+
type: ie,
|
|
822
831
|
payload: {
|
|
823
|
-
targetIds:
|
|
832
|
+
targetIds: i,
|
|
824
833
|
clientOffset: n || null
|
|
825
834
|
}
|
|
826
835
|
};
|
|
@@ -832,16 +841,16 @@ function yr(t) {
|
|
|
832
841
|
function Sr(t, e, r) {
|
|
833
842
|
D(e.isDragging(), "Cannot call hover while not dragging."), D(!e.didDrop(), "Cannot call hover after drop.");
|
|
834
843
|
for (let n = 0; n < t.length; n++) {
|
|
835
|
-
const
|
|
836
|
-
D(t.lastIndexOf(
|
|
837
|
-
const
|
|
838
|
-
D(
|
|
844
|
+
const i = t[n];
|
|
845
|
+
D(t.lastIndexOf(i) === n, "Expected targetIds to be unique in the passed array.");
|
|
846
|
+
const o = r.getTarget(i);
|
|
847
|
+
D(o, "Expected targetIds to be registered.");
|
|
839
848
|
}
|
|
840
849
|
}
|
|
841
850
|
function Or(t, e, r) {
|
|
842
851
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
843
|
-
const
|
|
844
|
-
ve(
|
|
852
|
+
const i = t[n], o = e.getTargetType(i);
|
|
853
|
+
ve(o, r) || t.splice(n, 1);
|
|
845
854
|
}
|
|
846
855
|
}
|
|
847
856
|
function br(t, e, r) {
|
|
@@ -859,7 +868,7 @@ function Tr(t) {
|
|
|
859
868
|
}
|
|
860
869
|
function Cr(t) {
|
|
861
870
|
return {
|
|
862
|
-
beginDrag:
|
|
871
|
+
beginDrag: ir(t),
|
|
863
872
|
publishDragSource: Tr(t),
|
|
864
873
|
hover: Dr(t),
|
|
865
874
|
drop: dr(t),
|
|
@@ -881,16 +890,16 @@ class Ir {
|
|
|
881
890
|
}
|
|
882
891
|
getActions() {
|
|
883
892
|
const e = this, { dispatch: r } = this.store;
|
|
884
|
-
function n(
|
|
893
|
+
function n(o) {
|
|
885
894
|
return (...s) => {
|
|
886
|
-
const a =
|
|
895
|
+
const a = o.apply(e, s);
|
|
887
896
|
typeof a < "u" && r(a);
|
|
888
897
|
};
|
|
889
898
|
}
|
|
890
|
-
const
|
|
891
|
-
return Object.keys(
|
|
892
|
-
const a =
|
|
893
|
-
return
|
|
899
|
+
const i = Cr(this);
|
|
900
|
+
return Object.keys(i).reduce((o, s) => {
|
|
901
|
+
const a = i[s];
|
|
902
|
+
return o[s] = n(a), o;
|
|
894
903
|
}, {});
|
|
895
904
|
}
|
|
896
905
|
dispatch(e) {
|
|
@@ -933,23 +942,23 @@ class Pr {
|
|
|
933
942
|
subscribeToStateChange(e, r = {}) {
|
|
934
943
|
const { handlerIds: n } = r;
|
|
935
944
|
D(typeof e == "function", "listener must be a function."), D(typeof n > "u" || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
|
|
936
|
-
let
|
|
937
|
-
const
|
|
945
|
+
let i = this.store.getState().stateId;
|
|
946
|
+
const o = () => {
|
|
938
947
|
const s = this.store.getState(), a = s.stateId;
|
|
939
948
|
try {
|
|
940
|
-
a ===
|
|
949
|
+
a === i || a === i + 1 && !Nr(s.dirtyHandlerIds, n) || e();
|
|
941
950
|
} finally {
|
|
942
|
-
|
|
951
|
+
i = a;
|
|
943
952
|
}
|
|
944
953
|
};
|
|
945
|
-
return this.store.subscribe(
|
|
954
|
+
return this.store.subscribe(o);
|
|
946
955
|
}
|
|
947
956
|
subscribeToOffsetChange(e) {
|
|
948
957
|
D(typeof e == "function", "listener must be a function.");
|
|
949
958
|
let r = this.store.getState().dragOffset;
|
|
950
959
|
const n = () => {
|
|
951
|
-
const
|
|
952
|
-
|
|
960
|
+
const i = this.store.getState().dragOffset;
|
|
961
|
+
i !== r && (r = i, e());
|
|
953
962
|
};
|
|
954
963
|
return this.store.subscribe(n);
|
|
955
964
|
}
|
|
@@ -965,8 +974,8 @@ class Pr {
|
|
|
965
974
|
const r = this.registry.getTarget(e);
|
|
966
975
|
if (D(r, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop())
|
|
967
976
|
return !1;
|
|
968
|
-
const n = this.registry.getTargetType(e),
|
|
969
|
-
return ve(n,
|
|
977
|
+
const n = this.registry.getTargetType(e), i = this.getItemType();
|
|
978
|
+
return ve(n, i) && r.canDrop(this, e);
|
|
970
979
|
}
|
|
971
980
|
isDragging() {
|
|
972
981
|
return !!this.getItemType();
|
|
@@ -977,8 +986,8 @@ class Pr {
|
|
|
977
986
|
const r = this.registry.getSource(e, !0);
|
|
978
987
|
if (D(r, `Expected to find a valid source. sourceId=${e}`), !this.isDragging() || !this.isSourcePublic())
|
|
979
988
|
return !1;
|
|
980
|
-
const n = this.registry.getSourceType(e),
|
|
981
|
-
return n !==
|
|
989
|
+
const n = this.registry.getSourceType(e), i = this.getItemType();
|
|
990
|
+
return n !== i ? !1 : r.isDragging(this, e);
|
|
982
991
|
}
|
|
983
992
|
isOverTarget(e, r = {
|
|
984
993
|
shallow: !1
|
|
@@ -988,8 +997,8 @@ class Pr {
|
|
|
988
997
|
const { shallow: n } = r;
|
|
989
998
|
if (!this.isDragging())
|
|
990
999
|
return !1;
|
|
991
|
-
const
|
|
992
|
-
if (
|
|
1000
|
+
const i = this.registry.getTargetType(e), o = this.getItemType();
|
|
1001
|
+
if (o && !ve(i, o))
|
|
993
1002
|
return !1;
|
|
994
1003
|
const s = this.getTargetIds();
|
|
995
1004
|
if (!s.length)
|
|
@@ -1038,10 +1047,10 @@ class Pr {
|
|
|
1038
1047
|
}
|
|
1039
1048
|
}
|
|
1040
1049
|
const Ye = typeof global < "u" ? global : self, nt = Ye.MutationObserver || Ye.WebKitMutationObserver;
|
|
1041
|
-
function
|
|
1050
|
+
function it(t) {
|
|
1042
1051
|
return function() {
|
|
1043
|
-
const r = setTimeout(
|
|
1044
|
-
function
|
|
1052
|
+
const r = setTimeout(i, 0), n = setInterval(i, 50);
|
|
1053
|
+
function i() {
|
|
1045
1054
|
clearTimeout(r), clearInterval(n), t();
|
|
1046
1055
|
}
|
|
1047
1056
|
};
|
|
@@ -1092,7 +1101,7 @@ const Rr = typeof nt == "function" ? (
|
|
|
1092
1101
|
// - Internet Explorer 6-9
|
|
1093
1102
|
// - iPad Safari 4.3
|
|
1094
1103
|
// - Lynx 2.8.7
|
|
1095
|
-
|
|
1104
|
+
it
|
|
1096
1105
|
);
|
|
1097
1106
|
class _r {
|
|
1098
1107
|
// Use the fastest means possible to execute a task in its own turn, with
|
|
@@ -1115,7 +1124,7 @@ class _r {
|
|
|
1115
1124
|
for (; this.index < e.length; ) {
|
|
1116
1125
|
const r = this.index;
|
|
1117
1126
|
if (this.index++, e[r].call(), this.index > this.capacity) {
|
|
1118
|
-
for (let n = 0,
|
|
1127
|
+
for (let n = 0, i = e.length - this.index; n < i; n++)
|
|
1119
1128
|
e[n] = e[n + this.index];
|
|
1120
1129
|
e.length -= this.index, this.index = 0;
|
|
1121
1130
|
}
|
|
@@ -1123,7 +1132,7 @@ class _r {
|
|
|
1123
1132
|
e.length = 0, this.index = 0, this.flushing = !1;
|
|
1124
1133
|
}, this.registerPendingError = (e) => {
|
|
1125
1134
|
this.pendingErrors.push(e), this.requestErrorThrow();
|
|
1126
|
-
}, this.requestFlush = Rr(this.flush), this.requestErrorThrow =
|
|
1135
|
+
}, this.requestFlush = Rr(this.flush), this.requestErrorThrow = it(() => {
|
|
1127
1136
|
if (this.pendingErrors.length)
|
|
1128
1137
|
throw this.pendingErrors.shift();
|
|
1129
1138
|
});
|
|
@@ -1147,7 +1156,7 @@ class jr {
|
|
|
1147
1156
|
create(e) {
|
|
1148
1157
|
const r = this.freeTasks, n = r.length ? r.pop() : new Lr(
|
|
1149
1158
|
this.onError,
|
|
1150
|
-
(
|
|
1159
|
+
(i) => r[r.length] = i
|
|
1151
1160
|
);
|
|
1152
1161
|
return n.task = e, n;
|
|
1153
1162
|
}
|
|
@@ -1155,9 +1164,9 @@ class jr {
|
|
|
1155
1164
|
this.onError = e, this.freeTasks = [];
|
|
1156
1165
|
}
|
|
1157
1166
|
}
|
|
1158
|
-
const
|
|
1167
|
+
const ot = new _r(), Fr = new jr(ot.registerPendingError);
|
|
1159
1168
|
function kr(t) {
|
|
1160
|
-
|
|
1169
|
+
ot.enqueueTask(Fr.create(t));
|
|
1161
1170
|
}
|
|
1162
1171
|
const we = "dnd-core/ADD_SOURCE", xe = "dnd-core/ADD_TARGET", Ne = "dnd-core/REMOVE_SOURCE", ae = "dnd-core/REMOVE_TARGET";
|
|
1163
1172
|
function Yr(t) {
|
|
@@ -1240,10 +1249,10 @@ function He(t, e) {
|
|
|
1240
1249
|
const r = t.entries();
|
|
1241
1250
|
let n = !1;
|
|
1242
1251
|
do {
|
|
1243
|
-
const { done:
|
|
1244
|
-
if (
|
|
1252
|
+
const { done: i, value: [, o] } = r.next();
|
|
1253
|
+
if (o === e)
|
|
1245
1254
|
return !0;
|
|
1246
|
-
n = !!
|
|
1255
|
+
n = !!i;
|
|
1247
1256
|
} while (!n);
|
|
1248
1257
|
return !1;
|
|
1249
1258
|
}
|
|
@@ -1295,8 +1304,8 @@ class Gr {
|
|
|
1295
1304
|
D(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
|
|
1296
1305
|
}
|
|
1297
1306
|
addHandler(e, r, n) {
|
|
1298
|
-
const
|
|
1299
|
-
return this.types.set(
|
|
1307
|
+
const i = qr(e);
|
|
1308
|
+
return this.types.set(i, r), e === j.SOURCE ? this.dragSources.set(i, n) : e === j.TARGET && this.dropTargets.set(i, n), i;
|
|
1300
1309
|
}
|
|
1301
1310
|
constructor(e) {
|
|
1302
1311
|
this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
|
|
@@ -1316,7 +1325,7 @@ function Zr(t, e, r = Xr) {
|
|
|
1316
1325
|
}
|
|
1317
1326
|
function Jr(t = Z, e) {
|
|
1318
1327
|
switch (e.type) {
|
|
1319
|
-
case
|
|
1328
|
+
case ie:
|
|
1320
1329
|
break;
|
|
1321
1330
|
case we:
|
|
1322
1331
|
case xe:
|
|
@@ -1326,15 +1335,15 @@ function Jr(t = Z, e) {
|
|
|
1326
1335
|
case ne:
|
|
1327
1336
|
case Ie:
|
|
1328
1337
|
case se:
|
|
1329
|
-
case
|
|
1338
|
+
case oe:
|
|
1330
1339
|
default:
|
|
1331
1340
|
return Ee;
|
|
1332
1341
|
}
|
|
1333
|
-
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload,
|
|
1334
|
-
if (!(
|
|
1342
|
+
const { targetIds: r = [], prevTargetIds: n = [] } = e.payload, i = tr(r, n);
|
|
1343
|
+
if (!(i.length > 0 || !Zr(r, n)))
|
|
1335
1344
|
return Z;
|
|
1336
1345
|
const s = n[n.length - 1], a = r[r.length - 1];
|
|
1337
|
-
return s !== a && (s &&
|
|
1346
|
+
return s !== a && (s && i.push(s), a && i.push(a)), i;
|
|
1338
1347
|
}
|
|
1339
1348
|
function Qr(t, e, r) {
|
|
1340
1349
|
return e in t ? Object.defineProperty(t, e, {
|
|
@@ -1347,10 +1356,10 @@ function Qr(t, e, r) {
|
|
|
1347
1356
|
function Kr(t) {
|
|
1348
1357
|
for (var e = 1; e < arguments.length; e++) {
|
|
1349
1358
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
1350
|
-
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(
|
|
1351
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
1352
|
-
}))), n.forEach(function(
|
|
1353
|
-
Qr(t,
|
|
1359
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
1360
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
1361
|
+
}))), n.forEach(function(i) {
|
|
1362
|
+
Qr(t, i, r[i]);
|
|
1354
1363
|
});
|
|
1355
1364
|
}
|
|
1356
1365
|
return t;
|
|
@@ -1370,12 +1379,12 @@ function en(t = Be, e) {
|
|
|
1370
1379
|
initialClientOffset: r.clientOffset,
|
|
1371
1380
|
clientOffset: r.clientOffset
|
|
1372
1381
|
};
|
|
1373
|
-
case
|
|
1382
|
+
case ie:
|
|
1374
1383
|
return Wr(t.clientOffset, r.clientOffset) ? t : Kr({}, t, {
|
|
1375
1384
|
clientOffset: r.clientOffset
|
|
1376
1385
|
});
|
|
1377
1386
|
case se:
|
|
1378
|
-
case
|
|
1387
|
+
case oe:
|
|
1379
1388
|
return Be;
|
|
1380
1389
|
default:
|
|
1381
1390
|
return t;
|
|
@@ -1392,10 +1401,10 @@ function tn(t, e, r) {
|
|
|
1392
1401
|
function V(t) {
|
|
1393
1402
|
for (var e = 1; e < arguments.length; e++) {
|
|
1394
1403
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
1395
|
-
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(
|
|
1396
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
1397
|
-
}))), n.forEach(function(
|
|
1398
|
-
tn(t,
|
|
1404
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
1405
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
1406
|
+
}))), n.forEach(function(i) {
|
|
1407
|
+
tn(t, i, r[i]);
|
|
1399
1408
|
});
|
|
1400
1409
|
}
|
|
1401
1410
|
return t;
|
|
@@ -1425,7 +1434,7 @@ function nn(t = rn, e) {
|
|
|
1425
1434
|
return V({}, t, {
|
|
1426
1435
|
isSourcePublic: !0
|
|
1427
1436
|
});
|
|
1428
|
-
case
|
|
1437
|
+
case ie:
|
|
1429
1438
|
return V({}, t, {
|
|
1430
1439
|
targetIds: r.targetIds
|
|
1431
1440
|
});
|
|
@@ -1433,7 +1442,7 @@ function nn(t = rn, e) {
|
|
|
1433
1442
|
return t.targetIds.indexOf(r.targetId) === -1 ? t : V({}, t, {
|
|
1434
1443
|
targetIds: er(t.targetIds, r.targetId)
|
|
1435
1444
|
});
|
|
1436
|
-
case
|
|
1445
|
+
case oe:
|
|
1437
1446
|
return V({}, t, {
|
|
1438
1447
|
dropResult: r.dropResult,
|
|
1439
1448
|
didDrop: !0,
|
|
@@ -1479,10 +1488,10 @@ function an(t, e, r) {
|
|
|
1479
1488
|
function cn(t) {
|
|
1480
1489
|
for (var e = 1; e < arguments.length; e++) {
|
|
1481
1490
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
1482
|
-
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(
|
|
1483
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
1484
|
-
}))), n.forEach(function(
|
|
1485
|
-
an(t,
|
|
1491
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
1492
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
1493
|
+
}))), n.forEach(function(i) {
|
|
1494
|
+
an(t, i, r[i]);
|
|
1486
1495
|
});
|
|
1487
1496
|
}
|
|
1488
1497
|
return t;
|
|
@@ -1502,7 +1511,7 @@ function un(t = {}, e) {
|
|
|
1502
1511
|
};
|
|
1503
1512
|
}
|
|
1504
1513
|
function ln(t, e = void 0, r = {}, n = !1) {
|
|
1505
|
-
const
|
|
1514
|
+
const i = dn(n), o = new Pr(i, new Gr(i)), s = new Ir(i, o), a = t(s, e, r);
|
|
1506
1515
|
return s.receiveBackend(a), s;
|
|
1507
1516
|
}
|
|
1508
1517
|
function dn(t) {
|
|
@@ -1514,19 +1523,19 @@ function dn(t) {
|
|
|
1514
1523
|
}
|
|
1515
1524
|
function gn(t, e) {
|
|
1516
1525
|
if (t == null) return {};
|
|
1517
|
-
var r = fn(t, e), n,
|
|
1526
|
+
var r = fn(t, e), n, i;
|
|
1518
1527
|
if (Object.getOwnPropertySymbols) {
|
|
1519
|
-
var
|
|
1520
|
-
for (
|
|
1521
|
-
n = i
|
|
1528
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
1529
|
+
for (i = 0; i < o.length; i++)
|
|
1530
|
+
n = o[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
|
|
1522
1531
|
}
|
|
1523
1532
|
return r;
|
|
1524
1533
|
}
|
|
1525
1534
|
function fn(t, e) {
|
|
1526
1535
|
if (t == null) return {};
|
|
1527
|
-
var r = {}, n = Object.keys(t),
|
|
1528
|
-
for (
|
|
1529
|
-
|
|
1536
|
+
var r = {}, n = Object.keys(t), i, o;
|
|
1537
|
+
for (o = 0; o < n.length; o++)
|
|
1538
|
+
i = n[o], !(e.indexOf(i) >= 0) && (r[i] = t[i]);
|
|
1530
1539
|
return r;
|
|
1531
1540
|
}
|
|
1532
1541
|
let Ue = 0;
|
|
@@ -1535,16 +1544,16 @@ var hn = /* @__PURE__ */ wt(function(e) {
|
|
|
1535
1544
|
var { children: r } = e, n = gn(e, [
|
|
1536
1545
|
"children"
|
|
1537
1546
|
]);
|
|
1538
|
-
const [
|
|
1547
|
+
const [i, o] = pn(n);
|
|
1539
1548
|
return Y(() => {
|
|
1540
|
-
if (
|
|
1549
|
+
if (o) {
|
|
1541
1550
|
const s = st();
|
|
1542
1551
|
return ++Ue, () => {
|
|
1543
1552
|
--Ue === 0 && (s[ee] = null);
|
|
1544
1553
|
};
|
|
1545
1554
|
}
|
|
1546
1555
|
}, []), /* @__PURE__ */ c.jsx(Ke.Provider, {
|
|
1547
|
-
value:
|
|
1556
|
+
value: i,
|
|
1548
1557
|
children: r
|
|
1549
1558
|
});
|
|
1550
1559
|
});
|
|
@@ -1563,10 +1572,10 @@ function pn(t) {
|
|
|
1563
1572
|
];
|
|
1564
1573
|
}
|
|
1565
1574
|
function mn(t, e = st(), r, n) {
|
|
1566
|
-
const
|
|
1567
|
-
return
|
|
1575
|
+
const i = e;
|
|
1576
|
+
return i[ee] || (i[ee] = {
|
|
1568
1577
|
dragDropManager: ln(t, e, r, n)
|
|
1569
|
-
}),
|
|
1578
|
+
}), i[ee];
|
|
1570
1579
|
}
|
|
1571
1580
|
function st() {
|
|
1572
1581
|
return typeof global < "u" ? global : window;
|
|
@@ -1577,21 +1586,21 @@ function vn() {
|
|
|
1577
1586
|
if (e === r) return !0;
|
|
1578
1587
|
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
1579
1588
|
if (e.constructor !== r.constructor) return !1;
|
|
1580
|
-
var n,
|
|
1589
|
+
var n, i, o;
|
|
1581
1590
|
if (Array.isArray(e)) {
|
|
1582
1591
|
if (n = e.length, n != r.length) return !1;
|
|
1583
|
-
for (
|
|
1584
|
-
if (!t(e[
|
|
1592
|
+
for (i = n; i-- !== 0; )
|
|
1593
|
+
if (!t(e[i], r[i])) return !1;
|
|
1585
1594
|
return !0;
|
|
1586
1595
|
}
|
|
1587
1596
|
if (e.constructor === RegExp) return e.source === r.source && e.flags === r.flags;
|
|
1588
1597
|
if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === r.valueOf();
|
|
1589
1598
|
if (e.toString !== Object.prototype.toString) return e.toString() === r.toString();
|
|
1590
|
-
if (
|
|
1591
|
-
for (
|
|
1592
|
-
if (!Object.prototype.hasOwnProperty.call(r, i
|
|
1593
|
-
for (
|
|
1594
|
-
var s = i
|
|
1599
|
+
if (o = Object.keys(e), n = o.length, n !== Object.keys(r).length) return !1;
|
|
1600
|
+
for (i = n; i-- !== 0; )
|
|
1601
|
+
if (!Object.prototype.hasOwnProperty.call(r, o[i])) return !1;
|
|
1602
|
+
for (i = n; i-- !== 0; ) {
|
|
1603
|
+
var s = o[i];
|
|
1595
1604
|
if (!t(e[s], r[s])) return !1;
|
|
1596
1605
|
}
|
|
1597
1606
|
return !0;
|
|
@@ -1602,34 +1611,34 @@ function vn() {
|
|
|
1602
1611
|
var Dn = vn();
|
|
1603
1612
|
const yn = /* @__PURE__ */ Ht(Dn), B = typeof window < "u" ? xt : Y;
|
|
1604
1613
|
function Sn(t, e, r) {
|
|
1605
|
-
const [n,
|
|
1614
|
+
const [n, i] = F(
|
|
1606
1615
|
() => e(t)
|
|
1607
|
-
),
|
|
1616
|
+
), o = Nt(() => {
|
|
1608
1617
|
const s = e(t);
|
|
1609
|
-
yn(n, s) || (
|
|
1618
|
+
yn(n, s) || (i(s), r && r());
|
|
1610
1619
|
}, [
|
|
1611
1620
|
n,
|
|
1612
1621
|
t,
|
|
1613
1622
|
r
|
|
1614
1623
|
]);
|
|
1615
|
-
return B(
|
|
1624
|
+
return B(o), [
|
|
1616
1625
|
n,
|
|
1617
|
-
|
|
1626
|
+
o
|
|
1618
1627
|
];
|
|
1619
1628
|
}
|
|
1620
1629
|
function On(t, e, r) {
|
|
1621
|
-
const [n,
|
|
1630
|
+
const [n, i] = Sn(t, e, r);
|
|
1622
1631
|
return B(function() {
|
|
1623
1632
|
const s = t.getHandlerId();
|
|
1624
1633
|
if (s != null)
|
|
1625
|
-
return t.subscribeToStateChange(
|
|
1634
|
+
return t.subscribeToStateChange(i, {
|
|
1626
1635
|
handlerIds: [
|
|
1627
1636
|
s
|
|
1628
1637
|
]
|
|
1629
1638
|
});
|
|
1630
1639
|
}, [
|
|
1631
1640
|
t,
|
|
1632
|
-
|
|
1641
|
+
i
|
|
1633
1642
|
]), n;
|
|
1634
1643
|
}
|
|
1635
1644
|
function at(t, e, r) {
|
|
@@ -1799,37 +1808,37 @@ class In {
|
|
|
1799
1808
|
}
|
|
1800
1809
|
}
|
|
1801
1810
|
function En(t, e, r) {
|
|
1802
|
-
const n = r.getRegistry(),
|
|
1811
|
+
const n = r.getRegistry(), i = n.addTarget(t, e);
|
|
1803
1812
|
return [
|
|
1804
|
-
|
|
1805
|
-
() => n.removeTarget(
|
|
1813
|
+
i,
|
|
1814
|
+
() => n.removeTarget(i)
|
|
1806
1815
|
];
|
|
1807
1816
|
}
|
|
1808
1817
|
function wn(t, e, r) {
|
|
1809
|
-
const n = r.getRegistry(),
|
|
1818
|
+
const n = r.getRegistry(), i = n.addSource(t, e);
|
|
1810
1819
|
return [
|
|
1811
|
-
|
|
1812
|
-
() => n.removeSource(
|
|
1820
|
+
i,
|
|
1821
|
+
() => n.removeSource(i)
|
|
1813
1822
|
];
|
|
1814
1823
|
}
|
|
1815
1824
|
function ye(t, e, r, n) {
|
|
1816
|
-
let
|
|
1817
|
-
if (
|
|
1818
|
-
return !!
|
|
1825
|
+
let i;
|
|
1826
|
+
if (i !== void 0)
|
|
1827
|
+
return !!i;
|
|
1819
1828
|
if (t === e)
|
|
1820
1829
|
return !0;
|
|
1821
1830
|
if (typeof t != "object" || !t || typeof e != "object" || !e)
|
|
1822
1831
|
return !1;
|
|
1823
|
-
const
|
|
1824
|
-
if (
|
|
1832
|
+
const o = Object.keys(t), s = Object.keys(e);
|
|
1833
|
+
if (o.length !== s.length)
|
|
1825
1834
|
return !1;
|
|
1826
1835
|
const a = Object.prototype.hasOwnProperty.bind(e);
|
|
1827
|
-
for (let u = 0; u <
|
|
1828
|
-
const
|
|
1829
|
-
if (!a(
|
|
1836
|
+
for (let u = 0; u < o.length; u++) {
|
|
1837
|
+
const g = o[u];
|
|
1838
|
+
if (!a(g))
|
|
1830
1839
|
return !1;
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1840
|
+
const l = t[g], y = e[g];
|
|
1841
|
+
if (i = void 0, i === !1 || i === void 0 && l !== y)
|
|
1833
1842
|
return !1;
|
|
1834
1843
|
}
|
|
1835
1844
|
return !0;
|
|
@@ -1849,11 +1858,11 @@ function xn(t) {
|
|
|
1849
1858
|
function Nn(t) {
|
|
1850
1859
|
return (e = null, r = null) => {
|
|
1851
1860
|
if (!Pt(e)) {
|
|
1852
|
-
const
|
|
1853
|
-
return t(
|
|
1861
|
+
const o = e;
|
|
1862
|
+
return t(o, r), o;
|
|
1854
1863
|
}
|
|
1855
1864
|
const n = e;
|
|
1856
|
-
return xn(n), Pn(n, r ? (
|
|
1865
|
+
return xn(n), Pn(n, r ? (o) => t(o, r) : t);
|
|
1857
1866
|
};
|
|
1858
1867
|
}
|
|
1859
1868
|
function ut(t) {
|
|
@@ -1863,8 +1872,8 @@ function ut(t) {
|
|
|
1863
1872
|
if (r.endsWith("Ref"))
|
|
1864
1873
|
e[r] = t[r];
|
|
1865
1874
|
else {
|
|
1866
|
-
const
|
|
1867
|
-
e[r] = () =>
|
|
1875
|
+
const i = Nn(n);
|
|
1876
|
+
e[r] = () => i;
|
|
1868
1877
|
}
|
|
1869
1878
|
}), e;
|
|
1870
1879
|
}
|
|
@@ -2052,12 +2061,12 @@ class jn {
|
|
|
2052
2061
|
return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(r) : !0;
|
|
2053
2062
|
}
|
|
2054
2063
|
isDragging(e, r) {
|
|
2055
|
-
const n = this.spec,
|
|
2056
|
-
return
|
|
2064
|
+
const n = this.spec, i = this.monitor, { isDragging: o } = n;
|
|
2065
|
+
return o ? o(i) : r === e.getSourceId();
|
|
2057
2066
|
}
|
|
2058
2067
|
endDrag() {
|
|
2059
|
-
const e = this.spec, r = this.monitor, n = this.connector, { end:
|
|
2060
|
-
|
|
2068
|
+
const e = this.spec, r = this.monitor, n = this.connector, { end: i } = e;
|
|
2069
|
+
i && i(r.getItem(), r), n.reconnect();
|
|
2061
2070
|
}
|
|
2062
2071
|
constructor(e, r, n) {
|
|
2063
2072
|
this.spec = e, this.monitor = r, this.connector = n;
|
|
@@ -2086,28 +2095,28 @@ function kn(t) {
|
|
|
2086
2095
|
]);
|
|
2087
2096
|
}
|
|
2088
2097
|
function Yn(t, e, r) {
|
|
2089
|
-
const n = X(),
|
|
2098
|
+
const n = X(), i = Fn(t, e, r), o = kn(t);
|
|
2090
2099
|
B(function() {
|
|
2091
|
-
if (
|
|
2092
|
-
const [a, u] = wn(
|
|
2100
|
+
if (o != null) {
|
|
2101
|
+
const [a, u] = wn(o, i, n);
|
|
2093
2102
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), u;
|
|
2094
2103
|
}
|
|
2095
2104
|
}, [
|
|
2096
2105
|
n,
|
|
2097
2106
|
e,
|
|
2098
2107
|
r,
|
|
2099
|
-
|
|
2100
|
-
|
|
2108
|
+
i,
|
|
2109
|
+
o
|
|
2101
2110
|
]);
|
|
2102
2111
|
}
|
|
2103
2112
|
function An(t, e) {
|
|
2104
2113
|
const r = ct(t);
|
|
2105
2114
|
D(!r.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
2106
|
-
const n = Ln(),
|
|
2107
|
-
return Yn(r, n,
|
|
2108
|
-
at(r.collect, n,
|
|
2109
|
-
bn(
|
|
2110
|
-
Tn(
|
|
2115
|
+
const n = Ln(), i = _n(r.options, r.previewOptions);
|
|
2116
|
+
return Yn(r, n, i), [
|
|
2117
|
+
at(r.collect, n, i),
|
|
2118
|
+
bn(i),
|
|
2119
|
+
Tn(i)
|
|
2111
2120
|
];
|
|
2112
2121
|
}
|
|
2113
2122
|
function Hn(t) {
|
|
@@ -2178,25 +2187,25 @@ function zn(t, e) {
|
|
|
2178
2187
|
]), r;
|
|
2179
2188
|
}
|
|
2180
2189
|
function qn(t, e, r) {
|
|
2181
|
-
const n = X(),
|
|
2190
|
+
const n = X(), i = zn(t, e), o = Vn(t);
|
|
2182
2191
|
B(function() {
|
|
2183
|
-
const [a, u] = En(
|
|
2192
|
+
const [a, u] = En(o, i, n);
|
|
2184
2193
|
return e.receiveHandlerId(a), r.receiveHandlerId(a), u;
|
|
2185
2194
|
}, [
|
|
2186
2195
|
n,
|
|
2187
2196
|
e,
|
|
2188
|
-
|
|
2197
|
+
i,
|
|
2189
2198
|
r,
|
|
2190
|
-
|
|
2199
|
+
o.map(
|
|
2191
2200
|
(s) => s.toString()
|
|
2192
2201
|
).join("|")
|
|
2193
2202
|
]);
|
|
2194
2203
|
}
|
|
2195
2204
|
function Gn(t, e) {
|
|
2196
|
-
const r = ct(t), n = Un(),
|
|
2197
|
-
return qn(r, n,
|
|
2198
|
-
at(r.collect, n,
|
|
2199
|
-
Hn(
|
|
2205
|
+
const r = ct(t), n = Un(), i = Bn(r.options);
|
|
2206
|
+
return qn(r, n, i), [
|
|
2207
|
+
at(r.collect, n, i),
|
|
2208
|
+
Hn(i)
|
|
2200
2209
|
];
|
|
2201
2210
|
}
|
|
2202
2211
|
function lt(t) {
|
|
@@ -2209,16 +2218,16 @@ function Xn(t, e) {
|
|
|
2209
2218
|
);
|
|
2210
2219
|
}
|
|
2211
2220
|
function Wn(t, e) {
|
|
2212
|
-
const r = /* @__PURE__ */ new Set(), n = (
|
|
2221
|
+
const r = /* @__PURE__ */ new Set(), n = (o) => r.add(o);
|
|
2213
2222
|
t.forEach(n), e.forEach(n);
|
|
2214
|
-
const
|
|
2223
|
+
const i = [];
|
|
2215
2224
|
return r.forEach(
|
|
2216
|
-
(
|
|
2217
|
-
),
|
|
2225
|
+
(o) => i.push(o)
|
|
2226
|
+
), i;
|
|
2218
2227
|
}
|
|
2219
2228
|
class Zn {
|
|
2220
2229
|
enter(e) {
|
|
2221
|
-
const r = this.entered.length, n = (
|
|
2230
|
+
const r = this.entered.length, n = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
|
|
2222
2231
|
return this.entered = Wn(this.entered.filter(n), [
|
|
2223
2232
|
e
|
|
2224
2233
|
]), r === 0 && this.entered.length > 0;
|
|
@@ -2250,9 +2259,9 @@ class Jn {
|
|
|
2250
2259
|
if (e) {
|
|
2251
2260
|
const r = {};
|
|
2252
2261
|
Object.keys(this.config.exposeProperties).forEach((n) => {
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2255
|
-
value:
|
|
2262
|
+
const i = this.config.exposeProperties[n];
|
|
2263
|
+
i != null && (r[n] = {
|
|
2264
|
+
value: i(e, this.config.matchesTypes),
|
|
2256
2265
|
configurable: !0,
|
|
2257
2266
|
enumerable: !0
|
|
2258
2267
|
});
|
|
@@ -2283,7 +2292,7 @@ const dt = "__NATIVE_FILE__", gt = "__NATIVE_URL__", ft = "__NATIVE_TEXT__", ht
|
|
|
2283
2292
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2284
2293
|
function he(t, e, r) {
|
|
2285
2294
|
const n = e.reduce(
|
|
2286
|
-
(
|
|
2295
|
+
(i, o) => i || t.getData(o),
|
|
2287
2296
|
""
|
|
2288
2297
|
);
|
|
2289
2298
|
return n ?? r;
|
|
@@ -2345,7 +2354,7 @@ function pe(t) {
|
|
|
2345
2354
|
return Object.keys(Oe).filter((r) => {
|
|
2346
2355
|
const n = Oe[r];
|
|
2347
2356
|
return n?.matchesTypes ? n.matchesTypes.some(
|
|
2348
|
-
(
|
|
2357
|
+
(i) => e.indexOf(i) > -1
|
|
2349
2358
|
) : !1;
|
|
2350
2359
|
})[0] || null;
|
|
2351
2360
|
}
|
|
@@ -2356,63 +2365,63 @@ const Kn = lt(
|
|
|
2356
2365
|
);
|
|
2357
2366
|
class qe {
|
|
2358
2367
|
interpolate(e) {
|
|
2359
|
-
const { xs: r, ys: n, c1s:
|
|
2368
|
+
const { xs: r, ys: n, c1s: i, c2s: o, c3s: s } = this;
|
|
2360
2369
|
let a = r.length - 1;
|
|
2361
2370
|
if (e === r[a])
|
|
2362
2371
|
return n[a];
|
|
2363
|
-
let u = 0,
|
|
2364
|
-
for (; u <=
|
|
2365
|
-
|
|
2366
|
-
const f = r[
|
|
2372
|
+
let u = 0, g = s.length - 1, l;
|
|
2373
|
+
for (; u <= g; ) {
|
|
2374
|
+
l = Math.floor(0.5 * (u + g));
|
|
2375
|
+
const f = r[l];
|
|
2367
2376
|
if (f < e)
|
|
2368
|
-
u =
|
|
2377
|
+
u = l + 1;
|
|
2369
2378
|
else if (f > e)
|
|
2370
|
-
|
|
2379
|
+
g = l - 1;
|
|
2371
2380
|
else
|
|
2372
|
-
return n[
|
|
2381
|
+
return n[l];
|
|
2373
2382
|
}
|
|
2374
|
-
a = Math.max(0,
|
|
2383
|
+
a = Math.max(0, g);
|
|
2375
2384
|
const y = e - r[a], v = y * y;
|
|
2376
|
-
return n[a] +
|
|
2385
|
+
return n[a] + i[a] * y + o[a] * v + s[a] * y * v;
|
|
2377
2386
|
}
|
|
2378
2387
|
constructor(e, r) {
|
|
2379
|
-
const { length: n } = e,
|
|
2388
|
+
const { length: n } = e, i = [];
|
|
2380
2389
|
for (let f = 0; f < n; f++)
|
|
2381
|
-
|
|
2382
|
-
|
|
2390
|
+
i.push(f);
|
|
2391
|
+
i.sort(
|
|
2383
2392
|
(f, p) => e[f] < e[p] ? -1 : 1
|
|
2384
2393
|
);
|
|
2385
|
-
const
|
|
2394
|
+
const o = [], s = [];
|
|
2386
2395
|
let a, u;
|
|
2387
2396
|
for (let f = 0; f < n - 1; f++)
|
|
2388
|
-
a = e[f + 1] - e[f], u = r[f + 1] - r[f],
|
|
2389
|
-
const
|
|
2397
|
+
a = e[f + 1] - e[f], u = r[f + 1] - r[f], o.push(a), s.push(u / a);
|
|
2398
|
+
const g = [
|
|
2390
2399
|
s[0]
|
|
2391
2400
|
];
|
|
2392
|
-
for (let f = 0; f <
|
|
2401
|
+
for (let f = 0; f < o.length - 1; f++) {
|
|
2393
2402
|
const p = s[f], h = s[f + 1];
|
|
2394
2403
|
if (p * h <= 0)
|
|
2395
|
-
|
|
2404
|
+
g.push(0);
|
|
2396
2405
|
else {
|
|
2397
|
-
a =
|
|
2398
|
-
const O =
|
|
2399
|
-
|
|
2406
|
+
a = o[f];
|
|
2407
|
+
const O = o[f + 1], m = a + O;
|
|
2408
|
+
g.push(3 * m / ((m + O) / p + (m + a) / h));
|
|
2400
2409
|
}
|
|
2401
2410
|
}
|
|
2402
|
-
|
|
2403
|
-
const
|
|
2411
|
+
g.push(s[s.length - 1]);
|
|
2412
|
+
const l = [], y = [];
|
|
2404
2413
|
let v;
|
|
2405
|
-
for (let f = 0; f <
|
|
2414
|
+
for (let f = 0; f < g.length - 1; f++) {
|
|
2406
2415
|
v = s[f];
|
|
2407
|
-
const p =
|
|
2408
|
-
|
|
2416
|
+
const p = g[f], h = 1 / o[f], O = p + g[f + 1] - v - v;
|
|
2417
|
+
l.push((v - p - O) * h), y.push(O * h * h);
|
|
2409
2418
|
}
|
|
2410
|
-
this.xs = e, this.ys = r, this.c1s =
|
|
2419
|
+
this.xs = e, this.ys = r, this.c1s = g, this.c2s = l, this.c3s = y;
|
|
2411
2420
|
}
|
|
2412
2421
|
}
|
|
2413
|
-
const
|
|
2422
|
+
const ei = 1;
|
|
2414
2423
|
function mt(t) {
|
|
2415
|
-
const e = t.nodeType ===
|
|
2424
|
+
const e = t.nodeType === ei ? t : t.parentElement;
|
|
2416
2425
|
if (!e)
|
|
2417
2426
|
return null;
|
|
2418
2427
|
const { top: r, left: n } = e.getBoundingClientRect();
|
|
@@ -2427,22 +2436,22 @@ function Q(t) {
|
|
|
2427
2436
|
y: t.clientY
|
|
2428
2437
|
};
|
|
2429
2438
|
}
|
|
2430
|
-
function
|
|
2439
|
+
function ti(t) {
|
|
2431
2440
|
var e;
|
|
2432
2441
|
return t.nodeName === "IMG" && (Kn() || !(!((e = document.documentElement) === null || e === void 0) && e.contains(t)));
|
|
2433
2442
|
}
|
|
2434
|
-
function
|
|
2435
|
-
let
|
|
2436
|
-
return pt() && t && (
|
|
2437
|
-
dragPreviewWidth:
|
|
2438
|
-
dragPreviewHeight:
|
|
2443
|
+
function ri(t, e, r, n) {
|
|
2444
|
+
let i = t ? e.width : r, o = t ? e.height : n;
|
|
2445
|
+
return pt() && t && (o /= window.devicePixelRatio, i /= window.devicePixelRatio), {
|
|
2446
|
+
dragPreviewWidth: i,
|
|
2447
|
+
dragPreviewHeight: o
|
|
2439
2448
|
};
|
|
2440
2449
|
}
|
|
2441
|
-
function
|
|
2442
|
-
const
|
|
2450
|
+
function ni(t, e, r, n, i) {
|
|
2451
|
+
const o = ti(e), a = mt(o ? t : e), u = {
|
|
2443
2452
|
x: r.x - a.x,
|
|
2444
2453
|
y: r.y - a.y
|
|
2445
|
-
}, { offsetWidth:
|
|
2454
|
+
}, { offsetWidth: g, offsetHeight: l } = t, { anchorX: y, anchorY: v } = n, { dragPreviewWidth: f, dragPreviewHeight: p } = ri(o, e, g, l), h = () => {
|
|
2446
2455
|
let N = new qe([
|
|
2447
2456
|
0,
|
|
2448
2457
|
0.5,
|
|
@@ -2451,11 +2460,11 @@ function no(t, e, r, n, o) {
|
|
|
2451
2460
|
// Dock to the top
|
|
2452
2461
|
u.y,
|
|
2453
2462
|
// Align at the center
|
|
2454
|
-
u.y /
|
|
2463
|
+
u.y / l * p,
|
|
2455
2464
|
// Dock to the bottom
|
|
2456
|
-
u.y + p -
|
|
2465
|
+
u.y + p - l
|
|
2457
2466
|
]).interpolate(v);
|
|
2458
|
-
return pt() &&
|
|
2467
|
+
return pt() && o && (N += (window.devicePixelRatio - 1) * p), N;
|
|
2459
2468
|
}, O = () => new qe([
|
|
2460
2469
|
0,
|
|
2461
2470
|
0.5,
|
|
@@ -2464,16 +2473,16 @@ function no(t, e, r, n, o) {
|
|
|
2464
2473
|
// Dock to the left
|
|
2465
2474
|
u.x,
|
|
2466
2475
|
// Align at the center
|
|
2467
|
-
u.x /
|
|
2476
|
+
u.x / g * f,
|
|
2468
2477
|
// Dock to the right
|
|
2469
|
-
u.x + f -
|
|
2470
|
-
]).interpolate(y), { offsetX: m, offsetY:
|
|
2478
|
+
u.x + f - g
|
|
2479
|
+
]).interpolate(y), { offsetX: m, offsetY: d } = i, S = m === 0 || m, b = d === 0 || d;
|
|
2471
2480
|
return {
|
|
2472
2481
|
x: S ? m : O(),
|
|
2473
|
-
y: b ?
|
|
2482
|
+
y: b ? d : h()
|
|
2474
2483
|
};
|
|
2475
2484
|
}
|
|
2476
|
-
class
|
|
2485
|
+
class ii {
|
|
2477
2486
|
get window() {
|
|
2478
2487
|
if (this.globalContext)
|
|
2479
2488
|
return this.globalContext;
|
|
@@ -2492,7 +2501,7 @@ class oo {
|
|
|
2492
2501
|
this.ownerDocument = null, this.globalContext = e, this.optionsArgs = r;
|
|
2493
2502
|
}
|
|
2494
2503
|
}
|
|
2495
|
-
function
|
|
2504
|
+
function oi(t, e, r) {
|
|
2496
2505
|
return e in t ? Object.defineProperty(t, e, {
|
|
2497
2506
|
value: r,
|
|
2498
2507
|
enumerable: !0,
|
|
@@ -2503,15 +2512,15 @@ function io(t, e, r) {
|
|
|
2503
2512
|
function Ge(t) {
|
|
2504
2513
|
for (var e = 1; e < arguments.length; e++) {
|
|
2505
2514
|
var r = arguments[e] != null ? arguments[e] : {}, n = Object.keys(r);
|
|
2506
|
-
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(
|
|
2507
|
-
return Object.getOwnPropertyDescriptor(r,
|
|
2508
|
-
}))), n.forEach(function(
|
|
2509
|
-
|
|
2515
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(r).filter(function(i) {
|
|
2516
|
+
return Object.getOwnPropertyDescriptor(r, i).enumerable;
|
|
2517
|
+
}))), n.forEach(function(i) {
|
|
2518
|
+
oi(t, i, r[i]);
|
|
2510
2519
|
});
|
|
2511
2520
|
}
|
|
2512
2521
|
return t;
|
|
2513
2522
|
}
|
|
2514
|
-
class
|
|
2523
|
+
class si {
|
|
2515
2524
|
/**
|
|
2516
2525
|
* Generate profiling statistics for the HTML5Backend.
|
|
2517
2526
|
*/
|
|
@@ -2563,15 +2572,15 @@ class so {
|
|
|
2563
2572
|
}
|
|
2564
2573
|
connectDragSource(e, r, n) {
|
|
2565
2574
|
this.sourceNodes.set(e, r), this.sourceNodeOptions.set(e, n);
|
|
2566
|
-
const
|
|
2567
|
-
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart",
|
|
2568
|
-
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart",
|
|
2575
|
+
const i = (s) => this.handleDragStart(s, e), o = (s) => this.handleSelectStart(s);
|
|
2576
|
+
return r.setAttribute("draggable", "true"), r.addEventListener("dragstart", i), r.addEventListener("selectstart", o), () => {
|
|
2577
|
+
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), r.removeEventListener("dragstart", i), r.removeEventListener("selectstart", o), r.setAttribute("draggable", "false");
|
|
2569
2578
|
};
|
|
2570
2579
|
}
|
|
2571
2580
|
connectDropTarget(e, r) {
|
|
2572
|
-
const n = (s) => this.handleDragEnter(s, e),
|
|
2573
|
-
return r.addEventListener("dragenter", n), r.addEventListener("dragover",
|
|
2574
|
-
r.removeEventListener("dragenter", n), r.removeEventListener("dragover",
|
|
2581
|
+
const n = (s) => this.handleDragEnter(s, e), i = (s) => this.handleDragOver(s, e), o = (s) => this.handleDrop(s, e);
|
|
2582
|
+
return r.addEventListener("dragenter", n), r.addEventListener("dragover", i), r.addEventListener("drop", o), () => {
|
|
2583
|
+
r.removeEventListener("dragenter", n), r.removeEventListener("dragover", i), r.removeEventListener("drop", o);
|
|
2575
2584
|
};
|
|
2576
2585
|
}
|
|
2577
2586
|
addEventListeners(e) {
|
|
@@ -2639,17 +2648,17 @@ class so {
|
|
|
2639
2648
|
this.dropTargetIds.unshift(r);
|
|
2640
2649
|
}
|
|
2641
2650
|
constructor(e, r, n) {
|
|
2642
|
-
this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (
|
|
2643
|
-
const
|
|
2644
|
-
return
|
|
2651
|
+
this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (i) => {
|
|
2652
|
+
const o = this.sourceNodes.get(i);
|
|
2653
|
+
return o && mt(o) || null;
|
|
2645
2654
|
}, this.endDragNativeItem = () => {
|
|
2646
2655
|
this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
|
|
2647
|
-
}, this.isNodeInDocument = (
|
|
2648
|
-
const
|
|
2649
|
-
|
|
2650
|
-
}, this.scheduleHover = (
|
|
2656
|
+
}, this.isNodeInDocument = (i) => !!(i && this.document && this.document.body && this.document.body.contains(i)), this.endDragIfSourceWasRemovedFromDOM = () => {
|
|
2657
|
+
const i = this.currentDragSourceNode;
|
|
2658
|
+
i == null || this.isNodeInDocument(i) || (this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover());
|
|
2659
|
+
}, this.scheduleHover = (i) => {
|
|
2651
2660
|
this.hoverRafId === null && typeof requestAnimationFrame < "u" && (this.hoverRafId = requestAnimationFrame(() => {
|
|
2652
|
-
this.monitor.isDragging() && this.actions.hover(
|
|
2661
|
+
this.monitor.isDragging() && this.actions.hover(i || [], {
|
|
2653
2662
|
clientOffset: this.lastClientOffset
|
|
2654
2663
|
}), this.hoverRafId = null;
|
|
2655
2664
|
}));
|
|
@@ -2657,23 +2666,23 @@ class so {
|
|
|
2657
2666
|
this.hoverRafId !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(this.hoverRafId), this.hoverRafId = null);
|
|
2658
2667
|
}, this.handleTopDragStartCapture = () => {
|
|
2659
2668
|
this.clearCurrentDragSourceNode(), this.dragStartSourceIds = [];
|
|
2660
|
-
}, this.handleTopDragStart = (
|
|
2661
|
-
if (
|
|
2669
|
+
}, this.handleTopDragStart = (i) => {
|
|
2670
|
+
if (i.defaultPrevented)
|
|
2662
2671
|
return;
|
|
2663
|
-
const { dragStartSourceIds:
|
|
2672
|
+
const { dragStartSourceIds: o } = this;
|
|
2664
2673
|
this.dragStartSourceIds = null;
|
|
2665
|
-
const s = Q(
|
|
2666
|
-
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(
|
|
2674
|
+
const s = Q(i);
|
|
2675
|
+
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(o || [], {
|
|
2667
2676
|
publishSource: !1,
|
|
2668
2677
|
getSourceClientOffset: this.getSourceClientOffset,
|
|
2669
2678
|
clientOffset: s
|
|
2670
2679
|
});
|
|
2671
|
-
const { dataTransfer: a } =
|
|
2680
|
+
const { dataTransfer: a } = i, u = pe(a);
|
|
2672
2681
|
if (this.monitor.isDragging()) {
|
|
2673
2682
|
if (a && typeof a.setDragImage == "function") {
|
|
2674
|
-
const
|
|
2683
|
+
const l = this.monitor.getSourceId(), y = this.sourceNodes.get(l), v = this.sourcePreviewNodes.get(l) || y;
|
|
2675
2684
|
if (v) {
|
|
2676
|
-
const { anchorX: f, anchorY: p, offsetX: h, offsetY: O } = this.getCurrentSourcePreviewNodeOptions(), S =
|
|
2685
|
+
const { anchorX: f, anchorY: p, offsetX: h, offsetY: O } = this.getCurrentSourcePreviewNodeOptions(), S = ni(y, v, s, {
|
|
2677
2686
|
anchorX: f,
|
|
2678
2687
|
anchorY: p
|
|
2679
2688
|
}, {
|
|
@@ -2687,80 +2696,80 @@ class so {
|
|
|
2687
2696
|
a?.setData("application/json", {});
|
|
2688
2697
|
} catch {
|
|
2689
2698
|
}
|
|
2690
|
-
this.setCurrentDragSourceNode(
|
|
2691
|
-
const { captureDraggingState:
|
|
2692
|
-
|
|
2699
|
+
this.setCurrentDragSourceNode(i.target);
|
|
2700
|
+
const { captureDraggingState: g } = this.getCurrentSourcePreviewNodeOptions();
|
|
2701
|
+
g ? this.actions.publishDragSource() : setTimeout(
|
|
2693
2702
|
() => this.actions.publishDragSource(),
|
|
2694
2703
|
0
|
|
2695
2704
|
);
|
|
2696
2705
|
} else if (u)
|
|
2697
2706
|
this.beginDragNativeItem(u);
|
|
2698
2707
|
else {
|
|
2699
|
-
if (a && !a.types && (
|
|
2708
|
+
if (a && !a.types && (i.target && !i.target.hasAttribute || !i.target.hasAttribute("draggable")))
|
|
2700
2709
|
return;
|
|
2701
|
-
|
|
2710
|
+
i.preventDefault();
|
|
2702
2711
|
}
|
|
2703
2712
|
}, this.handleTopDragEndCapture = () => {
|
|
2704
2713
|
this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2705
|
-
}, this.handleTopDragEnterCapture = (
|
|
2714
|
+
}, this.handleTopDragEnterCapture = (i) => {
|
|
2706
2715
|
if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
|
|
2707
|
-
var
|
|
2708
|
-
(
|
|
2716
|
+
var o;
|
|
2717
|
+
(o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2709
2718
|
}
|
|
2710
|
-
if (!this.enterLeaveCounter.enter(
|
|
2719
|
+
if (!this.enterLeaveCounter.enter(i.target) || this.monitor.isDragging())
|
|
2711
2720
|
return;
|
|
2712
|
-
const { dataTransfer: a } =
|
|
2721
|
+
const { dataTransfer: a } = i, u = pe(a);
|
|
2713
2722
|
u && this.beginDragNativeItem(u, a);
|
|
2714
|
-
}, this.handleTopDragEnter = (
|
|
2715
|
-
const { dragEnterTargetIds:
|
|
2723
|
+
}, this.handleTopDragEnter = (i) => {
|
|
2724
|
+
const { dragEnterTargetIds: o } = this;
|
|
2716
2725
|
if (this.dragEnterTargetIds = [], !this.monitor.isDragging())
|
|
2717
2726
|
return;
|
|
2718
|
-
this.altKeyPressed =
|
|
2719
|
-
clientOffset: Q(
|
|
2720
|
-
}),
|
|
2727
|
+
this.altKeyPressed = i.altKey, o.length > 0 && this.actions.hover(o, {
|
|
2728
|
+
clientOffset: Q(i)
|
|
2729
|
+
}), o.some(
|
|
2721
2730
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2722
|
-
) && (
|
|
2723
|
-
}, this.handleTopDragOverCapture = (
|
|
2731
|
+
) && (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect()));
|
|
2732
|
+
}, this.handleTopDragOverCapture = (i) => {
|
|
2724
2733
|
if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
|
|
2725
|
-
var
|
|
2726
|
-
(
|
|
2734
|
+
var o;
|
|
2735
|
+
(o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2727
2736
|
}
|
|
2728
|
-
}, this.handleTopDragOver = (
|
|
2729
|
-
const { dragOverTargetIds:
|
|
2737
|
+
}, this.handleTopDragOver = (i) => {
|
|
2738
|
+
const { dragOverTargetIds: o } = this;
|
|
2730
2739
|
if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
|
|
2731
|
-
|
|
2740
|
+
i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none");
|
|
2732
2741
|
return;
|
|
2733
2742
|
}
|
|
2734
|
-
this.altKeyPressed =
|
|
2743
|
+
this.altKeyPressed = i.altKey, this.lastClientOffset = Q(i), this.scheduleHover(o), (o || []).some(
|
|
2735
2744
|
(a) => this.monitor.canDropOnTarget(a)
|
|
2736
|
-
) ? (
|
|
2737
|
-
}, this.handleTopDragLeaveCapture = (
|
|
2738
|
-
this.isDraggingNativeItem() &&
|
|
2745
|
+
) ? (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? i.preventDefault() : (i.preventDefault(), i.dataTransfer && (i.dataTransfer.dropEffect = "none"));
|
|
2746
|
+
}, this.handleTopDragLeaveCapture = (i) => {
|
|
2747
|
+
this.isDraggingNativeItem() && i.preventDefault(), this.enterLeaveCounter.leave(i.target) && (this.isDraggingNativeItem() && setTimeout(
|
|
2739
2748
|
() => this.endDragNativeItem(),
|
|
2740
2749
|
0
|
|
2741
2750
|
), this.cancelHover());
|
|
2742
|
-
}, this.handleTopDropCapture = (
|
|
2751
|
+
}, this.handleTopDropCapture = (i) => {
|
|
2743
2752
|
if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
|
|
2744
|
-
var
|
|
2745
|
-
|
|
2746
|
-
} else pe(
|
|
2753
|
+
var o;
|
|
2754
|
+
i.preventDefault(), (o = this.currentNativeSource) === null || o === void 0 || o.loadDataTransfer(i.dataTransfer);
|
|
2755
|
+
} else pe(i.dataTransfer) && i.preventDefault();
|
|
2747
2756
|
this.enterLeaveCounter.reset();
|
|
2748
|
-
}, this.handleTopDrop = (
|
|
2749
|
-
const { dropTargetIds:
|
|
2750
|
-
this.dropTargetIds = [], this.actions.hover(
|
|
2751
|
-
clientOffset: Q(
|
|
2757
|
+
}, this.handleTopDrop = (i) => {
|
|
2758
|
+
const { dropTargetIds: o } = this;
|
|
2759
|
+
this.dropTargetIds = [], this.actions.hover(o, {
|
|
2760
|
+
clientOffset: Q(i)
|
|
2752
2761
|
}), this.actions.drop({
|
|
2753
2762
|
dropEffect: this.getCurrentDropEffect()
|
|
2754
2763
|
}), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2755
|
-
}, this.handleSelectStart = (
|
|
2756
|
-
const
|
|
2757
|
-
typeof
|
|
2758
|
-
}, this.options = new
|
|
2764
|
+
}, this.handleSelectStart = (i) => {
|
|
2765
|
+
const o = i.target;
|
|
2766
|
+
typeof o.dragDrop == "function" && (o.tagName === "INPUT" || o.tagName === "SELECT" || o.tagName === "TEXTAREA" || o.isContentEditable || (i.preventDefault(), o.dragDrop()));
|
|
2767
|
+
}, this.options = new ii(r, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new Zn(this.isNodeInDocument);
|
|
2759
2768
|
}
|
|
2760
2769
|
}
|
|
2761
|
-
const
|
|
2762
|
-
return new
|
|
2763
|
-
},
|
|
2770
|
+
const ai = function(e, r, n) {
|
|
2771
|
+
return new si(e, r, n);
|
|
2772
|
+
}, ci = [
|
|
2764
2773
|
".pdf",
|
|
2765
2774
|
".xlsx",
|
|
2766
2775
|
".xls",
|
|
@@ -2780,14 +2789,14 @@ const ao = function(e, r, n) {
|
|
|
2780
2789
|
".zip"
|
|
2781
2790
|
], Xe = {
|
|
2782
2791
|
FILE: "file"
|
|
2783
|
-
},
|
|
2792
|
+
}, ui = ({
|
|
2784
2793
|
originNode: t,
|
|
2785
2794
|
file: e,
|
|
2786
2795
|
fileList: r,
|
|
2787
2796
|
moveFile: n,
|
|
2788
|
-
onDrop:
|
|
2797
|
+
onDrop: i
|
|
2789
2798
|
}) => {
|
|
2790
|
-
const
|
|
2799
|
+
const o = re(null), [{ handlerId: s }, a] = Gn({
|
|
2791
2800
|
accept: Xe.FILE,
|
|
2792
2801
|
collect(y) {
|
|
2793
2802
|
return {
|
|
@@ -2795,7 +2804,7 @@ const ao = function(e, r, n) {
|
|
|
2795
2804
|
};
|
|
2796
2805
|
},
|
|
2797
2806
|
hover(y, v) {
|
|
2798
|
-
if (!
|
|
2807
|
+
if (!o.current)
|
|
2799
2808
|
return;
|
|
2800
2809
|
const f = y.uid, p = e.uid;
|
|
2801
2810
|
if (f === p)
|
|
@@ -2803,13 +2812,13 @@ const ao = function(e, r, n) {
|
|
|
2803
2812
|
const h = W(r, { uid: p }), O = W(r, { uid: f });
|
|
2804
2813
|
if (O === -1 || h === -1)
|
|
2805
2814
|
return;
|
|
2806
|
-
const m =
|
|
2807
|
-
O < h && b <
|
|
2815
|
+
const m = o.current?.getBoundingClientRect(), d = (m.bottom - m.top) / 2, b = v.getClientOffset().y - m.top;
|
|
2816
|
+
O < h && b < d || O > h && b > d || n(f, p);
|
|
2808
2817
|
},
|
|
2809
2818
|
drop() {
|
|
2810
|
-
|
|
2819
|
+
i();
|
|
2811
2820
|
}
|
|
2812
|
-
}), [{ isDragging: u },
|
|
2821
|
+
}), [{ isDragging: u }, g] = An({
|
|
2813
2822
|
type: Xe.FILE,
|
|
2814
2823
|
item: () => ({
|
|
2815
2824
|
uid: e.uid,
|
|
@@ -2818,19 +2827,19 @@ const ao = function(e, r, n) {
|
|
|
2818
2827
|
collect: (y) => ({
|
|
2819
2828
|
isDragging: y.isDragging()
|
|
2820
2829
|
})
|
|
2821
|
-
}),
|
|
2822
|
-
return
|
|
2823
|
-
},
|
|
2830
|
+
}), l = u ? 0 : 1;
|
|
2831
|
+
return g(a(o)), /* @__PURE__ */ c.jsx("div", { ref: o, style: { opacity: l }, "data-handler-id": s, children: t });
|
|
2832
|
+
}, Yi = ({
|
|
2824
2833
|
fileGrpKey: t,
|
|
2825
2834
|
onUploadComplete: e,
|
|
2826
2835
|
onFetchFilesTrxCd: r = "SCMFILE00101",
|
|
2827
2836
|
onSuccessTrxCd: n = "SCMFILE00102",
|
|
2828
|
-
onDeleteFileTrxCd:
|
|
2829
|
-
onReorderFilesTrxCd:
|
|
2830
|
-
allowedExtensions: s =
|
|
2837
|
+
onDeleteFileTrxCd: i = "SCMFILE00103",
|
|
2838
|
+
onReorderFilesTrxCd: o = "SCMFILE00104",
|
|
2839
|
+
allowedExtensions: s = ci,
|
|
2831
2840
|
maxFileSize: a = 200
|
|
2832
2841
|
}) => {
|
|
2833
|
-
const [u,
|
|
2842
|
+
const [u, g] = F([]);
|
|
2834
2843
|
Y(() => {
|
|
2835
2844
|
t && r && z(r, {
|
|
2836
2845
|
crprCd: $().crprCd,
|
|
@@ -2844,21 +2853,21 @@ const ao = function(e, r, n) {
|
|
|
2844
2853
|
status: "done",
|
|
2845
2854
|
url: `/api/download?filePath=${O.filePath}&logicalName=${O.lgclFileNm}`
|
|
2846
2855
|
}));
|
|
2847
|
-
|
|
2856
|
+
g(h);
|
|
2848
2857
|
}
|
|
2849
2858
|
}).catch((p) => {
|
|
2850
2859
|
console.error("파일 목록 조회 서비스 호출에 실패했습니다.", p), C.error("파일 목록을 불러오는 중 오류가 발생했습니다.");
|
|
2851
2860
|
});
|
|
2852
2861
|
}, [t, r]);
|
|
2853
|
-
const
|
|
2862
|
+
const l = (p, h) => {
|
|
2854
2863
|
const O = W(u, { uid: p }), m = W(u, { uid: h });
|
|
2855
2864
|
if (O < 0 || m < 0) return;
|
|
2856
|
-
const
|
|
2857
|
-
|
|
2865
|
+
const d = [...u], [S] = d.splice(O, 1);
|
|
2866
|
+
d.splice(m, 0, S), g(d);
|
|
2858
2867
|
}, y = () => {
|
|
2859
|
-
if (t &&
|
|
2868
|
+
if (t && o) {
|
|
2860
2869
|
const p = u.map((h) => h.uid);
|
|
2861
|
-
z(
|
|
2870
|
+
z(o, {
|
|
2862
2871
|
crprCd: $().crprCd,
|
|
2863
2872
|
sysCd: __SYS_CD__,
|
|
2864
2873
|
fileGrpKey: t,
|
|
@@ -2889,23 +2898,23 @@ const ao = function(e, r, n) {
|
|
|
2889
2898
|
onChange(p) {
|
|
2890
2899
|
const { status: h, uid: O } = p.file;
|
|
2891
2900
|
if (h === "removed") {
|
|
2892
|
-
|
|
2901
|
+
i ? z(i, {
|
|
2893
2902
|
crprCd: $().crprCd,
|
|
2894
2903
|
sysCd: __SYS_CD__,
|
|
2895
2904
|
fileGrpKey: t,
|
|
2896
2905
|
fileKey: O
|
|
2897
2906
|
}).then(() => {
|
|
2898
|
-
C.success("파일이 성공적으로 삭제되었습니다."),
|
|
2899
|
-
}).catch((
|
|
2900
|
-
console.error("파일 삭제 서비스 호출에 실패했습니다.",
|
|
2901
|
-
}) :
|
|
2907
|
+
C.success("파일이 성공적으로 삭제되었습니다."), g(p.fileList);
|
|
2908
|
+
}).catch((d) => {
|
|
2909
|
+
console.error("파일 삭제 서비스 호출에 실패했습니다.", d), C.error("파일 삭제 중 오류가 발생했습니다.");
|
|
2910
|
+
}) : g(p.fileList);
|
|
2902
2911
|
return;
|
|
2903
2912
|
}
|
|
2904
2913
|
let m = [...p.fileList];
|
|
2905
2914
|
if (h === "done")
|
|
2906
2915
|
if (p.file.response?.success) {
|
|
2907
|
-
const { uploadedFiles:
|
|
2908
|
-
|
|
2916
|
+
const { uploadedFiles: d } = p.file.response;
|
|
2917
|
+
d && Array.isArray(d) && d.length > 0 && d.forEach((S) => {
|
|
2909
2918
|
n ? z(n, {
|
|
2910
2919
|
crprCd: $().crprCd,
|
|
2911
2920
|
sysCd: __SYS_CD__,
|
|
@@ -2924,7 +2933,7 @@ const ao = function(e, r, n) {
|
|
|
2924
2933
|
}
|
|
2925
2934
|
]
|
|
2926
2935
|
}).then((b) => {
|
|
2927
|
-
b?.sub && b.sub.length > 0 &&
|
|
2936
|
+
b?.sub && b.sub.length > 0 && g(
|
|
2928
2937
|
(x) => x.map((N) => N.uid === p.file.uid ? {
|
|
2929
2938
|
...N,
|
|
2930
2939
|
uid: b.sub[0].fileKey,
|
|
@@ -2950,7 +2959,7 @@ const ao = function(e, r, n) {
|
|
|
2950
2959
|
else h === "error" && C.error(
|
|
2951
2960
|
p.file.response?.message || `${p.file.name} 파일 업로드 중 오류가 발생했습니다.`
|
|
2952
2961
|
);
|
|
2953
|
-
|
|
2962
|
+
g(m);
|
|
2954
2963
|
},
|
|
2955
2964
|
itemRender(p, h, O) {
|
|
2956
2965
|
const m = Ze.cloneElement(p, {
|
|
@@ -2958,20 +2967,20 @@ const ao = function(e, r, n) {
|
|
|
2958
2967
|
title: void 0
|
|
2959
2968
|
});
|
|
2960
2969
|
return /* @__PURE__ */ c.jsx(
|
|
2961
|
-
|
|
2970
|
+
ui,
|
|
2962
2971
|
{
|
|
2963
2972
|
originNode: m,
|
|
2964
2973
|
file: h,
|
|
2965
2974
|
fileList: O,
|
|
2966
|
-
moveFile:
|
|
2975
|
+
moveFile: l,
|
|
2967
2976
|
onDrop: y
|
|
2968
2977
|
},
|
|
2969
2978
|
h.uid
|
|
2970
2979
|
);
|
|
2971
2980
|
}
|
|
2972
2981
|
};
|
|
2973
|
-
return /* @__PURE__ */ c.jsx(hn, { backend:
|
|
2974
|
-
}, { Text: K, Link:
|
|
2982
|
+
return /* @__PURE__ */ c.jsx(hn, { backend: ai, children: /* @__PURE__ */ c.jsx(H, { ...f, listType: "picture", children: /* @__PURE__ */ c.jsx(q, { icon: /* @__PURE__ */ c.jsx(Je, {}), children: "파일 선택" }) }) });
|
|
2983
|
+
}, { Text: K, Link: Ai } = We, { Dragger: li } = H, di = [
|
|
2975
2984
|
".pdf",
|
|
2976
2985
|
".xlsx",
|
|
2977
2986
|
".xls",
|
|
@@ -2989,37 +2998,37 @@ const ao = function(e, r, n) {
|
|
|
2989
2998
|
".gif",
|
|
2990
2999
|
// 압축
|
|
2991
3000
|
".zip"
|
|
2992
|
-
],
|
|
3001
|
+
], gi = (t, e = 2) => {
|
|
2993
3002
|
if (t === 0) return "0 Bytes";
|
|
2994
|
-
const r = 1024, n = e < 0 ? 0 : e,
|
|
2995
|
-
return parseFloat((t / Math.pow(r,
|
|
2996
|
-
},
|
|
3003
|
+
const r = 1024, n = e < 0 ? 0 : e, i = ["Bytes", "KB", "MB", "GB", "TB"], o = Math.floor(Math.log(t) / Math.log(r));
|
|
3004
|
+
return parseFloat((t / Math.pow(r, o)).toFixed(n)) + " " + i[o];
|
|
3005
|
+
}, Hi = ({
|
|
2997
3006
|
title: t = "첨부파일",
|
|
2998
3007
|
fileGrpKey: e,
|
|
2999
3008
|
onUploadComplete: r,
|
|
3000
3009
|
onSuccessTrxCd: n = "SCMFILE00102",
|
|
3001
3010
|
// BwgUploader와 동일한 기본 trxCd 설정
|
|
3002
|
-
anotherServiceTrxCd:
|
|
3003
|
-
allowedExtensions:
|
|
3011
|
+
anotherServiceTrxCd: i = "SCMFILE00105",
|
|
3012
|
+
allowedExtensions: o = di,
|
|
3004
3013
|
maxFileSize: s = 2048
|
|
3005
3014
|
// 기본값 2GB
|
|
3006
3015
|
}) => {
|
|
3007
|
-
const [a, u] = F([]), [
|
|
3008
|
-
if (
|
|
3016
|
+
const [a, u] = F([]), [g, l] = F(!1), [y, v] = F(!1), [f, p] = F(0), h = (d) => {
|
|
3017
|
+
if (o && o.length > 0) {
|
|
3009
3018
|
const b = ((x) => {
|
|
3010
3019
|
const N = x.lastIndexOf(".");
|
|
3011
3020
|
return N === -1 ? "" : x.substring(N).toLowerCase();
|
|
3012
|
-
})(
|
|
3013
|
-
if (!
|
|
3021
|
+
})(d.name);
|
|
3022
|
+
if (!o.includes(b))
|
|
3014
3023
|
return C.error(
|
|
3015
|
-
`${
|
|
3024
|
+
`${d.name} 파일은 허용되지 않는 확장자입니다. (${o.join(
|
|
3016
3025
|
", "
|
|
3017
3026
|
)}만 가능)`
|
|
3018
3027
|
), !1;
|
|
3019
3028
|
}
|
|
3020
3029
|
return !0;
|
|
3021
3030
|
}, O = async () => {
|
|
3022
|
-
const
|
|
3031
|
+
const d = a.filter((I) => I.status !== "done"), S = d.reduce(
|
|
3023
3032
|
(I, A) => I + (A.size || 0),
|
|
3024
3033
|
0
|
|
3025
3034
|
), b = 2 * 1024 * 1024 * 1024;
|
|
@@ -3030,7 +3039,7 @@ const ao = function(e, r, n) {
|
|
|
3030
3039
|
});
|
|
3031
3040
|
return;
|
|
3032
3041
|
}
|
|
3033
|
-
if (
|
|
3042
|
+
if (d.length === 0) {
|
|
3034
3043
|
C.warning(
|
|
3035
3044
|
"업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다."
|
|
3036
3045
|
);
|
|
@@ -3040,7 +3049,7 @@ const ao = function(e, r, n) {
|
|
|
3040
3049
|
let x;
|
|
3041
3050
|
try {
|
|
3042
3051
|
const I = new Bt();
|
|
3043
|
-
|
|
3052
|
+
d.forEach((A) => {
|
|
3044
3053
|
A.originFileObj && I.file(A.name, A.originFileObj);
|
|
3045
3054
|
}), x = await I.generateAsync({
|
|
3046
3055
|
type: "blob",
|
|
@@ -3056,7 +3065,7 @@ const ao = function(e, r, n) {
|
|
|
3056
3065
|
}
|
|
3057
3066
|
v(!1);
|
|
3058
3067
|
const N = new FormData();
|
|
3059
|
-
N.append("file", x, "upload.zip"),
|
|
3068
|
+
N.append("file", x, "upload.zip"), l(!0), p(0);
|
|
3060
3069
|
try {
|
|
3061
3070
|
const I = await new Promise((R, T) => {
|
|
3062
3071
|
const _ = new XMLHttpRequest();
|
|
@@ -3092,7 +3101,7 @@ const ao = function(e, r, n) {
|
|
|
3092
3101
|
I.message || "압축 파일이 성공적으로 업로드되었습니다."
|
|
3093
3102
|
);
|
|
3094
3103
|
const A = a.map(
|
|
3095
|
-
(R) =>
|
|
3104
|
+
(R) => d.find((T) => T.uid === R.uid) ? { ...R, status: "done" } : R
|
|
3096
3105
|
);
|
|
3097
3106
|
if (u(A), n && I.uploadedFiles && Array.isArray(I.uploadedFiles)) {
|
|
3098
3107
|
const R = $();
|
|
@@ -3126,7 +3135,7 @@ const ao = function(e, r, n) {
|
|
|
3126
3135
|
fileExtn: J.name.split(".").pop(),
|
|
3127
3136
|
fileType: J.type
|
|
3128
3137
|
}));
|
|
3129
|
-
z(
|
|
3138
|
+
z(i, {
|
|
3130
3139
|
// 파일 목록에 fileKey를 추가합니다.
|
|
3131
3140
|
sub: ce
|
|
3132
3141
|
});
|
|
@@ -3143,7 +3152,7 @@ const ao = function(e, r, n) {
|
|
|
3143
3152
|
} catch (I) {
|
|
3144
3153
|
C.error(I.message || "파일 업로드 중 오류가 발생했습니다.");
|
|
3145
3154
|
const A = a.map(
|
|
3146
|
-
(R) =>
|
|
3155
|
+
(R) => d.find((T) => T.uid === R.uid) ? {
|
|
3147
3156
|
...R,
|
|
3148
3157
|
status: "error",
|
|
3149
3158
|
response: I.message || "파일 업로드 중 오류가 발생했습니다."
|
|
@@ -3151,24 +3160,24 @@ const ao = function(e, r, n) {
|
|
|
3151
3160
|
);
|
|
3152
3161
|
u(A);
|
|
3153
3162
|
} finally {
|
|
3154
|
-
|
|
3163
|
+
l(!1);
|
|
3155
3164
|
}
|
|
3156
3165
|
}, m = {
|
|
3157
3166
|
multiple: !0,
|
|
3158
3167
|
fileList: a,
|
|
3159
|
-
beforeUpload: (
|
|
3168
|
+
beforeUpload: (d) => h(d) ? s && d.size >= s * 1024 * 1024 ? (C.error(
|
|
3160
3169
|
`대용량 첨부 파일 최대 크기는 ${(s / 1024).toFixed(
|
|
3161
3170
|
1
|
|
3162
3171
|
)}GB입니다.`
|
|
3163
3172
|
), H.LIST_IGNORE) : !1 : H.LIST_IGNORE,
|
|
3164
|
-
onChange: ({ fileList:
|
|
3173
|
+
onChange: ({ fileList: d }) => {
|
|
3165
3174
|
const S = new Map(a.map((b) => [b.uid, b]));
|
|
3166
|
-
|
|
3175
|
+
d.forEach((b) => {
|
|
3167
3176
|
S.set(b.uid, b);
|
|
3168
3177
|
}), u(Array.from(S.values()));
|
|
3169
3178
|
},
|
|
3170
|
-
onRemove: (
|
|
3171
|
-
const S = a.filter((b) => b.uid !==
|
|
3179
|
+
onRemove: (d) => {
|
|
3180
|
+
const S = a.filter((b) => b.uid !== d.uid);
|
|
3172
3181
|
u(S);
|
|
3173
3182
|
},
|
|
3174
3183
|
showUploadList: !1
|
|
@@ -3177,7 +3186,7 @@ const ao = function(e, r, n) {
|
|
|
3177
3186
|
return /* @__PURE__ */ c.jsx(
|
|
3178
3187
|
St,
|
|
3179
3188
|
{
|
|
3180
|
-
spinning:
|
|
3189
|
+
spinning: g || y,
|
|
3181
3190
|
tip: y ? "파일 압축 중..." : `파일 업로드 중... ${f}%`,
|
|
3182
3191
|
children: /* @__PURE__ */ c.jsxs("div", { className: "bwg-large-uploader-container", children: [
|
|
3183
3192
|
/* @__PURE__ */ c.jsx(
|
|
@@ -3187,7 +3196,7 @@ const ao = function(e, r, n) {
|
|
|
3187
3196
|
extra: /* @__PURE__ */ c.jsx(H, { ...m, children: /* @__PURE__ */ c.jsx(q, { icon: /* @__PURE__ */ c.jsx(Je, {}), children: "파일 선택" }) }),
|
|
3188
3197
|
bodyStyle: { padding: 0 },
|
|
3189
3198
|
children: /* @__PURE__ */ c.jsx(
|
|
3190
|
-
|
|
3199
|
+
li,
|
|
3191
3200
|
{
|
|
3192
3201
|
...m,
|
|
3193
3202
|
style: {
|
|
@@ -3200,8 +3209,8 @@ const ao = function(e, r, n) {
|
|
|
3200
3209
|
{
|
|
3201
3210
|
style: { textAlign: "left" },
|
|
3202
3211
|
dataSource: a,
|
|
3203
|
-
renderItem: (
|
|
3204
|
-
const S =
|
|
3212
|
+
renderItem: (d) => {
|
|
3213
|
+
const S = d.status === "done", b = d.status === "error";
|
|
3205
3214
|
let x;
|
|
3206
3215
|
return S ? x = /* @__PURE__ */ c.jsx(
|
|
3207
3216
|
Yt,
|
|
@@ -3211,7 +3220,7 @@ const ao = function(e, r, n) {
|
|
|
3211
3220
|
) : b ? x = /* @__PURE__ */ c.jsx(
|
|
3212
3221
|
bt,
|
|
3213
3222
|
{
|
|
3214
|
-
title: typeof
|
|
3223
|
+
title: typeof d.response == "string" ? d.response : "업로드 실패",
|
|
3215
3224
|
children: /* @__PURE__ */ c.jsx(
|
|
3216
3225
|
Lt,
|
|
3217
3226
|
{
|
|
@@ -3223,16 +3232,16 @@ const ao = function(e, r, n) {
|
|
|
3223
3232
|
ue.Item,
|
|
3224
3233
|
{
|
|
3225
3234
|
actions: [
|
|
3226
|
-
/* @__PURE__ */ c.jsx(K, { type: "secondary", children:
|
|
3235
|
+
/* @__PURE__ */ c.jsx(K, { type: "secondary", children: gi(d.size || 0) }, "size"),
|
|
3227
3236
|
/* @__PURE__ */ c.jsx(
|
|
3228
3237
|
q,
|
|
3229
3238
|
{
|
|
3230
3239
|
type: "text",
|
|
3231
3240
|
icon: /* @__PURE__ */ c.jsx(jt, {}),
|
|
3232
3241
|
onClick: (N) => {
|
|
3233
|
-
N.stopPropagation(), m.onRemove?.(
|
|
3242
|
+
N.stopPropagation(), m.onRemove?.(d);
|
|
3234
3243
|
},
|
|
3235
|
-
disabled:
|
|
3244
|
+
disabled: g || y
|
|
3236
3245
|
},
|
|
3237
3246
|
"delete"
|
|
3238
3247
|
)
|
|
@@ -3241,11 +3250,11 @@ const ao = function(e, r, n) {
|
|
|
3241
3250
|
ue.Item.Meta,
|
|
3242
3251
|
{
|
|
3243
3252
|
avatar: x,
|
|
3244
|
-
title: /* @__PURE__ */ c.jsx(K, { type: b ? "danger" : void 0, children:
|
|
3253
|
+
title: /* @__PURE__ */ c.jsx(K, { type: b ? "danger" : void 0, children: d.name })
|
|
3245
3254
|
}
|
|
3246
3255
|
)
|
|
3247
3256
|
},
|
|
3248
|
-
|
|
3257
|
+
d.uid
|
|
3249
3258
|
);
|
|
3250
3259
|
}
|
|
3251
3260
|
}
|
|
@@ -3275,13 +3284,13 @@ const ao = function(e, r, n) {
|
|
|
3275
3284
|
gap: "large",
|
|
3276
3285
|
style: { marginTop: 16 },
|
|
3277
3286
|
children: [
|
|
3278
|
-
|
|
3287
|
+
g && /* @__PURE__ */ c.jsx("div", { style: { width: "250px" }, children: /* @__PURE__ */ c.jsx(Tt, { percent: f, size: "small" }) }),
|
|
3279
3288
|
/* @__PURE__ */ c.jsx(
|
|
3280
3289
|
q,
|
|
3281
3290
|
{
|
|
3282
3291
|
type: "primary",
|
|
3283
3292
|
onClick: O,
|
|
3284
|
-
disabled:
|
|
3293
|
+
disabled: g || y || a.filter((d) => d.status !== "done").length === 0,
|
|
3285
3294
|
icon: /* @__PURE__ */ c.jsx(kt, {}),
|
|
3286
3295
|
children: "일괄 업로드"
|
|
3287
3296
|
}
|
|
@@ -3296,20 +3305,21 @@ const ao = function(e, r, n) {
|
|
|
3296
3305
|
export {
|
|
3297
3306
|
w as B,
|
|
3298
3307
|
Ut as a,
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3308
|
+
Ci as b,
|
|
3309
|
+
Ii as c,
|
|
3310
|
+
Ei as d,
|
|
3311
|
+
wi as e,
|
|
3312
|
+
xi as f,
|
|
3313
|
+
Ni as g,
|
|
3314
|
+
Pi as h,
|
|
3315
|
+
Mi as i,
|
|
3316
|
+
Ri as j,
|
|
3317
|
+
_i as k,
|
|
3318
|
+
Li as l,
|
|
3319
|
+
ji as m,
|
|
3320
|
+
Fi as n,
|
|
3321
|
+
ki as o,
|
|
3322
|
+
Yi as p,
|
|
3323
|
+
Hi as q
|
|
3315
3324
|
};
|
|
3325
|
+
//# sourceMappingURL=BwgLargeUploader-CZllyq7K.js.map
|