albinasoft-ui-package 1.1.64 → 1.1.66
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,5 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { ColDef } from "ag-grid-community";
|
2
|
+
import { ColDef, GridReadyEvent } from "ag-grid-community";
|
3
3
|
import "../assets/css/custom-datatable.css";
|
4
4
|
export interface CustomDatatableProps<T> {
|
5
5
|
rowData: T[];
|
@@ -15,6 +15,7 @@ export interface CustomDatatableProps<T> {
|
|
15
15
|
filter?: boolean;
|
16
16
|
floatingFilter?: boolean;
|
17
17
|
minWidth?: number;
|
18
|
+
onGridReady?: (event: GridReadyEvent) => void;
|
18
19
|
tooltipHideDelay?: number;
|
19
20
|
labelButton1?: string;
|
20
21
|
onClickButton1?: (e: React.FormEvent) => void;
|
@@ -37,6 +38,6 @@ export interface CustomDatatableProps<T> {
|
|
37
38
|
typeButton5?: string;
|
38
39
|
disabledButton5?: boolean;
|
39
40
|
}
|
40
|
-
declare function CustomDatatable<T extends {}>({ rowData, columnDefs, loading, pagination, paginationPageSize, paginationPageSizeSelector, tooltipHideDelay, filterAll, tableTitle, tableHeight, localeText, filter, floatingFilter, minWidth, labelButton1, onClickButton1, typeButton1, disabledButton1, labelButton2, onClickButton2, typeButton2, disabledButton2, labelButton3, onClickButton3, typeButton3, disabledButton3, labelButton4, onClickButton4, typeButton4, disabledButton4, labelButton5, onClickButton5, typeButton5, disabledButton5, }: CustomDatatableProps<T>): React.JSX.Element;
|
41
|
+
declare function CustomDatatable<T extends {}>({ rowData, columnDefs, loading, pagination, paginationPageSize, paginationPageSizeSelector, tooltipHideDelay, filterAll, tableTitle, tableHeight, localeText, filter, floatingFilter, minWidth, onGridReady, labelButton1, onClickButton1, typeButton1, disabledButton1, labelButton2, onClickButton2, typeButton2, disabledButton2, labelButton3, onClickButton3, typeButton3, disabledButton3, labelButton4, onClickButton4, typeButton4, disabledButton4, labelButton5, onClickButton5, typeButton5, disabledButton5, }: CustomDatatableProps<T>): React.JSX.Element;
|
41
42
|
export type { ColDef };
|
42
43
|
export default CustomDatatable;
|
@@ -36,7 +36,7 @@ var CustomButton_1 = __importDefault(require("./CustomButton"));
|
|
36
36
|
var CustomInput_1 = __importDefault(require("./CustomInput"));
|
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.loading, loading = _b === void 0 ? false : _b, _c = _a.pagination, pagination = _c === void 0 ? true : _c, _d = _a.paginationPageSize, paginationPageSize = _d === void 0 ? 10 : _d, _e = _a.paginationPageSizeSelector, paginationPageSizeSelector = _e === void 0 ? [10, 20, 50, 100] : _e, _f = _a.tooltipHideDelay, tooltipHideDelay = _f === void 0 ? 2000 : _f, _g = _a.filterAll, filterAll = _g === void 0 ? true : _g, _h = _a.tableTitle, tableTitle = _h === void 0 ? "" : _h, tableHeight = _a.tableHeight, _j = _a.localeText, localeText = _j === void 0 ? locale_1.AG_GRID_LOCALE_TR : _j, _k = _a.filter, filter = _k === void 0 ? true : _k, _l = _a.floatingFilter, floatingFilter = _l === void 0 ? true : _l, _m = _a.minWidth, minWidth = _m === void 0 ? 100 : _m, _o = _a.labelButton1, labelButton1 = _o === void 0 ? "" : _o, onClickButton1 = _a.onClickButton1, _p = _a.typeButton1, typeButton1 = _p === void 0 ? "primary" : _p, _q = _a.disabledButton1, disabledButton1 = _q === void 0 ? false : _q, _r = _a.labelButton2, labelButton2 = _r === void 0 ? "" : _r, onClickButton2 = _a.onClickButton2, _s = _a.typeButton2, typeButton2 = _s === void 0 ? "primary" : _s, _t = _a.disabledButton2, disabledButton2 = _t === void 0 ? false : _t, _u = _a.labelButton3, labelButton3 = _u === void 0 ? "" : _u, onClickButton3 = _a.onClickButton3, _v = _a.typeButton3, typeButton3 = _v === void 0 ? "primary" : _v, _w = _a.disabledButton3, disabledButton3 = _w === void 0 ? false : _w, _x = _a.labelButton4, labelButton4 = _x === void 0 ? "" : _x, onClickButton4 = _a.onClickButton4, _y = _a.typeButton4, typeButton4 = _y === void 0 ? "primary" : _y, _z = _a.disabledButton4, disabledButton4 = _z === void 0 ? false : _z, _0 = _a.labelButton5, labelButton5 = _0 === void 0 ? "" : _0, onClickButton5 = _a.onClickButton5, _1 = _a.typeButton5, typeButton5 = _1 === void 0 ? "primary" : _1, _2 = _a.disabledButton5, disabledButton5 = _2 === void 0 ? false : _2;
|
39
|
+
var rowData = _a.rowData, columnDefs = _a.columnDefs, _b = _a.loading, loading = _b === void 0 ? false : _b, _c = _a.pagination, pagination = _c === void 0 ? true : _c, _d = _a.paginationPageSize, paginationPageSize = _d === void 0 ? 10 : _d, _e = _a.paginationPageSizeSelector, paginationPageSizeSelector = _e === void 0 ? [10, 20, 50, 100] : _e, _f = _a.tooltipHideDelay, tooltipHideDelay = _f === void 0 ? 2000 : _f, _g = _a.filterAll, filterAll = _g === void 0 ? true : _g, _h = _a.tableTitle, tableTitle = _h === void 0 ? "" : _h, tableHeight = _a.tableHeight, _j = _a.localeText, localeText = _j === void 0 ? locale_1.AG_GRID_LOCALE_TR : _j, _k = _a.filter, filter = _k === void 0 ? true : _k, _l = _a.floatingFilter, floatingFilter = _l === void 0 ? true : _l, _m = _a.minWidth, minWidth = _m === void 0 ? 100 : _m, onGridReady = _a.onGridReady, _o = _a.labelButton1, labelButton1 = _o === void 0 ? "" : _o, onClickButton1 = _a.onClickButton1, _p = _a.typeButton1, typeButton1 = _p === void 0 ? "primary" : _p, _q = _a.disabledButton1, disabledButton1 = _q === void 0 ? false : _q, _r = _a.labelButton2, labelButton2 = _r === void 0 ? "" : _r, onClickButton2 = _a.onClickButton2, _s = _a.typeButton2, typeButton2 = _s === void 0 ? "primary" : _s, _t = _a.disabledButton2, disabledButton2 = _t === void 0 ? false : _t, _u = _a.labelButton3, labelButton3 = _u === void 0 ? "" : _u, onClickButton3 = _a.onClickButton3, _v = _a.typeButton3, typeButton3 = _v === void 0 ? "primary" : _v, _w = _a.disabledButton3, disabledButton3 = _w === void 0 ? false : _w, _x = _a.labelButton4, labelButton4 = _x === void 0 ? "" : _x, onClickButton4 = _a.onClickButton4, _y = _a.typeButton4, typeButton4 = _y === void 0 ? "primary" : _y, _z = _a.disabledButton4, disabledButton4 = _z === void 0 ? false : _z, _0 = _a.labelButton5, labelButton5 = _0 === void 0 ? "" : _0, onClickButton5 = _a.onClickButton5, _1 = _a.typeButton5, typeButton5 = _1 === void 0 ? "primary" : _1, _2 = _a.disabledButton5, disabledButton5 = _2 === void 0 ? false : _2;
|
40
40
|
var _3 = (0, react_1.useState)(""), quickFilterText = _3[0], setQuickFilterText = _3[1];
|
41
41
|
// Tema ayarları
|
42
42
|
var theme = ag_grid_community_1.themeQuartz.withParams({
|
@@ -87,6 +87,6 @@ function CustomDatatable(_a) {
|
|
87
87
|
defaultOption: "contains",
|
88
88
|
suppressAndOrCondition: true,
|
89
89
|
},
|
90
|
-
}, suppressServerSideFullWidthLoadingRow: true, overlayLoadingTemplate: "\n <div class=\"spinner-border spinner-border-lg\" role=\"status\">\n </div>", overlayNoRowsTemplate: '<span class="ag-overlay-no-rows-center">G\u00F6sterilecek Sat\u0131r Yok</span>', pagination: pagination, paginationPageSize: paginationPageSize, paginationPageSizeSelector: paginationPageSizeSelector, tooltipShowDelay: 0, tooltipHideDelay: tooltipHideDelay }))));
|
90
|
+
}, suppressServerSideFullWidthLoadingRow: true, overlayLoadingTemplate: "\n <div class=\"spinner-border spinner-border-lg\" role=\"status\">\n </div>", overlayNoRowsTemplate: '<span class="ag-overlay-no-rows-center">G\u00F6sterilecek Sat\u0131r Yok</span>', pagination: pagination, paginationPageSize: paginationPageSize, paginationPageSizeSelector: paginationPageSizeSelector, tooltipShowDelay: 0, tooltipHideDelay: tooltipHideDelay, onGridReady: onGridReady }))));
|
91
91
|
}
|
92
92
|
exports.default = CustomDatatable;
|
@@ -262,7 +262,7 @@ var CustomForm = function (_a) {
|
|
262
262
|
? element.value[0] || ""
|
263
263
|
: "", onChange: function (val) {
|
264
264
|
return element.onChange(val);
|
265
|
-
} }))) : element.type === ElementType.DATETIMEPICKER ? (react_1.default.createElement(CustomDateTimePicker_1.default, __assign({}, element, { submitted: submitted }))) : element.type === ElementType.DIVIDER ? (react_1.default.createElement(CustomDivider_1.default, __assign({}, element))) : element.type === ElementType.RICHTEXTBOX ? (react_1.default.createElement(CustomRichTextbox_1.default, __assign({}, element))) : element.type === ElementType.TREEVIEW ? (react_1.default.createElement(CustomTreeView_1.default, __assign({}, element, { submitted: submitted }))) : element.type === ElementType.BUTTON ? (react_1.default.createElement(CustomButton_1.default, __assign({}, element
|
265
|
+
} }))) : element.type === ElementType.DATETIMEPICKER ? (react_1.default.createElement(CustomDateTimePicker_1.default, __assign({}, element, { submitted: submitted }))) : element.type === ElementType.DIVIDER ? (react_1.default.createElement(CustomDivider_1.default, __assign({}, element))) : element.type === ElementType.RICHTEXTBOX ? (react_1.default.createElement(CustomRichTextbox_1.default, __assign({}, element))) : element.type === ElementType.TREEVIEW ? (react_1.default.createElement(CustomTreeView_1.default, __assign({}, element, { submitted: submitted }))) : element.type === ElementType.BUTTON ? (react_1.default.createElement(CustomButton_1.default, __assign({}, element))) : element.type === ElementType.AUTOCOMPLETEINPUT ? (react_1.default.createElement(CustomAutocompleteInput_1.default, __assign({}, element))) : element.type === ElementType.PHONE ? (react_1.default.createElement(CustomPhoneInput_1.default, __assign({}, element))) : element.type === ElementType.FILEUPLOADER ? (
|
266
266
|
// FILEUPLOADER elemanı için CustomFileUploader'ı render ediyoruz
|
267
267
|
react_1.default.createElement(react_1.default.Fragment, null,
|
268
268
|
react_1.default.createElement(CustomFileUploader_1.default, { ref: getUploaderRefCb(element.id), url: element.url, multi: element.multi, allowedTypes: element.allowedTypes, maxFile: element.maxFile, maxSize: element.maxSize, required: element.required, submitted: submitted, onUploadComplete: element.onUploadComplete, onRemoveUploaded: element.onRemoveUploaded, onPendingChange: element.onPendingChange, clearTrigger: element.clearTrigger, label: element.label, translations: element.translations, onUploadingChange: setIsUploading, onNotify: onNotify }))) : element.type === ElementType.CONTAINER ? (react_1.default.createElement(CustomContainer_1.default, __assign({}, element), element.children)) : null)); })));
|