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

Commit 4518e63

Browse files
authored
Components update (#88)
* 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.
1 parent bf8004c commit 4518e63

File tree

123 files changed

+741
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+741
-477
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 0.5.1
2+
3+
* Glyph: Add baseline attribute.
4+
* Material Expansionpanel:
5+
* Allow programmatic `expand` and `collapse` requests even if the panel is
6+
`disabled`.
7+
* Change `preserveWhitespace` default to false.
8+
* Add `enterAccepts` flag.
9+
* Material Input:
10+
* Show counter regardless of focus.
11+
* Add error message to `MaterialPercentInputDirective`.
12+
* Material List: Allow pointer events when disabled.
13+
* Material Popup: Fix positioning when `matchMinSourceWidth` is true.
14+
* Material Ripple: Show a centered ripple on keypress.
15+
* Material Select:
16+
* Only display underline when border is also set.
17+
* Add `useCheckMarks` to use check marks instead of checkboxes.
18+
* Material Tooltips: Resize to fit contents.
19+
* Material Yes/No Buttons: Add `enterAccepts` flag.
20+
* Deprecate LazyStreamController and migrate to StreamController.
21+
* Migrate use of LazyEventController to StreamController.
22+
* Documentation fixes.
23+
* Strong mode fixes.
24+
125
## 0.5.0
226

327
* Rename library to angular_components.

lib/angular_components.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
library angular_components;
66

77
import 'package:angular2/angular2.dart' show Provider;
8+
89
import 'src/all_components.dart';
10+
911
export 'src/all_components.dart';
1012

1113
/// A convenience list of all Directives exposed by this package.

lib/src/all_components.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export 'components/material_spinner/material_spinner.dart';
5959
export 'components/material_tab/fixed_material_tab_strip.dart';
6060
export 'components/material_tab/material_tab.dart';
6161
export 'components/material_tab/material_tab_panel.dart';
62+
export 'components/material_tab/tab_button.dart';
6263
export 'components/material_tab/tab_change_event.dart';
64+
export 'components/material_tab/tab_mixin.dart';
6365
export 'components/material_toggle/material_toggle.dart';
6466
export 'components/material_tooltip/material_tooltip.dart';
6567
export 'components/material_tooltip/module.dart';
@@ -69,6 +71,7 @@ export 'components/mixins/focusable_mixin.dart';
6971
export 'components/mixins/has_tab_index.dart';
7072
export 'components/mixins/material_dropdown_base.dart';
7173
export 'components/mixins/track_layout_changes.dart';
74+
export 'components/reorder_list/reorder_events.dart';
7275
export 'components/reorder_list/reorder_list.dart';
7376
export 'components/scorecard/scoreboard.dart';
7477
export 'components/scorecard/scorecard.dart';

lib/src/components/auto_dismiss/auto_dismiss.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AutoDismissDirective {
4646
// If a click set autoDismissable to `true`, then we don't want the same
4747
// click to dismiss right away. Stop listening for clicks until we see a
4848
// click event, or until the next event loop.
49-
_ignoreClicks = b;
49+
_ignoreClicks = _autoDismissable;
5050
_click.first.then(_listenForClicks);
5151
// Run the timer outside of Angular so that it doesn't trigger a new digest
5252
// cycle.

lib/src/components/button_decorator/button_decorator.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
import 'dart:html';
66

7-
import '../focus/focus.dart';
8-
import '../mixins/has_tab_index.dart';
7+
import 'package:angular2/angular2.dart';
8+
99
import '../../utils/angular/properties/properties.dart';
1010
import '../../utils/async/async.dart';
1111
import '../../utils/browser/events/events.dart';
12-
import 'package:angular2/angular2.dart';
12+
import '../focus/focus.dart';
13+
import '../mixins/has_tab_index.dart';
1314

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

lib/src/components/content/deferred_content.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'package:angular2/angular2.dart';
88

99
import '../../utils/angular/properties/properties.dart';
1010
import '../../utils/disposer/disposer.dart';
11-
1211
import 'deferred_content_aware.dart';
1312

1413
/// When put on an element B, this directive creates B each time the nearest

lib/src/components/dynamic_component/dynamic_component.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
import 'dart:async';
66

7+
import 'package:angular2/angular2.dart';
8+
79
import '../../model/ui/has_renderer.dart';
810
import '../../utils/async/async.dart';
9-
import 'package:angular2/angular2.dart';
1011

1112
/// Dynamically renders another component, setting the [value] field on the
1213
/// dynamic component if it implements [RendersValue] (and not if the component

lib/src/components/focus/focus_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import 'dart:html' show KeyboardEvent;
77

88
import 'package:angular2/angular2.dart';
99

10-
import './focus.dart';
1110
import '../../utils/async/async.dart';
11+
import './focus.dart';
1212

1313
/// `FocusItemDirective`, used in conjunction with [FocusListDirective],
1414
/// provides a means to move focus between a list of components (or elements)

lib/src/components/focus/focus_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
import 'package:angular2/angular2.dart';
66

7-
import './focus.dart';
87
import '../../utils/angular/managed_zone/angular_2.dart';
98
import '../../utils/angular/properties/properties.dart';
109
import '../../utils/disposer/disposer.dart';
10+
import './focus.dart';
1111

1212
/// `FocusListDirective`, used in conjunction with [FocusItemDirective] or
1313
/// other directive implementing [FocusableItem], to provide a means to move

lib/src/components/focus/focus_trap.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
import 'dart:html';
66

7-
import './focus.dart';
7+
import 'package:angular2/angular2.dart';
8+
89
import '../../utils/browser/dom_iterator/dom_iterator.dart';
910
import '../../utils/disposer/disposer.dart';
10-
import 'package:angular2/angular2.dart';
11+
import './focus.dart';
1112

1213
/// Focus trap designed for usage of popups and modals.
1314
///

0 commit comments

Comments
 (0)