dfh-ui-library 1.12.163 → 1.12.165

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.
Files changed (28) hide show
  1. package/dist/cjs/index.css +1 -1
  2. package/dist/cjs/index.css.map +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/FilterButtonGroup/Checkbox.d.ts +3 -1
  6. package/dist/cjs/types/components/History/NoteEvent.d.ts +4 -0
  7. package/dist/cjs/types/components/History/NoteEventView.d.ts +7 -0
  8. package/dist/cjs/types/components/SideBarListView/todos.d.ts +8 -0
  9. package/dist/cjs/types/components/Timeline/NoteView.d.ts +2 -0
  10. package/dist/cjs/types/shared/models/components/base.model.d.ts +0 -2
  11. package/dist/cjs/types/shared/models/components/common.model.d.ts +2 -0
  12. package/dist/esm/index.css +1 -1
  13. package/dist/esm/index.css.map +1 -1
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/components/FilterButtonGroup/Checkbox.d.ts +3 -1
  17. package/dist/esm/types/components/History/NoteEvent.d.ts +4 -0
  18. package/dist/esm/types/components/History/NoteEventView.d.ts +7 -0
  19. package/dist/esm/types/components/SideBarListView/todos.d.ts +8 -0
  20. package/dist/esm/types/components/Timeline/NoteView.d.ts +2 -0
  21. package/dist/esm/types/shared/models/components/base.model.d.ts +0 -2
  22. package/dist/esm/types/shared/models/components/common.model.d.ts +2 -0
  23. package/dist/index.d.ts +13 -3
  24. package/package.json +1 -1
  25. package/dist/cjs/types/components/FormElements/AutoResizeTextarea/AutoResizeTextarea.d.ts +0 -7
  26. package/dist/cjs/types/components/FormElements/AutoResizeTextarea/index.d.ts +0 -1
  27. package/dist/esm/types/components/FormElements/AutoResizeTextarea/AutoResizeTextarea.d.ts +0 -7
  28. package/dist/esm/types/components/FormElements/AutoResizeTextarea/index.d.ts +0 -1
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TimelineEventProps } from "../../shared/models/components/common.model";
3
+ declare const NoteEvent: React.FC<TimelineEventProps>;
4
+ export default NoteEvent;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { NoteItemProps } from "../../shared/models/components/common.model";
3
+ interface NoteViewProps {
4
+ notes?: NoteItemProps[];
5
+ }
6
+ declare const NotesEventView: React.FC<NoteViewProps>;
7
+ export default NotesEventView;
@@ -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) => Promise<any>;
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
+ toggleDashboardTodoCheckbox?: (req: ITodoToggleRequestParams) => Promise<any>;
6
8
  }
7
9
  declare const NotesView: React.FC<NoteViewProps>;
8
10
  export default NotesView;
@@ -591,8 +591,6 @@ export interface ITabProps extends AdditionalClassesProp {
591
591
  label: string;
592
592
  /** Unique identifier for the tab. */
593
593
  value: string;
594
- /** Count value for the tab. */
595
- count?: string;
596
594
  /** Active tab identifier (optional). */
597
595
  activeTab?: string;
598
596
  /** Callback on tab click (optional). */
@@ -770,10 +770,12 @@ export interface NoteOptionsProps {
770
770
  checked?: boolean;
771
771
  }
772
772
  export interface NoteItemProps {
773
+ noteId?: string;
773
774
  isChecked?: boolean;
774
775
  text?: string | undefined;
775
776
  enableCheckbox?: boolean;
776
777
  additonalInfo?: any;
778
+ noteIndex?: number;
777
779
  }
778
780
  export interface NoteComponentProps {
779
781
  onAdd?: (items: NoteProps, serveyId?: string) => void;
package/dist/index.d.ts CHANGED
@@ -640,10 +640,12 @@ interface UserHistoryDetails {
640
640
  fullName: string;
641
641
  }
642
642
  interface NoteItemProps {
643
+ noteId?: string;
643
644
  isChecked?: boolean;
644
645
  text?: string | undefined;
645
646
  enableCheckbox?: boolean;
646
647
  additonalInfo?: any;
648
+ noteIndex?: number;
647
649
  }
648
650
  interface NoteComponentProps {
649
651
  onAdd?: (items: NoteProps, serveyId?: string) => void;
@@ -1109,8 +1111,6 @@ interface ITabProps extends AdditionalClassesProp {
1109
1111
  label: string;
1110
1112
  /** Unique identifier for the tab. */
1111
1113
  value: string;
1112
- /** Count value for the tab. */
1113
- count?: string;
1114
1114
  /** Active tab identifier (optional). */
1115
1115
  activeTab?: string;
1116
1116
  /** Callback on tab click (optional). */
@@ -1437,16 +1437,26 @@ declare const ButtonGroupMultiSelect: React__default.FC<ButtonGroupMultiProps>;
1437
1437
  interface CheckboxProps {
1438
1438
  id?: string;
1439
1439
  checked?: boolean;
1440
- onChange: (id?: string) => void;
1440
+ onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
1441
1441
  addtionalClasses?: string;
1442
+ noteId?: string;
1443
+ noteIndex?: number;
1442
1444
  }
1443
1445
  declare const CheckBoxComponent: React__default.FC<CheckboxProps>;
1444
1446
 
1447
+ interface ITodoToggleRequestParams {
1448
+ noteId?: string;
1449
+ toggleOptions: {
1450
+ noteIndex: number;
1451
+ check: boolean;
1452
+ };
1453
+ }
1445
1454
  interface todosProps {
1446
1455
  urgentDataList: UrgentDataProps[];
1447
1456
  listMasterData?: ListMasterDataProps;
1448
1457
  detailAction?: (rowId: string | undefined) => void;
1449
1458
  handleNameClick?: (id?: string) => void;
1459
+ toggleDashboardTodoCheckbox?: (req: ITodoToggleRequestParams) => Promise<any>;
1450
1460
  }
1451
1461
  declare const Todos: React__default.FC<todosProps>;
1452
1462
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.12.163",
3
+ "version": "1.12.165",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { IInputProps } from "../../../shared/models/components/base.model";
3
- /**
4
- * Primary UI component for user interaction
5
- */
6
- declare const AutoResizeTextarea: React.FC<IInputProps>;
7
- export default AutoResizeTextarea;
@@ -1 +0,0 @@
1
- export { default as AutoResizeTextarea } from "./AutoResizeTextarea";
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { IInputProps } from "../../../shared/models/components/base.model";
3
- /**
4
- * Primary UI component for user interaction
5
- */
6
- declare const AutoResizeTextarea: React.FC<IInputProps>;
7
- export default AutoResizeTextarea;
@@ -1 +0,0 @@
1
- export { default as AutoResizeTextarea } from "./AutoResizeTextarea";