5.1.1 (2020-03-03)
Bug Fixes
5.1.0 (2020-02-26)
Bug Fixes
5.0.5 (2020-02-20)
Bug Fixes
5.0.4 (2020-02-19)
Bug Fixes
5.0.3 (2020-02-18)
Bug Fixes
Features
- icon: Allow viewBox to be configured when registering icons (#2089) (db0fe67)
5.0.2 (2020-02-13)
Bug Fixes
- textfield: Outlined error due to init() race condition (#2077) (555b2f0), closes #2075
5.0.1 (2020-02-12)
Bug Fixes
Features
5.0.0 (2020-02-08)
Bug fixes:
- build: Fix build failure when using node versions 9+
- ripple: Fix
mdcRipple
directive not working
- menu-surface: Add Ivy compatible directive decorator
- select: Should not emit
touch
event until menu closes
- select: Should keep focus after selection
- select: Should re-open if closed by
escape
key
- select: Should handle keyboard events
- menu: Should handle keyboard events
- chips: Should update value if choice chip deselected
- Upstream MDC v4 bug fixes
- Upstream MDC v5 bug fixes
Features:
- Upgrade to Material Components Web v5.0.0-canary branch
- Migrate to MDC Sass module system
- Upgrade to @angular 9.0.0
- Upgrade to TypeScript 3.7
- chips: Add attribute
role="grid"
to mdc-chip-set
- chips: Add attribute
role
to mdc-chip-text
- chips: Add attribute
tabindex
to mdc-chip-text
- chips: Add attribute
role="row"
to mdc-chip
- chips: Add
interaction
event to chip set
- chips: Add
interactionEvent
event to chip
- chips: Add
removalEvent
event to chip
- chips: Add
navigationEvent
event to chip
- chips: Add
trailingIconInteraction
event to chip
- text-field: Add new leading and trailing classes to
mdcTextFieldIcon
- ripple: Complete rewrite of
mdcRipple
directive
- text-field: Add
name
property to support name attribute on input element
- text-field: Add
focus
event emitter
- select: Re-implement MDC select component
- select: Support a11y attribute
aria-labelledby
- select: Support a11y attribute
aria-required
- select: Add
focus
event emitter
- select: Add
focus()
method
- list: Add
data-value
attribute for use in select component
- linear-progress: Adds support for
aria-label
, aria-valuemin
and aria-valuemax
- progress-indicator: Add MDC progress indicator interface
- Upstream MDC v4 new features
- Upstream MDC v5 new features
Refactor:
- linear-progress: Sync progress with foundation + refactoring
- base: Remove unneeded
foundation.ts
class
- text-field: Improved MDC foundation adapter implementation
- text-field: Use Typescript 3.7 optional chaining and null coalescing to reduce code
- Renamed each package
foo-module.ts
to module.ts
Documentation:
- ripple: New
mdcRipple
examples
- checkbox: Fixed API description for
change
event
- chips: Custom chip examples w/trailing actions should not be removable
- chips: Add example for
NgModel
and FormControl
default value
- dialog: Fix missing access modifier in usage guide
- select: Add example select with no label
- chips: Add
focus()
method to API guide
- Load Sass examples from url
- Refactor and improve performance of template page component
- Switch
highlight.js
theme to scss/github
- Density mixin examples
- Component pages updated to show MDC Sass module system
- Usage guide for MDC Sass module system
BREAKING CHANGES:
- select: MDC dropped support for native select options
- select: Removed
autosize
property
- select: Removed
reset()
method
- select: Removed
getValue()
method
- button: Removed
dense
property, use button's density
mixin instead
- button: Removed
primary
property, use button's filled-accessible
mixin instead
- button: Removed
secondary
property, use button's filled-accessible
mixin instead
- chips: Removed
primary
property, use chip's fill-color-accessible
mixin instead
- chips: Removed
secondary
property, use chip's fill-color-accessible
mixin instead
- chips: Removed
removed
event, use removalEvent
instead
- linear-progress: Removed
secondary
property, use linear-progress's bar-color
mixin instead
- progress-indicator: Removed
open: boolean
property, please use open()
and close()
methods
- text-field: Removed
dense
property, use text-field's density
mixin instead
- Sass: Migrated to MDC's Sass module system, please reference the getting started guide
3.2.1 (2019-09-13)
Bug Fixes
- icon: Should copy attributes from symbol nodes (#2002) (2ef0639)
- menu: Should deselect selection group items (#1999) (820f389), closes #1997
- ripple: SSR document check for getBoundingClientRect (#2000) (f3089e9)
Features
3.2.0 (2019-09-09)
Bug Fixes
Features
Ripple
The MdcRipple
service was completely rewritten to resolve some outstanding issues.
Travis-CI Improvements
A huge thanks goes out to @TryHardDood for improving the continuous integration with Travis-CI. Much appreciated!
- Run tests, build library and documentation automatically when pushed to master.
- Deploy documentation to gh-pages branch when pushed to master.
- Run just the tests when a pull requests is created.
3.1.2 (2019-08-30)
Bug Fixes
Features
BREAKING CHANGES
- select: Update
mdc-select
helper text to use mdc-select-helper-text
or mdcSelectHelperText
.
3.1.1 (2019-08-24)
Bug Fixes
Features
- Add MDC Data Table (#1954) (279871e), closes #1539
- Upgrade to material components web v3.1.1
BREAKING CHANGES
- chips: Update
mdc-chip-leading-icon-margin
and mdc-chip-trailing-icon-margin
mixins signatures to take only left and right margin values.
2.0.1 (2019-06-26)
Bug Fixes
2.0.0 (2019-06-23)
Bug Fixes
- Add material-components-web to dependencies (#1924) (f12c4e2)
- icon: Handle unescaped characters in names (#1926)
Features
- dialog: Allow dialog return to be typed (#1907) (dd5cd38)
- Upgrade to material-components-web 2.3.1 (#1918)
- Upgrade to Angular 8.0.2 (#1915)
1.0.5 (2019-06-08)
Bug Fixes
Features
1.0.3 (2019-04-20)
Bug Fixes
Documentation
- menu: Example for opening menu from card action
1.0.1 (2019-04-13)
Features
1.0.0 (2019-04-11)
Bug Fixes
- demos: Scroll behavior for standard top-app-bar (#1827) (eb9e8f5), closes #1826
- radio: Should set default checked with multiple groups (#1857) (fa89c0e), closes #1834
- select: Enhanced variant exception using FormControl (#1856) (3a9f95c), closes #1852
- text-field: Move init to AfterContentInit for transcluded content (#1830) (c18afcd), closes #1828
Features
material-components-web
improvements
0.44.0 (2019-02-22)
Bug Fixes
Features
Build
- Include .map sourcemap files in npm release
- Enable all strict type checking
BREAKING CHANGES
- As per #1154. Delete deprecated Grid List component.
0.43.7 (2019-01-29)
Bug Fixes
0.43.6 (2019-01-27)
Bug Fixes
0.43.5 (2019-01-24)
Bug Fixes
0.43.4 (2019-01-21)
Bug Fixes
Features
0.43.3 (2019-01-16)
Bug Fixes
Features
0.43.2 (2019-01-14)
Bug Fixes
Features
MdcSwitch
- Adds
toggle()
- Adds
@Input() required: boolean
- Adds
aria-label
- Adds
aria-labelledby
- Fixes issues using with forms
0.43.1 (2019-01-12)
Bug Fixes
Features
New for MdcSelect
New for MdcList
- Adds
@Input() disableRipple: boolean
- Adds
setSelectedValue(value: any): void
- Adds
getSelectedItem(): MdcListItem | undefined
- Adds
getListItemByValue(value: any): MdcListItem | undefined
- Adds
getListItemByIndex(index: number): MdcListItem | undefined
- Adds
getListItemIndexByValue(value: any): number
- Adds
reset(): void
0.43.0 (2019-01-10)
Bug Fixes
Features
BREAKING CHANGES
- snackbar: Snackbar API changed to match the latest design guidelines. See the Snackbar documentation for more information.
- text-field: Please update your event code accordingly.
(change
) - Emitted when an alteration to the element's value is committed.
(input)
- Emitted synchronously when the value has been altered.
0.42.6 (2019-01-08)
Bug Fixes
0.42.5 (2019-01-07)
Bug Fixes
- slider: Min, Max and step value fail to initialize (#1653) (01766cd)
- text-field: Should display and float [value] (#1652) (839c26b), closes #1651
Features
0.42.4 (2019-01-06)
Bug Fixes
Features
BREAKING CHANGES
- typography: Deprecated selectors removed. Please update your code accordingly.
0.42.3 (2019-01-04)
Bug Fixes
- demos: Close drawer when route change for small screen devices (#1640) (1d52c8e)
- select: Should update value asynchronously (#1642) (bf8f1fa), closes #1638
- select: Update validity style on reset (#1636) (aa22f63)
- tab-bar: focusOnActivate not respecting false (#1645) (6c7b143), closes #1644
0.42.2 (2018-12-30)
Bug Fixes
0.42.1 (2018-12-19)
Bug Fixes
- demos: Drawer navigation on keypress (#1618) (8d161be)
- form-field: Remove experimental gap mixin (#1601) (4e69e55)
- helper-text: Support deprecated exports and selectors (#1625) (09daf9f)
- icon: Support query params when prefixing (#1597) (197cfa4)
- tab: Deduplicate synthetic ripple event on touch devices (#1615) (1fcb59f)
- text-field: Prevent synthetic event on touch devices (#1613) (b158a7c)
- Use 'ngx' prefix naming for extended Sass (#1598) (7e61941)
Features
BREAKING CHANGES
mdcTextFieldHelperText
and mdcSelectHelperText
are deprecated and are to be removed in the near future. Please update your code to use mdcHelperText
or mdc-helper-text
selectors.
0.42.0 (2018-12-07)
Bug Fixes
Features
BREAKING CHANGES
- select: Renamed the property
floatingLabel
to floatLabel
. Please update your code to
use floatLabel
.
0.41.4 (2018-11-27)
Bug Fixes
0.41.3 (2018-11-22)
Bug Fixes
Features
0.41.2 (2018-11-19)
Bug Fixes
Features
0.41.1 (2018-11-05)
Bug Fixes
Features
0.41.0 (2018-11-02)
Bug Fixes
- chips: Remove deselect from chip-set (2167c4b), closes #1499
- radio: Remove native control adapter methods (#1498) (8bec0d9), closes material-components/material-components-web#3785
- text-field: Check value type during change event (#1496) (cb72bca), closes #773
- text-field: Fix problems with validation (#1506) (4dbda25), closes #1504
- text-field: textarea should handle click + keydown (#1507) (f4ac7c8)
- Set focusable="false" for svg elements (#1511) (2efd50f)
- chip: Set default value of removable to be true (#1489) (89d3182)
- drawer: Add support for SSR (#1483) (7070730), closes #1446
- drawer: Support server side rendering (#1471) (bcf085c), closes #1470
- menu-surface: Coordinates and destroy hoisted menu (#1453) (cb0fc3a)
- ripple: Activation should not fire twice (#1478) (f523b99), closes #1466
- select: Add support for SSR (#1481) (7086660)
- slider: Add support for SSR (#1482) (df3a397), closes #1446
- slider: Support server side rendering (#1472) (39b1f5d)
- tab-bar: Support for SSR (#1485) (5301962)
- tab-scroller: Support server side rendering (#1475) (79a9aae), closes #1474
- tab-scroller: Support SSR (#1484) (da7c605)
- text-field: Check for SSR inside getNativeInput() (#1445) (6c1d0e8), closes #1441
- text-field: Replace MutationObserver + fix validations (#1494) (dafda96), closes #1486 #1493
Features
BREAKING CHANGES
- chips: Removes deselect() from chip-set. Update your code to use select() for toggling.
- button: Removes the deprecated icon property from button, as it's no longer needed.
0.40.2 (2018-10-13)
Bug Fixes
Features
- text-field: Speed and refactoring of foundation classes (#1431) (f8677f1)
0.40.1 (2018-10-02)
Bug Fixes
- portal: Define attached host for portals when attach to hosts (#1391) (3a52dc1)
- radio: Should not show ripple if disabled (#1394) (7b5fc3a)
- snackbar: Should check if action button exists (#1390) (31bac8e)
Features
0.40.0 (2018-09-30)
Bug Fixes
- card: Remove erroneous directive config line (b69198d)
- checkbox: Prevent bubbling for second event (#1385) (870d360)
- chips: Use rxjs for event listening (#1358) (cbd01b8)
- drawer: Fix focus-trap import and use factory (#1370) (6007f89), closes #1369
- drawer: Run transitionend listener outside angular with filter (#1349) (79eb2fb)
- select: Set transform origin for line ripple (#1386) (b1c5242)
- tab-scroller: Should run outside angular, and filter on transitionend (#1346) (91c6956)
- top-app-bar: Should destroy ripple (#1355) (aff2c87)
Features
- card: Improvements (#1352) (aad3d5b)
- checkbox: Remove foundation getters/setters + improvements (#1368) (4e0e833)
- dialog: Improved MDC Dialog (#1374) (d2a28b3), closes #1341 #1272
- drawer: Replace open() and close() with open: boolean (#1340) (0c81dd4), closes #1307
- fab: Position values renamed to bottomLeft and bottomRight (#1350) (fdb90ec)
- form-field: Remove unneeded setInput method (#1383) (a7ec92b)
- linear-progress: Improvements (#1356) (1ccc860)
- list: Toggle radio checkbox (#1379) (67848b1)
- menu: Add absolutePosition property (#1336) (8b104e0), closes #1333
- menu: Add additional selector for menu anchor (#1339) (e263bd2)
- menu: Add anchorMargin property (#1337) (217c3f5), closes #1334
- menu: Replace open() and close() with open: boolean (#1338) (7267143), closes #1335
- ripple: Improved Ripple (#1362) (2230ff2)
- select: Remove the non-box variant of select (#1378) (5214c33), closes #1048
- snackbar: Use @angular/cdk portals package (#1371) (25dc369), closes #1173
- tab-bar: Always honor the activeTabIndex property (#1348) (5225436), closes #1342
- tab-bar: Support for manual and automatic activation behavior (#1347) (ff6dd64), closes #1344
- text-field: Add support for leading/trailing icons at the same time (#1376) (2512f03), closes #1351
- text-field: New mdcTextFieldIcon + improvements (#1320) (3299486), closes #1322 #1325
- JeetChaudhari adds SSR support (#1381) (090d197), closes #1268
- Upgrade to material-components-web v0.40.0 (#1367) (5ec1ec4), closes #1366
BREAKING CHANGES
- dialog: MDCDialog has been reimplemented to support more use cases, so APIs and the DOM structure have changed. See the updated documentation for more information.
- MDC Shape package has been removed and replaced with mixins implementing the Shape system. This system implements only rounded corners to provide a straightforward CSS-only solution. Replaced all *-corner-radius component mixins with *-shape-radius mixins to integrate with Shape system.
- linear-progress: Please reference updated documentation for implementation details.
- card:
MdcRipple
is now automatically injected into mdc-card-primary-action
, so just remove previous mdc-ripple
directives applied manually.
- card: Removed
icons: boolean
from mdc-card-actions
. Please update your code to use mdc-card-action-icons
.
- card: Removed
buttons: boolean
from mdc-card-actions
. Please update your code to use mdc-card-action-buttons
.
- fab: Position values renamed to
bottomLeft
and bottomRight
.
- drawer: Removed
open()
and close()
methods. Please update your code to use open: boolean
.
- drawer: Removed
isOpen()
method. Please use open: boolean
- text-field: Use directive
mdcTextFieldIcon
on an mdc-icon
inside an mdc-text-field
.
- text-field: Renamed
nativeValidation
to useNativeValidation
- text-field: Removed
getValue()
method, please update your code to use value
.
- text-field: Removed
setValid()
method, please update your code to use valid
.
- text-field: Removed
focused
property, this is now handled by the foundation.
- text-field: Removed
setHelperTextContent()
property.
- menu: Removed
open()
and close()
methods. Please update your code to use open: boolean
.
0.39.3 (2018-09-16)
Bug Fixes
Features
0.39.1 (2018-09-08)
Bug Fixes
Features
0.39.0 (2018-09-07)
Bug Fixes
- list: Should correctly listen and handle async changes
- checkbox: Should listen on input element for change (#1233) (7cb5ec1)
- demos: Cleanup and fixes for outlined change (#1257) (9fba0ff)
- select: Default autosize to false and coerce string value (#1244) (99414ad), closes #1241
- select: Only add line ripple listeners when line ripple is present (#1274) (8164c53)
- select: Should display outlined with coerced value (#1238) (2da3857), closes #1237
- snackbar: Doesn't close while other element is focused (#1242) (9f2f912)
- tab: Fixed width indicator should be same width as content (#1285) (4ad5780), closes #1236
- tab-bar: Adds new MDC adapter methods (#1270) (c3ea7fe)
- Use directive configurations + clean-up (#1295) (ec0393e)
Features
- checkbox: Move component specific logic out of foundation (#1273) (fa46240)
- chips: Add select, deselect and getSelectedChipIds methods (#1254) (db60366), closes #1252
- chips: Pass chip ids instead of foundations in events (#1253) (79471a8)
- drawer: Add optional selectors + refactoring (#1292) (6dd62d0)
- drawer: Improved navigation drawer (#1279) (0400ea8), closes #1255
- fab: Add icon property (#1294) (a638359)
- icon-button: Add
icon
prop for non-toggling icon (#1289) (4c14d31)
- icon-button: Improved MDC Icon Button (#1265) (f58160f), closes #1245
- list: Add wrapFocus property (#1269) (2ccdae4)
- switch: Move component specific logic out of foundation (#1246) (757f696)
- tab: Add focus() method (#1271) (ebe3939)
- tab-indicator: Remove transitionend event handling (#1243) (5c49274)
- Implement platform detection service (#1277) (a72f550)
- Move [materialIcons] selector to MdcIconModule (#1281) (23b6285)
- Implement MDC Menu Surface, improved Menu (#1280) (4f3f0cc), closes #1255
- text-field: Add
nativeValidation
to enable/disable custom validity (#1258) (f7c4f49), closes #1256
- text-field: Remove
box
property and make box variant new default (#1247) (e2edbe3), closes #1049
- text-field: Rename property
outline
to outlined
(#1249) (c181cee)
- top-app-bar: Implement MDC Top App Bar (#1261) (1a3f979), closes #1260
- list: Add
singleSelection
property
- list: Add
disabled
property for list item
- list: Add
useActivatedClass
property
- list: Add
useSelectedClass
property
- list: Add
verticalOrientation
property
- Update material-components-web to v0.39.1 (#1275) (b88dad6)
BREAKING CHANGES
- drawer: Drawer has new DOM structure, mixins and properties. Please reference documentation for implementation details.
- icon-button: Icon Button has new DOM structure, mixins and properties. Please reference documentation for implementation details.
- menu: Menu has new DOM structure, mixins and properties. Please reference documentation for implementation details.
- top-app-bar: Insert
top
prefix for all existing selectors (e.g.: mdc-app-bar
to mdc-top-app-bar
)
- text-field: Removes the margin-top from the mdc-text-field container. This can cause a UI to shift/change.
- text-field: Removes
box
property and makes box the new default style.
- text-field: Property
outline
was renamed to outlined
.
- text-field: Setting the validity state using setValid no longer ignores native input validation. New API
nativeValidation
is introduced to enable / disable native validation for custom validity.
- list: Removed
selection
property. Please use singleSelection
instead.
- list: Removed
lines
property. Please use twoLine: boolean
to increase the height of a row.
- list: Removed
clearSelected
method.
- Removed
MdcThemeModule
. Import MdcIconModule
to use [materialIcons]
directive if needed.
- select: Property
autosize
defaults to false, please update your code accordingly.
0.38.2 (2018-08-17)
Bug Fixes
- app-bar: Execute prominent app-bar following timeout (#1229) (f8a3eb6), closes #1226
- tab-bar: Should reset subscriptions listening for tab changes (#1225) (ea09759), closes #1223
- text-field: Should compare using coerced value (#1231) (f40759f)
Features
How to handle browser refresh with Tabs
View a StackBlitz example: https://github.com/trimox/angular-mdc-web/issues/1206
BREAKING CHANGES
- list: Removed
multiple: boolean
from mdc-list. Please update your code accordingly.
0.38.1 (2018-08-11)
Bug Fixes
- chips: Add return value type to handleTrailingIconInteraction (#1189) (c2b16ed)
- chips: Fix event interactions and selections + improvements (#1196) (f0d812f), closes #1195
- demos: Add alternate color example for mdc-switch (#1187) (cf038b1)
- dialog: Coerce accept, cancel and action props to boolean (#1192) (9448a5e)
- slider: Null check before calling destroy (#1191) (ca40ad6), closes #1190
Features
- ripple: Remove usage of EventRegistry (#1194) (18b00bc)
- snackbar: Use ChangeDetectionStrategy.OnPush + refactoring (#1199) (d5bc071)
0.38.0 (2018-08-08)
Bug Fixes
- chips: Should use foundation handleChipRemoval method (#1185) (c930820)
- list: Coerce border and dense string values to boolean (#1163) (17bbdf3)
- text-field: Coerce disabled, persistent and validation strings to boolean (#1182) (992031a)
- text-field: Should set outline if value is coerced (#1161) (8467030)
Features
BREAKING CHANGES
- toolbar: mdc-toolbar is deprecated and no longer bundled. You are encouraged to use the new mdc-app-bar package.
- icon-toggle: mdc-icon-toggle is deprecated and no longer bundled. You are encouraged to use the new mdc-icon-button package.
- tabs: mdc-tabs is deprecated and no longer bundled. You are encouraged to use the new mdc-tab / mdc-tab-bar / mdc-tab-scroller / mdc-tab-indicator package(s) by importing MdcTabBarModule. Please see documentation for implementation.
- select: Removed
setValue(value: any)
, please use setSelectionByValue(value: any)
instead.
- Added
source
argument for selectionChange(source: MdcSelect, index: number, value: string)
0.37.3 (2018-07-26)
Bug Fixes
Features
BREAKING CHANGES:
- Added
selection: boolean
property to mdc-list
; enables whether or not the list items are selectable. Default is false.
0.37.2 (2018-07-18)
Bug Fixes
Features
0.37.1 (2018-07-11)
Bug Fixes
Features
0.37.0 (2018-07-09)
Bug Fixes
Features
- Update material-components-web to 0.37.0
- chips: Add label property to chip (#1079) (e56d0eb), closes #1078
- chips: Add removable property for mdc-chip (#1080) (ed9c3f5), closes #1075
- dialog: Create new dialog service and component (#1057) (68a81ff), closes #1007 #1056 #1058 #1064
- dialog: Set list item cursor to pointer (#1092) (50a2b05), closes #1091
- elevation: Rename mdc-elevation to mdcElevation (#1082) (d4725e6), closes #1081
- fab: Add Extended FAB (#1074) (14c7f5d), closes #1045
- icon: Add directive selector mdcIcon (#1088) (f993a87), closes #1086
- list: Add arrow key a11y support (#1076) (373fa7d), closes #1047
- select: Add outlined variant (#1071) (94c9e40), closes #1038 #1046
- text-field: Set default variant to box (#1095) (4353b70), closes #1094
BREAKING CHANGES
- elevation: Renamed
[mdc-elevation]
to [mdcElevation]
, please update your code accordingly.
- dialog: - Add required directive
mdc-dialog-surface
as child to mdc-dialog
. Please review the updated dialog documentation.
- text-field: As per material spec updates, the default variant for Text Field is box.
- list: - Removed deprecated selectors:
[mdc-list-divider]
use mdcListDivider
[mdc-list-group-subheader]
, use mdcListGroupSubheader
[mdc-list-group]
, use mdcListGroup
[mdc-list-item-graphic]
, use mdcListItemGraphic
[mdc-list-item-meta]
, use mdcListItemMeta
[mdc-list-item-text]
, use mdcListItemText
[mdc-list-item-secondary]
, use mdcListItemSecondary
0.36.3 (2018-06-20)
Bug Fixes
Features
0.36.2 (2018-06-15)
Features
Text Field improvements
- Should allow changing variants (e.g.:
outline
to box
).
- Add
label[mdcFloatingLabel]
selector
- Add
mdcLineRipple
selector
- Rewrote
notched-outline
component
- Should not set
type
on mdc-textarea
- Should set
type
on mdc-text-field
, if not set
- Remove Renderer2 usage
- Fixed quite a few issues for
mdc-text-field
0.36.0 (2018-06-12)
Bug Fixes
- app-bar: Should follow material spec (#1042) (6ebeb2c), closes #998
- checkbox: Remove unneeded FormsModule import (#1034) (b395dc9)
- checkbox: Should call ControlValueAccessor setDisabledState() (#1032) (3dbd7ac), closes #1030
- checkbox: Should check vendor prefixes in registerAnimationEndHandler (#1033) (12f1a63)
- ripple: Should not ripple for disabled inputs (#1036) (f493770), closes #1035
- select: Should not autosize with empty placeholder (#997) (a41b524), closes #996
- text-field: Make ValidationAttributeChangeHandler expect array of strings (#1013) (00038b2)
Features
0.35.7 (2018-05-24)
Features
0.35.6 (2018-05-18)
Bug Fixes
- package: Should transpile material-components-web (#990) (68d55a5), closes #988
0.35.5 (2018-05-18)
Bug Fixes
- app-bar: Should remove
mdc-top-app-bar--short-has-action-item
(#973) (5875ab5), closes #972
- form-field: Should interact with control label (#987) (73c026a), closes #986
- select: Should float label for selected html option (#979) (ccb0133), closes #976 #963
Features
0.35.3 (2018-05-11)
Features
BREAKING CHANGES
- shape: Removed
mdc-shape-container-corner
, please update your code accordingly to use mdcShapeContainerCorner
.
0.35.2 (2018-05-08)
Bug Fixes
- card: Remove unneeded display: inline-flex (#950) (550e360)
Features
0.35.1 (2018-05-05)
Bug Fixes
- app-bar: Should remove short-collapsed class (#946) (2f06042)
Features
0.35.0 (2018-05-05)
Bug Fixes
- demo-app: Overflow scroll for demo-content__drawer (#905) (3e4001e)
- select: Should clear value on empty option selected (#926) (5d6a41c), closes #923
- text-field: Should clear ngModel when empty (#940) (ea18f49), closes #939
- toolbar: Should remove
margin-top
on destroy (#934) (1e6253d), closes #933
Features
BREAKING CHANGES
- typography: All legacy typography directives will continue to work for the near future.
- card: Renamed
stroked
property to outlined
- button: Property
stroked
renamed to outlined
- Sass mixin
mdc-button-stroked-width
renamed to mdc-button-outline-width
- Sass mixin
mdc-button-stroked-color
renamed to mdc-button-outline-color
- dialog: Removes layoutFooterRipples() as per material-components-web v0.35.0
- linear-progress: Removed indeterminate property, please update your code accordingly.
0.34.5 (2018-04-22)
Bug Fixes
Features
0.34.4 (2018-04-20)
Bug Fixes
Features
BREAKING CHANGES
- radio: Update mdc-radio change event listener to use MdcRadioChange class.
- card: Renamed [rectangle] to [wide]. Please update your code accordingly.
- slider: Update mdc-slider (change) and (input) listeners to use class MdcSliderChange.
- Update your code to use MdcMenuChange class for select event listener.
- Update your code to bind an element to [anchor] property. Please refer to documentation.
- Removed @Input() direction
- Removed isFocused(): boolean method
- Removed getFocusedItemIndex(): number method
- Removed hasAnchor(): boolean method
- Removed isRtl(): boolean method
0.34.3 (2018-04-14)
Features
- checkbox: Add public methods + improvements (#866) (a2096a9)
- switch: New UX state methods + improvements (#868) (405b367)
- text-field: Add public methods for UX states (#867) (fc77f64)
BREAKING CHANGES
- switch: Update
(change)
event listener to match MdcSwitchChange
class.
- checkbox: Update
(change)
event listener to match MdcCheckboxChange
class.
0.34.2 (2018-04-13)
Bug Fixes
- app-bar: Should remove short-collapsed class (#852) (1743f01)
- checkbox: Set ripple interaction to native input (#853) (d748635)
- checkbox: Should use stopPropagation for click event (#854) (ad6b2b1)
- dialog: Remove unused declarations (#862) (e7353cf)
- text-field: Errors for Outlined init (#849) (9baabfa)
- text-field: Set display property for mdc-text-field-helper-text (#851) (4d48108)
- text-field: Should reset ngModel and FormControl values (#861) (f31df0e), closes #848
Features
BREAKING CHANGES
- Removed
toggle()
, select()
and deselect()
methods from mdc-list-item. Please update your code to use setSelected(selected: boolean)
.
0.34.1 (2018-04-09)
Bug Fixes
- chips: Casing for isLeadingIconVisibile method (#844) (ee622e9)
- line-ripple: Rename adapter method setAttr to setStyle (#835) (e46730e)
- select: Use templateRef for options (#845) (aca8fa2)
- text-field: Should display notched outline (#827) (6f5d6b6)
Features
- Update to material-components-web v0.34.1 (#841) (4c239b8)
- app-bar: Add dense property (#831) (3d86e1c)
- app-bar: Rename collapsed to shortCollapsed (#832) (d4f6ad5)
- notched-outline: Add MDC Foundation methods (#836) (8b87e14)
- select: Replace menu with native html select (#834) (61a3171)
BREAKING CHANGES
- app-bar: Renamed [collapsed] to [shortCollapsed]. Please update your code accordingly.
- select: - The template and adapter APIs have changed to take advantage of the native select element; see the MDC Select README for more information.
- select: - Removed mdc-select-item component. Replace with HTML5's native option element.
0.33.0 (2018-04-01)
Bug Fixes
- text-field: Add return type for setValidation (#814) (299e9aa)
- text-field: Apply ripple when text-field is box (#802) (6dccd59)
- text-field: Clicking icon should not cause ripple (#822) (840dd8d)
- text-field: Clicking mdc-floating-label should focus textfield (#821) (13f9fa0)
Features
- app-bar: Add prominent property (#805) (8112fbe), closes #789
- chips: Replace leading icon with checkmark in selected filter chips (#810) (0f47eba), closes #790
- grid-list: Implement MDC Grid List (#813) (a0c8d52), closes #772
- icon: Add clickable property (#818) (00fc5df), closes #792 #593
- notched-outline: Implement MDC Notched Outline (#806) (601c8a6)
- radio: Make Radio button MDC Foundation methods public (#812) (120acb9)
- ripple: Add mdcRipple directive + attachTo property (#809) (f60a7d8), closes #808
- typography: Remove mdc-typography-adjust-margin directive (#816) (3fe0b39), closes #815
- Updated to
material-components-web
v0.33.0
BREAKING CHANGES
- typography: Removed the mdc-typography-adjust-margin feature. Please update your code
accordingly.
0.32.1 (2018-03-21)
Bug Fixes
- tabs: Ink color for hover state (#797) (395bf62)
- tabs: Set active tab from mdcRouter (#791) (cec662f)
- text-field: Numeric value returned by ControlValueAccessor (#794) (6895446), closes #773
- text-field: Value undefined for floating label (#795) (07b7120)
Features
- demo: Improve Sass processing time (#780) (b0ec2f3)
- drawer: Use passive event listener for interactions (#787) (d5f4cbd)
BREAKING CHANGES
- text-field: -
mdc-text-field-box
directive is deprecated and no longer supported. Please update your code accordingly. Example: <mdc-text-field [box]="true"></mdc-text-field>
0.32.0 (2018-03-16)
Bug Fixes
- chips: Set enabled chip tabindex to 0 (#747) (2dcd1ee)
- select: Fix prefilled select set as dirty (#734) (32b24fa), closes #733
- tabs: Add/remove tabs asynchronously (#771) (bdb9986)
- tabs: Wrong color on inactive and disabled tabs (#767) (cfd79d9)
- text-field: Disable validation check in setRequired (#748) (f052c86)
- text-field: Make Outline use OnInit and OnDestroy (#749) (f2bd30a)
Features
- app-bar: Add fixedAdjustElement property (#763) (b8ab99a)
- app-bar: Implement MDC App Bar (#757) (e2d4a59), closes #724
- button: Remove compact property (#759) (fc83408)
- chips: Add chip subscriptions interaction handling (#774) (4c7a56f)
- chips: Add choice property to mdc-chip-set (#744) (e4b11fb), closes #743
- chips: Add filter property to mdc-chip-set (#745) (1200ae6), closes #725
- chips: Emit selectionChangeEvent on chip toggle (#756) (fa82cf3)
- chips: New MDCChipAdapter methods for handling trailing icons (#750) (73542e0)
- Update material-components-web to v0.32 (#738) (ec148e8)
- floating-label: Implement MDC Floating Label (#742) (5cb8127), closes #741
- tabs: Add [mdcRouter] for
[@angular](https://github.com/angular)/router
support (#770) (a5e30c8), closes #735
- tabs: Improvements + fixes (#732) (009057d), closes #720 #729 #730
- tabs: Re-add active property to mdc-tab (#768) (c3abbbc)
- text-field: Use mdc-floating-label (#746) (582620e)
BREAKING CHANGES
- button: The compact variant of MDC Button is removed.
Tabs
- Removed
select
event from mdc-tab
.
- Removed
change
event from mdc-tab-bar
. Please update your code to use selectedTabChange: EventEmitter<MdcTabChangeEvent>
.
- Moved
disableRipple: boolean
to mdc-tab-bar
- Moved
primary
and secondary
to mdc-tab-bar
0.31.1 (2018-02-27)
Features
- Transpile material-components-web + IE11 support (#719) (3fc92c2), closes #708
0.31.0 (2018-02-21)
Bug Fixes
- dialog: Remove uneeded MdcButtonModule import (#677) (e2f3907)
- icon: Handle values with extra spaces (#683) (4938f07)
- icon-toggle: Fix primary/secondary class on icon element (#660) (456d250)
- icon-toggle: Listen for keydown events + fix ripple (#667) (6ab3a8e)
- list: Prevent multiple activated items on option change (#668) (8f32136), closes #637
- menu: Close when list-item on page clicked (#628) (ec9c0c7), closes #621
- select: Call change event for formGroup and formControl values (#641) (67d05ba), closes #640
- select: Check if ngControl valueAccessor exists (#685) (ee2f566)
- select: Style floating label on propagation of changes (#703) (25be844)
- Compilation errors found with
fullTemplateTypeCheck
(#680) (54b7948)
- tabs: Clicking tab with *ngFor results in ExpressionChangedAfterItHasBeenCheckedError (b9b5851), closes #664
- text-field: Import MdcLineRippleModule (#676) (70f5e9b)
- text-field: Set _focused inside onFocus() (#654) (f759410)
- text-field: Set disabled state with formControl (#690) (31c0138), closes #636
- toolbar: Fix mobile flexible toolbar title alignment (#695) (fe933be)
- toolbar: Line height on flexible toolbar title (#655) (db8f348)
- toolbar: z-index of mdc-menu positioned over mdc-tab (#656) (df405d9), closes #638
Features
- form-field: Use ChangeDetectionStrategy.OnPush (#642) (bf9c4ff)
- icon: Use ChangeDetectionStrategy.OnPush (#650) (7bcc62c)
BREAKING CHANGES
- theme: Removed dark theme component per MDC v0.30.0. Please design application theme choices with Sass.
- list: Removed
twoLine
property. Please use lines: number
with a value of 2
.
- button:
MdcButton
no longer automatically adds mdc-button__icon
class, if mdc-icon
is detected. Please update your code to use [icon]: boolean
property.
- card: All directives for content layouts have been removed. Developers should decide what kind of layout is best for their specific use case. Please see Card documentation for updated examples.
0.7.5 (2018-02-06)
Bug Fixes
- toolbar: Alignment for mdc-toolbar-title if flexible toolbar (#611) (7f48474)
- toolbar: Instantiate MDCToolbarFoundation before lifecycles (#612) (fccd90d)
0.7.4 (2018-02-05)
Bug Fixes
- drawer: Change fixedAdjustElement type (#606) (9e0f100)
- select: Menu flickers before disappearing (#599) (ac5d438), closes #509
- text-field: Fix error if disabled prior to foundation init (#589) (25bf71f), closes #588
Features
- drawer: Add exportAs declarations (#608) (0dbea96)
- drawer: Remove mdc-elevation(1) on fixed drawer (#601) (c39881c)
- drawer: Use ChangeDetectionStrategy.OnPush (#607) (59365d9)
- select: Add selectionChange event (#600) (f4990ac), closes #591
- toolbar: Add exportAs declarations (#605) (c932ea6)
- toolbar: ChangeDetection OnPush + fixedAdjustElement improvements (#603) (749d173)
- toolbar: Use passive event listener on scroll (#604) (0771432)
0.7.3 (2018-01-30)
Features
- drawer: Add [primary] on mdc-drawer-header-content (#583) (500021f)
0.7.2 (2018-01-30)
Bug Fixes
- text-field: Workaround for outlined float MDC bug (#577) (ad4736d)
Features
BREAKING CHANGES
- Rename instances of
mdc-drawer-temporary
, mdc-drawer-persistent
or mdc-drawer-permanent
to mdc-drawer
.
- Set drawer type via
drawer: string
property. Valid values are 'permanent' | 'persistent' | 'temporary'
- Removed
[absolute]
input property. Logic replaced with fixedAdjustElement
input use.
0.7.1 (2018-01-24)
Bug Fixes
- text-field: Fix outlined border missing if prefilled (#569) (1476c9d)
Features
- Update to material-components-web v0.29.0 (#570) (cb8a274)
- text-field: Add getValue() method (#573) (7f265cb)
- text-field: Add setPersistent and setValidation methods (#572) (80e9d7b)
- text-field: Add setRequired() and isRequired() methods (#574) (76b32f0)
0.7.0 (2018-01-21)
Bug Fixes
- build: Wrong sourcemap paths (#541) (bd23934)
- dialog: Fix DOM cleanup on close (#560) (d14de0e), closes #538
- drawer: Content is overlapping the drawer in rtl (#502) (c4cf2c9)
- slider: Workaround for MDC foundation export (#542) (3cd3d4f)
- text-field: Set custom validity with setValid(isValid) (#563) (d5af654), closes #562
Features
- drawer: Rename permanent drawer (#530) (58f60df), closes #529
- drawer: Rename persistent drawer (#532) (94a8962), closes #531
- drawer: Rename temporary drawer (#535) (e4c439a), closes #534
- drawer: Toggle visibility of a persistent drawer (#533) (378c11c)
- icon-toggle: Add
on
property for toggle binding (#555) (182701c), closes #554
- linear-progress: Add progress and buffer properties (#544) (2b783a4)
- linear-progress: Set progress buffer color to $mdc-theme-secondary-light (#543) (4865295)
- menu: Add new anchor positioning APIs (#519) (349ea76), closes #511
- ripple: Add new DocumentInteractionHandler APIs (#528) (40b5a6e), closes #440 #513
- ripple: Add primary + secondary Sass color mixin (#522) (3f3b67b), closes #518
- ripple: Add setUnbounded() method (#546) (127aad0), closes #527
- ripple: Expose MdcRippleOrchestration on mdc-ripple (#545) (23866e6)
- select: Add autosize property to set width automatically (#496) (cfaf961), closes #495
- Create export of
[@angular-mdc](https://github.com/angular-mdc)/web/theme
directives (#501) (67ebf4a)
- snackbar: Add show/hide events + refactoring (#552) (8de4fff), closes #520
- text-field: Add
helperText
property to expand functionality (#559) (d23ac40)
- text-field: Add blur(value) EventEmitter (#558) (35a0f61), closes #557
- text-field: Implement MDC Outlined Text Field (#564) (0624a94), closes #521
- text-field: Support custom validity checks for valid() (#565) (d0afe72)
- textfield: Add [focused] property + styling (#547) (3bd8209), closes #517
- textfield: Add RTL support via [direction] property (#548) (098bd97)
- textfield: Implement MDCTextFieldIconFoundation (#549) (8945629), closes #514
- textfield: Implement MDCTextFieldLabelFoundation (#550) (ecb1119), closes #512
BREAKING CHANGES
- menu: * Removed
openFrom
property. Please update your code to use the anchorCorner
property.
- drawer: * Renamed selector
mdc-persistent-drawer
to mdc-drawer-permanent
.
- drawer: * Renamed selector
mdc-persistent-drawer
to mdc-drawer-permanent
.
- drawer: * Renamed selector
mdc-temporary-drawer
to mdc-drawer-temporary
.
- Renamed class
MdcPersistentDrawer
to MdcDrawerPersistent
.
- Renamed selector
mdc-persistent-drawer-spacer
to mdc-drawer-spacer
.
- Renamed selector
mdc-persistent-drawer-content
to mdc-drawer-content
.
- Renamed
mdc-persistent-drawer-header
to mdc-drawer-header
- Renamed
mdc-persistent-drawer-header-content
to mdc-drawer-header-content
- Renamed class
MdcPermanentDrawer
to MdcDrawerPermanent
.
- Renamed selector
mdc-permanent-drawer-spacer
to mdc-drawer-spacer
.
- Renamed selector
mdc-permanent-drawer-content
to mdc-drawer-content
.
- Removed
MdcMaterialIconModule
. If needed, please use MdcThemeModule
instead.
0.6.6 (2017-12-20)
Bug Fixes
- dialog: Inaccurate hasAttached result + portal cleared if attached early (#490) (a4ec3f2)
- select: Correctly set aria-disabled based on disabled value (#494) (5c39a02), closes #493
- textfield: Fix setting disabled on text fields (#477) (579eb2d), closes #476
Features
- linear-progress: ChangeDetection set to OnPush (#462) (dec4c4f)
BREAKING CHANGES
- list: Removed
disableRipple
property. Please update your code to use interactive
property.
- list: Renamed
active
property to selected
.
- list: Renamed
mdc-list-item-start
to mdc-list-item-graphic
- list: Renamed
mdc-list-item-end
to mdc-list-item-meta
- list: Removed
isActive()
method
- list: Deprecated
twoLines
property. Use lines: number
instead.
0.6.5 (2017-12-14)
Bug Fixes
- checkbox: Allow keyboard event to trigger ripple (#459) (a885ffb)
- ripple: Fix ripple active surface detection (#457) (afd5151), closes #440
- perf(button): Set ChangeDetection to OnPush + add focus method (#458)
- fab: Set ChangeDetection OnPush + add focus method (#456)
0.6.3 (2017-12-12)
Bug Fixes
- select: Handle selection changes accessed early (#450) (eaf2c17)
- select: Remove duplicate Subscription import (#439) (60a7196)
Features
- build: Export
MdcIconModule
from MdcFabModule
(#442) (c4c5d52)
- dialog: Add observable subjects + improvements (#399) (784d87d), closes #397
- infrastructure: Redesign development environment (#436) (9710d38), closes #431
- feat(textfield): Add
empty
getter (#451)
0.6.2 (2017-12-06)
Bug Fixes
Features
BREAKING CHANGES
- select:
- Removed
clearSelection()
. Just reset an NgModel by setting it to null.
- Removed
CloseOnScroll
as upstream MDC PR fixed the scrolling of open menus.
- checkbox:
change(Event)
was changed to change(MdcCheckBox)
. Please update your code accordingly.
IMPORTANT INFO REGARDING PACKAGING
- build: *
MaterialModule
has been removed.
We've found that, with the current state of tree-shaking in the world, that using an aggregate NgModule like MaterialModule leads to tools not being able to eliminate code for components that aren't used.
In order to ensure that users end up with the smallest code size possible.
To replace MaterialModule, users can create their own "Material" module within their application (e.g., AppMaterialModule) that imports only the set of components actually used in the application.
MdcCoreModule
has been removed. It's modules have been broken out as shown below.
- Use
MdcElevationModule
for MDC Elevation directives
- Use
MdcThemeModule
for MDC Theme directives
- Use
MdcTypographyModule
for MDC Typography directives
- Use
MdcMaterialIconModule
for MDC Material Icon directive
0.6.1 (2017-11-20)
Bug Fixes
- checkbox: Close path tag to remove IE console warnings (#377) (0ec464c)
Features
- Update material-components-web to v0.25.0 (#381) (e6b9a56)
- dialog: Add declarative dialog (#383) (97372d6), closes #370
- drawer: Add selection state to Drawer lists (#389) (7584deb), closes #143
- linear-progress: Add Sass color mixin for
--secondary
(#384) (c4770e9)
- menu: Improvements and new properties (#386) (e679e32), closes #385
- textfield: Rename mdc-text-field-helptext to mdc-text-field-helper-text (#388) (7ddb8f5), closes #387
- textfield: Rename mdc-textfield to mdc-text-field (#382) (b27f6f0), closes #379
BREAKING CHANGES
- drawer: List property
disableRipples
was renamed to disableRipple
.
- menu: Removed
MenuOpenFrom
. Update your code to use MdcMenuOpenFrom
with accepted values of 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'Text Field renamed due to MDC upstream change
- textfield: Rename
mdc-text-field-helptext
to mdc-text-field-helper-text
and update your code accordingly.
- textfield: Rename the following in your code.
MdcTextfieldModule
to MdcTextFieldModule
.
MdcTextfield
to MdcTextField
MdcTextfieldBox
to MdcTextFieldBox
mdc-textfield
to mdc-text-field
mdc-textfield-box
to mdc-text-field-box
mdc-textfield-helptext
to mdc-text-field-helptext
0.6.0 (2017-11-13)
Features
BREAKING CHANGES
0.5.6 (2017-10-30)
Library improvements (#328) (27354e0)
- Rename
_root
to elementRef
- Make directive and component
ElementRef
public accessible
- Remove
directive
and component
from src/lib
file names
- Make event registry
listen
and unlisten
public accessible
- Add
passive
event handling to event registry
- Prefix private variables with leading underscore
- Functions must specify strongly-typed object(s)
- Add
pointerup
+ mouseup
types to ripple's interaction handler
- Set default property values
- Rename MDC adapter files to
adapter.d.ts
- Refactor MdcFormField
- Prefix events with
on
instead of handle
(e.g.: onKeyPress)
- Set
encapsulation
to ViewEncapsulation.None
- Refactor
mdc-icon-toggle
to use mdc-icon
- Change
MdcList
to Directive
Features
- drawer: Add
closeOnClick
to temporary drawer close behavior (02816bd)
- menu: Add focus/isFocused methods + refactoring (#323) (02816bd)
- ripple: Add optional event parameter to activate/deactivate (#321) (72ac60b)
- select: Improvements + ngModel fix (#326) (7dcb7ab), closes #319
0.5.5 (2017-10-24)
Bug Fixes
- select: Use Observable subscription to detect scroll (354659e)
0.5.4 (2017-10-21)
Bug Fixes
- card: Conditional card expression changed error (#294) (576964c), closes #293
- tabs: Correct
mdc-tab-bar-scroller
class binding (#283) (626d216)
- textfield: Use tabIndex instead of tabindex (#301) (a49c68f)
- toolbar: Remove fixed toolbar's
margin-top
OnDestroy (#292) (2e618fa), closes #267
Features
BREAKING CHANGES
- textfield: Remove
multiline
property from mdc-textarea
.
- toolbar: Renamed
mdc-toolbar-icon-menu
to mdc-toolbar-menu-icon
per MDC. Please update your code accordingly.
0.5.3 (2017-10-13)
Bug Fixes
- card: Horizontal card does not show supporting text (#274) (680edfc), closes #266
- dialog: Issues with
clickOutsideToClose
and escapeToClose
(#263) (b5989da)
- dialog: Pass
shouldNotify
to MDC foundation methods (#273) (22d5e42)
- dialog: Set Dialog button
action
property to secondary color (#262) (ef2e96c)
- fab: Set correct position in media query (#260) (73eb62c)
- list: Checkbox height inside list-item (#261) (31d030d), closes #172
Features
- core: Make cursor a pointer for
mdc-surface
(#264) (43dc9f2)
- demo: Demo App Improvements (#252) (2437511), closes #254
- drawer: Add
fixed
property to Permanent Drawer (#256) (4b8a712), closes #255
- elevation: MdcElevation moved to MdcCoreModule (#245) (9cf2647)
- fab: Add
position
property for absolute positioning (#259) (d80bb2f), closes #258
- icon: Add
mdc-icon--avatar
CSS class (#270) (fb9a66b), closes #268
- icon: Implement
mdc-icon
component (#246) (2127275), closes #241
- list: Add [border] property (#276) (6e9c80b), closes #269
- list: Avatar icons + Improvements (#272) (1bad2e8), closes #271
- ripple: Add
mdc-ripple
and mdc-surface
directives (#237) (68d22b5), closes #234
- ripple: MdcRipple moved to MdcCoreModule (#247) (4035f58), closes #243
- typography: MdcTypography moved to MdcCoreModule (#244) (c19b9ab)
- core: MdcThemeModule moved into MdcCoreModule (#277) (68bb43c), closes #243
BREAKING CHANGES
- icon:
mdc-icon-button
was removed in favor of mdc-icon
. Please update your code accordingly.
mdc-fab-icon
was removed in favor of mdc-icon
. Please update your code accordingly.
mdc-tab-icon
was removed in favor of mdc-icon
. Please update your code accordingly.
- elevation: Remove
MdcElevationModule
from your code. Replace with MdcCoreModule
if not previously imported.
- typography: Remove
MdcTypographyModule
from your code, and if necessary add an import of MdcCoreModule
.
- core: Remove
MdcThemeModule
import from your code, and replace it with MdcCoreModule
if not already imported.
0.5.1 (2017-10-01)
Bug Fixes
- icon-toggle: Return boolean from isOn() (#220) (93778ae)
Features
BREAKING CHANGES
0.5.0 (2017-09-24)
Bug Fixes
Features
- theme: Implement MDC Theme + Sass extensions (#206) (c6bb89b), closes #112
- slider: Implement MDC Slider (#186) (b3f4996), closes #111
- button: Add
mdc-icon-button
directive (#192) (3f0afbb), closes #189
- package: Update material-components-web to v0.21.1 (#202) (bfc5419)
- snackbar: Improvements + test coverage (#200) (b9f978f)
- tabs: Add scrollToTabAtIndex + findTab as public methods (#204) (d50599f), closes #193
BREAKING CHANGES
- angular-mdc/theme: Replace your project's MDC Sass import with
@import "~@angular-mdc/theme/material";
You can also remove IncludePaths
for node_modules/@material/*
from your Webpack
or angular-cli.json
config files since it was a requirement of the old material-components-web
theme.
0.4.8 (2017-09-17)
Bug Fixes
- button: Prevent
click()
event propagation if disabled (2ef9d7b)
- button: Remove type attribute (#176) (15152f7), closes #174
- checkbox: Correct camelcase property of
tabIndex
(41af1ad)
- textfield: Label overlap if value is undefined (#188) (b2ee5c9), closes #187
Features
- Add
applyCssTransform
function (#170) (4115006)
- button: Set
aria-disabled
if disabled (a6c1802)
- checkbox: Add focus() as public method (#161) (fe7d1a9)
- checkbox: Provision host + input
id
if not user defined (e686dac)
- infrastructure: Implement Test Infrastructure (#150) (c079cd3), closes #114
- Injectable
MdcRipple
+ EventRegistry provider (#181) (99923e7), closes #164
- radio: Improvements + test coverage (#183) (bb45d77)
- switch: Improvements + test coverage (#182) (60653dc)
- tabs: Add test coverage (#185) (0d01b48)
- textfield: Add
setValid
method to set a custom validity (#190) (8dee576)
BREAKING CHANGES
- textfield:
updateErrorState
method was renamed to setValid
keeping with MDC foundation naming.
MdcRippleModule
was removed, please update your code accordingly.
0.4.5 (2017-09-09)
Bug Fixes
- Set correct type of ImplicitAny members (#136) (adf20e4)
Features
BREAKING CHANGES
- fab: Remove the [plain] property from any Floating Action Button in your code.
- The
accent
property on Button, Icon-toggle, Linear-progress was renamed to secondary
.
The accentColor
and primaryColor
properties on Tabs was renamed to accent
and primary
.
0.4.0 (2017-09-01)
Bug Fixes
- menu: Fix class binding of openFrom property (#119) (12a1d12), closes #116
- menu: Open method required a focusIndex (#117) (73956ca)
- textfield: Fix expression changed after check error (#123) (b254ad9), closes #121
Features
BREAKING CHANGES
- package: All component classes are now prefixed with
Mdc
to prevent name conflicts with other libraries. Please update your code accordingly.
Example: ButtonComponent
to MdcButtonComponent
- fab: Add a
material-icon
directive to mdc-fab-icon if using Material Icons. If not,
apply custom styling for Font Awesome or text. Please see examples on demo page.
- fab: Remove [disabled] from any FAB component used in your code.
0.3.0 (2017-08-26)
Bug Fixes
- dialog: Set initialFocus to Dialog node, if [accept] is false (#92) (1086817)
Features
- button: Add unelevated property to button (#106) (22d74ab), closes #101
- card: Add [mdc-card-button] + refactoring (#90) (3c6ccc1)
- dialog: Add [focused] property to Dialog Button (#100) (0ac5394), closes #96
- dialog: Add MDC v0.18's layoutFooterRipples() adapter method (#91) (c3c024e)
- package: Update MDC dependency to v0.19.0 (#104) (d97fda4)
- ripple: Expose foundation's layout() as public method (0205483)
- textfield: Implement MDC Textarea Component (#98) (e3f1eff), closes #95
- textfield: Improvements + new features! (#99) (f01339c), closes #97
BREAKING CHANGES
- textfield: Multiline textarea was refactored out as the new MDC Textarea component. Please update your code accordingly.
Example:
<mdc-textarea label="Comments" rows="8" cols="40" [multiline]="true"></mdc-textarea>
- dialog: Removed [mdc-dialog-button-accept] and [mdc-dialog-button-cancel] directives.
Please update your code to use [mdc-dialog-button].
- card: Property [cardAction] of mdc-button was removed, you'll need to use
mdc-card-button. Please update your code accordingly.
- card: [darkTheme] property was removed from Card. Use [mdc-theme-dark] instead.
0.2.9 (2017-08-18)
Bug Fixes
- menu: Fix select event to emit selected item's DOM element (#80) (74fb5ec), closes #79
- fix npm copy-types command (#82) (28d2600)
Features
- dialog: Add clickOutsideToClose + mdc-dialog-button (#84) (7d5f7a7)
BREAKING CHANGES
- dialog: Deprecated
mdc-dialog-button-accept
and mdc-dialog-button-cancel
.
Use new [mdc-dialog-button] with [accept] and [cancel] properties instead.<mdc-dialog-footer>
<button mdc-dialog-button [cancel]="true">Cancel</button>
<button mdc-dialog-button [accept]="true">Discard</button>
</mdc-dialog-footer>
0.2.8 (2017-08-15)
Bug Fixes
- package: Resolve problems using ES5, ES2015 and UMD npm package files (#75) (7fe6063)
Features
- icon-toggle: Implement MDC Icon Toggle (#76) (41fd1bb)
0.2.5 (2017-08-09)
Bug Fixes
- fab: Remove duplicate HostBinding (#74) (dd3637f)
- textfield: Fix Text Field boxes NgModule value accessor (36ce97a)
- textfield: Pre-filled Text Field uses floating label correctly (bda0f9f)
Features
- dialog: Implement MDC Dialog (#70) (31a278a)
- list: Add component selector option to mdc-list-item-secondary (4b3a5bf)
- list: Add component selector option to mdc-list-item-text (9df6a4d)
- package: Update MDC dependency to v0.17.0 (f9bab7a)
- textfield: Add 'aria-hidden' HostBinding to Helptext directive (6545321)
- textfield: Add [mdc-textfield-bottom-line] directive for Text Field boxes (5f76809)
- textfield: Add [mdc-textfield-label] directive (483fd98)
- textfield: Auto generate [id] if none supplied (3c70203)
0.2.4 (2017-08-03)
Bug Fixes
- button: Fix keyboard event propagation + refactor (4b17028), closes #60
- fab: Fix keyboard event propagation + refactor (fc310fe), closes #60
- fab: Disabled FAB will now remove Ripple classes (f1e7919)
- switch: Disabled Switch will now remove Ripple classes (94dd087)
- textfield: Use correct Ripple import path (c4d23b6)
Features
- tabs: Implement MDC Tabs (f713789)
- package: Export individual component & directive classes (#62) (75b6f21)
0.2.3 (2017-07-25)
Features
- drawer: Implement MDC Drawer (#54) (a4796b8)
- package: Update to Material Design Components v0.16.0 (e004529)
- textfield: Add [dense] bool property to shrink font size/height. (df4443d)
- textfield: Implement MDC Text field boxes (e440d73), closes #57
0.2.2 (2017-07-17)
Bug Fixes
- snackbar: Fix actionHandler was required if actionText is empty (59de0a8)
Features
- list: Implement MDC List (#51) (8738b18), closes #50
- form-field: Implement MDC Form Field (f6a3c7a)
- ripple: Improvements + add disabled property (3eab913)
- button: Add [disableRipple] property + remove form-field import (7ee954d)
- checkbox: Add [disableRipple] + remove form-field import (2805e20)
- fab: Add [disableRipple] + refactoring (adfffa2)
- infrastructure: Add EventRegistry for Listen/Unlisten management (d02e7c3)
- radio: Add [disableRipple] + remove form-field import (d13937c)
- switch: Add [disableRipple] + remove form-field import (19ae3b3)
- theme: Add boolean property to [mdc-theme-dark] directive (07ec20a)
0.2.1 (2017-07-14)
Bug Fixes
- switch: Remove redundant [ngModel] bind from html template (a594aa5)
- typography: Fix missing module import of [typography] (67517dd)
Code Refactoring
- infrastructure: refactor(infrastructure): Use ES2015 import for MDC Foundation API's. (dd21a75)
Features
- demo: Ahead-of-Time compilation + Rollup bundling (#49) (7c2293d)
BREAKING CHANGES
- menu: MenuOpenFrom enum replaces MDC_OPEN_FROM and now can be imported. Please update
your code accordingly.
0.2.0 (2017-07-06)
Code Refactoring
- toolbar: Refactor foundation adapter and child directives. (b3ba3b0)
Features
- toolbar: Add foundation updateAdjustElementStyles() public method. (d06d671)
- toolbar: Fixed toolbars will programmatically set
FixedAdjustElement
style on next node element (2b7d221)
- docs: Add getting started walkthrough + developer guide (f6cdba1)
- infrastructure: Implement Rollup ES6 module bundling. Breaking changes (ba521d6)
BREAKING CHANGES
- toolbar: [flexibleDefaultBehavior] replaces [flexibleTitle]. Please update your code accordingly.
- infrastructure: We no longer import the SCSS for each component. Please update your code to import the MDC Theme for your application.
The reason we do not import our component SCSS anymore is we need to provide developers flexibility and creativity for theming their apps. For example, if using Angular CLI you can now import the MDC theme.
@import "material-components-web/material-components-web";
0.1.19 (2017-07-03)
Bug Fixes
- textfield: Fix getNativeInput adapter method and use foundation isDisabled. (f7600ed)
Features
- checkbox: Add value, name binding and refactor foundation wrapper integration. (#38) (68a2e47)
- elevation: Add MDC Elevation using [mdc-elevation]="#" directive. (257cb04)
- theme: Implement MDC Theme - mdc-theme-dark directive. (0583bf7)
- toolbar: Add mdc-toolbar-icon and mdc-toolbar-icon-menu directives. (1965a3a)
- linear-progress: Use foundation api for indeterminate and reverse property sets. (8382aa8)
BREAKING CHANGES
- elevation: Removed deprecated mdc-elevation-z# directives. Please update your code
accordingly.
0.1.18 (2017-07-02)
Bug Fixes
- menu: Fix openFrom attribute & convert values to string enum. (#37) (32e722d)
- radio: Fix ngModel binding. Major refactoring of foundation wrapper. (#36) (584d3d2)
Features
- elevation: Implement MDC Elevation and Transition (#32) (7f676ae)
- infrastructure: Add Angular Universal (server rendering) support. (#34) (c865d8e), closes #33
0.1.17 (2017-06-24)
Bug Fixes
- card: Rename ambiguous Input from titleLarge to large. (dd96c06)
- components: Fix class overriding for each component. (#29) (41e38e0), closes #25
Features
- docs: Add/Update Getting Started guide, README and CONTRIBUTING (#30) (89144b7)
- typography: Add mdc-typography directive to define basic properties on a site. (d100bcc)
BREAKING CHANGES
- card: Input
titleLarge
has been renamed to large
. Please update your code
accordingly.
0.1.16 (2017-06-23)
Bug Fixes
- toolbar: Fix class overriding custom entries. (#28) (a448f60)
Features
- card: Implement MDC Card component. (#24) (301dbf)
- infrastructure: Add new test for style-lint during Travis-CI and local builds. (#27) (ef7104a)
- toolbar: Add ToolbarFixedAdjust directive. (#18) (5ea4719)
0.1.15 (2017-06-20)
Features
- radio: Add MDC Radio Button component (840d35a)
- checkbox: Add aria-label and aria-labelledby properties. Refactored disabled property. (229377e)
- codecov: Add Codecov for code coverage reporting. (#16) (4eefcde), closes #12
- menu: Add openFrom property for overriding opening point. (24911c5)
- switch: Add aria-label and aria-labelledby properties. Refactored disabled property. (f65fc5a)
0.1.12 (2017-06-15)
Features
- button: Add Ripple public property (cb6187c)
- checkbox: Checkbox Improvements - Complete overhaul (a9324ae)
- fab: Exposed Ripple as public property (61a698e)
- linear-progress: Add setProgress() and setBuffer() foundation methods as public (10682d1)
- menu: Menu Improvements - Complete overhaul (cb4061d)
- package: Update to Material Design Components v0.13.0 (88c3fa0)
- ripple: Add public activate() and deactivate() foundation methods (1a5359d)
- snackbar: Add optional 'dismissOnAction' argument to show() method. (28af9a8)
- switch: Switch Improvements - Complete overhaul (ce676bd)
- toolbar: Allow mdc-toolbar-title to act as component & directive. (ad9686f)
BREAKING CHANGES
- switch: Removed mdc-switch-label directive
- checkbox: Removed mdc-checkbox-label directive
- linear-progress: Removed component both Input() buffer and progress
- menu: Removed [items] property. You'll need to start using the new mdc-menu-item
directive.
0.1.11 (2017-06-12)
Bug Fixes
- checkbox: Remove ChangeDetectionStategy as it breaks ngModel binding (8f4ef37)
- switch: Remove ChangeDetectionStrategy as it breaks ngModel binding (0bc4ae3)
- textfield: Fixed model binding of values if componenent had an *ngIf applied. (93c823c)
Features
- snackbar-demo: Added ngModel binding for Snackbar demo; change snackbar properties dynamically (a7ca243)
- common: Core production library is now minified. Smaller production footprint. (ba304b2)
0.1.8 (2017-06-07)
Features
- typography: Add MDC Typography directives. (134aea6)
- demo-app: Add MDC Typography demo and documentation (b961fb4)
- package: Upgrade to Material Design Components 0.12.1. (516815b)
- demo-app: Add 'disabled' attribute demo with checkbox for textfield. (b4752eb)
- textfield: Add disabled Input using Foundation API (0ef970f)
0.1.7 (2017-06-06)
Bug Fixes
- demo-app: Add responsive styling to demo app (2a9b492)
Features
- checkbox: Add
disabled
boolean attribute (7b04cb9)
- demo-app: Add demo for Linear Progress. (9e56936)
- linear-progress: Add MDC Linear Progress component wrapper (d823078)
0.1.6 (2017-05-30)
Features
- snackbar: Add
dismissOnAction
function made available in MDC 0.12.0 (af1a5b2)
0.1.5 (2017-05-30)
Features
- toolbar: Add MDC Toolbar wrapper (7f58efc)
- demo-app: Add MDC toolbar to the top of the demo-app. Better examples will follow.. (7234309)
0.1.4 (2017-05-28)
Features
- checkbox: Implement MDC checkbox wrapper (#9) (14695c0)
- demo-app: Add demo-app source back into the repo (#8) (d7e431a)
0.1.3 (2017-05-16)
Features
- button: Button selector changed from 'mdc-button' to 'button'. Disabled input added. (c95dc01)
- fab: FAB selector changed from 'mdc-fab' to 'button'. Disabled input added. (ec21648)
- textfield: Add MDC Textfield's new property badInput; validity check in getNativeInput() (08d1129)
0.1.0 (2017-05-12)
Bug Fixes
- snackbar: Remove check for root element on deRegister events (40cdf83)
Features
- form-field: Implement MDC Form Field using foundation API. (7b7c750)
- switch: Implement MDC Switch (ee55286)
0.0.2 (2017-05-11)
Bug Fixes
- textfield: Add prefilled value check to writeValue (a27b2a1)
- textfield: Add support for prefilled values (20099a6)
Features
- button: Change ripple on button to a provider. Show ripple on keyboard up and down events. (d424b32)
- demo: Add MenuModule to application and include MDC theme, elevation and typography scss (a9a34b1)
- demo: Import our new RippleModule for demo-app (430ca24)
- demo-app: Add MDC FAB example (b50605f)
- demo-app: Add MDC simple menu example to demo page.. (86fde6b)
- demo-app: Add MDC Snackbar example using Angular (a7fa5c5)
- demo-app: Initial commit (73123b3)
- menu: Add menu-item directive (2e94d8b)
- menu: Initial commit for MDC menu foundation integration (5587eb2)
- publish: Initial commit (0cc205d)
- ripple: Adds /ripple/index.ts for simpler import of ripple class (0ad6dea)
- ripple: Ripple redone using MDCRippleFoundation with adapter API (939bd63)
- snackbar: Implemented MDC Snackbar wrapper (ebbbc4f)