
META-INF.resources.butterfaces-dist-bundle-js.butterfaces-ts-bundle.min.js Maven / Gradle / Ivy
The newest version!
!function(r){var e=(t.sendRequest=function(e,t,n,i,o){jsf.ajax.request(e,t,{"javax.faces.behavior.event":t,render:n.join(", "),params:i,"butterfaces.params":i,onevent:function(e){o&&r.Ajax.disableElementsOnRequest(e,n)}})},t.disableElementsOnRequest=function(e,t){switch(e.status){case"begin":for(var n=0;n").addClass("butter-component-expandable-readonly-container").insertAfter(e),e=$("").addClass("input-group-text glyphicon glyphicon-resize-full");this.originalElement.appendTo(n),$("").addClass("butter-component-expandable-readonly-icon").append(e).appendTo(n)},a.prototype.createGhostElement=function(){return $("")},a.prototype.isExpansionEventIgnored=function(e){return!1},a.prototype.onGhostElementCreated=function(){},a.prototype.onGhostElementCollapsed=function(e){},a.prototype.transferValueToGhostElement=function(){$("").html(this.originalElement.html()).addClass("butter-component-expandable-ghost-readonlyContent").appendTo(this.ghostElement)},a);function a(e){e=o.call(this,e)||this;return e.originalElement=e.rootElement.find(".butter-component-value-readonly"),e.rearrangeOriginalElementStructure(),e}e.DivExpandable=r;var s,t=(__extends(l,s=t),l.prototype.addInputGroupAddon=function(){this.originalElement.addClass("form-control").parent().addClass("input-group"),$('').insertAfter(this.originalElement)},l.prototype.handleBlurEvent=function(e){this.blockBlurEventOnOriginal&&e.preventDefault()},l.prototype.createGhostElement=function(){return $("");n.attr("data-overlay-uuid",t),"body"===o.selector?i.addClass("overlay-body"):i.offset(n.offset()).width(n.outerWidth()).height(n.outerHeight()).addClass("overlay-body-child").css({position:"absolute"}),$("body").append(i),o.isTransparentBlockingOverlayActive&&i.show(),window.setTimeout(function(){o.isHiding||o.isTransparentBlockingOverlayActive||i.show(),o.isHiding||i.stop(!0).animate({opacity:1},300,function(){})},o.delay)})},t.prototype.hide=function(){var e=$(this.selector);this.isHiding=!0,r.Overlay.fadeOutDetachtedOverlays(),e.each(function(e,t){var n=$(t),t=n.attr("data-overlay-uuid");!r.ObjectStatics.isNullOrUndefined(t)&&0":">",'"':""","'":"'","/":"/"},e.replace(/[&<>"'\/]/g,function(e){return t[e]}))};var t},entryRenderingFunction:function(e){return""+e.title+""}})},e.createTrivialTreeComponent=function(e,n){return new TrivialComponents.TrivialTree(e,{searchBarMode:n.searchBarMode,selectedEntryId:n.selectedEntryId,performanceOptimizationSettings:n.performanceOptimizationSettings,entryRenderingFunction:function(e,t){return Mustache.render(n.templates[Math.min(n.templates.length-1,t)],e)},spinnerTemplate:n.spinnerTemplate,noEntriesTemplate:n.noEntriesTemplate,entries:n.entries,queryFunction:TrivialComponents.customTreeQueryFunctionFactory(n.entries,"children","expanded",function(e,t,n){var i=e.title&&0
© 2015 - 2025 Weber Informatics LLC | Privacy Policy