bhl-forms 0.0.82 → 0.0.84
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 +20 -7
- package/dist/bhl-forms.iife.js +6 -6
- package/dist/bhl-forms.modern.es.js +59 -46
- package/dist/bhl-forms.modern.iife.js +9 -9
- package/dist/bhl-forms.modern.umd.js +9 -9
- package/dist/bhl-forms.umd.js +6 -6
- package/dist/forms/childAndFamily.es.js +4 -4
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/civilLawsuit.es.js +6 -6
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/criminal.es.js +6 -6
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/generalLegal.es.js +6 -6
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +9 -84
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/{generalLegalBankruptcy.es.js → generalLegalPopUnderTF.es.js} +86 -10
- package/dist/forms/generalLegalPopUnderTF.iife.js +1 -0
- package/dist/forms/generalLegalPopUnderTF.json +1 -0
- package/dist/forms/realEstate.es.js +6 -6
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/testForm.es.js +1 -1
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +2 -2
- package/dist/forms/generalLegalBankruptcy.iife.js +0 -1
- package/dist/forms/generalLegalBankruptcy.json +0 -1
package/dist/bhl-forms.es.js
CHANGED
|
@@ -4675,6 +4675,9 @@ function dbg$1() {
|
|
|
4675
4675
|
return;
|
|
4676
4676
|
console.debug(...arguments);
|
|
4677
4677
|
}
|
|
4678
|
+
const sleep = (time) => __async(this, null, function* () {
|
|
4679
|
+
return new Promise((resolve2) => setTimeout(resolve2, time));
|
|
4680
|
+
});
|
|
4678
4681
|
const getCoords$1 = (elem) => {
|
|
4679
4682
|
let box2 = elem.getBoundingClientRect();
|
|
4680
4683
|
return {
|
|
@@ -5956,8 +5959,10 @@ const dataDefaults = {
|
|
|
5956
5959
|
redirect = strSubUrl(redirect, formData);
|
|
5957
5960
|
}
|
|
5958
5961
|
redirectTo(redirect);
|
|
5962
|
+
yield sleep(2e3);
|
|
5959
5963
|
} else if (redirect) {
|
|
5960
|
-
|
|
5964
|
+
redirect(formData, node);
|
|
5965
|
+
yield sleep(2e3);
|
|
5961
5966
|
}
|
|
5962
5967
|
}),
|
|
5963
5968
|
stringify: (value) => JSON.stringify(value, null, 2)
|
|
@@ -11344,7 +11349,7 @@ const doRedirect = (redirectUrl, newTabUrl) => {
|
|
|
11344
11349
|
dbg("redirect:", redirectUrl, "newTab:", newTabUrl);
|
|
11345
11350
|
redirectTo(redirectUrl);
|
|
11346
11351
|
};
|
|
11347
|
-
const handleRedirect = (formData, node) =>
|
|
11352
|
+
const handleRedirect = (formData, node) => {
|
|
11348
11353
|
try {
|
|
11349
11354
|
var redirectUrl = getRedirect(formData, node);
|
|
11350
11355
|
if (redirectUrl && redirectUrl !== "null") {
|
|
@@ -11363,7 +11368,6 @@ const handleRedirect = (formData, node) => __async(this, null, function* () {
|
|
|
11363
11368
|
} else {
|
|
11364
11369
|
doRedirect(redirectUrl, null);
|
|
11365
11370
|
}
|
|
11366
|
-
yield new Promise((resolve2) => setTimeout(resolve2, 2e3));
|
|
11367
11371
|
} else {
|
|
11368
11372
|
rollbar("warning", "No redirectUrl found");
|
|
11369
11373
|
}
|
|
@@ -11372,7 +11376,7 @@ const handleRedirect = (formData, node) => __async(this, null, function* () {
|
|
|
11372
11376
|
console.warn(msg);
|
|
11373
11377
|
rollbar("warning", msg);
|
|
11374
11378
|
}
|
|
11375
|
-
}
|
|
11379
|
+
};
|
|
11376
11380
|
const textClassification = {
|
|
11377
11381
|
label: "t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
|
|
11378
11382
|
inner: `
|
|
@@ -11404,7 +11408,7 @@ const checkBoxClassification = {
|
|
|
11404
11408
|
};
|
|
11405
11409
|
const buttonClassification = {
|
|
11406
11410
|
wrapper: "t-mb-1",
|
|
11407
|
-
input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-xl t-font-normal t-py-4 t-px-9 sm:t-px-
|
|
11411
|
+
input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-xl t-font-normal t-py-4 t-px-9 sm:t-px-11 t-rounded",
|
|
11408
11412
|
outer: "!t-mb-2 t-mt-4"
|
|
11409
11413
|
};
|
|
11410
11414
|
var theme = {
|
|
@@ -15710,12 +15714,21 @@ const _sfc_main = {
|
|
|
15710
15714
|
},
|
|
15711
15715
|
setup(__props) {
|
|
15712
15716
|
const props2 = __props;
|
|
15713
|
-
const picked = ref();
|
|
15714
|
-
|
|
15717
|
+
const picked = ref(new Date());
|
|
15718
|
+
const updateNodeValue = (newValue) => {
|
|
15715
15719
|
const offset = newValue.getTimezoneOffset();
|
|
15716
15720
|
newValue = new Date(newValue.getTime() - offset * 60 * 1e3);
|
|
15717
15721
|
newValue = newValue.toISOString().split("T")[0];
|
|
15718
15722
|
props2.context.node.input(newValue);
|
|
15723
|
+
};
|
|
15724
|
+
onMounted(() => {
|
|
15725
|
+
if (!picked.value) {
|
|
15726
|
+
return;
|
|
15727
|
+
}
|
|
15728
|
+
updateNodeValue(picked.value);
|
|
15729
|
+
});
|
|
15730
|
+
watch$1(picked, (newValue, oldValue) => {
|
|
15731
|
+
updateNodeValue(newValue);
|
|
15719
15732
|
});
|
|
15720
15733
|
return (_ctx, _cache) => {
|
|
15721
15734
|
return openBlock(), createBlock(unref(script), {
|