df-ae-forms-package 1.0.44 → 1.0.46

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 CHANGED
@@ -741,6 +741,10 @@ interface DfFormDataGridProps {
741
741
  onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
742
742
  workOrderNumber?: string;
743
743
  assetNumber?: string;
744
+ user?: {
745
+ firstName?: string;
746
+ lastName?: string;
747
+ };
744
748
  onCreateIssue?: (issueData: any, attachments: File[]) => Promise<any>;
745
749
  onUpdateIssue?: (issueId: string, updateData: any) => Promise<void>;
746
750
  }
@@ -799,6 +803,7 @@ interface IComponentActionFeaturesProps {
799
803
  mode: 'edit' | 'preview' | 'test';
800
804
  formTemplateId?: string;
801
805
  formValue?: any;
806
+ formData?: Record<string, any>;
802
807
  onNotesChange?: (notes: string) => void;
803
808
  onAttachmentChange?: (files: File[] | null) => void;
804
809
  notes?: string;
@@ -1003,6 +1008,22 @@ declare class ToastService {
1003
1008
  }
1004
1009
  declare const toastService: ToastService;
1005
1010
 
1011
+ /**
1012
+ * Configuration for PDF generation
1013
+ * IMPORTANT: The components array should contain the form components with their VALUES populated.
1014
+ * Each component should have:
1015
+ * - basic.value: The user-entered value (NOT just defaultValue)
1016
+ * - basic.label: The field label
1017
+ *
1018
+ * Example:
1019
+ * {
1020
+ * name: 'text-input',
1021
+ * basic: {
1022
+ * label: 'Name',
1023
+ * value: 'John Doe' // <-- This should be the ENTERED value, not defaultValue
1024
+ * }
1025
+ * }
1026
+ */
1006
1027
  interface GeneratePdfOptions {
1007
1028
  formTitle: string;
1008
1029
  formDescription?: string;