-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
346 changed files
with
4,735 additions
and
1,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/modules/buttons/export-button/export-button.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
mat-progress-bar { | ||
opacity: 0.6; | ||
position: absolute; | ||
|
10 changes: 10 additions & 0 deletions
10
src/app/modules/buttons/mobile-back-button/mobile-back-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<a | ||
tabindex="0" | ||
class="mobile-back-button" | ||
ixTest="disk-details-back" | ||
[attr.aria-label]="'Back' | translate" | ||
(click)="onClose.emit()" | ||
(keydown.enter)="onClose.emit()" | ||
> | ||
<ix-icon name="mdi-chevron-left"></ix-icon> | ||
</a> |
14 changes: 14 additions & 0 deletions
14
src/app/modules/buttons/mobile-back-button/mobile-back-button.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@import 'scss-imports/variables'; | ||
|
||
a.mobile-back-button { | ||
cursor: pointer; | ||
display: none; | ||
padding: 5px 10px; | ||
|
||
@media (max-width: $breakpoint-hidden) { | ||
display: inline-block; | ||
left: 2px; | ||
position: relative; | ||
top: 3px; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/app/modules/buttons/mobile-back-button/mobile-back-button.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Spectator, createComponentFactory } from '@ngneat/spectator/jest'; | ||
import { MobileBackButtonComponent } from './mobile-back-button.component'; | ||
|
||
describe('MobileBackButtonComponent', () => { | ||
let spectator: Spectator<MobileBackButtonComponent>; | ||
const createComponent = createComponentFactory({ | ||
component: MobileBackButtonComponent, | ||
}); | ||
|
||
beforeEach(() => { | ||
spectator = createComponent(); | ||
}); | ||
|
||
it('should render a button with the correct classes and attributes', () => { | ||
const button = spectator.query('.mobile-back-button'); | ||
expect(button).toBeTruthy(); | ||
expect(button).toHaveAttribute('tabindex', '0'); | ||
expect(button).toHaveAttribute('aria-label', 'Back'); | ||
}); | ||
|
||
it('should emit onClose when the button is clicked', () => { | ||
const onCloseSpy = jest.spyOn(spectator.component.onClose, 'emit'); | ||
spectator.click('.mobile-back-button'); | ||
expect(onCloseSpy).toHaveBeenCalled(); | ||
}); | ||
|
||
it('should emit onClose when the Enter key is pressed', () => { | ||
const onCloseSpy = jest.spyOn(spectator.component.onClose, 'emit'); | ||
spectator.dispatchKeyboardEvent('.mobile-back-button', 'keydown', 'Enter'); | ||
expect(onCloseSpy).toHaveBeenCalled(); | ||
}); | ||
}); |
24 changes: 24 additions & 0 deletions
24
src/app/modules/buttons/mobile-back-button/mobile-back-button.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { | ||
Component, output, ChangeDetectionStrategy, | ||
} from '@angular/core'; | ||
import { MatButton } from '@angular/material/button'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { IxIconComponent } from 'app/modules/ix-icon/ix-icon.component'; | ||
import { TestDirective } from 'app/modules/test-id/test.directive'; | ||
|
||
@Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
imports: [ | ||
MatButton, | ||
IxIconComponent, | ||
TranslateModule, | ||
TestDirective, | ||
], | ||
selector: 'ix-mobile-back-button', | ||
templateUrl: './mobile-back-button.component.html', | ||
styleUrls: ['./mobile-back-button.component.scss'], | ||
}) | ||
export class MobileBackButtonComponent { | ||
readonly onClose = output(); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...ts/oauth-button/oauth-button.component.ts → ...ns/oauth-button/oauth-button.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
src/app/modules/buttons/oauth-button/oauth-button.module.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.