componentes-sinco 1.0.2-rc.6 → 1.0.2-rc.8
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/index.cjs +56 -95
- package/dist/index.d.cts +2 -6
- package/dist/index.d.mts +392 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.js +48 -87
- package/dist/index.mjs +3833 -0
- package/package.json +18 -17
- package/dist/componentes-sinco.css +0 -1
- package/dist/my-react-lib.es.js +0 -105856
- package/dist/my-react-lib.umd.js +0 -454
- package/dist/src/App.d.ts +0 -4
- package/dist/src/Components/Adjuntar/Adjuntar.d.ts +0 -4
- package/dist/src/Components/Adjuntar/Model.d.ts +0 -17
- package/dist/src/Components/Adjuntar/index.d.ts +0 -1
- package/dist/src/Components/Calendario/Calendario.d.ts +0 -3
- package/dist/src/Components/Drawer/Helpers/Model.d.ts +0 -55
- package/dist/src/Components/Drawer/Helpers/Utils.d.ts +0 -4
- package/dist/src/Components/Drawer/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Drawer/Helpers/validateInput.d.ts +0 -3
- package/dist/src/Components/Drawer/SCDrawer.d.ts +0 -5
- package/dist/src/Components/Drawer/SCDrawer.test.d.ts +0 -1
- package/dist/src/Components/Drawer/index.d.ts +0 -1
- package/dist/src/Components/FooterAction/FooterAction.d.ts +0 -4
- package/dist/src/Components/FooterAction/Model.d.ts +0 -6
- package/dist/src/Components/FooterAction/index.d.ts +0 -2
- package/dist/src/Components/Hooks/useWindowDimensions.d.ts +0 -4
- package/dist/src/Components/Modal/Helpers/Data.d.ts +0 -19
- package/dist/src/Components/Modal/Helpers/Model.d.ts +0 -26
- package/dist/src/Components/Modal/Helpers/Utils.d.ts +0 -3
- package/dist/src/Components/Modal/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Modal/SCModal.d.ts +0 -4
- package/dist/src/Components/Modal/SCModal.test.d.ts +0 -1
- package/dist/src/Components/Modal/index.d.ts +0 -2
- package/dist/src/Components/MultiSelect/MultiSelect.test.d.ts +0 -1
- package/dist/src/Components/MultiSelect/SCMultiSelect.d.ts +0 -4
- package/dist/src/Components/MultiSelect/example.d.ts +0 -3
- package/dist/src/Components/MultiSelect/helpers/Model.d.ts +0 -24
- package/dist/src/Components/MultiSelect/helpers/Utils.d.ts +0 -3
- package/dist/src/Components/MultiSelect/helpers/index.d.ts +0 -4
- package/dist/src/Components/MultiSelect/helpers/useFilteredItems.d.ts +0 -4
- package/dist/src/Components/MultiSelect/helpers/useHandlers.d.ts +0 -12
- package/dist/src/Components/MultiSelect/index.d.ts +0 -2
- package/dist/src/Components/PageHeader/Model.d.ts +0 -8
- package/dist/src/Components/PageHeader/PageHeader.d.ts +0 -4
- package/dist/src/Components/PageHeader/PageHeader.test.d.ts +0 -1
- package/dist/src/Components/PageHeader/index.d.ts +0 -2
- package/dist/src/Components/SCAutocomplete.d.ts +0 -26
- package/dist/src/Components/SCCalendarSwipeable.d.ts +0 -9
- package/dist/src/Components/SCDataGrid.d.ts +0 -19
- package/dist/src/Components/SCDialog.d.ts +0 -32
- package/dist/src/Components/SCMenu.d.ts +0 -20
- package/dist/src/Components/SCTabs.d.ts +0 -22
- package/dist/src/Components/TextArea/Helpers/Model.d.ts +0 -23
- package/dist/src/Components/TextArea/Helpers/index.d.ts +0 -2
- package/dist/src/Components/TextArea/Helpers/validateIcon.d.ts +0 -3
- package/dist/src/Components/TextArea/SCTextArea.d.ts +0 -4
- package/dist/src/Components/TextArea/index.d.ts +0 -2
- package/dist/src/Components/Textfield/Helpers/index.d.ts +0 -3
- package/dist/src/Components/Textfield/Helpers/validateIcon.d.ts +0 -4
- package/dist/src/Components/Textfield/Helpers/validateKeyDown.d.ts +0 -1
- package/dist/src/Components/Textfield/Helpers/validateOnBlur.d.ts +0 -10
- package/dist/src/Components/Textfield/Model.d.ts +0 -32
- package/dist/src/Components/Textfield/SCTextField.d.ts +0 -4
- package/dist/src/Components/Textfield/Textfield.test.d.ts +0 -1
- package/dist/src/Components/Textfield/index.d.ts +0 -2
- package/dist/src/Components/ToastNotification/Model.d.ts +0 -14
- package/dist/src/Components/ToastNotification/SCToastNotification.d.ts +0 -4
- package/dist/src/Components/ToastNotification/index.d.ts +0 -3
- package/dist/src/Components/ToastNotification/useProgress.d.ts +0 -6
- package/dist/src/Components/index.d.ts +0 -14
- package/dist/src/Pages/PruebasDavid/Test.d.ts +0 -3
- package/dist/src/Pages/PruebasNataly/PruebaPag1.d.ts +0 -4
- package/dist/src/Pages/PruebasNataly/PruebaPag2.d.ts +0 -3
- package/dist/src/Pages/PruebasNataly/TestNataly.d.ts +0 -3
- package/dist/src/Theme/breakpoints.d.ts +0 -3
- package/dist/src/Theme/components.d.ts +0 -3
- package/dist/src/Theme/index.d.ts +0 -3
- package/dist/src/Theme/mixins.d.ts +0 -3
- package/dist/src/Theme/module.d.ts +0 -69
- package/dist/src/Theme/palette.d.ts +0 -6
- package/dist/src/Theme/shadows.d.ts +0 -3
- package/dist/src/Theme/theme.d.ts +0 -5
- package/dist/src/Theme/typography.d.ts +0 -3
- package/dist/src/generales/capitalize.d.ts +0 -1
- package/dist/src/generales/index.d.ts +0 -2
- package/dist/src/generales/types.d.ts +0 -4
- package/dist/src/index.d.ts +0 -5
- package/dist/src/main.d.ts +0 -1
- package/dist/src/stories/Autocomplete/Autocomplete.stories.d.ts +0 -7
- package/dist/src/stories/CalendarSwipeable/CalendarSwipeable.stories.d.ts +0 -7
- package/dist/src/stories/DataGrid/DataGrid.stories.d.ts +0 -7
- package/dist/src/stories/Dialog/Dialog.stories.d.ts +0 -7
- package/dist/src/stories/Drawer/Drawer.stories.d.ts +0 -7
- package/dist/src/stories/FooterAction/Footer.stories.d.ts +0 -7
- package/dist/src/stories/Generales/Typography.d.ts +0 -1
- package/dist/src/stories/Generales/index.d.ts +0 -2
- package/dist/src/stories/Generales/types.d.ts +0 -3
- package/dist/src/stories/Menu/Menu.stories.d.ts +0 -7
- package/dist/src/stories/Modal/Modal.stories.d.ts +0 -7
- package/dist/src/stories/MultiSelect/MultiSelect.stories.d.ts +0 -7
- package/dist/src/stories/PageHeader/Header.stories.d.ts +0 -7
- package/dist/src/stories/Tabs/Tabs.stories.d.ts +0 -7
- package/dist/src/stories/TextArea/TextArea.stories.d.ts +0 -7
- package/dist/src/stories/Textfield/textfield.stories.d.ts +0 -7
- package/dist/src/stories/ToastNotification/toastNotification.stories.d.ts +0 -27
- package/dist/vite.svg +0 -1
- package/dist/vitest.setup.d.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -57,8 +57,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
59
|
// src/index.ts
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
60
|
+
var index_exports = {};
|
|
61
|
+
__export(index_exports, {
|
|
62
62
|
ADCSincoTheme: () => ADCSincoTheme,
|
|
63
63
|
AdproSincoTheme: () => AdproSincoTheme,
|
|
64
64
|
FooterAction: () => FooterAction,
|
|
@@ -88,7 +88,7 @@ __export(src_exports, {
|
|
|
88
88
|
useMultiSelectHandlers: () => useMultiSelectHandlers,
|
|
89
89
|
useProgress: () => useProgress
|
|
90
90
|
});
|
|
91
|
-
module.exports = __toCommonJS(
|
|
91
|
+
module.exports = __toCommonJS(index_exports);
|
|
92
92
|
|
|
93
93
|
// src/Components/Drawer/SCDrawer.tsx
|
|
94
94
|
var import_react5 = __toESM(require("react"), 1);
|
|
@@ -1670,94 +1670,42 @@ var SCCalendarSwipeable = ({
|
|
|
1670
1670
|
var import_react18 = __toESM(require("react"), 1);
|
|
1671
1671
|
var import_x_data_grid_pro = require("@mui/x-data-grid-pro");
|
|
1672
1672
|
var import_x_license_pro = require("@mui/x-license-pro");
|
|
1673
|
-
var
|
|
1674
|
-
var useStyles = (0, import_styles.makeStyles)({
|
|
1675
|
-
root: {
|
|
1676
|
-
"& .MuiDataGrid-filler": {
|
|
1677
|
-
display: "none !important"
|
|
1678
|
-
},
|
|
1679
|
-
"& .MuiDataGrid-footerContainer": {
|
|
1680
|
-
minHeight: "26px !important",
|
|
1681
|
-
height: "26px !important"
|
|
1682
|
-
},
|
|
1683
|
-
"& .MuiTablePagination-toolbar": {
|
|
1684
|
-
minHeight: "25px !important",
|
|
1685
|
-
height: "25px !important"
|
|
1686
|
-
},
|
|
1687
|
-
"& .MuiTablePagination-actions .MuiIconButton-root": {
|
|
1688
|
-
padding: "0px !important"
|
|
1689
|
-
},
|
|
1690
|
-
"&.MuiDataGrid-root": {
|
|
1691
|
-
"--DataGrid-topContainerHeight": "0px !important"
|
|
1692
|
-
/* Cambia este valor según tus necesidades */
|
|
1693
|
-
},
|
|
1694
|
-
"MuiDataGrid-root .MuiDataGrid-virtualScrollerContent .MuiDataGrid-row": {
|
|
1695
|
-
"--height": "0px !important",
|
|
1696
|
-
"minHeight": "0px !important",
|
|
1697
|
-
"maxHeight": "0px !important"
|
|
1698
|
-
},
|
|
1699
|
-
"& .MuiDataGrid-cell": {
|
|
1700
|
-
padding: "0 !important"
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
});
|
|
1704
|
-
var SCDataGrid = (_a) => {
|
|
1705
|
-
var _b = _a, { data, columns, rowsTable, checkboxSelection, width, height, maxHeight, density, agrupacion, groupingColDef, getTreeDataPath } = _b, props = __objRest(_b, ["data", "columns", "rowsTable", "checkboxSelection", "width", "height", "maxHeight", "density", "agrupacion", "groupingColDef", "getTreeDataPath"]);
|
|
1673
|
+
var SCDataGrid = ({ data, columns, rowsTable, checkboxSelection, width, maxHeight, density, groupingColDef, getTreeDataPath }) => {
|
|
1706
1674
|
const apiRef = (0, import_x_data_grid_pro.useGridApiRef)();
|
|
1707
|
-
const classes = useStyles();
|
|
1708
1675
|
import_x_license_pro.LicenseInfo.setLicenseKey(
|
|
1709
1676
|
"77d49a57fbc5f4af35ddb05c5f1742e0Tz0xMTI3MjgsRT0xNzc4MzcxMTk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1710
1677
|
);
|
|
1711
1678
|
let validationTreeData = getTreeDataPath ? true : false;
|
|
1712
|
-
let
|
|
1713
|
-
let
|
|
1714
|
-
let
|
|
1715
|
-
let
|
|
1716
|
-
let
|
|
1717
|
-
let
|
|
1718
|
-
let dataConvert = [];
|
|
1679
|
+
let validationCheckboxSelection = checkboxSelection || false;
|
|
1680
|
+
let styleDensity = density || "compact";
|
|
1681
|
+
let styleTopContainerHeight = styleDensity === "compact" ? "26px" : styleDensity === "standard" ? "38px" : styleDensity === "comfortable" ? "60px" : "27px";
|
|
1682
|
+
let styleRowHeight = density == "compact" ? 32 : density == "standard" ? 28 : density == "comfortable" ? 36 : 32;
|
|
1683
|
+
let rows = rowsTable ? rowsTable : validationTreeData != false ? parseInt(data.length) : data.length < 10 ? parseInt(data.length) : 10;
|
|
1684
|
+
let validationGroupingColDef = groupingColDef || {};
|
|
1719
1685
|
const [groupDataLenght, setGroupDataLengh] = (0, import_react18.useState)(0);
|
|
1720
|
-
checkboxSelection = checkboxSelection || false;
|
|
1721
|
-
const rows = rowsTable ? rowsTable : validationTreeData != false ? parseInt(data.length) : data.length < 10 ? parseInt(data.length) : 10;
|
|
1722
|
-
width = width || "100%";
|
|
1723
|
-
density = density || "compact";
|
|
1724
|
-
agrupacion = agrupacion || false;
|
|
1725
|
-
groupingColDef = groupingColDef || {};
|
|
1726
|
-
getTreeDataPath = getTreeDataPath || void 0;
|
|
1727
1686
|
const [pageSize, setPageSize] = (0, import_react18.useState)(rows);
|
|
1728
1687
|
const [arrayRows, setArrayRows] = (0, import_react18.useState)([]);
|
|
1729
|
-
const [heightTable, setHeightTable] = (0, import_react18.useState)(height || 0);
|
|
1730
1688
|
(0, import_react18.useEffect)(() => {
|
|
1731
1689
|
if ((data == null ? void 0 : data.length) > 0) {
|
|
1732
1690
|
dataConvertRows(data, void 0);
|
|
1733
|
-
if (validationTreeData) {
|
|
1734
|
-
countGroupedElements(data, getTreeDataPath);
|
|
1735
|
-
}
|
|
1736
1691
|
}
|
|
1737
1692
|
}, [data]);
|
|
1738
|
-
(0, import_react18.useEffect)(() => {
|
|
1739
|
-
if (groupDataLenght > 0 && validationTreeData == true) {
|
|
1740
|
-
setHeightTable(heightTable ? heightTable : groupDataLenght * tamanoCelda + tamanoEncabezado + 27);
|
|
1741
|
-
} else if (groupDataLenght <= 0 && validationTreeData == false) {
|
|
1742
|
-
setHeightTable(heightTable ? heightTable : rows * tamanoCelda + tamanoEncabezado + 27);
|
|
1743
|
-
}
|
|
1744
|
-
}, [groupDataLenght]);
|
|
1745
1693
|
const dataConvertRows = (data2, columnId) => {
|
|
1746
|
-
let
|
|
1694
|
+
let dataConvert = [];
|
|
1747
1695
|
if ((data2 == null ? void 0 : data2.length) > 0) {
|
|
1748
1696
|
const dataKeys = Object.keys(data2[0]);
|
|
1749
1697
|
data2.map((item) => {
|
|
1750
1698
|
const newKeys = {};
|
|
1751
1699
|
let i = 0;
|
|
1752
|
-
let id =
|
|
1700
|
+
let id = dataConvert.length + 1;
|
|
1753
1701
|
for (i = 0; i < dataKeys.length; i++) {
|
|
1754
1702
|
newKeys[dataKeys[i]] = item[dataKeys[i]];
|
|
1755
1703
|
}
|
|
1756
1704
|
newKeys.id = columnId ? item[columnId] : id;
|
|
1757
|
-
|
|
1705
|
+
dataConvert = [...dataConvert, newKeys];
|
|
1758
1706
|
});
|
|
1759
1707
|
}
|
|
1760
|
-
setArrayRows(
|
|
1708
|
+
setArrayRows(dataConvert);
|
|
1761
1709
|
};
|
|
1762
1710
|
const isRowSelectable = (params) => params.row.bloqueoChecked == false ? false : true;
|
|
1763
1711
|
const [selectionModel, setSelectionModel] = (0, import_react18.useState)([]);
|
|
@@ -1797,41 +1745,27 @@ var SCDataGrid = (_a) => {
|
|
|
1797
1745
|
setSelectionModel([...newSelection]);
|
|
1798
1746
|
}
|
|
1799
1747
|
};
|
|
1800
|
-
|
|
1801
|
-
const groupedCounts = {};
|
|
1802
|
-
data.forEach((row2) => {
|
|
1803
|
-
const path = getTreeDataPath2(row2) || [];
|
|
1804
|
-
const key = path[0];
|
|
1805
|
-
if (!groupedCounts[key]) {
|
|
1806
|
-
groupedCounts[key] = 0;
|
|
1807
|
-
}
|
|
1808
|
-
groupedCounts[key]++;
|
|
1809
|
-
});
|
|
1810
|
-
setGroupDataLengh(Object.keys(groupedCounts).length);
|
|
1811
|
-
return groupedCounts;
|
|
1812
|
-
};
|
|
1813
|
-
const virtualScrollerHeight = validationTreeData ? groupDataLenght * tamanoCelda + 10 : rows * tamanoCelda;
|
|
1814
|
-
return /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, heightTable > 0 ? /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement("div", { style: { display: "flex", flexDirection: "column", width, maxHeight } }, /* @__PURE__ */ import_react18.default.createElement(
|
|
1748
|
+
return /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, data && /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement("div", { style: { width: width || "100%", maxHeight } }, /* @__PURE__ */ import_react18.default.createElement(
|
|
1815
1749
|
import_x_data_grid_pro.DataGridPro,
|
|
1816
|
-
|
|
1817
|
-
apiRef
|
|
1818
|
-
|
|
1750
|
+
{
|
|
1751
|
+
apiRef,
|
|
1752
|
+
rowHeight: styleRowHeight,
|
|
1819
1753
|
rows: arrayRows,
|
|
1820
1754
|
columns,
|
|
1821
|
-
density,
|
|
1755
|
+
density: styleDensity,
|
|
1822
1756
|
treeData: validationTreeData,
|
|
1823
1757
|
getTreeDataPath,
|
|
1824
|
-
groupingColDef: validationTreeData == true ?
|
|
1758
|
+
groupingColDef: validationTreeData == true ? validationGroupingColDef : false,
|
|
1825
1759
|
pagination: true,
|
|
1826
1760
|
initialState: {
|
|
1827
1761
|
pagination: { paginationModel: { pageSize: rows } }
|
|
1828
1762
|
},
|
|
1829
|
-
checkboxSelection,
|
|
1763
|
+
checkboxSelection: validationCheckboxSelection,
|
|
1830
1764
|
rowSelectionModel: selectionModel,
|
|
1831
1765
|
onRowSelectionModelChange: (newSelection) => handleSelectionChange(newSelection),
|
|
1832
1766
|
isRowSelectable,
|
|
1833
1767
|
disableRowSelectionOnClick: true,
|
|
1834
|
-
|
|
1768
|
+
hideFooter: validationTreeData == true ? true : false,
|
|
1835
1769
|
localeText: {
|
|
1836
1770
|
noRowsLabel: "No hay filas",
|
|
1837
1771
|
columnMenuLabel: "Men\xFA de columna",
|
|
@@ -1842,9 +1776,36 @@ var SCDataGrid = (_a) => {
|
|
|
1842
1776
|
labelRowsPerPage: "Filas por p\xE1gina:",
|
|
1843
1777
|
labelDisplayedRows: ({ from, to, count }) => `${from}\u2013${to} de ${count !== -1 ? count : `m\xE1s de ${to}`}`
|
|
1844
1778
|
}
|
|
1779
|
+
},
|
|
1780
|
+
sx: {
|
|
1781
|
+
"& .MuiDataGrid-filler": {
|
|
1782
|
+
display: "none !important"
|
|
1783
|
+
},
|
|
1784
|
+
"& .MuiDataGrid-footerContainer": {
|
|
1785
|
+
minHeight: "26px !important",
|
|
1786
|
+
height: "26px !important"
|
|
1787
|
+
},
|
|
1788
|
+
"& .MuiTablePagination-toolbar": {
|
|
1789
|
+
minHeight: "25px !important",
|
|
1790
|
+
height: "25px !important"
|
|
1791
|
+
},
|
|
1792
|
+
"& .MuiTablePagination-actions .MuiIconButton-root": {
|
|
1793
|
+
padding: "0px !important"
|
|
1794
|
+
},
|
|
1795
|
+
"&.MuiDataGrid-root": {
|
|
1796
|
+
[`--DataGrid-topContainerHeight`]: `${styleTopContainerHeight} !important`
|
|
1797
|
+
},
|
|
1798
|
+
"MuiDataGrid-root .MuiDataGrid-virtualScrollerContent .MuiDataGrid-row": {
|
|
1799
|
+
"--height": "0px !important",
|
|
1800
|
+
"minHeight": "0px !important",
|
|
1801
|
+
"maxHeight": "0px !important"
|
|
1802
|
+
},
|
|
1803
|
+
"& .MuiDataGrid-cell": {
|
|
1804
|
+
padding: "0 !important"
|
|
1805
|
+
}
|
|
1845
1806
|
}
|
|
1846
|
-
}
|
|
1847
|
-
)))
|
|
1807
|
+
}
|
|
1808
|
+
))));
|
|
1848
1809
|
};
|
|
1849
1810
|
|
|
1850
1811
|
// src/Components/SCAutocomplete.tsx
|
|
@@ -2065,7 +2026,7 @@ function SCAutocomplete({
|
|
|
2065
2026
|
}
|
|
2066
2027
|
|
|
2067
2028
|
// src/Theme/index.ts
|
|
2068
|
-
var
|
|
2029
|
+
var import_styles2 = require("@mui/material/styles");
|
|
2069
2030
|
|
|
2070
2031
|
// src/Theme/components.ts
|
|
2071
2032
|
var import_react20 = __toESM(require("react"), 1);
|
|
@@ -3710,7 +3671,7 @@ var import_Typography = require("@mui/material/Typography");
|
|
|
3710
3671
|
var import_Radio = require("@mui/material/Radio");
|
|
3711
3672
|
var import_Chip = require("@mui/material/Chip");
|
|
3712
3673
|
var import_Checkbox = require("@mui/material/Checkbox");
|
|
3713
|
-
var
|
|
3674
|
+
var import_styles = require("@mui/material/styles");
|
|
3714
3675
|
|
|
3715
3676
|
// src/Theme/typography.ts
|
|
3716
3677
|
var typography = {
|
|
@@ -3881,9 +3842,9 @@ var ADCTheme = __spreadValues({
|
|
|
3881
3842
|
}, BasicTheme);
|
|
3882
3843
|
|
|
3883
3844
|
// src/Theme/index.ts
|
|
3884
|
-
var SincoTheme = (0,
|
|
3885
|
-
var AdproSincoTheme = (0,
|
|
3886
|
-
var ADCSincoTheme = (0,
|
|
3845
|
+
var SincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ERPTheme));
|
|
3846
|
+
var AdproSincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ADPROTheme));
|
|
3847
|
+
var ADCSincoTheme = (0, import_styles2.createTheme)(__spreadValues({}, ADCTheme));
|
|
3887
3848
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3888
3849
|
0 && (module.exports = {
|
|
3889
3850
|
ADCSincoTheme,
|
package/dist/index.d.cts
CHANGED
|
@@ -354,16 +354,12 @@ interface SCDataGridProps {
|
|
|
354
354
|
rowsTable?: number;
|
|
355
355
|
checkboxSelection?: boolean;
|
|
356
356
|
width?: string | number;
|
|
357
|
-
|
|
358
|
-
maxHeight?: number;
|
|
357
|
+
maxHeight: number;
|
|
359
358
|
density?: "compact" | "standard" | "comfortable";
|
|
360
|
-
agrupacion?: boolean;
|
|
361
|
-
columnsGrouping?: number;
|
|
362
359
|
groupingColDef?: any;
|
|
363
360
|
getTreeDataPath?: (row: any) => string[] | [];
|
|
364
|
-
otherProps?: any;
|
|
365
361
|
}
|
|
366
|
-
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width,
|
|
362
|
+
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width, maxHeight, density, groupingColDef, getTreeDataPath, }: SCDataGridProps) => React__default.JSX.Element;
|
|
367
363
|
|
|
368
364
|
interface SCAutocompleteProps<T> {
|
|
369
365
|
label?: string;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ComponentType } from 'react';
|
|
3
|
+
import * as Muicon from '@mui/icons-material';
|
|
4
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
5
|
+
import * as _mui_material from '@mui/material';
|
|
6
|
+
import * as _mui_material_styles from '@mui/material/styles';
|
|
7
|
+
|
|
8
|
+
type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error";
|
|
9
|
+
type ReplyTextPalette = "primary" | "secondary" | "disabled";
|
|
10
|
+
type ReplyVariants = "outlined" | "filled" | "standard";
|
|
11
|
+
type RepplyButtonVariants = "text" | "contained" | "outlined";
|
|
12
|
+
|
|
13
|
+
declare function capitalize(text: string): string;
|
|
14
|
+
|
|
15
|
+
interface ArrayElement {
|
|
16
|
+
type?: 'textField' | 'textArea';
|
|
17
|
+
title?: string;
|
|
18
|
+
iconTitle?: keyof typeof Muicon;
|
|
19
|
+
infoTitle?: {
|
|
20
|
+
text?: string;
|
|
21
|
+
component?: "tooltip" | "popover";
|
|
22
|
+
};
|
|
23
|
+
label?: string;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
infoElement?: {
|
|
26
|
+
text?: string;
|
|
27
|
+
component?: "tooltip" | "popover";
|
|
28
|
+
};
|
|
29
|
+
iconInputStart?: string;
|
|
30
|
+
iconInputEnd?: string;
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
component?: React.ReactNode;
|
|
33
|
+
variant?: ReplyVariants;
|
|
34
|
+
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
required?: boolean;
|
|
37
|
+
size?: 'small' | 'medium';
|
|
38
|
+
width?: string;
|
|
39
|
+
rows?: number;
|
|
40
|
+
color?: ReplyPalette$1;
|
|
41
|
+
background?: string;
|
|
42
|
+
state?: any | React.Dispatch<React.SetStateAction<string>>;
|
|
43
|
+
value?: string;
|
|
44
|
+
onChange?: () => {};
|
|
45
|
+
onBlur?: () => {};
|
|
46
|
+
onKeyDown?: () => {};
|
|
47
|
+
}
|
|
48
|
+
interface DrawerProps {
|
|
49
|
+
title?: string;
|
|
50
|
+
arrayElements?: ArrayElement[];
|
|
51
|
+
actions?: {
|
|
52
|
+
text: string;
|
|
53
|
+
fn: () => void;
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
buttonDrawer?: {
|
|
57
|
+
icon?: keyof typeof Muicon;
|
|
58
|
+
text?: string;
|
|
59
|
+
color?: ReplyPalette$1;
|
|
60
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
61
|
+
iconPosition?: 'left' | 'right' | undefined;
|
|
62
|
+
};
|
|
63
|
+
colorTitle?: ReplyTextPalette | ReplyPalette$1 | string;
|
|
64
|
+
anchor?: "left" | "right";
|
|
65
|
+
width?: string;
|
|
66
|
+
open?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
70
|
+
interface ToastBaseProperties {
|
|
71
|
+
type?: ToastType;
|
|
72
|
+
title: string;
|
|
73
|
+
subtitle?: string;
|
|
74
|
+
time?: number;
|
|
75
|
+
listITems?: string[];
|
|
76
|
+
seeMore?: boolean;
|
|
77
|
+
actions?: {
|
|
78
|
+
text: string;
|
|
79
|
+
fn: () => void;
|
|
80
|
+
disabled?: boolean;
|
|
81
|
+
}[];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare const SCToastNotification: (toast: ToastBaseProperties) => React__default.JSX.Element;
|
|
85
|
+
|
|
86
|
+
declare const useProgress: (timeProgress: number, lote?: number) => {
|
|
87
|
+
progress: number;
|
|
88
|
+
};
|
|
89
|
+
declare const ToastProgress: (timeProgress: number) => {
|
|
90
|
+
progressToast: number;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
declare const SCDrawer: ({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, }: DrawerProps) => React__default.JSX.Element;
|
|
94
|
+
|
|
95
|
+
interface MultiSelectProps<T> {
|
|
96
|
+
textButton?: string;
|
|
97
|
+
button?: {
|
|
98
|
+
icon?: string;
|
|
99
|
+
text?: string;
|
|
100
|
+
color?: ReplyPalette$1;
|
|
101
|
+
variant?: RepplyButtonVariants;
|
|
102
|
+
iconPosition?: 'left' | 'right';
|
|
103
|
+
size?: "small" | "medium" | "large";
|
|
104
|
+
};
|
|
105
|
+
topPanel?: React.ReactNode;
|
|
106
|
+
dense?: boolean;
|
|
107
|
+
open: boolean;
|
|
108
|
+
selectAll?: boolean;
|
|
109
|
+
items: T[];
|
|
110
|
+
getItemLabel: (item: T) => string;
|
|
111
|
+
actions?: {
|
|
112
|
+
text: string;
|
|
113
|
+
fn: () => void;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
}[];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare function useMultiSelectHandlers<T>(): {
|
|
119
|
+
anchorEl: HTMLButtonElement | null;
|
|
120
|
+
open: boolean;
|
|
121
|
+
selectedItems: T[];
|
|
122
|
+
filterValue: string;
|
|
123
|
+
setSelectedItems: React$1.Dispatch<React$1.SetStateAction<T[]>>;
|
|
124
|
+
handleOpen: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
125
|
+
handleClose: () => void;
|
|
126
|
+
handleFilterChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
127
|
+
handleCheckboxToggle: (item: T) => void;
|
|
128
|
+
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
declare function getIconMultiSelect(name: string): _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
132
|
+
muiName: string;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
declare function useFilteredItems<T>(items: T[], filterValue: string, getItemLabel: (item: T) => string, selectedItems: T[]): {
|
|
136
|
+
filteredItems: T[];
|
|
137
|
+
sortedItems: T[];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare function SCMultiSelect<T>({ textButton, button, items, topPanel, actions, dense, open, selectAll, getItemLabel }: MultiSelectProps<T>): React__default.JSX.Element;
|
|
141
|
+
|
|
142
|
+
interface SCTextAreaProps {
|
|
143
|
+
title?: string;
|
|
144
|
+
iconTitle?: keyof typeof Muicon;
|
|
145
|
+
infoTitle?: {
|
|
146
|
+
text?: string;
|
|
147
|
+
component?: "tooltip" | "popover";
|
|
148
|
+
};
|
|
149
|
+
colorTitle?: ReplyTextPalette;
|
|
150
|
+
placeholder?: string;
|
|
151
|
+
label?: string;
|
|
152
|
+
width?: string;
|
|
153
|
+
required?: boolean;
|
|
154
|
+
background?: string;
|
|
155
|
+
variant?: ReplyVariants;
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
rows?: number;
|
|
158
|
+
maxLength?: number;
|
|
159
|
+
value: string;
|
|
160
|
+
state: React.Dispatch<React.SetStateAction<string>>;
|
|
161
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare function getIcon(name?: string): ComponentType | null;
|
|
165
|
+
|
|
166
|
+
declare const SCTextArea: ({ title, iconTitle, infoTitle, label, placeholder, maxLength, variant, disabled, required, width, rows, colorTitle, background, state, value, onBlur, }: SCTextAreaProps) => React__default.JSX.Element;
|
|
167
|
+
|
|
168
|
+
interface SCTextFieldProps {
|
|
169
|
+
title?: string;
|
|
170
|
+
iconTitle?: string;
|
|
171
|
+
infoTitle?: {
|
|
172
|
+
text?: string;
|
|
173
|
+
component?: "tooltip" | "popover";
|
|
174
|
+
};
|
|
175
|
+
label?: string;
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
color?: ReplyPalette$1;
|
|
178
|
+
width?: string;
|
|
179
|
+
background?: string;
|
|
180
|
+
format?: 'int' | 'text' | 'password' | 'decimal';
|
|
181
|
+
iconInputStart?: string;
|
|
182
|
+
iconInputEnd?: string;
|
|
183
|
+
infoElement?: {
|
|
184
|
+
text?: string;
|
|
185
|
+
component?: "tooltip" | "popover";
|
|
186
|
+
};
|
|
187
|
+
size?: "small" | "medium";
|
|
188
|
+
variant?: "outlined" | "filled" | "standard";
|
|
189
|
+
value: string;
|
|
190
|
+
maxLength?: number;
|
|
191
|
+
disabled?: boolean;
|
|
192
|
+
required?: boolean;
|
|
193
|
+
state: React.Dispatch<React.SetStateAction<string>>;
|
|
194
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
195
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
196
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare const SCTextField: ({ title, iconTitle, infoTitle, label, placeholder, infoElement, iconInputStart, iconInputEnd, maxLength, variant, format, disabled, required, size, width, color, background, state, value, onChange, onBlur, onKeyDown, }: SCTextFieldProps) => React__default.JSX.Element;
|
|
200
|
+
|
|
201
|
+
type ReplyPalette = "primary" | "secondary" | "warning" | "info" | "success" | "error" | "inherit";
|
|
202
|
+
|
|
203
|
+
interface SCDialogProps {
|
|
204
|
+
title?: string;
|
|
205
|
+
iconTitle?: React__default.ReactNode | React__default.ReactElement | keyof typeof Muicon;
|
|
206
|
+
subtitle?: string;
|
|
207
|
+
content?: any;
|
|
208
|
+
actions?: {
|
|
209
|
+
text: string;
|
|
210
|
+
fn: () => void;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
}[];
|
|
213
|
+
buttonDialog?: {
|
|
214
|
+
icon?: string;
|
|
215
|
+
text?: string;
|
|
216
|
+
color?: ReplyPalette;
|
|
217
|
+
tooltip?: string;
|
|
218
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
219
|
+
iconPosition?: 'left' | 'right' | undefined;
|
|
220
|
+
};
|
|
221
|
+
disableClose?: boolean;
|
|
222
|
+
dividers?: boolean;
|
|
223
|
+
widthContent?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
224
|
+
heightContent?: string;
|
|
225
|
+
background?: string;
|
|
226
|
+
setShow?: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
227
|
+
show?: boolean | any;
|
|
228
|
+
}
|
|
229
|
+
declare const SCDialog: ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }: SCDialogProps) => React__default.JSX.Element;
|
|
230
|
+
|
|
231
|
+
/***************************************************************************/
|
|
232
|
+
|
|
233
|
+
interface Option$1 {
|
|
234
|
+
name?: string;
|
|
235
|
+
iconLeft?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
236
|
+
iconRight?: any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType | null;
|
|
237
|
+
divider?: boolean;
|
|
238
|
+
page: React__default.ReactNode | React__default.ReactElement;
|
|
239
|
+
}
|
|
240
|
+
interface SCMenuProps {
|
|
241
|
+
header?: any;
|
|
242
|
+
options: Option$1[];
|
|
243
|
+
defaultOption?: string;
|
|
244
|
+
disable?: boolean;
|
|
245
|
+
widthMenu?: string;
|
|
246
|
+
heightMenu?: string;
|
|
247
|
+
widthPage?: string;
|
|
248
|
+
}
|
|
249
|
+
declare const SCMenu: ({ header, options, defaultOption, disable, widthMenu, heightMenu, widthPage }: SCMenuProps) => React__default.JSX.Element;
|
|
250
|
+
|
|
251
|
+
/***************************************************************************/
|
|
252
|
+
|
|
253
|
+
interface Option {
|
|
254
|
+
name?: string;
|
|
255
|
+
iconOrBadge: string | number | null | undefined | any | React__default.ReactNode | React__default.ReactElement | React__default.ElementType;
|
|
256
|
+
disabled?: boolean;
|
|
257
|
+
page: React__default.ReactNode | React__default.ReactElement;
|
|
258
|
+
}
|
|
259
|
+
interface SCTabsProps {
|
|
260
|
+
options: Option[];
|
|
261
|
+
defaultOption?: string;
|
|
262
|
+
typeIcon?: "badge" | "icon";
|
|
263
|
+
background?: string;
|
|
264
|
+
iconPosition?: "top" | "bottom" | "start" | "end";
|
|
265
|
+
colorTab?: "secondary" | "primary";
|
|
266
|
+
orientation?: "horizontal" | "vertical";
|
|
267
|
+
variant?: "standard" | "fullWidth" | "scrollable";
|
|
268
|
+
scrollButtons?: boolean;
|
|
269
|
+
children?: any;
|
|
270
|
+
}
|
|
271
|
+
declare const SCTabs: ({ options, defaultOption, typeIcon, background, iconPosition, colorTab, orientation, variant, scrollButtons, children }: SCTabsProps) => React__default.JSX.Element;
|
|
272
|
+
|
|
273
|
+
interface FooterActionsProperties {
|
|
274
|
+
label?: React.ReactNode;
|
|
275
|
+
leftContent?: React.ReactNode;
|
|
276
|
+
rightContent?: React.ReactNode;
|
|
277
|
+
variant?: 'standard' | 'float';
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare const FooterAction: ({ leftContent, rightContent, label, variant, }: FooterActionsProperties) => React__default.JSX.Element;
|
|
281
|
+
|
|
282
|
+
declare const modalStateConfig: {
|
|
283
|
+
info: {
|
|
284
|
+
color: string;
|
|
285
|
+
defaultDescription: string;
|
|
286
|
+
icon: React__default.JSX.Element;
|
|
287
|
+
};
|
|
288
|
+
delete: {
|
|
289
|
+
color: string;
|
|
290
|
+
defaultDescription: string;
|
|
291
|
+
icon: React__default.JSX.Element;
|
|
292
|
+
};
|
|
293
|
+
warning: {
|
|
294
|
+
color: string;
|
|
295
|
+
defaultDescription: string;
|
|
296
|
+
icon: React__default.JSX.Element;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
type ModalStates = 'info' | 'delete' | 'warning';
|
|
301
|
+
interface ModalProps {
|
|
302
|
+
title: string;
|
|
303
|
+
description?: string;
|
|
304
|
+
textButton?: string;
|
|
305
|
+
buttonVariant?: RepplyButtonVariants;
|
|
306
|
+
iconPosition?: 'left' | 'right';
|
|
307
|
+
buttonColor?: ReplyPalette$1;
|
|
308
|
+
state: ModalStates;
|
|
309
|
+
open: boolean;
|
|
310
|
+
action?: {
|
|
311
|
+
text: string;
|
|
312
|
+
fn: () => void;
|
|
313
|
+
disabled?: boolean;
|
|
314
|
+
}[];
|
|
315
|
+
buttonModal?: {
|
|
316
|
+
icon?: string;
|
|
317
|
+
text?: string;
|
|
318
|
+
color?: ReplyPalette$1;
|
|
319
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
320
|
+
iconPosition?: 'left' | 'right';
|
|
321
|
+
size?: "small" | "medium" | "large";
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare const getIconComponent: (iconName?: string) => React.ElementType;
|
|
326
|
+
declare const getModalColor: (state: string) => string;
|
|
327
|
+
declare const getButtonColor: (state: string) => 'inherit' | 'info' | 'error' | 'warning';
|
|
328
|
+
|
|
329
|
+
declare const SCModal: ({ buttonModal, state, open, title, description, action, }: ModalProps) => React__default.JSX.Element;
|
|
330
|
+
|
|
331
|
+
interface PageheaderProperties {
|
|
332
|
+
title: string | React.ReactNode;
|
|
333
|
+
subtitle?: string | React.ReactNode;
|
|
334
|
+
actions?: React.ReactNode;
|
|
335
|
+
buttonBack?: React.ReactNode;
|
|
336
|
+
fixed?: boolean;
|
|
337
|
+
shadow?: boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, shadow, }: PageheaderProperties) => React__default.JSX.Element;
|
|
341
|
+
|
|
342
|
+
/***************************************************************************/
|
|
343
|
+
|
|
344
|
+
interface SCCalendarSwipeableProps {
|
|
345
|
+
background?: string;
|
|
346
|
+
setState: React__default.Dispatch<React__default.SetStateAction<string>>;
|
|
347
|
+
state: string | any;
|
|
348
|
+
}
|
|
349
|
+
declare const SCCalendarSwipeable: ({ background, setState, state, }: SCCalendarSwipeableProps) => React__default.JSX.Element;
|
|
350
|
+
|
|
351
|
+
interface SCDataGridProps {
|
|
352
|
+
data: any;
|
|
353
|
+
columns: any;
|
|
354
|
+
rowsTable?: number;
|
|
355
|
+
checkboxSelection?: boolean;
|
|
356
|
+
width?: string | number;
|
|
357
|
+
maxHeight: number;
|
|
358
|
+
density?: "compact" | "standard" | "comfortable";
|
|
359
|
+
groupingColDef?: any;
|
|
360
|
+
getTreeDataPath?: (row: any) => string[] | [];
|
|
361
|
+
}
|
|
362
|
+
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width, maxHeight, density, groupingColDef, getTreeDataPath, }: SCDataGridProps) => React__default.JSX.Element;
|
|
363
|
+
|
|
364
|
+
interface SCAutocompleteProps<T> {
|
|
365
|
+
label?: string;
|
|
366
|
+
data: T[];
|
|
367
|
+
columnGroup?: string;
|
|
368
|
+
getItemValue: (item: T) => {
|
|
369
|
+
icon?: any;
|
|
370
|
+
text: string;
|
|
371
|
+
value: string;
|
|
372
|
+
};
|
|
373
|
+
type?: "normal" | "multiselect";
|
|
374
|
+
checkMassive?: boolean;
|
|
375
|
+
deleteType?: "button" | "icon";
|
|
376
|
+
required?: boolean;
|
|
377
|
+
disabled?: boolean;
|
|
378
|
+
background?: string;
|
|
379
|
+
fnAplicar?: () => void | React__default.ReactNode;
|
|
380
|
+
setState: React__default.Dispatch<React__default.SetStateAction<any>>;
|
|
381
|
+
state: {
|
|
382
|
+
hiddenValue: string | string[];
|
|
383
|
+
textValue: string | string[];
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, type, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, }: SCAutocompleteProps<T>): React__default.JSX.Element;
|
|
387
|
+
|
|
388
|
+
declare const SincoTheme: _mui_material_styles.Theme;
|
|
389
|
+
declare let AdproSincoTheme: _mui_material_styles.Theme;
|
|
390
|
+
declare let ADCSincoTheme: _mui_material_styles.Theme;
|
|
391
|
+
|
|
392
|
+
export { ADCSincoTheme, AdproSincoTheme, FooterAction, type FooterActionsProperties, type ModalProps, type ModalStates, type MultiSelectProps, PageHeader, type PageheaderProperties, type ReplyPalette$1 as ReplyPalette, type ReplyTextPalette, type ReplyVariants, type RepplyButtonVariants, SCAutocomplete, SCCalendarSwipeable, SCDataGrid, SCDialog, SCDrawer, SCMenu, SCModal, SCMultiSelect, SCTabs, SCTextArea, type SCTextAreaProps, SCTextField, type SCTextFieldProps, SCToastNotification, SincoTheme, type ToastBaseProperties, ToastProgress, type ToastType, capitalize, getButtonColor, getIcon, getIconComponent, getIconMultiSelect, getModalColor, modalStateConfig, useFilteredItems, useMultiSelectHandlers, useProgress };
|
package/dist/index.d.ts
CHANGED
|
@@ -354,16 +354,12 @@ interface SCDataGridProps {
|
|
|
354
354
|
rowsTable?: number;
|
|
355
355
|
checkboxSelection?: boolean;
|
|
356
356
|
width?: string | number;
|
|
357
|
-
|
|
358
|
-
maxHeight?: number;
|
|
357
|
+
maxHeight: number;
|
|
359
358
|
density?: "compact" | "standard" | "comfortable";
|
|
360
|
-
agrupacion?: boolean;
|
|
361
|
-
columnsGrouping?: number;
|
|
362
359
|
groupingColDef?: any;
|
|
363
360
|
getTreeDataPath?: (row: any) => string[] | [];
|
|
364
|
-
otherProps?: any;
|
|
365
361
|
}
|
|
366
|
-
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width,
|
|
362
|
+
declare const SCDataGrid: ({ data, columns, rowsTable, checkboxSelection, width, maxHeight, density, groupingColDef, getTreeDataPath, }: SCDataGridProps) => React__default.JSX.Element;
|
|
367
363
|
|
|
368
364
|
interface SCAutocompleteProps<T> {
|
|
369
365
|
label?: string;
|