mantine-datatable 1.7.9 → 1.7.10
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.d.ts +1 -1
- package/dist/DataTable.d.ts.map +1 -1
- package/dist/DataTable.props.d.ts +9 -5
- package/dist/DataTable.props.d.ts.map +1 -1
- package/dist/DataTableFooter.d.ts +3 -1
- package/dist/DataTableFooter.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +8 -8
package/dist/DataTable.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DataTableProps } from './DataTable.props';
|
|
2
|
-
export default function DataTable<T>({ withBorder, borderRadius, borderColor, rowBorderColor, withColumnBorders, textSelectionDisabled, height, minHeight, shadow, verticalAlignment, fetching, columns, idAccessor, records, selectedRecords, onSelectedRecordsChange, sortStatus, onSortStatusChange, horizontalSpacing, page, onPageChange, totalRecords, recordsPerPage, paginationColor, paginationSize, paginationText, loaderSize, loaderVariant, loaderBackgroundBlur, emptyState, noRecordsText, noRecordsIcon, striped, onRowClick, onCellClick, rowContextMenu, rowExpansion, m, my, mx, mt, mb, ml, mr, sx, className, classNames, style, styles, ...otherProps }: DataTableProps<T>): JSX.Element;
|
|
2
|
+
export default function DataTable<T>({ withBorder, borderRadius, borderColor, rowBorderColor, withColumnBorders, textSelectionDisabled, height, minHeight, shadow, verticalAlignment, fetching, columns, idAccessor, records, selectedRecords, onSelectedRecordsChange, sortStatus, onSortStatusChange, horizontalSpacing, page, onPageChange, totalRecords, recordsPerPage, paginationColor, paginationSize, paginationText, loaderSize, loaderVariant, loaderBackgroundBlur, loadingText, emptyState, noRecordsText, noRecordsIcon, striped, onRowClick, onCellClick, rowContextMenu, rowExpansion, m, my, mx, mt, mb, ml, mr, sx, className, classNames, style, styles, ...otherProps }: DataTableProps<T>): JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DataTable.d.ts.map
|
package/dist/DataTable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAoFnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,EACnC,UAAU,EACV,YAAY,EACZ,WAAqG,EACrG,cACiG,EACjG,iBAAiB,EACjB,qBAAqB,EACrB,MAAe,EACf,SAAS,EACT,MAAM,EACN,iBAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,UAAiB,EACjB,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAqB,EACrB,cAAoF,EACpF,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,aAA4B,EAC5B,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,CAAC,EACD,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,SAAS,EACT,UAAU,EACV,KAAK,EACL,MAAM,EACN,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../DataTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAoFnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,EACnC,UAAU,EACV,YAAY,EACZ,WAAqG,EACrG,cACiG,EACjG,iBAAiB,EACjB,qBAAqB,EACrB,MAAe,EACf,SAAS,EACT,MAAM,EACN,iBAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,UAAiB,EACjB,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAqB,EACrB,cAAoF,EACpF,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,WAAmB,EACnB,UAAU,EACV,aAA4B,EAC5B,aAAa,EACb,OAAO,EACP,UAAU,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,CAAC,EACD,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,SAAS,EACT,UAAU,EACV,KAAK,EACL,MAAM,EACN,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,CAAC,CAAC,eA8SnB"}
|
|
@@ -21,14 +21,9 @@ export declare type DataTableEmptyStateProps = {
|
|
|
21
21
|
* will be overlaid and centered automatically
|
|
22
22
|
*/
|
|
23
23
|
emptyState?: ReactNode;
|
|
24
|
-
noRecordsText?: never;
|
|
25
24
|
noRecordsIcon?: never;
|
|
26
25
|
} | {
|
|
27
26
|
emptyState?: never;
|
|
28
|
-
/**
|
|
29
|
-
* Text to show when no records are available
|
|
30
|
-
*/
|
|
31
|
-
noRecordsText?: string;
|
|
32
27
|
/**
|
|
33
28
|
* Icon to show when no records are available
|
|
34
29
|
*/
|
|
@@ -41,6 +36,7 @@ export declare type DataTablePaginationProps = {
|
|
|
41
36
|
recordsPerPage?: never;
|
|
42
37
|
paginationColor?: never;
|
|
43
38
|
paginationSize?: never;
|
|
39
|
+
loadingText?: never;
|
|
44
40
|
paginationText?: never;
|
|
45
41
|
} | {
|
|
46
42
|
/**
|
|
@@ -67,6 +63,10 @@ export declare type DataTablePaginationProps = {
|
|
|
67
63
|
* Pagination component color; defaults to primary theme color
|
|
68
64
|
*/
|
|
69
65
|
paginationColor?: MantineColor;
|
|
66
|
+
/**
|
|
67
|
+
* Text to show while records are loading
|
|
68
|
+
*/
|
|
69
|
+
loadingText?: string;
|
|
70
70
|
/**
|
|
71
71
|
* Pagination text; defaults to ```({ from, to, totalRecords }) => `${from}-${to}/${totalRecords}`
|
|
72
72
|
* ```
|
|
@@ -380,6 +380,10 @@ export declare type DataTableProps<T> = {
|
|
|
380
380
|
* Loader background blur (in pixels)
|
|
381
381
|
*/
|
|
382
382
|
loaderBackgroundBlur?: number;
|
|
383
|
+
/**
|
|
384
|
+
* Text to show on empty state and pagination footer when no records are available
|
|
385
|
+
*/
|
|
386
|
+
noRecordsText?: string;
|
|
383
387
|
/**
|
|
384
388
|
* Function to call when a row cell is clicked
|
|
385
389
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.props.d.ts","sourceRoot":"","sources":["../DataTable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,EAAE,EACF,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhF,oBAAY,4BAA4B,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvE,oBAAY,0BAA0B,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE,oBAAY,yBAAyB,GACjC;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IACE;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,CAAC;AAEN,oBAAY,wBAAwB,GAChC;IACE;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,aAAa,CAAC,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version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G,IAAI,GAAG,IAAI,GAAG,IAAI,CAC3D,GACD,yBAAyB,GACzB,wBAAwB,GACxB,wBAAwB,GACxB,kBAAkB,GAClB,uBAAuB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { CSSObject, MantineNumberSize, MantineTheme } from '@mantine/core';
|
|
2
2
|
import { ForwardedRef } from 'react';
|
|
3
3
|
import { DataTablePaginationProps } from './DataTable.props';
|
|
4
|
-
declare type DataTableFooterProps = DataTablePaginationProps & {
|
|
4
|
+
declare type DataTableFooterProps = Omit<DataTablePaginationProps, 'loadingText'> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSObject;
|
|
7
7
|
topBorderColor: string | ((theme: MantineTheme) => string);
|
|
8
8
|
fetching: boolean | undefined;
|
|
9
9
|
recordsLength: number | undefined;
|
|
10
10
|
horizontalSpacing: MantineNumberSize | undefined;
|
|
11
|
+
loadingText: string;
|
|
12
|
+
noRecordsText: string;
|
|
11
13
|
};
|
|
12
14
|
declare const _default: (props: DataTableFooterProps & {
|
|
13
15
|
ref: ForwardedRef<HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableFooter.d.ts","sourceRoot":"","sources":["../DataTableFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAoB,MAAM,eAAe,CAAC;AAChH,OAAO,EAAiB,YAAY,EAAyB,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAuB7D,aAAK,oBAAoB,GAAG,wBAAwB,GAAG;
|
|
1
|
+
{"version":3,"file":"DataTableFooter.d.ts","sourceRoot":"","sources":["../DataTableFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAoB,MAAM,eAAe,CAAC;AAChH,OAAO,EAAiB,YAAY,EAAyB,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAuB7D,aAAK,oBAAoB,GAAG,IAAI,CAAC,wBAAwB,EAAE,aAAa,CAAC,GAAG;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC;IAC3D,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;gCAsDY,oBAAoB,GAAG;IAAE,GAAG,EAAE,aAAa,cAAc,CAAC,CAAA;CAAE,KAAK,WAAW;AApD1F,wBAoD2F"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var So=Object.create;var Te=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var Bo=Object.getOwnPropertyNames;var Oo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty;var To=(e,r)=>{for(var o in r)Te(e,o,{get:r[o],enumerable:!0})},Sr=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Bo(r))!wo.call(e,t)&&t!==o&&Te(e,t,{get:()=>r[t],enumerable:!(a=bo(r,t))||a.enumerable});return e};var ye=(e,r,o)=>(o=e!=null?So(Oo(e)):{},Sr(r||!e||!e.__esModule?Te(o,"default",{value:e,enumerable:!0}):o,e)),yo=e=>Sr(Te({},"__esModule",{value:!0}),e);var $o={};To($o,{DataTable:()=>lr});module.exports=yo($o);var g=ye(require("react"),1);var z=require("@mantine/core"),ge=require("@mantine/hooks"),zr=require("react");var br=require("@mantine/core"),Ue=require("react/jsx-runtime"),ko=(0,br.createStyles)({root:{"&&":{background:"transparent"}}});function qe(){let{classes:e}=ko();return(0,Ue.jsx)("tr",{className:e.root,children:(0,Ue.jsx)("td",{})})}var j=require("@mantine/core");function E(){return E=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},E.apply(this,arguments)}function Do(e,r){if(e==null)return{};var o={},a=Object.keys(e),t,f;for(f=0;f<a.length;f++)t=a[f],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function Q(e,r){if(e==null)return{};var o=Do(e,r),a,t;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(t=0;t<f.length;t++)a=f[t],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(o[a]=e[a]))}return o}var Y=ye(require("react")),Po=["size","color"];function Ze(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=Q(e,Po);return Y.default.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-down",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),Y.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Y.default.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),Y.default.createElement("line",{x1:"18",y1:"13",x2:"12",y2:"19"}),Y.default.createElement("line",{x1:"6",y1:"13",x2:"12",y2:"19"}))}var _=ye(require("react")),Ro=["size","color"];function $e(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=Q(e,Ro);return _.default.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrows-vertical",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),_.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),_.default.createElement("polyline",{points:"8 7 12 3 16 7"}),_.default.createElement("polyline",{points:"8 17 12 21 16 17"}),_.default.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"21"}))}var U=ye(require("react")),Ao=["size","color"];function Xe(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=Q(e,Ao);return U.default.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-database-off",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),U.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),U.default.createElement("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),U.default.createElement("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),U.default.createElement("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),U.default.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"}))}var R=require("react/jsx-runtime"),Mo=(0,j.createStyles)(e=>({root:{position:"absolute",top:0,right:0,bottom:0,left:0,flexDirection:"column",pointerEvents:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[6],opacity:0,transition:"opacity .15s ease"},active:{opacity:1},standardIcon:{fontSize:0,borderRadius:"50%",padding:e.spacing.xs,background:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}}));function Ke({icon:e,text:r,pt:o,pb:a,active:t,children:f}){let{classes:d,cx:p}=Mo();return(0,R.jsx)(j.Center,{pt:o,pb:a,className:p(d.root,{[d.active]:t}),children:f||(0,R.jsxs)(R.Fragment,{children:[e||(0,R.jsx)("div",{className:d.standardIcon,children:(0,R.jsx)(Xe,{})}),(0,R.jsx)(j.Text,{size:"sm",color:"dimmed",children:r})]})})}var N=require("@mantine/core"),Br=require("react"),ie=require("react/jsx-runtime"),Lo=(0,N.createStyles)((e,{topBorderColor:r})=>({root:{borderTop:`1px solid ${typeof r=="function"?r(e):r}`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",gap:e.spacing.xs,[e.fn.largerThan("xs")]:{flexDirection:"row"}},pagination:{opacity:1,transition:"opacity .15s ease"},paginationFetching:{opacity:0}})),Or=(0,Br.forwardRef)(function({className:r,style:o,topBorderColor:a,fetching:t,page:f,onPageChange:d,paginationColor:p,paginationSize:i,paginationText:u,totalRecords:l,recordsPerPage:c,recordsLength:s,horizontalSpacing:x},n){let h;if(t||!l)h="...";else{let y=(f-1)*c+1,H=y+s-1;h=u({from:y,to:H,totalRecords:l})}let{classes:B,cx:T}=Lo({topBorderColor:a});return(0,ie.jsxs)(N.Box,{ref:n,px:x??"xs",py:"xs",className:T(B.root,r),style:o,children:[(0,ie.jsx)(N.Text,{size:i,children:h}),(0,ie.jsx)(N.Pagination,{color:p,className:T(B.pagination,{[B.paginationFetching]:t||!s}),page:f,onChange:d,size:i,total:Math.ceil(l/c)})]})});var Re=require("@mantine/core"),kr=require("react");var k=require("@mantine/core");var wr=require("@mantine/core"),Tr=require("@mantine/hooks");function ke(e){let r=(0,wr.useMantineTheme)(),o=typeof e=="function"?e(r):e;return(0,Tr.useMediaQuery)(o||"",!0)}function De(e){let r=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function yr(e,r,o){return e.filter(a=>!r.map(o).includes(o(a)))}function Pe(e,r){return e.filter((o,a,t)=>a===t.findIndex(f=>r(o)===r(f)))}function C(e,r){return r?r.match(/([^[.\]])+/g).reduce((a,t)=>a&&a[t],e):void 0}var A=require("react/jsx-runtime"),vo=(0,k.createStyles)(e=>({sortableColumnHeader:{cursor:"pointer",transition:"background .15s ease","&:hover":{background:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]}},columnHeaderText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sortableColumnHeaderText:{minWidth:0,flexGrow:1},sortableColumnHeaderIcon:{transition:"transform .15s ease"},sortableColumnHeaderIconRotated:{transform:"rotate3d(0, 0, 1, 180deg)"},sortableColumnHeaderNeutralIcon:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],transition:"color .15s ease","th:hover &":{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]}}}));function Qe({className:e,sx:r,style:o,accessor:a,visibleMediaQuery:t,title:f,sortable:d,textAlignment:p,width:i,sortStatus:u,onSortStatusChange:l}){let{cx:c,classes:s}=vo();if(!ke(t))return null;let x=f??De(a);return(0,A.jsx)(k.Box,{component:"th",className:c({[s.sortableColumnHeader]:d},e),sx:[{"&&":{textAlign:p},width:i,minWidth:i,maxWidth:i},r],style:o,role:d?"button":void 0,onClick:d&&l?()=>{l({columnAccessor:a,direction:u?.direction==="asc"?"desc":"asc"})}:void 0,children:d||u?.columnAccessor===a?(0,A.jsxs)(k.Group,{position:"apart",noWrap:!0,spacing:"xs",children:[(0,A.jsx)(k.Box,{className:c(s.columnHeaderText,s.sortableColumnHeaderText),children:x}),(0,A.jsx)(k.Center,{children:u?.columnAccessor===a?(0,A.jsx)(Ze,{className:c(s.sortableColumnHeaderIcon,{[s.sortableColumnHeaderIconRotated]:u.direction==="desc"}),size:14}):(0,A.jsx)($e,{className:s.sortableColumnHeaderNeutralIcon,size:14})})]}):(0,A.jsx)(k.Box,{className:s.columnHeaderText,children:x})})}var q=require("react/jsx-runtime"),Ho=(0,Re.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{zIndex:2,position:"sticky",top:0,background:e.colorScheme==="dark"?e.colors.dark[7]:e.white},textSelectionDisabled:{userSelect:"none"},selectorColumnHeader:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-e.spacing.sm,bottom:0,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},selectorColumnHeaderWithRightShadow:{"&::after":{opacity:1}},selectionCheckboxInput:{cursor:"pointer"}}}),Dr=(0,kr.forwardRef)(function({className:r,style:o,sortStatus:a,onSortStatusChange:t,columns:f,selectionVisible:d,selectionChecked:p,selectionIndeterminate:i,onSelectionChange:u,leftShadowVisible:l},c){let{classes:s,cx:x}=Ho();return(0,q.jsx)("thead",{className:x(s.root,r),style:o,ref:c,children:(0,q.jsxs)("tr",{children:[d&&(0,q.jsx)("th",{className:x(s.selectorColumnHeader,{[s.selectorColumnHeaderWithRightShadow]:l}),children:(0,q.jsx)(Re.Checkbox,{classNames:{input:s.selectionCheckboxInput},checked:p,indeterminate:i,disabled:!u,onChange:u})}),f.map(({accessor:n,hidden:h,visibleMediaQuery:B,textAlignment:T,width:y,title:H,sortable:oe,titleClassName:ae,titleStyle:te,titleSx:V})=>h?null:(0,q.jsx)(Qe,{className:ae,style:te,sx:V,accessor:n,visibleMediaQuery:B,textAlignment:T,width:y,title:H,sortable:oe,sortStatus:a,onSortStatusChange:t},n))]})})});var J=require("@mantine/core"),Ye=require("react/jsx-runtime"),Fo=(0,J.createStyles)(e=>({root:{zIndex:3,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",background:e.fn.rgba(e.colorScheme==="dark"?e.colors.dark[8]:e.white,.75),opacity:0,transition:"opacity .15s ease"},fetching:{pointerEvents:"all",opacity:1}}));function _e({pt:e,pb:r,fetching:o,loaderBackgroundBlur:a,loaderSize:t,loaderVariant:f}){let{classes:d,cx:p}=Fo();return(0,Ye.jsx)(J.Center,{pt:e,pb:r,className:p(d.root,{[d.fetching]:o}),sx:a?{backdropFilter:`blur(${a}px)`}:void 0,children:o&&(0,Ye.jsx)(J.Loader,{size:t,variant:f})})}var Hr=require("@mantine/core");var Ae=require("@mantine/core");var Pr=require("react/jsx-runtime"),Eo=(0,Ae.createStyles)({withPointerCursor:{cursor:"pointer"},ellipsis:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}});function je({className:e,sx:r,style:o,visibleMediaQuery:a,record:t,recordIndex:f,onClick:d,ellipsis:p,textAlignment:i,width:u,accessor:l,render:c}){let{cx:s,classes:x}=Eo();return ke(a)?(0,Pr.jsx)(Ae.Box,{component:"td",className:s({[x.ellipsis]:p,[x.withPointerCursor]:d},e),sx:[{width:u,minWidth:u,maxWidth:u,textAlign:i},r],style:o,onClick:d,children:c?c(t,f):C(t,l)}):null}var ve=require("@mantine/core");var W=require("@mantine/hooks"),D=require("react");var Me=200,Le={leading:!0};function Rr(){let[e,r]=(0,W.useDebouncedState)(!0,Me,Le),[o,a]=(0,W.useDebouncedState)(!0,Me,Le),[t,f]=(0,W.useDebouncedState)(!0,Me,Le),[d,p]=(0,W.useDebouncedState)(!0,Me,Le);return{scrolledToTop:e,setScrolledToTop:r,scrolledToBottom:o,setScrolledToBottom:a,scrolledToLeft:t,setScrolledToLeft:f,scrolledToRight:d,setScrolledToRight:p}}function Ar(e){let[r,o]=(0,D.useState)(null),a=e?.join(":")||"";return(0,D.useEffect)(()=>{o(null)},[a]),{lastSelectionChangeIndex:r,setLastSelectionChangeIndex:o}}function Mr(e){let[r,o]=(0,D.useState)(null);return(0,D.useEffect)(()=>{e&&o(null)},[e]),{rowContextMenuInfo:r,setRowContextMenuInfo:o}}function Lr({rowExpansion:e,records:r,idAccessor:o}){let a=[];if(e&&r){let{trigger:p,allowMultiple:i,initiallyExpanded:u}=e;r&&p==="always"?a=r.map(l=>C(l,o)):u&&(a=r.filter(u).map(l=>C(l,o)),i||(a=[a[0]]))}let t,f,d=(0,D.useState)(a);if(e){let{trigger:p,allowMultiple:i,collapseProps:u,content:l}=e;e.expanded?{recordIds:t,onRecordIdsChange:f}=e.expanded:[t,f]=d;let c=s=>f(t.filter(x=>x!==C(s,o)));return{expandOnClick:p!=="always"&&p!=="never",isRowExpanded:s=>p==="always"?!0:t.includes(C(s,o)),expandRow:s=>{let x=C(s,o);f(i?[...t,x]:[x])},collapseRow:c,collapseProps:u,content:(s,x)=>()=>l({record:s,recordIndex:x,collapse:()=>c(s)})}}}function vr(e,r){let[o,a]=(0,D.useState)(e),[t,f]=(0,D.useState)(e),d=(0,W.useTimeout)(()=>a(!0),0),p=(0,W.useTimeout)(()=>f(!1),r||200);return(0,D.useEffect)(()=>{e?(p.clear(),f(!0),d.start()):(d.clear(),a(!1),p.start())},[d,p,e]),{expanded:o,visible:t}}var M=require("react/jsx-runtime"),No=(0,ve.createStyles)({cell:{"&&":{borderBottomWidth:0,padding:0}},expandedCell:{"&&":{borderBottomWidth:1}}});function Je({open:e,colSpan:r,content:o,collapseProps:a}){let{expanded:t,visible:f}=vr(e,a?.transitionDuration),{cx:d,classes:p}=No();return f?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("tr",{}),(0,M.jsx)("tr",{children:(0,M.jsx)("td",{className:d(p.cell,{[p.expandedCell]:t}),colSpan:r,children:(0,M.jsx)(ve.Collapse,{in:t,...a,children:o()})})})]}):null}var He=require("@mantine/core"),er=require("react/jsx-runtime"),Wo=(0,He.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",zIndex:1,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-e.spacing.sm,bottom:0,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},withRightShadow:{"&::after":{opacity:1}},checkbox:{cursor:"pointer"}}});function rr({withRightShadow:e,...r}){let{cx:o,classes:a}=Wo();return(0,er.jsx)("td",{className:o(a.root,{[a.withRightShadow]:e}),children:(0,er.jsx)(He.Checkbox,{classNames:{input:a.checkbox},...r,onClick:t=>t.stopPropagation()})})}var L=require("react/jsx-runtime"),Io=(0,Hr.createStyles)(e=>{let r=e.colors[e.primaryColor][6];return{withPointerCursor:{cursor:"pointer"},selected:{"&&":{"tr&":{background:e.colorScheme==="dark"?e.fn.darken(r,.6):e.fn.lighten(r,.9)},"table[data-striped] tbody &:nth-of-type(odd)":{background:e.colorScheme==="dark"?e.fn.darken(r,.55):e.fn.lighten(r,.85)}}},contextMenuVisible:{"&&":{"tr&":{background:e.colorScheme==="dark"?e.fn.darken(r,.5):e.fn.lighten(r,.7)},"table[data-striped] tbody &:nth-of-type(odd)":{background:e.colorScheme==="dark"?e.fn.darken(r,.45):e.fn.lighten(r,.65)}}}}});function or({record:e,recordIndex:r,columns:o,selectionVisible:a,selectionChecked:t,onSelectionChange:f,onClick:d,onCellClick:p,onContextMenu:i,expansion:u,contextMenuVisible:l,leftShadowVisible:c}){let{cx:s,classes:x}=Io();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("tr",{className:s({[x.withPointerCursor]:d||u?.expandOnClick,[x.selected]:t,[x.contextMenuVisible]:l}),onClick:n=>{if(u){let{isRowExpanded:h,expandOnClick:B,expandRow:T,collapseRow:y}=u;B&&(h(e)?y(e):T(e))}d?.(n)},onContextMenu:i,children:[a&&(0,L.jsx)(rr,{withRightShadow:c,checked:t,disabled:!f,onChange:f}),o.map((n,h)=>{let{accessor:B,hidden:T,visibleMediaQuery:y,textAlignment:H,ellipsis:oe,width:ae,render:te,cellsClassName:V,cellsStyle:fe,cellsSx:Fe}=n,Ce;return p&&(Ce=()=>p({record:e,recordIndex:r,column:n,columnIndex:h})),T?null:(0,L.jsx)(je,{className:typeof V=="function"?V(e,r):V,style:typeof fe=="function"?fe(e,r):fe,sx:Fe,visibleMediaQuery:y,record:e,recordIndex:r,onClick:Ce,accessor:B,textAlignment:H,ellipsis:oe,width:ae,render:te},B)})]}),u&&(0,L.jsx)(Je,{colSpan:o.filter(n=>!n.hidden).length+(a?1:0),open:u.isRowExpanded(e),content:u.content(e,r),collapseProps:u.collapseProps})]})}var ee=require("@mantine/core"),v=require("@mantine/hooks"),Fr=require("react/jsx-runtime"),zo=(0,ee.createStyles)(e=>({root:{position:"fixed",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,overflow:"hidden",transition:"all .15s ease"}}));function ar({borderRadius:e="xs",shadow:r="sm",zIndex:o=3,top:a,left:t,onDestroy:f,children:d}){(0,v.useWindowEvent)("resize",f),(0,v.useWindowEvent)("scroll",f);let p=(0,v.useClickOutside)(f),{ref:i,width:u,height:l}=(0,v.useElementSize)(),c=(0,v.useMergedRef)(p,i),{spacing:{xs:s}}=(0,ee.useMantineTheme)(),{innerWidth:x,innerHeight:n}=window,h=a+l+s>n?n-l-s:a,B=t+u+s>x?x-u-s:t,{classes:T}=zo();return(0,Fr.jsx)(ee.Paper,{ref:c,shadow:r,radius:e,className:T.root,sx:{top:h,left:B,zIndex:o},children:d})}var Er=require("@mantine/core"),Nr=require("react/jsx-runtime"),Vo=(0,Er.createStyles)(e=>({root:{height:1,background:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]}}));function tr(){let{classes:e}=Vo();return(0,Nr.jsx)("div",{className:e.root})}var I=require("@mantine/core"),ce=require("react/jsx-runtime"),Go=(0,I.createStyles)((e,{color:r})=>{let o=e.spacing.sm/2;return{root:{width:"100%",display:"flex",alignItems:"center",paddingTop:o,paddingBottom:o,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,color:r&&e.colors[r][6],transition:"background .15s ease","&[disabled]":{cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&:hover:not([disabled])":{background:e.fn.rgba(r?e.colors[r][6]:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4],r?e.colorScheme==="dark"?.15:.08:.25)},"&:active:not([disabled])":{background:e.fn.rgba(r?e.colors[r][6]:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4],r?e.colorScheme==="dark"?.3:.2:.5)}},icon:{fontSize:0,marginRight:e.spacing.xs},title:{whiteSpace:"nowrap"}}});function fr({icon:e,title:r,color:o,disabled:a,onClick:t}){let{classes:f}=Go({color:o});return(0,ce.jsxs)(I.UnstyledButton,{className:f.root,disabled:a,onClick:t,children:[e&&(0,ce.jsx)(I.Box,{className:f.icon,children:e}),(0,ce.jsx)(I.Text,{className:f.title,size:"sm",children:r})]})}var re=require("@mantine/core"),Wr=require("react"),Z=require("react/jsx-runtime"),Uo=(0,re.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{flex:"1 1 100%"},scrollbar:{'&[data-state="visible"]':{background:"transparent"},"div::before":{pointerEvents:"none"}},corner:{background:"transparent"},thumb:{zIndex:3},shadow:{position:"absolute",pointerEvents:"none",opacity:0,transition:"opacity .15s ease"},topShadow:{zIndex:2,top:0,left:0,right:0,height:e.spacing.sm,background:`linear-gradient(${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},leftShadow:{zIndex:3,top:0,left:0,bottom:0,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},rightShadow:{zIndex:2,top:0,bottom:0,right:0,width:e.spacing.sm,background:`linear-gradient(to left, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to left, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},bottomShadow:{zIndex:2,left:0,right:0,bottom:0,height:e.spacing.sm,background:`linear-gradient(${e.fn.rgba(e.black,0)}, ${e.fn.rgba(e.black,r)}), linear-gradient(${e.fn.rgba(e.black,0)} 30%, ${e.fn.rgba(e.black,r)})`},shadowVisible:{opacity:1}}}),Ir=(0,Wr.forwardRef)(function({topShadowVisible:r,leftShadowVisible:o,rightShadowVisible:a,bottomShadowVisible:t,headerHeight:f,onScrollPositionChange:d,children:p},i){let{cx:u,classes:l}=Uo();return(0,Z.jsxs)(re.ScrollArea,{viewportRef:i,classNames:{root:l.root,scrollbar:l.scrollbar,thumb:l.thumb,corner:l.corner},styles:{scrollbar:{marginTop:f}},onScrollPositionChange:d,children:[p,(0,Z.jsx)(re.Box,{className:u(l.shadow,l.topShadow,{[l.shadowVisible]:r}),sx:{top:f}}),(0,Z.jsx)("div",{className:u(l.shadow,l.leftShadow,{[l.shadowVisible]:o})}),(0,Z.jsx)("div",{className:u(l.shadow,l.rightShadow,{[l.shadowVisible]:a})}),(0,Z.jsx)("div",{className:u(l.shadow,l.bottomShadow,{[l.shadowVisible]:t})})]})});var b=require("react/jsx-runtime"),qo={},Zo=(0,z.createStyles)((e,{borderColor:r,rowBorderColor:o})=>{let a=typeof r=="function"?r(e):r,t=typeof o=="function"?o(e):o;return{root:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",tr:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white},"&&":{"thead tr th":{borderBottomColor:a},"tbody tr td":{borderBottomColor:t}}},lastRowBorderBottomVisible:{"tbody tr:last-of-type td":{borderBottom:`1px solid ${t}`}},textSelectionDisabled:{userSelect:"none"},table:{borderCollapse:"separate",borderSpacing:0},tableWithBorder:{border:`1px solid ${a}`},tableWithColumnBorders:{"th, td":{":not(:first-of-type)":{borderLeft:`1px solid ${t}`}}},verticalAlignmentTop:{td:{verticalAlign:"top"}},verticalAlignmentBottom:{td:{verticalAlign:"bottom"}}}});function lr({withBorder:e,borderRadius:r,borderColor:o=S=>S.colorScheme==="dark"?S.colors.dark[4]:S.colors.gray[3],rowBorderColor:a=S=>S.fn.rgba(S.colorScheme==="dark"?S.colors.dark[4]:S.colors.gray[3],.65),withColumnBorders:t,textSelectionDisabled:f,height:d="100%",minHeight:p,shadow:i,verticalAlignment:u="center",fetching:l,columns:c,idAccessor:s="id",records:x,selectedRecords:n,onSelectedRecordsChange:h,sortStatus:B,onSortStatusChange:T,horizontalSpacing:y,page:H,onPageChange:oe,totalRecords:ae,recordsPerPage:te,paginationColor:V,paginationSize:fe="sm",paginationText:Fe=({from:S,to:le,totalRecords:$})=>`${S} - ${le} / ${$}`,loaderSize:Ce,loaderVariant:Vr,loaderBackgroundBlur:Gr,emptyState:Ur,noRecordsText:qr="No records",noRecordsIcon:Zr,striped:$r,onRowClick:Ee,onCellClick:Xr,rowContextMenu:P,rowExpansion:Kr,m:Qr,my:Yr,mx:_r,mt:jr,mb:Jr,ml:eo,mr:ro,sx:oo,className:ao,classNames:Ne,style:to,styles:We,...fo}){let{ref:S,width:le,height:$}=(0,ge.useElementSize)(),{ref:lo,height:Ie}=(0,ge.useElementSize)(),{ref:so,width:ze,height:he}=(0,ge.useElementSize)(),{ref:uo,height:sr}=(0,ge.useElementSize)(),{scrolledToTop:po,setScrolledToTop:dr,scrolledToBottom:mo,setScrolledToBottom:ur,scrolledToLeft:pr,setScrolledToLeft:mr,scrolledToRight:xo,setScrolledToRight:xr}=Rr(),{rowContextMenuInfo:G,setRowContextMenuInfo:se}=Mr(l),no=Lr({rowExpansion:Kr,records:x,idAccessor:s}),nr=()=>{if(!l&&P&&se(null),l||he<=$)dr(!0),ur(!0);else{let m=S.current.scrollTop;dr(m===0),ur(Math.round(he-m)===Math.round($))}if(l||ze===le)mr(!0),xr(!0);else{let m=S.current.scrollLeft;mr(m===0),xr(Math.round(ze-m)===Math.round(le))}};(0,zr.useEffect)(nr,[l,$,S,le,he,ze]);let io=m=>{S.current.scrollTo({top:0,left:0}),oe(m)},Se=x?.length,de=x?.map(m=>C(m,s)),ue=n?.map(m=>C(m,s)),ir=de!==void 0&&ue!==void 0&&ue.length>0,Ve=ir&&de.every(m=>ue.includes(m)),co=ir&&de.some(m=>ue.includes(m)),cr;h&&(cr=()=>{h(Ve?n.filter(m=>!de.includes(C(m,s))):Pe([...n,...x],m=>C(m,s)))});let{lastSelectionChangeIndex:be,setLastSelectionChangeIndex:go}=Ar(de),gr=!!n&&!pr,{cx:Cr,classes:F,theme:Co}=Zo({borderColor:o,rowBorderColor:a}),ho={m:Qr,my:Yr,mx:_r,mt:jr,mb:Jr,ml:eo,mr:ro},Ge=typeof We=="function"?We(Co,qo):We;return(0,b.jsxs)(z.Box,{...ho,className:Cr(F.root,{[F.tableWithBorder]:e},ao,Ne?.root),sx:[m=>({borderRadius:m.radius[r]||r,boxShadow:m.shadows[i]||i,height:d,minHeight:p}),...(0,z.packSx)(oo)],style:{...Ge?.root,...to},children:[(0,b.jsx)(Ir,{ref:S,topShadowVisible:!po,leftShadowVisible:!(n||pr),rightShadowVisible:!xo,bottomShadowVisible:!mo,headerHeight:Ie,onScrollPositionChange:nr,children:(0,b.jsxs)(z.Table,{ref:so,horizontalSpacing:y,className:Cr(F.table,{[F.tableWithColumnBorders]:t,[F.lastRowBorderBottomVisible]:he<$,[F.textSelectionDisabled]:f,[F.verticalAlignmentTop]:u==="top",[F.verticalAlignmentBottom]:u==="bottom"}),striped:Se?$r:!1,...fo,children:[(0,b.jsx)(Dr,{ref:lo,className:Ne?.header,style:Ge?.header,columns:c,sortStatus:B,onSortStatusChange:T,selectionVisible:!!n,selectionChecked:Ve,selectionIndeterminate:co&&!Ve,onSelectionChange:cr,leftShadowVisible:gr}),(0,b.jsx)("tbody",{children:Se?x.map((m,O)=>{let X=C(m,s),pe=ue?.includes(X)||!1,Be=!1,Oe=!1;if(P){let{hidden:w}=P;(!w||!(typeof w=="function"?w(m,O):w))&&(P.trigger==="click"?Be=!0:Oe=!0)}let we;h&&(we=w=>{if(w.nativeEvent.shiftKey&&be!==null){let K=x.filter(O>be?(xe,ne)=>ne>=be&&ne<=O:(xe,ne)=>ne>=O&&ne<=be);h(pe?yr(n,K,xe=>C(xe,s)):Pe([...n,...K],xe=>C(xe,s)))}else h(pe?n.filter(K=>C(K,s)!==X):Pe([...n,m],K=>C(K,s)));go(O)});let me;Be?me=w=>{se({top:w.clientY,left:w.clientX,record:m,recordIndex:O}),Ee?.(m,O)}:Ee&&(me=()=>{Ee(m,O)});let hr;return Oe&&(hr=w=>{w.preventDefault(),se({top:w.clientY,left:w.clientX,record:m,recordIndex:O})}),(0,b.jsx)(or,{record:m,recordIndex:O,columns:c,selectionVisible:!!n,selectionChecked:pe,onSelectionChange:we,onClick:me,onCellClick:Xr,onContextMenu:hr,contextMenuVisible:G?C(G.record,s)===X:!1,expansion:no,leftShadowVisible:gr},X)}):(0,b.jsx)(qe,{})})]})}),H&&(0,b.jsx)(Or,{ref:uo,className:Ne?.pagination,style:Ge?.pagination,topBorderColor:o,horizontalSpacing:y,fetching:l,page:H,onPageChange:io,totalRecords:ae,recordsPerPage:te,paginationColor:V,paginationSize:fe,paginationText:Fe,recordsLength:Se}),(0,b.jsx)(_e,{pt:Ie,pb:sr,fetching:l,loaderBackgroundBlur:Gr,loaderSize:Ce,loaderVariant:Vr}),(0,b.jsx)(Ke,{pt:Ie,pb:sr,icon:Zr,text:qr,active:!l&&!Se,children:Ur}),P&&G&&(0,b.jsx)(ar,{zIndex:P.zIndex,borderRadius:P.borderRadius,shadow:P.shadow,top:G.top,left:G.left,onDestroy:()=>se(null),children:P.items(G.record,G.recordIndex).map(({divider:m,key:O,title:X,icon:pe,color:Be,hidden:Oe,disabled:we,onClick:me})=>m?(0,b.jsx)(tr,{},O):Oe?null:(0,b.jsx)(fr,{title:X??De(O),icon:pe,color:Be,disabled:we,onClick:()=>{se(null),me()}},O))})]})}
|
|
1
|
+
"use strict";var bo=Object.create;var Te=Object.defineProperty;var Bo=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty;var yo=(e,r)=>{for(var o in r)Te(e,o,{get:r[o],enumerable:!0})},br=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Oo(r))!To.call(e,t)&&t!==o&&Te(e,t,{get:()=>r[t],enumerable:!(a=Bo(r,t))||a.enumerable});return e};var ye=(e,r,o)=>(o=e!=null?bo(wo(e)):{},br(r||!e||!e.__esModule?Te(o,"default",{value:e,enumerable:!0}):o,e)),ko=e=>br(Te({},"__esModule",{value:!0}),e);var Xo={};yo(Xo,{DataTable:()=>lr});module.exports=ko(Xo);var c=ye(require("react"),1);var V=require("@mantine/core"),ge=require("@mantine/hooks"),Vr=require("react");var Br=require("@mantine/core"),Ue=require("react/jsx-runtime"),Do=(0,Br.createStyles)({root:{"&&":{background:"transparent"}}});function qe(){let{classes:e}=Do();return(0,Ue.jsx)("tr",{className:e.root,children:(0,Ue.jsx)("td",{})})}var ee=require("@mantine/core");function N(){return N=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},N.apply(this,arguments)}function Po(e,r){if(e==null)return{};var o={},a=Object.keys(e),t,f;for(f=0;f<a.length;f++)t=a[f],!(r.indexOf(t)>=0)&&(o[t]=e[t]);return o}function _(e,r){if(e==null)return{};var o=Po(e,r),a,t;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(t=0;t<f.length;t++)a=f[t],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(o[a]=e[a]))}return o}var j=ye(require("react")),Ro=["size","color"];function Ze(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=_(e,Ro);return j.default.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-down",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),j.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),j.default.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),j.default.createElement("line",{x1:"18",y1:"13",x2:"12",y2:"19"}),j.default.createElement("line",{x1:"6",y1:"13",x2:"12",y2:"19"}))}var J=ye(require("react")),Ao=["size","color"];function $e(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=_(e,Ao);return J.default.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrows-vertical",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),J.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),J.default.createElement("polyline",{points:"8 7 12 3 16 7"}),J.default.createElement("polyline",{points:"8 17 12 21 16 17"}),J.default.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"21"}))}var Z=ye(require("react")),Mo=["size","color"];function Xe(e){var r=e.size,o=r===void 0?24:r,a=e.color,t=a===void 0?"currentColor":a,f=_(e,Mo);return Z.default.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-database-off",width:o,height:o,viewBox:"0 0 24 24",stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},f),Z.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.default.createElement("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),Z.default.createElement("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),Z.default.createElement("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),Z.default.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"}))}var A=require("react/jsx-runtime"),Lo=(0,ee.createStyles)(e=>({root:{position:"absolute",top:0,right:0,bottom:0,left:0,flexDirection:"column",pointerEvents:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[6],opacity:0,transition:"opacity .15s ease"},active:{opacity:1},standardIcon:{fontSize:0,borderRadius:"50%",padding:e.spacing.xs,background:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[2]}}));function Ke({icon:e,text:r,pt:o,pb:a,active:t,children:f}){let{classes:d,cx:p}=Lo();return(0,A.jsx)(ee.Center,{pt:o,pb:a,className:p(d.root,{[d.active]:t}),children:f||(0,A.jsxs)(A.Fragment,{children:[e||(0,A.jsx)("div",{className:d.standardIcon,children:(0,A.jsx)(Xe,{})}),(0,A.jsx)(ee.Text,{size:"sm",color:"dimmed",children:r})]})})}var W=require("@mantine/core"),Or=require("react"),ie=require("react/jsx-runtime"),vo=(0,W.createStyles)((e,{topBorderColor:r})=>({root:{borderTop:`1px solid ${typeof r=="function"?r(e):r}`,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",gap:e.spacing.xs,[e.fn.largerThan("xs")]:{flexDirection:"row"}},pagination:{opacity:1,transition:"opacity .15s ease"},paginationFetching:{opacity:0}})),wr=(0,Or.forwardRef)(function({className:r,style:o,topBorderColor:a,fetching:t,page:f,onPageChange:d,paginationColor:p,paginationSize:i,loadingText:u,noRecordsText:s,paginationText:g,totalRecords:l,recordsPerPage:x,recordsLength:n,horizontalSpacing:S},T){let B;if(t)B=u;else if(!l)B=s;else{let F=(f-1)*x+1,G=F+n-1;B=g({from:F,to:G,totalRecords:l})}let{classes:y,cx:P}=vo({topBorderColor:a});return(0,ie.jsxs)(W.Box,{ref:T,px:S??"xs",py:"xs",className:P(y.root,r),style:o,children:[(0,ie.jsx)(W.Text,{size:i,children:B}),(0,ie.jsx)(W.Pagination,{color:p,className:P(y.pagination,{[y.paginationFetching]:t||!n}),page:f,onChange:d,size:i,total:Math.ceil(l/x)})]})});var Re=require("@mantine/core"),Dr=require("react");var k=require("@mantine/core");var Tr=require("@mantine/core"),yr=require("@mantine/hooks");function ke(e){let r=(0,Tr.useMantineTheme)(),o=typeof e=="function"?e(r):e;return(0,yr.useMediaQuery)(o||"",!0)}function De(e){let r=e.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function kr(e,r,o){return e.filter(a=>!r.map(o).includes(o(a)))}function Pe(e,r){return e.filter((o,a,t)=>a===t.findIndex(f=>r(o)===r(f)))}function C(e,r){return r?r.match(/([^[.\]])+/g).reduce((a,t)=>a&&a[t],e):void 0}var M=require("react/jsx-runtime"),Ho=(0,k.createStyles)(e=>({sortableColumnHeader:{cursor:"pointer",transition:"background .15s ease","&:hover":{background:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]}},columnHeaderText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sortableColumnHeaderText:{minWidth:0,flexGrow:1},sortableColumnHeaderIcon:{transition:"transform .15s ease"},sortableColumnHeaderIconRotated:{transform:"rotate3d(0, 0, 1, 180deg)"},sortableColumnHeaderNeutralIcon:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],transition:"color .15s ease","th:hover &":{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]}}}));function Qe({className:e,sx:r,style:o,accessor:a,visibleMediaQuery:t,title:f,sortable:d,textAlignment:p,width:i,sortStatus:u,onSortStatusChange:s}){let{cx:g,classes:l}=Ho();if(!ke(t))return null;let x=f??De(a);return(0,M.jsx)(k.Box,{component:"th",className:g({[l.sortableColumnHeader]:d},e),sx:[{"&&":{textAlign:p},width:i,minWidth:i,maxWidth:i},r],style:o,role:d?"button":void 0,onClick:d&&s?()=>{s({columnAccessor:a,direction:u?.direction==="asc"?"desc":"asc"})}:void 0,children:d||u?.columnAccessor===a?(0,M.jsxs)(k.Group,{position:"apart",noWrap:!0,spacing:"xs",children:[(0,M.jsx)(k.Box,{className:g(l.columnHeaderText,l.sortableColumnHeaderText),children:x}),(0,M.jsx)(k.Center,{children:u?.columnAccessor===a?(0,M.jsx)(Ze,{className:g(l.sortableColumnHeaderIcon,{[l.sortableColumnHeaderIconRotated]:u.direction==="desc"}),size:14}):(0,M.jsx)($e,{className:l.sortableColumnHeaderNeutralIcon,size:14})})]}):(0,M.jsx)(k.Box,{className:l.columnHeaderText,children:x})})}var $=require("react/jsx-runtime"),Fo=(0,Re.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{zIndex:2,position:"sticky",top:0,background:e.colorScheme==="dark"?e.colors.dark[7]:e.white},textSelectionDisabled:{userSelect:"none"},selectorColumnHeader:{position:"sticky",width:0,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-e.spacing.sm,bottom:0,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},selectorColumnHeaderWithRightShadow:{"&::after":{opacity:1}},selectionCheckboxInput:{cursor:"pointer"}}}),Pr=(0,Dr.forwardRef)(function({className:r,style:o,sortStatus:a,onSortStatusChange:t,columns:f,selectionVisible:d,selectionChecked:p,selectionIndeterminate:i,onSelectionChange:u,leftShadowVisible:s},g){let{classes:l,cx:x}=Fo();return(0,$.jsx)("thead",{className:x(l.root,r),style:o,ref:g,children:(0,$.jsxs)("tr",{children:[d&&(0,$.jsx)("th",{className:x(l.selectorColumnHeader,{[l.selectorColumnHeaderWithRightShadow]:s}),children:(0,$.jsx)(Re.Checkbox,{classNames:{input:l.selectionCheckboxInput},checked:p,indeterminate:i,disabled:!u,onChange:u})}),f.map(({accessor:n,hidden:S,visibleMediaQuery:T,textAlignment:B,width:y,title:P,sortable:F,titleClassName:G,titleStyle:te,titleSx:U})=>S?null:(0,$.jsx)(Qe,{className:G,style:te,sx:U,accessor:n,visibleMediaQuery:T,textAlignment:B,width:y,title:P,sortable:F,sortStatus:a,onSortStatusChange:t},n))]})})});var re=require("@mantine/core"),Ye=require("react/jsx-runtime"),Eo=(0,re.createStyles)(e=>({root:{zIndex:3,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",background:e.fn.rgba(e.colorScheme==="dark"?e.colors.dark[8]:e.white,.75),opacity:0,transition:"opacity .15s ease"},fetching:{pointerEvents:"all",opacity:1}}));function _e({pt:e,pb:r,fetching:o,loaderBackgroundBlur:a,loaderSize:t,loaderVariant:f}){let{classes:d,cx:p}=Eo();return(0,Ye.jsx)(re.Center,{pt:e,pb:r,className:p(d.root,{[d.fetching]:o}),sx:a?{backdropFilter:`blur(${a}px)`}:void 0,children:o&&(0,Ye.jsx)(re.Loader,{size:t,variant:f})})}var Fr=require("@mantine/core");var Ae=require("@mantine/core");var Rr=require("react/jsx-runtime"),No=(0,Ae.createStyles)({withPointerCursor:{cursor:"pointer"},ellipsis:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}});function je({className:e,sx:r,style:o,visibleMediaQuery:a,record:t,recordIndex:f,onClick:d,ellipsis:p,textAlignment:i,width:u,accessor:s,render:g}){let{cx:l,classes:x}=No();return ke(a)?(0,Rr.jsx)(Ae.Box,{component:"td",className:l({[x.ellipsis]:p,[x.withPointerCursor]:d},e),sx:[{width:u,minWidth:u,maxWidth:u,textAlign:i},r],style:o,onClick:d,children:g?g(t,f):C(t,s)}):null}var ve=require("@mantine/core");var I=require("@mantine/hooks"),D=require("react");var Me=200,Le={leading:!0};function Ar(){let[e,r]=(0,I.useDebouncedState)(!0,Me,Le),[o,a]=(0,I.useDebouncedState)(!0,Me,Le),[t,f]=(0,I.useDebouncedState)(!0,Me,Le),[d,p]=(0,I.useDebouncedState)(!0,Me,Le);return{scrolledToTop:e,setScrolledToTop:r,scrolledToBottom:o,setScrolledToBottom:a,scrolledToLeft:t,setScrolledToLeft:f,scrolledToRight:d,setScrolledToRight:p}}function Mr(e){let[r,o]=(0,D.useState)(null),a=e?.join(":")||"";return(0,D.useEffect)(()=>{o(null)},[a]),{lastSelectionChangeIndex:r,setLastSelectionChangeIndex:o}}function Lr(e){let[r,o]=(0,D.useState)(null);return(0,D.useEffect)(()=>{e&&o(null)},[e]),{rowContextMenuInfo:r,setRowContextMenuInfo:o}}function vr({rowExpansion:e,records:r,idAccessor:o}){let a=[];if(e&&r){let{trigger:p,allowMultiple:i,initiallyExpanded:u}=e;r&&p==="always"?a=r.map(s=>C(s,o)):u&&(a=r.filter(u).map(s=>C(s,o)),i||(a=[a[0]]))}let t,f,d=(0,D.useState)(a);if(e){let{trigger:p,allowMultiple:i,collapseProps:u,content:s}=e;e.expanded?{recordIds:t,onRecordIdsChange:f}=e.expanded:[t,f]=d;let g=l=>f(t.filter(x=>x!==C(l,o)));return{expandOnClick:p!=="always"&&p!=="never",isRowExpanded:l=>p==="always"?!0:t.includes(C(l,o)),expandRow:l=>{let x=C(l,o);f(i?[...t,x]:[x])},collapseRow:g,collapseProps:u,content:(l,x)=>()=>s({record:l,recordIndex:x,collapse:()=>g(l)})}}}function Hr(e,r){let[o,a]=(0,D.useState)(e),[t,f]=(0,D.useState)(e),d=(0,I.useTimeout)(()=>a(!0),0),p=(0,I.useTimeout)(()=>f(!1),r||200);return(0,D.useEffect)(()=>{e?(p.clear(),f(!0),d.start()):(d.clear(),a(!1),p.start())},[d,p,e]),{expanded:o,visible:t}}var L=require("react/jsx-runtime"),Wo=(0,ve.createStyles)({cell:{"&&":{borderBottomWidth:0,padding:0}},expandedCell:{"&&":{borderBottomWidth:1}}});function Je({open:e,colSpan:r,content:o,collapseProps:a}){let{expanded:t,visible:f}=Hr(e,a?.transitionDuration),{cx:d,classes:p}=Wo();return f?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("tr",{}),(0,L.jsx)("tr",{children:(0,L.jsx)("td",{className:d(p.cell,{[p.expandedCell]:t}),colSpan:r,children:(0,L.jsx)(ve.Collapse,{in:t,...a,children:o()})})})]}):null}var He=require("@mantine/core"),er=require("react/jsx-runtime"),Io=(0,He.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{position:"sticky",zIndex:1,left:0,background:"inherit","&::after":{content:'""',position:"absolute",top:0,right:-e.spacing.sm,bottom:0,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`,pointerEvents:"none",opacity:0,transition:"opacity .15s ease"}},withRightShadow:{"&::after":{opacity:1}},checkbox:{cursor:"pointer"}}});function rr({withRightShadow:e,...r}){let{cx:o,classes:a}=Io();return(0,er.jsx)("td",{className:o(a.root,{[a.withRightShadow]:e}),children:(0,er.jsx)(He.Checkbox,{classNames:{input:a.checkbox},...r,onClick:t=>t.stopPropagation()})})}var v=require("react/jsx-runtime"),zo=(0,Fr.createStyles)(e=>{let r=e.colors[e.primaryColor][6];return{withPointerCursor:{cursor:"pointer"},selected:{"&&":{"tr&":{background:e.colorScheme==="dark"?e.fn.darken(r,.6):e.fn.lighten(r,.9)},"table[data-striped] tbody &:nth-of-type(odd)":{background:e.colorScheme==="dark"?e.fn.darken(r,.55):e.fn.lighten(r,.85)}}},contextMenuVisible:{"&&":{"tr&":{background:e.colorScheme==="dark"?e.fn.darken(r,.5):e.fn.lighten(r,.7)},"table[data-striped] tbody &:nth-of-type(odd)":{background:e.colorScheme==="dark"?e.fn.darken(r,.45):e.fn.lighten(r,.65)}}}}});function or({record:e,recordIndex:r,columns:o,selectionVisible:a,selectionChecked:t,onSelectionChange:f,onClick:d,onCellClick:p,onContextMenu:i,expansion:u,contextMenuVisible:s,leftShadowVisible:g}){let{cx:l,classes:x}=zo();return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("tr",{className:l({[x.withPointerCursor]:d||u?.expandOnClick,[x.selected]:t,[x.contextMenuVisible]:s}),onClick:n=>{if(u){let{isRowExpanded:S,expandOnClick:T,expandRow:B,collapseRow:y}=u;T&&(S(e)?y(e):B(e))}d?.(n)},onContextMenu:i,children:[a&&(0,v.jsx)(rr,{withRightShadow:g,checked:t,disabled:!f,onChange:f}),o.map((n,S)=>{let{accessor:T,hidden:B,visibleMediaQuery:y,textAlignment:P,ellipsis:F,width:G,render:te,cellsClassName:U,cellsStyle:fe,cellsSx:Fe}=n,Ce;return p&&(Ce=()=>p({record:e,recordIndex:r,column:n,columnIndex:S})),B?null:(0,v.jsx)(je,{className:typeof U=="function"?U(e,r):U,style:typeof fe=="function"?fe(e,r):fe,sx:Fe,visibleMediaQuery:y,record:e,recordIndex:r,onClick:Ce,accessor:T,textAlignment:P,ellipsis:F,width:G,render:te},T)})]}),u&&(0,v.jsx)(Je,{colSpan:o.filter(n=>!n.hidden).length+(a?1:0),open:u.isRowExpanded(e),content:u.content(e,r),collapseProps:u.collapseProps})]})}var oe=require("@mantine/core"),H=require("@mantine/hooks"),Er=require("react/jsx-runtime"),Vo=(0,oe.createStyles)(e=>({root:{position:"fixed",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,overflow:"hidden",transition:"all .15s ease"}}));function ar({borderRadius:e="xs",shadow:r="sm",zIndex:o=3,top:a,left:t,onDestroy:f,children:d}){(0,H.useWindowEvent)("resize",f),(0,H.useWindowEvent)("scroll",f);let p=(0,H.useClickOutside)(f),{ref:i,width:u,height:s}=(0,H.useElementSize)(),g=(0,H.useMergedRef)(p,i),{spacing:{xs:l}}=(0,oe.useMantineTheme)(),{innerWidth:x,innerHeight:n}=window,S=a+s+l>n?n-s-l:a,T=t+u+l>x?x-u-l:t,{classes:B}=Vo();return(0,Er.jsx)(oe.Paper,{ref:g,shadow:r,radius:e,className:B.root,sx:{top:S,left:T,zIndex:o},children:d})}var Nr=require("@mantine/core"),Wr=require("react/jsx-runtime"),Go=(0,Nr.createStyles)(e=>({root:{height:1,background:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]}}));function tr(){let{classes:e}=Go();return(0,Wr.jsx)("div",{className:e.root})}var z=require("@mantine/core"),ce=require("react/jsx-runtime"),Uo=(0,z.createStyles)((e,{color:r})=>{let o=e.spacing.sm/2;return{root:{width:"100%",display:"flex",alignItems:"center",paddingTop:o,paddingBottom:o,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,color:r&&e.colors[r][6],transition:"background .15s ease","&[disabled]":{cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&:hover:not([disabled])":{background:e.fn.rgba(r?e.colors[r][6]:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4],r?e.colorScheme==="dark"?.15:.08:.25)},"&:active:not([disabled])":{background:e.fn.rgba(r?e.colors[r][6]:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4],r?e.colorScheme==="dark"?.3:.2:.5)}},icon:{fontSize:0,marginRight:e.spacing.xs},title:{whiteSpace:"nowrap"}}});function fr({icon:e,title:r,color:o,disabled:a,onClick:t}){let{classes:f}=Uo({color:o});return(0,ce.jsxs)(z.UnstyledButton,{className:f.root,disabled:a,onClick:t,children:[e&&(0,ce.jsx)(z.Box,{className:f.icon,children:e}),(0,ce.jsx)(z.Text,{className:f.title,size:"sm",children:r})]})}var ae=require("@mantine/core"),Ir=require("react"),X=require("react/jsx-runtime"),qo=(0,ae.createStyles)(e=>{let r=e.colorScheme==="dark"?.5:.05;return{root:{flex:"1 1 100%"},scrollbar:{'&[data-state="visible"]':{background:"transparent"},"div::before":{pointerEvents:"none"}},corner:{background:"transparent"},thumb:{zIndex:3},shadow:{position:"absolute",pointerEvents:"none",opacity:0,transition:"opacity .15s ease"},topShadow:{zIndex:2,top:0,left:0,right:0,height:e.spacing.sm,background:`linear-gradient(${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},leftShadow:{zIndex:3,top:0,left:0,bottom:0,width:e.spacing.sm,background:`linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to right, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},rightShadow:{zIndex:2,top:0,bottom:0,right:0,width:e.spacing.sm,background:`linear-gradient(to left, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)}), linear-gradient(to left, ${e.fn.rgba(e.black,r)}, ${e.fn.rgba(e.black,0)} 30%)`},bottomShadow:{zIndex:2,left:0,right:0,bottom:0,height:e.spacing.sm,background:`linear-gradient(${e.fn.rgba(e.black,0)}, ${e.fn.rgba(e.black,r)}), linear-gradient(${e.fn.rgba(e.black,0)} 30%, ${e.fn.rgba(e.black,r)})`},shadowVisible:{opacity:1}}}),zr=(0,Ir.forwardRef)(function({topShadowVisible:r,leftShadowVisible:o,rightShadowVisible:a,bottomShadowVisible:t,headerHeight:f,onScrollPositionChange:d,children:p},i){let{cx:u,classes:s}=qo();return(0,X.jsxs)(ae.ScrollArea,{viewportRef:i,classNames:{root:s.root,scrollbar:s.scrollbar,thumb:s.thumb,corner:s.corner},styles:{scrollbar:{marginTop:f}},onScrollPositionChange:d,children:[p,(0,X.jsx)(ae.Box,{className:u(s.shadow,s.topShadow,{[s.shadowVisible]:r}),sx:{top:f}}),(0,X.jsx)("div",{className:u(s.shadow,s.leftShadow,{[s.shadowVisible]:o})}),(0,X.jsx)("div",{className:u(s.shadow,s.rightShadow,{[s.shadowVisible]:a})}),(0,X.jsx)("div",{className:u(s.shadow,s.bottomShadow,{[s.shadowVisible]:t})})]})});var b=require("react/jsx-runtime"),Zo={},$o=(0,V.createStyles)((e,{borderColor:r,rowBorderColor:o})=>{let a=typeof r=="function"?r(e):r,t=typeof o=="function"?o(e):o;return{root:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",tr:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white},"&&":{"thead tr th":{borderBottomColor:a},"tbody tr td":{borderBottomColor:t}}},lastRowBorderBottomVisible:{"tbody tr:last-of-type td":{borderBottom:`1px solid ${t}`}},textSelectionDisabled:{userSelect:"none"},table:{borderCollapse:"separate",borderSpacing:0},tableWithBorder:{border:`1px solid ${a}`},tableWithColumnBorders:{"th, td":{":not(:first-of-type)":{borderLeft:`1px solid ${t}`}}},verticalAlignmentTop:{td:{verticalAlign:"top"}},verticalAlignmentBottom:{td:{verticalAlign:"bottom"}}}});function lr({withBorder:e,borderRadius:r,borderColor:o=h=>h.colorScheme==="dark"?h.colors.dark[4]:h.colors.gray[3],rowBorderColor:a=h=>h.fn.rgba(h.colorScheme==="dark"?h.colors.dark[4]:h.colors.gray[3],.65),withColumnBorders:t,textSelectionDisabled:f,height:d="100%",minHeight:p,shadow:i,verticalAlignment:u="center",fetching:s,columns:g,idAccessor:l="id",records:x,selectedRecords:n,onSelectedRecordsChange:S,sortStatus:T,onSortStatusChange:B,horizontalSpacing:y,page:P,onPageChange:F,totalRecords:G,recordsPerPage:te,paginationColor:U,paginationSize:fe="sm",paginationText:Fe=({from:h,to:le,totalRecords:K})=>`${h} - ${le} / ${K}`,loaderSize:Ce,loaderVariant:Gr,loaderBackgroundBlur:Ur,loadingText:qr="...",emptyState:Zr,noRecordsText:sr="No records",noRecordsIcon:$r,striped:Xr,onRowClick:Ee,onCellClick:Kr,rowContextMenu:R,rowExpansion:Qr,m:Yr,my:_r,mx:jr,mt:Jr,mb:eo,ml:ro,mr:oo,sx:ao,className:to,classNames:Ne,style:fo,styles:We,...lo}){let{ref:h,width:le,height:K}=(0,ge.useElementSize)(),{ref:so,height:Ie}=(0,ge.useElementSize)(),{ref:uo,width:ze,height:he}=(0,ge.useElementSize)(),{ref:po,height:dr}=(0,ge.useElementSize)(),{scrolledToTop:mo,setScrolledToTop:ur,scrolledToBottom:xo,setScrolledToBottom:pr,scrolledToLeft:mr,setScrolledToLeft:xr,scrolledToRight:no,setScrolledToRight:nr}=Ar(),{rowContextMenuInfo:q,setRowContextMenuInfo:se}=Lr(s),io=vr({rowExpansion:Qr,records:x,idAccessor:l}),ir=()=>{if(!s&&R&&se(null),s||he<=K)ur(!0),pr(!0);else{let m=h.current.scrollTop;ur(m===0),pr(Math.round(he-m)===Math.round(K))}if(s||ze===le)xr(!0),nr(!0);else{let m=h.current.scrollLeft;xr(m===0),nr(Math.round(ze-m)===Math.round(le))}};(0,Vr.useEffect)(ir,[s,K,h,le,he,ze]);let co=m=>{h.current.scrollTo({top:0,left:0}),F(m)},Se=x?.length,de=x?.map(m=>C(m,l)),ue=n?.map(m=>C(m,l)),cr=de!==void 0&&ue!==void 0&&ue.length>0,Ve=cr&&de.every(m=>ue.includes(m)),go=cr&&de.some(m=>ue.includes(m)),gr;S&&(gr=()=>{S(Ve?n.filter(m=>!de.includes(C(m,l))):Pe([...n,...x],m=>C(m,l)))});let{lastSelectionChangeIndex:be,setLastSelectionChangeIndex:Co}=Mr(de),Cr=!!n&&!mr,{cx:hr,classes:E,theme:ho}=$o({borderColor:o,rowBorderColor:a}),So={m:Yr,my:_r,mx:jr,mt:Jr,mb:eo,ml:ro,mr:oo},Ge=typeof We=="function"?We(ho,Zo):We;return(0,b.jsxs)(V.Box,{...So,className:hr(E.root,{[E.tableWithBorder]:e},to,Ne?.root),sx:[m=>({borderRadius:m.radius[r]||r,boxShadow:m.shadows[i]||i,height:d,minHeight:p}),...(0,V.packSx)(ao)],style:{...Ge?.root,...fo},children:[(0,b.jsx)(zr,{ref:h,topShadowVisible:!mo,leftShadowVisible:!(n||mr),rightShadowVisible:!no,bottomShadowVisible:!xo,headerHeight:Ie,onScrollPositionChange:ir,children:(0,b.jsxs)(V.Table,{ref:uo,horizontalSpacing:y,className:hr(E.table,{[E.tableWithColumnBorders]:t,[E.lastRowBorderBottomVisible]:he<K,[E.textSelectionDisabled]:f,[E.verticalAlignmentTop]:u==="top",[E.verticalAlignmentBottom]:u==="bottom"}),striped:Se?Xr:!1,...lo,children:[(0,b.jsx)(Pr,{ref:so,className:Ne?.header,style:Ge?.header,columns:g,sortStatus:T,onSortStatusChange:B,selectionVisible:!!n,selectionChecked:Ve,selectionIndeterminate:go&&!Ve,onSelectionChange:gr,leftShadowVisible:Cr}),(0,b.jsx)("tbody",{children:Se?x.map((m,O)=>{let Q=C(m,l),pe=ue?.includes(Q)||!1,Be=!1,Oe=!1;if(R){let{hidden:w}=R;(!w||!(typeof w=="function"?w(m,O):w))&&(R.trigger==="click"?Be=!0:Oe=!0)}let we;S&&(we=w=>{if(w.nativeEvent.shiftKey&&be!==null){let Y=x.filter(O>be?(xe,ne)=>ne>=be&&ne<=O:(xe,ne)=>ne>=O&&ne<=be);S(pe?kr(n,Y,xe=>C(xe,l)):Pe([...n,...Y],xe=>C(xe,l)))}else S(pe?n.filter(Y=>C(Y,l)!==Q):Pe([...n,m],Y=>C(Y,l)));Co(O)});let me;Be?me=w=>{se({top:w.clientY,left:w.clientX,record:m,recordIndex:O}),Ee?.(m,O)}:Ee&&(me=()=>{Ee(m,O)});let Sr;return Oe&&(Sr=w=>{w.preventDefault(),se({top:w.clientY,left:w.clientX,record:m,recordIndex:O})}),(0,b.jsx)(or,{record:m,recordIndex:O,columns:g,selectionVisible:!!n,selectionChecked:pe,onSelectionChange:we,onClick:me,onCellClick:Kr,onContextMenu:Sr,contextMenuVisible:q?C(q.record,l)===Q:!1,expansion:io,leftShadowVisible:Cr},Q)}):(0,b.jsx)(qe,{})})]})}),P&&(0,b.jsx)(wr,{ref:po,className:Ne?.pagination,style:Ge?.pagination,topBorderColor:o,horizontalSpacing:y,fetching:s,page:P,onPageChange:co,totalRecords:G,recordsPerPage:te,paginationColor:U,paginationSize:fe,paginationText:Fe,noRecordsText:sr,loadingText:qr,recordsLength:Se}),(0,b.jsx)(_e,{pt:Ie,pb:dr,fetching:s,loaderBackgroundBlur:Ur,loaderSize:Ce,loaderVariant:Gr}),(0,b.jsx)(Ke,{pt:Ie,pb:dr,icon:$r,text:sr,active:!s&&!Se,children:Zr}),R&&q&&(0,b.jsx)(ar,{zIndex:R.zIndex,borderRadius:R.borderRadius,shadow:R.shadow,top:q.top,left:q.left,onDestroy:()=>se(null),children:R.items(q.record,q.recordIndex).map(({divider:m,key:O,title:Q,icon:pe,color:Be,hidden:Oe,disabled:we,onClick:me})=>m?(0,b.jsx)(tr,{},O):Oe?null:(0,b.jsx)(fr,{title:Q??De(O),icon:pe,color:Be,disabled:we,onClick:()=>{se(null),me()}},O))})]})}
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|