react-crud-mui 0.0.1-beta.30 → 0.0.1-beta.31
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/components/detail-page/hooks/useDetailPageModal.d.ts +2 -1
- package/dist/components/detail-page/pages/DetailPagePopover.d.ts +1 -1
- package/dist/components/labels/DateFormat.d.ts +1 -1
- package/dist/components/page/Page.d.ts +2 -1
- package/dist/components/panel/Panel.d.ts +9 -1
- package/dist/components/select/Select.d.ts +2 -2
- package/dist/coreui.js +2760 -2712
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -414,16 +414,17 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
|
|
|
414
414
|
readonly headerProps?: import('@mui/material').BoxProps;
|
|
415
415
|
readonly moreOptions?: import('../../..').MoreButtonProps["options"];
|
|
416
416
|
readonly useIconWrapper?: boolean;
|
|
417
|
+
readonly tabs?: import('../../page/components/DefaultTabs').TabPane[];
|
|
417
418
|
readonly error?: import('../../utils').ServerError;
|
|
418
419
|
readonly onDelete?: import('../pages/DetailPageData').DataEvent<TModel, import('../pages/DetailPageData').DeletePayload<TModel>> | undefined;
|
|
419
420
|
readonly onCreate?: () => void;
|
|
420
421
|
readonly footerContent?: import('react').ReactNode;
|
|
421
422
|
readonly moreContent?: import('react').ReactNode;
|
|
422
|
-
readonly tabs?: import('../../page/components/DefaultTabs').TabPane[];
|
|
423
423
|
readonly commandsPosition?: import('../../page/Page').CommandsPosition;
|
|
424
424
|
readonly onHeader?: (props: import('../components/DetailPageHeader').DetailPageHeaderProps) => import('react').ReactNode;
|
|
425
425
|
readonly onLayout?: (props: import('../../page/components/DefaultLayout').PageLayoutProps) => import('react').ReactNode;
|
|
426
426
|
readonly showHeader?: boolean;
|
|
427
|
+
readonly showCommands?: boolean;
|
|
427
428
|
readonly morePanelProps?: import('../../more-panel/MorePanel').MorePanelProps;
|
|
428
429
|
readonly disableShortCuts?: boolean;
|
|
429
430
|
readonly tabsPosition?: import('../../page/Page').TabsPosition;
|
|
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
|
|
|
2
2
|
import { PopoverProps } from '@mui/material';
|
|
3
3
|
import { DetailPageProps } from './DetailPage';
|
|
4
4
|
export interface DetailPagePopoverProps<TModel extends FieldValues> extends DetailPageProps<TModel> {
|
|
5
|
-
popoverOptions?: PopoverProps
|
|
5
|
+
popoverOptions?: Partial<PopoverProps>;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
anchorEl: HTMLElement | null;
|
|
8
8
|
}
|
|
@@ -16,6 +16,7 @@ export interface PageProps extends HeaderProps {
|
|
|
16
16
|
onLayout?: (props: PageLayoutProps) => ReactNode;
|
|
17
17
|
onClose?: (reason?: CloseReason) => void;
|
|
18
18
|
showHeader?: boolean;
|
|
19
|
+
showCommands?: boolean;
|
|
19
20
|
footerContent?: ReactNode;
|
|
20
21
|
alertsContent?: ReactNode;
|
|
21
22
|
moreContent?: ReactNode;
|
|
@@ -31,7 +32,7 @@ export interface PageProps extends HeaderProps {
|
|
|
31
32
|
onTabs?: (props: DefaultTabsProps) => ReactNode;
|
|
32
33
|
}
|
|
33
34
|
export declare const PagePadding: Record<PaddingSize, number>;
|
|
34
|
-
declare function Page({ alertsContent, children, commandsContent, commandsPosition, onTabs, disabled, footerContent, loading, onHeader, onLayout, moreContent, morePanelProps, showHeader, size, style, sx, tabs, onTabChanged, selectedTabIndex, tabsPosition, rightContent, centerContent, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function Page({ alertsContent, children, commandsContent, commandsPosition, onTabs, disabled, footerContent, loading, onHeader, onLayout, moreContent, morePanelProps, showHeader, showCommands, size, style, sx, tabs, onTabChanged, selectedTabIndex, tabsPosition, rightContent, centerContent, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
declare namespace Page {
|
|
36
37
|
var Content: typeof PageContent;
|
|
37
38
|
var Divider: typeof PageDivider;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { HeaderProps } from '../header/Header';
|
|
3
|
+
export type PanelTab = {
|
|
4
|
+
key: React.Key;
|
|
5
|
+
value: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
};
|
|
2
9
|
export interface PanelProps extends HeaderProps {
|
|
3
10
|
bordered?: boolean;
|
|
11
|
+
tabs?: PanelTab[];
|
|
4
12
|
}
|
|
5
|
-
declare function Panel({ bordered, children, ...headerProps }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function Panel({ tabs, bordered, children, ...headerProps }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
14
|
declare namespace Panel {
|
|
7
15
|
var Header: typeof import("../..").Header;
|
|
8
16
|
}
|
|
@@ -18,8 +18,8 @@ export type SelectProps<T extends FieldValues = FieldValues> = Partial<Omit<MuiS
|
|
|
18
18
|
selectRef?: Ref<unknown>;
|
|
19
19
|
optionAsValue?: boolean;
|
|
20
20
|
size?: SelectSize;
|
|
21
|
-
|
|
21
|
+
selectInitialOption?: boolean | ((model: T) => boolean);
|
|
22
22
|
};
|
|
23
|
-
declare function Select<T extends FieldValues = FieldValues>({ allowClear, children, data, descriptionTemplate, disabled, displayTemplate, dropDownHeight, error, groupBy: groupByFn, helperText, id, label, onChange, optionImg, optionImgProps, optionTemplate, optionAsValue,
|
|
23
|
+
declare function Select<T extends FieldValues = FieldValues>({ allowClear, children, data, descriptionTemplate, disabled, displayTemplate, dropDownHeight, error, groupBy: groupByFn, helperText, id, label, onChange, optionImg, optionImgProps, optionTemplate, optionAsValue, selectInitialOption, selectRef, sx, value, valueField, multiple, size, ...rest }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
declare const _default: typeof Select;
|
|
25
25
|
export default _default;
|