@nocobase/plugin-map 1.4.0-alpha.20240919174335 → 1.4.0-alpha.20240928155737

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.
@@ -121,4 +121,4 @@
121
121
  .nb-action-bar {
122
122
  margin-bottom: ${M.margin}px;
123
123
  }
124
- `,children:e.children})]})})})},Lt=e=>{const{filter:o,parseVariableLoading:t}=r.useParsedFilter({filterOption:e==null?void 0:e.filter});return{params:V(k({},e),{filter:o}),parseVariableLoading:t}},Dt=e=>{const o=U.useField(),{fieldNames:t}=e,{params:n,parseVariableLoading:l}=Lt(e.params);if(l)return null;const a=n.appends||[],{field:c}=t||{};return Array.isArray(c)&&c.length>1&&a.push(c[0]),i.jsx(r.BlockProvider,V(k({name:"map"},e),{runWhenParamsChanged:!0,params:V(k({},n),{appends:a,paginate:!1,sort:o.componentProps.lineSort}),children:i.jsx(Et,k({},e))}))},ve=()=>h.useContext(Ee),He=()=>{var o,t,n,l,a,c;const e=ve();return V(k({},e),{dataSource:(t=(o=e==null?void 0:e.service)==null?void 0:o.data)==null?void 0:t.data,zoom:((l=(n=e==null?void 0:e.field)==null?void 0:n.componentProps)==null?void 0:l.zoom)||13,lineSort:(c=(a=e==null?void 0:e.field)==null?void 0:a.componentProps)==null?void 0:c.lineSort})},Tt=e=>i.jsx(r.SchemaComponentOptions,{scope:{useMapBlockProps:He},components:{MapBlockInitializer:Ot,MapBlockDesigner:kt,MapBlockProvider:Dt,MapBlock:It},children:e.children}),Je={title:"{{t('Configure actions')}}",icon:"SettingOutlined",style:{marginLeft:8},items:[{name:"filter",title:"{{t('Filter')}}",Component:"FilterActionInitializer",schema:{"x-align":"left"}},{name:"addNew",title:"{{t('Add new')}}",Component:"CreateActionInitializer",schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-acl-action-props":{skipScopeCheck:!0}},useVisible:()=>r.useActionAvailable("create")},{name:"refresh",title:"{{t('Refresh')}}",Component:"RefreshActionInitializer",schema:{"x-align":"right"}}]},Ze=new r.CompatibleSchemaInitializer(k({name:"MapActionInitializers"},Je)),zt=new r.CompatibleSchemaInitializer(k({name:"map:configureActions"},Je),Ze),Xe={name:"defaultZoomLevel",Component:r.SchemaSettingsModalItem,useComponentProps(){var a;const{t:e}=W(),o=U.useFieldSchema(),t=U.useField(),{dn:n}=r.useDesignable(),l=((a=o==null?void 0:o["x-component-props"])==null?void 0:a.zoom)||13;return{title:e("The default zoom level of the map"),schema:{type:"object",title:e("Set default zoom level"),properties:{zoom:{title:e("Zoom"),default:l,"x-component":"InputNumber","x-decorator":"FormItem","x-component-props":{precision:0}}}},onSubmit:({zoom:c})=>{me.set(o,"x-component-props.zoom",c),t.componentProps.zoom=c,n.emit("patch",{schema:{"x-uid":o["x-uid"],"x-component-props":o["x-component-props"]}}),n.refresh()}}}},Bt=new r.SchemaSettings({name:"blockSettings:map",items:[{name:"title",Component:r.SchemaSettingsBlockTitleItem},{name:"setTheBlockHeight",Component:r.SchemaSettingsBlockHeightItem},{name:"mapField",Component:r.SchemaSettingsCascaderItem,useComponentProps(){var v;const{getCollectionFieldsOptions:e}=r.useCollectionManager_deprecated(),{t:o}=W(),t=U.useFieldSchema(),n=((v=t==null?void 0:t["x-decorator-props"])==null?void 0:v.fieldNames)||{},l=U.useField(),{dn:a}=r.useDesignable(),{service:c}=ve(),{name:g}=r.useCollection(),M=e(g,["point","lineString","polygon"],{association:["o2o","obo","oho","o2m","m2o","m2m"]});return{title:o("Map field"),value:n.field,options:M,allowClear:!1,onChange:A=>{const p=l.decoratorProps.fieldNames||{};p.field=A,l.decoratorProps.fieldNames=p,t["x-decorator-props"].fieldNames=p,c.refresh(),a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-decorator-props":l.decoratorProps}}),a.refresh()}}}},{name:"markerField",Component:r.SchemaSettingsSelectItem,useComponentProps(){var v;const{t:e}=W(),o=U.useFieldSchema(),t=((v=o==null?void 0:o["x-decorator-props"])==null?void 0:v.fieldNames)||{},{service:n}=ve(),l=U.useField(),{dn:a}=r.useDesignable(),{getCollectionFieldsOptions:c}=r.useCollectionManager_deprecated(),{name:g}=r.useCollection(),M=c(g,"string");return{title:e("Marker field"),value:t.marker,options:M,onChange:A=>{const p=l.decoratorProps.fieldNames||{};p.marker=A,l.decoratorProps.fieldNames=p,o["x-decorator-props"].fieldNames=p,n.refresh(),a.emit("patch",{schema:{"x-uid":o["x-uid"],"x-decorator-props":l.decoratorProps}}),a.refresh()}}},useVisible(){var c,g;const e=U.useFieldSchema(),{getCollectionFieldsOptions:o}=r.useCollectionManager_deprecated(),{name:t}=r.useCollection(),n=((c=e==null?void 0:e["x-decorator-props"])==null?void 0:c.fieldNames)||{},l=o(t,["point","lineString","polygon"],{association:["o2o","obo","oho","o2m","m2o","m2m"]});return((g=Ye(n.field,l))==null?void 0:g.type)==="point"}},{name:"setDefaultSortingRules",Component:r.SchemaSettingsDefaultSortingRules,useComponentProps(){const{t:e}=W();return{path:"x-component-props.lineSort",title:e("Concatenation order field")}}},r.setDataLoadingModeSettingsItem,Xe,{name:"dataScope",Component:r.SchemaSettingsDataScope,useComponentProps(){var c,g;const{name:e}=r.useCollection(),o=U.useFieldSchema(),{form:t}=r.useFormBlockContext(),n=U.useField(),{service:l}=ve(),{dn:a}=r.useDesignable();return{collectionName:e,defaultFilter:((g=(c=o==null?void 0:o["x-decorator-props"])==null?void 0:c.params)==null?void 0:g.filter)||{},form:t,onSubmit:({filter:M})=>{var A,p;const v=n.decoratorProps.params||{};v.filter=M,n.decoratorProps.params=v,o["x-decorator-props"].params=v,(p=(A=l.params)==null?void 0:A[1])!=null&&p.filters,a.emit("patch",{schema:{"x-uid":o["x-uid"],"x-decorator-props":o["x-decorator-props"]}})}}}},{name:"ConnectDataBlocks",Component:r.SchemaSettingsConnectDataBlocks,useComponentProps(){const{t:e}=W();return{type:r.FilterBlockType.TABLE,emptyDescription:e("No blocks to connect")}}},{name:"divider",type:"divider"},{name:"template",Component:r.SchemaSettingsTemplate,useComponentProps(){var l,a;const{name:e}=r.useCollection(),o=U.useFieldSchema(),{componentNamePrefix:t}=r.useBlockTemplateContext(),n=((l=o==null?void 0:o["x-decorator-props"])==null?void 0:l.resource)||((a=o==null?void 0:o["x-decorator-props"])==null?void 0:a.association);return{componentName:`${t}Map`,collectionName:e,resourceName:n}}},{name:"divider2",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),{defaultProps:Ut}=r.interfacesProperties;Array.isArray(r.interfacesProperties.type.enum)&&r.interfacesProperties.type.enum.push({label:"Point",value:"point"},{label:"LineString",value:"lineString"},{label:"Polygon",value:"polygon"},{label:"Circle",value:"circle"});class Ae extends r.CollectionFieldInterface{constructor(){super(...arguments);O(this,"properties",V(k({},Ut),{"uiSchema.x-component-props.mapType":{title:X("Map type"),type:"string",required:!0,"x-decorator":"FormItem","x-component":"Select","x-component-props":{showSearch:!1,allowClear:!1},"x-disabled":"{{ isOverride || !createOnly }}",default:"amap",enum:Te}}))}schemaInitialize(t,{block:n}){n==="Form"&&Object.assign(t,{"x-designer":"Map.Designer"})}}class Kt extends Ae{constructor(){super(...arguments);O(this,"name","circle");O(this,"type","object");O(this,"group","map");O(this,"order",3);O(this,"title",X("Circle"));O(this,"availableTypes",["circle","json"]);O(this,"description",X("Circle"));O(this,"sortable",!0);O(this,"default",{type:"circle",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class Nt extends Ae{constructor(){super(...arguments);O(this,"name","lineString");O(this,"type","object");O(this,"group","map");O(this,"order",2);O(this,"title",X("Line"));O(this,"description",X("Line"));O(this,"availableTypes",["lineString","json"]);O(this,"sortable",!0);O(this,"default",{type:"lineString",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class Gt extends Ae{constructor(){super(...arguments);O(this,"name","point");O(this,"type","object");O(this,"group","map");O(this,"order",1);O(this,"title",X("Point"));O(this,"description",X("Point"));O(this,"availableTypes",["point","json"]);O(this,"sortable",!0);O(this,"default",{type:"point",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class jt extends Ae{constructor(){super(...arguments);O(this,"name","polygon");O(this,"type","object");O(this,"group","map");O(this,"order",4);O(this,"title",X("Polygon"));O(this,"description",X("Polygon"));O(this,"availableTypes",["polygon","json"]);O(this,"sortable",!0);O(this,"default",{type:"polygon",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}const qt=[Gt,jt,Nt,Kt],_t=new r.SchemaSettings({name:"fieldSettings:component:Map",items:[Xe]}),Qe=h.memo(e=>i.jsx(r.SchemaComponentOptions,{components:{Map:We},children:i.jsx(Tt,{children:e.children})}));Qe.displayName="MapProvider";class $e extends r.Plugin{load(){return Ce(this,null,function*(){this.app.use(Qe),this.app.dataSourceManager.addFieldInterfaces(qt),this.app.dataSourceManager.addFieldInterfaceGroups({map:{label:X("Map-based geometry"),order:51}}),this.app.schemaInitializerManager.add(Ze),this.app.schemaInitializerManager.add(zt),this.schemaSettingsManager.add(Bt),this.schemaSettingsManager.add(_t);const o=this.app.schemaInitializerManager.get("page:addBlock");o==null||o.add("dataBlocks.map",{title:X("Map"),Component:"MapBlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.map",{title:X("Map"),Component:"MapBlockInitializer"}),this.app.pluginSettingsManager.add(be,{title:`{{t("Map Manager", { ns: "${be}" })}}`,icon:"EnvironmentOutlined",Component:ut,aclSnippet:"pm.map.configuration"}),this.app.addScopes({useMapBlockProps:He})})}}D.PluginMapClient=$e,D.default=$e,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
124
+ `,children:e.children})]})})})},Lt=e=>{const{filter:o,parseVariableLoading:t}=r.useParsedFilter({filterOption:e==null?void 0:e.filter});return{params:V(k({},e),{filter:o}),parseVariableLoading:t}},Dt=e=>{const o=U.useField(),{fieldNames:t}=e,{params:n,parseVariableLoading:l}=Lt(e.params);if(l)return null;const a=n.appends||[],{field:c}=t||{};return Array.isArray(c)&&c.length>1&&a.push(c[0]),i.jsx(r.BlockProvider,V(k({name:"map"},e),{runWhenParamsChanged:!0,params:V(k({},n),{appends:a,paginate:!1,sort:o.componentProps.lineSort}),children:i.jsx(Et,k({},e))}))},ve=()=>h.useContext(Ee),He=()=>{var o,t,n,l,a,c;const e=ve();return V(k({},e),{dataSource:(t=(o=e==null?void 0:e.service)==null?void 0:o.data)==null?void 0:t.data,zoom:((l=(n=e==null?void 0:e.field)==null?void 0:n.componentProps)==null?void 0:l.zoom)||13,lineSort:(c=(a=e==null?void 0:e.field)==null?void 0:a.componentProps)==null?void 0:c.lineSort})},Tt=e=>i.jsx(r.SchemaComponentOptions,{scope:{useMapBlockProps:He},components:{MapBlockInitializer:Ot,MapBlockDesigner:kt,MapBlockProvider:Dt,MapBlock:It},children:e.children}),Je={title:"{{t('Configure actions')}}",icon:"SettingOutlined",style:{marginLeft:8},items:[{name:"filter",title:"{{t('Filter')}}",Component:"FilterActionInitializer",schema:{"x-align":"left"}},{name:"addNew",title:"{{t('Add new')}}",Component:"CreateActionInitializer",schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-acl-action-props":{skipScopeCheck:!0}},useVisible:()=>r.useActionAvailable("create")},{name:"refresh",title:"{{t('Refresh')}}",Component:"RefreshActionInitializer",schema:{"x-align":"right"}},{name:"customRequest",title:'{{t("Custom request")}}',Component:"CustomRequestInitializer",schema:{"x-action":"customize:table:request:global"}}]},Ze=new r.CompatibleSchemaInitializer(k({name:"MapActionInitializers"},Je)),zt=new r.CompatibleSchemaInitializer(k({name:"map:configureActions"},Je),Ze),Xe={name:"defaultZoomLevel",Component:r.SchemaSettingsModalItem,useComponentProps(){var a;const{t:e}=W(),o=U.useFieldSchema(),t=U.useField(),{dn:n}=r.useDesignable(),l=((a=o==null?void 0:o["x-component-props"])==null?void 0:a.zoom)||13;return{title:e("The default zoom level of the map"),schema:{type:"object",title:e("Set default zoom level"),properties:{zoom:{title:e("Zoom"),default:l,"x-component":"InputNumber","x-decorator":"FormItem","x-component-props":{precision:0}}}},onSubmit:({zoom:c})=>{me.set(o,"x-component-props.zoom",c),t.componentProps.zoom=c,n.emit("patch",{schema:{"x-uid":o["x-uid"],"x-component-props":o["x-component-props"]}}),n.refresh()}}}},Bt=new r.SchemaSettings({name:"blockSettings:map",items:[{name:"title",Component:r.SchemaSettingsBlockTitleItem},{name:"setTheBlockHeight",Component:r.SchemaSettingsBlockHeightItem},{name:"mapField",Component:r.SchemaSettingsCascaderItem,useComponentProps(){var v;const{getCollectionFieldsOptions:e}=r.useCollectionManager_deprecated(),{t:o}=W(),t=U.useFieldSchema(),n=((v=t==null?void 0:t["x-decorator-props"])==null?void 0:v.fieldNames)||{},l=U.useField(),{dn:a}=r.useDesignable(),{service:c}=ve(),{name:g}=r.useCollection(),M=e(g,["point","lineString","polygon"],{association:["o2o","obo","oho","o2m","m2o","m2m"]});return{title:o("Map field"),value:n.field,options:M,allowClear:!1,onChange:A=>{const p=l.decoratorProps.fieldNames||{};p.field=A,l.decoratorProps.fieldNames=p,t["x-decorator-props"].fieldNames=p,c.refresh(),a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-decorator-props":l.decoratorProps}}),a.refresh()}}}},{name:"markerField",Component:r.SchemaSettingsSelectItem,useComponentProps(){var v;const{t:e}=W(),o=U.useFieldSchema(),t=((v=o==null?void 0:o["x-decorator-props"])==null?void 0:v.fieldNames)||{},{service:n}=ve(),l=U.useField(),{dn:a}=r.useDesignable(),{getCollectionFieldsOptions:c}=r.useCollectionManager_deprecated(),{name:g}=r.useCollection(),M=c(g,"string");return{title:e("Marker field"),value:t.marker,options:M,onChange:A=>{const p=l.decoratorProps.fieldNames||{};p.marker=A,l.decoratorProps.fieldNames=p,o["x-decorator-props"].fieldNames=p,n.refresh(),a.emit("patch",{schema:{"x-uid":o["x-uid"],"x-decorator-props":l.decoratorProps}}),a.refresh()}}},useVisible(){var c,g;const e=U.useFieldSchema(),{getCollectionFieldsOptions:o}=r.useCollectionManager_deprecated(),{name:t}=r.useCollection(),n=((c=e==null?void 0:e["x-decorator-props"])==null?void 0:c.fieldNames)||{},l=o(t,["point","lineString","polygon"],{association:["o2o","obo","oho","o2m","m2o","m2m"]});return((g=Ye(n.field,l))==null?void 0:g.type)==="point"}},{name:"setDefaultSortingRules",Component:r.SchemaSettingsDefaultSortingRules,useComponentProps(){const{t:e}=W();return{path:"x-component-props.lineSort",title:e("Concatenation order field")}}},r.setDataLoadingModeSettingsItem,Xe,{name:"dataScope",Component:r.SchemaSettingsDataScope,useComponentProps(){var c,g;const{name:e}=r.useCollection(),o=U.useFieldSchema(),{form:t}=r.useFormBlockContext(),n=U.useField(),{service:l}=ve(),{dn:a}=r.useDesignable();return{collectionName:e,defaultFilter:((g=(c=o==null?void 0:o["x-decorator-props"])==null?void 0:c.params)==null?void 0:g.filter)||{},form:t,onSubmit:({filter:M})=>{var A,p;const v=n.decoratorProps.params||{};v.filter=M,n.decoratorProps.params=v,o["x-decorator-props"].params=v,(p=(A=l.params)==null?void 0:A[1])!=null&&p.filters,a.emit("patch",{schema:{"x-uid":o["x-uid"],"x-decorator-props":o["x-decorator-props"]}})}}}},{name:"ConnectDataBlocks",Component:r.SchemaSettingsConnectDataBlocks,useComponentProps(){const{t:e}=W();return{type:r.FilterBlockType.TABLE,emptyDescription:e("No blocks to connect")}}},{name:"divider",type:"divider"},{name:"template",Component:r.SchemaSettingsTemplate,useComponentProps(){var l,a;const{name:e}=r.useCollection(),o=U.useFieldSchema(),{componentNamePrefix:t}=r.useBlockTemplateContext(),n=((l=o==null?void 0:o["x-decorator-props"])==null?void 0:l.resource)||((a=o==null?void 0:o["x-decorator-props"])==null?void 0:a.association);return{componentName:`${t}Map`,collectionName:e,resourceName:n}}},{name:"divider2",type:"divider"},{name:"remove",type:"remove",componentProps:{removeParentsIfNoChildren:!0,breakRemoveOn:{"x-component":"Grid"}}}]}),{defaultProps:Ut}=r.interfacesProperties;Array.isArray(r.interfacesProperties.type.enum)&&r.interfacesProperties.type.enum.push({label:"Point",value:"point"},{label:"LineString",value:"lineString"},{label:"Polygon",value:"polygon"},{label:"Circle",value:"circle"});class Ae extends r.CollectionFieldInterface{constructor(){super(...arguments);O(this,"properties",V(k({},Ut),{"uiSchema.x-component-props.mapType":{title:X("Map type"),type:"string",required:!0,"x-decorator":"FormItem","x-component":"Select","x-component-props":{showSearch:!1,allowClear:!1},"x-disabled":"{{ isOverride || !createOnly }}",default:"amap",enum:Te}}))}schemaInitialize(t,{block:n}){n==="Form"&&Object.assign(t,{"x-designer":"Map.Designer"})}}class Kt extends Ae{constructor(){super(...arguments);O(this,"name","circle");O(this,"type","object");O(this,"group","map");O(this,"order",3);O(this,"title",X("Circle"));O(this,"availableTypes",["circle","json"]);O(this,"description",X("Circle"));O(this,"sortable",!0);O(this,"default",{type:"circle",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class Nt extends Ae{constructor(){super(...arguments);O(this,"name","lineString");O(this,"type","object");O(this,"group","map");O(this,"order",2);O(this,"title",X("Line"));O(this,"description",X("Line"));O(this,"availableTypes",["lineString","json"]);O(this,"sortable",!0);O(this,"default",{type:"lineString",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class Gt extends Ae{constructor(){super(...arguments);O(this,"name","point");O(this,"type","object");O(this,"group","map");O(this,"order",1);O(this,"title",X("Point"));O(this,"description",X("Point"));O(this,"availableTypes",["point","json"]);O(this,"sortable",!0);O(this,"default",{type:"point",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}class jt extends Ae{constructor(){super(...arguments);O(this,"name","polygon");O(this,"type","object");O(this,"group","map");O(this,"order",4);O(this,"title",X("Polygon"));O(this,"description",X("Polygon"));O(this,"availableTypes",["polygon","json"]);O(this,"sortable",!0);O(this,"default",{type:"polygon",uiSchema:{type:"void","x-component":"Map","x-component-designer":"Map.Designer","x-component-props":{}}})}}const qt=[Gt,jt,Nt,Kt],_t=new r.SchemaSettings({name:"fieldSettings:component:Map",items:[Xe]}),Qe=h.memo(e=>i.jsx(r.SchemaComponentOptions,{components:{Map:We},children:i.jsx(Tt,{children:e.children})}));Qe.displayName="MapProvider";class $e extends r.Plugin{load(){return Ce(this,null,function*(){this.app.use(Qe),this.app.dataSourceManager.addFieldInterfaces(qt),this.app.dataSourceManager.addFieldInterfaceGroups({map:{label:X("Map-based geometry"),order:51}}),this.app.schemaInitializerManager.add(Ze),this.app.schemaInitializerManager.add(zt),this.schemaSettingsManager.add(Bt),this.schemaSettingsManager.add(_t);const o=this.app.schemaInitializerManager.get("page:addBlock");o==null||o.add("dataBlocks.map",{title:X("Map"),Component:"MapBlockInitializer"}),this.app.schemaInitializerManager.addItem("mobile:addBlock","dataBlocks.map",{title:X("Map"),Component:"MapBlockInitializer"}),this.app.pluginSettingsManager.add(be,{title:`{{t("Map Manager", { ns: "${be}" })}}`,icon:"EnvironmentOutlined",Component:ut,aclSnippet:"pm.map.configuration"}),this.app.addScopes({useMapBlockProps:He})})}}D.PluginMapClient=$e,D.default=$e,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -8,10 +8,10 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.4.0-alpha.20240919174335",
11
+ "@nocobase/client": "1.4.0-alpha.20240928155737",
12
12
  "react": "18.2.0",
13
- "@nocobase/server": "1.4.0-alpha.20240919174335",
14
- "@nocobase/test": "1.4.0-alpha.20240919174335",
13
+ "@nocobase/server": "1.4.0-alpha.20240928155737",
14
+ "@nocobase/test": "1.4.0-alpha.20240928155737",
15
15
  "@formily/react": "2.3.0",
16
16
  "lodash": "4.17.21",
17
17
  "@ant-design/icons": "5.2.6",
@@ -22,6 +22,6 @@ module.exports = {
22
22
  "ahooks": "3.7.8",
23
23
  "@formily/core": "2.3.0",
24
24
  "react-i18next": "11.18.6",
25
- "@nocobase/actions": "1.4.0-alpha.20240919174335",
26
- "@nocobase/database": "1.4.0-alpha.20240919174335"
25
+ "@nocobase/actions": "1.4.0-alpha.20240928155737",
26
+ "@nocobase/database": "1.4.0-alpha.20240928155737"
27
27
  };
@@ -0,0 +1,51 @@
1
+ {
2
+ "Map": "マップ",
3
+ "Map-based geometry": "地図ベースの幾何学図形",
4
+ "Map type": "地図の種類",
5
+ "Point": "ポイント",
6
+ "Line": "ライン",
7
+ "Circle": "サークル",
8
+ "Polygon": "ポリゴン",
9
+ "Access key": "アクセスキー",
10
+ "securityJsCode or serviceHost": "securityJsCodeまたはserviceHost",
11
+ "AMap": "高徳地図",
12
+ "Google Maps": "Googleマップ",
13
+ "Clear": "クリア",
14
+ "Click to select the starting point and double-click to end the drawing": "クリックして始点を選択し、ダブルクリックして描画を終了",
15
+ "Clear the canvas": "キャンバスをクリア",
16
+ "Are you sure to clear the canvas?": "キャンバスをクリアしてもよろしいですか?",
17
+ "Confirm": "確認",
18
+ "Cancel": "キャンセル",
19
+ "Enter keywords to search": "キーワードを入力して検索してください(省/市名を含める必要があります)",
20
+ "The AccessKey is incorrect, please check it": "AccessKeyが正しくありません、確認してください",
21
+ "Please configure the AMap securityCode or serviceHost correctly": "AMapのsecurityCodeまたはserviceHostを正しく設定してください",
22
+ "Map Manager": "マップ管理",
23
+ "Configuration": "設定",
24
+ "Saved successfully": "正常に保存されました",
25
+ "Saved failed": "保存に失敗しました",
26
+ "Edit": "編集",
27
+ "Save": "保存",
28
+ "Please configure the AccessKey and SecurityJsCode first": "最初にAccessKeyとSecurityJsCodeを設定してください",
29
+ "Go to the configuration page": "設定ページに移動",
30
+ "Zoom": "ズーム",
31
+ "Set default zoom level": "デフォルトのズームレベルを設定",
32
+ "The default zoom level of the map": "マップのデフォルトズームレベル",
33
+ "Edit field title": "フィールドタイトルを編集",
34
+ "Field title": "フィールドタイトル",
35
+ "Edit tooltip": "ツールチップを編集",
36
+ "Delete field": "フィールドを削除",
37
+ "Required": "必須",
38
+ "Pattern": "パターン",
39
+ "Operator": "オペレーター",
40
+ "Editable": "編集可能",
41
+ "Readonly": "読み取り専用",
42
+ "Easy-reading": "読みやすい",
43
+ "Edit description": "説明を編集",
44
+ "Map field": "マップフィールド",
45
+ "Marker field": "マーカーフィールド",
46
+ "Load google maps failed, Please check the Api key and refresh the page": "Googleマップの読み込みに失敗しました。Apiキーを確認してページを更新してください",
47
+ "Create map block": "マップブロックを作成",
48
+ "Start point": "開始地点",
49
+ "End point": "終了地点",
50
+ "Concatenation order field": "連結順序フィールド"
51
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nocobase/plugin-map",
3
3
  "displayName": "Block: Map",
4
4
  "displayName.zh-CN": "区块:地图",
5
- "version": "1.4.0-alpha.20240919174335",
5
+ "version": "1.4.0-alpha.20240928155737",
6
6
  "description": "Map block, support Gaode map and Google map, you can also extend more map types.",
7
7
  "description.zh-CN": "地图区块,支持高德地图和 Google 地图,你也可以扩展更多地图类型。",
8
8
  "license": "AGPL-3.0",
@@ -36,7 +36,7 @@
36
36
  "@nocobase/test": "1.x",
37
37
  "@nocobase/utils": "1.x"
38
38
  },
39
- "gitHead": "57b1697b219b5c8e6a0444ee19bd66cd598bd07f",
39
+ "gitHead": "f2765665126f5e9b5ae01f9ca6e8a151916554b4",
40
40
  "keywords": [
41
41
  "Blocks"
42
42
  ]