@visns-studio/visns-components 5.13.9 → 5.13.11
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/DataGrid.jsx +23 -1
- package/src/components/generic/GenericDetail.jsx +148 -4
- package/src/components/proposal/AgreementSignatureEditor.css +491 -0
- package/src/components/proposal/AgreementSignatureEditor.jsx +644 -0
- package/src/components/proposal/BrandingProfileCompanyInfo.css +213 -0
- package/src/components/proposal/BrandingProfileCompanyInfo.jsx +194 -0
- package/src/components/proposal/HeaderConfigEditor.css +412 -0
- package/src/components/proposal/HeaderConfigEditor.jsx +219 -0
- package/src/components/proposal/ProposalTemplatePreview.css +53 -53
- package/src/components/proposal/ProposalTemplateSectionManager.css +69 -50
- package/src/components/proposal/ProposalTemplateSectionManager.jsx +87 -8
- package/src/components/proposal/SectionEditor.css +54 -54
- package/src/components/proposal/SectionEditor.jsx +31 -3
- package/src/components/proposal/SectionTypeSelector.css +29 -43
- package/src/components/proposal/index.js +4 -1
- package/src/components/styles/GenericDetail.module.scss +104 -0
- package/src/utils/urlBuilder.js +5 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.section-type-modal-content {
|
|
20
|
-
background: white;
|
|
20
|
+
background: var(--tertiary-color, white);
|
|
21
21
|
border-radius: 8px;
|
|
22
22
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
|
|
23
23
|
max-width: 900px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
justify-content: space-between;
|
|
46
46
|
padding: 1.5rem;
|
|
47
47
|
border-bottom: 1px solid #e2e8f0;
|
|
48
|
-
background: #
|
|
48
|
+
background: var(--primary-color, #1a1617);
|
|
49
49
|
color: white;
|
|
50
50
|
border-radius: 8px 8px 0 0;
|
|
51
51
|
}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.section-type-close-btn:hover {
|
|
78
|
-
background: #
|
|
78
|
+
background: var(--secondary-color, #1f88c9);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.section-type-modal-body {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
.section-category-title {
|
|
94
94
|
font-size: 1.1rem;
|
|
95
95
|
font-weight: 600;
|
|
96
|
-
color: #1e293b;
|
|
96
|
+
color: var(--header-color, #1e293b);
|
|
97
97
|
margin-bottom: 1rem;
|
|
98
98
|
display: flex;
|
|
99
99
|
align-items: center;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
border-radius: 8px;
|
|
114
114
|
cursor: pointer;
|
|
115
115
|
transition: all 0.2s ease-in-out;
|
|
116
|
-
background: white;
|
|
116
|
+
background: var(--tertiary-color, white);
|
|
117
117
|
position: relative;
|
|
118
118
|
overflow: hidden;
|
|
119
119
|
}
|
|
@@ -130,53 +130,53 @@
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.section-type-card:hover {
|
|
133
|
-
border-color: #3b82f6;
|
|
133
|
+
border-color: var(--primary-color, #3b82f6);
|
|
134
134
|
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
|
|
135
135
|
transform: translateY(-2px);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.section-type-card:hover::before {
|
|
139
|
-
background: #
|
|
139
|
+
background: var(--secondary-color, #1f88c9);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.section-type-card.header-category {
|
|
143
143
|
border-color: #e0f2fe;
|
|
144
|
-
background: #f8fafc;
|
|
144
|
+
background: var(--bg-color, #f8fafc);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.section-type-card.header-category:hover {
|
|
148
|
-
border-color: #
|
|
149
|
-
box-shadow: 0 8px 25px rgba(
|
|
148
|
+
border-color: var(--primary-color, #1a1617);
|
|
149
|
+
box-shadow: 0 8px 25px rgba(26, 22, 23, 0.15);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.section-type-card.content-category {
|
|
153
153
|
border-color: #ecfdf5;
|
|
154
|
-
background: #f8fafc;
|
|
154
|
+
background: var(--bg-color, #f8fafc);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.section-type-card.content-category:hover {
|
|
158
|
-
border-color: #
|
|
159
|
-
box-shadow: 0 8px 25px rgba(
|
|
158
|
+
border-color: var(--secondary-color, #1f88c9);
|
|
159
|
+
box-shadow: 0 8px 25px rgba(31, 136, 201, 0.15);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.section-type-card.pricing-category {
|
|
163
163
|
border-color: #fef3c7;
|
|
164
|
-
background: #f8fafc;
|
|
164
|
+
background: var(--bg-color, #f8fafc);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.section-type-card.pricing-category:hover {
|
|
168
|
-
border-color: #
|
|
169
|
-
box-shadow: 0 8px 25px rgba(
|
|
168
|
+
border-color: var(--primary-color, #1a1617);
|
|
169
|
+
box-shadow: 0 8px 25px rgba(26, 22, 23, 0.15);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.section-type-card.footer-category {
|
|
173
173
|
border-color: #f3e8ff;
|
|
174
|
-
background: #f8fafc;
|
|
174
|
+
background: var(--bg-color, #f8fafc);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.section-type-card.footer-category:hover {
|
|
178
|
-
border-color: #
|
|
179
|
-
box-shadow: 0 8px 25px rgba(
|
|
178
|
+
border-color: var(--primary-color, #1a1617);
|
|
179
|
+
box-shadow: 0 8px 25px rgba(26, 22, 23, 0.15);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.section-type-card-header {
|
|
@@ -190,8 +190,8 @@
|
|
|
190
190
|
flex-shrink: 0;
|
|
191
191
|
padding: 0.5rem;
|
|
192
192
|
border-radius: 5px;
|
|
193
|
-
background: rgba(
|
|
194
|
-
color: #
|
|
193
|
+
background: rgba(31, 136, 201, 0.1);
|
|
194
|
+
color: var(--primary-color, #1a1617);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.section-type-card-content {
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
.section-type-name {
|
|
203
203
|
font-size: 1rem;
|
|
204
204
|
font-weight: 600;
|
|
205
|
-
color: #1e293b;
|
|
205
|
+
color: var(--header-color, #1e293b);
|
|
206
206
|
margin: 0 0 0.25rem 0;
|
|
207
207
|
display: flex;
|
|
208
208
|
align-items: center;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
|
|
212
212
|
.section-type-description {
|
|
213
213
|
font-size: 0.875rem;
|
|
214
|
-
color: #64748b;
|
|
214
|
+
color: var(--paragraph-color, #64748b);
|
|
215
215
|
margin: 0;
|
|
216
216
|
line-height: 1.4;
|
|
217
217
|
}
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
padding: 0.15rem 0.4rem;
|
|
221
221
|
font-size: 0.65rem;
|
|
222
222
|
font-weight: 600;
|
|
223
|
-
background-color: #
|
|
224
|
-
color:
|
|
223
|
+
background-color: var(--secondary-color, #1f88c9);
|
|
224
|
+
color: var(--tertiary-color, white);
|
|
225
225
|
border-radius: 4px;
|
|
226
226
|
text-transform: uppercase;
|
|
227
227
|
letter-spacing: 0.025em;
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
justify-content: flex-end;
|
|
234
234
|
padding: 1rem 1.5rem;
|
|
235
235
|
border-top: 1px solid #e2e8f0;
|
|
236
|
-
background: #f8fafc;
|
|
236
|
+
background: var(--bg-color, #f8fafc);
|
|
237
237
|
border-radius: 0 0 8px 8px;
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -241,8 +241,8 @@
|
|
|
241
241
|
padding: 0.5rem 1rem;
|
|
242
242
|
font-size: 0.875rem;
|
|
243
243
|
font-weight: 500;
|
|
244
|
-
color: #64748b;
|
|
245
|
-
background: white;
|
|
244
|
+
color: var(--paragraph-color, #64748b);
|
|
245
|
+
background: var(--tertiary-color, white);
|
|
246
246
|
border: 1px solid #e1e1e1;
|
|
247
247
|
border-radius: 5px;
|
|
248
248
|
cursor: pointer;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.section-type-cancel-btn:hover {
|
|
253
|
-
background: #f8fafc;
|
|
253
|
+
background: var(--bg-color, #f8fafc);
|
|
254
254
|
border-color: #9ca3af;
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -315,17 +315,3 @@
|
|
|
315
315
|
vertical-align: middle;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
/* Dynamic Badge - Enhanced */
|
|
319
|
-
.dynamic-badge {
|
|
320
|
-
display: inline-block;
|
|
321
|
-
background: #28a745;
|
|
322
|
-
color: white;
|
|
323
|
-
font-size: 0.65rem;
|
|
324
|
-
font-weight: 500;
|
|
325
|
-
padding: 0.15rem 0.4rem;
|
|
326
|
-
border-radius: 0.25rem;
|
|
327
|
-
margin-left: 0.5rem;
|
|
328
|
-
text-transform: uppercase;
|
|
329
|
-
letter-spacing: 0.025em;
|
|
330
|
-
vertical-align: middle;
|
|
331
|
-
}
|
|
@@ -2,4 +2,7 @@ export { default as ProposalTemplateSectionManager } from './ProposalTemplateSec
|
|
|
2
2
|
export { default as SectionEditor } from './SectionEditor';
|
|
3
3
|
export { default as SectionTypeSelector } from './SectionTypeSelector';
|
|
4
4
|
export { default as VariableInserter } from './VariableInserter';
|
|
5
|
-
export { default as ProposalTemplatePreview } from './ProposalTemplatePreview';
|
|
5
|
+
export { default as ProposalTemplatePreview } from './ProposalTemplatePreview';
|
|
6
|
+
export { default as AgreementSignatureEditor } from './AgreementSignatureEditor';
|
|
7
|
+
export { default as HeaderConfigEditor } from './HeaderConfigEditor';
|
|
8
|
+
export { default as BrandingProfileCompanyInfo } from './BrandingProfileCompanyInfo';
|
|
@@ -841,3 +841,107 @@
|
|
|
841
841
|
white-space: pre-wrap;
|
|
842
842
|
}
|
|
843
843
|
|
|
844
|
+
// Proposal dynamic container styles
|
|
845
|
+
.proposalDynamicContainer {
|
|
846
|
+
/* Create a completely isolated container */
|
|
847
|
+
contain: layout style;
|
|
848
|
+
isolation: isolate;
|
|
849
|
+
|
|
850
|
+
/* Reset all inherited styles */
|
|
851
|
+
all: initial;
|
|
852
|
+
|
|
853
|
+
/* Restore essential properties */
|
|
854
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
855
|
+
font-size: 14px;
|
|
856
|
+
line-height: 1.5;
|
|
857
|
+
color: #333;
|
|
858
|
+
|
|
859
|
+
/* Container constraints */
|
|
860
|
+
width: 100%;
|
|
861
|
+
max-width: 100%;
|
|
862
|
+
overflow: hidden;
|
|
863
|
+
overflow-wrap: break-word;
|
|
864
|
+
word-wrap: break-word;
|
|
865
|
+
|
|
866
|
+
/* Comprehensive reset for all child elements */
|
|
867
|
+
* {
|
|
868
|
+
box-sizing: border-box !important;
|
|
869
|
+
max-width: 100% !important;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* Typography reset */
|
|
873
|
+
h1, h2, h3, h4, h5, h6 {
|
|
874
|
+
font-size: 1.2em !important;
|
|
875
|
+
font-weight: bold !important;
|
|
876
|
+
margin: 0.5em 0 !important;
|
|
877
|
+
padding: 0 !important;
|
|
878
|
+
line-height: 1.3 !important;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
p, div, span {
|
|
882
|
+
margin: 0 0 0.5em 0 !important;
|
|
883
|
+
padding: 0 !important;
|
|
884
|
+
font-size: 14px !important;
|
|
885
|
+
line-height: 1.5 !important;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/* Table reset */
|
|
889
|
+
table {
|
|
890
|
+
max-width: 100% !important;
|
|
891
|
+
border-collapse: collapse !important;
|
|
892
|
+
font-size: 14px !important;
|
|
893
|
+
margin: 0.5em 0 !important;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
td, th {
|
|
897
|
+
padding: 0.25em 0.5em !important;
|
|
898
|
+
font-size: 14px !important;
|
|
899
|
+
line-height: 1.3 !important;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/* Image reset */
|
|
903
|
+
img {
|
|
904
|
+
max-width: 100% !important;
|
|
905
|
+
height: auto !important;
|
|
906
|
+
display: block !important;
|
|
907
|
+
margin: 0.5em 0 !important;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/* List reset */
|
|
911
|
+
ul, ol {
|
|
912
|
+
margin: 0.5em 0 !important;
|
|
913
|
+
padding-left: 1.5em !important;
|
|
914
|
+
font-size: 14px !important;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
li {
|
|
918
|
+
margin: 0.25em 0 !important;
|
|
919
|
+
font-size: 14px !important;
|
|
920
|
+
line-height: 1.4 !important;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* Link reset */
|
|
924
|
+
a {
|
|
925
|
+
color: #0066cc !important;
|
|
926
|
+
text-decoration: underline !important;
|
|
927
|
+
font-size: inherit !important;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/* Form element reset */
|
|
931
|
+
input, textarea, select, button {
|
|
932
|
+
font-size: 14px !important;
|
|
933
|
+
line-height: 1.3 !important;
|
|
934
|
+
margin: 0.25em 0 !important;
|
|
935
|
+
max-width: 100% !important;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/* Prevent any global CSS overrides */
|
|
939
|
+
&, & * {
|
|
940
|
+
transform: none !important;
|
|
941
|
+
position: static !important;
|
|
942
|
+
z-index: auto !important;
|
|
943
|
+
float: none !important;
|
|
944
|
+
clear: none !important;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
package/src/utils/urlBuilder.js
CHANGED
|
@@ -36,5 +36,9 @@ export const defaultProposalApiEndpoints = {
|
|
|
36
36
|
sectionsToggle: '/ajax/proposalTemplates/{templateId}/sections/{sectionId}',
|
|
37
37
|
|
|
38
38
|
// Branding profiles
|
|
39
|
-
brandingProfiles: '/ajax/brandingProfiles/dropdown'
|
|
39
|
+
brandingProfiles: '/ajax/brandingProfiles/dropdown',
|
|
40
|
+
|
|
41
|
+
// Agreement Signature Template management
|
|
42
|
+
agreementSignatureTemplate: '/ajax/proposalTemplates/{templateId}/agreement-signature',
|
|
43
|
+
agreementSignatureTemplateSave: '/ajax/proposalTemplates/{templateId}/agreement-signature'
|
|
40
44
|
};
|