@visns-studio/visns-components 5.11.1 → 5.11.3
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 +2 -2
- package/src/components/cms/DataGrid.jsx +8 -8
- package/src/components/cms/DropZone.jsx +1 -1
- package/src/components/cms/Form.jsx +1 -1
- package/src/components/cms/Gallery.jsx +1 -1
- package/src/components/cms/sorting/Item.jsx +1 -1
- package/src/components/crm/AssociationManager.jsx +431 -0
- package/src/components/crm/Autocomplete.jsx +3 -3
- package/src/components/crm/Breadcrumb.jsx +4 -4
- package/src/components/crm/BusinessCardOcr.jsx +681 -95
- package/src/components/crm/ClientAssociationManager.jsx +362 -0
- package/src/components/crm/DataGrid.jsx +34 -32
- package/src/components/crm/Field.jsx +12 -12
- package/src/components/crm/Form.jsx +2 -2
- package/src/components/crm/MergeEntity.jsx +1049 -0
- package/src/components/crm/MultiSelect.jsx +14 -3
- package/src/components/crm/Navigation.jsx +14 -15
- package/src/components/crm/Notification.jsx +2 -2
- package/src/components/crm/QuickAction.jsx +3 -3
- package/src/components/crm/SectionHeader.jsx +1 -1
- package/src/components/crm/SwitchAccount.jsx +4 -4
- package/src/components/crm/auth/ClientLogin.jsx +2 -2
- package/src/components/crm/auth/ClientOTPVerify.jsx +2 -2
- package/src/components/crm/auth/Login.jsx +3 -3
- package/src/components/crm/auth/Reset.jsx +2 -2
- package/src/components/crm/auth/TwoFactorAuth.jsx +2 -2
- package/src/components/crm/cells/CellWithTooltip.jsx +35 -28
- package/src/components/crm/columns/ColumnRenderers.jsx +320 -259
- package/src/components/crm/controls/DataGridSearch.jsx +5 -5
- package/src/components/crm/generic/AlternativeActionModal.jsx +100 -0
- package/src/components/crm/generic/ContactSelectorModal.jsx +59 -16
- package/src/components/crm/generic/DateRangeSelectorModal.jsx +181 -0
- package/src/components/crm/generic/GenericClientPortal.jsx +1 -1
- package/src/components/crm/generic/GenericDashboard.jsx +4 -4
- package/src/components/crm/generic/GenericDetail.jsx +31 -6
- package/src/components/crm/generic/GenericDynamic.jsx +3 -3
- package/src/components/crm/generic/GenericEditableTable.jsx +4 -4
- package/src/components/crm/generic/GenericFormBuilder.jsx +6 -6
- package/src/components/crm/generic/GenericGrid.jsx +1622 -268
- package/src/components/crm/generic/GenericReport.jsx +966 -646
- package/src/components/crm/generic/GenericReportForm.jsx +1 -1
- package/src/components/crm/generic/NotificationList.jsx +1 -1
- package/src/components/crm/generic/ReasonCollectorModal.jsx +194 -0
- package/src/components/crm/generic/SortableQuoteItems.jsx +3 -3
- package/src/components/crm/generic/shared/formatters.js +107 -1
- package/src/components/crm/generic/styles/AlternativeActionModal.css +127 -0
- package/src/components/crm/generic/styles/DateRangeSelectorModal.css +115 -0
- package/src/components/crm/generic/styles/GenericIndex.module.scss +206 -0
- package/src/components/crm/generic/styles/GenericReport.module.scss +96 -0
- package/src/components/crm/generic/styles/ReasonCollectorModal.css +217 -0
- package/src/components/crm/modals/GalleryModal.jsx +2 -2
- package/src/components/crm/sorting/Item.jsx +3 -3
- package/src/components/crm/styles/AssociationManager.module.scss +364 -0
- package/src/components/crm/styles/BusinessCardOcr.module.scss +197 -4
- package/src/components/crm/styles/ClientAssociationManager.module.scss +290 -0
- package/src/components/crm/styles/MergeEntity.module.scss +690 -0
- package/src/components/crm/styles/MultiSelect.module.scss +18 -0
- package/src/components/crm/styles/Navigation.module.scss +68 -8
- package/src/components/crm/styles/global-datagrid.css +9 -0
- package/src/index.js +6 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
padding: 20px;
|
|
3
|
+
background: #fff;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.header {
|
|
9
|
+
margin-bottom: 30px;
|
|
10
|
+
border-bottom: 1px solid #eee;
|
|
11
|
+
padding-bottom: 15px;
|
|
12
|
+
|
|
13
|
+
h3 {
|
|
14
|
+
margin: 0 0 5px 0;
|
|
15
|
+
color: #333;
|
|
16
|
+
font-size: 1.4em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
p {
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: #666;
|
|
22
|
+
font-size: 0.9em;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.loading {
|
|
27
|
+
text-align: center;
|
|
28
|
+
padding: 40px;
|
|
29
|
+
color: #666;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Existing Associations */
|
|
33
|
+
.existingAssociations {
|
|
34
|
+
margin-bottom: 40px;
|
|
35
|
+
|
|
36
|
+
h4 {
|
|
37
|
+
margin: 0 0 15px 0;
|
|
38
|
+
color: #333;
|
|
39
|
+
font-size: 1.1em;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.noAssociations {
|
|
44
|
+
padding: 20px;
|
|
45
|
+
text-align: center;
|
|
46
|
+
color: #999;
|
|
47
|
+
background: #f8f9fa;
|
|
48
|
+
border-radius: 6px;
|
|
49
|
+
font-style: italic;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.associationsList {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: 12px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.associationItem {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
align-items: center;
|
|
62
|
+
padding: 15px;
|
|
63
|
+
border: 1px solid #e0e0e0;
|
|
64
|
+
border-radius: 6px;
|
|
65
|
+
background: #fafafa;
|
|
66
|
+
transition: all 0.2s ease;
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
background: #f5f5f5;
|
|
70
|
+
border-color: #d0d0d0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.primary {
|
|
74
|
+
border-color: #007bff;
|
|
75
|
+
background: #e7f3ff;
|
|
76
|
+
|
|
77
|
+
&:hover {
|
|
78
|
+
background: #d1ecf1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.associationInfo {
|
|
84
|
+
flex: 1;
|
|
85
|
+
|
|
86
|
+
.companyName {
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
color: #333;
|
|
89
|
+
margin-bottom: 4px;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: 8px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.primaryBadge {
|
|
96
|
+
background: #007bff;
|
|
97
|
+
color: white;
|
|
98
|
+
padding: 2px 6px;
|
|
99
|
+
border-radius: 3px;
|
|
100
|
+
font-size: 0.75em;
|
|
101
|
+
font-weight: 500;
|
|
102
|
+
text-transform: uppercase;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.relationshipInfo {
|
|
106
|
+
margin-bottom: 4px;
|
|
107
|
+
|
|
108
|
+
.relationshipType {
|
|
109
|
+
color: #666;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
text-transform: capitalize;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.notes {
|
|
115
|
+
color: #888;
|
|
116
|
+
font-size: 0.9em;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.associatedAt {
|
|
121
|
+
color: #999;
|
|
122
|
+
font-size: 0.8em;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.associationActions {
|
|
127
|
+
display: flex;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
align-items: center;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.setPrimaryBtn,
|
|
133
|
+
.removeBtn,
|
|
134
|
+
.associateBtn {
|
|
135
|
+
padding: 6px 12px;
|
|
136
|
+
border: none;
|
|
137
|
+
border-radius: 4px;
|
|
138
|
+
font-size: 0.85em;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
transition: all 0.2s ease;
|
|
141
|
+
|
|
142
|
+
&:disabled {
|
|
143
|
+
opacity: 0.6;
|
|
144
|
+
cursor: not-allowed;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.setPrimaryBtn {
|
|
149
|
+
background: #28a745;
|
|
150
|
+
color: white;
|
|
151
|
+
|
|
152
|
+
&:hover:not(:disabled) {
|
|
153
|
+
background: #218838;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.removeBtn {
|
|
158
|
+
background: #dc3545;
|
|
159
|
+
color: white;
|
|
160
|
+
|
|
161
|
+
&:hover:not(:disabled) {
|
|
162
|
+
background: #c82333;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.associateBtn {
|
|
167
|
+
background: #007bff;
|
|
168
|
+
color: white;
|
|
169
|
+
padding: 10px 20px;
|
|
170
|
+
font-size: 0.9em;
|
|
171
|
+
|
|
172
|
+
&:hover:not(:disabled) {
|
|
173
|
+
background: #0056b3;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* New Association Form */
|
|
178
|
+
.newAssociation {
|
|
179
|
+
border-top: 1px solid #eee;
|
|
180
|
+
padding-top: 30px;
|
|
181
|
+
|
|
182
|
+
h4 {
|
|
183
|
+
margin: 0 0 20px 0;
|
|
184
|
+
color: #333;
|
|
185
|
+
font-size: 1.1em;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.associationForm {
|
|
190
|
+
background: #f8f9fa;
|
|
191
|
+
padding: 20px;
|
|
192
|
+
border-radius: 6px;
|
|
193
|
+
border: 1px solid #e9ecef;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.formRow {
|
|
197
|
+
display: flex;
|
|
198
|
+
gap: 20px;
|
|
199
|
+
margin-bottom: 20px;
|
|
200
|
+
|
|
201
|
+
&:last-child {
|
|
202
|
+
margin-bottom: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media (max-width: 768px) {
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
gap: 15px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.formField {
|
|
212
|
+
flex: 1;
|
|
213
|
+
|
|
214
|
+
label {
|
|
215
|
+
display: block;
|
|
216
|
+
margin-bottom: 5px;
|
|
217
|
+
color: #333;
|
|
218
|
+
font-weight: 500;
|
|
219
|
+
font-size: 0.9em;
|
|
220
|
+
|
|
221
|
+
input[type="checkbox"] {
|
|
222
|
+
margin-right: 8px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.selectField,
|
|
228
|
+
.textField {
|
|
229
|
+
width: 100%;
|
|
230
|
+
padding: 8px 12px;
|
|
231
|
+
border: 1px solid #ced4da;
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
background: white;
|
|
234
|
+
font-size: 0.9em;
|
|
235
|
+
color: #495057;
|
|
236
|
+
|
|
237
|
+
&:focus {
|
|
238
|
+
outline: none;
|
|
239
|
+
border-color: #007bff;
|
|
240
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.textareaField {
|
|
245
|
+
width: 100%;
|
|
246
|
+
padding: 8px 12px;
|
|
247
|
+
border: 1px solid #ced4da;
|
|
248
|
+
border-radius: 4px;
|
|
249
|
+
background: white;
|
|
250
|
+
font-size: 0.9em;
|
|
251
|
+
color: #495057;
|
|
252
|
+
resize: vertical;
|
|
253
|
+
min-height: 60px;
|
|
254
|
+
|
|
255
|
+
&:focus {
|
|
256
|
+
outline: none;
|
|
257
|
+
border-color: #007bff;
|
|
258
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.formActions {
|
|
263
|
+
margin-top: 20px;
|
|
264
|
+
text-align: right;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* Responsive Design */
|
|
268
|
+
@media (max-width: 768px) {
|
|
269
|
+
.container {
|
|
270
|
+
padding: 15px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.associationItem {
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
align-items: flex-start;
|
|
276
|
+
gap: 15px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.associationActions {
|
|
280
|
+
align-self: flex-end;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.formActions {
|
|
284
|
+
text-align: center;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.associateBtn {
|
|
288
|
+
width: 100%;
|
|
289
|
+
}
|
|
290
|
+
}
|