@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 { FC } from 'react';
10
+ export declare const MobilePageNavigationBar: FC;
@@ -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 ActionColorSelect: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -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 ActionFillSelect: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,28 @@
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 { SpaceProps } from 'antd';
10
+ import React, { CSSProperties } from 'react';
11
+ export interface ActionBarProps {
12
+ style?: CSSProperties;
13
+ className?: string;
14
+ spaceProps?: SpaceProps;
15
+ }
16
+ export interface ActionBarContextValue {
17
+ container?: Element | DocumentFragment;
18
+ /**
19
+ * override props
20
+ */
21
+ forceProps?: ActionBarProps;
22
+ parentComponents?: string[];
23
+ }
24
+ export declare const ActionBarProvider: React.FC<ActionBarContextValue>;
25
+ export declare const useActionBarContext: () => ActionBarContextValue;
26
+ export declare const MobileNavigationActionBar: React.FunctionComponent<Omit<{
27
+ children?: React.ReactNode;
28
+ }, string | number | symbol> & Omit<any, "ref">>;
@@ -0,0 +1,59 @@
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
+ /// <reference types="react" />
10
+ export declare const actionCommonInitializerSchema: {
11
+ title: {
12
+ type: string;
13
+ title: string;
14
+ 'x-decorator': string;
15
+ 'x-component': string;
16
+ 'x-reactions': {
17
+ target: string;
18
+ fulfill: {
19
+ state: {
20
+ required: string;
21
+ };
22
+ };
23
+ }[];
24
+ };
25
+ icon: {
26
+ type: string;
27
+ title: string;
28
+ 'x-decorator': string;
29
+ 'x-component': string;
30
+ 'x-reactions': {
31
+ target: string;
32
+ fulfill: {
33
+ state: {
34
+ required: string;
35
+ };
36
+ };
37
+ }[];
38
+ };
39
+ color: {
40
+ type: string;
41
+ title: string;
42
+ 'x-decorator': string;
43
+ 'x-component': import("react").ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & import("react").RefAttributes<unknown>>;
44
+ };
45
+ fill: {
46
+ type: string;
47
+ title: string;
48
+ 'x-decorator': string;
49
+ 'x-component': import("react").ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & import("react").RefAttributes<unknown>>;
50
+ 'x-reactions': {
51
+ dependencies: string[];
52
+ fulfill: {
53
+ state: {
54
+ visible: string;
55
+ };
56
+ };
57
+ }[];
58
+ };
59
+ };
@@ -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 editAction: (extraProperties?: (values: any) => Record<string, ISchema>) => import("@nocobase/client").SchemaSettingsItemType;
@@ -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 './items';
10
+ export * from './mobileNavigationBarActionsInitializer';
11
+ export * from './mobile-navigation-bar-action';
12
+ export * from './MobileNavigationActionBar';
@@ -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 * from './link';
@@ -0,0 +1,15 @@
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, SchemaInitializerItemActionModalType, SchemaSettings } from '@nocobase/client';
10
+ export declare const mobileNavigationBarLinkSettings: SchemaSettings<{}>;
11
+ export declare const useMobileNavigationBarLink: () => {
12
+ onClick: () => Promise<void>;
13
+ };
14
+ export declare const getMobileNavigationBarLinkSchema: (values: any) => ISchema;
15
+ export declare const mobileNavigationBarLinkInitializerItem: SchemaInitializerItemActionModalType;
@@ -0,0 +1,19 @@
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
+ import { ButtonProps } from 'antd-mobile';
11
+ interface MobileNavigationBarActionProps extends ButtonProps {
12
+ icon?: string | React.ReactNode;
13
+ title?: string;
14
+ style?: React.CSSProperties;
15
+ className?: string;
16
+ onClick?: () => void;
17
+ }
18
+ export declare const MobileNavigationBarAction: FC<MobileNavigationBarActionProps>;
19
+ export {};
@@ -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 * from './MobileNavigationBarAction';
@@ -0,0 +1,45 @@
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
+ navigationBarAction: {
11
+ maxWidth: string;
12
+ '.adm-space': {
13
+ maxWidth: string;
14
+ overflow: "hidden";
15
+ };
16
+ };
17
+ navigationBarActionIcon: {
18
+ width: number;
19
+ height: number;
20
+ lineHeight: string;
21
+ fontSize: number;
22
+ padding: number;
23
+ display: "flex";
24
+ alignItems: "center";
25
+ justifyContent: "center";
26
+ '.schema-toolbar': {
27
+ inset: string;
28
+ };
29
+ };
30
+ navigationBarActionTitle: {
31
+ fontSize: number;
32
+ padding: number;
33
+ '.schema-toolbar': {
34
+ inset: string;
35
+ };
36
+ };
37
+ navigationBarActionIconAndTitle: {
38
+ height: string;
39
+ fontSize: string;
40
+ padding: string;
41
+ '.schema-toolbar': {
42
+ inset: string;
43
+ };
44
+ };
45
+ }>;
@@ -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 mobileNavigationBarActionsInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
@@ -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 './actions';
10
+ export * from './MobilePageNavigationBar';
@@ -0,0 +1,27 @@
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
+ mobilePageNavigationBar: {
11
+ '.adm-nav-bar': {
12
+ maxWidth: string;
13
+ height: number;
14
+ overflow: "hidden";
15
+ '.adm-nav-bar-left': {
16
+ display: "flex";
17
+ alignItems: "center";
18
+ justifyContent: "flex-start";
19
+ };
20
+ '.adm-nav-bar-right': {
21
+ display: "flex";
22
+ alignItems: "center";
23
+ justifyContent: "flex-end";
24
+ };
25
+ };
26
+ };
27
+ }>;
@@ -0,0 +1,37 @@
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 mobilePageHeaderSchema: {
10
+ type: string;
11
+ 'x-component': string;
12
+ properties: {
13
+ pageNavigationBar: {
14
+ type: string;
15
+ 'x-component': string;
16
+ properties: {
17
+ actionBar: {
18
+ type: string;
19
+ 'x-component': string;
20
+ 'x-initializer': string;
21
+ 'x-component-props': {
22
+ spaceProps: {
23
+ style: {
24
+ flexWrap: string;
25
+ };
26
+ };
27
+ };
28
+ properties: {};
29
+ };
30
+ };
31
+ };
32
+ pageTabs: {
33
+ type: string;
34
+ 'x-component': string;
35
+ };
36
+ };
37
+ };
@@ -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
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ mobilePageHeader: {
11
+ position: "absolute";
12
+ top: number;
13
+ left: number;
14
+ right: number;
15
+ borderBottom: string;
16
+ backgroundColor: "var(--adm-color-background)";
17
+ };
18
+ }>;
@@ -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 MobilePageTabs: 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 './MobilePageTabs';
10
+ export * from './styles';
11
+ export * from './settings';
12
+ export * from './initializer';
@@ -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 mobilePagesTabInitializer: SchemaInitializer<import("antd").ButtonProps, {}>;
11
+ export declare const MobilePageTabInitializer: () => any;
@@ -0,0 +1,17 @@
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 { SchemaSettings } from '@nocobase/client';
11
+ import { MobileRouteItem } from '../../../../mobile-providers';
12
+ export declare const mobilePageTabsSettings: SchemaSettings<{}>;
13
+ interface MobilePageTabsSettingsProps {
14
+ tab: MobileRouteItem;
15
+ }
16
+ export declare const MobilePageTabsSettings: FC<MobilePageTabsSettingsProps>;
17
+ export {};
@@ -0,0 +1,24 @@
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
+ mobilePageTabs: {
11
+ display: "flex";
12
+ alignItems: "center";
13
+ justifyContent: "space-between";
14
+ };
15
+ mobilePageTabsList: {
16
+ '.adm-tabs-header': {
17
+ borderBottomWidth: number;
18
+ };
19
+ '.adm-tabs-tab': {
20
+ height: number;
21
+ padding: string;
22
+ };
23
+ };
24
+ }>;
@@ -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 * from './MobilePage';
10
+ export * from './schema';
11
+ export * from './settings';
12
+ export * from './context';
13
+ export * from './content';
14
+ export * from './header';
@@ -0,0 +1,81 @@
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 getMobilePageSchema(pageSchemaUid: string, firstTabUid: string): {
10
+ schema: {
11
+ type: string;
12
+ name: string;
13
+ 'x-uid': string;
14
+ 'x-component': string;
15
+ 'x-settings': string;
16
+ 'x-decorator': string;
17
+ 'x-decorator-props': {
18
+ style: {
19
+ height: string;
20
+ };
21
+ };
22
+ 'x-toolbar-props': {
23
+ draggable: boolean;
24
+ spaceWrapperStyle: {
25
+ right: number;
26
+ top: number;
27
+ };
28
+ spaceClassName: string;
29
+ toolbarStyle: {
30
+ overflowX: string;
31
+ };
32
+ };
33
+ properties: {
34
+ header: {
35
+ type: string;
36
+ 'x-component': string;
37
+ properties: {
38
+ pageNavigationBar: {
39
+ type: string;
40
+ 'x-component': string;
41
+ properties: {
42
+ actionBar: {
43
+ type: string;
44
+ 'x-component': string;
45
+ 'x-initializer': string;
46
+ 'x-component-props': {
47
+ spaceProps: {
48
+ style: {
49
+ flexWrap: string;
50
+ };
51
+ };
52
+ };
53
+ properties: {};
54
+ };
55
+ };
56
+ };
57
+ pageTabs: {
58
+ type: string;
59
+ 'x-component': string;
60
+ };
61
+ };
62
+ };
63
+ content: {
64
+ type: string;
65
+ 'x-component': string;
66
+ properties: {
67
+ [x: string]: {
68
+ type: string;
69
+ 'x-uid': string;
70
+ 'x-async': boolean;
71
+ 'x-component': string;
72
+ 'x-component-props': {
73
+ showDivider: boolean;
74
+ };
75
+ 'x-initializer': string;
76
+ };
77
+ };
78
+ };
79
+ };
80
+ };
81
+ };
@@ -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 mobilePageSettings: 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
+ import React from 'react';
10
+ export declare const MobileHomePage: () => React.JSX.Element;
@@ -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 * from './MobileHomePage';
@@ -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 './home';
10
+ export * from './not-found';
11
+ export * from './dynamic-page';
@@ -0,0 +1,16 @@
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
+ /**
11
+ * 在移动端通过 Action 按钮打开的页面
12
+ * @returns
13
+ */
14
+ export declare const MobileActionPage: ({ level }: {
15
+ level: any;
16
+ }) => React.JSX.Element;
@@ -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 declare const useMobileActionPageStyle: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ container: any;
11
+ }>;
@@ -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 const MobileTabsForMobileActionPage: any;
@@ -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 declare const useMobileTabsForMobileActionPageStyle: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ container: any;
11
+ backButton: any;
12
+ }>;
@@ -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 MobileNotFoundPage: () => React.JSX.Element;