Skip to content

Releases: esvit/ng-table

1.0.0-alpha.7

27 Aug 22:09
Compare
Choose a tag to compare
1.0.0-alpha.7 Pre-release
Pre-release

Bug Fixes

  • NgTableParams: the url method does not URI encoded all parameter values
    (6e7bf3a7)

Features

  • NgTableParams: improved support for grouping data
    (1cd90cde)
  • groupRow: extend header with a data group picker
    (ffa617cb)
  • ngTableDefaultGetData: allow NgTableParams to determine if sorting, filtering, and paging apply
    (6536d734)

Breaking Changes

  • NgTableParams:
  • settings().groupBy renamed and moved to parameters().group

Previously:

var params = new NgTableParams({...}, { groupBy: 'role'});
// changing value:
params.settings({ groupBy: 'age'});

Now:

var params = new NgTableParams({group: 'role'}, {...});
// changing value:
params.group('age');
// OR
params.parameters({ group: { age: undefined }});
  • paging is applied after grouping

This means that groups will no longer be duplicated and split across pages.

All parameter values are now URI encoded, thus a numerical filter value will now be returned as a quoted string

1.0.0-alpha.6

17 Aug 00:27
Compare
Choose a tag to compare
1.0.0-alpha.6 Pre-release
Pre-release

Bug Fixes

  • NgTableParams: table not reloaded when special $ filter field changes
    (8c287e91)

Features

  • ngTableDefaultGetData: set the this context of the filter function to the current NgTableParams
    (e23ce330)

1.0.0-alpha.5

16 Aug 16:59
Compare
Choose a tag to compare
1.0.0-alpha.5 Pre-release
Pre-release

Features

  • NgTableParams: set sensible defaults for filterComparator, filterFn and filterName
    (fc2fa182)
  • ngTableDefaultGetData:
    • support filterComparator, filterFilterName override, and filterFn
      (a62754c9)
    • support nested property filters
      (58ee04a6)

1.0.0-alpha.4

15 Aug 16:50
Compare
Choose a tag to compare
1.0.0-alpha.4 Pre-release
Pre-release

Features

  • filters: add ngTableSelectFilterDs directive
    (c79fdd86)

Breaking Changes

ngTableController no longer adds an empty item to the array returned by $column.filterData.

This will only affect those apps that were using $column.filterData to supply data to a custom
filter template.

Those apps that are using the select.html will be unaffected as the select.html filter will add
this empty item.

v1.0.0-alpha.3

14 Aug 02:05
Compare
Choose a tag to compare
v1.0.0-alpha.3 Pre-release
Pre-release

Bug Fixes

  • ngTableController: should be consistent about adding empty option item
    (d2080600)

Features

  • filters:
    • add filterLayout option to control position of multi-template filters
      (d1e02ccd)
    • support placeholder attribute for filter input
      (275f1c88)
    • render a multi-template filter horizontally
      (c834cc09)

Breaking Changes

An empty item - { id: '', title: '' } - is added to an array returned synchronously by filterData
function.

Implications:

  • make sure to not add an empty option yourself as this will be a duplicate
  • your array of items need to have an id and title field so as to match the empty option

v1.0.0-alpha.2

12 Aug 20:39
Compare
Choose a tag to compare
v1.0.0-alpha.2 Pre-release
Pre-release

Bug Fixes

  • pager.html: don't render empty pagination UL
    (ffbbca04)

Features

  • ngTableController: allow $column.filterData to return a promise
    (f90cbcb8)

v1.0.0-alpha.1

10 Aug 16:17
Compare
Choose a tag to compare
v1.0.0-alpha.1 Pre-release
Pre-release

Bug Fixes

  • ngTableController: should not call reload twice when initial load fails
    (a01da5bd)

Features

  • NgTableParams: add hasErrorState method
    (093ba3d9)

v1.0.0-alpha

10 Aug 00:45
Compare
Choose a tag to compare
v1.0.0-alpha Pre-release
Pre-release

Bug Fixes

  • NgTableParams: default page size is unreasonably small
    (6aec41ca)

Breaking Changes

Default page size has been increased from 1 to 10.

To override this behaviour set the default page size in the a run block:

angular.module("yourApp").run(setRunPhaseDefaults);

setRunPhaseDefaults.$inject = ["ngTableDefaults"];

function setRunPhaseDefaults(ngTableDefaults) {
    ngTableDefaults.params.count = 1;
}

NgTableParams no longer exposes a getGroups method.

getGroups is now a method on the settings object only.

NgTableParams no longer exposes a getData method

The column parameter of the getGroups method has been removed.

Instead the groupBy value on the NgTableParams.settings() object supplied as a parameter will
be used to determine the grouping.

Previously:

var groupsFetched = tableParams.settings().getGroups('age');

Now:

tableParams.settings({ groupBy: 'age'});
var groupsFetched = tableParams.settings().getGroups(tableParams);

v0.8.3

08 Aug 23:50
Compare
Choose a tag to compare

Bug Fixes

  • ngTableDefaultGetData: should ignore null and undefined filter values
    (64a33a85)

Features

  • NgTableParams:
    • filter function option to remove insignificant values
      (2f5f3016)
    • isSortBy direction parameter now optional
      (b3e02b92)
    • add response error interception
      (5613d1e0)
  • number.html: new filter template for numbers
    (78b02bbf)

v0.8.2

06 Aug 09:30
Compare
Choose a tag to compare

Bug Fixes

  • NgTableParams: datasetChanged event fires too early
    (9706a60b)
  • select-filter: select lists should not display an empty and '-' option
    (1ee441be)

Features

  • NgTableParams: generatePagesArray can be called without arguments
    (25fc82bd)