@crystaldesign/diva-navigator 26.7.0-beta.2 → 26.7.0-beta.20
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/build/esm/index.js +445 -1317
- package/build/types/navigator/src/Header/Notifications/Dropdown.d.ts +6 -1
- package/build/types/navigator/src/Header/Notifications/Dropdown.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/PopupContent.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/api.d.ts +3 -3
- package/build/types/navigator/src/Header/Notifications/api.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/index.d.ts +4 -3
- package/build/types/navigator/src/Header/Notifications/index.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/stateUtils.d.ts +1 -4
- package/build/types/navigator/src/Header/Notifications/stateUtils.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/types.d.ts +4 -2
- package/build/types/navigator/src/Header/Notifications/types.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/useNotifications.d.ts +10 -1
- package/build/types/navigator/src/Header/Notifications/useNotifications.d.ts.map +1 -1
- package/build/types/navigator/src/Header/OrganizationName/index.d.ts +1 -1
- package/build/types/navigator/src/Header/OrganizationName/index.d.ts.map +1 -1
- package/build/types/navigator/src/Header/ProfileImg/index.d.ts +1 -1
- package/build/types/navigator/src/Header/ProfileImg/index.d.ts.map +1 -1
- package/build/types/navigator/src/Header/index.d.ts.map +1 -1
- package/build/types/navigator/src/HeaderDropdownPopper/index.d.ts +15 -0
- package/build/types/navigator/src/HeaderDropdownPopper/index.d.ts.map +1 -0
- package/build/types/navigator/src/OrganizationSelector/index.d.ts.map +1 -1
- package/build/types/navigator/src/Profil/index.d.ts +3 -1
- package/build/types/navigator/src/Profil/index.d.ts.map +1 -1
- package/build/types/navigator/src/index.d.ts +0 -3
- package/build/types/navigator/src/index.d.ts.map +1 -1
- package/build/types/navigator/src/tests/unit/Header/Notifications/PopupContent.test.d.ts +2 -0
- package/build/types/navigator/src/tests/unit/Header/Notifications/PopupContent.test.d.ts.map +1 -0
- package/package.json +4 -2
- package/build/types/navigator/src/DropdownContainer/index.d.ts +0 -12
- package/build/types/navigator/src/DropdownContainer/index.d.ts.map +0 -1
- package/build/types/navigator/src/OrganizationSelection/SearchField/index.d.ts +0 -8
- package/build/types/navigator/src/OrganizationSelection/SearchField/index.d.ts.map +0 -1
- package/build/types/navigator/src/OrganizationSelection/TextElement.d.ts +0 -8
- package/build/types/navigator/src/OrganizationSelection/TextElement.d.ts.map +0 -1
- package/build/types/navigator/src/OrganizationSelection/index.d.ts +0 -38
- package/build/types/navigator/src/OrganizationSelection/index.d.ts.map +0 -1
- package/build/types/navigator/src/OrganizationSelection/useCurrentSelected.d.ts +0 -6
- package/build/types/navigator/src/OrganizationSelection/useCurrentSelected.d.ts.map +0 -1
|
@@ -2,12 +2,17 @@ import React from 'react';
|
|
|
2
2
|
import type { NotificationListItem } from './types';
|
|
3
3
|
interface Props {
|
|
4
4
|
open: boolean;
|
|
5
|
+
anchorEl: HTMLElement | null;
|
|
6
|
+
onClose: () => void;
|
|
5
7
|
items: NotificationListItem[];
|
|
6
8
|
loading: boolean;
|
|
9
|
+
loadingMore: boolean;
|
|
10
|
+
hasMore: boolean;
|
|
7
11
|
errorMessage?: string;
|
|
8
12
|
onSelect: (id: string) => void;
|
|
9
13
|
onRefresh: () => void;
|
|
14
|
+
onLoadMore: () => void;
|
|
10
15
|
}
|
|
11
|
-
export default function NotificationsDropdown({ open, items, loading: isLoading, errorMessage, onSelect, onRefresh }: Props): React.JSX.Element;
|
|
16
|
+
export default function NotificationsDropdown({ open, anchorEl, onClose, items, loading: isLoading, loadingMore: isLoadingMore, hasMore, errorMessage, onSelect, onRefresh, onLoadMore, }: Props): React.JSX.Element;
|
|
12
17
|
export {};
|
|
13
18
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAkBpD,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAKD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EAAE,SAAS,EAClB,WAAW,EAAE,aAAa,EAC1B,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,KAAK,qBAoFP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupContent.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/PopupContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PopupContent.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/PopupContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,UAAU,KAAK;IACb,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,qBAoBvE"}
|
|
@@ -7,9 +7,9 @@ export interface NotificationsApiContext {
|
|
|
7
7
|
messageService: string;
|
|
8
8
|
jwt: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function fetchNotifications(userId: string, { limit,
|
|
10
|
+
export declare function fetchNotifications(userId: string, lang: string, { limit, skip }: {
|
|
11
11
|
limit: number;
|
|
12
|
-
|
|
12
|
+
skip: number;
|
|
13
13
|
}, { messageService, jwt }: NotificationsApiContext): Promise<NotificationListResponse>;
|
|
14
|
-
export declare function fetchNotification(userId: string, communicationId: string, { messageService, jwt }: NotificationsApiContext): Promise<Notification>;
|
|
14
|
+
export declare function fetchNotification(userId: string, communicationId: string, lang: string, { messageService, jwt }: NotificationsApiContext): Promise<Notification>;
|
|
15
15
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEtE,qBAAa,qBAAsB,SAAQ,KAAK;aAClB,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;CAI3C;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AASD,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEtE,qBAAa,qBAAsB,SAAQ,KAAK;aAClB,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM;CAI3C;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AASD,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAChD,EAAE,cAAc,EAAE,GAAG,EAAE,EAAE,uBAAuB,GAC/C,OAAO,CAAC,wBAAwB,CAAC,CAUnC;AAED,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,EAAE,cAAc,EAAE,GAAG,EAAE,EAAE,uBAAuB,GAC/C,OAAO,CAAC,YAAY,CAAC,CAUvB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
3
|
+
totalUnseen: number;
|
|
4
|
+
open: boolean;
|
|
4
5
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
export
|
|
7
|
+
declare const NotificationsBell: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default NotificationsBell;
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,QAAA,MAAM,iBAAiB,8EAqBrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { NotificationListItem } from './types';
|
|
2
|
-
export declare function applyMarkReadUpdate(items: NotificationListItem[], communicationId: string):
|
|
3
|
-
items: NotificationListItem[];
|
|
4
|
-
decrement: boolean;
|
|
5
|
-
};
|
|
2
|
+
export declare function applyMarkReadUpdate(items: NotificationListItem[], communicationId: string): NotificationListItem[];
|
|
6
3
|
//# sourceMappingURL=stateUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stateUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/stateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"stateUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/stateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,eAAe,EAAE,MAAM,GAAG,oBAAoB,EAAE,CAOlH"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Configuration } from '@crystaldesign/content-item';
|
|
1
2
|
export interface NotificationListItem {
|
|
2
3
|
_id: string;
|
|
3
4
|
subject: string;
|
|
@@ -7,12 +8,13 @@ export interface NotificationListItem {
|
|
|
7
8
|
export interface NotificationListResponse {
|
|
8
9
|
data: NotificationListItem[];
|
|
9
10
|
total: number;
|
|
10
|
-
|
|
11
|
+
totalUnseen: number;
|
|
11
12
|
}
|
|
12
13
|
export interface Notification {
|
|
13
14
|
_id: string;
|
|
14
15
|
subject: string;
|
|
15
|
-
content
|
|
16
|
+
content?: string;
|
|
17
|
+
contentItem?: Configuration;
|
|
16
18
|
sentAt: number;
|
|
17
19
|
readAt: number;
|
|
18
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,oBAAoB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { NotificationListItem } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Notifications UI state. The bell badge and the dropdown row styling are driven by separate concepts:
|
|
5
|
+
* `totalUnseen` (badge visibility) and `items[].hasRead` (per-row "unread" styling). Reads are not the same as seens.
|
|
6
|
+
*/
|
|
3
7
|
export interface NotificationsState {
|
|
4
8
|
enabled: boolean;
|
|
5
|
-
|
|
9
|
+
/** Drives the bell badge count. */
|
|
10
|
+
totalUnseen: number;
|
|
6
11
|
open: boolean;
|
|
12
|
+
/** `hasRead` per item drives the dropdown row styling (separate concept; reads are not the same as seens). */
|
|
7
13
|
items: NotificationListItem[];
|
|
8
14
|
loading: boolean;
|
|
15
|
+
loadingMore: boolean;
|
|
16
|
+
hasMore: boolean;
|
|
9
17
|
errorMessage?: string;
|
|
10
18
|
onBellClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
19
|
onSelect: (id: string) => void;
|
|
12
20
|
setOpen: (open: boolean) => void;
|
|
13
21
|
onRefresh: () => void;
|
|
22
|
+
onLoadMore: () => void;
|
|
14
23
|
}
|
|
15
24
|
export default function useNotifications(): NotificationsState;
|
|
16
25
|
//# sourceMappingURL=useNotifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/useNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/useNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,8GAA8G;IAC9G,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAClE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,IAAI,kBAAkB,CA0I7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/OrganizationName/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/OrganizationName/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,gBAAgB,kDAAmD,KAAK,sBAe7E,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type Props = {
|
|
3
|
-
onClickProfile: (e: React.MouseEvent<
|
|
3
|
+
onClickProfile: (e: React.MouseEvent<HTMLElement>) => void;
|
|
4
4
|
open: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const ProfileImg: ({ onClickProfile, open }: Props) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/ProfileImg/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/ProfileImg/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,UAAU,6BAA8B,KAAK,sBAgDlD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;;AAmBxE,wBAkGG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { PopperProps } from '@mui/material/Popper';
|
|
3
|
+
interface Props {
|
|
4
|
+
open: boolean;
|
|
5
|
+
anchorEl: HTMLElement | null;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
placement?: PopperProps['placement'];
|
|
9
|
+
id?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export default function HeaderDropdownPopper({ open, anchorEl, onClose, maxHeight, placement, id, className, style, children, }: PropsWithChildren<Props>): React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/HeaderDropdownPopper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI3D,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAwB,EACxB,EAAE,EACF,SAAS,EACT,KAAK,EACL,QAAQ,GACT,EAAE,iBAAiB,CAAC,KAAK,CAAC,qBA6C1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/OrganizationSelector/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/OrganizationSelector/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,UAAU,KAAK;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AACD,QAAA,MAAM,SAAS,qBAAsB,KAAK,sBAuBzC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
open: boolean;
|
|
4
4
|
setOpen: (open: boolean) => void;
|
|
5
|
+
anchorEl: HTMLElement | null;
|
|
6
|
+
onClose: () => void;
|
|
5
7
|
}
|
|
6
|
-
export default function ({ open, setOpen }: Props): React.JSX.Element;
|
|
8
|
+
export default function ({ open, setOpen, anchorEl, onClose }: Props): React.JSX.Element;
|
|
7
9
|
export {};
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Profil/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Profil/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,qBAsDnE"}
|
|
@@ -6,8 +6,5 @@ interface Props {
|
|
|
6
6
|
}
|
|
7
7
|
declare const DivaNavigator: React.FC<Props>;
|
|
8
8
|
export default DivaNavigator;
|
|
9
|
-
import Selection from './OrganizationSelection';
|
|
10
|
-
export { Selection };
|
|
11
|
-
export type { Selected } from './OrganizationSelection';
|
|
12
9
|
//# sourceMappingURL=index.d.ts.map
|
|
13
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AACD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoDlC,CAAC;AAEF,eAAe,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AACD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoDlC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupContent.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/tests/unit/Header/Notifications/PopupContent.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-navigator",
|
|
3
|
-
"version": "26.7.0-beta.
|
|
3
|
+
"version": "26.7.0-beta.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"react-dom": "18.3.1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@crystaldesign/content-item": "26.7.0-beta.20",
|
|
14
|
+
"@crystaldesign/organization-selection": "26.7.0-beta.20",
|
|
13
15
|
"classnames": "^2.5.1",
|
|
14
16
|
"fuse.js": "^7.0.0",
|
|
15
17
|
"html5-qrcode": "^2.3.8",
|
|
@@ -25,5 +27,5 @@
|
|
|
25
27
|
},
|
|
26
28
|
"module": "build/esm/index.js",
|
|
27
29
|
"types": "./build/types/navigator/src/index.d.ts",
|
|
28
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "20a6cdac61b534890666de048e0b46eb3da6b568"
|
|
29
31
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
open: boolean;
|
|
4
|
-
maxHeight: number;
|
|
5
|
-
top?: number;
|
|
6
|
-
right?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
}
|
|
10
|
-
export default function DropdownContainer({ open, maxHeight, top, right, className, style, children }: PropsWithChildren<Props>): React.JSX.Element;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/DropdownContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIhE,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,qBAc9H"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/OrganizationSelection/SearchField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,WAAW,wBAAyB,KAAK,sBAiB9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { OrgData } from '.';
|
|
3
|
-
export default function TextElement({ data, onSelect, multi, }: {
|
|
4
|
-
data: OrgData;
|
|
5
|
-
multi?: boolean;
|
|
6
|
-
onSelect: (data: OrgData, select?: boolean) => void;
|
|
7
|
-
}): React.JSX.Element;
|
|
8
|
-
//# sourceMappingURL=TextElement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../../src/OrganizationSelection/TextElement.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAI5B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,QAAQ,EACR,KAAK,GACN,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD,qBAwEA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
onChange: (selected: Selected[]) => void;
|
|
4
|
-
current?: Selected[];
|
|
5
|
-
maxHeight?: string;
|
|
6
|
-
multi?: undefined;
|
|
7
|
-
root?: Selected;
|
|
8
|
-
setOrgsCount?: (count: number) => void;
|
|
9
|
-
}
|
|
10
|
-
interface MulitProp {
|
|
11
|
-
onChange: (selected: Selected[][]) => void;
|
|
12
|
-
setOrgsCount?: (count: number) => void;
|
|
13
|
-
current?: Selected[][];
|
|
14
|
-
maxHeight?: string;
|
|
15
|
-
multi: true;
|
|
16
|
-
root?: Selected;
|
|
17
|
-
}
|
|
18
|
-
export interface Selected {
|
|
19
|
-
_id: string;
|
|
20
|
-
displayName: string;
|
|
21
|
-
type?: string;
|
|
22
|
-
hasChildren?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface OrgData {
|
|
25
|
-
_id: string;
|
|
26
|
-
displayName: string;
|
|
27
|
-
parent?: string;
|
|
28
|
-
hasChildren?: boolean;
|
|
29
|
-
isSelected?: boolean;
|
|
30
|
-
open?: boolean;
|
|
31
|
-
children?: OrgData[];
|
|
32
|
-
parentOrganizations?: OrgData[];
|
|
33
|
-
total?: number;
|
|
34
|
-
type?: string;
|
|
35
|
-
}
|
|
36
|
-
export default function ({ onChange, setOrgsCount, current, maxHeight, multi, root }: Props | MulitProp): React.JSX.Element;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/OrganizationSelection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,UAAU,KAAK;IACb,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED,UAAU,SAAS;IACjB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,KAAK,GAAG,SAAS,qBA6WtG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCurrentSelected.d.ts","sourceRoot":"","sources":["../../../../../src/OrganizationSelection/useCurrentSelected.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE;;;EAW3D"}
|