UNPKG

graphdb-workbench

Version:
1 lines 2.74 kB
var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.d(t,{k:()=>c});var u={guideBlockName:"visual-graph-expand",getSteps:function(e,t){var r=t.GuideUtils,n=t.$rootScope,i=t.$route,u='.node-wrapper[id^="'.concat(e.iri,'"] circle');return[{guideBlockName:"clickable-element",options:o({title:"guide.step_plugin.visual-graph-expand.title",content:"guide.step_plugin.visual-graph-expand.content",url:"graphs-visualizations",canBePaused:!1,class:"visual-graph-expand-node",elementSelector:u,advanceOn:void 0,onNextClick:function(e){r.graphVizExpandNode(u),e.getCurrentStep().hide(),r.awaitAlphaDropD3(null,n)().then(function(){e.next()})},show:function(e){return function(){$(u).on("dblclick.onNodeDbClicked",function(e){return function(){r.graphVizExpandNode(u),e.getCurrentStep().hide(),r.awaitAlphaDropD3(null,n)().then(function(){e.next()})}}(e))}},hide:function(){return function(){$(u).off("dblclick.onNodeDbClicked")}},beforeShowPromise:function(){return i.reload(),r.deferredShow(50)().then(function(){return r.awaitAlphaDropD3(u,n)()})},initPreviousStep:function(e,t){var o=e.ShepherdService.getPreviousStepFromHistory(t);return o.options.initPreviousStep(e,o.id).then(function(){return e.ShepherdService.getCurrentStepId()===t?Promise.resolve:(r.graphVizExpandNode(u),r.deferredShow(50)().then(function(){return r.awaitAlphaDropD3(null,n)()}))})}},e)}]}};function c(e){e.add("guide.step",u)}const a=t.k;export{a as register};