@visns-studio/visns-components 3.6.10 → 3.7.1
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/components/crm/DataGrid.jsx +30 -3
- package/package.json +10 -10
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
Envelope,
|
|
34
34
|
Folder,
|
|
35
35
|
Inbox,
|
|
36
|
+
LinkOut,
|
|
36
37
|
Network,
|
|
37
38
|
Ribbon,
|
|
38
39
|
Search,
|
|
@@ -451,6 +452,19 @@ const DataGrid = forwardRef(
|
|
|
451
452
|
toast.success(result.message);
|
|
452
453
|
});
|
|
453
454
|
break;
|
|
455
|
+
case 'link':
|
|
456
|
+
const url = `${s.baseUrl}/${d[s.key]}`;
|
|
457
|
+
navigator.clipboard.writeText(url).then(
|
|
458
|
+
() => {
|
|
459
|
+
toast.success(
|
|
460
|
+
'URL has been copied to your clipboard.'
|
|
461
|
+
);
|
|
462
|
+
},
|
|
463
|
+
() => {
|
|
464
|
+
toast.warning('Failed to copy URL to clipboard.');
|
|
465
|
+
}
|
|
466
|
+
);
|
|
467
|
+
break;
|
|
454
468
|
case 'sound':
|
|
455
469
|
const soundRelation = s.relation.reduce((acc, id) => {
|
|
456
470
|
if (acc === '') {
|
|
@@ -639,8 +653,20 @@ const DataGrid = forwardRef(
|
|
|
639
653
|
|
|
640
654
|
rowProps.onClick = (event) => {
|
|
641
655
|
onRowClick(rowProps, event);
|
|
642
|
-
|
|
643
|
-
|
|
656
|
+
|
|
657
|
+
const cellElement = event.target.closest(
|
|
658
|
+
'.InovuaReactDataGrid__cell'
|
|
659
|
+
);
|
|
660
|
+
const columnIndex = Array.from(
|
|
661
|
+
cellElement.parentNode.children
|
|
662
|
+
).indexOf(cellElement);
|
|
663
|
+
|
|
664
|
+
const column = rowProps.columns[columnIndex];
|
|
665
|
+
|
|
666
|
+
if (column.id === '__checkbox-column') {
|
|
667
|
+
if (onClick) {
|
|
668
|
+
onClick(event);
|
|
669
|
+
}
|
|
644
670
|
}
|
|
645
671
|
};
|
|
646
672
|
}, []);
|
|
@@ -975,6 +1001,8 @@ const DataGrid = forwardRef(
|
|
|
975
1001
|
return getIconComponent(Envelope);
|
|
976
1002
|
case 'family':
|
|
977
1003
|
return getIconComponent(Network);
|
|
1004
|
+
case 'link':
|
|
1005
|
+
return getIconComponent(LinkOut);
|
|
978
1006
|
case 'primary':
|
|
979
1007
|
return getIconComponent(Ribbon);
|
|
980
1008
|
case 'restore':
|
|
@@ -2341,7 +2369,6 @@ const DataGrid = forwardRef(
|
|
|
2341
2369
|
limit={limit}
|
|
2342
2370
|
enableColumnAutosize={false}
|
|
2343
2371
|
enableColumnFilterContextMenu={false}
|
|
2344
|
-
enableSelection={false}
|
|
2345
2372
|
handle={(ref) =>
|
|
2346
2373
|
(gridRef.current = ref ? ref.current : null)
|
|
2347
2374
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@inovua/reactdatagrid-community": "^5.10.2",
|
|
4
|
-
"@tinymce/tinymce-react": "^
|
|
4
|
+
"@tinymce/tinymce-react": "^5.0.1",
|
|
5
5
|
"add": "^2.0.6",
|
|
6
|
-
"akar-icons": "^1.9.
|
|
6
|
+
"akar-icons": "^1.9.31",
|
|
7
7
|
"array-move": "^4.0.0",
|
|
8
8
|
"awesome-debounce-promise": "^2.1.0",
|
|
9
|
-
"axios": "^1.6.
|
|
9
|
+
"axios": "^1.6.8",
|
|
10
10
|
"file-saver": "^2.0.5",
|
|
11
|
-
"framer-motion": "^11.0.
|
|
12
|
-
"html-react-parser": "^5.1.
|
|
11
|
+
"framer-motion": "^11.0.24",
|
|
12
|
+
"html-react-parser": "^5.1.10",
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
14
|
"lodash.debounce": "^4.0.8",
|
|
15
15
|
"moment": "^2.30.1",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"react-color": "^2.19.3",
|
|
21
21
|
"react-confirm-alert": "^3.0.6",
|
|
22
22
|
"react-copy-to-clipboard": "^5.1.0",
|
|
23
|
-
"react-datepicker": "^
|
|
23
|
+
"react-datepicker": "^6.6.0",
|
|
24
24
|
"react-dropzone": "^14.2.3",
|
|
25
|
-
"react-number-format": "^5.3.
|
|
25
|
+
"react-number-format": "^5.3.4",
|
|
26
26
|
"react-password-strength-bar": "^0.4.1",
|
|
27
27
|
"react-promise-tracker": "^2.1.1",
|
|
28
28
|
"react-quill": "^2.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-slugify": "^3.0.3",
|
|
32
32
|
"react-sortable-hoc": "^2.0.0",
|
|
33
33
|
"react-to-print": "^2.15.1",
|
|
34
|
-
"react-toastify": "^10.0.
|
|
34
|
+
"react-toastify": "^10.0.5",
|
|
35
35
|
"react-toggle": "^4.1.3",
|
|
36
36
|
"react-tooltip": "^5.26.3",
|
|
37
37
|
"react-window": "^1.8.10",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"truncate": "^3.0.0",
|
|
40
40
|
"uuid": "^9.0.1",
|
|
41
41
|
"validator": "^13.11.0",
|
|
42
|
-
"yarn": "^1.22.
|
|
42
|
+
"yarn": "^1.22.22"
|
|
43
43
|
},
|
|
44
44
|
"devDependecies": {
|
|
45
45
|
"react": "^18.2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-dom": "^17.0.1"
|
|
51
51
|
},
|
|
52
52
|
"name": "@visns-studio/visns-components",
|
|
53
|
-
"version": "3.
|
|
53
|
+
"version": "3.7.1",
|
|
54
54
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
55
55
|
"main": "index.js",
|
|
56
56
|
"scripts": {
|