dfh-ui-library 1.12.196 → 1.12.198
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.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/FilterButtonGroup/Checkbox.d.ts +3 -1
- package/dist/cjs/types/components/History/NoteEvent.d.ts +4 -0
- package/dist/cjs/types/components/History/NoteEventView.d.ts +7 -0
- package/dist/cjs/types/components/SideBarListView/todos.d.ts +9 -0
- package/dist/cjs/types/components/Timeline/NoteView.d.ts +2 -0
- package/dist/cjs/types/shared/models/components/common.model.d.ts +4 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/FilterButtonGroup/Checkbox.d.ts +3 -1
- package/dist/esm/types/components/History/NoteEvent.d.ts +4 -0
- package/dist/esm/types/components/History/NoteEventView.d.ts +7 -0
- package/dist/esm/types/components/SideBarListView/todos.d.ts +9 -0
- package/dist/esm/types/components/Timeline/NoteView.d.ts +2 -0
- package/dist/esm/types/shared/models/components/common.model.d.ts +4 -0
- package/dist/index.d.ts +23 -9
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@ import React from "react";
|
|
|
2
2
|
interface CheckboxProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
checked?: boolean;
|
|
5
|
-
onChange: (
|
|
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,19 @@
|
|
|
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
|
+
toggledInUpdates?: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
3
11
|
interface todosProps {
|
|
4
12
|
urgentDataList: UrgentDataProps[];
|
|
5
13
|
listMasterData?: ListMasterDataProps;
|
|
6
14
|
detailAction?: (rowId: string | undefined) => void;
|
|
7
15
|
handleNameClick?: (id?: string) => void;
|
|
16
|
+
toggleTodoCheckbox?: (req: ITodoToggleRequestParams) => void;
|
|
8
17
|
}
|
|
9
18
|
declare const Todos: React.FC<todosProps>;
|
|
10
19
|
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
|
+
toggleTodoCheckbox?: (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;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,23 @@ import React__default, { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTML
|
|
|
4
4
|
import { ColumnDef, OnChangeFn, SortingState, PaginationState } from '@tanstack/react-table';
|
|
5
5
|
export { ColumnDef, SortingState } from '@tanstack/react-table';
|
|
6
6
|
|
|
7
|
+
interface ITodoToggleRequestParams {
|
|
8
|
+
noteId?: string;
|
|
9
|
+
toggleOptions: {
|
|
10
|
+
noteIndex: number;
|
|
11
|
+
check: boolean;
|
|
12
|
+
toggledInUpdates?: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface todosProps {
|
|
16
|
+
urgentDataList: UrgentDataProps[];
|
|
17
|
+
listMasterData?: ListMasterDataProps;
|
|
18
|
+
detailAction?: (rowId: string | undefined) => void;
|
|
19
|
+
handleNameClick?: (id?: string) => void;
|
|
20
|
+
toggleTodoCheckbox?: (req: ITodoToggleRequestParams) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const Todos: React__default.FC<todosProps>;
|
|
23
|
+
|
|
7
24
|
type AlignmentType = "center" | "left" | "right";
|
|
8
25
|
type IconColorTypes = "white" | "black-900" | "gray-220" | "gray-720" | "inherit" | "gray-300" | string;
|
|
9
26
|
type IconHoverColorTypes = "white" | "black-900" | "gray-220" | "inherit";
|
|
@@ -560,6 +577,7 @@ interface SideBarListProps {
|
|
|
560
577
|
detailAction?: (value: string | undefined) => void;
|
|
561
578
|
handleNameClick?: (id?: string) => void;
|
|
562
579
|
handleChallengeHeaderClick?: (patientId?: string, challengeId?: string) => void;
|
|
580
|
+
toggleTodoCheckbox?: (req: ITodoToggleRequestParams) => void;
|
|
563
581
|
}
|
|
564
582
|
interface UrgentDataProps {
|
|
565
583
|
fullName?: string | undefined;
|
|
@@ -640,10 +658,12 @@ interface UserHistoryDetails {
|
|
|
640
658
|
fullName: string;
|
|
641
659
|
}
|
|
642
660
|
interface NoteItemProps {
|
|
661
|
+
noteId?: string;
|
|
643
662
|
isChecked?: boolean;
|
|
644
663
|
text?: string | undefined;
|
|
645
664
|
enableCheckbox?: boolean;
|
|
646
665
|
additonalInfo?: any;
|
|
666
|
+
noteIndex?: number;
|
|
647
667
|
}
|
|
648
668
|
interface NoteComponentProps {
|
|
649
669
|
onAdd?: (items: NoteProps, serveyId?: string) => void;
|
|
@@ -1437,19 +1457,13 @@ declare const ButtonGroupMultiSelect: React__default.FC<ButtonGroupMultiProps>;
|
|
|
1437
1457
|
interface CheckboxProps {
|
|
1438
1458
|
id?: string;
|
|
1439
1459
|
checked?: boolean;
|
|
1440
|
-
onChange: (
|
|
1460
|
+
onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
1441
1461
|
addtionalClasses?: string;
|
|
1462
|
+
noteId?: string;
|
|
1463
|
+
noteIndex?: number;
|
|
1442
1464
|
}
|
|
1443
1465
|
declare const CheckBoxComponent: React__default.FC<CheckboxProps>;
|
|
1444
1466
|
|
|
1445
|
-
interface todosProps {
|
|
1446
|
-
urgentDataList: UrgentDataProps[];
|
|
1447
|
-
listMasterData?: ListMasterDataProps;
|
|
1448
|
-
detailAction?: (rowId: string | undefined) => void;
|
|
1449
|
-
handleNameClick?: (id?: string) => void;
|
|
1450
|
-
}
|
|
1451
|
-
declare const Todos: React__default.FC<todosProps>;
|
|
1452
|
-
|
|
1453
1467
|
interface UrgentChallengeProps {
|
|
1454
1468
|
urgentDataList: UrgentDataProps[];
|
|
1455
1469
|
listMasterData?: ListMasterDataProps;
|