@visns-studio/visns-components 3.4.8 → 3.4.10

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.
@@ -25,6 +25,7 @@ import {
25
25
  ArrowCounterClockwise,
26
26
  Backspace,
27
27
  Check,
28
+ CircleCheck,
28
29
  Clock,
29
30
  CloudDownload,
30
31
  Copy,
@@ -350,6 +351,11 @@ const DataGrid = forwardRef(
350
351
 
351
352
  const handleSettingClick = (s, d) => {
352
353
  switch (s.id) {
354
+ case 'activate':
355
+ CustomFetch(s.url, 'POST', { id: d[s.key] }, (result) => {
356
+ toast.success(result.message);
357
+ });
358
+ break;
353
359
  case 'delete':
354
360
  const getDataId = () => {
355
361
  for (const item of ajaxSetting.where) {
@@ -936,7 +942,7 @@ const DataGrid = forwardRef(
936
942
  if (s.hide && s.hide.id && s.hide.value >= 0) {
937
943
  if (
938
944
  d.hasOwnProperty(s.hide.id) &&
939
- d[s.hide.id] === s.hide.value
945
+ parseInt(d[s.hide.id]) === parseInt(s.hide.value)
940
946
  ) {
941
947
  allow = false;
942
948
  }
@@ -944,6 +950,8 @@ const DataGrid = forwardRef(
944
950
 
945
951
  if (allow) {
946
952
  switch (s.id) {
953
+ case 'activate':
954
+ return getIconComponent(CircleCheck);
947
955
  case 'archive':
948
956
  return getIconComponent(ShippingBoxV1);
949
957
  case 'complete':
@@ -3,6 +3,7 @@ import { Link, useLocation, useNavigate } from 'react-router-dom';
3
3
  import {
4
4
  ArrowCycle,
5
5
  BookClose,
6
+ BookOpen,
6
7
  Briefcase,
7
8
  Bug,
8
9
  Calendar,
@@ -18,8 +19,10 @@ import {
18
19
  Home,
19
20
  HomeAlt1,
20
21
  Inbox,
22
+ Info,
21
23
  LightBulb,
22
24
  Microphone,
25
+ Money,
23
26
  Newspaper,
24
27
  Paper,
25
28
  PeopleGroup,
@@ -116,6 +119,7 @@ function Navigation({
116
119
  const iconComponents = {
117
120
  arrowCycle: ArrowCycle,
118
121
  bookClose: BookClose,
122
+ bookOpen: BookOpen,
119
123
  briefcase: Briefcase,
120
124
  calendar: Calendar,
121
125
  clipboard: Clipboard,
@@ -130,8 +134,10 @@ function Navigation({
130
134
  home: Home,
131
135
  homeAlt1: HomeAlt1,
132
136
  inbox: Inbox,
137
+ info: Info,
133
138
  lightBulb: LightBulb,
134
139
  microphone: Microphone,
140
+ money: Money,
135
141
  newspaper: Newspaper,
136
142
  paper: Paper,
137
143
  peopleGroup: PeopleGroup,
package/package.json CHANGED
@@ -8,8 +8,8 @@
8
8
  "awesome-debounce-promise": "^2.1.0",
9
9
  "axios": "^1.6.7",
10
10
  "file-saver": "^2.0.5",
11
- "framer-motion": "^11.0.3",
12
- "html-react-parser": "^5.1.1",
11
+ "framer-motion": "^11.0.8",
12
+ "html-react-parser": "^5.1.8",
13
13
  "lodash": "^4.17.21",
14
14
  "lodash.debounce": "^4.0.8",
15
15
  "moment": "^2.30.1",
@@ -22,18 +22,19 @@
22
22
  "react-copy-to-clipboard": "^5.1.0",
23
23
  "react-datepicker": "^4.25.0",
24
24
  "react-dropzone": "^14.2.3",
25
- "react-number-format": "^5.3.1",
25
+ "react-number-format": "^5.3.3",
26
26
  "react-password-strength-bar": "^0.4.1",
27
27
  "react-promise-tracker": "^2.1.1",
28
28
  "react-quill": "^2.0.0",
29
29
  "react-reveal": "^1.2.2",
30
+ "react-router-dom": "^6.22.2",
30
31
  "react-select": "^5.8.0",
31
32
  "react-slugify": "^3.0.3",
32
33
  "react-sortable-hoc": "^2.0.0",
33
- "react-to-print": "^2.14.15",
34
+ "react-to-print": "^2.15.1",
34
35
  "react-toastify": "^10.0.4",
35
36
  "react-toggle": "^4.1.3",
36
- "react-tooltip": "^5.26.0",
37
+ "react-tooltip": "^5.26.3",
37
38
  "react-window": "^1.8.10",
38
39
  "reactjs-popup": "^2.0.6",
39
40
  "truncate": "^3.0.0",
@@ -49,7 +50,7 @@
49
50
  "react-dom": "^17.0.1"
50
51
  },
51
52
  "name": "@visns-studio/visns-components",
52
- "version": "3.4.8",
53
+ "version": "3.4.10",
53
54
  "description": "Various packages to assist in the development of our Custom Applications.",
54
55
  "main": "index.js",
55
56
  "scripts": {