PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / trunk
Tracking Code Manager vtrunk
trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0
tracking-code-manager / assets / js / ace / ext-searchbox.js
tracking-code-manager / assets / js / ace Last commit date
snippets 4 years ago ace.js 4 years ago ext-beautify.js 4 years ago ext-code_lens.js 4 years ago ext-elastic_tabstops_lite.js 4 years ago ext-emmet.js 4 years ago ext-error_marker.js 4 years ago ext-hardwrap.js 4 years ago ext-keybinding_menu.js 4 years ago ext-language_tools.js 4 years ago ext-linking.js 4 years ago ext-modelist.js 4 years ago ext-options.js 4 years ago ext-prompt.js 4 years ago ext-rtl.js 4 years ago ext-searchbox.js 4 years ago ext-settings_menu.js 4 years ago ext-spellcheck.js 4 years ago ext-split.js 4 years ago ext-static_highlight.js 4 years ago ext-statusbar.js 4 years ago ext-textarea.js 4 years ago ext-themelist.js 4 years ago ext-whitespace.js 4 years ago keybinding-emacs.js 4 years ago keybinding-sublime.js 4 years ago keybinding-vim.js 4 years ago keybinding-vscode.js 4 years ago mode-abap.js 4 years ago mode-abc.js 4 years ago mode-actionscript.js 4 years ago mode-ada.js 4 years ago mode-alda.js 4 years ago mode-apache_conf.js 4 years ago mode-apex.js 4 years ago mode-applescript.js 4 years ago mode-aql.js 4 years ago mode-asciidoc.js 4 years ago mode-asl.js 4 years ago mode-assembly_x86.js 4 years ago mode-autohotkey.js 4 years ago mode-batchfile.js 4 years ago mode-c9search.js 4 years ago mode-c_cpp.js 4 years ago mode-cirru.js 4 years ago mode-clojure.js 4 years ago mode-cobol.js 4 years ago mode-coffee.js 4 years ago mode-coldfusion.js 4 years ago mode-crystal.js 4 years ago mode-csharp.js 4 years ago mode-csound_document.js 4 years ago mode-csound_orchestra.js 4 years ago mode-csound_score.js 4 years ago mode-csp.js 4 years ago mode-css.js 4 years ago mode-curly.js 4 years ago mode-d.js 4 years ago mode-dart.js 4 years ago mode-diff.js 4 years ago mode-django.js 4 years ago mode-dockerfile.js 4 years ago mode-dot.js 4 years ago mode-drools.js 4 years ago mode-edifact.js 4 years ago mode-eiffel.js 4 years ago mode-ejs.js 4 years ago mode-elixir.js 4 years ago mode-elm.js 4 years ago mode-erlang.js 4 years ago mode-forth.js 4 years ago mode-fortran.js 4 years ago mode-fsharp.js 4 years ago mode-fsl.js 4 years ago mode-ftl.js 4 years ago mode-gcode.js 4 years ago mode-gherkin.js 4 years ago mode-gitignore.js 4 years ago mode-glsl.js 4 years ago mode-gobstones.js 4 years ago mode-golang.js 4 years ago mode-graphqlschema.js 4 years ago mode-groovy.js 4 years ago mode-haml.js 4 years ago mode-handlebars.js 4 years ago mode-haskell.js 4 years ago mode-haskell_cabal.js 4 years ago mode-haxe.js 4 years ago mode-hjson.js 4 years ago mode-html.js 4 years ago mode-html_elixir.js 4 years ago mode-html_ruby.js 4 years ago mode-ini.js 4 years ago mode-io.js 4 years ago mode-ion.js 4 years ago mode-jack.js 4 years ago mode-jade.js 4 years ago mode-java.js 4 years ago mode-javascript.js 4 years ago mode-json.js 4 years ago mode-json5.js 4 years ago mode-jsoniq.js 4 years ago mode-jsp.js 4 years ago mode-jssm.js 4 years ago mode-jsx.js 4 years ago mode-julia.js 4 years ago mode-kotlin.js 4 years ago mode-latex.js 4 years ago mode-latte.js 4 years ago mode-less.js 4 years ago mode-liquid.js 4 years ago mode-lisp.js 4 years ago mode-livescript.js 4 years ago mode-logiql.js 4 years ago mode-logtalk.js 4 years ago mode-lsl.js 4 years ago mode-lua.js 4 years ago mode-luapage.js 4 years ago mode-lucene.js 4 years ago mode-makefile.js 4 years ago mode-markdown.js 4 years ago mode-mask.js 4 years ago mode-matlab.js 4 years ago mode-maze.js 4 years ago mode-mediawiki.js 4 years ago mode-mel.js 4 years ago mode-mips.js 4 years ago mode-mixal.js 4 years ago mode-mushcode.js 4 years ago mode-mysql.js 4 years ago mode-nginx.js 4 years ago mode-nim.js 4 years ago mode-nix.js 4 years ago mode-nsis.js 4 years ago mode-nunjucks.js 4 years ago mode-objectivec.js 4 years ago mode-ocaml.js 4 years ago mode-partiql.js 4 years ago mode-pascal.js 4 years ago mode-perl.js 4 years ago mode-pgsql.js 4 years ago mode-php.js 4 years ago mode-php_laravel_blade.js 4 years ago mode-pig.js 4 years ago mode-plain_text.js 4 years ago mode-powershell.js 4 years ago mode-praat.js 4 years ago mode-prisma.js 4 years ago mode-prolog.js 4 years ago mode-properties.js 4 years ago mode-protobuf.js 4 years ago mode-puppet.js 4 years ago mode-python.js 4 years ago mode-qml.js 4 years ago mode-r.js 4 years ago mode-raku.js 4 years ago mode-razor.js 4 years ago mode-rdoc.js 4 years ago mode-red.js 4 years ago mode-redshift.js 4 years ago mode-rhtml.js 4 years ago mode-robot.js 4 years ago mode-rst.js 4 years ago mode-ruby.js 4 years ago mode-rust.js 4 years ago mode-sac.js 4 years ago mode-sass.js 4 years ago mode-scad.js 4 years ago mode-scala.js 4 years ago mode-scheme.js 4 years ago mode-scrypt.js 4 years ago mode-scss.js 4 years ago mode-sh.js 4 years ago mode-sjs.js 4 years ago mode-slim.js 4 years ago mode-smarty.js 4 years ago mode-smithy.js 4 years ago mode-snippets.js 4 years ago mode-soy_template.js 4 years ago mode-space.js 4 years ago mode-sparql.js 4 years ago mode-sql.js 4 years ago mode-sqlserver.js 4 years ago mode-stylus.js 4 years ago mode-svg.js 4 years ago mode-swift.js 4 years ago mode-tcl.js 4 years ago mode-terraform.js 4 years ago mode-tex.js 4 years ago mode-text.js 4 years ago mode-textile.js 4 years ago mode-toml.js 4 years ago mode-tsx.js 4 years ago mode-turtle.js 4 years ago mode-twig.js 4 years ago mode-typescript.js 4 years ago mode-vala.js 4 years ago mode-vbscript.js 4 years ago mode-velocity.js 4 years ago mode-verilog.js 4 years ago mode-vhdl.js 4 years ago mode-visualforce.js 4 years ago mode-wollok.js 4 years ago mode-xml.js 4 years ago mode-xquery.js 4 years ago mode-yaml.js 4 years ago mode-zeek.js 4 years ago theme-ambiance.js 4 years ago theme-chaos.js 4 years ago theme-chrome.js 4 years ago theme-cloud9_day.js 4 years ago theme-cloud9_night.js 4 years ago theme-cloud9_night_low_color.js 4 years ago theme-clouds.js 4 years ago theme-clouds_midnight.js 4 years ago theme-cobalt.js 4 years ago theme-crimson_editor.js 4 years ago theme-dawn.js 4 years ago theme-dracula.js 4 years ago theme-dreamweaver.js 4 years ago theme-eclipse.js 4 years ago theme-github.js 4 years ago theme-gob.js 4 years ago theme-gruvbox.js 4 years ago theme-gruvbox_dark_hard.js 4 years ago theme-gruvbox_light_hard.js 4 years ago theme-idle_fingers.js 4 years ago theme-iplastic.js 4 years ago theme-katzenmilch.js 4 years ago theme-kr_theme.js 4 years ago theme-kuroir.js 4 years ago theme-merbivore.js 4 years ago theme-merbivore_soft.js 4 years ago theme-mono_industrial.js 4 years ago theme-monokai.js 4 years ago theme-nord_dark.js 4 years ago theme-one_dark.js 4 years ago theme-pastel_on_dark.js 4 years ago theme-solarized_dark.js 4 years ago theme-solarized_light.js 4 years ago theme-sqlserver.js 4 years ago theme-terminal.js 4 years ago theme-textmate.js 4 years ago theme-tomorrow.js 4 years ago theme-tomorrow_night.js 4 years ago theme-tomorrow_night_blue.js 4 years ago theme-tomorrow_night_bright.js 4 years ago theme-tomorrow_night_eighties.js 4 years ago theme-twilight.js 4 years ago theme-vibrant_ink.js 4 years ago theme-xcode.js 4 years ago worker-base.js 4 years ago worker-coffee.js 4 years ago worker-css.js 4 years ago worker-html.js 4 years ago worker-javascript.js 4 years ago worker-json.js 4 years ago worker-lua.js 4 years ago worker-php.js 4 years ago worker-xml.js 4 years ago worker-xquery.js 4 years ago worker-yaml.js 4 years ago
ext-searchbox.js
8 lines
1 ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),s=e("../lib/event"),o='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',u=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),f=999;r.importCssString(o,"ace_searchbox",!1);var l=function(e,t,n){var i=r.createElement("div");r.buildDom(["div",{"class":"ace_search right"},["span",{action:"hide","class":"ace_searchbtn_close"}],["div",{"class":"ace_search_form"},["input",{"class":"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev","class":"ace_searchbtn prev"},"\u200b"],["span",{action:"findNext","class":"ace_searchbtn next"},"\u200b"],["span",{action:"findAll","class":"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{"class":"ace_replace_form"},["input",{"class":"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext","class":"ace_searchbtn"},"Replace"],["span",{action:"replaceAll","class":"ace_searchbtn"},"All"]],["div",{"class":"ace_search_options"},["span",{action:"toggleReplace","class":"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{"class":"ace_search_counter"}],["span",{action:"toggleRegexpMode","class":"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive","class":"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords","class":"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection","class":"ace_button",title:"Search In Selection"},"S"]]],i),this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),r.importCssString(o,"ace_searchbox",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;s.addListener(e,"mousedown",function(e){setTimeout(function(){t.activeInput.focus()},0),s.stopPropagation(e)}),s.addListener(e,"click",function(e){var n=e.target||e.srcElement,r=n.getAttribute("action");r&&t[r]?t[r]():t.$searchBarKb.commands[r]&&t.$searchBarKb.commands[r].exec(t),s.stopPropagation(e)}),s.addCommandKeyListener(e,function(e,n,r){var i=a.keyCodeToString(r),o=t.$searchBarKb.findKeyCommand(n,i);o&&o.exec&&(o.exec(t),s.stopEvent(e))}),this.$onChange=i.delayedCall(function(){t.find(!1,!1)}),s.addListener(this.searchInput,"input",function(){t.$onChange.schedule(20)}),s.addListener(this.searchInput,"focus",function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()}),s.addListener(this.replaceInput,"focus",function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()})},this.$closeSearchBarKb=new u([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new u,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){if(e.editor.getReadOnly())return;e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus()},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange}),s=!i&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",s),this.editor._emit("findSearchBox",{match:!s}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,r=0;if(t){var i=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),s=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(s-=e.session.doc.positionToIndex(this.searchRange.start));var o=t.lastIndex=0,u;while(u=t.exec(i)){n++,o=u.index,o<=s&&r++;if(n>f)break;if(!u[0]){t.lastIndex=o+=1;if(o>=i.length)break}}}this.searchCounter.textContent=r+" of "+(n>f?f+"+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),t=!e&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){var n=e.searchBox||new l(e);n.show(e.session.getTextRange(),t)}}); (function() {
2 ace.require(["ace/ext/searchbox"], function(m) {
3 if (typeof module == "object" && typeof exports == "object" && module) {
4 module.exports = m;
5 }
6 });
7 })();
8