1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-09 05:57:40 +02:00
bitwarden-browser/libs/components/src
Daniel James Smith 9e290a3fed
[PM-4222] Make importer UI reusable (#6504)
* Split up import/export into separate modules

* Fix routing and apply PR feedback

* Renamed OrganizationExport exports to OrganizationVaultExport

* Make import dialogs standalone and move them to libs/importer

* Make import.component re-usable

- Move functionality which was previously present on the org-import.component into import.component
- Move import.component into libs/importer
Make import.component standalone
Create import-web.component to represent Web UI
Fix module imports and routing
Remove unused org-import-files

* Renamed filenames according to export rename

* Make ImportWebComponent standalone, simplify routing

* Pass organizationId as Input to ImportComponent

* use formLoading and formDisabled outputs

* Emit an event when the import succeeds

Remove Angular router from base-component as other clients might not have routing (i.e. desktop)
Move logic that happened on web successful import into the import-web.component

* fix table themes on desktop & browser

* fix fileSelector button styles

* update selectors to use tools prefix; remove unused selectors

* Wall off UI components in libs/importer

Create barrel-file for libs/importer/components
Remove components and dialog exports from libs/importer/index.ts
Extend libs/shared/tsconfig.libs.json to include @bitwarden/importer/ui -> libs/importer/components
Extend apps/web/tsconfig.ts to include @bitwarden/importer/ui
Update all usages

* Rename @bitwarden/importer to @bitwarden/importer/core

Create more barrel files in libs/importer/*
Update imports within libs/importer
Extend tsconfig files
Update imports in web, desktop, browser and cli

* Lazy-load the ImportWebComponent via both routes

* Use SharedModule as import in import-web.component

* File selector should be displayed as secondary

* Use bitSubmit to override submit preventDefault (#6607)

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
Co-authored-by: William Martin <contact@willmartian.com>
2023-10-19 11:17:23 +02:00
..
app Move to libs 2022-06-03 16:24:40 +02:00
async-actions [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
avatar Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
badge Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
badge-list [AC-1088] Truncating collection names on Groups table (#5236) 2023-06-12 10:56:03 +01:00
banner Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
breadcrumbs Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
button Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
callout [CL-111] remove h3 from bit-callout (#5853) 2023-08-19 09:39:10 -04:00
checkbox [CL-80] feat: indeterminate checkbox (#6357) 2023-09-28 09:04:16 -04:00
color-password Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
dialog [PM-2014] Passkey registration (#5396) 2023-10-10 15:10:26 +02:00
form Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
form-control Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
form-field [CL-113] add readonly styles to bitInput (#6220) 2023-09-21 10:23:20 -04:00
icon [SM-896] When org is disabled disable the logic and show warning symbols (#6225) 2023-10-16 14:29:03 +00:00
icon-button [CL-99] Update icon-button.stories.ts (#5631) 2023-07-18 11:28:43 -04:00
input [CL-113] add readonly styles to bitInput (#6220) 2023-09-21 10:23:20 -04:00
layout [CL-107] add bit-layout component (#6016) 2023-08-23 18:54:12 -04:00
link [CL-89] fix focus-visible outline in bitLink 2023-09-19 14:16:21 -04:00
menu Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
multi-select Project drop downs add on enter not on tab (#5953) 2023-08-28 08:09:04 -04:00
navigation [SM-896] When org is disabled disable the logic and show warning symbols (#6225) 2023-10-16 14:29:03 +00:00
no-items [AC-1192] Create new device approvals component for TDE (#5548) 2023-06-15 14:53:21 -07:00
progress Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
radio-button Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
search [CL-106] use CL's DialogService in Desktop & Browser (#5875) 2023-08-16 08:26:56 -04:00
select Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
shared Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
stories [CL-103] add docs for Tailwind breakpoints (#6021) 2023-08-15 18:23:42 -04:00
table [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
tabs Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
toggle-group Storybook docs (#5552) 2023-06-27 12:46:44 -07:00
typography [PM-2276] Upgrade Storybook to v7 (#5258) 2023-05-26 15:58:06 +02:00
utils [CL-128] Support placeholders in i18n mock (#6254) 2023-09-14 16:29:15 +02:00
favicon.ico Move to libs 2022-06-03 16:24:40 +02:00
index.html Move to libs 2022-06-03 16:24:40 +02:00
index.ts [CL-107] add bit-layout component (#6016) 2023-08-23 18:54:12 -04:00
main.ts Move to libs 2022-06-03 16:24:40 +02:00
polyfills.ts Move to libs 2022-06-03 16:24:40 +02:00
styles.css [CL-60] Set font-size on html (#6278) 2023-09-14 18:31:48 +02:00
styles.scss [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
test.setup.ts PS-813 Add memory storage to state service (#2892) 2022-06-27 12:38:12 -05:00
tw-theme.css [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
variables.scss [PM-2866] - Update color variables for better contrast (#6078) 2023-08-29 13:42:56 -07:00