@visns-studio/visns-components 5.9.144 → 5.10.0
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"@dnd-kit/sortable": "^10.0.0",
|
|
5
5
|
"@dnd-kit/utilities": "^3.2.2",
|
|
6
6
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
7
|
-
"@fontsource/barlow": "^5.2.
|
|
7
|
+
"@fontsource/barlow": "^5.2.6",
|
|
8
8
|
"@inovua/reactdatagrid-community": "^5.10.2",
|
|
9
9
|
"@inovua/reactdatagrid-enterprise": "^5.10.2",
|
|
10
10
|
"@nivo/bar": "^0.99.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"awesome-debounce-promise": "^2.1.0",
|
|
23
23
|
"browser-image-compression": "^2.0.2",
|
|
24
24
|
"dayjs": "^1.11.13",
|
|
25
|
-
"fabric": "^6.
|
|
25
|
+
"fabric": "^6.7.0",
|
|
26
26
|
"file-saver": "^2.0.5",
|
|
27
27
|
"framer-motion": "^12.16.0",
|
|
28
28
|
"html-react-parser": "^5.2.5",
|
|
@@ -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.
|
|
90
|
+
"version": "5.10.0",
|
|
91
91
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
92
92
|
"main": "src/index.js",
|
|
93
93
|
"files": [
|
|
@@ -2354,7 +2354,7 @@ const DataGrid = forwardRef(
|
|
|
2354
2354
|
return data[path];
|
|
2355
2355
|
}
|
|
2356
2356
|
};
|
|
2357
|
-
|
|
2357
|
+
|
|
2358
2358
|
// Helper function to get nested values for additional conditions (returns first valid value)
|
|
2359
2359
|
const getNestedValueForAdditional = (data, path) => {
|
|
2360
2360
|
if (Array.isArray(path)) {
|
|
@@ -2409,7 +2409,11 @@ const DataGrid = forwardRef(
|
|
|
2409
2409
|
};
|
|
2410
2410
|
|
|
2411
2411
|
// Get the active value using nested path or simple property access
|
|
2412
|
-
const activeValue = getNestedValueForMain(
|
|
2412
|
+
const activeValue = getNestedValueForMain(
|
|
2413
|
+
d,
|
|
2414
|
+
s.active.id,
|
|
2415
|
+
s.active.value
|
|
2416
|
+
);
|
|
2413
2417
|
const hasActiveProperty = activeValue !== undefined;
|
|
2414
2418
|
|
|
2415
2419
|
// Check additional conditions if they exist
|
|
@@ -2423,9 +2427,14 @@ const DataGrid = forwardRef(
|
|
|
2423
2427
|
|
|
2424
2428
|
// All additional conditions must be met
|
|
2425
2429
|
return s.active.additional.every((condition) => {
|
|
2426
|
-
const conditionValue = getNestedValueForAdditional(
|
|
2430
|
+
const conditionValue = getNestedValueForAdditional(
|
|
2431
|
+
d,
|
|
2432
|
+
condition.id
|
|
2433
|
+
);
|
|
2427
2434
|
// Type-flexible comparison - convert both to strings for comparison
|
|
2428
|
-
return
|
|
2435
|
+
return (
|
|
2436
|
+
String(conditionValue) === String(condition.value)
|
|
2437
|
+
);
|
|
2429
2438
|
});
|
|
2430
2439
|
};
|
|
2431
2440
|
|
|
@@ -5242,7 +5251,6 @@ const DataGrid = forwardRef(
|
|
|
5242
5251
|
style={{
|
|
5243
5252
|
...gridStyle,
|
|
5244
5253
|
border: '1px solid #d1d5db',
|
|
5245
|
-
borderRadius: 'var(--br, 4px)',
|
|
5246
5254
|
overflow: 'hidden',
|
|
5247
5255
|
}}
|
|
5248
5256
|
className={
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
|
|
58
58
|
.InovuaReactDataGrid {
|
|
59
59
|
color: var(--paragraph-color) !important;
|
|
60
|
-
border-radius: var(--br, 4px) !important;
|
|
61
60
|
overflow: hidden !important;
|
|
62
61
|
}
|
|
63
62
|
|
|
@@ -494,11 +493,8 @@
|
|
|
494
493
|
|
|
495
494
|
/* DataGrid top container and search container styles */
|
|
496
495
|
.dataGridTopContainer {
|
|
497
|
-
display: flex;
|
|
498
496
|
justify-content: space-between;
|
|
499
497
|
align-items: center;
|
|
500
|
-
margin-bottom: 8px;
|
|
501
|
-
padding: 0 5px;
|
|
502
498
|
}
|
|
503
499
|
|
|
504
500
|
.dataGridTopLeftContainer {
|
|
@@ -543,8 +539,9 @@
|
|
|
543
539
|
align-items: center;
|
|
544
540
|
justify-content: space-between;
|
|
545
541
|
width: 100%;
|
|
546
|
-
border: 1px solid #d1d5db;
|
|
547
|
-
border-
|
|
542
|
+
border-top: 1px solid #d1d5db;
|
|
543
|
+
border-left: 1px solid #d1d5db;
|
|
544
|
+
border-right: 1px solid #d1d5db;
|
|
548
545
|
overflow: hidden;
|
|
549
546
|
background-color: #fff;
|
|
550
547
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
|
|
@@ -733,7 +730,6 @@
|
|
|
733
730
|
/* DataGrid container styles */
|
|
734
731
|
.dataGridContainer {
|
|
735
732
|
width: 100%;
|
|
736
|
-
border-radius: var(--br, 4px);
|
|
737
733
|
overflow: hidden;
|
|
738
734
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
739
735
|
|