1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50

ash / webui / diagnostics_ui / resources / battery_status_card.html [blame]

<style include="diagnostics-shared">
  .remove-stroke {
    --iron-icon-stroke-color: none;
  }
</style>
<diagnostics-card>
  <div id="cardTitle" slot="title" aria-describedby="batteryStatusChipInfo">
    [[i18n('batteryTitle')]]
  </div>
  <div id="batteryStatusChipInfo" slot="chip" class="diagnostics-chip"
      aria-hidden="true">
    [[getDesignedFullCharge(batteryHealth.chargeFullDesignMilliampHours)]]
  </div>
  <iron-icon slot="icon" icon="[[batteryIcon]]" class$="[[iconClass]]">
  </iron-icon>
  <percent-bar-chart slot="left-panel" header="[[powerTimeString]]"
      value="[[batteryChargeStatus.chargeNowMilliampHours]]"
      max="[[batteryHealth.chargeFullNowMilliampHours]]">
  </percent-bar-chart>
  <data-point slot="body" id="batteryHealth"
      header="[[i18n('batteryHealthLabel')]]"
      value="[[getBatteryHealth(batteryHealth.batteryWearPercentage)]]"
      tooltip-text="[[i18n('batteryHealthTooltipText')]]"
      class="data-point-margin-start">
  </data-point>
  <div slot="body" class="divider"></div>
  <data-point slot="body" id="cycleCount" header="[[i18n('cycleCount')]]"
      value="[[batteryHealth.cycleCount]]"
      tooltip-text="[[i18n('cycleCountTooltipText')]]">
  </data-point>
  <div slot="body" class="divider"></div>
  <data-point slot="body" id="currentNow" header="[[i18n('currentNowLabel')]]"
      value="[[getCurrentNow(batteryChargeStatus.currentNowMilliamps)]]"
      tooltip-text="[[i18n('currentNowTooltipText')]]"
      class="data-point-margin-end">
  </data-point>
  <routine-section slot="routines" routines="[[routines]]"
      routine-runtime="{{getEstimateRuntimeInMinutes(routines)}}"
      test-suite-status="{{testSuiteStatus}}"
      is-power-routine
      run-tests-button-text="[[getRunTestsButtonText(
        batteryChargeStatus.powerAdapterStatus
      )]]"
      additional-message="[[getRunTestsAdditionalMessage(
        batteryChargeStatus.chargeNowMilliampHours,
        batteryHealth.chargeFullNowMilliampHours)]]"
      learn-more-link-section="battery"
      is-active="[[isActive]]">
  </routine-section>
</diagnostics-card>