@angular-generic-table/core 5.0.0-rc.13 → 5.0.0-rc.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/esm2020/lib/core.component.mjs +37 -13
  2. package/esm2020/lib/core.module.mjs +11 -8
  3. package/esm2020/lib/core.service.mjs +3 -3
  4. package/esm2020/lib/gt-delta/gt-delta.component.mjs +95 -73
  5. package/esm2020/lib/models/table-column.interface.mjs +1 -1
  6. package/esm2020/lib/models/table-config.interface.mjs +1 -1
  7. package/esm2020/lib/models/table-events.interface.mjs +1 -1
  8. package/esm2020/lib/models/table-meta.interface.mjs +1 -1
  9. package/esm2020/lib/models/table-row.interface.mjs +1 -1
  10. package/esm2020/lib/pagination/pagination.component.mjs +6 -6
  11. package/esm2020/lib/pagination/pagination.module.mjs +6 -7
  12. package/esm2020/lib/pipes/capital-case.pipe.mjs +5 -4
  13. package/esm2020/lib/pipes/dash-case.pipe.mjs +5 -4
  14. package/esm2020/lib/pipes/dynamic.pipe.mjs +5 -4
  15. package/esm2020/lib/pipes/highlight.pipe.mjs +5 -4
  16. package/esm2020/lib/pipes/sort-class.pipe.mjs +5 -4
  17. package/esm2020/lib/utilities/utilities.mjs +72 -2
  18. package/fesm2015/angular-generic-table-core.mjs +274 -144
  19. package/fesm2015/angular-generic-table-core.mjs.map +1 -1
  20. package/fesm2020/angular-generic-table-core.mjs +266 -144
  21. package/fesm2020/angular-generic-table-core.mjs.map +1 -1
  22. package/lib/core.component.d.ts +12 -6
  23. package/lib/core.module.d.ts +9 -9
  24. package/lib/gt-delta/gt-delta.component.d.ts +18 -6
  25. package/lib/models/table-column.interface.d.ts +4 -2
  26. package/lib/models/table-config.interface.d.ts +22 -3
  27. package/lib/models/table-events.interface.d.ts +4 -4
  28. package/lib/models/table-meta.interface.d.ts +3 -3
  29. package/lib/models/table-row.interface.d.ts +0 -1
  30. package/lib/pagination/pagination.component.d.ts +3 -3
  31. package/lib/pagination/pagination.module.d.ts +3 -3
  32. package/lib/pipes/capital-case.pipe.d.ts +1 -1
  33. package/lib/pipes/dash-case.pipe.d.ts +1 -1
  34. package/lib/pipes/dynamic.pipe.d.ts +1 -1
  35. package/lib/pipes/highlight.pipe.d.ts +1 -1
  36. package/lib/pipes/sort-class.pipe.d.ts +1 -1
  37. package/lib/utilities/utilities.d.ts +5 -0
  38. package/package.json +1 -1
  39. package/scss/index.scss +41 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-generic-table/core",
3
- "version": "5.0.0-rc.13",
3
+ "version": "5.0.0-rc.15",
4
4
  "author": "Robert Hjalmers <opensource@rhj.se> (http://www.linkedin.com/in/robert-hjalmers/)",
5
5
  "license": "MIT",
6
6
  "repository": {
package/scss/index.scss CHANGED
@@ -1,5 +1,9 @@
1
1
  $highlight-background-color: #ffdd00 !default;
2
2
  $style-selector: '.table' !default;
3
+ $footer-header-font-weight: 400 !default;
4
+ $footer-cell-font-weight: 500 !default;
5
+ $footer-header-text-align: end !default;
6
+ $footer-border-top: solid 2px var(--bs-table-color, #000) !default;
3
7
  $mobile-style-selector: 'table.table-mobile:not(.table-horizontal)' !default;
4
8
  $mobile-style-max-width: 576px !default;
5
9
  $mobile-style-header-font-weight: 500 !default;
@@ -49,6 +53,7 @@ $skeleton-loader-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2
49
53
 
50
54
  @mixin styles() {
51
55
  @include default-style;
56
+ @include footer-style;
52
57
  @include search-style;
53
58
  @include mobile-style;
54
59
  @include pagination-style;
@@ -76,6 +81,7 @@ $skeleton-loader-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2
76
81
  text-align: left;
77
82
  display: flex;
78
83
  align-items: center;
84
+ justify-content: inherit;
79
85
  transition: box-shadow 0.25s ease-in-out;
80
86
  &::after {
81
87
  content: '';
@@ -113,6 +119,35 @@ $skeleton-loader-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2
113
119
  padding: $cell-padding-y $cell-padding-x;
114
120
  }
115
121
  }
122
+ tfoot {
123
+ th {
124
+ font-weight: $footer-header-font-weight;
125
+ text-align: $footer-header-text-align;
126
+ }
127
+ td[data-header]:first-child {
128
+ display: flex;
129
+ justify-content: space-between;
130
+ align-items: center;
131
+ border-top: none !important;
132
+ &::before {
133
+ content: attr(data-header);
134
+ display: block;
135
+ font-weight: $footer-header-font-weight;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+
142
+ @mixin footer-style {
143
+ tfoot tr:first-child {
144
+ border-top: $footer-border-top;
145
+ }
146
+ tfoot tr th {
147
+ font-weight: $footer-header-font-weight;
148
+ }
149
+ tfoot tr td {
150
+ font-weight: $footer-cell-font-weight;
116
151
  }
117
152
  }
118
153
 
@@ -199,9 +234,12 @@ $skeleton-loader-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2
199
234
  @mixin delta-style() {
200
235
  .gt-delta {
201
236
  display: flex;
202
- &.gt-delta-positive::before {
203
- display: block;
204
- content: $delta-positive-prefix;
237
+ &.gt-delta-positive > span {
238
+ display: inline-flex;
239
+ &::before {
240
+ display: block;
241
+ content: $delta-positive-prefix;
242
+ }
205
243
  }
206
244
  }
207
245
  }