PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / 2.4.0
Tracking Code Manager v2.4.0
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 1 year ago ace.js 1 year ago ext-beautify.js 1 year ago ext-code_lens.js 1 year ago ext-elastic_tabstops_lite.js 1 year ago ext-emmet.js 1 year ago ext-error_marker.js 1 year ago ext-hardwrap.js 1 year ago ext-keybinding_menu.js 1 year ago ext-language_tools.js 1 year ago ext-linking.js 1 year ago ext-modelist.js 1 year ago ext-options.js 1 year ago ext-prompt.js 1 year ago ext-rtl.js 1 year ago ext-searchbox.js 1 year ago ext-settings_menu.js 1 year ago ext-spellcheck.js 1 year ago ext-split.js 1 year ago ext-static_highlight.js 1 year ago ext-statusbar.js 1 year ago ext-textarea.js 1 year ago ext-themelist.js 1 year ago ext-whitespace.js 1 year ago keybinding-emacs.js 1 year ago keybinding-sublime.js 1 year ago keybinding-vim.js 1 year ago keybinding-vscode.js 1 year ago mode-abap.js 1 year ago mode-abc.js 1 year ago mode-actionscript.js 1 year ago mode-ada.js 1 year ago mode-alda.js 1 year ago mode-apache_conf.js 1 year ago mode-apex.js 1 year ago mode-applescript.js 1 year ago mode-aql.js 1 year ago mode-asciidoc.js 1 year ago mode-asl.js 1 year ago mode-assembly_x86.js 1 year ago mode-autohotkey.js 1 year ago mode-batchfile.js 1 year ago mode-c9search.js 1 year ago mode-c_cpp.js 1 year ago mode-cirru.js 1 year ago mode-clojure.js 1 year ago mode-cobol.js 1 year ago mode-coffee.js 1 year ago mode-coldfusion.js 1 year ago mode-crystal.js 1 year ago mode-csharp.js 1 year ago mode-csound_document.js 1 year ago mode-csound_orchestra.js 1 year ago mode-csound_score.js 1 year ago mode-csp.js 1 year ago mode-css.js 1 year ago mode-curly.js 1 year ago mode-d.js 1 year ago mode-dart.js 1 year ago mode-diff.js 1 year ago mode-django.js 1 year ago mode-dockerfile.js 1 year ago mode-dot.js 1 year ago mode-drools.js 1 year ago mode-edifact.js 1 year ago mode-eiffel.js 1 year ago mode-ejs.js 1 year ago mode-elixir.js 1 year ago mode-elm.js 1 year ago mode-erlang.js 1 year ago mode-forth.js 1 year ago mode-fortran.js 1 year ago mode-fsharp.js 1 year ago mode-fsl.js 1 year ago mode-ftl.js 1 year ago mode-gcode.js 1 year ago mode-gherkin.js 1 year ago mode-gitignore.js 1 year ago mode-glsl.js 1 year ago mode-gobstones.js 1 year ago mode-golang.js 1 year ago mode-graphqlschema.js 1 year ago mode-groovy.js 1 year ago mode-haml.js 1 year ago mode-handlebars.js 1 year ago mode-haskell.js 1 year ago mode-haskell_cabal.js 1 year ago mode-haxe.js 1 year ago mode-hjson.js 1 year ago mode-html.js 1 year ago mode-html_elixir.js 1 year ago mode-html_ruby.js 1 year ago mode-ini.js 1 year ago mode-io.js 1 year ago mode-ion.js 1 year ago mode-jack.js 1 year ago mode-jade.js 1 year ago mode-java.js 1 year ago mode-javascript.js 1 year ago mode-json.js 1 year ago mode-json5.js 1 year ago mode-jsoniq.js 1 year ago mode-jsp.js 1 year ago mode-jssm.js 1 year ago mode-jsx.js 1 year ago mode-julia.js 1 year ago mode-kotlin.js 1 year ago mode-latex.js 1 year ago mode-latte.js 1 year ago mode-less.js 1 year ago mode-liquid.js 1 year ago mode-lisp.js 1 year ago mode-livescript.js 1 year ago mode-logiql.js 1 year ago mode-logtalk.js 1 year ago mode-lsl.js 1 year ago mode-lua.js 1 year ago mode-luapage.js 1 year ago mode-lucene.js 1 year ago mode-makefile.js 1 year ago mode-markdown.js 1 year ago mode-mask.js 1 year ago mode-matlab.js 1 year ago mode-maze.js 1 year ago mode-mediawiki.js 1 year ago mode-mel.js 1 year ago mode-mips.js 1 year ago mode-mixal.js 1 year ago mode-mushcode.js 1 year ago mode-mysql.js 1 year ago mode-nginx.js 1 year ago mode-nim.js 1 year ago mode-nix.js 1 year ago mode-nsis.js 1 year ago mode-nunjucks.js 1 year ago mode-objectivec.js 1 year ago mode-ocaml.js 1 year ago mode-partiql.js 1 year ago mode-pascal.js 1 year ago mode-perl.js 1 year ago mode-pgsql.js 1 year ago mode-php.js 1 year ago mode-php_laravel_blade.js 1 year ago mode-pig.js 1 year ago mode-plain_text.js 1 year ago mode-powershell.js 1 year ago mode-praat.js 1 year ago mode-prisma.js 1 year ago mode-prolog.js 1 year ago mode-properties.js 1 year ago mode-protobuf.js 1 year ago mode-puppet.js 1 year ago mode-python.js 1 year ago mode-qml.js 1 year ago mode-r.js 1 year ago mode-raku.js 1 year ago mode-razor.js 1 year ago mode-rdoc.js 1 year ago mode-red.js 1 year ago mode-redshift.js 1 year ago mode-rhtml.js 1 year ago mode-robot.js 1 year ago mode-rst.js 1 year ago mode-ruby.js 1 year ago mode-rust.js 1 year ago mode-sac.js 1 year ago mode-sass.js 1 year ago mode-scad.js 1 year ago mode-scala.js 1 year ago mode-scheme.js 1 year ago mode-scrypt.js 1 year ago mode-scss.js 1 year ago mode-sh.js 1 year ago mode-sjs.js 1 year ago mode-slim.js 1 year ago mode-smarty.js 1 year ago mode-smithy.js 1 year ago mode-snippets.js 1 year ago mode-soy_template.js 1 year ago mode-space.js 1 year ago mode-sparql.js 1 year ago mode-sql.js 1 year ago mode-sqlserver.js 1 year ago mode-stylus.js 1 year ago mode-svg.js 1 year ago mode-swift.js 1 year ago mode-tcl.js 1 year ago mode-terraform.js 1 year ago mode-tex.js 1 year ago mode-text.js 1 year ago mode-textile.js 1 year ago mode-toml.js 1 year ago mode-tsx.js 1 year ago mode-turtle.js 1 year ago mode-twig.js 1 year ago mode-typescript.js 1 year ago mode-vala.js 1 year ago mode-vbscript.js 1 year ago mode-velocity.js 1 year ago mode-verilog.js 1 year ago mode-vhdl.js 1 year ago mode-visualforce.js 1 year ago mode-wollok.js 1 year ago mode-xml.js 1 year ago mode-xquery.js 1 year ago mode-yaml.js 1 year ago mode-zeek.js 1 year ago theme-ambiance.js 1 year ago theme-chaos.js 1 year ago theme-chrome.js 1 year ago theme-cloud9_day.js 1 year ago theme-cloud9_night.js 1 year ago theme-cloud9_night_low_color.js 1 year ago theme-clouds.js 1 year ago theme-clouds_midnight.js 1 year ago theme-cobalt.js 1 year ago theme-crimson_editor.js 1 year ago theme-dawn.js 1 year ago theme-dracula.js 1 year ago theme-dreamweaver.js 1 year ago theme-eclipse.js 1 year ago theme-github.js 1 year ago theme-gob.js 1 year ago theme-gruvbox.js 1 year ago theme-gruvbox_dark_hard.js 1 year ago theme-gruvbox_light_hard.js 1 year ago theme-idle_fingers.js 1 year ago theme-iplastic.js 1 year ago theme-katzenmilch.js 1 year ago theme-kr_theme.js 1 year ago theme-kuroir.js 1 year ago theme-merbivore.js 1 year ago theme-merbivore_soft.js 1 year ago theme-mono_industrial.js 1 year ago theme-monokai.js 1 year ago theme-nord_dark.js 1 year ago theme-one_dark.js 1 year ago theme-pastel_on_dark.js 1 year ago theme-solarized_dark.js 1 year ago theme-solarized_light.js 1 year ago theme-sqlserver.js 1 year ago theme-terminal.js 1 year ago theme-textmate.js 1 year ago theme-tomorrow.js 1 year ago theme-tomorrow_night.js 1 year ago theme-tomorrow_night_blue.js 1 year ago theme-tomorrow_night_bright.js 1 year ago theme-tomorrow_night_eighties.js 1 year ago theme-twilight.js 1 year ago theme-vibrant_ink.js 1 year ago theme-xcode.js 1 year ago worker-base.js 1 year ago worker-coffee.js 1 year ago worker-css.js 1 year ago worker-html.js 1 year ago worker-javascript.js 1 year ago worker-json.js 1 year ago worker-lua.js 1 year ago worker-php.js 1 year ago worker-xml.js 1 year ago worker-xquery.js 1 year ago worker-yaml.js 1 year 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