@smart-factor/gem-ui-components 0.0.110 → 0.0.112
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/SignEditor.js +1 -1
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +1 -1
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +14 -0
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +3 -1
- package/dist/main.js +468 -464
- package/dist/{theme-9d_uGPss.js → theme-BLG8R3oq.js} +3257 -3253
- package/package.json +1 -1
package/dist/SignEditor.js
CHANGED
|
@@ -6,7 +6,7 @@ var EI = (o, e, t) => e in o ? BI(o, e, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Vu = (o, e, t) => EI(o, typeof e != "symbol" ? e + "" : e, t), Zm = (o, e, t) => e.has(o) || $x("Cannot " + t);
|
|
7
7
|
var Ct = (o, e, t) => (Zm(o, e, "read from private field"), t ? t.call(o) : e.get(o)), ba = (o, e, t) => e.has(o) ? $x("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(o) : e.set(o, t), gi = (o, e, t, n) => (Zm(o, e, "write to private field"), n ? n.call(o, t) : e.set(o, t), t), Di = (o, e, t) => (Zm(o, e, "access private method"), t);
|
|
8
8
|
import { jsx as Dt, jsxs as ca, Fragment as E_ } from "react/jsx-runtime";
|
|
9
|
-
import { S as jI, p as Wx, r as xl, s as av, a as Rf, n as LI, i as rv, b as Xx, t as PI, f as FI, c as NI, d as Yx, e as q5, g as II, u as Tp, h as Zx, G as sv, j as wA, k as vs, D as R5, B as Ep, l as Rw, m as MI, z as tu, o as j_, q as Q5, I as s_, A as G5, F as OI, U as Jx, v as qI, w as RI, x as QI, y as GI, T as VI, K as DI, Q as HI } from "./theme-
|
|
9
|
+
import { S as jI, p as Wx, r as xl, s as av, a as Rf, n as LI, i as rv, b as Xx, t as PI, f as FI, c as NI, d as Yx, e as q5, g as II, u as Tp, h as Zx, G as sv, j as wA, k as vs, D as R5, B as Ep, l as Rw, m as MI, z as tu, o as j_, q as Q5, I as s_, A as G5, F as OI, U as Jx, v as qI, w as RI, x as QI, y as GI, T as VI, K as DI, Q as HI } from "./theme-BLG8R3oq.js";
|
|
10
10
|
import { c as V5, s as $i, F as pu, G as L_, E as D5, S as jp } from "./Stack-CP81SpOh.js";
|
|
11
11
|
import * as uc from "react";
|
|
12
12
|
import { createContext as UI, useContext as zI, useState as Ll, useCallback as sA, useEffect as hc, useMemo as Lp, useRef as KI } from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import { TableWithPaginationProps } from './types';
|
|
3
|
-
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, getRowId, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, getRowId, getDetailPanelContent, getDetailPanelHeight, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts
CHANGED
|
@@ -10,3 +10,17 @@ export declare const Default: Story;
|
|
|
10
10
|
export declare const Loading: Story;
|
|
11
11
|
export declare const Empty: Story;
|
|
12
12
|
export declare const WithExcelExport: Story;
|
|
13
|
+
interface ExtendedRowData extends GridValidRowModel {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
email: string;
|
|
17
|
+
department: string;
|
|
18
|
+
role: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
details?: {
|
|
21
|
+
startDate: string;
|
|
22
|
+
location: string;
|
|
23
|
+
manager: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const WithDetailPanel: StoryObj<TableWithPaginationProps<ExtendedRowData>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridApiPro, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { GridApiPro, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridRowParams, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
interface SortState {
|
|
3
3
|
field: string;
|
|
4
4
|
direction: 'asc' | 'desc' | '';
|
|
@@ -48,5 +48,7 @@ export interface TableWithPaginationProps<T extends GridValidRowModel> {
|
|
|
48
48
|
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
49
49
|
showPaginationFirstAndLastButtons?: boolean;
|
|
50
50
|
getRowId?: (row: T) => string;
|
|
51
|
+
getDetailPanelContent?: (params: GridRowParams<T>) => React.ReactNode;
|
|
52
|
+
getDetailPanelHeight?: (params: GridRowParams<T>) => number | 'auto';
|
|
51
53
|
}
|
|
52
54
|
export {};
|