@nocobase/plugin-mobile-client 1.3.0-alpha.20240807100243 → 1.3.0-alpha.20240819011229
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/dist/client/index.js +1 -1
- package/dist/externalVersion.js +3 -3
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
background: ${e.colorBgContainer};
|
|
38
38
|
width: 100%;
|
|
39
39
|
margin-bottom: var(--nb-spacing);
|
|
40
|
-
`})),$e=e=>{const{styles:t}=La(),n=r.useDesigner(),a=b.useFieldSchema(),{insertBeforeEnd:i,designable:c}=r.useDesignable(),{t:d}=P(),s=u=>{const p={page:pt};return i({type:"void",title:u.name,"x-component":"MMenu.Item","x-component-props":u,"x-designer":"MMenu.Item.Designer",properties:p})};return o.jsx(r.SortableItem,{className:r.cx("nb-mobile-menu",t.mobileMenu),children:o.jsxs(se,{children:[c&&o.jsx(se.Item,{children:o.jsx(n,{})}),o.jsx(r.DndContext,{children:o.jsx(r.SchemaComponent,{onlyRenderProperties:!0,schema:a})}),c?o.jsx(se.Item,{children:o.jsx(r.SchemaInitializerActionModal,{buttonText:d("Add menu item"),title:d("Add menu item"),schema:ut,onSubmit:s})}):null]})})};$e.Item=mt,$e.Designer=_a;const ce=(e,t)=>e.reduceProperties((a,i)=>a||i["x-component"]===t&&i),za=e=>ce(e,"Grid"),Ga=["Grid","Grid.Row"],Ua=["Grid.Col"],Ce=(e,t)=>{if(!e)return 0;let n=0;return Ua.includes(e["x-component"])&&(n+=1),
|
|
40
|
+
`})),$e=e=>{const{styles:t}=La(),n=r.useDesigner(),a=b.useFieldSchema(),{insertBeforeEnd:i,designable:c}=r.useDesignable(),{t:d}=P(),s=u=>{const p={page:pt};return i({type:"void",title:u.name,"x-component":"MMenu.Item","x-component-props":u,"x-designer":"MMenu.Item.Designer",properties:p})};return o.jsx(r.SortableItem,{className:r.cx("nb-mobile-menu",t.mobileMenu),children:o.jsxs(se,{children:[c&&o.jsx(se.Item,{children:o.jsx(n,{})}),o.jsx(r.DndContext,{children:o.jsx(r.SchemaComponent,{onlyRenderProperties:!0,schema:a})}),c?o.jsx(se.Item,{children:o.jsx(r.SchemaInitializerActionModal,{buttonText:d("Add menu item"),title:d("Add menu item"),schema:ut,onSubmit:s})}):null]})})};$e.Item=mt,$e.Designer=_a;const ce=(e,t)=>e.reduceProperties((a,i)=>a||i["x-component"]===t&&i),za=e=>ce(e,"Grid"),Ga=["Grid","Grid.Row"],Ua=["Grid.Col"],Ce=(e,t)=>{if(!e)return 0;let n=0;return Ua.includes(e["x-component"])&&(n+=1),n>=t||Ga.includes(e["x-component"])&&e.mapProperties(a=>{n+=Ce(a,t)}),n},qa=()=>{const{t:e}=P(),t=b.useFieldSchema(),{onUpdateComponentProps:n}=W(),a=b.useField(),{dn:i}=r.useDesignable(),c=v.useNavigate(),d=ce(t,"MTabBar"),s=d&&a.componentProps.tabBarEnabled!==!1,u={dn:i,field:a,fieldSchema:t};return o.jsx(r.SchemaSettingsDropdown,k(x({title:o.jsx(S.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:o.jsx(B.MenuOutlined,{}),type:"dashed",children:e("App level Configuration")})},u),{children:o.jsx(r.SchemaSettingsSwitchItem,{checked:s,title:e("Enable TabBar"),onChange:p=>F(this,null,function*(){if(p&&!d){const f=ce(t,"MPage");yield i.remove(f),yield i.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[pe.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:A("Untitled")},properties:{page:f.toJSON()}}}})}yield n({tabBarEnabled:p}),p===!1&&c("../")})})}))},Va=r.createStyles(({token:e,css:t})=>({mobileContainer:t`
|
|
41
41
|
--adm-color-primary: ${e.colorPrimary};
|
|
42
42
|
|
|
43
43
|
& > .general-schema-designer > .general-schema-designer-icons {
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.3.0-alpha.
|
|
11
|
+
"@nocobase/client": "1.3.0-alpha.20240819011229",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"react-router-dom": "6.21.0",
|
|
14
|
-
"@nocobase/server": "1.3.0-alpha.
|
|
14
|
+
"@nocobase/server": "1.3.0-alpha.20240819011229",
|
|
15
15
|
"antd": "5.12.8",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
17
|
"@ant-design/icons": "5.2.6",
|
|
18
|
-
"@nocobase/database": "1.3.0-alpha.
|
|
18
|
+
"@nocobase/database": "1.3.0-alpha.20240819011229",
|
|
19
19
|
"@formily/react": "2.3.0",
|
|
20
20
|
"@formily/shared": "2.3.0",
|
|
21
21
|
"lodash": "4.17.21",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-mobile-client",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.20240819011229",
|
|
4
4
|
"main": "./dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/mobile-client",
|
|
6
6
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile-client",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@nocobase/test": "1.x",
|
|
34
34
|
"@nocobase/utils": "1.x"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "76365630f8f7129a9308da4aaa1661c08603d04b"
|
|
37
37
|
}
|