df-ae-forms-package 1.0.28 → 1.0.30
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 +56 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ interface DfFormPreviewProps {
|
|
|
396
396
|
currentDevice?: DeviceType;
|
|
397
397
|
isPreviewMode?: boolean;
|
|
398
398
|
initialFormData?: FormComponentType[];
|
|
399
|
-
onSubmit?: (formData: FormComponentType[]) => void;
|
|
399
|
+
onSubmit?: (formData: FormComponentType[], values: Record<string, any>) => void;
|
|
400
400
|
onFormDataChange?: (formData: FormComponentType[]) => void;
|
|
401
401
|
formTitle?: string;
|
|
402
402
|
formDescription?: string;
|
|
@@ -406,6 +406,8 @@ interface DfFormPreviewProps {
|
|
|
406
406
|
onComponentEdit?: (component: FormComponentType) => void;
|
|
407
407
|
onComponentUpdate?: (componentId: string, updates: Partial<FormComponentType>) => void;
|
|
408
408
|
selectedComponent?: FormComponentType | null;
|
|
409
|
+
workOrderNumber?: string;
|
|
410
|
+
assetNumber?: string;
|
|
409
411
|
}
|
|
410
412
|
declare const DfFormPreview: React.FC<DfFormPreviewProps>;
|
|
411
413
|
|
|
@@ -428,6 +430,8 @@ interface DfFormInputProps {
|
|
|
428
430
|
formTemplateId?: string;
|
|
429
431
|
onThresholdIssueRaised?: (conditionId: string) => void;
|
|
430
432
|
raisedThresholdIssues?: Set<string>;
|
|
433
|
+
workOrderNumber?: string;
|
|
434
|
+
assetNumber?: string;
|
|
431
435
|
}
|
|
432
436
|
declare const DfFormInput: React.FC<DfFormInputProps>;
|
|
433
437
|
|
|
@@ -785,6 +789,8 @@ interface IThresholdAlertProps {
|
|
|
785
789
|
currentValue: string | number;
|
|
786
790
|
thresholdValue: string | number;
|
|
787
791
|
formTemplateId?: string;
|
|
792
|
+
workOrderNumber?: string;
|
|
793
|
+
assetNumber?: string;
|
|
788
794
|
onDismiss?: () => void;
|
|
789
795
|
onIssueRaised?: (conditionId: string) => void;
|
|
790
796
|
isIssueRaised?: boolean;
|
|
@@ -823,9 +829,57 @@ interface IRaiseIssueModalProps {
|
|
|
823
829
|
lastName?: string;
|
|
824
830
|
};
|
|
825
831
|
availableUsers?: string[];
|
|
832
|
+
workOrderNumber?: string;
|
|
833
|
+
assetNumber?: string;
|
|
826
834
|
}
|
|
827
835
|
declare const RaiseIssueModal: React.FC<IRaiseIssueModalProps>;
|
|
828
836
|
|
|
837
|
+
interface IAttachmentData {
|
|
838
|
+
name: string;
|
|
839
|
+
type: string;
|
|
840
|
+
size: number;
|
|
841
|
+
data: string;
|
|
842
|
+
url?: string;
|
|
843
|
+
}
|
|
844
|
+
interface PdfComponentProps {
|
|
845
|
+
id: string;
|
|
846
|
+
name: string;
|
|
847
|
+
basic?: {
|
|
848
|
+
label?: string;
|
|
849
|
+
value?: any;
|
|
850
|
+
defaultValue?: any;
|
|
851
|
+
options?: any[];
|
|
852
|
+
instructions?: string[];
|
|
853
|
+
description?: string;
|
|
854
|
+
notes?: string;
|
|
855
|
+
attachments?: IAttachmentData[];
|
|
856
|
+
};
|
|
857
|
+
validation?: {
|
|
858
|
+
required?: boolean;
|
|
859
|
+
listStyle?: string;
|
|
860
|
+
};
|
|
861
|
+
styles?: {
|
|
862
|
+
column?: number;
|
|
863
|
+
headerBackgroundColor?: string;
|
|
864
|
+
headerTextColor?: string;
|
|
865
|
+
level?: number;
|
|
866
|
+
fontSize?: string;
|
|
867
|
+
textAlign?: string;
|
|
868
|
+
labelAlignment?: 'left' | 'top' | 'right';
|
|
869
|
+
};
|
|
870
|
+
children?: PdfComponentProps[];
|
|
871
|
+
cells?: any[][];
|
|
872
|
+
entries?: any[];
|
|
873
|
+
templateComponents?: PdfComponentProps[];
|
|
874
|
+
}
|
|
875
|
+
interface FormSubmissionPdfProps {
|
|
876
|
+
formTitle: string;
|
|
877
|
+
formDescription?: string;
|
|
878
|
+
userName?: string;
|
|
879
|
+
components: PdfComponentProps[];
|
|
880
|
+
}
|
|
881
|
+
declare const FormSubmissionPdf: React.FC<FormSubmissionPdfProps>;
|
|
882
|
+
|
|
829
883
|
interface IAvailableComponent {
|
|
830
884
|
id: string;
|
|
831
885
|
label: string;
|
|
@@ -955,5 +1009,5 @@ interface IBaseStyleProps {
|
|
|
955
1009
|
}
|
|
956
1010
|
type TFormComponent = FormComponentType;
|
|
957
1011
|
|
|
958
|
-
export { ComponentActionFeatures, ComponentSubmissionActions, DfFormCheckbox, DfFormComments, DfFormDataGrid, DfFormDateTime, DfFormErrorMsg, DfFormFileUpload, DfFormHeading, DfFormInput, DfFormInstruction, DfFormLocation, DfFormPreview, DfFormRadio, DfFormSection, DfFormSegment, DfFormSelect, DfFormSignature, DfFormTable, DfFormTextarea, ELabelAlignment, RaiseIssueModal, ThresholdAlert, conditionalLogicService, toastService };
|
|
1012
|
+
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 };
|
|
959
1013
|
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 };
|