@nocobase/plugin-graph-collection-manager 2.0.0-alpha.32 → 2.0.0-alpha.34

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.
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ahooks"),require("@formily/shared"),require("@nocobase/client"),require("react-router-dom"),require("react"),require("@emotion/css"),require("@formily/reactive"),require("@formily/react"),require("lodash"),require("@nocobase/utils/client"),require("@ant-design/icons"),require("antd"),require("react-i18next")):"function"==typeof define&&define.amd?define("@nocobase/plugin-graph-collection-manager",["ahooks","@formily/shared","@nocobase/client","react-router-dom","react","@emotion/css","@formily/reactive","@formily/react","lodash","@nocobase/utils/client","@ant-design/icons","antd","react-i18next"],t):"object"==typeof exports?exports["@nocobase/plugin-graph-collection-manager"]=t(require("ahooks"),require("@formily/shared"),require("@nocobase/client"),require("react-router-dom"),require("react"),require("@emotion/css"),require("@formily/reactive"),require("@formily/react"),require("lodash"),require("@nocobase/utils/client"),require("@ant-design/icons"),require("antd"),require("react-i18next")):e["@nocobase/plugin-graph-collection-manager"]=t(e.ahooks,e["@formily/shared"],e["@nocobase/client"],e["react-router-dom"],e.react,e["@emotion/css"],e["@formily/reactive"],e["@formily/react"],e.lodash,e["@nocobase/utils/client"],e["@ant-design/icons"],e.antd,e["react-i18next"])}(self,function(e,t,r,n,o,i,u,c,a,l,s,f,p){return function(){var d,b,h,m,y,g,v={3581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},482:function(e){"use strict";e.exports=s},4964:function(e){"use strict";e.exports=i},3505:function(e){"use strict";e.exports=c},5229:function(e){"use strict";e.exports=u},8875:function(e){"use strict";e.exports=t},3772:function(e){"use strict";e.exports=r},7584:function(e){"use strict";e.exports=l},2749:function(t){"use strict";t.exports=e},2721:function(e){"use strict";e.exports=f},467:function(e){"use strict";e.exports=a},8156:function(e){"use strict";e.exports=o},3238:function(e){"use strict";e.exports=p},6128:function(e){"use strict";e.exports=n}},_={};function x(e){var t=_[e];if(void 0!==t)return t.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return v[e](r,r.exports,x),r.loaded=!0,r.exports}x.m=v,x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var r in t)x.o(t,r)&&!x.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},x.f={},x.e=function(e){return Promise.all(Object.keys(x.f).reduce(function(t,r){return x.f[r](e,t),t},[]))},x.u=function(e){return""+({67:"7bc917ebd181cf6d",789:"b165a6a8cb61af7c"})[e]+".js"},x.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d={},b="@nocobase/plugin-graph-collection-manager:",x.l=function(e,t,r,n){if(d[e])return void d[e].push(t);if(void 0!==r)for(var o,i,u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var a=u[c];if(a.getAttribute("src")==e||a.getAttribute("data-webpack")==b+r){o=a;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,x.nc&&o.setAttribute("nonce",x.nc),o.setAttribute("data-webpack",b+r),o.src=e),d[e]=[t];var l=function(t,r){o.onerror=o.onload=null,clearTimeout(s);var n=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},(h=window.__nocobase_public_path__||"/").endsWith("/")||(h+="/"),x.p=h+"static/plugins/@nocobase/plugin-graph-collection-manager/dist/client/",m={909:0},x.f.j=function(e,t){var r=x.o(m,e)?m[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var n=new Promise(function(t,n){r=m[e]=[t,n]});t.push(r[2]=n);var o=x.p+x.u(e),i=Error();x.l(o,function(t){if(x.o(m,e)&&(0!==(r=m[e])&&(m[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}},"chunk-"+e,e)}},y=function(e,t){var r,n,o=t[0],i=t[1],u=t[2],c=0;if(o.some(function(e){return 0!==m[e]})){for(r in i)x.o(i,r)&&(x.m[r]=i[r]);u&&u(x)}for(e&&e(t);c<o.length;c++)n=o[c],x.o(m,n)&&m[n]&&m[n][0](),m[n]=0},(g=self.webpackChunk_nocobase_plugin_graph_collection_manager=self.webpackChunk_nocobase_plugin_graph_collection_manager||[]).forEach(y.bind(null,0)),g.push=y.bind(null,g.push.bind(g));var w={};return!function(){"use strict";x.r(w),x.d(w,{PluginGraphCollectionPlugin:function(){return s},default:function(){return f}});var e=x(3772),t="graph-collection-manager",r=x(3581);function n(e,t,r,n,o,i,u){try{var c=e[i](u),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,o)}function o(e,t,r){return(o=a()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&u(o,r.prototype),o}).apply(null,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var l=(0,e.lazy)(function(){return r("imported_j4i6h_component",Promise.all([x.e("789"),x.e("67")]).then(x.bind(x,4528)))},"GraphCollectionPane").GraphCollectionPane,s=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=i(e),function(e,t){var r;if(t&&("object"==((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],i(this).constructor):e.apply(this,t))}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&u(o,e),r=[{key:"load",value:function(){var e,r=this;return(e=function(){return function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(e){return r.app.pluginSettingsManager.add("data-source-manager/main.graph",{title:'{{t("Graphical interface", { ns: "'.concat(t,'" })}}'),Component:l,topLevelName:"data-source-manager/main",pluginKey:t,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.graph-collection-manager"}),[2]})},function(){var t=this,r=arguments;return new Promise(function(o,i){var u=e.apply(t,r);function c(e){n(u,o,i,c,a,"next",e)}function a(e){n(u,o,i,c,a,"throw",e)}c(void 0)})})()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,r),o}(c(e.Plugin)),f=s}(),w}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("ahooks"),require("@formily/shared"),require("@nocobase/client"),require("react-router-dom"),require("react"),require("@emotion/css"),require("@formily/reactive"),require("@formily/react"),require("lodash"),require("@nocobase/utils/client"),require("@ant-design/icons"),require("antd"),require("react-i18next")):"function"==typeof define&&define.amd?define("@nocobase/plugin-graph-collection-manager",["ahooks","@formily/shared","@nocobase/client","react-router-dom","react","@emotion/css","@formily/reactive","@formily/react","lodash","@nocobase/utils/client","@ant-design/icons","antd","react-i18next"],t):"object"==typeof exports?exports["@nocobase/plugin-graph-collection-manager"]=t(require("ahooks"),require("@formily/shared"),require("@nocobase/client"),require("react-router-dom"),require("react"),require("@emotion/css"),require("@formily/reactive"),require("@formily/react"),require("lodash"),require("@nocobase/utils/client"),require("@ant-design/icons"),require("antd"),require("react-i18next")):e["@nocobase/plugin-graph-collection-manager"]=t(e.ahooks,e["@formily/shared"],e["@nocobase/client"],e["react-router-dom"],e.react,e["@emotion/css"],e["@formily/reactive"],e["@formily/react"],e.lodash,e["@nocobase/utils/client"],e["@ant-design/icons"],e.antd,e["react-i18next"])}(self,function(e,t,r,n,o,i,u,c,a,l,s,f,p){return function(){var d,h,b,m,y,g,v={3581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},482:function(e){"use strict";e.exports=s},4964:function(e){"use strict";e.exports=i},3505:function(e){"use strict";e.exports=c},5229:function(e){"use strict";e.exports=u},8875:function(e){"use strict";e.exports=t},3772:function(e){"use strict";e.exports=r},7584:function(e){"use strict";e.exports=l},2749:function(t){"use strict";t.exports=e},2721:function(e){"use strict";e.exports=f},467:function(e){"use strict";e.exports=a},8156:function(e){"use strict";e.exports=o},3238:function(e){"use strict";e.exports=p},6128:function(e){"use strict";e.exports=n}},_={};function x(e){var t=_[e];if(void 0!==t)return t.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return v[e](r,r.exports,x),r.loaded=!0,r.exports}x.m=v,x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var r in t)x.o(t,r)&&!x.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},x.f={},x.e=function(e){return Promise.all(Object.keys(x.f).reduce(function(t,r){return x.f[r](e,t),t},[]))},x.u=function(e){return""+({67:"7bc917ebd181cf6d",789:"a81f08e994b81f96"})[e]+".js"},x.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d={},h="@nocobase/plugin-graph-collection-manager:",x.l=function(e,t,r,n){if(d[e])return void d[e].push(t);if(void 0!==r)for(var o,i,u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var a=u[c];if(a.getAttribute("src")==e||a.getAttribute("data-webpack")==h+r){o=a;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,x.nc&&o.setAttribute("nonce",x.nc),o.setAttribute("data-webpack",h+r),o.src=e),d[e]=[t];var l=function(t,r){o.onerror=o.onload=null,clearTimeout(s);var n=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},(b=window.__nocobase_public_path__||"/").endsWith("/")||(b+="/"),x.p=b+"static/plugins/@nocobase/plugin-graph-collection-manager/dist/client/",m={909:0},x.f.j=function(e,t){var r=x.o(m,e)?m[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var n=new Promise(function(t,n){r=m[e]=[t,n]});t.push(r[2]=n);var o=x.p+x.u(e),i=Error();x.l(o,function(t){if(x.o(m,e)&&(0!==(r=m[e])&&(m[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}},"chunk-"+e,e)}},y=function(e,t){var r,n,o=t[0],i=t[1],u=t[2],c=0;if(o.some(function(e){return 0!==m[e]})){for(r in i)x.o(i,r)&&(x.m[r]=i[r]);u&&u(x)}for(e&&e(t);c<o.length;c++)n=o[c],x.o(m,n)&&m[n]&&m[n][0](),m[n]=0},(g=self.webpackChunk_nocobase_plugin_graph_collection_manager=self.webpackChunk_nocobase_plugin_graph_collection_manager||[]).forEach(y.bind(null,0)),g.push=y.bind(null,g.push.bind(g));var w={};return!function(){"use strict";x.r(w),x.d(w,{PluginGraphCollectionPlugin:function(){return s},default:function(){return f}});var e=x(3772),t="graph-collection-manager",r=x(3581);function n(e,t,r,n,o,i,u){try{var c=e[i](u),a=c.value}catch(e){r(e);return}c.done?t(a):Promise.resolve(a).then(n,o)}function o(e,t,r){return(o=a()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&u(o,r.prototype),o}).apply(null,arguments)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var l=(0,e.lazy)(function(){return r("imported_j4i6h_component",Promise.all([x.e("789"),x.e("67")]).then(x.bind(x,4528)))},"GraphCollectionPane").GraphCollectionPane,s=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=i(e),function(e,t){var r;if(t&&("object"==((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],i(this).constructor):e.apply(this,t))}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&u(o,e),r=[{key:"load",value:function(){var e,r=this;return(e=function(){return function(e,t){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(e){return r.app.pluginSettingsManager.add("data-source-manager/main.graph",{title:'{{t("Graphical interface", { ns: "'.concat(t,'" })}}'),Component:l,topLevelName:"data-source-manager/main",pluginKey:t,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.graph-collection-manager"}),[2]})},function(){var t=this,r=arguments;return new Promise(function(o,i){var u=e.apply(t,r);function c(e){n(u,o,i,c,a,"next",e)}function a(e){n(u,o,i,c,a,"throw",e)}c(void 0)})})()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,r),o}(c(e.Plugin)),f=s}(),w}()});
@@ -10,7 +10,7 @@
10
10
  module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/shared": "2.3.7",
13
- "@nocobase/client": "2.0.0-alpha.32",
13
+ "@nocobase/client": "2.0.0-alpha.34",
14
14
  "react": "18.2.0",
15
15
  "@emotion/css": "11.13.0",
16
16
  "@formily/react": "2.3.7",
@@ -18,9 +18,9 @@ module.exports = {
18
18
  "lodash": "4.17.21",
19
19
  "react-router-dom": "6.30.1",
20
20
  "@formily/reactive": "2.3.7",
21
- "@nocobase/utils": "2.0.0-alpha.32",
21
+ "@nocobase/utils": "2.0.0-alpha.34",
22
22
  "react-i18next": "11.18.6",
23
- "@nocobase/server": "2.0.0-alpha.32",
23
+ "@nocobase/server": "2.0.0-alpha.34",
24
24
  "ahooks": "3.7.8",
25
- "@nocobase/database": "2.0.0-alpha.32"
25
+ "@nocobase/database": "2.0.0-alpha.34"
26
26
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "可视化数据表管理",
5
5
  "description": "An ER diagram-like tool. Currently only the Master database is supported.",
6
6
  "description.zh-CN": "类似 ER 图的工具,目前只支持主数据库。",
7
- "version": "2.0.0-alpha.32",
7
+ "version": "2.0.0-alpha.34",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/graph-collection-manager",
@@ -35,7 +35,7 @@
35
35
  "@nocobase/test": "2.x",
36
36
  "@nocobase/utils": "2.x"
37
37
  },
38
- "gitHead": "50bb60d2f42e0fc2c1cd1eee397f9c0da94084df",
38
+ "gitHead": "d7bda14bac775be7ef207cb25986511740b2ed70",
39
39
  "keywords": [
40
40
  "Data model tools"
41
41
  ]