dfh-ui-library 1.11.2 → 1.11.4

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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { NoteItemProps } from "../../shared/models/components/common.model";
2
+ import { NoteProps } from "../../shared/models/components/common.model";
3
3
  interface NoteViewProps {
4
- notes?: NoteItemProps[];
4
+ notes?: NoteProps;
5
5
  }
6
6
  declare const NotesEventView: React.FC<NoteViewProps>;
7
7
  export default NotesEventView;
@@ -628,7 +628,7 @@ export interface ICardInfoProps {
628
628
  export interface TimelineProps {
629
629
  timelines: TimelineEventProps[];
630
630
  showAll?: string;
631
- handleEditItem?: (items: NoteItemProps[], serveyId?: string) => void;
631
+ handleEditItem?: (items: NoteProps, serveyId?: string) => void;
632
632
  viewNoteHistory?: (show: boolean) => void;
633
633
  }
634
634
  export interface SideBarListProps {
@@ -664,10 +664,10 @@ export interface TimelineEventProps {
664
664
  date?: string;
665
665
  user?: string;
666
666
  challenge?: string;
667
- note?: NoteItemProps[];
667
+ note?: NoteProps;
668
668
  lastModified?: string;
669
669
  showAll?: string;
670
- handleEditItem?: (items: NoteItemProps[], serveyId?: string) => void;
670
+ handleEditItem?: (items: NoteProps, serveyId?: string) => void;
671
671
  viewNoteHistory?: (show: boolean) => void;
672
672
  isLocked?: boolean;
673
673
  surveyId?: string;
@@ -678,6 +678,10 @@ export interface TimelineEventProps {
678
678
  resolvedByUser?: string;
679
679
  actionedUser?: string;
680
680
  }
681
+ export interface NoteProps {
682
+ note?: NoteItemProps[];
683
+ _id?: string;
684
+ }
681
685
  export interface NoteHistoryProps {
682
686
  editedBy: string;
683
687
  dateTime: string;
@@ -704,10 +708,10 @@ export interface NoteItemProps {
704
708
  additonalInfo?: any;
705
709
  }
706
710
  export interface NoteComponentProps {
707
- onAdd?: (items: NoteItemProps[], serveyId?: string) => void;
711
+ onAdd?: (items: NoteProps, serveyId?: string) => void;
708
712
  cancelAction?: () => void;
709
713
  enableNoteButton?: boolean;
710
- savedItems?: NoteItemProps[] | undefined;
714
+ savedItems?: NoteProps | undefined;
711
715
  buttonLabels?: {
712
716
  cancel?: string;
713
717
  save?: string;