@nocobase/plugin-field-china-region 2.0.0-alpha.9 → 2.1.0-alpha.1

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,9 +10,9 @@
10
10
  module.exports = {
11
11
  "@formily/core": "2.3.7",
12
12
  "@formily/react": "2.3.7",
13
- "@nocobase/client": "2.0.0-alpha.9",
13
+ "@nocobase/client": "2.1.0-alpha.1",
14
14
  "@formily/shared": "2.3.7",
15
- "@nocobase/server": "2.0.0-alpha.9",
15
+ "@nocobase/server": "2.1.0-alpha.1",
16
16
  "china-division": "2.7.0",
17
- "@nocobase/database": "2.0.0-alpha.9"
17
+ "@nocobase/database": "2.1.0-alpha.1"
18
18
  };
@@ -0,0 +1 @@
1
+ {}
@@ -44,7 +44,7 @@ class ChinaRegionInterface extends import_database.BaseInterface {
44
44
  }
45
45
  });
46
46
  for (let i = 0; i < items.length; i++) {
47
- const instance = instances.find((item) => item.name === items[i]);
47
+ const instance = instances.find((item) => item.name === items[i] && item.level === i + 1);
48
48
  if (!instance) {
49
49
  throw new Error(`china region "${items[i]}" does not exist`);
50
50
  }
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-field-china-region",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.1.0-alpha.1",
4
4
  "displayName": "Collection field: administrative divisions of China",
5
5
  "displayName.zh-CN": "数据表字段:中国行政区划",
6
+ "displayName.ru-RU": "Поле коллекции: административное деление Китая",
6
7
  "description": "Provides data and field type for administrative divisions of China.",
7
8
  "description.zh-CN": "提供中国行政区划数据和字段类型。",
9
+ "description.ru-RU": "Предоставляет данные и тип поля для административного деления Китая.",
8
10
  "main": "./dist/server/index.js",
9
11
  "homepage": "https://docs.nocobase.com/handbook/china-region",
10
12
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/china-region",
13
+ "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/china-region",
11
14
  "license": "AGPL-3.0",
12
15
  "devDependencies": {
13
16
  "@formily/core": "2.x",
@@ -22,7 +25,7 @@
22
25
  "@nocobase/server": "2.x",
23
26
  "@nocobase/test": "2.x"
24
27
  },
25
- "gitHead": "4a9acf96f21a3aa35bccbd188b942595b09da0a9",
28
+ "gitHead": "d27baf21569643d6fa83f882233f4e90eb5b89f1",
26
29
  "keywords": [
27
30
  "Collection fields"
28
31
  ]