albinasoft-ui-package 1.0.83 → 1.0.84
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.
@@ -36,8 +36,8 @@ var CustomText_1 = __importStar(require("./CustomText"));
|
|
36
36
|
var CustomButton_1 = __importDefault(require("./CustomButton"));
|
37
37
|
ag_grid_community_1.ModuleRegistry.registerModules([ag_grid_community_1.AllCommunityModule]);
|
38
38
|
function CustomDatatable(_a) {
|
39
|
-
var rowData = _a.rowData, columnDefs = _a.columnDefs, _b = _a.filter, filter = _b === void 0 ? true : _b, _c = _a.floatingFilter, floatingFilter = _c === void 0 ? true : _c, _d = _a.minWidth, minWidth = _d === void 0 ? 100 : _d, _e = _a.pagination, pagination = _e === void 0 ? true : _e, _f = _a.paginationPageSize, paginationPageSize = _f === void 0 ? 10 : _f, _g = _a.localeText, localeText = _g === void 0 ? locale_1.AG_GRID_LOCALE_TR : _g, _h = _a.filterAll, filterAll = _h === void 0 ? true : _h, _j = _a.tableTitle, tableTitle = _j === void 0 ? "" : _j,
|
40
|
-
var
|
39
|
+
var rowData = _a.rowData, columnDefs = _a.columnDefs, _b = _a.filter, filter = _b === void 0 ? true : _b, _c = _a.floatingFilter, floatingFilter = _c === void 0 ? true : _c, _d = _a.minWidth, minWidth = _d === void 0 ? 100 : _d, _e = _a.pagination, pagination = _e === void 0 ? true : _e, _f = _a.paginationPageSize, paginationPageSize = _f === void 0 ? 10 : _f, _g = _a.localeText, localeText = _g === void 0 ? locale_1.AG_GRID_LOCALE_TR : _g, _h = _a.filterAll, filterAll = _h === void 0 ? true : _h, _j = _a.tableTitle, tableTitle = _j === void 0 ? "" : _j, tableHeight = _a.tableHeight, _k = _a.labelButton1, labelButton1 = _k === void 0 ? "" : _k, onClickButton1 = _a.onClickButton1, _l = _a.typeButton1, typeButton1 = _l === void 0 ? "primary" : _l, _m = _a.labelButton2, labelButton2 = _m === void 0 ? "" : _m, onClickButton2 = _a.onClickButton2, _o = _a.typeButton2, typeButton2 = _o === void 0 ? "primary" : _o, _p = _a.labelButton3, labelButton3 = _p === void 0 ? "" : _p, onClickButton3 = _a.onClickButton3, _q = _a.typeButton3, typeButton3 = _q === void 0 ? "primary" : _q, _r = _a.labelButton4, labelButton4 = _r === void 0 ? "" : _r, onClickButton4 = _a.onClickButton4, _s = _a.typeButton4, typeButton4 = _s === void 0 ? "primary" : _s, _t = _a.labelButton5, labelButton5 = _t === void 0 ? "" : _t, onClickButton5 = _a.onClickButton5, _u = _a.typeButton5, typeButton5 = _u === void 0 ? "primary" : _u;
|
40
|
+
var _v = (0, react_1.useState)(""), quickFilterText = _v[0], setQuickFilterText = _v[1];
|
41
41
|
var myTheme = ag_grid_community_1.themeQuartz.withParams({
|
42
42
|
accentColor: "var(--bs-grid-accentColor)",
|
43
43
|
backgroundColor: "var(--bs-grid-backgroundColor)",
|
@@ -63,8 +63,8 @@ function CustomDatatable(_a) {
|
|
63
63
|
background: "var(--bs-grid-searchBoxBackgroundColor)",
|
64
64
|
borderRadius: "10px",
|
65
65
|
} }))),
|
66
|
-
react_1.default.createElement("div", { style: { width: "100%", height: "".concat(tableHeight, "px") } },
|
67
|
-
react_1.default.createElement(ag_grid_react_1.AgGridReact, { theme: myTheme, rowData: rowData, columnDefs: columnDefs, localeText: localeText, defaultColDef: {
|
66
|
+
react_1.default.createElement("div", { style: { width: "100%", height: tableHeight ? "".concat(tableHeight, "px") : "auto" } },
|
67
|
+
react_1.default.createElement(ag_grid_react_1.AgGridReact, { domLayout: tableHeight ? undefined : "autoHeight", theme: myTheme, rowData: rowData, columnDefs: columnDefs, localeText: localeText, defaultColDef: {
|
68
68
|
flex: 1,
|
69
69
|
minWidth: minWidth,
|
70
70
|
resizable: true,
|