@ukpc-lib/react 0.10.1 → 0.10.2
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/application.d.ts +1 -0
- package/dist/components/BaseCheckBox/index.d.ts +1 -0
- package/dist/components/BaseSwitch/index.d.ts +1 -0
- package/dist/components/FavoriteMenu/components/Dropdown.d.ts +0 -1
- package/dist/components/FavoriteMenu/components/MenuIconComponent.d.ts +2 -1
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/FavoriteMenu/components/Placeholder.d.ts +2 -1
- package/dist/components/FavoriteMenu/components/Tooltip.d.ts +2 -1
- package/dist/components/FavoriteMenu/icons/IconDown.d.ts +0 -1
- package/dist/components/FavoriteMenu/icons/IconLogout.d.ts +0 -1
- package/dist/components/FavoriteMenu/index.d.ts +1 -0
- package/dist/components/FilterWraper/FilterIcon.d.ts +1 -0
- package/dist/components/FilterWraper/index.d.ts +1 -0
- package/dist/components/GlobalMenu/components/Dropdown.d.ts +0 -1
- package/dist/components/GlobalMenu/components/MenuIconComponent.d.ts +2 -1
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/GlobalMenu/components/Placeholder.d.ts +2 -1
- package/dist/components/GlobalMenu/components/Tooltip.d.ts +2 -1
- package/dist/components/GlobalMenu/hooks/useOpenMenuIds.d.ts +1 -2
- package/dist/components/GlobalMenu/icons/IconDown.d.ts +0 -1
- package/dist/components/GlobalMenu/icons/IconLogout.d.ts +0 -1
- package/dist/components/GlobalMenu/index.d.ts +1 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/MultiProvider.d.ts +2 -1
- package/dist/components/NoData/index.d.ts +1 -0
- package/dist/components/Notification/NotificationList/components/AllContent.d.ts +1 -0
- package/dist/components/Notification/NotificationList/components/CustomOpenListContext.d.ts +2 -1
- package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +1 -0
- package/dist/components/Notification/NotificationList/components/query.d.ts +1 -0
- package/dist/components/Notification/NotificationList/index.d.ts +1 -0
- package/dist/components/Notification/Subcription/index.d.ts +1 -0
- package/dist/components/Notification/Tabs/index.d.ts +1 -1
- package/dist/components/Notification/firebase/firebaseConfig.d.ts +1 -0
- package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
- package/dist/components/PopUp/index.d.ts +1 -0
- package/dist/components/PopUp/types.d.ts +3 -2
- package/dist/components/SearchTypeSelect/index.d.ts +1 -0
- package/dist/components/ShadownDom/index.d.ts +2 -1
- package/dist/components/StyledAutocomplete/AutocompleteOption.d.ts +1 -0
- package/dist/components/StyledAutocomplete/StyledAutocomplete.d.ts +1 -0
- package/dist/components/StyledAutocomplete/useStyledAutocomplete.d.ts +1 -0
- package/dist/components/StyledDateRangePicker/BlockIcon.d.ts +1 -0
- package/dist/components/StyledDateRangePicker/index.d.ts +1 -0
- package/dist/components/Toast/ToastConfig.d.ts +1 -0
- package/dist/components/Toast/ToastConfigNotification.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Topbar/components/autocomplete/ClearIcon.d.ts +7 -0
- package/dist/components/Topbar/components/autocomplete/Results.d.ts +17 -0
- package/dist/components/Topbar/components/autocomplete/SearchIcon.d.ts +3 -0
- package/dist/components/Topbar/components/autocomplete/SearchInput.d.ts +18 -0
- package/dist/components/Topbar/components/autocomplete/config/config.d.ts +22 -0
- package/dist/components/Topbar/components/autocomplete/searchAutocomplete.d.ts +32 -0
- package/dist/components/Topbar/components/autocomplete/utils/utils.d.ts +1 -0
- package/dist/components/Topbar/icons/MessageIcon.d.ts +2 -1
- package/dist/components/Topbar/icons/NotificationIcon.d.ts +1 -0
- package/dist/components/Topbar/icons/SearchIcon.d.ts +2 -1
- package/dist/components/Topbar/icons/country-flags/GermanyIcon.d.ts +1 -0
- package/dist/components/Topbar/icons/country-flags/UnitedKingdomIcon.d.ts +1 -0
- package/dist/components/Topbar/index.d.ts +1 -0
- package/dist/components/index.cjs +31 -44
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +5077 -4040
- package/dist/{index.module-eda9cb3b.js → index.module-0d16ee2f.js} +10045 -10014
- package/dist/{index.module-7e4f51f2.cjs → index.module-9fbc52eb.cjs} +136 -136
- package/dist/main.d.ts +1 -0
- package/dist/share/AuthProvider/index.d.ts +2 -1
- package/dist/share/TranslationProvider/index.d.ts +5 -4
- package/dist/share/hooks/useUser.d.ts +1 -1
- package/dist/share/hooks/useUserPermissions.d.ts +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/dist/share/interceptor/index.d.ts +2 -2
- package/dist/share/permissions/HasPermission.d.ts +1 -0
- package/dist/share/permissions/PermissionRoute.d.ts +1 -0
- package/dist/theme/SaasThemeProvider.d.ts +1 -0
- package/dist/theme/Theme.d.ts +2 -1
- package/dist/theme/typography.d.ts +1 -0
- package/dist/translations/config.d.ts +2 -1
- package/package.json +7 -3
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-c429861b.js → index-283fec82.js} +17246 -15767
- package/web-components-bundle/{index-0de70dab.js → index-da73806d.js} +1994 -1968
package/dist/application.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps, SvgIconProps } from '@mui/material';
|
|
2
|
+
|
|
2
3
|
export declare function UncheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare function CheckedIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export declare function BaseCheckbox(props: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { MenuItemDto } from '../models';
|
|
3
|
+
|
|
3
4
|
export type IconType = 'text' | 'svgHtml' | 'svgHttp' | 'img';
|
|
4
5
|
export declare function IconComponent({ item }: {
|
|
5
6
|
item: MenuItemDto;
|
|
6
|
-
}): ReactElement<any, string | import(
|
|
7
|
+
}): ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { MenuItemDto } from '../models';
|
|
3
|
+
|
|
3
4
|
export type IconType = 'text' | 'svgHtml' | 'svgHttp' | 'img';
|
|
4
5
|
export declare function IconComponent({ item }: {
|
|
5
6
|
item: MenuItemDto;
|
|
6
|
-
}): ReactElement<any, string | import(
|
|
7
|
+
}): ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeModel, RenderParams } from '@minoru/react-dnd-treeview';
|
|
2
2
|
import { ColorsType } from '../../../theme/Colors';
|
|
3
3
|
import { Identity, MenuItemDto } from '../models';
|
|
4
|
+
|
|
4
5
|
export type OwnMenuItemProps = {
|
|
5
6
|
replacePath?(path: string): string;
|
|
6
7
|
ssr?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
initOpenIds?: number[];
|
|
4
3
|
};
|
|
5
|
-
declare const useOpeningMenuIds: (props?: Props) => readonly [number[], import(
|
|
4
|
+
declare const useOpeningMenuIds: (props?: Props) => readonly [number[], import('react').Dispatch<import('react').SetStateAction<number[]>>];
|
|
6
5
|
export default useOpeningMenuIds;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { AllNotificationType } from '../../models/NotiticationDto';
|
|
3
|
+
|
|
3
4
|
type CustomProps = {
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
toggleOpen: () => void;
|
|
@@ -7,6 +8,6 @@ type CustomProps = {
|
|
|
7
8
|
notidata: AllNotificationType;
|
|
8
9
|
setNotiData: React.Dispatch<React.SetStateAction<AllNotificationType>>;
|
|
9
10
|
};
|
|
10
|
-
export declare const CustomOpenList: import(
|
|
11
|
+
export declare const CustomOpenList: import('react').Context<CustomProps>;
|
|
11
12
|
export declare const CustomOpenListProvider: FC<PropsWithChildren>;
|
|
12
13
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { firebaseProps } from '../../main';
|
|
2
2
|
import { AllNotificationType } from '../models/NotiticationDto';
|
|
3
|
+
|
|
3
4
|
export declare const requestForToken: (props: firebaseProps) => void;
|
|
4
5
|
export declare const channelBroastcast: (setNotiData: React.Dispatch<React.SetStateAction<AllNotificationType>>) => void;
|
|
5
6
|
export declare const onMessageListener: (props: firebaseProps) => Promise<unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SxProps, TypographyProps, Theme, DialogProps, DialogActionsProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { SxProps, TypographyProps, Theme, DialogProps, DialogActionsProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
export type PopUpBaseProps = IPopUp & {
|
|
4
5
|
title?: ReactNode;
|
|
5
6
|
subTitle?: ReactNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DependencyList } from 'react';
|
|
2
2
|
import { ListProps, Paging } from './types';
|
|
3
3
|
import { StyledAutocompleteProps } from './StyledAutocomplete';
|
|
4
|
+
|
|
4
5
|
export declare function useStyledAutocomplete<T, P extends ListProps<T>>(props: UseAutocomplete<T, P>): TypeReturn<T, P>;
|
|
5
6
|
type SearchList<T> = {
|
|
6
7
|
searchFields: (keyof T)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ToastOptions } from 'react-toastify';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
declare const pushSuccess: (message: ReactNode, options?: ToastOptions) => void;
|
|
5
5
|
declare const pushError: (message: ReactNode, options?: ToastOptions) => void;
|
|
6
6
|
declare const pushWarning: (message: ReactNode, options?: ToastOptions) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ClearIcon: ({ showClear, setSearchString, searchString, setFocus, onClear, }: {
|
|
2
|
+
showClear: boolean;
|
|
3
|
+
setSearchString: Function;
|
|
4
|
+
searchString: string;
|
|
5
|
+
setFocus: Function;
|
|
6
|
+
onClear: Function;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Item<T> = T & {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
};
|
|
4
|
+
export interface ResultsProps<T> {
|
|
5
|
+
results: Item<T>[];
|
|
6
|
+
onClick: Function;
|
|
7
|
+
highlightedItem: number;
|
|
8
|
+
setHighlightedItem: Function;
|
|
9
|
+
setSearchString: Function;
|
|
10
|
+
formatResult?: Function;
|
|
11
|
+
showIcon: boolean;
|
|
12
|
+
maxResults: number;
|
|
13
|
+
resultStringKeyName: string;
|
|
14
|
+
showNoResultsFlag?: boolean;
|
|
15
|
+
showNoResultsText?: string;
|
|
16
|
+
}
|
|
17
|
+
export default function Results<T>({ results, onClick, setSearchString, showIcon, maxResults, resultStringKeyName, highlightedItem, setHighlightedItem, formatResult, showNoResultsFlag, showNoResultsText, }: ResultsProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SearchInputProps {
|
|
4
|
+
searchString: string;
|
|
5
|
+
setSearchString: ChangeEventHandler<HTMLInputElement>;
|
|
6
|
+
setHighlightedItem: Function;
|
|
7
|
+
eraseResults: Function;
|
|
8
|
+
autoFocus: boolean;
|
|
9
|
+
onFocus: FocusEventHandler<HTMLInputElement>;
|
|
10
|
+
onClear: Function;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
showIcon: boolean;
|
|
13
|
+
showClear: boolean;
|
|
14
|
+
maxLength: number;
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
}
|
|
17
|
+
export default function searchInput({ searchString, setSearchString, setHighlightedItem, eraseResults, autoFocus, onFocus, onClear, placeholder, showIcon, showClear, maxLength, baseUrl, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as Fuse } from 'fuse.js';
|
|
2
|
+
|
|
3
|
+
export interface DefaultTheme {
|
|
4
|
+
height?: string;
|
|
5
|
+
border?: string;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
boxShadow?: string;
|
|
9
|
+
hoverBackgroundColor?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
fontSize?: string;
|
|
12
|
+
fontFamily?: string;
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
lineColor?: string;
|
|
15
|
+
placeholderColor?: string;
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
clearIconMargin?: string;
|
|
18
|
+
searchIconMargin?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const defaultTheme: DefaultTheme;
|
|
21
|
+
declare const defaultFuseOptions: Fuse.IFuseOptions<any>;
|
|
22
|
+
export { defaultTheme, defaultFuseOptions };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as Fuse } from 'fuse.js';
|
|
2
|
+
import { FocusEventHandler } from 'react';
|
|
3
|
+
import { DefaultTheme } from './config/config';
|
|
4
|
+
|
|
5
|
+
export declare const DEFAULT_INPUT_DEBOUNCE = 200;
|
|
6
|
+
export declare const MAX_RESULTS = 10;
|
|
7
|
+
export interface SearchAutocompleteProps<T> {
|
|
8
|
+
items: T[];
|
|
9
|
+
fuseOptions?: Fuse.IFuseOptions<T>;
|
|
10
|
+
inputDebounce?: number;
|
|
11
|
+
onSearch?: (keyword: string, results: T[]) => void;
|
|
12
|
+
onHover?: (result: T) => void;
|
|
13
|
+
onSelect?: (result: T) => void;
|
|
14
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
onClear?: Function;
|
|
16
|
+
showIcon?: boolean;
|
|
17
|
+
showClear?: boolean;
|
|
18
|
+
maxResults?: number;
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
autoFocus?: boolean;
|
|
21
|
+
styling?: DefaultTheme;
|
|
22
|
+
resultStringKeyName?: string;
|
|
23
|
+
inputSearchString?: string;
|
|
24
|
+
formatResult?: Function;
|
|
25
|
+
showNoResults?: boolean;
|
|
26
|
+
showNoResultsText?: string;
|
|
27
|
+
showItemsOnFocus?: boolean;
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
className?: string;
|
|
30
|
+
baseUrl?: string;
|
|
31
|
+
}
|
|
32
|
+
export default function SearchAutocomplete<T>({ items, fuseOptions, inputDebounce, onSearch, onHover, onSelect, onFocus, onClear, showIcon, showClear, maxResults, placeholder, autoFocus, styling, resultStringKeyName, inputSearchString, formatResult, showNoResults, showNoResultsText, showItemsOnFocus, maxLength, baseUrl, }: SearchAutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce(func: Function, wait: number, immediate?: boolean): (this: any) => void;
|