react-table-edit 1.4.45 → 1.4.46
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
|
@@ -6,4 +6,5 @@ export declare const messageBoxConfirm: (t: TFunction<"translation", undefined>,
|
|
|
6
6
|
export declare const messageBoxError: (t: TFunction<"translation", undefined>, message: string, title?: string, btnCancel?: string) => void;
|
|
7
7
|
export declare const notificationError: (param: string) => string;
|
|
8
8
|
export declare const notificationSuccess: (param: string) => string;
|
|
9
|
-
export declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: string) => Promise<boolean>;
|
|
9
|
+
export declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: string, title?: string, btnOk?: string, btnCancel?: string) => Promise<boolean>;
|
|
10
|
+
export declare const messageHtmlBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: any[], handle: any, data: any, title?: string, btnOk?: string, btnCancel?: string) => Promise<unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -451,7 +451,8 @@ declare const messageBoxConfirm: (t: TFunction<"translation", undefined>, handle
|
|
|
451
451
|
declare const messageBoxError: (t: TFunction<"translation", undefined>, message: string, title?: string, btnCancel?: string) => void;
|
|
452
452
|
declare const notificationError: (param: string) => string;
|
|
453
453
|
declare const notificationSuccess: (param: string) => string;
|
|
454
|
-
declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: string) => Promise<boolean>;
|
|
454
|
+
declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: string, title?: string, btnOk?: string, btnCancel?: string) => Promise<boolean>;
|
|
455
|
+
declare const messageHtmlBoxConfirmAsync: (t: TFunction<"translation", undefined>, message: any[], handle: any, data: any, title?: string, btnOk?: string, btnCancel?: string) => Promise<unknown>;
|
|
455
456
|
|
|
456
457
|
declare const useOnClickOutside: (ref: any, handler: any) => void;
|
|
457
458
|
declare const checkThousandSeparator: (thousandSeparator: any, decimalSeparator: any) => any;
|
|
@@ -742,5 +743,5 @@ type TableViewProps = {
|
|
|
742
743
|
};
|
|
743
744
|
declare const TableView: React__default.FC<TableViewProps>;
|
|
744
745
|
|
|
745
|
-
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 };
|
|
746
|
+
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 };
|
|
746
747
|
export type { FromItemsField, IColumnTable, IColumnsAgg, ICommandItem, IFColumnSelectTable, IFColumnSelectTableTree, IFCurrentPage, IFCurrentPageConfig, IFFilterTable, IFOrderTable, IFPageSize, IFPropsDetail, IFSettingColumns, IFTableEditButton, IFTableEditFormat, IFTableEditPaging, IFTableEditSearchSetting, IFTableEditToolbar, IFTableSelectFormat, IFTableTreeSelectFormat, IFToolbarOptions, IHeaderColumnTable, ISettingFormElement, ISettingNumericElement, ISettingSelectElement };
|
package/dist/index.js
CHANGED
|
@@ -39869,15 +39869,41 @@ const notificationError = (param) => {
|
|
|
39869
39869
|
const notificationSuccess = (param) => {
|
|
39870
39870
|
return (toast__default["default"].success(jsxRuntime.jsxs(React$5.Fragment, { children: [jsxRuntime.jsx("div", { className: "toastify-header", children: jsxRuntime.jsx("div", { className: "title-wrapper", children: jsxRuntime.jsx("h6", { className: "toast-title", children: param }) }) }), jsxRuntime.jsx("div", { className: "toastify-body", children: jsxRuntime.jsx("ul", { className: "list-unstyled mb-0", children: jsxRuntime.jsx("li", {}) }) })] })));
|
|
39871
39871
|
};
|
|
39872
|
-
const messageBoxConfirmAsync = async (t, message) => {
|
|
39872
|
+
const messageBoxConfirmAsync = async (t, message, title = 'Important', btnOk = 'Ok', btnCancel = 'Cancel') => {
|
|
39873
39873
|
return new Promise((resolve) => {
|
|
39874
39874
|
MySwal.fire({
|
|
39875
|
-
title: t(
|
|
39875
|
+
title: t(title),
|
|
39876
39876
|
text: t(message),
|
|
39877
39877
|
allowOutsideClick: false,
|
|
39878
39878
|
showCancelButton: true,
|
|
39879
|
-
confirmButtonText: t(
|
|
39880
|
-
cancelButtonText: t(
|
|
39879
|
+
confirmButtonText: t(btnOk),
|
|
39880
|
+
cancelButtonText: t(btnCancel),
|
|
39881
|
+
customClass: {
|
|
39882
|
+
confirmButton: "btn btn-primary",
|
|
39883
|
+
cancelButton: "btn btn-outline-danger ms-1"
|
|
39884
|
+
},
|
|
39885
|
+
buttonsStyling: false
|
|
39886
|
+
}).then((result) => {
|
|
39887
|
+
if (result.isConfirmed) {
|
|
39888
|
+
resolve(true);
|
|
39889
|
+
}
|
|
39890
|
+
else {
|
|
39891
|
+
resolve(false);
|
|
39892
|
+
}
|
|
39893
|
+
});
|
|
39894
|
+
});
|
|
39895
|
+
};
|
|
39896
|
+
const messageHtmlBoxConfirmAsync = (t, message, handle, data, title = 'Important', btnOk = 'Ok', btnCancel = 'Cancel') => {
|
|
39897
|
+
return new Promise((resolve) => {
|
|
39898
|
+
MySwal.fire({
|
|
39899
|
+
title: t(title),
|
|
39900
|
+
html: message.map((item, index) => {
|
|
39901
|
+
return (`<div style="min-width: 448px padding: 7px width:100% border: 1px solid $border-color${index !== 0 ? ' border-top-width: 0px' : ''}">${item}</div>`);
|
|
39902
|
+
}).join(''),
|
|
39903
|
+
allowOutsideClick: false,
|
|
39904
|
+
showCancelButton: true,
|
|
39905
|
+
confirmButtonText: t(btnOk),
|
|
39906
|
+
cancelButtonText: t(btnCancel),
|
|
39881
39907
|
customClass: {
|
|
39882
39908
|
confirmButton: "btn btn-primary",
|
|
39883
39909
|
cancelButton: "btn btn-outline-danger ms-1"
|
|
@@ -66178,6 +66204,7 @@ exports.messageBoxConfirmAsync = messageBoxConfirmAsync;
|
|
|
66178
66204
|
exports.messageBoxConfirmDelete = messageBoxConfirmDelete;
|
|
66179
66205
|
exports.messageBoxError = messageBoxError;
|
|
66180
66206
|
exports.messageHtmlBoxConfirm = messageHtmlBoxConfirm;
|
|
66207
|
+
exports.messageHtmlBoxConfirmAsync = messageHtmlBoxConfirmAsync;
|
|
66181
66208
|
exports.messageHtmlBoxError = messageHtmlBoxError;
|
|
66182
66209
|
exports.notificationError = notificationError;
|
|
66183
66210
|
exports.notificationSuccess = notificationSuccess;
|