fone-design-system_v2 1.0.338 → 1.0.339
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, e as o, z as i, a as r, ai as t, aj as l, ak as n, b as d, B as u, c as C, d as S, f as c, h as p, i as T, j as g, Y as h, aA as D, C as B, X as O, a4 as E, k as b, l as F, aG as L, aB as P, m, n as A, o as k, q as x, D as I, s as M, t as w, u as H, ag as R, a5 as _, a6 as y, aO as G, aM as v, aK as V, F as f, v as N, a7 as U, G as q, w as z, al as J, am as X, I as j, as as K, aF as Z, an as Q, aH as W, a3 as Y, ar as $, ao as aa, M as sa, a8 as ea, a9 as oa, ap as ia, x as ra, N as ta, aD as la, aC as na, P as da, y as ua, aa as Ca, aq as Sa, E as ca, R as pa, r as Ta, p as ga, K as ha, H as Da, J as Ba, ah as Oa, U as Ea, V as ba, ab as Fa, S as La, ac as Pa, aI as ma, L as Aa, O as ka, ad as xa, aL as Ia, Q as Ma, ay as wa, ax as Ha, W as Ra, Z as _a, _ as ya, aE as Ga, T as va, az as Va, $ as fa, a0 as Na, a1 as Ua, at as qa, a2 as za, ae as Ja, af as Xa, au as ja, aJ as Ka, av as Za, aN as Qa, aw as Wa } from "./index-
|
|
1
|
+
import { A as e, e as o, z as i, a as r, ai as t, aj as l, ak as n, b as d, B as u, c as C, d as S, f as c, h as p, i as T, j as g, Y as h, aA as D, C as B, X as O, a4 as E, k as b, l as F, aG as L, aB as P, m, n as A, o as k, q as x, D as I, s as M, t as w, u as H, ag as R, a5 as _, a6 as y, aO as G, aM as v, aK as V, F as f, v as N, a7 as U, G as q, w as z, al as J, am as X, I as j, as as K, aF as Z, an as Q, aH as W, a3 as Y, ar as $, ao as aa, M as sa, a8 as ea, a9 as oa, ap as ia, x as ra, N as ta, aD as la, aC as na, P as da, y as ua, aa as Ca, aq as Sa, E as ca, R as pa, r as Ta, p as ga, K as ha, H as Da, J as Ba, ah as Oa, U as Ea, V as ba, ab as Fa, S as La, ac as Pa, aI as ma, L as Aa, O as ka, ad as xa, aL as Ia, Q as Ma, ay as wa, ax as Ha, W as Ra, Z as _a, _ as ya, aE as Ga, T as va, az as Va, $ as fa, a0 as Na, a1 as Ua, at as qa, a2 as za, ae as Ja, af as Xa, au as ja, aJ as Ka, av as Za, aN as Qa, aw as Wa } from "./index-_nl_ezey.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Accordion,
|
|
4
4
|
o as AntBarChart,
|
|
@@ -994,7 +994,7 @@ ${Y.current.stack}
|
|
|
994
994
|
|
|
995
995
|
Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.
|
|
996
996
|
More information: https://github.com/hello-pangea/dnd/blob/main/docs/api/droppable.md
|
|
997
|
-
`)}],SPt=[function({props:t}){t.renderClone||(process.env.NODE_ENV!=="production"?Ie(!1,"Must provide a clone render function (renderClone) for virtual lists"):Ie())},function({getPlaceholderRef:t}){t()&&(process.env.NODE_ENV!=="production"?Ie(!1,"Expected virtual list to not have a placeholder"):Ie())}];function EPt(e){nC(()=>{q8(e,CPt),e.props.mode==="standard"&&q8(e,xPt),e.props.mode==="virtual"&&q8(e,SPt)})}class OPt extends V.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const BPt=e=>{const t=V.useContext(sM);t||(process.env.NODE_ENV!=="production"?Ie(!1,"Could not find app context"):Ie());const{contextId:n,isMovementAllowed:r}=t,o=V.useRef(null),i=V.useRef(null),{children:a,droppableId:s,type:l,mode:c,direction:u,ignoreContainerClipping:A,isDropDisabled:f,isCombineEnabled:d,snapshot:p,useClone:h,updateViewportMaxScroll:g,getContainerForClone:v}=e,m=rn(()=>o.current,[]),b=rn((_=null)=>{o.current=_},[]),w=rn(()=>i.current,[]),C=rn((_=null)=>{i.current=_},[]);EPt({props:e,getDroppableRef:m,getPlaceholderRef:w});const x=rn(()=>{r()&&g({maxScroll:V0e()})},[r,g]);vPt({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:d,ignoreContainerClipping:A,getDroppableRef:m});const S=Mr(()=>V.createElement(OPt,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:_,data:k,animate:F})=>V.createElement(wPt,{placeholder:k,onClose:_,innerRef:C,animate:F,contextId:n,onTransitionEnd:x})),[n,x,e.placeholder,e.shouldAnimatePlaceholder,C]),O=Mr(()=>({innerRef:b,placeholder:S,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,S,b]),T=h?h.dragging.draggableId:null,B=Mr(()=>({droppableId:s,type:l,isUsingCloneFor:T}),[s,T,l]);function P(){if(!h)return null;const{dragging:_,render:k}=h,F=V.createElement(wye,{draggableId:_.draggableId,index:_.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(D,N)=>k(D,N,_));return yi.createPortal(F,v())}return V.createElement(z8.Provider,{value:B},a(O,p),P())};function IPt(){return document.body||(process.env.NODE_ENV!=="production"?Ie(!1,"document.body is not ready"):Ie()),document.body}const Iye={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:IPt},Tye=e=>{let t={...e},n;for(n in Iye)e[n]===void 0&&(t={...t,[n]:Iye[n]});return t},J8=(e,t)=>e===t.droppable.type,Mye=(e,t)=>t.draggables[e.draggable.id],Z8=Kme(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Aa(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=Aa((i,a,s,l,c,u)=>{const A=c.descriptor.id;if(c.descriptor.droppableId===i){const p=u?{render:u,dragging:n(c.descriptor)}:null,h={isDraggingOver:s,draggingOverWith:s?A:null,draggingFromThisWith:A,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:h,useClone:p}}if(!a)return t;if(!l)return e;const d={isDraggingOver:s,draggingOverWith:A,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}});return(i,a)=>{const s=Tye(a),l=s.droppableId,c=s.type,u=!s.isDropDisabled,A=s.renderClone;if(rC(i)){const f=i.critical;if(!J8(c,f))return t;const d=Mye(f,i.dimensions),p=Zs(i.impact)===l;return r(l,u,p,p,d,A)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!J8(c,f.critical))return t;const d=Mye(f.critical,i.dimensions);return r(l,u,yye(f.result)===l,Zs(f.impact)===l,d,A)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!J8(c,f.critical))return t;const d=Zs(f.impact)===l,p=!!(f.impact.at&&f.impact.at.type==="COMBINE"),h=f.critical.droppable.id===l;return d?p?e:t:h?e:t}return t}},{updateViewportMaxScroll:MIt},(e,t,n)=>({...Tye(n),...e,...t}),{context:R8,areStatePropsEqual:mye})(BPt);function TPt({emptyText:e,emptyIcon:t,emptySlot:n}){return n?U.jsx(U.Fragment,{children:n}):U.jsxs("div",{style:{display:"flex",height:"100%",width:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.75rem",paddingTop:"3rem",paddingBottom:"3rem"},children:[t&&t,e&&U.jsx("span",{style:{fontSize:"var( --ds-table-body-font-size)",opacity:.7},children:e})]})}const MPt=({table:e,footerRowHeight:t=30})=>{const n=e.getFooterGroups();return e.getVisibleLeafColumns().some(o=>o.columnDef.footer!=null)?U.jsx("tfoot",{children:n.map((o,i)=>U.jsx("tr",{style:{fontWeight:600,fontSize:"var(--ds-table-header-font-size)",backgroundColor:"var(--ds-table-header-background-color)",color:"var(--ds-table-header-color)"},children:o.headers.map((a,s)=>a.isPlaceholder?null:U.jsx("th",{colSpan:a.colSpan,style:{minWidth:"3rem",height:t,padding:0,boxSizing:"border-box",verticalAlign:"middle",backgroundColor:"var(--ds-table-header-background-color)",borderLeft:s===0?"none":"1px solid #DCDCDC",borderTop:"1px solid var(--ds-table-header-border-bottom-color)",borderBottom:"1px solid var(--ds-table-header-border-bottom-color)",textAlign:"center"},children:U.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:K6(a.column.columnDef.footer,a.getContext())})},a.id))},o.id))}):null},PPt=({header:e,idx:t,groupIndex:n,headerGroupsLength:r,clickedRowIndex:o,headerRowHeight:i=30})=>{var ne;const[a,s]=V.useState(""),[l,c]=V.useState(!1),[u,A]=V.useState(null),f=V.useRef(null),d=e.column.id,p=e.column.columnDef,h=p.role,g=p.width,v=p.required,m=p.filter,b=h!=="group"&&!!m,w=typeof m=="object"&&!!m.active,C=typeof m=="object"?m.onClick:void 0,x=typeof m=="object"?m.onApply:void 0,S=typeof m=="object"?m.onCancel:void 0,O=typeof m=="object"?m.popoverContent:void 0,T=p.setSort,B=((ne=p.getHeaderCellProps)==null?void 0:ne.call(p,{column:p,columnId:d}))??{},P=ee=>{T&&T(J=>{if(!ee)return J.filter(le=>!le.startsWith(`${d},`));const[re]=ee.split(",");if(J.length===0)return[ee];const ie=J.findIndex(le=>le.startsWith(`${re},`));if(ie!==-1){const le=[...J];return le[ie]=ee,le}else return[...J,ee]})},_=()=>{let ee,J;switch(a){case"":ee="ASC",J=`${d},ASC`;break;case"ASC":ee="DESC",J=`${d},DESC`;break;case"DESC":ee="",J="";break;default:ee="ASC",J=`${d},ASC`}s(ee),P(J)},k=ee=>{ee.preventDefault(),ee.stopPropagation(),A(ee.currentTarget),C==null||C({event:ee,column:p,columnId:d})},F=()=>{A(null)},D=()=>{if(x){x({column:p,columnId:d,close:F});return}F()},N=()=>{if(S){S({column:p,columnId:d,close:F});return}F()},L=typeof O=="function"?O({column:p,columnId:d,close:F}):O,R=w?"var(--ds-color-primary)":l?"rgba(0, 0, 0, 0.56)":"rgba(0, 0, 0, 0.32)",H={fontSize:"2rem",position:"absolute",left:"1px",transform:"rotate(90deg)",display:a===""||a==="DESC"?"none":"flex",...a==="ASC"?{}:{}},Q={fontSize:"2rem",position:"absolute",left:"1px",transform:"rotate(90deg)",display:a===""||a==="ASC"?"none":"flex",...a==="DESC"?{}:{}},j=e.subHeaders.length>0,z=h!=="group"&&!e.column.parent,W=z&&n===0,K=z&&n>0,G=W?r:j?1:Math.max(r-n,1);if(e.isPlaceholder&&!W||K)return null;const{className:Y,style:Z,...X}=B,te=U.jsxs(U.Fragment,{children:[K6(e.column.columnDef.header,e.getContext()),v&&U.jsx("span",{style:{paddingLeft:"0.2rem",color:"var(--ds-table-required-color)",fontSize:"1.6rem",lineHeight:"var(--ds-table-header-font-size)"},children:"*"}),T?U.jsxs("span",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[U.jsx(LEe,{style:H}),U.jsx(REe,{style:Q})]}):null]});return U.jsxs("th",{ref:f,...X,className:Y,colSpan:e.colSpan,rowSpan:G,style:{position:"sticky",top:`${n*3}rem`,zIndex:r-n+1,minWidth:"3rem",width:g,height:i*G,padding:0,boxSizing:"border-box",verticalAlign:"middle",borderLeft:t===0?"none":"1px solid #DCDCDC",borderBottom:"1px solid var(--ds-table-header-border-bottom-color)",textAlign:"center",...Z},children:[T?U.jsxs("div",{role:"button",onClick:_,style:{position:"relative",display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingRight:b?"2rem":void 0,gap:"0.2rem",backgroundColor:"transparent",outline:"none",border:"none",cursor:"pointer"},children:[te,b?U.jsx("span",{role:"button",tabIndex:0,onClick:k,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:ee=>{(ee.key==="Enter"||ee.key===" ")&&k(ee)},style:{position:"absolute",right:"0.4rem",top:"50%",transform:"translateY(-50%)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:U.jsx(z7,{style:{fontSize:"1.6rem",color:R}})}):null]}):U.jsxs("div",{style:{position:"relative",display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingRight:b?"2rem":void 0},children:[te,b?U.jsx("span",{role:"button",tabIndex:0,onClick:k,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:ee=>{(ee.key==="Enter"||ee.key===" ")&&k(ee)},style:{position:"absolute",right:"0.4rem",top:"50%",transform:"translateY(-50%)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:U.jsx(z7,{style:{fontSize:"1.6rem",color:R}})}):null]}),L?U.jsx(C5,{open:!!u,anchorEl:u,onClose:F,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClick:ee=>ee.stopPropagation(),children:U.jsxs("div",{style:{position:"relative",minWidth:"28rem",maxWidth:"36rem"},children:[U.jsx("div",{style:{padding:"1rem",paddingBottom:"5rem"},children:L}),U.jsxs("div",{style:{position:"absolute",left:0,right:0,bottom:0,display:"flex",justifyContent:"center",gap:"0.6rem",padding:"1rem",backgroundColor:"#fff",borderTop:"1px solid var(--ds-table-header-border-bottom-color)"},children:[U.jsx(ya,{size:"xxsmall",variant:"outlined",onClick:N,children:"취소"}),U.jsx(ya,{size:"xxsmall",variant:"contained",onClick:D,children:"적용"})]})]})}):null]})},Pye=V.forwardRef(({table:e,clickedRowIndex:t,headerRowHeight:n,headerStyle:r})=>{const o=e.getHeaderGroups().length;return U.jsx("thead",{children:e.getHeaderGroups().map((i,a)=>U.jsx("tr",{style:{fontWeight:600,fontSize:"var(--ds-table-header-font-size)",backgroundColor:"var(--ds-table-header-background-color)",color:"var(--ds-table-header-color)",...r},children:i.headers.map((s,l)=>U.jsx(PPt,{header:s,idx:l,groupIndex:a,headerGroupsLength:o,clickedRowIndex:t,headerRowHeight:n},s.id))},i.id))})});Pye.displayName="Header";const kPt=({align:e,cell:t})=>{const n=t.row.original,r=t.column.columnDef.button,o=typeof r=="function"?r(n):r,i=e==="center"?"center":e==="right"?"flex-end":"flex-start";return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",paddingLeft:"0.7rem",paddingRight:"0.7rem",paddingTop:"2.5px",paddingBottom:"0.1rem",lineHeight:"var( --ds-table-body-font-size)",justifyContent:i},children:o})},Zc=e=>(e==null?void 0:e.crud)==="C"?"C":"U",FPt=({cell:e,onChange:t,setTableData:n,setRowSelection:r,radio:o=!1})=>{const i=e.getValue(),a=e.column.columnDef.isOnly;return U.jsx(Qd,{justifyContent:"center",children:U.jsx(Ku,{checked:i==="Y",onChange:s=>{const l=s.target.checked;a&&!l||n(c=>{const u=c.map((f,d)=>a?d===e.row.index?{...f,[e.column.id]:l?"Y":"N",crud:Zc(f)}:{...f,[e.column.id]:"N"}:d!==e.row.index?f:{...f,[e.column.id]:l?"Y":"N",crud:Zc(f)});if(o){r({[e.row.id]:!0});const f=u.map((d,p)=>({...d,checked:p===e.row.index}));return t==null||t(f),f}r(f=>({...f,[e.row.id]:!0}));const A=u.map((f,d)=>({...f,checked:d===e.row.index?!0:f.checked}));return t==null||t(A),A})}})})},_Pt=({cell:e})=>{const t=e.getValue();return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:U.jsx(Ku,{checked:t==="Y",readOnly:!0})})},DPt=({cell:e})=>{const t=e.column.columnDef.component,n=e.row.original,r=typeof t=="function"?t(n):t;return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",overflow:"hidden"},children:r})},NPt=({id:e,align:t,cell:n})=>{const r=s=>{try{let l=Dn(s);return l.isValid()||(l=Dn(s,"YYYYMMDD")),l.isValid()||(l=Dn(s,"YYYY-MM-DD HH:mm:ss")),l.isValid()?l.format("YYYY-MM-DD"):s}catch{return s}},o=n.getValue(),i=typeof o=="string"?r(o):String(o||""),a=e==="no"||t==="center"?"center":t==="end"||t==="right"?"flex-end":"flex-start";return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",paddingTop:"2.5px",lineHeight:"var( --ds-table-body-font-size)",justifyContent:a,...e==="no"?{}:a==="flex-start"?{paddingLeft:"0.7rem",paddingTop:"0.1rem",paddingBottom:"0.1rem"}:{paddingTop:"0.1rem",paddingBottom:"0.1rem"}},children:i})},LPt=({cell:e,onChange:t,setTableData:n,isRowSelected:r,setRowSelection:o,isRowClicked:i,style:a,radio:s=!1})=>{const l=e.getValue(),c=l?Dn(l,"YYYYMMDD"):null,u=e.row.original,A=e.column.columnDef.disabled,f=typeof A=="function"?A(u):A,d=i||r,p=a??{...Nw(i),height:i?af:"var(--ds-input-height-base)",borderRadius:"0.375rem",fontSize:"var(--ds-table-body-font-size)",textAlign:"center",padding:"0.2rem",outline:"none"};return U.jsx(Qd,{justifyContent:"center",children:f?null:U.jsx(RPt,{$active:d,children:U.jsx(DT,{value:c,format:"YYYY-MM-DD",allowClear:!1,suffixIcon:null,placeholder:"",onChange:h=>{n(g=>{let v=g.map((m,b)=>{if(e.row.index===b){const w=h?Dn(h).format("YYYYMMDD"):null;return{...m,checked:!0,[e.column.id]:w,crud:Zc(m)}}return m});return s?(o({[e.row.id]:!0}),v=v.map((m,b)=>({...m,checked:b===e.row.index}))):o(m=>({...m,[e.row.id]:!0})),t==null||t(v),v})},style:p})})})},RPt=mc.span`
|
|
997
|
+
`)}],SPt=[function({props:t}){t.renderClone||(process.env.NODE_ENV!=="production"?Ie(!1,"Must provide a clone render function (renderClone) for virtual lists"):Ie())},function({getPlaceholderRef:t}){t()&&(process.env.NODE_ENV!=="production"?Ie(!1,"Expected virtual list to not have a placeholder"):Ie())}];function EPt(e){nC(()=>{q8(e,CPt),e.props.mode==="standard"&&q8(e,xPt),e.props.mode==="virtual"&&q8(e,SPt)})}class OPt extends V.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const BPt=e=>{const t=V.useContext(sM);t||(process.env.NODE_ENV!=="production"?Ie(!1,"Could not find app context"):Ie());const{contextId:n,isMovementAllowed:r}=t,o=V.useRef(null),i=V.useRef(null),{children:a,droppableId:s,type:l,mode:c,direction:u,ignoreContainerClipping:A,isDropDisabled:f,isCombineEnabled:d,snapshot:p,useClone:h,updateViewportMaxScroll:g,getContainerForClone:v}=e,m=rn(()=>o.current,[]),b=rn((_=null)=>{o.current=_},[]),w=rn(()=>i.current,[]),C=rn((_=null)=>{i.current=_},[]);EPt({props:e,getDroppableRef:m,getPlaceholderRef:w});const x=rn(()=>{r()&&g({maxScroll:V0e()})},[r,g]);vPt({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:d,ignoreContainerClipping:A,getDroppableRef:m});const S=Mr(()=>V.createElement(OPt,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:_,data:k,animate:F})=>V.createElement(wPt,{placeholder:k,onClose:_,innerRef:C,animate:F,contextId:n,onTransitionEnd:x})),[n,x,e.placeholder,e.shouldAnimatePlaceholder,C]),O=Mr(()=>({innerRef:b,placeholder:S,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":n}}),[n,s,S,b]),T=h?h.dragging.draggableId:null,B=Mr(()=>({droppableId:s,type:l,isUsingCloneFor:T}),[s,T,l]);function P(){if(!h)return null;const{dragging:_,render:k}=h,F=V.createElement(wye,{draggableId:_.draggableId,index:_.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(D,N)=>k(D,N,_));return yi.createPortal(F,v())}return V.createElement(z8.Provider,{value:B},a(O,p),P())};function IPt(){return document.body||(process.env.NODE_ENV!=="production"?Ie(!1,"document.body is not ready"):Ie()),document.body}const Iye={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:IPt},Tye=e=>{let t={...e},n;for(n in Iye)e[n]===void 0&&(t={...t,[n]:Iye[n]});return t},J8=(e,t)=>e===t.droppable.type,Mye=(e,t)=>t.draggables[e.draggable.id],Z8=Kme(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Aa(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=Aa((i,a,s,l,c,u)=>{const A=c.descriptor.id;if(c.descriptor.droppableId===i){const p=u?{render:u,dragging:n(c.descriptor)}:null,h={isDraggingOver:s,draggingOverWith:s?A:null,draggingFromThisWith:A,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:h,useClone:p}}if(!a)return t;if(!l)return e;const d={isDraggingOver:s,draggingOverWith:A,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}});return(i,a)=>{const s=Tye(a),l=s.droppableId,c=s.type,u=!s.isDropDisabled,A=s.renderClone;if(rC(i)){const f=i.critical;if(!J8(c,f))return t;const d=Mye(f,i.dimensions),p=Zs(i.impact)===l;return r(l,u,p,p,d,A)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!J8(c,f.critical))return t;const d=Mye(f.critical,i.dimensions);return r(l,u,yye(f.result)===l,Zs(f.impact)===l,d,A)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!J8(c,f.critical))return t;const d=Zs(f.impact)===l,p=!!(f.impact.at&&f.impact.at.type==="COMBINE"),h=f.critical.droppable.id===l;return d?p?e:t:h?e:t}return t}},{updateViewportMaxScroll:MIt},(e,t,n)=>({...Tye(n),...e,...t}),{context:R8,areStatePropsEqual:mye})(BPt);function TPt({emptyText:e,emptyIcon:t,emptySlot:n}){return n?U.jsx(U.Fragment,{children:n}):U.jsxs("div",{style:{display:"flex",height:"100%",width:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.75rem"},children:[t&&t,e&&U.jsx("span",{style:{fontSize:"var( --ds-table-body-font-size)",opacity:.7},children:e})]})}const MPt=({table:e,footerRowHeight:t=30})=>{const n=e.getFooterGroups();return e.getVisibleLeafColumns().some(o=>o.columnDef.footer!=null)?U.jsx("tfoot",{children:n.map((o,i)=>U.jsx("tr",{style:{fontWeight:600,fontSize:"var(--ds-table-header-font-size)",backgroundColor:"var(--ds-table-header-background-color)",color:"var(--ds-table-header-color)"},children:o.headers.map((a,s)=>a.isPlaceholder?null:U.jsx("th",{colSpan:a.colSpan,style:{minWidth:"3rem",height:t,padding:0,boxSizing:"border-box",verticalAlign:"middle",backgroundColor:"var(--ds-table-header-background-color)",borderLeft:s===0?"none":"1px solid #DCDCDC",borderTop:"1px solid var(--ds-table-header-border-bottom-color)",borderBottom:"1px solid var(--ds-table-header-border-bottom-color)",textAlign:"center"},children:U.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:K6(a.column.columnDef.footer,a.getContext())})},a.id))},o.id))}):null},PPt=({header:e,idx:t,groupIndex:n,headerGroupsLength:r,clickedRowIndex:o,headerRowHeight:i=30})=>{var ne;const[a,s]=V.useState(""),[l,c]=V.useState(!1),[u,A]=V.useState(null),f=V.useRef(null),d=e.column.id,p=e.column.columnDef,h=p.role,g=p.width,v=p.required,m=p.filter,b=h!=="group"&&!!m,w=typeof m=="object"&&!!m.active,C=typeof m=="object"?m.onClick:void 0,x=typeof m=="object"?m.onApply:void 0,S=typeof m=="object"?m.onCancel:void 0,O=typeof m=="object"?m.popoverContent:void 0,T=p.setSort,B=((ne=p.getHeaderCellProps)==null?void 0:ne.call(p,{column:p,columnId:d}))??{},P=ee=>{T&&T(J=>{if(!ee)return J.filter(le=>!le.startsWith(`${d},`));const[re]=ee.split(",");if(J.length===0)return[ee];const ie=J.findIndex(le=>le.startsWith(`${re},`));if(ie!==-1){const le=[...J];return le[ie]=ee,le}else return[...J,ee]})},_=()=>{let ee,J;switch(a){case"":ee="ASC",J=`${d},ASC`;break;case"ASC":ee="DESC",J=`${d},DESC`;break;case"DESC":ee="",J="";break;default:ee="ASC",J=`${d},ASC`}s(ee),P(J)},k=ee=>{ee.preventDefault(),ee.stopPropagation(),A(ee.currentTarget),C==null||C({event:ee,column:p,columnId:d})},F=()=>{A(null)},D=()=>{if(x){x({column:p,columnId:d,close:F});return}F()},N=()=>{if(S){S({column:p,columnId:d,close:F});return}F()},L=typeof O=="function"?O({column:p,columnId:d,close:F}):O,R=w?"var(--ds-color-primary)":l?"rgba(0, 0, 0, 0.56)":"rgba(0, 0, 0, 0.32)",H={fontSize:"2rem",position:"absolute",left:"1px",transform:"rotate(90deg)",display:a===""||a==="DESC"?"none":"flex",...a==="ASC"?{}:{}},Q={fontSize:"2rem",position:"absolute",left:"1px",transform:"rotate(90deg)",display:a===""||a==="ASC"?"none":"flex",...a==="DESC"?{}:{}},j=e.subHeaders.length>0,z=h!=="group"&&!e.column.parent,W=z&&n===0,K=z&&n>0,G=W?r:j?1:Math.max(r-n,1);if(e.isPlaceholder&&!W||K)return null;const{className:Y,style:Z,...X}=B,te=U.jsxs(U.Fragment,{children:[K6(e.column.columnDef.header,e.getContext()),v&&U.jsx("span",{style:{paddingLeft:"0.2rem",color:"var(--ds-table-required-color)",fontSize:"1.6rem",lineHeight:"var(--ds-table-header-font-size)"},children:"*"}),T?U.jsxs("span",{style:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[U.jsx(LEe,{style:H}),U.jsx(REe,{style:Q})]}):null]});return U.jsxs("th",{ref:f,...X,className:Y,colSpan:e.colSpan,rowSpan:G,style:{position:"sticky",top:`${n*3}rem`,zIndex:r-n+1,minWidth:"3rem",width:g,height:i*G,padding:0,boxSizing:"border-box",verticalAlign:"middle",borderLeft:t===0?"none":"1px solid #DCDCDC",borderBottom:"1px solid var(--ds-table-header-border-bottom-color)",textAlign:"center",...Z},children:[T?U.jsxs("div",{role:"button",onClick:_,style:{position:"relative",display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingRight:b?"2rem":void 0,gap:"0.2rem",backgroundColor:"transparent",outline:"none",border:"none",cursor:"pointer"},children:[te,b?U.jsx("span",{role:"button",tabIndex:0,onClick:k,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:ee=>{(ee.key==="Enter"||ee.key===" ")&&k(ee)},style:{position:"absolute",right:"0.4rem",top:"50%",transform:"translateY(-50%)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:U.jsx(z7,{style:{fontSize:"1.6rem",color:R}})}):null]}):U.jsxs("div",{style:{position:"relative",display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",paddingRight:b?"2rem":void 0},children:[te,b?U.jsx("span",{role:"button",tabIndex:0,onClick:k,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onKeyDown:ee=>{(ee.key==="Enter"||ee.key===" ")&&k(ee)},style:{position:"absolute",right:"0.4rem",top:"50%",transform:"translateY(-50%)",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:U.jsx(z7,{style:{fontSize:"1.6rem",color:R}})}):null]}),L?U.jsx(C5,{open:!!u,anchorEl:u,onClose:F,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClick:ee=>ee.stopPropagation(),children:U.jsxs("div",{style:{position:"relative",minWidth:"28rem",maxWidth:"36rem"},children:[U.jsx("div",{style:{padding:"1rem",paddingBottom:"5rem"},children:L}),U.jsxs("div",{style:{position:"absolute",left:0,right:0,bottom:0,display:"flex",justifyContent:"center",gap:"0.6rem",padding:"1rem",backgroundColor:"#fff",borderTop:"1px solid var(--ds-table-header-border-bottom-color)"},children:[U.jsx(ya,{size:"xxsmall",variant:"outlined",onClick:N,children:"취소"}),U.jsx(ya,{size:"xxsmall",variant:"contained",onClick:D,children:"적용"})]})]})}):null]})},Pye=V.forwardRef(({table:e,clickedRowIndex:t,headerRowHeight:n,headerStyle:r})=>{const o=e.getHeaderGroups().length;return U.jsx("thead",{children:e.getHeaderGroups().map((i,a)=>U.jsx("tr",{style:{fontWeight:600,fontSize:"var(--ds-table-header-font-size)",backgroundColor:"var(--ds-table-header-background-color)",color:"var(--ds-table-header-color)",...r},children:i.headers.map((s,l)=>U.jsx(PPt,{header:s,idx:l,groupIndex:a,headerGroupsLength:o,clickedRowIndex:t,headerRowHeight:n},s.id))},i.id))})});Pye.displayName="Header";const kPt=({align:e,cell:t})=>{const n=t.row.original,r=t.column.columnDef.button,o=typeof r=="function"?r(n):r,i=e==="center"?"center":e==="right"?"flex-end":"flex-start";return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",paddingLeft:"0.7rem",paddingRight:"0.7rem",paddingTop:"2.5px",paddingBottom:"0.1rem",lineHeight:"var( --ds-table-body-font-size)",justifyContent:i},children:o})},Zc=e=>(e==null?void 0:e.crud)==="C"?"C":"U",FPt=({cell:e,onChange:t,setTableData:n,setRowSelection:r,radio:o=!1})=>{const i=e.getValue(),a=e.column.columnDef.isOnly;return U.jsx(Qd,{justifyContent:"center",children:U.jsx(Ku,{checked:i==="Y",onChange:s=>{const l=s.target.checked;a&&!l||n(c=>{const u=c.map((f,d)=>a?d===e.row.index?{...f,[e.column.id]:l?"Y":"N",crud:Zc(f)}:{...f,[e.column.id]:"N"}:d!==e.row.index?f:{...f,[e.column.id]:l?"Y":"N",crud:Zc(f)});if(o){r({[e.row.id]:!0});const f=u.map((d,p)=>({...d,checked:p===e.row.index}));return t==null||t(f),f}r(f=>({...f,[e.row.id]:!0}));const A=u.map((f,d)=>({...f,checked:d===e.row.index?!0:f.checked}));return t==null||t(A),A})}})})},_Pt=({cell:e})=>{const t=e.getValue();return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:U.jsx(Ku,{checked:t==="Y",readOnly:!0})})},DPt=({cell:e})=>{const t=e.column.columnDef.component,n=e.row.original,r=typeof t=="function"?t(n):t;return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",overflow:"hidden"},children:r})},NPt=({id:e,align:t,cell:n})=>{const r=s=>{try{let l=Dn(s);return l.isValid()||(l=Dn(s,"YYYYMMDD")),l.isValid()||(l=Dn(s,"YYYY-MM-DD HH:mm:ss")),l.isValid()?l.format("YYYY-MM-DD"):s}catch{return s}},o=n.getValue(),i=typeof o=="string"?r(o):String(o||""),a=e==="no"||t==="center"?"center":t==="end"||t==="right"?"flex-end":"flex-start";return U.jsx("span",{style:{display:"flex",height:"100%",width:"100%",alignItems:"center",paddingTop:"2.5px",lineHeight:"var( --ds-table-body-font-size)",justifyContent:a,...e==="no"?{}:a==="flex-start"?{paddingLeft:"0.7rem",paddingTop:"0.1rem",paddingBottom:"0.1rem"}:{paddingTop:"0.1rem",paddingBottom:"0.1rem"}},children:i})},LPt=({cell:e,onChange:t,setTableData:n,isRowSelected:r,setRowSelection:o,isRowClicked:i,style:a,radio:s=!1})=>{const l=e.getValue(),c=l?Dn(l,"YYYYMMDD"):null,u=e.row.original,A=e.column.columnDef.disabled,f=typeof A=="function"?A(u):A,d=i||r,p=a??{...Nw(i),height:i?af:"var(--ds-input-height-base)",borderRadius:"0.375rem",fontSize:"var(--ds-table-body-font-size)",textAlign:"center",padding:"0.2rem",outline:"none"};return U.jsx(Qd,{justifyContent:"center",children:f?null:U.jsx(RPt,{$active:d,children:U.jsx(DT,{value:c,format:"YYYY-MM-DD",allowClear:!1,suffixIcon:null,placeholder:"",onChange:h=>{n(g=>{let v=g.map((m,b)=>{if(e.row.index===b){const w=h?Dn(h).format("YYYYMMDD"):null;return{...m,checked:!0,[e.column.id]:w,crud:Zc(m)}}return m});return s?(o({[e.row.id]:!0}),v=v.map((m,b)=>({...m,checked:b===e.row.index}))):o(m=>({...m,[e.row.id]:!0})),t==null||t(v),v})},style:p})})})},RPt=mc.span`
|
|
998
998
|
display: flex;
|
|
999
999
|
width: 100%;
|
|
1000
1000
|
height: 100%;
|
|
@@ -55754,7 +55754,7 @@ function nlt() {
|
|
|
55754
55754
|
];
|
|
55755
55755
|
bX = !0, o.label = 1;
|
|
55756
55756
|
case 1:
|
|
55757
|
-
return o.trys.push([1, 6, , 7]), e = I.version || "", t = parseInt(e.split(".")[0], 10), t >= 18 ? [4, import("./client-
|
|
55757
|
+
return o.trys.push([1, 6, , 7]), e = I.version || "", t = parseInt(e.split(".")[0], 10), t >= 18 ? [4, import("./client-C0QNv--P.js").then((a) => a.c)] : [3, 3];
|
|
55758
55758
|
case 2:
|
|
55759
55759
|
return n = o.sent(), D6 = n.createRoot, [3, 5];
|
|
55760
55760
|
case 3:
|
|
@@ -123220,9 +123220,7 @@ function m4t({
|
|
|
123220
123220
|
flexDirection: "column",
|
|
123221
123221
|
alignItems: "center",
|
|
123222
123222
|
justifyContent: "center",
|
|
123223
|
-
gap: "0.75rem"
|
|
123224
|
-
paddingTop: "3rem",
|
|
123225
|
-
paddingBottom: "3rem"
|
|
123223
|
+
gap: "0.75rem"
|
|
123226
123224
|
},
|
|
123227
123225
|
children: [
|
|
123228
123226
|
t && t,
|
package/package.json
CHANGED