bhl-forms 0.5.2 → 0.6.0
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.es.js +10921 -18520
- package/dist/bhl-forms.iife.js +11 -135
- package/dist/bhl-forms.modern.es.js +15257 -27608
- package/dist/bhl-forms.modern.iife.js +14 -138
- package/dist/bhl-forms.modern.umd.js +14 -138
- package/dist/bhl-forms.umd.js +11 -135
- package/dist/forms/accidentsAndInjuries.es.js +18 -2
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +3 -0
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/appraisals.json +1 -1
- package/dist/forms/childAndFamily.es.js +19 -3
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +19 -3
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +19 -3
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +3 -0
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/coins.json +1 -1
- package/dist/forms/contracts.es.js +15 -2
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +19 -3
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +18 -2
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalLegal.es.js +19 -3
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +19 -3
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +19 -3
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderTF.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +155 -126
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +19 -3
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +15 -2
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/malpractice.es.js +18 -2
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +6 -0
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/realEstate.es.js +19 -3
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +15 -2
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +12 -2
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +6 -2
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +9 -0
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +3 -0
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/vets.json +1 -1
- package/dist/forms/willsAndTrusts.es.js +19 -3
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +13 -12
|
@@ -959,6 +959,9 @@ const nextStepsMapRealEstateTOLPDisplay = {
|
|
|
959
959
|
// ------ Common Base Settings
|
|
960
960
|
|
|
961
961
|
const checkbox = (updates) => {
|
|
962
|
+
if (updates.name && !updates.id) {
|
|
963
|
+
updates.id = updates.name;
|
|
964
|
+
}
|
|
962
965
|
return merge({
|
|
963
966
|
$formkit: 'checkbox',
|
|
964
967
|
validation: 'required',
|
|
@@ -993,7 +996,7 @@ const col2Checkbox = (updates) => {
|
|
|
993
996
|
updates.legendClass = 'required';
|
|
994
997
|
}
|
|
995
998
|
updates.fieldsetClass = '$reset';
|
|
996
|
-
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
999
|
+
updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
997
1000
|
updates.innerClass = 't-items-start';
|
|
998
1001
|
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
999
1002
|
return checkbox(updates)
|
|
@@ -1013,6 +1016,9 @@ const verticalCol2Checkbox = (updates) => {
|
|
|
1013
1016
|
};
|
|
1014
1017
|
|
|
1015
1018
|
const radio = (updates) => {
|
|
1019
|
+
if (updates.name && !updates.id) {
|
|
1020
|
+
updates.id = updates.name;
|
|
1021
|
+
}
|
|
1016
1022
|
return merge({
|
|
1017
1023
|
$formkit: 'radio',
|
|
1018
1024
|
validation: 'required',
|
|
@@ -1087,6 +1093,9 @@ const verticalRadio = (updates) => {
|
|
|
1087
1093
|
};
|
|
1088
1094
|
|
|
1089
1095
|
const select = (updates) => {
|
|
1096
|
+
if (updates.name && !updates.id) {
|
|
1097
|
+
updates.id = updates.name;
|
|
1098
|
+
}
|
|
1090
1099
|
return merge({
|
|
1091
1100
|
$formkit: 'select',
|
|
1092
1101
|
placeholder: "Please Select",
|
|
@@ -1117,6 +1126,9 @@ const verticalSelect = (updates) => {
|
|
|
1117
1126
|
};
|
|
1118
1127
|
|
|
1119
1128
|
const text = (updates) => {
|
|
1129
|
+
if (updates.name && !updates.id) {
|
|
1130
|
+
updates.id = updates.name;
|
|
1131
|
+
}
|
|
1120
1132
|
return merge({
|
|
1121
1133
|
$formkit: 'text',
|
|
1122
1134
|
validation: 'required',
|
|
@@ -1140,6 +1152,9 @@ const verticalText = (updates) => {
|
|
|
1140
1152
|
};
|
|
1141
1153
|
|
|
1142
1154
|
const textArea = (updates) => {
|
|
1155
|
+
if (updates.name && !updates.id) {
|
|
1156
|
+
updates.id = updates.name;
|
|
1157
|
+
}
|
|
1143
1158
|
return merge({
|
|
1144
1159
|
$formkit: 'textarea',
|
|
1145
1160
|
rows: 5,
|
|
@@ -1154,6 +1169,9 @@ const textArea = (updates) => {
|
|
|
1154
1169
|
};
|
|
1155
1170
|
|
|
1156
1171
|
const date = (updates) => {
|
|
1172
|
+
if (updates.name && !updates.id) {
|
|
1173
|
+
updates.id = updates.name;
|
|
1174
|
+
}
|
|
1157
1175
|
return merge({
|
|
1158
1176
|
$formkit: 'DatePicker',
|
|
1159
1177
|
validation: 'required',
|
|
@@ -2964,8 +2982,6 @@ const TRUSTED_FORM_JS = `(function() {
|
|
|
2964
2982
|
function trustedFormScript() {
|
|
2965
2983
|
return {
|
|
2966
2984
|
$el: 'script',
|
|
2967
|
-
// if: '$activeStep === $lastStep() && $getKey($meta, "trustedFormTOLPs." + $get(Type_Of_Legal_Problem).value, false) == true',
|
|
2968
|
-
// Added everywhere:
|
|
2969
2985
|
if: '$activeStep === $lastStep()',
|
|
2970
2986
|
children: TRUSTED_FORM_JS
|
|
2971
2987
|
}
|
|
@@ -3548,7 +3564,7 @@ function lawsuitOtherParty(updates = {}) {
|
|
|
3548
3564
|
return sqstep(
|
|
3549
3565
|
'lawsuitOtherParty',
|
|
3550
3566
|
lawsuitOtherPartyCenter(),
|
|
3551
|
-
'
|
|
3567
|
+
'What best describes the other party in the lawsuit?',
|
|
3552
3568
|
updates
|
|
3553
3569
|
)
|
|
3554
3570
|
}
|
|
@@ -4107,8 +4123,134 @@ const formDetails = () => ({
|
|
|
4107
4123
|
]
|
|
4108
4124
|
});
|
|
4109
4125
|
|
|
4126
|
+
const meta = defaultMetaProps();
|
|
4127
|
+
|
|
4128
|
+
meta.data.dynamicSchema = [
|
|
4129
|
+
amountPaymentsPastDue(),
|
|
4130
|
+
applicantAge(),
|
|
4131
|
+
applicantDisabilityHowObtain(),
|
|
4132
|
+
applicantLTDisabilityPolicy(),
|
|
4133
|
+
applicantMonthlySalary(),
|
|
4134
|
+
applicantOccupation({
|
|
4135
|
+
nextOnInput: false
|
|
4136
|
+
}),
|
|
4137
|
+
applicantPreviouslyAppliedLtdBenefits(),
|
|
4138
|
+
applicantReceivedDisabilityBenefits(),
|
|
4139
|
+
atFault(),
|
|
4140
|
+
bloodContentAlcoholTest(),
|
|
4141
|
+
businessServices(),
|
|
4142
|
+
businessType(),
|
|
4143
|
+
causeOfDeath(),
|
|
4144
|
+
causeOfInjury(),
|
|
4145
|
+
childHome(),
|
|
4146
|
+
childPrimaryCaregiver(),
|
|
4147
|
+
childRelationship(),
|
|
4148
|
+
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4149
|
+
// steps.civilDefense({
|
|
4150
|
+
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4151
|
+
// }),
|
|
4152
|
+
civilLawsuitTOLPDisplay({
|
|
4153
|
+
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4154
|
+
}),
|
|
4155
|
+
civilRightsType(),
|
|
4156
|
+
claimStatus(),
|
|
4157
|
+
consumerLawyerType(),
|
|
4158
|
+
countryOfCitizenship(),
|
|
4159
|
+
crimeCommittedDate({
|
|
4160
|
+
nextOnInput: false
|
|
4161
|
+
}),
|
|
4162
|
+
criminalChargeType(),
|
|
4163
|
+
criminalChargesFiled(),
|
|
4164
|
+
criminalTOLPDisplay({
|
|
4165
|
+
nextStepMap: nextStepsMapCriminalTOLPDisplay
|
|
4166
|
+
}),
|
|
4167
|
+
defaultNotice(),
|
|
4168
|
+
degreeOfInterest(),
|
|
4169
|
+
disabilityConditionStopWork(),
|
|
4170
|
+
disabilityWorkHistory(),
|
|
4171
|
+
doctorTreatment(),
|
|
4172
|
+
driversLicenseType(),
|
|
4173
|
+
estateLegalServicesNeeded(),
|
|
4174
|
+
employerType(),
|
|
4175
|
+
employmentAndWorkplaceTOLPDisplay({
|
|
4176
|
+
nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
|
|
4177
|
+
}),
|
|
4178
|
+
haveAttorney(),
|
|
4179
|
+
haveChildren(),
|
|
4180
|
+
haveCourtDate(),
|
|
4181
|
+
immigrationDetails(),
|
|
4182
|
+
immigrationEntry(),
|
|
4183
|
+
immigrationLocation(),
|
|
4184
|
+
immigrationStatus(),
|
|
4185
|
+
immigrationType(),
|
|
4186
|
+
incidentDate({
|
|
4187
|
+
nextOnInput: false
|
|
4188
|
+
}),
|
|
4189
|
+
landlordTenantIssue(),
|
|
4190
|
+
landlordTenantParty(),
|
|
4191
|
+
lawsuitOtherParty(),
|
|
4192
|
+
lawyerPaymentMethod(),
|
|
4193
|
+
loanAmount(),
|
|
4194
|
+
maritalStatus(),
|
|
4195
|
+
medicalMalpracticeInjuries(),
|
|
4196
|
+
numEmployeesOfBusiness(),
|
|
4197
|
+
ownRealEstate(),
|
|
4198
|
+
patentAssistanceType(),
|
|
4199
|
+
patentFor(),
|
|
4200
|
+
pendingCharges(),
|
|
4201
|
+
policeReportFiled(),
|
|
4202
|
+
primaryInjury(),
|
|
4203
|
+
priorAlcoholOffenses(),
|
|
4204
|
+
realEstateArea(),
|
|
4205
|
+
realEstateTOLPDisplay({
|
|
4206
|
+
nextStepMap: nextStepsMapRealEstateTOLPDisplay
|
|
4207
|
+
}),
|
|
4208
|
+
relationshipToVictim(),
|
|
4209
|
+
roleInMatterCriminal(),
|
|
4210
|
+
roleInMatterProbate(),
|
|
4211
|
+
socialSecurityDisabilityReceivingBenefits(),
|
|
4212
|
+
taxIssueType(),
|
|
4213
|
+
taxLevel(),
|
|
4214
|
+
taxProblemDetails(),
|
|
4215
|
+
totalDebt(),
|
|
4216
|
+
totalMonthlyIncome(),
|
|
4217
|
+
trafficViolations(),
|
|
4218
|
+
typeOfAlcoholTest(),
|
|
4219
|
+
typeOfAssets(),
|
|
4220
|
+
typeOfProperty(),
|
|
4221
|
+
valueOfAssets(),
|
|
4222
|
+
veteransDisabilityApplied(),
|
|
4223
|
+
veteransDisabilityConditions(),
|
|
4224
|
+
veteransDisabilityInjured(),
|
|
4225
|
+
veteransDisabilityRelationship(),
|
|
4226
|
+
wouldLikeLawyerTo(),
|
|
4227
|
+
zipcode(),
|
|
4228
|
+
commentsWithBankruptcyV2({
|
|
4229
|
+
nextOnEnter: false,
|
|
4230
|
+
label: null,
|
|
4231
|
+
headline: 'Please briefly describe your situation:',
|
|
4232
|
+
headlineClass: '!t-text-dark',
|
|
4233
|
+
inputClass: '!t-h-32'
|
|
4234
|
+
}),
|
|
4235
|
+
legalCrossSells({
|
|
4236
|
+
headlineClass: '!t-text-dark'
|
|
4237
|
+
}),
|
|
4238
|
+
autoAndCarAccidentCrossSellQuestions(),
|
|
4239
|
+
personalInjuryCrossSellQuestions(),
|
|
4240
|
+
workersCompensationCrossSellQuestions(),
|
|
4241
|
+
duiAndDWICrossSellQuestions(),
|
|
4242
|
+
ssdiCrossSellQuestions(),
|
|
4243
|
+
powerOfAttorneyCrossSellQuestions(),
|
|
4244
|
+
willsAndTrustsCrossSellQuestions(),
|
|
4245
|
+
divorceAndSeparationCrossSellQuestions(),
|
|
4246
|
+
childCustodyCrossSellQuestions(),
|
|
4247
|
+
firstAndLastV2({
|
|
4248
|
+
headlineClass: '!t-text-dark'
|
|
4249
|
+
}),
|
|
4250
|
+
];
|
|
4251
|
+
|
|
4110
4252
|
const schema = [
|
|
4111
|
-
|
|
4253
|
+
meta,
|
|
4112
4254
|
formAnchor(),
|
|
4113
4255
|
{
|
|
4114
4256
|
$cmp: 'FormKit',
|
|
@@ -4141,127 +4283,14 @@ const schema = [
|
|
|
4141
4283
|
innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
|
|
4142
4284
|
}
|
|
4143
4285
|
}),
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
}
|
|
4152
|
-
applicantPreviouslyAppliedLtdBenefits(),
|
|
4153
|
-
applicantReceivedDisabilityBenefits(),
|
|
4154
|
-
atFault(),
|
|
4155
|
-
bloodContentAlcoholTest(),
|
|
4156
|
-
businessServices(),
|
|
4157
|
-
businessType(),
|
|
4158
|
-
causeOfDeath(),
|
|
4159
|
-
causeOfInjury(),
|
|
4160
|
-
childHome(),
|
|
4161
|
-
childPrimaryCaregiver(),
|
|
4162
|
-
childRelationship(),
|
|
4163
|
-
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4164
|
-
// steps.civilDefense({
|
|
4165
|
-
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4166
|
-
// }),
|
|
4167
|
-
civilLawsuitTOLPDisplay({
|
|
4168
|
-
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4169
|
-
}),
|
|
4170
|
-
civilRightsType(),
|
|
4171
|
-
claimStatus(),
|
|
4172
|
-
consumerLawyerType(),
|
|
4173
|
-
countryOfCitizenship(),
|
|
4174
|
-
crimeCommittedDate({
|
|
4175
|
-
nextOnInput: false
|
|
4176
|
-
}),
|
|
4177
|
-
criminalChargeType(),
|
|
4178
|
-
criminalChargesFiled(),
|
|
4179
|
-
criminalTOLPDisplay({
|
|
4180
|
-
nextStepMap: nextStepsMapCriminalTOLPDisplay
|
|
4181
|
-
}),
|
|
4182
|
-
defaultNotice(),
|
|
4183
|
-
degreeOfInterest(),
|
|
4184
|
-
disabilityConditionStopWork(),
|
|
4185
|
-
disabilityWorkHistory(),
|
|
4186
|
-
doctorTreatment(),
|
|
4187
|
-
driversLicenseType(),
|
|
4188
|
-
estateLegalServicesNeeded(),
|
|
4189
|
-
employerType(),
|
|
4190
|
-
employmentAndWorkplaceTOLPDisplay({
|
|
4191
|
-
nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
|
|
4192
|
-
}),
|
|
4193
|
-
haveAttorney(),
|
|
4194
|
-
haveChildren(),
|
|
4195
|
-
haveCourtDate(),
|
|
4196
|
-
immigrationDetails(),
|
|
4197
|
-
immigrationEntry(),
|
|
4198
|
-
immigrationLocation(),
|
|
4199
|
-
immigrationStatus(),
|
|
4200
|
-
immigrationType(),
|
|
4201
|
-
incidentDate({
|
|
4202
|
-
nextOnInput: false
|
|
4203
|
-
}),
|
|
4204
|
-
landlordTenantIssue(),
|
|
4205
|
-
landlordTenantParty(),
|
|
4206
|
-
lawsuitOtherParty(),
|
|
4207
|
-
lawyerPaymentMethod(),
|
|
4208
|
-
loanAmount(),
|
|
4209
|
-
maritalStatus(),
|
|
4210
|
-
medicalMalpracticeInjuries(),
|
|
4211
|
-
numEmployeesOfBusiness(),
|
|
4212
|
-
ownRealEstate(),
|
|
4213
|
-
patentAssistanceType(),
|
|
4214
|
-
patentFor(),
|
|
4215
|
-
pendingCharges(),
|
|
4216
|
-
policeReportFiled(),
|
|
4217
|
-
primaryInjury(),
|
|
4218
|
-
priorAlcoholOffenses(),
|
|
4219
|
-
realEstateArea(),
|
|
4220
|
-
realEstateTOLPDisplay({
|
|
4221
|
-
nextStepMap: nextStepsMapRealEstateTOLPDisplay
|
|
4222
|
-
}),
|
|
4223
|
-
relationshipToVictim(),
|
|
4224
|
-
roleInMatterCriminal(),
|
|
4225
|
-
roleInMatterProbate(),
|
|
4226
|
-
socialSecurityDisabilityReceivingBenefits(),
|
|
4227
|
-
taxIssueType(),
|
|
4228
|
-
taxLevel(),
|
|
4229
|
-
taxProblemDetails(),
|
|
4230
|
-
totalDebt(),
|
|
4231
|
-
totalMonthlyIncome(),
|
|
4232
|
-
trafficViolations(),
|
|
4233
|
-
typeOfAlcoholTest(),
|
|
4234
|
-
typeOfAssets(),
|
|
4235
|
-
typeOfProperty(),
|
|
4236
|
-
valueOfAssets(),
|
|
4237
|
-
veteransDisabilityApplied(),
|
|
4238
|
-
veteransDisabilityConditions(),
|
|
4239
|
-
veteransDisabilityInjured(),
|
|
4240
|
-
veteransDisabilityRelationship(),
|
|
4241
|
-
wouldLikeLawyerTo(),
|
|
4242
|
-
zipcode(),
|
|
4243
|
-
commentsWithBankruptcyV2({
|
|
4244
|
-
nextOnEnter: false,
|
|
4245
|
-
label: null,
|
|
4246
|
-
headline: 'Please briefly describe your situation:',
|
|
4247
|
-
headlineClass: '!t-text-dark',
|
|
4248
|
-
inputClass: '!t-h-32'
|
|
4249
|
-
}),
|
|
4250
|
-
legalCrossSells({
|
|
4251
|
-
headlineClass: '!t-text-dark'
|
|
4252
|
-
}),
|
|
4253
|
-
autoAndCarAccidentCrossSellQuestions(),
|
|
4254
|
-
personalInjuryCrossSellQuestions(),
|
|
4255
|
-
workersCompensationCrossSellQuestions(),
|
|
4256
|
-
duiAndDWICrossSellQuestions(),
|
|
4257
|
-
ssdiCrossSellQuestions(),
|
|
4258
|
-
powerOfAttorneyCrossSellQuestions(),
|
|
4259
|
-
willsAndTrustsCrossSellQuestions(),
|
|
4260
|
-
divorceAndSeparationCrossSellQuestions(),
|
|
4261
|
-
childCustodyCrossSellQuestions(),
|
|
4262
|
-
firstAndLastV2({
|
|
4263
|
-
headlineClass: '!t-text-dark'
|
|
4264
|
-
}),
|
|
4286
|
+
{
|
|
4287
|
+
$cmp: 'FormKitSchema',
|
|
4288
|
+
if: '$get(Type_Of_Legal_Problem).value',
|
|
4289
|
+
props: {
|
|
4290
|
+
schema: '$meta.dynamicSchema',
|
|
4291
|
+
data: '$buildData($meta)'
|
|
4292
|
+
}
|
|
4293
|
+
},
|
|
4265
4294
|
contactInfoV2({
|
|
4266
4295
|
nextOnEnter: false
|
|
4267
4296
|
}),
|