Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit a3bb226

Browse files
committed
chore(package): Publish Angular MDC v0.2.5
1 parent f9bab7a commit a3bb226

File tree

7 files changed

+92
-41
lines changed

7 files changed

+92
-41
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
<a name="0.0.0"></a>
2+
# [0.2.5](https://github.com/trimox/angular-mdc-web/compare/v0.2.4...v0.2.5) (2017-08-09)
3+
4+
5+
### Bug Fixes
6+
7+
* **fab:** Remove duplicate HostBinding ([#74](https://github.com/trimox/angular-mdc-web/issues/74)) ([dd3637f](https://github.com/trimox/angular-mdc-web/commit/dd3637f))
8+
* **textfield:** Fix Text Field boxes NgModule value accessor ([36ce97a](https://github.com/trimox/angular-mdc-web/commit/36ce97a))
9+
* **textfield:** Pre-filled Text Field uses floating label correctly ([bda0f9f](https://github.com/trimox/angular-mdc-web/commit/bda0f9f))
10+
11+
12+
### Features
13+
14+
* **dialog:** Implement MDC Dialog ([#70](https://github.com/trimox/angular-mdc-web/issues/70)) ([31a278a](https://github.com/trimox/angular-mdc-web/commit/31a278a))
15+
* **list:** Add component selector option to mdc-list-item-secondary ([4b3a5bf](https://github.com/trimox/angular-mdc-web/commit/4b3a5bf))
16+
* **list:** Add component selector option to mdc-list-item-text ([9df6a4d](https://github.com/trimox/angular-mdc-web/commit/9df6a4d))
17+
* **package:** Update MDC dependency to v0.17.0 ([f9bab7a](https://github.com/trimox/angular-mdc-web/commit/f9bab7a))
18+
* **textfield:** Add 'aria-hidden' HostBinding to Helptext directive ([6545321](https://github.com/trimox/angular-mdc-web/commit/6545321))
19+
* **textfield:** Add [mdc-textfield-bottom-line] directive for Text Field boxes ([5f76809](https://github.com/trimox/angular-mdc-web/commit/5f76809))
20+
* **textfield:** Add [mdc-textfield-label] directive ([483fd98](https://github.com/trimox/angular-mdc-web/commit/483fd98))
21+
* **textfield:** Auto generate [id] if none supplied ([3c70203](https://github.com/trimox/angular-mdc-web/commit/3c70203))
22+
23+
24+
125
<a name="0.0.0"></a>
226
# [0.2.4](https://github.com/trimox/angular-mdc-web/compare/v0.2.3...v0.2.4) (2017-08-03)
327

src/demo-app/components/dialog-demo/dialog-demo.component.html

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,37 @@ <h1 mdc-typography-display1>Dialog</h1>
5454
</tr>
5555
</tbody>
5656
</table>
57+
<table>
58+
<thead>
59+
<tr>
60+
<th>Directive</th>
61+
</tr>
62+
</thead>
63+
<tbody>
64+
<tr>
65+
<td>mdc-dialog-header</td>
66+
<td>Defines the header content block.</td>
67+
</tr>
68+
<tr>
69+
<td>mdc-dialog-header-title</td>
70+
<td>A header title block.</td>
71+
</tr>
72+
<tr>
73+
<td>mdc-dialog-body</td>
74+
<td></td>
75+
</tr>
76+
<tr>
77+
<td>mdc-dialog-footer</td>
78+
<td></td>
79+
</tr>
80+
</tbody>
81+
</table>
5782
</div>
5883
<div fxLayout="column" fxLayoutGap="20px" fxLayoutAlign="start start" class="mdc-padding">
5984
<button mdc-button [primary]="true" [raised]="true" (click)="showDialog();">Show Dialog</button>
6085
<button mdc-button [primary]="true" [raised]="true" (click)="showDialogScroll();">Show Scrolling Dialog</button>
6186

62-
<span mdc-typography-headline>Sample - Dialog</span>
87+
<span mdc-typography-headline>Dialog</span>
6388
<pre style="background:#000;color:#f8f8f8"><span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog</span> #<span style="color:#89bdff">dialog</span>></span>
6489
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-header</span>></span>
6590
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-header-title</span>></span>
@@ -70,13 +95,13 @@ <h1 mdc-typography-display1>Dialog</h1>
7095
Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
7196
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-body</span>></span>
7297
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span>
73-
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-cancel</span> (<span style="color:#e0c589">click</span>)=<span style="color:#65b042">"cancelDialog();"</span>></span>Decline<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
74-
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-accept</span> (<span style="color:#e0c589">click</span>)=<span style="color:#65b042">"acceptDialog();"</span>></span>Accept<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
98+
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-cancel</span>></span>Decline<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
99+
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-accept</span>></span>Accept<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
75100
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span>
76101
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog</span>></span>
77102
</pre>
78103

79-
<span mdc-typography-headline>Sample - Scrolling Dialog</span>
104+
<span mdc-typography-headline>Scrolling Dialog</span>
80105
<pre style="background:#000;color:#f8f8f8"><span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog</span> #<span style="color:#89bdff">dialogscroll</span>></span>
81106
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-header</span>></span>
82107
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-header-title</span>></span>
@@ -99,8 +124,8 @@ <h1 mdc-typography-display1>Dialog</h1>
99124
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-list</span>></span>
100125
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-body</span>></span>
101126
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span>
102-
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-cancel</span> (<span style="color:#e0c589">click</span>)=<span style="color:#65b042">"cancelDialog();"</span>></span>Decline<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
103-
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-accept</span> (<span style="color:#e0c589">click</span>)=<span style="color:#65b042">"acceptDialog();"</span>></span>Accept<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
127+
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-cancel</span>></span>Decline<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
128+
<span style="color:#e0c589">&lt;<span style="color:#e0c589">button</span> <span style="color:#e0c589">mdc-button</span> <span style="color:#e0c589">mdc-dialog-button-accept</span>></span>Accept<span style="color:#e0c589">&lt;/<span style="color:#e0c589">button</span>></span>
104129
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog-footer</span>></span>
105130
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-dialog</span>></span>
106131
</pre>
@@ -114,8 +139,8 @@ <h1 mdc-typography-display1>Dialog</h1>
114139
Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
115140
</mdc-dialog-body>
116141
<mdc-dialog-footer>
117-
<button mdc-button mdc-dialog-button-cancel (click)="cancelDialog();">Decline</button>
118-
<button mdc-button mdc-dialog-button-accept (click)="acceptDialog();">Accept</button>
142+
<button mdc-button mdc-dialog-button-cancel>Decline</button>
143+
<button mdc-button mdc-dialog-button-accept>Accept</button>
119144
</mdc-dialog-footer>
120145
</mdc-dialog>
121146

@@ -141,8 +166,8 @@ <h1 mdc-typography-display1>Dialog</h1>
141166
</mdc-list>
142167
</mdc-dialog-body>
143168
<mdc-dialog-footer>
144-
<button mdc-button mdc-dialog-button-cancel (click)="cancelDialog();">Decline</button>
145-
<button mdc-button mdc-dialog-button-accept (click)="acceptDialog();">Accept</button>
169+
<button mdc-button mdc-dialog-button-cancel>Decline</button>
170+
<button mdc-button mdc-dialog-button-accept>Accept</button>
146171
</mdc-dialog-footer>
147172
</mdc-dialog>
148173
</div>

src/demo-app/components/dialog-demo/dialog-demo.component.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,4 @@ export class DialogDemoComponent {
1717
showDialogScroll() {
1818
this.dialogScroll.show();
1919
}
20-
21-
acceptDialog() {
22-
this.dialog.accept();
23-
}
24-
25-
cancelDialog() {
26-
this.dialog.cancel();
27-
}
2820
}

src/demo-app/components/tab-demo/tab-demo.component.html

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ <h1 mdc-typography-display1>Tabs</h1>
145145
</tbody>
146146
</table>
147147
</div>
148-
<div fxLayout="column" fxLayoutGap="40px" fxLayoutAlign="start start" class="mdc-padding">
149-
<div>
148+
<div fxLayout="column" fxLayoutGap="20px" fxLayoutAlign="start start" class="mdc-padding">
150149
<span mdc-typography-headline>Simple Tab Bar with text labels</span>
151150
<mdc-tab-bar>
152151
<a mdc-tab [active]="true" href="#/tab-demo">Home</a>
@@ -158,9 +157,8 @@ <h1 mdc-typography-display1>Tabs</h1>
158157
<span style="color:#e0c589">&lt;<span style="color:#e0c589">a</span> <span style="color:#e0c589">mdc-tab</span> <span style="color:#e0c589">href</span>=<span style="color:#65b042">"#/tab-demo"</span>></span>Merchandise<span style="color:#e0c589">&lt;/<span style="color:#e0c589">a</span>></span>
159158
<span style="color:#e0c589">&lt;<span style="color:#e0c589">a</span> <span style="color:#e0c589">mdc-tab</span> <span style="color:#e0c589">href</span>=<span style="color:#65b042">"#/tab-demo"</span>></span>About Us<span style="color:#e0c589">&lt;/<span style="color:#e0c589">a</span>></span>
160159
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
161-
</pre> </div>
160+
</pre>
162161

163-
<div>
164162
<span mdc-typography-headline>Tab Bar with icon labels</span>
165163
<mdc-tab-bar [primaryColor]="true">
166164
<mdc-tab [active]="true">
@@ -184,9 +182,8 @@ <h1 mdc-typography-display1>Tabs</h1>
184182
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon</span> <span style="color:#89bdff">material-icon</span>></span>person_pin<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon</span>></span>
185183
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab</span>></span>
186184
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
187-
</pre> </div>
185+
</pre>
188186

189-
<div>
190187
<span mdc-typography-headline>Tab Bar with icon and text labels</span>
191188
<mdc-tab-bar>
192189
<mdc-tab [active]="true">
@@ -217,9 +214,7 @@ <h1 mdc-typography-display1>Tabs</h1>
217214
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab</span>></span>
218215
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
219216
</pre>
220-
</div>
221217

222-
<div>
223218
<span mdc-typography-headline>Accent Color Indicator</span>
224219
<mdc-tab-bar [accentColor]="true">
225220
<a mdc-tab [active]="true" href="#/tab-demo">
@@ -249,9 +244,8 @@ <h1 mdc-typography-display1>Tabs</h1>
249244
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon-text</span>></span>Nearby<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon-text</span>></span>
250245
<span style="color:#e0c589">&lt;/<span style="color:#e0c589">a</span>></span>
251246
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
252-
</pre> </div>
247+
</pre>
253248

254-
<div>
255249
<span mdc-typography-headline>Dark Themed</span>
256250
<mdc-tab-bar [accentColor]="true" [mdc-theme-dark]="true">
257251
<a mdc-tab [active]="true" href="#/tab-demo">
@@ -281,9 +275,9 @@ <h1 mdc-typography-display1>Tabs</h1>
281275
<span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon-text</span>></span>Nearby<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-icon-text</span>></span>
282276
<span style="color:#e0c589">&lt;/<span style="color:#e0c589">a</span>></span>
283277
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
284-
</pre> </div>
278+
</pre>
285279

286-
<div>
280+
<div>
287281
<span mdc-typography-headline>Dynamic view switching</span>
288282
<mdc-tab-bar>
289283
<a mdc-tab *ngFor="let tabLink of tabLinks" [routerLink]="[{outlets: {taboutlet: tabLink.link}}]" [active]="tabLink.active">{{tabLink.label}}</a>
@@ -299,8 +293,7 @@ <h1 mdc-typography-display1>Tabs</h1>
299293
[<span style="color:#e0c589">routerLink</span>]=<span style="color:#65b042">"[<span style="color:#daefa3"><![CDATA[{outlets: {taboutlet: tabLink.link}}]]></span>]"</span>></span>tabLink.label<span style="color:#e0c589">&lt;/<span style="color:#e0c589">a</span>></span>
300294
<span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-tab-bar</span>></span>
301295
<span style="color:#89bdff">&lt;<span style="color:#89bdff">router</span><span style="color:#89bdff">-outlet</span> <span style="color:#89bdff">name</span>=<span style="color:#65b042">"taboutlet"</span>></span><span style="color:#89bdff">&lt;/<span style="color:#89bdff">router</span><span style="color:#89bdff">-outlet</span>></span>
302-
</pre>
303-
</div>
296+
</pre></div>
304297

305298
<div>
306299
<span mdc-typography-headline>Tab Bar Scoller</span>

src/demo-app/components/textfield-demo/textfield-demo.component.html

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,16 @@ <h1 mdc-typography-display1>Text Field</h1>
144144
</div>
145145
<div fxLayout="column" class="mdc-padding">
146146
<div fxFlexAlign="start">
147-
<mdc-textfield [(ngModel)]="username" id="username" label="Username" [required]="isRequired" [disabled]="isDisabled" [dense]="isDense">
148-
</mdc-textfield>
147+
<mdc-textfield [(ngModel)]="username" id="username" label="Username" [required]="isRequired" [disabled]="isDisabled" [dense]="isDense"></mdc-textfield>
149148
<p mdc-textfield-helptext [validation]="true" [persistent]="false">Username is required</p>
150-
<mdc-form-field>
151-
<mdc-checkbox [(ngModel)]="isDisabled"></mdc-checkbox>
152-
<label>Disable</label>
153-
</mdc-form-field>
154149
<mdc-form-field>
155150
<mdc-checkbox [(ngModel)]="isRequired"></mdc-checkbox>
156151
<label>Required</label>
157152
</mdc-form-field>
153+
<mdc-form-field>
154+
<mdc-checkbox [(ngModel)]="isDisabled"></mdc-checkbox>
155+
<label>Disable</label>
156+
</mdc-form-field>
158157
<mdc-form-field>
159158
<mdc-checkbox [(ngModel)]="isDense"></mdc-checkbox>
160159
<label>Dense</label>
@@ -174,7 +173,24 @@ <h1 mdc-typography-display1>Text Field</h1>
174173
[<span style="color:#89bdff">validation</span>]=<span style="color:#65b042">"true"</span>
175174
[<span style="color:#89bdff">persistent</span>]=<span style="color:#65b042">"false"</span>></span>Username is required<span style="color:#89bdff">&lt;/<span style="color:#89bdff">p</span>></span>
176175
</pre> </div>
177-
<span mdc-typography-headline>Textfield box</span>
176+
177+
<div fxLayout="column" class="mdc-padding">
178+
<span mdc-typography-headline>Prefilled value</span>
179+
<div fxFlexAlign="start">
180+
<mdc-textfield [(ngModel)]="prefill" label="Username"></mdc-textfield>
181+
</div>
182+
</div>
183+
184+
<div fxLayout="column" class="mdc-padding">
185+
<div fxFlexAlign="start">
186+
<mdc-textfield type="password" label="Password" [required]="true"></mdc-textfield>
187+
<pre style="background:#000;color:#f8f8f8"><span style="color:#89bdff">&lt;<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-textfield</span> <span style="color:#89bdff">type</span>=<span style="color:#65b042">"password"</span>
188+
<span style="color:#89bdff">label</span>=<span style="color:#65b042">"Password"</span>
189+
[<span style="color:#89bdff">required</span>]=<span style="color:#65b042">"true"</span>></span><span style="color:#89bdff">&lt;/<span style="color:#89bdff">mdc</span><span style="color:#89bdff">-textfield</span>></span>
190+
</pre></div>
191+
</div>
192+
<span mdc-typography-headline>Text Field box</span>
193+
<span mdc-typography-caption>Use mdc-textfield-box</span>
178194
<div fxFlexAlign="start" class="mdc-padding">
179195
<mdc-textfield-box
180196
[required]="true"

src/demo-app/components/textfield-demo/textfield-demo.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
})
99
export class TextfieldDemoComponent {
1010
username = null;
11+
prefill = 'John Doe';
1112
password = null;
1213
comments = null;
1314
subject = null;

src/lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/trimox/angular-mdc-web.git"
99
},
10-
"version": "0.2.4",
10+
"version": "0.2.5",
1111
"license": "MIT",
1212
"keywords": [
1313
"angular-mdc",
@@ -21,7 +21,7 @@
2121
"typings": "./index.d.ts",
2222
"private": false,
2323
"dependencies": {
24-
"material-components-web": "^0.16.0"
24+
"material-components-web": "^0.17.0"
2525
},
2626
"peerDependencies": {
2727
"@angular/core": ">=4.0.0",

0 commit comments

Comments
 (0)