@signiphi/pdf-signer 0.2.0-beta.18 → 0.2.0-beta.19
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/components/index.js +9 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -0
- package/dist/components/index.mjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -9757,6 +9757,15 @@ function SubmissionForm({
|
|
|
9757
9757
|
}
|
|
9758
9758
|
}
|
|
9759
9759
|
}
|
|
9760
|
+
const alreadyCheckedTypes = /* @__PURE__ */ new Set(["date", "signature", "initials"]);
|
|
9761
|
+
for (const field of filteredFields) {
|
|
9762
|
+
if (!field.required || alreadyCheckedTypes.has(field.type)) continue;
|
|
9763
|
+
if (field.id === "signature_field_main" || field.id === "initials_field_main") continue;
|
|
9764
|
+
const value = allFieldValues[field.id];
|
|
9765
|
+
if (!value || typeof value === "string" && value.trim() === "") {
|
|
9766
|
+
validationErrors2.push(`${getFieldDisplayName(field)} is required`);
|
|
9767
|
+
}
|
|
9768
|
+
}
|
|
9760
9769
|
const isFieldsValid = validateFields(currentSignatures);
|
|
9761
9770
|
if (!isFieldsValid) {
|
|
9762
9771
|
for (const field of filteredFields) {
|