react-table-edit 1.4.42 → 1.4.44
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 +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ 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
|
|
9
|
+
export declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, data: any, data2: any, message: string) => Promise<boolean>;
|
package/dist/index.d.ts
CHANGED
|
@@ -451,7 +451,7 @@ 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
|
|
454
|
+
declare const messageBoxConfirmAsync: (t: TFunction<"translation", undefined>, data: any, data2: any, message: string) => Promise<boolean>;
|
|
455
455
|
|
|
456
456
|
declare const useOnClickOutside: (ref: any, handler: any) => void;
|
|
457
457
|
declare const checkThousandSeparator: (thousandSeparator: any, decimalSeparator: any) => any;
|
|
@@ -742,5 +742,5 @@ type TableViewProps = {
|
|
|
742
742
|
};
|
|
743
743
|
declare const TableView: React__default.FC<TableViewProps>;
|
|
744
744
|
|
|
745
|
-
export { ExportExcelComponent, FindNodeByPath, ImportExcelComponent, InputStyleComponent, SelectTable, SelectTableTree, TableView, TabsMenuComponent, Wizard, calculateTableStructure, checkDecimalSeparator, checkThousandSeparator, TableEdit as default, formartNumberic, formatDateTime, generateUUID, isNullOrUndefined, messageBoxConfirm,
|
|
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
746
|
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,7 +39869,7 @@ 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
|
|
39872
|
+
const messageBoxConfirmAsync = async (t, data, data2, message) => {
|
|
39873
39873
|
return new Promise((resolve) => {
|
|
39874
39874
|
MySwal.fire({
|
|
39875
39875
|
title: t('Confirm'),
|
|
@@ -42450,6 +42450,7 @@ const HeaderTableCol$1 = (props) => {
|
|
|
42450
42450
|
const order = orderBy.find((item) => item.key === col.field);
|
|
42451
42451
|
const [openFilter, setOpenFilter] = React$5.useState(false);
|
|
42452
42452
|
const filter = filterBy.find((item) => item.key === col.field);
|
|
42453
|
+
const herderContent = col.headerDisplay ?? (col.headerText ?? '');
|
|
42453
42454
|
const handleResize = (e, { size }) => {
|
|
42454
42455
|
// Update the column width here
|
|
42455
42456
|
// You might need to update the state or call a callback to update the width
|
|
@@ -42497,7 +42498,7 @@ const HeaderTableCol$1 = (props) => {
|
|
|
42497
42498
|
setSelectedRows([]);
|
|
42498
42499
|
}
|
|
42499
42500
|
}
|
|
42500
|
-
} })), col.field !== 'checkbox' && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: 'header-content', style: { justifyContent: col.textAlign ?? 'left' }, children: [jsxRuntime.jsx("span", { id: `header-${idTable}-${indexParent}-${indexCol}`, ref: headerRef, className: 'text-content', children: t(
|
|
42501
|
+
} })), col.field !== 'checkbox' && jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: 'header-content', style: { justifyContent: col.textAlign ?? 'left' }, children: [jsxRuntime.jsx("span", { id: `header-${idTable}-${indexParent}-${indexCol}`, ref: headerRef, className: 'text-content', children: t(herderContent) }), checkOverflow() && jsxRuntime.jsx(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `header-${idTable}-${indexParent}-${indexCol}`, children: t(herderContent) })] }), col.field !== '#' && col.field !== 'command' && jsxRuntime.jsxs("div", { className: 'd-flex', children: [allowOrder && order?.direction === 'asc' && jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: 'ms-25', width: "10", height: "10", viewBox: "0 0 16 18", fill: "none", children: [jsxRuntime.jsx("g", { "clip-path": "url(#clip0_520_6)", children: jsxRuntime.jsx("path", { d: "M8.70711 0.292893C8.31658 -0.0976311 7.68342 -0.0976311 7.29289 0.292893L0.928932 6.65685C0.538408 7.04738 0.538408 7.68054 0.928932 8.07107C1.31946 8.46159 1.95262 8.46159 2.34315 8.07107L8 2.41421L13.6569 8.07107C14.0474 8.46159 14.6805 8.46159 15.0711 8.07107C15.4616 7.68054 15.4616 7.04738 15.0711 6.65685L8.70711 0.292893ZM8 18H9L9 1H8H7L7 18H8Z", fill: "black" }) }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_520_6", children: jsxRuntime.jsx("rect", { width: "16", height: "18", fill: "white" }) }) })] }), allowOrder && order?.direction === 'desc' && jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", className: 'ms-25', width: "10", height: "10", viewBox: "0 0 16 18", fill: "none", children: [jsxRuntime.jsx("g", { "clip-path": "url(#clip0_520_2)", children: jsxRuntime.jsx("path", { d: "M7.29289 17.7071C7.68342 18.0976 8.31658 18.0976 8.70711 17.7071L15.0711 11.3431C15.4616 10.9526 15.4616 10.3195 15.0711 9.92893C14.6805 9.53841 14.0474 9.53841 13.6569 9.92893L8 15.5858L2.34315 9.92893C1.95262 9.53841 1.31946 9.53841 0.928932 9.92893C0.538408 10.3195 0.538408 10.9526 0.928932 11.3431L7.29289 17.7071ZM8 0L7 0L7 17H8H9L9 0L8 0Z", fill: "black" }) }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "clip0_520_2", children: jsxRuntime.jsx("rect", { width: "16", height: "18", fill: "white" }) }) })] }), allowFilter && (col.columns?.length ?? 0) === 0 && col.allowFilter !== false && jsxRuntime.jsxs(Dropdown$1, { isOpen: openFilter, toggle: (e) => {
|
|
42501
42502
|
setOpenFilter(!openFilter);
|
|
42502
42503
|
e.stopPropagation();
|
|
42503
42504
|
}, onClick: (e) => {
|
|
@@ -66173,7 +66174,7 @@ exports.formatDateTime = formatDateTime;
|
|
|
66173
66174
|
exports.generateUUID = generateUUID;
|
|
66174
66175
|
exports.isNullOrUndefined = isNullOrUndefined;
|
|
66175
66176
|
exports.messageBoxConfirm = messageBoxConfirm;
|
|
66176
|
-
exports.
|
|
66177
|
+
exports.messageBoxConfirmAsync = messageBoxConfirmAsync;
|
|
66177
66178
|
exports.messageBoxConfirmDelete = messageBoxConfirmDelete;
|
|
66178
66179
|
exports.messageBoxError = messageBoxError;
|
|
66179
66180
|
exports.messageHtmlBoxConfirm = messageHtmlBoxConfirm;
|