df-ae-forms-package 1.0.37 → 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 +25 -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
|
@@ -694,6 +694,10 @@ interface DfFormSectionProps {
|
|
|
694
694
|
onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
|
|
695
695
|
workOrderNumber?: string;
|
|
696
696
|
assetNumber?: string;
|
|
697
|
+
user?: {
|
|
698
|
+
firstName?: string;
|
|
699
|
+
lastName?: string;
|
|
700
|
+
};
|
|
697
701
|
}
|
|
698
702
|
declare const DfFormSection: React.FC<DfFormSectionProps>;
|
|
699
703
|
|
|
@@ -775,6 +779,10 @@ interface DfFormTableProps {
|
|
|
775
779
|
onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
|
|
776
780
|
workOrderNumber?: string;
|
|
777
781
|
assetNumber?: string;
|
|
782
|
+
user?: {
|
|
783
|
+
firstName?: string;
|
|
784
|
+
lastName?: string;
|
|
785
|
+
};
|
|
778
786
|
}
|
|
779
787
|
declare const DfFormTable: React.FC<DfFormTableProps>;
|
|
780
788
|
|
|
@@ -982,6 +990,22 @@ declare class ToastService {
|
|
|
982
990
|
}
|
|
983
991
|
declare const toastService: ToastService;
|
|
984
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
|
+
|
|
985
1009
|
type TComponentCategory = 'Basic' | 'Advanced' | 'Layout' | 'Custom';
|
|
986
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';
|
|
987
1011
|
type TComponentName = TBasicComponentName;
|
|
@@ -1039,5 +1063,5 @@ interface IBaseStyleProps {
|
|
|
1039
1063
|
}
|
|
1040
1064
|
type TFormComponent = FormComponentType;
|
|
1041
1065
|
|
|
1042
|
-
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 };
|
|
1043
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 };
|