bhl-forms 0.5.0 → 0.5.2
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 +3 -1
- package/dist/bhl-forms.iife.js +7 -7
- package/dist/bhl-forms.modern.es.js +3 -1
- package/dist/bhl-forms.modern.iife.js +10 -10
- package/dist/bhl-forms.modern.umd.js +10 -10
- package/dist/bhl-forms.umd.js +7 -7
- package/dist/forms/childAndFamilySingle.es.js +4 -4
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/generalLegal.es.js +57 -56
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +57 -54
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderTF.es.js +57 -54
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderTF.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +91 -86
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +57 -54
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/ssdi.es.js +1 -1
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testRedirects.es.js +57 -54
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -869,9 +869,21 @@ const nextStepsMapGeneralLegal = {
|
|
|
869
869
|
'*': nextStepsLegalDefault
|
|
870
870
|
};
|
|
871
871
|
|
|
872
|
+
// function filterMapByKey(obj, keyList) {
|
|
873
|
+
// return Object.fromEntries(
|
|
874
|
+
// Object.entries(obj).filter(([key]) => keyList.includes(key))
|
|
875
|
+
// );
|
|
876
|
+
// }
|
|
877
|
+
|
|
878
|
+
// export function filteredNextStepsMapLegal(keyList) {
|
|
879
|
+
// const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
|
|
880
|
+
// res["*"] = nextStepsMapGeneralLegal["*"]
|
|
881
|
+
// return res
|
|
882
|
+
// }
|
|
883
|
+
|
|
872
884
|
const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
|
|
873
885
|
|
|
874
|
-
|
|
886
|
+
({
|
|
875
887
|
'Civil_Defense': {
|
|
876
888
|
'Yes': TOLPNextSteps["Defend a Lawsuit"],
|
|
877
889
|
'No': TOLPNextSteps["File a Lawsuit"],
|
|
@@ -880,7 +892,7 @@ const nextStepsMapCivilDefense = {
|
|
|
880
892
|
'lawsuitOtherParty',
|
|
881
893
|
...nextStepsLegalDefault
|
|
882
894
|
]
|
|
883
|
-
};
|
|
895
|
+
});
|
|
884
896
|
|
|
885
897
|
const nextStepsMapCivilTOLPDisplay = {
|
|
886
898
|
'Type_Of_Legal_Problem_Display': {
|
|
@@ -1018,7 +1030,7 @@ const col2RadioCenter = (updates) => {
|
|
|
1018
1030
|
updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
|
|
1019
1031
|
updates.innerClass = 't-items-start';
|
|
1020
1032
|
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
1021
|
-
updates.optionClass = 't-pl-
|
|
1033
|
+
updates.optionClass = 't-pl-4 md:t-pl-8';
|
|
1022
1034
|
updates.messagesClass = 't-flex t-justify-center';
|
|
1023
1035
|
return radio(updates)
|
|
1024
1036
|
};
|
|
@@ -1050,7 +1062,7 @@ const vertical2ItemRadio = (updates) => {
|
|
|
1050
1062
|
updates.legendClass = 'legend-left';
|
|
1051
1063
|
updates.fieldsetClass = '$reset vertical t-items-center';
|
|
1052
1064
|
updates.optionsClass = 't-flex t-justify-center t-my-4';
|
|
1053
|
-
updates.optionClass = 'radiobtn t-mx-5';
|
|
1065
|
+
updates.optionClass = 'radiobtn t-mx-2 md:t-mx-5';
|
|
1054
1066
|
updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
|
|
1055
1067
|
updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
|
|
1056
1068
|
updates.decoratorIcon = false;
|
|
@@ -1069,7 +1081,7 @@ const verticalRadio = (updates) => {
|
|
|
1069
1081
|
updates.optionsClass = 't-pl-2 t-pt-3';
|
|
1070
1082
|
updates.innerClass = 't-items-center';
|
|
1071
1083
|
updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
|
|
1072
|
-
updates.optionClass = 't-pl-
|
|
1084
|
+
updates.optionClass = 't-pl-4 md:t-pl-12';
|
|
1073
1085
|
updates.messagesClass = 't-flex t-justify-center';
|
|
1074
1086
|
return radio(updates)
|
|
1075
1087
|
};
|
|
@@ -1099,7 +1111,7 @@ const verticalSelect = (updates) => {
|
|
|
1099
1111
|
updates.labelClass = 'required';
|
|
1100
1112
|
updates.wrapperClass = 't-flex t-justify-center';
|
|
1101
1113
|
updates.messagesClass = 't-flex t-justify-center';
|
|
1102
|
-
updates.inputClass = 't-min-w-[
|
|
1114
|
+
updates.inputClass = 't-min-w-[150px] t-bg-white';
|
|
1103
1115
|
updates.helpClass = 't-mt-2.5 t-text-center';
|
|
1104
1116
|
return select(updates)
|
|
1105
1117
|
};
|
|
@@ -1161,6 +1173,7 @@ const sbsDate = (updates) => {
|
|
|
1161
1173
|
const verticalDate = (updates) => {
|
|
1162
1174
|
updates.wrapperClass = 't-flex t-justify-center';
|
|
1163
1175
|
updates.inputClass = 't-text-center';
|
|
1176
|
+
updates.messagesClass = 't-flex t-justify-center';
|
|
1164
1177
|
return date(updates)
|
|
1165
1178
|
};
|
|
1166
1179
|
|
|
@@ -1363,15 +1376,6 @@ const causeOfDeathCenter = () => verticalSelect({
|
|
|
1363
1376
|
]
|
|
1364
1377
|
});
|
|
1365
1378
|
|
|
1366
|
-
const civilDefenseCenter = (updates) => vertical2ItemRadio(merge({
|
|
1367
|
-
name: 'Civil_Defense',
|
|
1368
|
-
id: 'Civil_Defense',
|
|
1369
|
-
options: {
|
|
1370
|
-
Yes: 'Defend a Lawsuit',
|
|
1371
|
-
No: 'File a Lawsuit'
|
|
1372
|
-
}
|
|
1373
|
-
}, updates));
|
|
1374
|
-
|
|
1375
1379
|
const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
|
|
1376
1380
|
name: 'Type_Of_Legal_Problem_Display',
|
|
1377
1381
|
options: [
|
|
@@ -1876,63 +1880,66 @@ const firstName = () => sbsText({
|
|
|
1876
1880
|
}
|
|
1877
1881
|
});
|
|
1878
1882
|
|
|
1883
|
+
const TOLPOptions = [
|
|
1884
|
+
'Adoption',
|
|
1885
|
+
'Asbestos and Mesothelioma',
|
|
1886
|
+
'Auto and Car Accidents',
|
|
1887
|
+
'Bankruptcy',
|
|
1888
|
+
'Birth Certificate and Name Change',
|
|
1889
|
+
'Business Lawyers',
|
|
1890
|
+
'Child Custody',
|
|
1891
|
+
'Child Support',
|
|
1892
|
+
'Civil Rights and Discrimination',
|
|
1893
|
+
'Consumer Lawyers',
|
|
1894
|
+
'Copyrights and Trademarks',
|
|
1895
|
+
'Criminal and Felony',
|
|
1896
|
+
'Debt and Collections',
|
|
1897
|
+
'Defend a Lawsuit',
|
|
1898
|
+
'Divorce and Separation',
|
|
1899
|
+
'DUI and DWI',
|
|
1900
|
+
'Elder Law',
|
|
1901
|
+
'Employment and Workplace',
|
|
1902
|
+
'Expungement',
|
|
1903
|
+
'Family Issues',
|
|
1904
|
+
'File a Lawsuit',
|
|
1905
|
+
'Foreclosure',
|
|
1906
|
+
'Guardianship',
|
|
1907
|
+
'Harassment and Discrimination',
|
|
1908
|
+
'Identity Theft',
|
|
1909
|
+
'Immigration and Visas',
|
|
1910
|
+
'Insurance',
|
|
1911
|
+
'Landlord and Tenant',
|
|
1912
|
+
'Lemon Law',
|
|
1913
|
+
'Long Term Disability',
|
|
1914
|
+
'Medical Malpractice',
|
|
1915
|
+
'Non-Workplace Discrimination',
|
|
1916
|
+
'Non-Workplace Harassment',
|
|
1917
|
+
'Patents and Intellectual Property',
|
|
1918
|
+
'Personal Injury',
|
|
1919
|
+
'Power of Attorney',
|
|
1920
|
+
'Probate and Estates',
|
|
1921
|
+
'Product Liability',
|
|
1922
|
+
'Property Damage',
|
|
1923
|
+
'Real Estate',
|
|
1924
|
+
'Sexual Harassment',
|
|
1925
|
+
'Social Security Disability and Insurance',
|
|
1926
|
+
'Tax and IRS',
|
|
1927
|
+
'Traffic and Tickets',
|
|
1928
|
+
'Unemployment',
|
|
1929
|
+
'Victim of a Crime',
|
|
1930
|
+
'Wills and Trusts',
|
|
1931
|
+
'Workers Compensation',
|
|
1932
|
+
'Workplace Discrimination',
|
|
1933
|
+
'Workplace Harassment',
|
|
1934
|
+
'Wrongful Death',
|
|
1935
|
+
'Wrongful Termination',
|
|
1936
|
+
'Not Sure or Other'
|
|
1937
|
+
];
|
|
1938
|
+
|
|
1879
1939
|
const generalTOLPCenter = (updates) => verticalSelect(merge({
|
|
1880
1940
|
name: 'Type_Of_Legal_Problem',
|
|
1881
1941
|
id: 'Type_Of_Legal_Problem',
|
|
1882
|
-
options:
|
|
1883
|
-
'Adoption',
|
|
1884
|
-
'Asbestos and Mesothelioma',
|
|
1885
|
-
'Auto and Car Accidents',
|
|
1886
|
-
'Bankruptcy',
|
|
1887
|
-
'Birth Certificate and Name Change',
|
|
1888
|
-
'Business Lawyers',
|
|
1889
|
-
'Child Custody',
|
|
1890
|
-
'Child Support',
|
|
1891
|
-
'Civil Rights and Discrimination',
|
|
1892
|
-
'Civil Lawsuit',
|
|
1893
|
-
'Consumer Lawyers',
|
|
1894
|
-
'Copyrights and Trademarks',
|
|
1895
|
-
'Criminal and Felony',
|
|
1896
|
-
'Debt and Collections',
|
|
1897
|
-
'Divorce and Separation',
|
|
1898
|
-
'DUI and DWI',
|
|
1899
|
-
'Elder Law',
|
|
1900
|
-
'Employment and Workplace',
|
|
1901
|
-
'Expungement',
|
|
1902
|
-
'Family Issues',
|
|
1903
|
-
'Foreclosure',
|
|
1904
|
-
'Guardianship',
|
|
1905
|
-
'Harassment and Discrimination',
|
|
1906
|
-
'Identity Theft',
|
|
1907
|
-
'Immigration and Visas',
|
|
1908
|
-
'Insurance',
|
|
1909
|
-
'Landlord and Tenant',
|
|
1910
|
-
'Lemon Law',
|
|
1911
|
-
'Long Term Disability',
|
|
1912
|
-
'Medical Malpractice',
|
|
1913
|
-
'Non-Workplace Discrimination',
|
|
1914
|
-
'Non-Workplace Harassment',
|
|
1915
|
-
'Patents and Intellectual Property',
|
|
1916
|
-
'Personal Injury',
|
|
1917
|
-
'Power of Attorney',
|
|
1918
|
-
'Probate and Estates',
|
|
1919
|
-
'Product Liability',
|
|
1920
|
-
'Property Damage',
|
|
1921
|
-
'Real Estate',
|
|
1922
|
-
'Sexual Harassment',
|
|
1923
|
-
'Social Security Disability and Insurance',
|
|
1924
|
-
'Tax and IRS',
|
|
1925
|
-
'Traffic and Tickets',
|
|
1926
|
-
'Unemployment',
|
|
1927
|
-
'Victim of a Crime',
|
|
1928
|
-
'Wills and Trusts',
|
|
1929
|
-
'Workers Compensation',
|
|
1930
|
-
'Workplace Discrimination',
|
|
1931
|
-
'Workplace Harassment',
|
|
1932
|
-
'Wrongful Death',
|
|
1933
|
-
'Wrongful Termination',
|
|
1934
|
-
'Not Sure or Other'
|
|
1935
|
-
]
|
|
1942
|
+
options: TOLPOptions,
|
|
1936
1943
|
}, updates));
|
|
1937
1944
|
|
|
1938
1945
|
const haveAttorney$1 = (scope) => sbsYesNoRadio({
|
|
@@ -3008,7 +3015,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
|
3008
3015
|
return step(
|
|
3009
3016
|
name,
|
|
3010
3017
|
[
|
|
3011
|
-
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline }),
|
|
3018
|
+
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
|
|
3012
3019
|
...Array.isArray(input) ? input : [input],
|
|
3013
3020
|
],
|
|
3014
3021
|
updates.nextOnEnter,
|
|
@@ -3267,7 +3274,7 @@ function generalTOLP(updates = {}) {
|
|
|
3267
3274
|
return step(
|
|
3268
3275
|
'generalTOLP',
|
|
3269
3276
|
[
|
|
3270
|
-
generalTOLPCenter(),
|
|
3277
|
+
generalTOLPCenter(updates.input),
|
|
3271
3278
|
],
|
|
3272
3279
|
updates.nextOnEnter,
|
|
3273
3280
|
updates.nextOnInput,
|
|
@@ -3294,16 +3301,6 @@ function maritalStatus(updates = {}) {
|
|
|
3294
3301
|
)
|
|
3295
3302
|
}
|
|
3296
3303
|
|
|
3297
|
-
function civilDefense(updates = {}) {
|
|
3298
|
-
return sqstep(
|
|
3299
|
-
'civilDefense',
|
|
3300
|
-
civilDefenseCenter(),
|
|
3301
|
-
// [inp.civilDefenseCenter(), inp.civilLawsuitTOLPDisplayCenter()],
|
|
3302
|
-
'Do you need to file or defend a lawsuit?',
|
|
3303
|
-
updates
|
|
3304
|
-
)
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
3304
|
function civilLawsuitTOLPDisplay(updates = {}) {
|
|
3308
3305
|
return sqstep(
|
|
3309
3306
|
'civilLawsuitTOLPDisplay',
|
|
@@ -3551,7 +3548,7 @@ function lawsuitOtherParty(updates = {}) {
|
|
|
3551
3548
|
return sqstep(
|
|
3552
3549
|
'lawsuitOtherParty',
|
|
3553
3550
|
lawsuitOtherPartyCenter(),
|
|
3554
|
-
'The other party is a:',
|
|
3551
|
+
'The other party in the lawsuit is a:',
|
|
3555
3552
|
updates
|
|
3556
3553
|
)
|
|
3557
3554
|
}
|
|
@@ -4135,7 +4132,14 @@ const schema = [
|
|
|
4135
4132
|
},
|
|
4136
4133
|
children: [
|
|
4137
4134
|
generalTOLP({
|
|
4138
|
-
|
|
4135
|
+
nextOnInput: false,
|
|
4136
|
+
nextStepMap: nextStepsMapGeneralLegal,
|
|
4137
|
+
headlineClass: 't-text-lg',
|
|
4138
|
+
input: {
|
|
4139
|
+
// TODO: move to common settings for this input?
|
|
4140
|
+
placeholder: 'Select a Category',
|
|
4141
|
+
innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
|
|
4142
|
+
}
|
|
4139
4143
|
}),
|
|
4140
4144
|
amountPaymentsPastDue(),
|
|
4141
4145
|
applicantAge(),
|
|
@@ -4156,9 +4160,10 @@ const schema = [
|
|
|
4156
4160
|
childHome(),
|
|
4157
4161
|
childPrimaryCaregiver(),
|
|
4158
4162
|
childRelationship(),
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4163
|
+
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4164
|
+
// steps.civilDefense({
|
|
4165
|
+
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4166
|
+
// }),
|
|
4162
4167
|
civilLawsuitTOLPDisplay({
|
|
4163
4168
|
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4164
4169
|
}),
|