iobroker.mywebui 1.120.0 → 1.121.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 (266) hide show
  1. package/default-controls/controls/plantpax/components/alarm-row.control +3 -3
  2. package/dist/backend/3d-editor-integration.js +1 -1
  3. package/dist/backend/ImportmapCreator.js +1 -1
  4. package/dist/backend/UploadHelper.js +1 -1
  5. package/dist/backend/main.js +1 -1
  6. package/io-package.json +1 -1
  7. package/package.json +1 -1
  8. package/scripts/_build_plantpax_components.py +32 -20
  9. package/scripts/pp_icons.json +22 -0
  10. package/www/3d-editor/js/Animation.js +1 -1
  11. package/www/3d-editor/js/AnimationResizer.js +1 -1
  12. package/www/3d-editor/js/Command.js +1 -1
  13. package/www/3d-editor/js/Config.js +1 -1
  14. package/www/3d-editor/js/Editor.js +1 -1
  15. package/www/3d-editor/js/EditorControls.js +1 -1
  16. package/www/3d-editor/js/GLTFImportDialog.js +1 -1
  17. package/www/3d-editor/js/History.js +1 -1
  18. package/www/3d-editor/js/Loader.js +1 -1
  19. package/www/3d-editor/js/LoaderUtils.js +1 -1
  20. package/www/3d-editor/js/Menubar.Add.js +1 -1
  21. package/www/3d-editor/js/Menubar.Edit.js +1 -1
  22. package/www/3d-editor/js/Menubar.File.js +1 -1
  23. package/www/3d-editor/js/Menubar.Help.js +1 -1
  24. package/www/3d-editor/js/Menubar.Render.js +1 -1
  25. package/www/3d-editor/js/Menubar.Status.js +1 -1
  26. package/www/3d-editor/js/Menubar.View.js +1 -1
  27. package/www/3d-editor/js/Menubar.js +1 -1
  28. package/www/3d-editor/js/Player.js +1 -1
  29. package/www/3d-editor/js/Resizer.js +1 -1
  30. package/www/3d-editor/js/Script.js +1 -1
  31. package/www/3d-editor/js/Selector.js +1 -1
  32. package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
  33. package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
  34. package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
  35. package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
  36. package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
  37. package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
  38. package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
  39. package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
  40. package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
  41. package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
  42. package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
  43. package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
  44. package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
  45. package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
  46. package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
  47. package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
  48. package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
  49. package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
  50. package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
  51. package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
  52. package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
  53. package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
  54. package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
  55. package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
  56. package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
  57. package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
  58. package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
  59. package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
  60. package/www/3d-editor/js/Sidebar.Material.js +1 -1
  61. package/www/3d-editor/js/Sidebar.Object.js +1 -1
  62. package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
  63. package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
  64. package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
  65. package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
  66. package/www/3d-editor/js/Sidebar.Project.js +1 -1
  67. package/www/3d-editor/js/Sidebar.Properties.js +1 -1
  68. package/www/3d-editor/js/Sidebar.Scene.js +1 -1
  69. package/www/3d-editor/js/Sidebar.Script.js +1 -1
  70. package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
  71. package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
  72. package/www/3d-editor/js/Sidebar.Settings.js +1 -1
  73. package/www/3d-editor/js/Sidebar.js +1 -1
  74. package/www/3d-editor/js/Storage.js +1 -1
  75. package/www/3d-editor/js/Strings.js +1 -1
  76. package/www/3d-editor/js/TextureParametersDialog.js +1 -1
  77. package/www/3d-editor/js/Toolbar.js +1 -1
  78. package/www/3d-editor/js/Viewport.Controls.js +1 -1
  79. package/www/3d-editor/js/Viewport.Info.js +1 -1
  80. package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
  81. package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
  82. package/www/3d-editor/js/Viewport.XR.js +1 -1
  83. package/www/3d-editor/js/Viewport.js +1 -1
  84. package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
  85. package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
  86. package/www/3d-editor/js/commands/Commands.js +1 -1
  87. package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
  88. package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
  89. package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
  90. package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
  91. package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
  92. package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
  93. package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
  94. package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
  95. package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
  96. package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
  97. package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
  98. package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
  99. package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
  100. package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
  101. package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
  102. package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
  103. package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
  104. package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
  105. package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
  106. package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
  107. package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
  108. package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
  109. package/www/dist/frontend/bundle/chunk-34JJK367.js +3 -3
  110. package/www/dist/frontend/bundle/chunk-3AS7GRBW.js +3 -3
  111. package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
  112. package/www/dist/frontend/bundle/chunk-3R27DWVW.js +3 -3
  113. package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
  114. package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
  115. package/www/dist/frontend/bundle/chunk-43HEBO5G.js +2 -2
  116. package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
  117. package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +3 -3
  118. package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
  119. package/www/dist/frontend/bundle/chunk-66EU64WD.js +1 -1
  120. package/www/dist/frontend/bundle/chunk-6BL3X2VD.js +3 -3
  121. package/www/dist/frontend/bundle/chunk-6L2YCGEX.js +1 -1
  122. package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +3 -3
  123. package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +3 -3
  124. package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +3 -3
  125. package/www/dist/frontend/bundle/chunk-AUTVRE23.js +1 -1
  126. package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +2 -2
  127. package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
  128. package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
  129. package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
  130. package/www/dist/frontend/bundle/chunk-C7OGVQZC.js +1 -1
  131. package/www/dist/frontend/bundle/chunk-CHDKROX5.js +3 -3
  132. package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +3 -3
  133. package/www/dist/frontend/bundle/chunk-FFW7WOVM.js +1 -1
  134. package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
  135. package/www/dist/frontend/bundle/chunk-FO56TEZH.js +3 -3
  136. package/www/dist/frontend/bundle/chunk-FRCSTZQC.js +3 -3
  137. package/www/dist/frontend/bundle/chunk-FSHAYPVR.js +3 -3
  138. package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +3 -3
  139. package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
  140. package/www/dist/frontend/bundle/chunk-HC7GL5JY.js +1 -1
  141. package/www/dist/frontend/bundle/chunk-HXNIU7FI.js +3 -3
  142. package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
  143. package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
  144. package/www/dist/frontend/bundle/chunk-JVPUFDR5.js +2 -2
  145. package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
  146. package/www/dist/frontend/bundle/chunk-KJU5I76S.js +3 -3
  147. package/www/dist/frontend/bundle/chunk-KY73TL6O.js +2 -2
  148. package/www/dist/frontend/bundle/chunk-LKS3S4WX.js +1 -1
  149. package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
  150. package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
  151. package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
  152. package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
  153. package/www/dist/frontend/bundle/chunk-O2AJL747.js +3 -3
  154. package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
  155. package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
  156. package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +3 -3
  157. package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
  158. package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
  159. package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +3 -3
  160. package/www/dist/frontend/bundle/chunk-RRFSEMFS.js +3 -3
  161. package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +3 -3
  162. package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
  163. package/www/dist/frontend/bundle/chunk-S7P222YS.js +1 -1
  164. package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
  165. package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +3 -3
  166. package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +2 -2
  167. package/www/dist/frontend/bundle/chunk-TWQQHCU7.js +2 -2
  168. package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
  169. package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
  170. package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
  171. package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +3 -3
  172. package/www/dist/frontend/bundle/chunk-V5CHFTYG.js +3 -3
  173. package/www/dist/frontend/bundle/chunk-VHXWCBNP.js +1 -1
  174. package/www/dist/frontend/bundle/chunk-W2KWSW4M.js +1 -1
  175. package/www/dist/frontend/bundle/chunk-W5QV7JN5.js +1 -1
  176. package/www/dist/frontend/bundle/chunk-WED7CGWA.js +3 -3
  177. package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
  178. package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
  179. package/www/dist/frontend/bundle/chunk-XCRSZKUF.js +1 -1
  180. package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
  181. package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
  182. package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
  183. package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +2 -2
  184. package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
  185. package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
  186. package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
  187. package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
  188. package/www/dist/frontend/bundle/runtime/controls.js +4 -4
  189. package/www/dist/frontend/bundle/runtime/init.js +3 -3
  190. package/www/dist/frontend/common/Common.globals.js +1 -1
  191. package/www/dist/frontend/common/IobrokerHandler.js +1 -1
  192. package/www/dist/frontend/common/PlantPaxResolve.js +1 -1
  193. package/www/dist/frontend/common/Runtime.js +1 -1
  194. package/www/dist/frontend/config/CommandHandling.js +1 -1
  195. package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
  196. package/www/dist/frontend/config/DockHelper.js +1 -1
  197. package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
  198. package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +3 -3
  199. package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
  200. package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +3 -3
  201. package/www/dist/frontend/config/IobrokerWebuiAppShell.js +2 -2
  202. package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
  203. package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +2 -2
  204. package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
  205. package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
  206. package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
  207. package/www/dist/frontend/config/IobrokerWebuiIconsView.js +2 -2
  208. package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +3 -3
  209. package/www/dist/frontend/config/IobrokerWebuiPlantPaxTypesEditor.js +1 -1
  210. package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
  211. package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
  212. package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
  213. package/www/dist/frontend/config/IobrokerWebuiSecurityEditor.js +1 -1
  214. package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
  215. package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +2 -2
  216. package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
  217. package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +2 -2
  218. package/www/dist/frontend/helper/DialogHelper.js +3 -3
  219. package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
  220. package/www/dist/frontend/helper/Helper.js +1 -1
  221. package/www/dist/frontend/helper/LayoutHelper.js +1 -1
  222. package/www/dist/frontend/helper/XmlHelper.js +1 -1
  223. package/www/dist/frontend/helper/ZipHelper.js +1 -1
  224. package/www/dist/frontend/runtime/AnimationService.js +1 -1
  225. package/www/dist/frontend/runtime/CustomControls.js +1 -1
  226. package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
  227. package/www/dist/frontend/runtime/HabPanelLikeMenu.js +2 -2
  228. package/www/dist/frontend/runtime/NavigationShell.js +1 -1
  229. package/www/dist/frontend/runtime/RuntimeTheme.js +1 -1
  230. package/www/dist/frontend/runtime/ScreenViewer.js +3 -3
  231. package/www/dist/frontend/runtime/TranslateableText.js +2 -2
  232. package/www/dist/frontend/runtime/VisibilityService.js +1 -1
  233. package/www/dist/frontend/runtime/controls.js +1 -1
  234. package/www/dist/frontend/runtime/init.js +1 -1
  235. package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
  236. package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
  237. package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
  238. package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
  239. package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
  240. package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
  241. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
  242. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
  243. package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
  244. package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
  245. package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
  246. package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
  247. package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
  248. package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
  249. package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
  250. package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
  251. package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
  252. package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
  253. package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
  254. package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
  255. package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
  256. package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
  257. package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
  258. package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
  259. package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
  260. package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
  261. package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
  262. package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
  263. package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
  264. package/www/dist/frontend/widgets/layout-components.js +1 -1
  265. package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
  266. package/www/dist/frontend/widgets/testElement.js +1 -1
@@ -45,7 +45,7 @@
45
45
  "width": "100%",
46
46
  "height": "auto"
47
47
  },
48
- "html": "<div id=\"ar\" class=\"ar\"><span id=\"sev\" class=\"ar-sev\"></span><span class=\"ar-nm\"><b id=\"nm\"></b><span id=\"mem\" class=\"ar-mem\"></span></span><span id=\"chip\" class=\"ar-chip\"></span><button id=\"ack\" class=\"ar-btn\">ACK</button><button id=\"shelve\" class=\"ar-btn ghost\">Shelve</button></div>",
49
- "style": ":host{display:block;font-family:'Segoe UI',sans-serif;color:var(--ui-text,#e8e8ea);}.ar{display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid var(--ui-border,#4a5570);border-radius:6px;margin-bottom:6px;background:var(--ui-surface-2,#2f3545);}.ar-sev{width:10px;height:10px;border-radius:50%;flex:none;background:var(--ui-ok,#30a46c);}.ar.crit{border-left:3px solid var(--ui-error,#e5484d);} .ar.crit .ar-sev{background:var(--ui-error,#e5484d);}.ar.warn{border-left:3px solid var(--ui-warn,#f6b73c);} .ar.warn .ar-sev{background:var(--ui-warn,#f6b73c);}.ar-nm{flex:1;font-size:12px;} .ar-nm b{display:block;} .ar-mem{font:10px monospace;color:var(--ui-dim,#9aa4b2);}.ar-chip{font:10px monospace;padding:2px 7px;border-radius:10px;}.ar-chip.unack{background:rgba(229,72,77,.16);color:var(--ui-error,#e5484d);}.ar-chip.ackd{background:rgba(48,164,108,.16);color:var(--ui-ok,#30a46c);}.ar-chip.shelv,.ar-chip.supp{background:rgba(59,125,216,.16);color:var(--ui-info,#3b7dd8);}.ar-btn{font-size:11px;padding:5px 10px;border-radius:5px;border:1px solid var(--ui-border,#4a5570);background:var(--accent,#2680eb);color:#fff;cursor:pointer;}.ar-btn.ghost{background:transparent;color:var(--ui-text,#e8e8ea);}.ar-btn[disabled]{opacity:.4;cursor:default;}",
50
- "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); };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); }).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}\nfunction ppNum(v){ v=Number(v); return isFinite(v)&&Math.abs(v)<1e30 ? v : null; }\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||'operate',element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\nfunction ppGate(instance,el,action){\n const g=function(){ const ok=(window.IOB&&typeof window.IOB.secCan==='function')?window.IOB.secCan(action||'operate',instance):true; el.disabled=!ok; el.classList.toggle('pp-nogate',!ok); };\n g(); try{ window.IOB&&window.IOB.securityChanged&&window.IOB.securityChanged.on&&window.IOB.securityChanged.on(g); }catch(e){}\n}\n\nfunction arApply(instance){\n const nm=instance._getDomElement('nm'), mem=instance._getDomElement('mem'), chip=instance._getDomElement('chip'),\n ar=instance._getDomElement('ar'), sh=instance._getDomElement('shelve');\n if(nm) nm.textContent=instance.name||'';\n if(mem) mem.innerHTML=(instance.member||instance.alarmField||'');\n const active=instance.__active===true, ackd=instance.__ackd===true,\n shelved=instance.__shelved===true, supp=instance.__supp===true, dis=instance.__dis===true;\n const sev=(instance.severity|0);\n if(ar){ ar.classList.toggle('crit', sev>=750 || (active&&sev>=500)); ar.classList.toggle('warn', sev>0 && sev<750 && !(sev>=750)); }\n if(chip){\n let s='ackd',t='OK';\n if(dis){s='supp';t='DISABLED';} else if(supp){s='supp';t='SUPPRESSED';}\n else if(shelved){s='shelv';t='SHELVED';} else if(active&&!ackd){s='unack';t='UNACK';}\n else if(active){s='ackd';t='ACTIVE';}\n chip.className='ar-chip '+s; chip.textContent=t;\n }\n if(sh) sh.style.display = instance.__allowShelve ? '' : 'none';\n}\nfunction arStart(instance){\n ppCleanup(instance);\n if(!instance.root){ arApply(instance); return; }\n const sub=(f,k)=>{ if(!instance[f]) return; ppSubscribe(instance,instance[f],function(v){ instance[k]=(v===true||v==='true'||v===1); arApply(instance); }); };\n if(instance.alarmField) ppSubscribe(instance,instance.alarmField,function(v){ instance.__active=(v===true||v==='true'||v===1); arApply(instance); });\n sub('ackField','__ackd'); sub('shelveField','__shelved'); sub('suppressField','__supp'); sub('disableField','__dis');\n arApply(instance);\n}\nexport function init(instance){\n if(!instance||typeof instance._getDomElement!=='function') return;\n instance.__allowShelve = !!instance.shelveField;\n instance._ppReinit=function(){ arStart(instance); };\n const ack=instance._getDomElement('ack'), sh=instance._getDomElement('shelve');\n if(ack) ack.addEventListener('click',function(){ if(instance.ackField) ppWrite(instance,instance.ackField,1,'ackAlarm'); });\n if(sh) sh.addEventListener('click',function(){ if(instance.shelveField) ppWrite(instance,instance.shelveField,1,'ackAlarm'); });\n arStart(instance);\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
48
+ "html": "<div id=\"ar\" class=\"ar\"><img id=\"ico\" class=\"ar-ico\" alt=\"\"><span class=\"ar-nm\"><b id=\"nm\"></b><span id=\"mem\" class=\"ar-mem\"></span></span><span id=\"chip\" class=\"ar-chip\"></span><img id=\"ack\" class=\"ar-ackimg\" alt=\"Ack\" title=\"Acknowledge alarm\"><button id=\"shelve\" class=\"ar-btn ghost\">Shelve</button></div>",
49
+ "style": ":host{display:block;font-family:'Segoe UI',sans-serif;color:var(--ui-text,#e8e8ea);}.ar{display:flex;align-items:center;gap:9px;padding:7px 9px;border:1px solid var(--ui-border,#4a5570);border-radius:6px;margin-bottom:6px;background:var(--ui-surface-2,#2f3545);}.ar-ico{width:18px;height:18px;flex:none;object-fit:contain;}.ar.crit{border-left:3px solid var(--ui-error,#e5484d);}.ar.warn{border-left:3px solid var(--ui-warn,#f6b73c);}.ar-nm{flex:1;font-size:12px;} .ar-nm b{display:block;} .ar-mem{font:10px monospace;color:var(--ui-dim,#9aa4b2);}.ar-chip{font:10px monospace;padding:2px 7px;border-radius:10px;}.ar-chip.unack{background:rgba(229,72,77,.16);color:var(--ui-error,#e5484d);}.ar-chip.ackd{background:rgba(48,164,108,.16);color:var(--ui-ok,#30a46c);}.ar-chip.shelv,.ar-chip.supp{background:rgba(59,125,216,.16);color:var(--ui-info,#3b7dd8);}.ar-ackimg{width:32px;height:32px;flex:none;cursor:pointer;}.ar-ackimg.off{opacity:.35;cursor:default;pointer-events:none;}.ar-btn{font-size:11px;padding:5px 10px;border-radius:5px;border:1px solid var(--ui-border,#4a5570);background:transparent;color:var(--ui-text,#e8e8ea);cursor:pointer;}",
50
+ "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); };\n try{ window.IOB.getState(id).then(function(s){ onVal(s&&s.val); }).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}\nfunction ppNum(v){ v=Number(v); return isFinite(v)&&Math.abs(v)<1e30 ? v : null; }\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||'operate',element:instance}); }catch(e){ console.warn('[plantpax] write failed',field,e); }\n}\nfunction ppGate(instance,el,action){\n const g=function(){ const ok=(window.IOB&&typeof window.IOB.secCan==='function')?window.IOB.secCan(action||'operate',instance):true; el.disabled=!ok; el.classList.toggle('pp-nogate',!ok); };\n g(); try{ window.IOB&&window.IOB.securityChanged&&window.IOB.securityChanged.on&&window.IOB.securityChanged.on(g); }catch(e){}\n}\nconst AR_ICO={\"prio-urg\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA7ElEQVQ4ja2TPQrCQBCFvyyKqPjTK0vKxUobsUwR7AX7iK2CVzIn8Ah6A1OmXHIC8QBi4Sas6//P6+btvMfbYcbDQearGRABgfO0A2Kp07VNepbQBzZA3zV1kAATqVNdGBjxHmi/EOc4AAOpUy0MsbHF5Z5CNBtFd2U0dA3aRoMwf76KXRuHNOZRUbdWi3sp+pmvZoLLwL5FJLid9icIxOue5/jZoHSPPB2Pbxt4ma+2fD+HnQDim1jdztUelHvqkUEszG4nNlufTqiOw6JurZaUuh1XnEidrv+zyuYwBm6SB0hyMVjXmOPTcz4D2MM/n+vtA34AAAAASUVORK5CYII=\", \"prio-hi\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAAuElEQVQ4ja2TPQ6CQBBG344SbRQKEgsSbbWz0Z5rcQCvxRXoOIGdBbGzMFq4ayCz6wbD1y077+3fYAjkdjkcgdoOy7xqG1+dicCZ/dSFJErggV28EvkFS1qQbM9uOgNqW6MFvpVnaUGyO/XrlUQi2/ZlIJGRsJLIH/BAItGySAQo+TyRyutx59ldQ2wHlAZGX+IXzqu2EQDbHGon882+3wcKdkcgJDGLNWa5CsIwQStP/zN5JIRggDfwqlYRazv8jwAAAABJRU5ErkJggg==\", \"prio-med\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA5ElEQVQ4jZ2SvQ3CMBSEvyC6IJTeRcIIbJARMkLYIBswAmICoKShYw5KJBpwkZooinsKnkJ+HEM4yYX17u6d5QMHjFaJ0SpxcTyHOADucl34YV7YeBOHeQYEcrJRCYxWEXARMUABLP0wf/yaYA0EZQVlBWK0thF7BrI9Bbje4HCsR6nMvibYDKSyzloGRqsYcH1bIpzBBNZ3uji1gRQm7rItiJvlaiZwvb2LmuvJ9hTY2ZhlBfOZ1WTlh/nek8pegMgmhkGDB7Cc8K5pTwxwOrd60EUEZJ7R6smnsmNRTIHtn2IAXjXIP+KmEHb7AAAAAElFTkSuQmCC\", \"prio-lo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAAr0lEQVQ4jWNkgIKJWWsTGBgY5jMQBxLzpwUvYGBgYGBBEoz3SbNgUNKXwqvz3sVnDFtmnYhnYGBYwMDAwMCELMnOxUbQanQ1TDjUMTAwMDDsXnyWYcusE3gNZMEn+fntN4IuwusCYsBwN4CNi5WgAXhjwTXWmOHnt9/ku+DC/jsM108+JN8FT2+9gTC8yDQgqMAWr+0MDGhe+PntF0EN6GqQXbBwy6wTDgRNgKqFMQBgfyntJ+szPQAAAABJRU5ErkJggg==\", \"alm-active\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA7klEQVQ4y52TwU0DMRREHyvm7g7YVIA7IFRAStgO2BJoIRVsCYgKNiWkA9JBfPchXMbBisLGYSTLtjwz/+trDICkKOlb0sgNSBrNjQCdpADMwNaEfkFc3rbALCk8SJqAAByANfAKRODdO8Deor2L7YAeSEg6Stp4D5IGSac/1mDOWdO5OnYNwLQwgtLtzvfQufUEfAEbbmNtbgIOjznnVTWkjwaDPudceKvu4vGJO3Fp0Ddonq8aOA+xwSCa+2tQhSm0zKCEqO5gbKx+7gIYaoMX7sdbbZD+YZCWftzkP4Kj+1nuTbBoduaPPl8d8A9arze4rxI+6AAAAABJRU5ErkJggg==\", \"alm-ackd\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAABMUlEQVQ4y42TzW3CQBCFPyy9c3zhjEvg4AKSDoioAOF7IhoIooFIPiOhVBBSgXEFuIO4A/vuw+SQMTLG/DxptdrVmzezb2YBkDSV9CtpzR1IWjt3ChBICoEMOAC1pOhGcATUzs0khSNJOyAESuAZeAWmwJufAfbAF1AA3y7wLyapkjTzPfIS7cp6d84pJvDsuCrAxw0LPnvcMPA3AfwAM+5j5lw6sWcOX5Q+n8+tqqr2fNapoKf+1E83mUzYbrckSXK/NklZP3ue55amafcuuxYcuruW57nFcWybzcaKorDxeNwVqHx2LoKPLWm1WllZlmZmFsfxUDuPZyJD5qVpasvl0m7NBMCofXtn6h7FoWmal2Cwn4+hPlUwYGj7PxZ+tQPqpmkWD0m7qd2WZhfOO/4AYcyI1qa9e8YAAAAASUVORK5CYII=\", \"alm-ackreqd\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAABIUlEQVQ4jZWTPW6DQBCFH1FqRP1EQbnSFnELFc2eIxInICeIcwEuQOGaKu64AZR2QR+LgtbiBJPC5idkQfYnrbTa3fdmNDPrwALJPYB3AMHs+Ajgq+u6s00zF5+UUlIUhbRtKyIiZVlKkiRC8kpytyVOlVLSNI3YSNNUSP5sRs/z3CoWEen7XkgKyXjQvCw8dlrr1QCu6yIMQwBYNcCWgY3RgKQ3RNkiiiK7AYD16v7nzWYQP5K+7/sAEA8ZA5jaV5blagfmGGOE5ImkB5IBSamq6iHxwuQAkntjzFNikdt0kry+ArfKZ1n2RA1HPOc+VZ+Li1hr/aeldV0DwOW+Bub7CZIHY8z4mfI8H0Y4WL51Vgw8AN+YRvYC4KPruuPy7S/oGxMb+o3kHQAAAABJRU5ErkJggg==\", \"alm-inactive\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA+0lEQVQ4ja2S0VHDMBBEnzMpwHTgdOAOMAXcQCoglKAO6CCTCnAJyWwB0AHpwO4AdxA+dICRBeiDndHPandvR7qKBJJqYA/cAbXTE3AEgplNc/0qYx6AFgjAlZ/g3OCaT6yTAntgBG6SSb2kI/DsmodsA2CXqwngXHDNEpI6SZfs5XfdRVL3U4Pxr4BU868BXYF5oZ0HXAPnAvPZtV8Bkp6ABjgUBByA1j1UknbEv93kvi8HSQ3wCoQVcAv0pWYAMxuBHrhfE/e9lvRYGuCoIa7yyVs0s4uW+FjTLxzAqcpFSxqAF+LqQnyjzsw2qTZdpA9sfeKbn9a5Bd4B5A5T5qcv+BsAAAAASUVORK5CYII=\", \"alm-shelved\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA0UlEQVQ4jZ2SsW3DMBBFnxwXbg5R2j9BtpC9iTKBnU28gWbIBLY20AZKdTUBNe7swqQRGBFI6wEESOLex+FwFYCkFui48wucgW93D2Sonj8kbYE9sAV27j7kQv5FUidpXCT/CRljR7O8zYi1mW2AT+DDzAYz20zTdHmuXc0Et8AJCMB7vLfFrccuOknXeLq8MR+yTC6lklRzX6L6RTcAX+v4SHJfKDfJWbt7kPQD4O7HElvSIdZnVz1LmsFhoX9Mi9TEU8qjPs2gB8KLM6jdPdwA/uA+o1bOYrQAAAAASUVORK5CYII=\", \"alm-supp\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAAA9klEQVQ4jaWTMa6DMBBEJyi1DzASEqUlLvFvAgXufRGfAIr8mhPQcQMan8AFbWQusGkgSpD5Ij+vtWZ217N7wQ6SNYAKwM/uaQTwO8/zba/ZhAXJSWstzjkJIciG917athWttZCcSBYp8d1aKzFGOSLGKNZaIXl/MyE5WWsPhXtWk+k5s9b6z8qpTtZx6gxAZYyBUir5NymUUjDGAEAFkuK9P119I4QgJOUKAGVZYlkWdF13qoOmaZDnOQAgO933ESTfMj+L915ISgZg7Pv+48LDMADA+HWM2xj/X6TV4LtVfjF5HtPrboQQxDmXPKZLIpUaH5zzA+va1+Bf11DpAAAAAElFTkSuQmCC\", \"alm-disabled\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAABzUlEQVQ4jXWTMW7iUBRFD6MsgPp9IVEhJIphKmSaQEHNIBYASCzAEQvIzAJssgAka1ZACjoKJg0tjGTqjLBs0aBgNvBSYEeOIVey9PX97v33//tegRxEpAhMgZ9AMdn+D/wBnqIoOmVq7UKOXAY2tVqtOB6PsSyL8/nMbrfDdV2CINgC7aR8lT8cEZl3Oh2N41jziONYu93uRkTqIrJJvmKWXBQR9X3/ipzAS8hvIjJPyXcZA3WAWq125Qx4Msa8JLafoygapT++Zassy7pFHhlj/gFz4DfwIiL1WwLlHPEE9Iwx3wEPGIVhSLL+uPtXAiegbYzpAkPgRxiG98A0ueJNgftmswmwXSwWbWOMB7Qsy+qFYfiYCFEqlQAGn7yKyKrRaOjxeNw4jlNOY3Icp6yqm2wUvu9rtVpVEfFS8rBarerhcPD6/X4rjWm9XrdU9fVWnr7vq4ioiLQQkdVgMPBEJCV7qlpX1bevGkJV1bZtFRHvDnhYLpd1Lhk/VCqVk+u6mxtxfkIQBADlgoj8Ah6BEfDMZZCGk8nkoziOY2azGVz6IIstie1W7lFfbdvW/X6v+/1eO52Oisj18ACFW5tJp02BVPgv0MuOcop37BYZdtrxCIQAAAAASUVORK5CYII=\", \"cmd-ack\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAAB4ElEQVRYhcWWvXXjMBCEv/spgNeBSrAC+TmUOpA6OIVeJFYFtiuwEmxKdWB1YOUKjh2cQztTCQ6weNKDfkjaIL0ZCUAzGuwMF76hRNxAxF0B/P4OcOCfPf752TcB4BkogBVArwRE3ANwBVTAI8CPHsHHwIs9DlV9BT0pIOIKoLTHRQTvjQDwBAyAjapfHi50TkDETYG/wA6Yp+ud9sCB5QpgpurX6Z6uFSgNfHUKvFMCZrkx8Aoszu3r5AosZmPaDQ+7Pq3sCiSWe7wE3gkB4B5LO1X/ULc5KwGz3B3BcrMmZ7L1gEn/n9D1c1W/anIupwLxK7duCp6NgIi7Y2+5o7S7VF++ArPcC+HfT1T9ps35HArEtFu2BQdTQMTF0Jio+l3TwyLuidD1laoftgWHvQI7gnfLC3tT8DF7y7W691MEZvZDU8vwOvCC0PXQIO1qCZjsE3t3b4FyqeK9r9MB41MEjETFXsoyzu1pmeWmfFH6WEc2FHElYYJ5JXzJdgdrA2oGjLZ1ZENVPwc2hBnuOVmOabfMAX6SgNWMoMDYrHZyps9RZ5MwSbglwXJQM2C0rV/nFrbb7dtodP1OaLgbe73IJX0tASNRjUbXhRHYqPrbnODQ4Fug6heEjGg0YLStD2XTpfneGuMxAAAAAElFTkSuQmCC\", \"cmd-ack-disa\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsSAAALEgHS3X78AAABvUlEQVRYhcWWbXnCQBCE3/apAOoACeBgcAAOigNQACgAB8EBOGAdFAdFQiT0x+090OMjSbmE/RfujpnM7UwWXlBm1jezAcDHK8CBb3/8fO+aALADesAWoFMCZrYEBsARWAG8dQgu4OCPQ0lH6EgBM+sBhT/OI3hnBIA10AdM0uZyoXUCZjYGvoASmKbrrfbAheV6wETSPt3TtgKFg29vgbdKwC0n4ATM7+1r5Qo8ZmPaDS+7Pq3sCiSWWz0Cb4UAsMDTTtKyanNWAm65GcFykzpnsvWAS/9D6PqppG2dczkViF+5fV3wbATMbMbZcldp96ievgK33IHw9iNJ1uR8DgVi2m2agoMrYGYxNEaSyrqHzWxN6PqjpGFTcDgrUBK8WzzYm4KLs+Ua3fstAhP/o7FneBV4j9D1UCPtKgm47CP/beGB8qjive/TAeNfBJzEkbOURZzb03LLjXlS+lhXNjSzgjDBnAhfsvJirU/FgNG0rmwoaQoYYYbbJcsx7TY5wG8S8JoQFJBb7eZMn6PuJmGScBuC5aBiwMhGwEl88Tcb5s92fSMCTiKmnUkaVe1vWpXfAklzQkbUGjCa1i8+T6S6pgvcmgAAAABJRU5ErkJggg==\"};\n\nfunction arApply(instance){\n const ico=instance._getDomElement('ico'), nm=instance._getDomElement('nm'), mem=instance._getDomElement('mem'),\n chip=instance._getDomElement('chip'), ar=instance._getDomElement('ar'),\n ack=instance._getDomElement('ack'), sh=instance._getDomElement('shelve');\n if(nm) nm.textContent=instance.name||'';\n if(mem) mem.innerHTML=(instance.member||instance.alarmField||'');\n const active=instance.__active===true, ackd=instance.__ackd===true,\n shelved=instance.__shelved===true, supp=instance.__supp===true, dis=instance.__dis===true;\n const sev=(instance.severity|0);\n if(ar){ ar.classList.toggle('crit', sev>=750 || (active&&sev>=500)); ar.classList.toggle('warn', sev>0 && sev<750); }\n // real Rockwell alarm-state icon\n let icoKey='alm-inactive', s='ackd', t='OK';\n if(dis){ icoKey='alm-disabled'; s='supp'; t='DISABLED'; }\n else if(supp){ icoKey='alm-supp'; s='supp'; t='SUPPRESSED'; }\n else if(shelved){ icoKey='alm-shelved'; s='shelv'; t='SHELVED'; }\n else if(active&&!ackd){ icoKey=(sev>=1000?'prio-urg':(sev>=750?'prio-hi':(sev>=250?'prio-med':'prio-lo'))); s='unack'; t='UNACK'; }\n else if(active){ icoKey='alm-ackd'; s='ackd'; t='ACTIVE'; }\n if(ico && AR_ICO[icoKey]) ico.src=AR_ICO[icoKey];\n if(chip){ chip.className='ar-chip '+s; chip.textContent=t; }\n // real ACK command button graphic; dim when nothing to ack\n if(ack){ const needAck=active&&!ackd; ack.src=AR_ICO[needAck?'cmd-ack':'cmd-ack-disa']||''; ack.classList.toggle('off',!needAck); }\n if(sh) sh.style.display = instance.__allowShelve ? '' : 'none';\n}\nfunction arStart(instance){\n ppCleanup(instance);\n if(!instance.root){ arApply(instance); return; }\n const sub=(f,k)=>{ if(!instance[f]) return; ppSubscribe(instance,instance[f],function(v){ instance[k]=(v===true||v==='true'||v===1); arApply(instance); }); };\n if(instance.alarmField) ppSubscribe(instance,instance.alarmField,function(v){ instance.__active=(v===true||v==='true'||v===1); arApply(instance); });\n sub('ackField','__ackd'); sub('shelveField','__shelved'); sub('suppressField','__supp'); sub('disableField','__dis');\n arApply(instance);\n}\nexport function init(instance){\n if(!instance||typeof instance._getDomElement!=='function') return;\n instance.__allowShelve = !!instance.shelveField;\n instance._ppReinit=function(){ arStart(instance); };\n const ack=instance._getDomElement('ack'), sh=instance._getDomElement('shelve');\n if(ack) ack.addEventListener('click',function(){ if(instance.ackField) ppWrite(instance,instance.ackField,1,'ackAlarm'); });\n if(sh) sh.addEventListener('click',function(){ if(instance.shelveField) ppWrite(instance,instance.shelveField,1,'ackAlarm'); });\n arStart(instance);\n}\nexport function disconnectedCallback(instance){ ppCleanup(instance); }\n"
51
51
  }