dfh-ui-library 1.12.196 → 1.12.197

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.
@@ -2,8 +2,10 @@ import React from "react";
2
2
  interface CheckboxProps {
3
3
  id?: string;
4
4
  checked?: boolean;
5
- onChange: (id?: string) => void;
5
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
6
6
  addtionalClasses?: string;
7
+ noteId?: string;
8
+ noteIndex?: number;
7
9
  }
8
10
  declare const CheckBoxComponent: React.FC<CheckboxProps>;
9
11
  export default CheckBoxComponent;
@@ -1,10 +1,18 @@
1
1
  import React from "react";
2
2
  import { ListMasterDataProps, UrgentDataProps } from "../../shared/models/components/common.model";
3
+ export interface ITodoToggleRequestParams {
4
+ noteId?: string;
5
+ toggleOptions: {
6
+ noteIndex: number;
7
+ check: boolean;
8
+ };
9
+ }
3
10
  interface todosProps {
4
11
  urgentDataList: UrgentDataProps[];
5
12
  listMasterData?: ListMasterDataProps;
6
13
  detailAction?: (rowId: string | undefined) => void;
7
14
  handleNameClick?: (id?: string) => void;
15
+ toggleDashboardTodoCheckbox?: (req: ITodoToggleRequestParams) => void;
8
16
  }
9
17
  declare const Todos: React.FC<todosProps>;
10
18
  export default Todos;
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  import { NoteItemProps } from "../../shared/models/components/common.model";
3
+ import { ITodoToggleRequestParams } from "../SideBarListView/todos";
3
4
  interface NoteViewProps {
4
5
  notes?: NoteItemProps[];
5
6
  addtionalClassesCheckboxLabel?: string;
7
+ handleCheckboxToggle?: (req: ITodoToggleRequestParams) => void;
6
8
  }
7
9
  declare const NotesView: React.FC<NoteViewProps>;
8
10
  export default NotesView;
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { VariantTypes } from "./base.model";
3
3
  import { ColumnDef, OnChangeFn, PaginationState, SortingState } from "@tanstack/react-table";
4
+ import { ITodoToggleRequestParams } from "../../../components/SideBarListView/todos";
4
5
  export type AlignmentType = "center" | "left" | "right";
5
6
  export type IconColorTypes = "white" | "black-900" | "gray-220" | "gray-720" | "inherit" | "gray-300" | string;
6
7
  export type IconHoverColorTypes = "white" | "black-900" | "gray-220" | "inherit";
@@ -686,6 +687,7 @@ export interface SideBarListProps {
686
687
  detailAction?: (value: string | undefined) => void;
687
688
  handleNameClick?: (id?: string) => void;
688
689
  handleChallengeHeaderClick?: (patientId?: string, challengeId?: string) => void;
690
+ toggleDashboardTodoCheckbox?: (req: ITodoToggleRequestParams) => void;
689
691
  }
690
692
  export interface UrgentDataProps {
691
693
  fullName?: string | undefined;
@@ -770,10 +772,12 @@ export interface NoteOptionsProps {
770
772
  checked?: boolean;
771
773
  }
772
774
  export interface NoteItemProps {
775
+ noteId?: string;
773
776
  isChecked?: boolean;
774
777
  text?: string | undefined;
775
778
  enableCheckbox?: boolean;
776
779
  additonalInfo?: any;
780
+ noteIndex?: number;
777
781
  }
778
782
  export interface NoteComponentProps {
779
783
  onAdd?: (items: NoteProps, serveyId?: string) => void;