@omicronenergy/oscd-ui 0.0.18 → 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.
Files changed (724) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/custom-elements.json +12341 -8939
  3. package/dist/ace-editor/OscdAceEditor.d.ts +34 -0
  4. package/dist/ace-editor/OscdAceEditor.js +33 -0
  5. package/dist/ace-editor/OscdAceEditor.js.map +1 -0
  6. package/dist/ace-editor/OscdAceEditor.spec.d.ts +1 -0
  7. package/dist/ace-editor/OscdAceEditor.spec.js +16 -0
  8. package/dist/ace-editor/OscdAceEditor.spec.js.map +1 -0
  9. package/dist/ace-editor/OscdAceEditor.stories.d.ts +28 -0
  10. package/dist/ace-editor/OscdAceEditor.stories.js +22 -0
  11. package/dist/ace-editor/OscdAceEditor.stories.js.map +1 -0
  12. package/dist/ace-editor/ace/ace.js +22045 -0
  13. package/dist/ace-editor/ace/ext-beautify.js +343 -0
  14. package/dist/ace-editor/ace/ext-code_lens.js +204 -0
  15. package/dist/ace-editor/ace/ext-command_bar.js +469 -0
  16. package/dist/ace-editor/ace/ext-diff.js +4270 -0
  17. package/dist/ace-editor/ace/ext-elastic_tabstops_lite.js +238 -0
  18. package/dist/ace-editor/ace/ext-emmet.js +1303 -0
  19. package/dist/ace-editor/ace/ext-error_marker.js +9 -0
  20. package/dist/ace-editor/ace/ext-hardwrap.js +127 -0
  21. package/dist/ace-editor/ace/ext-inline_autocomplete.js +3547 -0
  22. package/dist/ace-editor/ace/ext-keybinding_menu.js +185 -0
  23. package/dist/ace-editor/ace/ext-language_tools.js +2724 -0
  24. package/dist/ace-editor/ace/ext-linking.js +66 -0
  25. package/dist/ace-editor/ace/ext-modelist.js +279 -0
  26. package/dist/ace-editor/ace/ext-options.js +862 -0
  27. package/dist/ace-editor/ace/ext-prompt.js +3164 -0
  28. package/dist/ace-editor/ace/ext-rtl.js +146 -0
  29. package/dist/ace-editor/ace/ext-searchbox.js +385 -0
  30. package/dist/ace-editor/ace/ext-settings_menu.js +862 -0
  31. package/dist/ace-editor/ace/ext-simple_tokenizer.js +137 -0
  32. package/dist/ace-editor/ace/ext-spellcheck.js +79 -0
  33. package/dist/ace-editor/ace/ext-split.js +203 -0
  34. package/dist/ace-editor/ace/ext-static_highlight.js +194 -0
  35. package/dist/ace-editor/ace/ext-statusbar.js +63 -0
  36. package/dist/ace-editor/ace/ext-textarea.js +400 -0
  37. package/dist/ace-editor/ace/ext-themelist.js +80 -0
  38. package/dist/ace-editor/ace/ext-whitespace.js +201 -0
  39. package/dist/ace-editor/ace/ext-whitespaces_in_selection.js +325 -0
  40. package/dist/ace-editor/ace/keybinding-emacs.js +1067 -0
  41. package/dist/ace-editor/ace/keybinding-sublime.js +409 -0
  42. package/dist/ace-editor/ace/keybinding-vim.js +7101 -0
  43. package/dist/ace-editor/ace/keybinding-vscode.js +255 -0
  44. package/dist/ace-editor/ace/mode-abap.js +200 -0
  45. package/dist/ace-editor/ace/mode-abc.js +243 -0
  46. package/dist/ace-editor/ace/mode-actionscript.js +234 -0
  47. package/dist/ace-editor/ace/mode-ada.js +108 -0
  48. package/dist/ace-editor/ace/mode-alda.js +279 -0
  49. package/dist/ace-editor/ace/mode-apache_conf.js +318 -0
  50. package/dist/ace-editor/ace/mode-apex.js +402 -0
  51. package/dist/ace-editor/ace/mode-applescript.js +232 -0
  52. package/dist/ace-editor/ace/mode-aql.js +92 -0
  53. package/dist/ace-editor/ace/mode-asciidoc.js +311 -0
  54. package/dist/ace-editor/ace/mode-asl.js +357 -0
  55. package/dist/ace-editor/ace/mode-assembly_arm32.js +185 -0
  56. package/dist/ace-editor/ace/mode-assembly_x86.js +170 -0
  57. package/dist/ace-editor/ace/mode-astro.js +2475 -0
  58. package/dist/ace-editor/ace/mode-autohotkey.js +208 -0
  59. package/dist/ace-editor/ace/mode-basic.js +201 -0
  60. package/dist/ace-editor/ace/mode-batchfile.js +199 -0
  61. package/dist/ace-editor/ace/mode-bibtex.js +318 -0
  62. package/dist/ace-editor/ace/mode-c9search.js +250 -0
  63. package/dist/ace-editor/ace/mode-c_cpp.js +417 -0
  64. package/dist/ace-editor/ace/mode-cedar.js +289 -0
  65. package/dist/ace-editor/ace/mode-cedarschema.js +275 -0
  66. package/dist/ace-editor/ace/mode-cirru.js +192 -0
  67. package/dist/ace-editor/ace/mode-clojure.js +322 -0
  68. package/dist/ace-editor/ace/mode-clue.js +361 -0
  69. package/dist/ace-editor/ace/mode-cobol.js +82 -0
  70. package/dist/ace-editor/ace/mode-coffee.js +335 -0
  71. package/dist/ace-editor/ace/mode-coldfusion.js +2410 -0
  72. package/dist/ace-editor/ace/mode-crystal.js +586 -0
  73. package/dist/ace-editor/ace/mode-csharp.js +413 -0
  74. package/dist/ace-editor/ace/mode-csound_document.js +4073 -0
  75. package/dist/ace-editor/ace/mode-csound_orchestra.js +2923 -0
  76. package/dist/ace-editor/ace/mode-csound_score.js +409 -0
  77. package/dist/ace-editor/ace/mode-csp.js +59 -0
  78. package/dist/ace-editor/ace/mode-css.js +632 -0
  79. package/dist/ace-editor/ace/mode-csv.js +97 -0
  80. package/dist/ace-editor/ace/mode-curly.js +2382 -0
  81. package/dist/ace-editor/ace/mode-cuttlefish.js +56 -0
  82. package/dist/ace-editor/ace/mode-d.js +450 -0
  83. package/dist/ace-editor/ace/mode-dart.js +618 -0
  84. package/dist/ace-editor/ace/mode-diff.js +129 -0
  85. package/dist/ace-editor/ace/mode-django.js +2423 -0
  86. package/dist/ace-editor/ace/mode-dockerfile.js +427 -0
  87. package/dist/ace-editor/ace/mode-dot.js +348 -0
  88. package/dist/ace-editor/ace/mode-drools.js +607 -0
  89. package/dist/ace-editor/ace/mode-edifact.js +130 -0
  90. package/dist/ace-editor/ace/mode-eiffel.js +120 -0
  91. package/dist/ace-editor/ace/mode-ejs.js +3278 -0
  92. package/dist/ace-editor/ace/mode-elixir.js +443 -0
  93. package/dist/ace-editor/ace/mode-elm.js +274 -0
  94. package/dist/ace-editor/ace/mode-erlang.js +836 -0
  95. package/dist/ace-editor/ace/mode-flix.js +163 -0
  96. package/dist/ace-editor/ace/mode-forth.js +253 -0
  97. package/dist/ace-editor/ace/mode-fortran.js +361 -0
  98. package/dist/ace-editor/ace/mode-fsharp.js +277 -0
  99. package/dist/ace-editor/ace/mode-fsl.js +226 -0
  100. package/dist/ace-editor/ace/mode-ftl.js +1256 -0
  101. package/dist/ace-editor/ace/mode-gcode.js +74 -0
  102. package/dist/ace-editor/ace/mode-gherkin.js +154 -0
  103. package/dist/ace-editor/ace/mode-gitignore.js +49 -0
  104. package/dist/ace-editor/ace/mode-glsl.js +475 -0
  105. package/dist/ace-editor/ace/mode-gobstones.js +1460 -0
  106. package/dist/ace-editor/ace/mode-golang.js +341 -0
  107. package/dist/ace-editor/ace/mode-graphqlschema.js +174 -0
  108. package/dist/ace-editor/ace/mode-groovy.js +1402 -0
  109. package/dist/ace-editor/ace/mode-groq.js +288 -0
  110. package/dist/ace-editor/ace/mode-haml.js +1907 -0
  111. package/dist/ace-editor/ace/mode-handlebars.js +2439 -0
  112. package/dist/ace-editor/ace/mode-haskell.js +324 -0
  113. package/dist/ace-editor/ace/mode-haskell_cabal.js +135 -0
  114. package/dist/ace-editor/ace/mode-haxe.js +313 -0
  115. package/dist/ace-editor/ace/mode-hjson.js +318 -0
  116. package/dist/ace-editor/ace/mode-html.js +2340 -0
  117. package/dist/ace-editor/ace/mode-html_elixir.js +2846 -0
  118. package/dist/ace-editor/ace/mode-html_ruby.js +3295 -0
  119. package/dist/ace-editor/ace/mode-ini.js +138 -0
  120. package/dist/ace-editor/ace/mode-io.js +210 -0
  121. package/dist/ace-editor/ace/mode-ion.js +477 -0
  122. package/dist/ace-editor/ace/mode-jack.js +293 -0
  123. package/dist/ace-editor/ace/mode-jade.js +2018 -0
  124. package/dist/ace-editor/ace/mode-java.js +1566 -0
  125. package/dist/ace-editor/ace/mode-javascript.js +1192 -0
  126. package/dist/ace-editor/ace/mode-jexl.js +270 -0
  127. package/dist/ace-editor/ace/mode-json.js +275 -0
  128. package/dist/ace-editor/ace/mode-json5.js +308 -0
  129. package/dist/ace-editor/ace/mode-jsoniq.js +2577 -0
  130. package/dist/ace-editor/ace/mode-jsp.js +1619 -0
  131. package/dist/ace-editor/ace/mode-jssm.js +293 -0
  132. package/dist/ace-editor/ace/mode-jsx.js +1210 -0
  133. package/dist/ace-editor/ace/mode-julia.js +254 -0
  134. package/dist/ace-editor/ace/mode-kotlin.js +445 -0
  135. package/dist/ace-editor/ace/mode-latex.js +252 -0
  136. package/dist/ace-editor/ace/mode-latte.js +2523 -0
  137. package/dist/ace-editor/ace/mode-less.js +742 -0
  138. package/dist/ace-editor/ace/mode-liquid.js +2742 -0
  139. package/dist/ace-editor/ace/mode-lisp.js +104 -0
  140. package/dist/ace-editor/ace/mode-livescript.js +272 -0
  141. package/dist/ace-editor/ace/mode-logiql.js +272 -0
  142. package/dist/ace-editor/ace/mode-logtalk.js +309 -0
  143. package/dist/ace-editor/ace/mode-lsl.js +287 -0
  144. package/dist/ace-editor/ace/mode-lua.js +393 -0
  145. package/dist/ace-editor/ace/mode-luapage.js +2786 -0
  146. package/dist/ace-editor/ace/mode-lucene.js +145 -0
  147. package/dist/ace-editor/ace/mode-makefile.js +374 -0
  148. package/dist/ace-editor/ace/mode-mariadb.js +149 -0
  149. package/dist/ace-editor/ace/mode-markdown.js +2936 -0
  150. package/dist/ace-editor/ace/mode-mask.js +1758 -0
  151. package/dist/ace-editor/ace/mode-matlab.js +239 -0
  152. package/dist/ace-editor/ace/mode-maze.js +256 -0
  153. package/dist/ace-editor/ace/mode-mediawiki.js +580 -0
  154. package/dist/ace-editor/ace/mode-mel.js +213 -0
  155. package/dist/ace-editor/ace/mode-mips.js +231 -0
  156. package/dist/ace-editor/ace/mode-mixal.js +110 -0
  157. package/dist/ace-editor/ace/mode-mushcode.js +642 -0
  158. package/dist/ace-editor/ace/mode-mysql.js +150 -0
  159. package/dist/ace-editor/ace/mode-nasal.js +513 -0
  160. package/dist/ace-editor/ace/mode-nginx.js +262 -0
  161. package/dist/ace-editor/ace/mode-nim.js +325 -0
  162. package/dist/ace-editor/ace/mode-nix.js +555 -0
  163. package/dist/ace-editor/ace/mode-nsis.js +279 -0
  164. package/dist/ace-editor/ace/mode-nunjucks.js +2678 -0
  165. package/dist/ace-editor/ace/mode-objectivec.js +626 -0
  166. package/dist/ace-editor/ace/mode-ocaml.js +378 -0
  167. package/dist/ace-editor/ace/mode-odin.js +449 -0
  168. package/dist/ace-editor/ace/mode-partiql.js +750 -0
  169. package/dist/ace-editor/ace/mode-pascal.js +204 -0
  170. package/dist/ace-editor/ace/mode-perl.js +318 -0
  171. package/dist/ace-editor/ace/mode-pgsql.js +1861 -0
  172. package/dist/ace-editor/ace/mode-php.js +14079 -0
  173. package/dist/ace-editor/ace/mode-php_laravel_blade.js +14267 -0
  174. package/dist/ace-editor/ace/mode-pig.js +278 -0
  175. package/dist/ace-editor/ace/mode-plain_text.js +27 -0
  176. package/dist/ace-editor/ace/mode-plsql.js +268 -0
  177. package/dist/ace-editor/ace/mode-powershell.js +567 -0
  178. package/dist/ace-editor/ace/mode-praat.js +412 -0
  179. package/dist/ace-editor/ace/mode-prisma.js +457 -0
  180. package/dist/ace-editor/ace/mode-prolog.js +305 -0
  181. package/dist/ace-editor/ace/mode-properties.js +69 -0
  182. package/dist/ace-editor/ace/mode-protobuf.js +498 -0
  183. package/dist/ace-editor/ace/mode-prql.js +323 -0
  184. package/dist/ace-editor/ace/mode-puppet.js +316 -0
  185. package/dist/ace-editor/ace/mode-python.js +476 -0
  186. package/dist/ace-editor/ace/mode-qml.js +346 -0
  187. package/dist/ace-editor/ace/mode-r.js +387 -0
  188. package/dist/ace-editor/ace/mode-raku.js +516 -0
  189. package/dist/ace-editor/ace/mode-razor.js +2698 -0
  190. package/dist/ace-editor/ace/mode-rdoc.js +286 -0
  191. package/dist/ace-editor/ace/mode-red.js +388 -0
  192. package/dist/ace-editor/ace/mode-redshift.js +321 -0
  193. package/dist/ace-editor/ace/mode-rhtml.js +2751 -0
  194. package/dist/ace-editor/ace/mode-robot.js +168 -0
  195. package/dist/ace-editor/ace/mode-rst.js +245 -0
  196. package/dist/ace-editor/ace/mode-ruby.js +921 -0
  197. package/dist/ace-editor/ace/mode-rust.js +393 -0
  198. package/dist/ace-editor/ace/mode-sac.js +349 -0
  199. package/dist/ace-editor/ace/mode-sass.js +480 -0
  200. package/dist/ace-editor/ace/mode-scad.js +350 -0
  201. package/dist/ace-editor/ace/mode-scala.js +1396 -0
  202. package/dist/ace-editor/ace/mode-scheme.js +210 -0
  203. package/dist/ace-editor/ace/mode-scrypt.js +317 -0
  204. package/dist/ace-editor/ace/mode-scss.js +768 -0
  205. package/dist/ace-editor/ace/mode-sh.js +387 -0
  206. package/dist/ace-editor/ace/mode-sjs.js +1394 -0
  207. package/dist/ace-editor/ace/mode-slim.js +4771 -0
  208. package/dist/ace-editor/ace/mode-smarty.js +2437 -0
  209. package/dist/ace-editor/ace/mode-smithy.js +456 -0
  210. package/dist/ace-editor/ace/mode-snippets.js +183 -0
  211. package/dist/ace-editor/ace/mode-soy_template.js +2612 -0
  212. package/dist/ace-editor/ace/mode-space.js +151 -0
  213. package/dist/ace-editor/ace/mode-sparql.js +288 -0
  214. package/dist/ace-editor/ace/mode-sql.js +221 -0
  215. package/dist/ace-editor/ace/mode-sqlserver.js +391 -0
  216. package/dist/ace-editor/ace/mode-stylus.js +443 -0
  217. package/dist/ace-editor/ace/mode-svg.js +1488 -0
  218. package/dist/ace-editor/ace/mode-swift.js +342 -0
  219. package/dist/ace-editor/ace/mode-tcl.js +338 -0
  220. package/dist/ace-editor/ace/mode-terraform.js +346 -0
  221. package/dist/ace-editor/ace/mode-tex.js +212 -0
  222. package/dist/ace-editor/ace/mode-text.js +9 -0
  223. package/dist/ace-editor/ace/mode-textile.js +125 -0
  224. package/dist/ace-editor/ace/mode-toml.js +129 -0
  225. package/dist/ace-editor/ace/mode-tsv.js +124 -0
  226. package/dist/ace-editor/ace/mode-tsx.js +1277 -0
  227. package/dist/ace-editor/ace/mode-turtle.js +264 -0
  228. package/dist/ace-editor/ace/mode-twig.js +2503 -0
  229. package/dist/ace-editor/ace/mode-typescript.js +1255 -0
  230. package/dist/ace-editor/ace/mode-vala.js +554 -0
  231. package/dist/ace-editor/ace/mode-vbscript.js +731 -0
  232. package/dist/ace-editor/ace/mode-velocity.js +2581 -0
  233. package/dist/ace-editor/ace/mode-verilog.js +98 -0
  234. package/dist/ace-editor/ace/mode-vhdl.js +94 -0
  235. package/dist/ace-editor/ace/mode-visualforce.js +2455 -0
  236. package/dist/ace-editor/ace/mode-vue.js +3835 -0
  237. package/dist/ace-editor/ace/mode-wollok.js +1330 -0
  238. package/dist/ace-editor/ace/mode-xml.js +477 -0
  239. package/dist/ace-editor/ace/mode-xquery.js +2589 -0
  240. package/dist/ace-editor/ace/mode-yaml.js +395 -0
  241. package/dist/ace-editor/ace/mode-zeek.js +502 -0
  242. package/dist/ace-editor/ace/mode-zig.js +585 -0
  243. package/dist/ace-editor/ace/snippets/abap.js +9 -0
  244. package/dist/ace-editor/ace/snippets/abc.js +16 -0
  245. package/dist/ace-editor/ace/snippets/actionscript.js +16 -0
  246. package/dist/ace-editor/ace/snippets/ada.js +9 -0
  247. package/dist/ace-editor/ace/snippets/alda.js +9 -0
  248. package/dist/ace-editor/ace/snippets/apache_conf.js +9 -0
  249. package/dist/ace-editor/ace/snippets/apex.js +9 -0
  250. package/dist/ace-editor/ace/snippets/applescript.js +9 -0
  251. package/dist/ace-editor/ace/snippets/aql.js +9 -0
  252. package/dist/ace-editor/ace/snippets/asciidoc.js +9 -0
  253. package/dist/ace-editor/ace/snippets/asl.js +9 -0
  254. package/dist/ace-editor/ace/snippets/assembly_arm32.js +9 -0
  255. package/dist/ace-editor/ace/snippets/assembly_x86.js +9 -0
  256. package/dist/ace-editor/ace/snippets/astro.js +9 -0
  257. package/dist/ace-editor/ace/snippets/autohotkey.js +9 -0
  258. package/dist/ace-editor/ace/snippets/basic.js +9 -0
  259. package/dist/ace-editor/ace/snippets/batchfile.js +9 -0
  260. package/dist/ace-editor/ace/snippets/bibtex.js +9 -0
  261. package/dist/ace-editor/ace/snippets/c9search.js +9 -0
  262. package/dist/ace-editor/ace/snippets/c_cpp.js +16 -0
  263. package/dist/ace-editor/ace/snippets/cedar.js +16 -0
  264. package/dist/ace-editor/ace/snippets/cedarschema.js +16 -0
  265. package/dist/ace-editor/ace/snippets/cirru.js +9 -0
  266. package/dist/ace-editor/ace/snippets/clojure.js +16 -0
  267. package/dist/ace-editor/ace/snippets/clue.js +9 -0
  268. package/dist/ace-editor/ace/snippets/cobol.js +9 -0
  269. package/dist/ace-editor/ace/snippets/coffee.js +16 -0
  270. package/dist/ace-editor/ace/snippets/coldfusion.js +9 -0
  271. package/dist/ace-editor/ace/snippets/crystal.js +9 -0
  272. package/dist/ace-editor/ace/snippets/csharp.js +9 -0
  273. package/dist/ace-editor/ace/snippets/csound_document.js +16 -0
  274. package/dist/ace-editor/ace/snippets/csound_orchestra.js +16 -0
  275. package/dist/ace-editor/ace/snippets/csound_score.js +9 -0
  276. package/dist/ace-editor/ace/snippets/csp.js +9 -0
  277. package/dist/ace-editor/ace/snippets/css.js +16 -0
  278. package/dist/ace-editor/ace/snippets/csv.js +9 -0
  279. package/dist/ace-editor/ace/snippets/curly.js +9 -0
  280. package/dist/ace-editor/ace/snippets/cuttlefish.js +9 -0
  281. package/dist/ace-editor/ace/snippets/d.js +9 -0
  282. package/dist/ace-editor/ace/snippets/dart.js +16 -0
  283. package/dist/ace-editor/ace/snippets/diff.js +16 -0
  284. package/dist/ace-editor/ace/snippets/django.js +16 -0
  285. package/dist/ace-editor/ace/snippets/dockerfile.js +9 -0
  286. package/dist/ace-editor/ace/snippets/dot.js +9 -0
  287. package/dist/ace-editor/ace/snippets/drools.js +16 -0
  288. package/dist/ace-editor/ace/snippets/edifact.js +16 -0
  289. package/dist/ace-editor/ace/snippets/eiffel.js +9 -0
  290. package/dist/ace-editor/ace/snippets/ejs.js +9 -0
  291. package/dist/ace-editor/ace/snippets/elixir.js +9 -0
  292. package/dist/ace-editor/ace/snippets/elm.js +9 -0
  293. package/dist/ace-editor/ace/snippets/erlang.js +16 -0
  294. package/dist/ace-editor/ace/snippets/flix.js +9 -0
  295. package/dist/ace-editor/ace/snippets/forth.js +9 -0
  296. package/dist/ace-editor/ace/snippets/fortran.js +9 -0
  297. package/dist/ace-editor/ace/snippets/fsharp.js +9 -0
  298. package/dist/ace-editor/ace/snippets/fsl.js +16 -0
  299. package/dist/ace-editor/ace/snippets/ftl.js +9 -0
  300. package/dist/ace-editor/ace/snippets/gcode.js +9 -0
  301. package/dist/ace-editor/ace/snippets/gherkin.js +9 -0
  302. package/dist/ace-editor/ace/snippets/gitignore.js +9 -0
  303. package/dist/ace-editor/ace/snippets/glsl.js +9 -0
  304. package/dist/ace-editor/ace/snippets/gobstones.js +16 -0
  305. package/dist/ace-editor/ace/snippets/golang.js +9 -0
  306. package/dist/ace-editor/ace/snippets/graphqlschema.js +16 -0
  307. package/dist/ace-editor/ace/snippets/groovy.js +9 -0
  308. package/dist/ace-editor/ace/snippets/groq.js +9 -0
  309. package/dist/ace-editor/ace/snippets/haml.js +16 -0
  310. package/dist/ace-editor/ace/snippets/handlebars.js +9 -0
  311. package/dist/ace-editor/ace/snippets/haskell.js +16 -0
  312. package/dist/ace-editor/ace/snippets/haskell_cabal.js +9 -0
  313. package/dist/ace-editor/ace/snippets/haxe.js +9 -0
  314. package/dist/ace-editor/ace/snippets/hjson.js +9 -0
  315. package/dist/ace-editor/ace/snippets/html.js +16 -0
  316. package/dist/ace-editor/ace/snippets/html_elixir.js +9 -0
  317. package/dist/ace-editor/ace/snippets/html_ruby.js +9 -0
  318. package/dist/ace-editor/ace/snippets/ini.js +9 -0
  319. package/dist/ace-editor/ace/snippets/io.js +74 -0
  320. package/dist/ace-editor/ace/snippets/ion.js +9 -0
  321. package/dist/ace-editor/ace/snippets/jack.js +9 -0
  322. package/dist/ace-editor/ace/snippets/jade.js +9 -0
  323. package/dist/ace-editor/ace/snippets/java.js +16 -0
  324. package/dist/ace-editor/ace/snippets/javascript.js +16 -0
  325. package/dist/ace-editor/ace/snippets/jexl.js +9 -0
  326. package/dist/ace-editor/ace/snippets/json.js +9 -0
  327. package/dist/ace-editor/ace/snippets/json5.js +9 -0
  328. package/dist/ace-editor/ace/snippets/jsoniq.js +78 -0
  329. package/dist/ace-editor/ace/snippets/jsp.js +16 -0
  330. package/dist/ace-editor/ace/snippets/jssm.js +9 -0
  331. package/dist/ace-editor/ace/snippets/jsx.js +9 -0
  332. package/dist/ace-editor/ace/snippets/julia.js +9 -0
  333. package/dist/ace-editor/ace/snippets/kotlin.js +9 -0
  334. package/dist/ace-editor/ace/snippets/latex.js +9 -0
  335. package/dist/ace-editor/ace/snippets/latte.js +9 -0
  336. package/dist/ace-editor/ace/snippets/less.js +9 -0
  337. package/dist/ace-editor/ace/snippets/liquid.js +16 -0
  338. package/dist/ace-editor/ace/snippets/lisp.js +9 -0
  339. package/dist/ace-editor/ace/snippets/livescript.js +9 -0
  340. package/dist/ace-editor/ace/snippets/logiql.js +9 -0
  341. package/dist/ace-editor/ace/snippets/logtalk.js +9 -0
  342. package/dist/ace-editor/ace/snippets/lsl.js +16 -0
  343. package/dist/ace-editor/ace/snippets/lua.js +16 -0
  344. package/dist/ace-editor/ace/snippets/luapage.js +9 -0
  345. package/dist/ace-editor/ace/snippets/lucene.js +9 -0
  346. package/dist/ace-editor/ace/snippets/makefile.js +16 -0
  347. package/dist/ace-editor/ace/snippets/mariadb.js +9 -0
  348. package/dist/ace-editor/ace/snippets/markdown.js +16 -0
  349. package/dist/ace-editor/ace/snippets/mask.js +9 -0
  350. package/dist/ace-editor/ace/snippets/matlab.js +9 -0
  351. package/dist/ace-editor/ace/snippets/maze.js +16 -0
  352. package/dist/ace-editor/ace/snippets/mediawiki.js +9 -0
  353. package/dist/ace-editor/ace/snippets/mel.js +9 -0
  354. package/dist/ace-editor/ace/snippets/mips.js +9 -0
  355. package/dist/ace-editor/ace/snippets/mixal.js +9 -0
  356. package/dist/ace-editor/ace/snippets/mushcode.js +9 -0
  357. package/dist/ace-editor/ace/snippets/mysql.js +9 -0
  358. package/dist/ace-editor/ace/snippets/nasal.js +9 -0
  359. package/dist/ace-editor/ace/snippets/nginx.js +9 -0
  360. package/dist/ace-editor/ace/snippets/nim.js +9 -0
  361. package/dist/ace-editor/ace/snippets/nix.js +9 -0
  362. package/dist/ace-editor/ace/snippets/nsis.js +9 -0
  363. package/dist/ace-editor/ace/snippets/nunjucks.js +9 -0
  364. package/dist/ace-editor/ace/snippets/objectivec.js +9 -0
  365. package/dist/ace-editor/ace/snippets/ocaml.js +9 -0
  366. package/dist/ace-editor/ace/snippets/odin.js +9 -0
  367. package/dist/ace-editor/ace/snippets/partiql.js +9 -0
  368. package/dist/ace-editor/ace/snippets/pascal.js +9 -0
  369. package/dist/ace-editor/ace/snippets/perl.js +16 -0
  370. package/dist/ace-editor/ace/snippets/pgsql.js +9 -0
  371. package/dist/ace-editor/ace/snippets/php.js +16 -0
  372. package/dist/ace-editor/ace/snippets/php_laravel_blade.js +9 -0
  373. package/dist/ace-editor/ace/snippets/pig.js +9 -0
  374. package/dist/ace-editor/ace/snippets/plain_text.js +9 -0
  375. package/dist/ace-editor/ace/snippets/plsql.js +9 -0
  376. package/dist/ace-editor/ace/snippets/powershell.js +9 -0
  377. package/dist/ace-editor/ace/snippets/praat.js +9 -0
  378. package/dist/ace-editor/ace/snippets/prisma.js +9 -0
  379. package/dist/ace-editor/ace/snippets/prolog.js +9 -0
  380. package/dist/ace-editor/ace/snippets/properties.js +9 -0
  381. package/dist/ace-editor/ace/snippets/protobuf.js +9 -0
  382. package/dist/ace-editor/ace/snippets/prql.js +9 -0
  383. package/dist/ace-editor/ace/snippets/puppet.js +9 -0
  384. package/dist/ace-editor/ace/snippets/python.js +16 -0
  385. package/dist/ace-editor/ace/snippets/qml.js +9 -0
  386. package/dist/ace-editor/ace/snippets/r.js +16 -0
  387. package/dist/ace-editor/ace/snippets/raku.js +9 -0
  388. package/dist/ace-editor/ace/snippets/razor.js +16 -0
  389. package/dist/ace-editor/ace/snippets/rdoc.js +9 -0
  390. package/dist/ace-editor/ace/snippets/red.js +9 -0
  391. package/dist/ace-editor/ace/snippets/redshift.js +9 -0
  392. package/dist/ace-editor/ace/snippets/rhtml.js +9 -0
  393. package/dist/ace-editor/ace/snippets/robot.js +16 -0
  394. package/dist/ace-editor/ace/snippets/rst.js +16 -0
  395. package/dist/ace-editor/ace/snippets/ruby.js +16 -0
  396. package/dist/ace-editor/ace/snippets/rust.js +9 -0
  397. package/dist/ace-editor/ace/snippets/sac.js +9 -0
  398. package/dist/ace-editor/ace/snippets/sass.js +9 -0
  399. package/dist/ace-editor/ace/snippets/scad.js +9 -0
  400. package/dist/ace-editor/ace/snippets/scala.js +9 -0
  401. package/dist/ace-editor/ace/snippets/scheme.js +9 -0
  402. package/dist/ace-editor/ace/snippets/scrypt.js +9 -0
  403. package/dist/ace-editor/ace/snippets/scss.js +9 -0
  404. package/dist/ace-editor/ace/snippets/sh.js +16 -0
  405. package/dist/ace-editor/ace/snippets/sjs.js +9 -0
  406. package/dist/ace-editor/ace/snippets/slim.js +9 -0
  407. package/dist/ace-editor/ace/snippets/smarty.js +9 -0
  408. package/dist/ace-editor/ace/snippets/smithy.js +9 -0
  409. package/dist/ace-editor/ace/snippets/snippets.js +16 -0
  410. package/dist/ace-editor/ace/snippets/soy_template.js +9 -0
  411. package/dist/ace-editor/ace/snippets/space.js +9 -0
  412. package/dist/ace-editor/ace/snippets/sparql.js +9 -0
  413. package/dist/ace-editor/ace/snippets/sql.js +16 -0
  414. package/dist/ace-editor/ace/snippets/sqlserver.js +16 -0
  415. package/dist/ace-editor/ace/snippets/stylus.js +9 -0
  416. package/dist/ace-editor/ace/snippets/svg.js +9 -0
  417. package/dist/ace-editor/ace/snippets/swift.js +9 -0
  418. package/dist/ace-editor/ace/snippets/tcl.js +16 -0
  419. package/dist/ace-editor/ace/snippets/terraform.js +9 -0
  420. package/dist/ace-editor/ace/snippets/tex.js +16 -0
  421. package/dist/ace-editor/ace/snippets/text.js +9 -0
  422. package/dist/ace-editor/ace/snippets/textile.js +16 -0
  423. package/dist/ace-editor/ace/snippets/toml.js +9 -0
  424. package/dist/ace-editor/ace/snippets/tsv.js +9 -0
  425. package/dist/ace-editor/ace/snippets/tsx.js +9 -0
  426. package/dist/ace-editor/ace/snippets/turtle.js +9 -0
  427. package/dist/ace-editor/ace/snippets/twig.js +9 -0
  428. package/dist/ace-editor/ace/snippets/typescript.js +9 -0
  429. package/dist/ace-editor/ace/snippets/vala.js +199 -0
  430. package/dist/ace-editor/ace/snippets/vbscript.js +9 -0
  431. package/dist/ace-editor/ace/snippets/velocity.js +17 -0
  432. package/dist/ace-editor/ace/snippets/verilog.js +9 -0
  433. package/dist/ace-editor/ace/snippets/vhdl.js +9 -0
  434. package/dist/ace-editor/ace/snippets/visualforce.js +9 -0
  435. package/dist/ace-editor/ace/snippets/vue.js +9 -0
  436. package/dist/ace-editor/ace/snippets/wollok.js +16 -0
  437. package/dist/ace-editor/ace/snippets/xml.js +9 -0
  438. package/dist/ace-editor/ace/snippets/xquery.js +78 -0
  439. package/dist/ace-editor/ace/snippets/yaml.js +9 -0
  440. package/dist/ace-editor/ace/snippets/zeek.js +9 -0
  441. package/dist/ace-editor/ace/snippets/zig.js +9 -0
  442. package/dist/ace-editor/ace/theme-ambiance.js +18 -0
  443. package/dist/ace-editor/ace/theme-chaos.js +18 -0
  444. package/dist/ace-editor/ace/theme-chrome.js +18 -0
  445. package/dist/ace-editor/ace/theme-cloud9_day.js +19 -0
  446. package/dist/ace-editor/ace/theme-cloud9_night.js +18 -0
  447. package/dist/ace-editor/ace/theme-cloud9_night_low_color.js +18 -0
  448. package/dist/ace-editor/ace/theme-cloud_editor.js +19 -0
  449. package/dist/ace-editor/ace/theme-cloud_editor_dark.js +19 -0
  450. package/dist/ace-editor/ace/theme-clouds.js +18 -0
  451. package/dist/ace-editor/ace/theme-clouds_midnight.js +18 -0
  452. package/dist/ace-editor/ace/theme-cobalt.js +18 -0
  453. package/dist/ace-editor/ace/theme-crimson_editor.js +18 -0
  454. package/dist/ace-editor/ace/theme-dawn.js +18 -0
  455. package/dist/ace-editor/ace/theme-dracula.js +19 -0
  456. package/dist/ace-editor/ace/theme-dreamweaver.js +18 -0
  457. package/dist/ace-editor/ace/theme-eclipse.js +19 -0
  458. package/dist/ace-editor/ace/theme-github.js +18 -0
  459. package/dist/ace-editor/ace/theme-github_dark.js +18 -0
  460. package/dist/ace-editor/ace/theme-github_light_default.js +18 -0
  461. package/dist/ace-editor/ace/theme-gob.js +18 -0
  462. package/dist/ace-editor/ace/theme-gruvbox.js +18 -0
  463. package/dist/ace-editor/ace/theme-gruvbox_dark_hard.js +18 -0
  464. package/dist/ace-editor/ace/theme-gruvbox_light_hard.js +18 -0
  465. package/dist/ace-editor/ace/theme-idle_fingers.js +18 -0
  466. package/dist/ace-editor/ace/theme-iplastic.js +18 -0
  467. package/dist/ace-editor/ace/theme-katzenmilch.js +18 -0
  468. package/dist/ace-editor/ace/theme-kr_theme.js +18 -0
  469. package/dist/ace-editor/ace/theme-kuroir.js +18 -0
  470. package/dist/ace-editor/ace/theme-merbivore.js +18 -0
  471. package/dist/ace-editor/ace/theme-merbivore_soft.js +18 -0
  472. package/dist/ace-editor/ace/theme-mono_industrial.js +18 -0
  473. package/dist/ace-editor/ace/theme-monokai.js +18 -0
  474. package/dist/ace-editor/ace/theme-nord_dark.js +19 -0
  475. package/dist/ace-editor/ace/theme-one_dark.js +18 -0
  476. package/dist/ace-editor/ace/theme-pastel_on_dark.js +18 -0
  477. package/dist/ace-editor/ace/theme-solarized_dark.js +18 -0
  478. package/dist/ace-editor/ace/theme-solarized_light.js +18 -0
  479. package/dist/ace-editor/ace/theme-sqlserver.js +18 -0
  480. package/dist/ace-editor/ace/theme-terminal.js +18 -0
  481. package/dist/ace-editor/ace/theme-textmate.js +16 -0
  482. package/dist/ace-editor/ace/theme-tomorrow.js +18 -0
  483. package/dist/ace-editor/ace/theme-tomorrow_night.js +18 -0
  484. package/dist/ace-editor/ace/theme-tomorrow_night_blue.js +18 -0
  485. package/dist/ace-editor/ace/theme-tomorrow_night_bright.js +18 -0
  486. package/dist/ace-editor/ace/theme-tomorrow_night_eighties.js +18 -0
  487. package/dist/ace-editor/ace/theme-twilight.js +18 -0
  488. package/dist/ace-editor/ace/theme-vibrant_ink.js +18 -0
  489. package/dist/ace-editor/ace/theme-xcode.js +18 -0
  490. package/dist/ace-editor/ace/worker-base.js +1337 -0
  491. package/dist/ace-editor/ace/worker-coffee.js +1386 -0
  492. package/dist/ace-editor/ace/worker-css.js +8918 -0
  493. package/dist/ace-editor/ace/worker-html.js +10848 -0
  494. package/dist/ace-editor/ace/worker-javascript.js +15358 -0
  495. package/dist/ace-editor/ace/worker-json.js +1631 -0
  496. package/dist/ace-editor/ace/worker-lua.js +3524 -0
  497. package/dist/ace-editor/ace/worker-php.js +3793 -0
  498. package/dist/ace-editor/ace/worker-xml.js +3127 -0
  499. package/dist/ace-editor/ace/worker-xquery.js +57584 -0
  500. package/dist/ace-editor/ace/worker-yaml.js +5824 -0
  501. package/dist/ace-editor/internal/AceEditor.d.ts +22 -0
  502. package/dist/ace-editor/internal/AceEditor.js +113 -0
  503. package/dist/ace-editor/internal/AceEditor.js.map +1 -0
  504. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.d.ts +55 -0
  505. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js +205 -0
  506. package/dist/ace-editor/internal/ace-editor-base/AceEditorBase.js.map +1 -0
  507. package/dist/ace-editor/internal/ace-editor-base/debounce.d.ts +24 -0
  508. package/dist/ace-editor/internal/ace-editor-base/debounce.js +41 -0
  509. package/dist/ace-editor/internal/ace-editor-base/debounce.js.map +1 -0
  510. package/dist/ace-editor/internal/ace-editor-base/property-decorators.d.ts +66 -0
  511. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js +171 -0
  512. package/dist/ace-editor/internal/ace-editor-base/property-decorators.js.map +1 -0
  513. package/dist/ace-editor/internal/ace-theme-oscd.d.ts +1 -0
  514. package/dist/ace-editor/internal/ace-theme-oscd.js +247 -0
  515. package/dist/ace-editor/internal/ace-theme-oscd.js.map +1 -0
  516. package/dist/ace-editor/internal/ace.config.d.ts +54 -0
  517. package/dist/ace-editor/internal/ace.config.js +61 -0
  518. package/dist/ace-editor/internal/ace.config.js.map +1 -0
  519. package/dist/ace-editor/oscd-ace-editor.d.ts +2 -0
  520. package/dist/ace-editor/oscd-ace-editor.js +4 -0
  521. package/dist/ace-editor/oscd-ace-editor.js.map +1 -0
  522. package/dist/action-icon/OscdActionIcon.js +1 -3
  523. package/dist/action-icon/OscdActionIcon.js.map +1 -1
  524. package/dist/action-list/OscdActionList.js +8 -8
  525. package/dist/action-list/OscdActionList.js.map +1 -1
  526. package/dist/action-pane/OscdActionPane.js +1 -3
  527. package/dist/action-pane/OscdActionPane.js.map +1 -1
  528. package/dist/action-tree/OscdActionTree.d.ts +2 -0
  529. package/dist/action-tree/OscdActionTree.js +32 -62
  530. package/dist/action-tree/OscdActionTree.js.map +1 -1
  531. package/dist/action-tree/oscd-action-tree.spec.js +2 -2
  532. package/dist/action-tree/oscd-action-tree.spec.js.map +1 -1
  533. package/dist/app-bar/OscdAppBar.d.ts +1 -1
  534. package/dist/app-bar/OscdAppBar.js +1 -1
  535. package/dist/app-bar/OscdAppBar.js.map +1 -1
  536. package/dist/app-bar/oscd-app-bar.d.ts +1 -1
  537. package/dist/app-bar/oscd-app-bar.js +1 -1
  538. package/dist/app-bar/oscd-app-bar.js.map +1 -1
  539. package/dist/button/OscdElevatedButton.d.ts +1 -1
  540. package/dist/button/OscdElevatedButton.js +1 -1
  541. package/dist/button/OscdElevatedButton.js.map +1 -1
  542. package/dist/button/OscdFilledButton.d.ts +1 -1
  543. package/dist/button/OscdFilledButton.js +1 -1
  544. package/dist/button/OscdFilledButton.js.map +1 -1
  545. package/dist/button/OscdFilledTonalButton.d.ts +1 -1
  546. package/dist/button/OscdFilledTonalButton.js +1 -1
  547. package/dist/button/OscdFilledTonalButton.js.map +1 -1
  548. package/dist/button/OscdOutlinedButton.d.ts +1 -1
  549. package/dist/button/OscdOutlinedButton.js +1 -1
  550. package/dist/button/OscdOutlinedButton.js.map +1 -1
  551. package/dist/button/OscdTextButton.d.ts +1 -1
  552. package/dist/button/OscdTextButton.js +1 -1
  553. package/dist/button/OscdTextButton.js.map +1 -1
  554. package/dist/checkbox/OscdCheckbox.d.ts +1 -1
  555. package/dist/checkbox/OscdCheckbox.js +1 -1
  556. package/dist/checkbox/OscdCheckbox.js.map +1 -1
  557. package/dist/chips/OscdAssistChip.d.ts +1 -1
  558. package/dist/chips/OscdAssistChip.js +1 -1
  559. package/dist/chips/OscdAssistChip.js.map +1 -1
  560. package/dist/chips/OscdChipSet.d.ts +1 -1
  561. package/dist/chips/OscdChipSet.js.map +1 -1
  562. package/dist/chips/OscdFilterChip.d.ts +1 -1
  563. package/dist/chips/OscdFilterChip.js +1 -1
  564. package/dist/chips/OscdFilterChip.js.map +1 -1
  565. package/dist/chips/OscdInputChip.d.ts +1 -1
  566. package/dist/chips/OscdInputChip.js +1 -1
  567. package/dist/chips/OscdInputChip.js.map +1 -1
  568. package/dist/chips/OscdSuggestionChip.d.ts +1 -1
  569. package/dist/chips/OscdSuggestionChip.js +1 -1
  570. package/dist/chips/OscdSuggestionChip.js.map +1 -1
  571. package/dist/decorators/localstorage.js.map +1 -1
  572. package/dist/dialog/OscdDialog.d.ts +1 -1
  573. package/dist/dialog/OscdDialog.js +1 -1
  574. package/dist/dialog/OscdDialog.js.map +1 -1
  575. package/dist/dialog/warning/OscdWarnDialog.d.ts +31 -0
  576. package/dist/dialog/warning/OscdWarnDialog.js +74 -0
  577. package/dist/dialog/warning/OscdWarnDialog.js.map +1 -0
  578. package/dist/dialog/warning/oscd-warn-dialog.d.ts +2 -0
  579. package/dist/dialog/warning/oscd-warn-dialog.js +4 -0
  580. package/dist/dialog/warning/oscd-warn-dialog.js.map +1 -0
  581. package/dist/divider/OscdDivider.d.ts +1 -1
  582. package/dist/divider/OscdDivider.js.map +1 -1
  583. package/dist/elevation/OscdElevation.d.ts +1 -1
  584. package/dist/elevation/OscdElevation.js.map +1 -1
  585. package/dist/fab/OscdBrandedFab.d.ts +1 -1
  586. package/dist/fab/OscdBrandedFab.js +1 -1
  587. package/dist/fab/OscdBrandedFab.js.map +1 -1
  588. package/dist/fab/OscdFab.d.ts +1 -1
  589. package/dist/fab/OscdFab.js +1 -1
  590. package/dist/fab/OscdFab.js.map +1 -1
  591. package/dist/field/OscdFilledField.d.ts +1 -1
  592. package/dist/field/OscdFilledField.js.map +1 -1
  593. package/dist/field/OscdOutlinedField.d.ts +1 -1
  594. package/dist/field/OscdOutlinedField.js.map +1 -1
  595. package/dist/filter-button/OscdFilterButton.js.map +1 -1
  596. package/dist/focus/OscdFocusRing.d.ts +1 -1
  597. package/dist/focus/OscdFocusRing.js.map +1 -1
  598. package/dist/icon/OscdIcon.d.ts +1 -1
  599. package/dist/icon/OscdIcon.js +1 -1
  600. package/dist/icon/OscdIcon.js.map +1 -1
  601. package/dist/icon/internal/icon.d.ts +1 -1
  602. package/dist/icon/internal/icon.js +1 -1
  603. package/dist/icon/internal/icon.js.map +1 -1
  604. package/dist/iconbutton/OscdFilledIconButton.d.ts +1 -1
  605. package/dist/iconbutton/OscdFilledIconButton.js +1 -1
  606. package/dist/iconbutton/OscdFilledIconButton.js.map +1 -1
  607. package/dist/iconbutton/OscdFilledTonalIconButton.d.ts +1 -1
  608. package/dist/iconbutton/OscdFilledTonalIconButton.js +1 -1
  609. package/dist/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
  610. package/dist/iconbutton/OscdIconButton.d.ts +1 -1
  611. package/dist/iconbutton/OscdIconButton.js +1 -1
  612. package/dist/iconbutton/OscdIconButton.js.map +1 -1
  613. package/dist/iconbutton/OscdOutlinedIconButton.d.ts +1 -1
  614. package/dist/iconbutton/OscdOutlinedIconButton.js +1 -1
  615. package/dist/iconbutton/OscdOutlinedIconButton.js.map +1 -1
  616. package/dist/labs/badge/OscdBadge.d.ts +1 -1
  617. package/dist/labs/badge/OscdBadge.js.map +1 -1
  618. package/dist/labs/card/OscdElevatedCard.d.ts +1 -1
  619. package/dist/labs/card/OscdElevatedCard.js +1 -1
  620. package/dist/labs/card/OscdElevatedCard.js.map +1 -1
  621. package/dist/labs/card/OscdFilledCard.d.ts +1 -1
  622. package/dist/labs/card/OscdFilledCard.js +1 -1
  623. package/dist/labs/card/OscdFilledCard.js.map +1 -1
  624. package/dist/labs/card/OscdOutlinedCard.d.ts +1 -1
  625. package/dist/labs/card/OscdOutlinedCard.js +1 -1
  626. package/dist/labs/card/OscdOutlinedCard.js.map +1 -1
  627. package/dist/labs/item/OscdItem.d.ts +1 -1
  628. package/dist/labs/item/OscdItem.js.map +1 -1
  629. package/dist/labs/navigationbar/OscdNavigationBar.d.ts +1 -1
  630. package/dist/labs/navigationbar/OscdNavigationBar.js +1 -1
  631. package/dist/labs/navigationbar/OscdNavigationBar.js.map +1 -1
  632. package/dist/labs/navigationtab/OscdNavigationTab.d.ts +1 -1
  633. package/dist/labs/navigationtab/OscdNavigationTab.js +1 -1
  634. package/dist/labs/navigationtab/OscdNavigationTab.js.map +1 -1
  635. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.d.ts +1 -1
  636. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +1 -1
  637. package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js.map +1 -1
  638. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.d.ts +1 -1
  639. package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js.map +1 -1
  640. package/dist/list/OscdList.d.ts +1 -1
  641. package/dist/list/OscdList.js.map +1 -1
  642. package/dist/list/OscdListItem.d.ts +1 -1
  643. package/dist/list/OscdListItem.js +1 -1
  644. package/dist/list/OscdListItem.js.map +1 -1
  645. package/dist/menu/OscdMenu.d.ts +1 -1
  646. package/dist/menu/OscdMenu.js +1 -1
  647. package/dist/menu/OscdMenu.js.map +1 -1
  648. package/dist/menu/OscdMenuItem.d.ts +1 -1
  649. package/dist/menu/OscdMenuItem.js +1 -1
  650. package/dist/menu/OscdMenuItem.js.map +1 -1
  651. package/dist/menu/OscdSubMenu.d.ts +1 -1
  652. package/dist/menu/OscdSubMenu.js.map +1 -1
  653. package/dist/navigation-drawer/OscdNavigationDrawer.d.ts +1 -1
  654. package/dist/navigation-drawer/OscdNavigationDrawer.js +1 -1
  655. package/dist/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
  656. package/dist/navigation-drawer/OscdNavigationDrawerHeader.d.ts +1 -1
  657. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js +1 -1
  658. package/dist/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
  659. package/dist/progress/OscdCircularProgress.d.ts +1 -1
  660. package/dist/progress/OscdCircularProgress.js.map +1 -1
  661. package/dist/progress/OscdLinearProgress.d.ts +1 -1
  662. package/dist/progress/OscdLinearProgress.js.map +1 -1
  663. package/dist/radio/OscdRadio.d.ts +1 -1
  664. package/dist/radio/OscdRadio.js +1 -1
  665. package/dist/radio/OscdRadio.js.map +1 -1
  666. package/dist/ripple/OscdRipple.d.ts +1 -1
  667. package/dist/ripple/OscdRipple.js.map +1 -1
  668. package/dist/scl-checkbox/OscdSclCheckbox.js +1 -3
  669. package/dist/scl-checkbox/OscdSclCheckbox.js.map +1 -1
  670. package/dist/scl-icon/OscdSclIcon.d.ts +1 -1
  671. package/dist/scl-icon/OscdSclIcon.js +1 -1
  672. package/dist/scl-icon/OscdSclIcon.js.map +1 -1
  673. package/dist/search-field/internal/OutlinedSearchField.js.map +1 -1
  674. package/dist/search-field/oscd-outlined-search-field.spec.js +5 -6
  675. package/dist/search-field/oscd-outlined-search-field.spec.js.map +1 -1
  676. package/dist/select/OscdFilledSelect.d.ts +1 -1
  677. package/dist/select/OscdFilledSelect.js +1 -1
  678. package/dist/select/OscdFilledSelect.js.map +1 -1
  679. package/dist/select/OscdOutlinedSelect.d.ts +1 -1
  680. package/dist/select/OscdOutlinedSelect.js +1 -1
  681. package/dist/select/OscdOutlinedSelect.js.map +1 -1
  682. package/dist/select/OscdSelectOption.d.ts +1 -1
  683. package/dist/select/OscdSelectOption.js +1 -1
  684. package/dist/select/OscdSelectOption.js.map +1 -1
  685. package/dist/selection-list/OscdSelectionList.js.map +1 -1
  686. package/dist/slider/OscdSlider.d.ts +1 -1
  687. package/dist/slider/OscdSlider.js +1 -1
  688. package/dist/slider/OscdSlider.js.map +1 -1
  689. package/dist/switch/OscdSwitch.d.ts +1 -1
  690. package/dist/switch/OscdSwitch.js +1 -1
  691. package/dist/switch/OscdSwitch.js.map +1 -1
  692. package/dist/tabs/OscdPrimaryTab.d.ts +1 -1
  693. package/dist/tabs/OscdPrimaryTab.js +1 -1
  694. package/dist/tabs/OscdPrimaryTab.js.map +1 -1
  695. package/dist/tabs/OscdPrimaryTab.stories.js +1 -3
  696. package/dist/tabs/OscdPrimaryTab.stories.js.map +1 -1
  697. package/dist/tabs/OscdSecondaryTab.d.ts +1 -1
  698. package/dist/tabs/OscdSecondaryTab.js +1 -1
  699. package/dist/tabs/OscdSecondaryTab.js.map +1 -1
  700. package/dist/tabs/OscdSecondaryTab.stories.js +1 -3
  701. package/dist/tabs/OscdSecondaryTab.stories.js.map +1 -1
  702. package/dist/tabs/OscdTabs.d.ts +1 -1
  703. package/dist/tabs/OscdTabs.js +1 -1
  704. package/dist/tabs/OscdTabs.js.map +1 -1
  705. package/dist/textfield/OscdFilledTextField.d.ts +1 -1
  706. package/dist/textfield/OscdFilledTextField.js +1 -1
  707. package/dist/textfield/OscdFilledTextField.js.map +1 -1
  708. package/dist/textfield/OscdOutlinedTextField.d.ts +1 -1
  709. package/dist/textfield/OscdOutlinedTextField.js +1 -1
  710. package/dist/textfield/OscdOutlinedTextField.js.map +1 -1
  711. package/dist/tree/OscdTree.stories.js +22 -4
  712. package/dist/tree/OscdTree.stories.js.map +1 -1
  713. package/dist/tree/internal/Tree.js +30 -6
  714. package/dist/tree/internal/Tree.js.map +1 -1
  715. package/dist/tree/internal/TreeItem.js +22 -8
  716. package/dist/tree/internal/TreeItem.js.map +1 -1
  717. package/dist/tree-grid/OscdTreeGrid.js +1 -4
  718. package/dist/tree-grid/OscdTreeGrid.js.map +1 -1
  719. package/dist/utils/storybook/getStorybookHelpers.js +2 -2
  720. package/dist/utils/storybook/getStorybookHelpers.js.map +1 -1
  721. package/dist/utils/storybook/getStorybookMeta.d.ts +5 -0
  722. package/dist/utils/storybook/getStorybookMeta.js +2 -1
  723. package/dist/utils/storybook/getStorybookMeta.js.map +1 -1
  724. 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,IAAI;IACd,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,cAAc;CACrB,CAAC;AAEF,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAEtC,MAAM,mBAAmB,GAAG,GAI0B,EAAE;IACtD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,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,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,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ent":["/* 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 {};