12345678 |
- /*!
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Modeling UI
- * (C) Copyright IBM Corp. 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- (window.caModellingPerspective=window.caModellingPerspective||[]).push([[37],{1242:function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"e",function(){return n}),r.d(t,"b",function(){return a}),r.d(t,"a",function(){return i}),r.d(t,"c",function(){return s});var o=65,n=270,a=16,i=65,s=65},1864:function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return S});var o,n,a,i,s=r(1),c=r.n(s),l=r(5),u=r(16),p=r(3),d=r(19),m=r(2),b=r(1865),y=r.n(b),_=r(1018),h=r.n(_),f=r(41),v=r(8),w=r(25),g=r(1866),F=r(1871);r(1874);function q(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var x=Object(l.e)(function(e){return{openBuildQS:e.openBuildQS,customTables:e.customTables}})(o=Object(u.observer)(o=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=this.props,t=e.openBuildQS,r=e.customTables;return c.a.createElement(p.FlexLayout,{direction:"column",className:"bi-mui-queryFlowView__startingView"},c.a.createElement(p.FlexItem,{className:"bi-mui-queryFlowView__startViewHeader"},c.a.createElement(p.FlexLayout,null,c.a.createElement(p.FlexItem,{className:"bi-mui-queryFlowView__startViewHeaderText"},Object(m.getString)("queryFlowSelect")),c.a.createElement(p.FlexItem,{className:"bi-mui-queryFlowView__startViewButton",grow:!0},c.a.createElement(p.Button,{intent:"primary",onClick:t},Object(m.getString)("queryFlowNewTable"))))),c.a.createElement(p.FlexItem,{shrink:!0},r&&c.a.createElement(F.a,null)))},t}(s.Component))||o)||o,O=Object(l.e)(function(e){return{querySubject:e.querySubject,goBack:e.goBack}})(n=Object(u.observer)(n=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=this.props,t=e.querySubject,r=e.goBack;return c.a.createElement(p.FlexLayout,{direction:"column",height:"100%"},c.a.createElement(p.FlexItem,null,c.a.createElement(p.Container,{className:"bi-mui-queryFlowView__header"},c.a.createElement(p.FlexLayout,{alignItems:"center"},c.a.createElement(p.FlexItem,{basis:"64px",textAlign:"center"},c.a.createElement(p.Button,{variant:"icon",icon:y.a.id,onClick:r,"data-tid":function(e){return Object(w.a)("queryFlow",e)}("goback")})),c.a.createElement(p.FlexItem,null,c.a.createElement(p.FlexLayout,null,c.a.createElement(p.SVGIcon,{icon:Object(f.e)(t),size:"normal"}),c.a.createElement(p.Label,{className:"bi-mui-queryFlowView__label",label:t.getLabel()})))))),c.a.createElement(p.FlexItem,{grow:!0,overflow:"hidden"},c.a.createElement(g.a,null)))},t}(s.Component))||n)||n,j=Object(l.e)(function(e){return{openBuildQS:e.openBuildQS}})(a=Object(u.observer)(a=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=this.props.openBuildQS;return c.a.createElement(d.PanelMessage,null,c.a.createElement(d.EmptyState,{icon:h.a,header:Object(m.getString)("queryFlowEmptyTitle"),body:c.a.createElement(s.Fragment,null,Object(m.getString)("queryFlowEmptyState1"),c.a.createElement("br",null),Object(m.getString)("queryFlowEmptyState2")),button:c.a.createElement(p.Button,{intent:"primary",onClick:e},Object(m.getString)("queryFlowNewTable"))}))},t}(s.Component))||a)||a,S=Object(l.e)(function(e){return{querySubject:e.querySubject,openBuildQS:e.openBuildQS,goBack:e.goBack,customTables:e.customTables}})(i=Object(u.observer)(i=function(e){function t(){return e.apply(this,arguments)||this}return q(t,e),t.prototype.render=function(){var e=this.props,t=e.querySubject,r=e.customTables;return c.a.createElement(p.Container,{className:"bi-mui-queryFlowView",height:"100%"},t?c.a.createElement(O,{key:Object(v.getUniqueId)(t)}):r.length?c.a.createElement(x,null):c.a.createElement(j,null))},t}(s.Component))||i)||i},1865:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([1933],{"3865314c5959606874d4":function(t,r){t.exports=e},"7747182150d3b89d9a34":function(e,t,r){"use strict";var o=r("9689a9c94ae38b47fa2c"),n=r.n(o),a=r("9ce58a7deea14f49ef01"),i=r.n(a),s=new n.a({id:"arrow--left_16_v7",use:"arrow--left_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="arrow--left_16_v7"><path d="M6.7 12.3L2.9 8.5H15v-1H2.9l3.8-3.8L6 3 1 8l5 5z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});i.a.add(s),t.a=s},"852b68bf0240055d5826":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3865314c5959606874d4"),n=(r.n(o),r("7747182150d3b89d9a34"));t.default=n.a}},["852b68bf0240055d5826"])}(r(15))},1866:function(e,t,r){"use strict";r.d(t,"a",function(){return z});var o,n=r(759),a=r(1),i=r.n(a),s=r(5),c=r(16),l=r(1207),u=r(1867),p=r.n(u),d=r(56),m=r.n(d),b=r(1868),y=r.n(b),_=r(80),h=r(1200),f=r(1242);r(1869);var v=24,w=16,g=24,F=1e3,q=32,x=48,O=f.d/2+4,j=16,S=f.d/2-v/2,C=150,k="data-d3-type",E="data-d3-id",P="QueryFlowContainer__tables",D="QueryFlowContainer__links",T="QueryFlowContainer__link",I="QueryFlowContainer__table",M=f.e-2*x,B=2.5,V=.4,L=.3,z=Object(s.e)(function(e){return{layoutData:e.layoutData,querySubject:e.querySubject,selection:e.selection.slice(),setSelection:e.setSelection,showContextMenu:e.showContextMenu,hideContextMenu:e.hideContextMenu,manageFilters:e.manageFilters,manageAdvancedProperties:e.manageAdvancedProperties,showValidationResults:e.showValidationResults}})(o=Object(c.observer)(o=function(e){function t(){for(var t,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).state={scale:1,translate:[0,0],zoomControlPosition:{x:0,y:-50}},t._node=void 0,t._handleTableMouseDown=function(e){if(!e.isMissing){var r=n.event;if(r.ctrlKey||r.metaKey){var o=t.props.selection.slice(),a=o.findIndex(function(t){return t===e.qs});a>-1&&o.length>1?o.splice(a,1):-1===a&&o.push(e.qs),t.props.setSelection(o)}else t.props.setSelection([e.qs])}},t._clearDiagram=function(){t._select().html(null)},t._onMenu=function(){var e=Object(l.b)(n.event),r=e[0],o=e[1];n.event.preventDefault(),t.props.showContextMenu(r,o)},t._renderDiagram=function(){var e=t.props.layoutData;e&&(t._select().transition().duration(F).attr("width",e.width).attr("height",e.height),t._select().select(function(){return this.parentNode}).on("mousedown",function(){t.props.hideContextMenu()}).call(n.zoom().scaleExtent([V,B]).filter(t._zoomFilter).on("zoom",t._onPan)).on("dblclick.zoom",null),t._renderTables(e.children),t._renderLinks(e.edges))},t._zoomFilter=function(){return!(n.event.button||"wheel"===n.event.type&&n.event.ctrlKey)},t._onPan=function(){var e=n.event.transform;t.setState(function(t){return{scale:"wheel"===n.event.sourceEvent.type?e.k:t.scale,translate:[e.x,e.y]}})},t._onZoomReset=function(){t.setState({scale:1,translate:[0,0]}),t._select().select(function(){return this.parentNode}).call(n.zoom().transform,n.zoomIdentity)},t._onZoomIn=function(){t.setState(function(e){return{scale:Math.min(L+e.scale,B)}})},t._onZoomOut=function(){t.setState(function(e){return{scale:Math.max(e.scale-L,V)}})},t._onZoomControlPositionChange=function(e){t.setState({zoomControlPosition:e})},t._select=function(e,r){var o=n.select(t._node);return(r||e)&&(o=o.selectAll((e?"["+k+"="+e+"]":"")+(r?"["+E+"="+r+"]":""))),o},t._renderTables=function(e){var r=t._select(),o=t._select(P);o.empty()&&(o=r.append("svg").attr(k,P)),o.attr("width",r.width).attr("height",r.height);var n=o.selectAll("g").filter(Object(l.c)("["+k+"="+I+"]")).data(e,function(e){return e.id});n.exit().transition().duration(F).style("opacity",0).remove(),n.enter().append("g").style("opacity",0).attr(E,function(e){return e.id}).attr(k,I).classed("bi-mui-queryFlow-canvas__tableGroup",!0).classed("is-missing",function(e){return e.isMissing}).classed("has-errors",function(e){return e.errors&&e.errors.severity===_.SEV_ERROR}).classed("has-warnings",function(e){return e.errors&&e.errors.severity===_.SEV_WARNING}).attr("style",function(e){return"width:"+e.width+";height:"+e.height}).on("mousedown",function(e){t._handleTableMouseDown(e)}).on("contextmenu",t._onMenu).each(function(e){t._renderTable(e)}).style("opacity",1),n.classed("is-missing",function(e){return e.isMissing}).classed("has-errors",function(e){return e.errors&&e.errors.severity===_.SEV_ERROR}).classed("has-warnings",function(e){return e.errors&&e.errors.severity===_.SEV_WARNING}).transition().duration(F).each(function(e){t._renderTable(e)})},t._renderPreFilter=function(e){e.preFilters.length?t._renderDecorator({data:e,icon:m.a,amount:e.preFilters.length,position:1,type:"preFilter",onClick:t._onFilterClick}):t._removeDecorator(e,"preFilter")},t._renderAggregate=function(e){e.hasAggregate?t._renderDecorator({data:e,icon:y.a,position:2-+Boolean(!e.preFilters.length),type:"aggregate",onClick:t.props.manageAdvancedProperties}):t._removeDecorator(e,"aggregate")},t._renderPostFilter=function(e){e.postFilters.length?t._renderDecorator({data:e,icon:m.a,amount:e.postFilters.length,position:3-+Boolean(!e.hasAggregate)-+Boolean(!e.preFilters.length),type:"postFilter",onClick:t._onFilterClick}):t._removeDecorator(e,"postFilter")},t._onFilterClick=function(){t.props.manageFilters()},t._removeDecorator=function(e,r){var o="bi-mui-queryFlow-canvas__"+r,n=t._select(I,e.id),a=n.select("."+o),i=n.select("."+o+"Icon"),s=n.select("."+o+"Count");a.remove(),i.remove(),s.remove()},t._renderValidation=function(e){var r=t._select(I,e.id),o="bi-mui-queryFlow-canvas__validation",n=r.select("."+o),a=r.select("."+o+"Icon");if(e.errors){n.empty()&&(n=r.append("rect").classed(o,!0),a=r.append("svg").classed(o+"Icon",!0));var i=e.hasDecorators,s=e.x+x+i*(f.b/2),c=e.y+f.d/2-v/2+i*(f.b/2);n.transition().duration(F).attr("x",s).attr("y",c).attr("width",v).attr("height",v),n.on("click",function(){return t.props.showValidationResults(e.qs)}),a.attr("width",v).attr("height",v).transition().duration(F).attr("x",s).attr("y",c),Object(l.d)(a,e.errors.iconId)}else n.remove(),a.remove()},t._renderDecorator=function(e){var r=e.data,o=e.icon,n=e.onClick,a=e.amount,i=void 0===a?1:a,s=e.position,c=e.type,u=t._select(I,r.id),p="bi-mui-queryFlow-canvas__"+c,d=u.select("."+p),m=u.select("."+p+"Icon"),b=u.select("."+p+"Count");d.empty()&&(d=u.append("rect").classed(p,!0).classed("bi-mui-queryFlow-canvas__decorator",!0),m=u.append("svg").classed(p+"Icon",!0).classed("bi-mui-queryFlow-canvas__decoratorIcon",!0),b=u.append("text").classed(p+"Count",!0).classed("bi-mui-queryFlow-canvas__decoratorLabel",!0));var y=r.x+f.e-f.c+s*f.c+s*f.b/2+f.b/2,_=r.y+f.b/2;n&&d.on("click",n).classed("is-clickable",!0),b.text(i&&1!==i?i:""),b.transition().duration(F).attr("x",y+f.c-16).attr("y",_+f.a-8),d.transition().duration(F).attr("x",y).attr("y",_).attr("width",f.c).attr("height",f.a),m.attr("width",g).attr("height",g).transition().duration(F).attr("x",y+f.c/2-g/2).attr("y",_+f.a/2-g/2),Object(l.d)(m,o)},t._renderTable=function(e){var r=t._select(I,e.id),o=r.select(".bi-mui-queryFlow-canvas__table"),n=r.select(".bi-mui-queryFlow-canvas__label"),a=r.select(".bi-mui-queryFlow-canvas__icon"),i=r.select(".bi-mui-queryFlow-canvas__menu"),s=r.select(".bi-mui-queryFlow-canvas__menuIcon"),c=r.select(".bi-mui-queryFlow-canvas__decoratedTable");o.empty()&&(c=r.append("rect").classed("bi-mui-queryFlow-canvas__decoratedTable",!0),o=r.append("rect").classed("bi-mui-queryFlow-canvas__table",!0),n=r.append("text").classed("bi-mui-queryFlow-canvas__label",!0),a=r.append("svg").classed("bi-mui-queryFlow-canvas__icon",!0),i=r.append("rect").classed("bi-mui-queryFlow-canvas__menu",!0),s=r.append("svg").classed("bi-mui-queryFlow-canvas__menuIcon",!0)),c.classed("is-hidden",!e.hasDecorators);var u=t.props.selection.indexOf(e.qs)>=0,d=e.errors?q:0;r.classed("is-selected",u),o.select("title").remove();var m=e.hasDecorators?f.b/2:0,b=e.x+m,y=e.y+m;c.transition().duration(F).attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height),o.transition().duration(F).attr("x",b).attr("y",y).attr("width",f.e).attr("height",f.d),n.text(e.label);var _=n.node().getComputedTextLength?n.node().getComputedTextLength():C,h=M-d;_>h?(n.text(Object(l.e)(e.label,_,h)),e.screenTip||o.append("title").text(e.label)):n.text(e.label),e.screenTip&&o.append("title").text(e.screenTip+" : "+e.label),n.classed("is-custom",e.isCustomTable).classed("is-hidden",e.isHidden),n.transition().duration(F).attr("x",b+x+d).attr("y",y+O),a.attr("width",v).attr("height",v).transition().duration(F).attr("x",b+j).attr("y",y+S),i.attr("width",w).attr("height",w).on("click",t._onMenu).transition().duration(F).attr("x",b+f.e-j-w).attr("y",y+S),s.attr("width",w).attr("height",w).on("click",t._onMenu).transition().duration(F).attr("x",b+f.e-j-w).attr("y",y+S),Object(l.d)(a,e.icon),Object(l.d)(s,p.a),t._renderPreFilter(e),t._renderAggregate(e),t._renderPostFilter(e),t._renderValidation(e)},t._generateLink=function(e){var r=t._select(T,e.id),o=e.sections[0],n=o.startPoint,a=o.endPoint,i=o.bendPoints,s=Object(l.a)(n,a,i,!1);r.append("path").classed("bi-mui-queryFlow-canvas__path",!0).attr("d",s).attr(E,function(e){return e.id})},t._renderLinks=function(e){var r=t._select(),o=t._select(D);o.empty()&&(o=r.append("svg").attr(k,D)),o.transition().duration(F).attr("width",r.width).attr("height",r.height);var n=o.selectAll("g").data(e,function(e){return e.id});n.exit().transition().duration(F).style("opacity",0).remove(),n.enter().append("g").attr(k,T).attr(E,function(e){return e.id}).style("opacity",0).each(function(e){return t._generateLink(e)}).transition().delay(F/2).duration(F).style("opacity",1),n.each(function(e){var r=t._select(T,e.id),o=e.sections[0],n=o.startPoint,a=o.endPoint,i=o.bendPoints,s=Object(l.a)(n,a,i,!1);r.select("path").transition().duration(F).attr("d",s)})},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){this._renderDiagram()},r.componentWillReceiveProps=function(e){e.querySubject&&this.props.querySubject===e.querySubject||this._clearDiagram()},r.componentDidUpdate=function(e,t){this.props.layoutData===e.layoutData&&this.props.selection===e.selection||this._renderDiagram(),t.scale===this.state.scale&&t.translate===this.state.translate||this.props.hideContextMenu()},r.render=function(){var e=this,t=this.state,r=t.translate,o=t.scale,n=t.zoomControlPosition;return i.a.createElement(i.a.Fragment,null,i.a.createElement("svg",{className:"bi-mui-queryFlow-canvas"},i.a.createElement("g",{ref:function(t){return e._node=t},transform:"translate("+r[0]+", "+r[1]+") scale("+Math.max(V,Math.min(o,B))+")"})),i.a.createElement(h.a,{onReset:this._onZoomReset,onZoomIn:this._onZoomIn,onZoomOut:this._onZoomOut,zoomControlPosition:n,setZoomControlPosition:this._onZoomControlPositionChange,disableReset:0===r[0]&&0===r[1]&&1===o,disableZoomIn:o===B,disableZoomOut:o===V}))},t}(a.Component))||o)||o},1867:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([782],{"3865314c5959606874d4":function(t,r){t.exports=e},"3e093e5642cd68f65e20":function(e,t,r){"use strict";var o=r("9689a9c94ae38b47fa2c"),n=r.n(o),a=r("9ce58a7deea14f49ef01"),i=r.n(a),s=new n.a({id:"overflow-menu--horizontal_16_v7",use:"overflow-menu--horizontal_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--horizontal_16_v7"><circle cx="3" cy="8" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="13" cy="8" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});i.a.add(s),t.a=s},"7b8e9c951999a27dfd31":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3865314c5959606874d4"),n=(r.n(o),r("3e093e5642cd68f65e20"));t.default=n.a}},["7b8e9c951999a27dfd31"])}(r(15))},1868:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([299],{"359deedf68053b37b7a3":function(e,t,r){"use strict";var o=r("9689a9c94ae38b47fa2c"),n=r.n(o),a=r("9ce58a7deea14f49ef01"),i=r.n(a),s=new n.a({id:"summarize_16_v7",use:"summarize_16_v7-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="summarize_16_v7"><path d="M14 14.5c0 .3-.2.5-.5.5h-11c-.2 0-.4-.1-.5-.3 0-.2 0-.4.1-.5L7.3 8 2.1 1.8C2 1.7 2 1.5 2 1.3c.1-.2.3-.3.5-.3h11c.3 0 .5.2.5.5s-.2.5-.5.5H3.6l4.8 5.7c.2.2.2.5 0 .6L3.6 14h9.9c.3 0 .5.2.5.5z" /></symbol>'});i.a.add(s),t.a=s},"3865314c5959606874d4":function(t,r){t.exports=e},e9e1abfab660514a16c6:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("3865314c5959606874d4"),n=(r.n(o),r("359deedf68053b37b7a3"));t.default=n.a}},["e9e1abfab660514a16c6"])}(r(15))},1869:function(e,t,r){var o=r(1870);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0};r(36)(o,n);o.locals&&(e.exports=o.locals)},1870:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,'.bi-mui-queryFlow-canvas{overflow:auto!important;user-select:none;min-width:100%;min-height:100%;stroke-width:2px}.bi-mui-queryFlow-canvas svg:not(:root){overflow:visible}.bi-mui-queryFlow-canvas.is-active:after{border:2px dashed;content:"";position:absolute;left:0;top:0;right:0;bottom:0;border-color:blue}.bi-mui-queryFlow-canvas__label{pointer-events:none;font-size:115%}.bi-mui-queryFlow-canvas__label.is-custom{font-weight:500}.bi-mui-queryFlow-canvas__label.is-hidden{opacity:.5}.bi-mui-queryFlow-canvas__table{stroke:#a6a5a6;stroke-width:1px;fill:#fff}.bi-mui-queryFlow-canvas__decoratedTable{fill:#eaeaea}.bi-mui-queryFlow-canvas__decoratedTable.is-hidden{display:none}.bi-mui-queryFlow-canvas__tableGroup:hover .bi-mui-queryFlow-canvas__decoratedTable,.bi-mui-queryFlow-canvas__tableGroup:hover .bi-mui-queryFlow-canvas__decorator,.bi-mui-queryFlow-canvas__tableGroup:hover .bi-mui-queryFlow-canvas__table{fill:#eaeaea!important}.bi-mui-queryFlow-canvas__tableGroup:hover .bi-mui-queryFlow-canvas__menuIcon{visibility:visible}.bi-mui-queryFlow-canvas__tableGroup.is-missing .bi-mui-queryFlow-canvas__table{stroke:#e62325;stroke-dasharray:4}.bi-mui-queryFlow-canvas__tableGroup.is-missing .bi-mui-queryFlow-canvas__menuIcon{visibility:hidden!important}.bi-mui-queryFlow-canvas__tableGroup.is-missing .bi-mui-queryFlow-canvas__menu{pointer-events:none}.bi-mui-queryFlow-canvas__tableGroup.has-errors .bi-mui-queryFlow-canvas__decorator,.bi-mui-queryFlow-canvas__tableGroup.has-errors .bi-mui-queryFlow-canvas__table{fill:#f7e6e6;stroke:#e62325}.bi-mui-queryFlow-canvas__tableGroup.has-errors .bi-mui-queryFlow-canvas__validationIcon{fill:#e62325}.bi-mui-queryFlow-canvas__tableGroup.has-warnings .bi-mui-queryFlow-canvas__decorator,.bi-mui-queryFlow-canvas__tableGroup.has-warnings .bi-mui-queryFlow-canvas__table{fill:#fbeaae;stroke:#fed500}.bi-mui-queryFlow-canvas__tableGroup.has-warnings .bi-mui-queryFlow-canvas__validationIcon{fill:#fed500}.bi-mui-queryFlow-canvas__tableGroup.is-selected .bi-mui-queryFlow-canvas__decoratedTable,.bi-mui-queryFlow-canvas__tableGroup.is-selected .bi-mui-queryFlow-canvas__decorator,.bi-mui-queryFlow-canvas__tableGroup.is-selected .bi-mui-queryFlow-canvas__table{fill:#e1ebf7}.bi-mui-queryFlow-canvas__tableGroup.is-selected .bi-mui-queryFlow-canvas__decorator,.bi-mui-queryFlow-canvas__tableGroup.is-selected .bi-mui-queryFlow-canvas__table{stroke:#2d74da;stroke-width:2px}.bi-mui-queryFlow-canvas__menuIcon{visibility:hidden;fill:#1f57a4}.bi-mui-queryFlow-canvas__menu{fill:transparent;cursor:pointer}.bi-mui-queryFlow-canvas__decorator{fill:#fff;stroke:#a6a5a6;stroke-width:1px}.bi-mui-queryFlow-canvas__decorator.is-clickable{cursor:pointer}.bi-mui-queryFlow-canvas__decoratorIcon{fill:#000}.bi-mui-queryFlow-canvas__path,.bi-mui-queryFlow-canvas__path__aligner{fill:none;stroke:#a6a5a6}.bi-mui-queryFlow-canvas__validation{fill:transparent;cursor:pointer}',""])},1871:function(e,t,r){"use strict";r.d(t,"a",function(){return y});var o,n,a=r(1),i=r.n(a),s=r(5),c=r(16),l=r(3),u=r(41),p=r(25);r(1872);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var b=Object(c.observer)(o=function(e){function t(){return e.apply(this,arguments)||this}return m(t,e),t.prototype.render=function(){var e=this.props,t=e.qs,r=e.index,o=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,["qs","index"]);return i.a.createElement(l.ListItem,d({},o,{"data-tid":function(e){return Object(p.a)("queryFlow",e)}("list-item-"+r)}),i.a.createElement(l.FlexLayout,null,i.a.createElement(l.FlexItem,{className:"bi-mui-queryFlowList__itemIcon"},i.a.createElement(l.SVGIcon,{icon:Object(u.e)(t)})),i.a.createElement(l.FlexItem,null,i.a.createElement(l.TruncatedText,{value:t.getLabel()}))))},t}(a.Component))||o,y=Object(s.e)(function(e){return{customTables:e.customTables,showContextMenu:e.showContextMenu,setCustomTable:e.setCustomTable,setSelection:e.setSelection}})(n=Object(c.observer)(n=function(e){function t(){for(var t,r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(t=e.call.apply(e,[this].concat(o))||this)._raf=void 0,t._itemRenderer=function(e,r){return i.a.createElement(b,d({qs:t.props.customTables[e]},r))},t._onSelectionChange=function(e){if(e){var r=t.props.customTables[e.index];t.setState({selection:r}),cancelAnimationFrame(t._raf),t._raf=requestAnimationFrame(function(){t.props.setCustomTable(r)})}},t._onMenu=function(e,r){t.props.setSelection([t.state.selection]),t.props.showContextMenu(e,r),cancelAnimationFrame(t._raf)},t}return m(t,e),t.prototype.render=function(){var e=this.props.customTables;return i.a.createElement(l.List,{className:"bi-mui-queryFlowList",clickSelection:!0,virtualized:!0,length:e.length,itemRenderer:this._itemRenderer,onSelectionChange:this._onSelectionChange,onMenu:this._onMenu,selectionMode:"single",listType:"uniform"})},t}(a.Component))||n)||n},1872:function(e,t,r){var o=r(1873);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0};r(36)(o,n);o.locals&&(e.exports=o.locals)},1873:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,".bi-mui-queryFlowList .ba-common-listItem-wrapper{border-bottom:1px solid}.bi-mui-queryFlowList .ba-common-listItem-wrapper:first-child{border-top:1px solid}.bi-mui-queryFlowList .ba-common-listItem{height:48px}.bi-mui-queryFlowList__itemIcon{padding-right:16px}.bi-mui-queryFlowList .ba-common-listItem-wrapper,.bi-mui-queryFlowList .ba-common-listItem-wrapper:first-child{border-color:#eaeaea}",""])},1874:function(e,t,r){var o=r(1875);"string"==typeof o&&(o=[[e.i,o,""]]);var n={hmr:!0,transform:void 0};r(36)(o,n);o.locals&&(e.exports=o.locals)},1875:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,".bi-mui-queryFlowView{overflow:hidden}.bi-mui-queryFlowView__header{border-bottom:1px solid;padding:8px 0}.bi-mui-queryFlowView__label{font-weight:700;margin-left:8px}.bi-mui-queryFlowView__startingView{padding:32px 80px 0;max-width:1000px!important;display:flex;height:100%}.bi-mui-queryFlowView__startViewHeader{padding-bottom:32px}.bi-mui-queryFlowView__startViewHeaderText{padding-top:8px}.bi-mui-queryFlowView__startViewButton{text-align:right}.bi-mui-queryFlowView .text-icon__body{padding:16px 0}.bi-mui-queryFlowView__header{border-color:#eaeaea}",""])},1876:function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return h});var o,n=r(0),a=r.n(n),i=r(6),s=r(5),c=r(1204),l=r.n(c),u=r(1896),p=r(41),d=r(4),m=r(80),b=r(1242);function y(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _(e,t,r,o,n){var a={};return Object.keys(o).forEach(function(e){a[e]=o[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,o){return o(e,t,r)||r},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var h=(_((o=function(e){function t(t,r){var o,n=r.querySubject;return(o=e.apply(this,arguments)||this).querySubject=void 0,o._precursorCache=new WeakMap,o.querySubject=n,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.openBuildQS=function(){return this.provider.openBuildQS({elements:[this.provider.getModule()],edit:!1})},r.goBack=function(){this.provider.setSubject(null)},r.generateDataForLayout=function(e){var t=this,r={id:"QueryFlowLayoutData",layoutOptions:{"elk.algorithm":"layered","elk.layered.mergeEdges":!0,"elk.direction":"RIGHT","elk.edgeRouting":"UNDEFINED"},children:[],edges:[]};return e&&e.children&&(r.children=r.children.concat(e.children.map(function(e){var r=e.qs,o=e.id,n=a.a.QueryFlowUtil.extractFilters(r),i=n[0],s=n[1],c=a.a.QueryFlowUtil.hasAggregate(r),l=b.c+b.b/2,u=Boolean(i.length||s.length||c),d=t._precursorCache.get(r);return{id:o,label:r.getLabel(),icon:Object(p.e)(r),qs:r,isHidden:r.isHidden(),screenTip:r.getScreenTip(),errors:Object(m.getHighestSeverityErrorInfo)(r),preFilters:i,postFilters:s,hasDecorators:u,isMissing:r.getInstanceType()===a.a.InstanceType.MISSING,hasAggregate:c,isCustomTable:!(!d||!d.length),width:b.e+Number(u)*(Number(Boolean(i.length))*l+Number(Boolean(s.length))*l+Number(Boolean(c))*l+b.b),height:b.d+b.b*Number(u)}}))),e&&e.edges&&(r.edges=e.edges.map(function(e){return{id:e.id||e.sources[0].id+"_"+e.targets[0].id,sources:e.sources.map(function(e){return e.id}),targets:e.targets.map(function(e){return e.id})}})),r},r.prepareDataForLayout=function(){var e=this,t=0,r=function(){return"n"+t},o={children:[{qs:this.querySubject,id:r()}],edges:[]};return function n(i){var s=a.a.QueryFlowUtil.getPrecursors(i);if(e._precursorCache.set(i,s),s&&s.length){var c=r();s.forEach(function(e){t+=1,o.edges.push({sources:[{id:r(),qs:e}],targets:[{id:c,qs:i}]}),o.children.push({id:r(),qs:e}),n(e)})}}(this.querySubject),o},r.setSelection=function(e){return this.provider.setSelection(e)},r.showContextMenu=function(e,t,r){return void 0===r&&(r=this.selection),this.provider.showContextMenu(e,t,r,document.activeElement)},r.manageFilters=function(){this.provider.manageFilters()},r.manageAdvancedProperties=function(){this.provider.manageAdvancedProperties()},r.setCustomTable=function(e){this.provider.setSubject(e)},r.showValidationResults=function(){var e;(e=this.provider).showValidationResults.apply(e,arguments)},r.hideContextMenu=function(){this.provider.hideContextMenu()},function(e,t,r){t&&y(e.prototype,t),r&&y(e,r)}(t,[{key:"layoutDataPromise",get:function(){var e=new l.a;return Object(u.a)(e.layout(this.generateDataForLayout(this.prepareDataForLayout())))}},{key:"layoutData",get:function(){return this.layoutDataPromise.value||null}},{key:"selection",get:function(){return this.provider.getSelection()}},{key:"customTables",get:function(){return this.provider.getModule().getQuerySubject().filter(function(e){return!Object(d.isPartOfPackage)(e)&&a.a.QueryFlowUtil.getPrecursors(e).length>0})}}]),t}(s.a)).prototype,"openBuildQS",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"openBuildQS"),o.prototype),_(o.prototype,"goBack",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"goBack"),o.prototype),_(o.prototype,"layoutDataPromise",[i.computed],Object.getOwnPropertyDescriptor(o.prototype,"layoutDataPromise"),o.prototype),_(o.prototype,"layoutData",[i.computed],Object.getOwnPropertyDescriptor(o.prototype,"layoutData"),o.prototype),_(o.prototype,"selection",[i.computed],Object.getOwnPropertyDescriptor(o.prototype,"selection"),o.prototype),_(o.prototype,"setSelection",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"setSelection"),o.prototype),_(o.prototype,"showContextMenu",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"showContextMenu"),o.prototype),_(o.prototype,"manageFilters",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"manageFilters"),o.prototype),_(o.prototype,"manageAdvancedProperties",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"manageAdvancedProperties"),o.prototype),_(o.prototype,"setCustomTable",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"setCustomTable"),o.prototype),_(o.prototype,"showValidationResults",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"showValidationResults"),o.prototype),_(o.prototype,"hideContextMenu",[s.c],Object.getOwnPropertyDescriptor(o.prototype,"hideContextMenu"),o.prototype),_(o.prototype,"customTables",[i.computed],Object.getOwnPropertyDescriptor(o.prototype,"customTables"),o.prototype),o)},719:function(e,t,r){"use strict";r.r(t);var o=r(1864),n=r(1876);t.default={"components/QueryFlowView":o,"stores/QueryFlowStore":n}}}]);
- //# sourceMappingURL=queryFlow.js.map
|