@bwg-ui/core 1.2.35 → 1.3.1
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-Duabg_5A.js → CMSearchIntfGwP01-BWm9OqAH.js} +28 -28
- package/dist/chunks/{CMSearchIntfGwP01-CMSQULsU.cjs → CMSearchIntfGwP01-CihGc5Q1.cjs} +1 -1
- package/dist/chunks/MenuReport-khjaUz1Q.cjs +1 -0
- package/dist/chunks/{MenuReport-B4EU1A6l.js → MenuReport-yYhMOHyq.js} +10 -10
- package/dist/chunks/common-components-DletnDTf.cjs +1109 -0
- package/dist/chunks/{common-components-DIpOkbb5.js → common-components-coAoWxE9.js} +12963 -12155
- package/dist/chunks/{layout-components-D2Fla5uu.js → layout-components-C1DG2B74.js} +982 -705
- package/dist/chunks/layout-components-C6KeWPIu.cjs +35 -0
- package/dist/chunks/provider-DrboIg2C.cjs +1 -0
- package/dist/chunks/provider-VCa8UGvF.js +446 -0
- package/dist/components/common/BwgDetail.d.ts.map +1 -1
- 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/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 +1219 -781
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +2 -2
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableHeader.d.ts.map +1 -1
- package/dist/components/layout/custom/ConfigurableMenuTab.d.ts.map +1 -1
- package/dist/components/layout/extension/ContentWrapper.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.js +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 -259
- 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.d.ts +6 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +279 -192
- package/dist/stores/menuViewStore.d.ts +6 -0
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/userStore.d.ts +23 -0
- package/dist/stores/userStore.d.ts.map +1 -1
- package/dist/styles/assets/images/contents/icon/ico-tab-hashtag-grey.svg +11 -0
- package/dist/styles/assets/images/contents/icon/ico-tab-hashtag.svg +11 -0
- package/dist/styles/components.css +161 -60
- package/dist/styles/layout.css +1289 -1234
- 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 +12 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +736 -664
- package/package.json +1 -1
- package/dist/chunks/MenuReport-5e2dMr_C.cjs +0 -1
- package/dist/chunks/common-components-D3-r7D-8.cjs +0 -1109
- package/dist/chunks/layout-components-pfHVy2at.cjs +0 -35
- package/dist/components/core/BwgMaskedPicker.d.ts.map +0 -1
- package/dist/utils/FileUtils.d.ts.map +0 -1
|
@@ -227,6 +227,20 @@ interface BwgGridEventList {
|
|
|
227
227
|
* @returns
|
|
228
228
|
*/
|
|
229
229
|
onShowEditor?: (grid: GridBase, index: CellIndex, props: any, attrs: any) => boolean;
|
|
230
|
+
/**
|
|
231
|
+
* - 레이아웃 속성이 변경되었을 때 발생하는 콜백
|
|
232
|
+
* - (상세)
|
|
233
|
+
* 컬럼의 visible, width, order 등 레이아웃 속성이 변경될 때 발생합니다.
|
|
234
|
+
* 헤더 숨김, 이동 등을 감지할 수 있습니다.
|
|
235
|
+
* @remark onColumnPropertyChanged는 deprecated되었으므로 이 API를 사용하세요.
|
|
236
|
+
* @param grid GridBase 컨트롤
|
|
237
|
+
* @param layout 변경된 레이아웃 정보
|
|
238
|
+
* @param property 변경된 속성명 (예: 'visible', 'width', 'order' 등)
|
|
239
|
+
* @param oldValue 변경 전 값
|
|
240
|
+
* @param newValue 변경 후 값
|
|
241
|
+
* @returns
|
|
242
|
+
*/
|
|
243
|
+
onLayoutPropertyChanged?: (grid: GridBase, layout: any, property: string, oldValue: any, newValue: any) => void;
|
|
230
244
|
}
|
|
231
245
|
interface BwgGridRef {
|
|
232
246
|
/** 데이터 추가 */
|
|
@@ -293,6 +307,8 @@ interface BwgGridProps {
|
|
|
293
307
|
}[];
|
|
294
308
|
/** 그리드 초기화 콜백 */
|
|
295
309
|
gridInitCallback?: (grid?: BwgGridRef | null) => void;
|
|
310
|
+
/** 그리드 ID (레이아웃 저장/로드를 위한 고유 식별자) */
|
|
311
|
+
gridId?: string;
|
|
296
312
|
/** ref prop for forwardRef */
|
|
297
313
|
ref?: Ref<BwgGridRef>;
|
|
298
314
|
}
|
|
@@ -520,22 +536,7 @@ interface BwgGridExcelOption {
|
|
|
520
536
|
/** 꼬리말 */
|
|
521
537
|
tailTitle?: string;
|
|
522
538
|
}
|
|
523
|
-
|
|
524
|
-
* BwgGrid 커스텀 렌더러 타입 정의
|
|
525
|
-
*/
|
|
526
|
-
export interface BwgGridRenderType {
|
|
527
|
-
_root?: any;
|
|
528
|
-
initContent: (dom: any) => void;
|
|
529
|
-
render: (grid: any, model: any, w: any, h: any) => void;
|
|
530
|
-
clearContent: (dom: any) => void;
|
|
531
|
-
canClick: (event: any) => boolean;
|
|
532
|
-
click: () => any;
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* BwgGrid 렌더러 생성 유틸리티
|
|
536
|
-
*/
|
|
537
|
-
export declare const createBwgGridRenderer: (renderFunction: (grid: any, model: any, w: any, h: any, root: any) => void) => BwgGridRenderType;
|
|
539
|
+
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridDataLoadOption, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, };
|
|
538
540
|
declare const _default: ComponentType<BwgGridProps>;
|
|
539
541
|
export default _default;
|
|
540
|
-
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridDataLoadOption, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, };
|
|
541
542
|
//# sourceMappingURL=BwgGrid.d.ts.map
|
|
@@ -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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AU,GACX,CAAC;wBAGwB,aAAa,CAAC,YAAY,CAAC;AAArD,wBAAsD"}
|
|
@@ -1 +1 @@
|
|
|
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,iHAsdlB,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-DletnDTf.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,M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ils/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-coAoWxE9.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":["../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ACZ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACvD,CAAC;CACH"}
|
|
@@ -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"),O=require("dayjs"),R=require("@ant-design/icons"),N=require("../../utils/index.cjs"),ie=require("jszip"),se=require("imask"),P=require("lodash"),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})},v=m.memo(({children:t,label:e,name:l,rules:o,initialValue:s,style:a,required:f,...i})=>{const g={fontWeight:"bold"};(o==null||o==null)&&f&&(o=[{required:!0,message:`${e}을(를) 입력해주세요.`}]);const d=Array.isArray(o)&&o.some(h=>h.required===!0),b=()=>typeof e=="string"?r.jsxs("span",{style:g,children:[e,d&&r.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}):r.jsx("span",{style:g,children:e});return r.jsx(n.Form.Item,{className:"bwg-form-item",label:e?b():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(v,{...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,f]=m.useState([]),i=a.length>0&&a.length==o?.length,g=o?.length>0&&o.length<a.length;m.useEffect(()=>{f(d(e?.options))},[e?.options]),m.useEffect(()=>{s(o)},[o]);const d=_=>{const S=[];return(_||[]).map((I,U)=>{S.push(I.value)}),S},b=_=>{s(_.target.checked?a:[]),l.setFieldValue(t?.name,_.target.checked?a:[])},h=_=>{s(_),l.setFieldValue(t?.name,_),e?.onChange&&typeof e?.onChange=="function"&&e?.onChange(_)};return r.jsx(v,{...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:g,checked:i,onChange:b,children:"전체선택"}),r.jsx(n.Checkbox.Group,{options:e?.options,value:o,onChange:h})]})})},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]),f=m.useMemo(()=>Object.values(Z).map(i=>i.outputFormat).sort((i,g)=>{if(i.length===g.length){if(i===a)return-1;if(g===a)return 1}return g.length-i.length}),[a]);return r.jsx(v,{...t,getValueProps:i=>({value:i?O.isDayjs(i)?i:O(i,f):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:e?.format?{format:e?.format?.format,type:"mask"}:s})})},fe=({fileGrpKey:t,onFetchFilesTrxCd:e="SCMFILE00101",readOnly:l=!1,appCd:o=__APP_CD__})=>{const[s,a]=m.useState([]);m.useEffect(()=>{if(e)if(o!=__APP_CD__){const g=N.getApiDeps().findSystemByAppCd?.(o??__APP_CD__);if(!g||!g.sysCd){console.error("해당 앱코드는 존재하지 않습니다.",o);return}N.callServiceByAppCd({trxCd:e,appCd:o},{crprCd:N.getCrprCd(),sysCd:g.sysCd,fileGrpKey:t}).then(d=>{if(d?.sub){const b=d.sub.map(h=>({uid:h.fileKey,name:h.lgclFileNm,filePath:h.filePath}));a(b)}}).catch(d=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",d),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})}else N.callService(e,{crprCd:N.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:t}).then(i=>{if(i?.sub){const g=i.sub.map(d=>({uid:d.fileKey,name:d.lgclFileNm,filePath:d.filePath}));a(g)}}).catch(i=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",i),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")});else a([])},[t,e,o]);const f=async i=>{try{const d=N.getApiDeps().findSystemByAppCd?.(o??__APP_CD__);if(!d||!d.sysCd){console.error("해당 앱코드는 존재하지 않습니다.",o);return}const h=await fetch("/api/download",{method:"POST",headers:{SYSCD:d.sysCd,"Content-Type":"application/json"},body:JSON.stringify({filePath:i.filePath,logicalName:i.name,fileKey:i.uid})});if(!h.ok){const w=(await h.json().catch(()=>null))?.message||"파일 다운로드에 실패했습니다.";throw new Error(w)}const _=await h.blob(),S=window.URL.createObjectURL(_),I=document.createElement("a");I.href=S,I.setAttribute("download",i.name),document.body.appendChild(I),I.click(),document.body.removeChild(I),window.URL.revokeObjectURL(S)}catch(g){console.error(g),n.message.error(g.message||"파일을 다운로드하는 중 오류가 발생했습니다.")}};return 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(R.DownloadOutlined,{}),onClick:()=>f(i)},"download")],children:r.jsx(n.List.Item.Meta,{avatar:r.jsx(R.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(v,{...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:f=2048})=>{const[i,g]=m.useState([]),[d,b]=m.useState(!1),[h,_]=m.useState(!1),[S,I]=m.useState(0),U=x=>{if(a&&a.length>0){const c=(C=>{const L=C.lastIndexOf(".");return L===-1?"":C.substring(L).toLowerCase()})(x.name);if(!a.includes(c))return n.message.error(`${x.name} 파일은 허용되지 않는 확장자입니다. (${a.join(", ")}만 가능)`),!1}return!0},w=async()=>{const x=i.filter(B=>B.status!=="done"),F=x.reduce((B,T)=>B+(T.size||0),0),c=2*1024*1024*1024;if(F>c){n.notification.error({message:"업로드 용량 초과",description:"한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."});return}if(x.length===0){n.message.warning("업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다.");return}_(!0);let C;try{const B=new ie;x.forEach(T=>{T.originFileObj&&B.file(T.name,T.originFileObj)}),C=await B.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})}catch(B){_(!1),n.message.error("파일을 압축하는 중 오류가 발생했습니다."),console.error("Zipping error:",B);return}_(!1);const L=new FormData;L.append("file",C,"upload.zip"),b(!0),I(0);try{const B=await new Promise((j,M)=>{const A=new XMLHttpRequest;A.open("POST","/api/upload-large",!0),A.upload.onprogress=D=>{if(D.lengthComputable){const G=Math.round(D.loaded/D.total*100);I(G)}},A.onload=()=>{if(A.status>=200&&A.status<300)try{const D=JSON.parse(A.responseText);D.success?j(D):M(new Error(D.message||"파일 업로드에 실패했습니다."))}catch{M(new Error("잘못된 서버 응답입니다."))}else try{const D=JSON.parse(A.responseText);M(new Error(D.message||`서버 오류: ${A.status}`))}catch{M(new Error(`서버 오류: ${A.status}`))}},A.onerror=()=>{M(new Error("네트워크 오류가 발생했습니다."))},A.send(L)});n.message.success(B.message||"압축 파일이 성공적으로 업로드되었습니다.");const T=i.map(j=>x.find(M=>M.uid===j.uid)?{...j,status:"done"}:j);if(g(T),o&&B.uploadedFiles&&Array.isArray(B.uploadedFiles)){const j=N.getUserInfo();B.uploadedFiles.forEach(M=>{const A={crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,sub:[{crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,physFileNm:M.fileNameP,lgclFileNm:M.fileNameL,filePath:M.filePath,fileExtn:M.fileExt,fileSize:M.fileSize,mltpYn:"Y"}]};N.callService(o,A).then(D=>{const G=i.map(q=>({crprCd:j?.crprCd,sysCd:__SYS_CD__,fileGrpKey:D.sub[0].fileGrpKey,fileKey:D.sub[0].fileKey,lgclFileNm:q.name,fileSize:q.size,fileExtn:q.name.split(".").pop(),fileType:q.type}));N.callService(s,{sub:G})}).catch(D=>{console.error("후처리 서비스 호출 실패:",D),n.message.error(`${M.fileNameL} 파일의 후처리 작업에 실패했습니다.`)}),l&&l({fileNameP:M.fileNameP,fileNameL:M.fileNameL})})}}catch(B){n.message.error(B.message||"파일 업로드 중 오류가 발생했습니다.");const T=i.map(j=>x.find(M=>M.uid===j.uid)?{...j,status:"error",response:B.message||"파일 업로드 중 오류가 발생했습니다."}:j);g(T)}finally{b(!1)}},y={multiple:!0,fileList:i,beforeUpload:x=>U(x)?f&&x.size>=f*1024*1024?(n.message.error(`대용량 첨부 파일 최대 크기는 ${(f/1024).toFixed(1)}GB입니다.`),n.Upload.LIST_IGNORE):!1:n.Upload.LIST_IGNORE,onChange:({fileList:x})=>{const F=new Map(i.map(c=>[c.uid,c]));x.forEach(c=>{F.set(c.uid,c)}),g(Array.from(F.values()))},onRemove:x=>{const F=i.filter(c=>c.uid!==x.uid);g(F)},showUploadList:!1};return r.jsx(n.Spin,{spinning:d||h,tip:h?"파일 압축 중...":`파일 업로드 중... ${S}%`,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(R.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:x=>{const F=x.status==="done",c=x.status==="error";let C;return F?C=r.jsx(R.CheckCircleOutlined,{style:{color:"#52c41a",fontSize:14}}):c?C=r.jsx(n.Tooltip,{title:typeof x.response=="string"?x.response:"업로드 실패",children:r.jsx(R.CloseCircleOutlined,{style:{color:"#ff4d4f",fontSize:14}})}):C=r.jsx(R.FileTextOutlined,{style:{fontSize:14}}),r.jsx(n.List.Item,{actions:[r.jsx(W,{type:"secondary",children:xe(x.size||0)},"size"),r.jsx(n.Button,{type:"text",icon:r.jsx(R.DeleteOutlined,{}),onClick:L=>{L.stopPropagation(),y.onRemove?.(x)},disabled:d||h},"delete")],children:r.jsx(n.List.Item.Meta,{avatar:C,title:r.jsx(W,{type:c?"danger":void 0,children:x.name})})},x.uid)}}):r.jsxs(n.Flex,{gap:"middle",align:"center",justify:"center",vertical:!0,style:{padding:"20px 0",minHeight:"120px"},children:[r.jsx(R.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:S,size:"small"})}),r.jsx(n.Button,{type:"primary",onClick:w,disabled:d||h||i.filter(x=>x.status!=="done").length===0,icon:r.jsx(R.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""},Ce=({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 f=typeof l=="string"||Array.isArray(l)?{mask:l}:l,i=se(o.current.input,f);return i.on("accept",()=>{s&&t?.name&&s.setFieldValue(t.name,i.value)}),()=>{i.destroy()}},[l,s,t?.name]),r.jsx(v,{...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"}}},Se=({type:t="date",itemProps:e={name:"calendar"},inputProps:l})=>{const{format:o,mask:s,outputFormat:a}=je(t),f=m.useRef(null),i=m.useRef(null),g=m.useRef(null),d=n.Form.useFormInstance(),[b,h]=m.useState(!1),[_,S]=m.useState(!1),I=e?.name,[U,w]=m.useState(null),y=n.Form.useWatch(I,d);m.useEffect(()=>{if(!f.current?.input)return;const c=se(f.current.input,{mask:s,lazy:!1});return i.current=c,c.on("accept",()=>{const C=c.value;C.length>0&&h(!0);const L=O(C,o,!0);C.length===o.length&&L.isValid()&&(d.setFieldValue(I,c.value),w(L),i.current?.updateValue())}),()=>{c.destroy()}},[o,s]),m.useEffect(()=>{if(!y){w(null);return}let c=null;if(typeof y=="string"&&y.length===a.length&&/^\d+$/.test(y))if(t==="date"){const C=y.substring(0,4),L=y.substring(4,6),B=y.substring(6,8);c=O(`${C}-${L}-${B}`,o,!0)}else if(t==="month"){const C=y.substring(0,4),L=y.substring(4,6);c=O(`${C}-${L}`,o,!0)}else t==="year"&&(c=O(y,o,!0));else c=O(y,o,!0);c&&c.isValid()?w(c):w(null),S(!1)},[y,o,a,t]);const x=c=>{if(!c){w(null),i.current?.updateValue();return}w(c);const C=c.format(a);i.current&&(i.current.value=C,i.current.updateValue()),S(!1)},F=c=>{setTimeout(()=>{const C=document.activeElement,L=g.current,B=L?.querySelector(".ant-picker-dropdown");!(L&&(L.contains(C)||L===C||B?.contains(C)))&&!(c!==void 0?c:b)&&console.log("✅ Input과 DatePicker 모두 포커스가 없습니다")},0)};return r.jsx(v,{...e,name:void 0,validateStatus:_?"warning":void 0,children:r.jsx(n.ConfigProvider,{theme:{components:{Input:{addonBg:"#fff"}}},children:r.jsxs("div",{ref:g,style:{position:"relative"},children:[r.jsx(n.Form.Item,{name:I,getValueProps:c=>({value:c?O(c).format(o):void 0}),normalize:c=>c?O(c).format(a):void 0,noStyle:!0,children:r.jsx(n.Input,{...l,ref:f,onFocus:()=>{h(!b),i.current?.updateValue()},onBlur:()=>{F()},onKeyDown:c=>{if(c.key==="Backspace"&&h(!0),c.key==="Tab"&&h(!1),c.key==="Enter")if(b){const C=i.current?.value||"",L=O(C,o,!0);C.length===o.length&&L.isValid()?(h(!1),S(!1)):S(!0)}else h(!0)},allowClear:!0,placeholder:s.replace(/0/g,"_"),suffix:r.jsx(R.CalendarOutlined,{style:{color:"#d9d9d9"}}),autoComplete:"off"})}),r.jsx(n.DatePicker,{open:b,picker:t,format:{format:o,type:"mask"},showNow:!0,value:U,onChange:x,onOpenChange:c=>{h(c),c||F(!1)},renderExtraFooter:()=>_?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(R.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(v,{...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:f}=s;return e?.printCode?r.jsx(Q,{value:a,label:f,children:r.jsx(n.Space,{children:`[${a}] ${f}`})},a):r.jsx(Q,{value:a,label:f,children:r.jsx(n.Space,{children:`${f}`})},a)})})})},be=({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(v,{...t,children:r.jsx(n.InputNumber,{...e,formatter:s=>l(s),parser:s=>o(s)})})},we=({itemProps:t,inputProps:e})=>r.jsx(v,{...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:f,outputFormat:i}=m.useMemo(()=>ee[l],[l]),g=m.useMemo(()=>Object.values(ee).map(d=>d.outputFormat).sort((d,b)=>{if(d.length===b.length){if(d===i)return-1;if(b===i)return 1}return b.length-d.length}),[i]);return r.jsx(v,{...t,getValueProps:d=>({value:d&&d.length>0?[d[0]?O.isDayjs(d[0])?d[0]:O(d[0],g):null,d[1]?O.isDayjs(d[1])?d[1]:O(d[1],g):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?O(o,g):void 0,maxDate:s?O(s,g):void 0,picker:l==="datetime"?"date":l,showTime:e?.showTime??(l==="datetime"||l==="time"),format:f})})},te=n.Input.Search,Be=t=>{const e=n.Form.useFormInstance(),{openPopup:l}=ne.usePopupStore(),o=t.itemProps?.name||[],s=t.popupConfig||{callback(f){Array.isArray(o)&&o.length>1?(e.setFieldValue(o[0],f.code),e.setFieldValue(o[1],f.name)):e.setFieldValue(o,f.code)}},a={...t,placeholder:typeof t.placeholder=="string"?t.placeholder:t.placeholder?.[0]||"",onChange:f=>{Array.isArray(o)&&o.length>1&&e.setFieldValue(o[0],""),t.onChange?.(f)},onSearch:f=>{t.popuCd?l(t.popuCd,t.popupParams,s):t.onSearch?.(f)}};return Array.isArray(o)&&o.length>1?r.jsx(v,{...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(R.SearchOutlined,{}),disabled:t.readOnly}),...a})})]})}):r.jsx(v,{...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=g=>{e.onChange?.(g)},f={...e,allowClear:e.allowClear??!0,options:s,onChange:a,variant:e.variant},i=r.jsx(n.Select,{...f,disabled:e.disabled});return e.copyable&&!o&&console.warn("BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."),e.copyable?r.jsx(v,{...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(v,{...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(v,{...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,De=({itemProps:t,inputProps:e})=>r.jsx(v,{...t,children:r.jsx(ke,{...e})}),Ne=[".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:f},i]=J.useDrop({accept:re.FILE,collect:h=>({handlerId:h.getHandlerId()}),hover(h,_){if(!a.current)return;const S=h.uid,I=e.uid;if(S===I)return;const U=P.findIndex(l,{uid:I}),w=P.findIndex(l,{uid:S});if(w===-1||U===-1)return;const y=a.current.getBoundingClientRect(),x=_.getClientOffset();if(!x)return;const F=(y.bottom-y.top)/2,c=x.y-y.top;w<U&&c<F||w>U&&c>F||o(S,I)},drop(){s()}}),[{isDragging:g},d]=J.useDrag({type:re.FILE,item:()=>({uid:e.uid,index:P.findIndex(l,{uid:e.uid})}),collect:h=>({isDragging:h.isDragging()})}),b=g?0:1;return d(i(a)),r.jsx("div",{ref:a,style:{opacity:b},"data-handler-id":f,children:t})},Ee=({itemProps:t,fileGrpKey:e,onUploadComplete:l,onFetchFilesTrxCd:o="SCMFILE00101",onSuccessTrxCd:s="SCMFILE00102",onDeleteFileTrxCd:a="SCMFILE00103",onReorderFilesTrxCd:f="SCMFILE00104",allowedExtensions:i=Ne,maxFileSize:g=200,showButton:d=!0,multiple:b=!1,newFileGrpKeyonModify:h=!1,buttonText:_="파일 선택",localOnly:S=!1,onFilesChange:I})=>{const[U,w]=m.useState([]),y=m.useRef(e),x=m.useRef([]),F=n.Form.useFormInstance(),c=()=>{if(S||x.current.length===0)return;const u=[...x.current];if(x.current=[],s){const k=u.map(Y=>({crprCd:N.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",h),console.log("newFileGrpKeyonModify",h?0:y.current),N.callService(s,{crprCd:N.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:h?0:y.current,oldFileGrpKey:y.current,newFileGrpKeyonModify:h,sub:k}).then(Y=>{if(Y?.sub&&Y.sub.length>0){const p=Y.sub[0].fileGrpKey;(!y.current||h)&&(y.current=p);const z=new Map;Y.sub.forEach(E=>{const V=u.find(H=>H.fileNameL===E.lgclFileNm);V&&z.set(V.tempId,E)});const K=t?.name;(E=>{if(j){const V=F?.getFieldValue(K)||[],H=E(V);F?.setFieldValue(K,H)}else w(V=>E(V))})(E=>E.map(V=>{const H=z.get(V.uid);if(H){const X=u.find(ae=>ae.tempId===V.uid);return l&&X&&l({...X,fileGrpKey:p,fileKey:H.fileKey}),{...V,name:H.lgclFileNm,fileGrpKey:p,fileKey:H.fileKey,uid:H.fileKey,status:"done",url:`/api/download?filePath=${H.filePath}&logicalName=${H.lgclFileNm}`}}return V}))}}).catch(Y=>{console.error("업로드 후처리 서비스 호출 실패:",Y),n.message.error("파일 후처리 중 오류가 발생했습니다.");const p=new Set(u.map($=>$.tempId)),z=t?.name;($=>{if(j){const E=F?.getFieldValue(z)||[],V=$(E);F?.setFieldValue(z,V)}else w(E=>$(E))})($=>$.map(E=>p.has(E.uid)?{...E,status:"error",error:"후처리 실패"}:E))})}},C=m.useRef(P.debounce(c,500)).current;m.useEffect(()=>()=>{C.cancel()},[C]),m.useEffect(()=>{y.current=e},[e]),m.useEffect(()=>{S||e&&o&&N.callService(o,{crprCd:N.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e}).then(u=>{if(u?.sub){const k=u.sub.map(p=>({uid:p.fileKey,name:p.lgclFileNm,status:"done",url:`/api/download?filePath=${p.filePath}&logicalName=${p.lgclFileNm}`})),Y=t?.name;j?F?.setFieldValue(Y,k):w(k)}else{const k=t?.name;j?F?.setFieldValue(k,[]):w([])}}).catch(u=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",u),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})},[e,o]);const L=(u,k)=>{const Y=t?.name,p=j?F?.getFieldValue(Y)||[]:U,z=P.findIndex(p,{uid:u}),K=P.findIndex(p,{uid:k});if(z<0||K<0)return;const $=[...p],[E]=$.splice(z,1);$.splice(K,0,E),j?F?.setFieldValue(Y,$):w($)},B=()=>{if(!S&&e&&f){const u=t?.name,Y=(j?F?.getFieldValue(u)||[]:U).map(p=>p.uid);N.callService(f,{crprCd:N.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,reorderedFileKeys:Y}).then(()=>{n.message.success("파일 순서가 성공적으로 저장되었습니다.")}).catch(p=>{console.error("파일 순서 저장 서비스 호출 실패:",p),n.message.error("파일 순서 저장 중 오류가 발생했습니다.")})}},T=u=>{const k=t?.name,Y=j?F?.getFieldValue(k)||[]:U;if(!b&&Y.length>0)return n.message.error("하나의 파일만 업로드할 수 있습니다."),n.Upload.LIST_IGNORE;if(i&&i.length>0){const p=`.${u.name.split(".").pop()?.toLowerCase()}`;if(!i.includes(p))return n.message.error(`${u.name} 파일은 허용되지 않는 확장자입니다. (${i.join(", ")})`),n.Upload.LIST_IGNORE}return g&&!(u.size/1024/1024<g)?(n.message.error(`일반업로드의 최대용량은 ${g}MB입니다.`),n.Upload.LIST_IGNORE):!S},j=!!t?.name,M={name:"file",multiple:b,action:S?void 0:"/api/upload",beforeUpload:T,showUploadList:{showRemoveIcon:d},onChange(u){const{status:k,uid:Y}=u.file;if(k==="removed"){if(!S&&a)N.callService(a,{crprCd:N.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:h?0:y.current,fileKey:Y,oldFileGrpKey:y.current,newFileGrpKeyonModify:h}).then(p=>{if(n.message.success("파일이 성공적으로 삭제되었습니다."),h&&(y.current=p.fileGrpKey),j){const z=t?.name;F?.setFieldValue(z,u.fileList)}else w(u.fileList);I?.(u.fileList),l?.({fileGrpKey:p.fileGrpKey})}).catch(p=>{console.error("파일 삭제 서비스 호출에 실패했습니다.",p),n.message.error("파일 삭제 중 오류가 발생했습니다.")});else{if(j){const p=t?.name;F?.setFieldValue(p,u.fileList)}else w(u.fileList);I?.(u.fileList)}return}if(j){const p=t?.name;F?.setFieldValue(p,u.fileList)}else w(u.fileList);if(I?.(u.fileList),k==="done")if(!S&&u.file.response?.success){const{uploadedFiles:p}=u.file.response;p&&Array.isArray(p)&&p.length>0&&(p.forEach(z=>{z.tempId=u.file.uid,x.current.push(z)}),C()),n.message.success(u.file.response.message||`${u.file.name} 파일이 성공적으로 업로드되었습니다.`)}else n.message.error(u.file.response?.message||`${u.file.name} 파일 업로드에 실패했습니다.`);else k==="error"&&n.message.error(u.file.response?.message||`${u.file.name} 파일 업로드 중 오류가 발생했습니다.`)},itemRender(u,k,Y){const p=m.cloneElement(u,{href:k.url||void 0,title:void 0});return r.jsx(ve,{originNode:p,file:k,fileList:Y,moveFile:L,onDrop:B},k.uid)}};j||(M.fileList=U);const A=u=>Array.isArray(u)?u:u&&u.fileList,D=t?.name,G=j?n.Form.useWatch?.(D,F):void 0,q=j?G||[]:U;return r.jsx(J.DndProvider,{backend:le.HTML5Backend,children:r.jsx(v,{valuePropName:"fileList",getValueFromEvent:A,...t,children:r.jsx(n.Upload,{headers:{SYSCD:__SYS_CD__},...M,listType:"picture",children:d&&(b||q.length===0)&&r.jsx(n.Button,{icon:r.jsx(R.UploadOutlined,{}),children:_})})})})};exports.BwgButton=ce;exports.BwgCheck=de;exports.BwgCheckList=ue;exports.BwgDatePicker=me;exports.BwgDownload=fe;exports.BwgForm=oe;exports.BwgFormItem=v;exports.BwgInput=ge;exports.BwgLargeUploader=ye;exports.BwgMaskedInput=Ce;exports.BwgMaskedPicker=Se;exports.BwgMultiSelect=Ye;exports.BwgNumber=be;exports.BwgRadio=we;exports.BwgRangePicker=Ie;exports.BwgSearch=Be;exports.BwgSelect=_e;exports.BwgSwitch=Me;exports.BwgTextArea=De;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,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,
|
|
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,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,WAAW,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