UNPKG

graphdb-workbench

Version:
2 lines 6.21 kB
export const __webpack_id__=6851;export const __webpack_ids__=[6851];export const __webpack_modules__={6851:(e,t,i)=>{i.r(t),i.d(t,{loader_component:()=>a});var r=i(76128),s=i(40143);const a=class{constructor(e){(0,r.r)(this,e),this.timeFormattingService=void 0,this.showQueryProgress=!1,this.message=void 0,this.additionalMessage="",this.size=void 0,this.hidden=void 0,this.queryProgress=""}startInterval(){this.updateState()}updateState(){this.hidden?(this.clearLoader(),this.hostElement.classList.add("hidden")):(this.hostElement.classList.remove("hidden"),this.showQueryProgress&&!this.updateLoaderInterval&&(this.queryProgress="",this.startTime=Date.now(),this.updateLoaderMessage(),this.updateLoaderInterval=setInterval(()=>{this.updateLoaderMessage()},1e3)))}updateLoaderMessage(){if(this.showQueryProgress){const e=Date.now()-this.startTime;e/1e3>10&&(this.queryProgress=a.EMPTY_QUERY_PROGRESS+this.timeFormattingService.getHumanReadableSeconds(e))}else this.clearLoader()}componentDidLoad(){this.updateState()}disconnectedCallback(){this.clearLoader()}clearLoader(){this.updateLoaderInterval&&(clearInterval(this.updateLoaderInterval),this.updateLoaderInterval=null),this.queryProgress=""}render(){return(0,r.h)(r.H,{class:"ontotext-yasgui-loader hidden"},(0,r.h)("slot",null,!this.hidden&&(0,r.h)("div",{class:"loader-component"},(0,r.h)("div",{innerHTML:s.S.getLoaderSvgTag(this.size)}),(0,r.h)("div",null,this.message," ",this.queryProgress),(0,r.h)("div",null,this.additionalMessage))))}get hostElement(){return(0,r.g)(this)}static get watchers(){return{hidden:["startInterval"]}}};a.EMPTY_QUERY_PROGRESS="... ",a.style=":host{display:block}:host .loader-component{text-align:center}"},40143:(e,t,i)=>{i.d(t,{S:()=>r});class r{static getLoaderSvgTag(e="70"){return`<svg height=${e} width=${e} xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" preserveAspectRatio="xMinYMin" viewBox="0 0 50 50" id="svg2" version="1.1" inkscape:version="0.48.0 r9654" sodipodi:docname="namesvg.svg"><circle cx="21.5" cy="7.5" r="1.5" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0s" values="1.5; 3; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5" attributeType="XML" attributeName="r"/></circle><circle cx="31" cy="10" r="4" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.15s" values="4; 8; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4" attributeType="XML" attributeName="r"/></circle><circle cx="37" cy="15" r="2" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.3s" values="2; 4; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2" attributeType="XML" attributeName="r"/></circle><circle cx="40.5" cy="23.5" r="4.5" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.45s" values="4.5; 9; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5; 4.5" attributeType="XML" attributeName="r"/></circle><circle cx="39" cy="33" r="3" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.6s" values="3; 6; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3" attributeType="XML" attributeName="r"/></circle><circle cx="34.5" cy="38.5" r="1.5" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.75s" values="1.5; 3; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5; 1.5" attributeType="XML" attributeName="r"/></circle><circle cx="29" cy="42" r="2" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="0.9s" values="2; 4; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2" attributeType="XML" attributeName="r"/></circle><circle cx="21.5" cy="42.5" r="2.5" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.05s" values="2.5; 5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5" attributeType="XML" attributeName="r"/></circle><circle cx="12" cy="39" r="4" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.2s" values="4; 8; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4" attributeType="XML" attributeName="r"/></circle><circle cx="7" cy="32" r="2" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.35s" values="2; 4; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2" attributeType="XML" attributeName="r"/></circle><circle cx="5.5" cy="25.5" r="2.5" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.5s" values="2.5; 5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5; 2.5" attributeType="XML" attributeName="r"/></circle><circle cx="8" cy="16" r="4" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.65s" values="4; 8; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4" attributeType="XML" attributeName="r"/></circle><circle cx="14" cy="10" r="3" fill="#ff3900"><animate repeatCount="indefinite" dur="2s" begin="1.8s" values="3; 6; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3" attributeType="XML" attributeName="r"/></circle></svg>`}static getPivotTableIconSvgTag(){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">\n <path d="M400-640v-200h360q33 0 56.5 23.5T840-760v120H400ZM200-120q-33 0-56.5-23.5T120-200v-360h200v440H200Zm-80-520v-120q0-33 23.5-56.5T200-840h120v200H120ZM520-80 360-240l160-160 56 56-62 64h86q33 0 56.5-23.5T680-360v-88l-64 64-56-56 160-160 160 160-56 56-64-64v88q0 66-47 113t-113 47h-86l62 64-56 56Z"/>\n </svg>'}static getYasrChartPluginIcon(){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">\n <path d="M200-120q-33 0-56.5-23.5T120-200v-640h80v640h640v80H200Zm40-120v-360h160v360H240Zm200 0v-560h160v560H440Zm200 0v-200h160v200H640Z"/>\n </svg>'}static getPivotTableValueIcon(e=14,t=14){return`<svg xmlns="http://www.w3.org/2000/svg" height="${e}" viewBox="0 -960 960 960" width="${t}">\n <path d="M480-80 310-250l57-57 73 73v-206H235l73 72-58 58L80-480l169-169 57 57-72 72h206v-206l-73 73-57-57 170-170 170 170-57 57-73-73v206h205l-73-72 58-58 170 170-170 170-57-57 73-73H520v205l72-73 58 58L480-80Z"/>\n </svg>`}}}}; //# sourceMappingURL=6851.8871c4ba436a2092b46f.bundle.js.map