diff --git a/src/dev-app/autocomplete/autocomplete-demo.html b/src/dev-app/autocomplete/autocomplete-demo.html index 6f17ba4cda67..c8fd9f0cc70d 100644 --- a/src/dev-app/autocomplete/autocomplete-demo.html +++ b/src/dev-app/autocomplete/autocomplete-demo.html @@ -6,7 +6,7 @@
Reactive value: {{ stateCtrl.value | json }}
Reactive dirty: {{ stateCtrl.dirty }}
- + State @@ -33,10 +33,10 @@
Template-driven dirty: {{ modelDir ? modelDir.dirty : false }}
- + State - + {{ state.name }} @@ -57,20 +57,15 @@
Option groups (currentGroupedState): {{ currentGroupedState }}
- + State - +
- + {{ state.name }} diff --git a/src/dev-app/baseline/baseline-demo.html b/src/dev-app/baseline/baseline-demo.html index c021f9d37fbe..511283f92b5b 100644 --- a/src/dev-app/baseline/baseline-demo.html +++ b/src/dev-app/baseline/baseline-demo.html @@ -10,12 +10,12 @@ | Text 3 | Radio 3 | Text 4 | - + Input | Text 5 | - + This label is really really really long Option @@ -23,7 +23,7 @@ | Text 6 | - + Input @@ -44,12 +44,12 @@

| Text 3 | Radio 3 | Text 4 | - + Input | Text 5 | - + This label is really really really long Option @@ -57,7 +57,7 @@

| Text 6 | - + Input diff --git a/src/dev-app/datepicker/datepicker-demo.html b/src/dev-app/datepicker/datepicker-demo.html index 3abeedf1d183..0a0b4543a5f7 100644 --- a/src/dev-app/datepicker/datepicker-demo.html +++ b/src/dev-app/datepicker/datepicker-demo.html @@ -5,7 +5,7 @@

Options

Start in year view Disable datepicker Disable input - + Primary Accent @@ -14,26 +14,23 @@

Options

- + Min date - + - + Max date - +

- + Start at date - + @@ -43,113 +40,89 @@

Result

- + Pick a date - - + + - "{{resultPickerModel.getError('matDatepickerParse').text}}" is not a valid date! + "{{ resultPickerModel.getError('matDatepickerParse').text }}" is not a + valid date! Too early! Too late! Date unavailable!

-

Last input: {{lastDateInput}}

-

Last change: {{lastDateChange}}

-
+

Last input: {{ lastDateInput }}

+

Last change: {{ lastDateChange }}

+

- + + Pick a date + + + + - -

Input disabled datepicker

- + Input disabled - + [matDatepickerFilter]="filterOdd ? dateFilter : null" disabled /> +

Input disabled via FormControl

- + FormControl disabled - - + +

Input disabled, datepicker popup enabled

- + Input disabled, datepicker enabled - - + +

Datepicker with value property binding

- + Value binding - - + +

Datepicker with custom header

- + Custom calendar header - + @@ -157,9 +130,9 @@

Datepicker with custom header

Datepicker with custom header extending the default header

- + Custom calendar header extending default - + diff --git a/src/dev-app/datepicker/datepicker-demo.scss b/src/dev-app/datepicker/datepicker-demo.scss index 1dc57962c1c4..fce4c2a81106 100644 --- a/src/dev-app/datepicker/datepicker-demo.scss +++ b/src/dev-app/datepicker/datepicker-demo.scss @@ -2,3 +2,6 @@ mat-calendar { width: 300px; } +.example-space-between { + margin: 5px; +} diff --git a/src/dev-app/dialog/dialog-demo.html b/src/dev-app/dialog/dialog-demo.html index 7605af0d8911..2429588d0551 100644 --- a/src/dev-app/dialog/dialog-demo.html +++ b/src/dev-app/dialog/dialog-demo.html @@ -14,34 +14,34 @@

Dialog demo

Dialog dimensions

-

- +

+ Width - + Height

-

- +

+ Min width - + Min height

-

- +

+ Max width - + Max height @@ -49,23 +49,23 @@

Dialog dimensions

Dialog position

-

- +

+ Top - + Bottom

-

- +

+ Left - + Right @@ -73,8 +73,8 @@

Dialog position

Dialog backdrop

-

- +

+ Backdrop class @@ -84,8 +84,8 @@

Dialog backdrop

Other options

-

- +

+ Button alignment Start @@ -95,33 +95,34 @@

Other options

-

- +

+ Dialog message

-

+

Disable close

-

Last afterClosed result: {{lastAfterClosedResult}}

-

Last beforeClose result: {{lastBeforeCloseResult}}

+

Last afterClosed result: {{lastAfterClosedResult}}

+

Last beforeClose result: {{lastBeforeCloseResult}}

I'm a template dialog. I've been opened {{numTemplateOpens}} times! -

It's Jazz!

+

It's Jazz!

- + How much? -

{{ data.message }}

+

{{ data.message }}

- +
diff --git a/src/dev-app/dialog/dialog-demo.scss b/src/dev-app/dialog/dialog-demo.scss index c57cae78b6b3..26f9a09cdd8c 100644 --- a/src/dev-app/dialog/dialog-demo.scss +++ b/src/dev-app/dialog/dialog-demo.scss @@ -11,3 +11,8 @@ button { margin-right: 0; } } + +.example-space-between { + display: flex; + justify-content: space-between; +} diff --git a/src/dev-app/dialog/dialog-demo.ts b/src/dev-app/dialog/dialog-demo.ts index d79a59931bdd..4998f65d87ab 100644 --- a/src/dev-app/dialog/dialog-demo.ts +++ b/src/dev-app/dialog/dialog-demo.ts @@ -93,7 +93,7 @@ export class DialogDemo {

It's Jazz!

- + How much? diff --git a/src/dev-app/drag-drop/drag-drop-demo.html b/src/dev-app/drag-drop/drag-drop-demo.html index af30924db583..ffe83cbd2098 100644 --- a/src/dev-app/drag-drop/drag-drop-demo.html +++ b/src/dev-app/drag-drop/drag-drop-demo.html @@ -2,11 +2,7 @@

To do

-
+
{{item}} @@ -16,11 +12,7 @@

To do

Done

-
+
{{item}} @@ -32,11 +24,7 @@

Done

Horizontal list

-
{{item}} @@ -60,7 +48,7 @@

Data

Axis locking

- + Lock position along axis None diff --git a/src/dev-app/expansion/expansion-demo.html b/src/dev-app/expansion/expansion-demo.html index 30bf4918a84d..bebb4eaab167 100644 --- a/src/dev-app/expansion/expansion-demo.html +++ b/src/dev-app/expansion/expansion-demo.html @@ -1,8 +1,6 @@

Single Expansion Panel

- + This is a panel description. Panel Title @@ -20,12 +18,12 @@

Single Expansion Panel


- + Collapsed height - + Expanded height @@ -62,8 +60,7 @@

matAccordion


- + Section 1

This is the content text that makes sense here.

@@ -115,4 +112,3 @@

cdkAccordion

I only show if item 3 is expanded

- diff --git a/src/dev-app/input/input-demo.html b/src/dev-app/input/input-demo.html index 5defa027774d..ce39a1fa5839 100644 --- a/src/dev-app/input/input-demo.html +++ b/src/dev-app/input/input-demo.html @@ -1,60 +1,75 @@ + Form Field Appearance + + + Change Control Appearance + + Outline + Fill + + + Basic
- + + Company (disabled) - - - -
- - First name - - - - - Long last name that will be truncated - - -
+ + + + + +
+ + First name + + + + + Long last name that will be truncated + + +

- + Address - + Address 2

- - - - -
- - City - - - - - State - - - - - Postal code - - - mode_edit - {{postalCode.value.length}} / 5 - - -
+ + + + + + +
+ + City + + + + + State + + + + + Postal code + + + mode_edit + {{postalCode.value.length}} / 5 + + +
@@ -65,13 +80,13 @@

Regular

- + Example This field is required - + Email @@ -85,7 +100,7 @@

Regular

With hint

- + Example This field is required @@ -96,7 +111,7 @@

With hint

Inside a form

- + Example This field is required @@ -106,12 +121,9 @@

Inside a form

With a custom error function

- + Example - + This field is required @@ -122,7 +134,7 @@

With a custom error function

Prefix + Suffix

Text

- + Amount @@ -130,7 +142,7 @@

Text

Icons

- + Amount attach_money @@ -138,11 +150,15 @@

Icons

Icon buttons

- + Amount - - + +
@@ -151,45 +167,45 @@

Icon buttons

Divider Colors

Input

- + Default color - + Accent color - + Warn color

Textarea

- + Default color - + Accent color - + Warn color

With error

- + Default color This field is required - + Accent color This field is required - + Warn color This field is required @@ -202,12 +218,9 @@

With error

Input

- + Character count (100 max) - + {{characterCountInputHintExample.value.length}} / 100 @@ -216,11 +229,9 @@

Input

Textarea

- + Character count (100 max) - + {{characterCountTextareaHintExample.value.length}} / 100 @@ -233,7 +244,7 @@

Textarea

Hello  - + First name , @@ -242,37 +253,37 @@

Textarea

- + Disabled field - + Required field

- + 100% width label

- + Character count (100 max) {{input.value.length}} / 100

- + Show hint label

- + I favorite bold label @@ -283,14 +294,14 @@

Textarea

- + Show hint label with character count {{hintLabelWithCharCount.value.length}}

- + Enter text to count @@ -304,24 +315,20 @@

Textarea

Check to change the color: - +

Check to make required: - - + +

Check to hide the required marker: - - +

@@ -334,43 +341,45 @@

Textarea

- + Label

- + What is your favorite color?

- + Prefixed

Example: 
- + Suffixed .00 € -
+
Both: - + Email address - email  + + email  +  @gmail.com

- Empty: - + Empty: +

@@ -380,22 +389,20 @@

Textarea

- - + +
Table - - - - - Table + + + + +
{{i+1}} - + Value - + @@ -410,23 +417,22 @@

Textarea

Forms - + Reactive - + Template -
- + Delayed value @@ -440,35 +446,35 @@

Textarea

- + - + - + Only label - + Label and placeholder - + Always float - + Never float - + Label and placeholder element The placeholder element @@ -476,47 +482,47 @@

Textarea

- + Value - + Value - + Only label Value - + Label and placeholder Value - + Always float Value - + Never float Value - + Label and placeholder element The placeholder element @@ -525,15 +531,9 @@

Textarea

- + - +
@@ -548,15 +548,12 @@

Regular <textarea> with maxRows and minRows

 
- +

<textarea> with mat-form-field

- + Autosized textarea @@ -610,40 +607,42 @@

<textarea> with bindable autosize

Please type something here
- - - - - -
- - Legacy appearance - - This field is required - Please type something here - - - - Standard appearance - - This field is required - Please type something here - - - - Fill appearance - - This field is required - Please type something here - - - - Outline appearance - - This field is required - Please type something here - -
+ + + + + + + +
+ + Legacy appearance + + This field is required + Please type something here + + + + Standard appearance + + This field is required + Please type something here + + + + Fill appearance + + This field is required + Please type something here + + + + Outline appearance + + This field is required + Please type something here + +
@@ -654,10 +653,10 @@

<textarea> with bindable autosize

Use custom autofill style - + Autofill monitored + [class.demo-custom-autofill-style]="customAutofillStyle"> is autofilled? {{isAutofilled ? 'yes' : 'no'}} diff --git a/src/dev-app/input/input-demo.ts b/src/dev-app/input/input-demo.ts index 54178dbe7bff..7ce17301dd26 100644 --- a/src/dev-app/input/input-demo.ts +++ b/src/dev-app/input/input-demo.ts @@ -5,12 +5,10 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import {Component, ChangeDetectionStrategy} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {ErrorStateMatcher} from '@angular/material'; - let max = 5; const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; @@ -20,7 +18,7 @@ const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA changeDetection: ChangeDetectionStrategy.OnPush, selector: 'input-demo', templateUrl: 'input-demo.html', - styleUrls: ['input-demo.css'], + styleUrls: ['input-demo.css'] }) export class InputDemo { floatingLabel = 'auto'; @@ -45,11 +43,14 @@ export class InputDemo { {value: 20}, {value: 30}, {value: 40}, - {value: 50}, + {value: 50} ]; rows = 8; formControl = new FormControl('hello', Validators.required); - emailFormControl = new FormControl('', [Validators.required, Validators.pattern(EMAIL_REGEX)]); + emailFormControl = new FormControl('', [ + Validators.required, + Validators.pattern(EMAIL_REGEX) + ]); delayedFormControl = new FormControl(''); model = 'hello'; isAutofilled = false; @@ -60,13 +61,14 @@ export class InputDemo { fillAppearance: string; outlineAppearance: string; + appearance: 'outline' | 'fill' = 'outline'; constructor() { setTimeout(() => this.delayedFormControl.setValue('hello'), 100); } addABunch(n: number) { for (let x = 0; x < n; x++) { - this.items.push({ value: ++max }); + this.items.push({value: ++max}); } } @@ -84,12 +86,14 @@ export class InputDemo { }; togglePlaceholderTestValue() { - this.placeholderTestControl.setValue(this.placeholderTestControl.value === '' ? 'Value' : ''); + this.placeholderTestControl.setValue( + this.placeholderTestControl.value === '' ? 'Value' : '' + ); } togglePlaceholderTestTouched() { - this.placeholderTestControl.touched ? - this.placeholderTestControl.markAsUntouched() : - this.placeholderTestControl.markAsTouched(); + this.placeholderTestControl.touched + ? this.placeholderTestControl.markAsUntouched() + : this.placeholderTestControl.markAsTouched(); } } diff --git a/src/dev-app/paginator/paginator-demo.html b/src/dev-app/paginator/paginator-demo.html index af3c21879c14..a744fbb259fb 100644 --- a/src/dev-app/paginator/paginator-demo.html +++ b/src/dev-app/paginator/paginator-demo.html @@ -5,15 +5,15 @@

No inputs

- + - + - + @@ -23,15 +23,9 @@

No inputs

Disabled
- +
Output event: {{pageEvent | json}}
diff --git a/src/dev-app/select/select-demo.html b/src/dev-app/select/select-demo.html index 9b7061c9d63d..cb3f847867e8 100644 --- a/src/dev-app/select/select-demo.html +++ b/src/dev-app/select/select-demo.html @@ -1,11 +1,22 @@ + + Change Form Field Appearance + +

Change form field appearance to either Outline or Fill

+ + Change Appearance + + - +
Native Select

Basic

- + Select your car

Disabled and required

- + Select your car (disabled)

Floating label

- + Float with value - + Not float when empty - + Float with no value, but with label - + Float with no value, but with html

Looks

- + Legacy - + Standard - + Fill - + Outline

Option group

- +

Place holder

- +

Error message, hint, form sumbit

- + Select your car (required) @@ -168,10 +179,9 @@

Error message with errorStateMatcher

ngModel - + Drink - + None {{ drink.viewValue }} @@ -212,10 +222,10 @@

Error message with errorStateMatcher

Multiple selection - + Pokemon - + {{ creature.viewValue }} @@ -241,7 +251,7 @@

Error message with errorStateMatcher

Without Angular forms - + Digimon None @@ -261,11 +271,10 @@

Error message with errorStateMatcher

Option groups - + Pokemon - + {{ creature.viewValue }} @@ -279,12 +288,10 @@

Error message with errorStateMatcher

compareWith - + Drink - + {{ drink.viewValue }} @@ -296,8 +303,7 @@

Error message with errorStateMatcher

Status: {{ drinkObjectControl.control?.status }}

Comparison Mode: {{ compareByValue ? 'VALUE' : 'REFERENCE' }}

- @@ -310,7 +316,7 @@

Error message with errorStateMatcher

Appearance comparison

- + Legacy None @@ -366,7 +372,7 @@

Error message with errorStateMatcher

formControl - + Food I would like to eat {{ food.viewValue }} @@ -388,7 +394,7 @@

Error message with errorStateMatcher

Change event - + Starter pokemon {{ creature.viewValue }} @@ -402,4 +408,3 @@

Error message with errorStateMatcher

This div is for testing scrolled selects.
- diff --git a/src/dev-app/select/select-demo.ts b/src/dev-app/select/select-demo.ts index dabde38fca54..633453d55c76 100644 --- a/src/dev-app/select/select-demo.ts +++ b/src/dev-app/select/select-demo.ts @@ -21,10 +21,10 @@ export class MyErrorStateMatcher implements ErrorStateMatcher { } @Component({ - moduleId: module.id, - selector: 'select-demo', - templateUrl: 'select-demo.html', - styleUrls: ['select-demo.css'], + moduleId: module.id, + selector: 'select-demo', + templateUrl: 'select-demo.html', + styleUrls: ['select-demo.css'] }) export class SelectDemo { drinksRequired = false; @@ -34,7 +34,7 @@ export class SelectDemo { pokemonDisabled = false; showSelect = false; currentDrink: string; - currentDrinkObject: {}|undefined = {value: 'tea-5', viewValue: 'Tea'}; + currentDrinkObject: {} | undefined = {value: 'tea-5', viewValue: 'Tea'}; currentPokemon: string[]; currentPokemonFromGroup: string; currentDigimon: string; @@ -48,6 +48,8 @@ export class SelectDemo { compareByValue = true; selectFormControl = new FormControl('', Validators.required); + appearance: 'outline' | 'fill' = 'outline'; + foods = [ {value: null, viewValue: 'None'}, {value: 'steak-0', viewValue: 'Steak'}, @@ -57,14 +59,17 @@ export class SelectDemo { drinks = [ {value: 'coke-0', viewValue: 'Coke'}, - {value: 'long-name-1', viewValue: 'Decaf Chocolate Brownie Vanilla Gingerbread Frappuccino'}, + { + value: 'long-name-1', + viewValue: 'Decaf Chocolate Brownie Vanilla Gingerbread Frappuccino' + }, {value: 'water-2', viewValue: 'Water'}, {value: 'pepper-3', viewValue: 'Dr. Pepper'}, {value: 'coffee-4', viewValue: 'Coffee'}, {value: 'tea-5', viewValue: 'Tea'}, {value: 'juice-6', viewValue: 'Orange juice'}, {value: 'wine-7', viewValue: 'Wine'}, - {value: 'milk-8', viewValue: 'Milk'}, + {value: 'milk-8', viewValue: 'Milk'} ]; pokemon = [ @@ -72,15 +77,18 @@ export class SelectDemo { {value: 'charizard-1', viewValue: 'Charizard'}, {value: 'squirtle-2', viewValue: 'Squirtle'}, {value: 'pikachu-3', viewValue: 'Pikachu'}, - {value: 'jigglypuff-4', viewValue: 'Jigglypuff with a really long name that will truncate'}, + { + value: 'jigglypuff-4', + viewValue: 'Jigglypuff with a really long name that will truncate' + }, {value: 'ditto-5', viewValue: 'Ditto'}, - {value: 'psyduck-6', viewValue: 'Psyduck'}, + {value: 'psyduck-6', viewValue: 'Psyduck'} ]; availableThemes = [ - {value: 'primary', name: 'Primary' }, - {value: 'accent', name: 'Accent' }, - {value: 'warn', name: 'Warn' } + {value: 'primary', name: 'Primary'}, + {value: 'accent', name: 'Accent'}, + {value: 'warn', name: 'Warn'} ]; pokemonGroups = [ @@ -113,7 +121,7 @@ export class SelectDemo { name: 'Psychic', pokemon: [ {value: 'mew-9', viewValue: 'Mew'}, - {value: 'mewtwo-10', viewValue: 'Mewtwo'}, + {value: 'mewtwo-10', viewValue: 'Mewtwo'} ] } ]; @@ -128,7 +136,9 @@ export class SelectDemo { ]; toggleDisabled() { - this.foodControl.enabled ? this.foodControl.disable() : this.foodControl.enable(); + this.foodControl.enabled + ? this.foodControl.disable() + : this.foodControl.enable(); } setPokemonValue() { @@ -150,6 +160,8 @@ export class SelectDemo { matcher = new MyErrorStateMatcher(); toggleSelected() { - this.currentAppearanceValue = this.currentAppearanceValue ? null : this.digimon[0].value; + this.currentAppearanceValue = this.currentAppearanceValue + ? null + : this.digimon[0].value; } } diff --git a/src/dev-app/snack-bar/snack-bar-demo.html b/src/dev-app/snack-bar/snack-bar-demo.html index e8ef3ca05cc0..b16a804241ae 100644 --- a/src/dev-app/snack-bar/snack-bar-demo.html +++ b/src/dev-app/snack-bar/snack-bar-demo.html @@ -1,11 +1,14 @@

SnackBar demo

- Message: + + Message + +
Position in page:
- + Start End @@ -14,7 +17,7 @@

SnackBar demo

Center
- + Top Bottom @@ -24,22 +27,18 @@

SnackBar demo

Show button on snack bar

- + Snack bar action label - +

Auto hide after duration

- + Auto hide duration in ms - +
diff --git a/src/dev-app/stepper/stepper-demo.html b/src/dev-app/stepper/stepper-demo.html index 67b2a97237bb..5d6d4922550c 100644 --- a/src/dev-app/stepper/stepper-demo.html +++ b/src/dev-app/stepper/stepper-demo.html @@ -5,13 +5,13 @@

Linear Vertical Stepper Demo using a single form

Fill out your name - + First name This field is required - + Last name This field is required @@ -25,7 +25,7 @@

Linear Vertical Stepper Demo using a single form

Fill out your email address
- + Email address The input is invalid. @@ -52,12 +52,12 @@

Linear Horizontal Stepper Demo using a different form for each step

Fill out your name - + First name This field is required - + Last name This field is required @@ -71,7 +71,7 @@

Linear Horizontal Stepper Demo using a different form for each step

Fill out your email address - + Email address The input is invalid @@ -100,12 +100,12 @@

Vertical Stepper Demo

Fill out your name - + First name - + Last name @@ -118,7 +118,7 @@

Vertical Stepper Demo

Fill out your phone number
- + Phone number @@ -132,7 +132,7 @@

Vertical Stepper Demo

Fill out your address
- + Address @@ -154,12 +154,12 @@

Vertical Stepper Demo

Horizontal Stepper Demo with Text Label

- + First name - + Last name @@ -169,7 +169,7 @@

Horizontal Stepper Demo with Text Label

- + Phone number @@ -180,7 +180,7 @@

Horizontal Stepper Demo with Text Label

- + Address @@ -202,7 +202,7 @@

Horizontal Stepper Demo with Templated Label

{{step.label}} - + Answer @@ -216,10 +216,9 @@

Horizontal Stepper Demo with Templated Label

Stepper with autosize textarea

- + Autosize textarea - diff --git a/src/dev-app/toolbar/toolbar-demo.html b/src/dev-app/toolbar/toolbar-demo.html index fb5f6a7517a4..487da6afba5e 100644 --- a/src/dev-app/toolbar/toolbar-demo.html +++ b/src/dev-app/toolbar/toolbar-demo.html @@ -91,7 +91,7 @@

Toolbar with form-fields

- + Select One @@ -99,7 +99,15 @@

Toolbar with form-fields

- + + Select + + One + Two + + + + Input @@ -108,7 +116,15 @@

Toolbar with form-fields

- + + Select + + One + Two + + + + Select One @@ -116,7 +132,7 @@

Toolbar with form-fields

- + Input diff --git a/src/dev-app/virtual-scroll/virtual-scroll-demo.html b/src/dev-app/virtual-scroll/virtual-scroll-demo.html index 40792b7aab14..d0892112ba91 100644 --- a/src/dev-app/virtual-scroll/virtual-scroll-demo.html +++ b/src/dev-app/virtual-scroll/virtual-scroll-demo.html @@ -2,39 +2,35 @@

Autosize

Uniform size

-
+
Item #{{i}} - ({{size}}px)

Increasing size

-
+
Item #{{i}} - ({{size}}px)

Decreasing size

-
+
Item #{{i}} - ({{size}}px)

Random size

-
+
Item #{{i}} - ({{size}}px)

Fixed size

- + Behavior Auto @@ -42,7 +38,7 @@

Fixed size

Smooth
- + Offset @@ -50,7 +46,7 @@

Fixed size

viewport2.scrollToOffset(scrollToOffset, scrollToBehavior)"> Go to offset - + Index @@ -62,10 +58,8 @@

Fixed size

Currently scrolled to item: {{scrolledIndex.get(viewport1) || 0}}

- -
+ +
Item #{{i}} - ({{size}}px)
@@ -74,11 +68,9 @@

Fixed size

Currently scrolled to item: {{scrolledIndex.get(viewport2) || 0}}

- -
+ +
Item #{{i}} - ({{size}}px)
@@ -87,8 +79,7 @@

Observable data

-
+
Item #{{i}} - ({{size}}px)
@@ -98,8 +89,7 @@

No trackBy

-
+
{{state.name}}
{{state.capital}}
@@ -110,8 +100,7 @@

trackBy index

-
+
{{state.name}}
{{state.capital}}
@@ -122,8 +111,7 @@

trackBy state name

-
+
{{state.name}}
{{state.capital}}
diff --git a/src/material-examples/autocomplete-auto-active-first-option/autocomplete-auto-active-first-option-example.html b/src/material-examples/autocomplete-auto-active-first-option/autocomplete-auto-active-first-option-example.html index 50dd982f68bb..aa487bf33271 100644 --- a/src/material-examples/autocomplete-auto-active-first-option/autocomplete-auto-active-first-option-example.html +++ b/src/material-examples/autocomplete-auto-active-first-option/autocomplete-auto-active-first-option-example.html @@ -1,5 +1,6 @@ - + + Pick one diff --git a/src/material-examples/autocomplete-display/autocomplete-display-example.html b/src/material-examples/autocomplete-display/autocomplete-display-example.html index 5daac573cf8c..ab332b47fb18 100644 --- a/src/material-examples/autocomplete-display/autocomplete-display-example.html +++ b/src/material-examples/autocomplete-display/autocomplete-display-example.html @@ -1,6 +1,8 @@ - - + + Assignee + {{option.name}} diff --git a/src/material-examples/autocomplete-filter/autocomplete-filter-example.html b/src/material-examples/autocomplete-filter/autocomplete-filter-example.html index 3a5aefad2ce2..2bd9d03d6ee9 100644 --- a/src/material-examples/autocomplete-filter/autocomplete-filter-example.html +++ b/src/material-examples/autocomplete-filter/autocomplete-filter-example.html @@ -1,5 +1,6 @@ - + + Pick one diff --git a/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.css b/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.css index 7432308753e6..ae291c92146b 100644 --- a/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.css +++ b/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.css @@ -1 +1,3 @@ -/** No CSS for this example */ +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.html b/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.html index 0d9a4bf88c03..ed114f5c4acc 100644 --- a/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.html +++ b/src/material-examples/autocomplete-optgroup/autocomplete-optgroup-example.html @@ -1,11 +1,12 @@ - + + States Group - - - - {{name}} - + + + + {{name}} + diff --git a/src/material-examples/autocomplete-overview/autocomplete-overview-example.html b/src/material-examples/autocomplete-overview/autocomplete-overview-example.html index 09ab07facdd3..fe2b93eb688c 100644 --- a/src/material-examples/autocomplete-overview/autocomplete-overview-example.html +++ b/src/material-examples/autocomplete-overview/autocomplete-overview-example.html @@ -1,5 +1,7 @@ - + + + State @@ -10,11 +12,21 @@ -
+ + State + + + + + {{state.name}} | + Population: {{state.population}} + + + - - Disable Input? - +
+ + Disable Input? + +
diff --git a/src/material-examples/autocomplete-simple/autocomplete-simple-example.html b/src/material-examples/autocomplete-simple/autocomplete-simple-example.html index cfd6bdf223e8..da1ae24a6683 100644 --- a/src/material-examples/autocomplete-simple/autocomplete-simple-example.html +++ b/src/material-examples/autocomplete-simple/autocomplete-simple-example.html @@ -1,5 +1,6 @@
- + + Pick one diff --git a/src/material-examples/datepicker-api/datepicker-api-example.html b/src/material-examples/datepicker-api/datepicker-api-example.html index 453fe29805a5..a50a9c8866d4 100644 --- a/src/material-examples/datepicker-api/datepicker-api-example.html +++ b/src/material-examples/datepicker-api/datepicker-api-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-color/datepicker-color-example.css b/src/material-examples/datepicker-color/datepicker-color-example.css index 7432308753e6..72e8f277570f 100644 --- a/src/material-examples/datepicker-color/datepicker-color-example.css +++ b/src/material-examples/datepicker-color/datepicker-color-example.css @@ -1 +1,4 @@ /** No CSS for this example */ +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/datepicker-color/datepicker-color-example.html b/src/material-examples/datepicker-color/datepicker-color-example.html index c7e033273c8b..d739506429fa 100644 --- a/src/material-examples/datepicker-color/datepicker-color-example.html +++ b/src/material-examples/datepicker-color/datepicker-color-example.html @@ -1,13 +1,16 @@ - - Inherited calendar color - - - - - - - Custom calendar color - - - - +
+ + Inherited calendar color + + + + +
+
+ + Custom calendar color + + + + +
diff --git a/src/material-examples/datepicker-custom-header/datepicker-custom-header-example.html b/src/material-examples/datepicker-custom-header/datepicker-custom-header-example.html index 1ab9bb32fe8d..9205bfc80a8f 100644 --- a/src/material-examples/datepicker-custom-header/datepicker-custom-header-example.html +++ b/src/material-examples/datepicker-custom-header/datepicker-custom-header-example.html @@ -1,4 +1,4 @@ - + Custom calendar header diff --git a/src/material-examples/datepicker-custom-icon/datepicker-custom-icon-example.html b/src/material-examples/datepicker-custom-icon/datepicker-custom-icon-example.html index a1b4e5d50744..990792be7bcc 100644 --- a/src/material-examples/datepicker-custom-icon/datepicker-custom-icon-example.html +++ b/src/material-examples/datepicker-custom-icon/datepicker-custom-icon-example.html @@ -1,4 +1,5 @@ - + + Choose a date keyboard_arrow_down diff --git a/src/material-examples/datepicker-date-class/datepicker-date-class-example.html b/src/material-examples/datepicker-date-class/datepicker-date-class-example.html index fbba9f6a1693..09ec4a6d3cbd 100644 --- a/src/material-examples/datepicker-date-class/datepicker-date-class-example.html +++ b/src/material-examples/datepicker-date-class/datepicker-date-class-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-disabled/datepicker-disabled-example.css b/src/material-examples/datepicker-disabled/datepicker-disabled-example.css index 7432308753e6..72e8f277570f 100644 --- a/src/material-examples/datepicker-disabled/datepicker-disabled-example.css +++ b/src/material-examples/datepicker-disabled/datepicker-disabled-example.css @@ -1 +1,4 @@ /** No CSS for this example */ +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/datepicker-disabled/datepicker-disabled-example.html b/src/material-examples/datepicker-disabled/datepicker-disabled-example.html index ad3b0755167b..843edefbe196 100644 --- a/src/material-examples/datepicker-disabled/datepicker-disabled-example.html +++ b/src/material-examples/datepicker-disabled/datepicker-disabled-example.html @@ -1,23 +1,27 @@ -

- +

+ + + Completely disabled -

+
-

- +

+ + Popup disabled -

+
-

- +

+ + Input disabled -

+
diff --git a/src/material-examples/datepicker-events/datepicker-events-example.html b/src/material-examples/datepicker-events/datepicker-events-example.html index 1935c718218c..50473b77c8fb 100644 --- a/src/material-examples/datepicker-events/datepicker-events-example.html +++ b/src/material-examples/datepicker-events/datepicker-events-example.html @@ -1,6 +1,7 @@ - - + + Input & change events + diff --git a/src/material-examples/datepicker-filter/datepicker-filter-example.html b/src/material-examples/datepicker-filter/datepicker-filter-example.html index 6a44973b048e..6d2c8947c130 100644 --- a/src/material-examples/datepicker-filter/datepicker-filter-example.html +++ b/src/material-examples/datepicker-filter/datepicker-filter-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-formats/datepicker-formats-example.html b/src/material-examples/datepicker-formats/datepicker-formats-example.html index 4868f2dc21ed..55e1b793d0e5 100644 --- a/src/material-examples/datepicker-formats/datepicker-formats-example.html +++ b/src/material-examples/datepicker-formats/datepicker-formats-example.html @@ -1,4 +1,5 @@ - + + Verbose datepicker diff --git a/src/material-examples/datepicker-locale/datepicker-locale-example.html b/src/material-examples/datepicker-locale/datepicker-locale-example.html index f92432a48237..e61afc1dda01 100644 --- a/src/material-examples/datepicker-locale/datepicker-locale-example.html +++ b/src/material-examples/datepicker-locale/datepicker-locale-example.html @@ -1,4 +1,5 @@ - + + Different locale diff --git a/src/material-examples/datepicker-min-max/datepicker-min-max-example.html b/src/material-examples/datepicker-min-max/datepicker-min-max-example.html index 4ee60cdfdd86..f630944cb724 100644 --- a/src/material-examples/datepicker-min-max/datepicker-min-max-example.html +++ b/src/material-examples/datepicker-min-max/datepicker-min-max-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-moment/datepicker-moment-example.html b/src/material-examples/datepicker-moment/datepicker-moment-example.html index a6ae46cc7d2d..fefe6b568052 100644 --- a/src/material-examples/datepicker-moment/datepicker-moment-example.html +++ b/src/material-examples/datepicker-moment/datepicker-moment-example.html @@ -1,4 +1,5 @@ - + + Moment.js datepicker diff --git a/src/material-examples/datepicker-overview/datepicker-overview-example.css b/src/material-examples/datepicker-overview/datepicker-overview-example.css index 7432308753e6..72e8f277570f 100644 --- a/src/material-examples/datepicker-overview/datepicker-overview-example.css +++ b/src/material-examples/datepicker-overview/datepicker-overview-example.css @@ -1 +1,4 @@ /** No CSS for this example */ +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/datepicker-overview/datepicker-overview-example.html b/src/material-examples/datepicker-overview/datepicker-overview-example.html index f82880547b24..0007b228f17a 100644 --- a/src/material-examples/datepicker-overview/datepicker-overview-example.html +++ b/src/material-examples/datepicker-overview/datepicker-overview-example.html @@ -1,5 +1,16 @@ - - - - - +
+ + Choose a date + + + + +
+
+ + Choose a date + + + + +
diff --git a/src/material-examples/datepicker-start-view/datepicker-start-view-example.html b/src/material-examples/datepicker-start-view/datepicker-start-view-example.html index e10afcab6d26..cce80dd5b5bd 100644 --- a/src/material-examples/datepicker-start-view/datepicker-start-view-example.html +++ b/src/material-examples/datepicker-start-view/datepicker-start-view-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-touch/datepicker-touch-example.html b/src/material-examples/datepicker-touch/datepicker-touch-example.html index 70a7e61e264b..5f1dde00c58c 100644 --- a/src/material-examples/datepicker-touch/datepicker-touch-example.html +++ b/src/material-examples/datepicker-touch/datepicker-touch-example.html @@ -1,4 +1,5 @@ - + + Choose a date diff --git a/src/material-examples/datepicker-value/datepicker-value-example.css b/src/material-examples/datepicker-value/datepicker-value-example.css index 7432308753e6..ae291c92146b 100644 --- a/src/material-examples/datepicker-value/datepicker-value-example.css +++ b/src/material-examples/datepicker-value/datepicker-value-example.css @@ -1 +1,3 @@ -/** No CSS for this example */ +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/datepicker-value/datepicker-value-example.html b/src/material-examples/datepicker-value/datepicker-value-example.html index fbd5f591d1f1..a4b5288bd035 100644 --- a/src/material-examples/datepicker-value/datepicker-value-example.html +++ b/src/material-examples/datepicker-value/datepicker-value-example.html @@ -1,18 +1,26 @@ - - - - - +
+ + Angular forms + + + + +
- - - - - +
+ + Angular forms (w/ deserialization) + + + + +
- - - - - +
+ + Value binding + + + + +
diff --git a/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.html b/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.html index 4e972fce9dd6..b86649b36224 100644 --- a/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.html +++ b/src/material-examples/datepicker-views-selection/datepicker-views-selection-example.html @@ -1,10 +1,8 @@ - + + Month and Year - + diff --git a/src/material-examples/form-field-custom-control/example-tel-input-example.css b/src/material-examples/form-field-custom-control/example-tel-input-example.css index 3c1dbad8f58c..74ccbaeb9250 100644 --- a/src/material-examples/form-field-custom-control/example-tel-input-example.css +++ b/src/material-examples/form-field-custom-control/example-tel-input-example.css @@ -19,3 +19,7 @@ :host.example-floating .example-tel-input-spacer { opacity: 1; } + +.example-full-width { + width: 100%; +} diff --git a/src/material-examples/form-field-custom-control/form-field-custom-control-example.html b/src/material-examples/form-field-custom-control/form-field-custom-control-example.html index 26df09b44d4e..54da829a3b5c 100644 --- a/src/material-examples/form-field-custom-control/form-field-custom-control-example.html +++ b/src/material-examples/form-field-custom-control/form-field-custom-control-example.html @@ -1,5 +1,18 @@ - - - phone - Include area code - +
+ + Phone Number + + phone + Include area code + + +
+ +
+ + Phone Number + + phone + Include area code + +
diff --git a/src/material-examples/form-field-error/form-field-error-example.html b/src/material-examples/form-field-error/form-field-error-example.html index 4b06c9b07b86..30d2edf65c45 100644 --- a/src/material-examples/form-field-error/form-field-error-example.html +++ b/src/material-examples/form-field-error/form-field-error-example.html @@ -1,5 +1,6 @@
- + + Email {{getErrorMessage()}} diff --git a/src/material-examples/form-field-hint/form-field-hint-example.html b/src/material-examples/form-field-hint/form-field-hint-example.html index a402d988c0fa..20bf4bf3c094 100644 --- a/src/material-examples/form-field-hint/form-field-hint-example.html +++ b/src/material-examples/form-field-hint/form-field-hint-example.html @@ -1,11 +1,13 @@
- + + Input {{input.value?.length || 0}}/10 - + Select + Option Here's the dropdown arrow ^ diff --git a/src/material-examples/form-field-label/form-field-label-example.html b/src/material-examples/form-field-label/form-field-label-example.html index 4d0b41243456..4cfabed0c1cc 100644 --- a/src/material-examples/form-field-label/form-field-label-example.html +++ b/src/material-examples/form-field-label/form-field-label-example.html @@ -9,26 +9,34 @@ Never
+
+ + + Outline + Fill + +
- - + + Label only + - + Both a label and a placeholder - + -- None -- Option - favorite Fancy label + + favorite Fancy label +
diff --git a/src/material-examples/form-field-label/form-field-label-example.ts b/src/material-examples/form-field-label/form-field-label-example.ts index ee03367d79bb..7066ea172df3 100644 --- a/src/material-examples/form-field-label/form-field-label-example.ts +++ b/src/material-examples/form-field-label/form-field-label-example.ts @@ -14,6 +14,7 @@ export class FormFieldLabelExample { this.options = fb.group({ hideRequired: false, floatLabel: 'auto', + appearance: 'outline', }); } } diff --git a/src/material-examples/form-field-overview/form-field-overview-example.html b/src/material-examples/form-field-overview/form-field-overview-example.html index 6427e7df313b..d009b8409618 100644 --- a/src/material-examples/form-field-overview/form-field-overview-example.html +++ b/src/material-examples/form-field-overview/form-field-overview-example.html @@ -1,13 +1,33 @@
- + + Input with outline appearance - + + Input with fill appearance + + + + + Textarea with outline appearance + + + + + Textarea with fill appearance - + + Select with outline appearance + + Option + + + + + Select with fill appearance Option diff --git a/src/material-examples/form-field-prefix-suffix/form-field-prefix-suffix-example.html b/src/material-examples/form-field-prefix-suffix/form-field-prefix-suffix-example.html index bc4ef1087ea4..4b0bd36ac6b5 100644 --- a/src/material-examples/form-field-prefix-suffix/form-field-prefix-suffix-example.html +++ b/src/material-examples/form-field-prefix-suffix/form-field-prefix-suffix-example.html @@ -1,10 +1,12 @@
- + + Password {{hide ? 'visibility_off' : 'visibility'}} - + + Amount .00 diff --git a/src/material-examples/form-field-theming/form-field-theming-example.html b/src/material-examples/form-field-theming/form-field-theming-example.html index 5c614184e1a1..9bf2899ef0ce 100644 --- a/src/material-examples/form-field-theming/form-field-theming-example.html +++ b/src/material-examples/form-field-theming/form-field-theming-example.html @@ -1,5 +1,6 @@
- + + Color Primary Accent @@ -7,7 +8,8 @@ - + + Font size (px) Min size: 10px diff --git a/src/material-examples/input-clearable/input-clearable-example.html b/src/material-examples/input-clearable/input-clearable-example.html index 4a135e1d60ff..028c38817712 100644 --- a/src/material-examples/input-clearable/input-clearable-example.html +++ b/src/material-examples/input-clearable/input-clearable-example.html @@ -1,4 +1,5 @@ - + + Clearable input