react-crud-mui 0.2.6 → 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/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/side-panel/SidePanel.d.ts +16 -0
- package/dist/components/side-panel/styles.d.ts +5 -0
- package/dist/coreui.js +4181 -4089
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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
|
+
}, {}, {}>;
|