@admin-layout/gluestack-ui-mobile 7.3.8-alpha.8 → 8.5.3-alpha.0
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/CHANGELOG.md +1 -17
- package/lib/components/ApplicationErrorFillWrapper.js +1 -1
- package/lib/components/ApplicationErrorFillWrapper.js.map +1 -1
- package/lib/components/ApplicationErrorHandler.js +3 -3
- package/lib/components/ApplicationErrorHandler.js.map +1 -1
- package/lib/components/AuthWrapper.d.ts +1 -0
- package/lib/components/AuthWrapper.js +27 -0
- package/lib/components/AuthWrapper.js.map +1 -0
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/Fallback.js +1 -2
- package/lib/components/Fallback.js.map +1 -1
- package/lib/components/Layout/components/BasicLayout.js +3 -1
- package/lib/components/Layout/components/BasicLayout.js.map +1 -1
- package/lib/components/Layout/components/BottomTabBar.d.ts +1 -0
- package/lib/components/Layout/components/BottomTabBar.js +11 -24
- package/lib/components/Layout/components/BottomTabBar.js.map +1 -1
- package/lib/components/Layout/components/Drawer.d.ts +1 -0
- package/lib/components/Layout/components/Drawer.js +101 -117
- package/lib/components/Layout/components/Drawer.js.map +1 -1
- package/lib/components/Layout/components/Header.d.ts +2 -1
- package/lib/components/Layout/components/Header.js +5 -4
- package/lib/components/Layout/components/Header.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js +26 -19
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js +5 -13
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js.map +1 -1
- package/lib/components/Layout/components/SideBar.js +2 -2
- package/lib/components/Layout/components/SideBar.js.map +1 -1
- package/lib/components/Layout/components/util.js.map +1 -1
- package/lib/components/Layout/compute.js +51 -52
- package/lib/components/Layout/compute.js.map +1 -1
- package/lib/components/NavigationComponent.js +24 -31
- package/lib/components/NavigationComponent.js.map +1 -1
- package/lib/components/ToastAlert.js +1 -1
- package/lib/components/ToastAlert.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.d.ts +3 -0
- package/lib/components/UnAuthenticatedComponent.js +16 -0
- package/lib/components/UnAuthenticatedComponent.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/with-interactions-lifecycle-managed.d.ts +4 -0
- package/lib/components/with-interactions-lifecycle-managed.js +50 -0
- package/lib/components/with-interactions-lifecycle-managed.js.map +1 -0
- package/lib/components/with-interactions-managed.js +2 -2
- package/lib/components/with-interactions-managed.js.map +1 -1
- package/lib/config/config.js +2 -2
- package/lib/config/config.js.map +1 -1
- package/lib/config/i18next.js +1 -2
- package/lib/config/i18next.js.map +1 -1
- package/lib/containers/layout/BasicLayout.d.ts +2 -2
- package/lib/containers/layout/BasicLayout.js +3 -3
- package/lib/containers/layout/BasicLayout.js.map +1 -1
- package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +2 -2
- package/lib/containers/layout/DrawerBottomNavigationConfig.js +2 -2
- package/lib/containers/layout/DrawerBottomNavigationConfig.js.map +1 -1
- package/lib/containers/layout/DrawerConfig.d.ts +1 -1
- package/lib/containers/layout/DrawerConfig.js +1 -1
- package/lib/containers/layout/DrawerConfig.js.map +1 -1
- package/lib/containers/layout/Lifecycle.js +2 -14
- package/lib/containers/layout/Lifecycle.js.map +1 -1
- package/lib/containers/layout/ProLayout.js +4 -5
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/hooks/use-after-interactions.d.ts +0 -1
- package/lib/hooks/use-after-interactions.js +1 -1
- package/lib/hooks/use-after-interactions.js.map +1 -1
- package/lib/hooks/useIsReady.js.map +1 -1
- package/lib/hooks/useLayoutSetting/index.js +16 -14
- package/lib/hooks/useLayoutSetting/index.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/layout.json +153 -0
- package/lib/redux/settings.d.ts +8 -8
- package/lib/redux/settings.js +8 -2
- package/lib/redux/settings.js.map +1 -1
- package/lib/utils/generateAppNavigations.d.mts +43 -0
- package/lib/utils/generateAppNavigations.mjs +958 -0
- package/lib/utils/generateAppNavigations.mjs.map +1 -0
- package/lib/utils/getReplacedRouteConfig.d.ts +11 -0
- package/lib/utils/getReplacedRouteConfig.js +276 -0
- package/lib/utils/getReplacedRouteConfig.js.map +1 -0
- package/lib/utils/getReplacedRouteConfig.mjs +265 -0
- package/lib/utils/routeConfigKeyReplace.js +17 -19
- package/lib/utils/routeConfigKeyReplace.js.map +1 -1
- package/package.json +7 -5
- package/src/components/ApplicationErrorHandler.tsx +26 -21
- package/src/components/AuthWrapper.tsx +29 -0
- package/src/components/Layout/components/BottomTabBar.tsx +2 -0
- package/src/components/Layout/components/Drawer.tsx +4 -1
- package/src/components/Layout/components/Header.tsx +7 -3
- package/src/components/UnAuthenticatedComponent.tsx +38 -0
- package/src/components/index.ts +1 -0
- package/src/components/with-interactions-lifecycle-managed.tsx +105 -0
- package/src/index.ts +4 -1
- package/src/layout.json +153 -0
- package/src/utils/generateAppNavigations.mjs +990 -0
- package/src/utils/getReplacedRouteConfig.mjs_ok +317 -0
- package/src/utils/getReplacedRouteConfig.ts +330 -0
- package/tsconfig.json +4 -1
package/lib/redux/settings.d.ts
CHANGED
|
@@ -50,14 +50,14 @@ declare const settingsReducer: (state: {
|
|
|
50
50
|
colorWeak: boolean;
|
|
51
51
|
splitMenus?: boolean;
|
|
52
52
|
siderMenuType?: string;
|
|
53
|
-
showHeader?: any;
|
|
54
|
-
headerRender?: any;
|
|
55
|
-
showFooter?: any;
|
|
56
|
-
footerRender?: any;
|
|
57
|
-
searchBarRender?: any;
|
|
58
|
-
showMenu?: any;
|
|
59
|
-
menuRender?: any;
|
|
60
|
-
menuHeaderRender?: any;
|
|
53
|
+
showHeader?: boolean | any;
|
|
54
|
+
headerRender?: boolean | any;
|
|
55
|
+
showFooter?: boolean | any;
|
|
56
|
+
footerRender?: boolean | any;
|
|
57
|
+
searchBarRender?: boolean | any;
|
|
58
|
+
showMenu?: boolean | any;
|
|
59
|
+
menuRender?: false | any;
|
|
60
|
+
menuHeaderRender?: false | any;
|
|
61
61
|
language: string;
|
|
62
62
|
logo: string;
|
|
63
63
|
topLeftToggle: boolean;
|
package/lib/redux/settings.js
CHANGED
|
@@ -5,9 +5,15 @@ import { config } from "../config";
|
|
|
5
5
|
const settingsReducer = (state = config.LAYOUT_SETTINGS, { type, payload = {} }) => {
|
|
6
6
|
switch (type) {
|
|
7
7
|
case CHANGE_SETTINGS_ACTION:
|
|
8
|
-
return
|
|
8
|
+
return {
|
|
9
|
+
...state,
|
|
10
|
+
...payload
|
|
11
|
+
};
|
|
9
12
|
case CHANGE_LANGUAGE:
|
|
10
|
-
return
|
|
13
|
+
return {
|
|
14
|
+
...state,
|
|
15
|
+
language: payload,
|
|
16
|
+
};
|
|
11
17
|
default:
|
|
12
18
|
return state;
|
|
13
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/redux/settings.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,eAAe,GAAG,CACtB,KAAK,GAAG,MAAM,CAAC,eAAe,EAC9B,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,EAA8C,EAClE,EAAE;IACA,QAAQ,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/redux/settings.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,eAAe,GAAG,CACtB,KAAK,GAAG,MAAM,CAAC,eAAe,EAC9B,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,EAA8C,EAClE,EAAE;IACA,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,sBAAsB;YACvB,OAAO;gBACH,GAAG,KAAK;gBACR,GAAG,OAAO;aACb,CAAC;QACN,KAAK,eAAe;YAChB,OAAO;gBACH,GAAG,KAAK;gBACR,QAAQ,EAAE,OAAO;aACpB,CAAC;QAEN;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export function readJsonFile(filePath: any): Promise<any>;
|
|
2
|
+
export function getLayoutConfig(): Promise<{
|
|
3
|
+
layoutConfigFileData: any;
|
|
4
|
+
layoutSettings: any;
|
|
5
|
+
}>;
|
|
6
|
+
export function getModulesRouteConfig({ modules }: {
|
|
7
|
+
modules: any;
|
|
8
|
+
}): Promise<any[][]>;
|
|
9
|
+
export function generateAppRoutesJson({ appDirPath }: {
|
|
10
|
+
appDirPath: any;
|
|
11
|
+
}): Promise<boolean>;
|
|
12
|
+
export function generateModulesTsFile({ appDirPath, modules, initialRouteName }: {
|
|
13
|
+
appDirPath: any;
|
|
14
|
+
modules: any;
|
|
15
|
+
initialRouteName: any;
|
|
16
|
+
}): Promise<boolean>;
|
|
17
|
+
export function generateStackNavigations({ appDirPath, modules, initialRouteName }: {
|
|
18
|
+
appDirPath: any;
|
|
19
|
+
modules: any;
|
|
20
|
+
initialRouteName: any;
|
|
21
|
+
}): Promise<boolean>;
|
|
22
|
+
export function generateDrawerNavigations({ appDirPath, modules, initialRouteName, unauthenticatedComponentPath }: {
|
|
23
|
+
appDirPath: any;
|
|
24
|
+
modules: any;
|
|
25
|
+
initialRouteName: any;
|
|
26
|
+
unauthenticatedComponentPath: any;
|
|
27
|
+
}): Promise<boolean>;
|
|
28
|
+
export function generateBottomTabNavigations({ appDirPath, modules, initialRouteName, unauthenticatedComponentPath }: {
|
|
29
|
+
appDirPath: any;
|
|
30
|
+
modules: any;
|
|
31
|
+
initialRouteName: any;
|
|
32
|
+
unauthenticatedComponentPath: any;
|
|
33
|
+
}): Promise<boolean>;
|
|
34
|
+
export function generateAppNavigations({ appDirPath, modules, initialRouteName, unauthenticatedComponentPath, customTabBarPath, customDrawerPath, customHeaderPath }: {
|
|
35
|
+
appDirPath: any;
|
|
36
|
+
modules: any;
|
|
37
|
+
initialRouteName?: string;
|
|
38
|
+
unauthenticatedComponentPath?: any;
|
|
39
|
+
customTabBarPath?: any;
|
|
40
|
+
customDrawerPath?: any;
|
|
41
|
+
customHeaderPath?: any;
|
|
42
|
+
}): Promise<boolean>;
|
|
43
|
+
export { getReplacedRouteConfig };
|