iobroker.mywebui 1.88.0 → 1.89.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 (239) hide show
  1. package/default-controls/controls/logout.control +1 -1
  2. package/default-controls/controls/user-badge.control +1 -1
  3. package/dist/backend/3d-editor-integration.js +1 -1
  4. package/dist/backend/ImportmapCreator.js +1 -1
  5. package/dist/backend/UploadHelper.js +1 -1
  6. package/dist/backend/main.js +1 -1
  7. package/io-package.json +1 -1
  8. package/package.json +1 -1
  9. package/scripts/_build_logout.py +54 -0
  10. package/scripts/_build_userbadge.py +1 -1
  11. package/www/3d-editor/js/Animation.js +1 -1
  12. package/www/3d-editor/js/AnimationResizer.js +1 -1
  13. package/www/3d-editor/js/Command.js +1 -1
  14. package/www/3d-editor/js/Config.js +1 -1
  15. package/www/3d-editor/js/Editor.js +1 -1
  16. package/www/3d-editor/js/EditorControls.js +1 -1
  17. package/www/3d-editor/js/GLTFImportDialog.js +1 -1
  18. package/www/3d-editor/js/History.js +1 -1
  19. package/www/3d-editor/js/Loader.js +1 -1
  20. package/www/3d-editor/js/LoaderUtils.js +1 -1
  21. package/www/3d-editor/js/Menubar.Add.js +1 -1
  22. package/www/3d-editor/js/Menubar.Edit.js +1 -1
  23. package/www/3d-editor/js/Menubar.File.js +1 -1
  24. package/www/3d-editor/js/Menubar.Help.js +1 -1
  25. package/www/3d-editor/js/Menubar.Render.js +1 -1
  26. package/www/3d-editor/js/Menubar.Status.js +1 -1
  27. package/www/3d-editor/js/Menubar.View.js +1 -1
  28. package/www/3d-editor/js/Menubar.js +1 -1
  29. package/www/3d-editor/js/Player.js +1 -1
  30. package/www/3d-editor/js/Resizer.js +1 -1
  31. package/www/3d-editor/js/Script.js +1 -1
  32. package/www/3d-editor/js/Selector.js +1 -1
  33. package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
  34. package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
  35. package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
  36. package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
  37. package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
  38. package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
  39. package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
  40. package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
  41. package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
  42. package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
  43. package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
  44. package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
  45. package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
  46. package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
  47. package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
  48. package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
  49. package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
  50. package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
  51. package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
  52. package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
  53. package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
  54. package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
  55. package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
  56. package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
  57. package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
  58. package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
  59. package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
  60. package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
  61. package/www/3d-editor/js/Sidebar.Material.js +1 -1
  62. package/www/3d-editor/js/Sidebar.Object.js +1 -1
  63. package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
  64. package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
  65. package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
  66. package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
  67. package/www/3d-editor/js/Sidebar.Project.js +1 -1
  68. package/www/3d-editor/js/Sidebar.Properties.js +1 -1
  69. package/www/3d-editor/js/Sidebar.Scene.js +1 -1
  70. package/www/3d-editor/js/Sidebar.Script.js +1 -1
  71. package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
  72. package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
  73. package/www/3d-editor/js/Sidebar.Settings.js +1 -1
  74. package/www/3d-editor/js/Sidebar.js +1 -1
  75. package/www/3d-editor/js/Storage.js +1 -1
  76. package/www/3d-editor/js/Strings.js +1 -1
  77. package/www/3d-editor/js/TextureParametersDialog.js +1 -1
  78. package/www/3d-editor/js/Toolbar.js +1 -1
  79. package/www/3d-editor/js/Viewport.Controls.js +1 -1
  80. package/www/3d-editor/js/Viewport.Info.js +1 -1
  81. package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
  82. package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
  83. package/www/3d-editor/js/Viewport.XR.js +1 -1
  84. package/www/3d-editor/js/Viewport.js +1 -1
  85. package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
  86. package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
  87. package/www/3d-editor/js/commands/Commands.js +1 -1
  88. package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
  89. package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
  90. package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
  91. package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
  92. package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
  93. package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
  94. package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
  95. package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
  96. package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
  97. package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
  98. package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
  99. package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
  100. package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
  101. package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
  102. package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
  103. package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
  104. package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
  105. package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
  106. package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
  107. package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
  108. package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
  109. package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
  110. package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
  111. package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
  112. package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
  113. package/www/dist/frontend/bundle/chunk-43HEBO5G.js +3 -3
  114. package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
  115. package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +2 -2
  116. package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
  117. package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +2 -2
  118. package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +3 -3
  119. package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +2 -2
  120. package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +3 -3
  121. package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
  122. package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
  123. package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
  124. package/www/dist/frontend/bundle/chunk-CHDKROX5.js +3 -3
  125. package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +3 -3
  126. package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
  127. package/www/dist/frontend/bundle/chunk-FO56TEZH.js +3 -3
  128. package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +3 -3
  129. package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
  130. package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
  131. package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
  132. package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
  133. package/www/dist/frontend/bundle/chunk-KY73TL6O.js +3 -3
  134. package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
  135. package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
  136. package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
  137. package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
  138. package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
  139. package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
  140. package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +2 -2
  141. package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
  142. package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
  143. package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +3 -3
  144. package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +3 -3
  145. package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
  146. package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
  147. package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +3 -3
  148. package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +3 -3
  149. package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
  150. package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
  151. package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
  152. package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +3 -3
  153. package/www/dist/frontend/bundle/chunk-WED7CGWA.js +3 -3
  154. package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
  155. package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
  156. package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
  157. package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
  158. package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
  159. package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +3 -3
  160. package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
  161. package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
  162. package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
  163. package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
  164. package/www/dist/frontend/bundle/runtime/controls.js +4 -4
  165. package/www/dist/frontend/bundle/runtime/init.js +3 -3
  166. package/www/dist/frontend/common/Common.globals.js +1 -1
  167. package/www/dist/frontend/common/IobrokerHandler.js +1 -1
  168. package/www/dist/frontend/common/Runtime.js +1 -1
  169. package/www/dist/frontend/config/CommandHandling.js +1 -1
  170. package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
  171. package/www/dist/frontend/config/DockHelper.js +1 -1
  172. package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
  173. package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +2 -2
  174. package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
  175. package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +2 -2
  176. package/www/dist/frontend/config/IobrokerWebuiAppShell.js +2 -2
  177. package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
  178. package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +3 -3
  179. package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
  180. package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
  181. package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
  182. package/www/dist/frontend/config/IobrokerWebuiIconsView.js +3 -3
  183. package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +3 -3
  184. package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
  185. package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
  186. package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
  187. package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
  188. package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +3 -3
  189. package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
  190. package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +3 -3
  191. package/www/dist/frontend/helper/DialogHelper.js +3 -3
  192. package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
  193. package/www/dist/frontend/helper/Helper.js +1 -1
  194. package/www/dist/frontend/helper/LayoutHelper.js +1 -1
  195. package/www/dist/frontend/helper/XmlHelper.js +1 -1
  196. package/www/dist/frontend/helper/ZipHelper.js +1 -1
  197. package/www/dist/frontend/runtime/AnimationService.js +1 -1
  198. package/www/dist/frontend/runtime/CustomControls.js +1 -1
  199. package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
  200. package/www/dist/frontend/runtime/HabPanelLikeMenu.js +3 -3
  201. package/www/dist/frontend/runtime/NavigationShell.js +1 -1
  202. package/www/dist/frontend/runtime/RuntimeTheme.js +1 -1
  203. package/www/dist/frontend/runtime/ScreenViewer.js +2 -2
  204. package/www/dist/frontend/runtime/TranslateableText.js +2 -2
  205. package/www/dist/frontend/runtime/VisibilityService.js +1 -1
  206. package/www/dist/frontend/runtime/controls.js +1 -1
  207. package/www/dist/frontend/runtime/init.js +1 -1
  208. package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
  209. package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
  210. package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
  211. package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
  212. package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
  213. package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
  214. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
  215. package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
  216. package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
  217. package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
  218. package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
  219. package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
  220. package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
  221. package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
  222. package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
  223. package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
  224. package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
  225. package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
  226. package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
  227. package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
  228. package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
  229. package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
  230. package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
  231. package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
  232. package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
  233. package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
  234. package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
  235. package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
  236. package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
  237. package/www/dist/frontend/widgets/layout-components.js +1 -1
  238. package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
  239. package/www/dist/frontend/widgets/testElement.js +1 -1
@@ -1 +1 @@
1
- {"html": "<div style=\"width:100%;height:100%;\">\n <!--<form id=\"myform\" action=\"/Logout\" target=\"_self\" method=\"post\"></form>--> <!--<div class=\"control-panel\">\n <scada-button type=\"button\" variant=\"success\" icon=\"start\" size=\"large\">Start System</scada-button><scada-button type=\"button\" variant=\"danger\" icon=\"stop\" size=\"large\">Emergency Stop</scada-button><scada-button type=\"button\" variant=\"warning\" icon=\"alert\" size=\"large\">Reset Alarms</scada-button>\n </div>--><button id=\"logoutBtn\" @click=\"Logout\" data-animation='{\"effect\":\"backgroundColor\",\"duration\":1,\"ease\":\"power1.inOut\",\"repeat\":-1,\"fillColorFrom\":\"#000000\",\"fillColorTo\":\"#00ff91\",\"controls\":{\"play\":{\"condition\":\"equal\",\"value\":\"true\",\"oid_bind\":{\"signal\":\"?backgroundcolor\"}}}}' data-visibility-action=\"hide\"><t-t>logout.button</t-t></button>\n</div>\n", "style": ":host {\n width:20%;\n height:20%\n}\n\n* {\n box-sizing: border-box;\n}\n#logoutBtn {\n padding: 10px 20px;\n background-color: #d9534f;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n }\n #logoutBtn:hover {\n background-color: #c9302c;\n }", "script": "let protocol = window.location.protocol;\nlet ip = window.location.hostname;\nlet port = window.location.port;\n\n//import (`${protocol}//${ip}:${port}/webui.0.data/config/additionalfiles/scada-button.js`);\n\n\n //dynamic import fast found\n /* let DesignSystem;\n let fastfoundpath = (`${protocol}//${ip}:${port}/webui.0.widgets/node_modules/@microsoft/fast-foundation/dist/esm/index.js`); \n const fastfoundmodule = await import(fastfoundpath) \n .then(module => {\n DesignSystem = module.DesignSystem; \n }) \n .catch(err => { \n console.error('Error loading module:', err); \n });\n\n //dynamic import fast component\n let fastButton;\n let fastDialog;\n let fastcomppath = (`${protocol}//${ip}:${port}/webui.0.widgets/node_modules/@microsoft/fast-components/dist/esm/index.js`); \n const fastcompmodule = await import(fastcomppath) \n .then(module => {\n fastButton= module.fastButton;\n fastDialog= module.fastDialog;\n }) \n .catch(err => { \n console.error('Error loading module:', err); \n });\n\nDesignSystem.getOrCreate().register(\n fastButton(),fastDialog()\n);*/\n\nexport function init(instance) {\n}\n/**\n* Logout - 'click' event of <fast-button>\n* @param {PointerEvent} event\n* @param {Element} eventRaisingElement\n* @param {ShadowRoot} shadowRoot\n* @param {BaseScreenViewerAndControl} instance\n* @param {Object.<string, *>} parameters\n*/\nexport function Logout(event, eventRaisingElement, shadowRoot, instance, parameters) {\n\n window.location.href = '/logout'; \n /*var mapForm = document.createElement(\"form\");\nmapForm.target = \"_self\"; \nmapForm.method = \"POST\";\nmapForm.action = \"/logout\";*/\n\n// Create an input\n/*var params = {\"username\":\"operator\",\"password\":\"Operator1\"}\n\nfor(var key in params) {\n var mapInput = document.createElement(\"input\");\n mapInput.setAttribute(\"type\", \"hidden\");\n mapInput.setAttribute(\"name\", key);\n mapInput.setAttribute(\"value\", params[key]);\n\n // Add the input to the form\n mapForm.appendChild(mapInput);\n }*/\n\n\n\n\n\n\n// Add the form to dom\n//document.body.appendChild(mapForm);\n\n// Just submit\n//mapForm.submit();\n/*window.IOB.connection._socket.emit('logout', function (error) { \n if (error) { \n console.error('Logout error:', error); \n // Optionally inform the user about the error \n } else { \n // Redirect to the login screen after successful logout \n window.location.href = '/'; // Ensure this is the correct path to your login page \n } \n});*/\n}\n", "properties": {"test": {"type": "string"}, "backgroundcolor": {"type": "signal"}}, "settings": {"visibilityEnabled": "false", "visibilityGroups": "", "visibilityAction": "hide", "visibilityRedirectScreen": ""}}
1
+ {"properties": {"showlabel": {"type": "enum", "default": "true", "values": ["true", "false"]}}, "settings": {"width": "120px", "height": "40px", "visibilityEnabled": "false", "visibilityGroups": "", "visibilityAction": "hide", "visibilityRedirectScreen": ""}, "html": "<button id=\"logoutBtn\" class=\"lo\" @click=\"Logout\" data-visibility-action=\"hide\" type=\"button\" title=\"Logout\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z\"/></svg><span class=\"lo-lbl\" bind-css:display=\"??showlabel;(__0===false||__0==='false')?'none':''\"><t-t>logout.button</t-t></span></button>", "style": ":host{display:inline-block;height:100%;font-family:'Segoe UI',system-ui,Roboto,sans-serif;}.lo{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:100%;width:100%;padding:6px 16px;margin:0;box-sizing:border-box;cursor:pointer;border-radius:999px;background:color-mix(in srgb,var(--ui-text,#fff) 7%,transparent);border:1px solid var(--ui-border,#3b4250);color:var(--ui-text,#e2e6ec);font-size:13px;font-weight:600;letter-spacing:.3px;white-space:nowrap;}.lo svg{width:18px;height:18px;fill:currentColor;flex:none;display:block;}.lo:hover{background:color-mix(in srgb,var(--ui-error,#ef4d5e) 18%,transparent);border-color:color-mix(in srgb,var(--ui-error,#ef4d5e) 60%,transparent);color:var(--ui-error,#ef4d5e);}.lo:active{background:color-mix(in srgb,var(--ui-error,#ef4d5e) 30%,transparent);}.lo:focus-visible{outline:2px solid var(--accent,#2680eb);outline-offset:2px;}", "script": "export function init(instance) {\n try{ instance._bindingsRefresh && instance._bindingsRefresh(); }catch(e){}\n}\nexport function Logout(event, eventRaisingElement, shadowRoot, instance, parameters) {\n window.location.href = '/logout';\n}"}
@@ -1 +1 @@
1
- {"properties": {"stateid": {"type": "string", "default": "local_username"}, "label": {"type": "string", "default": ""}, "showavatar": {"type": "enum", "default": "true", "values": ["true", "false"]}, "showstatus": {"type": "enum", "default": "true", "values": ["true", "false"]}}, "settings": {"width": "170px", "height": "40px"}, "html": "<div class=\"ub\"><div class=\"ub-av\" bind-css:display=\"??showavatar;(__0===false||__0==='false')?'none':''\"><span bind-content:text=\"?stateid;(__0==null?'?':String(__0)).trim().charAt(0).toUpperCase()||'?'\"></span><span class=\"ub-dot\" bind-css:display=\"??showstatus;(__0===false||__0==='false')?'none':''\"></span></div><div class=\"ub-tx\"><span class=\"ub-label\" bind-content:text=\"??label\" bind-css:display=\"??label;__0?'':'none'\"></span><span class=\"ub-name\" bind-content:text=\"?stateid;(__0==null||String(__0).trim()==='')?'\\u2014':String(__0)\"></span></div></div>", "style": ":host{display:inline-block;height:100%;font-family:'Segoe UI',system-ui,Roboto,sans-serif;}.ub{display:inline-flex;align-items:center;gap:10px;height:100%;padding:4px 14px 4px 5px;box-sizing:border-box;border-radius:999px;background:color-mix(in srgb,var(--ui-text,#fff) 7%,transparent);border:1px solid var(--ui-border,#3b4250);transition:background .15s;}.ub:hover{background:color-mix(in srgb,var(--ui-text,#fff) 12%,transparent);}.ub-av{position:relative;width:30px;height:30px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent,#2680eb),color-mix(in srgb,var(--accent,#2680eb) 55%,var(--ui-page,#000)));color:#fff;font-size:14px;font-weight:700;letter-spacing:.5px;box-shadow:0 1px 4px rgba(0,0,0,.25);}.ub-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:var(--ui-ok,#37d67a);border:2px solid var(--ui-surface,#252b38);box-sizing:border-box;}.ub-tx{display:flex;flex-direction:column;justify-content:center;line-height:1.15;min-width:0;}.ub-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--ui-dim,#9aa3b0);white-space:nowrap;}.ub-name{font-size:14px;font-weight:600;color:var(--ui-text,#e2e6ec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}", "script": "export function init(instance){ try{ instance._bindingsRefresh && instance._bindingsRefresh(); }catch(e){} }\nexport function connectedCallback(instance){}"}
1
+ {"properties": {"stateid": {"type": "string", "default": "local_username"}, "label": {"type": "string", "default": ""}, "showavatar": {"type": "enum", "default": "true", "values": ["true", "false"]}, "showstatus": {"type": "enum", "default": "true", "values": ["true", "false"]}}, "settings": {"width": "170px", "height": "40px"}, "html": "<div class=\"ub\"><div class=\"ub-av\" bind-css:display=\"??showavatar;(__0===false||__0==='false')?'none':''\"><span bind-content:text=\"?stateid;(__0==null?'?':String(__0)).trim().charAt(0).toUpperCase()||'?'\"></span><span class=\"ub-dot\" bind-css:display=\"??showstatus;(__0===false||__0==='false')?'none':''\"></span></div><div class=\"ub-tx\"><span class=\"ub-label\" bind-content:text=\"??label\" bind-css:display=\"??label;__0?'':'none'\"></span><span class=\"ub-name\" bind-content:text=\"?stateid;(__0==null||String(__0).trim()==='')?'\\u2014':String(__0)\"></span></div></div>", "style": ":host{display:inline-block;height:100%;font-family:'Segoe UI',system-ui,Roboto,sans-serif;}.ub{display:inline-flex;align-items:center;gap:10px;height:100%;padding:4px 14px 4px 5px;box-sizing:border-box;border-radius:999px;background:color-mix(in srgb,var(--ui-text,#fff) 7%,transparent);border:1px solid var(--ui-border,#3b4250);}.ub:hover{background:color-mix(in srgb,var(--ui-text,#fff) 12%,transparent);}.ub-av{position:relative;width:30px;height:30px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent,#2680eb),color-mix(in srgb,var(--accent,#2680eb) 55%,var(--ui-page,#000)));color:#fff;font-size:14px;font-weight:700;letter-spacing:.5px;box-shadow:0 1px 4px rgba(0,0,0,.25);}.ub-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:var(--ui-ok,#37d67a);border:2px solid var(--ui-surface,#252b38);box-sizing:border-box;}.ub-tx{display:flex;flex-direction:column;justify-content:center;line-height:1.15;min-width:0;}.ub-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--ui-dim,#9aa3b0);white-space:nowrap;}.ub-name{font-size:14px;font-weight:600;color:var(--ui-text,#e2e6ec);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}", "script": "export function init(instance){ try{ instance._bindingsRefresh && instance._bindingsRefresh(); }catch(e){} }\nexport function connectedCallback(instance){}"}