df-ae-forms-package 1.0.56 → 1.0.58

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
@@ -364,6 +364,7 @@ interface FormComponentProps {
364
364
  touchedFields?: Record<string, boolean>;
365
365
  formSubmitted?: boolean;
366
366
  mode?: 'edit' | 'preview' | 'test';
367
+ platform?: 'web' | 'ios' | 'android';
367
368
  onValueChange?: (change: IFormControlChange) => void;
368
369
  onBlur?: () => void;
369
370
  onFocus?: () => void;
@@ -398,10 +399,12 @@ interface ValidationResult {
398
399
  }
399
400
 
400
401
  type DeviceType = 'desktop' | 'tablet' | 'mobile';
402
+ type PlatformType = 'web' | 'ios' | 'android';
401
403
  interface DfFormPreviewProps {
402
404
  formComponents: FormComponentType[];
403
405
  formData?: any;
404
406
  currentDevice?: DeviceType;
407
+ platform?: PlatformType;
405
408
  isPreviewMode?: boolean;
406
409
  initialFormData?: FormComponentType[];
407
410
  onSubmit?: (formData: FormComponentType[], values: Record<string, any>) => void;
@@ -437,6 +440,7 @@ interface DfFormInputProps {
437
440
  touchedFields?: Record<string, boolean>;
438
441
  formSubmitted?: boolean;
439
442
  mode?: 'edit' | 'preview' | 'test';
443
+ platform?: 'web' | 'ios' | 'android';
440
444
  onValueChange?: (change: IFormControlChange) => void;
441
445
  onBlur?: () => void;
442
446
  onFocus?: () => void;
@@ -464,6 +468,7 @@ interface DfFormTextareaProps {
464
468
  touchedFields?: Record<string, boolean>;
465
469
  formSubmitted?: boolean;
466
470
  mode?: 'edit' | 'preview' | 'test';
471
+ platform?: 'web' | 'ios' | 'android';
467
472
  onValueChange?: (change: IFormControlChange) => void;
468
473
  onBlur?: () => void;
469
474
  onFocus?: () => void;
@@ -482,6 +487,7 @@ interface DfFormSelectProps {
482
487
  touchedFields?: Record<string, boolean>;
483
488
  formSubmitted?: boolean;
484
489
  mode?: 'edit' | 'preview' | 'test';
490
+ platform?: 'web' | 'ios' | 'android';
485
491
  onValueChange?: (change: IFormControlChange) => void;
486
492
  onBlur?: () => void;
487
493
  onFocus?: () => void;
@@ -501,6 +507,7 @@ interface DfFormCheckboxProps {
501
507
  touchedFields?: Record<string, boolean>;
502
508
  formSubmitted?: boolean;
503
509
  mode?: 'edit' | 'preview' | 'test';
510
+ platform?: 'web' | 'ios' | 'android';
504
511
  onValueChange?: (change: IFormControlChange) => void;
505
512
  onBlur?: () => void;
506
513
  onFocus?: () => void;
@@ -520,6 +527,7 @@ interface DfFormRadioProps {
520
527
  touchedFields?: Record<string, boolean>;
521
528
  formSubmitted?: boolean;
522
529
  mode?: 'edit' | 'preview' | 'test';
530
+ platform?: 'web' | 'ios' | 'android';
523
531
  onValueChange?: (change: IFormControlChange) => void;
524
532
  onBlur?: () => void;
525
533
  onFocus?: () => void;
@@ -558,6 +566,7 @@ interface DfFormDateTimeProps {
558
566
  touchedFields?: Record<string, boolean>;
559
567
  formSubmitted?: boolean;
560
568
  mode?: 'edit' | 'preview' | 'test';
569
+ platform?: 'web' | 'ios' | 'android';
561
570
  onValueChange?: (change: IFormControlChange) => void;
562
571
  onBlur?: () => void;
563
572
  onFocus?: () => void;
@@ -717,6 +726,7 @@ interface DfFormDataGridProps {
717
726
  id: string;
718
727
  properties: IDataGridComponent;
719
728
  mode?: 'edit' | 'preview' | 'test';
729
+ platform?: 'web' | 'ios' | 'android';
720
730
  formData?: any;
721
731
  onValueChange?: (change: IFormControlChange) => void;
722
732
  onSelect?: () => void;
@@ -737,6 +747,14 @@ interface DfFormDataGridProps {
737
747
  onNotesChange?: (componentId: string, notes: string) => void;
738
748
  onAttachmentChange?: (componentId: string, attachments: File[] | null) => void;
739
749
  shouldShowComponent?: (componentId: string) => boolean;
750
+ workOrderNumber?: string;
751
+ assetNumber?: string;
752
+ user?: {
753
+ firstName?: string;
754
+ lastName?: string;
755
+ };
756
+ onCreateIssue?: (issueData: any, attachments: File[]) => Promise<any>;
757
+ onUpdateIssue?: (issueId: string, updateData: any) => Promise<void>;
740
758
  }
741
759
  declare const DfFormDataGrid: React.FC<DfFormDataGridProps>;
742
760