dgz-ui-shared 1.1.15 → 1.1.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.
@@ -1,14 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),Y=require("../../button-2punbuN6-BBVynxVj.cjs"),N=require("../../dropdown-menu-lArmcWbC-DCwGoXng.cjs"),T=require("../../MyLimitSelect-DHyIJawN.cjs"),W=require("../../index-CGv7FLNy.cjs"),n=require("react"),y=require("../../lodash-C5w_OPmE.cjs"),m=require("../../index-CiR6yUKf-B1h5S0LB.cjs"),c=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),D=require("../../useSortable-ByFhUHQb.cjs"),S=require("../../input-mask-Chc-UIWX-DimBl_dd.cjs"),H=require("../../SortOrder-81BrXp3i.cjs"),Z=require("../../Empty-C2sFuxBi.cjs"),L=require("../../createLucideIcon-BnAj0RnC.cjs"),V=require("../../FilterWrapper-B-SZn3JY.cjs"),K=require("../../Loader-BsYF7B7O.cjs"),C=require("../../Actions-Dg5LYo56.cjs"),P=require("../../ExportData-DUuHYzA-.cjs"),ee=require("../../useTranslation-CZf20ucv.cjs"),B=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("table",{ref:i,className:c.mo("w-full caption-bottom text-sm",s),...t}));B.displayName="Table";const O=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("thead",{ref:i,className:c.mo("[&_tr]:border-b",s),...t}));O.displayName="TableHeader";const U=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tbody",{ref:i,className:c.mo("[&_tr:last-child]:border-0",s),...t}));U.displayName="TableBody";const se=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tfoot",{ref:i,className:c.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...t}));se.displayName="TableFooter";const M=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tr",{ref:i,className:c.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...t}));M.displayName="TableRow";const q=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("th",{ref:i,className:c.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...t}));q.displayName="TableHead";const w=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("td",{ref:i,className:c.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...t}));w.displayName="TableCell";const te=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("caption",{ref:i,className:c.mo("text-muted-foreground mt-4 text-sm",s),...t}));te.displayName="TableCaption";/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-h4oGeKUK.cjs"),Z=require("../../button-2punbuN6-BBVynxVj.cjs"),N=require("../../dropdown-menu-lArmcWbC-DCwGoXng.cjs"),T=require("../../MyLimitSelect-DHyIJawN.cjs"),W=require("../../index-CGv7FLNy.cjs"),c=require("react"),y=require("../../lodash-C5w_OPmE.cjs"),m=require("../../index-CiR6yUKf-B1h5S0LB.cjs"),n=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),D=require("../../useSortable-ByFhUHQb.cjs"),H=require("../../input-mask-Chc-UIWX-DimBl_dd.cjs"),V=require("../../SortOrder-81BrXp3i.cjs"),K=require("../../Empty-C2sFuxBi.cjs"),L=require("../../createLucideIcon-BnAj0RnC.cjs"),B=require("../../FilterWrapper-B-SZn3JY.cjs"),S=require("../../Loader-BsYF7B7O.cjs"),C=require("../../Actions-Dg5LYo56.cjs"),P=require("../../ExportData-DUuHYzA-.cjs"),ee=require("../../useTranslation-CZf20ucv.cjs"),O=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("table",{ref:r,className:n.mo("w-full caption-bottom text-sm",s),...t}));O.displayName="Table";const U=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("thead",{ref:r,className:n.mo("[&_tr]:border-b",s),...t}));U.displayName="TableHeader";const X=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("tbody",{ref:r,className:n.mo("[&_tr:last-child]:border-0",s),...t}));X.displayName="TableBody";const se=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("tfoot",{ref:r,className:n.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...t}));se.displayName="TableFooter";const M=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("tr",{ref:r,className:n.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...t}));M.displayName="TableRow";const q=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("th",{ref:r,className:n.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...t}));q.displayName="TableHead";const w=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("td",{ref:r,className:n.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...t}));w.displayName="TableCell";const te=c.forwardRef(({className:s,...t},r)=>m.ae.jsx("caption",{ref:r,className:n.mo("text-muted-foreground mt-4 text-sm",s),...t}));te.displayName="TableCaption";/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const re=[["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"}]],ie=L.createLucideIcon("arrow-down-wide-narrow",re);/**
6
+ */const ie=[["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"}]],re=L.createLucideIcon("arrow-down-wide-narrow",ie);/**
7
7
  * @license lucide-react v0.511.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const xe=[["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"}]],le=L.createLucideIcon("arrow-up-down",xe);/**
11
+ */const le=[["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=L.createLucideIcon("arrow-up-down",le);/**
12
12
  * @license lucide-react v0.511.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const ce=[["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"}]],ne=L.createLucideIcon("refresh-cw",ce),X=({rows:s=[],columns:t,onRowClick:i,rowKey:j,params:a={page:1,limit:T.DEFAULT_LIMIT},hasNumbers:f=!1,hasCheckbox:u=!1,selectedItems:I,onSelectedItemsChange:k,onSortOrderChange:_,isStickyHeader:x})=>{const{sortObject:d,handleSort:A}=D.useSortable({sortField:a==null?void 0:a.sortField,sortOrder:a==null?void 0:a.sortOrder,onSortOrderChange:_}),{selectedRows:E,isRowSelected:R,isAllRowsSelected:g,handleSelectAllRows:b,handleSelectRow:p}=D.useDataTable({rows:s,defaultSelectedRows:I});return n.useEffect(()=>{k&&k(E)},[E]),e.jsxRuntimeExports.jsxs(B,{className:"relative",children:[e.jsxRuntimeExports.jsx(O,{className:c.mo("bg-bg",x&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(M,{children:[u&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(S.dp,{className:"mt-1",checked:g(j),onCheckedChange:r=>b(j,!!r),"aria-label":"Select all"})}),f&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-2",children:"#"}),t.filter(r=>!r.hidden).map(r=>e.jsxRuntimeExports.jsx(q,{style:r.styles,className:c.mo("p-2",r.sortable&&"cursor-pointer"),onClick:()=>r.sortable&&A(r.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[r.name," ",r.sortable&&((d==null?void 0:d.sortField)===r.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(d==null?void 0:d.sortOrder)===H.SortOrder.DESC&&e.jsxRuntimeExports.jsx(ie,{size:15}),(d==null?void 0:d.sortOrder)===H.SortOrder.ASC&&e.jsxRuntimeExports.jsx(de,{size:15})]}):e.jsxRuntimeExports.jsx(le,{size:15}))]})},r.key))]})}),e.jsxRuntimeExports.jsx(U,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((r,h)=>e.jsxRuntimeExports.jsxs(M,{onClick:()=>i==null?void 0:i(r),className:c.mo(i&&"cursor-pointer"),"data-state":R(r[j])&&"selected",children:[u&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-3",onClick:l=>l.stopPropagation(),children:e.jsxRuntimeExports.jsx(S.dp,{className:"mt-1",checked:R(r[j]),onCheckedChange:l=>p(r[j],!!l),"aria-label":"Select row"})}),f&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-2",children:(a.page-1)*(a.limit||T.DEFAULT_LIMIT)+h+1}),t.filter(l=>!l.hidden).map(l=>e.jsxRuntimeExports.jsx(w,{className:"text-body-xs-medium max-w-xs p-2",style:l.styles,children:l.render?l.render(y.lodashExports.get(r,l.dataIndex),r):y.lodashExports.get(r,l.dataIndex,"")},`${h}-${l.key}`))]},`${r[j]}`)):e.jsxRuntimeExports.jsx(M,{children:e.jsxRuntimeExports.jsx(w,{colSpan:f?u?t.length+2:t.length+1:t.length,children:e.jsxRuntimeExports.jsx(Z.Empty,{})})})})]})},ae=({dataSource:s,columns:t,onRowClick:i,rowKey:j,hasNumbers:a,hasSearch:f,exportOptions:u,hasCheckbox:I,hasPagination:k,isStickyHeader:_,onParamChange:x,dataKey:d="docs",loading:A,tableKey:E,filters:R,actions:g,handleFilterChange:b,params:p,exportLoading:r=!1,onColumnsUpdate:h,hasColumnsVisibilityDropdown:l})=>{const{t:$}=ee.useTranslation(),[F,G]=n.useState([]),{formattedColumns:v,handleColumnsChange:J,resetColumns:Q}=D.useColumns({key:E,columns:t});return n.useEffect(()=>{h==null||h(v)},[v,h]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(f||l&&E||!y.lodashExports.isEmpty(u)||!y.lodashExports.isEmpty(R))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:f&&e.jsxRuntimeExports.jsx(V.Search,{defaultValue:y.lodashExports.get(p,"search",""),onSearchChange:o=>x==null?void 0:x({...p,search:o,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[u&&e.jsxRuntimeExports.jsx(P.ExportData,{options:u,loading:r}),l&&E&&e.jsxRuntimeExports.jsxs(N.jt,{children:[e.jsxRuntimeExports.jsx(N.Tt,{asChild:!0,children:e.jsxRuntimeExports.jsxs(Y.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[e.jsxRuntimeExports.jsx(W.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:$("Customize columns")}),e.jsxRuntimeExports.jsx(W.f1,{})]})}),e.jsxRuntimeExports.jsxs(N.it,{align:"end",children:[e.jsxRuntimeExports.jsxs(N.ut,{className:"capitalize",onClick:Q,children:[e.jsxRuntimeExports.jsx(ne,{})," ",$("Reset columns")]}),e.jsxRuntimeExports.jsx(N.ft,{}),v.map(o=>e.jsxRuntimeExports.jsx(N.dt,{className:"capitalize",checked:!o.hidden,onCheckedChange:z=>J(o,!z),children:o.name},o.key))]})]}),g&&e.jsxRuntimeExports.jsx(C.Actions,{actions:g}),R&&e.jsxRuntimeExports.jsx(V.FilterWrapper,{filters:R,onFilter:o=>{x==null||x({...p,...o,page:1}),b==null||b(o)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:A?e.jsxRuntimeExports.jsx(K.Loader,{}):e.jsxRuntimeExports.jsx(X,{params:p,rows:y.lodashExports.get(s,d,[]),rowKey:j,selectedItems:F,isStickyHeader:_,columns:v,hasCheckbox:I,hasNumbers:a,onRowClick:i,onSelectedItemsChange:G,onSortOrderChange:({sortField:o,sortOrder:z})=>{x==null||x({...p,sortField:o,sortOrder:z})}})}),k&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(T.MyLimitSelect,{onLimitChange:o=>x==null?void 0:x({...p,limit:o,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[F.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(T.MyPagination,{onPageChange:o=>x==null?void 0:x({...p,page:o}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=ae;exports.MyTable=X;
21
+ */const ne=[["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"}]],ce=L.createLucideIcon("refresh-cw",ne),G=({rows:s=[],columns:t,onRowClick:r,rowKey:j,params:p={page:1,limit:T.DEFAULT_LIMIT},hasNumbers:f=!1,hasCheckbox:u=!1,selectedItems:I,onSelectedItemsChange:k,onSortOrderChange:_,isStickyHeader:l})=>{const{sortObject:d,handleSort:A}=D.useSortable({sortField:p==null?void 0:p.sortField,sortOrder:p==null?void 0:p.sortOrder,onSortOrderChange:_}),{selectedRows:E,isRowSelected:R,isAllRowsSelected:g,handleSelectAllRows:b,handleSelectRow:a}=D.useDataTable({rows:s,defaultSelectedRows:I});return c.useEffect(()=>{k&&k(E)},[E]),e.jsxRuntimeExports.jsxs(O,{className:"relative",children:[e.jsxRuntimeExports.jsx(U,{className:n.mo("bg-bg",l&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(M,{children:[u&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(H.dp,{className:"mt-1",checked:g(j),onCheckedChange:i=>b(j,!!i),"aria-label":"Select all"})}),f&&e.jsxRuntimeExports.jsx(q,{className:"w-12 p-2",children:"#"}),t.filter(i=>!i.hidden).map(i=>e.jsxRuntimeExports.jsx(q,{style:i.styles,className:n.mo("p-2",i.sortable&&"cursor-pointer"),onClick:()=>i.sortable&&A(i.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[i.name," ",i.sortable&&((d==null?void 0:d.sortField)===i.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(d==null?void 0:d.sortOrder)===V.SortOrder.DESC&&e.jsxRuntimeExports.jsx(re,{size:15}),(d==null?void 0:d.sortOrder)===V.SortOrder.ASC&&e.jsxRuntimeExports.jsx(de,{size:15})]}):e.jsxRuntimeExports.jsx(xe,{size:15}))]})},i.key))]})}),e.jsxRuntimeExports.jsx(X,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((i,h)=>e.jsxRuntimeExports.jsxs(M,{onClick:()=>r==null?void 0:r(i),className:n.mo(r&&"cursor-pointer"),"data-state":R(i[j])&&"selected",children:[u&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-3",onClick:x=>x.stopPropagation(),children:e.jsxRuntimeExports.jsx(H.dp,{className:"mt-1",checked:R(i[j]),onCheckedChange:x=>a(i[j],!!x),"aria-label":"Select row"})}),f&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-2",children:(p.page-1)*(p.limit||T.DEFAULT_LIMIT)+h+1}),t.filter(x=>!x.hidden).map(x=>e.jsxRuntimeExports.jsx(w,{className:"text-body-xs-medium max-w-xs p-2",style:x.styles,children:x.render?x.render(y.lodashExports.get(i,x.dataIndex),i):y.lodashExports.get(i,x.dataIndex,"")},`${h}-${x.key}`))]},`${i[j]}`)):e.jsxRuntimeExports.jsx(M,{children:e.jsxRuntimeExports.jsx(w,{colSpan:f?u?t.length+2:t.length+1:t.length,children:e.jsxRuntimeExports.jsx(K.Empty,{})})})})]})},pe=({dataSource:s,columns:t,onRowClick:r,rowKey:j,hasNumbers:p,hasSearch:f,exportOptions:u,hasCheckbox:I,hasPagination:k,isStickyHeader:_,onParamChange:l,dataKey:d="docs",loading:A,tableKey:E,filters:R,actions:g,handleFilterChange:b,params:a,exportLoading:i=!1,onColumnsUpdate:h,hasColumnsVisibilityDropdown:x})=>{const{t:$}=ee.useTranslation(),[F,J]=c.useState([]),{formattedColumns:v,handleColumnsChange:Q,resetColumns:Y}=D.useColumns({key:E,columns:t});return c.useEffect(()=>{h==null||h(v)},[v,h]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(f||x&&E||!y.lodashExports.isEmpty(u)||!y.lodashExports.isEmpty(R))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:f&&e.jsxRuntimeExports.jsx(B.Search,{defaultValue:y.lodashExports.get(a,"search",""),onSearchChange:o=>l==null?void 0:l({...a,search:o,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[u&&e.jsxRuntimeExports.jsx(P.ExportData,{options:u,loading:i}),x&&E&&e.jsxRuntimeExports.jsxs(N.jt,{children:[e.jsxRuntimeExports.jsx(N.Tt,{asChild:!0,children:e.jsxRuntimeExports.jsxs(Z.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[e.jsxRuntimeExports.jsx(W.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:$("Customize columns")}),e.jsxRuntimeExports.jsx(W.f1,{})]})}),e.jsxRuntimeExports.jsxs(N.it,{align:"end",children:[e.jsxRuntimeExports.jsxs(N.ut,{className:"capitalize",onClick:Y,children:[e.jsxRuntimeExports.jsx(ce,{})," ",$("Reset columns")]}),e.jsxRuntimeExports.jsx(N.ft,{}),v.map(o=>e.jsxRuntimeExports.jsx(N.dt,{className:"capitalize",checked:!o.hidden,onCheckedChange:z=>Q(o,!z),children:o.name},o.key))]})]}),g&&e.jsxRuntimeExports.jsx(C.Actions,{actions:g}),R&&e.jsxRuntimeExports.jsx(B.FilterWrapper,{filters:R,params:a,onFilter:o=>{l==null||l({...a,...o,page:1}),b==null||b(o)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:A?e.jsxRuntimeExports.jsx(S.Loader,{}):e.jsxRuntimeExports.jsx(G,{params:{page:(s==null?void 0:s.page)||1,limit:s==null?void 0:s.limit,...a},rows:y.lodashExports.get(s,d,[]),rowKey:j,selectedItems:F,isStickyHeader:_,columns:v,hasCheckbox:I,hasNumbers:p,onRowClick:r,onSelectedItemsChange:J,onSortOrderChange:({sortField:o,sortOrder:z})=>{l==null||l({...a,sortField:o,sortOrder:z})}})}),k&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(T.MyLimitSelect,{onLimitChange:o=>l==null?void 0:l({...a,limit:o,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[F.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(T.MyPagination,{onPageChange:o=>l==null?void 0:l({...a,page:o}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=pe;exports.MyTable=G;
@@ -1,48 +1,48 @@
1
1
  import { j as e } from "../../jsx-runtime-DS1N_tNq.js";
2
- import { u as S } from "../../button-2punbuN6-Bxlf8sMg.js";
3
- import { j as X, T as Y, i as Z, u as O, f as U, d as K } from "../../dropdown-menu-lArmcWbC-jIg7CHSO.js";
4
- import { D as $, a as C, M as P } from "../../MyLimitSelect-XMVeSEqs.js";
2
+ import { u as X } from "../../button-2punbuN6-Bxlf8sMg.js";
3
+ import { j as Y, T as Z, i as O, u as U, f as K, d as S } from "../../dropdown-menu-lArmcWbC-jIg7CHSO.js";
4
+ import { D as F, a as C, M as P } from "../../MyLimitSelect-XMVeSEqs.js";
5
5
  import { y as ee, f as se } from "../../index-BrQ82Wyu.js";
6
- import { forwardRef as p, useEffect as H, useState as te } from "react";
6
+ import { forwardRef as f, useEffect as H, useState as te } from "react";
7
7
  import { l as k } from "../../lodash-CYNxjS-I.js";
8
8
  import { a as h } from "../../index-CiR6yUKf-BEMUeikM.js";
9
9
  import { m as o } from "../../utils-B6fNqzRf-B1_jG1K7.js";
10
- import { u as le, a as de, b as ie } from "../../useSortable-DRvyr1Gy.js";
11
- import { d as F } from "../../input-mask-Chc-UIWX-Br4gXX2T.js";
10
+ import { u as le, a as ie, b as de } from "../../useSortable-DRvyr1Gy.js";
11
+ import { d as u } from "../../input-mask-Chc-UIWX-Br4gXX2T.js";
12
12
  import { S as q } from "../../SortOrder-CwuehjY1.js";
13
13
  import { E as re } from "../../Empty-_eAFU6r6.js";
14
- import { c as _ } from "../../createLucideIcon-B950nf2d.js";
15
- import { S as ae, F as ce } from "../../FilterWrapper-Dz_yEwjp.js";
14
+ import { c as A } from "../../createLucideIcon-B950nf2d.js";
15
+ import { S as ce, F as ae } from "../../FilterWrapper-Dz_yEwjp.js";
16
16
  import { L as oe } from "../../Loader-gLl5AAz4.js";
17
17
  import { A as xe } from "../../Actions-1AyyAnYT.js";
18
18
  import { E as me } from "../../ExportData-dSwR1N1v.js";
19
- import { u as fe } from "../../useTranslation-dH-uwymc.js";
20
- const V = p(
21
- ({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
19
+ import { u as pe } from "../../useTranslation-dH-uwymc.js";
20
+ const V = f(
21
+ ({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
22
22
  "table",
23
23
  {
24
- ref: d,
24
+ ref: i,
25
25
  className: o("w-full caption-bottom text-sm", s),
26
26
  ...t
27
27
  }
28
28
  )
29
29
  );
30
30
  V.displayName = "Table";
31
- const W = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx("thead", { ref: d, className: o("[&_tr]:border-b", s), ...t }));
31
+ const W = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx("thead", { ref: i, className: o("[&_tr]:border-b", s), ...t }));
32
32
  W.displayName = "TableHeader";
33
- const B = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
33
+ const B = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
34
34
  "tbody",
35
35
  {
36
- ref: d,
36
+ ref: i,
37
37
  className: o("[&_tr:last-child]:border-0", s),
38
38
  ...t
39
39
  }
40
40
  ));
41
41
  B.displayName = "TableBody";
42
- const pe = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
42
+ const fe = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
43
43
  "tfoot",
44
44
  {
45
- ref: d,
45
+ ref: i,
46
46
  className: o(
47
47
  "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
48
48
  s
@@ -50,11 +50,11 @@ const pe = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
50
50
  ...t
51
51
  }
52
52
  ));
53
- pe.displayName = "TableFooter";
54
- const u = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
53
+ fe.displayName = "TableFooter";
54
+ const E = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
55
55
  "tr",
56
56
  {
57
- ref: d,
57
+ ref: i,
58
58
  className: o(
59
59
  "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
60
60
  s
@@ -62,11 +62,11 @@ const u = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
62
62
  ...t
63
63
  }
64
64
  ));
65
- u.displayName = "TableRow";
66
- const E = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
65
+ E.displayName = "TableRow";
66
+ const _ = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
67
67
  "th",
68
68
  {
69
- ref: d,
69
+ ref: i,
70
70
  className: o(
71
71
  "text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",
72
72
  s
@@ -74,20 +74,20 @@ const E = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
74
74
  ...t
75
75
  }
76
76
  ));
77
- E.displayName = "TableHead";
78
- const g = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
77
+ _.displayName = "TableHead";
78
+ const w = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
79
79
  "td",
80
80
  {
81
- ref: d,
81
+ ref: i,
82
82
  className: o("p-4 align-middle [&:has([role=checkbox])]:pr-0", s),
83
83
  ...t
84
84
  }
85
85
  ));
86
- g.displayName = "TableCell";
87
- const he = p(({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
86
+ w.displayName = "TableCell";
87
+ const he = f(({ className: s, ...t }, i) => /* @__PURE__ */ h.jsx(
88
88
  "caption",
89
89
  {
90
- ref: d,
90
+ ref: i,
91
91
  className: o("text-muted-foreground mt-4 text-sm", s),
92
92
  ...t
93
93
  }
@@ -105,7 +105,7 @@ const ne = [
105
105
  ["path", { d: "M11 4h10", key: "1w87gc" }],
106
106
  ["path", { d: "M11 8h7", key: "djye34" }],
107
107
  ["path", { d: "M11 12h4", key: "q8tih4" }]
108
- ], je = _("arrow-down-wide-narrow", ne);
108
+ ], je = A("arrow-down-wide-narrow", ne);
109
109
  /**
110
110
  * @license lucide-react v0.511.0 - ISC
111
111
  *
@@ -117,7 +117,7 @@ const Ne = [
117
117
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
118
118
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
119
119
  ["path", { d: "M7 4v16", key: "1glfcx" }]
120
- ], ye = _("arrow-up-down", Ne);
120
+ ], ye = A("arrow-up-down", Ne);
121
121
  /**
122
122
  * @license lucide-react v0.511.0 - ISC
123
123
  *
@@ -130,75 +130,75 @@ const be = [
130
130
  ["path", { d: "M11 12h10", key: "1438ji" }],
131
131
  ["path", { d: "M11 16h7", key: "uosisv" }],
132
132
  ["path", { d: "M11 20h4", key: "1krc32" }]
133
- ], ke = _("arrow-up-wide-narrow", be);
133
+ ], ke = A("arrow-up-wide-narrow", be);
134
134
  /**
135
135
  * @license lucide-react v0.511.0 - ISC
136
136
  *
137
137
  * This source code is licensed under the ISC license.
138
138
  * See the LICENSE file in the root directory of this source tree.
139
139
  */
140
- const we = [
140
+ const ge = [
141
141
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
142
142
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
143
143
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
144
144
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
145
- ], ge = _("refresh-cw", we), ve = ({
145
+ ], we = A("refresh-cw", ge), ve = ({
146
146
  rows: s = [],
147
147
  columns: t,
148
- onRowClick: d,
149
- rowKey: f,
148
+ onRowClick: i,
149
+ rowKey: p,
150
150
  params: x = {
151
151
  page: 1,
152
- limit: $
152
+ limit: F
153
153
  },
154
154
  hasNumbers: N = !1,
155
155
  hasCheckbox: n = !1,
156
- selectedItems: A,
156
+ selectedItems: L,
157
157
  onSelectedItemsChange: v,
158
- onSortOrderChange: L,
159
- isStickyHeader: i
158
+ onSortOrderChange: z,
159
+ isStickyHeader: d
160
160
  }) => {
161
- const { sortObject: c, handleSort: z } = le({
161
+ const { sortObject: a, handleSort: R } = le({
162
162
  sortField: x == null ? void 0 : x.sortField,
163
163
  sortOrder: x == null ? void 0 : x.sortOrder,
164
- onSortOrderChange: L
164
+ onSortOrderChange: z
165
165
  }), {
166
166
  selectedRows: y,
167
167
  isRowSelected: b,
168
168
  isAllRowsSelected: M,
169
- handleSelectAllRows: w,
169
+ handleSelectAllRows: g,
170
170
  handleSelectRow: m
171
- } = de({ rows: s, defaultSelectedRows: A });
171
+ } = ie({ rows: s, defaultSelectedRows: L });
172
172
  return H(() => {
173
173
  v && v(y);
174
174
  }, [y]), /* @__PURE__ */ e.jsxs(V, { className: "relative", children: [
175
175
  /* @__PURE__ */ e.jsx(
176
176
  W,
177
177
  {
178
- className: o("bg-bg", i && "sticky top-0 z-10"),
179
- children: /* @__PURE__ */ e.jsxs(u, { children: [
180
- n && /* @__PURE__ */ e.jsx(E, { className: "w-12 p-3", children: /* @__PURE__ */ e.jsx(
181
- F,
178
+ className: o("bg-bg", d && "sticky top-0 z-10"),
179
+ children: /* @__PURE__ */ e.jsxs(E, { children: [
180
+ n && /* @__PURE__ */ e.jsx(_, { className: "w-12 p-3", children: /* @__PURE__ */ e.jsx(
181
+ u,
182
182
  {
183
183
  className: "mt-1",
184
- checked: M(f),
185
- onCheckedChange: (l) => w(f, !!l),
184
+ checked: M(p),
185
+ onCheckedChange: (l) => g(p, !!l),
186
186
  "aria-label": "Select all"
187
187
  }
188
188
  ) }),
189
- N && /* @__PURE__ */ e.jsx(E, { className: "w-12 p-2", children: "#" }),
189
+ N && /* @__PURE__ */ e.jsx(_, { className: "w-12 p-2", children: "#" }),
190
190
  t.filter((l) => !l.hidden).map((l) => /* @__PURE__ */ e.jsx(
191
- E,
191
+ _,
192
192
  {
193
193
  style: l.styles,
194
194
  className: o("p-2", l.sortable && "cursor-pointer"),
195
- onClick: () => l.sortable && z(l.dataIndex),
195
+ onClick: () => l.sortable && R(l.dataIndex),
196
196
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
197
197
  l.name,
198
198
  " ",
199
- l.sortable && ((c == null ? void 0 : c.sortField) === l.key ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
200
- (c == null ? void 0 : c.sortOrder) === q.DESC && /* @__PURE__ */ e.jsx(je, { size: 15 }),
201
- (c == null ? void 0 : c.sortOrder) === q.ASC && /* @__PURE__ */ e.jsx(ke, { size: 15 })
199
+ l.sortable && ((a == null ? void 0 : a.sortField) === l.key ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
200
+ (a == null ? void 0 : a.sortOrder) === q.DESC && /* @__PURE__ */ e.jsx(je, { size: 15 }),
201
+ (a == null ? void 0 : a.sortOrder) === q.ASC && /* @__PURE__ */ e.jsx(ke, { size: 15 })
202
202
  ] }) : /* @__PURE__ */ e.jsx(ye, { size: 15 }))
203
203
  ] })
204
204
  },
@@ -208,31 +208,31 @@ const we = [
208
208
  }
209
209
  ),
210
210
  /* @__PURE__ */ e.jsx(B, { className: "[&>tr:nth-child(even)]:bg-bg-secondary", children: s.length ? s.map((l, j) => /* @__PURE__ */ e.jsxs(
211
- u,
211
+ E,
212
212
  {
213
- onClick: () => d == null ? void 0 : d(l),
214
- className: o(d && "cursor-pointer"),
215
- "data-state": b(l[f]) && "selected",
213
+ onClick: () => i == null ? void 0 : i(l),
214
+ className: o(i && "cursor-pointer"),
215
+ "data-state": b(l[p]) && "selected",
216
216
  children: [
217
217
  n && /* @__PURE__ */ e.jsx(
218
- g,
218
+ w,
219
219
  {
220
220
  className: "w-12 p-3",
221
221
  onClick: (r) => r.stopPropagation(),
222
222
  children: /* @__PURE__ */ e.jsx(
223
- F,
223
+ u,
224
224
  {
225
225
  className: "mt-1",
226
- checked: b(l[f]),
227
- onCheckedChange: (r) => m(l[f], !!r),
226
+ checked: b(l[p]),
227
+ onCheckedChange: (r) => m(l[p], !!r),
228
228
  "aria-label": "Select row"
229
229
  }
230
230
  )
231
231
  }
232
232
  ),
233
- N && /* @__PURE__ */ e.jsx(g, { className: "w-12 p-2", children: (x.page - 1) * (x.limit || $) + j + 1 }),
233
+ N && /* @__PURE__ */ e.jsx(w, { className: "w-12 p-2", children: (x.page - 1) * (x.limit || F) + j + 1 }),
234
234
  t.filter((r) => !r.hidden).map((r) => /* @__PURE__ */ e.jsx(
235
- g,
235
+ w,
236
236
  {
237
237
  className: "text-body-xs-medium max-w-xs p-2",
238
238
  style: r.styles,
@@ -242,9 +242,9 @@ const we = [
242
242
  ))
243
243
  ]
244
244
  },
245
- `${l[f]}`
246
- )) : /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsx(
247
- g,
245
+ `${l[p]}`
246
+ )) : /* @__PURE__ */ e.jsx(E, { children: /* @__PURE__ */ e.jsx(
247
+ w,
248
248
  {
249
249
  colSpan: N ? n ? t.length + 2 : t.length + 1 : t.length,
250
250
  children: /* @__PURE__ */ e.jsx(re, {})
@@ -254,27 +254,27 @@ const we = [
254
254
  }, Je = ({
255
255
  dataSource: s,
256
256
  columns: t,
257
- onRowClick: d,
258
- rowKey: f,
257
+ onRowClick: i,
258
+ rowKey: p,
259
259
  hasNumbers: x,
260
260
  hasSearch: N,
261
261
  exportOptions: n,
262
- hasCheckbox: A,
262
+ hasCheckbox: L,
263
263
  hasPagination: v,
264
- isStickyHeader: L,
265
- onParamChange: i,
266
- dataKey: c = "docs",
267
- loading: z,
264
+ isStickyHeader: z,
265
+ onParamChange: d,
266
+ dataKey: a = "docs",
267
+ loading: R,
268
268
  tableKey: y,
269
269
  filters: b,
270
270
  actions: M,
271
- handleFilterChange: w,
271
+ handleFilterChange: g,
272
272
  params: m,
273
273
  exportLoading: l = !1,
274
274
  onColumnsUpdate: j,
275
275
  hasColumnsVisibilityDropdown: r
276
276
  }) => {
277
- const { t: D } = fe(), [I, G] = te([]), { formattedColumns: T, handleColumnsChange: J, resetColumns: Q } = ie({ key: y, columns: t });
277
+ const { t: I } = pe(), [$, G] = te([]), { formattedColumns: T, handleColumnsChange: J, resetColumns: Q } = de({ key: y, columns: t });
278
278
  return H(() => {
279
279
  j == null || j(T);
280
280
  }, [T, j]), /* @__PURE__ */ e.jsxs(
@@ -284,17 +284,17 @@ const we = [
284
284
  children: [
285
285
  (N || r && y || !k.isEmpty(n) || !k.isEmpty(b)) && /* @__PURE__ */ e.jsxs("div", { className: "flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row", children: [
286
286
  /* @__PURE__ */ e.jsx("div", { className: "w-full shrink", children: N && /* @__PURE__ */ e.jsx(
287
- ae,
287
+ ce,
288
288
  {
289
289
  defaultValue: k.get(m, "search", ""),
290
- onSearchChange: (a) => i == null ? void 0 : i({ ...m, search: a, page: 1 })
290
+ onSearchChange: (c) => d == null ? void 0 : d({ ...m, search: c, page: 1 })
291
291
  }
292
292
  ) }),
293
293
  /* @__PURE__ */ e.jsxs("div", { className: "flex shrink-0 items-center justify-end gap-3", children: [
294
294
  n && /* @__PURE__ */ e.jsx(me, { options: n, loading: l }),
295
- r && y && /* @__PURE__ */ e.jsxs(X, { children: [
296
- /* @__PURE__ */ e.jsx(Y, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
297
- S,
295
+ r && y && /* @__PURE__ */ e.jsxs(Y, { children: [
296
+ /* @__PURE__ */ e.jsx(Z, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
297
+ X,
298
298
  {
299
299
  variant: "secondary",
300
300
  size: "sm",
@@ -302,64 +302,69 @@ const we = [
302
302
  children: [
303
303
  /* @__PURE__ */ e.jsx(ee, {}),
304
304
  " ",
305
- /* @__PURE__ */ e.jsx("span", { className: "hidden lg:!inline", children: D("Customize columns") }),
305
+ /* @__PURE__ */ e.jsx("span", { className: "hidden lg:!inline", children: I("Customize columns") }),
306
306
  /* @__PURE__ */ e.jsx(se, {})
307
307
  ]
308
308
  }
309
309
  ) }),
310
- /* @__PURE__ */ e.jsxs(Z, { align: "end", children: [
310
+ /* @__PURE__ */ e.jsxs(O, { align: "end", children: [
311
311
  /* @__PURE__ */ e.jsxs(
312
- O,
312
+ U,
313
313
  {
314
314
  className: "capitalize",
315
315
  onClick: Q,
316
316
  children: [
317
- /* @__PURE__ */ e.jsx(ge, {}),
317
+ /* @__PURE__ */ e.jsx(we, {}),
318
318
  " ",
319
- D("Reset columns")
319
+ I("Reset columns")
320
320
  ]
321
321
  }
322
322
  ),
323
- /* @__PURE__ */ e.jsx(U, {}),
324
- T.map((a) => /* @__PURE__ */ e.jsx(
325
- K,
323
+ /* @__PURE__ */ e.jsx(K, {}),
324
+ T.map((c) => /* @__PURE__ */ e.jsx(
325
+ S,
326
326
  {
327
327
  className: "capitalize",
328
- checked: !a.hidden,
329
- onCheckedChange: (R) => J(a, !R),
330
- children: a.name
328
+ checked: !c.hidden,
329
+ onCheckedChange: (D) => J(c, !D),
330
+ children: c.name
331
331
  },
332
- a.key
332
+ c.key
333
333
  ))
334
334
  ] })
335
335
  ] }),
336
336
  M && /* @__PURE__ */ e.jsx(xe, { actions: M }),
337
337
  b && /* @__PURE__ */ e.jsx(
338
- ce,
338
+ ae,
339
339
  {
340
340
  filters: b,
341
- onFilter: (a) => {
342
- i == null || i({ ...m, ...a, page: 1 }), w == null || w(a);
341
+ params: m,
342
+ onFilter: (c) => {
343
+ d == null || d({ ...m, ...c, page: 1 }), g == null || g(c);
343
344
  }
344
345
  }
345
346
  )
346
347
  ] })
347
348
  ] }),
348
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-col overflow-auto border-y", children: z ? /* @__PURE__ */ e.jsx(oe, {}) : /* @__PURE__ */ e.jsx(
349
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-col overflow-auto border-y", children: R ? /* @__PURE__ */ e.jsx(oe, {}) : /* @__PURE__ */ e.jsx(
349
350
  ve,
350
351
  {
351
- params: m,
352
- rows: k.get(s, c, []),
353
- rowKey: f,
354
- selectedItems: I,
355
- isStickyHeader: L,
352
+ params: {
353
+ page: (s == null ? void 0 : s.page) || 1,
354
+ limit: s == null ? void 0 : s.limit,
355
+ ...m
356
+ },
357
+ rows: k.get(s, a, []),
358
+ rowKey: p,
359
+ selectedItems: $,
360
+ isStickyHeader: z,
356
361
  columns: T,
357
- hasCheckbox: A,
362
+ hasCheckbox: L,
358
363
  hasNumbers: x,
359
- onRowClick: d,
364
+ onRowClick: i,
360
365
  onSelectedItemsChange: G,
361
- onSortOrderChange: ({ sortField: a, sortOrder: R }) => {
362
- i == null || i({ ...m, sortField: a, sortOrder: R });
366
+ onSortOrderChange: ({ sortField: c, sortOrder: D }) => {
367
+ d == null || d({ ...m, sortField: c, sortOrder: D });
363
368
  }
364
369
  }
365
370
  ) }),
@@ -367,12 +372,12 @@ const we = [
367
372
  /* @__PURE__ */ e.jsx("div", { className: "text-sm", children: /* @__PURE__ */ e.jsx(
368
373
  C,
369
374
  {
370
- onLimitChange: (a) => i == null ? void 0 : i({ ...m, limit: a, page: 1 }),
375
+ onLimitChange: (c) => d == null ? void 0 : d({ ...m, limit: c, page: 1 }),
371
376
  defaultValue: s == null ? void 0 : s.limit
372
377
  }
373
378
  ) }),
374
379
  /* @__PURE__ */ e.jsxs("div", { className: "text-muted-foreground text-sm", children: [
375
- I.length,
380
+ $.length,
376
381
  " of ",
377
382
  (s == null ? void 0 : s.total) || 0,
378
383
  " row(s) selected."
@@ -380,7 +385,7 @@ const we = [
380
385
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
381
386
  P,
382
387
  {
383
- onPageChange: (a) => i == null ? void 0 : i({ ...m, page: a }),
388
+ onPageChange: (c) => d == null ? void 0 : d({ ...m, page: c }),
384
389
  currentPage: s == null ? void 0 : s.page,
385
390
  totalPages: s == null ? void 0 : s.totalPages
386
391
  }
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,iBAAS,GAAG,4CAoEX;AAED,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,iBAAS,GAAG,4CAsFX;AAED,eAAe,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/datatable/DataTable.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,KAAK,eAAe,EAAW,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB,CAAC,KAAK;IACxC,kFAAkF;IAClF,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACv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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgz-ui-shared",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -152,7 +152,7 @@
152
152
  "@hookform/resolvers": "^5.0.1",
153
153
  "@tailwindcss/vite": "^4.1.7",
154
154
  "dayjs": "^1.11.13",
155
- "dgz-ui": "^1.3.8",
155
+ "dgz-ui": "^1.3.9",
156
156
  "file-saver": "^2.0.5",
157
157
  "i18next": "^25.2.1",
158
158
  "lodash": "^4.17.21",
@@ -202,7 +202,7 @@
202
202
  },
203
203
  "peerDependencies": {
204
204
  "dayjs": "^1.11.13",
205
- "react": "^19.1.1",
206
- "react-dom": "^19.1.1"
205
+ "react": "^19.1.2",
206
+ "react-dom": "^19.1.2"
207
207
  }
208
208
  }