2021-09-21 02:48:17 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header">
|
|
|
|
{{ "customFields" | i18n }}
|
|
|
|
</div>
|
|
|
|
<div class="box-content">
|
|
|
|
<div class="box-content-row box-content-row-flex" *ngFor="let field of cipher.fields">
|
|
|
|
<div class="row-main">
|
|
|
|
<span class="row-label">{{ field.name }}</span>
|
|
|
|
<div *ngIf="field.type === fieldType.Text">
|
|
|
|
{{ field.value || " " }}
|
|
|
|
</div>
|
|
|
|
<div *ngIf="field.type === fieldType.Hidden">
|
2022-02-25 14:27:54 +01:00
|
|
|
<span
|
|
|
|
*ngIf="field.showValue"
|
|
|
|
class="monospaced show-whitespace"
|
|
|
|
[innerHTML]="field.value | colorPassword"
|
|
|
|
></span>
|
2021-09-21 02:48:17 +02:00
|
|
|
<span *ngIf="!field.showValue" class="monospaced">{{ field.maskedValue }}</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="field.type === fieldType.Boolean">
|
2022-01-27 18:21:53 +01:00
|
|
|
<i class="bwi bwi-check-square" *ngIf="field.value === 'true'" aria-hidden="true"></i>
|
|
|
|
<i class="bwi bwi-square" *ngIf="field.value !== 'true'" aria-hidden="true"></i>
|
2021-11-03 23:02:41 +01:00
|
|
|
<span class="sr-only">{{ field.value }}</span>
|
2021-09-21 02:48:17 +02:00
|
|
|
</div>
|
|
|
|
<div *ngIf="field.type === fieldType.Linked" class="box-content-row-flex">
|
|
|
|
<div class="icon icon-small">
|
2022-01-27 18:21:53 +01:00
|
|
|
<i
|
|
|
|
class="bwi bwi-link"
|
|
|
|
aria-hidden="true"
|
|
|
|
appA11yTitle="{{ 'linkedValue' | i18n }}"
|
|
|
|
></i>
|
2021-11-03 23:02:41 +01:00
|
|
|
<span class="sr-only">{{ "linkedValue" | i18n }}</span>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2021-11-03 23:02:41 +01:00
|
|
|
<span>{{ cipher.linkedFieldI18nKey(field.linkedId) | i18n }}</span>
|
2021-09-21 02:48:17 +02:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2021-09-21 02:48:17 +02: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"
|
2021-09-21 02:48:17 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}"
|
2021-11-03 23:02:41 +01:00
|
|
|
*ngIf="field.type === fieldType.Hidden && cipher.viewPassword"
|
2021-09-21 02:48:17 +02:00
|
|
|
(click)="toggleFieldValue(field)"
|
2021-12-20 15:47:17 +01:00
|
|
|
>
|
|
|
|
<i
|
2022-01-27 18:21:53 +01:00
|
|
|
class="bwi bwi-lg"
|
2021-09-21 02:48:17 +02:00
|
|
|
aria-hidden="true"
|
2022-01-27 18:21:53 +01:00
|
|
|
[ngClass]="{ 'bwi-eye': !field.showValue, 'bwi-eye-slash': field.showValue }"
|
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-09-21 02:48:17 +02:00
|
|
|
class="row-btn"
|
|
|
|
appStopClick
|
|
|
|
appA11yTitle="{{ 'copyValue' | i18n }}"
|
2021-12-20 15:47:17 +01:00
|
|
|
*ngIf="
|
2021-09-21 02:48:17 +02:00
|
|
|
field.value &&
|
2021-11-03 23:02:41 +01:00
|
|
|
field.type !== fieldType.Boolean &&
|
|
|
|
field.type !== fieldType.Linked &&
|
|
|
|
!(field.type === fieldType.Hidden && !cipher.viewPassword)
|
2021-12-20 15:47:17 +01:00
|
|
|
"
|
2021-09-21 02:48:17 +02:00
|
|
|
(click)="
|
|
|
|
copy(field.value, 'value', field.type === fieldType.Hidden ? 'H_Field' : 'Field')
|
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>
|
2021-09-21 02:48:17 +02:00
|
|
|
</div>
|
2021-12-20 15:47:17 +01:00
|
|
|
</div>
|
2021-09-21 02:48:17 +02:00
|
|
|
</div>
|