2018-01-24 04:21:14 +01:00
|
|
|
<div class="content">
|
2021-08-11 05:00:04 +02:00
|
|
|
<cdk-virtual-scroll-viewport
|
|
|
|
itemSize="42"
|
|
|
|
minBufferPx="400"
|
|
|
|
maxBufferPx="600"
|
|
|
|
*ngIf="ciphers.length"
|
|
|
|
>
|
|
|
|
<div class="list">
|
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"
|
2021-08-11 05:00:04 +02:00
|
|
|
*cdkVirtualFor="let c of ciphers; trackBy: trackByFn"
|
|
|
|
appStopClick
|
|
|
|
(click)="selectCipher(c)"
|
2019-03-19 16:34:56 +01:00
|
|
|
(contextmenu)="rightClickCipher(c)"
|
|
|
|
title="{{ 'viewItem' | i18n }}"
|
2021-08-11 05:00:04 +02:00
|
|
|
[ngClass]="{ active: c.id === activeCipherId }"
|
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
|
|
|
[attr.aria-pressed]="c.id === activeCipherId"
|
2021-08-11 05:00:04 +02:00
|
|
|
class="flex-list-item virtual-scroll-item"
|
|
|
|
>
|
2018-01-31 23:58:06 +01:00
|
|
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
2021-05-03 17:31:45 +02:00
|
|
|
<div class="flex-cipher-list-item">
|
2021-05-01 17:55:49 +02:00
|
|
|
<span class="text">
|
|
|
|
{{ c.name }}
|
|
|
|
<ng-container *ngIf="c.organizationId">
|
2022-01-27 18:21:53 +01:00
|
|
|
<i
|
|
|
|
class="bwi bwi-collection text-muted"
|
|
|
|
title="{{ 'shared' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
2021-05-01 17:55:49 +02:00
|
|
|
<span class="sr-only">{{ "shared" | i18n }}</span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="c.hasAttachments">
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-paperclip text-muted"
|
2021-05-01 17:55:49 +02:00
|
|
|
title="{{ 'attachments' | i18n }}"
|
|
|
|
aria-hidden="true"
|
|
|
|
></i>
|
|
|
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
|
|
|
</ng-container>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="c.subTitle" class="detail">{{ c.subTitle }}</span>
|
2018-01-31 23:58:06 +01:00
|
|
|
</div>
|
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-08-11 05:00:04 +02:00
|
|
|
</div>
|
|
|
|
</cdk-virtual-scroll-viewport>
|
|
|
|
<div class="no-items" *ngIf="!ciphers.length">
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-spinner bwi-spin bwi-3x" *ngIf="!loaded" aria-hidden="true"></i>
|
2021-08-11 05:00:04 +02:00
|
|
|
<ng-container *ngIf="loaded">
|
2022-01-21 20:37:28 +01:00
|
|
|
<img class="no-items-image" aria-hidden="true" />
|
2021-08-11 05:00:04 +02:00
|
|
|
<p>{{ "noItemsInList" | i18n }}</p>
|
|
|
|
<button (click)="addCipher()" class="btn block primary link">{{ "addItem" | i18n }}</button>
|
|
|
|
</ng-container>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2018-01-24 04:21:14 +01:00
|
|
|
</div>
|
|
|
|
<div class="footer">
|
2020-04-13 21:29:15 +02:00
|
|
|
<button
|
|
|
|
(click)="addCipher()"
|
|
|
|
(contextmenu)="addCipherOptions()"
|
2020-04-13 21:13:10 +02:00
|
|
|
class="block primary"
|
|
|
|
appA11yTitle="{{ 'addItem' | i18n }}"
|
|
|
|
[disabled]="deleted"
|
|
|
|
>
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
2018-01-26 00:00:03 +01:00
|
|
|
</button>
|
2018-01-24 04:21:14 +01:00
|
|
|
</div>
|