@ws-ui/roles-editor 1.13.0-dev.5 → 1.13.0-dev.6
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.
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IContainerProps } from '../Container';
|
|
3
|
+
import { TabType } from '../types';
|
|
3
4
|
import { THistoryControls } from '../adapter';
|
|
4
5
|
interface IStandaloneProps extends IContainerProps {
|
|
5
6
|
initialValue?: string;
|
|
6
7
|
catalog?: datasources.ICatalog;
|
|
7
8
|
onChange?: (newValue: string) => void;
|
|
8
9
|
history?: THistoryControls;
|
|
10
|
+
activeTab?: TabType;
|
|
11
|
+
onTabChange?: (tab: TabType) => void;
|
|
9
12
|
}
|
|
10
13
|
declare const StandaloneWithReducerAdapter: FC<IStandaloneProps>;
|
|
11
14
|
export { StandaloneWithReducerAdapter as Standalone };
|
|
@@ -69,6 +69,8 @@ interface IExternalData {
|
|
|
69
69
|
host?: TEditorHost;
|
|
70
70
|
onSetTabFlags?: (path: string, flags: ITabFlags) => void;
|
|
71
71
|
history?: THistoryControls;
|
|
72
|
+
selectedTab?: 'privileges' | 'roles';
|
|
73
|
+
onTabChange?: (tab: 'privileges' | 'roles') => void;
|
|
72
74
|
}
|
|
73
75
|
interface IReducerAdapterExternalProps {
|
|
74
76
|
catalog?: datasources.ICatalog | null;
|
|
@@ -76,6 +78,8 @@ interface IReducerAdapterExternalProps {
|
|
|
76
78
|
host?: TEditorHost;
|
|
77
79
|
onSetTabFlags?: (path: string, flags: ITabFlags) => void;
|
|
78
80
|
history?: THistoryControls;
|
|
81
|
+
selectedTab?: 'privileges' | 'roles';
|
|
82
|
+
onTabChange?: (tab: 'privileges' | 'roles') => void;
|
|
79
83
|
}
|
|
80
84
|
/**
|
|
81
85
|
* Reducer value interface
|