-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added header and content component for exposures (#1697)
Co-authored-by: danoswaltCL <[email protected]>
- Loading branch information
1 parent
85fb2da
commit 4b1f359
Showing
11 changed files
with
59 additions
and
11 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
5 changes: 5 additions & 0 deletions
5
...sures-section-card/feature-flag-exposures-data/feature-flag-exposures-data.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,5 @@ | ||
<div class="exposures-data"> | ||
<span class="ft-16-500"> | ||
Add Exposures data here! | ||
</span> | ||
</div> |
1 change: 1 addition & 0 deletions
1
...sures-section-card/feature-flag-exposures-data/feature-flag-exposures-data.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 @@ | ||
|
15 changes: 15 additions & 0 deletions
15
...posures-section-card/feature-flag-exposures-data/feature-flag-exposures-data.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,15 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
import { FeatureFlagsService } from '../../../../../../../../core/feature-flags/feature-flags.service'; | ||
import { CommonDetailsParticipantListTableComponent } from '../../../../../../../../shared-standalone-component-lib/components/common-details-participant-list-table/common-details-participant-list-table.component'; | ||
import { CommonModule } from '@angular/common'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
|
||
@Component({ | ||
selector: 'app-feature-flag-exposures-data', | ||
standalone: true, | ||
templateUrl: './feature-flag-exposures-data.component.html', | ||
styleUrl: './feature-flag-exposures-data.component.scss', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
imports: [CommonDetailsParticipantListTableComponent, CommonModule, TranslateModule], | ||
}) | ||
export class FeatureFlagExposuresDataComponent {} |
20 changes: 17 additions & 3 deletions
20
...nt/feature-flag-exposures-section-card/feature-flag-exposures-section-card.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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
<app-common-section-card> | ||
<div header-left style="background-color: lightpink; height: 90px; width: 100%">header-left</div> | ||
<div header-right style="background-color: lightpink; height: 90px; width: 100%">header-right</div> | ||
<div content style="background-color: lightpink; height: 90px; width: 100%">content: Exposures</div> | ||
<!-- header-left --> | ||
<app-common-section-card-title-header | ||
header-left | ||
[title]="'feature-flags.details.exposures.card.title.text' | translate" | ||
[subtitle]="'feature-flags.details.exposures.card.subtitle.text' | translate" | ||
></app-common-section-card-title-header> | ||
|
||
<!-- header-right --> | ||
<app-common-section-card-action-buttons | ||
header-right | ||
[isSectionCardExpanded]="isSectionCardExpanded" | ||
(sectionCardExpandChange)="onSectionCardExpandChange($event)" | ||
> | ||
</app-common-section-card-action-buttons> | ||
|
||
<!-- content --> | ||
<app-feature-flag-exposures-data content *ngIf="isSectionCardExpanded" class="full-width"></app-feature-flag-exposures-data> | ||
</app-common-section-card> |
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,3 @@ | ||
.full-width { | ||
width: 100%; | ||
} |
12 changes: 10 additions & 2 deletions
12
...tent/feature-flag-exposures-section-card/feature-flag-exposures-section-card.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 |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
import { CommonSectionCardComponent } from '../../../../../../../shared-standalone-component-lib/components'; | ||
import { CommonSectionCardActionButtonsComponent, CommonSectionCardComponent, CommonSectionCardTitleHeaderComponent } from '../../../../../../../shared-standalone-component-lib/components'; | ||
import { FeatureFlag } from '../../../../../../../core/feature-flags/store/feature-flags.model'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { FeatureFlagExposuresDataComponent } from './feature-flag-exposures-data/feature-flag-exposures-data.component'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
@Component({ | ||
selector: 'app-feature-flag-exposures-section-card', | ||
standalone: true, | ||
imports: [CommonSectionCardComponent], | ||
imports: [CommonSectionCardComponent, CommonSectionCardTitleHeaderComponent, CommonSectionCardActionButtonsComponent, CommonModule, TranslateModule, FeatureFlagExposuresDataComponent], | ||
templateUrl: './feature-flag-exposures-section-card.component.html', | ||
styleUrl: './feature-flag-exposures-section-card.component.scss', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class FeatureFlagExposuresSectionCardComponent { | ||
@Input() data: FeatureFlag; | ||
isSectionCardExpanded = true; | ||
|
||
onSectionCardExpandChange(isSectionCardExpanded: boolean) { | ||
this.isSectionCardExpanded = isSectionCardExpanded; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
::ng-deep .mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container .mat-mdc-tab-labels .mat-mdc-tab:first-of-type { | ||
margin-left: 0; | ||
} |
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