All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.fd40b62490e412d27bc67e660aacae19.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace"],(function(require,exports,e){"use strict";var t=require("../lib/event"),i=require("../lib/useragent"),n=(require("../lib/net"),require("../ace"));e.exports=exports=n;var o=function(e,t,i){var n=e.style[i];return n||(n=window.getComputedStyle?window.getComputedStyle(e,"").getPropertyValue(i):e.currentStyle[i]),n&&"auto"!=n&&"intrinsic"!=n||(n=t.style[i]),n};function r(e,t){for(var i in t)e.style[i]=t[i]}exports.transformTextarea=function(e,a){var s,l=e.autofocus||document.activeElement==e,c=function(e,i){if("textarea"!=e.type)throw new Error("Textarea required!");var n=e.parentNode,r=document.createElement("div"),a=function(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach((function(i){t+=i+":"+o(e,r,i)+";"}));var i=o(e,r,"width")||e.clientWidth+"px",n=o(e,r,"height")||e.clientHeight+"px";t+="height:"+n+";width:"+i+";",t+="display:inline-block;",r.setAttribute("style",t)};for(t.addListener(window,"resize",a),a(),n.insertBefore(r,e.nextSibling);n!==document;){if("FORM"===n.tagName.toUpperCase()){var s=n.onsubmit;n.onsubmit=function(t){e.value=i(),s&&s.call(this,t)};break}n=n.parentNode}return r}(e,(function(){return s.getValue()}));e.style.display="none",c.style.background="white";var u=document.createElement("div");r(u,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),c.appendChild(u);var d=document.createElement("div");r(d,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var p=document.createElement("div"),h={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};i.isOldIE?h.backgroundColor="#333":h.backgroundColor="rgba(0, 0, 0, 0.6)",r(p,h),c.appendChild(p),a=a||exports.defaultOptions;var f=n.edit(u);(s=f.getSession()).setValue(e.value||e.innerHTML),l&&f.focus(),c.appendChild(d),function(e,t,i,n,o){e.getSession(),e.renderer;function r(e){return"true"===e||1==e}e.setDisplaySettings=function(t){null==t&&(t="none"==i.style.display),t?(i.style.display="block",i.hideButton.focus(),e.on("focus",(function t(){e.removeListener("focus",t),i.style.display="none"}))):e.focus()},e.$setOption=e.setOption,e.$getOption=e.getOption,e.setOption=function(t,i){switch(t){case"mode":e.$setOption("mode","ace/mode/"+i);break;case"theme":e.$setOption("theme","ace/theme/"+i);break;case"keybindings":switch(i){case"vim":e.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":e.setKeyboardHandler("ace/keyboard/emacs");break;default:e.setKeyboardHandler(null)}break;case"wrap":case"fontSize":e.$setOption(t,i);break;default:e.$setOption(t,r(i))}},e.getOption=function(t){switch(t){case"mode":return e.$getOption("mode").substr("ace/mode/".length);case"theme":return e.$getOption("theme").substr("ace/theme/".length);case"keybindings":var i=e.getKeyboardHandler();switch(i&&i.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace"}break;default:return e.$getOption(t)}},e.setOptions(o)}(f,0,p,0,a),function(e,i,n){var o=null,r={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},a={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:o,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:o,useSoftTabs:o,showInvisibles:o},s=[];function l(e,t,i,n){if(i){for(var o in e.push("")}else e.push("")}for(var c in s.push(""),exports.defaultOptions)s.push(""),s.push("");s.push("
SettingValue
",r[c],""),l(s,c,a[c],n.getOption(c)),s.push("
"),e.innerHTML=s.join("");for(var u=function(e){var t=e.currentTarget;n.setOption(t.title,t.value)},d=function(e){var t=e.currentTarget;n.setOption(t.title,t.checked)},p=e.getElementsByTagName("select"),h=0;h




© 2015 - 2024 Weber Informatics LLC | Privacy Policy