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.esm.js CHANGED
@@ -233,11 +233,12 @@ const getFilterOptions = (postBody) => async () => {
233
233
  data: postBody,
234
234
  });
235
235
  };
236
- const getTableRecords = async (baseUrl, tableName, page, pageSize) => {
236
+ const getTableRecords = async (payload, baseUrl, tableName) => {
237
237
  try {
238
238
  return axiosInstance({
239
- url: `${baseUrl}/chatbot/agent/tabular-data/${tableName}?page=${page}&page_size=${pageSize}`,
240
- method: 'GET',
239
+ url: `${baseUrl}/chatbot/agent/tabular-data/${tableName}`,
240
+ method: 'POST',
241
+ data: payload,
241
242
  });
242
243
  }
243
244
  catch (error) {
@@ -5857,7 +5858,16 @@ const TableContent = ({ bodyText }) => {
5857
5858
  const serverSideManualCallBack = async (manualbody, pageIndex, params) => {
5858
5859
  try {
5859
5860
  const baseUrl = sessionStorage.getItem("stepForm_baseUrl") || "";
5860
- const response = await getTableRecords(baseUrl, table_name, pageIndex + 1, page_size);
5861
+ let limit = {
5862
+ page_size: page_size,
5863
+ page: pageIndex + 1,
5864
+ };
5865
+ let payload = {
5866
+ limit,
5867
+ search: manualbody?.search,
5868
+ sort: manualbody?.sort
5869
+ };
5870
+ const response = await getTableRecords(payload, baseUrl, table_name);
5861
5871
  if (is_server_side || response?.data?.download_url) {
5862
5872
  setDownloadUrl(response.data.download_url);
5863
5873
  }
@@ -5910,12 +5920,12 @@ const TableContent = ({ bodyText }) => {
5910
5920
  const handleModalClose = () => {
5911
5921
  setIsModalOpen(false);
5912
5922
  };
5913
- return (jsxs(Fragment, { children: [jsx(Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsx("div", { style: { width: '100%', height: '70vh' }, children: 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: false, hideFormatSideBar: true, uniqueRowId: unique_id, selectAllHeaderComponent: select_all_component, onSelectionChanged: onSelectionChanged, hideTableSetting: hide_table_setting, downloadAsExcel: is_server_side ? false : true, tableHeader: display_name, ...(is_server_side && {
5923
+ return (jsxs(Fragment, { children: [jsx(Modal, { className: "test-modal", onClose: handleModalClose, onPrimaryButtonClick: () => { }, onSecondaryButtonClick: handleModalClose, open: isModalOpen, size: "large", title: "", children: jsx("div", { style: { width: '100%', height: '70vh' }, children: 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 && {
5914
5924
  manualCallBack: serverSideManualCallBack,
5915
5925
  rowModelType: "serverSide",
5916
5926
  serverSideStoreType: "partial",
5917
5927
  cacheBlockSize: page_size,
5918
- }) }) }) }), jsx("div", { style: { width: '100%', marginTop: '10px' }, children: 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: false, 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, ...(is_server_side && {
5928
+ }) }) }) }), jsx("div", { style: { width: '100%', marginTop: '10px' }, children: 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 && {
5919
5929
  manualCallBack: serverSideManualCallBack,
5920
5930
  rowModelType: "serverSide",
5921
5931
  serverSideStoreType: "partial",
@@ -6659,7 +6669,7 @@ const fetchCrossFilterOptions = async (filterConfig, existingSelections = [], al
6659
6669
  check_configuration: [],
6660
6670
  is_mandatory: config.is_mandatory || false,
6661
6671
  extra: {},
6662
- values: values,
6672
+ values: values.map((v) => replaceSpecialCharToCharCode(String(v))),
6663
6673
  attribute_name: key,
6664
6674
  operator: "in",
6665
6675
  display_order: 0,