Skip to content

Commit a55d0b1

Browse files
Merge remote-tracking branch 'hjalmers/master'
2 parents 1b27580 + fb77256 commit a55d0b1

File tree

18 files changed

+557
-105
lines changed

18 files changed

+557
-105
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@ Release History
22
---------------
33

44
## [Unreleased]
5+
# [1.4.2] - 2016-09-06
6+
7+
### Fixed
8+
- error when exporting hidden columns to excel
9+
10+
# [1.4.1] - 2016-08-30
11+
12+
### Fixed
13+
- null values in data were rendered as "null" in IE, now they're converted to empty string
14+
15+
# [1.4.0] - 2016-08-30
16+
### Breaking changes
17+
- Expand property in field settings is no longer used to define which directive to use when expanding/opening a row, just pass true if clicking column should expand row. Use gtExpand attribute to pass and object containing which directive to use and optionally, if multiple rows should be allowed, add that property as well like this:
18+
`expandConfig:{
19+
directive:'<my-custom-directive></my-custom-directive>',
20+
multiple:true // false by default
21+
}`
22+
23+
### Added
24+
- Support for responsive layout using stacked columns
25+
- Support for custom sort function
26+
- Support for only having one row expanded/opened at a time
27+
28+
### Fixed
29+
- Sorting of null vales
30+
31+
### Improved
32+
- Removed some unnecessary two-way-bindings and watches
33+
- Scopes created using $compile are now removed along with their watches (if any)
34+
535
# [1.3.3] - 2016-08-19
636
### Fixed
737
- Compile error

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"# generic-table"
1+
"# angular-generic-table "

app.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8219,13 +8219,44 @@ div.generic-table table tr td.middle {
82198219
div.generic-table table tr td > span.gt-click-enabled {
82208220
cursor: pointer;
82218221
}
8222+
div.generic-table table tr td > span.gt-row-label {
8223+
display: none;
8224+
}
82228225
div.generic-table table tr td.gt-no-data {
82238226
text-align: center;
82248227
}
82258228
div.generic-table div.gt-pagination ul li.active button {
82268229
font-weight: bold;
82278230
color: #000;
82288231
}
8232+
@media (max-width: 768px) {
8233+
div.generic-table table.table-stacked tr {
8234+
border-bottom: 1px solid #ddd;
8235+
border-top: 1px solid #ddd;
8236+
}
8237+
div.generic-table table.table-stacked tr th {
8238+
display: none;
8239+
}
8240+
div.generic-table table.table-stacked tr td {
8241+
display: block;
8242+
text-align: right;
8243+
border: none;
8244+
}
8245+
div.generic-table table.table-stacked tr td > span {
8246+
display: table-cell;
8247+
}
8248+
div.generic-table table.table-stacked tr td > span.gt-row-label {
8249+
white-space: nowrap;
8250+
font-weight: bold;
8251+
}
8252+
div.generic-table table.table-stacked tr td > span.gt-row-content {
8253+
text-align: right;
8254+
width: 100%;
8255+
}
8256+
div.generic-table table.table-stacked tr td.hidden-stacked {
8257+
display: none;
8258+
}
8259+
}
82298260
/* Add Component LESS Above */
82308261
/* Required for Angular UI Bootstrap */
82318262
.nav,

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-generic-table",
33
"description": "Generic Table - A generic table for Angular that leverages one time binding for fast rendering. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.",
4-
"version": "1.3.3",
4+
"version": "1.4.2",
55
"keywords": [
66
"angular",
77
"generic-table",
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"angular": "~1.4",
3131
"angular-animate": "~1.4",
32-
"angular-filter": "~0.5.8",
32+
"angular-filter": "~0.5.11",
3333
"angular-bind-notifier": "^1.1.6",
3434
"ng-csv": "^0.3.6"
3535
},

dist/css/angular-generic-table.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,41 @@ div.generic-table table tr td.middle {
3131
div.generic-table table tr td > span.gt-click-enabled {
3232
cursor: pointer;
3333
}
34+
div.generic-table table tr td > span.gt-row-label {
35+
display: none;
36+
}
3437
div.generic-table table tr td.gt-no-data {
3538
text-align: center;
3639
}
3740
div.generic-table div.gt-pagination ul li.active button {
3841
font-weight: bold;
3942
color: #000;
4043
}
44+
@media (max-width: 768px) {
45+
div.generic-table table.table-stacked tr {
46+
border-bottom: 1px solid #ddd;
47+
border-top: 1px solid #ddd;
48+
}
49+
div.generic-table table.table-stacked tr th {
50+
display: none;
51+
}
52+
div.generic-table table.table-stacked tr td {
53+
display: block;
54+
text-align: right;
55+
border: none;
56+
}
57+
div.generic-table table.table-stacked tr td > span {
58+
display: table-cell;
59+
}
60+
div.generic-table table.table-stacked tr td > span.gt-row-label {
61+
white-space: nowrap;
62+
font-weight: bold;
63+
}
64+
div.generic-table table.table-stacked tr td > span.gt-row-content {
65+
text-align: right;
66+
width: 100%;
67+
}
68+
div.generic-table table.table-stacked tr td.hidden-stacked {
69+
display: none;
70+
}
71+
}

dist/css/angular-generic-table.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)