dgz-ui-shared 1.0.16 → 1.0.17
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/DataTable-Bs1mNMQA.cjs +21 -0
- package/dist/{DataTable-BOEo_Uha.js → DataTable-m1HIH0Ux.js} +9 -9
- package/dist/{DateRangeFilter-ZDBvkN-2.js → DateRangeFilter-5LwPZEu1.js} +2 -2
- package/dist/{DateRangeFilter-D83QtjCK.cjs → DateRangeFilter-B3-7xNd0.cjs} +1 -1
- package/dist/{DateRangePicker-B8bc_uOu.js → DateRangePicker-B1PUXz_b.js} +3 -3
- package/dist/{DateRangePicker-CvU7-lF2.cjs → DateRangePicker-BpkZvoen.cjs} +1 -1
- package/dist/{FilterWrapper-4ln3xboU.js → FilterWrapper-cmQxaMUg.js} +5 -5
- package/dist/{FilterWrapper-9X33CDTo.cjs → FilterWrapper-w4NOxofS.cjs} +1 -1
- package/dist/MyBreadcrumb-DQftoixD.cjs +11 -0
- package/dist/MyBreadcrumb-DSSFNuEU.js +136 -0
- package/dist/{MyInput-D1vHeFmz.js → MyInput-8MTMlyJi.js} +10 -10
- package/dist/{MyInput-BP3bP-Tc.cjs → MyInput-DSPqFwp_.cjs} +12 -12
- package/dist/{MyLimitSelect-C1AiV1ft.js → MyLimitSelect-CzXrKMLx.js} +3 -3
- package/dist/{MyLimitSelect-4iU_zRqa.cjs → MyLimitSelect-Dltcv9yp.cjs} +2 -2
- package/dist/{MyModal-CFexgUBe.js → MyModal-B-i7DjQn.js} +2 -2
- package/dist/{MyModal-CMhdDtfn.cjs → MyModal-DdrK0dXp.cjs} +1 -1
- package/dist/{MySelect-BCQ1Mfw7.cjs → MySelect-CBgC3YWh.cjs} +1 -1
- package/dist/{MySelect-DLHApBVu.js → MySelect-DTtbFWOL.js} +2 -2
- package/dist/{MyTimePicker-CDg15lLj.cjs → MyTimePicker-CjjolaYp.cjs} +1 -1
- package/dist/{MyTimePicker-C4PJ08me.js → MyTimePicker-GSJS-YSy.js} +4 -4
- package/dist/MyTooltip-BTBhFd8l.cjs +1 -0
- package/dist/{MyTooltip-BCx9OZlP.js → MyTooltip-BUsWmucj.js} +10 -10
- package/dist/{PageTitle-wwkuykbT.cjs → PageTitle-BaNJhfNr.cjs} +1 -1
- package/dist/{PageTitle-nYesffEx.js → PageTitle-DOFVQNkz.js} +1 -1
- package/dist/{PasswordConfirm-DOaw-kO3.js → PasswordConfirm-BEZAUrK9.js} +8 -8
- package/dist/PasswordConfirm-Bcuq17DY.cjs +7 -0
- package/dist/check-DE-1lGDl-DZtCYpHb.cjs +6 -0
- package/dist/{check-DE-1lGDl-BV4ch_7v.js → check-DE-1lGDl-DkXrFGc2.js} +8 -8
- package/dist/chunk-NL6KNZEE-DuqqbKAc.cjs +12 -0
- package/dist/{useDateRange-ClOd9SR2.js → chunk-NL6KNZEE-Dz183p0-.js} +416 -463
- package/dist/components/breadcrumb/index.es.js +5 -6
- package/dist/components/breadcrumb/index.umd.js +1 -1
- package/dist/components/confirm/index.es.js +1 -1
- package/dist/components/confirm/index.umd.js +1 -1
- package/dist/components/datatable/index.es.js +1 -1
- package/dist/components/datatable/index.umd.js +1 -1
- package/dist/components/datepicker/index.es.js +1 -1
- package/dist/components/datepicker/index.umd.js +1 -1
- package/dist/components/filters/index.es.js +2 -2
- package/dist/components/filters/index.umd.js +1 -1
- package/dist/components/form/index.es.js +4 -4
- package/dist/components/form/index.umd.js +1 -1
- package/dist/components/modal/index.es.js +1 -1
- package/dist/components/modal/index.umd.js +1 -1
- package/dist/components/pagination/index.es.js +1 -1
- package/dist/components/pagination/index.umd.js +1 -1
- package/dist/components/theme/index.es.js +1 -1
- package/dist/components/theme/index.umd.js +1 -1
- package/dist/components/title/index.es.js +1 -1
- package/dist/components/title/index.umd.js +1 -1
- package/dist/components/tooltip/index.es.js +1 -1
- package/dist/components/tooltip/index.umd.js +1 -1
- package/dist/dgz-ui-shared.css +1 -1
- package/dist/dropdown-menu-D3ab2Xna-C7AYb8Fe.cjs +6 -0
- package/dist/{dropdown-menu-D3ab2Xna-B6nVcKNP.js → dropdown-menu-D3ab2Xna-CINi67M1.js} +11 -11
- package/dist/hooks/index.es.js +4 -4
- package/dist/hooks/index.umd.js +1 -1
- package/dist/index-5wlmkpC2-ClkRGphQ.cjs +41 -0
- package/dist/{index-5wlmkpC2-MmyBYb8b.js → index-5wlmkpC2-D2CLRQos.js} +6 -6
- package/dist/{index-BTN0oPfn-O1EsXokv.js → index-BTN0oPfn-BPW8OVEU.js} +11 -11
- package/dist/index-BTN0oPfn-CSM82q2i.cjs +5 -0
- package/dist/{index-CYIFqWxx-DGoLsMna.js → index-CYIFqWxx-Bo6mt4i6.js} +2 -2
- package/dist/index-CYIFqWxx-C7j7z62t.cjs +1 -0
- package/dist/{index-DFLDO_Wj-DjjANZrP.js → index-DFLDO_Wj-Cy1_wAhk.js} +2 -2
- package/dist/index-DFLDO_Wj-ZkCcXxN9.cjs +1 -0
- package/dist/index-DqTIeHVj-DHPtrEDi.cjs +1 -0
- package/dist/index-DqTIeHVj-DxP9LTGa.js +451 -0
- package/dist/index.es.js +52 -53
- package/dist/index.umd.js +1 -1
- package/dist/jsx-runtime-C5mzlN2N-B7OU2xWR.js +284 -0
- package/dist/jsx-runtime-C5mzlN2N-DL7cGycY.cjs +22 -0
- package/dist/{popover-DDxpKohG-Bjt6POcV.js → popover-DDxpKohG-BuK7DFOj.js} +12 -12
- package/dist/popover-DDxpKohG-CNJh86up.cjs +1 -0
- package/dist/{select-BehdTDP2-CTd4miM4.cjs → select-BehdTDP2-B-CbbWnP.cjs} +15 -15
- package/dist/{select-BehdTDP2-BZRXpOCr.js → select-BehdTDP2-CT17SRjr.js} +19 -19
- package/dist/{theme-toggle-CRWCcrvK.js → theme-toggle-CyqH1Ugk.js} +2 -2
- package/dist/{theme-toggle-Aprcvhqs.cjs → theme-toggle-DRnJPIrx.cjs} +1 -1
- package/dist/{timepicker-C_vwQ2np-D9UKUHEO.js → timepicker-C_vwQ2np-Cga2k0-u.js} +3 -3
- package/dist/{timepicker-C_vwQ2np-Dzvu0NAb.cjs → timepicker-C_vwQ2np-DfiRBI3t.cjs} +2 -2
- package/dist/types/components/breadcrumb/MyBreadcrumb.d.ts.map +1 -1
- package/dist/useDateRange-3wsTfjgh.js +52 -0
- package/dist/useDateRange-D5xW8PbO.cjs +1 -0
- package/dist/{useFilter-BUnG6rek.js → useFilter-CwUdzeMr.js} +1 -1
- package/dist/{useFilter-oxQPN98U.cjs → useFilter-CyeAQNa3.cjs} +1 -1
- package/dist/{useMediaQuerySizes-BO2cYp5E.cjs → useMediaQuerySizes-CU4Ao1vS.cjs} +1 -1
- package/dist/{useMediaQuerySizes-Z55MEJe0.js → useMediaQuerySizes-ac54u4Co.js} +2 -2
- package/dist/{useSortable-r0J9mD_A.cjs → useSortable-73GXTtPI.cjs} +1 -1
- package/dist/{useSortable-CJES9S21.js → useSortable-DV9DxRmE.js} +1 -1
- package/package.json +3 -2
- package/dist/DataTable-CQjGDfGS.cjs +0 -21
- package/dist/MyBreadcrumb-BWN6xsY0.cjs +0 -22
- package/dist/MyBreadcrumb-BWciHa_T.js +0 -1528
- package/dist/MyTooltip-CNsU5JvY.cjs +0 -1
- package/dist/PasswordConfirm-sgdC6Zbz.cjs +0 -7
- package/dist/check-DE-1lGDl-BXQkin3p.cjs +0 -6
- package/dist/dropdown-menu-D3ab2Xna-BdqXe3om.cjs +0 -6
- package/dist/index-5wlmkpC2-C0FbuAcL.cjs +0 -41
- package/dist/index-BTN0oPfn-KXaqlYhD.cjs +0 -5
- package/dist/index-CYIFqWxx-BsamIYAS.cjs +0 -1
- package/dist/index-DFLDO_Wj-C8ppMJ8-.cjs +0 -1
- package/dist/index-DqTIeHVj-BYqu9UxO.cjs +0 -1
- package/dist/index-DqTIeHVj-NrWlaNo4.js +0 -372
- package/dist/index-l1ZGtt0d-BEsNdMV0.js +0 -364
- package/dist/index-l1ZGtt0d-DeAZE3eu.cjs +0 -22
- package/dist/popover-DDxpKohG-LnE45nHO.cjs +0 -1
- package/dist/useDateRange-CRmWCBEk.cjs +0 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const p=require("./jsx-runtime-DUiatUiq.cjs"),re=require("./check-DE-1lGDl-DZtCYpHb.cjs"),P=require("./dropdown-menu-D3ab2Xna-C7AYb8Fe.cjs"),F=require("./MyLimitSelect-Dltcv9yp.cjs"),D=require("react"),k=require("./MyInput-DSPqFwp_.cjs"),h=require("./jsx-runtime-C5mzlN2N-DL7cGycY.cjs"),w=require("./index-DqTIeHVj-DHPtrEDi.cjs"),Re=require("./select-BehdTDP2-B-CbbWnP.cjs"),y=require("./utils-D0f6bOsw-BmDOeWKv.cjs"),B=require("./useSortable-73GXTtPI.cjs"),Ee=require("./ScrollArea-N3-rKMsT.cjs"),K=require("./SortOrder-81BrXp3i.cjs"),ye=require("./Empty-VUaePYiO.cjs"),X=require("./createLucideIcon-BnAj0RnC.cjs"),ee=require("./FilterWrapper-w4NOxofS.cjs"),Ne=require("./useTranslation-CZf20ucv.cjs");function Se(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const l=Se(D);function Te(e,r){return l.useReducer((t,o)=>r[t][o]??t,e)}var Z="ScrollArea",[ne,Ke]=w.j(Z),[Ce,E]=ne(Z),oe=l.forwardRef((e,r)=>{const{__scopeScrollArea:t,type:o="hover",dir:n,scrollHideDelay:s=600,...i}=e,[d,a]=l.useState(null),[f,c]=l.useState(null),[x,u]=l.useState(null),[v,R]=l.useState(null),[L,_]=l.useState(null),[m,T]=l.useState(0),[b,j]=l.useState(0),[C,A]=l.useState(!1),[I,q]=l.useState(!1),g=w.x(r,z=>a(z)),N=re.n(n);return h.ae.jsx(Ce,{scope:t,type:o,dir:N,scrollHideDelay:s,scrollArea:d,viewport:f,onViewportChange:c,content:x,onContentChange:u,scrollbarX:v,onScrollbarXChange:R,scrollbarXEnabled:C,onScrollbarXEnabledChange:A,scrollbarY:L,onScrollbarYChange:_,scrollbarYEnabled:I,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:j,children:h.ae.jsx(w.h.div,{dir:N,...i,ref:g,style:{position:"relative","--radix-scroll-area-corner-width":m+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});oe.displayName=Z;var se="ScrollAreaViewport",le=l.forwardRef((e,r)=>{const{__scopeScrollArea:t,children:o,nonce:n,...s}=e,i=E(se,t),d=l.useRef(null),a=w.x(r,d,i.onViewportChange);return h.ae.jsxs(h.ae.Fragment,{children:[h.ae.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),h.ae.jsx(w.h.div,{"data-radix-scroll-area-viewport":"",...s,ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.ae.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});le.displayName=se;var S="ScrollAreaScrollbar",G=l.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=E(S,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=n,d=e.orientation==="horizontal";return l.useEffect(()=>(d?s(!0):i(!0),()=>{d?s(!1):i(!1)}),[d,s,i]),n.type==="hover"?h.ae.jsx(Le,{...o,ref:r,forceMount:t}):n.type==="scroll"?h.ae.jsx(_e,{...o,ref:r,forceMount:t}):n.type==="auto"?h.ae.jsx(ie,{...o,ref:r,forceMount:t}):n.type==="always"?h.ae.jsx(J,{...o,ref:r}):null});G.displayName=S;var Le=l.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=E(S,e.__scopeScrollArea),[s,i]=l.useState(!1);return l.useEffect(()=>{const d=n.scrollArea;let a=0;if(d){const f=()=>{window.clearTimeout(a),i(!0)},c=()=>{a=window.setTimeout(()=>i(!1),n.scrollHideDelay)};return d.addEventListener("pointerenter",f),d.addEventListener("pointerleave",c),()=>{window.clearTimeout(a),d.removeEventListener("pointerenter",f),d.removeEventListener("pointerleave",c)}}},[n.scrollArea,n.scrollHideDelay]),h.ae.jsx(w.R,{present:t||s,children:h.ae.jsx(ie,{"data-state":s?"visible":"hidden",...o,ref:r})})}),_e=l.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=E(S,e.__scopeScrollArea),s=e.orientation==="horizontal",i=$(()=>a("SCROLL_END"),100),[d,a]=Te("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(d==="idle"){const f=window.setTimeout(()=>a("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(f)}},[d,n.scrollHideDelay,a]),l.useEffect(()=>{const f=n.viewport,c=s?"scrollLeft":"scrollTop";if(f){let x=f[c];const u=()=>{const v=f[c];x!==v&&(a("SCROLL"),i()),x=v};return f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,s,a,i]),h.ae.jsx(w.R,{present:t||d!=="hidden",children:h.ae.jsx(J,{"data-state":d==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:w.y$1(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:w.y$1(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),ie=l.forwardRef((e,r)=>{const t=E(S,e.__scopeScrollArea),{forceMount:o,...n}=e,[s,i]=l.useState(!1),d=e.orientation==="horizontal",a=$(()=>{if(t.viewport){const f=t.viewport.offsetWidth<t.viewport.scrollWidth,c=t.viewport.offsetHeight<t.viewport.scrollHeight;i(d?f:c)}},10);return M(t.viewport,a),M(t.content,a),h.ae.jsx(w.R,{present:o||s,children:h.ae.jsx(J,{"data-state":s?"visible":"hidden",...n,ref:r})})}),J=l.forwardRef((e,r)=>{const{orientation:t="vertical",...o}=e,n=E(S,e.__scopeScrollArea),s=l.useRef(null),i=l.useRef(0),[d,a]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=pe(d.viewport,d.content),c={...o,sizes:d,onSizesChange:a,hasThumb:f>0&&f<1,onThumbChange:u=>s.current=u,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:u=>i.current=u};function x(u,v){return ze(u,i.current,d,v)}return t==="horizontal"?h.ae.jsx(ke,{...c,ref:r,onThumbPositionChange:()=>{if(n.viewport&&s.current){const u=n.viewport.scrollLeft,v=te(u,d,n.dir);s.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:u=>{n.viewport&&(n.viewport.scrollLeft=u)},onDragScroll:u=>{n.viewport&&(n.viewport.scrollLeft=x(u,n.dir))}}):t==="vertical"?h.ae.jsx(De,{...c,ref:r,onThumbPositionChange:()=>{if(n.viewport&&s.current){const u=n.viewport.scrollTop,v=te(u,d);s.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:u=>{n.viewport&&(n.viewport.scrollTop=u)},onDragScroll:u=>{n.viewport&&(n.viewport.scrollTop=x(u))}}):null}),ke=l.forwardRef((e,r)=>{const{sizes:t,onSizesChange:o,...n}=e,s=E(S,e.__scopeScrollArea),[i,d]=l.useState(),a=l.useRef(null),f=w.x(r,a,s.onScrollbarXChange);return l.useEffect(()=>{a.current&&d(getComputedStyle(a.current))},[a]),h.ae.jsx(ce,{"data-orientation":"horizontal",...n,ref:f,sizes:t,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(t)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,x)=>{if(s.viewport){const u=s.viewport.scrollLeft+c.deltaX;e.onWheelScroll(u),fe(u,x)&&c.preventDefault()}},onResize:()=>{a.current&&s.viewport&&i&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:V(i.paddingLeft),paddingEnd:V(i.paddingRight)}})}})}),De=l.forwardRef((e,r)=>{const{sizes:t,onSizesChange:o,...n}=e,s=E(S,e.__scopeScrollArea),[i,d]=l.useState(),a=l.useRef(null),f=w.x(r,a,s.onScrollbarYChange);return l.useEffect(()=>{a.current&&d(getComputedStyle(a.current))},[a]),h.ae.jsx(ce,{"data-orientation":"vertical",...n,ref:f,sizes:t,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(t)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,x)=>{if(s.viewport){const u=s.viewport.scrollTop+c.deltaY;e.onWheelScroll(u),fe(u,x)&&c.preventDefault()}},onResize:()=>{a.current&&s.viewport&&i&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:V(i.paddingTop),paddingEnd:V(i.paddingBottom)}})}})}),[Pe,ae]=ne(S),ce=l.forwardRef((e,r)=>{const{__scopeScrollArea:t,sizes:o,hasThumb:n,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:d,onThumbPositionChange:a,onDragScroll:f,onWheelScroll:c,onResize:x,...u}=e,v=E(S,t),[R,L]=l.useState(null),_=w.x(r,g=>L(g)),m=l.useRef(null),T=l.useRef(""),b=v.viewport,j=o.content-o.viewport,C=w.n(c),A=w.n(a),I=$(x,10);function q(g){if(m.current){const N=g.clientX-m.current.left,z=g.clientY-m.current.top;f({x:N,y:z})}}return l.useEffect(()=>{const g=N=>{const z=N.target;R!=null&&R.contains(z)&&C(N,j)};return document.addEventListener("wheel",g,{passive:!1}),()=>document.removeEventListener("wheel",g,{passive:!1})},[b,R,j,C]),l.useEffect(A,[o,A]),M(R,I),M(v.content,I),h.ae.jsx(Pe,{scope:t,scrollbar:R,hasThumb:n,onThumbChange:w.n(s),onThumbPointerUp:w.n(i),onThumbPositionChange:A,onThumbPointerDown:w.n(d),children:h.ae.jsx(w.h.div,{...u,ref:_,style:{position:"absolute",...u.style},onPointerDown:w.y$1(e.onPointerDown,g=>{g.button===0&&(g.target.setPointerCapture(g.pointerId),m.current=R.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),q(g))}),onPointerMove:w.y$1(e.onPointerMove,q),onPointerUp:w.y$1(e.onPointerUp,g=>{const N=g.target;N.hasPointerCapture(g.pointerId)&&N.releasePointerCapture(g.pointerId),document.body.style.webkitUserSelect=T.current,v.viewport&&(v.viewport.style.scrollBehavior=""),m.current=null})})})}),U="ScrollAreaThumb",de=l.forwardRef((e,r)=>{const{forceMount:t,...o}=e,n=ae(U,e.__scopeScrollArea);return h.ae.jsx(w.R,{present:t||n.hasThumb,children:h.ae.jsx(Me,{ref:r,...o})})}),Me=l.forwardRef((e,r)=>{const{__scopeScrollArea:t,style:o,...n}=e,s=E(U,t),i=ae(U,t),{onThumbPositionChange:d}=i,a=w.x(r,x=>i.onThumbChange(x)),f=l.useRef(void 0),c=$(()=>{f.current&&(f.current(),f.current=void 0)},100);return l.useEffect(()=>{const x=s.viewport;if(x){const u=()=>{if(c(),!f.current){const v=He(x,d);f.current=v,d()}};return d(),x.addEventListener("scroll",u),()=>x.removeEventListener("scroll",u)}},[s.viewport,c,d]),h.ae.jsx(w.h.div,{"data-state":i.hasThumb?"visible":"hidden",...n,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:w.y$1(e.onPointerDownCapture,x=>{const u=x.target.getBoundingClientRect(),v=x.clientX-u.left,R=x.clientY-u.top;i.onThumbPointerDown({x:v,y:R})}),onPointerUp:w.y$1(e.onPointerUp,i.onThumbPointerUp)})});de.displayName=U;var Q="ScrollAreaCorner",ue=l.forwardRef((e,r)=>{const t=E(Q,e.__scopeScrollArea),o=!!(t.scrollbarX&&t.scrollbarY);return t.type!=="scroll"&&o?h.ae.jsx(Ae,{...e,ref:r}):null});ue.displayName=Q;var Ae=l.forwardRef((e,r)=>{const{__scopeScrollArea:t,...o}=e,n=E(Q,t),[s,i]=l.useState(0),[d,a]=l.useState(0),f=!!(s&&d);return M(n.scrollbarX,()=>{var c;const x=((c=n.scrollbarX)==null?void 0:c.offsetHeight)||0;n.onCornerHeightChange(x),a(x)}),M(n.scrollbarY,()=>{var c;const x=((c=n.scrollbarY)==null?void 0:c.offsetWidth)||0;n.onCornerWidthChange(x),i(x)}),f?h.ae.jsx(w.h.div,{...o,ref:r,style:{width:s,height:d,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function V(e){return e?parseInt(e,10):0}function pe(e,r){const t=e/r;return isNaN(t)?0:t}function Y(e){const r=pe(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-t)*r;return Math.max(o,18)}function ze(e,r,t,o="ltr"){const n=Y(t),s=n/2,i=r||s,d=n-i,a=t.scrollbar.paddingStart+i,f=t.scrollbar.size-t.scrollbar.paddingEnd-d,c=t.content-t.viewport,x=o==="ltr"?[0,c]:[c*-1,0];return he([a,f],x)(e)}function te(e,r,t="ltr"){const o=Y(r),n=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,s=r.scrollbar.size-n,i=r.content-r.viewport,d=s-o,a=t==="ltr"?[0,i]:[i*-1,0],f=Re.c(e,a);return he([0,i],[0,d])(f)}function he(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(t-e[0])}}function fe(e,r){return e>0&&e<r}var He=(e,r=()=>{})=>{let t={left:e.scrollLeft,top:e.scrollTop},o=0;return function n(){const s={left:e.scrollLeft,top:e.scrollTop},i=t.left!==s.left,d=t.top!==s.top;(i||d)&&r(),t=s,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function $(e,r){const t=w.n(e),o=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(o.current),[]),l.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(t,r)},[t,r])}function M(e,r){const t=w.n(r);w.w(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,t])}var xe=oe,Ie=le,qe=ue;const me=l.forwardRef(({className:e,children:r,...t},o)=>h.ae.jsxs(xe,{ref:o,className:y.mo("relative overflow-auto",e),...t,children:[h.ae.jsx(Ie,{className:"h-full w-full rounded-[inherit]",children:r}),h.ae.jsx(we,{}),h.ae.jsx(qe,{})]}));me.displayName=xe.displayName;const we=l.forwardRef(({className:e,orientation:r="vertical",...t},o)=>h.ae.jsx(G,{ref:o,orientation:r,className:y.mo("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...t,children:h.ae.jsx(de,{className:"relative flex-1 rounded-full bg-border"})}));we.displayName=G.displayName;const ve=l.forwardRef(({className:e,...r},t)=>h.ae.jsx(me,{className:"w-full",children:h.ae.jsx("table",{ref:t,className:y.mo("caption-bottom text-sm w-full",e),...r})}));ve.displayName="Table";const be=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("thead",{ref:t,className:y.mo("[&_tr]:border-b",e),...r}));be.displayName="TableHeader";const ge=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("tbody",{ref:t,className:y.mo("[&_tr:last-child]:border-0",e),...r}));ge.displayName="TableBody";const We=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("tfoot",{ref:t,className:y.mo("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r}));We.displayName="TableFooter";const W=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("tr",{ref:t,className:y.mo("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...r}));W.displayName="TableRow";const O=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("th",{ref:t,className:y.mo("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...r}));O.displayName="TableHead";const H=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("td",{ref:t,className:y.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...r}));H.displayName="TableCell";const Oe=l.forwardRef(({className:e,...r},t)=>h.ae.jsx("caption",{ref:t,className:y.mo("mt-4 text-sm text-muted-foreground",e),...r}));Oe.displayName="TableCaption";/**
|
|
2
|
+
* @license lucide-react v0.511.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Fe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],Ue=X.createLucideIcon("arrow-down-wide-narrow",Fe);/**
|
|
7
|
+
* @license lucide-react v0.511.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const Ve=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Xe=X.createLucideIcon("arrow-up-down",Ve);/**
|
|
12
|
+
* @license lucide-react v0.511.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Ye=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]],$e=X.createLucideIcon("arrow-up-wide-narrow",Ye);/**
|
|
17
|
+
* @license lucide-react v0.511.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Be=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Ze=X.createLucideIcon("refresh-cw",Be),Ge=({color:e="currentColor",size:r=24,className:t,...o})=>D.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...o,className:"remixicon "+(t||"")},D.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})),Je=({color:e="currentColor",size:r=24,className:t,...o})=>D.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...o,className:"remixicon "+(t||"")},D.createElement("path",{d:"M11 5H5V19H11V5ZM13 5V19H19V5H13ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"})),je=({rows:e=[],columns:r,onRowClick:t,rowKey:o,params:n={page:1,limit:F.DEFAULT_LIMIT},hasNumbers:s=!1,hasCheckbox:i=!1,selectedItems:d,onSelectedItemsChange:a,onSortOrderChange:f})=>{const{sortObject:c,handleSort:x}=B.useSortable({sortField:n==null?void 0:n.sortField,sortOrder:n==null?void 0:n.sortField,onSortOrderChange:f}),{selectedRows:u,isRowSelected:v,isAllRowsSelected:R,handleSelectAllRows:L,handleSelectRow:_}=B.useDataTable({rows:e,defaultSelectedRows:d});return D.useEffect(()=>{a&&a(u)},[u]),p.jsxRuntimeExports.jsx(Ee.ScrollArea,{className:"border-y h-full shrink",children:p.jsxRuntimeExports.jsxs(ve,{children:[p.jsxRuntimeExports.jsx(be,{children:p.jsxRuntimeExports.jsxs(W,{children:[i&&p.jsxRuntimeExports.jsx(O,{className:"w-12 p-3",children:p.jsxRuntimeExports.jsx(k.Ro,{className:"mt-1",checked:R(o),onCheckedChange:m=>L(o,!!m),"aria-label":"Select all"})}),s&&p.jsxRuntimeExports.jsx(O,{className:"w-12 p-2",children:"#"}),r.filter(m=>!m.hidden).map(m=>p.jsxRuntimeExports.jsx(O,{style:m.styles,className:y.mo("p-2",m.sortable&&"cursor-pointer"),onClick:()=>x(m.dataIndex),children:p.jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center",children:[m.name," ",m.sortable&&((c==null?void 0:c.sortField)===m.key?p.jsxRuntimeExports.jsxs(p.jsxRuntimeExports.Fragment,{children:[(c==null?void 0:c.sortOrder)===K.SortOrder.DESC&&p.jsxRuntimeExports.jsx(Ue,{size:15}),(c==null?void 0:c.sortOrder)===K.SortOrder.ASC&&p.jsxRuntimeExports.jsx($e,{size:15})]}):p.jsxRuntimeExports.jsx(Xe,{size:15}))]})},m.key))]})}),p.jsxRuntimeExports.jsx(ge,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:e.length?e.map((m,T)=>p.jsxRuntimeExports.jsxs(W,{onClick:()=>{t&&t(m)},"data-state":v(m[o])&&"selected",children:[i&&p.jsxRuntimeExports.jsx(H,{className:"w-12 p-3",onClick:b=>b.stopPropagation(),children:p.jsxRuntimeExports.jsx(k.Ro,{className:"mt-1",checked:v(m[o]),onCheckedChange:b=>_(m[o],!!b),"aria-label":"Select row"})}),s&&p.jsxRuntimeExports.jsx(H,{className:"w-12 p-2",children:(n.page-1)*(n.limit||F.DEFAULT_LIMIT)+T+1}),r.filter(b=>!b.hidden).map(b=>p.jsxRuntimeExports.jsx(H,{className:"max-w-xs overflow-hidden text-ellipsis p-2 text-body-xs-medium",style:b.styles,children:b.render?b.render(k.lodashExports.get(m,b.dataIndex),m):k.lodashExports.get(m,b.dataIndex,"")},`${T}-${b.key}`))]},`${m[o]}`)):p.jsxRuntimeExports.jsx(W,{children:p.jsxRuntimeExports.jsx(H,{colSpan:s?i?r.length+2:r.length+1:r.length,children:p.jsxRuntimeExports.jsx(ye.Empty,{})})})})]})})},Qe=({dataSource:e,columns:r,onRowClick:t,rowKey:o,hasNumbers:n=!1,hasSearch:s=!1,hasCheckbox:i=!1,hasPagination:d=!1,onParamChange:a,tableKey:f,filters:c=[],handleFilterChange:x,params:u,hasColumnsVisibilityDropdown:v=!1})=>{const{t:R}=Ne.useTranslation(),[L,_]=D.useState([]),{formattedColumns:m,handleColumnsChange:T,resetColumns:b}=B.useColumns({key:f,columns:r});return p.jsxRuntimeExports.jsxs("div",{className:"border border-border-light overflow-hidden rounded-xl w-full shadow-xs !max-h-[calc(100vh-var(--spacing)*24)] flex flex-col",children:[(s||v&&f||!k.lodashExports.isEmpty(c))&&p.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between p-4 gap-3 shrink-0",children:[p.jsxRuntimeExports.jsx("div",{className:"shrink w-full",children:s&&p.jsxRuntimeExports.jsx(ee.Search,{defaultValue:k.lodashExports.get(u,"search",""),onSearchChange:j=>({...u,search:j,page:1})})}),p.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[v&&f&&p.jsxRuntimeExports.jsxs(P.Ot,{children:[p.jsxRuntimeExports.jsx(P.kt,{asChild:!0,children:p.jsxRuntimeExports.jsxs(re.u,{variant:"secondary",size:"sm",className:"ml-auto px-3 rounded-lg",children:[p.jsxRuntimeExports.jsx(Je,{})," ",p.jsxRuntimeExports.jsx("span",{className:"hidden md:inline",children:R("Customize columns")}),p.jsxRuntimeExports.jsx(Ge,{})]})}),p.jsxRuntimeExports.jsxs(P.dt,{align:"end",children:[p.jsxRuntimeExports.jsxs(P.lt,{className:"capitalize",onClick:b,children:[p.jsxRuntimeExports.jsx(Ze,{})," ",R("Reset columns")]}),p.jsxRuntimeExports.jsx(P.vt,{}),m.map(j=>p.jsxRuntimeExports.jsx(P.pt,{className:"capitalize",checked:!j.hidden,onCheckedChange:C=>T(j,!C),children:j.name},j.key))]})]}),!k.lodashExports.isEmpty(c)&&p.jsxRuntimeExports.jsx(ee.FilterWrapper,{filters:c,onFilter:x})]})]}),p.jsxRuntimeExports.jsx(je,{params:u,rows:e==null?void 0:e.docs,rowKey:o,columns:m,hasCheckbox:i,hasNumbers:n,onRowClick:t,onSelectedItemsChange:_,onSortOrderChange:({sortField:j,sortOrder:C})=>{a&&a({...u,sortField:j,sortOrder:C})}}),d&&p.jsxRuntimeExports.jsxs("div",{className:"flex flex-col lg:flex-row items-center justify-between gap-3 p-4 shrink-0",children:[p.jsxRuntimeExports.jsx("div",{className:"text-sm",children:p.jsxRuntimeExports.jsx(F.MyLimitSelect,{onLimitChange:j=>{a&&a({...u,limit:j,page:1})},defaultValue:e==null?void 0:e.limit})}),p.jsxRuntimeExports.jsxs("div",{className:"text-sm text-muted-foreground",children:[L.length," of ",(e==null?void 0:e.total)||0," row(s) selected."]}),p.jsxRuntimeExports.jsx("div",{children:p.jsxRuntimeExports.jsx(F.MyPagination,{onPageChange:j=>{a&&a({...u,page:j})},currentPage:e==null?void 0:e.page,totalPages:e==null?void 0:e.totalPages})})]})]})};exports.DataTable=Qe;exports.MyTable=je;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { j as h } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { n as je, u as Ne } from "./check-DE-1lGDl-
|
|
3
|
-
import { O as Ce, k as Se, d as Re, l as Ee, v as Te, p as _e } from "./dropdown-menu-D3ab2Xna-
|
|
4
|
-
import { D as ee, a as Le, M as ke } from "./MyLimitSelect-
|
|
2
|
+
import { n as je, u as Ne } from "./check-DE-1lGDl-DkXrFGc2.js";
|
|
3
|
+
import { O as Ce, k as Se, d as Re, l as Ee, v as Te, p as _e } from "./dropdown-menu-D3ab2Xna-CINi67M1.js";
|
|
4
|
+
import { D as ee, a as Le, M as ke } from "./MyLimitSelect-CzXrKMLx.js";
|
|
5
5
|
import * as s from "react";
|
|
6
6
|
import U, { useEffect as Pe, useState as De } from "react";
|
|
7
|
-
import { R as re, b as H } from "./MyInput-
|
|
8
|
-
import { a as p
|
|
9
|
-
import { j as Me, h as $, R as O, a as k, n as L, w as Ae } from "./index-DqTIeHVj-
|
|
10
|
-
import { c as ze } from "./select-BehdTDP2-
|
|
7
|
+
import { R as re, b as H } from "./MyInput-8MTMlyJi.js";
|
|
8
|
+
import { a as p } from "./jsx-runtime-C5mzlN2N-B7OU2xWR.js";
|
|
9
|
+
import { x as D, j as Me, h as $, R as O, a as k, n as L, w as Ae } from "./index-DqTIeHVj-DxP9LTGa.js";
|
|
10
|
+
import { c as ze } from "./select-BehdTDP2-CT17SRjr.js";
|
|
11
11
|
import { m as N } from "./utils-D0f6bOsw-HrLsble-.js";
|
|
12
|
-
import { b as He, a as $e, u as We } from "./useSortable-
|
|
12
|
+
import { b as He, a as $e, u as We } from "./useSortable-DV9DxRmE.js";
|
|
13
13
|
import { S as Ie } from "./ScrollArea-DZ-ZHSWz.js";
|
|
14
14
|
import { S as te } from "./SortOrder-CwuehjY1.js";
|
|
15
15
|
import { E as Fe } from "./Empty-BINT6CbW.js";
|
|
16
16
|
import { c as B } from "./createLucideIcon-B950nf2d.js";
|
|
17
|
-
import { S as Ye, F as Ue } from "./FilterWrapper-
|
|
17
|
+
import { S as Ye, F as Ue } from "./FilterWrapper-cmQxaMUg.js";
|
|
18
18
|
import { u as Ve } from "./useTranslation-dH-uwymc.js";
|
|
19
19
|
function Xe(e, t) {
|
|
20
20
|
return s.useReducer((r, n) => t[r][n] ?? r, e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { a as r } from "./useDateRange-
|
|
3
|
-
import { D as s } from "./DateRangePicker-
|
|
2
|
+
import { a as r } from "./useDateRange-3wsTfjgh.js";
|
|
3
|
+
import { D as s } from "./DateRangePicker-B1PUXz_b.js";
|
|
4
4
|
const o = "date", R = ({
|
|
5
5
|
dateKey: e = o
|
|
6
6
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-DUiatUiq.cjs"),s=require("./useDateRange-
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-DUiatUiq.cjs"),s=require("./useDateRange-D5xW8PbO.cjs"),c=require("./DateRangePicker-BpkZvoen.cjs"),e="date",R=({dateKey:t=e})=>{const{range:n,handleRangeSelected:a}=s.useDateRange(t);return r.jsxRuntimeExports.jsx(c.DateRangePicker,{selected:n,onRangeSelected:a})};exports.DEFAULT_DATE_RANGE_KEY=e;exports.DateRangeFilter=R;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { useState as h, useEffect as g, useMemo as v } from "react";
|
|
3
|
-
import { n as k, G as y } from "./timepicker-C_vwQ2np-
|
|
3
|
+
import { n as k, G as y } from "./timepicker-C_vwQ2np-Cga2k0-u.js";
|
|
4
4
|
import { d as r } from "./dayjs.min-C0f7f7oH.js";
|
|
5
|
-
import { u as p } from "./check-DE-1lGDl-
|
|
6
|
-
import { O as N, _ as w, u as M } from "./popover-DDxpKohG-
|
|
5
|
+
import { u as p } from "./check-DE-1lGDl-DkXrFGc2.js";
|
|
6
|
+
import { O as N, _ as w, u as M } from "./popover-DDxpKohG-BuK7DFOj.js";
|
|
7
7
|
import { m as x } from "./utils-D0f6bOsw-HrLsble-.js";
|
|
8
8
|
import { u as L } from "./useTranslation-dH-uwymc.js";
|
|
9
9
|
import { c as T } from "./createLucideIcon-B950nf2d.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),a=require("react"),m=require("./timepicker-C_vwQ2np-
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),a=require("react"),m=require("./timepicker-C_vwQ2np-DfiRBI3t.cjs"),n=require("./dayjs.min-DiHYRps1.cjs"),p=require("./check-DE-1lGDl-DZtCYpHb.cjs"),d=require("./popover-DDxpKohG-CNJh86up.cjs"),y=require("./utils-D0f6bOsw-BmDOeWKv.cjs"),g=require("./useTranslation-CZf20ucv.cjs"),E=require("./createLucideIcon-BnAj0RnC.cjs");/**
|
|
2
2
|
* @license lucide-react v0.511.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { y as $, b as C, a as O, M as D } from "./MyInput-
|
|
3
|
-
import { u as r } from "./check-DE-1lGDl-
|
|
2
|
+
import { y as $, b as C, a as O, M as D } from "./MyInput-8MTMlyJi.js";
|
|
3
|
+
import { u as r } from "./check-DE-1lGDl-DkXrFGc2.js";
|
|
4
4
|
import { u as k } from "./useTranslation-dH-uwymc.js";
|
|
5
5
|
import { c } from "./createLucideIcon-B950nf2d.js";
|
|
6
6
|
import { memo as E, useState as y, useEffect as f, useCallback as b } from "react";
|
|
7
|
-
import { O as q, _ as A, u as I } from "./popover-DDxpKohG-
|
|
8
|
-
import { M as L } from "./MySelect-
|
|
9
|
-
import { u as R } from "./useFilter-
|
|
7
|
+
import { O as q, _ as A, u as I } from "./popover-DDxpKohG-BuK7DFOj.js";
|
|
8
|
+
import { M as L } from "./MySelect-DTtbFWOL.js";
|
|
9
|
+
import { u as R } from "./useFilter-CwUdzeMr.js";
|
|
10
10
|
/**
|
|
11
11
|
* @license lucide-react v0.511.0 - ISC
|
|
12
12
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-DUiatUiq.cjs"),a=require("./MyInput-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-DUiatUiq.cjs"),a=require("./MyInput-DSPqFwp_.cjs"),i=require("./check-DE-1lGDl-DZtCYpHb.cjs"),k=require("./useTranslation-CZf20ucv.cjs"),l=require("./createLucideIcon-BnAj0RnC.cjs"),o=require("react"),j=require("./popover-DDxpKohG-CNJh86up.cjs"),_=require("./MySelect-CBgC3YWh.cjs"),D=require("./useFilter-CyeAQNa3.cjs");/**
|
|
2
2
|
* @license lucide-react v0.511.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";const a=require("./jsx-runtime-DUiatUiq.cjs"),t=require("./jsx-runtime-C5mzlN2N-DL7cGycY.cjs"),p=require("react"),f=require("./index-Br4MVOGV-_x7Q_qhf.cjs"),c=require("./utils-D0f6bOsw-BmDOeWKv.cjs"),h=require("./createLucideIcon-B950nf2d-CZOa427T.cjs"),x=require("./chunk-NL6KNZEE-DuqqbKAc.cjs"),y=require("./createLucideIcon-BnAj0RnC.cjs");function N(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:()=>r[s]})}}return e.default=r,Object.freeze(e)}const l=N(p);/**
|
|
2
|
+
* @license lucide-react v0.511.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const b=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],R=h.k("ellipsis",b),d=l.forwardRef(({...r},e)=>t.ae.jsx("nav",{ref:e,"aria-label":"breadcrumb",...r}));d.displayName="Breadcrumb";const m=l.forwardRef(({className:r,...e},s)=>t.ae.jsx("ol",{ref:s,className:c.mo("flex flex-wrap items-center gap-1.5 break-words",r),...e}));m.displayName="BreadcrumbList";const o=l.forwardRef(({className:r,...e},s)=>t.ae.jsx("li",{ref:s,className:c.mo("inline-flex items-center gap-1.5",r),...e}));o.displayName="BreadcrumbItem";const u=l.forwardRef(({className:r,...e},s)=>t.ae.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:c.mo("font-normal text-foreground",r),...e}));u.displayName="BreadcrumbPage";const i=({children:r,className:e,...s})=>t.ae.jsx("li",{role:"presentation","aria-hidden":"true",className:c.mo(" text-secondary [&>svg]:size-4",e),...s,children:r??t.ae.jsx(f.c,{size:20})});i.displayName="BreadcrumbSeparator";const j=({className:r,...e})=>t.ae.jsxs("span",{role:"presentation","aria-hidden":"true",className:c.mo("flex h-9 w-9 items-center justify-center",r),...e,children:[t.ae.jsx(R,{className:"h-4 w-4"}),t.ae.jsx("span",{className:"sr-only",children:"More"})]});j.displayName="BreadcrumbElipssis";/**
|
|
7
|
+
* @license lucide-react v0.511.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const g=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],E=y.createLucideIcon("house",g),k=({breadcrumbs:r=[]})=>a.jsxRuntimeExports.jsx(d,{children:a.jsxRuntimeExports.jsxs(m,{children:[a.jsxRuntimeExports.jsx(o,{children:a.jsxRuntimeExports.jsx(x.Link,{className:c.mo("transition-colors text-body-md-regular text-secondary hover:text-primary"),to:"/",children:a.jsxRuntimeExports.jsx(E,{className:"size-4"})})}),a.jsxRuntimeExports.jsx(i,{}),r.reduce((e,s,n)=>(n&&s.path&&(s={...s,path:[e[n-1].path,s.path].join("/")}),e.push(s),e),[]).map((e,s)=>a.jsxRuntimeExports.jsxs(p.Fragment,{children:[a.jsxRuntimeExports.jsx(o,{children:e.isActive?a.jsxRuntimeExports.jsx(u,{children:e.name}):a.jsxRuntimeExports.jsx(x.Link,{className:c.mo("transition-colors text-body-md-regular text-secondary hover:text-primary"),to:e.path,children:e.name})}),s+1!==r.length&&a.jsxRuntimeExports.jsx(i,{})]},s))]})});exports.MyBreadcrumb=k;exports.d=o;exports.f=j;exports.l=d;exports.n=u;exports.o=m;exports.p=i;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { a as c } from "./jsx-runtime-C5mzlN2N-B7OU2xWR.js";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { Fragment as f } from "react";
|
|
5
|
+
import { c as h } from "./index-Br4MVOGV-BTDQ_Wwy.js";
|
|
6
|
+
import { m as t } from "./utils-D0f6bOsw-HrLsble-.js";
|
|
7
|
+
import { k as j } from "./createLucideIcon-B950nf2d-BaiVcVeO.js";
|
|
8
|
+
import { L as m } from "./chunk-NL6KNZEE-Dz183p0-.js";
|
|
9
|
+
import { c as y } from "./createLucideIcon-B950nf2d.js";
|
|
10
|
+
/**
|
|
11
|
+
* @license lucide-react v0.511.0 - ISC
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the ISC license.
|
|
14
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
const u = [
|
|
17
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
18
|
+
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
19
|
+
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
20
|
+
], N = j("ellipsis", u), d = o.forwardRef(({ ...a }, e) => /* @__PURE__ */ c.jsx("nav", { ref: e, "aria-label": "breadcrumb", ...a }));
|
|
21
|
+
d.displayName = "Breadcrumb";
|
|
22
|
+
const p = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ c.jsx(
|
|
23
|
+
"ol",
|
|
24
|
+
{
|
|
25
|
+
ref: r,
|
|
26
|
+
className: t("flex flex-wrap items-center gap-1.5 break-words", a),
|
|
27
|
+
...e
|
|
28
|
+
}
|
|
29
|
+
));
|
|
30
|
+
p.displayName = "BreadcrumbList";
|
|
31
|
+
const l = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ c.jsx(
|
|
32
|
+
"li",
|
|
33
|
+
{
|
|
34
|
+
ref: r,
|
|
35
|
+
className: t("inline-flex items-center gap-1.5", a),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
));
|
|
39
|
+
l.displayName = "BreadcrumbItem";
|
|
40
|
+
const x = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ c.jsx(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
ref: r,
|
|
44
|
+
role: "link",
|
|
45
|
+
"aria-disabled": "true",
|
|
46
|
+
"aria-current": "page",
|
|
47
|
+
className: t("font-normal text-foreground", a),
|
|
48
|
+
...e
|
|
49
|
+
}
|
|
50
|
+
));
|
|
51
|
+
x.displayName = "BreadcrumbPage";
|
|
52
|
+
const i = ({
|
|
53
|
+
children: a,
|
|
54
|
+
className: e,
|
|
55
|
+
...r
|
|
56
|
+
}) => /* @__PURE__ */ c.jsx(
|
|
57
|
+
"li",
|
|
58
|
+
{
|
|
59
|
+
role: "presentation",
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
className: t(" text-secondary [&>svg]:size-4", e),
|
|
62
|
+
...r,
|
|
63
|
+
children: a ?? /* @__PURE__ */ c.jsx(h, { size: 20 })
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
i.displayName = "BreadcrumbSeparator";
|
|
67
|
+
const b = ({
|
|
68
|
+
className: a,
|
|
69
|
+
...e
|
|
70
|
+
}) => /* @__PURE__ */ c.jsxs(
|
|
71
|
+
"span",
|
|
72
|
+
{
|
|
73
|
+
role: "presentation",
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
className: t("flex h-9 w-9 items-center justify-center", a),
|
|
76
|
+
...e,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ c.jsx(N, { className: "h-4 w-4" }),
|
|
79
|
+
/* @__PURE__ */ c.jsx("span", { className: "sr-only", children: "More" })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
b.displayName = "BreadcrumbElipssis";
|
|
84
|
+
/**
|
|
85
|
+
* @license lucide-react v0.511.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/
|
|
90
|
+
const g = [
|
|
91
|
+
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
92
|
+
[
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
96
|
+
key: "1d0kgt"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
], w = y("house", g), E = ({ breadcrumbs: a = [] }) => /* @__PURE__ */ s.jsx(d, { children: /* @__PURE__ */ s.jsxs(p, { children: [
|
|
100
|
+
/* @__PURE__ */ s.jsx(l, { children: /* @__PURE__ */ s.jsx(
|
|
101
|
+
m,
|
|
102
|
+
{
|
|
103
|
+
className: t(
|
|
104
|
+
"transition-colors text-body-md-regular text-secondary hover:text-primary"
|
|
105
|
+
),
|
|
106
|
+
to: "/",
|
|
107
|
+
children: /* @__PURE__ */ s.jsx(w, { className: "size-4" })
|
|
108
|
+
}
|
|
109
|
+
) }),
|
|
110
|
+
/* @__PURE__ */ s.jsx(i, {}),
|
|
111
|
+
a.reduce((e, r, n) => (n && r.path && (r = {
|
|
112
|
+
...r,
|
|
113
|
+
path: [e[n - 1].path, r.path].join("/")
|
|
114
|
+
}), e.push(r), e), []).map((e, r) => /* @__PURE__ */ s.jsxs(f, { children: [
|
|
115
|
+
/* @__PURE__ */ s.jsx(l, { children: e.isActive ? /* @__PURE__ */ s.jsx(x, { children: e.name }) : /* @__PURE__ */ s.jsx(
|
|
116
|
+
m,
|
|
117
|
+
{
|
|
118
|
+
className: t(
|
|
119
|
+
"transition-colors text-body-md-regular text-secondary hover:text-primary"
|
|
120
|
+
),
|
|
121
|
+
to: e.path,
|
|
122
|
+
children: e.name
|
|
123
|
+
}
|
|
124
|
+
) }),
|
|
125
|
+
r + 1 !== a.length && /* @__PURE__ */ s.jsx(i, {})
|
|
126
|
+
] }, r))
|
|
127
|
+
] }) });
|
|
128
|
+
export {
|
|
129
|
+
E as M,
|
|
130
|
+
l as d,
|
|
131
|
+
b as f,
|
|
132
|
+
d as l,
|
|
133
|
+
x as n,
|
|
134
|
+
p as o,
|
|
135
|
+
i as p
|
|
136
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as Ut } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { a as _e
|
|
2
|
+
import { a as _e } from "./jsx-runtime-C5mzlN2N-B7OU2xWR.js";
|
|
3
3
|
import * as ye from "react";
|
|
4
|
-
import Ce, { useState as Qc, useEffect as
|
|
5
|
-
import { j as _d, R as oI, h as xn, y as Ed, a as Da } from "./index-DqTIeHVj-
|
|
6
|
-
import { F as vd } from "./select-BehdTDP2-
|
|
7
|
-
import { D as yd } from "./index-DFLDO_Wj-
|
|
4
|
+
import Ce, { useState as Qc, useEffect as eI, createElement as Aa, useDebugValue as Zc, useRef as tI, useContext as rI } from "react";
|
|
5
|
+
import { e as nI, j as _d, R as oI, h as xn, x as Di, y as Ed, a as Da } from "./index-DqTIeHVj-DxP9LTGa.js";
|
|
6
|
+
import { F as vd } from "./select-BehdTDP2-CT17SRjr.js";
|
|
7
|
+
import { D as yd } from "./index-DFLDO_Wj-Cy1_wAhk.js";
|
|
8
8
|
import { C as iI, i as sI, w as aI, m as lI } from "./index-Br4MVOGV-BTDQ_Wwy.js";
|
|
9
9
|
import { m as Vt } from "./utils-D0f6bOsw-HrLsble-.js";
|
|
10
|
-
import { j as Td, u as uI } from "./check-DE-1lGDl-
|
|
10
|
+
import { j as Td, u as uI } from "./check-DE-1lGDl-DkXrFGc2.js";
|
|
11
11
|
import { c as ri } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
12
12
|
var so = { exports: {} };
|
|
13
13
|
/**
|
|
@@ -3947,7 +3947,7 @@ const Dd = Td(
|
|
|
3947
3947
|
), xa = ye.forwardRef(
|
|
3948
3948
|
({ className: e, type: o, variant: n, ...s }, a) => {
|
|
3949
3949
|
const [c, u] = Qc(!1), [p, d] = Qc(!1);
|
|
3950
|
-
return
|
|
3950
|
+
return eI(() => {
|
|
3951
3951
|
u(o === "password");
|
|
3952
3952
|
}, [o]), /* @__PURE__ */ _e.jsxs("div", { className: "relative", children: [
|
|
3953
3953
|
/* @__PURE__ */ _e.jsx(
|
|
@@ -4587,7 +4587,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
4587
4587
|
console.error = function(u) {
|
|
4588
4588
|
for (var p = [], d = 1; d < arguments.length; d++) p[d - 1] = arguments[d];
|
|
4589
4589
|
nf.test(u) ? (c = !1, ni.delete(s)) : a.apply(void 0, bn([u], p, !1));
|
|
4590
|
-
},
|
|
4590
|
+
}, tI(), c && !ni.has(s) && (console.warn(s), ni.add(s));
|
|
4591
4591
|
} catch (u) {
|
|
4592
4592
|
nf.test(u.message) && ni.delete(s);
|
|
4593
4593
|
} finally {
|
|
@@ -4929,7 +4929,7 @@ var E0 = new Hd(), ka = _0(), jd = Ce.createContext({ shouldForwardProp: void 0,
|
|
|
4929
4929
|
jd.Consumer;
|
|
4930
4930
|
Ce.createContext(void 0);
|
|
4931
4931
|
function pf() {
|
|
4932
|
-
return
|
|
4932
|
+
return rI(jd);
|
|
4933
4933
|
}
|
|
4934
4934
|
var hf = function() {
|
|
4935
4935
|
function e(o, n) {
|
|
@@ -9937,7 +9937,7 @@ Zp.displayName = "FormLabel";
|
|
|
9937
9937
|
const Jp = ye.forwardRef(({ ...e }, o) => {
|
|
9938
9938
|
const { error: n, formItemId: s, formDescriptionId: a, formMessageId: c } = zi();
|
|
9939
9939
|
return /* @__PURE__ */ _e.jsx(
|
|
9940
|
-
|
|
9940
|
+
nI,
|
|
9941
9941
|
{
|
|
9942
9942
|
ref: o,
|
|
9943
9943
|
id: s,
|