Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Teradata/covalent into f…
Browse files Browse the repository at this point in the history
…eature/icon-service
  • Loading branch information
richavyas committed Mar 2, 2017
2 parents 3d27268 + 58094fa commit 07ff469
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 16 deletions.
120 changes: 114 additions & 6 deletions src/app/components/components/chips/chips.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,120 @@
<md-card-subtitle>Small blocks for multiple items</md-card-subtitle>
<md-divider></md-divider>
<md-card-content>
<p>Basic Demo</p>
<td-chips placeholder="Enter any string" [readOnly]="readOnly"></td-chips>
<p>Autocomplete Demo</p>
<td-chips [items]="items" placeholder="Enter any string" [readOnly]="readOnly"></td-chips>
<p>Autocomplete and requireMatch Demo</p>
<td-chips [items]="items" [(ngModel)]="itemsRequireMatch" placeholder="Enter autocomplete strings" [readOnly]="readOnly" requireMatch></td-chips>
<h3 class="md-title">Basic Demo</h3>
<md-tab-group md-stretch-tabs>
<md-tab>
<template md-tab-label>Demo</template>
<td-chips placeholder="Enter any string"></td-chips>
</md-tab>
<md-tab>
<template md-tab-label>Code</template>
<p>HTML:</p>
<td-highlight lang="html">
<![CDATA[
<td-chips placeholder="Enter any string"></td-chips>
]]>
</td-highlight>
<p>Typescript:</p>
<td-highlight lang="typescript">
<![CDATA[
export class ChipsDemoComponent {

}
]]>
</td-highlight>
</md-tab>
</md-tab-group>
</md-card-content>
</md-card>
<md-card>
<md-card-content>
<h3 class="md-title">Autocomplete Demo</h3>
<md-tab-group md-stretch-tabs>
<md-tab>
<template md-tab-label>Demo</template>
<td-chips [items]="items" placeholder="Enter any string"></td-chips>
</md-tab>
<md-tab>
<template md-tab-label>Code</template>
<p>HTML:</p>
<td-highlight lang="html">
<![CDATA[
<td-chips [items]="items" placeholder="Enter any string"></td-chips>
]]>
</td-highlight>
<p>Typescript:</p>
<td-highlight lang="typescript">
<![CDATA[
export class ChipsDemoComponent {

items: string[] = [
'stepper',
'expansion-panel',
'markdown',
'highlight',
'loading',
'media',
'chips',
'http',
'json-formatter',
'pipes',
'need more?',
];

}
]]>
</td-highlight>
</md-tab>
</md-tab-group>
</md-card-content>
</md-card>
<md-card>
<md-card-content>
<h3 class="md-title">Autocomplete and requireMatch Demo</h3>
<md-tab-group md-stretch-tabs>
<md-tab>
<template md-tab-label>Demo</template>
<td-chips [items]="items" [(ngModel)]="itemsRequireMatch" placeholder="Enter autocomplete strings" [readOnly]="readOnly" requireMatch></td-chips>
</md-tab>
<md-tab>
<template md-tab-label>Code</template>
<p>HTML:</p>
<td-highlight lang="html">
<![CDATA[
<td-chips [items]="items" [(ngModel)]="itemsRequireMatch" placeholder="Enter autocomplete strings" [readOnly]="readOnly" requireMatch></td-chips>
]]>
</td-highlight>
<p>Typescript:</p>
<td-highlight lang="typescript">
<![CDATA[
export class ChipsDemoComponent {
readOnly: boolean = false;

items: string[] = [
'stepper',
'expansion-panel',
'markdown',
'highlight',
'loading',
'media',
'chips',
'http',
'json-formatter',
'pipes',
'need more?',
];

itemsRequireMatch: string[] = this.items.slice(0, 6);

toggleReadOnly(): void {
this.readOnly = !this.readOnly;
}
}
]]>
</td-highlight>
</md-tab>
</md-tab-group>
</md-card-content>
<md-divider></md-divider>
<md-card-actions>
Expand Down
4 changes: 0 additions & 4 deletions src/app/components/components/chips/chips.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ export class ChipsDemoComponent {

itemsRequireMatch: string[] = this.items.slice(0, 6);

itemsReadOnly: string[] = this.items.slice(2, 8);

itemsForms: string[] = this.items.slice(6, 11);

toggleReadOnly(): void {
this.readOnly = !this.readOnly;
}
Expand Down
5 changes: 0 additions & 5 deletions src/platform/core/search/search-box/search-box.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
height: 64px;
td-search-input {
margin-left: 12px;
/deep/ {
.mat-input-placeholder.mat-focused {
visibility: hidden;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="td-search-input" layout="row" layout-align="end center">
<md-input-container [class.mat-hide-underline]="!showUnderline" flex>
<md-input-container [class.mat-hide-underline]="!showUnderline" floatPlaceholder="never" flex>
<input mdInput
#searchElement
type="search"
Expand Down

0 comments on commit 07ff469

Please sign in to comment.