df-ae-forms-package 1.0.98 → 1.1.1
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -16
- package/dist/index.esm.js +245 -86
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +243 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -716,38 +716,27 @@ declare const DfFormSection: React.FC<DfFormSectionProps>;
|
|
|
716
716
|
interface DfFormDataGridProps {
|
|
717
717
|
id: string;
|
|
718
718
|
properties: IDataGridComponent;
|
|
719
|
-
validationErrors?: Record<string, any>;
|
|
720
|
-
formValue?: any;
|
|
721
|
-
formData?: Record<string, any>;
|
|
722
|
-
readonly?: boolean;
|
|
723
|
-
disabled?: boolean;
|
|
724
|
-
touchedFields?: Record<string, boolean>;
|
|
725
|
-
formSubmitted?: boolean;
|
|
726
719
|
mode?: 'edit' | 'preview' | 'test';
|
|
720
|
+
formData?: any;
|
|
727
721
|
onValueChange?: (change: IFormControlChange) => void;
|
|
728
|
-
onBlur?: () => void;
|
|
729
|
-
onFocus?: () => void;
|
|
730
722
|
onSelect?: () => void;
|
|
731
723
|
isSelected?: boolean;
|
|
732
724
|
className?: string;
|
|
733
|
-
onDataGridSelect?: (
|
|
734
|
-
onDataGridDelete?: (dataGridId: string) => void;
|
|
735
|
-
onEntryChange?: (entryIndex: number, components: FormComponentType[]) => void;
|
|
725
|
+
onDataGridSelect?: (component: IDataGridComponent) => void;
|
|
736
726
|
onComponentSelect?: (component: FormComponentType) => void;
|
|
737
727
|
onComponentDelete?: (component: FormComponentType, event: React.MouseEvent) => void;
|
|
738
728
|
onComponentEdit?: (component: FormComponentType) => void;
|
|
739
729
|
onComponentUpdate?: (componentId: string, updates: Partial<FormComponentType>) => void;
|
|
740
730
|
selectedComponent?: FormComponentType | null;
|
|
741
|
-
renderFormComponent?: (
|
|
742
|
-
onDataGridUpdate?: (dataGridId: string, updates: Partial<IDataGridComponent>) => void;
|
|
731
|
+
renderFormComponent?: (component: FormComponentType, hideLabel?: boolean) => React.ReactNode;
|
|
743
732
|
onEntryAdd?: () => void;
|
|
744
|
-
onEntryRemove?: (
|
|
733
|
+
onEntryRemove?: (index: number) => void;
|
|
745
734
|
formTemplateId?: string;
|
|
746
735
|
onThresholdActionCompletion?: (conditionId: string, action: 'notes' | 'attachments' | 'email', completed: boolean) => void;
|
|
747
736
|
onThresholdIssueRaised?: (conditionId: string) => void;
|
|
748
737
|
onNotesChange?: (componentId: string, notes: string) => void;
|
|
749
738
|
onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
|
|
750
|
-
shouldShowComponent?: (
|
|
739
|
+
shouldShowComponent?: (componentId: string) => boolean;
|
|
751
740
|
}
|
|
752
741
|
declare const DfFormDataGrid: React.FC<DfFormDataGridProps>;
|
|
753
742
|
|