boneIO 0.9.0.dev11__tar.gz → 0.9.0.dev13__tar.gz

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 (241) hide show
  1. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/PKG-INFO +1 -1
  2. boneio-0.9.0.dev13/boneio/helper/schema_converter.py +200 -0
  3. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/filters.yaml +2 -0
  4. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/schema.yaml +32 -24
  5. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/update_interval.yaml +1 -1
  6. boneio-0.9.0.dev13/boneio/version.py +2 -0
  7. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/app.py +3 -1
  8. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/abap-BrgZPUOV.js +6 -0
  9. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/apex-DyP6w7ZV.js +6 -0
  10. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/azcli-BaLxmfj-.js +6 -0
  11. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/bat-CFOPXBzS.js +6 -0
  12. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/bicep-BfEKNvv3.js +7 -0
  13. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/cameligo-BFG1Mk7z.js +6 -0
  14. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/clojure-DTECt2xU.js +6 -0
  15. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/codicon-DCmgc-ay.ttf +0 -0
  16. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/coffee-CDGzqUPQ.js +6 -0
  17. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/cpp-CLLBncYj.js +6 -0
  18. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/csharp-dUCx_-0o.js +6 -0
  19. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/csp-5Rap-vPy.js +6 -0
  20. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/css-D3h14YRZ.js +8 -0
  21. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/cssMode-CtnT2jQE.js +9 -0
  22. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/cypher-DrQuvNYM.js +6 -0
  23. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/dart-CFKIUWau.js +6 -0
  24. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/dockerfile-Zznr-cwX.js +6 -0
  25. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/ecl-Ce3n6wWz.js +6 -0
  26. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/elixir-deUWdS0T.js +6 -0
  27. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/flow9-i9-g7ZhI.js +6 -0
  28. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/freemarker2-DGuhXH41.js +8 -0
  29. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/fsharp-CzKuDChf.js +6 -0
  30. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/go-Cphgjts3.js +6 -0
  31. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/graphql-Cg7bfA9N.js +6 -0
  32. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/handlebars-DB9ioYEj.js +6 -0
  33. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/hcl-0cvrggvQ.js +6 -0
  34. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/html-B1N3G2t2.js +6 -0
  35. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/htmlMode-Bu4tsIzC.js +9 -0
  36. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/index-BLdVcyHp.js +825 -0
  37. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/index-CCgG6NMg.css +1 -0
  38. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/ini-Drc7WvVn.js +6 -0
  39. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/java-B_fMsGYe.js +6 -0
  40. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/javascript-Bc9neA1Z.js +6 -0
  41. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/jsonMode-CKQTb-28.js +15 -0
  42. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/julia-Bqgm2twL.js +6 -0
  43. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/kotlin-BSkB5QuD.js +6 -0
  44. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/less-BsTHnhdd.js +7 -0
  45. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/lexon-YWi4-JPR.js +6 -0
  46. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/liquid-CTaX0gqb.js +6 -0
  47. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/lua-nf6ki56Z.js +6 -0
  48. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/m3-Cpb6xl2v.js +6 -0
  49. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/markdown-DSZPf7rp.js +6 -0
  50. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/mdx-5o2ITl9M.js +6 -0
  51. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/mips-B_c3zf-v.js +6 -0
  52. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/msdax-rUNN04Wq.js +6 -0
  53. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/mysql-DDwshQtU.js +6 -0
  54. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/objective-c-B5zXfXm9.js +6 -0
  55. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/pascal-CXOwvkN_.js +6 -0
  56. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/pascaligo-Bc-ZgV77.js +6 -0
  57. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/perl-CwNk8-XU.js +6 -0
  58. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/pgsql-tGk8EFnU.js +6 -0
  59. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/php-CpIb_Oan.js +6 -0
  60. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/pla-B03wrqEc.js +6 -0
  61. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/postiats-BKlk5iyT.js +6 -0
  62. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/powerquery-Bhzvs7bI.js +6 -0
  63. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/powershell-Dd3NCNK9.js +6 -0
  64. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/protobuf-COyEY5Pt.js +7 -0
  65. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/pug-BaJupSGV.js +6 -0
  66. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/python-Db8FWkCf.js +6 -0
  67. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/qsharp-DXyYeYxl.js +6 -0
  68. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/r-CdQndTaG.js +6 -0
  69. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/razor-CLTS28q7.js +6 -0
  70. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/redis-CVwtpugi.js +6 -0
  71. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/redshift-25W9uPmb.js +6 -0
  72. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/restructuredtext-DfzH4Xui.js +6 -0
  73. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/ruby-Cp1zYvxS.js +6 -0
  74. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/rust-D5C2fndG.js +6 -0
  75. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/sb-CDntyWJ8.js +6 -0
  76. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/scala-BoFRg7Ot.js +6 -0
  77. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/scheme-Bio4gycK.js +6 -0
  78. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/scss-4Ik7cdeQ.js +8 -0
  79. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/shell-CX-rkNHf.js +6 -0
  80. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/solidity-Tw7wswEv.js +6 -0
  81. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/sophia-C5WLch3f.js +6 -0
  82. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/sparql-DHaeiCBh.js +6 -0
  83. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/sql-CCSDG5nI.js +6 -0
  84. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/st-pnP8ivHi.js +6 -0
  85. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/swift-DwJ7jVG9.js +8 -0
  86. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/systemverilog-B9Xyijhd.js +6 -0
  87. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/tcl-DnHyzjbg.js +6 -0
  88. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/tsMode-CrhZjPZD.js +16 -0
  89. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/twig-CPajHgWi.js +6 -0
  90. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/typescript-BEFA7MWI.js +6 -0
  91. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/typespec-D-MeaMDU.js +6 -0
  92. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/vb-DgyLZaXg.js +6 -0
  93. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/wgsl-BIv9DU6q.js +303 -0
  94. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/xml-z_iSgMVJ.js +6 -0
  95. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/yaml-3ScDl3Sa.js +6 -0
  96. boneio-0.9.0.dev13/boneio/webui/frontend-dist/assets/yaml.worker-C2uymlqn.js +476 -0
  97. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/frontend-dist/index.html +2 -2
  98. boneio-0.9.0.dev13/boneio/webui/schema/adc.schema.json +107 -0
  99. boneio-0.9.0.dev13/boneio/webui/schema/binary_sensor.schema.json +403 -0
  100. boneio-0.9.0.dev13/boneio/webui/schema/boneio.schema.json +44 -0
  101. boneio-0.9.0.dev13/boneio/webui/schema/config.schema.json +2423 -0
  102. boneio-0.9.0.dev13/boneio/webui/schema/cover.schema.json +138 -0
  103. boneio-0.9.0.dev13/boneio/webui/schema/dallas.schema.json +27 -0
  104. boneio-0.9.0.dev13/boneio/webui/schema/ds2482.schema.json +39 -0
  105. boneio-0.9.0.dev13/boneio/webui/schema/event.schema.json +445 -0
  106. boneio-0.9.0.dev13/boneio/webui/schema/ina219.schema.json +119 -0
  107. boneio-0.9.0.dev13/boneio/webui/schema/lm75.schema.json +82 -0
  108. boneio-0.9.0.dev13/boneio/webui/schema/logger.schema.json +47 -0
  109. boneio-0.9.0.dev13/boneio/webui/schema/mcp23017.schema.json +51 -0
  110. boneio-0.9.0.dev13/boneio/webui/schema/mcp9808.schema.json +83 -0
  111. boneio-0.9.0.dev13/boneio/webui/schema/modbus.schema.json +80 -0
  112. boneio-0.9.0.dev13/boneio/webui/schema/modbus_sensors.schema.json +128 -0
  113. boneio-0.9.0.dev13/boneio/webui/schema/mqtt.schema.json +103 -0
  114. boneio-0.9.0.dev13/boneio/webui/schema/oled.schema.json +130 -0
  115. boneio-0.9.0.dev13/boneio/webui/schema/output.schema.json +156 -0
  116. boneio-0.9.0.dev13/boneio/webui/schema/output_group.schema.json +79 -0
  117. boneio-0.9.0.dev13/boneio/webui/schema/pca9685.schema.json +51 -0
  118. boneio-0.9.0.dev13/boneio/webui/schema/pcf8575.schema.json +51 -0
  119. boneio-0.9.0.dev13/boneio/webui/schema/sensor.schema.json +129 -0
  120. boneio-0.9.0.dev13/boneio/webui/schema/web.schema.json +54 -0
  121. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/pyproject.toml +1 -1
  122. boneio-0.9.0.dev11/boneio/version.py +0 -2
  123. boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/css.worker-YzWC8yAR.js +0 -84
  124. boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/html.worker-D5NPIcdM.js +0 -461
  125. boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/index-Bzix_ULo.js +0 -72
  126. boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/index-Dt_UdFzp.css +0 -1
  127. boneio-0.9.0.dev11/boneio/webui/frontend-dist/assets/ts.worker-BSchkg-h.js +0 -51334
  128. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/LICENSE +0 -0
  129. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/README.md +0 -0
  130. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/__init__.py +0 -0
  131. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/boards/0.7/input.yaml +0 -0
  132. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/boards/0.7/output_32_10.yaml +0 -0
  133. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/boards/0.8/input.yaml +0 -0
  134. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/boards/0.8/output_32_10.yaml +0 -0
  135. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/bonecli.py +0 -0
  136. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/const.py +0 -0
  137. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/cover.py +0 -0
  138. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/__init__.py +0 -0
  139. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/adc.yaml +0 -0
  140. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/binary_sensor.yaml +0 -0
  141. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/binary_sensor_v_0_7.yaml +0 -0
  142. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/config.yaml +0 -0
  143. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/cover.yaml +0 -0
  144. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/event.yaml +0 -0
  145. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/event_all.yaml +0 -0
  146. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/event_v_0_7.yaml +0 -0
  147. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/led32x4A.yaml +0 -0
  148. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/output24x16A.yaml +0 -0
  149. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/output24x16A_v0.3.yaml +0 -0
  150. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/output32x10A.yaml +0 -0
  151. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/example_config/output32x5A.yaml +0 -0
  152. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/fonts/danube__.ttf +0 -0
  153. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/group/__init__.py +0 -0
  154. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/group/output.py +0 -0
  155. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/__init__.py +0 -0
  156. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/async_updater.py +0 -0
  157. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/click_timer.py +0 -0
  158. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/config.py +0 -0
  159. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/events.py +0 -0
  160. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/exceptions.py +0 -0
  161. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/filter.py +0 -0
  162. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/gpio.py +0 -0
  163. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/gpiod.py +0 -0
  164. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/ha_discovery.py +0 -0
  165. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/loader.py +0 -0
  166. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/logger.py +0 -0
  167. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/message_bus.py +0 -0
  168. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/mqtt.py +0 -0
  169. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/oled.py +0 -0
  170. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/onewire/W1ThermSensor.py +0 -0
  171. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/onewire/__init__.py +0 -0
  172. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/onewire/ds2482.py +0 -0
  173. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/onewire/onewire.py +0 -0
  174. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/pcf8575.py +0 -0
  175. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/queue.py +0 -0
  176. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/sensor/ina_219_smbus.py +0 -0
  177. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/state_manager.py +0 -0
  178. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/stats.py +0 -0
  179. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/timeperiod.py +0 -0
  180. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/util.py +0 -0
  181. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/helper/yaml_util.py +0 -0
  182. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/input/__init__.py +0 -0
  183. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/input/gpio.py +0 -0
  184. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/input/gpio_new.py +0 -0
  185. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/manager.py +0 -0
  186. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/__init__.py +0 -0
  187. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/client.py +0 -0
  188. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/cwt.json +0 -0
  189. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/dts1964_3f.json +0 -0
  190. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/liquid-sensor.json +0 -0
  191. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/modbuscli.py +0 -0
  192. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/orno-or-we-517.json +0 -0
  193. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/pt100.json +0 -0
  194. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/r4dcb08.json +0 -0
  195. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sdm120.json +0 -0
  196. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sdm630.json +0 -0
  197. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sensor.py +0 -0
  198. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sht20.json +0 -0
  199. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sht30.json +0 -0
  200. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/single_sensor.py +0 -0
  201. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/socomec_e03.json +0 -0
  202. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/socomec_e23.json +0 -0
  203. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/sofar.json +0 -0
  204. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/modbus/utils.py +0 -0
  205. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/models/__init__.py +0 -0
  206. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/models/files.py +0 -0
  207. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/models/logs.py +0 -0
  208. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/mqtt_client.py +0 -0
  209. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/oled.py +0 -0
  210. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/__init__.py +0 -0
  211. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/basic.py +0 -0
  212. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/gpio.py +0 -0
  213. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/mcp.py +0 -0
  214. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/pca.py +0 -0
  215. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/relay/pcf.py +0 -0
  216. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/runner.py +0 -0
  217. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/actions.yaml +0 -0
  218. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/actions_sensor.yaml +0 -0
  219. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/actions_switch.yaml +0 -0
  220. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/filters_adc.yaml +0 -0
  221. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/id.yaml +0 -0
  222. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/schema/temp_unit.yaml +0 -0
  223. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/__init__.py +0 -0
  224. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/adc.py +0 -0
  225. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/gpio.py +0 -0
  226. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/gpio_new.py +0 -0
  227. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/ina219.py +0 -0
  228. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/serial_number.py +0 -0
  229. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/temp/__init__.py +0 -0
  230. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/temp/dallas.py +0 -0
  231. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/temp/lm75.py +0 -0
  232. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/sensor/temp/mcp9808.py +0 -0
  233. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/frontend-dist/assets/editor.worker-D5ngByhL.js +0 -0
  234. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/frontend-dist/assets/json.worker-F0ZGA5Zk.js +0 -0
  235. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/frontend-dist/boneio.svg +0 -0
  236. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/frontend-dist/boneio_fav.svg +0 -0
  237. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/web_server.py +0 -0
  238. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/boneio/webui/websocket_manager.py +0 -0
  239. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/tests/32_5_config.yaml +0 -0
  240. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/tests/bandit.yaml +0 -0
  241. {boneio-0.9.0.dev11 → boneio-0.9.0.dev13}/tests/relay_32_5.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneio
3
- Version: 0.9.0.dev11
3
+ Version: 0.9.0.dev13
4
4
  Summary: Python App for BoneIO
5
5
  License: GNU General Public License v3.0
6
6
  Author-email: Paweł Szafer <pszafer@gmail.com>
@@ -0,0 +1,200 @@
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ import os
5
+ from typing import Any, Dict, List, Union
6
+
7
+ import yaml
8
+ from yaml import SafeLoader, load
9
+
10
+
11
+ class BoneIOLoader(SafeLoader):
12
+ """Custom YAML loader with !include constructor."""
13
+
14
+ def __init__(self, stream):
15
+ self._root = os.path.split(stream.name)[0]
16
+ super().__init__(stream)
17
+
18
+ def include(self, node):
19
+ """Include file referenced at node."""
20
+ filename = os.path.join(self._root, self.construct_scalar(node))
21
+ with open(filename, 'r') as f:
22
+ return load(f, BoneIOLoader)
23
+
24
+ # Register the !include constructor
25
+ BoneIOLoader.add_constructor('!include', BoneIOLoader.include)
26
+
27
+ def convert_type(cerberus_type: Union[str, List[str]]) -> Union[str, List[str]]:
28
+ """Convert Cerberus type to JSON Schema type."""
29
+
30
+
31
+ type_map = {
32
+ 'string': 'string',
33
+ 'integer': 'integer',
34
+ 'float': 'number',
35
+ 'boolean': 'boolean',
36
+ 'dict': 'object',
37
+ 'list': 'array'
38
+ }
39
+ if isinstance(cerberus_type, list):
40
+ return [type_map.get(type, 'string') for type in cerberus_type]
41
+ return type_map.get(cerberus_type, 'string')
42
+
43
+ def create_boolean_schema() -> Dict[str, Any]:
44
+ """Create a schema that accepts both boolean and boolean-like string values."""
45
+ return {
46
+ "oneOf": [
47
+ {"type": "boolean"},
48
+ {
49
+ "type": "string",
50
+ "enum": ["yes", "no", "true", "false", "on", "off"],
51
+ "x-yaml-boolean": True
52
+ }
53
+ ]
54
+ }
55
+
56
+ def convert_cerberus_to_json_schema(cerberus_schema: Dict[str, Any]) -> Dict[str, Any]:
57
+ """Convert a Cerberus schema to JSON Schema format."""
58
+ json_schema = {
59
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
60
+ "type": "object",
61
+ "properties": {},
62
+ "required": []
63
+ }
64
+
65
+ for field, schema in cerberus_schema.items():
66
+ if not isinstance(schema, dict):
67
+ continue
68
+
69
+ field_schema = {}
70
+
71
+ # Handle type conversion, nullable and !include
72
+ if "type" in schema:
73
+ if schema["type"] == "boolean":
74
+ field_schema.update(create_boolean_schema())
75
+ else:
76
+ base_type = convert_type(schema["type"])
77
+ types = ["string"] # Always allow string for !include
78
+ if isinstance(base_type, list):
79
+ types.extend(base_type)
80
+ else:
81
+ types.append(base_type)
82
+ if schema.get("nullable", False):
83
+ types.append("null")
84
+ field_schema["type"] = types
85
+
86
+ # Handle required fields - only if required and no default
87
+ if schema.get("required", False) and "default" not in schema:
88
+ json_schema["required"].append(field)
89
+
90
+ # Handle default values
91
+ if "default" in schema:
92
+ field_schema["default"] = schema["default"]
93
+
94
+ # Handle nested dictionaries and arrays
95
+ if "schema" in schema and isinstance(schema["schema"], dict):
96
+ if schema.get("type") == "dict":
97
+ types = ["string", "object"] # Allow both string for !include and object
98
+ if schema.get("nullable", False):
99
+ types.append("null")
100
+ field_schema["type"] = types
101
+ field_schema["properties"] = {}
102
+ nested_required = []
103
+
104
+ for nested_field, nested_schema in schema["schema"].items():
105
+ field_schema["properties"][nested_field] = convert_cerberus_to_json_schema(
106
+ {nested_field: nested_schema}
107
+ )["properties"][nested_field]
108
+ # Only add to required if the field is required and has no default
109
+ if nested_schema.get("required", False) and "default" not in nested_schema:
110
+ nested_required.append(nested_field)
111
+
112
+ if nested_required:
113
+ field_schema["required"] = nested_required
114
+
115
+ elif schema.get("type") == "list":
116
+ types = ["string", "array"] # Allow both string for !include and array
117
+ if schema.get("nullable", False):
118
+ types.append("null")
119
+ field_schema["type"] = types
120
+ if isinstance(schema["schema"], dict):
121
+ field_schema["items"] = convert_cerberus_to_json_schema(
122
+ {"item": schema["schema"]}
123
+ )["properties"]["item"]
124
+
125
+ # Handle allowed values (enum)
126
+ if "allowed" in schema:
127
+ if schema.get("type") == "list":
128
+ if "items" not in field_schema:
129
+ field_schema["items"] = {}
130
+ field_schema["items"]["enum"] = schema["allowed"]
131
+ # Add examples for better IDE support
132
+ field_schema["items"]["examples"] = [schema["allowed"][0]] if schema["allowed"] else []
133
+ else:
134
+ field_schema["enum"] = schema["allowed"]
135
+ # Add examples for better IDE support
136
+ field_schema["examples"] = [schema["allowed"][0]] if schema["allowed"] else []
137
+
138
+ # Handle descriptions from meta
139
+ if "meta" in schema and isinstance(schema["meta"], dict):
140
+ if "label" in schema["meta"]:
141
+ field_schema["description"] = schema["meta"]["label"]
142
+ # Add title for better IDE support
143
+ field_schema["title"] = field.replace("_", " ").capitalize()
144
+
145
+ json_schema["properties"][field] = field_schema
146
+
147
+ # Remove required array if empty
148
+ if not json_schema["required"]:
149
+ del json_schema["required"]
150
+
151
+ return json_schema
152
+
153
+ def generate_section_schema(section_name: str, section_schema: Dict[str, Any]) -> Dict[str, Any]:
154
+ """Generate a schema for a specific section."""
155
+ if section_schema.get("type") == "array":
156
+ # For array types, use the items schema directly
157
+ return {
158
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
159
+ **convert_cerberus_to_json_schema({section_name: section_schema})["properties"][section_name]
160
+ }
161
+ else:
162
+ # For object types, wrap in an object schema
163
+ return {
164
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
165
+ "type": "object",
166
+ "properties": {
167
+ section_name: convert_cerberus_to_json_schema({section_name: section_schema})["properties"][section_name]
168
+ }
169
+ }
170
+
171
+ def main():
172
+ """Main function to convert schema."""
173
+ script_dir = os.path.dirname(os.path.abspath(__file__))
174
+ schema_file = os.path.join(script_dir, "..", "schema", "schema.yaml")
175
+ output_dir = os.path.join(script_dir, "..", "webui", "schema")
176
+
177
+ # Create output directory if it doesn't exist
178
+ os.makedirs(output_dir, exist_ok=True)
179
+
180
+ # Load the schema
181
+ with open(schema_file, "r") as f:
182
+ schema = yaml.load(f, Loader=BoneIOLoader)
183
+
184
+ # Convert and save the main schema
185
+ json_schema = convert_cerberus_to_json_schema(schema)
186
+ main_schema_file = os.path.join(output_dir, "config.schema.json")
187
+ with open(main_schema_file, "w") as f:
188
+ json.dump(json_schema, f, indent=2)
189
+ print(f"Schema written to {main_schema_file}")
190
+
191
+ # Generate and save section-specific schemas
192
+ for section_name, section_schema in schema.items():
193
+ section_json_schema = generate_section_schema(section_name, section_schema)
194
+ section_schema_file = os.path.join(output_dir, f"{section_name}.schema.json")
195
+ with open(section_schema_file, "w") as f:
196
+ json.dump(section_json_schema, f, indent=2)
197
+ print(f"Section schema for {section_name} written to {section_schema_file}")
198
+
199
+ if __name__ == "__main__":
200
+ main()
@@ -1,5 +1,7 @@
1
1
  type: list
2
2
  required: False
3
+ meta:
4
+ label: "https://boneio.eu/docs/black/configuration/filters \n List of filters to apply. Allowed filters visible in allowed section."
3
5
  schema:
4
6
  type: dict
5
7
  keysrules:
@@ -2,7 +2,7 @@ mqtt:
2
2
  type: dict
3
3
  required: True
4
4
  meta:
5
- label: Mqtt section
5
+ label: "https://boneio.eu/docs/black/configuration/mqtt \n Mqtt section of boneIO Black configuration file. It handled connecting to mqtt broker, which then is connected to Home Assistant or other smart home system."
6
6
  schema:
7
7
  host:
8
8
  required: True
@@ -30,7 +30,7 @@ mqtt:
30
30
  default: boneIO
31
31
  required: True
32
32
  meta:
33
- label: Prefix topic for boneIO to use. First overriden by
33
+ label: Prefix topic for boneIO to use. If not set, then it will be set to name of the device from boneio section, otherwise set to boneIO.
34
34
  ha_discovery:
35
35
  type: dict
36
36
  meta:
@@ -53,7 +53,7 @@ web:
53
53
  required: False
54
54
  nullable: True
55
55
  meta:
56
- label: Web section
56
+ label: "https://boneio.eu/docs/black/0.9.x-dev/configuration/web \n Web section of boneIO Black. It enables web interface. Default on port 8090."
57
57
  schema:
58
58
  port:
59
59
  required: False
@@ -83,6 +83,8 @@ web:
83
83
  logger:
84
84
  type: dict
85
85
  required: False
86
+ meta:
87
+ label: "https://boneio.eu/docs/black/configuration/logger \n Logger section of boneIO Black. It enables logging level. If run as systemd service, then it will log to journal. If not, then it will log to /tmp/boneio.log"
86
88
  schema:
87
89
  default:
88
90
  type: string
@@ -98,12 +100,14 @@ logger:
98
100
  coerce: lower # Convert to lowercase for all values
99
101
  allowed: ['critical', 'error', 'warning', 'info', 'debug', 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG']
100
102
  meta:
101
- label: List of dict module\:level.
103
+ label: "Each line suppose to have one python module name and logging level eg pymodbus.client: INFO."
102
104
 
103
105
  oled:
104
106
  type: dict
105
107
  default: {}
106
108
  required: True
109
+ meta:
110
+ label: "https://boneio.eu/docs/black/configuration/oled \n Oled section of boneIO Black. It enables oled screen. You'd need enabled: true to make it work."
107
111
  schema:
108
112
  enabled:
109
113
  type: boolean
@@ -176,6 +180,8 @@ oled:
176
180
  modbus:
177
181
  type: dict
178
182
  required: False
183
+ meta:
184
+ label: "https://boneio.eu/docs/black/configuration/modbus \n Modbus section of boneIO Black. It enables modbus support. You define on which uart it modbus defined. For new boneIO it is uart4. For old boneIO it is uart1."
179
185
  schema:
180
186
  uart:
181
187
  type: string
@@ -202,7 +208,7 @@ modbus_sensors:
202
208
  type: list
203
209
  required: False
204
210
  meta:
205
- label: Modbus sensors
211
+ label: "https://boneio.eu/docs/black/configuration/modbus-sensors \n List of modbus sensors. You can use predefined modbus sensors. It would fetch data from them and publish to mqtt."
206
212
  schema:
207
213
  type: dict
208
214
  schema:
@@ -265,16 +271,14 @@ lm75:
265
271
  type: list
266
272
  required: False
267
273
  meta:
268
- label: LM75 Sensor list.
274
+ label: "https://boneio.eu/docs/black/configuration/lm75 \n LM75 Sensor list. All boneIO Black has one LM75 on board."
269
275
  schema:
270
276
  type: dict
271
277
  required: False
272
278
  schema:
273
279
  id: !include id.yaml
274
280
  address:
275
- type:
276
- - string
277
- - integer
281
+ type: integer
278
282
  required: True
279
283
  default: 0x48
280
284
  meta:
@@ -287,7 +291,7 @@ ina219:
287
291
  type: list
288
292
  required: False
289
293
  meta:
290
- label: INA219 Sensor list.
294
+ label: "https://boneio.eu/docs/black/configuration/ina219 \n INA219 Sensor list. All boneIO Black has one INA219 on board, which measures current, voltage and power of boneIO board."
291
295
  schema:
292
296
  type: dict
293
297
  required: False
@@ -326,7 +330,7 @@ mcp9808:
326
330
  type: list
327
331
  required: False
328
332
  meta:
329
- label: MCP9808 Sensor list.
333
+ label: "https://boneio.eu/docs/black/configuration/mcp9808 \n MCP9808 Sensor list. Older boneIO Black had one MCP9808 instead of LM75on board, which measures temperature."
330
334
  schema:
331
335
  type: dict
332
336
  required: False
@@ -348,7 +352,7 @@ mcp23017:
348
352
  type: list
349
353
  required: False
350
354
  meta:
351
- label: mcp23017 Pin config
355
+ label: "https://boneio.eu/docs/black/configuration/mcp23017 \n MCP23017 Pin config. All boneIO Black 32X10/Cover/Cover Mix/24x16 has two MCP23017 on board. If you use new boneio: section, then you don't need to define this."
352
356
  schema:
353
357
  type: dict
354
358
  schema:
@@ -374,7 +378,7 @@ pcf8575:
374
378
  type: list
375
379
  required: False
376
380
  meta:
377
- label: pcf8575 Pin config
381
+ label: "https://boneio.eu/docs/black/configuration/pcf8575 \n PCF8575 Pin config. UNSTABLE."
378
382
  schema:
379
383
  type: dict
380
384
  schema:
@@ -400,7 +404,7 @@ pca9685:
400
404
  type: list
401
405
  required: False
402
406
  meta:
403
- label: pca9685 Pin config
407
+ label: "https://boneio.eu/docs/black/configuration/pca9685 \n PCA9685 Pin config."
404
408
  schema:
405
409
  type: dict
406
410
  schema:
@@ -425,7 +429,7 @@ pca9685:
425
429
  output:
426
430
  type: list
427
431
  meta:
428
- label: List of output relays
432
+ label: "https://boneio.eu/docs/black/configuration/output \n List of outputs to define."
429
433
  check_with: output_id_uniqueness
430
434
  schema:
431
435
  type: dict
@@ -510,7 +514,7 @@ output:
510
514
  output_group:
511
515
  type: list
512
516
  meta:
513
- label: List of groupes outputs
517
+ label: "https://boneio.eu/docs/black/configuration/output_group \n List of groupes outputs to define. Output has to be defined first in output section!"
514
518
  check_with: output_id_uniqueness
515
519
  schema:
516
520
  type: dict
@@ -544,7 +548,7 @@ output_group:
544
548
  binary_sensor:
545
549
  type: list
546
550
  meta:
547
- label: GPIO inputs section
551
+ label: "https://boneio.eu/docs/black/configuration/binary \n GPIO binary section of boneIO Black. It enables binary sensors in HA. It detects press and release states. It can run action based on states. It always send message to MQTT broker of invoked state."
548
552
  schema:
549
553
  type: dict
550
554
  schema:
@@ -656,7 +660,7 @@ binary_sensor:
656
660
  event:
657
661
  type: list
658
662
  meta:
659
- label: GPIO inputs section
663
+ label: "https://boneio.eu/docs/black/configuration/event \n GPIO event entity section of boneIO Black. It enables event entities in HA. It detects single, double and long click. It can run action based on states. It always send message to MQTT broker of invoked state."
660
664
  schema:
661
665
  type: dict
662
666
  schema:
@@ -734,7 +738,7 @@ event:
734
738
  adc:
735
739
  type: list
736
740
  meta:
737
- label: GPIO ADC section
741
+ label: "https://boneio.eu/docs/black/configuration/adc \n GPIO ADC section of boneIO Black. It enables ADC sensors in HA. Don't let them hang without use."
738
742
  schema:
739
743
  type: dict
740
744
  schema:
@@ -761,7 +765,7 @@ cover:
761
765
  type: list
762
766
  required: False
763
767
  meta:
764
- label: Cover section
768
+ label: "https://boneio.eu/docs/black/configuration/cover \n Cover section of boneIO Black. It enables cover entities in HA. You'd need output config to use it first."
765
769
  schema:
766
770
  type: dict
767
771
  schema:
@@ -835,7 +839,7 @@ ds2482:
835
839
  type: list
836
840
  required: False
837
841
  meta:
838
- label: DS2482 list
842
+ label: "https://boneio.eu/docs/black/configuration/ds2482 \n DS2482 section of boneIO Black. It enables DS2482 1 wire extenders, which you can use in sensor: config."
839
843
  schema:
840
844
  type: dict
841
845
  required: False
@@ -851,6 +855,8 @@ ds2482:
851
855
  dallas:
852
856
  type: dict
853
857
  required: False
858
+ meta:
859
+ label: "https://boneio.eu/docs/black/configuration/dallas \n Dallas section of boneIO Black. It enables Dallas bus in boneIO Black Kernel."
854
860
  schema:
855
861
  id:
856
862
  type: string
@@ -862,7 +868,7 @@ sensor:
862
868
  type: list
863
869
  required: False
864
870
  meta:
865
- label: Sensor list. Currently only Dallas DS18B20 support.
871
+ label: Sensor list. Currently only Dallas DS18B20 and DS2482 support. Check DS18B20 or DS2482 section for more info.
866
872
  schema:
867
873
  type: dict
868
874
  schema:
@@ -902,7 +908,7 @@ boneio:
902
908
  type: dict
903
909
  required: False
904
910
  meta:
905
- label: BoneIO configuration section
911
+ label: "https://boneio.eu/docs/black/0.9.x-dev/configuration/boneio \n BoneIO configuration section. It's new section for boneIO Black. It enables you to use predefined device types. For now only 0.7 and 0.8 devices are supported."
906
912
  schema:
907
913
  name:
908
914
  type: string
@@ -910,7 +916,9 @@ boneio:
910
916
  meta:
911
917
  label: Name of boneio. Default is Black.
912
918
  version:
913
- type: string
919
+ type:
920
+ - float
921
+ - string
914
922
  coerce:
915
923
  - str
916
924
  required: False
@@ -7,4 +7,4 @@ coerce:
7
7
  required: True
8
8
  default: 60s
9
9
  meta:
10
- label: Update interval.
10
+ label: Update interval. How often to fetch data from sensor. Default to 60s.
@@ -0,0 +1,2 @@
1
+ # flake8: noqa
2
+ __version__ = "0.9.0dev13"
@@ -881,11 +881,13 @@ async def websocket_endpoint(
881
881
  # _LOGGER.error(f"Error during WebSocket cleanup: {type(e).__name__} - {e}")
882
882
 
883
883
  # Static files setup
884
- FRONTEND_DIR = Path(__file__).parent / "frontend-dist"
884
+ APP_DIR = Path(__file__).parent
885
+ FRONTEND_DIR = APP_DIR / "frontend-dist"
885
886
 
886
887
 
887
888
  if FRONTEND_DIR.exists():
888
889
  app.mount("/assets", StaticFiles(directory=f"{FRONTEND_DIR}/assets"), name="assets")
890
+ app.mount("/schema", StaticFiles(directory=f"{APP_DIR}/schema"), name="schema")
889
891
  # Route to serve React index.html (for client-side routing)
890
892
  @app.get("/{catchall:path}")
891
893
  async def serve_react_app(catchall: str):
@@ -0,0 +1,6 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},t={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}};export{e as conf,t as language};
@@ -0,0 +1,6 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],o=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});var i={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{n as conf,i as language};
@@ -0,0 +1,6 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"}},t={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};export{e as conf,t as language};
@@ -0,0 +1,6 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}};export{e as conf,s as language};
@@ -0,0 +1,7 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var n=e=>`\\b${e}\\b`,t="[_a-zA-Z]",o="[_a-zA-Z0-9]",r=n(`${t}${o}*`),i=["targetScope","resource","module","param","var","output","for","in","if","existing"],a=["true","false","null"],s="[ \\t\\r\\n]",c="[0-9]+",g={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])'
7
+ `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:i,namedLiterals:a,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"[^\\\\'$]+",action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:"'",action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:s},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:c,action:{token:"number"}},{regex:r,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}};export{g as conf,l as language};
@@ -0,0 +1,6 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},o={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};export{e as conf,o as language};