@energycap/components 0.26.6 → 0.26.7-email-css-improvements.20211124-1106
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/bundles/energycap-components.umd.js +47 -37
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/energycap-email.min.css +1 -1
- package/esm2015/lib/display/table/searchable-table.component.js +7 -5
- package/esm2015/lib/display/table/table-selectable-row.component.js +13 -4
- package/esm2015/lib/display/table/table.component.js +6 -11
- package/esm2015/lib/display/toast/toast/toast.component.js +2 -2
- package/fesm2015/energycap-components.js +42 -36
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/display/table/searchable-table.component.d.ts +3 -2
- package/lib/display/table/table-selectable-row.component.d.ts +4 -0
- package/lib/display/table/table.component.d.ts +2 -3
- package/package.json +1 -1
- package/src/assets/images/email-icon.png +0 -0
- package/src/assets/images/email-logo.png +0 -0
- package/src/styles/email/_email-base.scss +50 -49
- package/src/styles/email/email.scss +27 -44
|
@@ -27,8 +27,7 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy {
|
|
|
27
27
|
sort?: TableSort;
|
|
28
28
|
autofocus: boolean;
|
|
29
29
|
/**Set to a space-separated set of strings that should be added to the ec-table class attribute
|
|
30
|
-
* this allows finer control over styling
|
|
31
|
-
* by including is-selectable
|
|
30
|
+
* this allows finer control over styling.
|
|
32
31
|
*/
|
|
33
32
|
tableClasses: string;
|
|
34
33
|
/** Emits when table sort has changed */
|
|
@@ -141,6 +140,8 @@ export declare class SearchableTableComponent implements OnInit, OnDestroy {
|
|
|
141
140
|
resizableColumns: QueryList<ResizableColumnComponent>;
|
|
142
141
|
/** Optional text to add to the results count in the table footer. This text will be added after the count and objectType. */
|
|
143
142
|
additionalCountText: string;
|
|
143
|
+
/** Enables table row selection and row highlighting styles when true */
|
|
144
|
+
selectable: boolean;
|
|
144
145
|
/**
|
|
145
146
|
* PagingInfo for the current page.
|
|
146
147
|
*/
|
|
@@ -28,6 +28,10 @@ export declare class TableSelectableRowContext {
|
|
|
28
28
|
export declare class TableSelectableRowComponent implements OnInit, OnDestroy, OnChanges {
|
|
29
29
|
/**The ID root to use for the checkbox and table cell */
|
|
30
30
|
id: string;
|
|
31
|
+
/** Disables the selection functionality when false */
|
|
32
|
+
set enabled(value: boolean | null | undefined);
|
|
33
|
+
get enabled(): boolean | null | undefined;
|
|
34
|
+
private _enabled;
|
|
31
35
|
/**Shared context between master and children. Child directive adds its own FormControl to this
|
|
32
36
|
and removes it onDestroy. The same context object must be used for all directives in a single table*/
|
|
33
37
|
context: TableSelectableRowContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ResizableColumnComponent } from './resizable-column.component';
|
|
2
3
|
import { TableMasterRowComponent } from './table-master-row.component';
|
|
3
4
|
import { TableSelectableRowContext } from './table-selectable-row.component';
|
|
4
|
-
import { ResizableColumnComponent } from './resizable-column.component';
|
|
5
5
|
export declare type TableSortDirection = 'desc' | 'asc';
|
|
6
6
|
export interface TableSort {
|
|
7
7
|
field: string;
|
|
@@ -92,7 +92,6 @@ export declare class TableComponent implements AfterViewInit, OnDestroy, OnChang
|
|
|
92
92
|
private destroyed;
|
|
93
93
|
constructor(renderer: Renderer2, el: ElementRef);
|
|
94
94
|
ngOnChanges(changes: SimpleChanges): void;
|
|
95
|
-
ngOnInit(): void;
|
|
96
95
|
ngAfterContentInit(): void;
|
|
97
96
|
ngAfterViewInit(): void;
|
|
98
97
|
ngOnDestroy(): void;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@import '../variables';
|
|
2
2
|
|
|
3
|
+
$email-bg: $ec-color-bg-content;
|
|
4
|
+
|
|
3
5
|
@mixin body {
|
|
4
|
-
font-size:
|
|
6
|
+
font-size: 14px;
|
|
5
7
|
font-weight: 400;
|
|
6
8
|
color: $ec-color-text-primary-dark;
|
|
7
9
|
line-height: 1.2;
|
|
@@ -12,22 +14,22 @@
|
|
|
12
14
|
@mixin content {
|
|
13
15
|
h1, h2, h3, h4, h5, h6, p, ol, ul {
|
|
14
16
|
margin-top: 0;
|
|
15
|
-
margin-bottom:
|
|
17
|
+
margin-bottom: 16px;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
h1, h2 {
|
|
19
|
-
font-size:
|
|
20
|
-
line-height:
|
|
21
|
+
font-size: 20px;
|
|
22
|
+
line-height: 24px;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
h3, h4 {
|
|
24
|
-
font-size:
|
|
25
|
-
line-height:
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
line-height: 24px;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
h5, h6 {
|
|
29
|
-
font-size:
|
|
30
|
-
line-height:
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
line-height: 16px;
|
|
31
33
|
text-transform: uppercase;
|
|
32
34
|
color: $ec-color-text-secondary-dark;
|
|
33
35
|
}
|
|
@@ -63,9 +65,9 @@
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
a:focus {
|
|
66
|
-
outline: $ec-color-link solid
|
|
67
|
-
outline-offset:
|
|
68
|
-
border-radius:
|
|
68
|
+
outline: $ec-color-link solid 2px;
|
|
69
|
+
outline-offset: 2px;
|
|
70
|
+
border-radius: 2px;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
a:not([href]):not([tabindex]) {
|
|
@@ -83,28 +85,28 @@
|
|
|
83
85
|
outline: 0;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
|
|
87
|
-
a.cta {
|
|
88
|
+
.email-button {
|
|
88
89
|
display: inline-block;
|
|
89
|
-
margin-right:
|
|
90
|
-
margin-bottom:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
border: 1px solid $ec-border-color-default;
|
|
97
|
-
color: $ec-color-text-secondary-dark;
|
|
90
|
+
margin-right: 8px;
|
|
91
|
+
margin-bottom: 8px;
|
|
92
|
+
background-color: #D6D6D7;
|
|
93
|
+
padding: 0 16px;
|
|
94
|
+
line-height: 32px;
|
|
95
|
+
border-radius: 4px;
|
|
96
|
+
color: $ec-color-text-primary-dark !important;
|
|
98
97
|
}
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
.email-cta {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
margin-right: 8px;
|
|
102
|
+
margin-bottom: 8px;
|
|
103
103
|
background-color: #17303B;
|
|
104
|
-
color: #D8E902;
|
|
105
|
-
|
|
104
|
+
color: #D8E902 !important;
|
|
105
|
+
line-height: 48px;
|
|
106
|
+
padding: 0 24p;
|
|
107
|
+
min-width: 176px;
|
|
106
108
|
text-align: center;
|
|
107
|
-
border-radius:
|
|
109
|
+
border-radius: 6px;
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
img {
|
|
@@ -112,19 +114,13 @@
|
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
hr {
|
|
115
|
-
box-sizing: content-box;
|
|
116
117
|
height: 0;
|
|
117
118
|
border-bottom: 0;
|
|
118
119
|
overflow: visible;
|
|
119
|
-
margin:
|
|
120
|
+
margin: 16px 0;
|
|
120
121
|
border-color: $ec-border-color-default;
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
.banner {
|
|
124
|
-
margin-left: -1.5rem;
|
|
125
|
-
margin-right: -1.5rem;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
124
|
.text-left {
|
|
129
125
|
text-align: left;
|
|
130
126
|
}
|
|
@@ -140,24 +136,29 @@
|
|
|
140
136
|
.text-underline {
|
|
141
137
|
text-decoration: underline;
|
|
142
138
|
}
|
|
143
|
-
}
|
|
144
139
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
background-size: contain;
|
|
149
|
-
background-repeat: no-repeat;
|
|
150
|
-
height: 1.75rem;
|
|
151
|
-
margin-bottom: 2rem;
|
|
140
|
+
.text-caption-1 {
|
|
141
|
+
color: $ec-color-text-secondary-dark;
|
|
142
|
+
font-size: 12px;
|
|
152
143
|
}
|
|
153
144
|
|
|
154
|
-
.
|
|
155
|
-
|
|
156
|
-
|
|
145
|
+
.text-caption-2 {
|
|
146
|
+
color: $ec-color-text-secondary-dark;
|
|
147
|
+
font-size: 10px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin logos {
|
|
152
|
+
.email-logo {
|
|
153
|
+
width: 100%;
|
|
154
|
+
max-width: 292px;
|
|
155
|
+
font-size: 28px;
|
|
156
|
+
font-weight: normal;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
.email-logo-wl {
|
|
160
|
+
margin-left: 4px;
|
|
161
|
+
width: 56px;
|
|
162
|
+
max-width: 56px;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
@@ -1,60 +1,43 @@
|
|
|
1
1
|
/** Standalone styles for energycap application emails. Include the generated css (dist/components/energycap-email.min.css) in a style element in the head of the email document. */
|
|
2
2
|
@import 'email-base';
|
|
3
3
|
|
|
4
|
-
*,
|
|
5
|
-
*::before,
|
|
6
|
-
*::after {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
html {
|
|
11
|
-
background-color: $ec-color-bg-
|
|
5
|
+
background-color: $ec-color-bg-content;
|
|
6
|
+
font-size: 16px;
|
|
12
7
|
}
|
|
13
8
|
|
|
14
|
-
body {
|
|
15
|
-
margin: 0 auto;
|
|
16
|
-
width: 37.5rem;
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
padding: 5rem 0;
|
|
9
|
+
body {
|
|
19
10
|
@include body;
|
|
11
|
+
margin: 0;
|
|
20
12
|
}
|
|
21
13
|
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
table {
|
|
15
|
+
width: 100%;
|
|
16
|
+
border-spacing: 0;
|
|
17
|
+
font-size: 14px;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
border-radius: .5rem;
|
|
29
|
-
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);;
|
|
30
|
-
padding: 2rem 1.5rem;
|
|
20
|
+
tr, td {
|
|
21
|
+
border-image-width: 0;
|
|
31
22
|
}
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
color: $ec-color-text-secondary-dark;
|
|
24
|
+
.email-wrapper {
|
|
25
|
+
width: 600px;
|
|
26
|
+
padding-top: 48px;
|
|
37
27
|
}
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@media screen and (max-width: 20rem) {
|
|
43
|
-
html {
|
|
44
|
-
background-color: $ec-color-bg-content;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
body {
|
|
48
|
-
padding-top: 0;
|
|
49
|
-
padding-bottom: 3rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
main {
|
|
53
|
-
box-shadow: none;
|
|
54
|
-
border-radius: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
main + footer {
|
|
58
|
-
border-top: 1px solid $ec-border-color-default;
|
|
59
|
-
}
|
|
29
|
+
.email-header {
|
|
30
|
+
padding-right: 16px;
|
|
31
|
+
padding-left: 16px;
|
|
60
32
|
}
|
|
33
|
+
|
|
34
|
+
.email-body {
|
|
35
|
+
padding: 32px 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[tabindex="-1"]:focus {
|
|
39
|
+
outline: 0 !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include content;
|
|
43
|
+
@include logos;
|