@nocobase/plugin-mobile 1.5.0-beta.2 → 1.5.0-beta.21

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.
@@ -10,6 +10,8 @@ import React, { FC } from 'react';
10
10
  interface MobileAppContextProps {
11
11
  showTabBar?: boolean;
12
12
  setShowTabBar?: (showTabBar: boolean) => void;
13
+ showBackButton?: boolean;
14
+ setShowBackButton?: (showBackButton: boolean) => void;
13
15
  }
14
16
  export declare const MobileAppContext: React.Context<MobileAppContextProps>;
15
17
  export interface MobileAppProviderProps {
@@ -6,6 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
- nbMobile: import("antd-style").SerializedStyles;
11
- }>;
9
+ export declare const useStyles: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
@@ -6,48 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
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
- padding: string;
18
- borderTop: string;
19
- backgroundColor: "var(--adm-color-background)";
20
- };
21
- mobileTabBarContent: {
22
- display: "flex";
23
- justifyContent: "space-between";
24
- alignItems: "center";
25
- gap: string;
26
- height: string;
27
- };
28
- mobileTabBarList: {
29
- display: "flex";
30
- justifyContent: "space-around";
31
- flex: number;
32
- alignItems: "center";
33
- overflowX: "auto";
34
- '.adm-tab-bar-item': {
35
- maxWidth: string;
36
- '.adm-tab-bar-item-title': {
37
- maxWidth: string;
38
- overflow: "hidden";
39
- whiteSpace: "nowrap";
40
- textOverflow: "ellipsis";
41
- };
42
- };
43
- '&>div': {
44
- flex: number;
45
- display: "flex";
46
- justifyContent: "center";
47
- alignItems: "center";
48
- };
49
- '.ant-btn-icon': {
50
- marginInlineEnd: string;
51
- };
52
- };
53
- }>;
9
+ export declare const useStyles: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
@@ -8,4 +8,11 @@
8
8
  */
9
9
  import React from 'react';
10
10
  declare const MobileDateTimePicker: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
11
- export { MobileDateTimePicker };
11
+ declare const MobileRangePicker: (props: any) => React.JSX.Element;
12
+ declare const MobileDateFilterWithPicker: (props: any) => React.JSX.Element;
13
+ type ComposedMobileTimePicker = React.FC<any> & {
14
+ RangePicker?: React.FC<any>;
15
+ ReadPretty?: React.FC<any>;
16
+ };
17
+ declare const MobileTimePicker: ComposedMobileTimePicker;
18
+ export { MobileDateTimePicker, MobileRangePicker, MobileDateFilterWithPicker, MobileTimePicker };
@@ -6,8 +6,8 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import React, { FC } from 'react';
10
9
  import { ButtonProps } from 'antd-mobile';
10
+ import React, { FC } from 'react';
11
11
  interface MobileNavigationBarActionProps extends ButtonProps {
12
12
  icon?: string | React.ReactNode;
13
13
  title?: string;
@@ -6,40 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
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
- }>;
9
+ export declare const useStyles: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
@@ -6,22 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
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
- }>;
9
+ export declare const useStyles: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
@@ -6,13 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
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
- }>;
9
+ export declare const mobilePageHeaderStyle: any;
@@ -6,19 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
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
- }>;
9
+ export declare const useStyles: (props?: any) => import("@nocobase/client/es/schema-component/antd/__builtins__").UseComponentStyleResult;
@@ -11,23 +11,23 @@ module.exports = {
11
11
  "@emotion/css": "11.13.4",
12
12
  "@formily/core": "2.3.0",
13
13
  "@formily/shared": "2.3.2",
14
- "@nocobase/client": "1.5.0-beta.2",
15
- "@nocobase/plugin-acl": "1.5.0-beta.2",
14
+ "@nocobase/client": "1.5.0-beta.21",
15
+ "@nocobase/plugin-acl": "1.5.0-beta.21",
16
16
  "ahooks": "3.7.8",
17
17
  "antd": "5.12.8",
18
18
  "lodash": "4.17.21",
19
19
  "react": "18.2.0",
20
20
  "react-i18next": "11.18.6",
21
21
  "react-router-dom": "6.21.0",
22
- "@nocobase/database": "1.5.0-beta.2",
23
- "@nocobase/server": "1.5.0-beta.2",
24
- "@nocobase/test": "1.5.0-beta.2",
25
- "@nocobase/utils": "1.5.0-beta.2",
22
+ "@nocobase/database": "1.5.0-beta.21",
23
+ "@nocobase/server": "1.5.0-beta.21",
24
+ "@nocobase/test": "1.5.0-beta.21",
25
+ "@nocobase/utils": "1.5.0-beta.21",
26
26
  "@formily/react": "2.3.0",
27
- "@nocobase/plugin-mobile": "1.5.0-beta.2",
27
+ "@nocobase/plugin-mobile": "1.5.0-beta.21",
28
28
  "@ant-design/icons": "5.2.6",
29
29
  "react-dom": "18.2.0",
30
- "antd-style": "3.7.1",
31
- "@nocobase/sdk": "1.5.0-beta.2",
30
+ "@nocobase/sdk": "1.5.0-beta.21",
31
+ "dayjs": "1.11.10",
32
32
  "@formily/antd-v5": "1.1.9"
33
33
  };
@@ -29,5 +29,6 @@
29
29
  "Select time": "选择时间",
30
30
  "Clear": "清空",
31
31
  "Confirm": "确认",
32
- "Cancel": "取消"
32
+ "Cancel": "取消",
33
+ "Display < back button": "显示 < 返回按钮"
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-mobile",
3
- "version": "1.5.0-beta.2",
3
+ "version": "1.5.0-beta.21",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/mobile",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile",
@@ -32,5 +32,5 @@
32
32
  "react-device-detect": "2.2.3",
33
33
  "react-i18next": "11.x"
34
34
  },
35
- "gitHead": "8a9c29fdac5c6295dcc7abf00c3fa81bd9e01a36"
35
+ "gitHead": "6a2c545d9e5e4f073592c810e704e6b0fe9aa096"
36
36
  }
@@ -1,12 +0,0 @@
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
- }>;
@@ -1,14 +0,0 @@
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
- }>;