1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

[PM-2804] Migrate Send List to Component Library (#5796)

* Migrate Send list html to use Component Library and TailWind

* Added ComponentLibrary search module to Send

* Updated the No-Items on Send List to the new CL

* Added missing type on button at send.component.html

* Changed send to standalone component on web

* Moved no send icon to the consuming component

* removed unnecessary href on send component html

* Added sort to send list

* Removed SendComponent from loose-components module and added on app module

* Removed unnecessary click handler on send name button

* Created own file for no-send icon

* set icons folder as lowercase

* Corrected no-send.icon import

* Setting name as default sort on send list

* Added extra height to no-send.icon and removed classes from bit-no-items title container

* Removed the size small from options button
This commit is contained in:
aj-rosado
2023-07-31 12:04:33 +01:00
committed by GitHub
parent 49549cc150
commit 7ef2acc11a
7 changed files with 111 additions and 57 deletions

View File

@@ -13,20 +13,36 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
import { SendApiService } from "@bitwarden/common/tools/send/services/send-api.service.abstraction";
import { SendService } from "@bitwarden/common/tools/send/services/send.service.abstraction";
import { Icons } from "@bitwarden/components";
import { NoItemsModule, SearchModule, TableDataSource } from "@bitwarden/components";
import { SharedModule } from "../../shared";
import { AddEditComponent } from "./add-edit.component";
import { NoSend } from "./icons/no-send.icon";
const BroadcasterSubscriptionId = "SendComponent";
@Component({
selector: "app-send",
standalone: true,
imports: [SharedModule, SearchModule, NoItemsModule],
templateUrl: "send.component.html",
})
export class SendComponent extends BaseSendComponent {
@ViewChild("sendAddEdit", { read: ViewContainerRef, static: true })
sendAddEditModalRef: ViewContainerRef;
noItemIcon = Icons.Search;
noItemIcon = NoSend;
override set filteredSends(filteredSends: SendView[]) {
super.filteredSends = filteredSends;
this.dataSource.data = filteredSends;
}
override get filteredSends() {
return super.filteredSends;
}
protected dataSource = new TableDataSource<SendView>();
constructor(
sendService: SendService,