@visns-studio/visns-components 5.1.18 → 5.1.20
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/generic/GenericDashboard.jsx +232 -105
- package/src/components/crm/generic/GenericEditableTable.jsx +398 -174
- package/src/components/crm/generic/styles/GenericDashboard.module.scss +33 -1
- package/src/components/crm/generic/styles/GenericEditableTable.module.scss +37 -43
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
.widgetTitle {
|
|
184
184
|
padding-bottom: 10px;
|
|
185
|
-
border-bottom: 2px solid rgba(var(--tertiary-rgb), 0.5);
|
|
185
|
+
border-bottom: 2px solid rgba(var(--tertiary-color-rgb), 0.5);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -261,6 +261,7 @@
|
|
|
261
261
|
gap: 1rem; // Gap between fields
|
|
262
262
|
align-items: flex-end; // Align fields vertically
|
|
263
263
|
}
|
|
264
|
+
|
|
264
265
|
.filter-field {
|
|
265
266
|
flex: 1; // Ensures equal spacing for each field
|
|
266
267
|
display: flex;
|
|
@@ -292,6 +293,37 @@
|
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
|
|
296
|
+
.filter-field-highlight {
|
|
297
|
+
flex: 1; // Ensures equal spacing for each field
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
min-width: 200px; // Sets a minimum width for smaller screens
|
|
301
|
+
|
|
302
|
+
label {
|
|
303
|
+
font-size: 0.875rem;
|
|
304
|
+
font-weight: 600;
|
|
305
|
+
margin-bottom: 0.5rem;
|
|
306
|
+
color: var(--tertiary-color);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
input,
|
|
310
|
+
select {
|
|
311
|
+
border: 1px solid #dadce0;
|
|
312
|
+
border-radius: 5px;
|
|
313
|
+
padding: 0.5rem 0.75rem;
|
|
314
|
+
font-size: 0.875rem;
|
|
315
|
+
color: #333;
|
|
316
|
+
outline: none;
|
|
317
|
+
background-color: #f9f9f9;
|
|
318
|
+
width: 100%; // Ensures full width within the container
|
|
319
|
+
|
|
320
|
+
&:focus {
|
|
321
|
+
border-color: #007bff;
|
|
322
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); // Focus effect
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
295
327
|
.filter-actions {
|
|
296
328
|
display: flex;
|
|
297
329
|
gap: 0.75rem; // Gap between buttons
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
.schedulingTable {
|
|
2
2
|
width: 100%;
|
|
3
3
|
border-collapse: collapse;
|
|
4
|
-
margin:
|
|
4
|
+
margin: 0.5em 0; // Reduced margin
|
|
5
5
|
|
|
6
6
|
th,
|
|
7
7
|
td {
|
|
8
|
-
padding: 0.
|
|
8
|
+
padding: 0.2rem; // Reduced padding for cells
|
|
9
9
|
text-align: left;
|
|
10
10
|
border: 1px solid rgba(var(--primary-rgb), 0.1);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
th {
|
|
14
|
-
padding: 0.75rem
|
|
15
|
-
font-size:
|
|
14
|
+
padding: 0.5rem 0.75rem; // Less padding than before
|
|
15
|
+
font-size: 1rem; // Slightly smaller font size
|
|
16
16
|
font-weight: bold;
|
|
17
|
-
background-color: var(--primary-color);
|
|
18
|
-
color: white;
|
|
17
|
+
background-color: var(--primary-color);
|
|
18
|
+
color: white;
|
|
19
19
|
text-align: center;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,16 +25,13 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.categoryRow {
|
|
28
|
-
background-color: rgba(
|
|
29
|
-
|
|
30
|
-
0.15
|
|
31
|
-
); /* Lighter background for category */
|
|
32
|
-
font-size: 1.1rem; /* Increase font size */
|
|
28
|
+
background-color: rgba(var(--primary-rgb), 0.15);
|
|
29
|
+
font-size: 1rem; // Reduced font size
|
|
33
30
|
font-weight: bold;
|
|
34
31
|
text-align: left;
|
|
35
|
-
padding: 0.75rem
|
|
36
|
-
border-bottom: 2px solid var(--primary-color);
|
|
37
|
-
color: var(--primary-color);
|
|
32
|
+
padding: 0.5rem 0.75rem; // Reduced padding
|
|
33
|
+
border-bottom: 2px solid var(--primary-color);
|
|
34
|
+
color: var(--primary-color);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
.totalRow {
|
|
@@ -46,9 +43,9 @@
|
|
|
46
43
|
.noDataMessage {
|
|
47
44
|
text-align: center;
|
|
48
45
|
color: var(--secondary-color);
|
|
49
|
-
font-size:
|
|
50
|
-
padding:
|
|
51
|
-
margin:
|
|
46
|
+
font-size: 1rem;
|
|
47
|
+
padding: 1em;
|
|
48
|
+
margin: 1em auto;
|
|
52
49
|
background: #f9f9f9;
|
|
53
50
|
border: 1px solid #ddd;
|
|
54
51
|
border-radius: 6px;
|
|
@@ -186,16 +183,13 @@
|
|
|
186
183
|
}
|
|
187
184
|
|
|
188
185
|
.subtotalRow {
|
|
189
|
-
background-color: rgba(
|
|
190
|
-
var(--secondary-rgb),
|
|
191
|
-
0.15
|
|
192
|
-
); /* Lighter background for subtotal */
|
|
186
|
+
background-color: rgba(var(--secondary-rgb), 0.15);
|
|
193
187
|
font-weight: bold;
|
|
194
|
-
text-align: right;
|
|
195
|
-
padding:
|
|
196
|
-
font-size: 0.
|
|
197
|
-
color: var(--primary-color);
|
|
198
|
-
border-top: 2px solid var(--primary-color);
|
|
188
|
+
text-align: right;
|
|
189
|
+
padding: 0.5em; // Reduced padding
|
|
190
|
+
font-size: 0.8rem; // Reduced font size
|
|
191
|
+
color: var(--primary-color);
|
|
192
|
+
border-top: 2px solid var(--primary-color);
|
|
199
193
|
}
|
|
200
194
|
|
|
201
195
|
.colour {
|
|
@@ -210,9 +204,9 @@
|
|
|
210
204
|
&__popover {
|
|
211
205
|
position: absolute;
|
|
212
206
|
z-index: 9999;
|
|
213
|
-
left: 50%;
|
|
214
|
-
top: 50%;
|
|
215
|
-
transform: translate(-50%, -50%);
|
|
207
|
+
left: 50%;
|
|
208
|
+
top: 50%;
|
|
209
|
+
transform: translate(-50%, -50%);
|
|
216
210
|
}
|
|
217
211
|
}
|
|
218
212
|
|
|
@@ -226,30 +220,30 @@
|
|
|
226
220
|
flex: 1;
|
|
227
221
|
|
|
228
222
|
button {
|
|
229
|
-
width: 40px;
|
|
230
|
-
height: 40px;
|
|
231
|
-
font-size: 1.5rem;
|
|
223
|
+
width: 40px;
|
|
224
|
+
height: 40px;
|
|
225
|
+
font-size: 1.5rem;
|
|
232
226
|
font-weight: 600;
|
|
233
|
-
color: #fff;
|
|
234
|
-
background-color: #b0b0b0;
|
|
235
|
-
border: 2px solid #999;
|
|
236
|
-
border-radius: 8px;
|
|
227
|
+
color: #fff;
|
|
228
|
+
background-color: #b0b0b0;
|
|
229
|
+
border: 2px solid #999;
|
|
230
|
+
border-radius: 8px;
|
|
237
231
|
cursor: pointer;
|
|
238
|
-
transition: all 0.3s ease;
|
|
232
|
+
transition: all 0.3s ease;
|
|
239
233
|
|
|
240
234
|
&:hover {
|
|
241
|
-
background-color: #999;
|
|
242
|
-
border-color: #666;
|
|
235
|
+
background-color: #999;
|
|
236
|
+
border-color: #666;
|
|
243
237
|
}
|
|
244
238
|
|
|
245
239
|
&:focus {
|
|
246
|
-
outline: none;
|
|
247
|
-
box-shadow: 0 0 0 2px rgba(72, 168, 58, 0.5);
|
|
240
|
+
outline: none;
|
|
241
|
+
box-shadow: 0 0 0 2px rgba(72, 168, 58, 0.5);
|
|
248
242
|
}
|
|
249
243
|
|
|
250
244
|
&:active {
|
|
251
|
-
background-color: #888;
|
|
252
|
-
transform: scale(0.98);
|
|
245
|
+
background-color: #888;
|
|
246
|
+
transform: scale(0.98);
|
|
253
247
|
}
|
|
254
248
|
}
|
|
255
249
|
}
|