1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-06 00:03:29 +00:00
Commit Graph

75 Commits

Author SHA1 Message Date
Thomas Rittson
78429aa720 Change ngZone from private to protected (#567)
* Change ngZone from private to protected

* Remove unneeded file
2021-11-29 09:52:23 +10:00
Yuan Chao
920ec05fbb Fix cursor location changing issue on toggle password (#561) 2021-11-29 07:30:32 +10:00
Jake Fink
340a79bfe6 reset ownershipOptions on init (#563) 2021-11-24 09:01:38 -05:00
Oscar Hinton
f4c66b2c8c Add support for hiding input on lock screen if using key connector (#560) 2021-11-19 16:48:42 +01:00
Oscar Hinton
9b7aaa272d Add confirm identity helper text to password in verify component (#554) 2021-11-18 16:24:15 +01:00
Thomas Rittson
fc0d624621 [Key Connector] Hide "Master Pass On Restart" prompt when setting pin (#556)
* Disable Master Pass on Restart for Key Connector

* Fix linting
2021-11-18 21:20:55 +10:00
Oscar Hinton
ea9a8b979d Update verify master password component (#553) 2021-11-17 11:57:05 +01:00
Thomas Rittson
720967475b Update base export component for userVerificationService changes (#552)
* Use new try/catch pattern in export.component

* Set initial value in VerifyMasterPass component
2021-11-16 19:43:37 +10:00
Thomas Rittson
386903f5a9 [Key Connector] QA fixes for CLI and Desktop (#544)
* Make UserVerificationService compatible with CLI

* Refactor error handling

* Fix i18n key name

* Add apiUseKeyConnector flag to TokenResponse

* Always require keyConnectorUrl to be passed in

* Throw errors in userVerificationService

* Use requestOTP in UserVerificationService

* Remove unused deps

* Fix linting
2021-11-16 07:53:57 +10:00
Thomas Rittson
e02e663ce1 [Linked Fields] Fix QA feedback (#542)
* Fix bug overwriting custom field types

* Add linkedId to export model for CLI
2021-11-12 05:59:01 +10:00
Oscar Hinton
8f177e2d3a Add support for requesting and using otp for verifying some requests (#527)
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-11-09 17:01:22 +01:00
Thomas Rittson
99ff3feb53 [Linked fields] Fix change detection on cipherType (#536)
* Fix bug that clears linkedId values when editing

* Add null check

* Fix linting
2021-11-09 21:57:33 +10:00
Thomas Rittson
2db9e1ce0d [Linked fields] Reset linkedIds if cipher type changes (#535)
* Reset linkedIds if cipher type changes

* Only reset linkedId if !editmode
2021-11-04 07:24:45 +10:00
Thomas Rittson
dbda39e10f Add Linked Field as custom field type (#431)
* Basic proof of concept of Linked custom fields

* Linked Fields for all cipher types, use dropdown

* Move linkedFieldOptions to view models

* Move add-edit custom fields to own component

* Fix change handling if cipherType changes

* Use Field.LinkedId to store linked field info

* Refactor accessors in cipherView for type safety

* Use map for linkedFieldOptions

* Refactor: use decorators to record linkable info

* Add ItemView

* Use enums for linked field ids

* Add union type for linkedId enums, add jsdoc comment

* Use parameter properties for linkedFieldOption

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Fix type casting

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2021-11-03 08:03:37 +10:00
Robyn MacCallum
031cbff556 Add role="alert" to callouts only when enforceAlert is passed (#528)
* Add role="alert" to callouts when enforceAlert is passed

* Remove ElementRef and do a different way

* Rename input variable
2021-10-26 11:41:46 -04:00
Oscar Hinton
71f8ef601f Add support for crypto agent (#520) 2021-10-25 18:21:40 +02:00
Thomas Rittson
24fe836032 Fixes for dynamic modal a11y (#518)
* Do not close modal if click finishes on background

* Trap tab focus in modals, use ESC to close modal

* Fix Angular change detection errors in modals

* Reset focus on next modal after closing modal

* Minor fixes and linting

* Attach focusTrap to modal-dialog element

* Change mousedown event back to click

* Make topModal private

* Add new div for dismissing modal by clicking bg

* Focus element in modal if no autoFocus directive

* Use backdrop for dismissal

* Fix typo
2021-10-21 08:13:37 +10:00
Oscar Hinton
f09fb69882 Remove empty catch blocks, and update tslint rule (#513) 2021-10-19 10:32:14 +02:00
Thomas Rittson
a20e935268 Use rxjs first instead of unsubscribe (#516) 2021-10-14 10:27:52 +10:00
Oscar Hinton
56233e4002 Move Avatar component to jslib (#496) 2021-10-13 09:55:19 +02:00
Vincent Salucci
542852a3be [Reset Password] BUG - Update local policies for enforcement (#510) 2021-10-08 11:18:25 -05:00
Addison Beck
e69425cb41 [bug] Set a default value for custom send deletion times in the safari extension (#511)
* [bug] Set a default value for custom send deletion times in the safari extension

* [review] tomorrow -> nextWeek for default custom send deletion time values
2021-10-08 10:42:22 -04:00
Thomas Rittson
64bc115109 Set default ownership if Personal Ownership policy applies (#509) 2021-10-08 07:15:02 +10:00
Oscar Hinton
bfa9a1e1bc Remove Business Portal, add SSO configuration models (#506) 2021-10-06 19:36:20 +02:00
Oscar Hinton
91b73fa777 Resolve biometric error dissapearing before being read (#501) 2021-09-28 16:23:25 +02:00
Oscar Hinton
206ef610d0 Bump signalr to 5.0.10 (#502) 2021-09-28 15:47:19 +02:00
Oscar Hinton
2c892eb3a2 Add webfonts (#500) 2021-09-24 15:36:51 +02:00
Thomas Rittson
b7429b0c0c Fix import statements (#494) 2021-09-20 17:49:59 +10:00
Thomas Rittson
25afe79714 Fix import statements (#493) 2021-09-20 17:23:00 +10:00
Thomas Rittson
0f984efd61 Move custom fields to separate components (#489)
* Move add-edit custom fields to own component

* Fix linting

* Fix change handling if cipherType changes

* Removed linked fields work

* Move view custom fields to own component

* Remove unnecessary imports

* Remove old logic from component
2021-09-20 10:36:40 +10:00
Vincent Salucci
16e998e664 [Reset Password v1] Refactor ForcePasswordReset into AuthResult (#481) 2021-09-17 10:53:50 -05:00
Oscar Hinton
83548a6753 Remove deprecated index.ts (#490)
* Remove deprecated index.ts

* Update tests
2021-09-17 14:57:31 +02:00
Vincent Salucci
da132217da [SSO Auto Enroll] Auto Enroll status retrieval (#486)
* [SSO Auto Enroll] Auto Enroll status retrieval

* Fixed import order

* Updated object property
2021-09-15 12:54:44 -05:00
Oscar Hinton
ee1ea922a9 Disable Private Vault Export Policy (#482) 2021-09-14 16:32:06 +02:00
Thomas Rittson
a85c45a34e Use a modal to set the unlock pin (#477)
* Move set pin logic to its own modal

* Fix method name and default value
2021-09-10 08:57:32 +10:00
Oscar Hinton
32774561f3 Add MaximumVaultTimeout policy type (#480) 2021-09-09 17:05:40 +02:00
Oscar Hinton
bbe8d3df48 Revert "Vault Timeout Policy (#474)" (#479)
This reverts commit bba2812fdd.
2021-09-08 23:06:42 +02:00
Oscar Hinton
bba2812fdd Vault Timeout Policy (#474) 2021-09-08 22:02:19 +02:00
Vincent Salucci
ef743ea8ca [SSO] Set password auto enroll update (#472)
* [SSO/Auto Enroll] Set Password enrolls new user

* Fixed typo

* Linter updates

* Cleanup // Constructor for SetPasswordRequest
2021-09-03 14:49:03 -05:00
Thomas Rittson
1c1f080acf Fix undefined variable error in desktop (#470) 2021-09-01 07:19:16 +10:00
Matt Gibson
d3ee08abb6 Log full error for better debugging support (#473) 2021-08-31 14:59:54 -05:00
Oscar Hinton
d50531886b Add support for setting up component factory resolvers in modal service (#471) 2021-08-31 16:35:20 +02:00
Thomas Rittson
30419a625f Move policy checks within policyService (#466)
* Move policy logic within policyService

* Remove unneeded import

* Clean up unused code

* Fix linting

* Enforce policies from accepting org invite

* Only exempt owner or admin from policies

* Use canManagePolicies as exemption criteria

* Make orgUser status check more semantic

Co-authored-by: Addison Beck <abeck@bitwarden.com>

Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-08-31 06:52:57 +10:00
Vincent Salucci
f02720a1c6 [Callout] Added pstyling class (#468) 2021-08-27 17:05:02 -05:00
Oscar Hinton
daa4f6f9a6 Dynamic Modals (#417)
* Move backdrop and click handler to modal service since they should not be used in web

* Add support for opening modals using ViewContainerRef
2021-08-26 10:04:29 +02:00
Vincent Salucci
aa81f8fb96 [Callout] Added Enforced Policy Options UI (#458) 2021-08-20 10:51:11 -05:00
Oscar Hinton
fe3a387724 Ensure icon component state is reset (#463) 2021-08-20 16:36:07 +02:00
Addison Beck
5717fc9e7f ensure new sends that select custom expiration date must enter an expiration date (#460) 2021-08-19 17:17:22 -04:00
Matt Gibson
0180d0cce5 Provide information to set webauthn allow in html template (#455) 2021-08-12 15:12:31 -05:00
Matt Gibson
26e8b48deb Set up captcha iframe only on submit of login (#453) 2021-08-12 15:10:07 -05:00