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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/History/NoteEventView.d.ts +2 -2
- package/dist/cjs/types/shared/models/components/common.model.d.ts +9 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/History/NoteEventView.d.ts +2 -2
- package/dist/esm/types/shared/models/components/common.model.d.ts +9 -5
- package/dist/index.d.ts +18 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { NoteProps } from "../../shared/models/components/common.model";
|
|
3
3
|
interface NoteViewProps {
|
|
4
|
-
notes?:
|
|
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:
|
|
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?:
|
|
667
|
+
note?: NoteProps;
|
|
668
668
|
lastModified?: string;
|
|
669
669
|
showAll?: string;
|
|
670
|
-
handleEditItem?: (items:
|
|
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:
|
|
711
|
+
onAdd?: (items: NoteProps, serveyId?: string) => void;
|
|
708
712
|
cancelAction?: () => void;
|
|
709
713
|
enableNoteButton?: boolean;
|
|
710
|
-
savedItems?:
|
|
714
|
+
savedItems?: NoteProps | undefined;
|
|
711
715
|
buttonLabels?: {
|
|
712
716
|
cancel?: string;
|
|
713
717
|
save?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -505,7 +505,7 @@ interface ICardInfoProps {
|
|
|
505
505
|
interface TimelineProps {
|
|
506
506
|
timelines: TimelineEventProps[];
|
|
507
507
|
showAll?: string;
|
|
508
|
-
handleEditItem?: (items:
|
|
508
|
+
handleEditItem?: (items: NoteProps, serveyId?: string) => void;
|
|
509
509
|
viewNoteHistory?: (show: boolean) => void;
|
|
510
510
|
}
|
|
511
511
|
interface SideBarListProps {
|
|
@@ -541,10 +541,10 @@ interface TimelineEventProps {
|
|
|
541
541
|
date?: string;
|
|
542
542
|
user?: string;
|
|
543
543
|
challenge?: string;
|
|
544
|
-
note?:
|
|
544
|
+
note?: NoteProps;
|
|
545
545
|
lastModified?: string;
|
|
546
546
|
showAll?: string;
|
|
547
|
-
handleEditItem?: (items:
|
|
547
|
+
handleEditItem?: (items: NoteProps, serveyId?: string) => void;
|
|
548
548
|
viewNoteHistory?: (show: boolean) => void;
|
|
549
549
|
isLocked?: boolean;
|
|
550
550
|
surveyId?: string;
|
|
@@ -565,6 +565,19 @@ interface NoteHistoryDetails {
|
|
|
565
565
|
dateTime: string;
|
|
566
566
|
notes: NoteItemProps[];
|
|
567
567
|
}
|
|
568
|
+
interface NoteProps {
|
|
569
|
+
note?: NoteItemProps[];
|
|
570
|
+
_id?: string;
|
|
571
|
+
}
|
|
572
|
+
interface NoteProps {
|
|
573
|
+
headerNote?: string;
|
|
574
|
+
footerNote?: string;
|
|
575
|
+
noteOptions?: NoteOptionsProps[];
|
|
576
|
+
}
|
|
577
|
+
interface NoteOptionsProps {
|
|
578
|
+
text?: string;
|
|
579
|
+
checked?: boolean;
|
|
580
|
+
}
|
|
568
581
|
interface NoteItemProps {
|
|
569
582
|
isChecked?: boolean;
|
|
570
583
|
text?: string | undefined;
|
|
@@ -572,10 +585,10 @@ interface NoteItemProps {
|
|
|
572
585
|
additonalInfo?: any;
|
|
573
586
|
}
|
|
574
587
|
interface NoteComponentProps {
|
|
575
|
-
onAdd?: (items:
|
|
588
|
+
onAdd?: (items: NoteProps, serveyId?: string) => void;
|
|
576
589
|
cancelAction?: () => void;
|
|
577
590
|
enableNoteButton?: boolean;
|
|
578
|
-
savedItems?:
|
|
591
|
+
savedItems?: NoteProps | undefined;
|
|
579
592
|
buttonLabels?: {
|
|
580
593
|
cancel?: string;
|
|
581
594
|
save?: string;
|