2024-02-23 18:22:45 +01:00
|
|
|
<app-header></app-header>
|
2021-09-15 21:05:02 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-container>
|
2024-03-19 20:49:59 +01:00
|
|
|
<form [formGroup]="exportForm" [bitSubmit]="submit">
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-callout type="danger" title="{{ 'vaultExportDisabled' | i18n }}" *ngIf="disabledByPolicy">
|
|
|
|
{{ "personalVaultExportPolicyInEffect" | i18n }}
|
|
|
|
</bit-callout>
|
2024-03-20 23:11:57 +01:00
|
|
|
<tools-export-scope-callout
|
2024-02-23 18:22:45 +01:00
|
|
|
[organizationId]="organizationId"
|
|
|
|
*ngIf="!disabledByPolicy"
|
2024-03-20 23:11:57 +01:00
|
|
|
></tools-export-scope-callout>
|
2024-02-23 18:22:45 +01:00
|
|
|
|
|
|
|
<ng-container *ngIf="organizations$ | async as organizations">
|
|
|
|
<bit-form-field *ngIf="organizations.length > 0">
|
|
|
|
<bit-label>{{ "exportFrom" | i18n }}</bit-label>
|
|
|
|
<bit-select formControlName="vaultSelector">
|
|
|
|
<bit-option [label]="'myVault' | i18n" value="myVault" icon="bwi-user" />
|
|
|
|
<bit-option
|
|
|
|
*ngFor="let o of organizations$ | async"
|
|
|
|
[value]="o.id"
|
|
|
|
[label]="o.name"
|
|
|
|
icon="bwi-business"
|
|
|
|
/>
|
|
|
|
</bit-select>
|
|
|
|
</bit-form-field>
|
|
|
|
</ng-container>
|
2021-09-15 21:05:02 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-form-field>
|
|
|
|
<bit-label>{{ "fileFormat" | i18n }}</bit-label>
|
|
|
|
<bit-select formControlName="format">
|
|
|
|
<bit-option *ngFor="let f of formatOptions" [value]="f.value" [label]="f.name" />
|
2024-01-29 10:38:16 +01:00
|
|
|
</bit-select>
|
|
|
|
</bit-form-field>
|
2022-08-29 16:11:44 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<ng-container *ngIf="format === 'encrypted_json'">
|
|
|
|
<bit-radio-group formControlName="fileEncryptionType" aria-label="exportTypeHeading">
|
|
|
|
<bit-label>{{ "exportTypeHeading" | i18n }}</bit-label>
|
2022-08-29 16:11:44 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-radio-button
|
|
|
|
id="AccountEncrypted"
|
|
|
|
name="fileEncryptionType"
|
|
|
|
class="tw-block"
|
|
|
|
[value]="encryptedExportType.AccountEncrypted"
|
|
|
|
checked="fileEncryptionType === encryptedExportType.AccountEncrypted"
|
|
|
|
>
|
|
|
|
<bit-label>{{ "accountRestricted" | i18n }}</bit-label>
|
|
|
|
<bit-hint>{{ "accountRestrictedOptionDescription" | i18n }}</bit-hint>
|
|
|
|
</bit-radio-button>
|
2022-08-29 16:11:44 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-radio-button
|
|
|
|
id="FileEncrypted"
|
|
|
|
name="fileEncryptionType"
|
|
|
|
class="tw-block"
|
|
|
|
[value]="encryptedExportType.FileEncrypted"
|
|
|
|
checked="fileEncryptionType === encryptedExportType.FileEncrypted"
|
|
|
|
>
|
|
|
|
<bit-label>{{ "passwordProtected" | i18n }}</bit-label>
|
|
|
|
<bit-hint>{{ "passwordProtectedOptionDescription" | i18n }}</bit-hint>
|
|
|
|
</bit-radio-button>
|
|
|
|
</bit-radio-group>
|
2023-11-28 20:44:06 +01:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<ng-container *ngIf="fileEncryptionType == encryptedExportType.FileEncrypted">
|
|
|
|
<div class="tw-mb-3">
|
|
|
|
<bit-form-field>
|
|
|
|
<bit-label>{{ "filePassword" | i18n }}</bit-label>
|
|
|
|
<input
|
|
|
|
bitInput
|
|
|
|
type="password"
|
|
|
|
id="filePassword"
|
|
|
|
formControlName="filePassword"
|
|
|
|
name="password"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
bitSuffix
|
|
|
|
bitIconButton
|
|
|
|
bitPasswordInputToggle
|
|
|
|
[(toggled)]="showFilePassword"
|
|
|
|
></button>
|
|
|
|
<bit-hint>{{ "exportPasswordDescription" | i18n }}</bit-hint>
|
|
|
|
</bit-form-field>
|
|
|
|
<app-password-strength [password]="filePassword" [showText]="true">
|
|
|
|
</app-password-strength>
|
|
|
|
</div>
|
2023-12-14 13:55:54 +01:00
|
|
|
<bit-form-field>
|
2024-02-23 18:22:45 +01:00
|
|
|
<bit-label>{{ "confirmFilePassword" | i18n }}</bit-label>
|
2023-12-14 13:55:54 +01:00
|
|
|
<input
|
|
|
|
bitInput
|
|
|
|
type="password"
|
2024-02-23 18:22:45 +01:00
|
|
|
id="confirmFilePassword"
|
|
|
|
formControlName="confirmFilePassword"
|
|
|
|
name="confirmFilePassword"
|
2023-12-14 13:55:54 +01:00
|
|
|
/>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
bitSuffix
|
|
|
|
bitIconButton
|
|
|
|
bitPasswordInputToggle
|
|
|
|
[(toggled)]="showFilePassword"
|
|
|
|
></button>
|
|
|
|
</bit-form-field>
|
2024-02-23 18:22:45 +01:00
|
|
|
</ng-container>
|
2023-12-14 13:55:54 +01:00
|
|
|
</ng-container>
|
2022-08-29 16:11:44 +02:00
|
|
|
|
2024-02-23 18:22:45 +01:00
|
|
|
<button
|
|
|
|
bitButton
|
2024-03-19 20:49:59 +01:00
|
|
|
bitFormButton
|
2024-02-23 18:22:45 +01:00
|
|
|
type="submit"
|
|
|
|
buttonType="primary"
|
|
|
|
[disabled]="disabledByPolicy"
|
|
|
|
>
|
|
|
|
{{ "confirmFormat" | i18n }}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</bit-container>
|