bedrock_sass 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/assets/_vendor/ace/ace.js +21635 -0
- data/assets/_vendor/ace/ext-beautify.js +318 -0
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
- data/assets/_vendor/ace/ext-emmet.js +1226 -0
- data/assets/_vendor/ace/ext-error_marker.js +10 -0
- data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
- data/assets/_vendor/ace/ext-language_tools.js +1997 -0
- data/assets/_vendor/ace/ext-linking.js +65 -0
- data/assets/_vendor/ace/ext-modelist.js +228 -0
- data/assets/_vendor/ace/ext-options.js +750 -0
- data/assets/_vendor/ace/ext-rtl.js +110 -0
- data/assets/_vendor/ace/ext-searchbox.js +512 -0
- data/assets/_vendor/ace/ext-settings_menu.js +771 -0
- data/assets/_vendor/ace/ext-spellcheck.js +75 -0
- data/assets/_vendor/ace/ext-split.js +208 -0
- data/assets/_vendor/ace/ext-static_highlight.js +226 -0
- data/assets/_vendor/ace/ext-statusbar.js +57 -0
- data/assets/_vendor/ace/ext-textarea.js +567 -0
- data/assets/_vendor/ace/ext-themelist.js +67 -0
- data/assets/_vendor/ace/ext-whitespace.js +210 -0
- data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
- data/assets/_vendor/ace/keybinding-vim.js +5673 -0
- data/assets/_vendor/ace/mode-abap.js +222 -0
- data/assets/_vendor/ace/mode-abc.js +267 -0
- data/assets/_vendor/ace/mode-actionscript.js +274 -0
- data/assets/_vendor/ace/mode-ada.js +138 -0
- data/assets/_vendor/ace/mode-apache_conf.js +363 -0
- data/assets/_vendor/ace/mode-applescript.js +279 -0
- data/assets/_vendor/ace/mode-asciidoc.js +349 -0
- data/assets/_vendor/ace/mode-asl.js +422 -0
- data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
- data/assets/_vendor/ace/mode-autohotkey.js +243 -0
- data/assets/_vendor/ace/mode-batchfile.js +230 -0
- data/assets/_vendor/ace/mode-bro.js +334 -0
- data/assets/_vendor/ace/mode-c9search.js +294 -0
- data/assets/_vendor/ace/mode-c_cpp.js +502 -0
- data/assets/_vendor/ace/mode-cirru.js +211 -0
- data/assets/_vendor/ace/mode-clojure.js +314 -0
- data/assets/_vendor/ace/mode-cobol.js +102 -0
- data/assets/_vendor/ace/mode-coffee.js +400 -0
- data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
- data/assets/_vendor/ace/mode-csharp.js +502 -0
- data/assets/_vendor/ace/mode-csound_document.js +3749 -0
- data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
- data/assets/_vendor/ace/mode-csound_score.js +454 -0
- data/assets/_vendor/ace/mode-csp.js +60 -0
- data/assets/_vendor/ace/mode-css.js +723 -0
- data/assets/_vendor/ace/mode-curly.js +2564 -0
- data/assets/_vendor/ace/mode-d.js +520 -0
- data/assets/_vendor/ace/mode-dart.js +703 -0
- data/assets/_vendor/ace/mode-diff.js +146 -0
- data/assets/_vendor/ace/mode-django.js +2594 -0
- data/assets/_vendor/ace/mode-dockerfile.js +498 -0
- data/assets/_vendor/ace/mode-dot.js +418 -0
- data/assets/_vendor/ace/mode-drools.js +496 -0
- data/assets/_vendor/ace/mode-edifact.js +165 -0
- data/assets/_vendor/ace/mode-eiffel.js +136 -0
- data/assets/_vendor/ace/mode-ejs.js +3026 -0
- data/assets/_vendor/ace/mode-elixir.js +501 -0
- data/assets/_vendor/ace/mode-elm.js +307 -0
- data/assets/_vendor/ace/mode-erlang.js +1009 -0
- data/assets/_vendor/ace/mode-forth.js +297 -0
- data/assets/_vendor/ace/mode-fortran.js +431 -0
- data/assets/_vendor/ace/mode-fsharp.js +314 -0
- data/assets/_vendor/ace/mode-ftl.js +1192 -0
- data/assets/_vendor/ace/mode-gcode.js +94 -0
- data/assets/_vendor/ace/mode-gherkin.js +172 -0
- data/assets/_vendor/ace/mode-gitignore.js +60 -0
- data/assets/_vendor/ace/mode-glsl.js +579 -0
- data/assets/_vendor/ace/mode-gobstones.js +929 -0
- data/assets/_vendor/ace/mode-golang.js +414 -0
- data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
- data/assets/_vendor/ace/mode-groovy.js +986 -0
- data/assets/_vendor/ace/mode-haml.js +1555 -0
- data/assets/_vendor/ace/mode-handlebars.js +2622 -0
- data/assets/_vendor/ace/mode-haskell.js +379 -0
- data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
- data/assets/_vendor/ace/mode-haxe.js +386 -0
- data/assets/_vendor/ace/mode-hjson.js +353 -0
- data/assets/_vendor/ace/mode-html.js +2509 -0
- data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
- data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
- data/assets/_vendor/ace/mode-ini.js +163 -0
- data/assets/_vendor/ace/mode-io.js +253 -0
- data/assets/_vendor/ace/mode-jack.js +347 -0
- data/assets/_vendor/ace/mode-jade.js +2126 -0
- data/assets/_vendor/ace/mode-java.js +975 -0
- data/assets/_vendor/ace/mode-javascript.js +797 -0
- data/assets/_vendor/ace/mode-json.js +327 -0
- data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
- data/assets/_vendor/ace/mode-jsp.js +1430 -0
- data/assets/_vendor/ace/mode-jssm.js +325 -0
- data/assets/_vendor/ace/mode-jsx.js +412 -0
- data/assets/_vendor/ace/mode-julia.js +303 -0
- data/assets/_vendor/ace/mode-kotlin.js +795 -0
- data/assets/_vendor/ace/mode-latex.js +297 -0
- data/assets/_vendor/ace/mode-less.js +841 -0
- data/assets/_vendor/ace/mode-liquid.js +1193 -0
- data/assets/_vendor/ace/mode-lisp.js +112 -0
- data/assets/_vendor/ace/mode-livescript.js +280 -0
- data/assets/_vendor/ace/mode-logiql.js +317 -0
- data/assets/_vendor/ace/mode-lsl.js +343 -0
- data/assets/_vendor/ace/mode-lua.js +432 -0
- data/assets/_vendor/ace/mode-luapage.js +3007 -0
- data/assets/_vendor/ace/mode-lucene.js +87 -0
- data/assets/_vendor/ace/mode-makefile.js +410 -0
- data/assets/_vendor/ace/mode-markdown.js +3189 -0
- data/assets/_vendor/ace/mode-mask.js +1802 -0
- data/assets/_vendor/ace/mode-matlab.js +264 -0
- data/assets/_vendor/ace/mode-maze.js +291 -0
- data/assets/_vendor/ace/mode-mel.js +263 -0
- data/assets/_vendor/ace/mode-mixal.js +123 -0
- data/assets/_vendor/ace/mode-mushcode.js +681 -0
- data/assets/_vendor/ace/mode-mysql.js +168 -0
- data/assets/_vendor/ace/mode-nix.js +646 -0
- data/assets/_vendor/ace/mode-nsis.js +312 -0
- data/assets/_vendor/ace/mode-objectivec.js +739 -0
- data/assets/_vendor/ace/mode-ocaml.js +422 -0
- data/assets/_vendor/ace/mode-pascal.js +205 -0
- data/assets/_vendor/ace/mode-perl.js +380 -0
- data/assets/_vendor/ace/mode-pgsql.js +1508 -0
- data/assets/_vendor/ace/mode-php.js +13088 -0
- data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
- data/assets/_vendor/ace/mode-pig.js +310 -0
- data/assets/_vendor/ace/mode-plain_text.js +33 -0
- data/assets/_vendor/ace/mode-powershell.js +418 -0
- data/assets/_vendor/ace/mode-praat.js +478 -0
- data/assets/_vendor/ace/mode-prolog.js +371 -0
- data/assets/_vendor/ace/mode-properties.js +81 -0
- data/assets/_vendor/ace/mode-protobuf.js +592 -0
- data/assets/_vendor/ace/mode-puppet.js +370 -0
- data/assets/_vendor/ace/mode-python.js +273 -0
- data/assets/_vendor/ace/mode-r.js +310 -0
- data/assets/_vendor/ace/mode-razor.js +2869 -0
- data/assets/_vendor/ace/mode-rdoc.js +243 -0
- data/assets/_vendor/ace/mode-red.js +450 -0
- data/assets/_vendor/ace/mode-redshift.js +361 -0
- data/assets/_vendor/ace/mode-rhtml.js +2806 -0
- data/assets/_vendor/ace/mode-rst.js +257 -0
- data/assets/_vendor/ace/mode-ruby.js +497 -0
- data/assets/_vendor/ace/mode-rust.js +279 -0
- data/assets/_vendor/ace/mode-sass.js +441 -0
- data/assets/_vendor/ace/mode-scad.js +414 -0
- data/assets/_vendor/ace/mode-scala.js +982 -0
- data/assets/_vendor/ace/mode-scheme.js +232 -0
- data/assets/_vendor/ace/mode-scss.js +606 -0
- data/assets/_vendor/ace/mode-sh.js +447 -0
- data/assets/_vendor/ace/mode-sjs.js +1014 -0
- data/assets/_vendor/ace/mode-slim.js +4736 -0
- data/assets/_vendor/ace/mode-smarty.js +2635 -0
- data/assets/_vendor/ace/mode-snippets.js +207 -0
- data/assets/_vendor/ace/mode-soy_template.js +2847 -0
- data/assets/_vendor/ace/mode-space.js +168 -0
- data/assets/_vendor/ace/mode-sparql.js +320 -0
- data/assets/_vendor/ace/mode-sql.js +111 -0
- data/assets/_vendor/ace/mode-sqlserver.js +444 -0
- data/assets/_vendor/ace/mode-stylus.js +471 -0
- data/assets/_vendor/ace/mode-svg.js +1581 -0
- data/assets/_vendor/ace/mode-swift.js +390 -0
- data/assets/_vendor/ace/mode-tcl.js +383 -0
- data/assets/_vendor/ace/mode-terraform.js +398 -0
- data/assets/_vendor/ace/mode-tex.js +159 -0
- data/assets/_vendor/ace/mode-text.js +10 -0
- data/assets/_vendor/ace/mode-textile.js +150 -0
- data/assets/_vendor/ace/mode-toml.js +154 -0
- data/assets/_vendor/ace/mode-tsx.js +887 -0
- data/assets/_vendor/ace/mode-turtle.js +296 -0
- data/assets/_vendor/ace/mode-twig.js +2693 -0
- data/assets/_vendor/ace/mode-typescript.js +868 -0
- data/assets/_vendor/ace/mode-vala.js +676 -0
- data/assets/_vendor/ace/mode-vbscript.js +207 -0
- data/assets/_vendor/ace/mode-velocity.js +2790 -0
- data/assets/_vendor/ace/mode-verilog.js +119 -0
- data/assets/_vendor/ace/mode-vhdl.js +118 -0
- data/assets/_vendor/ace/mode-wollok.js +911 -0
- data/assets/_vendor/ace/mode-xml.js +677 -0
- data/assets/_vendor/ace/mode-xquery.js +4922 -0
- data/assets/_vendor/ace/mode-yaml.js +300 -0
- data/assets/_vendor/ace/snippets/abap.js +15 -0
- data/assets/_vendor/ace/snippets/abc.js +46 -0
- data/assets/_vendor/ace/snippets/actionscript.js +172 -0
- data/assets/_vendor/ace/snippets/ada.js +15 -0
- data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
- data/assets/_vendor/ace/snippets/applescript.js +15 -0
- data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
- data/assets/_vendor/ace/snippets/asl.js +14 -0
- data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
- data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
- data/assets/_vendor/ace/snippets/batchfile.js +15 -0
- data/assets/_vendor/ace/snippets/bro.js +15 -0
- data/assets/_vendor/ace/snippets/c9search.js +15 -0
- data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
- data/assets/_vendor/ace/snippets/cirru.js +15 -0
- data/assets/_vendor/ace/snippets/clojure.js +105 -0
- data/assets/_vendor/ace/snippets/cobol.js +15 -0
- data/assets/_vendor/ace/snippets/coffee.js +110 -0
- data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
- data/assets/_vendor/ace/snippets/csharp.js +15 -0
- data/assets/_vendor/ace/snippets/csound_document.js +25 -0
- data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
- data/assets/_vendor/ace/snippets/csound_score.js +15 -0
- data/assets/_vendor/ace/snippets/csp.js +15 -0
- data/assets/_vendor/ace/snippets/css.js +982 -0
- data/assets/_vendor/ace/snippets/curly.js +15 -0
- data/assets/_vendor/ace/snippets/d.js +15 -0
- data/assets/_vendor/ace/snippets/dart.js +98 -0
- data/assets/_vendor/ace/snippets/diff.js +26 -0
- data/assets/_vendor/ace/snippets/django.js +123 -0
- data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
- data/assets/_vendor/ace/snippets/dot.js +15 -0
- data/assets/_vendor/ace/snippets/drools.js +34 -0
- data/assets/_vendor/ace/snippets/edifact.js +255 -0
- data/assets/_vendor/ace/snippets/eiffel.js +15 -0
- data/assets/_vendor/ace/snippets/ejs.js +15 -0
- data/assets/_vendor/ace/snippets/elixir.js +15 -0
- data/assets/_vendor/ace/snippets/elm.js +15 -0
- data/assets/_vendor/ace/snippets/erlang.js +175 -0
- data/assets/_vendor/ace/snippets/forth.js +15 -0
- data/assets/_vendor/ace/snippets/fortran.js +15 -0
- data/assets/_vendor/ace/snippets/fsharp.js +15 -0
- data/assets/_vendor/ace/snippets/ftl.js +15 -0
- data/assets/_vendor/ace/snippets/gcode.js +15 -0
- data/assets/_vendor/ace/snippets/gherkin.js +15 -0
- data/assets/_vendor/ace/snippets/gitignore.js +15 -0
- data/assets/_vendor/ace/snippets/glsl.js +15 -0
- data/assets/_vendor/ace/snippets/gobstones.js +49 -0
- data/assets/_vendor/ace/snippets/golang.js +15 -0
- data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
- data/assets/_vendor/ace/snippets/groovy.js +15 -0
- data/assets/_vendor/ace/snippets/haml.js +35 -0
- data/assets/_vendor/ace/snippets/handlebars.js +15 -0
- data/assets/_vendor/ace/snippets/haskell.js +97 -0
- data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
- data/assets/_vendor/ace/snippets/haxe.js +15 -0
- data/assets/_vendor/ace/snippets/hjson.js +15 -0
- data/assets/_vendor/ace/snippets/html.js +870 -0
- data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
- data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
- data/assets/_vendor/ace/snippets/ini.js +15 -0
- data/assets/_vendor/ace/snippets/io.js +77 -0
- data/assets/_vendor/ace/snippets/jack.js +15 -0
- data/assets/_vendor/ace/snippets/jade.js +15 -0
- data/assets/_vendor/ace/snippets/java.js +255 -0
- data/assets/_vendor/ace/snippets/javascript.js +210 -0
- data/assets/_vendor/ace/snippets/json.js +15 -0
- data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
- data/assets/_vendor/ace/snippets/jsp.js +114 -0
- data/assets/_vendor/ace/snippets/jssm.js +15 -0
- data/assets/_vendor/ace/snippets/jsx.js +15 -0
- data/assets/_vendor/ace/snippets/julia.js +15 -0
- data/assets/_vendor/ace/snippets/kotlin.js +15 -0
- data/assets/_vendor/ace/snippets/latex.js +15 -0
- data/assets/_vendor/ace/snippets/less.js +15 -0
- data/assets/_vendor/ace/snippets/liquid.js +15 -0
- data/assets/_vendor/ace/snippets/lisp.js +15 -0
- data/assets/_vendor/ace/snippets/livescript.js +15 -0
- data/assets/_vendor/ace/snippets/logiql.js +15 -0
- data/assets/_vendor/ace/snippets/lsl.js +1247 -0
- data/assets/_vendor/ace/snippets/lua.js +36 -0
- data/assets/_vendor/ace/snippets/luapage.js +15 -0
- data/assets/_vendor/ace/snippets/lucene.js +15 -0
- data/assets/_vendor/ace/snippets/makefile.js +19 -0
- data/assets/_vendor/ace/snippets/markdown.js +103 -0
- data/assets/_vendor/ace/snippets/mask.js +15 -0
- data/assets/_vendor/ace/snippets/matlab.js +15 -0
- data/assets/_vendor/ace/snippets/maze.js +24 -0
- data/assets/_vendor/ace/snippets/mel.js +15 -0
- data/assets/_vendor/ace/snippets/mixal.js +15 -0
- data/assets/_vendor/ace/snippets/mushcode.js +15 -0
- data/assets/_vendor/ace/snippets/mysql.js +15 -0
- data/assets/_vendor/ace/snippets/nix.js +15 -0
- data/assets/_vendor/ace/snippets/nsis.js +15 -0
- data/assets/_vendor/ace/snippets/objectivec.js +15 -0
- data/assets/_vendor/ace/snippets/ocaml.js +15 -0
- data/assets/_vendor/ace/snippets/pascal.js +15 -0
- data/assets/_vendor/ace/snippets/perl.js +362 -0
- data/assets/_vendor/ace/snippets/pgsql.js +15 -0
- data/assets/_vendor/ace/snippets/php.js +398 -0
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
- data/assets/_vendor/ace/snippets/pig.js +15 -0
- data/assets/_vendor/ace/snippets/plain_text.js +15 -0
- data/assets/_vendor/ace/snippets/powershell.js +15 -0
- data/assets/_vendor/ace/snippets/praat.js +15 -0
- data/assets/_vendor/ace/snippets/prolog.js +15 -0
- data/assets/_vendor/ace/snippets/properties.js +15 -0
- data/assets/_vendor/ace/snippets/protobuf.js +15 -0
- data/assets/_vendor/ace/snippets/puppet.js +15 -0
- data/assets/_vendor/ace/snippets/python.js +173 -0
- data/assets/_vendor/ace/snippets/r.js +136 -0
- data/assets/_vendor/ace/snippets/razor.js +18 -0
- data/assets/_vendor/ace/snippets/rdoc.js +15 -0
- data/assets/_vendor/ace/snippets/red.js +15 -0
- data/assets/_vendor/ace/snippets/redshift.js +15 -0
- data/assets/_vendor/ace/snippets/rhtml.js +15 -0
- data/assets/_vendor/ace/snippets/rst.js +37 -0
- data/assets/_vendor/ace/snippets/ruby.js +943 -0
- data/assets/_vendor/ace/snippets/rust.js +15 -0
- data/assets/_vendor/ace/snippets/sass.js +15 -0
- data/assets/_vendor/ace/snippets/scad.js +15 -0
- data/assets/_vendor/ace/snippets/scala.js +15 -0
- data/assets/_vendor/ace/snippets/scheme.js +15 -0
- data/assets/_vendor/ace/snippets/scss.js +15 -0
- data/assets/_vendor/ace/snippets/sh.js +98 -0
- data/assets/_vendor/ace/snippets/sjs.js +15 -0
- data/assets/_vendor/ace/snippets/slim.js +15 -0
- data/assets/_vendor/ace/snippets/smarty.js +15 -0
- data/assets/_vendor/ace/snippets/snippets.js +24 -0
- data/assets/_vendor/ace/snippets/soy_template.js +15 -0
- data/assets/_vendor/ace/snippets/space.js +15 -0
- data/assets/_vendor/ace/snippets/sparql.js +15 -0
- data/assets/_vendor/ace/snippets/sql.js +41 -0
- data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
- data/assets/_vendor/ace/snippets/stylus.js +15 -0
- data/assets/_vendor/ace/snippets/svg.js +15 -0
- data/assets/_vendor/ace/snippets/swift.js +15 -0
- data/assets/_vendor/ace/snippets/tcl.js +107 -0
- data/assets/_vendor/ace/snippets/terraform.js +15 -0
- data/assets/_vendor/ace/snippets/tex.js +205 -0
- data/assets/_vendor/ace/snippets/text.js +15 -0
- data/assets/_vendor/ace/snippets/textile.js +45 -0
- data/assets/_vendor/ace/snippets/toml.js +15 -0
- data/assets/_vendor/ace/snippets/tsx.js +15 -0
- data/assets/_vendor/ace/snippets/turtle.js +15 -0
- data/assets/_vendor/ace/snippets/twig.js +15 -0
- data/assets/_vendor/ace/snippets/typescript.js +15 -0
- data/assets/_vendor/ace/snippets/vala.js +201 -0
- data/assets/_vendor/ace/snippets/vbscript.js +15 -0
- data/assets/_vendor/ace/snippets/velocity.js +44 -0
- data/assets/_vendor/ace/snippets/verilog.js +15 -0
- data/assets/_vendor/ace/snippets/vhdl.js +15 -0
- data/assets/_vendor/ace/snippets/wollok.js +99 -0
- data/assets/_vendor/ace/snippets/xml.js +15 -0
- data/assets/_vendor/ace/snippets/xquery.js +76 -0
- data/assets/_vendor/ace/snippets/yaml.js +15 -0
- data/assets/_vendor/ace/theme-ambiance.js +185 -0
- data/assets/_vendor/ace/theme-chaos.js +164 -0
- data/assets/_vendor/ace/theme-chrome.js +136 -0
- data/assets/_vendor/ace/theme-clouds.js +103 -0
- data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
- data/assets/_vendor/ace/theme-cobalt.js +121 -0
- data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
- data/assets/_vendor/ace/theme-dawn.js +116 -0
- data/assets/_vendor/ace/theme-dracula.js +136 -0
- data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
- data/assets/_vendor/ace/theme-eclipse.js +106 -0
- data/assets/_vendor/ace/theme-github.js +110 -0
- data/assets/_vendor/ace/theme-gob.js +120 -0
- data/assets/_vendor/ace/theme-gruvbox.js +90 -0
- data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
- data/assets/_vendor/ace/theme-iplastic.js +129 -0
- data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
- data/assets/_vendor/ace/theme-kr_theme.js +112 -0
- data/assets/_vendor/ace/theme-kuroir.js +69 -0
- data/assets/_vendor/ace/theme-merbivore.js +103 -0
- data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
- data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
- data/assets/_vendor/ace/theme-monokai.js +113 -0
- data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
- data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
- data/assets/_vendor/ace/theme-solarized_light.js +99 -0
- data/assets/_vendor/ace/theme-sqlserver.js +146 -0
- data/assets/_vendor/ace/theme-terminal.js +122 -0
- data/assets/_vendor/ace/theme-textmate.js +138 -0
- data/assets/_vendor/ace/theme-tomorrow.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
- data/assets/_vendor/ace/theme-twilight.js +117 -0
- data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
- data/assets/_vendor/ace/theme-xcode.js +96 -0
- data/assets/_vendor/ace/worker-coffee.js +2165 -0
- data/assets/_vendor/ace/worker-css.js +8764 -0
- data/assets/_vendor/ace/worker-html.js +11614 -0
- data/assets/_vendor/ace/worker-javascript.js +12491 -0
- data/assets/_vendor/ace/worker-json.js +2396 -0
- data/assets/_vendor/ace/worker-lua.js +3637 -0
- data/assets/_vendor/ace/worker-php.js +4313 -0
- data/assets/_vendor/ace/worker-xml.js +3899 -0
- data/assets/_vendor/ace/worker-xquery.js +70688 -0
- data/assets/_vendor/motion-ui/_settings.scss +1 -0
- data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
- data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
- data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
- data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
- data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
- data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
- data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
- data/assets/_vendor/motion-ui/util/_args.scss +2 -2
- data/assets/_vendor/motion-ui/util/_function.scss +94 -0
- data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
- data/assets/_vendor/motion-ui/util/_series.scss +20 -17
- data/assets/_vendor/motion-ui/util/_string.scss +36 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
- data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
- data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
- data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
- data/assets/_vendor/tinymce/tinymce.js +25087 -42606
- data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
- data/assets/bedrock/js/bedrock.js +1 -71697
- data/assets/bedrock/scss/_bedrock-components.scss +20 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
- data/assets/bedrock/scss/_foundation-settings.scss +4 -2
- data/assets/bedrock/scss/components/ace-editor.scss +21 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
- data/assets/bedrock/scss/components/date-picker.scss +146 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
- data/assets/bedrock/scss/components/file-input.scss +7 -0
- data/assets/bedrock/scss/components/file-preview.scss +36 -0
- data/assets/bedrock/scss/components/frame-embed.scss +23 -0
- data/assets/bedrock/scss/components/global.scss +27 -0
- data/assets/bedrock/scss/components/helper-classes.scss +1 -0
- data/assets/bedrock/scss/components/icon-box.scss +38 -0
- data/assets/bedrock/scss/components/item-list.scss +66 -0
- data/assets/bedrock/scss/components/lists.scss +58 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
- data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
- data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
- data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -0
- data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
- data/assets/bedrock/scss/components/textarea.scss +14 -2
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +1 -0
- metadata +395 -4
- data/CODE_OF_CONDUCT.md +0 -74
@@ -0,0 +1,110 @@
|
|
1
|
+
define("ace/ext/rtl",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/editor","ace/config"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
var dom = require("ace/lib/dom");
|
4
|
+
var lang = require("ace/lib/lang");
|
5
|
+
|
6
|
+
var commands = [{
|
7
|
+
name: "leftToRight",
|
8
|
+
bindKey: { win: "Ctrl-Alt-Shift-L", mac: "Command-Alt-Shift-L" },
|
9
|
+
exec: function(editor) {
|
10
|
+
editor.session.$bidiHandler.setRtlDirection(editor, false);
|
11
|
+
},
|
12
|
+
readOnly: true
|
13
|
+
}, {
|
14
|
+
name: "rightToLeft",
|
15
|
+
bindKey: { win: "Ctrl-Alt-Shift-R", mac: "Command-Alt-Shift-R" },
|
16
|
+
exec: function(editor) {
|
17
|
+
editor.session.$bidiHandler.setRtlDirection(editor, true);
|
18
|
+
},
|
19
|
+
readOnly: true
|
20
|
+
}];
|
21
|
+
|
22
|
+
var Editor = require("../editor").Editor;
|
23
|
+
require("../config").defineOptions(Editor.prototype, "editor", {
|
24
|
+
rtlText: {
|
25
|
+
set: function(val) {
|
26
|
+
if (val) {
|
27
|
+
this.on("session", onChange);
|
28
|
+
this.on("changeSelection", onChangeSelection);
|
29
|
+
this.renderer.on("afterRender", updateLineDirection);
|
30
|
+
this.commands.on("exec", onCommandEmitted);
|
31
|
+
this.commands.addCommands(commands);
|
32
|
+
} else {
|
33
|
+
this.off("session", onChange);
|
34
|
+
this.off("changeSelection", onChangeSelection);
|
35
|
+
this.renderer.off("afterRender", updateLineDirection);
|
36
|
+
this.commands.off("exec", onCommandEmitted);
|
37
|
+
this.commands.removeCommands(commands);
|
38
|
+
clearTextLayer(this.renderer);
|
39
|
+
}
|
40
|
+
this.renderer.updateFull();
|
41
|
+
}
|
42
|
+
}
|
43
|
+
});
|
44
|
+
function onChangeSelection(e, editor) {
|
45
|
+
var lead = editor.getSelection().lead;
|
46
|
+
if (editor.session.$bidiHandler.isRtlLine(lead.row)) {
|
47
|
+
if (lead.column === 0) {
|
48
|
+
if (editor.session.$bidiHandler.isMoveLeftOperation && lead.row > 0) {
|
49
|
+
editor.getSelection().moveCursorTo(lead.row - 1, editor.session.getLine(lead.row - 1).length);
|
50
|
+
} else {
|
51
|
+
if (editor.getSelection().isEmpty())
|
52
|
+
lead.column += 1;
|
53
|
+
else
|
54
|
+
lead.setPosition(lead.row, lead.column + 1);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
function onCommandEmitted(commadEvent) {
|
61
|
+
commadEvent.editor.session.$bidiHandler.isMoveLeftOperation = /gotoleft|selectleft|backspace|removewordleft/.test(commadEvent.command.name);
|
62
|
+
}
|
63
|
+
function onChange(delta, session) {
|
64
|
+
session.$bidiHandler.currentRow = null;
|
65
|
+
if (session.$bidiHandler.isRtlLine(delta.start.row) && delta.action === 'insert' && delta.lines.length > 1) {
|
66
|
+
for (var row = delta.start.row; row < delta.end.row; row++) {
|
67
|
+
if (session.getLine(row + 1).charAt(0) !== session.$bidiHandler.RLE)
|
68
|
+
session.getDocument().$lines[row + 1] = session.$bidiHandler.RLE + session.getLine(row + 1);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
function updateLineDirection(e, renderer) {
|
74
|
+
var session = renderer.session;
|
75
|
+
var $bidiHandler = session.$bidiHandler;
|
76
|
+
var cells = renderer.$textLayer.$lines.cells;
|
77
|
+
var width = renderer.layerConfig.width - renderer.layerConfig.padding + "px";
|
78
|
+
cells.forEach(function(cell) {
|
79
|
+
var style = cell.element.style;
|
80
|
+
if ($bidiHandler && $bidiHandler.isRtlLine(cell.row)) {
|
81
|
+
style.direction = "rtl";
|
82
|
+
style.textAlign = "right";
|
83
|
+
style.width = width;
|
84
|
+
} else {
|
85
|
+
style.direction = "";
|
86
|
+
style.textAlign = "";
|
87
|
+
style.width = "";
|
88
|
+
}
|
89
|
+
});
|
90
|
+
}
|
91
|
+
|
92
|
+
function clearTextLayer(renderer) {
|
93
|
+
var lines = renderer.$textLayer.$lines;
|
94
|
+
lines.cells.forEach(clear);
|
95
|
+
lines.cellCache.forEach(clear);
|
96
|
+
function clear(cell) {
|
97
|
+
var style = cell.element.style;
|
98
|
+
style.direction = style.textAlign = style.width = "";
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
});
|
103
|
+
(function() {
|
104
|
+
window.require(["ace/ext/rtl"], function(m) {
|
105
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
106
|
+
module.exports = m;
|
107
|
+
}
|
108
|
+
});
|
109
|
+
})();
|
110
|
+
|
@@ -0,0 +1,512 @@
|
|
1
|
+
define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var dom = require("../lib/dom");
|
5
|
+
var lang = require("../lib/lang");
|
6
|
+
var event = require("../lib/event");
|
7
|
+
var searchboxCss = ".ace_search {\
|
8
|
+
background-color: #ddd;\
|
9
|
+
color: #666;\
|
10
|
+
border: 1px solid #cbcbcb;\
|
11
|
+
border-top: 0 none;\
|
12
|
+
overflow: hidden;\
|
13
|
+
margin: 0;\
|
14
|
+
padding: 4px 6px 0 4px;\
|
15
|
+
position: absolute;\
|
16
|
+
top: 0;\
|
17
|
+
z-index: 99;\
|
18
|
+
white-space: normal;\
|
19
|
+
}\
|
20
|
+
.ace_search.left {\
|
21
|
+
border-left: 0 none;\
|
22
|
+
border-radius: 0px 0px 5px 0px;\
|
23
|
+
left: 0;\
|
24
|
+
}\
|
25
|
+
.ace_search.right {\
|
26
|
+
border-radius: 0px 0px 0px 5px;\
|
27
|
+
border-right: 0 none;\
|
28
|
+
right: 0;\
|
29
|
+
}\
|
30
|
+
.ace_search_form, .ace_replace_form {\
|
31
|
+
margin: 0 20px 4px 0;\
|
32
|
+
overflow: hidden;\
|
33
|
+
line-height: 1.9;\
|
34
|
+
}\
|
35
|
+
.ace_replace_form {\
|
36
|
+
margin-right: 0;\
|
37
|
+
}\
|
38
|
+
.ace_search_form.ace_nomatch {\
|
39
|
+
outline: 1px solid red;\
|
40
|
+
}\
|
41
|
+
.ace_search_field {\
|
42
|
+
border-radius: 3px 0 0 3px;\
|
43
|
+
background-color: white;\
|
44
|
+
color: black;\
|
45
|
+
border: 1px solid #cbcbcb;\
|
46
|
+
border-right: 0 none;\
|
47
|
+
outline: 0;\
|
48
|
+
padding: 0;\
|
49
|
+
font-size: inherit;\
|
50
|
+
margin: 0;\
|
51
|
+
line-height: inherit;\
|
52
|
+
padding: 0 6px;\
|
53
|
+
min-width: 17em;\
|
54
|
+
vertical-align: top;\
|
55
|
+
min-height: 1.8em;\
|
56
|
+
box-sizing: content-box;\
|
57
|
+
}\
|
58
|
+
.ace_searchbtn {\
|
59
|
+
border: 1px solid #cbcbcb;\
|
60
|
+
line-height: inherit;\
|
61
|
+
display: inline-block;\
|
62
|
+
padding: 0 6px;\
|
63
|
+
background: #fff;\
|
64
|
+
border-right: 0 none;\
|
65
|
+
border-left: 1px solid #dcdcdc;\
|
66
|
+
cursor: pointer;\
|
67
|
+
margin: 0;\
|
68
|
+
position: relative;\
|
69
|
+
color: #666;\
|
70
|
+
}\
|
71
|
+
.ace_searchbtn:last-child {\
|
72
|
+
border-radius: 0 3px 3px 0;\
|
73
|
+
border-right: 1px solid #cbcbcb;\
|
74
|
+
}\
|
75
|
+
.ace_searchbtn:disabled {\
|
76
|
+
background: none;\
|
77
|
+
cursor: default;\
|
78
|
+
}\
|
79
|
+
.ace_searchbtn:hover {\
|
80
|
+
background-color: #eef1f6;\
|
81
|
+
}\
|
82
|
+
.ace_searchbtn.prev, .ace_searchbtn.next {\
|
83
|
+
padding: 0px 0.7em\
|
84
|
+
}\
|
85
|
+
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {\
|
86
|
+
content: \"\";\
|
87
|
+
border: solid 2px #888;\
|
88
|
+
width: 0.5em;\
|
89
|
+
height: 0.5em;\
|
90
|
+
border-width: 2px 0 0 2px;\
|
91
|
+
display:inline-block;\
|
92
|
+
transform: rotate(-45deg);\
|
93
|
+
}\
|
94
|
+
.ace_searchbtn.next:after {\
|
95
|
+
border-width: 0 2px 2px 0 ;\
|
96
|
+
}\
|
97
|
+
.ace_searchbtn_close {\
|
98
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\
|
99
|
+
border-radius: 50%;\
|
100
|
+
border: 0 none;\
|
101
|
+
color: #656565;\
|
102
|
+
cursor: pointer;\
|
103
|
+
font: 16px/16px Arial;\
|
104
|
+
padding: 0;\
|
105
|
+
height: 14px;\
|
106
|
+
width: 14px;\
|
107
|
+
top: 9px;\
|
108
|
+
right: 7px;\
|
109
|
+
position: absolute;\
|
110
|
+
}\
|
111
|
+
.ace_searchbtn_close:hover {\
|
112
|
+
background-color: #656565;\
|
113
|
+
background-position: 50% 100%;\
|
114
|
+
color: white;\
|
115
|
+
}\
|
116
|
+
.ace_button {\
|
117
|
+
margin-left: 2px;\
|
118
|
+
cursor: pointer;\
|
119
|
+
-webkit-user-select: none;\
|
120
|
+
-moz-user-select: none;\
|
121
|
+
-o-user-select: none;\
|
122
|
+
-ms-user-select: none;\
|
123
|
+
user-select: none;\
|
124
|
+
overflow: hidden;\
|
125
|
+
opacity: 0.7;\
|
126
|
+
border: 1px solid rgba(100,100,100,0.23);\
|
127
|
+
padding: 1px;\
|
128
|
+
box-sizing: border-box!important;\
|
129
|
+
color: black;\
|
130
|
+
}\
|
131
|
+
.ace_button:hover {\
|
132
|
+
background-color: #eee;\
|
133
|
+
opacity:1;\
|
134
|
+
}\
|
135
|
+
.ace_button:active {\
|
136
|
+
background-color: #ddd;\
|
137
|
+
}\
|
138
|
+
.ace_button.checked {\
|
139
|
+
border-color: #3399ff;\
|
140
|
+
opacity:1;\
|
141
|
+
}\
|
142
|
+
.ace_search_options{\
|
143
|
+
margin-bottom: 3px;\
|
144
|
+
text-align: right;\
|
145
|
+
-webkit-user-select: none;\
|
146
|
+
-moz-user-select: none;\
|
147
|
+
-o-user-select: none;\
|
148
|
+
-ms-user-select: none;\
|
149
|
+
user-select: none;\
|
150
|
+
clear: both;\
|
151
|
+
}\
|
152
|
+
.ace_search_counter {\
|
153
|
+
float: left;\
|
154
|
+
font-family: arial;\
|
155
|
+
padding: 0 8px;\
|
156
|
+
}";
|
157
|
+
var HashHandler = require("../keyboard/hash_handler").HashHandler;
|
158
|
+
var keyUtil = require("../lib/keys");
|
159
|
+
|
160
|
+
var MAX_COUNT = 999;
|
161
|
+
|
162
|
+
dom.importCssString(searchboxCss, "ace_searchbox");
|
163
|
+
|
164
|
+
var html = '<div class="ace_search right">\
|
165
|
+
<span action="hide" class="ace_searchbtn_close"></span>\
|
166
|
+
<div class="ace_search_form">\
|
167
|
+
<input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>\
|
168
|
+
<span action="findPrev" class="ace_searchbtn prev"></span>\
|
169
|
+
<span action="findNext" class="ace_searchbtn next"></span>\
|
170
|
+
<span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span>\
|
171
|
+
</div>\
|
172
|
+
<div class="ace_replace_form">\
|
173
|
+
<input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>\
|
174
|
+
<span action="replaceAndFindNext" class="ace_searchbtn">Replace</span>\
|
175
|
+
<span action="replaceAll" class="ace_searchbtn">All</span>\
|
176
|
+
</div>\
|
177
|
+
<div class="ace_search_options">\
|
178
|
+
<span action="toggleReplace" class="ace_button" title="Toggle Replace mode"\
|
179
|
+
style="float:left;margin-top:-2px;padding:0 5px;">+</span>\
|
180
|
+
<span class="ace_search_counter"></span>\
|
181
|
+
<span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span>\
|
182
|
+
<span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>\
|
183
|
+
<span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span>\
|
184
|
+
<span action="searchInSelection" class="ace_button" title="Search In Selection">S</span>\
|
185
|
+
</div>\
|
186
|
+
</div>'.replace(/> +/g, ">");
|
187
|
+
|
188
|
+
var SearchBox = function(editor, range, showReplaceForm) {
|
189
|
+
var div = dom.createElement("div");
|
190
|
+
div.innerHTML = html;
|
191
|
+
this.element = div.firstChild;
|
192
|
+
|
193
|
+
this.setSession = this.setSession.bind(this);
|
194
|
+
|
195
|
+
this.$init();
|
196
|
+
this.setEditor(editor);
|
197
|
+
dom.importCssString(searchboxCss, "ace_searchbox", editor.container);
|
198
|
+
};
|
199
|
+
|
200
|
+
(function() {
|
201
|
+
this.setEditor = function(editor) {
|
202
|
+
editor.searchBox = this;
|
203
|
+
editor.renderer.scroller.appendChild(this.element);
|
204
|
+
this.editor = editor;
|
205
|
+
};
|
206
|
+
|
207
|
+
this.setSession = function(e) {
|
208
|
+
this.searchRange = null;
|
209
|
+
this.$syncOptions(true);
|
210
|
+
};
|
211
|
+
|
212
|
+
this.$initElements = function(sb) {
|
213
|
+
this.searchBox = sb.querySelector(".ace_search_form");
|
214
|
+
this.replaceBox = sb.querySelector(".ace_replace_form");
|
215
|
+
this.searchOption = sb.querySelector("[action=searchInSelection]");
|
216
|
+
this.replaceOption = sb.querySelector("[action=toggleReplace]");
|
217
|
+
this.regExpOption = sb.querySelector("[action=toggleRegexpMode]");
|
218
|
+
this.caseSensitiveOption = sb.querySelector("[action=toggleCaseSensitive]");
|
219
|
+
this.wholeWordOption = sb.querySelector("[action=toggleWholeWords]");
|
220
|
+
this.searchInput = this.searchBox.querySelector(".ace_search_field");
|
221
|
+
this.replaceInput = this.replaceBox.querySelector(".ace_search_field");
|
222
|
+
this.searchCounter = sb.querySelector(".ace_search_counter");
|
223
|
+
};
|
224
|
+
|
225
|
+
this.$init = function() {
|
226
|
+
var sb = this.element;
|
227
|
+
|
228
|
+
this.$initElements(sb);
|
229
|
+
|
230
|
+
var _this = this;
|
231
|
+
event.addListener(sb, "mousedown", function(e) {
|
232
|
+
setTimeout(function(){
|
233
|
+
_this.activeInput.focus();
|
234
|
+
}, 0);
|
235
|
+
event.stopPropagation(e);
|
236
|
+
});
|
237
|
+
event.addListener(sb, "click", function(e) {
|
238
|
+
var t = e.target || e.srcElement;
|
239
|
+
var action = t.getAttribute("action");
|
240
|
+
if (action && _this[action])
|
241
|
+
_this[action]();
|
242
|
+
else if (_this.$searchBarKb.commands[action])
|
243
|
+
_this.$searchBarKb.commands[action].exec(_this);
|
244
|
+
event.stopPropagation(e);
|
245
|
+
});
|
246
|
+
|
247
|
+
event.addCommandKeyListener(sb, function(e, hashId, keyCode) {
|
248
|
+
var keyString = keyUtil.keyCodeToString(keyCode);
|
249
|
+
var command = _this.$searchBarKb.findKeyCommand(hashId, keyString);
|
250
|
+
if (command && command.exec) {
|
251
|
+
command.exec(_this);
|
252
|
+
event.stopEvent(e);
|
253
|
+
}
|
254
|
+
});
|
255
|
+
|
256
|
+
this.$onChange = lang.delayedCall(function() {
|
257
|
+
_this.find(false, false);
|
258
|
+
});
|
259
|
+
|
260
|
+
event.addListener(this.searchInput, "input", function() {
|
261
|
+
_this.$onChange.schedule(20);
|
262
|
+
});
|
263
|
+
event.addListener(this.searchInput, "focus", function() {
|
264
|
+
_this.activeInput = _this.searchInput;
|
265
|
+
_this.searchInput.value && _this.highlight();
|
266
|
+
});
|
267
|
+
event.addListener(this.replaceInput, "focus", function() {
|
268
|
+
_this.activeInput = _this.replaceInput;
|
269
|
+
_this.searchInput.value && _this.highlight();
|
270
|
+
});
|
271
|
+
};
|
272
|
+
this.$closeSearchBarKb = new HashHandler([{
|
273
|
+
bindKey: "Esc",
|
274
|
+
name: "closeSearchBar",
|
275
|
+
exec: function(editor) {
|
276
|
+
editor.searchBox.hide();
|
277
|
+
}
|
278
|
+
}]);
|
279
|
+
this.$searchBarKb = new HashHandler();
|
280
|
+
this.$searchBarKb.bindKeys({
|
281
|
+
"Ctrl-f|Command-f": function(sb) {
|
282
|
+
var isReplace = sb.isReplace = !sb.isReplace;
|
283
|
+
sb.replaceBox.style.display = isReplace ? "" : "none";
|
284
|
+
sb.replaceOption.checked = false;
|
285
|
+
sb.$syncOptions();
|
286
|
+
sb.searchInput.focus();
|
287
|
+
},
|
288
|
+
"Ctrl-H|Command-Option-F": function(sb) {
|
289
|
+
sb.replaceOption.checked = true;
|
290
|
+
sb.$syncOptions();
|
291
|
+
sb.replaceInput.focus();
|
292
|
+
},
|
293
|
+
"Ctrl-G|Command-G": function(sb) {
|
294
|
+
sb.findNext();
|
295
|
+
},
|
296
|
+
"Ctrl-Shift-G|Command-Shift-G": function(sb) {
|
297
|
+
sb.findPrev();
|
298
|
+
},
|
299
|
+
"esc": function(sb) {
|
300
|
+
setTimeout(function() { sb.hide();});
|
301
|
+
},
|
302
|
+
"Return": function(sb) {
|
303
|
+
if (sb.activeInput == sb.replaceInput)
|
304
|
+
sb.replace();
|
305
|
+
sb.findNext();
|
306
|
+
},
|
307
|
+
"Shift-Return": function(sb) {
|
308
|
+
if (sb.activeInput == sb.replaceInput)
|
309
|
+
sb.replace();
|
310
|
+
sb.findPrev();
|
311
|
+
},
|
312
|
+
"Alt-Return": function(sb) {
|
313
|
+
if (sb.activeInput == sb.replaceInput)
|
314
|
+
sb.replaceAll();
|
315
|
+
sb.findAll();
|
316
|
+
},
|
317
|
+
"Tab": function(sb) {
|
318
|
+
(sb.activeInput == sb.replaceInput ? sb.searchInput : sb.replaceInput).focus();
|
319
|
+
}
|
320
|
+
});
|
321
|
+
|
322
|
+
this.$searchBarKb.addCommands([{
|
323
|
+
name: "toggleRegexpMode",
|
324
|
+
bindKey: {win: "Alt-R|Alt-/", mac: "Ctrl-Alt-R|Ctrl-Alt-/"},
|
325
|
+
exec: function(sb) {
|
326
|
+
sb.regExpOption.checked = !sb.regExpOption.checked;
|
327
|
+
sb.$syncOptions();
|
328
|
+
}
|
329
|
+
}, {
|
330
|
+
name: "toggleCaseSensitive",
|
331
|
+
bindKey: {win: "Alt-C|Alt-I", mac: "Ctrl-Alt-R|Ctrl-Alt-I"},
|
332
|
+
exec: function(sb) {
|
333
|
+
sb.caseSensitiveOption.checked = !sb.caseSensitiveOption.checked;
|
334
|
+
sb.$syncOptions();
|
335
|
+
}
|
336
|
+
}, {
|
337
|
+
name: "toggleWholeWords",
|
338
|
+
bindKey: {win: "Alt-B|Alt-W", mac: "Ctrl-Alt-B|Ctrl-Alt-W"},
|
339
|
+
exec: function(sb) {
|
340
|
+
sb.wholeWordOption.checked = !sb.wholeWordOption.checked;
|
341
|
+
sb.$syncOptions();
|
342
|
+
}
|
343
|
+
}, {
|
344
|
+
name: "toggleReplace",
|
345
|
+
exec: function(sb) {
|
346
|
+
sb.replaceOption.checked = !sb.replaceOption.checked;
|
347
|
+
sb.$syncOptions();
|
348
|
+
}
|
349
|
+
}, {
|
350
|
+
name: "searchInSelection",
|
351
|
+
exec: function(sb) {
|
352
|
+
sb.searchOption.checked = !sb.searchRange;
|
353
|
+
sb.setSearchRange(sb.searchOption.checked && sb.editor.getSelectionRange());
|
354
|
+
sb.$syncOptions();
|
355
|
+
}
|
356
|
+
}]);
|
357
|
+
|
358
|
+
this.setSearchRange = function(range) {
|
359
|
+
this.searchRange = range;
|
360
|
+
if (range) {
|
361
|
+
this.searchRangeMarker = this.editor.session.addMarker(range, "ace_active-line");
|
362
|
+
} else if (this.searchRangeMarker) {
|
363
|
+
this.editor.session.removeMarker(this.searchRangeMarker);
|
364
|
+
this.searchRangeMarker = null;
|
365
|
+
}
|
366
|
+
};
|
367
|
+
|
368
|
+
this.$syncOptions = function(preventScroll) {
|
369
|
+
dom.setCssClass(this.replaceOption, "checked", this.searchRange);
|
370
|
+
dom.setCssClass(this.searchOption, "checked", this.searchOption.checked);
|
371
|
+
this.replaceOption.textContent = this.replaceOption.checked ? "-" : "+";
|
372
|
+
dom.setCssClass(this.regExpOption, "checked", this.regExpOption.checked);
|
373
|
+
dom.setCssClass(this.wholeWordOption, "checked", this.wholeWordOption.checked);
|
374
|
+
dom.setCssClass(this.caseSensitiveOption, "checked", this.caseSensitiveOption.checked);
|
375
|
+
this.replaceBox.style.display = this.replaceOption.checked ? "" : "none";
|
376
|
+
this.find(false, false, preventScroll);
|
377
|
+
};
|
378
|
+
|
379
|
+
this.highlight = function(re) {
|
380
|
+
this.editor.session.highlight(re || this.editor.$search.$options.re);
|
381
|
+
this.editor.renderer.updateBackMarkers();
|
382
|
+
};
|
383
|
+
this.find = function(skipCurrent, backwards, preventScroll) {
|
384
|
+
var range = this.editor.find(this.searchInput.value, {
|
385
|
+
skipCurrent: skipCurrent,
|
386
|
+
backwards: backwards,
|
387
|
+
wrap: true,
|
388
|
+
regExp: this.regExpOption.checked,
|
389
|
+
caseSensitive: this.caseSensitiveOption.checked,
|
390
|
+
wholeWord: this.wholeWordOption.checked,
|
391
|
+
preventScroll: preventScroll,
|
392
|
+
range: this.searchRange
|
393
|
+
});
|
394
|
+
var noMatch = !range && this.searchInput.value;
|
395
|
+
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
396
|
+
this.editor._emit("findSearchBox", { match: !noMatch });
|
397
|
+
this.highlight();
|
398
|
+
this.updateCounter();
|
399
|
+
};
|
400
|
+
this.updateCounter = function() {
|
401
|
+
var editor = this.editor;
|
402
|
+
var regex = editor.$search.$options.re;
|
403
|
+
var all = 0;
|
404
|
+
var before = 0;
|
405
|
+
if (regex) {
|
406
|
+
var value = this.searchRange
|
407
|
+
? editor.session.getTextRange(this.searchRange)
|
408
|
+
: editor.getValue();
|
409
|
+
|
410
|
+
var offset = editor.session.doc.positionToIndex(editor.selection.anchor);
|
411
|
+
if (this.searchRange)
|
412
|
+
offset -= editor.session.doc.positionToIndex(this.searchRange.start);
|
413
|
+
|
414
|
+
var last = regex.lastIndex = 0;
|
415
|
+
var m;
|
416
|
+
while ((m = regex.exec(value))) {
|
417
|
+
all++;
|
418
|
+
last = m.index;
|
419
|
+
if (last <= offset)
|
420
|
+
before++;
|
421
|
+
if (all > MAX_COUNT)
|
422
|
+
break;
|
423
|
+
if (!m[0]) {
|
424
|
+
regex.lastIndex = last += 1;
|
425
|
+
if (last >= value.length)
|
426
|
+
break;
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}
|
430
|
+
this.searchCounter.textContent = before + " of " + (all > MAX_COUNT ? MAX_COUNT + "+" : all);
|
431
|
+
};
|
432
|
+
this.findNext = function() {
|
433
|
+
this.find(true, false);
|
434
|
+
};
|
435
|
+
this.findPrev = function() {
|
436
|
+
this.find(true, true);
|
437
|
+
};
|
438
|
+
this.findAll = function(){
|
439
|
+
var range = this.editor.findAll(this.searchInput.value, {
|
440
|
+
regExp: this.regExpOption.checked,
|
441
|
+
caseSensitive: this.caseSensitiveOption.checked,
|
442
|
+
wholeWord: this.wholeWordOption.checked
|
443
|
+
});
|
444
|
+
var noMatch = !range && this.searchInput.value;
|
445
|
+
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
446
|
+
this.editor._emit("findSearchBox", { match: !noMatch });
|
447
|
+
this.highlight();
|
448
|
+
this.hide();
|
449
|
+
};
|
450
|
+
this.replace = function() {
|
451
|
+
if (!this.editor.getReadOnly())
|
452
|
+
this.editor.replace(this.replaceInput.value);
|
453
|
+
};
|
454
|
+
this.replaceAndFindNext = function() {
|
455
|
+
if (!this.editor.getReadOnly()) {
|
456
|
+
this.editor.replace(this.replaceInput.value);
|
457
|
+
this.findNext();
|
458
|
+
}
|
459
|
+
};
|
460
|
+
this.replaceAll = function() {
|
461
|
+
if (!this.editor.getReadOnly())
|
462
|
+
this.editor.replaceAll(this.replaceInput.value);
|
463
|
+
};
|
464
|
+
|
465
|
+
this.hide = function() {
|
466
|
+
this.active = false;
|
467
|
+
this.setSearchRange(null);
|
468
|
+
this.editor.off("changeSession", this.setSession);
|
469
|
+
|
470
|
+
this.element.style.display = "none";
|
471
|
+
this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb);
|
472
|
+
this.editor.focus();
|
473
|
+
};
|
474
|
+
this.show = function(value, isReplace) {
|
475
|
+
this.active = true;
|
476
|
+
this.editor.on("changeSession", this.setSession);
|
477
|
+
this.element.style.display = "";
|
478
|
+
this.replaceOption.checked = isReplace;
|
479
|
+
|
480
|
+
if (value)
|
481
|
+
this.searchInput.value = value;
|
482
|
+
|
483
|
+
this.searchInput.focus();
|
484
|
+
this.searchInput.select();
|
485
|
+
|
486
|
+
this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb);
|
487
|
+
|
488
|
+
this.$syncOptions(true);
|
489
|
+
};
|
490
|
+
|
491
|
+
this.isFocused = function() {
|
492
|
+
var el = document.activeElement;
|
493
|
+
return el == this.searchInput || el == this.replaceInput;
|
494
|
+
};
|
495
|
+
}).call(SearchBox.prototype);
|
496
|
+
|
497
|
+
exports.SearchBox = SearchBox;
|
498
|
+
|
499
|
+
exports.Search = function(editor, isReplace) {
|
500
|
+
var sb = editor.searchBox || new SearchBox(editor);
|
501
|
+
sb.show(editor.session.getTextRange(), isReplace);
|
502
|
+
};
|
503
|
+
|
504
|
+
});
|
505
|
+
(function() {
|
506
|
+
window.require(["ace/ext/searchbox"], function(m) {
|
507
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
508
|
+
module.exports = m;
|
509
|
+
}
|
510
|
+
});
|
511
|
+
})();
|
512
|
+
|