diff --git a/src/app/main/content/components/angular-material/example-components.ts b/src/app/main/content/components/angular-material/example-components.ts index a8065211..10a136dc 100644 --- a/src/app/main/content/components/angular-material/example-components.ts +++ b/src/app/main/content/components/angular-material/example-components.ts @@ -26,6 +26,13 @@ import { DialogElementsExampleDialog, DialogElementsExample } from '../../../../ import { DialogOverviewExampleDialog, DialogOverviewExample } from '../../../../../assets/angular-material-examples/dialog-overview/dialog-overview-example'; import { ExpansionOverviewExample } from '../../../../../assets/angular-material-examples/expansion-overview/expansion-overview-example'; import { ExpansionStepsExample } from '../../../../../assets/angular-material-examples/expansion-steps/expansion-steps-example'; +import { MyTelInput, FormFieldCustomControlExample } from '../../../../../assets/angular-material-examples/form-field-custom-control/form-field-custom-control-example'; +import { FormFieldErrorExample } from '../../../../../assets/angular-material-examples/form-field-error/form-field-error-example'; +import { FormFieldHintExample } from '../../../../../assets/angular-material-examples/form-field-hint/form-field-hint-example'; +import { FormFieldOverviewExample } from '../../../../../assets/angular-material-examples/form-field-overview/form-field-overview-example'; +import { FormFieldPlaceholderExample } from '../../../../../assets/angular-material-examples/form-field-placeholder/form-field-placeholder-example'; +import { FormFieldPrefixSuffixExample } from '../../../../../assets/angular-material-examples/form-field-prefix-suffix/form-field-prefix-suffix-example'; +import { FormFieldThemingExample } from '../../../../../assets/angular-material-examples/form-field-theming/form-field-theming-example'; import { GridListDynamicExample } from '../../../../../assets/angular-material-examples/grid-list-dynamic/grid-list-dynamic-example'; import { GridListOverviewExample } from '../../../../../assets/angular-material-examples/grid-list-overview/grid-list-overview-example'; import { IconOverviewExample } from '../../../../../assets/angular-material-examples/icon-overview/icon-overview-example'; @@ -95,6 +102,15 @@ export const COMPONENT_MAP = { 'datepicker-touch', 'datepicker-api' ], + 'form-field' : [ + 'form-field-overview', + 'form-field-placeholder', + 'form-field-hint', + 'form-field-error', + 'form-field-prefix-suffix', + 'form-field-theming', + 'form-field-custom-control' + ], 'input' : [ 'input-overview', 'input-errors', @@ -167,7 +183,8 @@ export const COMPONENT_MAP = { ], 'chips' : [ 'chips-overview', - 'chips-input' + 'chips-input', + 'chips-stacked' ], 'icon' : [ 'icon-overview', @@ -378,6 +395,48 @@ export const EXAMPLE_COMPONENTS = { additionalFiles: null, selectorName : null }, + 'form-field-custom-control' : { + title : 'Form field with custom telephone number input control. ', + component : FormFieldCustomControlExample, + additionalFiles: ['form-field-custom-control-example.html'], + selectorName : 'FormFieldCustomControlExample, MyTelInput' + }, + 'form-field-error' : { + title : 'Form field with error messages ', + component : FormFieldErrorExample, + additionalFiles: null, + selectorName : null + }, + 'form-field-hint' : { + title : 'Form field with hints ', + component : FormFieldHintExample, + additionalFiles: null, + selectorName : null + }, + 'form-field-overview' : { + title : 'Simple form field ', + component : FormFieldOverviewExample, + additionalFiles: null, + selectorName : null + }, + 'form-field-placeholder' : { + title : 'Form field with placeholder ', + component : FormFieldPlaceholderExample, + additionalFiles: null, + selectorName : null + }, + 'form-field-prefix-suffix' : { + title : 'Form field with prefix & suffix ', + component : FormFieldPrefixSuffixExample, + additionalFiles: null, + selectorName : null + }, + 'form-field-theming' : { + title : 'Form field theming ', + component : FormFieldThemingExample, + additionalFiles: null, + selectorName : null + }, 'grid-list-dynamic' : { title : 'Dynamic grid-list', component : GridListDynamicExample, @@ -707,6 +766,13 @@ export const EXAMPLE_LIST = [ DialogOverviewExample, ExpansionOverviewExample, ExpansionStepsExample, + MyTelInput, FormFieldCustomControlExample, + FormFieldErrorExample, + FormFieldHintExample, + FormFieldOverviewExample, + FormFieldPlaceholderExample, + FormFieldPrefixSuffixExample, + FormFieldThemingExample, GridListDynamicExample, GridListOverviewExample, IconOverviewExample, diff --git a/src/app/navigation.model.ts b/src/app/navigation.model.ts index 43ca80fc..044f2d59 100644 --- a/src/app/navigation.model.ts +++ b/src/app/navigation.model.ts @@ -377,6 +377,11 @@ export class NavigationModel 'type' : 'item', 'url' : '/components/angular-material/datepicker' }, + { + 'title': 'Form field', + 'type' : 'item', + 'url' : '/components/angular-material/form-field' + }, { 'title': 'Input', 'type' : 'item', diff --git a/src/assets/angular-material-examples/chips-input/chips-input-example.html b/src/assets/angular-material-examples/chips-input/chips-input-example.html index dd8eef89..d29d8eac 100644 --- a/src/assets/angular-material-examples/chips-input/chips-input-example.html +++ b/src/assets/angular-material-examples/chips-input/chips-input-example.html @@ -1,14 +1,14 @@ - + {{fruit.name}} cancel + - diff --git a/src/assets/angular-material-examples/chips-stacked/chips-stacked-example.html b/src/assets/angular-material-examples/chips-stacked/chips-stacked-example.html index e662f6cd..29de296b 100644 --- a/src/assets/angular-material-examples/chips-stacked/chips-stacked-example.html +++ b/src/assets/angular-material-examples/chips-stacked/chips-stacked-example.html @@ -1,7 +1,5 @@ - - {{chipColor.name}} + + {{chip.name}} diff --git a/src/assets/angular-material-examples/dialog-content/dialog-content-example-dialog.html b/src/assets/angular-material-examples/dialog-content/dialog-content-example-dialog.html index 927fdfde..2f6cf391 100644 --- a/src/assets/angular-material-examples/dialog-content/dialog-content-example-dialog.html +++ b/src/assets/angular-material-examples/dialog-content/dialog-content-example-dialog.html @@ -1,4 +1,4 @@ -

Install Angular

+

Install Angular

DEVELOP ACROSS ALL PLATFORMS

Learn one way to build applications with Angular and reuse your code and abilities to build @@ -20,6 +20,6 @@ that supports Google's largest applications.

- - + + diff --git a/src/assets/angular-material-examples/dialog-data/dialog-data-example-dialog.html b/src/assets/angular-material-examples/dialog-data/dialog-data-example-dialog.html index cc651524..d14317a8 100644 --- a/src/assets/angular-material-examples/dialog-data/dialog-data-example-dialog.html +++ b/src/assets/angular-material-examples/dialog-data/dialog-data-example-dialog.html @@ -1,4 +1,4 @@ -

Favorite Animal

+

Favorite Animal

My favorite animal is: