@bwg-ui/core 1.2.34 → 1.3.0
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/{CMSearchIntfGwP01-CmRmK_7Z.cjs → CMSearchIntfGwP01-D7XtXMLy.cjs} +1 -1
- package/dist/chunks/{CMSearchIntfGwP01-DmVxvizb.js → CMSearchIntfGwP01-_h2B12Ig.js} +28 -28
- package/dist/chunks/{MenuReport-Dsh_obqp.js → MenuReport-Bw3AvR6b.js} +34 -34
- package/dist/chunks/MenuReport-DuWbbKBC.cjs +1 -0
- package/dist/chunks/common-components-BOJo6FH_.cjs +1109 -0
- package/dist/chunks/{common-components-BJrGciHA.js → common-components-BjfrRYiU.js} +17198 -17019
- package/dist/chunks/{layout-components-DuSrPWSr.js → layout-components-DNhUIx4u.js} +988 -691
- package/dist/chunks/layout-components-Ddn-4n36.cjs +35 -0
- package/dist/chunks/provider-DrboIg2C.cjs +1 -0
- package/dist/chunks/provider-VCa8UGvF.js +446 -0
- package/dist/components/common/BwgGrid.d.ts +17 -16
- package/dist/components/common/BwgGrid.d.ts.map +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts +3 -3
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +4 -3
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +5 -5
- package/dist/components/common/type.d.ts +7 -0
- package/dist/components/common/type.d.ts.map +1 -1
- package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
- package/dist/components/core/BwgDownload.d.ts +3 -3
- package/dist/components/core/BwgDownload.d.ts.map +1 -1
- package/dist/components/core/BwgMaskedDate.d.ts +13 -0
- package/dist/components/core/BwgMaskedDate.d.ts.map +1 -0
- package/dist/components/core/{BwgMaskedPicker.d.ts → BwgMaskedRange.d.ts} +6 -4
- package/dist/components/core/BwgMaskedRange.d.ts.map +1 -0
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.d.ts +4 -2
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +1240 -782
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +3 -3
- package/dist/components/layout/AppWrapper.d.ts +1 -1
- package/dist/components/layout/AppWrapper.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/BwgPortal02.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/default/HeaderContainer.d.ts +15 -0
- package/dist/components/layout/default/HeaderContainer.d.ts.map +1 -0
- package/dist/components/layout/default/index.d.ts +1 -0
- package/dist/components/layout/default/index.d.ts.map +1 -1
- package/dist/components/layout/extension/ContentWrapper.d.ts +17 -0
- package/dist/components/layout/extension/ContentWrapper.d.ts.map +1 -0
- package/dist/components/layout/extension/index.d.ts +1 -0
- package/dist/components/layout/extension/index.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +15 -13
- package/dist/components/layout/types.d.ts +28 -2
- package/dist/components/layout/types.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMFileMstrM01.d.ts.map +1 -1
- package/dist/components/pages/rsrc/CMPrgrMstrM01.d.ts.map +1 -1
- package/dist/components/pages/syst/CMHldyCfg.d.ts.map +1 -1
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchAddressP01.d.ts +30 -0
- package/dist/components/popup/SearchAddressP01.d.ts.map +1 -0
- package/dist/components/popup/SearchHolidayP01.d.ts +2 -2
- package/dist/components/popup/SearchHolidayP01.d.ts.map +1 -1
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -1
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +2 -0
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +6 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +270 -257
- package/dist/provider/contexts/BwgViewContext.d.ts +19 -0
- package/dist/provider/contexts/BwgViewContext.d.ts.map +1 -0
- package/dist/provider/contexts/index.d.ts +1 -0
- package/dist/provider/contexts/index.d.ts.map +1 -1
- package/dist/provider/hooks/index.d.ts +1 -0
- package/dist/provider/hooks/index.d.ts.map +1 -1
- package/dist/provider/hooks/useSizeConfig.d.ts +19 -0
- package/dist/provider/hooks/useSizeConfig.d.ts.map +1 -0
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +22 -381
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +18 -11
- package/dist/stores/userStore.d.ts +4 -0
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/styles/components.css +90 -60
- package/dist/styles/layout.css +1234 -1234
- package/dist/utils/apiUtils.d.ts +1 -1
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/{FileUtils.d.ts → fileUtils.d.ts} +1 -1
- package/dist/utils/fileUtils.d.ts.map +1 -0
- package/dist/utils/gridUtils.d.ts +45 -0
- package/dist/utils/gridUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +13 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1159 -1043
- package/package.json +1 -1
- package/dist/chunks/MenuReport-D3V5JPQR.cjs +0 -1
- package/dist/chunks/common-components-BpsIQZ0O.cjs +0 -1057
- package/dist/chunks/layout-components-fFjip5fv.cjs +0 -35
- package/dist/components/core/BwgMaskedPicker.d.ts.map +0 -1
- package/dist/utils/FileUtils.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgGrid.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BwgGrid.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgGrid.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,YAAY,EAGb,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,aAAa,EACb,aAAa,EAGb,gBAAgB,EAEhB,GAAG,EAQJ,MAAM,OAAO,CAAC;AACf,OAAO,QAAQ,EAAE,EACf,SAAS,EACT,SAAS,EACT,wBAAwB,EACxB,UAAU,EACV,gBAAgB,EAEhB,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,qBAAqB,EAErB,cAAc,EAGd,QAAQ,EACR,eAAe,EACf,SAAS,EACV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAS9D,UAAU,qBAAqB;IAC7B,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe;IACf,UAAU,CAAC,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,6BAA6B;QAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED;;;;GAIG;AACH,UAAU,gBAAgB;IACxB,UAAU;IACV,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,UAAU;IACV,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAC;IACjE;;;;;;OAMG;IACH,iBAAiB,CAAC,EA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
|
|
1
|
-
{"version":3,"file":"BwgPagination.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgPagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BwgPagination.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgPagination.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAGpD,MAAM,WAAW,gBAAgB;IAC/B,aAAa;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,gBAAgB;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,iBAAiB;IACjB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,iBAAiB;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IAEjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAGzB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,aAAa,iHAwdlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BwgViewProps } from './type';
|
|
1
|
+
import { BwgViewProps, BwgViewRef } from './type';
|
|
3
2
|
/**
|
|
4
3
|
* 공통 뷰 컴포넌트 래퍼
|
|
5
4
|
* @remark (필수) 뷰 컴포넌트 래퍼로 사용하면 자동으로 뷰 컴포넌트의 상태 관리가 된다.
|
|
6
5
|
* @param {BwgViewProps} props - 뷰 컴포넌트 속성
|
|
6
|
+
* @param {React.Ref<BwgViewRef>} ref - ref를 통해 메뉴 ID 등에 접근 가능
|
|
7
7
|
* @returns {ReactNode} - 뷰 컴포넌트
|
|
8
8
|
*/
|
|
9
|
-
declare const BwgView:
|
|
9
|
+
declare const BwgView: import('react').ForwardRefExoticComponent<BwgViewProps & import('react').RefAttributes<BwgViewRef>>;
|
|
10
10
|
export default BwgView;
|
|
11
11
|
//# sourceMappingURL=BwgView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgView.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BwgView.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgView.tsx"],"names":[],"mappings":"AAgCA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AA8BlD;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,qGA8cZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-BOJo6FH_.cjs"),o=require("../../utils/index.cjs");exports.ButtonAccessController=e.ButtonAccessController;exports.BwgButtonGroup=e.BwgButtonGroup;exports.BwgCmptArea=e.BwgCmptArea;exports.BwgCol=e.BwgCol;exports.BwgConfigProvider=e.BwgConfigProvider;exports.BwgDetail=e.BwgDetail;exports.BwgDrawer=e.BwgDrawer;exports.BwgEditor=e.BwgEditor;exports.BwgGrid=e.BwgGrid;exports.BwgInfoArea=e.BwgInfoArea;exports.BwgPagination=e.BwgPagination;exports.BwgPopup=e.BwgPopup;exports.BwgRow=e.BwgRow;exports.BwgSpace=e.BwgSpace;exports.BwgTable=e.BwgTable;exports.BwgTabs=e.BwgTabs;exports.BwgTitleBox=e.BwgTitleBox;exports.BwgView=e.BwgView;exports.ContentBox=e.ContentBox;exports.ContentLayOut=e.ContentLayOut;exports.GlobalConfigProvider=e.GlobalConfigProvider;exports.QuickServiceToggle=e.QuickServiceToggle;exports.SSOHandler=e.SSOHandler;exports.SearchBox=e.SearchBox;exports.createBwgGridRenderer=o.createBwgGridRenderer;exports.realFormat=o.realFormat;
|
|
@@ -22,8 +22,9 @@ export { default as GlobalConfigProvider } from './GlobalConfigProvider';
|
|
|
22
22
|
export { default as QuickServiceToggle } from './QuickServiceToggle';
|
|
23
23
|
export { default as SearchBox } from './SearchBox';
|
|
24
24
|
export { default as SSOHandler } from './SSOHandler';
|
|
25
|
-
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef,
|
|
26
|
-
export { createBwgGridRenderer } from '
|
|
25
|
+
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, } from './BwgGrid';
|
|
26
|
+
export { createBwgGridRenderer } from '../../utils/gridUtils';
|
|
27
|
+
export type { BwgGridRenderType } from '../../utils/gridUtils';
|
|
27
28
|
export type { BwgPaginationProps, BwgPaginationRef } from './BwgPagination';
|
|
28
29
|
export { default as realFormat } from '../../utils/realFormat';
|
|
29
30
|
export type { ButtonEvent, ButtonPermissionResponse, BwgButtonGroupProps, } from './BwgButtonGroup';
|
|
@@ -40,5 +41,5 @@ export type { ContentLayOutProps } from './ContentLayOut';
|
|
|
40
41
|
export type { GlobalConfigProviderProps } from './GlobalConfigProvider';
|
|
41
42
|
export type { QuickServiceItem, QuickServiceToggleProps, } from './QuickServiceToggle';
|
|
42
43
|
export type { SearchBoxRef } from './SearchBox';
|
|
43
|
-
export type { ButtonAccessControllerProps, BwgViewProps, SearchBoxProps, } from './type';
|
|
44
|
+
export type { ButtonAccessControllerProps, BwgViewProps, BwgViewRef, ControlledButton, SearchBoxProps, } from './type';
|
|
44
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7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EAAE,MAAM,uBAAuB,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAG5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAG/D,YAAY,EACV,WAAW,EACX,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACvE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,YAAY,EACV,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,YAAY,EACV,2BAA2B,EAC3B,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,cAAc,GACf,MAAM,QAAQ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { realFormat as k } from "../../utils/index.js";
|
|
1
|
+
import { f as o, p as s, q as r, j as B, B as g, r as w, s as t, o as i, h as n, t as l, n as d, m as p, i as C, b as c, u, l as f, e as S, k as m, d as x, C as G, G as b, Q as v, v as P, S as T } from "../../chunks/common-components-BjfrRYiU.js";
|
|
2
|
+
import { createBwgGridRenderer as h, realFormat as k } from "../../utils/index.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as ButtonAccessController,
|
|
5
|
+
s as BwgButtonGroup,
|
|
6
6
|
r as BwgCmptArea,
|
|
7
7
|
B as BwgCol,
|
|
8
8
|
g as BwgConfigProvider,
|
|
@@ -25,6 +25,6 @@ export {
|
|
|
25
25
|
v as QuickServiceToggle,
|
|
26
26
|
P as SSOHandler,
|
|
27
27
|
T as SearchBox,
|
|
28
|
-
|
|
28
|
+
h as createBwgGridRenderer,
|
|
29
29
|
k as realFormat
|
|
30
30
|
};
|
|
@@ -85,6 +85,13 @@ export interface SearchBoxProps {
|
|
|
85
85
|
buttons?: ReactNode;
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* BwgView ref를 통해 노출되는 메서드 및 값
|
|
90
|
+
*/
|
|
91
|
+
export interface BwgViewRef {
|
|
92
|
+
/** 현재 활성화된 메뉴 ID (직접 접근 가능) */
|
|
93
|
+
menuId: string | undefined;
|
|
94
|
+
}
|
|
88
95
|
/**
|
|
89
96
|
* BwgView 컴포넌트 속성 인터페이스
|
|
90
97
|
* @remark 뷰 컴포넌트 래퍼로 사용하면 자동으로 뷰 컴포넌트의 상태 관리가 된다.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/common/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/components/common/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OA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G,OAAO,CAAC,IAAI,CAAC,CAAC;KACvD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgDatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACvD,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAaD,QAAA,MAAM,aAAa,GAAI,8CAKpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"BwgDatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgDatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACvD,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAaD,QAAA,MAAM,aAAa,GAAI,8CAKpB,kBAAkB,4CA2DpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -3,7 +3,7 @@ export interface BwgDownloadProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* 파일을 조회하기 위한 파일 그룹 키입니다.
|
|
5
5
|
*/
|
|
6
|
-
fileGrpKey
|
|
6
|
+
fileGrpKey: string | number;
|
|
7
7
|
/**
|
|
8
8
|
* 파일 목록을 조회하는 거래코드.
|
|
9
9
|
* 기본값: 'SCMFILE00101'
|
|
@@ -16,9 +16,9 @@ export interface BwgDownloadProps {
|
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* 시스템 코드
|
|
19
|
-
* @default
|
|
19
|
+
* @default __APP_CD__
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
appCd?: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* BwgDownload 컴포넌트
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgDownload.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgDownload.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAGhD,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,
|
|
1
|
+
{"version":3,"file":"BwgDownload.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgDownload.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AAGhD,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA8IrC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputProps, DatePickerProps } from 'antd';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { BwgFormItemProps } from './BwgFormItem';
|
|
4
|
+
export type DateType = 'date' | 'month' | 'year';
|
|
5
|
+
export type BwgMaskedDateProps = {
|
|
6
|
+
type?: DateType;
|
|
7
|
+
itemProps?: BwgFormItemProps;
|
|
8
|
+
inputProps?: InputProps;
|
|
9
|
+
pickerProps?: DatePickerProps;
|
|
10
|
+
} & Omit<InputProps, 'value' | 'onChange'>;
|
|
11
|
+
declare const BwgMaskedDate: FC<BwgMaskedDateProps>;
|
|
12
|
+
export default BwgMaskedDate;
|
|
13
|
+
//# sourceMappingURL=BwgMaskedDate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BwgMaskedDate.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgMaskedDate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAIxD,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AACxD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG9D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAkBjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE3C,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA2RzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { InputProps } from 'antd';
|
|
2
|
+
import { RangePickerProps } from 'antd/es/date-picker';
|
|
2
3
|
import { FC } from 'react';
|
|
3
4
|
import { BwgFormItemProps } from './BwgFormItem';
|
|
4
5
|
export type DateType = 'date' | 'month' | 'year';
|
|
5
|
-
export type
|
|
6
|
+
export type BwgMaskedRangeProps = {
|
|
6
7
|
type?: DateType;
|
|
7
8
|
itemProps?: BwgFormItemProps;
|
|
8
9
|
inputProps?: InputProps;
|
|
10
|
+
pickerProps?: RangePickerProps;
|
|
9
11
|
} & Omit<InputProps, 'value' | 'onChange'>;
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
declare const BwgMaskedRange: FC<BwgMaskedRangeProps>;
|
|
13
|
+
export default BwgMaskedRange;
|
|
14
|
+
//# sourceMappingURL=BwgMaskedRange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BwgMaskedRange.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgMaskedRange.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AACxD,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAI9D,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAkBjD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA81B3C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("antd"),m=require("react"),ne=require("../../stores/index.cjs"),U=require("dayjs"),A=require("@ant-design/icons"),q=require("lodash"),E=require("../../utils/index.cjs"),ie=require("jszip"),se=require("imask"),J=require("react-dnd"),le=require("react-dnd-html5-backend"),ce=t=>{const{componentSize:e}=ne.useUserStore(),l=m.useMemo(()=>t.size?t.size:{0:"small",1:"middle",2:"large"}[e],[e,t.size]),o=m.useMemo(()=>({0:12,1:14,2:16})[e],[e]);return r.jsx(n.Button,{...t,size:l,className:"bwg-btn",style:{fontSize:`${o}px`,...t.style},children:t.children})},D=m.memo(({children:t,label:e,name:l,rules:o,initialValue:s,style:a,required:g,...i})=>{const f={fontWeight:"bold"};(o==null||o==null)&&g&&(o=[{required:!0,message:`${e}을(를) 입력해주세요.`}]);const d=Array.isArray(o)&&o.some(x=>x.required===!0),w=()=>typeof e=="string"?r.jsxs("span",{style:f,children:[e,d&&r.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}):r.jsx("span",{style:f,children:e});return r.jsx(n.Form.Item,{className:"bwg-form-item",label:e?w():void 0,labelAlign:i.labelAlign||"left",name:l,rules:o,colon:!1,initialValue:s,style:a,...i,children:t})}),de=({itemProps:t,inputProps:e={format:"YN"}})=>{const l=n.Form.useFormInstance(),o=s=>{e.format==="boolean"?l.setFieldValue(t?.name,s.target.checked):l.setFieldValue(t?.name,s.target.checked?"Y":"N"),e.onChange&&e.onChange(s)};return r.jsx(D,{...t,getValueProps:s=>({checked:e.format==="boolean"?!!s:s==="Y"}),normalize:s=>typeof s=="boolean"?e.format==="boolean"?s:s?"Y":"N":e.format==="boolean"?!!s:s?"Y":"N",children:r.jsx(n.Checkbox,{...e,onChange:o,children:e?.title})})},ue=({itemProps:t,inputProps:e})=>{const l=n.Form.useFormInstance(),[o,s]=m.useState(t?.initialValue??[]),[a,g]=m.useState([]),i=a.length>0&&a.length==o?.length,f=o?.length>0&&o.length<a.length;m.useEffect(()=>{g(d(e?.options))},[e?.options]),m.useEffect(()=>{s(o)},[o]);const d=C=>{const b=[];return(C||[]).map((k,z)=>{b.push(k.value)}),b},w=C=>{s(C.target.checked?a:[]),l.setFieldValue(t?.name,C.target.checked?a:[])},x=C=>{s(C),l.setFieldValue(t?.name,C),e?.onChange&&typeof e?.onChange=="function"&&e?.onChange(C)};return r.jsx(D,{...t,children:r.jsxs(n.ConfigProvider,{theme:{components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)"}}},children:[e?.allCheck&&r.jsx(n.Checkbox,{indeterminate:f,checked:i,onChange:w,children:"전체선택"}),r.jsx(n.Checkbox.Group,{options:e?.options,value:o,onChange:x})]})})},Z={year:{displayFormat:"YYYY",outputFormat:"YYYY"},month:{displayFormat:"YYYY-MM",outputFormat:"YYYYMM"},date:{displayFormat:"YYYY-MM-DD",outputFormat:"YYYYMMDD"},time:{displayFormat:"HH:mm",outputFormat:"HHmm"},datetime:{displayFormat:"YYYY-MM-DD HH:mm",outputFormat:"YYYYMMDDHHmm"}},me=({itemProps:t,inputProps:e,type:l="date",returnType:o="string"})=>{const{displayFormat:s,outputFormat:a}=m.useMemo(()=>Z[l],[l]),g=m.useMemo(()=>Object.values(Z).map(i=>i.outputFormat).sort((i,f)=>{if(i.length===f.length){if(i===a)return-1;if(f===a)return 1}return f.length-i.length}),[a]);return r.jsx(D,{...t,getValueProps:i=>({value:i?U.isDayjs(i)?i:U(i,g):null}),normalize:i=>i?o==="dayjs"?i:i.format(a):null,children:r.jsx(n.DatePicker,{...e,picker:l==="datetime"?"date":l,showTime:e?.showTime??(l==="datetime"||l==="time"),format:s})})},fe=({fileGrpKey:t,onFetchFilesTrxCd:e="SCMFILE00101",readOnly:l=!1,sysCd:o=__SYS_CD__})=>{const[s,a]=m.useState([]);m.useEffect(()=>{t&&e?o!=__SYS_CD__?E.callServiceBySysCd(__APP_CD__,e,{crprCd:E.getUserInfo()?.crprCd,sysCd:o,fileGrpKey:t}).then(i=>{if(i?.sub){const f=i.sub.map(d=>({uid:d.fileKey,name:d.lgclFileNm,filePath:d.filePath}));a(f)}}).catch(i=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",i),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")}):E.callService(e,{crprCd:E.getUserInfo()?.crprCd,sysCd:o,fileGrpKey:t}).then(i=>{if(i?.sub){const f=i.sub.map(d=>({uid:d.fileKey,name:d.lgclFileNm,filePath:d.filePath}));a(f)}}).catch(i=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",i),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")}):a([])},[t,e]);const g=async i=>{try{let f;o!=__SYS_CD__?f="/api/download/"+o:f="/api/download";const d=await fetch(f,{method:"POST",headers:{SYSCD:__SYS_CD__,"Content-Type":"application/json"},body:JSON.stringify({filePath:i.filePath,logicalName:i.name,fileKey:i.uid})});if(!d.ok){const k=(await d.json().catch(()=>null))?.message||"파일 다운로드에 실패했습니다.";throw new Error(k)}const w=await d.blob(),x=window.URL.createObjectURL(w),C=document.createElement("a");C.href=x,C.setAttribute("download",i.name),document.body.appendChild(C),C.click(),document.body.removeChild(C),window.URL.revokeObjectURL(x)}catch(f){console.error(f),n.message.error(f.message||"파일을 다운로드하는 중 오류가 발생했습니다.")}};return q.isEmpty(s)?null:r.jsx(n.Card,{title:"파일 목록",children:r.jsx(n.List,{dataSource:s,renderItem:i=>r.jsx(n.List.Item,{actions:l?[]:[r.jsx(n.Button,{type:"text",icon:r.jsx(A.DownloadOutlined,{}),onClick:()=>g(i)},"download")],children:r.jsx(n.List.Item.Meta,{avatar:r.jsx(A.PaperClipOutlined,{}),title:i.name})})})})},oe=m.forwardRef(({children:t,labelCol:e,style:l,className:o,...s},a)=>r.jsx(n.ConfigProvider,{form:{},children:r.jsx(n.Form,{ref:a,...s,requiredMark:!1,labelCol:e||{flex:"100px"},style:{padding:"10px",...l},className:`bwg-form ${o??""}`,children:t})}));oe.displayName="BwgForm";const ge=({itemProps:t,inputProps:e})=>r.jsx(D,{...t,children:r.jsx(n.Input,{...e})}),{Text:W}=n.Typography,{Dragger:he}=n.Upload,pe=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],xe=(t,e=2)=>{if(t===0)return"0 Bytes";const l=1024,o=e<0?0:e,s=["Bytes","KB","MB","GB","TB"],a=Math.floor(Math.log(t)/Math.log(l));return parseFloat((t/Math.pow(l,a)).toFixed(o))+" "+s[a]},ye=({title:t="첨부파일",fileGrpKey:e,onUploadComplete:l,onSuccessTrxCd:o="SCMFILE00102",anotherServiceTrxCd:s="SCMFILE00105",allowedExtensions:a=pe,maxFileSize:g=2048})=>{const[i,f]=m.useState([]),[d,w]=m.useState(!1),[x,C]=m.useState(!1),[b,k]=m.useState(0),z=p=>{if(a&&a.length>0){const c=(S=>{const L=S.lastIndexOf(".");return L===-1?"":S.substring(L).toLowerCase()})(p.name);if(!a.includes(c))return n.message.error(`${p.name} 파일은 허용되지 않는 확장자입니다. (${a.join(", ")}만 가능)`),!1}return!0},B=async()=>{const p=i.filter(I=>I.status!=="done"),F=p.reduce((I,T)=>I+(T.size||0),0),c=2*1024*1024*1024;if(F>c){n.notification.error({message:"업로드 용량 초과",description:"한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."});return}if(p.length===0){n.message.warning("업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다.");return}C(!0);let S;try{const I=new ie;p.forEach(T=>{T.originFileObj&&I.file(T.name,T.originFileObj)}),S=await I.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})}catch(I){C(!1),n.message.error("파일을 압축하는 중 오류가 발생했습니다."),console.error("Zipping error:",I);return}C(!1);const L=new FormData;L.append("file",S,"upload.zip"),w(!0),k(0);try{const I=await new Promise((j,_)=>{const O=new XMLHttpRequest;O.open("POST","/api/upload-large",!0),O.upload.onprogress=N=>{if(N.lengthComputable){const P=Math.round(N.loaded/N.total*100);k(P)}},O.onload=()=>{if(O.status>=200&&O.status<300)try{const N=JSON.parse(O.responseText);N.success?j(N):_(new Error(N.message||"파일 업로드에 실패했습니다."))}catch{_(new Error("잘못된 서버 응답입니다."))}else try{const N=JSON.parse(O.responseText);_(new Error(N.message||`서버 오류: ${O.status}`))}catch{_(new Error(`서버 오류: ${O.status}`))}},O.onerror=()=>{_(new Error("네트워크 오류가 발생했습니다."))},O.send(L)});n.message.success(I.message||"압축 파일이 성공적으로 업로드되었습니다.");const T=i.map(j=>p.find(_=>_.uid===j.uid)?{...j,status:"done"}:j);if(f(T),o&&I.uploadedFiles&&Array.isArray(I.uploadedFiles)){const j=E.getUserInfo();I.uploadedFiles.forEach(_=>{const O={crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,sub:[{crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,physFileNm:_.fileNameP,lgclFileNm:_.fileNameL,filePath:_.filePath,fileExtn:_.fileExt,fileSize:_.fileSize,mltpYn:"Y"}]};E.callService(o,O).then(N=>{const P=i.map(K=>({crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:N.sub[0].fileGrpKey,fileKey:N.sub[0].fileKey,lgclFileNm:K.name,fileSize:K.size,fileExtn:K.name.split(".").pop(),fileType:K.type}));E.callService(s,{sub:P})}).catch(N=>{console.error("후처리 서비스 호출 실패:",N),n.message.error(`${_.fileNameL} 파일의 후처리 작업에 실패했습니다.`)}),l&&l({fileNameP:_.fileNameP,fileNameL:_.fileNameL})})}}catch(I){n.message.error(I.message||"파일 업로드 중 오류가 발생했습니다.");const T=i.map(j=>p.find(_=>_.uid===j.uid)?{...j,status:"error",response:I.message||"파일 업로드 중 오류가 발생했습니다."}:j);f(T)}finally{w(!1)}},y={multiple:!0,fileList:i,beforeUpload:p=>z(p)?g&&p.size>=g*1024*1024?(n.message.error(`대용량 첨부 파일 최대 크기는 ${(g/1024).toFixed(1)}GB입니다.`),n.Upload.LIST_IGNORE):!1:n.Upload.LIST_IGNORE,onChange:({fileList:p})=>{const F=new Map(i.map(c=>[c.uid,c]));p.forEach(c=>{F.set(c.uid,c)}),f(Array.from(F.values()))},onRemove:p=>{const F=i.filter(c=>c.uid!==p.uid);f(F)},showUploadList:!1};return r.jsx(n.Spin,{spinning:d||x,tip:x?"파일 압축 중...":`파일 업로드 중... ${b}%`,children:r.jsxs("div",{className:"bwg-large-uploader-container",children:[r.jsx(n.Card,{title:r.jsx(W,{strong:!0,children:t}),extra:r.jsx(n.Upload,{...y,children:r.jsx(n.Button,{icon:r.jsx(A.UploadOutlined,{}),children:"파일 선택"})}),style:{padding:0},children:r.jsx(he,{...y,style:{border:"none",background:"transparent",padding:0},children:r.jsx("div",{className:"upload-list-container",children:i.length>0?r.jsx(n.List,{style:{textAlign:"left"},dataSource:i,renderItem:p=>{const F=p.status==="done",c=p.status==="error";let S;return F?S=r.jsx(A.CheckCircleOutlined,{style:{color:"#52c41a",fontSize:14}}):c?S=r.jsx(n.Tooltip,{title:typeof p.response=="string"?p.response:"업로드 실패",children:r.jsx(A.CloseCircleOutlined,{style:{color:"#ff4d4f",fontSize:14}})}):S=r.jsx(A.FileTextOutlined,{style:{fontSize:14}}),r.jsx(n.List.Item,{actions:[r.jsx(W,{type:"secondary",children:xe(p.size||0)},"size"),r.jsx(n.Button,{type:"text",icon:r.jsx(A.DeleteOutlined,{}),onClick:L=>{L.stopPropagation(),y.onRemove?.(p)},disabled:d||x},"delete")],children:r.jsx(n.List.Item.Meta,{avatar:S,title:r.jsx(W,{type:c?"danger":void 0,children:p.name})})},p.uid)}}):r.jsxs(n.Flex,{gap:"middle",align:"center",justify:"center",vertical:!0,style:{padding:"20px 0",minHeight:"120px"},children:[r.jsx(A.InboxOutlined,{style:{fontSize:"32px",color:"#999"}}),r.jsx(W,{type:"secondary",children:"업로드할 파일을 선택하거나 이 영역으로 드래그하세요."})]})})})}),i.length>0&&r.jsxs(n.Flex,{justify:"flex-end",align:"center",gap:"large",style:{marginTop:16},children:[d&&r.jsx("div",{style:{width:"250px"},children:r.jsx(n.Progress,{percent:b,size:"small"})}),r.jsx(n.Button,{type:"primary",onClick:B,disabled:d||x||i.filter(p=>p.status!=="done").length===0,icon:r.jsx(A.CloudUploadOutlined,{}),children:"일괄 업로드"})]})]})})},Fe=t=>{if(typeof t=="string")return t.replace(/0/g,"_");if(Array.isArray(t))return t[0].replace(/0/g,"_");if(typeof t=="object"&&"mask"in t&&"blocks"in t){const{mask:e,blocks:l}=t;return e.split(".").map(o=>{const a=l?.[o]?.maxLength??3;return"_".repeat(a)}).join(".")}return""},Se=({itemProps:t,inputProps:e,mask:l})=>{const o=m.useRef(null),s=n.Form.useFormInstance(),a=m.useMemo(()=>Fe(l),[l]);return m.useEffect(()=>{if(!o.current?.input)return;const g=typeof l=="string"||Array.isArray(l)?{mask:l}:l,i=se(o.current.input,g);return i.on("accept",()=>{s&&t?.name&&s.setFieldValue(t.name,i.value)}),()=>{i.destroy()}},[l,s,t?.name]),r.jsx(D,{...t,children:r.jsx(n.Input,{...e,ref:o,placeholder:a})})},je=t=>{switch(t){case"year":return{format:"YYYY",mask:"0000",outputFormat:"YYYY"};case"month":return{format:"YYYY-MM",mask:"0000-00",outputFormat:"YYYYMM"};case"date":default:return{format:"YYYY-MM-DD",mask:"0000-00-00",outputFormat:"YYYYMMDD"}}},Ce=({type:t="date",itemProps:e={name:"calendar"},inputProps:l})=>{const{format:o,mask:s,outputFormat:a}=je(t),g=m.useRef(null),i=m.useRef(null),f=m.useRef(null),d=n.Form.useFormInstance(),[w,x]=m.useState(!1),[C,b]=m.useState(!1),k=e?.name,[z,B]=m.useState(null),y=n.Form.useWatch(k,d);m.useEffect(()=>{if(!g.current?.input)return;const c=se(g.current.input,{mask:s,lazy:!1});return i.current=c,c.on("accept",()=>{const S=c.value;S.length>0&&x(!0);const L=U(S,o,!0);S.length===o.length&&L.isValid()&&(d.setFieldValue(k,c.value),B(L),i.current?.updateValue())}),()=>{c.destroy()}},[o,s]),m.useEffect(()=>{if(!y){B(null);return}let c=null;if(typeof y=="string"&&y.length===a.length&&/^\d+$/.test(y))if(t==="date"){const S=y.substring(0,4),L=y.substring(4,6),I=y.substring(6,8);c=U(`${S}-${L}-${I}`,o,!0)}else if(t==="month"){const S=y.substring(0,4),L=y.substring(4,6);c=U(`${S}-${L}`,o,!0)}else t==="year"&&(c=U(y,o,!0));else c=U(y,o,!0);c&&c.isValid()?B(c):B(null),b(!1)},[y,o,a,t]);const p=c=>{if(!c){B(null),i.current?.updateValue();return}B(c);const S=c.format(a);i.current&&(i.current.value=S,i.current.updateValue()),b(!1)},F=c=>{setTimeout(()=>{const S=document.activeElement,L=f.current,I=L?.querySelector(".ant-picker-dropdown");!(L&&(L.contains(S)||L===S||I?.contains(S)))&&!(c!==void 0?c:w)&&console.log("✅ Input과 DatePicker 모두 포커스가 없습니다")},0)};return r.jsx(D,{...e,name:void 0,validateStatus:C?"warning":void 0,children:r.jsx(n.ConfigProvider,{theme:{components:{Input:{addonBg:"#fff"}}},children:r.jsxs("div",{ref:f,style:{position:"relative"},children:[r.jsx(n.Form.Item,{name:k,getValueProps:c=>({value:c?U(c).format(o):void 0}),normalize:c=>c?U(c).format(a):void 0,noStyle:!0,children:r.jsx(n.Input,{...l,ref:g,onFocus:()=>{x(!w),i.current?.updateValue()},onBlur:()=>{F()},onKeyDown:c=>{if(c.key==="Backspace"&&x(!0),c.key==="Tab"&&x(!1),c.key==="Enter")if(w){const S=i.current?.value||"",L=U(S,o,!0);S.length===o.length&&L.isValid()?(x(!1),b(!1)):b(!0)}else x(!0)},allowClear:!0,placeholder:s.replace(/0/g,"_"),suffix:r.jsx(A.CalendarOutlined,{style:{color:"#d9d9d9"}}),autoComplete:"off"})}),r.jsx(n.DatePicker,{open:w,picker:t,format:{format:o,type:"mask"},showNow:!0,value:z,onChange:p,onOpenChange:c=>{x(c),c||F(!1)},renderExtraFooter:()=>C?r.jsxs("div",{style:{color:"#faad14",paddingLeft:"8px",fontSize:"12px",display:"flex",alignItems:"center",gap:"6px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fffbe6"},children:[r.jsx(A.ExclamationCircleOutlined,{}),r.jsx("span",{children:"유효하지 않은 날짜입니다"})]}):null,getPopupContainer:c=>c.parentElement,style:{position:"absolute",top:0,left:0,pointerEvents:"none",opacity:0,width:"100%"}})]})})})},{Option:Q}=n.Select,Ye=({itemProps:t,inputProps:e})=>{const[l,o]=m.useState([]);return m.useEffect(()=>{e?.addField==="ALL"?o([{label:"전체",value:""},...e?.list||[]]):e?.addField==="NULL"?o([{label:"",value:""},...e?.list||[]]):o(e?.list||[])},[e?.list]),r.jsx(D,{...t,getValueProps:s=>s?{value:s&&s.indexOf(",")>0?s.split(","):[s]}:{value:[]},normalize:s=>s!=null&&s!=null&&s.length>0?s.toString():"",children:r.jsx(n.Select,{...e,mode:"multiple",children:l.map(s=>{const{value:a,label:g}=s;return e?.printCode?r.jsx(Q,{value:a,label:g,children:r.jsx(n.Space,{children:`[${a}] ${g}`})},a):r.jsx(Q,{value:a,label:g,children:r.jsx(n.Space,{children:`${g}`})},a)})})})},we=({itemProps:t,inputProps:e})=>{const l=s=>{let a=s.toString().split(".");return e?.decimalPoint!=null&&a[1]!=null&&e?.decimalPoint>0?a[1].length>e?.decimalPoint?a[1]="."+a[1].substring(0,e?.decimalPoint):a[1]="."+a[1]:a[1]="",a[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+a[1]},o=s=>{let a=s.toString().split(".");return e?.decimalPoint!=null&&a[1]!=null&&e?.decimalPoint>0?a[1].length>e?.decimalPoint?a[1]="."+a[1].substring(0,e?.decimalPoint):a[1]="."+a[1]:a[1]="",a[0].replace(/\$\s?|(,*)/g,"")+a[1]};return r.jsx(D,{...t,children:r.jsx(n.InputNumber,{...e,formatter:s=>l(s),parser:s=>o(s)})})},be=({itemProps:t,inputProps:e})=>r.jsx(D,{...t,children:r.jsx(n.Radio.Group,{...e})}),{RangePicker:Le}=n.DatePicker,ee={year:{displayFormat:"YYYY",outputFormat:"YYYY"},month:{displayFormat:"YYYY-MM",outputFormat:"YYYYMM"},date:{displayFormat:"YYYY-MM-DD",outputFormat:"YYYYMMDD"},time:{displayFormat:"HH:mm",outputFormat:"HHmm"},datetime:{displayFormat:"YYYY-MM-DD HH:mm",outputFormat:"YYYYMMDDHHmm"}},Ie=({itemProps:t,inputProps:e,type:l="date",minDate:o,maxDate:s,returnType:a="string"})=>{const{displayFormat:g,outputFormat:i}=m.useMemo(()=>ee[l],[l]),f=m.useMemo(()=>Object.values(ee).map(d=>d.outputFormat).sort((d,w)=>{if(d.length===w.length){if(d===i)return-1;if(w===i)return 1}return w.length-d.length}),[i]);return r.jsx(D,{...t,getValueProps:d=>({value:d&&d.length>0?[d[0]?U.isDayjs(d[0])?d[0]:U(d[0],f):null,d[1]?U.isDayjs(d[1])?d[1]:U(d[1],f):null]:null}),normalize:d=>d?a==="dayjs"?[d[0]??void 0,d[1]??void 0]:[d[0]?d[0].format(i):void 0,d[1]?d[1].format(i):void 0]:[void 0,void 0],children:r.jsx(Le,{...e,order:!0,minDate:o?U(o,f):void 0,maxDate:s?U(s,f):void 0,picker:l==="datetime"?"date":l,showTime:e?.showTime??(l==="datetime"||l==="time"),format:g})})},te=n.Input.Search,Be=t=>{const e=n.Form.useFormInstance(),{openPopup:l}=ne.usePopupStore(),o=t.itemProps?.name||[],s=t.popupConfig||{callback(g){Array.isArray(o)&&o.length>1?(e.setFieldValue(o[0],g.code),e.setFieldValue(o[1],g.name)):e.setFieldValue(o,g.code)}},a={...t,placeholder:typeof t.placeholder=="string"?t.placeholder:t.placeholder?.[0]||"",onChange:g=>{Array.isArray(o)&&o.length>1&&e.setFieldValue(o[0],""),t.onChange?.(g)},onSearch:g=>{t.popuCd?l(t.popuCd,t.popupParams,s):t.onSearch?.(g)}};return Array.isArray(o)&&o.length>1?r.jsx(D,{...t.itemProps,name:void 0,children:r.jsxs(n.Space.Compact,{block:!0,children:[r.jsx(n.Form.Item,{name:o[0],rules:t.itemProps?.rules,style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:r.jsx(n.Input,{style:{color:"#999",backgroundColor:"#f5f5f5"},placeholder:t.placeholder?.[0]||"",readOnly:!0})}),r.jsx(n.Form.Item,{name:o[1],style:{width:"60%",marginBottom:0},children:r.jsx(te,{readOnly:t.readOnly,enterButton:r.jsx(n.Button,{icon:r.jsx(A.SearchOutlined,{}),disabled:t.readOnly}),...a})})]})}):r.jsx(D,{...t.itemProps,children:r.jsx(te,{...a})})},_e=({itemProps:t,selectProps:e={options:[],allowClear:!0}})=>{const l=n.Form.useFormInstance(),o=!!l,s=m.useMemo(()=>e?.addField==="ALL"?[{label:"전체",value:""},...e?.options||[]]:e?.addField==="NULL"?[{label:"",value:""},...e?.options||[]]:e?.options||[],[e.options,e.addField]),a=f=>{e.onChange?.(f)},g={...e,allowClear:e.allowClear??!0,options:s,onChange:a,variant:e.variant},i=r.jsx(n.Select,{...g,disabled:e.disabled});return e.copyable&&!o&&console.warn("BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."),e.copyable?r.jsx(D,{...t,name:void 0,children:r.jsxs(n.Space.Compact,{block:!0,children:[r.jsx(n.Form.Item,{name:t?.name,rules:t?.rules,style:{width:"100%",marginBottom:0},validateStatus:"",help:"",children:i}),r.jsx(n.Typography.Paragraph,{copyable:{text:o&&l?.getFieldValue(t?.name)?.toString()||"",tooltips:["코드복사","코드복사됨"]},style:{margin:0,backgroundColor:"#f5f5f5",borderRadius:"4px",border:"1px solid #d9d9d9",fontSize:"12px",color:"#666",display:"flex",alignItems:"center",height:"30px",padding:"0 8px"}})]})}):r.jsx(D,{...t,children:i})},Me=({itemProps:t,inputProps:e={format:"YN"}})=>{const l=n.Form.useFormInstance(),o=(s,a)=>{e.format==="boolean"?l.setFieldValue(t?.name,s):l.setFieldValue(t?.name,s?"Y":"N"),e.onChange&&e.onChange(s,a)};return r.jsx(D,{...t,getValueProps:s=>({checked:e.format==="boolean"?!!s:s==="Y"}),normalize:s=>typeof s=="boolean"?e.format==="boolean"?s:s?"Y":"N":e.format==="boolean"?!!s:s?"Y":"N",children:r.jsx(n.Switch,{...e,onChange:(s,a)=>o(s,a)})})},{TextArea:ke}=n.Input,Ne=({itemProps:t,inputProps:e})=>r.jsx(D,{...t,children:r.jsx(ke,{...e})}),De=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],re={FILE:"file"},ve=({originNode:t,file:e,fileList:l,moveFile:o,onDrop:s})=>{const a=m.useRef(null),[{handlerId:g},i]=J.useDrop({accept:re.FILE,collect:x=>({handlerId:x.getHandlerId()}),hover(x,C){if(!a.current)return;const b=x.uid,k=e.uid;if(b===k)return;const z=q.findIndex(l,{uid:k}),B=q.findIndex(l,{uid:b});if(B===-1||z===-1)return;const y=a.current.getBoundingClientRect(),p=C.getClientOffset();if(!p)return;const F=(y.bottom-y.top)/2,c=p.y-y.top;B<z&&c<F||B>z&&c>F||o(b,k)},drop(){s()}}),[{isDragging:f},d]=J.useDrag({type:re.FILE,item:()=>({uid:e.uid,index:q.findIndex(l,{uid:e.uid})}),collect:x=>({isDragging:x.isDragging()})}),w=f?0:1;return d(i(a)),r.jsx("div",{ref:a,style:{opacity:w},"data-handler-id":g,children:t})},Ee=({itemProps:t,fileGrpKey:e,onUploadComplete:l,onFetchFilesTrxCd:o="SCMFILE00101",onSuccessTrxCd:s="SCMFILE00102",onDeleteFileTrxCd:a="SCMFILE00103",onReorderFilesTrxCd:g="SCMFILE00104",allowedExtensions:i=De,maxFileSize:f=200,showButton:d=!0,multiple:w=!1,newFileGrpKeyonModify:x=!1,buttonText:C="파일 선택",localOnly:b=!1,onFilesChange:k})=>{const[z,B]=m.useState([]),y=m.useRef(e),p=m.useRef([]),F=n.Form.useFormInstance(),c=()=>{if(b||p.current.length===0)return;const u=[...p.current];if(p.current=[],s){const M=u.map(Y=>({crprCd:E.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:y.current,physFileNm:Y.fileNameP,lgclFileNm:Y.fileNameL,filePath:Y.filePath,fileExtn:Y.fileExt,fileSize:Y.fileSize,mltpYn:"N"}));console.log("newFileGrpKeyonModify",x),console.log("newFileGrpKeyonModify",x?0:y.current),E.callService(s,{crprCd:E.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:x?0:y.current,oldFileGrpKey:y.current,newFileGrpKeyonModify:x,sub:M}).then(Y=>{if(Y?.sub&&Y.sub.length>0){const h=Y.sub[0].fileGrpKey;(!y.current||x)&&(y.current=h);const V=new Map;Y.sub.forEach(v=>{const R=u.find(H=>H.fileNameL===v.lgclFileNm);R&&V.set(R.tempId,v)});const G=t?.name;(v=>{if(j){const R=F?.getFieldValue(G)||[],H=v(R);F?.setFieldValue(G,H)}else B(R=>v(R))})(v=>v.map(R=>{const H=V.get(R.uid);if(H){const X=u.find(ae=>ae.tempId===R.uid);return l&&X&&l({...X,fileGrpKey:h,fileKey:H.fileKey}),{...R,name:H.lgclFileNm,fileGrpKey:h,fileKey:H.fileKey,uid:H.fileKey,status:"done",url:`/api/download?filePath=${H.filePath}&logicalName=${H.lgclFileNm}`}}return R}))}}).catch(Y=>{console.error("업로드 후처리 서비스 호출 실패:",Y),n.message.error("파일 후처리 중 오류가 발생했습니다.");const h=new Set(u.map($=>$.tempId)),V=t?.name;($=>{if(j){const v=F?.getFieldValue(V)||[],R=$(v);F?.setFieldValue(V,R)}else B(v=>$(v))})($=>$.map(v=>h.has(v.uid)?{...v,status:"error",error:"후처리 실패"}:v))})}},S=m.useRef(q.debounce(c,500)).current;m.useEffect(()=>()=>{S.cancel()},[S]),m.useEffect(()=>{y.current=e},[e]),m.useEffect(()=>{b||e&&o&&E.callService(o,{crprCd:E.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e}).then(u=>{if(u?.sub){const M=u.sub.map(h=>({uid:h.fileKey,name:h.lgclFileNm,status:"done",url:`/api/download?filePath=${h.filePath}&logicalName=${h.lgclFileNm}`})),Y=t?.name;j?F?.setFieldValue(Y,M):B(M)}else{const M=t?.name;j?F?.setFieldValue(M,[]):B([])}}).catch(u=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",u),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})},[e,o]);const L=(u,M)=>{const Y=t?.name,h=j?F?.getFieldValue(Y)||[]:z,V=q.findIndex(h,{uid:u}),G=q.findIndex(h,{uid:M});if(V<0||G<0)return;const $=[...h],[v]=$.splice(V,1);$.splice(G,0,v),j?F?.setFieldValue(Y,$):B($)},I=()=>{if(!b&&e&&g){const u=t?.name,Y=(j?F?.getFieldValue(u)||[]:z).map(h=>h.uid);E.callService(g,{crprCd:E.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,reorderedFileKeys:Y}).then(()=>{n.message.success("파일 순서가 성공적으로 저장되었습니다.")}).catch(h=>{console.error("파일 순서 저장 서비스 호출 실패:",h),n.message.error("파일 순서 저장 중 오류가 발생했습니다.")})}},T=u=>{const M=t?.name,Y=j?F?.getFieldValue(M)||[]:z;if(!w&&Y.length>0)return n.message.error("하나의 파일만 업로드할 수 있습니다."),n.Upload.LIST_IGNORE;if(i&&i.length>0){const h=`.${u.name.split(".").pop()?.toLowerCase()}`;if(!i.includes(h))return n.message.error(`${u.name} 파일은 허용되지 않는 확장자입니다. (${i.join(", ")})`),n.Upload.LIST_IGNORE}return f&&!(u.size/1024/1024<f)?(n.message.error(`일반업로드의 최대용량은 ${f}MB입니다.`),n.Upload.LIST_IGNORE):!b},j=!!t?.name,_={name:"file",multiple:w,action:b?void 0:"/api/upload",beforeUpload:T,showUploadList:{showRemoveIcon:d},onChange(u){const{status:M,uid:Y}=u.file;if(M==="removed"){if(!b&&a)E.callService(a,{crprCd:E.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:x?0:y.current,fileKey:Y,oldFileGrpKey:y.current,newFileGrpKeyonModify:x}).then(h=>{if(n.message.success("파일이 성공적으로 삭제되었습니다."),x&&(y.current=h.fileGrpKey),j){const V=t?.name;F?.setFieldValue(V,u.fileList)}else B(u.fileList);k?.(u.fileList),l?.({fileGrpKey:h.fileGrpKey})}).catch(h=>{console.error("파일 삭제 서비스 호출에 실패했습니다.",h),n.message.error("파일 삭제 중 오류가 발생했습니다.")});else{if(j){const h=t?.name;F?.setFieldValue(h,u.fileList)}else B(u.fileList);k?.(u.fileList)}return}if(j){const h=t?.name;F?.setFieldValue(h,u.fileList)}else B(u.fileList);if(k?.(u.fileList),M==="done")if(!b&&u.file.response?.success){const{uploadedFiles:h}=u.file.response;h&&Array.isArray(h)&&h.length>0&&(h.forEach(V=>{V.tempId=u.file.uid,p.current.push(V)}),S()),n.message.success(u.file.response.message||`${u.file.name} 파일이 성공적으로 업로드되었습니다.`)}else n.message.error(u.file.response?.message||`${u.file.name} 파일 업로드에 실패했습니다.`);else M==="error"&&n.message.error(u.file.response?.message||`${u.file.name} 파일 업로드 중 오류가 발생했습니다.`)},itemRender(u,M,Y){const h=m.cloneElement(u,{href:M.url||void 0,title:void 0});return r.jsx(ve,{originNode:h,file:M,fileList:Y,moveFile:L,onDrop:I},M.uid)}};j||(_.fileList=z);const O=u=>Array.isArray(u)?u:u&&u.fileList,N=t?.name,P=j?n.Form.useWatch?.(N,F):void 0,K=j?P||[]:z;return r.jsx(J.DndProvider,{backend:le.HTML5Backend,children:r.jsx(D,{valuePropName:"fileList",getValueFromEvent:O,...t,children:r.jsx(n.Upload,{headers:{SYSCD:__SYS_CD__},..._,listType:"picture",children:d&&(w||K.length===0)&&r.jsx(n.Button,{icon:r.jsx(A.UploadOutlined,{}),children:C})})})})};exports.BwgButton=ce;exports.BwgCheck=de;exports.BwgCheckList=ue;exports.BwgDatePicker=me;exports.BwgDownload=fe;exports.BwgForm=oe;exports.BwgFormItem=D;exports.BwgInput=ge;exports.BwgLargeUploader=ye;exports.BwgMaskedInput=Se;exports.BwgMaskedPicker=Ce;exports.BwgMultiSelect=Ye;exports.BwgNumber=we;exports.BwgRadio=be;exports.BwgRangePicker=Ie;exports.BwgSearch=Be;exports.BwgSelect=_e;exports.BwgSwitch=Me;exports.BwgTextArea=Ne;exports.BwgUploader=Ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("antd"),x=require("react"),se=require("../../stores/index.cjs"),E=require("dayjs"),P=require("@ant-design/icons"),T=require("../../utils/index.cjs"),ie=require("jszip"),J=require("imask"),ae=require("../../chunks/provider-DrboIg2C.cjs"),G=require("lodash"),X=require("react-dnd"),ce=require("react-dnd-html5-backend"),ue=t=>{const{componentSize:r}=se.useUserStore(),f=x.useMemo(()=>t.size?t.size:{0:"small",1:"middle",2:"large"}[r],[r,t.size]),i=x.useMemo(()=>({0:12,1:14,2:16})[r],[r]);return s.jsx(a.Button,{...t,size:f,className:"bwg-btn",style:{fontSize:`${i}px`,...t.style},children:t.children})},$=x.memo(({children:t,label:r,name:f,rules:i,initialValue:e,style:l,required:y,...u})=>{const F={fontWeight:"bold"};(i==null||i==null)&&y&&(i=[{required:!0,message:`${r}을(를) 입력해주세요.`}]);const c=Array.isArray(i)&&i.some(Y=>Y.required===!0),m=()=>typeof r=="string"?s.jsxs("span",{style:F,children:[r,c&&s.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}):s.jsx("span",{style:F,children:r});return s.jsx(a.Form.Item,{className:"bwg-form-item",label:r?m():void 0,labelAlign:u.labelAlign||"left",name:f,rules:i,colon:!1,initialValue:e,style:l,...u,children:t})}),de=({itemProps:t,inputProps:r={format:"YN"}})=>{const f=a.Form.useFormInstance(),i=e=>{r.format==="boolean"?f.setFieldValue(t?.name,e.target.checked):f.setFieldValue(t?.name,e.target.checked?"Y":"N"),r.onChange&&r.onChange(e)};return s.jsx($,{...t,getValueProps:e=>({checked:r.format==="boolean"?!!e:e==="Y"}),normalize:e=>typeof e=="boolean"?r.format==="boolean"?e:e?"Y":"N":r.format==="boolean"?!!e:e?"Y":"N",children:s.jsx(a.Checkbox,{...r,onChange:i,children:r?.title})})},fe=({itemProps:t,inputProps:r})=>{const f=a.Form.useFormInstance(),[i,e]=x.useState(t?.initialValue??[]),[l,y]=x.useState([]),u=l.length>0&&l.length==i?.length,F=i?.length>0&&i.length<l.length;x.useEffect(()=>{y(c(r?.options))},[r?.options]),x.useEffect(()=>{e(i)},[i]);const c=k=>{const D=[];return(k||[]).map((j,O)=>{D.push(j.value)}),D},m=k=>{e(k.target.checked?l:[]),f.setFieldValue(t?.name,k.target.checked?l:[])},Y=k=>{e(k),f.setFieldValue(t?.name,k),r?.onChange&&typeof r?.onChange=="function"&&r?.onChange(k)};return s.jsx($,{...t,children:s.jsxs(a.ConfigProvider,{theme:{components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)"}}},children:[r?.allCheck&&s.jsx(a.Checkbox,{indeterminate:F,checked:u,onChange:m,children:"전체선택"}),s.jsx(a.Checkbox.Group,{options:r?.options,value:i,onChange:Y})]})})},Q={year:{displayFormat:"YYYY",outputFormat:"YYYY"},month:{displayFormat:"YYYY-MM",outputFormat:"YYYYMM"},date:{displayFormat:"YYYY-MM-DD",outputFormat:"YYYYMMDD"},time:{displayFormat:"HH:mm",outputFormat:"HHmm"},datetime:{displayFormat:"YYYY-MM-DD HH:mm",outputFormat:"YYYYMMDDHHmm"}},me=({itemProps:t,inputProps:r,type:f="date",returnType:i="string"})=>{const{displayFormat:e,outputFormat:l}=x.useMemo(()=>Q[f],[f]),y=x.useMemo(()=>Object.values(Q).map(u=>u.outputFormat).sort((u,F)=>{if(u.length===F.length){if(u===l)return-1;if(F===l)return 1}return F.length-u.length}),[l]);return s.jsx($,{...t,getValueProps:u=>({value:u?E.isDayjs(u)?u:E(u,y):null}),normalize:u=>u?i==="dayjs"?u:u.format(l):null,children:s.jsx(a.DatePicker,{...r,picker:f==="datetime"?"date":f,showTime:r?.showTime??(f==="datetime"||f==="time"),format:r?.format?{format:r?.format?.format,type:"mask"}:e})})},ge=({fileGrpKey:t,onFetchFilesTrxCd:r="SCMFILE00101",readOnly:f=!1,appCd:i=__APP_CD__})=>{const[e,l]=x.useState([]);x.useEffect(()=>{if(r)if(i!=__APP_CD__){const F=T.getApiDeps().findSystemByAppCd?.(i??__APP_CD__);if(!F||!F.sysCd){console.error("해당 앱코드는 존재하지 않습니다.",i);return}T.callServiceByAppCd({trxCd:r,appCd:i},{crprCd:T.getCrprCd(),sysCd:F.sysCd,fileGrpKey:t}).then(c=>{if(c?.sub){const m=c.sub.map(Y=>({uid:Y.fileKey,name:Y.lgclFileNm,filePath:Y.filePath}));l(m)}}).catch(c=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",c),a.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})}else T.callService(r,{crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:t}).then(u=>{if(u?.sub){const F=u.sub.map(c=>({uid:c.fileKey,name:c.lgclFileNm,filePath:c.filePath}));l(F)}}).catch(u=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",u),a.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")});else l([])},[t,r,i]);const y=async u=>{try{const c=T.getApiDeps().findSystemByAppCd?.(i??__APP_CD__);if(!c||!c.sysCd){console.error("해당 앱코드는 존재하지 않습니다.",i);return}const Y=await fetch("/api/download",{method:"POST",headers:{SYSCD:c.sysCd,"Content-Type":"application/json"},body:JSON.stringify({filePath:u.filePath,logicalName:u.name,fileKey:u.uid})});if(!Y.ok){const b=(await Y.json().catch(()=>null))?.message||"파일 다운로드에 실패했습니다.";throw new Error(b)}const k=await Y.blob(),D=window.URL.createObjectURL(k),j=document.createElement("a");j.href=D,j.setAttribute("download",u.name),document.body.appendChild(j),j.click(),document.body.removeChild(j),window.URL.revokeObjectURL(D)}catch(F){console.error(F),a.message.error(F.message||"파일을 다운로드하는 중 오류가 발생했습니다.")}};return s.jsx(a.Card,{title:"파일 목록",children:s.jsx(a.List,{dataSource:e,renderItem:u=>s.jsx(a.List.Item,{actions:f?[]:[s.jsx(a.Button,{type:"text",icon:s.jsx(P.DownloadOutlined,{}),onClick:()=>y(u)},"download")],children:s.jsx(a.List.Item.Meta,{avatar:s.jsx(P.PaperClipOutlined,{}),title:u.name})})})})},oe=x.forwardRef(({children:t,labelCol:r,style:f,className:i,...e},l)=>s.jsx(a.ConfigProvider,{form:{},children:s.jsx(a.Form,{ref:l,...e,requiredMark:!1,labelCol:r||{flex:"100px"},style:{padding:"10px",...f},className:`bwg-form ${i??""}`,children:t})}));oe.displayName="BwgForm";const pe=({itemProps:t,inputProps:r})=>s.jsx($,{...t,children:s.jsx(a.Input,{...r})}),{Text:W}=a.Typography,{Dragger:he}=a.Upload,ye=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],xe=(t,r=2)=>{if(t===0)return"0 Bytes";const f=1024,i=r<0?0:r,e=["Bytes","KB","MB","GB","TB"],l=Math.floor(Math.log(t)/Math.log(f));return parseFloat((t/Math.pow(f,l)).toFixed(i))+" "+e[l]},Fe=({title:t="첨부파일",fileGrpKey:r,onUploadComplete:f,onSuccessTrxCd:i="SCMFILE00102",anotherServiceTrxCd:e="SCMFILE00105",allowedExtensions:l=ye,maxFileSize:y=2048})=>{const[u,F]=x.useState([]),[c,m]=x.useState(!1),[Y,k]=x.useState(!1),[D,j]=x.useState(0),O=p=>{if(l&&l.length>0){const _=(U=>{const o=U.lastIndexOf(".");return o===-1?"":U.substring(o).toLowerCase()})(p.name);if(!l.includes(_))return a.message.error(`${p.name} 파일은 허용되지 않는 확장자입니다. (${l.join(", ")}만 가능)`),!1}return!0},b=async()=>{const p=u.filter(C=>C.status!=="done"),v=p.reduce((C,V)=>C+(V.size||0),0),_=2*1024*1024*1024;if(v>_){a.notification.error({message:"업로드 용량 초과",description:"한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."});return}if(p.length===0){a.message.warning("업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다.");return}k(!0);let U;try{const C=new ie;p.forEach(V=>{V.originFileObj&&C.file(V.name,V.originFileObj)}),U=await C.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})}catch(C){k(!1),a.message.error("파일을 압축하는 중 오류가 발생했습니다."),console.error("Zipping error:",C);return}k(!1);const o=new FormData;o.append("file",U,"upload.zip"),m(!0),j(0);try{const C=await new Promise((w,A)=>{const R=new XMLHttpRequest;R.open("POST","/api/upload-large",!0),R.upload.onprogress=z=>{if(z.lengthComputable){const K=Math.round(z.loaded/z.total*100);j(K)}},R.onload=()=>{if(R.status>=200&&R.status<300)try{const z=JSON.parse(R.responseText);z.success?w(z):A(new Error(z.message||"파일 업로드에 실패했습니다."))}catch{A(new Error("잘못된 서버 응답입니다."))}else try{const z=JSON.parse(R.responseText);A(new Error(z.message||`서버 오류: ${R.status}`))}catch{A(new Error(`서버 오류: ${R.status}`))}},R.onerror=()=>{A(new Error("네트워크 오류가 발생했습니다."))},R.send(o)});a.message.success(C.message||"압축 파일이 성공적으로 업로드되었습니다.");const V=u.map(w=>p.find(A=>A.uid===w.uid)?{...w,status:"done"}:w);if(F(V),i&&C.uploadedFiles&&Array.isArray(C.uploadedFiles)){const w=T.getUserInfo();C.uploadedFiles.forEach(A=>{const R={crprCd:w?.crprCd,sysCd:__SYS_CD__,fileGrpKey:r,sub:[{crprCd:w?.crprCd,sysCd:__SYS_CD__,fileGrpKey:r,physFileNm:A.fileNameP,lgclFileNm:A.fileNameL,filePath:A.filePath,fileExtn:A.fileExt,fileSize:A.fileSize,mltpYn:"Y"}]};T.callService(i,R).then(z=>{const K=u.map(q=>({crprCd:w?.crprCd,sysCd:__SYS_CD__,fileGrpKey:z.sub[0].fileGrpKey,fileKey:z.sub[0].fileKey,lgclFileNm:q.name,fileSize:q.size,fileExtn:q.name.split(".").pop(),fileType:q.type}));T.callService(e,{sub:K})}).catch(z=>{console.error("후처리 서비스 호출 실패:",z),a.message.error(`${A.fileNameL} 파일의 후처리 작업에 실패했습니다.`)}),f&&f({fileNameP:A.fileNameP,fileNameL:A.fileNameL})})}}catch(C){a.message.error(C.message||"파일 업로드 중 오류가 발생했습니다.");const V=u.map(w=>p.find(A=>A.uid===w.uid)?{...w,status:"error",response:C.message||"파일 업로드 중 오류가 발생했습니다."}:w);F(V)}finally{m(!1)}},B={multiple:!0,fileList:u,beforeUpload:p=>O(p)?y&&p.size>=y*1024*1024?(a.message.error(`대용량 첨부 파일 최대 크기는 ${(y/1024).toFixed(1)}GB입니다.`),a.Upload.LIST_IGNORE):!1:a.Upload.LIST_IGNORE,onChange:({fileList:p})=>{const v=new Map(u.map(_=>[_.uid,_]));p.forEach(_=>{v.set(_.uid,_)}),F(Array.from(v.values()))},onRemove:p=>{const v=u.filter(_=>_.uid!==p.uid);F(v)},showUploadList:!1};return s.jsx(a.Spin,{spinning:c||Y,tip:Y?"파일 압축 중...":`파일 업로드 중... ${D}%`,children:s.jsxs("div",{className:"bwg-large-uploader-container",children:[s.jsx(a.Card,{title:s.jsx(W,{strong:!0,children:t}),extra:s.jsx(a.Upload,{...B,children:s.jsx(a.Button,{icon:s.jsx(P.UploadOutlined,{}),children:"파일 선택"})}),style:{padding:0},children:s.jsx(he,{...B,style:{border:"none",background:"transparent",padding:0},children:s.jsx("div",{className:"upload-list-container",children:u.length>0?s.jsx(a.List,{style:{textAlign:"left"},dataSource:u,renderItem:p=>{const v=p.status==="done",_=p.status==="error";let U;return v?U=s.jsx(P.CheckCircleOutlined,{style:{color:"#52c41a",fontSize:14}}):_?U=s.jsx(a.Tooltip,{title:typeof p.response=="string"?p.response:"업로드 실패",children:s.jsx(P.CloseCircleOutlined,{style:{color:"#ff4d4f",fontSize:14}})}):U=s.jsx(P.FileTextOutlined,{style:{fontSize:14}}),s.jsx(a.List.Item,{actions:[s.jsx(W,{type:"secondary",children:xe(p.size||0)},"size"),s.jsx(a.Button,{type:"text",icon:s.jsx(P.DeleteOutlined,{}),onClick:o=>{o.stopPropagation(),B.onRemove?.(p)},disabled:c||Y},"delete")],children:s.jsx(a.List.Item.Meta,{avatar:U,title:s.jsx(W,{type:_?"danger":void 0,children:p.name})})},p.uid)}}):s.jsxs(a.Flex,{gap:"middle",align:"center",justify:"center",vertical:!0,style:{padding:"20px 0",minHeight:"120px"},children:[s.jsx(P.InboxOutlined,{style:{fontSize:"32px",color:"#999"}}),s.jsx(W,{type:"secondary",children:"업로드할 파일을 선택하거나 이 영역으로 드래그하세요."})]})})})}),u.length>0&&s.jsxs(a.Flex,{justify:"flex-end",align:"center",gap:"large",style:{marginTop:16},children:[c&&s.jsx("div",{style:{width:"250px"},children:s.jsx(a.Progress,{percent:D,size:"small"})}),s.jsx(a.Button,{type:"primary",onClick:b,disabled:c||Y||u.filter(p=>p.status!=="done").length===0,icon:s.jsx(P.CloudUploadOutlined,{}),children:"일괄 업로드"})]})]})})},Ce=t=>{if(typeof t=="string")return t.replace(/0/g,"_");if(Array.isArray(t))return t[0].replace(/0/g,"_");if(typeof t=="object"&&"mask"in t&&"blocks"in t){const{mask:r,blocks:f}=t;return r.split(".").map(i=>{const l=f?.[i]?.maxLength??3;return"_".repeat(l)}).join(".")}return""},Se=({itemProps:t,inputProps:r,mask:f})=>{const i=x.useRef(null),e=a.Form.useFormInstance(),l=x.useMemo(()=>Ce(f),[f]);return x.useEffect(()=>{if(!i.current?.input)return;const y=typeof f=="string"||Array.isArray(f)?{mask:f}:f,u=J(i.current.input,y);return u.on("accept",()=>{e&&t?.name&&e.setFieldValue(t.name,u.value)}),()=>{u.destroy()}},[f,e,t?.name]),s.jsx($,{...t,children:s.jsx(a.Input,{...r,ref:i,placeholder:l})})},je=t=>{switch(t){case"year":return{format:"YYYY",mask:"0000",outputFormat:"YYYY"};case"month":return{format:"YYYY-MM",mask:"0000-00",outputFormat:"YYYYMM"};case"date":default:return{format:"YYYY-MM-DD",mask:"0000-00-00",outputFormat:"YYYYMMDD"}}},Ye=({type:t="date",itemProps:r={name:"calendar"},inputProps:f,pickerProps:i})=>{const{format:e,mask:l,outputFormat:y}=je(t),u=x.useRef(null),F=x.useRef(null),c=x.useRef(null),m=a.Form.useFormInstance(),[Y,k]=x.useState(!1),[D,j]=x.useState(!1),O=r?.name,[b,B]=x.useState(null),p=a.Form.useWatch(O,m),v=ae.useSizeConfig();x.useEffect(()=>{if(!u.current?.input)return;const o=J(u.current.input,{mask:l,lazy:!1});return F.current=o,o.on("accept",()=>{const C=o.value;C.length>0&&k(!0);const V=E(C,e,!0);C.length===e.length&&V.isValid()&&(m.setFieldValue(O,o.value),B(V),F.current?.updateValue())}),()=>{o.destroy()}},[e,l]),x.useEffect(()=>{if(!p){B(null);return}let o=null;if(typeof p=="string"&&p.length===y.length&&/^\d+$/.test(p))if(t==="date"){const C=p.substring(0,4),V=p.substring(4,6),w=p.substring(6,8);o=E(`${C}-${V}-${w}`,e,!0)}else if(t==="month"){const C=p.substring(0,4),V=p.substring(4,6);o=E(`${C}-${V}`,e,!0)}else t==="year"&&(o=E(p,e,!0));else o=E(p,e,!0);o&&o.isValid()?B(o):B(null),j(!1)},[p,e,y,t]);const _=o=>{if(!o){B(null),F.current?.updateValue();return}B(o);const C=o.format(y);F.current&&(F.current.value=C,F.current.updateValue()),j(!1)},U=o=>{setTimeout(()=>{const C=document.activeElement,V=c.current,w=V?.querySelector(".ant-picker-dropdown");!(V&&(V.contains(C)||V===C||w?.contains(C)))&&!(o!==void 0?o:Y)&&console.log("✅ Input과 DatePicker 모두 포커스가 없습니다")},0)};return s.jsx($,{...r,name:void 0,validateStatus:D?"warning":void 0,children:s.jsxs(a.ConfigProvider,{componentSize:v.componentSize,theme:{components:{Input:{addonBg:"#fff"}}},children:[s.jsx(a.Form.Item,{name:O,getValueProps:o=>({value:o?E(o).format(e):void 0}),normalize:o=>o?E(o).format(y):void 0,noStyle:!0,children:s.jsx(a.Input,{...f,ref:u,onFocus:()=>{k(!Y),F.current?.updateValue()},onBlur:()=>{U()},onKeyDown:o=>{if(o.key==="Backspace"&&k(!0),o.key==="Tab"&&k(!1),o.key==="Enter")if(Y){const C=F.current?.value||"",V=E(C,e,!0);C.length===e.length&&V.isValid()?(k(!1),j(!1)):j(!0)}else k(!0)},style:{width:"65%"},allowClear:!0,placeholder:l.replace(/0/g,"_"),suffix:s.jsx(P.CalendarOutlined,{style:{color:"#d9d9d9"}}),autoComplete:"off"})}),s.jsx(a.DatePicker,{...i,open:Y,picker:t,format:{format:e,type:"mask"},showNow:!0,value:b,onChange:_,onOpenChange:o=>{k(o),o||U(!1)},renderExtraFooter:()=>D?s.jsxs("div",{style:{color:"#faad14",paddingLeft:"8px",fontSize:"12px",display:"flex",alignItems:"center",gap:"6px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fffbe6"},children:[s.jsx(P.ExclamationCircleOutlined,{}),s.jsx("span",{children:"유효하지 않은 날짜입니다"})]}):null,getPopupContainer:o=>o.parentElement,style:{position:"absolute",top:0,left:0,pointerEvents:"none",opacity:0,width:"100%"}})]})})},{RangePicker:ke}=a.DatePicker,be=t=>{switch(t){case"year":return{format:"YYYY",mask:"0000",outputFormat:"YYYY"};case"month":return{format:"YYYY-MM",mask:"0000-00",outputFormat:"YYYYMM"};case"date":default:return{format:"YYYY-MM-DD",mask:"0000-00-00",outputFormat:"YYYYMMDD"}}},we=({type:t="date",itemProps:r={name:"dateRange"},inputProps:f,pickerProps:i})=>{const{format:e,mask:l,outputFormat:y}=be(t),u=x.useRef(null),F=x.useRef(null),c=x.useRef(null),m=x.useRef(null),Y=x.useRef(null),k=a.Form.useFormInstance(),[D,j]=x.useState(!1),[O,b]=x.useState(!1),[B,p]=x.useState(null),[v,_]=x.useState(!1),U=x.useRef(!1),o=r?.name,[C,V]=x.useState([null,null]),w=a.Form.useWatch(o?Array.isArray(o)?[...o,0]:[o,0]:void 0,k),A=a.Form.useWatch(o?Array.isArray(o)?[...o,1]:[o,1]:void 0,k),R=a.Form.useWatch(o,k),z=ae.useSizeConfig();x.useEffect(()=>{if(!u.current?.input)return;const n=J(u.current.input,{mask:l,lazy:!1});return c.current=n,n.on("accept",()=>{const g=n.value,h=n.unmaskedValue||"";if(console.log("🔵 [시작일] accept 이벤트:",{maskValue:g,unmaskedValue:h,length:g.length,formatLength:e.length}),g.length>0&&(p("start"),j(!0),_(!1)),h.length===y.length){const d=E(g,e,!0);if(d.isValid()){console.log("🔵 [시작일] 입력 완료 및 검증 통과:",{parsed:d.format(e)});const M=d.format(y);U.current=!0;const S=Array.isArray(o)?[...o,0]:[o,0];k.setFieldValue(S,M),V([d,C[1]]),c.current&&c.current.updateValue(),b(!1),setTimeout(()=>{m.current&&(m.current.value="",m.current.unmaskedValue="",m.current.updateValue());const I=Array.isArray(o)?[...o,1]:[o,1];k.getFieldValue(I)||k.setFieldValue(I,void 0),F.current?.focus(),setTimeout(()=>{if(m.current){const N=m.current.value||"";!(m.current.unmaskedValue||"")&&!N.replace(/[^0-9]/g,"")&&(m.current.value="",m.current.updateValue())}},10),p("end"),j(!0),U.current=!1},0)}else i?.allowEmpty?b(!1):(console.log("🔵 [시작일] 검증 실패:",{val:g,parsed:d}),b(!0))}}),()=>{n.destroy()}},[e,l,o]),x.useEffect(()=>{if(!F.current?.input)return;const n=J(F.current.input,{mask:l,lazy:!1});return m.current=n,n.on("accept",()=>{const g=n.value,h=n.unmaskedValue||"";if(console.log("🟢 [종료일] accept 이벤트:",{maskValue:g,unmaskedValue:h,length:g.length,formatLength:e.length}),h===""||h.length===0){const d=Array.isArray(o)?[...o,1]:[o,1];k.setFieldValue(d,void 0),V([C[0],null]),m.current&&(m.current.value="",m.current.updateValue()),setTimeout(()=>{u.current?.focus(),p("start"),j(!0)},0);return}if(g.length>0&&(p("end"),j(!0)),g.length<e.length){b(!1);return}if(h.length===y.length){const d=E(g,e,!0);if(d.isValid()){const M=d.format(y);console.log("🟢 [종료일] 입력 완료:",{parsed:d.format(e),formatted:M}),U.current=!0;const S=Array.isArray(o)?[...o,1]:[o,1];k.setFieldValue(S,M),V([C[0],d]),m.current?.updateValue(),setTimeout(()=>{U.current=!1},0)}else i?.allowEmpty?b(!1):(console.log("🟢 [종료일] 검증 실패:",{val:g,parsed:d}),b(!0))}}),()=>{n.destroy()}},[e,l,o]),x.useEffect(()=>{console.log("🟡 [useEffect] form 값 변경 감지:",{startFormValue:w,endFormValue:A,formValue:R});const n=w??(Array.isArray(R)?R[0]:null),g=A??(Array.isArray(R)?R[1]:null);if(n===void 0&&g===void 0&&(!R||!Array.isArray(R))){V([null,null]);return}const h=S=>{if(!S)return null;let I=null;if(typeof S=="string"&&S.length===y.length&&/^\d+$/.test(S))if(t==="date"){const L=S.substring(0,4),N=S.substring(4,6),H=S.substring(6,8);I=E(`${L}-${N}-${H}`,e,!0)}else if(t==="month"){const L=S.substring(0,4),N=S.substring(4,6);I=E(`${L}-${N}`,e,!0)}else t==="year"&&(I=E(S,e,!0));else I=E(S,e,!0);return I&&I.isValid()?I:null},d=h(n),M=h(g);if(console.log("🟡 [useEffect] 파싱 결과:",{startParsed:d?d.format(e):null,endParsed:M?M.format(e):null,isStartDateFromPicker:v}),V([d,M]),U.current){console.log("🟡 [useEffect] 사용자 입력 중 - 마스크 값 업데이트 스킵"),b(!1);return}if(!v&&c.current){const S=c.current.value||"",I=d?d.format(e):"",L=c.current.unmaskedValue||"",N=d?d.format(y):"";console.log("🟡 [useEffect] 시작일 마스크 값 체크:",{currentMaskValue:S,expectedMaskValue:I,unmaskedValue:L,expectedUnmasked:N,shouldUpdate:S===""||S!==I,canUpdate:L===""||L===N}),(S===""||S!==I)&&(L===""||L===N?(console.log("🟡 [useEffect] 시작일 마스크 값 업데이트:",{before:S,after:d?d.format(e):""}),d?(c.current.value=d.format(e),c.current.updateValue()):(c.current.value="",c.current.updateValue())):console.log("🟡 [useEffect] 시작일 마스크 값 업데이트 스킵 (사용자 입력 중)"))}if(m.current){const S=m.current.value||"",I=M?M.format(e):"",L=m.current.unmaskedValue||"",N=M?M.format(y):"";console.log("🟡 [useEffect] 종료일 마스크 값 체크:",{currentMaskValue:S,expectedMaskValue:I,unmaskedValue:L,expectedUnmasked:N,shouldUpdate:S===""||S!==I,canUpdate:L===""||L===N}),(S===""||S!==I)&&(L===""||L===N?(console.log("🟡 [useEffect] 종료일 마스크 값 업데이트:",{before:S,after:I}),M?(m.current.value=M.format(e),m.current.updateValue()):(m.current.value="",m.current.updateValue())):console.log("🟡 [useEffect] 종료일 마스크 값 업데이트 스킵 (사용자 입력 중)"))}b(!1)},[w,A,R,e,y,t]);const K=n=>{if(console.log("🔴 [RangePicker] 날짜 변경:",{dates:n?[n[0]?n[0].format(e):null,n[1]?n[1].format(e):null]:null,prevRange:[C[0]?C[0].format(e):null,C[1]?C[1].format(e):null]}),!n){V([null,null]),c.current?.updateValue(),m.current?.updateValue();return}const[g,h]=n,d=C[0],M=g&&(!d||!g.isSame(d,t==="year"?"year":t==="month"?"month":"day"));if(console.log("🔴 [RangePicker] 시작일 변경 여부:",{isStartDateChanged:M,startDate:g?g.format(e):null,prevStartDate:d?d.format(e):null}),V([g,h]),M){console.log("🔴 [RangePicker] 시작일 선택됨 - input 비우기"),_(!0),c.current&&(c.current.value="",c.current.updateValue());const S=g.format(y);console.log("🔴 [RangePicker] form 값 업데이트:",{formatted:S});const I=Array.isArray(o)?[...o,0]:[o,0];k.setFieldValue(I,S)}else!g&&c.current?(_(!1),c.current.value="",c.current.updateValue()):_(!1);if(h&&m.current){const S=h.format(y);m.current.value=S,m.current.updateValue()}else!h&&m.current&&(m.current.value="",m.current.updateValue());b(!1)},q=n=>{setTimeout(()=>{const g=document.activeElement,h=Y.current,d=h?.querySelector(".ant-picker-dropdown");!(h&&(h.contains(g)||h===g||d?.contains(g)))&&!(n!==void 0?n:D)&&(console.log("✅ Input과 RangePicker 모두 포커스가 없습니다"),j(!1))},0)};return s.jsx($,{...r,name:void 0,validateStatus:O?"warning":void 0,children:s.jsxs(a.ConfigProvider,{componentSize:z.componentSize,theme:{components:{Input:{addonBg:"#fff"}}},children:[s.jsxs("div",{ref:Y,style:{display:"flex",alignItems:"center",gap:"8px",width:"100%"},children:[s.jsx(a.Form.Item,{name:o?Array.isArray(o)?[...o,0]:[o,0]:void 0,getValueProps:n=>{if(!n)return{value:void 0};if(typeof n=="string"&&n.length===y.length&&/^\d+$/.test(n)){if(t==="date"){const g=n.substring(0,4),h=n.substring(4,6),d=n.substring(6,8);return{value:`${g}-${h}-${d}`}}else if(t==="month"){const g=n.substring(0,4),h=n.substring(4,6);return{value:`${g}-${h}`}}else if(t==="year")return{value:n}}return{value:E(n).format(e)}},normalize:n=>n?E(n).format(y):(i?.allowEmpty,void 0),noStyle:!0,children:s.jsx(a.Input,{...f,value:void 0,ref:u,onFocus:()=>{if(p("start"),j(!D),_(!1),c.current){const n=Array.isArray(o)?[...o,0]:[o,0];k.getFieldValue(n)||(c.current.value="",c.current.unmaskedValue=""),c.current.updateValue()}},onBlur:()=>{q()},onKeyDown:n=>{if(n.key==="Backspace"&&(p("start"),j(!0)),n.key==="Enter")if(D&&B==="start"){const g=c.current?.value||"";g.length===e.length?E(g,e,!0).isValid()?(j(!1),b(!1)):i?.allowEmpty?b(!1):b(!0):b(!1)}else p("start"),j(!0)},style:{flex:1},allowClear:!0,placeholder:l.replace(/0/g,"_"),suffix:s.jsx(P.CalendarOutlined,{style:{color:"#d9d9d9"}}),autoComplete:"off"})}),s.jsx("span",{style:{color:"#d9d9d9",userSelect:"none"},children:"~"}),s.jsx(a.Form.Item,{name:o?Array.isArray(o)?[...o,1]:[o,1]:void 0,getValueProps:n=>{if(!n)return{value:void 0};if(typeof n=="string"&&n.length===y.length&&/^\d+$/.test(n)){if(t==="date"){const g=n.substring(0,4),h=n.substring(4,6),d=n.substring(6,8);return{value:`${g}-${h}-${d}`}}else if(t==="month"){const g=n.substring(0,4),h=n.substring(4,6);return{value:`${g}-${h}`}}else if(t==="year")return{value:n}}return{value:E(n).format(e)}},normalize:n=>n?E(n).format(y):(i?.allowEmpty,void 0),noStyle:!0,children:s.jsx(a.Input,{...f,ref:F,onFocus:()=>{if(p("end"),j(!D),m.current){m.current.updateValue();const n=m.current.value||"";!(m.current.unmaskedValue||"")&&!n.replace(/[^0-9]/g,"")&&(m.current.value="",m.current.updateValue())}},onBlur:()=>{q()},onKeyDown:n=>{if(n.key==="Backspace"){const g=m.current?.value||"",h=m.current?.unmaskedValue||"";if(g===""||h===""||g.replace(/[^0-9]/g,"").length<=1){n.preventDefault();const d=Array.isArray(o)?[...o,1]:[o,1];k.setFieldValue(d,void 0),V([C[0],null]),m.current&&(m.current.value="",m.current.updateValue()),setTimeout(()=>{u.current?.focus(),p("start"),j(!0)},0);return}p("end"),j(!0)}if(n.key==="Tab"&&j(!1),n.key==="Enter")if(D&&B==="end"){const g=m.current?.value||"";g.length===e.length?E(g,e,!0).isValid()?(j(!1),b(!1)):i?.allowEmpty?b(!1):b(!0):b(!1)}else p("end"),j(!0)},style:{flex:1},allowClear:!0,onClear:()=>{const n=Array.isArray(o)?[...o,1]:[o,1];k.setFieldValue(n,void 0),V([C[0],null]),m.current&&(m.current.value="",m.current.updateValue()),setTimeout(()=>{u.current?.focus(),p("start"),j(!0)},0)},placeholder:l.replace(/0/g,"_"),suffix:s.jsx(P.CalendarOutlined,{style:{color:"#d9d9d9"}}),autoComplete:"off"})})]}),s.jsx(ke,{...i,open:D,picker:t,format:{format:e,type:"mask"},showNow:!0,value:C,onChange:K,onOpenChange:n=>{j(n),n||q(!1)},renderExtraFooter:()=>O?s.jsxs("div",{style:{color:"#faad14",paddingLeft:"8px",fontSize:"12px",display:"flex",alignItems:"center",gap:"6px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fffbe6"},children:[s.jsx(P.ExclamationCircleOutlined,{}),s.jsx("span",{children:"유효하지 않은 날짜입니다"})]}):null,getPopupContainer:n=>n.parentElement,style:{position:"absolute",top:0,left:0,pointerEvents:"none",opacity:0,width:"100%"}})]})})},{Option:ee}=a.Select,Ve=({itemProps:t,inputProps:r})=>{const[f,i]=x.useState([]);return x.useEffect(()=>{r?.addField==="ALL"?i([{label:"전체",value:""},...r?.list||[]]):r?.addField==="NULL"?i([{label:"",value:""},...r?.list||[]]):i(r?.list||[])},[r?.list]),s.jsx($,{...t,getValueProps:e=>e?{value:e&&e.indexOf(",")>0?e.split(","):[e]}:{value:[]},normalize:e=>e!=null&&e!=null&&e.length>0?e.toString():"",children:s.jsx(a.Select,{...r,mode:"multiple",children:f.map(e=>{const{value:l,label:y}=e;return r?.printCode?s.jsx(ee,{value:l,label:y,children:s.jsx(a.Space,{children:`[${l}] ${y}`})},l):s.jsx(ee,{value:l,label:y,children:s.jsx(a.Space,{children:`${y}`})},l)})})})},Ie=({itemProps:t,inputProps:r})=>{const f=e=>{let l=e.toString().split(".");return r?.decimalPoint!=null&&l[1]!=null&&r?.decimalPoint>0?l[1].length>r?.decimalPoint?l[1]="."+l[1].substring(0,r?.decimalPoint):l[1]="."+l[1]:l[1]="",l[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+l[1]},i=e=>{let l=e.toString().split(".");return r?.decimalPoint!=null&&l[1]!=null&&r?.decimalPoint>0?l[1].length>r?.decimalPoint?l[1]="."+l[1].substring(0,r?.decimalPoint):l[1]="."+l[1]:l[1]="",l[0].replace(/\$\s?|(,*)/g,"")+l[1]};return s.jsx($,{...t,children:s.jsx(a.InputNumber,{...r,formatter:e=>f(e),parser:e=>i(e)})})},Le=({itemProps:t,inputProps:r})=>s.jsx($,{...t,children:s.jsx(a.Radio.Group,{...r})}),{RangePicker:ve}=a.DatePicker,te={year:{displayFormat:"YYYY",outputFormat:"YYYY"},month:{displayFormat:"YYYY-MM",outputFormat:"YYYYMM"},date:{displayFormat:"YYYY-MM-DD",outputFormat:"YYYYMMDD"},time:{displayFormat:"HH:mm",outputFormat:"HHmm"},datetime:{displayFormat:"YYYY-MM-DD HH:mm",outputFormat:"YYYYMMDDHHmm"}},Me=({itemProps:t,inputProps:r,type:f="date",minDate:i,maxDate:e,returnType:l="string"})=>{const{displayFormat:y,outputFormat:u}=x.useMemo(()=>te[f],[f]),F=x.useMemo(()=>Object.values(te).map(c=>c.outputFormat).sort((c,m)=>{if(c.length===m.length){if(c===u)return-1;if(m===u)return 1}return m.length-c.length}),[u]);return s.jsx($,{...t,getValueProps:c=>({value:c&&c.length>0?[c[0]?E.isDayjs(c[0])?c[0]:E(c[0],F):null,c[1]?E.isDayjs(c[1])?c[1]:E(c[1],F):null]:null}),normalize:c=>c?l==="dayjs"?[c[0]??void 0,c[1]??void 0]:[c[0]?c[0].format(u):void 0,c[1]?c[1].format(u):void 0]:[void 0,void 0],children:s.jsx(ve,{...r,order:!0,minDate:i?E(i,F):void 0,maxDate:e?E(e,F):void 0,picker:f==="datetime"?"date":f,showTime:r?.showTime??(f==="datetime"||f==="time"),format:y})})},re=a.Input.Search,De=t=>{const r=a.Form.useFormInstance(),{openPopup:f}=se.usePopupStore(),i=t.itemProps?.name||[],e=t.popupConfig||{callback(y){Array.isArray(i)&&i.length>1?(r.setFieldValue(i[0],y.code),r.setFieldValue(i[1],y.name)):r.setFieldValue(i,y.code)}},l={...t,placeholder:typeof t.placeholder=="string"?t.placeholder:t.placeholder?.[0]||"",onChange:y=>{Array.isArray(i)&&i.length>1&&r.setFieldValue(i[0],""),t.onChange?.(y)},onSearch:y=>{t.popuCd?f(t.popuCd,t.popupParams,e):t.onSearch?.(y)}};return Array.isArray(i)&&i.length>1?s.jsx($,{...t.itemProps,name:void 0,children:s.jsxs(a.Space.Compact,{block:!0,children:[s.jsx(a.Form.Item,{name:i[0],rules:t.itemProps?.rules,style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(a.Input,{style:{color:"#999",backgroundColor:"#f5f5f5"},placeholder:t.placeholder?.[0]||"",readOnly:!0})}),s.jsx(a.Form.Item,{name:i[1],style:{width:"60%",marginBottom:0},children:s.jsx(re,{readOnly:t.readOnly,enterButton:s.jsx(a.Button,{icon:s.jsx(P.SearchOutlined,{}),disabled:t.readOnly}),...l})})]})}):s.jsx($,{...t.itemProps,children:s.jsx(re,{...l})})},Be=({itemProps:t,selectProps:r={options:[],allowClear:!0}})=>{const f=a.Form.useFormInstance(),i=!!f,e=x.useMemo(()=>r?.addField==="ALL"?[{label:"전체",value:""},...r?.options||[]]:r?.addField==="NULL"?[{label:"",value:""},...r?.options||[]]:r?.options||[],[r.options,r.addField]),l=F=>{r.onChange?.(F)},y={...r,allowClear:r.allowClear??!0,options:e,onChange:l,variant:r.variant},u=s.jsx(a.Select,{...y,disabled:r.disabled});return r.copyable&&!i&&console.warn("BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."),r.copyable?s.jsx($,{...t,name:void 0,children:s.jsxs(a.Space.Compact,{block:!0,children:[s.jsx(a.Form.Item,{name:t?.name,rules:t?.rules,style:{width:"100%",marginBottom:0},validateStatus:"",help:"",children:u}),s.jsx(a.Typography.Paragraph,{copyable:{text:i&&f?.getFieldValue(t?.name)?.toString()||"",tooltips:["코드복사","코드복사됨"]},style:{margin:0,backgroundColor:"#f5f5f5",borderRadius:"4px",border:"1px solid #d9d9d9",fontSize:"12px",color:"#666",display:"flex",alignItems:"center",height:"30px",padding:"0 8px"}})]})}):s.jsx($,{...t,children:u})},Ee=({itemProps:t,inputProps:r={format:"YN"}})=>{const f=a.Form.useFormInstance(),i=(e,l)=>{r.format==="boolean"?f.setFieldValue(t?.name,e):f.setFieldValue(t?.name,e?"Y":"N"),r.onChange&&r.onChange(e,l)};return s.jsx($,{...t,getValueProps:e=>({checked:r.format==="boolean"?!!e:e==="Y"}),normalize:e=>typeof e=="boolean"?r.format==="boolean"?e:e?"Y":"N":r.format==="boolean"?!!e:e?"Y":"N",children:s.jsx(a.Switch,{...r,onChange:(e,l)=>i(e,l)})})},{TextArea:_e}=a.Input,Ne=({itemProps:t,inputProps:r})=>s.jsx($,{...t,children:s.jsx(_e,{...r})}),Ae=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],ne={FILE:"file"},Re=({originNode:t,file:r,fileList:f,moveFile:i,onDrop:e})=>{const l=x.useRef(null),[{handlerId:y},u]=X.useDrop({accept:ne.FILE,collect:Y=>({handlerId:Y.getHandlerId()}),hover(Y,k){if(!l.current)return;const D=Y.uid,j=r.uid;if(D===j)return;const O=G.findIndex(f,{uid:j}),b=G.findIndex(f,{uid:D});if(b===-1||O===-1)return;const B=l.current.getBoundingClientRect(),p=k.getClientOffset();if(!p)return;const v=(B.bottom-B.top)/2,_=p.y-B.top;b<O&&_<v||b>O&&_>v||i(D,j)},drop(){e()}}),[{isDragging:F},c]=X.useDrag({type:ne.FILE,item:()=>({uid:r.uid,index:G.findIndex(f,{uid:r.uid})}),collect:Y=>({isDragging:Y.isDragging()})}),m=F?0:1;return c(u(l)),s.jsx("div",{ref:l,style:{opacity:m},"data-handler-id":y,children:t})},Ue=({itemProps:t,fileGrpKey:r,onUploadComplete:f,onFetchFilesTrxCd:i="SCMFILE00101",onSuccessTrxCd:e="SCMFILE00102",onDeleteFileTrxCd:l="SCMFILE00103",onReorderFilesTrxCd:y="SCMFILE00104",allowedExtensions:u=Ae,maxFileSize:F=200,showButton:c=!0,multiple:m=!1,newFileGrpKeyonModify:Y=!1,buttonText:k="파일 선택",localOnly:D=!1,onFilesChange:j})=>{const[O,b]=x.useState([]),B=x.useRef(r),p=x.useRef([]),v=a.Form.useFormInstance(),_=()=>{if(D||p.current.length===0)return;const n=[...p.current];if(p.current=[],e){const g=n.map(h=>({crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:B.current,physFileNm:h.fileNameP,lgclFileNm:h.fileNameL,filePath:h.filePath,fileExtn:h.fileExt,fileSize:h.fileSize,mltpYn:"N"}));console.log("newFileGrpKeyonModify",Y),console.log("newFileGrpKeyonModify",Y?0:B.current),T.callService(e,{crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:Y?0:B.current,oldFileGrpKey:B.current,newFileGrpKeyonModify:Y,sub:g}).then(h=>{if(h?.sub&&h.sub.length>0){const d=h.sub[0].fileGrpKey;(!B.current||Y)&&(B.current=d);const M=new Map;h.sub.forEach(L=>{const N=n.find(H=>H.fileNameL===L.lgclFileNm);N&&M.set(N.tempId,L)});const S=t?.name;(L=>{if(w){const N=v?.getFieldValue(S)||[],H=L(N);v?.setFieldValue(S,H)}else b(N=>L(N))})(L=>L.map(N=>{const H=M.get(N.uid);if(H){const Z=n.find(le=>le.tempId===N.uid);return f&&Z&&f({...Z,fileGrpKey:d,fileKey:H.fileKey}),{...N,name:H.lgclFileNm,fileGrpKey:d,fileKey:H.fileKey,uid:H.fileKey,status:"done",url:`/api/download?filePath=${H.filePath}&logicalName=${H.lgclFileNm}`}}return N}))}}).catch(h=>{console.error("업로드 후처리 서비스 호출 실패:",h),a.message.error("파일 후처리 중 오류가 발생했습니다.");const d=new Set(n.map(I=>I.tempId)),M=t?.name;(I=>{if(w){const L=v?.getFieldValue(M)||[],N=I(L);v?.setFieldValue(M,N)}else b(L=>I(L))})(I=>I.map(L=>d.has(L.uid)?{...L,status:"error",error:"후처리 실패"}:L))})}},U=x.useRef(G.debounce(_,500)).current;x.useEffect(()=>()=>{U.cancel()},[U]),x.useEffect(()=>{B.current=r},[r]),x.useEffect(()=>{D||r&&i&&T.callService(i,{crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:r}).then(n=>{if(n?.sub){const g=n.sub.map(d=>({uid:d.fileKey,name:d.lgclFileNm,status:"done",url:`/api/download?filePath=${d.filePath}&logicalName=${d.lgclFileNm}`})),h=t?.name;w?v?.setFieldValue(h,g):b(g)}else{const g=t?.name;w?v?.setFieldValue(g,[]):b([])}}).catch(n=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",n),a.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})},[r,i]);const o=(n,g)=>{const h=t?.name,d=w?v?.getFieldValue(h)||[]:O,M=G.findIndex(d,{uid:n}),S=G.findIndex(d,{uid:g});if(M<0||S<0)return;const I=[...d],[L]=I.splice(M,1);I.splice(S,0,L),w?v?.setFieldValue(h,I):b(I)},C=()=>{if(!D&&r&&y){const n=t?.name,h=(w?v?.getFieldValue(n)||[]:O).map(d=>d.uid);T.callService(y,{crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:r,reorderedFileKeys:h}).then(()=>{a.message.success("파일 순서가 성공적으로 저장되었습니다.")}).catch(d=>{console.error("파일 순서 저장 서비스 호출 실패:",d),a.message.error("파일 순서 저장 중 오류가 발생했습니다.")})}},V=n=>{const g=t?.name,h=w?v?.getFieldValue(g)||[]:O;if(!m&&h.length>0)return a.message.error("하나의 파일만 업로드할 수 있습니다."),a.Upload.LIST_IGNORE;if(u&&u.length>0){const d=`.${n.name.split(".").pop()?.toLowerCase()}`;if(!u.includes(d))return a.message.error(`${n.name} 파일은 허용되지 않는 확장자입니다. (${u.join(", ")})`),a.Upload.LIST_IGNORE}return F&&!(n.size/1024/1024<F)?(a.message.error(`일반업로드의 최대용량은 ${F}MB입니다.`),a.Upload.LIST_IGNORE):!D},w=!!t?.name,A={name:"file",multiple:m,action:D?void 0:"/api/upload",beforeUpload:V,showUploadList:{showRemoveIcon:c},onChange(n){const{status:g,uid:h}=n.file;if(g==="removed"){if(!D&&l)T.callService(l,{crprCd:T.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:Y?0:B.current,fileKey:h,oldFileGrpKey:B.current,newFileGrpKeyonModify:Y}).then(d=>{if(a.message.success("파일이 성공적으로 삭제되었습니다."),Y&&(B.current=d.fileGrpKey),w){const M=t?.name;v?.setFieldValue(M,n.fileList)}else b(n.fileList);j?.(n.fileList),f?.({fileGrpKey:d.fileGrpKey})}).catch(d=>{console.error("파일 삭제 서비스 호출에 실패했습니다.",d),a.message.error("파일 삭제 중 오류가 발생했습니다.")});else{if(w){const d=t?.name;v?.setFieldValue(d,n.fileList)}else b(n.fileList);j?.(n.fileList)}return}if(w){const d=t?.name;v?.setFieldValue(d,n.fileList)}else b(n.fileList);if(j?.(n.fileList),g==="done")if(!D&&n.file.response?.success){const{uploadedFiles:d}=n.file.response;d&&Array.isArray(d)&&d.length>0&&(d.forEach(M=>{M.tempId=n.file.uid,p.current.push(M)}),U()),a.message.success(n.file.response.message||`${n.file.name} 파일이 성공적으로 업로드되었습니다.`)}else a.message.error(n.file.response?.message||`${n.file.name} 파일 업로드에 실패했습니다.`);else g==="error"&&a.message.error(n.file.response?.message||`${n.file.name} 파일 업로드 중 오류가 발생했습니다.`)},itemRender(n,g,h){const d=x.cloneElement(n,{href:g.url||void 0,title:void 0});return s.jsx(Re,{originNode:d,file:g,fileList:h,moveFile:o,onDrop:C},g.uid)}};w||(A.fileList=O);const R=n=>Array.isArray(n)?n:n&&n.fileList,z=t?.name,K=w?a.Form.useWatch?.(z,v):void 0,q=w?K||[]:O;return s.jsx(X.DndProvider,{backend:ce.HTML5Backend,children:s.jsx($,{valuePropName:"fileList",getValueFromEvent:R,...t,children:s.jsx(a.Upload,{headers:{SYSCD:__SYS_CD__},...A,listType:"picture",children:c&&(m||q.length===0)&&s.jsx(a.Button,{icon:s.jsx(P.UploadOutlined,{}),children:k})})})})};exports.BwgButton=ue;exports.BwgCheck=de;exports.BwgCheckList=fe;exports.BwgDatePicker=me;exports.BwgDownload=ge;exports.BwgForm=oe;exports.BwgFormItem=$;exports.BwgInput=pe;exports.BwgLargeUploader=Fe;exports.BwgMaskedDate=Ye;exports.BwgMaskedInput=Se;exports.BwgMaskedRange=we;exports.BwgMultiSelect=Ve;exports.BwgNumber=Ie;exports.BwgRadio=Le;exports.BwgRangePicker=Me;exports.BwgSearch=De;exports.BwgSelect=Be;exports.BwgSwitch=Ee;exports.BwgTextArea=Ne;exports.BwgUploader=Ue;
|
|
@@ -8,7 +8,8 @@ export { default as BwgFormItem } from './BwgFormItem';
|
|
|
8
8
|
export { default as BwgInput } from './BwgInput';
|
|
9
9
|
export { default as BwgLargeUploader } from './BwgLargeUploader';
|
|
10
10
|
export { default as BwgMaskedInput } from './BwgMaskedInput';
|
|
11
|
-
export { default as
|
|
11
|
+
export { default as BwgMaskedDate } from './BwgMaskedDate';
|
|
12
|
+
export { default as BwgMaskedRange } from './BwgMaskedRange';
|
|
12
13
|
export { default as BwgMultiSelect } from './BwgMultiSelect';
|
|
13
14
|
export { default as BwgNumber } from './BwgNumber';
|
|
14
15
|
export { default as BwgRadio } from './BwgRadio';
|
|
@@ -28,7 +29,8 @@ export type { BwgFormItemProps } from './BwgFormItem';
|
|
|
28
29
|
export type { BwgInputProps } from './BwgInput';
|
|
29
30
|
export type { BwgLargeUploaderProps } from './BwgLargeUploader';
|
|
30
31
|
export type { BwgMaskedInputProps, MaskInputType } from './BwgMaskedInput';
|
|
31
|
-
export type {
|
|
32
|
+
export type { BwgMaskedDateProps } from './BwgMaskedDate';
|
|
33
|
+
export type { BwgMaskedRangeProps } from './BwgMaskedRange';
|
|
32
34
|
export type { BwgMultiSelectProps, MultiSelectProps } from './BwgMultiSelect';
|
|
33
35
|
export type { BwgNumberProps, NumberProps } from './BwgNumber';
|
|
34
36
|
export type { BwgRadioProps } from './BwgRadio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,OAAO,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