@crystaldesign/diva-navigator 26.6.0 → 26.7.0-beta.10
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 +1317 -445
- package/build/types/navigator/src/DropdownContainer/index.d.ts +12 -0
- package/build/types/navigator/src/DropdownContainer/index.d.ts.map +1 -0
- package/build/types/navigator/src/Header/Notifications/Dropdown.d.ts +1 -6
- 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 +3 -4
- package/build/types/navigator/src/Header/Notifications/index.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/stateUtils.d.ts +4 -1
- package/build/types/navigator/src/Header/Notifications/stateUtils.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/types.d.ts +2 -4
- package/build/types/navigator/src/Header/Notifications/types.d.ts.map +1 -1
- package/build/types/navigator/src/Header/Notifications/useNotifications.d.ts +1 -10
- 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/OrganizationSelection/SearchField/index.d.ts +8 -0
- package/build/types/navigator/src/OrganizationSelection/SearchField/index.d.ts.map +1 -0
- package/build/types/navigator/src/OrganizationSelection/TextElement.d.ts +8 -0
- package/build/types/navigator/src/OrganizationSelection/TextElement.d.ts.map +1 -0
- package/build/types/navigator/src/OrganizationSelection/index.d.ts +38 -0
- package/build/types/navigator/src/OrganizationSelection/index.d.ts.map +1 -0
- package/build/types/navigator/src/OrganizationSelection/useCurrentSelected.d.ts +6 -0
- package/build/types/navigator/src/OrganizationSelection/useCurrentSelected.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 +1 -3
- package/build/types/navigator/src/Profil/index.d.ts.map +1 -1
- package/build/types/navigator/src/index.d.ts +3 -0
- package/build/types/navigator/src/index.d.ts.map +1 -1
- package/package.json +2 -4
- package/build/types/navigator/src/HeaderDropdownPopper/index.d.ts +0 -15
- package/build/types/navigator/src/HeaderDropdownPopper/index.d.ts.map +0 -1
- package/build/types/navigator/src/tests/unit/Header/Notifications/PopupContent.test.d.ts +0 -2
- package/build/types/navigator/src/tests/unit/Header/Notifications/PopupContent.test.d.ts.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -2,17 +2,12 @@ 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;
|
|
7
5
|
items: NotificationListItem[];
|
|
8
6
|
loading: boolean;
|
|
9
|
-
loadingMore: boolean;
|
|
10
|
-
hasMore: boolean;
|
|
11
7
|
errorMessage?: string;
|
|
12
8
|
onSelect: (id: string) => void;
|
|
13
9
|
onRefresh: () => void;
|
|
14
|
-
onLoadMore: () => void;
|
|
15
10
|
}
|
|
16
|
-
export default function NotificationsDropdown({ open,
|
|
11
|
+
export default function NotificationsDropdown({ open, items, loading: isLoading, errorMessage, onSelect, onRefresh }: Props): React.JSX.Element;
|
|
17
12
|
export {};
|
|
18
13
|
//# 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,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAiBpD,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,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;CACvB;AAOD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,KAAK,qBAqD1H"}
|
|
@@ -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;AAE1B,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,qBAUvE"}
|
|
@@ -7,9 +7,9 @@ export interface NotificationsApiContext {
|
|
|
7
7
|
messageService: string;
|
|
8
8
|
jwt: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function fetchNotifications(userId: string,
|
|
10
|
+
export declare function fetchNotifications(userId: string, { limit, offset }: {
|
|
11
11
|
limit: number;
|
|
12
|
-
|
|
12
|
+
offset: number;
|
|
13
13
|
}, { messageService, jwt }: NotificationsApiContext): Promise<NotificationListResponse>;
|
|
14
|
-
export declare function fetchNotification(userId: string, communicationId: string,
|
|
14
|
+
export declare function fetchNotification(userId: string, communicationId: 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,
|
|
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,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACpD,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,EAAE,cAAc,EAAE,GAAG,EAAE,EAAE,uBAAuB,GAC/C,OAAO,CAAC,YAAY,CAAC,CAUvB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
open: boolean;
|
|
3
|
+
totalUnread: number;
|
|
5
4
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
5
|
}
|
|
7
|
-
|
|
8
|
-
export
|
|
6
|
+
export default function NotificationsBell({ totalUnread, onClick }: Props): React.JSX.Element;
|
|
7
|
+
export {};
|
|
9
8
|
//# 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,
|
|
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,OAAO,UAAU,iBAAiB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,KAAK,qBAkBxE"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { NotificationListItem } from './types';
|
|
2
|
-
export declare function applyMarkReadUpdate(items: NotificationListItem[], communicationId: string):
|
|
2
|
+
export declare function applyMarkReadUpdate(items: NotificationListItem[], communicationId: string): {
|
|
3
|
+
items: NotificationListItem[];
|
|
4
|
+
decrement: boolean;
|
|
5
|
+
};
|
|
3
6
|
//# 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,CACjC,KAAK,EAAE,oBAAoB,EAAE,EAC7B,eAAe,EAAE,MAAM,GACtB;IAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAUvD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Configuration } from '@crystaldesign/content-item';
|
|
2
1
|
export interface NotificationListItem {
|
|
3
2
|
_id: string;
|
|
4
3
|
subject: string;
|
|
@@ -8,13 +7,12 @@ export interface NotificationListItem {
|
|
|
8
7
|
export interface NotificationListResponse {
|
|
9
8
|
data: NotificationListItem[];
|
|
10
9
|
total: number;
|
|
11
|
-
|
|
10
|
+
totalUnread: number;
|
|
12
11
|
}
|
|
13
12
|
export interface Notification {
|
|
14
13
|
_id: string;
|
|
15
14
|
subject: string;
|
|
16
|
-
content
|
|
17
|
-
contentItem?: Configuration;
|
|
15
|
+
content: string;
|
|
18
16
|
sentAt: number;
|
|
19
17
|
readAt: number;
|
|
20
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/Header/Notifications/types.ts"],"names":[],"mappings":"AAAA,
|
|
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;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,25 +1,16 @@
|
|
|
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
|
-
*/
|
|
7
3
|
export interface NotificationsState {
|
|
8
4
|
enabled: boolean;
|
|
9
|
-
|
|
10
|
-
totalUnseen: number;
|
|
5
|
+
totalUnread: number;
|
|
11
6
|
open: boolean;
|
|
12
|
-
/** `hasRead` per item drives the dropdown row styling (separate concept; reads are not the same as seens). */
|
|
13
7
|
items: NotificationListItem[];
|
|
14
8
|
loading: boolean;
|
|
15
|
-
loadingMore: boolean;
|
|
16
|
-
hasMore: boolean;
|
|
17
9
|
errorMessage?: string;
|
|
18
10
|
onBellClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
11
|
onSelect: (id: string) => void;
|
|
20
12
|
setOpen: (open: boolean) => void;
|
|
21
13
|
onRefresh: () => void;
|
|
22
|
-
onLoadMore: () => void;
|
|
23
14
|
}
|
|
24
15
|
export default function useNotifications(): NotificationsState;
|
|
25
16
|
//# 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;AAEpD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,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;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,IAAI,kBAAkB,CAkH7D"}
|
|
@@ -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,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,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<HTMLImageElement>) => 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,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,UAAU,6BAA8B,KAAK,sBAyClD,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,KAA8B,MAAM,OAAO,CAAC;;AAmBnD,wBAgGG"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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;AAIvC,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,9 +2,7 @@ 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;
|
|
7
5
|
}
|
|
8
|
-
export default function ({ open, setOpen
|
|
6
|
+
export default function ({ open, setOpen }: Props): React.JSX.Element;
|
|
9
7
|
export {};
|
|
10
8
|
//# 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;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,qBAsDhD"}
|
|
@@ -6,5 +6,8 @@ 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';
|
|
9
12
|
//# sourceMappingURL=index.d.ts.map
|
|
10
13
|
|
|
@@ -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;AAC7B,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-navigator",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.7.0-beta.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
"react-dom": "18.3.1"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@crystaldesign/content-item": "26.6.0",
|
|
14
|
-
"@crystaldesign/organization-selection": "26.6.0",
|
|
15
13
|
"classnames": "^2.5.1",
|
|
16
14
|
"fuse.js": "^7.0.0",
|
|
17
15
|
"html5-qrcode": "^2.3.8",
|
|
@@ -27,5 +25,5 @@
|
|
|
27
25
|
},
|
|
28
26
|
"module": "build/esm/index.js",
|
|
29
27
|
"types": "./build/types/navigator/src/index.d.ts",
|
|
30
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f1801f61d8499e919ab175006ec36bfab3a82dd6"
|
|
31
29
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/build/types/navigator/src/tests/unit/Header/Notifications/PopupContent.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PopupContent.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/tests/unit/Header/Notifications/PopupContent.test.tsx"],"names":[],"mappings":""}
|