@visns-studio/visns-components 5.10.7 → 5.10.9

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/package.json CHANGED
@@ -24,12 +24,12 @@
24
24
  "dayjs": "^1.11.13",
25
25
  "fabric": "^6.7.0",
26
26
  "file-saver": "^2.0.5",
27
- "framer-motion": "^12.16.0",
27
+ "framer-motion": "^12.17.0",
28
28
  "html-react-parser": "^5.2.5",
29
29
  "lodash": "^4.17.21",
30
30
  "lodash.debounce": "^4.0.8",
31
31
  "moment": "^2.30.1",
32
- "motion": "^12.16.0",
32
+ "motion": "^12.17.0",
33
33
  "numeral": "^2.0.6",
34
34
  "pluralize": "^8.0.0",
35
35
  "qrcode.react": "^4.2.0",
@@ -53,7 +53,7 @@
53
53
  "react-to-print": "^3.1.0",
54
54
  "react-toastify": "^11.0.5",
55
55
  "react-toggle": "^4.1.3",
56
- "react-tooltip": "^5.28.1",
56
+ "react-tooltip": "^5.29.0",
57
57
  "react-window": "^1.8.11",
58
58
  "reactjs-popup": "^2.0.6",
59
59
  "style-loader": "^4.0.0",
@@ -87,7 +87,7 @@
87
87
  "react-dom": "^17.0.0 || ^18.0.0"
88
88
  },
89
89
  "name": "@visns-studio/visns-components",
90
- "version": "5.10.7",
90
+ "version": "5.10.9",
91
91
  "description": "Various packages to assist in the development of our Custom Applications.",
92
92
  "main": "src/index.js",
93
93
  "files": [
@@ -1713,15 +1713,37 @@ function Form({
1713
1713
  />
1714
1714
  </div>
1715
1715
  {tableData?.dataSource?.length > 0 && (
1716
- <div className={`${styles.formItem} ${styles.fwItem}`}>
1716
+ <div
1717
+ className={`${styles.formItem} ${styles.fwItem}`}
1718
+ style={{
1719
+ width: formSettings?.save?.return?.width
1720
+ ? `min(${parseInt(formSettings.save.return.width)}px, 100vw - 40px)`
1721
+ : '100%',
1722
+ maxWidth: formSettings?.save?.return?.width
1723
+ ? `${parseInt(formSettings.save.return.width)}px`
1724
+ : '100%',
1725
+ overflow: 'auto',
1726
+ margin: formSettings?.save?.return?.width ? '0 auto' : undefined
1727
+ }}
1728
+ >
1717
1729
  <ReactDataGrid
1718
1730
  idProperty="form-table-result"
1719
1731
  columns={tableData.columns}
1720
1732
  dataSource={tableData.dataSource}
1721
- style={{ minHeight: 550 }}
1733
+ style={{
1734
+ minHeight: 550,
1735
+ width: formSettings?.save?.return?.width
1736
+ ? `${parseInt(formSettings.save.return.width)}px`
1737
+ : '100%'
1738
+ }}
1722
1739
  showActiveRowIndicator={false}
1723
1740
  selected={selected}
1724
1741
  onSelectionChange={handleSelectionChange}
1742
+ enableColumnAutosize={true}
1743
+ skipHeaderOnAutoSize={true}
1744
+ resizable={true}
1745
+ reorderColumns={true}
1746
+ virtualizeColumns={false}
1725
1747
  {...(tableProps && tableProps.groupBy
1726
1748
  ? {
1727
1749
  defaultGroupBy: tableProps.groupBy,