@visns-studio/visns-components 5.15.18 → 5.15.19

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,7 +24,7 @@
24
24
  "array-move": "^4.0.0",
25
25
  "awesome-debounce-promise": "^2.1.0",
26
26
  "browser-image-compression": "^2.0.2",
27
- "dayjs": "^1.11.14",
27
+ "dayjs": "^1.11.15",
28
28
  "fabric": "^6.7.1",
29
29
  "file-saver": "^2.0.5",
30
30
  "framer-motion": "^12.23.12",
@@ -94,7 +94,7 @@
94
94
  "react-dom": "^17.0.0 || ^18.0.0"
95
95
  },
96
96
  "name": "@visns-studio/visns-components",
97
- "version": "5.15.18",
97
+ "version": "5.15.19",
98
98
  "description": "Various packages to assist in the development of our Custom Applications.",
99
99
  "main": "src/index.js",
100
100
  "files": [
@@ -750,8 +750,8 @@ const shouldHideField = (fieldName, fieldType) => {
750
750
  const name = fieldName.toLowerCase();
751
751
  const type = fieldType.toLowerCase();
752
752
 
753
- // Hide foreign keys (except main 'id')
754
- if (name.endsWith('_id') && name !== 'id') return true;
753
+ // Hide foreign keys and primary key IDs (confusing for non-dev users)
754
+ if (name.endsWith('_id') || name === 'id') return true;
755
755
 
756
756
  // Hide UUIDs
757
757
  if (name.includes('uuid') || type.includes('uuid')) return true;
@@ -4093,7 +4093,17 @@ const GenericReportImproved = ({
4093
4093
  </div>
4094
4094
 
4095
4095
  <div className={styles.tableColumnSections}>
4096
- {allAvailableColumns.map((tableData) => (
4096
+ {allAvailableColumns
4097
+ .filter((tableData) => {
4098
+ // Hide table sections with 0 visible fields
4099
+ const visibleFieldsCount = tableData.columns.filter((col) =>
4100
+ tableData.isMainTable
4101
+ ? !shouldHideField(col.name, col.type) || showHiddenFields
4102
+ : !shouldHideField(col.name, col.type)
4103
+ ).length;
4104
+ return visibleFieldsCount > 0;
4105
+ })
4106
+ .map((tableData) => (
4097
4107
  <div
4098
4108
  key={tableData.tableName}
4099
4109
  className={styles.tableSection}
@@ -759,7 +759,7 @@ select:not(:placeholder-shown) + .fi__span {
759
759
  bottom: 20px;
760
760
  right: 20px;
761
761
  width: auto;
762
- z-index: 5;
762
+ z-index: 50;
763
763
 
764
764
  button {
765
765
  display: block;