@ukpc-lib/react 0.13.7 → 0.13.8

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/components/Notification/NotificationList/components/NotitficationItem.d.ts +5 -2
  2. package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
  3. package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
  4. package/dist/components/index.cjs +20 -20
  5. package/dist/components/index.js +3206 -3223
  6. package/dist/{index.esm2017-9AyxX2BH.js → index.esm2017-81ft1FRl.js} +13279 -13096
  7. package/dist/{index.esm2017-BtTWLbPn.cjs → index.esm2017-CCVnVHX2.cjs} +121 -121
  8. package/dist/share/index.cjs +1 -1
  9. package/dist/share/index.js +13 -13
  10. package/package.json +3 -4
  11. package/web-components-bundle/access-denied/index.js +2 -2
  12. package/web-components-bundle/base-breadcrumbs/index.js +2 -2
  13. package/web-components-bundle/favorite-menu/index.js +4 -4
  14. package/web-components-bundle/global-menu/index.js +4 -4
  15. package/web-components-bundle/global-topbar/index.js +6 -6
  16. package/web-components-bundle/has-permission/index.js +3 -3
  17. package/web-components-bundle/{index-D8L3hULW.js → index-ANQjrjYO.js} +15649 -15104
  18. package/web-components-bundle/{index-Cx0zTfOC.js → index-BSe1av43.js} +1 -1
  19. package/web-components-bundle/{index-DE6E5mlm.js → index-CxiIFyUv.js} +561 -557
  20. package/web-components-bundle/{index-FiNgB-mv.js → index-DnBVPOmu.js} +4 -5
  21. package/web-components-bundle/page-not-found/index.js +3 -2
  22. package/web-components-bundle/{react-to-web-component-D7SoYMky.js → react-to-web-component-CXwKHjZr.js} +1527 -1535
  23. package/web-components-bundle/{react-toastify.esm-Y1WvK90L.js → react-toastify.esm-CrTD7cpE.js} +1 -1
  24. package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
  25. package/web-components-bundle/toast-config/index.js +2 -2
  26. package/web-components-bundle/toast-config-notification/index.js +2 -2
  27. package/web-components-bundle/index.css +0 -1
  28. package/web-components-bundle/index2.css +0 -1
@@ -1,13 +1,16 @@
1
1
  import { NotificationItemDto } from '../../models/NotiticationDto';
2
2
  import { ColorsType } from '../../../../theme';
3
+ import { default as React } from 'react';
3
4
 
4
5
  type ItemProps = {
5
6
  notification: NotificationItemDto;
6
7
  handleUpdateRead?: (id: number, isRead: boolean) => void;
7
- baseUrl: string;
8
8
  notiPath: string | undefined;
9
9
  markAllAsReadState?: boolean;
10
10
  brandColors?: ColorsType;
11
+ onMark?: (id: number, isRead: boolean, notiPath?: string) => void;
12
+ showDetail?: boolean;
13
+ onToggleDetail?: () => void;
11
14
  };
12
- declare const NotitficationItem: ({ notification, baseUrl, notiPath, markAllAsReadState, brandColors, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const NotitficationItem: React.MemoExoticComponent<({ notification, notiPath, markAllAsReadState, brandColors, onMark, showDetail, onToggleDetail, }: ItemProps) => import("react/jsx-runtime").JSX.Element>;
13
16
  export default NotitficationItem;
@@ -1,3 +1,3 @@
1
1
  import { NotiDataType } from '../../models/NotiticationDto';
2
2
 
3
- export declare const useGetNotiData: ({ baseUrl, notiPath, setNotiData, }: NotiDataType) => () => Promise<void>;
3
+ export declare const useGetNotiData: ({ baseUrl, notiPath, setNotiData, }: NotiDataType) => (page?: number, pageSize?: number, tabType?: "all" | "unread") => Promise<any>;
@@ -1,13 +1,14 @@
1
1
  import { ColorsType } from '../../../theme';
2
2
 
3
3
  export interface NotificationItemProps {
4
- notidata: NotificationItemDto[];
5
4
  handleUpdateReadAll?: () => void;
6
5
  handleUpdateRead?: (id: number, isRead: boolean) => void;
7
6
  baseUrl: string;
8
7
  notiPath?: string;
9
8
  brandColors?: ColorsType;
10
9
  notiUnreadNumber?: number;
10
+ tabType: 'all' | 'unread';
11
+ popupRef: React.RefObject<HTMLDivElement>;
11
12
  }
12
13
  export declare class Paging<T> {
13
14
  rows: T[];
@@ -47,7 +48,6 @@ export type NotificationApiProps = {
47
48
  brandColors?: ColorsType;
48
49
  };
49
50
  type NotificationType = {
50
- rows: NotificationItemDto[];
51
51
  total: number;
52
52
  };
53
53
  export type AllNotificationType = {