-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1036 from HealthCatalyst/dev
Merge dev -> master
- Loading branch information
Showing
34 changed files
with
240 additions
and
75 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
9 changes: 2 additions & 7 deletions
9
projects/cashmere-examples/src/lib/datepicker/datepicker-example.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,10 @@ | ||
import {Component, OnInit} from '@angular/core'; | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'hc-datepicker-example', | ||
templateUrl: './datepicker-example.component.html', | ||
styleUrls: ['datepicker-example.component.scss'] | ||
}) | ||
export class DatepickerExampleComponent implements OnInit { | ||
constructor() {} | ||
|
||
export class DatepickerExampleComponent { | ||
date1 = new Date(2010, 1, 1); | ||
date2 = new Date(2010, 1, 1); | ||
|
||
ngOnInit() {} | ||
} |
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
37 changes: 37 additions & 0 deletions
37
.../cashmere-examples/src/lib/popover-right-click/popover-right-click-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<table class="hc-table"> | ||
<thead> | ||
<tr> | ||
<th>Item Name</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr *ngFor="let item of items"> | ||
<td>{{ item.name }}</td> | ||
<td [hcPop]="contextmenu" trigger="rightclick" [context]="item">{{ item.subtext }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<hc-pop #contextmenu | ||
horizontalAlign="mouse" | ||
verticalAlign="mouse" | ||
(opened)="context = $event" | ||
[autoCloseOnContentClick]="true" | ||
[showArrow]="false"> | ||
<div hcMenu> | ||
<button hcMenuItem> | ||
<hc-icon hcMenuIcon fontSet="hc-icons" fontIcon="hci-copy"></hc-icon> | ||
<span hcMenuText>Duplicate {{ context.name }}</span> | ||
</button> | ||
<div hcMenuItem hcDivider></div> | ||
<button hcMenuItem> | ||
<hc-icon hcMenuIcon fontSet="hc-icons" fontIcon="hci-archive"></hc-icon> | ||
<span hcMenuText>Archive {{ context.name }}</span> | ||
</button> | ||
<button hcMenuItem> | ||
<hc-icon hcMenuIcon fontSet="hc-icons" fontIcon="hci-delete"></hc-icon> | ||
<span hcMenuText>Delete {{ context.name }}</span> | ||
</button> | ||
</div> | ||
</hc-pop> |
16 changes: 16 additions & 0 deletions
16
...ts/cashmere-examples/src/lib/popover-right-click/popover-right-click-example.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,16 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
/** | ||
* @title Popover Menu | ||
*/ | ||
@Component({ | ||
selector: 'hc-popover-right-click-example', | ||
templateUrl: 'popover-right-click-example.component.html' | ||
}) | ||
export class PopoverRightClickExampleComponent { | ||
items: Object[] = [ | ||
{name: 'List Item One', subtext: 'Right-click on this cell for a context menu'}, | ||
{name: 'List Item Two', subtext: 'Right-click on this cell for another context menu'} | ||
]; | ||
context = {name: '', subtext: ''}; | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
height: 70px; | ||
} | ||
|
||
.form-container { | ||
.hc-calendar-wrapper > .form-container { | ||
padding-left: 13px; | ||
} |
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
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: 1 addition & 0 deletions
1
projects/cashmere/src/lib/datepicker/datepicker-toggle/datepicker-toggle.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,4 +1,5 @@ | ||
<button | ||
hc-icon-button | ||
#button | ||
class="calendar-button" | ||
type="button" | ||
|
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 |
---|---|---|
|
@@ -17,4 +17,6 @@ | |
color: inherit; | ||
background: 0 0; | ||
line-height: 1.5; | ||
width: 32px; | ||
height: 32px; | ||
} |
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
Binary file not shown.
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.