@bwg-ui/core 1.1.25 → 1.1.27
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/common-components-CniOkOzu.js +15776 -0
- package/dist/chunks/common-components-DrcQahsO.cjs +183 -0
- package/dist/chunks/{core-Dl0PdDdT.js → core-CEDyqniq.js} +1 -2
- package/dist/chunks/core-lmAmbqvY.cjs +1 -0
- package/dist/chunks/{enc-base64-D7t4BoUA.js → enc-base64-CF2tIkYl.js} +4 -5
- package/dist/chunks/enc-base64-Dxq399hI.cjs +1 -0
- package/dist/chunks/{sha256-C2-s1oZe.js → sha256-DYurgXCU.js} +12 -13
- package/dist/chunks/sha256-H5WWQnKT.cjs +1 -0
- package/dist/components/common/BwgPagination.d.ts +1 -1
- package/dist/components/common/BwgPagination.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -2
- package/dist/components/common/index.d.ts +3 -1
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +16 -17
- package/dist/components/core/BwgFormItem.d.ts +2 -2
- package/dist/components/core/BwgFormItem.d.ts.map +1 -1
- package/dist/components/core/BwgInput.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -2
- package/dist/components/core/index.js +1218 -23
- package/dist/components/guide/index.cjs +1 -2
- package/dist/components/guide/index.js +3 -4
- package/dist/components/layout/index.cjs +35 -2
- package/dist/components/layout/index.js +350 -10
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +211 -222
- package/dist/provider/index.cjs +1 -2
- package/dist/provider/index.js +384 -25
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +1394 -24
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.js +1369 -200
- package/package.json +2 -3
- package/dist/chunks/AuthContext-CXng9fj0.cjs +0 -2
- package/dist/chunks/AuthContext-CXng9fj0.cjs.map +0 -1
- package/dist/chunks/AuthContext-DrEpBrpB.js +0 -57
- package/dist/chunks/AuthContext-DrEpBrpB.js.map +0 -1
- package/dist/chunks/BwgSpace-CnLM4qcg.js +0 -27
- package/dist/chunks/BwgSpace-CnLM4qcg.js.map +0 -1
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs +0 -2
- package/dist/chunks/BwgSpace-b0hmM1Ht.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs +0 -2
- package/dist/chunks/BwgSwitch-DOlc57wi.cjs.map +0 -1
- package/dist/chunks/BwgSwitch-D_scwi9_.js +0 -269
- package/dist/chunks/BwgSwitch-D_scwi9_.js.map +0 -1
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs +0 -3
- package/dist/chunks/BwgUploader-CkXwkcUL.cjs.map +0 -1
- package/dist/chunks/BwgUploader-DBFF9BPF.js +0 -3250
- package/dist/chunks/BwgUploader-DBFF9BPF.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js +0 -19
- package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +0 -1
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +0 -2
- package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +0 -1
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs +0 -237
- package/dist/chunks/SSOHandler-BY6LXMLc.cjs.map +0 -1
- package/dist/chunks/SSOHandler-CxvxEBaH.js +0 -28654
- package/dist/chunks/SSOHandler-CxvxEBaH.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js +0 -154
- package/dist/chunks/ScreenProtectContext-3my4PHFa.js.map +0 -1
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs +0 -2
- package/dist/chunks/ScreenProtectContext-CVuXrJm6.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs +0 -2
- package/dist/chunks/SearchBoxContext-DwFDOyYG.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js +0 -86
- package/dist/chunks/SearchBoxContext-gWM7FHIw.js.map +0 -1
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs +0 -36
- package/dist/chunks/ViewContainer-Bhq22_B3.cjs.map +0 -1
- package/dist/chunks/ViewContainer-D9SKBnrn.js +0 -338
- package/dist/chunks/ViewContainer-D9SKBnrn.js.map +0 -1
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs +0 -3
- package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +0 -1
- package/dist/chunks/apiUtils-DSwE62oG.js +0 -1450
- package/dist/chunks/apiUtils-DSwE62oG.js.map +0 -1
- package/dist/chunks/codeStore-il4-kZPe.cjs +0 -2
- package/dist/chunks/codeStore-il4-kZPe.cjs.map +0 -1
- package/dist/chunks/codeStore-vPj4Y0TK.js +0 -450
- package/dist/chunks/codeStore-vPj4Y0TK.js.map +0 -1
- package/dist/chunks/core-BHejg5iS.cjs +0 -2
- package/dist/chunks/core-BHejg5iS.cjs.map +0 -1
- package/dist/chunks/core-Dl0PdDdT.js.map +0 -1
- package/dist/chunks/enc-base64-BkBtNBQV.cjs +0 -2
- package/dist/chunks/enc-base64-BkBtNBQV.cjs.map +0 -1
- package/dist/chunks/enc-base64-D7t4BoUA.js.map +0 -1
- package/dist/chunks/favoriteStore-Bh1FuZm9.js +0 -439
- package/dist/chunks/favoriteStore-Bh1FuZm9.js.map +0 -1
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs +0 -2
- package/dist/chunks/favoriteStore-CcKg_nEH.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs +0 -31
- package/dist/chunks/jsx-runtime-CeSfJrVB.cjs.map +0 -1
- package/dist/chunks/jsx-runtime-Dpn_P65e.js +0 -634
- package/dist/chunks/jsx-runtime-Dpn_P65e.js.map +0 -1
- package/dist/chunks/popupStore-BRRmB4zH.js +0 -92
- package/dist/chunks/popupStore-BRRmB4zH.js.map +0 -1
- package/dist/chunks/popupStore-DUApUBF2.cjs +0 -2
- package/dist/chunks/popupStore-DUApUBF2.cjs.map +0 -1
- package/dist/chunks/realFormat-Cha7OTd9.cjs +0 -2
- package/dist/chunks/realFormat-Cha7OTd9.cjs.map +0 -1
- package/dist/chunks/realFormat-DRGLFabQ.js +0 -305
- package/dist/chunks/realFormat-DRGLFabQ.js.map +0 -1
- package/dist/chunks/sha256-C2-s1oZe.js.map +0 -1
- package/dist/chunks/sha256-DiIRoCQ8.cjs +0 -2
- package/dist/chunks/sha256-DiIRoCQ8.cjs.map +0 -1
- package/dist/chunks/usePopup-D2JEuDrO.cjs +0 -2
- package/dist/chunks/usePopup-D2JEuDrO.cjs.map +0 -1
- package/dist/chunks/usePopup-DarKTbRC.js +0 -109
- package/dist/chunks/usePopup-DarKTbRC.js.map +0 -1
- package/dist/components/common/index.cjs.map +0 -1
- package/dist/components/common/index.js.map +0 -1
- package/dist/components/core/index.cjs.map +0 -1
- package/dist/components/core/index.js.map +0 -1
- package/dist/components/guide/index.cjs.map +0 -1
- package/dist/components/guide/index.js.map +0 -1
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/provider/index.cjs.map +0 -1
- package/dist/provider/index.js.map +0 -1
- package/dist/stores/index.cjs.map +0 -1
- package/dist/stores/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as I, c as B } from "./common-components-CniOkOzu.js";
|
|
2
2
|
function W(y) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + y + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -511,4 +511,3 @@ function A() {
|
|
|
511
511
|
export {
|
|
512
512
|
A as r
|
|
513
513
|
};
|
|
514
|
-
//# sourceMappingURL=core-Dl0PdDdT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./common-components-DrcQahsO.cjs");function H(v){throw new Error('Could not dynamically require "'+v+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var y={exports:{}};const I={},W=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),E=p.getAugmentedNamespace(W);var O=y.exports,C;function P(){return C||(C=1,(function(v,T){(function(g,c){v.exports=c()})(O,function(){var g=g||(function(c,S){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof p.commonjsGlobal<"u"&&p.commonjsGlobal.crypto&&(s=p.commonjsGlobal.crypto),!s&&typeof H=="function")try{s=E}catch{}var R=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},z=Object.create||(function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}})(),l={},d=l.lib={},f=d.Base=(function(){return{extend:function(t){var r=z(this);return t&&r.mixIn(t),(!r.hasOwnProperty("init")||this.init===r.init)&&(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),u=d.WordArray=f.extend({init:function(t,r){t=this.words=t||[],r!=S?this.sigBytes=r:this.sigBytes=t.length*4},toString:function(t){return(t||q).stringify(this)},concat:function(t){var r=this.words,e=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var w=e[o>>>2]>>>24-o%4*8&255;r[n+o>>>2]|=w<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)r[n+a>>>2]=e[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=c.ceil(r/4)},clone:function(){var t=f.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(R());return new u.init(r,t)}}),m=l.enc={},q=m.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((o&15).toString(16))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n+=2)e[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new u.init(e,r/2)}},_=m.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n++)e[n>>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new u.init(e,r)}},k=m.Utf8={stringify:function(t){try{return decodeURIComponent(escape(_.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return _.parse(unescape(encodeURIComponent(t)))}},x=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=k.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var r,e=this._data,n=e.words,i=e.sigBytes,o=this.blockSize,w=o*4,a=i/w;t?a=c.ceil(a):a=c.max((a|0)-this._minBufferSize,0);var h=a*o,b=c.min(h*4,i);if(h){for(var B=0;B<h;B+=o)this._doProcessBlock(n,B);r=n.splice(0,h),e.sigBytes-=b}return new u.init(r,b)},clone:function(){var t=f.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});d.Hasher=x.extend({cfg:f.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){x.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var r=this._doFinalize();return r},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new j.HMAC.init(t,e).finalize(r)}}});var j=l.algo={};return l})(Math);return g})})(y)),y.exports}exports.requireCore=P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as b } from "./core-
|
|
1
|
+
import { g as A } from "./common-components-CniOkOzu.js";
|
|
2
|
+
import { r as b } from "./core-CEDyqniq.js";
|
|
3
3
|
function O(p, g) {
|
|
4
4
|
for (var f = 0; f < g.length; f++) {
|
|
5
5
|
const a = g[f];
|
|
@@ -20,7 +20,7 @@ var h = { exports: {} }, E = h.exports, x;
|
|
|
20
20
|
function q() {
|
|
21
21
|
return x || (x = 1, (function(p, g) {
|
|
22
22
|
(function(f, a) {
|
|
23
|
-
p.exports = a(b());
|
|
23
|
+
p.exports = a(/* @__PURE__ */ b());
|
|
24
24
|
})(E, function(f) {
|
|
25
25
|
return (function() {
|
|
26
26
|
var a = f, c = a.lib, i = c.WordArray, _ = a.enc;
|
|
@@ -91,7 +91,7 @@ function q() {
|
|
|
91
91
|
});
|
|
92
92
|
})(h)), h.exports;
|
|
93
93
|
}
|
|
94
|
-
var B = q();
|
|
94
|
+
var B = /* @__PURE__ */ q();
|
|
95
95
|
const w = /* @__PURE__ */ A(B), D = /* @__PURE__ */ O({
|
|
96
96
|
__proto__: null,
|
|
97
97
|
default: w
|
|
@@ -99,4 +99,3 @@ const w = /* @__PURE__ */ A(B), D = /* @__PURE__ */ O({
|
|
|
99
99
|
export {
|
|
100
100
|
D as e
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=enc-base64-D7t4BoUA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const A=require("./common-components-DrcQahsO.cjs"),b=require("./core-lmAmbqvY.cjs");function O(u,g){for(var c=0;c<g.length;c++){const a=g[c];if(typeof a!="string"&&!Array.isArray(a)){for(const f in a)if(f!=="default"&&!(f in u)){const i=Object.getOwnPropertyDescriptor(a,f);i&&Object.defineProperty(u,f,i.get?i:{enumerable:!0,get:()=>a[f]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}},q=h.exports,B;function E(){return B||(B=1,(function(u,g){(function(c,a){u.exports=a(b.requireCore())})(q,function(c){return(function(){var a=c,f=a.lib,i=f.WordArray,C=a.enc;C.Base64={stringify:function(t){var s=t.words,o=t.sigBytes,n=this._map;t.clamp();for(var e=[],r=0;r<o;r+=3)for(var v=s[r>>>2]>>>24-r%4*8&255,l=s[r+1>>>2]>>>24-(r+1)%4*8&255,d=s[r+2>>>2]>>>24-(r+2)%4*8&255,y=v<<16|l<<8|d,p=0;p<4&&r+p*.75<o;p++)e.push(n.charAt(y>>>6*(3-p)&63));var m=n.charAt(64);if(m)for(;e.length%4;)e.push(m);return e.join("")},parse:function(t){var s=t.length,o=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<o.length;e++)n[o.charCodeAt(e)]=e}var r=o.charAt(64);if(r){var v=t.indexOf(r);v!==-1&&(s=v)}return _(t,s,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function _(t,s,o){for(var n=[],e=0,r=0;r<s;r++)if(r%4){var v=o[t.charCodeAt(r-1)]<<r%4*2,l=o[t.charCodeAt(r)]>>>6-r%4*2,d=v|l;n[e>>>2]|=d<<24-e%4*8,e++}return i.create(n,e)}})(),c.enc.Base64})})(h)),h.exports}var x=E();const w=A.getDefaultExportFromCjs(x),M=O({__proto__:null,default:w},[x]);exports.encBase64=M;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as R } from "./core-
|
|
3
|
-
function T(p,
|
|
4
|
-
for (var c = 0; c <
|
|
5
|
-
const t =
|
|
1
|
+
import { g as N } from "./common-components-CniOkOzu.js";
|
|
2
|
+
import { r as R } from "./core-CEDyqniq.js";
|
|
3
|
+
function T(p, A) {
|
|
4
|
+
for (var c = 0; c < A.length; c++) {
|
|
5
|
+
const t = A[c];
|
|
6
6
|
if (typeof t != "string" && !Array.isArray(t)) {
|
|
7
7
|
for (const n in t)
|
|
8
8
|
if (n !== "default" && !(n in p)) {
|
|
@@ -16,11 +16,11 @@ function T(p, g) {
|
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(p, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
var
|
|
19
|
+
var g = { exports: {} }, K = g.exports, q;
|
|
20
20
|
function L() {
|
|
21
|
-
return q || (q = 1, (function(p,
|
|
21
|
+
return q || (q = 1, (function(p, A) {
|
|
22
22
|
(function(c, t) {
|
|
23
|
-
p.exports = t(R());
|
|
23
|
+
p.exports = t(/* @__PURE__ */ R());
|
|
24
24
|
})(K, function(c) {
|
|
25
25
|
return (function(t) {
|
|
26
26
|
var n = c, h = n.lib, O = h.WordArray, H = h.Hasher, C = n.algo, w = [], B = [];
|
|
@@ -66,14 +66,13 @@ function L() {
|
|
|
66
66
|
n.SHA256 = H._createHelper(P), n.HmacSHA256 = H._createHmacHelper(P);
|
|
67
67
|
})(Math), c.SHA256;
|
|
68
68
|
});
|
|
69
|
-
})(
|
|
69
|
+
})(g)), g.exports;
|
|
70
70
|
}
|
|
71
|
-
var x = L();
|
|
72
|
-
const
|
|
71
|
+
var x = /* @__PURE__ */ L();
|
|
72
|
+
const G = /* @__PURE__ */ N(x), U = /* @__PURE__ */ T({
|
|
73
73
|
__proto__: null,
|
|
74
|
-
default:
|
|
74
|
+
default: G
|
|
75
75
|
}, [x]);
|
|
76
76
|
export {
|
|
77
77
|
U as s
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=sha256-C2-s1oZe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const N=require("./common-components-DrcQahsO.cjs"),R=require("./core-lmAmbqvY.cjs");function T(d,g){for(var c=0;c<g.length;c++){const t=g[c];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in d)){const h=Object.getOwnPropertyDescriptor(t,n);h&&Object.defineProperty(d,n,h.get?h:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}},K=A.exports,j;function L(){return j||(j=1,(function(d,g){(function(c,t){d.exports=t(R.requireCore())})(K,function(c){return(function(t){var n=c,h=n.lib,O=h.WordArray,H=h.Hasher,x=n.algo,q=[],w=[];(function(){function i(o){for(var f=t.sqrt(o),l=2;l<=f;l++)if(!(o%l))return!1;return!0}function v(o){return(o-(o|0))*4294967296|0}for(var r=2,e=0;e<64;)i(r)&&(e<8&&(q[e]=v(t.pow(r,1/2))),w[e]=v(t.pow(r,1/3)),e++),r++})();var u=[],B=x.SHA256=H.extend({_doReset:function(){this._hash=new O.init(q.slice(0))},_doProcessBlock:function(i,v){for(var r=this._hash.words,e=r[0],o=r[1],f=r[2],l=r[3],s=r[4],y=r[5],b=r[6],S=r[7],a=0;a<64;a++){if(a<16)u[a]=i[v+a]|0;else{var p=u[a-15],W=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,_=u[a-2],D=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;u[a]=W+u[a-7]+D+u[a-16]}var F=s&y^~s&b,$=e&o^e&f^o&f,k=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),z=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),P=S+z+F+w[a]+u[a],E=k+$;S=b,b=y,y=s,s=l+P|0,l=f,f=o,o=e,e=P+E|0}r[0]=r[0]+e|0,r[1]=r[1]+o|0,r[2]=r[2]+f|0,r[3]=r[3]+l|0,r[4]=r[4]+s|0,r[5]=r[5]+y|0,r[6]=r[6]+b|0,r[7]=r[7]+S|0},_doFinalize:function(){var i=this._data,v=i.words,r=this._nDataBytes*8,e=i.sigBytes*8;return v[e>>>5]|=128<<24-e%32,v[(e+64>>>9<<4)+14]=t.floor(r/4294967296),v[(e+64>>>9<<4)+15]=r,i.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var i=H.clone.call(this);return i._hash=this._hash.clone(),i}});n.SHA256=H._createHelper(B),n.HmacSHA256=H._createHmacHelper(B)})(Math),c.SHA256})})(A)),A.exports}var C=L();const G=N.getDefaultExportFromCjs(C),I=T({__proto__:null,default:G},[C]);exports.sha256=I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgPagination.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgPagination.tsx"],"names":[],"mappings":"AASA,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,
|
|
1
|
+
{"version":3,"file":"BwgPagination.d.ts","sourceRoot":"","sources":["../../../src/components/common/BwgPagination.tsx"],"names":[],"mappings":"AASA,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,iHA6UlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/common-components-DrcQahsO.cjs"),o=require("../../utils/index.cjs");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=e.createBwgGridRenderer;exports.realFormat=o.realFormat;
|
|
@@ -7,6 +7,7 @@ export { default as BwgDrawer } from './BwgDrawer';
|
|
|
7
7
|
export { default as BwgEditor } from './BwgEditor';
|
|
8
8
|
export { default as BwgGrid } from './BwgGrid';
|
|
9
9
|
export { default as BwgInfoArea } from './BwgInfoArea';
|
|
10
|
+
export { default as BwgPagination } from './BwgPagination';
|
|
10
11
|
export { default as BwgPopup } from './BwgPopup';
|
|
11
12
|
export { default as BwgRow } from './BwgRow';
|
|
12
13
|
export { default as BwgSpace } from './BwgSpace';
|
|
@@ -20,8 +21,9 @@ export { default as GlobalConfigProvider } from './GlobalConfigProvider';
|
|
|
20
21
|
export { default as QuickServiceToggle } from './QuickServiceToggle';
|
|
21
22
|
export { default as SearchBox } from './SearchBox';
|
|
22
23
|
export { default as SSOHandler } from './SSOHandler';
|
|
23
|
-
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, BwgGridRenderType } from './BwgGrid';
|
|
24
|
+
export type { BwgGridColHeaderProps, BwgGridColProps, BwgGridEventList, BwgGridOptions, BwgGridProps, BwgGridRef, BwgGridRenderType, } from './BwgGrid';
|
|
24
25
|
export { createBwgGridRenderer } from './BwgGrid';
|
|
26
|
+
export type { BwgPaginationProps, BwgPaginationRef } from './BwgPagination';
|
|
25
27
|
export { default as realFormat } from '../../utils/realFormat';
|
|
26
28
|
export type { ButtonEvent, ButtonPermissionResponse, BwgButtonGroupProps } from './BwgButtonGroup';
|
|
27
29
|
export type { BwgCmptAreaProps } from './BwgCmptArea';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/index.ts"],"names":[],"mappings":"AACA,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,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,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,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGrD,YAAY,EACV,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/index.ts"],"names":[],"mappings":"AACA,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;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,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,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGrD,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,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,EAAE,mBAAmB,EAC9C,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,EAAE,uBAAuB,EAC1C,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as k } from "../../chunks/realFormat-DRGLFabQ.js";
|
|
1
|
+
import { b as s, d as o, e as r, f as g, h as B, i as w, j as t, k as i, l as n, m as l, n as d, o as p, B as C, p as f, q as u, r as S, s as c, C as m, t as x, G, Q as b, u as v, S as P, v as T } from "../../chunks/common-components-CniOkOzu.js";
|
|
2
|
+
import { realFormat as k } from "../../utils/index.js";
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
s as BwgButtonGroup,
|
|
6
5
|
o as BwgCmptArea,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
r as BwgCol,
|
|
7
|
+
g as BwgConfigProvider,
|
|
8
|
+
B as BwgDetail,
|
|
10
9
|
w as BwgDrawer,
|
|
11
10
|
t as BwgEditor,
|
|
12
11
|
i as BwgGrid,
|
|
13
12
|
n as BwgInfoArea,
|
|
14
|
-
l as
|
|
13
|
+
l as BwgPagination,
|
|
14
|
+
d as BwgPopup,
|
|
15
15
|
p as BwgRow,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
C as BwgSpace,
|
|
17
|
+
f as BwgTable,
|
|
18
|
+
u as BwgTabs,
|
|
19
|
+
S as BwgTitleBox,
|
|
20
20
|
c as BwgView,
|
|
21
21
|
m as ContentBox,
|
|
22
22
|
x as ContentLayOut,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
G as GlobalConfigProvider,
|
|
24
|
+
b as QuickServiceToggle,
|
|
25
|
+
v as SSOHandler,
|
|
26
|
+
P as SearchBox,
|
|
27
27
|
T as createBwgGridRenderer,
|
|
28
28
|
k as realFormat
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormItemProps } from 'antd';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
export interface BwgFormItemProps extends FormItemProps {
|
|
4
4
|
/** 폼 아이템 이름 */
|
|
5
5
|
name?: string | string[];
|
|
@@ -13,6 +13,6 @@ export interface BwgFormItemProps extends FormItemProps {
|
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
15
|
/** 입력 폼 아이템 컴포넌트 */
|
|
16
|
-
declare const BwgFormItem:
|
|
16
|
+
declare const BwgFormItem: import('react').MemoExoticComponent<({ children, label, name, rules, initialValue, style, ...rest }: BwgFormItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
17
17
|
export default BwgFormItem;
|
|
18
18
|
//# sourceMappingURL=BwgFormItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgFormItem.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgFormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"BwgFormItem.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgFormItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAExC,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,eAAe;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,gBAAgB;IAChB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,oBAAoB;AACpB,QAAA,MAAM,WAAW,uGASZ,gBAAgB,6CAwCpB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BwgInput.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgInput.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"BwgInput.d.ts","sourceRoot":"","sources":["../../../src/components/core/BwgInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAS,UAAU,EAAE,MAAM,MAAM,CAAC;AACzC,OAAoB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAM/B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/BwgUploader-CkXwkcUL.cjs"),g=require("../../chunks/BwgSwitch-DOlc57wi.cjs");exports.BwgButton=e.BwgButton;exports.BwgCheckList=e.BwgCheckList;exports.BwgDownload=e.BwgDownload;exports.BwgLargeUploader=e.BwgLargeUploader;exports.BwgMaskedInput=e.BwgMaskedInput;exports.BwgMaskedPicker=e.BwgMaskedPicker;exports.BwgMultiSelect=e.BwgMultiSelect;exports.BwgNumber=e.BwgNumber;exports.BwgRadio=e.BwgRadio;exports.BwgSearch=e.BwgSearch;exports.BwgTextArea=e.BwgTextArea;exports.BwgUploader=e.BwgUploader;exports.BwgCheck=g.BwgCheck;exports.BwgDatePicker=g.BwgDatePicker;exports.BwgForm=g.BwgForm;exports.BwgFormItem=g.BwgFormItem;exports.BwgInput=g.BwgInput;exports.BwgRangePicker=g.BwgRangePicker;exports.BwgSelect=g.BwgSelect;exports.BwgSwitch=g.BwgSwitch;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("antd"),g=require("react"),N=require("dayjs"),E=require("@ant-design/icons"),O=require("lodash"),_=require("../../utils/index.cjs"),G=require("jszip"),K=require("imask"),J=require("../../stores/index.cjs"),z=require("react-dnd"),W=require("react-dnd-html5-backend"),X=t=>r.jsx(n.Button,{...t,className:"bwg-btn"}),B=g.memo(({children:t,label:e,name:l,rules:i,initialValue:o,style:s,...u})=>{const a={fontWeight:"bold"},m=Array.isArray(i)&&i.some(S=>S.required===!0),c=()=>typeof e=="string"?r.jsxs("span",{style:a,children:[e,m&&r.jsx("span",{style:{color:"#ff4d4f",marginLeft:"4px"},children:"*"})]}):r.jsx("span",{style:a,children:e});return r.jsx(n.Form.Item,{className:"bwg-form-item",label:e?c():void 0,labelAlign:"left",name:l,rules:i,colon:!1,initialValue:o,style:s,...u,children:t})}),Z=({itemProps:t,inputProps:e={format:"YN"}})=>{const l=n.Form.useFormInstance(),i=o=>{e.format==="boolean"?l.setFieldValue(t?.name,o.target.checked):l.setFieldValue(t?.name,o.target.checked?"Y":"N"),e.onChange&&e.onChange(o)};return r.jsx(B,{...t,getValueProps:o=>({checked:e.format==="boolean"?!!o:o==="Y"}),normalize:o=>typeof o=="boolean"?e.format==="boolean"?o:o?"Y":"N":e.format==="boolean"?!!o:o?"Y":"N",children:r.jsx(n.Checkbox,{...e,onChange:i,children:e?.title})})},Q=({itemProps:t,inputProps:e})=>{const l=n.Form.useFormInstance(),[i,o]=g.useState(t?.initialValue??[]),[s,u]=g.useState([]),a=s.length>0&&s.length==i?.length,m=i?.length>0&&i.length<s.length;g.useEffect(()=>{u(c(e?.options))},[e?.options]),g.useEffect(()=>{o(i)},[i]);const c=y=>{const I=[];return(y||[]).map((D,k)=>{I.push(D.value)}),I},S=y=>{o(y.target.checked?s:[]),l.setFieldValue(t?.name,y.target.checked?s:[])},j=y=>{o(y),l.setFieldValue(t?.name,y),e?.onChange&&typeof e?.onChange=="function"&&e?.onChange(y)};return r.jsx(B,{...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:m,checked:a,onChange:S,children:"전체선택"}),r.jsx(n.Checkbox.Group,{options:e?.options,value:i,onChange:j})]})})},A={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"}},ee=({itemProps:t,inputProps:e,type:l="date",returnType:i="string"})=>{const{displayFormat:o,outputFormat:s}=g.useMemo(()=>A[l],[l]),u=g.useMemo(()=>Object.values(A).map(a=>a.outputFormat).sort((a,m)=>{if(a.length===m.length){if(a===s)return-1;if(m===s)return 1}return m.length-a.length}),[s]);return r.jsx(B,{...t,getValueProps:a=>({value:a?N.isDayjs(a)?a:N(a,u):null}),normalize:a=>a?i==="dayjs"?a:a.format(s):null,children:r.jsx(n.DatePicker,{...e,picker:l==="datetime"?"date":l,showTime:e?.showTime??(l==="datetime"||l==="time"),format:o})})},te=({fileGrpKey:t,onFetchFilesTrxCd:e="SCMFILE00101",readOnly:l=!1,sysCd:i=__SYS_CD__})=>{const[o,s]=g.useState([]);g.useEffect(()=>{t&&e?i!=__SYS_CD__?_.callService_SYSCD(i,e,{crprCd:_.getUserInfo()?.crprCd,sysCd:i,fileGrpKey:t}).then(a=>{if(a?.sub){const m=a.sub.map(c=>({uid:c.fileKey,name:c.lgclFileNm,filePath:c.filePath}));s(m)}}).catch(a=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",a),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")}):_.callService(e,{crprCd:_.getUserInfo()?.crprCd,sysCd:i,fileGrpKey:t}).then(a=>{if(a?.sub){const m=a.sub.map(c=>({uid:c.fileKey,name:c.lgclFileNm,filePath:c.filePath}));s(m)}}).catch(a=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",a),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")}):s([])},[t,e]);const u=async a=>{try{let m;i!=__SYS_CD__?m="/api/download/"+i:m="/api/download";const c=await fetch(m,{method:"POST",headers:{SYSCD:__SYS_CD__,"Content-Type":"application/json"},body:JSON.stringify({filePath:a.filePath,logicalName:a.name,fileKey:a.uid})});if(!c.ok){const D=(await c.json().catch(()=>null))?.message||"파일 다운로드에 실패했습니다.";throw new Error(D)}const S=await c.blob(),j=window.URL.createObjectURL(S),y=document.createElement("a");y.href=j,y.setAttribute("download",a.name),document.body.appendChild(y),y.click(),document.body.removeChild(y),window.URL.revokeObjectURL(j)}catch(m){console.error(m),n.message.error(m.message||"파일을 다운로드하는 중 오류가 발생했습니다.")}};return O.isEmpty(o)?null:r.jsx(n.Card,{title:"파일 목록",children:r.jsx(n.List,{dataSource:o,renderItem:a=>r.jsx(n.List.Item,{actions:l?[]:[r.jsx(n.Button,{type:"text",icon:r.jsx(E.DownloadOutlined,{}),onClick:()=>u(a)},"download")],children:r.jsx(n.List.Item.Meta,{avatar:r.jsx(E.PaperClipOutlined,{}),title:a.name})})})})},P=g.forwardRef(({children:t,labelCol:e,style:l,className:i,...o},s)=>r.jsx(n.ConfigProvider,{form:{validateMessages:{required:"'${label}을(를) 입력해주세요.'"}},children:r.jsx(n.Form,{ref:s,...o,requiredMark:!1,labelCol:e||{flex:"100px"},style:{padding:"10px",...l},className:`bwg-form ${i??""}`,children:t})}));P.displayName="BwgForm";const re=({itemProps:t,inputProps:e})=>r.jsx(B,{...t,children:r.jsx(n.Input,{...e})}),{Text:T}=n.Typography,{Dragger:ne}=n.Upload,oe=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],se=(t,e=2)=>{if(t===0)return"0 Bytes";const l=1024,i=e<0?0:e,o=["Bytes","KB","MB","GB","TB"],s=Math.floor(Math.log(t)/Math.log(l));return parseFloat((t/Math.pow(l,s)).toFixed(i))+" "+o[s]},ae=({title:t="첨부파일",fileGrpKey:e,onUploadComplete:l,onSuccessTrxCd:i="SCMFILE00102",anotherServiceTrxCd:o="SCMFILE00105",allowedExtensions:s=oe,maxFileSize:u=2048})=>{const[a,m]=g.useState([]),[c,S]=g.useState(!1),[j,y]=g.useState(!1),[I,D]=g.useState(0),k=f=>{if(s&&s.length>0){const d=(x=>{const p=x.lastIndexOf(".");return p===-1?"":x.substring(p).toLowerCase()})(f.name);if(!s.includes(d))return n.message.error(`${f.name} 파일은 허용되지 않는 확장자입니다. (${s.join(", ")}만 가능)`),!1}return!0},v=async()=>{const f=a.filter(h=>h.status!=="done"),L=f.reduce((h,w)=>h+(w.size||0),0),d=2*1024*1024*1024;if(L>d){n.notification.error({message:"업로드 용량 초과",description:"한 번에 업로드할 수 있는 총 파일 용량은 2GB를 초과할 수 없습니다."});return}if(f.length===0){n.message.warning("업로드할 파일이 없거나 모든 파일이 이미 업로드되었습니다.");return}y(!0);let x;try{const h=new G;f.forEach(w=>{w.originFileObj&&h.file(w.name,w.originFileObj)}),x=await h.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:9}})}catch(h){y(!1),n.message.error("파일을 압축하는 중 오류가 발생했습니다."),console.error("Zipping error:",h);return}y(!1);const p=new FormData;p.append("file",x,"upload.zip"),S(!0),D(0);try{const h=await new Promise((Y,b)=>{const M=new XMLHttpRequest;M.open("POST","/api/upload-large",!0),M.upload.onprogress=C=>{if(C.lengthComputable){const U=Math.round(C.loaded/C.total*100);D(U)}},M.onload=()=>{if(M.status>=200&&M.status<300)try{const C=JSON.parse(M.responseText);C.success?Y(C):b(new Error(C.message||"파일 업로드에 실패했습니다."))}catch{b(new Error("잘못된 서버 응답입니다."))}else try{const C=JSON.parse(M.responseText);b(new Error(C.message||`서버 오류: ${M.status}`))}catch{b(new Error(`서버 오류: ${M.status}`))}},M.onerror=()=>{b(new Error("네트워크 오류가 발생했습니다."))},M.send(p)});n.message.success(h.message||"압축 파일이 성공적으로 업로드되었습니다.");const w=a.map(Y=>f.find(b=>b.uid===Y.uid)?{...Y,status:"done"}:Y);if(m(w),i&&h.uploadedFiles&&Array.isArray(h.uploadedFiles)){const Y=_.getUserInfo();h.uploadedFiles.forEach(b=>{const M={crprCd:Y?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,sub:[{crprCd:Y?.crprCd,sysCd:__SYS_CD__,fileGrpKey:e,physFileNm:b.fileNameP,lgclFileNm:b.fileNameL,filePath:b.filePath,fileExtn:b.fileExt,fileSize:b.fileSize,mltpYn:"Y"}]};_.callService(i,M).then(C=>{const U=a.map(R=>({crprCd:Y?.crprCd,sysCd:__SYS_CD__,fileGrpKey:C.sub[0].fileGrpKey,fileKey:C.sub[0].fileKey,lgclFileNm:R.name,fileSize:R.size,fileExtn:R.name.split(".").pop(),fileType:R.type}));_.callService(o,{sub:U})}).catch(C=>{console.error("후처리 서비스 호출 실패:",C),n.message.error(`${b.fileNameL} 파일의 후처리 작업에 실패했습니다.`)}),l&&l({fileNameP:b.fileNameP,fileNameL:b.fileNameL})})}}catch(h){n.message.error(h.message||"파일 업로드 중 오류가 발생했습니다.");const w=a.map(Y=>f.find(b=>b.uid===Y.uid)?{...Y,status:"error",response:h.message||"파일 업로드 중 오류가 발생했습니다."}:Y);m(w)}finally{S(!1)}},F={multiple:!0,fileList:a,beforeUpload:f=>k(f)?u&&f.size>=u*1024*1024?(n.message.error(`대용량 첨부 파일 최대 크기는 ${(u/1024).toFixed(1)}GB입니다.`),n.Upload.LIST_IGNORE):!1:n.Upload.LIST_IGNORE,onChange:({fileList:f})=>{const L=new Map(a.map(d=>[d.uid,d]));f.forEach(d=>{L.set(d.uid,d)}),m(Array.from(L.values()))},onRemove:f=>{const L=a.filter(d=>d.uid!==f.uid);m(L)},showUploadList:!1};return r.jsx(n.Spin,{spinning:c||j,tip:j?"파일 압축 중...":`파일 업로드 중... ${I}%`,children:r.jsxs("div",{className:"bwg-large-uploader-container",children:[r.jsx(n.Card,{title:r.jsx(T,{strong:!0,children:t}),extra:r.jsx(n.Upload,{...F,children:r.jsx(n.Button,{icon:r.jsx(E.UploadOutlined,{}),children:"파일 선택"})}),bodyStyle:{padding:0},children:r.jsx(ne,{...F,style:{border:"none",background:"transparent",padding:0},children:r.jsx("div",{className:"upload-list-container",children:a.length>0?r.jsx(n.List,{style:{textAlign:"left"},dataSource:a,renderItem:f=>{const L=f.status==="done",d=f.status==="error";let x;return L?x=r.jsx(E.CheckCircleOutlined,{style:{color:"#52c41a",fontSize:14}}):d?x=r.jsx(n.Tooltip,{title:typeof f.response=="string"?f.response:"업로드 실패",children:r.jsx(E.CloseCircleOutlined,{style:{color:"#ff4d4f",fontSize:14}})}):x=r.jsx(E.FileTextOutlined,{style:{fontSize:14}}),r.jsx(n.List.Item,{actions:[r.jsx(T,{type:"secondary",children:se(f.size||0)},"size"),r.jsx(n.Button,{type:"text",icon:r.jsx(E.DeleteOutlined,{}),onClick:p=>{p.stopPropagation(),F.onRemove?.(f)},disabled:c||j},"delete")],children:r.jsx(n.List.Item.Meta,{avatar:x,title:r.jsx(T,{type:d?"danger":void 0,children:f.name})})},f.uid)}}):r.jsxs(n.Flex,{gap:"middle",align:"center",justify:"center",vertical:!0,style:{padding:"20px 0",minHeight:"120px"},children:[r.jsx(E.InboxOutlined,{style:{fontSize:"32px",color:"#999"}}),r.jsx(T,{type:"secondary",children:"업로드할 파일을 선택하거나 이 영역으로 드래그하세요."})]})})})}),a.length>0&&r.jsxs(n.Flex,{justify:"flex-end",align:"center",gap:"large",style:{marginTop:16},children:[c&&r.jsx("div",{style:{width:"250px"},children:r.jsx(n.Progress,{percent:I,size:"small"})}),r.jsx(n.Button,{type:"primary",onClick:v,disabled:c||j||a.filter(f=>f.status!=="done").length===0,icon:r.jsx(E.CloudUploadOutlined,{}),children:"일괄 업로드"})]})]})})},ie=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(i=>{const s=l?.[i]?.maxLength??3;return"_".repeat(s)}).join(".")}return""},le=({itemProps:t,inputProps:e,mask:l})=>{const i=g.useRef(null),o=n.Form.useFormInstance(),s=g.useMemo(()=>ie(l),[l]);return g.useEffect(()=>{if(!i.current?.input)return;const u=typeof l=="string"||Array.isArray(l)?{mask:l}:l,a=K(i.current.input,u);return a.on("accept",()=>{o&&t?.name&&o.setFieldValue(t.name,a.value)}),()=>{a.destroy()}},[l,o,t?.name]),r.jsx(B,{...t,children:r.jsx(n.Input,{...e,ref:i,placeholder:s})})},ce=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"}}},de=({type:t="date",itemProps:e={name:"calendar"},inputProps:l})=>{const{format:i,mask:o,outputFormat:s}=ce(t),u=g.useRef(null),a=g.useRef(null),m=n.Form.useFormInstance(),[c,S]=g.useState(!1),[j,y]=g.useState(!1),I=e?.name,[D,k]=g.useState(null);g.useEffect(()=>{if(!u.current?.input)return;const F=K(u.current.input,{mask:o,lazy:!1});return a.current=F,F.on("accept",()=>{console.log("input :: ",F.value);const f=F.value,L=N(f,i,!0);console.log("input :: ",L),f.length===i.length&&L.isValid()&&(console.log("parsed :: ",L.format(s)),m.setFieldValue(I,L.format(s)),a.current?.updateValue(),S(!1))}),()=>{F.destroy()}},[i,o]),g.useEffect(()=>{k(N(m.getFieldValue(I)))},[m.getFieldValue(I)]);const v=F=>{if(!F){a.current?.updateValue();return}const f=F.format(s);console.log("formatted :: ",f),a.current&&(a.current.value=f,a.current.updateValue()),y(!1)};return r.jsx(B,{...e,name:void 0,validateStatus:j?"warning":void 0,help:j?"유효하지 않은 날짜입니다":void 0,children:r.jsxs("div",{style:{position:"relative"},children:[r.jsx(n.Form.Item,{name:I,getValueProps:F=>({value:F?N(F).format(i):void 0}),normalize:F=>F?N(F).format(s):void 0,noStyle:!0,children:r.jsx(n.Input,{...l,ref:u,onFocus:()=>{S(!c),a.current?.updateValue()},onKeyDown:F=>{F.key==="Backspace"&&S(!0),F.key==="Tab"&&S(!1)},allowClear:!0,placeholder:o.replace(/0/g,"_"),autoComplete:"off"})}),r.jsx(n.DatePicker,{open:c,picker:t,format:i,value:D,onChange:v,getPopupContainer:F=>F.parentElement,style:{position:"absolute",top:0,left:0,pointerEvents:"none",opacity:0,width:"100%"}})]})})},{Option:V}=n.Select,ue=({itemProps:t,inputProps:e})=>{const[l,i]=g.useState([]);return g.useEffect(()=>{e?.addField==="ALL"?i([{label:"전체",value:""},...e?.list||[]]):e?.addField==="NULL"?i([{label:"",value:""},...e?.list||[]]):i(e?.list||[])},[e?.list]),r.jsx(B,{...t,getValueProps:o=>o?{value:o&&o.indexOf(",")>0?o.split(","):[o]}:{value:[]},normalize:o=>o!=null&&o!=null&&o.length>0?o.toString():"",children:r.jsx(n.Select,{...e,mode:"multiple",children:l.map(o=>{const{value:s,label:u}=o;return e?.printCode?r.jsx(V,{value:s,label:u,children:r.jsx(n.Space,{children:`[${s}] ${u}`})},s):r.jsx(V,{value:s,label:u,children:r.jsx(n.Space,{children:`${u}`})},s)})})})},me=({itemProps:t,inputProps:e})=>{const l=o=>{let s=o.toString().split(".");return e?.decimalPoint!=null&&s[1]!=null&&e?.decimalPoint>0?s[1].length>e?.decimalPoint?s[1]="."+s[1].substring(0,e?.decimalPoint):s[1]="."+s[1]:s[1]="",s[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")+s[1]},i=o=>{let s=o.toString().split(".");return e?.decimalPoint!=null&&s[1]!=null&&e?.decimalPoint>0?s[1].length>e?.decimalPoint?s[1]="."+s[1].substring(0,e?.decimalPoint):s[1]="."+s[1]:s[1]="",s[0].replace(/\$\s?|(,*)/g,"")+s[1]};return r.jsx(B,{...t,children:r.jsx(n.InputNumber,{...e,formatter:o=>l(o),parser:o=>i(o)})})},ge=({itemProps:t,inputProps:e})=>r.jsx(B,{...t,children:r.jsx(n.Radio.Group,{...e})}),{RangePicker:fe}=n.DatePicker,$={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"}},he=({itemProps:t,inputProps:e,type:l="date",minDate:i,maxDate:o,returnType:s="string"})=>{const{displayFormat:u,outputFormat:a}=g.useMemo(()=>$[l],[l]),m=g.useMemo(()=>Object.values($).map(c=>c.outputFormat).sort((c,S)=>{if(c.length===S.length){if(c===a)return-1;if(S===a)return 1}return S.length-c.length}),[a]);return r.jsx(B,{...t,getValueProps:c=>({value:c&&c.length>0?[c[0]?N.isDayjs(c[0])?c[0]:N(c[0],m):null,c[1]?N.isDayjs(c[1])?c[1]:N(c[1],m):null]:null}),normalize:c=>c?s==="dayjs"?[c[0]??void 0,c[1]??void 0]:[c[0]?c[0].format(a):void 0,c[1]?c[1].format(a):void 0]:[void 0,void 0],children:r.jsx(fe,{...e,order:!0,minDate:i?N(i,m):void 0,maxDate:o?N(o,m):void 0,picker:l==="datetime"?"date":l,showTime:e?.showTime??(l==="datetime"||l==="time"),format:u})})},H=n.Input.Search,pe=t=>{const e=n.Form.useFormInstance(),{openPopup:l}=J.usePopupStore(),i=t.itemProps?.name||[],o=t.popupConfig||{callback(u){console.log("callback data :: ",u),i.length>1?(e.setFieldValue(i[0],u.code),e.setFieldValue(i[1],u.name)):e.setFieldValue(i,u.code)}},s={...t,placeholder:typeof t.placeholder=="string"?t.placeholder:t.placeholder?.[0]||"",onChange:u=>{i.length>1&&e.setFieldValue(i[0],""),t.onChange?.(u)},onSearch:u=>{t.popuCd?l(t.popuCd,t.popupParams,o):t.onSearch?.(u)}};return i.length>1?r.jsx(B,{...t.itemProps,name:void 0,children:r.jsxs(n.Space.Compact,{block:!0,children:[r.jsx(n.Form.Item,{name:i[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:i[1],style:{width:"60%",marginBottom:0},children:r.jsx(H,{readOnly:t.readOnly,enterButton:r.jsx(n.Button,{icon:r.jsx(E.SearchOutlined,{}),disabled:t.readOnly}),...s})})]})}):r.jsx(B,{...t.itemProps,children:r.jsx(H,{...s})})},xe=({itemProps:t,selectProps:e={options:[],allowClear:!0}})=>{const l=n.Form.useFormInstance(),i=!!l,o=g.useMemo(()=>e?.addField==="ALL"?[{label:"전체",value:""},...e?.options||[]]:e?.addField==="NULL"?[{label:"",value:""},...e?.options||[]]:e?.options||[],[e.options,e.addField]),s=m=>{e.onChange?.(m)},u={...e,allowClear:e.allowClear??!0,options:o,onChange:s,variant:e.variant},a=r.jsx(n.Select,{...u,disabled:e.disabled});return e.copyable&&!i&&console.warn("BwgSelect: copyable 기능은 Form 컨텍스트 내에서만 사용 가능합니다."),e.copyable?r.jsx(B,{...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:a}),r.jsx(n.Typography.Paragraph,{copyable:{text:i&&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(B,{...t,children:a})},ye=({itemProps:t,inputProps:e={format:"YN"}})=>{const l=n.Form.useFormInstance(),i=(o,s)=>{e.format==="boolean"?l.setFieldValue(t?.name,o):l.setFieldValue(t?.name,o?"Y":"N"),e.onChange&&e.onChange(o,s)};return r.jsx(B,{...t,getValueProps:o=>({checked:e.format==="boolean"?!!o:o==="Y"}),normalize:o=>typeof o=="boolean"?e.format==="boolean"?o:o?"Y":"N":e.format==="boolean"?!!o:o?"Y":"N",children:r.jsx(n.Switch,{...e,onChange:(o,s)=>i(o,s)})})},{TextArea:Fe}=n.Input,Se=({itemProps:t,inputProps:e})=>r.jsx(B,{...t,children:r.jsx(Fe,{...e})}),je=[".pdf",".xlsx",".xls",".docx",".doc",".pptx",".ppt",".hwp",".txt",".csv",".jpg",".jpeg",".png",".gif",".zip"],q={FILE:"file"},Ye=({originNode:t,file:e,fileList:l,moveFile:i,onDrop:o})=>{const s=g.useRef(null),[{handlerId:u},a]=z.useDrop({accept:q.FILE,collect:j=>({handlerId:j.getHandlerId()}),hover(j,y){if(!s.current)return;const I=j.uid,D=e.uid;if(I===D)return;const k=O.findIndex(l,{uid:D}),v=O.findIndex(l,{uid:I});if(v===-1||k===-1)return;const F=s.current.getBoundingClientRect(),f=y.getClientOffset();if(!f)return;const L=(F.bottom-F.top)/2,d=f.y-F.top;v<k&&d<L||v>k&&d>L||i(I,D)},drop(){o()}}),[{isDragging:m},c]=z.useDrag({type:q.FILE,item:()=>({uid:e.uid,index:O.findIndex(l,{uid:e.uid})}),collect:j=>({isDragging:j.isDragging()})}),S=m?0:1;return c(a(s)),r.jsx("div",{ref:s,style:{opacity:S},"data-handler-id":u,children:t})},Ce=({fileGrpKey:t,onUploadComplete:e,onFetchFilesTrxCd:l="SCMFILE00101",onSuccessTrxCd:i="SCMFILE00102",onDeleteFileTrxCd:o="SCMFILE00103",onReorderFilesTrxCd:s="SCMFILE00104",allowedExtensions:u=je,maxFileSize:a=200,showButton:m=!0,multiple:c=!1})=>{const[S,j]=g.useState([]),y=g.useRef(t),I=g.useRef([]),D=()=>{if(I.current.length===0)return;const d=[...I.current];if(I.current=[],i){const x=d.map(p=>({crprCd:_.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:y.current,physFileNm:p.fileNameP,lgclFileNm:p.fileNameL,filePath:p.filePath,fileExtn:p.fileExt,fileSize:p.fileSize,mltpYn:"N"}));_.callService(i,{crprCd:_.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:y.current,sub:x}).then(p=>{if(p?.sub&&p.sub.length>0){const h=p.sub[0].fileGrpKey;y.current||(y.current=h);const w=new Map;p.sub.forEach(Y=>{const b=d.find(M=>M.fileNameL===Y.lgclFileNm);b&&w.set(b.tempId,Y)}),j(Y=>Y.map(M=>{const C=w.get(M.uid);if(C){const U=d.find(R=>R.tempId===M.uid);return e&&U&&e({...U,fileGrpKey:h,fileKey:C.fileKey}),{...M,name:C.lgclFileNm,fileGrpKey:h,fileKey:C.fileKey,uid:C.fileKey,status:"done",url:`/api/download?filePath=${C.filePath}&logicalName=${C.lgclFileNm}`}}return M}))}}).catch(p=>{console.error("업로드 후처리 서비스 호출 실패:",p),n.message.error("파일 후처리 중 오류가 발생했습니다.");const h=new Set(d.map(w=>w.tempId));j(w=>w.map(Y=>h.has(Y.uid)?{...Y,status:"error",error:"후처리 실패"}:Y))})}},k=g.useRef(O.debounce(D,500)).current;g.useEffect(()=>()=>{k.cancel()},[k]),g.useEffect(()=>{y.current=t},[t]),g.useEffect(()=>{t&&l&&_.callService(l,{crprCd:_.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:t}).then(d=>{if(d?.sub){const x=d.sub.map(p=>({uid:p.fileKey,name:p.lgclFileNm,status:"done",url:`/api/download?filePath=${p.filePath}&logicalName=${p.lgclFileNm}`}));j(x)}}).catch(d=>{console.error("파일 목록 조회 서비스 호출에 실패했습니다.",d),n.message.error("파일 목록을 불러오는 중 오류가 발생했습니다.")})},[t,l]);const v=(d,x)=>{const p=O.findIndex(S,{uid:d}),h=O.findIndex(S,{uid:x});if(p<0||h<0)return;const w=[...S],[Y]=w.splice(p,1);w.splice(h,0,Y),j(w)},F=()=>{if(t&&s){const d=S.map(x=>x.uid);_.callService(s,{crprCd:_.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:t,reorderedFileKeys:d}).then(()=>{n.message.success("파일 순서가 성공적으로 저장되었습니다.")}).catch(x=>{console.error("파일 순서 저장 서비스 호출 실패:",x),n.message.error("파일 순서 저장 중 오류가 발생했습니다.")})}},L={name:"file",multiple:c,action:"/api/upload",fileList:S,beforeUpload:d=>{if(!c&&S.length>0)return n.message.error("하나의 파일만 업로드할 수 있습니다."),n.Upload.LIST_IGNORE;if(u&&u.length>0){const x=`.${d.name.split(".").pop()?.toLowerCase()}`;if(!u.includes(x))return n.message.error(`${d.name} 파일은 허용되지 않는 확장자입니다. (${u.join(", ")})`),n.Upload.LIST_IGNORE}return a&&!(d.size/1024/1024<a)?(n.message.error(`일반업로드의 최대용량은 ${a}MB입니다.`),n.Upload.LIST_IGNORE):!0},showUploadList:{showRemoveIcon:m},onChange(d){const{status:x,uid:p}=d.file;if(x==="removed"){o?_.callService(o,{crprCd:_.getUserInfo()?.crprCd,sysCd:__SYS_CD__,fileGrpKey:y.current,fileKey:p}).then(()=>{n.message.success("파일이 성공적으로 삭제되었습니다."),j(d.fileList)}).catch(h=>{console.error("파일 삭제 서비스 호출에 실패했습니다.",h),n.message.error("파일 삭제 중 오류가 발생했습니다.")}):j(d.fileList);return}if(j(d.fileList),x==="done")if(d.file.response?.success){const{uploadedFiles:h}=d.file.response;h&&Array.isArray(h)&&h.length>0&&(h.forEach(w=>{w.tempId=d.file.uid,I.current.push(w)}),k()),n.message.success(d.file.response.message||`${d.file.name} 파일이 성공적으로 업로드되었습니다.`)}else n.message.error(d.file.response?.message||`${d.file.name} 파일 업로드에 실패했습니다.`);else x==="error"&&n.message.error(d.file.response?.message||`${d.file.name} 파일 업로드 중 오류가 발생했습니다.`)},itemRender(d,x,p){const h=g.cloneElement(d,{href:x.url||void 0,title:void 0});return r.jsx(Ye,{originNode:h,file:x,fileList:p,moveFile:v,onDrop:F},x.uid)}};return r.jsx(z.DndProvider,{backend:W.HTML5Backend,children:r.jsx(n.Upload,{headers:{SYSCD:__SYS_CD__},...L,listType:"picture",children:m&&(c||S.length===0)&&r.jsx(n.Button,{icon:r.jsx(E.UploadOutlined,{}),children:"파일 선택"})})})};exports.BwgButton=X;exports.BwgCheck=Z;exports.BwgCheckList=Q;exports.BwgDatePicker=ee;exports.BwgDownload=te;exports.BwgForm=P;exports.BwgFormItem=B;exports.BwgInput=re;exports.BwgLargeUploader=ae;exports.BwgMaskedInput=le;exports.BwgMaskedPicker=de;exports.BwgMultiSelect=ue;exports.BwgNumber=me;exports.BwgRadio=ge;exports.BwgRangePicker=he;exports.BwgSearch=pe;exports.BwgSelect=xe;exports.BwgSwitch=ye;exports.BwgTextArea=Se;exports.BwgUploader=Ce;
|