df-ae-forms-package 1.0.38 → 1.0.39
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/index.d.ts +17 -1
- package/dist/index.esm.js +356 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +356 -2
- package/dist/index.js.map +1 -1
- package/package.json +22 -18
package/dist/index.d.ts
CHANGED
|
@@ -990,6 +990,22 @@ declare class ToastService {
|
|
|
990
990
|
}
|
|
991
991
|
declare const toastService: ToastService;
|
|
992
992
|
|
|
993
|
+
interface GeneratePdfOptions {
|
|
994
|
+
formTitle: string;
|
|
995
|
+
formDescription?: string;
|
|
996
|
+
userName?: string;
|
|
997
|
+
components: any[];
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Generates a PDF blob from the form submission data using the FormSubmissionPdf component.
|
|
1001
|
+
* This function renders the component to a hidden DOM element, captures it as an image,
|
|
1002
|
+
* and converts it to a PDF.
|
|
1003
|
+
*
|
|
1004
|
+
* @param options configuration for the PDF content
|
|
1005
|
+
* @returns Promise resolving to a PDF Blob
|
|
1006
|
+
*/
|
|
1007
|
+
declare const generateFormPdf: (options: GeneratePdfOptions) => Promise<Blob>;
|
|
1008
|
+
|
|
993
1009
|
type TComponentCategory = 'Basic' | 'Advanced' | 'Layout' | 'Custom';
|
|
994
1010
|
type TBasicComponentName = 'text-input' | 'number-input' | 'email-input' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'segment' | 'date-picker' | 'datetime-picker' | 'info' | 'signature' | 'heading' | 'instructions' | 'section' | 'table' | 'datagrid' | 'file' | 'location';
|
|
995
1011
|
type TComponentName = TBasicComponentName;
|
|
@@ -1047,5 +1063,5 @@ interface IBaseStyleProps {
|
|
|
1047
1063
|
}
|
|
1048
1064
|
type TFormComponent = FormComponentType;
|
|
1049
1065
|
|
|
1050
|
-
export { ComponentActionFeatures, ComponentSubmissionActions, DfFormCheckbox, DfFormComments, DfFormDataGrid, DfFormDateTime, DfFormErrorMsg, DfFormFileUpload, DfFormHeading, DfFormInput, DfFormInstruction, DfFormLocation, DfFormPreview, DfFormRadio, DfFormSection, DfFormSegment, DfFormSelect, DfFormSignature, DfFormTable, DfFormTextarea, ELabelAlignment, FormSubmissionPdf, RaiseIssueModal, ThresholdAlert, conditionalLogicService, toastService };
|
|
1066
|
+
export { ComponentActionFeatures, ComponentSubmissionActions, DfFormCheckbox, DfFormComments, DfFormDataGrid, DfFormDateTime, DfFormErrorMsg, DfFormFileUpload, DfFormHeading, DfFormInput, DfFormInstruction, DfFormLocation, DfFormPreview, DfFormRadio, DfFormSection, DfFormSegment, DfFormSelect, DfFormSignature, DfFormTable, DfFormTextarea, ELabelAlignment, FormSubmissionPdf, RaiseIssueModal, ThresholdAlert, conditionalLogicService, generateFormPdf, toastService };
|
|
1051
1067
|
export type { DataGridEntry, DeviceType, DfFormPreviewProps, ErrorMessageProps, FormComponentProps, FormComponentType, IAvailableComponent, IBaseFormComponent, IBaseProps, IBaseStyleProps, IBaseValidationProps, ICheckboxComponent, ICondition, IConditionalEvaluationResult, IConditionalLogic, IDataGridComponent, IDateComponent, IDatePickerComponent, IDateTimePickerComponent, IDividerComponent, IEmailInputComponent, IFileComponent, IFileUploadComponent, IFormControlChange, IFormValidationErrors, IHeadingComponent, IInstructionComponent, ILocationComponent, INumberInputComponent, IOption, IRadioComponent, ISectionComponent, ISegmentComponent, ISelectComponent, ISignatureComponent, ITableComponent, ITextInputComponent, ITextareaComponent, IToast, TBasicComponentName, TCheckboxValue, TComponentCategory, TComponentName, TFormComponent, TInputComponentType, TableCell, ValidationResult, ValidationRule };
|