@ukpc-lib/react 0.13.1-dev.2 → 0.13.1-dev.21

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 (41) hide show
  1. package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
  2. package/dist/components/GlobalMenu/data.json.d.ts +2627 -2582
  3. package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +5 -2
  4. package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
  5. package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
  6. package/dist/components/PopUp/types.d.ts +1 -1
  7. package/dist/components/Topbar/index.d.ts +2 -0
  8. package/dist/components/index.cjs +21 -21
  9. package/dist/components/index.js +3282 -3303
  10. package/dist/components/main.d.ts +1 -0
  11. package/dist/index.esm2017-C_B_8-Rt.cjs +1078 -0
  12. package/dist/{index.esm2017-gn4YavpL.js → index.esm2017-DVluJw-p.js} +16555 -16215
  13. package/dist/share/AuthProvider/index.d.ts +4 -1
  14. package/dist/share/helpers/index.d.ts +1 -0
  15. package/dist/share/hooks/index.d.ts +1 -0
  16. package/dist/share/hooks/useSyncBackdrop.d.ts +4 -0
  17. package/dist/share/hooks/useSyncRouter.d.ts +1 -1
  18. package/dist/share/index.cjs +1 -1
  19. package/dist/share/index.js +86 -63
  20. package/package.json +1 -1
  21. package/web-components-bundle/SaasThemeProvider-8W2MaSUF.js +242 -0
  22. package/web-components-bundle/access-denied/index.js +2 -2
  23. package/web-components-bundle/base-breadcrumbs/index.js +4 -3
  24. package/web-components-bundle/favorite-menu/index.js +7 -6
  25. package/web-components-bundle/global-menu/index.js +6 -5
  26. package/web-components-bundle/global-topbar/index.js +9 -8
  27. package/web-components-bundle/has-permission/index.js +3 -3
  28. package/web-components-bundle/helpers/index.js +14 -0
  29. package/web-components-bundle/{index-Cx0zTfOC.js → index-BtUzqnTK.js} +11 -9
  30. package/web-components-bundle/{index-B8-7QZsi.js → index-CAmMT_XN.js} +1748 -1980
  31. package/web-components-bundle/{index-BbpYFIqc.js → index-CNRqfpBd.js} +25005 -24314
  32. package/web-components-bundle/{index-B2-j-GrO.js → index-DSTem_oO.js} +5 -4
  33. package/web-components-bundle/index.css +1 -0
  34. package/web-components-bundle/index2.css +1 -0
  35. package/web-components-bundle/page-not-found/index.js +4 -4
  36. package/web-components-bundle/{react-to-web-component-D7SoYMky.js → react-to-web-component-CXwKHjZr.js} +1527 -1535
  37. package/web-components-bundle/{react-toastify.esm-Y1WvK90L.js → react-toastify.esm-CrTD7cpE.js} +1 -1
  38. package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
  39. package/web-components-bundle/toast-config/index.js +2 -2
  40. package/web-components-bundle/toast-config-notification/index.js +2 -2
  41. package/dist/index.esm2017-D_jfQoO6.cjs +0 -1078
@@ -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 = {
@@ -15,7 +15,7 @@ export type PopUpBaseProps = IPopUp & {
15
15
  export type IPopUp = {
16
16
  open: boolean;
17
17
  onClose?(): void;
18
- onConfirm?: () => void;
18
+ onConfirm?: () => any;
19
19
  dialogProps?: Omit<DialogProps, 'open' | 'onClose'>;
20
20
  dialogActionsProps?: DialogActionsProps;
21
21
  customActions?: ReactNode;
@@ -15,6 +15,8 @@ type TopBarContentProps = {
15
15
  isFetching?: boolean;
16
16
  customElement?: ReactNode;
17
17
  isBrand?: boolean;
18
+ disabledLogoClick?: boolean;
19
+ onLogoClick?: () => void;
18
20
  };
19
21
  export declare function LanguageDropdown(): import("react/jsx-runtime").JSX.Element;
20
22
  type TopBarProps = Omit<TopBarContentProps, 'logout' | 'user' | 'isFetching'>;