df-ae-forms-package 1.0.50 → 1.0.51
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 +8 -23
- package/dist/index.esm.js +30 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -312,6 +312,7 @@ interface IDataGridComponent extends Omit<IBaseFormComponent, 'basic' | 'styles'
|
|
|
312
312
|
addAnotherText: string;
|
|
313
313
|
removeText: string;
|
|
314
314
|
displayAsGrid: boolean;
|
|
315
|
+
columnView?: boolean;
|
|
315
316
|
};
|
|
316
317
|
templateComponents: FormComponentType[];
|
|
317
318
|
entries: DataGridEntry[];
|
|
@@ -322,6 +323,8 @@ interface IDataGridComponent extends Omit<IBaseFormComponent, 'basic' | 'styles'
|
|
|
322
323
|
borderRadius: string;
|
|
323
324
|
padding: string;
|
|
324
325
|
margin: string;
|
|
326
|
+
headerBackgroundColor?: string;
|
|
327
|
+
headerTextColor?: string;
|
|
325
328
|
};
|
|
326
329
|
}
|
|
327
330
|
interface DataGridEntry {
|
|
@@ -713,45 +716,27 @@ declare const DfFormSection: React.FC<DfFormSectionProps>;
|
|
|
713
716
|
interface DfFormDataGridProps {
|
|
714
717
|
id: string;
|
|
715
718
|
properties: IDataGridComponent;
|
|
716
|
-
validationErrors?: Record<string, any>;
|
|
717
|
-
formValue?: any;
|
|
718
|
-
formData?: Record<string, any>;
|
|
719
|
-
readonly?: boolean;
|
|
720
|
-
disabled?: boolean;
|
|
721
|
-
touchedFields?: Record<string, boolean>;
|
|
722
|
-
formSubmitted?: boolean;
|
|
723
719
|
mode?: 'edit' | 'preview' | 'test';
|
|
720
|
+
formData?: any;
|
|
724
721
|
onValueChange?: (change: IFormControlChange) => void;
|
|
725
|
-
onBlur?: () => void;
|
|
726
|
-
onFocus?: () => void;
|
|
727
722
|
onSelect?: () => void;
|
|
728
723
|
isSelected?: boolean;
|
|
729
724
|
className?: string;
|
|
730
|
-
onDataGridSelect?: (
|
|
731
|
-
onDataGridDelete?: (dataGridId: string) => void;
|
|
732
|
-
onEntryChange?: (entryIndex: number, components: FormComponentType[]) => void;
|
|
725
|
+
onDataGridSelect?: (component: IDataGridComponent) => void;
|
|
733
726
|
onComponentSelect?: (component: FormComponentType) => void;
|
|
734
727
|
onComponentDelete?: (component: FormComponentType, event: React.MouseEvent) => void;
|
|
735
728
|
onComponentEdit?: (component: FormComponentType) => void;
|
|
736
729
|
onComponentUpdate?: (componentId: string, updates: Partial<FormComponentType>) => void;
|
|
737
730
|
selectedComponent?: FormComponentType | null;
|
|
738
|
-
renderFormComponent?: (
|
|
739
|
-
onDataGridUpdate?: (dataGridId: string, updates: Partial<IDataGridComponent>) => void;
|
|
731
|
+
renderFormComponent?: (component: FormComponentType, hideLabel?: boolean) => React.ReactNode;
|
|
740
732
|
onEntryAdd?: () => void;
|
|
741
|
-
onEntryRemove?: (
|
|
733
|
+
onEntryRemove?: (index: number) => void;
|
|
742
734
|
formTemplateId?: string;
|
|
743
735
|
onThresholdActionCompletion?: (conditionId: string, action: 'notes' | 'attachments' | 'email', completed: boolean) => void;
|
|
744
736
|
onThresholdIssueRaised?: (conditionId: string) => void;
|
|
745
737
|
onNotesChange?: (componentId: string, notes: string) => void;
|
|
746
738
|
onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
|
|
747
|
-
|
|
748
|
-
assetNumber?: string;
|
|
749
|
-
user?: {
|
|
750
|
-
firstName?: string;
|
|
751
|
-
lastName?: string;
|
|
752
|
-
};
|
|
753
|
-
onCreateIssue?: (issueData: any, attachments: File[]) => Promise<any>;
|
|
754
|
-
onUpdateIssue?: (issueId: string, updateData: any) => Promise<void>;
|
|
739
|
+
shouldShowComponent?: (componentId: string) => boolean;
|
|
755
740
|
}
|
|
756
741
|
declare const DfFormDataGrid: React.FC<DfFormDataGridProps>;
|
|
757
742
|
|