iobroker.mywebui 1.124.0 → 1.130.0

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 (353) hide show
  1. package/LICENSE +434 -3
  2. package/README.md +3 -1
  3. package/default-controls/controls/plantpax/ain-faceplate.control +1 -1
  4. package/default-controls/controls/plantpax/ain-symbol.control +1 -1
  5. package/default-controls/controls/plantpax/alarm-faceplate.control +1 -1
  6. package/default-controls/controls/plantpax/alarm-symbol.control +1 -1
  7. package/default-controls/controls/plantpax/cmdsrc-faceplate.control +1 -1
  8. package/default-controls/controls/plantpax/cmdsrc-symbol.control +1 -1
  9. package/default-controls/controls/plantpax/dbc-faceplate.control +1 -1
  10. package/default-controls/controls/plantpax/dbc-symbol.control +1 -1
  11. package/default-controls/controls/plantpax/din-faceplate.control +1 -1
  12. package/default-controls/controls/plantpax/din-symbol.control +1 -1
  13. package/default-controls/controls/plantpax/dose-faceplate.control +1 -1
  14. package/default-controls/controls/plantpax/dose-symbol.control +1 -1
  15. package/default-controls/controls/plantpax/dout-faceplate.control +1 -1
  16. package/default-controls/controls/plantpax/dout-symbol.control +1 -1
  17. package/default-controls/controls/plantpax/gate-faceplate.control +5 -9
  18. package/default-controls/controls/plantpax/gate-symbol.control +1 -1
  19. package/default-controls/controls/plantpax/hilosel-faceplate.control +1 -1
  20. package/default-controls/controls/plantpax/hilosel-symbol.control +1 -1
  21. package/default-controls/controls/plantpax/intlk-faceplate.control +1 -1
  22. package/default-controls/controls/plantpax/intlk-symbol.control +1 -1
  23. package/default-controls/controls/plantpax/logic-faceplate.control +1 -1
  24. package/default-controls/controls/plantpax/logic-symbol.control +1 -1
  25. package/default-controls/controls/plantpax/meta-faceplate.control +1 -1
  26. package/default-controls/controls/plantpax/meta-symbol.control +1 -1
  27. package/default-controls/controls/plantpax/motor-faceplate.control +1 -1
  28. package/default-controls/controls/plantpax/motor-symbol.control +1 -1
  29. package/default-controls/controls/plantpax/motor2spd-faceplate.control +1 -1
  30. package/default-controls/controls/plantpax/motor2spd-symbol.control +1 -1
  31. package/default-controls/controls/plantpax/motorrev-faceplate.control +1 -1
  32. package/default-controls/controls/plantpax/motorrev-symbol.control +1 -1
  33. package/default-controls/controls/plantpax/npos-faceplate.control +1 -1
  34. package/default-controls/controls/plantpax/npos-symbol.control +1 -1
  35. package/default-controls/controls/plantpax/perm-faceplate.control +1 -1
  36. package/default-controls/controls/plantpax/perm-symbol.control +1 -1
  37. package/default-controls/controls/plantpax/pide-faceplate.control +1 -1
  38. package/default-controls/controls/plantpax/pide-symbol.control +1 -1
  39. package/default-controls/controls/plantpax/valvec-faceplate.control +1 -1
  40. package/default-controls/controls/plantpax/valvec-symbol.control +1 -1
  41. package/default-controls/controls/plantpax/valvemo-faceplate.control +1 -1
  42. package/default-controls/controls/plantpax/valvemo-symbol.control +1 -1
  43. package/default-controls/controls/plantpax/valvemp-faceplate.control +1 -1
  44. package/default-controls/controls/plantpax/valvemp-symbol.control +1 -1
  45. package/default-controls/controls/plantpax/valveso-faceplate.control +1 -1
  46. package/default-controls/controls/plantpax/valveso-symbol.control +1 -1
  47. package/default-controls/controls/plantpax/vsd-faceplate.control +1 -1
  48. package/default-controls/controls/plantpax/vsd-symbol.control +1 -1
  49. package/dist/backend/3d-editor-integration.js +1 -1
  50. package/dist/backend/main.js +1 -1
  51. package/io-package.json +3 -3
  52. package/lib/effectApplier.cjs +22 -0
  53. package/lib/engineBridge.cjs +10 -0
  54. package/native/index.js +326 -0
  55. package/native/mywebui_scada_engine.darwin-arm64.node +0 -0
  56. package/native/mywebui_scada_engine.darwin-x64.node +0 -0
  57. package/native/mywebui_scada_engine.linux-arm-gnueabihf.node +0 -0
  58. package/native/mywebui_scada_engine.linux-arm64-gnu.node +0 -0
  59. package/native/mywebui_scada_engine.linux-arm64-musl.node +0 -0
  60. package/native/mywebui_scada_engine.linux-x64-gnu.node +0 -0
  61. package/native/mywebui_scada_engine.linux-x64-musl.node +0 -0
  62. package/native/mywebui_scada_engine.win32-x64-msvc.node +0 -0
  63. package/native/package.json +25 -0
  64. package/package.json +15 -5
  65. package/www/3d-editor/js/Animation.js +1 -1
  66. package/www/3d-editor/js/AnimationResizer.js +1 -1
  67. package/www/3d-editor/js/Command.js +1 -1
  68. package/www/3d-editor/js/Config.js +1 -1
  69. package/www/3d-editor/js/Editor.js +1 -1
  70. package/www/3d-editor/js/EditorControls.js +1 -1
  71. package/www/3d-editor/js/GLTFImportDialog.js +1 -1
  72. package/www/3d-editor/js/History.js +1 -1
  73. package/www/3d-editor/js/Loader.js +1 -1
  74. package/www/3d-editor/js/LoaderUtils.js +1 -1
  75. package/www/3d-editor/js/Menubar.Add.js +1 -1
  76. package/www/3d-editor/js/Menubar.Edit.js +1 -1
  77. package/www/3d-editor/js/Menubar.File.js +1 -1
  78. package/www/3d-editor/js/Menubar.Help.js +1 -1
  79. package/www/3d-editor/js/Menubar.Render.js +1 -1
  80. package/www/3d-editor/js/Menubar.Status.js +1 -1
  81. package/www/3d-editor/js/Menubar.View.js +1 -1
  82. package/www/3d-editor/js/Menubar.js +1 -1
  83. package/www/3d-editor/js/Player.js +1 -1
  84. package/www/3d-editor/js/Resizer.js +1 -1
  85. package/www/3d-editor/js/Script.js +1 -1
  86. package/www/3d-editor/js/Selector.js +1 -1
  87. package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
  88. package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
  89. package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
  90. package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
  91. package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
  92. package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
  93. package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
  94. package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
  95. package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
  96. package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
  97. package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
  98. package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
  99. package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
  100. package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
  101. package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
  102. package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
  103. package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
  104. package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
  105. package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
  106. package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
  107. package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
  108. package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
  109. package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
  110. package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
  111. package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
  112. package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
  113. package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
  114. package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
  115. package/www/3d-editor/js/Sidebar.Material.js +1 -1
  116. package/www/3d-editor/js/Sidebar.Object.js +1 -1
  117. package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
  118. package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
  119. package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
  120. package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
  121. package/www/3d-editor/js/Sidebar.Project.js +1 -1
  122. package/www/3d-editor/js/Sidebar.Properties.js +1 -1
  123. package/www/3d-editor/js/Sidebar.Scene.js +1 -1
  124. package/www/3d-editor/js/Sidebar.Script.js +1 -1
  125. package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
  126. package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
  127. package/www/3d-editor/js/Sidebar.Settings.js +1 -1
  128. package/www/3d-editor/js/Sidebar.js +1 -1
  129. package/www/3d-editor/js/Storage.js +1 -1
  130. package/www/3d-editor/js/Strings.js +1 -1
  131. package/www/3d-editor/js/TextureParametersDialog.js +1 -1
  132. package/www/3d-editor/js/Toolbar.js +1 -1
  133. package/www/3d-editor/js/Viewport.Controls.js +1 -1
  134. package/www/3d-editor/js/Viewport.Info.js +1 -1
  135. package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
  136. package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
  137. package/www/3d-editor/js/Viewport.XR.js +1 -1
  138. package/www/3d-editor/js/Viewport.js +1 -1
  139. package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
  140. package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
  141. package/www/3d-editor/js/commands/Commands.js +1 -1
  142. package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
  143. package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
  144. package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
  145. package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
  146. package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
  147. package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
  148. package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
  149. package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
  150. package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
  151. package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
  152. package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
  153. package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
  154. package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
  155. package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
  156. package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
  157. package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
  158. package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
  159. package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
  160. package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
  161. package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
  162. package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
  163. package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
  164. package/www/dist/frontend/bundle/chunk-34JJK367.js +3 -3
  165. package/www/dist/frontend/bundle/chunk-3AS7GRBW.js +2 -2
  166. package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
  167. package/www/dist/frontend/bundle/chunk-3R27DWVW.js +2 -2
  168. package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
  169. package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
  170. package/www/dist/frontend/bundle/chunk-43HEBO5G.js +3 -3
  171. package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
  172. package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +3 -3
  173. package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
  174. package/www/dist/frontend/bundle/chunk-66EU64WD.js +1 -1
  175. package/www/dist/frontend/bundle/chunk-6BL3X2VD.js +3 -3
  176. package/www/dist/frontend/bundle/chunk-6L2YCGEX.js +1 -1
  177. package/www/dist/frontend/bundle/chunk-6PNYA23N.js +21 -0
  178. package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +3 -3
  179. package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +2 -2
  180. package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +3 -3
  181. package/www/dist/frontend/bundle/chunk-AUTVRE23.js +1 -1
  182. package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +3 -3
  183. package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
  184. package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
  185. package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
  186. package/www/dist/frontend/bundle/chunk-C7OGVQZC.js +1 -1
  187. package/www/dist/frontend/bundle/chunk-CHDKROX5.js +2 -2
  188. package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +2 -2
  189. package/www/dist/frontend/bundle/chunk-FFW7WOVM.js +1 -1
  190. package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
  191. package/www/dist/frontend/bundle/chunk-FO56TEZH.js +2 -2
  192. package/www/dist/frontend/bundle/chunk-FRCSTZQC.js +2 -2
  193. package/www/dist/frontend/bundle/chunk-FSHAYPVR.js +3 -3
  194. package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +2 -2
  195. package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
  196. package/www/dist/frontend/bundle/chunk-HC7GL5JY.js +1 -1
  197. package/www/dist/frontend/bundle/chunk-HXNIU7FI.js +3 -3
  198. package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
  199. package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
  200. package/www/dist/frontend/bundle/chunk-JVPUFDR5.js +3 -3
  201. package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
  202. package/www/dist/frontend/bundle/chunk-KJU5I76S.js +3 -3
  203. package/www/dist/frontend/bundle/chunk-KY73TL6O.js +3 -3
  204. package/www/dist/frontend/bundle/chunk-LKS3S4WX.js +1 -1
  205. package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
  206. package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
  207. package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
  208. package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
  209. package/www/dist/frontend/bundle/chunk-O2AJL747.js +3 -3
  210. package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
  211. package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
  212. package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +3 -3
  213. package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
  214. package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
  215. package/www/dist/frontend/bundle/chunk-QVMAZVXM.js +1 -0
  216. package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +2 -2
  217. package/www/dist/frontend/bundle/chunk-RRFSEMFS.js +3 -3
  218. package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +2 -2
  219. package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
  220. package/www/dist/frontend/bundle/chunk-S7P222YS.js +1 -1
  221. package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
  222. package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +2 -2
  223. package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +3 -3
  224. package/www/dist/frontend/bundle/chunk-TWQQHCU7.js +3 -3
  225. package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
  226. package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
  227. package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
  228. package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +3 -3
  229. package/www/dist/frontend/bundle/chunk-V5CHFTYG.js +3 -3
  230. package/www/dist/frontend/bundle/chunk-VHXWCBNP.js +1 -1
  231. package/www/dist/frontend/bundle/chunk-W2KWSW4M.js +1 -1
  232. package/www/dist/frontend/bundle/chunk-W5QV7JN5.js +1 -1
  233. package/www/dist/frontend/bundle/chunk-WED7CGWA.js +3 -3
  234. package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
  235. package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
  236. package/www/dist/frontend/bundle/chunk-XCRSZKUF.js +1 -1
  237. package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
  238. package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
  239. package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
  240. package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +2 -2
  241. package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
  242. package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
  243. package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
  244. package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
  245. package/www/dist/frontend/bundle/runtime/controls.js +4 -4
  246. package/www/dist/frontend/bundle/runtime/init.js +2 -2
  247. package/www/dist/frontend/common/Common.globals.js +1 -1
  248. package/www/dist/frontend/common/IobrokerHandler.js +1 -1
  249. package/www/dist/frontend/common/PlantPaxResolve.js +1 -1
  250. package/www/dist/frontend/common/Runtime.js +1 -1
  251. package/www/dist/frontend/config/CommandHandling.js +1 -1
  252. package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
  253. package/www/dist/frontend/config/DockHelper.js +1 -1
  254. package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
  255. package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +3 -3
  256. package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
  257. package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +3 -3
  258. package/www/dist/frontend/config/IobrokerWebuiAppShell.js +3 -3
  259. package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
  260. package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +3 -3
  261. package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
  262. package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
  263. package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
  264. package/www/dist/frontend/config/IobrokerWebuiIconsView.js +3 -3
  265. package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +2 -2
  266. package/www/dist/frontend/config/IobrokerWebuiPlantPaxTypesEditor.js +1 -1
  267. package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
  268. package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
  269. package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
  270. package/www/dist/frontend/config/IobrokerWebuiSecurityEditor.js +1 -1
  271. package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
  272. package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +3 -3
  273. package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
  274. package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +3 -3
  275. package/www/dist/frontend/helper/DialogHelper.js +3 -3
  276. package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
  277. package/www/dist/frontend/helper/Helper.js +1 -1
  278. package/www/dist/frontend/helper/LayoutHelper.js +1 -1
  279. package/www/dist/frontend/helper/XmlHelper.js +1 -1
  280. package/www/dist/frontend/helper/ZipHelper.js +1 -1
  281. package/www/dist/frontend/runtime/AnimationService.js +1 -1
  282. package/www/dist/frontend/runtime/CustomControls.js +1 -1
  283. package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
  284. package/www/dist/frontend/runtime/HabPanelLikeMenu.js +3 -3
  285. package/www/dist/frontend/runtime/NavigationShell.js +1 -1
  286. package/www/dist/frontend/runtime/RuntimeTheme.js +1 -1
  287. package/www/dist/frontend/runtime/ScreenViewer.js +3 -3
  288. package/www/dist/frontend/runtime/TranslateableText.js +2 -2
  289. package/www/dist/frontend/runtime/VisibilityService.js +1 -1
  290. package/www/dist/frontend/runtime/controls.js +1 -1
  291. package/www/dist/frontend/runtime/init.js +1 -1
  292. package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
  293. package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
  294. package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
  295. package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
  296. package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
  297. package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
  298. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
  299. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
  300. package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
  301. package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
  302. package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
  303. package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
  304. package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
  305. package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
  306. package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
  307. package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
  308. package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
  309. package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
  310. package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
  311. package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
  312. package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
  313. package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
  314. package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
  315. package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
  316. package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
  317. package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
  318. package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
  319. package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
  320. package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
  321. package/www/dist/frontend/widgets/layout-components.js +1 -1
  322. package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
  323. package/www/dist/frontend/widgets/testElement.js +1 -1
  324. package/www/license-check.obf.js +1 -1
  325. package/default-controls/controls/test/mybutton.control +0 -1
  326. package/dist/backend/ImportmapCreator.d.ts +0 -27
  327. package/dist/backend/ImportmapCreator.js +0 -1
  328. package/dist/backend/LicenseValidator.js +0 -1
  329. package/dist/backend/UploadHelper.d.ts +0 -21
  330. package/dist/backend/UploadHelper.js +0 -1
  331. package/scripts/_build_alarmhistory.py +0 -193
  332. package/scripts/_build_alarmviewer.py +0 -227
  333. package/scripts/_build_lineargauge.py +0 -114
  334. package/scripts/_build_logout.py +0 -54
  335. package/scripts/_build_plantpax.py +0 -911
  336. package/scripts/_build_plantpax_components.py +0 -607
  337. package/scripts/_build_themetoggle.py +0 -91
  338. package/scripts/_build_userbadge.py +0 -61
  339. package/scripts/_ppx_analysis.html +0 -289
  340. package/scripts/_theme_all.py +0 -120
  341. package/scripts/_theme_nav_level.py +0 -59
  342. package/scripts/build-backend-dev.mjs +0 -40
  343. package/scripts/build-runtime-bundle.mjs +0 -47
  344. package/scripts/build-spectrum-editors.mjs +0 -21
  345. package/scripts/build-spectrum-pilot.mjs +0 -21
  346. package/scripts/convert-default-controls.mjs +0 -75
  347. package/scripts/copy-three.mjs +0 -94
  348. package/scripts/obfuscate-frontend.mjs +0 -96
  349. package/scripts/pp_icons.json +0 -22
  350. package/www/dist/frontend/config/3d-scene-store.ts +0 -304
  351. package/www/dist/frontend/config/3d-scene-types.ts +0 -277
  352. package/www/frontend/route/3d-editor.route.ts +0 -211
  353. package/www/frontend/runtime/3d-editor-nav.ts +0 -54
package/LICENSE CHANGED
@@ -1,7 +1,25 @@
1
- MIT License
2
-
1
+ iobroker.mywebui
3
2
  Copyright (c) 2026 gokturk413
4
- Original work Copyright (c) 2025 jochen.kuehner@gmx.de
3
+
4
+ This product is licensed under CC BY-NC 4.0 (full text below).
5
+
6
+ --------------------------------------------------------------------
7
+ THIRD-PARTY COMPONENTS
8
+ --------------------------------------------------------------------
9
+
10
+ This product is derived from and bundles components of the
11
+ iobroker.webui project and its @node-projects libraries:
12
+
13
+ Copyright (c) 2025 jochen.kuehner@gmx.de
14
+
15
+ Those components — including the vendored packages under
16
+ www/libs/@node-projects/ (web-component-designer, css-parser,
17
+ lean-he-esm, node-html-parser-esm,
18
+ web-component-designer-stylesheetservice-css-tools) — remain licensed
19
+ under the MIT License, reproduced below. The CC BY-NC 4.0 terms apply
20
+ to this product's own additions, not to those components.
21
+
22
+ MIT License
5
23
 
6
24
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
25
  of this software and associated documentation files (the "Software"), to deal
@@ -20,3 +38,416 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
38
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
39
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
40
  SOFTWARE.
41
+
42
+ --------------------------------------------------------------------
43
+ THIS PRODUCT'S LICENCE
44
+ --------------------------------------------------------------------
45
+
46
+ Attribution-NonCommercial 4.0 International
47
+
48
+ =======================================================================
49
+
50
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
51
+ does not provide legal services or legal advice. Distribution of
52
+ Creative Commons public licenses does not create a lawyer-client or
53
+ other relationship. Creative Commons makes its licenses and related
54
+ information available on an "as-is" basis. Creative Commons gives no
55
+ warranties regarding its licenses, any material licensed under their
56
+ terms and conditions, or any related information. Creative Commons
57
+ disclaims all liability for damages resulting from their use to the
58
+ fullest extent possible.
59
+
60
+ Using Creative Commons Public Licenses
61
+
62
+ Creative Commons public licenses provide a standard set of terms and
63
+ conditions that creators and other rights holders may use to share
64
+ original works of authorship and other material subject to copyright
65
+ and certain other rights specified in the public license below. The
66
+ following considerations are for informational purposes only, are not
67
+ exhaustive, and do not form part of our licenses.
68
+
69
+ Considerations for licensors: Our public licenses are
70
+ intended for use by those authorized to give the public
71
+ permission to use material in ways otherwise restricted by
72
+ copyright and certain other rights. Our licenses are
73
+ irrevocable. Licensors should read and understand the terms
74
+ and conditions of the license they choose before applying it.
75
+ Licensors should also secure all rights necessary before
76
+ applying our licenses so that the public can reuse the
77
+ material as expected. Licensors should clearly mark any
78
+ material not subject to the license. This includes other CC-
79
+ licensed material, or material used under an exception or
80
+ limitation to copyright. More considerations for licensors:
81
+ wiki.creativecommons.org/Considerations_for_licensors
82
+
83
+ Considerations for the public: By using one of our public
84
+ licenses, a licensor grants the public permission to use the
85
+ licensed material under specified terms and conditions. If
86
+ the licensor's permission is not necessary for any reason--for
87
+ example, because of any applicable exception or limitation to
88
+ copyright--then that use is not regulated by the license. Our
89
+ licenses grant only permissions under copyright and certain
90
+ other rights that a licensor has authority to grant. Use of
91
+ the licensed material may still be restricted for other
92
+ reasons, including because others have copyright or other
93
+ rights in the material. A licensor may make special requests,
94
+ such as asking that all changes be marked or described.
95
+ Although not required by our licenses, you are encouraged to
96
+ respect those requests where reasonable. More considerations
97
+ for the public:
98
+ wiki.creativecommons.org/Considerations_for_licensees
99
+
100
+ =======================================================================
101
+
102
+ Creative Commons Attribution-NonCommercial 4.0 International Public
103
+ License
104
+
105
+ By exercising the Licensed Rights (defined below), You accept and agree
106
+ to be bound by the terms and conditions of this Creative Commons
107
+ Attribution-NonCommercial 4.0 International Public License ("Public
108
+ License"). To the extent this Public License may be interpreted as a
109
+ contract, You are granted the Licensed Rights in consideration of Your
110
+ acceptance of these terms and conditions, and the Licensor grants You
111
+ such rights in consideration of benefits the Licensor receives from
112
+ making the Licensed Material available under these terms and
113
+ conditions.
114
+
115
+
116
+ Section 1 -- Definitions.
117
+
118
+ a. Adapted Material means material subject to Copyright and Similar
119
+ Rights that is derived from or based upon the Licensed Material
120
+ and in which the Licensed Material is translated, altered,
121
+ arranged, transformed, or otherwise modified in a manner requiring
122
+ permission under the Copyright and Similar Rights held by the
123
+ Licensor. For purposes of this Public License, where the Licensed
124
+ Material is a musical work, performance, or sound recording,
125
+ Adapted Material is always produced where the Licensed Material is
126
+ synched in timed relation with a moving image.
127
+
128
+ b. Adapter's License means the license You apply to Your Copyright
129
+ and Similar Rights in Your contributions to Adapted Material in
130
+ accordance with the terms and conditions of this Public License.
131
+
132
+ c. Copyright and Similar Rights means copyright and/or similar rights
133
+ closely related to copyright including, without limitation,
134
+ performance, broadcast, sound recording, and Sui Generis Database
135
+ Rights, without regard to how the rights are labeled or
136
+ categorized. For purposes of this Public License, the rights
137
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
138
+ Rights.
139
+ d. Effective Technological Measures means those measures that, in the
140
+ absence of proper authority, may not be circumvented under laws
141
+ fulfilling obligations under Article 11 of the WIPO Copyright
142
+ Treaty adopted on December 20, 1996, and/or similar international
143
+ agreements.
144
+
145
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
146
+ any other exception or limitation to Copyright and Similar Rights
147
+ that applies to Your use of the Licensed Material.
148
+
149
+ f. Licensed Material means the artistic or literary work, database,
150
+ or other material to which the Licensor applied this Public
151
+ License.
152
+
153
+ g. Licensed Rights means the rights granted to You subject to the
154
+ terms and conditions of this Public License, which are limited to
155
+ all Copyright and Similar Rights that apply to Your use of the
156
+ Licensed Material and that the Licensor has authority to license.
157
+
158
+ h. Licensor means the individual(s) or entity(ies) granting rights
159
+ under this Public License.
160
+
161
+ i. NonCommercial means not primarily intended for or directed towards
162
+ commercial advantage or monetary compensation. For purposes of
163
+ this Public License, the exchange of the Licensed Material for
164
+ other material subject to Copyright and Similar Rights by digital
165
+ file-sharing or similar means is NonCommercial provided there is
166
+ no payment of monetary compensation in connection with the
167
+ exchange.
168
+
169
+ j. Share means to provide material to the public by any means or
170
+ process that requires permission under the Licensed Rights, such
171
+ as reproduction, public display, public performance, distribution,
172
+ dissemination, communication, or importation, and to make material
173
+ available to the public including in ways that members of the
174
+ public may access the material from a place and at a time
175
+ individually chosen by them.
176
+
177
+ k. Sui Generis Database Rights means rights other than copyright
178
+ resulting from Directive 96/9/EC of the European Parliament and of
179
+ the Council of 11 March 1996 on the legal protection of databases,
180
+ as amended and/or succeeded, as well as other essentially
181
+ equivalent rights anywhere in the world.
182
+
183
+ l. You means the individual or entity exercising the Licensed Rights
184
+ under this Public License. Your has a corresponding meaning.
185
+
186
+
187
+ Section 2 -- Scope.
188
+
189
+ a. License grant.
190
+
191
+ 1. Subject to the terms and conditions of this Public License,
192
+ the Licensor hereby grants You a worldwide, royalty-free,
193
+ non-sublicensable, non-exclusive, irrevocable license to
194
+ exercise the Licensed Rights in the Licensed Material to:
195
+
196
+ a. reproduce and Share the Licensed Material, in whole or
197
+ in part, for NonCommercial purposes only; and
198
+
199
+ b. produce, reproduce, and Share Adapted Material for
200
+ NonCommercial purposes only.
201
+
202
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
203
+ Exceptions and Limitations apply to Your use, this Public
204
+ License does not apply, and You do not need to comply with
205
+ its terms and conditions.
206
+
207
+ 3. Term. The term of this Public License is specified in Section
208
+ 6(a).
209
+
210
+ 4. Media and formats; technical modifications allowed. The
211
+ Licensor authorizes You to exercise the Licensed Rights in
212
+ all media and formats whether now known or hereafter created,
213
+ and to make technical modifications necessary to do so. The
214
+ Licensor waives and/or agrees not to assert any right or
215
+ authority to forbid You from making technical modifications
216
+ necessary to exercise the Licensed Rights, including
217
+ technical modifications necessary to circumvent Effective
218
+ Technological Measures. For purposes of this Public License,
219
+ simply making modifications authorized by this Section 2(a)
220
+ (4) never produces Adapted Material.
221
+
222
+ 5. Downstream recipients.
223
+
224
+ a. Offer from the Licensor -- Licensed Material. Every
225
+ recipient of the Licensed Material automatically
226
+ receives an offer from the Licensor to exercise the
227
+ Licensed Rights under the terms and conditions of this
228
+ Public License.
229
+
230
+ b. No downstream restrictions. You may not offer or impose
231
+ any additional or different terms or conditions on, or
232
+ apply any Effective Technological Measures to, the
233
+ Licensed Material if doing so restricts exercise of the
234
+ Licensed Rights by any recipient of the Licensed
235
+ Material.
236
+
237
+ 6. No endorsement. Nothing in this Public License constitutes or
238
+ may be construed as permission to assert or imply that You
239
+ are, or that Your use of the Licensed Material is, connected
240
+ with, or sponsored, endorsed, or granted official status by,
241
+ the Licensor or others designated to receive attribution as
242
+ provided in Section 3(a)(1)(A)(i).
243
+
244
+ b. Other rights.
245
+
246
+ 1. Moral rights, such as the right of integrity, are not
247
+ licensed under this Public License, nor are publicity,
248
+ privacy, and/or other similar personality rights; however, to
249
+ the extent possible, the Licensor waives and/or agrees not to
250
+ assert any such rights held by the Licensor to the limited
251
+ extent necessary to allow You to exercise the Licensed
252
+ Rights, but not otherwise.
253
+
254
+ 2. Patent and trademark rights are not licensed under this
255
+ Public License.
256
+
257
+ 3. To the extent possible, the Licensor waives any right to
258
+ collect royalties from You for the exercise of the Licensed
259
+ Rights, whether directly or through a collecting society
260
+ under any voluntary or waivable statutory or compulsory
261
+ licensing scheme. In all other cases the Licensor expressly
262
+ reserves any right to collect such royalties, including when
263
+ the Licensed Material is used other than for NonCommercial
264
+ purposes.
265
+
266
+
267
+ Section 3 -- License Conditions.
268
+
269
+ Your exercise of the Licensed Rights is expressly made subject to the
270
+ following conditions.
271
+
272
+ a. Attribution.
273
+
274
+ 1. If You Share the Licensed Material (including in modified
275
+ form), You must:
276
+
277
+ a. retain the following if it is supplied by the Licensor
278
+ with the Licensed Material:
279
+
280
+ i. identification of the creator(s) of the Licensed
281
+ Material and any others designated to receive
282
+ attribution, in any reasonable manner requested by
283
+ the Licensor (including by pseudonym if
284
+ designated);
285
+
286
+ ii. a copyright notice;
287
+
288
+ iii. a notice that refers to this Public License;
289
+
290
+ iv. a notice that refers to the disclaimer of
291
+ warranties;
292
+
293
+ v. a URI or hyperlink to the Licensed Material to the
294
+ extent reasonably practicable;
295
+
296
+ b. indicate if You modified the Licensed Material and
297
+ retain an indication of any previous modifications; and
298
+
299
+ c. indicate the Licensed Material is licensed under this
300
+ Public License, and include the text of, or the URI or
301
+ hyperlink to, this Public License.
302
+
303
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
304
+ reasonable manner based on the medium, means, and context in
305
+ which You Share the Licensed Material. For example, it may be
306
+ reasonable to satisfy the conditions by providing a URI or
307
+ hyperlink to a resource that includes the required
308
+ information.
309
+
310
+ 3. If requested by the Licensor, You must remove any of the
311
+ information required by Section 3(a)(1)(A) to the extent
312
+ reasonably practicable.
313
+
314
+ 4. If You Share Adapted Material You produce, the Adapter's
315
+ License You apply must not prevent recipients of the Adapted
316
+ Material from complying with this Public License.
317
+
318
+
319
+ Section 4 -- Sui Generis Database Rights.
320
+
321
+ Where the Licensed Rights include Sui Generis Database Rights that
322
+ apply to Your use of the Licensed Material:
323
+
324
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
325
+ to extract, reuse, reproduce, and Share all or a substantial
326
+ portion of the contents of the database for NonCommercial purposes
327
+ only;
328
+
329
+ b. if You include all or a substantial portion of the database
330
+ contents in a database in which You have Sui Generis Database
331
+ Rights, then the database in which You have Sui Generis Database
332
+ Rights (but not its individual contents) is Adapted Material; and
333
+
334
+ c. You must comply with the conditions in Section 3(a) if You Share
335
+ all or a substantial portion of the contents of the database.
336
+
337
+ For the avoidance of doubt, this Section 4 supplements and does not
338
+ replace Your obligations under this Public License where the Licensed
339
+ Rights include other Copyright and Similar Rights.
340
+
341
+
342
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
343
+
344
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
345
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
346
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
347
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
348
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
349
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
350
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
351
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
352
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
353
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
354
+
355
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
356
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
357
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
358
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
359
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
360
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
361
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
362
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
363
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
364
+
365
+ c. The disclaimer of warranties and limitation of liability provided
366
+ above shall be interpreted in a manner that, to the extent
367
+ possible, most closely approximates an absolute disclaimer and
368
+ waiver of all liability.
369
+
370
+
371
+ Section 6 -- Term and Termination.
372
+
373
+ a. This Public License applies for the term of the Copyright and
374
+ Similar Rights licensed here. However, if You fail to comply with
375
+ this Public License, then Your rights under this Public License
376
+ terminate automatically.
377
+
378
+ b. Where Your right to use the Licensed Material has terminated under
379
+ Section 6(a), it reinstates:
380
+
381
+ 1. automatically as of the date the violation is cured, provided
382
+ it is cured within 30 days of Your discovery of the
383
+ violation; or
384
+
385
+ 2. upon express reinstatement by the Licensor.
386
+
387
+ For the avoidance of doubt, this Section 6(b) does not affect any
388
+ right the Licensor may have to seek remedies for Your violations
389
+ of this Public License.
390
+
391
+ c. For the avoidance of doubt, the Licensor may also offer the
392
+ Licensed Material under separate terms or conditions or stop
393
+ distributing the Licensed Material at any time; however, doing so
394
+ will not terminate this Public License.
395
+
396
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
397
+ License.
398
+
399
+
400
+ Section 7 -- Other Terms and Conditions.
401
+
402
+ a. The Licensor shall not be bound by any additional or different
403
+ terms or conditions communicated by You unless expressly agreed.
404
+
405
+ b. Any arrangements, understandings, or agreements regarding the
406
+ Licensed Material not stated herein are separate from and
407
+ independent of the terms and conditions of this Public License.
408
+
409
+
410
+ Section 8 -- Interpretation.
411
+
412
+ a. For the avoidance of doubt, this Public License does not, and
413
+ shall not be interpreted to, reduce, limit, restrict, or impose
414
+ conditions on any use of the Licensed Material that could lawfully
415
+ be made without permission under this Public License.
416
+
417
+ b. To the extent possible, if any provision of this Public License is
418
+ deemed unenforceable, it shall be automatically reformed to the
419
+ minimum extent necessary to make it enforceable. If the provision
420
+ cannot be reformed, it shall be severed from this Public License
421
+ without affecting the enforceability of the remaining terms and
422
+ conditions.
423
+
424
+ c. No term or condition of this Public License will be waived and no
425
+ failure to comply consented to unless expressly agreed to by the
426
+ Licensor.
427
+
428
+ d. Nothing in this Public License constitutes or may be interpreted
429
+ as a limitation upon, or waiver of, any privileges and immunities
430
+ that apply to the Licensor or You, including from the legal
431
+ processes of any jurisdiction or authority.
432
+
433
+ =======================================================================
434
+
435
+ Creative Commons is not a party to its public
436
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
437
+ its public licenses to material it publishes and in those instances
438
+ will be considered the “Licensor.” The text of the Creative Commons
439
+ public licenses is dedicated to the public domain under the CC0 Public
440
+ Domain Dedication. Except for the limited purpose of indicating that
441
+ material is shared under a Creative Commons public license or as
442
+ otherwise permitted by the Creative Commons policies published at
443
+ creativecommons.org/policies, Creative Commons does not authorize the
444
+ use of the trademark "Creative Commons" or any other trademark or logo
445
+ of Creative Commons without its prior written consent including,
446
+ without limitation, in connection with any unauthorized modifications
447
+ to any of its public licenses or any other arrangements,
448
+ understandings, or agreements concerning use of licensed material. For
449
+ the avoidance of doubt, this paragraph does not form part of the
450
+ public licenses.
451
+
452
+ Creative Commons may be contacted at creativecommons.org.
453
+
package/README.md CHANGED
@@ -1325,7 +1325,7 @@ https://github.com/iobroker-community-adapters/ioBroker.mywebui
1325
1325
 
1326
1326
  ## License
1327
1327
 
1328
- The MIT License (MIT)
1328
+ Creative Commons Attribution-NonCommercial 4.0 International (CC-BY-NC-4.0)
1329
1329
 
1330
1330
  **Original Work:**
1331
1331
  Copyright (c) 2025 jogibear9988 <jochen.kuehner@gmx.de>
@@ -1333,4 +1333,6 @@ Copyright (c) 2025 jogibear9988 <jochen.kuehner@gmx.de>
1333
1333
  **Modified Work:**
1334
1334
  Copyright (c) 2026 gokturk413
1335
1335
 
1336
+ See the [LICENSE](./LICENSE) file for the full legal text.
1337
+
1336
1338
  **Note:** This custom edition includes proprietary license validation and hardware binding features.
@@ -19,5 +19,5 @@
19
19
  },
20
20
  "html": "<div class=\"fp\"><div class=\"fp-hdr\"><span class=\"fp-title\">[[this.root]]</span><button class=\"fp-adv-btn\" title=\"Advanced\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M4 6h10M4 12h16M4 18h7\"/><circle cx=\"17\" cy=\"6\" r=\"2\"/><circle cx=\"14\" cy=\"18\" r=\"2\"/></svg></button><button class=\"fp-x\">✕</button></div><div class=\"fp-desc\">Analog Input &nbsp;&#183;&nbsp; EU: [[this.unit||'&#8212;']]</div><div class=\"fp-tabs\" data-group=\"main\"><button class=\"fp-tab\" data-tab=\"Home\" title=\"Home\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M3 11l9-8 9 8\"/><path d=\"M5 10v10h14V10\"/></svg><span class=\"fp-tab-cap\">Home</span></button><button class=\"fp-tab\" data-tab=\"Maintenance\" title=\"Maintenance\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M14 6a3.5 3.5 0 00-4.8 4.2l-5 5 1.4 1.4 5-5A3.5 3.5 0 0014 6z\"/><circle cx=\"16.5\" cy=\"7.5\" r=\"1.2\"/></svg><span class=\"fp-tab-cap\">Maint</span></button><button class=\"fp-tab\" data-tab=\"Diagnostics\" title=\"Diagnostics\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M6 3v6a4 4 0 008 0V3\"/><path d=\"M10 15v2a4 4 0 008 0v-1\"/><circle cx=\"18\" cy=\"14\" r=\"2\"/></svg><span class=\"fp-tab-cap\">Diag</span></button><button class=\"fp-tab\" data-tab=\"Alarms\" title=\"Alarms\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M18 8a6 6 0 10-12 0c0 7-3 9-3 9h18s-3-2-3-9\"/><path d=\"M13.7 21a2 2 0 01-3.4 0\"/></svg><span class=\"fp-tab-badge\" bind-css:display=\"[[this.anyAlarm?'':'none']]\"></span></button><button class=\"fp-tab\" data-tab=\"Trend\" title=\"Trend\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M3 17l5-6 4 3 6-8\"/><path d=\"M3 21h18\"/></svg><span class=\"fp-tab-cap\">Trend</span></button></div><div class=\"fp-tabs hidden\" data-group=\"advanced\"><button class=\"fp-tab\" data-tab=\"Main\" title=\"Back to Main\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M15 6l-6 6 6 6\"/></svg><span class=\"fp-tab-cap\">Alarm</span></button><button class=\"fp-tab\" data-tab=\"Engineering\" title=\"Engineering\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1\"/></svg></button><button class=\"fp-tab\" data-tab=\"HMI\" title=\"HMI Config\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"14\" rx=\"1\"/><path d=\"M3 8h18\"/></svg></button><button class=\"fp-tab\" data-tab=\"Faults\" title=\"Faults\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M12 4v10\"/><circle cx=\"12\" cy=\"19\" r=\"0.6\"/></svg></button></div><div class=\"fp-body\"><div data-pane=\"Home\"><div class=\"fp-mai\"><webui-plantpax-components-level-bar id=\"lbar\"></webui-plantpax-components-level-bar><div class=\"fp-pv\"><div class=\"pv-big\">[[this.pv==null?'--':this.pv]]</div><div class=\"pv-eu\">[[this.unit||'']] &nbsp;·&nbsp; <span class=\"pv-mem\">Inp_PV</span></div><div class=\"fp-row\"><span class=\"lbl\">Quality</span><span bind-attr:class=\"[[this.pvBad?'qual bad':(this.pvUncertain?'qual unc':'qual good')]]\">[[this.pvBad?'BAD':(this.pvUncertain?'UNCERTAIN':'GOOD')]]</span></div><div class=\"fp-row\"><span class=\"lbl\">Source</span><span>[[this.substActive?'Substitute':'Input']]</span></div><div class=\"fp-row\"><span class=\"lbl\">Range</span><span>[[this.pvEuMin==null?'--':this.pvEuMin]] &#8212; [[this.pvEuMax==null?'--':this.pvEuMax]]</span></div><div class=\"fp-row\"><span class=\"lbl\">Substitute</span><span>[[this.substActive?'On':'Off']]</span></div></div></div><div class=\"fp-flags\"><webui-plantpax-components-status-flag data-pp=\"1\" field=\"sim\" label=\"Sim\" tone=\"warn\"></webui-plantpax-components-status-flag><webui-plantpax-components-status-flag data-pp=\"1\" field=\"maintByp\" label=\"Maint Byp\" tone=\"warn\"></webui-plantpax-components-status-flag><webui-plantpax-components-status-flag data-pp=\"1\" field=\"substActive\" label=\"Substitute\" tone=\"warn\"></webui-plantpax-components-status-flag><webui-plantpax-components-status-flag data-pp=\"1\" field=\"failAlarm\" label=\"Input Fail\" tone=\"crit\"></webui-plantpax-components-status-flag></div></div><div data-pane=\"Maintenance\" class=\"hidden\"><div class=\"fp-mrow head\"><span class=\"mnm\"></span><span class=\"mh\">Threshold</span><span class=\"mh\">Deadband</span></div><div class=\"fp-mrow\"><span class=\"mnm\">HiHi</span><input type=\"number\" class=\"mnum\" data-field=\"hiHiLim\" bind-prop:value=\"[[this.hiHiLim]]\" placeholder=\"limit\"><input type=\"number\" class=\"mnum\" data-field=\"hiHiDB\" bind-prop:value=\"[[this.hiHiDB]]\" placeholder=\"db\"></div><div class=\"fp-mrow\"><span class=\"mnm\">Hi</span><input type=\"number\" class=\"mnum\" data-field=\"hiLim\" bind-prop:value=\"[[this.hiLim]]\" placeholder=\"limit\"><input type=\"number\" class=\"mnum\" data-field=\"hiDB\" bind-prop:value=\"[[this.hiDB]]\" placeholder=\"db\"></div><div class=\"fp-mrow\"><span class=\"mnm\">Lo</span><input type=\"number\" class=\"mnum\" data-field=\"loLim\" bind-prop:value=\"[[this.loLim]]\" placeholder=\"limit\"><input type=\"number\" class=\"mnum\" data-field=\"loDB\" bind-prop:value=\"[[this.loDB]]\" placeholder=\"db\"></div><div class=\"fp-mrow\"><span class=\"mnm\">LoLo</span><input type=\"number\" class=\"mnum\" data-field=\"loLoLim\" bind-prop:value=\"[[this.loLoLim]]\" placeholder=\"limit\"><input type=\"number\" class=\"mnum\" data-field=\"loLoDB\" bind-prop:value=\"[[this.loLoDB]]\" placeholder=\"db\"></div><div class=\"fp-row\" style=\"margin-top:10px\"><span class=\"lbl\">Substitute PV</span><button class=\"fp-btn\" data-subst=\"1\">[[this.substActive?'Use Input':'Use Substitute']]</button></div></div><div data-pane=\"Engineering\" class=\"hidden\"><div class=\"fp-sec\">Raw Input Scaling</div><webui-plantpax-components-scaling-widget data-pp=\"1\" raw-min-field=\"inpRawMin\" raw-max-field=\"inpRawMax\" eu-min-field=\"pvEuMin\" eu-max-field=\"pvEuMax\"></webui-plantpax-components-scaling-widget><div class=\"fp-sec\">PV Source &amp; Quality</div><label class=\"fp-chk\"><input type=\"checkbox\" data-fieldb=\"useChanSrcQ\"><span>Use channel source quality</span><span class=\"m\">Cfg_UseChanSrcQ</span></label><label class=\"fp-chk\"><input type=\"checkbox\" data-fieldb=\"noSubstPV\"><span>Disable substitute PV selection</span><span class=\"m\">Cfg_NoSubstPV</span></label><div class=\"fp-row\"><span class=\"lbl cfg\"><b>Substitute PV value</b><span class=\"cfgmem\">Set_SubstPV</span></span><input type=\"number\" data-field=\"substPvSet\" bind-prop:value=\"[[this.substPvSet]]\"></div><div class=\"fp-sec\">Filtering &amp; Thresholds</div><div class=\"fp-row\"><span class=\"lbl cfg\"><b>PV filter time constant</b><span class=\"cfgmem\">Cfg_PVFiltTC</span></span><input type=\"number\" data-field=\"filtTC\" bind-prop:value=\"[[this.filtTC]]\"><span class=\"cfgunit\">s</span></div><div class=\"fp-row\"><span class=\"lbl cfg\"><b>Fail High limit</b><span class=\"cfgmem\">Cfg_FailHiLim</span></span><input type=\"number\" data-field=\"failHiLim\" bind-prop:value=\"[[this.failHiLim]]\"></div><div class=\"fp-row\"><span class=\"lbl cfg\"><b>Fail Low limit</b><span class=\"cfgmem\">Cfg_FailLoLim</span></span><input type=\"number\" data-field=\"failLoLim\" bind-prop:value=\"[[this.failLoLim]]\"></div><div class=\"fp-row\"><span class=\"lbl cfg\"><b>PV decimal places</b><span class=\"cfgmem\">Cfg_PVDecPlcs</span></span><input type=\"number\" data-field=\"pvDecPlcs\" bind-prop:value=\"[[this.pvDecPlcs]]\"></div></div><div data-pane=\"Trend\" class=\"hidden\"><div class=\"fp-sec\">PV Trend</div><webui-plantpax-components-sparkline id=\"sparkbig\" style=\"display:block;height:160px\" bind-prop:points=\"120\"></webui-plantpax-components-sparkline><div class=\"fp-row\" style=\"margin-top:6px\"><span class=\"lbl\">Current</span><span>[[this.pv==null?'--':this.pv]] [[this.unit||'']]</span></div></div><div data-pane=\"Diagnostics\" class=\"hidden\"><div class=\"fp-sec\">Signal Chain</div><div class=\"fp-row\"><span class=\"lbl\">Raw / Scaled Input</span><span>[[this.valInpPV==null?'--':this.valInpPV]]</span></div><div class=\"fp-row\"><span class=\"lbl\">Scaled PV (EU)</span><span>[[this.pv==null?'--':this.pv]] [[this.unit||'']]</span></div><div class=\"fp-row\"><span class=\"lbl\">PV Quality</span><span bind-attr:class=\"[[this.pvBad?'qual bad':(this.pvUncertain?'qual unc':'qual good')]]\">[[this.pvBad?'BAD':(this.pvUncertain?'UNCERTAIN':'GOOD')]]</span></div><div class=\"fp-row\"><span class=\"lbl\">Substitute Active</span><span>[[this.substActive?'YES':'no']]</span></div></div><div data-pane=\"Alarms\" class=\"hidden\"><div class=\"fp-almbar\"><span class=\"fp-unack\" bind-css:display=\"[[(this.unackCount||0)>0?'':'none']]\">[[this.unackCount||0]] unacked</span><span class=\"fp-grow\"></span><img class=\"fp-cmdimg\" data-ackall=\"1\" title=\"Acknowledge All\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAAB4ElEQVRYhcWWvXXjMBCEv/spgNeBSrAC+TmUOpA6OIVeJFYFtiuwEmxKdWB1YOUKjh2cQztTCQ6weNKDfkjaIL0ZCUAzGuwMF76hRNxAxF0B/P4OcOCfPf752TcB4BkogBVArwRE3ANwBVTAI8CPHsHHwIs9DlV9BT0pIOIKoLTHRQTvjQDwBAyAjapfHi50TkDETYG/wA6Yp+ud9sCB5QpgpurX6Z6uFSgNfHUKvFMCZrkx8Aoszu3r5AosZmPaDQ+7Pq3sCiSWe7wE3gkB4B5LO1X/ULc5KwGz3B3BcrMmZ7L1gEn/n9D1c1W/anIupwLxK7duCp6NgIi7Y2+5o7S7VF++ArPcC+HfT1T9ps35HArEtFu2BQdTQMTF0Jio+l3TwyLuidD1laoftgWHvQI7gnfLC3tT8DF7y7W691MEZvZDU8vwOvCC0PXQIO1qCZjsE3t3b4FyqeK9r9MB41MEjETFXsoyzu1pmeWmfFH6WEc2FHElYYJ5JXzJdgdrA2oGjLZ1ZENVPwc2hBnuOVmOabfMAX6SgNWMoMDYrHZyps9RZ5MwSbglwXJQM2C0rV/nFrbb7dtodP1OaLgbe73IJX0tASNRjUbXhRHYqPrbnODQ4Fug6heEjGg0YLStD2XTpfneGuMxAAAAAElFTkSuQmCC\"><img class=\"fp-cmdimg\" data-cmd=\"resetAckAll\" title=\"Reset and Acknowledge All\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAACzElEQVRYhc2Xy3naQBSFf/tzAbgDpQKLCiIqiFxBzHa0AFdgUwH2QrM1qQBcAaQCKxVEHYQSspgzaCSEEPIiuZtBw8w9R/ct+MdydclhY7IISIA7IAYerc2LzxC46Qn8AMwEGkoMFI2zS2DeOLdvngOm1uZlJwFjshRYApG2CuAd2AGFtfm+zwuIQNLYG8EJCxiTjQT8oK0VsLA2L3uA/cRZoKROfNxG+PoE+Fbg/uK0Jzg464B767F0pMBWursJAGsq304uDTK9ZSEdJTAJnt86CRiTPeN85cH7+rgpO62JdHgSqTFZLUAPBJRiTzjT3X8CHFwcAHyFg1XupftJWHUCAof+wXZSrM03+hkHeyXwiot+j1UjkAJ7a/OXz4AHMgV+NPZecFZIfUBewyHfR7h0GyzGZB/GZGsAa/OVtXlNn1yxElZyIIB8ReW7IeBLnMnPxc671m8hAe+r3UDwBFd89sBj11lrc48RhQQinP8vjnz5cq3HvtlTopcOCQztam84n74Eb9eHQBWEfcWYLFXA+uc5LnsKa/NO058S34z2VI2jS2ZAYkw20Z2l1umFuL5MHyxQ9CTwqnVNVdcXl/QLxcyoSaDUn0nXZVW4hRTEwGZA4fIYRUiglptnSDzjiknJ5aaHRs25goNZfuuPL2EqaRyjWdWGSIhjbX4LsoAANzjTNue577T08YEyF4ZvVrU0XOAieha2S+SrMP2GiHTOhLE4IqB26QNsHYxPtd4+ENxXyxHwGrb7o+8CdbMUTUXa/oMrNuOB4Ftc1uyszSfh/22VcEo1w22pynTcNlSeAfc6/Ix53zxzRCCY4Ta6+IHqNsez/SngyJjsTXdjXNq2zpg3/gLdkR5pjQkiOAD0hSnB1RLf3kvc59vRnRoBqsp2zsR3LeAPHJMvcMG2OqPPEVAtv21RHlHvEW01v0CfasAvXKCV54D/G/kL1vcb60D2msYAAAAASUVORK5CYII=\"><img class=\"fp-cmdimg\" data-cmd=\"resetAll\" title=\"Reset\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAACP0lEQVRYhe2XzXHbMBCFv3hUANOBS6ArCFWBlAocX4FD7ApsV2DlQFwdVxCqAjEVWCWoBJaQA3cpEAIpKJQdH7IzGgwhYN/DYv8A/1g+pS40xl4CS2AB5EAGrJwr7yLrLsP9zpV1TO8sATgH7gU8RZ6BIqLH/2yAK+fK3SgBY+wTcOtNbYEXYDt0okTJ5Be3gDE2Aza0pgaogcdE0N8cWmALzJ0rm3DxxRHwBrhxrpyfcGJd1wA3MubARnSPEwjA586VPxOBgZ6zZcjJfRKjBOTOffDtKeCeKIlCdHQkBOOQgHi7OtzdBHBo/QDgC4Do0nC9Faw+AUCZ1aeaPSK1jIVOiE6d76xwAV3y0MWPE8HVDyrgR/CX6i4Es7OAJpmp8e2T+Opc+RAhple79AksZHw5B/gRUYyFT0CdYorjpYpi5D6BDIYLxjklyBPRRPSu8p+AEmgAjLHFWwN6GI1PoOeZbyy9iFMCaxmv34GAYqx9ApWMeXgNxtgHY+yvcyCLbrVA1RFwrtyxLxT3wb7vwPJM/qG6a8HsRYGWy8IY+82bV2KTCIhO1dF10h0Bqdkr+Xzyanavtv8leM6+BK/8XuPgXWCMfcXrimT6VUgmvyMC8A3SojlXXvn/xxLRnDZEwub05DwhZu/A2R9omIC0zj6JZxkh0Q+MsYUxduPt3THQls9kQ46Y+YgM+oEXYtf0E9rB8+2AAK2JG/YnTZbI60mlon3MjPYYM+jywOdAcRFZvxvR1dBe2xqoNM4/vPwBFavdGFxFMCwAAAAASUVORK5CYII=\"></div><webui-plantpax-components-alarm-row data-pp=\"1\" name=\"HiHi\" member=\"HiHi.Alm &#183; HiHi.Ack\" alarm-field=\"hiHiAlarm\" ack-field=\"hiHiAck\" severity=\"1000\"></webui-plantpax-components-alarm-row><webui-plantpax-components-alarm-row data-pp=\"1\" name=\"Hi\" member=\"Hi.Alm &#183; Hi.Ack\" alarm-field=\"hiAlarm\" ack-field=\"hiAck\" severity=\"500\"></webui-plantpax-components-alarm-row><webui-plantpax-components-alarm-row data-pp=\"1\" name=\"Lo\" member=\"Lo.Alm &#183; Lo.Ack\" alarm-field=\"loAlarm\" ack-field=\"loAck\" severity=\"500\"></webui-plantpax-components-alarm-row><webui-plantpax-components-alarm-row data-pp=\"1\" name=\"LoLo\" member=\"LoLo.Alm &#183; LoLo.Ack\" alarm-field=\"loLoAlarm\" ack-field=\"loLoAck\" severity=\"1000\"></webui-plantpax-components-alarm-row><webui-plantpax-components-alarm-row data-pp=\"1\" name=\"Fail\" member=\"Fail.Alm &#183; Fail.Ack\" alarm-field=\"failAlarm\" ack-field=\"failAck\" severity=\"1500\"></webui-plantpax-components-alarm-row></div><div data-pane=\"HMI\" class=\"hidden\"><div class=\"fp-sec\">HMI Configuration</div><div class=\"fp-row\"><span class=\"lbl\">Instance</span><span style=\"font-size:11px;word-break:break-all\">[[this.root]]</span></div><div class=\"fp-row\"><span class=\"lbl\">Type</span><span>[[this.type]]</span></div><div class=\"fp-row\"><span class=\"lbl\">EU Units</span><span>[[this.unit||'—']]</span></div></div><div data-pane=\"Faults\" class=\"hidden\"><div class=\"fp-sec\">Faults &amp; Status</div><div class=\"fp-alm\" bind-attr:class=\"[[this.failAlarm?'fp-alm active':'fp-alm']]\"><span class=\"fp-chip\"></span><span class=\"nm\">Input Fail</span></div><div class=\"fp-row\"><span class=\"lbl\">PV Bad</span><span>[[this.pvBad?'YES':'no']]</span></div><div class=\"fp-row\"><span class=\"lbl\">PV Uncertain</span><span>[[this.pvUncertain?'YES':'no']]</span></div></div></div></div>",
21
21
  "style": ":host{display:block;font-family:'Segoe UI',sans-serif;color:var(--ui-text,#e8e8ea);}.fp{display:flex;flex-direction:column;min-width:340px;font-size:13px;background:var(--ui-surface,#1a212b);border-radius:8px;overflow:hidden;}.fp-hdr{display:flex;align-items:center;gap:8px;padding:11px 13px;background:var(--ui-surface-2,#232e3d);}.fp-title{font-weight:640;flex:1;font-size:13px;font-family:monospace;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.fp-x{cursor:pointer;background:none;border:none;color:var(--ui-text,#e8e8ea);font-size:15px;opacity:.85;padding:2px 7px;border-radius:4px;}.fp-x:hover{background:rgba(255,255,255,.1);}.fp-adv-btn{cursor:pointer;background:none;border:none;color:var(--ui-text,#e8e8ea);opacity:.85;padding:3px;display:flex;border-radius:4px;}.fp-adv-btn:hover{background:rgba(255,255,255,.1);}.fp-desc{padding:6px 13px;font-size:11.5px;color:var(--ui-dim,#9aa4b2);border-bottom:1px solid var(--ui-border,#2b3542);}.fp-tabs{display:flex;background:var(--ui-surface-2,#1e2732);border-bottom:1px solid var(--ui-border,#2b3542);}.fp-tab{flex:1;position:relative;padding:8px 2px;cursor:pointer;background:none;border:none;color:var(--ui-dim,#9aa4b2);display:flex;flex-direction:column;align-items:center;gap:3px;border-right:1px solid var(--ui-border,#222b36);}.fp-tab:last-child{border-right:none;}.fp-tab:hover{color:var(--ui-text,#e8e8ea);}.fp-tab.sel{color:var(--accent,#5b9bff);background:var(--ui-surface,#1a212b);}.fp-tab.sel::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent,#5b9bff);}.fp-tab-cap{font-size:9px;letter-spacing:.02em;}.fp-ic{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}.fp-tab-badge{position:absolute;top:5px;right:calc(50% - 15px);width:7px;height:7px;border-radius:50%;background:var(--ui-error,#e5484d);}.fp-body{padding:14px 15px;}.fp-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid var(--ui-border,#222b36);font-size:12.5px;}.fp-row:first-child{border-top:none;}.fp-row .lbl{opacity:.7;}.fp-row input{width:90px;flex:none;text-align:right;padding:4px 8px;background:var(--ui-surface-2,#2f3545);color:var(--ui-text,#e8e8ea);border:1px solid var(--ui-border,#4a5570);border-radius:4px;font-family:monospace;}.fp-btn{padding:5px 11px;background:var(--accent,#2680eb);color:#fff;border:none;border-radius:5px;cursor:pointer;font-size:11px;}.fp-btn.ghost{background:none;border:1px solid var(--ui-border,#4a5570);color:var(--ui-text,#e8e8ea);}.fp-alm{display:flex;align-items:center;gap:8px;margin-bottom:6px;}.fp-chip{width:12px;height:12px;border-radius:50%;background:var(--ui-ok,#30a46c);}.fp-alm.active .fp-chip{background:var(--ui-error,#e5484d);}.fp-alm .nm{flex:1;font-size:12px;}.fp-mai{display:flex;gap:16px;align-items:stretch;}.fp-mai webui-plantpax-components-level-bar{flex:none;}.fp-pv{flex:1;display:flex;flex-direction:column;}.pv-big{font-size:36px;font-weight:710;letter-spacing:-.02em;line-height:1;}.pv-eu{font-size:12px;opacity:.7;margin:3px 0 8px;}.pv-mem{font-family:monospace;font-size:10px;color:var(--accent,#5b9bff);opacity:.8;}.fp-flags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}.fp-sec{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ui-dim,#9aa4b2);margin:14px 0 8px;padding-bottom:5px;border-bottom:1px solid var(--ui-border,#222b36);}.fp-sec:first-child{margin-top:2px;}.fp-mrow{display:flex;align-items:center;gap:8px;margin-bottom:5px;}.fp-mrow .mnm{width:44px;font-size:12px;opacity:.8;}.fp-mrow .mh{flex:1;text-align:center;font-size:10px;opacity:.6;text-transform:uppercase;}.fp-mrow.head{margin-bottom:6px;}.fp-mrow input.mnum{flex:1;width:0;padding:4px;background:var(--ui-surface-2,#2f3545);color:var(--ui-text,#e8e8ea);border:1px solid var(--ui-border,#4a5570);border-radius:4px;font-size:12px;}.fp-chk{display:flex;align-items:center;gap:8px;font-size:12.5px;margin:8px 0;cursor:pointer;}.fp-chk .m{margin-left:auto;font-family:monospace;font-size:9.5px;color:var(--accent,#5b9bff);opacity:.75;}.fp-row .lbl.cfg{display:flex;flex-direction:column;gap:1px;opacity:1;}.fp-row .lbl.cfg b{font-weight:500;font-size:12.5px;}.cfgmem{font-family:monospace;font-size:9.5px;color:var(--accent,#5b9bff);opacity:.75;}.cfgunit{font-family:monospace;font-size:11px;color:var(--ui-dim,#9aa4b2);margin-left:6px;}.fp-almbar{display:flex;align-items:center;gap:8px;margin-bottom:12px;}.fp-grow{flex:1;}.fp-unack{font-size:12px;color:var(--ui-error,#e5484d);font-weight:600;}.fp-cmdimg{width:34px;height:34px;cursor:pointer;flex:none;margin-left:4px;border-radius:4px;}.fp-cmdimg:hover{background:rgba(255,255,255,.08);}.qual{font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:6px;}.qual::after{content:'';width:8px;height:8px;border-radius:50%;background:currentColor;order:2;}.qual.good{color:var(--ui-ok,#30a46c);}.qual.unc{color:var(--ui-warn,#f6b73c);}.qual.bad{color:var(--ui-error,#e5484d);}.hidden{display:none!important;}",
22
- "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n instance.pv=null; instance.pvBad=false; instance.pvUncertain=false; instance.substActive=false;\n instance.anyAlarm=false;\n const ALM=[\"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\"];\n const recomputeAlm=function(){ let any=false; for(const a of ALM){ if(instance[a]===true||instance[a]==='true'||instance[a]===1){ any=true; break; } } instance.anyAlarm=any; try{ instance._bindingsRefresh&&instance._bindingsRefresh(); }catch(e){} };\n const subs=[\"pv\", \"pvBad\", \"pvUncertain\", \"substActive\", \"valInpPV\", \"unackCount\", \"hiHiLim\", \"hiHiDB\", \"hiLim\", \"hiDB\", \"loLim\", \"loDB\", \"loLoLim\", \"loLoDB\", \"inpRawMax\", \"inpRawMin\", \"pvEuMax\", \"pvEuMin\", \"filtTC\", \"noSubstPV\", \"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\", \"useChanSrcQ\", \"substPvSet\", \"failHiLim\", \"failLoLim\", \"pvDecPlcs\"];\n for(const f of subs){ (function(field){ ppSubscribe(instance,field,function(v){\n if(field==='pvBad'||field==='pvUncertain'||field==='substActive'){ instance[field]=(v===true||v==='true'||v===1); }\n else { instance[field]=v; }\n if(field==='pv') instance.pv=v;\n if(ALM.indexOf(field)>=0){ instance[field]=(v===true||v==='true'||v===1); recomputeAlm(); }\n }); })(f); }\n // reflect boolean checkbox states from live values\n const setChecks=function(){ for(const cb of instance._getDomElements('[data-fieldb]')){ const f=cb.getAttribute('data-fieldb'); cb.checked=(instance[f]===true||instance[f]==='true'||instance[f]===1); } };\n instance._tab=function(name){\n for(const p of instance._getDomElements('[data-pane]')) p.classList.toggle('hidden', p.getAttribute('data-pane')!==name);\n for(const t of instance._getDomElements('.fp-tab')) t.classList.toggle('sel', t.getAttribute('data-tab')===name);\n if(name==='Engineering') setChecks();\n };\n // switch to the Advanced icon-strip (Engineering/HMI/Faults) and back to Main\n instance._adv=function(){\n for(const g of instance._getDomElements('[data-group]')) g.classList.toggle('hidden', g.getAttribute('data-group')!=='advanced');\n instance._tab('Engineering');\n };\n instance._main=function(){\n for(const g of instance._getDomElements('[data-group]')) g.classList.toggle('hidden', g.getAttribute('data-group')!=='main');\n instance._tab('Home');\n };\n ppWireHeader(instance);\n instance._tab('Home');\n // wire nested components by id (level-bar + sparklines get the EU unit too)\n (function(){ for(const cid of ['lbar','spark','sparkbig']){ const c=instance._getDomElement(cid); if(c){ c.root=instance.root; c.type=instance.type; c.unit=instance.unit;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } } } })();\n // wire composed [data-pp] components (alarm-row / scaling-widget / status-flag): give root/type + start\n for(const c of instance._getDomElements('[data-pp]')){ c.root=instance.root; c.type=instance.type;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } }\n const can=function(action){ return (window.IOB && typeof window.IOB.secCan==='function') ? window.IOB.secCan(action,instance) : true; };\n const gate=function(){\n const cfg=can('configure'), mnt=can('maintenance'), ack=can('ackAlarm');\n for(const i of instance._getDomElements('[data-field],[data-fieldb]')) i.disabled=!cfg;\n for(const b of instance._getDomElements('[data-subst]')) b.classList.toggle('hidden',!mnt);\n for(const b of instance._getDomElements('[data-ack],[data-ackall]')) b.classList.toggle('hidden',!ack);\n for(const i of instance._getDomElements('.fp-mrow input')) i.disabled=!mnt;\n };\n gate();\n try{ window.IOB && window.IOB.securityChanged && window.IOB.securityChanged.on && window.IOB.securityChanged.on(gate); }catch(e){}\n // numeric config writes\n for(const i of instance._getDomElements('[data-field]')){\n (function(inp){ inp.addEventListener('change',function(){ ppWrite(instance,inp.getAttribute('data-field'),Number(inp.value),'configure'); }); })(i);\n }\n // boolean checkbox writes\n for(const cb of instance._getDomElements('[data-fieldb]')){\n (function(box){ box.addEventListener('change',function(){ ppWrite(instance,box.getAttribute('data-fieldb'),box.checked,'configure'); }); })(cb);\n }\n // substitute PV source toggle (maintenance)\n for(const b of instance._getDomElements('[data-subst]')){\n b.addEventListener('click',function(){ if(instance.substActive){ ppWrite(instance,'cmdInpPV',1,'maintenance'); } else { ppWrite(instance,'cmdSubstPV',1,'maintenance'); } });\n }\n // alarm ack\n const ackMap={\"HiHi\": \"hiHiAck\", \"Hi\": \"hiAck\", \"Lo\": \"loAck\", \"LoLo\": \"loLoAck\", \"Fail\": \"failAck\"};\n for(const b of instance._getDomElements('[data-ack]')){\n (function(btn){ btn.addEventListener('click',function(){ const nm=btn.closest('.fp-alm').querySelector('.nm').textContent; ppWrite(instance,ackMap[nm]||btn.getAttribute('data-ack'),1,'ackAlarm'); }); })(b);\n }\n for(const b of instance._getDomElements('[data-ackall]')){\n b.addEventListener('click',function(){ for(const k in ackMap) ppWrite(instance,ackMap[k],1,'ackAlarm'); });\n }\n // global alarm-set commands (Reset & Ack All / Reset)\n for(const b of instance._getDomElements('[data-cmd]')){\n (function(btn){ btn.addEventListener('click',function(){ ppWrite(instance,btn.getAttribute('data-cmd'),1,'ackAlarm'); }); })(b);\n }\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
22
+ "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// adapter-data-gating: hide el when the resolved member does not exist on the adapter\n// (real .gfx controls are included only when our adapter actually exposes the member).\nasync function ppHideIfMissing(instance,field,el){\n if(!el) return;\n const id=ppResolve(instance,field);\n if(!id){ el.style.display='none'; return; }\n try{\n const o=await window.IOB.getObject(id).catch(function(){ return null; });\n if(o){ el.style.display=''; return; }\n const s=await window.IOB.getState(id).catch(function(){ return null; });\n el.style.display=(s===null||s===undefined)?'none':'';\n }catch(e){}\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n instance.pv=null; instance.pvBad=false; instance.pvUncertain=false; instance.substActive=false;\n instance.anyAlarm=false;\n const ALM=[\"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\"];\n const recomputeAlm=function(){ let any=false; for(const a of ALM){ if(instance[a]===true||instance[a]==='true'||instance[a]===1){ any=true; break; } } instance.anyAlarm=any; try{ instance._bindingsRefresh&&instance._bindingsRefresh(); }catch(e){} };\n const subs=[\"pv\", \"pvBad\", \"pvUncertain\", \"substActive\", \"valInpPV\", \"unackCount\", \"hiHiLim\", \"hiHiDB\", \"hiLim\", \"hiDB\", \"loLim\", \"loDB\", \"loLoLim\", \"loLoDB\", \"inpRawMax\", \"inpRawMin\", \"pvEuMax\", \"pvEuMin\", \"filtTC\", \"noSubstPV\", \"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\", \"useChanSrcQ\", \"substPvSet\", \"failHiLim\", \"failLoLim\", \"pvDecPlcs\"];\n // bind-prop:value=\"[[...]]\" never reaches input.value (the [[..]] parser consumes\n // the attribute but writes a junk 'bindProp:value' expando) -> fill numeric\n // [data-field] inputs imperatively; skip while the operator is typing in it.\n const setNum=function(field,v){ for(const inp of instance._getDomElements('input[data-field=\"'+field+'\"]')){ if(!inp.matches(':focus')) inp.value=(v===null||v===undefined)?'':v; } };\n for(const f of subs){ (function(field){ ppSubscribe(instance,field,function(v){\n if(field==='pvBad'||field==='pvUncertain'||field==='substActive'){ instance[field]=(v===true||v==='true'||v===1); }\n else { instance[field]=v; setNum(field,v); }\n if(field==='pv') instance.pv=v;\n if(ALM.indexOf(field)>=0){ instance[field]=(v===true||v==='true'||v===1); recomputeAlm(); }\n }); })(f); }\n // reflect boolean checkbox states from live values\n const setChecks=function(){ for(const cb of instance._getDomElements('[data-fieldb]')){ const f=cb.getAttribute('data-fieldb'); cb.checked=(instance[f]===true||instance[f]==='true'||instance[f]===1); } };\n instance._tab=function(name){\n for(const p of instance._getDomElements('[data-pane]')) p.classList.toggle('hidden', p.getAttribute('data-pane')!==name);\n for(const t of instance._getDomElements('.fp-tab')) t.classList.toggle('sel', t.getAttribute('data-tab')===name);\n if(name==='Engineering') setChecks();\n };\n // switch to the Advanced icon-strip (Engineering/HMI/Faults) and back to Main\n instance._adv=function(){\n for(const g of instance._getDomElements('[data-group]')) g.classList.toggle('hidden', g.getAttribute('data-group')!=='advanced');\n instance._tab('Engineering');\n };\n instance._main=function(){\n for(const g of instance._getDomElements('[data-group]')) g.classList.toggle('hidden', g.getAttribute('data-group')!=='main');\n instance._tab('Home');\n };\n ppWireHeader(instance);\n instance._tab('Home');\n // wire nested components by id (level-bar + sparklines get the EU unit too)\n (function(){ for(const cid of ['lbar','spark','sparkbig']){ const c=instance._getDomElement(cid); if(c){ c.root=instance.root; c.type=instance.type; c.unit=instance.unit;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } } } })();\n // wire composed [data-pp] components (alarm-row / scaling-widget / status-flag): give root/type + start\n for(const c of instance._getDomElements('[data-pp]')){ c.root=instance.root; c.type=instance.type;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } }\n const can=function(action){ return (window.IOB && typeof window.IOB.secCan==='function') ? window.IOB.secCan(action,instance) : true; };\n const gate=function(){\n const cfg=can('configure'), mnt=can('maintenance'), ack=can('ackAlarm');\n for(const i of instance._getDomElements('[data-field],[data-fieldb]')) i.disabled=!cfg;\n for(const b of instance._getDomElements('[data-subst]')) b.classList.toggle('hidden',!mnt);\n for(const b of instance._getDomElements('[data-ack],[data-ackall]')) b.classList.toggle('hidden',!ack);\n for(const i of instance._getDomElements('.fp-mrow input')) i.disabled=!mnt;\n };\n gate();\n try{ window.IOB && window.IOB.securityChanged && window.IOB.securityChanged.on && window.IOB.securityChanged.on(gate); }catch(e){}\n // numeric config writes\n for(const i of instance._getDomElements('[data-field]')){\n (function(inp){ inp.addEventListener('change',function(){ ppWrite(instance,inp.getAttribute('data-field'),Number(inp.value),'configure'); }); })(i);\n }\n // boolean checkbox writes\n for(const cb of instance._getDomElements('[data-fieldb]')){\n (function(box){ box.addEventListener('change',function(){ ppWrite(instance,box.getAttribute('data-fieldb'),box.checked,'configure'); }); })(cb);\n }\n // substitute PV source toggle (maintenance)\n for(const b of instance._getDomElements('[data-subst]')){\n b.addEventListener('click',function(){ if(instance.substActive){ ppWrite(instance,'cmdInpPV',1,'maintenance'); } else { ppWrite(instance,'cmdSubstPV',1,'maintenance'); } });\n }\n // alarm ack\n const ackMap={\"HiHi\": \"hiHiAck\", \"Hi\": \"hiAck\", \"Lo\": \"loAck\", \"LoLo\": \"loLoAck\", \"Fail\": \"failAck\"};\n for(const b of instance._getDomElements('[data-ack]')){\n (function(btn){ btn.addEventListener('click',function(){ const nm=btn.closest('.fp-alm').querySelector('.nm').textContent; ppWrite(instance,ackMap[nm]||btn.getAttribute('data-ack'),1,'ackAlarm'); }); })(b);\n }\n for(const b of instance._getDomElements('[data-ackall]')){\n b.addEventListener('click',function(){ for(const k in ackMap) ppWrite(instance,ackMap[k],1,'ackAlarm'); });\n }\n // global alarm-set commands (Reset & Ack All / Reset)\n for(const b of instance._getDomElements('[data-cmd]')){\n (function(btn){ btn.addEventListener('click',function(){ ppWrite(instance,btn.getAttribute('data-cmd'),1,'ackAlarm'); }); })(b);\n }\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
23
23
  }
@@ -19,5 +19,5 @@
19
19
  },
20
20
  "html": "<div id=\"sym\" class=\"pp-sym\"><span class=\"pp-pv\">[[this.pv==null?'--':this.pv]]</span><span class=\"pp-unit\">[[this.unit||'']]</span><span class=\"pp-badge\" css:display=\"[[this.unacked?'':'none']]\"></span></div>",
21
21
  "style": ":host{display:block;width:100%;height:100%;font-family:'Segoe UI',sans-serif;}.pp-sym{position:relative;display:flex;align-items:baseline;gap:4px;justify-content:center;height:100%;box-sizing:border-box;padding:4px 8px;border-radius:4px;cursor:pointer;background:var(--pp-bg,var(--ui-surface-2,#2f3545));color:var(--ui-text,#e8e8ea);border:1px solid var(--ui-border,#4a5570);}.pp-pv{font-size:18px;font-weight:700;}.pp-unit{font-size:11px;opacity:.7;}.pp-badge{position:absolute;top:2px;right:2px;width:8px;height:8px;border-radius:50%;background:var(--ui-warn,#f6b73c);}",
22
- "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n instance.pv=null; instance.unacked=0; instance.__alm={}; instance.__sts={};\n ppSubscribe(instance,'pv',function(v){ instance.pv=v; });\n const alarms=[\"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\"];\n for(const a of alarms){ (function(name){ ppSubscribe(instance,name,function(v){ instance.__alm[name]=(v===true||v==='true'||v===1); ppSymColor(instance); }); })(a); }\n // threshold-status bits (Sts_*) so the symbol tracks the MAI colour even before an alarm annunciates\n for(const s of ['hiHiSts','hiSts','loSts','loLoSts']){ (function(name){ ppSubscribe(instance,name,function(v){ instance.__sts[name]=(v===true||v==='true'||v===1); ppSymColor(instance); }); })(s); }\n ppWireSymbol(instance);\n}\nfunction ppSymColor(instance){\n const A=instance.__alm||{}, S=instance.__sts||{};\n const hi2=A.hiHiAlarm||A.loLoAlarm||S.hiHiSts||S.loLoSts, hi1=A.hiAlarm||A.loAlarm||S.hiSts||S.loSts, fail=A.failAlarm;\n const el=instance._getDomElement('sym');\n const c=(hi2||fail)?'var(--ui-error,#e5484d)':(hi1?'var(--ui-warn,#f6b73c)':'var(--ui-ok,#30a46c)');\n if(el) el.style.setProperty('--pp-bg', c);\n // annunciated (unacked) badge tracks the real alarm objects only, not raw threshold status\n instance.unacked=(A.hiHiAlarm||A.loLoAlarm||A.hiAlarm||A.loAlarm||A.failAlarm)?1:0;\n try{ instance._bindingsRefresh&&instance._bindingsRefresh(); }catch(e){}\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
22
+ "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// adapter-data-gating: hide el when the resolved member does not exist on the adapter\n// (real .gfx controls are included only when our adapter actually exposes the member).\nasync function ppHideIfMissing(instance,field,el){\n if(!el) return;\n const id=ppResolve(instance,field);\n if(!id){ el.style.display='none'; return; }\n try{\n const o=await window.IOB.getObject(id).catch(function(){ return null; });\n if(o){ el.style.display=''; return; }\n const s=await window.IOB.getState(id).catch(function(){ return null; });\n el.style.display=(s===null||s===undefined)?'none':'';\n }catch(e){}\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n instance.pv=null; instance.unacked=0; instance.__alm={}; instance.__sts={};\n ppSubscribe(instance,'pv',function(v){ instance.pv=v; });\n const alarms=[\"hiHiAlarm\", \"hiAlarm\", \"loAlarm\", \"loLoAlarm\", \"failAlarm\"];\n for(const a of alarms){ (function(name){ ppSubscribe(instance,name,function(v){ instance.__alm[name]=(v===true||v==='true'||v===1); ppSymColor(instance); }); })(a); }\n // threshold-status bits (Sts_*) so the symbol tracks the MAI colour even before an alarm annunciates\n for(const s of ['hiHiSts','hiSts','loSts','loLoSts']){ (function(name){ ppSubscribe(instance,name,function(v){ instance.__sts[name]=(v===true||v==='true'||v===1); ppSymColor(instance); }); })(s); }\n ppWireSymbol(instance);\n}\nfunction ppSymColor(instance){\n const A=instance.__alm||{}, S=instance.__sts||{};\n const hi2=A.hiHiAlarm||A.loLoAlarm||S.hiHiSts||S.loLoSts, hi1=A.hiAlarm||A.loAlarm||S.hiSts||S.loSts, fail=A.failAlarm;\n const el=instance._getDomElement('sym');\n const c=(hi2||fail)?'var(--ui-error,#e5484d)':(hi1?'var(--ui-warn,#f6b73c)':'var(--ui-ok,#30a46c)');\n if(el) el.style.setProperty('--pp-bg', c);\n // annunciated (unacked) badge tracks the real alarm objects only, not raw threshold status\n instance.unacked=(A.hiHiAlarm||A.loLoAlarm||A.hiAlarm||A.loAlarm||A.failAlarm)?1:0;\n try{ instance._bindingsRefresh&&instance._bindingsRefresh(); }catch(e){}\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
23
23
  }
@@ -19,5 +19,5 @@
19
19
  },
20
20
  "html": "<div class=\"fp\"><div class=\"fp-hdr\"><span class=\"fp-title\">[[this.root]]</span><button class=\"fp-x\">✕</button></div><div class=\"fp-tabs\" data-group=\"main\"><button class=\"fp-tab\" data-tab=\"Home\" title=\"Home\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M3 11l9-8 9 8\"/><path d=\"M5 10v10h14V10\"/></svg><span class=\"fp-tab-cap\">Home</span></button><button class=\"fp-tab\" data-tab=\"Maintenance\" title=\"Maintenance\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M14 6a3.5 3.5 0 00-4.8 4.2l-5 5 1.4 1.4 5-5A3.5 3.5 0 0014 6z\"/><circle cx=\"16.5\" cy=\"7.5\" r=\"1.2\"/></svg><span class=\"fp-tab-cap\">Maint</span></button><button class=\"fp-tab\" data-tab=\"Alarms\" title=\"Alarms\"><svg viewBox=\"0 0 24 24\" class=\"fp-ic\"><path d=\"M18 8a6 6 0 10-12 0c0 7-3 9-3 9h18s-3-2-3-9\"/><path d=\"M13.7 21a2 2 0 01-3.4 0\"/></svg><span class=\"fp-tab-cap\">Alarm</span></button></div><div class=\"fp-body\"><div data-pane=\"Home\"><div class=\"mt-lamps\"><webui-plantpax-components-status-lamp data-pp=\"1\" field=\"alarm\" label=\"In Alarm\" oncolor=\"var(--ui-error,#e5484d)\"></webui-plantpax-components-status-lamp><webui-plantpax-components-status-lamp data-pp=\"1\" field=\"ack\" label=\"Acked\" oncolor=\"var(--ui-ok,#30a46c)\"></webui-plantpax-components-status-lamp><webui-plantpax-components-status-lamp data-pp=\"1\" field=\"shelved\" label=\"Shelved\" oncolor=\"var(--ui-warn,#f6b73c)\"></webui-plantpax-components-status-lamp><webui-plantpax-components-status-lamp data-pp=\"1\" field=\"suppressed\" label=\"Suppressed\" oncolor=\"var(--ui-warn,#f6b73c)\"></webui-plantpax-components-status-lamp><webui-plantpax-components-status-lamp data-pp=\"1\" field=\"disabled\" label=\"Disabled\" oncolor=\"var(--ui-dim,#9aa3b0)\"></webui-plantpax-components-status-lamp></div><div class=\"fp-row\"><span class=\"lbl\">Severity</span><span>[[this.severity==null?'--':this.severity]]</span></div><div class=\"mt-cmds\"><webui-plantpax-components-command-button data-pp=\"1\" field=\"cmdAck\" label=\"Ack\" value=\"1\" action=\"ackAlarm\"></webui-plantpax-components-command-button><webui-plantpax-components-command-button data-pp=\"1\" field=\"cmdShelve\" label=\"Shelve\" value=\"1\" action=\"ackAlarm\"></webui-plantpax-components-command-button><webui-plantpax-components-command-button data-pp=\"1\" field=\"cmdDisable\" label=\"Disable\" value=\"1\" action=\"disableAlarm\"></webui-plantpax-components-command-button></div></div><div data-pane=\"Maintenance\" class=\"hidden\"><div class=\"fp-row\"><span class=\"lbl\">Shelved</span><span>[[this.shelved?'YES':'no']]</span></div><button class=\"fp-btn\" data-cmd=\"resetAckAll\" style=\"margin-top:8px\">Reset &amp; Ack All</button></div><div data-pane=\"Alarms\" class=\"hidden\"><button class=\"fp-btn\" data-cmd=\"resetAckAll\" style=\"margin-bottom:8px\">Reset &amp; Ack All</button><div class=\"fp-alm\" bind-attr:class=\"[[this.alarm?'fp-alm active':'fp-alm']]\"><span class=\"fp-chip\"></span><span class=\"nm\">Alarm Active</span></div></div></div></div>",
21
21
  "style": ":host{display:block;font-family:'Segoe UI',sans-serif;color:var(--ui-text,#e8e8ea);}.fp{display:flex;flex-direction:column;min-width:340px;font-size:13px;background:var(--ui-surface,#1a212b);border-radius:8px;overflow:hidden;}.fp-hdr{display:flex;align-items:center;gap:8px;padding:11px 13px;background:var(--ui-surface-2,#232e3d);}.fp-title{font-weight:640;flex:1;font-size:13px;font-family:monospace;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.fp-x{cursor:pointer;background:none;border:none;color:var(--ui-text,#e8e8ea);font-size:15px;opacity:.85;padding:2px 7px;border-radius:4px;}.fp-x:hover{background:rgba(255,255,255,.1);}.fp-adv-btn{cursor:pointer;background:none;border:none;color:var(--ui-text,#e8e8ea);opacity:.85;padding:3px;display:flex;border-radius:4px;}.fp-adv-btn:hover{background:rgba(255,255,255,.1);}.fp-desc{padding:6px 13px;font-size:11.5px;color:var(--ui-dim,#9aa4b2);border-bottom:1px solid var(--ui-border,#2b3542);}.fp-tabs{display:flex;background:var(--ui-surface-2,#1e2732);border-bottom:1px solid var(--ui-border,#2b3542);}.fp-tab{flex:1;position:relative;padding:8px 2px;cursor:pointer;background:none;border:none;color:var(--ui-dim,#9aa4b2);display:flex;flex-direction:column;align-items:center;gap:3px;border-right:1px solid var(--ui-border,#222b36);}.fp-tab:last-child{border-right:none;}.fp-tab:hover{color:var(--ui-text,#e8e8ea);}.fp-tab.sel{color:var(--accent,#5b9bff);background:var(--ui-surface,#1a212b);}.fp-tab.sel::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent,#5b9bff);}.fp-tab-cap{font-size:9px;letter-spacing:.02em;}.fp-ic{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}.fp-tab-badge{position:absolute;top:5px;right:calc(50% - 15px);width:7px;height:7px;border-radius:50%;background:var(--ui-error,#e5484d);}.fp-body{padding:14px 15px;}.fp-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid var(--ui-border,#222b36);font-size:12.5px;}.fp-row:first-child{border-top:none;}.fp-row .lbl{opacity:.7;}.fp-row input{width:90px;flex:none;text-align:right;padding:4px 8px;background:var(--ui-surface-2,#2f3545);color:var(--ui-text,#e8e8ea);border:1px solid var(--ui-border,#4a5570);border-radius:4px;font-family:monospace;}.fp-btn{padding:5px 11px;background:var(--accent,#2680eb);color:#fff;border:none;border-radius:5px;cursor:pointer;font-size:11px;}.fp-btn.ghost{background:none;border:1px solid var(--ui-border,#4a5570);color:var(--ui-text,#e8e8ea);}.fp-alm{display:flex;align-items:center;gap:8px;margin-bottom:6px;}.fp-chip{width:12px;height:12px;border-radius:50%;background:var(--ui-ok,#30a46c);}.fp-alm.active .fp-chip{background:var(--ui-error,#e5484d);}.fp-alm .nm{flex:1;font-size:12px;}.fp-mai{display:flex;gap:16px;align-items:stretch;}.fp-mai webui-plantpax-components-level-bar{flex:none;}.fp-pv{flex:1;display:flex;flex-direction:column;}.pv-big{font-size:36px;font-weight:710;letter-spacing:-.02em;line-height:1;}.pv-eu{font-size:12px;opacity:.7;margin:3px 0 8px;}.pv-mem{font-family:monospace;font-size:10px;color:var(--accent,#5b9bff);opacity:.8;}.fp-flags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}.fp-sec{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ui-dim,#9aa4b2);margin:14px 0 8px;padding-bottom:5px;border-bottom:1px solid var(--ui-border,#222b36);}.fp-sec:first-child{margin-top:2px;}.fp-mrow{display:flex;align-items:center;gap:8px;margin-bottom:5px;}.fp-mrow .mnm{width:44px;font-size:12px;opacity:.8;}.fp-mrow .mh{flex:1;text-align:center;font-size:10px;opacity:.6;text-transform:uppercase;}.fp-mrow.head{margin-bottom:6px;}.fp-mrow input.mnum{flex:1;width:0;padding:4px;background:var(--ui-surface-2,#2f3545);color:var(--ui-text,#e8e8ea);border:1px solid var(--ui-border,#4a5570);border-radius:4px;font-size:12px;}.fp-chk{display:flex;align-items:center;gap:8px;font-size:12.5px;margin:8px 0;cursor:pointer;}.fp-chk .m{margin-left:auto;font-family:monospace;font-size:9.5px;color:var(--accent,#5b9bff);opacity:.75;}.fp-row .lbl.cfg{display:flex;flex-direction:column;gap:1px;opacity:1;}.fp-row .lbl.cfg b{font-weight:500;font-size:12.5px;}.cfgmem{font-family:monospace;font-size:9.5px;color:var(--accent,#5b9bff);opacity:.75;}.cfgunit{font-family:monospace;font-size:11px;color:var(--ui-dim,#9aa4b2);margin-left:6px;}.fp-almbar{display:flex;align-items:center;gap:8px;margin-bottom:12px;}.fp-grow{flex:1;}.fp-unack{font-size:12px;color:var(--ui-error,#e5484d);font-weight:600;}.fp-cmdimg{width:34px;height:34px;cursor:pointer;flex:none;margin-left:4px;border-radius:4px;}.fp-cmdimg:hover{background:rgba(255,255,255,.08);}.qual{font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:6px;}.qual::after{content:'';width:8px;height:8px;border-radius:50%;background:currentColor;order:2;}.qual.good{color:var(--ui-ok,#30a46c);}.qual.unc{color:var(--ui-warn,#f6b73c);}.qual.bad{color:var(--ui-error,#e5484d);}.hidden{display:none!important;}.mt-lamps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}.mt-cmds{display:flex;gap:10px;margin:10px 0;}.mt-cmds webui-plantpax-components-command-button{flex:1;}.mt-mode{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:8px;}.mt-mode .badge{padding:3px 10px;border-radius:10px;font-weight:700;font-size:11px;background:var(--ui-surface-2,#2f3545);}",
22
- "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n const subs=[\"alarm\", \"ack\", \"shelved\", \"suppressed\", \"disabled\", \"severity\"];\n for(const f of subs){ (function(field){ ppSubscribe(instance,field,function(v){ instance[field]=v; try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }); })(f); }\n instance._tab=function(name){\n for(const p of instance._getDomElements('[data-pane]')) p.classList.toggle('hidden', p.getAttribute('data-pane')!==name);\n for(const t of instance._getDomElements('.fp-tab')) t.classList.toggle('sel', t.getAttribute('data-tab')===name);\n };\n ppWireHeader(instance);\n instance._tab('Home');\n for(const c of instance._getDomElements('[data-pp]')){ c.root=instance.root; c.type=instance.type;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } }\n for(const b of instance._getDomElements('[data-cmd]')){ (function(btn){ btn.addEventListener('click',function(){ ppWrite(instance,btn.getAttribute('data-cmd'),1,'maintenance'); }); })(b); }\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
22
+ "script": "\nfunction ppResolve(instance,field){ try{ return window.IOB.resolvePlantPaxField(instance.type,instance.root,field); }catch(e){ return null; } }\nfunction ppSubscribe(instance,field,onVal){\n const id=ppResolve(instance,field); if(!id) return;\n instance.__ppSubs=instance.__ppSubs||[];\n const cb=(_i,s)=>{ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }).catch(function(){}); }catch(e){}\n try{ window.IOB.subscribeState(id,cb); instance.__ppSubs.push([id,cb]); }catch(e){}\n}\nfunction ppCleanup(instance){\n for(const pair of (instance.__ppSubs||[])){ try{ window.IOB.unsubscribeState(pair[0],pair[1]); }catch(e){} }\n instance.__ppSubs=[];\n}\nasync function ppWrite(instance,field,val,action){\n const id=ppResolve(instance,field); if(!id) return;\n try{ await window.IOB.secWriteState(id,val,{action:action,element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\n// adapter-data-gating: hide el when the resolved member does not exist on the adapter\n// (real .gfx controls are included only when our adapter actually exposes the member).\nasync function ppHideIfMissing(instance,field,el){\n if(!el) return;\n const id=ppResolve(instance,field);\n if(!id){ el.style.display='none'; return; }\n try{\n const o=await window.IOB.getObject(id).catch(function(){ return null; });\n if(o){ el.style.display=''; return; }\n const s=await window.IOB.getState(id).catch(function(){ return null; });\n el.style.display=(s===null||s===undefined)?'none':'';\n }catch(e){}\n}\n// wire symbol click -> open faceplate (event bindings can't eval expressions here, so bind imperatively)\nfunction ppWireSymbol(instance){\n const el=instance._getDomElement&&instance._getDomElement('sym'); if(!el) return;\n el.addEventListener('click',function(){ try{ window.IOB && window.IOB.openFaceplate && window.IOB.openFaceplate(instance.type,instance.root); }catch(e){} });\n}\n// wire faceplate header + icon tab-strip clicks imperatively\nfunction ppWireHeader(instance){\n if(!instance._getDomElements) return;\n for(const b of instance._getDomElements('.fp-x')){ b.addEventListener('click',function(){ try{ window.IOB && window.IOB.closeFaceplate && window.IOB.closeFaceplate(); }catch(e){} }); }\n for(const b of instance._getDomElements('.fp-adv-btn')){ b.addEventListener('click',function(){ instance._adv&&instance._adv(); }); }\n for(const t of instance._getDomElements('.fp-tab')){ (function(btn){ btn.addEventListener('click',function(){ const n=btn.getAttribute('data-tab'); if(n==='Main'){ instance._main&&instance._main(); } else { instance._tab&&instance._tab(n); } }); })(t); }\n}\n\nexport function init(instance){\n if(!instance || typeof instance._getDomElement!=='function' || typeof instance._getDomElements!=='function') return;\n const subs=[\"alarm\", \"ack\", \"shelved\", \"suppressed\", \"disabled\", \"severity\"];\n for(const f of subs){ (function(field){ ppSubscribe(instance,field,function(v){ instance[field]=v; try{instance._bindingsRefresh&&instance._bindingsRefresh();}catch(e){} }); })(f); }\n instance._tab=function(name){\n for(const p of instance._getDomElements('[data-pane]')) p.classList.toggle('hidden', p.getAttribute('data-pane')!==name);\n for(const t of instance._getDomElements('.fp-tab')) t.classList.toggle('sel', t.getAttribute('data-tab')===name);\n };\n ppWireHeader(instance);\n instance._tab('Home');\n for(const c of instance._getDomElements('[data-pp]')){ c.root=instance.root; c.type=instance.type;\n if(typeof c._ppReinit==='function'){ c._ppReinit(); } else { (function(cc){ setTimeout(function(){ cc._ppReinit&&cc._ppReinit(); },200); })(c); } }\n for(const b of instance._getDomElements('[data-cmd]')){ (function(btn){ btn.addEventListener('click',function(){ ppWrite(instance,btn.getAttribute('data-cmd'),1,'maintenance'); }); })(b); }\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
23
23
  }