@visns-studio/visns-components 4.10.4 → 4.10.6
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 +1 -1
- package/src/components/crm/Navigation.jsx +2 -0
- package/src/components/crm/auth/styles/Login.module.scss +0 -39
- package/src/components/crm/auth/styles/Reset.module.scss +0 -39
- package/src/components/crm/generic/GenericDynamic.jsx +10 -3
- package/src/components/crm/styles/DataGrid.module.scss +5 -5
- package/src/components/crm/styles/Navigation.module.scss +30 -30
package/package.json
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"name": "@visns-studio/visns-components",
|
|
78
|
-
"version": "4.10.
|
|
78
|
+
"version": "4.10.6",
|
|
79
79
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
80
80
|
"main": "src/index.js",
|
|
81
81
|
"files": [
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
Calendar,
|
|
10
10
|
ChatDots,
|
|
11
11
|
Clipboard,
|
|
12
|
+
CloudUpload,
|
|
12
13
|
DoubleSword,
|
|
13
14
|
Draft,
|
|
14
15
|
Envelope,
|
|
@@ -302,6 +303,7 @@ function Navigation({
|
|
|
302
303
|
calendar: Calendar,
|
|
303
304
|
chatDots: ChatDots,
|
|
304
305
|
clipboard: Clipboard,
|
|
306
|
+
cloudUpload: CloudUpload,
|
|
305
307
|
doubleSword: DoubleSword,
|
|
306
308
|
draft: Draft,
|
|
307
309
|
envelope: Envelope,
|
|
@@ -147,45 +147,6 @@
|
|
|
147
147
|
width: 100%;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.login .formItem {
|
|
151
|
-
padding: 0.25em 0;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.login .formItem small {
|
|
155
|
-
position: absolute;
|
|
156
|
-
width: 18px;
|
|
157
|
-
height: 18px;
|
|
158
|
-
right: 18px;
|
|
159
|
-
top: 18px;
|
|
160
|
-
opacity: 0.15;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.login .loginitem {
|
|
164
|
-
width: 100%;
|
|
165
|
-
padding: 0.25em 0;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.login .loginitem label {
|
|
169
|
-
width: 100%;
|
|
170
|
-
padding-bottom: 0.25rem;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.login .loginitem button {
|
|
174
|
-
width: 100%;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.forgotten span {
|
|
178
|
-
display: block;
|
|
179
|
-
text-align: center;
|
|
180
|
-
color: var(--paragraph-color);
|
|
181
|
-
padding: 1rem 0;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.forgotten span a {
|
|
185
|
-
color: var(--highlight-color);
|
|
186
|
-
text-decoration: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
150
|
.btn {
|
|
190
151
|
width: max-content;
|
|
191
152
|
display: inline-block;
|
|
@@ -147,45 +147,6 @@
|
|
|
147
147
|
width: 100%;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.login .formItem {
|
|
151
|
-
padding: 0.25em 0;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.login .formItem small {
|
|
155
|
-
position: absolute;
|
|
156
|
-
width: 18px;
|
|
157
|
-
height: 18px;
|
|
158
|
-
right: 18px;
|
|
159
|
-
top: 18px;
|
|
160
|
-
opacity: 0.15;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.login .loginitem {
|
|
164
|
-
width: 100%;
|
|
165
|
-
padding: 0.25em 0;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.login .loginitem label {
|
|
169
|
-
width: 100%;
|
|
170
|
-
padding-bottom: 0.25rem;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.login .loginitem button {
|
|
174
|
-
width: 100%;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.forgotten span {
|
|
178
|
-
display: block;
|
|
179
|
-
text-align: center;
|
|
180
|
-
color: var(--paragraph-color);
|
|
181
|
-
padding: 1rem 0;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.forgotten span a {
|
|
185
|
-
color: var(--highlight-color);
|
|
186
|
-
text-decoration: none;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
150
|
.btn {
|
|
190
151
|
width: max-content;
|
|
191
152
|
display: inline-block;
|
|
@@ -46,8 +46,8 @@ const renderValue = (field, data) => {
|
|
|
46
46
|
case 'opportunities':
|
|
47
47
|
return data[table][key];
|
|
48
48
|
case 'clients':
|
|
49
|
-
if (key === '
|
|
50
|
-
return data['
|
|
49
|
+
if (key === 'surname' && !data[key]) {
|
|
50
|
+
return data['lastname'] || '';
|
|
51
51
|
} else {
|
|
52
52
|
return data['client']
|
|
53
53
|
? data['client'][key]
|
|
@@ -67,7 +67,14 @@ const renderValue = (field, data) => {
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
} else {
|
|
70
|
-
|
|
70
|
+
// Check if field.label contains 'surname' or 'lastname' (case-insensitive)
|
|
71
|
+
if (field.label && /surname|lastname/i.test(field.label)) {
|
|
72
|
+
if (data.surname) {
|
|
73
|
+
return data.surname;
|
|
74
|
+
} else if (data.lastname) {
|
|
75
|
+
return data.lastname;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
71
78
|
}
|
|
72
79
|
break;
|
|
73
80
|
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
outline: none;
|
|
15
15
|
transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
|
|
16
16
|
font-size: 1.25em;
|
|
17
|
-
}
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
&:hover {
|
|
19
|
+
color: var(--primary-color);
|
|
20
|
+
background: var(--highlight-color);
|
|
21
|
+
border: 1px solid rgba(var(--highlight-color-rgb), 1.05);
|
|
22
|
+
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.vs-datagrid--row:hover {
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
}
|
|
6
5
|
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
6
|
+
.logo {
|
|
7
|
+
width: 130px;
|
|
8
|
+
padding: 0 2rem 0 2rem;
|
|
9
|
+
margin: 0;
|
|
10
|
+
line-height: 1.45;
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
12
|
+
img {
|
|
13
|
+
width: 100%;
|
|
14
|
+
max-width: 180px;
|
|
15
|
+
height: auto;
|
|
16
|
+
display: block;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
21
20
|
|
|
22
|
-
.branding {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
21
|
+
.branding {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
letter-spacing: -1px;
|
|
26
|
+
text-align: center;
|
|
29
27
|
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
}
|
|
28
|
+
.highlight {
|
|
29
|
+
color: white;
|
|
30
|
+
}
|
|
33
31
|
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
.light {
|
|
33
|
+
font-weight: 300;
|
|
34
|
+
color: var(--secondary-color);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.navwrap {
|
|
@@ -971,8 +971,8 @@
|
|
|
971
971
|
border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
|
|
972
972
|
cursor: pointer;
|
|
973
973
|
padding: 10px 10px;
|
|
974
|
-
}
|
|
975
974
|
|
|
976
|
-
|
|
977
|
-
|
|
975
|
+
&:hover {
|
|
976
|
+
background-color: rgba(var(--paragraph-color-rgb), 0.065);
|
|
977
|
+
}
|
|
978
978
|
}
|