@omicronenergy/oscd-ui 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/custom-elements.json +12341 -8939
- package/dist/ace-editor/OscdAceEditor.d.ts +34 -0
- package/dist/ace-editor/OscdAceEditor.js +33 -0
- package/dist/ace-editor/OscdAceEditor.js.map +1 -0
- package/dist/ace-editor/OscdAceEditor.spec.d.ts +1 -0
- package/dist/ace-editor/OscdAceEditor.spec.js +16 -0
- package/dist/ace-editor/OscdAceEditor.spec.js.map +1 -0
- package/dist/ace-editor/OscdAceEditor.stories.d.ts +28 -0
- package/dist/ace-editor/OscdAceEditor.stories.js +22 -0
- package/dist/ace-editor/OscdAceEditor.stories.js.map +1 -0
- package/dist/ace-editor/ace/ace.js +22045 -0
- package/dist/ace-editor/ace/ext-beautify.js +343 -0
- package/dist/ace-editor/ace/ext-code_lens.js +204 -0
- package/dist/ace-editor/ace/ext-command_bar.js +469 -0
- package/dist/ace-editor/ace/ext-diff.js +4270 -0
- package/dist/ace-editor/ace/ext-elastic_tabstops_lite.js +238 -0
- package/dist/ace-editor/ace/ext-emmet.js +1303 -0
- package/dist/ace-editor/ace/ext-error_marker.js +9 -0
- package/dist/ace-editor/ace/ext-hardwrap.js +127 -0
- package/dist/ace-editor/ace/ext-inline_autocomplete.js +3547 -0
- package/dist/ace-editor/ace/ext-keybinding_menu.js +185 -0
- package/dist/ace-editor/ace/ext-language_tools.js +2724 -0
- package/dist/ace-editor/ace/ext-linking.js +66 -0
- package/dist/ace-editor/ace/ext-modelist.js +279 -0
- package/dist/ace-editor/ace/ext-options.js +862 -0
- package/dist/ace-editor/ace/ext-prompt.js +3164 -0
- package/dist/ace-editor/ace/ext-rtl.js +146 -0
- package/dist/ace-editor/ace/ext-searchbox.js +385 -0
- package/dist/ace-editor/ace/ext-settings_menu.js +862 -0
- package/dist/ace-editor/ace/ext-simple_tokenizer.js +137 -0
- package/dist/ace-editor/ace/ext-spellcheck.js +79 -0
- package/dist/ace-editor/ace/ext-split.js +203 -0
- package/dist/ace-editor/ace/ext-static_highlight.js +194 -0
- package/dist/ace-editor/ace/ext-statusbar.js +63 -0
- package/dist/ace-editor/ace/ext-textarea.js +400 -0
- package/dist/ace-editor/ace/ext-themelist.js +80 -0
- package/dist/ace-editor/ace/ext-whitespace.js +201 -0
- package/dist/ace-editor/ace/ext-whitespaces_in_selection.js +325 -0
- package/dist/ace-editor/ace/keybinding-emacs.js +1067 -0
- package/dist/ace-editor/ace/keybinding-sublime.js +409 -0
- package/dist/ace-editor/ace/keybinding-vim.js +7101 -0
- package/dist/ace-editor/ace/keybinding-vscode.js +255 -0
- package/dist/ace-editor/ace/mode-abap.js +200 -0
- package/dist/ace-editor/ace/mode-abc.js +243 -0
- package/dist/ace-editor/ace/mode-actionscript.js +234 -0
- package/dist/ace-editor/ace/mode-ada.js +108 -0
- package/dist/ace-editor/ace/mode-alda.js +279 -0
- package/dist/ace-editor/ace/mode-apache_conf.js +318 -0
- package/dist/ace-editor/ace/mode-apex.js +402 -0
- package/dist/ace-editor/ace/mode-applescript.js +232 -0
- package/dist/ace-editor/ace/mode-aql.js +92 -0
- package/dist/ace-editor/ace/mode-asciidoc.js +311 -0
- package/dist/ace-editor/ace/mode-asl.js +357 -0
- package/dist/ace-editor/ace/mode-assembly_arm32.js +185 -0
- package/dist/ace-editor/ace/mode-assembly_x86.js +170 -0
- package/dist/ace-editor/ace/mode-astro.js +2475 -0
- package/dist/ace-editor/ace/mode-autohotkey.js +208 -0
- package/dist/ace-editor/ace/mode-basic.js +201 -0
- package/dist/ace-editor/ace/mode-batchfile.js +199 -0
- package/dist/ace-editor/ace/mode-bibtex.js +318 -0
- package/dist/ace-editor/ace/mode-c9search.js +250 -0
- package/dist/ace-editor/ace/mode-c_cpp.js +417 -0
- package/dist/ace-editor/ace/mode-cedar.js +289 -0
- package/dist/ace-editor/ace/mode-cedarschema.js +275 -0
- package/dist/ace-editor/ace/mode-cirru.js +192 -0
- package/dist/ace-editor/ace/mode-clojure.js +322 -0
- package/dist/ace-editor/ace/mode-clue.js +361 -0
- package/dist/ace-editor/ace/mode-cobol.js +82 -0
- package/dist/ace-editor/ace/mode-coffee.js +335 -0
- package/dist/ace-editor/ace/mode-coldfusion.js +2410 -0
- package/dist/ace-editor/ace/mode-crystal.js +586 -0
- package/dist/ace-editor/ace/mode-csharp.js +413 -0
- package/dist/ace-editor/ace/mode-csound_document.js +4073 -0
- package/dist/ace-editor/ace/mode-csound_orchestra.js +2923 -0
- package/dist/ace-editor/ace/mode-csound_score.js +409 -0
- package/dist/ace-editor/ace/mode-csp.js +59 -0
- package/dist/ace-editor/ace/mode-css.js +632 -0
- package/dist/ace-editor/ace/mode-csv.js +97 -0
- package/dist/ace-editor/ace/mode-curly.js +2382 -0
- package/dist/ace-editor/ace/mode-cuttlefish.js +56 -0
- package/dist/ace-editor/ace/mode-d.js +450 -0
- package/dist/ace-editor/ace/mode-dart.js +618 -0
- package/dist/ace-editor/ace/mode-diff.js +129 -0
- package/dist/ace-editor/ace/mode-django.js +2423 -0
- package/dist/ace-editor/ace/mode-dockerfile.js +427 -0
- package/dist/ace-editor/ace/mode-dot.js +348 -0
- package/dist/ace-editor/ace/mode-drools.js +607 -0
- package/dist/ace-editor/ace/mode-edifact.js +130 -0
- package/dist/ace-editor/ace/mode-eiffel.js +120 -0
- package/dist/ace-editor/ace/mode-ejs.js +3278 -0
- package/dist/ace-editor/ace/mode-elixir.js +443 -0
- package/dist/ace-editor/ace/mode-elm.js +274 -0
- package/dist/ace-editor/ace/mode-erlang.js +836 -0
- package/dist/ace-editor/ace/mode-flix.js +163 -0
- package/dist/ace-editor/ace/mode-forth.js +253 -0
- package/dist/ace-editor/ace/mode-fortran.js +361 -0
- package/dist/ace-editor/ace/mode-fsharp.js +277 -0
- package/dist/ace-editor/ace/mode-fsl.js +226 -0
- package/dist/ace-editor/ace/mode-ftl.js +1256 -0
- package/dist/ace-editor/ace/mode-gcode.js +74 -0
- package/dist/ace-editor/ace/mode-gherkin.js +154 -0
- package/dist/ace-editor/ace/mode-gitignore.js +49 -0
- package/dist/ace-editor/ace/mode-glsl.js +475 -0
- package/dist/ace-editor/ace/mode-gobstones.js +1460 -0
- package/dist/ace-editor/ace/mode-golang.js +341 -0
- package/dist/ace-editor/ace/mode-graphqlschema.js +174 -0
- package/dist/ace-editor/ace/mode-groovy.js +1402 -0
- package/dist/ace-editor/ace/mode-groq.js +288 -0
- package/dist/ace-editor/ace/mode-haml.js +1907 -0
- package/dist/ace-editor/ace/mode-handlebars.js +2439 -0
- package/dist/ace-editor/ace/mode-haskell.js +324 -0
- package/dist/ace-editor/ace/mode-haskell_cabal.js +135 -0
- package/dist/ace-editor/ace/mode-haxe.js +313 -0
- package/dist/ace-editor/ace/mode-hjson.js +318 -0
- package/dist/ace-editor/ace/mode-html.js +2340 -0
- package/dist/ace-editor/ace/mode-html_elixir.js +2846 -0
- package/dist/ace-editor/ace/mode-html_ruby.js +3295 -0
- package/dist/ace-editor/ace/mode-ini.js +138 -0
- package/dist/ace-editor/ace/mode-io.js +210 -0
- package/dist/ace-editor/ace/mode-ion.js +477 -0
- package/dist/ace-editor/ace/mode-jack.js +293 -0
- package/dist/ace-editor/ace/mode-jade.js +2018 -0
- package/dist/ace-editor/ace/mode-java.js +1566 -0
- package/dist/ace-editor/ace/mode-javascript.js +1192 -0
- package/dist/ace-editor/ace/mode-jexl.js +270 -0
- package/dist/ace-editor/ace/mode-json.js +275 -0
- package/dist/ace-editor/ace/mode-json5.js +308 -0
- package/dist/ace-editor/ace/mode-jsoniq.js +2577 -0
- package/dist/ace-editor/ace/mode-jsp.js +1619 -0
- package/dist/ace-editor/ace/mode-jssm.js +293 -0
- package/dist/ace-editor/ace/mode-jsx.js +1210 -0
- package/dist/ace-editor/ace/mode-julia.js +254 -0
- package/dist/ace-editor/ace/mode-kotlin.js +445 -0
- package/dist/ace-editor/ace/mode-latex.js +252 -0
- package/dist/ace-editor/ace/mode-latte.js +2523 -0
- package/dist/ace-editor/ace/mode-less.js +742 -0
- package/dist/ace-editor/ace/mode-liquid.js +2742 -0
- package/dist/ace-editor/ace/mode-lisp.js +104 -0
- package/dist/ace-editor/ace/mode-livescript.js +272 -0
- package/dist/ace-editor/ace/mode-logiql.js +272 -0
- package/dist/ace-editor/ace/mode-logtalk.js +309 -0
- package/dist/ace-editor/ace/mode-lsl.js +287 -0
- package/dist/ace-editor/ace/mode-lua.js +393 -0
- package/dist/ace-editor/ace/mode-luapage.js +2786 -0
- package/dist/ace-editor/ace/mode-lucene.js +145 -0
- package/dist/ace-editor/ace/mode-makefile.js +374 -0
- package/dist/ace-editor/ace/mode-mariadb.js +149 -0
- package/dist/ace-editor/ace/mode-markdown.js +2936 -0
- package/dist/ace-editor/ace/mode-mask.js +1758 -0
- package/dist/ace-editor/ace/mode-matlab.js +239 -0
- package/dist/ace-editor/ace/mode-maze.js +256 -0
- package/dist/ace-editor/ace/mode-mediawiki.js +580 -0
- package/dist/ace-editor/ace/mode-mel.js +213 -0
- package/dist/ace-editor/ace/mode-mips.js +231 -0
- package/dist/ace-editor/ace/mode-mixal.js +110 -0
- package/dist/ace-editor/ace/mode-mushcode.js +642 -0
- package/dist/ace-editor/ace/mode-mysql.js +150 -0
- package/dist/ace-editor/ace/mode-nasal.js +513 -0
- package/dist/ace-editor/ace/mode-nginx.js +262 -0
- package/dist/ace-editor/ace/mode-nim.js +325 -0
- package/dist/ace-editor/ace/mode-nix.js +555 -0
- package/dist/ace-editor/ace/mode-nsis.js +279 -0
- package/dist/ace-editor/ace/mode-nunjucks.js +2678 -0
- package/dist/ace-editor/ace/mode-objectivec.js +626 -0
- package/dist/ace-editor/ace/mode-ocaml.js +378 -0
- package/dist/ace-editor/ace/mode-odin.js +449 -0
- package/dist/ace-editor/ace/mode-partiql.js +750 -0
- package/dist/ace-editor/ace/mode-pascal.js +204 -0
- package/dist/ace-editor/ace/mode-perl.js +318 -0
- package/dist/ace-editor/ace/mode-pgsql.js +1861 -0
- package/dist/ace-editor/ace/mode-php.js +14079 -0
- package/dist/ace-editor/ace/mode-php_laravel_blade.js +14267 -0
- package/dist/ace-editor/ace/mode-pig.js +278 -0
- package/dist/ace-editor/ace/mode-plain_text.js +27 -0
- package/dist/ace-editor/ace/mode-plsql.js +268 -0
- package/dist/ace-editor/ace/mode-powershell.js +567 -0
- package/dist/ace-editor/ace/mode-praat.js +412 -0
- package/dist/ace-editor/ace/mode-prisma.js +457 -0
- package/dist/ace-editor/ace/mode-prolog.js +305 -0
- package/dist/ace-editor/ace/mode-properties.js +69 -0
- package/dist/ace-editor/ace/mode-protobuf.js +498 -0
- package/dist/ace-editor/ace/mode-prql.js +323 -0
- package/dist/ace-editor/ace/mode-puppet.js +316 -0
- package/dist/ace-editor/ace/mode-python.js +476 -0
- package/dist/ace-editor/ace/mode-qml.js +346 -0
- package/dist/ace-editor/ace/mode-r.js +387 -0
- package/dist/ace-editor/ace/mode-raku.js +516 -0
- package/dist/ace-editor/ace/mode-razor.js +2698 -0
- package/dist/ace-editor/ace/mode-rdoc.js +286 -0
- package/dist/ace-editor/ace/mode-red.js +388 -0
- package/dist/ace-editor/ace/mode-redshift.js +321 -0
- package/dist/ace-editor/ace/mode-rhtml.js +2751 -0
- package/dist/ace-editor/ace/mode-robot.js +168 -0
- package/dist/ace-editor/ace/mode-rst.js +245 -0
- package/dist/ace-editor/ace/mode-ruby.js +921 -0
- package/dist/ace-editor/ace/mode-rust.js +393 -0
- package/dist/ace-editor/ace/mode-sac.js +349 -0
- package/dist/ace-editor/ace/mode-sass.js +480 -0
- package/dist/ace-editor/ace/mode-scad.js +350 -0
- package/dist/ace-editor/ace/mode-scala.js +1396 -0
- package/dist/ace-editor/ace/mode-scheme.js +210 -0
- package/dist/ace-editor/ace/mode-scrypt.js +317 -0
- package/dist/ace-editor/ace/mode-scss.js +768 -0
- package/dist/ace-editor/ace/mode-sh.js +387 -0
- package/dist/ace-editor/ace/mode-sjs.js +1394 -0
- package/dist/ace-editor/ace/mode-slim.js +4771 -0
- package/dist/ace-editor/ace/mode-smarty.js +2437 -0
- package/dist/ace-editor/ace/mode-smithy.js +456 -0
- package/dist/ace-editor/ace/mode-snippets.js +183 -0
- package/dist/ace-editor/ace/mode-soy_template.js +2612 -0
- package/dist/ace-editor/ace/mode-space.js +151 -0
- package/dist/ace-editor/ace/mode-sparql.js +288 -0
- package/dist/ace-editor/ace/mode-sql.js +221 -0
- package/dist/ace-editor/ace/mode-sqlserver.js +391 -0
- package/dist/ace-editor/ace/mode-stylus.js +443 -0
- package/dist/ace-editor/ace/mode-svg.js +1488 -0
- package/dist/ace-editor/ace/mode-swift.js +342 -0
- package/dist/ace-editor/ace/mode-tcl.js +338 -0
- package/dist/ace-editor/ace/mode-terraform.js +346 -0
- package/dist/ace-editor/ace/mode-tex.js +212 -0
- package/dist/ace-editor/ace/mode-text.js +9 -0
- package/dist/ace-editor/ace/mode-textile.js +125 -0
- package/dist/ace-editor/ace/mode-toml.js +129 -0
- package/dist/ace-editor/ace/mode-tsv.js +124 -0
- package/dist/ace-editor/ace/mode-tsx.js +1277 -0
- package/dist/ace-editor/ace/mode-turtle.js +264 -0
- package/dist/ace-editor/ace/mode-twig.js +2503 -0
- package/dist/ace-editor/ace/mode-typescript.js +1255 -0
- package/dist/ace-editor/ace/mode-vala.js +554 -0
- package/dist/ace-editor/ace/mode-vbscript.js +731 -0
- package/dist/ace-editor/ace/mode-velocity.js +2581 -0
- package/dist/ace-editor/ace/mode-verilog.js +98 -0
- package/dist/ace-editor/ace/mode-vhdl.js +94 -0
- package/dist/ace-editor/ace/mode-visualforce.js +2455 -0
- package/dist/ace-editor/ace/mode-vue.js +3835 -0
- package/dist/ace-editor/ace/mode-wollok.js +1330 -0
- package/dist/ace-editor/ace/mode-xml.js +477 -0
- package/dist/ace-editor/ace/mode-xquery.js +2589 -0
- package/dist/ace-editor/ace/mode-yaml.js +395 -0
- package/dist/ace-editor/ace/mode-zeek.js +502 -0
- package/dist/ace-editor/ace/mode-zig.js +585 -0
- package/dist/ace-editor/ace/snippets/abap.js +9 -0
- package/dist/ace-editor/ace/snippets/abc.js +16 -0
- package/dist/ace-editor/ace/snippets/actionscript.js +16 -0
- package/dist/ace-editor/ace/snippets/ada.js +9 -0
- package/dist/ace-editor/ace/snippets/alda.js +9 -0
- package/dist/ace-editor/ace/snippets/apache_conf.js +9 -0
- package/dist/ace-editor/ace/snippets/apex.js +9 -0
- package/dist/ace-editor/ace/snippets/applescript.js +9 -0
- package/dist/ace-editor/ace/snippets/aql.js +9 -0
- package/dist/ace-editor/ace/snippets/asciidoc.js +9 -0
- package/dist/ace-editor/ace/snippets/asl.js +9 -0
- package/dist/ace-editor/ace/snippets/assembly_arm32.js +9 -0
- package/dist/ace-editor/ace/snippets/assembly_x86.js +9 -0
- package/dist/ace-editor/ace/snippets/astro.js +9 -0
- package/dist/ace-editor/ace/snippets/autohotkey.js +9 -0
- package/dist/ace-editor/ace/snippets/basic.js +9 -0
- package/dist/ace-editor/ace/snippets/batchfile.js +9 -0
- package/dist/ace-editor/ace/snippets/bibtex.js +9 -0
- package/dist/ace-editor/ace/snippets/c9search.js +9 -0
- package/dist/ace-editor/ace/snippets/c_cpp.js +16 -0
- package/dist/ace-editor/ace/snippets/cedar.js +16 -0
- package/dist/ace-editor/ace/snippets/cedarschema.js +16 -0
- package/dist/ace-editor/ace/snippets/cirru.js +9 -0
- package/dist/ace-editor/ace/snippets/clojure.js +16 -0
- package/dist/ace-editor/ace/snippets/clue.js +9 -0
- package/dist/ace-editor/ace/snippets/cobol.js +9 -0
- package/dist/ace-editor/ace/snippets/coffee.js +16 -0
- package/dist/ace-editor/ace/snippets/coldfusion.js +9 -0
- package/dist/ace-editor/ace/snippets/crystal.js +9 -0
- package/dist/ace-editor/ace/snippets/csharp.js +9 -0
- package/dist/ace-editor/ace/snippets/csound_document.js +16 -0
- package/dist/ace-editor/ace/snippets/csound_orchestra.js +16 -0
- package/dist/ace-editor/ace/snippets/csound_score.js +9 -0
- package/dist/ace-editor/ace/snippets/csp.js +9 -0
- package/dist/ace-editor/ace/snippets/css.js +16 -0
- package/dist/ace-editor/ace/snippets/csv.js +9 -0
- package/dist/ace-editor/ace/snippets/curly.js +9 -0
- package/dist/ace-editor/ace/snippets/cuttlefish.js +9 -0
- package/dist/ace-editor/ace/snippets/d.js +9 -0
- package/dist/ace-editor/ace/snippets/dart.js +16 -0
- package/dist/ace-editor/ace/snippets/diff.js +16 -0
- package/dist/ace-editor/ace/snippets/django.js +16 -0
- package/dist/ace-editor/ace/snippets/dockerfile.js +9 -0
- package/dist/ace-editor/ace/snippets/dot.js +9 -0
- package/dist/ace-editor/ace/snippets/drools.js +16 -0
- package/dist/ace-editor/ace/snippets/edifact.js +16 -0
- package/dist/ace-editor/ace/snippets/eiffel.js +9 -0
- package/dist/ace-editor/ace/snippets/ejs.js +9 -0
- package/dist/ace-editor/ace/snippets/elixir.js +9 -0
- package/dist/ace-editor/ace/snippets/elm.js +9 -0
- package/dist/ace-editor/ace/snippets/erlang.js +16 -0
- package/dist/ace-editor/ace/snippets/flix.js +9 -0
- package/dist/ace-editor/ace/snippets/forth.js +9 -0
- package/dist/ace-editor/ace/snippets/fortran.js +9 -0
- package/dist/ace-editor/ace/snippets/fsharp.js +9 -0
- package/dist/ace-editor/ace/snippets/fsl.js +16 -0
- package/dist/ace-editor/ace/snippets/ftl.js +9 -0
- package/dist/ace-editor/ace/snippets/gcode.js +9 -0
- package/dist/ace-editor/ace/snippets/gherkin.js +9 -0
- package/dist/ace-editor/ace/snippets/gitignore.js +9 -0
- package/dist/ace-editor/ace/snippets/glsl.js +9 -0
- package/dist/ace-editor/ace/snippets/gobstones.js +16 -0
- package/dist/ace-editor/ace/snippets/golang.js +9 -0
- package/dist/ace-editor/ace/snippets/graphqlschema.js +16 -0
- package/dist/ace-editor/ace/snippets/groovy.js +9 -0
- package/dist/ace-editor/ace/snippets/groq.js +9 -0
- package/dist/ace-editor/ace/snippets/haml.js +16 -0
- package/dist/ace-editor/ace/snippets/handlebars.js +9 -0
- package/dist/ace-editor/ace/snippets/haskell.js +16 -0
- package/dist/ace-editor/ace/snippets/haskell_cabal.js +9 -0
- package/dist/ace-editor/ace/snippets/haxe.js +9 -0
- package/dist/ace-editor/ace/snippets/hjson.js +9 -0
- package/dist/ace-editor/ace/snippets/html.js +16 -0
- package/dist/ace-editor/ace/snippets/html_elixir.js +9 -0
- package/dist/ace-editor/ace/snippets/html_ruby.js +9 -0
- package/dist/ace-editor/ace/snippets/ini.js +9 -0
- package/dist/ace-editor/ace/snippets/io.js +74 -0
- package/dist/ace-editor/ace/snippets/ion.js +9 -0
- package/dist/ace-editor/ace/snippets/jack.js +9 -0
- package/dist/ace-editor/ace/snippets/jade.js +9 -0
- package/dist/ace-editor/ace/snippets/java.js +16 -0
- package/dist/ace-editor/ace/snippets/javascript.js +16 -0
- package/dist/ace-editor/ace/snippets/jexl.js +9 -0
- package/dist/ace-editor/ace/snippets/json.js +9 -0
- package/dist/ace-editor/ace/snippets/json5.js +9 -0
- package/dist/ace-editor/ace/snippets/jsoniq.js +78 -0
- package/dist/ace-editor/ace/snippets/jsp.js +16 -0
- package/dist/ace-editor/ace/snippets/jssm.js +9 -0
- package/dist/ace-editor/ace/snippets/jsx.js +9 -0
- package/dist/ace-editor/ace/snippets/julia.js +9 -0
- package/dist/ace-editor/ace/snippets/kotlin.js +9 -0
- package/dist/ace-editor/ace/snippets/latex.js +9 -0
- package/dist/ace-editor/ace/snippets/latte.js +9 -0
- package/dist/ace-editor/ace/snippets/less.js +9 -0
- package/dist/ace-editor/ace/snippets/liquid.js +16 -0
- package/dist/ace-editor/ace/snippets/lisp.js +9 -0
- package/dist/ace-editor/ace/snippets/livescript.js +9 -0
- package/dist/ace-editor/ace/snippets/logiql.js +9 -0
- package/dist/ace-editor/ace/snippets/logtalk.js +9 -0
- package/dist/ace-editor/ace/snippets/lsl.js +16 -0
- package/dist/ace-editor/ace/snippets/lua.js +16 -0
- package/dist/ace-editor/ace/snippets/luapage.js +9 -0
- package/dist/ace-editor/ace/snippets/lucene.js +9 -0
- package/dist/ace-editor/ace/snippets/makefile.js +16 -0
- package/dist/ace-editor/ace/snippets/mariadb.js +9 -0
- package/dist/ace-editor/ace/snippets/markdown.js +16 -0
- package/dist/ace-editor/ace/snippets/mask.js +9 -0
- package/dist/ace-editor/ace/snippets/matlab.js +9 -0
- package/dist/ace-editor/ace/snippets/maze.js +16 -0
- package/dist/ace-editor/ace/snippets/mediawiki.js +9 -0
- package/dist/ace-editor/ace/snippets/mel.js +9 -0
- package/dist/ace-editor/ace/snippets/mips.js +9 -0
- package/dist/ace-editor/ace/snippets/mixal.js +9 -0
- package/dist/ace-editor/ace/snippets/mushcode.js +9 -0
- package/dist/ace-editor/ace/snippets/mysql.js +9 -0
- package/dist/ace-editor/ace/snippets/nasal.js +9 -0
- package/dist/ace-editor/ace/snippets/nginx.js +9 -0
- package/dist/ace-editor/ace/snippets/nim.js +9 -0
- package/dist/ace-editor/ace/snippets/nix.js +9 -0
- package/dist/ace-editor/ace/snippets/nsis.js +9 -0
- package/dist/ace-editor/ace/snippets/nunjucks.js +9 -0
- package/dist/ace-editor/ace/snippets/objectivec.js +9 -0
- package/dist/ace-editor/ace/snippets/ocaml.js +9 -0
- package/dist/ace-editor/ace/snippets/odin.js +9 -0
- package/dist/ace-editor/ace/snippets/partiql.js +9 -0
- package/dist/ace-editor/ace/snippets/pascal.js +9 -0
- package/dist/ace-editor/ace/snippets/perl.js +16 -0
- package/dist/ace-editor/ace/snippets/pgsql.js +9 -0
- package/dist/ace-editor/ace/snippets/php.js +16 -0
- package/dist/ace-editor/ace/snippets/php_laravel_blade.js +9 -0
- package/dist/ace-editor/ace/snippets/pig.js +9 -0
- package/dist/ace-editor/ace/snippets/plain_text.js +9 -0
- package/dist/ace-editor/ace/snippets/plsql.js +9 -0
- package/dist/ace-editor/ace/snippets/powershell.js +9 -0
- package/dist/ace-editor/ace/snippets/praat.js +9 -0
- package/dist/ace-editor/ace/snippets/prisma.js +9 -0
- package/dist/ace-editor/ace/snippets/prolog.js +9 -0
- package/dist/ace-editor/ace/snippets/properties.js +9 -0
- package/dist/ace-editor/ace/snippets/protobuf.js +9 -0
- package/dist/ace-editor/ace/snippets/prql.js +9 -0
- package/dist/ace-editor/ace/snippets/puppet.js +9 -0
- package/dist/ace-editor/ace/snippets/python.js +16 -0
- package/dist/ace-editor/ace/snippets/qml.js +9 -0
- package/dist/ace-editor/ace/snippets/r.js +16 -0
- package/dist/ace-editor/ace/snippets/raku.js +9 -0
- package/dist/ace-editor/ace/snippets/razor.js +16 -0
- package/dist/ace-editor/ace/snippets/rdoc.js +9 -0
- package/dist/ace-editor/ace/snippets/red.js +9 -0
- package/dist/ace-editor/ace/snippets/redshift.js +9 -0
- package/dist/ace-editor/ace/snippets/rhtml.js +9 -0
- package/dist/ace-editor/ace/snippets/robot.js +16 -0
- package/dist/ace-editor/ace/snippets/rst.js +16 -0
- package/dist/ace-editor/ace/snippets/ruby.js +16 -0
- package/dist/ace-editor/ace/snippets/rust.js +9 -0
- package/dist/ace-editor/ace/snippets/sac.js +9 -0
- package/dist/ace-editor/ace/snippets/sass.js +9 -0
- package/dist/ace-editor/ace/snippets/scad.js +9 -0
- package/dist/ace-editor/ace/snippets/scala.js +9 -0
- package/dist/ace-editor/ace/snippets/scheme.js +9 -0
- package/dist/ace-editor/ace/snippets/scrypt.js +9 -0
- package/dist/ace-editor/ace/snippets/scss.js +9 -0
- package/dist/ace-editor/ace/snippets/sh.js +16 -0
- package/dist/ace-editor/ace/snippets/sjs.js +9 -0
- package/dist/ace-editor/ace/snippets/slim.js +9 -0
- package/dist/ace-editor/ace/snippets/smarty.js +9 -0
- package/dist/ace-editor/ace/snippets/smithy.js +9 -0
- package/dist/ace-editor/ace/snippets/snippets.js +16 -0
- package/dist/ace-editor/ace/snippets/soy_template.js +9 -0
- package/dist/ace-editor/ace/snippets/space.js +9 -0
- package/dist/ace-editor/ace/snippets/sparql.js +9 -0
- package/dist/ace-editor/ace/snippets/sql.js +16 -0
- package/dist/ace-editor/ace/snippets/sqlserver.js +16 -0
- package/dist/ace-editor/ace/snippets/stylus.js +9 -0
- package/dist/ace-editor/ace/snippets/svg.js +9 -0
- package/dist/ace-editor/ace/snippets/swift.js +9 -0
- package/dist/ace-editor/ace/snippets/tcl.js +16 -0
- package/dist/ace-editor/ace/snippets/terraform.js +9 -0
- package/dist/ace-editor/ace/snippets/tex.js +16 -0
- package/dist/ace-editor/ace/snippets/text.js +9 -0
- package/dist/ace-editor/ace/snippets/textile.js +16 -0
- package/dist/ace-editor/ace/snippets/toml.js +9 -0
- package/dist/ace-editor/ace/snippets/tsv.js +9 -0
- package/dist/ace-editor/ace/snippets/tsx.js +9 -0
- package/dist/ace-editor/ace/snippets/turtle.js +9 -0
- package/dist/ace-editor/ace/snippets/twig.js +9 -0
- package/dist/ace-editor/ace/snippets/typescript.js +9 -0
- package/dist/ace-editor/ace/snippets/vala.js +199 -0
- package/dist/ace-editor/ace/snippets/vbscript.js +9 -0
- package/dist/ace-editor/ace/snippets/velocity.js +17 -0
- package/dist/ace-editor/ace/snippets/verilog.js +9 -0
- package/dist/ace-editor/ace/snippets/vhdl.js +9 -0
- package/dist/ace-editor/ace/snippets/visualforce.js +9 -0
- package/dist/ace-editor/ace/snippets/vue.js +9 -0
- package/dist/ace-editor/ace/snippets/wollok.js +16 -0
- package/dist/ace-editor/ace/snippets/xml.js +9 -0
- package/dist/ace-editor/ace/snippets/xquery.js +78 -0
- package/dist/ace-editor/ace/snippets/yaml.js +9 -0
- package/dist/ace-editor/ace/snippets/zeek.js +9 -0
- package/dist/ace-editor/ace/snippets/zig.js +9 -0
- package/dist/ace-editor/ace/theme-ambiance.js +18 -0
- package/dist/ace-editor/ace/theme-chaos.js +18 -0
- package/dist/ace-editor/ace/theme-chrome.js +18 -0
- package/dist/ace-editor/ace/theme-cloud9_day.js +19 -0
- package/dist/ace-editor/ace/theme-cloud9_night.js +18 -0
- package/dist/ace-editor/ace/theme-cloud9_night_low_color.js +18 -0
- package/dist/ace-editor/ace/theme-cloud_editor.js +19 -0
- package/dist/ace-editor/ace/theme-cloud_editor_dark.js +19 -0
- package/dist/ace-editor/ace/theme-clouds.js +18 -0
- package/dist/ace-editor/ace/theme-clouds_midnight.js +18 -0
- package/dist/ace-editor/ace/theme-cobalt.js +18 -0
- package/dist/ace-editor/ace/theme-crimson_editor.js +18 -0
- package/dist/ace-editor/ace/theme-dawn.js +18 -0
- package/dist/ace-editor/ace/theme-dracula.js +19 -0
- package/dist/ace-editor/ace/theme-dreamweaver.js +18 -0
- package/dist/ace-editor/ace/theme-eclipse.js +19 -0
- package/dist/ace-editor/ace/theme-github.js +18 -0
- package/dist/ace-editor/ace/theme-github_dark.js +18 -0
- package/dist/ace-editor/ace/theme-github_light_default.js +18 -0
- package/dist/ace-editor/ace/theme-gob.js +18 -0
- package/dist/ace-editor/ace/theme-gruvbox.js +18 -0
- package/dist/ace-editor/ace/theme-gruvbox_dark_hard.js +18 -0
- package/dist/ace-editor/ace/theme-gruvbox_light_hard.js +18 -0
- package/dist/ace-editor/ace/theme-idle_fingers.js +18 -0
- package/dist/ace-editor/ace/theme-iplastic.js +18 -0
- package/dist/ace-editor/ace/theme-katzenmilch.js +18 -0
- package/dist/ace-editor/ace/theme-kr_theme.js +18 -0
- package/dist/ace-editor/ace/theme-kuroir.js +18 -0
- package/dist/ace-editor/ace/theme-merbivore.js +18 -0
- package/dist/ace-editor/ace/theme-merbivore_soft.js +18 -0
- package/dist/ace-editor/ace/theme-mono_industrial.js +18 -0
- package/dist/ace-editor/ace/theme-monokai.js +18 -0
- package/dist/ace-editor/ace/theme-nord_dark.js +19 -0
- package/dist/ace-editor/ace/theme-one_dark.js +18 -0
- package/dist/ace-editor/ace/theme-pastel_on_dark.js +18 -0
- package/dist/ace-editor/ace/theme-solarized_dark.js +18 -0
- package/dist/ace-editor/ace/theme-solarized_light.js +18 -0
- package/dist/ace-editor/ace/theme-sqlserver.js +18 -0
- package/dist/ace-editor/ace/theme-terminal.js +18 -0
- package/dist/ace-editor/ace/theme-textmate.js +16 -0
- package/dist/ace-editor/ace/theme-tomorrow.js +18 -0
- package/dist/ace-editor/ace/theme-tomorrow_night.js +18 -0
- package/dist/ace-editor/ace/theme-tomorrow_night_blue.js +18 -0
- package/dist/ace-editor/ace/theme-tomorrow_night_bright.js +18 -0
- package/dist/ace-editor/ace/theme-tomorrow_night_eighties.js +18 -0
- package/dist/ace-editor/ace/theme-twilight.js +18 -0
- package/dist/ace-editor/ace/theme-vibrant_ink.js +18 -0
- package/dist/ace-editor/ace/theme-xcode.js +18 -0
- package/dist/ace-editor/ace/worker-base.js +1337 -0
- package/dist/ace-editor/ace/worker-coffee.js +1386 -0
- package/dist/ace-editor/ace/worker-css.js +8918 -0
- package/dist/ace-editor/ace/worker-html.js +10848 -0
- package/dist/ace-editor/ace/worker-javascript.js +15358 -0
- package/dist/ace-editor/ace/worker-json.js +1631 -0
- package/dist/ace-editor/ace/worker-lua.js +3524 -0
- package/dist/ace-editor/ace/worker-php.js +3793 -0
- package/dist/ace-editor/ace/worker-xml.js +3127 -0
- package/dist/ace-editor/ace/worker-xquery.js +57584 -0
- package/dist/ace-editor/ace/worker-yaml.js +5824 -0
- package/dist/ace-editor/internal/AceEditor.d.ts +22 -0
- package/dist/ace-editor/internal/AceEditor.js +113 -0
- package/dist/ace-editor/internal/AceEditor.js.map +1 -0
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.d.ts +55 -0
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js +205 -0
- package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js.map +1 -0
- package/dist/ace-editor/internal/ace-editor-base/debounce.d.ts +24 -0
- package/dist/ace-editor/internal/ace-editor-base/debounce.js +41 -0
- package/dist/ace-editor/internal/ace-editor-base/debounce.js.map +1 -0
- package/dist/ace-editor/internal/ace-editor-base/property-decorators.d.ts +66 -0
- package/dist/ace-editor/internal/ace-editor-base/property-decorators.js +171 -0
- package/dist/ace-editor/internal/ace-editor-base/property-decorators.js.map +1 -0
- package/dist/ace-editor/internal/ace-theme-oscd.d.ts +1 -0
- package/dist/ace-editor/internal/ace-theme-oscd.js +247 -0
- package/dist/ace-editor/internal/ace-theme-oscd.js.map +1 -0
- package/dist/ace-editor/internal/ace.config.d.ts +54 -0
- package/dist/ace-editor/internal/ace.config.js +61 -0
- package/dist/ace-editor/internal/ace.config.js.map +1 -0
- package/dist/ace-editor/oscd-ace-editor.d.ts +2 -0
- package/dist/ace-editor/oscd-ace-editor.js +4 -0
- package/dist/ace-editor/oscd-ace-editor.js.map +1 -0
- package/dist/action-icon/OscdActionIcon.js +1 -3
- package/dist/action-icon/OscdActionIcon.js.map +1 -1
- package/dist/action-list/OscdActionList.js +8 -8
- package/dist/action-list/OscdActionList.js.map +1 -1
- package/dist/action-pane/OscdActionPane.js +1 -3
- package/dist/action-pane/OscdActionPane.js.map +1 -1
- package/dist/action-tree/OscdActionTree.js +23 -23
- package/dist/action-tree/OscdActionTree.js.map +1 -1
- package/dist/app-bar/OscdAppBar.d.ts +1 -1
- package/dist/app-bar/OscdAppBar.js +1 -1
- package/dist/app-bar/OscdAppBar.js.map +1 -1
- package/dist/app-bar/oscd-app-bar.d.ts +1 -1
- package/dist/app-bar/oscd-app-bar.js +1 -1
- package/dist/app-bar/oscd-app-bar.js.map +1 -1
- package/dist/button/OscdElevatedButton.d.ts +1 -1
- package/dist/button/OscdElevatedButton.js +1 -1
- package/dist/button/OscdElevatedButton.js.map +1 -1
- package/dist/button/OscdFilledButton.d.ts +1 -1
- package/dist/button/OscdFilledButton.js +1 -1
- package/dist/button/OscdFilledButton.js.map +1 -1
- package/dist/button/OscdFilledTonalButton.d.ts +1 -1
- package/dist/button/OscdFilledTonalButton.js +1 -1
- package/dist/button/OscdFilledTonalButton.js.map +1 -1
- package/dist/button/OscdOutlinedButton.d.ts +1 -1
- package/dist/button/OscdOutlinedButton.js +1 -1
- package/dist/button/OscdOutlinedButton.js.map +1 -1
- package/dist/button/OscdTextButton.d.ts +1 -1
- package/dist/button/OscdTextButton.js +1 -1
- package/dist/button/OscdTextButton.js.map +1 -1
- package/dist/checkbox/OscdCheckbox.d.ts +1 -1
- package/dist/checkbox/OscdCheckbox.js +1 -1
- package/dist/checkbox/OscdCheckbox.js.map +1 -1
- package/dist/chips/OscdAssistChip.d.ts +1 -1
- package/dist/chips/OscdAssistChip.js +1 -1
- package/dist/chips/OscdAssistChip.js.map +1 -1
- package/dist/chips/OscdChipSet.d.ts +1 -1
- package/dist/chips/OscdChipSet.js.map +1 -1
- package/dist/chips/OscdFilterChip.d.ts +1 -1
- package/dist/chips/OscdFilterChip.js +1 -1
- package/dist/chips/OscdFilterChip.js.map +1 -1
- package/dist/chips/OscdInputChip.d.ts +1 -1
- package/dist/chips/OscdInputChip.js +1 -1
- package/dist/chips/OscdInputChip.js.map +1 -1
- package/dist/chips/OscdSuggestionChip.d.ts +1 -1
- package/dist/chips/OscdSuggestionChip.js +1 -1
- package/dist/chips/OscdSuggestionChip.js.map +1 -1
- package/dist/decorators/localstorage.js.map +1 -1
- package/dist/dialog/OscdDialog.d.ts +1 -1
- package/dist/dialog/OscdDialog.js +1 -1
- package/dist/dialog/OscdDialog.js.map +1 -1
- package/dist/dialog/warning/OscdWarnDialog.d.ts +31 -0
- package/dist/dialog/warning/OscdWarnDialog.js +74 -0
- package/dist/dialog/warning/OscdWarnDialog.js.map +1 -0
- package/dist/dialog/warning/oscd-warn-dialog.d.ts +2 -0
- package/dist/dialog/warning/oscd-warn-dialog.js +4 -0
- package/dist/dialog/warning/oscd-warn-dialog.js.map +1 -0
- package/dist/divider/OscdDivider.d.ts +1 -1
- package/dist/divider/OscdDivider.js.map +1 -1
- package/dist/elevation/OscdElevation.d.ts +1 -1
- package/dist/elevation/OscdElevation.js.map +1 -1
- package/dist/fab/OscdBrandedFab.d.ts +1 -1
- package/dist/fab/OscdBrandedFab.js +1 -1
- package/dist/fab/OscdBrandedFab.js.map +1 -1
- package/dist/fab/OscdFab.d.ts +1 -1
- package/dist/fab/OscdFab.js +1 -1
- package/dist/fab/OscdFab.js.map +1 -1
- package/dist/field/OscdFilledField.d.ts +1 -1
- package/dist/field/OscdFilledField.js.map +1 -1
- package/dist/field/OscdOutlinedField.d.ts +1 -1
- package/dist/field/OscdOutlinedField.js.map +1 -1
- package/dist/filter-button/OscdFilterButton.js.map +1 -1
- package/dist/focus/OscdFocusRing.d.ts +1 -1
- package/dist/focus/OscdFocusRing.js.map +1 -1
- package/dist/icon/OscdIcon.d.ts +1 -1
- package/dist/icon/OscdIcon.js +1 -1
- package/dist/icon/OscdIcon.js.map +1 -1
- package/dist/icon/internal/icon.d.ts +1 -1
- package/dist/icon/internal/icon.js +1 -1
- package/dist/icon/internal/icon.js.map +1 -1
- package/dist/iconbutton/OscdFilledIconButton.d.ts +1 -1
- package/dist/iconbutton/OscdFilledIconButton.js +1 -1
- package/dist/iconbutton/OscdFilledIconButton.js.map +1 -1
- package/dist/iconbutton/OscdFilledTonalIconButton.d.ts +1 -1
- package/dist/iconbutton/OscdFilledTonalIconButton.js +1 -1
- package/dist/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
- package/dist/iconbutton/OscdIconButton.d.ts +1 -1
- package/dist/iconbutton/OscdIconButton.js +1 -1
- package/dist/iconbutton/OscdIconButton.js.map +1 -1
- package/dist/iconbutton/OscdOutlinedIconButton.d.ts +1 -1
- package/dist/iconbutton/OscdOutlinedIconButton.js +1 -1
- package/dist/iconbutton/OscdOutlinedIconButton.js.map +1 -1
- package/dist/labs/badge/OscdBadge.d.ts +1 -1
- package/dist/labs/badge/OscdBadge.js.map +1 -1
- package/dist/labs/card/OscdElevatedCard.d.ts +1 -1
- package/dist/labs/card/OscdElevatedCard.js +1 -1
- package/dist/labs/card/OscdElevatedCard.js.map +1 -1
- package/dist/labs/card/OscdFilledCard.d.ts +1 -1
- package/dist/labs/card/OscdFilledCard.js +1 -1
- package/dist/labs/card/OscdFilledCard.js.map +1 -1
- package/dist/labs/card/OscdOutlinedCard.d.ts +1 -1
- package/dist/labs/card/OscdOutlinedCard.js +1 -1
- package/dist/labs/card/OscdOutlinedCard.js.map +1 -1
- package/dist/labs/item/OscdItem.d.ts +1 -1
- package/dist/labs/item/OscdItem.js.map +1 -1
- package/dist/labs/navigationbar/OscdNavigationBar.d.ts +1 -1
- package/dist/labs/navigationbar/OscdNavigationBar.js +1 -1
- package/dist/labs/navigationbar/OscdNavigationBar.js.map +1 -1
- package/dist/labs/navigationtab/OscdNavigationTab.d.ts +1 -1
- package/dist/labs/navigationtab/OscdNavigationTab.js +1 -1
- package/dist/labs/navigationtab/OscdNavigationTab.js.map +1 -1
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.d.ts +1 -1
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +1 -1
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js.map +1 -1
- package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.d.ts +1 -1
- package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js.map +1 -1
- package/dist/list/OscdList.d.ts +1 -1
- package/dist/list/OscdList.js.map +1 -1
- package/dist/list/OscdListItem.d.ts +1 -1
- package/dist/list/OscdListItem.js +1 -1
- package/dist/list/OscdListItem.js.map +1 -1
- package/dist/menu/OscdMenu.d.ts +1 -1
- package/dist/menu/OscdMenu.js +1 -1
- package/dist/menu/OscdMenu.js.map +1 -1
- package/dist/menu/OscdMenuItem.d.ts +1 -1
- package/dist/menu/OscdMenuItem.js +1 -1
- package/dist/menu/OscdMenuItem.js.map +1 -1
- package/dist/menu/OscdSubMenu.d.ts +1 -1
- package/dist/menu/OscdSubMenu.js.map +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawer.d.ts +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawer.js +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawerHeader.d.ts +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawerHeader.js +1 -1
- package/dist/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
- package/dist/progress/OscdCircularProgress.d.ts +1 -1
- package/dist/progress/OscdCircularProgress.js.map +1 -1
- package/dist/progress/OscdLinearProgress.d.ts +1 -1
- package/dist/progress/OscdLinearProgress.js.map +1 -1
- package/dist/radio/OscdRadio.d.ts +1 -1
- package/dist/radio/OscdRadio.js +1 -1
- package/dist/radio/OscdRadio.js.map +1 -1
- package/dist/ripple/OscdRipple.d.ts +1 -1
- package/dist/ripple/OscdRipple.js.map +1 -1
- package/dist/scl-checkbox/OscdSclCheckbox.js +1 -3
- package/dist/scl-checkbox/OscdSclCheckbox.js.map +1 -1
- package/dist/scl-icon/OscdSclIcon.d.ts +1 -1
- package/dist/scl-icon/OscdSclIcon.js +1 -1
- package/dist/scl-icon/OscdSclIcon.js.map +1 -1
- package/dist/search-field/internal/OutlinedSearchField.js.map +1 -1
- package/dist/select/OscdFilledSelect.d.ts +1 -1
- package/dist/select/OscdFilledSelect.js +1 -1
- package/dist/select/OscdFilledSelect.js.map +1 -1
- package/dist/select/OscdOutlinedSelect.d.ts +1 -1
- package/dist/select/OscdOutlinedSelect.js +1 -1
- package/dist/select/OscdOutlinedSelect.js.map +1 -1
- package/dist/select/OscdSelectOption.d.ts +1 -1
- package/dist/select/OscdSelectOption.js +1 -1
- package/dist/select/OscdSelectOption.js.map +1 -1
- package/dist/selection-list/OscdSelectionList.js.map +1 -1
- package/dist/slider/OscdSlider.d.ts +1 -1
- package/dist/slider/OscdSlider.js +1 -1
- package/dist/slider/OscdSlider.js.map +1 -1
- package/dist/switch/OscdSwitch.d.ts +1 -1
- package/dist/switch/OscdSwitch.js +1 -1
- package/dist/switch/OscdSwitch.js.map +1 -1
- package/dist/tabs/OscdPrimaryTab.d.ts +1 -1
- package/dist/tabs/OscdPrimaryTab.js +1 -1
- package/dist/tabs/OscdPrimaryTab.js.map +1 -1
- package/dist/tabs/OscdPrimaryTab.stories.js +1 -3
- package/dist/tabs/OscdPrimaryTab.stories.js.map +1 -1
- package/dist/tabs/OscdSecondaryTab.d.ts +1 -1
- package/dist/tabs/OscdSecondaryTab.js +1 -1
- package/dist/tabs/OscdSecondaryTab.js.map +1 -1
- package/dist/tabs/OscdSecondaryTab.stories.js +1 -3
- package/dist/tabs/OscdSecondaryTab.stories.js.map +1 -1
- package/dist/tabs/OscdTabs.d.ts +1 -1
- package/dist/tabs/OscdTabs.js +1 -1
- package/dist/tabs/OscdTabs.js.map +1 -1
- package/dist/textfield/OscdFilledTextField.d.ts +1 -1
- package/dist/textfield/OscdFilledTextField.js +1 -1
- package/dist/textfield/OscdFilledTextField.js.map +1 -1
- package/dist/textfield/OscdOutlinedTextField.d.ts +1 -1
- package/dist/textfield/OscdOutlinedTextField.js +1 -1
- package/dist/textfield/OscdOutlinedTextField.js.map +1 -1
- package/dist/tree/OscdTree.stories.js.map +1 -1
- package/dist/tree/internal/Tree.js +2 -2
- package/dist/tree/internal/Tree.js.map +1 -1
- package/dist/tree-grid/OscdTreeGrid.js +1 -4
- package/dist/tree-grid/OscdTreeGrid.js.map +1 -1
- package/dist/utils/storybook/getStorybookHelpers.js +2 -2
- package/dist/utils/storybook/getStorybookHelpers.js.map +1 -1
- package/dist/utils/storybook/getStorybookMeta.d.ts +5 -0
- package/dist/utils/storybook/getStorybookMeta.js +2 -1
- package/dist/utils/storybook/getStorybookMeta.js.map +1 -1
- package/package.json +39 -71
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement, type PropertyValueMap } from 'lit';
|
|
2
|
+
import * as AceGlobal from 'ace-builds';
|
|
3
|
+
import './ace.config.js';
|
|
4
|
+
import AceEditorBase from './ace-editor-base/AceEditorBase.js';
|
|
5
|
+
type AceSettingsMenuModule = {
|
|
6
|
+
init: () => void;
|
|
7
|
+
};
|
|
8
|
+
type AceEditorWithSettingsMenu = AceGlobal.Ace.Editor & {
|
|
9
|
+
showSettingsMenu?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export { AceGlobal };
|
|
12
|
+
export type { AceSettingsMenuModule, AceEditorWithSettingsMenu };
|
|
13
|
+
export declare class AceEditor extends LitElement {
|
|
14
|
+
value: string | undefined;
|
|
15
|
+
aceEditorBase: AceEditorBase;
|
|
16
|
+
get editor(): AceGlobal.Ace.Editor | undefined;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
protected updated(changedProps: PropertyValueMap<AceEditor>): void;
|
|
20
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
21
|
+
static styles: import("lit").CSSResult;
|
|
22
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { LitElement, html, css } from 'lit';
|
|
3
|
+
import * as AceGlobal from 'ace-builds';
|
|
4
|
+
import { property, query } from 'lit/decorators.js';
|
|
5
|
+
import './ace.config.js';
|
|
6
|
+
export { AceGlobal };
|
|
7
|
+
const ACE_DEFAULT_OPTIONS = {
|
|
8
|
+
fontSize: '17',
|
|
9
|
+
theme: 'ace/theme/oscd',
|
|
10
|
+
mode: 'ace/mode/xml',
|
|
11
|
+
};
|
|
12
|
+
const storageKey = 'oscd:ace-options';
|
|
13
|
+
const getStoredAceOptions = () => {
|
|
14
|
+
try {
|
|
15
|
+
const stored = localStorage.getItem(storageKey);
|
|
16
|
+
if (stored) {
|
|
17
|
+
return {
|
|
18
|
+
...ACE_DEFAULT_OPTIONS,
|
|
19
|
+
...JSON.parse(stored),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
console.warn('Failed to retrieve Ace options from storage:', error);
|
|
25
|
+
}
|
|
26
|
+
return ACE_DEFAULT_OPTIONS;
|
|
27
|
+
};
|
|
28
|
+
let aceOptions = getStoredAceOptions();
|
|
29
|
+
let isSettingsMenuInitialized = false;
|
|
30
|
+
function manageAceOptionChange(editor) {
|
|
31
|
+
editor.setOptions(aceOptions);
|
|
32
|
+
const originalSetOption = editor.setOption.bind(editor);
|
|
33
|
+
const originalSetOptions = editor.setOptions.bind(editor);
|
|
34
|
+
const persistOptions = () => {
|
|
35
|
+
try {
|
|
36
|
+
aceOptions = {
|
|
37
|
+
...ACE_DEFAULT_OPTIONS,
|
|
38
|
+
...editor.getOptions(),
|
|
39
|
+
};
|
|
40
|
+
localStorage.setItem(storageKey, JSON.stringify(aceOptions));
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
console.warn('Failed to store Ace options:', error);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
editor.setOption = (name, value) => {
|
|
47
|
+
originalSetOption(name, value);
|
|
48
|
+
persistOptions();
|
|
49
|
+
};
|
|
50
|
+
editor.setOptions = (options) => {
|
|
51
|
+
originalSetOptions(options);
|
|
52
|
+
persistOptions();
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export class AceEditor extends LitElement {
|
|
56
|
+
get editor() {
|
|
57
|
+
return this.aceEditorBase?.editor;
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
super.connectedCallback();
|
|
61
|
+
window.ace?.config?.addEventListener?.('editor', manageAceOptionChange);
|
|
62
|
+
if (!isSettingsMenuInitialized) {
|
|
63
|
+
const settingsMenu = window.ace?.require?.('ace/ext/settings_menu');
|
|
64
|
+
settingsMenu?.init();
|
|
65
|
+
isSettingsMenuInitialized = true;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
disconnectedCallback() {
|
|
69
|
+
super.disconnectedCallback();
|
|
70
|
+
window.ace?.config?.removeEventListener?.('editor', manageAceOptionChange);
|
|
71
|
+
}
|
|
72
|
+
updated(changedProps) {
|
|
73
|
+
if (changedProps.has('value')) {
|
|
74
|
+
// Clear selection when content updates
|
|
75
|
+
setTimeout(() => {
|
|
76
|
+
if (this.aceEditorBase?.editor) {
|
|
77
|
+
/* For reasons unknown the ace editor initially selects all code, so we need to clear that*/
|
|
78
|
+
this.aceEditorBase.editor.selection.clearSelection();
|
|
79
|
+
this.aceEditorBase.editor.moveCursorTo(0, 0);
|
|
80
|
+
}
|
|
81
|
+
}, 10);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
return html `
|
|
86
|
+
<ace-editor-base
|
|
87
|
+
.mode=${aceOptions.mode}
|
|
88
|
+
.theme=${aceOptions.theme}
|
|
89
|
+
.value=${this.value}
|
|
90
|
+
></ace-editor-base>
|
|
91
|
+
`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
AceEditor.styles = css `
|
|
95
|
+
:host {
|
|
96
|
+
display: block;
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
ace-editor-base {
|
|
102
|
+
display: inherit;
|
|
103
|
+
height: inherit;
|
|
104
|
+
width: inherit;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ type: String })
|
|
109
|
+
], AceEditor.prototype, "value", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
query('ace-editor-base')
|
|
112
|
+
], AceEditor.prototype, "aceEditorBase", void 0);
|
|
113
|
+
//# sourceMappingURL=AceEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AceEditor.js","sourceRoot":"","sources":["../../../ace-editor/internal/AceEditor.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAyB,MAAM,KAAK,CAAC;AACnE,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,iBAAiB,CAAC;AAYzB,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,MAAM,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,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,CAAC,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC/C,CAAC;YACH,CAAC,EAAE,EAAE,CAAC,CAAC;QACT,CAAC;IACH,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,CAAA;;gBAEC,UAAU,CAAC,IAAI;iBACd,UAAU,CAAC,KAAK;iBAChB,IAAI,CAAC,KAAK;;KAEtB,CAAC;IACJ,CAAC;;AAEe,gBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;GAY3B,CAAC;AA7DF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACD;AAG1B;IADC,KAAK,CAAC,iBAAiB,CAAC;gDACK","sourcesContent":["import { LitElement, html, css, type PropertyValueMap } from 'lit';\nimport * as AceGlobal from 'ace-builds';\nimport { property, query } from 'lit/decorators.js';\n\nimport './ace.config.js';\n\nimport AceEditorBase from './ace-editor-base/AceEditorBase.js';\n\ntype AceSettingsMenuModule = {\n init: () => void;\n};\n\ntype AceEditorWithSettingsMenu = AceGlobal.Ace.Editor & {\n showSettingsMenu?: () => void;\n};\n\nexport { AceGlobal };\nexport type { AceSettingsMenuModule, AceEditorWithSettingsMenu };\n\nconst ACE_DEFAULT_OPTIONS = {\n fontSize: '17',\n theme: 'ace/theme/oscd',\n mode: 'ace/mode/xml',\n};\n\nconst storageKey = 'oscd:ace-options';\n\nconst getStoredAceOptions = (): Omit<\n Partial<AceGlobal.Ace.EditorOptions>,\n 'theme' | 'mode'\n> &\n Pick<AceGlobal.Ace.EditorOptions, 'theme' | 'mode'> => {\n try {\n const stored = localStorage.getItem(storageKey);\n if (stored) {\n return {\n ...ACE_DEFAULT_OPTIONS,\n ...JSON.parse(stored),\n };\n }\n } catch (error) {\n console.warn('Failed to retrieve Ace options from storage:', error);\n }\n return ACE_DEFAULT_OPTIONS;\n};\n\nlet aceOptions = getStoredAceOptions();\nlet isSettingsMenuInitialized = false;\n\nfunction manageAceOptionChange(editor: AceGlobal.Ace.Editor) {\n editor.setOptions(aceOptions);\n\n const originalSetOption = editor.setOption.bind(editor);\n const originalSetOptions = editor.setOptions.bind(editor);\n const persistOptions = () => {\n try {\n aceOptions = {\n ...ACE_DEFAULT_OPTIONS,\n ...editor.getOptions(),\n };\n localStorage.setItem(storageKey, JSON.stringify(aceOptions));\n } catch (error) {\n console.warn('Failed to store Ace options:', error);\n }\n };\n\n editor.setOption = (name: string, value: unknown) => {\n originalSetOption(\n name as keyof AceGlobal.Ace.EditorOptions,\n value as never,\n );\n persistOptions();\n };\n\n editor.setOptions = (options: Partial<AceGlobal.Ace.EditorOptions>) => {\n originalSetOptions(options);\n persistOptions();\n };\n}\n\nexport class AceEditor extends LitElement {\n @property({ type: String })\n value: string | undefined;\n\n @query('ace-editor-base')\n aceEditorBase!: AceEditorBase;\n\n public get editor(): AceGlobal.Ace.Editor | undefined {\n return this.aceEditorBase?.editor;\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n window.ace?.config?.addEventListener?.('editor', manageAceOptionChange);\n\n if (!isSettingsMenuInitialized) {\n const settingsMenu = window.ace?.require?.('ace/ext/settings_menu') as\n AceSettingsMenuModule | undefined;\n settingsMenu?.init();\n isSettingsMenuInitialized = true;\n }\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n window.ace?.config?.removeEventListener?.('editor', manageAceOptionChange);\n }\n\n protected override updated(changedProps: PropertyValueMap<AceEditor>): void {\n if (changedProps.has('value')) {\n // Clear selection when content updates\n setTimeout(() => {\n if (this.aceEditorBase?.editor) {\n /* For reasons unknown the ace editor initially selects all code, so we need to clear that*/\n this.aceEditorBase.editor.selection.clearSelection();\n this.aceEditorBase.editor.moveCursorTo(0, 0);\n }\n }, 10);\n }\n }\n\n override render() {\n return html`\n <ace-editor-base\n .mode=${aceOptions.mode}\n .theme=${aceOptions.theme}\n .value=${this.value}\n ></ace-editor-base>\n `;\n }\n\n static override styles = css`\n :host {\n display: block;\n height: 100%;\n width: 100%;\n }\n\n ace-editor-base {\n display: inherit;\n height: inherit;\n width: inherit;\n }\n `;\n}\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Ace } from 'ace-builds';
|
|
2
|
+
import type * as AceGlobal from 'ace-builds';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
ace: typeof AceGlobal;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
declare enum ValueUpdateMode {
|
|
9
|
+
start = "start",
|
|
10
|
+
end = "end",
|
|
11
|
+
select = "select"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Custom element Ace code editor
|
|
15
|
+
*/
|
|
16
|
+
declare class AceEditorBase extends HTMLElement {
|
|
17
|
+
private static _observedAttributes;
|
|
18
|
+
private _editor?;
|
|
19
|
+
get editor(): Ace.Editor | undefined;
|
|
20
|
+
get version(): {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
value?: string;
|
|
24
|
+
mode?: string;
|
|
25
|
+
theme?: string;
|
|
26
|
+
tabSize?: number;
|
|
27
|
+
readonly?: boolean;
|
|
28
|
+
softTabs?: boolean;
|
|
29
|
+
wrap?: boolean;
|
|
30
|
+
valueUpdateMode?: ValueUpdateMode;
|
|
31
|
+
hideActiveLineHighlight?: boolean;
|
|
32
|
+
hideGutter?: boolean;
|
|
33
|
+
hideGutterLineHighlight?: boolean;
|
|
34
|
+
hidePrintMargin?: boolean;
|
|
35
|
+
basePath?: string;
|
|
36
|
+
static get observedAttributes(): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Registers an attribute to be observed.
|
|
39
|
+
*
|
|
40
|
+
* @param name Attribute name to observe.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
addObservedAttribute(name: string): void;
|
|
44
|
+
private dispatch;
|
|
45
|
+
private initializeEditor;
|
|
46
|
+
private appendStyles;
|
|
47
|
+
connectedCallback(): void;
|
|
48
|
+
disconnectedCallback(): void;
|
|
49
|
+
attributeChangedCallback(name: string): void;
|
|
50
|
+
notifyPropertyChanged(name: string): void;
|
|
51
|
+
resize(): void;
|
|
52
|
+
private handleChange;
|
|
53
|
+
private handleBlur;
|
|
54
|
+
}
|
|
55
|
+
export default AceEditorBase;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* eslint-disable class-methods-use-this */
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { NotifyAttribute, NotifyBooleanAttribute, NotifyNumericAttribute, } from './property-decorators.js';
|
|
4
|
+
import { debounce } from './debounce.js';
|
|
5
|
+
var ValueUpdateMode;
|
|
6
|
+
(function (ValueUpdateMode) {
|
|
7
|
+
ValueUpdateMode["start"] = "start";
|
|
8
|
+
ValueUpdateMode["end"] = "end";
|
|
9
|
+
ValueUpdateMode["select"] = "select";
|
|
10
|
+
})(ValueUpdateMode || (ValueUpdateMode = {}));
|
|
11
|
+
function getValueUpdateNumber(mode) {
|
|
12
|
+
if (mode === ValueUpdateMode.start) {
|
|
13
|
+
return -1;
|
|
14
|
+
}
|
|
15
|
+
if (mode === ValueUpdateMode.end) {
|
|
16
|
+
return 1;
|
|
17
|
+
}
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Custom element Ace code editor
|
|
22
|
+
*/
|
|
23
|
+
class AceEditorBase extends HTMLElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.initializeEditor = debounce(() => {
|
|
27
|
+
if (this.basePath) {
|
|
28
|
+
window.ace.config.set('basePath', this.basePath);
|
|
29
|
+
}
|
|
30
|
+
const editor = this._editor || window.ace.edit(this);
|
|
31
|
+
this.appendStyles();
|
|
32
|
+
editor.session.setMode(this.mode || 'ace/mode/xml');
|
|
33
|
+
editor.setTheme(this.theme || 'ace/theme/oscd');
|
|
34
|
+
const text = editor.getValue() || '';
|
|
35
|
+
if (text !== this.value) {
|
|
36
|
+
editor.setValue(this.value || '', getValueUpdateNumber(this.valueUpdateMode));
|
|
37
|
+
}
|
|
38
|
+
editor.getSession().setTabSize(this.tabSize || 2);
|
|
39
|
+
editor.getSession().setUseSoftTabs(!!this.softTabs);
|
|
40
|
+
editor.renderer.setShowGutter(!this.hideGutter);
|
|
41
|
+
editor.renderer.setShowPrintMargin(!this.hidePrintMargin);
|
|
42
|
+
editor.setHighlightActiveLine(!this.hideActiveLineHighlight);
|
|
43
|
+
editor.setHighlightGutterLine(!this.hideGutterLineHighlight);
|
|
44
|
+
editor.setReadOnly(!!this.readonly);
|
|
45
|
+
if (this.readonly) {
|
|
46
|
+
editor.setHighlightActiveLine(!this.readonly);
|
|
47
|
+
editor.setHighlightGutterLine(!this.readonly);
|
|
48
|
+
}
|
|
49
|
+
editor.getSession().setUseWrapMode(!!this.wrap);
|
|
50
|
+
editor.off('change', this.handleChange);
|
|
51
|
+
editor.on('change', this.handleChange);
|
|
52
|
+
editor.off('blur', this.handleBlur);
|
|
53
|
+
editor.on('blur', this.handleBlur);
|
|
54
|
+
this.resize();
|
|
55
|
+
this._editor = editor;
|
|
56
|
+
});
|
|
57
|
+
this.handleChange = debounce(() => {
|
|
58
|
+
const text = this._editor?.getValue() || '';
|
|
59
|
+
if (text !== this.value) {
|
|
60
|
+
if (text) {
|
|
61
|
+
this.setAttribute('value', text);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
this.removeAttribute('value');
|
|
65
|
+
}
|
|
66
|
+
this.dispatch('change', text);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
this.handleBlur = () => {
|
|
70
|
+
this.dispatchEvent(new FocusEvent('blur'));
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
get editor() {
|
|
74
|
+
return this._editor;
|
|
75
|
+
}
|
|
76
|
+
get version() {
|
|
77
|
+
return {
|
|
78
|
+
ace: window.ace?.version || 'unknown',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get observedAttributes() {
|
|
82
|
+
return AceEditorBase._observedAttributes;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Registers an attribute to be observed.
|
|
86
|
+
*
|
|
87
|
+
* @param name Attribute name to observe.
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
addObservedAttribute(name) {
|
|
91
|
+
AceEditorBase._observedAttributes.push(name);
|
|
92
|
+
}
|
|
93
|
+
dispatch(type, detail) {
|
|
94
|
+
this.dispatchEvent(new CustomEvent(type, {
|
|
95
|
+
bubbles: true,
|
|
96
|
+
composed: true,
|
|
97
|
+
cancelable: false,
|
|
98
|
+
detail,
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
appendStyles() {
|
|
102
|
+
const rootNode = this.getRootNode();
|
|
103
|
+
const aceStyleId = `ace_editor.css`;
|
|
104
|
+
const customStyleId = `ace-custom-element-style`;
|
|
105
|
+
// initialize styles if rendering on the client:
|
|
106
|
+
if (rootNode) {
|
|
107
|
+
if (!rootNode.getElementById?.(customStyleId)) {
|
|
108
|
+
const style = document.createElement('style');
|
|
109
|
+
style.id = customStyleId;
|
|
110
|
+
style.type = 'text/css';
|
|
111
|
+
style.innerHTML = `
|
|
112
|
+
ace-editor {
|
|
113
|
+
display: block;
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 250px;
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
if (rootNode instanceof Document && rootNode.head) {
|
|
119
|
+
rootNode.head.appendChild(style);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
rootNode.appendChild(style);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (!rootNode.getElementById?.(aceStyleId)) {
|
|
126
|
+
const editorStyle = document.getElementById(aceStyleId);
|
|
127
|
+
if (editorStyle) {
|
|
128
|
+
if (rootNode instanceof Document && rootNode.head) {
|
|
129
|
+
rootNode.head.appendChild(editorStyle.cloneNode(true));
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
rootNode.appendChild(editorStyle.cloneNode(true));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
connectedCallback() {
|
|
139
|
+
this.initializeEditor().then(() => {
|
|
140
|
+
this.dispatch('ready', {
|
|
141
|
+
editor: this.editor,
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
disconnectedCallback() {
|
|
146
|
+
if (!this._editor) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this._editor.off('change', this.handleChange);
|
|
150
|
+
this._editor.off('blur', this.handleBlur);
|
|
151
|
+
}
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
153
|
+
attributeChangedCallback(name) {
|
|
154
|
+
this.initializeEditor();
|
|
155
|
+
}
|
|
156
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
157
|
+
notifyPropertyChanged(name) {
|
|
158
|
+
this.initializeEditor();
|
|
159
|
+
}
|
|
160
|
+
resize() {
|
|
161
|
+
this._editor?.resize();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
AceEditorBase._observedAttributes = [];
|
|
165
|
+
__decorate([
|
|
166
|
+
NotifyAttribute()
|
|
167
|
+
], AceEditorBase.prototype, "value", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
NotifyAttribute()
|
|
170
|
+
], AceEditorBase.prototype, "mode", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
NotifyAttribute()
|
|
173
|
+
], AceEditorBase.prototype, "theme", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
NotifyNumericAttribute()
|
|
176
|
+
], AceEditorBase.prototype, "tabSize", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
NotifyBooleanAttribute()
|
|
179
|
+
], AceEditorBase.prototype, "readonly", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
NotifyBooleanAttribute()
|
|
182
|
+
], AceEditorBase.prototype, "softTabs", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
NotifyBooleanAttribute()
|
|
185
|
+
], AceEditorBase.prototype, "wrap", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
NotifyAttribute()
|
|
188
|
+
], AceEditorBase.prototype, "valueUpdateMode", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
NotifyBooleanAttribute()
|
|
191
|
+
], AceEditorBase.prototype, "hideActiveLineHighlight", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
NotifyBooleanAttribute()
|
|
194
|
+
], AceEditorBase.prototype, "hideGutter", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
NotifyBooleanAttribute()
|
|
197
|
+
], AceEditorBase.prototype, "hideGutterLineHighlight", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
NotifyBooleanAttribute()
|
|
200
|
+
], AceEditorBase.prototype, "hidePrintMargin", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
NotifyAttribute()
|
|
203
|
+
], AceEditorBase.prototype, "basePath", void 0);
|
|
204
|
+
export default AceEditorBase;
|
|
205
|
+
//# sourceMappingURL=AceEditorBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AceEditorBase.js","sourceRoot":"","sources":["../../../../ace-editor/internal/ace-editor-base/AceEditorBase.ts"],"names":[],"mappings":"AAAA,2CAA2C;;AAE3C,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AASzC,IAAK,eAIJ;AAJD,WAAK,eAAe;IAClB,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,oCAAiB,CAAA;AACnB,CAAC,EAJI,eAAe,KAAf,eAAe,QAInB;AAED,SAAS,oBAAoB,CAAC,IAAsB;IAClD,IAAI,IAAI,KAAK,eAAe,CAAC,KAAK,EAAE,CAAC;QACnC,OAAO,CAAC,CAAC,CAAC;IACZ,C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CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,6DAA6D;IAC7D,wBAAwB,CAAC,IAAY;QACnC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,6DAA6D;IAC7D,qBAAqB,CAAC,IAAY;QAChC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IACzB,CAAC;;AA/Lc,iCAAmB,GAAa,EAAE,AAAf,CAAgB;AAclD;IADC,eAAe,EAAE;4CACH;AAGf;IADC,eAAe,EAAE;2CACJ;AAGd;IADC,eAAe,EAAE;4CACH;AAGf;IADC,sBAAsB,EAAE;8CACR;AAGjB;IADC,sBAAsB,EAAE;+CACN;AAGnB;IADC,sBAAsB,EAAE;+CACN;AAGnB;IADC,sBAAsB,EAAE;2CACV;AAGf;IADC,eAAe,EAAE;sDACgB;AAGlC;IADC,sBAAsB,EAAE;8DACS;AAGlC;IADC,sBAAsB,EAAE;iDACJ;AAGrB;IADC,sBAAsB,EAAE;8DACS;AAGlC;IADC,sBAAsB,EAAE;sDACC;AAG1B;IADC,eAAe,EAAE;+CACA;AAiKpB,eAAe,aAAa,CAAC","sourcesContent":["/* eslint-disable class-methods-use-this */\n\nimport {\n NotifyAttribute,\n NotifyBooleanAttribute,\n NotifyNumericAttribute,\n} from './property-decorators.js';\n\nimport { Ace } from 'ace-builds';\nimport { debounce } from './debounce.js';\nimport type * as AceGlobal from 'ace-builds';\n\ndeclare global {\n interface Window {\n ace: typeof AceGlobal;\n }\n}\n\nenum ValueUpdateMode {\n start = 'start',\n end = 'end',\n select = 'select',\n}\n\nfunction getValueUpdateNumber(mode?: ValueUpdateMode): number {\n if (mode === ValueUpdateMode.start) {\n return -1;\n }\n if (mode === ValueUpdateMode.end) {\n return 1;\n }\n return 0;\n}\n\n/**\n * Custom element Ace code editor\n */\nclass AceEditorBase extends HTMLElement {\n private static _observedAttributes: string[] = [];\n\n private _editor?: Ace.Editor;\n get editor(): Ace.Editor | undefined {\n return this._editor;\n }\n\n get version(): { [key: string]: string } {\n return {\n ace: window.ace?.version || 'unknown',\n };\n }\n\n @NotifyAttribute()\n value?: string;\n\n @NotifyAttribute()\n mode?: string;\n\n @NotifyAttribute()\n theme?: string;\n\n @NotifyNumericAttribute()\n tabSize?: number;\n\n @NotifyBooleanAttribute()\n readonly?: boolean;\n\n @NotifyBooleanAttribute()\n softTabs?: boolean;\n\n @NotifyBooleanAttribute()\n wrap?: boolean;\n\n @NotifyAttribute()\n valueUpdateMode?: ValueUpdateMode;\n\n @NotifyBooleanAttribute()\n hideActiveLineHighlight?: boolean;\n\n @NotifyBooleanAttribute()\n hideGutter?: boolean;\n\n @NotifyBooleanAttribute()\n hideGutterLineHighlight?: boolean;\n\n @NotifyBooleanAttribute()\n hidePrintMargin?: boolean;\n\n @NotifyAttribute()\n basePath?: string;\n\n static get observedAttributes(): string[] {\n return AceEditorBase._observedAttributes;\n }\n\n /**\n * Registers an attribute to be observed.\n *\n * @param name Attribute name to observe.\n * @internal\n */\n addObservedAttribute(name: string): void {\n AceEditorBase._observedAttributes.push(name);\n }\n\n private dispatch<T>(type: string, detail: T): void {\n this.dispatchEvent(\n new CustomEvent(type, {\n bubbles: true,\n composed: true,\n cancelable: false,\n detail,\n }),\n );\n }\n\n private initializeEditor = debounce(() => {\n if (this.basePath) {\n window.ace.config.set('basePath', this.basePath);\n }\n\n const editor = this._editor || window.ace.edit(this);\n\n this.appendStyles();\n\n editor.session.setMode(this.mode || 'ace/mode/xml');\n editor.setTheme(this.theme || 'ace/theme/oscd');\n\n const text = editor.getValue() || '';\n if (text !== this.value) {\n editor.setValue(\n this.value || '',\n getValueUpdateNumber(this.valueUpdateMode),\n );\n }\n\n editor.getSession().setTabSize(this.tabSize || 2);\n editor.getSession().setUseSoftTabs(!!this.softTabs);\n\n editor.renderer.setShowGutter(!this.hideGutter);\n editor.renderer.setShowPrintMargin(!this.hidePrintMargin);\n editor.setHighlightActiveLine(!this.hideActiveLineHighlight);\n editor.setHighlightGutterLine(!this.hideGutterLineHighlight);\n\n editor.setReadOnly(!!this.readonly);\n if (this.readonly) {\n editor.setHighlightActiveLine(!this.readonly);\n editor.setHighlightGutterLine(!this.readonly);\n }\n\n editor.getSession().setUseWrapMode(!!this.wrap);\n\n editor.off('change', this.handleChange);\n editor.on('change', this.handleChange);\n editor.off('blur', this.handleBlur);\n editor.on('blur', this.handleBlur);\n\n this.resize();\n\n this._editor = editor;\n });\n\n private appendStyles() {\n const rootNode = this.getRootNode() as Document | ShadowRoot | undefined;\n const aceStyleId = `ace_editor.css`;\n const customStyleId = `ace-custom-element-style`;\n\n // initialize styles if rendering on the client:\n if (rootNode) {\n if (!rootNode.getElementById?.(customStyleId)) {\n const style = document.createElement('style');\n style.id = customStyleId;\n style.type = 'text/css';\n style.innerHTML = `\n ace-editor {\n display: block;\n width: 100%;\n height: 250px;\n }\n `;\n\n if (rootNode instanceof Document && rootNode.head) {\n rootNode.head.appendChild(style);\n } else {\n rootNode.appendChild(style);\n }\n }\n\n if (!rootNode.getElementById?.(aceStyleId)) {\n const editorStyle = document.getElementById(aceStyleId);\n if (editorStyle) {\n if (rootNode instanceof Document && rootNode.head) {\n rootNode.head.appendChild(editorStyle.cloneNode(true));\n } else {\n rootNode.appendChild(editorStyle.cloneNode(true));\n }\n }\n }\n }\n }\n\n connectedCallback(): void {\n this.initializeEditor().then(() => {\n this.dispatch('ready', {\n editor: this.editor,\n });\n });\n }\n\n disconnectedCallback(): void {\n if (!this._editor) {\n return;\n }\n\n this._editor.off('change', this.handleChange);\n this._editor.off('blur', this.handleBlur);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n attributeChangedCallback(name: string): void {\n this.initializeEditor();\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n notifyPropertyChanged(name: string): void {\n this.initializeEditor();\n }\n\n resize(): void {\n this._editor?.resize();\n }\n\n private handleChange = debounce(() => {\n const text = this._editor?.getValue() || '';\n if (text !== this.value) {\n if (text) {\n this.setAttribute('value', text);\n } else {\n this.removeAttribute('value');\n }\n\n this.dispatch('change', text);\n }\n });\n\n private handleBlur = () => {\n this.dispatchEvent(new FocusEvent('blur'));\n };\n}\n\nexport default AceEditorBase;\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2020 Google LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Returns a new function that delays invocations to the original function
|
|
18
|
+
* within a specified wait period. The last invocation within this time period
|
|
19
|
+
* gets invoked. All earlier invocations are ignore.
|
|
20
|
+
*
|
|
21
|
+
* @param func The function to invoke.
|
|
22
|
+
* @param wait The time in milliseconds to wait for idle invocations.
|
|
23
|
+
*/
|
|
24
|
+
export declare function debounce<T>(func: (...params: any[]) => T, wait?: number): () => Promise<T>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Returns a new function that delays invocations to the original function
|
|
19
|
+
* within a specified wait period. The last invocation within this time period
|
|
20
|
+
* gets invoked. All earlier invocations are ignore.
|
|
21
|
+
*
|
|
22
|
+
* @param func The function to invoke.
|
|
23
|
+
* @param wait The time in milliseconds to wait for idle invocations.
|
|
24
|
+
*/
|
|
25
|
+
export function debounce(func, wait = 0) {
|
|
26
|
+
let timeout;
|
|
27
|
+
return function (...args) {
|
|
28
|
+
window.clearTimeout(timeout);
|
|
29
|
+
const later = function () {
|
|
30
|
+
timeout = undefined;
|
|
31
|
+
return func(...args);
|
|
32
|
+
};
|
|
33
|
+
return new Promise(resolve => {
|
|
34
|
+
timeout = window.setTimeout(() => {
|
|
35
|
+
const result = later();
|
|
36
|
+
resolve(result);
|
|
37
|
+
}, wait);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../../ace-editor/internal/ace-editor-base/debounce.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CACtB,IAA6B,EAC7B,IAAI,GAAG,CAAC;IAER,IAAI,OAA2B,CAAC;IAEhC,OAAO,UAAU,GAAG,IAAW;QAC7B,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAE7B,MAAM,KAAK,GAAG;YACZ,OAAO,GAAG,SAAS,CAAC;YACpB,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACvB,CAAC,CAAC;QAEF,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;YAC3B,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBAC/B,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC;gBACvB,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,EAAE,IAAI,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Returns a new function that delays invocations to the original function\n * within a specified wait period. The last invocation within this time period\n * gets invoked. All earlier invocations are ignore.\n *\n * @param func The function to invoke.\n * @param wait The time in milliseconds to wait for idle invocations.\n */\nexport function debounce<T>(\n func: (...params: any[]) => T,\n wait = 0,\n): () => Promise<T> {\n let timeout: number | undefined;\n\n return function (...args: any[]): Promise<any> {\n window.clearTimeout(timeout);\n\n const later = function (): any {\n timeout = undefined;\n return func(...args);\n };\n\n return new Promise(resolve => {\n timeout = window.setTimeout(() => {\n const result = later();\n resolve(result);\n }, wait);\n });\n };\n}\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2020 Google LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Describes notification target for the `Notify` decorators.
|
|
18
|
+
*/
|
|
19
|
+
interface NotifyTarget {
|
|
20
|
+
notifyPropertyChanged: (name: string) => void;
|
|
21
|
+
addObservedAttribute?: (name: string) => void;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Defines that the target property should be exposed as an attribute, and
|
|
26
|
+
* that changes to the attribute should trigger a `notifyPropertyChanged`
|
|
27
|
+
* callback.
|
|
28
|
+
*
|
|
29
|
+
* @param attribute Override the attribute name to use. If ommitted, the
|
|
30
|
+
* property name is used (coverted from camelCase, to kebab-case).
|
|
31
|
+
*/
|
|
32
|
+
export declare function NotifyAttribute(attribute?: string): (target: NotifyTarget & HTMLElement, key: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Defines that the target property should be exposed as boolean attribute, and
|
|
35
|
+
* that changes to the attribute should trigger a `notifyPropertyChanged`
|
|
36
|
+
* callback.
|
|
37
|
+
*
|
|
38
|
+
* @param attribute Override the attribute name to use. If ommitted, the
|
|
39
|
+
* property name is used (coverted from camelCase, to snake-case).
|
|
40
|
+
*/
|
|
41
|
+
export declare function NotifyBooleanAttribute(attribute?: string): (target: NotifyTarget & HTMLElement, key: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Defines that the target property should be exposed as numeric attribute, and
|
|
44
|
+
* that changes to the attribute should trigger a `notifyPropertyChanged`
|
|
45
|
+
* callback.
|
|
46
|
+
*
|
|
47
|
+
* @param attribute Override the attribute name to use. If ommitted, the
|
|
48
|
+
* property name is used (coverted from camelCase, to snake-case).
|
|
49
|
+
*/
|
|
50
|
+
export declare function NotifyNumericAttribute(attribute?: string): (target: NotifyTarget & HTMLElement, key: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Defines that the target property should trigger a `notifyPropertyChanged`
|
|
53
|
+
* callback when the property changes.
|
|
54
|
+
*
|
|
55
|
+
* @param attribute Expose the property as an attribute. Note that when
|
|
56
|
+
* attribute is specified, this method has the same behavior as
|
|
57
|
+
* `NotifyAttribute`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function Notify(attribute?: string): (target: NotifyTarget & HTMLElement, key: string) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Creates an alias for the given property with a getter and a setter.
|
|
62
|
+
*
|
|
63
|
+
* @param alias Name of the alias.
|
|
64
|
+
*/
|
|
65
|
+
export declare function Alias(alias: string): (target: NotifyTarget, key: string) => void;
|
|
66
|
+
export {};
|