react-crud-mui 0.2.5 → 0.2.7
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 +0 -1
- package/dist/components/i18n/resources/en.json.d.ts +1 -0
- package/dist/components/i18n/resources/tr.json.d.ts +1 -0
- package/dist/components/list-page/pages/ListPageContent.d.ts +5 -1
- package/dist/components/modal/Modal.d.ts +2 -0
- package/dist/components/modal/styles.d.ts +5 -1
- package/dist/components/page/Page.d.ts +1 -2
- package/dist/components/side-panel/SidePanel.d.ts +16 -0
- package/dist/components/side-panel/styles.d.ts +5 -0
- package/dist/coreui.js +4183 -4089
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -414,7 +414,6 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
|
|
|
414
414
|
readonly footerContent?: import('react').ReactNode;
|
|
415
415
|
readonly moreContent?: import('react').ReactNode;
|
|
416
416
|
readonly panels?: import('../../page/components/DefaultPanels').PanelPane[];
|
|
417
|
-
readonly hiddenOnSingleTab?: boolean;
|
|
418
417
|
readonly commandsPosition?: import('../../page/Page').CommandsPosition;
|
|
419
418
|
readonly onHeader?: (props: import('../components/DetailPageHeader').DetailPageHeaderProps) => import('react').ReactNode;
|
|
420
419
|
readonly onLayout?: (props: import('../../page/components/DefaultLayout').PageLayoutProps) => import('react').ReactNode;
|
|
@@ -167,6 +167,7 @@ declare const _default: {
|
|
|
167
167
|
"tags.validationerror": "Type in missing fields !",
|
|
168
168
|
"input.label": "Type in {{label}}",
|
|
169
169
|
"update": "Update",
|
|
170
|
+
"more": "More",
|
|
170
171
|
"updateclose": "Update & close",
|
|
171
172
|
"pinnedName.defaultPlaceholder": "Type in the pin name..",
|
|
172
173
|
"table.filter.search": "Search",
|
|
@@ -54,6 +54,7 @@ declare const _default: {
|
|
|
54
54
|
"listpage.listbuttons.clear": "Temizle",
|
|
55
55
|
"listpage.listbuttons.newitem": "Yeni kayıt",
|
|
56
56
|
"listpage.listbuttons.search": "Arama",
|
|
57
|
+
"more": "Daha fazla",
|
|
57
58
|
"listpage.listbuttons.searchtitle": "Girilen filtre ile arama yapar",
|
|
58
59
|
"listpage.listbuttons.cleartitle": "Filtre kriterlerini temizler",
|
|
59
60
|
"listpage.listbuttons.moretitle": "Listeleme sayfası ayarları",
|
|
@@ -124,6 +124,10 @@ export interface ListPageContentProps<TModel extends FieldValues> extends Omit<P
|
|
|
124
124
|
* Actionm commands extra props
|
|
125
125
|
*/
|
|
126
126
|
actionCommandsProps?: Partial<ActionCommandsProps<TModel>>;
|
|
127
|
+
/**
|
|
128
|
+
* Action column extra props
|
|
129
|
+
*/
|
|
130
|
+
actionColumnProps?: Partial<TableColumn<TModel>>;
|
|
127
131
|
/**
|
|
128
132
|
* Custom render function for action commands
|
|
129
133
|
*/
|
|
@@ -149,5 +153,5 @@ export interface ListPageContentProps<TModel extends FieldValues> extends Omit<P
|
|
|
149
153
|
*/
|
|
150
154
|
listType?: ListType;
|
|
151
155
|
}
|
|
152
|
-
declare function ListPageContent<TModel extends FieldValues>({ activeSegmentIndex, actionCommandsProps, alerts, autoSearch, cardProps, children, columns, createCommandLabel, data, dataCount, disabled, disableShortCuts, enableActionCommands, enableRowClickToDetails, enableClear, enableCreateItem, enableRefetch, enableExport, enableSearch, error, filterContent, hotkeyScopes, listType, loading, onActionClick, onActionCommands, onClear, onClose, onCommands, onCustomTable, onDetailPage, onExcelExport, onExtraCommands, onHeader, onSearch, onTabChanged, tableProps, onWrapperLayout, showHeader, ...pageProps }: ListPageContentProps<TModel>): import("react/jsx-runtime").JSX.Element;
|
|
156
|
+
declare function ListPageContent<TModel extends FieldValues>({ activeSegmentIndex, actionCommandsProps, actionColumnProps, alerts, autoSearch, cardProps, children, columns, createCommandLabel, data, dataCount, disabled, disableShortCuts, enableActionCommands, enableRowClickToDetails, enableClear, enableCreateItem, enableRefetch, enableExport, enableSearch, error, filterContent, hotkeyScopes, listType, loading, onActionClick, onActionCommands, onClear, onClose, onCommands, onCustomTable, onDetailPage, onExcelExport, onExtraCommands, onHeader, onSearch, onTabChanged, tableProps, onWrapperLayout, showHeader, ...pageProps }: ListPageContentProps<TModel>): import("react/jsx-runtime").JSX.Element;
|
|
153
157
|
export default ListPageContent;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BoxProps } from '@mui/material/Box';
|
|
2
2
|
import { ModalProps as MuiModalProps } from '@mui/material/Modal';
|
|
3
|
+
import { ModalSize } from './styles';
|
|
3
4
|
export interface ModalProps extends BoxProps, Pick<MuiModalProps, 'disableAutoFocus' | 'disablePortal' | 'disableScrollLock' | 'disableEnforceFocus' | 'disableEscapeKeyDown' | 'disableRestoreFocus'> {
|
|
4
5
|
open: boolean;
|
|
5
6
|
onClose?: () => void;
|
|
6
7
|
closable?: boolean;
|
|
8
|
+
size?: ModalSize;
|
|
7
9
|
}
|
|
8
10
|
declare function Modal({ children, open, onClose, closable, disableAutoFocus, disablePortal, disableScrollLock, disableEnforceFocus, disableEscapeKeyDown, disableRestoreFocus, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
declare namespace Modal {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
export type ModalSize = 'normal' | 'small' | 'large';
|
|
2
|
+
export declare const modalSizes: Record<ModalSize, number | string>;
|
|
1
3
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
4
|
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme
|
|
5
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
+
size?: ModalSize;
|
|
7
|
+
}, {}, {}>;
|
|
4
8
|
export declare const StyledScrollbar: import('@emotion/styled').StyledComponent<import('simplebar-react').Props & import('react').RefAttributes<import('simplebar-core').default | null> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -33,7 +33,6 @@ export interface PageProps extends HeaderProps {
|
|
|
33
33
|
tabs?: TabPane[];
|
|
34
34
|
tabsPosition?: TabsPosition;
|
|
35
35
|
tabExtraContent?: ReactNode;
|
|
36
|
-
hiddenOnSingleTab?: boolean;
|
|
37
36
|
selectedTabIndex?: number;
|
|
38
37
|
onTabChanged?: (selected: TabChangedPayload) => void;
|
|
39
38
|
onTabs?: (props: DefaultTabsProps) => ReactNode;
|
|
@@ -41,7 +40,7 @@ export interface PageProps extends HeaderProps {
|
|
|
41
40
|
panels?: PanelPane[];
|
|
42
41
|
}
|
|
43
42
|
export declare const PagePadding: Record<PaddingSize, number>;
|
|
44
|
-
declare function Page({ alertsContent, bordered, centerContent, children, commandsContent, commandsPosition, disabled, footerContent, loading, progressProps, moreContent, morePanelProps, onHeader, onLayout, onTabChanged, onTabs, panels, rightContent, selectedTabIndex, showCommands, showHeader, size, style, sx, tabs, tabExtraContent, tabsPosition,
|
|
43
|
+
declare function Page({ alertsContent, bordered, centerContent, children, commandsContent, commandsPosition, disabled, footerContent, loading, progressProps, moreContent, morePanelProps, onHeader, onLayout, onTabChanged, onTabs, panels, rightContent, selectedTabIndex, showCommands, showHeader, size, style, sx, tabs, tabExtraContent, tabsPosition, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
|
|
45
44
|
declare namespace Page {
|
|
46
45
|
var Content: typeof PageContent;
|
|
47
46
|
var Divider: typeof PageDivider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export type SidePanelItem = {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
link?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface SidePanelProps extends BoxProps {
|
|
10
|
+
items: SidePanelItem[];
|
|
11
|
+
activeKey?: string;
|
|
12
|
+
onItemClick?: (item: SidePanelItem) => void;
|
|
13
|
+
drawerToggler?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare function SidePanel({ items, activeKey, onItemClick, drawerToggler, ...boxProps }: SidePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SidePanel;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
+
}, "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "href" | "disabled" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "variant" | "fullWidth" | "disableElevation" | "endIcon" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
4
|
+
active: boolean;
|
|
5
|
+
}, {}, {}>;
|