Permalink
Commits on Jan 19, 2017
  1. fix(slide-toggle): consistent naming of aria attributes (#2688)

    * fix(slide-toggle): consistent naming of aria attributes
    
    * Ensures that the slide-toggle uses consistent attribute naming.
    Consistent with the native inputs and other Material components.
    
    * Change back to tabIndex
    DevVersion committed with mmalerba Jan 19, 2017
  2. fix(dialog): use injector from viewContainerRef if provided (#2655)

    * Right now the `MdDialog` always instantiates the user-provided component with the injector from the `MdDialog` service.
    
       This is not valid, because developers can provide the `viewContainerRef` to create their dialog in the desired component structure and also expect the parent injector to be the same as in the `viewContainerRef`.
    DevVersion committed with mmalerba Jan 19, 2017
Commits on Jan 18, 2017
  1. test: add class with e2e test utilities (#2070)

    * test: add class with e2e test utilities
    
    * Adds a class that simplifies some common and hard to remember Protractor expressions.
    * Refactors the existing tests to use the new utilities.
    
    Fixes #2025.
    
    * Add types to the e2e utils and fix the selector on the dialog tests.
    
    * Remove unnecessary rounding.
    
    * Remove `any` cast.
    
    * Simplify the slide toggle tests.
    
    * Split the E2E utils class into smaller files.
    
    * Fix a leftover.
    crisbeto committed with mmalerba Jan 18, 2017
  2. fix(select): fix selection color (#2697)

    Fixes #2696
    kara committed with mmalerba Jan 18, 2017
  3. fix(tooltip): provide a maximum width (#2678)

    Adds a `max-width` to the tooltip, in order to wrap longer lines of text. Note that the value is arbitrary since there was nothing about it in the spec.
    
    Fixes #2671.
    crisbeto committed with mmalerba Jan 18, 2017
  4. fix(select): remove selection if option is removed (#2560)

    * fix(select): remove selection if option is removed
    
    * Currenty when an option is selected and the option is somehow programmatically removed the select updates its options.
      Right now it does not remove the selection if the selection has been removed from the options.
    
    Fixes #2524
    
    * Update spec name
    
    * Remove check logic and just keep test
    
    * Update expectation message
    
    * Fix linting
    
    * Wait for zone to be stable
    DevVersion committed with mmalerba Jan 18, 2017
  5. feat(tabs): add the ability to invert the header (#2391)

    Adds the ability to set the tab header position to the bottom. This inverts the tabs and the ink bar.
    
    Fixes #2387.
    crisbeto committed with mmalerba Jan 18, 2017
  6. fix(connected-position-strategy): wrong logic when determining whethe…

    …r element is on screen (#2677)
    
    Fixes some faulty logic, introduced in #2102, that meant that the overlay considers the viewport's scroll offset when determining how much it overflows on either side.
    
    Fixes #2658.
    crisbeto committed with mmalerba Jan 18, 2017
  7. fix(dialog): prevent the close button from submitting forms (#2659)

    Prevents the `md-dialog-close` directive from submitting any forms that it is inside of.
    
    Fixes #2599.
    crisbeto committed with mmalerba Jan 18, 2017
  8. fix(slider): make min value style match mocks (#2641)

    * make slider disabled state match mocks
    
    * added test
    
    * fix lint
    
    * min value style
    
    * thumb label min value style
    
    * fix lint & add tests
    
    * fix lint
    
    * addressed comments
    mmalerba committed on GitHub Jan 18, 2017
  9. fix(input): camel-case md-prefix and md-suffix (#2639)

    * Renames the md-prefix and md-suffix directives to camelcase.
    
    Closes #2636
    
    BREAKING CHANGE: md-prefix and md-suffix are now mdPrefix and mdSuffix
    DevVersion committed with mmalerba Jan 18, 2017
  10. refactor(grid-list): remove unnecessary regex and cast to array (#2502)

    * Removes a regex that can be replaced by a faster `indexOf` check.
    * Removes an unnecessary cast from a QueryList to an Array.
    crisbeto committed with mmalerba Jan 18, 2017
  11. fix(tabs): crashing on chrome under certain conditions (#2411)

    * fix(tabs): crashing on chrome under certain conditions
    
    Prevents the tabs from either crashing Chrome (in Angular < 2.3) or throwing an animation error (in Angular >= 2.3). This was happening when the animations get triggered before the element is inserted into the DOM and thus doesn't have a computed `transform` value.
    
    Fixes #2151.
    
    * Fix IE errors.
    
    * Add a TODO.
    
    * Revert.
    
    * Add TODO for removing the workaround.
    crisbeto committed with mmalerba Jan 18, 2017
  12. fix(button-toggle): conflict with radio component (#2343)

    Prevents the button toggle from conflicting with radio buttons on the same page. This was because both components were using the same pattern to generate unique `name` attributes.
    
    Fixes #2274.
    crisbeto committed with mmalerba Jan 18, 2017
  13. feat(theming): provide a content wrapper attribute (#2170)

    Adds the `md-app-background` class which users can apply to their wrapper element, in order to provide the theme background. This is necessary, because the only element that does this at the moment is `md-sidenav-container` and it's not something that necessarily everybody uses.
    
    Fixes #1938.
    Fixes #2106.
    crisbeto committed with mmalerba Jan 18, 2017
  14. fix(checkbox): Emit event when checkbox's indeterminate value changes (

    …#2130)
    
    * Emit event when checkbox indeterminate value changes
    
    * Add test
    
    * Use boolean and emit indeterminate only if value changed
    tinayuangao committed with mmalerba Jan 18, 2017
  15. chore: cleanup dev-dependencies (#2654)

    * chore: cleanup dev-dependencies
    
    * Removes unused dev-dependencies from Angular CLI-times.
    * Bumps versions for packages which have a newer version available.
    * Pushes the yarn.lock file as disucssed.
    
    * angular/dgeni-packages@8ad91e5
    
    * Don't upgrade firebase CLI
    DevVersion committed with mmalerba Jan 18, 2017
  16. chore: properly exit karma runner (#2653)

    * Properly exit karma in single-run mode when errors are recognized.
    * This looks like its caused by the karma launchers, that connect to Browserstack or Saucelabs and which doesn't close the connection poperly when karma exits with an error code.
    DevVersion committed with mmalerba Jan 18, 2017
Commits on Jan 13, 2017
  1. chore(e2e): update to latest protractor version (#2608)

    * chore(e2e): update to latest protractor version
    
    * Updates to the latest Protractor version, which now uses Selenium V3
    * The new types for Protractor v5 include the fix for the missing `chord` function (See DefinitelyTyped/DefinitelyTyped@123690b)
    * Methods like `innerHtml` have been removed in Protractor v5 (https://github.com/angular/protractor/blob/master/CHANGELOG.md)
    
    * Test later chromedriver version
    DevVersion committed with tinayuangao Jan 13, 2017
  2. feat: add a common class to be used when dealing with selection logic (

    …#2562)
    
    * feat: add a common class to be used when dealing with selection logic
    
    Adds the `MdSelectionModel` class that can be used when dealing with single and multiple selection within a component.
    
    Relates to #2412.
    
    * Refactor and simplify based on the feedback.
    
    * Rename private method.
    
    * Move the clearing logic to _select and shuffle the method order.
    
    * Rename private methods.
    crisbeto committed with tinayuangao Jan 13, 2017
  3. feat(dialog): add the ability to align the content of md-dialog-actio…

    …ns (#2557)
    
    * feat(dialog): add the ability to align the content of md-dialog-actions
    
    Adds the `align` attribute, which can be set to `end` or `middle`, that allows users to align the content of the `md-dialog-actions`.
    
    Fixes #2483.
    
    * Fix linter error.
    
    * Rename "middle" to "center".
    crisbeto committed with tinayuangao Jan 13, 2017
  4. feat(sidenav): add disableClose option (#2501)

    * feat(sidenav): add disableClose option
    
    * Adds an attribute to the `md-sidenav` component, which allows developers to disable the closing behavior (e.g escape closing)
      Backdrop stays separate because you can disable it by using the `mode` attribute.
    
    Closes #2462
    
    * Address comments
    DevVersion committed with tinayuangao Jan 13, 2017
  5. fix(select): selected option not being highlighted when options are a…

    …dded asynchronously (#2499)
    
    * fix(select): selected option not being highlighted when options are added asynchronously
    
    Fixes the select component not highlighting the model value when the options get added after initialization.
    
    Fixes #2497.
    
    * Address the feedback.
    
    * Fix linter errors.
    crisbeto committed with tinayuangao Jan 13, 2017
  6. fix character count hint for input. (#2235)

    fix (input): Remove the property CharacterCounter on md-input. Add name
    of local variable on md-input and add md-hint to fix counter binding of
    md-input for the show hint lable with charater count example.
    
    The property characterCounter does not exist on md-input and therefore
    the character count was not being displayed for the show hint lable with
    charater count example. Removing this and adding the name
    #characterCountHintExampleInput along with the md-hint tag using the
    name and the character count property fixes the issue.
    Codebacca committed with tinayuangao Jan 13, 2017
  7. fix(slider): make disabled state look like mocks (#2604)

    * make slider disabled state match mocks
    
    * added test
    
    * fix lint
    
    * added comments
    
    * addressed comments
    mmalerba committed with tinayuangao Jan 13, 2017