react-table-edit 1.4.45 → 1.4.47
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/component/notifications.d.ts +2 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +31 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -39841,15 +39841,41 @@ const notificationError = (param) => {
|
|
|
39841
39841
|
const notificationSuccess = (param) => {
|
|
39842
39842
|
return (toast.success(jsxs(Fragment, { children: [jsx("div", { className: "toastify-header", children: jsx("div", { className: "title-wrapper", children: jsx("h6", { className: "toast-title", children: param }) }) }), jsx("div", { className: "toastify-body", children: jsx("ul", { className: "list-unstyled mb-0", children: jsx("li", {}) }) })] })));
|
|
39843
39843
|
};
|
|
39844
|
-
const messageBoxConfirmAsync = async (t, message) => {
|
|
39844
|
+
const messageBoxConfirmAsync = async (t, message, title = 'Important', btnOk = 'Ok', btnCancel = 'Cancel') => {
|
|
39845
39845
|
return new Promise((resolve) => {
|
|
39846
39846
|
MySwal.fire({
|
|
39847
|
-
title: t(
|
|
39847
|
+
title: t(title),
|
|
39848
39848
|
text: t(message),
|
|
39849
39849
|
allowOutsideClick: false,
|
|
39850
39850
|
showCancelButton: true,
|
|
39851
|
-
confirmButtonText: t(
|
|
39852
|
-
cancelButtonText: t(
|
|
39851
|
+
confirmButtonText: t(btnOk),
|
|
39852
|
+
cancelButtonText: t(btnCancel),
|
|
39853
|
+
customClass: {
|
|
39854
|
+
confirmButton: "btn btn-primary",
|
|
39855
|
+
cancelButton: "btn btn-outline-danger ms-1"
|
|
39856
|
+
},
|
|
39857
|
+
buttonsStyling: false
|
|
39858
|
+
}).then((result) => {
|
|
39859
|
+
if (result.isConfirmed) {
|
|
39860
|
+
resolve(true);
|
|
39861
|
+
}
|
|
39862
|
+
else {
|
|
39863
|
+
resolve(false);
|
|
39864
|
+
}
|
|
39865
|
+
});
|
|
39866
|
+
});
|
|
39867
|
+
};
|
|
39868
|
+
const messageHtmlBoxConfirmAsync = (t, message, title = 'Important', btnOk = 'Ok', btnCancel = 'Cancel') => {
|
|
39869
|
+
return new Promise((resolve) => {
|
|
39870
|
+
MySwal.fire({
|
|
39871
|
+
title: t(title),
|
|
39872
|
+
html: message.map((item, index) => {
|
|
39873
|
+
return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid $border-color${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
|
|
39874
|
+
}).join(''),
|
|
39875
|
+
allowOutsideClick: false,
|
|
39876
|
+
showCancelButton: true,
|
|
39877
|
+
confirmButtonText: t(btnOk),
|
|
39878
|
+
cancelButtonText: t(btnCancel),
|
|
39853
39879
|
customClass: {
|
|
39854
39880
|
confirmButton: "btn btn-primary",
|
|
39855
39881
|
cancelButton: "btn btn-outline-danger ms-1"
|
|
@@ -66128,5 +66154,5 @@ const TableView = ({ idTable, dataSource, rowHeight = 33, height = 400, columns,
|
|
|
66128
66154
|
}) }) : jsx(Fragment$1, {}) })] }), (((viewData.length ?? 0) === 0) && !isLoading) && jsxs("div", { className: "r-no-data", children: [jsx("svg", { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg", children: jsxs("g", { transform: "translate(0 1)", fill: "none", fillRule: "evenodd", children: [jsx("ellipse", { fill: "#f5f5f5", cx: "32", cy: "33", rx: "32", ry: "7" }), jsxs("g", { fillRule: "nonzero", stroke: "#d9d9d9", children: [jsx("path", { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }), jsx("path", { d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z", fill: "#fafafa" })] })] }) }), t('No data available.')] }), isLoading && jsx("div", { className: "r-loading-overlay", children: jsxs("div", { className: "r-loading", children: [jsx(Spinner$1, { className: "me-1" }), t('Loading...')] }) })] })] }), pagingSetting?.allowPaging ? jsx(PagingComponent, { onChangePage: onChangePage, pageSize: pagingSetting?.pageSize ?? 0, currentPage: pagingSetting?.currentPage ?? 0, pageOptions: pagingSetting?.pageOptions ?? [20, 30, 50, 100], totalItem: (pagingSetting?.pagingClient ? viewData.length : pagingSetting?.totalItem ?? 0), onChangePageSize: onChangePageSize }) : jsx(Fragment$1, {})] }));
|
|
66129
66155
|
};
|
|
66130
66156
|
|
|
66131
|
-
export { ExportExcelComponent, FindNodeByPath, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TableView, TabsMenuComponent, Wizard, calculateTableStructure, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirmAsync, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, roundNumber, useOnClickOutside };
|
|
66157
|
+
export { ExportExcelComponent, FindNodeByPath, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TableView, TabsMenuComponent, Wizard, calculateTableStructure, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirmAsync, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxConfirmAsync, messageHtmlBoxError, notificationError, notificationSuccess, roundNumber, useOnClickOutside };
|
|
66132
66158
|
//# sourceMappingURL=index.mjs.map
|