@zydon/common 1.0.69 → 1.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { f as D, n as L, r as En, c as jn, i as K, a as jt, s as Xs, b as It, d as xt, e as In, g as Ot, h as it, p as ot, j as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-0bf2412f.js";
1
+ import { f as D, n as L, r as En, c as jn, i as K, a as jt, s as Xs, b as It, d as xt, e as In, g as Ot, h as it, p as ot, j as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-f75a6dd7.js";
2
2
  import Hn, { useContext as ie, useId as Pi, useEffect as Ti } from "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";
@@ -1,10 +1,11 @@
1
1
  export { default as useActiveElement } from './useActiveElement';
2
2
  export { default as useActiveLink } from './useActiveLink';
3
3
  export { default as useCopyToClipboard } from './useCopyToClipboard';
4
+ export { default as useDatagrid } from './useDatagrid';
4
5
  export { default as useDeepCompareEffect } from './useDeepCompareEffect';
6
+ export { default as useEventListener } from './useEventListener';
5
7
  export { default as useIsMounting } from './useIsMounting';
6
8
  export { default as useResponsive } from './useResponsive';
7
9
  export { default as useTabs } from './useTabs';
8
10
  export { default as useToggle } from './useToggle';
9
- export { default as useEventListener } from './useEventListener';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ interface State {
3
+ page?: number;
4
+ perPage?: number;
5
+ search?: string;
6
+ searchValue?: string;
7
+ sort?: string;
8
+ dir?: 'asc' | 'desc';
9
+ }
10
+ declare const useDatagrid: ({ page, perPage, dir, search, searchValue, sort }?: State) => {
11
+ apiRef: import("react").MutableRefObject<import("@mui/x-data-grid-premium/models/gridApiPremium").GridApiPremium>;
12
+ page: number;
13
+ perPage: number;
14
+ handlePaginationModelChange: ({ pageSize, page }: {
15
+ pageSize?: number | undefined;
16
+ page?: number | undefined;
17
+ }) => void;
18
+ handleSearch: (search: string | undefined) => void;
19
+ handleSort: (field: string, dir: 'asc' | 'desc') => void;
20
+ handleSearchValue: (search: string | undefined) => void;
21
+ applySearchValue: () => void;
22
+ goToPageFirstPage: () => void;
23
+ search?: string | undefined;
24
+ searchValue?: string | undefined;
25
+ sort?: string | undefined;
26
+ dir?: "desc" | "asc" | undefined;
27
+ };
28
+ export default useDatagrid;
29
+ //# sourceMappingURL=useDatagrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDatagrid.d.ts","sourceRoot":"","sources":["../../src/hooks/useDatagrid.ts"],"names":[],"mappings":";AAGA,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,uDACoC,KAAK;;;;;;;;2BAmB1B,MAAM,GAAG,SAAS;wBASrB,MAAM,OAAO,KAAK,GAAG,MAAM;gCANnB,MAAM,GAAG,SAAS;;;;;;;CA0BtD,CAAC;AAEF,eAAe,WAAW,CAAC"}