@visns-studio/visns-components 4.5.6 → 4.5.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
|
2
2
|
import { Link, useLocation, useNavigate } from 'react-router-dom';
|
|
3
3
|
import {
|
|
4
4
|
ArrowCycle,
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
Person,
|
|
32
32
|
Question,
|
|
33
33
|
QuestionFill,
|
|
34
|
+
Search,
|
|
34
35
|
SettingsVertical,
|
|
35
36
|
ShippingBoxV1,
|
|
36
37
|
SignOut,
|
|
@@ -44,16 +45,178 @@ import CustomFetch from './Fetch';
|
|
|
44
45
|
import Notification from './Notification';
|
|
45
46
|
import styles from './styles/Navigation.module.css';
|
|
46
47
|
|
|
48
|
+
const SearchComponent = ({
|
|
49
|
+
navigate,
|
|
50
|
+
search,
|
|
51
|
+
setSearch,
|
|
52
|
+
searchResultShow,
|
|
53
|
+
searchResult,
|
|
54
|
+
setSearchResultShow,
|
|
55
|
+
setSearchResult,
|
|
56
|
+
navConfig,
|
|
57
|
+
}) => {
|
|
58
|
+
const searchWrapperRef = useRef(null);
|
|
59
|
+
|
|
60
|
+
const handleClickSearch = (url) => {
|
|
61
|
+
if (url) {
|
|
62
|
+
setSearchResultShow(false);
|
|
63
|
+
navigate(url);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const handleKeyPress = (e) => {
|
|
68
|
+
if (e.key === 'Enter') {
|
|
69
|
+
fetchSearchResult();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const handleSearch = (e) => {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
fetchSearchResult();
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const handleSearchChange = (e) => {
|
|
79
|
+
setSearch(e.target.value);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const fetchSearchResult = useCallback(async () => {
|
|
83
|
+
try {
|
|
84
|
+
if (search.trim() === '') {
|
|
85
|
+
setSearchResultShow(false);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const res = await CustomFetch(navConfig.search.url, 'POST', {
|
|
90
|
+
search,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
if (res.data) {
|
|
94
|
+
const updatedSearchResult = searchResult.map((searchItem) => {
|
|
95
|
+
const newData = res.data[searchItem.id] || [];
|
|
96
|
+
return {
|
|
97
|
+
...searchItem,
|
|
98
|
+
data: newData,
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
setSearchResult(updatedSearchResult);
|
|
103
|
+
setSearchResultShow(true);
|
|
104
|
+
}
|
|
105
|
+
} catch (err) {
|
|
106
|
+
console.error(err);
|
|
107
|
+
}
|
|
108
|
+
}, [
|
|
109
|
+
search,
|
|
110
|
+
navConfig.search.url,
|
|
111
|
+
searchResult,
|
|
112
|
+
setSearchResult,
|
|
113
|
+
setSearchResultShow,
|
|
114
|
+
]);
|
|
115
|
+
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
const handleClickOutside = (event) => {
|
|
118
|
+
if (
|
|
119
|
+
searchWrapperRef.current &&
|
|
120
|
+
!searchWrapperRef.current.contains(event.target)
|
|
121
|
+
) {
|
|
122
|
+
setSearchResultShow(false);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
127
|
+
return () => {
|
|
128
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
129
|
+
};
|
|
130
|
+
}, [searchWrapperRef, setSearchResultShow]);
|
|
131
|
+
|
|
132
|
+
const getNestedValues = (obj, keys) => {
|
|
133
|
+
return keys
|
|
134
|
+
.map((key) => obj[key])
|
|
135
|
+
.filter((value) => value)
|
|
136
|
+
.join(' ');
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
return (
|
|
140
|
+
<div className={styles.globalsearch} ref={searchWrapperRef}>
|
|
141
|
+
<input
|
|
142
|
+
type="text"
|
|
143
|
+
placeholder="Search"
|
|
144
|
+
value={search}
|
|
145
|
+
onChange={handleSearchChange}
|
|
146
|
+
onKeyDown={handleKeyPress}
|
|
147
|
+
/>
|
|
148
|
+
{searchResultShow && (
|
|
149
|
+
<ul
|
|
150
|
+
className={styles['AutocompletePlace-results']}
|
|
151
|
+
style={{ marginTop: '40px' }}
|
|
152
|
+
>
|
|
153
|
+
{searchResult.length > 0 &&
|
|
154
|
+
searchResult.map(
|
|
155
|
+
(searchItem, searchItemKey) =>
|
|
156
|
+
searchItem.data.length > 0 && (
|
|
157
|
+
<React.Fragment
|
|
158
|
+
key={`search-category-${searchItem.id}-${searchItemKey}`}
|
|
159
|
+
>
|
|
160
|
+
<li
|
|
161
|
+
className={
|
|
162
|
+
styles[
|
|
163
|
+
'AutocompletePlace-items'
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
>
|
|
167
|
+
<strong>{searchItem.label}</strong>
|
|
168
|
+
</li>
|
|
169
|
+
<ul>
|
|
170
|
+
{searchItem.data.map((item) => (
|
|
171
|
+
<li
|
|
172
|
+
key={`${searchItemKey}-${item.id}`}
|
|
173
|
+
className={
|
|
174
|
+
styles[
|
|
175
|
+
'AutocompletePlace-items'
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
onClick={() => {
|
|
179
|
+
handleClickSearch(
|
|
180
|
+
`${searchItem.url}${item.id}`
|
|
181
|
+
);
|
|
182
|
+
}}
|
|
183
|
+
data-type={searchItem.id}
|
|
184
|
+
data-id={item.id}
|
|
185
|
+
>
|
|
186
|
+
{getNestedValues(
|
|
187
|
+
item,
|
|
188
|
+
searchItem.key
|
|
189
|
+
)}
|
|
190
|
+
</li>
|
|
191
|
+
))}
|
|
192
|
+
</ul>
|
|
193
|
+
</React.Fragment>
|
|
194
|
+
)
|
|
195
|
+
)}
|
|
196
|
+
</ul>
|
|
197
|
+
)}
|
|
198
|
+
<button onClick={handleSearch}>
|
|
199
|
+
<Search strokeWidth={2} size={36} />
|
|
200
|
+
</button>
|
|
201
|
+
</div>
|
|
202
|
+
);
|
|
203
|
+
};
|
|
204
|
+
|
|
47
205
|
function Navigation({
|
|
48
206
|
children,
|
|
49
207
|
layout = 'full',
|
|
50
208
|
logo,
|
|
51
209
|
navConfig,
|
|
52
|
-
searchComponent,
|
|
53
210
|
setSystemAuth,
|
|
54
211
|
themeType,
|
|
55
212
|
userProfile,
|
|
56
213
|
}) {
|
|
214
|
+
const [search, setSearch] = useState('');
|
|
215
|
+
const [searchResultShow, setSearchResultShow] = useState(false);
|
|
216
|
+
const [searchResult, setSearchResult] = useState(
|
|
217
|
+
navConfig.search?.tables || []
|
|
218
|
+
);
|
|
219
|
+
|
|
57
220
|
const location = useLocation();
|
|
58
221
|
const navigate = useNavigate();
|
|
59
222
|
const currentPage = location.pathname.substr(1) || 'dashboard';
|
|
@@ -61,7 +224,6 @@ function Navigation({
|
|
|
61
224
|
const [isScrolled, setIsScrolled] = useState(false);
|
|
62
225
|
const [navData, setNavData] = useState(navConfig);
|
|
63
226
|
|
|
64
|
-
// const appNavClasses = isScrolled ? styles['app-nav'] : styles['app-nav'];
|
|
65
227
|
const appNavClasses = styles['app-nav'];
|
|
66
228
|
|
|
67
229
|
const handleLogout = () => {
|
|
@@ -150,6 +312,7 @@ function Navigation({
|
|
|
150
312
|
peopleMultiple: PeopleMultiple,
|
|
151
313
|
question: Question,
|
|
152
314
|
questionFill: QuestionFill,
|
|
315
|
+
search: Search,
|
|
153
316
|
settingsVertical: SettingsVertical,
|
|
154
317
|
signOut: SignOut,
|
|
155
318
|
shippingBoxV1: ShippingBoxV1,
|
|
@@ -160,6 +323,7 @@ function Navigation({
|
|
|
160
323
|
};
|
|
161
324
|
|
|
162
325
|
const IconComponent = iconComponents[n.icon];
|
|
326
|
+
|
|
163
327
|
let navItemClasses;
|
|
164
328
|
|
|
165
329
|
if (n.class.includes('active')) {
|
|
@@ -340,8 +504,8 @@ function Navigation({
|
|
|
340
504
|
<aside
|
|
341
505
|
className={
|
|
342
506
|
isOpen
|
|
343
|
-
? `${styles['aside--cms']}`
|
|
344
|
-
: `${styles['aside--cms']}
|
|
507
|
+
? `${styles['aside--cms']} ${styles['aside--cms--open']}`
|
|
508
|
+
: `${styles['aside--cms']}`
|
|
345
509
|
}
|
|
346
510
|
>
|
|
347
511
|
<div className={styles.logo}>
|
|
@@ -366,13 +530,25 @@ function Navigation({
|
|
|
366
530
|
</aside>
|
|
367
531
|
<main className={styles.content}>
|
|
368
532
|
<div className={styles['content-header']}>
|
|
369
|
-
{
|
|
533
|
+
{navConfig.search?.enable === true && (
|
|
534
|
+
<SearchComponent
|
|
535
|
+
navigate={navigate}
|
|
536
|
+
search={search}
|
|
537
|
+
setSearch={setSearch}
|
|
538
|
+
searchResultShow={searchResultShow}
|
|
539
|
+
searchResult={searchResult}
|
|
540
|
+
setSearchResultShow={setSearchResultShow}
|
|
541
|
+
setSearchResult={setSearchResult}
|
|
542
|
+
navConfig={navConfig}
|
|
543
|
+
/>
|
|
544
|
+
)}
|
|
545
|
+
|
|
370
546
|
<div className={styles['content-title']}>
|
|
371
547
|
<button
|
|
372
548
|
className={
|
|
373
549
|
isOpen
|
|
374
|
-
? `${styles.mobmenu}`
|
|
375
|
-
: `${styles.mobmenu}
|
|
550
|
+
? `${styles.mobmenu} ${styles['mobmenu--open']}`
|
|
551
|
+
: `${styles.mobmenu}`
|
|
376
552
|
}
|
|
377
553
|
onClick={() => setOpen(!isOpen)}
|
|
378
554
|
>
|
|
@@ -214,3 +214,32 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
214
214
|
background: var(--tertiary-color);
|
|
215
215
|
font-weight: 300;
|
|
216
216
|
}
|
|
217
|
+
|
|
218
|
+
@media (max-width: 1024px) {
|
|
219
|
+
body {
|
|
220
|
+
font-size: 85%;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.aside {
|
|
224
|
+
width: 100%;
|
|
225
|
+
transform: translateX(-2000px);
|
|
226
|
+
transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
227
|
+
will-change: transform;
|
|
228
|
+
z-index: 500;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.logincontainer {
|
|
232
|
+
margin-left: 0;
|
|
233
|
+
min-height: 100vh;
|
|
234
|
+
flex-grow: 1;
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
align-content: center;
|
|
239
|
+
flex-wrap: wrap;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.login {
|
|
243
|
+
width: 95%;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -575,3 +575,404 @@
|
|
|
575
575
|
background: rgba(var(--tertiary-color-rgb), 1.05);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
+
|
|
579
|
+
@media (max-width: 1600px) {
|
|
580
|
+
body {
|
|
581
|
+
font-size: 90%;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.grid {
|
|
585
|
+
width: 100%;
|
|
586
|
+
max-width: 1150px;
|
|
587
|
+
margin: 0 auto;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
@media (max-width: 1024px) {
|
|
592
|
+
body {
|
|
593
|
+
font-size: 85%;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.app-container {
|
|
597
|
+
width: 100%;
|
|
598
|
+
min-height: 100vh;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.aside--cms {
|
|
602
|
+
width: 100%;
|
|
603
|
+
transform: translateX(-2000px);
|
|
604
|
+
transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
605
|
+
will-change: transform;
|
|
606
|
+
z-index: 600;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.aside--cms--open {
|
|
610
|
+
transform: translateX(0);
|
|
611
|
+
transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.content .content-title .mobmenu {
|
|
615
|
+
display: block;
|
|
616
|
+
visibility: visible;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.mobmenu {
|
|
620
|
+
width: 60px;
|
|
621
|
+
height: 45px;
|
|
622
|
+
position: absolute;
|
|
623
|
+
margin: 0;
|
|
624
|
+
transform: rotate(0deg) scale(0.4);
|
|
625
|
+
transition: 0.5s ease-in-out;
|
|
626
|
+
cursor: pointer;
|
|
627
|
+
border: none;
|
|
628
|
+
outline: none;
|
|
629
|
+
background: none;
|
|
630
|
+
appearance: none;
|
|
631
|
+
top: 5px;
|
|
632
|
+
left: 5px;
|
|
633
|
+
z-index: 999;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.mobmenu span {
|
|
637
|
+
display: block;
|
|
638
|
+
position: absolute;
|
|
639
|
+
height: 5px;
|
|
640
|
+
width: 50%;
|
|
641
|
+
background: var(--secondary-color);
|
|
642
|
+
opacity: 1;
|
|
643
|
+
transform: rotate(0deg);
|
|
644
|
+
transition: 0.25s ease-in-out;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.mobmenu span:nth-child(even) {
|
|
648
|
+
left: 50%;
|
|
649
|
+
border-radius: 0 9px 9px 0;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.mobmenu span:nth-child(odd) {
|
|
653
|
+
left: 0px;
|
|
654
|
+
border-radius: 9px 0 0 9px;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.mobmenu span:nth-child(1),
|
|
658
|
+
.mobmenu span:nth-child(2) {
|
|
659
|
+
top: 0px;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.mobmenu span:nth-child(3),
|
|
663
|
+
.mobmenu span:nth-child(4) {
|
|
664
|
+
top: 18px;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.mobmenu span:nth-child(5),
|
|
668
|
+
.mobmenu span:nth-child(6) {
|
|
669
|
+
top: 36px;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.mobmenu--open span:nth-child(1),
|
|
673
|
+
.mobmenu--open span:nth-child(6) {
|
|
674
|
+
transform: rotate(45deg);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.mobmenu--open span:nth-child(2),
|
|
678
|
+
.mobmenu--open span:nth-child(5) {
|
|
679
|
+
transform: rotate(-45deg);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.mobmenu--open span:nth-child(1) {
|
|
683
|
+
left: 5px;
|
|
684
|
+
top: 7px;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.mobmenu--open span:nth-child(2) {
|
|
688
|
+
left: calc(50% - 5px);
|
|
689
|
+
top: 7px;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.mobmenu--open span:nth-child(3) {
|
|
693
|
+
left: -50%;
|
|
694
|
+
opacity: 0;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.mobmenu--open span:nth-child(4) {
|
|
698
|
+
left: 100%;
|
|
699
|
+
opacity: 0;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.mobmenu--open span:nth-child(5) {
|
|
703
|
+
left: 5px;
|
|
704
|
+
top: 29px;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.mobmenu--open span:nth-child(6) {
|
|
708
|
+
left: calc(50% - 5px);
|
|
709
|
+
top: 29px;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.content {
|
|
713
|
+
margin-left: 0;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.popup-content {
|
|
717
|
+
width: 90%;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.modalwrap .modal__header .modal__close {
|
|
721
|
+
padding: 5px;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.djobs {
|
|
725
|
+
flex-wrap: wrap;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.djobs__item {
|
|
729
|
+
width: 100%;
|
|
730
|
+
padding: 0.25rem 0.25rem;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.djobs__item--select {
|
|
734
|
+
flex-basis: 100%;
|
|
735
|
+
padding: 0.25rem 0.25rem;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.djobs__item--select select {
|
|
739
|
+
width: 100%;
|
|
740
|
+
cursor: pointer;
|
|
741
|
+
font-size: 0.95rem;
|
|
742
|
+
padding: 0.25rem 0.75rem;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.djobs__item--date {
|
|
746
|
+
flex-basis: 100%;
|
|
747
|
+
padding: 0.25rem 0.25rem;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.djobs__item--date input {
|
|
751
|
+
width: 100%;
|
|
752
|
+
cursor: pointer;
|
|
753
|
+
font-size: 0.95rem;
|
|
754
|
+
padding: 0.25rem 0.75rem !important;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.djobs__item--btns {
|
|
758
|
+
width: 100%;
|
|
759
|
+
margin-left: 0;
|
|
760
|
+
display: flex;
|
|
761
|
+
flex-wrap: nowrap;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.djobs__item--btns button {
|
|
765
|
+
width: 100%;
|
|
766
|
+
padding: 0.25rem 0.75rem;
|
|
767
|
+
font-size: 0.75rem;
|
|
768
|
+
margin-left: 5px;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.dassigned {
|
|
772
|
+
flex-wrap: wrap;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.dassigned__left {
|
|
776
|
+
flex: 100%;
|
|
777
|
+
display: flex;
|
|
778
|
+
flex-wrap: wrap;
|
|
779
|
+
flex-direction: column;
|
|
780
|
+
align-items: flex-start;
|
|
781
|
+
justify-content: flex-start;
|
|
782
|
+
min-height: auto;
|
|
783
|
+
height: auto;
|
|
784
|
+
margin-right: 0;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.dassigned__left h1 {
|
|
788
|
+
font-size: 0.85rem;
|
|
789
|
+
padding: 0.75rem;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.dassigned__right {
|
|
793
|
+
flex: 100%;
|
|
794
|
+
height: auto;
|
|
795
|
+
overflow-y: auto;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.dassigned__table {
|
|
799
|
+
width: 100%;
|
|
800
|
+
display: block;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.dassigned__table table tr td {
|
|
804
|
+
font-size: 0.75rem;
|
|
805
|
+
padding: 5px 5px 5px 5px;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.dassigned__emp {
|
|
809
|
+
width: 100%;
|
|
810
|
+
display: flex;
|
|
811
|
+
flex-wrap: wrap;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.dassigned__emp h2 {
|
|
815
|
+
font-size: 1rem;
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-wrap: nowrap;
|
|
818
|
+
align-items: center;
|
|
819
|
+
width: 100%;
|
|
820
|
+
padding: 0.25rem;
|
|
821
|
+
background: rgba(var(--primary-color), 0.15);
|
|
822
|
+
margin: 0;
|
|
823
|
+
font-weight: bold;
|
|
824
|
+
border-bottom: 1px solid #e7e7e7;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.dassigned__emp h2 > div {
|
|
828
|
+
width: max-content;
|
|
829
|
+
margin-left: auto;
|
|
830
|
+
display: flex;
|
|
831
|
+
align-items: center;
|
|
832
|
+
flex-wrap: nowrap;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.dassigned__emp h2 > div small {
|
|
836
|
+
font-size: 0.7rem;
|
|
837
|
+
color: var(--paragraph-color);
|
|
838
|
+
font-weight: 300;
|
|
839
|
+
display: block;
|
|
840
|
+
padding-right: 5px;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.dassigned__emp h2 > div button {
|
|
844
|
+
display: flex;
|
|
845
|
+
align-items: center;
|
|
846
|
+
appearance: none;
|
|
847
|
+
border: none;
|
|
848
|
+
padding: 0;
|
|
849
|
+
margin: 0;
|
|
850
|
+
outline: none;
|
|
851
|
+
background: none;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.dassigned__emp h2 > div button svg {
|
|
855
|
+
width: 100%;
|
|
856
|
+
max-width: 28px;
|
|
857
|
+
height: auto;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.dassigned__emp h2 > div button .toff {
|
|
861
|
+
opacity: 0.5;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
@media (max-width: 960px) {
|
|
866
|
+
.padding {
|
|
867
|
+
padding: 0.15rem;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.userdetails {
|
|
871
|
+
display: none;
|
|
872
|
+
visibility: hidden;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.subtitle h2 {
|
|
876
|
+
font-size: 1em;
|
|
877
|
+
line-height: 1.45;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.dashlist a {
|
|
881
|
+
width: 100%;
|
|
882
|
+
height: auto;
|
|
883
|
+
margin: 0.25rem 0 0.25rem 0;
|
|
884
|
+
padding: 0.65rem;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.dashlist a:nth-child(3n) {
|
|
888
|
+
margin: 0.25rem 0 0.25rem 0;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.dashlist a:nth-child(-n + 3) {
|
|
892
|
+
margin: 0.25rem 0 0.25rem 0;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.grid__subcontent {
|
|
896
|
+
flex: 100%;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.pagination {
|
|
900
|
+
padding: 0 1rem;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.globalsearch {
|
|
905
|
+
display: flex;
|
|
906
|
+
flex-wrap: nowrap;
|
|
907
|
+
align-content: center;
|
|
908
|
+
width: 50%;
|
|
909
|
+
|
|
910
|
+
button {
|
|
911
|
+
width: max-content;
|
|
912
|
+
padding: 0.15rem 0.65rem;
|
|
913
|
+
margin: 0 0.5rem;
|
|
914
|
+
border: none;
|
|
915
|
+
background: var(--primary-color);
|
|
916
|
+
appearance: none;
|
|
917
|
+
border-radius: 0.375rem;
|
|
918
|
+
|
|
919
|
+
svg {
|
|
920
|
+
display: block;
|
|
921
|
+
color: white;
|
|
922
|
+
width: 100%;
|
|
923
|
+
max-width: 20px;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.AutocompletePlace-results {
|
|
929
|
+
z-index: 999;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.AutocompletePlace {
|
|
933
|
+
position: relative;
|
|
934
|
+
|
|
935
|
+
> svg {
|
|
936
|
+
position: absolute;
|
|
937
|
+
right: 0.5em;
|
|
938
|
+
top: 0.5em;
|
|
939
|
+
color: var(--paragraph-color);
|
|
940
|
+
cursor: pointer;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.toggleActive {
|
|
944
|
+
color: var(--highlight-color);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.AutocompletePlace-input {
|
|
949
|
+
padding: 0.65rem 3rem 0.65rem 0.95rem !important;
|
|
950
|
+
height: 38px;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.AutocompletePlace-results {
|
|
954
|
+
width: 400px;
|
|
955
|
+
position: absolute;
|
|
956
|
+
background-color: white;
|
|
957
|
+
padding: 0;
|
|
958
|
+
margin: 0;
|
|
959
|
+
border: 1px solid rgba(var(--primary-color), 0.25);
|
|
960
|
+
border-radius: var(--br);
|
|
961
|
+
overflow: hidden;
|
|
962
|
+
|
|
963
|
+
ul {
|
|
964
|
+
padding: 0;
|
|
965
|
+
margin: 0;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.AutocompletePlace-items {
|
|
970
|
+
list-style: none;
|
|
971
|
+
border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
|
|
972
|
+
cursor: pointer;
|
|
973
|
+
padding: 10px 10px;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.AutocompletePlace-items:hover {
|
|
977
|
+
background-color: rgba(var(--paragraph-color-rgb), 0.065);
|
|
978
|
+
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"axios": "^1.7.2",
|
|
15
15
|
"dayjs": "^1.11.12",
|
|
16
16
|
"file-saver": "^2.0.5",
|
|
17
|
-
"framer-motion": "^11.3.
|
|
17
|
+
"framer-motion": "^11.3.19",
|
|
18
18
|
"html-react-parser": "^5.1.12",
|
|
19
19
|
"lodash": "^4.17.21",
|
|
20
20
|
"lodash.debounce": "^4.0.8",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-quill": "^2.0.0",
|
|
36
36
|
"react-reveal": "^1.2.2",
|
|
37
37
|
"react-select": "^5.8.0",
|
|
38
|
-
"react-signature-pad-wrapper": "^4.0.
|
|
38
|
+
"react-signature-pad-wrapper": "^4.0.2",
|
|
39
39
|
"react-slugify": "^4.0.1",
|
|
40
40
|
"react-sortable-hoc": "^2.0.0",
|
|
41
41
|
"react-to-print": "^2.15.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-dom": "^17.0.1"
|
|
59
59
|
},
|
|
60
60
|
"name": "@visns-studio/visns-components",
|
|
61
|
-
"version": "4.5.
|
|
61
|
+
"version": "4.5.8",
|
|
62
62
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
63
63
|
"main": "index.js",
|
|
64
64
|
"scripts": {
|