ui-soxo-bootstrap-core 2.4.25-dev.35 → 2.4.25-dev.37

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.
@@ -108,6 +108,7 @@ export default function RangePickerComponent({
108
108
 
109
109
  return (
110
110
  <RangePicker
111
+ dropdownClassName="responsive-rangepicker-dropdown"
111
112
  allowClear={allowClear}
112
113
  inputReadOnly={inputReadOnly}
113
114
  format={format}
@@ -16,3 +16,9 @@
16
16
  box-shadow: none !important;
17
17
  }
18
18
  }
19
+
20
+ @media (max-width: 767px) {
21
+ .responsive-rangepicker-dropdown .ant-picker-panels {
22
+ flex-direction: column;
23
+ }
24
+ }
@@ -229,7 +229,7 @@ const DoctorAdd = ({ visible, onCancel, attributes, doctorId, doctorData, onSucc
229
229
  rules={[
230
230
  { required: true },
231
231
  {
232
- pattern: /^[A-Za-z]+$/,
232
+ pattern: /^[A-Za-z]+(?: [A-Za-z]+)*$/,
233
233
  message: 'Name should contain only alphabets',
234
234
  },
235
235
  ]}
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect, useContext, useRef } from 'react';
2
2
 
3
- import { Table, Skeleton, Input, Tag, Modal, message, Pagination } from 'antd';
3
+ import { Table, Skeleton, Input, Tag, Modal, message, Pagination, Tooltip } from 'antd';
4
4
 
5
5
  import { QrcodeOutlined } from '@ant-design/icons';
6
6
 
@@ -798,9 +798,19 @@ function GuestList({
798
798
  }
799
799
  },
800
800
  field: entry.field,
801
- title: entry.title,
801
+ // title: entry.title,
802
+ // title: (
803
+ // <Tooltip title={entry.title}>
804
+ // {entry.title}
805
+ // </Tooltip>
806
+ // ),
807
+ title: (
808
+ <Tooltip title={entry.tooltip || entry.title}>
809
+ <span>{entry.title}</span>
810
+ </Tooltip>
811
+ ),
802
812
  key: entry.field,
803
- width: entry.width ? parseInt(entry.width) : undefined,
813
+ width: entry.width ? parseInt(entry.width) : 160,
804
814
  fixed: entry.isFixedColumn ? entry.isFixedColumn : null, // Conditionally setting the 'fixed' key to 'left' if 'isColumnStatic' is true; otherwise, setting it to null.
805
815
  // Check if filtering is enabled and patients is an array
806
816
  filters:
@@ -824,7 +834,6 @@ function GuestList({
824
834
  // Return the value from record.props if it exists
825
835
  return description && record[description] ? record[description] : null;
826
836
  }
827
-
828
837
  return record[entry.field];
829
838
  },
830
839
  // Add align property based on column type
@@ -908,13 +917,21 @@ function GuestList({
908
917
  // setData(data);
909
918
 
910
919
  // Define export data
911
- let exportDatas = getExportData(patients, cols);
920
+ // Sanitize cols for export to ensure titles are strings
921
+ const exportCols = cols.map((col) => {
922
+ if (col.title && typeof col.title === 'object' && col.title.props) {
923
+ return { ...col, title: col.title.props.title };
924
+ }
925
+ return col;
926
+ });
927
+
928
+ let exportDatas = getExportData(patients, exportCols);
912
929
 
913
930
  if (exportDatas.exportDataColumns.length && exportDatas.exportDataHeaders.length) {
914
931
  setExportData({ exportDatas });
915
932
  }
916
933
  }
917
- }, [patients]);
934
+ }, [patients, columns]);
918
935
 
919
936
  let filtered;
920
937
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-soxo-bootstrap-core",
3
- "version": "2.4.25-dev.35",
3
+ "version": "2.4.25-dev.37",
4
4
  "description": "All the Core Components for you to start",
5
5
  "keywords": [
6
6
  "all in one"