@nocobase/plugin-map 0.18.0-alpha.9 → 0.19.0-alpha.10

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.
@@ -1,2 +1,2 @@
1
1
  import { SchemaInitializer } from '@nocobase/client';
2
- export declare const mapActionInitializers: SchemaInitializer<import("antd").ButtonProps, {}>;
2
+ export declare const mapActionInitializers: SchemaInitializer;
@@ -1,17 +1,17 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.18.0-alpha.9",
2
+ "@nocobase/client": "0.19.0-alpha.10",
3
3
  "react": "18.2.0",
4
- "@nocobase/server": "0.18.0-alpha.9",
4
+ "@nocobase/server": "0.19.0-alpha.10",
5
5
  "@formily/react": "2.3.0",
6
6
  "lodash": "4.17.21",
7
7
  "@ant-design/icons": "5.2.6",
8
8
  "@formily/antd-v5": "1.1.9",
9
9
  "@formily/shared": "2.3.0",
10
10
  "ahooks": "3.7.8",
11
- "antd": "5.12.2",
11
+ "antd": "5.12.8",
12
12
  "react-router-dom": "6.21.0",
13
13
  "@formily/core": "2.3.0",
14
14
  "react-i18next": "11.18.6",
15
- "@nocobase/actions": "0.18.0-alpha.9",
16
- "@nocobase/database": "0.18.0-alpha.9"
15
+ "@nocobase/actions": "0.19.0-alpha.10",
16
+ "@nocobase/database": "0.19.0-alpha.10"
17
17
  };
@@ -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": "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": "액세스 키가 올바르지 않습니다. 확인해 주세요",
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
+ }
@@ -1,3 +1,2 @@
1
- import { CollectionOptions } from '@nocobase/client';
2
- declare const _default: CollectionOptions;
1
+ declare const _default: import("@nocobase/database").CollectionOptions;
3
2
  export default _default;
@@ -20,12 +20,14 @@ __export(mapConfiguration_exports, {
20
20
  default: () => mapConfiguration_default
21
21
  });
22
22
  module.exports = __toCommonJS(mapConfiguration_exports);
23
+ var import_database = require("@nocobase/database");
23
24
  var import_constants = require("../constants");
24
- var mapConfiguration_default = {
25
- namespace: "map.mapConfiguration",
26
- duplicator: "optional",
25
+ var mapConfiguration_default = (0, import_database.defineCollection)({
26
+ dumpRules: {
27
+ group: "third-party"
28
+ },
27
29
  name: import_constants.MapConfigurationCollectionName,
28
- title: '{{t("Map Manager")}}',
30
+ shared: true,
29
31
  fields: [
30
32
  {
31
33
  title: "Access key",
@@ -46,4 +48,4 @@ var mapConfiguration_default = {
46
48
  type: "string"
47
49
  }
48
50
  ]
49
- };
51
+ });
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
  var plugin_exports = {};
19
29
  __export(plugin_exports, {
@@ -22,7 +32,7 @@ __export(plugin_exports, {
22
32
  });
23
33
  module.exports = __toCommonJS(plugin_exports);
24
34
  var import_server = require("@nocobase/server");
25
- var import_path = require("path");
35
+ var import_path = __toESM(require("path"));
26
36
  var import_actions = require("./actions");
27
37
  var import_fields = require("./fields");
28
38
  var import_value_parsers = require("./value-parsers");
@@ -45,9 +55,7 @@ class MapPlugin extends import_server.Plugin {
45
55
  });
46
56
  }
47
57
  async load() {
48
- await this.db.import({
49
- directory: (0, import_path.resolve)(__dirname, "collections")
50
- });
58
+ await this.importCollections(import_path.default.resolve(__dirname, "collections"));
51
59
  this.app.resource({
52
60
  name: "map-configuration",
53
61
  actions: {
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-map",
3
- "displayName": "Map",
4
- "displayName.zh-CN": "地图",
5
- "version": "0.18.0-alpha.9",
6
- "description": "Provides map fields and blocks",
7
- "description.zh-CN": "提供地图字段和区块",
3
+ "displayName": "Block: Map",
4
+ "displayName.zh-CN": "区块:地图",
5
+ "version": "0.19.0-alpha.10",
6
+ "description": "Map block, support Gaode map and Google map, you can also extend more map types.",
7
+ "description.zh-CN": "地图区块,支持高德地图和 Google 地图,你也可以扩展更多地图类型。",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
+ "homepage": "https://docs.nocobase.com/plugins/map",
11
+ "homepage.zh-CN": "https://docs-cn.nocobase.com/plugins/map",
10
12
  "devDependencies": {
11
13
  "@amap/amap-jsapi-loader": "^1.0.1",
12
14
  "@amap/amap-jsapi-types": "^0.0.10",
@@ -34,5 +36,8 @@
34
36
  "@nocobase/test": "0.x",
35
37
  "@nocobase/utils": "0.x"
36
38
  },
37
- "gitHead": "34ca0df4eede2e83fc86297b0fe19eba970e2b1b"
39
+ "gitHead": "d09d81eba67339da36bcec27939a85b35d180770",
40
+ "keywords": [
41
+ "Blocks"
42
+ ]
38
43
  }