@erpsquad/common 1.8.24 → 1.8.25

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,5 +1,7 @@
1
- var dist = { exports: {} };
1
+ import { getAugmentedNamespace } from "../_commonjsHelpers/index.esm.js";
2
+ import * as index from "../../node_modules/@mui/material/utils/index/index.esm.js";
3
+ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
2
4
  export {
3
- dist as __module
5
+ require$$0 as default
4
6
  };
5
7
  //# sourceMappingURL=index.esm2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.esm2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,7 +1,5 @@
1
- import { getAugmentedNamespace } from "../_commonjsHelpers/index.esm.js";
2
- import * as index from "../../node_modules/@mui/material/utils/index/index.esm.js";
3
- var require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
1
+ var dist = { exports: {} };
4
2
  export {
5
- require$$0 as default
3
+ dist as __module
6
4
  };
7
5
  //# sourceMappingURL=index.esm3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index.esm3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__module={exports:{}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_commonjsHelpers/index.js"),r=require("../../node_modules/@mui/material/utils/index/index.js"),s=/* @__PURE__ */e.getAugmentedNamespace(r);exports.default=s;
2
2
  //# sourceMappingURL=index2.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_commonjsHelpers/index.js"),r=require("../../node_modules/@mui/material/utils/index/index.js"),s=/* @__PURE__ */e.getAugmentedNamespace(r);exports.default=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__module={exports:{}};
2
2
  //# sourceMappingURL=index3.js.map
@@ -0,0 +1,13 @@
1
+ import { MRT_RowData } from 'material-react-table';
2
+
3
+ export declare const aggregationFns: {
4
+ none: () => any;
5
+ min: (data: MRT_RowData[], column: string) => string;
6
+ max: (data: MRT_RowData[], column: string) => string;
7
+ sum: (data: MRT_RowData[], column: string) => string;
8
+ average: (data: MRT_RowData[], column: string) => string;
9
+ countEmpty: (data: MRT_RowData[], column: string) => string;
10
+ countFull: (data: MRT_RowData[], column: string) => string;
11
+ percentageEmpty: (data: MRT_RowData[], column: string) => string;
12
+ percentageFull: (data: MRT_RowData[], column: string) => string;
13
+ };
@@ -0,0 +1,9 @@
1
+ import { MRT_RowData } from 'material-react-table';
2
+
3
+ interface IDefaultAggregation {
4
+ data: MRT_RowData[];
5
+ column: string;
6
+ columnDef?: any;
7
+ }
8
+ declare const DefaultAggregation: ({ data, column, }: IDefaultAggregation) => import("react/jsx-runtime").JSX.Element;
9
+ export default DefaultAggregation;
@@ -0,0 +1,5 @@
1
+ interface IHeaderCell {
2
+ column: any;
3
+ }
4
+ declare const HeaderCell: ({ column }: IHeaderCell) => import("react/jsx-runtime").JSX.Element;
5
+ export default HeaderCell;
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface IInlineEditFields {
4
+ cell: any;
5
+ column: any;
6
+ row: any;
7
+ table: any;
8
+ col: any;
9
+ callback: (value: any, column: any, rowId: any) => any;
10
+ errors: any;
11
+ validationSchema: any;
12
+ setValidationErrors: any;
13
+ onChangeRowField?: (e: any, type: string, row: any) => any;
14
+ getSelectedData: any;
15
+ }
16
+ declare const InlineEditFields: React.FC<IInlineEditFields>;
17
+ export default InlineEditFields;
@@ -0,0 +1,9 @@
1
+ import { MRT_RowData } from 'material-react-table';
2
+
3
+ interface INumberAggregation {
4
+ data: MRT_RowData[];
5
+ column: string;
6
+ type?: string;
7
+ }
8
+ declare const NumberAggregation: ({ data, column, type }: INumberAggregation) => import("react/jsx-runtime").JSX.Element;
9
+ export default NumberAggregation;
@@ -0,0 +1,40 @@
1
+ import { default as React } from 'react';
2
+ import { MRT_ColumnDef, MRT_Header, MRT_RowData, MRT_TableInstance } from 'material-react-table';
3
+
4
+ type ExtraEditVariants = 'file' | 'image' | 'date' | 'number' | 'time' | 'date_time' | 'phone' | 'checkbox';
5
+ type DisableFunction = (row: any, virtualRow?: any) => boolean;
6
+ export type TypeBooleanLabels = {
7
+ 1: string;
8
+ 0: string;
9
+ true: string;
10
+ false: string;
11
+ };
12
+ export interface MaterialEditableTableColumnProps extends Omit<MRT_ColumnDef<MRT_RowData>, 'editVariant'> {
13
+ visible?: boolean;
14
+ type?: string;
15
+ showDefaultCurrency?: boolean;
16
+ valueGet?: string;
17
+ custom_class?: string;
18
+ typeArrayAccessorKey?: string;
19
+ typeBooleanLabels?: TypeBooleanLabels;
20
+ editVariant?: MRT_ColumnDef<MRT_RowData>['editVariant'] | ExtraEditVariants;
21
+ editProperties?: {
22
+ field_name?: string;
23
+ valueKey?: string;
24
+ placeholder?: string;
25
+ dateFormat?: string;
26
+ validations?: any[];
27
+ is_multiple?: boolean;
28
+ is_multiline?: boolean;
29
+ disable?: boolean | DisableFunction;
30
+ };
31
+ redirectionPathWithId?: string;
32
+ idField?: string;
33
+ }
34
+ export interface MaterialEditableTableColumnHeaderProps {
35
+ column: MRT_ColumnDef<any, any>;
36
+ header: MRT_Header<any>;
37
+ table: MRT_TableInstance<any>;
38
+ }
39
+ declare const MaterialEditableTable: React.MemoExoticComponent<({ enablePagination, rows, columns, totalPages, paginationModel, columnOrder, updateData, handleColumnOrdering, enableEditing, enableColumnDragging, states, rowActionMenu, destructiveActionMenu, disableDefaultActionColumn, enableRowSelection, defaultActionColumnItems, enableBottomToolbar, SetSelectedRowId, isResetRow, onCreateRow, onEditRow, onDeleteRow, editDisplayMode, enableRowCreate, onChangeRowField, onSelectRow, enableColumnResizing, selectedRowIds, onColumnVisibility, onSortingChange, getSelectedData, disabledDefaultActionColumnIcon, enableAddCustomField, enableRowDragging, handleColumnResizing, columnSizes, ...rest }: MaterialTablePropsType) => import("react/jsx-runtime").JSX.Element>;
40
+ export default MaterialEditableTable;
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from "../../../../../_virtual/_commonjsHelpers/index.esm.js";
2
- import { __module as dist } from "../../../../../_virtual/index/index.esm2.js";
2
+ import { __module as dist } from "../../../../../_virtual/index/index.esm3.js";
3
3
  import React__default from "react";
4
4
  import ReactDOM__default from "react-dom";
5
5
  import require$$0 from "react-is";