impact-chatbot 2.3.71 → 2.3.73
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/index.cjs.js +17 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +17 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/services/chatbot-services.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -255,11 +255,12 @@ const getFilterOptions = (postBody) => async () => {
|
|
|
255
255
|
data: postBody,
|
|
256
256
|
});
|
|
257
257
|
};
|
|
258
|
-
const getTableRecords = async (baseUrl, tableName
|
|
258
|
+
const getTableRecords = async (payload, baseUrl, tableName) => {
|
|
259
259
|
try {
|
|
260
260
|
return axiosInstance({
|
|
261
|
-
url: `${baseUrl}/chatbot/agent/tabular-data/${tableName}
|
|
262
|
-
method: '
|
|
261
|
+
url: `${baseUrl}/chatbot/agent/tabular-data/${tableName}`,
|
|
262
|
+
method: 'POST',
|
|
263
|
+
data: payload,
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
266
|
catch (error) {
|
|
@@ -5879,7 +5880,16 @@ const TableContent = ({ bodyText }) => {
|
|
|
5879
5880
|
const serverSideManualCallBack = async (manualbody, pageIndex, params) => {
|
|
5880
5881
|
try {
|
|
5881
5882
|
const baseUrl = sessionStorage.getItem("stepForm_baseUrl") || "";
|
|
5882
|
-
|
|
5883
|
+
let limit = {
|
|
5884
|
+
page_size: page_size,
|
|
5885
|
+
page: pageIndex + 1,
|
|
5886
|
+
};
|
|
5887
|
+
let payload = {
|
|
5888
|
+
limit,
|
|
5889
|
+
search: manualbody?.search,
|
|
5890
|
+
sort: manualbody?.sort
|
|
5891
|
+
};
|
|
5892
|
+
const response = await getTableRecords(payload, baseUrl, table_name);
|
|
5883
5893
|
if (is_server_side || response?.data?.download_url) {
|
|
5884
5894
|
setDownloadUrl(response.data.download_url);
|
|
5885
5895
|
}
|
|
@@ -5932,12 +5942,12 @@ const TableContent = ({ bodyText }) => {
|
|
|
5932
5942
|
const handleModalClose = () => {
|
|
5933
5943
|
setIsModalOpen(false);
|
|
5934
5944
|
};
|
|
5935
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(impactUiV3.Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsxRuntime.jsx("div", { style: { width: '100%', height: '70vh' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 20, suppressFieldDotNotation: true, domLayout: "normal", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn:
|
|
5945
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(impactUiV3.Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsxRuntime.jsx("div", { style: { width: '100%', height: '70vh' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 20, suppressFieldDotNotation: true, domLayout: "normal", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: true, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, hideTableActions: true, isSaveViewEnabled: false, ...(is_server_side && {
|
|
5936
5946
|
manualCallBack: serverSideManualCallBack,
|
|
5937
5947
|
rowModelType: "serverSide",
|
|
5938
5948
|
serverSideStoreType: "partial",
|
|
5939
5949
|
cacheBlockSize: page_size,
|
|
5940
|
-
}) }) }) }), jsxRuntime.jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 10, suppressFieldDotNotation: true, domLayout: "autoHeight", customClass: "bot_table_auto_height", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn:
|
|
5950
|
+
}) }) }) }), jsxRuntime.jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsxRuntime.jsx(AgGridComponent, { columns: columns, rowdata: is_server_side ? null : rowData, pagination: true, paginationPageSize: is_server_side ? page_size : 10, suppressFieldDotNotation: true, domLayout: "autoHeight", customClass: "bot_table_auto_height", sizeColumnsToFitFlag: true, showSaveTableConfig: false, showSearchModalBtn: true, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, customSystemButton: getTopRightOptions(), customSystemButtonWithDownload: !is_server_side, topRightOptions: null, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, hideTableActions: true, isSaveViewEnabled: false, ...(is_server_side && {
|
|
5941
5951
|
manualCallBack: serverSideManualCallBack,
|
|
5942
5952
|
rowModelType: "serverSide",
|
|
5943
5953
|
serverSideStoreType: "partial",
|
|
@@ -6681,7 +6691,7 @@ const fetchCrossFilterOptions = async (filterConfig, existingSelections = [], al
|
|
|
6681
6691
|
check_configuration: [],
|
|
6682
6692
|
is_mandatory: config.is_mandatory || false,
|
|
6683
6693
|
extra: {},
|
|
6684
|
-
values: values,
|
|
6694
|
+
values: values.map((v) => replaceSpecialCharToCharCode(String(v))),
|
|
6685
6695
|
attribute_name: key,
|
|
6686
6696
|
operator: "in",
|
|
6687
6697
|
display_order: 0,
|