{"version":3,"file":"siemens-element-ng-connection-strength.mjs","sources":["../../../../projects/element-ng/connection-strength/si-connection-strength.component.ts","../../../../projects/element-ng/connection-strength/si-connection-strength.component.html","../../../../projects/element-ng/connection-strength/si-connection-strength.module.ts","../../../../projects/element-ng/connection-strength/index.ts","../../../../projects/element-ng/connection-strength/siemens-element-ng-connection-strength.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, computed, input } from '@angular/core';\n\nexport type ConnectionStrength = 'none' | 'low' | 'medium' | 'strong';\n\nconst CONNECTION_STRENGTH_MAP = { 'none': 0, 'low': 1, 'medium': 2, 'strong': 3 };\n\n@Component({\n  selector: 'si-connection-strength',\n  templateUrl: './si-connection-strength.component.html',\n  styleUrl: './si-connection-strength.component.scss'\n})\nexport class SiConnectionStrengthComponent {\n  /**\n   * Shows the signal representation in an alternative *WLAN* format\n   *\n   * @defaultValue false\n   */\n  readonly wlan = input(false, { transform: booleanAttribute });\n  /**\n   * Main value representing the current connection strength.\n   *\n   * @defaultValue 'none'\n   */\n  readonly value = input<ConnectionStrength>('none');\n\n  protected readonly numberValue = computed(() => CONNECTION_STRENGTH_MAP[this.value()] ?? 0);\n}\n","@if (wlan()) {\n  <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" [class.none]=\"numberValue() < 1\">\n    <path\n      d=\"M318.63,304a108.1,108.1,0,0,0-125.1,0,12,12,0,0,0,13.9,19.56,84.09,84.09,0,0,1,97.3,0A12,12,0,1,0,318.63,304Z\"\n    />\n    <path\n      d=\"M377,247.56a188,188,0,0,0-240.64,0A12,12,0,1,0,151.68,266a164,164,0,0,1,209.92,0A12,12,0,0,0,377,247.56Z\"\n      [class.inactive]=\"numberValue() < 2\"\n    />\n    <path\n      d=\"M433.21,191a268,268,0,0,0-354.42,0,12,12,0,1,0,15.86,18,244,244,0,0,1,322.7,0,12,12,0,0,0,15.86-18Z\"\n      [class.inactive]=\"numberValue() < 3\"\n    />\n    <circle cx=\"256\" cy=\"372.22\" r=\"16\" />\n    @if (numberValue() < 1) {\n      <g>\n        <path d=\"M412,352a12,12,0,0,0,12-12V263.78a12,12,0,0,0-24,0V340A12,12,0,0,0,412,352Z\" />\n        <path d=\"M412.18,400H412a12,12,0,0,0,0,24h.18a12,12,0,1,0,0-24Z\" />\n      </g>\n    }\n  </svg>\n} @else {\n  <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" [class.none]=\"numberValue() < 1\">\n    <path\n      d=\"M128,228a12,12,0,0,0,0,24A132.14,132.14,0,0,1,260,384a12,12,0,0,0,24,0C284,298,214,228,128,228Z\"\n      [class.inactive]=\"numberValue() < 2\"\n    />\n    <path\n      d=\"M128,116a12,12,0,0,0,0,24A244,244,0,0,1,372,384a12,12,0,0,0,24,0A268,268,0,0,0,128,116Z\"\n      [class.inactive]=\"numberValue() < 3\"\n    />\n    <circle cx=\"144\" cy=\"368\" r=\"28\" />\n    @if (numberValue() < 1) {\n      <g>\n        <path\n          d=\"M412,188.11a12,12,0,0,0,12-12V99.89a12,12,0,1,0-24,0v76.22A12,12,0,0,0,412,188.11Z\"\n        />\n        <path d=\"M412.18,236.11H412a12,12,0,0,0,0,24h.18a12,12,0,0,0,0-24Z\" />\n      </g>\n    }\n  </svg>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgModule } from '@angular/core';\n\nimport { SiConnectionStrengthComponent } from './si-connection-strength.component';\n\n@NgModule({\n  imports: [SiConnectionStrengthComponent],\n  exports: [SiConnectionStrengthComponent]\n})\nexport class SiConnectionStrengthModule {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-connection-strength.component';\nexport * from './si-connection-strength.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AAKH,MAAM,uB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