2018-01-24 04:21:14 +01:00
|
|
|
<div class="content">
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="inner-content" *ngIf="cipher">
|
2018-01-24 04:57:24 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
2018-01-24 22:32:24 +01:00
|
|
|
{{ "itemInformation" | i18n }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content">
|
2018-01-24 04:57:24 +01:00
|
|
|
<div class="box-content-row">
|
2018-01-24 22:32:24 +01:00
|
|
|
<span class="row-label">{{ "name" | i18n }}</span>
|
2018-01-24 06:06:05 +01:00
|
|
|
{{ cipher.name }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 20:25:44 +01:00
|
|
|
<!-- Login -->
|
2018-01-24 20:59:03 +01:00
|
|
|
<div *ngIf="cipher.login">
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.username">
|
2019-10-25 01:55:21 +02:00
|
|
|
<div class="row-main">
|
2021-12-20 15:47:17 +01:00
|
|
|
<span
|
2019-10-25 01:55:21 +02:00
|
|
|
class="row-label draggable"
|
|
|
|
draggable="true"
|
|
|
|
(dragstart)="setTextDataOnDrag($event, cipher.login.username)"
|
2018-01-25 20:25:44 +01:00
|
|
|
>{{ "username" | i18n }}</span
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2018-01-29 23:11:31 +01:00
|
|
|
{{ cipher.login.username }}
|
2018-01-24 04:57:24 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyUsername' | i18n }}"
|
2021-05-04 21:32:03 +02:00
|
|
|
(click)="copy(cipher.login.username, 'username', 'Username')"
|
2018-01-25 20:25:44 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2018-01-24 04:57:24 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
</div>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.password">
|
|
|
|
<div class="row-main">
|
|
|
|
<span
|
|
|
|
class="row-label draggable"
|
2019-10-25 01:55:21 +02:00
|
|
|
draggable="true"
|
2018-03-02 05:45:12 +01:00
|
|
|
(dragstart)="setTextDataOnDrag($event, cipher.login.password)"
|
|
|
|
>{{ "password" | i18n }}</span
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div *ngIf="!showPassword" class="monospaced">
|
|
|
|
{{ cipher.login.maskedPassword }}
|
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
<div
|
2018-03-02 05:45:12 +01:00
|
|
|
*ngIf="showPassword"
|
2022-03-29 21:01:57 +02:00
|
|
|
class="monospaced generated-wrapper"
|
2019-04-02 04:43:42 +02:00
|
|
|
appSelectCopy
|
2020-07-27 19:21:46 +02:00
|
|
|
[innerHTML]="cipher.login.password | colorPassword"
|
2018-03-02 05:45:12 +01:00
|
|
|
></div>
|
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="action-buttons" *ngIf="cipher.viewPassword">
|
2021-12-20 15:47:17 +01:00
|
|
|
<button
|
2018-01-25 05:26:40 +01:00
|
|
|
type="button"
|
2018-02-28 17:35:48 +01:00
|
|
|
#checkPasswordBtn
|
|
|
|
class="row-btn btn"
|
|
|
|
appBlurClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'checkPassword' | i18n }}"
|
|
|
|
(click)="checkPassword()"
|
2019-02-21 22:53:32 +01:00
|
|
|
[appApiAction]="checkPasswordPromise"
|
|
|
|
[disabled]="checkPasswordBtn.loading"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg bwi-check-circle"
|
2018-01-25 05:26:40 +01:00
|
|
|
[hidden]="checkPasswordBtn.loading"
|
2020-07-27 19:21:46 +02:00
|
|
|
aria-hidden="true"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg bwi-spinner bwi-spin"
|
2019-04-02 04:56:28 +02:00
|
|
|
[hidden]="!checkPasswordBtn.loading"
|
2020-07-27 19:21:46 +02:00
|
|
|
aria-hidden="true"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
2018-02-28 17:35:48 +01:00
|
|
|
</button>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
2021-05-04 21:32:03 +02:00
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showPassword"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="togglePassword()"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-05-04 21:32:03 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showPassword, 'bwi-eye-slash': showPassword }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
2021-05-04 21:32:03 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'copyPassword' | i18n }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="copy(cipher.login.password, 'password', 'Password')"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2018-01-25 05:26:40 +01:00
|
|
|
</div>
|
2019-03-28 17:09:08 +01:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="box-content-row box-content-row-flex totp"
|
2018-01-29 23:11:31 +01:00
|
|
|
[ngClass]="{ low: totpLow }"
|
2019-03-28 17:09:08 +01:00
|
|
|
*ngIf="cipher.login.totp && totpCode"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="row-main">
|
2021-12-20 15:47:17 +01:00
|
|
|
<span
|
2019-03-28 17:09:08 +01:00
|
|
|
class="row-label draggable"
|
2019-10-25 01:55:21 +02:00
|
|
|
draggable="true"
|
|
|
|
(dragstart)="setTextDataOnDrag($event, totpCode)"
|
|
|
|
>{{ "verificationCodeTotp" | i18n }}</span
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2019-03-28 17:09:08 +01:00
|
|
|
<span class="totp-code">{{ totpCodeFormatted }}</span>
|
2018-01-25 05:26:40 +01:00
|
|
|
</div>
|
|
|
|
<span class="totp-countdown">
|
|
|
|
<span class="totp-sec">{{ totpSec }}</span>
|
2021-12-20 15:47:17 +01:00
|
|
|
<svg>
|
|
|
|
<g>
|
|
|
|
<circle
|
2018-01-25 05:26:40 +01:00
|
|
|
class="totp-circle inner"
|
2021-12-20 15:47:17 +01:00
|
|
|
r="12.6"
|
|
|
|
cy="16"
|
|
|
|
cx="16"
|
2019-02-21 22:53:32 +01:00
|
|
|
[ngStyle]="{ 'stroke-dashoffset.px': totpDash }"
|
2018-01-25 05:26:40 +01:00
|
|
|
></circle>
|
|
|
|
<circle class="totp-circle outer" r="14" cy="16" cx="16"></circle>
|
2021-12-20 15:47:17 +01:00
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2018-01-25 20:25:44 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyValue' | i18n }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="copy(totpCode, 'verificationCodeTotp', 'TOTP')"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
</div>
|
2018-01-25 20:25:44 +01:00
|
|
|
<!-- Card -->
|
2021-09-21 02:48:17 +02:00
|
|
|
<div *ngIf="cipher.card">
|
2018-11-16 13:45:23 +01:00
|
|
|
<div class="box-content-row" *ngIf="cipher.card.cardholderName">
|
|
|
|
<span class="row-label">{{ "cardholderName" | i18n }}</span>
|
|
|
|
{{ cipher.card.cardholderName }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.number">
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="row-main">
|
2018-01-25 20:25:44 +01:00
|
|
|
<span class="row-label">{{ "number" | i18n }}</span>
|
2021-09-10 15:32:08 +02:00
|
|
|
<span *ngIf="!showCardNumber" class="monospaced">{{ cipher.card.maskedNumber }}</span>
|
|
|
|
<span *ngIf="showCardNumber" class="monospaced">{{ cipher.card.number }}</span>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showCardNumber"
|
2021-05-04 21:32:03 +02:00
|
|
|
(click)="toggleCardNumber()"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2018-01-25 05:26:40 +01:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showCardNumber, 'bwi-eye-slash': showCardNumber }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
2018-01-25 05:26:40 +01:00
|
|
|
appA11yTitle="{{ 'copyNumber' | i18n }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="copy(cipher.card.number, 'number', 'Card Number')"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2018-01-25 05:26:40 +01:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content-row" *ngIf="cipher.card.brand">
|
2018-01-25 20:25:44 +01:00
|
|
|
<span class="row-label">{{ "brand" | i18n }}</span>
|
|
|
|
{{ cipher.card.brand }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-02-04 21:52:32 +01:00
|
|
|
<div class="box-content-row" *ngIf="cipher.card.expiration">
|
2018-01-25 20:25:44 +01:00
|
|
|
<span class="row-label">{{ "expiration" | i18n }}</span>
|
|
|
|
{{ cipher.card.expiration }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-02-04 21:52:32 +01:00
|
|
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.code">
|
2018-01-30 05:19:55 +01:00
|
|
|
<div class="row-main">
|
|
|
|
<span class="row-label">{{ "securityCode" | i18n }}</span>
|
2019-04-02 05:08:54 +02:00
|
|
|
<span *ngIf="!showCardCode" class="monospaced">{{ cipher.card.maskedCode }}</span>
|
|
|
|
<span *ngIf="showCardCode" class="monospaced">{{ cipher.card.code }}</span>
|
2018-01-24 04:57:24 +01:00
|
|
|
</div>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
2019-02-21 22:53:32 +01:00
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2022-03-27 22:42:47 +02:00
|
|
|
[attr.aria-pressed]="showCardCode"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="toggleCardCode()"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2019-04-02 04:56:28 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !showCardCode, 'bwi-eye-slash': showCardCode }"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
2019-02-21 22:53:32 +01:00
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'copySecurityCode' | i18n }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="copy(cipher.card.code, 'securityCode', 'Security Code')"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-24 04:57:24 +01:00
|
|
|
</div>
|
2018-01-25 20:25:44 +01:00
|
|
|
<!-- Identity -->
|
2018-07-30 16:05:36 +02:00
|
|
|
<div *ngIf="cipher.identity">
|
2018-07-31 04:22:17 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.fullName">
|
|
|
|
<span class="row-label">{{ "identityName" | i18n }}</span>
|
2018-07-30 16:05:36 +02:00
|
|
|
{{ cipher.identity.fullName }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-07-30 16:05:36 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.username">
|
|
|
|
<span class="row-label">{{ "username" | i18n }}</span>
|
2018-01-25 20:25:44 +01:00
|
|
|
{{ cipher.identity.username }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-07-30 16:05:36 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.company">
|
2018-01-25 20:25:44 +01:00
|
|
|
<span class="row-label">{{ "company" | i18n }}</span>
|
|
|
|
{{ cipher.identity.company }}
|
2018-07-30 16:05:36 +02:00
|
|
|
</div>
|
2018-01-25 20:25:44 +01:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.ssn">
|
|
|
|
<span class="row-label">{{ "ssn" | i18n }}</span>
|
|
|
|
{{ cipher.identity.ssn }}
|
2018-07-31 04:22:17 +02:00
|
|
|
</div>
|
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.passportNumber">
|
|
|
|
<span class="row-label">{{ "passportNumber" | i18n }}</span>
|
|
|
|
{{ cipher.identity.passportNumber }}
|
|
|
|
</div>
|
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.licenseNumber">
|
|
|
|
<span class="row-label">{{ "licenseNumber" | i18n }}</span>
|
2018-01-25 20:25:44 +01:00
|
|
|
{{ cipher.identity.licenseNumber }}
|
2018-07-31 04:22:17 +02:00
|
|
|
</div>
|
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.email">
|
2019-02-21 22:53:32 +01:00
|
|
|
<span class="row-label">{{ "email" | i18n }}</span>
|
|
|
|
{{ cipher.identity.email }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2019-04-03 06:04:42 +02:00
|
|
|
<div class="box-content-row" *ngIf="cipher.identity.phone">
|
2019-04-02 04:43:42 +02:00
|
|
|
<span class="row-label">{{ "phone" | i18n }}</span>
|
|
|
|
{{ cipher.identity.phone }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
<div
|
2019-04-02 04:43:42 +02:00
|
|
|
class="box-content-row"
|
|
|
|
*ngIf="cipher.identity.address1 || cipher.identity.city || cipher.identity.country"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2019-04-02 04:56:28 +02:00
|
|
|
<span class="row-label">{{ "address" | i18n }}</span>
|
|
|
|
<div *ngIf="cipher.identity.address1">{{ cipher.identity.address1 }}</div>
|
2018-07-31 04:22:17 +02:00
|
|
|
<div *ngIf="cipher.identity.address2">{{ cipher.identity.address2 }}</div>
|
2018-07-30 16:05:36 +02:00
|
|
|
<div *ngIf="cipher.identity.address3">{{ cipher.identity.address3 }}</div>
|
2019-04-29 16:13:35 +02:00
|
|
|
<div *ngIf="cipher.identity.fullAddressPart2">
|
|
|
|
{{ cipher.identity.fullAddressPart2 }}
|
2018-07-30 16:05:36 +02:00
|
|
|
</div>
|
2018-01-25 20:25:44 +01:00
|
|
|
<div *ngIf="cipher.identity.country">{{ cipher.identity.country }}</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div class="box" *ngIf="cipher.login && cipher.login.hasUris">
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content">
|
2021-12-20 15:47:17 +01:00
|
|
|
<div
|
2018-01-29 23:11:31 +01:00
|
|
|
class="box-content-row box-content-row-flex"
|
2018-03-02 05:45:12 +01:00
|
|
|
*ngFor="let u of cipher.login.uris; let i = index"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="row-main">
|
|
|
|
<span class="row-label" *ngIf="!u.isWebsite">{{ "uri" | i18n }}</span>
|
2018-03-02 05:45:12 +01:00
|
|
|
<span class="row-label" *ngIf="u.isWebsite">{{ "website" | i18n }}</span>
|
2020-07-14 18:38:11 +02:00
|
|
|
<span title="{{ u.uri }}">{{ u.hostOrUri }}</span>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div class="action-buttons">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
2019-04-03 06:04:42 +02:00
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'launch' | i18n }}"
|
|
|
|
*ngIf="u.canLaunch"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="launch(u)"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-share-square" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-02 04:43:42 +02:00
|
|
|
class="row-btn"
|
2019-04-03 06:04:42 +02:00
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'copyUri' | i18n }}"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="copy(u.uri, u.isWebsite ? 'website' : 'uri', 'URI')"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-07-30 16:05:36 +02:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="box" *ngIf="cipher.notes">
|
2018-01-25 20:25:44 +01:00
|
|
|
<div class="box-header">
|
2018-01-25 05:26:40 +01:00
|
|
|
{{ "notes" | i18n }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content">
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="box-content-row pre-wrap">{{ cipher.notes }}</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-24 04:57:24 +01:00
|
|
|
</div>
|
2021-09-21 02:48:17 +02:00
|
|
|
<app-vault-view-custom-fields
|
2018-03-02 05:45:12 +01:00
|
|
|
*ngIf="cipher.hasFields"
|
2021-09-21 02:48:17 +02:00
|
|
|
[cipher]="cipher"
|
|
|
|
[promptPassword]="promptPassword.bind(this)"
|
|
|
|
[copy]="copy.bind(this)"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2021-09-21 02:48:17 +02:00
|
|
|
</app-vault-view-custom-fields>
|
2020-04-13 21:13:10 +02:00
|
|
|
<div class="box" *ngIf="cipher.hasAttachments && (canAccessPremium || cipher.organizationId)">
|
2018-01-25 20:25:44 +01:00
|
|
|
<div class="box-header">
|
2019-10-25 01:55:21 +02:00
|
|
|
{{ "attachments" | i18n }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-25 05:26:40 +01:00
|
|
|
<div class="box-content">
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2018-01-29 23:11:31 +01:00
|
|
|
class="box-content-row box-content-row-flex text-default"
|
2019-02-21 22:53:32 +01:00
|
|
|
*ngFor="let attachment of cipher.attachments"
|
2019-04-03 06:04:42 +02:00
|
|
|
appStopClick
|
2020-04-13 21:13:10 +02:00
|
|
|
appBlurCLick
|
2019-02-21 22:53:32 +01:00
|
|
|
(click)="downloadAttachment(attachment)"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2018-01-25 20:25:44 +01:00
|
|
|
<span class="row-main">{{ attachment.fileName }}</span>
|
|
|
|
<small class="row-sub-label">{{ attachment.sizeName }}</small>
|
2021-12-20 15:47:17 +01:00
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-download bwi-fw row-sub-icon"
|
2019-04-02 05:08:54 +02:00
|
|
|
*ngIf="!attachment.downloading"
|
2020-04-13 21:13:10 +02:00
|
|
|
aria-hidden="true"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-spinner bwi-fw bwi-spin row-sub-icon"
|
2019-04-02 05:08:54 +02:00
|
|
|
*ngIf="attachment.downloading"
|
2020-04-13 21:13:10 +02:00
|
|
|
aria-hidden="true"
|
2021-12-20 15:47:17 +01:00
|
|
|
></i>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-02 05:45:12 +01:00
|
|
|
<div class="box">
|
2018-01-29 23:11:31 +01:00
|
|
|
<div class="box-footer">
|
2021-12-20 15:47:17 +01:00
|
|
|
<div>
|
2018-07-31 04:22:17 +02:00
|
|
|
<b class="font-weight-semibold">{{ "dateUpdated" | i18n }}:</b>
|
|
|
|
{{ cipher.revisionDate | date: "medium" }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-29 23:11:31 +01:00
|
|
|
<div *ngIf="cipher.passwordRevisionDisplayDate">
|
2018-07-31 04:22:17 +02:00
|
|
|
<b class="font-weight-semibold">{{ "datePasswordUpdated" | i18n }}:</b>
|
2019-10-25 01:55:21 +02:00
|
|
|
{{ cipher.passwordRevisionDisplayDate | date: "medium" }}
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-29 23:11:31 +01:00
|
|
|
<div *ngIf="cipher.hasPasswordHistory">
|
2019-02-21 22:53:32 +01:00
|
|
|
<b class="font-weight-semibold">{{ "passwordHistory" | i18n }}:</b>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
<button
|
|
|
|
type="button"
|
2019-04-03 06:04:42 +02:00
|
|
|
(click)="viewHistory()"
|
|
|
|
appStopClick
|
2019-04-02 04:43:42 +02:00
|
|
|
appA11yTitle="{{ 'passwordHistory' | i18n }}, {{ cipher.passwordHistory.length }}"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2021-09-10 15:32:08 +02:00
|
|
|
<span aria-hidden="true">{{ cipher.passwordHistory.length }}</span>
|
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437)
* Change links to buttons, expose `aria-pressed` for toggles
- also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"`
* Correctly set aria-pressed
now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge
* Change more links to buttons, initial style changes
* Fix layout of <button> elements with .box-content-row
* Update jslib submodule
* Add `aria-expanded` to the send view's "Show options" expand/collapse control
* Fix position of "Edit" pencil when hovering over folders
* Update jslib
* Change sends list links to buttons
* Add `aria-pressed` to vault and send list buttons
Programmatically denote which of the buttons is currently active/shown in the right-most panel
* Fix incorrect "Options" expand/collapse button in add-edit view
Currently, that buttons lacks an accName because the "Options" text is outside of it.
* Add `aria-pressed` to the send left-hand column filters
* Simplify base, list, and vault styles
Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts.
* Remove unnecessary `position:relative`
Fixes issue with cut-off focus outlines, has no other adverse effect
* Fix styling for last child of action buttons
Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-24 04:21:14 +01:00
|
|
|
</div>
|
2020-06-01 16:30:49 +02:00
|
|
|
<div class="footer" *ngIf="cipher">
|
2020-04-13 21:13:10 +02:00
|
|
|
<button
|
|
|
|
appBlurClick
|
|
|
|
class="primary"
|
|
|
|
(click)="edit()"
|
|
|
|
appA11yTitle="{{ 'edit' | i18n }}"
|
|
|
|
*ngIf="!cipher.isDeleted"
|
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-pencil bwi-fw bwi-lg" aria-hidden="true"></i>
|
2018-01-31 18:52:12 +01:00
|
|
|
</button>
|
2020-04-13 21:13:10 +02:00
|
|
|
<button
|
|
|
|
appBlurClick
|
|
|
|
class="primary"
|
|
|
|
(click)="restore()"
|
|
|
|
appA11yTitle="{{ 'restore' | i18n }}"
|
|
|
|
*ngIf="cipher.isDeleted"
|
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-undo bwi-fw bwi-lg" aria-hidden="true"></i>
|
2020-04-13 21:13:10 +02:00
|
|
|
</button>
|
2021-12-20 15:47:17 +01:00
|
|
|
<button
|
2020-04-13 21:13:10 +02:00
|
|
|
appBlurClick
|
|
|
|
class="primary"
|
|
|
|
*ngIf="!cipher?.organizationId && !cipher.isDeleted"
|
|
|
|
(click)="clone()"
|
|
|
|
appA11yTitle="{{ 'clone' | i18n }}"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-files bwi-fw bwi-lg" aria-hidden="true"></i>
|
2020-04-13 21:13:10 +02:00
|
|
|
</button>
|
|
|
|
<div class="right">
|
2021-12-20 15:47:17 +01:00
|
|
|
<button
|
2020-04-13 21:13:10 +02:00
|
|
|
appBlurClick
|
|
|
|
type="button"
|
|
|
|
(click)="delete()"
|
|
|
|
class="danger"
|
|
|
|
appA11yTitle="{{ (cipher.isDeleted ? 'permanentlyDelete' : 'delete') | i18n }}"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-trash bwi-lg bwi-fw" aria-hidden="true"></i>
|
2020-04-13 21:13:10 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-01-24 04:21:14 +01:00
|
|
|
</div>
|