bhl-forms 0.6.10 → 0.6.12
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/dist/bhl-forms.iife.js +1 -1
- package/dist/bhl-forms.modern.iife.js +7 -7
- package/dist/bhl-forms.modern.umd.js +1 -1
- package/dist/bhl-forms.umd.js +1 -1
- package/dist/forms/accidentsAndInjuries.es.js +29 -28
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/business.es.js +38 -36
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +29 -28
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.es.js +38 -36
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +45 -43
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/contracts.es.js +29 -28
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/criminal.es.js +39 -37
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +38 -36
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +44 -42
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +29 -28
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +29 -28
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +45 -43
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +45 -43
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +19 -20
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +29 -28
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/landlordTenant.es.js +38 -36
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +29 -28
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/mechanics.es.js +824 -34
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +38 -36
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +29 -28
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/repossession.es.js +29 -28
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/ssdi.es.js +25 -25
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +18 -19
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testRedirects.es.js +8 -2
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +29 -28
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -128,7 +128,7 @@ const sbsYesNoRadio = (updates) => {
|
|
|
128
128
|
|
|
129
129
|
const verticalButtonRadio = (updates) => {
|
|
130
130
|
updates.legendClass = 'legend-left';
|
|
131
|
-
updates.fieldsetClass = '$reset t-flex t-justify-center t-items-center';
|
|
131
|
+
updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
|
|
132
132
|
if (typeof updates.optionsClass === 'undefined') {
|
|
133
133
|
updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
|
|
134
134
|
}
|
|
@@ -137,6 +137,7 @@ const verticalButtonRadio = (updates) => {
|
|
|
137
137
|
updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
|
|
138
138
|
updates.decoratorIcon = false;
|
|
139
139
|
updates.messagesClass = 't-flex t-justify-center';
|
|
140
|
+
updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
|
|
140
141
|
return radio(updates)
|
|
141
142
|
};
|
|
142
143
|
|
|
@@ -874,8 +875,8 @@ const doctorTreatment$1 = (scope) => sbsYesNoRadio({
|
|
|
874
875
|
label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
|
|
875
876
|
});
|
|
876
877
|
|
|
877
|
-
const doctorTreatmentCenter = () => verticalYesNoRadio({
|
|
878
|
-
name: 'Doctor_Treatment',
|
|
878
|
+
const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
|
|
879
|
+
name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
|
|
879
880
|
});
|
|
880
881
|
|
|
881
882
|
const driversLicenseTypeCenter = () => verticalButtonRadio({
|
|
@@ -886,9 +887,9 @@ const driversLicenseTypeCenter = () => verticalButtonRadio({
|
|
|
886
887
|
]
|
|
887
888
|
});
|
|
888
889
|
|
|
889
|
-
const email = () => sbsText({
|
|
890
|
+
const email = (scope) => sbsText({
|
|
890
891
|
$formkit: 'email',
|
|
891
|
-
name: 'Email',
|
|
892
|
+
name: scope ? scope + ':' + 'Email' : 'Email',
|
|
892
893
|
label: 'Email Address:',
|
|
893
894
|
placeholder: 'email@domain.com',
|
|
894
895
|
autocomplete: 'email',
|
|
@@ -956,11 +957,11 @@ const estateLegalServicesNeededCenter = (scope) => col2RadioCenter({
|
|
|
956
957
|
]
|
|
957
958
|
});
|
|
958
959
|
|
|
959
|
-
const firstName = () => sbsText({
|
|
960
|
+
const firstName = (scope) => sbsText({
|
|
960
961
|
$formkit: 'text',
|
|
961
962
|
label: 'First Name:',
|
|
962
963
|
placeholder: 'First',
|
|
963
|
-
name: 'First_Name',
|
|
964
|
+
name: scope ? scope + ':' + 'First_Name' : 'First_Name',
|
|
964
965
|
autocomplete: "given-name",
|
|
965
966
|
validationMessages: {
|
|
966
967
|
required: 'First Name is required'
|
|
@@ -1034,8 +1035,8 @@ const haveAttorney$1 = (scope) => sbsYesNoRadio({
|
|
|
1034
1035
|
label: 'Already Working with An Attorney?'
|
|
1035
1036
|
});
|
|
1036
1037
|
|
|
1037
|
-
const haveAttorneyCenter = () => verticalYesNoRadio({
|
|
1038
|
-
name: 'Have_Attorney',
|
|
1038
|
+
const haveAttorneyCenter = (scope) => verticalYesNoRadio({
|
|
1039
|
+
name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
|
|
1039
1040
|
});
|
|
1040
1041
|
|
|
1041
1042
|
const haveChildren$1 = (scope) => sbsYesNoRadio({
|
|
@@ -1119,11 +1120,11 @@ const incidentDateCenter = (scope) => verticalDate({
|
|
|
1119
1120
|
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
1120
1121
|
});
|
|
1121
1122
|
|
|
1122
|
-
const lastName = () => sbsText({
|
|
1123
|
+
const lastName = (scope) => sbsText({
|
|
1123
1124
|
$formkit: 'text',
|
|
1124
1125
|
label: 'Last Name:',
|
|
1125
1126
|
placeholder: 'Last',
|
|
1126
|
-
name: 'Last_Name',
|
|
1127
|
+
name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
|
|
1127
1128
|
autocomplete: "family-name",
|
|
1128
1129
|
validationMessages: {
|
|
1129
1130
|
required: 'Last Name is required'
|
|
@@ -1364,9 +1365,9 @@ const pendingChargesCenter = (scope) => verticalYesNoRadio({
|
|
|
1364
1365
|
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
1365
1366
|
});
|
|
1366
1367
|
|
|
1367
|
-
const phone = () => sbsText({
|
|
1368
|
+
const phone = (scope) => sbsText({
|
|
1368
1369
|
$formkit: 'tel',
|
|
1369
|
-
name: 'Primary_Phone',
|
|
1370
|
+
name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
|
|
1370
1371
|
label: 'Phone Number:',
|
|
1371
1372
|
placeholder: '###-###-####',
|
|
1372
1373
|
maxlength: 12,
|
|
@@ -1568,10 +1569,10 @@ const totalMonthlyIncomeCenter = () => verticalSelect({
|
|
|
1568
1569
|
]
|
|
1569
1570
|
});
|
|
1570
1571
|
|
|
1571
|
-
const TCPAConsent = () => ({
|
|
1572
|
+
const TCPAConsent = (scope) => ({
|
|
1572
1573
|
$formkit: 'checkbox',
|
|
1573
1574
|
label: '$meta.tcpaLanguage',
|
|
1574
|
-
name: 'TCPA_Opt_In',
|
|
1575
|
+
name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
|
|
1575
1576
|
'data-tf-sensitive': 'false',
|
|
1576
1577
|
validation: 'required|accepted',
|
|
1577
1578
|
validationMessages: {
|
|
@@ -1747,10 +1748,10 @@ const wouldLikeLawyerToCenter = () => verticalRadio({
|
|
|
1747
1748
|
]
|
|
1748
1749
|
});
|
|
1749
1750
|
|
|
1750
|
-
const zipcodeCenter = (updates = {}) => text({
|
|
1751
|
+
const zipcodeCenter = (updates = {}, scope) => text({
|
|
1751
1752
|
placeholder: '#####',
|
|
1752
1753
|
help: updates.help ?? "We try to match you with local legal help",
|
|
1753
|
-
name: 'Zip',
|
|
1754
|
+
name: scope ? scope + ':' + 'Zip' : 'Zip',
|
|
1754
1755
|
maxlength: 5,
|
|
1755
1756
|
inputmode: "numeric",
|
|
1756
1757
|
autocomplete: 'postal-code',
|
|
@@ -2164,7 +2165,8 @@ function commentsWithBankruptcy(updates = {}) {
|
|
|
2164
2165
|
label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
|
|
2165
2166
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
|
|
2166
2167
|
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
2167
|
-
}),
|
|
2168
|
+
}, updates.scope),
|
|
2169
|
+
// TODO: needs scope support
|
|
2168
2170
|
bankruptcyCrossSell(),
|
|
2169
2171
|
{
|
|
2170
2172
|
$el: 'div',
|
|
@@ -2189,16 +2191,16 @@ function contactInfo(updates = {}) {
|
|
|
2189
2191
|
contactStepHeadline(updates),
|
|
2190
2192
|
contactStepSubHeadline(updates),
|
|
2191
2193
|
trustedFormScript(),
|
|
2192
|
-
email(),
|
|
2193
|
-
phone(),
|
|
2194
|
-
TCPAConsent(),
|
|
2194
|
+
email(updates.scope),
|
|
2195
|
+
phone(updates.scope),
|
|
2196
|
+
TCPAConsent(updates.scope),
|
|
2195
2197
|
secureIcon()
|
|
2196
2198
|
],
|
|
2197
2199
|
false, // nextOnEnter
|
|
2198
2200
|
)
|
|
2199
2201
|
}
|
|
2200
2202
|
|
|
2201
|
-
function firstAndLastV3(updates = {}) {
|
|
2203
|
+
function firstAndLastV3(updates = {}, scope) {
|
|
2202
2204
|
return step(
|
|
2203
2205
|
'firstAndLast',
|
|
2204
2206
|
[
|
|
@@ -2210,8 +2212,8 @@ function firstAndLastV3(updates = {}) {
|
|
|
2210
2212
|
subheadline: updates.subheadline ?? 'Note: we never share info without consent',
|
|
2211
2213
|
subheadlineClass: '!t-text-sm !t-text-gray-500'
|
|
2212
2214
|
}),
|
|
2213
|
-
firstName(),
|
|
2214
|
-
lastName()
|
|
2215
|
+
firstName(scope),
|
|
2216
|
+
lastName(scope)
|
|
2215
2217
|
],
|
|
2216
2218
|
updates.nextOnEnter
|
|
2217
2219
|
)
|
|
@@ -2423,7 +2425,7 @@ function generalTOLP(updates = {}) {
|
|
|
2423
2425
|
function zipcode(updates = {}) {
|
|
2424
2426
|
return sqstep(
|
|
2425
2427
|
'zipcode',
|
|
2426
|
-
zipcodeCenter(updates),
|
|
2428
|
+
zipcodeCenter(updates, updates.scope),
|
|
2427
2429
|
'Please verify your Zip Code',
|
|
2428
2430
|
updates
|
|
2429
2431
|
)
|
|
@@ -2522,7 +2524,7 @@ function childPrimaryCaregiver(updates = {}) {
|
|
|
2522
2524
|
function haveAttorney(updates = {}) {
|
|
2523
2525
|
return sqstep(
|
|
2524
2526
|
'haveAttorney',
|
|
2525
|
-
haveAttorneyCenter(),
|
|
2527
|
+
haveAttorneyCenter(updates.scope),
|
|
2526
2528
|
'Already working with an attorney?',
|
|
2527
2529
|
updates
|
|
2528
2530
|
)
|
|
@@ -2549,7 +2551,7 @@ function lawyerPaymentMethod(updates = {}) {
|
|
|
2549
2551
|
function incidentDate(updates = {}) {
|
|
2550
2552
|
return sqstep(
|
|
2551
2553
|
'incidentDate',
|
|
2552
|
-
incidentDateCenter(),
|
|
2554
|
+
incidentDateCenter(updates.scope),
|
|
2553
2555
|
'When did the incident occur?',
|
|
2554
2556
|
updates
|
|
2555
2557
|
)
|
|
@@ -2558,7 +2560,7 @@ function incidentDate(updates = {}) {
|
|
|
2558
2560
|
function doctorTreatment(updates = {}) {
|
|
2559
2561
|
return sqstep(
|
|
2560
2562
|
'doctorTreatment',
|
|
2561
|
-
doctorTreatmentCenter(),
|
|
2563
|
+
doctorTreatmentCenter(updates.scope),
|
|
2562
2564
|
'Have you seen a doctor about this?',
|
|
2563
2565
|
updates
|
|
2564
2566
|
)
|
|
@@ -2576,7 +2578,7 @@ function medicalMalpracticeInjuries(updates = {}) {
|
|
|
2576
2578
|
function atFault(updates = {}) {
|
|
2577
2579
|
return sqstep(
|
|
2578
2580
|
'atFault',
|
|
2579
|
-
atFaultCenter(),
|
|
2581
|
+
atFaultCenter(updates.scope),
|
|
2580
2582
|
'Were you at fault?',
|
|
2581
2583
|
updates
|
|
2582
2584
|
)
|
|
@@ -2585,7 +2587,7 @@ function atFault(updates = {}) {
|
|
|
2585
2587
|
function primaryInjury(updates = {}) {
|
|
2586
2588
|
return sqstep(
|
|
2587
2589
|
'primaryInjury',
|
|
2588
|
-
primaryInjuryCenter(),
|
|
2590
|
+
primaryInjuryCenter(updates.scope),
|
|
2589
2591
|
'What was the primary injury?',
|
|
2590
2592
|
updates
|
|
2591
2593
|
)
|
|
@@ -2594,7 +2596,7 @@ function primaryInjury(updates = {}) {
|
|
|
2594
2596
|
function policeReportFiled(updates = {}) {
|
|
2595
2597
|
return sqstep(
|
|
2596
2598
|
'policeReportFiled',
|
|
2597
|
-
policeReportFiledCenter(),
|
|
2599
|
+
policeReportFiledCenter(updates.scope),
|
|
2598
2600
|
'Was a police report filed?',
|
|
2599
2601
|
updates
|
|
2600
2602
|
)
|
|
@@ -3161,9 +3163,7 @@ function criminalChargesFiled(updates = {}) {
|
|
|
3161
3163
|
)
|
|
3162
3164
|
}
|
|
3163
3165
|
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
const formNavigation = () => ({
|
|
3166
|
+
const formNavigation = (updates = {}) => ({
|
|
3167
3167
|
$el: 'div',
|
|
3168
3168
|
attrs: {
|
|
3169
3169
|
class: 'step-nav'
|
|
@@ -3201,7 +3201,7 @@ const formNavigation = () => ({
|
|
|
3201
3201
|
{
|
|
3202
3202
|
$formkit: 'submit',
|
|
3203
3203
|
name: 'submit_button',
|
|
3204
|
-
label: 'Submit',
|
|
3204
|
+
label: updates.submitLabel || 'Submit',
|
|
3205
3205
|
if: '$activeStep === $lastStep()',
|
|
3206
3206
|
style: {
|
|
3207
3207
|
if: '$activeStep !== $lastStep()',
|
|
@@ -3336,14 +3336,16 @@ function defaultMetaProps(tolps = null) {
|
|
|
3336
3336
|
})
|
|
3337
3337
|
}
|
|
3338
3338
|
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3339
|
+
function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
|
|
3340
|
+
return {
|
|
3341
|
+
$cmp: 'FormKitSchema',
|
|
3342
|
+
if: '$get(' + field + ').value',
|
|
3343
|
+
props: {
|
|
3344
|
+
schema: '$meta.dynamicSchema',
|
|
3345
|
+
data: '$buildData($meta)'
|
|
3346
|
+
}
|
|
3345
3347
|
}
|
|
3346
|
-
}
|
|
3348
|
+
}
|
|
3347
3349
|
|
|
3348
3350
|
const formAnchorDefaults = {
|
|
3349
3351
|
$el: 'div',
|
|
@@ -4438,7 +4440,7 @@ const schema = [
|
|
|
4438
4440
|
innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
|
|
4439
4441
|
}
|
|
4440
4442
|
}),
|
|
4441
|
-
dynamicSchemaNode,
|
|
4443
|
+
dynamicSchemaNode(),
|
|
4442
4444
|
contactInfo(),
|
|
4443
4445
|
formNavigation(),
|
|
4444
4446
|
formDetails()
|