@smart-factor/gem-ui-components 0.0.124 → 0.0.126

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.
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
2
2
  var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
5
- import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-4UybJX1Q.js";
5
+ import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-17nbsih3.js";
6
6
  import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-Bsa5WF4E.js";
7
7
  import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
8
8
  import "react-dom";
@@ -4,6 +4,7 @@ interface TableCustomToolbarProps {
4
4
  gridApiRef: React.MutableRefObject<GridApiPro>;
5
5
  exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
6
6
  isFilterActive: boolean;
7
+ onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
7
8
  }
8
9
  export declare const TableCustomToolbar: FC<TableCustomToolbarProps>;
9
10
  export {};
@@ -3,6 +3,7 @@ import { GridApiPro } from '@mui/x-data-grid-pro';
3
3
  interface TableExportButtonProps {
4
4
  gridApiRef: React.MutableRefObject<GridApiPro>;
5
5
  exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
6
+ onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
6
7
  }
7
8
  export declare const TableExportButton: FC<TableExportButtonProps>;
8
9
  export {};
@@ -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, getDetailPanelContent, getDetailPanelHeight, }: 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, onExport, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -46,6 +46,7 @@ export interface TableWithPaginationProps<T extends GridValidRowModel> {
46
46
  filterModel?: GridFilterModel;
47
47
  onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
48
48
  exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
49
+ onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
49
50
  showPaginationFirstAndLastButtons?: boolean;
50
51
  getRowId?: (row: T) => string;
51
52
  getDetailPanelContent?: (params: GridRowParams<T>) => React.ReactNode;
@@ -270754,7 +270754,7 @@ const StyledFormHelperText$1 = styled$1(FormHelperText)`
270754
270754
  error: !!W0,
270755
270755
  helperText: W0,
270756
270756
  fullWidth: !0,
270757
- value: A0.value || "",
270757
+ value: A0.value ?? "",
270758
270758
  inputProps: {
270759
270759
  ...i0.inputProps,
270760
270760
  "data-testid": u0