Skip to content

Commit 1a148d3

Browse files
committed
Rearranged files to comply Dart components style.
1 parent 1aca4ad commit 1a148d3

16 files changed

+38
-37
lines changed

web/address.dart renamed to lib/address.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
part of smart_table_component;
2+
13
class Address {
24
String m_city;
35
String m_street;

web/common.dart renamed to lib/common.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'dart:mirrors';
1+
part of smart_table_component;
2+
23

34
InstanceMirror getProperty<T>(T object, String property){
45
InstanceMirror result;

web/department.dart renamed to lib/department.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
part of smart_table_component;
2+
13
class Department {
24
String m_name;
35

web/filter.dart renamed to lib/filter.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import 'common.dart';
2-
import 'dart:mirrors';
3-
import 'dart:collection';
4-
import 'smart_table_record.dart';
5-
import 'smart_table_component.dart';
1+
part of smart_table_component;
62

73
class Filter {
84
SmartTableComponent _object;

web/filter_by_pipe.dart renamed to lib/filter_by_pipe.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import 'dart:mirrors';
2-
import 'common.dart';
3-
import 'package:angular2/core.dart';
4-
import 'smart_table_record.dart';
1+
part of smart_table_component;
2+
53

64
@Pipe('filterBy')
75
class FilterByPipe implements PipeTransform {

web/order_by_pipe.dart renamed to lib/order_by_pipe.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import 'dart:mirrors';
2-
import 'common.dart';
3-
import 'package:angular2/core.dart';
4-
import 'smart_table_record.dart';
1+
part of smart_table_component;
52

63
@Pipe('orderBy')
74
class OrderByPipe implements PipeTransform {

web/sample_data.dart renamed to lib/sample_data.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import 'sex.dart';
2-
import 'department.dart';
3-
import 'address.dart';
4-
import 'smart_table_record.dart';
1+
part of smart_table_component;
52

63
List<SmartTableRecord> sampleRecords = new List(15);
74

web/sex.dart renamed to lib/sex.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
part of smart_table_component;
2+
13
class Sex {
24
String _value = getMaleLabel();
35
static String _maleLabel = "Male";

web/smart_table_component.dart renamed to lib/smart_table_component.dart

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
library smart_table_component;
2+
3+
import 'dart:mirrors';
4+
import 'dart:collection';
15
import 'package:angular2/angular2.dart';
2-
import 'order_by_pipe.dart';
3-
import 'filter_by_pipe.dart';
4-
import 'smart_table_record.dart';
5-
import 'smart_table_record_data_service.dart';
6-
import 'filter.dart';
6+
7+
part 'address.dart';
8+
part 'common.dart';
9+
part 'department.dart';
10+
part 'filter.dart';
11+
part 'filter_by_pipe.dart';
12+
part 'order_by_pipe.dart';
13+
part 'sample_data.dart';
14+
part 'sex.dart';
15+
part 'smart_table_record.dart';
16+
part 'smart_table_record_data_service.dart';
17+
718

819
@Component(
920
selector: 'smart-table-component',
File renamed without changes.

0 commit comments

Comments
 (0)