123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- import { Options, OptionsSplitView } from './Options';
-
- export interface LayoutComponent {
- /**
- * Component reference id, Auto generated if empty
- */
- id?: string;
- /**
- * Name of your component
- */
- name: string;
- /**
- * Styling options
- */
- options?: Options;
- /**
- * Properties to pass down to the component
- */
- passProps?: object;
- }
-
- export interface LayoutStackChildren {
- /**
- * Set component
- */
- component?: LayoutComponent;
- }
-
- export interface LayoutStack {
- /**
- * Set ID of the stack so you can use Navigation.mergeOptions to
- * update options
- */
- id?: string;
- /**
- * Set children screens
- */
- children?: LayoutStackChildren[];
- /**
- * Set options
- */
- options?: Options;
- }
-
- export interface LayoutBottomTabsChildren {
- /**
- * Set stack
- */
- stack?: LayoutStack;
- /**
- * Set component
- */
- component?: LayoutComponent;
- }
-
- export interface LayoutBottomTabs {
- /**
- * Set ID of the stack so you can use Navigation.mergeOptions to
- * update options
- */
- id?: string;
- /**
- * Set the children screens
- */
- children?: LayoutBottomTabsChildren[];
- /**
- * Set the bottom tabs options
- */
- options?: Options;
- }
-
- export interface LayoutSideMenu {
- /**
- * Set ID of the stack so you can use Navigation.mergeOptions to
- * update options
- */
- id?: string;
- /**
- * Set the left side bar
- */
- left?: LayoutStackChildren;
- /**
- * Set the center view
- */
- center?: Layout;
- /**
- * Set the right side bar
- */
- right?: LayoutStackChildren;
- }
-
- export interface LayoutSplitView {
- /**
- * Set ID of the stack so you can use Navigation.mergeOptions to
- * update options
- */
- id?: string;
- /**
- * Set master layout (the smaller screen, sidebar)
- */
- master: Layout;
- /**
- * Set detail layout (the larger screen, flexes)
- */
- detail: Layout;
- /**
- * Configure split view
- */
- options?: OptionsSplitView;
- }
-
- export interface LayoutRoot {
- /**
- * Set the root
- */
- root: Layout;
- modals?: any;
- overlays?: any;
- }
-
- export interface Layout {
- /**
- * Set the component
- */
- component?: LayoutComponent;
- /**
- * Set the stack
- */
- stack?: LayoutStack;
- /**
- * Set the bottom tabs
- */
- bottomTabs?: LayoutBottomTabs;
- /**
- * Set the side menu
- */
- sideMenu?: LayoutSideMenu;
- /**
- * Set the split view
- */
- splitView?: LayoutSplitView;
- }
|