@mparticle/aquarium 1.61.0-operation-prism-shift.1 → 1.61.0-operation-prism-shift.3
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/dist/aquarium.js +27036 -0
- package/dist/aquarium.umd.cjs +252 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/UXPatterns/MoreActionsButton/MoreActionsButton.d.ts +18 -0
- package/dist/src/components/UXPatterns/UnauthorizedTooltip/UnauthorizedTooltip.d.ts +9 -0
- package/dist/src/components/data-display/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/data-display/Badge/Badge.d.ts +11 -0
- package/dist/src/components/data-display/Card/Card.d.ts +12 -0
- package/dist/src/components/data-display/Collapse/Collapse.d.ts +10 -0
- package/dist/src/components/data-display/Descriptions/Descriptions.d.ts +11 -0
- package/dist/src/components/data-display/Empty/Empty.d.ts +36 -0
- package/dist/src/components/data-display/Image/Image.d.ts +11 -0
- package/dist/src/components/data-display/List/List.d.ts +9 -0
- package/dist/src/components/data-display/Popover/Popover.d.ts +5 -0
- package/dist/src/components/data-display/Segmented/Segmented.d.ts +7 -0
- package/dist/src/components/data-display/Table/Table.d.ts +21 -0
- package/dist/src/components/data-display/Tabs/Tabs.d.ts +10 -0
- package/dist/src/components/data-display/Tag/Tag.d.ts +13 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/components/data-display/Tour/Tour.d.ts +5 -0
- package/dist/src/components/data-entry/AutoComplete/AutoComplete.d.ts +5 -0
- package/dist/src/components/data-entry/Cascader/Cascader.d.ts +11 -0
- package/dist/src/components/data-entry/Checkbox/Checkbox.d.ts +11 -0
- package/dist/src/components/data-entry/DatePicker/DatePicker.d.ts +78 -0
- package/dist/src/components/data-entry/Form/Form.d.ts +28 -0
- package/dist/src/components/data-entry/Input/Input.d.ts +14 -0
- package/dist/src/components/data-entry/InputNumber/InputNumber.d.ts +5 -0
- package/dist/src/components/data-entry/QueryItem/Action.d.ts +10 -0
- package/dist/src/components/data-entry/QueryItem/Cascader.d.ts +27 -0
- package/dist/src/components/data-entry/QueryItem/NumberInput.d.ts +16 -0
- package/dist/src/components/data-entry/QueryItem/Qualifier.d.ts +16 -0
- package/dist/src/components/data-entry/QueryItem/QueryItem.d.ts +17 -0
- package/dist/src/components/data-entry/QueryItem/Text.d.ts +11 -0
- package/dist/src/components/data-entry/QueryItem/TextInput.d.ts +10 -0
- package/dist/src/components/data-entry/QueryItem/ValueSelector.d.ts +11 -0
- package/dist/src/components/data-entry/Radio/Radio.d.ts +11 -0
- package/dist/src/components/data-entry/Radio/RadioButton.d.ts +5 -0
- package/dist/src/components/data-entry/Radio/RadioGroup.d.ts +5 -0
- package/dist/src/components/data-entry/Select/Select.d.ts +14 -0
- package/dist/src/components/data-entry/Switch/Switch.d.ts +5 -0
- package/dist/src/components/data-entry/TimePicker/TimePicker.d.ts +11 -0
- package/dist/src/components/data-entry/TreeSelect/TreeSelect.d.ts +14 -0
- package/dist/src/components/data-entry/Upload/Upload.d.ts +16 -0
- package/dist/src/components/feedback/Alert/Alert.d.ts +13 -0
- package/dist/src/components/feedback/Drawer/Drawer.d.ts +5 -0
- package/dist/src/components/feedback/LoadingModal/LoadingModal.d.ts +8 -0
- package/dist/src/components/feedback/Message/Message.d.ts +23 -0
- package/dist/src/components/feedback/Modal/DeleteConfirmModal/DeleteConfirmModal.d.ts +14 -0
- package/dist/src/components/feedback/Modal/ErrorModal/ErrorModal.d.ts +9 -0
- package/dist/src/components/feedback/Modal/Modal.d.ts +16 -0
- package/dist/src/components/feedback/Notification/Notification.d.ts +22 -0
- package/dist/src/components/feedback/Popconfirm/Popconfirm.d.ts +5 -0
- package/dist/src/components/feedback/Progress/Progress.d.ts +5 -0
- package/dist/src/components/feedback/Result/Result.d.ts +17 -0
- package/dist/src/components/feedback/Skeleton/Skeleton.d.ts +19 -0
- package/dist/src/components/feedback/Spin/Spin.d.ts +10 -0
- package/dist/src/components/general/Button/Button.d.ts +18 -0
- package/dist/src/components/general/FloatButton/FloatButton.d.ts +12 -0
- package/dist/src/components/general/Icon/ErrorStateIcon/ErrorStateIcon.d.ts +9 -0
- package/dist/src/components/general/Icon/Icon.d.ts +12 -0
- package/dist/src/components/general/Icon/SuccessStateIcon/SuccessStateIcon.d.ts +9 -0
- package/dist/src/components/general/Icon/WarningStateIcon/WarningStateIcon.d.ts +9 -0
- package/dist/src/components/general/Typography/Typography.d.ts +35 -0
- package/dist/src/components/general/Typography/colors.d.ts +3 -0
- package/dist/src/components/icons/index.d.ts +140 -0
- package/dist/src/components/index.d.ts +99 -0
- package/dist/src/components/layout/Center/Center.d.ts +3 -0
- package/dist/src/components/layout/Divider/Divider.d.ts +5 -0
- package/dist/src/components/layout/Flex/Flex.d.ts +5 -0
- package/dist/src/components/layout/Grid/Grid.d.ts +6 -0
- package/dist/src/components/layout/Layout/Layout.d.ts +13 -0
- package/dist/src/components/layout/Space/Space.d.ts +11 -0
- package/dist/src/components/layout/Splitter/Splitter.d.ts +23 -0
- package/dist/src/components/navigation/Anchor/Anchor.d.ts +10 -0
- package/dist/src/components/navigation/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/src/components/navigation/Dropdown/Dropdown.d.ts +11 -0
- package/dist/src/components/navigation/GlobalNavigation/GlobalNavigation.d.ts +46 -0
- package/dist/src/components/navigation/GlobalNavigation/HomeButton.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationButtonItem.d.ts +9 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationCreate.d.ts +20 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationIcon.d.ts +11 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationItem.d.ts +15 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationList.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationMenu.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/NavigationSearch.d.ts +6 -0
- package/dist/src/components/navigation/GlobalNavigation/NotificationCenter.d.ts +9 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteLogo.d.ts +7 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelector.d.ts +11 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorContent.d.ts +5 -0
- package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorSuiteLink.d.ts +10 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceNoResults.d.ts +2 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelector.d.ts +12 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContent.d.ts +18 -0
- package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelectorContentItems.d.ts +7 -0
- package/dist/src/components/navigation/GlobalNavigation/stories-utils.d.ts +2 -0
- package/dist/src/components/navigation/Menu/Menu.d.ts +24 -0
- package/dist/src/components/navigation/Pagination/Pagination.d.ts +5 -0
- package/dist/src/components/navigation/Steps/Steps.d.ts +5 -0
- package/dist/src/components/not-prod-ready/Affix/Affix.d.ts +5 -0
- package/dist/src/components/not-prod-ready/Calendar/Calendar.d.ts +13 -0
- package/dist/src/components/not-prod-ready/Carousel/Carousel.d.ts +5 -0
- package/dist/src/components/not-prod-ready/ColorPicker/ColorPicker.d.ts +5 -0
- package/dist/src/components/not-prod-ready/QRCode/QRCode.d.ts +5 -0
- package/dist/src/components/not-prod-ready/Rate/Rate.d.ts +5 -0
- package/dist/src/components/not-prod-ready/Slider/Slider.d.ts +5 -0
- package/dist/src/components/not-prod-ready/Statistic/Statistic.d.ts +15 -0
- package/dist/src/components/not-prod-ready/Timeline/Timeline.d.ts +10 -0
- package/dist/src/components/not-prod-ready/Transfer/Transfer.d.ts +16 -0
- package/dist/src/components/not-prod-ready/Tree/Tree.d.ts +19 -0
- package/dist/src/components/not-prod-ready/Watermark/Watermark.d.ts +5 -0
- package/dist/src/constants/ChartColors.d.ts +1 -0
- package/dist/src/constants/ChartConfig.d.ts +8 -0
- package/dist/src/constants/Icons.d.ts +2 -0
- package/dist/src/hooks/NewExperienceReminder/useNewExperienceReminder.d.ts +14 -0
- package/dist/src/hooks/useInitData.d.ts +1 -0
- package/dist/src/hooks/useMount.d.ts +1 -0
- package/dist/src/hooks/useUnMount.d.ts +1 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.d.ts +9 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/composite-user-preferences-service.spec.d.ts +1 -0
- package/dist/src/services/user-preferences/composite-user-preferences-service/index.d.ts +1 -0
- package/dist/src/services/user-preferences/index.d.ts +1 -0
- package/dist/src/services/user-preferences/models/definitions/index.d.ts +4 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-definition.d.ts +5 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-definitions.d.ts +4 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-per-scope.d.ts +4 -0
- package/dist/src/services/user-preferences/models/definitions/user-preference-scope-type.d.ts +6 -0
- package/dist/src/services/user-preferences/models/storage-models/index.d.ts +1 -0
- package/dist/src/services/user-preferences/models/storage-models/user-preference-scope.d.ts +8 -0
- package/dist/src/services/user-preferences/user-preferences-service.d.ts +19 -0
- package/dist/src/services/user-preferences/user-preferences-service.spec.d.ts +26 -0
- package/dist/src/shared/Operation.d.ts +178 -0
- package/dist/src/shared/Paths.d.ts +146 -0
- package/dist/src/shared/Suite.d.ts +9 -0
- package/dist/src/shared/UserPreferences.d.ts +12 -0
- package/dist/src/shared/Utils.d.ts +4 -0
- package/dist/src/shared/services/AudiencePermissionsService.d.ts +9 -0
- package/dist/src/shared/services/AuthorizationsService.d.ts +6 -0
- package/dist/src/shared/services/FeatureFlagsService.d.ts +54 -0
- package/dist/src/shared/services/InitializationService.d.ts +4 -0
- package/dist/src/shared/services/NavigationItemsService.d.ts +55 -0
- package/dist/src/shared/services/RoutesAuthorizationsService.d.ts +12 -0
- package/dist/src/shared/services/routeAuthorizations/anaytics-authorizations.d.ts +6 -0
- package/dist/src/shared/services/routeAuthorizations/base-routes-authorizations.d.ts +7 -0
- package/dist/src/shared/services/routeAuthorizations/customer-360-authorizations.d.ts +11 -0
- package/dist/src/shared/services/routeAuthorizations/data-platform-authorizations.d.ts +22 -0
- package/dist/src/shared/services/routeAuthorizations/data-warehouse-authorizations.d.ts +10 -0
- package/dist/src/shared/services/routeAuthorizations/oversight-authorizations.d.ts +13 -0
- package/dist/src/shared/services/routeAuthorizations/root-authorizations.d.ts +10 -0
- package/dist/src/shared/services/routeAuthorizations/segmentation-authorizations.d.ts +10 -0
- package/dist/src/styles/style.d.ts +425 -0
- package/dist/src/types/icons.d.ts +14 -0
- package/dist/src/utils/Cookies.d.ts +15 -0
- package/dist/src/utils/ExampleStory.d.ts +9 -0
- package/dist/src/utils/GetGlobalToken.d.ts +2 -0
- package/dist/src/utils/debounce.d.ts +1 -0
- package/dist/src/utils/svg-prettifier/SvgPrettifier.d.ts +2 -0
- package/dist/src/utils/utils.d.ts +16 -0
- package/dist/src/utils/utils.spec.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/style.ts +437 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import type { SplitterProps as AntSplitterProps } from 'antd/es/splitter';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import { type PanelProps as AntPanelProps } from 'antd/es/splitter/interface';
|
|
5
|
+
export interface ISplitterProps extends AntSplitterProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface ISplitterPanelProps extends AntPanelProps {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
defaultSize?: string | number;
|
|
11
|
+
size?: string | number;
|
|
12
|
+
min?: string | number;
|
|
13
|
+
max?: string | number;
|
|
14
|
+
collapsible?: boolean | {
|
|
15
|
+
start?: boolean;
|
|
16
|
+
end?: boolean;
|
|
17
|
+
};
|
|
18
|
+
resizable?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const Splitter: {
|
|
21
|
+
(props: ISplitterProps): JSX.Element;
|
|
22
|
+
Panel: (props: ISplitterPanelProps) => JSX.Element;
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { AnchorLinkProps, type AnchorProps as AntAnchorProps } from 'antd';
|
|
5
|
+
export interface IAnchorProps extends AntAnchorProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const Anchor: {
|
|
8
|
+
(props: IAnchorProps): JSX.Element;
|
|
9
|
+
Link: FC<AnchorLinkProps>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { BreadcrumbItemProps, type BreadcrumbProps as AntBreadcrumbProps } from 'antd';
|
|
5
|
+
export interface IBreadcrumbProps extends AntBreadcrumbProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const Breadcrumb: {
|
|
8
|
+
(props: IBreadcrumbProps): JSX.Element;
|
|
9
|
+
Item: FC<BreadcrumbItemProps> & {
|
|
10
|
+
__ANT_BREADCRUMB_ITEM: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DropdownButtonProps } from 'antd/es/dropdown';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
/// <reference types="react" />
|
|
5
|
+
import { type DropdownProps as AntDropdownProps } from 'antd';
|
|
6
|
+
export interface IDropdownProps extends AntDropdownProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const Dropdown: {
|
|
9
|
+
(props: IDropdownProps): JSX.Element;
|
|
10
|
+
Button: FC<DropdownButtonProps>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { INewExperienceReminderOptions, NewExperienceReminderHook, type IGlobalNavigationLogo, type INavigationOrg, type INavigationCreateProps, type IAvatarProps } from '../..';
|
|
3
|
+
import { type IGlobalNavigationItem, type ISuiteSelectorOptions } from './GlobalNavigationItems';
|
|
4
|
+
import { type INotificationCenterProps } from './NotificationCenter';
|
|
5
|
+
export interface NotificationActions {
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onPreferencesClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface IGlobalNavigationProps {
|
|
10
|
+
logo: IGlobalNavigationLogo;
|
|
11
|
+
tools: IGlobalNavigationItem[];
|
|
12
|
+
management: IGlobalNavigationItem[];
|
|
13
|
+
orgs?: INavigationOrg[];
|
|
14
|
+
createItems?: INavigationCreateProps['createItems'];
|
|
15
|
+
onSearchClick?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* This will be removed once all the apps updated with unified nav.
|
|
19
|
+
*/
|
|
20
|
+
onSuiteLogoClick?: () => void;
|
|
21
|
+
onMpHomeClick: () => void;
|
|
22
|
+
hideMpHome?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* This will be removed once all the apps updated with unified nav.
|
|
26
|
+
*/
|
|
27
|
+
showSuiteLogo?: boolean;
|
|
28
|
+
avatarOptions?: IAvatarProps;
|
|
29
|
+
navigationButtonItemOptions?: {
|
|
30
|
+
label: string;
|
|
31
|
+
onClick: () => void;
|
|
32
|
+
withoutContainer?: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
* This will be removed once all the apps updated with unified nav.
|
|
37
|
+
*/
|
|
38
|
+
suiteSelectorOptions?: ISuiteSelectorOptions;
|
|
39
|
+
notificationCenter?: INotificationCenterProps;
|
|
40
|
+
showUnifiedNavigation?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const GlobalNavWidth: 90;
|
|
43
|
+
export declare const GlobalNavigation: {
|
|
44
|
+
({ showSuiteLogo, showUnifiedNavigation, ...props }: IGlobalNavigationProps): JSX.Element;
|
|
45
|
+
useNewExperienceReminder: (options: INewExperienceReminderOptions) => NewExperienceReminderHook;
|
|
46
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
export interface INavigationButtonItemProps {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
withoutContainer?: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
target?: '_blank' | '_self';
|
|
8
|
+
}
|
|
9
|
+
export declare const NavigationButtonItem: React.FC<INavigationButtonItemProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type MenuItemGroupType, type MenuItemType } from '../..';
|
|
3
|
+
export interface INavigationCreateProps {
|
|
4
|
+
createItems: Array<INavigationCreateItem | INavigationCreateGroup>;
|
|
5
|
+
}
|
|
6
|
+
export interface INavigationCreateGroup extends Omit<MenuItemGroupType, 'key'> {
|
|
7
|
+
label: string;
|
|
8
|
+
type: 'group';
|
|
9
|
+
}
|
|
10
|
+
export interface INavigationCreateItem extends Omit<MenuItemType, 'key'> {
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
type?: undefined;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
isLocked?: boolean;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function NavigationCreate(props: INavigationCreateProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
interface INavigationIconProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
hideLabel?: boolean;
|
|
8
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function NavigationIcon(props: INavigationIconProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type MouseEvent, type ReactNode } from 'react';
|
|
3
|
+
import { type IGlobalNavigationItem } from '../..';
|
|
4
|
+
import { type HrefOptions } from '../../../utils/utils';
|
|
5
|
+
export interface INavigationItemProps {
|
|
6
|
+
type: 'link' | 'menu';
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
hideLabel?: boolean;
|
|
10
|
+
items?: IGlobalNavigationItem[];
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
onClick?: (e: MouseEvent) => void;
|
|
13
|
+
hrefOptions?: HrefOptions;
|
|
14
|
+
}
|
|
15
|
+
export declare function NavigationItem(props: INavigationItemProps): string | number | boolean | JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IGlobalNavigationItem } from './GlobalNavigationItems';
|
|
3
|
+
export interface INavigationListProps {
|
|
4
|
+
items: IGlobalNavigationItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare function NavigationList(props: INavigationListProps): JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IGlobalNavigationItem } from './GlobalNavigationItems';
|
|
3
|
+
export interface INavigationMenuProps {
|
|
4
|
+
items: IGlobalNavigationItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare function NavigationMenu(props: INavigationMenuProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IButtonProps, type IPopoverProps } from '../..';
|
|
3
|
+
export interface INotificationCenterProps extends Omit<IPopoverProps, 'key' | 'trigger' | 'placement' | 'arrow' | 'overlayClassName' | 'title'> {
|
|
4
|
+
unreadMessages?: number;
|
|
5
|
+
onClose?: IButtonProps['onClick'];
|
|
6
|
+
onPreferencesClick?: IButtonProps['onClick'];
|
|
7
|
+
}
|
|
8
|
+
export declare const NotificationCenterZIndex = 9999;
|
|
9
|
+
export declare function NotificationCenter({ zIndex, onClose, onPreferencesClick, unreadMessages, ...props }: INotificationCenterProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IGlobalNavigationLogo, type ISuiteSelectorOptions } from './GlobalNavigationItems';
|
|
3
|
+
interface SuiteLogoProps extends IGlobalNavigationLogo {
|
|
4
|
+
suiteSelectorOptions?: ISuiteSelectorOptions;
|
|
5
|
+
}
|
|
6
|
+
export declare function SuiteLogo({ icon, label, type, onSuiteLogoClick, navSwitcherTourOptions, suiteSelectorOptions, }: SuiteLogoProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type IPopoverProps } from '../../..';
|
|
4
|
+
import { type ISuiteSelectorOptions, type SuiteLink } from '../GlobalNavigationItems';
|
|
5
|
+
interface ISuiteSelectorProps extends IPopoverProps {
|
|
6
|
+
suiteSelectorOptions: ISuiteSelectorOptions;
|
|
7
|
+
onLinkClick: (link: SuiteLink) => void;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function SuiteSelector(props: ISuiteSelectorProps): JSX.Element;
|
|
11
|
+
export {};
|
package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorContent.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type ISuiteSelectorOptions } from '../GlobalNavigationItems';
|
|
3
|
+
type ISuiteSelectorContentProps = ISuiteSelectorOptions;
|
|
4
|
+
export declare function SuiteSelectorContent(props: ISuiteSelectorContentProps): JSX.Element;
|
|
5
|
+
export {};
|
package/dist/src/components/navigation/GlobalNavigation/SuiteSelector/SuiteSelectorSuiteLink.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type SuiteLink, type SuiteLinks } from '../GlobalNavigationItems';
|
|
3
|
+
interface ISuiteSelectorSuiteLinkProps {
|
|
4
|
+
link: SuiteLink;
|
|
5
|
+
onLinkClick: (link: SuiteLink) => void;
|
|
6
|
+
unauthorizedLinks?: SuiteLinks[];
|
|
7
|
+
activeLink: SuiteLinks;
|
|
8
|
+
}
|
|
9
|
+
export declare function SuiteSelectorSuiteLink(props: ISuiteSelectorSuiteLinkProps): JSX.Element;
|
|
10
|
+
export {};
|
package/dist/src/components/navigation/GlobalNavigation/WorkspaceSelector/WorkspaceSelector.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IAvatarProps, type INavigationOrg } from '../../..';
|
|
3
|
+
export interface IWorkspaceSelectorProps {
|
|
4
|
+
orgs: INavigationOrg[];
|
|
5
|
+
avatarOptions?: IAvatarProps;
|
|
6
|
+
navigationButtonItemOptions?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
withoutContainer?: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function WorkspaceSelector(props: IWorkspaceSelectorProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type ChangeEvent, type RefObject } from 'react';
|
|
3
|
+
import { type InputRef, type IWorkspaceSelectorDisplayItem } from '../../..';
|
|
4
|
+
type WorkspaceSelectorContentProps = {
|
|
5
|
+
onSearch: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
searchTerm: string;
|
|
7
|
+
hasSearchInput: boolean;
|
|
8
|
+
inputRef: RefObject<InputRef>;
|
|
9
|
+
hasNoResults: boolean;
|
|
10
|
+
menuItems: IWorkspaceSelectorDisplayItem[];
|
|
11
|
+
navigationButtonItemOptions?: {
|
|
12
|
+
label: string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
withoutContainer?: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function WorkspaceSelectorContent(props: WorkspaceSelectorContentProps): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type IWorkspaceSelectorDisplayItem } from '../../..';
|
|
3
|
+
type WorkspaceSelectorContentItemsProps = {
|
|
4
|
+
menuItems: IWorkspaceSelectorDisplayItem[];
|
|
5
|
+
};
|
|
6
|
+
export declare function WorkspaceSelectorContentItems({ menuItems }: WorkspaceSelectorContentItemsProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MenuDividerProps } from 'antd/es/menu';
|
|
2
|
+
import { MenuItemGroupProps } from 'rc-menu';
|
|
3
|
+
import { FC, FunctionComponent, ReactNode, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
import { SubMenuProps, MenuItemProps, type MenuProps } from 'antd';
|
|
7
|
+
import { type MenuProps as AntMenuProps } from 'antd';
|
|
8
|
+
import { type MenuInfo as RCMenuInfo } from 'rc-menu/lib/interface';
|
|
9
|
+
type AntDMenuItemType = Required<MenuProps>['items'][number];
|
|
10
|
+
type AntDMenuItemGroupType = Required<MenuProps>['items'][number];
|
|
11
|
+
type AntDMenuDividerType = Required<MenuProps>['items'][number];
|
|
12
|
+
type AntDSubMenuType = Required<MenuProps>['items'][number];
|
|
13
|
+
export interface IMenuProps extends AntMenuProps {
|
|
14
|
+
}
|
|
15
|
+
export interface IMenuInfo extends RCMenuInfo {
|
|
16
|
+
}
|
|
17
|
+
export { type AntDMenuItemType as MenuItemType, type AntDMenuItemGroupType as MenuItemGroupType, type AntDMenuDividerType as MenuDividerType, type AntDSubMenuType as SubMenuType, };
|
|
18
|
+
export declare const Menu: {
|
|
19
|
+
(props: IMenuProps): JSX.Element;
|
|
20
|
+
SubMenu: FC<SubMenuProps>;
|
|
21
|
+
Item: Omit<FunctionComponent<MenuItemProps>, ""> & (<T extends MenuItemProps>(props: T extends infer U extends MenuItemProps ? unknown extends U ? MenuItemProps : U : MenuItemProps, deprecatedLegacyContext?: any) => ReactNode);
|
|
22
|
+
ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref"> & RefAttributes<HTMLLIElement>>;
|
|
23
|
+
Divider: FC<MenuDividerProps>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { GenerateConfig } from 'rc-picker/lib/generate';
|
|
3
|
+
import { AnyObject } from 'antd/es/_util/type';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
import { type CalendarProps as AntCalendarProps } from 'antd';
|
|
7
|
+
import { type Dayjs } from 'dayjs';
|
|
8
|
+
export interface ICalendarProps extends AntCalendarProps<Dayjs> {
|
|
9
|
+
}
|
|
10
|
+
export declare const Calendar: {
|
|
11
|
+
(props: ICalendarProps): JSX.Element;
|
|
12
|
+
generateCalendar: <DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>) => FC<Readonly<AntCalendarProps<DateType>>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { type SliderRangeProps } from 'antd/es/slider';
|
|
3
|
+
import { type SliderSingleProps } from 'antd/es/slider';
|
|
4
|
+
export type ISliderProps = SliderSingleProps | SliderRangeProps;
|
|
5
|
+
export declare const Slider: (props: ISliderProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NamedExoticComponent } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { type StatisticProps as AntStatisticProps } from 'antd';
|
|
5
|
+
import { type CountdownProps as AntCountdownProps } from 'antd';
|
|
6
|
+
import { type valueType as AntValueType } from 'antd/es/statistic/utils';
|
|
7
|
+
export interface IStatisticProps extends AntStatisticProps {
|
|
8
|
+
}
|
|
9
|
+
export interface ICountdownProps extends AntCountdownProps {
|
|
10
|
+
}
|
|
11
|
+
export type valueType = AntValueType;
|
|
12
|
+
export declare const Statistic: {
|
|
13
|
+
(props: IStatisticProps): JSX.Element;
|
|
14
|
+
Countdown: NamedExoticComponent<AntCountdownProps>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { TimelineItemProps, type TimelineProps as AntTimelineProps } from 'antd';
|
|
5
|
+
export interface ITimelineProps extends AntTimelineProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const Timeline: {
|
|
8
|
+
(props: ITimelineProps): JSX.Element;
|
|
9
|
+
Item: FC<TimelineItemProps>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JSX, FC } from 'react';
|
|
2
|
+
import { KeyWiseTransferItem, TransferListProps, TransferSearchProps, TransferOperationProps } from 'antd/es/transfer';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
/// <reference types="react" />
|
|
5
|
+
import { type TransferProps as AntTransferProps } from 'antd';
|
|
6
|
+
export interface ITransferProps extends AntTransferProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const Transfer: {
|
|
9
|
+
(props: ITransferProps): JSX.Element;
|
|
10
|
+
List: {
|
|
11
|
+
<RecordType extends KeyWiseTransferItem>(props: TransferListProps<RecordType>): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Search: FC<TransferSearchProps>;
|
|
15
|
+
Operation: FC<TransferOperationProps>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TreeNodeProps } from 'rc-tree';
|
|
2
|
+
import { default as __DTS_1__ } from 'rc-tree/lib/Tree';
|
|
3
|
+
import { ReactNode, RefAttributes, ReactElement, JSXElementConstructor, FC } from 'react';
|
|
4
|
+
import { JSX } from 'react/jsx-runtime';
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
import { type TreeDataNode } from 'antd';
|
|
7
|
+
import { type TreeProps as AntTreeProps } from 'antd';
|
|
8
|
+
import { DirectoryTreeProps, BasicDataNode, DataNode } from 'antd/es/tree';
|
|
9
|
+
export interface ITreeProps<T extends BasicDataNode = DataNode> extends AntTreeProps<T> {
|
|
10
|
+
}
|
|
11
|
+
export interface ITreeData extends TreeDataNode {
|
|
12
|
+
}
|
|
13
|
+
export declare const Tree: {
|
|
14
|
+
<T extends BasicDataNode = TreeDataNode>(props: ITreeProps<T>): JSX.Element;
|
|
15
|
+
DirectoryTree: (<T_1 extends BasicDataNode | TreeDataNode = TreeDataNode>(props: DirectoryTreeProps<T_1> & {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
} & RefAttributes<__DTS_1__<TreeDataNode>>) => ReactElement<any, string | JSXElementConstructor<any>>) & Pick<FC<{}>, "displayName">;
|
|
18
|
+
TreeNode: FC<Readonly<TreeNodeProps<TreeDataNode>>>;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChartColors: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Options } from 'highcharts';
|
|
2
|
+
export declare const ChartAxisStyle: {
|
|
3
|
+
readonly 'font-family': "'GT America', Helvetica, Arial, sans-serif";
|
|
4
|
+
readonly 'font-size': ".9em";
|
|
5
|
+
readonly 'font-weight': "initial";
|
|
6
|
+
readonly color: "rgba(56, 60, 67, 0.7)";
|
|
7
|
+
};
|
|
8
|
+
export declare const ChartConfig: Options;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface INewExperienceReminderOptions {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onRemindMeLater: () => void;
|
|
5
|
+
onTakeMeThere: () => void;
|
|
6
|
+
duration?: number;
|
|
7
|
+
title?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
}
|
|
10
|
+
type OpenNotificationFn = () => void;
|
|
11
|
+
type ContextHolder = ReactNode;
|
|
12
|
+
export type NewExperienceReminderHook = [OpenNotificationFn, ContextHolder];
|
|
13
|
+
export declare const useNewExperienceReminder: (options: INewExperienceReminderOptions) => NewExperienceReminderHook;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useInitData<T>(fetchData: () => Promise<T>): [boolean, boolean, T];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useMount: (mount: () => void) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUnMount: (unmount: () => void) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UserPreferenceScopeType, type UserPreferenceDefinitions } from '../models/definitions';
|
|
2
|
+
import { type UserPreferenceScope } from '../models/storage-models';
|
|
3
|
+
import { type UserPreferencesPerScope } from '../models/definitions/user-preference-per-scope';
|
|
4
|
+
export declare class CompositeUserPreferencesService<T extends Record<string, unknown>> {
|
|
5
|
+
getScopedUserPreferences(userPreferencesPerScope: UserPreferencesPerScope<T>, currentScope: UserPreferenceScope, definitions: UserPreferenceDefinitions<T>): T;
|
|
6
|
+
getUpdatedUserPreferenceStorageObject<TKey extends keyof T>(userPreferenceKey: TKey, value: T[TKey], currentScope: UserPreferenceScope, currentPreferences: UserPreferencesPerScope<T>, allowedScope: UserPreferenceScopeType): UserPreferencesPerScope<T>;
|
|
7
|
+
private createUserPreferenceEntryFromDefinition;
|
|
8
|
+
private getEffectiveScope;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './composite-user-preferences-service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-preferences-service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-preference-scope';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const USER_PREFERENCE_SCOPE_SEPARATOR = "-";
|
|
2
|
+
export declare const UserPreferenceGlobalScope: "global";
|
|
3
|
+
type UserPreferenceGlobalScopeType = `global`;
|
|
4
|
+
type UserPreferenceLevelOneScopeType = `${number}`;
|
|
5
|
+
type UserPreferenceLevelTwoScopeType = `${number}-${number}`;
|
|
6
|
+
type UserPreferenceLevelThreeScopeType = `${number}-${number}-${number}`;
|
|
7
|
+
export type UserPreferenceScope = UserPreferenceLevelOneScopeType | UserPreferenceLevelTwoScopeType | UserPreferenceLevelThreeScopeType | UserPreferenceGlobalScopeType;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type UserPreferenceScope } from './models/storage-models';
|
|
2
|
+
import { type CookieOptions } from '../../utils/Cookies';
|
|
3
|
+
import { type UserPreferenceDefinitions } from '../../components';
|
|
4
|
+
export declare class UserPreferencesService<T extends Record<string, unknown>> {
|
|
5
|
+
private readonly definitions;
|
|
6
|
+
private readonly currentScope;
|
|
7
|
+
private readonly cookieOptions;
|
|
8
|
+
private readonly onUpdate?;
|
|
9
|
+
private preferences;
|
|
10
|
+
private readonly compositeUserPreferencesService;
|
|
11
|
+
constructor(definitions: UserPreferenceDefinitions<T>, currentScope: UserPreferenceScope, cookieOptions: CookieOptions & {
|
|
12
|
+
key: string;
|
|
13
|
+
}, onUpdate?: ((resolvedPreferences: T) => void) | undefined);
|
|
14
|
+
getPreference<TKey extends keyof T, TValue extends T[TKey]>(key: TKey): Promise<TValue>;
|
|
15
|
+
setPreference<TKey extends keyof T, TValue extends T[TKey]>(key: TKey, value: TValue): Promise<void>;
|
|
16
|
+
init(): Promise<void>;
|
|
17
|
+
private getStoredPreferences;
|
|
18
|
+
private setStoredPreferences;
|
|
19
|
+
}
|