@nocobase/plugin-graph-collection-manager 0.12.0-alpha.5 → 0.13.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.
@@ -16,3 +16,4 @@ export declare const getDiffEdge: (newEdges: any, oldEdges: any) => any[];
16
16
  * 参考:https://ant.design/docs/react/migration-v5-cn#%E5%8D%87%E7%BA%A7%E5%87%86%E5%A4%87
17
17
  */
18
18
  export declare const getPopupContainer: () => any;
19
+ export declare const cleanGraphContainer: () => void;
package/dist/index.js CHANGED
@@ -1,18 +1,39 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var server = require('./server');
6
-
7
-
8
-
9
- Object.defineProperty(exports, 'default', {
10
- enumerable: true,
11
- get: function () { return server__namespace.default; }
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ default: () => import_server.default
12
32
  });
13
- Object.keys(server).forEach(function (k) {
14
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
15
- enumerable: true,
16
- get: function () { return server[k]; }
17
- });
33
+ module.exports = __toCommonJS(src_exports);
34
+ __reExport(src_exports, require("./server"), module.exports);
35
+ var import_server = __toESM(require("./server"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ...require("./server")
18
39
  });
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var en_US_exports = {};
19
+ __export(en_US_exports, {
20
+ default: () => en_US_default
21
+ });
22
+ module.exports = __toCommonJS(en_US_exports);
3
23
  var en_US_default = {
4
24
  "Graph Collection": "Graph Collection",
5
25
  "Collection List": "Collection List",
@@ -15,5 +35,3 @@ var en_US_default = {
15
35
  "Graphical interface": "Graphical interface",
16
36
  Selection: "Selection"
17
37
  };
18
-
19
- module.exports = en_US_default;
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var es_ES_exports = {};
19
+ __export(es_ES_exports, {
20
+ default: () => es_ES_default
21
+ });
22
+ module.exports = __toCommonJS(es_ES_exports);
3
23
  var es_ES_default = {
4
24
  "Graph Collection": "Colecci\xF3n de gr\xE1ficos",
5
25
  "Collection List": "Lista de colecciones",
@@ -15,5 +35,3 @@ var es_ES_default = {
15
35
  "Graphical interface": "Interfaz gr\xE1fica",
16
36
  "Selection": "Selecci\xF3n"
17
37
  };
18
-
19
- module.exports = es_ES_default;
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var fr_FR_exports = {};
19
+ __export(fr_FR_exports, {
20
+ default: () => fr_FR_default
21
+ });
22
+ module.exports = __toCommonJS(fr_FR_exports);
3
23
  var fr_FR_default = {
4
24
  "Graph Collection": "Collection de graphiques",
5
25
  "Collection List": "Liste des collections",
@@ -15,5 +35,3 @@ var fr_FR_default = {
15
35
  "Graphical interface": "Interface graphique",
16
36
  Selection: "S\xE9lection"
17
37
  };
18
-
19
- module.exports = fr_FR_default;
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ja_JP_exports = {};
19
+ __export(ja_JP_exports, {
20
+ default: () => ja_JP_default
21
+ });
22
+ module.exports = __toCommonJS(ja_JP_exports);
3
23
  var ja_JP_default = {
4
24
  "Graph Collection": "\u30B0\u30E9\u30D5\u5316\u30C7\u30FC\u30BF\u30C6\u30FC\u30D6\u30EB",
5
25
  "Collection List": "\u30C7\u30FC\u30BF\u30C6\u30FC\u30D6\u30EB\u30EA\u30B9\u30C8",
@@ -13,5 +33,3 @@ var ja_JP_default = {
13
33
  "Inheritance relationship only": "\u7D99\u627F\u95A2\u4FC2",
14
34
  Selection: "\u305B\u3093\u305F\u304F"
15
35
  };
16
-
17
- module.exports = ja_JP_default;
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var pt_BR_exports = {};
19
+ __export(pt_BR_exports, {
20
+ default: () => pt_BR_default
21
+ });
22
+ module.exports = __toCommonJS(pt_BR_exports);
3
23
  var pt_BR_default = {
4
24
  "Graph Collection": "Cole\xE7\xE3o de Gr\xE1ficos",
5
25
  "Collection List": "Lista de Cole\xE7\xF5es",
@@ -15,5 +35,3 @@ var pt_BR_default = {
15
35
  "Graphical interface": "Interface Gr\xE1fica",
16
36
  Selection: "Sele\xE7\xE3o"
17
37
  };
18
-
19
- module.exports = pt_BR_default;
@@ -1,5 +1,25 @@
1
- 'use strict';
2
-
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var zh_CN_exports = {};
19
+ __export(zh_CN_exports, {
20
+ default: () => zh_CN_default
21
+ });
22
+ module.exports = __toCommonJS(zh_CN_exports);
3
23
  var zh_CN_default = {
4
24
  "Graph Collection": "\u56FE\u5F62\u5316\u6570\u636E\u8868",
5
25
  "Collection List": "\u6570\u636E\u8868\u5217\u8868",
@@ -16,5 +36,3 @@ var zh_CN_default = {
16
36
  "Auto layout": "\u81EA\u52A8\u5E03\u5C40",
17
37
  Selection: "\u9009\u62E9\u6A21\u5F0F"
18
38
  };
19
-
20
- module.exports = zh_CN_default;
@@ -1,8 +1,27 @@
1
- 'use strict';
2
-
3
- var database = require('@nocobase/database');
4
-
5
- var graphPositions_default = database.defineCollection({
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var graphPositions_exports = {};
19
+ __export(graphPositions_exports, {
20
+ default: () => graphPositions_default
21
+ });
22
+ module.exports = __toCommonJS(graphPositions_exports);
23
+ var import_database = require("@nocobase/database");
24
+ var graphPositions_default = (0, import_database.defineCollection)({
6
25
  namespace: "graph-collection-manager.graphCollectionPositions",
7
26
  duplicator: "required",
8
27
  name: "graphPositions",
@@ -22,5 +41,3 @@ var graphPositions_default = database.defineCollection({
22
41
  }
23
42
  ]
24
43
  });
25
-
26
- module.exports = graphPositions_default;
@@ -1,23 +1,48 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var server = require('@nocobase/server');
6
- var path = require('path');
7
-
8
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
-
10
- var path__default = /*#__PURE__*/_interopDefault(path);
11
-
12
- class GraphCollectionManagerPlugin extends server.Plugin {
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
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
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var server_exports = {};
29
+ __export(server_exports, {
30
+ GraphCollectionManagerPlugin: () => GraphCollectionManagerPlugin,
31
+ default: () => server_default
32
+ });
33
+ module.exports = __toCommonJS(server_exports);
34
+ var import_server = require("@nocobase/server");
35
+ var import_path = __toESM(require("path"));
36
+ class GraphCollectionManagerPlugin extends import_server.Plugin {
13
37
  async load() {
14
38
  await this.db.import({
15
- directory: path__default.default.resolve(__dirname, "collections")
39
+ directory: import_path.default.resolve(__dirname, "collections")
16
40
  });
17
41
  this.app.acl.allow("graphPositions", "*");
18
42
  }
19
43
  }
20
44
  var server_default = GraphCollectionManagerPlugin;
21
-
22
- exports.GraphCollectionManagerPlugin = GraphCollectionManagerPlugin;
23
- exports.default = server_default;
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ GraphCollectionManagerPlugin
48
+ });
package/package.json CHANGED
@@ -4,13 +4,19 @@
4
4
  "displayName.zh-CN": "数据库可视化管理",
5
5
  "description": "database collection manage",
6
6
  "description.zh-CN": "数据库管理。",
7
- "version": "0.12.0-alpha.5",
7
+ "version": "0.13.0-alpha.10",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "devDependencies": {
11
11
  "@ant-design/icons": "5.x",
12
- "@antv/x6": "^1.9.0",
13
- "@antv/x6-react-shape": "^1.6.2",
12
+ "@antv/x6": "^2.0.0",
13
+ "@antv/x6-plugin-dnd": "^2.0.0",
14
+ "@antv/x6-plugin-export": "^2.0.0",
15
+ "@antv/x6-plugin-minimap": "^2.0.0",
16
+ "@antv/x6-plugin-scroller": "^2.0.0",
17
+ "@antv/x6-plugin-selection": "^2.0.0",
18
+ "@antv/x6-plugin-snapline": "^2.0.0",
19
+ "@antv/x6-react-shape": "^2.0.0",
14
20
  "@formily/react": "2.x",
15
21
  "@formily/reactive": "2.x",
16
22
  "@formily/shared": "2.x",
@@ -27,5 +33,5 @@
27
33
  "@nocobase/test": "0.x",
28
34
  "@nocobase/utils": "0.x"
29
35
  },
30
- "gitHead": "689cc16e83361c4d0b91907e0deac30bdb907692"
36
+ "gitHead": "5360ed81650f6895f3ed39aede2706467d55862c"
31
37
  }