@admin-layout/client 3.0.0-alpha.111 → 3.0.0-alpha.126
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/lib/components/ApplicationErrorHandlerCommon.d.ts +2 -2
- package/lib/components/ErrorBoundaryCommon.d.ts +2 -2
- package/lib/constants/error.d.ts +5 -5
- package/lib/graphql/link/error-link.d.ts +1 -1
- package/lib/interfaces/default-settings.d.ts +1 -1
- package/lib/interfaces/generated/generated-models.d.ts +241 -241
- package/lib/interfaces/layout/base-menu.d.ts +1 -1
- package/lib/interfaces/layout/basic-layout.d.ts +3 -3
- package/lib/interfaces/layout/global-header.d.ts +1 -1
- package/lib/interfaces/layout/sider-menu.d.ts +3 -3
- package/lib/interfaces/pure-settings.d.ts +3 -3
- package/lib/interfaces/typings.d.ts +1 -1
- package/lib/redux/actions/error-actions.d.ts +1 -1
- package/lib/utils/seperatedMenus.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { MenuTheme, PureSettings } from "../pure-settings";
|
|
3
3
|
import { MenuDataItem, MessageDescriptor, Route, RouterTypes, WithFalse } from "../typings";
|
|
4
4
|
import { MenuProps } from "./menu";
|
|
5
|
-
export
|
|
5
|
+
export type MenuMode = 'vertical' | 'horizontal' | 'inline';
|
|
6
6
|
export interface BaseMenuProps extends Partial<RouterTypes<Route>>, Omit<MenuProps, 'openKeys' | 'onOpenChange' | 'title'>, Partial<PureSettings> {
|
|
7
7
|
className?: string;
|
|
8
8
|
/**
|
|
@@ -7,7 +7,7 @@ import { GetPageTitleProps } from './page';
|
|
|
7
7
|
import { SiderMenuProps } from './sider-menu';
|
|
8
8
|
import { ProSettings } from '../pure-settings';
|
|
9
9
|
import { IPermissionType } from '@adminide-stack/core';
|
|
10
|
-
export
|
|
10
|
+
export type LocaleType = {
|
|
11
11
|
'zh-CN': {
|
|
12
12
|
[key: string]: string;
|
|
13
13
|
};
|
|
@@ -21,14 +21,14 @@ export declare type LocaleType = {
|
|
|
21
21
|
[key: string]: string;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type MergerSettingsType<T> = Partial<T> & {
|
|
25
25
|
primaryColor?: string;
|
|
26
26
|
colorWeak?: boolean;
|
|
27
27
|
};
|
|
28
28
|
interface MainHeaderPropsInterface {
|
|
29
29
|
picture: string;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type BasicLayoutProps = Partial<RouterTypes<Route>> & SiderMenuProps & HeaderViewProps & {
|
|
32
32
|
pure?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
*@name logo url
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { PureSettings } from '../pure-settings';
|
|
3
3
|
import { MenuDataItem, WithFalse } from '../typings';
|
|
4
4
|
import { PrivateSiderMenuProps, SiderMenuProps } from './sider-menu';
|
|
5
|
-
export
|
|
5
|
+
export type HeaderViewProps = GlobalHeaderProps & {
|
|
6
6
|
isMobile?: boolean;
|
|
7
7
|
collapsed?: boolean;
|
|
8
8
|
logo?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WithFalse } from "../typings";
|
|
3
3
|
import { BaseMenuProps } from "./base-menu";
|
|
4
|
-
export
|
|
4
|
+
export type PrivateSiderMenuProps = {
|
|
5
5
|
matchMenuKeys: string[];
|
|
6
6
|
};
|
|
7
7
|
export interface SiderMenuProps extends Pick<BaseMenuProps, Exclude<keyof BaseMenuProps, ['onCollapse']>> {
|
|
@@ -21,8 +21,8 @@ export interface SiderMenuProps extends Pick<BaseMenuProps, Exclude<keyof BaseMe
|
|
|
21
21
|
onOpenChange?: (openKeys: WithFalse<string[]>) => void;
|
|
22
22
|
getContainer?: false;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
type SiderTheme = 'light' | 'dark';
|
|
25
|
+
type CollapseType = 'clickTrigger' | 'responsive';
|
|
26
26
|
export interface SiderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
27
|
prefixCls?: string;
|
|
28
28
|
collapsible?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type ContentWidth = 'Fluid' | 'Fixed';
|
|
2
|
+
export type MenuTheme = 'light' | 'dark';
|
|
3
3
|
export interface RenderSetting {
|
|
4
4
|
showHeader?: boolean | any;
|
|
5
5
|
headerRender?: boolean | any;
|
|
@@ -75,4 +75,4 @@ export interface PureSettings {
|
|
|
75
75
|
splitMenus?: boolean;
|
|
76
76
|
siderMenuType?: string;
|
|
77
77
|
}
|
|
78
|
-
export
|
|
78
|
+
export type ProSettings = PureSettings & RenderSetting;
|
|
@@ -64,7 +64,7 @@ export interface Route extends MenuDataItem {
|
|
|
64
64
|
routes?: Route[];
|
|
65
65
|
breadcrumbName: string;
|
|
66
66
|
}
|
|
67
|
-
export
|
|
67
|
+
export type WithFalse<T> = T | false;
|
|
68
68
|
export interface RouterTypes<P> extends Omit<BasicRouteProps, 'location'> {
|
|
69
69
|
computedMatch?: match<P>;
|
|
70
70
|
route?: Route;
|
|
@@ -14,7 +14,7 @@ export declare const restoreApplicationError: (payload: ApplicationErrorState[])
|
|
|
14
14
|
type: "@platform/RESTORE_APPLICATION_ERRORS";
|
|
15
15
|
payload: ApplicationErrorState[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ErrorActions = {
|
|
18
18
|
type: LOG_APPLICATION_ERROR;
|
|
19
19
|
payload: Omit<ApplicationErrorState, 'date'>;
|
|
20
20
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/client",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.126",
|
|
4
4
|
"description": "Sample client for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"typescript": {
|
|
35
35
|
"definition": "lib/index.d.ts"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "c9099307b0a3008f28fd74f034428d63e5069b77"
|
|
38
38
|
}
|