-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow different panel headers (#765)
* panel docs + small fixes * new docs fix
- Loading branch information
Showing
42 changed files
with
332 additions
and
146 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
docs/modules/documentation/containers/panel/examples/panel-example.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
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 was deleted.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
library/src/lib/panel/panel-actions/panel-actions.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,25 @@ | ||
import { Component, HostBinding } from '@angular/core'; | ||
|
||
/** | ||
* Panel level actions such as add, remove, delete, sort, etc. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-header> | ||
* <fd-panel-actions> | ||
* <button fd-button (click)="action()">Action</button> | ||
* </fd-panel-actions> | ||
* </fd-panel-header> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-actions', | ||
templateUrl: './panel-actions.component.html' | ||
}) | ||
export class PanelActionsComponent { | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel__actions') | ||
fdPanelActionsClass: boolean = true; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,30 @@ | ||
import { Component, HostBinding, Input } from '@angular/core'; | ||
|
||
/** | ||
* Main content of the panel can that hold lists, table, tree, text, form or any other information. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-body> | ||
* Some text can go here! | ||
* </fd-panel-body> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-body', | ||
templateUrl: './panel-body.component.html', | ||
styles: [':host {display: block;}'] | ||
}) | ||
export class PanelBodyComponent { | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel__body') | ||
fdPanelBodyClass: boolean = true; | ||
|
||
/** Whether the edges of the panel should have bleeding padding. */ | ||
@Input() | ||
@HostBinding('class.fd-panel__body--bleed') | ||
bleed: boolean = false; | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
library/src/lib/panel/panel-description/panel-description.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,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* Description of the panel title. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-header> | ||
* <fd-panel-head> | ||
* <fd-panel-description>This is a description for a panel title!</fd-panel-description> | ||
* </fd-panel-head> | ||
* </fd-panel-header> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-description', | ||
templateUrl: './panel-description.component.html' | ||
}) | ||
export class PanelDescriptionComponent {} |
This file was deleted.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
library/src/lib/panel/panel-filters/panel-filters.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, HostBinding } from '@angular/core'; | ||
|
||
/** | ||
* Panel level filters that is specific to the data being displayed within the panel. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-filters> | ||
* Some text can go here! | ||
* </fd-panel-filters> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-filters', | ||
templateUrl: './panel-filters.component.html', | ||
styles: [':host {display: block}'] | ||
}) | ||
export class PanelFiltersComponent { | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel__filters') | ||
fdPanelFiltersClass: boolean = true; | ||
} |
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
library/src/lib/panel/panel-footer/panel-footer.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,23 @@ | ||
import { Component, HostBinding } from '@angular/core'; | ||
|
||
/** | ||
* Panel footer can be utilized for pagination, secondary actions, add more data, etc. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-footer> | ||
* Some text can go here! | ||
* </fd-panel-footer> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-footer', | ||
templateUrl: './panel-footer.component.html' | ||
}) | ||
export class PanelFooterComponent { | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel__footer') | ||
fdPanelFooterClass: boolean = true; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,37 @@ | ||
import { Component, ElementRef, HostBinding, Input } from '@angular/core'; | ||
import { AbstractFdNgxClass } from '../../utils/abstract-fd-ngx-class'; | ||
|
||
/** | ||
* Use a panel grid to arrange panels evenly in a grid layout. | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-grid', | ||
templateUrl: './panel-grid.component.html' | ||
}) | ||
export class PanelGridComponent extends AbstractFdNgxClass { | ||
|
||
/** Number of columns for the grid. */ | ||
@Input() | ||
col: number; | ||
|
||
/** Whether the grid shoul have a gap. */ | ||
@Input() | ||
@HostBinding('class.fd-panel-grid--nogap') | ||
nogap: boolean = false; | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel-grid') | ||
fdPanelGridClass: boolean = true; | ||
|
||
/** @hidden */ | ||
constructor(private elementRef: ElementRef) { | ||
super(elementRef); | ||
} | ||
|
||
/** @hidden */ | ||
_setProperties() { | ||
if (this.col) { | ||
this._addClassToElement('fd-panel-grid--' + this.col + 'col'); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,25 @@ | ||
import { Component, HostBinding } from '@angular/core'; | ||
|
||
/** | ||
* Container for title and description. | ||
* | ||
* ```html | ||
* <fd-panel> | ||
* <fd-panel-header> | ||
* <fd-panel-head> | ||
* <fd-panel-title>Title!</fd-panel-title> | ||
* </fd-panel-head> | ||
* </fd-panel-header> | ||
* </fd-panel> | ||
* ``` | ||
*/ | ||
@Component({ | ||
selector: 'fd-panel-head', | ||
templateUrl: './panel-head.component.html' | ||
}) | ||
export class PanelHeadComponent { | ||
|
||
/** @hidden */ | ||
@HostBinding('class.fd-panel__head') | ||
fdPanelHeadClass = true; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.