Skip to content

Commit

Permalink
Move A11yTitle and CopyClick to CL
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Jan 17, 2025
1 parent 83802fc commit 5e4b53f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions libs/angular/src/jslib.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ import {
TableModule,
ToastModule,
TypographyModule,
CopyClickDirective,
A11yTitleDirective,
} from "@bitwarden/components";

import { TwoFactorIconComponent } from "./auth/components/two-factor-icon.component";
import { DeprecatedCalloutComponent } from "./components/callout.component";
import { A11yInvalidDirective } from "./directives/a11y-invalid.directive";
import { A11yTitleDirective } from "./directives/a11y-title.directive";
import { ApiActionDirective } from "./directives/api-action.directive";
import { BoxRowDirective } from "./directives/box-row.directive";
import { CopyClickDirective } from "./directives/copy-click.directive";
import { CopyTextDirective } from "./directives/copy-text.directive";
import { FallbackSrcDirective } from "./directives/fallback-src.directive";
import { IfFeatureDirective } from "./directives/if-feature.directive";
Expand Down Expand Up @@ -83,10 +83,11 @@ import { IconComponent } from "./vault/components/icon.component";
LinkModule,
IconModule,
TextDragDirective,
CopyClickDirective,
A11yTitleDirective,
],
declarations: [
A11yInvalidDirective,
A11yTitleDirective,
ApiActionDirective,
AutofocusDirective,
BoxRowDirective,
Expand All @@ -105,7 +106,6 @@ import { IconComponent } from "./vault/components/icon.component";
StopClickDirective,
StopPropDirective,
TrueFalseValueDirective,
CopyClickDirective,
LaunchClickDirective,
UserNamePipe,
PasswordStrengthComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from "@angular/core";

@Directive({
selector: "[appA11yTitle]",
standalone: true,
})
export class A11yTitleDirective implements OnInit {
@Input() set appA11yTitle(title: string) {
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/a11y/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./a11y-title.directive";
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import { Directive, HostListener, Input } from "@angular/core";

import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { ToastService, ToastVariant } from "@bitwarden/components";

import { ToastService, ToastVariant } from "../";

@Directive({
selector: "[appCopyClick]",
standalone: true,
})
export class CopyClickDirective {
private _showToast = false;
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/copy-click/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./copy-click.directive";
4 changes: 3 additions & 1 deletion libs/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
export { ButtonType } from "./shared/button-like.abstraction";
export * from "./a11y";
export * from "./async-actions";
export * from "./avatar";
export * from "./badge-list";
export * from "./badge";
export * from "./banner";
export * from "./breadcrumbs";
export * from "./button";
export { ButtonType } from "./shared/button-like.abstraction";
export * from "./callout";
export * from "./card";
export * from "./checkbox";
export * from "./chip-select";
export * from "./color-password";
export * from "./container";
export * from "./copy-click";
export * from "./dialog";
export * from "./disclosure";
export * from "./drawer";
Expand Down

0 comments on commit 5e4b53f

Please sign in to comment.