aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/angular-material-data-table/CHANGELOG.md
blob: c6947c85ee7f751010ffe2b27df5a2981bfd82bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
## Change Log

#### Version 0.10.10
###### December 14, 2016

**Future Proofing**

* Merge #517 from [@christophercr](https://github.com/christophercr) to change the restriction on the `mdTableProgress` directive from class name to attribute to support newer versions of AngularJS.

#### Version 0.10.9
###### April 26, 2016

**Bug Fix**

* Removing one time binding from pagination limit options.

#### Version 0.10.8
###### April 23, 2016

**New Feature**

* You can now map language to limit options using the `label` and `value` properties, e.g.

  ```javascript
  ctrl.limitOptions = [5, 10, 15, {
    label: 'All',
    value: function () {
      return collection.length;
    }
  }];
  ```

#### Version 0.10.7
###### April 19, 2016

**Bug Fixes**

* Fix bug where pagination page number would disappear.

#### Version 0.10.6
###### April 19, 2016

**Bug Fixes**

* Fixing bug where changing the `orderBy` property of a column would add an additional sort icon.

#### Version 0.10.5
###### April 9, 2016

**Bug Fixes**

* Fixing bug in pagination directive where the number of pages was always equal to the number of rows in the table.

#### Version 0.10.4
###### April 5, 2016

**Improvements**

* Pagination is now usable on mobile.
* More safeguards in pagination directive against performing calculations on `NaN`.

**Bug Fixes**

* Fixing issue where errors would be thrown if row selection was not enabled.

#### Version 0.10.3
###### April 1, 2016

**Bug Fixes**

* The pagination directive will now display `0 - 0 of 0` if the total is zero.

#### Version 0.10.2
###### March 30, 2016

**Bug Fixes**

* Fixes bug where the select all checkbox would not be added to subsequent tables.

#### Version 0.10.1
###### March 27, 2016

**New Features**

* Pagination elements may now be disabled with the `ng-disabled` attribute.

**Bug Fixes & Improvements**

* When the total changes, the pagination directive will check if the current page is greater than the total number of pages. If it is greater, the page will be set to the last available page.

#### Version 0.10.0
###### March 27, 2016

**Breaking Changes**

* Multiple selection must now be enabled with the `multiple` attribute.

  ```html
  <table md-table md-row-select multiple ng-model="selected">
  ```

* Unique identifiers must now be a property of the item.

  ```html
    <!-- use item.id as the unique identifier -->
    <tr md-row md-select="item" md-select-id="id" md-auto-select ng-repeat="item in items">
  ```
  
* Some folks do not want the pagination limit options to be enabled. To compensate, the pagination limit options must now be enabled with the `mdLimitOptions` attribute. The `mdLimitOptions` attribute is a replacement of the `mdOptions` attribute and the default limit options have been removed.

  ```html
    <md-table-pagination md-limit-options="[5, 10, 15]">
  ```

**New Features**

* Single item selection is now possible and enabled by default. Be aware that the `ngModel` attribute must still be an array; for now.

* The pagination limit options are now disabled be default.

* The pagination page selector is now virtualized to improve performance.

**Bug Fixes & Improvements**

* Preselected items will now be displayed by the UI. Keep in mind that if preselected items are not strictly equal to items in the table you will need to use the `mdSelectId` attribute.

* Changes to the pagination label will now take effect without needing to reload the page.

* Pagination and reorder callbacks are now deferred until the next digest cycle using Angular Material's `$mdUtil.nextTick` function to allow 2-way data binding to complete and to avoid confusion. This means your local scope variables will have the same value as the parameters passed to the `md-on-reorder` and `md-on-paginate` callbacks.