@angular-generic-table/core 5.0.0-rc.12 → 5.0.0-rc.14
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.
- package/esm2020/lib/core.component.mjs +74 -21
- package/esm2020/lib/core.module.mjs +11 -8
- package/esm2020/lib/core.service.mjs +4 -4
- package/esm2020/lib/gt-delta/gt-delta.component.mjs +8 -19
- package/esm2020/lib/models/table-column.interface.mjs +1 -1
- package/esm2020/lib/models/table-config.interface.mjs +1 -1
- package/esm2020/lib/models/table-events.interface.mjs +2 -0
- package/esm2020/lib/models/table-meta.interface.mjs +1 -1
- package/esm2020/lib/models/table-row.interface.mjs +1 -1
- package/esm2020/lib/pagination/pagination.component.mjs +6 -6
- package/esm2020/lib/pagination/pagination.module.mjs +6 -7
- package/esm2020/lib/pipes/capital-case.pipe.mjs +5 -4
- package/esm2020/lib/pipes/dash-case.pipe.mjs +5 -4
- package/esm2020/lib/pipes/dynamic.pipe.mjs +5 -4
- package/esm2020/lib/pipes/highlight.pipe.mjs +5 -4
- package/esm2020/lib/pipes/sort-class.pipe.mjs +5 -4
- package/esm2020/lib/utilities/utilities.mjs +72 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/angular-generic-table-core.mjs +219 -95
- package/fesm2015/angular-generic-table-core.mjs.map +1 -1
- package/fesm2020/angular-generic-table-core.mjs +212 -94
- package/fesm2020/angular-generic-table-core.mjs.map +1 -1
- package/{angular-generic-table-core.d.ts → index.d.ts} +0 -0
- package/lib/core.component.d.ts +20 -3
- package/lib/core.module.d.ts +9 -9
- package/lib/gt-delta/gt-delta.component.d.ts +3 -3
- package/lib/models/table-column.interface.d.ts +4 -2
- package/lib/models/table-config.interface.d.ts +24 -3
- package/lib/models/table-events.interface.d.ts +11 -0
- package/lib/models/table-meta.interface.d.ts +3 -3
- package/lib/models/table-row.interface.d.ts +0 -1
- package/lib/pagination/pagination.component.d.ts +3 -3
- package/lib/pagination/pagination.module.d.ts +3 -3
- package/lib/pipes/capital-case.pipe.d.ts +1 -1
- package/lib/pipes/dash-case.pipe.d.ts +1 -1
- package/lib/pipes/dynamic.pipe.d.ts +1 -1
- package/lib/pipes/highlight.pipe.d.ts +1 -1
- package/lib/pipes/sort-class.pipe.d.ts +1 -1
- package/lib/utilities/utilities.d.ts +5 -0
- package/package.json +5 -5
- package/public-api.d.ts +1 -0
- package/scss/index.scss +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-generic-table/core",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.14",
|
|
4
4
|
"author": "Robert Hjalmers <opensource@rhj.se> (http://www.linkedin.com/in/robert-hjalmers/)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"url": "https://github.com/hjalmers/angular-generic-table.git"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
12
|
-
"@angular/core": "^12.0.0 || ^13.0.0"
|
|
11
|
+
"@angular/common": "^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
12
|
+
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.0.0"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"esm2020": "esm2020/angular-generic-table-core.mjs",
|
|
20
20
|
"fesm2020": "fesm2020/angular-generic-table-core.mjs",
|
|
21
21
|
"fesm2015": "fesm2015/angular-generic-table-core.mjs",
|
|
22
|
-
"typings": "
|
|
22
|
+
"typings": "index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
"./package.json": {
|
|
25
25
|
"default": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
".": {
|
|
28
|
-
"types": "./
|
|
28
|
+
"types": "./index.d.ts",
|
|
29
29
|
"esm2020": "./esm2020/angular-generic-table-core.mjs",
|
|
30
30
|
"es2020": "./fesm2020/angular-generic-table-core.mjs",
|
|
31
31
|
"es2015": "./fesm2015/angular-generic-table-core.mjs",
|
package/public-api.d.ts
CHANGED
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
|
|