@nocobase/plugin-mobile 1.3.0-alpha.20240724142600

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.
Files changed (106) hide show
  1. package/.dumirc.ts +30 -0
  2. package/LICENSE.txt +121 -0
  3. package/README.md +15 -0
  4. package/README.zh-CN.md +15 -0
  5. package/client.d.ts +2 -0
  6. package/client.js +1 -0
  7. package/dist/client/constants.d.ts +11 -0
  8. package/dist/client/desktop-mode/Content.d.ts +14 -0
  9. package/dist/client/desktop-mode/DesktopMode.d.ts +14 -0
  10. package/dist/client/desktop-mode/Header.d.ts +10 -0
  11. package/dist/client/desktop-mode/index.d.ts +11 -0
  12. package/dist/client/desktop-mode/sizeContext.d.ts +25 -0
  13. package/dist/client/index.d.ts +40 -0
  14. package/dist/client/index.js +148 -0
  15. package/dist/client/js-bridge/index.d.ts +34 -0
  16. package/dist/client/locale.d.ts +10 -0
  17. package/dist/client/mobile/Mobile.d.ts +10 -0
  18. package/dist/client/mobile/MobileAppContext.d.ts +20 -0
  19. package/dist/client/mobile/index.d.ts +10 -0
  20. package/dist/client/mobile-layout/MobileLayout.d.ts +13 -0
  21. package/dist/client/mobile-layout/index.d.ts +10 -0
  22. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/MobileTabBar.Item.d.ts +18 -0
  23. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/index.d.ts +13 -0
  24. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/schema.d.ts +13 -0
  25. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/schemaFormFields.d.ts +10 -0
  26. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/settingsItem.d.ts +11 -0
  27. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/useUpdateTabBarItem.d.ts +9 -0
  28. package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.d.ts +23 -0
  29. package/dist/client/mobile-layout/mobile-tab-bar/index.d.ts +12 -0
  30. package/dist/client/mobile-layout/mobile-tab-bar/initializer.d.ts +11 -0
  31. package/dist/client/mobile-layout/mobile-tab-bar/styles.d.ts +51 -0
  32. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/MobileTabBar.Link.d.ts +14 -0
  33. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/index.d.ts +11 -0
  34. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/initializer.d.ts +10 -0
  35. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Link/settings.d.ts +10 -0
  36. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/MobileTabBar.Page.d.ts +14 -0
  37. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/index.d.ts +11 -0
  38. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/initializer.d.ts +10 -0
  39. package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/settings.d.ts +10 -0
  40. package/dist/client/mobile-layout/mobile-tab-bar/types/index.d.ts +10 -0
  41. package/dist/client/mobile-providers/MobileProviders.d.ts +14 -0
  42. package/dist/client/mobile-providers/context/MobileRoutes.d.ts +35 -0
  43. package/dist/client/mobile-providers/context/MobileTitle.d.ts +21 -0
  44. package/dist/client/mobile-providers/context/index.d.ts +10 -0
  45. package/dist/client/mobile-providers/index.d.ts +10 -0
  46. package/dist/client/pages/dynamic-page/MobilePage.d.ts +10 -0
  47. package/dist/client/pages/dynamic-page/content/MobilePageContent.d.ts +10 -0
  48. package/dist/client/pages/dynamic-page/content/MobilePageContentContainer.d.ts +12 -0
  49. package/dist/client/pages/dynamic-page/content/index.d.ts +11 -0
  50. package/dist/client/pages/dynamic-page/content/initializer.d.ts +10 -0
  51. package/dist/client/pages/dynamic-page/content/schema.d.ts +34 -0
  52. package/dist/client/pages/dynamic-page/content/styles.d.ts +14 -0
  53. package/dist/client/pages/dynamic-page/context.d.ts +33 -0
  54. package/dist/client/pages/dynamic-page/header/MobilePageHeader.d.ts +10 -0
  55. package/dist/client/pages/dynamic-page/header/index.d.ts +12 -0
  56. package/dist/client/pages/dynamic-page/header/navigation-bar/MobilePageNavigationBar.d.ts +10 -0
  57. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/ActionColorSelect.d.ts +10 -0
  58. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/ActionFillSelect.d.ts +10 -0
  59. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/MobileNavigationActionBar.d.ts +28 -0
  60. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/actionCommonInitializerSchema.d.ts +59 -0
  61. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/actionCommonSettings.d.ts +10 -0
  62. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/index.d.ts +12 -0
  63. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/items/index.d.ts +9 -0
  64. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/items/link.d.ts +15 -0
  65. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/MobileNavigationBarAction.d.ts +19 -0
  66. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/index.d.ts +9 -0
  67. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/styles.d.ts +45 -0
  68. package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobileNavigationBarActionsInitializer.d.ts +10 -0
  69. package/dist/client/pages/dynamic-page/header/navigation-bar/index.d.ts +10 -0
  70. package/dist/client/pages/dynamic-page/header/navigation-bar/styles.d.ts +27 -0
  71. package/dist/client/pages/dynamic-page/header/schema.d.ts +37 -0
  72. package/dist/client/pages/dynamic-page/header/styles.d.ts +18 -0
  73. package/dist/client/pages/dynamic-page/header/tabs/MobilePageTabs.d.ts +10 -0
  74. package/dist/client/pages/dynamic-page/header/tabs/index.d.ts +12 -0
  75. package/dist/client/pages/dynamic-page/header/tabs/initializer.d.ts +11 -0
  76. package/dist/client/pages/dynamic-page/header/tabs/settings.d.ts +17 -0
  77. package/dist/client/pages/dynamic-page/header/tabs/styles.d.ts +24 -0
  78. package/dist/client/pages/dynamic-page/index.d.ts +14 -0
  79. package/dist/client/pages/dynamic-page/schema.d.ts +81 -0
  80. package/dist/client/pages/dynamic-page/settings.d.ts +10 -0
  81. package/dist/client/pages/home/MobileHomePage.d.ts +10 -0
  82. package/dist/client/pages/home/index.d.ts +9 -0
  83. package/dist/client/pages/index.d.ts +11 -0
  84. package/dist/client/pages/mobile-action-page/MobileActionPage.d.ts +16 -0
  85. package/dist/client/pages/mobile-action-page/MobileActionPage.style.d.ts +11 -0
  86. package/dist/client/pages/mobile-action-page/MobileTabsForMobileActionPage.d.ts +9 -0
  87. package/dist/client/pages/mobile-action-page/MobileTabsForMobileActionPage.style.d.ts +12 -0
  88. package/dist/client/pages/not-found/MobileNotFoundPage.d.ts +10 -0
  89. package/dist/client/pages/not-found/index.d.ts +9 -0
  90. package/dist/client/providers/MobileCheckerProvider.d.ts +10 -0
  91. package/dist/client/providers/index.d.ts +9 -0
  92. package/dist/client/utils.d.ts +9 -0
  93. package/dist/externalVersion.js +28 -0
  94. package/dist/index.d.ts +10 -0
  95. package/dist/index.js +48 -0
  96. package/dist/locale/en-US.json +22 -0
  97. package/dist/locale/zh-CN.json +23 -0
  98. package/dist/server/collections/mobileRoutes.d.ts +10 -0
  99. package/dist/server/collections/mobileRoutes.js +331 -0
  100. package/dist/server/index.d.ts +9 -0
  101. package/dist/server/index.js +42 -0
  102. package/dist/server/plugin.d.ts +19 -0
  103. package/dist/server/plugin.js +54 -0
  104. package/package.json +29 -0
  105. package/server.d.ts +2 -0
  106. package/server.js +1 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const Mobile: () => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ interface MobileAppContextProps {
11
+ showTabBar?: boolean;
12
+ setShowTabBar?: (showTabBar: boolean) => void;
13
+ }
14
+ export declare const MobileAppContext: React.Context<MobileAppContextProps>;
15
+ export interface MobileAppProviderProps {
16
+ children?: React.ReactNode;
17
+ }
18
+ export declare const MobileAppProvider: FC<MobileAppProviderProps>;
19
+ export declare const useMobileApp: () => MobileAppContextProps;
20
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './Mobile';
10
+ export * from './MobileAppContext';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ export interface MobileLayoutProps {
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare const MobileLayout: FC<MobileLayoutProps>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileLayout';
10
+ export * from './mobile-tab-bar';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ export interface MobileTabBarItemProps {
11
+ icon?: string | React.ReactNode;
12
+ selectedIcon?: string;
13
+ title?: string;
14
+ onClick?: () => void;
15
+ selected?: boolean;
16
+ badge?: number | string | boolean;
17
+ }
18
+ export declare const MobileTabBarItem: FC<MobileTabBarItemProps>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileTabBar.Item';
10
+ export * from './settingsItem';
11
+ export * from './useUpdateTabBarItem';
12
+ export * from './schemaFormFields';
13
+ export * from './schema';
@@ -0,0 +1,13 @@
1
+ import { MobileRouteItem } from '../../../mobile-providers';
2
+ export declare function getMobileTabBarItemSchema(routeItem: MobileRouteItem): {
3
+ name: number;
4
+ type: string;
5
+ 'x-decorator': string;
6
+ 'x-settings': string;
7
+ 'x-component': string;
8
+ 'x-toolbar-props': {
9
+ showBorder: boolean;
10
+ showBackground: boolean;
11
+ };
12
+ 'x-component-props': any;
13
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ISchema } from '@nocobase/client';
10
+ export declare const getMobileTabBarItemSchemaFields: (values?: any) => Record<string, ISchema>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ISchema } from '@nocobase/client';
10
+ export declare const editTabItemSettingsItem: (getMoreFields?: (values: any) => Record<string, ISchema>) => import("@nocobase/client").SchemaSettingsItemType;
11
+ export declare const removeTabItemSettingsItem: import("@nocobase/client").SchemaSettingsItemType;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function useUpdateTabBarItem(): (values: any) => Promise<never>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FC } from 'react';
10
+ import 'antd-mobile/es/components/tab-bar/tab-bar.css';
11
+ import { MobileTabBarItem } from './MobileTabBar.Item';
12
+ import { MobileTabBarPage, MobileTabBarLink } from './types';
13
+ export interface MobileTabBarProps {
14
+ /**
15
+ * @default true
16
+ */
17
+ enableTabBar?: boolean;
18
+ }
19
+ export declare const MobileTabBar: FC<MobileTabBarProps> & {
20
+ Item: typeof MobileTabBarItem;
21
+ Page: typeof MobileTabBarPage;
22
+ Link: typeof MobileTabBarLink;
23
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileTabBar';
10
+ export * from './MobileTabBar.Item';
11
+ export * from './initializer';
12
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaInitializer } from '@nocobase/client';
10
+ export declare const mobileTabBarInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
11
+ export declare const MobileTabBarInitializer: () => any;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ mobileTabBar: {
11
+ position: "absolute";
12
+ bottom: number;
13
+ left: number;
14
+ right: number;
15
+ height: number;
16
+ boxSizing: "border-box";
17
+ borderTop: string;
18
+ backgroundColor: "var(--adm-color-background)";
19
+ };
20
+ mobileTabBarContent: {
21
+ display: "flex";
22
+ justifyContent: "space-between";
23
+ alignItems: "center";
24
+ gap: string;
25
+ height: string;
26
+ };
27
+ mobileTabBarList: {
28
+ display: "flex";
29
+ justifyContent: "space-around";
30
+ flex: number;
31
+ alignItems: "center";
32
+ '.adm-tab-bar-item': {
33
+ maxWidth: string;
34
+ '.adm-tab-bar-item-title': {
35
+ maxWidth: string;
36
+ overflow: "hidden";
37
+ whiteSpace: "nowrap";
38
+ textOverflow: "ellipsis";
39
+ };
40
+ };
41
+ '&>div': {
42
+ flex: number;
43
+ display: "flex";
44
+ justifyContent: "center";
45
+ alignItems: "center";
46
+ };
47
+ '.ant-btn-icon': {
48
+ marginInlineEnd: string;
49
+ };
50
+ };
51
+ }>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FC } from 'react';
10
+ import { MobileTabBarItemProps } from '../../MobileTabBar.Item';
11
+ export interface MobileTabBarLinkProps extends Omit<MobileTabBarItemProps, 'onClick' | 'selected'> {
12
+ url: string;
13
+ }
14
+ export declare const MobileTabBarLink: FC<MobileTabBarLinkProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileTabBar.Link';
10
+ export * from './settings';
11
+ export * from './initializer';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaInitializerItemActionModalType } from '@nocobase/client';
10
+ export declare const mobileTabBarLinkInitializerItem: SchemaInitializerItemActionModalType;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaSettings } from '@nocobase/client';
10
+ export declare const mobileTabBarLinkSettings: SchemaSettings<{}>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FC } from 'react';
10
+ import { MobileTabBarItemProps } from '../../MobileTabBar.Item';
11
+ export interface MobileTabBarPageProps extends Omit<MobileTabBarItemProps, 'onClick' | 'selected'> {
12
+ schemaUid: string;
13
+ }
14
+ export declare const MobileTabBarPage: FC<MobileTabBarPageProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileTabBar.Page';
10
+ export * from './settings';
11
+ export * from './initializer';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaInitializerItemActionModalType } from '@nocobase/client';
10
+ export declare const mobileTabBarSchemaInitializerItem: SchemaInitializerItemActionModalType;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaSettings } from '@nocobase/client';
10
+ export declare const mobileTabBarPageSettings: SchemaSettings<{}>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileTabBar.Link';
10
+ export * from './MobileTabBar.Page';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ export interface MobileProvidersProps {
11
+ children?: React.ReactNode;
12
+ skipLogin?: boolean;
13
+ }
14
+ export declare const MobileProviders: FC<MobileProvidersProps>;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { APIClient } from '@nocobase/client';
11
+ import type { IResource } from '@nocobase/sdk';
12
+ export interface MobileRouteItem {
13
+ id: number;
14
+ schemaUid?: string;
15
+ type: 'page' | 'link' | 'tabs';
16
+ options?: any;
17
+ title?: string;
18
+ icon?: string;
19
+ parentId?: number;
20
+ children?: MobileRouteItem[];
21
+ }
22
+ export interface MobileRoutesContextValue {
23
+ routeList?: MobileRouteItem[];
24
+ refresh: () => Promise<any>;
25
+ resource: IResource;
26
+ schemaResource: IResource;
27
+ activeTabBarItem?: MobileRouteItem;
28
+ activeTabItem?: MobileRouteItem;
29
+ api: APIClient;
30
+ }
31
+ export declare const MobileRoutesContext: React.Context<MobileRoutesContextValue>;
32
+ export declare const useMobileRoutes: () => MobileRoutesContextValue;
33
+ export declare const MobileRoutesProvider: ({ children }: {
34
+ children: any;
35
+ }) => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ interface MobileTitleContextProps {
11
+ title: string;
12
+ setTitle: (title: string) => void;
13
+ }
14
+ export declare const MobileTitleContext: React.Context<MobileTitleContextProps>;
15
+ export interface MobileTitleProviderProps {
16
+ children?: React.ReactNode;
17
+ title?: string;
18
+ }
19
+ export declare const MobileTitleProvider: FC<MobileTitleProviderProps>;
20
+ export declare const useMobileTitle: () => MobileTitleContextProps;
21
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileRoutes';
10
+ export * from './MobileTitle';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobileProviders';
10
+ export * from './context';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const MobilePage: () => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const MobilePageContent: () => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FC } from 'react';
10
+ export declare const MobilePageContentContainer: FC<{
11
+ hideTabBar?: boolean;
12
+ }>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobilePageContent';
10
+ export * from './initializer';
11
+ export * from './schema';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaInitializer } from '@nocobase/client';
10
+ export declare const mobileAddBlockInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function getMobilePageContentSchema(firstTabUid: string): {
10
+ type: string;
11
+ 'x-component': string;
12
+ properties: {
13
+ [x: string]: {
14
+ type: string;
15
+ 'x-uid': string;
16
+ 'x-async': boolean;
17
+ 'x-component': string;
18
+ 'x-component-props': {
19
+ showDivider: boolean;
20
+ };
21
+ 'x-initializer': string;
22
+ };
23
+ };
24
+ };
25
+ export declare function getPageContentTabSchema(pageSchemaUid: string): {
26
+ type: string;
27
+ 'x-uid': string;
28
+ 'x-async': boolean;
29
+ 'x-component': string;
30
+ 'x-component-props': {
31
+ showDivider: boolean;
32
+ };
33
+ 'x-initializer': string;
34
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ mobilePageContent: {
11
+ maxWidth: string;
12
+ overflowX: "hidden";
13
+ };
14
+ }>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ export interface MobilePageContextProps {
11
+ /**
12
+ * @default true
13
+ */
14
+ displayPageHeader?: boolean;
15
+ /**
16
+ * @default true
17
+ */
18
+ displayNavigationBar?: boolean;
19
+ /**
20
+ * @default true
21
+ */
22
+ displayPageTitle?: boolean;
23
+ /**
24
+ * @default false
25
+ */
26
+ displayTabs?: boolean;
27
+ }
28
+ export declare const MobilePageContext: React.Context<MobilePageContextProps>;
29
+ export interface MobilePageProviderProps extends MobilePageContextProps {
30
+ children?: React.ReactNode;
31
+ }
32
+ export declare const MobilePageProvider: FC<MobilePageProviderProps>;
33
+ export declare const useMobilePage: () => MobilePageContextProps;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { FC } from 'react';
10
+ export declare const MobilePageHeader: FC;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './MobilePageHeader';
10
+ export * from './tabs';
11
+ export * from './navigation-bar';
12
+ export * from './schema';