diff --git a/lineagex/app.js b/lineagex/app.js index e74b472..6bae2c4 100644 --- a/lineagex/app.js +++ b/lineagex/app.js @@ -1 +1 @@ -!function(e){function t(t){for(var i,r,s=t[0],l=t[1],d=t[2],u=0,f=[];u=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=l.top&&(l.top=s.top+s.height+t),s.top+s.height+t0;)s();return{edges:o,fileds:a}}},{key:"_fixCenterNode",value:function(e,t){var n=this.getNode(t);if(n){var i=h.find(e,(function(e){return e.id===t})),o=i.left-n.left,a=i.top-n.top;e.forEach((function(e){e.left-=o,e.top-=a}))}}},{key:"relayout",value:function(e,t){var n=this.nodes,i=this.edges,o=n.map((function(e,t){return h.assign({left:e.left,top:e.top,order:t},e.options)})),a=[];a=t?e.edges||[]:i.map((function(e){return{source:e.sourceNode.id,target:e.targetNode.id}}));m.Layout.dagreLayout({rankdir:"LR",nodesep:50,ranksep:70,data:{nodes:o,edges:a}}),this._precollide(o,50,70),e&&e.centerNodeId&&this._fixCenterNode(o,e.centerNodeId),!t&&i.length>30&&(0,p.default)(this.svg).css("visibility","hidden"),this.nodes.forEach((function(e,t){var n=o[t].left,i=o[t].top;e.top===i&&e.left===n||(e.options.top=i,e.options.left=n,e.moveTo(n,i))})),!t&&i.length>30&&(0,p.default)(this.svg).css("visibility","visible")}},{key:"addNodes",value:function(e,t){var n=this,o=(0,l.default)((0,u.default)(i.prototype),"addNodes",this).call(this,e,t);return o.forEach((function(e){e._canvas=n})),o}}]),i}(m.Canvas);t.default=x},337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDragedPosition=t.setElementDragable=void 0;var i,o=new Map,a=function(e){i=e};t.setElementDragable=function(e,t){var n=!1,r=!1,s=0,l=0,d=0,c=0,u=0,f=0;e.addEventListener("mousedown",(function(t){n=!0,s=t.clientX,l=t.clientY,d=0,c=0,u=Number(e.style.top.replace("px",""))||0,f=Number(e.style.left.replace("px",""))||0,o.get(e)||o.set(e,{top:u,left:f})})),document.addEventListener("mouseup",(function(){n&&r&&(null==t||t(a)),n=!1})),document.addEventListener("mousemove",(function(t){r=!0,n&&r&&(i.zoom(1),d=t.clientX-s,c=t.clientY-l,e.style.top="".concat(u+c,"px"),e.style.left="".concat(f+d,"px"))}))};function r(e){var t=e.getBoundingClientRect(),n=t.top,i=t.left,o=t.width,a=t.height;return{x:i+o/2,y:n+a/2,height:a,width:o}}t.setDragedPosition=function(e,t,n){var i,o,a,s=(i=e,o=r(t),a=r(i),{x:o.x-a.x,y:o.y-a.y}),l=s.x,d=s.y,c=e.getBoundingClientRect(),u=c.width,f=c.height;return n.pos[1]=e.offsetTop+d+f/2,n.pos[0]=e.offsetLeft+l+u/2-15,n}},364:function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&(this.canvas.removeEdges(r.rmEdges.map((function(e){return e.id}))),s=!0),r.rmNodes.length>0&&this.canvas.removeNodes(r.rmNodes.map((function(e){return e.id}))),r.addNodes.length>0&&this.canvas.addNodes(r.addNodes),r.collapseNodes.length>0&&(r.collapseNodes.forEach((function(e){n.canvas.getNode(e.id).collapse(e.isCollapse)})),s=!0),r.addEdges.length>0&&(this.canvas.addEdges(r.addEdges),s=!0),s){this.canvas.relayout({centerNodeId:e.centerId});var l=this.canvas.nodes.map((function(e){return e._renderPromise}));this.canvas._renderPromise=Promise.all(l).then((function(){return new Promise((function(t,i){e.centerId?(n.canvas.focusNodeWithAnimate(e.centerId,"node",{},(function(){setTimeout((function(){t()}),50)})),n.canvas.focus(e.centerId)):(n._isFirstFocus||(n.canvas.focusCenterWithAnimate(),n._isFirstFocus=!0),t())}))}))}return this.canvasData=a,(0,m.updateCanvasData)(a.nodes,this.canvas.nodes),(0,m.diffActionMenuData)(e.actionMenu,this.props.actionMenu)},t.prototype.render=function(){var e=this.canvas,t=this.props.actionMenu,n=void 0===t?[]:t,i=u.get(this,"props.config.showActionIcon",!0);return d.createElement("div",{className:this._genClassName()},d.createElement(p.default,{canvas:e,actionMenu:n,visible:i}))},t.prototype._genClassName=function(){return this.props.className?this.props.className+" butterfly-lineage-dag":"butterfly-lineage-dag"},t}(d.Component);t.default=h},460:function(e,t,n){var i=n(461);"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(99)(i,o);i.locals&&(e.exports=i.locals)},461:function(e,t,n){(t=e.exports=n(81)(!1)).i(n(462),""),t.push([e.i,".butterfly-lineage-dag {\n position: relative;\n height: 100%;\n width: 100%;\n min-height: 200px;\n min-width: 200px;\n}\n.butterfly-lineage-dag .table-node {\n position: absolute;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);\n min-width: 380px;\n background-color: white !important;\n}\n.butterfly-lineage-dag .table-node.focus {\n box-shadow: 0px 0px 5px #f66902;\n}\n.butterfly-lineage-dag .table-node .title-con {\n position: relative;\n min-width: 150px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator {\n position: absolute;\n min-width: 50px;\n height: 100%;\n top: 0;\n right: 10px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator .operator-item {\n display: inline-block;\n height: 100%;\n line-height: 34px;\n cursor: pointer;\n}\n.butterfly-lineage-dag .table-node .title-con .point {\n position: absolute;\n top: 50%;\n width: 0;\n height: 0;\n}\n.butterfly-lineage-dag .table-node .title-con .point.left-point {\n left: 6px;\n}\n.butterfly-lineage-dag .table-node .title-con .point.right-point {\n right: 6px;\n}\n.butterfly-lineage-dag .table-node .field {\n position: relative;\n margin: 0 16px;\n white-space: nowrap;\n}\n.butterfly-lineage-dag .table-node .field > span:nth-of-type(2) {\n display: none;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain {\n background: #fef0e5;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain .point {\n background: #ff6a00;\n}\n.butterfly-lineage-dag .table-node .field .field-item {\n display: inline-block;\n min-width: 50px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n padding-right: 5px;\n text-align: center;\n}\n.butterfly-lineage-dag .table-node .field .point {\n position: absolute;\n top: 10px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #D9D9D9;\n}\n.butterfly-lineage-dag .table-node .field .point.left-point {\n left: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.right-point {\n right: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.hidden {\n visibility: hidden;\n}\n.butterfly-lineage-dag .title {\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: #fff;\n max-width: 250px;\n font-weight: 600;\n}\n.butterfly-lineage-dag .filed-title .filed-title-item {\n display: inline-block;\n text-align: center;\n}\n.butterfly-lineage-dag .butterflies-link.hover-chain {\n stroke: #F66902;\n stroke-width: 3px;\n}\n.butterfly-lineage-dag .butterflies-arrow {\n stroke-width: 2px;\n}\n.butterfly-lineage-dag .butterflies-arrow.hover-chain {\n stroke: #F66902;\n fill: #F66902;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action {\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 999;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div {\n height: 24px;\n width: 24px;\n text-align: center;\n line-height: 24px;\n cursor: pointer;\n color: #000;\n opacity: 0.7;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div i {\n -webkit-text-stroke-width: 0;\n font-size: 14px;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:hover {\n background: #eee;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:last-child {\n border-bottom: none;\n}\n.menuContainer {\n max-height: 80vh;\n overflow: auto;\n}\n.menuContainer::-webkit-scrollbar {\n display: none;\n}\n",""])},462:function(e,t,n){(e.exports=n(81)(!1)).push([e.i,'@font-face {\r\n font-family: "table-build-icon"; /* Project id 2369312 */\r\n src: \r\n url(\'data:application/x-font-woff2;charset=utf-8;base64,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\') format(\'woff2\'),\r\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.woff?t=1649233665768\') format(\'woff\'),\r\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.ttf?t=1649233665768\') format(\'truetype\');\r\n}\r\n\r\n.table-build-icon {\r\n font-family: "table-build-icon" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.table-build-icon-kongshuju:before {\r\n content: "\\E600";\r\n}\r\n\r\n.table-build-icon-zoom-in:before {\r\n content: "\\E604";\r\n}\r\n\r\n.table-build-icon-quanping2:before {\r\n content: "\\E78B";\r\n}\r\n\r\n.table-build-icon-zoom-out:before {\r\n content: "\\E9E5";\r\n}\r\n\r\n.table-build-icon-xiala:before {\r\n content: "\\E608";\r\n}\r\n\r\n.table-build-icon-canvas-cuo:before {\r\n content: "\\E61F";\r\n}\r\n\r\n.table-build-icon-iconfontxiaogantanhao:before {\r\n content: "\\E60D";\r\n}\r\n',""])},469:function(e,t,n){"use strict";var i=n(19),o=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.updateCanvasData=t.transformInitData=t.transformEdges=t.diffPropsData=t.diffActionMenuData=void 0;var a=i(n(40)),r=i(n(470)),s=i(n(472)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}i.default=e,n&&n.set(e,i);return i}(n(61));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}t.transformInitData=function(e){var t=e.tables,n=e.relations,i=e.columns,o=e.emptyContent,d=e.operator,c=e._titleRender,u=e._enableHoverChain,f=e._emptyContent,m=e._emptyWidth;return{nodes:t.map((function(e){var t;return l.assign((t={Class:r.default,_columns:i,_emptyContent:o,_operator:d,_titleRender:c,_enableHoverChain:u},(0,a.default)(t,"_emptyContent",f),(0,a.default)(t,"_emptyWidth",m),t),e)})),edges:n.map((function(e){return{relationColor:e.relationColor,id:e.id||"".concat(e.srcTableId,"-").concat(e.tgtTableId,"-").concat(e.srcTableColName,"-").concat(e.tgtTableColName),type:"endpoint",sourceNode:e.srcTableId,targetNode:e.tgtTableId,source:void 0!==e.srcTableColName&&null!==e.srcTableColName?e.srcTableColName:e.srcTableId+"-right",target:void 0!==e.tgtTableColName&&null!==e.tgtTableColName?e.tgtTableColName:e.tgtTableId+"-left",_isNodeEdge:!(void 0!==e.srcTableColName&&null!==e.srcTableColName||void 0!==e.tgtTableColName&&null!==e.tgtTableColName),Class:s.default}}))}};t.transformEdges=function(e,t){t.forEach((function(e){e._isNodeEdge||(e.source+="-right",e.target+="-left")})),e.forEach((function(e){e.isCollapse&&(t.filter((function(t){return e.id===t.sourceNode})).forEach((function(t){t.source="".concat(e.id,"-right"),t.sourceCollaps=!0})),t.filter((function(t){return e.id===t.targetNode})).forEach((function(t){t.target="".concat(e.id,"-left"),t.targetCollaps=!0})))}));var n={},i=[];for(var o in t.forEach((function(e){var t=n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)];t?l.assign(t,e):n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)]=e})),n)i.push(n[o]);return{nodes:e,edges:i}};t.diffPropsData=function(e,t){var n=function(e,t){return e.id===t.id},i=l.differenceWith(e.nodes,t.nodes,n),o=l.differenceWith(t.nodes,e.nodes,n),a=function(e,t){return e.sourceNode===t.sourceNode&&e.targetNode===t.targetNode&&e.source===t.source&&e.target===t.target},r=l.differenceWith(e.edges,t.edges,a),s=l.differenceWith(t.edges,e.edges,a),d=l.differenceWith(e.nodes,t.nodes,(function(e,t){return e.id===t.id&&e.isCollapse===t.isCollapse}));return{addNodes:i,rmNodes:o,addEdges:r,rmEdges:s,collapseNodes:d=l.differenceWith(d,i,n)}};t.updateCanvasData=function(e,t){t.forEach((function(t){var n=l.find(e,(function(e){return e.id===t.id}));l.assign(t.options,n)}))};t.diffActionMenuData=function(e,t){var n=function(e,t){return e.key===t.key},i=l.differenceWith(e,t,n),o=l.differenceWith(t,e,n);return 0!==i.length||0!==o.length}},470:function(e,t,n){"use strict";var i=n(19),o=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(67)),r=i(n(68)),s=i(n(69)),l=i(n(118)),d=i(n(100)),c=n(167),u=y(n(27)),f=i(n(119)),m=y(n(61)),p=i(n(471)),h=n(337),g=n(333);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}return i.default=e,n&&n.set(e,i),i}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,l.default)(this,n)}}var _=function(e){(0,s.default)(n,e);var t=b(n);function n(e){var i;return(0,a.default)(this,n),(i=t.call(this,e)).TITLE_HEIGHT=34,i.ROW_HEIGHT=26,i.COLUMN_WIDTH=350,i.fieldsList=[],i.titlesList=[],i._renderPromise=Promise.resolve(),i._isRendering=!1,i}return(0,r.default)(n,[{key:"mounted",value:function(){this._createNodeEndpoint(!0),this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}},{key:"draw",value:function(e){var t,n,i=this,o=e.dom,a=e.name||e.id||(null===(t=e.options)||void 0===t?void 0:t.name)||(null===(n=e.options)||void 0===n?void 0:n.id);o||(o=(0,f.default)("
").attr("class","node table-node").attr("id",a)),o.attr("id",a);var r=(0,f.default)(o),s=m.get(this,"options.classname");return s&&r.addClass(s),void 0!==e.top&&r.css("top",e.top),void 0!==e.left&&r.css("left",e.left),this._createTableName(r),this._createFields(r),(0,h.setElementDragable)(r[0],(function(e){(0,g.getEdges)(a).forEach((function(e){return e.redraw()})),e(i._canvas)})),r[0]}},{key:"collapse",value:function(e){var t=this;if(e!==this.options.isCollapse){if(this.options.isCollapse=e,e)this.fieldsList.forEach((function(e){(0,f.default)(e.dom).off()})),this.endpoints.filter((function(e){return!e.options._isNodeSelf})).map((function(e){return e.id})).forEach((function(e){t.removeEndpoint(e)})),(0,f.default)(this.dom).find(".field").remove(),this.fieldsList=[];else this._createFields(),this._createNodeEndpoint();this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}}},{key:"focus",value:function(){(0,f.default)(this.dom).addClass("focus"),this.options.minimapActive=!0}},{key:"unfocus",value:function(){(0,f.default)(this.dom).removeClass("focus"),this.options.minimapActive=!1}},{key:"redrawTitle",value:function(){(0,f.default)(this.dom).find(".operator").remove(),this._createTableName((0,f.default)(this.dom),!0)}},{key:"_addEventListener",value:function(){var e=this;(0,f.default)(this.dom).on("mousedown",(function(t){0===t.button&&(["SELECT","INPUT","RADIO","CHECKBOX","TEXTAREA"].includes(t.target.nodeName)||t.preventDefault(),e.draggable?(e._isMoving=!0,e.emit("InnerEvents",{type:"node:dragBegin",data:e})):e.emit("InnerEvents",{type:"node:mouseDown",data:e}))})),(0,f.default)(this.dom).on("click",(function(t){e.emit("system.node.click",{node:e}),e.emit("events",{type:"node:click",node:e})})),this.setDraggable(this.draggable)}},{key:"_createTableName",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=arguments.length>1?arguments[1]:void 0,i=m.get(this,"options.name"),o=m.get(this,"options._titleRender"),a=m.get(this,"options._operator"),r=n?(0,f.default)(this.dom).find(".title-con"):(0,f.default)('
'),s=n?(0,f.default)(this.dom).find(".title"):(0,f.default)('
');if(this._isRendering)return!1;o?(this._isRendering=!0,(this._canvas?this._canvas._renderPromise:Promise.resolve()).then((function(){e._renderPromise=new Promise((function(t,n){u.render(o(i,e),s[0],(function(){if(0===e.height||0===e.width)e.width=e.options.width=(0,f.default)(e.dom).width(),e.height=e.options.height=(0,f.default)(e.dom).height(),e.endpoints.forEach((function(e){return e.updatePos()})),e.emit("custom.edge.redraw",{node:e});else{var n=[];e.endpoints.forEach((function(e){e.options._isNodeSelf&&(e.updatePos(),n.push(e))})),e.emit("custom.edge.redraw",{node:e,points:n})}t(),e._isRendering=!1})),r[0].title=r[0].textContent}))}))):i&&s.css({height:this.TITLE_HEIGHT+"px","line-height":this.TITLE_HEIGHT+"px"}),n||r.append(s);var l=null;if(a&&(l=(0,f.default)('
'),a.forEach((function(t){var n=(0,f.default)('
');u.render(t.icon,n[0]),t.onClick&&n.on("click",t.onClick.bind(e,e.options,e)),l.append(n)})),r.append(l)),!n){var d=(0,f.default)('
'),c=(0,f.default)('
');r.append(d).append(c),this.titlesList=this.titlesList.concat([{id:"".concat(this.id,"-left"),dom:d[0],type:"target"},{id:"".concat(this.id,"-right"),dom:c[0],type:"source"}]),(0,f.default)(t).append(r)}}},{key:"_createFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=m.get(this,"options.fields"),i=m.get(this,"options._columns"),o=m.get(this,"options.isCollapse"),a=i[0].key,r=[];if(n&&n.length){if(o)return;n.forEach((function(n,o){var s=(0,f.default)('
');s.css({height:e.ROW_HEIGHT+"px","line-height":e.ROW_HEIGHT+"px"}),i.forEach((function(t){if(t.render){var i=(0,f.default)('');i.css("width",(t.width||e.COLUMN_WIDTH)+"px"),u.render(t.render(n[t.key],n,o),i[0]),s.append(i)}else{var r=(0,f.default)('').concat(n[t.key],""));r.css("width",(t.width||e.COLUMN_WIDTH)+"px"),s.append(r)}t.primaryKey&&(a=t.key)}));var l=(0,f.default)(''),d=(0,f.default)('');s.append(l).append(d),e.options._enableHoverChain&&((0,f.default)(s).on("mouseover",(function(t){e.emit("custom.field.hover",{node:e,fieldId:n[a]})})),(0,f.default)(s).on("mouseout",(function(t){e.emit("custom.field.unHover",{node:e,fieldId:n[a]})}))),t.append(s),r.push({id:n[a],dom:s})})),this.fieldsList=this.fieldsList.concat(r)}else{var s=m.get(this.options,"_emptyContent");if(s){var l=(0,p.default)({content:s,width:this.options._emptyWidth});t.append(l),this.height=(0,f.default)(t).outerHeight()}}return r}},{key:"_createNodeEndpoint",value:function(e){var t=this;e&&this.titlesList.forEach((function(e){t.addEndpoint({id:e.id,orientation:"target"===e.type?[-1,0]:[1,0],dom:e.dom,originId:t.id,type:e.type,_isNodeSelf:!0})})),this.fieldsList.forEach((function(e){t.addEndpoint({id:"".concat(e.id,"-left"),orientation:[-1,0],dom:(0,f.default)(e.dom).find(".left-point")[0],originId:t.id,type:"target"}),t.addEndpoint({id:"".concat(e.id,"-right"),orientation:[1,0],dom:(0,f.default)(e.dom).find(".right-point")[0],originId:t.id,type:"source"}),t.options.isCollapse&&(0,f.default)(e.dom).css({visibility:"visible",display:"none"})}))}}]),n}(c.Node);t.default=_},471:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(119)),a=i(n(0)),r=i(n(27));t.default=function(e){var t=e.content,n=e.container[0],i=e.width;i||(i="150px"),"number"==typeof e.width&&(i=e.width+"px");var s,l='
';if(t)s=t,l=a.default.isValidElement(s)?r.default.render(t,n):(0,o.default)(t);else{l=(0,o.default)('
');var d=(0,o.default)('');l.append(d)}return l}},472:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(67)),a=i(n(68)),r=i(n(336)),s=i(n(69)),l=i(n(118)),d=i(n(100)),c=n(167),u=i(n(119)),f=i(n(473)),m=n(337);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,l.default)(this,n)}}var h=function(e){(0,s.default)(n,e);var t=p(n);function n(e){return(0,o.default)(this,n),t.call(this,e)}return(0,a.default)(n,[{key:"mounted",value:function(){this.sourceNode.options.isCollapse||(0,u.default)(this.sourceEndpoint.dom).removeClass("hidden"),this.targetNode.options.isCollapse||(0,u.default)(this.targetEndpoint.dom).removeClass("hidden")}},{key:"calcPath",value:function(e,t){return(0,m.setDragedPosition)(this.sourceNode.dom,this.sourceEndpoint.dom,e),(0,m.setDragedPosition)(this.targetNode.dom,this.targetEndpoint.dom,t),(0,f.default)(e,t)}},{key:"focusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";this.options.relationColor&&this.dom&&(this.dom.style.stroke=this.options.relationColor),(0,u.default)(this.dom).addClass(e),(0,u.default)(this.arrowDom).addClass(e),(0,u.default)(this.labelDom).addClass(e),this.setZIndex(1e3)}},{key:"unfocusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";this.dom.style.stroke="#BFBFBF",(0,u.default)(this.dom).removeClass(e),(0,u.default)(this.arrowDom).removeClass(e),(0,u.default)(this.labelDom).removeClass(e),this.setZIndex(0)}},{key:"destroy",value:function(e){(0,r.default)((0,d.default)(n.prototype),"destroy",this).call(this,e),this.sourceNode.options.isCollapse||(0,u.default)(this.sourceEndpoint.dom).addClass("hidden"),this.targetNode.options.isCollapse||(0,u.default)(this.targetEndpoint.dom).addClass("hidden")}}]),n}(c.Edge);t.default=h},473:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(46)),a=i(n(20)),r=i(n(61)),s="Left",l="Top",d=function(e,t){this.x=e,this.y=t};function c(e,t,n,i,o){var s=function(e){if(o){for(var t=function(t){if(r.default.some(o,(function(n){return n===e[t]})))return{v:e[t]}},n=0;n=0?s(["Top","Left","Right","Bottom"]):c,c=d<0?s(["Bottom","Left","Right","Top"]):c),0===d&&(c=l>=0?s(["Right","Top","Bottom","Left"]):c,c=l<0?s(["Left","Top","Bottom","Right"]):c)):c=s(l>0&&d>0?u>1?["Top","Left","Right","Bottom"]:["Left","Top","Bottom","Right"]:l<0&&d>0?u>1?["Top","Right","Left","Bottom"]:["Right","Top","Bottom","Left"]:l<0&&d<0?u>1?["Bottom","Right","Left","Top"]:["Right","Bottom","Top","Left"]:u>1?["Bottom","Left","Right","Top"]:["Left","Bottom","Top","Right"]),c){case"Left":return[-1,0];case"Right":return[1,0];case"Top":return[0,-1];case"Bottom":return[0,1]}}var u=function(e,t,n){var i=new d;return["x","y"].forEach((function(o){e[o]>t[o]?i[o]=t[o]+n:e[o]0&&m*m<.1&&"Right"===a?(r=o,c=a):(f<0?r=new d(n.x-20,n.y):m>0&&"Bottom"===a||m<0&&a===l?r=new d(o.x,n.y):i===a?(u=Math.min(n.x,o.x)-20,r=new d(u,n.y)):r=new d(n.x-f/2,n.y),c=m>0?l:"Bottom"):"Right"===i?f<0&&m*m<.1&&a===s?(r=o,c=a):(f>0?r=new d(n.x+20,n.y):m>0&&"Bottom"===a||m<0&&a===l?r=new d(o.x,n.y):i===a?(u=Math.max(n.x,o.x)+20,r=new d(u,n.y)):r=new d(n.x-f/2,n.y),c=m>0?l:"Bottom"):"Bottom"===i?f*f<.1&&m<0&&a===l?(r=o,c=a):(m>0?r=new d(n.x,n.y+20):f>0&&"Right"===a||f<0&&a===s?r=new d(n.x,o.y):i===a?(u=Math.max(n.y,o.y)+20,r=new d(n.x,u)):r=new d(n.x,n.y-m/2),c=f>0?s:"Right"):i===l&&(f*f<.1&&m>0&&"Bottom"===a?(r=o,c=a):(m<0?r=new d(n.x,n.y-20):f>0&&"Right"===a||f<0&&a===s?r=new d(n.x,o.y):i===a?(u=Math.min(n.y,o.y)-20,r=new d(n.x,u)):r=new d(n.x,n.y-m/2),c=f>0?s:"Right")),e(t,r,c,o,a))}(n,i,u[e.orientation.join("")],a,u[t.orientation.join("")]),n.length<2)return"";if(2===n.length)return"M ".concat(n[0].x," ").concat(n[0].y," L ").concat(n[1].x," ").concat(n[1].y);var m=15;if(n.pop(),4!==n.length)return function(e){return e.reduce((function(e,t){return e.push(["L",t.x,t.y].join(" ")),e}),[["M",e[0].x,e[0].y].join(" ")]).join(" ")}(n);var p=n,h=(0,o.default)(p,4),g=h[0],v=h[1],y=h[2],b=h[3];if(Math.abs(g.y-b.y)<30&&(m=Math.abs(g.y-b.y)/2),r.default.first(n).x===r.default.last(n).x||r.default.first(n).y===r.default.last(n).y)return["M",r.default.first(n).x,r.default.first(n).y,"L",r.default.last(n).x,r.default.last(n).y].join(" ");r.default.first(n).x>r.default.last(n).x&&(n=n.reverse());var _=f(g,v,y,m),j=f(v,y,b,m);return["M",_[0].x,_[0].y,"L",_[1].x,_[1].y,"A",m,m,90,0,_[3],_[2].x,_[2].y,"L",j[1].x,j[1].y,"M",j[1].x,j[1].y,"A",m,m,90,0,j[3],j[2].x,j[2].y,"L",b.x,b.y].join(" ")};t.default=m},477:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),l=a(n(0)),d=n(478),c=r(n(480));t.default=function(e){var t=e.canvas,n=e.actionMenu,i=void 0===n?[]:n;if(!e.visible)return null;Array.isArray(i)||(i=[]);for(var o=s.cloneDeep(d.actions),a=[],r=function(e){var t=s.find(o,(function(t){return t.key===e.key}));if(!t)return a.push(e),"continue";s.merge(t,e),a.push(t),o=o.filter((function(e){return e.key!==t.key}))},u=0,f=i;u=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=l.top&&(l.top=s.top+s.height+t),s.top+s.height+t0;)s();return{edges:o,fileds:a}}},{key:"_fixCenterNode",value:function(e,t){var n=this.getNode(t);if(n){var i=h.find(e,(function(e){return e.id===t})),o=i.left-n.left,a=i.top-n.top;e.forEach((function(e){e.left-=o,e.top-=a}))}}},{key:"relayout",value:function(e,t){var n=this.nodes,i=this.edges,o=n.map((function(e,t){return h.assign({left:e.left,top:e.top,order:t},e.options)})),a=[];a=t?e.edges||[]:i.map((function(e){return{source:e.sourceNode.id,target:e.targetNode.id}}));m.Layout.dagreLayout({rankdir:"LR",nodesep:50,ranksep:70,data:{nodes:o,edges:a}}),this._precollide(o,50,70),e&&e.centerNodeId&&this._fixCenterNode(o,e.centerNodeId),!t&&i.length>30&&(0,p.default)(this.svg).css("visibility","hidden"),this.nodes.forEach((function(e,t){var n=o[t].left,i=o[t].top;e.top===i&&e.left===n||(e.options.top=i,e.options.left=n,e.moveTo(n,i))})),!t&&i.length>30&&(0,p.default)(this.svg).css("visibility","visible")}},{key:"addNodes",value:function(e,t){var n=this,o=(0,l.default)((0,u.default)(i.prototype),"addNodes",this).call(this,e,t);return o.forEach((function(e){e._canvas=n})),o}}]),i}(m.Canvas);t.default=x},337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDragedPosition=t.setElementDragable=void 0;var i,o=new Map,a=function(e){i=e};t.setElementDragable=function(e,t){var n=!1,r=!1,s=0,l=0,d=0,c=0,u=0,f=0;e.addEventListener("mousedown",(function(t){n=!0,s=t.clientX,l=t.clientY,d=0,c=0,u=Number(e.style.top.replace("px",""))||0,f=Number(e.style.left.replace("px",""))||0,o.get(e)||o.set(e,{top:u,left:f})})),document.addEventListener("mouseup",(function(){n&&r&&(null==t||t(a)),n=!1})),document.addEventListener("mousemove",(function(t){r=!0,n&&r&&(i.zoom(1),d=t.clientX-s,c=t.clientY-l,e.style.top="".concat(u+c,"px"),e.style.left="".concat(f+d,"px"))}))};function r(e){var t=e.getBoundingClientRect(),n=t.top,i=t.left,o=t.width,a=t.height;return{x:i+o/2,y:n+a/2,height:a,width:o}}t.setDragedPosition=function(e,t,n){var i,o,a,s=(i=e,o=r(t),a=r(i),{x:o.x-a.x,y:o.y-a.y}),l=s.x,d=s.y,c=e.getBoundingClientRect(),u=c.width,f=c.height;return n.pos[1]=e.offsetTop+d+f/2,n.pos[0]=e.offsetLeft+l+u/2-15,n}},364:function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&(this.canvas.removeEdges(r.rmEdges.map((function(e){return e.id}))),s=!0),r.rmNodes.length>0&&this.canvas.removeNodes(r.rmNodes.map((function(e){return e.id}))),r.addNodes.length>0&&this.canvas.addNodes(r.addNodes),r.collapseNodes.length>0&&(r.collapseNodes.forEach((function(e){n.canvas.getNode(e.id).collapse(e.isCollapse)})),s=!0),r.addEdges.length>0&&(this.canvas.addEdges(r.addEdges),s=!0),s){this.canvas.relayout({centerNodeId:e.centerId});var l=this.canvas.nodes.map((function(e){return e._renderPromise}));this.canvas._renderPromise=Promise.all(l).then((function(){return new Promise((function(t,i){e.centerId?(n.canvas.focusNodeWithAnimate(e.centerId,"node",{},(function(){setTimeout((function(){t()}),50)})),n.canvas.focus(e.centerId)):(n._isFirstFocus||(n.canvas.focusCenterWithAnimate(),n._isFirstFocus=!0),t())}))}))}return this.canvasData=a,(0,m.updateCanvasData)(a.nodes,this.canvas.nodes),(0,m.diffActionMenuData)(e.actionMenu,this.props.actionMenu)},t.prototype.render=function(){var e=this.canvas,t=this.props.actionMenu,n=void 0===t?[]:t,i=u.get(this,"props.config.showActionIcon",!0);return d.createElement("div",{className:this._genClassName()},d.createElement(p.default,{canvas:e,actionMenu:n,visible:i}))},t.prototype._genClassName=function(){return this.props.className?this.props.className+" butterfly-lineage-dag":"butterfly-lineage-dag"},t}(d.Component);t.default=h},460:function(e,t,n){var i=n(461);"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(99)(i,o);i.locals&&(e.exports=i.locals)},461:function(e,t,n){(t=e.exports=n(81)(!1)).i(n(462),""),t.push([e.i,".butterfly-lineage-dag {\n position: relative;\n height: 100%;\n width: 100%;\n min-height: 200px;\n min-width: 200px;\n}\n.butterfly-lineage-dag .table-node {\n position: absolute;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);\n min-width: 380px;\n background-color: white !important;\n}\n.butterfly-lineage-dag .table-node.focus {\n box-shadow: 0px 0px 5px #f66902;\n}\n.butterfly-lineage-dag .table-node .title-con {\n position: relative;\n min-width: 150px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator {\n position: absolute;\n min-width: 50px;\n height: 100%;\n top: 0;\n right: 10px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator .operator-item {\n display: inline-block;\n height: 100%;\n line-height: 34px;\n cursor: pointer;\n}\n.butterfly-lineage-dag .table-node .title-con .point {\n position: absolute;\n top: 50%;\n width: 0;\n height: 0;\n}\n.butterfly-lineage-dag .table-node .title-con .point.left-point {\n left: 6px;\n}\n.butterfly-lineage-dag .table-node .title-con .point.right-point {\n right: 6px;\n}\n.butterfly-lineage-dag .table-node .field {\n position: relative;\n margin: 0 16px;\n white-space: nowrap;\n}\n.butterfly-lineage-dag .table-node .field > span:nth-of-type(2) {\n display: none;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain {\n background: #fef0e5;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain .point {\n background: #ff6a00;\n}\n.butterfly-lineage-dag .table-node .field .field-item {\n display: inline-block;\n min-width: 50px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n padding-right: 5px;\n text-align: center;\n}\n.butterfly-lineage-dag .table-node .field .point {\n position: absolute;\n top: 10px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #D9D9D9;\n}\n.butterfly-lineage-dag .table-node .field .point.left-point {\n left: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.right-point {\n right: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.hidden {\n visibility: hidden;\n}\n.butterfly-lineage-dag .title {\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: #fff;\n max-width: 250px;\n font-weight: 600;\n}\n.butterfly-lineage-dag .filed-title .filed-title-item {\n display: inline-block;\n text-align: center;\n}\n.butterfly-lineage-dag .butterflies-link.hover-chain {\n stroke: #F66902;\n stroke-width: 3px;\n}\n.butterfly-lineage-dag .butterflies-arrow {\n stroke-width: 2px;\n}\n.butterfly-lineage-dag .butterflies-arrow.hover-chain {\n stroke: #F66902;\n fill: #F66902;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action {\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 999;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div {\n height: 24px;\n width: 24px;\n text-align: center;\n line-height: 24px;\n cursor: pointer;\n color: #000;\n opacity: 0.7;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div i {\n -webkit-text-stroke-width: 0;\n font-size: 14px;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:hover {\n background: #eee;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:last-child {\n border-bottom: none;\n}\n.menuContainer {\n max-height: 80vh;\n overflow: auto;\n}\n.menuContainer::-webkit-scrollbar {\n display: none;\n}\n",""])},462:function(e,t,n){(e.exports=n(81)(!1)).push([e.i,'@font-face {\r\n font-family: "table-build-icon"; /* Project id 2369312 */\r\n src: \r\n url(\'data:application/x-font-woff2;charset=utf-8;base64,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\') format(\'woff2\'),\r\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.woff?t=1649233665768\') format(\'woff\'),\r\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.ttf?t=1649233665768\') format(\'truetype\');\r\n}\r\n\r\n.table-build-icon {\r\n font-family: "table-build-icon" !important;\r\n font-size: 16px;\r\n font-style: normal;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.table-build-icon-kongshuju:before {\r\n content: "\\E600";\r\n}\r\n\r\n.table-build-icon-zoom-in:before {\r\n content: "\\E604";\r\n}\r\n\r\n.table-build-icon-quanping2:before {\r\n content: "\\E78B";\r\n}\r\n\r\n.table-build-icon-zoom-out:before {\r\n content: "\\E9E5";\r\n}\r\n\r\n.table-build-icon-xiala:before {\r\n content: "\\E608";\r\n}\r\n\r\n.table-build-icon-canvas-cuo:before {\r\n content: "\\E61F";\r\n}\r\n\r\n.table-build-icon-iconfontxiaogantanhao:before {\r\n content: "\\E60D";\r\n}\r\n',""])},469:function(e,t,n){"use strict";var i=n(19),o=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.updateCanvasData=t.transformInitData=t.transformEdges=t.diffPropsData=t.diffActionMenuData=void 0;var a=i(n(40)),r=i(n(470)),s=i(n(472)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}i.default=e,n&&n.set(e,i);return i}(n(61));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}t.transformInitData=function(e){var t=e.tables,n=e.relations,i=e.columns,o=e.emptyContent,d=e.operator,c=e._titleRender,u=e._enableHoverChain,f=e._emptyContent,m=e._emptyWidth;return{nodes:t.map((function(e){var t;return l.assign((t={Class:r.default,_columns:i,_emptyContent:o,_operator:d,_titleRender:c,_enableHoverChain:u},(0,a.default)(t,"_emptyContent",f),(0,a.default)(t,"_emptyWidth",m),t),e)})),edges:n.map((function(e){return{relationColor:e.relationColor,id:e.id||"".concat(e.srcTableId,"-").concat(e.tgtTableId,"-").concat(e.srcTableColName,"-").concat(e.tgtTableColName),type:"endpoint",sourceNode:e.srcTableId,targetNode:e.tgtTableId,source:void 0!==e.srcTableColName&&null!==e.srcTableColName?e.srcTableColName:e.srcTableId+"-right",target:void 0!==e.tgtTableColName&&null!==e.tgtTableColName?e.tgtTableColName:e.tgtTableId+"-left",_isNodeEdge:!(void 0!==e.srcTableColName&&null!==e.srcTableColName||void 0!==e.tgtTableColName&&null!==e.tgtTableColName),Class:s.default}}))}};t.transformEdges=function(e,t){t.forEach((function(e){e._isNodeEdge||(e.source+="-right",e.target+="-left")})),e.forEach((function(e){e.isCollapse&&(t.filter((function(t){return e.id===t.sourceNode})).forEach((function(t){t.source="".concat(e.id,"-right"),t.sourceCollaps=!0})),t.filter((function(t){return e.id===t.targetNode})).forEach((function(t){t.target="".concat(e.id,"-left"),t.targetCollaps=!0})))}));var n={},i=[];for(var o in t.forEach((function(e){var t=n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)];t?l.assign(t,e):n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)]=e})),n)i.push(n[o]);return{nodes:e,edges:i}};t.diffPropsData=function(e,t){var n=function(e,t){return e.id===t.id},i=l.differenceWith(e.nodes,t.nodes,n),o=l.differenceWith(t.nodes,e.nodes,n),a=function(e,t){return e.sourceNode===t.sourceNode&&e.targetNode===t.targetNode&&e.source===t.source&&e.target===t.target},r=l.differenceWith(e.edges,t.edges,a),s=l.differenceWith(t.edges,e.edges,a),d=l.differenceWith(e.nodes,t.nodes,(function(e,t){return e.id===t.id&&e.isCollapse===t.isCollapse}));return{addNodes:i,rmNodes:o,addEdges:r,rmEdges:s,collapseNodes:d=l.differenceWith(d,i,n)}};t.updateCanvasData=function(e,t){t.forEach((function(t){var n=l.find(e,(function(e){return e.id===t.id}));l.assign(t.options,n)}))};t.diffActionMenuData=function(e,t){var n=function(e,t){return e.key===t.key},i=l.differenceWith(e,t,n),o=l.differenceWith(t,e,n);return 0!==i.length||0!==o.length}},470:function(e,t,n){"use strict";var i=n(19),o=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(67)),r=i(n(68)),s=i(n(69)),l=i(n(118)),d=i(n(100)),c=n(167),u=b(n(27)),f=i(n(119)),m=b(n(61)),p=i(n(471)),h=n(337),g=n(333);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}return i.default=e,n&&n.set(e,i),i}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,l.default)(this,n)}}var _=function(e){(0,s.default)(n,e);var t=y(n);function n(e){var i;return(0,a.default)(this,n),(i=t.call(this,e)).TITLE_HEIGHT=34,i.ROW_HEIGHT=26,i.COLUMN_WIDTH=350,i.fieldsList=[],i.titlesList=[],i._renderPromise=Promise.resolve(),i._isRendering=!1,i}return(0,r.default)(n,[{key:"mounted",value:function(){this._createNodeEndpoint(!0),this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}},{key:"draw",value:function(e){var t,n,i=this,o=e.dom,a=e.name||e.id||(null===(t=e.options)||void 0===t?void 0:t.name)||(null===(n=e.options)||void 0===n?void 0:n.id);o||(o=(0,f.default)("
").attr("class","node table-node").attr("id",a)),o.attr("id",a);var r=(0,f.default)(o),s=m.get(this,"options.classname");return s&&r.addClass(s),void 0!==e.top&&r.css("top",e.top),void 0!==e.left&&r.css("left",e.left),this._createTableName(r),this._createFields(r),(0,h.setElementDragable)(r[0],(function(e){(0,g.getEdges)(a).forEach((function(e){return e.redraw()})),e(i._canvas)})),r[0]}},{key:"collapse",value:function(e){var t=this;if(e!==this.options.isCollapse){if(this.options.isCollapse=e,e)this.fieldsList.forEach((function(e){(0,f.default)(e.dom).off()})),this.endpoints.filter((function(e){return!e.options._isNodeSelf})).map((function(e){return e.id})).forEach((function(e){t.removeEndpoint(e)})),(0,f.default)(this.dom).find(".field").remove(),this.fieldsList=[];else this._createFields(),this._createNodeEndpoint();this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}}},{key:"focus",value:function(){(0,f.default)(this.dom).addClass("focus"),this.options.minimapActive=!0}},{key:"unfocus",value:function(){(0,f.default)(this.dom).removeClass("focus"),this.options.minimapActive=!1}},{key:"redrawTitle",value:function(){(0,f.default)(this.dom).find(".operator").remove(),this._createTableName((0,f.default)(this.dom),!0)}},{key:"_addEventListener",value:function(){var e=this;(0,f.default)(this.dom).on("mousedown",(function(t){0===t.button&&(["SELECT","INPUT","RADIO","CHECKBOX","TEXTAREA"].includes(t.target.nodeName)||t.preventDefault(),e.draggable?(e._isMoving=!0,e.emit("InnerEvents",{type:"node:dragBegin",data:e})):e.emit("InnerEvents",{type:"node:mouseDown",data:e}))})),(0,f.default)(this.dom).on("click",(function(t){e.emit("system.node.click",{node:e}),e.emit("events",{type:"node:click",node:e})})),this.setDraggable(this.draggable)}},{key:"_createTableName",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=arguments.length>1?arguments[1]:void 0,i=m.get(this,"options.name"),o=m.get(this,"options._titleRender"),a=m.get(this,"options._operator"),r=n?(0,f.default)(this.dom).find(".title-con"):(0,f.default)('
'),s=n?(0,f.default)(this.dom).find(".title"):(0,f.default)('
');if(this._isRendering)return!1;o?(this._isRendering=!0,(this._canvas?this._canvas._renderPromise:Promise.resolve()).then((function(){e._renderPromise=new Promise((function(t,n){u.render(o(i,e),s[0],(function(){if(0===e.height||0===e.width)e.width=e.options.width=(0,f.default)(e.dom).width(),e.height=e.options.height=(0,f.default)(e.dom).height(),e.endpoints.forEach((function(e){return e.updatePos()})),e.emit("custom.edge.redraw",{node:e});else{var n=[];e.endpoints.forEach((function(e){e.options._isNodeSelf&&(e.updatePos(),n.push(e))})),e.emit("custom.edge.redraw",{node:e,points:n})}t(),e._isRendering=!1})),r[0].title=r[0].textContent}))}))):i&&s.css({height:this.TITLE_HEIGHT+"px","line-height":this.TITLE_HEIGHT+"px"}),n||r.append(s);var l=null;if(a&&(l=(0,f.default)('
'),a.forEach((function(t){var n=(0,f.default)('
');u.render(t.icon,n[0]),t.onClick&&n.on("click",t.onClick.bind(e,e.options,e)),l.append(n)})),r.append(l)),!n){var d=(0,f.default)('
'),c=(0,f.default)('
');r.append(d).append(c),this.titlesList=this.titlesList.concat([{id:"".concat(this.id,"-left"),dom:d[0],type:"target"},{id:"".concat(this.id,"-right"),dom:c[0],type:"source"}]),(0,f.default)(t).append(r)}}},{key:"_createFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=m.get(this,"options.fields"),i=m.get(this,"options._columns"),o=m.get(this,"options.isCollapse"),a=i[0].key,r=[];if(n&&n.length){if(o)return;n.forEach((function(n,o){var s=(0,f.default)('
');s.css({height:e.ROW_HEIGHT+"px","line-height":e.ROW_HEIGHT+"px"}),i.forEach((function(t){if(t.render){var i=(0,f.default)('');i.css("width",(t.width||e.COLUMN_WIDTH)+"px"),u.render(t.render(n[t.key],n,o),i[0]),s.append(i)}else{var r=(0,f.default)('').concat(n[t.key],""));r.css("width",(t.width||e.COLUMN_WIDTH)+"px"),s.append(r)}t.primaryKey&&(a=t.key)}));var l=(0,f.default)(''),d=(0,f.default)('');s.append(l).append(d),e.options._enableHoverChain&&((0,f.default)(s).on("mouseover",(function(t){e.emit("custom.field.hover",{node:e,fieldId:n[a]})})),(0,f.default)(s).on("mouseout",(function(t){e.emit("custom.field.unHover",{node:e,fieldId:n[a]})}))),t.append(s),r.push({id:n[a],dom:s})})),this.fieldsList=this.fieldsList.concat(r)}else{var s=m.get(this.options,"_emptyContent");if(s){var l=(0,p.default)({content:s,width:this.options._emptyWidth});t.append(l),this.height=(0,f.default)(t).outerHeight()}}return r}},{key:"_createNodeEndpoint",value:function(e){var t=this;e&&this.titlesList.forEach((function(e){t.addEndpoint({id:e.id,orientation:"target"===e.type?[-1,0]:[1,0],dom:e.dom,originId:t.id,type:e.type,_isNodeSelf:!0})})),this.fieldsList.forEach((function(e){t.addEndpoint({id:"".concat(e.id,"-left"),orientation:[-1,0],dom:(0,f.default)(e.dom).find(".left-point")[0],originId:t.id,type:"target"}),t.addEndpoint({id:"".concat(e.id,"-right"),orientation:[1,0],dom:(0,f.default)(e.dom).find(".right-point")[0],originId:t.id,type:"source"}),t.options.isCollapse&&(0,f.default)(e.dom).css({visibility:"visible",display:"none"})}))}}]),n}(c.Node);t.default=_},471:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(119)),a=i(n(0)),r=i(n(27));t.default=function(e){var t=e.content,n=e.container[0],i=e.width;i||(i="150px"),"number"==typeof e.width&&(i=e.width+"px");var s,l='
';if(t)s=t,l=a.default.isValidElement(s)?r.default.render(t,n):(0,o.default)(t);else{l=(0,o.default)('
');var d=(0,o.default)('');l.append(d)}return l}},472:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(67)),a=i(n(68)),r=i(n(336)),s=i(n(69)),l=i(n(118)),d=i(n(100)),c=n(167),u=i(n(119)),f=i(n(473)),m=n(337);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,l.default)(this,n)}}var h=function(e){(0,s.default)(n,e);var t=p(n);function n(e){return(0,o.default)(this,n),t.call(this,e)}return(0,a.default)(n,[{key:"mounted",value:function(){this.sourceNode.options.isCollapse||(0,u.default)(this.sourceEndpoint.dom).removeClass("hidden"),this.targetNode.options.isCollapse||(0,u.default)(this.targetEndpoint.dom).removeClass("hidden")}},{key:"calcPath",value:function(e,t){return(0,m.setDragedPosition)(this.sourceNode.dom,this.sourceEndpoint.dom,e),(0,m.setDragedPosition)(this.targetNode.dom,this.targetEndpoint.dom,t),(0,f.default)(e,t)}},{key:"focusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";this.options.relationColor&&this.dom&&(this.dom.style.stroke=this.options.relationColor),(0,u.default)(this.dom).addClass(e),(0,u.default)(this.arrowDom).addClass(e),(0,u.default)(this.labelDom).addClass(e),this.setZIndex(1e3)}},{key:"unfocusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";this.dom.style.stroke="#BFBFBF",(0,u.default)(this.dom).removeClass(e),(0,u.default)(this.arrowDom).removeClass(e),(0,u.default)(this.labelDom).removeClass(e),this.setZIndex(0)}},{key:"destroy",value:function(e){(0,r.default)((0,d.default)(n.prototype),"destroy",this).call(this,e),this.sourceNode.options.isCollapse||(0,u.default)(this.sourceEndpoint.dom).addClass("hidden"),this.targetNode.options.isCollapse||(0,u.default)(this.targetEndpoint.dom).addClass("hidden")}}]),n}(c.Edge);t.default=h},473:function(e,t,n){"use strict";var i=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(46)),a=i(n(20)),r=i(n(61)),s="Left",l="Top",d=function(e,t){this.x=e,this.y=t};function c(e,t,n,i,o){var s=function(e){if(o){for(var t=function(t){if(r.default.some(o,(function(n){return n===e[t]})))return{v:e[t]}},n=0;n=0?s(["Top","Left","Right","Bottom"]):c,c=d<0?s(["Bottom","Left","Right","Top"]):c),0===d&&(c=l>=0?s(["Right","Top","Bottom","Left"]):c,c=l<0?s(["Left","Top","Bottom","Right"]):c)):c=s(l>0&&d>0?u>1?["Top","Left","Right","Bottom"]:["Left","Top","Bottom","Right"]:l<0&&d>0?u>1?["Top","Right","Left","Bottom"]:["Right","Top","Bottom","Left"]:l<0&&d<0?u>1?["Bottom","Right","Left","Top"]:["Right","Bottom","Top","Left"]:u>1?["Bottom","Left","Right","Top"]:["Left","Bottom","Top","Right"]),c){case"Left":return[-1,0];case"Right":return[1,0];case"Top":return[0,-1];case"Bottom":return[0,1]}}var u=function(e,t,n){var i=new d;return["x","y"].forEach((function(o){e[o]>t[o]?i[o]=t[o]+n:e[o]0&&m*m<.1&&"Right"===a?(r=o,c=a):(f<0?r=new d(n.x-20,n.y):m>0&&"Bottom"===a||m<0&&a===l?r=new d(o.x,n.y):i===a?(u=Math.min(n.x,o.x)-20,r=new d(u,n.y)):r=new d(n.x-f/2,n.y),c=m>0?l:"Bottom"):"Right"===i?f<0&&m*m<.1&&a===s?(r=o,c=a):(f>0?r=new d(n.x+20,n.y):m>0&&"Bottom"===a||m<0&&a===l?r=new d(o.x,n.y):i===a?(u=Math.max(n.x,o.x)+20,r=new d(u,n.y)):r=new d(n.x-f/2,n.y),c=m>0?l:"Bottom"):"Bottom"===i?f*f<.1&&m<0&&a===l?(r=o,c=a):(m>0?r=new d(n.x,n.y+20):f>0&&"Right"===a||f<0&&a===s?r=new d(n.x,o.y):i===a?(u=Math.max(n.y,o.y)+20,r=new d(n.x,u)):r=new d(n.x,n.y-m/2),c=f>0?s:"Right"):i===l&&(f*f<.1&&m>0&&"Bottom"===a?(r=o,c=a):(m<0?r=new d(n.x,n.y-20):f>0&&"Right"===a||f<0&&a===s?r=new d(n.x,o.y):i===a?(u=Math.min(n.y,o.y)-20,r=new d(n.x,u)):r=new d(n.x,n.y-m/2),c=f>0?s:"Right")),e(t,r,c,o,a))}(n,i,u[e.orientation.join("")],a,u[t.orientation.join("")]),n.length<2)return"";if(2===n.length)return"M ".concat(n[0].x," ").concat(n[0].y," L ").concat(n[1].x," ").concat(n[1].y);var m=15;if(n.pop(),4!==n.length)return function(e){return e.reduce((function(e,t){return e.push(["L",t.x,t.y].join(" ")),e}),[["M",e[0].x,e[0].y].join(" ")]).join(" ")}(n);var p=n,h=(0,o.default)(p,4),g=h[0],v=h[1],b=h[2],y=h[3];if(Math.abs(g.y-y.y)<30&&(m=Math.abs(g.y-y.y)/2),r.default.first(n).x===r.default.last(n).x||r.default.first(n).y===r.default.last(n).y)return["M",r.default.first(n).x,r.default.first(n).y,"L",r.default.last(n).x,r.default.last(n).y].join(" ");r.default.first(n).x>r.default.last(n).x&&(n=n.reverse());var _=f(g,v,b,m),j=f(v,b,y,m);return["M",_[0].x,_[0].y,"L",_[1].x,_[1].y,"A",m,m,90,0,_[3],_[2].x,_[2].y,"L",j[1].x,j[1].y,"M",j[1].x,j[1].y,"A",m,m,90,0,j[3],j[2].x,j[2].y,"L",y.x,y.y].join(" ")};t.default=m},477:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(61)),l=a(n(0)),d=n(478),c=r(n(480));t.default=function(e){var t=e.canvas,n=e.actionMenu,i=void 0===n?[]:n;if(!e.visible)return null;Array.isArray(i)||(i=[]);for(var o=s.cloneDeep(d.actions),a=[],r=function(e){var t=s.find(o,(function(t){return t.key===e.key}));if(!t)return a.push(e),"continue";s.merge(t,e),a.push(t),o=o.filter((function(e){return e.key!==t.key}))},u=0,f=i;u