Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Components update #88

Merged
merged 3 commits into from
May 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## 0.5.1

* Glyph: Add baseline attribute.
* Material Expansionpanel:
* Allow programmatic `expand` and `collapse` requests even if the panel is
`disabled`.
* Change `preserveWhitespace` default to false.
* Add `enterAccepts` flag.
* Material Input:
* Show counter regardless of focus.
* Add error message to `MaterialPercentInputDirective`.
* Material List: Allow pointer events when disabled.
* Material Popup: Fix positioning when `matchMinSourceWidth` is true.
* Material Ripple: Show a centered ripple on keypress.
* Material Select:
* Only display underline when border is also set.
* Add `useCheckMarks` to use check marks instead of checkboxes.
* Material Tooltips: Resize to fit contents.
* Material Yes/No Buttons: Add `enterAccepts` flag.
* Deprecate LazyStreamController and migrate to StreamController.
* Migrate use of LazyEventController to StreamController.
* Documentation fixes.
* Strong mode fixes.

## 0.5.0

* Rename library to angular_components.
Expand Down
2 changes: 2 additions & 0 deletions lib/angular_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
library angular_components;

import 'package:angular2/angular2.dart' show Provider;

import 'src/all_components.dart';

export 'src/all_components.dart';

/// A convenience list of all Directives exposed by this package.
Expand Down
3 changes: 3 additions & 0 deletions lib/src/all_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export 'components/material_spinner/material_spinner.dart';
export 'components/material_tab/fixed_material_tab_strip.dart';
export 'components/material_tab/material_tab.dart';
export 'components/material_tab/material_tab_panel.dart';
export 'components/material_tab/tab_button.dart';
export 'components/material_tab/tab_change_event.dart';
export 'components/material_tab/tab_mixin.dart';
export 'components/material_toggle/material_toggle.dart';
export 'components/material_tooltip/material_tooltip.dart';
export 'components/material_tooltip/module.dart';
Expand All @@ -69,6 +71,7 @@ export 'components/mixins/focusable_mixin.dart';
export 'components/mixins/has_tab_index.dart';
export 'components/mixins/material_dropdown_base.dart';
export 'components/mixins/track_layout_changes.dart';
export 'components/reorder_list/reorder_events.dart';
export 'components/reorder_list/reorder_list.dart';
export 'components/scorecard/scoreboard.dart';
export 'components/scorecard/scorecard.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/auto_dismiss/auto_dismiss.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AutoDismissDirective {
// If a click set autoDismissable to `true`, then we don't want the same
// click to dismiss right away. Stop listening for clicks until we see a
// click event, or until the next event loop.
_ignoreClicks = b;
_ignoreClicks = _autoDismissable;
_click.first.then(_listenForClicks);
// Run the timer outside of Angular so that it doesn't trigger a new digest
// cycle.
Expand Down
9 changes: 5 additions & 4 deletions lib/src/components/button_decorator/button_decorator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

import 'dart:html';

import '../focus/focus.dart';
import '../mixins/has_tab_index.dart';
import 'package:angular2/angular2.dart';

import '../../utils/angular/properties/properties.dart';
import '../../utils/async/async.dart';
import '../../utils/browser/events/events.dart';
import 'package:angular2/angular2.dart';
import '../focus/focus.dart';
import '../mixins/has_tab_index.dart';

/// ButtonDirective adds all basic required a11y functional for any element,
/// that are designed to work as a button (clickable icon, etc.)
Expand Down Expand Up @@ -49,7 +50,7 @@ class ButtonDirective extends RootFocusable with HasTabIndex {
/// Is the button disabled.
bool get disabled => _disabled;
@Input()
set disabled(value) {
set disabled(dynamic value) {
_disabled = getBool(value);
}

Expand Down
1 change: 0 additions & 1 deletion lib/src/components/content/deferred_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:angular2/angular2.dart';

import '../../utils/angular/properties/properties.dart';
import '../../utils/disposer/disposer.dart';

import 'deferred_content_aware.dart';

/// When put on an element B, this directive creates B each time the nearest
Expand Down
3 changes: 2 additions & 1 deletion lib/src/components/dynamic_component/dynamic_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

import 'dart:async';

import 'package:angular2/angular2.dart';

import '../../model/ui/has_renderer.dart';
import '../../utils/async/async.dart';
import 'package:angular2/angular2.dart';

/// Dynamically renders another component, setting the [value] field on the
/// dynamic component if it implements [RendersValue] (and not if the component
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/focus/focus_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import 'dart:html' show KeyboardEvent;

import 'package:angular2/angular2.dart';

import './focus.dart';
import '../../utils/async/async.dart';
import './focus.dart';

/// `FocusItemDirective`, used in conjunction with [FocusListDirective],
/// provides a means to move focus between a list of components (or elements)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/focus/focus_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import 'package:angular2/angular2.dart';

import './focus.dart';
import '../../utils/angular/managed_zone/angular_2.dart';
import '../../utils/angular/properties/properties.dart';
import '../../utils/disposer/disposer.dart';
import './focus.dart';

/// `FocusListDirective`, used in conjunction with [FocusItemDirective] or
/// other directive implementing [FocusableItem], to provide a means to move
Expand Down
5 changes: 3 additions & 2 deletions lib/src/components/focus/focus_trap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

import 'dart:html';

import './focus.dart';
import 'package:angular2/angular2.dart';

import '../../utils/browser/dom_iterator/dom_iterator.dart';
import '../../utils/disposer/disposer.dart';
import 'package:angular2/angular2.dart';
import './focus.dart';

/// Focus trap designed for usage of popups and modals.
///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/glyph/glyph.scss.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/src/components/material_button/material_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:angular2/angular2.dart';

import '../button_decorator/button_decorator.dart';
import '../material_ripple/material_ripple.dart';
import '../theme/dark_theme.dart';
import 'package:angular2/angular2.dart';

import 'material_button_base.dart';

/// Material button is a button.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/src/components/material_button/material_button_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import 'dart:async';
import 'dart:html';

import '../button_decorator/button_decorator.dart';
import '../../utils/angular/properties/properties.dart';
import 'package:angular2/angular2.dart';

import '../../utils/angular/properties/properties.dart';
import '../button_decorator/button_decorator.dart';

/// A base class from which to build buttons.
///
/// __Expected Properties:__
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/material_button/material_fab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import '../material_ripple/material_ripple.dart';
import 'package:angular2/angular2.dart';

import '../material_ripple/material_ripple.dart';
import 'material_button_base.dart';

/// Material FAB is a Floating Action Button. It is round, and behaves mostly
Expand Down
Loading